@usefragments/core 1.10.0 → 1.10.2
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/codes/index.d.ts +1 -1
- package/dist/compiled-types/index.d.ts +1 -1
- package/dist/generate/index.d.ts +1 -1
- package/dist/{governance-B5WWcmFY.d.ts → governance-CLk_wkP9.d.ts} +1 -1
- package/dist/index.d.ts +136 -357
- package/dist/index.js +7 -454
- 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/registry.d.ts +18 -18
- package/dist/schemas/index.d.ts +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/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/storyAdapter.ts +3 -2
- package/src/tokens/scss.test.ts +32 -1
- package/src/tokens/scss.ts +12 -7
- package/dist/{index-DtHxs0Pf.d.ts → index-_sxhUNqx.d.ts} +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
export { GOVERNANCE_TELEMETRY_FIELDS, GOVERNANCE_TELEMETRY_SOURCE_DISCLOSURE, GOVERNANCE_TELEMETRY_TOP_LEVEL_FIELDS, GovernanceTelemetryCarriage, GovernanceTelemetryField, GovernanceTelemetryTopLevelField } from './governance-telemetry.js';
|
|
2
|
-
import { F as Finding, A as AgentFormat, E as EvidenceGrade, a as FindingFix } from './index-
|
|
3
|
-
export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOutput, G as CanonicalGovernanceVerdict, e as EVIDENCE_ORDER, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, l as GovernanceVerdictMetadata, I as InspectClaim, m as InspectClaimTier, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, s as canBlock, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from './index-
|
|
2
|
+
import { F as Finding, A as AgentFormat, E as EvidenceGrade, a as FindingFix } from './index-_sxhUNqx.js';
|
|
3
|
+
export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOutput, G as CanonicalGovernanceVerdict, e as EVIDENCE_ORDER, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, l as GovernanceVerdictMetadata, I as InspectClaim, m as InspectClaimTier, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, s as canBlock, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from './index-_sxhUNqx.js';
|
|
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-
|
|
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
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.
|
|
@@ -2224,7 +2222,7 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
|
|
|
2224
2222
|
name: string;
|
|
2225
2223
|
}[];
|
|
2226
2224
|
file: string;
|
|
2227
|
-
tier: "
|
|
2225
|
+
tier: "composition" | "core";
|
|
2228
2226
|
description: string;
|
|
2229
2227
|
publicSlug: string | null;
|
|
2230
2228
|
propCount: number;
|
|
@@ -2245,7 +2243,7 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
|
|
|
2245
2243
|
name: string;
|
|
2246
2244
|
}[];
|
|
2247
2245
|
file: string;
|
|
2248
|
-
tier: "
|
|
2246
|
+
tier: "composition" | "core";
|
|
2249
2247
|
description: string;
|
|
2250
2248
|
publicSlug: string | null;
|
|
2251
2249
|
propCount: number;
|
|
@@ -2354,7 +2352,7 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
2354
2352
|
name: string;
|
|
2355
2353
|
}[];
|
|
2356
2354
|
file: string;
|
|
2357
|
-
tier: "
|
|
2355
|
+
tier: "composition" | "core";
|
|
2358
2356
|
description: string;
|
|
2359
2357
|
publicSlug: string | null;
|
|
2360
2358
|
propCount: number;
|
|
@@ -2375,7 +2373,7 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
2375
2373
|
name: string;
|
|
2376
2374
|
}[];
|
|
2377
2375
|
file: string;
|
|
2378
|
-
tier: "
|
|
2376
|
+
tier: "composition" | "core";
|
|
2379
2377
|
description: string;
|
|
2380
2378
|
publicSlug: string | null;
|
|
2381
2379
|
propCount: number;
|
|
@@ -2398,7 +2396,7 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
2398
2396
|
name: string;
|
|
2399
2397
|
}[];
|
|
2400
2398
|
file: string;
|
|
2401
|
-
tier: "
|
|
2399
|
+
tier: "composition" | "core";
|
|
2402
2400
|
description: string;
|
|
2403
2401
|
publicSlug: string | null;
|
|
2404
2402
|
propCount: number;
|
|
@@ -2444,7 +2442,7 @@ declare const bundleManifestSchema: z.ZodObject<{
|
|
|
2444
2442
|
name: string;
|
|
2445
2443
|
}[];
|
|
2446
2444
|
file: string;
|
|
2447
|
-
tier: "
|
|
2445
|
+
tier: "composition" | "core";
|
|
2448
2446
|
description: string;
|
|
2449
2447
|
publicSlug: string | null;
|
|
2450
2448
|
propCount: number;
|
|
@@ -2552,6 +2550,7 @@ declare const bundleTokenFileSchema: z.ZodObject<{
|
|
|
2552
2550
|
description?: string | undefined;
|
|
2553
2551
|
}>, "many">;
|
|
2554
2552
|
}, "strip", z.ZodTypeAny, {
|
|
2553
|
+
schemaVersion: 1;
|
|
2555
2554
|
flat: {
|
|
2556
2555
|
value: string;
|
|
2557
2556
|
path: string[];
|
|
@@ -2560,7 +2559,6 @@ declare const bundleTokenFileSchema: z.ZodObject<{
|
|
|
2560
2559
|
type?: string | undefined;
|
|
2561
2560
|
description?: string | undefined;
|
|
2562
2561
|
}[];
|
|
2563
|
-
schemaVersion: 1;
|
|
2564
2562
|
catalogRevision: string;
|
|
2565
2563
|
catalogUpdatedAt: string;
|
|
2566
2564
|
categories: Record<string, {
|
|
@@ -2575,6 +2573,7 @@ declare const bundleTokenFileSchema: z.ZodObject<{
|
|
|
2575
2573
|
count: number;
|
|
2576
2574
|
}>;
|
|
2577
2575
|
}, {
|
|
2576
|
+
schemaVersion: 1;
|
|
2578
2577
|
flat: {
|
|
2579
2578
|
value: string;
|
|
2580
2579
|
path: string[];
|
|
@@ -2583,7 +2582,6 @@ declare const bundleTokenFileSchema: z.ZodObject<{
|
|
|
2583
2582
|
type?: string | undefined;
|
|
2584
2583
|
description?: string | undefined;
|
|
2585
2584
|
}[];
|
|
2586
|
-
schemaVersion: 1;
|
|
2587
2585
|
catalogRevision: string;
|
|
2588
2586
|
catalogUpdatedAt: string;
|
|
2589
2587
|
categories: Record<string, {
|
|
@@ -2637,8 +2635,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2637
2635
|
parentComponentName: z.ZodOptional<z.ZodString>;
|
|
2638
2636
|
parentComponentKey: z.ZodOptional<z.ZodString>;
|
|
2639
2637
|
}, "strip", z.ZodTypeAny, {
|
|
2640
|
-
status: string;
|
|
2641
2638
|
source: "design-system";
|
|
2639
|
+
status: string;
|
|
2642
2640
|
props: Record<string, unknown>;
|
|
2643
2641
|
category: string;
|
|
2644
2642
|
name: string;
|
|
@@ -2648,7 +2646,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2648
2646
|
componentId: string;
|
|
2649
2647
|
name: string;
|
|
2650
2648
|
}[];
|
|
2651
|
-
tier: "
|
|
2649
|
+
tier: "composition" | "core";
|
|
2652
2650
|
description: string;
|
|
2653
2651
|
publicSlug: string | null;
|
|
2654
2652
|
relations: Record<string, unknown>[];
|
|
@@ -2663,8 +2661,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2663
2661
|
parentComponentName?: string | undefined;
|
|
2664
2662
|
parentComponentKey?: string | undefined;
|
|
2665
2663
|
}, {
|
|
2666
|
-
status: string;
|
|
2667
2664
|
source: "design-system";
|
|
2665
|
+
status: string;
|
|
2668
2666
|
props: Record<string, unknown>;
|
|
2669
2667
|
category: string;
|
|
2670
2668
|
name: string;
|
|
@@ -2674,7 +2672,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2674
2672
|
componentId: string;
|
|
2675
2673
|
name: string;
|
|
2676
2674
|
}[];
|
|
2677
|
-
tier: "
|
|
2675
|
+
tier: "composition" | "core";
|
|
2678
2676
|
description: string;
|
|
2679
2677
|
publicSlug: string | null;
|
|
2680
2678
|
relations: Record<string, unknown>[];
|
|
@@ -2694,8 +2692,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2694
2692
|
componentId: string;
|
|
2695
2693
|
file: string;
|
|
2696
2694
|
component: {
|
|
2697
|
-
status: string;
|
|
2698
2695
|
source: "design-system";
|
|
2696
|
+
status: string;
|
|
2699
2697
|
props: Record<string, unknown>;
|
|
2700
2698
|
category: string;
|
|
2701
2699
|
name: string;
|
|
@@ -2705,7 +2703,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2705
2703
|
componentId: string;
|
|
2706
2704
|
name: string;
|
|
2707
2705
|
}[];
|
|
2708
|
-
tier: "
|
|
2706
|
+
tier: "composition" | "core";
|
|
2709
2707
|
description: string;
|
|
2710
2708
|
publicSlug: string | null;
|
|
2711
2709
|
relations: Record<string, unknown>[];
|
|
@@ -2727,8 +2725,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2727
2725
|
componentId: string;
|
|
2728
2726
|
file: string;
|
|
2729
2727
|
component: {
|
|
2730
|
-
status: string;
|
|
2731
2728
|
source: "design-system";
|
|
2729
|
+
status: string;
|
|
2732
2730
|
props: Record<string, unknown>;
|
|
2733
2731
|
category: string;
|
|
2734
2732
|
name: string;
|
|
@@ -2738,7 +2736,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
|
|
|
2738
2736
|
componentId: string;
|
|
2739
2737
|
name: string;
|
|
2740
2738
|
}[];
|
|
2741
|
-
tier: "
|
|
2739
|
+
tier: "composition" | "core";
|
|
2742
2740
|
description: string;
|
|
2743
2741
|
publicSlug: string | null;
|
|
2744
2742
|
relations: Record<string, unknown>[];
|
|
@@ -7664,6 +7662,60 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7664
7662
|
}[] | undefined;
|
|
7665
7663
|
}>>;
|
|
7666
7664
|
}, "strip", z.ZodTypeAny, {
|
|
7665
|
+
components?: string[] | undefined;
|
|
7666
|
+
screenshots?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7667
|
+
topology?: {
|
|
7668
|
+
version: number;
|
|
7669
|
+
areas: {
|
|
7670
|
+
name: string;
|
|
7671
|
+
criticality: "high" | "medium" | "low" | "revenue" | "regulated";
|
|
7672
|
+
owners: string[];
|
|
7673
|
+
id: string;
|
|
7674
|
+
files: string[];
|
|
7675
|
+
routes?: string[] | undefined;
|
|
7676
|
+
priority?: number | undefined;
|
|
7677
|
+
}[];
|
|
7678
|
+
base?: "app" | "repo" | undefined;
|
|
7679
|
+
} | undefined;
|
|
7680
|
+
tokens?: z.objectOutputType<{
|
|
7681
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
7682
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7683
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
7684
|
+
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
7685
|
+
}, "strip", z.ZodTypeAny, {
|
|
7686
|
+
path: string;
|
|
7687
|
+
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
7688
|
+
}, {
|
|
7689
|
+
path: string;
|
|
7690
|
+
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
7691
|
+
}>, "many">>;
|
|
7692
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7693
|
+
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7694
|
+
upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7695
|
+
packageName: z.ZodString;
|
|
7696
|
+
version: z.ZodOptional<z.ZodString>;
|
|
7697
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
7698
|
+
}, "strip", z.ZodTypeAny, {
|
|
7699
|
+
packageName: string;
|
|
7700
|
+
version?: string | undefined;
|
|
7701
|
+
digest?: string | undefined;
|
|
7702
|
+
}, {
|
|
7703
|
+
packageName: string;
|
|
7704
|
+
version?: string | undefined;
|
|
7705
|
+
digest?: string | undefined;
|
|
7706
|
+
}>, "many">>;
|
|
7707
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
7708
|
+
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7709
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7710
|
+
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
7711
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
7712
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7713
|
+
performance?: "strict" | "relaxed" | "standard" | {
|
|
7714
|
+
preset?: "strict" | "relaxed" | "standard" | undefined;
|
|
7715
|
+
budgets?: {
|
|
7716
|
+
bundleSize?: number | undefined;
|
|
7717
|
+
} | undefined;
|
|
7718
|
+
} | undefined;
|
|
7667
7719
|
govern?: {
|
|
7668
7720
|
components?: Record<string, {
|
|
7669
7721
|
rules: ({
|
|
@@ -7893,60 +7945,6 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
7893
7945
|
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
7894
7946
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7895
7947
|
} | undefined;
|
|
7896
|
-
components?: string[] | undefined;
|
|
7897
|
-
screenshots?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7898
|
-
topology?: {
|
|
7899
|
-
version: number;
|
|
7900
|
-
areas: {
|
|
7901
|
-
name: string;
|
|
7902
|
-
criticality: "high" | "medium" | "low" | "revenue" | "regulated";
|
|
7903
|
-
owners: string[];
|
|
7904
|
-
id: string;
|
|
7905
|
-
files: string[];
|
|
7906
|
-
routes?: string[] | undefined;
|
|
7907
|
-
priority?: number | undefined;
|
|
7908
|
-
}[];
|
|
7909
|
-
base?: "app" | "repo" | undefined;
|
|
7910
|
-
} | undefined;
|
|
7911
|
-
tokens?: z.objectOutputType<{
|
|
7912
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
7913
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7914
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
7915
|
-
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
7916
|
-
}, "strip", z.ZodTypeAny, {
|
|
7917
|
-
path: string;
|
|
7918
|
-
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
7919
|
-
}, {
|
|
7920
|
-
path: string;
|
|
7921
|
-
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
7922
|
-
}>, "many">>;
|
|
7923
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7924
|
-
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7925
|
-
upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7926
|
-
packageName: z.ZodString;
|
|
7927
|
-
version: z.ZodOptional<z.ZodString>;
|
|
7928
|
-
digest: z.ZodOptional<z.ZodString>;
|
|
7929
|
-
}, "strip", z.ZodTypeAny, {
|
|
7930
|
-
packageName: string;
|
|
7931
|
-
version?: string | undefined;
|
|
7932
|
-
digest?: string | undefined;
|
|
7933
|
-
}, {
|
|
7934
|
-
packageName: string;
|
|
7935
|
-
version?: string | undefined;
|
|
7936
|
-
digest?: string | undefined;
|
|
7937
|
-
}>, "many">>;
|
|
7938
|
-
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
7939
|
-
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7940
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7941
|
-
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
7942
|
-
namespace: z.ZodOptional<z.ZodString>;
|
|
7943
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7944
|
-
performance?: "strict" | "relaxed" | "standard" | {
|
|
7945
|
-
preset?: "strict" | "relaxed" | "standard" | undefined;
|
|
7946
|
-
budgets?: {
|
|
7947
|
-
bundleSize?: number | undefined;
|
|
7948
|
-
} | undefined;
|
|
7949
|
-
} | undefined;
|
|
7950
7948
|
exclude?: string[] | undefined;
|
|
7951
7949
|
include?: string[] | undefined;
|
|
7952
7950
|
registry?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
@@ -8000,6 +7998,60 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
8000
7998
|
}[] | undefined;
|
|
8001
7999
|
} | undefined;
|
|
8002
8000
|
}, {
|
|
8001
|
+
components?: string[] | undefined;
|
|
8002
|
+
screenshots?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
8003
|
+
topology?: {
|
|
8004
|
+
version: number;
|
|
8005
|
+
areas: {
|
|
8006
|
+
name: string;
|
|
8007
|
+
criticality: "high" | "medium" | "low" | "revenue" | "regulated";
|
|
8008
|
+
owners: string[];
|
|
8009
|
+
id: string;
|
|
8010
|
+
files: string[];
|
|
8011
|
+
routes?: string[] | undefined;
|
|
8012
|
+
priority?: number | undefined;
|
|
8013
|
+
}[];
|
|
8014
|
+
base?: "app" | "repo" | undefined;
|
|
8015
|
+
} | undefined;
|
|
8016
|
+
tokens?: z.objectInputType<{
|
|
8017
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
8018
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8019
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
8020
|
+
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
8021
|
+
}, "strip", z.ZodTypeAny, {
|
|
8022
|
+
path: string;
|
|
8023
|
+
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
8024
|
+
}, {
|
|
8025
|
+
path: string;
|
|
8026
|
+
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
8027
|
+
}>, "many">>;
|
|
8028
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8029
|
+
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8030
|
+
upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8031
|
+
packageName: z.ZodString;
|
|
8032
|
+
version: z.ZodOptional<z.ZodString>;
|
|
8033
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
8034
|
+
}, "strip", z.ZodTypeAny, {
|
|
8035
|
+
packageName: string;
|
|
8036
|
+
version?: string | undefined;
|
|
8037
|
+
digest?: string | undefined;
|
|
8038
|
+
}, {
|
|
8039
|
+
packageName: string;
|
|
8040
|
+
version?: string | undefined;
|
|
8041
|
+
digest?: string | undefined;
|
|
8042
|
+
}>, "many">>;
|
|
8043
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
8044
|
+
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8045
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
8046
|
+
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
8047
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
8048
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
8049
|
+
performance?: "strict" | "relaxed" | "standard" | {
|
|
8050
|
+
preset?: "strict" | "relaxed" | "standard" | undefined;
|
|
8051
|
+
budgets?: {
|
|
8052
|
+
bundleSize?: number | undefined;
|
|
8053
|
+
} | undefined;
|
|
8054
|
+
} | undefined;
|
|
8003
8055
|
govern?: {
|
|
8004
8056
|
components?: Record<string, {
|
|
8005
8057
|
rules: ({
|
|
@@ -8229,60 +8281,6 @@ declare const fragmentsConfigSchema: z.ZodObject<{
|
|
|
8229
8281
|
failOnAdoptionRegression: z.ZodOptional<z.ZodBoolean>;
|
|
8230
8282
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
8231
8283
|
} | undefined;
|
|
8232
|
-
components?: string[] | undefined;
|
|
8233
|
-
screenshots?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
8234
|
-
topology?: {
|
|
8235
|
-
version: number;
|
|
8236
|
-
areas: {
|
|
8237
|
-
name: string;
|
|
8238
|
-
criticality: "high" | "medium" | "low" | "revenue" | "regulated";
|
|
8239
|
-
owners: string[];
|
|
8240
|
-
id: string;
|
|
8241
|
-
files: string[];
|
|
8242
|
-
routes?: string[] | undefined;
|
|
8243
|
-
priority?: number | undefined;
|
|
8244
|
-
}[];
|
|
8245
|
-
base?: "app" | "repo" | undefined;
|
|
8246
|
-
} | undefined;
|
|
8247
|
-
tokens?: z.objectInputType<{
|
|
8248
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
8249
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8250
|
-
path: z.ZodEffects<z.ZodString, string, string>;
|
|
8251
|
-
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
8252
|
-
}, "strip", z.ZodTypeAny, {
|
|
8253
|
-
path: string;
|
|
8254
|
-
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
8255
|
-
}, {
|
|
8256
|
-
path: string;
|
|
8257
|
-
format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
|
|
8258
|
-
}>, "many">>;
|
|
8259
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8260
|
-
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8261
|
-
upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8262
|
-
packageName: z.ZodString;
|
|
8263
|
-
version: z.ZodOptional<z.ZodString>;
|
|
8264
|
-
digest: z.ZodOptional<z.ZodString>;
|
|
8265
|
-
}, "strip", z.ZodTypeAny, {
|
|
8266
|
-
packageName: string;
|
|
8267
|
-
version?: string | undefined;
|
|
8268
|
-
digest?: string | undefined;
|
|
8269
|
-
}, {
|
|
8270
|
-
packageName: string;
|
|
8271
|
-
version?: string | undefined;
|
|
8272
|
-
digest?: string | undefined;
|
|
8273
|
-
}>, "many">>;
|
|
8274
|
-
exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
8275
|
-
themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8276
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
8277
|
-
format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
|
|
8278
|
-
namespace: z.ZodOptional<z.ZodString>;
|
|
8279
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
8280
|
-
performance?: "strict" | "relaxed" | "standard" | {
|
|
8281
|
-
preset?: "strict" | "relaxed" | "standard" | undefined;
|
|
8282
|
-
budgets?: {
|
|
8283
|
-
bundleSize?: number | undefined;
|
|
8284
|
-
} | undefined;
|
|
8285
|
-
} | undefined;
|
|
8286
8284
|
exclude?: string[] | undefined;
|
|
8287
8285
|
include?: string[] | undefined;
|
|
8288
8286
|
registry?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
@@ -9763,7 +9761,6 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
|
|
|
9763
9761
|
guidelines?: string[] | undefined;
|
|
9764
9762
|
accessibility?: string[] | undefined;
|
|
9765
9763
|
};
|
|
9766
|
-
govern?: ((...args: unknown[]) => unknown) | undefined;
|
|
9767
9764
|
composition?: {
|
|
9768
9765
|
pattern?: "compound" | "simple" | "controlled" | "wrapper" | undefined;
|
|
9769
9766
|
subComponents?: string[] | undefined;
|
|
@@ -9779,6 +9776,7 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
|
|
|
9779
9776
|
constraints?: string[] | undefined;
|
|
9780
9777
|
typeDetails?: Record<string, unknown> | undefined;
|
|
9781
9778
|
}> | undefined;
|
|
9779
|
+
govern?: ((...args: unknown[]) => unknown) | undefined;
|
|
9782
9780
|
contract?: {
|
|
9783
9781
|
composition?: {
|
|
9784
9782
|
rule: {
|
|
@@ -9909,7 +9907,6 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
|
|
|
9909
9907
|
guidelines?: string[] | undefined;
|
|
9910
9908
|
accessibility?: string[] | undefined;
|
|
9911
9909
|
};
|
|
9912
|
-
govern?: ((...args: unknown[]) => unknown) | undefined;
|
|
9913
9910
|
composition?: {
|
|
9914
9911
|
pattern?: "compound" | "simple" | "controlled" | "wrapper" | undefined;
|
|
9915
9912
|
subComponents?: string[] | undefined;
|
|
@@ -9925,6 +9922,7 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
|
|
|
9925
9922
|
constraints?: string[] | undefined;
|
|
9926
9923
|
typeDetails?: Record<string, unknown> | undefined;
|
|
9927
9924
|
}> | undefined;
|
|
9925
|
+
govern?: ((...args: unknown[]) => unknown) | undefined;
|
|
9928
9926
|
contract?: {
|
|
9929
9927
|
composition?: {
|
|
9930
9928
|
rule: {
|
|
@@ -10148,185 +10146,6 @@ declare const compileRecipe: typeof compileBlock;
|
|
|
10148
10146
|
*/
|
|
10149
10147
|
type InferProps<T> = T extends FragmentComponent<infer P> ? P : never;
|
|
10150
10148
|
|
|
10151
|
-
declare const toId: typeof toId$1;
|
|
10152
|
-
declare const storyNameFromExport: typeof storyNameFromExport$1;
|
|
10153
|
-
declare const isExportStory: typeof isExportStory$1;
|
|
10154
|
-
|
|
10155
|
-
/**
|
|
10156
|
-
* Runtime adapter for converting Storybook CSF modules to Fragment definitions.
|
|
10157
|
-
*
|
|
10158
|
-
* This operates on IMPORTED modules at runtime, not source code parsing.
|
|
10159
|
-
* By leveraging Vite's module system, we get 100% accurate render functions
|
|
10160
|
-
* without any regex or AST parsing complexity.
|
|
10161
|
-
*
|
|
10162
|
-
* Supports Storybook 8.x with both CSF2 (Template.bind) and CSF3 (object stories).
|
|
10163
|
-
*/
|
|
10164
|
-
|
|
10165
|
-
/**
|
|
10166
|
-
* Storybook decorator function signature
|
|
10167
|
-
*/
|
|
10168
|
-
type Decorator = (Story: () => ReactNode, context: StoryContext) => ReactNode;
|
|
10169
|
-
/**
|
|
10170
|
-
* Storybook loader function signature
|
|
10171
|
-
*/
|
|
10172
|
-
type Loader = (context: StoryContext) => Promise<Record<string, unknown>>;
|
|
10173
|
-
/**
|
|
10174
|
-
* Storybook play function signature (internal, extends StoryContext)
|
|
10175
|
-
*/
|
|
10176
|
-
type StorybookPlayFunction = (context: StorybookPlayFunctionContext) => Promise<void>;
|
|
10177
|
-
/**
|
|
10178
|
-
* Context passed to Storybook play functions (extends StoryContext for compatibility)
|
|
10179
|
-
*/
|
|
10180
|
-
interface StorybookPlayFunctionContext extends StoryContext {
|
|
10181
|
-
canvasElement: HTMLElement;
|
|
10182
|
-
step: (name: string, fn: () => Promise<void>) => Promise<void>;
|
|
10183
|
-
}
|
|
10184
|
-
/**
|
|
10185
|
-
* Context passed to decorators and render functions
|
|
10186
|
-
*/
|
|
10187
|
-
interface StoryContext {
|
|
10188
|
-
args: Record<string, unknown>;
|
|
10189
|
-
argTypes: Record<string, StoryArgType>;
|
|
10190
|
-
globals: Record<string, unknown>;
|
|
10191
|
-
parameters: Record<string, unknown>;
|
|
10192
|
-
id: string;
|
|
10193
|
-
kind: string;
|
|
10194
|
-
name: string;
|
|
10195
|
-
story: string;
|
|
10196
|
-
viewMode: "story" | "docs";
|
|
10197
|
-
loaded: Record<string, unknown>;
|
|
10198
|
-
abortSignal: AbortSignal;
|
|
10199
|
-
componentId: string;
|
|
10200
|
-
title: string;
|
|
10201
|
-
}
|
|
10202
|
-
/**
|
|
10203
|
-
* Storybook Meta (default export)
|
|
10204
|
-
*/
|
|
10205
|
-
interface StoryMeta {
|
|
10206
|
-
title?: string;
|
|
10207
|
-
component?: ComponentType<unknown>;
|
|
10208
|
-
subcomponents?: Record<string, ComponentType<unknown>>;
|
|
10209
|
-
tags?: string[];
|
|
10210
|
-
parameters?: Record<string, unknown> & {
|
|
10211
|
-
docs?: {
|
|
10212
|
-
description?: {
|
|
10213
|
-
component?: string;
|
|
10214
|
-
};
|
|
10215
|
-
};
|
|
10216
|
-
};
|
|
10217
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10218
|
-
args?: Record<string, unknown>;
|
|
10219
|
-
decorators?: Decorator[];
|
|
10220
|
-
loaders?: Loader[];
|
|
10221
|
-
render?: (args: Record<string, unknown>, context?: StoryContext) => ReactNode;
|
|
10222
|
-
includeStories?: string[] | RegExp;
|
|
10223
|
-
excludeStories?: string[] | RegExp;
|
|
10224
|
-
}
|
|
10225
|
-
/**
|
|
10226
|
-
* Storybook argType definition
|
|
10227
|
-
*/
|
|
10228
|
-
interface StoryArgType {
|
|
10229
|
-
control?: string | false | {
|
|
10230
|
-
type: string;
|
|
10231
|
-
min?: number;
|
|
10232
|
-
max?: number;
|
|
10233
|
-
step?: number;
|
|
10234
|
-
presetColors?: string[];
|
|
10235
|
-
};
|
|
10236
|
-
options?: string[];
|
|
10237
|
-
description?: string;
|
|
10238
|
-
table?: {
|
|
10239
|
-
defaultValue?: {
|
|
10240
|
-
summary: string;
|
|
10241
|
-
};
|
|
10242
|
-
type?: {
|
|
10243
|
-
summary: string;
|
|
10244
|
-
};
|
|
10245
|
-
category?: string;
|
|
10246
|
-
subcategory?: string;
|
|
10247
|
-
disable?: boolean;
|
|
10248
|
-
};
|
|
10249
|
-
type?: {
|
|
10250
|
-
name: string;
|
|
10251
|
-
required?: boolean;
|
|
10252
|
-
};
|
|
10253
|
-
name?: string;
|
|
10254
|
-
defaultValue?: unknown;
|
|
10255
|
-
if?: {
|
|
10256
|
-
arg?: string;
|
|
10257
|
-
exists?: boolean;
|
|
10258
|
-
};
|
|
10259
|
-
mapping?: Record<string, unknown>;
|
|
10260
|
-
action?: string;
|
|
10261
|
-
}
|
|
10262
|
-
/**
|
|
10263
|
-
* Storybook Story export (CSF3)
|
|
10264
|
-
*/
|
|
10265
|
-
interface Story {
|
|
10266
|
-
args?: Record<string, unknown>;
|
|
10267
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10268
|
-
render?: (args: Record<string, unknown>, context?: StoryContext) => ReactNode;
|
|
10269
|
-
decorators?: Decorator[];
|
|
10270
|
-
loaders?: Loader[];
|
|
10271
|
-
play?: StorybookPlayFunction;
|
|
10272
|
-
parameters?: Record<string, unknown> & {
|
|
10273
|
-
docs?: {
|
|
10274
|
-
description?: {
|
|
10275
|
-
story?: string;
|
|
10276
|
-
};
|
|
10277
|
-
};
|
|
10278
|
-
};
|
|
10279
|
-
name?: string;
|
|
10280
|
-
storyName?: string;
|
|
10281
|
-
tags?: string[];
|
|
10282
|
-
}
|
|
10283
|
-
/**
|
|
10284
|
-
* CSF2 story function (from Template.bind({})) with args attached
|
|
10285
|
-
*/
|
|
10286
|
-
type CSF2Story = ((args: Record<string, unknown>) => ReactNode) & {
|
|
10287
|
-
args?: Record<string, unknown>;
|
|
10288
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10289
|
-
decorators?: Decorator[];
|
|
10290
|
-
loaders?: Loader[];
|
|
10291
|
-
play?: StorybookPlayFunction;
|
|
10292
|
-
parameters?: Record<string, unknown>;
|
|
10293
|
-
storyName?: string;
|
|
10294
|
-
};
|
|
10295
|
-
/**
|
|
10296
|
-
* A complete Storybook module with default meta and named story exports
|
|
10297
|
-
*/
|
|
10298
|
-
interface StoryModule {
|
|
10299
|
-
default: StoryMeta;
|
|
10300
|
-
[exportName: string]: Story | CSF2Story | StoryMeta | unknown;
|
|
10301
|
-
}
|
|
10302
|
-
/**
|
|
10303
|
-
* Global configuration from preview.tsx
|
|
10304
|
-
*/
|
|
10305
|
-
interface PreviewConfig {
|
|
10306
|
-
decorators?: Decorator[];
|
|
10307
|
-
parameters?: Record<string, unknown>;
|
|
10308
|
-
globalTypes?: Record<string, unknown>;
|
|
10309
|
-
args?: Record<string, unknown>;
|
|
10310
|
-
argTypes?: Record<string, StoryArgType>;
|
|
10311
|
-
loaders?: Loader[];
|
|
10312
|
-
}
|
|
10313
|
-
/**
|
|
10314
|
-
* Set the global preview configuration loaded from .storybook/preview.tsx
|
|
10315
|
-
*/
|
|
10316
|
-
declare function setPreviewConfig(config: PreviewConfig): void;
|
|
10317
|
-
/**
|
|
10318
|
-
* Get the current global preview configuration
|
|
10319
|
-
*/
|
|
10320
|
-
declare function getPreviewConfig(): PreviewConfig;
|
|
10321
|
-
/**
|
|
10322
|
-
* Convert a Storybook module to a Fragment definition at runtime.
|
|
10323
|
-
*
|
|
10324
|
-
* @param storyModule - The imported Storybook module
|
|
10325
|
-
* @param filePath - File path for metadata extraction
|
|
10326
|
-
* @returns A complete FragmentDefinition ready for the viewer
|
|
10327
|
-
*/
|
|
10328
|
-
declare function storyModuleToFragment(storyModule: StoryModule, filePath: string): FragmentDefinition | null;
|
|
10329
|
-
|
|
10330
10149
|
/**
|
|
10331
10150
|
* Smart filtering for Storybook adapter.
|
|
10332
10151
|
*
|
|
@@ -11367,6 +11186,8 @@ declare const componentContractSchema: z.ZodObject<{
|
|
|
11367
11186
|
};
|
|
11368
11187
|
propsSummary: string[];
|
|
11369
11188
|
$schema: string;
|
|
11189
|
+
status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
|
|
11190
|
+
tokens?: string[] | undefined;
|
|
11370
11191
|
preview?: {
|
|
11371
11192
|
css?: string[] | undefined;
|
|
11372
11193
|
theme?: "light" | "dark" | undefined;
|
|
@@ -11374,8 +11195,6 @@ declare const componentContractSchema: z.ZodObject<{
|
|
|
11374
11195
|
wrapperModule?: string | undefined;
|
|
11375
11196
|
wrapperExport?: string | undefined;
|
|
11376
11197
|
} | undefined;
|
|
11377
|
-
status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
|
|
11378
|
-
tokens?: string[] | undefined;
|
|
11379
11198
|
contract?: {
|
|
11380
11199
|
compoundChildren?: Record<string, {
|
|
11381
11200
|
required?: boolean | undefined;
|
|
@@ -11453,6 +11272,8 @@ declare const componentContractSchema: z.ZodObject<{
|
|
|
11453
11272
|
};
|
|
11454
11273
|
propsSummary: string[];
|
|
11455
11274
|
$schema: string;
|
|
11275
|
+
status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
|
|
11276
|
+
tokens?: string[] | undefined;
|
|
11456
11277
|
preview?: {
|
|
11457
11278
|
css?: string[] | undefined;
|
|
11458
11279
|
theme?: "light" | "dark" | undefined;
|
|
@@ -11460,8 +11281,6 @@ declare const componentContractSchema: z.ZodObject<{
|
|
|
11460
11281
|
wrapperModule?: string | undefined;
|
|
11461
11282
|
wrapperExport?: string | undefined;
|
|
11462
11283
|
} | undefined;
|
|
11463
|
-
status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
|
|
11464
|
-
tokens?: string[] | undefined;
|
|
11465
11284
|
contract?: {
|
|
11466
11285
|
compoundChildren?: Record<string, {
|
|
11467
11286
|
required?: boolean | undefined;
|
|
@@ -11604,46 +11423,6 @@ declare function analyzeComposition(fragments: Record<string, CompiledFragment>,
|
|
|
11604
11423
|
graph?: ComponentGraph;
|
|
11605
11424
|
}): CompositionAnalysis;
|
|
11606
11425
|
|
|
11607
|
-
/**
|
|
11608
|
-
* Minimal contract for rendering a preview variant.
|
|
11609
|
-
* Compatible with fragment variants and Storybook-adapted variants.
|
|
11610
|
-
*/
|
|
11611
|
-
interface PreviewVariantLike {
|
|
11612
|
-
render: (options?: VariantRenderOptions) => ReactNode;
|
|
11613
|
-
loaders?: VariantLoader[];
|
|
11614
|
-
}
|
|
11615
|
-
interface PreviewRuntimeState {
|
|
11616
|
-
content: ReactNode | null;
|
|
11617
|
-
isLoading: boolean;
|
|
11618
|
-
error: Error | null;
|
|
11619
|
-
loadedData?: Record<string, unknown>;
|
|
11620
|
-
}
|
|
11621
|
-
interface PreviewRuntimeOptions {
|
|
11622
|
-
variant?: PreviewVariantLike | null;
|
|
11623
|
-
loadedData?: Record<string, unknown>;
|
|
11624
|
-
}
|
|
11625
|
-
/**
|
|
11626
|
-
* Execute all variant loaders and merge their payloads.
|
|
11627
|
-
* `loadedData` is applied last so host-level overrides win.
|
|
11628
|
-
*/
|
|
11629
|
-
declare function executeVariantLoaders(loaders: VariantLoader[] | undefined, loadedData?: Record<string, unknown>): Promise<Record<string, unknown> | undefined>;
|
|
11630
|
-
/**
|
|
11631
|
-
* Resolve a full runtime state (loader execution + render) in one async call.
|
|
11632
|
-
* This is useful for testing and for hook/component orchestration.
|
|
11633
|
-
*/
|
|
11634
|
-
declare function resolvePreviewRuntimeState(options: PreviewRuntimeOptions): Promise<PreviewRuntimeState>;
|
|
11635
|
-
/**
|
|
11636
|
-
* Hook for rendering a preview variant with loader support.
|
|
11637
|
-
*/
|
|
11638
|
-
declare function usePreviewVariantRuntime(options: PreviewRuntimeOptions): PreviewRuntimeState;
|
|
11639
|
-
interface PreviewVariantRuntimeProps extends PreviewRuntimeOptions {
|
|
11640
|
-
children: (state: PreviewRuntimeState) => ReactNode;
|
|
11641
|
-
}
|
|
11642
|
-
/**
|
|
11643
|
-
* Render-prop component wrapper around `usePreviewVariantRuntime`.
|
|
11644
|
-
*/
|
|
11645
|
-
declare function PreviewVariantRuntime({ variant, loadedData, children, }: PreviewVariantRuntimeProps): react_jsx_runtime.JSX.Element;
|
|
11646
|
-
|
|
11647
11426
|
/**
|
|
11648
11427
|
* Component discovery utilities.
|
|
11649
11428
|
*
|
|
@@ -12776,4 +12555,4 @@ interface ComponentKeyInput {
|
|
|
12776
12555
|
*/
|
|
12777
12556
|
declare function buildComponentKey({ repoRelativeFile, exportName }: ComponentKeyInput): string;
|
|
12778
12557
|
|
|
12779
|
-
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 };
|