@wordpress/data 10.36.1-next.8fd3f8831.0 → 10.37.1-next.79a2f3cdd.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/LICENSE.md +1 -1
- package/build/components/async-mode-provider/index.cjs +2 -2
- package/build/components/registry-provider/context.cjs +1 -1
- package/build/components/registry-provider/index.cjs +2 -2
- package/build/components/use-dispatch/index.cjs +2 -2
- package/build/components/use-dispatch/use-dispatch-with-map.cjs +1 -1
- package/build/components/use-dispatch/use-dispatch.cjs +1 -1
- package/build/components/use-select/index.cjs +2 -2
- package/build/components/with-select/index.cjs +1 -1
- package/build/create-selector.cjs +1 -1
- package/build/dispatch.cjs +1 -1
- package/build/index.cjs +7 -7
- package/build/plugins/index.cjs +1 -1
- package/build/plugins/persistence/index.cjs +2 -2
- package/build/plugins/persistence/storage/default.cjs +1 -1
- package/build/promise-middleware.cjs +1 -1
- package/build/redux-store/index.cjs +8 -8
- package/build/redux-store/metadata/reducer.cjs +1 -1
- package/build/redux-store/metadata/selectors.cjs +1 -1
- package/build/registry.cjs +3 -3
- package/build/select.cjs +1 -1
- package/build-module/components/async-mode-provider/{context.js → context.mjs} +1 -1
- package/build-module/components/async-mode-provider/{index.js → index.mjs} +3 -3
- package/build-module/components/async-mode-provider/{use-async-mode.js → use-async-mode.mjs} +2 -2
- package/build-module/components/registry-provider/{context.js → context.mjs} +2 -2
- package/build-module/components/registry-provider/{index.js → index.mjs} +3 -3
- package/build-module/components/registry-provider/{use-registry.js → use-registry.mjs} +2 -2
- package/build-module/components/use-dispatch/index.mjs +8 -0
- package/build-module/components/use-dispatch/{use-dispatch-with-map.js → use-dispatch-with-map.mjs} +2 -2
- package/build-module/components/use-dispatch/{use-dispatch.js → use-dispatch.mjs} +2 -2
- package/build-module/components/use-select/{index.js → index.mjs} +3 -3
- package/build-module/components/with-dispatch/{index.js → index.mjs} +2 -2
- package/build-module/components/with-registry/{index.js → index.mjs} +2 -2
- package/build-module/components/with-select/{index.js → index.mjs} +2 -2
- package/build-module/{controls.js → controls.mjs} +2 -2
- package/build-module/{create-selector.js → create-selector.mjs} +1 -1
- package/build-module/{default-registry.js → default-registry.mjs} +2 -2
- package/build-module/{dispatch.js → dispatch.mjs} +2 -2
- package/build-module/{factory.js → factory.mjs} +1 -1
- package/build-module/{index.js → index.mjs} +18 -18
- package/build-module/{lock-unlock.js → lock-unlock.mjs} +1 -1
- package/build-module/plugins/index.mjs +6 -0
- package/build-module/plugins/persistence/{index.js → index.mjs} +3 -3
- package/build-module/plugins/persistence/storage/{default.js → default.mjs} +2 -2
- package/build-module/plugins/persistence/storage/{object.js → object.mjs} +1 -1
- package/build-module/{promise-middleware.js → promise-middleware.mjs} +1 -1
- package/build-module/redux-store/{combine-reducers.js → combine-reducers.mjs} +1 -1
- package/build-module/redux-store/{index.js → index.mjs} +10 -10
- package/build-module/redux-store/metadata/{actions.js → actions.mjs} +1 -1
- package/build-module/redux-store/metadata/equivalent-key-map.d.mjs +1 -0
- package/build-module/redux-store/metadata/{reducer.js → reducer.mjs} +2 -2
- package/build-module/redux-store/metadata/{selectors.js → selectors.mjs} +3 -3
- package/build-module/redux-store/metadata/{utils.js → utils.mjs} +1 -1
- package/build-module/redux-store/{thunk-middleware.js → thunk-middleware.mjs} +1 -1
- package/build-module/{registry.js → registry.mjs} +5 -5
- package/build-module/{resolvers-cache-middleware.js → resolvers-cache-middleware.mjs} +1 -1
- package/build-module/{select.js → select.mjs} +2 -2
- package/build-module/store/{index.js → index.mjs} +1 -1
- package/build-module/types.mjs +1 -0
- package/build-module/utils/{emitter.js → emitter.mjs} +1 -1
- package/package.json +14 -12
- package/build-module/components/use-dispatch/index.js +0 -8
- package/build-module/plugins/index.js +0 -6
- package/build-module/redux-store/metadata/equivalent-key-map.d.js +0 -1
- package/build-module/types.js +0 -1
- /package/build-module/components/async-mode-provider/{context.js.map → context.mjs.map} +0 -0
- /package/build-module/components/async-mode-provider/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/async-mode-provider/{use-async-mode.js.map → use-async-mode.mjs.map} +0 -0
- /package/build-module/components/registry-provider/{context.js.map → context.mjs.map} +0 -0
- /package/build-module/components/registry-provider/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/registry-provider/{use-registry.js.map → use-registry.mjs.map} +0 -0
- /package/build-module/components/use-dispatch/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-dispatch/{use-dispatch-with-map.js.map → use-dispatch-with-map.mjs.map} +0 -0
- /package/build-module/components/use-dispatch/{use-dispatch.js.map → use-dispatch.mjs.map} +0 -0
- /package/build-module/components/use-select/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/with-dispatch/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/with-registry/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/with-select/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{controls.js.map → controls.mjs.map} +0 -0
- /package/build-module/{create-selector.js.map → create-selector.mjs.map} +0 -0
- /package/build-module/{default-registry.js.map → default-registry.mjs.map} +0 -0
- /package/build-module/{dispatch.js.map → dispatch.mjs.map} +0 -0
- /package/build-module/{factory.js.map → factory.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/plugins/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/plugins/persistence/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/plugins/persistence/storage/{default.js.map → default.mjs.map} +0 -0
- /package/build-module/plugins/persistence/storage/{object.js.map → object.mjs.map} +0 -0
- /package/build-module/{promise-middleware.js.map → promise-middleware.mjs.map} +0 -0
- /package/build-module/redux-store/{combine-reducers.js.map → combine-reducers.mjs.map} +0 -0
- /package/build-module/redux-store/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/redux-store/metadata/{actions.js.map → actions.mjs.map} +0 -0
- /package/build-module/redux-store/metadata/{equivalent-key-map.d.js.map → equivalent-key-map.d.mjs.map} +0 -0
- /package/build-module/redux-store/metadata/{reducer.js.map → reducer.mjs.map} +0 -0
- /package/build-module/redux-store/metadata/{selectors.js.map → selectors.mjs.map} +0 -0
- /package/build-module/redux-store/metadata/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/redux-store/{thunk-middleware.js.map → thunk-middleware.mjs.map} +0 -0
- /package/build-module/{registry.js.map → registry.mjs.map} +0 -0
- /package/build-module/{resolvers-cache-middleware.js.map → resolvers-cache-middleware.mjs.map} +0 -0
- /package/build-module/{select.js.map → select.mjs.map} +0 -0
- /package/build-module/store/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{types.js.map → types.mjs.map} +0 -0
- /package/build-module/utils/{emitter.js.map → emitter.mjs.map} +0 -0
package/LICENSE.md
CHANGED
|
@@ -35,8 +35,8 @@ __export(async_mode_provider_exports, {
|
|
|
35
35
|
useAsyncMode: () => import_use_async_mode.default
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(async_mode_provider_exports);
|
|
38
|
-
var import_use_async_mode = __toESM(require("./use-async-mode.cjs")
|
|
39
|
-
var import_context = __toESM(require("./context.cjs")
|
|
38
|
+
var import_use_async_mode = __toESM(require("./use-async-mode.cjs"));
|
|
39
|
+
var import_context = __toESM(require("./context.cjs"));
|
|
40
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
41
|
0 && (module.exports = {
|
|
42
42
|
AsyncModeConsumer,
|
|
@@ -36,7 +36,7 @@ __export(context_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(context_exports);
|
|
38
38
|
var import_element = require("@wordpress/element");
|
|
39
|
-
var import_default_registry = __toESM(require("../../default-registry.cjs")
|
|
39
|
+
var import_default_registry = __toESM(require("../../default-registry.cjs"));
|
|
40
40
|
var Context = (0, import_element.createContext)(import_default_registry.default);
|
|
41
41
|
Context.displayName = "RegistryProviderContext";
|
|
42
42
|
var { Consumer, Provider } = Context;
|
|
@@ -35,8 +35,8 @@ __export(registry_provider_exports, {
|
|
|
35
35
|
useRegistry: () => import_use_registry.default
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(registry_provider_exports);
|
|
38
|
-
var import_context = __toESM(require("./context.cjs")
|
|
39
|
-
var import_use_registry = __toESM(require("./use-registry.cjs")
|
|
38
|
+
var import_context = __toESM(require("./context.cjs"));
|
|
39
|
+
var import_use_registry = __toESM(require("./use-registry.cjs"));
|
|
40
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
41
|
0 && (module.exports = {
|
|
42
42
|
RegistryConsumer,
|
|
@@ -34,8 +34,8 @@ __export(use_dispatch_exports, {
|
|
|
34
34
|
useDispatchWithMap: () => import_use_dispatch_with_map.default
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(use_dispatch_exports);
|
|
37
|
-
var import_use_dispatch = __toESM(require("./use-dispatch.cjs")
|
|
38
|
-
var import_use_dispatch_with_map = __toESM(require("./use-dispatch-with-map.cjs")
|
|
37
|
+
var import_use_dispatch = __toESM(require("./use-dispatch.cjs"));
|
|
38
|
+
var import_use_dispatch_with_map = __toESM(require("./use-dispatch-with-map.cjs"));
|
|
39
39
|
// Annotate the CommonJS export names for ESM import in node:
|
|
40
40
|
0 && (module.exports = {
|
|
41
41
|
useDispatch,
|
|
@@ -35,7 +35,7 @@ __export(use_dispatch_with_map_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(use_dispatch_with_map_exports);
|
|
36
36
|
var import_element = require("@wordpress/element");
|
|
37
37
|
var import_compose = require("@wordpress/compose");
|
|
38
|
-
var import_use_registry = __toESM(require("../registry-provider/use-registry.cjs")
|
|
38
|
+
var import_use_registry = __toESM(require("../registry-provider/use-registry.cjs"));
|
|
39
39
|
var useDispatchWithMap = (dispatchMap, deps) => {
|
|
40
40
|
const registry = (0, import_use_registry.default)();
|
|
41
41
|
const currentDispatchMapRef = (0, import_element.useRef)(dispatchMap);
|
|
@@ -33,7 +33,7 @@ __export(use_dispatch_exports, {
|
|
|
33
33
|
default: () => use_dispatch_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(use_dispatch_exports);
|
|
36
|
-
var import_use_registry = __toESM(require("../registry-provider/use-registry.cjs")
|
|
36
|
+
var import_use_registry = __toESM(require("../registry-provider/use-registry.cjs"));
|
|
37
37
|
var useDispatch = (storeNameOrDescriptor) => {
|
|
38
38
|
const { dispatch } = (0, import_use_registry.default)();
|
|
39
39
|
return storeNameOrDescriptor === void 0 ? dispatch : dispatch(storeNameOrDescriptor);
|
|
@@ -37,8 +37,8 @@ module.exports = __toCommonJS(use_select_exports);
|
|
|
37
37
|
var import_priority_queue = require("@wordpress/priority-queue");
|
|
38
38
|
var import_element = require("@wordpress/element");
|
|
39
39
|
var import_is_shallow_equal = require("@wordpress/is-shallow-equal");
|
|
40
|
-
var import_use_registry = __toESM(require("../registry-provider/use-registry.cjs")
|
|
41
|
-
var import_use_async_mode = __toESM(require("../async-mode-provider/use-async-mode.cjs")
|
|
40
|
+
var import_use_registry = __toESM(require("../registry-provider/use-registry.cjs"));
|
|
41
|
+
var import_use_async_mode = __toESM(require("../async-mode-provider/use-async-mode.cjs"));
|
|
42
42
|
var renderQueue = (0, import_priority_queue.createQueue)();
|
|
43
43
|
function warnOnUnstableReference(a, b) {
|
|
44
44
|
if (!a || !b) {
|
|
@@ -34,7 +34,7 @@ __export(with_select_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(with_select_exports);
|
|
36
36
|
var import_compose = require("@wordpress/compose");
|
|
37
|
-
var import_use_select = __toESM(require("../use-select/index.cjs")
|
|
37
|
+
var import_use_select = __toESM(require("../use-select/index.cjs"));
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
39
|
var withSelect = (mapSelectToProps) => (0, import_compose.createHigherOrderComponent)(
|
|
40
40
|
(WrappedComponent) => (0, import_compose.pure)((ownProps) => {
|
|
@@ -33,7 +33,7 @@ __export(create_selector_exports, {
|
|
|
33
33
|
createSelector: () => import_rememo.default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(create_selector_exports);
|
|
36
|
-
var import_rememo = __toESM(require("rememo")
|
|
36
|
+
var import_rememo = __toESM(require("rememo"));
|
|
37
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
38
|
0 && (module.exports = {
|
|
39
39
|
createSelector
|
package/build/dispatch.cjs
CHANGED
|
@@ -33,7 +33,7 @@ __export(dispatch_exports, {
|
|
|
33
33
|
dispatch: () => dispatch
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(dispatch_exports);
|
|
36
|
-
var import_default_registry = __toESM(require("./default-registry.cjs")
|
|
36
|
+
var import_default_registry = __toESM(require("./default-registry.cjs"));
|
|
37
37
|
function dispatch(storeNameOrDescriptor) {
|
|
38
38
|
return import_default_registry.default.dispatch(storeNameOrDescriptor);
|
|
39
39
|
}
|
package/build/index.cjs
CHANGED
|
@@ -59,21 +59,21 @@ __export(index_exports, {
|
|
|
59
59
|
withSelect: () => import_with_select.default
|
|
60
60
|
});
|
|
61
61
|
module.exports = __toCommonJS(index_exports);
|
|
62
|
-
var import_default_registry = __toESM(require("./default-registry.cjs")
|
|
63
|
-
var plugins = __toESM(require("./plugins/index.cjs")
|
|
62
|
+
var import_default_registry = __toESM(require("./default-registry.cjs"));
|
|
63
|
+
var plugins = __toESM(require("./plugins/index.cjs"));
|
|
64
64
|
var import_redux_store = require("./redux-store/index.cjs");
|
|
65
|
-
var import_with_select = __toESM(require("./components/with-select/index.cjs")
|
|
66
|
-
var import_with_dispatch = __toESM(require("./components/with-dispatch/index.cjs")
|
|
67
|
-
var import_with_registry = __toESM(require("./components/with-registry/index.cjs")
|
|
65
|
+
var import_with_select = __toESM(require("./components/with-select/index.cjs"));
|
|
66
|
+
var import_with_dispatch = __toESM(require("./components/with-dispatch/index.cjs"));
|
|
67
|
+
var import_with_registry = __toESM(require("./components/with-registry/index.cjs"));
|
|
68
68
|
var import_registry_provider = require("./components/registry-provider/index.cjs");
|
|
69
|
-
var import_use_select = __toESM(require("./components/use-select/index.cjs")
|
|
69
|
+
var import_use_select = __toESM(require("./components/use-select/index.cjs"));
|
|
70
70
|
var import_use_dispatch = require("./components/use-dispatch/index.cjs");
|
|
71
71
|
var import_async_mode_provider = require("./components/async-mode-provider/index.cjs");
|
|
72
72
|
var import_registry = require("./registry.cjs");
|
|
73
73
|
var import_factory = require("./factory.cjs");
|
|
74
74
|
var import_create_selector = require("./create-selector.cjs");
|
|
75
75
|
var import_controls = require("./controls.cjs");
|
|
76
|
-
var import_redux_store2 = __toESM(require("./redux-store/index.cjs")
|
|
76
|
+
var import_redux_store2 = __toESM(require("./redux-store/index.cjs"));
|
|
77
77
|
var import_dispatch = require("./dispatch.cjs");
|
|
78
78
|
var import_select = require("./select.cjs");
|
|
79
79
|
var defaultRegistry = import_default_registry.default;
|
package/build/plugins/index.cjs
CHANGED
|
@@ -33,7 +33,7 @@ __export(plugins_exports, {
|
|
|
33
33
|
persistence: () => import_persistence.default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(plugins_exports);
|
|
36
|
-
var import_persistence = __toESM(require("./persistence/index.cjs")
|
|
36
|
+
var import_persistence = __toESM(require("./persistence/index.cjs"));
|
|
37
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
38
|
0 && (module.exports = {
|
|
39
39
|
persistence
|
|
@@ -36,8 +36,8 @@ __export(persistence_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(persistence_exports);
|
|
38
38
|
var import_is_plain_object = require("is-plain-object");
|
|
39
|
-
var import_deepmerge = __toESM(require("deepmerge")
|
|
40
|
-
var import_default = __toESM(require("./storage/default.cjs")
|
|
39
|
+
var import_deepmerge = __toESM(require("deepmerge"));
|
|
40
|
+
var import_default = __toESM(require("./storage/default.cjs"));
|
|
41
41
|
var import__ = require("../../index.cjs");
|
|
42
42
|
var DEFAULT_STORAGE = import_default.default;
|
|
43
43
|
var DEFAULT_STORAGE_KEY = "WP_DATA";
|
|
@@ -33,7 +33,7 @@ __export(default_exports, {
|
|
|
33
33
|
default: () => default_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(default_exports);
|
|
36
|
-
var import_object = __toESM(require("./object.cjs")
|
|
36
|
+
var import_object = __toESM(require("./object.cjs"));
|
|
37
37
|
var storage;
|
|
38
38
|
try {
|
|
39
39
|
storage = window.localStorage;
|
|
@@ -33,7 +33,7 @@ __export(promise_middleware_exports, {
|
|
|
33
33
|
default: () => promise_middleware_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(promise_middleware_exports);
|
|
36
|
-
var import_is_promise = __toESM(require("is-promise")
|
|
36
|
+
var import_is_promise = __toESM(require("is-promise"));
|
|
37
37
|
var promiseMiddleware = () => (next) => (action) => {
|
|
38
38
|
if ((0, import_is_promise.default)(action)) {
|
|
39
39
|
return action.then((resolvedAction) => {
|
|
@@ -35,18 +35,18 @@ __export(redux_store_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(redux_store_exports);
|
|
37
37
|
var import_redux = require("redux");
|
|
38
|
-
var import_equivalent_key_map = __toESM(require("equivalent-key-map")
|
|
39
|
-
var import_redux_routine = __toESM(require("@wordpress/redux-routine")
|
|
38
|
+
var import_equivalent_key_map = __toESM(require("equivalent-key-map"));
|
|
39
|
+
var import_redux_routine = __toESM(require("@wordpress/redux-routine"));
|
|
40
40
|
var import_compose = require("@wordpress/compose");
|
|
41
41
|
var import_combine_reducers = require("./combine-reducers.cjs");
|
|
42
42
|
var import_controls = require("../controls.cjs");
|
|
43
43
|
var import_lock_unlock = require("../lock-unlock.cjs");
|
|
44
|
-
var import_promise_middleware = __toESM(require("../promise-middleware.cjs")
|
|
45
|
-
var import_resolvers_cache_middleware = __toESM(require("../resolvers-cache-middleware.cjs")
|
|
46
|
-
var import_thunk_middleware = __toESM(require("./thunk-middleware.cjs")
|
|
47
|
-
var import_reducer = __toESM(require("./metadata/reducer.cjs")
|
|
48
|
-
var metadataSelectors = __toESM(require("./metadata/selectors.cjs")
|
|
49
|
-
var metadataActions = __toESM(require("./metadata/actions.cjs")
|
|
44
|
+
var import_promise_middleware = __toESM(require("../promise-middleware.cjs"));
|
|
45
|
+
var import_resolvers_cache_middleware = __toESM(require("../resolvers-cache-middleware.cjs"));
|
|
46
|
+
var import_thunk_middleware = __toESM(require("./thunk-middleware.cjs"));
|
|
47
|
+
var import_reducer = __toESM(require("./metadata/reducer.cjs"));
|
|
48
|
+
var metadataSelectors = __toESM(require("./metadata/selectors.cjs"));
|
|
49
|
+
var metadataActions = __toESM(require("./metadata/actions.cjs"));
|
|
50
50
|
var trimUndefinedValues = (array) => {
|
|
51
51
|
const result = [...array];
|
|
52
52
|
for (let i = result.length - 1; i >= 0; i--) {
|
|
@@ -33,7 +33,7 @@ __export(reducer_exports, {
|
|
|
33
33
|
default: () => reducer_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(reducer_exports);
|
|
36
|
-
var import_equivalent_key_map = __toESM(require("equivalent-key-map")
|
|
36
|
+
var import_equivalent_key_map = __toESM(require("equivalent-key-map"));
|
|
37
37
|
var import_utils = require("./utils.cjs");
|
|
38
38
|
var subKeysIsResolved = (0, import_utils.onSubKey)("selectorName")((state = new import_equivalent_key_map.default(), action) => {
|
|
39
39
|
switch (action.type) {
|
|
@@ -42,7 +42,7 @@ __export(selectors_exports, {
|
|
|
42
42
|
isResolving: () => isResolving
|
|
43
43
|
});
|
|
44
44
|
module.exports = __toCommonJS(selectors_exports);
|
|
45
|
-
var import_deprecated = __toESM(require("@wordpress/deprecated")
|
|
45
|
+
var import_deprecated = __toESM(require("@wordpress/deprecated"));
|
|
46
46
|
var import_create_selector = require("../../create-selector.cjs");
|
|
47
47
|
var import_utils = require("./utils.cjs");
|
|
48
48
|
function getResolutionState(state, selectorName, args) {
|
package/build/registry.cjs
CHANGED
|
@@ -33,9 +33,9 @@ __export(registry_exports, {
|
|
|
33
33
|
createRegistry: () => createRegistry
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(registry_exports);
|
|
36
|
-
var import_deprecated = __toESM(require("@wordpress/deprecated")
|
|
37
|
-
var import_redux_store = __toESM(require("./redux-store/index.cjs")
|
|
38
|
-
var import_store = __toESM(require("./store/index.cjs")
|
|
36
|
+
var import_deprecated = __toESM(require("@wordpress/deprecated"));
|
|
37
|
+
var import_redux_store = __toESM(require("./redux-store/index.cjs"));
|
|
38
|
+
var import_store = __toESM(require("./store/index.cjs"));
|
|
39
39
|
var import_emitter = require("./utils/emitter.cjs");
|
|
40
40
|
var import_lock_unlock = require("./lock-unlock.cjs");
|
|
41
41
|
function getStoreName(storeNameOrDescriptor) {
|
package/build/select.cjs
CHANGED
|
@@ -33,7 +33,7 @@ __export(select_exports, {
|
|
|
33
33
|
select: () => select
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(select_exports);
|
|
36
|
-
var import_default_registry = __toESM(require("./default-registry.cjs")
|
|
36
|
+
var import_default_registry = __toESM(require("./default-registry.cjs"));
|
|
37
37
|
function select(storeNameOrDescriptor) {
|
|
38
38
|
return import_default_registry.default.select(storeNameOrDescriptor);
|
|
39
39
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// packages/data/src/components/async-mode-provider/index.js
|
|
2
|
-
import { default as default2 } from "./use-async-mode.
|
|
3
|
-
import { default as default3, AsyncModeConsumer } from "./context.
|
|
2
|
+
import { default as default2 } from "./use-async-mode.mjs";
|
|
3
|
+
import { default as default3, AsyncModeConsumer } from "./context.mjs";
|
|
4
4
|
export {
|
|
5
5
|
AsyncModeConsumer,
|
|
6
6
|
default3 as AsyncModeProvider,
|
|
7
7
|
default2 as useAsyncMode
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=index.
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
package/build-module/components/async-mode-provider/{use-async-mode.js → use-async-mode.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// packages/data/src/components/async-mode-provider/use-async-mode.js
|
|
2
2
|
import { useContext } from "@wordpress/element";
|
|
3
|
-
import { Context } from "./context.
|
|
3
|
+
import { Context } from "./context.mjs";
|
|
4
4
|
function useAsyncMode() {
|
|
5
5
|
return useContext(Context);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
useAsyncMode as default
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=use-async-mode.
|
|
10
|
+
//# sourceMappingURL=use-async-mode.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/data/src/components/registry-provider/context.js
|
|
2
2
|
import { createContext } from "@wordpress/element";
|
|
3
|
-
import defaultRegistry from "../../default-registry.
|
|
3
|
+
import defaultRegistry from "../../default-registry.mjs";
|
|
4
4
|
var Context = createContext(defaultRegistry);
|
|
5
5
|
Context.displayName = "RegistryProviderContext";
|
|
6
6
|
var { Consumer, Provider } = Context;
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
RegistryConsumer,
|
|
12
12
|
context_default as default
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=context.
|
|
14
|
+
//# sourceMappingURL=context.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// packages/data/src/components/registry-provider/index.js
|
|
2
|
-
import { default as default2, RegistryConsumer } from "./context.
|
|
3
|
-
import { default as default3 } from "./use-registry.
|
|
2
|
+
import { default as default2, RegistryConsumer } from "./context.mjs";
|
|
3
|
+
import { default as default3 } from "./use-registry.mjs";
|
|
4
4
|
export {
|
|
5
5
|
RegistryConsumer,
|
|
6
6
|
default2 as RegistryProvider,
|
|
7
7
|
default3 as useRegistry
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=index.
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// packages/data/src/components/registry-provider/use-registry.js
|
|
2
2
|
import { useContext } from "@wordpress/element";
|
|
3
|
-
import { Context } from "./context.
|
|
3
|
+
import { Context } from "./context.mjs";
|
|
4
4
|
function useRegistry() {
|
|
5
5
|
return useContext(Context);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
useRegistry as default
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=use-registry.
|
|
10
|
+
//# sourceMappingURL=use-registry.mjs.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// packages/data/src/components/use-dispatch/index.js
|
|
2
|
+
import { default as default2 } from "./use-dispatch.mjs";
|
|
3
|
+
import { default as default3 } from "./use-dispatch-with-map.mjs";
|
|
4
|
+
export {
|
|
5
|
+
default2 as useDispatch,
|
|
6
|
+
default3 as useDispatchWithMap
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
package/build-module/components/use-dispatch/{use-dispatch-with-map.js → use-dispatch-with-map.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/data/src/components/use-dispatch/use-dispatch-with-map.js
|
|
2
2
|
import { useMemo, useRef } from "@wordpress/element";
|
|
3
3
|
import { useIsomorphicLayoutEffect } from "@wordpress/compose";
|
|
4
|
-
import useRegistry from "../registry-provider/use-registry.
|
|
4
|
+
import useRegistry from "../registry-provider/use-registry.mjs";
|
|
5
5
|
var useDispatchWithMap = (dispatchMap, deps) => {
|
|
6
6
|
const registry = useRegistry();
|
|
7
7
|
const currentDispatchMapRef = useRef(dispatchMap);
|
|
@@ -34,4 +34,4 @@ var use_dispatch_with_map_default = useDispatchWithMap;
|
|
|
34
34
|
export {
|
|
35
35
|
use_dispatch_with_map_default as default
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=use-dispatch-with-map.
|
|
37
|
+
//# sourceMappingURL=use-dispatch-with-map.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/data/src/components/use-dispatch/use-dispatch.js
|
|
2
|
-
import useRegistry from "../registry-provider/use-registry.
|
|
2
|
+
import useRegistry from "../registry-provider/use-registry.mjs";
|
|
3
3
|
var useDispatch = (storeNameOrDescriptor) => {
|
|
4
4
|
const { dispatch } = useRegistry();
|
|
5
5
|
return storeNameOrDescriptor === void 0 ? dispatch : dispatch(storeNameOrDescriptor);
|
|
@@ -8,4 +8,4 @@ var use_dispatch_default = useDispatch;
|
|
|
8
8
|
export {
|
|
9
9
|
use_dispatch_default as default
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=use-dispatch.
|
|
11
|
+
//# sourceMappingURL=use-dispatch.mjs.map
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
useDebugValue
|
|
9
9
|
} from "@wordpress/element";
|
|
10
10
|
import { isShallowEqual } from "@wordpress/is-shallow-equal";
|
|
11
|
-
import useRegistry from "../registry-provider/use-registry.
|
|
12
|
-
import useAsyncMode from "../async-mode-provider/use-async-mode.
|
|
11
|
+
import useRegistry from "../registry-provider/use-registry.mjs";
|
|
12
|
+
import useAsyncMode from "../async-mode-provider/use-async-mode.mjs";
|
|
13
13
|
var renderQueue = createQueue();
|
|
14
14
|
function warnOnUnstableReference(a, b) {
|
|
15
15
|
if (!a || !b) {
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
useSelect as default,
|
|
168
168
|
useSuspenseSelect
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=index.
|
|
170
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/data/src/components/with-dispatch/index.js
|
|
2
2
|
import { createHigherOrderComponent } from "@wordpress/compose";
|
|
3
|
-
import { useDispatchWithMap } from "../use-dispatch/index.
|
|
3
|
+
import { useDispatchWithMap } from "../use-dispatch/index.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
var withDispatch = (mapDispatchToProps) => createHigherOrderComponent(
|
|
6
6
|
(WrappedComponent) => (ownProps) => {
|
|
@@ -14,4 +14,4 @@ var with_dispatch_default = withDispatch;
|
|
|
14
14
|
export {
|
|
15
15
|
with_dispatch_default as default
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=index.
|
|
17
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/data/src/components/with-registry/index.js
|
|
2
2
|
import { createHigherOrderComponent } from "@wordpress/compose";
|
|
3
|
-
import { RegistryConsumer } from "../registry-provider/index.
|
|
3
|
+
import { RegistryConsumer } from "../registry-provider/index.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
var withRegistry = createHigherOrderComponent(
|
|
6
6
|
(OriginalComponent) => (props) => /* @__PURE__ */ jsx(RegistryConsumer, { children: (registry) => /* @__PURE__ */ jsx(OriginalComponent, { ...props, registry }) }),
|
|
@@ -10,4 +10,4 @@ var with_registry_default = withRegistry;
|
|
|
10
10
|
export {
|
|
11
11
|
with_registry_default as default
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=index.
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/data/src/components/with-select/index.js
|
|
2
2
|
import { createHigherOrderComponent, pure } from "@wordpress/compose";
|
|
3
|
-
import useSelect from "../use-select/index.
|
|
3
|
+
import useSelect from "../use-select/index.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
var withSelect = (mapSelectToProps) => createHigherOrderComponent(
|
|
6
6
|
(WrappedComponent) => pure((ownProps) => {
|
|
@@ -14,4 +14,4 @@ var with_select_default = withSelect;
|
|
|
14
14
|
export {
|
|
15
15
|
with_select_default as default
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=index.
|
|
17
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/data/src/controls.js
|
|
2
|
-
import { createRegistryControl } from "./factory.
|
|
2
|
+
import { createRegistryControl } from "./factory.mjs";
|
|
3
3
|
var SELECT = "@@data/SELECT";
|
|
4
4
|
var RESOLVE_SELECT = "@@data/RESOLVE_SELECT";
|
|
5
5
|
var DISPATCH = "@@data/DISPATCH";
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
builtinControls,
|
|
52
52
|
controls
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=controls.
|
|
54
|
+
//# sourceMappingURL=controls.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/data/src/default-registry.js
|
|
2
|
-
import { createRegistry } from "./registry.
|
|
2
|
+
import { createRegistry } from "./registry.mjs";
|
|
3
3
|
var default_registry_default = createRegistry();
|
|
4
4
|
export {
|
|
5
5
|
default_registry_default as default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=default-registry.
|
|
7
|
+
//# sourceMappingURL=default-registry.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// packages/data/src/dispatch.ts
|
|
2
|
-
import defaultRegistry from "./default-registry.
|
|
2
|
+
import defaultRegistry from "./default-registry.mjs";
|
|
3
3
|
function dispatch(storeNameOrDescriptor) {
|
|
4
4
|
return defaultRegistry.dispatch(storeNameOrDescriptor);
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
7
|
dispatch
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=dispatch.
|
|
9
|
+
//# sourceMappingURL=dispatch.mjs.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// packages/data/src/index.ts
|
|
2
|
-
import defaultRegistryUntyped from "./default-registry.
|
|
3
|
-
import * as plugins from "./plugins/index.
|
|
4
|
-
import { combineReducers as combineReducersModule } from "./redux-store/index.
|
|
5
|
-
import { default as default2 } from "./components/with-select/index.
|
|
6
|
-
import { default as default3 } from "./components/with-dispatch/index.
|
|
7
|
-
import { default as default4 } from "./components/with-registry/index.
|
|
2
|
+
import defaultRegistryUntyped from "./default-registry.mjs";
|
|
3
|
+
import * as plugins from "./plugins/index.mjs";
|
|
4
|
+
import { combineReducers as combineReducersModule } from "./redux-store/index.mjs";
|
|
5
|
+
import { default as default2 } from "./components/with-select/index.mjs";
|
|
6
|
+
import { default as default3 } from "./components/with-dispatch/index.mjs";
|
|
7
|
+
import { default as default4 } from "./components/with-registry/index.mjs";
|
|
8
8
|
import {
|
|
9
9
|
RegistryProvider,
|
|
10
10
|
RegistryConsumer,
|
|
11
11
|
useRegistry
|
|
12
|
-
} from "./components/registry-provider/index.
|
|
12
|
+
} from "./components/registry-provider/index.mjs";
|
|
13
13
|
import {
|
|
14
14
|
default as default5,
|
|
15
15
|
useSuspenseSelect
|
|
16
|
-
} from "./components/use-select/index.
|
|
17
|
-
import { useDispatch } from "./components/use-dispatch/index.
|
|
18
|
-
import { AsyncModeProvider } from "./components/async-mode-provider/index.
|
|
19
|
-
import { createRegistry } from "./registry.
|
|
20
|
-
import { createRegistrySelector, createRegistryControl } from "./factory.
|
|
21
|
-
import { createSelector } from "./create-selector.
|
|
22
|
-
import { controls } from "./controls.
|
|
23
|
-
import { default as default6 } from "./redux-store/index.
|
|
24
|
-
import { dispatch } from "./dispatch.
|
|
25
|
-
import { select } from "./select.
|
|
16
|
+
} from "./components/use-select/index.mjs";
|
|
17
|
+
import { useDispatch } from "./components/use-dispatch/index.mjs";
|
|
18
|
+
import { AsyncModeProvider } from "./components/async-mode-provider/index.mjs";
|
|
19
|
+
import { createRegistry } from "./registry.mjs";
|
|
20
|
+
import { createRegistrySelector, createRegistryControl } from "./factory.mjs";
|
|
21
|
+
import { createSelector } from "./create-selector.mjs";
|
|
22
|
+
import { controls } from "./controls.mjs";
|
|
23
|
+
import { default as default6 } from "./redux-store/index.mjs";
|
|
24
|
+
import { dispatch } from "./dispatch.mjs";
|
|
25
|
+
import { select } from "./select.mjs";
|
|
26
26
|
var defaultRegistry = defaultRegistryUntyped;
|
|
27
27
|
var combineReducers = combineReducersModule;
|
|
28
28
|
function resolveSelect(storeNameOrDescriptor) {
|
|
@@ -63,4 +63,4 @@ export {
|
|
|
63
63
|
default4 as withRegistry,
|
|
64
64
|
default2 as withSelect
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=index.
|
|
66
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// packages/data/src/plugins/persistence/index.js
|
|
2
2
|
import { isPlainObject } from "is-plain-object";
|
|
3
3
|
import deepmerge from "deepmerge";
|
|
4
|
-
import defaultStorage from "./storage/default.
|
|
5
|
-
import { combineReducers } from "../../index.
|
|
4
|
+
import defaultStorage from "./storage/default.mjs";
|
|
5
|
+
import { combineReducers } from "../../index.mjs";
|
|
6
6
|
var DEFAULT_STORAGE = defaultStorage;
|
|
7
7
|
var DEFAULT_STORAGE_KEY = "WP_DATA";
|
|
8
8
|
var withLazySameState = (reducer) => (state, action) => {
|
|
@@ -110,4 +110,4 @@ export {
|
|
|
110
110
|
persistence_default as default,
|
|
111
111
|
withLazySameState
|
|
112
112
|
};
|
|
113
|
-
//# sourceMappingURL=index.
|
|
113
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/data/src/plugins/persistence/storage/default.js
|
|
2
|
-
import objectStorage from "./object.
|
|
2
|
+
import objectStorage from "./object.mjs";
|
|
3
3
|
var storage;
|
|
4
4
|
try {
|
|
5
5
|
storage = window.localStorage;
|
|
@@ -12,4 +12,4 @@ var default_default = storage;
|
|
|
12
12
|
export {
|
|
13
13
|
default_default as default
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=default.
|
|
15
|
+
//# sourceMappingURL=default.mjs.map
|
|
@@ -3,15 +3,15 @@ import { createStore, applyMiddleware } from "redux";
|
|
|
3
3
|
import EquivalentKeyMap from "equivalent-key-map";
|
|
4
4
|
import createReduxRoutineMiddleware from "@wordpress/redux-routine";
|
|
5
5
|
import { compose } from "@wordpress/compose";
|
|
6
|
-
import { combineReducers } from "./combine-reducers.
|
|
7
|
-
import { builtinControls } from "../controls.
|
|
8
|
-
import { lock } from "../lock-unlock.
|
|
9
|
-
import promise from "../promise-middleware.
|
|
10
|
-
import createResolversCacheMiddleware from "../resolvers-cache-middleware.
|
|
11
|
-
import createThunkMiddleware from "./thunk-middleware.
|
|
12
|
-
import metadataReducer from "./metadata/reducer.
|
|
13
|
-
import * as metadataSelectors from "./metadata/selectors.
|
|
14
|
-
import * as metadataActions from "./metadata/actions.
|
|
6
|
+
import { combineReducers } from "./combine-reducers.mjs";
|
|
7
|
+
import { builtinControls } from "../controls.mjs";
|
|
8
|
+
import { lock } from "../lock-unlock.mjs";
|
|
9
|
+
import promise from "../promise-middleware.mjs";
|
|
10
|
+
import createResolversCacheMiddleware from "../resolvers-cache-middleware.mjs";
|
|
11
|
+
import createThunkMiddleware from "./thunk-middleware.mjs";
|
|
12
|
+
import metadataReducer from "./metadata/reducer.mjs";
|
|
13
|
+
import * as metadataSelectors from "./metadata/selectors.mjs";
|
|
14
|
+
import * as metadataActions from "./metadata/actions.mjs";
|
|
15
15
|
var trimUndefinedValues = (array) => {
|
|
16
16
|
const result = [...array];
|
|
17
17
|
for (let i = result.length - 1; i >= 0; i--) {
|
|
@@ -453,4 +453,4 @@ export {
|
|
|
453
453
|
combineReducers,
|
|
454
454
|
createReduxStore as default
|
|
455
455
|
};
|
|
456
|
-
//# sourceMappingURL=index.
|
|
456
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=equivalent-key-map.d.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/data/src/redux-store/metadata/reducer.ts
|
|
2
2
|
import EquivalentKeyMap from "equivalent-key-map";
|
|
3
|
-
import { selectorArgsToStateKey, onSubKey } from "./utils.
|
|
3
|
+
import { selectorArgsToStateKey, onSubKey } from "./utils.mjs";
|
|
4
4
|
var subKeysIsResolved = onSubKey("selectorName")((state = new EquivalentKeyMap(), action) => {
|
|
5
5
|
switch (action.type) {
|
|
6
6
|
case "START_RESOLUTION": {
|
|
@@ -98,4 +98,4 @@ var reducer_default = isResolved;
|
|
|
98
98
|
export {
|
|
99
99
|
reducer_default as default
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=reducer.
|
|
101
|
+
//# sourceMappingURL=reducer.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/data/src/redux-store/metadata/selectors.js
|
|
2
2
|
import deprecated from "@wordpress/deprecated";
|
|
3
|
-
import { createSelector } from "../../create-selector.
|
|
4
|
-
import { selectorArgsToStateKey } from "./utils.
|
|
3
|
+
import { createSelector } from "../../create-selector.mjs";
|
|
4
|
+
import { selectorArgsToStateKey } from "./utils.mjs";
|
|
5
5
|
function getResolutionState(state, selectorName, args) {
|
|
6
6
|
const map = state[selectorName];
|
|
7
7
|
if (!map) {
|
|
@@ -93,4 +93,4 @@ export {
|
|
|
93
93
|
hasStartedResolution,
|
|
94
94
|
isResolving
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=selectors.
|
|
96
|
+
//# sourceMappingURL=selectors.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// packages/data/src/registry.js
|
|
2
2
|
import deprecated from "@wordpress/deprecated";
|
|
3
|
-
import createReduxStore from "./redux-store/index.
|
|
4
|
-
import coreDataStore from "./store/index.
|
|
5
|
-
import { createEmitter } from "./utils/emitter.
|
|
6
|
-
import { lock, unlock } from "./lock-unlock.
|
|
3
|
+
import createReduxStore from "./redux-store/index.mjs";
|
|
4
|
+
import coreDataStore from "./store/index.mjs";
|
|
5
|
+
import { createEmitter } from "./utils/emitter.mjs";
|
|
6
|
+
import { lock, unlock } from "./lock-unlock.mjs";
|
|
7
7
|
function getStoreName(storeNameOrDescriptor) {
|
|
8
8
|
return typeof storeNameOrDescriptor === "string" ? storeNameOrDescriptor : storeNameOrDescriptor.name;
|
|
9
9
|
}
|
|
@@ -227,4 +227,4 @@ function createRegistry(storeConfigs = {}, parent = null) {
|
|
|
227
227
|
export {
|
|
228
228
|
createRegistry
|
|
229
229
|
};
|
|
230
|
-
//# sourceMappingURL=registry.
|
|
230
|
+
//# sourceMappingURL=registry.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// packages/data/src/select.ts
|
|
2
|
-
import defaultRegistry from "./default-registry.
|
|
2
|
+
import defaultRegistry from "./default-registry.mjs";
|
|
3
3
|
function select(storeNameOrDescriptor) {
|
|
4
4
|
return defaultRegistry.select(storeNameOrDescriptor);
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
7
|
select
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=select.
|
|
9
|
+
//# sourceMappingURL=select.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/data",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.37.1-next.79a2f3cdd.0",
|
|
4
4
|
"description": "Data module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,13 +30,12 @@
|
|
|
30
30
|
"build-types",
|
|
31
31
|
"*.md"
|
|
32
32
|
],
|
|
33
|
-
"type": "module",
|
|
34
33
|
"main": "build/index.cjs",
|
|
35
|
-
"module": "build-module/index.
|
|
34
|
+
"module": "build-module/index.mjs",
|
|
36
35
|
"exports": {
|
|
37
36
|
".": {
|
|
38
37
|
"types": "./build-types/index.d.ts",
|
|
39
|
-
"import": "./build-module/index.
|
|
38
|
+
"import": "./build-module/index.mjs",
|
|
40
39
|
"require": "./build/index.cjs"
|
|
41
40
|
},
|
|
42
41
|
"./package.json": "./package.json"
|
|
@@ -46,13 +45,13 @@
|
|
|
46
45
|
"types": "build-types",
|
|
47
46
|
"sideEffects": false,
|
|
48
47
|
"dependencies": {
|
|
49
|
-
"@wordpress/compose": "^7.
|
|
50
|
-
"@wordpress/deprecated": "^4.
|
|
51
|
-
"@wordpress/element": "^6.
|
|
52
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
53
|
-
"@wordpress/priority-queue": "^3.
|
|
54
|
-
"@wordpress/private-apis": "^1.
|
|
55
|
-
"@wordpress/redux-routine": "^5.
|
|
48
|
+
"@wordpress/compose": "^7.37.1-next.79a2f3cdd.0",
|
|
49
|
+
"@wordpress/deprecated": "^4.37.1-next.79a2f3cdd.0",
|
|
50
|
+
"@wordpress/element": "^6.37.1-next.79a2f3cdd.0",
|
|
51
|
+
"@wordpress/is-shallow-equal": "^5.37.1-next.79a2f3cdd.0",
|
|
52
|
+
"@wordpress/priority-queue": "^3.37.1-next.79a2f3cdd.0",
|
|
53
|
+
"@wordpress/private-apis": "^1.37.1-next.79a2f3cdd.0",
|
|
54
|
+
"@wordpress/redux-routine": "^5.37.1-next.79a2f3cdd.0",
|
|
56
55
|
"deepmerge": "^4.3.0",
|
|
57
56
|
"equivalent-key-map": "^0.2.2",
|
|
58
57
|
"is-plain-object": "^5.0.0",
|
|
@@ -61,11 +60,14 @@
|
|
|
61
60
|
"rememo": "^4.0.2",
|
|
62
61
|
"use-memo-one": "^1.1.1"
|
|
63
62
|
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"deep-freeze": "0.0.1"
|
|
65
|
+
},
|
|
64
66
|
"peerDependencies": {
|
|
65
67
|
"react": "^18.0.0"
|
|
66
68
|
},
|
|
67
69
|
"publishConfig": {
|
|
68
70
|
"access": "public"
|
|
69
71
|
},
|
|
70
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6a324496a37d9a333a11d4d7fe5fb93b8152a5ba"
|
|
71
73
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// packages/data/src/components/use-dispatch/index.js
|
|
2
|
-
import { default as default2 } from "./use-dispatch.js";
|
|
3
|
-
import { default as default3 } from "./use-dispatch-with-map.js";
|
|
4
|
-
export {
|
|
5
|
-
default2 as useDispatch,
|
|
6
|
-
default3 as useDispatchWithMap
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=equivalent-key-map.d.js.map
|
package/build-module/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build-module/components/registry-provider/{use-registry.js.map → use-registry.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build-module/{resolvers-cache-middleware.js.map → resolvers-cache-middleware.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|