@wordpress/abilities 0.2.1-next.6deb34194.0 → 0.2.1-next.738bb1424.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/build/{api.js → api.cjs} +3 -3
- package/build/{index.js → index.cjs} +4 -4
- package/build/store/{actions.js → actions.cjs} +2 -2
- package/build/store/{constants.js → constants.cjs} +1 -1
- package/build/store/{index.js → index.cjs} +5 -5
- package/build/store/{reducer.js → reducer.cjs} +2 -2
- package/build/store/{selectors.js → selectors.cjs} +1 -1
- package/build/store/{types.js → types.cjs} +1 -1
- package/build/{types.js → types.cjs} +1 -1
- package/build/{validation.js → validation.cjs} +3 -3
- package/build-module/api.js +2 -2
- package/build-module/index.js +3 -3
- package/build-module/store/actions.js +1 -1
- package/build-module/store/index.js +4 -4
- package/build-module/store/reducer.js +1 -1
- package/package.json +8 -7
- /package/build/{api.js.map → api.cjs.map} +0 -0
- /package/build/{index.js.map → index.cjs.map} +0 -0
- /package/build/store/{actions.js.map → actions.cjs.map} +0 -0
- /package/build/store/{constants.js.map → constants.cjs.map} +0 -0
- /package/build/store/{index.js.map → index.cjs.map} +0 -0
- /package/build/store/{reducer.js.map → reducer.cjs.map} +0 -0
- /package/build/store/{selectors.js.map → selectors.cjs.map} +0 -0
- /package/build/store/{types.js.map → types.cjs.map} +0 -0
- /package/build/{types.js.map → types.cjs.map} +0 -0
- /package/build/{validation.js.map → validation.cjs.map} +0 -0
package/build/{api.js → api.cjs}
RENAMED
|
@@ -33,8 +33,8 @@ __export(api_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(api_exports);
|
|
34
34
|
var import_data = require("@wordpress/data");
|
|
35
35
|
var import_i18n = require("@wordpress/i18n");
|
|
36
|
-
var import_store = require("./store");
|
|
37
|
-
var import_validation = require("./validation");
|
|
36
|
+
var import_store = require("./store/index.cjs");
|
|
37
|
+
var import_validation = require("./validation.cjs");
|
|
38
38
|
function getAbilities(args = {}) {
|
|
39
39
|
return (0, import_data.select)(import_store.store).getAbilities(args);
|
|
40
40
|
}
|
|
@@ -139,4 +139,4 @@ async function executeAbility(name, input) {
|
|
|
139
139
|
unregisterAbility,
|
|
140
140
|
unregisterAbilityCategory
|
|
141
141
|
});
|
|
142
|
-
//# sourceMappingURL=api.
|
|
142
|
+
//# sourceMappingURL=api.cjs.map
|
|
@@ -33,9 +33,9 @@ __export(index_exports, {
|
|
|
33
33
|
validateValueFromSchema: () => import_validation.validateValueFromSchema
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(index_exports);
|
|
36
|
-
var import_api = require("./api");
|
|
37
|
-
var import_store = require("./store");
|
|
38
|
-
var import_validation = require("./validation");
|
|
36
|
+
var import_api = require("./api.cjs");
|
|
37
|
+
var import_store = require("./store/index.cjs");
|
|
38
|
+
var import_validation = require("./validation.cjs");
|
|
39
39
|
// Annotate the CommonJS export names for ESM import in node:
|
|
40
40
|
0 && (module.exports = {
|
|
41
41
|
executeAbility,
|
|
@@ -50,4 +50,4 @@ var import_validation = require("./validation");
|
|
|
50
50
|
unregisterAbilityCategory,
|
|
51
51
|
validateValueFromSchema
|
|
52
52
|
});
|
|
53
|
-
//# sourceMappingURL=index.
|
|
53
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -27,7 +27,7 @@ __export(actions_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(actions_exports);
|
|
29
29
|
var import_i18n = require("@wordpress/i18n");
|
|
30
|
-
var import_constants = require("./constants");
|
|
30
|
+
var import_constants = require("./constants.cjs");
|
|
31
31
|
function filterAnnotations(sourceAnnotations, allowedKeys) {
|
|
32
32
|
const annotations = {};
|
|
33
33
|
if (sourceAnnotations) {
|
|
@@ -190,4 +190,4 @@ function unregisterAbilityCategory(slug) {
|
|
|
190
190
|
unregisterAbility,
|
|
191
191
|
unregisterAbilityCategory
|
|
192
192
|
});
|
|
193
|
-
//# sourceMappingURL=actions.
|
|
193
|
+
//# sourceMappingURL=actions.cjs.map
|
|
@@ -34,10 +34,10 @@ __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"));
|
|
38
|
-
var actions = __toESM(require("./actions"));
|
|
39
|
-
var selectors = __toESM(require("./selectors"));
|
|
40
|
-
var import_constants = require("./constants");
|
|
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);
|
|
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,
|
|
43
43
|
actions,
|
|
@@ -48,4 +48,4 @@ var store = (0, import_data.createReduxStore)(import_constants.STORE_NAME, {
|
|
|
48
48
|
0 && (module.exports = {
|
|
49
49
|
store
|
|
50
50
|
});
|
|
51
|
-
//# sourceMappingURL=index.
|
|
51
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -24,7 +24,7 @@ __export(reducer_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(reducer_exports);
|
|
26
26
|
var import_data = require("@wordpress/data");
|
|
27
|
-
var import_constants = require("./constants");
|
|
27
|
+
var import_constants = require("./constants.cjs");
|
|
28
28
|
var ABILITY_KEYS = [
|
|
29
29
|
"name",
|
|
30
30
|
"label",
|
|
@@ -103,4 +103,4 @@ var reducer_default = (0, import_data.combineReducers)({
|
|
|
103
103
|
abilitiesByName,
|
|
104
104
|
categoriesBySlug
|
|
105
105
|
});
|
|
106
|
-
//# sourceMappingURL=reducer.
|
|
106
|
+
//# sourceMappingURL=reducer.cjs.map
|
|
@@ -16,4 +16,4 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
16
|
// packages/abilities/src/store/types.ts
|
|
17
17
|
var types_exports = {};
|
|
18
18
|
module.exports = __toCommonJS(types_exports);
|
|
19
|
-
//# sourceMappingURL=types.
|
|
19
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -16,4 +16,4 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
16
|
// packages/abilities/src/types.ts
|
|
17
17
|
var types_exports = {};
|
|
18
18
|
module.exports = __toCommonJS(types_exports);
|
|
19
|
-
//# sourceMappingURL=types.
|
|
19
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -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"));
|
|
37
|
-
var import_ajv_formats = __toESM(require("ajv-formats"));
|
|
36
|
+
var import_ajv_draft_04 = __toESM(require("ajv-draft-04"), 1);
|
|
37
|
+
var import_ajv_formats = __toESM(require("ajv-formats"), 1);
|
|
38
38
|
var ajv = new import_ajv_draft_04.default({
|
|
39
39
|
coerceTypes: false,
|
|
40
40
|
// No type coercion - AI should send proper JSON
|
|
@@ -141,4 +141,4 @@ function validateValueFromSchema(value, args, param = "") {
|
|
|
141
141
|
0 && (module.exports = {
|
|
142
142
|
validateValueFromSchema
|
|
143
143
|
});
|
|
144
|
-
//# sourceMappingURL=validation.
|
|
144
|
+
//# sourceMappingURL=validation.cjs.map
|
package/build-module/api.js
CHANGED
|
@@ -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";
|
|
5
|
-
import { validateValueFromSchema } from "./validation";
|
|
4
|
+
import { store } from "./store/index.js";
|
|
5
|
+
import { validateValueFromSchema } from "./validation.js";
|
|
6
6
|
function getAbilities(args = {}) {
|
|
7
7
|
return select(store).getAbilities(args);
|
|
8
8
|
}
|
package/build-module/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
unregisterAbility,
|
|
10
10
|
registerAbilityCategory,
|
|
11
11
|
unregisterAbilityCategory
|
|
12
|
-
} from "./api";
|
|
13
|
-
import { store } from "./store";
|
|
14
|
-
import { validateValueFromSchema } from "./validation";
|
|
12
|
+
} from "./api.js";
|
|
13
|
+
import { store } from "./store/index.js";
|
|
14
|
+
import { validateValueFromSchema } from "./validation.js";
|
|
15
15
|
export {
|
|
16
16
|
executeAbility,
|
|
17
17
|
getAbilities,
|
|
@@ -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";
|
|
4
|
-
import * as actions from "./actions";
|
|
5
|
-
import * as selectors from "./selectors";
|
|
6
|
-
import { STORE_NAME } from "./constants";
|
|
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";
|
|
7
7
|
var store = createReduxStore(STORE_NAME, {
|
|
8
8
|
reducer,
|
|
9
9
|
actions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/abilities",
|
|
3
|
-
"version": "0.2.1-next.
|
|
3
|
+
"version": "0.2.1-next.738bb1424.0",
|
|
4
4
|
"description": "JavaScript client for WordPress Abilities API.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -24,19 +24,20 @@
|
|
|
24
24
|
"npm": ">=8.19.2"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
|
+
"src",
|
|
27
28
|
"build",
|
|
28
29
|
"build-module",
|
|
29
30
|
"build-types",
|
|
30
|
-
"src",
|
|
31
31
|
"*.md"
|
|
32
32
|
],
|
|
33
|
-
"
|
|
33
|
+
"type": "module",
|
|
34
|
+
"main": "build/index.cjs",
|
|
34
35
|
"module": "build-module/index.js",
|
|
35
36
|
"exports": {
|
|
36
37
|
".": {
|
|
37
38
|
"types": "./build-types/index.d.ts",
|
|
38
39
|
"import": "./build-module/index.js",
|
|
39
|
-
"require": "./build/index.
|
|
40
|
+
"require": "./build/index.cjs"
|
|
40
41
|
},
|
|
41
42
|
"./package.json": "./package.json"
|
|
42
43
|
},
|
|
@@ -45,8 +46,8 @@
|
|
|
45
46
|
},
|
|
46
47
|
"types": "build-types",
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@wordpress/data": "^10.36.1-next.
|
|
49
|
-
"@wordpress/i18n": "^6.9.1-next.
|
|
49
|
+
"@wordpress/data": "^10.36.1-next.738bb1424.0",
|
|
50
|
+
"@wordpress/i18n": "^6.9.1-next.738bb1424.0",
|
|
50
51
|
"ajv": "^8.17.1",
|
|
51
52
|
"ajv-draft-04": "^1.0.0",
|
|
52
53
|
"ajv-formats": "^3.0.1"
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"access": "public"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ab1b004c0d61c295aa34bc86ea07f979343983ce"
|
|
58
59
|
}
|
|
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
|