@usefragments/core 1.11.0 → 2.0.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-3LLRNCPX.js → chunk-MZ2FS7U4.js} +1 -1
- package/dist/chunk-MZ2FS7U4.js.map +1 -0
- package/dist/{chunk-RPSEABY3.js → chunk-QPOKQ5H6.js} +30 -34
- package/dist/chunk-QPOKQ5H6.js.map +1 -0
- package/dist/codes/index.d.ts +1 -1
- package/dist/codes/index.js +1 -1
- package/dist/compiled-types/index.d.ts +1 -1
- package/dist/generate/index.d.ts +1 -1
- package/dist/{governance-BAsy1k2H.d.ts → governance-hOPXGbbs.d.ts} +3 -3
- package/dist/index.d.ts +145 -6026
- package/dist/index.js +298 -860
- package/dist/index.js.map +1 -1
- package/dist/preview-runtime.d.ts +1 -1
- package/dist/react-types.d.ts +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/storyAdapter.d.ts +1 -1
- package/dist/test-utils.d.ts +1 -1
- package/dist/topology/index.d.ts +1 -1
- package/dist/topology/index.js +1 -1
- package/package.json +1 -1
- package/src/approved-contract-tokens.test.ts +39 -0
- package/src/approved-contract-tokens.ts +18 -0
- package/src/canonical-source.ts +41 -0
- package/src/codes/__tests__/codes.test.ts +4 -0
- package/src/codes/codes.ts +10 -0
- package/src/domain-ids.test.ts +9 -26
- package/src/domain-ids.ts +0 -45
- package/src/evaluation/evaluate.ts +17 -7
- package/src/evaluation/evaluation-v2-receipt-v1.test.ts +20 -8
- package/src/evaluation/index.ts +1 -1
- package/src/facts/builders.ts +4 -0
- package/src/facts/fact-index.ts +4 -0
- package/src/facts/facts.test.ts +70 -0
- package/src/facts/types.ts +4 -0
- package/src/governance.ts +18 -0
- package/src/identity/usage.test.ts +64 -0
- package/src/identity/usage.ts +7 -1
- package/src/index.ts +15 -79
- package/src/rules/components-prefer-library.ts +110 -33
- package/src/topology/resolve-area.ts +1 -1
- package/src/types.ts +0 -3
- package/dist/chunk-3LLRNCPX.js.map +0 -1
- package/dist/chunk-RPSEABY3.js.map +0 -1
- package/src/feature-plan/digest.ts +0 -217
- package/src/feature-plan/feature-plan-v1.test.ts +0 -529
- package/src/feature-plan/index.ts +0 -65
- package/src/feature-plan/types.ts +0 -628
|
@@ -978,8 +978,6 @@ interface ThemeSeeds {
|
|
|
978
978
|
brand?: string;
|
|
979
979
|
/** Neutral palette name */
|
|
980
980
|
neutral?: "stone" | "ice" | "earth" | "sand" | "fire" | "fragments";
|
|
981
|
-
/** Spacing density scale */
|
|
982
|
-
density?: "compact" | "default" | "relaxed";
|
|
983
981
|
/** Border radius style */
|
|
984
982
|
radiusStyle?: "sharp" | "subtle" | "default" | "rounded" | "pill";
|
|
985
983
|
/** Danger/error color as hex (e.g., "#ef4444") */
|
|
@@ -2079,6 +2077,8 @@ declare const componentGovernanceRecordsSchema: z.ZodArray<z.ZodDiscriminatedUni
|
|
|
2079
2077
|
because: string;
|
|
2080
2078
|
severity: "error" | "info" | "warn";
|
|
2081
2079
|
}>]>, "many">;
|
|
2080
|
+
/** Parse portable component policy records; malformed authority is unavailable, never empty. */
|
|
2081
|
+
declare function parseComponentGovernancePolicyJson(policyJson: string): ComponentGovernanceRecord[] | null;
|
|
2082
2082
|
declare const componentPolicyRecordSchema: z.ZodObject<{
|
|
2083
2083
|
rules: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2084
2084
|
kind: z.ZodLiteral<"capability">;
|
|
@@ -4148,4 +4148,4 @@ declare const g: {
|
|
|
4148
4148
|
component: ComponentGovernanceBuilder<Record<string, unknown>>;
|
|
4149
4149
|
};
|
|
4150
4150
|
|
|
4151
|
-
export { type ContractComponentInput as $, type CanonicalBridgeV1 as A, type BlockDefinition as B, type ComponentGovernanceRecord as C, type ContractCanonicalMappingInput as D, type ContractPreimage as E, type FragmentDefinition as F, type GovernanceSeverity as G, type AIMetadata as H, type AccessibilityGovernanceBuilder as I, type AppConfig as J, type BaselineInfo as K, type BoundingBox as L, CONTRACT_DISPLAY_ONLY_FIELDS as M, CONTRACT_DOMAINS as N, CONTRACT_ENFORCEMENT_FIELDS as O, type PropAnnotation as P, CONTRACT_PREIMAGE_CAPABILITY_HEADER as Q, type ResolvedGovernedFragmentDefinition as R, CONTRACT_PREIMAGE_SCHEMA as S, type TokenConfig as T, type CanonicalMappingStatus as U, type VariantRenderOptions as V, type ComponentGovernanceBuilder as W, type ComponentRef as X, type ComponentRelation as Y, type CompositionMetadata as Z, ContractCatalogValidationError as _, type FragmentDefinitionV2 as a, globalJsxGovernanceRecordSchema as a$, type ContractEnforcementField as a0, type ContractIdentityPin as a1, type ContractPolicyInput as a2, type ContractPropMappingInput as a3, type ContractTokenInput as a4, type ContractWaiverInput as a5, type ControlType as a6, type DesignSystemConfig as a7, type DiffResult as a8, type FigmaPropMapping as a9, type RegistryComponentEntry as aA, type RegistryOptions as aB, type RegistryPropEntry as aC, type RepoRelativePath as aD, type ScaleGovernanceRecord as aE, type Screenshot as aF, type ScreenshotConfig as aG, type ScreenshotMetadata as aH, type ServiceConfig as aI, type SnapshotConfig as aJ, type SnippetPolicyConfig as aK, type Theme as aL, type ThemeSeeds as aM, type TokenSourceConfig as aN, type TokenSourceFormat as aO, type VerifyRequest as aP, type VerifyResult as aQ, type Viewport as aR, canonicalBridgeV1Schema as aS, componentGovernanceRecordSchema as aT, componentGovernanceRecordsSchema as aU, contractComponentsFromFragments as aV, contractPolicyFromGovernanceConfig as aW, deriveArtifactId as aX, diffContractDomains as aY, g as aZ, globalGovernanceRecordSchema as a_, type FragmentContextOptions as aa, type FragmentContract as ab, type FragmentExample as ac, type FragmentGenerated as ad, type FragmentGuidance as ae, type FragmentIndex as af, type FragmentMeta as ag, type FragmentProvenance as ah, type FragmentRegistry as ai, type FragmentUsage as aj, type FragmentVariant as ak, type GlobalGovernanceRecord as al, type GlobalJsxGovernanceRecord as am, type GlobalStyleGovernanceRecord as an, type GovernancePropValue as ao, type InspectConfig as ap, type LocalCanonicalDeclaration as aq, type LocalCanonicalResolveRule as ar, type Manifest as as, type PlayFunction as at, type PlayFunctionContext as au, type PropDefinition as av, type PropGovernanceBuilder as aw, type PropGovernanceOptions as ax, type PropKey as ay, type PropType as az, type VariantLoader as b, globalStyleGovernanceRecordSchema as b0, governanceConfigSchema as b1, governanceConfigWithLocalCanonical as b2, governanceSeveritySchema as b3, isPresetSourcedRule as b4, localCanonicalContractMappings as b5, markPresetSourcedRules as b6, normalizeGovernanceConfig as b7,
|
|
4151
|
+
export { type ContractComponentInput as $, type CanonicalBridgeV1 as A, type BlockDefinition as B, type ComponentGovernanceRecord as C, type ContractCanonicalMappingInput as D, type ContractPreimage as E, type FragmentDefinition as F, type GovernanceSeverity as G, type AIMetadata as H, type AccessibilityGovernanceBuilder as I, type AppConfig as J, type BaselineInfo as K, type BoundingBox as L, CONTRACT_DISPLAY_ONLY_FIELDS as M, CONTRACT_DOMAINS as N, CONTRACT_ENFORCEMENT_FIELDS as O, type PropAnnotation as P, CONTRACT_PREIMAGE_CAPABILITY_HEADER as Q, type ResolvedGovernedFragmentDefinition as R, CONTRACT_PREIMAGE_SCHEMA as S, type TokenConfig as T, type CanonicalMappingStatus as U, type VariantRenderOptions as V, type ComponentGovernanceBuilder as W, type ComponentRef as X, type ComponentRelation as Y, type CompositionMetadata as Z, ContractCatalogValidationError as _, type FragmentDefinitionV2 as a, globalJsxGovernanceRecordSchema as a$, type ContractEnforcementField as a0, type ContractIdentityPin as a1, type ContractPolicyInput as a2, type ContractPropMappingInput as a3, type ContractTokenInput as a4, type ContractWaiverInput as a5, type ControlType as a6, type DesignSystemConfig as a7, type DiffResult as a8, type FigmaPropMapping as a9, type RegistryComponentEntry as aA, type RegistryOptions as aB, type RegistryPropEntry as aC, type RepoRelativePath as aD, type ScaleGovernanceRecord as aE, type Screenshot as aF, type ScreenshotConfig as aG, type ScreenshotMetadata as aH, type ServiceConfig as aI, type SnapshotConfig as aJ, type SnippetPolicyConfig as aK, type Theme as aL, type ThemeSeeds as aM, type TokenSourceConfig as aN, type TokenSourceFormat as aO, type VerifyRequest as aP, type VerifyResult as aQ, type Viewport as aR, canonicalBridgeV1Schema as aS, componentGovernanceRecordSchema as aT, componentGovernanceRecordsSchema as aU, contractComponentsFromFragments as aV, contractPolicyFromGovernanceConfig as aW, deriveArtifactId as aX, diffContractDomains as aY, g as aZ, globalGovernanceRecordSchema as a_, type FragmentContextOptions as aa, type FragmentContract as ab, type FragmentExample as ac, type FragmentGenerated as ad, type FragmentGuidance as ae, type FragmentIndex as af, type FragmentMeta as ag, type FragmentProvenance as ah, type FragmentRegistry as ai, type FragmentUsage as aj, type FragmentVariant as ak, type GlobalGovernanceRecord as al, type GlobalJsxGovernanceRecord as am, type GlobalStyleGovernanceRecord as an, type GovernancePropValue as ao, type InspectConfig as ap, type LocalCanonicalDeclaration as aq, type LocalCanonicalResolveRule as ar, type Manifest as as, type PlayFunction as at, type PlayFunctionContext as au, type PropDefinition as av, type PropGovernanceBuilder as aw, type PropGovernanceOptions as ax, type PropKey as ay, type PropType as az, type VariantLoader as b, globalStyleGovernanceRecordSchema as b0, governanceConfigSchema as b1, governanceConfigWithLocalCanonical as b2, governanceSeveritySchema as b3, isPresetSourcedRule as b4, localCanonicalContractMappings as b5, markPresetSourcedRules as b6, normalizeGovernanceConfig as b7, parseComponentGovernancePolicyJson as b8, projectContractPreimage as b9, projectEnforcementContract as ba, resolveComponentGovernance as bb, resolveGovernanceRecordsForIdentity as bc, scaleGovernanceRecordSchema as bd, verifiedContractPreimageFromPin as be, type ContractDomain as c, type ContractCatalogInput as d, type GovernedFragmentDefinition as e, type GovernanceConfig as f, type FragmentsConfig as g, type FragmentAnnotationsV3 as h, type FragmentDefinitionV3Body as i, type FragmentDefinitionV3 as j, type FragmentDesignV3 as k, type FragmentDontExampleV3 as l, type FragmentGuidanceV3 as m, type FragmentMatrixV3 as n, type FragmentMetaV3 as o, type FragmentPreviewV3 as p, type FragmentStateV3 as q, type FragmentComponent as r, type FigmaStringMapping as s, type FigmaBooleanMapping as t, type FigmaEnumMapping as u, type FigmaInstanceMapping as v, type FigmaChildrenMapping as w, type FigmaTextContentMapping as x, type RelationshipType as y, type CanonicalSource as z };
|