@wordpress/core-data 7.45.0 → 7.45.1-next.v.202605131006.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/actions.cjs +8 -6
- package/build/actions.cjs.map +2 -2
- package/build/awareness/post-editor-awareness.cjs +1 -1
- package/build/awareness/post-editor-awareness.cjs.map +2 -2
- package/build/resolvers.cjs +2 -1
- package/build/resolvers.cjs.map +2 -2
- package/build/types.cjs.map +2 -2
- package/build/utils/block-selection-history.cjs +4 -1
- package/build/utils/block-selection-history.cjs.map +2 -2
- package/build/utils/crdt-blocks.cjs +157 -89
- package/build/utils/crdt-blocks.cjs.map +2 -2
- package/build/utils/crdt-selection.cjs +1 -1
- package/build/utils/crdt-selection.cjs.map +2 -2
- package/build/utils/crdt-user-selections.cjs +4 -1
- package/build/utils/crdt-user-selections.cjs.map +2 -2
- package/build/utils/crdt-utils.cjs +18 -6
- package/build/utils/crdt-utils.cjs.map +2 -2
- package/build/utils/crdt.cjs +12 -2
- package/build/utils/crdt.cjs.map +2 -2
- package/build-module/actions.mjs +8 -6
- package/build-module/actions.mjs.map +2 -2
- package/build-module/awareness/post-editor-awareness.mjs +5 -2
- package/build-module/awareness/post-editor-awareness.mjs.map +2 -2
- package/build-module/resolvers.mjs +2 -1
- package/build-module/resolvers.mjs.map +2 -2
- package/build-module/types.mjs.map +2 -2
- package/build-module/utils/block-selection-history.mjs +5 -1
- package/build-module/utils/block-selection-history.mjs.map +2 -2
- package/build-module/utils/crdt-blocks.mjs +162 -90
- package/build-module/utils/crdt-blocks.mjs.map +2 -2
- package/build-module/utils/crdt-selection.mjs +2 -1
- package/build-module/utils/crdt-selection.mjs.map +2 -2
- package/build-module/utils/crdt-user-selections.mjs +9 -2
- package/build-module/utils/crdt-user-selections.mjs.map +2 -2
- package/build-module/utils/crdt-utils.mjs +16 -6
- package/build-module/utils/crdt-utils.mjs.map +2 -2
- package/build-module/utils/crdt.mjs +13 -2
- package/build-module/utils/crdt.mjs.map +2 -2
- package/build-types/actions.d.ts +177 -64
- package/build-types/actions.d.ts.map +1 -1
- package/build-types/awareness/awareness-state.d.ts.map +1 -1
- package/build-types/awareness/base-awareness.d.ts +0 -3
- package/build-types/awareness/base-awareness.d.ts.map +1 -1
- package/build-types/awareness/post-editor-awareness.d.ts +1 -8
- package/build-types/awareness/post-editor-awareness.d.ts.map +1 -1
- package/build-types/awareness/typed-awareness.d.ts.map +1 -1
- package/build-types/batch/create-batch.d.ts +1 -1
- package/build-types/batch/create-batch.d.ts.map +1 -1
- package/build-types/batch/default-processor.d.ts.map +1 -1
- package/build-types/batch/index.d.ts +2 -2
- package/build-types/batch/index.d.ts.map +1 -1
- package/build-types/entities.d.ts +114 -87
- package/build-types/entities.d.ts.map +1 -1
- package/build-types/entity-context.d.ts +1 -1
- package/build-types/entity-context.d.ts.map +1 -1
- package/build-types/entity-provider.d.ts +2 -2
- package/build-types/entity-provider.d.ts.map +1 -1
- package/build-types/entity-types/attachment.d.ts.map +1 -1
- package/build-types/entity-types/base-entity-records.d.ts.map +1 -1
- package/build-types/entity-types/base.d.ts.map +1 -1
- package/build-types/entity-types/comment.d.ts.map +1 -1
- package/build-types/entity-types/font-collection.d.ts.map +1 -1
- package/build-types/entity-types/font-family.d.ts.map +1 -1
- package/build-types/entity-types/global-styles-revision.d.ts.map +1 -1
- package/build-types/entity-types/icon.d.ts.map +1 -1
- package/build-types/entity-types/menu-location.d.ts.map +1 -1
- package/build-types/entity-types/nav-menu-item.d.ts.map +1 -1
- package/build-types/entity-types/nav-menu.d.ts.map +1 -1
- package/build-types/entity-types/page.d.ts.map +1 -1
- package/build-types/entity-types/plugin.d.ts.map +1 -1
- package/build-types/entity-types/post-revision.d.ts.map +1 -1
- package/build-types/entity-types/post-status.d.ts.map +1 -1
- package/build-types/entity-types/post.d.ts.map +1 -1
- package/build-types/entity-types/settings.d.ts.map +1 -1
- package/build-types/entity-types/sidebar.d.ts.map +1 -1
- package/build-types/entity-types/taxonomy.d.ts.map +1 -1
- package/build-types/entity-types/term.d.ts.map +1 -1
- package/build-types/entity-types/theme.d.ts.map +1 -1
- package/build-types/entity-types/type.d.ts.map +1 -1
- package/build-types/entity-types/user.d.ts.map +1 -1
- package/build-types/entity-types/widget-type.d.ts.map +1 -1
- package/build-types/entity-types/widget.d.ts.map +1 -1
- package/build-types/entity-types/wp-template-part.d.ts.map +1 -1
- package/build-types/entity-types/wp-template.d.ts.map +1 -1
- package/build-types/fetch/__experimental-fetch-url-data.d.ts +2 -5
- package/build-types/fetch/__experimental-fetch-url-data.d.ts.map +1 -1
- package/build-types/fetch/index.d.ts +3 -3
- package/build-types/fetch/index.d.ts.map +1 -1
- package/build-types/footnotes/get-footnotes-order.d.ts.map +1 -1
- package/build-types/footnotes/get-rich-text-values-cached.d.ts.map +1 -1
- package/build-types/footnotes/index.d.ts +1 -1
- package/build-types/footnotes/index.d.ts.map +1 -1
- package/build-types/hooks/use-entity-block-editor.d.ts +1 -1
- package/build-types/hooks/use-entity-block-editor.d.ts.map +1 -1
- package/build-types/hooks/use-entity-id.d.ts.map +1 -1
- package/build-types/hooks/use-entity-prop.d.ts.map +1 -1
- package/build-types/hooks/use-resource-permissions.d.ts.map +1 -1
- package/build-types/index.d.ts +155 -153
- package/build-types/index.d.ts.map +1 -1
- package/build-types/locks/actions.d.ts +1 -1
- package/build-types/locks/actions.d.ts.map +1 -1
- package/build-types/locks/engine.d.ts +1 -1
- package/build-types/locks/engine.d.ts.map +1 -1
- package/build-types/locks/reducer.d.ts.map +1 -1
- package/build-types/locks/selectors.d.ts +2 -2
- package/build-types/locks/selectors.d.ts.map +1 -1
- package/build-types/locks/utils.d.ts +5 -5
- package/build-types/locks/utils.d.ts.map +1 -1
- package/build-types/name.d.ts +1 -1
- package/build-types/name.d.ts.map +1 -1
- package/build-types/private-actions.d.ts +45 -29
- package/build-types/private-actions.d.ts.map +1 -1
- package/build-types/private-apis.d.ts +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/queried-data/actions.d.ts +3 -3
- package/build-types/queried-data/actions.d.ts.map +1 -1
- package/build-types/queried-data/get-query-parts.d.ts +10 -34
- package/build-types/queried-data/get-query-parts.d.ts.map +1 -1
- package/build-types/queried-data/index.d.ts +3 -3
- package/build-types/queried-data/index.d.ts.map +1 -1
- package/build-types/queried-data/reducer.d.ts +7 -23
- package/build-types/queried-data/reducer.d.ts.map +1 -1
- package/build-types/queried-data/selectors.d.ts +3 -3
- package/build-types/queried-data/selectors.d.ts.map +1 -1
- package/build-types/reducer.d.ts +40 -32
- package/build-types/reducer.d.ts.map +1 -1
- package/build-types/resolvers.d.ts +130 -47
- package/build-types/resolvers.d.ts.map +1 -1
- package/build-types/selectors.d.ts +1 -1
- package/build-types/selectors.d.ts.map +1 -1
- package/build-types/types.d.ts +61 -6
- package/build-types/types.d.ts.map +1 -1
- package/build-types/utils/block-selection-history.d.ts.map +1 -1
- package/build-types/utils/conservative-map-item.d.ts.map +1 -1
- package/build-types/utils/crdt-blocks.d.ts +19 -9
- package/build-types/utils/crdt-blocks.d.ts.map +1 -1
- package/build-types/utils/crdt-selection.d.ts.map +1 -1
- package/build-types/utils/crdt-user-selections.d.ts.map +1 -1
- package/build-types/utils/crdt-utils.d.ts +35 -2
- package/build-types/utils/crdt-utils.d.ts.map +1 -1
- package/build-types/utils/crdt.d.ts.map +1 -1
- package/build-types/utils/forward-resolver.d.ts +2 -2
- package/build-types/utils/forward-resolver.d.ts.map +1 -1
- package/build-types/utils/get-nested-value.d.ts.map +1 -1
- package/build-types/utils/get-normalized-comma-separable.d.ts +1 -1
- package/build-types/utils/get-normalized-comma-separable.d.ts.map +1 -1
- package/build-types/utils/if-matching-action.d.ts +3 -3
- package/build-types/utils/if-matching-action.d.ts.map +1 -1
- package/build-types/utils/index.d.ts +12 -12
- package/build-types/utils/index.d.ts.map +1 -1
- package/build-types/utils/is-numeric-id.d.ts.map +1 -1
- package/build-types/utils/log-entity-deprecation.d.ts +1 -1
- package/build-types/utils/log-entity-deprecation.d.ts.map +1 -1
- package/build-types/utils/normalize-query-for-resolution.d.ts.map +1 -1
- package/build-types/utils/receive-intermediate-results.d.ts +1 -1
- package/build-types/utils/receive-intermediate-results.d.ts.map +1 -1
- package/build-types/utils/replace-action.d.ts +3 -3
- package/build-types/utils/replace-action.d.ts.map +1 -1
- package/build-types/utils/set-nested-value.d.ts.map +1 -1
- package/build-types/utils/user-permissions.d.ts +3 -3
- package/build-types/utils/user-permissions.d.ts.map +1 -1
- package/build-types/utils/with-weak-map-cache.d.ts +1 -1
- package/build-types/utils/with-weak-map-cache.d.ts.map +1 -1
- package/package.json +20 -20
- package/src/actions.js +7 -9
- package/src/awareness/post-editor-awareness.ts +5 -2
- package/src/resolvers.js +2 -1
- package/src/test/actions.js +58 -0
- package/src/test/resolvers.js +115 -2
- package/src/test/rtc-rich-text-offset-space.test.js +204 -0
- package/src/types.ts +63 -6
- package/src/utils/block-selection-history.ts +5 -1
- package/src/utils/crdt-blocks.ts +316 -116
- package/src/utils/crdt-selection.ts +2 -1
- package/src/utils/crdt-user-selections.ts +9 -2
- package/src/utils/crdt-utils.ts +53 -10
- package/src/utils/crdt.ts +30 -4
- package/src/utils/test/crdt-blocks.ts +74 -18
- package/src/utils/test/crdt-utils.ts +18 -2
- package/src/utils/test/rtc-rich-text-cursor-scope.test.js +267 -0
- package/src/utils/test/rtc-rich-text-offset-space.test.js +469 -0
package/build-types/index.d.ts
CHANGED
|
@@ -1,134 +1,76 @@
|
|
|
1
|
+
import * as selectors from './selectors';
|
|
1
2
|
/**
|
|
2
3
|
* Store definition for the code data namespace.
|
|
3
4
|
*
|
|
4
5
|
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
|
|
5
6
|
*/
|
|
6
|
-
export const store: import("@wordpress/data").StoreDescriptor<import("@wordpress/data").ReduxStoreConfig<
|
|
7
|
-
|
|
8
|
-
exclusive: any;
|
|
9
|
-
}) => () => Promise<any>;
|
|
10
|
-
__unstableReleaseStoreLock: (lock: any) => () => void;
|
|
11
|
-
receiveUserQuery(queryID: string, users: any[] | any): any;
|
|
7
|
+
export declare const store: import("@wordpress/data").StoreDescriptor<import("@wordpress/data").ReduxStoreConfig<unknown, {
|
|
8
|
+
receiveUserQuery(queryID: string, users: Array | any): any;
|
|
12
9
|
receiveCurrentUser(currentUser: any): any;
|
|
13
|
-
addEntities(entities:
|
|
14
|
-
receiveEntityRecords(kind: string, name: string, records:
|
|
10
|
+
addEntities(entities: Array): any;
|
|
11
|
+
receiveEntityRecords(kind: string, name: string, records: Array | any, query?: any | null, invalidateCache?: boolean | null, edits?: any | null, meta?: any | null): any;
|
|
15
12
|
receiveCurrentTheme(currentTheme: any): any;
|
|
16
13
|
__experimentalReceiveCurrentGlobalStylesId(currentGlobalStylesId: string): any;
|
|
17
14
|
__experimentalReceiveThemeBaseGlobalStyles(stylesheet: string, globalStyles: any): any;
|
|
18
|
-
__experimentalReceiveThemeGlobalStyleVariations(stylesheet: string, variations:
|
|
15
|
+
__experimentalReceiveThemeGlobalStyleVariations(stylesheet: string, variations: Array): any;
|
|
19
16
|
receiveThemeSupports(): any;
|
|
20
|
-
receiveThemeGlobalStyleRevisions(currentId: number, revisions:
|
|
17
|
+
receiveThemeGlobalStyleRevisions(currentId: number, revisions: Array): any;
|
|
21
18
|
receiveEmbedPreview(url: string, preview: any): any;
|
|
22
|
-
receiveUploadPermissions(hasUploadPermissions: boolean): any;
|
|
23
|
-
receiveUserPermission(key: string, isAllowed: boolean): any;
|
|
24
|
-
receiveUserPermissions(permissions: {
|
|
25
|
-
[x: string]: boolean;
|
|
26
|
-
}): any;
|
|
27
|
-
receiveAutosaves(postId: number, autosaves: any[] | any): any;
|
|
28
|
-
receiveNavigationFallbackId(fallbackId: integer): any;
|
|
29
|
-
receiveDefaultTemplateId(query: any, templateId: string): any;
|
|
30
|
-
setSyncConnectionStatus(kind: string, name: string, key: number | string | null, status: any | null): any;
|
|
31
19
|
deleteEntityRecord: (kind: string, name: string, recordId: number | string, query: any | null, { __unstableFetch, throwOnError }?: {
|
|
32
|
-
__unstableFetch?: Function
|
|
33
|
-
throwOnError?: boolean
|
|
20
|
+
__unstableFetch?: Function;
|
|
21
|
+
throwOnError?: boolean;
|
|
34
22
|
}) => ({ dispatch, resolveSelect }: {
|
|
35
23
|
dispatch: any;
|
|
36
24
|
resolveSelect: any;
|
|
37
25
|
}) => Promise<boolean | undefined>;
|
|
38
26
|
editEntityRecord: (kind: string, name: string, recordId: number | string, edits: any, options?: {
|
|
39
|
-
undoIgnore?: boolean
|
|
27
|
+
undoIgnore?: boolean;
|
|
40
28
|
}) => any;
|
|
41
29
|
clearEntityRecordEdits: (kind: string, name: string, recordId: number | string) => any;
|
|
42
30
|
undo: () => ({ select, dispatch }: {
|
|
43
|
-
select: any;
|
|
44
31
|
dispatch: any;
|
|
32
|
+
select: any;
|
|
45
33
|
}) => void;
|
|
46
34
|
redo: () => ({ select, dispatch }: {
|
|
47
|
-
select: any;
|
|
48
35
|
dispatch: any;
|
|
36
|
+
select: any;
|
|
49
37
|
}) => void;
|
|
50
38
|
__unstableCreateUndoLevel: () => any;
|
|
51
|
-
saveEntityRecord: (kind: string, name: string, record: any,
|
|
52
|
-
isAutosave?: boolean
|
|
53
|
-
__unstableFetch?: Function
|
|
54
|
-
throwOnError?: boolean
|
|
39
|
+
saveEntityRecord: (kind: string, name: string, record: any, options?: {
|
|
40
|
+
isAutosave?: boolean;
|
|
41
|
+
__unstableFetch?: Function;
|
|
42
|
+
throwOnError?: boolean;
|
|
55
43
|
}) => ({ select, resolveSelect, dispatch }: {
|
|
56
|
-
select: any;
|
|
57
|
-
resolveSelect: any;
|
|
58
44
|
dispatch: any;
|
|
45
|
+
resolveSelect: any;
|
|
46
|
+
select: any;
|
|
59
47
|
}) => Promise<any>;
|
|
60
|
-
__experimentalBatch: (requests:
|
|
48
|
+
__experimentalBatch: (requests: Array) => (thunkArgs: any) => Promise;
|
|
61
49
|
saveEditedEntityRecord: (kind: string, name: string, recordId: any, options?: any | undefined) => ({ select, dispatch, resolveSelect }: {
|
|
62
|
-
select: any;
|
|
63
50
|
dispatch: any;
|
|
64
51
|
resolveSelect: any;
|
|
65
|
-
}) => Promise<any>;
|
|
66
|
-
__experimentalSaveSpecifiedEntityEdits: (kind: string, name: string, recordId: number | string, itemsToSave: any[], options: any) => ({ select, dispatch, resolveSelect }: {
|
|
67
52
|
select: any;
|
|
53
|
+
}) => Promise<any>;
|
|
54
|
+
__experimentalSaveSpecifiedEntityEdits: (kind: string, name: string, recordId: number | string, itemsToSave: Array, options: any) => ({ select, dispatch, resolveSelect }: {
|
|
68
55
|
dispatch: any;
|
|
69
56
|
resolveSelect: any;
|
|
57
|
+
select: any;
|
|
70
58
|
}) => Promise<any>;
|
|
71
|
-
|
|
59
|
+
receiveUploadPermissions(hasUploadPermissions: boolean): any;
|
|
60
|
+
receiveUserPermission(key: string, isAllowed: boolean): any;
|
|
61
|
+
receiveUserPermissions(permissions: Record<string, boolean>): any;
|
|
62
|
+
receiveAutosaves(postId: number, autosaves: Array | any): any;
|
|
63
|
+
receiveNavigationFallbackId(fallbackId: integer): any;
|
|
64
|
+
receiveDefaultTemplateId(query: any, templateId: string): any;
|
|
65
|
+
receiveRevisions: (kind: string, name: string, recordKey: number | string, records: Array | any, query: any | null, invalidateCache: (boolean | null) | undefined, meta: any | null) => ({ dispatch, resolveSelect }: {
|
|
72
66
|
dispatch: any;
|
|
73
67
|
resolveSelect: any;
|
|
74
68
|
}) => Promise<void>;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}) => Promise<void>;
|
|
81
|
-
saveMedia: (data: Partial<import("./entity-types").Attachment<"edit">>, options?: {
|
|
82
|
-
throwOnError?: boolean;
|
|
83
|
-
}) => Promise<void>;
|
|
84
|
-
saveMenu: (data: Partial<import("./entity-types").NavMenu<"edit">>, options?: {
|
|
85
|
-
throwOnError?: boolean;
|
|
86
|
-
}) => Promise<void>;
|
|
87
|
-
saveMenuItem: (data: Partial<import("./entity-types").NavMenuItem<"edit">>, options?: {
|
|
88
|
-
throwOnError?: boolean;
|
|
89
|
-
}) => Promise<void>;
|
|
90
|
-
saveMenuLocation: (data: Partial<import("./entity-types").MenuLocation<"edit">>, options?: {
|
|
91
|
-
throwOnError?: boolean;
|
|
92
|
-
}) => Promise<void>;
|
|
93
|
-
savePlugin: (data: Partial<import("./entity-types").Plugin<"edit">>, options?: {
|
|
94
|
-
throwOnError?: boolean;
|
|
95
|
-
}) => Promise<void>;
|
|
96
|
-
savePostType: (data: Partial<import("./entity-types").Type<"edit">>, options?: {
|
|
97
|
-
throwOnError?: boolean;
|
|
98
|
-
}) => Promise<void>;
|
|
99
|
-
saveRevision: (data: Partial<import("./entity-types").PostRevision<"edit">>, options?: {
|
|
100
|
-
throwOnError?: boolean;
|
|
101
|
-
}) => Promise<void>;
|
|
102
|
-
saveSidebar: (data: Partial<import("./entity-types").Sidebar<"edit">>, options?: {
|
|
103
|
-
throwOnError?: boolean;
|
|
104
|
-
}) => Promise<void>;
|
|
105
|
-
saveSite: (data: Partial<import("./entity-types").Settings<"edit">>, options?: {
|
|
106
|
-
throwOnError?: boolean;
|
|
107
|
-
}) => Promise<void>;
|
|
108
|
-
saveStatus: (data: Partial<import("./entity-types").PostStatusObject<"edit">>, options?: {
|
|
109
|
-
throwOnError?: boolean;
|
|
110
|
-
}) => Promise<void>;
|
|
111
|
-
saveTaxonomy: (data: Partial<import("./entity-types").Taxonomy<"edit">>, options?: {
|
|
112
|
-
throwOnError?: boolean;
|
|
113
|
-
}) => Promise<void>;
|
|
114
|
-
saveTerm: (data: Partial<import("./entity-types").Term<"edit">>, options?: {
|
|
115
|
-
throwOnError?: boolean;
|
|
116
|
-
}) => Promise<void>;
|
|
117
|
-
saveTheme: (data: Partial<import("./entity-types").Theme<"edit">>, options?: {
|
|
118
|
-
throwOnError?: boolean;
|
|
119
|
-
}) => Promise<void>;
|
|
120
|
-
saveUnstableBase: (data: Partial<import("./entity-types").UnstableBase<"edit">>, options?: {
|
|
121
|
-
throwOnError?: boolean;
|
|
122
|
-
}) => Promise<void>;
|
|
123
|
-
saveUser: (data: Partial<import("./entity-types").User<"edit">>, options?: {
|
|
124
|
-
throwOnError?: boolean;
|
|
125
|
-
}) => Promise<void>;
|
|
126
|
-
saveWidget: (data: Partial<import("./entity-types").Widget<"edit">>, options?: {
|
|
127
|
-
throwOnError?: boolean;
|
|
128
|
-
}) => Promise<void>;
|
|
129
|
-
saveWidgetType: (data: Partial<import("./entity-types").WidgetType<"edit">>, options?: {
|
|
130
|
-
throwOnError?: boolean;
|
|
131
|
-
}) => Promise<void>;
|
|
69
|
+
setSyncConnectionStatus(kind: string, name: string, key: number | string | null, status: any | null): any;
|
|
70
|
+
__unstableAcquireStoreLock: (store: any, path: any, { exclusive }: {
|
|
71
|
+
exclusive: any;
|
|
72
|
+
}) => () => Promise<unknown>;
|
|
73
|
+
__unstableReleaseStoreLock: (lock: any) => () => void;
|
|
132
74
|
deleteComment: (id: number | string, query?: {
|
|
133
75
|
[x: string]: any;
|
|
134
76
|
}, options?: {
|
|
@@ -224,17 +166,100 @@ export const store: import("@wordpress/data").StoreDescriptor<import("@wordpress
|
|
|
224
166
|
}, options?: {
|
|
225
167
|
throwOnError?: boolean;
|
|
226
168
|
}) => Promise<void>;
|
|
169
|
+
saveComment: (data: Partial<import("./entity-types").Comment<"edit">>, options?: {
|
|
170
|
+
throwOnError?: boolean;
|
|
171
|
+
}) => Promise<void>;
|
|
172
|
+
saveGlobalStyles: (data: Partial<import("./entity-types").GlobalStylesRevision<"edit">>, options?: {
|
|
173
|
+
throwOnError?: boolean;
|
|
174
|
+
}) => Promise<void>;
|
|
175
|
+
saveMedia: (data: Partial<import("./entity-types").Attachment<"edit">>, options?: {
|
|
176
|
+
throwOnError?: boolean;
|
|
177
|
+
}) => Promise<void>;
|
|
178
|
+
saveMenu: (data: Partial<import("./entity-types").NavMenu<"edit">>, options?: {
|
|
179
|
+
throwOnError?: boolean;
|
|
180
|
+
}) => Promise<void>;
|
|
181
|
+
saveMenuItem: (data: Partial<import("./entity-types").NavMenuItem<"edit">>, options?: {
|
|
182
|
+
throwOnError?: boolean;
|
|
183
|
+
}) => Promise<void>;
|
|
184
|
+
saveMenuLocation: (data: Partial<import("./entity-types").MenuLocation<"edit">>, options?: {
|
|
185
|
+
throwOnError?: boolean;
|
|
186
|
+
}) => Promise<void>;
|
|
187
|
+
savePlugin: (data: Partial<import("./entity-types").Plugin<"edit">>, options?: {
|
|
188
|
+
throwOnError?: boolean;
|
|
189
|
+
}) => Promise<void>;
|
|
190
|
+
savePostType: (data: Partial<import("./entity-types").Type<"edit">>, options?: {
|
|
191
|
+
throwOnError?: boolean;
|
|
192
|
+
}) => Promise<void>;
|
|
193
|
+
saveRevision: (data: Partial<import("./entity-types").PostRevision<"edit">>, options?: {
|
|
194
|
+
throwOnError?: boolean;
|
|
195
|
+
}) => Promise<void>;
|
|
196
|
+
saveSidebar: (data: Partial<import("./entity-types").Sidebar<"edit">>, options?: {
|
|
197
|
+
throwOnError?: boolean;
|
|
198
|
+
}) => Promise<void>;
|
|
199
|
+
saveSite: (data: Partial<import("./entity-types").Settings<"edit">>, options?: {
|
|
200
|
+
throwOnError?: boolean;
|
|
201
|
+
}) => Promise<void>;
|
|
202
|
+
saveStatus: (data: Partial<import("./entity-types").PostStatusObject<"edit">>, options?: {
|
|
203
|
+
throwOnError?: boolean;
|
|
204
|
+
}) => Promise<void>;
|
|
205
|
+
saveTaxonomy: (data: Partial<import("./entity-types").Taxonomy<"edit">>, options?: {
|
|
206
|
+
throwOnError?: boolean;
|
|
207
|
+
}) => Promise<void>;
|
|
208
|
+
saveTerm: (data: Partial<import("./entity-types").Term<"edit">>, options?: {
|
|
209
|
+
throwOnError?: boolean;
|
|
210
|
+
}) => Promise<void>;
|
|
211
|
+
saveTheme: (data: Partial<import("./entity-types").Theme<"edit">>, options?: {
|
|
212
|
+
throwOnError?: boolean;
|
|
213
|
+
}) => Promise<void>;
|
|
214
|
+
saveUnstableBase: (data: Partial<import("./entity-types").UnstableBase<"edit">>, options?: {
|
|
215
|
+
throwOnError?: boolean;
|
|
216
|
+
}) => Promise<void>;
|
|
217
|
+
saveUser: (data: Partial<import("./entity-types").User<"edit">>, options?: {
|
|
218
|
+
throwOnError?: boolean;
|
|
219
|
+
}) => Promise<void>;
|
|
220
|
+
saveWidget: (data: Partial<import("./entity-types").Widget<"edit">>, options?: {
|
|
221
|
+
throwOnError?: boolean;
|
|
222
|
+
}) => Promise<void>;
|
|
223
|
+
saveWidgetType: (data: Partial<import("./entity-types").WidgetType<"edit">>, options?: {
|
|
224
|
+
throwOnError?: boolean;
|
|
225
|
+
}) => Promise<void>;
|
|
227
226
|
}, {
|
|
227
|
+
isRequestingEmbedPreview: {
|
|
228
|
+
(state: selectors.State, url: string): boolean;
|
|
229
|
+
isRegistrySelector?: boolean;
|
|
230
|
+
registry?: any;
|
|
231
|
+
};
|
|
228
232
|
getAuthors(state: selectors.State, query?: selectors.GetRecordsHttpQuery): import("./entity-types").User[];
|
|
229
|
-
getCurrentUser(state: selectors.State): import("./entity-types").User<
|
|
233
|
+
getCurrentUser(state: selectors.State): import("./entity-types").User<'view'>;
|
|
234
|
+
getUserQueryResults: ((state: selectors.State, queryID: string) => import("./entity-types").User<'edit'>[]) & import("rememo").EnhancedSelector;
|
|
230
235
|
getEntitiesByKind(state: selectors.State, kind: string): Array<any>;
|
|
236
|
+
getEntitiesConfig: ((state: selectors.State, kind: string) => Array<any>) & import("rememo").EnhancedSelector;
|
|
231
237
|
getEntity(state: selectors.State, kind: string, name: string): any;
|
|
232
238
|
getEntityConfig(state: selectors.State, kind: string, name: string): any;
|
|
239
|
+
getEntityRecord: selectors.GetEntityRecord;
|
|
233
240
|
hasEntityRecord(state: selectors.State, kind: string, name: string, key?: string | number, query?: selectors.GetRecordsHttpQuery): boolean;
|
|
234
241
|
__experimentalGetEntityRecordNoResolver<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, kind: string, name: string, key: string | number): EntityRecord | undefined;
|
|
242
|
+
getRawEntityRecord: (<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, kind: string, name: string, key: string | number) => EntityRecord | undefined) & import("rememo").EnhancedSelector;
|
|
235
243
|
hasEntityRecords(state: selectors.State, kind: string, name: string, query?: selectors.GetRecordsHttpQuery): boolean;
|
|
244
|
+
getEntityRecords: selectors.GetEntityRecords;
|
|
245
|
+
getEntityRecordsTotalItems: (state: selectors.State, kind: string, name: string, query: selectors.GetRecordsHttpQuery) => number | null;
|
|
246
|
+
getEntityRecordsTotalPages: (state: selectors.State, kind: string, name: string, query: selectors.GetRecordsHttpQuery) => number | null;
|
|
247
|
+
__experimentalGetDirtyEntityRecords: ((state: selectors.State) => Array<{
|
|
248
|
+
title: string;
|
|
249
|
+
key: string | number;
|
|
250
|
+
name: string;
|
|
251
|
+
kind: string;
|
|
252
|
+
}>) & import("rememo").EnhancedSelector;
|
|
253
|
+
__experimentalGetEntitiesBeingSaved: ((state: selectors.State) => Array<{
|
|
254
|
+
title: string;
|
|
255
|
+
key: string | number;
|
|
256
|
+
name: string;
|
|
257
|
+
kind: string;
|
|
258
|
+
}>) & import("rememo").EnhancedSelector;
|
|
236
259
|
getEntityRecordEdits(state: selectors.State, kind: string, name: string, recordId: string | number): any;
|
|
260
|
+
getEntityRecordNonTransientEdits: ((state: selectors.State, kind: string, name: string, recordId: string | number) => any) & import("rememo").EnhancedSelector;
|
|
237
261
|
hasEditsForEntityRecord(state: selectors.State, kind: string, name: string, recordId: string | number): boolean;
|
|
262
|
+
getEditedEntityRecord: (<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, kind: string, name: string, recordId: string | number) => import("./entity-types").Updatable<EntityRecord> | false) & import("rememo").EnhancedSelector;
|
|
238
263
|
isAutosavingEntityRecord(state: selectors.State, kind: string, name: string, recordId: string | number): boolean;
|
|
239
264
|
isSavingEntityRecord(state: selectors.State, kind: string, name: string, recordId: string | number): boolean;
|
|
240
265
|
isDeletingEntityRecord(state: selectors.State, kind: string, name: string, recordId: string | number): boolean;
|
|
@@ -257,6 +282,11 @@ export const store: import("@wordpress/data").StoreDescriptor<import("@wordpress
|
|
|
257
282
|
canUserEditEntityRecord(state: selectors.State, kind: string, name: string, recordId: string | number): boolean | undefined;
|
|
258
283
|
getAutosaves(state: selectors.State, postType: string, postId: string | number): Array<any> | undefined;
|
|
259
284
|
getAutosave<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, postType: string, postId: string | number, authorId: string | number): EntityRecord | undefined;
|
|
285
|
+
hasFetchedAutosaves: {
|
|
286
|
+
(state: selectors.State, postType: string, postId: string | number): boolean;
|
|
287
|
+
isRegistrySelector?: boolean;
|
|
288
|
+
registry?: any;
|
|
289
|
+
};
|
|
260
290
|
getReferenceByDistinctEdits(state: any): any;
|
|
261
291
|
__experimentalGetCurrentThemeBaseGlobalStyles(state: selectors.State): any;
|
|
262
292
|
__experimentalGetCurrentThemeGlobalStylesVariations(state: selectors.State): string | null;
|
|
@@ -269,86 +299,58 @@ export const store: import("@wordpress/data").StoreDescriptor<import("@wordpress
|
|
|
269
299
|
is_custom?: boolean;
|
|
270
300
|
ignore_empty?: boolean;
|
|
271
301
|
}): string;
|
|
302
|
+
getRevisions: (state: selectors.State, kind: string, name: string, recordKey: string | number, query?: selectors.GetRecordsHttpQuery) => (Record<import("./entity-types").Context, Record<number, import("./entity-types").GlobalStylesRevision>> | Record<import("./entity-types").Context, Record<number, import("./entity-types").PostRevision>>)[] | null;
|
|
272
303
|
hasRevision(state: selectors.State, kind: string, name: string, recordKey: string | number, revisionKey: string | number, query?: selectors.GetRecordsHttpQuery): boolean;
|
|
304
|
+
getRevision: ((state: selectors.State, kind: string, name: string, recordKey: string | number, revisionKey: string | number, query?: selectors.GetRecordsHttpQuery) => (Record<import("./entity-types").Context, Record<number, import("./entity-types").GlobalStylesRevision>> | Record<import("./entity-types").Context, Record<number, import("./entity-types").PostRevision>>) | Record<PropertyKey, never> | undefined) & import("rememo").EnhancedSelector;
|
|
273
305
|
getSyncConnectionStatus(state: selectors.State): import("@wordpress/sync").ConnectionStatus | undefined;
|
|
274
|
-
isRequestingEmbedPreview: {
|
|
275
|
-
(state: selectors.State, url: string): boolean;
|
|
276
|
-
isRegistrySelector?: boolean;
|
|
277
|
-
registry?: any;
|
|
278
|
-
};
|
|
279
|
-
getUserQueryResults: ((state: selectors.State, queryID: string) => import("./entity-types").User<"edit">[]) & import("rememo").EnhancedSelector;
|
|
280
|
-
getEntitiesConfig: ((state: selectors.State, kind: string) => Array<any>) & import("rememo").EnhancedSelector;
|
|
281
|
-
getEntityRecord: selectors.GetEntityRecord;
|
|
282
|
-
getRawEntityRecord: (<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, kind: string, name: string, key: string | number) => EntityRecord | undefined) & import("rememo").EnhancedSelector;
|
|
283
|
-
getEntityRecords: selectors.GetEntityRecords;
|
|
284
|
-
getEntityRecordsTotalItems: (state: selectors.State, kind: string, name: string, query: selectors.GetRecordsHttpQuery) => number | null;
|
|
285
|
-
getEntityRecordsTotalPages: (state: selectors.State, kind: string, name: string, query: selectors.GetRecordsHttpQuery) => number | null;
|
|
286
|
-
__experimentalGetDirtyEntityRecords: ((state: selectors.State) => Array<{
|
|
287
|
-
title: string;
|
|
288
|
-
key: string | number;
|
|
289
|
-
name: string;
|
|
290
|
-
kind: string;
|
|
291
|
-
}>) & import("rememo").EnhancedSelector;
|
|
292
|
-
__experimentalGetEntitiesBeingSaved: ((state: selectors.State) => Array<{
|
|
293
|
-
title: string;
|
|
294
|
-
key: string | number;
|
|
295
|
-
name: string;
|
|
296
|
-
kind: string;
|
|
297
|
-
}>) & import("rememo").EnhancedSelector;
|
|
298
|
-
getEntityRecordNonTransientEdits: ((state: selectors.State, kind: string, name: string, recordId: string | number) => any) & import("rememo").EnhancedSelector;
|
|
299
|
-
getEditedEntityRecord: (<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, kind: string, name: string, recordId: string | number) => import("./entity-types").Updatable<EntityRecord> | false) & import("rememo").EnhancedSelector;
|
|
300
|
-
hasFetchedAutosaves: {
|
|
301
|
-
(state: selectors.State, postType: string, postId: string | number): boolean;
|
|
302
|
-
isRegistrySelector?: boolean;
|
|
303
|
-
registry?: any;
|
|
304
|
-
};
|
|
305
|
-
getRevisions: (state: selectors.State, kind: string, name: string, recordKey: string | number, query?: selectors.GetRecordsHttpQuery) => (Record<import("./entity-types").Context, Record<number, import("./entity-types").PostRevision>> | Record<import("./entity-types").Context, Record<number, import("./entity-types").GlobalStylesRevision>>)[] | null;
|
|
306
|
-
getRevision: ((state: selectors.State, kind: string, name: string, recordKey: string | number, revisionKey: string | number, query?: selectors.GetRecordsHttpQuery) => (Record<import("./entity-types").Context, Record<number, import("./entity-types").PostRevision>> | Record<import("./entity-types").Context, Record<number, import("./entity-types").GlobalStylesRevision>>) | Record<PropertyKey, never> | undefined) & import("rememo").EnhancedSelector;
|
|
307
306
|
getComment: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Comment<"edit"> | undefined;
|
|
307
|
+
getComments: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Comment<"edit">[] | null;
|
|
308
308
|
getGlobalStyles: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").GlobalStylesRevision<"edit"> | undefined;
|
|
309
309
|
getMedia: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Attachment<"edit"> | undefined;
|
|
310
|
+
getMediaItems: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Attachment<"edit">[] | null;
|
|
310
311
|
getMenu: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenu<"edit"> | undefined;
|
|
311
312
|
getMenuItem: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenuItem<"edit"> | undefined;
|
|
313
|
+
getMenuItems: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenuItem<"edit">[] | null;
|
|
312
314
|
getMenuLocation: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").MenuLocation<"edit"> | undefined;
|
|
315
|
+
getMenuLocations: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").MenuLocation<"edit">[] | null;
|
|
316
|
+
getMenus: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenu<"edit">[] | null;
|
|
313
317
|
getPlugin: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Plugin<"edit"> | undefined;
|
|
318
|
+
getPlugins: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Plugin<"edit">[] | null;
|
|
314
319
|
getPostType: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Type<"edit"> | undefined;
|
|
320
|
+
getPostTypes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Type<"edit">[] | null;
|
|
315
321
|
getSidebar: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Sidebar<"edit"> | undefined;
|
|
322
|
+
getSidebars: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Sidebar<"edit">[] | null;
|
|
316
323
|
getSite: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Settings<"edit"> | undefined;
|
|
324
|
+
getSites: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Settings<"edit">[] | null;
|
|
317
325
|
getStatus: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").PostStatusObject<"edit"> | undefined;
|
|
326
|
+
getStatuses: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").PostStatusObject<"edit">[] | null;
|
|
327
|
+
getTaxonomies: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Taxonomy<"edit">[] | null;
|
|
318
328
|
getTaxonomy: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Taxonomy<"edit"> | undefined;
|
|
319
329
|
getTerm: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Term<"edit"> | undefined;
|
|
330
|
+
getTerms: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Term<"edit">[] | null;
|
|
320
331
|
getTheme: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Theme<"edit"> | undefined;
|
|
332
|
+
getThemes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Theme<"edit">[] | null;
|
|
321
333
|
getUnstableBase: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").UnstableBase<"edit"> | undefined;
|
|
334
|
+
getUnstableBases: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").UnstableBase<"edit">[] | null;
|
|
322
335
|
getUser: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").User<"edit"> | undefined;
|
|
336
|
+
getUsers: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").User<"edit">[] | null;
|
|
323
337
|
getWidget: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Widget<"edit"> | undefined;
|
|
324
338
|
getWidgetType: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").WidgetType<"edit"> | undefined;
|
|
325
|
-
getComments: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Comment<"edit">[] | null;
|
|
326
|
-
getMediaItems: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Attachment<"edit">[] | null;
|
|
327
|
-
getMenus: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenu<"edit">[] | null;
|
|
328
|
-
getMenuItems: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenuItem<"edit">[] | null;
|
|
329
|
-
getMenuLocations: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").MenuLocation<"edit">[] | null;
|
|
330
|
-
getPlugins: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Plugin<"edit">[] | null;
|
|
331
|
-
getPostTypes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Type<"edit">[] | null;
|
|
332
|
-
getSidebars: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Sidebar<"edit">[] | null;
|
|
333
|
-
getSites: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Settings<"edit">[] | null;
|
|
334
|
-
getStatuses: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").PostStatusObject<"edit">[] | null;
|
|
335
|
-
getTaxonomies: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Taxonomy<"edit">[] | null;
|
|
336
|
-
getTerms: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Term<"edit">[] | null;
|
|
337
|
-
getThemes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Theme<"edit">[] | null;
|
|
338
|
-
getUnstableBases: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").UnstableBase<"edit">[] | null;
|
|
339
|
-
getUsers: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").User<"edit">[] | null;
|
|
340
|
-
getWidgets: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Widget<"edit">[] | null;
|
|
341
339
|
getWidgetTypes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").WidgetType<"edit">[] | null;
|
|
340
|
+
getWidgets: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Widget<"edit">[] | null;
|
|
342
341
|
}>>;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
export
|
|
348
|
-
export
|
|
349
|
-
export
|
|
350
|
-
export * from
|
|
351
|
-
export * from
|
|
352
|
-
export * from
|
|
353
|
-
|
|
342
|
+
/**
|
|
343
|
+
* Enums cannot be exported private without losing the ability to narrow types
|
|
344
|
+
* based on their values (they blur to string type).
|
|
345
|
+
*/
|
|
346
|
+
export { SelectionType } from './utils/crdt-user-selections';
|
|
347
|
+
export { SelectionDirection } from './types';
|
|
348
|
+
export { default as EntityProvider } from './entity-provider';
|
|
349
|
+
export * from './entity-provider';
|
|
350
|
+
export * from './entity-types';
|
|
351
|
+
export * from './awareness/types';
|
|
352
|
+
export * from './fetch';
|
|
353
|
+
export * from './hooks';
|
|
354
|
+
export * from './private-apis';
|
|
355
|
+
export * from './types';
|
|
354
356
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AASA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAoHzC;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAgD,CAAC;AAKnE;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default function createLocksActions(): {
|
|
2
2
|
__unstableAcquireStoreLock: (store: any, path: any, { exclusive }: {
|
|
3
3
|
exclusive: any;
|
|
4
|
-
}) => () => Promise<
|
|
4
|
+
}) => () => Promise<unknown>;
|
|
5
5
|
__unstableReleaseStoreLock: (lock: any) => () => void;
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/locks/actions.js"],"names":[],"mappings":"AAKA;;;;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/locks/actions.js"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,kBAAkB;;;;;EAYzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/locks/engine.js"],"names":[],"mappings":"AAMA;;;
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/locks/engine.js"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,WAAW;;;EAoClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/locks/reducer.js"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/locks/reducer.js"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAE,KAAK,KAAgB,EAAE,MAAM,KAAA,OAwC3D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export function getPendingLockRequests(state: any): any;
|
|
2
|
-
export function isLockAvailable(state: any, store: any, path: any, { exclusive }: {
|
|
1
|
+
export declare function getPendingLockRequests(state: any): any;
|
|
2
|
+
export declare function isLockAvailable(state: any, store: any, path: any, { exclusive }: {
|
|
3
3
|
exclusive: any;
|
|
4
4
|
}): boolean;
|
|
5
5
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/locks/selectors.js"],"names":[],"mappings":"AAUA,
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/locks/selectors.js"],"names":[],"mappings":"AAUA,wBAAgB,sBAAsB,CAAE,KAAK,KAAA,OAE5C;AAED,wBAAgB,eAAe,CAAE,KAAK,KAAA,EAAE,KAAK,KAAA,EAAE,IAAI,KAAA,EAAE,EAAE,SAAS,EAAE;;CAAA,WA0BjE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function deepCopyLocksTreePath(tree: any, path: any): any;
|
|
2
|
-
export function getNode(tree: any, path: any): any;
|
|
3
|
-
export function iteratePath(tree: any, path: any): Generator<any, void, unknown>;
|
|
4
|
-
export function iterateDescendants(node: any): Generator<
|
|
5
|
-
export function hasConflictingLock({ exclusive }: {
|
|
1
|
+
export declare function deepCopyLocksTreePath(tree: any, path: any): any;
|
|
2
|
+
export declare function getNode(tree: any, path: any): any;
|
|
3
|
+
export declare function iteratePath(tree: any, path: any): Generator<any, void, unknown>;
|
|
4
|
+
export declare function iterateDescendants(node: any): Generator<unknown, void, unknown>;
|
|
5
|
+
export declare function hasConflictingLock({ exclusive }: {
|
|
6
6
|
exclusive: any;
|
|
7
7
|
}, locks: any): boolean;
|
|
8
8
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/locks/utils.js"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/locks/utils.js"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAE,IAAI,KAAA,EAAE,IAAI,KAAA,OAehD;AAED,wBAAgB,OAAO,CAAE,IAAI,KAAA,EAAE,IAAI,KAAA,OAUlC;AAED,wBAAiB,WAAW,CAAE,IAAI,KAAA,EAAE,IAAI,KAAA,iCAWvC;AAED,wBAAiB,kBAAkB,CAAE,IAAI,KAAA,qCAOxC;AAED,wBAAgB,kBAAkB,CAAE,EAAE,SAAS,EAAE;;CAAA,EAAE,KAAK,KAAA,WAUvD"}
|
package/build-types/name.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../src/name.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../src/name.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAFb,MAEsB,CAAC"}
|
|
@@ -7,7 +7,40 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @return {Object} Action object.
|
|
9
9
|
*/
|
|
10
|
-
export function receiveRegisteredPostMeta(postType: string, registeredPostMeta: any): any;
|
|
10
|
+
export declare function receiveRegisteredPostMeta(postType: string, registeredPostMeta: any): any;
|
|
11
|
+
export type Modifier = {
|
|
12
|
+
type?: string;
|
|
13
|
+
args?: any;
|
|
14
|
+
};
|
|
15
|
+
export type Edits = {
|
|
16
|
+
src?: string;
|
|
17
|
+
modifiers?: Modifier[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @typedef {Object} Modifier
|
|
21
|
+
* @property {string} [type] - The type of modifier.
|
|
22
|
+
* @property {Object} [args] - The arguments of the modifier.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {Object} Edits
|
|
26
|
+
* @property {string} [src] - The URL of the media item.
|
|
27
|
+
* @property {Modifier[]} [modifiers] - The modifiers to apply to the media item.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Duplicates a media (attachment) entity record and, optionally, modifies it.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} recordId Entity record ID.
|
|
33
|
+
* @param {Edits} edits Edits to apply to the record.
|
|
34
|
+
* @param {Object} options Options object.
|
|
35
|
+
* @param {Function} options.__unstableFetch Custom fetch function.
|
|
36
|
+
* @param {boolean} options.throwOnError Whether to throw an error if the request fails.
|
|
37
|
+
*
|
|
38
|
+
* @return {Promise} Promise resolving to the updated record.
|
|
39
|
+
*/
|
|
40
|
+
export declare const editMediaEntity: (recordId: string, edits?: Edits, { __unstableFetch, throwOnError }?: {
|
|
41
|
+
__unstableFetch: Function;
|
|
42
|
+
throwOnError: boolean;
|
|
43
|
+
}) => Promise;
|
|
11
44
|
/**
|
|
12
45
|
* Returns an action object used to receive editor settings.
|
|
13
46
|
*
|
|
@@ -15,7 +48,7 @@ export function receiveRegisteredPostMeta(postType: string, registeredPostMeta:
|
|
|
15
48
|
*
|
|
16
49
|
* @return {Object} Action object.
|
|
17
50
|
*/
|
|
18
|
-
export function receiveEditorSettings(settings: any): any;
|
|
51
|
+
export declare function receiveEditorSettings(settings: any): any;
|
|
19
52
|
/**
|
|
20
53
|
* Returns an action object used to receive editor assets.
|
|
21
54
|
*
|
|
@@ -23,7 +56,15 @@ export function receiveEditorSettings(settings: any): any;
|
|
|
23
56
|
*
|
|
24
57
|
* @return {Object} Action object.
|
|
25
58
|
*/
|
|
26
|
-
export function receiveEditorAssets(assets: any): any;
|
|
59
|
+
export declare function receiveEditorAssets(assets: any): any;
|
|
60
|
+
/**
|
|
61
|
+
* Returns an action object used to set whether collaboration is supported.
|
|
62
|
+
*
|
|
63
|
+
* @param {boolean} supported Whether collaboration is supported.
|
|
64
|
+
*
|
|
65
|
+
* @return {Object} Action object.
|
|
66
|
+
*/
|
|
67
|
+
export declare const setCollaborationSupported: (supported: boolean) => any;
|
|
27
68
|
/**
|
|
28
69
|
* Returns an action object used to receive view config.
|
|
29
70
|
*
|
|
@@ -33,30 +74,5 @@ export function receiveEditorAssets(assets: any): any;
|
|
|
33
74
|
*
|
|
34
75
|
* @return {Object} Action object.
|
|
35
76
|
*/
|
|
36
|
-
export function receiveViewConfig(kind: string, name: string, config: any): any;
|
|
37
|
-
export function editMediaEntity(recordId: string, edits?: Edits, { __unstableFetch, throwOnError }?: {
|
|
38
|
-
__unstableFetch: Function;
|
|
39
|
-
throwOnError: boolean;
|
|
40
|
-
}): Promise<any>;
|
|
41
|
-
export function setCollaborationSupported(supported: boolean): any;
|
|
42
|
-
export type Modifier = {
|
|
43
|
-
/**
|
|
44
|
-
* - The type of modifier.
|
|
45
|
-
*/
|
|
46
|
-
type?: string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* - The arguments of the modifier.
|
|
49
|
-
*/
|
|
50
|
-
args?: any;
|
|
51
|
-
};
|
|
52
|
-
export type Edits = {
|
|
53
|
-
/**
|
|
54
|
-
* - The URL of the media item.
|
|
55
|
-
*/
|
|
56
|
-
src?: string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* - The modifiers to apply to the media item.
|
|
59
|
-
*/
|
|
60
|
-
modifiers?: Modifier[] | undefined;
|
|
61
|
-
};
|
|
77
|
+
export declare function receiveViewConfig(kind: string, name: string, config: any): any;
|
|
62
78
|
//# sourceMappingURL=private-actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../src/private-actions.js"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AACH,
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../src/private-actions.js"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAE,QAAQ,EALxC,MAKwC,EAAE,kBAAkB,KAAA,OAMtE;AAGE,YAAkB,QAAQ,GAC1B;IAAoB,IAAI,AAAxB,CACA,EADW,MAAM,CACjB;IAAoB,IAAI,AAAxB,CACF,MAAA;CAAA,CAAA;AAGE,YAAkB,KAAK,GACvB;IAAwB,GAAG,AAA3B,CACA,EADW,MAAM,CACjB;IAAwB,SAAS,AAAjC,CACF,EADa,UAAU,CACvB;CAAA,CAAA;AAVD;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,aARjB,MAAM,UACN,KAAK,sCAEb;IAA0B,eAAe,WACzC;IAA0B,YAAY,EAA9B,OAAO,CAEf;CAAA,KAAS,OAqFV,CAAC;AAEH;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAE,QAAQ,KAAA,OAK9C;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,MAAM,KAAA,OAK1C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,cAJ3B,OAAO,QAQhB,CAAC;AAEH;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAE,IAAI,EAN5B,MAM4B,EAAE,IAAI,EALlC,MAKkC,EAAE,MAAM,KAAA,OAOpD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const privateApis: {};
|
|
1
|
+
export declare const privateApis: {};
|
|
2
2
|
//# sourceMappingURL=private-apis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAeA,
|
|
1
|
+
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAeA,eAAO,MAAM,WAAW,IAAK,CAAC"}
|