@wordpress/widgets 4.5.0 → 4.7.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/legacy-widget/edit/widget-type-selector.js +1 -0
- package/build/blocks/legacy-widget/edit/widget-type-selector.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/widget-type-selector.js +1 -0
- package/build-module/blocks/legacy-widget/edit/widget-type-selector.js.map +1 -1
- package/build-style/style-rtl.css +3 -3
- package/build-style/style.css +3 -3
- package/package.json +13 -13
- package/src/blocks/legacy-widget/edit/widget-type-selector.js +1 -0
- package/src/blocks/legacy-widget/editor.scss +7 -7
- package/src/blocks/widget-group/editor.scss +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -32,6 +32,7 @@ function WidgetTypeSelector({
|
|
|
32
32
|
return (0, _i18n.__)('There are no widgets available.');
|
|
33
33
|
}
|
|
34
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SelectControl, {
|
|
35
|
+
__next40pxDefaultSize: true,
|
|
35
36
|
__nextHasNoMarginBottom: true,
|
|
36
37
|
label: (0, _i18n.__)('Select a legacy widget to display:'),
|
|
37
38
|
value: selectedId !== null && selectedId !== void 0 ? selectedId : '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_components","require","_i18n","_data","_coreData","_blockEditor","_jsxRuntime","WidgetTypeSelector","selectedId","onSelect","widgetTypes","useSelect","select","_select$getSettings$w","hiddenIds","blockEditorStore","getSettings","widgetTypesToHideFromLegacyWidgetBlock","coreStore","getWidgetTypes","per_page","filter","widgetType","includes","id","jsx","Spinner","length","__","SelectControl","__nextHasNoMarginBottom","label","value","options","map","name","onChange","selected","find","isMulti","is_multi"],"sources":["@wordpress/widgets/src/blocks/legacy-widget/edit/widget-type-selector.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Spinner, SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\nexport default function WidgetTypeSelector( { selectedId, onSelect } ) {\n\tconst widgetTypes = useSelect( ( select ) => {\n\t\tconst hiddenIds =\n\t\t\tselect( blockEditorStore ).getSettings()\n\t\t\t\t?.widgetTypesToHideFromLegacyWidgetBlock ?? [];\n\t\treturn select( coreStore )\n\t\t\t.getWidgetTypes( { per_page: -1 } )\n\t\t\t?.filter( ( widgetType ) => ! hiddenIds.includes( widgetType.id ) );\n\t}, [] );\n\n\tif ( ! widgetTypes ) {\n\t\treturn <Spinner />;\n\t}\n\n\tif ( widgetTypes.length === 0 ) {\n\t\treturn __( 'There are no widgets available.' );\n\t}\n\n\treturn (\n\t\t<SelectControl\n\t\t\t__nextHasNoMarginBottom\n\t\t\tlabel={ __( 'Select a legacy widget to display:' ) }\n\t\t\tvalue={ selectedId ?? '' }\n\t\t\toptions={ [\n\t\t\t\t{ value: '', label: __( 'Select widget' ) },\n\t\t\t\t...widgetTypes.map( ( widgetType ) => ( {\n\t\t\t\t\tvalue: widgetType.id,\n\t\t\t\t\tlabel: widgetType.name,\n\t\t\t\t} ) ),\n\t\t\t] }\n\t\t\tonChange={ ( value ) => {\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst selected = widgetTypes.find(\n\t\t\t\t\t\t( widgetType ) => widgetType.id === value\n\t\t\t\t\t);\n\t\t\t\t\tonSelect( {\n\t\t\t\t\t\tselectedId: selected.id,\n\t\t\t\t\t\tisMulti: selected.is_multi,\n\t\t\t\t\t} );\n\t\t\t\t} else {\n\t\t\t\t\tonSelect( { selectedId: null } );\n\t\t\t\t}\n\t\t\t} }\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAAoE,IAAAK,WAAA,GAAAL,OAAA;AAPpE;AACA;AACA;;AAOe,SAASM,kBAAkBA,CAAE;EAAEC,UAAU;EAAEC;AAAS,CAAC,EAAG;EACtE,MAAMC,WAAW,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IAAA,IAAAC,qBAAA;IAC5C,MAAMC,SAAS,IAAAD,qBAAA,GACdD,MAAM,CAAEG,kBAAiB,CAAC,CAACC,WAAW,CAAC,CAAC,EACrCC,sCAAsC,cAAAJ,qBAAA,cAAAA,qBAAA,GAAI,EAAE;IAChD,OAAOD,MAAM,CAAEM,eAAU,CAAC,CACxBC,cAAc,CAAE;MAAEC,QAAQ,EAAE,CAAC;IAAE,CAAE,CAAC,EACjCC,MAAM,CAAIC,UAAU,IAAM,CAAER,SAAS,CAACS,QAAQ,CAAED,UAAU,CAACE,EAAG,CAAE,CAAC;EACrE,CAAC,EAAE,EAAG,CAAC;EAEP,IAAK,CAAEd,WAAW,EAAG;IACpB,oBAAO,IAAAJ,WAAA,CAAAmB,GAAA,EAACzB,WAAA,CAAA0B,OAAO,IAAE,CAAC;EACnB;EAEA,IAAKhB,WAAW,CAACiB,MAAM,KAAK,CAAC,EAAG;IAC/B,OAAO,IAAAC,QAAE,EAAE,iCAAkC,CAAC;EAC/C;EAEA,oBACC,IAAAtB,WAAA,CAAAmB,GAAA,EAACzB,WAAA,CAAA6B,aAAa;IACbC,uBAAuB;IACvBC,KAAK,EAAG,
|
|
1
|
+
{"version":3,"names":["_components","require","_i18n","_data","_coreData","_blockEditor","_jsxRuntime","WidgetTypeSelector","selectedId","onSelect","widgetTypes","useSelect","select","_select$getSettings$w","hiddenIds","blockEditorStore","getSettings","widgetTypesToHideFromLegacyWidgetBlock","coreStore","getWidgetTypes","per_page","filter","widgetType","includes","id","jsx","Spinner","length","__","SelectControl","__next40pxDefaultSize","__nextHasNoMarginBottom","label","value","options","map","name","onChange","selected","find","isMulti","is_multi"],"sources":["@wordpress/widgets/src/blocks/legacy-widget/edit/widget-type-selector.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Spinner, SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\nexport default function WidgetTypeSelector( { selectedId, onSelect } ) {\n\tconst widgetTypes = useSelect( ( select ) => {\n\t\tconst hiddenIds =\n\t\t\tselect( blockEditorStore ).getSettings()\n\t\t\t\t?.widgetTypesToHideFromLegacyWidgetBlock ?? [];\n\t\treturn select( coreStore )\n\t\t\t.getWidgetTypes( { per_page: -1 } )\n\t\t\t?.filter( ( widgetType ) => ! hiddenIds.includes( widgetType.id ) );\n\t}, [] );\n\n\tif ( ! widgetTypes ) {\n\t\treturn <Spinner />;\n\t}\n\n\tif ( widgetTypes.length === 0 ) {\n\t\treturn __( 'There are no widgets available.' );\n\t}\n\n\treturn (\n\t\t<SelectControl\n\t\t\t__next40pxDefaultSize\n\t\t\t__nextHasNoMarginBottom\n\t\t\tlabel={ __( 'Select a legacy widget to display:' ) }\n\t\t\tvalue={ selectedId ?? '' }\n\t\t\toptions={ [\n\t\t\t\t{ value: '', label: __( 'Select widget' ) },\n\t\t\t\t...widgetTypes.map( ( widgetType ) => ( {\n\t\t\t\t\tvalue: widgetType.id,\n\t\t\t\t\tlabel: widgetType.name,\n\t\t\t\t} ) ),\n\t\t\t] }\n\t\t\tonChange={ ( value ) => {\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst selected = widgetTypes.find(\n\t\t\t\t\t\t( widgetType ) => widgetType.id === value\n\t\t\t\t\t);\n\t\t\t\t\tonSelect( {\n\t\t\t\t\t\tselectedId: selected.id,\n\t\t\t\t\t\tisMulti: selected.is_multi,\n\t\t\t\t\t} );\n\t\t\t\t} else {\n\t\t\t\t\tonSelect( { selectedId: null } );\n\t\t\t\t}\n\t\t\t} }\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,CACT;MAAED,KAAK,EAAE,EAAE;MAAED,KAAK,EAAE,IAAAJ,QAAE,EAAE,eAAgB;IAAE,CAAC,EAC3C,GAAGlB,WAAW,CAACyB,GAAG,CAAIb,UAAU,KAAQ;MACvCW,KAAK,EAAEX,UAAU,CAACE,EAAE;MACpBQ,KAAK,EAAEV,UAAU,CAACc;IACnB,CAAC,CAAG,CAAC,CACH;IACHC,QAAQ,EAAKJ,KAAK,IAAM;MACvB,IAAKA,KAAK,EAAG;QACZ,MAAMK,QAAQ,GAAG5B,WAAW,CAAC6B,IAAI,CAC9BjB,UAAU,IAAMA,UAAU,CAACE,EAAE,KAAKS,KACrC,CAAC;QACDxB,QAAQ,CAAE;UACTD,UAAU,EAAE8B,QAAQ,CAACd,EAAE;UACvBgB,OAAO,EAAEF,QAAQ,CAACG;QACnB,CAAE,CAAC;MACJ,CAAC,MAAM;QACNhC,QAAQ,CAAE;UAAED,UAAU,EAAE;QAAK,CAAE,CAAC;MACjC;IACD;EAAG,CACH,CAAC;AAEJ","ignoreList":[]}
|
|
@@ -25,6 +25,7 @@ export default function WidgetTypeSelector({
|
|
|
25
25
|
return __('There are no widgets available.');
|
|
26
26
|
}
|
|
27
27
|
return /*#__PURE__*/_jsx(SelectControl, {
|
|
28
|
+
__next40pxDefaultSize: true,
|
|
28
29
|
__nextHasNoMarginBottom: true,
|
|
29
30
|
label: __('Select a legacy widget to display:'),
|
|
30
31
|
value: selectedId !== null && selectedId !== void 0 ? selectedId : '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Spinner","SelectControl","__","useSelect","store","coreStore","blockEditorStore","jsx","_jsx","WidgetTypeSelector","selectedId","onSelect","widgetTypes","select","_select$getSettings$w","hiddenIds","getSettings","widgetTypesToHideFromLegacyWidgetBlock","getWidgetTypes","per_page","filter","widgetType","includes","id","length","__nextHasNoMarginBottom","label","value","options","map","name","onChange","selected","find","isMulti","is_multi"],"sources":["@wordpress/widgets/src/blocks/legacy-widget/edit/widget-type-selector.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Spinner, SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\nexport default function WidgetTypeSelector( { selectedId, onSelect } ) {\n\tconst widgetTypes = useSelect( ( select ) => {\n\t\tconst hiddenIds =\n\t\t\tselect( blockEditorStore ).getSettings()\n\t\t\t\t?.widgetTypesToHideFromLegacyWidgetBlock ?? [];\n\t\treturn select( coreStore )\n\t\t\t.getWidgetTypes( { per_page: -1 } )\n\t\t\t?.filter( ( widgetType ) => ! hiddenIds.includes( widgetType.id ) );\n\t}, [] );\n\n\tif ( ! widgetTypes ) {\n\t\treturn <Spinner />;\n\t}\n\n\tif ( widgetTypes.length === 0 ) {\n\t\treturn __( 'There are no widgets available.' );\n\t}\n\n\treturn (\n\t\t<SelectControl\n\t\t\t__nextHasNoMarginBottom\n\t\t\tlabel={ __( 'Select a legacy widget to display:' ) }\n\t\t\tvalue={ selectedId ?? '' }\n\t\t\toptions={ [\n\t\t\t\t{ value: '', label: __( 'Select widget' ) },\n\t\t\t\t...widgetTypes.map( ( widgetType ) => ( {\n\t\t\t\t\tvalue: widgetType.id,\n\t\t\t\t\tlabel: widgetType.name,\n\t\t\t\t} ) ),\n\t\t\t] }\n\t\t\tonChange={ ( value ) => {\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst selected = widgetTypes.find(\n\t\t\t\t\t\t( widgetType ) => widgetType.id === value\n\t\t\t\t\t);\n\t\t\t\t\tonSelect( {\n\t\t\t\t\t\tselectedId: selected.id,\n\t\t\t\t\t\tisMulti: selected.is_multi,\n\t\t\t\t\t} );\n\t\t\t\t} else {\n\t\t\t\t\tonSelect( { selectedId: null } );\n\t\t\t\t}\n\t\t\t} }\n\t\t/>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,OAAO,EAAEC,aAAa,QAAQ,uBAAuB;AAC9D,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AACzD,SAASD,KAAK,IAAIE,gBAAgB,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpE,eAAe,SAASC,kBAAkBA,CAAE;EAAEC,UAAU;EAAEC;AAAS,CAAC,EAAG;EACtE,MAAMC,WAAW,GAAGT,SAAS,CAAIU,MAAM,IAAM;IAAA,IAAAC,qBAAA;IAC5C,MAAMC,SAAS,IAAAD,qBAAA,GACdD,MAAM,CAAEP,gBAAiB,CAAC,CAACU,WAAW,CAAC,CAAC,EACrCC,sCAAsC,cAAAH,qBAAA,cAAAA,qBAAA,GAAI,EAAE;IAChD,OAAOD,MAAM,CAAER,SAAU,CAAC,CACxBa,cAAc,CAAE;MAAEC,QAAQ,EAAE,CAAC;IAAE,CAAE,CAAC,EACjCC,MAAM,CAAIC,UAAU,IAAM,CAAEN,SAAS,CAACO,QAAQ,CAAED,UAAU,CAACE,EAAG,CAAE,CAAC;EACrE,CAAC,EAAE,EAAG,CAAC;EAEP,IAAK,CAAEX,WAAW,EAAG;IACpB,oBAAOJ,IAAA,CAACR,OAAO,IAAE,CAAC;EACnB;EAEA,IAAKY,WAAW,CAACY,MAAM,KAAK,CAAC,EAAG;IAC/B,OAAOtB,EAAE,CAAE,iCAAkC,CAAC;EAC/C;EAEA,oBACCM,IAAA,CAACP,aAAa;IACbwB,uBAAuB;IACvBC,KAAK,
|
|
1
|
+
{"version":3,"names":["Spinner","SelectControl","__","useSelect","store","coreStore","blockEditorStore","jsx","_jsx","WidgetTypeSelector","selectedId","onSelect","widgetTypes","select","_select$getSettings$w","hiddenIds","getSettings","widgetTypesToHideFromLegacyWidgetBlock","getWidgetTypes","per_page","filter","widgetType","includes","id","length","__next40pxDefaultSize","__nextHasNoMarginBottom","label","value","options","map","name","onChange","selected","find","isMulti","is_multi"],"sources":["@wordpress/widgets/src/blocks/legacy-widget/edit/widget-type-selector.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Spinner, SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\nexport default function WidgetTypeSelector( { selectedId, onSelect } ) {\n\tconst widgetTypes = useSelect( ( select ) => {\n\t\tconst hiddenIds =\n\t\t\tselect( blockEditorStore ).getSettings()\n\t\t\t\t?.widgetTypesToHideFromLegacyWidgetBlock ?? [];\n\t\treturn select( coreStore )\n\t\t\t.getWidgetTypes( { per_page: -1 } )\n\t\t\t?.filter( ( widgetType ) => ! hiddenIds.includes( widgetType.id ) );\n\t}, [] );\n\n\tif ( ! widgetTypes ) {\n\t\treturn <Spinner />;\n\t}\n\n\tif ( widgetTypes.length === 0 ) {\n\t\treturn __( 'There are no widgets available.' );\n\t}\n\n\treturn (\n\t\t<SelectControl\n\t\t\t__next40pxDefaultSize\n\t\t\t__nextHasNoMarginBottom\n\t\t\tlabel={ __( 'Select a legacy widget to display:' ) }\n\t\t\tvalue={ selectedId ?? '' }\n\t\t\toptions={ [\n\t\t\t\t{ value: '', label: __( 'Select widget' ) },\n\t\t\t\t...widgetTypes.map( ( widgetType ) => ( {\n\t\t\t\t\tvalue: widgetType.id,\n\t\t\t\t\tlabel: widgetType.name,\n\t\t\t\t} ) ),\n\t\t\t] }\n\t\t\tonChange={ ( value ) => {\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst selected = widgetTypes.find(\n\t\t\t\t\t\t( widgetType ) => widgetType.id === value\n\t\t\t\t\t);\n\t\t\t\t\tonSelect( {\n\t\t\t\t\t\tselectedId: selected.id,\n\t\t\t\t\t\tisMulti: selected.is_multi,\n\t\t\t\t\t} );\n\t\t\t\t} else {\n\t\t\t\t\tonSelect( { selectedId: null } );\n\t\t\t\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AAE;MAAED,KAAK,EAAEzB,EAAE,CAAE,eAAgB;IAAE,CAAC,EAC3C,GAAGU,WAAW,CAACkB,GAAG,CAAIT,UAAU,KAAQ;MACvCO,KAAK,EAAEP,UAAU,CAACE,EAAE;MACpBI,KAAK,EAAEN,UAAU,CAACU;IACnB,CAAC,CAAG,CAAC,CACH;IACHC,QAAQ,EAAKJ,KAAK,IAAM;MACvB,IAAKA,KAAK,EAAG;QACZ,MAAMK,QAAQ,GAAGrB,WAAW,CAACsB,IAAI,CAC9Bb,UAAU,IAAMA,UAAU,CAACE,EAAE,KAAKK,KACrC,CAAC;QACDjB,QAAQ,CAAE;UACTD,UAAU,EAAEuB,QAAQ,CAACV,EAAE;UACvBY,OAAO,EAAEF,QAAQ,CAACG;QACnB,CAAE,CAAC;MACJ,CAAC,MAAM;QACNzB,QAAQ,CAAE;UAAED,UAAU,EAAE;QAAK,CAAE,CAAC;MACjC;IACD;EAAG,CACH,CAAC;AAEJ","ignoreList":[]}
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
* Radius scale.
|
|
38
38
|
*/
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Elevation scale.
|
|
41
41
|
*/
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Dimensions.
|
|
44
44
|
*/
|
|
45
45
|
/**
|
|
46
46
|
* Editor widths.
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
border-radius: 2px;
|
|
113
113
|
border: 1px solid #1e1e1e;
|
|
114
114
|
padding: 11px;
|
|
115
|
-
max-height: calc(100vh -
|
|
115
|
+
max-height: calc(100vh - 1px - 1px);
|
|
116
116
|
overflow-y: scroll;
|
|
117
117
|
}
|
|
118
118
|
.wp-block-legacy-widget__edit-form:not([hidden]) {
|
package/build-style/style.css
CHANGED
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
* Radius scale.
|
|
38
38
|
*/
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Elevation scale.
|
|
41
41
|
*/
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Dimensions.
|
|
44
44
|
*/
|
|
45
45
|
/**
|
|
46
46
|
* Editor widths.
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
border-radius: 2px;
|
|
113
113
|
border: 1px solid #1e1e1e;
|
|
114
114
|
padding: 11px;
|
|
115
|
-
max-height: calc(100vh -
|
|
115
|
+
max-height: calc(100vh - 1px - 1px);
|
|
116
116
|
overflow-y: scroll;
|
|
117
117
|
}
|
|
118
118
|
.wp-block-legacy-widget__edit-form:not([hidden]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/widgets",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Functionality used by the widgets block editor in the Widgets screen and the Customizer.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"react-native": "src/index",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.16.0",
|
|
28
|
-
"@wordpress/api-fetch": "^7.
|
|
29
|
-
"@wordpress/block-editor": "^14.
|
|
30
|
-
"@wordpress/blocks": "^13.
|
|
31
|
-
"@wordpress/components": "^28.
|
|
32
|
-
"@wordpress/compose": "^7.
|
|
33
|
-
"@wordpress/core-data": "^7.
|
|
34
|
-
"@wordpress/data": "^10.
|
|
35
|
-
"@wordpress/element": "^6.
|
|
36
|
-
"@wordpress/i18n": "^5.
|
|
37
|
-
"@wordpress/icons": "^10.
|
|
38
|
-
"@wordpress/notices": "^5.
|
|
28
|
+
"@wordpress/api-fetch": "^7.7.0",
|
|
29
|
+
"@wordpress/block-editor": "^14.2.0",
|
|
30
|
+
"@wordpress/blocks": "^13.7.0",
|
|
31
|
+
"@wordpress/components": "^28.7.0",
|
|
32
|
+
"@wordpress/compose": "^7.7.0",
|
|
33
|
+
"@wordpress/core-data": "^7.7.0",
|
|
34
|
+
"@wordpress/data": "^10.7.0",
|
|
35
|
+
"@wordpress/element": "^6.7.0",
|
|
36
|
+
"@wordpress/i18n": "^5.7.0",
|
|
37
|
+
"@wordpress/icons": "^10.7.0",
|
|
38
|
+
"@wordpress/notices": "^5.7.0",
|
|
39
39
|
"clsx": "^2.1.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "c90d920de07c53dff82c5914635b56fafa503b7f"
|
|
49
49
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
display: flow-root;
|
|
4
4
|
}
|
|
5
5
|
background: $white;
|
|
6
|
-
border-radius: $radius-
|
|
7
|
-
border:
|
|
8
|
-
padding: $grid-unit-15 -
|
|
9
|
-
max-height: calc(100vh -
|
|
6
|
+
border-radius: $radius-small;
|
|
7
|
+
border: $border-width solid $gray-900;
|
|
8
|
+
padding: $grid-unit-15 - $border-width;
|
|
9
|
+
max-height: calc(100vh - #{ $border-width } - #{ $border-width });
|
|
10
10
|
overflow-y: scroll;
|
|
11
11
|
|
|
12
12
|
.wp-block-legacy-widget__edit-form-title {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
font-family: system-ui;
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
box-sizing: border-box;
|
|
60
|
-
border:
|
|
60
|
+
border: $border-width solid $gray-700;
|
|
61
61
|
border-radius: 3px;
|
|
62
62
|
box-shadow: none;
|
|
63
63
|
color: $black;
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
cursor: pointer;
|
|
96
96
|
|
|
97
97
|
&:hover::after {
|
|
98
|
-
border-radius: $radius-
|
|
99
|
-
border:
|
|
98
|
+
border-radius: $radius-small;
|
|
99
|
+
border: $border-width solid $gray-600;
|
|
100
100
|
bottom: 0;
|
|
101
101
|
content: "";
|
|
102
102
|
left: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.wp-block-widget-group {
|
|
2
2
|
&.has-child-selected::after {
|
|
3
|
-
border-radius: $radius-
|
|
4
|
-
border:
|
|
3
|
+
border-radius: $radius-small;
|
|
4
|
+
border: $border-width solid var(--wp-admin-theme-color);
|
|
5
5
|
bottom: 0;
|
|
6
6
|
content: "";
|
|
7
7
|
left: 0;
|