@rathnasgala2/schemas 2.22.0 → 3.0.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.
Files changed (46) hide show
  1. package/THIRD_PARTY_LICENSES.json +3 -3
  2. package/diagnostics/diagnostic-map.json +706 -4
  3. package/docs/catalogs/schema-inventory.json +4 -4
  4. package/examples/valid/build-input/rules.json +50 -0
  5. package/examples/valid/publication/rules.json +48 -0
  6. package/examples/valid/theme-contract/canonical.json +355 -19
  7. package/examples/valid/theme-contract/default-3.0.json +660 -0
  8. package/examples/valid/theme-contract/rules.json +3456 -552
  9. package/fixtures/boundary/build-input/rules.json +55 -0
  10. package/fixtures/boundary/publication/rules.json +53 -0
  11. package/fixtures/boundary/theme-contract/root.json +355 -19
  12. package/fixtures/boundary/theme-contract/rules.json +4158 -1226
  13. package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +11 -0
  14. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +27 -0
  15. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +11 -0
  16. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +50 -0
  17. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +22 -0
  18. package/fixtures/invalid/publication/GRAPHEME_LENGTH_INVALID/cases.json +11 -0
  19. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +23 -0
  20. package/fixtures/invalid/publication/SCHEMA_ENUM_INVALID/cases.json +9 -0
  21. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +42 -0
  22. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +18 -0
  23. package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +421 -20
  24. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_LONG/cases.json +2 -2
  25. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_SHORT/cases.json +1 -1
  26. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +2155 -296
  27. package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +229 -9
  28. package/fixtures/invalid/theme-contract/SCHEMA_PATTERN_INVALID/cases.json +176 -0
  29. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +8812 -1517
  30. package/fixtures/invalid/theme-contract/SCHEMA_STRING_TOO_LONG/cases.json +22 -0
  31. package/fixtures/manifest.json +5543 -161
  32. package/fixtures/s2/manifest.json +1 -1
  33. package/fixtures/s2/theme-contracts-digest-cycle.json +888 -36
  34. package/fixtures/unknown-field/build-input/rules.json +35 -0
  35. package/fixtures/unknown-field/publication/rules.json +35 -0
  36. package/fixtures/unknown-field/theme-contract/root.json +355 -19
  37. package/fixtures/unknown-field/theme-contract/rules.json +637 -22
  38. package/generated/browser/validator-core.mjs +3 -3
  39. package/generated/typescript/contracts/build-input.d.ts +8 -0
  40. package/generated/typescript/contracts/publication.d.ts +12 -0
  41. package/generated/typescript/contracts/theme-contract.d.ts +529 -9
  42. package/package.json +1 -1
  43. package/sbom.cdx.json +23 -23
  44. package/schemas/build-input.schema.json +19 -0
  45. package/schemas/publication.schema.json +21 -0
  46. package/schemas/theme-contract.schema.json +1178 -83
@@ -16,25 +16,112 @@
16
16
  "cssLayers": ["gala-tokens", "gala-components", "gala-print"],
17
17
  "slotHooks": ["fixture-1"],
18
18
  "tokens": [
19
+ {
20
+ "key": "border-button",
21
+ "type": "border",
22
+ "light": "none",
23
+ "dark": "none"
24
+ },
25
+ {
26
+ "key": "border-card",
27
+ "type": "border",
28
+ "light": "none",
29
+ "dark": "none"
30
+ },
31
+ {
32
+ "key": "border-chip",
33
+ "type": "border",
34
+ "light": "none",
35
+ "dark": "none"
36
+ },
37
+ {
38
+ "key": "border-code",
39
+ "type": "border",
40
+ "light": "none",
41
+ "dark": "none"
42
+ },
43
+ {
44
+ "key": "border-media-divider",
45
+ "type": "border",
46
+ "light": "none",
47
+ "dark": "none"
48
+ },
49
+ {
50
+ "key": "border-quote",
51
+ "type": "border",
52
+ "light": "none",
53
+ "dark": "none"
54
+ },
55
+ {
56
+ "key": "border-row-divider",
57
+ "type": "border",
58
+ "light": "none",
59
+ "dark": "none"
60
+ },
61
+ {
62
+ "key": "border-section-rule",
63
+ "type": "border",
64
+ "light": "none",
65
+ "dark": "none"
66
+ },
19
67
  { "key": "border-width", "type": "length", "light": "0", "dark": "0" },
68
+ { "key": "card-inset", "type": "length", "light": "0", "dark": "0" },
69
+ { "key": "card-pad", "type": "box", "light": "0", "dark": "0" },
70
+ {
71
+ "key": "card-title-size",
72
+ "type": "length",
73
+ "light": "0",
74
+ "dark": "0"
75
+ },
76
+ { "key": "chip-pad", "type": "box", "light": "0", "dark": "0" },
20
77
  {
21
78
  "key": "color-accent",
22
79
  "type": "color",
23
80
  "light": "#000000",
24
81
  "dark": "#000000"
25
82
  },
83
+ {
84
+ "key": "color-accent-2",
85
+ "type": "color",
86
+ "light": "#000000",
87
+ "dark": "#000000"
88
+ },
26
89
  {
27
90
  "key": "color-border",
28
91
  "type": "color",
29
92
  "light": "#000000",
30
93
  "dark": "#000000"
31
94
  },
95
+ {
96
+ "key": "color-btn-panel",
97
+ "type": "color",
98
+ "light": "#000000",
99
+ "dark": "#000000"
100
+ },
101
+ {
102
+ "key": "color-btn-panel-text",
103
+ "type": "color",
104
+ "light": "#000000",
105
+ "dark": "#000000"
106
+ },
107
+ {
108
+ "key": "color-btn-text",
109
+ "type": "color",
110
+ "light": "#000000",
111
+ "dark": "#000000"
112
+ },
32
113
  {
33
114
  "key": "color-canvas",
34
115
  "type": "color",
35
116
  "light": "#000000",
36
117
  "dark": "#000000"
37
118
  },
119
+ {
120
+ "key": "color-chip-text",
121
+ "type": "color",
122
+ "light": "#000000",
123
+ "dark": "#000000"
124
+ },
38
125
  {
39
126
  "key": "color-code-canvas",
40
127
  "type": "color",
@@ -59,12 +146,54 @@
59
146
  "light": "#000000",
60
147
  "dark": "#000000"
61
148
  },
149
+ {
150
+ "key": "color-footer",
151
+ "type": "color",
152
+ "light": "#000000",
153
+ "dark": "#000000"
154
+ },
155
+ {
156
+ "key": "color-header",
157
+ "type": "color",
158
+ "light": "#000000",
159
+ "dark": "#000000"
160
+ },
161
+ {
162
+ "key": "color-icon-accent",
163
+ "type": "color",
164
+ "light": "#000000",
165
+ "dark": "#000000"
166
+ },
167
+ {
168
+ "key": "color-input",
169
+ "type": "color",
170
+ "light": "#000000",
171
+ "dark": "#000000"
172
+ },
173
+ {
174
+ "key": "color-input-border",
175
+ "type": "color",
176
+ "light": "#000000",
177
+ "dark": "#000000"
178
+ },
62
179
  {
63
180
  "key": "color-link",
64
181
  "type": "color",
65
182
  "light": "#000000",
66
183
  "dark": "#000000"
67
184
  },
185
+ {
186
+ "key": "color-link-underline",
187
+ "type": "color",
188
+ "light": "#000000",
189
+ "dark": "#000000"
190
+ },
191
+ {
192
+ "key": "color-link-underline-hover",
193
+ "type": "color",
194
+ "light": "#000000",
195
+ "dark": "#000000"
196
+ },
68
197
  {
69
198
  "key": "color-link-visited",
70
199
  "type": "color",
@@ -77,6 +206,24 @@
77
206
  "light": "#000000",
78
207
  "dark": "#000000"
79
208
  },
209
+ {
210
+ "key": "color-overlay",
211
+ "type": "color",
212
+ "light": "#000000",
213
+ "dark": "#000000"
214
+ },
215
+ {
216
+ "key": "color-panel-muted",
217
+ "type": "color",
218
+ "light": "#000000",
219
+ "dark": "#000000"
220
+ },
221
+ {
222
+ "key": "color-panel-text",
223
+ "type": "color",
224
+ "light": "#000000",
225
+ "dark": "#000000"
226
+ },
80
227
  {
81
228
  "key": "color-selection",
82
229
  "type": "color",
@@ -101,18 +248,66 @@
101
248
  "light": "#000000",
102
249
  "dark": "#000000"
103
250
  },
251
+ {
252
+ "key": "color-syntax-comment",
253
+ "type": "color",
254
+ "light": "#000000",
255
+ "dark": "#000000"
256
+ },
257
+ {
258
+ "key": "color-syntax-function",
259
+ "type": "color",
260
+ "light": "#000000",
261
+ "dark": "#000000"
262
+ },
263
+ {
264
+ "key": "color-syntax-keyword",
265
+ "type": "color",
266
+ "light": "#000000",
267
+ "dark": "#000000"
268
+ },
269
+ {
270
+ "key": "color-syntax-number",
271
+ "type": "color",
272
+ "light": "#000000",
273
+ "dark": "#000000"
274
+ },
275
+ {
276
+ "key": "color-syntax-string",
277
+ "type": "color",
278
+ "light": "#000000",
279
+ "dark": "#000000"
280
+ },
104
281
  {
105
282
  "key": "color-text",
106
283
  "type": "color",
107
284
  "light": "#000000",
108
285
  "dark": "#000000"
109
286
  },
287
+ {
288
+ "key": "color-text-faint",
289
+ "type": "color",
290
+ "light": "#000000",
291
+ "dark": "#000000"
292
+ },
110
293
  {
111
294
  "key": "color-text-muted",
112
295
  "type": "color",
113
296
  "light": "#000000",
114
297
  "dark": "#000000"
115
298
  },
299
+ {
300
+ "key": "color-toc-active",
301
+ "type": "color",
302
+ "light": "#000000",
303
+ "dark": "#000000"
304
+ },
305
+ {
306
+ "key": "color-toc-active-text",
307
+ "type": "color",
308
+ "light": "#000000",
309
+ "dark": "#000000"
310
+ },
116
311
  {
117
312
  "key": "color-warning",
118
313
  "type": "color",
@@ -125,27 +320,208 @@
125
320
  "light": "0",
126
321
  "dark": "0"
127
322
  },
323
+ {
324
+ "key": "decor-size",
325
+ "type": "keyword",
326
+ "light": "auto",
327
+ "dark": "auto"
328
+ },
329
+ { "key": "display-max", "type": "length", "light": "0", "dark": "0" },
330
+ {
331
+ "key": "display-style",
332
+ "type": "keyword",
333
+ "light": "normal",
334
+ "dark": "normal"
335
+ },
336
+ {
337
+ "key": "duration-base",
338
+ "type": "duration",
339
+ "light": "160ms",
340
+ "dark": "160ms"
341
+ },
342
+ {
343
+ "key": "duration-fast",
344
+ "type": "duration",
345
+ "light": "160ms",
346
+ "dark": "160ms"
347
+ },
348
+ {
349
+ "key": "duration-slow",
350
+ "type": "duration",
351
+ "light": "160ms",
352
+ "dark": "160ms"
353
+ },
354
+ {
355
+ "key": "ease-spring",
356
+ "type": "easing",
357
+ "light": "linear",
358
+ "dark": "linear"
359
+ },
360
+ {
361
+ "key": "ease-standard",
362
+ "type": "easing",
363
+ "light": "linear",
364
+ "dark": "linear"
365
+ },
128
366
  { "key": "focus-width", "type": "length", "light": "0", "dark": "0" },
129
367
  {
130
368
  "key": "font-body",
131
369
  "type": "font-family",
132
- "light": "fixture-21",
133
- "dark": "fixture-21"
370
+ "light": "fixture-64",
371
+ "dark": "fixture-64"
134
372
  },
135
373
  {
136
- "key": "font-heading",
374
+ "key": "font-display",
137
375
  "type": "font-family",
138
- "light": "fixture-22",
139
- "dark": "fixture-22"
376
+ "light": "fixture-65",
377
+ "dark": "fixture-65"
378
+ },
379
+ {
380
+ "key": "font-label",
381
+ "type": "font-family",
382
+ "light": "linear",
383
+ "dark": "linear"
140
384
  },
141
385
  {
142
386
  "key": "font-mono",
143
387
  "type": "font-family",
144
- "light": "fixture-23",
145
- "dark": "fixture-23"
388
+ "light": "fixture-67",
389
+ "dark": "fixture-67"
390
+ },
391
+ {
392
+ "key": "font-ui",
393
+ "type": "font-family",
394
+ "light": "fixture-68",
395
+ "dark": "fixture-68"
396
+ },
397
+ {
398
+ "key": "label-transform",
399
+ "type": "keyword",
400
+ "light": "none",
401
+ "dark": "none"
402
+ },
403
+ { "key": "lift-x", "type": "length", "light": "0", "dark": "0" },
404
+ { "key": "lift-y", "type": "length", "light": "0", "dark": "0" },
405
+ { "key": "link-offset", "type": "length", "light": "0", "dark": "0" },
406
+ {
407
+ "key": "link-offset-hover",
408
+ "type": "length",
409
+ "light": "0",
410
+ "dark": "0"
411
+ },
412
+ {
413
+ "key": "link-skip-ink",
414
+ "type": "keyword",
415
+ "light": "none",
416
+ "dark": "none"
417
+ },
418
+ {
419
+ "key": "link-thickness",
420
+ "type": "length",
421
+ "light": "0",
422
+ "dark": "0"
423
+ },
424
+ {
425
+ "key": "media-filter",
426
+ "type": "keyword",
427
+ "light": "grayscale(1)",
428
+ "dark": "grayscale(1)"
429
+ },
430
+ {
431
+ "key": "media-filter-hover",
432
+ "type": "keyword",
433
+ "light": "none",
434
+ "dark": "none"
435
+ },
436
+ { "key": "media-zoom", "type": "number", "light": "1", "dark": "1" },
437
+ {
438
+ "key": "paint-button",
439
+ "type": "paint",
440
+ "light": "#000000",
441
+ "dark": "#000000"
442
+ },
443
+ {
444
+ "key": "paint-chip",
445
+ "type": "paint",
446
+ "light": "#000000",
447
+ "dark": "#000000"
448
+ },
449
+ {
450
+ "key": "paint-page-decor",
451
+ "type": "paint",
452
+ "light": "none",
453
+ "dark": "none"
454
+ },
455
+ {
456
+ "key": "paint-panel",
457
+ "type": "paint",
458
+ "light": "none",
459
+ "dark": "none"
460
+ },
461
+ { "key": "prose-leading", "type": "number", "light": "1", "dark": "1" },
462
+ { "key": "prose-size", "type": "length", "light": "0", "dark": "0" },
463
+ {
464
+ "key": "quote-align",
465
+ "type": "keyword",
466
+ "light": "start",
467
+ "dark": "start"
468
+ },
469
+ {
470
+ "key": "quote-mark",
471
+ "type": "keyword",
472
+ "light": "open-quote",
473
+ "dark": "open-quote"
146
474
  },
475
+ { "key": "quote-pad", "type": "box", "light": "0", "dark": "0" },
476
+ {
477
+ "key": "quote-style",
478
+ "type": "keyword",
479
+ "light": "italic",
480
+ "dark": "italic"
481
+ },
482
+ {
483
+ "key": "quote-transform",
484
+ "type": "keyword",
485
+ "light": "none",
486
+ "dark": "none"
487
+ },
488
+ { "key": "radius-avatar", "type": "length", "light": "0", "dark": "0" },
489
+ { "key": "radius-large", "type": "length", "light": "0", "dark": "0" },
490
+ { "key": "radius-media", "type": "length", "light": "0", "dark": "0" },
147
491
  { "key": "radius-medium", "type": "length", "light": "0", "dark": "0" },
492
+ { "key": "radius-pill", "type": "length", "light": "0", "dark": "0" },
148
493
  { "key": "radius-small", "type": "length", "light": "0", "dark": "0" },
494
+ { "key": "row-pad", "type": "length", "light": "0", "dark": "0" },
495
+ {
496
+ "key": "shadow-avatar-ring",
497
+ "type": "shadow",
498
+ "light": "none",
499
+ "dark": "none"
500
+ },
501
+ {
502
+ "key": "shadow-button",
503
+ "type": "shadow",
504
+ "light": "none",
505
+ "dark": "none"
506
+ },
507
+ {
508
+ "key": "shadow-card",
509
+ "type": "shadow",
510
+ "light": "none",
511
+ "dark": "none"
512
+ },
513
+ {
514
+ "key": "shadow-card-hover",
515
+ "type": "shadow",
516
+ "light": "none",
517
+ "dark": "none"
518
+ },
519
+ {
520
+ "key": "shadow-dialog",
521
+ "type": "shadow",
522
+ "light": "none",
523
+ "dark": "none"
524
+ },
149
525
  { "key": "space-1", "type": "length", "light": "0", "dark": "0" },
150
526
  { "key": "space-2", "type": "length", "light": "0", "dark": "0" },
151
527
  { "key": "space-3", "type": "length", "light": "0", "dark": "0" },
@@ -153,29 +529,54 @@
153
529
  { "key": "space-6", "type": "length", "light": "0", "dark": "0" },
154
530
  { "key": "space-8", "type": "length", "light": "0", "dark": "0" },
155
531
  {
156
- "key": "weight-heading",
157
- "type": "font-weight",
158
- "light": "500",
159
- "dark": "500"
532
+ "key": "title-transform",
533
+ "type": "keyword",
534
+ "light": "uppercase",
535
+ "dark": "uppercase"
536
+ },
537
+ {
538
+ "key": "tracking-display",
539
+ "type": "length",
540
+ "light": "0",
541
+ "dark": "0"
542
+ },
543
+ {
544
+ "key": "tracking-label",
545
+ "type": "length",
546
+ "light": "0",
547
+ "dark": "0"
548
+ },
549
+ {
550
+ "key": "tracking-title",
551
+ "type": "length",
552
+ "light": "0",
553
+ "dark": "0"
160
554
  },
161
555
  {
162
- "key": "weight-medium",
556
+ "key": "weight-display",
163
557
  "type": "font-weight",
164
- "light": "600",
165
- "dark": "600"
558
+ "light": "1",
559
+ "dark": "1"
166
560
  },
167
561
  {
168
562
  "key": "weight-normal",
169
563
  "type": "font-weight",
170
- "light": "700",
171
- "dark": "700"
564
+ "light": "1",
565
+ "dark": "1"
172
566
  },
173
567
  {
174
568
  "key": "weight-strong",
175
569
  "type": "font-weight",
176
- "light": "800",
177
- "dark": "800"
178
- }
570
+ "light": "1",
571
+ "dark": "1"
572
+ },
573
+ {
574
+ "key": "weight-title",
575
+ "type": "font-weight",
576
+ "light": "1",
577
+ "dark": "1"
578
+ },
579
+ { "key": "weight-ui", "type": "font-weight", "light": "1", "dark": "1" }
179
580
  ],
180
581
  "modes": ["dark", "light", "system"],
181
582
  "assets": [
@@ -227,7 +628,7 @@
227
628
  "schemaPointer": "#/$defs/themeToken",
228
629
  "keyword": "additionalProperties",
229
630
  "instance": {
230
- "key": "border-width",
631
+ "key": "border-button",
231
632
  "type": "color",
232
633
  "light": "#000000",
233
634
  "dark": "#000000",
@@ -21,7 +21,7 @@
21
21
  "recipe": {
22
22
  "kind": "schema-array-count",
23
23
  "schemaPointer": "#/properties/tokens",
24
- "length": 36
24
+ "length": 117
25
25
  },
26
26
  "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
27
27
  },
@@ -60,7 +60,7 @@
60
60
  "recipe": {
61
61
  "kind": "schema-array-count",
62
62
  "schemaPointer": "#/properties/slotHooks",
63
- "length": 65
63
+ "length": 257
64
64
  },
65
65
  "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
66
66
  },
@@ -21,7 +21,7 @@
21
21
  "recipe": {
22
22
  "kind": "schema-array-count",
23
23
  "schemaPointer": "#/properties/tokens",
24
- "length": 34
24
+ "length": 115
25
25
  },
26
26
  "expectedCodes": ["SCHEMA_ARRAY_TOO_SHORT"]
27
27
  },