@wordpress/edit-post 8.32.0 → 8.32.1-next.ff1cebbba.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/build/commands/use-commands.js +54 -47
- package/build/commands/use-commands.js.map +7 -1
- package/build/components/back-button/fullscreen-mode-close.js +127 -118
- package/build/components/back-button/fullscreen-mode-close.js.map +7 -1
- package/build/components/back-button/index.js +56 -54
- package/build/components/back-button/index.js.map +7 -1
- package/build/components/browser-url/index.js +45 -44
- package/build/components/browser-url/index.js.map +7 -1
- package/build/components/editor-initialization/index.js +24 -18
- package/build/components/editor-initialization/index.js.map +7 -1
- package/build/components/editor-initialization/listener-hooks.js +42 -43
- package/build/components/editor-initialization/listener-hooks.js.map +7 -1
- package/build/components/init-pattern-modal/index.js +100 -79
- package/build/components/init-pattern-modal/index.js.map +7 -1
- package/build/components/keyboard-shortcuts/index.js +37 -33
- package/build/components/keyboard-shortcuts/index.js.map +7 -1
- package/build/components/layout/index.js +447 -467
- package/build/components/layout/index.js.map +7 -1
- package/build/components/layout/use-padding-appender.js +66 -59
- package/build/components/layout/use-padding-appender.js.map +7 -1
- package/build/components/layout/use-should-iframe.js +36 -30
- package/build/components/layout/use-should-iframe.js.map +7 -1
- package/build/components/meta-boxes/index.js +46 -33
- package/build/components/meta-boxes/index.js.map +7 -1
- package/build/components/meta-boxes/meta-box-visibility.js +37 -22
- package/build/components/meta-boxes/meta-box-visibility.js.map +7 -1
- package/build/components/meta-boxes/meta-boxes-area/index.js +62 -53
- package/build/components/meta-boxes/meta-boxes-area/index.js.map +7 -1
- package/build/components/meta-boxes/use-meta-box-initialization.js +37 -32
- package/build/components/meta-boxes/use-meta-box-initialization.js.map +7 -1
- package/build/components/more-menu/index.js +64 -44
- package/build/components/more-menu/index.js.map +7 -1
- package/build/components/more-menu/manage-patterns-menu-item.js +39 -37
- package/build/components/more-menu/manage-patterns-menu-item.js.map +7 -1
- package/build/components/more-menu/welcome-guide-menu-item.js +39 -21
- package/build/components/more-menu/welcome-guide-menu-item.js.map +7 -1
- package/build/components/preferences-modal/enable-custom-fields.js +76 -66
- package/build/components/preferences-modal/enable-custom-fields.js.map +7 -1
- package/build/components/preferences-modal/enable-panel.js +47 -43
- package/build/components/preferences-modal/enable-panel.js.map +7 -1
- package/build/components/preferences-modal/index.js +51 -39
- package/build/components/preferences-modal/index.js.map +7 -1
- package/build/components/preferences-modal/meta-boxes-section.js +65 -52
- package/build/components/preferences-modal/meta-boxes-section.js.map +7 -1
- package/build/components/welcome-guide/default.js +134 -97
- package/build/components/welcome-guide/default.js.map +7 -1
- package/build/components/welcome-guide/image.js +34 -23
- package/build/components/welcome-guide/image.js.map +7 -1
- package/build/components/welcome-guide/index.js +51 -38
- package/build/components/welcome-guide/index.js.map +7 -1
- package/build/components/welcome-guide/template.js +65 -45
- package/build/components/welcome-guide/template.js.map +7 -1
- package/build/deprecated.js +84 -110
- package/build/deprecated.js.map +7 -1
- package/build/hooks/use-navigate-to-entity-record.js +60 -78
- package/build/hooks/use-navigate-to-entity-record.js.map +7 -1
- package/build/index.js +101 -136
- package/build/index.js.map +7 -1
- package/build/lock-unlock.js +31 -15
- package/build/lock-unlock.js.map +7 -1
- package/build/store/actions.js +239 -431
- package/build/store/actions.js.map +7 -1
- package/build/store/constants.js +33 -26
- package/build/store/constants.js.map +7 -1
- package/build/store/index.js +44 -32
- package/build/store/index.js.map +7 -1
- package/build/store/reducer.js +50 -57
- package/build/store/reducer.js.map +7 -1
- package/build/store/selectors.js +288 -459
- package/build/store/selectors.js.map +7 -1
- package/build/utils/meta-boxes.js +31 -19
- package/build/utils/meta-boxes.js.map +7 -1
- package/build-module/commands/use-commands.js +35 -40
- package/build-module/commands/use-commands.js.map +7 -1
- package/build-module/components/back-button/fullscreen-mode-close.js +102 -110
- package/build-module/components/back-button/fullscreen-mode-close.js.map +7 -1
- package/build-module/components/back-button/index.js +28 -47
- package/build-module/components/back-button/index.js.map +7 -1
- package/build-module/components/browser-url/index.js +23 -38
- package/build-module/components/browser-url/index.js.map +7 -1
- package/build-module/components/editor-initialization/index.js +6 -13
- package/build-module/components/editor-initialization/index.js.map +7 -1
- package/build-module/components/editor-initialization/listener-hooks.js +20 -34
- package/build-module/components/editor-initialization/listener-hooks.js.map +7 -1
- package/build-module/components/init-pattern-modal/index.js +90 -74
- package/build-module/components/init-pattern-modal/index.js.map +7 -1
- package/build-module/components/keyboard-shortcuts/index.js +21 -26
- package/build-module/components/keyboard-shortcuts/index.js.map +7 -1
- package/build-module/components/layout/index.js +439 -448
- package/build-module/components/layout/index.js.map +7 -1
- package/build-module/components/layout/use-padding-appender.js +44 -54
- package/build-module/components/layout/use-padding-appender.js.map +7 -1
- package/build-module/components/layout/use-should-iframe.js +15 -25
- package/build-module/components/layout/use-should-iframe.js.map +7 -1
- package/build-module/components/meta-boxes/index.js +18 -26
- package/build-module/components/meta-boxes/index.js.map +7 -1
- package/build-module/components/meta-boxes/meta-box-visibility.js +18 -15
- package/build-module/components/meta-boxes/meta-box-visibility.js.map +7 -1
- package/build-module/components/meta-boxes/meta-boxes-area/index.js +30 -44
- package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +7 -1
- package/build-module/components/meta-boxes/use-meta-box-initialization.js +14 -25
- package/build-module/components/meta-boxes/use-meta-box-initialization.js.map +7 -1
- package/build-module/components/more-menu/index.js +36 -37
- package/build-module/components/more-menu/index.js.map +7 -1
- package/build-module/components/more-menu/manage-patterns-menu-item.js +21 -31
- package/build-module/components/more-menu/manage-patterns-menu-item.js.map +7 -1
- package/build-module/components/more-menu/welcome-guide-menu-item.js +22 -16
- package/build-module/components/more-menu/welcome-guide-menu-item.js.map +7 -1
- package/build-module/components/preferences-modal/enable-custom-fields.js +51 -56
- package/build-module/components/preferences-modal/enable-custom-fields.js.map +7 -1
- package/build-module/components/preferences-modal/enable-panel.js +30 -38
- package/build-module/components/preferences-modal/enable-panel.js.map +7 -1
- package/build-module/components/preferences-modal/index.js +24 -34
- package/build-module/components/preferences-modal/index.js.map +7 -1
- package/build-module/components/preferences-modal/meta-boxes-section.js +34 -45
- package/build-module/components/preferences-modal/meta-boxes-section.js.map +7 -1
- package/build-module/components/welcome-guide/default.js +107 -91
- package/build-module/components/welcome-guide/default.js.map +7 -1
- package/build-module/components/welcome-guide/image.js +16 -18
- package/build-module/components/welcome-guide/image.js.map +7 -1
- package/build-module/components/welcome-guide/index.js +23 -31
- package/build-module/components/welcome-guide/index.js.map +7 -1
- package/build-module/components/welcome-guide/template.js +38 -39
- package/build-module/components/welcome-guide/template.js.map +7 -1
- package/build-module/deprecated.js +62 -103
- package/build-module/deprecated.js.map +7 -1
- package/build-module/hooks/use-navigate-to-entity-record.js +42 -73
- package/build-module/hooks/use-navigate-to-entity-record.js.map +7 -1
- package/build-module/index.js +70 -95
- package/build-module/index.js.map +7 -1
- package/build-module/lock-unlock.js +8 -7
- package/build-module/lock-unlock.js.map +7 -1
- package/build-module/store/actions.js +158 -368
- package/build-module/store/actions.js.map +7 -1
- package/build-module/store/constants.js +9 -21
- package/build-module/store/constants.js.map +7 -1
- package/build-module/store/index.js +10 -22
- package/build-module/store/index.js.map +7 -1
- package/build-module/store/reducer.js +28 -51
- package/build-module/store/reducer.js.map +7 -1
- package/build-module/store/selectors.js +232 -442
- package/build-module/store/selectors.js.map +7 -1
- package/build-module/utils/meta-boxes.js +9 -13
- package/build-module/utils/meta-boxes.js.map +7 -1
- package/build-style/classic-rtl.css +0 -154
- package/build-style/classic.css +0 -154
- package/build-style/style-rtl.css +135 -110
- package/build-style/style.css +135 -110
- package/package.json +39 -31
- package/src/classic.scss +3 -0
- package/src/components/back-button/style.scss +3 -0
- package/src/components/layout/index.js +3 -2
- package/src/components/layout/style.scss +4 -0
- package/src/components/meta-boxes/meta-boxes-area/style.scss +3 -0
- package/src/components/welcome-guide/style.scss +3 -0
- package/src/style.scss +8 -4
- package/build/components/header/header-toolbar/index.native.js +0 -204
- package/build/components/header/header-toolbar/index.native.js.map +0 -1
- package/build/components/header/index.native.js +0 -59
- package/build/components/header/index.native.js.map +0 -1
- package/build/components/layout/index.native.js +0 -166
- package/build/components/layout/index.native.js.map +0 -1
- package/build/components/visual-editor/header.native.js +0 -63
- package/build/components/visual-editor/header.native.js.map +0 -1
- package/build/components/visual-editor/index.native.js +0 -44
- package/build/components/visual-editor/index.native.js.map +0 -1
- package/build/editor.native.js +0 -157
- package/build/editor.native.js.map +0 -1
- package/build/index.native.js +0 -58
- package/build/index.native.js.map +0 -1
- package/build-module/components/header/header-toolbar/index.native.js +0 -196
- package/build-module/components/header/header-toolbar/index.native.js.map +0 -1
- package/build-module/components/header/index.native.js +0 -50
- package/build-module/components/header/index.native.js.map +0 -1
- package/build-module/components/layout/index.native.js +0 -158
- package/build-module/components/layout/index.native.js.map +0 -1
- package/build-module/components/visual-editor/header.native.js +0 -56
- package/build-module/components/visual-editor/header.native.js.map +0 -1
- package/build-module/components/visual-editor/index.native.js +0 -35
- package/build-module/components/visual-editor/index.native.js.map +0 -1
- package/build-module/editor.native.js +0 -149
- package/build-module/editor.native.js.map +0 -1
- package/build-module/index.native.js +0 -45
- package/build-module/index.native.js.map +0 -1
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/welcome-guide/template.js"],
|
|
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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBM;AAtBN,kBAA4B;AAC5B,wBAAsB;AACtB,kBAAmB;AAKnB,mBAA8B;AAC9B,mBAAuC;AAExB,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
|
+
"names": ["editPostStore", "WelcomeGuideImage"]
|
|
7
|
+
}
|
package/build/deprecated.js
CHANGED
|
@@ -1,161 +1,135 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
Object.
|
|
5
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var deprecated_exports = {};
|
|
29
|
+
__export(deprecated_exports, {
|
|
30
|
+
PluginBlockSettingsMenuItem: () => PluginBlockSettingsMenuItem,
|
|
31
|
+
PluginDocumentSettingPanel: () => PluginDocumentSettingPanel,
|
|
32
|
+
PluginMoreMenuItem: () => PluginMoreMenuItem,
|
|
33
|
+
PluginPostPublishPanel: () => PluginPostPublishPanel,
|
|
34
|
+
PluginPostStatusInfo: () => PluginPostStatusInfo,
|
|
35
|
+
PluginPrePublishPanel: () => PluginPrePublishPanel,
|
|
36
|
+
PluginSidebar: () => PluginSidebar,
|
|
37
|
+
PluginSidebarMoreMenuItem: () => PluginSidebarMoreMenuItem,
|
|
38
|
+
__experimentalPluginPostExcerpt: () => __experimentalPluginPostExcerpt
|
|
6
39
|
});
|
|
7
|
-
exports
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
/**
|
|
22
|
-
* WordPress dependencies
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Internal dependencies
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
const {
|
|
30
|
-
PluginPostExcerpt
|
|
31
|
-
} = (0, _lockUnlock.unlock)(_editor.privateApis);
|
|
32
|
-
const isSiteEditor = (0, _url.getPath)(window.location.href)?.includes('site-editor.php');
|
|
33
|
-
const deprecateSlot = name => {
|
|
34
|
-
(0, _deprecated.default)(`wp.editPost.${name}`, {
|
|
35
|
-
since: '6.6',
|
|
40
|
+
module.exports = __toCommonJS(deprecated_exports);
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var import_editor = require("@wordpress/editor");
|
|
43
|
+
var import_url = require("@wordpress/url");
|
|
44
|
+
var import_deprecated = __toESM(require("@wordpress/deprecated"));
|
|
45
|
+
var import_lock_unlock = require("./lock-unlock");
|
|
46
|
+
const { PluginPostExcerpt } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
|
|
47
|
+
const isSiteEditor = (0, import_url.getPath)(window.location.href)?.includes(
|
|
48
|
+
"site-editor.php"
|
|
49
|
+
);
|
|
50
|
+
const deprecateSlot = (name) => {
|
|
51
|
+
(0, import_deprecated.default)(`wp.editPost.${name}`, {
|
|
52
|
+
since: "6.6",
|
|
36
53
|
alternative: `wp.editor.${name}`
|
|
37
54
|
});
|
|
38
55
|
};
|
|
39
|
-
|
|
40
|
-
/* eslint-disable jsdoc/require-param */
|
|
41
|
-
/**
|
|
42
|
-
* @see PluginBlockSettingsMenuItem in @wordpress/editor package.
|
|
43
|
-
*/
|
|
44
56
|
function PluginBlockSettingsMenuItem(props) {
|
|
45
57
|
if (isSiteEditor) {
|
|
46
58
|
return null;
|
|
47
59
|
}
|
|
48
|
-
deprecateSlot(
|
|
49
|
-
return
|
|
50
|
-
...props
|
|
51
|
-
});
|
|
60
|
+
deprecateSlot("PluginBlockSettingsMenuItem");
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginBlockSettingsMenuItem, { ...props });
|
|
52
62
|
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @see PluginDocumentSettingPanel in @wordpress/editor package.
|
|
56
|
-
*/
|
|
57
63
|
function PluginDocumentSettingPanel(props) {
|
|
58
64
|
if (isSiteEditor) {
|
|
59
65
|
return null;
|
|
60
66
|
}
|
|
61
|
-
deprecateSlot(
|
|
62
|
-
return
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
67
|
+
deprecateSlot("PluginDocumentSettingPanel");
|
|
68
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginDocumentSettingPanel, { ...props });
|
|
65
69
|
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @see PluginMoreMenuItem in @wordpress/editor package.
|
|
69
|
-
*/
|
|
70
70
|
function PluginMoreMenuItem(props) {
|
|
71
71
|
if (isSiteEditor) {
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
|
-
deprecateSlot(
|
|
75
|
-
return
|
|
76
|
-
...props
|
|
77
|
-
});
|
|
74
|
+
deprecateSlot("PluginMoreMenuItem");
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginMoreMenuItem, { ...props });
|
|
78
76
|
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @see PluginPrePublishPanel in @wordpress/editor package.
|
|
82
|
-
*/
|
|
83
77
|
function PluginPrePublishPanel(props) {
|
|
84
78
|
if (isSiteEditor) {
|
|
85
79
|
return null;
|
|
86
80
|
}
|
|
87
|
-
deprecateSlot(
|
|
88
|
-
return
|
|
89
|
-
...props
|
|
90
|
-
});
|
|
81
|
+
deprecateSlot("PluginPrePublishPanel");
|
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginPrePublishPanel, { ...props });
|
|
91
83
|
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @see PluginPostPublishPanel in @wordpress/editor package.
|
|
95
|
-
*/
|
|
96
84
|
function PluginPostPublishPanel(props) {
|
|
97
85
|
if (isSiteEditor) {
|
|
98
86
|
return null;
|
|
99
87
|
}
|
|
100
|
-
deprecateSlot(
|
|
101
|
-
return
|
|
102
|
-
...props
|
|
103
|
-
});
|
|
88
|
+
deprecateSlot("PluginPostPublishPanel");
|
|
89
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginPostPublishPanel, { ...props });
|
|
104
90
|
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @see PluginPostStatusInfo in @wordpress/editor package.
|
|
108
|
-
*/
|
|
109
91
|
function PluginPostStatusInfo(props) {
|
|
110
92
|
if (isSiteEditor) {
|
|
111
93
|
return null;
|
|
112
94
|
}
|
|
113
|
-
deprecateSlot(
|
|
114
|
-
return
|
|
115
|
-
...props
|
|
116
|
-
});
|
|
95
|
+
deprecateSlot("PluginPostStatusInfo");
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginPostStatusInfo, { ...props });
|
|
117
97
|
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @see PluginSidebar in @wordpress/editor package.
|
|
121
|
-
*/
|
|
122
98
|
function PluginSidebar(props) {
|
|
123
99
|
if (isSiteEditor) {
|
|
124
100
|
return null;
|
|
125
101
|
}
|
|
126
|
-
deprecateSlot(
|
|
127
|
-
return
|
|
128
|
-
...props
|
|
129
|
-
});
|
|
102
|
+
deprecateSlot("PluginSidebar");
|
|
103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginSidebar, { ...props });
|
|
130
104
|
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @see PluginSidebarMoreMenuItem in @wordpress/editor package.
|
|
134
|
-
*/
|
|
135
105
|
function PluginSidebarMoreMenuItem(props) {
|
|
136
106
|
if (isSiteEditor) {
|
|
137
107
|
return null;
|
|
138
108
|
}
|
|
139
|
-
deprecateSlot(
|
|
140
|
-
return
|
|
141
|
-
...props
|
|
142
|
-
});
|
|
109
|
+
deprecateSlot("PluginSidebarMoreMenuItem");
|
|
110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.PluginSidebarMoreMenuItem, { ...props });
|
|
143
111
|
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @see PluginPostExcerpt in @wordpress/editor package.
|
|
147
|
-
*/
|
|
148
112
|
function __experimentalPluginPostExcerpt() {
|
|
149
113
|
if (isSiteEditor) {
|
|
150
114
|
return null;
|
|
151
115
|
}
|
|
152
|
-
(0,
|
|
153
|
-
since:
|
|
154
|
-
hint:
|
|
155
|
-
link:
|
|
116
|
+
(0, import_deprecated.default)("wp.editPost.__experimentalPluginPostExcerpt", {
|
|
117
|
+
since: "6.6",
|
|
118
|
+
hint: "Core and custom panels can be access programmatically using their panel name.",
|
|
119
|
+
link: "https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically"
|
|
156
120
|
});
|
|
157
121
|
return PluginPostExcerpt;
|
|
158
122
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
123
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
124
|
+
0 && (module.exports = {
|
|
125
|
+
PluginBlockSettingsMenuItem,
|
|
126
|
+
PluginDocumentSettingPanel,
|
|
127
|
+
PluginMoreMenuItem,
|
|
128
|
+
PluginPostPublishPanel,
|
|
129
|
+
PluginPostStatusInfo,
|
|
130
|
+
PluginPrePublishPanel,
|
|
131
|
+
PluginSidebar,
|
|
132
|
+
PluginSidebarMoreMenuItem,
|
|
133
|
+
__experimentalPluginPostExcerpt
|
|
134
|
+
});
|
|
135
|
+
//# sourceMappingURL=deprecated.js.map
|
package/build/deprecated.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/deprecated.js"],
|
|
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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2CQ;AAxCR,oBAUO;AACP,iBAAwB;AACxB,wBAAuB;AAKvB,yBAAuB;AACvB,MAAM,EAAE,kBAAkB,QAAI,2BAAQ,cAAAA,WAAkB;AAExD,MAAM,mBAAe,oBAAS,OAAO,SAAS,IAAK,GA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,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
|
+
"names": ["editorPrivateApis", "deprecated", "EditorPluginBlockSettingsMenuItem", "EditorPluginDocumentSettingPanel", "EditorPluginMoreMenuItem", "EditorPluginPrePublishPanel", "EditorPluginPostPublishPanel", "EditorPluginPostStatusInfo", "EditorPluginSidebar", "EditorPluginSidebarMoreMenuItem"]
|
|
7
|
+
}
|
|
@@ -1,82 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var use_navigate_to_entity_record_exports = {};
|
|
19
|
+
__export(use_navigate_to_entity_record_exports, {
|
|
20
|
+
default: () => useNavigateToEntityRecord
|
|
5
21
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
/**
|
|
11
|
-
* WordPress dependencies
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* A hook that records the 'entity' history in the post editor as a user
|
|
16
|
-
* navigates between editing a post and editing the post template or patterns.
|
|
17
|
-
*
|
|
18
|
-
* Implemented as a stack, so a little similar to the browser history API.
|
|
19
|
-
*
|
|
20
|
-
* Used to control displaying UI elements like the back button.
|
|
21
|
-
*
|
|
22
|
-
* @param {number} initialPostId The post id of the post when the editor loaded.
|
|
23
|
-
* @param {string} initialPostType The post type of the post when the editor loaded.
|
|
24
|
-
* @param {string} defaultRenderingMode The rendering mode to switch to when navigating.
|
|
25
|
-
*
|
|
26
|
-
* @return {Object} An object containing the `currentPost` variable and
|
|
27
|
-
* `onNavigateToEntityRecord` and `onNavigateToPreviousEntityRecord` functions.
|
|
28
|
-
*/
|
|
22
|
+
module.exports = __toCommonJS(use_navigate_to_entity_record_exports);
|
|
23
|
+
var import_element = require("@wordpress/element");
|
|
24
|
+
var import_data = require("@wordpress/data");
|
|
25
|
+
var import_editor = require("@wordpress/editor");
|
|
29
26
|
function useNavigateToEntityRecord(initialPostId, initialPostType, defaultRenderingMode) {
|
|
30
|
-
const [postHistory, dispatch] = (0,
|
|
31
|
-
type,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}) => {
|
|
35
|
-
if (type === 'push') {
|
|
36
|
-
return [...historyState, {
|
|
37
|
-
post,
|
|
38
|
-
previousRenderingMode
|
|
39
|
-
}];
|
|
40
|
-
}
|
|
41
|
-
if (type === 'pop') {
|
|
42
|
-
// Try to leave one item in the history.
|
|
43
|
-
if (historyState.length > 1) {
|
|
44
|
-
return historyState.slice(0, -1);
|
|
27
|
+
const [postHistory, dispatch] = (0, import_element.useReducer)(
|
|
28
|
+
(historyState, { type, post: post2, previousRenderingMode: previousRenderingMode2 }) => {
|
|
29
|
+
if (type === "push") {
|
|
30
|
+
return [...historyState, { post: post2, previousRenderingMode: previousRenderingMode2 }];
|
|
45
31
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} = (0,
|
|
61
|
-
const {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const onNavigateToPreviousEntityRecord = (0, _element.useCallback)(() => {
|
|
77
|
-
dispatch({
|
|
78
|
-
type: 'pop'
|
|
79
|
-
});
|
|
32
|
+
if (type === "pop") {
|
|
33
|
+
if (historyState.length > 1) {
|
|
34
|
+
return historyState.slice(0, -1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return historyState;
|
|
38
|
+
},
|
|
39
|
+
[
|
|
40
|
+
{
|
|
41
|
+
post: { postId: initialPostId, postType: initialPostType }
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
);
|
|
45
|
+
const { post, previousRenderingMode } = postHistory[postHistory.length - 1];
|
|
46
|
+
const { getRenderingMode } = (0, import_data.useSelect)(import_editor.store);
|
|
47
|
+
const { setRenderingMode } = (0, import_data.useDispatch)(import_editor.store);
|
|
48
|
+
const onNavigateToEntityRecord = (0, import_element.useCallback)(
|
|
49
|
+
(params) => {
|
|
50
|
+
dispatch({
|
|
51
|
+
type: "push",
|
|
52
|
+
post: { postId: params.postId, postType: params.postType },
|
|
53
|
+
// Save the current rendering mode so we can restore it when navigating back.
|
|
54
|
+
previousRenderingMode: getRenderingMode()
|
|
55
|
+
});
|
|
56
|
+
setRenderingMode(defaultRenderingMode);
|
|
57
|
+
},
|
|
58
|
+
[getRenderingMode, setRenderingMode, defaultRenderingMode]
|
|
59
|
+
);
|
|
60
|
+
const onNavigateToPreviousEntityRecord = (0, import_element.useCallback)(() => {
|
|
61
|
+
dispatch({ type: "pop" });
|
|
80
62
|
if (previousRenderingMode) {
|
|
81
63
|
setRenderingMode(previousRenderingMode);
|
|
82
64
|
}
|
|
@@ -84,7 +66,7 @@ function useNavigateToEntityRecord(initialPostId, initialPostType, defaultRender
|
|
|
84
66
|
return {
|
|
85
67
|
currentPost: post,
|
|
86
68
|
onNavigateToEntityRecord,
|
|
87
|
-
onNavigateToPreviousEntityRecord: postHistory.length > 1 ? onNavigateToPreviousEntityRecord :
|
|
69
|
+
onNavigateToPreviousEntityRecord: postHistory.length > 1 ? onNavigateToPreviousEntityRecord : void 0
|
|
88
70
|
};
|
|
89
71
|
}
|
|
90
|
-
//# sourceMappingURL=use-navigate-to-entity-record.js.map
|
|
72
|
+
//# sourceMappingURL=use-navigate-to-entity-record.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/hooks/use-navigate-to-entity-record.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useCallback, useReducer } from '@wordpress/element';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * A hook that records the 'entity' history in the post editor as a user\n * navigates between editing a post and editing the post template or patterns.\n *\n * Implemented as a stack, so a little similar to the browser history API.\n *\n * Used to control displaying UI elements like the back button.\n *\n * @param {number} initialPostId The post id of the post when the editor loaded.\n * @param {string} initialPostType The post type of the post when the editor loaded.\n * @param {string} defaultRenderingMode The rendering mode to switch to when navigating.\n *\n * @return {Object} An object containing the `currentPost` variable and\n * `onNavigateToEntityRecord` and `onNavigateToPreviousEntityRecord` functions.\n */\nexport default function useNavigateToEntityRecord(\n\tinitialPostId,\n\tinitialPostType,\n\tdefaultRenderingMode\n) {\n\tconst [ postHistory, dispatch ] = useReducer(\n\t\t( historyState, { type, post, previousRenderingMode } ) => {\n\t\t\tif ( type === 'push' ) {\n\t\t\t\treturn [ ...historyState, { post, previousRenderingMode } ];\n\t\t\t}\n\t\t\tif ( type === 'pop' ) {\n\t\t\t\t// Try to leave one item in the history.\n\t\t\t\tif ( historyState.length > 1 ) {\n\t\t\t\t\treturn historyState.slice( 0, -1 );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn historyState;\n\t\t},\n\t\t[\n\t\t\t{\n\t\t\t\tpost: { postId: initialPostId, postType: initialPostType },\n\t\t\t},\n\t\t]\n\t);\n\n\tconst { post, previousRenderingMode } =\n\t\tpostHistory[ postHistory.length - 1 ];\n\n\tconst { getRenderingMode } = useSelect( editorStore );\n\tconst { setRenderingMode } = useDispatch( editorStore );\n\n\tconst onNavigateToEntityRecord = useCallback(\n\t\t( params ) => {\n\t\t\tdispatch( {\n\t\t\t\ttype: 'push',\n\t\t\t\tpost: { postId: params.postId, postType: params.postType },\n\t\t\t\t// Save the current rendering mode so we can restore it when navigating back.\n\t\t\t\tpreviousRenderingMode: getRenderingMode(),\n\t\t\t} );\n\t\t\tsetRenderingMode( defaultRenderingMode );\n\t\t},\n\t\t[ getRenderingMode, setRenderingMode, defaultRenderingMode ]\n\t);\n\n\tconst onNavigateToPreviousEntityRecord = useCallback( () => {\n\t\tdispatch( { type: 'pop' } );\n\t\tif ( previousRenderingMode ) {\n\t\t\tsetRenderingMode( previousRenderingMode );\n\t\t}\n\t}, [ setRenderingMode, previousRenderingMode ] );\n\n\treturn {\n\t\tcurrentPost: post,\n\t\tonNavigateToEntityRecord,\n\t\tonNavigateToPreviousEntityRecord:\n\t\t\tpostHistory.length > 1\n\t\t\t\t? onNavigateToPreviousEntityRecord\n\t\t\t\t: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