@wordpress/core-data 7.45.0 → 7.45.1-next.v.202605131032.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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @return {Object} Action object.
|
|
9
9
|
*/
|
|
10
|
-
export function receiveItems(items: any[], edits: any | null, meta: any | null): any;
|
|
10
|
+
export declare function receiveItems(items: any[], edits: any | null, meta: any | null): any;
|
|
11
11
|
/**
|
|
12
12
|
* Returns an action object used in signalling that entity records have been
|
|
13
13
|
* deleted and they need to be removed from entities state.
|
|
@@ -18,7 +18,7 @@ export function receiveItems(items: any[], edits: any | null, meta: any | null):
|
|
|
18
18
|
* @param {boolean} invalidateCache Controls whether we want to invalidate the cache.
|
|
19
19
|
* @return {Object} Action object.
|
|
20
20
|
*/
|
|
21
|
-
export function removeItems(kind: string, name: string, records: any[] | number | string, invalidateCache?: boolean): any;
|
|
21
|
+
export declare function removeItems(kind: string, name: string, records: any[] | number | string, invalidateCache?: boolean): any;
|
|
22
22
|
/**
|
|
23
23
|
* Returns an action object used in signalling that queried data has been
|
|
24
24
|
* received.
|
|
@@ -30,5 +30,5 @@ export function removeItems(kind: string, name: string, records: any[] | number
|
|
|
30
30
|
*
|
|
31
31
|
* @return {Object} Action object.
|
|
32
32
|
*/
|
|
33
|
-
export function receiveQueriedItems(items: any[], query:
|
|
33
|
+
export declare function receiveQueriedItems(items: any[], query: any | null, edits: any | null, meta: any | null): any;
|
|
34
34
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/queried-data/actions.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/queried-data/actions.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAE,KAAK,OAAA,EAAE,KAAK,EAL/B,UAK+B,EAAE,IAAI,EAJrC,UAIqC,OAO/C;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAE,IAAI,EANtB,MAMsB,EAAE,IAAI,EAL5B,MAK4B,EAAE,OAAO,EAJrC,QAAM,MAAM,GAAC,MAIwB,EAAE,eAAe,GAHtD,OAG8D,OAQxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAE,KAAK,OAAA,EAAE,KAAK,EANtC,UAM2C,EAAE,KAAK,EALlD,UAKkD,EAAE,IAAI,EAJxD,UAIwD,OAKlE"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export type WPQueriedDataQueryParts = {
|
|
2
|
+
page: number;
|
|
3
|
+
perPage: number;
|
|
4
|
+
offset: number | null;
|
|
5
|
+
stableKey: string;
|
|
6
|
+
fields: (string[]) | null;
|
|
7
|
+
include: (number[]) | null;
|
|
8
|
+
context: string;
|
|
9
|
+
};
|
|
1
10
|
/**
|
|
2
11
|
* An object of properties describing a specific query.
|
|
3
12
|
*
|
|
@@ -20,40 +29,7 @@
|
|
|
20
29
|
*
|
|
21
30
|
* @return {WPQueriedDataQueryParts} Query parts.
|
|
22
31
|
*/
|
|
23
|
-
export function getQueryParts(query: any): WPQueriedDataQueryParts;
|
|
32
|
+
export declare function getQueryParts(query: any): WPQueriedDataQueryParts;
|
|
24
33
|
declare const _default: Function;
|
|
25
34
|
export default _default;
|
|
26
|
-
/**
|
|
27
|
-
* An object of properties describing a specific query.
|
|
28
|
-
*/
|
|
29
|
-
export type WPQueriedDataQueryParts = {
|
|
30
|
-
/**
|
|
31
|
-
* The query page (1-based index, default 1).
|
|
32
|
-
*/
|
|
33
|
-
page: number;
|
|
34
|
-
/**
|
|
35
|
-
* Items per page for query (default 10).
|
|
36
|
-
*/
|
|
37
|
-
perPage: number;
|
|
38
|
-
/**
|
|
39
|
-
* Absolute item offset (default null).
|
|
40
|
-
*/
|
|
41
|
-
offset: number | null;
|
|
42
|
-
/**
|
|
43
|
-
* An encoded stable string of all non-pagination, non-fields query parameters.
|
|
44
|
-
*/
|
|
45
|
-
stableKey: string;
|
|
46
|
-
/**
|
|
47
|
-
* Target subset of fields to derive from item objects (default null).
|
|
48
|
-
*/
|
|
49
|
-
fields: (string[]) | null;
|
|
50
|
-
/**
|
|
51
|
-
* Specific item IDs to include (default null).
|
|
52
|
-
*/
|
|
53
|
-
include: (number[]) | null;
|
|
54
|
-
/**
|
|
55
|
-
* Scope under which the request is made; determines returned fields in response.
|
|
56
|
-
*/
|
|
57
|
-
context: string;
|
|
58
|
-
};
|
|
59
35
|
//# sourceMappingURL=get-query-parts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-query-parts.d.ts","sourceRoot":"","sources":["../../src/queried-data/get-query-parts.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-query-parts.d.ts","sourceRoot":"","sources":["../../src/queried-data/get-query-parts.js"],"names":[],"mappings":"AAaG,YAAkB,uBAAuB,GAEzC;IAAwB,IAAI,EAAjB,MAAM,CACjB;IAAwB,OAAO,EAApB,MAAM,CACjB;IAAwB,MAAM,EAAlB,MAAM,OAAA,CAClB;IAAwB,SAAS,EAAtB,MAAM,CACjB;IAAwB,MAAM,EAAlB,CAAC,MAAM,EAAE,CAAC,OAAA,CACtB;IAAwB,OAAO,EAAnB,CAAC,MAAM,EAAE,CAAC,OAAA,CACtB;IAAwB,OAAO,EAApB,MAAM,CACnB;CAAA,CAAA;AAZD;;;;;;;;;;;;GAYG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAE,KAAK,KAAA,2BAgFnC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export { default as reducer } from
|
|
1
|
+
export * from './actions';
|
|
2
|
+
export * from './selectors';
|
|
3
|
+
export { default as reducer } from './reducer';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/queried-data/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/queried-data/index.js"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @return {number[]} Merged array of item IDs.
|
|
13
13
|
*/
|
|
14
|
-
export function getMergedItemIds(itemIds: number[] | undefined, nextItemIds: number[], { page, offset, perPage }?: {
|
|
15
|
-
page?: number
|
|
16
|
-
offset?: number
|
|
14
|
+
export declare function getMergedItemIds(itemIds: number[] | undefined, nextItemIds: number[], { page, offset, perPage }?: {
|
|
15
|
+
page?: number;
|
|
16
|
+
offset?: number;
|
|
17
17
|
perPage: number;
|
|
18
18
|
}): number[];
|
|
19
19
|
/**
|
|
@@ -25,7 +25,7 @@ export function getMergedItemIds(itemIds: number[] | undefined, nextItemIds: num
|
|
|
25
25
|
*
|
|
26
26
|
* @return {Object} Next state.
|
|
27
27
|
*/
|
|
28
|
-
export function items(state: any, action: any): any;
|
|
28
|
+
export declare function items(state: any, action: any): any;
|
|
29
29
|
/**
|
|
30
30
|
* Reducer tracking item completeness, keyed by ID. A complete item is one for
|
|
31
31
|
* which all fields are known. This is used in supporting `_fields` queries,
|
|
@@ -38,30 +38,14 @@ export function items(state: any, action: any): any;
|
|
|
38
38
|
*
|
|
39
39
|
* @return {Object<string,Object<string,boolean>>} Next state.
|
|
40
40
|
*/
|
|
41
|
-
export function itemIsComplete(state:
|
|
42
|
-
[x: string]: {
|
|
43
|
-
[x: string]: boolean;
|
|
44
|
-
};
|
|
45
|
-
}, action: any): {
|
|
46
|
-
[x: string]: {
|
|
47
|
-
[x: string]: boolean;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
41
|
+
export declare function itemIsComplete(state: Record<string, Record<string, boolean>> | undefined, action: any): Record<string, Record<string, boolean>>;
|
|
50
42
|
declare const _default: import("redux").Reducer<{
|
|
51
43
|
items: any;
|
|
52
|
-
itemIsComplete:
|
|
53
|
-
[x: string]: {
|
|
54
|
-
[x: string]: boolean;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
44
|
+
itemIsComplete: Record<string, Record<string, boolean>>;
|
|
57
45
|
queries: any;
|
|
58
46
|
}, any, Partial<{
|
|
59
47
|
items: any;
|
|
60
|
-
itemIsComplete:
|
|
61
|
-
[x: string]: {
|
|
62
|
-
[x: string]: boolean;
|
|
63
|
-
};
|
|
64
|
-
} | undefined;
|
|
48
|
+
itemIsComplete: Record<string, Record<string, boolean>> | undefined;
|
|
65
49
|
queries: any;
|
|
66
50
|
}>>;
|
|
67
51
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/queried-data/reducer.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;GAYG;AACH,
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/queried-data/reducer.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC/B,OAAO,EAVG,MAAM,EAAE,GAAC,SAUP,EACZ,WAAW,EAVD,MAAM,EAUL,EAEX,EAAE,IAAQ,EAAE,MAAM,EAAE,OAAY,EAAE,GAVhC;IAAqC,IAAI,AAAzC,CACA,EADQ,MAAM,CACd;IAAqC,MAAM,AAA3C,CACA,EADQ,MAAM,CACd;IAAoC,OAAO,EAAnC,MAAM,CAEd;CAMqC,GAN5B,MAAM,EAAE,CAyCnB;AAyBD;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OAiCxC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAE,KAAK,qDAAK,EAAE,MAAM,KAAA,2CA8CjD"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @return {?Array} Query items.
|
|
13
13
|
*/
|
|
14
|
-
export function getQueriedItems(state: any, query?: any | null, options?: any | null):
|
|
15
|
-
export function getQueriedTotalItems(state: any, query?: {}): any;
|
|
16
|
-
export function getQueriedTotalPages(state: any, query?: {}): any;
|
|
14
|
+
export declare function getQueriedItems(state: any, query?: any | null, options?: any | null): Array | null;
|
|
15
|
+
export declare function getQueriedTotalItems(state: any, query?: {}): any;
|
|
16
|
+
export declare function getQueriedTotalPages(state: any, query?: {}): any;
|
|
17
17
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/queried-data/selectors.js"],"names":[],"mappings":"AA6GA;;;;;;;;;;;;GAYG;AACH,
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/queried-data/selectors.js"],"names":[],"mappings":"AA6GA;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAE,KAAK,KAAA,EAAE,KAAK,GANlC,UAMuC,EAAE,OAAO,GALhD,UAKqD,GAFnD,KAAK,OAAA,CAiBjB;AAED,wBAAgB,oBAAoB,CAAE,KAAK,KAAA,EAAE,KAAK,KAAK,OAItD;AAED,wBAAgB,oBAAoB,CAAE,KAAK,KAAA,EAAE,KAAK,KAAK,OAItD"}
|
package/build-types/reducer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type AnyFunction = import('./types').AnyFunction;
|
|
1
2
|
/** @typedef {import('./types').AnyFunction} AnyFunction */
|
|
2
3
|
/**
|
|
3
4
|
* Reducer managing authors state. Keyed by id.
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
*
|
|
8
9
|
* @return {Object} Updated state.
|
|
9
10
|
*/
|
|
10
|
-
export function users(state: any, action: any): any;
|
|
11
|
+
export declare function users(state: any, action: any): any;
|
|
11
12
|
/**
|
|
12
13
|
* Reducer managing current user state.
|
|
13
14
|
*
|
|
@@ -16,7 +17,7 @@ export function users(state: any, action: any): any;
|
|
|
16
17
|
*
|
|
17
18
|
* @return {Object} Updated state.
|
|
18
19
|
*/
|
|
19
|
-
export function currentUser(state: any, action: any): any;
|
|
20
|
+
export declare function currentUser(state: any, action: any): any;
|
|
20
21
|
/**
|
|
21
22
|
* Reducer managing the current theme.
|
|
22
23
|
*
|
|
@@ -25,7 +26,7 @@ export function currentUser(state: any, action: any): any;
|
|
|
25
26
|
*
|
|
26
27
|
* @return {string|undefined} Updated state.
|
|
27
28
|
*/
|
|
28
|
-
export function currentTheme(state: string | undefined, action: any): string | undefined;
|
|
29
|
+
export declare function currentTheme(state: string | undefined, action: any): string | undefined;
|
|
29
30
|
/**
|
|
30
31
|
* Reducer managing the current global styles id.
|
|
31
32
|
*
|
|
@@ -34,7 +35,7 @@ export function currentTheme(state: string | undefined, action: any): string | u
|
|
|
34
35
|
*
|
|
35
36
|
* @return {string|undefined} Updated state.
|
|
36
37
|
*/
|
|
37
|
-
export function currentGlobalStylesId(state: string | undefined, action: any): string | undefined;
|
|
38
|
+
export declare function currentGlobalStylesId(state: string | undefined, action: any): string | undefined;
|
|
38
39
|
/**
|
|
39
40
|
* Reducer managing the theme base global styles.
|
|
40
41
|
*
|
|
@@ -43,7 +44,7 @@ export function currentGlobalStylesId(state: string | undefined, action: any): s
|
|
|
43
44
|
*
|
|
44
45
|
* @return {Record<string, object>} Updated state.
|
|
45
46
|
*/
|
|
46
|
-
export function themeBaseGlobalStyles(state: Record<string, object> | undefined, action: any): Record<string, object>;
|
|
47
|
+
export declare function themeBaseGlobalStyles(state: Record<string, object> | undefined, action: any): Record<string, object>;
|
|
47
48
|
/**
|
|
48
49
|
* Reducer managing the theme global styles variations.
|
|
49
50
|
*
|
|
@@ -52,7 +53,7 @@ export function themeBaseGlobalStyles(state: Record<string, object> | undefined,
|
|
|
52
53
|
*
|
|
53
54
|
* @return {Record<string, object>} Updated state.
|
|
54
55
|
*/
|
|
55
|
-
export function themeGlobalStyleVariations(state: Record<string, object> | undefined, action: any): Record<string, object>;
|
|
56
|
+
export declare function themeGlobalStyleVariations(state: Record<string, object> | undefined, action: any): Record<string, object>;
|
|
56
57
|
/**
|
|
57
58
|
* Reducer keeping track of the registered entities.
|
|
58
59
|
*
|
|
@@ -61,12 +62,21 @@ export function themeGlobalStyleVariations(state: Record<string, object> | undef
|
|
|
61
62
|
*
|
|
62
63
|
* @return {Object} Updated state.
|
|
63
64
|
*/
|
|
64
|
-
export function entitiesConfig(state: any, action: any): any;
|
|
65
|
+
export declare function entitiesConfig(state: any, action: any): any;
|
|
66
|
+
/**
|
|
67
|
+
* Reducer keeping track of the registered entities config and data.
|
|
68
|
+
*
|
|
69
|
+
* @param {Object} state Current state.
|
|
70
|
+
* @param {Object} action Dispatched action.
|
|
71
|
+
*
|
|
72
|
+
* @return {Object} Updated state.
|
|
73
|
+
*/
|
|
74
|
+
export declare const entities: (state: any, action: any) => any;
|
|
65
75
|
/**
|
|
66
76
|
* @type {UndoManager}
|
|
67
77
|
*/
|
|
68
|
-
export function undoManager(state?: import("@wordpress/undo-manager").UndoManager<unknown>): import("@wordpress/undo-manager").UndoManager<unknown>;
|
|
69
|
-
export function editsReference(state: {} | undefined, action: any): {};
|
|
78
|
+
export declare function undoManager(state?: import("@wordpress/undo-manager").UndoManager<unknown>): import("@wordpress/undo-manager").UndoManager<unknown>;
|
|
79
|
+
export declare function editsReference(state: {} | undefined, action: any): {};
|
|
70
80
|
/**
|
|
71
81
|
* Reducer managing embed preview data.
|
|
72
82
|
*
|
|
@@ -75,7 +85,7 @@ export function editsReference(state: {} | undefined, action: any): {};
|
|
|
75
85
|
*
|
|
76
86
|
* @return {Object} Updated state.
|
|
77
87
|
*/
|
|
78
|
-
export function embedPreviews(state: any, action: any): any;
|
|
88
|
+
export declare function embedPreviews(state: any, action: any): any;
|
|
79
89
|
/**
|
|
80
90
|
* State which tracks whether the user can perform an action on a REST
|
|
81
91
|
* resource.
|
|
@@ -85,7 +95,7 @@ export function embedPreviews(state: any, action: any): any;
|
|
|
85
95
|
*
|
|
86
96
|
* @return {Object} Updated state.
|
|
87
97
|
*/
|
|
88
|
-
export function userPermissions(state: any, action: any): any;
|
|
98
|
+
export declare function userPermissions(state: any, action: any): any;
|
|
89
99
|
/**
|
|
90
100
|
* Reducer returning autosaves keyed by their parent's post id.
|
|
91
101
|
*
|
|
@@ -94,11 +104,11 @@ export function userPermissions(state: any, action: any): any;
|
|
|
94
104
|
*
|
|
95
105
|
* @return {Object} Updated state.
|
|
96
106
|
*/
|
|
97
|
-
export function autosaves(state: any, action: any): any;
|
|
98
|
-
export function blockPatterns(state: any[] | undefined, action: any): any;
|
|
99
|
-
export function blockPatternCategories(state: any[] | undefined, action: any): any;
|
|
100
|
-
export function userPatternCategories(state: any[] | undefined, action: any): any;
|
|
101
|
-
export function navigationFallbackId(state: null | undefined, action: any): any;
|
|
107
|
+
export declare function autosaves(state: any, action: any): any;
|
|
108
|
+
export declare function blockPatterns(state: (any[] | undefined) | undefined, action: any): any;
|
|
109
|
+
export declare function blockPatternCategories(state: (any[] | undefined) | undefined, action: any): any;
|
|
110
|
+
export declare function userPatternCategories(state: (any[] | undefined) | undefined, action: any): any;
|
|
111
|
+
export declare function navigationFallbackId(state: null | undefined, action: any): any;
|
|
102
112
|
/**
|
|
103
113
|
* Reducer managing the theme global styles revisions.
|
|
104
114
|
*
|
|
@@ -107,7 +117,7 @@ export function navigationFallbackId(state: null | undefined, action: any): any;
|
|
|
107
117
|
*
|
|
108
118
|
* @return {Record<string, object>} Updated state.
|
|
109
119
|
*/
|
|
110
|
-
export function themeGlobalStyleRevisions(state: Record<string, object> | undefined, action: any): Record<string, object>;
|
|
120
|
+
export declare function themeGlobalStyleRevisions(state: Record<string, object> | undefined, action: any): Record<string, object>;
|
|
111
121
|
/**
|
|
112
122
|
* Reducer managing the template lookup per query.
|
|
113
123
|
*
|
|
@@ -116,7 +126,7 @@ export function themeGlobalStyleRevisions(state: Record<string, object> | undefi
|
|
|
116
126
|
*
|
|
117
127
|
* @return {Record<string, string>} Updated state.
|
|
118
128
|
*/
|
|
119
|
-
export function defaultTemplates(state: Record<string, string> | undefined, action: any): Record<string, string>;
|
|
129
|
+
export declare function defaultTemplates(state: Record<string, string> | undefined, action: any): Record<string, string>;
|
|
120
130
|
/**
|
|
121
131
|
* Reducer returning an object of registered post meta.
|
|
122
132
|
*
|
|
@@ -125,7 +135,7 @@ export function defaultTemplates(state: Record<string, string> | undefined, acti
|
|
|
125
135
|
*
|
|
126
136
|
* @return {Object} Updated state.
|
|
127
137
|
*/
|
|
128
|
-
export function registeredPostMeta(state: any, action: any): any;
|
|
138
|
+
export declare function registeredPostMeta(state: any, action: any): any;
|
|
129
139
|
/**
|
|
130
140
|
* Reducer managing editor settings.
|
|
131
141
|
*
|
|
@@ -134,7 +144,7 @@ export function registeredPostMeta(state: any, action: any): any;
|
|
|
134
144
|
*
|
|
135
145
|
* @return {Object} Updated state.
|
|
136
146
|
*/
|
|
137
|
-
export function editorSettings(state: any, action: any): any;
|
|
147
|
+
export declare function editorSettings(state: any, action: any): any;
|
|
138
148
|
/**
|
|
139
149
|
* Reducer managing editor assets.
|
|
140
150
|
*
|
|
@@ -143,7 +153,7 @@ export function editorSettings(state: any, action: any): any;
|
|
|
143
153
|
*
|
|
144
154
|
* @return {Object} Updated state.
|
|
145
155
|
*/
|
|
146
|
-
export function editorAssets(state: any, action: any): any;
|
|
156
|
+
export declare function editorAssets(state: any, action: any): any;
|
|
147
157
|
/**
|
|
148
158
|
* Reducer managing sync connection states for entities.
|
|
149
159
|
* Keyed by "kind/name:id" (e.g., "postType/post:123").
|
|
@@ -153,7 +163,7 @@ export function editorAssets(state: any, action: any): any;
|
|
|
153
163
|
*
|
|
154
164
|
* @return {Object} Updated state.
|
|
155
165
|
*/
|
|
156
|
-
export function syncConnectionStatuses(state: any, action: any): any;
|
|
166
|
+
export declare function syncConnectionStatuses(state: any, action: any): any;
|
|
157
167
|
/**
|
|
158
168
|
* Reducer managing whether collaboration is supported.
|
|
159
169
|
*
|
|
@@ -166,7 +176,7 @@ export function syncConnectionStatuses(state: any, action: any): any;
|
|
|
166
176
|
*
|
|
167
177
|
* @return {boolean} Updated state.
|
|
168
178
|
*/
|
|
169
|
-
export function collaborationSupported(state: boolean | undefined, action: any): boolean;
|
|
179
|
+
export declare function collaborationSupported(state: boolean | undefined, action: any): boolean;
|
|
170
180
|
/**
|
|
171
181
|
* Reducer managing view configs, keyed by `kind/name`.
|
|
172
182
|
*
|
|
@@ -175,16 +185,15 @@ export function collaborationSupported(state: boolean | undefined, action: any):
|
|
|
175
185
|
*
|
|
176
186
|
* @return {Object} Updated state.
|
|
177
187
|
*/
|
|
178
|
-
export function viewConfigs(state: any, action: any): any;
|
|
179
|
-
export function entities(state: any, action: any): any;
|
|
188
|
+
export declare function viewConfigs(state: any, action: any): any;
|
|
180
189
|
declare const _default: import("redux").Reducer<{
|
|
181
190
|
users: any;
|
|
182
191
|
currentTheme: string | undefined;
|
|
183
192
|
currentGlobalStylesId: string | undefined;
|
|
184
193
|
currentUser: any;
|
|
185
|
-
themeGlobalStyleVariations: Record<string,
|
|
186
|
-
themeBaseGlobalStyles: Record<string,
|
|
187
|
-
themeGlobalStyleRevisions: Record<string,
|
|
194
|
+
themeGlobalStyleVariations: Record<string, object>;
|
|
195
|
+
themeBaseGlobalStyles: Record<string, object>;
|
|
196
|
+
themeGlobalStyleRevisions: Record<string, object>;
|
|
188
197
|
entities: any;
|
|
189
198
|
editsReference: {};
|
|
190
199
|
undoManager: import("@wordpress/undo-manager").UndoManager<unknown>;
|
|
@@ -207,9 +216,9 @@ declare const _default: import("redux").Reducer<{
|
|
|
207
216
|
currentTheme: string | undefined;
|
|
208
217
|
currentGlobalStylesId: string | undefined;
|
|
209
218
|
currentUser: any;
|
|
210
|
-
themeGlobalStyleVariations: Record<string,
|
|
211
|
-
themeBaseGlobalStyles: Record<string,
|
|
212
|
-
themeGlobalStyleRevisions: Record<string,
|
|
219
|
+
themeGlobalStyleVariations: Record<string, object> | undefined;
|
|
220
|
+
themeBaseGlobalStyles: Record<string, object> | undefined;
|
|
221
|
+
themeGlobalStyleRevisions: Record<string, object> | undefined;
|
|
213
222
|
entities: any;
|
|
214
223
|
editsReference: {} | undefined;
|
|
215
224
|
undoManager: import("@wordpress/undo-manager").UndoManager<unknown> | undefined;
|
|
@@ -229,5 +238,4 @@ declare const _default: import("redux").Reducer<{
|
|
|
229
238
|
viewConfigs: any;
|
|
230
239
|
}>>;
|
|
231
240
|
export default _default;
|
|
232
|
-
export type AnyFunction = import("./types").AnyFunction;
|
|
233
241
|
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../src/reducer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../src/reducer.js"],"names":[],"mappings":"AAoBI,YAAyC,WAAW,GAA1C,OAAO,SAAS,EAAE,WAAW,CAAa;AAAxD,2DAA2D;AAE3D;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAE,KAAK,KAA4B,EAAE,MAAM,KAAA,OAuB/D;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OAO9C;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAE,KAAK,EALxB,MAAM,GAAC,SAK6B,EAAE,MAAM,KAAA,GAF3C,MAAM,GAAC,SAAS,CAS3B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAE,KAAK,EALjC,MAAM,GAAC,SAKsC,EAAE,MAAM,KAAA,GAFpD,MAAM,GAAC,SAAS,CAS3B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAE,KAAK,EALjC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAKgB,EAAE,MAAM,KAAA,0BAUxD;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAE,KAAK,EALtC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAKqB,EAAE,MAAM,KAAA,0BAU7D;AAoND;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAE,KAAK,KAAqB,EAAE,MAAM,KAAA,OAOjE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,kCAwEpB,CAAC;AAEF;;GAEG;AACH,wBAAgB,WAAW,CAAE,KAAK,yDAAsB,0DAEvD;AAED,wBAAgB,cAAc,CAAE,KAAK,gBAAK,EAAE,MAAM,KAAA,MAQjD;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OAUhD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OAelD;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OAY5C;AAED,wBAAgB,aAAa,CAAE,KAAK,iCAAK,EAAE,MAAM,KAAA,OAOhD;AAED,wBAAgB,sBAAsB,CAAE,KAAK,iCAAK,EAAE,MAAM,KAAA,OAOzD;AAED,wBAAgB,qBAAqB,CAAE,KAAK,iCAAK,EAAE,MAAM,KAAA,OAMxD;AAED,wBAAgB,oBAAoB,CAAE,KAAK,kBAAO,EAAE,MAAM,KAAA,OAOzD;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAE,KAAK,EALrC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAKoB,EAAE,MAAM,KAAA,0BAU5D;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAE,KAAK,EAL5B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAKW,EAAE,MAAM,KAAA,0BAUnD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OASrD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAE,KAAK,KAAO,EAAE,MAAM,KAAA,OAMnD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAE,KAAK,KAAO,EAAE,MAAM,KAAA,OAMjD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OAgBzD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAE,KAAK,EALlC,OAAO,YAKkC,EAAE,MAAM,KAAA,GAFhD,OAAO,CAkBlB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAE,KAAK,KAAK,EAAE,MAAM,KAAA,OAS9C"}
|