@wordpress/edit-widgets 6.35.2-next.dc3f6d3c1.0 → 6.36.1-next.6deb34194.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,7 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 6.35.1-next.0 (2025-11-18)
5
+ ## 6.36.0 (2025-11-26)
6
6
 
7
7
  ### Internal
8
8
 
package/build/index.js CHANGED
@@ -60,7 +60,7 @@ function initializeEditor(id, settings) {
60
60
  const target = document.getElementById(id);
61
61
  const root = (0, import_element.createRoot)(target);
62
62
  const coreBlocks = (0, import_block_library.__experimentalGetCoreBlocks)().filter((block) => {
63
- return !(disabledBlocks.includes(block.name) || block.name.startsWith("core/post") || block.name.startsWith("core/query") || block.name.startsWith("core/site") || block.name.startsWith("core/navigation"));
63
+ return !(disabledBlocks.includes(block.name) || block.name.startsWith("core/post") || block.name.startsWith("core/query") || block.name.startsWith("core/site") || block.name.startsWith("core/navigation") || block.name.startsWith("core/term"));
64
64
  });
65
65
  (0, import_data.dispatch)(import_preferences.store).setDefaults("core/edit-widgets", {
66
66
  fixedToolbar: false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tunstable__bootstrapServerSideBlockDefinitions, // eslint-disable-line camelcase\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { StrictMode, createRoot } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { __experimentalFetchLinkSuggestions as fetchLinkSuggestions } from '@wordpress/core-data';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport './store';\nimport './filters';\nimport * as widgetArea from './blocks/widget-area';\nimport Layout from './components/layout';\nimport {\n\tALLOW_REUSABLE_BLOCKS,\n\tENABLE_EXPERIMENTAL_FSE_BLOCKS,\n} from './constants';\n\nconst disabledBlocks = [\n\t'core/more',\n\t'core/freeform',\n\t'core/template-part',\n\t...( ALLOW_REUSABLE_BLOCKS ? [] : [ 'core/block' ] ),\n];\n\n/**\n * Initializes the block editor in the widgets screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Block editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tdisabledBlocks.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\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t\tshowBlockBreadcrumbs: true,\n\t\tthemeStyles: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\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( settings );\n\tregisterBlock( widgetArea );\n\tregisterWidgetGroupBlock();\n\n\tsettings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>\n\t\tfetchLinkSuggestions( search, searchOptions, settings );\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\troot.render(\n\t\t<StrictMode>\n\t\t\t<Layout blockEditorSettings={ settings } />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Compatibility export under the old `initialize` name.\n */\nexport const initialize = initializeEditor;\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editWidgets.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tif ( metadata ) {\n\t\tunstable__bootstrapServerSideBlockDefinitions( { [ name ]: metadata } );\n\t}\n\tregisterBlockType( name, settings );\n};\n\nexport { store } from './store';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAKO;AACP,kBAAyB;AACzB,wBAAuB;AACvB,qBAAuC;AACvC,2BAIO;AACP,uBAA2E;AAC3E,qBAIO;AACP,yBAA0C;AAK1C,mBAAO;AACP,qBAAO;AACP,iBAA4B;AAC5B,oBAAmB;AACnB,uBAGO;AA8FP,IAAAA,gBAAsB;AAnCnB;AAzDH,IAAM,iBAAiB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAK,yCAAwB,CAAC,IAAI,CAAE,YAAa;AAClD;AAQO,SAAS,iBAAkB,IAAI,UAAW;AAChD,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,WAAO,2BAAY,MAAO;AAEhC,QAAM,iBAAa,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ions, // eslint-disable-line camelcase\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { StrictMode, createRoot } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { __experimentalFetchLinkSuggestions as fetchLinkSuggestions } from '@wordpress/core-data';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport './store';\nimport './filters';\nimport * as widgetArea from './blocks/widget-area';\nimport Layout from './components/layout';\nimport {\n\tALLOW_REUSABLE_BLOCKS,\n\tENABLE_EXPERIMENTAL_FSE_BLOCKS,\n} from './constants';\n\nconst disabledBlocks = [\n\t'core/more',\n\t'core/freeform',\n\t'core/template-part',\n\t...( ALLOW_REUSABLE_BLOCKS ? [] : [ 'core/block' ] ),\n];\n\n/**\n * Initializes the block editor in the widgets screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Block editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tdisabledBlocks.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\tblock.name.startsWith( 'core/term' )\n\t\t);\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t\tshowBlockBreadcrumbs: true,\n\t\tthemeStyles: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\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( settings );\n\tregisterBlock( widgetArea );\n\tregisterWidgetGroupBlock();\n\n\tsettings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>\n\t\tfetchLinkSuggestions( search, searchOptions, settings );\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\troot.render(\n\t\t<StrictMode>\n\t\t\t<Layout blockEditorSettings={ settings } />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Compatibility export under the old `initialize` name.\n */\nexport const initialize = initializeEditor;\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editWidgets.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tif ( metadata ) {\n\t\tunstable__bootstrapServerSideBlockDefinitions( { [ name ]: metadata } );\n\t}\n\tregisterBlockType( name, settings );\n};\n\nexport { store } from './store';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAKO;AACP,kBAAyB;AACzB,wBAAuB;AACvB,qBAAuC;AACvC,2BAIO;AACP,uB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pC,wBAAAC,SAAY,qCAAqC;AAAA,IAChD,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;AAOA,IAAM,gBAAgB,CAAE,UAAW;AAClC,MAAK,CAAE,OAAQ;AACd;AAAA,EACD;AACA,QAAM,EAAE,UAAU,UAAU,KAAK,IAAI;AACrC,MAAK,UAAW;AACf,qEAA+C,EAAE,CAAE,IAAK,GAAG,SAAS,CAAE;AAAA,EACvE;AACA,uCAAmB,MAAM,QAAS;AACnC;",
6
6
  "names": ["import_store", "preferencesStore", "blocksStore", "fetchLinkSuggestions", "Layout", "deprecated"]
7
7
  }
@@ -40,7 +40,7 @@ function initializeEditor(id, settings) {
40
40
  const target = document.getElementById(id);
41
41
  const root = createRoot(target);
42
42
  const coreBlocks = __experimentalGetCoreBlocks().filter((block) => {
43
- return !(disabledBlocks.includes(block.name) || block.name.startsWith("core/post") || block.name.startsWith("core/query") || block.name.startsWith("core/site") || block.name.startsWith("core/navigation"));
43
+ return !(disabledBlocks.includes(block.name) || block.name.startsWith("core/post") || block.name.startsWith("core/query") || block.name.startsWith("core/site") || block.name.startsWith("core/navigation") || block.name.startsWith("core/term"));
44
44
  });
45
45
  dispatch(preferencesStore).setDefaults("core/edit-widgets", {
46
46
  fixedToolbar: false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tunstable__bootstrapServerSideBlockDefinitions, // eslint-disable-line camelcase\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { StrictMode, createRoot } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { __experimentalFetchLinkSuggestions as fetchLinkSuggestions } from '@wordpress/core-data';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport './store';\nimport './filters';\nimport * as widgetArea from './blocks/widget-area';\nimport Layout from './components/layout';\nimport {\n\tALLOW_REUSABLE_BLOCKS,\n\tENABLE_EXPERIMENTAL_FSE_BLOCKS,\n} from './constants';\n\nconst disabledBlocks = [\n\t'core/more',\n\t'core/freeform',\n\t'core/template-part',\n\t...( ALLOW_REUSABLE_BLOCKS ? [] : [ 'core/block' ] ),\n];\n\n/**\n * Initializes the block editor in the widgets screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Block editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tdisabledBlocks.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\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t\tshowBlockBreadcrumbs: true,\n\t\tthemeStyles: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\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( settings );\n\tregisterBlock( widgetArea );\n\tregisterWidgetGroupBlock();\n\n\tsettings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>\n\t\tfetchLinkSuggestions( search, searchOptions, settings );\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\troot.render(\n\t\t<StrictMode>\n\t\t\t<Layout blockEditorSettings={ settings } />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Compatibility export under the old `initialize` name.\n */\nexport const initialize = initializeEditor;\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editWidgets.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tif ( metadata ) {\n\t\tunstable__bootstrapServerSideBlockDefinitions( { [ name ]: metadata } );\n\t}\n\tregisterBlockType( name, settings );\n};\n\nexport { store } from './store';\n"],
5
- "mappings": ";AAGA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,OACH;AACP,SAAS,gBAAgB;AACzB,OAAO,gBAAgB;AACvB,SAAS,YAAY,kBAAkB;AACvC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,sCAAsC,4BAA4B;AAC3E;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,SAAS,wBAAwB;AAK1C,OAAO;AACP,OAAO;AACP,YAAY,gBAAgB;AAC5B,OAAO,YAAY;AACnB;AAAA,EACC;AAAA,EACA;AAAA,OACM;AA8FP,SAAS,aAAa;AAnCnB;AAzDH,IAAM,iBAAiB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAK,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AmB,MAAM,QAAS;AACnC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tunstable__bootstrapServerSideBlockDefinitions, // eslint-disable-line camelcase\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { StrictMode, createRoot } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { __experimentalFetchLinkSuggestions as fetchLinkSuggestions } from '@wordpress/core-data';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport './store';\nimport './filters';\nimport * as widgetArea from './blocks/widget-area';\nimport Layout from './components/layout';\nimport {\n\tALLOW_REUSABLE_BLOCKS,\n\tENABLE_EXPERIMENTAL_FSE_BLOCKS,\n} from './constants';\n\nconst disabledBlocks = [\n\t'core/more',\n\t'core/freeform',\n\t'core/template-part',\n\t...( ALLOW_REUSABLE_BLOCKS ? [] : [ 'core/block' ] ),\n];\n\n/**\n * Initializes the block editor in the widgets screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Block editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tdisabledBlocks.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\tblock.name.startsWith( 'core/term' )\n\t\t);\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t\tshowBlockBreadcrumbs: true,\n\t\tthemeStyles: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\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( settings );\n\tregisterBlock( widgetArea );\n\tregisterWidgetGroupBlock();\n\n\tsettings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>\n\t\tfetchLinkSuggestions( search, searchOptions, settings );\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\troot.render(\n\t\t<StrictMode>\n\t\t\t<Layout blockEditorSettings={ settings } />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Compatibility export under the old `initialize` name.\n */\nexport const initialize = initializeEditor;\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editWidgets.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tif ( metadata ) {\n\t\tunstable__bootstrapServerSideBlockDefinitions( { [ name ]: metadata } );\n\t}\n\tregisterBlockType( name, settings );\n};\n\nexport { store } from './store';\n"],
5
+ "mappings": ";AAGA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EAC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qBAAsB,QAAQ,eAAe,QAAS;AAMvD,gCAA+B,WAAY;AAE3C,OAAK;AAAA,IACJ,oBAAC,cACA,8BAAC,UAAO,qBAAsB,UAAW,GAC1C;AAAA,EACD;AAEA,SAAO;AACR;AAKO,IAAM,aAAa;AAEnB,SAAS,qBAAqB;AACpC,aAAY,qCAAqC;AAAA,IAChD,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;AAOA,IAAM,gBAAgB,CAAE,UAAW;AAClC,MAAK,CAAE,OAAQ;AACd;AAAA,EACD;AACA,QAAM,EAAE,UAAU,UAAU,KAAK,IAAI;AACrC,MAAK,UAAW;AACf,kDAA+C,EAAE,CAAE,IAAK,GAAG,SAAS,CAAE;AAAA,EACvE;AACA,oBAAmB,MAAM,QAAS;AACnC;",
6
6
  "names": []
7
7
  }
@@ -195,27 +195,20 @@
195
195
  position: relative;
196
196
  z-index: 1;
197
197
  flex-flow: column;
198
- container: admin-ui-page/inline-size;
199
198
  }
200
199
 
201
- @media not (prefers-reduced-motion) {
202
- .admin-ui-page {
203
- transition: width ease-out 0.2s;
204
- }
205
- }
206
200
  .admin-ui-page__header {
207
- padding: 16px 48px;
201
+ padding: 16px 24px;
208
202
  border-bottom: 1px solid #f0f0f0;
209
203
  background: #fff;
210
204
  position: sticky;
211
205
  top: 0;
212
206
  }
213
207
 
214
- @container (max-width: 430px) {
215
- .admin-ui-page__header {
216
- padding: 16px 24px;
217
- }
208
+ .admin-ui-page__sidebar-toggle-slot:empty {
209
+ display: none;
218
210
  }
211
+
219
212
  .admin-ui-page__header-subtitle {
220
213
  padding-block-end: 8px;
221
214
  color: #757575;
@@ -234,14 +227,9 @@
234
227
  }
235
228
 
236
229
  .admin-ui-page__content.has-padding {
237
- padding: 16px 20px;
230
+ padding: 16px 24px;
238
231
  }
239
232
 
240
- @container (max-width: 430px) {
241
- .admin-ui-page__content.has-padding {
242
- padding: 16px 24px;
243
- }
244
- }
245
233
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
246
234
  width: auto;
247
235
  padding: 0 8px;
@@ -195,27 +195,20 @@
195
195
  position: relative;
196
196
  z-index: 1;
197
197
  flex-flow: column;
198
- container: admin-ui-page/inline-size;
199
198
  }
200
199
 
201
- @media not (prefers-reduced-motion) {
202
- .admin-ui-page {
203
- transition: width ease-out 0.2s;
204
- }
205
- }
206
200
  .admin-ui-page__header {
207
- padding: 16px 48px;
201
+ padding: 16px 24px;
208
202
  border-bottom: 1px solid #f0f0f0;
209
203
  background: #fff;
210
204
  position: sticky;
211
205
  top: 0;
212
206
  }
213
207
 
214
- @container (max-width: 430px) {
215
- .admin-ui-page__header {
216
- padding: 16px 24px;
217
- }
208
+ .admin-ui-page__sidebar-toggle-slot:empty {
209
+ display: none;
218
210
  }
211
+
219
212
  .admin-ui-page__header-subtitle {
220
213
  padding-block-end: 8px;
221
214
  color: #757575;
@@ -234,14 +227,9 @@
234
227
  }
235
228
 
236
229
  .admin-ui-page__content.has-padding {
237
- padding: 16px 20px;
230
+ padding: 16px 24px;
238
231
  }
239
232
 
240
- @container (max-width: 430px) {
241
- .admin-ui-page__content.has-padding {
242
- padding: 16px 24px;
243
- }
244
- }
245
233
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
246
234
  width: auto;
247
235
  padding: 0 8px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-widgets",
3
- "version": "6.35.2-next.dc3f6d3c1.0",
3
+ "version": "6.36.1-next.6deb34194.0",
4
4
  "description": "Widgets Page module for WordPress..",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -40,33 +40,33 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@wordpress/api-fetch": "^7.35.1-next.dc3f6d3c1.0",
44
- "@wordpress/base-styles": "^6.11.1-next.dc3f6d3c1.0",
45
- "@wordpress/block-editor": "^15.8.1-next.dc3f6d3c1.0",
46
- "@wordpress/block-library": "^9.35.1-next.dc3f6d3c1.0",
47
- "@wordpress/blocks": "^15.8.1-next.dc3f6d3c1.0",
48
- "@wordpress/components": "^30.8.2-next.dc3f6d3c1.0",
49
- "@wordpress/compose": "^7.35.1-next.dc3f6d3c1.0",
50
- "@wordpress/core-data": "^7.35.1-next.dc3f6d3c1.0",
51
- "@wordpress/data": "^10.35.1-next.dc3f6d3c1.0",
52
- "@wordpress/deprecated": "^4.35.1-next.dc3f6d3c1.0",
53
- "@wordpress/dom": "^4.35.1-next.dc3f6d3c1.0",
54
- "@wordpress/element": "^6.35.1-next.dc3f6d3c1.0",
55
- "@wordpress/hooks": "^4.35.1-next.dc3f6d3c1.0",
56
- "@wordpress/i18n": "^6.8.1-next.dc3f6d3c1.0",
57
- "@wordpress/icons": "^11.2.1-next.dc3f6d3c1.0",
58
- "@wordpress/interface": "^9.20.1-next.dc3f6d3c1.0",
59
- "@wordpress/keyboard-shortcuts": "^5.35.1-next.dc3f6d3c1.0",
60
- "@wordpress/keycodes": "^4.35.1-next.dc3f6d3c1.0",
61
- "@wordpress/media-utils": "^5.35.1-next.dc3f6d3c1.0",
62
- "@wordpress/notices": "^5.35.1-next.dc3f6d3c1.0",
63
- "@wordpress/patterns": "^2.35.1-next.dc3f6d3c1.0",
64
- "@wordpress/plugins": "^7.35.1-next.dc3f6d3c1.0",
65
- "@wordpress/preferences": "^4.35.1-next.dc3f6d3c1.0",
66
- "@wordpress/private-apis": "^1.35.1-next.dc3f6d3c1.0",
67
- "@wordpress/reusable-blocks": "^5.35.1-next.dc3f6d3c1.0",
68
- "@wordpress/url": "^4.35.1-next.dc3f6d3c1.0",
69
- "@wordpress/widgets": "^4.35.1-next.dc3f6d3c1.0",
43
+ "@wordpress/api-fetch": "^7.36.1-next.6deb34194.0",
44
+ "@wordpress/base-styles": "^6.12.1-next.6deb34194.0",
45
+ "@wordpress/block-editor": "^15.9.1-next.6deb34194.0",
46
+ "@wordpress/block-library": "^9.36.1-next.6deb34194.0",
47
+ "@wordpress/blocks": "^15.9.1-next.6deb34194.0",
48
+ "@wordpress/components": "^31.0.1-next.6deb34194.0",
49
+ "@wordpress/compose": "^7.36.1-next.6deb34194.0",
50
+ "@wordpress/core-data": "^7.36.1-next.6deb34194.0",
51
+ "@wordpress/data": "^10.36.1-next.6deb34194.0",
52
+ "@wordpress/deprecated": "^4.36.1-next.6deb34194.0",
53
+ "@wordpress/dom": "^4.36.1-next.6deb34194.0",
54
+ "@wordpress/element": "^6.36.1-next.6deb34194.0",
55
+ "@wordpress/hooks": "^4.36.1-next.6deb34194.0",
56
+ "@wordpress/i18n": "^6.9.1-next.6deb34194.0",
57
+ "@wordpress/icons": "^11.3.1-next.6deb34194.0",
58
+ "@wordpress/interface": "^9.21.1-next.6deb34194.0",
59
+ "@wordpress/keyboard-shortcuts": "^5.36.1-next.6deb34194.0",
60
+ "@wordpress/keycodes": "^4.36.1-next.6deb34194.0",
61
+ "@wordpress/media-utils": "^5.36.1-next.6deb34194.0",
62
+ "@wordpress/notices": "^5.36.1-next.6deb34194.0",
63
+ "@wordpress/patterns": "^2.36.1-next.6deb34194.0",
64
+ "@wordpress/plugins": "^7.36.1-next.6deb34194.0",
65
+ "@wordpress/preferences": "^4.36.1-next.6deb34194.0",
66
+ "@wordpress/private-apis": "^1.36.1-next.6deb34194.0",
67
+ "@wordpress/reusable-blocks": "^5.36.1-next.6deb34194.0",
68
+ "@wordpress/url": "^4.36.1-next.6deb34194.0",
69
+ "@wordpress/widgets": "^4.36.1-next.6deb34194.0",
70
70
  "clsx": "^2.1.1"
71
71
  },
72
72
  "peerDependencies": {
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "f73b5e69b34fbaccfb8c47783f4f993059ff1a41"
79
+ "gitHead": "457096e9e9b3896d2d4fe54fc19d7fb571ee9a44"
80
80
  }
package/src/index.js CHANGED
@@ -58,7 +58,8 @@ export function initializeEditor( id, settings ) {
58
58
  block.name.startsWith( 'core/post' ) ||
59
59
  block.name.startsWith( 'core/query' ) ||
60
60
  block.name.startsWith( 'core/site' ) ||
61
- block.name.startsWith( 'core/navigation' )
61
+ block.name.startsWith( 'core/navigation' ) ||
62
+ block.name.startsWith( 'core/term' )
62
63
  );
63
64
  } );
64
65