@wordpress/abilities 0.23.0 → 0.24.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/index.cjs.map +1 -1
- package/build-module/index.mjs.map +1 -1
- package/build-types/index.d.ts +1 -1
- package/package.json +6 -7
- package/src/index.ts +1 -1
- package/CHANGELOG.md +0 -65
package/build/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress Abilities API Client\n *\n * This package provides a client for interacting with the\n * WordPress Abilities API, allowing you to list, retrieve, and execute\n * abilities from client-side code.\n *\n * @package\n */\n\n/**\n * Public API functions\n */\nexport {\n\tgetAbilities,\n\tgetAbility,\n\tgetAbilityCategories,\n\tgetAbilityCategory,\n\texecuteAbility,\n\tregisterAbility,\n\tunregisterAbility,\n\tregisterAbilityCategory,\n\tunregisterAbilityCategory,\n} from './api';\n\n/**\n * The store can be used directly with
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress Abilities API Client\n *\n * This package provides a client for interacting with the\n * WordPress Abilities API, allowing you to list, retrieve, and execute\n * abilities from client-side code.\n *\n * @package\n */\n\n/**\n * Public API functions\n */\nexport {\n\tgetAbilities,\n\tgetAbility,\n\tgetAbilityCategories,\n\tgetAbilityCategory,\n\texecuteAbility,\n\tregisterAbility,\n\tunregisterAbility,\n\tregisterAbilityCategory,\n\tunregisterAbilityCategory,\n} from './api';\n\n/**\n * The store can be used directly with `@wordpress/data` via selectors\n * in React components with useSelect.\n *\n * @example\n * ```js\n * import { useSelect } from '@wordpress/data';\n * import { store as abilitiesStore } from '@wordpress/abilities';\n *\n * function MyComponent() {\n * const abilities = useSelect(\n * (select) => select(abilitiesStore).getAbilities(),\n * []\n * );\n * // Use abilities...\n * }\n * ```\n */\nexport { store } from './store';\n\n/**\n * Type definitions\n */\nexport type {\n\tAbility,\n\tAbilityCategory,\n\tAbilityCategoryArgs,\n\tAbilitiesQueryArgs,\n\tAbilityCallback,\n\tPermissionCallback,\n\tAbilityInput,\n\tAbilityOutput,\n\tValidationError,\n} from './types';\n\n/**\n * Validation utilities\n */\nexport { validateValueFromSchema } from './validation';\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,iBAUO;AAoBP,mBAAsB;AAoBtB,wBAAwC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress Abilities API Client\n *\n * This package provides a client for interacting with the\n * WordPress Abilities API, allowing you to list, retrieve, and execute\n * abilities from client-side code.\n *\n * @package\n */\n\n/**\n * Public API functions\n */\nexport {\n\tgetAbilities,\n\tgetAbility,\n\tgetAbilityCategories,\n\tgetAbilityCategory,\n\texecuteAbility,\n\tregisterAbility,\n\tunregisterAbility,\n\tregisterAbilityCategory,\n\tunregisterAbilityCategory,\n} from './api';\n\n/**\n * The store can be used directly with
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress Abilities API Client\n *\n * This package provides a client for interacting with the\n * WordPress Abilities API, allowing you to list, retrieve, and execute\n * abilities from client-side code.\n *\n * @package\n */\n\n/**\n * Public API functions\n */\nexport {\n\tgetAbilities,\n\tgetAbility,\n\tgetAbilityCategories,\n\tgetAbilityCategory,\n\texecuteAbility,\n\tregisterAbility,\n\tunregisterAbility,\n\tregisterAbilityCategory,\n\tunregisterAbilityCategory,\n} from './api';\n\n/**\n * The store can be used directly with `@wordpress/data` via selectors\n * in React components with useSelect.\n *\n * @example\n * ```js\n * import { useSelect } from '@wordpress/data';\n * import { store as abilitiesStore } from '@wordpress/abilities';\n *\n * function MyComponent() {\n * const abilities = useSelect(\n * (select) => select(abilitiesStore).getAbilities(),\n * []\n * );\n * // Use abilities...\n * }\n * ```\n */\nexport { store } from './store';\n\n/**\n * Type definitions\n */\nexport type {\n\tAbility,\n\tAbilityCategory,\n\tAbilityCategoryArgs,\n\tAbilitiesQueryArgs,\n\tAbilityCallback,\n\tPermissionCallback,\n\tAbilityInput,\n\tAbilityOutput,\n\tValidationError,\n} from './types';\n\n/**\n * Validation utilities\n */\nexport { validateValueFromSchema } from './validation';\n"],
|
|
5
5
|
"mappings": ";AAaA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AAoBP,SAAS,aAAa;AAoBtB,SAAS,+BAA+B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/build-types/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export { getAbilities, getAbility, getAbilityCategories, getAbilityCategory, executeAbility, registerAbility, unregisterAbility, registerAbilityCategory, unregisterAbilityCategory, } from './api';
|
|
14
14
|
/**
|
|
15
|
-
* The store can be used directly with
|
|
15
|
+
* The store can be used directly with `@wordpress/data` via selectors
|
|
16
16
|
* in React components with useSelect.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/abilities",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "JavaScript client for WordPress Abilities API.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -20,14 +20,13 @@
|
|
|
20
20
|
"url": "https://github.com/WordPress/gutenberg/issues"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=
|
|
23
|
+
"node": ">=22.13.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"src",
|
|
27
27
|
"build",
|
|
28
28
|
"build-module",
|
|
29
|
-
"build-types"
|
|
30
|
-
"*.md"
|
|
29
|
+
"build-types"
|
|
31
30
|
],
|
|
32
31
|
"main": "build/index.cjs",
|
|
33
32
|
"module": "build-module/index.mjs",
|
|
@@ -44,8 +43,8 @@
|
|
|
44
43
|
},
|
|
45
44
|
"types": "build-types",
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@wordpress/data": "^
|
|
48
|
-
"@wordpress/i18n": "^
|
|
46
|
+
"@wordpress/data": "^11.0.0",
|
|
47
|
+
"@wordpress/i18n": "^7.0.0",
|
|
49
48
|
"ajv": "^8.20.0",
|
|
50
49
|
"ajv-draft-04": "^1.0.0",
|
|
51
50
|
"ajv-formats": "^3.0.1"
|
|
@@ -70,5 +69,5 @@
|
|
|
70
69
|
"publishConfig": {
|
|
71
70
|
"access": "public"
|
|
72
71
|
},
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "8d30f92cbbde3ddf781c8799443c649befbbcb88"
|
|
74
73
|
}
|
package/src/index.ts
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
|
|
2
|
-
|
|
3
|
-
## Unreleased
|
|
4
|
-
|
|
5
|
-
## 0.23.0 (2026-10-07)
|
|
6
|
-
|
|
7
|
-
### Bug Fixes
|
|
8
|
-
|
|
9
|
-
- Declare `react`, `react-dom`, and their types as peer dependencies, forwarding the peers of `@wordpress/data`, so strict package managers such as Yarn PnP can resolve them ([#83765](https://github.com/WordPress/gutenberg/pull/83765)).
|
|
10
|
-
|
|
11
|
-
## 0.22.0 (2026-09-23)
|
|
12
|
-
|
|
13
|
-
## 0.21.0 (2026-09-10)
|
|
14
|
-
|
|
15
|
-
### Internal
|
|
16
|
-
|
|
17
|
-
- Remove tsconfig project references to packages that are not dependencies ([#82106](https://github.com/WordPress/gutenberg/pull/82106)).
|
|
18
|
-
|
|
19
|
-
## 0.20.0 (2026-08-26)
|
|
20
|
-
|
|
21
|
-
### Internal
|
|
22
|
-
|
|
23
|
-
- Split tsconfig into a build project and a default dev project so dev files are type checked without publishing their declarations. ([#81517](https://github.com/WordPress/gutenberg/pull/81517))
|
|
24
|
-
|
|
25
|
-
## 0.19.0 (2026-08-12)
|
|
26
|
-
|
|
27
|
-
## 0.18.0 (2026-07-29)
|
|
28
|
-
|
|
29
|
-
## 0.17.0 (2026-07-14)
|
|
30
|
-
|
|
31
|
-
## 0.16.0 (2026-07-01)
|
|
32
|
-
|
|
33
|
-
## 0.15.0 (2026-06-24)
|
|
34
|
-
|
|
35
|
-
## 0.14.1 (2026-06-16)
|
|
36
|
-
|
|
37
|
-
## 0.14.0 (2026-06-10)
|
|
38
|
-
|
|
39
|
-
## 0.13.0 (2026-05-27)
|
|
40
|
-
|
|
41
|
-
## 0.12.0 (2026-05-14)
|
|
42
|
-
|
|
43
|
-
## 0.11.0 (2026-04-29)
|
|
44
|
-
|
|
45
|
-
## 0.10.0 (2026-04-15)
|
|
46
|
-
|
|
47
|
-
## 0.9.0 (2026-04-01)
|
|
48
|
-
|
|
49
|
-
## 0.8.0 (2026-03-18)
|
|
50
|
-
|
|
51
|
-
## 0.7.0 (2026-03-04)
|
|
52
|
-
|
|
53
|
-
## 0.6.0 (2026-02-18)
|
|
54
|
-
|
|
55
|
-
## 0.5.0 (2026-01-29)
|
|
56
|
-
|
|
57
|
-
## 0.4.0 (2026-01-16)
|
|
58
|
-
|
|
59
|
-
## 0.2.0 (2025-11-26)
|
|
60
|
-
|
|
61
|
-
## 0.1.0 (Unreleased)
|
|
62
|
-
|
|
63
|
-
### New Features
|
|
64
|
-
|
|
65
|
-
- Initial release of the WordPress Abilities API client library.
|