@rathnasgala2/schemas 3.9.0 → 3.11.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 (47) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +255 -9
  3. package/docs/catalogs/app-components.json +71 -1
  4. package/docs/catalogs/app-routes.json +27 -4
  5. package/docs/catalogs/schema-inventory.json +5 -5
  6. package/examples/valid/appearance/rules.json +105 -1
  7. package/examples/valid/build-input/rules.json +105 -1
  8. package/examples/valid/theme-contract/rules.json +276 -2
  9. package/fixtures/boundary/appearance/rules.json +105 -12
  10. package/fixtures/boundary/build-input/rules.json +105 -12
  11. package/fixtures/boundary/theme-contract/rules.json +386 -2
  12. package/fixtures/invalid/appearance/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  13. package/fixtures/invalid/appearance/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -13
  14. package/fixtures/invalid/appearance/SCHEMA_PATTERN_INVALID/cases.json +68 -0
  15. package/fixtures/invalid/appearance/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  16. package/fixtures/invalid/appearance/SCHEMA_TYPE_INVALID/cases.json +99 -0
  17. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  18. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +66 -0
  19. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  20. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +99 -0
  21. package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  22. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_LONG/cases.json +165 -0
  23. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +11 -11
  24. package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +88 -0
  25. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +93 -0
  26. package/fixtures/invalid/theme-contract/SCHEMA_TYPE_INVALID/cases.json +51 -0
  27. package/fixtures/manifest.json +1955 -35
  28. package/fixtures/unknown-field/appearance/rules.json +54 -1
  29. package/fixtures/unknown-field/build-input/rules.json +54 -1
  30. package/fixtures/unknown-field/theme-contract/rules.json +70 -1
  31. package/generated/browser/validator-core.mjs +3 -3
  32. package/generated/typescript/contracts/appearance.d.ts +14 -1
  33. package/generated/typescript/contracts/build-input.d.ts +14 -1
  34. package/generated/typescript/contracts/theme-contract.d.ts +51 -0
  35. package/openapi/http-catalog.json +38 -2
  36. package/openapi/openapi.yaml +598 -3
  37. package/package.json +10 -1
  38. package/parity/palette/golden-vectors.json +883 -0
  39. package/parity/palette/stress-corpus.json +521 -0
  40. package/parity/palette/theme-default.fixture.json +698 -0
  41. package/sbom.cdx.json +23 -23
  42. package/schemas/appearance.schema.json +30 -3
  43. package/schemas/build-input.schema.json +30 -3
  44. package/schemas/theme-contract.schema.json +185 -1
  45. package/src/palette.js +919 -0
  46. package/types/palette.d.ts +305 -0
  47. package/fixtures/invalid/build-input/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -15
@@ -265,6 +265,41 @@
265
265
  "keyword": "additionalProperties",
266
266
  "instance": { "showMadeWith": false }
267
267
  },
268
+ {
269
+ "caseId": "appearance-valid-6fd5337605d139e4",
270
+ "coveredRuleIds": [
271
+ "appearance:#/$defs/semanticTokens/properties/text/properties/dark:pattern",
272
+ "appearance:#/$defs/semanticTokens/properties/text/properties/dark:type"
273
+ ],
274
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
275
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/dark",
276
+ "keyword": "pattern",
277
+ "instance": "#000000"
278
+ },
279
+ {
280
+ "caseId": "appearance-valid-73a8bcee76b754e6",
281
+ "coveredRuleIds": [
282
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/dark:pattern",
283
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/dark:type"
284
+ ],
285
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
286
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/dark",
287
+ "keyword": "pattern",
288
+ "instance": "#000000"
289
+ },
290
+ {
291
+ "caseId": "appearance-valid-78e7a761eab25ca7",
292
+ "coveredRuleIds": [
293
+ "appearance:#/$defs/semanticTokens/properties/canvas:additionalProperties",
294
+ "appearance:#/$defs/semanticTokens/properties/canvas:required:dark",
295
+ "appearance:#/$defs/semanticTokens/properties/canvas:required:light",
296
+ "appearance:#/$defs/semanticTokens/properties/canvas:type"
297
+ ],
298
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
299
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas",
300
+ "keyword": "additionalProperties",
301
+ "instance": { "light": "#000000", "dark": "#000000" }
302
+ },
268
303
  {
269
304
  "caseId": "appearance-valid-7979c30784d09358",
270
305
  "coveredRuleIds": [
@@ -285,6 +320,17 @@
285
320
  "keyword": "const",
286
321
  "instance": "light"
287
322
  },
323
+ {
324
+ "caseId": "appearance-valid-7fd32edc12383e67",
325
+ "coveredRuleIds": [
326
+ "appearance:#/$defs/semanticTokens/properties/text/properties/light:pattern",
327
+ "appearance:#/$defs/semanticTokens/properties/text/properties/light:type"
328
+ ],
329
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
330
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/light",
331
+ "keyword": "pattern",
332
+ "instance": "#000000"
333
+ },
288
334
  {
289
335
  "caseId": "appearance-valid-81e47acb3276faad",
290
336
  "coveredRuleIds": [
@@ -376,6 +422,17 @@
376
422
  "keyword": "format",
377
423
  "instance": "**"
378
424
  },
425
+ {
426
+ "caseId": "appearance-valid-a5d34bfee1280079",
427
+ "coveredRuleIds": [
428
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/light:pattern",
429
+ "appearance:#/$defs/semanticTokens/properties/accent/properties/light:type"
430
+ ],
431
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
432
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/light",
433
+ "keyword": "pattern",
434
+ "instance": "#000000"
435
+ },
379
436
  {
380
437
  "caseId": "appearance-valid-a9b5a16426e7de30",
381
438
  "coveredRuleIds": [
@@ -386,6 +443,19 @@
386
443
  "keyword": "type",
387
444
  "instance": false
388
445
  },
446
+ {
447
+ "caseId": "appearance-valid-ace067b399cf0427",
448
+ "coveredRuleIds": [
449
+ "appearance:#/$defs/semanticTokens/properties/text:additionalProperties",
450
+ "appearance:#/$defs/semanticTokens/properties/text:required:dark",
451
+ "appearance:#/$defs/semanticTokens/properties/text:required:light",
452
+ "appearance:#/$defs/semanticTokens/properties/text:type"
453
+ ],
454
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
455
+ "schemaPointer": "#/$defs/semanticTokens/properties/text",
456
+ "keyword": "additionalProperties",
457
+ "instance": { "light": "#000000", "dark": "#000000" }
458
+ },
389
459
  {
390
460
  "caseId": "appearance-valid-b24bbede1ab69bed",
391
461
  "coveredRuleIds": [
@@ -446,6 +516,17 @@
446
516
  "keyword": "enum",
447
517
  "instance": "profile"
448
518
  },
519
+ {
520
+ "caseId": "appearance-valid-d063d490a6ea44d7",
521
+ "coveredRuleIds": [
522
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/dark:pattern",
523
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/dark:type"
524
+ ],
525
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
526
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/dark",
527
+ "keyword": "pattern",
528
+ "instance": "#000000"
529
+ },
449
530
  {
450
531
  "caseId": "appearance-valid-d8c8652dc1a8a4dc",
451
532
  "coveredRuleIds": [
@@ -459,6 +540,19 @@
459
540
  "keyword": "format",
460
541
  "instance": "@rathnasgala2/fixture-1@^2.0.0"
461
542
  },
543
+ {
544
+ "caseId": "appearance-valid-de3b662db45eefe2",
545
+ "coveredRuleIds": [
546
+ "appearance:#/$defs/semanticTokens/properties/accent:additionalProperties",
547
+ "appearance:#/$defs/semanticTokens/properties/accent:required:dark",
548
+ "appearance:#/$defs/semanticTokens/properties/accent:required:light",
549
+ "appearance:#/$defs/semanticTokens/properties/accent:type"
550
+ ],
551
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
552
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent",
553
+ "keyword": "additionalProperties",
554
+ "instance": { "light": "#000000", "dark": "#000000" }
555
+ },
462
556
  {
463
557
  "caseId": "appearance-valid-dee38565e23ad2bb",
464
558
  "coveredRuleIds": [
@@ -475,7 +569,6 @@
475
569
  "caseId": "appearance-valid-e01b29a6b0d28dc0",
476
570
  "coveredRuleIds": [
477
571
  "appearance:#/$defs/semanticTokens:additionalProperties",
478
- "appearance:#/$defs/semanticTokens:maxProperties",
479
572
  "appearance:#/$defs/semanticTokens:type"
480
573
  ],
481
574
  "schemaId": "urn:gala:schema:appearance:2.0.0",
@@ -542,5 +635,16 @@
542
635
  "schemaPointer": "#/$defs/bcp47",
543
636
  "keyword": "format",
544
637
  "instance": "en-US"
638
+ },
639
+ {
640
+ "caseId": "appearance-valid-fd97a2055a6f436d",
641
+ "coveredRuleIds": [
642
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/light:pattern",
643
+ "appearance:#/$defs/semanticTokens/properties/canvas/properties/light:type"
644
+ ],
645
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
646
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/light",
647
+ "keyword": "pattern",
648
+ "instance": "#000000"
545
649
  }
546
650
  ]
@@ -1619,6 +1619,17 @@
1619
1619
  "keyword": "additionalProperties",
1620
1620
  "instance": { "showMadeWith": false }
1621
1621
  },
1622
+ {
1623
+ "caseId": "build-input-valid-6fd5337605d139e4",
1624
+ "coveredRuleIds": [
1625
+ "build-input:#/$defs/semanticTokens/properties/text/properties/dark:pattern",
1626
+ "build-input:#/$defs/semanticTokens/properties/text/properties/dark:type"
1627
+ ],
1628
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1629
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/dark",
1630
+ "keyword": "pattern",
1631
+ "instance": "#000000"
1632
+ },
1622
1633
  {
1623
1634
  "caseId": "build-input-valid-7292f5fd7b716d08",
1624
1635
  "coveredRuleIds": [
@@ -1637,6 +1648,17 @@
1637
1648
  "keyword": "const",
1638
1649
  "instance": "like"
1639
1650
  },
1651
+ {
1652
+ "caseId": "build-input-valid-73a8bcee76b754e6",
1653
+ "coveredRuleIds": [
1654
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/dark:pattern",
1655
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/dark:type"
1656
+ ],
1657
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1658
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/dark",
1659
+ "keyword": "pattern",
1660
+ "instance": "#000000"
1661
+ },
1640
1662
  {
1641
1663
  "caseId": "build-input-valid-74061890596a952b",
1642
1664
  "coveredRuleIds": [
@@ -1688,6 +1710,19 @@
1688
1710
  "keyword": "const",
1689
1711
  "instance": "text/html"
1690
1712
  },
1713
+ {
1714
+ "caseId": "build-input-valid-78e7a761eab25ca7",
1715
+ "coveredRuleIds": [
1716
+ "build-input:#/$defs/semanticTokens/properties/canvas:additionalProperties",
1717
+ "build-input:#/$defs/semanticTokens/properties/canvas:required:dark",
1718
+ "build-input:#/$defs/semanticTokens/properties/canvas:required:light",
1719
+ "build-input:#/$defs/semanticTokens/properties/canvas:type"
1720
+ ],
1721
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1722
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas",
1723
+ "keyword": "additionalProperties",
1724
+ "instance": { "light": "#000000", "dark": "#000000" }
1725
+ },
1691
1726
  {
1692
1727
  "caseId": "build-input-valid-7979c30784d09358",
1693
1728
  "coveredRuleIds": [
@@ -1734,6 +1769,17 @@
1734
1769
  "keyword": "const",
1735
1770
  "instance": "light"
1736
1771
  },
1772
+ {
1773
+ "caseId": "build-input-valid-7fd32edc12383e67",
1774
+ "coveredRuleIds": [
1775
+ "build-input:#/$defs/semanticTokens/properties/text/properties/light:pattern",
1776
+ "build-input:#/$defs/semanticTokens/properties/text/properties/light:type"
1777
+ ],
1778
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1779
+ "schemaPointer": "#/$defs/semanticTokens/properties/text/properties/light",
1780
+ "keyword": "pattern",
1781
+ "instance": "#000000"
1782
+ },
1737
1783
  {
1738
1784
  "caseId": "build-input-valid-7fda9e8808193e3d",
1739
1785
  "coveredRuleIds": [
@@ -2049,6 +2095,17 @@
2049
2095
  "keyword": "required",
2050
2096
  "instance": { "type": "internal" }
2051
2097
  },
2098
+ {
2099
+ "caseId": "build-input-valid-a5d34bfee1280079",
2100
+ "coveredRuleIds": [
2101
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/light:pattern",
2102
+ "build-input:#/$defs/semanticTokens/properties/accent/properties/light:type"
2103
+ ],
2104
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2105
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent/properties/light",
2106
+ "keyword": "pattern",
2107
+ "instance": "#000000"
2108
+ },
2052
2109
  {
2053
2110
  "caseId": "build-input-valid-a863eab909e45385",
2054
2111
  "coveredRuleIds": [
@@ -2124,6 +2181,19 @@
2124
2181
  "keyword": "x-gala-graphemeLength",
2125
2182
  "instance": "fixture-1"
2126
2183
  },
2184
+ {
2185
+ "caseId": "build-input-valid-ace067b399cf0427",
2186
+ "coveredRuleIds": [
2187
+ "build-input:#/$defs/semanticTokens/properties/text:additionalProperties",
2188
+ "build-input:#/$defs/semanticTokens/properties/text:required:dark",
2189
+ "build-input:#/$defs/semanticTokens/properties/text:required:light",
2190
+ "build-input:#/$defs/semanticTokens/properties/text:type"
2191
+ ],
2192
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2193
+ "schemaPointer": "#/$defs/semanticTokens/properties/text",
2194
+ "keyword": "additionalProperties",
2195
+ "instance": { "light": "#000000", "dark": "#000000" }
2196
+ },
2127
2197
  {
2128
2198
  "caseId": "build-input-valid-ad3a9e70024dcd1c",
2129
2199
  "coveredRuleIds": [
@@ -2298,6 +2368,17 @@
2298
2368
  "keyword": "const",
2299
2369
  "instance": "emoji"
2300
2370
  },
2371
+ {
2372
+ "caseId": "build-input-valid-d063d490a6ea44d7",
2373
+ "coveredRuleIds": [
2374
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/dark:pattern",
2375
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/dark:type"
2376
+ ],
2377
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2378
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/dark",
2379
+ "keyword": "pattern",
2380
+ "instance": "#000000"
2381
+ },
2301
2382
  {
2302
2383
  "caseId": "build-input-valid-d3f6cc6ab7220249",
2303
2384
  "coveredRuleIds": ["build-input:#/$defs/normalizedSource:oneOf"],
@@ -2484,6 +2565,19 @@
2484
2565
  "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
2485
2566
  }
2486
2567
  },
2568
+ {
2569
+ "caseId": "build-input-valid-de3b662db45eefe2",
2570
+ "coveredRuleIds": [
2571
+ "build-input:#/$defs/semanticTokens/properties/accent:additionalProperties",
2572
+ "build-input:#/$defs/semanticTokens/properties/accent:required:dark",
2573
+ "build-input:#/$defs/semanticTokens/properties/accent:required:light",
2574
+ "build-input:#/$defs/semanticTokens/properties/accent:type"
2575
+ ],
2576
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2577
+ "schemaPointer": "#/$defs/semanticTokens/properties/accent",
2578
+ "keyword": "additionalProperties",
2579
+ "instance": { "light": "#000000", "dark": "#000000" }
2580
+ },
2487
2581
  {
2488
2582
  "caseId": "build-input-valid-de74efda4f10cb07",
2489
2583
  "coveredRuleIds": [
@@ -2508,7 +2602,6 @@
2508
2602
  "caseId": "build-input-valid-e01b29a6b0d28dc0",
2509
2603
  "coveredRuleIds": [
2510
2604
  "build-input:#/$defs/semanticTokens:additionalProperties",
2511
- "build-input:#/$defs/semanticTokens:maxProperties",
2512
2605
  "build-input:#/$defs/semanticTokens:type"
2513
2606
  ],
2514
2607
  "schemaId": "urn:gala:schema:build-input:2.0.0",
@@ -2994,5 +3087,16 @@
2994
3087
  }
2995
3088
  ]
2996
3089
  }
3090
+ },
3091
+ {
3092
+ "caseId": "build-input-valid-fd97a2055a6f436d",
3093
+ "coveredRuleIds": [
3094
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/light:pattern",
3095
+ "build-input:#/$defs/semanticTokens/properties/canvas/properties/light:type"
3096
+ ],
3097
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3098
+ "schemaPointer": "#/$defs/semanticTokens/properties/canvas/properties/light",
3099
+ "keyword": "pattern",
3100
+ "instance": "#000000"
2997
3101
  }
2998
3102
  ]