From 9a9dfb2b6d3adb2c13a3cfb8ab34d7eacf83653f Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 17 Aug 2023 05:52:25 -0500 Subject: [PATCH 1/3] chore(assets): Build the latest plugin assets --- public/js/editor.asset.php | 2 +- public/js/editor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/editor.asset.php b/public/js/editor.asset.php index a4b41cd..62f2a36 100644 --- a/public/js/editor.asset.php +++ b/public/js/editor.asset.php @@ -1 +1 @@ - array('wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => 'b7f106a2e4d388e3'); + array('wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => 'c1ddd9875002a68f'); diff --git a/public/js/editor.js b/public/js/editor.js index 5a3dd06..c8d3fce 100644 --- a/public/js/editor.js +++ b/public/js/editor.js @@ -1 +1 @@ -!function(){"use strict";var e={n:function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(t,{a:t}),t},d:function(o,t){for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o=window.wp.domReady,t=e.n(o),r=window.wp.i18n,c=window.wp.blocks,n=["bcn/","core/archive","core/audio","core/avatar","core/calendar","core/categories","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link","core/comment-template","core/comments-pagination-next","core/comments-pagination-numbers","core/comments-pagination-previous","core/comments-pagination","core/comments-query-loop","core/comments-title","core/comments","core/embed","core/file","core/gallery","core/home-link","core/latest-comments","core/latest-posts","core/legacy-widget","core/loginout","core/more","core/navigation","core/nextpage","core/page-list","core/post-author-biography","core/post-author","core/post-comments-form","core/post-comments","core/post-content","core/post-date","core/post-excerpt","core/post-featured-image","core/post-navigation-link","core/post-template","core/post-terms","core/post-title","core/query-no-results","core/query-pagination-next","core/query-pagination-numbers","core/query-pagination-previous","core/query-pagination","core/query-title","core/query","core/read-more","core/rss","core/search","core/site-logo","core/site-tagline","core/site-title","core/social-link","core/tag-cloud","core/template-part","core/term-description","core/verse","core/widget-area","core/footnotes","editorskit/","html-forms/","monsterinsights/","mv/","page-generator-pro/","rank-math/howto-block","rank-math/rich-snippet","safe-svg/","yoast-seo/breadcrumbs","yoast-seo/estimated-reading-time","yoast-seo/related-links","yoast-seo/table-of-contents","yoast-seo/siblings","yoast-seo/subpages"];t()((function(){(0,c.getBlockTypes)().forEach((function(e){return n.some((function(o){return e.name.includes(o)}))&&(0,c.unregisterBlockType)(e.name)}))}));var a=window.wp.plugins,s=window.wp.data;(0,a.registerPlugin)("disable-welcome-guide",{render:function(){return(0,s.select)("core/edit-post").isFeatureActive("welcomeGuide")&&(0,s.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),null}}),(0,a.registerPlugin)("disable-fullscreen",{render:function(){return(0,s.select)("core/edit-post").isFeatureActive("fullscreenMode")&&(0,s.dispatch)("core/edit-post").toggleFeature("fullscreenMode"),null}}),window.wp.editPost;t()((function(){[{block:"core/button",styles:["outline","fill"]},{block:"core/image",styles:["circle-mask"]},{block:"core/pullquote",styles:["solid-color"]},{block:"core/table",styles:["stripes"]},{block:"core/quote",styles:["large"]}].forEach((function(e){var o=e.block;return e.styles.forEach((function(e){return(0,c.unregisterBlockStyle)(o,e)}))})),function(e){e.forEach((function(e){var o=e.block;return e.styles.forEach((function(e){return(0,c.registerBlockStyle)(o,e)}))}))}([{block:"core/button",styles:[{name:"fill",label:(0,r.__)("Solid","gutentweaks")},{name:"outline",label:(0,r.__)("Outline","gutentweaks")}]},{block:"core/list",styles:[{name:"check",label:(0,r.__)("Check","gutentweaks")},{name:"check-circle",label:(0,r.__)("Check (Circle)","gutentweaks")},{name:"times",label:(0,r.__)("Times","gutentweaks")},{name:"chevron-r",label:(0,r.__)("Chevron (Right)","gutentweaks")},{name:"caret-r",label:(0,r.__)("Caret (Right)","gutentweaks")},{name:"arrow-r",label:(0,r.__)("Arrow (Right)","gutentweaks")},{name:"numeric",label:(0,r.__)("Numeric","gutentweaks")},{name:"star",label:(0,r.__)("Star","gutentweaks")},{name:"dash",label:(0,r.__)("Dash","gutentweaks")}]}])}))}(); \ No newline at end of file +!function(){"use strict";var e={n:function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(t,{a:t}),t},d:function(o,t){for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o=window.wp.domReady,t=e.n(o),r=window.wp.i18n,c=window.wp.blocks,n=["bcn/","core/archive","core/audio","core/avatar","core/calendar","core/categories","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link","core/comment-template","core/comments-pagination-next","core/comments-pagination-numbers","core/comments-pagination-previous","core/comments-pagination","core/comments-query-loop","core/comments-title","core/comments","core/embed","core/file","core/gallery","core/home-link","core/latest-comments","core/latest-posts","core/legacy-widget","core/loginout","core/more","core/navigation","core/nextpage","core/page-list","core/post-author-biography","core/post-author","core/post-comments-form","core/post-comments","core/post-content","core/post-date","core/post-excerpt","core/post-featured-image","core/post-navigation-link","core/post-template","core/post-terms","core/post-title","core/query-no-results","core/query-pagination-next","core/query-pagination-numbers","core/query-pagination-previous","core/query-pagination","core/query-title","core/query","core/read-more","core/rss","core/search","core/site-logo","core/site-tagline","core/site-title","core/social-link","core/tag-cloud","core/details","core/template-part","core/term-description","core/verse","core/widget-area","core/footnotes","editorskit/","html-forms/","monsterinsights/","mv/","page-generator-pro/","rank-math/howto-block","rank-math/rich-snippet","safe-svg/","yoast-seo/breadcrumbs","yoast-seo/estimated-reading-time","yoast-seo/related-links","yoast-seo/table-of-contents","yoast-seo/siblings","yoast-seo/subpages"];t()((function(){(0,c.getBlockTypes)().forEach((function(e){return n.some((function(o){return e.name.includes(o)}))&&(0,c.unregisterBlockType)(e.name)}))}));var a=window.wp.plugins,s=window.wp.data;(0,a.registerPlugin)("disable-welcome-guide",{render:function(){return(0,s.select)("core/edit-post").isFeatureActive("welcomeGuide")&&(0,s.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),null}}),(0,a.registerPlugin)("disable-fullscreen",{render:function(){return(0,s.select)("core/edit-post").isFeatureActive("fullscreenMode")&&(0,s.dispatch)("core/edit-post").toggleFeature("fullscreenMode"),null}}),window.wp.editPost;t()((function(){[{block:"core/button",styles:["outline","fill"]},{block:"core/image",styles:["circle-mask"]},{block:"core/pullquote",styles:["solid-color"]},{block:"core/table",styles:["stripes"]},{block:"core/quote",styles:["large"]}].forEach((function(e){var o=e.block;return e.styles.forEach((function(e){return(0,c.unregisterBlockStyle)(o,e)}))})),function(e){e.forEach((function(e){var o=e.block;return e.styles.forEach((function(e){return(0,c.registerBlockStyle)(o,e)}))}))}([{block:"core/button",styles:[{name:"fill",label:(0,r.__)("Solid","gutentweaks")},{name:"outline",label:(0,r.__)("Outline","gutentweaks")}]},{block:"core/list",styles:[{name:"check",label:(0,r.__)("Check","gutentweaks")},{name:"check-circle",label:(0,r.__)("Check (Circle)","gutentweaks")},{name:"times",label:(0,r.__)("Times","gutentweaks")},{name:"chevron-r",label:(0,r.__)("Chevron (Right)","gutentweaks")},{name:"caret-r",label:(0,r.__)("Caret (Right)","gutentweaks")},{name:"arrow-r",label:(0,r.__)("Arrow (Right)","gutentweaks")},{name:"numeric",label:(0,r.__)("Numeric","gutentweaks")},{name:"star",label:(0,r.__)("Star","gutentweaks")},{name:"dash",label:(0,r.__)("Dash","gutentweaks")}]}])}))}(); \ No newline at end of file From 87b66353d79168f3ab7e60da2441477133c68771 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 17 Aug 2023 05:52:44 -0500 Subject: [PATCH 2/3] enhance(extensions): Disable the `core/details` block type --- resources/js/extensions/disable-block-types.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/js/extensions/disable-block-types.js b/resources/js/extensions/disable-block-types.js index 631d80a..cd9e30c 100644 --- a/resources/js/extensions/disable-block-types.js +++ b/resources/js/extensions/disable-block-types.js @@ -60,6 +60,7 @@ const blacklist = [ 'core/site-title', 'core/social-link', 'core/tag-cloud', + 'core/details', 'core/template-part', 'core/term-description', 'core/verse', From b790202128cb29c9ecf26c9383642592879856af Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 17 Aug 2023 05:52:54 -0500 Subject: [PATCH 3/3] chore(plugin): Bump plugin to v1.1.1 --- plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.php b/plugin.php index ef22662..64194dc 100644 --- a/plugin.php +++ b/plugin.php @@ -4,7 +4,7 @@ * Plugin Name: GutenTweaks * Plugin URI: https://github.com/log1x/gutentweaks * Description: A plugin containing a few Gutenberg tweaks. - * Version: 1.1.0 + * Version: 1.1.1 * Author: Brandon Nifong * Author URI: https://github.com/log1x * Licence: MIT