@wordpress/abilities 0.2.1-next.8fd3f8831.0 → 0.3.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/store/index.cjs +3 -3
- package/build/validation.cjs +2 -2
- package/build-module/{api.js → api.mjs} +3 -3
- package/build-module/{index.js → index.mjs} +4 -4
- package/build-module/store/{actions.js → actions.mjs} +2 -2
- package/build-module/store/{constants.js → constants.mjs} +1 -1
- package/build-module/store/{index.js → index.mjs} +5 -5
- package/build-module/store/{reducer.js → reducer.mjs} +2 -2
- package/build-module/store/{selectors.js → selectors.mjs} +1 -1
- package/build-module/store/types.mjs +1 -0
- package/build-module/types.mjs +1 -0
- package/build-module/{validation.js → validation.mjs} +1 -1
- package/package.json +7 -8
- package/build-module/store/types.js +0 -1
- package/build-module/types.js +0 -1
- /package/build-module/{api.js.map → api.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/store/{actions.js.map → actions.mjs.map} +0 -0
- /package/build-module/store/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/store/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/store/{reducer.js.map → reducer.mjs.map} +0 -0
- /package/build-module/store/{selectors.js.map → selectors.mjs.map} +0 -0
- /package/build-module/store/{types.js.map → types.mjs.map} +0 -0
- /package/build-module/{types.js.map → types.mjs.map} +0 -0
- /package/build-module/{validation.js.map → validation.mjs.map} +0 -0
package/LICENSE.md
CHANGED
package/build/store/index.cjs
CHANGED
|
@@ -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")
|
|
38
|
-
var actions = __toESM(require("./actions.cjs")
|
|
39
|
-
var selectors = __toESM(require("./selectors.cjs")
|
|
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,
|
package/build/validation.cjs
CHANGED
|
@@ -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"));
|
|
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.
|
|
5
|
-
import { validateValueFromSchema } from "./validation.
|
|
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.
|
|
109
|
+
//# sourceMappingURL=api.mjs.map
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
unregisterAbility,
|
|
10
10
|
registerAbilityCategory,
|
|
11
11
|
unregisterAbilityCategory
|
|
12
|
-
} from "./api.
|
|
13
|
-
import { store } from "./store/index.
|
|
14
|
-
import { validateValueFromSchema } from "./validation.
|
|
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.
|
|
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.
|
|
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.
|
|
172
|
+
//# sourceMappingURL=actions.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.
|
|
4
|
-
import * as actions from "./actions.
|
|
5
|
-
import * as selectors from "./selectors.
|
|
6
|
-
import { STORE_NAME } from "./constants.
|
|
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.
|
|
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.
|
|
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.
|
|
90
|
+
//# sourceMappingURL=reducer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/abilities",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1-next.79a2f3cdd.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.
|
|
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"
|
|
43
42
|
},
|
|
44
43
|
"wpScriptModuleExports": {
|
|
45
|
-
".": "./build-module/index.
|
|
44
|
+
".": "./build-module/index.mjs"
|
|
46
45
|
},
|
|
47
46
|
"types": "build-types",
|
|
48
47
|
"dependencies": {
|
|
49
|
-
"@wordpress/data": "^10.
|
|
50
|
-
"@wordpress/i18n": "^6.
|
|
48
|
+
"@wordpress/data": "^10.37.1-next.79a2f3cdd.0",
|
|
49
|
+
"@wordpress/i18n": "^6.10.1-next.79a2f3cdd.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": "
|
|
57
|
+
"gitHead": "6a324496a37d9a333a11d4d7fe5fb93b8152a5ba"
|
|
59
58
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|