@wordpress/edit-widgets 5.13.0 → 5.15.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.15.0 (2023-07-20)
6
+
7
+ ## 5.14.0 (2023-07-05)
8
+
5
9
  ## 5.13.0 (2023-06-23)
6
10
 
7
11
  ## 5.12.0 (2023-06-07)
package/build/index.js CHANGED
@@ -8,6 +8,12 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.initialize = void 0;
9
9
  exports.initializeEditor = initializeEditor;
10
10
  exports.reinitializeEditor = reinitializeEditor;
11
+ Object.defineProperty(exports, "store", {
12
+ enumerable: true,
13
+ get: function () {
14
+ return _store.store;
15
+ }
16
+ });
11
17
 
12
18
  var _element = require("@wordpress/element");
13
19
 
@@ -25,7 +31,7 @@ var _widgets = require("@wordpress/widgets");
25
31
 
26
32
  var _preferences = require("@wordpress/preferences");
27
33
 
28
- require("./store");
34
+ var _store = require("./store");
29
35
 
30
36
  require("./filters");
31
37
 
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-widgets/src/index.js"],"names":["disabledBlocks","ALLOW_REUSABLE_BLOCKS","initializeEditor","id","settings","target","document","getElementById","root","coreBlocks","filter","block","includes","name","startsWith","preferencesStore","setDefaults","fixedToolbar","welcomeGuide","showBlockBreadcrumbs","themeStyles","blocksStore","__experimentalReapplyBlockTypeFilters","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","ENABLE_EXPERIMENTAL_FSE_BLOCKS","registerBlock","widgetArea","__experimentalFetchLinkSuggestions","search","searchOptions","render","initialize","reinitializeEditor","since","version","metadata"],"mappings":";;;;;;;;;;;AAWA;;AARA;;AAMA;;AACA;;AAEA;;AAKA;;AACA;;AAKA;;AAKA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAjCA;AACA;AACA;;AAuBA;AACA;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8C,CAAEC,MAAF,EAAUC,aAAV,KAC7C,kDAAsBD,MAAtB,EAA8BC,aAA9B,EAA6C5B,QAA7C,CADD,CAjCgD,CAoChD;AACA;AACA;AACA;;;AACA,6CAA+B,WAA/B;AAEAI,EAAAA,IAAI,CAACyB,MAAL,CAAa,4BAAC,eAAD;AAAQ,IAAA,mBAAmB,EAAG7B;AAA9B,IAAb;AAEA,SAAOI,IAAP;AACA;AAED;AACA;AACA;;;AACO,MAAM0B,UAAU,GAAGhC,gBAAnB;;;AAEA,SAASiC,kBAAT,GAA8B;AACpC,2BAAY,mCAAZ,EAAiD;AAChDC,IAAAA,KAAK,EAAE,KADyC;AAEhDC,IAAAA,OAAO,EAAE;AAFuC,GAAjD;AAIA;AAED;AACA;AACA;AACA;AACA;AACA;;;AACA,MAAMT,aAAa,GAAKjB,KAAF,IAAa;AAClC,MAAK,CAAEA,KAAP,EAAe;AACd;AACA;;AACD,QAAM;AAAE2B,IAAAA,QAAF;AAAYlC,IAAAA,QAAZ;AAAsBS,IAAAA;AAAtB,MAA+BF,KAArC;;AACA,MAAK2B,QAAL,EAAgB;AACf,+DAA+C;AAAE,OAAEzB,IAAF,GAAUyB;AAAZ,KAA/C;AACA;;AACD,iCAAmBzB,IAAnB,EAAyBT,QAAzB;AACA,CATD","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 { 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';\n\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 ).__experimentalReapplyBlockTypeFilters();\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( process.env.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( <Layout blockEditorSettings={ settings } /> );\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 *\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"]}
1
+ {"version":3,"sources":["@wordpress/edit-widgets/src/index.js"],"names":["disabledBlocks","ALLOW_REUSABLE_BLOCKS","initializeEditor","id","settings","target","document","getElementById","root","coreBlocks","filter","block","includes","name","startsWith","preferencesStore","setDefaults","fixedToolbar","welcomeGuide","showBlockBreadcrumbs","themeStyles","blocksStore","__experimentalReapplyBlockTypeFilters","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","ENABLE_EXPERIMENTAL_FSE_BLOCKS","registerBlock","widgetArea","__experimentalFetchLinkSuggestions","search","searchOptions","render","initialize","reinitializeEditor","since","version","metadata"],"mappings":";;;;;;;;;;;;;;;;;AAWA;;AARA;;AAMA;;AACA;;AAEA;;AAKA;;AACA;;AAKA;;AAKA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAjCA;AACA;AACA;;AAuBA;AACA;AACA;AAWA,MAAMA,cAAc,GAAG,CACtB,WADsB,EAEtB,eAFsB,EAGtB,oBAHsB,EAItB,IAAKC,mCAAwB,EAA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D,CAoChD;AACA;AACA;AACA;;;AACA,6CAA+B,WAA/B;AAEAI,EAAAA,IAAI,CAACyB,MAAL,CAAa,4BAAC,eAAD;AAAQ,IAAA,mBAAmB,EAAG7B;AAA9B,IAAb;AAEA,SAAOI,IAAP;AACA;AAED;AACA;AACA;;;AACO,MAAM0B,UAAU,GAAGhC,gBAAnB;;;AAEA,SAASiC,kBAAT,GAA8B;AACpC,2BAAY,mCAAZ,EAAiD;AAChDC,IAAAA,KAAK,EAAE,KADyC;AAEhDC,IAAAA,OAAO,EAAE;AAFuC,GAAjD;AAIA;AAED;AACA;AACA;AACA;AACA;AACA;;;AACA,MAAMT,aAAa,GAAKjB,KAAF,IAAa;AAClC,MAAK,CAAEA,KAAP,EAAe;AACd;AACA;;AACD,QAAM;AAAE2B,IAAAA,QAAF;AAAYlC,IAAAA,QAAZ;AAAsBS,IAAAA;AAAtB,MAA+BF,KAArC;;AACA,MAAK2B,QAAL,EAAgB;AACf,+DAA+C;AAAE,OAAEzB,IAAF,GAAUyB;AAAZ,KAA/C;AACA;;AACD,iCAAmBzB,IAAnB,EAAyBT,QAAzB;AACA,CATD","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 { 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';\n\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 ).__experimentalReapplyBlockTypeFilters();\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( process.env.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( <Layout blockEditorSettings={ settings } /> );\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 *\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"]}
@@ -108,4 +108,6 @@ const registerBlock = block => {
108
108
 
109
109
  registerBlockType(name, settings);
110
110
  };
111
+
112
+ export { store } from './store';
111
113
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-widgets/src/index.js"],"names":["registerBlockType","unstable__bootstrapServerSideBlockDefinitions","setFreeformContentHandlerName","store","blocksStore","dispatch","deprecated","createRoot","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","registerLegacyWidgetBlock","registerLegacyWidgetVariations","registerWidgetGroupBlock","preferencesStore","widgetArea","Layout","ALLOW_REUSABLE_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","disabledBlocks","initializeEditor","id","settings","target","document","getElementById","root","coreBlocks","filter","block","includes","name","startsWith","setDefaults","fixedToolbar","welcomeGuide","showBlockBreadcrumbs","themeStyles","__experimentalReapplyBlockTypeFilters","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","registerBlock","search","searchOptions","render","initialize","reinitializeEditor","since","version","metadata"],"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C;AAEhDC,IAAAA,OAAO,EAAE;AAFuC,GAAvC,CAAV;AAIA;AAED;AACA;AACA;AACA;AACA;AACA;;AACA,MAAMP,aAAa,GAAKd,KAAF,IAAa;AAClC,MAAK,CAAEA,KAAP,EAAe;AACd;AACA;;AACD,QAAM;AAAEsB,IAAAA,QAAF;AAAY7B,IAAAA,QAAZ;AAAsBS,IAAAA;AAAtB,MAA+BF,KAArC;;AACA,MAAKsB,QAAL,EAAgB;AACfpD,IAAAA,6CAA6C,CAAE;AAAE,OAAEgC,IAAF,GAAUoB;AAAZ,KAAF,CAA7C;AACA;;AACDrD,EAAAA,iBAAiB,CAAEiC,IAAF,EAAQT,QAAR,CAAjB;AACA,CATD","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 { 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';\n\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 ).__experimentalReapplyBlockTypeFilters();\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( process.env.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( <Layout blockEditorSettings={ settings } /> );\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 *\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"]}
1
+ {"version":3,"sources":["@wordpress/edit-widgets/src/index.js"],"names":["registerBlockType","unstable__bootstrapServerSideBlockDefinitions","setFreeformContentHandlerName","store","blocksStore","dispatch","deprecated","createRoot","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","registerLegacyWidgetBlock","registerLegacyWidgetVariations","registerWidgetGroupBlock","preferencesStore","widgetArea","Layout","ALLOW_REUSABLE_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","disabledBlocks","initializeEditor","id","settings","target","document","getElementById","root","coreBlocks","filter","block","includes","name","startsWith","setDefaults","fixedToolbar","welcomeGuide","showBlockBreadcrumbs","themeStyles","__experimentalReapplyBlockTypeFilters","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","registerBlock","search","searchOptions","render","initialize","reinitializeEditor","since","version","metadata"],"mappings":";;AAAA;AACA;AACA;AACA,SACCA,iBADD,EAECC,6CAFD,EAEgD;AAC/CC,6BAHD,EAICC,KAAK,IAAIC,WAJV,QAKO,mBALP;AAMA,SAASC,QAAT,QAAyB,iBAAzB;AACA,OAAOC,UAAP,MAAuB,uBAAvB;AACA,SAASC,UAAT,QAA2B,oBAA3B;AACA,SACCC,kBADD,EAECC,2BAFD,EAGCC,4CAHD,QAIO,0BAJP;AAKA,SAASC,kCAAkC,IAAIC,oBAA/C,QAA2E,sBAA3E;AACA,SACCC,yBADD,EAECC,8BAFD,EAGCC,wBAHD,QAIO,oBAJP;AAKA,SAASZ,KAAK,IAAIa,gBA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AQT,QAAR,CAAjB;AACA,CATD;;AAWA,SAASrB,KAAT,QAAsB,SAAtB","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 { 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';\n\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 ).__experimentalReapplyBlockTypeFilters();\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( process.env.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( <Layout blockEditorSettings={ settings } /> );\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 *\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"]}
@@ -1026,45 +1026,41 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
1026
1026
  padding-left: 4px;
1027
1027
  }
1028
1028
 
1029
- html.wp-toolbar {
1030
- background: #fff;
1031
- }
1032
-
1033
- body.appearance_page_gutenberg-widgets,
1034
- body.widgets-php {
1029
+ body.js.appearance_page_gutenberg-widgets,
1030
+ body.js.widgets-php {
1035
1031
  background: #fff;
1036
1032
  /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
1037
1033
  Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
1038
1034
  }
1039
- body.appearance_page_gutenberg-widgets #wpcontent,
1040
- body.widgets-php #wpcontent {
1035
+ body.js.appearance_page_gutenberg-widgets #wpcontent,
1036
+ body.js.widgets-php #wpcontent {
1041
1037
  padding-right: 0;
1042
1038
  }
1043
- body.appearance_page_gutenberg-widgets #wpbody-content,
1044
- body.widgets-php #wpbody-content {
1039
+ body.js.appearance_page_gutenberg-widgets #wpbody-content,
1040
+ body.js.widgets-php #wpbody-content {
1045
1041
  padding-bottom: 0;
1046
1042
  }
1047
- body.appearance_page_gutenberg-widgets #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta),
1048
- body.widgets-php #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta) {
1043
+ body.js.appearance_page_gutenberg-widgets #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta),
1044
+ body.js.widgets-php #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta) {
1049
1045
  display: none;
1050
1046
  }
1051
- body.appearance_page_gutenberg-widgets #wpfooter,
1052
- body.widgets-php #wpfooter {
1047
+ body.js.appearance_page_gutenberg-widgets #wpfooter,
1048
+ body.js.widgets-php #wpfooter {
1053
1049
  display: none;
1054
1050
  }
1055
- body.appearance_page_gutenberg-widgets .a11y-speak-region,
1056
- body.widgets-php .a11y-speak-region {
1051
+ body.js.appearance_page_gutenberg-widgets .a11y-speak-region,
1052
+ body.js.widgets-php .a11y-speak-region {
1057
1053
  right: -1px;
1058
1054
  top: -1px;
1059
1055
  }
1060
- body.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu::after,
1061
- body.appearance_page_gutenberg-widgets ul#adminmenu > li.current > a.current::after,
1062
- body.widgets-php ul#adminmenu a.wp-has-current-submenu::after,
1063
- body.widgets-php ul#adminmenu > li.current > a.current::after {
1056
+ body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu::after,
1057
+ body.js.appearance_page_gutenberg-widgets ul#adminmenu > li.current > a.current::after,
1058
+ body.js.widgets-php ul#adminmenu a.wp-has-current-submenu::after,
1059
+ body.js.widgets-php ul#adminmenu > li.current > a.current::after {
1064
1060
  border-left-color: #fff;
1065
1061
  }
1066
- body.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,
1067
- body.widgets-php .media-frame select.attachment-filters:last-of-type {
1062
+ body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,
1063
+ body.js.widgets-php .media-frame select.attachment-filters:last-of-type {
1068
1064
  width: auto;
1069
1065
  max-width: 100%;
1070
1066
  }
@@ -1026,45 +1026,41 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
1026
1026
  padding-right: 4px;
1027
1027
  }
1028
1028
 
1029
- html.wp-toolbar {
1030
- background: #fff;
1031
- }
1032
-
1033
- body.appearance_page_gutenberg-widgets,
1034
- body.widgets-php {
1029
+ body.js.appearance_page_gutenberg-widgets,
1030
+ body.js.widgets-php {
1035
1031
  background: #fff;
1036
1032
  /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
1037
1033
  Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
1038
1034
  }
1039
- body.appearance_page_gutenberg-widgets #wpcontent,
1040
- body.widgets-php #wpcontent {
1035
+ body.js.appearance_page_gutenberg-widgets #wpcontent,
1036
+ body.js.widgets-php #wpcontent {
1041
1037
  padding-left: 0;
1042
1038
  }
1043
- body.appearance_page_gutenberg-widgets #wpbody-content,
1044
- body.widgets-php #wpbody-content {
1039
+ body.js.appearance_page_gutenberg-widgets #wpbody-content,
1040
+ body.js.widgets-php #wpbody-content {
1045
1041
  padding-bottom: 0;
1046
1042
  }
1047
- body.appearance_page_gutenberg-widgets #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta),
1048
- body.widgets-php #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta) {
1043
+ body.js.appearance_page_gutenberg-widgets #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta),
1044
+ body.js.widgets-php #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta) {
1049
1045
  display: none;
1050
1046
  }
1051
- body.appearance_page_gutenberg-widgets #wpfooter,
1052
- body.widgets-php #wpfooter {
1047
+ body.js.appearance_page_gutenberg-widgets #wpfooter,
1048
+ body.js.widgets-php #wpfooter {
1053
1049
  display: none;
1054
1050
  }
1055
- body.appearance_page_gutenberg-widgets .a11y-speak-region,
1056
- body.widgets-php .a11y-speak-region {
1051
+ body.js.appearance_page_gutenberg-widgets .a11y-speak-region,
1052
+ body.js.widgets-php .a11y-speak-region {
1057
1053
  left: -1px;
1058
1054
  top: -1px;
1059
1055
  }
1060
- body.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu::after,
1061
- body.appearance_page_gutenberg-widgets ul#adminmenu > li.current > a.current::after,
1062
- body.widgets-php ul#adminmenu a.wp-has-current-submenu::after,
1063
- body.widgets-php ul#adminmenu > li.current > a.current::after {
1056
+ body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu::after,
1057
+ body.js.appearance_page_gutenberg-widgets ul#adminmenu > li.current > a.current::after,
1058
+ body.js.widgets-php ul#adminmenu a.wp-has-current-submenu::after,
1059
+ body.js.widgets-php ul#adminmenu > li.current > a.current::after {
1064
1060
  border-right-color: #fff;
1065
1061
  }
1066
- body.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,
1067
- body.widgets-php .media-frame select.attachment-filters:last-of-type {
1062
+ body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,
1063
+ body.js.widgets-php .media-frame select.attachment-filters:last-of-type {
1068
1064
  width: auto;
1069
1065
  max-width: 100%;
1070
1066
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-widgets",
3
- "version": "5.13.0",
3
+ "version": "5.15.0",
4
4
  "description": "Widgets Page module for WordPress..",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,31 +27,31 @@
27
27
  "react-native": "src/index",
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.16.0",
30
- "@wordpress/api-fetch": "^6.33.0",
31
- "@wordpress/block-editor": "^12.4.0",
32
- "@wordpress/block-library": "^8.13.0",
33
- "@wordpress/blocks": "^12.13.0",
34
- "@wordpress/components": "^25.2.0",
35
- "@wordpress/compose": "^6.13.0",
36
- "@wordpress/core-data": "^6.13.0",
37
- "@wordpress/data": "^9.6.0",
38
- "@wordpress/deprecated": "^3.36.0",
39
- "@wordpress/dom": "^3.36.0",
40
- "@wordpress/element": "^5.13.0",
41
- "@wordpress/hooks": "^3.36.0",
42
- "@wordpress/i18n": "^4.36.0",
43
- "@wordpress/icons": "^9.27.0",
44
- "@wordpress/interface": "^5.13.0",
45
- "@wordpress/keyboard-shortcuts": "^4.13.0",
46
- "@wordpress/keycodes": "^3.36.0",
47
- "@wordpress/media-utils": "^4.27.0",
48
- "@wordpress/notices": "^4.4.0",
49
- "@wordpress/plugins": "^6.4.0",
50
- "@wordpress/preferences": "^3.13.0",
51
- "@wordpress/private-apis": "^0.18.0",
52
- "@wordpress/reusable-blocks": "^4.13.0",
53
- "@wordpress/url": "^3.37.0",
54
- "@wordpress/widgets": "^3.13.0",
30
+ "@wordpress/api-fetch": "^6.35.0",
31
+ "@wordpress/block-editor": "^12.6.0",
32
+ "@wordpress/block-library": "^8.15.0",
33
+ "@wordpress/blocks": "^12.15.0",
34
+ "@wordpress/components": "^25.4.0",
35
+ "@wordpress/compose": "^6.15.0",
36
+ "@wordpress/core-data": "^6.15.0",
37
+ "@wordpress/data": "^9.8.0",
38
+ "@wordpress/deprecated": "^3.38.0",
39
+ "@wordpress/dom": "^3.38.0",
40
+ "@wordpress/element": "^5.15.0",
41
+ "@wordpress/hooks": "^3.38.0",
42
+ "@wordpress/i18n": "^4.38.0",
43
+ "@wordpress/icons": "^9.29.0",
44
+ "@wordpress/interface": "^5.15.0",
45
+ "@wordpress/keyboard-shortcuts": "^4.15.0",
46
+ "@wordpress/keycodes": "^3.38.0",
47
+ "@wordpress/media-utils": "^4.29.0",
48
+ "@wordpress/notices": "^4.6.0",
49
+ "@wordpress/plugins": "^6.6.0",
50
+ "@wordpress/preferences": "^3.15.0",
51
+ "@wordpress/private-apis": "^0.20.0",
52
+ "@wordpress/reusable-blocks": "^4.15.0",
53
+ "@wordpress/url": "^3.39.0",
54
+ "@wordpress/widgets": "^3.15.0",
55
55
  "classnames": "^2.3.1"
56
56
  },
57
57
  "peerDependencies": {
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "d47d8069e1aae05d4a16dc287902eb90edcbff50"
64
+ "gitHead": "6f14d11ed4cb59df110a28ebaa23ecba95eb673a"
65
65
  }
package/src/index.js CHANGED
@@ -124,3 +124,5 @@ const registerBlock = ( block ) => {
124
124
  }
125
125
  registerBlockType( name, settings );
126
126
  };
127
+
128
+ export { store } from './store';
package/src/style.scss CHANGED
@@ -11,14 +11,8 @@
11
11
  @import "./components/widget-areas-block-editor-content/style.scss";
12
12
  @import "./components/secondary-sidebar/style.scss";
13
13
 
14
- // In order to use mix-blend-mode, this element needs to have an explicitly set background-color
15
- // We scope it to .wp-toolbar to be wp-admin only, to prevent bleed into other implementations
16
- html.wp-toolbar {
17
- background: $white;
18
- }
19
-
20
- body.appearance_page_gutenberg-widgets,
21
- body.widgets-php {
14
+ body.js.appearance_page_gutenberg-widgets,
15
+ body.js.widgets-php {
22
16
  @include wp-admin-reset( ".blocks-widgets-container" );
23
17
  }
24
18