@usefragments/core 1.5.2 → 1.7.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.
- package/dist/chunk-RANPUC6C.js +72 -0
- package/dist/chunk-RANPUC6C.js.map +1 -0
- package/dist/{chunk-BAHCOAVG.js → chunk-WNMWKUYG.js} +447 -201
- package/dist/chunk-WNMWKUYG.js.map +1 -0
- package/dist/codes/index.d.ts +2 -2
- package/dist/codes/index.js +1 -1
- package/dist/compiled-types/index.d.ts +1 -1
- package/dist/compiled-types/index.js +8 -0
- package/dist/generate/index.d.ts +1 -1
- package/dist/{governance-pKrfh517.d.ts → governance-D9KtH-vg.d.ts} +617 -22
- package/dist/index.d.ts +800 -179
- package/dist/index.js +1003 -237
- package/dist/index.js.map +1 -1
- package/dist/react-types.d.ts +1 -1
- package/dist/registry.d.ts +36 -36
- package/dist/schemas/index.d.ts +1 -1
- package/dist/test-utils.d.ts +1 -1
- package/package.json +2 -1
- package/src/__tests__/policy-exclude.test.ts +180 -0
- package/src/agent-format.test.ts +13 -0
- package/src/agent-format.ts +9 -3
- package/src/canonical-bridge.ts +69 -1
- package/src/canonical-direction.test.ts +118 -0
- package/src/canonical-direction.ts +43 -2
- package/src/codes/__tests__/codes.test.ts +14 -2
- package/src/codes/codes.ts +41 -2
- package/src/compiled-types/index.ts +81 -0
- package/src/compiled-types/parse.test.ts +47 -0
- package/src/facts/builders.ts +48 -0
- package/src/facts/compile.ts +148 -34
- package/src/facts/fact-index.ts +15 -2
- package/src/facts/facts.test.ts +44 -3
- package/src/facts/index.ts +11 -6
- package/src/facts/types.ts +60 -9
- package/src/governance-integrity.test.ts +272 -4
- package/src/governance-integrity.ts +345 -25
- package/src/governance.ts +87 -1
- package/src/index.ts +46 -1
- package/src/policy-exclude.ts +113 -0
- package/src/rules/a11y-required-accessible-name.ts +175 -28
- package/src/rules/a11y-standard.ts +102 -0
- package/src/rules/a11y-utils.ts +7 -0
- package/src/rules/components-prefer-library.test.ts +75 -28
- package/src/rules/components-prefer-library.ts +35 -15
- package/src/rules/components-shadow-component.test.ts +21 -9
- package/src/rules/emit-gate.test.ts +74 -4
- package/src/rules/emit-gate.ts +24 -9
- package/src/rules/families.test.ts +69 -0
- package/src/rules/families.ts +52 -0
- package/src/rules/fix-availability.ts +1 -0
- package/src/rules/index.ts +18 -2
- package/src/rules/jsx-preferred-import-path.ts +29 -11
- package/src/rules/rules.test.ts +188 -8
- package/src/rules/styles-no-raw-color.ts +13 -4
- package/src/rules/styles-no-raw-dimensions.ts +13 -4
- package/src/rules/styles-no-raw-spacing.ts +12 -4
- package/src/rules/styles-no-raw-typography.ts +13 -4
- package/src/rules/tiers.ts +1 -0
- package/src/rules/utils.ts +39 -0
- package/src/tokens/design-token-parser.test.ts +131 -0
- package/src/tokens/design-token-parser.ts +362 -49
- package/src/types.ts +2 -2
- package/dist/chunk-BAHCOAVG.js.map +0 -1
- package/dist/{index-DbkPE46t.d.ts → index-hZAlYCli.d.ts} +8 -8
|
@@ -456,6 +456,12 @@ interface CompiledFragmentsFile {
|
|
|
456
456
|
/** @deprecated Use blocks instead */
|
|
457
457
|
recipes?: Record<string, CompiledBlock>;
|
|
458
458
|
}
|
|
459
|
+
declare class CompiledFragmentsFileValidationError extends Error {
|
|
460
|
+
readonly source: string;
|
|
461
|
+
readonly issues: string[];
|
|
462
|
+
constructor(source: string, issues: string[]);
|
|
463
|
+
}
|
|
464
|
+
declare function parseCompiledFragmentsFile(input: string | unknown, source?: string): CompiledFragmentsFile;
|
|
459
465
|
/**
|
|
460
466
|
* Theme identifier
|
|
461
467
|
*/
|
|
@@ -1181,7 +1187,7 @@ type Theme = "light" | "dark";
|
|
|
1181
1187
|
*/
|
|
1182
1188
|
interface Screenshot {
|
|
1183
1189
|
/** PNG image data */
|
|
1184
|
-
data:
|
|
1190
|
+
data: Uint8Array;
|
|
1185
1191
|
/** SHA-256 hash of image data (for change detection) */
|
|
1186
1192
|
hash: string;
|
|
1187
1193
|
/** Viewport used for capture */
|
|
@@ -1219,7 +1225,7 @@ interface DiffResult {
|
|
|
1219
1225
|
/** Total pixels compared */
|
|
1220
1226
|
totalPixels: number;
|
|
1221
1227
|
/** PNG image highlighting differences */
|
|
1222
|
-
diffImage?:
|
|
1228
|
+
diffImage?: Uint8Array;
|
|
1223
1229
|
/** Bounding boxes of changed regions */
|
|
1224
1230
|
changedRegions: BoundingBox[];
|
|
1225
1231
|
/** Time taken to compute diff (ms) */
|
|
@@ -1364,89 +1370,215 @@ declare const globalStyleGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
1364
1370
|
except: z.ZodArray<z.ZodString, "many">;
|
|
1365
1371
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1366
1372
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1373
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1374
|
+
glob: z.ZodString;
|
|
1375
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
}, "strip", z.ZodTypeAny, {
|
|
1377
|
+
glob: string;
|
|
1378
|
+
reason?: string | undefined;
|
|
1379
|
+
}, {
|
|
1380
|
+
glob: string;
|
|
1381
|
+
reason?: string | undefined;
|
|
1382
|
+
}>]>, "many">>;
|
|
1367
1383
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1384
|
kind: "style.rawColors.forbid";
|
|
1369
1385
|
severity: "error" | "info" | "warn";
|
|
1370
1386
|
except: string[];
|
|
1371
1387
|
prefer: "token" | "css-variable";
|
|
1388
|
+
exclude?: (string | {
|
|
1389
|
+
glob: string;
|
|
1390
|
+
reason?: string | undefined;
|
|
1391
|
+
})[] | undefined;
|
|
1372
1392
|
}, {
|
|
1373
1393
|
kind: "style.rawColors.forbid";
|
|
1374
1394
|
severity: "error" | "info" | "warn";
|
|
1375
1395
|
except: string[];
|
|
1376
1396
|
prefer: "token" | "css-variable";
|
|
1397
|
+
exclude?: (string | {
|
|
1398
|
+
glob: string;
|
|
1399
|
+
reason?: string | undefined;
|
|
1400
|
+
})[] | undefined;
|
|
1377
1401
|
}>, z.ZodObject<{
|
|
1378
1402
|
kind: z.ZodLiteral<"style.rawDimensions.forbid">;
|
|
1379
1403
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1380
1404
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1381
1405
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1406
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1407
|
+
glob: z.ZodString;
|
|
1408
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
}, "strip", z.ZodTypeAny, {
|
|
1410
|
+
glob: string;
|
|
1411
|
+
reason?: string | undefined;
|
|
1412
|
+
}, {
|
|
1413
|
+
glob: string;
|
|
1414
|
+
reason?: string | undefined;
|
|
1415
|
+
}>]>, "many">>;
|
|
1382
1416
|
}, "strip", z.ZodTypeAny, {
|
|
1383
1417
|
kind: "style.rawDimensions.forbid";
|
|
1384
1418
|
severity: "error" | "info" | "warn";
|
|
1385
1419
|
prefer: "token" | "css-variable";
|
|
1386
1420
|
appliesTo: string[];
|
|
1421
|
+
exclude?: (string | {
|
|
1422
|
+
glob: string;
|
|
1423
|
+
reason?: string | undefined;
|
|
1424
|
+
})[] | undefined;
|
|
1387
1425
|
}, {
|
|
1388
1426
|
kind: "style.rawDimensions.forbid";
|
|
1389
1427
|
severity: "error" | "info" | "warn";
|
|
1390
1428
|
prefer: "token" | "css-variable";
|
|
1391
1429
|
appliesTo: string[];
|
|
1430
|
+
exclude?: (string | {
|
|
1431
|
+
glob: string;
|
|
1432
|
+
reason?: string | undefined;
|
|
1433
|
+
})[] | undefined;
|
|
1392
1434
|
}>, z.ZodObject<{
|
|
1393
1435
|
kind: z.ZodLiteral<"style.rawSpacing.mustMatchScale">;
|
|
1394
1436
|
scale: z.ZodString;
|
|
1395
1437
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1396
1438
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1439
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1440
|
+
glob: z.ZodString;
|
|
1441
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
}, "strip", z.ZodTypeAny, {
|
|
1443
|
+
glob: string;
|
|
1444
|
+
reason?: string | undefined;
|
|
1445
|
+
}, {
|
|
1446
|
+
glob: string;
|
|
1447
|
+
reason?: string | undefined;
|
|
1448
|
+
}>]>, "many">>;
|
|
1397
1449
|
}, "strip", z.ZodTypeAny, {
|
|
1398
1450
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1399
1451
|
severity: "error" | "info" | "warn";
|
|
1400
1452
|
scale: string;
|
|
1401
1453
|
appliesTo: string[];
|
|
1454
|
+
exclude?: (string | {
|
|
1455
|
+
glob: string;
|
|
1456
|
+
reason?: string | undefined;
|
|
1457
|
+
})[] | undefined;
|
|
1402
1458
|
}, {
|
|
1403
1459
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1404
1460
|
severity: "error" | "info" | "warn";
|
|
1405
1461
|
scale: string;
|
|
1406
1462
|
appliesTo: string[];
|
|
1463
|
+
exclude?: (string | {
|
|
1464
|
+
glob: string;
|
|
1465
|
+
reason?: string | undefined;
|
|
1466
|
+
})[] | undefined;
|
|
1407
1467
|
}>, z.ZodObject<{
|
|
1408
1468
|
kind: z.ZodLiteral<"style.fontSize.mustMatchScale">;
|
|
1409
1469
|
scale: z.ZodString;
|
|
1410
1470
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1471
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1472
|
+
glob: z.ZodString;
|
|
1473
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1474
|
+
}, "strip", z.ZodTypeAny, {
|
|
1475
|
+
glob: string;
|
|
1476
|
+
reason?: string | undefined;
|
|
1477
|
+
}, {
|
|
1478
|
+
glob: string;
|
|
1479
|
+
reason?: string | undefined;
|
|
1480
|
+
}>]>, "many">>;
|
|
1411
1481
|
}, "strip", z.ZodTypeAny, {
|
|
1412
1482
|
kind: "style.fontSize.mustMatchScale";
|
|
1413
1483
|
severity: "error" | "info" | "warn";
|
|
1414
1484
|
scale: string;
|
|
1485
|
+
exclude?: (string | {
|
|
1486
|
+
glob: string;
|
|
1487
|
+
reason?: string | undefined;
|
|
1488
|
+
})[] | undefined;
|
|
1415
1489
|
}, {
|
|
1416
1490
|
kind: "style.fontSize.mustMatchScale";
|
|
1417
1491
|
severity: "error" | "info" | "warn";
|
|
1418
1492
|
scale: string;
|
|
1493
|
+
exclude?: (string | {
|
|
1494
|
+
glob: string;
|
|
1495
|
+
reason?: string | undefined;
|
|
1496
|
+
})[] | undefined;
|
|
1419
1497
|
}>, z.ZodObject<{
|
|
1420
1498
|
kind: z.ZodLiteral<"style.cssVars.mustBeDefined">;
|
|
1421
1499
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1500
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1501
|
+
glob: z.ZodString;
|
|
1502
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1503
|
+
}, "strip", z.ZodTypeAny, {
|
|
1504
|
+
glob: string;
|
|
1505
|
+
reason?: string | undefined;
|
|
1506
|
+
}, {
|
|
1507
|
+
glob: string;
|
|
1508
|
+
reason?: string | undefined;
|
|
1509
|
+
}>]>, "many">>;
|
|
1422
1510
|
}, "strip", z.ZodTypeAny, {
|
|
1423
1511
|
kind: "style.cssVars.mustBeDefined";
|
|
1424
1512
|
severity: "error" | "info" | "warn";
|
|
1513
|
+
exclude?: (string | {
|
|
1514
|
+
glob: string;
|
|
1515
|
+
reason?: string | undefined;
|
|
1516
|
+
})[] | undefined;
|
|
1425
1517
|
}, {
|
|
1426
1518
|
kind: "style.cssVars.mustBeDefined";
|
|
1427
1519
|
severity: "error" | "info" | "warn";
|
|
1520
|
+
exclude?: (string | {
|
|
1521
|
+
glob: string;
|
|
1522
|
+
reason?: string | undefined;
|
|
1523
|
+
})[] | undefined;
|
|
1428
1524
|
}>]>;
|
|
1429
1525
|
declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1430
1526
|
kind: z.ZodLiteral<"jsx.unknownProps.forbid">;
|
|
1431
1527
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1528
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1529
|
+
glob: z.ZodString;
|
|
1530
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
}, "strip", z.ZodTypeAny, {
|
|
1532
|
+
glob: string;
|
|
1533
|
+
reason?: string | undefined;
|
|
1534
|
+
}, {
|
|
1535
|
+
glob: string;
|
|
1536
|
+
reason?: string | undefined;
|
|
1537
|
+
}>]>, "many">>;
|
|
1432
1538
|
}, "strip", z.ZodTypeAny, {
|
|
1433
1539
|
kind: "jsx.unknownProps.forbid";
|
|
1434
1540
|
severity: "error" | "info" | "warn";
|
|
1541
|
+
exclude?: (string | {
|
|
1542
|
+
glob: string;
|
|
1543
|
+
reason?: string | undefined;
|
|
1544
|
+
})[] | undefined;
|
|
1435
1545
|
}, {
|
|
1436
1546
|
kind: "jsx.unknownProps.forbid";
|
|
1437
1547
|
severity: "error" | "info" | "warn";
|
|
1548
|
+
exclude?: (string | {
|
|
1549
|
+
glob: string;
|
|
1550
|
+
reason?: string | undefined;
|
|
1551
|
+
})[] | undefined;
|
|
1438
1552
|
}>, z.ZodObject<{
|
|
1439
1553
|
kind: z.ZodLiteral<"jsx.inlineStyle.forbidRaw">;
|
|
1440
1554
|
properties: z.ZodArray<z.ZodString, "many">;
|
|
1441
1555
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1556
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1557
|
+
glob: z.ZodString;
|
|
1558
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1559
|
+
}, "strip", z.ZodTypeAny, {
|
|
1560
|
+
glob: string;
|
|
1561
|
+
reason?: string | undefined;
|
|
1562
|
+
}, {
|
|
1563
|
+
glob: string;
|
|
1564
|
+
reason?: string | undefined;
|
|
1565
|
+
}>]>, "many">>;
|
|
1442
1566
|
}, "strip", z.ZodTypeAny, {
|
|
1443
1567
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1444
1568
|
severity: "error" | "info" | "warn";
|
|
1445
1569
|
properties: string[];
|
|
1570
|
+
exclude?: (string | {
|
|
1571
|
+
glob: string;
|
|
1572
|
+
reason?: string | undefined;
|
|
1573
|
+
})[] | undefined;
|
|
1446
1574
|
}, {
|
|
1447
1575
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1448
1576
|
severity: "error" | "info" | "warn";
|
|
1449
1577
|
properties: string[];
|
|
1578
|
+
exclude?: (string | {
|
|
1579
|
+
glob: string;
|
|
1580
|
+
reason?: string | undefined;
|
|
1581
|
+
})[] | undefined;
|
|
1450
1582
|
}>, z.ZodObject<{
|
|
1451
1583
|
kind: z.ZodLiteral<"jsx.importPath.prefer">;
|
|
1452
1584
|
from: z.ZodString;
|
|
@@ -1454,11 +1586,25 @@ declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
1454
1586
|
imported: z.ZodOptional<z.ZodString>;
|
|
1455
1587
|
because: z.ZodOptional<z.ZodString>;
|
|
1456
1588
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1589
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1590
|
+
glob: z.ZodString;
|
|
1591
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
}, "strip", z.ZodTypeAny, {
|
|
1593
|
+
glob: string;
|
|
1594
|
+
reason?: string | undefined;
|
|
1595
|
+
}, {
|
|
1596
|
+
glob: string;
|
|
1597
|
+
reason?: string | undefined;
|
|
1598
|
+
}>]>, "many">>;
|
|
1457
1599
|
}, "strip", z.ZodTypeAny, {
|
|
1458
1600
|
kind: "jsx.importPath.prefer";
|
|
1459
1601
|
from: string;
|
|
1460
1602
|
to: string;
|
|
1461
1603
|
severity: "error" | "info" | "warn";
|
|
1604
|
+
exclude?: (string | {
|
|
1605
|
+
glob: string;
|
|
1606
|
+
reason?: string | undefined;
|
|
1607
|
+
})[] | undefined;
|
|
1462
1608
|
imported?: string | undefined;
|
|
1463
1609
|
because?: string | undefined;
|
|
1464
1610
|
}, {
|
|
@@ -1466,6 +1612,10 @@ declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
1466
1612
|
from: string;
|
|
1467
1613
|
to: string;
|
|
1468
1614
|
severity: "error" | "info" | "warn";
|
|
1615
|
+
exclude?: (string | {
|
|
1616
|
+
glob: string;
|
|
1617
|
+
reason?: string | undefined;
|
|
1618
|
+
})[] | undefined;
|
|
1469
1619
|
imported?: string | undefined;
|
|
1470
1620
|
because?: string | undefined;
|
|
1471
1621
|
}>, z.ZodObject<{
|
|
@@ -1474,17 +1624,35 @@ declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
1474
1624
|
to: z.ZodString;
|
|
1475
1625
|
because: z.ZodOptional<z.ZodString>;
|
|
1476
1626
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1627
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1628
|
+
glob: z.ZodString;
|
|
1629
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1630
|
+
}, "strip", z.ZodTypeAny, {
|
|
1631
|
+
glob: string;
|
|
1632
|
+
reason?: string | undefined;
|
|
1633
|
+
}, {
|
|
1634
|
+
glob: string;
|
|
1635
|
+
reason?: string | undefined;
|
|
1636
|
+
}>]>, "many">>;
|
|
1477
1637
|
}, "strip", z.ZodTypeAny, {
|
|
1478
1638
|
kind: "jsx.component.prefer";
|
|
1479
1639
|
from: string;
|
|
1480
1640
|
to: string;
|
|
1481
1641
|
severity: "error" | "info" | "warn";
|
|
1642
|
+
exclude?: (string | {
|
|
1643
|
+
glob: string;
|
|
1644
|
+
reason?: string | undefined;
|
|
1645
|
+
})[] | undefined;
|
|
1482
1646
|
because?: string | undefined;
|
|
1483
1647
|
}, {
|
|
1484
1648
|
kind: "jsx.component.prefer";
|
|
1485
1649
|
from: string;
|
|
1486
1650
|
to: string;
|
|
1487
1651
|
severity: "error" | "info" | "warn";
|
|
1652
|
+
exclude?: (string | {
|
|
1653
|
+
glob: string;
|
|
1654
|
+
reason?: string | undefined;
|
|
1655
|
+
})[] | undefined;
|
|
1488
1656
|
because?: string | undefined;
|
|
1489
1657
|
}>]>;
|
|
1490
1658
|
declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -1513,88 +1681,214 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1513
1681
|
except: z.ZodArray<z.ZodString, "many">;
|
|
1514
1682
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1515
1683
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1684
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1685
|
+
glob: z.ZodString;
|
|
1686
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
}, "strip", z.ZodTypeAny, {
|
|
1688
|
+
glob: string;
|
|
1689
|
+
reason?: string | undefined;
|
|
1690
|
+
}, {
|
|
1691
|
+
glob: string;
|
|
1692
|
+
reason?: string | undefined;
|
|
1693
|
+
}>]>, "many">>;
|
|
1516
1694
|
}, "strip", z.ZodTypeAny, {
|
|
1517
1695
|
kind: "style.rawColors.forbid";
|
|
1518
1696
|
severity: "error" | "info" | "warn";
|
|
1519
1697
|
except: string[];
|
|
1520
1698
|
prefer: "token" | "css-variable";
|
|
1699
|
+
exclude?: (string | {
|
|
1700
|
+
glob: string;
|
|
1701
|
+
reason?: string | undefined;
|
|
1702
|
+
})[] | undefined;
|
|
1521
1703
|
}, {
|
|
1522
1704
|
kind: "style.rawColors.forbid";
|
|
1523
1705
|
severity: "error" | "info" | "warn";
|
|
1524
1706
|
except: string[];
|
|
1525
1707
|
prefer: "token" | "css-variable";
|
|
1708
|
+
exclude?: (string | {
|
|
1709
|
+
glob: string;
|
|
1710
|
+
reason?: string | undefined;
|
|
1711
|
+
})[] | undefined;
|
|
1526
1712
|
}>, z.ZodObject<{
|
|
1527
1713
|
kind: z.ZodLiteral<"style.rawDimensions.forbid">;
|
|
1528
1714
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1529
1715
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1530
1716
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1717
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1718
|
+
glob: z.ZodString;
|
|
1719
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1720
|
+
}, "strip", z.ZodTypeAny, {
|
|
1721
|
+
glob: string;
|
|
1722
|
+
reason?: string | undefined;
|
|
1723
|
+
}, {
|
|
1724
|
+
glob: string;
|
|
1725
|
+
reason?: string | undefined;
|
|
1726
|
+
}>]>, "many">>;
|
|
1531
1727
|
}, "strip", z.ZodTypeAny, {
|
|
1532
1728
|
kind: "style.rawDimensions.forbid";
|
|
1533
1729
|
severity: "error" | "info" | "warn";
|
|
1534
1730
|
prefer: "token" | "css-variable";
|
|
1535
1731
|
appliesTo: string[];
|
|
1732
|
+
exclude?: (string | {
|
|
1733
|
+
glob: string;
|
|
1734
|
+
reason?: string | undefined;
|
|
1735
|
+
})[] | undefined;
|
|
1536
1736
|
}, {
|
|
1537
1737
|
kind: "style.rawDimensions.forbid";
|
|
1538
1738
|
severity: "error" | "info" | "warn";
|
|
1539
1739
|
prefer: "token" | "css-variable";
|
|
1540
1740
|
appliesTo: string[];
|
|
1741
|
+
exclude?: (string | {
|
|
1742
|
+
glob: string;
|
|
1743
|
+
reason?: string | undefined;
|
|
1744
|
+
})[] | undefined;
|
|
1541
1745
|
}>, z.ZodObject<{
|
|
1542
1746
|
kind: z.ZodLiteral<"style.rawSpacing.mustMatchScale">;
|
|
1543
1747
|
scale: z.ZodString;
|
|
1544
1748
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1545
1749
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1750
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1751
|
+
glob: z.ZodString;
|
|
1752
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
}, "strip", z.ZodTypeAny, {
|
|
1754
|
+
glob: string;
|
|
1755
|
+
reason?: string | undefined;
|
|
1756
|
+
}, {
|
|
1757
|
+
glob: string;
|
|
1758
|
+
reason?: string | undefined;
|
|
1759
|
+
}>]>, "many">>;
|
|
1546
1760
|
}, "strip", z.ZodTypeAny, {
|
|
1547
1761
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1548
1762
|
severity: "error" | "info" | "warn";
|
|
1549
1763
|
scale: string;
|
|
1550
1764
|
appliesTo: string[];
|
|
1765
|
+
exclude?: (string | {
|
|
1766
|
+
glob: string;
|
|
1767
|
+
reason?: string | undefined;
|
|
1768
|
+
})[] | undefined;
|
|
1551
1769
|
}, {
|
|
1552
1770
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1553
1771
|
severity: "error" | "info" | "warn";
|
|
1554
1772
|
scale: string;
|
|
1555
1773
|
appliesTo: string[];
|
|
1774
|
+
exclude?: (string | {
|
|
1775
|
+
glob: string;
|
|
1776
|
+
reason?: string | undefined;
|
|
1777
|
+
})[] | undefined;
|
|
1556
1778
|
}>, z.ZodObject<{
|
|
1557
1779
|
kind: z.ZodLiteral<"style.fontSize.mustMatchScale">;
|
|
1558
1780
|
scale: z.ZodString;
|
|
1559
1781
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1782
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1783
|
+
glob: z.ZodString;
|
|
1784
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
}, "strip", z.ZodTypeAny, {
|
|
1786
|
+
glob: string;
|
|
1787
|
+
reason?: string | undefined;
|
|
1788
|
+
}, {
|
|
1789
|
+
glob: string;
|
|
1790
|
+
reason?: string | undefined;
|
|
1791
|
+
}>]>, "many">>;
|
|
1560
1792
|
}, "strip", z.ZodTypeAny, {
|
|
1561
1793
|
kind: "style.fontSize.mustMatchScale";
|
|
1562
1794
|
severity: "error" | "info" | "warn";
|
|
1563
1795
|
scale: string;
|
|
1796
|
+
exclude?: (string | {
|
|
1797
|
+
glob: string;
|
|
1798
|
+
reason?: string | undefined;
|
|
1799
|
+
})[] | undefined;
|
|
1564
1800
|
}, {
|
|
1565
1801
|
kind: "style.fontSize.mustMatchScale";
|
|
1566
1802
|
severity: "error" | "info" | "warn";
|
|
1567
1803
|
scale: string;
|
|
1804
|
+
exclude?: (string | {
|
|
1805
|
+
glob: string;
|
|
1806
|
+
reason?: string | undefined;
|
|
1807
|
+
})[] | undefined;
|
|
1568
1808
|
}>, z.ZodObject<{
|
|
1569
1809
|
kind: z.ZodLiteral<"style.cssVars.mustBeDefined">;
|
|
1570
1810
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1811
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1812
|
+
glob: z.ZodString;
|
|
1813
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
}, "strip", z.ZodTypeAny, {
|
|
1815
|
+
glob: string;
|
|
1816
|
+
reason?: string | undefined;
|
|
1817
|
+
}, {
|
|
1818
|
+
glob: string;
|
|
1819
|
+
reason?: string | undefined;
|
|
1820
|
+
}>]>, "many">>;
|
|
1571
1821
|
}, "strip", z.ZodTypeAny, {
|
|
1572
1822
|
kind: "style.cssVars.mustBeDefined";
|
|
1573
1823
|
severity: "error" | "info" | "warn";
|
|
1824
|
+
exclude?: (string | {
|
|
1825
|
+
glob: string;
|
|
1826
|
+
reason?: string | undefined;
|
|
1827
|
+
})[] | undefined;
|
|
1574
1828
|
}, {
|
|
1575
1829
|
kind: "style.cssVars.mustBeDefined";
|
|
1576
1830
|
severity: "error" | "info" | "warn";
|
|
1831
|
+
exclude?: (string | {
|
|
1832
|
+
glob: string;
|
|
1833
|
+
reason?: string | undefined;
|
|
1834
|
+
})[] | undefined;
|
|
1577
1835
|
}>, z.ZodObject<{
|
|
1578
1836
|
kind: z.ZodLiteral<"jsx.unknownProps.forbid">;
|
|
1579
1837
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1838
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1839
|
+
glob: z.ZodString;
|
|
1840
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
}, "strip", z.ZodTypeAny, {
|
|
1842
|
+
glob: string;
|
|
1843
|
+
reason?: string | undefined;
|
|
1844
|
+
}, {
|
|
1845
|
+
glob: string;
|
|
1846
|
+
reason?: string | undefined;
|
|
1847
|
+
}>]>, "many">>;
|
|
1580
1848
|
}, "strip", z.ZodTypeAny, {
|
|
1581
1849
|
kind: "jsx.unknownProps.forbid";
|
|
1582
1850
|
severity: "error" | "info" | "warn";
|
|
1851
|
+
exclude?: (string | {
|
|
1852
|
+
glob: string;
|
|
1853
|
+
reason?: string | undefined;
|
|
1854
|
+
})[] | undefined;
|
|
1583
1855
|
}, {
|
|
1584
1856
|
kind: "jsx.unknownProps.forbid";
|
|
1585
1857
|
severity: "error" | "info" | "warn";
|
|
1858
|
+
exclude?: (string | {
|
|
1859
|
+
glob: string;
|
|
1860
|
+
reason?: string | undefined;
|
|
1861
|
+
})[] | undefined;
|
|
1586
1862
|
}>, z.ZodObject<{
|
|
1587
1863
|
kind: z.ZodLiteral<"jsx.inlineStyle.forbidRaw">;
|
|
1588
1864
|
properties: z.ZodArray<z.ZodString, "many">;
|
|
1589
1865
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1866
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1867
|
+
glob: z.ZodString;
|
|
1868
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1869
|
+
}, "strip", z.ZodTypeAny, {
|
|
1870
|
+
glob: string;
|
|
1871
|
+
reason?: string | undefined;
|
|
1872
|
+
}, {
|
|
1873
|
+
glob: string;
|
|
1874
|
+
reason?: string | undefined;
|
|
1875
|
+
}>]>, "many">>;
|
|
1590
1876
|
}, "strip", z.ZodTypeAny, {
|
|
1591
1877
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1592
1878
|
severity: "error" | "info" | "warn";
|
|
1593
1879
|
properties: string[];
|
|
1880
|
+
exclude?: (string | {
|
|
1881
|
+
glob: string;
|
|
1882
|
+
reason?: string | undefined;
|
|
1883
|
+
})[] | undefined;
|
|
1594
1884
|
}, {
|
|
1595
1885
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1596
1886
|
severity: "error" | "info" | "warn";
|
|
1597
1887
|
properties: string[];
|
|
1888
|
+
exclude?: (string | {
|
|
1889
|
+
glob: string;
|
|
1890
|
+
reason?: string | undefined;
|
|
1891
|
+
})[] | undefined;
|
|
1598
1892
|
}>, z.ZodObject<{
|
|
1599
1893
|
kind: z.ZodLiteral<"jsx.importPath.prefer">;
|
|
1600
1894
|
from: z.ZodString;
|
|
@@ -1602,11 +1896,25 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1602
1896
|
imported: z.ZodOptional<z.ZodString>;
|
|
1603
1897
|
because: z.ZodOptional<z.ZodString>;
|
|
1604
1898
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1899
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1900
|
+
glob: z.ZodString;
|
|
1901
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1902
|
+
}, "strip", z.ZodTypeAny, {
|
|
1903
|
+
glob: string;
|
|
1904
|
+
reason?: string | undefined;
|
|
1905
|
+
}, {
|
|
1906
|
+
glob: string;
|
|
1907
|
+
reason?: string | undefined;
|
|
1908
|
+
}>]>, "many">>;
|
|
1605
1909
|
}, "strip", z.ZodTypeAny, {
|
|
1606
1910
|
kind: "jsx.importPath.prefer";
|
|
1607
1911
|
from: string;
|
|
1608
1912
|
to: string;
|
|
1609
1913
|
severity: "error" | "info" | "warn";
|
|
1914
|
+
exclude?: (string | {
|
|
1915
|
+
glob: string;
|
|
1916
|
+
reason?: string | undefined;
|
|
1917
|
+
})[] | undefined;
|
|
1610
1918
|
imported?: string | undefined;
|
|
1611
1919
|
because?: string | undefined;
|
|
1612
1920
|
}, {
|
|
@@ -1614,6 +1922,10 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1614
1922
|
from: string;
|
|
1615
1923
|
to: string;
|
|
1616
1924
|
severity: "error" | "info" | "warn";
|
|
1925
|
+
exclude?: (string | {
|
|
1926
|
+
glob: string;
|
|
1927
|
+
reason?: string | undefined;
|
|
1928
|
+
})[] | undefined;
|
|
1617
1929
|
imported?: string | undefined;
|
|
1618
1930
|
because?: string | undefined;
|
|
1619
1931
|
}>, z.ZodObject<{
|
|
@@ -1622,17 +1934,35 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1622
1934
|
to: z.ZodString;
|
|
1623
1935
|
because: z.ZodOptional<z.ZodString>;
|
|
1624
1936
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1937
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1938
|
+
glob: z.ZodString;
|
|
1939
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1940
|
+
}, "strip", z.ZodTypeAny, {
|
|
1941
|
+
glob: string;
|
|
1942
|
+
reason?: string | undefined;
|
|
1943
|
+
}, {
|
|
1944
|
+
glob: string;
|
|
1945
|
+
reason?: string | undefined;
|
|
1946
|
+
}>]>, "many">>;
|
|
1625
1947
|
}, "strip", z.ZodTypeAny, {
|
|
1626
1948
|
kind: "jsx.component.prefer";
|
|
1627
1949
|
from: string;
|
|
1628
1950
|
to: string;
|
|
1629
1951
|
severity: "error" | "info" | "warn";
|
|
1952
|
+
exclude?: (string | {
|
|
1953
|
+
glob: string;
|
|
1954
|
+
reason?: string | undefined;
|
|
1955
|
+
})[] | undefined;
|
|
1630
1956
|
because?: string | undefined;
|
|
1631
1957
|
}, {
|
|
1632
1958
|
kind: "jsx.component.prefer";
|
|
1633
1959
|
from: string;
|
|
1634
1960
|
to: string;
|
|
1635
1961
|
severity: "error" | "info" | "warn";
|
|
1962
|
+
exclude?: (string | {
|
|
1963
|
+
glob: string;
|
|
1964
|
+
reason?: string | undefined;
|
|
1965
|
+
})[] | undefined;
|
|
1636
1966
|
because?: string | undefined;
|
|
1637
1967
|
}>]>;
|
|
1638
1968
|
declare const componentGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -2240,15 +2570,15 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2240
2570
|
}, "strip", z.ZodTypeAny, {
|
|
2241
2571
|
kind: "npm";
|
|
2242
2572
|
specifier: string;
|
|
2573
|
+
exclude?: string[] | undefined;
|
|
2243
2574
|
implementationPath?: string | undefined;
|
|
2244
2575
|
include?: string[] | undefined;
|
|
2245
|
-
exclude?: string[] | undefined;
|
|
2246
2576
|
}, {
|
|
2247
2577
|
kind: "npm";
|
|
2248
2578
|
specifier: string;
|
|
2579
|
+
exclude?: string[] | undefined;
|
|
2249
2580
|
implementationPath?: string | undefined;
|
|
2250
2581
|
include?: string[] | undefined;
|
|
2251
|
-
exclude?: string[] | undefined;
|
|
2252
2582
|
}>, z.ZodObject<{
|
|
2253
2583
|
kind: z.ZodLiteral<"directory">;
|
|
2254
2584
|
path: z.ZodString;
|
|
@@ -2257,13 +2587,13 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2257
2587
|
}, "strip", z.ZodTypeAny, {
|
|
2258
2588
|
path: string;
|
|
2259
2589
|
kind: "directory";
|
|
2260
|
-
include?: string[] | undefined;
|
|
2261
2590
|
exclude?: string[] | undefined;
|
|
2591
|
+
include?: string[] | undefined;
|
|
2262
2592
|
}, {
|
|
2263
2593
|
path: string;
|
|
2264
2594
|
kind: "directory";
|
|
2265
|
-
include?: string[] | undefined;
|
|
2266
2595
|
exclude?: string[] | undefined;
|
|
2596
|
+
include?: string[] | undefined;
|
|
2267
2597
|
}>, z.ZodObject<{
|
|
2268
2598
|
kind: z.ZodLiteral<"registry">;
|
|
2269
2599
|
registryId: z.ZodString;
|
|
@@ -2281,8 +2611,8 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2281
2611
|
installPath: string;
|
|
2282
2612
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2283
2613
|
importPath?: string | undefined;
|
|
2284
|
-
include?: string[] | undefined;
|
|
2285
2614
|
exclude?: string[] | undefined;
|
|
2615
|
+
include?: string[] | undefined;
|
|
2286
2616
|
registryHash?: string | undefined;
|
|
2287
2617
|
}, {
|
|
2288
2618
|
kind: "registry";
|
|
@@ -2290,8 +2620,8 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2290
2620
|
installPath: string;
|
|
2291
2621
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2292
2622
|
importPath?: string | undefined;
|
|
2293
|
-
include?: string[] | undefined;
|
|
2294
2623
|
exclude?: string[] | undefined;
|
|
2624
|
+
include?: string[] | undefined;
|
|
2295
2625
|
registryHash?: string | undefined;
|
|
2296
2626
|
receiptPath?: string | undefined;
|
|
2297
2627
|
}>]>;
|
|
@@ -2317,15 +2647,15 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2317
2647
|
}, "strip", z.ZodTypeAny, {
|
|
2318
2648
|
kind: "npm";
|
|
2319
2649
|
specifier: string;
|
|
2650
|
+
exclude?: string[] | undefined;
|
|
2320
2651
|
implementationPath?: string | undefined;
|
|
2321
2652
|
include?: string[] | undefined;
|
|
2322
|
-
exclude?: string[] | undefined;
|
|
2323
2653
|
}, {
|
|
2324
2654
|
kind: "npm";
|
|
2325
2655
|
specifier: string;
|
|
2656
|
+
exclude?: string[] | undefined;
|
|
2326
2657
|
implementationPath?: string | undefined;
|
|
2327
2658
|
include?: string[] | undefined;
|
|
2328
|
-
exclude?: string[] | undefined;
|
|
2329
2659
|
}>, z.ZodObject<{
|
|
2330
2660
|
kind: z.ZodLiteral<"directory">;
|
|
2331
2661
|
path: z.ZodString;
|
|
@@ -2334,13 +2664,13 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2334
2664
|
}, "strip", z.ZodTypeAny, {
|
|
2335
2665
|
path: string;
|
|
2336
2666
|
kind: "directory";
|
|
2337
|
-
include?: string[] | undefined;
|
|
2338
2667
|
exclude?: string[] | undefined;
|
|
2668
|
+
include?: string[] | undefined;
|
|
2339
2669
|
}, {
|
|
2340
2670
|
path: string;
|
|
2341
2671
|
kind: "directory";
|
|
2342
|
-
include?: string[] | undefined;
|
|
2343
2672
|
exclude?: string[] | undefined;
|
|
2673
|
+
include?: string[] | undefined;
|
|
2344
2674
|
}>, z.ZodObject<{
|
|
2345
2675
|
kind: z.ZodLiteral<"registry">;
|
|
2346
2676
|
registryId: z.ZodString;
|
|
@@ -2358,8 +2688,8 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2358
2688
|
installPath: string;
|
|
2359
2689
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2360
2690
|
importPath?: string | undefined;
|
|
2361
|
-
include?: string[] | undefined;
|
|
2362
2691
|
exclude?: string[] | undefined;
|
|
2692
|
+
include?: string[] | undefined;
|
|
2363
2693
|
registryHash?: string | undefined;
|
|
2364
2694
|
}, {
|
|
2365
2695
|
kind: "registry";
|
|
@@ -2367,8 +2697,8 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2367
2697
|
installPath: string;
|
|
2368
2698
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2369
2699
|
importPath?: string | undefined;
|
|
2370
|
-
include?: string[] | undefined;
|
|
2371
2700
|
exclude?: string[] | undefined;
|
|
2701
|
+
include?: string[] | undefined;
|
|
2372
2702
|
registryHash?: string | undefined;
|
|
2373
2703
|
receiptPath?: string | undefined;
|
|
2374
2704
|
}>]>, "many">>;
|
|
@@ -2498,89 +2828,215 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2498
2828
|
except: z.ZodArray<z.ZodString, "many">;
|
|
2499
2829
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
2500
2830
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2831
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2832
|
+
glob: z.ZodString;
|
|
2833
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2834
|
+
}, "strip", z.ZodTypeAny, {
|
|
2835
|
+
glob: string;
|
|
2836
|
+
reason?: string | undefined;
|
|
2837
|
+
}, {
|
|
2838
|
+
glob: string;
|
|
2839
|
+
reason?: string | undefined;
|
|
2840
|
+
}>]>, "many">>;
|
|
2501
2841
|
}, "strip", z.ZodTypeAny, {
|
|
2502
2842
|
kind: "style.rawColors.forbid";
|
|
2503
2843
|
severity: "error" | "info" | "warn";
|
|
2504
2844
|
except: string[];
|
|
2505
2845
|
prefer: "token" | "css-variable";
|
|
2846
|
+
exclude?: (string | {
|
|
2847
|
+
glob: string;
|
|
2848
|
+
reason?: string | undefined;
|
|
2849
|
+
})[] | undefined;
|
|
2506
2850
|
}, {
|
|
2507
2851
|
kind: "style.rawColors.forbid";
|
|
2508
2852
|
severity: "error" | "info" | "warn";
|
|
2509
2853
|
except: string[];
|
|
2510
2854
|
prefer: "token" | "css-variable";
|
|
2855
|
+
exclude?: (string | {
|
|
2856
|
+
glob: string;
|
|
2857
|
+
reason?: string | undefined;
|
|
2858
|
+
})[] | undefined;
|
|
2511
2859
|
}>, z.ZodObject<{
|
|
2512
2860
|
kind: z.ZodLiteral<"style.rawDimensions.forbid">;
|
|
2513
2861
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
2514
2862
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
2515
2863
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2864
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2865
|
+
glob: z.ZodString;
|
|
2866
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2867
|
+
}, "strip", z.ZodTypeAny, {
|
|
2868
|
+
glob: string;
|
|
2869
|
+
reason?: string | undefined;
|
|
2870
|
+
}, {
|
|
2871
|
+
glob: string;
|
|
2872
|
+
reason?: string | undefined;
|
|
2873
|
+
}>]>, "many">>;
|
|
2516
2874
|
}, "strip", z.ZodTypeAny, {
|
|
2517
2875
|
kind: "style.rawDimensions.forbid";
|
|
2518
2876
|
severity: "error" | "info" | "warn";
|
|
2519
2877
|
prefer: "token" | "css-variable";
|
|
2520
2878
|
appliesTo: string[];
|
|
2879
|
+
exclude?: (string | {
|
|
2880
|
+
glob: string;
|
|
2881
|
+
reason?: string | undefined;
|
|
2882
|
+
})[] | undefined;
|
|
2521
2883
|
}, {
|
|
2522
2884
|
kind: "style.rawDimensions.forbid";
|
|
2523
2885
|
severity: "error" | "info" | "warn";
|
|
2524
2886
|
prefer: "token" | "css-variable";
|
|
2525
2887
|
appliesTo: string[];
|
|
2888
|
+
exclude?: (string | {
|
|
2889
|
+
glob: string;
|
|
2890
|
+
reason?: string | undefined;
|
|
2891
|
+
})[] | undefined;
|
|
2526
2892
|
}>, z.ZodObject<{
|
|
2527
2893
|
kind: z.ZodLiteral<"style.rawSpacing.mustMatchScale">;
|
|
2528
2894
|
scale: z.ZodString;
|
|
2529
2895
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
2530
2896
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2897
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2898
|
+
glob: z.ZodString;
|
|
2899
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2900
|
+
}, "strip", z.ZodTypeAny, {
|
|
2901
|
+
glob: string;
|
|
2902
|
+
reason?: string | undefined;
|
|
2903
|
+
}, {
|
|
2904
|
+
glob: string;
|
|
2905
|
+
reason?: string | undefined;
|
|
2906
|
+
}>]>, "many">>;
|
|
2531
2907
|
}, "strip", z.ZodTypeAny, {
|
|
2532
2908
|
kind: "style.rawSpacing.mustMatchScale";
|
|
2533
2909
|
severity: "error" | "info" | "warn";
|
|
2534
2910
|
scale: string;
|
|
2535
2911
|
appliesTo: string[];
|
|
2912
|
+
exclude?: (string | {
|
|
2913
|
+
glob: string;
|
|
2914
|
+
reason?: string | undefined;
|
|
2915
|
+
})[] | undefined;
|
|
2536
2916
|
}, {
|
|
2537
2917
|
kind: "style.rawSpacing.mustMatchScale";
|
|
2538
2918
|
severity: "error" | "info" | "warn";
|
|
2539
2919
|
scale: string;
|
|
2540
2920
|
appliesTo: string[];
|
|
2921
|
+
exclude?: (string | {
|
|
2922
|
+
glob: string;
|
|
2923
|
+
reason?: string | undefined;
|
|
2924
|
+
})[] | undefined;
|
|
2541
2925
|
}>, z.ZodObject<{
|
|
2542
2926
|
kind: z.ZodLiteral<"style.fontSize.mustMatchScale">;
|
|
2543
2927
|
scale: z.ZodString;
|
|
2544
2928
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2929
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2930
|
+
glob: z.ZodString;
|
|
2931
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2932
|
+
}, "strip", z.ZodTypeAny, {
|
|
2933
|
+
glob: string;
|
|
2934
|
+
reason?: string | undefined;
|
|
2935
|
+
}, {
|
|
2936
|
+
glob: string;
|
|
2937
|
+
reason?: string | undefined;
|
|
2938
|
+
}>]>, "many">>;
|
|
2545
2939
|
}, "strip", z.ZodTypeAny, {
|
|
2546
2940
|
kind: "style.fontSize.mustMatchScale";
|
|
2547
2941
|
severity: "error" | "info" | "warn";
|
|
2548
2942
|
scale: string;
|
|
2943
|
+
exclude?: (string | {
|
|
2944
|
+
glob: string;
|
|
2945
|
+
reason?: string | undefined;
|
|
2946
|
+
})[] | undefined;
|
|
2549
2947
|
}, {
|
|
2550
2948
|
kind: "style.fontSize.mustMatchScale";
|
|
2551
2949
|
severity: "error" | "info" | "warn";
|
|
2552
2950
|
scale: string;
|
|
2951
|
+
exclude?: (string | {
|
|
2952
|
+
glob: string;
|
|
2953
|
+
reason?: string | undefined;
|
|
2954
|
+
})[] | undefined;
|
|
2553
2955
|
}>, z.ZodObject<{
|
|
2554
2956
|
kind: z.ZodLiteral<"style.cssVars.mustBeDefined">;
|
|
2555
2957
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2958
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2959
|
+
glob: z.ZodString;
|
|
2960
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2961
|
+
}, "strip", z.ZodTypeAny, {
|
|
2962
|
+
glob: string;
|
|
2963
|
+
reason?: string | undefined;
|
|
2964
|
+
}, {
|
|
2965
|
+
glob: string;
|
|
2966
|
+
reason?: string | undefined;
|
|
2967
|
+
}>]>, "many">>;
|
|
2556
2968
|
}, "strip", z.ZodTypeAny, {
|
|
2557
2969
|
kind: "style.cssVars.mustBeDefined";
|
|
2558
2970
|
severity: "error" | "info" | "warn";
|
|
2971
|
+
exclude?: (string | {
|
|
2972
|
+
glob: string;
|
|
2973
|
+
reason?: string | undefined;
|
|
2974
|
+
})[] | undefined;
|
|
2559
2975
|
}, {
|
|
2560
2976
|
kind: "style.cssVars.mustBeDefined";
|
|
2561
2977
|
severity: "error" | "info" | "warn";
|
|
2978
|
+
exclude?: (string | {
|
|
2979
|
+
glob: string;
|
|
2980
|
+
reason?: string | undefined;
|
|
2981
|
+
})[] | undefined;
|
|
2562
2982
|
}>]>, "many">>;
|
|
2563
2983
|
jsx: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2564
2984
|
kind: z.ZodLiteral<"jsx.unknownProps.forbid">;
|
|
2565
2985
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2986
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2987
|
+
glob: z.ZodString;
|
|
2988
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2989
|
+
}, "strip", z.ZodTypeAny, {
|
|
2990
|
+
glob: string;
|
|
2991
|
+
reason?: string | undefined;
|
|
2992
|
+
}, {
|
|
2993
|
+
glob: string;
|
|
2994
|
+
reason?: string | undefined;
|
|
2995
|
+
}>]>, "many">>;
|
|
2566
2996
|
}, "strip", z.ZodTypeAny, {
|
|
2567
2997
|
kind: "jsx.unknownProps.forbid";
|
|
2568
2998
|
severity: "error" | "info" | "warn";
|
|
2999
|
+
exclude?: (string | {
|
|
3000
|
+
glob: string;
|
|
3001
|
+
reason?: string | undefined;
|
|
3002
|
+
})[] | undefined;
|
|
2569
3003
|
}, {
|
|
2570
3004
|
kind: "jsx.unknownProps.forbid";
|
|
2571
3005
|
severity: "error" | "info" | "warn";
|
|
3006
|
+
exclude?: (string | {
|
|
3007
|
+
glob: string;
|
|
3008
|
+
reason?: string | undefined;
|
|
3009
|
+
})[] | undefined;
|
|
2572
3010
|
}>, z.ZodObject<{
|
|
2573
3011
|
kind: z.ZodLiteral<"jsx.inlineStyle.forbidRaw">;
|
|
2574
3012
|
properties: z.ZodArray<z.ZodString, "many">;
|
|
2575
3013
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
3014
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3015
|
+
glob: z.ZodString;
|
|
3016
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3017
|
+
}, "strip", z.ZodTypeAny, {
|
|
3018
|
+
glob: string;
|
|
3019
|
+
reason?: string | undefined;
|
|
3020
|
+
}, {
|
|
3021
|
+
glob: string;
|
|
3022
|
+
reason?: string | undefined;
|
|
3023
|
+
}>]>, "many">>;
|
|
2576
3024
|
}, "strip", z.ZodTypeAny, {
|
|
2577
3025
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
2578
3026
|
severity: "error" | "info" | "warn";
|
|
2579
3027
|
properties: string[];
|
|
3028
|
+
exclude?: (string | {
|
|
3029
|
+
glob: string;
|
|
3030
|
+
reason?: string | undefined;
|
|
3031
|
+
})[] | undefined;
|
|
2580
3032
|
}, {
|
|
2581
3033
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
2582
3034
|
severity: "error" | "info" | "warn";
|
|
2583
3035
|
properties: string[];
|
|
3036
|
+
exclude?: (string | {
|
|
3037
|
+
glob: string;
|
|
3038
|
+
reason?: string | undefined;
|
|
3039
|
+
})[] | undefined;
|
|
2584
3040
|
}>, z.ZodObject<{
|
|
2585
3041
|
kind: z.ZodLiteral<"jsx.importPath.prefer">;
|
|
2586
3042
|
from: z.ZodString;
|
|
@@ -2588,11 +3044,25 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2588
3044
|
imported: z.ZodOptional<z.ZodString>;
|
|
2589
3045
|
because: z.ZodOptional<z.ZodString>;
|
|
2590
3046
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
3047
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3048
|
+
glob: z.ZodString;
|
|
3049
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3050
|
+
}, "strip", z.ZodTypeAny, {
|
|
3051
|
+
glob: string;
|
|
3052
|
+
reason?: string | undefined;
|
|
3053
|
+
}, {
|
|
3054
|
+
glob: string;
|
|
3055
|
+
reason?: string | undefined;
|
|
3056
|
+
}>]>, "many">>;
|
|
2591
3057
|
}, "strip", z.ZodTypeAny, {
|
|
2592
3058
|
kind: "jsx.importPath.prefer";
|
|
2593
3059
|
from: string;
|
|
2594
3060
|
to: string;
|
|
2595
3061
|
severity: "error" | "info" | "warn";
|
|
3062
|
+
exclude?: (string | {
|
|
3063
|
+
glob: string;
|
|
3064
|
+
reason?: string | undefined;
|
|
3065
|
+
})[] | undefined;
|
|
2596
3066
|
imported?: string | undefined;
|
|
2597
3067
|
because?: string | undefined;
|
|
2598
3068
|
}, {
|
|
@@ -2600,6 +3070,10 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2600
3070
|
from: string;
|
|
2601
3071
|
to: string;
|
|
2602
3072
|
severity: "error" | "info" | "warn";
|
|
3073
|
+
exclude?: (string | {
|
|
3074
|
+
glob: string;
|
|
3075
|
+
reason?: string | undefined;
|
|
3076
|
+
})[] | undefined;
|
|
2603
3077
|
imported?: string | undefined;
|
|
2604
3078
|
because?: string | undefined;
|
|
2605
3079
|
}>, z.ZodObject<{
|
|
@@ -2608,17 +3082,35 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2608
3082
|
to: z.ZodString;
|
|
2609
3083
|
because: z.ZodOptional<z.ZodString>;
|
|
2610
3084
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
3085
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3086
|
+
glob: z.ZodString;
|
|
3087
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3088
|
+
}, "strip", z.ZodTypeAny, {
|
|
3089
|
+
glob: string;
|
|
3090
|
+
reason?: string | undefined;
|
|
3091
|
+
}, {
|
|
3092
|
+
glob: string;
|
|
3093
|
+
reason?: string | undefined;
|
|
3094
|
+
}>]>, "many">>;
|
|
2611
3095
|
}, "strip", z.ZodTypeAny, {
|
|
2612
3096
|
kind: "jsx.component.prefer";
|
|
2613
3097
|
from: string;
|
|
2614
3098
|
to: string;
|
|
2615
3099
|
severity: "error" | "info" | "warn";
|
|
3100
|
+
exclude?: (string | {
|
|
3101
|
+
glob: string;
|
|
3102
|
+
reason?: string | undefined;
|
|
3103
|
+
})[] | undefined;
|
|
2616
3104
|
because?: string | undefined;
|
|
2617
3105
|
}, {
|
|
2618
3106
|
kind: "jsx.component.prefer";
|
|
2619
3107
|
from: string;
|
|
2620
3108
|
to: string;
|
|
2621
3109
|
severity: "error" | "info" | "warn";
|
|
3110
|
+
exclude?: (string | {
|
|
3111
|
+
glob: string;
|
|
3112
|
+
reason?: string | undefined;
|
|
3113
|
+
})[] | undefined;
|
|
2622
3114
|
because?: string | undefined;
|
|
2623
3115
|
}>]>, "many">>;
|
|
2624
3116
|
tailwind: z.ZodOptional<z.ZodObject<{
|
|
@@ -3018,10 +3510,13 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3018
3510
|
}>, "many">>;
|
|
3019
3511
|
ci: z.ZodOptional<z.ZodObject<{
|
|
3020
3512
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3513
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3021
3514
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3022
3515
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3516
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3023
3517
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3024
3518
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3519
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3025
3520
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
3026
3521
|
}, "strict", z.ZodTypeAny, {
|
|
3027
3522
|
components?: Record<string, {
|
|
@@ -3069,36 +3564,68 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3069
3564
|
severity: "error" | "info" | "warn";
|
|
3070
3565
|
except: string[];
|
|
3071
3566
|
prefer: "token" | "css-variable";
|
|
3567
|
+
exclude?: (string | {
|
|
3568
|
+
glob: string;
|
|
3569
|
+
reason?: string | undefined;
|
|
3570
|
+
})[] | undefined;
|
|
3072
3571
|
} | {
|
|
3073
3572
|
kind: "style.rawDimensions.forbid";
|
|
3074
3573
|
severity: "error" | "info" | "warn";
|
|
3075
3574
|
prefer: "token" | "css-variable";
|
|
3076
3575
|
appliesTo: string[];
|
|
3576
|
+
exclude?: (string | {
|
|
3577
|
+
glob: string;
|
|
3578
|
+
reason?: string | undefined;
|
|
3579
|
+
})[] | undefined;
|
|
3077
3580
|
} | {
|
|
3078
3581
|
kind: "style.rawSpacing.mustMatchScale";
|
|
3079
3582
|
severity: "error" | "info" | "warn";
|
|
3080
3583
|
scale: string;
|
|
3081
3584
|
appliesTo: string[];
|
|
3585
|
+
exclude?: (string | {
|
|
3586
|
+
glob: string;
|
|
3587
|
+
reason?: string | undefined;
|
|
3588
|
+
})[] | undefined;
|
|
3082
3589
|
} | {
|
|
3083
3590
|
kind: "style.fontSize.mustMatchScale";
|
|
3084
3591
|
severity: "error" | "info" | "warn";
|
|
3085
3592
|
scale: string;
|
|
3593
|
+
exclude?: (string | {
|
|
3594
|
+
glob: string;
|
|
3595
|
+
reason?: string | undefined;
|
|
3596
|
+
})[] | undefined;
|
|
3086
3597
|
} | {
|
|
3087
3598
|
kind: "style.cssVars.mustBeDefined";
|
|
3088
3599
|
severity: "error" | "info" | "warn";
|
|
3600
|
+
exclude?: (string | {
|
|
3601
|
+
glob: string;
|
|
3602
|
+
reason?: string | undefined;
|
|
3603
|
+
})[] | undefined;
|
|
3089
3604
|
})[] | undefined;
|
|
3090
3605
|
jsx?: ({
|
|
3091
3606
|
kind: "jsx.unknownProps.forbid";
|
|
3092
3607
|
severity: "error" | "info" | "warn";
|
|
3608
|
+
exclude?: (string | {
|
|
3609
|
+
glob: string;
|
|
3610
|
+
reason?: string | undefined;
|
|
3611
|
+
})[] | undefined;
|
|
3093
3612
|
} | {
|
|
3094
3613
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
3095
3614
|
severity: "error" | "info" | "warn";
|
|
3096
3615
|
properties: string[];
|
|
3616
|
+
exclude?: (string | {
|
|
3617
|
+
glob: string;
|
|
3618
|
+
reason?: string | undefined;
|
|
3619
|
+
})[] | undefined;
|
|
3097
3620
|
} | {
|
|
3098
3621
|
kind: "jsx.importPath.prefer";
|
|
3099
3622
|
from: string;
|
|
3100
3623
|
to: string;
|
|
3101
3624
|
severity: "error" | "info" | "warn";
|
|
3625
|
+
exclude?: (string | {
|
|
3626
|
+
glob: string;
|
|
3627
|
+
reason?: string | undefined;
|
|
3628
|
+
})[] | undefined;
|
|
3102
3629
|
imported?: string | undefined;
|
|
3103
3630
|
because?: string | undefined;
|
|
3104
3631
|
} | {
|
|
@@ -3106,6 +3633,10 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3106
3633
|
from: string;
|
|
3107
3634
|
to: string;
|
|
3108
3635
|
severity: "error" | "info" | "warn";
|
|
3636
|
+
exclude?: (string | {
|
|
3637
|
+
glob: string;
|
|
3638
|
+
reason?: string | undefined;
|
|
3639
|
+
})[] | undefined;
|
|
3109
3640
|
because?: string | undefined;
|
|
3110
3641
|
})[] | undefined;
|
|
3111
3642
|
tailwind?: z.objectOutputType<{
|
|
@@ -3171,14 +3702,14 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3171
3702
|
canonicalSources?: ({
|
|
3172
3703
|
kind: "npm";
|
|
3173
3704
|
specifier: string;
|
|
3705
|
+
exclude?: string[] | undefined;
|
|
3174
3706
|
implementationPath?: string | undefined;
|
|
3175
3707
|
include?: string[] | undefined;
|
|
3176
|
-
exclude?: string[] | undefined;
|
|
3177
3708
|
} | {
|
|
3178
3709
|
path: string;
|
|
3179
3710
|
kind: "directory";
|
|
3180
|
-
include?: string[] | undefined;
|
|
3181
3711
|
exclude?: string[] | undefined;
|
|
3712
|
+
include?: string[] | undefined;
|
|
3182
3713
|
} | {
|
|
3183
3714
|
kind: "registry";
|
|
3184
3715
|
registryId: string;
|
|
@@ -3186,8 +3717,8 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3186
3717
|
installPath: string;
|
|
3187
3718
|
severity?: "error" | "info" | "warn" | undefined;
|
|
3188
3719
|
importPath?: string | undefined;
|
|
3189
|
-
include?: string[] | undefined;
|
|
3190
3720
|
exclude?: string[] | undefined;
|
|
3721
|
+
include?: string[] | undefined;
|
|
3191
3722
|
registryHash?: string | undefined;
|
|
3192
3723
|
})[] | undefined;
|
|
3193
3724
|
canonicalBridges?: {
|
|
@@ -3212,6 +3743,7 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3212
3743
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3213
3744
|
ci?: z.objectOutputType<{
|
|
3214
3745
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3746
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3215
3747
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3216
3748
|
}, {
|
|
3217
3749
|
components?: Record<string, {
|
|
@@ -3259,36 +3791,68 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3259
3791
|
severity: "error" | "info" | "warn";
|
|
3260
3792
|
except: string[];
|
|
3261
3793
|
prefer: "token" | "css-variable";
|
|
3794
|
+
exclude?: (string | {
|
|
3795
|
+
glob: string;
|
|
3796
|
+
reason?: string | undefined;
|
|
3797
|
+
})[] | undefined;
|
|
3262
3798
|
} | {
|
|
3263
3799
|
kind: "style.rawDimensions.forbid";
|
|
3264
3800
|
severity: "error" | "info" | "warn";
|
|
3265
3801
|
prefer: "token" | "css-variable";
|
|
3266
3802
|
appliesTo: string[];
|
|
3803
|
+
exclude?: (string | {
|
|
3804
|
+
glob: string;
|
|
3805
|
+
reason?: string | undefined;
|
|
3806
|
+
})[] | undefined;
|
|
3267
3807
|
} | {
|
|
3268
3808
|
kind: "style.rawSpacing.mustMatchScale";
|
|
3269
3809
|
severity: "error" | "info" | "warn";
|
|
3270
3810
|
scale: string;
|
|
3271
3811
|
appliesTo: string[];
|
|
3812
|
+
exclude?: (string | {
|
|
3813
|
+
glob: string;
|
|
3814
|
+
reason?: string | undefined;
|
|
3815
|
+
})[] | undefined;
|
|
3272
3816
|
} | {
|
|
3273
3817
|
kind: "style.fontSize.mustMatchScale";
|
|
3274
3818
|
severity: "error" | "info" | "warn";
|
|
3275
3819
|
scale: string;
|
|
3820
|
+
exclude?: (string | {
|
|
3821
|
+
glob: string;
|
|
3822
|
+
reason?: string | undefined;
|
|
3823
|
+
})[] | undefined;
|
|
3276
3824
|
} | {
|
|
3277
3825
|
kind: "style.cssVars.mustBeDefined";
|
|
3278
3826
|
severity: "error" | "info" | "warn";
|
|
3827
|
+
exclude?: (string | {
|
|
3828
|
+
glob: string;
|
|
3829
|
+
reason?: string | undefined;
|
|
3830
|
+
})[] | undefined;
|
|
3279
3831
|
})[] | undefined;
|
|
3280
3832
|
jsx?: ({
|
|
3281
3833
|
kind: "jsx.unknownProps.forbid";
|
|
3282
3834
|
severity: "error" | "info" | "warn";
|
|
3835
|
+
exclude?: (string | {
|
|
3836
|
+
glob: string;
|
|
3837
|
+
reason?: string | undefined;
|
|
3838
|
+
})[] | undefined;
|
|
3283
3839
|
} | {
|
|
3284
3840
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
3285
3841
|
severity: "error" | "info" | "warn";
|
|
3286
3842
|
properties: string[];
|
|
3843
|
+
exclude?: (string | {
|
|
3844
|
+
glob: string;
|
|
3845
|
+
reason?: string | undefined;
|
|
3846
|
+
})[] | undefined;
|
|
3287
3847
|
} | {
|
|
3288
3848
|
kind: "jsx.importPath.prefer";
|
|
3289
3849
|
from: string;
|
|
3290
3850
|
to: string;
|
|
3291
3851
|
severity: "error" | "info" | "warn";
|
|
3852
|
+
exclude?: (string | {
|
|
3853
|
+
glob: string;
|
|
3854
|
+
reason?: string | undefined;
|
|
3855
|
+
})[] | undefined;
|
|
3292
3856
|
imported?: string | undefined;
|
|
3293
3857
|
because?: string | undefined;
|
|
3294
3858
|
} | {
|
|
@@ -3296,6 +3860,10 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3296
3860
|
from: string;
|
|
3297
3861
|
to: string;
|
|
3298
3862
|
severity: "error" | "info" | "warn";
|
|
3863
|
+
exclude?: (string | {
|
|
3864
|
+
glob: string;
|
|
3865
|
+
reason?: string | undefined;
|
|
3866
|
+
})[] | undefined;
|
|
3299
3867
|
because?: string | undefined;
|
|
3300
3868
|
})[] | undefined;
|
|
3301
3869
|
tailwind?: z.objectInputType<{
|
|
@@ -3361,22 +3929,22 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3361
3929
|
canonicalSources?: ({
|
|
3362
3930
|
kind: "npm";
|
|
3363
3931
|
specifier: string;
|
|
3932
|
+
exclude?: string[] | undefined;
|
|
3364
3933
|
implementationPath?: string | undefined;
|
|
3365
3934
|
include?: string[] | undefined;
|
|
3366
|
-
exclude?: string[] | undefined;
|
|
3367
3935
|
} | {
|
|
3368
3936
|
path: string;
|
|
3369
3937
|
kind: "directory";
|
|
3370
|
-
include?: string[] | undefined;
|
|
3371
3938
|
exclude?: string[] | undefined;
|
|
3939
|
+
include?: string[] | undefined;
|
|
3372
3940
|
} | {
|
|
3373
3941
|
kind: "registry";
|
|
3374
3942
|
registryId: string;
|
|
3375
3943
|
installPath: string;
|
|
3376
3944
|
severity?: "error" | "info" | "warn" | undefined;
|
|
3377
3945
|
importPath?: string | undefined;
|
|
3378
|
-
include?: string[] | undefined;
|
|
3379
3946
|
exclude?: string[] | undefined;
|
|
3947
|
+
include?: string[] | undefined;
|
|
3380
3948
|
registryHash?: string | undefined;
|
|
3381
3949
|
receiptPath?: string | undefined;
|
|
3382
3950
|
})[] | undefined;
|
|
@@ -3402,6 +3970,7 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3402
3970
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3403
3971
|
ci?: z.objectInputType<{
|
|
3404
3972
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3973
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3405
3974
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3406
3975
|
}>;
|
|
3407
3976
|
type ScaleGovernanceRecord = z.infer<typeof scaleGovernanceRecordSchema>;
|
|
@@ -3469,13 +4038,39 @@ interface GovernanceConfig {
|
|
|
3469
4038
|
components?: Record<string, ComponentPolicyRecord>;
|
|
3470
4039
|
/** Ordered component-policy overrides selected by component identity fields. */
|
|
3471
4040
|
overrides?: ComponentPolicyOverride[];
|
|
3472
|
-
/**
|
|
4041
|
+
/**
|
|
4042
|
+
* Governance CI rendering options: `failOnWarnings` makes warning findings fail the
|
|
4043
|
+
* `--ci` verdict, `failOnInert` makes inert-config diagnostics (FUI9004-FUI9008) fail
|
|
4044
|
+
* it. Both are opt-in; `--allow-inert` bypasses the inert gates.
|
|
4045
|
+
*/
|
|
3473
4046
|
ci?: {
|
|
3474
4047
|
failOnWarnings?: boolean;
|
|
4048
|
+
/**
|
|
4049
|
+
* Fail the `--ci` verdict when the run reports inert-config diagnostics
|
|
4050
|
+
* (FUI9004-FUI9008). Opt-in: the diagnostics themselves stay verdict-neutral,
|
|
4051
|
+
* so a team can adopt the gate once its config is clean. `--allow-inert`
|
|
4052
|
+
* bypasses it, like the governance-inert gate.
|
|
4053
|
+
*/
|
|
4054
|
+
failOnInert?: boolean;
|
|
3475
4055
|
[key: string]: unknown;
|
|
3476
4056
|
};
|
|
3477
4057
|
[key: string]: unknown;
|
|
3478
4058
|
}
|
|
4059
|
+
/**
|
|
4060
|
+
* Tag every entry of a preset's `govern.rules` map as preset-sourced. Non-object entries
|
|
4061
|
+
* (the `"warn"` string shorthand) cannot carry a symbol and are passed through untagged —
|
|
4062
|
+
* presets author the object form, so this is a documented floor, not a silent gap.
|
|
4063
|
+
*
|
|
4064
|
+
* **Non-enumerable**, which is the difference between "does not serialize" and "is not
|
|
4065
|
+
* there". A symbol key already survives neither `JSON.stringify` nor `Object.keys`, but
|
|
4066
|
+
* it does survive `toEqual` — so an enumerable marker turns every consumer that compares
|
|
4067
|
+
* a composed rule config structurally into a failing test, for a property they cannot see
|
|
4068
|
+
* and did not ask for. Fragments Cloud's own policy composer was the first to hit it.
|
|
4069
|
+
* Read it through `isPresetSourcedRule`; nothing else should know it exists.
|
|
4070
|
+
*/
|
|
4071
|
+
declare function markPresetSourcedRules(rules: Record<string, unknown> | undefined): Record<string, unknown> | undefined;
|
|
4072
|
+
/** Whether a merged `govern.rules` entry came from a preset rather than the user. */
|
|
4073
|
+
declare function isPresetSourcedRule(entry: unknown): boolean;
|
|
3479
4074
|
type SeverityOption = {
|
|
3480
4075
|
severity?: GovernanceSeverity;
|
|
3481
4076
|
};
|
|
@@ -3578,4 +4173,4 @@ declare const g: {
|
|
|
3578
4173
|
component: ComponentGovernanceBuilder<Record<string, unknown>>;
|
|
3579
4174
|
};
|
|
3580
4175
|
|
|
3581
|
-
export { type
|
|
4176
|
+
export { type ControlType as $, type AIMetadata as A, type BlockDefinition as B, type CompiledBlock as C, type CanonicalMappingStatus as D, type CompiledFragmentsFile as E, type FragmentDefinition as F, type GovernanceSeverity as G, CompiledFragmentsFileValidationError as H, type CompiledRecipe as I, type CompiledTokenData as J, type CompiledTokenEntry as K, type ComponentGovernanceBuilder as L, type ComponentGovernanceRecord as M, type ComponentRef as N, type ComponentRelation as O, type CompositionMetadata as P, type ContractComponentInput as Q, type ResolvedGovernedFragmentDefinition as R, type StorybookFilterConfig as S, type TokenConfig as T, type ContractIdentityPin as U, type VariantRenderOptions as V, type ContractPolicyInput as W, type ContractPreimage as X, type ContractPropMappingInput as Y, type ContractTokenInput as Z, type ContractWaiverInput as _, type FragmentDefinitionV2 as a, projectContractPreimage as a$, type DesignSystemConfig as a0, type DiffResult as a1, type FigmaPropMapping as a2, type FragmentContract as a3, type FragmentExample as a4, type FragmentGenerated as a5, type FragmentGuidance as a6, type FragmentMeta as a7, type FragmentProvenance as a8, type FragmentUsage as a9, type SnapshotConfig as aA, type SnippetPolicyConfig as aB, type Theme as aC, type ThemeSeeds as aD, type TokenSourceConfig as aE, type TokenSourceFormat as aF, type VerifyRequest as aG, type VerifyResult as aH, type Viewport as aI, canonicalBridgeV1Schema as aJ, componentGovernanceRecordSchema as aK, componentGovernanceRecordsSchema as aL, contractComponentsFromFragments as aM, contractPolicyFromGovernanceConfig as aN, diffContractDomains as aO, g as aP, globalGovernanceRecordSchema as aQ, globalJsxGovernanceRecordSchema as aR, globalStyleGovernanceRecordSchema as aS, governanceConfigSchema as aT, governanceConfigWithLocalCanonical as aU, governanceSeveritySchema as aV, isPresetSourcedRule as aW, localCanonicalContractMappings as aX, markPresetSourcedRules as aY, normalizeGovernanceConfig as aZ, parseCompiledFragmentsFile as a_, type FragmentVariant as aa, type GlobalGovernanceRecord as ab, type GlobalJsxGovernanceRecord as ac, type GlobalStyleGovernanceRecord as ad, type GovernancePropValue as ae, type InspectConfig as af, type LocalCanonicalDeclaration as ag, type LocalCanonicalResolveRule as ah, type Manifest as ai, type ObservedComponentUsage as aj, type ObservedUsageProp as ak, type PlayFunction as al, type PlayFunctionContext as am, type PropDefinition as an, type PropGovernanceBuilder as ao, type PropGovernanceOptions as ap, type PropKey as aq, type PropType as ar, type RecipeDefinition as as, type RegistryOptions as at, type RepoRelativePath as au, type ScaleGovernanceRecord as av, type Screenshot as aw, type ScreenshotConfig as ax, type ScreenshotMetadata as ay, type ServiceConfig as az, type CompiledFragment as b, scaleGovernanceRecordSchema as b0, verifiedContractPreimageFromPin as b1, type AIMetadata$1 as b2, type ComponentRelation$1 as b3, type FragmentContract$1 as b4, type FragmentGenerated$1 as b5, type FragmentMeta$1 as b6, type FragmentUsage$1 as b7, type ImportEntry as b8, type PerformanceData as b9, type PerformanceSummary as ba, type PropDefinition$1 as bb, type Theme$1 as bc, type VerifyResult$1 as bd, type ContractDomain as c, type ContractCatalogInput as d, type GovernedFragmentDefinition as e, type GovernanceConfig as f, type FragmentsConfig as g, type FragmentComponent as h, type FigmaStringMapping as i, type FigmaBooleanMapping as j, type FigmaEnumMapping as k, type FigmaInstanceMapping as l, type FigmaChildrenMapping as m, type FigmaTextContentMapping as n, type RelationshipType as o, type VariantLoader as p, type CanonicalSource as q, type CanonicalBridgeV1 as r, type ContractCanonicalMappingInput as s, type AccessibilityGovernanceBuilder as t, type AppConfig as u, type BaselineInfo as v, type BoundingBox as w, CONTRACT_DOMAINS as x, CONTRACT_PREIMAGE_CAPABILITY_HEADER as y, CONTRACT_PREIMAGE_SCHEMA as z };
|