@adobe/design-system-registry 5.0.28 → 5.0.30
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/CHANGELOG.md +14 -0
- package/README.md +5 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @adobe/design-system-registry
|
|
2
2
|
|
|
3
|
+
## 5.0.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`63d0ef4`](https://github.com/adobe/spectrum-design-data/commit/63d0ef4a7d82db80caf6229dac55c9d820443927)]:
|
|
8
|
+
- @adobe/spectrum-design-data@2.3.1
|
|
9
|
+
|
|
10
|
+
## 5.0.29
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`6d070af`](https://github.com/adobe/spectrum-design-data/commit/6d070af0f289fc18d23b7406ed23bc606ccc7e65)]:
|
|
15
|
+
- @adobe/spectrum-design-data@2.3.0
|
|
16
|
+
|
|
3
17
|
## 5.0.28
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -40,7 +40,6 @@ The package includes the following registries:
|
|
|
40
40
|
|
|
41
41
|
Platform-specific terminology extensions are available in `registry/platform-extensions/`:
|
|
42
42
|
|
|
43
|
-
* **ios-states.json** - iOS-specific state terminology (UIControl.State, etc.)
|
|
44
43
|
* **web-components-states.json** - Web Components state terminology (CSS pseudo-classes, etc.)
|
|
45
44
|
|
|
46
45
|
## Installation
|
|
@@ -219,14 +218,14 @@ import {
|
|
|
219
218
|
} from '@adobe/design-system-registry';
|
|
220
219
|
|
|
221
220
|
// Load platform extension
|
|
222
|
-
const
|
|
221
|
+
const webStates = loadPlatformExtension('./registry/platform-extensions/web-components-states.json');
|
|
223
222
|
|
|
224
223
|
// Get platform-specific term
|
|
225
|
-
const hoverTerm = getTermForPlatform(states, 'hover', '
|
|
224
|
+
const hoverTerm = getTermForPlatform(states, 'hover', 'Web Components', webStates);
|
|
226
225
|
|
|
227
|
-
console.log(hoverTerm.platform.term); // "
|
|
228
|
-
console.log(hoverTerm.platform.reference); // "
|
|
229
|
-
console.log(hoverTerm.platform.codeExample); // "
|
|
226
|
+
console.log(hoverTerm.platform.term); // "hover"
|
|
227
|
+
console.log(hoverTerm.platform.reference); // ":hover pseudo-class"
|
|
228
|
+
console.log(hoverTerm.platform.codeExample); // ":host(:hover) { ... }"
|
|
230
229
|
```
|
|
231
230
|
|
|
232
231
|
See [PLATFORM\_EXTENSIONS.md](PLATFORM_EXTENSIONS.md) for detailed documentation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/design-system-registry",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.30",
|
|
4
4
|
"description": "DEPRECATED — registry data and API have moved to @adobe/spectrum-design-data. This package is a thin compatibility shim.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"pnpm": ">=10.17.1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@adobe/spectrum-design-data": "2.
|
|
29
|
+
"@adobe/spectrum-design-data": "2.3.1"
|
|
30
30
|
}
|
|
31
31
|
}
|