@wordpress/edit-site 5.17.0 → 5.17.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/build/components/template-part-converter/convert-to-template-part.js +3 -1
- package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/build-module/components/template-part-converter/convert-to-template-part.js +3 -1
- package/build-module/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/package.json +40 -40
- package/src/components/template-part-converter/convert-to-template-part.js +2 -0
|
@@ -64,7 +64,9 @@ function ConvertToTemplatePart({
|
|
|
64
64
|
icon: _icons.symbolFilled,
|
|
65
65
|
onClick: () => {
|
|
66
66
|
setIsModalOpen(true);
|
|
67
|
-
}
|
|
67
|
+
},
|
|
68
|
+
"aria-expanded": isModalOpen,
|
|
69
|
+
"aria-haspopup": "dialog"
|
|
68
70
|
}, (0, _i18n.__)('Create template part')), isModalOpen && (0, _element.createElement)(_createTemplatePartModal.default, {
|
|
69
71
|
closeModal: () => {
|
|
70
72
|
setIsModalOpen(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_element","require","_data","_blockEditor","_components","_blocks","_i18n","_notices","_icons","_createTemplatePartModal","_interopRequireDefault","_store","ConvertToTemplatePart","clientIds","blocks","isModalOpen","setIsModalOpen","useState","replaceBlocks","useDispatch","blockEditorStore","createSuccessNotice","noticesStore","canCreate","useSelect","select","supportsTemplatePartsMode","editSiteStore","getSettings","onConvert","templatePart","createBlock","slug","theme","__","type","createElement","Fragment","MenuItem","icon","symbolFilled","onClick","default","closeModal","onCreate"],"sources":["@wordpress/edit-site/src/components/template-part-converter/convert-to-template-part.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { MenuItem } from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { __ } from '@wordpress/i18n';\nimport { useState } from '@wordpress/element';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { symbolFilled } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport CreateTemplatePartModal from '../create-template-part-modal';\nimport { store as editSiteStore } from '../../store';\n\nexport default function ConvertToTemplatePart( { clientIds, blocks } ) {\n\tconst [ isModalOpen, setIsModalOpen ] = useState( false );\n\tconst { replaceBlocks } = useDispatch( blockEditorStore );\n\tconst { createSuccessNotice } = useDispatch( noticesStore );\n\n\tconst { canCreate } = useSelect( ( select ) => {\n\t\tconst { supportsTemplatePartsMode } =\n\t\t\tselect( editSiteStore ).getSettings();\n\t\treturn {\n\t\t\tcanCreate: ! supportsTemplatePartsMode,\n\t\t};\n\t}, [] );\n\n\tif ( ! canCreate ) {\n\t\treturn null;\n\t}\n\n\tconst onConvert = async ( templatePart ) => {\n\t\treplaceBlocks(\n\t\t\tclientIds,\n\t\t\tcreateBlock( 'core/template-part', {\n\t\t\t\tslug: templatePart.slug,\n\t\t\t\ttheme: templatePart.theme,\n\t\t\t} )\n\t\t);\n\t\tcreateSuccessNotice( __( 'Template part created.' ), {\n\t\t\ttype: 'snackbar',\n\t\t} );\n\n\t\t// The modal and this component will be unmounted because of `replaceBlocks` above,\n\t\t// so no need to call `closeModal` or `onClose`.\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem\n\t\t\t\ticon={ symbolFilled }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsModalOpen( true );\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t{ __( 'Create template part' ) }\n\t\t\t</MenuItem>\n\t\t\t{ isModalOpen && (\n\t\t\t\t<CreateTemplatePartModal\n\t\t\t\t\tcloseModal={ () => {\n\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t} }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tonCreate={ onConvert }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;AAQA,IAAAA,QAAA,GAAAC,O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AC;;IAEH;IACA;EACD,CAAC;;EAED,OACC,IAAAnC,QAAA,CAAAoC,aAAA,EAAApC,QAAA,CAAAqC,QAAA,QACC,IAAArC,QAAA,CAAAoC,aAAA,EAAChC,WAAA,CAAAkC,QAAQ;IACRC,IAAI,EAAGC,mBAAc;IACrBC,OAAO,EAAGA,CAAA,KAAM;MACfzB,cAAc,CAAE,IAAK,CAAC;IACvB;
|
|
1
|
+
{"version":3,"names":["_element","require","_data","_blockEditor","_components","_blocks","_i18n","_notices","_icons","_createTemplatePartModal","_interopRequireDefault","_store","ConvertToTemplatePart","clientIds","blocks","isModalOpen","setIsModalOpen","useState","replaceBlocks","useDispatch","blockEditorStore","createSuccessNotice","noticesStore","canCreate","useSelect","select","supportsTemplatePartsMode","editSiteStore","getSettings","onConvert","templatePart","createBlock","slug","theme","__","type","createElement","Fragment","MenuItem","icon","symbolFilled","onClick","default","closeModal","onCreate"],"sources":["@wordpress/edit-site/src/components/template-part-converter/convert-to-template-part.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { MenuItem } from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { __ } from '@wordpress/i18n';\nimport { useState } from '@wordpress/element';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { symbolFilled } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport CreateTemplatePartModal from '../create-template-part-modal';\nimport { store as editSiteStore } from '../../store';\n\nexport default function ConvertToTemplatePart( { clientIds, blocks } ) {\n\tconst [ isModalOpen, setIsModalOpen ] = useState( false );\n\tconst { replaceBlocks } = useDispatch( blockEditorStore );\n\tconst { createSuccessNotice } = useDispatch( noticesStore );\n\n\tconst { canCreate } = useSelect( ( select ) => {\n\t\tconst { supportsTemplatePartsMode } =\n\t\t\tselect( editSiteStore ).getSettings();\n\t\treturn {\n\t\t\tcanCreate: ! supportsTemplatePartsMode,\n\t\t};\n\t}, [] );\n\n\tif ( ! canCreate ) {\n\t\treturn null;\n\t}\n\n\tconst onConvert = async ( templatePart ) => {\n\t\treplaceBlocks(\n\t\t\tclientIds,\n\t\t\tcreateBlock( 'core/template-part', {\n\t\t\t\tslug: templatePart.slug,\n\t\t\t\ttheme: templatePart.theme,\n\t\t\t} )\n\t\t);\n\t\tcreateSuccessNotice( __( 'Template part created.' ), {\n\t\t\ttype: 'snackbar',\n\t\t} );\n\n\t\t// The modal and this component will be unmounted because of `replaceBlocks` above,\n\t\t// so no need to call `closeModal` or `onClose`.\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem\n\t\t\t\ticon={ symbolFilled }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsModalOpen( true );\n\t\t\t\t} }\n\t\t\t\taria-expanded={ isModalOpen }\n\t\t\t\taria-haspopup=\"dialog\"\n\t\t\t>\n\t\t\t\t{ __( 'Create template part' ) }\n\t\t\t</MenuItem>\n\t\t\t{ isModalOpen && (\n\t\t\t\t<CreateTemplatePartModal\n\t\t\t\t\tcloseModal={ () => {\n\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t} }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tonCreate={ onConvert }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;AAQA,IAAAA,QAAA,GAAAC,OAAA;AALA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAKA,IAAAQ,wBAAA,GAAAC,sBAAA,CAAAT,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AAhBA;AACA;AACA;;AAUA;AACA;AACA;;AAIe,SAASW,qBAAqBA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ACZ,IAAAf,QAAA,CAAAoC,aAAA,EAAC3B,wBAAA,CAAAiC,OAAuB;IACvBC,UAAU,EAAGA,CAAA,KAAM;MAClB3B,cAAc,CAAE,KAAM,CAAC;IACxB,CAAG;IACHF,MAAM,EAAGA,MAAQ;IACjB8B,QAAQ,EAAGf;EAAW,CACtB,CAED,CAAC;AAEL"}
|
|
@@ -57,7 +57,9 @@ export default function ConvertToTemplatePart({
|
|
|
57
57
|
icon: symbolFilled,
|
|
58
58
|
onClick: () => {
|
|
59
59
|
setIsModalOpen(true);
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
|
+
"aria-expanded": isModalOpen,
|
|
62
|
+
"aria-haspopup": "dialog"
|
|
61
63
|
}, __('Create template part')), isModalOpen && createElement(CreateTemplatePartModal, {
|
|
62
64
|
closeModal: () => {
|
|
63
65
|
setIsModalOpen(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useDispatch","useSelect","store","blockEditorStore","MenuItem","createBlock","__","useState","noticesStore","symbolFilled","CreateTemplatePartModal","editSiteStore","ConvertToTemplatePart","clientIds","blocks","isModalOpen","setIsModalOpen","replaceBlocks","createSuccessNotice","canCreate","select","supportsTemplatePartsMode","getSettings","onConvert","templatePart","slug","theme","type","createElement","Fragment","icon","onClick","closeModal","onCreate"],"sources":["@wordpress/edit-site/src/components/template-part-converter/convert-to-template-part.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { MenuItem } from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { __ } from '@wordpress/i18n';\nimport { useState } from '@wordpress/element';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { symbolFilled } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport CreateTemplatePartModal from '../create-template-part-modal';\nimport { store as editSiteStore } from '../../store';\n\nexport default function ConvertToTemplatePart( { clientIds, blocks } ) {\n\tconst [ isModalOpen, setIsModalOpen ] = useState( false );\n\tconst { replaceBlocks } = useDispatch( blockEditorStore );\n\tconst { createSuccessNotice } = useDispatch( noticesStore );\n\n\tconst { canCreate } = useSelect( ( select ) => {\n\t\tconst { supportsTemplatePartsMode } =\n\t\t\tselect( editSiteStore ).getSettings();\n\t\treturn {\n\t\t\tcanCreate: ! supportsTemplatePartsMode,\n\t\t};\n\t}, [] );\n\n\tif ( ! canCreate ) {\n\t\treturn null;\n\t}\n\n\tconst onConvert = async ( templatePart ) => {\n\t\treplaceBlocks(\n\t\t\tclientIds,\n\t\t\tcreateBlock( 'core/template-part', {\n\t\t\t\tslug: templatePart.slug,\n\t\t\t\ttheme: templatePart.theme,\n\t\t\t} )\n\t\t);\n\t\tcreateSuccessNotice( __( 'Template part created.' ), {\n\t\t\ttype: 'snackbar',\n\t\t} );\n\n\t\t// The modal and this component will be unmounted because of `replaceBlocks` above,\n\t\t// so no need to call `closeModal` or `onClose`.\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem\n\t\t\t\ticon={ symbolFilled }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsModalOpen( true );\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t{ __( 'Create template part' ) }\n\t\t\t</MenuItem>\n\t\t\t{ isModalOpen && (\n\t\t\t\t<CreateTemplatePartModal\n\t\t\t\t\tcloseModal={ () => {\n\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t} }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tonCreate={ onConvert }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,WAAW,EAAEC,SAAS,QAAQ,iBAAiB;AACxD,SAASC,KAAK,IAAIC,gBAAgB,QAAQ,yBAAyB;AACnE,SAASC,QAAQ,QAAQ,uBAAuB;AAChD,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,EAAE,QAAQ,iBA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AAc,CAAE,IAAK,CAAC;IACvB;
|
|
1
|
+
{"version":3,"names":["useDispatch","useSelect","store","blockEditorStore","MenuItem","createBlock","__","useState","noticesStore","symbolFilled","CreateTemplatePartModal","editSiteStore","ConvertToTemplatePart","clientIds","blocks","isModalOpen","setIsModalOpen","replaceBlocks","createSuccessNotice","canCreate","select","supportsTemplatePartsMode","getSettings","onConvert","templatePart","slug","theme","type","createElement","Fragment","icon","onClick","closeModal","onCreate"],"sources":["@wordpress/edit-site/src/components/template-part-converter/convert-to-template-part.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { MenuItem } from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { __ } from '@wordpress/i18n';\nimport { useState } from '@wordpress/element';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { symbolFilled } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport CreateTemplatePartModal from '../create-template-part-modal';\nimport { store as editSiteStore } from '../../store';\n\nexport default function ConvertToTemplatePart( { clientIds, blocks } ) {\n\tconst [ isModalOpen, setIsModalOpen ] = useState( false );\n\tconst { replaceBlocks } = useDispatch( blockEditorStore );\n\tconst { createSuccessNotice } = useDispatch( noticesStore );\n\n\tconst { canCreate } = useSelect( ( select ) => {\n\t\tconst { supportsTemplatePartsMode } =\n\t\t\tselect( editSiteStore ).getSettings();\n\t\treturn {\n\t\t\tcanCreate: ! supportsTemplatePartsMode,\n\t\t};\n\t}, [] );\n\n\tif ( ! canCreate ) {\n\t\treturn null;\n\t}\n\n\tconst onConvert = async ( templatePart ) => {\n\t\treplaceBlocks(\n\t\t\tclientIds,\n\t\t\tcreateBlock( 'core/template-part', {\n\t\t\t\tslug: templatePart.slug,\n\t\t\t\ttheme: templatePart.theme,\n\t\t\t} )\n\t\t);\n\t\tcreateSuccessNotice( __( 'Template part created.' ), {\n\t\t\ttype: 'snackbar',\n\t\t} );\n\n\t\t// The modal and this component will be unmounted because of `replaceBlocks` above,\n\t\t// so no need to call `closeModal` or `onClose`.\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem\n\t\t\t\ticon={ symbolFilled }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsModalOpen( true );\n\t\t\t\t} }\n\t\t\t\taria-expanded={ isModalOpen }\n\t\t\t\taria-haspopup=\"dialog\"\n\t\t\t>\n\t\t\t\t{ __( 'Create template part' ) }\n\t\t\t</MenuItem>\n\t\t\t{ isModalOpen && (\n\t\t\t\t<CreateTemplatePartModal\n\t\t\t\t\tcloseModal={ () => {\n\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t} }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tonCreate={ onConvert }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,WAAW,EAAEC,SAAS,QAAQ,iBAAiB;AACxD,SAASC,KAAK,IAAIC,gBAAgB,QAAQ,yBAAyB;AACnE,SAASC,QAAQ,QAAQ,uBAAuB;AAChD,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASL,KAAK,IAAIM,YAAY,QAAQ,oBAAoB;AAC1D,SAASC,YAAY,QAAQ,kBAAkB;;AAE/C;AACA;AACA;AACA,OAAOC,uBAAuB,MAAM,+BAA+B;AACnE,SAASR,KAAK,IAAIS,aAAa,QAAQ,aAAa;AAEpD,eAAe,SAASC,qBAAqBA,CAAE;EAAEC,SAAS;EAAEC;AAAO,CAAC,EAAG;EACtE,MAAM,CAAEC,WAAW,EAAEC,cAAc,CAAE,GAAGT,QAAQ,CAAE,KAAM,CAAC;EACzD,MAAM;IAAEU;EAAc,CAAC,GAAGjB,WAAW,CAAEG,gBAAiB,CAAC;EACzD,MAAM;IAAEe;EAAoB,CAA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Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,44 +27,44 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.40.
|
|
31
|
-
"@wordpress/api-fetch": "^6.37.
|
|
32
|
-
"@wordpress/block-editor": "^12.8.
|
|
33
|
-
"@wordpress/block-library": "^8.17.
|
|
34
|
-
"@wordpress/blocks": "^12.17.
|
|
35
|
-
"@wordpress/commands": "^0.11.
|
|
36
|
-
"@wordpress/components": "^25.6.
|
|
37
|
-
"@wordpress/compose": "^6.17.
|
|
38
|
-
"@wordpress/core-commands": "^0.9.
|
|
39
|
-
"@wordpress/core-data": "^6.17.
|
|
40
|
-
"@wordpress/data": "^9.10.
|
|
41
|
-
"@wordpress/date": "^4.40.
|
|
42
|
-
"@wordpress/deprecated": "^3.40.
|
|
43
|
-
"@wordpress/dom": "^3.40.
|
|
44
|
-
"@wordpress/editor": "^13.17.
|
|
45
|
-
"@wordpress/element": "^5.17.
|
|
46
|
-
"@wordpress/escape-html": "^2.40.
|
|
47
|
-
"@wordpress/hooks": "^3.40.
|
|
48
|
-
"@wordpress/html-entities": "^3.40.
|
|
49
|
-
"@wordpress/i18n": "^4.40.
|
|
50
|
-
"@wordpress/icons": "^9.31.
|
|
51
|
-
"@wordpress/interface": "^5.17.
|
|
52
|
-
"@wordpress/keyboard-shortcuts": "^4.17.
|
|
53
|
-
"@wordpress/keycodes": "^3.40.
|
|
54
|
-
"@wordpress/media-utils": "^4.31.
|
|
55
|
-
"@wordpress/notices": "^4.8.
|
|
56
|
-
"@wordpress/patterns": "^1.1.
|
|
57
|
-
"@wordpress/plugins": "^6.8.
|
|
58
|
-
"@wordpress/preferences": "^3.17.
|
|
59
|
-
"@wordpress/primitives": "^3.38.
|
|
60
|
-
"@wordpress/private-apis": "^0.22.
|
|
61
|
-
"@wordpress/reusable-blocks": "^4.17.
|
|
62
|
-
"@wordpress/router": "^0.9.
|
|
63
|
-
"@wordpress/style-engine": "^1.23.
|
|
64
|
-
"@wordpress/url": "^3.41.
|
|
65
|
-
"@wordpress/viewport": "^5.17.
|
|
66
|
-
"@wordpress/widgets": "^3.17.
|
|
67
|
-
"@wordpress/wordcount": "^3.40.
|
|
30
|
+
"@wordpress/a11y": "^3.40.1",
|
|
31
|
+
"@wordpress/api-fetch": "^6.37.1",
|
|
32
|
+
"@wordpress/block-editor": "^12.8.1",
|
|
33
|
+
"@wordpress/block-library": "^8.17.1",
|
|
34
|
+
"@wordpress/blocks": "^12.17.1",
|
|
35
|
+
"@wordpress/commands": "^0.11.1",
|
|
36
|
+
"@wordpress/components": "^25.6.1",
|
|
37
|
+
"@wordpress/compose": "^6.17.1",
|
|
38
|
+
"@wordpress/core-commands": "^0.9.1",
|
|
39
|
+
"@wordpress/core-data": "^6.17.1",
|
|
40
|
+
"@wordpress/data": "^9.10.1",
|
|
41
|
+
"@wordpress/date": "^4.40.1",
|
|
42
|
+
"@wordpress/deprecated": "^3.40.1",
|
|
43
|
+
"@wordpress/dom": "^3.40.1",
|
|
44
|
+
"@wordpress/editor": "^13.17.1",
|
|
45
|
+
"@wordpress/element": "^5.17.1",
|
|
46
|
+
"@wordpress/escape-html": "^2.40.1",
|
|
47
|
+
"@wordpress/hooks": "^3.40.1",
|
|
48
|
+
"@wordpress/html-entities": "^3.40.1",
|
|
49
|
+
"@wordpress/i18n": "^4.40.1",
|
|
50
|
+
"@wordpress/icons": "^9.31.1",
|
|
51
|
+
"@wordpress/interface": "^5.17.1",
|
|
52
|
+
"@wordpress/keyboard-shortcuts": "^4.17.1",
|
|
53
|
+
"@wordpress/keycodes": "^3.40.1",
|
|
54
|
+
"@wordpress/media-utils": "^4.31.1",
|
|
55
|
+
"@wordpress/notices": "^4.8.1",
|
|
56
|
+
"@wordpress/patterns": "^1.1.1",
|
|
57
|
+
"@wordpress/plugins": "^6.8.1",
|
|
58
|
+
"@wordpress/preferences": "^3.17.1",
|
|
59
|
+
"@wordpress/primitives": "^3.38.1",
|
|
60
|
+
"@wordpress/private-apis": "^0.22.1",
|
|
61
|
+
"@wordpress/reusable-blocks": "^4.17.1",
|
|
62
|
+
"@wordpress/router": "^0.9.1",
|
|
63
|
+
"@wordpress/style-engine": "^1.23.1",
|
|
64
|
+
"@wordpress/url": "^3.41.1",
|
|
65
|
+
"@wordpress/viewport": "^5.17.1",
|
|
66
|
+
"@wordpress/widgets": "^3.17.1",
|
|
67
|
+
"@wordpress/wordcount": "^3.40.1",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"classnames": "^2.3.1",
|
|
70
70
|
"colord": "^2.9.2",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "bb1fbf87bb0f451744530fc6a85de2dff1263bed"
|
|
88
88
|
}
|