@wordpress/core-data 7.15.1 → 7.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +1 -1
- package/build/actions.js +1 -1
- package/build/actions.js.map +1 -1
- package/build/batch/create-batch.js +1 -1
- package/build/batch/create-batch.js.map +1 -1
- package/build/dynamic-entities.js +34 -0
- package/build/dynamic-entities.js.map +1 -0
- package/build/entity-types/base.js +6 -0
- package/build/entity-types/base.js.map +1 -0
- package/build/entity-types/index.js.map +1 -1
- package/build/entity-types/post-status.js +6 -0
- package/build/entity-types/post-status.js.map +1 -0
- package/build/hooks/use-entity-block-editor.js +1 -1
- package/build/hooks/use-entity-block-editor.js.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/build/resolvers.js +6 -2
- package/build/resolvers.js.map +1 -1
- package/build/selectors.js.map +1 -1
- package/build-module/actions.js +1 -1
- package/build-module/actions.js.map +1 -1
- package/build-module/batch/create-batch.js +1 -1
- package/build-module/batch/create-batch.js.map +1 -1
- package/build-module/dynamic-entities.js +28 -0
- package/build-module/dynamic-entities.js.map +1 -0
- package/build-module/entity-types/base.js +2 -0
- package/build-module/entity-types/base.js.map +1 -0
- package/build-module/entity-types/index.js.map +1 -1
- package/build-module/entity-types/post-status.js +2 -0
- package/build-module/entity-types/post-status.js.map +1 -0
- package/build-module/hooks/use-entity-block-editor.js +1 -1
- package/build-module/hooks/use-entity-block-editor.js.map +1 -1
- package/build-module/index.js +3 -0
- package/build-module/index.js.map +1 -1
- package/build-module/resolvers.js +6 -2
- package/build-module/resolvers.js.map +1 -1
- package/build-module/selectors.js.map +1 -1
- package/build-types/batch/create-batch.d.ts +1 -1
- package/build-types/dynamic-entities.d.ts +66 -0
- package/build-types/dynamic-entities.d.ts.map +1 -0
- package/build-types/entity-types/base.d.ts +68 -0
- package/build-types/entity-types/base.d.ts.map +1 -0
- package/build-types/entity-types/index.d.ts +4 -2
- package/build-types/entity-types/index.d.ts.map +1 -1
- package/build-types/entity-types/post-status.d.ts +45 -0
- package/build-types/entity-types/post-status.d.ts.map +1 -0
- package/build-types/index.d.ts +183 -18
- package/build-types/index.d.ts.map +1 -1
- 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/package.json +18 -18
- package/src/actions.js +1 -1
- package/src/batch/create-batch.js +1 -1
- package/src/dynamic-entities.ts +111 -0
- package/src/entity-types/base.ts +84 -0
- package/src/entity-types/index.ts +9 -1
- package/src/entity-types/post-status.ts +56 -0
- package/src/hooks/use-entity-block-editor.js +1 -1
- package/src/index.js +12 -2
- package/src/resolvers.js +10 -3
- package/src/selectors.ts +1 -1
- package/src/test/resolvers.js +8 -2
- package/tsconfig.tsbuildinfo +1 -1
package/build-types/index.d.ts
CHANGED
|
@@ -70,18 +70,158 @@ export const store: import("@wordpress/data/build-types/types").StoreDescriptor<
|
|
|
70
70
|
dispatch: any;
|
|
71
71
|
resolveSelect: any;
|
|
72
72
|
}) => Promise<void>;
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
saveMenu: (data: Partial<import("./entity-types").NavMenu<"edit">>, options?: {
|
|
74
|
+
throwOnError?: boolean;
|
|
75
|
+
}) => Promise<void>;
|
|
76
|
+
saveComment: (data: Partial<import("./entity-types").Comment<"edit">>, options?: {
|
|
77
|
+
throwOnError?: boolean;
|
|
78
|
+
}) => Promise<void>;
|
|
79
|
+
saveGlobalStyles: (data: Partial<import("./entity-types").GlobalStylesRevision<"edit">>, options?: {
|
|
80
|
+
throwOnError?: boolean;
|
|
81
|
+
}) => Promise<void>;
|
|
82
|
+
saveMedia: (data: Partial<import("./entity-types").Attachment<"edit">>, options?: {
|
|
83
|
+
throwOnError?: boolean;
|
|
84
|
+
}) => Promise<void>;
|
|
85
|
+
saveMenuItem: (data: Partial<import("./entity-types").NavMenuItem<"edit">>, options?: {
|
|
86
|
+
throwOnError?: boolean;
|
|
87
|
+
}) => Promise<void>;
|
|
88
|
+
saveMenuLocation: (data: Partial<import("./entity-types").MenuLocation<"edit">>, options?: {
|
|
89
|
+
throwOnError?: boolean;
|
|
90
|
+
}) => Promise<void>;
|
|
91
|
+
savePlugin: (data: Partial<import("./entity-types").Plugin<"edit">>, options?: {
|
|
92
|
+
throwOnError?: boolean;
|
|
93
|
+
}) => Promise<void>;
|
|
94
|
+
savePostType: (data: Partial<import("./entity-types").Type<"edit">>, options?: {
|
|
95
|
+
throwOnError?: boolean;
|
|
96
|
+
}) => Promise<void>;
|
|
97
|
+
saveRevision: (data: Partial<import("./entity-types").PostRevision<"edit">>, options?: {
|
|
98
|
+
throwOnError?: boolean;
|
|
99
|
+
}) => Promise<void>;
|
|
100
|
+
saveSidebar: (data: Partial<import("./entity-types").Sidebar<"edit">>, options?: {
|
|
101
|
+
throwOnError?: boolean;
|
|
102
|
+
}) => Promise<void>;
|
|
103
|
+
saveSite: (data: Partial<import("./entity-types").Settings<"edit">>, options?: {
|
|
104
|
+
throwOnError?: boolean;
|
|
105
|
+
}) => Promise<void>;
|
|
106
|
+
saveStatus: (data: Partial<import("./entity-types").PostStatusObject<"edit">>, options?: {
|
|
107
|
+
throwOnError?: boolean;
|
|
108
|
+
}) => Promise<void>;
|
|
109
|
+
saveTaxonomy: (data: Partial<import("./entity-types").Taxonomy<"edit">>, options?: {
|
|
110
|
+
throwOnError?: boolean;
|
|
111
|
+
}) => Promise<void>;
|
|
112
|
+
saveTheme: (data: Partial<import("./entity-types").Theme<"edit">>, options?: {
|
|
113
|
+
throwOnError?: boolean;
|
|
114
|
+
}) => Promise<void>;
|
|
115
|
+
saveUnstableBase: (data: Partial<import("./entity-types").UnstableBase<"edit">>, options?: {
|
|
116
|
+
throwOnError?: boolean;
|
|
117
|
+
}) => Promise<void>;
|
|
118
|
+
saveUser: (data: Partial<import("./entity-types").User<"edit">>, options?: {
|
|
119
|
+
throwOnError?: boolean;
|
|
120
|
+
}) => Promise<void>;
|
|
121
|
+
saveWidget: (data: Partial<import("./entity-types").Widget<"edit">>, options?: {
|
|
122
|
+
throwOnError?: boolean;
|
|
123
|
+
}) => Promise<void>;
|
|
124
|
+
saveWidgetType: (data: Partial<import("./entity-types").WidgetType<"edit">>, options?: {
|
|
125
|
+
throwOnError?: boolean;
|
|
126
|
+
}) => Promise<void>;
|
|
127
|
+
deleteMenu: (id: number | string, query?: {
|
|
128
|
+
[x: string]: any;
|
|
129
|
+
}, options?: {
|
|
130
|
+
throwOnError?: boolean;
|
|
131
|
+
}) => Promise<void>;
|
|
132
|
+
deleteComment: (id: number | string, query?: {
|
|
133
|
+
[x: string]: any;
|
|
134
|
+
}, options?: {
|
|
135
|
+
throwOnError?: boolean;
|
|
136
|
+
}) => Promise<void>;
|
|
137
|
+
deleteGlobalStyles: (id: number | string, query?: {
|
|
138
|
+
[x: string]: any;
|
|
139
|
+
}, options?: {
|
|
140
|
+
throwOnError?: boolean;
|
|
141
|
+
}) => Promise<void>;
|
|
142
|
+
deleteMedia: (id: number | string, query?: {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
}, options?: {
|
|
145
|
+
throwOnError?: boolean;
|
|
146
|
+
}) => Promise<void>;
|
|
147
|
+
deleteMenuItem: (id: number | string, query?: {
|
|
148
|
+
[x: string]: any;
|
|
149
|
+
}, options?: {
|
|
150
|
+
throwOnError?: boolean;
|
|
151
|
+
}) => Promise<void>;
|
|
152
|
+
deleteMenuLocation: (id: number | string, query?: {
|
|
153
|
+
[x: string]: any;
|
|
154
|
+
}, options?: {
|
|
155
|
+
throwOnError?: boolean;
|
|
156
|
+
}) => Promise<void>;
|
|
157
|
+
deletePlugin: (id: number | string, query?: {
|
|
158
|
+
[x: string]: any;
|
|
159
|
+
}, options?: {
|
|
160
|
+
throwOnError?: boolean;
|
|
161
|
+
}) => Promise<void>;
|
|
162
|
+
deletePostType: (id: number | string, query?: {
|
|
163
|
+
[x: string]: any;
|
|
164
|
+
}, options?: {
|
|
165
|
+
throwOnError?: boolean;
|
|
166
|
+
}) => Promise<void>;
|
|
167
|
+
deleteRevision: (id: number | string, query?: {
|
|
168
|
+
[x: string]: any;
|
|
169
|
+
}, options?: {
|
|
170
|
+
throwOnError?: boolean;
|
|
171
|
+
}) => Promise<void>;
|
|
172
|
+
deleteSidebar: (id: number | string, query?: {
|
|
173
|
+
[x: string]: any;
|
|
174
|
+
}, options?: {
|
|
175
|
+
throwOnError?: boolean;
|
|
176
|
+
}) => Promise<void>;
|
|
177
|
+
deleteSite: (id: number | string, query?: {
|
|
178
|
+
[x: string]: any;
|
|
179
|
+
}, options?: {
|
|
180
|
+
throwOnError?: boolean;
|
|
181
|
+
}) => Promise<void>;
|
|
182
|
+
deleteStatus: (id: number | string, query?: {
|
|
183
|
+
[x: string]: any;
|
|
184
|
+
}, options?: {
|
|
185
|
+
throwOnError?: boolean;
|
|
186
|
+
}) => Promise<void>;
|
|
187
|
+
deleteTaxonomy: (id: number | string, query?: {
|
|
188
|
+
[x: string]: any;
|
|
189
|
+
}, options?: {
|
|
190
|
+
throwOnError?: boolean;
|
|
191
|
+
}) => Promise<void>;
|
|
192
|
+
deleteTheme: (id: number | string, query?: {
|
|
75
193
|
[x: string]: any;
|
|
76
|
-
}
|
|
194
|
+
}, options?: {
|
|
195
|
+
throwOnError?: boolean;
|
|
196
|
+
}) => Promise<void>;
|
|
197
|
+
deleteUnstableBase: (id: number | string, query?: {
|
|
198
|
+
[x: string]: any;
|
|
199
|
+
}, options?: {
|
|
200
|
+
throwOnError?: boolean;
|
|
201
|
+
}) => Promise<void>;
|
|
202
|
+
deleteUser: (id: number | string, query?: {
|
|
203
|
+
[x: string]: any;
|
|
204
|
+
}, options?: {
|
|
205
|
+
throwOnError?: boolean;
|
|
206
|
+
}) => Promise<void>;
|
|
207
|
+
deleteWidget: (id: number | string, query?: {
|
|
208
|
+
[x: string]: any;
|
|
209
|
+
}, options?: {
|
|
210
|
+
throwOnError?: boolean;
|
|
211
|
+
}) => Promise<void>;
|
|
212
|
+
deleteWidgetType: (id: number | string, query?: {
|
|
213
|
+
[x: string]: any;
|
|
214
|
+
}, options?: {
|
|
215
|
+
throwOnError?: boolean;
|
|
216
|
+
}) => Promise<void>;
|
|
217
|
+
}, {
|
|
218
|
+
getAuthors(state: selectors.State, query?: selectors.GetRecordsHttpQuery): import("./entity-types").User[];
|
|
77
219
|
getCurrentUser(state: selectors.State): import("./entity-types").User<"edit">;
|
|
78
220
|
getEntitiesByKind(state: selectors.State, kind: string): Array<any>;
|
|
79
221
|
getEntity(state: selectors.State, kind: string, name: string): any;
|
|
80
222
|
getEntityConfig(state: selectors.State, kind: string, name: string): any;
|
|
81
223
|
__experimentalGetEntityRecordNoResolver<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, kind: string, name: string, key: string | number): EntityRecord | undefined;
|
|
82
|
-
hasEntityRecords(state: selectors.State, kind: string, name: string, query?:
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
}): boolean;
|
|
224
|
+
hasEntityRecords(state: selectors.State, kind: string, name: string, query?: selectors.GetRecordsHttpQuery): boolean;
|
|
85
225
|
getEntityRecordEdits(state: selectors.State, kind: string, name: string, recordId: string | number): any;
|
|
86
226
|
hasEditsForEntityRecord(state: selectors.State, kind: string, name: string, recordId: string | number): boolean;
|
|
87
227
|
isAutosavingEntityRecord(state: selectors.State, kind: string, name: string, recordId: string | number): boolean;
|
|
@@ -128,12 +268,8 @@ export const store: import("@wordpress/data/build-types/types").StoreDescriptor<
|
|
|
128
268
|
getEntityRecord: selectors.GetEntityRecord;
|
|
129
269
|
getRawEntityRecord: (<EntityRecord extends import("./entity-types").EntityRecord<any>>(state: selectors.State, kind: string, name: string, key: string | number) => EntityRecord | undefined) & import("rememo").EnhancedSelector;
|
|
130
270
|
getEntityRecords: selectors.GetEntityRecords;
|
|
131
|
-
getEntityRecordsTotalItems: (state: selectors.State, kind: string, name: string, query:
|
|
132
|
-
|
|
133
|
-
}) => number | null;
|
|
134
|
-
getEntityRecordsTotalPages: (state: selectors.State, kind: string, name: string, query: {
|
|
135
|
-
[x: string]: any;
|
|
136
|
-
}) => number | null;
|
|
271
|
+
getEntityRecordsTotalItems: (state: selectors.State, kind: string, name: string, query: selectors.GetRecordsHttpQuery) => number | null;
|
|
272
|
+
getEntityRecordsTotalPages: (state: selectors.State, kind: string, name: string, query: selectors.GetRecordsHttpQuery) => number | null;
|
|
137
273
|
__experimentalGetDirtyEntityRecords: ((state: selectors.State) => Array<{
|
|
138
274
|
title: string;
|
|
139
275
|
key: string | number;
|
|
@@ -153,12 +289,41 @@ export const store: import("@wordpress/data/build-types/types").StoreDescriptor<
|
|
|
153
289
|
isRegistrySelector?: boolean;
|
|
154
290
|
registry?: any;
|
|
155
291
|
};
|
|
156
|
-
getRevisions: (state: selectors.State, kind: string, name: string, recordKey: string | number, query?:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
292
|
+
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;
|
|
293
|
+
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;
|
|
294
|
+
getMenu: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenu<"edit"> | undefined;
|
|
295
|
+
getComment: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Comment<"edit"> | undefined;
|
|
296
|
+
getGlobalStyles: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").GlobalStylesRevision<"edit"> | undefined;
|
|
297
|
+
getMedia: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Attachment<"edit"> | undefined;
|
|
298
|
+
getMenuItem: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenuItem<"edit"> | undefined;
|
|
299
|
+
getMenuLocation: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").MenuLocation<"edit"> | undefined;
|
|
300
|
+
getPlugin: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Plugin<"edit"> | undefined;
|
|
301
|
+
getPostType: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Type<"edit"> | undefined;
|
|
302
|
+
getSidebar: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Sidebar<"edit"> | undefined;
|
|
303
|
+
getSite: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Settings<"edit"> | undefined;
|
|
304
|
+
getStatus: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").PostStatusObject<"edit"> | undefined;
|
|
305
|
+
getTaxonomy: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Taxonomy<"edit"> | undefined;
|
|
306
|
+
getTheme: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Theme<"edit"> | undefined;
|
|
307
|
+
getUnstableBase: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").UnstableBase<"edit"> | undefined;
|
|
308
|
+
getUser: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").User<"edit"> | undefined;
|
|
309
|
+
getWidget: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Widget<"edit"> | undefined;
|
|
310
|
+
getWidgetType: (state: selectors.State, id: number | string, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").WidgetType<"edit"> | undefined;
|
|
311
|
+
getMenus: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenu<"edit">[] | null;
|
|
312
|
+
getComments: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Comment<"edit">[] | null;
|
|
313
|
+
getMediaItems: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Attachment<"edit">[] | null;
|
|
314
|
+
getMenuItems: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").NavMenuItem<"edit">[] | null;
|
|
315
|
+
getMenuLocations: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").MenuLocation<"edit">[] | null;
|
|
316
|
+
getPlugins: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Plugin<"edit">[] | null;
|
|
317
|
+
getPostTypes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Type<"edit">[] | null;
|
|
318
|
+
getSidebars: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Sidebar<"edit">[] | null;
|
|
319
|
+
getSites: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Settings<"edit">[] | null;
|
|
320
|
+
getStatuses: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").PostStatusObject<"edit">[] | null;
|
|
321
|
+
getTaxonomies: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Taxonomy<"edit">[] | null;
|
|
322
|
+
getThemes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Theme<"edit">[] | null;
|
|
323
|
+
getUnstableBases: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").UnstableBase<"edit">[] | null;
|
|
324
|
+
getUsers: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").User<"edit">[] | null;
|
|
325
|
+
getWidgets: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").Widget<"edit">[] | null;
|
|
326
|
+
getWidgetTypes: (state: selectors.State, query?: selectors.GetRecordsHttpQuery) => import("./entity-types").WidgetType<"edit">[] | null;
|
|
162
327
|
}>>;
|
|
163
328
|
export { default as EntityProvider } from "./entity-provider";
|
|
164
329
|
export * from "./entity-provider";
|
|
@@ -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":"AAqFA;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;;;;;4CAWk5qB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAXt1qB;;;;;;;2BAjFxC,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../src/resolvers.js"],"names":[],"mappings":"AAkCO,kCAHI,MAAO,SAAS;;oBAYzB;AAKK;;oBAKL;AAYK,sCAPI,MAAM,QACN,MAAM,OACN,MAAM,GAAC,MAAM,qBACb,MAAO,SAAS;;;;;oBAsJzB;AAEF;;GAEG;AACH,0CAAuE;AAEvE;;GAEG;AACH,6CAA0E;AAUnE,uCALI,MAAM,QACN,MAAM,UACN,UAAO;;;;oBA0LhB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+CzB;AAOK,gDAFI,MAAM;;;oBA0Bf;AAOK,wCAFI,MAAM;;oBAuBf"}
|
|
@@ -76,7 +76,7 @@ type Optional<T> = T | undefined;
|
|
|
76
76
|
/**
|
|
77
77
|
* HTTP Query parameters sent with the API request to fetch the entity records.
|
|
78
78
|
*/
|
|
79
|
-
type GetRecordsHttpQuery = Record<string, any>;
|
|
79
|
+
export type GetRecordsHttpQuery = Record<string, any>;
|
|
80
80
|
/**
|
|
81
81
|
* Arguments for EntityRecord selectors.
|
|
82
82
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../src/selectors.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAM3D,MAAM,WAAW,KAAK;IACrB,SAAS,EAAE,MAAM,CAAE,MAAM,GAAG,MAAM,EAAE,KAAK,CAAE,OAAO,CAAE,CAAE,CAAC;IACvD,aAAa,EAAE,KAAK,CAAE,OAAO,CAAE,CAAC;IAChC,sBAAsB,EAAE,KAAK,CAAE,OAAO,CAAE,CAAC;IACzC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,EAAE,CAAC,IAAI,CAAE,MAAM,CAAE,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAE,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAE,CAAC;IAClD,QAAQ,EAAE,aAAa,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,CAAC;IAChD,0BAA0B,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,CAAC;IACrD,yBAAyB,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,CAAC;IACpD,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,E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GAQG;AACH,wBAAgB,oCAAoC,CACnD,KAAK,EAAE,KAAK,GACV,KAAK,CAAE,MAAM,CAAE,GAAG,IAAI,CAcxB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,aAAa,GAClB,MAAM,CAER;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,UACjB,KAAK,QACN,MAAM,QACN,MAAM,aACD,eAAe,UAClB,mBAAmB,KACzB,cAAc,EAAE,GAAG,IAQrB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,WAEf,KAAK,QACN,MAAM,QACN,MAAM,aACD,eAAe,eACb,eAAe,UACpB,mBAAmB,KACzB,cAAc,GAAG,MAAM,CAAE,WAAW,EAAE,KAAK,CAAE,GAAG,SAAS,qCAiD5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/core-data",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.0",
|
|
4
4
|
"description": "Access to and manipulation of core WordPress entities.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "7.25.7",
|
|
36
|
-
"@wordpress/api-fetch": "^7.
|
|
37
|
-
"@wordpress/block-editor": "^14.
|
|
38
|
-
"@wordpress/blocks": "^14.
|
|
39
|
-
"@wordpress/compose": "^7.
|
|
40
|
-
"@wordpress/data": "^10.
|
|
41
|
-
"@wordpress/deprecated": "^4.
|
|
42
|
-
"@wordpress/element": "^6.
|
|
43
|
-
"@wordpress/html-entities": "^4.
|
|
44
|
-
"@wordpress/i18n": "^5.
|
|
45
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
46
|
-
"@wordpress/private-apis": "^1.
|
|
47
|
-
"@wordpress/rich-text": "^7.
|
|
48
|
-
"@wordpress/sync": "^1.
|
|
49
|
-
"@wordpress/undo-manager": "^1.
|
|
50
|
-
"@wordpress/url": "^4.
|
|
51
|
-
"@wordpress/warning": "^3.
|
|
36
|
+
"@wordpress/api-fetch": "^7.16.0",
|
|
37
|
+
"@wordpress/block-editor": "^14.11.0",
|
|
38
|
+
"@wordpress/blocks": "^14.5.0",
|
|
39
|
+
"@wordpress/compose": "^7.16.0",
|
|
40
|
+
"@wordpress/data": "^10.16.0",
|
|
41
|
+
"@wordpress/deprecated": "^4.16.0",
|
|
42
|
+
"@wordpress/element": "^6.16.0",
|
|
43
|
+
"@wordpress/html-entities": "^4.16.0",
|
|
44
|
+
"@wordpress/i18n": "^5.16.0",
|
|
45
|
+
"@wordpress/is-shallow-equal": "^5.16.0",
|
|
46
|
+
"@wordpress/private-apis": "^1.16.0",
|
|
47
|
+
"@wordpress/rich-text": "^7.16.0",
|
|
48
|
+
"@wordpress/sync": "^1.16.0",
|
|
49
|
+
"@wordpress/undo-manager": "^1.16.0",
|
|
50
|
+
"@wordpress/url": "^4.16.0",
|
|
51
|
+
"@wordpress/warning": "^3.16.0",
|
|
52
52
|
"change-case": "^4.1.2",
|
|
53
53
|
"equivalent-key-map": "^0.2.2",
|
|
54
54
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "f48b9f56629e400891abb5ae491504de475237ff"
|
|
66
66
|
}
|
package/src/actions.js
CHANGED
|
@@ -48,7 +48,7 @@ export default function createBatch( processor = defaultProcessor ) {
|
|
|
48
48
|
* rejected when the input is processed by `batch.run()`.
|
|
49
49
|
*
|
|
50
50
|
* You may also pass a thunk which allows inputs to be added
|
|
51
|
-
*
|
|
51
|
+
* asynchronously.
|
|
52
52
|
*
|
|
53
53
|
* ```
|
|
54
54
|
* // Both are allowed:
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { GetRecordsHttpQuery, State } from './selectors';
|
|
5
|
+
import type * as ET from './entity-types';
|
|
6
|
+
|
|
7
|
+
export type WPEntityTypes< C extends ET.Context = 'edit' > = {
|
|
8
|
+
Comment: ET.Comment< C >;
|
|
9
|
+
GlobalStyles: ET.GlobalStylesRevision< C >;
|
|
10
|
+
Media: ET.Attachment< C >;
|
|
11
|
+
Menu: ET.NavMenu< C >;
|
|
12
|
+
MenuItem: ET.NavMenuItem< C >;
|
|
13
|
+
MenuLocation: ET.MenuLocation< C >;
|
|
14
|
+
Plugin: ET.Plugin< C >;
|
|
15
|
+
PostType: ET.Type< C >;
|
|
16
|
+
Revision: ET.PostRevision< C >;
|
|
17
|
+
Sidebar: ET.Sidebar< C >;
|
|
18
|
+
Site: ET.Settings< C >;
|
|
19
|
+
Status: ET.PostStatusObject< C >;
|
|
20
|
+
Taxonomy: ET.Taxonomy< C >;
|
|
21
|
+
Theme: ET.Theme< C >;
|
|
22
|
+
UnstableBase: ET.UnstableBase< C >;
|
|
23
|
+
User: ET.User< C >;
|
|
24
|
+
Widget: ET.Widget< C >;
|
|
25
|
+
WidgetType: ET.WidgetType< C >;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* A simple utility that pluralizes a string.
|
|
30
|
+
* Converts:
|
|
31
|
+
* - "post" to "posts"
|
|
32
|
+
* - "taxonomy" to "taxonomies"
|
|
33
|
+
* - "media" to "mediaItems"
|
|
34
|
+
* - "status" to "statuses"
|
|
35
|
+
*
|
|
36
|
+
* It does not pluralize "GlobalStyles" due to lack of clarity about it at time of writing.
|
|
37
|
+
*/
|
|
38
|
+
type PluralizeEntity< T extends string > = T extends 'GlobalStyles'
|
|
39
|
+
? never
|
|
40
|
+
: T extends 'Media'
|
|
41
|
+
? 'MediaItems'
|
|
42
|
+
: T extends 'Status'
|
|
43
|
+
? 'Statuses'
|
|
44
|
+
: T extends `${ infer U }y`
|
|
45
|
+
? `${ U }ies`
|
|
46
|
+
: `${ T }s`;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* A simple utility that singularizes a string.
|
|
50
|
+
*
|
|
51
|
+
* Converts:
|
|
52
|
+
* - "posts" to "post"
|
|
53
|
+
* - "taxonomies" to "taxonomy"
|
|
54
|
+
* - "mediaItems" to "media"
|
|
55
|
+
* - "statuses" to "status"
|
|
56
|
+
*/
|
|
57
|
+
type SingularizeEntity< T extends string > = T extends 'MediaItems'
|
|
58
|
+
? 'Media'
|
|
59
|
+
: T extends 'Statuses'
|
|
60
|
+
? 'Status'
|
|
61
|
+
: T extends `${ infer U }ies`
|
|
62
|
+
? `${ U }y`
|
|
63
|
+
: T extends `${ infer U }s`
|
|
64
|
+
? U
|
|
65
|
+
: T;
|
|
66
|
+
|
|
67
|
+
export type SingularGetters = {
|
|
68
|
+
[ Key in `get${ keyof WPEntityTypes }` ]: (
|
|
69
|
+
state: State,
|
|
70
|
+
id: number | string,
|
|
71
|
+
query?: GetRecordsHttpQuery
|
|
72
|
+
) => WPEntityTypes[ Key extends `get${ infer E }` ? E : never ] | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type PluralGetters = {
|
|
76
|
+
[ Key in `get${ PluralizeEntity< keyof WPEntityTypes > }` ]: (
|
|
77
|
+
state: State,
|
|
78
|
+
query?: GetRecordsHttpQuery
|
|
79
|
+
) => Array<
|
|
80
|
+
WPEntityTypes[ Key extends `get${ infer E }`
|
|
81
|
+
? SingularizeEntity< E >
|
|
82
|
+
: never ]
|
|
83
|
+
> | null;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
type ActionOptions = {
|
|
87
|
+
throwOnError?: boolean;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
type DeleteRecordsHttpQuery = Record< string, any >;
|
|
91
|
+
|
|
92
|
+
export type SaveActions = {
|
|
93
|
+
[ Key in `save${ keyof WPEntityTypes }` ]: (
|
|
94
|
+
data: Partial<
|
|
95
|
+
WPEntityTypes[ Key extends `save${ infer E }` ? E : never ]
|
|
96
|
+
>,
|
|
97
|
+
options?: ActionOptions
|
|
98
|
+
) => Promise< void >;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export type DeleteActions = {
|
|
102
|
+
[ Key in `delete${ keyof WPEntityTypes }` ]: (
|
|
103
|
+
id: number | string,
|
|
104
|
+
query?: DeleteRecordsHttpQuery,
|
|
105
|
+
options?: ActionOptions
|
|
106
|
+
) => Promise< void >;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export let dynamicActions: SaveActions & DeleteActions;
|
|
110
|
+
|
|
111
|
+
export let dynamicSelectors: SingularGetters & PluralGetters;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Context, OmitNevers } from './helpers';
|
|
5
|
+
import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';
|
|
6
|
+
|
|
7
|
+
export type TemplatePartArea = {
|
|
8
|
+
area: string;
|
|
9
|
+
label: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type TemplateType = {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
declare module './base-entity-records' {
|
|
21
|
+
export namespace BaseEntityRecords {
|
|
22
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
23
|
+
export interface Base< C extends Context > {
|
|
24
|
+
/**
|
|
25
|
+
* Site description.
|
|
26
|
+
*/
|
|
27
|
+
description: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* GMT offset for the site.
|
|
31
|
+
*/
|
|
32
|
+
gmt_offset: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Home URL.
|
|
36
|
+
*/
|
|
37
|
+
home: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Site title
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Site icon ID.
|
|
46
|
+
*/
|
|
47
|
+
site_icon?: number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Site icon URL.
|
|
51
|
+
*/
|
|
52
|
+
site_icon_url: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Site logo ID.
|
|
56
|
+
*/
|
|
57
|
+
site_logo?: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Site timezone string.
|
|
61
|
+
*/
|
|
62
|
+
timezone_string: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Site URL.
|
|
66
|
+
*/
|
|
67
|
+
url: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Default template part areas.
|
|
71
|
+
*/
|
|
72
|
+
default_template_part_areas?: Array< TemplatePartArea >;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Default template types
|
|
76
|
+
*/
|
|
77
|
+
default_template_types?: Array< TemplateType >;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type Base< C extends Context = 'edit' > = OmitNevers<
|
|
83
|
+
_BaseEntityRecords.Base< C >
|
|
84
|
+
>;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { Context, Updatable } from './helpers';
|
|
5
5
|
import type { Attachment } from './attachment';
|
|
6
|
+
import type { Base, TemplatePartArea, TemplateType } from './base';
|
|
6
7
|
import type { Comment } from './comment';
|
|
7
8
|
import type { GlobalStylesRevision } from './global-styles-revision';
|
|
8
9
|
import type { MenuLocation } from './menu-location';
|
|
@@ -11,6 +12,7 @@ import type { NavMenuItem } from './nav-menu-item';
|
|
|
11
12
|
import type { Page } from './page';
|
|
12
13
|
import type { Plugin } from './plugin';
|
|
13
14
|
import type { Post } from './post';
|
|
15
|
+
import type { PostStatusObject } from './post-status';
|
|
14
16
|
import type { PostRevision } from './post-revision';
|
|
15
17
|
import type { Settings } from './settings';
|
|
16
18
|
import type { Sidebar } from './sidebar';
|
|
@@ -27,6 +29,7 @@ export type { BaseEntityRecords } from './base-entity-records';
|
|
|
27
29
|
|
|
28
30
|
export type {
|
|
29
31
|
Attachment,
|
|
32
|
+
Base as UnstableBase,
|
|
30
33
|
Comment,
|
|
31
34
|
Context,
|
|
32
35
|
GlobalStylesRevision,
|
|
@@ -37,13 +40,16 @@ export type {
|
|
|
37
40
|
Plugin,
|
|
38
41
|
Post,
|
|
39
42
|
PostRevision,
|
|
43
|
+
PostStatusObject,
|
|
40
44
|
Settings,
|
|
41
45
|
Sidebar,
|
|
42
46
|
Taxonomy,
|
|
47
|
+
TemplatePartArea,
|
|
48
|
+
TemplateType,
|
|
43
49
|
Theme,
|
|
50
|
+
Type,
|
|
44
51
|
Updatable,
|
|
45
52
|
User,
|
|
46
|
-
Type,
|
|
47
53
|
Widget,
|
|
48
54
|
WidgetType,
|
|
49
55
|
WpTemplate,
|
|
@@ -84,6 +90,7 @@ export type {
|
|
|
84
90
|
*/
|
|
85
91
|
export interface PerPackageEntityRecords< C extends Context > {
|
|
86
92
|
core:
|
|
93
|
+
| Base< C >
|
|
87
94
|
| Attachment< C >
|
|
88
95
|
| Comment< C >
|
|
89
96
|
| GlobalStylesRevision< C >
|
|
@@ -93,6 +100,7 @@ export interface PerPackageEntityRecords< C extends Context > {
|
|
|
93
100
|
| Page< C >
|
|
94
101
|
| Plugin< C >
|
|
95
102
|
| Post< C >
|
|
103
|
+
| PostStatusObject< C >
|
|
96
104
|
| PostRevision< C >
|
|
97
105
|
| Settings< C >
|
|
98
106
|
| Sidebar< C >
|