@wordpress/editor 14.7.0 → 14.7.1-next.5368f64a9.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/README.md +4 -0
- package/build/bindings/post-meta.js +2 -1
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/editor/index.js +2 -2
- package/build/components/editor/index.js.map +1 -1
- package/build/components/global-styles-provider/index.js +3 -4
- package/build/components/global-styles-provider/index.js.map +1 -1
- package/build/components/header/index.js +4 -4
- package/build/components/header/index.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +2 -5
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-upload-media.js +151 -32
- package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build/components/post-publish-panel/media-util.js +79 -0
- package/build/components/post-publish-panel/media-util.js.map +1 -0
- package/build/components/post-trash/check.js +2 -1
- package/build/components/post-trash/check.js.map +1 -1
- package/build/components/post-trash/index.js +22 -8
- package/build/components/post-trash/index.js.map +1 -1
- package/build/components/preferences-modal/index.js +28 -1
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/provider/index.js +34 -8
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +9 -4
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/sidebar/post-summary.js +3 -0
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/start-page-options/index.js +16 -19
- package/build/components/start-page-options/index.js.map +1 -1
- package/build/components/start-template-options/index.js +2 -4
- package/build/components/start-template-options/index.js.map +1 -1
- package/build/components/table-of-contents/index.js +2 -4
- package/build/components/table-of-contents/index.js.map +1 -1
- package/build/components/text-editor/index.js +2 -4
- package/build/components/text-editor/index.js.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build/dataviews/actions/reset-post.js +4 -8
- package/build/dataviews/actions/reset-post.js.map +1 -1
- package/build/dataviews/actions/trash-post.js +4 -8
- package/build/dataviews/actions/trash-post.js.map +1 -1
- package/build/store/selectors.js +7 -3
- package/build/store/selectors.js.map +1 -1
- package/build-module/bindings/post-meta.js +2 -1
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/editor/index.js +2 -2
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +3 -4
- package/build-module/components/global-styles-provider/index.js.map +1 -1
- package/build-module/components/header/index.js +4 -4
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +2 -5
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-upload-media.js +150 -31
- package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build-module/components/post-publish-panel/media-util.js +72 -0
- package/build-module/components/post-publish-panel/media-util.js.map +1 -0
- package/build-module/components/post-trash/check.js +2 -1
- package/build-module/components/post-trash/check.js.map +1 -1
- package/build-module/components/post-trash/index.js +23 -11
- package/build-module/components/post-trash/index.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +28 -1
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/provider/index.js +35 -9
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +9 -4
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +3 -0
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/start-page-options/index.js +17 -21
- package/build-module/components/start-page-options/index.js.map +1 -1
- package/build-module/components/start-template-options/index.js +2 -4
- package/build-module/components/start-template-options/index.js.map +1 -1
- package/build-module/components/table-of-contents/index.js +2 -4
- package/build-module/components/table-of-contents/index.js.map +1 -1
- package/build-module/components/text-editor/index.js +2 -4
- package/build-module/components/text-editor/index.js.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build-module/dataviews/actions/reset-post.js +4 -8
- package/build-module/dataviews/actions/reset-post.js.map +1 -1
- package/build-module/dataviews/actions/trash-post.js +4 -8
- package/build-module/dataviews/actions/trash-post.js.map +1 -1
- package/build-module/store/selectors.js +6 -2
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/style-rtl.css +2 -2
- package/build-style/style.css +2 -2
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
- package/build-types/components/header/back-button.d.ts.map +1 -1
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts +1 -1
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/media-util.d.ts +20 -0
- package/build-types/components/post-publish-panel/media-util.d.ts.map +1 -0
- package/build-types/components/post-trash/check.d.ts.map +1 -1
- package/build-types/components/post-trash/index.d.ts +4 -1
- package/build-types/components/post-trash/index.d.ts.map +1 -1
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
- package/build-types/components/preferences-modal/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/save-publish-panels/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 +1 -0
- package/build-types/components/start-page-options/index.d.ts.map +1 -1
- package/build-types/components/start-template-options/index.d.ts.map +1 -1
- package/build-types/components/text-editor/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -1
- package/build-types/dataviews/actions/reset-post.d.ts.map +1 -1
- package/build-types/dataviews/actions/trash-post.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +8 -8
- package/build-types/store/selectors.d.ts.map +1 -1
- package/package.json +36 -36
- package/src/bindings/post-meta.js +1 -1
- package/src/components/editor/index.js +1 -1
- package/src/components/global-styles-provider/index.js +11 -7
- package/src/components/header/index.js +3 -3
- package/src/components/header/style.scss +1 -1
- package/src/components/inserter-sidebar/index.js +2 -5
- package/src/components/post-publish-panel/maybe-upload-media.js +149 -48
- package/src/components/post-publish-panel/media-util.js +87 -0
- package/src/components/post-publish-panel/test/media-util.js +118 -0
- package/src/components/post-trash/check.js +5 -2
- package/src/components/post-trash/index.js +23 -12
- package/src/components/preferences-modal/index.js +227 -172
- package/src/components/provider/index.js +42 -10
- package/src/components/provider/use-block-editor-settings.js +11 -6
- package/src/components/sidebar/post-summary.js +4 -0
- package/src/components/start-page-options/index.js +28 -26
- package/src/components/start-template-options/index.js +1 -2
- package/src/components/table-of-contents/index.js +1 -2
- package/src/components/text-editor/index.js +1 -2
- package/src/components/text-editor/style.scss +1 -1
- package/src/components/visual-editor/edit-template-blocks-notification.js +4 -1
- package/src/dataviews/actions/reset-post.tsx +2 -4
- package/src/dataviews/actions/trash-post.tsx +2 -4
- package/src/store/selectors.js +9 -3
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-post-publish-panel/index.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,4FAzBG;IAAsC,SAAS;IACT,KAAK;IACL,WAAW;IACX,IAAI;IACL,QAAQ,EAArC,OAAO;CAEf,GAiBS,SAAS,CAuBpB;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-post-publish-panel/index.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,4FAzBG;IAAsC,SAAS;IACT,KAAK;IACL,WAAW;IACX,IAAI;IACL,QAAQ,EAArC,OAAO;CAEf,GAiBS,SAAS,CAuBpB;;;;;0LApCsB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-post-status-info/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,+DArCG;IAAwB,SAAS;IACV,QAAQ,EAAvB,OAAO;CAEf,GAgCS,SAAS,CAMpB;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-post-status-info/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,+DArCG;IAAwB,SAAS;IACV,QAAQ,EAAvB,OAAO;CAEf,GAgCS,SAAS,CAMpB;;;;;0LAXmB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-pre-publish-panel/index.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,2FA5BG;IAAsC,SAAS;IACT,KAAK;IACL,WAAW;IAEX,IAAI;IAGL,QAAQ,EAArC,OAAO;CAEf,GAiBS,SAAS,CAuBpB;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-pre-publish-panel/index.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,2FA5BG;IAAsC,SAAS;IACT,KAAK;IACL,WAAW;IAEX,IAAI;IAGL,QAAQ,EAArC,OAAO;CAEf,GAiBS,SAAS,CAuBpB;;;;;0LA3C8E,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/components/post-excerpt/plugin.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,4DAnCG;IAAwB,SAAS;IACV,QAAQ,EAAvB,OAAO;CAEf,GA8BS,SAAS,CAQpB;;;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/components/post-excerpt/plugin.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,4DAnCG;IAAwB,SAAS;IACV,QAAQ,EAAvB,OAAO;CAEf,GA8BS,SAAS,CAQpB;;;;;0LANiB,OAAO"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function
|
|
1
|
+
export default function MaybeUploadMediaPanel(): import("react").JSX.Element | null;
|
|
2
2
|
//# sourceMappingURL=maybe-upload-media.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maybe-upload-media.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-upload-media.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"maybe-upload-media.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-upload-media.js"],"names":[],"mappings":"AA+GA,oFA+JC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate a list of unique basenames given a list of URLs.
|
|
3
|
+
*
|
|
4
|
+
* We want all basenames to be unique, since sometimes the extension
|
|
5
|
+
* doesn't reflect the mime type, and may end up getting changed by
|
|
6
|
+
* the server, on upload.
|
|
7
|
+
*
|
|
8
|
+
* @param {string[]} urls The list of URLs
|
|
9
|
+
* @return {Record< string, string >} A URL => basename record.
|
|
10
|
+
*/
|
|
11
|
+
export function generateUniqueBasenames(urls: string[]): Record<string, string>;
|
|
12
|
+
/**
|
|
13
|
+
* Fetch a list of URLs, turning those into promises for files with
|
|
14
|
+
* unique filenames.
|
|
15
|
+
*
|
|
16
|
+
* @param {string[]} urls The list of URLs
|
|
17
|
+
* @return {Record< string, Promise< File > >} A URL => File promise record.
|
|
18
|
+
*/
|
|
19
|
+
export function fetchMedia(urls: string[]): Record<string, Promise<File>>;
|
|
20
|
+
//# sourceMappingURL=media-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-util.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/media-util.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,8CAHW,MAAM,EAAE,GACP,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,CAuCnC;AAED;;;;;;GAMG;AACH,iCAHW,MAAM,EAAE,GACP,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,IAAI,CAAE,CAAE,CAsB5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/check.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/check.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,qDAJG;IAAuB,QAAQ,EAAvB,OAAO;CAEf,GAAS,SAAS,GAAC,IAAI,CA8BzB"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Displays the Post Trash Button and Confirm Dialog in the Editor.
|
|
3
3
|
*
|
|
4
|
+
* @param {?{onActionPerformed: Object}} An object containing the onActionPerformed function.
|
|
4
5
|
* @return {JSX.Element|null} The rendered PostTrash component.
|
|
5
6
|
*/
|
|
6
|
-
export default function PostTrash(
|
|
7
|
+
export default function PostTrash({ onActionPerformed }: {
|
|
8
|
+
onActionPerformed: Object;
|
|
9
|
+
} | null): JSX.Element | null;
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/index.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,yDAHY;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAC,OAAA,GAC3B,GAAG,CAAC,OAAO,GAAC,IAAI,CA4D3B"}
|
package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-plugin-document-setting-panel.d.ts","sourceRoot":"","sources":["../../../src/components/preferences-modal/enable-plugin-document-setting-panel.js"],"names":[],"mappings":";AAcA;;;gCAIC;;;;;
|
|
1
|
+
{"version":3,"file":"enable-plugin-document-setting-panel.d.ts","sourceRoot":"","sources":["../../../src/components/preferences-modal/enable-plugin-document-setting-panel.js"],"names":[],"mappings":";AAcA;;;gCAIC;;;;;0LAK+vB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/preferences-modal/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/preferences-modal/index.js"],"names":[],"mappings":"AAqCA;;uCAgTC"}
|
|
@@ -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":"AAuWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,GAAG,CAAC,OAAO,CAWtB;AA5QD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAyME"}
|
|
@@ -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":";AAoGA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CA8PjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-publish-panels/index.js"],"names":[],"mappings":"AAqBA;;;;;gCA6FC;AA/FD;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-publish-panels/index.js"],"names":[],"mappings":"AAqBA;;;;;gCA6FC;AA/FD;kHAoBmB,OACf;;EArBiC"}
|
|
@@ -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":"AAqCA;;gCAiEC"}
|
|
@@ -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":"AAuBA,wCA0CC;AAqDD,+EAyBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-template-options/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-template-options/index.js"],"names":[],"mappings":"AA0KA,mFAoDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/text-editor/index.js"],"names":[],"mappings":"AAgBA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/text-editor/index.js"],"names":[],"mappings":"AAgBA;;gCAyCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-template-blocks-notification.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/edit-template-blocks-notification.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,uEAHG;IAAsD,UAAU,EAAxD,OAAO,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;CAEhD,
|
|
1
|
+
{"version":3,"file":"edit-template-blocks-notification.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/edit-template-blocks-notification.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,uEAHG;IAAsD,UAAU,EAAxD,OAAO,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;CAEhD,sCAqEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/reset-post.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AASnD,OAAO,KAAK,EAAE,IAAI,EAAiB,MAAM,UAAU,CAAC;AAGpD,QAAA,MAAM,SAAS,EAAE,MAAM,CAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"reset-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/reset-post.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AASnD,OAAO,KAAK,EAAE,IAAI,EAAiB,MAAM,UAAU,CAAC;AAGpD,QAAA,MAAM,SAAS,EAAE,MAAM,CAAE,IAAI,CAqH5B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trash-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/trash-post.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,SAAS,EAAE,MAAM,CAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"trash-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/trash-post.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,SAAS,EAAE,MAAM,CAAE,mBAAmB,CA4K3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -369,14 +369,6 @@ export function getEditorSettings(state: Object): Object;
|
|
|
369
369
|
* @return {string} Rendering mode.
|
|
370
370
|
*/
|
|
371
371
|
export function getRenderingMode(state: Object): string;
|
|
372
|
-
/**
|
|
373
|
-
* Returns the current editing canvas device type.
|
|
374
|
-
*
|
|
375
|
-
* @param {Object} state Global application state.
|
|
376
|
-
*
|
|
377
|
-
* @return {string} Device type.
|
|
378
|
-
*/
|
|
379
|
-
export function getDeviceType(state: Object): string;
|
|
380
372
|
/**
|
|
381
373
|
* Returns true if the list view is opened.
|
|
382
374
|
*
|
|
@@ -586,6 +578,14 @@ export const isEditorPanelEnabled: Function;
|
|
|
586
578
|
* @return {boolean} Whether or not the panel is open.
|
|
587
579
|
*/
|
|
588
580
|
export const isEditorPanelOpened: Function;
|
|
581
|
+
/**
|
|
582
|
+
* Returns the current editing canvas device type.
|
|
583
|
+
*
|
|
584
|
+
* @param {Object} state Global application state.
|
|
585
|
+
*
|
|
586
|
+
* @return {string} Device type.
|
|
587
|
+
*/
|
|
588
|
+
export const getDeviceType: Function;
|
|
589
589
|
/**
|
|
590
590
|
* Returns the current editing mode.
|
|
591
591
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AA+DA;;;;;;;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;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,GAEJ,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,MAAM,OAAC,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;;;;;;;;;GASG;AACH,8CALW,MAAM,iBACN,MAAM,GAEL,GAAC,CAsBZ;AA6CD;;;;;;;;GAQG;AACH,+CAJW,MAAM,GAEL,MAAM,CAcjB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;;GAOG;AACH,8CALW,MAAM,eACN,MAAM,OAAC,GAEN,OAAO,CAYlB;AAED;;;;;;GAMG;AACH,8CAJW,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;GAMG;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+CD;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,+CALW,MAAM,GACL,gBAAgB,CAU3B;AAED;;;;;;;GAOG;AACH,6CALW,MAAM,GACL,gBAAgB,CAU3B;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,gBAAgB,CAI3B;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,wCAJW,MAAM,GAEL,MAAM,CAIjB;
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AA+DA;;;;;;;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;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,GAEJ,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,MAAM,OAAC,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;;;;;;;;;GASG;AACH,8CALW,MAAM,iBACN,MAAM,GAEL,GAAC,CAsBZ;AA6CD;;;;;;;;GAQG;AACH,+CAJW,MAAM,GAEL,MAAM,CAcjB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;;GAOG;AACH,8CALW,MAAM,eACN,MAAM,OAAC,GAEN,OAAO,CAYlB;AAED;;;;;;GAMG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AACH,oDAEE;AAEF;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,mCAAmE;AAEnE;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,0CACgD;AAEhD;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,4CAEE;AAaF;;;;;;GAMG;AACH,kHASE;AAEF;;;;;;;GAOG;AACH,wHAcE;AAEF;;;;;;;GAOG;AACH,oHAgCE;AAEF;;;;;;GAMG;AACH,wCAQE;;;;;;;;cAzlBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.7.0",
|
|
3
|
+
"version": "14.7.1-next.5368f64a9.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -32,40 +32,40 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.16.0",
|
|
35
|
-
"@wordpress/a11y": "^4.7.0",
|
|
36
|
-
"@wordpress/api-fetch": "^7.7.0",
|
|
37
|
-
"@wordpress/blob": "^4.7.0",
|
|
38
|
-
"@wordpress/block-editor": "^14.2.0",
|
|
39
|
-
"@wordpress/blocks": "^13.7.0",
|
|
40
|
-
"@wordpress/commands": "^1.7.0",
|
|
41
|
-
"@wordpress/components": "^28.
|
|
42
|
-
"@wordpress/compose": "^7.
|
|
43
|
-
"@wordpress/core-data": "^7.7.0",
|
|
44
|
-
"@wordpress/data": "^10.7.0",
|
|
45
|
-
"@wordpress/dataviews": "^4.3.0",
|
|
46
|
-
"@wordpress/date": "^5.7.0",
|
|
47
|
-
"@wordpress/deprecated": "^4.7.0",
|
|
48
|
-
"@wordpress/dom": "^4.7.0",
|
|
49
|
-
"@wordpress/element": "^6.7.0",
|
|
50
|
-
"@wordpress/hooks": "^4.7.0",
|
|
51
|
-
"@wordpress/html-entities": "^4.7.0",
|
|
52
|
-
"@wordpress/i18n": "^5.7.0",
|
|
53
|
-
"@wordpress/icons": "^10.7.0",
|
|
54
|
-
"@wordpress/interface": "^6.7.0",
|
|
55
|
-
"@wordpress/keyboard-shortcuts": "^5.7.0",
|
|
56
|
-
"@wordpress/keycodes": "^4.7.0",
|
|
57
|
-
"@wordpress/media-utils": "^5.
|
|
58
|
-
"@wordpress/notices": "^5.7.0",
|
|
59
|
-
"@wordpress/patterns": "^2.7.0",
|
|
60
|
-
"@wordpress/plugins": "^7.7.0",
|
|
61
|
-
"@wordpress/preferences": "^4.7.0",
|
|
62
|
-
"@wordpress/private-apis": "^1.7.0",
|
|
63
|
-
"@wordpress/reusable-blocks": "^5.7.0",
|
|
64
|
-
"@wordpress/rich-text": "^7.7.0",
|
|
65
|
-
"@wordpress/server-side-render": "^5.7.0",
|
|
66
|
-
"@wordpress/url": "^4.7.0",
|
|
67
|
-
"@wordpress/warning": "^3.7.0",
|
|
68
|
-
"@wordpress/wordcount": "^4.7.0",
|
|
35
|
+
"@wordpress/a11y": "^4.7.1-next.5368f64a9.0",
|
|
36
|
+
"@wordpress/api-fetch": "^7.7.1-next.5368f64a9.0",
|
|
37
|
+
"@wordpress/blob": "^4.7.1-next.5368f64a9.0",
|
|
38
|
+
"@wordpress/block-editor": "^14.2.1-next.5368f64a9.0",
|
|
39
|
+
"@wordpress/blocks": "^13.7.1-next.5368f64a9.0",
|
|
40
|
+
"@wordpress/commands": "^1.7.1-next.5368f64a9.0",
|
|
41
|
+
"@wordpress/components": "^28.8.1-next.5368f64a9.0",
|
|
42
|
+
"@wordpress/compose": "^7.8.1-next.5368f64a9.0",
|
|
43
|
+
"@wordpress/core-data": "^7.7.1-next.5368f64a9.0",
|
|
44
|
+
"@wordpress/data": "^10.7.1-next.5368f64a9.0",
|
|
45
|
+
"@wordpress/dataviews": "^4.3.1-next.5368f64a9.0",
|
|
46
|
+
"@wordpress/date": "^5.7.1-next.5368f64a9.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.7.1-next.5368f64a9.0",
|
|
48
|
+
"@wordpress/dom": "^4.7.1-next.5368f64a9.0",
|
|
49
|
+
"@wordpress/element": "^6.7.1-next.5368f64a9.0",
|
|
50
|
+
"@wordpress/hooks": "^4.7.1-next.5368f64a9.0",
|
|
51
|
+
"@wordpress/html-entities": "^4.7.1-next.5368f64a9.0",
|
|
52
|
+
"@wordpress/i18n": "^5.7.1-next.5368f64a9.0",
|
|
53
|
+
"@wordpress/icons": "^10.7.1-next.5368f64a9.0",
|
|
54
|
+
"@wordpress/interface": "^6.7.1-next.5368f64a9.0",
|
|
55
|
+
"@wordpress/keyboard-shortcuts": "^5.7.1-next.5368f64a9.0",
|
|
56
|
+
"@wordpress/keycodes": "^4.7.1-next.5368f64a9.0",
|
|
57
|
+
"@wordpress/media-utils": "^5.8.1-next.5368f64a9.0",
|
|
58
|
+
"@wordpress/notices": "^5.7.1-next.5368f64a9.0",
|
|
59
|
+
"@wordpress/patterns": "^2.7.1-next.5368f64a9.0",
|
|
60
|
+
"@wordpress/plugins": "^7.7.1-next.5368f64a9.0",
|
|
61
|
+
"@wordpress/preferences": "^4.7.1-next.5368f64a9.0",
|
|
62
|
+
"@wordpress/private-apis": "^1.7.1-next.5368f64a9.0",
|
|
63
|
+
"@wordpress/reusable-blocks": "^5.7.1-next.5368f64a9.0",
|
|
64
|
+
"@wordpress/rich-text": "^7.7.1-next.5368f64a9.0",
|
|
65
|
+
"@wordpress/server-side-render": "^5.7.1-next.5368f64a9.0",
|
|
66
|
+
"@wordpress/url": "^4.7.1-next.5368f64a9.0",
|
|
67
|
+
"@wordpress/warning": "^3.7.1-next.5368f64a9.0",
|
|
68
|
+
"@wordpress/wordcount": "^4.7.1-next.5368f64a9.0",
|
|
69
69
|
"change-case": "^4.1.2",
|
|
70
70
|
"client-zip": "^2.4.5",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "24934a1f5251bbee15045d1fd953d9c5650317cd"
|
|
89
89
|
}
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
for ( const [ attributeName, source ] of Object.entries( bindings ) ) {
|
|
23
23
|
// Use the key if the value is not set.
|
|
24
24
|
newValues[ attributeName ] =
|
|
25
|
-
meta?.[ source.args.key ]
|
|
25
|
+
meta?.[ source.args.key ] ?? source.args.key;
|
|
26
26
|
}
|
|
27
27
|
return newValues;
|
|
28
28
|
},
|
|
@@ -74,11 +74,11 @@ function Editor( {
|
|
|
74
74
|
<EditorInterface { ...props }>
|
|
75
75
|
{ extraContent }
|
|
76
76
|
</EditorInterface>
|
|
77
|
+
{ children }
|
|
77
78
|
<Sidebar
|
|
78
79
|
onActionPerformed={ onActionPerformed }
|
|
79
80
|
extraPanels={ extraSidebarPanels }
|
|
80
81
|
/>
|
|
81
|
-
{ children }
|
|
82
82
|
</ExperimentalEditorProvider>
|
|
83
83
|
) }
|
|
84
84
|
</>
|
|
@@ -146,13 +146,17 @@ function useGlobalStylesUserConfig() {
|
|
|
146
146
|
|
|
147
147
|
function useGlobalStylesBaseConfig() {
|
|
148
148
|
const baseConfig = useSelect( ( select ) => {
|
|
149
|
-
const {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
const {
|
|
150
|
+
__experimentalGetCurrentThemeBaseGlobalStyles,
|
|
151
|
+
getCurrentTheme,
|
|
152
|
+
canUser,
|
|
153
|
+
} = select( coreStore );
|
|
154
|
+
const currentTheme = getCurrentTheme();
|
|
155
|
+
|
|
156
|
+
return currentTheme &&
|
|
157
|
+
canUser( 'read', 'global-styles/themes', currentTheme.stylesheet )
|
|
158
|
+
? __experimentalGetCurrentThemeBaseGlobalStyles()
|
|
159
|
+
: undefined;
|
|
156
160
|
}, [] );
|
|
157
161
|
|
|
158
162
|
return [ !! baseConfig, baseConfig ];
|
|
@@ -142,6 +142,9 @@ function Header( {
|
|
|
142
142
|
forceIsAutosaveable={ forceIsDirty }
|
|
143
143
|
/>
|
|
144
144
|
<PostViewLink />
|
|
145
|
+
{ ( isWideViewport || ! showIconLabels ) && (
|
|
146
|
+
<PinnedItems.Slot scope="core" />
|
|
147
|
+
) }
|
|
145
148
|
{ ! customSaveButton && (
|
|
146
149
|
<PostPublishButtonOrToggle
|
|
147
150
|
forceIsDirty={ forceIsDirty }
|
|
@@ -151,9 +154,6 @@ function Header( {
|
|
|
151
154
|
/>
|
|
152
155
|
) }
|
|
153
156
|
{ customSaveButton }
|
|
154
|
-
{ ( isWideViewport || ! showIconLabels ) && (
|
|
155
|
-
<PinnedItems.Slot scope="core" />
|
|
156
|
-
) }
|
|
157
157
|
<MoreMenu />
|
|
158
158
|
</motion.div>
|
|
159
159
|
</div>
|
|
@@ -22,7 +22,6 @@ const { PrivateInserterLibrary } = unlock( blockEditorPrivateApis );
|
|
|
22
22
|
|
|
23
23
|
export default function InserterSidebar() {
|
|
24
24
|
const {
|
|
25
|
-
blockInsertionPoint,
|
|
26
25
|
blockSectionRootClientId,
|
|
27
26
|
inserterSidebarToggleRef,
|
|
28
27
|
insertionPoint,
|
|
@@ -35,7 +34,6 @@ export default function InserterSidebar() {
|
|
|
35
34
|
isPublishSidebarOpened,
|
|
36
35
|
} = unlock( select( editorStore ) );
|
|
37
36
|
const {
|
|
38
|
-
getBlockInsertionPoint,
|
|
39
37
|
getBlockRootClientId,
|
|
40
38
|
__unstableGetEditorMode,
|
|
41
39
|
getSectionRootClientId,
|
|
@@ -53,7 +51,6 @@ export default function InserterSidebar() {
|
|
|
53
51
|
return getBlockRootClientId();
|
|
54
52
|
};
|
|
55
53
|
return {
|
|
56
|
-
blockInsertionPoint: getBlockInsertionPoint(),
|
|
57
54
|
inserterSidebarToggleRef: getInserterSidebarToggleRef(),
|
|
58
55
|
insertionPoint: getInsertionPoint(),
|
|
59
56
|
showMostUsedBlocks: get( 'core', 'mostUsedBlocks' ),
|
|
@@ -92,9 +89,9 @@ export default function InserterSidebar() {
|
|
|
92
89
|
showInserterHelpPanel
|
|
93
90
|
shouldFocusBlock={ isMobileViewport }
|
|
94
91
|
rootClientId={
|
|
95
|
-
blockSectionRootClientId ??
|
|
92
|
+
blockSectionRootClientId ?? insertionPoint.rootClientId
|
|
96
93
|
}
|
|
97
|
-
__experimentalInsertionIndex={
|
|
94
|
+
__experimentalInsertionIndex={ insertionPoint.insertionIndex }
|
|
98
95
|
onSelect={ insertionPoint.onSelect }
|
|
99
96
|
__experimentalInitialTab={ insertionPoint.tab }
|
|
100
97
|
__experimentalInitialCategory={ insertionPoint.category }
|