@o3r/style-dictionary 12.1.0-prerelease.82 → 12.1.0-prerelease.83

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": "@o3r/style-dictionary",
3
- "version": "12.1.0-prerelease.82",
3
+ "version": "12.1.0-prerelease.83",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -42,13 +42,13 @@
42
42
  "dependencies": {
43
43
  "@angular-devkit/architect": "~0.1902.0",
44
44
  "@angular-devkit/schematics": "~19.2.0",
45
- "@o3r/schematics": "^12.1.0-prerelease.82",
45
+ "@o3r/schematics": "^12.1.0-prerelease.83",
46
46
  "@schematics/angular": "~19.2.0",
47
47
  "tslib": "^2.6.2"
48
48
  },
49
49
  "peerDependencies": {
50
- "@o3r/core": "^12.1.0-prerelease.82",
51
- "@o3r/telemetry": "^12.1.0-prerelease.82",
50
+ "@o3r/core": "^12.1.0-prerelease.83",
51
+ "@o3r/telemetry": "^12.1.0-prerelease.83",
52
52
  "style-dictionary": "^4.3.2",
53
53
  "type-fest": "^4.30.1"
54
54
  },
@@ -82,12 +82,12 @@
82
82
  "@nx/eslint-plugin": "~20.4.0",
83
83
  "@nx/jest": "~20.4.0",
84
84
  "@nx/js": "~20.4.0",
85
- "@o3r/build-helpers": "^12.1.0-prerelease.82",
86
- "@o3r/core": "^12.1.0-prerelease.82",
87
- "@o3r/eslint-plugin": "^12.1.0-prerelease.82",
88
- "@o3r/schematics": "^12.1.0-prerelease.82",
89
- "@o3r/telemetry": "^12.1.0-prerelease.82",
90
- "@o3r/test-helpers": "^12.1.0-prerelease.82",
85
+ "@o3r/build-helpers": "^12.1.0-prerelease.83",
86
+ "@o3r/core": "^12.1.0-prerelease.83",
87
+ "@o3r/eslint-plugin": "^12.1.0-prerelease.83",
88
+ "@o3r/schematics": "^12.1.0-prerelease.83",
89
+ "@o3r/telemetry": "^12.1.0-prerelease.83",
90
+ "@o3r/test-helpers": "^12.1.0-prerelease.83",
91
91
  "@schematics/angular": "~19.2.0",
92
92
  "@stylistic/eslint-plugin": "~3.1.0",
93
93
  "@types/jest": "~29.5.2",
@@ -1,32 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "DesignTokenTemplateSchema",
4
- "description": "Schema Describing the structure of the Design Token template, to enhance a Design Token structure",
5
- "allOf": [
6
- {
7
- "$ref": "#/definitions/tokenTemplateGroup"
8
- }
9
- ],
10
- "definitions": {
11
- "tokenTemplateGroup": {
12
- "type": "object",
13
- "properties": {
14
- "$schema": {
15
- "type": "string"
16
- },
17
- "$description": {
18
- "type": "string"
19
- },
20
- "$extensions": {
21
- "$ref": "https://raw.githubusercontent.com/AmadeusITGroup/otter/main/packages/%40o3r/design/schemas/design-token.schema.json#/definitions/extensions"
22
- }
23
- },
24
- "patternProperties": {
25
- "^[^$.].*$": {
26
- "$ref": "#/definitions/tokenTemplateGroup"
27
- }
28
- },
29
- "additionalProperties": false
30
- }
31
- }
32
- }
@@ -1,709 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "DesignTokenSchema",
4
- "description": "Schema Describing the structure of the Design Token, this Schema is a temporary workaround and should be replaced by the one provided by Community-Group https://github.com/design-tokens/community-group",
5
- "allOf": [
6
- {
7
- "$ref": "#/definitions/tokenNode"
8
- }
9
- ],
10
- "definitions": {
11
- "tokenReference": {
12
- "type": "string",
13
- "pattern": "^\\{[^}]+\\}$"
14
- },
15
- "tokenNode": {
16
- "oneOf": [
17
- {
18
- "$ref": "#/definitions/tokenGroup"
19
- },
20
- {
21
- "$ref": "#/definitions/token"
22
- }
23
- ]
24
- },
25
- "otterExtensionMetadata": {
26
- "type": "object",
27
- "properties": {
28
- "tags": {
29
- "type": "array",
30
- "description": "List of tags associated to the variable",
31
- "items": { "type": "string" }
32
- },
33
- "label": {
34
- "type": "string",
35
- "description": "Label of the variable, it will be used to display the variable name in the CMS if specified"
36
- },
37
- "category": {
38
- "type": "string",
39
- "description": "Category of the variable"
40
- },
41
- "component": {
42
- "type": "object",
43
- "description": "Component reference if the variable is linked to one",
44
- "properties": {
45
- "library": {
46
- "type": "string",
47
- "description": "Name of the library containing the component"
48
- },
49
- "name": {
50
- "type": "string",
51
- "description": "Name of the component"
52
- }
53
- },
54
- "required": [
55
- "library",
56
- "name"
57
- ],
58
- "additionalProperties": false
59
- }
60
- }
61
- },
62
- "otterExtension": {
63
- "type": "object",
64
- "properties": {
65
- "o3rTargetFile": {
66
- "description": "Information regarding the path to file where the token requests to be generated",
67
- "type": "string"
68
- },
69
- "o3rPrivate": {
70
- "description": "Determine if the token is flagged as private",
71
- "type": "boolean",
72
- "default": false
73
- },
74
- "o3rImportant": {
75
- "description": "Determine if the token should be flagged as important when generated",
76
- "type": "boolean",
77
- "default": false
78
- },
79
- "o3rScope": {
80
- "description": "Scope to apply to the generated variable",
81
- "type": "string"
82
- },
83
- "o3rMetadata": {
84
- "description": "Additional information to provide to the metadata if generated",
85
- "$ref": "#/definitions/otterExtensionMetadata"
86
- },
87
- "o3rUnit": {
88
- "description": "Convert a numeric value from the specified unit to the new unit. It will add a unit to the token with type \"number\" for which the unit is not specified.\nIn case of complex type (such as shadow, transition, etc...), the unit will be applied to all numeric types in it.",
89
- "type": "string"
90
- },
91
- "o3rRatio": {
92
- "description": "Ratio to apply to previous value. The ratio will be applied only on token with \"number\" type or on the first numbers determined in \"string\" like types.\nIn case of complex type (such as shadow, transition, etc...), the ratio will be applied to all numeric types in it.",
93
- "type": "number"
94
- },
95
- "o3rExpectOverride": {
96
- "description": "Indicate that the token is expected to be overridden by external rules",
97
- "type": "boolean",
98
- "default": false
99
- },
100
- "o3rExplodeComplexTypes": {
101
- "description": "Explode a Token with complex type to generate variables for each field of the type definition",
102
- "type": "boolean",
103
- "default": false
104
- }
105
- }
106
- },
107
- "extensions": {
108
- "description": "Information to enhance generation",
109
- "allOf": [
110
- {
111
- "$ref": "#/definitions/otterExtension"
112
- }
113
- ]
114
- },
115
- "tokenGroup": {
116
- "type":"object",
117
- "properties": {
118
- "$schema": {
119
- "type": "string"
120
- },
121
- "$description": {
122
- "description": "Description for the token group",
123
- "type": "string"
124
- },
125
- "$extensions": {
126
- "$ref": "#/definitions/extensions"
127
- }
128
- },
129
- "patternProperties": {
130
- "^[^$].*$": {
131
- "$ref": "#/definitions/tokenNode"
132
- }
133
- },
134
- "additionalProperties": false
135
- },
136
- "token": {
137
- "allOf": [
138
- {
139
- "oneOf": [
140
- {"$ref": "#/definitions/tokenTypeImplicit"},
141
- {"$ref": "#/definitions/tokenTypeString"},
142
- {"$ref": "#/definitions/tokenTypeColor"},
143
- {"$ref": "#/definitions/tokenTypeDimension"},
144
- {"$ref": "#/definitions/tokenTypeFontFamily"},
145
- {"$ref": "#/definitions/tokenTypeDuration"},
146
- {"$ref": "#/definitions/tokenTypeCubicBezier"},
147
- {"$ref": "#/definitions/tokenTypeFontWeight"},
148
- {"$ref": "#/definitions/tokenTypeNumber"},
149
-
150
- {"$ref": "#/definitions/tokenTypeStrokeStyle"},
151
- {"$ref": "#/definitions/tokenTypeBorder"},
152
- {"$ref": "#/definitions/tokenTypeTransition"},
153
- {"$ref": "#/definitions/tokenTypeShadow"},
154
- {"$ref": "#/definitions/tokenTypeGradient"},
155
- {"$ref": "#/definitions/tokenTypeTypography"}
156
- ]
157
- },
158
- {
159
- "type": "object",
160
- "properties": {
161
- "$extensions": {
162
- "$ref": "#/definitions/extensions"
163
- },
164
- "$description": {
165
- "description": "Description for the token group",
166
- "type": "string"
167
- }
168
- }
169
- }
170
- ]
171
- },
172
-
173
- "tokenTypeString": {
174
- "type": "object",
175
- "required": [
176
- "$type",
177
- "$value"
178
- ],
179
- "properties": {
180
- "$value": {
181
- "type": "string"
182
- },
183
- "$type": {
184
- "const": "string",
185
- "type": "string"
186
- }
187
- }
188
- },
189
- "tokenTypeColor": {
190
- "type": "object",
191
- "required": [
192
- "$type",
193
- "$value"
194
- ],
195
- "properties": {
196
- "$value": {
197
- "type": "string"
198
- },
199
- "$type": {
200
- "const": "color",
201
- "type": "string"
202
- }
203
- }
204
- },
205
- "tokenTypeDimensionValue": {
206
- "type": "object",
207
- "required": [
208
- "unit",
209
- "value"
210
- ],
211
- "properties": {
212
- "value": {
213
- "type": "number"
214
- },
215
- "unit": {
216
- "type": "string"
217
- }
218
- }
219
- },
220
- "tokenTypeDimension": {
221
- "type": "object",
222
- "required": [
223
- "$type",
224
- "$value"
225
- ],
226
- "properties": {
227
- "$value": {
228
- "oneOf": [
229
- {
230
- "type": "string"
231
- },
232
- {
233
- "$ref": "#/definitions/tokenTypeDimensionValue"
234
- }
235
- ]
236
- },
237
- "$type": {
238
- "const": "dimension",
239
- "type": "string"
240
- }
241
- }
242
- },
243
- "tokenTypeFontFamily": {
244
- "allOf": [
245
- {
246
- "oneOf": [
247
- {
248
- "type": "object",
249
- "required": ["$value"],
250
- "properties": {
251
- "$value": {
252
- "type": "string"
253
- }
254
- }
255
- },
256
- {
257
- "type": "object",
258
- "required": ["primary"],
259
- "properties": {
260
- "primary": {
261
- "type": "object",
262
- "required": [
263
- "$value"
264
- ],
265
- "properties": {
266
- "$value": {
267
- "type": "string"
268
- }
269
- }
270
- },
271
- "secondary": {
272
- "type": "object",
273
- "required": [
274
- "$type"
275
- ],
276
- "properties": {
277
- "$value": {
278
- "type": "string"
279
- }
280
- }
281
- }
282
- }
283
- }
284
- ]
285
- },
286
- {
287
- "type": "object",
288
- "required": [
289
- "$type"
290
- ],
291
- "properties": {
292
- "$type": {
293
- "const": "fontFamily",
294
- "type": "string"
295
- }
296
- }
297
- }
298
- ]
299
- },
300
- "tokenTypeImplicit": {
301
- "type": "object",
302
- "required": [
303
- "$value"
304
- ],
305
- "properties": {
306
- "$value": {
307
- "type": "string",
308
- "pattern": "^.*\\{.*\\}.*$"
309
- },
310
- "$type": false
311
- }
312
- },
313
- "tokenTypeDuration": {
314
- "type": "object",
315
- "required": [
316
- "$type",
317
- "$value"
318
- ],
319
- "properties": {
320
- "$value": {
321
- "type": "number"
322
- },
323
- "$type": {
324
- "const": "duration",
325
- "type": "string"
326
- }
327
- }
328
- },
329
- "tokenTypeCubicBezierValue": {
330
- "type": "array",
331
- "minItems": 2,
332
- "maxItems": 4,
333
- "items": {
334
- "type": "number"
335
- }
336
- },
337
- "tokenTypeCubicBezier": {
338
- "type": "object",
339
- "required": [
340
- "$type",
341
- "$value"
342
- ],
343
- "properties": {
344
- "$value": {
345
- "$ref": "#/definitions/tokenTypeCubicBezierValue"
346
- },
347
- "$type": {
348
- "const": "cubicBezier",
349
- "type": "string"
350
- }
351
- }
352
- },
353
- "tokenTypeFontWeightValue": {
354
- "type": ["string", "number"]
355
- },
356
- "tokenTypeFontWeight": {
357
- "type": "object",
358
- "required": [
359
- "$type",
360
- "$value"
361
- ],
362
- "properties": {
363
- "$value": {
364
- "$ref": "#/definitions/tokenTypeFontWeightValue"
365
- },
366
- "$type": {
367
- "const": "fontWeight",
368
- "type": "string"
369
- }
370
- }
371
- },
372
- "tokenTypeNumber": {
373
- "type": "object",
374
- "required": [
375
- "$type",
376
- "$value"
377
- ],
378
- "properties": {
379
- "$value": {
380
- "type": "number"
381
- },
382
- "$type": {
383
- "const": "number",
384
- "type": "string"
385
- }
386
- }
387
- },
388
- "tokenTypeStrokeStyleValue": {
389
- "oneOf": [
390
- {
391
- "type": "string",
392
- "enum": [
393
- "solid",
394
- "dashed",
395
- "dotted",
396
- "double",
397
- "groove",
398
- "ridge",
399
- "outset",
400
- "inset"
401
- ]
402
- },
403
- {
404
- "type": "object",
405
- "properties": {
406
- "dashArray": {
407
- "type": "array",
408
- "minItems": 1,
409
- "maxItems": 4,
410
- "items": {
411
- "oneOf": [
412
- {
413
- "type": "string"
414
- },
415
- {
416
- "$ref": "#/definitions/tokenTypeDimensionValue"
417
- }
418
- ]
419
- }
420
- },
421
- "lineCap": {
422
- "type": "string",
423
- "enum": [
424
- "round",
425
- "butt",
426
- "square"
427
- ]
428
- }
429
- },
430
- "required": [
431
- "dashArray",
432
- "lineCap"
433
- ]
434
- }
435
- ]
436
- },
437
- "tokenTypeStrokeStyle": {
438
- "type": "object",
439
- "required": [
440
- "$type",
441
- "$value"
442
- ],
443
- "properties": {
444
- "$value": {
445
- "$ref": "#/definitions/tokenTypeStrokeStyleValue"
446
- },
447
- "$type": {
448
- "const": "strokeStyle",
449
- "type": "string"
450
- }
451
- }
452
- },
453
- "tokenTypeBorder": {
454
- "type": "object",
455
- "required": [
456
- "$type",
457
- "$value"
458
- ],
459
- "properties": {
460
- "$value": {
461
- "type": "object",
462
- "properties": {
463
- "color": { "type": "string" },
464
- "width": {
465
- "oneOf": [
466
- {
467
- "type": "string"
468
- },
469
- {
470
- "$ref": "#/definitions/tokenTypeDimensionValue"
471
- }
472
- ]
473
- },
474
- "style": {
475
- "oneOf": [
476
- { "$ref": "#/definitions/tokenTypeStrokeStyleValue" },
477
- { "$ref": "#/definitions/tokenReference" }
478
- ]
479
- }
480
- },
481
- "required": [
482
- "color",
483
- "width",
484
- "style"
485
- ]
486
- },
487
- "$type": {
488
- "const": "border",
489
- "type": "string"
490
- }
491
- }
492
- },
493
- "tokenTypeTransition": {
494
- "type": "object",
495
- "required": [
496
- "$type",
497
- "$value"
498
- ],
499
- "properties": {
500
- "$value": {
501
- "type": "object",
502
- "properties": {
503
- "duration": {
504
- "type": "string"
505
- },
506
- "delay": {
507
- "type": "string"
508
- },
509
- "timingFunction": {
510
- "allOf": [
511
- { "$ref": "#/definitions/tokenTypeCubicBezierValue" },
512
- { "type": "string" }
513
- ]
514
- }
515
- },
516
- "required": [
517
- "duration",
518
- "delay",
519
- "timingFunction"
520
- ]
521
- },
522
- "$type": {
523
- "const": "transition",
524
- "type": "string"
525
- }
526
- }
527
- },
528
- "tokenTypeShadowValue": {
529
- "type": "object",
530
- "properties": {
531
- "color": {
532
- "type": "string"
533
- },
534
- "offsetX": {
535
- "oneOf": [
536
- {
537
- "type": "string"
538
- },
539
- {
540
- "$ref": "#/definitions/tokenTypeDimensionValue"
541
- }
542
- ]
543
- },
544
- "offsetY": {
545
- "oneOf": [
546
- {
547
- "type": "string"
548
- },
549
- {
550
- "$ref": "#/definitions/tokenTypeDimensionValue"
551
- }
552
- ]
553
- },
554
- "blur": {
555
- "oneOf": [
556
- {
557
- "type": "string"
558
- },
559
- {
560
- "$ref": "#/definitions/tokenTypeDimensionValue"
561
- }
562
- ]
563
- },
564
- "spread": {
565
- "oneOf": [
566
- {
567
- "type": "string"
568
- },
569
- {
570
- "$ref": "#/definitions/tokenTypeDimensionValue"
571
- }
572
- ]
573
- },
574
- "inset": {
575
- "type": "boolean",
576
- "default": false
577
- }
578
- },
579
- "required": [
580
- "color",
581
- "offsetX",
582
- "offsetY",
583
- "blur",
584
- "spread"
585
- ]
586
- },
587
- "tokenTypeShadow": {
588
- "type": "object",
589
- "required": [
590
- "$type",
591
- "$value"
592
- ],
593
- "properties": {
594
- "$value": {
595
- "oneOf": [
596
- {
597
- "$ref": "#/definitions/tokenTypeShadowValue"
598
- },
599
- {
600
- "type": "array",
601
- "items": {
602
- "$ref": "#/definitions/tokenTypeShadowValue"
603
- }
604
- }
605
- ]
606
- },
607
- "$type": {
608
- "const": "shadow",
609
- "type": "string"
610
- }
611
- }
612
- },
613
- "tokenTypeGradientStop": {
614
- "type": "object",
615
- "properties": {
616
- "color": {
617
- "type": "string"
618
- },
619
- "position": {
620
- "oneOf": [
621
- {
622
- "type": "string"
623
- },
624
- {
625
- "type": "number",
626
- "maximum": 1,
627
- "minimum": 0
628
- }
629
- ]
630
- }
631
- },
632
- "required": [
633
- "color",
634
- "position"
635
- ]
636
- },
637
- "tokenTypeGradient": {
638
- "type": "object",
639
- "required": [
640
- "$type",
641
- "$value"
642
- ],
643
- "properties": {
644
- "$value": {
645
- "type": "object",
646
- "properties": {
647
- "type": {
648
- "default": "linear",
649
- "type": "string",
650
- "enum": [
651
- "linear",
652
- "radial",
653
- "conic"
654
- ]
655
- },
656
- "angle": {
657
- "type": ["string", "number"],
658
- "default": "0deg"
659
- },
660
- "stops": {
661
- "type": "array",
662
- "items": {
663
- "$ref": "#/definitions/tokenTypeGradientStop"
664
- }
665
- }
666
- }
667
- },
668
- "$type": {
669
- "const": "gradient",
670
- "type": "string"
671
- }
672
- }
673
- },
674
- "tokenTypeTypography": {
675
- "type": "object",
676
- "required": [
677
- "$type",
678
- "$value"
679
- ],
680
- "properties": {
681
- "$value": {
682
- "type": "object",
683
- "properties": {
684
- "fontFamily": { "type": "string" },
685
- "fontSize": { "type": "string" },
686
- "letterSpacing": { "type": "string" },
687
- "fontWeight": {
688
- "$ref": "#/definitions/tokenTypeFontWeightValue"
689
- },
690
- "lineHeight": {
691
- "type": ["string", "number"]
692
- }
693
- },
694
- "required": [
695
- "fontFamily",
696
- "fontSize",
697
- "letterSpacing",
698
- "fontWeight",
699
- "lineHeight"
700
- ]
701
- },
702
- "$type": {
703
- "const": "typography",
704
- "type": "string"
705
- }
706
- }
707
- }
708
- }
709
- }