@wordpress/editor 14.38.0 → 14.39.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/components/document-bar/useEditedSectionDetails.cjs +0 -3
- package/build/components/document-bar/useEditedSectionDetails.cjs.map +2 -2
- package/build/components/editor-interface/index.cjs +33 -9
- package/build/components/editor-interface/index.cjs.map +2 -2
- package/build/components/header/header-skeleton.cjs +100 -0
- package/build/components/header/header-skeleton.cjs.map +7 -0
- package/build/components/header/index.cjs +63 -106
- package/build/components/header/index.cjs.map +3 -3
- package/build/components/media/index.cjs +44 -0
- package/build/components/media/index.cjs.map +7 -0
- package/build/components/media/metadata-panel.cjs +96 -0
- package/build/components/media/metadata-panel.cjs.map +7 -0
- package/build/components/media/preview.cjs +39 -0
- package/build/components/media/preview.cjs.map +7 -0
- package/build/components/more-menu/index.cjs +3 -2
- package/build/components/more-menu/index.cjs.map +2 -2
- package/build/components/post-card-panel/index.cjs +33 -4
- package/build/components/post-card-panel/index.cjs.map +3 -3
- package/build/components/post-content-information/index.cjs +9 -0
- package/build/components/post-content-information/index.cjs.map +2 -2
- package/build/components/post-last-edited-panel/index.cjs +5 -6
- package/build/components/post-last-edited-panel/index.cjs.map +2 -2
- package/build/components/post-last-revision/index.cjs +5 -7
- package/build/components/post-last-revision/index.cjs.map +2 -2
- package/build/components/post-publish-button/label.cjs +6 -1
- package/build/components/post-publish-button/label.cjs.map +2 -2
- package/build/components/post-publish-button/post-publish-button-or-toggle.cjs +8 -3
- package/build/components/post-publish-button/post-publish-button-or-toggle.cjs.map +2 -2
- package/build/components/post-revisions-preview/index.cjs +44 -0
- package/build/components/post-revisions-preview/index.cjs.map +7 -0
- package/build/components/post-revisions-preview/revisions-canvas.cjs +82 -0
- package/build/components/post-revisions-preview/revisions-canvas.cjs.map +7 -0
- package/build/components/post-revisions-preview/revisions-header.cjs +119 -0
- package/build/components/post-revisions-preview/revisions-header.cjs.map +7 -0
- package/build/components/post-revisions-preview/revisions-slider.cjs +110 -0
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +7 -0
- package/build/components/post-saved-state/index.cjs +8 -2
- package/build/components/post-saved-state/index.cjs.map +2 -2
- package/build/components/post-title/index.cjs +5 -4
- package/build/components/post-title/index.cjs.map +2 -2
- package/build/components/provider/index.cjs +19 -0
- package/build/components/provider/index.cjs.map +3 -3
- package/build/components/provider/use-block-editor-settings.cjs +2 -1
- package/build/components/provider/use-block-editor-settings.cjs.map +2 -2
- package/build/components/revision-author-panel/index.cjs +59 -0
- package/build/components/revision-author-panel/index.cjs.map +7 -0
- package/build/components/revision-created-panel/index.cjs +47 -0
- package/build/components/revision-created-panel/index.cjs.map +7 -0
- package/build/components/sidebar/header.cjs +27 -12
- package/build/components/sidebar/header.cjs.map +3 -3
- package/build/components/sidebar/index.cjs +36 -15
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/sidebar/post-summary.cjs +44 -19
- package/build/components/sidebar/post-summary.cjs.map +3 -3
- package/build/components/start-page-options/index.cjs +1 -1
- package/build/components/start-page-options/index.cjs.map +2 -2
- package/build/dataviews/store/private-actions.cjs +47 -26
- package/build/dataviews/store/private-actions.cjs.map +3 -3
- package/build/store/constants.cjs +3 -0
- package/build/store/constants.cjs.map +2 -2
- package/build/store/private-actions.cjs +40 -0
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +33 -2
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +10 -0
- package/build/store/reducer.cjs.map +2 -2
- package/build/store/selectors.cjs +3 -0
- package/build/store/selectors.cjs.map +2 -2
- package/build/store/utils/notice-builder.cjs +4 -0
- package/build/store/utils/notice-builder.cjs.map +2 -2
- package/build-module/components/document-bar/useEditedSectionDetails.mjs +0 -3
- package/build-module/components/document-bar/useEditedSectionDetails.mjs.map +2 -2
- package/build-module/components/editor-interface/index.mjs +33 -9
- package/build-module/components/editor-interface/index.mjs.map +2 -2
- package/build-module/components/header/header-skeleton.mjs +69 -0
- package/build-module/components/header/header-skeleton.mjs.map +7 -0
- package/build-module/components/header/index.mjs +65 -107
- package/build-module/components/header/index.mjs.map +2 -2
- package/build-module/components/media/index.mjs +8 -0
- package/build-module/components/media/index.mjs.map +7 -0
- package/build-module/components/media/metadata-panel.mjs +65 -0
- package/build-module/components/media/metadata-panel.mjs.map +7 -0
- package/build-module/components/media/preview.mjs +21 -0
- package/build-module/components/media/preview.mjs.map +7 -0
- package/build-module/components/more-menu/index.mjs +3 -2
- package/build-module/components/more-menu/index.mjs.map +2 -2
- package/build-module/components/post-card-panel/index.mjs +35 -5
- package/build-module/components/post-card-panel/index.mjs.map +3 -3
- package/build-module/components/post-content-information/index.mjs +9 -0
- package/build-module/components/post-content-information/index.mjs.map +2 -2
- package/build-module/components/post-last-edited-panel/index.mjs +5 -6
- package/build-module/components/post-last-edited-panel/index.mjs.map +2 -2
- package/build-module/components/post-last-revision/index.mjs +6 -8
- package/build-module/components/post-last-revision/index.mjs.map +2 -2
- package/build-module/components/post-publish-button/label.mjs +6 -1
- package/build-module/components/post-publish-button/label.mjs.map +2 -2
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.mjs +8 -3
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/index.mjs +8 -0
- package/build-module/components/post-revisions-preview/index.mjs.map +7 -0
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs +54 -0
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +7 -0
- package/build-module/components/post-revisions-preview/revisions-header.mjs +92 -0
- package/build-module/components/post-revisions-preview/revisions-header.mjs.map +7 -0
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +89 -0
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +7 -0
- package/build-module/components/post-saved-state/index.mjs +8 -2
- package/build-module/components/post-saved-state/index.mjs.map +2 -2
- package/build-module/components/post-title/index.mjs +5 -4
- package/build-module/components/post-title/index.mjs.map +2 -2
- package/build-module/components/provider/index.mjs +19 -0
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/provider/use-block-editor-settings.mjs +2 -1
- package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
- package/build-module/components/revision-author-panel/index.mjs +28 -0
- package/build-module/components/revision-author-panel/index.mjs.map +7 -0
- package/build-module/components/revision-created-panel/index.mjs +26 -0
- package/build-module/components/revision-created-panel/index.mjs.map +7 -0
- package/build-module/components/sidebar/header.mjs +22 -7
- package/build-module/components/sidebar/header.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +38 -16
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/sidebar/post-summary.mjs +48 -20
- package/build-module/components/sidebar/post-summary.mjs.map +2 -2
- package/build-module/components/start-page-options/index.mjs +2 -1
- package/build-module/components/start-page-options/index.mjs.map +2 -2
- package/build-module/dataviews/store/private-actions.mjs +59 -27
- package/build-module/dataviews/store/private-actions.mjs.map +2 -2
- package/build-module/store/constants.mjs +2 -0
- package/build-module/store/constants.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +38 -0
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +29 -1
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/reducer.mjs +9 -0
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs +4 -0
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/store/utils/notice-builder.mjs +4 -0
- package/build-module/store/utils/notice-builder.mjs.map +2 -2
- package/build-style/style-rtl.css +182 -16
- package/build-style/style.css +182 -16
- package/build-types/components/document-bar/useEditedSectionDetails.d.ts.map +1 -1
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/header/header-skeleton.d.ts +17 -0
- package/build-types/components/header/header-skeleton.d.ts.map +1 -0
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/media/index.d.ts +3 -0
- package/build-types/components/media/index.d.ts.map +1 -0
- package/build-types/components/media/metadata-panel.d.ts +12 -0
- package/build-types/components/media/metadata-panel.d.ts.map +1 -0
- package/build-types/components/media/preview.d.ts +9 -0
- package/build-types/components/media/preview.d.ts.map +1 -0
- package/build-types/components/more-menu/index.d.ts +3 -1
- package/build-types/components/more-menu/index.d.ts.map +1 -1
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-content-information/index.d.ts.map +1 -1
- package/build-types/components/post-last-edited-panel/index.d.ts.map +1 -1
- package/build-types/components/post-last-revision/index.d.ts.map +1 -1
- package/build-types/components/post-publish-button/label.d.ts.map +1 -1
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/index.d.ts +3 -0
- package/build-types/components/post-revisions-preview/index.d.ts.map +1 -0
- package/build-types/components/post-revisions-preview/revisions-canvas.d.ts +7 -0
- package/build-types/components/post-revisions-preview/revisions-canvas.d.ts.map +1 -0
- package/build-types/components/post-revisions-preview/revisions-header.d.ts +8 -0
- package/build-types/components/post-revisions-preview/revisions-header.d.ts.map +1 -0
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts +8 -0
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -0
- package/build-types/components/post-saved-state/index.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
- package/build-types/components/revision-author-panel/index.d.ts +2 -0
- package/build-types/components/revision-author-panel/index.d.ts.map +1 -0
- package/build-types/components/revision-created-panel/index.d.ts +2 -0
- package/build-types/components/revision-created-panel/index.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
- package/build-types/components/start-page-options/index.d.ts.map +1 -1
- package/build-types/dataviews/store/private-actions.d.ts +1 -0
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/constants.d.ts +1 -0
- package/build-types/store/constants.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts +13 -0
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +25 -0
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +11 -0
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/store/utils/notice-builder.d.ts.map +1 -1
- package/package.json +42 -40
- package/src/components/document-bar/useEditedSectionDetails.js +0 -5
- package/src/components/editor-interface/index.js +39 -9
- package/src/components/header/header-skeleton.js +90 -0
- package/src/components/header/index.js +69 -102
- package/src/components/header/style.scss +4 -0
- package/src/components/media/index.js +2 -0
- package/src/components/media/metadata-panel.js +77 -0
- package/src/components/media/preview.js +35 -0
- package/src/components/more-menu/index.js +2 -1
- package/src/components/post-card-panel/index.js +43 -7
- package/src/components/post-content-information/index.js +11 -0
- package/src/components/post-last-edited-panel/index.js +8 -9
- package/src/components/post-last-revision/index.js +7 -8
- package/src/components/post-publish-button/label.js +9 -0
- package/src/components/post-publish-button/post-publish-button-or-toggle.js +13 -5
- package/src/components/post-revisions-preview/index.js +2 -0
- package/src/components/post-revisions-preview/revisions-canvas.js +73 -0
- package/src/components/post-revisions-preview/revisions-header.js +108 -0
- package/src/components/post-revisions-preview/revisions-slider.js +123 -0
- package/src/components/post-revisions-preview/style.scss +22 -0
- package/src/components/post-saved-state/index.js +8 -0
- package/src/components/post-title/index.js +4 -3
- package/src/components/provider/index.js +26 -0
- package/src/components/provider/use-block-editor-settings.js +2 -3
- package/src/components/revision-author-panel/index.js +36 -0
- package/src/components/revision-created-panel/index.js +36 -0
- package/src/components/sidebar/header.js +35 -14
- package/src/components/sidebar/index.js +40 -13
- package/src/components/sidebar/post-summary.js +45 -11
- package/src/components/sidebar/style.scss +7 -0
- package/src/components/start-page-options/index.js +2 -0
- package/src/dataviews/store/private-actions.ts +79 -33
- package/src/store/constants.ts +1 -0
- package/src/store/private-actions.js +70 -0
- package/src/store/private-selectors.js +54 -0
- package/src/store/reducer.js +17 -0
- package/src/store/selectors.js +6 -0
- package/src/store/test/selectors.js +7 -0
- package/src/store/utils/notice-builder.js +9 -0
- package/src/style.scss +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revisions-header.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-header.js"],"names":[],"mappings":";AA0BA;;;;GAIG;AACH,oCAFY,GAAG,CAAC,OAAO,CA4EtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH,oCAFY,GAAG,CAAC,OAAO,CAqGtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-saved-state/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-saved-state/index.js"],"names":[],"mappings":"AA2BA;;;;;;;;GAQG;AACH,yDAJG;IAAwB,YAAY,EAA3B,OAAO,OAAA;CAEhB,GAAS,OAAO,OAAO,EAAE,aAAa,CA2JxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA2aA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AAjVD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA8QE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";AAwGA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAuTjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-author-panel/index.js"],"names":[],"mappings":"AAeA,kFAoBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-created-panel/index.js"],"names":[],"mappings":"AAcA,mFAqBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":";AAyJA;;;gCAkEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"AA6CA;;gCA2FC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AA0BA,wCA0CC;AA4ED,+EA8CC"}
|
|
@@ -2,6 +2,7 @@ import type { Action, Field } from '@wordpress/dataviews';
|
|
|
2
2
|
declare global {
|
|
3
3
|
interface Window {
|
|
4
4
|
__experimentalTemplateActivate?: boolean;
|
|
5
|
+
__experimentalMediaEditor?: boolean;
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
export declare function registerEntityAction<Item>(kind: string, name: string, config: Action<Item>): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAuD1D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;QACzC,yBAAyB,CAAC,EAAE,OAAO,CAAC;KACpC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AA2BD,eAAO,MAAM,sBAAsB,GAChC,UAAU,MAAM,MACV,cAAc;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA4ItC,CAAC"}
|
|
@@ -17,6 +17,7 @@ export declare const TEMPLATE_POST_TYPE = "wp_template";
|
|
|
17
17
|
export declare const TEMPLATE_PART_POST_TYPE = "wp_template_part";
|
|
18
18
|
export declare const PATTERN_POST_TYPE = "wp_block";
|
|
19
19
|
export declare const NAVIGATION_POST_TYPE = "wp_navigation";
|
|
20
|
+
export declare const ATTACHMENT_POST_TYPE = "attachment";
|
|
20
21
|
export declare const TEMPLATE_ORIGINS: {
|
|
21
22
|
custom: string;
|
|
22
23
|
theme: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/store/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAwB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,UAAU,gBAAgB,CAAC;AAExC,eAAO,MAAM,wBAAwB,QAA4B,CAAC;AAClE,eAAO,MAAM,gBAAgB,QAAY,CAAC;AAC1C,eAAO,MAAM,mBAAmB,UAAoC,CAAC;AACrE,eAAO,MAAM,mCAAmC,kBAAkB,CAAC;AACnE,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAwC,CAAC;AACzE,eAAO,MAAM,iBAAiB,UAI7B,CAAC;AACF,eAAO,MAAM,iBAAiB,UAK7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/store/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAwB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,UAAU,gBAAgB,CAAC;AAExC,eAAO,MAAM,wBAAwB,QAA4B,CAAC;AAClE,eAAO,MAAM,gBAAgB,QAAY,CAAC;AAC1C,eAAO,MAAM,mBAAmB,UAAoC,CAAC;AACrE,eAAO,MAAM,mCAAmC,kBAAkB,CAAC;AACnE,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAwC,CAAC;AACzE,eAAO,MAAM,iBAAiB,UAI7B,CAAC;AACF,eAAO,MAAM,iBAAiB,UAK7B,CAAC"}
|
|
@@ -33,6 +33,14 @@ export function resetStylesNavigation(): Object;
|
|
|
33
33
|
* @return {Object} Action object.
|
|
34
34
|
*/
|
|
35
35
|
export function setCanvasMinHeight(minHeight: number): Object;
|
|
36
|
+
/**
|
|
37
|
+
* Set the current revision ID for revisions preview mode.
|
|
38
|
+
* Pass a revision ID to enter revisions mode, or null to exit.
|
|
39
|
+
*
|
|
40
|
+
* @param {number|null} revisionId The revision ID, or null to exit revisions mode.
|
|
41
|
+
* @return {Object} Action object.
|
|
42
|
+
*/
|
|
43
|
+
export function setCurrentRevisionId(revisionId: number | null): Object;
|
|
36
44
|
export * from "../dataviews/store/private-actions";
|
|
37
45
|
export function createTemplate(template: Object | null): ({ select, dispatch, registry }: {
|
|
38
46
|
select: any;
|
|
@@ -65,4 +73,9 @@ export function setDefaultRenderingMode(mode: string): ({ select, registry }: {
|
|
|
65
73
|
select: any;
|
|
66
74
|
registry: any;
|
|
67
75
|
}) => void;
|
|
76
|
+
export function restoreRevision(revisionId: number): ({ select, dispatch, registry }: {
|
|
77
|
+
select: any;
|
|
78
|
+
dispatch: any;
|
|
79
|
+
registry: any;
|
|
80
|
+
}) => Promise<void>;
|
|
68
81
|
//# sourceMappingURL=private-actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;AAkfD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,CAOjB;;
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;AAkfD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GAAC,IAAI,GACV,MAAM,CAOjB;;AAziBM,yCAFK,MAAM,OAAA,IAIT;;;;CAA8B,kBAiCrC;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAgBb;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAcb;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC,IAGE;;CAAY,UAiGb;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC,IAGQ;;CAAY,mBA0HnB;AAOK,gDAEE;;CAAY,mBAwHnB;AAOK,8CAFI,MAAM,IAId;;;CAAoB,UAwBrB;AAwEK,4CAFI,MAAM,IAIR;;;;CAA8B,mBA8CrC"}
|
|
@@ -24,6 +24,20 @@ export function getShowStylebook(state: Object): boolean;
|
|
|
24
24
|
* @return {number} The canvas minimum height.
|
|
25
25
|
*/
|
|
26
26
|
export function getCanvasMinHeight(state: Object): number;
|
|
27
|
+
/**
|
|
28
|
+
* Returns whether the editor is in revisions preview mode.
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} state Global application state.
|
|
31
|
+
* @return {boolean} Whether revisions mode is active.
|
|
32
|
+
*/
|
|
33
|
+
export function isRevisionsMode(state: Object): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the current revision ID in revisions mode.
|
|
36
|
+
*
|
|
37
|
+
* @param {Object} state Global application state.
|
|
38
|
+
* @return {number|null} The revision ID, or null if not in revisions mode.
|
|
39
|
+
*/
|
|
40
|
+
export function getCurrentRevisionId(state: Object): number | null;
|
|
27
41
|
/**
|
|
28
42
|
* Get the inserter.
|
|
29
43
|
*
|
|
@@ -83,4 +97,15 @@ export const getDefaultRenderingMode: {
|
|
|
83
97
|
isRegistrySelector?: boolean;
|
|
84
98
|
registry?: any;
|
|
85
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* Returns the current revision object in revisions mode.
|
|
102
|
+
*
|
|
103
|
+
* @param {Object} state Global application state.
|
|
104
|
+
* @return {Object|null|undefined} The revision object, null if loading, or undefined if not in revisions mode.
|
|
105
|
+
*/
|
|
106
|
+
export const getCurrentRevision: {
|
|
107
|
+
(state: any): Record<import("@wordpress/core-data").Context, Record<number, import("@wordpress/core-data").PostRevision<"view">>> | Record<import("@wordpress/core-data").Context, Record<number, import("@wordpress/core-data").GlobalStylesRevision<"view">>> | null | undefined;
|
|
108
|
+
isRegistrySelector?: boolean;
|
|
109
|
+
registry?: any;
|
|
110
|
+
};
|
|
86
111
|
//# sourceMappingURL=private-selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAsFA,sDAEC;AACD,6DAEC;AAsFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAsFD;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;
|
|
1
|
+
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAsFA,sDAEC;AACD,6DAEC;AAsFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAsFD;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;AAvRD;;;;;;GAMG;AACH;;;;EAmCE;AAeF;;;;EAqCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAsBE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE;AAoDF;;;;;GAKG;AACH;;;;EA0BE"}
|
|
@@ -200,6 +200,15 @@ export function showStylebook(state: boolean | undefined, action: Object): boole
|
|
|
200
200
|
* @return {number} Updated state.
|
|
201
201
|
*/
|
|
202
202
|
export function canvasMinHeight(state: number | undefined, action: Object): number;
|
|
203
|
+
/**
|
|
204
|
+
* Reducer for the revisions preview mode.
|
|
205
|
+
* Stores the current revision ID, or null if not in revisions mode.
|
|
206
|
+
*
|
|
207
|
+
* @param {number|null} state Current revision ID.
|
|
208
|
+
* @param {Object} action Dispatched action.
|
|
209
|
+
* @return {number|null} Updated state.
|
|
210
|
+
*/
|
|
211
|
+
export function revisionId(state: number | null | undefined, action: Object): number | null;
|
|
203
212
|
declare const _default: import("redux").Reducer<{
|
|
204
213
|
postId: any;
|
|
205
214
|
postType: any;
|
|
@@ -222,6 +231,7 @@ declare const _default: import("redux").Reducer<{
|
|
|
222
231
|
stylesPath: string;
|
|
223
232
|
showStylebook: boolean;
|
|
224
233
|
canvasMinHeight: number;
|
|
234
|
+
revisionId: number | null;
|
|
225
235
|
dataviews: {
|
|
226
236
|
actions: {
|
|
227
237
|
[x: string]: Record<string, import("@wordpress/dataviews").Action<any>[]> | {
|
|
@@ -257,6 +267,7 @@ declare const _default: import("redux").Reducer<{
|
|
|
257
267
|
stylesPath: string | undefined;
|
|
258
268
|
showStylebook: boolean | undefined;
|
|
259
269
|
canvasMinHeight: number | undefined;
|
|
270
|
+
revisionId: number | null | undefined;
|
|
260
271
|
dataviews: never;
|
|
261
272
|
}>>;
|
|
262
273
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,uCAJW,GAAC,GAEA,GAAC,CAQZ;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oEAOC;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;;;GAQG;AACH,8BALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAajB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,gCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CASxB;AAED;;;;;;;;;GASG;AACH,sCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;;;GASG;AACH,0CALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED,2EAOC;AAED;;;;;;;GAOG;AACH,kCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CASjB;AAED;;;;;;;GAOG;AACH,gEAJW,MAAM,SAahB;AAED;;;;;;;;GAQG;AACH,0CAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;;;GAQG;AACH,qCAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;GAMG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GACL,MAAM,CAIjB;AAED,uFAUC;AAED;;;;;;GAMG;AACH,kCAJW,MAAM,sBACN,MAAM,GACL,MAAM,CAUjB;AAED;;;;;;GAMG;AACH,qCAJW,OAAO,sBACP,MAAM,GACL,OAAO,CAUlB;AAED;;;;;;GAMG;AACH,uCAJW,MAAM,sBACN,MAAM,GACL,MAAM,CAQjB
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,uCAJW,GAAC,GAEA,GAAC,CAQZ;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oE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OAAO,OAAA;;;;oBACP,OAAO,OAAA;;;;UACP,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AAiEA;;;;;;;GAOG;AACH,uCAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,OAAO,CAKlB;AA+CD;;;;;;;GAOG;AACH,sCAJW,MAAM,GAEL,OAAO,CAIlB;AAgCD;;;;;;;;;;;GAWG;AACH,0CATW,MAAM,GAOL,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,GAEJ,CAAC,MAAM,GAAC,MAAM,CAAC,OAAA,CAI3B;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEJ,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,oDAJW,MAAM,GAEL,MAAM,CAMjB;AAED;;;;;;;GAOG;AACH,oDAJW,MAAM,GAEJ,MAAM,OAAA,CAOlB;AAsBD;;;;;;;GAOG;AACH,+CALW,MAAM,iBACN,MAAM,GAEL,GAAC,CAkBZ;AA8BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,8CAzBW,MAAM,iBACN,MAAM,GAsBL,GAAC,CAsBZ;AAuCD;;;;;;;;GAQG;AACH,+CAJW,MAAM,GAEL,MAAM,CAcjB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;;GAOG;AACH,8CALW,MAAM,gBACN,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;GAMG;AACH,8CAJW,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;GAMG;AACH,+CAJW,MAAM,GAEL,OAAO,CAmBlB;AAED;;;;;;;GAOG;AACH,4CAJW,MAAM,GA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;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAA2E;AAE3E;;GAEG;AACH;;;;EAAmE;AAEnE;;GAEG;AACH;;;;EAA2E;AAE3E;;GAEG;AACH;;;;EACgD;AAEhD;;GAEG;AACH;;;;EAA6E;AAE7E;;GAEG;AACH;;;;EAA6E;AAE7E;;GAEG;AACH;;;;EAEE;AAEF;;;;EAYE;AAEF;;;;;;GAMG;AACH;;;;EAoBE;AAEF;;;;;;;GAOG;AACH;;;;EAsBE;AAEF;;;;;;;GAOG;AACH;;;;EAuBE;AAEF;;;;;;GAMG;AACH;;;;EAME;;;;;;;;cApmBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notice-builder.d.ts","sourceRoot":"","sources":["../../../src/store/utils/notice-builder.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notice-builder.d.ts","sourceRoot":"","sources":["../../../src/store/utils/notice-builder.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,6DALW,MAAM,SAmEhB;AAED;;;;;;;GAOG;AACH,0DALW,MAAM,SA+DhB;AAED;;;;;;GAMG;AACH,2DAJW,MAAM,SAahB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.39.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -61,44 +61,46 @@
|
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@floating-ui/react-dom": "2.0.8",
|
|
64
|
-
"@wordpress/a11y": "^4.
|
|
65
|
-
"@wordpress/api-fetch": "^7.
|
|
66
|
-
"@wordpress/base-styles": "^6.
|
|
67
|
-
"@wordpress/blob": "^4.
|
|
68
|
-
"@wordpress/block-editor": "^15.
|
|
69
|
-
"@wordpress/blocks": "^15.
|
|
70
|
-
"@wordpress/commands": "^1.
|
|
71
|
-
"@wordpress/components": "^32.
|
|
72
|
-
"@wordpress/compose": "^7.
|
|
73
|
-
"@wordpress/core-data": "^7.
|
|
74
|
-
"@wordpress/data": "^10.
|
|
75
|
-
"@wordpress/dataviews": "^11.
|
|
76
|
-
"@wordpress/date": "^5.
|
|
77
|
-
"@wordpress/deprecated": "^4.
|
|
78
|
-
"@wordpress/dom": "^4.
|
|
79
|
-
"@wordpress/element": "^6.
|
|
80
|
-
"@wordpress/fields": "^0.
|
|
81
|
-
"@wordpress/global-styles-engine": "^1.
|
|
82
|
-
"@wordpress/global-styles-ui": "^1.
|
|
83
|
-
"@wordpress/hooks": "^4.
|
|
84
|
-
"@wordpress/html-entities": "^4.
|
|
85
|
-
"@wordpress/i18n": "^6.
|
|
86
|
-
"@wordpress/icons": "^11.
|
|
87
|
-
"@wordpress/interface": "^9.
|
|
88
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
89
|
-
"@wordpress/keycodes": "^4.
|
|
90
|
-
"@wordpress/media-
|
|
91
|
-
"@wordpress/
|
|
92
|
-
"@wordpress/
|
|
93
|
-
"@wordpress/
|
|
94
|
-
"@wordpress/
|
|
95
|
-
"@wordpress/
|
|
96
|
-
"@wordpress/
|
|
97
|
-
"@wordpress/
|
|
98
|
-
"@wordpress/
|
|
99
|
-
"@wordpress/
|
|
100
|
-
"@wordpress/
|
|
101
|
-
"@wordpress/
|
|
64
|
+
"@wordpress/a11y": "^4.39.0",
|
|
65
|
+
"@wordpress/api-fetch": "^7.39.0",
|
|
66
|
+
"@wordpress/base-styles": "^6.15.0",
|
|
67
|
+
"@wordpress/blob": "^4.39.0",
|
|
68
|
+
"@wordpress/block-editor": "^15.12.0",
|
|
69
|
+
"@wordpress/blocks": "^15.12.0",
|
|
70
|
+
"@wordpress/commands": "^1.39.0",
|
|
71
|
+
"@wordpress/components": "^32.1.0",
|
|
72
|
+
"@wordpress/compose": "^7.39.0",
|
|
73
|
+
"@wordpress/core-data": "^7.39.0",
|
|
74
|
+
"@wordpress/data": "^10.39.0",
|
|
75
|
+
"@wordpress/dataviews": "^11.3.0",
|
|
76
|
+
"@wordpress/date": "^5.39.0",
|
|
77
|
+
"@wordpress/deprecated": "^4.39.0",
|
|
78
|
+
"@wordpress/dom": "^4.39.0",
|
|
79
|
+
"@wordpress/element": "^6.39.0",
|
|
80
|
+
"@wordpress/fields": "^0.31.0",
|
|
81
|
+
"@wordpress/global-styles-engine": "^1.6.0",
|
|
82
|
+
"@wordpress/global-styles-ui": "^1.6.0",
|
|
83
|
+
"@wordpress/hooks": "^4.39.0",
|
|
84
|
+
"@wordpress/html-entities": "^4.39.0",
|
|
85
|
+
"@wordpress/i18n": "^6.12.0",
|
|
86
|
+
"@wordpress/icons": "^11.6.0",
|
|
87
|
+
"@wordpress/interface": "^9.24.0",
|
|
88
|
+
"@wordpress/keyboard-shortcuts": "^5.39.0",
|
|
89
|
+
"@wordpress/keycodes": "^4.39.0",
|
|
90
|
+
"@wordpress/media-editor": "^0.2.0",
|
|
91
|
+
"@wordpress/media-fields": "^0.4.0",
|
|
92
|
+
"@wordpress/media-utils": "^5.39.0",
|
|
93
|
+
"@wordpress/notices": "^5.39.0",
|
|
94
|
+
"@wordpress/patterns": "^2.39.0",
|
|
95
|
+
"@wordpress/plugins": "^7.39.0",
|
|
96
|
+
"@wordpress/preferences": "^4.39.0",
|
|
97
|
+
"@wordpress/private-apis": "^1.39.0",
|
|
98
|
+
"@wordpress/reusable-blocks": "^5.39.0",
|
|
99
|
+
"@wordpress/rich-text": "^7.39.0",
|
|
100
|
+
"@wordpress/server-side-render": "^6.15.0",
|
|
101
|
+
"@wordpress/url": "^4.39.0",
|
|
102
|
+
"@wordpress/warning": "^3.39.0",
|
|
103
|
+
"@wordpress/wordcount": "^4.39.0",
|
|
102
104
|
"change-case": "^4.1.2",
|
|
103
105
|
"client-zip": "^2.4.5",
|
|
104
106
|
"clsx": "^2.1.1",
|
|
@@ -119,5 +121,5 @@
|
|
|
119
121
|
"publishConfig": {
|
|
120
122
|
"access": "public"
|
|
121
123
|
},
|
|
122
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "eee1cfb1472f11183e40fb77465a5f13145df7ad"
|
|
123
125
|
}
|
|
@@ -19,11 +19,6 @@ import { unlock } from '../../lock-unlock';
|
|
|
19
19
|
*/
|
|
20
20
|
export default function useEditedSectionDetails() {
|
|
21
21
|
return useSelect( ( select ) => {
|
|
22
|
-
// Only run when the content only pattern insertion experiment is enabled
|
|
23
|
-
if ( ! window?.__experimentalContentOnlyPatternInsertion ) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
const {
|
|
28
23
|
getBlockAttributes,
|
|
29
24
|
getBlockName,
|
|
@@ -24,10 +24,12 @@ import EditorNotices from '../editor-notices';
|
|
|
24
24
|
import Header from '../header';
|
|
25
25
|
import InserterSidebar from '../inserter-sidebar';
|
|
26
26
|
import ListViewSidebar from '../list-view-sidebar';
|
|
27
|
+
import { RevisionsHeader, RevisionsCanvas } from '../post-revisions-preview';
|
|
27
28
|
import SavePublishPanels from '../save-publish-panels';
|
|
28
29
|
import TextEditor from '../text-editor';
|
|
29
30
|
import VisualEditor from '../visual-editor';
|
|
30
31
|
import StylesCanvas from '../styles-canvas';
|
|
32
|
+
import { MediaPreview } from '../media';
|
|
31
33
|
|
|
32
34
|
const interfaceLabels = {
|
|
33
35
|
/* translators: accessibility text for the editor top bar landmark region. */
|
|
@@ -56,6 +58,7 @@ export default function EditorInterface( {
|
|
|
56
58
|
} ) {
|
|
57
59
|
const {
|
|
58
60
|
mode,
|
|
61
|
+
isAttachment,
|
|
59
62
|
isInserterOpened,
|
|
60
63
|
isListViewOpened,
|
|
61
64
|
isDistractionFree,
|
|
@@ -64,12 +67,16 @@ export default function EditorInterface( {
|
|
|
64
67
|
postTypeLabel,
|
|
65
68
|
stylesPath,
|
|
66
69
|
showStylebook,
|
|
70
|
+
isRevisionsMode,
|
|
67
71
|
} = useSelect( ( select ) => {
|
|
68
72
|
const { get } = select( preferencesStore );
|
|
69
|
-
const { getEditorSettings, getPostTypeLabel } =
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
const { getEditorSettings, getPostTypeLabel, getCurrentPostType } =
|
|
74
|
+
select( editorStore );
|
|
75
|
+
const {
|
|
76
|
+
getStylesPath,
|
|
77
|
+
getShowStylebook,
|
|
78
|
+
isRevisionsMode: _isRevisionsMode,
|
|
79
|
+
} = unlock( select( editorStore ) );
|
|
73
80
|
const editorSettings = getEditorSettings();
|
|
74
81
|
|
|
75
82
|
let _mode = select( editorStore ).getEditorMode();
|
|
@@ -90,14 +97,22 @@ export default function EditorInterface( {
|
|
|
90
97
|
postTypeLabel: getPostTypeLabel(),
|
|
91
98
|
stylesPath: getStylesPath(),
|
|
92
99
|
showStylebook: getShowStylebook(),
|
|
100
|
+
isAttachment:
|
|
101
|
+
getCurrentPostType() === 'attachment' &&
|
|
102
|
+
window?.__experimentalMediaEditor,
|
|
103
|
+
isRevisionsMode: _isRevisionsMode(),
|
|
93
104
|
};
|
|
94
105
|
}, [] );
|
|
95
106
|
const isLargeViewport = useViewportMatch( 'medium' );
|
|
96
107
|
const secondarySidebarLabel = isListViewOpened
|
|
97
108
|
? __( 'Document Overview' )
|
|
98
109
|
: __( 'Block Library' );
|
|
110
|
+
const shouldShowMediaEditor = !! isAttachment;
|
|
99
111
|
const shouldShowStylesCanvas =
|
|
100
|
-
|
|
112
|
+
! isAttachment &&
|
|
113
|
+
( showStylebook || stylesPath?.startsWith( '/revisions' ) );
|
|
114
|
+
const shouldShowBlockEditor =
|
|
115
|
+
! shouldShowMediaEditor && ! shouldShowStylesCanvas;
|
|
101
116
|
|
|
102
117
|
// Local state for save panel.
|
|
103
118
|
// Note 'truthy' callback implies an open panel.
|
|
@@ -113,6 +128,19 @@ export default function EditorInterface( {
|
|
|
113
128
|
[ entitiesSavedStatesCallback ]
|
|
114
129
|
);
|
|
115
130
|
|
|
131
|
+
// When in revisions mode, render the revisions interface.
|
|
132
|
+
if ( isRevisionsMode ) {
|
|
133
|
+
return (
|
|
134
|
+
<InterfaceSkeleton
|
|
135
|
+
className={ clsx( 'editor-editor-interface', className ) }
|
|
136
|
+
labels={ interfaceLabels }
|
|
137
|
+
header={ <RevisionsHeader /> }
|
|
138
|
+
content={ <RevisionsCanvas /> }
|
|
139
|
+
sidebar={ <ComplementaryArea.Slot scope="core" /> }
|
|
140
|
+
/>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
116
144
|
return (
|
|
117
145
|
<InterfaceSkeleton
|
|
118
146
|
isDistractionFree={ isDistractionFree }
|
|
@@ -138,6 +166,7 @@ export default function EditorInterface( {
|
|
|
138
166
|
}
|
|
139
167
|
editorNotices={ <EditorNotices /> }
|
|
140
168
|
secondarySidebar={
|
|
169
|
+
! isAttachment &&
|
|
141
170
|
! isPreviewMode &&
|
|
142
171
|
mode === 'visual' &&
|
|
143
172
|
( ( isInserterOpened && <InserterSidebar /> ) ||
|
|
@@ -152,10 +181,11 @@ export default function EditorInterface( {
|
|
|
152
181
|
{ ! isDistractionFree && ! isPreviewMode && (
|
|
153
182
|
<EditorNotices />
|
|
154
183
|
) }
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
184
|
+
{ shouldShowMediaEditor && (
|
|
185
|
+
<MediaPreview { ...iframeProps } />
|
|
186
|
+
) }
|
|
187
|
+
{ shouldShowStylesCanvas && <StylesCanvas /> }
|
|
188
|
+
{ shouldShowBlockEditor && (
|
|
159
189
|
<>
|
|
160
190
|
{ ! isPreviewMode && mode === 'text' && (
|
|
161
191
|
<TextEditor
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* WordPress dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { __unstableMotion as motion } from '@wordpress/components';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Internal dependencies
|
|
13
|
+
*/
|
|
14
|
+
import BackButton, { useHasBackButton } from './back-button';
|
|
15
|
+
|
|
16
|
+
const toolbarVariations = {
|
|
17
|
+
distractionFreeDisabled: { y: '-50px' },
|
|
18
|
+
distractionFreeHover: { y: 0 },
|
|
19
|
+
distractionFreeHidden: { y: '-50px' },
|
|
20
|
+
visible: { y: 0 },
|
|
21
|
+
hidden: { y: 0 },
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const backButtonVariations = {
|
|
25
|
+
distractionFreeDisabled: { x: '-100%' },
|
|
26
|
+
distractionFreeHover: { x: 0 },
|
|
27
|
+
distractionFreeHidden: { x: '-100%' },
|
|
28
|
+
visible: { x: 0 },
|
|
29
|
+
hidden: { x: 0 },
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Header skeleton component providing the common layout structure.
|
|
34
|
+
*
|
|
35
|
+
* @param {Object} props Component props.
|
|
36
|
+
* @param {string} props.className Additional class name.
|
|
37
|
+
* @param {JSX.Element} props.toolbar Content for the left toolbar area.
|
|
38
|
+
* @param {JSX.Element} props.center Content for the center area.
|
|
39
|
+
* @param {JSX.Element} props.settings Content for the right settings area.
|
|
40
|
+
* @return {JSX.Element} The header skeleton component.
|
|
41
|
+
*/
|
|
42
|
+
export default function HeaderSkeleton( {
|
|
43
|
+
className,
|
|
44
|
+
toolbar,
|
|
45
|
+
center,
|
|
46
|
+
settings,
|
|
47
|
+
} ) {
|
|
48
|
+
const hasBackButton = useHasBackButton();
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* The edit-post-header classname is only kept for backward compatibility
|
|
52
|
+
* as some plugins might be relying on its presence.
|
|
53
|
+
*/
|
|
54
|
+
return (
|
|
55
|
+
<div className={ clsx( 'editor-header edit-post-header', className ) }>
|
|
56
|
+
{ hasBackButton && (
|
|
57
|
+
<motion.div
|
|
58
|
+
className="editor-header__back-button"
|
|
59
|
+
variants={ backButtonVariations }
|
|
60
|
+
transition={ { type: 'tween' } }
|
|
61
|
+
>
|
|
62
|
+
<BackButton.Slot />
|
|
63
|
+
</motion.div>
|
|
64
|
+
) }
|
|
65
|
+
<motion.div
|
|
66
|
+
variants={ toolbarVariations }
|
|
67
|
+
className="editor-header__toolbar"
|
|
68
|
+
transition={ { type: 'tween' } }
|
|
69
|
+
>
|
|
70
|
+
{ toolbar }
|
|
71
|
+
</motion.div>
|
|
72
|
+
{ center && (
|
|
73
|
+
<motion.div
|
|
74
|
+
variants={ toolbarVariations }
|
|
75
|
+
className="editor-header__center"
|
|
76
|
+
transition={ { type: 'tween' } }
|
|
77
|
+
>
|
|
78
|
+
{ center }
|
|
79
|
+
</motion.div>
|
|
80
|
+
) }
|
|
81
|
+
<motion.div
|
|
82
|
+
variants={ toolbarVariations }
|
|
83
|
+
transition={ { type: 'tween' } }
|
|
84
|
+
className="editor-header__settings"
|
|
85
|
+
>
|
|
86
|
+
{ settings }
|
|
87
|
+
</motion.div>
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
}
|