@usefragments/core 1.3.0 → 1.5.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-MLRDNSSA.js → chunk-HXGE3O2F.js} +39 -1
- package/dist/chunk-HXGE3O2F.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-DYSirwJu.d.ts → governance-BLsyk56o.d.ts} +21 -0
- package/dist/index.d.ts +324 -82
- package/dist/index.js +507 -120
- 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/codes/codes.ts +9 -0
- package/src/conform.ts +5 -0
- package/src/constants.ts +3 -0
- package/src/facts/builders.ts +46 -2
- package/src/facts/facts.test.ts +30 -0
- package/src/facts/index.ts +6 -0
- package/src/facts/types.ts +75 -2
- package/src/governance.test.ts +26 -0
- package/src/identity/classify.test.ts +185 -0
- package/src/identity/classify.ts +257 -0
- package/src/identity/component-key.test.ts +32 -0
- package/src/identity/component-key.ts +35 -0
- package/src/identity/usage.ts +39 -0
- package/src/index.ts +25 -0
- package/src/rules/components-prefer-library.test.ts +196 -0
- package/src/rules/components-prefer-library.ts +68 -1
- package/src/rules/components-shadow-component.test.ts +145 -0
- package/src/rules/components-shadow-component.ts +81 -0
- package/src/rules/fix-availability.ts +1 -0
- package/src/rules/index.ts +7 -0
- package/src/rules/styles-no-raw-color.test.ts +213 -0
- package/src/rules/styles-no-raw-color.ts +125 -0
- package/src/rules/taxonomy.test.ts +16 -1
- package/src/rules/tiers.ts +7 -5
- package/src/schema.ts +21 -2
- package/src/token-types.ts +12 -0
- package/src/tokens/categories.ts +54 -24
- package/src/tokens/scss.test.ts +94 -0
- package/src/tokens/scss.ts +11 -4
- package/src/types.ts +23 -0
- package/dist/chunk-MLRDNSSA.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOu
|
|
|
3
3
|
import { Severity } from './severity.js';
|
|
4
4
|
export { SEVERITIES, SEVERITY_RANK, SEVERITY_WEIGHTS, SeverityLevel, compareSeverity, maxSeverity, severityLevel, severitySchema, sortBySeverity } from './severity.js';
|
|
5
5
|
export { BridgeViolationInput, CODES, CodeCategory, CodeLifecycle, EXPLAIN_URL_BASE, FuiCode, bridgeSourceViolation, bridgeSourceViolations, byCode, byRuleId, explainUrlForCode } from './codes/index.js';
|
|
6
|
-
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 } from './governance-
|
|
7
|
-
export { A as AIMetadata, r as AccessibilityGovernanceBuilder, s as AppConfig, t as BaselineInfo, u as BoundingBox, v as CONTRACT_DOMAINS, w as CONTRACT_PREIMAGE_CAPABILITY_HEADER, x as CONTRACT_PREIMAGE_SCHEMA, y as CanonicalMappingStatus, z as CompiledFragmentsFile, D as CompiledRecipe, E as CompiledTokenData, H as CompiledTokenEntry, I as ComponentGovernanceBuilder, J as ComponentGovernanceRecord, K as ComponentRef, L as ComponentRelation, M as CompositionMetadata, N as ContractCanonicalMappingInput, O as ContractComponentInput, P as ContractIdentityPin, Q as ContractPolicyInput, U as ContractPreimage, W as ContractPropMappingInput, X as ContractTokenInput, Y as ContractWaiverInput, Z as ControlType, _ as DesignSystemConfig, $ as DiffResult, a0 as FigmaPropMapping, a1 as FragmentContract, a2 as FragmentExample, a3 as FragmentGenerated, a4 as FragmentGuidance, a5 as FragmentMeta, a6 as FragmentProvenance, a7 as FragmentUsage, a8 as FragmentVariant, a9 as GlobalGovernanceRecord, aa as GlobalJsxGovernanceRecord, ab as GlobalStyleGovernanceRecord, ac as GovernancePropValue, ad as InspectConfig, ae as LocalCanonicalDeclaration, af as LocalCanonicalResolveRule, ag as Manifest, ah as ObservedComponentUsage, ai as ObservedUsageProp, aj as PlayFunction, ak as PlayFunctionContext, al as PropDefinition, am as PropGovernanceBuilder, an as PropGovernanceOptions, ao as PropKey, ap as PropType, aq as RecipeDefinition, ar as RegistryOptions, as as RepoRelativePath, at as ScaleGovernanceRecord, au as Screenshot, av as ScreenshotConfig, aw as ScreenshotMetadata, ax as ServiceConfig, ay as SnapshotConfig, az as SnippetPolicyConfig, aA as Theme, aB as ThemeSeeds, aC as TokenSourceConfig, aD as TokenSourceFormat, aE as VerifyRequest, aF as VerifyResult, aG as Viewport, aH as componentGovernanceRecordSchema, aI as componentGovernanceRecordsSchema, aJ as contractComponentsFromFragments, aK as contractPolicyFromGovernanceConfig, aL as diffContractDomains, aM as g, aN as globalGovernanceRecordSchema, aO as globalJsxGovernanceRecordSchema, aP as globalStyleGovernanceRecordSchema, aQ as governanceConfigSchema, aR as governanceConfigWithLocalCanonical, aS as governanceSeveritySchema, aT as localCanonicalContractMappings, aU as normalizeGovernanceConfig, aV as projectContractPreimage, aW as scaleGovernanceRecordSchema, aX as verifiedContractPreimageFromPin } from './governance-
|
|
6
|
+
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 } from './governance-BLsyk56o.js';
|
|
7
|
+
export { A as AIMetadata, r as AccessibilityGovernanceBuilder, s as AppConfig, t as BaselineInfo, u as BoundingBox, v as CONTRACT_DOMAINS, w as CONTRACT_PREIMAGE_CAPABILITY_HEADER, x as CONTRACT_PREIMAGE_SCHEMA, y as CanonicalMappingStatus, z as CompiledFragmentsFile, D as CompiledRecipe, E as CompiledTokenData, H as CompiledTokenEntry, I as ComponentGovernanceBuilder, J as ComponentGovernanceRecord, K as ComponentRef, L as ComponentRelation, M as CompositionMetadata, N as ContractCanonicalMappingInput, O as ContractComponentInput, P as ContractIdentityPin, Q as ContractPolicyInput, U as ContractPreimage, W as ContractPropMappingInput, X as ContractTokenInput, Y as ContractWaiverInput, Z as ControlType, _ as DesignSystemConfig, $ as DiffResult, a0 as FigmaPropMapping, a1 as FragmentContract, a2 as FragmentExample, a3 as FragmentGenerated, a4 as FragmentGuidance, a5 as FragmentMeta, a6 as FragmentProvenance, a7 as FragmentUsage, a8 as FragmentVariant, a9 as GlobalGovernanceRecord, aa as GlobalJsxGovernanceRecord, ab as GlobalStyleGovernanceRecord, ac as GovernancePropValue, ad as InspectConfig, ae as LocalCanonicalDeclaration, af as LocalCanonicalResolveRule, ag as Manifest, ah as ObservedComponentUsage, ai as ObservedUsageProp, aj as PlayFunction, ak as PlayFunctionContext, al as PropDefinition, am as PropGovernanceBuilder, an as PropGovernanceOptions, ao as PropKey, ap as PropType, aq as RecipeDefinition, ar as RegistryOptions, as as RepoRelativePath, at as ScaleGovernanceRecord, au as Screenshot, av as ScreenshotConfig, aw as ScreenshotMetadata, ax as ServiceConfig, ay as SnapshotConfig, az as SnippetPolicyConfig, aA as Theme, aB as ThemeSeeds, aC as TokenSourceConfig, aD as TokenSourceFormat, aE as VerifyRequest, aF as VerifyResult, aG as Viewport, aH as componentGovernanceRecordSchema, aI as componentGovernanceRecordsSchema, aJ as contractComponentsFromFragments, aK as contractPolicyFromGovernanceConfig, aL as diffContractDomains, aM as g, aN as globalGovernanceRecordSchema, aO as globalJsxGovernanceRecordSchema, aP as globalStyleGovernanceRecordSchema, aQ as governanceConfigSchema, aR as governanceConfigWithLocalCanonical, aS as governanceSeveritySchema, aT as localCanonicalContractMappings, aU as normalizeGovernanceConfig, aV as projectContractPreimage, aW as scaleGovernanceRecordSchema, aX as verifiedContractPreimageFromPin } from './governance-BLsyk56o.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { RegistryArtifact, RegistryDependency, RegistryInstallReceipt } from './registry.js';
|
|
10
10
|
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';
|
|
@@ -39,6 +39,8 @@ declare const BRAND: {
|
|
|
39
39
|
readonly legacyConfigFile: "segments.config.ts";
|
|
40
40
|
/** CLI command name (e.g., "fragments") */
|
|
41
41
|
readonly cliCommand: "fragments";
|
|
42
|
+
/** Full user-facing CLI invocation for copy printed to end users (e.g., "npx @usefragments/cli") */
|
|
43
|
+
readonly cliInvocation: "npx @usefragments/cli";
|
|
42
44
|
/** Directory for storing fragments, registry, and cache */
|
|
43
45
|
readonly dataDir: ".fragments";
|
|
44
46
|
/** Components subdirectory within .fragments/ */
|
|
@@ -118,6 +120,11 @@ interface ConformInput {
|
|
|
118
120
|
filename?: string;
|
|
119
121
|
/** deterministic (default) applies safe edits; none returns findings only. */
|
|
120
122
|
apply?: "deterministic" | "none";
|
|
123
|
+
/** Explicit request to consolidate a known shadow into its canonical root. */
|
|
124
|
+
shadowConsolidation?: {
|
|
125
|
+
shadow: string;
|
|
126
|
+
canonicalTarget?: string;
|
|
127
|
+
};
|
|
121
128
|
}
|
|
122
129
|
interface ConformLocation {
|
|
123
130
|
line?: number;
|
|
@@ -566,6 +573,145 @@ declare const catalogFixtureATokensDtcg: {
|
|
|
566
573
|
};
|
|
567
574
|
};
|
|
568
575
|
|
|
576
|
+
type RawHtmlPrecisionTier = "exact-html" | "html-advisory" | "input-type" | "role-reimpl" | "interactive-nonsemantic" | "icon-only";
|
|
577
|
+
interface RawHtmlCanonicalMatch {
|
|
578
|
+
canonical: string;
|
|
579
|
+
tier: RawHtmlPrecisionTier;
|
|
580
|
+
}
|
|
581
|
+
declare const RAW_HTML_CANONICAL_TAGS: readonly {
|
|
582
|
+
tagName: string;
|
|
583
|
+
canonical: string;
|
|
584
|
+
tier: "exact-html";
|
|
585
|
+
}[];
|
|
586
|
+
declare const RAW_HTML_ADVISORY_TAGS: readonly {
|
|
587
|
+
tagName: string;
|
|
588
|
+
canonical: string;
|
|
589
|
+
tier: "html-advisory";
|
|
590
|
+
}[];
|
|
591
|
+
declare const RAW_HTML_INPUT_TYPE_CANONICALS: readonly {
|
|
592
|
+
type: string;
|
|
593
|
+
canonical: string;
|
|
594
|
+
tier: "input-type";
|
|
595
|
+
}[];
|
|
596
|
+
declare const RAW_HTML_ROLE_CANONICALS: readonly {
|
|
597
|
+
role: string;
|
|
598
|
+
canonical: string;
|
|
599
|
+
tier: "role-reimpl";
|
|
600
|
+
}[];
|
|
601
|
+
declare function resolveCanonicalForRawHtml(tagName: string, inputType?: string): RawHtmlCanonicalMatch | null;
|
|
602
|
+
declare function resolveCanonicalForAriaRole(role: string): RawHtmlCanonicalMatch | null;
|
|
603
|
+
declare function isRawHtmlAdvisoryTier(tier: RawHtmlPrecisionTier): boolean;
|
|
604
|
+
/**
|
|
605
|
+
* Decide whether a per-component `htmlEquivalent` mapping (raw `tag` → a
|
|
606
|
+
* `canonical` component) may drive a bare-tag canonical-usage finding.
|
|
607
|
+
*
|
|
608
|
+
* The contract:
|
|
609
|
+
* - Low-frequency SEMANTIC tags (dialog, select, textarea, input, …) are always
|
|
610
|
+
* enforceable, so a custom-named component (`<dialog>` → Modal) still maps.
|
|
611
|
+
* - Common/ambiguous tags (button, a, …) enforce ONLY when the mapping AGREES
|
|
612
|
+
* with the framework's curated canonical for that tag — so `<button>` → Button
|
|
613
|
+
* fires, but `<button>` → Chip does not.
|
|
614
|
+
* - Generic structural containers (div, span) have no curated answer and are not
|
|
615
|
+
* semantic → never enforce.
|
|
616
|
+
*
|
|
617
|
+
* This is the guard that stops the canonical-usage flood: a library component
|
|
618
|
+
* being built on a `<div>` must not make every `<div>` a bespoke re-implementation
|
|
619
|
+
* of it (every `<div>` → Accordion, every `<span>` → Badge, every `<button>` → Chip).
|
|
620
|
+
*/
|
|
621
|
+
declare function isEnforceableHtmlEquivalent(args: {
|
|
622
|
+
tag: string;
|
|
623
|
+
canonical: string;
|
|
624
|
+
inputType?: string;
|
|
625
|
+
/**
|
|
626
|
+
* The mapping is an EXPLICIT project declaration of this tag → component
|
|
627
|
+
* (provenance: `localCanonical.resolves`), not a low-confidence inferred
|
|
628
|
+
* `htmlEquivalent`. Explicit declarations enforce a specific interactive tag
|
|
629
|
+
* (`button`/`a`) against any canonical NAME — the agnosticism path — while
|
|
630
|
+
* inferred mappings stay name-gated to the curated canonical (the flood
|
|
631
|
+
* guard). Generic containers (`div`/`span`) are never enforceable even when
|
|
632
|
+
* explicit.
|
|
633
|
+
*/
|
|
634
|
+
explicit?: boolean;
|
|
635
|
+
}): boolean;
|
|
636
|
+
|
|
637
|
+
type IdentityState = "canonical" | "variant" | "shadow" | "composite" | "external" | "unresolved";
|
|
638
|
+
type IdentityConfidence = "confirmed" | "likely" | "review";
|
|
639
|
+
interface CanonicalIdentityReference {
|
|
640
|
+
componentKey: string;
|
|
641
|
+
role: string;
|
|
642
|
+
}
|
|
643
|
+
interface LocalIdentityReference {
|
|
644
|
+
componentKey: string;
|
|
645
|
+
exportName: string;
|
|
646
|
+
}
|
|
647
|
+
interface ExternalIdentityReference {
|
|
648
|
+
localName: string;
|
|
649
|
+
source: string;
|
|
650
|
+
}
|
|
651
|
+
interface ResolvedIntrinsicIdentityRoot {
|
|
652
|
+
kind: "intrinsic";
|
|
653
|
+
tag: string;
|
|
654
|
+
hasRole: boolean;
|
|
655
|
+
interactive: boolean;
|
|
656
|
+
role?: string;
|
|
657
|
+
inputType?: string;
|
|
658
|
+
precisionTier?: RawHtmlPrecisionTier;
|
|
659
|
+
canonicalTargets: readonly CanonicalIdentityReference[];
|
|
660
|
+
}
|
|
661
|
+
type ResolvedIdentityRenderRoot = {
|
|
662
|
+
kind: "canonical";
|
|
663
|
+
localName: string;
|
|
664
|
+
target: CanonicalIdentityReference;
|
|
665
|
+
} | ResolvedIntrinsicIdentityRoot | {
|
|
666
|
+
kind: "external";
|
|
667
|
+
localName: string;
|
|
668
|
+
source: string;
|
|
669
|
+
} | {
|
|
670
|
+
kind: "mixed";
|
|
671
|
+
canonicalTargets: readonly CanonicalIdentityReference[];
|
|
672
|
+
localTargets: readonly LocalIdentityReference[];
|
|
673
|
+
externalTargets: readonly ExternalIdentityReference[];
|
|
674
|
+
intrinsics: readonly ResolvedIntrinsicIdentityRoot[];
|
|
675
|
+
unresolvedNames: readonly string[];
|
|
676
|
+
} | {
|
|
677
|
+
kind: "unresolved";
|
|
678
|
+
reason: string;
|
|
679
|
+
};
|
|
680
|
+
interface IdentityDecision {
|
|
681
|
+
componentKey: string;
|
|
682
|
+
decision: "sanctioned-wrapper" | "rejected-wrapper";
|
|
683
|
+
canonicalTarget?: string;
|
|
684
|
+
decisionId?: string;
|
|
685
|
+
}
|
|
686
|
+
interface ClassifyIdentityInput {
|
|
687
|
+
definition: {
|
|
688
|
+
componentKey: string;
|
|
689
|
+
exportName: string;
|
|
690
|
+
canonical: boolean;
|
|
691
|
+
};
|
|
692
|
+
renderRoot: ResolvedIdentityRenderRoot;
|
|
693
|
+
propSurfaceOverlap?: number;
|
|
694
|
+
stylingOwnership?: "visual-role" | "layout-only" | "none" | "unknown";
|
|
695
|
+
usageCounts?: {
|
|
696
|
+
importers?: number;
|
|
697
|
+
callSites?: number;
|
|
698
|
+
nestedElements?: number;
|
|
699
|
+
staticTextChildren?: number;
|
|
700
|
+
};
|
|
701
|
+
decisions?: readonly IdentityDecision[];
|
|
702
|
+
nameSimilarityTargets?: readonly string[];
|
|
703
|
+
}
|
|
704
|
+
interface IdentityClassification {
|
|
705
|
+
state: IdentityState;
|
|
706
|
+
confidence: IdentityConfidence;
|
|
707
|
+
canonicalTarget?: string;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* Classify already-resolved identity evidence. AST and filesystem concerns stay
|
|
711
|
+
* in the extractor; this function is deterministic and browser-safe.
|
|
712
|
+
*/
|
|
713
|
+
declare function classifyIdentity(input: ClassifyIdentityInput): IdentityClassification;
|
|
714
|
+
|
|
569
715
|
/**
|
|
570
716
|
* Fact IR — discriminated union of governance facts.
|
|
571
717
|
*
|
|
@@ -824,7 +970,20 @@ interface UsageInlineStyleFact extends BaseFact {
|
|
|
824
970
|
kind: "usage_inline_style";
|
|
825
971
|
nodeId: FactId;
|
|
826
972
|
property: string;
|
|
827
|
-
|
|
973
|
+
/**
|
|
974
|
+
* How the extractor resolved the value:
|
|
975
|
+
* - `static` — a string literal (`"#f00"`, `"12px"`).
|
|
976
|
+
* - `number` — a numeric literal (React treats it as `px`).
|
|
977
|
+
* - `css-variable` — a `var(--token)` reference; rules treat it as a token.
|
|
978
|
+
* - `dynamic-raw` — a value constructed at runtime whose *static* fragments
|
|
979
|
+
* unambiguously begin a raw color literal (`` `#${red}` ``,
|
|
980
|
+
* `` `rgb(${r},${g},${b})` ``, `"#" + hex`). `value` carries a reconstructed
|
|
981
|
+
* skeleton with each interpolation rendered as `‹expr›`. Detect-only: a rule
|
|
982
|
+
* may flag it as a raw color but must NEVER attach a deterministic fix
|
|
983
|
+
* (the value is partly runtime). Only color-shaped dynamic values ever
|
|
984
|
+
* surface as facts — a non-color dynamic value stays opaque.
|
|
985
|
+
*/
|
|
986
|
+
valueKind: "static" | "number" | "css-variable" | "dynamic-raw";
|
|
828
987
|
value: string;
|
|
829
988
|
}
|
|
830
989
|
interface UsageTextChildFact extends BaseFact {
|
|
@@ -1008,10 +1167,56 @@ interface CanonicalReplacementFact extends BaseFact {
|
|
|
1008
1167
|
confidence: number;
|
|
1009
1168
|
location?: FactLocation;
|
|
1010
1169
|
}
|
|
1170
|
+
type ComponentDefinitionRenderRoot = {
|
|
1171
|
+
resolution: "canonical";
|
|
1172
|
+
canonical: string;
|
|
1173
|
+
importSource: string;
|
|
1174
|
+
} | {
|
|
1175
|
+
resolution: "intrinsic";
|
|
1176
|
+
tag: string;
|
|
1177
|
+
role?: string;
|
|
1178
|
+
interactive?: boolean;
|
|
1179
|
+
} | {
|
|
1180
|
+
resolution: "mixed";
|
|
1181
|
+
canonicals: string[];
|
|
1182
|
+
intrinsics: string[];
|
|
1183
|
+
} | {
|
|
1184
|
+
resolution: "external";
|
|
1185
|
+
importSource: string;
|
|
1186
|
+
} | {
|
|
1187
|
+
resolution: "unresolved";
|
|
1188
|
+
reason: string;
|
|
1189
|
+
};
|
|
1190
|
+
interface ComponentDefinitionFact extends BaseFact {
|
|
1191
|
+
kind: "component_definition";
|
|
1192
|
+
/** Index-compatible projection of `componentKey`. */
|
|
1193
|
+
componentId: ComponentId;
|
|
1194
|
+
file: string;
|
|
1195
|
+
exportName: string;
|
|
1196
|
+
componentKey: string;
|
|
1197
|
+
renderRoot: ComponentDefinitionRenderRoot;
|
|
1198
|
+
propSurface: string[];
|
|
1199
|
+
stylingChannel?: {
|
|
1200
|
+
module: string;
|
|
1201
|
+
ownsVisualRole: boolean;
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
interface ComponentIdentityFact extends BaseFact {
|
|
1205
|
+
kind: "component_identity";
|
|
1206
|
+
/** Index-compatible projection of `componentKey`. */
|
|
1207
|
+
componentId: ComponentId;
|
|
1208
|
+
componentKey: string;
|
|
1209
|
+
state: IdentityState;
|
|
1210
|
+
confidence: IdentityConfidence;
|
|
1211
|
+
canonicalTarget?: string;
|
|
1212
|
+
decisionId?: string;
|
|
1213
|
+
evidence: FactId[];
|
|
1214
|
+
}
|
|
1011
1215
|
type ComponentLevelFact = ComponentMetadataFact | ComponentCapabilityFact | PropMetadataFact;
|
|
1012
1216
|
type PolicyFact = PropValueAvoidedFact | PropValueForbiddenFact | A11yNameRequiredFact | ScaleFact | ScaleValueFact | StyleRawColorForbiddenFact | StyleRawDimensionForbiddenFact | StylePropertyScaleFact | StyleFontSizeScaleFact | StyleCssVarsMustBeDefinedFact | ContractTokenFact | JsxUnknownPropsForbiddenFact | JsxInlineStyleForbiddenRawFact | JsxImportPathPreferredFact | JsxComponentPreferredFact | TokenDefinitionFact | TailwindPaletteAllowFact | TailwindPaletteDenyFact | TailwindUnknownClassEnabledFact | GovernanceRuleConfigFact;
|
|
1013
1217
|
type UsageFact = UsageNodeFact | UsageComponentFact | UsageImportFact | UsagePropResolvedFact | UsageInlineStyleFact | UsageTextChildFact | StyleDeclarationFact | StyleUnsupportedFact | ClassNameLiteralFact | ClassNameDynamicFact | TailwindClassFact | ThemeDeclarationFact | SuppressionDirectiveFact | TailwindTokenResolvedFact | CanonicalCandidateFact | CanonicalMappingFact | StructuralConfidenceFact | CanonicalReplacementFact;
|
|
1014
|
-
type
|
|
1218
|
+
type IdentityFact = ComponentDefinitionFact | ComponentIdentityFact;
|
|
1219
|
+
type Fact = ComponentLevelFact | PolicyFact | UsageFact | IdentityFact;
|
|
1015
1220
|
type FactKind = Fact["kind"];
|
|
1016
1221
|
/** Narrows a Fact union by kind. */
|
|
1017
1222
|
type FactOfKind<K extends FactKind> = Extract<Fact, {
|
|
@@ -1061,6 +1266,22 @@ declare function makeComponentCapabilityFact(input: {
|
|
|
1061
1266
|
componentId: ComponentId;
|
|
1062
1267
|
capability: string;
|
|
1063
1268
|
}): ComponentCapabilityFact;
|
|
1269
|
+
declare function makeComponentDefinitionFact(input: {
|
|
1270
|
+
file: string;
|
|
1271
|
+
exportName: string;
|
|
1272
|
+
componentKey: string;
|
|
1273
|
+
renderRoot: ComponentDefinitionFact["renderRoot"];
|
|
1274
|
+
propSurface: string[];
|
|
1275
|
+
stylingChannel?: ComponentDefinitionFact["stylingChannel"];
|
|
1276
|
+
}): ComponentDefinitionFact;
|
|
1277
|
+
declare function makeComponentIdentityFact(input: {
|
|
1278
|
+
componentKey: string;
|
|
1279
|
+
state: ComponentIdentityFact["state"];
|
|
1280
|
+
confidence: ComponentIdentityFact["confidence"];
|
|
1281
|
+
canonicalTarget?: string;
|
|
1282
|
+
decisionId?: string;
|
|
1283
|
+
evidence: FactId[];
|
|
1284
|
+
}): ComponentIdentityFact;
|
|
1064
1285
|
declare function makeCanonicalCandidateFact(input: {
|
|
1065
1286
|
componentId: ComponentId;
|
|
1066
1287
|
canonical: string;
|
|
@@ -1224,7 +1445,7 @@ declare function makeUsagePropResolvedFact(input: {
|
|
|
1224
1445
|
declare function makeUsageInlineStyleFact(input: {
|
|
1225
1446
|
nodeId: FactId;
|
|
1226
1447
|
property: string;
|
|
1227
|
-
valueKind: "static" | "number" | "css-variable";
|
|
1448
|
+
valueKind: "static" | "number" | "css-variable" | "dynamic-raw";
|
|
1228
1449
|
value: string;
|
|
1229
1450
|
}): UsageInlineStyleFact;
|
|
1230
1451
|
declare function makeUsageTextChildFact(input: {
|
|
@@ -1773,8 +1994,8 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
|
|
|
1773
1994
|
componentId: string;
|
|
1774
1995
|
name: string;
|
|
1775
1996
|
}[];
|
|
1776
|
-
publicSlug: string | null;
|
|
1777
1997
|
tier: "core" | "composition";
|
|
1998
|
+
publicSlug: string | null;
|
|
1778
1999
|
propCount: number;
|
|
1779
2000
|
hasExamples: boolean;
|
|
1780
2001
|
hasCompoundChildren: boolean;
|
|
@@ -1794,8 +2015,8 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
|
|
|
1794
2015
|
componentId: string;
|
|
1795
2016
|
name: string;
|
|
1796
2017
|
}[];
|
|
1797
|
-
publicSlug: string | null;
|
|
1798
2018
|
tier: "core" | "composition";
|
|
2019
|
+
publicSlug: string | null;
|
|
1799
2020
|
propCount: number;
|
|
1800
2021
|
hasExamples: boolean;
|
|
1801
2022
|
hasCompoundChildren: boolean;
|
|
@@ -1903,8 +2124,8 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
1903
2124
|
componentId: string;
|
|
1904
2125
|
name: string;
|
|
1905
2126
|
}[];
|
|
1906
|
-
publicSlug: string | null;
|
|
1907
2127
|
tier: "core" | "composition";
|
|
2128
|
+
publicSlug: string | null;
|
|
1908
2129
|
propCount: number;
|
|
1909
2130
|
hasExamples: boolean;
|
|
1910
2131
|
hasCompoundChildren: boolean;
|
|
@@ -1924,8 +2145,8 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
1924
2145
|
componentId: string;
|
|
1925
2146
|
name: string;
|
|
1926
2147
|
}[];
|
|
1927
|
-
publicSlug: string | null;
|
|
1928
2148
|
tier: "core" | "composition";
|
|
2149
|
+
publicSlug: string | null;
|
|
1929
2150
|
propCount: number;
|
|
1930
2151
|
hasExamples: boolean;
|
|
1931
2152
|
hasCompoundChildren: boolean;
|
|
@@ -1947,8 +2168,8 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
1947
2168
|
componentId: string;
|
|
1948
2169
|
name: string;
|
|
1949
2170
|
}[];
|
|
1950
|
-
publicSlug: string | null;
|
|
1951
2171
|
tier: "core" | "composition";
|
|
2172
|
+
publicSlug: string | null;
|
|
1952
2173
|
propCount: number;
|
|
1953
2174
|
hasExamples: boolean;
|
|
1954
2175
|
hasCompoundChildren: boolean;
|
|
@@ -1993,8 +2214,8 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
1993
2214
|
componentId: string;
|
|
1994
2215
|
name: string;
|
|
1995
2216
|
}[];
|
|
1996
|
-
publicSlug: string | null;
|
|
1997
2217
|
tier: "core" | "composition";
|
|
2218
|
+
publicSlug: string | null;
|
|
1998
2219
|
propCount: number;
|
|
1999
2220
|
hasExamples: boolean;
|
|
2000
2221
|
hasCompoundChildren: boolean;
|
|
@@ -2196,9 +2417,9 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2196
2417
|
componentId: string;
|
|
2197
2418
|
name: string;
|
|
2198
2419
|
}[];
|
|
2420
|
+
tier: "core" | "composition";
|
|
2199
2421
|
source: "design-system";
|
|
2200
2422
|
publicSlug: string | null;
|
|
2201
|
-
tier: "core" | "composition";
|
|
2202
2423
|
relations: Record<string, unknown>[];
|
|
2203
2424
|
publicId: string | null;
|
|
2204
2425
|
usageGuidance: string;
|
|
@@ -2222,9 +2443,9 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2222
2443
|
componentId: string;
|
|
2223
2444
|
name: string;
|
|
2224
2445
|
}[];
|
|
2446
|
+
tier: "core" | "composition";
|
|
2225
2447
|
source: "design-system";
|
|
2226
2448
|
publicSlug: string | null;
|
|
2227
|
-
tier: "core" | "composition";
|
|
2228
2449
|
relations: Record<string, unknown>[];
|
|
2229
2450
|
publicId: string | null;
|
|
2230
2451
|
usageGuidance: string;
|
|
@@ -2253,9 +2474,9 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2253
2474
|
componentId: string;
|
|
2254
2475
|
name: string;
|
|
2255
2476
|
}[];
|
|
2477
|
+
tier: "core" | "composition";
|
|
2256
2478
|
source: "design-system";
|
|
2257
2479
|
publicSlug: string | null;
|
|
2258
|
-
tier: "core" | "composition";
|
|
2259
2480
|
relations: Record<string, unknown>[];
|
|
2260
2481
|
publicId: string | null;
|
|
2261
2482
|
usageGuidance: string;
|
|
@@ -2286,9 +2507,9 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2286
2507
|
componentId: string;
|
|
2287
2508
|
name: string;
|
|
2288
2509
|
}[];
|
|
2510
|
+
tier: "core" | "composition";
|
|
2289
2511
|
source: "design-system";
|
|
2290
2512
|
publicSlug: string | null;
|
|
2291
|
-
tier: "core" | "composition";
|
|
2292
2513
|
relations: Record<string, unknown>[];
|
|
2293
2514
|
publicId: string | null;
|
|
2294
2515
|
usageGuidance: string;
|
|
@@ -2835,8 +3056,8 @@ declare const mcpComponentSchema: z.ZodObject<{
|
|
|
2835
3056
|
importPath?: string | undefined;
|
|
2836
3057
|
publicRef?: string | undefined;
|
|
2837
3058
|
sourcePath?: string | undefined;
|
|
2838
|
-
publicSlug?: string | null | undefined;
|
|
2839
3059
|
tier?: string | undefined;
|
|
3060
|
+
publicSlug?: string | null | undefined;
|
|
2840
3061
|
packageName?: string | undefined;
|
|
2841
3062
|
isCanonical?: boolean | undefined;
|
|
2842
3063
|
sourceRepoFullName?: string | undefined;
|
|
@@ -2885,8 +3106,8 @@ declare const mcpComponentSchema: z.ZodObject<{
|
|
|
2885
3106
|
accepts?: string[] | undefined;
|
|
2886
3107
|
visibility?: "public" | "internal" | undefined;
|
|
2887
3108
|
}[] | undefined;
|
|
2888
|
-
publicSlug?: string | null | undefined;
|
|
2889
3109
|
tier?: string | undefined;
|
|
3110
|
+
publicSlug?: string | null | undefined;
|
|
2890
3111
|
relations?: {
|
|
2891
3112
|
componentName: string;
|
|
2892
3113
|
relationship: string;
|
|
@@ -3364,8 +3585,8 @@ declare const mcpSnapshotSchema: z.ZodObject<{
|
|
|
3364
3585
|
importPath?: string | undefined;
|
|
3365
3586
|
publicRef?: string | undefined;
|
|
3366
3587
|
sourcePath?: string | undefined;
|
|
3367
|
-
publicSlug?: string | null | undefined;
|
|
3368
3588
|
tier?: string | undefined;
|
|
3589
|
+
publicSlug?: string | null | undefined;
|
|
3369
3590
|
packageName?: string | undefined;
|
|
3370
3591
|
isCanonical?: boolean | undefined;
|
|
3371
3592
|
sourceRepoFullName?: string | undefined;
|
|
@@ -3414,8 +3635,8 @@ declare const mcpSnapshotSchema: z.ZodObject<{
|
|
|
3414
3635
|
accepts?: string[] | undefined;
|
|
3415
3636
|
visibility?: "public" | "internal" | undefined;
|
|
3416
3637
|
}[] | undefined;
|
|
3417
|
-
publicSlug?: string | null | undefined;
|
|
3418
3638
|
tier?: string | undefined;
|
|
3639
|
+
publicSlug?: string | null | undefined;
|
|
3419
3640
|
relations?: {
|
|
3420
3641
|
componentName: string;
|
|
3421
3642
|
relationship: string;
|
|
@@ -3655,8 +3876,8 @@ declare const mcpSnapshotSchema: z.ZodObject<{
|
|
|
3655
3876
|
importPath?: string | undefined;
|
|
3656
3877
|
publicRef?: string | undefined;
|
|
3657
3878
|
sourcePath?: string | undefined;
|
|
3658
|
-
publicSlug?: string | null | undefined;
|
|
3659
3879
|
tier?: string | undefined;
|
|
3880
|
+
publicSlug?: string | null | undefined;
|
|
3660
3881
|
packageName?: string | undefined;
|
|
3661
3882
|
isCanonical?: boolean | undefined;
|
|
3662
3883
|
sourceRepoFullName?: string | undefined;
|
|
@@ -3757,8 +3978,8 @@ declare const mcpSnapshotSchema: z.ZodObject<{
|
|
|
3757
3978
|
accepts?: string[] | undefined;
|
|
3758
3979
|
visibility?: "public" | "internal" | undefined;
|
|
3759
3980
|
}[] | undefined;
|
|
3760
|
-
publicSlug?: string | null | undefined;
|
|
3761
3981
|
tier?: string | undefined;
|
|
3982
|
+
publicSlug?: string | null | undefined;
|
|
3762
3983
|
relations?: {
|
|
3763
3984
|
componentName: string;
|
|
3764
3985
|
relationship: string;
|
|
@@ -5510,6 +5731,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
5510
5731
|
path: string;
|
|
5511
5732
|
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
5512
5733
|
}>, "many">>;
|
|
5734
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5513
5735
|
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
5514
5736
|
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5515
5737
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5527,6 +5749,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
5527
5749
|
path: string;
|
|
5528
5750
|
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
5529
5751
|
}>, "many">>;
|
|
5752
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5530
5753
|
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
5531
5754
|
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5532
5755
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5544,6 +5767,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
5544
5767
|
path: string;
|
|
5545
5768
|
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
5546
5769
|
}>, "many">>;
|
|
5770
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5547
5771
|
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
5548
5772
|
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5549
5773
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5561,6 +5785,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
5561
5785
|
path: string;
|
|
5562
5786
|
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
5563
5787
|
}>, "many">>;
|
|
5788
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5564
5789
|
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
5565
5790
|
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5566
5791
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5578,6 +5803,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
5578
5803
|
path: string;
|
|
5579
5804
|
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
5580
5805
|
}>, "many">>;
|
|
5806
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5581
5807
|
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
5582
5808
|
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5583
5809
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6725,6 +6951,43 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
6725
6951
|
}> | undefined;
|
|
6726
6952
|
}>>;
|
|
6727
6953
|
recognizedClassHelpers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6954
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
6955
|
+
decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6956
|
+
component: z.ZodString;
|
|
6957
|
+
kind: z.ZodEnum<["sanction", "reject", "dismiss"]>;
|
|
6958
|
+
canonicalTarget: z.ZodOptional<z.ZodString>;
|
|
6959
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6960
|
+
decisionId: z.ZodOptional<z.ZodString>;
|
|
6961
|
+
}, "strip", z.ZodTypeAny, {
|
|
6962
|
+
kind: "sanction" | "reject" | "dismiss";
|
|
6963
|
+
component: string;
|
|
6964
|
+
reason?: string | undefined;
|
|
6965
|
+
canonicalTarget?: string | undefined;
|
|
6966
|
+
decisionId?: string | undefined;
|
|
6967
|
+
}, {
|
|
6968
|
+
kind: "sanction" | "reject" | "dismiss";
|
|
6969
|
+
component: string;
|
|
6970
|
+
reason?: string | undefined;
|
|
6971
|
+
canonicalTarget?: string | undefined;
|
|
6972
|
+
decisionId?: string | undefined;
|
|
6973
|
+
}>, "many">>;
|
|
6974
|
+
}, "strip", z.ZodTypeAny, {
|
|
6975
|
+
decisions?: {
|
|
6976
|
+
kind: "sanction" | "reject" | "dismiss";
|
|
6977
|
+
component: string;
|
|
6978
|
+
reason?: string | undefined;
|
|
6979
|
+
canonicalTarget?: string | undefined;
|
|
6980
|
+
decisionId?: string | undefined;
|
|
6981
|
+
}[] | undefined;
|
|
6982
|
+
}, {
|
|
6983
|
+
decisions?: {
|
|
6984
|
+
kind: "sanction" | "reject" | "dismiss";
|
|
6985
|
+
component: string;
|
|
6986
|
+
reason?: string | undefined;
|
|
6987
|
+
canonicalTarget?: string | undefined;
|
|
6988
|
+
decisionId?: string | undefined;
|
|
6989
|
+
}[] | undefined;
|
|
6990
|
+
}>>;
|
|
6728
6991
|
}, "strip", z.ZodTypeAny, {
|
|
6729
6992
|
govern?: {
|
|
6730
6993
|
components?: Record<string, {
|
|
@@ -6915,6 +7178,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
6915
7178
|
path: string;
|
|
6916
7179
|
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
6917
7180
|
}>, "many">>;
|
|
7181
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6918
7182
|
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
6919
7183
|
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6920
7184
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6983,6 +7247,15 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
6983
7247
|
}> | undefined;
|
|
6984
7248
|
} | undefined;
|
|
6985
7249
|
recognizedClassHelpers?: string[] | undefined;
|
|
7250
|
+
identity?: {
|
|
7251
|
+
decisions?: {
|
|
7252
|
+
kind: "sanction" | "reject" | "dismiss";
|
|
7253
|
+
component: string;
|
|
7254
|
+
reason?: string | undefined;
|
|
7255
|
+
canonicalTarget?: string | undefined;
|
|
7256
|
+
decisionId?: string | undefined;
|
|
7257
|
+
}[] | undefined;
|
|
7258
|
+
} | undefined;
|
|
6986
7259
|
}, {
|
|
6987
7260
|
govern?: {
|
|
6988
7261
|
components?: Record<string, {
|
|
@@ -7173,6 +7446,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7173
7446
|
path: string;
|
|
7174
7447
|
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
7175
7448
|
}>, "many">>;
|
|
7449
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7176
7450
|
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
7177
7451
|
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7178
7452
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7241,6 +7515,15 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7241
7515
|
}> | undefined;
|
|
7242
7516
|
} | undefined;
|
|
7243
7517
|
recognizedClassHelpers?: string[] | undefined;
|
|
7518
|
+
identity?: {
|
|
7519
|
+
decisions?: {
|
|
7520
|
+
kind: "sanction" | "reject" | "dismiss";
|
|
7521
|
+
component: string;
|
|
7522
|
+
reason?: string | undefined;
|
|
7523
|
+
canonicalTarget?: string | undefined;
|
|
7524
|
+
decisionId?: string | undefined;
|
|
7525
|
+
}[] | undefined;
|
|
7526
|
+
} | undefined;
|
|
7244
7527
|
}>;
|
|
7245
7528
|
/**
|
|
7246
7529
|
* Schema for v2 composition metadata (promoted from ai)
|
|
@@ -9699,7 +9982,7 @@ interface ThemeParserResult {
|
|
|
9699
9982
|
|
|
9700
9983
|
declare function inferTokenCategory(name: string, value?: string): TokenCategory;
|
|
9701
9984
|
declare function inferTokenGroup(name: string): string;
|
|
9702
|
-
declare function normalizeTokenGroupComment(comment: string): string;
|
|
9985
|
+
declare function normalizeTokenGroupComment(comment: string): string | null;
|
|
9703
9986
|
|
|
9704
9987
|
declare function parseScssVariables(content: string): Map<string, string>;
|
|
9705
9988
|
declare function resolveTokenValue(rawValue: string, scssVars: Map<string, string>, cssVarValues: Map<string, string>, depth?: number): string;
|
|
@@ -10604,6 +10887,8 @@ declare function ruleComponentsForbiddenPropValue(ix: FactIndex): Finding[];
|
|
|
10604
10887
|
|
|
10605
10888
|
declare function ruleComponentsPreferLibrary(ix: FactIndex): Finding[];
|
|
10606
10889
|
|
|
10890
|
+
declare function ruleComponentsShadowComponent(ix: FactIndex): Finding[];
|
|
10891
|
+
|
|
10607
10892
|
/**
|
|
10608
10893
|
* `props/invalid-value` — fires when a JSX prop is statically assigned a
|
|
10609
10894
|
* value outside the component's declared enum values.
|
|
@@ -10795,8 +11080,8 @@ declare function ruleA11yRequiredAccessibleName(ix: FactIndex): Finding[];
|
|
|
10795
11080
|
* cloud policy composer, and the UI rules editor. There is exactly one copy —
|
|
10796
11081
|
* importers derive their defaults from it rather than re-listing rules (DRY).
|
|
10797
11082
|
*
|
|
10798
|
-
* Identifiers are stable:
|
|
10799
|
-
*
|
|
11083
|
+
* Identifiers are stable: every newly registered rule must be classified here
|
|
11084
|
+
* in the same change.
|
|
10800
11085
|
*/
|
|
10801
11086
|
type RuleTier = "contract" | "hygiene";
|
|
10802
11087
|
/**
|
|
@@ -11226,6 +11511,15 @@ declare const RULES: readonly Rule[];
|
|
|
11226
11511
|
*/
|
|
11227
11512
|
declare function runRules(ix: FactIndex): Finding[];
|
|
11228
11513
|
|
|
11514
|
+
interface ComponentIdentityUsage {
|
|
11515
|
+
usageCount: number;
|
|
11516
|
+
/** Number of distinct source files containing a usage. */
|
|
11517
|
+
blastRadius: number;
|
|
11518
|
+
nodes: UsageNodeFact[];
|
|
11519
|
+
}
|
|
11520
|
+
/** Join resolved component usages to their usage nodes once for rules and DX surfaces. */
|
|
11521
|
+
declare function indexComponentIdentityUsage(ix: FactIndex): ReadonlyMap<string, ComponentIdentityUsage>;
|
|
11522
|
+
|
|
11229
11523
|
/**
|
|
11230
11524
|
* Rule helpers — small internal queries shared by Phase 5 rules.
|
|
11231
11525
|
*
|
|
@@ -11340,65 +11634,13 @@ declare function isEffectiveCanonicalSource(source: CanonicalSource): boolean;
|
|
|
11340
11634
|
declare function hasEffectiveComponentVocabulary(options: Record<string, unknown> | undefined): boolean;
|
|
11341
11635
|
declare function evaluateGovernanceIntegrity(input: GovernanceIntegrityInput): GovernanceIntegrityVerdict;
|
|
11342
11636
|
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
tier: RawHtmlPrecisionTier;
|
|
11637
|
+
interface ComponentKeyInput {
|
|
11638
|
+
repoRelativeFile: string;
|
|
11639
|
+
exportName: string;
|
|
11347
11640
|
}
|
|
11348
|
-
declare const RAW_HTML_CANONICAL_TAGS: readonly {
|
|
11349
|
-
tagName: string;
|
|
11350
|
-
canonical: string;
|
|
11351
|
-
tier: "exact-html";
|
|
11352
|
-
}[];
|
|
11353
|
-
declare const RAW_HTML_ADVISORY_TAGS: readonly {
|
|
11354
|
-
tagName: string;
|
|
11355
|
-
canonical: string;
|
|
11356
|
-
tier: "html-advisory";
|
|
11357
|
-
}[];
|
|
11358
|
-
declare const RAW_HTML_INPUT_TYPE_CANONICALS: readonly {
|
|
11359
|
-
type: string;
|
|
11360
|
-
canonical: string;
|
|
11361
|
-
tier: "input-type";
|
|
11362
|
-
}[];
|
|
11363
|
-
declare const RAW_HTML_ROLE_CANONICALS: readonly {
|
|
11364
|
-
role: string;
|
|
11365
|
-
canonical: string;
|
|
11366
|
-
tier: "role-reimpl";
|
|
11367
|
-
}[];
|
|
11368
|
-
declare function resolveCanonicalForRawHtml(tagName: string, inputType?: string): RawHtmlCanonicalMatch | null;
|
|
11369
|
-
declare function resolveCanonicalForAriaRole(role: string): RawHtmlCanonicalMatch | null;
|
|
11370
|
-
declare function isRawHtmlAdvisoryTier(tier: RawHtmlPrecisionTier): boolean;
|
|
11371
11641
|
/**
|
|
11372
|
-
*
|
|
11373
|
-
* `canonical` component) may drive a bare-tag canonical-usage finding.
|
|
11374
|
-
*
|
|
11375
|
-
* The contract:
|
|
11376
|
-
* - Low-frequency SEMANTIC tags (dialog, select, textarea, input, …) are always
|
|
11377
|
-
* enforceable, so a custom-named component (`<dialog>` → Modal) still maps.
|
|
11378
|
-
* - Common/ambiguous tags (button, a, …) enforce ONLY when the mapping AGREES
|
|
11379
|
-
* with the framework's curated canonical for that tag — so `<button>` → Button
|
|
11380
|
-
* fires, but `<button>` → Chip does not.
|
|
11381
|
-
* - Generic structural containers (div, span) have no curated answer and are not
|
|
11382
|
-
* semantic → never enforce.
|
|
11383
|
-
*
|
|
11384
|
-
* This is the guard that stops the canonical-usage flood: a library component
|
|
11385
|
-
* being built on a `<div>` must not make every `<div>` a bespoke re-implementation
|
|
11386
|
-
* of it (every `<div>` → Accordion, every `<span>` → Badge, every `<button>` → Chip).
|
|
11642
|
+
* Mint a clone- and platform-portable identity for one component definition.
|
|
11387
11643
|
*/
|
|
11388
|
-
declare function
|
|
11389
|
-
tag: string;
|
|
11390
|
-
canonical: string;
|
|
11391
|
-
inputType?: string;
|
|
11392
|
-
/**
|
|
11393
|
-
* The mapping is an EXPLICIT project declaration of this tag → component
|
|
11394
|
-
* (provenance: `localCanonical.resolves`), not a low-confidence inferred
|
|
11395
|
-
* `htmlEquivalent`. Explicit declarations enforce a specific interactive tag
|
|
11396
|
-
* (`button`/`a`) against any canonical NAME — the agnosticism path — while
|
|
11397
|
-
* inferred mappings stay name-gated to the curated canonical (the flood
|
|
11398
|
-
* guard). Generic containers (`div`/`span`) are never enforceable even when
|
|
11399
|
-
* explicit.
|
|
11400
|
-
*/
|
|
11401
|
-
explicit?: boolean;
|
|
11402
|
-
}): boolean;
|
|
11644
|
+
declare function buildComponentKey({ repoRelativeFile, exportName }: ComponentKeyInput): string;
|
|
11403
11645
|
|
|
11404
|
-
export { type A11yNameRequiredFact, AGENT_CONTEXT_RELATIVE_PATH, AgentFormat, BLOCKING_RULE_ALLOWLIST, BRAND, BlockDefinition, type Brand, type BuildAgentFormatInput, type BuildRegistryInstallPlanInput, type BundleArtifactMetadata, type BundleComponentShard, type BundleManifest, type BundleManifestComponentEntry, type BundleSchemaVersion, type BundleTarget, type BundleTokenFile, CATALOG_FIXTURE_A_FCID, type CSF2Story, type CSSGeneratorOptions, type CanonicalCandidateFact, Finding as CanonicalFinding, type CanonicalMappingFact, type CanonicalReplacementFact, CanonicalSource, type CheckStoryExclusionOpts, type CheckedSpacingValue, type ClassNameDynamicFact, type ClassNameDynamicReason, type ClassNameFact, type ClassNameLiteralFact, type ClassNameOrigin, CompiledBlock, type CompiledContractOutput, CompiledFragment, type ComplexityTier, type ComponentCapabilityFact, type ComponentContract, type ComponentFactInput, type ComponentId, type ComponentLevelFact, type ComponentMetadataFact, type CompositionAnalysis, type CompositionAuthoringEntry, type CompositionChildSelector, type CompositionConstraint, type CompositionGuideline, type CompositionPattern, type CompositionRegionSelector, type CompositionSuggestion, type CompositionWarning, type ConformChange, type ConformComponentMapping, type ConformConfidence, type ConformCoverage, type ConformInput, type ConformLocation, type ConformPropMapping, type ConformResult, type ConformSuggestion, type ConformToken, type ConformUnresolved, ContractCatalogInput, ContractDomain, type ContractStampPin, type ContractStampRecord, DEFAULTS, DEFAULT_ENHANCED_STYLE_PROPERTIES, DEFAULT_STYLE_PROPERTIES, type DTCGColorValue, type DTCGDimensionValue, type DTCGGroup, type DTCGToken, type DTCGTokenFile, type DTCGTokenType, type Decorator, type Defaults, type DeltaEMatch, type DesignSystemContext, type DesignToken, type DesignTokenParseOptions, type DiscoverComponentsOptions, type EnhancedStyleComparisonResult, type EnhancedStyleDiffItem, EvidenceGrade, type ExclusionReason, type ExclusionResult, FRAGMENTS_INTERNAL_RULE_IDS, type Fact, type FactEvidence, type FactId, FactIndex, type FactKind, type FactLocation, type FactOfKind, FigmaBooleanMapping, FigmaChildrenMapping, FigmaEnumMapping, FigmaInstanceMapping, FigmaStringMapping, FigmaTextContentMapping, type FigmaVariable, type FigmaVariableCollection, Finding, FindingFix, type Fragment, type FragmentAccessibility, FragmentComponent, type FragmentContextOptions, FragmentDefinition, FragmentDefinitionV2, type FragmentDoNotItem, type FragmentFigma, type FragmentIndex, type FragmentMeta as FragmentJsonMeta, type FragmentUsage as FragmentJsonUsage, type FragmentPattern, type FragmentRegistry, type FragmentRelated, FragmentsConfig, Severity as FuiSeverity, GovernanceConfig, type GovernanceIntegrityFamily, type GovernanceIntegrityFamilyId, type GovernanceIntegrityInput, type GovernanceIntegrityStatus, type GovernanceIntegrityVerdict, GovernanceSeverity, GovernedFragmentDefinition, type InferProps, type JsxComponentPreferredFact, type JsxImportPathPreferredFact, type JsxInlineStyleForbiddenRawFact, type JsxUnknownPropsForbiddenFact, type Loader, type McpBlock, type McpCapability, type McpComponent, type McpComponentExample, type McpComponentGuidance, type McpComponentMetadata, type McpComponentProp, type McpComponentRelation, type McpCompoundChild, type McpGuidancePattern, type McpPerformanceData, type McpPerformanceImport, type McpPerformanceSummary, type McpSnapshot, type McpSnapshotMetadata, type McpSnapshotSchemaVersion, type McpSourceType, type McpToken, type McpTokenData, type NearestByDeltaEOptions, type NormalizedStyleMap, type NormalizedToken, PRESET_NAMES, PROVE_DEFAULT_MAX_PASSES, PROVE_MAX_PASSES, type ParseTokensOptions, type ParsedToken, type PerformanceData as PerfData, type PerformanceSummary as PerfSummary, type PerformanceBudgets, type PerformanceConfig, type PolicyFact, type PresetRuleState, type PreviewConfig, type PreviewRuntimeOptions, type PreviewRuntimeState, type PreviewVariantLike, PreviewVariantRuntime, type PropMetadataFact, type PropValueAvoidedFact, type PropValueForbiddenFact, type ProveCallbacks, type ProveLoopResult, type ProveOptions, type ProvePass, type ProvePassSampling, type ProveResidual, type ProveSample, type ProveSamplerArgs, type ProveVerdict, RAW_HTML_ADVISORY_TAGS, RAW_HTML_CANONICAL_TAGS, RAW_HTML_INPUT_TYPE_CANONICALS, RAW_HTML_ROLE_CANONICALS, type RGB, type RGBA, RULES, RULE_TIER, type RawHtmlCanonicalMatch, type RawHtmlPrecisionTier, RegistryArtifact, type RegistryComponentEntry, RegistryDependency, type RegistryInstallPlan, RegistryInstallReceipt, type RegistryPropEntry, type RegistryWritePlan, RelationshipType, type ResolvedDTCGToken, ResolvedGovernedFragmentDefinition, type Rule, type RuleFn, type RuleTier, type SCSSGeneratorOptions, type ScaleFact, type ScaleValueFact, Severity, type SpacingResolutionScale, type SpacingTokenLookup, type Story, type StoryArgType, type StoryContext, type StoryMeta, type StoryModule, StorybookFilterConfig, type StructuralConfidenceFact, type StyleComparisonOptions, type StyleComparisonResult, type StyleCssVarsMustBeDefinedFact, type StyleDeclarationFact, type StyleDiffItem, type StyleFontSizeScaleFact, type StylePropertyScaleFact, type StyleRawColorForbiddenFact, type StyleUnsupportedFact, type SuppressionDirectiveFact, type TailwindClassFact, type TailwindModifier, type TailwindModifierKind, type TailwindPaletteAllowFact, type TailwindPaletteDenyFact, type TailwindResolutionSource, type TailwindResolvedKind, type TailwindResolvedValue, type TailwindTokenResolvedFact, type TailwindUnknownClassEnabledFact, type TailwindValue, type ThemeDeclarationFact, type ThemeParserResult, type TokenCategory, TokenConfig, type TokenDefinitionFact, type TokenFix, type TokenFormat, type TokenLookup, type TokenMatchRequest, type TokenMatchResult, type TokenParseError, type TokenParseOutput, type TokenParseResult, type TokenRegistry, type TokenRegistryMeta, type TokenUsageSummary, type UnsupportedStyleReason, type UsageComponentFact, type UsageFact, type UsageImportFact, type UsageInlineStyleFact, type UsageNodeFact, type UsagePropResolvedFact, type UsageTextChildFact, VariantLoader, aiMetadataSchema, analyzeComposition, asComponentId, assertPortableRegistryPath, blockDefinitionSchema, budgetBar, buildAgentFormat, buildRegistryInstallPlan, buildRegistryInstallReceipt, buildSpacingTokenLookup, bundleArtifactMetadataSchema, bundleComponentShardSchema, bundleManifestComponentEntrySchema, bundleManifestSchema, bundleSchemaVersionSchema, bundleTargetSchema, bundleTokenFileSchema, calculateDeltaE, canonicalJson, canonicalPreimage, catalogFixtureA, catalogFixtureAContractPayload, catalogFixtureATokensDtcg, checkStoryExclusion, clampMaxPasses, classifyComplexity, collectRegistryInstallDependencies, colorSimilarity, compareByVocabularyRank, compareColors, compareNumericValues, compareStyleValue, compareStyles, compareStylesWithTokens, compileBlock, compileComponentFacts, compileFragment, compileGlobalGovernanceFacts, compileRecipe, componentContractSchema, componentId, componentRelationSchema, compositionAuthoringEntrySchema, compositionMetadataSchema, compositionPatternSchema, containsTailwindV4Theme, contractHash, contractTierRuleIds, customerDefaultRuleStates, defineBlock, defineConfig, defineFragment, defineRecipe, detectSubComponentPaths, discoverComponents, dtcgTokenFileSchema, emptyConformResult, evaluateGovernanceIntegrity, executeVariantLoaders, factId, familyDistance, figma, figmaPropMappingSchema, formatBytes, formatStampHeader, formatStampPin, formatStampVersionHash, formatTokenSummary, fragmentBanSchema, fragmentContractSchema, fragmentDefinitionSchema, fragmentDefinitionV2Schema, fragmentGeneratedSchema, fragmentMetaSchema, fragmentProvenanceSchema, fragmentUsageSchema, fragmentVariantSchema, fragmentsConfigSchema, fragmentsPresetRuleStates, gatesCi, generateCSSCustomProperties, generateFigmaVariables, generateSCSSVariables, generateTailwindConfig, getComplianceBadge, getPreviewConfig, governedFragmentDefinitionSchema, hasEffectiveComponentVocabulary, hash64Hex, hexToRgb, hygieneTierRuleIds, inferTokenCategory, inferTokenGroup, isColorLike, isCompositionPattern, isConfigExcluded, isContractFile, isContractTierRule, isDTCGFile, isDenyEligible, isEffectiveCanonicalSource, isEnforceableHtmlEquivalent, isExportStory, isFigmaPropMapping, isForceIncluded, isPortableRepoPath, isRawHtmlAdvisoryTier, isReactComponent, lowerCompositionContract, makeA11yNameRequiredFact, makeCanonicalCandidateFact, makeCanonicalMappingFact, makeCanonicalReplacementFact, makeClassNameDynamicFact, makeClassNameLiteralFact, makeComponentCapabilityFact, makeComponentMetadataFact, makeContractTokenFact, makeFinding, makeJsxComponentPreferredFact, makeJsxImportPathPreferredFact, makeJsxInlineStyleForbiddenRawFact, makeJsxUnknownPropsForbiddenFact, makePropMetadataFact, makePropValueAvoidedFact, makePropValueForbiddenFact, makeScaleFact, makeScaleValueFact, makeStructuralConfidenceFact, makeStyleCssVarsMustBeDefinedFact, makeStyleDeclarationFact, makeStyleFontSizeScaleFact, makeStylePropertyScaleFact, makeStyleRawColorForbiddenFact, makeStyleUnsupportedFact, makeTailwindClassFact, makeTailwindPaletteAllowFact, makeTailwindPaletteDenyFact, makeTailwindTokenResolvedFact, makeTailwindUnknownClassEnabledFact, makeThemeDeclarationFact, makeTokenDefinitionFact, makeUsageComponentFact, makeUsageImportFact, makeUsageInlineStyleFact, makeUsageNodeFact, makeUsagePropResolvedFact, makeUsageTextChildFact, matchesGlob, mcpBlockSchema, mcpCapabilitySchema, mcpComponentExampleSchema, mcpComponentGuidanceSchema, mcpComponentMetadataSchema, mcpComponentPropSchema, mcpComponentRelationSchema, mcpComponentSchema, mcpCompoundChildSchema, mcpGuidancePatternSchema, mcpPerformanceDataSchema, mcpPerformanceImportSchema, mcpPerformanceSummarySchema, mcpSnapshotMetadataSchema, mcpSnapshotSchema, mcpSnapshotSchemaVersionSchema, mcpSourceTypeSchema, mcpTokenDataSchema, mcpTokenSchema, nearestByDeltaE, nearestSignedScaleValue, normalizeColor, normalizeConfigPath, normalizeRegistryRepoPath, normalizeStyleValue, normalizeToV1, normalizeTokenGroupComment, normalizeTokenValue, parseColor, parseColorToRgb, parseComponentContract, parseContractStamp, parseCssTokens, parseDtcgTokens as parseDTCGFile, parseDesignTokenContent, parseDtcgTokens, parseRgb, parseScssTokens, parseScssVariables, parseTailwindV4Theme, parseTokenFile, parseTokens, portableRepoPathError, propDefinitionSchema, proveCompliant, proveIssueCount, recipeDefinitionSchema, resolveCanonicalForAriaRole, resolveCanonicalForRawHtml, resolveConfiguredAppPath, resolveDesignTokenValue, resolveFigmaMapping, resolvePerformanceConfig, resolvePreviewRuntimeState, resolveProveVerdict, resolveSpacingValue, resolveTokenValue, rgbToHex, ruleA11yRequiredAccessibleName, ruleComponentsForbiddenPropValue, ruleComponentsPreferLibrary, ruleComponentsUnknownProp, ruleJsxPreferredComponent, ruleJsxPreferredImportPath, rulePropsInvalidValue, ruleStylesNoRawColor, ruleStylesNoRawDimensions, ruleStylesNoRawSpacing, ruleStylesNoRawTypography, ruleTailwindArbitraryColor, ruleTailwindArbitrarySpacing, ruleTailwindForbiddenPalette, ruleTailwindOffScaleSpacingToken, ruleTailwindRawColorViaToken, ruleTailwindUnknownClass, ruleThemeNoThemeCoupledLiteral, ruleTokensRequireDualFallback, runRules, selectedRegistryComponentNames, serializeContractStamp, setPreviewConfig, sha256Hex, sourceToRegistryTargetPath, storyModuleToFragment, storyNameFromExport, tierFor, toId, tokenIncludesFromConfig, topologyBase, usePreviewVariantRuntime, vocabularyRank };
|
|
11646
|
+
export { type A11yNameRequiredFact, AGENT_CONTEXT_RELATIVE_PATH, AgentFormat, BLOCKING_RULE_ALLOWLIST, BRAND, BlockDefinition, type Brand, type BuildAgentFormatInput, type BuildRegistryInstallPlanInput, type BundleArtifactMetadata, type BundleComponentShard, type BundleManifest, type BundleManifestComponentEntry, type BundleSchemaVersion, type BundleTarget, type BundleTokenFile, CATALOG_FIXTURE_A_FCID, type CSF2Story, type CSSGeneratorOptions, type CanonicalCandidateFact, Finding as CanonicalFinding, type CanonicalIdentityReference, type CanonicalMappingFact, type CanonicalReplacementFact, CanonicalSource, type CheckStoryExclusionOpts, type CheckedSpacingValue, type ClassNameDynamicFact, type ClassNameDynamicReason, type ClassNameFact, type ClassNameLiteralFact, type ClassNameOrigin, type ClassifyIdentityInput, CompiledBlock, type CompiledContractOutput, CompiledFragment, type ComplexityTier, type ComponentCapabilityFact, type ComponentContract, type ComponentDefinitionFact, type ComponentDefinitionRenderRoot, type ComponentFactInput, type ComponentId, type ComponentIdentityFact, type ComponentIdentityUsage, type ComponentKeyInput, type ComponentLevelFact, type ComponentMetadataFact, type CompositionAnalysis, type CompositionAuthoringEntry, type CompositionChildSelector, type CompositionConstraint, type CompositionGuideline, type CompositionPattern, type CompositionRegionSelector, type CompositionSuggestion, type CompositionWarning, type ConformChange, type ConformComponentMapping, type ConformConfidence, type ConformCoverage, type ConformInput, type ConformLocation, type ConformPropMapping, type ConformResult, type ConformSuggestion, type ConformToken, type ConformUnresolved, ContractCatalogInput, ContractDomain, type ContractStampPin, type ContractStampRecord, DEFAULTS, DEFAULT_ENHANCED_STYLE_PROPERTIES, DEFAULT_STYLE_PROPERTIES, type DTCGColorValue, type DTCGDimensionValue, type DTCGGroup, type DTCGToken, type DTCGTokenFile, type DTCGTokenType, type Decorator, type Defaults, type DeltaEMatch, type DesignSystemContext, type DesignToken, type DesignTokenParseOptions, type DiscoverComponentsOptions, type EnhancedStyleComparisonResult, type EnhancedStyleDiffItem, EvidenceGrade, type ExclusionReason, type ExclusionResult, type ExternalIdentityReference, FRAGMENTS_INTERNAL_RULE_IDS, type Fact, type FactEvidence, type FactId, FactIndex, type FactKind, type FactLocation, type FactOfKind, FigmaBooleanMapping, FigmaChildrenMapping, FigmaEnumMapping, FigmaInstanceMapping, FigmaStringMapping, FigmaTextContentMapping, type FigmaVariable, type FigmaVariableCollection, Finding, FindingFix, type Fragment, type FragmentAccessibility, FragmentComponent, type FragmentContextOptions, FragmentDefinition, FragmentDefinitionV2, type FragmentDoNotItem, type FragmentFigma, type FragmentIndex, type FragmentMeta as FragmentJsonMeta, type FragmentUsage as FragmentJsonUsage, type FragmentPattern, type FragmentRegistry, type FragmentRelated, FragmentsConfig, Severity as FuiSeverity, GovernanceConfig, type GovernanceIntegrityFamily, type GovernanceIntegrityFamilyId, type GovernanceIntegrityInput, type GovernanceIntegrityStatus, type GovernanceIntegrityVerdict, GovernanceSeverity, GovernedFragmentDefinition, type IdentityClassification, type IdentityConfidence, type IdentityDecision, type IdentityFact, type IdentityState, type InferProps, type JsxComponentPreferredFact, type JsxImportPathPreferredFact, type JsxInlineStyleForbiddenRawFact, type JsxUnknownPropsForbiddenFact, type Loader, type LocalIdentityReference, type McpBlock, type McpCapability, type McpComponent, type McpComponentExample, type McpComponentGuidance, type McpComponentMetadata, type McpComponentProp, type McpComponentRelation, type McpCompoundChild, type McpGuidancePattern, type McpPerformanceData, type McpPerformanceImport, type McpPerformanceSummary, type McpSnapshot, type McpSnapshotMetadata, type McpSnapshotSchemaVersion, type McpSourceType, type McpToken, type McpTokenData, type NearestByDeltaEOptions, type NormalizedStyleMap, type NormalizedToken, PRESET_NAMES, PROVE_DEFAULT_MAX_PASSES, PROVE_MAX_PASSES, type ParseTokensOptions, type ParsedToken, type PerformanceData as PerfData, type PerformanceSummary as PerfSummary, type PerformanceBudgets, type PerformanceConfig, type PolicyFact, type PresetRuleState, type PreviewConfig, type PreviewRuntimeOptions, type PreviewRuntimeState, type PreviewVariantLike, PreviewVariantRuntime, type PropMetadataFact, type PropValueAvoidedFact, type PropValueForbiddenFact, type ProveCallbacks, type ProveLoopResult, type ProveOptions, type ProvePass, type ProvePassSampling, type ProveResidual, type ProveSample, type ProveSamplerArgs, type ProveVerdict, RAW_HTML_ADVISORY_TAGS, RAW_HTML_CANONICAL_TAGS, RAW_HTML_INPUT_TYPE_CANONICALS, RAW_HTML_ROLE_CANONICALS, type RGB, type RGBA, RULES, RULE_TIER, type RawHtmlCanonicalMatch, type RawHtmlPrecisionTier, RegistryArtifact, type RegistryComponentEntry, RegistryDependency, type RegistryInstallPlan, RegistryInstallReceipt, type RegistryPropEntry, type RegistryWritePlan, RelationshipType, type ResolvedDTCGToken, ResolvedGovernedFragmentDefinition, type ResolvedIdentityRenderRoot, type ResolvedIntrinsicIdentityRoot, type Rule, type RuleFn, type RuleTier, type SCSSGeneratorOptions, type ScaleFact, type ScaleValueFact, Severity, type SpacingResolutionScale, type SpacingTokenLookup, type Story, type StoryArgType, type StoryContext, type StoryMeta, type StoryModule, StorybookFilterConfig, type StructuralConfidenceFact, type StyleComparisonOptions, type StyleComparisonResult, type StyleCssVarsMustBeDefinedFact, type StyleDeclarationFact, type StyleDiffItem, type StyleFontSizeScaleFact, type StylePropertyScaleFact, type StyleRawColorForbiddenFact, type StyleUnsupportedFact, type SuppressionDirectiveFact, type TailwindClassFact, type TailwindModifier, type TailwindModifierKind, type TailwindPaletteAllowFact, type TailwindPaletteDenyFact, type TailwindResolutionSource, type TailwindResolvedKind, type TailwindResolvedValue, type TailwindTokenResolvedFact, type TailwindUnknownClassEnabledFact, type TailwindValue, type ThemeDeclarationFact, type ThemeParserResult, type TokenCategory, TokenConfig, type TokenDefinitionFact, type TokenFix, type TokenFormat, type TokenLookup, type TokenMatchRequest, type TokenMatchResult, type TokenParseError, type TokenParseOutput, type TokenParseResult, type TokenRegistry, type TokenRegistryMeta, type TokenUsageSummary, type UnsupportedStyleReason, type UsageComponentFact, type UsageFact, type UsageImportFact, type UsageInlineStyleFact, type UsageNodeFact, type UsagePropResolvedFact, type UsageTextChildFact, VariantLoader, aiMetadataSchema, analyzeComposition, asComponentId, assertPortableRegistryPath, blockDefinitionSchema, budgetBar, buildAgentFormat, buildComponentKey, buildRegistryInstallPlan, buildRegistryInstallReceipt, buildSpacingTokenLookup, bundleArtifactMetadataSchema, bundleComponentShardSchema, bundleManifestComponentEntrySchema, bundleManifestSchema, bundleSchemaVersionSchema, bundleTargetSchema, bundleTokenFileSchema, calculateDeltaE, canonicalJson, canonicalPreimage, catalogFixtureA, catalogFixtureAContractPayload, catalogFixtureATokensDtcg, checkStoryExclusion, clampMaxPasses, classifyComplexity, classifyIdentity, collectRegistryInstallDependencies, colorSimilarity, compareByVocabularyRank, compareColors, compareNumericValues, compareStyleValue, compareStyles, compareStylesWithTokens, compileBlock, compileComponentFacts, compileFragment, compileGlobalGovernanceFacts, compileRecipe, componentContractSchema, componentId, componentRelationSchema, compositionAuthoringEntrySchema, compositionMetadataSchema, compositionPatternSchema, containsTailwindV4Theme, contractHash, contractTierRuleIds, customerDefaultRuleStates, defineBlock, defineConfig, defineFragment, defineRecipe, detectSubComponentPaths, discoverComponents, dtcgTokenFileSchema, emptyConformResult, evaluateGovernanceIntegrity, executeVariantLoaders, factId, familyDistance, figma, figmaPropMappingSchema, formatBytes, formatStampHeader, formatStampPin, formatStampVersionHash, formatTokenSummary, fragmentBanSchema, fragmentContractSchema, fragmentDefinitionSchema, fragmentDefinitionV2Schema, fragmentGeneratedSchema, fragmentMetaSchema, fragmentProvenanceSchema, fragmentUsageSchema, fragmentVariantSchema, fragmentsConfigSchema, fragmentsPresetRuleStates, gatesCi, generateCSSCustomProperties, generateFigmaVariables, generateSCSSVariables, generateTailwindConfig, getComplianceBadge, getPreviewConfig, governedFragmentDefinitionSchema, hasEffectiveComponentVocabulary, hash64Hex, hexToRgb, hygieneTierRuleIds, indexComponentIdentityUsage, inferTokenCategory, inferTokenGroup, isColorLike, isCompositionPattern, isConfigExcluded, isContractFile, isContractTierRule, isDTCGFile, isDenyEligible, isEffectiveCanonicalSource, isEnforceableHtmlEquivalent, isExportStory, isFigmaPropMapping, isForceIncluded, isPortableRepoPath, isRawHtmlAdvisoryTier, isReactComponent, lowerCompositionContract, makeA11yNameRequiredFact, makeCanonicalCandidateFact, makeCanonicalMappingFact, makeCanonicalReplacementFact, makeClassNameDynamicFact, makeClassNameLiteralFact, makeComponentCapabilityFact, makeComponentDefinitionFact, makeComponentIdentityFact, makeComponentMetadataFact, makeContractTokenFact, makeFinding, makeJsxComponentPreferredFact, makeJsxImportPathPreferredFact, makeJsxInlineStyleForbiddenRawFact, makeJsxUnknownPropsForbiddenFact, makePropMetadataFact, makePropValueAvoidedFact, makePropValueForbiddenFact, makeScaleFact, makeScaleValueFact, makeStructuralConfidenceFact, makeStyleCssVarsMustBeDefinedFact, makeStyleDeclarationFact, makeStyleFontSizeScaleFact, makeStylePropertyScaleFact, makeStyleRawColorForbiddenFact, makeStyleUnsupportedFact, makeTailwindClassFact, makeTailwindPaletteAllowFact, makeTailwindPaletteDenyFact, makeTailwindTokenResolvedFact, makeTailwindUnknownClassEnabledFact, makeThemeDeclarationFact, makeTokenDefinitionFact, makeUsageComponentFact, makeUsageImportFact, makeUsageInlineStyleFact, makeUsageNodeFact, makeUsagePropResolvedFact, makeUsageTextChildFact, matchesGlob, mcpBlockSchema, mcpCapabilitySchema, mcpComponentExampleSchema, mcpComponentGuidanceSchema, mcpComponentMetadataSchema, mcpComponentPropSchema, mcpComponentRelationSchema, mcpComponentSchema, mcpCompoundChildSchema, mcpGuidancePatternSchema, mcpPerformanceDataSchema, mcpPerformanceImportSchema, mcpPerformanceSummarySchema, mcpSnapshotMetadataSchema, mcpSnapshotSchema, mcpSnapshotSchemaVersionSchema, mcpSourceTypeSchema, mcpTokenDataSchema, mcpTokenSchema, nearestByDeltaE, nearestSignedScaleValue, normalizeColor, normalizeConfigPath, normalizeRegistryRepoPath, normalizeStyleValue, normalizeToV1, normalizeTokenGroupComment, normalizeTokenValue, parseColor, parseColorToRgb, parseComponentContract, parseContractStamp, parseCssTokens, parseDtcgTokens as parseDTCGFile, parseDesignTokenContent, parseDtcgTokens, parseRgb, parseScssTokens, parseScssVariables, parseTailwindV4Theme, parseTokenFile, parseTokens, portableRepoPathError, propDefinitionSchema, proveCompliant, proveIssueCount, recipeDefinitionSchema, resolveCanonicalForAriaRole, resolveCanonicalForRawHtml, resolveConfiguredAppPath, resolveDesignTokenValue, resolveFigmaMapping, resolvePerformanceConfig, resolvePreviewRuntimeState, resolveProveVerdict, resolveSpacingValue, resolveTokenValue, rgbToHex, ruleA11yRequiredAccessibleName, ruleComponentsForbiddenPropValue, ruleComponentsPreferLibrary, ruleComponentsShadowComponent, ruleComponentsUnknownProp, ruleJsxPreferredComponent, ruleJsxPreferredImportPath, rulePropsInvalidValue, ruleStylesNoRawColor, ruleStylesNoRawDimensions, ruleStylesNoRawSpacing, ruleStylesNoRawTypography, ruleTailwindArbitraryColor, ruleTailwindArbitrarySpacing, ruleTailwindForbiddenPalette, ruleTailwindOffScaleSpacingToken, ruleTailwindRawColorViaToken, ruleTailwindUnknownClass, ruleThemeNoThemeCoupledLiteral, ruleTokensRequireDualFallback, runRules, selectedRegistryComponentNames, serializeContractStamp, setPreviewConfig, sha256Hex, sourceToRegistryTargetPath, storyModuleToFragment, storyNameFromExport, tierFor, toId, tokenIncludesFromConfig, topologyBase, usePreviewVariantRuntime, vocabularyRank };
|