@wordpress/customize-widgets 5.0.4 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.2.0 (2024-06-26)
6
+
7
+ ## 5.1.0 (2024-06-15)
8
+
5
9
  ## 5.0.0 (2024-05-31)
6
10
 
7
11
  ### Breaking Changes
@@ -125,11 +129,11 @@
125
129
 
126
130
  ## 3.0.0 (2022-02-10)
127
131
 
128
- ### Breaking Change
132
+ ### Breaking Changes
129
133
 
130
134
  - The `GUTENBERG_PHASE` environment variable has been renamed to `IS_GUTENBERG_PLUGIN` and is now a boolean ([#38202](https://github.com/WordPress/gutenberg/pull/38202)).
131
135
 
132
- ### Bug Fix
136
+ ### Bug Fixes
133
137
 
134
138
  - Removed unused `@wordpress/a11y` dependency ([#38388](https://github.com/WordPress/gutenberg/pull/38388)).
135
139
 
@@ -137,7 +141,7 @@
137
141
 
138
142
  ## 2.0.0 (2021-07-29)
139
143
 
140
- ### Breaking Change
144
+ ### Breaking Changes
141
145
 
142
146
  - Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
143
147
 
package/build/index.js CHANGED
@@ -79,10 +79,12 @@ function initialize(editorName, blockEditorSettings) {
79
79
  sidebarControls.push(control);
80
80
  }
81
81
  });
82
- (0, _element.createRoot)(container).render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_customizeWidgets.default, {
83
- api: wp.customize,
84
- sidebarControls: sidebarControls,
85
- blockEditorSettings: blockEditorSettings
82
+ (0, _element.createRoot)(container).render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_element.StrictMode, {
83
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_customizeWidgets.default, {
84
+ api: wp.customize,
85
+ sidebarControls: sidebarControls,
86
+ blockEditorSettings: blockEditorSettings
87
+ })
86
88
  }));
87
89
  });
88
90
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_blockLibrary","_widgets","_blocks","_data","_preferences","_customizeWidgets","_interopRequireDefault","_sidebarSection","_sidebarControl","_jsxRuntime","_store","wp","window","DISABLED_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","initialize","editorName","blockEditorSettings","dispatch","preferencesStore","setDefaults","fixedToolbar","welcomeGuide","blocksStore","reapplyBlockTypeFilters","coreBlocks","__experimentalGetCoreBlocks","filter","block","includes","name","startsWith","registerCoreBlocks","registerLegacyWidgetBlock","globalThis","IS_GUTENBERG_PLUGIN","__experimentalRegisterExperimentalCoreBlocks","enableFSEBlocks","registerLegacyWidgetVariations","registerWidgetGroupBlock","setFreeformContentHandlerName","SidebarControl","getSidebarControl","customize","sectionConstructor","sidebar","getSidebarSection","controlConstructor","sidebar_block_editor","container","document","createElement","body","appendChild","bind","sidebarControls","control","each","push","createRoot","render","jsx","default","api"],"sources":["@wordpress/customize-widgets/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport CustomizeWidgets from './components/customize-widgets';\nimport getSidebarSection from './controls/sidebar-section';\nimport getSidebarControl from './controls/sidebar-control';\nimport './filters';\n\nconst { wp } = window;\n\nconst DISABLED_BLOCKS = [\n\t'core/more',\n\t'core/block',\n\t'core/freeform',\n\t'core/template-part',\n];\nconst ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;\n\n/**\n * Initializes the widgets block editor in the customizer.\n *\n * @param {string} editorName The editor name.\n * @param {Object} blockEditorSettings Block editor settings.\n */\nexport function initialize( editorName, blockEditorSettings ) {\n\tdispatch( preferencesStore ).setDefaults( 'core/customize-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tDISABLED_BLOCKS.includes( block.name ) ||\n\t\t\tblock.name.startsWith( 'core/post' ) ||\n\t\t\tblock.name.startsWith( 'core/query' ) ||\n\t\t\tblock.name.startsWith( 'core/site' ) ||\n\t\t\tblock.name.startsWith( 'core/navigation' )\n\t\t);\n\t} );\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: ENABLE_EXPERIMENTAL_FSE_BLOCKS,\n\t\t} );\n\t}\n\tregisterLegacyWidgetVariations( blockEditorSettings );\n\tregisterWidgetGroupBlock();\n\n\t// As we are unregistering `core/freeform` to avoid the Classic block, we must\n\t// replace it with something as the default freeform content handler. Failure to\n\t// do this will result in errors in the default block parser.\n\t// see: https://github.com/WordPress/gutenberg/issues/33097\n\tsetFreeformContentHandlerName( 'core/html' );\n\n\tconst SidebarControl = getSidebarControl( blockEditorSettings );\n\n\twp.customize.sectionConstructor.sidebar = getSidebarSection();\n\twp.customize.controlConstructor.sidebar_block_editor = SidebarControl;\n\n\tconst container = document.createElement( 'div' );\n\tdocument.body.appendChild( container );\n\n\twp.customize.bind( 'ready', () => {\n\t\tconst sidebarControls = [];\n\t\twp.customize.control.each( ( control ) => {\n\t\t\tif ( control instanceof SidebarControl ) {\n\t\t\t\tsidebarControls.push( control );\n\t\t\t}\n\t\t} );\n\n\t\tcreateRoot( container ).render(\n\t\t\t<CustomizeWidgets\n\t\t\t\tapi={ wp.customize }\n\t\t\t\tsidebarControls={ sidebarControls }\n\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t/>\n\t\t);\n\t} );\n}\nexport { store } from './store';\n"],"mappings":";;;;;;;;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AAKA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAKA,IAAAM,iBAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAD,sBAAA,CAAAP,OAAA;AACA,IAAAS,eAAA,GAAAF,sBAAA,CAAAP,OAAA;AACAA,OAAA;AAAmB,IAAAU,WAAA,GAAAV,OAAA;AA2EnB,IAAAW,MAAA,GAAAX,OAAA;AAtGA;AACA;AACA;;AAmBA;AACA;AACA;;AAMA,MAAM;EAAEY;AAAG,CAAC,GAAGC,MAAM;AAErB,MAAMC,eAAe,GAAG,CACvB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,oBAAoB,CACpB;AACD,MAAMC,8BAA8B,GAAG,KAAK;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,UAAUA,CAAEC,UAAU,EAAEC,mBAAmB,EAAG;EAC7D,IAAAC,cAAQ,EAAEC,kBAAiB,CAAC,CAACC,WAAW,CAAE,wBAAwB,EAAE;IACnEC,YAAY,EAAE,KAAK;IACnBC,YAAY,EAAE;EACf,CAAE,CAAC;EAEH,IAAAJ,cAAQ,EAAEK,aAAY,CAAC,CAACC,uBAAuB,CAAC,CAAC;EACjD,MAAMC,UAAU,GAAG,IAAAC,yCAA2B,EAAC,CAAC,CAACC,MAAM,CAAIC,KAAK,IAAM;IACrE,OAAO,EACN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ChC;IACD,CAAE,CAAC;IAEH,IAAAG,mBAAU,EAAEV,SAAU,CAAC,CAACW,MAAM,eAC7B,IAAAnD,WAAA,CAAAoD,GAAA,EAACxD,iBAAA,CAAAyD,OAAgB;MAChBC,GAAG,EAAGpD,EAAE,CAACgC,SAAW;MACpBY,eAAe,EAAGA,eAAiB;MACnCtC,mBAAmB,EAAGA;IAAqB,CAC3C,CACF,CAAC;EACF,CAAE,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["_element","require","_blockLibrary","_widgets","_blocks","_data","_preferences","_customizeWidgets","_interopRequireDefault","_sidebarSection","_sidebarControl","_jsxRuntime","_store","wp","window","DISABLED_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","initialize","editorName","blockEditorSettings","dispatch","preferencesStore","setDefaults","fixedToolbar","welcomeGuide","blocksStore","reapplyBlockTypeFilters","coreBlocks","__experimentalGetCoreBlocks","filter","block","includes","name","startsWith","registerCoreBlocks","registerLegacyWidgetBlock","globalThis","IS_GUTENBERG_PLUGIN","__experimentalRegisterExperimentalCoreBlocks","enableFSEBlocks","registerLegacyWidgetVariations","registerWidgetGroupBlock","setFreeformContentHandlerName","SidebarControl","getSidebarControl","customize","sectionConstructor","sidebar","getSidebarSection","controlConstructor","sidebar_block_editor","container","document","createElement","body","appendChild","bind","sidebarControls","control","each","push","createRoot","render","jsx","StrictMode","children","default","api"],"sources":["@wordpress/customize-widgets/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport CustomizeWidgets from './components/customize-widgets';\nimport getSidebarSection from './controls/sidebar-section';\nimport getSidebarControl from './controls/sidebar-control';\nimport './filters';\n\nconst { wp } = window;\n\nconst DISABLED_BLOCKS = [\n\t'core/more',\n\t'core/block',\n\t'core/freeform',\n\t'core/template-part',\n];\nconst ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;\n\n/**\n * Initializes the widgets block editor in the customizer.\n *\n * @param {string} editorName The editor name.\n * @param {Object} blockEditorSettings Block editor settings.\n */\nexport function initialize( editorName, blockEditorSettings ) {\n\tdispatch( preferencesStore ).setDefaults( 'core/customize-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tDISABLED_BLOCKS.includes( block.name ) ||\n\t\t\tblock.name.startsWith( 'core/post' ) ||\n\t\t\tblock.name.startsWith( 'core/query' ) ||\n\t\t\tblock.name.startsWith( 'core/site' ) ||\n\t\t\tblock.name.startsWith( 'core/navigation' )\n\t\t);\n\t} );\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: ENABLE_EXPERIMENTAL_FSE_BLOCKS,\n\t\t} );\n\t}\n\tregisterLegacyWidgetVariations( blockEditorSettings );\n\tregisterWidgetGroupBlock();\n\n\t// As we are unregistering `core/freeform` to avoid the Classic block, we must\n\t// replace it with something as the default freeform content handler. Failure to\n\t// do this will result in errors in the default block parser.\n\t// see: https://github.com/WordPress/gutenberg/issues/33097\n\tsetFreeformContentHandlerName( 'core/html' );\n\n\tconst SidebarControl = getSidebarControl( blockEditorSettings );\n\n\twp.customize.sectionConstructor.sidebar = getSidebarSection();\n\twp.customize.controlConstructor.sidebar_block_editor = SidebarControl;\n\n\tconst container = document.createElement( 'div' );\n\tdocument.body.appendChild( container );\n\n\twp.customize.bind( 'ready', () => {\n\t\tconst sidebarControls = [];\n\t\twp.customize.control.each( ( control ) => {\n\t\t\tif ( control instanceof SidebarControl ) {\n\t\t\t\tsidebarControls.push( control );\n\t\t\t}\n\t\t} );\n\n\t\tcreateRoot( container ).render(\n\t\t\t<StrictMode>\n\t\t\t\t<CustomizeWidgets\n\t\t\t\t\tapi={ wp.customize }\n\t\t\t\t\tsidebarControls={ sidebarControls }\n\t\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t\t/>\n\t\t\t</StrictMode>\n\t\t);\n\t} );\n}\nexport { store } from './store';\n"],"mappings":";;;;;;;;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AAKA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAKA,IAAAM,iBAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAD,sBAAA,CAAAP,OAAA;AACA,IAAAS,eAAA,GAAAF,sBAAA,CAAAP,OAAA;AACAA,OAAA;AAAmB,IAAAU,WAAA,GAAAV,OAAA;AA6EnB,IAAAW,MAAA,GAAAX,OAAA;AAxGA;AACA;AACA;;AAmBA;AACA;AACA;;AAMA,MAAM;EAAEY;AAAG,CAAC,GAAGC,MAAM;AAErB,MAAMC,eAAe,GAAG,CACvB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,oBAAoB,CACpB;AACD,MAAMC,8BAA8B,GAAG,KAAK;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,UAAUA,CAAEC,UAAU,EAAEC,mBAAmB,EAAG;EAC7D,IAAAC,cAAQ,EAAEC,kBAAiB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,SAAU,CAAC;EAEtCtC,EAAE,CAACgC,SAAS,CAACW,IAAI,CAAE,OAAO,EAAE,MAAM;IACjC,MAAMC,eAAe,GAAG,EAAE;IAC1B5C,EAAE,CAACgC,SAAS,CAACa,OAAO,CAACC,IAAI,CAAID,OAAO,IAAM;MACzC,IAAKA,OAAO,YAAYf,cAAc,EAAG;QACxCc,eAAe,CAACG,IAAI,CAAEF,OAAQ,CAAC;MAChC;IACD,CAAE,CAAC;IAEH,IAAAG,mBAAU,EAAEV,SAAU,CAAC,CAACW,MAAM,eAC7B,IAAAnD,WAAA,CAAAoD,GAAA,EAAC/D,QAAA,CAAAgE,UAAU;MAAAC,QAAA,eACV,IAAAtD,WAAA,CAAAoD,GAAA,EAACxD,iBAAA,CAAA2D,OAAgB;QAChBC,GAAG,EAAGtD,EAAE,CAACgC,SAAW;QACpBY,eAAe,EAAGA,eAAiB;QACnCtC,mBAAmB,EAAGA;MAAqB,CAC3C;IAAC,CACS,CACb,CAAC;EACF,CAAE,CAAC;AACJ","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { createRoot } from '@wordpress/element';
4
+ import { createRoot, StrictMode } from '@wordpress/element';
5
5
  import { registerCoreBlocks, __experimentalGetCoreBlocks, __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library';
6
6
  import { registerLegacyWidgetBlock, registerLegacyWidgetVariations, registerWidgetGroupBlock } from '@wordpress/widgets';
7
7
  import { setFreeformContentHandlerName, store as blocksStore } from '@wordpress/blocks';
@@ -64,10 +64,12 @@ export function initialize(editorName, blockEditorSettings) {
64
64
  sidebarControls.push(control);
65
65
  }
66
66
  });
67
- createRoot(container).render( /*#__PURE__*/_jsx(CustomizeWidgets, {
68
- api: wp.customize,
69
- sidebarControls: sidebarControls,
70
- blockEditorSettings: blockEditorSettings
67
+ createRoot(container).render( /*#__PURE__*/_jsx(StrictMode, {
68
+ children: /*#__PURE__*/_jsx(CustomizeWidgets, {
69
+ api: wp.customize,
70
+ sidebarControls: sidebarControls,
71
+ blockEditorSettings: blockEditorSettings
72
+ })
71
73
  }));
72
74
  });
73
75
  }
@@ -1 +1 @@
1
- {"version":3,"names":["createRoot","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","registerLegacyWidgetBlock","registerLegacyWidgetVariations","registerWidgetGroupBlock","setFreeformContentHandlerName","store","blocksStore","dispatch","preferencesStore","CustomizeWidgets","getSidebarSection","getSidebarControl","jsx","_jsx","wp","window","DISABLED_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","initialize","editorName","blockEditorSettings","setDefaults","fixedToolbar","welcomeGuide","reapplyBlockTypeFilters","coreBlocks","filter","block","includes","name","startsWith","globalThis","IS_GUTENBERG_PLUGIN","enableFSEBlocks","SidebarControl","customize","sectionConstructor","sidebar","controlConstructor","sidebar_block_editor","container","document","createElement","body","appendChild","bind","sidebarControls","control","each","push","render","api"],"sources":["@wordpress/customize-widgets/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport CustomizeWidgets from './components/customize-widgets';\nimport getSidebarSection from './controls/sidebar-section';\nimport getSidebarControl from './controls/sidebar-control';\nimport './filters';\n\nconst { wp } = window;\n\nconst DISABLED_BLOCKS = [\n\t'core/more',\n\t'core/block',\n\t'core/freeform',\n\t'core/template-part',\n];\nconst ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;\n\n/**\n * Initializes the widgets block editor in the customizer.\n *\n * @param {string} editorName The editor name.\n * @param {Object} blockEditorSettings Block editor settings.\n */\nexport function initialize( editorName, blockEditorSettings ) {\n\tdispatch( preferencesStore ).setDefaults( 'core/customize-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tDISABLED_BLOCKS.includes( block.name ) ||\n\t\t\tblock.name.startsWith( 'core/post' ) ||\n\t\t\tblock.name.startsWith( 'core/query' ) ||\n\t\t\tblock.name.startsWith( 'core/site' ) ||\n\t\t\tblock.name.startsWith( 'core/navigation' )\n\t\t);\n\t} );\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: ENABLE_EXPERIMENTAL_FSE_BLOCKS,\n\t\t} );\n\t}\n\tregisterLegacyWidgetVariations( blockEditorSettings );\n\tregisterWidgetGroupBlock();\n\n\t// As we are unregistering `core/freeform` to avoid the Classic block, we must\n\t// replace it with something as the default freeform content handler. Failure to\n\t// do this will result in errors in the default block parser.\n\t// see: https://github.com/WordPress/gutenberg/issues/33097\n\tsetFreeformContentHandlerName( 'core/html' );\n\n\tconst SidebarControl = getSidebarControl( blockEditorSettings );\n\n\twp.customize.sectionConstructor.sidebar = getSidebarSection();\n\twp.customize.controlConstructor.sidebar_block_editor = SidebarControl;\n\n\tconst container = document.createElement( 'div' );\n\tdocument.body.appendChild( container );\n\n\twp.customize.bind( 'ready', () => {\n\t\tconst sidebarControls = [];\n\t\twp.customize.control.each( ( control ) => {\n\t\t\tif ( control instanceof SidebarControl ) {\n\t\t\t\tsidebarControls.push( control );\n\t\t\t}\n\t\t} );\n\n\t\tcreateRoot( container ).render(\n\t\t\t<CustomizeWidgets\n\t\t\t\tapi={ wp.customize }\n\t\t\t\tsidebarControls={ sidebarControls }\n\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t/>\n\t\t);\n\t} );\n}\nexport { store } from './store';\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;AAC/C,SACCC,kBAAkB,EAClBC,2BAA2B,EAC3BC,4CAA4C,QACtC,0BAA0B;AACjC,SACCC,yBAAyB,EACzBC,8BAA8B,EAC9BC,wBAAwB,QAClB,oBAAoB;AAC3B,SACCC,6BAA6B,EAC7BC,KAAK,IAAIC,WAAW,QACd,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASF,KAAK,IAAIG,gBAAgB,QAAQ,wBAAwB;;AAElE;AACA;AACA;AACA,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,OAAOC,iBAAiB,MAAM,4BAA4B;AAC1D,OAAOC,iBAAiB,MAAM,4BAA4B;AAC1D,OAAO,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnB,MAAM;EAAEC;AAAG,CAAC,GAAGC,MAAM;AAErB,MAAMC,eAAe,GAAG,CACvB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,oBAAoB,CACpB;AACD,MAAMC,8BAA8B,GAAG,KAAK;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAAEC,UAAU,EAAEC,mBAAmB,EAAG;EAC7Db,QAAQ,CAAEC,gBAAiB,CAAC,CAACa,WAAW,CAAE,wBAAwB,EAAE;IACnEC,YAAY,EAAE,KAAK;IACnBC,YAAY,EAAE;EACf,CAAE,CAAC;EAEHhB,QAAQ,CAAED,WAAY,CAAC,CAACkB,uBAAuB,CAAC,CAAC;EACjD,MAAMC,UAAU,GAAG1B,2BAA2B,CAAC,CAAC,CAAC2B,MAAM,CAAIC,KAAK,IAAM;IACrE,OAAO,EACNX,eAAe,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,CAACU,MAAM,eAC7BrC,IAAA,CAACJ,gBAAgB;MAChB0C,GAAG,EAAGrC,EAAE,CAACqB,SAAW;MACpBW,eAAe,EAAGA,eAAiB;MACnC1B,mBAAmB,EAAGA;IAAqB,CAC3C,CACF,CAAC;EACF,CAAE,CAAC;AACJ;AACA,SAASf,KAAK,QAAQ,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["createRoot","StrictMode","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","registerLegacyWidgetBlock","registerLegacyWidgetVariations","registerWidgetGroupBlock","setFreeformContentHandlerName","store","blocksStore","dispatch","preferencesStore","CustomizeWidgets","getSidebarSection","getSidebarControl","jsx","_jsx","wp","window","DISABLED_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","initialize","editorName","blockEditorSettings","setDefaults","fixedToolbar","welcomeGuide","reapplyBlockTypeFilters","coreBlocks","filter","block","includes","name","startsWith","globalThis","IS_GUTENBERG_PLUGIN","enableFSEBlocks","SidebarControl","customize","sectionConstructor","sidebar","controlConstructor","sidebar_block_editor","container","document","createElement","body","appendChild","bind","sidebarControls","control","each","push","render","children","api"],"sources":["@wordpress/customize-widgets/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport CustomizeWidgets from './components/customize-widgets';\nimport getSidebarSection from './controls/sidebar-section';\nimport getSidebarControl from './controls/sidebar-control';\nimport './filters';\n\nconst { wp } = window;\n\nconst DISABLED_BLOCKS = [\n\t'core/more',\n\t'core/block',\n\t'core/freeform',\n\t'core/template-part',\n];\nconst ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;\n\n/**\n * Initializes the widgets block editor in the customizer.\n *\n * @param {string} editorName The editor name.\n * @param {Object} blockEditorSettings Block editor settings.\n */\nexport function initialize( editorName, blockEditorSettings ) {\n\tdispatch( preferencesStore ).setDefaults( 'core/customize-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tDISABLED_BLOCKS.includes( block.name ) ||\n\t\t\tblock.name.startsWith( 'core/post' ) ||\n\t\t\tblock.name.startsWith( 'core/query' ) ||\n\t\t\tblock.name.startsWith( 'core/site' ) ||\n\t\t\tblock.name.startsWith( 'core/navigation' )\n\t\t);\n\t} );\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: ENABLE_EXPERIMENTAL_FSE_BLOCKS,\n\t\t} );\n\t}\n\tregisterLegacyWidgetVariations( blockEditorSettings );\n\tregisterWidgetGroupBlock();\n\n\t// As we are unregistering `core/freeform` to avoid the Classic block, we must\n\t// replace it with something as the default freeform content handler. Failure to\n\t// do this will result in errors in the default block parser.\n\t// see: https://github.com/WordPress/gutenberg/issues/33097\n\tsetFreeformContentHandlerName( 'core/html' );\n\n\tconst SidebarControl = getSidebarControl( blockEditorSettings );\n\n\twp.customize.sectionConstructor.sidebar = getSidebarSection();\n\twp.customize.controlConstructor.sidebar_block_editor = SidebarControl;\n\n\tconst container = document.createElement( 'div' );\n\tdocument.body.appendChild( container );\n\n\twp.customize.bind( 'ready', () => {\n\t\tconst sidebarControls = [];\n\t\twp.customize.control.each( ( control ) => {\n\t\t\tif ( control instanceof SidebarControl ) {\n\t\t\t\tsidebarControls.push( control );\n\t\t\t}\n\t\t} );\n\n\t\tcreateRoot( container ).render(\n\t\t\t<StrictMode>\n\t\t\t\t<CustomizeWidgets\n\t\t\t\t\tapi={ wp.customize }\n\t\t\t\t\tsidebarControls={ sidebarControls }\n\t\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t\t/>\n\t\t\t</StrictMode>\n\t\t);\n\t} );\n}\nexport { store } from './store';\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,EAAEC,UAAU,QAAQ,oBAAoB;AAC3D,SACCC,kBAAkB,EAClBC,2BAA2B,EAC3BC,4CAA4C,QACtC,0BAA0B;AACjC,SACCC,yBAAyB,EACzBC,8BAA8B,EAC9BC,wBAAwB,QAClB,oBAAoB;AAC3B,SACCC,6BAA6B,EAC7BC,KAAK,IAAIC,WAAW,QACd,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASF,KAAK,IAAIG,gBAAgB,QAAQ,wBAAwB;;AAElE;AACA;AACA;AACA,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,OAAOC,iBAAiB,MAAM,4BAA4B;AAC1D,OAAOC,iBAAiB,MAAM,4BAA4B;AAC1D,OAAO,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnB,MAAM;EAAEC;AAAG,CAAC,GAAGC,MAAM;AAErB,MAAMC,eAAe,GAAG,CACvB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,oBAAoB,CACpB;AACD,MAAMC,8BAA8B,GAAG,KAAK;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAAEC,UAAU,EAAEC,mBAAmB,EAAG;EAC7Db,QAAQ,CAAEC,gBAAiB,CAAC,CAACa,WAAW,CAAE,wBAAwB,EAAE;IACnEC,YAAY,EAAE,KAAK;IACnBC,YAAY,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,SAAS,CAACY,OAAO,CAACC,IAAI,CAAID,OAAO,IAAM;MACzC,IAAKA,OAAO,YAAYb,cAAc,EAAG;QACxCY,eAAe,CAACG,IAAI,CAAEF,OAAQ,CAAC;MAChC;IACD,CAAE,CAAC;IAEHnD,UAAU,CAAE4C,SAAU,CAAC,CAACU,MAAM,eAC7BrC,IAAA,CAAChB,UAAU;MAAAsD,QAAA,eACVtC,IAAA,CAACJ,gBAAgB;QAChB2C,GAAG,EAAGtC,EAAE,CAACqB,SAAW;QACpBW,eAAe,EAAGA,eAAiB;QACnC1B,mBAAmB,EAAGA;MAAqB,CAC3C;IAAC,CACS,CACb,CAAC;EACF,CAAE,CAAC;AACJ;AACA,SAASf,KAAK,QAAQ,SAAS","ignoreList":[]}
@@ -224,7 +224,6 @@
224
224
  .customize-widgets-keyboard-shortcut-help-modal__shortcut-description {
225
225
  flex: 1;
226
226
  margin: 0;
227
- flex-basis: auto;
228
227
  }
229
228
  .customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
230
229
  display: block;
@@ -224,7 +224,6 @@
224
224
  .customize-widgets-keyboard-shortcut-help-modal__shortcut-description {
225
225
  flex: 1;
226
226
  margin: 0;
227
- flex-basis: auto;
228
227
  }
229
228
  .customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
230
229
  display: block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/customize-widgets",
3
- "version": "5.0.4",
3
+ "version": "5.2.0",
4
4
  "description": "Widgets blocks in Customizer Module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -25,26 +25,26 @@
25
25
  "react-native": "src/index",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.16.0",
28
- "@wordpress/block-editor": "^13.0.3",
29
- "@wordpress/block-library": "^9.0.4",
30
- "@wordpress/blocks": "^13.0.3",
31
- "@wordpress/components": "^28.0.3",
32
- "@wordpress/compose": "^7.0.1",
33
- "@wordpress/core-data": "^7.0.3",
34
- "@wordpress/data": "^10.0.2",
35
- "@wordpress/dom": "^4.0.1",
36
- "@wordpress/element": "^6.0.1",
37
- "@wordpress/hooks": "^4.0.1",
38
- "@wordpress/i18n": "^5.0.1",
39
- "@wordpress/icons": "^10.0.2",
40
- "@wordpress/interface": "^6.0.3",
41
- "@wordpress/is-shallow-equal": "^5.0.1",
42
- "@wordpress/keyboard-shortcuts": "^5.0.2",
43
- "@wordpress/keycodes": "^4.0.1",
44
- "@wordpress/media-utils": "^5.0.1",
45
- "@wordpress/preferences": "^4.0.3",
46
- "@wordpress/private-apis": "^1.0.2",
47
- "@wordpress/widgets": "^4.0.3",
28
+ "@wordpress/block-editor": "^13.2.0",
29
+ "@wordpress/block-library": "^9.2.0",
30
+ "@wordpress/blocks": "^13.2.0",
31
+ "@wordpress/components": "^28.2.0",
32
+ "@wordpress/compose": "^7.2.0",
33
+ "@wordpress/core-data": "^7.2.0",
34
+ "@wordpress/data": "^10.2.0",
35
+ "@wordpress/dom": "^4.2.0",
36
+ "@wordpress/element": "^6.2.0",
37
+ "@wordpress/hooks": "^4.2.0",
38
+ "@wordpress/i18n": "^5.2.0",
39
+ "@wordpress/icons": "^10.2.0",
40
+ "@wordpress/interface": "^6.2.0",
41
+ "@wordpress/is-shallow-equal": "^5.2.0",
42
+ "@wordpress/keyboard-shortcuts": "^5.2.0",
43
+ "@wordpress/keycodes": "^4.2.0",
44
+ "@wordpress/media-utils": "^5.2.0",
45
+ "@wordpress/preferences": "^4.2.0",
46
+ "@wordpress/private-apis": "^1.2.0",
47
+ "@wordpress/widgets": "^4.2.0",
48
48
  "clsx": "^2.1.1",
49
49
  "fast-deep-equal": "^3.1.3"
50
50
  },
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "9dd5f8dcfa4fc7242e5d48be20ee789ad087b432"
58
+ "gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
59
59
  }
@@ -33,9 +33,6 @@
33
33
  &__shortcut-description {
34
34
  flex: 1;
35
35
  margin: 0;
36
-
37
- // IE 11 flex item fix - ensure the item does not collapse.
38
- flex-basis: auto;
39
36
  }
40
37
 
41
38
  &__shortcut-key-combination {
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { createRoot } from '@wordpress/element';
4
+ import { createRoot, StrictMode } from '@wordpress/element';
5
5
  import {
6
6
  registerCoreBlocks,
7
7
  __experimentalGetCoreBlocks,
@@ -92,11 +92,13 @@ export function initialize( editorName, blockEditorSettings ) {
92
92
  } );
93
93
 
94
94
  createRoot( container ).render(
95
- <CustomizeWidgets
96
- api={ wp.customize }
97
- sidebarControls={ sidebarControls }
98
- blockEditorSettings={ blockEditorSettings }
99
- />
95
+ <StrictMode>
96
+ <CustomizeWidgets
97
+ api={ wp.customize }
98
+ sidebarControls={ sidebarControls }
99
+ blockEditorSettings={ blockEditorSettings }
100
+ />
101
+ </StrictMode>
100
102
  );
101
103
  } );
102
104
  }