@wordpress/edit-widgets 6.53.0 → 6.54.2-next.v.202608281122.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 +13 -0
- package/build/blocks/widget-area/edit/index.cjs +1 -1
- package/build/blocks/widget-area/edit/index.cjs.map +1 -1
- package/build/blocks/widget-area/edit/inner-blocks.cjs +1 -1
- package/build/blocks/widget-area/edit/inner-blocks.cjs.map +1 -1
- package/build/components/error-boundary/index.cjs +1 -1
- package/build/components/error-boundary/index.cjs.map +1 -1
- package/build/components/header/document-tools/index.cjs +1 -1
- package/build/components/header/document-tools/index.cjs.map +1 -1
- package/build/components/header/index.cjs +1 -1
- package/build/components/header/index.cjs.map +1 -1
- package/build/components/header/undo-redo/redo.cjs +1 -1
- package/build/components/header/undo-redo/redo.cjs.map +1 -1
- package/build/components/header/undo-redo/undo.cjs +1 -1
- package/build/components/header/undo-redo/undo.cjs.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs +1 -1
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/index.cjs +1 -1
- package/build/components/keyboard-shortcut-help-modal/index.cjs.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/shortcut.cjs +1 -1
- package/build/components/keyboard-shortcut-help-modal/shortcut.cjs.map +1 -1
- package/build/components/layout/index.cjs +1 -1
- package/build/components/layout/index.cjs.map +1 -1
- package/build/components/layout/interface.cjs +1 -1
- package/build/components/layout/interface.cjs.map +1 -1
- package/build/components/more-menu/index.cjs +1 -1
- package/build/components/more-menu/index.cjs.map +1 -1
- package/build/components/more-menu/tools-more-menu-group.cjs +1 -1
- package/build/components/more-menu/tools-more-menu-group.cjs.map +1 -1
- package/build/components/notices/index.cjs +1 -1
- package/build/components/notices/index.cjs.map +1 -1
- package/build/components/save-button/index.cjs +1 -1
- package/build/components/save-button/index.cjs.map +1 -1
- package/build/components/secondary-sidebar/index.cjs +1 -1
- package/build/components/secondary-sidebar/index.cjs.map +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.cjs +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.cjs.map +1 -1
- package/build/components/secondary-sidebar/list-view-sidebar.cjs +3 -5
- package/build/components/secondary-sidebar/list-view-sidebar.cjs.map +3 -3
- package/build/components/sidebar/index.cjs +1 -1
- package/build/components/sidebar/index.cjs.map +1 -1
- package/build/components/sidebar/widget-areas.cjs +1 -1
- package/build/components/sidebar/widget-areas.cjs.map +1 -1
- package/build/components/welcome-guide/index.cjs +1 -1
- package/build/components/welcome-guide/index.cjs.map +1 -1
- package/build/components/widget-areas-block-editor-content/index.cjs +1 -1
- package/build/components/widget-areas-block-editor-content/index.cjs.map +1 -1
- package/build/components/widget-areas-block-editor-provider/index.cjs +1 -4
- package/build/components/widget-areas-block-editor-provider/index.cjs.map +4 -4
- package/build/filters/move-to-widget-area.cjs +1 -1
- package/build/filters/move-to-widget-area.cjs.map +1 -1
- package/build/index.cjs +1 -1
- package/build/index.cjs.map +1 -1
- package/build/store/selectors.cjs +3 -0
- package/build/store/selectors.cjs.map +2 -2
- package/build-module/blocks/widget-area/edit/index.mjs +1 -1
- package/build-module/blocks/widget-area/edit/index.mjs.map +1 -1
- package/build-module/blocks/widget-area/edit/inner-blocks.mjs +1 -1
- package/build-module/blocks/widget-area/edit/inner-blocks.mjs.map +1 -1
- package/build-module/components/error-boundary/index.mjs +1 -1
- package/build-module/components/error-boundary/index.mjs.map +1 -1
- package/build-module/components/header/document-tools/index.mjs +1 -1
- package/build-module/components/header/document-tools/index.mjs.map +1 -1
- package/build-module/components/header/index.mjs +1 -1
- package/build-module/components/header/index.mjs.map +1 -1
- package/build-module/components/header/undo-redo/redo.mjs +1 -1
- package/build-module/components/header/undo-redo/redo.mjs.map +1 -1
- package/build-module/components/header/undo-redo/undo.mjs +1 -1
- package/build-module/components/header/undo-redo/undo.mjs.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.mjs +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.mjs.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.mjs +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.mjs.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs.map +1 -1
- package/build-module/components/layout/index.mjs +1 -1
- package/build-module/components/layout/index.mjs.map +1 -1
- package/build-module/components/layout/interface.mjs +1 -1
- package/build-module/components/layout/interface.mjs.map +1 -1
- package/build-module/components/more-menu/index.mjs +1 -1
- package/build-module/components/more-menu/index.mjs.map +1 -1
- package/build-module/components/more-menu/tools-more-menu-group.mjs +1 -1
- package/build-module/components/more-menu/tools-more-menu-group.mjs.map +1 -1
- package/build-module/components/notices/index.mjs +1 -1
- package/build-module/components/notices/index.mjs.map +1 -1
- package/build-module/components/save-button/index.mjs +1 -1
- package/build-module/components/save-button/index.mjs.map +1 -1
- package/build-module/components/secondary-sidebar/index.mjs +1 -1
- package/build-module/components/secondary-sidebar/index.mjs.map +1 -1
- package/build-module/components/secondary-sidebar/inserter-sidebar.mjs +1 -1
- package/build-module/components/secondary-sidebar/inserter-sidebar.mjs.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-sidebar.mjs +3 -5
- package/build-module/components/secondary-sidebar/list-view-sidebar.mjs.map +3 -3
- package/build-module/components/sidebar/index.mjs +1 -1
- package/build-module/components/sidebar/index.mjs.map +1 -1
- package/build-module/components/sidebar/widget-areas.mjs +1 -1
- package/build-module/components/sidebar/widget-areas.mjs.map +1 -1
- package/build-module/components/welcome-guide/index.mjs +1 -1
- package/build-module/components/welcome-guide/index.mjs.map +1 -1
- package/build-module/components/widget-areas-block-editor-content/index.mjs +1 -1
- package/build-module/components/widget-areas-block-editor-content/index.mjs.map +1 -1
- package/build-module/components/widget-areas-block-editor-provider/index.mjs +1 -4
- package/build-module/components/widget-areas-block-editor-provider/index.mjs.map +3 -3
- package/build-module/filters/move-to-widget-area.mjs +1 -1
- package/build-module/filters/move-to-widget-area.mjs.map +1 -1
- package/build-module/index.mjs +1 -1
- package/build-module/index.mjs.map +1 -1
- package/build-module/store/selectors.mjs +3 -0
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-style/style-rtl.css +1 -2
- package/build-style/style.css +1 -2
- package/package.json +31 -32
- package/src/components/secondary-sidebar/{list-view-sidebar.js → list-view-sidebar.jsx} +2 -5
- package/src/components/widget-areas-block-editor-provider/{index.js → index.jsx} +0 -3
- package/src/store/selectors.js +4 -0
- /package/src/blocks/widget-area/edit/{index.js → index.jsx} +0 -0
- /package/src/blocks/widget-area/edit/{inner-blocks.js → inner-blocks.jsx} +0 -0
- /package/src/components/error-boundary/{index.js → index.jsx} +0 -0
- /package/src/components/error-boundary/test/{error-boundary.js → error-boundary.jsx} +0 -0
- /package/src/components/header/document-tools/{index.js → index.jsx} +0 -0
- /package/src/components/header/{index.js → index.jsx} +0 -0
- /package/src/components/header/undo-redo/{redo.js → redo.jsx} +0 -0
- /package/src/components/header/undo-redo/{undo.js → undo.jsx} +0 -0
- /package/src/components/keyboard-shortcut-help-modal/{dynamic-shortcut.js → dynamic-shortcut.jsx} +0 -0
- /package/src/components/keyboard-shortcut-help-modal/{index.js → index.jsx} +0 -0
- /package/src/components/keyboard-shortcut-help-modal/{shortcut.js → shortcut.jsx} +0 -0
- /package/src/components/layout/{index.js → index.jsx} +0 -0
- /package/src/components/layout/{interface.js → interface.jsx} +0 -0
- /package/src/components/more-menu/{index.js → index.jsx} +0 -0
- /package/src/components/more-menu/{tools-more-menu-group.js → tools-more-menu-group.jsx} +0 -0
- /package/src/components/notices/{index.js → index.jsx} +0 -0
- /package/src/components/save-button/{index.js → index.jsx} +0 -0
- /package/src/components/secondary-sidebar/{index.js → index.jsx} +0 -0
- /package/src/components/secondary-sidebar/{inserter-sidebar.js → inserter-sidebar.jsx} +0 -0
- /package/src/components/sidebar/{index.js → index.jsx} +0 -0
- /package/src/components/sidebar/{widget-areas.js → widget-areas.jsx} +0 -0
- /package/src/components/welcome-guide/{index.js → index.jsx} +0 -0
- /package/src/components/widget-areas-block-editor-content/{index.js → index.jsx} +0 -0
- /package/src/filters/{move-to-widget-area.js → move-to-widget-area.jsx} +0 -0
- /package/src/{index.js → index.jsx} +0 -0
package/build-style/style.css
CHANGED
|
@@ -702,8 +702,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
702
702
|
}
|
|
703
703
|
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active),
|
|
704
704
|
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:active) {
|
|
705
|
-
--focus-color
|
|
706
|
-
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color);
|
|
705
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
707
706
|
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
708
707
|
}
|
|
709
708
|
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-widgets",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.54.2-next.v.202608281122.0",
|
|
4
4
|
"description": "Widgets Page module for WordPress..",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -47,36 +47,35 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@wordpress/admin-ui": "^2.
|
|
51
|
-
"@wordpress/api-fetch": "^7.
|
|
52
|
-
"@wordpress/base-styles": "^
|
|
53
|
-
"@wordpress/block-editor": "^
|
|
54
|
-
"@wordpress/block-library": "^10.
|
|
55
|
-
"@wordpress/blocks": "^
|
|
56
|
-
"@wordpress/components": "^
|
|
57
|
-
"@wordpress/compose": "^8.
|
|
58
|
-
"@wordpress/core-data": "^7.
|
|
59
|
-
"@wordpress/data": "^10.
|
|
60
|
-
"@wordpress/deprecated": "^4.
|
|
61
|
-
"@wordpress/dom": "^4.
|
|
62
|
-
"@wordpress/element": "^8.
|
|
63
|
-
"@wordpress/hooks": "^4.
|
|
64
|
-
"@wordpress/i18n": "^6.
|
|
65
|
-
"@wordpress/icons": "^15.
|
|
66
|
-
"@wordpress/interface": "^
|
|
67
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
68
|
-
"@wordpress/keycodes": "^4.
|
|
69
|
-
"@wordpress/media-utils": "^5.
|
|
70
|
-
"@wordpress/notices": "^5.
|
|
71
|
-
"@wordpress/patterns": "^2.
|
|
72
|
-
"@wordpress/plugins": "^7.
|
|
73
|
-
"@wordpress/preferences": "^4.
|
|
74
|
-
"@wordpress/private-apis": "^1.
|
|
75
|
-
"@wordpress/
|
|
76
|
-
"@wordpress/
|
|
77
|
-
"@wordpress/
|
|
78
|
-
"@wordpress/
|
|
79
|
-
"@wordpress/widgets": "^4.53.0",
|
|
50
|
+
"@wordpress/admin-ui": "^2.9.1-next.v.202608281122.0",
|
|
51
|
+
"@wordpress/api-fetch": "^7.54.1-next.v.202608281122.0",
|
|
52
|
+
"@wordpress/base-styles": "^13.0.1-next.v.202608281122.0",
|
|
53
|
+
"@wordpress/block-editor": "^17.0.2-next.v.202608281122.0",
|
|
54
|
+
"@wordpress/block-library": "^10.5.2-next.v.202608281122.0",
|
|
55
|
+
"@wordpress/blocks": "^16.0.1-next.v.202608281122.0",
|
|
56
|
+
"@wordpress/components": "^40.1.1-next.v.202608281122.0",
|
|
57
|
+
"@wordpress/compose": "^8.7.2-next.v.202608281122.0",
|
|
58
|
+
"@wordpress/core-data": "^7.54.2-next.v.202608281122.0",
|
|
59
|
+
"@wordpress/data": "^10.54.2-next.v.202608281122.0",
|
|
60
|
+
"@wordpress/deprecated": "^4.54.1-next.v.202608281122.0",
|
|
61
|
+
"@wordpress/dom": "^4.54.1-next.v.202608281122.0",
|
|
62
|
+
"@wordpress/element": "^8.6.2-next.v.202608281122.0",
|
|
63
|
+
"@wordpress/hooks": "^4.54.1-next.v.202608281122.0",
|
|
64
|
+
"@wordpress/i18n": "^6.27.1-next.v.202608281122.0",
|
|
65
|
+
"@wordpress/icons": "^15.5.1-next.v.202608281122.0",
|
|
66
|
+
"@wordpress/interface": "^10.0.2-next.v.202608281122.0",
|
|
67
|
+
"@wordpress/keyboard-shortcuts": "^5.54.1-next.v.202608281122.0",
|
|
68
|
+
"@wordpress/keycodes": "^4.54.1-next.v.202608281122.0",
|
|
69
|
+
"@wordpress/media-utils": "^5.54.1-next.v.202608281122.0",
|
|
70
|
+
"@wordpress/notices": "^5.54.1-next.v.202608281122.0",
|
|
71
|
+
"@wordpress/patterns": "^2.54.2-next.v.202608281122.0",
|
|
72
|
+
"@wordpress/plugins": "^7.54.1-next.v.202608281122.0",
|
|
73
|
+
"@wordpress/preferences": "^4.54.2-next.v.202608281122.0",
|
|
74
|
+
"@wordpress/private-apis": "^1.54.1-next.v.202608281122.0",
|
|
75
|
+
"@wordpress/theme": "^2.1.1-next.v.202608281122.0",
|
|
76
|
+
"@wordpress/ui": "^0.22.1-next.v.202608281122.0",
|
|
77
|
+
"@wordpress/url": "^4.54.1-next.v.202608281122.0",
|
|
78
|
+
"@wordpress/widgets": "^4.54.2-next.v.202608281122.0",
|
|
80
79
|
"clsx": "^2.1.1"
|
|
81
80
|
},
|
|
82
81
|
"devDependencies": {
|
|
@@ -91,5 +90,5 @@
|
|
|
91
90
|
"publishConfig": {
|
|
92
91
|
"access": "public"
|
|
93
92
|
},
|
|
94
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "de479d415171765f7b573c81aeec5334ff506a12"
|
|
95
94
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __experimentalListView as ListView } from '@wordpress/block-editor';
|
|
2
2
|
import { Button } from '@wordpress/components';
|
|
3
|
-
import { useFocusOnMount, useMergeRefs } from '@wordpress/compose';
|
|
4
3
|
import { useDispatch, useSelect } from '@wordpress/data';
|
|
5
4
|
import { useCallback, useState } from '@wordpress/element';
|
|
6
5
|
import { __ } from '@wordpress/i18n';
|
|
@@ -17,8 +16,6 @@ export default function ListViewSidebar() {
|
|
|
17
16
|
// re-renders when the dropZoneElement updates.
|
|
18
17
|
const [ dropZoneElement, setDropZoneElement ] = useState( null );
|
|
19
18
|
|
|
20
|
-
const focusOnMountRef = useFocusOnMount( 'firstElement' );
|
|
21
|
-
|
|
22
19
|
// When closing the list view, focus should return to the toggle button.
|
|
23
20
|
const closeListView = useCallback( () => {
|
|
24
21
|
setIsListViewOpened( false );
|
|
@@ -52,9 +49,9 @@ export default function ListViewSidebar() {
|
|
|
52
49
|
</div>
|
|
53
50
|
<div
|
|
54
51
|
className="edit-widgets-editor__list-view-panel-content"
|
|
55
|
-
ref={
|
|
52
|
+
ref={ setDropZoneElement }
|
|
56
53
|
>
|
|
57
|
-
<ListView dropZoneElement={ dropZoneElement } />
|
|
54
|
+
<ListView dropZoneElement={ dropZoneElement } focusOnMount />
|
|
58
55
|
</div>
|
|
59
56
|
</div>
|
|
60
57
|
);
|
|
@@ -7,7 +7,6 @@ import { useMemo } from '@wordpress/element';
|
|
|
7
7
|
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
|
|
8
8
|
import { privateApis as editPatternsPrivateApis } from '@wordpress/patterns';
|
|
9
9
|
import { store as preferencesStore } from '@wordpress/preferences';
|
|
10
|
-
import { privateApis as blockLibraryPrivateApis } from '@wordpress/block-library';
|
|
11
10
|
import KeyboardShortcuts from '../keyboard-shortcuts';
|
|
12
11
|
import { buildWidgetAreasPostId, KIND, POST_TYPE } from '../../store/utils';
|
|
13
12
|
import useLastSelectedWidgetArea from '../../hooks/use-last-selected-widget-area';
|
|
@@ -17,7 +16,6 @@ import { unlock } from '../../lock-unlock';
|
|
|
17
16
|
|
|
18
17
|
const { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis );
|
|
19
18
|
const { PatternsMenuItems } = unlock( editPatternsPrivateApis );
|
|
20
|
-
const { BlockKeyboardShortcuts } = unlock( blockLibraryPrivateApis );
|
|
21
19
|
|
|
22
20
|
const EMPTY_ARRAY = [];
|
|
23
21
|
|
|
@@ -112,7 +110,6 @@ export default function WidgetAreasBlockEditorProvider( {
|
|
|
112
110
|
return (
|
|
113
111
|
<SlotFillProvider>
|
|
114
112
|
<KeyboardShortcuts.Register />
|
|
115
|
-
<BlockKeyboardShortcuts />
|
|
116
113
|
<ExperimentalBlockEditorProvider
|
|
117
114
|
value={ blocks }
|
|
118
115
|
onInput={ onInput }
|
package/src/store/selectors.js
CHANGED
|
@@ -287,6 +287,10 @@ export const canInsertBlockInWidgetArea = createRegistrySelector(
|
|
|
287
287
|
// widget area can be inserted into any widget area. Uses the first
|
|
288
288
|
// widget area for testing whether the block can be inserted.
|
|
289
289
|
const [ firstWidgetArea ] = widgetAreas;
|
|
290
|
+
if ( ! firstWidgetArea ) {
|
|
291
|
+
return false;
|
|
292
|
+
}
|
|
293
|
+
|
|
290
294
|
return select( blockEditorStore ).canInsertBlockType(
|
|
291
295
|
blockName,
|
|
292
296
|
firstWidgetArea.clientId
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/keyboard-shortcut-help-modal/{dynamic-shortcut.js → dynamic-shortcut.jsx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|