@wordpress/core-data 7.37.0 → 7.37.1-next.ba3aee3a2.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 +0 -2
- package/LICENSE.md +1 -1
- package/README.md +0 -1
- package/build/{actions.js → actions.cjs} +8 -8
- package/build/batch/{create-batch.js → create-batch.cjs} +2 -2
- package/build/batch/{default-processor.js → default-processor.cjs} +1 -1
- package/build/batch/{index.js → index.cjs} +3 -3
- package/build/{dynamic-entities.js → dynamic-entities.cjs} +1 -1
- package/build/{entities.js → entities.cjs} +3 -3
- package/build/{entity-context.js → entity-context.cjs} +1 -1
- package/build/{entity-provider.js → entity-provider.cjs} +2 -2
- package/build/entity-types/{attachment.js → attachment.cjs} +1 -1
- package/build/entity-types/{base-entity-records.js → base-entity-records.cjs} +1 -1
- package/build/entity-types/{base.js → base.cjs} +1 -1
- package/build/entity-types/{comment.js → comment.cjs} +1 -1
- package/build/entity-types/{font-collection.js → font-collection.cjs} +1 -1
- package/build/entity-types/{font-family.js → font-family.cjs} +1 -1
- package/build/entity-types/{global-styles-revision.js → global-styles-revision.cjs} +1 -1
- package/build/entity-types/{helpers.js → helpers.cjs} +1 -1
- package/build/entity-types/{index.js → index.cjs} +1 -1
- package/build/entity-types/{menu-location.js → menu-location.cjs} +1 -1
- package/build/entity-types/{nav-menu-item.js → nav-menu-item.cjs} +1 -1
- package/build/entity-types/{nav-menu.js → nav-menu.cjs} +1 -1
- package/build/entity-types/{page.js → page.cjs} +1 -1
- package/build/entity-types/{plugin.js → plugin.cjs} +1 -1
- package/build/entity-types/{post-revision.js → post-revision.cjs} +1 -1
- package/build/entity-types/{post-status.js → post-status.cjs} +1 -1
- package/build/entity-types/{post.js → post.cjs} +1 -1
- package/build/entity-types/{settings.js → settings.cjs} +1 -1
- package/build/entity-types/{sidebar.js → sidebar.cjs} +1 -1
- package/build/entity-types/{taxonomy.js → taxonomy.cjs} +1 -1
- package/build/entity-types/{term.js → term.cjs} +1 -1
- package/build/entity-types/{theme.js → theme.cjs} +1 -1
- package/build/entity-types/{type.js → type.cjs} +1 -1
- package/build/entity-types/{user.js → user.cjs} +1 -1
- package/build/entity-types/{widget-type.js → widget-type.cjs} +1 -1
- package/build/entity-types/{widget.js → widget.cjs} +1 -1
- package/build/entity-types/{wp-template-part.js → wp-template-part.cjs} +1 -1
- package/build/entity-types/{wp-template.js → wp-template.cjs} +1 -1
- package/build/fetch/{__experimental-fetch-link-suggestions.js → __experimental-fetch-link-suggestions.cjs} +1 -1
- package/build/fetch/{__experimental-fetch-url-data.js → __experimental-fetch-url-data.cjs} +1 -1
- package/build/fetch/{index.js → index.cjs} +3 -3
- package/build/footnotes/{get-footnotes-order.js → get-footnotes-order.cjs} +2 -2
- package/build/footnotes/{get-rich-text-values-cached.js → get-rich-text-values-cached.cjs} +2 -2
- package/build/footnotes/{index.js → index.cjs} +2 -2
- package/build/hooks/{constants.js → constants.cjs} +1 -1
- package/build/hooks/{index.js → index.cjs} +7 -7
- package/build/hooks/{memoize.js → memoize.cjs} +1 -1
- package/build/hooks/{use-entity-block-editor.js → use-entity-block-editor.cjs} +4 -4
- package/build/hooks/{use-entity-id.js → use-entity-id.cjs} +2 -2
- package/build/hooks/{use-entity-prop.js → use-entity-prop.cjs} +3 -3
- package/build/hooks/{use-entity-record.js → use-entity-record.cjs} +3 -3
- package/build/hooks/{use-entity-record.js.map → use-entity-record.cjs.map} +2 -2
- package/build/hooks/{use-entity-records.js → use-entity-records.cjs} +5 -5
- package/build/hooks/{use-query-select.js → use-query-select.cjs} +3 -3
- package/build/hooks/{use-resource-permissions.js → use-resource-permissions.cjs} +4 -4
- package/build/{index.js → index.cjs} +24 -24
- package/build/{index.js.map → index.cjs.map} +1 -1
- package/build/{lock-unlock.js → lock-unlock.cjs} +1 -1
- package/build/locks/{actions.js → actions.cjs} +2 -2
- package/build/locks/{engine.js → engine.cjs} +3 -3
- package/build/locks/{reducer.js → reducer.cjs} +2 -2
- package/build/locks/{selectors.js → selectors.cjs} +2 -2
- package/build/locks/{utils.js → utils.cjs} +1 -1
- package/build/{name.js → name.cjs} +1 -1
- package/build/{private-actions.js → private-actions.cjs} +2 -2
- package/build/{private-apis.js → private-apis.cjs} +4 -4
- package/build/{private-selectors.js → private-selectors.cjs} +6 -6
- package/build/queried-data/{actions.js → actions.cjs} +1 -1
- package/build/queried-data/{get-query-parts.js → get-query-parts.cjs} +2 -2
- package/build/queried-data/{index.js → index.cjs} +6 -6
- package/build/queried-data/{index.js.map → index.cjs.map} +1 -1
- package/build/queried-data/{reducer.js → reducer.cjs} +4 -4
- package/build/queried-data/{selectors.js → selectors.cjs} +3 -3
- package/build/{reducer.js → reducer.cjs} +4 -4
- package/build/{resolvers.js → resolvers.cjs} +6 -6
- package/build/{selectors.js → selectors.cjs} +7 -7
- package/build/{selectors.js.map → selectors.cjs.map} +2 -2
- package/build/{sync.js → sync.cjs} +1 -1
- package/build/{types.js → types.cjs} +1 -1
- package/build/utils/{conservative-map-item.js → conservative-map-item.cjs} +1 -1
- package/build/utils/{crdt-blocks.js → crdt-blocks.cjs} +7 -6
- package/build/utils/{crdt-blocks.js.map → crdt-blocks.cjs.map} +2 -2
- package/build/utils/{crdt.js → crdt.cjs} +4 -4
- package/build/utils/{crdt.js.map → crdt.cjs.map} +2 -2
- package/build/utils/{forward-resolver.js → forward-resolver.cjs} +1 -1
- package/build/utils/{get-nested-value.js → get-nested-value.cjs} +1 -1
- package/build/utils/{get-normalized-comma-separable.js → get-normalized-comma-separable.cjs} +1 -1
- package/build/utils/{if-matching-action.js → if-matching-action.cjs} +1 -1
- package/build/utils/{index.js → index.cjs} +14 -14
- package/build/utils/{is-numeric-id.js → is-numeric-id.cjs} +1 -1
- package/build/utils/{is-raw-attribute.js → is-raw-attribute.cjs} +1 -1
- package/build/utils/{log-entity-deprecation.js → log-entity-deprecation.cjs} +2 -2
- package/build/utils/{on-sub-key.js → on-sub-key.cjs} +1 -1
- package/build/utils/{receive-intermediate-results.js → receive-intermediate-results.cjs} +2 -2
- package/build/utils/{replace-action.js → replace-action.cjs} +1 -1
- package/build/utils/{set-nested-value.js → set-nested-value.cjs} +1 -1
- package/build/utils/{user-permissions.js → user-permissions.cjs} +1 -1
- package/build/utils/{with-weak-map-cache.js → with-weak-map-cache.cjs} +1 -1
- package/build-module/{actions.js → actions.mjs} +8 -8
- package/build-module/batch/{create-batch.js → create-batch.mjs} +2 -2
- package/build-module/batch/{default-processor.js → default-processor.mjs} +1 -1
- package/build-module/batch/index.mjs +8 -0
- package/build-module/{dynamic-entities.js → dynamic-entities.mjs} +1 -1
- package/build-module/{entities.js → entities.mjs} +3 -3
- package/build-module/{entity-context.js → entity-context.mjs} +1 -1
- package/build-module/{entity-provider.js → entity-provider.mjs} +2 -2
- package/build-module/entity-types/attachment.mjs +1 -0
- package/build-module/entity-types/base-entity-records.mjs +1 -0
- package/build-module/entity-types/base.mjs +1 -0
- package/build-module/entity-types/comment.mjs +1 -0
- package/build-module/entity-types/font-collection.mjs +1 -0
- package/build-module/entity-types/font-family.mjs +1 -0
- package/build-module/entity-types/global-styles-revision.mjs +1 -0
- package/build-module/entity-types/helpers.mjs +1 -0
- package/build-module/entity-types/index.mjs +1 -0
- package/build-module/entity-types/menu-location.mjs +1 -0
- package/build-module/entity-types/nav-menu-item.mjs +1 -0
- package/build-module/entity-types/nav-menu.mjs +1 -0
- package/build-module/entity-types/page.mjs +1 -0
- package/build-module/entity-types/plugin.mjs +1 -0
- package/build-module/entity-types/post-revision.mjs +1 -0
- package/build-module/entity-types/post-status.mjs +1 -0
- package/build-module/entity-types/post.mjs +1 -0
- package/build-module/entity-types/settings.mjs +1 -0
- package/build-module/entity-types/sidebar.mjs +1 -0
- package/build-module/entity-types/taxonomy.mjs +1 -0
- package/build-module/entity-types/term.mjs +1 -0
- package/build-module/entity-types/theme.mjs +1 -0
- package/build-module/entity-types/type.mjs +1 -0
- package/build-module/entity-types/user.mjs +1 -0
- package/build-module/entity-types/widget-type.mjs +1 -0
- package/build-module/entity-types/widget.mjs +1 -0
- package/build-module/entity-types/wp-template-part.mjs +1 -0
- package/build-module/entity-types/wp-template.mjs +1 -0
- package/build-module/fetch/{__experimental-fetch-link-suggestions.js → __experimental-fetch-link-suggestions.mjs} +1 -1
- package/build-module/fetch/{__experimental-fetch-url-data.js → __experimental-fetch-url-data.mjs} +1 -1
- package/build-module/fetch/{index.js → index.mjs} +3 -3
- package/build-module/footnotes/{get-footnotes-order.js → get-footnotes-order.mjs} +2 -2
- package/build-module/footnotes/{get-rich-text-values-cached.js → get-rich-text-values-cached.mjs} +2 -2
- package/build-module/footnotes/{index.js → index.mjs} +2 -2
- package/build-module/hooks/{constants.js → constants.mjs} +1 -1
- package/build-module/hooks/{index.js → index.mjs} +7 -7
- package/build-module/hooks/{memoize.js → memoize.mjs} +1 -1
- package/build-module/hooks/{use-entity-block-editor.js → use-entity-block-editor.mjs} +4 -4
- package/build-module/hooks/{use-entity-id.js → use-entity-id.mjs} +2 -2
- package/build-module/hooks/{use-entity-prop.js → use-entity-prop.mjs} +3 -3
- package/build-module/hooks/{use-entity-record.js → use-entity-record.mjs} +3 -3
- package/build-module/hooks/{use-entity-record.js.map → use-entity-record.mjs.map} +2 -2
- package/build-module/hooks/{use-entity-records.js → use-entity-records.mjs} +5 -5
- package/build-module/hooks/{use-query-select.js → use-query-select.mjs} +3 -3
- package/build-module/hooks/{use-resource-permissions.js → use-resource-permissions.mjs} +4 -4
- package/build-module/{index.js → index.mjs} +19 -19
- package/build-module/{lock-unlock.js → lock-unlock.mjs} +1 -1
- package/build-module/locks/{actions.js → actions.mjs} +2 -2
- package/build-module/locks/{engine.js → engine.mjs} +3 -3
- package/build-module/locks/{reducer.js → reducer.mjs} +2 -2
- package/build-module/locks/{selectors.js → selectors.mjs} +2 -2
- package/build-module/locks/{utils.js → utils.mjs} +1 -1
- package/build-module/{name.js → name.mjs} +1 -1
- package/build-module/{private-actions.js → private-actions.mjs} +2 -2
- package/build-module/{private-apis.js → private-apis.mjs} +4 -4
- package/build-module/{private-selectors.js → private-selectors.mjs} +6 -6
- package/build-module/queried-data/{actions.js → actions.mjs} +1 -1
- package/build-module/queried-data/{get-query-parts.js → get-query-parts.mjs} +2 -2
- package/build-module/queried-data/index.mjs +8 -0
- package/build-module/queried-data/{reducer.js → reducer.mjs} +4 -4
- package/build-module/queried-data/{selectors.js → selectors.mjs} +3 -3
- package/build-module/{reducer.js → reducer.mjs} +4 -4
- package/build-module/{resolvers.js → resolvers.mjs} +6 -6
- package/build-module/{selectors.js → selectors.mjs} +7 -7
- package/build-module/{selectors.js.map → selectors.mjs.map} +2 -2
- package/build-module/{sync.js → sync.mjs} +1 -1
- package/build-module/types.mjs +1 -0
- package/build-module/utils/{conservative-map-item.js → conservative-map-item.mjs} +1 -1
- package/build-module/utils/{crdt-blocks.js → crdt-blocks.mjs} +7 -6
- package/build-module/utils/{crdt-blocks.js.map → crdt-blocks.mjs.map} +2 -2
- package/build-module/utils/{crdt.js → crdt.mjs} +4 -4
- package/build-module/utils/{crdt.js.map → crdt.mjs.map} +2 -2
- package/build-module/utils/{forward-resolver.js → forward-resolver.mjs} +1 -1
- package/build-module/utils/{get-nested-value.js → get-nested-value.mjs} +1 -1
- package/build-module/utils/{get-normalized-comma-separable.js → get-normalized-comma-separable.mjs} +1 -1
- package/build-module/utils/{if-matching-action.js → if-matching-action.mjs} +1 -1
- package/build-module/utils/{index.js → index.mjs} +14 -14
- package/build-module/utils/{is-numeric-id.js → is-numeric-id.mjs} +1 -1
- package/build-module/utils/{is-raw-attribute.js → is-raw-attribute.mjs} +1 -1
- package/build-module/utils/{log-entity-deprecation.js → log-entity-deprecation.mjs} +2 -2
- package/build-module/utils/{on-sub-key.js → on-sub-key.mjs} +1 -1
- package/build-module/utils/{receive-intermediate-results.js → receive-intermediate-results.mjs} +2 -2
- package/build-module/utils/{replace-action.js → replace-action.mjs} +1 -1
- package/build-module/utils/{set-nested-value.js → set-nested-value.mjs} +1 -1
- package/build-module/utils/{user-permissions.js → user-permissions.mjs} +1 -1
- package/build-module/utils/{with-weak-map-cache.js → with-weak-map-cache.mjs} +1 -1
- package/build-types/hooks/use-entity-record.d.ts +0 -1
- package/build-types/hooks/use-entity-record.d.ts.map +1 -1
- package/build-types/index.d.ts +9 -9
- package/build-types/index.d.ts.map +1 -1
- package/build-types/selectors.d.ts +2 -1
- package/build-types/selectors.d.ts.map +1 -1
- package/build-types/utils/crdt-blocks.d.ts.map +1 -1
- package/package.json +34 -24
- package/src/hooks/use-entity-record.ts +0 -1
- package/src/selectors.ts +11 -1
- package/src/utils/crdt-blocks.ts +8 -6
- package/src/utils/crdt.ts +3 -3
- package/src/utils/test/crdt-blocks.ts +99 -0
- package/src/utils/test/crdt.ts +42 -3
- package/build-module/batch/index.js +0 -8
- package/build-module/entity-types/attachment.js +0 -1
- package/build-module/entity-types/base-entity-records.js +0 -1
- package/build-module/entity-types/base.js +0 -1
- package/build-module/entity-types/comment.js +0 -1
- package/build-module/entity-types/font-collection.js +0 -1
- package/build-module/entity-types/font-family.js +0 -1
- package/build-module/entity-types/global-styles-revision.js +0 -1
- package/build-module/entity-types/helpers.js +0 -1
- package/build-module/entity-types/index.js +0 -1
- package/build-module/entity-types/menu-location.js +0 -1
- package/build-module/entity-types/nav-menu-item.js +0 -1
- package/build-module/entity-types/nav-menu.js +0 -1
- package/build-module/entity-types/page.js +0 -1
- package/build-module/entity-types/plugin.js +0 -1
- package/build-module/entity-types/post-revision.js +0 -1
- package/build-module/entity-types/post-status.js +0 -1
- package/build-module/entity-types/post.js +0 -1
- package/build-module/entity-types/settings.js +0 -1
- package/build-module/entity-types/sidebar.js +0 -1
- package/build-module/entity-types/taxonomy.js +0 -1
- package/build-module/entity-types/term.js +0 -1
- package/build-module/entity-types/theme.js +0 -1
- package/build-module/entity-types/type.js +0 -1
- package/build-module/entity-types/user.js +0 -1
- package/build-module/entity-types/widget-type.js +0 -1
- package/build-module/entity-types/widget.js +0 -1
- package/build-module/entity-types/wp-template-part.js +0 -1
- package/build-module/entity-types/wp-template.js +0 -1
- package/build-module/queried-data/index.js +0 -8
- package/build-module/types.js +0 -1
- package/tsconfig.json +0 -25
- package/tsconfig.tsbuildinfo +0 -1
- /package/build/{actions.js.map → actions.cjs.map} +0 -0
- /package/build/batch/{create-batch.js.map → create-batch.cjs.map} +0 -0
- /package/build/batch/{default-processor.js.map → default-processor.cjs.map} +0 -0
- /package/build/batch/{index.js.map → index.cjs.map} +0 -0
- /package/build/{dynamic-entities.js.map → dynamic-entities.cjs.map} +0 -0
- /package/build/{entities.js.map → entities.cjs.map} +0 -0
- /package/build/{entity-context.js.map → entity-context.cjs.map} +0 -0
- /package/build/{entity-provider.js.map → entity-provider.cjs.map} +0 -0
- /package/build/entity-types/{attachment.js.map → attachment.cjs.map} +0 -0
- /package/build/entity-types/{base-entity-records.js.map → base-entity-records.cjs.map} +0 -0
- /package/build/entity-types/{base.js.map → base.cjs.map} +0 -0
- /package/build/entity-types/{comment.js.map → comment.cjs.map} +0 -0
- /package/build/entity-types/{font-collection.js.map → font-collection.cjs.map} +0 -0
- /package/build/entity-types/{font-family.js.map → font-family.cjs.map} +0 -0
- /package/build/entity-types/{global-styles-revision.js.map → global-styles-revision.cjs.map} +0 -0
- /package/build/entity-types/{helpers.js.map → helpers.cjs.map} +0 -0
- /package/build/entity-types/{index.js.map → index.cjs.map} +0 -0
- /package/build/entity-types/{menu-location.js.map → menu-location.cjs.map} +0 -0
- /package/build/entity-types/{nav-menu-item.js.map → nav-menu-item.cjs.map} +0 -0
- /package/build/entity-types/{nav-menu.js.map → nav-menu.cjs.map} +0 -0
- /package/build/entity-types/{page.js.map → page.cjs.map} +0 -0
- /package/build/entity-types/{plugin.js.map → plugin.cjs.map} +0 -0
- /package/build/entity-types/{post-revision.js.map → post-revision.cjs.map} +0 -0
- /package/build/entity-types/{post-status.js.map → post-status.cjs.map} +0 -0
- /package/build/entity-types/{post.js.map → post.cjs.map} +0 -0
- /package/build/entity-types/{settings.js.map → settings.cjs.map} +0 -0
- /package/build/entity-types/{sidebar.js.map → sidebar.cjs.map} +0 -0
- /package/build/entity-types/{taxonomy.js.map → taxonomy.cjs.map} +0 -0
- /package/build/entity-types/{term.js.map → term.cjs.map} +0 -0
- /package/build/entity-types/{theme.js.map → theme.cjs.map} +0 -0
- /package/build/entity-types/{type.js.map → type.cjs.map} +0 -0
- /package/build/entity-types/{user.js.map → user.cjs.map} +0 -0
- /package/build/entity-types/{widget-type.js.map → widget-type.cjs.map} +0 -0
- /package/build/entity-types/{widget.js.map → widget.cjs.map} +0 -0
- /package/build/entity-types/{wp-template-part.js.map → wp-template-part.cjs.map} +0 -0
- /package/build/entity-types/{wp-template.js.map → wp-template.cjs.map} +0 -0
- /package/build/fetch/{__experimental-fetch-link-suggestions.js.map → __experimental-fetch-link-suggestions.cjs.map} +0 -0
- /package/build/fetch/{__experimental-fetch-url-data.js.map → __experimental-fetch-url-data.cjs.map} +0 -0
- /package/build/fetch/{index.js.map → index.cjs.map} +0 -0
- /package/build/footnotes/{get-footnotes-order.js.map → get-footnotes-order.cjs.map} +0 -0
- /package/build/footnotes/{get-rich-text-values-cached.js.map → get-rich-text-values-cached.cjs.map} +0 -0
- /package/build/footnotes/{index.js.map → index.cjs.map} +0 -0
- /package/build/hooks/{constants.js.map → constants.cjs.map} +0 -0
- /package/build/hooks/{index.js.map → index.cjs.map} +0 -0
- /package/build/hooks/{memoize.js.map → memoize.cjs.map} +0 -0
- /package/build/hooks/{use-entity-block-editor.js.map → use-entity-block-editor.cjs.map} +0 -0
- /package/build/hooks/{use-entity-id.js.map → use-entity-id.cjs.map} +0 -0
- /package/build/hooks/{use-entity-prop.js.map → use-entity-prop.cjs.map} +0 -0
- /package/build/hooks/{use-entity-records.js.map → use-entity-records.cjs.map} +0 -0
- /package/build/hooks/{use-query-select.js.map → use-query-select.cjs.map} +0 -0
- /package/build/hooks/{use-resource-permissions.js.map → use-resource-permissions.cjs.map} +0 -0
- /package/build/{lock-unlock.js.map → lock-unlock.cjs.map} +0 -0
- /package/build/locks/{actions.js.map → actions.cjs.map} +0 -0
- /package/build/locks/{engine.js.map → engine.cjs.map} +0 -0
- /package/build/locks/{reducer.js.map → reducer.cjs.map} +0 -0
- /package/build/locks/{selectors.js.map → selectors.cjs.map} +0 -0
- /package/build/locks/{utils.js.map → utils.cjs.map} +0 -0
- /package/build/{name.js.map → name.cjs.map} +0 -0
- /package/build/{private-actions.js.map → private-actions.cjs.map} +0 -0
- /package/build/{private-apis.js.map → private-apis.cjs.map} +0 -0
- /package/build/{private-selectors.js.map → private-selectors.cjs.map} +0 -0
- /package/build/queried-data/{actions.js.map → actions.cjs.map} +0 -0
- /package/build/queried-data/{get-query-parts.js.map → get-query-parts.cjs.map} +0 -0
- /package/build/queried-data/{reducer.js.map → reducer.cjs.map} +0 -0
- /package/build/queried-data/{selectors.js.map → selectors.cjs.map} +0 -0
- /package/build/{reducer.js.map → reducer.cjs.map} +0 -0
- /package/build/{resolvers.js.map → resolvers.cjs.map} +0 -0
- /package/build/{sync.js.map → sync.cjs.map} +0 -0
- /package/build/{types.js.map → types.cjs.map} +0 -0
- /package/build/utils/{conservative-map-item.js.map → conservative-map-item.cjs.map} +0 -0
- /package/build/utils/{forward-resolver.js.map → forward-resolver.cjs.map} +0 -0
- /package/build/utils/{get-nested-value.js.map → get-nested-value.cjs.map} +0 -0
- /package/build/utils/{get-normalized-comma-separable.js.map → get-normalized-comma-separable.cjs.map} +0 -0
- /package/build/utils/{if-matching-action.js.map → if-matching-action.cjs.map} +0 -0
- /package/build/utils/{index.js.map → index.cjs.map} +0 -0
- /package/build/utils/{is-numeric-id.js.map → is-numeric-id.cjs.map} +0 -0
- /package/build/utils/{is-raw-attribute.js.map → is-raw-attribute.cjs.map} +0 -0
- /package/build/utils/{log-entity-deprecation.js.map → log-entity-deprecation.cjs.map} +0 -0
- /package/build/utils/{on-sub-key.js.map → on-sub-key.cjs.map} +0 -0
- /package/build/utils/{receive-intermediate-results.js.map → receive-intermediate-results.cjs.map} +0 -0
- /package/build/utils/{replace-action.js.map → replace-action.cjs.map} +0 -0
- /package/build/utils/{set-nested-value.js.map → set-nested-value.cjs.map} +0 -0
- /package/build/utils/{user-permissions.js.map → user-permissions.cjs.map} +0 -0
- /package/build/utils/{with-weak-map-cache.js.map → with-weak-map-cache.cjs.map} +0 -0
- /package/build-module/{actions.js.map → actions.mjs.map} +0 -0
- /package/build-module/batch/{create-batch.js.map → create-batch.mjs.map} +0 -0
- /package/build-module/batch/{default-processor.js.map → default-processor.mjs.map} +0 -0
- /package/build-module/batch/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{dynamic-entities.js.map → dynamic-entities.mjs.map} +0 -0
- /package/build-module/{entities.js.map → entities.mjs.map} +0 -0
- /package/build-module/{entity-context.js.map → entity-context.mjs.map} +0 -0
- /package/build-module/{entity-provider.js.map → entity-provider.mjs.map} +0 -0
- /package/build-module/entity-types/{attachment.js.map → attachment.mjs.map} +0 -0
- /package/build-module/entity-types/{base-entity-records.js.map → base-entity-records.mjs.map} +0 -0
- /package/build-module/entity-types/{base.js.map → base.mjs.map} +0 -0
- /package/build-module/entity-types/{comment.js.map → comment.mjs.map} +0 -0
- /package/build-module/entity-types/{font-collection.js.map → font-collection.mjs.map} +0 -0
- /package/build-module/entity-types/{font-family.js.map → font-family.mjs.map} +0 -0
- /package/build-module/entity-types/{global-styles-revision.js.map → global-styles-revision.mjs.map} +0 -0
- /package/build-module/entity-types/{helpers.js.map → helpers.mjs.map} +0 -0
- /package/build-module/entity-types/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/entity-types/{menu-location.js.map → menu-location.mjs.map} +0 -0
- /package/build-module/entity-types/{nav-menu-item.js.map → nav-menu-item.mjs.map} +0 -0
- /package/build-module/entity-types/{nav-menu.js.map → nav-menu.mjs.map} +0 -0
- /package/build-module/entity-types/{page.js.map → page.mjs.map} +0 -0
- /package/build-module/entity-types/{plugin.js.map → plugin.mjs.map} +0 -0
- /package/build-module/entity-types/{post-revision.js.map → post-revision.mjs.map} +0 -0
- /package/build-module/entity-types/{post-status.js.map → post-status.mjs.map} +0 -0
- /package/build-module/entity-types/{post.js.map → post.mjs.map} +0 -0
- /package/build-module/entity-types/{settings.js.map → settings.mjs.map} +0 -0
- /package/build-module/entity-types/{sidebar.js.map → sidebar.mjs.map} +0 -0
- /package/build-module/entity-types/{taxonomy.js.map → taxonomy.mjs.map} +0 -0
- /package/build-module/entity-types/{term.js.map → term.mjs.map} +0 -0
- /package/build-module/entity-types/{theme.js.map → theme.mjs.map} +0 -0
- /package/build-module/entity-types/{type.js.map → type.mjs.map} +0 -0
- /package/build-module/entity-types/{user.js.map → user.mjs.map} +0 -0
- /package/build-module/entity-types/{widget-type.js.map → widget-type.mjs.map} +0 -0
- /package/build-module/entity-types/{widget.js.map → widget.mjs.map} +0 -0
- /package/build-module/entity-types/{wp-template-part.js.map → wp-template-part.mjs.map} +0 -0
- /package/build-module/entity-types/{wp-template.js.map → wp-template.mjs.map} +0 -0
- /package/build-module/fetch/{__experimental-fetch-link-suggestions.js.map → __experimental-fetch-link-suggestions.mjs.map} +0 -0
- /package/build-module/fetch/{__experimental-fetch-url-data.js.map → __experimental-fetch-url-data.mjs.map} +0 -0
- /package/build-module/fetch/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/footnotes/{get-footnotes-order.js.map → get-footnotes-order.mjs.map} +0 -0
- /package/build-module/footnotes/{get-rich-text-values-cached.js.map → get-rich-text-values-cached.mjs.map} +0 -0
- /package/build-module/footnotes/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/hooks/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/{memoize.js.map → memoize.mjs.map} +0 -0
- /package/build-module/hooks/{use-entity-block-editor.js.map → use-entity-block-editor.mjs.map} +0 -0
- /package/build-module/hooks/{use-entity-id.js.map → use-entity-id.mjs.map} +0 -0
- /package/build-module/hooks/{use-entity-prop.js.map → use-entity-prop.mjs.map} +0 -0
- /package/build-module/hooks/{use-entity-records.js.map → use-entity-records.mjs.map} +0 -0
- /package/build-module/hooks/{use-query-select.js.map → use-query-select.mjs.map} +0 -0
- /package/build-module/hooks/{use-resource-permissions.js.map → use-resource-permissions.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{lock-unlock.js.map → lock-unlock.mjs.map} +0 -0
- /package/build-module/locks/{actions.js.map → actions.mjs.map} +0 -0
- /package/build-module/locks/{engine.js.map → engine.mjs.map} +0 -0
- /package/build-module/locks/{reducer.js.map → reducer.mjs.map} +0 -0
- /package/build-module/locks/{selectors.js.map → selectors.mjs.map} +0 -0
- /package/build-module/locks/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/{name.js.map → name.mjs.map} +0 -0
- /package/build-module/{private-actions.js.map → private-actions.mjs.map} +0 -0
- /package/build-module/{private-apis.js.map → private-apis.mjs.map} +0 -0
- /package/build-module/{private-selectors.js.map → private-selectors.mjs.map} +0 -0
- /package/build-module/queried-data/{actions.js.map → actions.mjs.map} +0 -0
- /package/build-module/queried-data/{get-query-parts.js.map → get-query-parts.mjs.map} +0 -0
- /package/build-module/queried-data/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/queried-data/{reducer.js.map → reducer.mjs.map} +0 -0
- /package/build-module/queried-data/{selectors.js.map → selectors.mjs.map} +0 -0
- /package/build-module/{reducer.js.map → reducer.mjs.map} +0 -0
- /package/build-module/{resolvers.js.map → resolvers.mjs.map} +0 -0
- /package/build-module/{sync.js.map → sync.mjs.map} +0 -0
- /package/build-module/{types.js.map → types.mjs.map} +0 -0
- /package/build-module/utils/{conservative-map-item.js.map → conservative-map-item.mjs.map} +0 -0
- /package/build-module/utils/{forward-resolver.js.map → forward-resolver.mjs.map} +0 -0
- /package/build-module/utils/{get-nested-value.js.map → get-nested-value.mjs.map} +0 -0
- /package/build-module/utils/{get-normalized-comma-separable.js.map → get-normalized-comma-separable.mjs.map} +0 -0
- /package/build-module/utils/{if-matching-action.js.map → if-matching-action.mjs.map} +0 -0
- /package/build-module/utils/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/{is-numeric-id.js.map → is-numeric-id.mjs.map} +0 -0
- /package/build-module/utils/{is-raw-attribute.js.map → is-raw-attribute.mjs.map} +0 -0
- /package/build-module/utils/{log-entity-deprecation.js.map → log-entity-deprecation.mjs.map} +0 -0
- /package/build-module/utils/{on-sub-key.js.map → on-sub-key.mjs.map} +0 -0
- /package/build-module/utils/{receive-intermediate-results.js.map → receive-intermediate-results.mjs.map} +0 -0
- /package/build-module/utils/{replace-action.js.map → replace-action.mjs.map} +0 -0
- /package/build-module/utils/{set-nested-value.js.map → set-nested-value.mjs.map} +0 -0
- /package/build-module/utils/{user-permissions.js.map → user-permissions.mjs.map} +0 -0
- /package/build-module/utils/{with-weak-map-cache.js.map → with-weak-map-cache.mjs.map} +0 -0
|
@@ -47,19 +47,19 @@ __export(utils_exports, {
|
|
|
47
47
|
withWeakMapCache: () => import_with_weak_map_cache.default
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(utils_exports);
|
|
50
|
-
var import_conservative_map_item = __toESM(require("./conservative-map-item"));
|
|
51
|
-
var import_get_normalized_comma_separable = __toESM(require("./get-normalized-comma-separable"));
|
|
52
|
-
var import_if_matching_action = __toESM(require("./if-matching-action"));
|
|
53
|
-
var import_forward_resolver = __toESM(require("./forward-resolver"));
|
|
54
|
-
var import_on_sub_key = __toESM(require("./on-sub-key"));
|
|
55
|
-
var import_replace_action = __toESM(require("./replace-action"));
|
|
56
|
-
var import_with_weak_map_cache = __toESM(require("./with-weak-map-cache"));
|
|
57
|
-
var import_is_raw_attribute = __toESM(require("./is-raw-attribute"));
|
|
58
|
-
var import_set_nested_value = __toESM(require("./set-nested-value"));
|
|
59
|
-
var import_get_nested_value = __toESM(require("./get-nested-value"));
|
|
60
|
-
var import_is_numeric_id = __toESM(require("./is-numeric-id"));
|
|
61
|
-
var import_user_permissions = require("./user-permissions");
|
|
62
|
-
var import_receive_intermediate_results = require("./receive-intermediate-results");
|
|
50
|
+
var import_conservative_map_item = __toESM(require("./conservative-map-item.cjs"));
|
|
51
|
+
var import_get_normalized_comma_separable = __toESM(require("./get-normalized-comma-separable.cjs"));
|
|
52
|
+
var import_if_matching_action = __toESM(require("./if-matching-action.cjs"));
|
|
53
|
+
var import_forward_resolver = __toESM(require("./forward-resolver.cjs"));
|
|
54
|
+
var import_on_sub_key = __toESM(require("./on-sub-key.cjs"));
|
|
55
|
+
var import_replace_action = __toESM(require("./replace-action.cjs"));
|
|
56
|
+
var import_with_weak_map_cache = __toESM(require("./with-weak-map-cache.cjs"));
|
|
57
|
+
var import_is_raw_attribute = __toESM(require("./is-raw-attribute.cjs"));
|
|
58
|
+
var import_set_nested_value = __toESM(require("./set-nested-value.cjs"));
|
|
59
|
+
var import_get_nested_value = __toESM(require("./get-nested-value.cjs"));
|
|
60
|
+
var import_is_numeric_id = __toESM(require("./is-numeric-id.cjs"));
|
|
61
|
+
var import_user_permissions = require("./user-permissions.cjs");
|
|
62
|
+
var import_receive_intermediate_results = require("./receive-intermediate-results.cjs");
|
|
63
63
|
// Annotate the CommonJS export names for ESM import in node:
|
|
64
64
|
0 && (module.exports = {
|
|
65
65
|
ALLOWED_RESOURCE_ACTIONS,
|
|
@@ -78,4 +78,4 @@ var import_receive_intermediate_results = require("./receive-intermediate-result
|
|
|
78
78
|
setNestedValue,
|
|
79
79
|
withWeakMapCache
|
|
80
80
|
});
|
|
81
|
-
//# sourceMappingURL=index.
|
|
81
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -34,7 +34,7 @@ __export(log_entity_deprecation_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(log_entity_deprecation_exports);
|
|
36
36
|
var import_deprecated = __toESM(require("@wordpress/deprecated"));
|
|
37
|
-
var import_entities = require("../entities");
|
|
37
|
+
var import_entities = require("../entities.cjs");
|
|
38
38
|
var loggedAlready = false;
|
|
39
39
|
function logEntityDeprecation(kind, name, functionName, {
|
|
40
40
|
alternativeFunctionName,
|
|
@@ -61,4 +61,4 @@ function logEntityDeprecation(kind, name, functionName, {
|
|
|
61
61
|
loggedAlready = false;
|
|
62
62
|
}, 0);
|
|
63
63
|
}
|
|
64
|
-
//# sourceMappingURL=log-entity-deprecation.
|
|
64
|
+
//# sourceMappingURL=log-entity-deprecation.cjs.map
|
|
@@ -23,11 +23,11 @@ __export(receive_intermediate_results_exports, {
|
|
|
23
23
|
RECEIVE_INTERMEDIATE_RESULTS: () => RECEIVE_INTERMEDIATE_RESULTS
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(receive_intermediate_results_exports);
|
|
26
|
-
var RECEIVE_INTERMEDIATE_RESULTS = Symbol(
|
|
26
|
+
var RECEIVE_INTERMEDIATE_RESULTS = /* @__PURE__ */ Symbol(
|
|
27
27
|
"RECEIVE_INTERMEDIATE_RESULTS"
|
|
28
28
|
);
|
|
29
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
30
|
0 && (module.exports = {
|
|
31
31
|
RECEIVE_INTERMEDIATE_RESULTS
|
|
32
32
|
});
|
|
33
|
-
//# sourceMappingURL=receive-intermediate-results.
|
|
33
|
+
//# sourceMappingURL=receive-intermediate-results.cjs.map
|
|
@@ -4,13 +4,13 @@ import { v4 as uuid } from "uuid";
|
|
|
4
4
|
import apiFetch from "@wordpress/api-fetch";
|
|
5
5
|
import { addQueryArgs } from "@wordpress/url";
|
|
6
6
|
import deprecated from "@wordpress/deprecated";
|
|
7
|
-
import { getNestedValue, setNestedValue } from "./utils";
|
|
8
|
-
import { receiveItems, removeItems, receiveQueriedItems } from "./queried-data";
|
|
9
|
-
import { DEFAULT_ENTITY_KEY } from "./entities";
|
|
10
|
-
import { createBatch } from "./batch";
|
|
11
|
-
import { STORE_NAME } from "./name";
|
|
12
|
-
import { LOCAL_EDITOR_ORIGIN, getSyncManager } from "./sync";
|
|
13
|
-
import logEntityDeprecation from "./utils/log-entity-deprecation";
|
|
7
|
+
import { getNestedValue, setNestedValue } from "./utils/index.mjs";
|
|
8
|
+
import { receiveItems, removeItems, receiveQueriedItems } from "./queried-data/index.mjs";
|
|
9
|
+
import { DEFAULT_ENTITY_KEY } from "./entities.mjs";
|
|
10
|
+
import { createBatch } from "./batch/index.mjs";
|
|
11
|
+
import { STORE_NAME } from "./name.mjs";
|
|
12
|
+
import { LOCAL_EDITOR_ORIGIN, getSyncManager } from "./sync.mjs";
|
|
13
|
+
import logEntityDeprecation from "./utils/log-entity-deprecation.mjs";
|
|
14
14
|
function receiveUserQuery(queryID, users) {
|
|
15
15
|
return {
|
|
16
16
|
type: "RECEIVE_USER_QUERY",
|
|
@@ -597,4 +597,4 @@ export {
|
|
|
597
597
|
saveEntityRecord,
|
|
598
598
|
undo
|
|
599
599
|
};
|
|
600
|
-
//# sourceMappingURL=actions.
|
|
600
|
+
//# sourceMappingURL=actions.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/core-data/src/batch/create-batch.js
|
|
2
|
-
import defaultProcessor from "./default-processor";
|
|
2
|
+
import defaultProcessor from "./default-processor.mjs";
|
|
3
3
|
function createBatch(processor = defaultProcessor) {
|
|
4
4
|
let lastId = 0;
|
|
5
5
|
let queue = [];
|
|
@@ -126,4 +126,4 @@ var ObservableSet = class {
|
|
|
126
126
|
export {
|
|
127
127
|
createBatch as default
|
|
128
128
|
};
|
|
129
|
-
//# sourceMappingURL=create-batch.
|
|
129
|
+
//# sourceMappingURL=create-batch.mjs.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// packages/core-data/src/batch/index.js
|
|
2
|
+
import { default as default2 } from "./create-batch.mjs";
|
|
3
|
+
import { default as default3 } from "./default-processor.mjs";
|
|
4
|
+
export {
|
|
5
|
+
default2 as createBatch,
|
|
6
|
+
default3 as defaultProcessor
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -3,13 +3,13 @@ import { capitalCase, pascalCase } from "change-case";
|
|
|
3
3
|
import apiFetch from "@wordpress/api-fetch";
|
|
4
4
|
import { __unstableSerializeAndClean, parse } from "@wordpress/blocks";
|
|
5
5
|
import { __ } from "@wordpress/i18n";
|
|
6
|
-
import { getSyncManager } from "./sync";
|
|
6
|
+
import { getSyncManager } from "./sync.mjs";
|
|
7
7
|
import {
|
|
8
8
|
applyPostChangesToCRDTDoc,
|
|
9
9
|
defaultApplyChangesToCRDTDoc,
|
|
10
10
|
defaultGetChangesFromCRDTDoc,
|
|
11
11
|
getPostChangesFromCRDTDoc
|
|
12
|
-
} from "./utils/crdt";
|
|
12
|
+
} from "./utils/crdt.mjs";
|
|
13
13
|
var DEFAULT_ENTITY_KEY = "id";
|
|
14
14
|
var POST_RAW_ATTRIBUTES = ["title", "excerpt", "content"];
|
|
15
15
|
var blocksTransientEdits = {
|
|
@@ -378,4 +378,4 @@ export {
|
|
|
378
378
|
prePersistPostType,
|
|
379
379
|
rootEntitiesConfig
|
|
380
380
|
};
|
|
381
|
-
//# sourceMappingURL=entities.
|
|
381
|
+
//# sourceMappingURL=entities.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/core-data/src/entity-provider.js
|
|
2
2
|
import { useContext, useMemo } from "@wordpress/element";
|
|
3
|
-
import { EntityContext } from "./entity-context";
|
|
3
|
+
import { EntityContext } from "./entity-context.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
function EntityProvider({ kind, type: name, id, children }) {
|
|
6
6
|
const parent = useContext(EntityContext);
|
|
@@ -19,4 +19,4 @@ function EntityProvider({ kind, type: name, id, children }) {
|
|
|
19
19
|
export {
|
|
20
20
|
EntityProvider as default
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=entity-provider.
|
|
22
|
+
//# sourceMappingURL=entity-provider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=attachment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=base-entity-records.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=base.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=comment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=font-collection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=font-family.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=global-styles-revision.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=helpers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=menu-location.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=nav-menu-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=nav-menu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=page.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=plugin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=post-revision.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=post-status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=post.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=settings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=sidebar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=taxonomy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=term.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=theme.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=type.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=widget-type.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=widget.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=wp-template-part.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=wp-template.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// packages/core-data/src/fetch/index.js
|
|
2
2
|
import { camelCase } from "change-case";
|
|
3
3
|
import apiFetch from "@wordpress/api-fetch";
|
|
4
|
-
import { default as default2 } from "./__experimental-fetch-link-suggestions";
|
|
5
|
-
import { default as default3 } from "./__experimental-fetch-url-data";
|
|
4
|
+
import { default as default2 } from "./__experimental-fetch-link-suggestions.mjs";
|
|
5
|
+
import { default as default3 } from "./__experimental-fetch-url-data.mjs";
|
|
6
6
|
async function fetchBlockPatterns() {
|
|
7
7
|
const restPatterns = await apiFetch({
|
|
8
8
|
path: "/wp/v2/block-patterns/patterns"
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
default3 as __experimentalFetchUrlData,
|
|
25
25
|
fetchBlockPatterns
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=index.
|
|
27
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/core-data/src/footnotes/get-footnotes-order.js
|
|
2
|
-
import getRichTextValuesCached from "./get-rich-text-values-cached";
|
|
2
|
+
import getRichTextValuesCached from "./get-rich-text-values-cached.mjs";
|
|
3
3
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
function getBlockFootnotesOrder(block) {
|
|
5
5
|
if (!cache.has(block)) {
|
|
@@ -24,4 +24,4 @@ function getFootnotesOrder(blocks) {
|
|
|
24
24
|
export {
|
|
25
25
|
getFootnotesOrder as default
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=get-footnotes-order.
|
|
27
|
+
//# sourceMappingURL=get-footnotes-order.mjs.map
|
package/build-module/footnotes/{get-rich-text-values-cached.js → get-rich-text-values-cached.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/core-data/src/footnotes/get-rich-text-values-cached.js
|
|
2
2
|
import { privateApis as blockEditorPrivateApis } from "@wordpress/block-editor";
|
|
3
|
-
import { unlock } from "../lock-unlock";
|
|
3
|
+
import { unlock } from "../lock-unlock.mjs";
|
|
4
4
|
var unlockedApis;
|
|
5
5
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function getRichTextValuesCached(block) {
|
|
@@ -16,4 +16,4 @@ function getRichTextValuesCached(block) {
|
|
|
16
16
|
export {
|
|
17
17
|
getRichTextValuesCached as default
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=get-rich-text-values-cached.
|
|
19
|
+
//# sourceMappingURL=get-rich-text-values-cached.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/core-data/src/footnotes/index.js
|
|
2
2
|
import { RichTextData, create, toHTMLString } from "@wordpress/rich-text";
|
|
3
|
-
import getFootnotesOrder from "./get-footnotes-order";
|
|
3
|
+
import getFootnotesOrder from "./get-footnotes-order.mjs";
|
|
4
4
|
var oldFootnotes = {};
|
|
5
5
|
function updateFootnotesFromMeta(blocks, meta) {
|
|
6
6
|
const output = { blocks };
|
|
@@ -96,4 +96,4 @@ function updateFootnotesFromMeta(blocks, meta) {
|
|
|
96
96
|
export {
|
|
97
97
|
updateFootnotesFromMeta
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=index.
|
|
99
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
default as default2,
|
|
4
4
|
__experimentalUseEntityRecord
|
|
5
|
-
} from "./use-entity-record";
|
|
5
|
+
} from "./use-entity-record.mjs";
|
|
6
6
|
import {
|
|
7
7
|
default as default3,
|
|
8
8
|
__experimentalUseEntityRecords
|
|
9
|
-
} from "./use-entity-records";
|
|
9
|
+
} from "./use-entity-records.mjs";
|
|
10
10
|
import {
|
|
11
11
|
default as default4,
|
|
12
12
|
__experimentalUseResourcePermissions
|
|
13
|
-
} from "./use-resource-permissions";
|
|
14
|
-
import { default as default5 } from "./use-entity-block-editor";
|
|
15
|
-
import { default as default6 } from "./use-entity-id";
|
|
16
|
-
import { default as default7 } from "./use-entity-prop";
|
|
13
|
+
} from "./use-resource-permissions.mjs";
|
|
14
|
+
import { default as default5 } from "./use-entity-block-editor.mjs";
|
|
15
|
+
import { default as default6 } from "./use-entity-id.mjs";
|
|
16
|
+
import { default as default7 } from "./use-entity-prop.mjs";
|
|
17
17
|
export {
|
|
18
18
|
__experimentalUseEntityRecord,
|
|
19
19
|
__experimentalUseEntityRecords,
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
default3 as useEntityRecords,
|
|
26
26
|
default4 as useResourcePermissions
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=index.
|
|
28
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { useCallback, useMemo } from "@wordpress/element";
|
|
3
3
|
import { useDispatch, useSelect } from "@wordpress/data";
|
|
4
4
|
import { parse, __unstableSerializeAndClean } from "@wordpress/blocks";
|
|
5
|
-
import { STORE_NAME } from "../name";
|
|
6
|
-
import useEntityId from "./use-entity-id";
|
|
7
|
-
import { updateFootnotesFromMeta } from "../footnotes";
|
|
5
|
+
import { STORE_NAME } from "../name.mjs";
|
|
6
|
+
import useEntityId from "./use-entity-id.mjs";
|
|
7
|
+
import { updateFootnotesFromMeta } from "../footnotes/index.mjs";
|
|
8
8
|
var EMPTY_ARRAY = [];
|
|
9
9
|
var parsedBlocksCache = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function useEntityBlockEditor(kind, name, { id: _id } = {}) {
|
|
@@ -99,4 +99,4 @@ function useEntityBlockEditor(kind, name, { id: _id } = {}) {
|
|
|
99
99
|
export {
|
|
100
100
|
useEntityBlockEditor as default
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=use-entity-block-editor.
|
|
102
|
+
//# sourceMappingURL=use-entity-block-editor.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/core-data/src/hooks/use-entity-id.js
|
|
2
2
|
import { useContext } from "@wordpress/element";
|
|
3
|
-
import { EntityContext } from "../entity-context";
|
|
3
|
+
import { EntityContext } from "../entity-context.mjs";
|
|
4
4
|
function useEntityId(kind, name) {
|
|
5
5
|
const context = useContext(EntityContext);
|
|
6
6
|
return context?.[kind]?.[name];
|
|
@@ -8,4 +8,4 @@ function useEntityId(kind, name) {
|
|
|
8
8
|
export {
|
|
9
9
|
useEntityId as default
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=use-entity-id.
|
|
11
|
+
//# sourceMappingURL=use-entity-id.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// packages/core-data/src/hooks/use-entity-prop.js
|
|
2
2
|
import { useCallback } from "@wordpress/element";
|
|
3
3
|
import { useDispatch, useSelect } from "@wordpress/data";
|
|
4
|
-
import { STORE_NAME } from "../name";
|
|
5
|
-
import useEntityId from "./use-entity-id";
|
|
4
|
+
import { STORE_NAME } from "../name.mjs";
|
|
5
|
+
import useEntityId from "./use-entity-id.mjs";
|
|
6
6
|
function useEntityProp(kind, name, prop, _id) {
|
|
7
7
|
const providerId = useEntityId(kind, name);
|
|
8
8
|
const id = _id ?? providerId;
|
|
@@ -32,4 +32,4 @@ function useEntityProp(kind, name, prop, _id) {
|
|
|
32
32
|
export {
|
|
33
33
|
useEntityProp as default
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=use-entity-prop.
|
|
35
|
+
//# sourceMappingURL=use-entity-prop.mjs.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { useDispatch, useSelect } from "@wordpress/data";
|
|
3
3
|
import deprecated from "@wordpress/deprecated";
|
|
4
4
|
import { useMemo } from "@wordpress/element";
|
|
5
|
-
import useQuerySelect from "./use-query-select";
|
|
6
|
-
import { store as coreStore } from "../";
|
|
5
|
+
import useQuerySelect from "./use-query-select.mjs";
|
|
6
|
+
import { store as coreStore } from "../index.mjs";
|
|
7
7
|
var EMPTY_OBJECT = {};
|
|
8
8
|
function useEntityRecord(kind, name, recordId, options = { enabled: true }) {
|
|
9
9
|
const { editEntityRecord, saveEditedEntityRecord } = useDispatch(coreStore);
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
__experimentalUseEntityRecord,
|
|
78
78
|
useEntityRecord as default
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=use-entity-record.
|
|
80
|
+
//# sourceMappingURL=use-entity-record.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/hooks/use-entity-record.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport useQuerySelect from './use-query-select';\nimport { store as coreStore } from '../';\nimport type { Status } from './constants';\n\nexport interface EntityRecordResolution< RecordType > {\n\t/** The requested entity record */\n\trecord: RecordType | null;\n\n\t/** The edited entity record */\n\teditedRecord: Partial< RecordType >;\n\n\t/** The edits to the edited entity record */\n\tedits: Partial< RecordType >;\n\n\t/** Apply local (in-browser) edits to the edited entity record */\n\tedit: ( diff: Partial< RecordType > ) => void;\n\n\t/** Persist the edits to the server */\n\tsave: () => Promise< void >;\n\n\t/**\n\t * Is the record still being resolved?\n\t */\n\tisResolving: boolean;\n\n\t/**\n\t * Does the record have any local edits?\n\t */\n\thasEdits: boolean;\n\n\t/**\n\t * Is the record resolved by now?\n\t */\n\thasResolved: boolean;\n\n\t/** Resolution status */\n\tstatus: Status;\n}\n\nexport interface Options {\n\t/**\n\t * Whether to run the query or short-circuit and return null.\n\t *\n\t * @default true\n\t */\n\tenabled: boolean;\n}\n\nconst EMPTY_OBJECT = {};\n\n/**\n * Resolves the specified entity record.\n *\n * @since 6.1.0 Introduced in WordPress core.\n *\n * @param kind Kind of the entity, e.g. `root` or a `postType`. See rootEntitiesConfig in ../entities.ts for a list of available kinds.\n * @param name Name of the entity, e.g. `plugin` or a `post`. See rootEntitiesConfig in ../entities.ts for a list of available names.\n * @param recordId ID of the requested entity record.\n * @param options Optional hook options.\n * @example\n * ```js\n * import { useEntityRecord } from '@wordpress/core-data';\n *\n * function PageTitleDisplay( { id } ) {\n * const { record, isResolving } = useEntityRecord( 'postType', 'page', id );\n *\n * if ( isResolving ) {\n * return 'Loading...';\n * }\n *\n * return record.title;\n * }\n *\n * // Rendered in the application:\n * // <PageTitleDisplay id={ 1 } />\n * ```\n *\n * In the above example, when `PageTitleDisplay` is rendered into an\n * application, the page and the resolution details will be retrieved from\n * the store state using `getEntityRecord()`, or resolved if missing.\n *\n * @example\n * ```js\n * import { useCallback } from 'react';\n * import { useDispatch } from '@wordpress/data';\n * import { __ } from '@wordpress/i18n';\n * import { TextControl } from '@wordpress/components';\n * import { store as noticeStore } from '@wordpress/notices';\n * import { useEntityRecord } from '@wordpress/core-data';\n *\n * function PageRenameForm( { id } ) {\n * \tconst page = useEntityRecord( 'postType', 'page', id );\n * \tconst { createSuccessNotice, createErrorNotice } =\n * \t\tuseDispatch( noticeStore );\n *\n * \tconst setTitle = useCallback( ( title ) => {\n * \t\tpage.edit( { title } );\n * \t}, [ page.edit ] );\n *\n * \tif ( page.isResolving ) {\n * \t\treturn 'Loading...';\n * \t}\n *\n * \tasync function onRename( event ) {\n * \t\tevent.preventDefault();\n * \t\ttry {\n * \t\t\tawait page.save();\n * \t\t\tcreateSuccessNotice( __( 'Page renamed.' ), {\n * \t\t\t\ttype: 'snackbar',\n * \t\t\t} );\n * \t\t} catch ( error ) {\n * \t\t\tcreateErrorNotice( error.message, { type: 'snackbar' } );\n * \t\t}\n * \t}\n *\n * \treturn (\n * \t\t<form onSubmit={ onRename }>\n * \t\t\t<TextControl\n *\t\t\t\
|
|
5
|
-
"mappings": ";AAGA,SAAS,aAAa,iBAAiB;AACvC,OAAO,gBAAgB;AACvB,SAAS,eAAe;AAKxB,OAAO,oBAAoB;AAC3B,SAAS,SAAS,iBAAiB;AA+CnC,IAAM,eAAe,CAAC;
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport useQuerySelect from './use-query-select';\nimport { store as coreStore } from '../';\nimport type { Status } from './constants';\n\nexport interface EntityRecordResolution< RecordType > {\n\t/** The requested entity record */\n\trecord: RecordType | null;\n\n\t/** The edited entity record */\n\teditedRecord: Partial< RecordType >;\n\n\t/** The edits to the edited entity record */\n\tedits: Partial< RecordType >;\n\n\t/** Apply local (in-browser) edits to the edited entity record */\n\tedit: ( diff: Partial< RecordType > ) => void;\n\n\t/** Persist the edits to the server */\n\tsave: () => Promise< void >;\n\n\t/**\n\t * Is the record still being resolved?\n\t */\n\tisResolving: boolean;\n\n\t/**\n\t * Does the record have any local edits?\n\t */\n\thasEdits: boolean;\n\n\t/**\n\t * Is the record resolved by now?\n\t */\n\thasResolved: boolean;\n\n\t/** Resolution status */\n\tstatus: Status;\n}\n\nexport interface Options {\n\t/**\n\t * Whether to run the query or short-circuit and return null.\n\t *\n\t * @default true\n\t */\n\tenabled: boolean;\n}\n\nconst EMPTY_OBJECT = {};\n\n/**\n * Resolves the specified entity record.\n *\n * @since 6.1.0 Introduced in WordPress core.\n *\n * @param kind Kind of the entity, e.g. `root` or a `postType`. See rootEntitiesConfig in ../entities.ts for a list of available kinds.\n * @param name Name of the entity, e.g. `plugin` or a `post`. See rootEntitiesConfig in ../entities.ts for a list of available names.\n * @param recordId ID of the requested entity record.\n * @param options Optional hook options.\n * @example\n * ```js\n * import { useEntityRecord } from '@wordpress/core-data';\n *\n * function PageTitleDisplay( { id } ) {\n * const { record, isResolving } = useEntityRecord( 'postType', 'page', id );\n *\n * if ( isResolving ) {\n * return 'Loading...';\n * }\n *\n * return record.title;\n * }\n *\n * // Rendered in the application:\n * // <PageTitleDisplay id={ 1 } />\n * ```\n *\n * In the above example, when `PageTitleDisplay` is rendered into an\n * application, the page and the resolution details will be retrieved from\n * the store state using `getEntityRecord()`, or resolved if missing.\n *\n * @example\n * ```js\n * import { useCallback } from 'react';\n * import { useDispatch } from '@wordpress/data';\n * import { __ } from '@wordpress/i18n';\n * import { TextControl } from '@wordpress/components';\n * import { store as noticeStore } from '@wordpress/notices';\n * import { useEntityRecord } from '@wordpress/core-data';\n *\n * function PageRenameForm( { id } ) {\n * \tconst page = useEntityRecord( 'postType', 'page', id );\n * \tconst { createSuccessNotice, createErrorNotice } =\n * \t\tuseDispatch( noticeStore );\n *\n * \tconst setTitle = useCallback( ( title ) => {\n * \t\tpage.edit( { title } );\n * \t}, [ page.edit ] );\n *\n * \tif ( page.isResolving ) {\n * \t\treturn 'Loading...';\n * \t}\n *\n * \tasync function onRename( event ) {\n * \t\tevent.preventDefault();\n * \t\ttry {\n * \t\t\tawait page.save();\n * \t\t\tcreateSuccessNotice( __( 'Page renamed.' ), {\n * \t\t\t\ttype: 'snackbar',\n * \t\t\t} );\n * \t\t} catch ( error ) {\n * \t\t\tcreateErrorNotice( error.message, { type: 'snackbar' } );\n * \t\t}\n * \t}\n *\n * \treturn (\n * \t\t<form onSubmit={ onRename }>\n * \t\t\t<TextControl\n *\t\t\t\t__next40pxDefaultSize\n * \t\t\t\tlabel={ __( 'Name' ) }\n * \t\t\t\tvalue={ page.editedRecord.title }\n * \t\t\t\tonChange={ setTitle }\n * \t\t\t/>\n * \t\t\t<button type=\"submit\">{ __( 'Save' ) }</button>\n * \t\t</form>\n * \t);\n * }\n *\n * // Rendered in the application:\n * // <PageRenameForm id={ 1 } />\n * ```\n *\n * In the above example, updating and saving the page title is handled\n * via the `edit()` and `save()` mutation helpers provided by\n * `useEntityRecord()`;\n *\n * @return Entity record data.\n * @template RecordType\n */\nexport default function useEntityRecord< RecordType >(\n\tkind: string,\n\tname: string,\n\trecordId: string | number,\n\toptions: Options = { enabled: true }\n): EntityRecordResolution< RecordType > {\n\tconst { editEntityRecord, saveEditedEntityRecord } =\n\t\tuseDispatch( coreStore );\n\n\tconst mutations = useMemo(\n\t\t() => ( {\n\t\t\tedit: ( record, editOptions: any = {} ) =>\n\t\t\t\teditEntityRecord( kind, name, recordId, record, editOptions ),\n\t\t\tsave: ( saveOptions: any = {} ) =>\n\t\t\t\tsaveEditedEntityRecord( kind, name, recordId, {\n\t\t\t\t\tthrowOnError: true,\n\t\t\t\t\t...saveOptions,\n\t\t\t\t} ),\n\t\t} ),\n\t\t[ editEntityRecord, kind, name, recordId, saveEditedEntityRecord ]\n\t);\n\n\tconst { editedRecord, hasEdits, edits } = useSelect(\n\t\t( select ) => {\n\t\t\tif ( ! options.enabled ) {\n\t\t\t\treturn {\n\t\t\t\t\teditedRecord: EMPTY_OBJECT,\n\t\t\t\t\thasEdits: false,\n\t\t\t\t\tedits: EMPTY_OBJECT,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\teditedRecord: select( coreStore ).getEditedEntityRecord(\n\t\t\t\t\tkind,\n\t\t\t\t\tname,\n\t\t\t\t\trecordId\n\t\t\t\t),\n\t\t\t\thasEdits: select( coreStore ).hasEditsForEntityRecord(\n\t\t\t\t\tkind,\n\t\t\t\t\tname,\n\t\t\t\t\trecordId\n\t\t\t\t),\n\t\t\t\tedits: select( coreStore ).getEntityRecordNonTransientEdits(\n\t\t\t\t\tkind,\n\t\t\t\t\tname,\n\t\t\t\t\trecordId\n\t\t\t\t),\n\t\t\t};\n\t\t},\n\t\t[ kind, name, recordId, options.enabled ]\n\t);\n\n\tconst { data: record, ...querySelectRest } = useQuerySelect(\n\t\t( query ) => {\n\t\t\tif ( ! options.enabled ) {\n\t\t\t\treturn {\n\t\t\t\t\tdata: null,\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn query( coreStore ).getEntityRecord( kind, name, recordId );\n\t\t},\n\t\t[ kind, name, recordId, options.enabled ]\n\t);\n\n\treturn {\n\t\trecord,\n\t\teditedRecord,\n\t\thasEdits,\n\t\tedits,\n\t\t...querySelectRest,\n\t\t...mutations,\n\t};\n}\n\nexport function __experimentalUseEntityRecord(\n\tkind: string,\n\tname: string,\n\trecordId: any,\n\toptions: any\n) {\n\tdeprecated( `wp.data.__experimentalUseEntityRecord`, {\n\t\talternative: 'wp.data.useEntityRecord',\n\t\tsince: '6.1',\n\t} );\n\treturn useEntityRecord( kind, name, recordId, options );\n}\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,aAAa,iBAAiB;AACvC,OAAO,gBAAgB;AACvB,SAAS,eAAe;AAKxB,OAAO,oBAAoB;AAC3B,SAAS,SAAS,iBAAiB;AA+CnC,IAAM,eAAe,CAAC;AA2FP,SAAR,gBACN,MACA,MACA,UACA,UAAmB,EAAE,SAAS,KAAK,GACI;AACvC,QAAM,EAAE,kBAAkB,uBAAuB,IAChD,YAAa,SAAU;AAExB,QAAM,YAAY;AAAA,IACjB,OAAQ;AAAA,MACP,MAAM,CAAEA,SAAQ,cAAmB,CAAC,MACnC,iBAAkB,MAAM,MAAM,UAAUA,SAAQ,WAAY;AAAA,MAC7D,MAAM,CAAE,cAAmB,CAAC,MAC3B,uBAAwB,MAAM,MAAM,UAAU;AAAA,QAC7C,cAAc;AAAA,QACd,GAAG;AAAA,MACJ,CAAE;AAAA,IACJ;AAAA,IACA,CAAE,kBAAkB,MAAM,MAAM,UAAU,sBAAuB;AAAA,EAClE;AAEA,QAAM,EAAE,cAAc,UAAU,MAAM,IAAI;AAAA,IACzC,CAAE,WAAY;AACb,UAAK,CAAE,QAAQ,SAAU;AACxB,eAAO;AAAA,UACN,cAAc;AAAA,UACd,UAAU;AAAA,UACV,OAAO;AAAA,QACR;AAAA,MACD;AAEA,aAAO;AAAA,QACN,cAAc,OAAQ,SAAU,EAAE;AAAA,UACjC;AAAA,UACA;AAAA,UACA;AAAA,QACD;AAAA,QACA,UAAU,OAAQ,SAAU,EAAE;AAAA,UAC7B;AAAA,UACA;AAAA,UACA;AAAA,QACD;AAAA,QACA,OAAO,OAAQ,SAAU,EAAE;AAAA,UAC1B;AAAA,UACA;AAAA,UACA;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,CAAE,MAAM,MAAM,UAAU,QAAQ,OAAQ;AAAA,EACzC;AAEA,QAAM,EAAE,MAAM,QAAQ,GAAG,gBAAgB,IAAI;AAAA,IAC5C,CAAE,UAAW;AACZ,UAAK,CAAE,QAAQ,SAAU;AACxB,eAAO;AAAA,UACN,MAAM;AAAA,QACP;AAAA,MACD;AACA,aAAO,MAAO,SAAU,EAAE,gBAAiB,MAAM,MAAM,QAAS;AAAA,IACjE;AAAA,IACA,CAAE,MAAM,MAAM,UAAU,QAAQ,OAAQ;AAAA,EACzC;AAEA,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,IACH,GAAG;AAAA,EACJ;AACD;AAEO,SAAS,8BACf,MACA,MACA,UACA,SACC;AACD,aAAY,yCAAyC;AAAA,IACpD,aAAa;AAAA,IACb,OAAO;AAAA,EACR,CAAE;AACF,SAAO,gBAAiB,MAAM,MAAM,UAAU,OAAQ;AACvD;",
|
|
6
6
|
"names": ["record"]
|
|
7
7
|
}
|
|
@@ -3,10 +3,10 @@ import { addQueryArgs } from "@wordpress/url";
|
|
|
3
3
|
import deprecated from "@wordpress/deprecated";
|
|
4
4
|
import { useSelect } from "@wordpress/data";
|
|
5
5
|
import { useMemo } from "@wordpress/element";
|
|
6
|
-
import useQuerySelect from "./use-query-select";
|
|
7
|
-
import { store as coreStore } from "../";
|
|
8
|
-
import { unlock } from "../lock-unlock";
|
|
9
|
-
import { getNormalizedCommaSeparable } from "../utils";
|
|
6
|
+
import useQuerySelect from "./use-query-select.mjs";
|
|
7
|
+
import { store as coreStore } from "../index.mjs";
|
|
8
|
+
import { unlock } from "../lock-unlock.mjs";
|
|
9
|
+
import { getNormalizedCommaSeparable } from "../utils/index.mjs";
|
|
10
10
|
var EMPTY_ARRAY = [];
|
|
11
11
|
function useEntityRecords(kind, name, queryArgs = {}, options = { enabled: true }) {
|
|
12
12
|
const queryAsString = addQueryArgs("", queryArgs);
|
|
@@ -114,4 +114,4 @@ export {
|
|
|
114
114
|
useEntityRecords as default,
|
|
115
115
|
useEntityRecordsWithPermissions
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=use-entity-records.
|
|
117
|
+
//# sourceMappingURL=use-entity-records.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/core-data/src/hooks/use-query-select.ts
|
|
2
2
|
import { useSelect } from "@wordpress/data";
|
|
3
|
-
import memoize from "./memoize";
|
|
4
|
-
import { Status } from "./constants";
|
|
3
|
+
import memoize from "./memoize.mjs";
|
|
4
|
+
import { Status } from "./constants.mjs";
|
|
5
5
|
var META_SELECTORS = [
|
|
6
6
|
"getIsResolving",
|
|
7
7
|
"hasStartedResolution",
|
|
@@ -59,4 +59,4 @@ export {
|
|
|
59
59
|
META_SELECTORS,
|
|
60
60
|
useQuerySelect as default
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=use-query-select.
|
|
62
|
+
//# sourceMappingURL=use-query-select.mjs.map
|