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