@wordpress/edit-widgets 6.9.0 → 6.11.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 +4 -0
- package/build/blocks/widget-area/edit/index.js.map +1 -1
- package/build/components/header/document-tools/index.js +1 -1
- package/build/components/header/document-tools/index.js.map +1 -1
- package/build/components/layout/index.js +15 -8
- package/build/components/layout/index.js.map +1 -1
- package/build/components/layout/interface.js +3 -12
- package/build/components/layout/interface.js.map +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.js +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
- package/build/components/sidebar/index.js +0 -1
- package/build/components/sidebar/index.js.map +1 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/build/store/actions.js +2 -2
- package/build/store/actions.js.map +1 -1
- package/build/store/selectors.js.map +1 -1
- package/build/store/utils.js.map +1 -1
- package/build-module/blocks/widget-area/edit/index.js.map +1 -1
- package/build-module/components/header/document-tools/index.js +2 -4
- package/build-module/components/header/document-tools/index.js.map +1 -1
- package/build-module/components/header/index.js +1 -3
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -3
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build-module/components/layout/index.js +16 -10
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/layout/interface.js +4 -14
- package/build-module/components/layout/interface.js.map +1 -1
- package/build-module/components/more-menu/index.js +1 -3
- package/build-module/components/more-menu/index.js.map +1 -1
- package/build-module/components/notices/index.js +1 -3
- package/build-module/components/notices/index.js.map +1 -1
- package/build-module/components/secondary-sidebar/inserter-sidebar.js +2 -3
- package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -2
- package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build-module/components/sidebar/index.js +1 -3
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/widget-areas.js +1 -2
- package/build-module/components/sidebar/widget-areas.js.map +1 -1
- package/build-module/components/welcome-guide/index.js +1 -3
- package/build-module/components/welcome-guide/index.js.map +1 -1
- package/build-module/components/widget-areas-block-editor-content/index.js +1 -2
- package/build-module/components/widget-areas-block-editor-content/index.js.map +1 -1
- package/build-module/components/widget-areas-block-editor-provider/index.js +1 -2
- package/build-module/components/widget-areas-block-editor-provider/index.js.map +1 -1
- package/build-module/filters/move-to-widget-area.js +1 -3
- package/build-module/filters/move-to-widget-area.js.map +1 -1
- package/build-module/index.js +7 -1
- package/build-module/index.js.map +1 -1
- package/build-module/store/actions.js +2 -2
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/store/utils.js.map +1 -1
- package/build-style/style-rtl.css +1 -35
- package/build-style/style.css +1 -35
- package/package.json +31 -29
- package/src/components/header/document-tools/index.js +1 -1
- package/src/components/layout/index.js +17 -8
- package/src/components/layout/interface.js +0 -15
- package/src/components/secondary-sidebar/inserter-sidebar.js +1 -1
- package/src/components/sidebar/index.js +0 -1
- package/src/index.js +5 -1
package/src/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
} from '@wordpress/blocks';
|
|
10
10
|
import { dispatch } from '@wordpress/data';
|
|
11
11
|
import deprecated from '@wordpress/deprecated';
|
|
12
|
+
import { privateApis as editorPrivateApis } from '@wordpress/editor';
|
|
12
13
|
import { StrictMode, createRoot } from '@wordpress/element';
|
|
13
14
|
import {
|
|
14
15
|
registerCoreBlocks,
|
|
@@ -29,7 +30,7 @@ import { store as preferencesStore } from '@wordpress/preferences';
|
|
|
29
30
|
import './store';
|
|
30
31
|
import './filters';
|
|
31
32
|
import * as widgetArea from './blocks/widget-area';
|
|
32
|
-
|
|
33
|
+
import { unlock } from './lock-unlock';
|
|
33
34
|
import Layout from './components/layout';
|
|
34
35
|
import {
|
|
35
36
|
ALLOW_REUSABLE_BLOCKS,
|
|
@@ -43,6 +44,8 @@ const disabledBlocks = [
|
|
|
43
44
|
...( ALLOW_REUSABLE_BLOCKS ? [] : [ 'core/block' ] ),
|
|
44
45
|
];
|
|
45
46
|
|
|
47
|
+
const { registerCoreBlockBindingsSources } = unlock( editorPrivateApis );
|
|
48
|
+
|
|
46
49
|
/**
|
|
47
50
|
* Initializes the block editor in the widgets screen.
|
|
48
51
|
*
|
|
@@ -72,6 +75,7 @@ export function initializeEditor( id, settings ) {
|
|
|
72
75
|
|
|
73
76
|
dispatch( blocksStore ).reapplyBlockTypeFilters();
|
|
74
77
|
registerCoreBlocks( coreBlocks );
|
|
78
|
+
registerCoreBlockBindingsSources();
|
|
75
79
|
registerLegacyWidgetBlock();
|
|
76
80
|
if ( globalThis.IS_GUTENBERG_PLUGIN ) {
|
|
77
81
|
__experimentalRegisterExperimentalCoreBlocks( {
|