@yahoo/uds-create-config 2.44.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -0
- package/dist/ai-lanes.d.ts +23 -0
- package/dist/ai-lanes.js +34 -0
- package/dist/authoring/define-component.d.ts +85 -0
- package/dist/configs/CanvasConfig.d.ts +3237 -0
- package/dist/configs/CanvasConfig.js +332 -0
- package/dist/configs/build-options.d.ts +10 -0
- package/dist/configs/build-options.js +68 -0
- package/dist/configs/platform.d.ts +15 -0
- package/dist/configs/platform.js +17 -0
- package/dist/configs/react-native-system.d.ts +3026 -0
- package/dist/configs/react-native-system.js +64 -0
- package/dist/configs/system.d.ts +2771 -0
- package/dist/configs/system.js +74 -0
- package/dist/css/properties.generated.d.ts +14 -0
- package/dist/css/properties.generated.js +6260 -0
- package/dist/css/value-type.d.ts +48 -0
- package/dist/css/value-type.js +131 -0
- package/dist/css/values.d.ts +33 -0
- package/dist/css/values.js +116 -0
- package/dist/entities/native/NativeModifier.d.ts +25 -0
- package/dist/entities/native/NativeModifier.js +41 -0
- package/dist/entities/native/NativeSettings.d.ts +44 -0
- package/dist/entities/native/NativeSettings.js +39 -0
- package/dist/entities/native/NativeStyleProperty.d.ts +355 -0
- package/dist/entities/native/NativeStyleProperty.js +28 -0
- package/dist/entities/native/NativeToken.d.ts +31 -0
- package/dist/entities/native/NativeToken.js +49 -0
- package/dist/entities/system/CanvasRole.d.ts +34 -0
- package/dist/entities/system/CanvasRole.js +45 -0
- package/dist/entities/system/Component.d.ts +1287 -0
- package/dist/entities/system/Component.js +1840 -0
- package/dist/entities/system/Composite.d.ts +12 -0
- package/dist/entities/system/Composite.js +26 -0
- package/dist/entities/system/Device.d.ts +11 -0
- package/dist/entities/system/Device.js +18 -0
- package/dist/entities/system/File.d.ts +72 -0
- package/dist/entities/system/File.js +136 -0
- package/dist/entities/system/Font.d.ts +48 -0
- package/dist/entities/system/Font.js +56 -0
- package/dist/entities/system/GlobalStyle.d.ts +26 -0
- package/dist/entities/system/GlobalStyle.js +54 -0
- package/dist/entities/system/Guidance.d.ts +85 -0
- package/dist/entities/system/Guidance.js +59 -0
- package/dist/entities/system/GuidanceStyle.d.ts +14 -0
- package/dist/entities/system/GuidanceStyle.js +8 -0
- package/dist/entities/system/Icon.d.ts +46 -0
- package/dist/entities/system/Icon.js +46 -0
- package/dist/entities/system/LinkedSystem.d.ts +504 -0
- package/dist/entities/system/LinkedSystem.js +814 -0
- package/dist/entities/system/Modifier.d.ts +92 -0
- package/dist/entities/system/Modifier.js +120 -0
- package/dist/entities/system/Motion.d.ts +28 -0
- package/dist/entities/system/Motion.js +48 -0
- package/dist/entities/system/Operation.d.ts +100 -0
- package/dist/entities/system/Operation.js +236 -0
- package/dist/entities/system/Package.d.ts +42 -0
- package/dist/entities/system/Package.js +75 -0
- package/dist/entities/system/Settings.d.ts +94 -0
- package/dist/entities/system/Settings.js +166 -0
- package/dist/entities/system/StyleProperty.d.ts +135 -0
- package/dist/entities/system/StyleProperty.js +438 -0
- package/dist/entities/system/Token.d.ts +67 -0
- package/dist/entities/system/Token.js +129 -0
- package/dist/entities/system/Tool.d.ts +134 -0
- package/dist/entities/system/Tool.js +124 -0
- package/dist/entities/system/color.d.ts +64 -0
- package/dist/entities/system/color.js +123 -0
- package/dist/entities/system/component-module.d.ts +63 -0
- package/dist/entities/system/component-module.js +258 -0
- package/dist/entities/system/copy-plan.d.ts +98 -0
- package/dist/entities/system/copy-plan.js +451 -0
- package/dist/entities/system/defineComponent.d.ts +428 -0
- package/dist/entities/system/defineComponent.js +337 -0
- package/dist/entities/system/element.d.ts +101 -0
- package/dist/entities/system/element.js +171 -0
- package/dist/entities/system/icon-library.d.ts +64 -0
- package/dist/entities/system/icon-library.js +112 -0
- package/dist/entities/system/icon-metadata.d.ts +72 -0
- package/dist/entities/system/icon-metadata.js +111 -0
- package/dist/entities/system/link-declaration.d.ts +27 -0
- package/dist/entities/system/link-declaration.js +64 -0
- package/dist/entities/system/link-plan.d.ts +160 -0
- package/dist/entities/system/link-plan.js +770 -0
- package/dist/entities/system/runtime-modules.d.ts +25 -0
- package/dist/entities/system/runtime-modules.js +38 -0
- package/dist/entities/system/style-bag.d.ts +20 -0
- package/dist/entities/system/style-bag.js +246 -0
- package/dist/entities/system/token-index.d.ts +89 -0
- package/dist/entities/system/token-index.js +112 -0
- package/dist/framework/Config.d.ts +2472 -0
- package/dist/framework/Config.js +5023 -0
- package/dist/framework/Entity.d.ts +127 -0
- package/dist/framework/Entity.js +125 -0
- package/dist/framework/authoring.d.ts +24 -0
- package/dist/framework/authoring.js +7 -0
- package/dist/framework/change-hooks.d.ts +119 -0
- package/dist/framework/change-hooks.js +131 -0
- package/dist/framework/changes.d.ts +88 -0
- package/dist/framework/changes.js +246 -0
- package/dist/framework/class-names.d.ts +260 -0
- package/dist/framework/class-names.js +630 -0
- package/dist/framework/coalesce.d.ts +25 -0
- package/dist/framework/coalesce.js +60 -0
- package/dist/framework/config-op.d.ts +76 -0
- package/dist/framework/config-op.js +43 -0
- package/dist/framework/config-operation-kind.d.ts +14 -0
- package/dist/framework/config-operation-kind.js +14 -0
- package/dist/framework/config-ops.d.ts +34 -0
- package/dist/framework/config-ops.js +187 -0
- package/dist/framework/defineConfig.d.ts +196 -0
- package/dist/framework/defineConfig.js +100 -0
- package/dist/framework/defineDerivedEntity.d.ts +74 -0
- package/dist/framework/defineDerivedEntity.js +83 -0
- package/dist/framework/defineEntity.d.ts +318 -0
- package/dist/framework/defineEntity.js +183 -0
- package/dist/framework/defineSubEntity.d.ts +148 -0
- package/dist/framework/defineSubEntity.js +121 -0
- package/dist/framework/derived-mutations.d.ts +20 -0
- package/dist/framework/derived-mutations.js +38 -0
- package/dist/framework/entity-search.d.ts +29 -0
- package/dist/framework/entity-search.js +117 -0
- package/dist/framework/inline-sources.d.ts +49 -0
- package/dist/framework/inline-sources.js +388 -0
- package/dist/framework/layer-styles.d.ts +25 -0
- package/dist/framework/layer-styles.js +49 -0
- package/dist/framework/memo.d.ts +48 -0
- package/dist/framework/memo.js +84 -0
- package/dist/framework/overlay.d.ts +49 -0
- package/dist/framework/overlay.js +17 -0
- package/dist/framework/plan.d.ts +49 -0
- package/dist/framework/plan.js +73 -0
- package/dist/framework/projections.d.ts +480 -0
- package/dist/framework/projections.js +974 -0
- package/dist/framework/prop-surface.d.ts +132 -0
- package/dist/framework/prop-surface.js +278 -0
- package/dist/framework/ref-graph.d.ts +71 -0
- package/dist/framework/ref-graph.js +158 -0
- package/dist/framework/ref-integrity.d.ts +55 -0
- package/dist/framework/ref-integrity.js +171 -0
- package/dist/framework/registered.d.ts +95 -0
- package/dist/framework/registry-dir.d.ts +42 -0
- package/dist/framework/registry-dir.js +48 -0
- package/dist/framework/registry.d.ts +300 -0
- package/dist/framework/registry.js +104 -0
- package/dist/framework/rejection.d.ts +58 -0
- package/dist/framework/rejection.js +111 -0
- package/dist/framework/rename-inference.d.ts +26 -0
- package/dist/framework/rename-inference.js +50 -0
- package/dist/framework/render-spec.d.ts +296 -0
- package/dist/framework/render-spec.js +809 -0
- package/dist/framework/schema-version.d.ts +140 -0
- package/dist/framework/schema-version.js +214 -0
- package/dist/framework/schemas.d.ts +109 -0
- package/dist/framework/schemas.js +615 -0
- package/dist/framework/session.d.ts +196 -0
- package/dist/framework/session.js +367 -0
- package/dist/framework/signature.d.ts +15 -0
- package/dist/framework/signature.js +83 -0
- package/dist/framework/snapshot.d.ts +115 -0
- package/dist/framework/snapshot.js +277 -0
- package/dist/framework/source-integrity.d.ts +226 -0
- package/dist/framework/source-integrity.js +478 -0
- package/dist/framework/sources.d.ts +211 -0
- package/dist/framework/sources.js +89 -0
- package/dist/framework/utils/compiled-schema.d.ts +23 -0
- package/dist/framework/utils/compiled-schema.js +46 -0
- package/dist/framework/utils/content-key.d.ts +15 -0
- package/dist/framework/utils/content-key.js +33 -0
- package/dist/framework/utils/enumerated.d.ts +13 -0
- package/dist/framework/utils/enumerated.js +19 -0
- package/dist/framework/utils/field-path.d.ts +95 -0
- package/dist/framework/utils/field-path.js +136 -0
- package/dist/framework/utils/field-schema.d.ts +55 -0
- package/dist/framework/utils/field-schema.js +183 -0
- package/dist/framework/utils/group.d.ts +37 -0
- package/dist/framework/utils/group.js +13 -0
- package/dist/framework/utils/package-path.d.ts +37 -0
- package/dist/framework/utils/package-path.js +61 -0
- package/dist/framework/utils/refs.d.ts +194 -0
- package/dist/framework/utils/refs.js +403 -0
- package/dist/framework/validate-spec.d.ts +27 -0
- package/dist/framework/validate-spec.js +45 -0
- package/dist/framework/value-domain.d.ts +26 -0
- package/dist/framework/value-domain.js +202 -0
- package/dist/framework/views-facade.d.ts +15 -0
- package/dist/framework/views-facade.js +19 -0
- package/dist/index.d.ts +90 -42
- package/dist/index.js +86 -37
- package/dist/migrations/2.0.0/raw-css.d.ts +11 -0
- package/dist/migrations/2.0.0/raw-css.js +72 -0
- package/dist/migrations/2.0.0/v1-artifact.d.ts +1559 -0
- package/dist/migrations/2.0.0/v1-artifact.js +1018 -0
- package/dist/migrations/20260908171448_settings_as_kind.d.ts +22 -0
- package/dist/migrations/20260908171448_settings_as_kind.js +89 -0
- package/dist/migrations/20260908194245_visible_state_pointer.d.ts +19 -0
- package/dist/migrations/20260908194245_visible_state_pointer.js +115 -0
- package/dist/migrations/20260909183001_icon_knockout_variants.d.ts +18 -0
- package/dist/migrations/20260909183001_icon_knockout_variants.js +8 -0
- package/dist/migrations/20260910212453_linked_system_link_ops.d.ts +13 -0
- package/dist/migrations/20260910212453_linked_system_link_ops.js +8 -0
- package/dist/migrations/index.d.ts +2 -0
- package/dist/migrations/index.js +2 -0
- package/dist/react-native/style-keys.generated.d.ts +10 -0
- package/dist/react-native/style-keys.generated.js +167 -0
- package/dist/renderer/RendererErrorBoundary.d.ts +32 -5
- package/dist/renderer/RendererErrorBoundary.js +59 -10
- package/dist/renderer/UdsRenderer.d.ts +11 -10
- package/dist/renderer/UdsRenderer.js +1 -1
- package/dist/renderer/assetEntries.d.ts +37 -0
- package/dist/renderer/assetEntries.js +39 -0
- package/dist/renderer/assetRenderable.d.ts +14 -6
- package/dist/renderer/assetRenderable.js +8 -2
- package/dist/renderer/componentEntry.d.ts +58 -0
- package/dist/renderer/componentEntry.js +71 -0
- package/dist/renderer/icon-library.d.ts +20 -0
- package/dist/renderer/index.d.ts +7 -7
- package/dist/renderer/index.js +5 -5
- package/dist/renderer/primitives/SlotRenderer.d.ts +1 -1
- package/dist/renderer/primitives/SlotRenderer.js +1 -1
- package/dist/renderer/runtimeComponent.d.ts +33 -0
- package/dist/renderer/runtimeComponent.js +113 -0
- package/dist/renderer/spec-content.d.ts +43 -0
- package/dist/renderer/spec-content.js +95 -0
- package/dist/renderer/wrapRegistry.d.ts +22 -37
- package/dist/renderer/wrapRegistry.js +10 -20
- package/dist/renderer/wrappers/event-bridge.js +6 -5
- package/dist/renderer/wrappers/hex-normalize.js +6 -5
- package/dist/renderer/wrappers/html-aliases.d.ts +7 -2
- package/dist/renderer/wrappers/html-aliases.js +36 -19
- package/dist/renderer/wrappers/inline-styles.js +7 -6
- package/dist/spec/asset-jsx.d.ts +18 -5
- package/dist/spec/asset-jsx.js +27 -16
- package/dist/spec/collapse-text-labels.d.ts +5 -15
- package/dist/spec/collapse-text-labels.js +26 -19
- package/dist/spec/empty-node-slots.d.ts +56 -34
- package/dist/spec/empty-node-slots.js +87 -47
- package/dist/spec/index.d.ts +21 -10
- package/dist/spec/index.js +21 -10
- package/dist/spec/jsxToSpec.d.ts +14 -9
- package/dist/spec/jsxToSpec.js +20 -3
- package/dist/spec/preview-elements.d.ts +63 -0
- package/dist/spec/preview-elements.js +89 -0
- package/dist/spec/rewrite-refs.d.ts +58 -0
- package/dist/spec/rewrite-refs.js +250 -0
- package/dist/spec/specToJsx.js +18 -29
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -52
- package/dist/AssetGroup.d.ts +0 -77
- package/dist/AssetGroup.js +0 -125
- package/dist/Component.d.ts +0 -333
- package/dist/Component.js +0 -1061
- package/dist/ComponentGroup.d.ts +0 -22
- package/dist/ComponentGroup.js +0 -51
- package/dist/CompositeStyle.d.ts +0 -30
- package/dist/CompositeStyle.js +0 -59
- package/dist/Config.d.ts +0 -528
- package/dist/Config.js +0 -1712
- package/dist/Mode.d.ts +0 -41
- package/dist/Mode.js +0 -81
- package/dist/Modifier.d.ts +0 -51
- package/dist/Modifier.js +0 -97
- package/dist/MotionDef.d.ts +0 -81
- package/dist/MotionDef.js +0 -212
- package/dist/Props.d.ts +0 -332
- package/dist/Props.js +0 -35
- package/dist/Provider.d.ts +0 -20
- package/dist/Provider.js +0 -14
- package/dist/StyleProp.d.ts +0 -145
- package/dist/StyleProp.js +0 -239
- package/dist/Token.d.ts +0 -76
- package/dist/Token.js +0 -133
- package/dist/TokenGroup.d.ts +0 -33
- package/dist/TokenGroup.js +0 -69
- package/dist/asset-kind.d.ts +0 -55
- package/dist/asset-kind.js +0 -29
- package/dist/asset-value.d.ts +0 -23
- package/dist/asset-value.js +0 -40
- package/dist/brands.d.ts +0 -30
- package/dist/brands.js +0 -20
- package/dist/captureCallerPath.d.ts +0 -48
- package/dist/captureCallerPath.js +0 -95
- package/dist/colorExpressions.d.ts +0 -131
- package/dist/colorExpressions.js +0 -148
- package/dist/component-referrers.d.ts +0 -30
- package/dist/component-referrers.js +0 -40
- package/dist/config-diagnostics.d.ts +0 -21
- package/dist/config-diagnostics.js +0 -12
- package/dist/defineAssetGroup.d.ts +0 -200
- package/dist/defineAssetGroup.js +0 -323
- package/dist/defineProvider.d.ts +0 -29
- package/dist/defineProvider.js +0 -60
- package/dist/element-marker.d.ts +0 -63
- package/dist/element-marker.js +0 -113
- package/dist/entity-utils.d.ts +0 -56
- package/dist/entity-utils.js +0 -105
- package/dist/extension.d.ts +0 -55
- package/dist/extension.js +0 -214
- package/dist/factories.d.ts +0 -863
- package/dist/factories.js +0 -475
- package/dist/font-face.d.ts +0 -25
- package/dist/font-face.js +0 -72
- package/dist/foreign-component-name.d.ts +0 -21
- package/dist/foreign-component-name.js +0 -42
- package/dist/interpolate.d.ts +0 -20
- package/dist/interpolate.js +0 -10
- package/dist/jsx/__fixtures__/cross-component-preview.d.ts +0 -3
- package/dist/jsx/__fixtures__/cross-component-preview.js +0 -15
- package/dist/jsx/jsx-dev-runtime.d.ts +0 -15
- package/dist/jsx/jsx-dev-runtime.js +0 -11
- package/dist/jsx/jsx-runtime.d.ts +0 -48
- package/dist/jsx/jsx-runtime.js +0 -305
- package/dist/linked-system-pins.d.ts +0 -30
- package/dist/linked-system-pins.js +0 -45
- package/dist/linkedNodePrefixes.d.ts +0 -73
- package/dist/linkedNodePrefixes.js +0 -99
- package/dist/markers.d.ts +0 -235
- package/dist/markers.js +0 -70
- package/dist/motion-constants.d.ts +0 -37
- package/dist/motion-constants.js +0 -61
- package/dist/native/NativeConfig.d.ts +0 -56
- package/dist/native/NativeConfig.js +0 -162
- package/dist/native/assets.d.ts +0 -20
- package/dist/native/assets.js +0 -17
- package/dist/native/components.d.ts +0 -139
- package/dist/native/components.js +0 -67
- package/dist/native/index.d.ts +0 -18
- package/dist/native/index.js +0 -17
- package/dist/native/modes.d.ts +0 -10
- package/dist/native/modes.js +0 -11
- package/dist/native/types.d.ts +0 -95
- package/dist/native/types.js +0 -0
- package/dist/native/validation.d.ts +0 -8
- package/dist/native/validation.js +0 -885
- package/dist/native/values.d.ts +0 -7
- package/dist/native/values.js +0 -15
- package/dist/native.d.ts +0 -12
- package/dist/native.js +0 -10
- package/dist/refs.d.ts +0 -204
- package/dist/refs.js +0 -129
- package/dist/registry-aliases.d.ts +0 -33
- package/dist/registry-aliases.js +0 -35
- package/dist/registry-dir.d.ts +0 -22
- package/dist/registry-dir.js +0 -10
- package/dist/renderer/makeRegistry.d.ts +0 -34
- package/dist/renderer/makeRegistry.js +0 -52
- package/dist/renderer/makeUdsRenderer.d.ts +0 -13
- package/dist/renderer/makeUdsRenderer.js +0 -51
- package/dist/renderer/wrappers/component-slots.d.ts +0 -41
- package/dist/renderer/wrappers/component-slots.js +0 -66
- package/dist/renderer/wrappers/slot-resolution.d.ts +0 -25
- package/dist/renderer/wrappers/slot-resolution.js +0 -68
- package/dist/renderer/wrappers/void-elements.d.ts +0 -37
- package/dist/renderer/wrappers/void-elements.js +0 -40
- package/dist/spec/layer-props.d.ts +0 -52
- package/dist/spec/layer-props.js +0 -149
- package/dist/spec/preview-controls.d.ts +0 -44
- package/dist/spec/preview-controls.js +0 -139
- package/dist/spec/slot-refs.d.ts +0 -39
- package/dist/spec/slot-refs.js +0 -56
- package/dist/token-override-rows.d.ts +0 -68
- package/dist/token-override-rows.js +0 -233
- package/dist/tokenValueType.d.ts +0 -34
- package/dist/tokenValueType.js +0 -138
- package/dist/types/css-properties.d.ts +0 -233
- package/dist/types/css-properties.js +0 -14
- package/dist/types/css-property-keywords.d.ts +0 -156
- package/dist/types/css-property-keywords.js +0 -616
- package/dist/types/css-values.d.ts +0 -63
- package/dist/types/css-values.js +0 -16
- package/dist/types.d.ts +0 -1138
- package/dist/types.js +0 -12
- package/dist/units.d.ts +0 -14
- package/dist/units.js +0 -16
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.js +0 -4
|
@@ -0,0 +1,2771 @@
|
|
|
1
|
+
import { CopyPlan } from "../entities/system/copy-plan.js";
|
|
2
|
+
import { Ref } from "../framework/utils/refs.js";
|
|
3
|
+
import { DerivedEntityClass } from "../framework/defineDerivedEntity.js";
|
|
4
|
+
import { SubEntityClass } from "../framework/defineSubEntity.js";
|
|
5
|
+
import { ComponentContractOf, PathOf } from "../framework/registered.js";
|
|
6
|
+
import { EntityClass } from "../framework/defineEntity.js";
|
|
7
|
+
import { ConfigClass } from "../framework/defineConfig.js";
|
|
8
|
+
import { PinOptionsField } from "../entities/system/LinkedSystem.js";
|
|
9
|
+
import { BreakPlan, LinkPlan, SourceRowState, UnlinkPlan } from "../entities/system/link-plan.js";
|
|
10
|
+
import { Config } from "../framework/Config.js";
|
|
11
|
+
import { ComputedInput } from "../framework/registry.js";
|
|
12
|
+
import { DerivedColor, Gradient } from "../entities/system/color.js";
|
|
13
|
+
import { StyleValue } from "../entities/system/style-bag.js";
|
|
14
|
+
import { ComponentElementBody, ComponentReference, ComponentStyleBody } from "../entities/system/Component.js";
|
|
15
|
+
import { StylePropValue } from "../entities/system/StyleProperty.js";
|
|
16
|
+
import { OverrideCondition } from "../entities/system/Token.js";
|
|
17
|
+
import * as _$zod from "zod";
|
|
18
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
19
|
+
|
|
20
|
+
//#region src/configs/system.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* `System` — the design-system config TYPE. Declares the exact kinds a design system owns (tokens,
|
|
23
|
+
* components, …) plus its derived agent-tool catalog (`operation`/`tool`). `new System()` seeds a
|
|
24
|
+
* config with those kinds; `System.fromJSON(json)` rehydrates one — it declares no borrowed KINDS, so nothing is required, though a
|
|
25
|
+
* caller holding a linked system's config attaches it here (`{ sources: { linkedSystems: { ds } } }`). This is the
|
|
26
|
+
* config every CLI / pipeline / studio consumer reads. Studio's design-file config type lives in
|
|
27
|
+
* studio (`apps/studio/src/configs/design-file.ts`) — a studio-only document type.
|
|
28
|
+
*/
|
|
29
|
+
declare const System: ConfigClass<{
|
|
30
|
+
settings: EntityClass<_$zod.ZodObject<{
|
|
31
|
+
system: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
32
|
+
id: _$zod.ZodOptional<_$zod.ZodString>;
|
|
33
|
+
}, _$zod_v4_core0.$strict>>;
|
|
34
|
+
build: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
35
|
+
inputDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
36
|
+
outDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
37
|
+
registryDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
38
|
+
}, _$zod_v4_core0.$strict>>;
|
|
39
|
+
css: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
40
|
+
prefix: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
41
|
+
classNames: _$zod.ZodString;
|
|
42
|
+
variables: _$zod.ZodString;
|
|
43
|
+
}, _$zod_v4_core0.$strict>]>>;
|
|
44
|
+
scope: _$zod.ZodOptional<_$zod.ZodString>;
|
|
45
|
+
preflight: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
46
|
+
safelist: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
47
|
+
}, _$zod_v4_core0.$strict>>;
|
|
48
|
+
playground: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
49
|
+
pagesDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
50
|
+
port: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
51
|
+
}, _$zod_v4_core0.$strict>>;
|
|
52
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "settings", Record<never, never>, Record<never, never>, true>;
|
|
53
|
+
tokens: EntityClass<_$zod.ZodObject<{
|
|
54
|
+
value: _$zod.ZodType<string | number | Ref | DerivedColor | Gradient, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | Ref | DerivedColor | Gradient, unknown>>;
|
|
55
|
+
type: _$zod.ZodOptional<_$zod.ZodString>;
|
|
56
|
+
overrides: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{
|
|
57
|
+
on: _$zod.ZodType<OverrideCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<OverrideCondition, unknown>>;
|
|
58
|
+
value: _$zod.ZodType<string | number | Ref | DerivedColor | Gradient, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | Ref | DerivedColor | Gradient, unknown>>;
|
|
59
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
60
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
61
|
+
cssPrefix: _$zod.ZodOptional<_$zod.ZodString>;
|
|
62
|
+
}, _$zod_v4_core0.$strip>, "token", {
|
|
63
|
+
readonly create: {
|
|
64
|
+
readonly description: `Create a token at \`<group>/<name>\` \u2014 \`data.value\` is the CSS value. The first path segment is its group, and a style property takes a whole group as one ref (\`${string}\`), so put the tokens one prop should offer in one group rather than listing values on the prop.`;
|
|
65
|
+
};
|
|
66
|
+
}, Record<never, never>, false>;
|
|
67
|
+
components: Omit<EntityClass<_$zod.ZodObject<{
|
|
68
|
+
layers: SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodLazy<_$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>>, EntityClass<_$zod.ZodObject<{
|
|
69
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
70
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
71
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>]>>;
|
|
72
|
+
props: _$zod.ZodOptional<SubEntityClass<_$zod.ZodNullable<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
73
|
+
type: _$zod.ZodLiteral<"slot">;
|
|
74
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
75
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
76
|
+
__ref: _$zod.ZodString;
|
|
77
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
78
|
+
__ref: _$zod.ZodString;
|
|
79
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
80
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
81
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
82
|
+
type: _$zod.ZodLiteral<"variant">;
|
|
83
|
+
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
84
|
+
[k: string]: {};
|
|
85
|
+
}, string[]>>, _$zod.ZodObject<{
|
|
86
|
+
__ref: _$zod.ZodString;
|
|
87
|
+
}, _$zod_v4_core0.$strip>, SubEntityClass<_$zod.ZodObject<{
|
|
88
|
+
label: _$zod.ZodOptional<_$zod.ZodString>;
|
|
89
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
90
|
+
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
91
|
+
}, _$zod_v4_core0.$strict>>]>;
|
|
92
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
93
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
94
|
+
type: _$zod.ZodLiteral<"forward">;
|
|
95
|
+
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
96
|
+
__ref: _$zod.ZodString;
|
|
97
|
+
}, _$zod_v4_core0.$strip>]>;
|
|
98
|
+
into: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
99
|
+
__ref: _$zod.ZodString;
|
|
100
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
101
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
102
|
+
__ref: _$zod.ZodString;
|
|
103
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
104
|
+
__ref: _$zod.ZodString;
|
|
105
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
106
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
107
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
108
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
109
|
+
type: "forward";
|
|
110
|
+
target: string | {
|
|
111
|
+
__ref: string;
|
|
112
|
+
};
|
|
113
|
+
into?: string | {
|
|
114
|
+
__ref: string;
|
|
115
|
+
} | undefined;
|
|
116
|
+
accepts?: {
|
|
117
|
+
__ref: string;
|
|
118
|
+
} | {
|
|
119
|
+
__ref: string;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
text?: boolean | undefined;
|
|
122
|
+
required?: boolean | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
type: "forward";
|
|
125
|
+
target: string | {
|
|
126
|
+
__ref: string;
|
|
127
|
+
};
|
|
128
|
+
into?: string | {
|
|
129
|
+
__ref: string;
|
|
130
|
+
} | undefined;
|
|
131
|
+
accepts?: {
|
|
132
|
+
__ref: string;
|
|
133
|
+
} | {
|
|
134
|
+
__ref: string;
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
text?: boolean | undefined;
|
|
137
|
+
required?: boolean | undefined;
|
|
138
|
+
}>>, _$zod.ZodObject<{
|
|
139
|
+
type: _$zod.ZodLiteral<"styleProperty">;
|
|
140
|
+
value: _$zod.ZodObject<{
|
|
141
|
+
__ref: _$zod.ZodString;
|
|
142
|
+
}, _$zod_v4_core0.$strip>;
|
|
143
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
144
|
+
type: _$zod.ZodLiteral<"composite">;
|
|
145
|
+
value: _$zod.ZodObject<{
|
|
146
|
+
__ref: _$zod.ZodString;
|
|
147
|
+
}, _$zod_v4_core0.$strip>;
|
|
148
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
149
|
+
type: _$zod.ZodLiteral<"motion">;
|
|
150
|
+
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
151
|
+
__ref: _$zod.ZodString;
|
|
152
|
+
}, _$zod_v4_core0.$strip>>;
|
|
153
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
154
|
+
type: _$zod.ZodLiteral<"string">;
|
|
155
|
+
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
156
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
157
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
158
|
+
type: _$zod.ZodLiteral<"number">;
|
|
159
|
+
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
160
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
161
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
162
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
163
|
+
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
164
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
165
|
+
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
166
|
+
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
167
|
+
__ref: _$zod.ZodString;
|
|
168
|
+
}, _$zod_v4_core0.$strip>>]>>>;
|
|
169
|
+
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
170
|
+
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
171
|
+
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
172
|
+
previewProps: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
173
|
+
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
174
|
+
__ref: _$zod.ZodString;
|
|
175
|
+
}, _$zod_v4_core0.$strip>>;
|
|
176
|
+
export: _$zod.ZodOptional<_$zod.ZodString>;
|
|
177
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
178
|
+
icon: _$zod.ZodOptional<_$zod.ZodString>;
|
|
179
|
+
}, _$zod_v4_core0.$strip>, "component", {
|
|
180
|
+
readonly create: {
|
|
181
|
+
readonly data: _$zod.ZodObject<{
|
|
182
|
+
layers: SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodLazy<_$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>>, EntityClass<_$zod.ZodObject<{
|
|
183
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
184
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
185
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>]>>;
|
|
186
|
+
props: _$zod.ZodOptional<SubEntityClass<_$zod.ZodNullable<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
187
|
+
type: _$zod.ZodLiteral<"slot">;
|
|
188
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
189
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
190
|
+
__ref: _$zod.ZodString;
|
|
191
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
192
|
+
__ref: _$zod.ZodString;
|
|
193
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
194
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
195
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
196
|
+
type: _$zod.ZodLiteral<"variant">;
|
|
197
|
+
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
198
|
+
[k: string]: {};
|
|
199
|
+
}, string[]>>, _$zod.ZodObject<{
|
|
200
|
+
__ref: _$zod.ZodString;
|
|
201
|
+
}, _$zod_v4_core0.$strip>, SubEntityClass<_$zod.ZodObject<{
|
|
202
|
+
label: _$zod.ZodOptional<_$zod.ZodString>;
|
|
203
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
204
|
+
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
205
|
+
}, _$zod_v4_core0.$strict>>]>;
|
|
206
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
207
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
208
|
+
type: _$zod.ZodLiteral<"forward">;
|
|
209
|
+
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
210
|
+
__ref: _$zod.ZodString;
|
|
211
|
+
}, _$zod_v4_core0.$strip>]>;
|
|
212
|
+
into: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
213
|
+
__ref: _$zod.ZodString;
|
|
214
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
215
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
216
|
+
__ref: _$zod.ZodString;
|
|
217
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
218
|
+
__ref: _$zod.ZodString;
|
|
219
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
220
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
221
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
222
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
223
|
+
type: "forward";
|
|
224
|
+
target: string | {
|
|
225
|
+
__ref: string;
|
|
226
|
+
};
|
|
227
|
+
into?: string | {
|
|
228
|
+
__ref: string;
|
|
229
|
+
} | undefined;
|
|
230
|
+
accepts?: {
|
|
231
|
+
__ref: string;
|
|
232
|
+
} | {
|
|
233
|
+
__ref: string;
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
text?: boolean | undefined;
|
|
236
|
+
required?: boolean | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
type: "forward";
|
|
239
|
+
target: string | {
|
|
240
|
+
__ref: string;
|
|
241
|
+
};
|
|
242
|
+
into?: string | {
|
|
243
|
+
__ref: string;
|
|
244
|
+
} | undefined;
|
|
245
|
+
accepts?: {
|
|
246
|
+
__ref: string;
|
|
247
|
+
} | {
|
|
248
|
+
__ref: string;
|
|
249
|
+
}[] | undefined;
|
|
250
|
+
text?: boolean | undefined;
|
|
251
|
+
required?: boolean | undefined;
|
|
252
|
+
}>>, _$zod.ZodObject<{
|
|
253
|
+
type: _$zod.ZodLiteral<"styleProperty">;
|
|
254
|
+
value: _$zod.ZodObject<{
|
|
255
|
+
__ref: _$zod.ZodString;
|
|
256
|
+
}, _$zod_v4_core0.$strip>;
|
|
257
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
258
|
+
type: _$zod.ZodLiteral<"composite">;
|
|
259
|
+
value: _$zod.ZodObject<{
|
|
260
|
+
__ref: _$zod.ZodString;
|
|
261
|
+
}, _$zod_v4_core0.$strip>;
|
|
262
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
263
|
+
type: _$zod.ZodLiteral<"motion">;
|
|
264
|
+
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
265
|
+
__ref: _$zod.ZodString;
|
|
266
|
+
}, _$zod_v4_core0.$strip>>;
|
|
267
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
268
|
+
type: _$zod.ZodLiteral<"string">;
|
|
269
|
+
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
270
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
271
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
272
|
+
type: _$zod.ZodLiteral<"number">;
|
|
273
|
+
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
274
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
275
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
276
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
277
|
+
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
278
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
279
|
+
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
280
|
+
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
281
|
+
__ref: _$zod.ZodString;
|
|
282
|
+
}, _$zod_v4_core0.$strip>>]>>>;
|
|
283
|
+
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
284
|
+
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
285
|
+
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
286
|
+
previewProps: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
287
|
+
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
288
|
+
__ref: _$zod.ZodString;
|
|
289
|
+
}, _$zod_v4_core0.$strip>>;
|
|
290
|
+
export: _$zod.ZodOptional<_$zod.ZodString>;
|
|
291
|
+
}, _$zod_v4_core0.$strict>;
|
|
292
|
+
readonly description: "Create a component at a new qualified `path`. When its complete body is known, include all layers, anatomy, props, defaults, and styles in this one operation. `data.layers` maps each stable layer name to the element it renders and must include `root` — a tag for a primitive (`{ \"layers\": { \"root\": \"div\" } }`), and for anything built on top, a ref to a primitive (`{ \"root\": { \"__ref\": \"component:Box\" }, \"label\": { \"__ref\": \"component:Text\" } }`), which is what lets the layer take that primitive's style props. A primitive exposes style props as `{ \"type\": \"styleProperty\", \"value\": { \"__ref\": \"style-property:bg\" } }` and declares `children: { \"type\": \"slot\", \"text\": true }` when it holds content — without the slot, nothing nested inside it renders. A composed component exposes a layer's props at its own top level through `forwards`, keyed by layer: `{ \"forwards\": { \"root\": \"*\" } }` passes every prop the root's element takes (so `<Button width=\"full\">` reaches the root's `width`), and a list of member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`, each naming the component that declares the prop) passes only those. A prop a layer already exposes is forwarded, never redeclared in `props`; a `props` entry of `{ \"type\": \"forward\" }` is the reverse route, one of this component's props into a layer's. `anatomy` is the tree the build would read off a render: each node renders a layer (`{ \"__ref\": \"layer:<name>\" }`), an intrinsic tag, or `Slot` (`{ \"element\": \"Slot\", \"props\": { \"name\": \"children\" } }`, where a slot prop's content lands — but a declared slot fills `root` by default, so a primitive still declares its `children` slot prop yet needs no `Slot` node or `children` entry for it, and a `Slot` node is only for landing that content in a nested layer); `children` lists sibling node keys from the `root` node, never a prop name; `text` is a fixed string; `visible` is a condition on a prop (`{ \"$state\": \"<prop>\" }`, or with `eq`); content shown in a nested layer is a route, `children: { \"type\": \"forward\", \"target\": \"label/children\" }`. `$state` appears only in `visible` and in an `element` a prop chooses, never as a prop value. A glyph is a node of its own, `{ \"element\": { \"__ref\": \"icon:<library>/<Name>\" } }`, listed in the `children` of the layer node that holds it, never a prop value. Text a prop supplies to a text layer is never a node either: declare the prop `{ \"type\": \"forward\", \"target\": \"<layer>/children\" }` and the layer shows it; a `Slot` node goes only under a layer that takes nodes. A style rule is `\"styles\": { \"*\": { \"when\": null, \"layers\": { \"root\": { \"bg\": \"surface\" } } } }`, keyed by a name, with each layer's bag under `layers`. A composed component carries its own styles: give it an unconditional (`\"*\"`) rule that lays out and surfaces it through the system's style properties — spacing, alignment and gap on the container, a background and color where it has one — rather than leaning on the bare primitives, which paint flat. Style a layer only with the style props the primitive it renders exposes, set to the values those props accept: `component/get` on the primitive lists both, so read it and choose from that rather than reaching for a CSS name or value the system has no style property for. Set `previewProps` (or `defaultProps`) so the component previews with content; a root that takes children renders empty otherwise. A style rule's layer bag is keyed by style-prop name (`fontWeight`, `color`), never by CSS property name, and each value is one of that prop's values.";
|
|
293
|
+
readonly example: ({
|
|
294
|
+
config
|
|
295
|
+
}: {
|
|
296
|
+
config: Config;
|
|
297
|
+
kind: string;
|
|
298
|
+
path: string;
|
|
299
|
+
}) => {
|
|
300
|
+
path: string;
|
|
301
|
+
data: Record<string, unknown>;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly 'sub-create/anatomy': {
|
|
305
|
+
readonly description: "Add one anatomy node (`key` + `data`) to a component. In a batch, create child nodes before a parent whose `children` or `slots` names them; each referenced node must already exist when this operation runs.";
|
|
306
|
+
};
|
|
307
|
+
readonly 'sub-create/props': {
|
|
308
|
+
readonly description: "Declare a prop this component owns (`key` + `data`): a `variant`, a `slot`, a `styleProperty` or `composite` on a primitive, a `forward` routing this prop into a layer's (`{ \"type\": \"forward\", \"target\": \"<layer>/<prop>\" }`), or `null` to drop a forwarded prop from the surface. A prop one of its layers already exposes — `width` on a root that renders `Box` — is not declared here; `sub-create/forwards` exposes it at the top level.";
|
|
309
|
+
};
|
|
310
|
+
readonly 'sub-create/forwards': {
|
|
311
|
+
readonly description: "Expose a layer's props at this component's top level. `key` is one of the component's own layer names; `data` is `\"*\"` for every prop that layer's element takes, or a list of component prop member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`) for a selection, each naming the component that declares the prop — `Button` forwarding `width` from a `Pressable` root names `Box`, where `Pressable` takes it from. This is how `<Button width=\"full\">` reaches the root's `width` with no `width` entry in `props`; a prop the layer already exposes is forwarded, never redeclared. Two entries may not offer the same prop, and removing one forwarded prop is a `null` tombstone under `props`.";
|
|
312
|
+
readonly example: ({
|
|
313
|
+
config
|
|
314
|
+
}: {
|
|
315
|
+
config: Config;
|
|
316
|
+
kind: string;
|
|
317
|
+
path: string;
|
|
318
|
+
}) => {
|
|
319
|
+
path: string;
|
|
320
|
+
key: string;
|
|
321
|
+
data: "*";
|
|
322
|
+
} | undefined;
|
|
323
|
+
};
|
|
324
|
+
readonly 'sub-upsert/forwards': {
|
|
325
|
+
readonly description: "Set what one layer forwards, added when absent and replaced whole when present. Expose a layer's props at this component's top level. `key` is one of the component's own layer names; `data` is `\"*\"` for every prop that layer's element takes, or a list of component prop member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`) for a selection, each naming the component that declares the prop — `Button` forwarding `width` from a `Pressable` root names `Box`, where `Pressable` takes it from. This is how `<Button width=\"full\">` reaches the root's `width` with no `width` entry in `props`; a prop the layer already exposes is forwarded, never redeclared. Two entries may not offer the same prop, and removing one forwarded prop is a `null` tombstone under `props`.";
|
|
326
|
+
};
|
|
327
|
+
readonly 'sub-update/forwards': {
|
|
328
|
+
readonly description: "Replace what one layer forwards: the member is `'*'` or a list, so `data` is the whole new value. Expose a layer's props at this component's top level. `key` is one of the component's own layer names; `data` is `\"*\"` for every prop that layer's element takes, or a list of component prop member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`) for a selection, each naming the component that declares the prop — `Button` forwarding `width` from a `Pressable` root names `Box`, where `Pressable` takes it from. This is how `<Button width=\"full\">` reaches the root's `width` with no `width` entry in `props`; a prop the layer already exposes is forwarded, never redeclared. Two entries may not offer the same prop, and removing one forwarded prop is a `null` tombstone under `props`.";
|
|
329
|
+
};
|
|
330
|
+
readonly 'element-insert': {
|
|
331
|
+
readonly input: _$zod.ZodObject<{
|
|
332
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
333
|
+
key: _$zod.ZodOptional<_$zod.ZodString>;
|
|
334
|
+
data: _$zod.ZodPrefault<_$zod.ZodObject<{
|
|
335
|
+
element: _$zod.ZodDefault<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
336
|
+
__ref: _$zod.ZodString;
|
|
337
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
338
|
+
parent: _$zod.ZodOptional<_$zod.ZodString>;
|
|
339
|
+
index: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
340
|
+
props: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
341
|
+
slotProp: _$zod.ZodOptional<_$zod.ZodString>;
|
|
342
|
+
visible: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
343
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
344
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
345
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
346
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
347
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
348
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
349
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
350
|
+
$state: _$zod.ZodString;
|
|
351
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
352
|
+
$state: string;
|
|
353
|
+
not?: true | undefined;
|
|
354
|
+
eq?: unknown;
|
|
355
|
+
neq?: unknown;
|
|
356
|
+
gt?: number | undefined;
|
|
357
|
+
gte?: number | undefined;
|
|
358
|
+
lt?: number | undefined;
|
|
359
|
+
lte?: number | undefined;
|
|
360
|
+
}, {
|
|
361
|
+
$state: string;
|
|
362
|
+
not?: true | undefined;
|
|
363
|
+
eq?: unknown;
|
|
364
|
+
neq?: unknown;
|
|
365
|
+
gt?: number | undefined;
|
|
366
|
+
gte?: number | undefined;
|
|
367
|
+
lt?: number | undefined;
|
|
368
|
+
lte?: number | undefined;
|
|
369
|
+
}>>, _$zod.ZodObject<{
|
|
370
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
371
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
372
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
373
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
374
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
375
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
376
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
377
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
378
|
+
$state: _$zod.ZodString;
|
|
379
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
380
|
+
$state: string;
|
|
381
|
+
not?: true | undefined;
|
|
382
|
+
eq?: unknown;
|
|
383
|
+
neq?: unknown;
|
|
384
|
+
gt?: number | undefined;
|
|
385
|
+
gte?: number | undefined;
|
|
386
|
+
lt?: number | undefined;
|
|
387
|
+
lte?: number | undefined;
|
|
388
|
+
}, {
|
|
389
|
+
$state: string;
|
|
390
|
+
not?: true | undefined;
|
|
391
|
+
eq?: unknown;
|
|
392
|
+
neq?: unknown;
|
|
393
|
+
gt?: number | undefined;
|
|
394
|
+
gte?: number | undefined;
|
|
395
|
+
lt?: number | undefined;
|
|
396
|
+
lte?: number | undefined;
|
|
397
|
+
}>>>;
|
|
398
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
399
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
400
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
401
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
402
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
403
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
404
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
405
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
406
|
+
$state: _$zod.ZodString;
|
|
407
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
408
|
+
$state: string;
|
|
409
|
+
not?: true | undefined;
|
|
410
|
+
eq?: unknown;
|
|
411
|
+
neq?: unknown;
|
|
412
|
+
gt?: number | undefined;
|
|
413
|
+
gte?: number | undefined;
|
|
414
|
+
lt?: number | undefined;
|
|
415
|
+
lte?: number | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
$state: string;
|
|
418
|
+
not?: true | undefined;
|
|
419
|
+
eq?: unknown;
|
|
420
|
+
neq?: unknown;
|
|
421
|
+
gt?: number | undefined;
|
|
422
|
+
gte?: number | undefined;
|
|
423
|
+
lt?: number | undefined;
|
|
424
|
+
lte?: number | undefined;
|
|
425
|
+
}>>, _$zod.ZodObject<{
|
|
426
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
427
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
428
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
429
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
430
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
431
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
432
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
433
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
434
|
+
$state: _$zod.ZodString;
|
|
435
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
436
|
+
$state: string;
|
|
437
|
+
not?: true | undefined;
|
|
438
|
+
eq?: unknown;
|
|
439
|
+
neq?: unknown;
|
|
440
|
+
gt?: number | undefined;
|
|
441
|
+
gte?: number | undefined;
|
|
442
|
+
lt?: number | undefined;
|
|
443
|
+
lte?: number | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
$state: string;
|
|
446
|
+
not?: true | undefined;
|
|
447
|
+
eq?: unknown;
|
|
448
|
+
neq?: unknown;
|
|
449
|
+
gt?: number | undefined;
|
|
450
|
+
gte?: number | undefined;
|
|
451
|
+
lt?: number | undefined;
|
|
452
|
+
lte?: number | undefined;
|
|
453
|
+
}>>>;
|
|
454
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
455
|
+
__ref: _$zod.ZodString;
|
|
456
|
+
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
457
|
+
$state: string;
|
|
458
|
+
eq?: unknown;
|
|
459
|
+
} | {
|
|
460
|
+
$state: string;
|
|
461
|
+
eq?: unknown;
|
|
462
|
+
}[], Record<string, string | number | boolean | {
|
|
463
|
+
__ref: string;
|
|
464
|
+
}>>>]>>;
|
|
465
|
+
text: _$zod.ZodOptional<_$zod.ZodString>;
|
|
466
|
+
children: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
467
|
+
slots: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodString>>>;
|
|
468
|
+
nodes: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
|
|
469
|
+
element: _$zod.ZodDefault<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
470
|
+
__ref: _$zod.ZodString;
|
|
471
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
472
|
+
props: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
473
|
+
children: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
474
|
+
slots: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodString>>>;
|
|
475
|
+
visible: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
476
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
477
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
478
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
479
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
480
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
481
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
482
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
483
|
+
$state: _$zod.ZodString;
|
|
484
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
485
|
+
$state: string;
|
|
486
|
+
not?: true | undefined;
|
|
487
|
+
eq?: unknown;
|
|
488
|
+
neq?: unknown;
|
|
489
|
+
gt?: number | undefined;
|
|
490
|
+
gte?: number | undefined;
|
|
491
|
+
lt?: number | undefined;
|
|
492
|
+
lte?: number | undefined;
|
|
493
|
+
}, {
|
|
494
|
+
$state: string;
|
|
495
|
+
not?: true | undefined;
|
|
496
|
+
eq?: unknown;
|
|
497
|
+
neq?: unknown;
|
|
498
|
+
gt?: number | undefined;
|
|
499
|
+
gte?: number | undefined;
|
|
500
|
+
lt?: number | undefined;
|
|
501
|
+
lte?: number | undefined;
|
|
502
|
+
}>>, _$zod.ZodObject<{
|
|
503
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
504
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
505
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
506
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
507
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
508
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
509
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
510
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
511
|
+
$state: _$zod.ZodString;
|
|
512
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
513
|
+
$state: string;
|
|
514
|
+
not?: true | undefined;
|
|
515
|
+
eq?: unknown;
|
|
516
|
+
neq?: unknown;
|
|
517
|
+
gt?: number | undefined;
|
|
518
|
+
gte?: number | undefined;
|
|
519
|
+
lt?: number | undefined;
|
|
520
|
+
lte?: number | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
$state: string;
|
|
523
|
+
not?: true | undefined;
|
|
524
|
+
eq?: unknown;
|
|
525
|
+
neq?: unknown;
|
|
526
|
+
gt?: number | undefined;
|
|
527
|
+
gte?: number | undefined;
|
|
528
|
+
lt?: number | undefined;
|
|
529
|
+
lte?: number | undefined;
|
|
530
|
+
}>>>;
|
|
531
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
532
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
533
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
534
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
535
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
536
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
537
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
538
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
539
|
+
$state: _$zod.ZodString;
|
|
540
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
541
|
+
$state: string;
|
|
542
|
+
not?: true | undefined;
|
|
543
|
+
eq?: unknown;
|
|
544
|
+
neq?: unknown;
|
|
545
|
+
gt?: number | undefined;
|
|
546
|
+
gte?: number | undefined;
|
|
547
|
+
lt?: number | undefined;
|
|
548
|
+
lte?: number | undefined;
|
|
549
|
+
}, {
|
|
550
|
+
$state: string;
|
|
551
|
+
not?: true | undefined;
|
|
552
|
+
eq?: unknown;
|
|
553
|
+
neq?: unknown;
|
|
554
|
+
gt?: number | undefined;
|
|
555
|
+
gte?: number | undefined;
|
|
556
|
+
lt?: number | undefined;
|
|
557
|
+
lte?: number | undefined;
|
|
558
|
+
}>>, _$zod.ZodObject<{
|
|
559
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
560
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
561
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
562
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
563
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
564
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
565
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
566
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
567
|
+
$state: _$zod.ZodString;
|
|
568
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
569
|
+
$state: string;
|
|
570
|
+
not?: true | undefined;
|
|
571
|
+
eq?: unknown;
|
|
572
|
+
neq?: unknown;
|
|
573
|
+
gt?: number | undefined;
|
|
574
|
+
gte?: number | undefined;
|
|
575
|
+
lt?: number | undefined;
|
|
576
|
+
lte?: number | undefined;
|
|
577
|
+
}, {
|
|
578
|
+
$state: string;
|
|
579
|
+
not?: true | undefined;
|
|
580
|
+
eq?: unknown;
|
|
581
|
+
neq?: unknown;
|
|
582
|
+
gt?: number | undefined;
|
|
583
|
+
gte?: number | undefined;
|
|
584
|
+
lt?: number | undefined;
|
|
585
|
+
lte?: number | undefined;
|
|
586
|
+
}>>>;
|
|
587
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
588
|
+
__ref: _$zod.ZodString;
|
|
589
|
+
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
590
|
+
$state: string;
|
|
591
|
+
eq?: unknown;
|
|
592
|
+
} | {
|
|
593
|
+
$state: string;
|
|
594
|
+
eq?: unknown;
|
|
595
|
+
}[], Record<string, string | number | boolean | {
|
|
596
|
+
__ref: string;
|
|
597
|
+
}>>>]>>;
|
|
598
|
+
text: _$zod.ZodOptional<_$zod.ZodString>;
|
|
599
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
600
|
+
subtree: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
601
|
+
root: _$zod.ZodString;
|
|
602
|
+
elements: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
|
|
603
|
+
element: _$zod.ZodDefault<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
604
|
+
__ref: _$zod.ZodString;
|
|
605
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
606
|
+
props: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
607
|
+
children: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
608
|
+
slots: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodString>>>;
|
|
609
|
+
visible: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
610
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
611
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
612
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
613
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
614
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
615
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
616
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
617
|
+
$state: _$zod.ZodString;
|
|
618
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
619
|
+
$state: string;
|
|
620
|
+
not?: true | undefined;
|
|
621
|
+
eq?: unknown;
|
|
622
|
+
neq?: unknown;
|
|
623
|
+
gt?: number | undefined;
|
|
624
|
+
gte?: number | undefined;
|
|
625
|
+
lt?: number | undefined;
|
|
626
|
+
lte?: number | undefined;
|
|
627
|
+
}, {
|
|
628
|
+
$state: string;
|
|
629
|
+
not?: true | undefined;
|
|
630
|
+
eq?: unknown;
|
|
631
|
+
neq?: unknown;
|
|
632
|
+
gt?: number | undefined;
|
|
633
|
+
gte?: number | undefined;
|
|
634
|
+
lt?: number | undefined;
|
|
635
|
+
lte?: number | undefined;
|
|
636
|
+
}>>, _$zod.ZodObject<{
|
|
637
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
638
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
639
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
640
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
641
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
642
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
643
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
644
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
645
|
+
$state: _$zod.ZodString;
|
|
646
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
647
|
+
$state: string;
|
|
648
|
+
not?: true | undefined;
|
|
649
|
+
eq?: unknown;
|
|
650
|
+
neq?: unknown;
|
|
651
|
+
gt?: number | undefined;
|
|
652
|
+
gte?: number | undefined;
|
|
653
|
+
lt?: number | undefined;
|
|
654
|
+
lte?: number | undefined;
|
|
655
|
+
}, {
|
|
656
|
+
$state: string;
|
|
657
|
+
not?: true | undefined;
|
|
658
|
+
eq?: unknown;
|
|
659
|
+
neq?: unknown;
|
|
660
|
+
gt?: number | undefined;
|
|
661
|
+
gte?: number | undefined;
|
|
662
|
+
lt?: number | undefined;
|
|
663
|
+
lte?: number | undefined;
|
|
664
|
+
}>>>;
|
|
665
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
666
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
667
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
668
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
669
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
670
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
671
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
672
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
673
|
+
$state: _$zod.ZodString;
|
|
674
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
675
|
+
$state: string;
|
|
676
|
+
not?: true | undefined;
|
|
677
|
+
eq?: unknown;
|
|
678
|
+
neq?: unknown;
|
|
679
|
+
gt?: number | undefined;
|
|
680
|
+
gte?: number | undefined;
|
|
681
|
+
lt?: number | undefined;
|
|
682
|
+
lte?: number | undefined;
|
|
683
|
+
}, {
|
|
684
|
+
$state: string;
|
|
685
|
+
not?: true | undefined;
|
|
686
|
+
eq?: unknown;
|
|
687
|
+
neq?: unknown;
|
|
688
|
+
gt?: number | undefined;
|
|
689
|
+
gte?: number | undefined;
|
|
690
|
+
lt?: number | undefined;
|
|
691
|
+
lte?: number | undefined;
|
|
692
|
+
}>>, _$zod.ZodObject<{
|
|
693
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
694
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
695
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
696
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
697
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
698
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
699
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
700
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
701
|
+
$state: _$zod.ZodString;
|
|
702
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
703
|
+
$state: string;
|
|
704
|
+
not?: true | undefined;
|
|
705
|
+
eq?: unknown;
|
|
706
|
+
neq?: unknown;
|
|
707
|
+
gt?: number | undefined;
|
|
708
|
+
gte?: number | undefined;
|
|
709
|
+
lt?: number | undefined;
|
|
710
|
+
lte?: number | undefined;
|
|
711
|
+
}, {
|
|
712
|
+
$state: string;
|
|
713
|
+
not?: true | undefined;
|
|
714
|
+
eq?: unknown;
|
|
715
|
+
neq?: unknown;
|
|
716
|
+
gt?: number | undefined;
|
|
717
|
+
gte?: number | undefined;
|
|
718
|
+
lt?: number | undefined;
|
|
719
|
+
lte?: number | undefined;
|
|
720
|
+
}>>>;
|
|
721
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
722
|
+
__ref: _$zod.ZodString;
|
|
723
|
+
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
724
|
+
$state: string;
|
|
725
|
+
eq?: unknown;
|
|
726
|
+
} | {
|
|
727
|
+
$state: string;
|
|
728
|
+
eq?: unknown;
|
|
729
|
+
}[], Record<string, string | number | boolean | {
|
|
730
|
+
__ref: string;
|
|
731
|
+
}>>>]>>;
|
|
732
|
+
text: _$zod.ZodOptional<_$zod.ZodString>;
|
|
733
|
+
}, _$zod_v4_core0.$strict>>;
|
|
734
|
+
}, _$zod_v4_core0.$strip>>;
|
|
735
|
+
}, _$zod_v4_core0.$strip>>;
|
|
736
|
+
}, _$zod_v4_core0.$strip>;
|
|
737
|
+
readonly readOnly: false;
|
|
738
|
+
readonly label: "Add element";
|
|
739
|
+
readonly description: "Add an element to a component: creates the LAYER it is styled through and the anatomy node that places it, under `parent`.";
|
|
740
|
+
readonly scope: "item";
|
|
741
|
+
readonly creates: true;
|
|
742
|
+
readonly title: (entity: string) => string;
|
|
743
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
744
|
+
};
|
|
745
|
+
readonly 'element-delete': {
|
|
746
|
+
readonly input: _$zod.ZodObject<{
|
|
747
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
748
|
+
key: _$zod.ZodString;
|
|
749
|
+
data: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
750
|
+
subtree: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
751
|
+
}, _$zod_v4_core0.$strip>>;
|
|
752
|
+
}, _$zod_v4_core0.$strip>;
|
|
753
|
+
readonly readOnly: false;
|
|
754
|
+
readonly label: "Remove element";
|
|
755
|
+
readonly description: "Remove an element from a component: its anatomy node, the layer it is styled through, its subtree, every parent edge naming it, and its entry in every style rule.";
|
|
756
|
+
readonly scope: "item";
|
|
757
|
+
readonly approval: "destructive";
|
|
758
|
+
readonly title: (entity: string) => string;
|
|
759
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
760
|
+
};
|
|
761
|
+
readonly 'element-move': {
|
|
762
|
+
readonly input: _$zod.ZodObject<{
|
|
763
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
764
|
+
key: _$zod.ZodString;
|
|
765
|
+
data: _$zod.ZodPrefault<_$zod.ZodObject<{
|
|
766
|
+
parent: _$zod.ZodDefault<_$zod.ZodString>;
|
|
767
|
+
index: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
768
|
+
slotProp: _$zod.ZodOptional<_$zod.ZodString>;
|
|
769
|
+
}, _$zod_v4_core0.$strip>>;
|
|
770
|
+
}, _$zod_v4_core0.$strip>;
|
|
771
|
+
readonly readOnly: false;
|
|
772
|
+
readonly label: "Move element";
|
|
773
|
+
readonly description: "Move a component's anatomy node under a different parent, to a different position under the same one, or — with `slotProp` — into a parent's slot.";
|
|
774
|
+
readonly scope: "item";
|
|
775
|
+
readonly approval: "reference-change";
|
|
776
|
+
readonly title: (entity: string) => string;
|
|
777
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
778
|
+
};
|
|
779
|
+
readonly validate: {
|
|
780
|
+
readonly input: _$zod.ZodObject<{
|
|
781
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
782
|
+
data: _$zod.ZodObject<{
|
|
783
|
+
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
784
|
+
}, _$zod_v4_core0.$strip>;
|
|
785
|
+
}, _$zod_v4_core0.$strip>;
|
|
786
|
+
readonly readOnly: true;
|
|
787
|
+
readonly label: "Validate props";
|
|
788
|
+
readonly description: "Check a bag of prop VALUES against a component — rejects unknown props and out-of-domain values.";
|
|
789
|
+
readonly scope: "item";
|
|
790
|
+
readonly title: (entity: string) => string;
|
|
791
|
+
readonly example: ({
|
|
792
|
+
config,
|
|
793
|
+
path
|
|
794
|
+
}: {
|
|
795
|
+
config: Config;
|
|
796
|
+
kind: string;
|
|
797
|
+
path: string;
|
|
798
|
+
}) => {
|
|
799
|
+
path: string;
|
|
800
|
+
data: {
|
|
801
|
+
props: Record<string, unknown>;
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => string[];
|
|
805
|
+
};
|
|
806
|
+
}, {
|
|
807
|
+
readonly slots: ({
|
|
808
|
+
config,
|
|
809
|
+
path,
|
|
810
|
+
member
|
|
811
|
+
}: ComputedInput) => string[];
|
|
812
|
+
}, false>, "ref"> & {
|
|
813
|
+
ref<const Path extends PathOf<"component">>(path: Path): ComponentReference<ComponentContractOf<Path>>;
|
|
814
|
+
};
|
|
815
|
+
modifiers: EntityClass<_$zod.ZodObject<{
|
|
816
|
+
type: _$zod.ZodEnum<{
|
|
817
|
+
composite: "composite";
|
|
818
|
+
selector: "selector";
|
|
819
|
+
"media-query": "media-query";
|
|
820
|
+
}>;
|
|
821
|
+
value: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodLazy<EntityClass<_$zod.ZodObject<{
|
|
822
|
+
styles: SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>;
|
|
823
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "composite", Record<never, never>, Record<never, never>, false>>]>;
|
|
824
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
825
|
+
type: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
826
|
+
mode: "mode";
|
|
827
|
+
state: "state";
|
|
828
|
+
}>>;
|
|
829
|
+
default: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
830
|
+
__ref: _$zod.ZodString;
|
|
831
|
+
}, _$zod_v4_core0.$strip>>;
|
|
832
|
+
}, _$zod_v4_core0.$strip>, "modifier", Record<never, never>, Record<never, never>, false>;
|
|
833
|
+
styleProps: EntityClass<_$zod.ZodObject<{
|
|
834
|
+
properties: _$zod.ZodArray<_$zod.ZodString>;
|
|
835
|
+
values: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodType<StylePropValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StylePropValue, unknown>>>>;
|
|
836
|
+
responsive: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
837
|
+
classPrefix: _$zod.ZodOptional<_$zod.ZodString>;
|
|
838
|
+
arbitrary: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
839
|
+
negates: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
840
|
+
opacityOf: _$zod.ZodOptional<_$zod.ZodLazy<_$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>>>;
|
|
841
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "style-property", {
|
|
842
|
+
readonly rename: {
|
|
843
|
+
readonly to: _$zod.ZodString;
|
|
844
|
+
};
|
|
845
|
+
readonly create: {
|
|
846
|
+
readonly path: _$zod.ZodString;
|
|
847
|
+
readonly description: `Create a style property \u2014 the prop a component exposes for one CSS effect. \`path\` is the prop's JSX name, camelCase (\`borderRadius\`), never a CSS name; the CSS goes in \`properties\`. \`values\` is a ref to a token GROUP (\`${string}\`), which offers every token in it and keeps the prop in step with modes and edits; \`{ "alias": "brand", "value": ${string} }\` offers one token under a name of the prop's own; a literal (\`"row"\`, \`{ "alias": "full", "value": "9999px" }\`) is for a keyword the system has no token for. Restating a token's value as a literal instead of referencing it is refused.`;
|
|
848
|
+
readonly example: ({
|
|
849
|
+
config
|
|
850
|
+
}: {
|
|
851
|
+
config: Config;
|
|
852
|
+
kind: string;
|
|
853
|
+
path: string;
|
|
854
|
+
}) => {
|
|
855
|
+
path: string;
|
|
856
|
+
data: Record<string, unknown>;
|
|
857
|
+
} | undefined;
|
|
858
|
+
};
|
|
859
|
+
}, Record<never, never>, false>;
|
|
860
|
+
composites: EntityClass<_$zod.ZodObject<{
|
|
861
|
+
styles: SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>;
|
|
862
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "composite", Record<never, never>, Record<never, never>, false>;
|
|
863
|
+
motion: EntityClass<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
864
|
+
runtime: _$zod.ZodLiteral<"css">;
|
|
865
|
+
keyframes: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
866
|
+
duration: _$zod.ZodOptional<_$zod.ZodString>;
|
|
867
|
+
delay: _$zod.ZodOptional<_$zod.ZodString>;
|
|
868
|
+
timingFunction: _$zod.ZodOptional<_$zod.ZodString>;
|
|
869
|
+
iterationCount: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber]>>;
|
|
870
|
+
direction: _$zod.ZodOptional<_$zod.ZodString>;
|
|
871
|
+
fillMode: _$zod.ZodOptional<_$zod.ZodString>;
|
|
872
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
873
|
+
runtime: _$zod.ZodLiteral<"js">;
|
|
874
|
+
initial: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
875
|
+
animate: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
876
|
+
transition: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
877
|
+
whileHover: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
878
|
+
whileTap: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
879
|
+
whileFocus: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
880
|
+
whileDrag: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
881
|
+
drag: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodBoolean, _$zod.ZodString]>>;
|
|
882
|
+
dragConstraints: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodNumber>>;
|
|
883
|
+
dragElastic: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
884
|
+
}, _$zod_v4_core0.$strict>], "runtime">, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "motion", Record<never, never>, Record<never, never>, false>;
|
|
885
|
+
fonts: EntityClass<_$zod.ZodObject<{
|
|
886
|
+
fontFamily: _$zod.ZodString;
|
|
887
|
+
files: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{
|
|
888
|
+
src: _$zod.ZodString;
|
|
889
|
+
format: _$zod.ZodOptional<_$zod.ZodString>;
|
|
890
|
+
weight: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodNumber, _$zod.ZodString]>>;
|
|
891
|
+
style: _$zod.ZodOptional<_$zod.ZodString>;
|
|
892
|
+
postscriptName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
893
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
894
|
+
fallbackStack: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
895
|
+
isVariableFont: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
896
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
897
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
898
|
+
}, _$zod_v4_core0.$strict>, "font", Record<never, never>, Record<never, never>, false>;
|
|
899
|
+
icons: EntityClass<_$zod.ZodObject<{
|
|
900
|
+
categories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
901
|
+
tags: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
902
|
+
codepoint: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
903
|
+
knockoutVariants: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
904
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
905
|
+
module: _$zod.ZodOptional<_$zod.ZodString>;
|
|
906
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
907
|
+
metadata: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
908
|
+
from: EntityClass<_$zod.ZodObject<{
|
|
909
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
910
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
911
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>;
|
|
912
|
+
format: _$zod.ZodEnum<{
|
|
913
|
+
uds: "uds";
|
|
914
|
+
phosphor: "phosphor";
|
|
915
|
+
}>;
|
|
916
|
+
}, _$zod_v4_core0.$strict>>;
|
|
917
|
+
sizes: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodNumber>>;
|
|
918
|
+
variants: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
919
|
+
component: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
920
|
+
__ref: _$zod.ZodString;
|
|
921
|
+
}, _$zod_v4_core0.$strip>>;
|
|
922
|
+
}, _$zod_v4_core0.$strict>, "icon", Record<never, never>, Record<never, never>, false>;
|
|
923
|
+
packages: EntityClass<_$zod.ZodObject<{
|
|
924
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
925
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
926
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>;
|
|
927
|
+
files: EntityClass<_$zod.ZodObject<{
|
|
928
|
+
hash: _$zod.ZodString;
|
|
929
|
+
imports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{
|
|
930
|
+
target: _$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>;
|
|
931
|
+
names: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
932
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
933
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "file", Record<never, never>, {
|
|
934
|
+
readonly binary: ({
|
|
935
|
+
path
|
|
936
|
+
}: ComputedInput) => boolean;
|
|
937
|
+
}, false>;
|
|
938
|
+
guidance: EntityClass<_$zod.ZodObject<{
|
|
939
|
+
text: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
940
|
+
__ref: _$zod.ZodString;
|
|
941
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
942
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
943
|
+
label: _$zod.ZodOptional<_$zod.ZodString>;
|
|
944
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
945
|
+
appliesTo: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodEnum<{
|
|
946
|
+
chat: "chat";
|
|
947
|
+
huddle: "huddle";
|
|
948
|
+
"paint-style": "paint-style";
|
|
949
|
+
"figma-import": "figma-import";
|
|
950
|
+
}>>>;
|
|
951
|
+
}, _$zod_v4_core0.$strict>, "guidance", Record<never, never>, Record<never, never>, false>;
|
|
952
|
+
guidanceStyles: EntityClass<_$zod.ZodObject<{
|
|
953
|
+
text: _$zod.ZodString;
|
|
954
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "guidance-style", Record<never, never>, Record<never, never>, false>;
|
|
955
|
+
canvasRoles: EntityClass<_$zod.ZodObject<{
|
|
956
|
+
entries: _$zod.ZodArray<_$zod.ZodObject<{
|
|
957
|
+
component: _$zod.ZodObject<{
|
|
958
|
+
__ref: _$zod.ZodString;
|
|
959
|
+
}, _$zod_v4_core0.$strip>;
|
|
960
|
+
default: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
961
|
+
defaultProps: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
962
|
+
}, _$zod_v4_core0.$strip>>;
|
|
963
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "canvas-role", {
|
|
964
|
+
readonly create: {
|
|
965
|
+
readonly description: `Register a canvas insert tool for this system. \`path\` is the role, one of ${string}; \`data.entries\` names the components that tool inserts, one marked \`default\`. A system whose roles are unregistered has those canvas tools disabled, so register \`frame\` and \`text\` once a layout primitive and a text primitive exist.`;
|
|
966
|
+
};
|
|
967
|
+
}, Record<never, never>, false>;
|
|
968
|
+
globalStyles: EntityClass<_$zod.ZodObject<{
|
|
969
|
+
selector: _$zod.ZodString;
|
|
970
|
+
declarations: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<string | number | {
|
|
971
|
+
__ref: string;
|
|
972
|
+
} | {
|
|
973
|
+
[key: string]: string | number | {
|
|
974
|
+
__ref: string;
|
|
975
|
+
} | /*elided*/any;
|
|
976
|
+
}, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | {
|
|
977
|
+
__ref: string;
|
|
978
|
+
} | {
|
|
979
|
+
[key: string]: string | number | {
|
|
980
|
+
__ref: string;
|
|
981
|
+
} | /*elided*/any;
|
|
982
|
+
}, unknown>>>;
|
|
983
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "global-style", Record<never, never>, Record<never, never>, false>;
|
|
984
|
+
devices: EntityClass<_$zod.ZodObject<{
|
|
985
|
+
width: _$zod.ZodNumber;
|
|
986
|
+
height: _$zod.ZodNumber;
|
|
987
|
+
name: _$zod.ZodOptional<_$zod.ZodString>;
|
|
988
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "device", Record<never, never>, Record<never, never>, false>;
|
|
989
|
+
linkedSystems: EntityClass<_$zod.ZodObject<{
|
|
990
|
+
configPath: _$zod.ZodOptional<_$zod.ZodString>;
|
|
991
|
+
link: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
992
|
+
options: PinOptionsField;
|
|
993
|
+
package: _$zod.ZodOptional<_$zod.ZodString>;
|
|
994
|
+
systemId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
995
|
+
name: _$zod.ZodOptional<_$zod.ZodString>;
|
|
996
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
997
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "linked-system", {
|
|
998
|
+
readonly link: {
|
|
999
|
+
readonly input: _$zod.ZodObject<{
|
|
1000
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1001
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
1002
|
+
}, _$zod_v4_core0.$strip>;
|
|
1003
|
+
readonly readOnly: false;
|
|
1004
|
+
readonly label: "Link from";
|
|
1005
|
+
readonly description: "Draw entities from a linked system, following the source: `data` names them by accessor — `{ tokens: ['color/brand', 'color'] }` takes an entity and a folder's members, `{ tokens: '*' }` every token, and `'*'` the whole system. What this config already holds at those paths is replaced by theirs, so run `linked-system/link-plan` with the same input first to see what that is. To hold their values as your own instead, `copy`.";
|
|
1006
|
+
readonly scope: "item";
|
|
1007
|
+
readonly approval: "reference-change";
|
|
1008
|
+
readonly title: (entity: string) => string;
|
|
1009
|
+
readonly example: ({
|
|
1010
|
+
config,
|
|
1011
|
+
path
|
|
1012
|
+
}: {
|
|
1013
|
+
config: Config;
|
|
1014
|
+
path: string;
|
|
1015
|
+
}) => Record<string, unknown> | undefined;
|
|
1016
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
1017
|
+
};
|
|
1018
|
+
readonly 'link-plan': {
|
|
1019
|
+
readonly input: _$zod.ZodObject<{
|
|
1020
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1021
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
1022
|
+
}, _$zod_v4_core0.$strip>;
|
|
1023
|
+
readonly readOnly: true;
|
|
1024
|
+
readonly label: "Plan a link";
|
|
1025
|
+
readonly description: "What `link` with the same input replaces — rows of yours deleted so the source shows through, rows held through another pin turned into extensions, and members left alone because they are already here from the same origin. Writes nothing.";
|
|
1026
|
+
readonly scope: "item";
|
|
1027
|
+
readonly title: (entity: string) => string;
|
|
1028
|
+
readonly example: ({
|
|
1029
|
+
config,
|
|
1030
|
+
path
|
|
1031
|
+
}: {
|
|
1032
|
+
config: Config;
|
|
1033
|
+
path: string;
|
|
1034
|
+
}) => Record<string, unknown> | undefined;
|
|
1035
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<LinkPlan, "patches">;
|
|
1036
|
+
};
|
|
1037
|
+
readonly unlink: {
|
|
1038
|
+
readonly input: _$zod.ZodObject<{
|
|
1039
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1040
|
+
data: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
1041
|
+
}, _$zod_v4_core0.$strip>;
|
|
1042
|
+
readonly readOnly: false;
|
|
1043
|
+
readonly label: "Unlink from";
|
|
1044
|
+
readonly description: "Stop following a linked system's entities, in `link`'s shape or everything when `data` is omitted. The rows the declaration minted go with it, and so do the linked rows that point at them, since left linked they would bring them back; nothing of yours moves. A row of yours pointing at one of theirs refuses this — `copy` what is used first, or `break` with `keep: true`. `unlink-plan` names everything that goes.";
|
|
1045
|
+
readonly scope: "item";
|
|
1046
|
+
readonly approval: "reference-change";
|
|
1047
|
+
readonly title: (entity: string) => string;
|
|
1048
|
+
readonly example: ({
|
|
1049
|
+
config,
|
|
1050
|
+
path
|
|
1051
|
+
}: {
|
|
1052
|
+
config: Config;
|
|
1053
|
+
path: string;
|
|
1054
|
+
}) => Record<string, unknown> | undefined;
|
|
1055
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
1056
|
+
};
|
|
1057
|
+
readonly 'unlink-plan': {
|
|
1058
|
+
readonly input: _$zod.ZodObject<{
|
|
1059
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1060
|
+
data: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
1061
|
+
}, _$zod_v4_core0.$strip>;
|
|
1062
|
+
readonly readOnly: true;
|
|
1063
|
+
readonly label: "Plan an unlink";
|
|
1064
|
+
readonly description: "What `unlink` with the same input removes — the minted rows the narrower declaration no longer reaches, with the linked rows taken along because they point at them named in `cascade` — and why the config would refuse it. Writes nothing.";
|
|
1065
|
+
readonly scope: "item";
|
|
1066
|
+
readonly title: (entity: string) => string;
|
|
1067
|
+
readonly example: ({
|
|
1068
|
+
config,
|
|
1069
|
+
path
|
|
1070
|
+
}: {
|
|
1071
|
+
config: Config;
|
|
1072
|
+
path: string;
|
|
1073
|
+
}) => Record<string, unknown> | undefined;
|
|
1074
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<UnlinkPlan, "patches">;
|
|
1075
|
+
};
|
|
1076
|
+
readonly break: {
|
|
1077
|
+
readonly input: _$zod.ZodObject<{
|
|
1078
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1079
|
+
keep: _$zod.ZodBoolean;
|
|
1080
|
+
}, _$zod_v4_core0.$strip>;
|
|
1081
|
+
readonly readOnly: false;
|
|
1082
|
+
readonly label: "Break link";
|
|
1083
|
+
readonly description: "Remove a linked system. With `keep: true` every value drawn through it is copied in as your own first, and a row of yours that pointed through the pin points at the copies; with `keep: false` the rows it minted go, and a row of yours still pointing through it refuses the break. Run `linked-system/break-plan` first to see every row it reaches.";
|
|
1084
|
+
readonly scope: "item";
|
|
1085
|
+
readonly approval: "destructive";
|
|
1086
|
+
readonly title: (entity: string) => string;
|
|
1087
|
+
readonly example: ({
|
|
1088
|
+
config,
|
|
1089
|
+
path
|
|
1090
|
+
}: {
|
|
1091
|
+
config: Config;
|
|
1092
|
+
path: string;
|
|
1093
|
+
}) => Record<string, unknown> | undefined;
|
|
1094
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
1095
|
+
};
|
|
1096
|
+
readonly 'break-plan': {
|
|
1097
|
+
readonly input: _$zod.ZodObject<{
|
|
1098
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1099
|
+
keep: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1100
|
+
data: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
1101
|
+
}, _$zod_v4_core0.$strip>;
|
|
1102
|
+
readonly readOnly: true;
|
|
1103
|
+
readonly label: "Plan a break";
|
|
1104
|
+
readonly description: "Every row a break reaches, and why the config would refuse it. `keep` plans `break` with the same input; `data` in `copy`'s shape plans detaching those entities alone — the rows the copy lands, the rows of yours it points at the copies, and the rows still linked that reference what moves. Writes nothing.";
|
|
1105
|
+
readonly scope: "item";
|
|
1106
|
+
readonly title: (entity: string) => string;
|
|
1107
|
+
readonly example: ({
|
|
1108
|
+
config,
|
|
1109
|
+
path
|
|
1110
|
+
}: {
|
|
1111
|
+
config: Config;
|
|
1112
|
+
path: string;
|
|
1113
|
+
}) => Record<string, unknown> | undefined;
|
|
1114
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<BreakPlan, "patches">;
|
|
1115
|
+
};
|
|
1116
|
+
readonly rows: {
|
|
1117
|
+
readonly input: _$zod.ZodObject<{
|
|
1118
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1119
|
+
}, _$zod_v4_core0.$strip>;
|
|
1120
|
+
readonly readOnly: true;
|
|
1121
|
+
readonly label: "Source rows";
|
|
1122
|
+
readonly description: "Every top-level folder and item the linked system offers, read against this config: whether every member is linked through this pin, how many rows of yours a `link` would replace, and how many members are already here from the source's own origin. Needs the source attached; empty otherwise.";
|
|
1123
|
+
readonly scope: "item";
|
|
1124
|
+
readonly title: (entity: string) => string;
|
|
1125
|
+
readonly example: ({
|
|
1126
|
+
config,
|
|
1127
|
+
path
|
|
1128
|
+
}: {
|
|
1129
|
+
config: Config;
|
|
1130
|
+
path: string;
|
|
1131
|
+
}) => Record<string, unknown> | undefined;
|
|
1132
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => SourceRowState[];
|
|
1133
|
+
};
|
|
1134
|
+
readonly copy: {
|
|
1135
|
+
readonly input: _$zod.ZodObject<{
|
|
1136
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1137
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
1138
|
+
onConflict: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1139
|
+
replace: "replace";
|
|
1140
|
+
skip: "skip";
|
|
1141
|
+
}>>;
|
|
1142
|
+
}, _$zod_v4_core0.$strip>;
|
|
1143
|
+
readonly readOnly: false;
|
|
1144
|
+
readonly label: "Copy from";
|
|
1145
|
+
readonly description: "Take entities from a linked system as your own, holding the values the source has now and no longer following it. `data` names them by accessor: `{ tokens: ['color/brand', 'color'] }` takes an entity and a folder's members, `{ tokens: '*' }` every token, and `'*'` the whole system. What a copied entity points at comes with it, so run `linked-system/copy-plan` with the same input first and see everything that lands. To use theirs without owning it, declare it in the pin's `link` instead. A whole-system copy is thousands of rows, and on a repo-backed system each one is written into `uds.config.ts`.";
|
|
1146
|
+
readonly scope: "item";
|
|
1147
|
+
readonly approval: "reference-change";
|
|
1148
|
+
readonly title: (entity: string) => string;
|
|
1149
|
+
readonly example: ({
|
|
1150
|
+
config,
|
|
1151
|
+
path
|
|
1152
|
+
}: {
|
|
1153
|
+
config: Config;
|
|
1154
|
+
path: string;
|
|
1155
|
+
}) => Record<string, unknown> | undefined;
|
|
1156
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
1157
|
+
};
|
|
1158
|
+
readonly 'copy-plan': {
|
|
1159
|
+
readonly input: _$zod.ZodObject<{
|
|
1160
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1161
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
1162
|
+
onConflict: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1163
|
+
replace: "replace";
|
|
1164
|
+
skip: "skip";
|
|
1165
|
+
}>>;
|
|
1166
|
+
}, _$zod_v4_core0.$strip>;
|
|
1167
|
+
readonly readOnly: true;
|
|
1168
|
+
readonly label: "Plan a copy";
|
|
1169
|
+
readonly description: "See what copying would bring before you do it — what lands as yours, what comes along because it is pointed at, and what you already hold that the copies will point at. Takes exactly the same input as `copy` and writes nothing. Run it before `copy`, and always before a `'*'` copy.";
|
|
1170
|
+
readonly scope: "item";
|
|
1171
|
+
readonly title: (entity: string) => string;
|
|
1172
|
+
readonly example: ({
|
|
1173
|
+
config,
|
|
1174
|
+
path
|
|
1175
|
+
}: {
|
|
1176
|
+
config: Config;
|
|
1177
|
+
path: string;
|
|
1178
|
+
}) => Record<string, unknown> | undefined;
|
|
1179
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<CopyPlan, "patches">;
|
|
1180
|
+
};
|
|
1181
|
+
}, {
|
|
1182
|
+
readonly displayName: ({
|
|
1183
|
+
member,
|
|
1184
|
+
path
|
|
1185
|
+
}: ComputedInput) => string;
|
|
1186
|
+
}, false>;
|
|
1187
|
+
}, {
|
|
1188
|
+
operations: DerivedEntityClass<_$zod.ZodObject<{
|
|
1189
|
+
kind: _$zod.ZodString;
|
|
1190
|
+
verb: _$zod.ZodString;
|
|
1191
|
+
readOnly: _$zod.ZodBoolean;
|
|
1192
|
+
label: _$zod.ZodString;
|
|
1193
|
+
description: _$zod.ZodString;
|
|
1194
|
+
scope: _$zod.ZodString;
|
|
1195
|
+
creates: _$zod.ZodBoolean;
|
|
1196
|
+
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1197
|
+
destructive: "destructive";
|
|
1198
|
+
"reference-change": "reference-change";
|
|
1199
|
+
}>>;
|
|
1200
|
+
}, _$zod_v4_core0.$strip>, {
|
|
1201
|
+
inputSchema: ({
|
|
1202
|
+
member: op,
|
|
1203
|
+
config
|
|
1204
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1205
|
+
member: {
|
|
1206
|
+
kind: string;
|
|
1207
|
+
verb: string;
|
|
1208
|
+
readOnly: boolean;
|
|
1209
|
+
label: string;
|
|
1210
|
+
description: string;
|
|
1211
|
+
scope: string;
|
|
1212
|
+
creates: boolean;
|
|
1213
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1214
|
+
};
|
|
1215
|
+
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
1216
|
+
execute: ({
|
|
1217
|
+
member: op,
|
|
1218
|
+
config: declaring
|
|
1219
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1220
|
+
member: {
|
|
1221
|
+
kind: string;
|
|
1222
|
+
verb: string;
|
|
1223
|
+
readOnly: boolean;
|
|
1224
|
+
label: string;
|
|
1225
|
+
description: string;
|
|
1226
|
+
scope: string;
|
|
1227
|
+
creates: boolean;
|
|
1228
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1229
|
+
};
|
|
1230
|
+
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
1231
|
+
field: ({
|
|
1232
|
+
member: op
|
|
1233
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1234
|
+
member: {
|
|
1235
|
+
kind: string;
|
|
1236
|
+
verb: string;
|
|
1237
|
+
readOnly: boolean;
|
|
1238
|
+
label: string;
|
|
1239
|
+
description: string;
|
|
1240
|
+
scope: string;
|
|
1241
|
+
creates: boolean;
|
|
1242
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1243
|
+
};
|
|
1244
|
+
}) => string | undefined;
|
|
1245
|
+
title: ({
|
|
1246
|
+
member: op,
|
|
1247
|
+
config
|
|
1248
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1249
|
+
member: {
|
|
1250
|
+
kind: string;
|
|
1251
|
+
verb: string;
|
|
1252
|
+
readOnly: boolean;
|
|
1253
|
+
label: string;
|
|
1254
|
+
description: string;
|
|
1255
|
+
scope: string;
|
|
1256
|
+
creates: boolean;
|
|
1257
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1258
|
+
};
|
|
1259
|
+
}) => ((entity: string) => string) | undefined;
|
|
1260
|
+
example: ({
|
|
1261
|
+
member: op,
|
|
1262
|
+
config
|
|
1263
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1264
|
+
member: {
|
|
1265
|
+
kind: string;
|
|
1266
|
+
verb: string;
|
|
1267
|
+
readOnly: boolean;
|
|
1268
|
+
label: string;
|
|
1269
|
+
description: string;
|
|
1270
|
+
scope: string;
|
|
1271
|
+
creates: boolean;
|
|
1272
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1273
|
+
};
|
|
1274
|
+
}) => Record<string, unknown> | undefined;
|
|
1275
|
+
}>;
|
|
1276
|
+
tools: DerivedEntityClass<_$zod.ZodObject<{
|
|
1277
|
+
operation: DerivedEntityClass<_$zod.ZodObject<{
|
|
1278
|
+
kind: _$zod.ZodString;
|
|
1279
|
+
verb: _$zod.ZodString;
|
|
1280
|
+
readOnly: _$zod.ZodBoolean;
|
|
1281
|
+
label: _$zod.ZodString;
|
|
1282
|
+
description: _$zod.ZodString;
|
|
1283
|
+
scope: _$zod.ZodString;
|
|
1284
|
+
creates: _$zod.ZodBoolean;
|
|
1285
|
+
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1286
|
+
destructive: "destructive";
|
|
1287
|
+
"reference-change": "reference-change";
|
|
1288
|
+
}>>;
|
|
1289
|
+
}, _$zod_v4_core0.$strip>, {
|
|
1290
|
+
inputSchema: ({
|
|
1291
|
+
member: op,
|
|
1292
|
+
config
|
|
1293
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1294
|
+
member: {
|
|
1295
|
+
kind: string;
|
|
1296
|
+
verb: string;
|
|
1297
|
+
readOnly: boolean;
|
|
1298
|
+
label: string;
|
|
1299
|
+
description: string;
|
|
1300
|
+
scope: string;
|
|
1301
|
+
creates: boolean;
|
|
1302
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1303
|
+
};
|
|
1304
|
+
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
1305
|
+
execute: ({
|
|
1306
|
+
member: op,
|
|
1307
|
+
config: declaring
|
|
1308
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1309
|
+
member: {
|
|
1310
|
+
kind: string;
|
|
1311
|
+
verb: string;
|
|
1312
|
+
readOnly: boolean;
|
|
1313
|
+
label: string;
|
|
1314
|
+
description: string;
|
|
1315
|
+
scope: string;
|
|
1316
|
+
creates: boolean;
|
|
1317
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1318
|
+
};
|
|
1319
|
+
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
1320
|
+
field: ({
|
|
1321
|
+
member: op
|
|
1322
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1323
|
+
member: {
|
|
1324
|
+
kind: string;
|
|
1325
|
+
verb: string;
|
|
1326
|
+
readOnly: boolean;
|
|
1327
|
+
label: string;
|
|
1328
|
+
description: string;
|
|
1329
|
+
scope: string;
|
|
1330
|
+
creates: boolean;
|
|
1331
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1332
|
+
};
|
|
1333
|
+
}) => string | undefined;
|
|
1334
|
+
title: ({
|
|
1335
|
+
member: op,
|
|
1336
|
+
config
|
|
1337
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1338
|
+
member: {
|
|
1339
|
+
kind: string;
|
|
1340
|
+
verb: string;
|
|
1341
|
+
readOnly: boolean;
|
|
1342
|
+
label: string;
|
|
1343
|
+
description: string;
|
|
1344
|
+
scope: string;
|
|
1345
|
+
creates: boolean;
|
|
1346
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1347
|
+
};
|
|
1348
|
+
}) => ((entity: string) => string) | undefined;
|
|
1349
|
+
example: ({
|
|
1350
|
+
member: op,
|
|
1351
|
+
config
|
|
1352
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1353
|
+
member: {
|
|
1354
|
+
kind: string;
|
|
1355
|
+
verb: string;
|
|
1356
|
+
readOnly: boolean;
|
|
1357
|
+
label: string;
|
|
1358
|
+
description: string;
|
|
1359
|
+
scope: string;
|
|
1360
|
+
creates: boolean;
|
|
1361
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
1362
|
+
};
|
|
1363
|
+
}) => Record<string, unknown> | undefined;
|
|
1364
|
+
}>;
|
|
1365
|
+
name: _$zod.ZodString;
|
|
1366
|
+
description: _$zod.ZodString;
|
|
1367
|
+
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
1368
|
+
}, _$zod_v4_core0.$strip>, {
|
|
1369
|
+
kind: (input: ComputedInput) => string | undefined;
|
|
1370
|
+
verb: (input: ComputedInput) => string | undefined;
|
|
1371
|
+
readOnly: ({
|
|
1372
|
+
member,
|
|
1373
|
+
config
|
|
1374
|
+
}: Omit<ComputedInput, "member"> & {
|
|
1375
|
+
member: {
|
|
1376
|
+
operation: {
|
|
1377
|
+
__ref: string;
|
|
1378
|
+
};
|
|
1379
|
+
name: string;
|
|
1380
|
+
description: string;
|
|
1381
|
+
enabled: boolean;
|
|
1382
|
+
};
|
|
1383
|
+
}) => boolean;
|
|
1384
|
+
inputSchema: (input: ComputedInput) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
1385
|
+
execute: (input: ComputedInput) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
1386
|
+
action: (input: ComputedInput) => string | undefined;
|
|
1387
|
+
field: (input: ComputedInput) => string | undefined;
|
|
1388
|
+
scope: (input: ComputedInput) => string | undefined;
|
|
1389
|
+
approval: (input: ComputedInput) => "destructive" | "reference-change" | undefined;
|
|
1390
|
+
label: (input: ComputedInput) => string | undefined;
|
|
1391
|
+
shortLabel: (input: ComputedInput) => string | undefined;
|
|
1392
|
+
example: (input: ComputedInput) => Record<string, unknown> | undefined;
|
|
1393
|
+
}>;
|
|
1394
|
+
}, {
|
|
1395
|
+
linkedSystems: () => ConfigClass<{
|
|
1396
|
+
settings: EntityClass<_$zod.ZodObject<{
|
|
1397
|
+
system: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1398
|
+
id: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1399
|
+
}, _$zod_v4_core0.$strict>>;
|
|
1400
|
+
build: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1401
|
+
inputDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1402
|
+
outDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1403
|
+
registryDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1404
|
+
}, _$zod_v4_core0.$strict>>;
|
|
1405
|
+
css: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1406
|
+
prefix: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1407
|
+
classNames: _$zod.ZodString;
|
|
1408
|
+
variables: _$zod.ZodString;
|
|
1409
|
+
}, _$zod_v4_core0.$strict>]>>;
|
|
1410
|
+
scope: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1411
|
+
preflight: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1412
|
+
safelist: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1413
|
+
}, _$zod_v4_core0.$strict>>;
|
|
1414
|
+
playground: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1415
|
+
pagesDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1416
|
+
port: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1417
|
+
}, _$zod_v4_core0.$strict>>;
|
|
1418
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "settings", Record<never, never>, Record<never, never>, true>;
|
|
1419
|
+
tokens: EntityClass<_$zod.ZodObject<{
|
|
1420
|
+
value: _$zod.ZodType<string | number | Ref | DerivedColor | Gradient, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | Ref | DerivedColor | Gradient, unknown>>;
|
|
1421
|
+
type: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1422
|
+
overrides: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{
|
|
1423
|
+
on: _$zod.ZodType<OverrideCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<OverrideCondition, unknown>>;
|
|
1424
|
+
value: _$zod.ZodType<string | number | Ref | DerivedColor | Gradient, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | Ref | DerivedColor | Gradient, unknown>>;
|
|
1425
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
1426
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
1427
|
+
cssPrefix: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1428
|
+
}, _$zod_v4_core0.$strip>, "token", {
|
|
1429
|
+
readonly create: {
|
|
1430
|
+
readonly description: `Create a token at \`<group>/<name>\` \u2014 \`data.value\` is the CSS value. The first path segment is its group, and a style property takes a whole group as one ref (\`${string}\`), so put the tokens one prop should offer in one group rather than listing values on the prop.`;
|
|
1431
|
+
};
|
|
1432
|
+
}, Record<never, never>, false>;
|
|
1433
|
+
components: Omit<EntityClass<_$zod.ZodObject<{
|
|
1434
|
+
layers: SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodLazy<_$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>>, EntityClass<_$zod.ZodObject<{
|
|
1435
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1436
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
1437
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>]>>;
|
|
1438
|
+
props: _$zod.ZodOptional<SubEntityClass<_$zod.ZodNullable<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
1439
|
+
type: _$zod.ZodLiteral<"slot">;
|
|
1440
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1441
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
1442
|
+
__ref: _$zod.ZodString;
|
|
1443
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1444
|
+
__ref: _$zod.ZodString;
|
|
1445
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
1446
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1447
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1448
|
+
type: _$zod.ZodLiteral<"variant">;
|
|
1449
|
+
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
1450
|
+
[k: string]: {};
|
|
1451
|
+
}, string[]>>, _$zod.ZodObject<{
|
|
1452
|
+
__ref: _$zod.ZodString;
|
|
1453
|
+
}, _$zod_v4_core0.$strip>, SubEntityClass<_$zod.ZodObject<{
|
|
1454
|
+
label: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1455
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1456
|
+
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1457
|
+
}, _$zod_v4_core0.$strict>>]>;
|
|
1458
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1459
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
1460
|
+
type: _$zod.ZodLiteral<"forward">;
|
|
1461
|
+
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1462
|
+
__ref: _$zod.ZodString;
|
|
1463
|
+
}, _$zod_v4_core0.$strip>]>;
|
|
1464
|
+
into: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1465
|
+
__ref: _$zod.ZodString;
|
|
1466
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
1467
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
1468
|
+
__ref: _$zod.ZodString;
|
|
1469
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1470
|
+
__ref: _$zod.ZodString;
|
|
1471
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
1472
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1473
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1474
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1475
|
+
type: "forward";
|
|
1476
|
+
target: string | {
|
|
1477
|
+
__ref: string;
|
|
1478
|
+
};
|
|
1479
|
+
into?: string | {
|
|
1480
|
+
__ref: string;
|
|
1481
|
+
} | undefined;
|
|
1482
|
+
accepts?: {
|
|
1483
|
+
__ref: string;
|
|
1484
|
+
} | {
|
|
1485
|
+
__ref: string;
|
|
1486
|
+
}[] | undefined;
|
|
1487
|
+
text?: boolean | undefined;
|
|
1488
|
+
required?: boolean | undefined;
|
|
1489
|
+
}, {
|
|
1490
|
+
type: "forward";
|
|
1491
|
+
target: string | {
|
|
1492
|
+
__ref: string;
|
|
1493
|
+
};
|
|
1494
|
+
into?: string | {
|
|
1495
|
+
__ref: string;
|
|
1496
|
+
} | undefined;
|
|
1497
|
+
accepts?: {
|
|
1498
|
+
__ref: string;
|
|
1499
|
+
} | {
|
|
1500
|
+
__ref: string;
|
|
1501
|
+
}[] | undefined;
|
|
1502
|
+
text?: boolean | undefined;
|
|
1503
|
+
required?: boolean | undefined;
|
|
1504
|
+
}>>, _$zod.ZodObject<{
|
|
1505
|
+
type: _$zod.ZodLiteral<"styleProperty">;
|
|
1506
|
+
value: _$zod.ZodObject<{
|
|
1507
|
+
__ref: _$zod.ZodString;
|
|
1508
|
+
}, _$zod_v4_core0.$strip>;
|
|
1509
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1510
|
+
type: _$zod.ZodLiteral<"composite">;
|
|
1511
|
+
value: _$zod.ZodObject<{
|
|
1512
|
+
__ref: _$zod.ZodString;
|
|
1513
|
+
}, _$zod_v4_core0.$strip>;
|
|
1514
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1515
|
+
type: _$zod.ZodLiteral<"motion">;
|
|
1516
|
+
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
1517
|
+
__ref: _$zod.ZodString;
|
|
1518
|
+
}, _$zod_v4_core0.$strip>>;
|
|
1519
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1520
|
+
type: _$zod.ZodLiteral<"string">;
|
|
1521
|
+
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1522
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1523
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1524
|
+
type: _$zod.ZodLiteral<"number">;
|
|
1525
|
+
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1526
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1527
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1528
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
1529
|
+
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1530
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1531
|
+
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
1532
|
+
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1533
|
+
__ref: _$zod.ZodString;
|
|
1534
|
+
}, _$zod_v4_core0.$strip>>]>>>;
|
|
1535
|
+
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
1536
|
+
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
1537
|
+
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
1538
|
+
previewProps: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
1539
|
+
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1540
|
+
__ref: _$zod.ZodString;
|
|
1541
|
+
}, _$zod_v4_core0.$strip>>;
|
|
1542
|
+
export: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1543
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1544
|
+
icon: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1545
|
+
}, _$zod_v4_core0.$strip>, "component", {
|
|
1546
|
+
readonly create: {
|
|
1547
|
+
readonly data: _$zod.ZodObject<{
|
|
1548
|
+
layers: SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodLazy<_$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>>, EntityClass<_$zod.ZodObject<{
|
|
1549
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1550
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
1551
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>]>>;
|
|
1552
|
+
props: _$zod.ZodOptional<SubEntityClass<_$zod.ZodNullable<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
1553
|
+
type: _$zod.ZodLiteral<"slot">;
|
|
1554
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1555
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
1556
|
+
__ref: _$zod.ZodString;
|
|
1557
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1558
|
+
__ref: _$zod.ZodString;
|
|
1559
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
1560
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1561
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1562
|
+
type: _$zod.ZodLiteral<"variant">;
|
|
1563
|
+
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
1564
|
+
[k: string]: {};
|
|
1565
|
+
}, string[]>>, _$zod.ZodObject<{
|
|
1566
|
+
__ref: _$zod.ZodString;
|
|
1567
|
+
}, _$zod_v4_core0.$strip>, SubEntityClass<_$zod.ZodObject<{
|
|
1568
|
+
label: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1569
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1570
|
+
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1571
|
+
}, _$zod_v4_core0.$strict>>]>;
|
|
1572
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1573
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
1574
|
+
type: _$zod.ZodLiteral<"forward">;
|
|
1575
|
+
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1576
|
+
__ref: _$zod.ZodString;
|
|
1577
|
+
}, _$zod_v4_core0.$strip>]>;
|
|
1578
|
+
into: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1579
|
+
__ref: _$zod.ZodString;
|
|
1580
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
1581
|
+
accepts: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodObject<{
|
|
1582
|
+
__ref: _$zod.ZodString;
|
|
1583
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1584
|
+
__ref: _$zod.ZodString;
|
|
1585
|
+
}, _$zod_v4_core0.$strip>>]>>;
|
|
1586
|
+
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1587
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1588
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1589
|
+
type: "forward";
|
|
1590
|
+
target: string | {
|
|
1591
|
+
__ref: string;
|
|
1592
|
+
};
|
|
1593
|
+
into?: string | {
|
|
1594
|
+
__ref: string;
|
|
1595
|
+
} | undefined;
|
|
1596
|
+
accepts?: {
|
|
1597
|
+
__ref: string;
|
|
1598
|
+
} | {
|
|
1599
|
+
__ref: string;
|
|
1600
|
+
}[] | undefined;
|
|
1601
|
+
text?: boolean | undefined;
|
|
1602
|
+
required?: boolean | undefined;
|
|
1603
|
+
}, {
|
|
1604
|
+
type: "forward";
|
|
1605
|
+
target: string | {
|
|
1606
|
+
__ref: string;
|
|
1607
|
+
};
|
|
1608
|
+
into?: string | {
|
|
1609
|
+
__ref: string;
|
|
1610
|
+
} | undefined;
|
|
1611
|
+
accepts?: {
|
|
1612
|
+
__ref: string;
|
|
1613
|
+
} | {
|
|
1614
|
+
__ref: string;
|
|
1615
|
+
}[] | undefined;
|
|
1616
|
+
text?: boolean | undefined;
|
|
1617
|
+
required?: boolean | undefined;
|
|
1618
|
+
}>>, _$zod.ZodObject<{
|
|
1619
|
+
type: _$zod.ZodLiteral<"styleProperty">;
|
|
1620
|
+
value: _$zod.ZodObject<{
|
|
1621
|
+
__ref: _$zod.ZodString;
|
|
1622
|
+
}, _$zod_v4_core0.$strip>;
|
|
1623
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1624
|
+
type: _$zod.ZodLiteral<"composite">;
|
|
1625
|
+
value: _$zod.ZodObject<{
|
|
1626
|
+
__ref: _$zod.ZodString;
|
|
1627
|
+
}, _$zod_v4_core0.$strip>;
|
|
1628
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1629
|
+
type: _$zod.ZodLiteral<"motion">;
|
|
1630
|
+
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
1631
|
+
__ref: _$zod.ZodString;
|
|
1632
|
+
}, _$zod_v4_core0.$strip>>;
|
|
1633
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1634
|
+
type: _$zod.ZodLiteral<"string">;
|
|
1635
|
+
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1636
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1637
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1638
|
+
type: _$zod.ZodLiteral<"number">;
|
|
1639
|
+
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1640
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1641
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1642
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
1643
|
+
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1644
|
+
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1645
|
+
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
1646
|
+
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1647
|
+
__ref: _$zod.ZodString;
|
|
1648
|
+
}, _$zod_v4_core0.$strip>>]>>>;
|
|
1649
|
+
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
1650
|
+
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
1651
|
+
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
1652
|
+
previewProps: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
1653
|
+
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1654
|
+
__ref: _$zod.ZodString;
|
|
1655
|
+
}, _$zod_v4_core0.$strip>>;
|
|
1656
|
+
export: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1657
|
+
}, _$zod_v4_core0.$strict>;
|
|
1658
|
+
readonly description: "Create a component at a new qualified `path`. When its complete body is known, include all layers, anatomy, props, defaults, and styles in this one operation. `data.layers` maps each stable layer name to the element it renders and must include `root` — a tag for a primitive (`{ \"layers\": { \"root\": \"div\" } }`), and for anything built on top, a ref to a primitive (`{ \"root\": { \"__ref\": \"component:Box\" }, \"label\": { \"__ref\": \"component:Text\" } }`), which is what lets the layer take that primitive's style props. A primitive exposes style props as `{ \"type\": \"styleProperty\", \"value\": { \"__ref\": \"style-property:bg\" } }` and declares `children: { \"type\": \"slot\", \"text\": true }` when it holds content — without the slot, nothing nested inside it renders. A composed component exposes a layer's props at its own top level through `forwards`, keyed by layer: `{ \"forwards\": { \"root\": \"*\" } }` passes every prop the root's element takes (so `<Button width=\"full\">` reaches the root's `width`), and a list of member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`, each naming the component that declares the prop) passes only those. A prop a layer already exposes is forwarded, never redeclared in `props`; a `props` entry of `{ \"type\": \"forward\" }` is the reverse route, one of this component's props into a layer's. `anatomy` is the tree the build would read off a render: each node renders a layer (`{ \"__ref\": \"layer:<name>\" }`), an intrinsic tag, or `Slot` (`{ \"element\": \"Slot\", \"props\": { \"name\": \"children\" } }`, where a slot prop's content lands — but a declared slot fills `root` by default, so a primitive still declares its `children` slot prop yet needs no `Slot` node or `children` entry for it, and a `Slot` node is only for landing that content in a nested layer); `children` lists sibling node keys from the `root` node, never a prop name; `text` is a fixed string; `visible` is a condition on a prop (`{ \"$state\": \"<prop>\" }`, or with `eq`); content shown in a nested layer is a route, `children: { \"type\": \"forward\", \"target\": \"label/children\" }`. `$state` appears only in `visible` and in an `element` a prop chooses, never as a prop value. A glyph is a node of its own, `{ \"element\": { \"__ref\": \"icon:<library>/<Name>\" } }`, listed in the `children` of the layer node that holds it, never a prop value. Text a prop supplies to a text layer is never a node either: declare the prop `{ \"type\": \"forward\", \"target\": \"<layer>/children\" }` and the layer shows it; a `Slot` node goes only under a layer that takes nodes. A style rule is `\"styles\": { \"*\": { \"when\": null, \"layers\": { \"root\": { \"bg\": \"surface\" } } } }`, keyed by a name, with each layer's bag under `layers`. A composed component carries its own styles: give it an unconditional (`\"*\"`) rule that lays out and surfaces it through the system's style properties — spacing, alignment and gap on the container, a background and color where it has one — rather than leaning on the bare primitives, which paint flat. Style a layer only with the style props the primitive it renders exposes, set to the values those props accept: `component/get` on the primitive lists both, so read it and choose from that rather than reaching for a CSS name or value the system has no style property for. Set `previewProps` (or `defaultProps`) so the component previews with content; a root that takes children renders empty otherwise. A style rule's layer bag is keyed by style-prop name (`fontWeight`, `color`), never by CSS property name, and each value is one of that prop's values.";
|
|
1659
|
+
readonly example: ({
|
|
1660
|
+
config
|
|
1661
|
+
}: {
|
|
1662
|
+
config: Config;
|
|
1663
|
+
kind: string;
|
|
1664
|
+
path: string;
|
|
1665
|
+
}) => {
|
|
1666
|
+
path: string;
|
|
1667
|
+
data: Record<string, unknown>;
|
|
1668
|
+
};
|
|
1669
|
+
};
|
|
1670
|
+
readonly 'sub-create/anatomy': {
|
|
1671
|
+
readonly description: "Add one anatomy node (`key` + `data`) to a component. In a batch, create child nodes before a parent whose `children` or `slots` names them; each referenced node must already exist when this operation runs.";
|
|
1672
|
+
};
|
|
1673
|
+
readonly 'sub-create/props': {
|
|
1674
|
+
readonly description: "Declare a prop this component owns (`key` + `data`): a `variant`, a `slot`, a `styleProperty` or `composite` on a primitive, a `forward` routing this prop into a layer's (`{ \"type\": \"forward\", \"target\": \"<layer>/<prop>\" }`), or `null` to drop a forwarded prop from the surface. A prop one of its layers already exposes — `width` on a root that renders `Box` — is not declared here; `sub-create/forwards` exposes it at the top level.";
|
|
1675
|
+
};
|
|
1676
|
+
readonly 'sub-create/forwards': {
|
|
1677
|
+
readonly description: "Expose a layer's props at this component's top level. `key` is one of the component's own layer names; `data` is `\"*\"` for every prop that layer's element takes, or a list of component prop member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`) for a selection, each naming the component that declares the prop — `Button` forwarding `width` from a `Pressable` root names `Box`, where `Pressable` takes it from. This is how `<Button width=\"full\">` reaches the root's `width` with no `width` entry in `props`; a prop the layer already exposes is forwarded, never redeclared. Two entries may not offer the same prop, and removing one forwarded prop is a `null` tombstone under `props`.";
|
|
1678
|
+
readonly example: ({
|
|
1679
|
+
config
|
|
1680
|
+
}: {
|
|
1681
|
+
config: Config;
|
|
1682
|
+
kind: string;
|
|
1683
|
+
path: string;
|
|
1684
|
+
}) => {
|
|
1685
|
+
path: string;
|
|
1686
|
+
key: string;
|
|
1687
|
+
data: "*";
|
|
1688
|
+
} | undefined;
|
|
1689
|
+
};
|
|
1690
|
+
readonly 'sub-upsert/forwards': {
|
|
1691
|
+
readonly description: "Set what one layer forwards, added when absent and replaced whole when present. Expose a layer's props at this component's top level. `key` is one of the component's own layer names; `data` is `\"*\"` for every prop that layer's element takes, or a list of component prop member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`) for a selection, each naming the component that declares the prop — `Button` forwarding `width` from a `Pressable` root names `Box`, where `Pressable` takes it from. This is how `<Button width=\"full\">` reaches the root's `width` with no `width` entry in `props`; a prop the layer already exposes is forwarded, never redeclared. Two entries may not offer the same prop, and removing one forwarded prop is a `null` tombstone under `props`.";
|
|
1692
|
+
};
|
|
1693
|
+
readonly 'sub-update/forwards': {
|
|
1694
|
+
readonly description: "Replace what one layer forwards: the member is `'*'` or a list, so `data` is the whole new value. Expose a layer's props at this component's top level. `key` is one of the component's own layer names; `data` is `\"*\"` for every prop that layer's element takes, or a list of component prop member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`) for a selection, each naming the component that declares the prop — `Button` forwarding `width` from a `Pressable` root names `Box`, where `Pressable` takes it from. This is how `<Button width=\"full\">` reaches the root's `width` with no `width` entry in `props`; a prop the layer already exposes is forwarded, never redeclared. Two entries may not offer the same prop, and removing one forwarded prop is a `null` tombstone under `props`.";
|
|
1695
|
+
};
|
|
1696
|
+
readonly 'element-insert': {
|
|
1697
|
+
readonly input: _$zod.ZodObject<{
|
|
1698
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
1699
|
+
key: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1700
|
+
data: _$zod.ZodPrefault<_$zod.ZodObject<{
|
|
1701
|
+
element: _$zod.ZodDefault<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1702
|
+
__ref: _$zod.ZodString;
|
|
1703
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
1704
|
+
parent: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1705
|
+
index: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1706
|
+
props: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
1707
|
+
slotProp: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1708
|
+
visible: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1709
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1710
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1711
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1712
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1713
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1714
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1715
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1716
|
+
$state: _$zod.ZodString;
|
|
1717
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1718
|
+
$state: string;
|
|
1719
|
+
not?: true | undefined;
|
|
1720
|
+
eq?: unknown;
|
|
1721
|
+
neq?: unknown;
|
|
1722
|
+
gt?: number | undefined;
|
|
1723
|
+
gte?: number | undefined;
|
|
1724
|
+
lt?: number | undefined;
|
|
1725
|
+
lte?: number | undefined;
|
|
1726
|
+
}, {
|
|
1727
|
+
$state: string;
|
|
1728
|
+
not?: true | undefined;
|
|
1729
|
+
eq?: unknown;
|
|
1730
|
+
neq?: unknown;
|
|
1731
|
+
gt?: number | undefined;
|
|
1732
|
+
gte?: number | undefined;
|
|
1733
|
+
lt?: number | undefined;
|
|
1734
|
+
lte?: number | undefined;
|
|
1735
|
+
}>>, _$zod.ZodObject<{
|
|
1736
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1737
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1738
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1739
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1740
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1741
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1742
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1743
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1744
|
+
$state: _$zod.ZodString;
|
|
1745
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1746
|
+
$state: string;
|
|
1747
|
+
not?: true | undefined;
|
|
1748
|
+
eq?: unknown;
|
|
1749
|
+
neq?: unknown;
|
|
1750
|
+
gt?: number | undefined;
|
|
1751
|
+
gte?: number | undefined;
|
|
1752
|
+
lt?: number | undefined;
|
|
1753
|
+
lte?: number | undefined;
|
|
1754
|
+
}, {
|
|
1755
|
+
$state: string;
|
|
1756
|
+
not?: true | undefined;
|
|
1757
|
+
eq?: unknown;
|
|
1758
|
+
neq?: unknown;
|
|
1759
|
+
gt?: number | undefined;
|
|
1760
|
+
gte?: number | undefined;
|
|
1761
|
+
lt?: number | undefined;
|
|
1762
|
+
lte?: number | undefined;
|
|
1763
|
+
}>>>;
|
|
1764
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1765
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1766
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1767
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1768
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1769
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1770
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1771
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1772
|
+
$state: _$zod.ZodString;
|
|
1773
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1774
|
+
$state: string;
|
|
1775
|
+
not?: true | undefined;
|
|
1776
|
+
eq?: unknown;
|
|
1777
|
+
neq?: unknown;
|
|
1778
|
+
gt?: number | undefined;
|
|
1779
|
+
gte?: number | undefined;
|
|
1780
|
+
lt?: number | undefined;
|
|
1781
|
+
lte?: number | undefined;
|
|
1782
|
+
}, {
|
|
1783
|
+
$state: string;
|
|
1784
|
+
not?: true | undefined;
|
|
1785
|
+
eq?: unknown;
|
|
1786
|
+
neq?: unknown;
|
|
1787
|
+
gt?: number | undefined;
|
|
1788
|
+
gte?: number | undefined;
|
|
1789
|
+
lt?: number | undefined;
|
|
1790
|
+
lte?: number | undefined;
|
|
1791
|
+
}>>, _$zod.ZodObject<{
|
|
1792
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1793
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1794
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1795
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1796
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1797
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1798
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1799
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1800
|
+
$state: _$zod.ZodString;
|
|
1801
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1802
|
+
$state: string;
|
|
1803
|
+
not?: true | undefined;
|
|
1804
|
+
eq?: unknown;
|
|
1805
|
+
neq?: unknown;
|
|
1806
|
+
gt?: number | undefined;
|
|
1807
|
+
gte?: number | undefined;
|
|
1808
|
+
lt?: number | undefined;
|
|
1809
|
+
lte?: number | undefined;
|
|
1810
|
+
}, {
|
|
1811
|
+
$state: string;
|
|
1812
|
+
not?: true | undefined;
|
|
1813
|
+
eq?: unknown;
|
|
1814
|
+
neq?: unknown;
|
|
1815
|
+
gt?: number | undefined;
|
|
1816
|
+
gte?: number | undefined;
|
|
1817
|
+
lt?: number | undefined;
|
|
1818
|
+
lte?: number | undefined;
|
|
1819
|
+
}>>>;
|
|
1820
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1821
|
+
__ref: _$zod.ZodString;
|
|
1822
|
+
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
1823
|
+
$state: string;
|
|
1824
|
+
eq?: unknown;
|
|
1825
|
+
} | {
|
|
1826
|
+
$state: string;
|
|
1827
|
+
eq?: unknown;
|
|
1828
|
+
}[], Record<string, string | number | boolean | {
|
|
1829
|
+
__ref: string;
|
|
1830
|
+
}>>>]>>;
|
|
1831
|
+
text: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1832
|
+
children: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1833
|
+
slots: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodString>>>;
|
|
1834
|
+
nodes: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
|
|
1835
|
+
element: _$zod.ZodDefault<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1836
|
+
__ref: _$zod.ZodString;
|
|
1837
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
1838
|
+
props: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
1839
|
+
children: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1840
|
+
slots: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodString>>>;
|
|
1841
|
+
visible: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1842
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1843
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1844
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1845
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1846
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1847
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1848
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1849
|
+
$state: _$zod.ZodString;
|
|
1850
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1851
|
+
$state: string;
|
|
1852
|
+
not?: true | undefined;
|
|
1853
|
+
eq?: unknown;
|
|
1854
|
+
neq?: unknown;
|
|
1855
|
+
gt?: number | undefined;
|
|
1856
|
+
gte?: number | undefined;
|
|
1857
|
+
lt?: number | undefined;
|
|
1858
|
+
lte?: number | undefined;
|
|
1859
|
+
}, {
|
|
1860
|
+
$state: string;
|
|
1861
|
+
not?: true | undefined;
|
|
1862
|
+
eq?: unknown;
|
|
1863
|
+
neq?: unknown;
|
|
1864
|
+
gt?: number | undefined;
|
|
1865
|
+
gte?: number | undefined;
|
|
1866
|
+
lt?: number | undefined;
|
|
1867
|
+
lte?: number | undefined;
|
|
1868
|
+
}>>, _$zod.ZodObject<{
|
|
1869
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1870
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1871
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1872
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1873
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1874
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1875
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1876
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1877
|
+
$state: _$zod.ZodString;
|
|
1878
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1879
|
+
$state: string;
|
|
1880
|
+
not?: true | undefined;
|
|
1881
|
+
eq?: unknown;
|
|
1882
|
+
neq?: unknown;
|
|
1883
|
+
gt?: number | undefined;
|
|
1884
|
+
gte?: number | undefined;
|
|
1885
|
+
lt?: number | undefined;
|
|
1886
|
+
lte?: number | undefined;
|
|
1887
|
+
}, {
|
|
1888
|
+
$state: string;
|
|
1889
|
+
not?: true | undefined;
|
|
1890
|
+
eq?: unknown;
|
|
1891
|
+
neq?: unknown;
|
|
1892
|
+
gt?: number | undefined;
|
|
1893
|
+
gte?: number | undefined;
|
|
1894
|
+
lt?: number | undefined;
|
|
1895
|
+
lte?: number | undefined;
|
|
1896
|
+
}>>>;
|
|
1897
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1898
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1899
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1900
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1901
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1902
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1903
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1904
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1905
|
+
$state: _$zod.ZodString;
|
|
1906
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1907
|
+
$state: string;
|
|
1908
|
+
not?: true | undefined;
|
|
1909
|
+
eq?: unknown;
|
|
1910
|
+
neq?: unknown;
|
|
1911
|
+
gt?: number | undefined;
|
|
1912
|
+
gte?: number | undefined;
|
|
1913
|
+
lt?: number | undefined;
|
|
1914
|
+
lte?: number | undefined;
|
|
1915
|
+
}, {
|
|
1916
|
+
$state: string;
|
|
1917
|
+
not?: true | undefined;
|
|
1918
|
+
eq?: unknown;
|
|
1919
|
+
neq?: unknown;
|
|
1920
|
+
gt?: number | undefined;
|
|
1921
|
+
gte?: number | undefined;
|
|
1922
|
+
lt?: number | undefined;
|
|
1923
|
+
lte?: number | undefined;
|
|
1924
|
+
}>>, _$zod.ZodObject<{
|
|
1925
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1926
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1927
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1928
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1929
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1930
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1931
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1932
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1933
|
+
$state: _$zod.ZodString;
|
|
1934
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1935
|
+
$state: string;
|
|
1936
|
+
not?: true | undefined;
|
|
1937
|
+
eq?: unknown;
|
|
1938
|
+
neq?: unknown;
|
|
1939
|
+
gt?: number | undefined;
|
|
1940
|
+
gte?: number | undefined;
|
|
1941
|
+
lt?: number | undefined;
|
|
1942
|
+
lte?: number | undefined;
|
|
1943
|
+
}, {
|
|
1944
|
+
$state: string;
|
|
1945
|
+
not?: true | undefined;
|
|
1946
|
+
eq?: unknown;
|
|
1947
|
+
neq?: unknown;
|
|
1948
|
+
gt?: number | undefined;
|
|
1949
|
+
gte?: number | undefined;
|
|
1950
|
+
lt?: number | undefined;
|
|
1951
|
+
lte?: number | undefined;
|
|
1952
|
+
}>>>;
|
|
1953
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1954
|
+
__ref: _$zod.ZodString;
|
|
1955
|
+
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
1956
|
+
$state: string;
|
|
1957
|
+
eq?: unknown;
|
|
1958
|
+
} | {
|
|
1959
|
+
$state: string;
|
|
1960
|
+
eq?: unknown;
|
|
1961
|
+
}[], Record<string, string | number | boolean | {
|
|
1962
|
+
__ref: string;
|
|
1963
|
+
}>>>]>>;
|
|
1964
|
+
text: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1965
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
1966
|
+
subtree: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1967
|
+
root: _$zod.ZodString;
|
|
1968
|
+
elements: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
|
|
1969
|
+
element: _$zod.ZodDefault<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
1970
|
+
__ref: _$zod.ZodString;
|
|
1971
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
1972
|
+
props: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
1973
|
+
children: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1974
|
+
slots: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodString>>>;
|
|
1975
|
+
visible: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1976
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1977
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1978
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1979
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1980
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1981
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1982
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1983
|
+
$state: _$zod.ZodString;
|
|
1984
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1985
|
+
$state: string;
|
|
1986
|
+
not?: true | undefined;
|
|
1987
|
+
eq?: unknown;
|
|
1988
|
+
neq?: unknown;
|
|
1989
|
+
gt?: number | undefined;
|
|
1990
|
+
gte?: number | undefined;
|
|
1991
|
+
lt?: number | undefined;
|
|
1992
|
+
lte?: number | undefined;
|
|
1993
|
+
}, {
|
|
1994
|
+
$state: string;
|
|
1995
|
+
not?: true | undefined;
|
|
1996
|
+
eq?: unknown;
|
|
1997
|
+
neq?: unknown;
|
|
1998
|
+
gt?: number | undefined;
|
|
1999
|
+
gte?: number | undefined;
|
|
2000
|
+
lt?: number | undefined;
|
|
2001
|
+
lte?: number | undefined;
|
|
2002
|
+
}>>, _$zod.ZodObject<{
|
|
2003
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2004
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2005
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2006
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2007
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2008
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2009
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2010
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2011
|
+
$state: _$zod.ZodString;
|
|
2012
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2013
|
+
$state: string;
|
|
2014
|
+
not?: true | undefined;
|
|
2015
|
+
eq?: unknown;
|
|
2016
|
+
neq?: unknown;
|
|
2017
|
+
gt?: number | undefined;
|
|
2018
|
+
gte?: number | undefined;
|
|
2019
|
+
lt?: number | undefined;
|
|
2020
|
+
lte?: number | undefined;
|
|
2021
|
+
}, {
|
|
2022
|
+
$state: string;
|
|
2023
|
+
not?: true | undefined;
|
|
2024
|
+
eq?: unknown;
|
|
2025
|
+
neq?: unknown;
|
|
2026
|
+
gt?: number | undefined;
|
|
2027
|
+
gte?: number | undefined;
|
|
2028
|
+
lt?: number | undefined;
|
|
2029
|
+
lte?: number | undefined;
|
|
2030
|
+
}>>>;
|
|
2031
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2032
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2033
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2034
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2035
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2036
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2037
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2038
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2039
|
+
$state: _$zod.ZodString;
|
|
2040
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2041
|
+
$state: string;
|
|
2042
|
+
not?: true | undefined;
|
|
2043
|
+
eq?: unknown;
|
|
2044
|
+
neq?: unknown;
|
|
2045
|
+
gt?: number | undefined;
|
|
2046
|
+
gte?: number | undefined;
|
|
2047
|
+
lt?: number | undefined;
|
|
2048
|
+
lte?: number | undefined;
|
|
2049
|
+
}, {
|
|
2050
|
+
$state: string;
|
|
2051
|
+
not?: true | undefined;
|
|
2052
|
+
eq?: unknown;
|
|
2053
|
+
neq?: unknown;
|
|
2054
|
+
gt?: number | undefined;
|
|
2055
|
+
gte?: number | undefined;
|
|
2056
|
+
lt?: number | undefined;
|
|
2057
|
+
lte?: number | undefined;
|
|
2058
|
+
}>>, _$zod.ZodObject<{
|
|
2059
|
+
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2060
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2061
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2062
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2063
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2064
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2065
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2066
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2067
|
+
$state: _$zod.ZodString;
|
|
2068
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2069
|
+
$state: string;
|
|
2070
|
+
not?: true | undefined;
|
|
2071
|
+
eq?: unknown;
|
|
2072
|
+
neq?: unknown;
|
|
2073
|
+
gt?: number | undefined;
|
|
2074
|
+
gte?: number | undefined;
|
|
2075
|
+
lt?: number | undefined;
|
|
2076
|
+
lte?: number | undefined;
|
|
2077
|
+
}, {
|
|
2078
|
+
$state: string;
|
|
2079
|
+
not?: true | undefined;
|
|
2080
|
+
eq?: unknown;
|
|
2081
|
+
neq?: unknown;
|
|
2082
|
+
gt?: number | undefined;
|
|
2083
|
+
gte?: number | undefined;
|
|
2084
|
+
lt?: number | undefined;
|
|
2085
|
+
lte?: number | undefined;
|
|
2086
|
+
}>>>;
|
|
2087
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2088
|
+
__ref: _$zod.ZodString;
|
|
2089
|
+
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
2090
|
+
$state: string;
|
|
2091
|
+
eq?: unknown;
|
|
2092
|
+
} | {
|
|
2093
|
+
$state: string;
|
|
2094
|
+
eq?: unknown;
|
|
2095
|
+
}[], Record<string, string | number | boolean | {
|
|
2096
|
+
__ref: string;
|
|
2097
|
+
}>>>]>>;
|
|
2098
|
+
text: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2099
|
+
}, _$zod_v4_core0.$strict>>;
|
|
2100
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2101
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2102
|
+
}, _$zod_v4_core0.$strip>;
|
|
2103
|
+
readonly readOnly: false;
|
|
2104
|
+
readonly label: "Add element";
|
|
2105
|
+
readonly description: "Add an element to a component: creates the LAYER it is styled through and the anatomy node that places it, under `parent`.";
|
|
2106
|
+
readonly scope: "item";
|
|
2107
|
+
readonly creates: true;
|
|
2108
|
+
readonly title: (entity: string) => string;
|
|
2109
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
2110
|
+
};
|
|
2111
|
+
readonly 'element-delete': {
|
|
2112
|
+
readonly input: _$zod.ZodObject<{
|
|
2113
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2114
|
+
key: _$zod.ZodString;
|
|
2115
|
+
data: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2116
|
+
subtree: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
2117
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2118
|
+
}, _$zod_v4_core0.$strip>;
|
|
2119
|
+
readonly readOnly: false;
|
|
2120
|
+
readonly label: "Remove element";
|
|
2121
|
+
readonly description: "Remove an element from a component: its anatomy node, the layer it is styled through, its subtree, every parent edge naming it, and its entry in every style rule.";
|
|
2122
|
+
readonly scope: "item";
|
|
2123
|
+
readonly approval: "destructive";
|
|
2124
|
+
readonly title: (entity: string) => string;
|
|
2125
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
2126
|
+
};
|
|
2127
|
+
readonly 'element-move': {
|
|
2128
|
+
readonly input: _$zod.ZodObject<{
|
|
2129
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2130
|
+
key: _$zod.ZodString;
|
|
2131
|
+
data: _$zod.ZodPrefault<_$zod.ZodObject<{
|
|
2132
|
+
parent: _$zod.ZodDefault<_$zod.ZodString>;
|
|
2133
|
+
index: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2134
|
+
slotProp: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2135
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2136
|
+
}, _$zod_v4_core0.$strip>;
|
|
2137
|
+
readonly readOnly: false;
|
|
2138
|
+
readonly label: "Move element";
|
|
2139
|
+
readonly description: "Move a component's anatomy node under a different parent, to a different position under the same one, or — with `slotProp` — into a parent's slot.";
|
|
2140
|
+
readonly scope: "item";
|
|
2141
|
+
readonly approval: "reference-change";
|
|
2142
|
+
readonly title: (entity: string) => string;
|
|
2143
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
2144
|
+
};
|
|
2145
|
+
readonly validate: {
|
|
2146
|
+
readonly input: _$zod.ZodObject<{
|
|
2147
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2148
|
+
data: _$zod.ZodObject<{
|
|
2149
|
+
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2150
|
+
}, _$zod_v4_core0.$strip>;
|
|
2151
|
+
}, _$zod_v4_core0.$strip>;
|
|
2152
|
+
readonly readOnly: true;
|
|
2153
|
+
readonly label: "Validate props";
|
|
2154
|
+
readonly description: "Check a bag of prop VALUES against a component — rejects unknown props and out-of-domain values.";
|
|
2155
|
+
readonly scope: "item";
|
|
2156
|
+
readonly title: (entity: string) => string;
|
|
2157
|
+
readonly example: ({
|
|
2158
|
+
config,
|
|
2159
|
+
path
|
|
2160
|
+
}: {
|
|
2161
|
+
config: Config;
|
|
2162
|
+
kind: string;
|
|
2163
|
+
path: string;
|
|
2164
|
+
}) => {
|
|
2165
|
+
path: string;
|
|
2166
|
+
data: {
|
|
2167
|
+
props: Record<string, unknown>;
|
|
2168
|
+
};
|
|
2169
|
+
};
|
|
2170
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => string[];
|
|
2171
|
+
};
|
|
2172
|
+
}, {
|
|
2173
|
+
readonly slots: ({
|
|
2174
|
+
config,
|
|
2175
|
+
path,
|
|
2176
|
+
member
|
|
2177
|
+
}: ComputedInput) => string[];
|
|
2178
|
+
}, false>, "ref"> & {
|
|
2179
|
+
ref<const Path extends PathOf<"component">>(path: Path): ComponentReference<ComponentContractOf<Path>>;
|
|
2180
|
+
};
|
|
2181
|
+
modifiers: EntityClass<_$zod.ZodObject<{
|
|
2182
|
+
type: _$zod.ZodEnum<{
|
|
2183
|
+
composite: "composite";
|
|
2184
|
+
selector: "selector";
|
|
2185
|
+
"media-query": "media-query";
|
|
2186
|
+
}>;
|
|
2187
|
+
value: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodLazy<EntityClass<_$zod.ZodObject<{
|
|
2188
|
+
styles: SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>;
|
|
2189
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "composite", Record<never, never>, Record<never, never>, false>>]>;
|
|
2190
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2191
|
+
type: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2192
|
+
mode: "mode";
|
|
2193
|
+
state: "state";
|
|
2194
|
+
}>>;
|
|
2195
|
+
default: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2196
|
+
__ref: _$zod.ZodString;
|
|
2197
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2198
|
+
}, _$zod_v4_core0.$strip>, "modifier", Record<never, never>, Record<never, never>, false>;
|
|
2199
|
+
styleProps: EntityClass<_$zod.ZodObject<{
|
|
2200
|
+
properties: _$zod.ZodArray<_$zod.ZodString>;
|
|
2201
|
+
values: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodType<StylePropValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StylePropValue, unknown>>>>;
|
|
2202
|
+
responsive: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
2203
|
+
classPrefix: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2204
|
+
arbitrary: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
2205
|
+
negates: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
2206
|
+
opacityOf: _$zod.ZodOptional<_$zod.ZodLazy<_$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>>>;
|
|
2207
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "style-property", {
|
|
2208
|
+
readonly rename: {
|
|
2209
|
+
readonly to: _$zod.ZodString;
|
|
2210
|
+
};
|
|
2211
|
+
readonly create: {
|
|
2212
|
+
readonly path: _$zod.ZodString;
|
|
2213
|
+
readonly description: `Create a style property \u2014 the prop a component exposes for one CSS effect. \`path\` is the prop's JSX name, camelCase (\`borderRadius\`), never a CSS name; the CSS goes in \`properties\`. \`values\` is a ref to a token GROUP (\`${string}\`), which offers every token in it and keeps the prop in step with modes and edits; \`{ "alias": "brand", "value": ${string} }\` offers one token under a name of the prop's own; a literal (\`"row"\`, \`{ "alias": "full", "value": "9999px" }\`) is for a keyword the system has no token for. Restating a token's value as a literal instead of referencing it is refused.`;
|
|
2214
|
+
readonly example: ({
|
|
2215
|
+
config
|
|
2216
|
+
}: {
|
|
2217
|
+
config: Config;
|
|
2218
|
+
kind: string;
|
|
2219
|
+
path: string;
|
|
2220
|
+
}) => {
|
|
2221
|
+
path: string;
|
|
2222
|
+
data: Record<string, unknown>;
|
|
2223
|
+
} | undefined;
|
|
2224
|
+
};
|
|
2225
|
+
}, Record<never, never>, false>;
|
|
2226
|
+
composites: EntityClass<_$zod.ZodObject<{
|
|
2227
|
+
styles: SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>;
|
|
2228
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "composite", Record<never, never>, Record<never, never>, false>;
|
|
2229
|
+
motion: EntityClass<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2230
|
+
runtime: _$zod.ZodLiteral<"css">;
|
|
2231
|
+
keyframes: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2232
|
+
duration: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2233
|
+
delay: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2234
|
+
timingFunction: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2235
|
+
iterationCount: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber]>>;
|
|
2236
|
+
direction: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2237
|
+
fillMode: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2238
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
2239
|
+
runtime: _$zod.ZodLiteral<"js">;
|
|
2240
|
+
initial: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2241
|
+
animate: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2242
|
+
transition: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2243
|
+
whileHover: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2244
|
+
whileTap: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2245
|
+
whileFocus: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2246
|
+
whileDrag: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2247
|
+
drag: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodBoolean, _$zod.ZodString]>>;
|
|
2248
|
+
dragConstraints: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodNumber>>;
|
|
2249
|
+
dragElastic: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2250
|
+
}, _$zod_v4_core0.$strict>], "runtime">, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "motion", Record<never, never>, Record<never, never>, false>;
|
|
2251
|
+
fonts: EntityClass<_$zod.ZodObject<{
|
|
2252
|
+
fontFamily: _$zod.ZodString;
|
|
2253
|
+
files: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{
|
|
2254
|
+
src: _$zod.ZodString;
|
|
2255
|
+
format: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2256
|
+
weight: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodNumber, _$zod.ZodString]>>;
|
|
2257
|
+
style: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2258
|
+
postscriptName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2259
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
2260
|
+
fallbackStack: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2261
|
+
isVariableFont: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2262
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
2263
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2264
|
+
}, _$zod_v4_core0.$strict>, "font", Record<never, never>, Record<never, never>, false>;
|
|
2265
|
+
icons: EntityClass<_$zod.ZodObject<{
|
|
2266
|
+
categories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2267
|
+
tags: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2268
|
+
codepoint: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2269
|
+
knockoutVariants: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2270
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
2271
|
+
module: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2272
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2273
|
+
metadata: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2274
|
+
from: EntityClass<_$zod.ZodObject<{
|
|
2275
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2276
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
2277
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>;
|
|
2278
|
+
format: _$zod.ZodEnum<{
|
|
2279
|
+
uds: "uds";
|
|
2280
|
+
phosphor: "phosphor";
|
|
2281
|
+
}>;
|
|
2282
|
+
}, _$zod_v4_core0.$strict>>;
|
|
2283
|
+
sizes: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodNumber>>;
|
|
2284
|
+
variants: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2285
|
+
component: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2286
|
+
__ref: _$zod.ZodString;
|
|
2287
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2288
|
+
}, _$zod_v4_core0.$strict>, "icon", Record<never, never>, Record<never, never>, false>;
|
|
2289
|
+
packages: EntityClass<_$zod.ZodObject<{
|
|
2290
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2291
|
+
exports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{}, _$zod_v4_core0.$strict>>>;
|
|
2292
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "package", Record<never, never>, Record<never, never>, false>;
|
|
2293
|
+
files: EntityClass<_$zod.ZodObject<{
|
|
2294
|
+
hash: _$zod.ZodString;
|
|
2295
|
+
imports: _$zod.ZodOptional<SubEntityClass<_$zod.ZodObject<{
|
|
2296
|
+
target: _$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>;
|
|
2297
|
+
names: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2298
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
2299
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "file", Record<never, never>, {
|
|
2300
|
+
readonly binary: ({
|
|
2301
|
+
path
|
|
2302
|
+
}: ComputedInput) => boolean;
|
|
2303
|
+
}, false>;
|
|
2304
|
+
guidance: EntityClass<_$zod.ZodObject<{
|
|
2305
|
+
text: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
2306
|
+
__ref: _$zod.ZodString;
|
|
2307
|
+
}, _$zod_v4_core0.$strip>]>>;
|
|
2308
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2309
|
+
label: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2310
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2311
|
+
appliesTo: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodEnum<{
|
|
2312
|
+
chat: "chat";
|
|
2313
|
+
huddle: "huddle";
|
|
2314
|
+
"paint-style": "paint-style";
|
|
2315
|
+
"figma-import": "figma-import";
|
|
2316
|
+
}>>>;
|
|
2317
|
+
}, _$zod_v4_core0.$strict>, "guidance", Record<never, never>, Record<never, never>, false>;
|
|
2318
|
+
guidanceStyles: EntityClass<_$zod.ZodObject<{
|
|
2319
|
+
text: _$zod.ZodString;
|
|
2320
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "guidance-style", Record<never, never>, Record<never, never>, false>;
|
|
2321
|
+
canvasRoles: EntityClass<_$zod.ZodObject<{
|
|
2322
|
+
entries: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2323
|
+
component: _$zod.ZodObject<{
|
|
2324
|
+
__ref: _$zod.ZodString;
|
|
2325
|
+
}, _$zod_v4_core0.$strip>;
|
|
2326
|
+
default: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2327
|
+
defaultProps: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2328
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2329
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "canvas-role", {
|
|
2330
|
+
readonly create: {
|
|
2331
|
+
readonly description: `Register a canvas insert tool for this system. \`path\` is the role, one of ${string}; \`data.entries\` names the components that tool inserts, one marked \`default\`. A system whose roles are unregistered has those canvas tools disabled, so register \`frame\` and \`text\` once a layout primitive and a text primitive exist.`;
|
|
2332
|
+
};
|
|
2333
|
+
}, Record<never, never>, false>;
|
|
2334
|
+
globalStyles: EntityClass<_$zod.ZodObject<{
|
|
2335
|
+
selector: _$zod.ZodString;
|
|
2336
|
+
declarations: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<string | number | {
|
|
2337
|
+
__ref: string;
|
|
2338
|
+
} | {
|
|
2339
|
+
[key: string]: string | number | {
|
|
2340
|
+
__ref: string;
|
|
2341
|
+
} | /*elided*/any;
|
|
2342
|
+
}, unknown, _$zod_v4_core0.$ZodTypeInternals<string | number | {
|
|
2343
|
+
__ref: string;
|
|
2344
|
+
} | {
|
|
2345
|
+
[key: string]: string | number | {
|
|
2346
|
+
__ref: string;
|
|
2347
|
+
} | /*elided*/any;
|
|
2348
|
+
}, unknown>>>;
|
|
2349
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "global-style", Record<never, never>, Record<never, never>, false>;
|
|
2350
|
+
devices: EntityClass<_$zod.ZodObject<{
|
|
2351
|
+
width: _$zod.ZodNumber;
|
|
2352
|
+
height: _$zod.ZodNumber;
|
|
2353
|
+
name: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2354
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "device", Record<never, never>, Record<never, never>, false>;
|
|
2355
|
+
linkedSystems: EntityClass<_$zod.ZodObject<{
|
|
2356
|
+
configPath: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2357
|
+
link: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
2358
|
+
options: PinOptionsField;
|
|
2359
|
+
package: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2360
|
+
systemId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2361
|
+
name: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2362
|
+
version: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2363
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "linked-system", {
|
|
2364
|
+
readonly link: {
|
|
2365
|
+
readonly input: _$zod.ZodObject<{
|
|
2366
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2367
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
2368
|
+
}, _$zod_v4_core0.$strip>;
|
|
2369
|
+
readonly readOnly: false;
|
|
2370
|
+
readonly label: "Link from";
|
|
2371
|
+
readonly description: "Draw entities from a linked system, following the source: `data` names them by accessor — `{ tokens: ['color/brand', 'color'] }` takes an entity and a folder's members, `{ tokens: '*' }` every token, and `'*'` the whole system. What this config already holds at those paths is replaced by theirs, so run `linked-system/link-plan` with the same input first to see what that is. To hold their values as your own instead, `copy`.";
|
|
2372
|
+
readonly scope: "item";
|
|
2373
|
+
readonly approval: "reference-change";
|
|
2374
|
+
readonly title: (entity: string) => string;
|
|
2375
|
+
readonly example: ({
|
|
2376
|
+
config,
|
|
2377
|
+
path
|
|
2378
|
+
}: {
|
|
2379
|
+
config: Config;
|
|
2380
|
+
path: string;
|
|
2381
|
+
}) => Record<string, unknown> | undefined;
|
|
2382
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
2383
|
+
};
|
|
2384
|
+
readonly 'link-plan': {
|
|
2385
|
+
readonly input: _$zod.ZodObject<{
|
|
2386
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2387
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
2388
|
+
}, _$zod_v4_core0.$strip>;
|
|
2389
|
+
readonly readOnly: true;
|
|
2390
|
+
readonly label: "Plan a link";
|
|
2391
|
+
readonly description: "What `link` with the same input replaces — rows of yours deleted so the source shows through, rows held through another pin turned into extensions, and members left alone because they are already here from the same origin. Writes nothing.";
|
|
2392
|
+
readonly scope: "item";
|
|
2393
|
+
readonly title: (entity: string) => string;
|
|
2394
|
+
readonly example: ({
|
|
2395
|
+
config,
|
|
2396
|
+
path
|
|
2397
|
+
}: {
|
|
2398
|
+
config: Config;
|
|
2399
|
+
path: string;
|
|
2400
|
+
}) => Record<string, unknown> | undefined;
|
|
2401
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<LinkPlan, "patches">;
|
|
2402
|
+
};
|
|
2403
|
+
readonly unlink: {
|
|
2404
|
+
readonly input: _$zod.ZodObject<{
|
|
2405
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2406
|
+
data: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
2407
|
+
}, _$zod_v4_core0.$strip>;
|
|
2408
|
+
readonly readOnly: false;
|
|
2409
|
+
readonly label: "Unlink from";
|
|
2410
|
+
readonly description: "Stop following a linked system's entities, in `link`'s shape or everything when `data` is omitted. The rows the declaration minted go with it, and so do the linked rows that point at them, since left linked they would bring them back; nothing of yours moves. A row of yours pointing at one of theirs refuses this — `copy` what is used first, or `break` with `keep: true`. `unlink-plan` names everything that goes.";
|
|
2411
|
+
readonly scope: "item";
|
|
2412
|
+
readonly approval: "reference-change";
|
|
2413
|
+
readonly title: (entity: string) => string;
|
|
2414
|
+
readonly example: ({
|
|
2415
|
+
config,
|
|
2416
|
+
path
|
|
2417
|
+
}: {
|
|
2418
|
+
config: Config;
|
|
2419
|
+
path: string;
|
|
2420
|
+
}) => Record<string, unknown> | undefined;
|
|
2421
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
2422
|
+
};
|
|
2423
|
+
readonly 'unlink-plan': {
|
|
2424
|
+
readonly input: _$zod.ZodObject<{
|
|
2425
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2426
|
+
data: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
2427
|
+
}, _$zod_v4_core0.$strip>;
|
|
2428
|
+
readonly readOnly: true;
|
|
2429
|
+
readonly label: "Plan an unlink";
|
|
2430
|
+
readonly description: "What `unlink` with the same input removes — the minted rows the narrower declaration no longer reaches, with the linked rows taken along because they point at them named in `cascade` — and why the config would refuse it. Writes nothing.";
|
|
2431
|
+
readonly scope: "item";
|
|
2432
|
+
readonly title: (entity: string) => string;
|
|
2433
|
+
readonly example: ({
|
|
2434
|
+
config,
|
|
2435
|
+
path
|
|
2436
|
+
}: {
|
|
2437
|
+
config: Config;
|
|
2438
|
+
path: string;
|
|
2439
|
+
}) => Record<string, unknown> | undefined;
|
|
2440
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<UnlinkPlan, "patches">;
|
|
2441
|
+
};
|
|
2442
|
+
readonly break: {
|
|
2443
|
+
readonly input: _$zod.ZodObject<{
|
|
2444
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2445
|
+
keep: _$zod.ZodBoolean;
|
|
2446
|
+
}, _$zod_v4_core0.$strip>;
|
|
2447
|
+
readonly readOnly: false;
|
|
2448
|
+
readonly label: "Break link";
|
|
2449
|
+
readonly description: "Remove a linked system. With `keep: true` every value drawn through it is copied in as your own first, and a row of yours that pointed through the pin points at the copies; with `keep: false` the rows it minted go, and a row of yours still pointing through it refuses the break. Run `linked-system/break-plan` first to see every row it reaches.";
|
|
2450
|
+
readonly scope: "item";
|
|
2451
|
+
readonly approval: "destructive";
|
|
2452
|
+
readonly title: (entity: string) => string;
|
|
2453
|
+
readonly example: ({
|
|
2454
|
+
config,
|
|
2455
|
+
path
|
|
2456
|
+
}: {
|
|
2457
|
+
config: Config;
|
|
2458
|
+
path: string;
|
|
2459
|
+
}) => Record<string, unknown> | undefined;
|
|
2460
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
2461
|
+
};
|
|
2462
|
+
readonly 'break-plan': {
|
|
2463
|
+
readonly input: _$zod.ZodObject<{
|
|
2464
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2465
|
+
keep: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2466
|
+
data: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>>;
|
|
2467
|
+
}, _$zod_v4_core0.$strip>;
|
|
2468
|
+
readonly readOnly: true;
|
|
2469
|
+
readonly label: "Plan a break";
|
|
2470
|
+
readonly description: "Every row a break reaches, and why the config would refuse it. `keep` plans `break` with the same input; `data` in `copy`'s shape plans detaching those entities alone — the rows the copy lands, the rows of yours it points at the copies, and the rows still linked that reference what moves. Writes nothing.";
|
|
2471
|
+
readonly scope: "item";
|
|
2472
|
+
readonly title: (entity: string) => string;
|
|
2473
|
+
readonly example: ({
|
|
2474
|
+
config,
|
|
2475
|
+
path
|
|
2476
|
+
}: {
|
|
2477
|
+
config: Config;
|
|
2478
|
+
path: string;
|
|
2479
|
+
}) => Record<string, unknown> | undefined;
|
|
2480
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<BreakPlan, "patches">;
|
|
2481
|
+
};
|
|
2482
|
+
readonly rows: {
|
|
2483
|
+
readonly input: _$zod.ZodObject<{
|
|
2484
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2485
|
+
}, _$zod_v4_core0.$strip>;
|
|
2486
|
+
readonly readOnly: true;
|
|
2487
|
+
readonly label: "Source rows";
|
|
2488
|
+
readonly description: "Every top-level folder and item the linked system offers, read against this config: whether every member is linked through this pin, how many rows of yours a `link` would replace, and how many members are already here from the source's own origin. Needs the source attached; empty otherwise.";
|
|
2489
|
+
readonly scope: "item";
|
|
2490
|
+
readonly title: (entity: string) => string;
|
|
2491
|
+
readonly example: ({
|
|
2492
|
+
config,
|
|
2493
|
+
path
|
|
2494
|
+
}: {
|
|
2495
|
+
config: Config;
|
|
2496
|
+
path: string;
|
|
2497
|
+
}) => Record<string, unknown> | undefined;
|
|
2498
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => SourceRowState[];
|
|
2499
|
+
};
|
|
2500
|
+
readonly copy: {
|
|
2501
|
+
readonly input: _$zod.ZodObject<{
|
|
2502
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2503
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
2504
|
+
onConflict: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2505
|
+
replace: "replace";
|
|
2506
|
+
skip: "skip";
|
|
2507
|
+
}>>;
|
|
2508
|
+
}, _$zod_v4_core0.$strip>;
|
|
2509
|
+
readonly readOnly: false;
|
|
2510
|
+
readonly label: "Copy from";
|
|
2511
|
+
readonly description: "Take entities from a linked system as your own, holding the values the source has now and no longer following it. `data` names them by accessor: `{ tokens: ['color/brand', 'color'] }` takes an entity and a folder's members, `{ tokens: '*' }` every token, and `'*'` the whole system. What a copied entity points at comes with it, so run `linked-system/copy-plan` with the same input first and see everything that lands. To use theirs without owning it, declare it in the pin's `link` instead. A whole-system copy is thousands of rows, and on a repo-backed system each one is written into `uds.config.ts`.";
|
|
2512
|
+
readonly scope: "item";
|
|
2513
|
+
readonly approval: "reference-change";
|
|
2514
|
+
readonly title: (entity: string) => string;
|
|
2515
|
+
readonly example: ({
|
|
2516
|
+
config,
|
|
2517
|
+
path
|
|
2518
|
+
}: {
|
|
2519
|
+
config: Config;
|
|
2520
|
+
path: string;
|
|
2521
|
+
}) => Record<string, unknown> | undefined;
|
|
2522
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Config;
|
|
2523
|
+
};
|
|
2524
|
+
readonly 'copy-plan': {
|
|
2525
|
+
readonly input: _$zod.ZodObject<{
|
|
2526
|
+
path: _$zod.ZodType<string, string | undefined, _$zod_v4_core0.$ZodTypeInternals<string, string | undefined>>;
|
|
2527
|
+
data: _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodString>]>>]>;
|
|
2528
|
+
onConflict: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2529
|
+
replace: "replace";
|
|
2530
|
+
skip: "skip";
|
|
2531
|
+
}>>;
|
|
2532
|
+
}, _$zod_v4_core0.$strip>;
|
|
2533
|
+
readonly readOnly: true;
|
|
2534
|
+
readonly label: "Plan a copy";
|
|
2535
|
+
readonly description: "See what copying would bring before you do it — what lands as yours, what comes along because it is pointed at, and what you already hold that the copies will point at. Takes exactly the same input as `copy` and writes nothing. Run it before `copy`, and always before a `'*'` copy.";
|
|
2536
|
+
readonly scope: "item";
|
|
2537
|
+
readonly title: (entity: string) => string;
|
|
2538
|
+
readonly example: ({
|
|
2539
|
+
config,
|
|
2540
|
+
path
|
|
2541
|
+
}: {
|
|
2542
|
+
config: Config;
|
|
2543
|
+
path: string;
|
|
2544
|
+
}) => Record<string, unknown> | undefined;
|
|
2545
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => Omit<CopyPlan, "patches">;
|
|
2546
|
+
};
|
|
2547
|
+
}, {
|
|
2548
|
+
readonly displayName: ({
|
|
2549
|
+
member,
|
|
2550
|
+
path
|
|
2551
|
+
}: ComputedInput) => string;
|
|
2552
|
+
}, false>;
|
|
2553
|
+
}, {
|
|
2554
|
+
operations: DerivedEntityClass<_$zod.ZodObject<{
|
|
2555
|
+
kind: _$zod.ZodString;
|
|
2556
|
+
verb: _$zod.ZodString;
|
|
2557
|
+
readOnly: _$zod.ZodBoolean;
|
|
2558
|
+
label: _$zod.ZodString;
|
|
2559
|
+
description: _$zod.ZodString;
|
|
2560
|
+
scope: _$zod.ZodString;
|
|
2561
|
+
creates: _$zod.ZodBoolean;
|
|
2562
|
+
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2563
|
+
destructive: "destructive";
|
|
2564
|
+
"reference-change": "reference-change";
|
|
2565
|
+
}>>;
|
|
2566
|
+
}, _$zod_v4_core0.$strip>, {
|
|
2567
|
+
inputSchema: ({
|
|
2568
|
+
member: op,
|
|
2569
|
+
config
|
|
2570
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2571
|
+
member: {
|
|
2572
|
+
kind: string;
|
|
2573
|
+
verb: string;
|
|
2574
|
+
readOnly: boolean;
|
|
2575
|
+
label: string;
|
|
2576
|
+
description: string;
|
|
2577
|
+
scope: string;
|
|
2578
|
+
creates: boolean;
|
|
2579
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2580
|
+
};
|
|
2581
|
+
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
2582
|
+
execute: ({
|
|
2583
|
+
member: op,
|
|
2584
|
+
config: declaring
|
|
2585
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2586
|
+
member: {
|
|
2587
|
+
kind: string;
|
|
2588
|
+
verb: string;
|
|
2589
|
+
readOnly: boolean;
|
|
2590
|
+
label: string;
|
|
2591
|
+
description: string;
|
|
2592
|
+
scope: string;
|
|
2593
|
+
creates: boolean;
|
|
2594
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2595
|
+
};
|
|
2596
|
+
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
2597
|
+
field: ({
|
|
2598
|
+
member: op
|
|
2599
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2600
|
+
member: {
|
|
2601
|
+
kind: string;
|
|
2602
|
+
verb: string;
|
|
2603
|
+
readOnly: boolean;
|
|
2604
|
+
label: string;
|
|
2605
|
+
description: string;
|
|
2606
|
+
scope: string;
|
|
2607
|
+
creates: boolean;
|
|
2608
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2609
|
+
};
|
|
2610
|
+
}) => string | undefined;
|
|
2611
|
+
title: ({
|
|
2612
|
+
member: op,
|
|
2613
|
+
config
|
|
2614
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2615
|
+
member: {
|
|
2616
|
+
kind: string;
|
|
2617
|
+
verb: string;
|
|
2618
|
+
readOnly: boolean;
|
|
2619
|
+
label: string;
|
|
2620
|
+
description: string;
|
|
2621
|
+
scope: string;
|
|
2622
|
+
creates: boolean;
|
|
2623
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2624
|
+
};
|
|
2625
|
+
}) => ((entity: string) => string) | undefined;
|
|
2626
|
+
example: ({
|
|
2627
|
+
member: op,
|
|
2628
|
+
config
|
|
2629
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2630
|
+
member: {
|
|
2631
|
+
kind: string;
|
|
2632
|
+
verb: string;
|
|
2633
|
+
readOnly: boolean;
|
|
2634
|
+
label: string;
|
|
2635
|
+
description: string;
|
|
2636
|
+
scope: string;
|
|
2637
|
+
creates: boolean;
|
|
2638
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2639
|
+
};
|
|
2640
|
+
}) => Record<string, unknown> | undefined;
|
|
2641
|
+
}>;
|
|
2642
|
+
tools: DerivedEntityClass<_$zod.ZodObject<{
|
|
2643
|
+
operation: DerivedEntityClass<_$zod.ZodObject<{
|
|
2644
|
+
kind: _$zod.ZodString;
|
|
2645
|
+
verb: _$zod.ZodString;
|
|
2646
|
+
readOnly: _$zod.ZodBoolean;
|
|
2647
|
+
label: _$zod.ZodString;
|
|
2648
|
+
description: _$zod.ZodString;
|
|
2649
|
+
scope: _$zod.ZodString;
|
|
2650
|
+
creates: _$zod.ZodBoolean;
|
|
2651
|
+
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2652
|
+
destructive: "destructive";
|
|
2653
|
+
"reference-change": "reference-change";
|
|
2654
|
+
}>>;
|
|
2655
|
+
}, _$zod_v4_core0.$strip>, {
|
|
2656
|
+
inputSchema: ({
|
|
2657
|
+
member: op,
|
|
2658
|
+
config
|
|
2659
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2660
|
+
member: {
|
|
2661
|
+
kind: string;
|
|
2662
|
+
verb: string;
|
|
2663
|
+
readOnly: boolean;
|
|
2664
|
+
label: string;
|
|
2665
|
+
description: string;
|
|
2666
|
+
scope: string;
|
|
2667
|
+
creates: boolean;
|
|
2668
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2669
|
+
};
|
|
2670
|
+
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
2671
|
+
execute: ({
|
|
2672
|
+
member: op,
|
|
2673
|
+
config: declaring
|
|
2674
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2675
|
+
member: {
|
|
2676
|
+
kind: string;
|
|
2677
|
+
verb: string;
|
|
2678
|
+
readOnly: boolean;
|
|
2679
|
+
label: string;
|
|
2680
|
+
description: string;
|
|
2681
|
+
scope: string;
|
|
2682
|
+
creates: boolean;
|
|
2683
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2684
|
+
};
|
|
2685
|
+
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
2686
|
+
field: ({
|
|
2687
|
+
member: op
|
|
2688
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2689
|
+
member: {
|
|
2690
|
+
kind: string;
|
|
2691
|
+
verb: string;
|
|
2692
|
+
readOnly: boolean;
|
|
2693
|
+
label: string;
|
|
2694
|
+
description: string;
|
|
2695
|
+
scope: string;
|
|
2696
|
+
creates: boolean;
|
|
2697
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2698
|
+
};
|
|
2699
|
+
}) => string | undefined;
|
|
2700
|
+
title: ({
|
|
2701
|
+
member: op,
|
|
2702
|
+
config
|
|
2703
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2704
|
+
member: {
|
|
2705
|
+
kind: string;
|
|
2706
|
+
verb: string;
|
|
2707
|
+
readOnly: boolean;
|
|
2708
|
+
label: string;
|
|
2709
|
+
description: string;
|
|
2710
|
+
scope: string;
|
|
2711
|
+
creates: boolean;
|
|
2712
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2713
|
+
};
|
|
2714
|
+
}) => ((entity: string) => string) | undefined;
|
|
2715
|
+
example: ({
|
|
2716
|
+
member: op,
|
|
2717
|
+
config
|
|
2718
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2719
|
+
member: {
|
|
2720
|
+
kind: string;
|
|
2721
|
+
verb: string;
|
|
2722
|
+
readOnly: boolean;
|
|
2723
|
+
label: string;
|
|
2724
|
+
description: string;
|
|
2725
|
+
scope: string;
|
|
2726
|
+
creates: boolean;
|
|
2727
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
2728
|
+
};
|
|
2729
|
+
}) => Record<string, unknown> | undefined;
|
|
2730
|
+
}>;
|
|
2731
|
+
name: _$zod.ZodString;
|
|
2732
|
+
description: _$zod.ZodString;
|
|
2733
|
+
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
2734
|
+
}, _$zod_v4_core0.$strip>, {
|
|
2735
|
+
kind: (input: ComputedInput) => string | undefined;
|
|
2736
|
+
verb: (input: ComputedInput) => string | undefined;
|
|
2737
|
+
readOnly: ({
|
|
2738
|
+
member,
|
|
2739
|
+
config
|
|
2740
|
+
}: Omit<ComputedInput, "member"> & {
|
|
2741
|
+
member: {
|
|
2742
|
+
operation: {
|
|
2743
|
+
__ref: string;
|
|
2744
|
+
};
|
|
2745
|
+
name: string;
|
|
2746
|
+
description: string;
|
|
2747
|
+
enabled: boolean;
|
|
2748
|
+
};
|
|
2749
|
+
}) => boolean;
|
|
2750
|
+
inputSchema: (input: ComputedInput) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
2751
|
+
execute: (input: ComputedInput) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
2752
|
+
action: (input: ComputedInput) => string | undefined;
|
|
2753
|
+
field: (input: ComputedInput) => string | undefined;
|
|
2754
|
+
scope: (input: ComputedInput) => string | undefined;
|
|
2755
|
+
approval: (input: ComputedInput) => "destructive" | "reference-change" | undefined;
|
|
2756
|
+
label: (input: ComputedInput) => string | undefined;
|
|
2757
|
+
shortLabel: (input: ComputedInput) => string | undefined;
|
|
2758
|
+
example: (input: ComputedInput) => Record<string, unknown> | undefined;
|
|
2759
|
+
}>;
|
|
2760
|
+
}, /*elided*/any>;
|
|
2761
|
+
}>;
|
|
2762
|
+
/**
|
|
2763
|
+
* A design system config INSTANCE — what `new System()` and `System.fromJSON(...)` hand back.
|
|
2764
|
+
*
|
|
2765
|
+
* `System` itself names the class (a value), so the instance type has to be spelled
|
|
2766
|
+
* `InstanceType<typeof System>`; saying it once here is what keeps that out of every consumer. This
|
|
2767
|
+
* is the type a holder of a loaded system declares — a session, a store, a pipeline step.
|
|
2768
|
+
*/
|
|
2769
|
+
type SystemConfig = InstanceType<typeof System>;
|
|
2770
|
+
//#endregion
|
|
2771
|
+
export { System, SystemConfig };
|