@wordpress/abilities 0.2.1-next.738bb1424.0 → 0.2.1-next.76cff8c98.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Gutenberg
2
2
 
3
- Copyright 2016-2025 by the contributors
3
+ Copyright 2016-2026 by the contributors
4
4
 
5
5
  **License for Contributions (on and after April 15, 2021)**
6
6
 
@@ -34,9 +34,9 @@ __export(store_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(store_exports);
36
36
  var import_data = require("@wordpress/data");
37
- var import_reducer = __toESM(require("./reducer.cjs"), 1);
38
- var actions = __toESM(require("./actions.cjs"), 1);
39
- var selectors = __toESM(require("./selectors.cjs"), 1);
37
+ var import_reducer = __toESM(require("./reducer.cjs"));
38
+ var actions = __toESM(require("./actions.cjs"));
39
+ var selectors = __toESM(require("./selectors.cjs"));
40
40
  var import_constants = require("./constants.cjs");
41
41
  var store = (0, import_data.createReduxStore)(import_constants.STORE_NAME, {
42
42
  reducer: import_reducer.default,
@@ -33,8 +33,8 @@ __export(validation_exports, {
33
33
  validateValueFromSchema: () => validateValueFromSchema
34
34
  });
35
35
  module.exports = __toCommonJS(validation_exports);
36
- var import_ajv_draft_04 = __toESM(require("ajv-draft-04"), 1);
37
- var import_ajv_formats = __toESM(require("ajv-formats"), 1);
36
+ var import_ajv_draft_04 = __toESM(require("ajv-draft-04"));
37
+ var import_ajv_formats = __toESM(require("ajv-formats"));
38
38
  var ajv = new import_ajv_draft_04.default({
39
39
  coerceTypes: false,
40
40
  // No type coercion - AI should send proper JSON
@@ -1,8 +1,8 @@
1
1
  // packages/abilities/src/api.ts
2
2
  import { dispatch, select } from "@wordpress/data";
3
3
  import { sprintf } from "@wordpress/i18n";
4
- import { store } from "./store/index.js";
5
- import { validateValueFromSchema } from "./validation.js";
4
+ import { store } from "./store/index.mjs";
5
+ import { validateValueFromSchema } from "./validation.mjs";
6
6
  function getAbilities(args = {}) {
7
7
  return select(store).getAbilities(args);
8
8
  }
@@ -106,4 +106,4 @@ export {
106
106
  unregisterAbility,
107
107
  unregisterAbilityCategory
108
108
  };
109
- //# sourceMappingURL=api.js.map
109
+ //# sourceMappingURL=api.mjs.map
@@ -9,9 +9,9 @@ import {
9
9
  unregisterAbility,
10
10
  registerAbilityCategory,
11
11
  unregisterAbilityCategory
12
- } from "./api.js";
13
- import { store } from "./store/index.js";
14
- import { validateValueFromSchema } from "./validation.js";
12
+ } from "./api.mjs";
13
+ import { store } from "./store/index.mjs";
14
+ import { validateValueFromSchema } from "./validation.mjs";
15
15
  export {
16
16
  executeAbility,
17
17
  getAbilities,
@@ -25,4 +25,4 @@ export {
25
25
  unregisterAbilityCategory,
26
26
  validateValueFromSchema
27
27
  };
28
- //# sourceMappingURL=index.js.map
28
+ //# sourceMappingURL=index.mjs.map
@@ -7,7 +7,7 @@ import {
7
7
  UNREGISTER_ABILITY_CATEGORY,
8
8
  ABILITY_NAME_PATTERN,
9
9
  CATEGORY_SLUG_PATTERN
10
- } from "./constants.js";
10
+ } from "./constants.mjs";
11
11
  function filterAnnotations(sourceAnnotations, allowedKeys) {
12
12
  const annotations = {};
13
13
  if (sourceAnnotations) {
@@ -169,4 +169,4 @@ export {
169
169
  unregisterAbility,
170
170
  unregisterAbilityCategory
171
171
  };
172
- //# sourceMappingURL=actions.js.map
172
+ //# sourceMappingURL=actions.mjs.map
@@ -15,4 +15,4 @@ export {
15
15
  UNREGISTER_ABILITY,
16
16
  UNREGISTER_ABILITY_CATEGORY
17
17
  };
18
- //# sourceMappingURL=constants.js.map
18
+ //# sourceMappingURL=constants.mjs.map
@@ -1,9 +1,9 @@
1
1
  // packages/abilities/src/store/index.ts
2
2
  import { createReduxStore, register } from "@wordpress/data";
3
- import reducer from "./reducer.js";
4
- import * as actions from "./actions.js";
5
- import * as selectors from "./selectors.js";
6
- import { STORE_NAME } from "./constants.js";
3
+ import reducer from "./reducer.mjs";
4
+ import * as actions from "./actions.mjs";
5
+ import * as selectors from "./selectors.mjs";
6
+ import { STORE_NAME } from "./constants.mjs";
7
7
  var store = createReduxStore(STORE_NAME, {
8
8
  reducer,
9
9
  actions,
@@ -13,4 +13,4 @@ register(store);
13
13
  export {
14
14
  store
15
15
  };
16
- //# sourceMappingURL=index.js.map
16
+ //# sourceMappingURL=index.mjs.map
@@ -5,7 +5,7 @@ import {
5
5
  UNREGISTER_ABILITY,
6
6
  REGISTER_ABILITY_CATEGORY,
7
7
  UNREGISTER_ABILITY_CATEGORY
8
- } from "./constants.js";
8
+ } from "./constants.mjs";
9
9
  var ABILITY_KEYS = [
10
10
  "name",
11
11
  "label",
@@ -87,4 +87,4 @@ var reducer_default = combineReducers({
87
87
  export {
88
88
  reducer_default as default
89
89
  };
90
- //# sourceMappingURL=reducer.js.map
90
+ //# sourceMappingURL=reducer.mjs.map
@@ -33,4 +33,4 @@ export {
33
33
  getAbilityCategories,
34
34
  getAbilityCategory
35
35
  };
36
- //# sourceMappingURL=selectors.js.map
36
+ //# sourceMappingURL=selectors.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.mjs.map
@@ -106,4 +106,4 @@ function validateValueFromSchema(value, args, param = "") {
106
106
  export {
107
107
  validateValueFromSchema
108
108
  };
109
- //# sourceMappingURL=validation.js.map
109
+ //# sourceMappingURL=validation.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/abilities",
3
- "version": "0.2.1-next.738bb1424.0",
3
+ "version": "0.2.1-next.76cff8c98.0",
4
4
  "description": "JavaScript client for WordPress Abilities API.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -30,24 +30,23 @@
30
30
  "build-types",
31
31
  "*.md"
32
32
  ],
33
- "type": "module",
34
33
  "main": "build/index.cjs",
35
- "module": "build-module/index.js",
34
+ "module": "build-module/index.mjs",
36
35
  "exports": {
37
36
  ".": {
38
37
  "types": "./build-types/index.d.ts",
39
- "import": "./build-module/index.js",
38
+ "import": "./build-module/index.mjs",
40
39
  "require": "./build/index.cjs"
41
40
  },
42
41
  "./package.json": "./package.json"
43
42
  },
44
43
  "wpScriptModuleExports": {
45
- ".": "./build-module/index.js"
44
+ ".": "./build-module/index.mjs"
46
45
  },
47
46
  "types": "build-types",
48
47
  "dependencies": {
49
- "@wordpress/data": "^10.36.1-next.738bb1424.0",
50
- "@wordpress/i18n": "^6.9.1-next.738bb1424.0",
48
+ "@wordpress/data": "^10.36.1-next.76cff8c98.0",
49
+ "@wordpress/i18n": "^6.9.1-next.76cff8c98.0",
51
50
  "ajv": "^8.17.1",
52
51
  "ajv-draft-04": "^1.0.0",
53
52
  "ajv-formats": "^3.0.1"
@@ -55,5 +54,5 @@
55
54
  "publishConfig": {
56
55
  "access": "public"
57
56
  },
58
- "gitHead": "ab1b004c0d61c295aa34bc86ea07f979343983ce"
57
+ "gitHead": "368727f14b858e75179e140967c2d9ec965c8790"
59
58
  }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
File without changes
File without changes
File without changes