@usefragments/core 1.9.1 → 1.10.1
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-DGHZQTLH.js → chunk-XN3LSDPY.js} +3 -2
- package/dist/chunk-XN3LSDPY.js.map +1 -0
- 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-eEzCyfes.d.ts → governance-CLk_wkP9.d.ts} +20 -4
- package/dist/index.d.ts +13 -226
- package/dist/index.js +106 -497
- package/dist/index.js.map +1 -1
- package/dist/preview-runtime.d.ts +48 -0
- package/dist/preview-runtime.js +91 -0
- package/dist/preview-runtime.js.map +1 -0
- package/dist/react-types.d.ts +3 -2
- package/dist/schemas/index.js +1 -1
- package/dist/storyAdapter.d.ts +187 -0
- package/dist/storyAdapter.js +371 -0
- package/dist/storyAdapter.js.map +1 -0
- package/dist/test-utils.d.ts +1 -1
- package/package.json +9 -1
- package/src/governance-integrity.test.ts +93 -2
- package/src/governance-integrity.ts +46 -2
- package/src/governance.ts +15 -3
- package/src/index.ts +0 -35
- package/src/react-create-element.test.ts +22 -0
- package/src/react-create-element.ts +12 -0
- package/src/react-types.ts +2 -1
- package/src/rules/a11y-required-accessible-name.ts +45 -2
- package/src/rules/index.ts +4 -0
- package/src/rules/rules.test.ts +72 -0
- package/src/storyAdapter.ts +3 -2
- package/dist/chunk-DGHZQTLH.js.map +0 -1
|
@@ -3511,12 +3511,15 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3511
3511
|
ci: z.ZodOptional<z.ZodObject<{
|
|
3512
3512
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3513
3513
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3514
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
3514
3515
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3515
3516
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3516
3517
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3518
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
3517
3519
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3518
3520
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3519
3521
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3522
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
3520
3523
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
3521
3524
|
}, "strict", z.ZodTypeAny, {
|
|
3522
3525
|
components?: Record<string, {
|
|
@@ -3744,6 +3747,7 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3744
3747
|
ci?: z.objectOutputType<{
|
|
3745
3748
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3746
3749
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3750
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
3747
3751
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3748
3752
|
}, {
|
|
3749
3753
|
components?: Record<string, {
|
|
@@ -3971,6 +3975,7 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3971
3975
|
ci?: z.objectInputType<{
|
|
3972
3976
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3973
3977
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3978
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
3974
3979
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3975
3980
|
}>;
|
|
3976
3981
|
type ScaleGovernanceRecord = z.infer<typeof scaleGovernanceRecordSchema>;
|
|
@@ -4039,9 +4044,13 @@ interface GovernanceConfig {
|
|
|
4039
4044
|
/** Ordered component-policy overrides selected by component identity fields. */
|
|
4040
4045
|
overrides?: ComponentPolicyOverride[];
|
|
4041
4046
|
/**
|
|
4042
|
-
* Governance CI rendering options
|
|
4043
|
-
*
|
|
4044
|
-
*
|
|
4047
|
+
* Governance CI rendering options. Under `--ci`, `failOnWarnings` defaults to `true`
|
|
4048
|
+
* when absent; set it to `false` to keep warning findings reported but advisory.
|
|
4049
|
+
* `failOnInert` is opt-in and makes inert-config diagnostics (FUI9004-FUI9008) fail
|
|
4050
|
+
* the verdict; `--allow-inert` bypasses the inert gates.
|
|
4051
|
+
* `failOnAdoptionRegression` is opt-in and makes `check --ci` compare the
|
|
4052
|
+
* current component-identity adoption percentage with the committed
|
|
4053
|
+
* `.fragments/adoption-baseline.json` floor.
|
|
4045
4054
|
*/
|
|
4046
4055
|
ci?: {
|
|
4047
4056
|
failOnWarnings?: boolean;
|
|
@@ -4052,6 +4061,13 @@ interface GovernanceConfig {
|
|
|
4052
4061
|
* bypasses it, like the governance-inert gate.
|
|
4053
4062
|
*/
|
|
4054
4063
|
failOnInert?: boolean;
|
|
4064
|
+
/**
|
|
4065
|
+
* Fail `check --ci` when measurable component-identity adoption falls below
|
|
4066
|
+
* the committed local floor. Update the floor through `check
|
|
4067
|
+
* --update-baseline`; accepting a lower floor additionally requires
|
|
4068
|
+
* `--allow-regression`.
|
|
4069
|
+
*/
|
|
4070
|
+
failOnAdoptionRegression?: boolean;
|
|
4055
4071
|
[key: string]: unknown;
|
|
4056
4072
|
};
|
|
4057
4073
|
[key: string]: unknown;
|
|
@@ -4173,4 +4189,4 @@ declare const g: {
|
|
|
4173
4189
|
component: ComponentGovernanceBuilder<Record<string, unknown>>;
|
|
4174
4190
|
};
|
|
4175
4191
|
|
|
4176
|
-
export { type ControlType as $, type AIMetadata as A, type BlockDefinition as B, type CompiledBlock as C, type CanonicalMappingStatus as D, type CompiledFragmentsFile as E, type FragmentDefinition as F, type GovernanceSeverity as G, CompiledFragmentsFileValidationError as H, type CompiledRecipe as I, type CompiledTokenData as J, type CompiledTokenEntry as K, type ComponentGovernanceBuilder as L, type ComponentGovernanceRecord as M, type ComponentRef as N, type ComponentRelation as O, type CompositionMetadata as P, type ContractComponentInput as Q, type ResolvedGovernedFragmentDefinition as R, type StorybookFilterConfig as S, type TokenConfig as T, type ContractIdentityPin as U, type VariantRenderOptions as V, type ContractPolicyInput as W, type ContractPreimage as X, type ContractPropMappingInput as Y, type ContractTokenInput as Z, type ContractWaiverInput as _, type
|
|
4192
|
+
export { type ControlType as $, type AIMetadata as A, type BlockDefinition as B, type CompiledBlock as C, type CanonicalMappingStatus as D, type CompiledFragmentsFile as E, type FragmentDefinition as F, type GovernanceSeverity as G, CompiledFragmentsFileValidationError as H, type CompiledRecipe as I, type CompiledTokenData as J, type CompiledTokenEntry as K, type ComponentGovernanceBuilder as L, type ComponentGovernanceRecord as M, type ComponentRef as N, type ComponentRelation as O, type CompositionMetadata as P, type ContractComponentInput as Q, type ResolvedGovernedFragmentDefinition as R, type StorybookFilterConfig as S, type TokenConfig as T, type ContractIdentityPin as U, type VariantRenderOptions as V, type ContractPolicyInput as W, type ContractPreimage as X, type ContractPropMappingInput as Y, type ContractTokenInput as Z, type ContractWaiverInput as _, type VariantLoader as a, projectContractPreimage as a$, type DesignSystemConfig as a0, type DiffResult as a1, type FigmaPropMapping as a2, type FragmentContract as a3, type FragmentExample as a4, type FragmentGenerated as a5, type FragmentGuidance as a6, type FragmentMeta as a7, type FragmentProvenance as a8, type FragmentUsage as a9, type SnapshotConfig as aA, type SnippetPolicyConfig as aB, type Theme as aC, type ThemeSeeds as aD, type TokenSourceConfig as aE, type TokenSourceFormat as aF, type VerifyRequest as aG, type VerifyResult as aH, type Viewport as aI, canonicalBridgeV1Schema as aJ, componentGovernanceRecordSchema as aK, componentGovernanceRecordsSchema as aL, contractComponentsFromFragments as aM, contractPolicyFromGovernanceConfig as aN, diffContractDomains as aO, g as aP, globalGovernanceRecordSchema as aQ, globalJsxGovernanceRecordSchema as aR, globalStyleGovernanceRecordSchema as aS, governanceConfigSchema as aT, governanceConfigWithLocalCanonical as aU, governanceSeveritySchema as aV, isPresetSourcedRule as aW, localCanonicalContractMappings as aX, markPresetSourcedRules as aY, normalizeGovernanceConfig as aZ, parseCompiledFragmentsFile as a_, type FragmentVariant as aa, type GlobalGovernanceRecord as ab, type GlobalJsxGovernanceRecord as ac, type GlobalStyleGovernanceRecord as ad, type GovernancePropValue as ae, type InspectConfig as af, type LocalCanonicalDeclaration as ag, type LocalCanonicalResolveRule as ah, type Manifest as ai, type ObservedComponentUsage as aj, type ObservedUsageProp as ak, type PlayFunction as al, type PlayFunctionContext as am, type PropDefinition as an, type PropGovernanceBuilder as ao, type PropGovernanceOptions as ap, type PropKey as aq, type PropType as ar, type RecipeDefinition as as, type RegistryOptions as at, type RepoRelativePath as au, type ScaleGovernanceRecord as av, type Screenshot as aw, type ScreenshotConfig as ax, type ScreenshotMetadata as ay, type ServiceConfig as az, type FragmentDefinitionV2 as b, scaleGovernanceRecordSchema as b0, verifiedContractPreimageFromPin as b1, type AIMetadata$1 as b2, type ComponentRelation$1 as b3, type FragmentContract$1 as b4, type FragmentGenerated$1 as b5, type FragmentMeta$1 as b6, type FragmentUsage$1 as b7, type ImportEntry as b8, type PerformanceData as b9, type PerformanceSummary as ba, type PropDefinition$1 as bb, type Theme$1 as bc, type VerifyResult$1 as bd, type CompiledFragment as c, type ContractDomain as d, type ContractCatalogInput as e, type GovernedFragmentDefinition as f, type GovernanceConfig as g, type FragmentsConfig as h, type FragmentComponent as i, type FigmaStringMapping as j, type FigmaBooleanMapping as k, type FigmaEnumMapping as l, type FigmaInstanceMapping as m, type FigmaChildrenMapping as n, type FigmaTextContentMapping as o, type RelationshipType as p, type CanonicalSource as q, type CanonicalBridgeV1 as r, type ContractCanonicalMappingInput as s, type AccessibilityGovernanceBuilder as t, type AppConfig as u, type BaselineInfo as v, type BoundingBox as w, CONTRACT_DOMAINS as x, CONTRACT_PREIMAGE_CAPABILITY_HEADER as y, CONTRACT_PREIMAGE_SCHEMA as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,18 +4,16 @@ export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOu
|
|
|
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 {
|
|
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-
|
|
9
|
-
import { z } from 'zod';
|
|
7
|
+
import { d as ContractDomain, e as ContractCatalogInput, G as GovernanceSeverity, c as CompiledFragment, f as GovernedFragmentDefinition, R as ResolvedGovernedFragmentDefinition, g as GovernanceConfig, h as FragmentsConfig, T as TokenConfig, i as FragmentComponent, B as BlockDefinition, C as CompiledBlock, F as FragmentDefinition, b as FragmentDefinitionV2, S as StorybookFilterConfig, j as FigmaStringMapping, k as FigmaBooleanMapping, l as FigmaEnumMapping, m as FigmaInstanceMapping, n as FigmaChildrenMapping, o as FigmaTextContentMapping, p as RelationshipType, q as CanonicalSource, r as CanonicalBridgeV1, s as ContractCanonicalMappingInput } from './governance-CLk_wkP9.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, a as VariantLoader, 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-CLk_wkP9.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
|
-
import { ReactNode, ComponentType } from 'react';
|
|
13
12
|
export { ContextOptions, ContextResult, generateContext } from './generate/index.js';
|
|
14
13
|
import { C as ComponentGraph } from './types-xJ2xyp_G.js';
|
|
15
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
16
14
|
export { OWNED_PACKAGE_IDENTITY_EPOCH, OWNED_PACKAGE_IDENTITY_SOURCE_SHA256, OwnedPackageIdentityResolution, OwnedPackageStatus, authorOwnedImport, canonicalizeOwnedComponentId, canonicalizeOwnedImport, ownedImportEquivalents, projectV1OwnedComponentId, projectV1OwnedImportIdentity, resolveOwnedPackageImport } from './package-identity.js';
|
|
17
15
|
export { Area, AreaCriticality, AreaMatch, Topology, resolveArea } from './topology/index.js';
|
|
18
|
-
import
|
|
16
|
+
import 'react';
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* Brand constants for easy rebranding if domain availability requires it.
|
|
@@ -7108,12 +7106,15 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7108
7106
|
ci: z.ZodOptional<z.ZodObject<{
|
|
7109
7107
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
7110
7108
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
7109
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
7111
7110
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
7112
7111
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
7113
7112
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
7113
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
7114
7114
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
7115
7115
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
7116
7116
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
7117
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
7117
7118
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
7118
7119
|
}, "strict", z.ZodTypeAny, {
|
|
7119
7120
|
components?: Record<string, {
|
|
@@ -7341,6 +7342,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7341
7342
|
ci?: z.objectOutputType<{
|
|
7342
7343
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
7343
7344
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
7345
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
7344
7346
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7345
7347
|
}, {
|
|
7346
7348
|
components?: Record<string, {
|
|
@@ -7568,6 +7570,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7568
7570
|
ci?: z.objectInputType<{
|
|
7569
7571
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
7570
7572
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
7573
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
7571
7574
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7572
7575
|
}>>;
|
|
7573
7576
|
inspect: z.ZodOptional<z.ZodObject<{
|
|
@@ -7939,6 +7942,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7939
7942
|
ci?: z.objectOutputType<{
|
|
7940
7943
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
7941
7944
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
7945
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
7942
7946
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7943
7947
|
} | undefined;
|
|
7944
7948
|
exclude?: string[] | undefined;
|
|
@@ -8274,6 +8278,7 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
8274
8278
|
ci?: z.objectInputType<{
|
|
8275
8279
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
8276
8280
|
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
8281
|
+
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
8277
8282
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
8278
8283
|
} | undefined;
|
|
8279
8284
|
exclude?: string[] | undefined;
|
|
@@ -10141,185 +10146,6 @@ declare const compileRecipe: typeof compileBlock;
|
|
|
10141
10146
|
*/
|
|
10142
10147
|
type InferProps<T> = T extends FragmentComponent<infer P> ? P : never;
|
|
10143
10148
|
|
|
10144
|
-
declare const toId: typeof toId$1;
|
|
10145
|
-
declare const storyNameFromExport: typeof storyNameFromExport$1;
|
|
10146
|
-
declare const isExportStory: typeof isExportStory$1;
|
|
10147
|
-
|
|
10148
|
-
/**
|
|
10149
|
-
* Runtime adapter for converting Storybook CSF modules to Fragment definitions.
|
|
10150
|
-
*
|
|
10151
|
-
* This operates on IMPORTED modules at runtime, not source code parsing.
|
|
10152
|
-
* By leveraging Vite's module system, we get 100% accurate render functions
|
|
10153
|
-
* without any regex or AST parsing complexity.
|
|
10154
|
-
*
|
|
10155
|
-
* Supports Storybook 8.x with both CSF2 (Template.bind) and CSF3 (object stories).
|
|
10156
|
-
*/
|
|
10157
|
-
|
|
10158
|
-
/**
|
|
10159
|
-
* Storybook decorator function signature
|
|
10160
|
-
*/
|
|
10161
|
-
type Decorator = (Story: () => ReactNode, context: StoryContext) => ReactNode;
|
|
10162
|
-
/**
|
|
10163
|
-
* Storybook loader function signature
|
|
10164
|
-
*/
|
|
10165
|
-
type Loader = (context: StoryContext) => Promise<Record<string, unknown>>;
|
|
10166
|
-
/**
|
|
10167
|
-
* Storybook play function signature (internal, extends StoryContext)
|
|
10168
|
-
*/
|
|
10169
|
-
type StorybookPlayFunction = (context: StorybookPlayFunctionContext) => Promise<void>;
|
|
10170
|
-
/**
|
|
10171
|
-
* Context passed to Storybook play functions (extends StoryContext for compatibility)
|
|
10172
|
-
*/
|
|
10173
|
-
interface StorybookPlayFunctionContext extends StoryContext {
|
|
10174
|
-
canvasElement: HTMLElement;
|
|
10175
|
-
step: (name: string, fn: () => Promise<void>) => Promise<void>;
|
|
10176
|
-
}
|
|
10177
|
-
/**
|
|
10178
|
-
* Context passed to decorators and render functions
|
|
10179
|
-
*/
|
|
10180
|
-
interface StoryContext {
|
|
10181
|
-
args: Record<string, unknown>;
|
|
10182
|
-
argTypes: Record<string, StoryArgType>;
|
|
10183
|
-
globals: Record<string, unknown>;
|
|
10184
|
-
parameters: Record<string, unknown>;
|
|
10185
|
-
id: string;
|
|
10186
|
-
kind: string;
|
|
10187
|
-
name: string;
|
|
10188
|
-
story: string;
|
|
10189
|
-
viewMode: "story" | "docs";
|
|
10190
|
-
loaded: Record<string, unknown>;
|
|
10191
|
-
abortSignal: AbortSignal;
|
|
10192
|
-
componentId: string;
|
|
10193
|
-
title: string;
|
|
10194
|
-
}
|
|
10195
|
-
/**
|
|
10196
|
-
* Storybook Meta (default export)
|
|
10197
|
-
*/
|
|
10198
|
-
interface StoryMeta {
|
|
10199
|
-
title?: string;
|
|
10200
|
-
component?: ComponentType<unknown>;
|
|
10201
|
-
subcomponents?: Record<string, ComponentType<unknown>>;
|
|
10202
|
-
tags?: string[];
|
|
10203
|
-
parameters?: Record<string, unknown> & {
|
|
10204
|
-
docs?: {
|
|
10205
|
-
description?: {
|
|
10206
|
-
component?: string;
|
|
10207
|
-
};
|
|
10208
|
-
};
|
|
10209
|
-
};
|
|
10210
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10211
|
-
args?: Record<string, unknown>;
|
|
10212
|
-
decorators?: Decorator[];
|
|
10213
|
-
loaders?: Loader[];
|
|
10214
|
-
render?: (args: Record<string, unknown>, context?: StoryContext) => ReactNode;
|
|
10215
|
-
includeStories?: string[] | RegExp;
|
|
10216
|
-
excludeStories?: string[] | RegExp;
|
|
10217
|
-
}
|
|
10218
|
-
/**
|
|
10219
|
-
* Storybook argType definition
|
|
10220
|
-
*/
|
|
10221
|
-
interface StoryArgType {
|
|
10222
|
-
control?: string | false | {
|
|
10223
|
-
type: string;
|
|
10224
|
-
min?: number;
|
|
10225
|
-
max?: number;
|
|
10226
|
-
step?: number;
|
|
10227
|
-
presetColors?: string[];
|
|
10228
|
-
};
|
|
10229
|
-
options?: string[];
|
|
10230
|
-
description?: string;
|
|
10231
|
-
table?: {
|
|
10232
|
-
defaultValue?: {
|
|
10233
|
-
summary: string;
|
|
10234
|
-
};
|
|
10235
|
-
type?: {
|
|
10236
|
-
summary: string;
|
|
10237
|
-
};
|
|
10238
|
-
category?: string;
|
|
10239
|
-
subcategory?: string;
|
|
10240
|
-
disable?: boolean;
|
|
10241
|
-
};
|
|
10242
|
-
type?: {
|
|
10243
|
-
name: string;
|
|
10244
|
-
required?: boolean;
|
|
10245
|
-
};
|
|
10246
|
-
name?: string;
|
|
10247
|
-
defaultValue?: unknown;
|
|
10248
|
-
if?: {
|
|
10249
|
-
arg?: string;
|
|
10250
|
-
exists?: boolean;
|
|
10251
|
-
};
|
|
10252
|
-
mapping?: Record<string, unknown>;
|
|
10253
|
-
action?: string;
|
|
10254
|
-
}
|
|
10255
|
-
/**
|
|
10256
|
-
* Storybook Story export (CSF3)
|
|
10257
|
-
*/
|
|
10258
|
-
interface Story {
|
|
10259
|
-
args?: Record<string, unknown>;
|
|
10260
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10261
|
-
render?: (args: Record<string, unknown>, context?: StoryContext) => ReactNode;
|
|
10262
|
-
decorators?: Decorator[];
|
|
10263
|
-
loaders?: Loader[];
|
|
10264
|
-
play?: StorybookPlayFunction;
|
|
10265
|
-
parameters?: Record<string, unknown> & {
|
|
10266
|
-
docs?: {
|
|
10267
|
-
description?: {
|
|
10268
|
-
story?: string;
|
|
10269
|
-
};
|
|
10270
|
-
};
|
|
10271
|
-
};
|
|
10272
|
-
name?: string;
|
|
10273
|
-
storyName?: string;
|
|
10274
|
-
tags?: string[];
|
|
10275
|
-
}
|
|
10276
|
-
/**
|
|
10277
|
-
* CSF2 story function (from Template.bind({})) with args attached
|
|
10278
|
-
*/
|
|
10279
|
-
type CSF2Story = ((args: Record<string, unknown>) => ReactNode) & {
|
|
10280
|
-
args?: Record<string, unknown>;
|
|
10281
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10282
|
-
decorators?: Decorator[];
|
|
10283
|
-
loaders?: Loader[];
|
|
10284
|
-
play?: StorybookPlayFunction;
|
|
10285
|
-
parameters?: Record<string, unknown>;
|
|
10286
|
-
storyName?: string;
|
|
10287
|
-
};
|
|
10288
|
-
/**
|
|
10289
|
-
* A complete Storybook module with default meta and named story exports
|
|
10290
|
-
*/
|
|
10291
|
-
interface StoryModule {
|
|
10292
|
-
default: StoryMeta;
|
|
10293
|
-
[exportName: string]: Story | CSF2Story | StoryMeta | unknown;
|
|
10294
|
-
}
|
|
10295
|
-
/**
|
|
10296
|
-
* Global configuration from preview.tsx
|
|
10297
|
-
*/
|
|
10298
|
-
interface PreviewConfig {
|
|
10299
|
-
decorators?: Decorator[];
|
|
10300
|
-
parameters?: Record<string, unknown>;
|
|
10301
|
-
globalTypes?: Record<string, unknown>;
|
|
10302
|
-
args?: Record<string, unknown>;
|
|
10303
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10304
|
-
loaders?: Loader[];
|
|
10305
|
-
}
|
|
10306
|
-
/**
|
|
10307
|
-
* Set the global preview configuration loaded from .storybook/preview.tsx
|
|
10308
|
-
*/
|
|
10309
|
-
declare function setPreviewConfig(config: PreviewConfig): void;
|
|
10310
|
-
/**
|
|
10311
|
-
* Get the current global preview configuration
|
|
10312
|
-
*/
|
|
10313
|
-
declare function getPreviewConfig(): PreviewConfig;
|
|
10314
|
-
/**
|
|
10315
|
-
* Convert a Storybook module to a Fragment definition at runtime.
|
|
10316
|
-
*
|
|
10317
|
-
* @param storyModule - The imported Storybook module
|
|
10318
|
-
* @param filePath - File path for metadata extraction
|
|
10319
|
-
* @returns A complete FragmentDefinition ready for the viewer
|
|
10320
|
-
*/
|
|
10321
|
-
declare function storyModuleToFragment(storyModule: StoryModule, filePath: string): FragmentDefinition | null;
|
|
10322
|
-
|
|
10323
10149
|
/**
|
|
10324
10150
|
* Smart filtering for Storybook adapter.
|
|
10325
10151
|
*
|
|
@@ -11597,46 +11423,6 @@ declare function analyzeComposition(fragments: Record<string, CompiledFragment>,
|
|
|
11597
11423
|
graph?: ComponentGraph;
|
|
11598
11424
|
}): CompositionAnalysis;
|
|
11599
11425
|
|
|
11600
|
-
/**
|
|
11601
|
-
* Minimal contract for rendering a preview variant.
|
|
11602
|
-
* Compatible with fragment variants and Storybook-adapted variants.
|
|
11603
|
-
*/
|
|
11604
|
-
interface PreviewVariantLike {
|
|
11605
|
-
render: (options?: VariantRenderOptions) => ReactNode;
|
|
11606
|
-
loaders?: VariantLoader[];
|
|
11607
|
-
}
|
|
11608
|
-
interface PreviewRuntimeState {
|
|
11609
|
-
content: ReactNode | null;
|
|
11610
|
-
isLoading: boolean;
|
|
11611
|
-
error: Error | null;
|
|
11612
|
-
loadedData?: Record<string, unknown>;
|
|
11613
|
-
}
|
|
11614
|
-
interface PreviewRuntimeOptions {
|
|
11615
|
-
variant?: PreviewVariantLike | null;
|
|
11616
|
-
loadedData?: Record<string, unknown>;
|
|
11617
|
-
}
|
|
11618
|
-
/**
|
|
11619
|
-
* Execute all variant loaders and merge their payloads.
|
|
11620
|
-
* `loadedData` is applied last so host-level overrides win.
|
|
11621
|
-
*/
|
|
11622
|
-
declare function executeVariantLoaders(loaders: VariantLoader[] | undefined, loadedData?: Record<string, unknown>): Promise<Record<string, unknown> | undefined>;
|
|
11623
|
-
/**
|
|
11624
|
-
* Resolve a full runtime state (loader execution + render) in one async call.
|
|
11625
|
-
* This is useful for testing and for hook/component orchestration.
|
|
11626
|
-
*/
|
|
11627
|
-
declare function resolvePreviewRuntimeState(options: PreviewRuntimeOptions): Promise<PreviewRuntimeState>;
|
|
11628
|
-
/**
|
|
11629
|
-
* Hook for rendering a preview variant with loader support.
|
|
11630
|
-
*/
|
|
11631
|
-
declare function usePreviewVariantRuntime(options: PreviewRuntimeOptions): PreviewRuntimeState;
|
|
11632
|
-
interface PreviewVariantRuntimeProps extends PreviewRuntimeOptions {
|
|
11633
|
-
children: (state: PreviewRuntimeState) => ReactNode;
|
|
11634
|
-
}
|
|
11635
|
-
/**
|
|
11636
|
-
* Render-prop component wrapper around `usePreviewVariantRuntime`.
|
|
11637
|
-
*/
|
|
11638
|
-
declare function PreviewVariantRuntime({ variant, loadedData, children, }: PreviewVariantRuntimeProps): react_jsx_runtime.JSX.Element;
|
|
11639
|
-
|
|
11640
11426
|
/**
|
|
11641
11427
|
* Component discovery utilities.
|
|
11642
11428
|
*
|
|
@@ -12413,6 +12199,7 @@ interface Rule {
|
|
|
12413
12199
|
id: string;
|
|
12414
12200
|
version: string;
|
|
12415
12201
|
run: RuleFn;
|
|
12202
|
+
optionsSchema?: ZodTypeAny;
|
|
12416
12203
|
}
|
|
12417
12204
|
declare const RULES: readonly Rule[];
|
|
12418
12205
|
/**
|
|
@@ -12768,4 +12555,4 @@ interface ComponentKeyInput {
|
|
|
12768
12555
|
*/
|
|
12769
12556
|
declare function buildComponentKey({ repoRelativeFile, exportName }: ComponentKeyInput): string;
|
|
12770
12557
|
|
|
12771
|
-
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 CanonicalBridgeIdentityBinding, CanonicalBridgeV1, type CanonicalCandidateFact, type CanonicalDirectionConflict, 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, type CompileEffectiveGovernanceInputsOptions, 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, ContractCanonicalMappingInput, ContractCatalogInput, ContractDomain, type ContractStampPin, type ContractStampRecord, type ContractTokenReferenceCensus, 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, EFFECTIVE_GOVERNANCE_INPUTS_SCHEMA, type EffectiveGovernanceInputs, type EffectiveGovernanceInputsSourceState, type EnhancedStyleComparisonResult, type EnhancedStyleDiffItem, EvidenceGrade, type ExclusionReason, type ExclusionResult, type ExternalIdentityReference, FRAGMENTS_INTERNAL_RULE_IDS, type Fact, type FactConflict, 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 GovernanceIntegrityRoster, type GovernanceIntegrityStatus, type GovernanceIntegrityVerdict, GovernanceSeverity, GovernedFragmentDefinition, type IdentityClassification, type IdentityConfidence, type IdentityDecision, type IdentityFact, type IdentityState, type InertConfigDiagnostic, type InertConfigDiagnosticCode, type InertConfigDiagnosticKind, 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 PolicyExclude, type PolicyExcludeInput, 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_FAMILY_IDS, RULE_FAMILY_MEMBERS, 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 StyleValueProvenance, type SupersededImportPathPreference, 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 TokenCatalog, type TokenCatalogDefinition, type TokenCatalogDiagnostic, type TokenCatalogLocation, type TokenCatalogReference, type TokenCatalogSourceState, 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 UsageChildContentFact, 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, canonicalBridgeContractMappings, canonicalBridgeIdentityBindings, canonicalBridgeIdentitySources, canonicalDirectionConflictsTarget, canonicalJson, canonicalPreimage, catalogFixtureA, catalogFixtureAContractPayload, catalogFixtureATokensDtcg, checkStoryExclusion, clampMaxPasses, classifyComplexity, classifyIdentity, collectRegistryInstallDependencies, collidingRecordDiagnostic, collidingRecordDiagnostics, colorSimilarity, compareByVocabularyRank, compareColors, compareNumericValues, compareStyleValue, compareStyles, compareStylesWithTokens, compileBlock, compileComponentFacts, compileEffectiveGovernanceInputs, compileFragment, compileGlobalGovernanceFacts, compileRecipe, componentContractSchema, componentId, componentRelationSchema, compositionAuthoringEntrySchema, compositionMetadataSchema, compositionPatternSchema, configDeclarationForDiagnostics, configRecordShape, containsTailwindV4Theme, contractHash, contractTierRuleIds, contractTokenReferenceCensus, customerDefaultRuleStates, defineBlock, defineConfig, defineFragment, defineRecipe, describePolicyExclude, detectOrphanGovernanceScales, detectSubComponentPaths, detectUnconsumedConfigKeys, detectUnmatchedPolicyExcludes, discoverComponents, dtcgTokenFileSchema, emptyConformResult, evaluateGovernanceIntegrity, excludeGlobToRegExp, 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, isRuleFamilyId, 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, makeUsageChildContentFact, makeUsageComponentFact, makeUsageImportFact, makeUsageInlineStyleFact, makeUsageNodeFact, makeUsagePropResolvedFact, makeUsageTextChildFact, matchPolicyExclude, matchesGlob, mcpBlockSchema, mcpCapabilitySchema, mcpComponentExampleSchema, mcpComponentGuidanceSchema, mcpComponentMetadataSchema, mcpComponentPropSchema, mcpComponentRelationSchema, mcpComponentSchema, mcpCompoundChildSchema, mcpGuidancePatternSchema, mcpPerformanceDataSchema, mcpPerformanceImportSchema, mcpPerformanceSummarySchema, mcpSnapshotMetadataSchema, mcpSnapshotSchema, mcpSnapshotSchemaVersionSchema, mcpSourceTypeSchema, mcpTokenDataSchema, mcpTokenSchema, nearestByDeltaE, nearestSignedScaleValue, normalizeColor, normalizeConfigPath, normalizeExcludePath, normalizePolicyExcludes, normalizeRegistryRepoPath, normalizeStyleValue, normalizeToV1, normalizeTokenGroupComment, normalizeTokenValue, overriddenRecordSeverityDiagnostic, parseColor, parseColorToRgb, parseComponentContract, parseContractStamp, parseCssTokens, parseDtcgTokens as parseDTCGFile, parseDesignTokenContent, parseDtcgTokens, parseRgb, parseScssTokens, parseScssVariables, parseTailwindV4Theme, parseTokenFile, parseTokens, policyExcludeMatchesPath, policyExcludeSchema, portableRepoPathError, projectCanonicalDirectionConflicts, projectSupersededImportPathPreferences, propDefinitionSchema, proveCompliant, proveIssueCount, recipeDefinitionSchema, resolveCanonicalForAriaRole, resolveCanonicalForRawHtml, resolveConfiguredAppPath, resolveDesignTokenValue, resolveFigmaMapping, resolvePerformanceConfig, resolvePreviewRuntimeState, resolveProveVerdict, resolveSpacingValue, resolveTokenValue, rgbToHex, ruleA11yRequiredAccessibleName, ruleA11yStandard, ruleComponentsForbiddenPropValue, ruleComponentsPreferLibrary, ruleComponentsShadowComponent, ruleComponentsUnknownProp, ruleFamilyMembers, 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 };
|
|
12558
|
+
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 CSSGeneratorOptions, type CanonicalBridgeIdentityBinding, CanonicalBridgeV1, type CanonicalCandidateFact, type CanonicalDirectionConflict, 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, type CompileEffectiveGovernanceInputsOptions, 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, ContractCanonicalMappingInput, ContractCatalogInput, ContractDomain, type ContractStampPin, type ContractStampRecord, type ContractTokenReferenceCensus, DEFAULTS, DEFAULT_ENHANCED_STYLE_PROPERTIES, DEFAULT_STYLE_PROPERTIES, type DTCGColorValue, type DTCGDimensionValue, type DTCGGroup, type DTCGToken, type DTCGTokenFile, type DTCGTokenType, type Defaults, type DeltaEMatch, type DesignSystemContext, type DesignToken, type DesignTokenParseOptions, type DiscoverComponentsOptions, EFFECTIVE_GOVERNANCE_INPUTS_SCHEMA, type EffectiveGovernanceInputs, type EffectiveGovernanceInputsSourceState, type EnhancedStyleComparisonResult, type EnhancedStyleDiffItem, EvidenceGrade, type ExclusionReason, type ExclusionResult, type ExternalIdentityReference, FRAGMENTS_INTERNAL_RULE_IDS, type Fact, type FactConflict, 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 GovernanceIntegrityRoster, type GovernanceIntegrityStatus, type GovernanceIntegrityVerdict, GovernanceSeverity, GovernedFragmentDefinition, type IdentityClassification, type IdentityConfidence, type IdentityDecision, type IdentityFact, type IdentityState, type InertConfigDiagnostic, type InertConfigDiagnosticCode, type InertConfigDiagnosticKind, type InferProps, type JsxComponentPreferredFact, type JsxImportPathPreferredFact, type JsxInlineStyleForbiddenRawFact, type JsxUnknownPropsForbiddenFact, 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 PolicyExclude, type PolicyExcludeInput, type PolicyFact, type PresetRuleState, 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_FAMILY_IDS, RULE_FAMILY_MEMBERS, 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, StorybookFilterConfig, type StructuralConfidenceFact, type StyleComparisonOptions, type StyleComparisonResult, type StyleCssVarsMustBeDefinedFact, type StyleDeclarationFact, type StyleDiffItem, type StyleFontSizeScaleFact, type StylePropertyScaleFact, type StyleRawColorForbiddenFact, type StyleUnsupportedFact, type StyleValueProvenance, type SupersededImportPathPreference, 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 TokenCatalog, type TokenCatalogDefinition, type TokenCatalogDiagnostic, type TokenCatalogLocation, type TokenCatalogReference, type TokenCatalogSourceState, 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 UsageChildContentFact, type UsageComponentFact, type UsageFact, type UsageImportFact, type UsageInlineStyleFact, type UsageNodeFact, type UsagePropResolvedFact, type UsageTextChildFact, aiMetadataSchema, analyzeComposition, asComponentId, assertPortableRegistryPath, blockDefinitionSchema, budgetBar, buildAgentFormat, buildComponentKey, buildRegistryInstallPlan, buildRegistryInstallReceipt, buildSpacingTokenLookup, bundleArtifactMetadataSchema, bundleComponentShardSchema, bundleManifestComponentEntrySchema, bundleManifestSchema, bundleSchemaVersionSchema, bundleTargetSchema, bundleTokenFileSchema, calculateDeltaE, canonicalBridgeContractMappings, canonicalBridgeIdentityBindings, canonicalBridgeIdentitySources, canonicalDirectionConflictsTarget, canonicalJson, canonicalPreimage, catalogFixtureA, catalogFixtureAContractPayload, catalogFixtureATokensDtcg, checkStoryExclusion, clampMaxPasses, classifyComplexity, classifyIdentity, collectRegistryInstallDependencies, collidingRecordDiagnostic, collidingRecordDiagnostics, colorSimilarity, compareByVocabularyRank, compareColors, compareNumericValues, compareStyleValue, compareStyles, compareStylesWithTokens, compileBlock, compileComponentFacts, compileEffectiveGovernanceInputs, compileFragment, compileGlobalGovernanceFacts, compileRecipe, componentContractSchema, componentId, componentRelationSchema, compositionAuthoringEntrySchema, compositionMetadataSchema, compositionPatternSchema, configDeclarationForDiagnostics, configRecordShape, containsTailwindV4Theme, contractHash, contractTierRuleIds, contractTokenReferenceCensus, customerDefaultRuleStates, defineBlock, defineConfig, defineFragment, defineRecipe, describePolicyExclude, detectOrphanGovernanceScales, detectSubComponentPaths, detectUnconsumedConfigKeys, detectUnmatchedPolicyExcludes, discoverComponents, dtcgTokenFileSchema, emptyConformResult, evaluateGovernanceIntegrity, excludeGlobToRegExp, 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, governedFragmentDefinitionSchema, hasEffectiveComponentVocabulary, hash64Hex, hexToRgb, hygieneTierRuleIds, indexComponentIdentityUsage, inferTokenCategory, inferTokenGroup, isColorLike, isCompositionPattern, isConfigExcluded, isContractFile, isContractTierRule, isDTCGFile, isDenyEligible, isEffectiveCanonicalSource, isEnforceableHtmlEquivalent, isFigmaPropMapping, isForceIncluded, isPortableRepoPath, isRawHtmlAdvisoryTier, isReactComponent, isRuleFamilyId, 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, makeUsageChildContentFact, makeUsageComponentFact, makeUsageImportFact, makeUsageInlineStyleFact, makeUsageNodeFact, makeUsagePropResolvedFact, makeUsageTextChildFact, matchPolicyExclude, matchesGlob, mcpBlockSchema, mcpCapabilitySchema, mcpComponentExampleSchema, mcpComponentGuidanceSchema, mcpComponentMetadataSchema, mcpComponentPropSchema, mcpComponentRelationSchema, mcpComponentSchema, mcpCompoundChildSchema, mcpGuidancePatternSchema, mcpPerformanceDataSchema, mcpPerformanceImportSchema, mcpPerformanceSummarySchema, mcpSnapshotMetadataSchema, mcpSnapshotSchema, mcpSnapshotSchemaVersionSchema, mcpSourceTypeSchema, mcpTokenDataSchema, mcpTokenSchema, nearestByDeltaE, nearestSignedScaleValue, normalizeColor, normalizeConfigPath, normalizeExcludePath, normalizePolicyExcludes, normalizeRegistryRepoPath, normalizeStyleValue, normalizeToV1, normalizeTokenGroupComment, normalizeTokenValue, overriddenRecordSeverityDiagnostic, parseColor, parseColorToRgb, parseComponentContract, parseContractStamp, parseCssTokens, parseDtcgTokens as parseDTCGFile, parseDesignTokenContent, parseDtcgTokens, parseRgb, parseScssTokens, parseScssVariables, parseTailwindV4Theme, parseTokenFile, parseTokens, policyExcludeMatchesPath, policyExcludeSchema, portableRepoPathError, projectCanonicalDirectionConflicts, projectSupersededImportPathPreferences, propDefinitionSchema, proveCompliant, proveIssueCount, recipeDefinitionSchema, resolveCanonicalForAriaRole, resolveCanonicalForRawHtml, resolveConfiguredAppPath, resolveDesignTokenValue, resolveFigmaMapping, resolvePerformanceConfig, resolveProveVerdict, resolveSpacingValue, resolveTokenValue, rgbToHex, ruleA11yRequiredAccessibleName, ruleA11yStandard, ruleComponentsForbiddenPropValue, ruleComponentsPreferLibrary, ruleComponentsShadowComponent, ruleComponentsUnknownProp, ruleFamilyMembers, ruleJsxPreferredComponent, ruleJsxPreferredImportPath, rulePropsInvalidValue, ruleStylesNoRawColor, ruleStylesNoRawDimensions, ruleStylesNoRawSpacing, ruleStylesNoRawTypography, ruleTailwindArbitraryColor, ruleTailwindArbitrarySpacing, ruleTailwindForbiddenPalette, ruleTailwindOffScaleSpacingToken, ruleTailwindRawColorViaToken, ruleTailwindUnknownClass, ruleThemeNoThemeCoupledLiteral, ruleTokensRequireDualFallback, runRules, selectedRegistryComponentNames, serializeContractStamp, sha256Hex, sourceToRegistryTargetPath, tierFor, tokenIncludesFromConfig, topologyBase, vocabularyRank };
|