@rathnasgala2/schemas 3.9.0 → 3.10.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 (45) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +255 -9
  3. package/docs/catalogs/schema-inventory.json +5 -5
  4. package/examples/valid/appearance/rules.json +105 -1
  5. package/examples/valid/build-input/rules.json +105 -1
  6. package/examples/valid/theme-contract/rules.json +276 -2
  7. package/fixtures/boundary/appearance/rules.json +105 -12
  8. package/fixtures/boundary/build-input/rules.json +105 -12
  9. package/fixtures/boundary/theme-contract/rules.json +386 -2
  10. package/fixtures/invalid/appearance/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  11. package/fixtures/invalid/appearance/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -13
  12. package/fixtures/invalid/appearance/SCHEMA_PATTERN_INVALID/cases.json +68 -0
  13. package/fixtures/invalid/appearance/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  14. package/fixtures/invalid/appearance/SCHEMA_TYPE_INVALID/cases.json +99 -0
  15. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  16. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +66 -0
  17. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  18. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +99 -0
  19. package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  20. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_LONG/cases.json +165 -0
  21. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +11 -11
  22. package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +88 -0
  23. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +93 -0
  24. package/fixtures/invalid/theme-contract/SCHEMA_TYPE_INVALID/cases.json +51 -0
  25. package/fixtures/manifest.json +1955 -35
  26. package/fixtures/unknown-field/appearance/rules.json +54 -1
  27. package/fixtures/unknown-field/build-input/rules.json +54 -1
  28. package/fixtures/unknown-field/theme-contract/rules.json +70 -1
  29. package/generated/browser/validator-core.mjs +3 -3
  30. package/generated/typescript/contracts/appearance.d.ts +14 -1
  31. package/generated/typescript/contracts/build-input.d.ts +14 -1
  32. package/generated/typescript/contracts/theme-contract.d.ts +51 -0
  33. package/openapi/http-catalog.json +2 -2
  34. package/openapi/openapi.yaml +56 -2
  35. package/package.json +10 -1
  36. package/parity/palette/golden-vectors.json +883 -0
  37. package/parity/palette/stress-corpus.json +521 -0
  38. package/parity/palette/theme-default.fixture.json +698 -0
  39. package/sbom.cdx.json +23 -23
  40. package/schemas/appearance.schema.json +30 -3
  41. package/schemas/build-input.schema.json +30 -3
  42. package/schemas/theme-contract.schema.json +185 -1
  43. package/src/palette.js +919 -0
  44. package/types/palette.d.ts +305 -0
  45. package/fixtures/invalid/build-input/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -15
@@ -80,6 +80,17 @@
80
80
  "keyword": "format",
81
81
  "instance": "@rathnasgala2/fixture-1@^2.0.0"
82
82
  },
83
+ {
84
+ "caseId": "appearance-boundary-24bf65041aad21aa",
85
+ "coveredRuleIds": [
86
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/dark:pattern",
87
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/dark:type"
88
+ ],
89
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
90
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/dark",
91
+ "keyword": "pattern",
92
+ "instance": "#000000"
93
+ },
83
94
  {
84
95
  "caseId": "appearance-boundary-2998608e713d981b",
85
96
  "coveredRuleIds": [
@@ -195,6 +206,17 @@
195
206
  "count": 32
196
207
  }
197
208
  },
209
+ {
210
+ "caseId": "appearance-boundary-4b9a9c6f625ab688",
211
+ "coveredRuleIds": [
212
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/light:pattern",
213
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/light:type"
214
+ ],
215
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
216
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/light",
217
+ "keyword": "pattern",
218
+ "instance": "#000000"
219
+ },
198
220
  {
199
221
  "caseId": "appearance-boundary-53bc88ae9f21bb5d",
200
222
  "coveredRuleIds": ["appearance:#/$defs/colorMode/properties/default:enum"],
@@ -203,6 +225,17 @@
203
225
  "keyword": "enum",
204
226
  "instance": "light"
205
227
  },
228
+ {
229
+ "caseId": "appearance-boundary-58f758ff72ff31a5",
230
+ "coveredRuleIds": [
231
+ "appearance:#/$defs/semanticTokens/properties/text/properties/dark:pattern",
232
+ "appearance:#/$defs/semanticTokens/properties/text/properties/dark:type"
233
+ ],
234
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
235
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/dark",
236
+ "keyword": "pattern",
237
+ "instance": "#000000"
238
+ },
206
239
  {
207
240
  "caseId": "appearance-boundary-5b5e96f439400c47",
208
241
  "coveredRuleIds": [
@@ -215,6 +248,19 @@
215
248
  "keyword": "format",
216
249
  "instance": "2026-09-13T12:00:00.000Z"
217
250
  },
251
+ {
252
+ "caseId": "appearance-boundary-5bc0e7f32d9bd543",
253
+ "coveredRuleIds": [
254
+ "appearance:#/$defs/semanticTokens/properties/text:additionalProperties",
255
+ "appearance:#/$defs/semanticTokens/properties/text:required:dark",
256
+ "appearance:#/$defs/semanticTokens/properties/text:required:light",
257
+ "appearance:#/$defs/semanticTokens/properties/text:type"
258
+ ],
259
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
260
+ "schemaPointer": "#/$defs/semanticTokens/properties/text",
261
+ "keyword": "additionalProperties",
262
+ "instance": { "light": "#000000", "dark": "#000000" }
263
+ },
218
264
  {
219
265
  "caseId": "appearance-boundary-5cabadd26dad2813",
220
266
  "coveredRuleIds": ["appearance:#/properties/schemaId:const"],
@@ -454,6 +500,17 @@
454
500
  "keyword": "type",
455
501
  "instance": false
456
502
  },
503
+ {
504
+ "caseId": "appearance-boundary-a5f5543c93fa0ef0",
505
+ "coveredRuleIds": [
506
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/light:pattern",
507
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/light:type"
508
+ ],
509
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
510
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/light",
511
+ "keyword": "pattern",
512
+ "instance": "#000000"
513
+ },
457
514
  {
458
515
  "caseId": "appearance-boundary-a9defb191b0db7c2",
459
516
  "coveredRuleIds": [
@@ -492,6 +549,17 @@
492
549
  "length": 3
493
550
  }
494
551
  },
552
+ {
553
+ "caseId": "appearance-boundary-ac832a2fd4123956",
554
+ "coveredRuleIds": [
555
+ "appearance:#/$defs/semanticTokens/properties/text/properties/light:pattern",
556
+ "appearance:#/$defs/semanticTokens/properties/text/properties/light:type"
557
+ ],
558
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
559
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/light",
560
+ "keyword": "pattern",
561
+ "instance": "#000000"
562
+ },
495
563
  {
496
564
  "caseId": "appearance-boundary-ae454e97b6666108",
497
565
  "coveredRuleIds": [
@@ -537,6 +605,19 @@
537
605
  "keyword": "format",
538
606
  "instance": "@rathnasgala2/fixture-1@2.0.0"
539
607
  },
608
+ {
609
+ "caseId": "appearance-boundary-b4a9e7b761e8db88",
610
+ "coveredRuleIds": [
611
+ "appearance:#/$defs/semanticTokens/properties/canvas:additionalProperties",
612
+ "appearance:#/$defs/semanticTokens/properties/canvas:required:dark",
613
+ "appearance:#/$defs/semanticTokens/properties/canvas:required:light",
614
+ "appearance:#/$defs/semanticTokens/properties/canvas:type"
615
+ ],
616
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
617
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas",
618
+ "keyword": "additionalProperties",
619
+ "instance": { "light": "#000000", "dark": "#000000" }
620
+ },
540
621
  {
541
622
  "caseId": "appearance-boundary-b6269d164287a172",
542
623
  "coveredRuleIds": [
@@ -659,6 +740,19 @@
659
740
  "keyword": "additionalProperties",
660
741
  "instance": {}
661
742
  },
743
+ {
744
+ "caseId": "appearance-boundary-cc9042a64444580d",
745
+ "coveredRuleIds": [
746
+ "appearance:#/$defs/semanticTokens/properties/accent:additionalProperties",
747
+ "appearance:#/$defs/semanticTokens/properties/accent:required:dark",
748
+ "appearance:#/$defs/semanticTokens/properties/accent:required:light",
749
+ "appearance:#/$defs/semanticTokens/properties/accent:type"
750
+ ],
751
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
752
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent",
753
+ "keyword": "additionalProperties",
754
+ "instance": { "light": "#000000", "dark": "#000000" }
755
+ },
662
756
  {
663
757
  "caseId": "appearance-boundary-d74f0c9e553e593e",
664
758
  "coveredRuleIds": [
@@ -707,6 +801,17 @@
707
801
  "keyword": "enum",
708
802
  "instance": "compact"
709
803
  },
804
+ {
805
+ "caseId": "appearance-boundary-edec991d984dee75",
806
+ "coveredRuleIds": [
807
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/dark:pattern",
808
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/dark:type"
809
+ ],
810
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
811
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/dark",
812
+ "keyword": "pattern",
813
+ "instance": "#000000"
814
+ },
710
815
  {
711
816
  "caseId": "appearance-boundary-f0f505c92729ddac",
712
817
  "coveredRuleIds": [
@@ -723,18 +828,6 @@
723
828
  "direction": "maximum"
724
829
  }
725
830
  },
726
- {
727
- "caseId": "appearance-boundary-f2509ab8b361c58c",
728
- "coveredRuleIds": ["appearance:#/$defs/semanticTokens:maxProperties"],
729
- "schemaId": "urn:gala:schema:appearance:2.0.0",
730
- "schemaPointer": "#/$defs/semanticTokens",
731
- "keyword": "maxProperties",
732
- "recipe": {
733
- "kind": "numbered-object",
734
- "schemaPointer": "#/$defs/semanticTokens",
735
- "count": 0
736
- }
737
- },
738
831
  {
739
832
  "caseId": "appearance-boundary-f2bff0b258c39925",
740
833
  "coveredRuleIds": [
@@ -692,6 +692,17 @@
692
692
  "keyword": "format",
693
693
  "instance": "@rathnasgala2/fixture-1@^2.0.0"
694
694
  },
695
+ {
696
+ "caseId": "build-input-boundary-24bf65041aad21aa",
697
+ "coveredRuleIds": [
698
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/dark:pattern",
699
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/dark:type"
700
+ ],
701
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
702
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/dark",
703
+ "keyword": "pattern",
704
+ "instance": "#000000"
705
+ },
695
706
  {
696
707
  "caseId": "build-input-boundary-2554507ba547b402",
697
708
  "coveredRuleIds": [
@@ -1482,6 +1493,17 @@
1482
1493
  "authorIds": ["019c0000-0000-7000-8000-000000000001"]
1483
1494
  }
1484
1495
  },
1496
+ {
1497
+ "caseId": "build-input-boundary-4b9a9c6f625ab688",
1498
+ "coveredRuleIds": [
1499
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/light:pattern",
1500
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/light:type"
1501
+ ],
1502
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1503
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/light",
1504
+ "keyword": "pattern",
1505
+ "instance": "#000000"
1506
+ },
1485
1507
  {
1486
1508
  "caseId": "build-input-boundary-4d6a56fe62287b0e",
1487
1509
  "coveredRuleIds": [
@@ -1588,6 +1610,17 @@
1588
1610
  "direction": "maximum"
1589
1611
  }
1590
1612
  },
1613
+ {
1614
+ "caseId": "build-input-boundary-58f758ff72ff31a5",
1615
+ "coveredRuleIds": [
1616
+ "build-input:#/$defs/semanticTokens/properties/text/properties/dark:pattern",
1617
+ "build-input:#/$defs/semanticTokens/properties/text/properties/dark:type"
1618
+ ],
1619
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1620
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/dark",
1621
+ "keyword": "pattern",
1622
+ "instance": "#000000"
1623
+ },
1591
1624
  {
1592
1625
  "caseId": "build-input-boundary-5b5e96f439400c47",
1593
1626
  "coveredRuleIds": [
@@ -1600,6 +1633,19 @@
1600
1633
  "keyword": "format",
1601
1634
  "instance": "2026-09-13T12:00:00.000Z"
1602
1635
  },
1636
+ {
1637
+ "caseId": "build-input-boundary-5bc0e7f32d9bd543",
1638
+ "coveredRuleIds": [
1639
+ "build-input:#/$defs/semanticTokens/properties/text:additionalProperties",
1640
+ "build-input:#/$defs/semanticTokens/properties/text:required:dark",
1641
+ "build-input:#/$defs/semanticTokens/properties/text:required:light",
1642
+ "build-input:#/$defs/semanticTokens/properties/text:type"
1643
+ ],
1644
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1645
+ "schemaPointer": "#/$defs/semanticTokens/properties/text",
1646
+ "keyword": "additionalProperties",
1647
+ "instance": { "light": "#000000", "dark": "#000000" }
1648
+ },
1603
1649
  {
1604
1650
  "caseId": "build-input-boundary-5c40fd3624829293",
1605
1651
  "coveredRuleIds": ["build-input:#/properties/content:type"],
@@ -2707,6 +2753,17 @@
2707
2753
  "direction": "maximum"
2708
2754
  }
2709
2755
  },
2756
+ {
2757
+ "caseId": "build-input-boundary-a5f5543c93fa0ef0",
2758
+ "coveredRuleIds": [
2759
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/light:pattern",
2760
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/light:type"
2761
+ ],
2762
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2763
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/light",
2764
+ "keyword": "pattern",
2765
+ "instance": "#000000"
2766
+ },
2710
2767
  {
2711
2768
  "caseId": "build-input-boundary-a73e91966f396954",
2712
2769
  "coveredRuleIds": [
@@ -2771,6 +2828,17 @@
2771
2828
  "length": 3
2772
2829
  }
2773
2830
  },
2831
+ {
2832
+ "caseId": "build-input-boundary-ac832a2fd4123956",
2833
+ "coveredRuleIds": [
2834
+ "build-input:#/$defs/semanticTokens/properties/text/properties/light:pattern",
2835
+ "build-input:#/$defs/semanticTokens/properties/text/properties/light:type"
2836
+ ],
2837
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2838
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/light",
2839
+ "keyword": "pattern",
2840
+ "instance": "#000000"
2841
+ },
2774
2842
  {
2775
2843
  "caseId": "build-input-boundary-acc0d4fc1d862159",
2776
2844
  "coveredRuleIds": [
@@ -2861,6 +2929,19 @@
2861
2929
  "keyword": "format",
2862
2930
  "instance": "@rathnasgala2/fixture-1@2.0.0"
2863
2931
  },
2932
+ {
2933
+ "caseId": "build-input-boundary-b4a9e7b761e8db88",
2934
+ "coveredRuleIds": [
2935
+ "build-input:#/$defs/semanticTokens/properties/canvas:additionalProperties",
2936
+ "build-input:#/$defs/semanticTokens/properties/canvas:required:dark",
2937
+ "build-input:#/$defs/semanticTokens/properties/canvas:required:light",
2938
+ "build-input:#/$defs/semanticTokens/properties/canvas:type"
2939
+ ],
2940
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2941
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas",
2942
+ "keyword": "additionalProperties",
2943
+ "instance": { "light": "#000000", "dark": "#000000" }
2944
+ },
2864
2945
  {
2865
2946
  "caseId": "build-input-boundary-b554e3797e8e5321",
2866
2947
  "coveredRuleIds": [
@@ -3196,6 +3277,19 @@
3196
3277
  "keyword": "type",
3197
3278
  "instance": ["019c0000-0000-7000-8000-000000000001"]
3198
3279
  },
3280
+ {
3281
+ "caseId": "build-input-boundary-cc9042a64444580d",
3282
+ "coveredRuleIds": [
3283
+ "build-input:#/$defs/semanticTokens/properties/accent:additionalProperties",
3284
+ "build-input:#/$defs/semanticTokens/properties/accent:required:dark",
3285
+ "build-input:#/$defs/semanticTokens/properties/accent:required:light",
3286
+ "build-input:#/$defs/semanticTokens/properties/accent:type"
3287
+ ],
3288
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3289
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent",
3290
+ "keyword": "additionalProperties",
3291
+ "instance": { "light": "#000000", "dark": "#000000" }
3292
+ },
3199
3293
  {
3200
3294
  "caseId": "build-input-boundary-ccdbb6f95b3a7852",
3201
3295
  "coveredRuleIds": [
@@ -3674,6 +3768,17 @@
3674
3768
  "keyword": "const",
3675
3769
  "instance": "urn:gala:schema:interactions-config:2.0.0"
3676
3770
  },
3771
+ {
3772
+ "caseId": "build-input-boundary-edec991d984dee75",
3773
+ "coveredRuleIds": [
3774
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/dark:pattern",
3775
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/dark:type"
3776
+ ],
3777
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3778
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/dark",
3779
+ "keyword": "pattern",
3780
+ "instance": "#000000"
3781
+ },
3677
3782
  {
3678
3783
  "caseId": "build-input-boundary-ee7585b9a9107522",
3679
3784
  "coveredRuleIds": [
@@ -3724,18 +3829,6 @@
3724
3829
  "keyword": "required",
3725
3830
  "instance": { "route": null }
3726
3831
  },
3727
- {
3728
- "caseId": "build-input-boundary-f2509ab8b361c58c",
3729
- "coveredRuleIds": ["build-input:#/$defs/semanticTokens:maxProperties"],
3730
- "schemaId": "urn:gala:schema:build-input:2.0.0",
3731
- "schemaPointer": "#/$defs/semanticTokens",
3732
- "keyword": "maxProperties",
3733
- "recipe": {
3734
- "kind": "numbered-object",
3735
- "schemaPointer": "#/$defs/semanticTokens",
3736
- "count": 0
3737
- }
3738
- },
3739
3832
  {
3740
3833
  "caseId": "build-input-boundary-f2bff0b258c39925",
3741
3834
  "coveredRuleIds": [