@wordpress/edit-widgets 4.3.10 → 4.6.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 +6 -0
- package/build/components/secondary-sidebar/list-view-sidebar.js +1 -6
- package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -6
- package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build-style/style-rtl.css +6 -5
- package/build-style/style.css +6 -5
- package/package.json +26 -25
- package/src/components/secondary-sidebar/list-view-sidebar.js +1 -6
package/CHANGELOG.md
CHANGED
|
@@ -64,12 +64,7 @@ function ListViewSidebar() {
|
|
|
64
64
|
})), (0, _element.createElement)("div", {
|
|
65
65
|
className: "edit-widgets-editor__list-view-panel-content",
|
|
66
66
|
ref: (0, _compose.useMergeRefs)([contentFocusReturnRef, focusOnMountRef])
|
|
67
|
-
}, (0, _element.createElement)(_blockEditor.__experimentalListView,
|
|
68
|
-
showNestedBlocks: true,
|
|
69
|
-
__experimentalHideContainerBlockActions: true,
|
|
70
|
-
__experimentalFeatures: true,
|
|
71
|
-
__experimentalPersistentListViewFeatures: true
|
|
72
|
-
})))
|
|
67
|
+
}, (0, _element.createElement)(_blockEditor.__experimentalListView, null)))
|
|
73
68
|
);
|
|
74
69
|
}
|
|
75
70
|
//# sourceMappingURL=list-view-sidebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js"],"names":["ListViewSidebar","setIsListViewOpened","editWidgetsStore","focusOnMountRef","headerFocusReturnRef","contentFocusReturnRef","closeOnEscape","event","keyCode","ESCAPE","defaultPrevented","preventDefault","instanceId","labelId","closeSmall"],"mappings":";;;;;;;;;AAGA;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AAKA;;AAnBA;AACA;AACA;;AAcA;AACA;AACA;AAGe,SAASA,eAAT,GAA2B;AACzC,QAAM;AAAEC,IAAAA;AAAF,MAA0B,uBAAaC,YAAb,CAAhC;AAEA,QAAMC,eAAe,GAAG,8BAAiB,cAAjB,CAAxB;AACA,QAAMC,oBAAoB,GAAG,8BAA7B;AACA,QAAMC,qBAAqB,GAAG,8BAA9B;;AACA,WAASC,aAAT,CAAwBC,KAAxB,EAAgC;AAC/B,QAAKA,KAAK,CAACC,OAAN,KAAkBC,gBAAlB,IAA4B,CAAEF,KAAK,CAACG,gBAAzC,EAA4D;AAC3DH,MAAAA,KAAK,CAACI,cAAN;AACAV,MAAAA,mBAAmB,CAAE,KAAF,CAAnB;AACA;AACD;;AAED,QAAMW,UAAU,GAAG,4BAAeZ,eAAf,CAAnB;AACA,QAAMa,OAAO,GAAI,8CAA8CD,UAAY,EAA3E;AAEA,SACC;AACA;AACC,yBAAkBC,OADnB;AAEC,MAAA,SAAS,EAAC,sCAFX;AAGC,MAAA,SAAS,EAAGP;AAHb,OAKC;AACC,MAAA,SAAS,EAAC,6CADX;AAEC,MAAA,GAAG,EAAGF;AAFP,OAIC;AAAQ,MAAA,EAAE,EAAGS;AAAb,OAAyB,cAAI,WAAJ,CAAzB,CAJD,EAKC,4BAAC,kBAAD;AACC,MAAA,IAAI,EAAGC,iBADR;AAEC,MAAA,KAAK,EAAG,cAAI,yBAAJ,CAFT;AAGC,MAAA,OAAO,EAAG,MAAMb,mBAAmB,CAAE,KAAF;AAHpC,MALD,CALD,EAgBC;AACC,MAAA,SAAS,EAAC,8CADX;AAEC,MAAA,GAAG,EAAG,2BAAc,CACnBI,qBADmB,EAEnBF,eAFmB,CAAd;AAFP,OAOC,4BAAC,mCAAD
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js"],"names":["ListViewSidebar","setIsListViewOpened","editWidgetsStore","focusOnMountRef","headerFocusReturnRef","contentFocusReturnRef","closeOnEscape","event","keyCode","ESCAPE","defaultPrevented","preventDefault","instanceId","labelId","closeSmall"],"mappings":";;;;;;;;;AAGA;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AAKA;;AAnBA;AACA;AACA;;AAcA;AACA;AACA;AAGe,SAASA,eAAT,GAA2B;AACzC,QAAM;AAAEC,IAAAA;AAAF,MAA0B,uBAAaC,YAAb,CAAhC;AAEA,QAAMC,eAAe,GAAG,8BAAiB,cAAjB,CAAxB;AACA,QAAMC,oBAAoB,GAAG,8BAA7B;AACA,QAAMC,qBAAqB,GAAG,8BAA9B;;AACA,WAASC,aAAT,CAAwBC,KAAxB,EAAgC;AAC/B,QAAKA,KAAK,CAACC,OAAN,KAAkBC,gBAAlB,IAA4B,CAAEF,KAAK,CAACG,gBAAzC,EAA4D;AAC3DH,MAAAA,KAAK,CAACI,cAAN;AACAV,MAAAA,mBAAmB,CAAE,KAAF,CAAnB;AACA;AACD;;AAED,QAAMW,UAAU,GAAG,4BAAeZ,eAAf,CAAnB;AACA,QAAMa,OAAO,GAAI,8CAA8CD,UAAY,EAA3E;AAEA,SACC;AACA;AACC,yBAAkBC,OADnB;AAEC,MAAA,SAAS,EAAC,sCAFX;AAGC,MAAA,SAAS,EAAGP;AAHb,OAKC;AACC,MAAA,SAAS,EAAC,6CADX;AAEC,MAAA,GAAG,EAAGF;AAFP,OAIC;AAAQ,MAAA,EAAE,EAAGS;AAAb,OAAyB,cAAI,WAAJ,CAAzB,CAJD,EAKC,4BAAC,kBAAD;AACC,MAAA,IAAI,EAAGC,iBADR;AAEC,MAAA,KAAK,EAAG,cAAI,yBAAJ,CAFT;AAGC,MAAA,OAAO,EAAG,MAAMb,mBAAmB,CAAE,KAAF;AAHpC,MALD,CALD,EAgBC;AACC,MAAA,SAAS,EAAC,8CADX;AAEC,MAAA,GAAG,EAAG,2BAAc,CACnBI,qBADmB,EAEnBF,eAFmB,CAAd;AAFP,OAOC,4BAAC,mCAAD,OAPD,CAhBD;AAFD;AA6BA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalListView as ListView } from '@wordpress/block-editor';\nimport { Button } from '@wordpress/components';\nimport {\n\tuseFocusOnMount,\n\tuseFocusReturn,\n\tuseInstanceId,\n\tuseMergeRefs,\n} from '@wordpress/compose';\nimport { useDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { closeSmall } from '@wordpress/icons';\nimport { ESCAPE } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { store as editWidgetsStore } from '../../store';\n\nexport default function ListViewSidebar() {\n\tconst { setIsListViewOpened } = useDispatch( editWidgetsStore );\n\n\tconst focusOnMountRef = useFocusOnMount( 'firstElement' );\n\tconst headerFocusReturnRef = useFocusReturn();\n\tconst contentFocusReturnRef = useFocusReturn();\n\tfunction closeOnEscape( event ) {\n\t\tif ( event.keyCode === ESCAPE && ! event.defaultPrevented ) {\n\t\t\tevent.preventDefault();\n\t\t\tsetIsListViewOpened( false );\n\t\t}\n\t}\n\n\tconst instanceId = useInstanceId( ListViewSidebar );\n\tconst labelId = `edit-widgets-editor__list-view-panel-label-${ instanceId }`;\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\taria-labelledby={ labelId }\n\t\t\tclassName=\"edit-widgets-editor__list-view-panel\"\n\t\t\tonKeyDown={ closeOnEscape }\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName=\"edit-widgets-editor__list-view-panel-header\"\n\t\t\t\tref={ headerFocusReturnRef }\n\t\t\t>\n\t\t\t\t<strong id={ labelId }>{ __( 'List View' ) }</strong>\n\t\t\t\t<Button\n\t\t\t\t\ticon={ closeSmall }\n\t\t\t\t\tlabel={ __( 'Close List View Sidebar' ) }\n\t\t\t\t\tonClick={ () => setIsListViewOpened( false ) }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName=\"edit-widgets-editor__list-view-panel-content\"\n\t\t\t\tref={ useMergeRefs( [\n\t\t\t\t\tcontentFocusReturnRef,\n\t\t\t\t\tfocusOnMountRef,\n\t\t\t\t] ) }\n\t\t\t>\n\t\t\t\t<ListView />\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n"]}
|
|
@@ -49,12 +49,7 @@ export default function ListViewSidebar() {
|
|
|
49
49
|
})), createElement("div", {
|
|
50
50
|
className: "edit-widgets-editor__list-view-panel-content",
|
|
51
51
|
ref: useMergeRefs([contentFocusReturnRef, focusOnMountRef])
|
|
52
|
-
}, createElement(ListView,
|
|
53
|
-
showNestedBlocks: true,
|
|
54
|
-
__experimentalHideContainerBlockActions: true,
|
|
55
|
-
__experimentalFeatures: true,
|
|
56
|
-
__experimentalPersistentListViewFeatures: true
|
|
57
|
-
})))
|
|
52
|
+
}, createElement(ListView, null)))
|
|
58
53
|
);
|
|
59
54
|
}
|
|
60
55
|
//# sourceMappingURL=list-view-sidebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js"],"names":["__experimentalListView","ListView","Button","useFocusOnMount","useFocusReturn","useInstanceId","useMergeRefs","useDispatch","__","closeSmall","ESCAPE","store","editWidgetsStore","ListViewSidebar","setIsListViewOpened","focusOnMountRef","headerFocusReturnRef","contentFocusReturnRef","closeOnEscape","event","keyCode","defaultPrevented","preventDefault","instanceId","labelId"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,sBAAsB,IAAIC,QAAnC,QAAmD,yBAAnD;AACA,SAASC,MAAT,QAAuB,uBAAvB;AACA,SACCC,eADD,EAECC,cAFD,EAGCC,aAHD,EAICC,YAJD,QAKO,oBALP;AAMA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC,UAAT,QAA2B,kBAA3B;AACA,SAASC,MAAT,QAAuB,qBAAvB;AAEA;AACA;AACA;;AACA,SAASC,KAAK,IAAIC,gBAAlB,QAA0C,aAA1C;AAEA,eAAe,SAASC,eAAT,GAA2B;AACzC,QAAM;AAAEC,IAAAA;AAAF,MAA0BP,WAAW,CAAEK,gBAAF,CAA3C;AAEA,QAAMG,eAAe,GAAGZ,eAAe,CAAE,cAAF,CAAvC;AACA,QAAMa,oBAAoB,GAAGZ,cAAc,EAA3C;AACA,QAAMa,qBAAqB,GAAGb,cAAc,EAA5C;;AACA,WAASc,aAAT,CAAwBC,KAAxB,EAAgC;AAC/B,QAAKA,KAAK,CAACC,OAAN,KAAkBV,MAAlB,IAA4B,CAAES,KAAK,CAACE,gBAAzC,EAA4D;AAC3DF,MAAAA,KAAK,CAACG,cAAN;AACAR,MAAAA,mBAAmB,CAAE,KAAF,CAAnB;AACA;AACD;;AAED,QAAMS,UAAU,GAAGlB,aAAa,CAAEQ,eAAF,CAAhC;AACA,QAAMW,OAAO,GAAI,8CAA8CD,UAAY,EAA3E;AAEA,SACC;AACA;AACC,yBAAkBC,OADnB;AAEC,MAAA,SAAS,EAAC,sCAFX;AAGC,MAAA,SAAS,EAAGN;AAHb,OAKC;AACC,MAAA,SAAS,EAAC,6CADX;AAEC,MAAA,GAAG,EAAGF;AAFP,OAIC;AAAQ,MAAA,EAAE,EAAGQ;AAAb,OAAyBhB,EAAE,CAAE,WAAF,CAA3B,CAJD,EAKC,cAAC,MAAD;AACC,MAAA,IAAI,EAAGC,UADR;AAEC,MAAA,KAAK,EAAGD,EAAE,CAAE,yBAAF,CAFX;AAGC,MAAA,OAAO,EAAG,MAAMM,mBAAmB,CAAE,KAAF;AAHpC,MALD,CALD,EAgBC;AACC,MAAA,SAAS,EAAC,8CADX;AAEC,MAAA,GAAG,EAAGR,YAAY,CAAE,CACnBW,qBADmB,EAEnBF,eAFmB,CAAF;AAFnB,OAOC,cAAC,QAAD
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js"],"names":["__experimentalListView","ListView","Button","useFocusOnMount","useFocusReturn","useInstanceId","useMergeRefs","useDispatch","__","closeSmall","ESCAPE","store","editWidgetsStore","ListViewSidebar","setIsListViewOpened","focusOnMountRef","headerFocusReturnRef","contentFocusReturnRef","closeOnEscape","event","keyCode","defaultPrevented","preventDefault","instanceId","labelId"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,sBAAsB,IAAIC,QAAnC,QAAmD,yBAAnD;AACA,SAASC,MAAT,QAAuB,uBAAvB;AACA,SACCC,eADD,EAECC,cAFD,EAGCC,aAHD,EAICC,YAJD,QAKO,oBALP;AAMA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC,UAAT,QAA2B,kBAA3B;AACA,SAASC,MAAT,QAAuB,qBAAvB;AAEA;AACA;AACA;;AACA,SAASC,KAAK,IAAIC,gBAAlB,QAA0C,aAA1C;AAEA,eAAe,SAASC,eAAT,GAA2B;AACzC,QAAM;AAAEC,IAAAA;AAAF,MAA0BP,WAAW,CAAEK,gBAAF,CAA3C;AAEA,QAAMG,eAAe,GAAGZ,eAAe,CAAE,cAAF,CAAvC;AACA,QAAMa,oBAAoB,GAAGZ,cAAc,EAA3C;AACA,QAAMa,qBAAqB,GAAGb,cAAc,EAA5C;;AACA,WAASc,aAAT,CAAwBC,KAAxB,EAAgC;AAC/B,QAAKA,KAAK,CAACC,OAAN,KAAkBV,MAAlB,IAA4B,CAAES,KAAK,CAACE,gBAAzC,EAA4D;AAC3DF,MAAAA,KAAK,CAACG,cAAN;AACAR,MAAAA,mBAAmB,CAAE,KAAF,CAAnB;AACA;AACD;;AAED,QAAMS,UAAU,GAAGlB,aAAa,CAAEQ,eAAF,CAAhC;AACA,QAAMW,OAAO,GAAI,8CAA8CD,UAAY,EAA3E;AAEA,SACC;AACA;AACC,yBAAkBC,OADnB;AAEC,MAAA,SAAS,EAAC,sCAFX;AAGC,MAAA,SAAS,EAAGN;AAHb,OAKC;AACC,MAAA,SAAS,EAAC,6CADX;AAEC,MAAA,GAAG,EAAGF;AAFP,OAIC;AAAQ,MAAA,EAAE,EAAGQ;AAAb,OAAyBhB,EAAE,CAAE,WAAF,CAA3B,CAJD,EAKC,cAAC,MAAD;AACC,MAAA,IAAI,EAAGC,UADR;AAEC,MAAA,KAAK,EAAGD,EAAE,CAAE,yBAAF,CAFX;AAGC,MAAA,OAAO,EAAG,MAAMM,mBAAmB,CAAE,KAAF;AAHpC,MALD,CALD,EAgBC;AACC,MAAA,SAAS,EAAC,8CADX;AAEC,MAAA,GAAG,EAAGR,YAAY,CAAE,CACnBW,qBADmB,EAEnBF,eAFmB,CAAF;AAFnB,OAOC,cAAC,QAAD,OAPD,CAhBD;AAFD;AA6BA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalListView as ListView } from '@wordpress/block-editor';\nimport { Button } from '@wordpress/components';\nimport {\n\tuseFocusOnMount,\n\tuseFocusReturn,\n\tuseInstanceId,\n\tuseMergeRefs,\n} from '@wordpress/compose';\nimport { useDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { closeSmall } from '@wordpress/icons';\nimport { ESCAPE } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { store as editWidgetsStore } from '../../store';\n\nexport default function ListViewSidebar() {\n\tconst { setIsListViewOpened } = useDispatch( editWidgetsStore );\n\n\tconst focusOnMountRef = useFocusOnMount( 'firstElement' );\n\tconst headerFocusReturnRef = useFocusReturn();\n\tconst contentFocusReturnRef = useFocusReturn();\n\tfunction closeOnEscape( event ) {\n\t\tif ( event.keyCode === ESCAPE && ! event.defaultPrevented ) {\n\t\t\tevent.preventDefault();\n\t\t\tsetIsListViewOpened( false );\n\t\t}\n\t}\n\n\tconst instanceId = useInstanceId( ListViewSidebar );\n\tconst labelId = `edit-widgets-editor__list-view-panel-label-${ instanceId }`;\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\taria-labelledby={ labelId }\n\t\t\tclassName=\"edit-widgets-editor__list-view-panel\"\n\t\t\tonKeyDown={ closeOnEscape }\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName=\"edit-widgets-editor__list-view-panel-header\"\n\t\t\t\tref={ headerFocusReturnRef }\n\t\t\t>\n\t\t\t\t<strong id={ labelId }>{ __( 'List View' ) }</strong>\n\t\t\t\t<Button\n\t\t\t\t\ticon={ closeSmall }\n\t\t\t\t\tlabel={ __( 'Close List View Sidebar' ) }\n\t\t\t\t\tonClick={ () => setIsListViewOpened( false ) }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName=\"edit-widgets-editor__list-view-panel-content\"\n\t\t\t\tref={ useMergeRefs( [\n\t\t\t\t\tcontentFocusReturnRef,\n\t\t\t\t\tfocusOnMountRef,\n\t\t\t\t] ) }\n\t\t\t>\n\t\t\t\t<ListView />\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n"]}
|
|
@@ -416,7 +416,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
416
416
|
}
|
|
417
417
|
@media (min-width: 480px) {
|
|
418
418
|
.interface-more-menu-dropdown__content .components-popover__content {
|
|
419
|
-
width: auto;
|
|
420
419
|
max-width: 480px;
|
|
421
420
|
}
|
|
422
421
|
}
|
|
@@ -430,6 +429,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
430
429
|
|
|
431
430
|
.interface-pinned-items {
|
|
432
431
|
display: flex;
|
|
432
|
+
gap: 4px;
|
|
433
|
+
margin-left: -4px;
|
|
433
434
|
}
|
|
434
435
|
.interface-pinned-items .components-button:not(:first-child) {
|
|
435
436
|
display: none;
|
|
@@ -440,7 +441,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
443
|
.interface-pinned-items .components-button {
|
|
443
|
-
margin
|
|
444
|
+
margin: 0;
|
|
444
445
|
}
|
|
445
446
|
.interface-pinned-items .components-button svg {
|
|
446
447
|
max-width: 24px;
|
|
@@ -779,7 +780,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
779
780
|
visibility: hidden;
|
|
780
781
|
}
|
|
781
782
|
.components-button.edit-widgets-sidebar__panel-tab.is-active {
|
|
782
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -
|
|
783
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
783
784
|
font-weight: 600;
|
|
784
785
|
position: relative;
|
|
785
786
|
}
|
|
@@ -790,13 +791,13 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
790
791
|
bottom: 1px;
|
|
791
792
|
left: 0;
|
|
792
793
|
right: 0;
|
|
793
|
-
border-bottom:
|
|
794
|
+
border-bottom: 1.5px solid transparent;
|
|
794
795
|
}
|
|
795
796
|
.components-button.edit-widgets-sidebar__panel-tab:focus {
|
|
796
797
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
797
798
|
}
|
|
798
799
|
.components-button.edit-widgets-sidebar__panel-tab.is-active:focus {
|
|
799
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -
|
|
800
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
800
801
|
}
|
|
801
802
|
|
|
802
803
|
.edit-widgets-widget-areas__top-container {
|
package/build-style/style.css
CHANGED
|
@@ -416,7 +416,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
416
416
|
}
|
|
417
417
|
@media (min-width: 480px) {
|
|
418
418
|
.interface-more-menu-dropdown__content .components-popover__content {
|
|
419
|
-
width: auto;
|
|
420
419
|
max-width: 480px;
|
|
421
420
|
}
|
|
422
421
|
}
|
|
@@ -430,6 +429,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
430
429
|
|
|
431
430
|
.interface-pinned-items {
|
|
432
431
|
display: flex;
|
|
432
|
+
gap: 4px;
|
|
433
|
+
margin-right: -4px;
|
|
433
434
|
}
|
|
434
435
|
.interface-pinned-items .components-button:not(:first-child) {
|
|
435
436
|
display: none;
|
|
@@ -440,7 +441,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
443
|
.interface-pinned-items .components-button {
|
|
443
|
-
margin
|
|
444
|
+
margin: 0;
|
|
444
445
|
}
|
|
445
446
|
.interface-pinned-items .components-button svg {
|
|
446
447
|
max-width: 24px;
|
|
@@ -779,7 +780,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
779
780
|
visibility: hidden;
|
|
780
781
|
}
|
|
781
782
|
.components-button.edit-widgets-sidebar__panel-tab.is-active {
|
|
782
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -
|
|
783
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
783
784
|
font-weight: 600;
|
|
784
785
|
position: relative;
|
|
785
786
|
}
|
|
@@ -790,13 +791,13 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
790
791
|
bottom: 1px;
|
|
791
792
|
right: 0;
|
|
792
793
|
left: 0;
|
|
793
|
-
border-bottom:
|
|
794
|
+
border-bottom: 1.5px solid transparent;
|
|
794
795
|
}
|
|
795
796
|
.components-button.edit-widgets-sidebar__panel-tab:focus {
|
|
796
797
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
797
798
|
}
|
|
798
799
|
.components-button.edit-widgets-sidebar__panel-tab.is-active:focus {
|
|
799
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -
|
|
800
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
800
801
|
}
|
|
801
802
|
|
|
802
803
|
.edit-widgets-widget-areas__top-container {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-widgets",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Widgets Page module for WordPress..",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,29 +27,30 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/api-fetch": "^6.
|
|
31
|
-
"@wordpress/block-editor": "^
|
|
32
|
-
"@wordpress/block-library": "^7.
|
|
33
|
-
"@wordpress/blocks": "^11.
|
|
34
|
-
"@wordpress/components": "^19.
|
|
35
|
-
"@wordpress/compose": "^5.
|
|
36
|
-
"@wordpress/core-data": "^4.
|
|
37
|
-
"@wordpress/data": "^6.
|
|
38
|
-
"@wordpress/
|
|
39
|
-
"@wordpress/
|
|
40
|
-
"@wordpress/
|
|
41
|
-
"@wordpress/
|
|
42
|
-
"@wordpress/
|
|
43
|
-
"@wordpress/
|
|
44
|
-
"@wordpress/
|
|
45
|
-
"@wordpress/
|
|
46
|
-
"@wordpress/
|
|
47
|
-
"@wordpress/
|
|
48
|
-
"@wordpress/
|
|
49
|
-
"@wordpress/
|
|
50
|
-
"@wordpress/
|
|
51
|
-
"@wordpress/
|
|
52
|
-
"@wordpress/
|
|
30
|
+
"@wordpress/api-fetch": "^6.6.0",
|
|
31
|
+
"@wordpress/block-editor": "^9.1.0",
|
|
32
|
+
"@wordpress/block-library": "^7.6.0",
|
|
33
|
+
"@wordpress/blocks": "^11.8.0",
|
|
34
|
+
"@wordpress/components": "^19.11.0",
|
|
35
|
+
"@wordpress/compose": "^5.7.0",
|
|
36
|
+
"@wordpress/core-data": "^4.7.0",
|
|
37
|
+
"@wordpress/data": "^6.9.0",
|
|
38
|
+
"@wordpress/deprecated": "^3.9.0",
|
|
39
|
+
"@wordpress/dom": "^3.9.0",
|
|
40
|
+
"@wordpress/element": "^4.7.0",
|
|
41
|
+
"@wordpress/hooks": "^3.9.0",
|
|
42
|
+
"@wordpress/i18n": "^4.9.0",
|
|
43
|
+
"@wordpress/icons": "^9.0.0",
|
|
44
|
+
"@wordpress/interface": "^4.8.0",
|
|
45
|
+
"@wordpress/keyboard-shortcuts": "^3.7.0",
|
|
46
|
+
"@wordpress/keycodes": "^3.9.0",
|
|
47
|
+
"@wordpress/media-utils": "^4.0.0",
|
|
48
|
+
"@wordpress/notices": "^3.9.0",
|
|
49
|
+
"@wordpress/plugins": "^4.7.0",
|
|
50
|
+
"@wordpress/preferences": "^2.1.0",
|
|
51
|
+
"@wordpress/reusable-blocks": "^3.7.0",
|
|
52
|
+
"@wordpress/url": "^3.10.0",
|
|
53
|
+
"@wordpress/widgets": "^2.7.0",
|
|
53
54
|
"classnames": "^2.3.1",
|
|
54
55
|
"lodash": "^4.17.21"
|
|
55
56
|
},
|
|
@@ -60,5 +61,5 @@
|
|
|
60
61
|
"publishConfig": {
|
|
61
62
|
"access": "public"
|
|
62
63
|
},
|
|
63
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "198fa129cf1af8dc615918987ea6795cd40ab7df"
|
|
64
65
|
}
|
|
@@ -60,12 +60,7 @@ export default function ListViewSidebar() {
|
|
|
60
60
|
focusOnMountRef,
|
|
61
61
|
] ) }
|
|
62
62
|
>
|
|
63
|
-
<ListView
|
|
64
|
-
showNestedBlocks
|
|
65
|
-
__experimentalHideContainerBlockActions
|
|
66
|
-
__experimentalFeatures
|
|
67
|
-
__experimentalPersistentListViewFeatures
|
|
68
|
-
/>
|
|
63
|
+
<ListView />
|
|
69
64
|
</div>
|
|
70
65
|
</div>
|
|
71
66
|
);
|