@usefragments/core 1.9.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  export { GOVERNANCE_TELEMETRY_FIELDS, GOVERNANCE_TELEMETRY_SOURCE_DISCLOSURE, GOVERNANCE_TELEMETRY_TOP_LEVEL_FIELDS, GovernanceTelemetryCarriage, GovernanceTelemetryField, GovernanceTelemetryTopLevelField } from './governance-telemetry.js';
2
- import { F as Finding, A as AgentFormat, E as EvidenceGrade, a as FindingFix } from './index-_sxhUNqx.js';
3
- export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOutput, G as CanonicalGovernanceVerdict, e as EVIDENCE_ORDER, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, l as GovernanceVerdictMetadata, I as InspectClaim, m as InspectClaimTier, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, s as canBlock, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from './index-_sxhUNqx.js';
2
+ import { F as Finding, A as AgentFormat, E as EvidenceGrade, a as FindingFix } from './index-DtHxs0Pf.js';
3
+ export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOutput, G as CanonicalGovernanceVerdict, e as EVIDENCE_ORDER, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, l as GovernanceVerdictMetadata, I as InspectClaim, m as InspectClaimTier, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, s as canBlock, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from './index-DtHxs0Pf.js';
4
4
  import { Severity } from './severity.js';
5
5
  export { SEVERITIES, SEVERITY_RANK, SEVERITY_WEIGHTS, SeverityLevel, compareSeverity, maxSeverity, severityLevel, severitySchema, sortBySeverity } from './severity.js';
6
6
  export { BridgeViolationInput, CODES, CodeCategory, CodeLifecycle, EXPLAIN_URL_BASE, FuiCode, bridgeSourceViolation, bridgeSourceViolations, byCode, byRuleId, explainUrlForCode } from './codes/index.js';
7
- import { c as ContractDomain, d as ContractCatalogInput, G as GovernanceSeverity, b as CompiledFragment, e as GovernedFragmentDefinition, R as ResolvedGovernedFragmentDefinition, f as GovernanceConfig, g as FragmentsConfig, T as TokenConfig, h as FragmentComponent, B as BlockDefinition, C as CompiledBlock, F as FragmentDefinition, a as FragmentDefinitionV2, S as StorybookFilterConfig, i as FigmaStringMapping, j as FigmaBooleanMapping, k as FigmaEnumMapping, l as FigmaInstanceMapping, m as FigmaChildrenMapping, n as FigmaTextContentMapping, o as RelationshipType, V as VariantRenderOptions, p as VariantLoader, q as CanonicalSource, r as CanonicalBridgeV1, s as ContractCanonicalMappingInput } from './governance-eEzCyfes.js';
8
- export { A as AIMetadata, t as AccessibilityGovernanceBuilder, u as AppConfig, v as BaselineInfo, w as BoundingBox, x as CONTRACT_DOMAINS, y as CONTRACT_PREIMAGE_CAPABILITY_HEADER, z as CONTRACT_PREIMAGE_SCHEMA, D as CanonicalMappingStatus, E as CompiledFragmentsFile, H as CompiledFragmentsFileValidationError, I as CompiledRecipe, J as CompiledTokenData, K as CompiledTokenEntry, L as ComponentGovernanceBuilder, M as ComponentGovernanceRecord, N as ComponentRef, O as ComponentRelation, P as CompositionMetadata, Q as ContractComponentInput, U as ContractIdentityPin, W as ContractPolicyInput, X as ContractPreimage, Y as ContractPropMappingInput, Z as ContractTokenInput, _ as ContractWaiverInput, $ as ControlType, a0 as DesignSystemConfig, a1 as DiffResult, a2 as FigmaPropMapping, a3 as FragmentContract, a4 as FragmentExample, a5 as FragmentGenerated, a6 as FragmentGuidance, a7 as FragmentMeta, a8 as FragmentProvenance, a9 as FragmentUsage, aa as FragmentVariant, ab as GlobalGovernanceRecord, ac as GlobalJsxGovernanceRecord, ad as GlobalStyleGovernanceRecord, ae as GovernancePropValue, af as InspectConfig, ag as LocalCanonicalDeclaration, ah as LocalCanonicalResolveRule, ai as Manifest, aj as ObservedComponentUsage, ak as ObservedUsageProp, al as PlayFunction, am as PlayFunctionContext, an as PropDefinition, ao as PropGovernanceBuilder, ap as PropGovernanceOptions, aq as PropKey, ar as PropType, as as RecipeDefinition, at as RegistryOptions, au as RepoRelativePath, av as ScaleGovernanceRecord, aw as Screenshot, ax as ScreenshotConfig, ay as ScreenshotMetadata, az as ServiceConfig, aA as SnapshotConfig, aB as SnippetPolicyConfig, aC as Theme, aD as ThemeSeeds, aE as TokenSourceConfig, aF as TokenSourceFormat, aG as VerifyRequest, aH as VerifyResult, aI as Viewport, aJ as canonicalBridgeV1Schema, aK as componentGovernanceRecordSchema, aL as componentGovernanceRecordsSchema, aM as contractComponentsFromFragments, aN as contractPolicyFromGovernanceConfig, aO as diffContractDomains, aP as g, aQ as globalGovernanceRecordSchema, aR as globalJsxGovernanceRecordSchema, aS as globalStyleGovernanceRecordSchema, aT as governanceConfigSchema, aU as governanceConfigWithLocalCanonical, aV as governanceSeveritySchema, aW as isPresetSourcedRule, aX as localCanonicalContractMappings, aY as markPresetSourcedRules, aZ as normalizeGovernanceConfig, a_ as parseCompiledFragmentsFile, a$ as projectContractPreimage, b0 as scaleGovernanceRecordSchema, b1 as verifiedContractPreimageFromPin } from './governance-eEzCyfes.js';
9
- import { z } from 'zod';
7
+ import { c as ContractDomain, d as ContractCatalogInput, G as GovernanceSeverity, b as CompiledFragment, e as GovernedFragmentDefinition, R as ResolvedGovernedFragmentDefinition, f as GovernanceConfig, g as FragmentsConfig, T as TokenConfig, h as FragmentComponent, B as BlockDefinition, C as CompiledBlock, F as FragmentDefinition, a as FragmentDefinitionV2, S as StorybookFilterConfig, i as FigmaStringMapping, j as FigmaBooleanMapping, k as FigmaEnumMapping, l as FigmaInstanceMapping, m as FigmaChildrenMapping, n as FigmaTextContentMapping, o as RelationshipType, V as VariantRenderOptions, p as VariantLoader, q as CanonicalSource, r as CanonicalBridgeV1, s as ContractCanonicalMappingInput } from './governance-B5WWcmFY.js';
8
+ export { A as AIMetadata, t as AccessibilityGovernanceBuilder, u as AppConfig, v as BaselineInfo, w as BoundingBox, x as CONTRACT_DOMAINS, y as CONTRACT_PREIMAGE_CAPABILITY_HEADER, z as CONTRACT_PREIMAGE_SCHEMA, D as CanonicalMappingStatus, E as CompiledFragmentsFile, H as CompiledFragmentsFileValidationError, I as CompiledRecipe, J as CompiledTokenData, K as CompiledTokenEntry, L as ComponentGovernanceBuilder, M as ComponentGovernanceRecord, N as ComponentRef, O as ComponentRelation, P as CompositionMetadata, Q as ContractComponentInput, U as ContractIdentityPin, W as ContractPolicyInput, X as ContractPreimage, Y as ContractPropMappingInput, Z as ContractTokenInput, _ as ContractWaiverInput, $ as ControlType, a0 as DesignSystemConfig, a1 as DiffResult, a2 as FigmaPropMapping, a3 as FragmentContract, a4 as FragmentExample, a5 as FragmentGenerated, a6 as FragmentGuidance, a7 as FragmentMeta, a8 as FragmentProvenance, a9 as FragmentUsage, aa as FragmentVariant, ab as GlobalGovernanceRecord, ac as GlobalJsxGovernanceRecord, ad as GlobalStyleGovernanceRecord, ae as GovernancePropValue, af as InspectConfig, ag as LocalCanonicalDeclaration, ah as LocalCanonicalResolveRule, ai as Manifest, aj as ObservedComponentUsage, ak as ObservedUsageProp, al as PlayFunction, am as PlayFunctionContext, an as PropDefinition, ao as PropGovernanceBuilder, ap as PropGovernanceOptions, aq as PropKey, ar as PropType, as as RecipeDefinition, at as RegistryOptions, au as RepoRelativePath, av as ScaleGovernanceRecord, aw as Screenshot, ax as ScreenshotConfig, ay as ScreenshotMetadata, az as ServiceConfig, aA as SnapshotConfig, aB as SnippetPolicyConfig, aC as Theme, aD as ThemeSeeds, aE as TokenSourceConfig, aF as TokenSourceFormat, aG as VerifyRequest, aH as VerifyResult, aI as Viewport, aJ as canonicalBridgeV1Schema, aK as componentGovernanceRecordSchema, aL as componentGovernanceRecordsSchema, aM as contractComponentsFromFragments, aN as contractPolicyFromGovernanceConfig, aO as diffContractDomains, aP as g, aQ as globalGovernanceRecordSchema, aR as globalJsxGovernanceRecordSchema, aS as globalStyleGovernanceRecordSchema, aT as governanceConfigSchema, aU as governanceConfigWithLocalCanonical, aV as governanceSeveritySchema, aW as isPresetSourcedRule, aX as localCanonicalContractMappings, aY as markPresetSourcedRules, aZ as normalizeGovernanceConfig, a_ as parseCompiledFragmentsFile, a$ as projectContractPreimage, b0 as scaleGovernanceRecordSchema, b1 as verifiedContractPreimageFromPin } from './governance-B5WWcmFY.js';
9
+ import { z, ZodTypeAny } from 'zod';
10
10
  import { RegistryArtifact, RegistryDependency, RegistryInstallReceipt } from './registry.js';
11
11
  export { REGISTRY_ARTIFACT_SCHEMA_VERSION, REGISTRY_INSTALL_RECEIPT_SCHEMA_VERSION, REGISTRY_MANIFEST_SCHEMA_VERSION, RegistryArtifactInput, RegistryComponent, RegistryComponentExport, RegistryDependencyType, RegistryEntrypoint, RegistryFile, RegistryFileContent, RegistryFileInput, RegistryFileRole, RegistryInstallProfile, RegistryInstallReceiptComponent, RegistryInstallReceiptFile, RegistryManifest, RegistryManifestDraft, RegistrySource, assertValidRegistryArtifact, buildRegistryArtifact, buildRegistryFile, computeRegistryHash, finalizeRegistryManifest, hashRegistryFileContent, registryArtifactDigest, registryArtifactSchema, registryComponentExportSchema, registryComponentSchema, registryDependencySchema, registryDependencyTypeSchema, registryEntrypointSchema, registryFileContentSchema, registryFileRoleSchema, registryFileSchema, registryFileSize, registryInstallProfileSchema, registryInstallReceiptComponentSchema, registryInstallReceiptFileSchema, registryInstallReceiptSchema, registryManifestCanonicalPreimage, registryManifestDraftSchema, registryManifestSchema, registrySourceSchema } from './registry.js';
12
12
  import { ReactNode, ComponentType } from 'react';
@@ -2224,7 +2224,7 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
2224
2224
  name: string;
2225
2225
  }[];
2226
2226
  file: string;
2227
- tier: "composition" | "core";
2227
+ tier: "core" | "composition";
2228
2228
  description: string;
2229
2229
  publicSlug: string | null;
2230
2230
  propCount: number;
@@ -2245,7 +2245,7 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
2245
2245
  name: string;
2246
2246
  }[];
2247
2247
  file: string;
2248
- tier: "composition" | "core";
2248
+ tier: "core" | "composition";
2249
2249
  description: string;
2250
2250
  publicSlug: string | null;
2251
2251
  propCount: number;
@@ -2354,7 +2354,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2354
2354
  name: string;
2355
2355
  }[];
2356
2356
  file: string;
2357
- tier: "composition" | "core";
2357
+ tier: "core" | "composition";
2358
2358
  description: string;
2359
2359
  publicSlug: string | null;
2360
2360
  propCount: number;
@@ -2375,7 +2375,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2375
2375
  name: string;
2376
2376
  }[];
2377
2377
  file: string;
2378
- tier: "composition" | "core";
2378
+ tier: "core" | "composition";
2379
2379
  description: string;
2380
2380
  publicSlug: string | null;
2381
2381
  propCount: number;
@@ -2398,7 +2398,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2398
2398
  name: string;
2399
2399
  }[];
2400
2400
  file: string;
2401
- tier: "composition" | "core";
2401
+ tier: "core" | "composition";
2402
2402
  description: string;
2403
2403
  publicSlug: string | null;
2404
2404
  propCount: number;
@@ -2444,7 +2444,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2444
2444
  name: string;
2445
2445
  }[];
2446
2446
  file: string;
2447
- tier: "composition" | "core";
2447
+ tier: "core" | "composition";
2448
2448
  description: string;
2449
2449
  publicSlug: string | null;
2450
2450
  propCount: number;
@@ -2552,7 +2552,6 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2552
2552
  description?: string | undefined;
2553
2553
  }>, "many">;
2554
2554
  }, "strip", z.ZodTypeAny, {
2555
- schemaVersion: 1;
2556
2555
  flat: {
2557
2556
  value: string;
2558
2557
  path: string[];
@@ -2561,6 +2560,7 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2561
2560
  type?: string | undefined;
2562
2561
  description?: string | undefined;
2563
2562
  }[];
2563
+ schemaVersion: 1;
2564
2564
  catalogRevision: string;
2565
2565
  catalogUpdatedAt: string;
2566
2566
  categories: Record<string, {
@@ -2575,7 +2575,6 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2575
2575
  count: number;
2576
2576
  }>;
2577
2577
  }, {
2578
- schemaVersion: 1;
2579
2578
  flat: {
2580
2579
  value: string;
2581
2580
  path: string[];
@@ -2584,6 +2583,7 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2584
2583
  type?: string | undefined;
2585
2584
  description?: string | undefined;
2586
2585
  }[];
2586
+ schemaVersion: 1;
2587
2587
  catalogRevision: string;
2588
2588
  catalogUpdatedAt: string;
2589
2589
  categories: Record<string, {
@@ -2637,8 +2637,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2637
2637
  parentComponentName: z.ZodOptional<z.ZodString>;
2638
2638
  parentComponentKey: z.ZodOptional<z.ZodString>;
2639
2639
  }, "strip", z.ZodTypeAny, {
2640
- source: "design-system";
2641
2640
  status: string;
2641
+ source: "design-system";
2642
2642
  props: Record<string, unknown>;
2643
2643
  category: string;
2644
2644
  name: string;
@@ -2648,7 +2648,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2648
2648
  componentId: string;
2649
2649
  name: string;
2650
2650
  }[];
2651
- tier: "composition" | "core";
2651
+ tier: "core" | "composition";
2652
2652
  description: string;
2653
2653
  publicSlug: string | null;
2654
2654
  relations: Record<string, unknown>[];
@@ -2663,8 +2663,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2663
2663
  parentComponentName?: string | undefined;
2664
2664
  parentComponentKey?: string | undefined;
2665
2665
  }, {
2666
- source: "design-system";
2667
2666
  status: string;
2667
+ source: "design-system";
2668
2668
  props: Record<string, unknown>;
2669
2669
  category: string;
2670
2670
  name: string;
@@ -2674,7 +2674,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2674
2674
  componentId: string;
2675
2675
  name: string;
2676
2676
  }[];
2677
- tier: "composition" | "core";
2677
+ tier: "core" | "composition";
2678
2678
  description: string;
2679
2679
  publicSlug: string | null;
2680
2680
  relations: Record<string, unknown>[];
@@ -2694,8 +2694,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2694
2694
  componentId: string;
2695
2695
  file: string;
2696
2696
  component: {
2697
- source: "design-system";
2698
2697
  status: string;
2698
+ source: "design-system";
2699
2699
  props: Record<string, unknown>;
2700
2700
  category: string;
2701
2701
  name: string;
@@ -2705,7 +2705,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2705
2705
  componentId: string;
2706
2706
  name: string;
2707
2707
  }[];
2708
- tier: "composition" | "core";
2708
+ tier: "core" | "composition";
2709
2709
  description: string;
2710
2710
  publicSlug: string | null;
2711
2711
  relations: Record<string, unknown>[];
@@ -2727,8 +2727,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2727
2727
  componentId: string;
2728
2728
  file: string;
2729
2729
  component: {
2730
- source: "design-system";
2731
2730
  status: string;
2731
+ source: "design-system";
2732
2732
  props: Record<string, unknown>;
2733
2733
  category: string;
2734
2734
  name: string;
@@ -2738,7 +2738,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2738
2738
  componentId: string;
2739
2739
  name: string;
2740
2740
  }[];
2741
- tier: "composition" | "core";
2741
+ tier: "core" | "composition";
2742
2742
  description: string;
2743
2743
  publicSlug: string | null;
2744
2744
  relations: Record<string, unknown>[];
@@ -7108,12 +7108,15 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7108
7108
  ci: z.ZodOptional<z.ZodObject<{
7109
7109
  failOnWarnings: z.ZodOptional<z.ZodBoolean>;
7110
7110
  failOnInert: z.ZodOptional<z.ZodBoolean>;
7111
+ failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
7111
7112
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7112
7113
  failOnWarnings: z.ZodOptional<z.ZodBoolean>;
7113
7114
  failOnInert: z.ZodOptional<z.ZodBoolean>;
7115
+ failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
7114
7116
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7115
7117
  failOnWarnings: z.ZodOptional<z.ZodBoolean>;
7116
7118
  failOnInert: z.ZodOptional<z.ZodBoolean>;
7119
+ failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
7117
7120
  }, z.ZodTypeAny, "passthrough">>>;
7118
7121
  }, "strict", z.ZodTypeAny, {
7119
7122
  components?: Record<string, {
@@ -7341,6 +7344,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7341
7344
  ci?: z.objectOutputType<{
7342
7345
  failOnWarnings: z.ZodOptional<z.ZodBoolean>;
7343
7346
  failOnInert: z.ZodOptional<z.ZodBoolean>;
7347
+ failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
7344
7348
  }, z.ZodTypeAny, "passthrough"> | undefined;
7345
7349
  }, {
7346
7350
  components?: Record<string, {
@@ -7568,6 +7572,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7568
7572
  ci?: z.objectInputType<{
7569
7573
  failOnWarnings: z.ZodOptional<z.ZodBoolean>;
7570
7574
  failOnInert: z.ZodOptional<z.ZodBoolean>;
7575
+ failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
7571
7576
  }, z.ZodTypeAny, "passthrough"> | undefined;
7572
7577
  }>>;
7573
7578
  inspect: z.ZodOptional<z.ZodObject<{
@@ -7659,60 +7664,6 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7659
7664
  }[] | undefined;
7660
7665
  }>>;
7661
7666
  }, "strip", z.ZodTypeAny, {
7662
- components?: string[] | undefined;
7663
- screenshots?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
7664
- topology?: {
7665
- version: number;
7666
- areas: {
7667
- name: string;
7668
- criticality: "high" | "medium" | "low" | "revenue" | "regulated";
7669
- owners: string[];
7670
- id: string;
7671
- files: string[];
7672
- routes?: string[] | undefined;
7673
- priority?: number | undefined;
7674
- }[];
7675
- base?: "app" | "repo" | undefined;
7676
- } | undefined;
7677
- tokens?: z.objectOutputType<{
7678
- include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7679
- sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
7680
- path: z.ZodEffects<z.ZodString, string, string>;
7681
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7682
- }, "strip", z.ZodTypeAny, {
7683
- path: string;
7684
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7685
- }, {
7686
- path: string;
7687
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7688
- }>, "many">>;
7689
- packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7690
- aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7691
- upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
7692
- packageName: z.ZodString;
7693
- version: z.ZodOptional<z.ZodString>;
7694
- digest: z.ZodOptional<z.ZodString>;
7695
- }, "strip", z.ZodTypeAny, {
7696
- packageName: string;
7697
- version?: string | undefined;
7698
- digest?: string | undefined;
7699
- }, {
7700
- packageName: string;
7701
- version?: string | undefined;
7702
- digest?: string | undefined;
7703
- }>, "many">>;
7704
- exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7705
- themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7706
- enabled: z.ZodOptional<z.ZodBoolean>;
7707
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7708
- namespace: z.ZodOptional<z.ZodString>;
7709
- }, z.ZodTypeAny, "passthrough"> | undefined;
7710
- performance?: "strict" | "relaxed" | "standard" | {
7711
- preset?: "strict" | "relaxed" | "standard" | undefined;
7712
- budgets?: {
7713
- bundleSize?: number | undefined;
7714
- } | undefined;
7715
- } | undefined;
7716
7667
  govern?: {
7717
7668
  components?: Record<string, {
7718
7669
  rules: ({
@@ -7939,8 +7890,63 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7939
7890
  ci?: z.objectOutputType<{
7940
7891
  failOnWarnings: z.ZodOptional<z.ZodBoolean>;
7941
7892
  failOnInert: z.ZodOptional<z.ZodBoolean>;
7893
+ failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
7942
7894
  }, z.ZodTypeAny, "passthrough"> | undefined;
7943
7895
  } | undefined;
7896
+ components?: string[] | undefined;
7897
+ screenshots?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
7898
+ topology?: {
7899
+ version: number;
7900
+ areas: {
7901
+ name: string;
7902
+ criticality: "high" | "medium" | "low" | "revenue" | "regulated";
7903
+ owners: string[];
7904
+ id: string;
7905
+ files: string[];
7906
+ routes?: string[] | undefined;
7907
+ priority?: number | undefined;
7908
+ }[];
7909
+ base?: "app" | "repo" | undefined;
7910
+ } | undefined;
7911
+ tokens?: z.objectOutputType<{
7912
+ include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7913
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
7914
+ path: z.ZodEffects<z.ZodString, string, string>;
7915
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7916
+ }, "strip", z.ZodTypeAny, {
7917
+ path: string;
7918
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7919
+ }, {
7920
+ path: string;
7921
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7922
+ }>, "many">>;
7923
+ packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7924
+ aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7925
+ upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
7926
+ packageName: z.ZodString;
7927
+ version: z.ZodOptional<z.ZodString>;
7928
+ digest: z.ZodOptional<z.ZodString>;
7929
+ }, "strip", z.ZodTypeAny, {
7930
+ packageName: string;
7931
+ version?: string | undefined;
7932
+ digest?: string | undefined;
7933
+ }, {
7934
+ packageName: string;
7935
+ version?: string | undefined;
7936
+ digest?: string | undefined;
7937
+ }>, "many">>;
7938
+ exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7939
+ themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7940
+ enabled: z.ZodOptional<z.ZodBoolean>;
7941
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7942
+ namespace: z.ZodOptional<z.ZodString>;
7943
+ }, z.ZodTypeAny, "passthrough"> | undefined;
7944
+ performance?: "strict" | "relaxed" | "standard" | {
7945
+ preset?: "strict" | "relaxed" | "standard" | undefined;
7946
+ budgets?: {
7947
+ bundleSize?: number | undefined;
7948
+ } | undefined;
7949
+ } | undefined;
7944
7950
  exclude?: string[] | undefined;
7945
7951
  include?: string[] | undefined;
7946
7952
  registry?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7994,60 +8000,6 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7994
8000
  }[] | undefined;
7995
8001
  } | undefined;
7996
8002
  }, {
7997
- components?: string[] | undefined;
7998
- screenshots?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
7999
- topology?: {
8000
- version: number;
8001
- areas: {
8002
- name: string;
8003
- criticality: "high" | "medium" | "low" | "revenue" | "regulated";
8004
- owners: string[];
8005
- id: string;
8006
- files: string[];
8007
- routes?: string[] | undefined;
8008
- priority?: number | undefined;
8009
- }[];
8010
- base?: "app" | "repo" | undefined;
8011
- } | undefined;
8012
- tokens?: z.objectInputType<{
8013
- include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8014
- sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
8015
- path: z.ZodEffects<z.ZodString, string, string>;
8016
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8017
- }, "strip", z.ZodTypeAny, {
8018
- path: string;
8019
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8020
- }, {
8021
- path: string;
8022
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8023
- }>, "many">>;
8024
- packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8025
- aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8026
- upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
8027
- packageName: z.ZodString;
8028
- version: z.ZodOptional<z.ZodString>;
8029
- digest: z.ZodOptional<z.ZodString>;
8030
- }, "strip", z.ZodTypeAny, {
8031
- packageName: string;
8032
- version?: string | undefined;
8033
- digest?: string | undefined;
8034
- }, {
8035
- packageName: string;
8036
- version?: string | undefined;
8037
- digest?: string | undefined;
8038
- }>, "many">>;
8039
- exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8040
- themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8041
- enabled: z.ZodOptional<z.ZodBoolean>;
8042
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8043
- namespace: z.ZodOptional<z.ZodString>;
8044
- }, z.ZodTypeAny, "passthrough"> | undefined;
8045
- performance?: "strict" | "relaxed" | "standard" | {
8046
- preset?: "strict" | "relaxed" | "standard" | undefined;
8047
- budgets?: {
8048
- bundleSize?: number | undefined;
8049
- } | undefined;
8050
- } | undefined;
8051
8003
  govern?: {
8052
8004
  components?: Record<string, {
8053
8005
  rules: ({
@@ -8274,8 +8226,63 @@ declare const fragmentsConfigSchema: z.ZodObject<{
8274
8226
  ci?: z.objectInputType<{
8275
8227
  failOnWarnings: z.ZodOptional<z.ZodBoolean>;
8276
8228
  failOnInert: z.ZodOptional<z.ZodBoolean>;
8229
+ failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
8277
8230
  }, z.ZodTypeAny, "passthrough"> | undefined;
8278
8231
  } | undefined;
8232
+ components?: string[] | undefined;
8233
+ screenshots?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
8234
+ topology?: {
8235
+ version: number;
8236
+ areas: {
8237
+ name: string;
8238
+ criticality: "high" | "medium" | "low" | "revenue" | "regulated";
8239
+ owners: string[];
8240
+ id: string;
8241
+ files: string[];
8242
+ routes?: string[] | undefined;
8243
+ priority?: number | undefined;
8244
+ }[];
8245
+ base?: "app" | "repo" | undefined;
8246
+ } | undefined;
8247
+ tokens?: z.objectInputType<{
8248
+ include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8249
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
8250
+ path: z.ZodEffects<z.ZodString, string, string>;
8251
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8252
+ }, "strip", z.ZodTypeAny, {
8253
+ path: string;
8254
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8255
+ }, {
8256
+ path: string;
8257
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8258
+ }>, "many">>;
8259
+ packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8260
+ aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8261
+ upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
8262
+ packageName: z.ZodString;
8263
+ version: z.ZodOptional<z.ZodString>;
8264
+ digest: z.ZodOptional<z.ZodString>;
8265
+ }, "strip", z.ZodTypeAny, {
8266
+ packageName: string;
8267
+ version?: string | undefined;
8268
+ digest?: string | undefined;
8269
+ }, {
8270
+ packageName: string;
8271
+ version?: string | undefined;
8272
+ digest?: string | undefined;
8273
+ }>, "many">>;
8274
+ exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8275
+ themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8276
+ enabled: z.ZodOptional<z.ZodBoolean>;
8277
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8278
+ namespace: z.ZodOptional<z.ZodString>;
8279
+ }, z.ZodTypeAny, "passthrough"> | undefined;
8280
+ performance?: "strict" | "relaxed" | "standard" | {
8281
+ preset?: "strict" | "relaxed" | "standard" | undefined;
8282
+ budgets?: {
8283
+ bundleSize?: number | undefined;
8284
+ } | undefined;
8285
+ } | undefined;
8279
8286
  exclude?: string[] | undefined;
8280
8287
  include?: string[] | undefined;
8281
8288
  registry?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -9756,6 +9763,7 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9756
9763
  guidelines?: string[] | undefined;
9757
9764
  accessibility?: string[] | undefined;
9758
9765
  };
9766
+ govern?: ((...args: unknown[]) => unknown) | undefined;
9759
9767
  composition?: {
9760
9768
  pattern?: "compound" | "simple" | "controlled" | "wrapper" | undefined;
9761
9769
  subComponents?: string[] | undefined;
@@ -9771,7 +9779,6 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9771
9779
  constraints?: string[] | undefined;
9772
9780
  typeDetails?: Record<string, unknown> | undefined;
9773
9781
  }> | undefined;
9774
- govern?: ((...args: unknown[]) => unknown) | undefined;
9775
9782
  contract?: {
9776
9783
  composition?: {
9777
9784
  rule: {
@@ -9902,6 +9909,7 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9902
9909
  guidelines?: string[] | undefined;
9903
9910
  accessibility?: string[] | undefined;
9904
9911
  };
9912
+ govern?: ((...args: unknown[]) => unknown) | undefined;
9905
9913
  composition?: {
9906
9914
  pattern?: "compound" | "simple" | "controlled" | "wrapper" | undefined;
9907
9915
  subComponents?: string[] | undefined;
@@ -9917,7 +9925,6 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9917
9925
  constraints?: string[] | undefined;
9918
9926
  typeDetails?: Record<string, unknown> | undefined;
9919
9927
  }> | undefined;
9920
- govern?: ((...args: unknown[]) => unknown) | undefined;
9921
9928
  contract?: {
9922
9929
  composition?: {
9923
9930
  rule: {
@@ -11360,8 +11367,6 @@ declare const componentContractSchema: z.ZodObject<{
11360
11367
  };
11361
11368
  propsSummary: string[];
11362
11369
  $schema: string;
11363
- status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11364
- tokens?: string[] | undefined;
11365
11370
  preview?: {
11366
11371
  css?: string[] | undefined;
11367
11372
  theme?: "light" | "dark" | undefined;
@@ -11369,6 +11374,8 @@ declare const componentContractSchema: z.ZodObject<{
11369
11374
  wrapperModule?: string | undefined;
11370
11375
  wrapperExport?: string | undefined;
11371
11376
  } | undefined;
11377
+ status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11378
+ tokens?: string[] | undefined;
11372
11379
  contract?: {
11373
11380
  compoundChildren?: Record<string, {
11374
11381
  required?: boolean | undefined;
@@ -11446,8 +11453,6 @@ declare const componentContractSchema: z.ZodObject<{
11446
11453
  };
11447
11454
  propsSummary: string[];
11448
11455
  $schema: string;
11449
- status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11450
- tokens?: string[] | undefined;
11451
11456
  preview?: {
11452
11457
  css?: string[] | undefined;
11453
11458
  theme?: "light" | "dark" | undefined;
@@ -11455,6 +11460,8 @@ declare const componentContractSchema: z.ZodObject<{
11455
11460
  wrapperModule?: string | undefined;
11456
11461
  wrapperExport?: string | undefined;
11457
11462
  } | undefined;
11463
+ status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11464
+ tokens?: string[] | undefined;
11458
11465
  contract?: {
11459
11466
  compoundChildren?: Record<string, {
11460
11467
  required?: boolean | undefined;
@@ -12413,6 +12420,7 @@ interface Rule {
12413
12420
  id: string;
12414
12421
  version: string;
12415
12422
  run: RuleFn;
12423
+ optionsSchema?: ZodTypeAny;
12416
12424
  }
12417
12425
  declare const RULES: readonly Rule[];
12418
12426
  /**