@wordpress/edit-post 8.34.0 → 8.35.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 +2 -0
- package/build/commands/use-commands.js +2 -0
- package/build/commands/use-commands.js.map +1 -1
- package/build/components/back-button/fullscreen-mode-close.js +5 -3
- package/build/components/back-button/fullscreen-mode-close.js.map +1 -1
- package/build/components/back-button/index.js +5 -3
- package/build/components/back-button/index.js.map +1 -1
- package/build/components/browser-url/index.js +2 -0
- package/build/components/browser-url/index.js.map +1 -1
- package/build/components/editor-initialization/index.js +2 -0
- package/build/components/editor-initialization/index.js.map +1 -1
- package/build/components/editor-initialization/listener-hooks.js +3 -1
- package/build/components/editor-initialization/listener-hooks.js.map +1 -1
- package/build/components/init-pattern-modal/index.js +3 -1
- package/build/components/init-pattern-modal/index.js.map +1 -1
- package/build/components/keyboard-shortcuts/index.js +2 -0
- package/build/components/keyboard-shortcuts/index.js.map +1 -1
- package/build/components/layout/index.js +12 -29
- package/build/components/layout/index.js.map +2 -2
- package/build/components/layout/use-should-iframe.js +3 -1
- package/build/components/layout/use-should-iframe.js.map +1 -1
- package/build/components/meta-boxes/index.js +3 -1
- package/build/components/meta-boxes/index.js.map +1 -1
- package/build/components/meta-boxes/meta-box-visibility.js +2 -0
- package/build/components/meta-boxes/meta-box-visibility.js.map +1 -1
- package/build/components/meta-boxes/meta-boxes-area/index.js +3 -1
- package/build/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
- package/build/components/meta-boxes/use-meta-box-initialization.js +3 -1
- package/build/components/meta-boxes/use-meta-box-initialization.js.map +1 -1
- package/build/components/more-menu/index.js +5 -3
- package/build/components/more-menu/index.js.map +1 -1
- package/build/components/more-menu/manage-patterns-menu-item.js +3 -1
- package/build/components/more-menu/manage-patterns-menu-item.js.map +1 -1
- package/build/components/more-menu/welcome-guide-menu-item.js +3 -1
- package/build/components/more-menu/welcome-guide-menu-item.js.map +1 -1
- package/build/components/preferences-modal/enable-custom-fields.js +4 -2
- package/build/components/preferences-modal/enable-custom-fields.js.map +1 -1
- package/build/components/preferences-modal/enable-panel.js +4 -2
- package/build/components/preferences-modal/enable-panel.js.map +1 -1
- package/build/components/preferences-modal/index.js +5 -3
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/preferences-modal/meta-boxes-section.js +4 -2
- package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build/components/welcome-guide/default.js +3 -1
- package/build/components/welcome-guide/default.js.map +1 -1
- package/build/components/welcome-guide/image.js +2 -0
- package/build/components/welcome-guide/image.js.map +1 -1
- package/build/components/welcome-guide/index.js +3 -1
- package/build/components/welcome-guide/index.js.map +1 -1
- package/build/components/welcome-guide/template.js +3 -1
- package/build/components/welcome-guide/template.js.map +1 -1
- package/build/deprecated.js +6 -4
- package/build/deprecated.js.map +1 -1
- package/build/hooks/use-navigate-to-entity-record.js +2 -0
- package/build/hooks/use-navigate-to-entity-record.js.map +1 -1
- package/build/index.js +4 -2
- package/build/index.js.map +1 -1
- package/build/lock-unlock.js +3 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/store/actions.js +26 -24
- package/build/store/actions.js.map +1 -1
- package/build/store/constants.js +5 -3
- package/build/store/constants.js.map +1 -1
- package/build/store/index.js +3 -1
- package/build/store/index.js.map +1 -1
- package/build/store/reducer.js +3 -1
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +27 -25
- package/build/store/selectors.js.map +1 -1
- package/build/utils/meta-boxes.js +3 -1
- package/build/utils/meta-boxes.js.map +1 -1
- package/build-module/commands/use-commands.js +1 -0
- package/build-module/commands/use-commands.js.map +1 -1
- package/build-module/components/back-button/fullscreen-mode-close.js +4 -3
- package/build-module/components/back-button/fullscreen-mode-close.js.map +1 -1
- package/build-module/components/back-button/index.js +4 -3
- package/build-module/components/back-button/index.js.map +1 -1
- package/build-module/components/browser-url/index.js +1 -0
- package/build-module/components/browser-url/index.js.map +1 -1
- package/build-module/components/editor-initialization/index.js +1 -0
- package/build-module/components/editor-initialization/index.js.map +1 -1
- package/build-module/components/editor-initialization/listener-hooks.js +2 -1
- package/build-module/components/editor-initialization/listener-hooks.js.map +1 -1
- package/build-module/components/init-pattern-modal/index.js +2 -1
- package/build-module/components/init-pattern-modal/index.js.map +1 -1
- package/build-module/components/keyboard-shortcuts/index.js +1 -0
- package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
- package/build-module/components/layout/index.js +11 -29
- package/build-module/components/layout/index.js.map +2 -2
- package/build-module/components/layout/use-should-iframe.js +2 -1
- package/build-module/components/layout/use-should-iframe.js.map +1 -1
- package/build-module/components/meta-boxes/index.js +2 -1
- package/build-module/components/meta-boxes/index.js.map +1 -1
- package/build-module/components/meta-boxes/meta-box-visibility.js +1 -0
- package/build-module/components/meta-boxes/meta-box-visibility.js.map +1 -1
- package/build-module/components/meta-boxes/meta-boxes-area/index.js +2 -1
- package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
- package/build-module/components/meta-boxes/use-meta-box-initialization.js +2 -1
- package/build-module/components/meta-boxes/use-meta-box-initialization.js.map +1 -1
- package/build-module/components/more-menu/index.js +4 -3
- package/build-module/components/more-menu/index.js.map +1 -1
- package/build-module/components/more-menu/manage-patterns-menu-item.js +2 -1
- package/build-module/components/more-menu/manage-patterns-menu-item.js.map +1 -1
- package/build-module/components/more-menu/welcome-guide-menu-item.js +2 -1
- package/build-module/components/more-menu/welcome-guide-menu-item.js.map +1 -1
- package/build-module/components/preferences-modal/enable-custom-fields.js +3 -2
- package/build-module/components/preferences-modal/enable-custom-fields.js.map +1 -1
- package/build-module/components/preferences-modal/enable-panel.js +3 -2
- package/build-module/components/preferences-modal/enable-panel.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +4 -3
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/preferences-modal/meta-boxes-section.js +3 -2
- package/build-module/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build-module/components/welcome-guide/default.js +2 -1
- package/build-module/components/welcome-guide/default.js.map +1 -1
- package/build-module/components/welcome-guide/image.js +1 -0
- package/build-module/components/welcome-guide/image.js.map +1 -1
- package/build-module/components/welcome-guide/index.js +2 -1
- package/build-module/components/welcome-guide/index.js.map +1 -1
- package/build-module/components/welcome-guide/template.js +2 -1
- package/build-module/components/welcome-guide/template.js.map +1 -1
- package/build-module/deprecated.js +5 -4
- package/build-module/deprecated.js.map +1 -1
- package/build-module/hooks/use-navigate-to-entity-record.js +1 -0
- package/build-module/hooks/use-navigate-to-entity-record.js.map +1 -1
- package/build-module/index.js +6 -5
- package/build-module/index.js.map +1 -1
- package/build-module/lock-unlock.js +2 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/store/actions.js +25 -24
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/constants.js +4 -3
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/index.js +2 -1
- package/build-module/store/index.js.map +1 -1
- package/build-module/store/reducer.js +2 -1
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +26 -25
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/meta-boxes.js +2 -1
- package/build-module/utils/meta-boxes.js.map +1 -1
- package/package.json +33 -33
- package/src/components/layout/index.js +5 -30
- package/build/components/layout/use-padding-appender.js +0 -72
- package/build/components/layout/use-padding-appender.js.map +0 -7
- package/build-module/components/layout/use-padding-appender.js +0 -49
- package/build-module/components/layout/use-padding-appender.js.map +0 -7
- package/src/components/layout/use-padding-appender.js +0 -70
|
@@ -25,16 +25,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/meta-boxes/index.js
|
|
28
30
|
var meta_boxes_exports = {};
|
|
29
31
|
__export(meta_boxes_exports, {
|
|
30
32
|
default: () => MetaBoxes
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(meta_boxes_exports);
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_data = require("@wordpress/data");
|
|
35
36
|
var import_meta_boxes_area = __toESM(require("./meta-boxes-area"));
|
|
36
37
|
var import_meta_box_visibility = __toESM(require("./meta-box-visibility"));
|
|
37
38
|
var import_store = require("../../store");
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
40
|
function MetaBoxes({ location }) {
|
|
39
41
|
const metaBoxes = (0, import_data.useSelect)(
|
|
40
42
|
(select) => select(import_store.store).getMetaBoxesPerLocation(location),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/meta-boxes/index.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport MetaBoxesArea from './meta-boxes-area';\nimport MetaBoxVisibility from './meta-box-visibility';\nimport { store as editPostStore } from '../../store';\n\nexport default function MetaBoxes( { location } ) {\n\tconst metaBoxes = useSelect(\n\t\t( select ) =>\n\t\t\tselect( editPostStore ).getMetaBoxesPerLocation( location ),\n\t\t[ location ]\n\t);\n\treturn (\n\t\t<>\n\t\t\t{ ( metaBoxes ?? [] ).map( ( { id } ) => (\n\t\t\t\t<MetaBoxVisibility key={ id } id={ id } />\n\t\t\t) ) }\n\t\t\t<MetaBoxesArea location={ location } />\n\t\t</>\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA0B;AAK1B,6BAA0B;AAC1B,iCAA8B;AAC9B,mBAAuC;AASrC;AAPa,SAAR,UAA4B,EAAE,SAAS,GAAI;AACjD,QAAM,gBAAY;AAAA,IACjB,CAAE,WACD,OAAQ,aAAAA,KAAc,EAAE,wBAAyB,QAAS;AAAA,IAC3D,CAAE,QAAS;AAAA,EACZ;AACA,SACC,4EACK;AAAA,kBAAa,CAAC,GAAI,IAAK,CAAE,EAAE,GAAG,MACjC,4CAAC,2BAAAC,SAAA,EAA6B,MAAL,EAAe,CACvC;AAAA,IACF,4CAAC,uBAAAC,SAAA,EAAc,UAAsB;AAAA,KACtC;AAEF;",
|
|
6
6
|
"names": ["editPostStore", "MetaBoxVisibility", "MetaBoxesArea"]
|
|
7
7
|
}
|
|
@@ -15,6 +15,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/edit-post/src/components/meta-boxes/meta-box-visibility.js
|
|
18
20
|
var meta_box_visibility_exports = {};
|
|
19
21
|
__export(meta_box_visibility_exports, {
|
|
20
22
|
default: () => MetaBoxVisibility
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/meta-boxes/meta-box-visibility.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useEffect } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\n\nexport default function MetaBoxVisibility( { id } ) {\n\tconst isVisible = useSelect(\n\t\t( select ) => {\n\t\t\treturn select( editorStore ).isEditorPanelEnabled(\n\t\t\t\t`meta-box-${ id }`\n\t\t\t);\n\t\t},\n\t\t[ id ]\n\t);\n\n\tuseEffect( () => {\n\t\tconst element = document.getElementById( id );\n\t\tif ( ! element ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( isVisible ) {\n\t\t\telement.classList.remove( 'is-hidden' );\n\t\t} else {\n\t\t\telement.classList.add( 'is-hidden' );\n\t\t}\n\t}, [ id, isVisible ] );\n\n\treturn null;\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA0B;AAC1B,kBAA0B;AAC1B,oBAAqC;AAEtB,SAAR,kBAAoC,EAAE,GAAG,GAAI;AACnD,QAAM,gBAAY;AAAA,IACjB,CAAE,WAAY;AACb,aAAO,OAAQ,cAAAA,KAAY,EAAE;AAAA,QAC5B,YAAa,EAAG;AAAA,MACjB;AAAA,IACD;AAAA,IACA,CAAE,EAAG;AAAA,EACN;AAEA,gCAAW,MAAM;AAChB,UAAM,UAAU,SAAS,eAAgB,EAAG;AAC5C,QAAK,CAAE,SAAU;AAChB;AAAA,IACD;AAEA,QAAK,WAAY;AAChB,cAAQ,UAAU,OAAQ,WAAY;AAAA,IACvC,OAAO;AACN,cAAQ,UAAU,IAAK,WAAY;AAAA,IACpC;AAAA,EACD,GAAG,CAAE,IAAI,SAAU,CAAE;AAErB,SAAO;AACR;",
|
|
6
6
|
"names": ["editorStore"]
|
|
7
7
|
}
|
|
@@ -25,17 +25,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/meta-boxes/meta-boxes-area/index.js
|
|
28
30
|
var meta_boxes_area_exports = {};
|
|
29
31
|
__export(meta_boxes_area_exports, {
|
|
30
32
|
default: () => meta_boxes_area_default
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(meta_boxes_area_exports);
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_clsx = __toESM(require("clsx"));
|
|
35
36
|
var import_element = require("@wordpress/element");
|
|
36
37
|
var import_components = require("@wordpress/components");
|
|
37
38
|
var import_data = require("@wordpress/data");
|
|
38
39
|
var import_store = require("../../../store");
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
41
|
function MetaBoxesArea({ location }) {
|
|
40
42
|
const container = (0, import_element.useRef)(null);
|
|
41
43
|
const formRef = (0, import_element.useRef)(null);
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/components/meta-boxes/meta-boxes-area/index.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useRef, useEffect } from '@wordpress/element';\nimport { Spinner } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Render metabox area.\n *\n * @param {Object} props Component props.\n * @param {string} props.location metabox location.\n * @return {Component} The component to be rendered.\n */\nfunction MetaBoxesArea( { location } ) {\n\tconst container = useRef( null );\n\tconst formRef = useRef( null );\n\n\tuseEffect( () => {\n\t\tformRef.current = document.querySelector(\n\t\t\t'.metabox-location-' + location\n\t\t);\n\n\t\tif ( formRef.current ) {\n\t\t\tcontainer.current.appendChild( formRef.current );\n\t\t}\n\n\t\treturn () => {\n\t\t\tif ( formRef.current ) {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector( '#metaboxes' )\n\t\t\t\t\t.appendChild( formRef.current );\n\t\t\t}\n\t\t};\n\t}, [ location ] );\n\n\tconst isSaving = useSelect( ( select ) => {\n\t\treturn select( editPostStore ).isSavingMetaBoxes();\n\t}, [] );\n\n\tconst classes = clsx( 'edit-post-meta-boxes-area', `is-${ location }`, {\n\t\t'is-loading': isSaving,\n\t} );\n\n\treturn (\n\t\t<div className={ classes }>\n\t\t\t{ isSaving && <Spinner /> }\n\t\t\t<div\n\t\t\t\tclassName=\"edit-post-meta-boxes-area__container\"\n\t\t\t\tref={ container }\n\t\t\t/>\n\t\t\t<div className=\"edit-post-meta-boxes-area__clear\" />\n\t\t</div>\n\t);\n}\n\nexport default MetaBoxesArea;\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,qBAAkC;AAClC,wBAAwB;AACxB,kBAA0B;AAK1B,mBAAuC;AAwCrC;AA/BF,SAAS,cAAe,EAAE,SAAS,GAAI;AACtC,QAAM,gBAAY,uBAAQ,IAAK;AAC/B,QAAM,cAAU,uBAAQ,IAAK;AAE7B,gCAAW,MAAM;AAChB,YAAQ,UAAU,SAAS;AAAA,MAC1B,uBAAuB;AAAA,IACxB;AAEA,QAAK,QAAQ,SAAU;AACtB,gBAAU,QAAQ,YAAa,QAAQ,OAAQ;AAAA,IAChD;AAEA,WAAO,MAAM;AACZ,UAAK,QAAQ,SAAU;AACtB,iBACE,cAAe,YAAa,EAC5B,YAAa,QAAQ,OAAQ;AAAA,MAChC;AAAA,IACD;AAAA,EACD,GAAG,CAAE,QAAS,CAAE;AAEhB,QAAM,eAAW,uBAAW,CAAE,WAAY;AACzC,WAAO,OAAQ,aAAAA,KAAc,EAAE,kBAAkB;AAAA,EAClD,GAAG,CAAC,CAAE;AAEN,QAAM,cAAU,YAAAC,SAAM,6BAA6B,MAAO,QAAS,IAAI;AAAA,IACtE,cAAc;AAAA,EACf,CAAE;AAEF,SACC,6CAAC,SAAI,WAAY,SACd;AAAA,gBAAY,4CAAC,6BAAQ;AAAA,IACvB;AAAA,MAAC;AAAA;AAAA,QACA,WAAU;AAAA,QACV,KAAM;AAAA;AAAA,IACP;AAAA,IACA,4CAAC,SAAI,WAAU,oCAAmC;AAAA,KACnD;AAEF;AAEA,IAAO,0BAAQ;",
|
|
6
6
|
"names": ["editPostStore", "clsx"]
|
|
7
7
|
}
|
|
@@ -15,6 +15,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/edit-post/src/components/meta-boxes/use-meta-box-initialization.js
|
|
18
20
|
var use_meta_box_initialization_exports = {};
|
|
19
21
|
__export(use_meta_box_initialization_exports, {
|
|
20
22
|
useMetaBoxInitialization: () => useMetaBoxInitialization
|
|
@@ -24,7 +26,7 @@ var import_data = require("@wordpress/data");
|
|
|
24
26
|
var import_editor = require("@wordpress/editor");
|
|
25
27
|
var import_element = require("@wordpress/element");
|
|
26
28
|
var import_store = require("../../store");
|
|
27
|
-
|
|
29
|
+
var useMetaBoxInitialization = (enabled) => {
|
|
28
30
|
const isEnabledAndEditorReady = (0, import_data.useSelect)(
|
|
29
31
|
(select) => enabled && select(import_editor.store).__unstableIsEditorReady(),
|
|
30
32
|
[enabled]
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/meta-boxes/use-meta-box-initialization.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { useEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../store';\n\n/**\n * Initializes WordPress `postboxes` script and the logic for saving meta boxes.\n *\n * @param { boolean } enabled\n */\nexport const useMetaBoxInitialization = ( enabled ) => {\n\tconst isEnabledAndEditorReady = useSelect(\n\t\t( select ) =>\n\t\t\tenabled && select( editorStore ).__unstableIsEditorReady(),\n\t\t[ enabled ]\n\t);\n\tconst { initializeMetaBoxes } = useDispatch( editPostStore );\n\t// The effect has to rerun when the editor is ready because initializeMetaBoxes\n\t// will noop until then.\n\tuseEffect( () => {\n\t\tif ( isEnabledAndEditorReady ) {\n\t\t\tinitializeMetaBoxes();\n\t\t}\n\t}, [ isEnabledAndEditorReady, initializeMetaBoxes ] );\n};\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAuC;AACvC,oBAAqC;AACrC,qBAA0B;AAK1B,mBAAuC;AAOhC,IAAM,2BAA2B,CAAE,YAAa;AACtD,QAAM,8BAA0B;AAAA,IAC/B,CAAE,WACD,WAAW,OAAQ,cAAAA,KAAY,EAAE,wBAAwB;AAAA,IAC1D,CAAE,OAAQ;AAAA,EACX;AACA,QAAM,EAAE,oBAAoB,QAAI,yBAAa,aAAAC,KAAc;AAG3D,gCAAW,MAAM;AAChB,QAAK,yBAA0B;AAC9B,0BAAoB;AAAA,IACrB;AAAA,EACD,GAAG,CAAE,yBAAyB,mBAAoB,CAAE;AACrD;",
|
|
6
6
|
"names": ["editorStore", "editPostStore"]
|
|
7
7
|
}
|
|
@@ -25,12 +25,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/more-menu/index.js
|
|
28
30
|
var more_menu_exports = {};
|
|
29
31
|
__export(more_menu_exports, {
|
|
30
32
|
default: () => more_menu_default
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(more_menu_exports);
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_i18n = require("@wordpress/i18n");
|
|
35
36
|
var import_compose = require("@wordpress/compose");
|
|
36
37
|
var import_editor = require("@wordpress/editor");
|
|
@@ -40,8 +41,9 @@ var import_lock_unlock = require("../../lock-unlock");
|
|
|
40
41
|
var import_manage_patterns_menu_item = __toESM(require("./manage-patterns-menu-item"));
|
|
41
42
|
var import_welcome_guide_menu_item = __toESM(require("./welcome-guide-menu-item"));
|
|
42
43
|
var import_preferences_modal = __toESM(require("../preferences-modal"));
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
var { ToolsMoreMenuGroup, ViewMoreMenuGroup } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
|
|
46
|
+
var MoreMenu = () => {
|
|
45
47
|
const isLargeViewport = (0, import_compose.useViewportMatch)("large");
|
|
46
48
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
47
49
|
isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ViewMoreMenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/more-menu/index.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport ManagePatternsMenuItem from './manage-patterns-menu-item';\nimport WelcomeGuideMenuItem from './welcome-guide-menu-item';\nimport EditPostPreferencesModal from '../preferences-modal';\n\nconst { ToolsMoreMenuGroup, ViewMoreMenuGroup } = unlock( editorPrivateApis );\n\nconst MoreMenu = () => {\n\tconst isLargeViewport = useViewportMatch( 'large' );\n\n\treturn (\n\t\t<>\n\t\t\t{ isLargeViewport && (\n\t\t\t\t<ViewMoreMenuGroup>\n\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\tscope=\"core/edit-post\"\n\t\t\t\t\t\tname=\"fullscreenMode\"\n\t\t\t\t\t\tlabel={ __( 'Fullscreen mode' ) }\n\t\t\t\t\t\tinfo={ __( 'Show and hide the admin user interface' ) }\n\t\t\t\t\t\tmessageActivated={ __( 'Fullscreen mode activated.' ) }\n\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t'Fullscreen mode deactivated.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t\tshortcut={ displayShortcut.secondary( 'f' ) }\n\t\t\t\t\t/>\n\t\t\t\t</ViewMoreMenuGroup>\n\t\t\t) }\n\t\t\t<ToolsMoreMenuGroup>\n\t\t\t\t<ManagePatternsMenuItem />\n\t\t\t\t<WelcomeGuideMenuItem />\n\t\t\t</ToolsMoreMenuGroup>\n\t\t\t<EditPostPreferencesModal />\n\t\t</>\n\t);\n};\n\nexport default MoreMenu;\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAmB;AACnB,qBAAiC;AACjC,oBAAiD;AACjD,sBAAgC;AAChC,yBAAyC;AAKzC,yBAAuB;AACvB,uCAAmC;AACnC,qCAAiC;AACjC,+BAAqC;AAQnC;AANF,IAAM,EAAE,oBAAoB,kBAAkB,QAAI,2BAAQ,cAAAA,WAAkB;AAE5E,IAAM,WAAW,MAAM;AACtB,QAAM,sBAAkB,iCAAkB,OAAQ;AAElD,SACC,4EACG;AAAA,uBACD,4CAAC,qBACA;AAAA,MAAC;AAAA;AAAA,QACA,OAAM;AAAA,QACN,MAAK;AAAA,QACL,WAAQ,gBAAI,iBAAkB;AAAA,QAC9B,UAAO,gBAAI,wCAAyC;AAAA,QACpD,sBAAmB,gBAAI,4BAA6B;AAAA,QACpD,wBAAqB;AAAA,UACpB;AAAA,QACD;AAAA,QACA,UAAW,gCAAgB,UAAW,GAAI;AAAA;AAAA,IAC3C,GACD;AAAA,IAED,6CAAC,sBACA;AAAA,kDAAC,iCAAAC,SAAA,EAAuB;AAAA,MACxB,4CAAC,+BAAAC,SAAA,EAAqB;AAAA,OACvB;AAAA,IACA,4CAAC,yBAAAC,SAAA,EAAyB;AAAA,KAC3B;AAEF;AAEA,IAAO,oBAAQ;",
|
|
6
6
|
"names": ["editorPrivateApis", "ManagePatternsMenuItem", "WelcomeGuideMenuItem", "EditPostPreferencesModal"]
|
|
7
7
|
}
|
|
@@ -15,17 +15,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/edit-post/src/components/more-menu/manage-patterns-menu-item.js
|
|
18
20
|
var manage_patterns_menu_item_exports = {};
|
|
19
21
|
__export(manage_patterns_menu_item_exports, {
|
|
20
22
|
default: () => manage_patterns_menu_item_default
|
|
21
23
|
});
|
|
22
24
|
module.exports = __toCommonJS(manage_patterns_menu_item_exports);
|
|
23
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
var import_components = require("@wordpress/components");
|
|
25
26
|
var import_core_data = require("@wordpress/core-data");
|
|
26
27
|
var import_data = require("@wordpress/data");
|
|
27
28
|
var import_i18n = require("@wordpress/i18n");
|
|
28
29
|
var import_url = require("@wordpress/url");
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
31
|
function ManagePatternsMenuItem() {
|
|
30
32
|
const url = (0, import_data.useSelect)((select) => {
|
|
31
33
|
const { canUser } = select(import_core_data.store);
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/more-menu/manage-patterns-menu-item.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { MenuItem } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { addQueryArgs } from '@wordpress/url';\n\nfunction ManagePatternsMenuItem() {\n\tconst url = useSelect( ( select ) => {\n\t\tconst { canUser } = select( coreStore );\n\t\tconst defaultUrl = addQueryArgs( 'edit.php', {\n\t\t\tpost_type: 'wp_block',\n\t\t} );\n\t\tconst patternsUrl = addQueryArgs( 'site-editor.php', {\n\t\t\tp: '/pattern',\n\t\t} );\n\n\t\t// The site editor and templates both check whether the user has\n\t\t// edit_theme_options capabilities. We can leverage that here and not\n\t\t// display the manage patterns link if the user can't access it.\n\t\treturn canUser( 'create', {\n\t\t\tkind: 'postType',\n\t\t\tname: 'wp_template',\n\t\t} )\n\t\t\t? patternsUrl\n\t\t\t: defaultUrl;\n\t}, [] );\n\n\treturn (\n\t\t<MenuItem role=\"menuitem\" href={ url }>\n\t\t\t{ __( 'Manage patterns' ) }\n\t\t</MenuItem>\n\t);\n}\n\nexport default ManagePatternsMenuItem;\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAAyB;AACzB,uBAAmC;AACnC,kBAA0B;AAC1B,kBAAmB;AACnB,iBAA6B;AAwB3B;AAtBF,SAAS,yBAAyB;AACjC,QAAM,UAAM,uBAAW,CAAE,WAAY;AACpC,UAAM,EAAE,QAAQ,IAAI,OAAQ,iBAAAA,KAAU;AACtC,UAAM,iBAAa,yBAAc,YAAY;AAAA,MAC5C,WAAW;AAAA,IACZ,CAAE;AACF,UAAM,kBAAc,yBAAc,mBAAmB;AAAA,MACpD,GAAG;AAAA,IACJ,CAAE;AAKF,WAAO,QAAS,UAAU;AAAA,MACzB,MAAM;AAAA,MACN,MAAM;AAAA,IACP,CAAE,IACC,cACA;AAAA,EACJ,GAAG,CAAC,CAAE;AAEN,SACC,4CAAC,8BAAS,MAAK,YAAW,MAAO,KAC9B,8BAAI,iBAAkB,GACzB;AAEF;AAEA,IAAO,oCAAQ;",
|
|
6
6
|
"names": ["coreStore"]
|
|
7
7
|
}
|
|
@@ -15,16 +15,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/edit-post/src/components/more-menu/welcome-guide-menu-item.js
|
|
18
20
|
var welcome_guide_menu_item_exports = {};
|
|
19
21
|
__export(welcome_guide_menu_item_exports, {
|
|
20
22
|
default: () => WelcomeGuideMenuItem
|
|
21
23
|
});
|
|
22
24
|
module.exports = __toCommonJS(welcome_guide_menu_item_exports);
|
|
23
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
var import_data = require("@wordpress/data");
|
|
25
26
|
var import_preferences = require("@wordpress/preferences");
|
|
26
27
|
var import_i18n = require("@wordpress/i18n");
|
|
27
28
|
var import_editor = require("@wordpress/editor");
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
30
|
function WelcomeGuideMenuItem() {
|
|
29
31
|
const isEditingTemplate = (0, import_data.useSelect)(
|
|
30
32
|
(select) => select(import_editor.store).getCurrentPostType() === "wp_template",
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/more-menu/welcome-guide-menu-item.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\nimport { __ } from '@wordpress/i18n';\nimport { store as editorStore } from '@wordpress/editor';\n\nexport default function WelcomeGuideMenuItem() {\n\tconst isEditingTemplate = useSelect(\n\t\t( select ) =>\n\t\t\tselect( editorStore ).getCurrentPostType() === 'wp_template',\n\t\t[]\n\t);\n\n\treturn (\n\t\t<PreferenceToggleMenuItem\n\t\t\tscope=\"core/edit-post\"\n\t\t\tname={ isEditingTemplate ? 'welcomeGuideTemplate' : 'welcomeGuide' }\n\t\t\tlabel={ __( 'Welcome Guide' ) }\n\t\t/>\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA0B;AAC1B,yBAAyC;AACzC,kBAAmB;AACnB,oBAAqC;AAUnC;AARa,SAAR,uBAAwC;AAC9C,QAAM,wBAAoB;AAAA,IACzB,CAAE,WACD,OAAQ,cAAAA,KAAY,EAAE,mBAAmB,MAAM;AAAA,IAChD,CAAC;AAAA,EACF;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,OAAM;AAAA,MACN,MAAO,oBAAoB,yBAAyB;AAAA,MACpD,WAAQ,gBAAI,eAAgB;AAAA;AAAA,EAC7B;AAEF;",
|
|
6
6
|
"names": ["editorStore"]
|
|
7
7
|
}
|
|
@@ -15,13 +15,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/edit-post/src/components/preferences-modal/enable-custom-fields.js
|
|
18
20
|
var enable_custom_fields_exports = {};
|
|
19
21
|
__export(enable_custom_fields_exports, {
|
|
20
22
|
CustomFieldsConfirmation: () => CustomFieldsConfirmation,
|
|
21
23
|
default: () => EnableCustomFieldsOption
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(enable_custom_fields_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_element = require("@wordpress/element");
|
|
26
27
|
var import_i18n = require("@wordpress/i18n");
|
|
27
28
|
var import_components = require("@wordpress/components");
|
|
@@ -30,7 +31,8 @@ var import_editor = require("@wordpress/editor");
|
|
|
30
31
|
var import_preferences = require("@wordpress/preferences");
|
|
31
32
|
var import_url = require("@wordpress/url");
|
|
32
33
|
var import_lock_unlock = require("../../lock-unlock");
|
|
33
|
-
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var { PreferenceBaseOption } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
|
|
34
36
|
function submitCustomFieldsForm() {
|
|
35
37
|
const customFieldsForm = document.getElementById(
|
|
36
38
|
"toggle-custom-fields-form"
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/preferences-modal/enable-custom-fields.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\nimport { getPathAndQueryString } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { PreferenceBaseOption } = unlock( preferencesPrivateApis );\n\nfunction submitCustomFieldsForm() {\n\tconst customFieldsForm = document.getElementById(\n\t\t'toggle-custom-fields-form'\n\t);\n\n\t// Ensure the referrer values is up to update with any\n\tcustomFieldsForm\n\t\t.querySelector( '[name=\"_wp_http_referer\"]' )\n\t\t.setAttribute( 'value', getPathAndQueryString( window.location.href ) );\n\n\tcustomFieldsForm.submit();\n}\n\nexport function CustomFieldsConfirmation( { willEnable } ) {\n\tconst [ isReloading, setIsReloading ] = useState( false );\n\treturn (\n\t\t<>\n\t\t\t<p className=\"edit-post-preferences-modal__custom-fields-confirmation-message\">\n\t\t\t\t{ __(\n\t\t\t\t\t'A page reload is required for this change. Make sure your content is saved before reloading.'\n\t\t\t\t) }\n\t\t\t</p>\n\t\t\t<Button\n\t\t\t\t__next40pxDefaultSize\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tisBusy={ isReloading }\n\t\t\t\taccessibleWhenDisabled\n\t\t\t\tdisabled={ isReloading }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsReloading( true );\n\t\t\t\t\tsubmitCustomFieldsForm();\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t{ willEnable\n\t\t\t\t\t? __( 'Show & Reload Page' )\n\t\t\t\t\t: __( 'Hide & Reload Page' ) }\n\t\t\t</Button>\n\t\t</>\n\t);\n}\n\nexport default function EnableCustomFieldsOption( { label } ) {\n\tconst areCustomFieldsEnabled = useSelect( ( select ) => {\n\t\treturn !! select( editorStore ).getEditorSettings().enableCustomFields;\n\t}, [] );\n\tconst [ isChecked, setIsChecked ] = useState( areCustomFieldsEnabled );\n\n\treturn (\n\t\t<PreferenceBaseOption\n\t\t\tlabel={ label }\n\t\t\tisChecked={ isChecked }\n\t\t\tonChange={ setIsChecked }\n\t\t>\n\t\t\t{ isChecked !== areCustomFieldsEnabled && (\n\t\t\t\t<CustomFieldsConfirmation willEnable={ isChecked } />\n\t\t\t) }\n\t\t</PreferenceBaseOption>\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAyB;AACzB,kBAAmB;AACnB,wBAAuB;AACvB,kBAA0B;AAC1B,oBAAqC;AACrC,yBAAsD;AACtD,iBAAsC;AAKtC,yBAAuB;AAoBrB;AAlBF,IAAM,EAAE,qBAAqB,QAAI,2BAAQ,mBAAAA,WAAuB;AAEhE,SAAS,yBAAyB;AACjC,QAAM,mBAAmB,SAAS;AAAA,IACjC;AAAA,EACD;AAGA,mBACE,cAAe,2BAA4B,EAC3C,aAAc,aAAS,kCAAuB,OAAO,SAAS,IAAK,CAAE;AAEvE,mBAAiB,OAAO;AACzB;AAEO,SAAS,yBAA0B,EAAE,WAAW,GAAI;AAC1D,QAAM,CAAE,aAAa,cAAe,QAAI,yBAAU,KAAM;AACxD,SACC,4EACC;AAAA,gDAAC,OAAE,WAAU,mEACV;AAAA,MACD;AAAA,IACD,GACD;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACA,uBAAqB;AAAA,QACrB,SAAQ;AAAA,QACR,QAAS;AAAA,QACT,wBAAsB;AAAA,QACtB,UAAW;AAAA,QACX,SAAU,MAAM;AACf,yBAAgB,IAAK;AACrB,iCAAuB;AAAA,QACxB;AAAA,QAEE,2BACC,gBAAI,oBAAqB,QACzB,gBAAI,oBAAqB;AAAA;AAAA,IAC7B;AAAA,KACD;AAEF;AAEe,SAAR,yBAA2C,EAAE,MAAM,GAAI;AAC7D,QAAM,6BAAyB,uBAAW,CAAE,WAAY;AACvD,WAAO,CAAC,CAAE,OAAQ,cAAAC,KAAY,EAAE,kBAAkB,EAAE;AAAA,EACrD,GAAG,CAAC,CAAE;AACN,QAAM,CAAE,WAAW,YAAa,QAAI,yBAAU,sBAAuB;AAErE,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAW;AAAA,MAET,wBAAc,0BACf,4CAAC,4BAAyB,YAAa,WAAY;AAAA;AAAA,EAErD;AAEF;",
|
|
6
6
|
"names": ["preferencesPrivateApis", "editorStore"]
|
|
7
7
|
}
|
|
@@ -15,17 +15,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/edit-post/src/components/preferences-modal/enable-panel.js
|
|
18
20
|
var enable_panel_exports = {};
|
|
19
21
|
__export(enable_panel_exports, {
|
|
20
22
|
default: () => EnablePanelOption
|
|
21
23
|
});
|
|
22
24
|
module.exports = __toCommonJS(enable_panel_exports);
|
|
23
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
var import_data = require("@wordpress/data");
|
|
25
26
|
var import_editor = require("@wordpress/editor");
|
|
26
27
|
var import_preferences = require("@wordpress/preferences");
|
|
27
28
|
var import_lock_unlock = require("../../lock-unlock");
|
|
28
|
-
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
var { PreferenceBaseOption } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
|
|
29
31
|
function EnablePanelOption(props) {
|
|
30
32
|
const { toggleEditorPanelEnabled } = (0, import_data.useDispatch)(import_editor.store);
|
|
31
33
|
const { isChecked, isRemoved } = (0, import_data.useSelect)(
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/preferences-modal/enable-panel.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { PreferenceBaseOption } = unlock( preferencesPrivateApis );\n\nexport default function EnablePanelOption( props ) {\n\tconst { toggleEditorPanelEnabled } = useDispatch( editorStore );\n\tconst { isChecked, isRemoved } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { isEditorPanelEnabled, isEditorPanelRemoved } =\n\t\t\t\tselect( editorStore );\n\t\t\treturn {\n\t\t\t\tisChecked: isEditorPanelEnabled( props.panelName ),\n\t\t\t\tisRemoved: isEditorPanelRemoved( props.panelName ),\n\t\t\t};\n\t\t},\n\t\t[ props.panelName ]\n\t);\n\n\tif ( isRemoved ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PreferenceBaseOption\n\t\t\tisChecked={ isChecked }\n\t\t\tonChange={ () => toggleEditorPanelEnabled( props.panelName ) }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAuC;AACvC,oBAAqC;AACrC,yBAAsD;AAKtD,yBAAuB;AAuBrB;AArBF,IAAM,EAAE,qBAAqB,QAAI,2BAAQ,mBAAAA,WAAuB;AAEjD,SAAR,kBAAoC,OAAQ;AAClD,QAAM,EAAE,yBAAyB,QAAI,yBAAa,cAAAC,KAAY;AAC9D,QAAM,EAAE,WAAW,UAAU,QAAI;AAAA,IAChC,CAAE,WAAY;AACb,YAAM,EAAE,sBAAsB,qBAAqB,IAClD,OAAQ,cAAAA,KAAY;AACrB,aAAO;AAAA,QACN,WAAW,qBAAsB,MAAM,SAAU;AAAA,QACjD,WAAW,qBAAsB,MAAM,SAAU;AAAA,MAClD;AAAA,IACD;AAAA,IACA,CAAE,MAAM,SAAU;AAAA,EACnB;AAEA,MAAK,WAAY;AAChB,WAAO;AAAA,EACR;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,UAAW,MAAM,yBAA0B,MAAM,SAAU;AAAA,MACzD,GAAG;AAAA;AAAA,EACN;AAEF;",
|
|
6
6
|
"names": ["preferencesPrivateApis", "editorStore"]
|
|
7
7
|
}
|
|
@@ -25,19 +25,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/preferences-modal/index.js
|
|
28
30
|
var preferences_modal_exports = {};
|
|
29
31
|
__export(preferences_modal_exports, {
|
|
30
32
|
default: () => EditPostPreferencesModal
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(preferences_modal_exports);
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_i18n = require("@wordpress/i18n");
|
|
35
36
|
var import_preferences = require("@wordpress/preferences");
|
|
36
37
|
var import_editor = require("@wordpress/editor");
|
|
37
38
|
var import_lock_unlock = require("../../lock-unlock");
|
|
38
39
|
var import_meta_boxes_section = __toESM(require("./meta-boxes-section"));
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
+
var { PreferenceToggleControl } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
|
|
42
|
+
var { PreferencesModal } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
|
|
41
43
|
function EditPostPreferencesModal() {
|
|
42
44
|
const extraSections = {
|
|
43
45
|
general: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_meta_boxes_section.default, { title: (0, import_i18n.__)("Advanced") }),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/preferences-modal/index.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\n\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport MetaBoxesSection from './meta-boxes-section';\n\nconst { PreferenceToggleControl } = unlock( preferencesPrivateApis );\nconst { PreferencesModal } = unlock( editorPrivateApis );\n\nexport default function EditPostPreferencesModal() {\n\tconst extraSections = {\n\t\tgeneral: <MetaBoxesSection title={ __( 'Advanced' ) } />,\n\t\tappearance: (\n\t\t\t<PreferenceToggleControl\n\t\t\t\tscope=\"core/edit-post\"\n\t\t\t\tfeatureName=\"themeStyles\"\n\t\t\t\thelp={ __( 'Make the editor look like your theme.' ) }\n\t\t\t\tlabel={ __( 'Use theme styles' ) }\n\t\t\t/>\n\t\t),\n\t};\n\n\treturn <PreferencesModal extraSections={ extraSections } />;\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,kBAAmB;AACnB,yBAAsD;AACtD,oBAAiD;AAKjD,yBAAuB;AACvB,gCAA6B;AAOlB;AALX,IAAM,EAAE,wBAAwB,QAAI,2BAAQ,mBAAAA,WAAuB;AACnE,IAAM,EAAE,iBAAiB,QAAI,2BAAQ,cAAAC,WAAkB;AAExC,SAAR,2BAA4C;AAClD,QAAM,gBAAgB;AAAA,IACrB,SAAS,4CAAC,0BAAAC,SAAA,EAAiB,WAAQ,gBAAI,UAAW,GAAI;AAAA,IACtD,YACC;AAAA,MAAC;AAAA;AAAA,QACA,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,UAAO,gBAAI,uCAAwC;AAAA,QACnD,WAAQ,gBAAI,kBAAmB;AAAA;AAAA,IAChC;AAAA,EAEF;AAEA,SAAO,4CAAC,oBAAiB,eAAgC;AAC1D;",
|
|
6
6
|
"names": ["preferencesPrivateApis", "editorPrivateApis", "MetaBoxesSection"]
|
|
7
7
|
}
|
|
@@ -25,13 +25,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/preferences-modal/meta-boxes-section.js
|
|
28
30
|
var meta_boxes_section_exports = {};
|
|
29
31
|
__export(meta_boxes_section_exports, {
|
|
30
32
|
MetaBoxesSection: () => MetaBoxesSection,
|
|
31
33
|
default: () => meta_boxes_section_default
|
|
32
34
|
});
|
|
33
35
|
module.exports = __toCommonJS(meta_boxes_section_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
36
|
var import_i18n = require("@wordpress/i18n");
|
|
36
37
|
var import_data = require("@wordpress/data");
|
|
37
38
|
var import_editor = require("@wordpress/editor");
|
|
@@ -40,7 +41,8 @@ var import_enable_custom_fields = __toESM(require("./enable-custom-fields"));
|
|
|
40
41
|
var import_enable_panel = __toESM(require("./enable-panel"));
|
|
41
42
|
var import_store = require("../../store");
|
|
42
43
|
var import_lock_unlock = require("../../lock-unlock");
|
|
43
|
-
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
var { PreferencesModalSection } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
|
|
44
46
|
function MetaBoxesSection({
|
|
45
47
|
areCustomFieldsRegistered,
|
|
46
48
|
metaBoxes,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/preferences-modal/meta-boxes-section.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { withSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport EnableCustomFieldsOption from './enable-custom-fields';\nimport EnablePanelOption from './enable-panel';\nimport { store as editPostStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\n\nconst { PreferencesModalSection } = unlock( preferencesPrivateApis );\n\nexport function MetaBoxesSection( {\n\tareCustomFieldsRegistered,\n\tmetaBoxes,\n\t...sectionProps\n} ) {\n\t// The 'Custom Fields' meta box is a special case that we handle separately.\n\tconst thirdPartyMetaBoxes = metaBoxes.filter(\n\t\t( { id } ) => id !== 'postcustom'\n\t);\n\n\tif ( ! areCustomFieldsRegistered && thirdPartyMetaBoxes.length === 0 ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PreferencesModalSection { ...sectionProps }>\n\t\t\t{ areCustomFieldsRegistered && (\n\t\t\t\t<EnableCustomFieldsOption label={ __( 'Custom fields' ) } />\n\t\t\t) }\n\t\t\t{ thirdPartyMetaBoxes.map( ( { id, title } ) => (\n\t\t\t\t<EnablePanelOption\n\t\t\t\t\tkey={ id }\n\t\t\t\t\tlabel={ title }\n\t\t\t\t\tpanelName={ `meta-box-${ id }` }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</PreferencesModalSection>\n\t);\n}\n\nexport default withSelect( ( select ) => {\n\tconst { getEditorSettings } = select( editorStore );\n\tconst { getAllMetaBoxes } = select( editPostStore );\n\n\treturn {\n\t\t// This setting should not live in the block editor's store.\n\t\tareCustomFieldsRegistered:\n\t\t\tgetEditorSettings().enableCustomFields !== undefined,\n\t\tmetaBoxes: getAllMetaBoxes(),\n\t};\n} )( MetaBoxesSection );\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAmB;AACnB,kBAA2B;AAC3B,oBAAqC;AACrC,yBAAsD;AAKtD,kCAAqC;AACrC,0BAA8B;AAC9B,mBAAuC;AACvC,yBAAuB;AAmBrB;AAjBF,IAAM,EAAE,wBAAwB,QAAI,2BAAQ,mBAAAA,WAAuB;AAE5D,SAAS,iBAAkB;AAAA,EACjC;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GAAI;AAEH,QAAM,sBAAsB,UAAU;AAAA,IACrC,CAAE,EAAE,GAAG,MAAO,OAAO;AAAA,EACtB;AAEA,MAAK,CAAE,6BAA6B,oBAAoB,WAAW,GAAI;AACtE,WAAO;AAAA,EACR;AAEA,SACC,6CAAC,2BAA0B,GAAG,cAC3B;AAAA,iCACD,4CAAC,4BAAAC,SAAA,EAAyB,WAAQ,gBAAI,eAAgB,GAAI;AAAA,IAEzD,oBAAoB,IAAK,CAAE,EAAE,IAAI,MAAM,MACxC;AAAA,MAAC,oBAAAC;AAAA,MAAA;AAAA,QAEA,OAAQ;AAAA,QACR,WAAY,YAAa,EAAG;AAAA;AAAA,MAFtB;AAAA,IAGP,CACC;AAAA,KACH;AAEF;AAEA,IAAO,iCAAQ,wBAAY,CAAE,WAAY;AACxC,QAAM,EAAE,kBAAkB,IAAI,OAAQ,cAAAC,KAAY;AAClD,QAAM,EAAE,gBAAgB,IAAI,OAAQ,aAAAC,KAAc;AAElD,SAAO;AAAA;AAAA,IAEN,2BACC,kBAAkB,EAAE,uBAAuB;AAAA,IAC5C,WAAW,gBAAgB;AAAA,EAC5B;AACD,CAAE,EAAG,gBAAiB;",
|
|
6
6
|
"names": ["preferencesPrivateApis", "EnableCustomFieldsOption", "EnablePanelOption", "editorStore", "editPostStore"]
|
|
7
7
|
}
|
|
@@ -25,18 +25,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/welcome-guide/default.js
|
|
28
30
|
var default_exports = {};
|
|
29
31
|
__export(default_exports, {
|
|
30
32
|
default: () => WelcomeGuideDefault
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(default_exports);
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_data = require("@wordpress/data");
|
|
35
36
|
var import_components = require("@wordpress/components");
|
|
36
37
|
var import_i18n = require("@wordpress/i18n");
|
|
37
38
|
var import_element = require("@wordpress/element");
|
|
38
39
|
var import_image = __toESM(require("./image"));
|
|
39
40
|
var import_store = require("../../store");
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
42
|
function WelcomeGuideDefault() {
|
|
41
43
|
const { toggleFeature } = (0, import_data.useDispatch)(import_store.store);
|
|
42
44
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/welcome-guide/default.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch } from '@wordpress/data';\nimport { ExternalLink, Guide } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { createInterpolateElement } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport WelcomeGuideImage from './image';\nimport { store as editPostStore } from '../../store';\n\nexport default function WelcomeGuideDefault() {\n\tconst { toggleFeature } = useDispatch( editPostStore );\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"edit-post-welcome-guide\"\n\t\t\tcontentLabel={ __( 'Welcome to the editor' ) }\n\t\t\tfinishButtonText={ __( 'Get started' ) }\n\t\t\tonFinish={ () => toggleFeature( 'welcomeGuide' ) }\n\t\t\tpages={ [\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-canvas.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-canvas.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Welcome to the editor' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'In the WordPress editor, each paragraph, image, or video is presented as a distinct \u201Cblock\u201D of content.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-editor.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-editor.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Customize each block' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-library.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-library.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Explore all blocks' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\t\t\t'All of the blocks available to you live in the block library. You\u2019ll find it wherever you see the <InserterIconImage /> icon.'\n\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\t\tInserterIconImage: (\n\t\t\t\t\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t\t\t\t\talt={ __( 'inserter' ) }\n\t\t\t\t\t\t\t\t\t\t\t\tsrc=\"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A\"\n\t\t\t\t\t\t\t\t\t\t\t/>\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) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-documentation.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-documentation.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Learn more' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\t\t\t\"New to the block editor? Want to learn more about using it? <a>Here's a detailed guide.</a>\"\n\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\t\ta: (\n\t\t\t\t\t\t\t\t\t\t\t<ExternalLink\n\t\t\t\t\t\t\t\t\t\t\t\thref={ __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'https://wordpress.org/documentation/article/wordpress-block-editor/'\n\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t/>\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) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t] }\n\t\t/>\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA4B;AAC5B,wBAAoC;AACpC,kBAAmB;AACnB,qBAAyC;AAKzC,mBAA8B;AAC9B,mBAAuC;AAcjC;AAZS,SAAR,sBAAuC;AAC7C,QAAM,EAAE,cAAc,QAAI,yBAAa,aAAAA,KAAc;AAErD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,kBAAe,gBAAI,uBAAwB;AAAA,MAC3C,sBAAmB,gBAAI,aAAc;AAAA,MACrC,UAAW,MAAM,cAAe,cAAe;AAAA,MAC/C,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC,aAAAC;AAAA,YAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,4EACC;AAAA,wDAAC,QAAG,WAAU,oCACX,8BAAI,uBAAwB,GAC/B;AAAA,YACA,4CAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,QACA;AAAA,UACC,OACC;AAAA,YAAC,aAAAA;AAAA,YAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,4EACC;AAAA,wDAAC,QAAG,WAAU,oCACX,8BAAI,sBAAuB,GAC9B;AAAA,YACA,4CAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,QACA;AAAA,UACC,OACC;AAAA,YAAC,aAAAA;AAAA,YAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,4EACC;AAAA,wDAAC,QAAG,WAAU,oCACX,8BAAI,oBAAqB,GAC5B;AAAA,YACA,4CAAC,OAAE,WAAU,iCACV;AAAA,kBACD;AAAA,gBACC;AAAA,cACD;AAAA,cACA;AAAA,gBACC,mBACC;AAAA,kBAAC;AAAA;AAAA,oBACA,SAAM,gBAAI,UAAW;AAAA,oBACrB,KAAI;AAAA;AAAA,gBACL;AAAA,cAEF;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,QACA;AAAA,UACC,OACC;AAAA,YAAC,aAAAA;AAAA,YAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,4EACC;AAAA,wDAAC,QAAG,WAAU,oCACX,8BAAI,YAAa,GACpB;AAAA,YACA,4CAAC,OAAE,WAAU,iCACV;AAAA,kBACD;AAAA,gBACC;AAAA,cACD;AAAA,cACA;AAAA,gBACC,GACC;AAAA,kBAAC;AAAA;AAAA,oBACA,UAAO;AAAA,sBACN;AAAA,oBACD;AAAA;AAAA,gBACD;AAAA,cAEF;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
|
|
6
6
|
"names": ["editPostStore", "WelcomeGuideImage"]
|
|
7
7
|
}
|
|
@@ -15,6 +15,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/edit-post/src/components/welcome-guide/image.js
|
|
18
20
|
var image_exports = {};
|
|
19
21
|
__export(image_exports, {
|
|
20
22
|
default: () => WelcomeGuideImage
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/welcome-guide/image.js"],
|
|
4
4
|
"sourcesContent": ["export default function WelcomeGuideImage( { nonAnimatedSrc, animatedSrc } ) {\n\treturn (\n\t\t<picture className=\"edit-post-welcome-guide__image\">\n\t\t\t<source\n\t\t\t\tsrcSet={ nonAnimatedSrc }\n\t\t\t\tmedia=\"(prefers-reduced-motion: reduce)\"\n\t\t\t/>\n\t\t\t<img src={ animatedSrc } width=\"312\" height=\"240\" alt=\"\" />\n\t\t</picture>\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEE;AAFa,SAAR,kBAAoC,EAAE,gBAAgB,YAAY,GAAI;AAC5E,SACC,6CAAC,aAAQ,WAAU,kCAClB;AAAA;AAAA,MAAC;AAAA;AAAA,QACA,QAAS;AAAA,QACT,OAAM;AAAA;AAAA,IACP;AAAA,IACA,4CAAC,SAAI,KAAM,aAAc,OAAM,OAAM,QAAO,OAAM,KAAI,IAAG;AAAA,KAC1D;AAEF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -25,16 +25,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/welcome-guide/index.js
|
|
28
30
|
var welcome_guide_exports = {};
|
|
29
31
|
__export(welcome_guide_exports, {
|
|
30
32
|
default: () => WelcomeGuide
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(welcome_guide_exports);
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_data = require("@wordpress/data");
|
|
35
36
|
var import_default = __toESM(require("./default"));
|
|
36
37
|
var import_template = __toESM(require("./template"));
|
|
37
38
|
var import_store = require("../../store");
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
40
|
function WelcomeGuide({ postType }) {
|
|
39
41
|
const { isActive, isEditingTemplate } = (0, import_data.useSelect)(
|
|
40
42
|
(select) => {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/welcome-guide/index.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport WelcomeGuideDefault from './default';\nimport WelcomeGuideTemplate from './template';\nimport { store as editPostStore } from '../../store';\n\nexport default function WelcomeGuide( { postType } ) {\n\tconst { isActive, isEditingTemplate } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { isFeatureActive } = select( editPostStore );\n\t\t\tconst _isEditingTemplate = postType === 'wp_template';\n\t\t\tconst feature = _isEditingTemplate\n\t\t\t\t? 'welcomeGuideTemplate'\n\t\t\t\t: 'welcomeGuide';\n\n\t\t\treturn {\n\t\t\t\tisActive: isFeatureActive( feature ),\n\t\t\t\tisEditingTemplate: _isEditingTemplate,\n\t\t\t};\n\t\t},\n\t\t[ postType ]\n\t);\n\n\tif ( ! isActive ) {\n\t\treturn null;\n\t}\n\n\treturn isEditingTemplate ? (\n\t\t<WelcomeGuideTemplate />\n\t) : (\n\t\t<WelcomeGuideDefault />\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA0B;AAK1B,qBAAgC;AAChC,sBAAiC;AACjC,mBAAuC;AAwBrC;AAtBa,SAAR,aAA+B,EAAE,SAAS,GAAI;AACpD,QAAM,EAAE,UAAU,kBAAkB,QAAI;AAAA,IACvC,CAAE,WAAY;AACb,YAAM,EAAE,gBAAgB,IAAI,OAAQ,aAAAA,KAAc;AAClD,YAAM,qBAAqB,aAAa;AACxC,YAAM,UAAU,qBACb,yBACA;AAEH,aAAO;AAAA,QACN,UAAU,gBAAiB,OAAQ;AAAA,QACnC,mBAAmB;AAAA,MACpB;AAAA,IACD;AAAA,IACA,CAAE,QAAS;AAAA,EACZ;AAEA,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAEA,SAAO,oBACN,4CAAC,gBAAAC,SAAA,EAAqB,IAEtB,4CAAC,eAAAC,SAAA,EAAoB;AAEvB;",
|
|
6
6
|
"names": ["editPostStore", "WelcomeGuideTemplate", "WelcomeGuideDefault"]
|
|
7
7
|
}
|
|
@@ -25,17 +25,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/components/welcome-guide/template.js
|
|
28
30
|
var template_exports = {};
|
|
29
31
|
__export(template_exports, {
|
|
30
32
|
default: () => WelcomeGuideTemplate
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(template_exports);
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_data = require("@wordpress/data");
|
|
35
36
|
var import_components = require("@wordpress/components");
|
|
36
37
|
var import_i18n = require("@wordpress/i18n");
|
|
37
38
|
var import_image = __toESM(require("./image"));
|
|
38
39
|
var import_store = require("../../store");
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
41
|
function WelcomeGuideTemplate() {
|
|
40
42
|
const { toggleFeature } = (0, import_data.useDispatch)(import_store.store);
|
|
41
43
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/welcome-guide/template.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch } from '@wordpress/data';\nimport { Guide } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport WelcomeGuideImage from './image';\nimport { store as editPostStore } from '../../store';\n\nexport default function WelcomeGuideTemplate() {\n\tconst { toggleFeature } = useDispatch( editPostStore );\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"edit-template-welcome-guide\"\n\t\t\tcontentLabel={ __( 'Welcome to the template editor' ) }\n\t\t\tfinishButtonText={ __( 'Get started' ) }\n\t\t\tonFinish={ () => toggleFeature( 'welcomeGuideTemplate' ) }\n\t\t\tpages={ [\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-template-editor.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-template-editor.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Welcome to the template editor' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t] }\n\t\t/>\n\t);\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA4B;AAC5B,wBAAsB;AACtB,kBAAmB;AAKnB,mBAA8B;AAC9B,mBAAuC;AAcjC;AAZS,SAAR,uBAAwC;AAC9C,QAAM,EAAE,cAAc,QAAI,yBAAa,aAAAA,KAAc;AAErD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,kBAAe,gBAAI,gCAAiC;AAAA,MACpD,sBAAmB,gBAAI,aAAc;AAAA,MACrC,UAAW,MAAM,cAAe,sBAAuB;AAAA,MACvD,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC,aAAAC;AAAA,YAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,4EACC;AAAA,wDAAC,QAAG,WAAU,oCACX,8BAAI,gCAAiC,GACxC;AAAA,YACA,4CAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
|
|
6
6
|
"names": ["editPostStore", "WelcomeGuideImage"]
|
|
7
7
|
}
|
package/build/deprecated.js
CHANGED
|
@@ -25,6 +25,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/edit-post/src/deprecated.js
|
|
28
30
|
var deprecated_exports = {};
|
|
29
31
|
__export(deprecated_exports, {
|
|
30
32
|
PluginBlockSettingsMenuItem: () => PluginBlockSettingsMenuItem,
|
|
@@ -38,16 +40,16 @@ __export(deprecated_exports, {
|
|
|
38
40
|
__experimentalPluginPostExcerpt: () => __experimentalPluginPostExcerpt
|
|
39
41
|
});
|
|
40
42
|
module.exports = __toCommonJS(deprecated_exports);
|
|
41
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
43
|
var import_editor = require("@wordpress/editor");
|
|
43
44
|
var import_url = require("@wordpress/url");
|
|
44
45
|
var import_deprecated = __toESM(require("@wordpress/deprecated"));
|
|
45
46
|
var import_lock_unlock = require("./lock-unlock");
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
48
|
+
var { PluginPostExcerpt } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
|
|
49
|
+
var isSiteEditor = (0, import_url.getPath)(window.location.href)?.includes(
|
|
48
50
|
"site-editor.php"
|
|
49
51
|
);
|
|
50
|
-
|
|
52
|
+
var deprecateSlot = (name) => {
|
|
51
53
|
(0, import_deprecated.default)(`wp.editPost.${name}`, {
|
|
52
54
|
since: "6.6",
|
|
53
55
|
alternative: `wp.editor.${name}`
|
package/build/deprecated.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/deprecated.js"],
|
|
4
4
|
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport {\n\tprivateApis as editorPrivateApis,\n\tPluginBlockSettingsMenuItem as EditorPluginBlockSettingsMenuItem,\n\tPluginDocumentSettingPanel as EditorPluginDocumentSettingPanel,\n\tPluginMoreMenuItem as EditorPluginMoreMenuItem,\n\tPluginPrePublishPanel as EditorPluginPrePublishPanel,\n\tPluginPostPublishPanel as EditorPluginPostPublishPanel,\n\tPluginPostStatusInfo as EditorPluginPostStatusInfo,\n\tPluginSidebar as EditorPluginSidebar,\n\tPluginSidebarMoreMenuItem as EditorPluginSidebarMoreMenuItem,\n} from '@wordpress/editor';\nimport { getPath } from '@wordpress/url';\nimport deprecated from '@wordpress/deprecated';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from './lock-unlock';\nconst { PluginPostExcerpt } = unlock( editorPrivateApis );\n\nconst isSiteEditor = getPath( window.location.href )?.includes(\n\t'site-editor.php'\n);\n\nconst deprecateSlot = ( name ) => {\n\tdeprecated( `wp.editPost.${ name }`, {\n\t\tsince: '6.6',\n\t\talternative: `wp.editor.${ name }`,\n\t} );\n};\n\n/* eslint-disable jsdoc/require-param */\n/**\n * @see PluginBlockSettingsMenuItem in @wordpress/editor package.\n */\nexport function PluginBlockSettingsMenuItem( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginBlockSettingsMenuItem' );\n\treturn <EditorPluginBlockSettingsMenuItem { ...props } />;\n}\n\n/**\n * @see PluginDocumentSettingPanel in @wordpress/editor package.\n */\nexport function PluginDocumentSettingPanel( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginDocumentSettingPanel' );\n\treturn <EditorPluginDocumentSettingPanel { ...props } />;\n}\n\n/**\n * @see PluginMoreMenuItem in @wordpress/editor package.\n */\nexport function PluginMoreMenuItem( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginMoreMenuItem' );\n\treturn <EditorPluginMoreMenuItem { ...props } />;\n}\n\n/**\n * @see PluginPrePublishPanel in @wordpress/editor package.\n */\nexport function PluginPrePublishPanel( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginPrePublishPanel' );\n\treturn <EditorPluginPrePublishPanel { ...props } />;\n}\n\n/**\n * @see PluginPostPublishPanel in @wordpress/editor package.\n */\nexport function PluginPostPublishPanel( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginPostPublishPanel' );\n\treturn <EditorPluginPostPublishPanel { ...props } />;\n}\n\n/**\n * @see PluginPostStatusInfo in @wordpress/editor package.\n */\nexport function PluginPostStatusInfo( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginPostStatusInfo' );\n\treturn <EditorPluginPostStatusInfo { ...props } />;\n}\n\n/**\n * @see PluginSidebar in @wordpress/editor package.\n */\nexport function PluginSidebar( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginSidebar' );\n\treturn <EditorPluginSidebar { ...props } />;\n}\n\n/**\n * @see PluginSidebarMoreMenuItem in @wordpress/editor package.\n */\nexport function PluginSidebarMoreMenuItem( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginSidebarMoreMenuItem' );\n\treturn <EditorPluginSidebarMoreMenuItem { ...props } />;\n}\n\n/**\n * @see PluginPostExcerpt in @wordpress/editor package.\n */\nexport function __experimentalPluginPostExcerpt() {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecated( 'wp.editPost.__experimentalPluginPostExcerpt', {\n\t\tsince: '6.6',\n\t\thint: 'Core and custom panels can be access programmatically using their panel name.',\n\t\tlink: 'https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically',\n\t} );\n\treturn PluginPostExcerpt;\n}\n\n/* eslint-enable jsdoc/require-param */\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAUO;AACP,iBAAwB;AACxB,wBAAuB;AAKvB,yBAAuB;AAuBf;AAtBR,IAAM,EAAE,kBAAkB,QAAI,2BAAQ,cAAAA,WAAkB;AAExD,IAAM,mBAAe,oBAAS,OAAO,SAAS,IAAK,GAAG;AAAA,EACrD;AACD;AAEA,IAAM,gBAAgB,CAAE,SAAU;AACjC,wBAAAC,SAAY,eAAgB,IAAK,IAAI;AAAA,IACpC,OAAO;AAAA,IACP,aAAa,aAAc,IAAK;AAAA,EACjC,CAAE;AACH;AAMO,SAAS,4BAA6B,OAAQ;AACpD,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,6BAA8B;AAC7C,SAAO,4CAAC,cAAAC,6BAAA,EAAoC,GAAG,OAAQ;AACxD;AAKO,SAAS,2BAA4B,OAAQ;AACnD,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,4BAA6B;AAC5C,SAAO,4CAAC,cAAAC,4BAAA,EAAmC,GAAG,OAAQ;AACvD;AAKO,SAAS,mBAAoB,OAAQ;AAC3C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,oBAAqB;AACpC,SAAO,4CAAC,cAAAC,oBAAA,EAA2B,GAAG,OAAQ;AAC/C;AAKO,SAAS,sBAAuB,OAAQ;AAC9C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,uBAAwB;AACvC,SAAO,4CAAC,cAAAC,uBAAA,EAA8B,GAAG,OAAQ;AAClD;AAKO,SAAS,uBAAwB,OAAQ;AAC/C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,wBAAyB;AACxC,SAAO,4CAAC,cAAAC,wBAAA,EAA+B,GAAG,OAAQ;AACnD;AAKO,SAAS,qBAAsB,OAAQ;AAC7C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,sBAAuB;AACtC,SAAO,4CAAC,cAAAC,sBAAA,EAA6B,GAAG,OAAQ;AACjD;AAKO,SAAS,cAAe,OAAQ;AACtC,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,eAAgB;AAC/B,SAAO,4CAAC,cAAAC,eAAA,EAAsB,GAAG,OAAQ;AAC1C;AAKO,SAAS,0BAA2B,OAAQ;AAClD,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,2BAA4B;AAC3C,SAAO,4CAAC,cAAAC,2BAAA,EAAkC,GAAG,OAAQ;AACtD;AAKO,SAAS,kCAAkC;AACjD,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,wBAAAR,SAAY,+CAA+C;AAAA,IAC1D,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,EACP,CAAE;AACF,SAAO;AACR;",
|
|
6
6
|
"names": ["editorPrivateApis", "deprecated", "EditorPluginBlockSettingsMenuItem", "EditorPluginDocumentSettingPanel", "EditorPluginMoreMenuItem", "EditorPluginPrePublishPanel", "EditorPluginPostPublishPanel", "EditorPluginPostStatusInfo", "EditorPluginSidebar", "EditorPluginSidebarMoreMenuItem"]
|
|
7
7
|
}
|