@ama-styling/style-dictionary 14.0.0-prerelease.30 → 14.0.0-prerelease.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ama-styling/style-dictionary",
3
- "version": "14.0.0-prerelease.30",
3
+ "version": "14.0.0-prerelease.32",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -41,14 +41,14 @@
41
41
  "dependencies": {
42
42
  "@angular-devkit/architect": "~0.2100.2",
43
43
  "@angular-devkit/schematics": "~21.0.2",
44
- "@o3r/schematics": "~14.0.0-prerelease.30",
44
+ "@o3r/schematics": "~14.0.0-prerelease.32",
45
45
  "@schematics/angular": "~21.0.2",
46
46
  "tslib": "^2.6.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "@o3r/core": "~14.0.0-prerelease.30",
50
- "@o3r/schematics": "~14.0.0-prerelease.30",
51
- "@o3r/telemetry": "~14.0.0-prerelease.30",
49
+ "@o3r/core": "~14.0.0-prerelease.32",
50
+ "@o3r/schematics": "~14.0.0-prerelease.32",
51
+ "@o3r/telemetry": "~14.0.0-prerelease.32",
52
52
  "style-dictionary": "^5.0.0",
53
53
  "type-fest": "^5.3.1"
54
54
  },
@@ -82,11 +82,11 @@
82
82
  "@nx/eslint-plugin": "~22.3.3",
83
83
  "@nx/jest": "~22.3.3",
84
84
  "@nx/js": "~22.3.3",
85
- "@o3r/build-helpers": "~14.0.0-prerelease.30",
86
- "@o3r/core": "~14.0.0-prerelease.30",
87
- "@o3r/eslint-plugin": "~14.0.0-prerelease.30",
88
- "@o3r/telemetry": "~14.0.0-prerelease.30",
89
- "@o3r/test-helpers": "~14.0.0-prerelease.30",
85
+ "@o3r/build-helpers": "~14.0.0-prerelease.32",
86
+ "@o3r/core": "~14.0.0-prerelease.32",
87
+ "@o3r/eslint-plugin": "~14.0.0-prerelease.32",
88
+ "@o3r/telemetry": "~14.0.0-prerelease.32",
89
+ "@o3r/test-helpers": "~14.0.0-prerelease.32",
90
90
  "@schematics/angular": "~21.0.2",
91
91
  "@stylistic/eslint-plugin": "~5.6.0",
92
92
  "@types/jest": "~30.0.0",
@@ -0,0 +1,104 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "StyleMetadataSchema",
4
+ "description": "Schema of Application style",
5
+ "type": "object",
6
+ "additionalItems": false,
7
+ "properties": {
8
+ "variables": {
9
+ "additionalProperties": {
10
+ "$ref": "#/definitions/StyleMetadataValueSchema"
11
+ }
12
+ }
13
+ },
14
+ "required": ["variables"],
15
+ "definitions": {
16
+ "StyleReferenceSchema": {
17
+ "type": "object",
18
+ "required": [
19
+ "name",
20
+ "defaultValue"
21
+ ],
22
+ "additionalItems": true,
23
+ "properties": {
24
+ "name": {
25
+ "type": "string",
26
+ "description": "Name of the variable referred in the parse value"
27
+ },
28
+ "defaultValue": {
29
+ "type": "string",
30
+ "description": "Default CSS value used"
31
+ }
32
+ }
33
+ },
34
+ "StyleMetadataComponentSchema": {
35
+ "type": "object",
36
+ "required": [
37
+ "library",
38
+ "name"
39
+ ],
40
+ "additionalItems": false,
41
+ "description": "Component reference if the variable is linked to one",
42
+ "properties": {
43
+ "library": {
44
+ "type": "string",
45
+ "description": "Name of the library containing the component"
46
+ },
47
+ "name": {
48
+ "type": "string",
49
+ "description": "Name of the component"
50
+ }
51
+ }
52
+ },
53
+ "StyleMetadataValueSchema": {
54
+ "type": "object",
55
+ "required": [
56
+ "defaultValue"
57
+ ],
58
+ "additionalItems": true,
59
+ "properties": {
60
+ "description": {
61
+ "type": "string",
62
+ "description": "Description of the variable"
63
+ },
64
+ "label": {
65
+ "type": "string",
66
+ "description": "Label of the variable, it will be used to display the variable name in the CMS if specified"
67
+ },
68
+ "type": {
69
+ "type": "string",
70
+ "description": "Type of the variable",
71
+ "enum": [
72
+ "string",
73
+ "color"
74
+ ]
75
+ },
76
+ "category": {
77
+ "type": "string",
78
+ "description": "Category of the variable"
79
+ },
80
+ "defaultValue": {
81
+ "type": "string",
82
+ "description": "Default value of CSS Value used"
83
+ },
84
+ "component": {
85
+ "$ref": "#/definitions/StyleMetadataComponentSchema"
86
+ },
87
+ "tags": {
88
+ "type": "array",
89
+ "description": "List of tags associated to the variable",
90
+ "items": {
91
+ "type": "string"
92
+ }
93
+ },
94
+ "references": {
95
+ "type": "array",
96
+ "description": "List of CSS variables used in the value expression",
97
+ "items": {
98
+ "$ref": "#/definitions/StyleReferenceSchema"
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }