@wordpress/widgets 3.35.0 → 4.0.1
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/blocks/legacy-widget/edit/convert-to-blocks-button.js +5 -4
- package/build/blocks/legacy-widget/edit/convert-to-blocks-button.js.map +1 -1
- package/build/blocks/legacy-widget/edit/form.js +27 -22
- package/build/blocks/legacy-widget/edit/form.js.map +1 -1
- package/build/blocks/legacy-widget/edit/index.js +85 -67
- package/build/blocks/legacy-widget/edit/index.js.map +1 -1
- package/build/blocks/legacy-widget/edit/inspector-card.js +10 -6
- package/build/blocks/legacy-widget/edit/inspector-card.js.map +1 -1
- package/build/blocks/legacy-widget/edit/no-preview.js +9 -4
- package/build/blocks/legacy-widget/edit/no-preview.js.map +1 -1
- package/build/blocks/legacy-widget/edit/preview.js +28 -21
- package/build/blocks/legacy-widget/edit/preview.js.map +1 -1
- package/build/blocks/legacy-widget/edit/widget-type-selector.js +3 -3
- package/build/blocks/legacy-widget/edit/widget-type-selector.js.map +1 -1
- package/build/blocks/widget-group/deprecated.js +8 -6
- package/build/blocks/widget-group/deprecated.js.map +1 -1
- package/build/blocks/widget-group/edit.js +35 -29
- package/build/blocks/widget-group/edit.js.map +1 -1
- package/build/blocks/widget-group/save.js +11 -8
- package/build/blocks/widget-group/save.js.map +1 -1
- package/build/components/move-to-widget-area/index.js +27 -21
- package/build/components/move-to-widget-area/index.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/convert-to-blocks-button.js +5 -4
- package/build-module/blocks/legacy-widget/edit/convert-to-blocks-button.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/form.js +28 -22
- package/build-module/blocks/legacy-widget/edit/form.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/index.js +87 -67
- package/build-module/blocks/legacy-widget/edit/index.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/inspector-card.js +11 -6
- package/build-module/blocks/legacy-widget/edit/inspector-card.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/no-preview.js +10 -4
- package/build-module/blocks/legacy-widget/edit/no-preview.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/preview.js +30 -21
- package/build-module/blocks/legacy-widget/edit/preview.js.map +1 -1
- package/build-module/blocks/legacy-widget/edit/widget-type-selector.js +3 -3
- package/build-module/blocks/legacy-widget/edit/widget-type-selector.js.map +1 -1
- package/build-module/blocks/widget-group/deprecated.js +10 -6
- package/build-module/blocks/widget-group/deprecated.js.map +1 -1
- package/build-module/blocks/widget-group/edit.js +37 -29
- package/build-module/blocks/widget-group/edit.js.map +1 -1
- package/build-module/blocks/widget-group/save.js +13 -8
- package/build-module/blocks/widget-group/save.js.map +1 -1
- package/build-module/components/move-to-widget-area/index.js +27 -21
- package/build-module/components/move-to-widget-area/index.js.map +1 -1
- package/package.json +17 -13
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement, Fragment } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
@@ -7,6 +6,9 @@ import { Placeholder } from '@wordpress/components';
|
|
|
7
6
|
import { group as groupIcon } from '@wordpress/icons';
|
|
8
7
|
import { __ } from '@wordpress/i18n';
|
|
9
8
|
import { useSelect } from '@wordpress/data';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
12
|
export default function Edit(props) {
|
|
11
13
|
const {
|
|
12
14
|
clientId
|
|
@@ -14,46 +16,52 @@ export default function Edit(props) {
|
|
|
14
16
|
const {
|
|
15
17
|
innerBlocks
|
|
16
18
|
} = useSelect(select => select(blockEditorStore).getBlock(clientId), [clientId]);
|
|
17
|
-
return
|
|
19
|
+
return /*#__PURE__*/_jsx("div", {
|
|
18
20
|
...useBlockProps({
|
|
19
21
|
className: 'widget'
|
|
22
|
+
}),
|
|
23
|
+
children: innerBlocks.length === 0 ? /*#__PURE__*/_jsx(PlaceholderContent, {
|
|
24
|
+
...props
|
|
25
|
+
}) : /*#__PURE__*/_jsx(PreviewContent, {
|
|
26
|
+
...props
|
|
20
27
|
})
|
|
21
|
-
}
|
|
22
|
-
...props
|
|
23
|
-
}) : createElement(PreviewContent, {
|
|
24
|
-
...props
|
|
25
|
-
}));
|
|
28
|
+
});
|
|
26
29
|
}
|
|
27
30
|
function PlaceholderContent({
|
|
28
31
|
clientId
|
|
29
32
|
}) {
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
icon:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
34
|
+
children: [/*#__PURE__*/_jsx(Placeholder, {
|
|
35
|
+
className: "wp-block-widget-group__placeholder",
|
|
36
|
+
icon: /*#__PURE__*/_jsx(BlockIcon, {
|
|
37
|
+
icon: groupIcon
|
|
38
|
+
}),
|
|
39
|
+
label: __('Widget Group'),
|
|
40
|
+
children: /*#__PURE__*/_jsx(ButtonBlockAppender, {
|
|
41
|
+
rootClientId: clientId
|
|
42
|
+
})
|
|
43
|
+
}), /*#__PURE__*/_jsx(InnerBlocks, {
|
|
44
|
+
renderAppender: false
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
41
47
|
}
|
|
42
48
|
function PreviewContent({
|
|
43
49
|
attributes,
|
|
44
50
|
setAttributes
|
|
45
51
|
}) {
|
|
46
52
|
var _attributes$title;
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
title
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
54
|
+
children: [/*#__PURE__*/_jsx(RichText, {
|
|
55
|
+
tagName: "h2",
|
|
56
|
+
identifier: "title",
|
|
57
|
+
className: "widget-title",
|
|
58
|
+
allowedFormats: [],
|
|
59
|
+
placeholder: __('Title'),
|
|
60
|
+
value: (_attributes$title = attributes.title) !== null && _attributes$title !== void 0 ? _attributes$title : '',
|
|
61
|
+
onChange: title => setAttributes({
|
|
62
|
+
title
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/_jsx(InnerBlocks, {})]
|
|
65
|
+
});
|
|
58
66
|
}
|
|
59
67
|
//# sourceMappingURL=edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useBlockProps","BlockIcon","ButtonBlockAppender","InnerBlocks","store","blockEditorStore","RichText","Placeholder","group","groupIcon","__","useSelect","Edit","props","clientId","innerBlocks","select","getBlock","
|
|
1
|
+
{"version":3,"names":["useBlockProps","BlockIcon","ButtonBlockAppender","InnerBlocks","store","blockEditorStore","RichText","Placeholder","group","groupIcon","__","useSelect","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","props","clientId","innerBlocks","select","getBlock","className","children","length","PlaceholderContent","PreviewContent","icon","label","rootClientId","renderAppender","attributes","setAttributes","_attributes$title","tagName","identifier","allowedFormats","placeholder","value","title","onChange"],"sources":["@wordpress/widgets/src/blocks/widget-group/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tuseBlockProps,\n\tBlockIcon,\n\tButtonBlockAppender,\n\tInnerBlocks,\n\tstore as blockEditorStore,\n\tRichText,\n} from '@wordpress/block-editor';\nimport { Placeholder } from '@wordpress/components';\nimport { group as groupIcon } from '@wordpress/icons';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\n\nexport default function Edit( props ) {\n\tconst { clientId } = props;\n\tconst { innerBlocks } = useSelect(\n\t\t( select ) => select( blockEditorStore ).getBlock( clientId ),\n\t\t[ clientId ]\n\t);\n\n\treturn (\n\t\t<div { ...useBlockProps( { className: 'widget' } ) }>\n\t\t\t{ innerBlocks.length === 0 ? (\n\t\t\t\t<PlaceholderContent { ...props } />\n\t\t\t) : (\n\t\t\t\t<PreviewContent { ...props } />\n\t\t\t) }\n\t\t</div>\n\t);\n}\n\nfunction PlaceholderContent( { clientId } ) {\n\treturn (\n\t\t<>\n\t\t\t<Placeholder\n\t\t\t\tclassName=\"wp-block-widget-group__placeholder\"\n\t\t\t\ticon={ <BlockIcon icon={ groupIcon } /> }\n\t\t\t\tlabel={ __( 'Widget Group' ) }\n\t\t\t>\n\t\t\t\t<ButtonBlockAppender rootClientId={ clientId } />\n\t\t\t</Placeholder>\n\t\t\t<InnerBlocks renderAppender={ false } />\n\t\t</>\n\t);\n}\n\nfunction PreviewContent( { attributes, setAttributes } ) {\n\treturn (\n\t\t<>\n\t\t\t<RichText\n\t\t\t\ttagName=\"h2\"\n\t\t\t\tidentifier=\"title\"\n\t\t\t\tclassName=\"widget-title\"\n\t\t\t\tallowedFormats={ [] }\n\t\t\t\tplaceholder={ __( 'Title' ) }\n\t\t\t\tvalue={ attributes.title ?? '' }\n\t\t\t\tonChange={ ( title ) => setAttributes( { title } ) }\n\t\t\t/>\n\t\t\t<InnerBlocks />\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SACCA,aAAa,EACbC,SAAS,EACTC,mBAAmB,EACnBC,WAAW,EACXC,KAAK,IAAIC,gBAAgB,EACzBC,QAAQ,QACF,yBAAyB;AAChC,SAASC,WAAW,QAAQ,uBAAuB;AACnD,SAASC,KAAK,IAAIC,SAAS,QAAQ,kBAAkB;AACrD,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,SAAS,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAE5C,eAAe,SAASC,IAAIA,CAAEC,KAAK,EAAG;EACrC,MAAM;IAAEC;EAAS,CAAC,GAAGD,KAAK;EAC1B,MAAM;IAAEE;EAAY,CAAC,GAAGV,SAAS,CAC9BW,MAAM,IAAMA,MAAM,CAAEjB,gBAAiB,CAAC,CAACkB,QAAQ,CAAEH,QAAS,CAAC,EAC7D,CAAEA,QAAQ,CACX,CAAC;EAED,oBACCP,IAAA;IAAA,GAAUb,aAAa,CAAE;MAAEwB,SAAS,EAAE;IAAS,CAAE,CAAC;IAAAC,QAAA,EAC/CJ,WAAW,CAACK,MAAM,KAAK,CAAC,gBACzBb,IAAA,CAACc,kBAAkB;MAAA,GAAMR;IAAK,CAAI,CAAC,gBAEnCN,IAAA,CAACe,cAAc;MAAA,GAAMT;IAAK,CAAI;EAC9B,CACG,CAAC;AAER;AAEA,SAASQ,kBAAkBA,CAAE;EAAEP;AAAS,CAAC,EAAG;EAC3C,oBACCH,KAAA,CAAAF,SAAA;IAAAU,QAAA,gBACCZ,IAAA,CAACN,WAAW;MACXiB,SAAS,EAAC,oCAAoC;MAC9CK,IAAI,eAAGhB,IAAA,CAACZ,SAAS;QAAC4B,IAAI,EAAGpB;MAAW,CAAE,CAAG;MACzCqB,KAAK,EAAGpB,EAAE,CAAE,cAAe,CAAG;MAAAe,QAAA,eAE9BZ,IAAA,CAACX,mBAAmB;QAAC6B,YAAY,EAAGX;MAAU,CAAE;IAAC,CACrC,CAAC,eACdP,IAAA,CAACV,WAAW;MAAC6B,cAAc,EAAG;IAAO,CAAE,CAAC;EAAA,CACvC,CAAC;AAEL;AAEA,SAASJ,cAAcA,CAAE;EAAEK,UAAU;EAAEC;AAAc,CAAC,EAAG;EAAA,IAAAC,iBAAA;EACxD,oBACClB,KAAA,CAAAF,SAAA;IAAAU,QAAA,gBACCZ,IAAA,CAACP,QAAQ;MACR8B,OAAO,EAAC,IAAI;MACZC,UAAU,EAAC,OAAO;MAClBb,SAAS,EAAC,cAAc;MACxBc,cAAc,EAAG,EAAI;MACrBC,WAAW,EAAG7B,EAAE,CAAE,OAAQ,CAAG;MAC7B8B,KAAK,GAAAL,iBAAA,GAAGF,UAAU,CAACQ,KAAK,cAAAN,iBAAA,cAAAA,iBAAA,GAAI,EAAI;MAChCO,QAAQ,EAAKD,KAAK,IAAMP,aAAa,CAAE;QAAEO;MAAM,CAAE;IAAG,CACpD,CAAC,eACF5B,IAAA,CAACV,WAAW,IAAE,CAAC;EAAA,CACd,CAAC;AAEL","ignoreList":[]}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import { createElement, Fragment } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
5
4
|
import { InnerBlocks, RichText } from '@wordpress/block-editor';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
8
|
export default function save({
|
|
7
9
|
attributes
|
|
8
10
|
}) {
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
12
|
+
children: [/*#__PURE__*/_jsx(RichText.Content, {
|
|
13
|
+
tagName: "h2",
|
|
14
|
+
className: "widget-title",
|
|
15
|
+
value: attributes.title
|
|
16
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
17
|
+
className: "wp-widget-group__inner-blocks",
|
|
18
|
+
children: /*#__PURE__*/_jsx(InnerBlocks.Content, {})
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
16
21
|
}
|
|
17
22
|
//# sourceMappingURL=save.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["InnerBlocks","RichText","
|
|
1
|
+
{"version":3,"names":["InnerBlocks","RichText","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","save","attributes","children","Content","tagName","className","value","title"],"sources":["@wordpress/widgets/src/blocks/widget-group/save.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { InnerBlocks, RichText } from '@wordpress/block-editor';\n\nexport default function save( { attributes } ) {\n\treturn (\n\t\t<>\n\t\t\t<RichText.Content\n\t\t\t\ttagName=\"h2\"\n\t\t\t\tclassName=\"widget-title\"\n\t\t\t\tvalue={ attributes.title }\n\t\t\t/>\n\t\t\t<div className=\"wp-widget-group__inner-blocks\">\n\t\t\t\t<InnerBlocks.Content />\n\t\t\t</div>\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEhE,eAAe,SAASC,IAAIA,CAAE;EAAEC;AAAW,CAAC,EAAG;EAC9C,oBACCF,KAAA,CAAAF,SAAA;IAAAK,QAAA,gBACCP,IAAA,CAACF,QAAQ,CAACU,OAAO;MAChBC,OAAO,EAAC,IAAI;MACZC,SAAS,EAAC,cAAc;MACxBC,KAAK,EAAGL,UAAU,CAACM;IAAO,CAC1B,CAAC,eACFZ,IAAA;MAAKU,SAAS,EAAC,+BAA+B;MAAAH,QAAA,eAC7CP,IAAA,CAACH,WAAW,CAACW,OAAO,IAAE;IAAC,CACnB,CAAC;EAAA,CACL,CAAC;AAEL","ignoreList":[]}
|
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
5
4
|
import { DropdownMenu, MenuGroup, MenuItemsChoice, ToolbarGroup, ToolbarItem } from '@wordpress/components';
|
|
6
5
|
import { __ } from '@wordpress/i18n';
|
|
7
6
|
import { moveTo } from '@wordpress/icons';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
export default function MoveToWidgetArea({
|
|
9
9
|
currentWidgetAreaId,
|
|
10
10
|
widgetAreas,
|
|
11
11
|
onSelect
|
|
12
12
|
}) {
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
return /*#__PURE__*/_jsx(ToolbarGroup, {
|
|
14
|
+
children: /*#__PURE__*/_jsx(ToolbarItem, {
|
|
15
|
+
children: toggleProps => /*#__PURE__*/_jsx(DropdownMenu, {
|
|
16
|
+
icon: moveTo,
|
|
17
|
+
label: __('Move to widget area'),
|
|
18
|
+
toggleProps: toggleProps,
|
|
19
|
+
children: ({
|
|
20
|
+
onClose
|
|
21
|
+
}) => /*#__PURE__*/_jsx(MenuGroup, {
|
|
22
|
+
label: __('Move to'),
|
|
23
|
+
children: /*#__PURE__*/_jsx(MenuItemsChoice, {
|
|
24
|
+
choices: widgetAreas.map(widgetArea => ({
|
|
25
|
+
value: widgetArea.id,
|
|
26
|
+
label: widgetArea.name,
|
|
27
|
+
info: widgetArea.description
|
|
28
|
+
})),
|
|
29
|
+
value: currentWidgetAreaId,
|
|
30
|
+
onSelect: value => {
|
|
31
|
+
onSelect(value);
|
|
32
|
+
onClose();
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
});
|
|
33
39
|
}
|
|
34
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DropdownMenu","MenuGroup","MenuItemsChoice","ToolbarGroup","ToolbarItem","__","moveTo","MoveToWidgetArea","currentWidgetAreaId","widgetAreas","onSelect","
|
|
1
|
+
{"version":3,"names":["DropdownMenu","MenuGroup","MenuItemsChoice","ToolbarGroup","ToolbarItem","__","moveTo","jsx","_jsx","MoveToWidgetArea","currentWidgetAreaId","widgetAreas","onSelect","children","toggleProps","icon","label","onClose","choices","map","widgetArea","value","id","name","info","description"],"sources":["@wordpress/widgets/src/components/move-to-widget-area/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tDropdownMenu,\n\tMenuGroup,\n\tMenuItemsChoice,\n\tToolbarGroup,\n\tToolbarItem,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { moveTo } from '@wordpress/icons';\n\nexport default function MoveToWidgetArea( {\n\tcurrentWidgetAreaId,\n\twidgetAreas,\n\tonSelect,\n} ) {\n\treturn (\n\t\t<ToolbarGroup>\n\t\t\t<ToolbarItem>\n\t\t\t\t{ ( toggleProps ) => (\n\t\t\t\t\t<DropdownMenu\n\t\t\t\t\t\ticon={ moveTo }\n\t\t\t\t\t\tlabel={ __( 'Move to widget area' ) }\n\t\t\t\t\t\ttoggleProps={ toggleProps }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t\t\t<MenuGroup label={ __( 'Move to' ) }>\n\t\t\t\t\t\t\t\t<MenuItemsChoice\n\t\t\t\t\t\t\t\t\tchoices={ widgetAreas.map(\n\t\t\t\t\t\t\t\t\t\t( widgetArea ) => ( {\n\t\t\t\t\t\t\t\t\t\t\tvalue: widgetArea.id,\n\t\t\t\t\t\t\t\t\t\t\tlabel: widgetArea.name,\n\t\t\t\t\t\t\t\t\t\t\tinfo: widgetArea.description,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\tvalue={ currentWidgetAreaId }\n\t\t\t\t\t\t\t\t\tonSelect={ ( value ) => {\n\t\t\t\t\t\t\t\t\t\tonSelect( value );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</DropdownMenu>\n\t\t\t\t) }\n\t\t\t</ToolbarItem>\n\t\t</ToolbarGroup>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SACCA,YAAY,EACZC,SAAS,EACTC,eAAe,EACfC,YAAY,EACZC,WAAW,QACL,uBAAuB;AAC9B,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,MAAM,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,eAAe,SAASC,gBAAgBA,CAAE;EACzCC,mBAAmB;EACnBC,WAAW;EACXC;AACD,CAAC,EAAG;EACH,oBACCJ,IAAA,CAACL,YAAY;IAAAU,QAAA,eACZL,IAAA,CAACJ,WAAW;MAAAS,QAAA,EACPC,WAAW,iBACdN,IAAA,CAACR,YAAY;QACZe,IAAI,EAAGT,MAAQ;QACfU,KAAK,EAAGX,EAAE,CAAE,qBAAsB,CAAG;QACrCS,WAAW,EAAGA,WAAa;QAAAD,QAAA,EAEzBA,CAAE;UAAEI;QAAQ,CAAC,kBACdT,IAAA,CAACP,SAAS;UAACe,KAAK,EAAGX,EAAE,CAAE,SAAU,CAAG;UAAAQ,QAAA,eACnCL,IAAA,CAACN,eAAe;YACfgB,OAAO,EAAGP,WAAW,CAACQ,GAAG,CACtBC,UAAU,KAAQ;cACnBC,KAAK,EAAED,UAAU,CAACE,EAAE;cACpBN,KAAK,EAAEI,UAAU,CAACG,IAAI;cACtBC,IAAI,EAAEJ,UAAU,CAACK;YAClB,CAAC,CACF,CAAG;YACHJ,KAAK,EAAGX,mBAAqB;YAC7BE,QAAQ,EAAKS,KAAK,IAAM;cACvBT,QAAQ,CAAES,KAAM,CAAC;cACjBJ,OAAO,CAAC,CAAC;YACV;UAAG,CACH;QAAC,CACQ;MACX,CACY;IACd,CACW;EAAC,CACD,CAAC;AAEjB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/widgets",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
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",
|
|
@@ -16,22 +16,26 @@
|
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/WordPress/gutenberg/issues"
|
|
18
18
|
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18.12.0",
|
|
21
|
+
"npm": ">=8.19.2"
|
|
22
|
+
},
|
|
19
23
|
"main": "build/index.js",
|
|
20
24
|
"module": "build-module/index.js",
|
|
21
25
|
"react-native": "src/index",
|
|
22
26
|
"dependencies": {
|
|
23
27
|
"@babel/runtime": "^7.16.0",
|
|
24
|
-
"@wordpress/api-fetch": "^
|
|
25
|
-
"@wordpress/block-editor": "^
|
|
26
|
-
"@wordpress/blocks": "^
|
|
27
|
-
"@wordpress/components": "^
|
|
28
|
-
"@wordpress/compose": "^
|
|
29
|
-
"@wordpress/core-data": "^
|
|
30
|
-
"@wordpress/data": "^
|
|
31
|
-
"@wordpress/element": "^
|
|
32
|
-
"@wordpress/i18n": "^
|
|
33
|
-
"@wordpress/icons": "^
|
|
34
|
-
"@wordpress/notices": "^
|
|
28
|
+
"@wordpress/api-fetch": "^7.0.1",
|
|
29
|
+
"@wordpress/block-editor": "^13.0.1",
|
|
30
|
+
"@wordpress/blocks": "^13.0.1",
|
|
31
|
+
"@wordpress/components": "^28.0.1",
|
|
32
|
+
"@wordpress/compose": "^7.0.1",
|
|
33
|
+
"@wordpress/core-data": "^7.0.1",
|
|
34
|
+
"@wordpress/data": "^10.0.1",
|
|
35
|
+
"@wordpress/element": "^6.0.1",
|
|
36
|
+
"@wordpress/i18n": "^5.0.1",
|
|
37
|
+
"@wordpress/icons": "^10.0.1",
|
|
38
|
+
"@wordpress/notices": "^5.0.1",
|
|
35
39
|
"clsx": "^2.1.1"
|
|
36
40
|
},
|
|
37
41
|
"peerDependencies": {
|
|
@@ -41,5 +45,5 @@
|
|
|
41
45
|
"publishConfig": {
|
|
42
46
|
"access": "public"
|
|
43
47
|
},
|
|
44
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0e973525f7787401b5a544e0727774d52a78639f"
|
|
45
49
|
}
|