@wordpress/editor 14.47.0 → 14.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/build/components/block-removal-warnings/index.cjs +0 -3
- package/build/components/block-removal-warnings/index.cjs.map +2 -2
- package/build/components/collab-sidebar/note-indicator-toolbar.cjs +49 -43
- package/build/components/collab-sidebar/note-indicator-toolbar.cjs.map +3 -3
- package/build/components/collaborators-overlay/use-block-highlighting.cjs +1 -8
- package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +3 -3
- package/build/components/collaborators-overlay/use-render-cursors.cjs +1 -7
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +3 -3
- package/build/components/more-menu/view-more-menu-group.cjs +1 -2
- package/build/components/more-menu/view-more-menu-group.cjs.map +2 -2
- package/build/components/page-attributes/parent.cjs +1 -0
- package/build/components/page-attributes/parent.cjs.map +2 -2
- package/build/components/post-publish-button/index.cjs +114 -157
- package/build/components/post-publish-button/index.cjs.map +3 -3
- package/build/components/post-revisions-preview/block-diff.cjs +21 -9
- package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
- package/build/components/post-revisions-preview/preserve-client-ids.cjs +2 -2
- package/build/components/post-revisions-preview/preserve-client-ids.cjs.map +2 -2
- package/build/components/provider/index.cjs +2 -0
- package/build/components/provider/index.cjs.map +3 -3
- package/build/components/provider/use-block-editor-settings.cjs +1 -1
- package/build/components/provider/use-block-editor-settings.cjs.map +2 -2
- package/build/components/provider/use-network-reconnect.cjs +51 -0
- package/build/components/provider/use-network-reconnect.cjs.map +7 -0
- package/build/components/revision-fields-diff/index.cjs +2 -2
- package/build/components/revision-fields-diff/index.cjs.map +2 -2
- package/build/components/sidebar/index.cjs +1 -4
- package/build/components/sidebar/index.cjs.map +2 -2
- package/build/components/template-actions-panel/block-theme-content.cjs +7 -1
- package/build/components/template-actions-panel/block-theme-content.cjs.map +2 -2
- package/build/components/upload-progress-snackbar/index.cjs +161 -0
- package/build/components/upload-progress-snackbar/index.cjs.map +7 -0
- package/build/components/upload-progress-snackbar/tracker.cjs +90 -0
- package/build/components/upload-progress-snackbar/tracker.cjs.map +7 -0
- package/build/private-apis.cjs +2 -0
- package/build/private-apis.cjs.map +3 -3
- package/build/store/selectors.cjs +1 -2
- package/build/store/selectors.cjs.map +2 -2
- package/build/utils/media-upload/index.cjs +16 -0
- package/build/utils/media-upload/index.cjs.map +3 -3
- package/build-module/components/block-removal-warnings/index.mjs +0 -3
- package/build-module/components/block-removal-warnings/index.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note-indicator-toolbar.mjs +53 -44
- package/build-module/components/collab-sidebar/note-indicator-toolbar.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs +1 -8
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs +1 -7
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/more-menu/view-more-menu-group.mjs +1 -2
- package/build-module/components/more-menu/view-more-menu-group.mjs.map +2 -2
- package/build-module/components/page-attributes/parent.mjs +1 -0
- package/build-module/components/page-attributes/parent.mjs.map +2 -2
- package/build-module/components/post-publish-button/index.mjs +116 -159
- package/build-module/components/post-publish-button/index.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/block-diff.mjs +20 -8
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/preserve-client-ids.mjs +1 -1
- package/build-module/components/post-revisions-preview/preserve-client-ids.mjs.map +1 -1
- package/build-module/components/provider/index.mjs +2 -0
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/provider/use-block-editor-settings.mjs +1 -1
- package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
- package/build-module/components/provider/use-network-reconnect.mjs +30 -0
- package/build-module/components/provider/use-network-reconnect.mjs.map +7 -0
- package/build-module/components/revision-fields-diff/index.mjs +2 -2
- package/build-module/components/revision-fields-diff/index.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +2 -11
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/template-actions-panel/block-theme-content.mjs +7 -1
- package/build-module/components/template-actions-panel/block-theme-content.mjs.map +2 -2
- package/build-module/components/upload-progress-snackbar/index.mjs +135 -0
- package/build-module/components/upload-progress-snackbar/index.mjs.map +7 -0
- package/build-module/components/upload-progress-snackbar/tracker.mjs +61 -0
- package/build-module/components/upload-progress-snackbar/tracker.mjs.map +7 -0
- package/build-module/private-apis.mjs +2 -0
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/store/selectors.mjs +1 -2
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/utils/media-upload/index.mjs +19 -0
- package/build-module/utils/media-upload/index.mjs.map +2 -2
- package/build-style/style-rtl.css +479 -84
- package/build-style/style.css +479 -84
- package/build-types/components/block-removal-warnings/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/add-comment.d.ts +6 -0
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comment-author-info.d.ts +8 -0
- package/build-types/components/collab-sidebar/comment-author-info.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comment-form.d.ts +9 -0
- package/build-types/components/collab-sidebar/comment-form.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts +6 -0
- package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comment-menu-item.d.ts +6 -0
- package/build-types/components/collab-sidebar/comment-menu-item.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comments.d.ts +10 -0
- package/build-types/components/collab-sidebar/comments.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts +0 -3
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts.map +1 -1
- package/build-types/components/document-bar/index.d.ts +2 -2
- package/build-types/components/document-bar/index.d.ts.map +1 -1
- package/build-types/components/global-styles-provider/index.d.ts +16 -0
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -0
- 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/view-more-menu-group.d.ts.map +1 -1
- package/build-types/components/page-attributes/parent.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts +6 -1
- package/build-types/components/post-publish-button/index.d.ts +9 -9
- package/build-types/components/post-publish-button/index.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/block-diff.d.ts +3 -0
- package/build-types/components/post-revisions-preview/block-diff.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +6 -1
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +6 -1
- package/build-types/components/post-text-editor/index.d.ts +1 -1
- package/build-types/components/post-text-editor/index.d.ts.map +1 -1
- package/build-types/components/post-text-editor/utils.d.ts +29 -0
- package/build-types/components/post-text-editor/utils.d.ts.map +1 -0
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/provider/use-network-reconnect.d.ts +8 -0
- package/build-types/components/provider/use-network-reconnect.d.ts.map +1 -0
- package/build-types/components/revision-fields-diff/index.d.ts +3 -0
- package/build-types/components/revision-fields-diff/index.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -1
- package/build-types/components/upload-progress-snackbar/index.d.ts +19 -0
- package/build-types/components/upload-progress-snackbar/index.d.ts.map +1 -0
- package/build-types/components/upload-progress-snackbar/stories/index.story.d.ts +28 -0
- package/build-types/components/upload-progress-snackbar/stories/index.story.d.ts.map +1 -0
- package/build-types/components/upload-progress-snackbar/tracker.d.ts +41 -0
- package/build-types/components/upload-progress-snackbar/tracker.d.ts.map +1 -0
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -1
- package/build-types/utils/media-upload/index.d.ts.map +1 -1
- package/package.json +55 -52
- package/src/components/README.md +1 -1
- package/src/components/block-removal-warnings/index.js +0 -7
- package/src/components/collab-sidebar/note-indicator-toolbar.js +73 -60
- package/src/components/collaborators-overlay/use-block-highlighting.ts +0 -9
- package/src/components/collaborators-overlay/use-render-cursors.ts +0 -8
- package/src/components/collaborators-presence/avatar/test/index.tsx +8 -3
- package/src/components/more-menu/view-more-menu-group.js +1 -2
- package/src/components/page-attributes/parent.js +1 -0
- package/src/components/post-publish-button/index.js +143 -192
- package/src/components/post-publish-button/test/index.js +137 -114
- package/src/components/post-revisions-preview/block-diff.js +63 -19
- package/src/components/post-revisions-preview/preserve-client-ids.js +1 -1
- package/src/components/post-revisions-preview/test/block-diff.js +109 -6
- package/src/components/provider/index.js +4 -0
- package/src/components/provider/test/use-network-reconnect.js +137 -0
- package/src/components/provider/use-block-editor-settings.js +2 -2
- package/src/components/provider/use-network-reconnect.js +44 -0
- package/src/components/revision-fields-diff/index.js +7 -2
- package/src/components/sidebar/index.js +2 -11
- package/src/components/template-actions-panel/block-theme-content.js +10 -1
- package/src/components/upload-progress-snackbar/README.md +26 -0
- package/src/components/upload-progress-snackbar/index.js +216 -0
- package/src/components/upload-progress-snackbar/stories/index.story.tsx +85 -0
- package/src/components/upload-progress-snackbar/style.scss +30 -0
- package/src/components/upload-progress-snackbar/test/index.js +199 -0
- package/src/components/upload-progress-snackbar/tracker.js +105 -0
- package/src/private-apis.js +2 -0
- package/src/store/selectors.js +1 -3
- package/src/style.scss +1 -0
- package/src/utils/media-upload/index.js +27 -0
- package/src/components/commands/index.native.js +0 -2
- package/src/components/deprecated.native.js +0 -47
- package/src/components/editor-help/add-blocks.native.js +0 -40
- package/src/components/editor-help/customize-blocks.native.js +0 -40
- package/src/components/editor-help/help-detail-navigation-screen.native.js +0 -67
- package/src/components/editor-help/help-get-support-button.native.js +0 -38
- package/src/components/editor-help/help-section-title.native.js +0 -29
- package/src/components/editor-help/help-topic-row.native.js +0 -33
- package/src/components/editor-help/icon-move-blocks.native.js +0 -10
- package/src/components/editor-help/index.native.js +0 -208
- package/src/components/editor-help/intro-to-blocks.native.js +0 -91
- package/src/components/editor-help/move-blocks.native.js +0 -55
- package/src/components/editor-help/remove-blocks.native.js +0 -35
- package/src/components/editor-help/style.android.scss +0 -6
- package/src/components/editor-help/style.ios.scss +0 -6
- package/src/components/editor-help/test/index.native.js +0 -81
- package/src/components/editor-help/view-sections.native.js +0 -79
- package/src/components/error-boundary/index.native.js +0 -192
- package/src/components/error-boundary/style.native.scss +0 -116
- package/src/components/index.native.js +0 -15
- package/src/components/offline-status/index.native.js +0 -99
- package/src/components/offline-status/style.native.scss +0 -28
- package/src/components/offline-status/test/index.native.js +0 -108
- package/src/components/post-title/index.native.js +0 -282
- package/src/components/post-title/style.native.scss +0 -13
- package/src/components/post-title/test/__snapshots__/index.native.js.snap +0 -25
- package/src/components/post-title/test/index.native.js +0 -78
- package/src/components/provider/index.native.js +0 -497
- package/src/components/provider/use-block-editor-settings.native.js +0 -48
- package/src/components/template-part-menu-items/index.native.js +0 -3
- package/src/hooks/index.native.js +0 -0
- package/src/index.native.js +0 -16
- package/src/private-apis.native.js +0 -33
- package/src/store/actions.native.js +0 -27
- package/src/store/reducer.native.js +0 -94
- package/src/store/selectors.native.js +0 -57
- package/src/store/test/actions.native.js +0 -16
- package/src/store/test/reducer.native.js +0 -36
- package/src/store/test/selectors.native.js +0 -28
- package/src/utils/index.native.js +0 -6
- package/src/utils/media-sideload/index.native.js +0 -1
- package/src/utils/media-upload/index.native.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-removal-warnings/index.js"],"names":[],"mappings":"AAAA;;GAEG;AAiFH,MAAM,CAAC,OAAO,UAAU,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-removal-warnings/index.js"],"names":[],"mappings":"AAAA;;GAEG;AAiFH,MAAM,CAAC,OAAO,UAAU,oBAAoB,uCAmB3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-comment.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/add-comment.js"],"names":[],"mappings":"AAuBA;;;;uCA+DC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-author-info.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-author-info.js"],"names":[],"mappings":";AAqBA;;;;;gCAwFC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default CommentForm;
|
|
2
|
+
declare function CommentForm({ onSubmit, onCancel, thread, submitButtonText, labelText, }: {
|
|
3
|
+
onSubmit: any;
|
|
4
|
+
onCancel: any;
|
|
5
|
+
thread: any;
|
|
6
|
+
submitButtonText: any;
|
|
7
|
+
labelText: any;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=comment-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-form.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-form.js"],"names":[],"mappings":";AAuBA;;;;;;gCA6EC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-indicator-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-indicator-toolbar.js"],"names":[],"mappings":";AAiBA;;;uCAwFC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-menu-item.js"],"names":[],"mappings":";AAiEA;;;gCAeC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function Comments({ threads: noteThreads, onEditComment, onAddReply, onCommentDelete, commentSidebarRef, isFloating, }: {
|
|
2
|
+
threads: any;
|
|
3
|
+
onEditComment: any;
|
|
4
|
+
onAddReply: any;
|
|
5
|
+
onCommentDelete: any;
|
|
6
|
+
commentSidebarRef: any;
|
|
7
|
+
isFloating?: boolean | undefined;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export default Comments;
|
|
10
|
+
//# sourceMappingURL=comments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comments.js"],"names":[],"mappings":"AA+CA;;;;;;;gCAuPC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note-indicator-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/note-indicator-toolbar.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"note-indicator-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/note-indicator-toolbar.js"],"names":[],"mappings":"AAwEA,wBAAgB,mBAAmB,CAAE,EAAE,OAAO,EAAE,IAAI,EAAE;;;CAAA,sCA8CrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-block-highlighting.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-block-highlighting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-block-highlighting.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-block-highlighting.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,kBAAkB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CACnC,cAAc,EAAE,WAAW,GAAG,IAAI,EAClC,mBAAmB,EAAE,QAAQ,GAAG,IAAI,EACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,EAAE,MAAM,GACb;IACF,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,4BAA4B,EAAE,MAAM,MAAM,IAAI,CAAC;CAC/C,CA8JA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASxD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,UAAU;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,cAAc,EAAE,WAAW,GAAG,IAAI,EAClC,mBAAmB,EAAE,QAAQ,GAAG,IAAI,EACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,EAAE,MAAM,GACb;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,yBAAyB,EAAE,MAAM,MAAM,IAAI,CAAA;CAAE,CAkIxE"}
|
|
@@ -18,6 +18,6 @@ export type IconType = import("@wordpress/components").IconType;
|
|
|
18
18
|
*/
|
|
19
19
|
export default function DocumentBar(props: {
|
|
20
20
|
title: string;
|
|
21
|
-
icon:
|
|
22
|
-
}):
|
|
21
|
+
icon: IconType;
|
|
22
|
+
}): React.ReactNode;
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/index.js"],"names":[],"mappings":"AAqCI,YAAoD,QAAQ,GAAlD,OAAO,uBAAuB,EAAE,QAAQ,CAAU;AAIhE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,KAAK,EANvC;IAAwB,KAAK,EAArB,MAAM,CACd;IAAwB,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/index.js"],"names":[],"mappings":"AAqCI,YAAoD,QAAQ,GAAlD,OAAO,uBAAuB,EAAE,QAAQ,CAAU;AAIhE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,KAAK,EANvC;IAAwB,KAAK,EAArB,MAAM,CACd;IAAwB,IAAI,EAApB,QAAQ,CAGhB;CAEuC,GAF9B,KAAK,CAAC,SAAS,CA4N1B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function useGlobalStylesContext(): {
|
|
2
|
+
isReady: any;
|
|
3
|
+
user: boolean | {
|
|
4
|
+
settings: any;
|
|
5
|
+
styles: any;
|
|
6
|
+
_links: any;
|
|
7
|
+
} | ((callbackOrObject: Function | Object, options?: Object) => void);
|
|
8
|
+
base: any;
|
|
9
|
+
merged: import("@wordpress/global-styles-engine").GlobalStylesConfig;
|
|
10
|
+
setUserConfig: boolean | {
|
|
11
|
+
settings: any;
|
|
12
|
+
styles: any;
|
|
13
|
+
_links: any;
|
|
14
|
+
} | ((callbackOrObject: Function | Object, options?: Object) => void);
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-provider/index.js"],"names":[],"mappings":"AA+KA,wBAAgB,sBAAsB;;;;;;4BAjDzB,WAAS,MAAM,YAEf,MAAM;;;;;;;;EA8ElB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Media metadata panel for the editor sidebar.
|
|
3
|
+
* Displays a form for editing media properties with PostCardPanel header.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} props - Component props.
|
|
6
|
+
* @param {Function} props.onActionPerformed - Callback when an action is performed.
|
|
7
|
+
* @return {Element} The MediaMetadataPanel component.
|
|
8
|
+
*/
|
|
9
|
+
export default function MediaMetadataPanel({ onActionPerformed }: {
|
|
10
|
+
onActionPerformed: Function;
|
|
11
|
+
}): Element;
|
|
12
|
+
//# sourceMappingURL=metadata-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata-panel.d.ts","sourceRoot":"","sources":["../../../src/components/media/metadata-panel.js"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,EAAE,iBAAiB,EAAE,EAH9D;IAAwB,iBAAiB,WACzC;CAE8D,WAoDhE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Media preview component for the editor.
|
|
3
|
+
* Connects the base MediaPreview component to the editor store.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} props - Additional props to spread on MediaPreview.
|
|
6
|
+
* @return {Element} The MediaPreview component.
|
|
7
|
+
*/
|
|
8
|
+
export default function MediaPreview(props: Object): Element;
|
|
9
|
+
//# sourceMappingURL=preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../src/components/media/preview.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,KAAK,QAAA,WAa1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-more-menu-group.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/view-more-menu-group.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-more-menu-group.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/view-more-menu-group.js"],"names":[],"mappings":"AAKA,QAAA,MAAc,iBAAiB;;;CAE9B,CAAC;eAIa,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAwCA,eAAO,MAAM,eAAe,yCAY3B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAwCA,eAAO,MAAM,eAAe,yCAY3B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,oBAAoB,8BAqJnC;AAkCD,wBAAgB,SAAS,gCA4ExB;eAEc,oBAAoB"}
|
|
@@ -17,6 +17,9 @@ declare const _default: {
|
|
|
17
17
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
18
18
|
readonly props: Readonly<{}>;
|
|
19
19
|
state: Readonly<{}>;
|
|
20
|
+
refs: {
|
|
21
|
+
[key: string]: import("react").ReactInstance;
|
|
22
|
+
};
|
|
20
23
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
21
24
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
22
25
|
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
@@ -37,6 +40,9 @@ declare const _default: {
|
|
|
37
40
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
38
41
|
readonly props: Readonly<{}>;
|
|
39
42
|
state: Readonly<{}>;
|
|
43
|
+
refs: {
|
|
44
|
+
[key: string]: import("react").ReactInstance;
|
|
45
|
+
};
|
|
40
46
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
41
47
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
42
48
|
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
@@ -49,7 +55,6 @@ declare const _default: {
|
|
|
49
55
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
50
56
|
}[];
|
|
51
57
|
contextType?: import("react").Context<any> | undefined;
|
|
52
|
-
propTypes?: any;
|
|
53
58
|
} | typeof PostLockedModal;
|
|
54
59
|
export default _default;
|
|
55
60
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare function PostPublishButton({ forceIsDirty, isOpen, isToggle, onSubmit, onToggle, setEntitiesSavedStatesCallback }: {
|
|
2
|
+
forceIsDirty: any;
|
|
3
|
+
isOpen: any;
|
|
4
|
+
isToggle: any;
|
|
5
|
+
onSubmit?: (() => void) | undefined;
|
|
6
|
+
onToggle: any;
|
|
7
|
+
setEntitiesSavedStatesCallback: any;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
8
9
|
/**
|
|
9
10
|
* Renders the publish button.
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
export default _default;
|
|
12
|
+
export default PostPublishButton;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/index.js"],"names":[],"mappings":"AAcA,wBAAgB,iBAAiB,CAAE,EAClC,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,QAAe,EACf,QAAQ,EACR,8BAA8B,EAC9B;;;;;;;CAAA,+BA6JA;AAED;;GAEG;eACY,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-diff.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/block-diff.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-diff.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/block-diff.js"],"names":[],"mappings":"AAAA;;GAEG;AAsvBH;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,cAAc,EAJxC,MAIwC,EAAE,eAAe,EAHzD,MAGyD,SAkBnE"}
|
|
@@ -21,6 +21,9 @@ declare const _default: {
|
|
|
21
21
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
22
22
|
readonly props: Readonly<{}>;
|
|
23
23
|
state: Readonly<{}>;
|
|
24
|
+
refs: {
|
|
25
|
+
[key: string]: import("react").ReactInstance;
|
|
26
|
+
};
|
|
24
27
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
25
28
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
26
29
|
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
@@ -41,6 +44,9 @@ declare const _default: {
|
|
|
41
44
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
42
45
|
readonly props: Readonly<{}>;
|
|
43
46
|
state: Readonly<{}>;
|
|
47
|
+
refs: {
|
|
48
|
+
[key: string]: import("react").ReactInstance;
|
|
49
|
+
};
|
|
44
50
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
45
51
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
46
52
|
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
@@ -53,7 +59,6 @@ declare const _default: {
|
|
|
53
59
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
54
60
|
}[];
|
|
55
61
|
contextType?: import("react").Context<any> | undefined;
|
|
56
|
-
propTypes?: any;
|
|
57
62
|
};
|
|
58
63
|
export default _default;
|
|
59
64
|
//# sourceMappingURL=flat-term-selector.d.ts.map
|
|
@@ -45,6 +45,9 @@ declare const _default: {
|
|
|
45
45
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
46
|
readonly props: Readonly<{}>;
|
|
47
47
|
state: Readonly<{}>;
|
|
48
|
+
refs: {
|
|
49
|
+
[key: string]: import("react").ReactInstance;
|
|
50
|
+
};
|
|
48
51
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
49
52
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
50
53
|
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
@@ -65,6 +68,9 @@ declare const _default: {
|
|
|
65
68
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
66
69
|
readonly props: Readonly<{}>;
|
|
67
70
|
state: Readonly<{}>;
|
|
71
|
+
refs: {
|
|
72
|
+
[key: string]: import("react").ReactInstance;
|
|
73
|
+
};
|
|
68
74
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
69
75
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
70
76
|
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
@@ -77,7 +83,6 @@ declare const _default: {
|
|
|
77
83
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
78
84
|
}[];
|
|
79
85
|
contextType?: import("react").Context<any> | undefined;
|
|
80
|
-
propTypes?: any;
|
|
81
86
|
};
|
|
82
87
|
export default _default;
|
|
83
88
|
//# sourceMappingURL=hierarchical-term-selector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-text-editor/index.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-text-editor/index.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,IAF1B,KAAK,CAAC,SAAS,CAwC1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diffs two strings into a list of `{ value, added?, removed? }` change parts.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} oldValue The previous string.
|
|
5
|
+
* @param {string} newValue The next string.
|
|
6
|
+
* @return {Array<Object>} The diff change parts.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDiff(oldValue: string, newValue: string): Object[];
|
|
9
|
+
/**
|
|
10
|
+
* Maps a cursor position from the old string to the new string given a diff.
|
|
11
|
+
*
|
|
12
|
+
* @param {number} position The cursor position in the old string.
|
|
13
|
+
* @param {Array<Object>} changes The diff returned by `getDiff`.
|
|
14
|
+
* @param {string} oldValue The previous string.
|
|
15
|
+
* @param {string} newValue The next string.
|
|
16
|
+
* @return {number} The adjusted cursor position in the new string.
|
|
17
|
+
*/
|
|
18
|
+
export declare function adjustPosition(position: number, changes: Object[], oldValue: string, newValue: string): number;
|
|
19
|
+
/**
|
|
20
|
+
* Diffs `oldValue` against `newValue` and maps a cursor `position` from the old
|
|
21
|
+
* string to the new one.
|
|
22
|
+
*
|
|
23
|
+
* @param {number} position The cursor position in the old string.
|
|
24
|
+
* @param {string} oldValue The previous string.
|
|
25
|
+
* @param {string} newValue The next string.
|
|
26
|
+
* @return {number} The adjusted cursor position in the new string.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getAdjustedCursorPosition(position: number, oldValue: string, newValue: string): number;
|
|
29
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/post-text-editor/utils.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAE,QAAQ,EAJtB,MAIsB,EAAE,QAAQ,EAHhC,MAGgC,YAoD1C;AAuCD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,QAAQ,EAN7B,MAM6B,EAAE,OAAO,UAAA,EAAE,QAAQ,EAJhD,MAIgD,EAAE,QAAQ,EAH1D,MAG0D,GAFzD,MAAM,CAmEjB;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAE,QAAQ,EALxC,MAKwC,EAAE,QAAQ,EAJlD,MAIkD,EAAE,QAAQ,EAH5D,MAG4D,GAF3D,MAAM,CASjB"}
|
|
@@ -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":"AA+IA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B,oEAqStC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,CAAE,KAAK,EArBlC;IAAgC,IAAI,AAApC,CACA,SAAA;IAAgC,kBAAkB,AAAlD,CAEA,SAAA;IAAgC,QAAQ,AAAxC,CAEA,SAAA;IAAgC,QAAQ,AAAxC,CAGA,4BAAA;CAakC,6BASpC;eAEc,cAAc"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook that pauses the media upload queue when the browser goes offline
|
|
3
|
+
* and resumes it when connectivity is restored.
|
|
4
|
+
*
|
|
5
|
+
* Only active when client-side media processing is enabled.
|
|
6
|
+
*/
|
|
7
|
+
export default function useNetworkReconnect(): void;
|
|
8
|
+
//# sourceMappingURL=use-network-reconnect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-network-reconnect.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-network-reconnect.js"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,SAyB1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-fields-diff/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-fields-diff/index.js"],"names":[],"mappings":"AAAA;;GAEG;AAsCH;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,gCAmD9C"}
|
|
@@ -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":"AA0JA,QAAA,MAAM,OAAO;;;iCAkEZ,CAAC;eAEa,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/block-theme-content.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/block-theme-content.js"],"names":[],"mappings":"AAiCA,MAAM,CAAC,OAAO,UAAU,2BAA2B,uCAiLlD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const UPLOAD_SPINNER: import("react").JSX.Element;
|
|
2
|
+
export declare const UPLOAD_DONE: import("react").JSX.Element;
|
|
3
|
+
/**
|
|
4
|
+
* Manages a snackbar notice that shows media upload progress while uploads are
|
|
5
|
+
* in progress. It creates/updates a notice via the notices store so that it
|
|
6
|
+
* positions and stacks with every other snackbar in the editor.
|
|
7
|
+
*
|
|
8
|
+
* Reads from two sources to cover both upload paths:
|
|
9
|
+
* - `@wordpress/upload-media` store (client-side media processing path).
|
|
10
|
+
* - An editor-local tracker populated by the traditional `mediaUpload`
|
|
11
|
+
* wrapper (non-CSM path — e.g. Safari, or when a filter disables CSM).
|
|
12
|
+
*
|
|
13
|
+
* Only counts original user-uploaded files (items without a `parentId`),
|
|
14
|
+
* ignoring generated subsizes/thumbnails.
|
|
15
|
+
*
|
|
16
|
+
* @return {null} This component renders nothing — it only manages a notice.
|
|
17
|
+
*/
|
|
18
|
+
export default function UploadProgressSnackbar(): null;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/upload-progress-snackbar/index.js"],"names":[],"mappings":"AAkDA,eAAO,MAAM,cAAc,6BAO1B,CAAC;AAEF,eAAO,MAAM,WAAW,6BAIvB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,IAFlC,IAAI,CAyIf"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
|
+
/**
|
|
6
|
+
* WordPress dependencies
|
|
7
|
+
*/
|
|
8
|
+
import { Snackbar } from '@wordpress/components';
|
|
9
|
+
/**
|
|
10
|
+
* The `UploadProgressSnackbar` component itself renders no UI: it manages a
|
|
11
|
+
* snackbar notice via the notices store while media uploads are in progress.
|
|
12
|
+
*
|
|
13
|
+
* These stories render the `Snackbar` with the same icon markup and text the
|
|
14
|
+
* notice produces, so the in-progress and completed states can be reviewed
|
|
15
|
+
* visually without running an actual upload.
|
|
16
|
+
*/
|
|
17
|
+
declare const meta: Meta<typeof Snackbar>;
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof Snackbar>;
|
|
20
|
+
export declare const Uploading: Story;
|
|
21
|
+
export declare const UploadingMultiple: Story;
|
|
22
|
+
export declare const Complete: Story;
|
|
23
|
+
/**
|
|
24
|
+
* All states shown together for quick comparison of the icon alignment and
|
|
25
|
+
* sizing between the spinner and the completion checkmark.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AllStates: Story;
|
|
28
|
+
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../src/components/upload-progress-snackbar/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjD;;;;;;;GAOG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAUhC,CAAC;eACa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,QAAQ,CAAE,CAAC;AAEzC,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers a new batch of files that have started uploading.
|
|
3
|
+
*
|
|
4
|
+
* @param {string[]} filenames Filenames in submission order.
|
|
5
|
+
*/
|
|
6
|
+
export declare function addFiles(filenames: string[]): void;
|
|
7
|
+
/**
|
|
8
|
+
* Advances the tracker by a number of finished files (success or error).
|
|
9
|
+
*
|
|
10
|
+
* @param {number} count Number of files that finished since the last call.
|
|
11
|
+
*/
|
|
12
|
+
export declare function advance(count: number): void;
|
|
13
|
+
/**
|
|
14
|
+
* Resets the tracker to its empty state.
|
|
15
|
+
*
|
|
16
|
+
* Test-only helper: `state` is a module-level singleton, so tests call this in
|
|
17
|
+
* `beforeEach` to isolate cases from one another. Not used in production -
|
|
18
|
+
* `advance` clears the state on its own once every file in a batch finishes.
|
|
19
|
+
*/
|
|
20
|
+
export declare function reset(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the current tracker state, or `null` when idle.
|
|
23
|
+
*
|
|
24
|
+
* @return {?{total: number, completed: number, pending: string[]}} Tracker state.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getState(): {
|
|
27
|
+
total: number;
|
|
28
|
+
completed: number;
|
|
29
|
+
pending: string[];
|
|
30
|
+
} | null;
|
|
31
|
+
/**
|
|
32
|
+
* React hook that subscribes to the tracker.
|
|
33
|
+
*
|
|
34
|
+
* @return {?{total: number, completed: number, pending: string[]}} Tracker state.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useTracker(): {
|
|
37
|
+
total: number;
|
|
38
|
+
completed: number;
|
|
39
|
+
pending: string[];
|
|
40
|
+
} | null;
|
|
41
|
+
//# sourceMappingURL=tracker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../../src/components/upload-progress-snackbar/tracker.js"],"names":[],"mappings":"AA2BA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAE,SAAS,EAFxB,MAAM,EAEkB,QAalC;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAE,KAAK,EAFnB,MAEmB,QAY7B;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,SAMpB;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAFX;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAC,OAAA,CAIjE;AASD;;;;GAIG;AACH,wBAAgB,UAAU,IAFb;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAC,OAAA,CAIjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAmCA,eAAO,MAAM,WAAW,IAAK,CAAC"}
|
|
@@ -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"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0B;;;;CAEtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;CAElC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;CAExC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;CAA8C,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;CAA0C,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,eAAe;;;;CAA8C,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;CACgB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAA+C,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAA+C,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;CAEhC,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;CAYjD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yCAAyC;;;;CAoBrD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC;;;;CAsBhD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;;;CAuBzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;CAM5B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAE,KAAK,QAAA,GAFjC,OAAO,CAIlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template-part-icon.d.ts","sourceRoot":"","sources":["../../src/utils/get-template-part-icon.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,cAAc,EAJxC,MAIwC,
|
|
1
|
+
{"version":3,"file":"get-template-part-icon.d.ts","sourceRoot":"","sources":["../../src/utils/get-template-part-icon.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,cAAc,EAJxC,MAIwC,GAFvC,MAAM,CAajB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/index.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,EACpC,cAAmB,EACnB,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,OAAc,EACd,YAAY,EACZ,SAAS,EACT,QAAe,EACf,EAlBE;IAAqB,cAAc,EAA3B,aAAO,CACf;IAAqB,YAAY,EAAzB,MAAM,CACd;IAAqB,SAAS,QAC9B;IAAqB,iBAAiB,EAA7B,MAAM,OAAA,CACf;IAAqB,OAAO,WAC5B;IAAqB,YAAY,WACjC;IAAqB,SAAS,WAC9B;IAAqB,QAAQ,EAArB,OAAO,CACjB;CAUA,QAwGA"}
|