@wordpress/core-data 6.3.2 → 6.4.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +1 -1
  3. package/build/actions.js +6 -6
  4. package/build/actions.js.map +1 -1
  5. package/build/hooks/use-entity-record.js +4 -4
  6. package/build/hooks/use-entity-record.js.map +1 -1
  7. package/build/hooks/use-entity-records.js +4 -4
  8. package/build/hooks/use-entity-records.js.map +1 -1
  9. package/build/hooks/use-resource-permissions.js +2 -2
  10. package/build/hooks/use-resource-permissions.js.map +1 -1
  11. package/build/selectors.js +116 -116
  12. package/build/selectors.js.map +1 -1
  13. package/build-module/actions.js +6 -6
  14. package/build-module/actions.js.map +1 -1
  15. package/build-module/hooks/use-entity-record.js +4 -4
  16. package/build-module/hooks/use-entity-record.js.map +1 -1
  17. package/build-module/hooks/use-entity-records.js +4 -4
  18. package/build-module/hooks/use-entity-records.js.map +1 -1
  19. package/build-module/hooks/use-resource-permissions.js +2 -2
  20. package/build-module/hooks/use-resource-permissions.js.map +1 -1
  21. package/build-module/selectors.js +116 -116
  22. package/build-module/selectors.js.map +1 -1
  23. package/build-types/actions.d.ts +1 -1
  24. package/build-types/actions.d.ts.map +1 -1
  25. package/build-types/hooks/use-entity-record.d.ts +4 -4
  26. package/build-types/hooks/use-entity-records.d.ts +4 -4
  27. package/build-types/hooks/use-resource-permissions.d.ts +2 -2
  28. package/build-types/index.d.ts +1 -1
  29. package/build-types/selectors.d.ts +115 -115
  30. package/package.json +12 -12
  31. package/src/actions.js +6 -6
  32. package/src/hooks/use-entity-record.ts +4 -4
  33. package/src/hooks/use-entity-records.ts +4 -4
  34. package/src/hooks/use-resource-permissions.ts +2 -2
  35. package/src/selectors.ts +116 -116
  36. package/tsconfig.tsbuildinfo +1 -1
@@ -48,8 +48,8 @@ declare type GetRecordsHttpQuery = Record<string, any>;
48
48
  * Returns true if a request is in progress for embed preview data, or false
49
49
  * otherwise.
50
50
  *
51
- * @param state Data state.
52
- * @param url URL the preview would be for.
51
+ * @param state Data state.
52
+ * @param url URL the preview would be for.
53
53
  *
54
54
  * @return Whether a request is in progress for an embed preview.
55
55
  */
@@ -59,16 +59,16 @@ export declare const isRequestingEmbedPreview: Function;
59
59
  *
60
60
  * @deprecated since 11.3. Callers should use `select( 'core' ).getUsers({ who: 'authors' })` instead.
61
61
  *
62
- * @param state Data state.
63
- * @param query Optional object of query parameters to
64
- * include with request.
62
+ * @param state Data state.
63
+ * @param query Optional object of query parameters to
64
+ * include with request.
65
65
  * @return Authors list.
66
66
  */
67
67
  export declare function getAuthors(state: State, query?: GetRecordsHttpQuery): ET.User[];
68
68
  /**
69
69
  * Returns the current user.
70
70
  *
71
- * @param state Data state.
71
+ * @param state Data state.
72
72
  *
73
73
  * @return Current user object.
74
74
  */
@@ -76,8 +76,8 @@ export declare function getCurrentUser(state: State): ET.User<'edit'>;
76
76
  /**
77
77
  * Returns all the users returned by a query ID.
78
78
  *
79
- * @param state Data state.
80
- * @param queryID Query ID.
79
+ * @param state Data state.
80
+ * @param queryID Query ID.
81
81
  *
82
82
  * @return Users list.
83
83
  */
@@ -86,8 +86,8 @@ export declare const getUserQueryResults: ((state: State, queryID: string) => ET
86
86
  * Returns the loaded entities for the given kind.
87
87
  *
88
88
  * @deprecated since WordPress 6.0. Use getEntitiesConfig instead
89
- * @param state Data state.
90
- * @param kind Entity kind.
89
+ * @param state Data state.
90
+ * @param kind Entity kind.
91
91
  *
92
92
  * @return Array of entities with config matching kind.
93
93
  */
@@ -95,8 +95,8 @@ export declare function getEntitiesByKind(state: State, kind: string): Array<any
95
95
  /**
96
96
  * Returns the loaded entities for the given kind.
97
97
  *
98
- * @param state Data state.
99
- * @param kind Entity kind.
98
+ * @param state Data state.
99
+ * @param kind Entity kind.
100
100
  *
101
101
  * @return Array of entities with config matching kind.
102
102
  */
@@ -105,9 +105,9 @@ export declare function getEntitiesConfig(state: State, kind: string): Array<any
105
105
  * Returns the entity config given its kind and name.
106
106
  *
107
107
  * @deprecated since WordPress 6.0. Use getEntityConfig instead
108
- * @param state Data state.
109
- * @param kind Entity kind.
110
- * @param name Entity name.
108
+ * @param state Data state.
109
+ * @param kind Entity kind.
110
+ * @param name Entity name.
111
111
  *
112
112
  * @return Entity config
113
113
  */
@@ -115,9 +115,9 @@ export declare function getEntity(state: State, kind: string, name: string): any
115
115
  /**
116
116
  * Returns the entity config given its kind and name.
117
117
  *
118
- * @param state Data state.
119
- * @param kind Entity kind.
120
- * @param name Entity name.
118
+ * @param state Data state.
119
+ * @param kind Entity kind.
120
+ * @param name Entity name.
121
121
  *
122
122
  * @return Entity config
123
123
  */
@@ -155,12 +155,12 @@ export interface GetEntityRecord {
155
155
  * yet received, undefined if the value entity is known to not exist, or the
156
156
  * entity object if it exists and is received.
157
157
  *
158
- * @param state State tree
159
- * @param kind Entity kind.
160
- * @param name Entity name.
161
- * @param key Record's key
162
- * @param query Optional query. If requesting specific
163
- * fields, fields must always include the ID.
158
+ * @param state State tree
159
+ * @param kind Entity kind.
160
+ * @param name Entity name.
161
+ * @param key Record's key
162
+ * @param query Optional query. If requesting specific
163
+ * fields, fields must always include the ID.
164
164
  *
165
165
  * @return Record.
166
166
  */
@@ -168,10 +168,10 @@ export declare const getEntityRecord: GetEntityRecord;
168
168
  /**
169
169
  * Returns the Entity's record object by key. Doesn't trigger a resolver nor requests the entity records from the API if the entity record isn't available in the local state.
170
170
  *
171
- * @param state State tree
172
- * @param kind Entity kind.
173
- * @param name Entity name.
174
- * @param key Record's key
171
+ * @param state State tree
172
+ * @param kind Entity kind.
173
+ * @param name Entity name.
174
+ * @param key Record's key
175
175
  *
176
176
  * @return Record.
177
177
  */
@@ -180,10 +180,10 @@ export declare function __experimentalGetEntityRecordNoResolver<EntityRecord ext
180
180
  * Returns the entity's record object by key,
181
181
  * with its attributes mapped to their raw values.
182
182
  *
183
- * @param state State tree.
184
- * @param kind Entity kind.
185
- * @param name Entity name.
186
- * @param key Record's key.
183
+ * @param state State tree.
184
+ * @param kind Entity kind.
185
+ * @param name Entity name.
186
+ * @param key Record's key.
187
187
  *
188
188
  * @return Object with the entity's raw attributes.
189
189
  */
@@ -192,10 +192,10 @@ export declare const getRawEntityRecord: (<EntityRecord extends ET.Attachment<an
192
192
  * Returns true if records have been received for the given set of parameters,
193
193
  * or false otherwise.
194
194
  *
195
- * @param state State tree
196
- * @param kind Entity kind.
197
- * @param name Entity name.
198
- * @param query Optional terms query.
195
+ * @param state State tree
196
+ * @param kind Entity kind.
197
+ * @param name Entity name.
198
+ * @param query Optional terms query.
199
199
  *
200
200
  * @return Whether entity records have been received.
201
201
  */
@@ -215,11 +215,11 @@ export interface GetEntityRecords {
215
215
  /**
216
216
  * Returns the Entity's records.
217
217
  *
218
- * @param state State tree
219
- * @param kind Entity kind.
220
- * @param name Entity name.
221
- * @param query Optional terms query. If requesting specific
222
- * fields, fields must always include the ID.
218
+ * @param state State tree
219
+ * @param kind Entity kind.
220
+ * @param name Entity name.
221
+ * @param query Optional terms query. If requesting specific
222
+ * fields, fields must always include the ID.
223
223
  *
224
224
  * @return Records.
225
225
  */
@@ -233,7 +233,7 @@ declare type DirtyEntityRecord = {
233
233
  /**
234
234
  * Returns the list of dirty entity records.
235
235
  *
236
- * @param state State tree.
236
+ * @param state State tree.
237
237
  *
238
238
  * @return The list of updated records
239
239
  */
@@ -241,7 +241,7 @@ export declare const __experimentalGetDirtyEntityRecords: ((state: State) => Arr
241
241
  /**
242
242
  * Returns the list of entities currently being saved.
243
243
  *
244
- * @param state State tree.
244
+ * @param state State tree.
245
245
  *
246
246
  * @return The list of records being saved.
247
247
  */
@@ -249,10 +249,10 @@ export declare const __experimentalGetEntitiesBeingSaved: ((state: State) => Arr
249
249
  /**
250
250
  * Returns the specified entity record's edits.
251
251
  *
252
- * @param state State tree.
253
- * @param kind Entity kind.
254
- * @param name Entity name.
255
- * @param recordId Record ID.
252
+ * @param state State tree.
253
+ * @param kind Entity kind.
254
+ * @param name Entity name.
255
+ * @param recordId Record ID.
256
256
  *
257
257
  * @return The entity record's edits.
258
258
  */
@@ -264,10 +264,10 @@ export declare function getEntityRecordEdits(state: State, kind: string, name: s
264
264
  * are not considered for change detection.
265
265
  * They are defined in the entity's config.
266
266
  *
267
- * @param state State tree.
268
- * @param kind Entity kind.
269
- * @param name Entity name.
270
- * @param recordId Record ID.
267
+ * @param state State tree.
268
+ * @param kind Entity kind.
269
+ * @param name Entity name.
270
+ * @param recordId Record ID.
271
271
  *
272
272
  * @return The entity record's non transient edits.
273
273
  */
@@ -276,10 +276,10 @@ export declare const getEntityRecordNonTransientEdits: ((state: State, kind: str
276
276
  * Returns true if the specified entity record has edits,
277
277
  * and false otherwise.
278
278
  *
279
- * @param state State tree.
280
- * @param kind Entity kind.
281
- * @param name Entity name.
282
- * @param recordId Record ID.
279
+ * @param state State tree.
280
+ * @param kind Entity kind.
281
+ * @param name Entity name.
282
+ * @param recordId Record ID.
283
283
  *
284
284
  * @return Whether the entity record has edits or not.
285
285
  */
@@ -287,10 +287,10 @@ export declare function hasEditsForEntityRecord(state: State, kind: string, name
287
287
  /**
288
288
  * Returns the specified entity record, merged with its edits.
289
289
  *
290
- * @param state State tree.
291
- * @param kind Entity kind.
292
- * @param name Entity name.
293
- * @param recordId Record ID.
290
+ * @param state State tree.
291
+ * @param kind Entity kind.
292
+ * @param name Entity name.
293
+ * @param recordId Record ID.
294
294
  *
295
295
  * @return The entity record, merged with its edits.
296
296
  */
@@ -298,10 +298,10 @@ export declare const getEditedEntityRecord: (<EntityRecord extends ET.Attachment
298
298
  /**
299
299
  * Returns true if the specified entity record is autosaving, and false otherwise.
300
300
  *
301
- * @param state State tree.
302
- * @param kind Entity kind.
303
- * @param name Entity name.
304
- * @param recordId Record ID.
301
+ * @param state State tree.
302
+ * @param kind Entity kind.
303
+ * @param name Entity name.
304
+ * @param recordId Record ID.
305
305
  *
306
306
  * @return Whether the entity record is autosaving or not.
307
307
  */
@@ -309,10 +309,10 @@ export declare function isAutosavingEntityRecord(state: State, kind: string, nam
309
309
  /**
310
310
  * Returns true if the specified entity record is saving, and false otherwise.
311
311
  *
312
- * @param state State tree.
313
- * @param kind Entity kind.
314
- * @param name Entity name.
315
- * @param recordId Record ID.
312
+ * @param state State tree.
313
+ * @param kind Entity kind.
314
+ * @param name Entity name.
315
+ * @param recordId Record ID.
316
316
  *
317
317
  * @return Whether the entity record is saving or not.
318
318
  */
@@ -320,10 +320,10 @@ export declare function isSavingEntityRecord(state: State, kind: string, name: s
320
320
  /**
321
321
  * Returns true if the specified entity record is deleting, and false otherwise.
322
322
  *
323
- * @param state State tree.
324
- * @param kind Entity kind.
325
- * @param name Entity name.
326
- * @param recordId Record ID.
323
+ * @param state State tree.
324
+ * @param kind Entity kind.
325
+ * @param name Entity name.
326
+ * @param recordId Record ID.
327
327
  *
328
328
  * @return Whether the entity record is deleting or not.
329
329
  */
@@ -331,10 +331,10 @@ export declare function isDeletingEntityRecord(state: State, kind: string, name:
331
331
  /**
332
332
  * Returns the specified entity record's last save error.
333
333
  *
334
- * @param state State tree.
335
- * @param kind Entity kind.
336
- * @param name Entity name.
337
- * @param recordId Record ID.
334
+ * @param state State tree.
335
+ * @param kind Entity kind.
336
+ * @param name Entity name.
337
+ * @param recordId Record ID.
338
338
  *
339
339
  * @return The entity record's save error.
340
340
  */
@@ -342,10 +342,10 @@ export declare function getLastEntitySaveError(state: State, kind: string, name:
342
342
  /**
343
343
  * Returns the specified entity record's last delete error.
344
344
  *
345
- * @param state State tree.
346
- * @param kind Entity kind.
347
- * @param name Entity name.
348
- * @param recordId Record ID.
345
+ * @param state State tree.
346
+ * @param kind Entity kind.
347
+ * @param name Entity name.
348
+ * @param recordId Record ID.
349
349
  *
350
350
  * @return The entity record's save error.
351
351
  */
@@ -354,7 +354,7 @@ export declare function getLastEntityDeleteError(state: State, kind: string, nam
354
354
  * Returns the previous edit from the current undo offset
355
355
  * for the entity records edits history, if any.
356
356
  *
357
- * @param state State tree.
357
+ * @param state State tree.
358
358
  *
359
359
  * @return The edit.
360
360
  */
@@ -363,7 +363,7 @@ export declare function getUndoEdit(state: State): Optional<any>;
363
363
  * Returns the next edit from the current undo offset
364
364
  * for the entity records edits history, if any.
365
365
  *
366
- * @param state State tree.
366
+ * @param state State tree.
367
367
  *
368
368
  * @return The edit.
369
369
  */
@@ -372,7 +372,7 @@ export declare function getRedoEdit(state: State): Optional<any>;
372
372
  * Returns true if there is a previous edit from the current undo offset
373
373
  * for the entity records edits history, and false otherwise.
374
374
  *
375
- * @param state State tree.
375
+ * @param state State tree.
376
376
  *
377
377
  * @return Whether there is a previous edit or not.
378
378
  */
@@ -381,7 +381,7 @@ export declare function hasUndo(state: State): boolean;
381
381
  * Returns true if there is a next edit from the current undo offset
382
382
  * for the entity records edits history, and false otherwise.
383
383
  *
384
- * @param state State tree.
384
+ * @param state State tree.
385
385
  *
386
386
  * @return Whether there is a next edit or not.
387
387
  */
@@ -389,7 +389,7 @@ export declare function hasRedo(state: State): boolean;
389
389
  /**
390
390
  * Return the current theme.
391
391
  *
392
- * @param state Data state.
392
+ * @param state Data state.
393
393
  *
394
394
  * @return The current theme.
395
395
  */
@@ -397,7 +397,7 @@ export declare function getCurrentTheme(state: State): any;
397
397
  /**
398
398
  * Return the ID of the current global styles object.
399
399
  *
400
- * @param state Data state.
400
+ * @param state Data state.
401
401
  *
402
402
  * @return The current global styles ID.
403
403
  */
@@ -405,7 +405,7 @@ export declare function __experimentalGetCurrentGlobalStylesId(state: State): st
405
405
  /**
406
406
  * Return theme supports data in the index.
407
407
  *
408
- * @param state Data state.
408
+ * @param state Data state.
409
409
  *
410
410
  * @return Index data.
411
411
  */
@@ -413,8 +413,8 @@ export declare function getThemeSupports(state: State): any;
413
413
  /**
414
414
  * Returns the embed preview for the given URL.
415
415
  *
416
- * @param state Data state.
417
- * @param url Embedded URL.
416
+ * @param state Data state.
417
+ * @param url Embedded URL.
418
418
  *
419
419
  * @return Undefined if the preview has not been fetched, otherwise, the preview fetched from the embed preview API.
420
420
  */
@@ -426,8 +426,8 @@ export declare function getEmbedPreview(state: State, url: string): any;
426
426
  * We need to be able to determine if a URL is embeddable or not, based on what we
427
427
  * get back from the oEmbed preview API.
428
428
  *
429
- * @param state Data state.
430
- * @param url Embedded URL.
429
+ * @param state Data state.
430
+ * @param url Embedded URL.
431
431
  *
432
432
  * @return Is the preview for the URL an oEmbed link fallback.
433
433
  */
@@ -441,10 +441,10 @@ export declare function isPreviewEmbedFallback(state: State, url: string): boole
441
441
  *
442
442
  * https://developer.wordpress.org/rest-api/reference/
443
443
  *
444
- * @param state Data state.
445
- * @param action Action to check. One of: 'create', 'read', 'update', 'delete'.
446
- * @param resource REST resource to check, e.g. 'media' or 'posts'.
447
- * @param id Optional ID of the rest resource to check.
444
+ * @param state Data state.
445
+ * @param action Action to check. One of: 'create', 'read', 'update', 'delete'.
446
+ * @param resource REST resource to check, e.g. 'media' or 'posts'.
447
+ * @param id Optional ID of the rest resource to check.
448
448
  *
449
449
  * @return Whether or not the user can perform the action,
450
450
  * or `undefined` if the OPTIONS request is still being made.
@@ -458,10 +458,10 @@ export declare function canUser(state: State, action: string, resource: string,
458
458
  *
459
459
  * https://developer.wordpress.org/rest-api/reference/
460
460
  *
461
- * @param state Data state.
462
- * @param kind Entity kind.
463
- * @param name Entity name.
464
- * @param recordId Record's id.
461
+ * @param state Data state.
462
+ * @param kind Entity kind.
463
+ * @param name Entity name.
464
+ * @param recordId Record's id.
465
465
  * @return Whether or not the user can edit,
466
466
  * or `undefined` if the OPTIONS request is still being made.
467
467
  */
@@ -472,9 +472,9 @@ export declare function canUserEditEntityRecord(state: State, kind: string, name
472
472
  * May return multiple autosaves since the backend stores one autosave per
473
473
  * author for each post.
474
474
  *
475
- * @param state State tree.
476
- * @param postType The type of the parent post.
477
- * @param postId The id of the parent post.
475
+ * @param state State tree.
476
+ * @param postType The type of the parent post.
477
+ * @param postId The id of the parent post.
478
478
  *
479
479
  * @return An array of autosaves for the post, or undefined if there is none.
480
480
  */
@@ -482,10 +482,10 @@ export declare function getAutosaves(state: State, postType: string, postId: Ent
482
482
  /**
483
483
  * Returns the autosave for the post and author.
484
484
  *
485
- * @param state State tree.
486
- * @param postType The type of the parent post.
487
- * @param postId The id of the parent post.
488
- * @param authorId The id of the author.
485
+ * @param state State tree.
486
+ * @param postType The type of the parent post.
487
+ * @param postId The id of the parent post.
488
+ * @param authorId The id of the author.
489
489
  *
490
490
  * @return The autosave for the post and author.
491
491
  */
@@ -493,9 +493,9 @@ export declare function getAutosave<EntityRecord extends ET.EntityRecord<any>>(s
493
493
  /**
494
494
  * Returns true if the REST request for autosaves has completed.
495
495
  *
496
- * @param state State tree.
497
- * @param postType The type of the parent post.
498
- * @param postId The id of the parent post.
496
+ * @param state State tree.
497
+ * @param postType The type of the parent post.
498
+ * @param postId The id of the parent post.
499
499
  *
500
500
  * @return True if the REST request was completed. False otherwise.
501
501
  */
@@ -514,7 +514,7 @@ export declare const hasFetchedAutosaves: Function;
514
514
  * );
515
515
  * ```
516
516
  *
517
- * @param state Editor state.
517
+ * @param state Editor state.
518
518
  *
519
519
  * @return A value whose reference will change only when an edit occurs.
520
520
  */
@@ -522,8 +522,8 @@ export declare const getReferenceByDistinctEdits: ((state: State) => never[]) &
522
522
  /**
523
523
  * Retrieve the frontend template used for a given link.
524
524
  *
525
- * @param state Editor state.
526
- * @param link Link.
525
+ * @param state Editor state.
526
+ * @param link Link.
527
527
  *
528
528
  * @return The template record.
529
529
  */
@@ -531,7 +531,7 @@ export declare function __experimentalGetTemplateForLink(state: State, link: str
531
531
  /**
532
532
  * Retrieve the current theme's base global styles
533
533
  *
534
- * @param state Editor state.
534
+ * @param state Editor state.
535
535
  *
536
536
  * @return The Global Styles object.
537
537
  */
@@ -539,7 +539,7 @@ export declare function __experimentalGetCurrentThemeBaseGlobalStyles(state: Sta
539
539
  /**
540
540
  * Return the ID of the current global styles object.
541
541
  *
542
- * @param state Data state.
542
+ * @param state Data state.
543
543
  *
544
544
  * @return The current global styles ID.
545
545
  */
@@ -547,7 +547,7 @@ export declare function __experimentalGetCurrentThemeGlobalStylesVariations(stat
547
547
  /**
548
548
  * Retrieve the list of registered block patterns.
549
549
  *
550
- * @param state Data state.
550
+ * @param state Data state.
551
551
  *
552
552
  * @return Block pattern list.
553
553
  */
@@ -555,7 +555,7 @@ export declare function getBlockPatterns(state: State): Array<any>;
555
555
  /**
556
556
  * Retrieve the list of registered block pattern categories.
557
557
  *
558
- * @param state Data state.
558
+ * @param state Data state.
559
559
  *
560
560
  * @return Block pattern category list.
561
561
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/core-data",
3
- "version": "6.3.2",
3
+ "version": "6.4.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",
@@ -31,16 +31,16 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.16.0",
34
- "@wordpress/api-fetch": "^6.23.1",
35
- "@wordpress/blocks": "^12.3.2",
36
- "@wordpress/compose": "^6.3.2",
37
- "@wordpress/data": "^8.3.2",
38
- "@wordpress/deprecated": "^3.26.1",
39
- "@wordpress/element": "^5.3.1",
40
- "@wordpress/html-entities": "^3.26.1",
41
- "@wordpress/i18n": "^4.26.1",
42
- "@wordpress/is-shallow-equal": "^4.26.1",
43
- "@wordpress/url": "^3.27.1",
34
+ "@wordpress/api-fetch": "^6.24.0",
35
+ "@wordpress/blocks": "^12.4.0",
36
+ "@wordpress/compose": "^6.4.0",
37
+ "@wordpress/data": "^8.4.0",
38
+ "@wordpress/deprecated": "^3.27.0",
39
+ "@wordpress/element": "^5.4.0",
40
+ "@wordpress/html-entities": "^3.27.0",
41
+ "@wordpress/i18n": "^4.27.0",
42
+ "@wordpress/is-shallow-equal": "^4.27.0",
43
+ "@wordpress/url": "^3.28.0",
44
44
  "change-case": "^4.1.2",
45
45
  "equivalent-key-map": "^0.2.2",
46
46
  "fast-deep-equal": "^3.1.3",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "1bf01c01a8238ce3a681ad1e517f86033818b78d"
58
+ "gitHead": "c25ff895413bad4354c55c0c2d732552618b0d56"
59
59
  }
package/src/actions.js CHANGED
@@ -319,12 +319,12 @@ export const deleteEntityRecord =
319
319
  * Returns an action object that triggers an
320
320
  * edit to an entity record.
321
321
  *
322
- * @param {string} kind Kind of the edited entity record.
323
- * @param {string} name Name of the edited entity record.
324
- * @param {number} recordId Record ID of the edited entity record.
325
- * @param {Object} edits The edits.
326
- * @param {Object} options Options for the edit.
327
- * @param {boolean} [options.undoIgnore] Whether to ignore the edit in undo history or not.
322
+ * @param {string} kind Kind of the edited entity record.
323
+ * @param {string} name Name of the edited entity record.
324
+ * @param {number|string} recordId Record ID of the edited entity record.
325
+ * @param {Object} edits The edits.
326
+ * @param {Object} options Options for the edit.
327
+ * @param {boolean} [options.undoIgnore] Whether to ignore the edit in undo history or not.
328
328
  *
329
329
  * @return {Object} Action object.
330
330
  */
@@ -58,10 +58,10 @@ export interface Options {
58
58
  *
59
59
  * @since 6.1.0 Introduced in WordPress core.
60
60
  *
61
- * @param kind Kind of the entity, e.g. `root` or a `postType`. See rootEntitiesConfig in ../entities.ts for a list of available kinds.
62
- * @param name Name of the entity, e.g. `plugin` or a `post`. See rootEntitiesConfig in ../entities.ts for a list of available names.
63
- * @param recordId ID of the requested entity record.
64
- * @param options Optional hook options.
61
+ * @param kind Kind of the entity, e.g. `root` or a `postType`. See rootEntitiesConfig in ../entities.ts for a list of available kinds.
62
+ * @param name Name of the entity, e.g. `plugin` or a `post`. See rootEntitiesConfig in ../entities.ts for a list of available names.
63
+ * @param recordId ID of the requested entity record.
64
+ * @param options Optional hook options.
65
65
  * @example
66
66
  * ```js
67
67
  * import { useEntityRecord } from '@wordpress/core-data';
@@ -37,10 +37,10 @@ const EMPTY_ARRAY = [];
37
37
  *
38
38
  * @since 6.1.0 Introduced in WordPress core.
39
39
  *
40
- * @param kind Kind of the entity, e.g. `root` or a `postType`. See rootEntitiesConfig in ../entities.ts for a list of available kinds.
41
- * @param name Name of the entity, e.g. `plugin` or a `post`. See rootEntitiesConfig in ../entities.ts for a list of available names.
42
- * @param queryArgs Optional HTTP query description for how to fetch the data, passed to the requested API endpoint.
43
- * @param options Optional hook options.
40
+ * @param kind Kind of the entity, e.g. `root` or a `postType`. See rootEntitiesConfig in ../entities.ts for a list of available kinds.
41
+ * @param name Name of the entity, e.g. `plugin` or a `post`. See rootEntitiesConfig in ../entities.ts for a list of available names.
42
+ * @param queryArgs Optional HTTP query description for how to fetch the data, passed to the requested API endpoint.
43
+ * @param options Optional hook options.
44
44
  * @example
45
45
  * ```js
46
46
  * import { useEntityRecord } from '@wordpress/core-data';
@@ -46,8 +46,8 @@ type ResourcePermissionsResolution< IdType > = [
46
46
  *
47
47
  * @since 6.1.0 Introduced in WordPress core.
48
48
  *
49
- * @param resource The resource in question, e.g. media.
50
- * @param id ID of a specific resource entry, if needed, e.g. 10.
49
+ * @param resource The resource in question, e.g. media.
50
+ * @param id ID of a specific resource entry, if needed, e.g. 10.
51
51
  *
52
52
  * @example
53
53
  * ```js