@yahoo/uds-create-config 4.23.4 → 4.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/configs/CanvasConfig.d.ts +65 -5
  2. package/dist/configs/react-native-system.d.ts +45 -5
  3. package/dist/configs/system.d.ts +53 -10
  4. package/dist/configs/system.js +4 -0
  5. package/dist/entities/native/NativeSettings.d.ts +1 -1
  6. package/dist/entities/native/NativeToken.d.ts +1 -1
  7. package/dist/entities/system/Component.d.ts +45 -3
  8. package/dist/entities/system/Component.js +13 -5
  9. package/dist/entities/system/GlobalStyle.d.ts +6 -2
  10. package/dist/entities/system/GlobalStyle.js +9 -1
  11. package/dist/entities/system/composed-values.d.ts +1 -1
  12. package/dist/entities/system/defineComponent.d.ts +87 -18
  13. package/dist/entities/system/icon-library.js +3 -2
  14. package/dist/framework/Config.d.ts +1 -1
  15. package/dist/framework/Config.js +1 -1
  16. package/dist/framework/projections.js +1 -1
  17. package/dist/framework/prop-surface.d.ts +35 -1
  18. package/dist/framework/prop-surface.js +85 -2
  19. package/dist/framework/render-spec.js +2 -2
  20. package/dist/framework/schema-version.d.ts +1 -1
  21. package/dist/framework/schema-version.js +5 -5
  22. package/dist/index.d.ts +12 -12
  23. package/dist/index.js +3 -3
  24. package/dist/migrations/2.0.0/v1-artifact.d.ts +28 -6
  25. package/dist/migrations/20260923163604_global_style_derived_colors.d.ts +10 -0
  26. package/dist/migrations/20260923163604_global_style_derived_colors.js +10 -0
  27. package/dist/migrations/20260924044539_slot_code_forms.d.ts +12 -0
  28. package/dist/migrations/20260924044539_slot_code_forms.js +8 -0
  29. package/dist/spec/detach.js +6 -0
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -38,8 +38,8 @@ import { Package } from "./entities/system/Package.js";
38
38
  import { File, SCRIPT_EXTENSIONS, isBinaryAsset } from "./entities/system/File.js";
39
39
  import { TOKEN_READERS, isTokenReader, rootFontSize, spellTokenRead, tokenExists, tokenValueRow, tokenValueRows } from "./entities/system/token-values.js";
40
40
  import { Token, defineOverride, overrideCondition, overrideKey, overrideKeyModifiers, overrideModifiers } from "./entities/system/Token.js";
41
- import { Component, blankComponentBody, canonicalWhen, forwardedNames, layerRef, ownValues, ownsItsValues, valueRef } from "./entities/system/Component.js";
42
- import { forwardClaims, forwardedLayers, intoName, layerPropRoutes, propApplies, propRegistryRef, routedProp, routedPropIn, routesContent, surfaceProp, surfaceProps } from "./framework/prop-surface.js";
41
+ import { Component, SLOT_CODE_FORMS, blankComponentBody, canonicalWhen, forwardedNames, layerRef, ownValues, ownsItsValues, valueRef } from "./entities/system/Component.js";
42
+ import { codeSlotsOf, forwardClaims, forwardedLayers, intoName, isValueSlot, layerPropRoutes, propApplies, propRegistryRef, routedProp, routedPropIn, routesContent, slotCodeForms, standsInForCode, surfaceProp, surfaceProps } from "./framework/prop-surface.js";
43
43
  import { classGrammar } from "./capture/class-grammar.js";
44
44
  import { specFromCapture } from "./capture/capture-to-spec.js";
45
45
  import { ICON_METADATA_FORMATS, iconMemberMetadata, iconMetadata, iconMetadataDeclaration, iconMetadataFile, iconMetadataFileJsonSchema, iconMetadataFormat, tablerExportName } from "./entities/system/icon-metadata.js";
@@ -98,4 +98,4 @@ import { inferredRenames } from "./framework/rename-inference.js";
98
98
  import { ConfigSession, memoryConfigSource } from "./framework/session.js";
99
99
  import { EXPORT_MEMBER, packageKey, packageName } from "./framework/utils/package-path.js";
100
100
  import { validateSpec } from "./framework/validate-spec.js";
101
- export { AI_LANES, ANATOMY_MARKER, AiChat, AiFlow, AiGeneration, AiMessage, BUILD_DEFAULTS, BuildSection, CANVAS_ROLES, CONFIG_OPERATION_KIND, CSS_DEFAULTS, CSS_PROPERTY_NAMES, CSS_WIDE_KEYWORDS, CURRENT_SCHEMA_VERSION, Canvas, CanvasConfig, CanvasRole, CanvasSection, CapturedNode, Component, Composite, Config, ConfigFormatError, ConfigRejection, ConfigSession, CssSection, DERIVED_COLOR_SPACE, DERIVED_MUTATIONS, Device, Documentation, DocumentationLibrary, ENTITY_PATH_MESSAGE, EXPORT_MEMBER, Entity, File, Font, FontFile, GROUP, GUIDANCE_LANES, GlobalStyle, Guidance, GuidanceStyle, ICON_METADATA_FORMATS, Icon, LINK_SLUG, LINK_SLUG_MESSAGE, LinkedSystem, MINTED, MODIFIER_CATEGORIES, Modifier, Motion, NATIVE_ACTIVATIONS, NativeModifier, NativeSettings, NativeStyleProperty, NativeToken, Node, Operation, PLAYGROUND_DEFAULTS, Package, Page, PlaygroundSection, RN_STYLE_KEYS, ReactNativeSystem, SCRIPT_EXTENSIONS, SERIALIZED_CONFIG_VERSION, SIZE_TOLERANCE_PX, STYLE_PROPERTIES, STYLE_PROP_VALUE_FORMS, STYLE_PROP_VALUE_LEAVES, SchemaVersionTooNew, Settings, Snapshot, StyleProperty, System, SystemSection, SystemSource, TOKEN_READERS, Token, Tool, UNCONDITIONAL_PREVIEW_KEY, UNREACHABLE, VOID_ELEMENTS, WEB_ACTIVATIONS, addressOf, alpha, anatomyElementComponent, anatomyIssueKey, anatomyTextProp, applyPathDelta, authoredBag, authoredValue, authoringSignatures, baseOf, blankComponentBody, borrowedGroup, borrowedItem, boundElementType, brandGroup, buildRefGraph, buildRefIndex, canonicalWhen, capturedFromDom, changeOf, changeValueAt, changesOf, childrenPolicy, classGrammar, className, classPrefixOf, classifyOverlay, classifyStylePropValue, collectRefs, componentClassBase, componentCompositeClasses, componentLayerClass, componentModuleFilePaths, componentModuleKey, componentModuleSource, componentMotionClasses, componentPropClasses, componentRegistryImports, componentRuleClasses, componentSpec, composedValueAuthoring, composedValueFormOf, composedValueForms, composedValueSchemas, createCanvasConfig, createSliceMemo, cssPrefixes, cssPropValue, cssProperty, cssPropertyNames, cssValueIssue, cssVar, cssVarRef, danglingDirectives, danglingLocalRefs, danglingSourcedRefs, darken, declaredField, declaredPropDefaults, declaredPropRouting, declaredRuntimeModules, defineComponent, defineConfig, defineDerivedEntity, defineEntity, defineOverride, defineSubEntity, deriveCreateSchema, deriveSpec, deriveUpdateSchema, describeBody, describePatch, detectedWireVersion, diffRendered, editOp, elementFromCaptured, entityRefOf, entryKeyOf, expandComponent, expandSpec, fieldKeys, fontFamilyStack, forceModeAttribute, forceModeAttributeOf, forceModeProp, forceModePropGroup, forceModePropValue, forceModeProps, forceStateAttribute, forwardClaims, forwardedLayers, forwardedNames, forwardsOf, globalStyleName, glyphComponentOf, glyphExportNames, glyphLibrariesOf, glyphPropsOf, glyphSourcesOf, glyphType, graftPreviewElements, guidanceReaches, guidanceScopeOf, guidanceTextOf, iconCategories, iconLibraries, iconLibrary, iconMemberMetadata, iconMetadata, iconMetadataDeclaration, iconMetadataFile, iconMetadataFileJsonSchema, iconMetadataFormat, iconResolver, iconToolAxisOptions, iconToolLibraries, iconToolOf, iconVariantAs, inferredRenames, inputOf, instanceHolding, instanceSpec, intoName, isAuthored, isBinaryAsset, isComposedValue, isConfigFormatError, isConfigRejection, isCssProperty, isDeclaredElementProp, isDerivedColor, isEntityPath, isExtendedRef, isForceModeProp, isGradient, isGroupBody, isIdentifier, isLinkSlug, isMintedRow, isNativeConfig, isPlainObject, isPreviewElement, isRef, isReservedWord, isSystemConfig, isTokenReader, isTransition, kebabComponent, keyedPreviewConditions, kindOf, kindsOf, layerPropRoutes, layerRef, layerRoutedProps, layerStyles, layerTextProp, leafAddresses, leafVerb, leavesOfStylePropValue, librariesBoundBy, libraryHolding, lighten, linearGradient, liveStateProps, matchEntities, matchTokens, memberFromLeaf, memberLeaves, memberOf, memberRef, memberVariantOptions, memoryConfigSource, misdeclaredOverlays, mix, modeAxes, modifierAxes, modifierAxis, modifierCategory, modifierGroupFields, modifierInvariants, modifierLeaf, modifierUtilitiesUsed, motionClassName, nameIconsInTree, namedFields, nativeTokenValue, negatedCssValue, normalizeName, normalizeStyleValue, opOf, opVerb, opacityPercentage, opsForKind, orRef, overlayVerb, overrideCondition, overrideKey, overrideKeyModifiers, overrideModifiers, ownValues, ownerOf, ownsItsValues, packageKey, packageName, parseRootFontSize, partsOf, pathDelta, pathOf, pathSegments, placedGlyphElement, planBreak, planCopy, planLink, planUnlink, previewConditionalProps, previewConditions, previewDefaults, previewMatrix, previewSpec, propApplies, propInto, propOwner, propRegistryRef, propValueDomain, propValueFromAxis, propsIntoLayer, readStatePointer, redundantQualifiers, ref, refGraphOf, refLeaf, refListOf, refSchema, refTo, registerSchemaMigrations, renderComposedValue, renderDerivedColor, renderGradient, renderSignature, renderStyleValue, renderTransition, renderedElement, renderedSignatureOf, renderedTarget, resolutionSchema, resolveComponentProps, resolveFieldValue, resolveIconLibraries, resolveInputDir, resolveOutDir, resolveRegistryDir, resolveTokenValue, resolveTokenValueUnder, resolveValue, resolveValueType, resolveVisibility, resolvedSource, rewriteRefNamespace, rewriteRefSource, rewriteRefs, rnStyleKey, rootFontSize, rootLayerOf, routeOf, routedBag, routedProp, routedPropIn, routesContent, ruleApplies, ruleCondition, runChangeHooks, schemaVersionOf, searchEntities, searchTokens, setAtPath, signatureOf, slotTargetsOf, snapshotHtml, sniffValueType, sourceEntries, sourceOf, sourceOfGroup, sourceOfItem, sourceRowStates, sourceSlugFor, sourceUnavailable, sourceUnreachable, sourceVarPrefix, specFromCapture, specToNodePatches, specWithResolvedVisibility, spellTokenRead, splitRef, splitStyleProps, stamp, statePointerProp, storedPreview, styleAliasesOf, styleDeclarations, stylePropClassBase, stylePropClassName, stylePropClasses, stylePropEntries, stylePropLeafForToken, stylePropNegates, stylePropTokenGroup, stylePropTokenPath, stylePropTokenValues, stylePropValueFormOf, stylePropValueFromLeaf, stylePropValueLeaves, stylePropValueSchema, stylePropValues, stylePropertiesWriting, stylePropertyAccepts, stylePropertyFor, stylePropertyPathFor, styleRuleMotionClasses, suggestLinkSlug, summarizeChanges, surfaceProp, surfaceProps, tablerExportName, toCssPropertyName, tokenBinding, tokenExists, tokenValueRow, tokenValueRows, touchedFields, transition, unadoptedDirectives, unconditionalPreviewProps, unknownStyleLeaves, unreadableBorrows, unstatableConditions, updateRefIndex, upgradeDraftEntries, upgradePatch, upgradeSerializedConfig, validateComponentProps, validateSpec, valueAt, valueForwardsOf, valueLeavesOf, valueRef, valueSchemaOf, varPrefixOf, views, visibilityStateProps, visibilityTerms, withoutTruthyTerm, wrappedElementKey };
101
+ export { AI_LANES, ANATOMY_MARKER, AiChat, AiFlow, AiGeneration, AiMessage, BUILD_DEFAULTS, BuildSection, CANVAS_ROLES, CONFIG_OPERATION_KIND, CSS_DEFAULTS, CSS_PROPERTY_NAMES, CSS_WIDE_KEYWORDS, CURRENT_SCHEMA_VERSION, Canvas, CanvasConfig, CanvasRole, CanvasSection, CapturedNode, Component, Composite, Config, ConfigFormatError, ConfigRejection, ConfigSession, CssSection, DERIVED_COLOR_SPACE, DERIVED_MUTATIONS, Device, Documentation, DocumentationLibrary, ENTITY_PATH_MESSAGE, EXPORT_MEMBER, Entity, File, Font, FontFile, GROUP, GUIDANCE_LANES, GlobalStyle, Guidance, GuidanceStyle, ICON_METADATA_FORMATS, Icon, LINK_SLUG, LINK_SLUG_MESSAGE, LinkedSystem, MINTED, MODIFIER_CATEGORIES, Modifier, Motion, NATIVE_ACTIVATIONS, NativeModifier, NativeSettings, NativeStyleProperty, NativeToken, Node, Operation, PLAYGROUND_DEFAULTS, Package, Page, PlaygroundSection, RN_STYLE_KEYS, ReactNativeSystem, SCRIPT_EXTENSIONS, SERIALIZED_CONFIG_VERSION, SIZE_TOLERANCE_PX, SLOT_CODE_FORMS, STYLE_PROPERTIES, STYLE_PROP_VALUE_FORMS, STYLE_PROP_VALUE_LEAVES, SchemaVersionTooNew, Settings, Snapshot, StyleProperty, System, SystemSection, SystemSource, TOKEN_READERS, Token, Tool, UNCONDITIONAL_PREVIEW_KEY, UNREACHABLE, VOID_ELEMENTS, WEB_ACTIVATIONS, addressOf, alpha, anatomyElementComponent, anatomyIssueKey, anatomyTextProp, applyPathDelta, authoredBag, authoredValue, authoringSignatures, baseOf, blankComponentBody, borrowedGroup, borrowedItem, boundElementType, brandGroup, buildRefGraph, buildRefIndex, canonicalWhen, capturedFromDom, changeOf, changeValueAt, changesOf, childrenPolicy, classGrammar, className, classPrefixOf, classifyOverlay, classifyStylePropValue, codeSlotsOf, collectRefs, componentClassBase, componentCompositeClasses, componentLayerClass, componentModuleFilePaths, componentModuleKey, componentModuleSource, componentMotionClasses, componentPropClasses, componentRegistryImports, componentRuleClasses, componentSpec, composedValueAuthoring, composedValueFormOf, composedValueForms, composedValueSchemas, createCanvasConfig, createSliceMemo, cssPrefixes, cssPropValue, cssProperty, cssPropertyNames, cssValueIssue, cssVar, cssVarRef, danglingDirectives, danglingLocalRefs, danglingSourcedRefs, darken, declaredField, declaredPropDefaults, declaredPropRouting, declaredRuntimeModules, defineComponent, defineConfig, defineDerivedEntity, defineEntity, defineOverride, defineSubEntity, deriveCreateSchema, deriveSpec, deriveUpdateSchema, describeBody, describePatch, detectedWireVersion, diffRendered, editOp, elementFromCaptured, entityRefOf, entryKeyOf, expandComponent, expandSpec, fieldKeys, fontFamilyStack, forceModeAttribute, forceModeAttributeOf, forceModeProp, forceModePropGroup, forceModePropValue, forceModeProps, forceStateAttribute, forwardClaims, forwardedLayers, forwardedNames, forwardsOf, globalStyleName, glyphComponentOf, glyphExportNames, glyphLibrariesOf, glyphPropsOf, glyphSourcesOf, glyphType, graftPreviewElements, guidanceReaches, guidanceScopeOf, guidanceTextOf, iconCategories, iconLibraries, iconLibrary, iconMemberMetadata, iconMetadata, iconMetadataDeclaration, iconMetadataFile, iconMetadataFileJsonSchema, iconMetadataFormat, iconResolver, iconToolAxisOptions, iconToolLibraries, iconToolOf, iconVariantAs, inferredRenames, inputOf, instanceHolding, instanceSpec, intoName, isAuthored, isBinaryAsset, isComposedValue, isConfigFormatError, isConfigRejection, isCssProperty, isDeclaredElementProp, isDerivedColor, isEntityPath, isExtendedRef, isForceModeProp, isGradient, isGroupBody, isIdentifier, isLinkSlug, isMintedRow, isNativeConfig, isPlainObject, isPreviewElement, isRef, isReservedWord, isSystemConfig, isTokenReader, isTransition, isValueSlot, kebabComponent, keyedPreviewConditions, kindOf, kindsOf, layerPropRoutes, layerRef, layerRoutedProps, layerStyles, layerTextProp, leafAddresses, leafVerb, leavesOfStylePropValue, librariesBoundBy, libraryHolding, lighten, linearGradient, liveStateProps, matchEntities, matchTokens, memberFromLeaf, memberLeaves, memberOf, memberRef, memberVariantOptions, memoryConfigSource, misdeclaredOverlays, mix, modeAxes, modifierAxes, modifierAxis, modifierCategory, modifierGroupFields, modifierInvariants, modifierLeaf, modifierUtilitiesUsed, motionClassName, nameIconsInTree, namedFields, nativeTokenValue, negatedCssValue, normalizeName, normalizeStyleValue, opOf, opVerb, opacityPercentage, opsForKind, orRef, overlayVerb, overrideCondition, overrideKey, overrideKeyModifiers, overrideModifiers, ownValues, ownerOf, ownsItsValues, packageKey, packageName, parseRootFontSize, partsOf, pathDelta, pathOf, pathSegments, placedGlyphElement, planBreak, planCopy, planLink, planUnlink, previewConditionalProps, previewConditions, previewDefaults, previewMatrix, previewSpec, propApplies, propInto, propOwner, propRegistryRef, propValueDomain, propValueFromAxis, propsIntoLayer, readStatePointer, redundantQualifiers, ref, refGraphOf, refLeaf, refListOf, refSchema, refTo, registerSchemaMigrations, renderComposedValue, renderDerivedColor, renderGradient, renderSignature, renderStyleValue, renderTransition, renderedElement, renderedSignatureOf, renderedTarget, resolutionSchema, resolveComponentProps, resolveFieldValue, resolveIconLibraries, resolveInputDir, resolveOutDir, resolveRegistryDir, resolveTokenValue, resolveTokenValueUnder, resolveValue, resolveValueType, resolveVisibility, resolvedSource, rewriteRefNamespace, rewriteRefSource, rewriteRefs, rnStyleKey, rootFontSize, rootLayerOf, routeOf, routedBag, routedProp, routedPropIn, routesContent, ruleApplies, ruleCondition, runChangeHooks, schemaVersionOf, searchEntities, searchTokens, setAtPath, signatureOf, slotCodeForms, slotTargetsOf, snapshotHtml, sniffValueType, sourceEntries, sourceOf, sourceOfGroup, sourceOfItem, sourceRowStates, sourceSlugFor, sourceUnavailable, sourceUnreachable, sourceVarPrefix, specFromCapture, specToNodePatches, specWithResolvedVisibility, spellTokenRead, splitRef, splitStyleProps, stamp, standsInForCode, statePointerProp, storedPreview, styleAliasesOf, styleDeclarations, stylePropClassBase, stylePropClassName, stylePropClasses, stylePropEntries, stylePropLeafForToken, stylePropNegates, stylePropTokenGroup, stylePropTokenPath, stylePropTokenValues, stylePropValueFormOf, stylePropValueFromLeaf, stylePropValueLeaves, stylePropValueSchema, stylePropValues, stylePropertiesWriting, stylePropertyAccepts, stylePropertyFor, stylePropertyPathFor, styleRuleMotionClasses, suggestLinkSlug, summarizeChanges, surfaceProp, surfaceProps, tablerExportName, toCssPropertyName, tokenBinding, tokenExists, tokenValueRow, tokenValueRows, touchedFields, transition, unadoptedDirectives, unconditionalPreviewProps, unknownStyleLeaves, unreadableBorrows, unstatableConditions, updateRefIndex, upgradeDraftEntries, upgradePatch, upgradeSerializedConfig, validateComponentProps, validateSpec, valueAt, valueForwardsOf, valueLeavesOf, valueRef, valueSchemaOf, varPrefixOf, views, visibilityStateProps, visibilityTerms, withoutTruthyTerm, wrappedElementKey };
@@ -13,12 +13,13 @@ import { GlyphNamespace } from "../../entities/system/glyph-identity.js";
13
13
  import { StylePropValue } from "../../entities/system/StyleProperty.js";
14
14
  import { StoredPreviewCondition } from "../../framework/preview-store.js";
15
15
  import { listSlots, namedSlots, slotHostedBy, slotOf } from "../../spec/slot.js";
16
- import { cellAt } from "../../spec/cell.js";
17
- import { instanceAt } from "../../spec/instance.js";
16
+ import { DerivedColor } from "../../entities/system/color.js";
18
17
  import { ComposedValue } from "../../entities/system/composed-values.js";
19
18
  import { StyleValue } from "../../entities/system/style-bag.js";
20
19
  import { OverrideCondition, TokenRefPath, TokenReference } from "../../entities/system/Token.js";
20
+ import { instanceAt } from "../../spec/instance.js";
21
21
  import { ComponentElementBody, ComponentReference, ComponentStyleBody } from "../../entities/system/Component.js";
22
+ import { cellAt } from "../../spec/cell.js";
22
23
  import { DocumentRename } from "../../spec/rewrite-refs.js";
23
24
  import * as _$zod from "zod";
24
25
  import * as _$zod_v4_core0 from "zod/v4/core";
@@ -259,6 +260,16 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
259
260
  }, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
260
261
  __ref: _$zod.ZodString;
261
262
  }, _$zod_v4_core0.$strip>>]>>;
263
+ value: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
264
+ __ref: _$zod.ZodString;
265
+ }, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
266
+ __ref: _$zod.ZodString;
267
+ }, _$zod_v4_core0.$strip>>]>>;
268
+ code: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodEnum<{
269
+ node: "node";
270
+ element: "element";
271
+ render: "render";
272
+ }>>>;
262
273
  required: _$zod.ZodOptional<_$zod.ZodBoolean>;
263
274
  when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
264
275
  __ref: _$zod.ZodString;
@@ -447,6 +458,16 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
447
458
  }, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
448
459
  __ref: _$zod.ZodString;
449
460
  }, _$zod_v4_core0.$strip>>]>>;
461
+ value: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
462
+ __ref: _$zod.ZodString;
463
+ }, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
464
+ __ref: _$zod.ZodString;
465
+ }, _$zod_v4_core0.$strip>>]>>;
466
+ code: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodEnum<{
467
+ node: "node";
468
+ element: "element";
469
+ render: "render";
470
+ }>>>;
450
471
  required: _$zod.ZodOptional<_$zod.ZodBoolean>;
451
472
  when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
452
473
  __ref: _$zod.ZodString;
@@ -1841,19 +1862,20 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
1841
1862
  }, Record<never, never>, false, Record<never, never>, Record<never, never>>;
1842
1863
  globalStyles: EntityClass<_$zod.ZodObject<{
1843
1864
  selector: _$zod.ZodString;
1844
- declarations: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<string | number | {
1865
+ declarations: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<string | number | DerivedColor | {
1845
1866
  __ref: string;
1846
1867
  } | {
1847
- [key: string]: string | number | {
1868
+ [key: string]: string | number | DerivedColor | {
1848
1869
  __ref: string;
1849
1870
  } | /*elided*/any;
1850
- }, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | {
1871
+ }, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | DerivedColor | {
1851
1872
  __ref: string;
1852
1873
  } | {
1853
- [key: string]: string | number | {
1874
+ [key: string]: string | number | DerivedColor | {
1854
1875
  __ref: string;
1855
1876
  } | /*elided*/any;
1856
1877
  }, unknown>>>;
1878
+ important: _$zod.ZodOptional<_$zod.ZodBoolean>;
1857
1879
  }, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "global-style", Record<never, never>, Record<never, never>, false, Record<never, never>, Record<never, never>>;
1858
1880
  devices: EntityClass<_$zod.ZodObject<{
1859
1881
  width: _$zod.ZodNumber;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A `global-style` declaration may be a derived colour (`alpha(Token.ref('color/on-primary'), 0.2)`),
3
+ * beside a string, a number, a ref or a nested rule, and a rule may carry `important: true`. The wire
4
+ * shape of every stored config is unchanged: a derived colour is an object the previous schema would
5
+ * have read as a nested rule, the flag is a new optional field, and no stored config held either.
6
+ * Additive, so the envelope passes through as it is.
7
+ */
8
+ import type { SchemaMigration } from '../framework/schema-version';
9
+ export declare const GLOBAL_STYLE_DERIVED_COLORS_VERSION = 20260923163604;
10
+ export declare const globalStyleDerivedColorsMigration: SchemaMigration;
@@ -0,0 +1,10 @@
1
+ //#region src/migrations/20260923163604_global_style_derived_colors.ts
2
+ const GLOBAL_STYLE_DERIVED_COLORS_VERSION = 20260923163604;
3
+ const globalStyleDerivedColorsMigration = {
4
+ version: GLOBAL_STYLE_DERIVED_COLORS_VERSION,
5
+ up(json) {
6
+ return json;
7
+ }
8
+ };
9
+ //#endregion
10
+ export { GLOBAL_STYLE_DERIVED_COLORS_VERSION, globalStyleDerivedColorsMigration };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * An additive fence: a `slot` prop may declare `value` (an icon library whose member fills it) and
3
+ * `code` (the forms code may fill it with: `node`, `element`, `render`). No stored byte moves.
4
+ *
5
+ * Identity, so a stamp below this version means "may lack these fields" and one at it means they
6
+ * are understood, which is what lets the pull gate keep an older client from stripping them.
7
+ *
8
+ * Deletable once no stored config artifact is below this version.
9
+ */
10
+ import type { SchemaMigration } from '../framework/schema-version';
11
+ export declare const SLOT_CODE_FORMS_VERSION = 20260924044539;
12
+ export declare const slotCodeFormsMigration: SchemaMigration;
@@ -0,0 +1,8 @@
1
+ //#region src/migrations/20260924044539_slot_code_forms.ts
2
+ const SLOT_CODE_FORMS_VERSION = 20260924044539;
3
+ const slotCodeFormsMigration = {
4
+ version: SLOT_CODE_FORMS_VERSION,
5
+ up: (json) => json
6
+ };
7
+ //#endregion
8
+ export { SLOT_CODE_FORMS_VERSION, slotCodeFormsMigration };
@@ -4,6 +4,7 @@ import { declaredPropDefaults } from "../framework/projections.js";
4
4
  import { isPreviewElement } from "./preview-elements.js";
5
5
  import { entryKeyOf, resolveVisibility, slotTargetsOf } from "../framework/render-spec.js";
6
6
  import { Component } from "../entities/system/Component.js";
7
+ import { isValueSlot } from "../framework/prop-surface.js";
7
8
  //#region src/spec/detach.ts
8
9
  /**
9
10
  * Detaching a placed instance: the layer that renders a component becomes that component's anatomy,
@@ -164,6 +165,11 @@ function bakeInstance({ config, source, instanceProps, layerProps, filled }) {
164
165
  continue;
165
166
  }
166
167
  if (decl?.type === "slot" && typeof value === "string") {
168
+ if (isValueSlot(decl)) {
169
+ const target = nodeOfLayer(sourceRoot);
170
+ if (target) setProp(target, name, value);
171
+ continue;
172
+ }
167
173
  const target = nodeOfLayer(routes.find((r) => r.from === name)?.layer ?? sourceRoot);
168
174
  if (target) target.text = value;
169
175
  continue;