@yahoo/uds-create-config 4.6.0 → 4.7.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/dist/configs/CanvasConfig.d.ts +900 -80
- package/dist/configs/react-native-system.d.ts +603 -55
- package/dist/configs/system.d.ts +603 -55
- package/dist/configs/system.js +7 -1
- package/dist/entities/system/Component.d.ts +480 -39
- package/dist/entities/system/Component.js +264 -93
- package/dist/entities/system/File.d.ts +1 -1
- package/dist/entities/system/LinkedSystem.d.ts +2 -2
- package/dist/entities/system/Operation.d.ts +1 -1
- package/dist/entities/system/StyleProperty.d.ts +8 -0
- package/dist/entities/system/StyleProperty.js +12 -1
- package/dist/entities/system/Tool.d.ts +1 -1
- package/dist/entities/system/component-module.js +1 -1
- package/dist/entities/system/defineComponent.d.ts +45 -7
- package/dist/entities/system/defineComponent.js +52 -25
- package/dist/framework/Config.d.ts +2 -2
- package/dist/framework/Config.js +59 -7
- package/dist/framework/class-names.d.ts +4 -2
- package/dist/framework/class-names.js +56 -17
- package/dist/framework/defineDerivedEntity.d.ts +1 -1
- package/dist/framework/defineEntity.d.ts +2 -2
- package/dist/framework/defineSubEntity.d.ts +3 -2
- package/dist/framework/preview-store.d.ts +19 -0
- package/dist/framework/preview-store.js +18 -0
- package/dist/framework/projections.d.ts +28 -8
- package/dist/framework/projections.js +50 -16
- package/dist/framework/prop-surface.d.ts +21 -1
- package/dist/framework/prop-surface.js +99 -21
- package/dist/framework/render-spec.d.ts +103 -3
- package/dist/framework/render-spec.js +285 -37
- package/dist/framework/schema-version.d.ts +1 -1
- package/dist/framework/schema-version.js +5 -5
- package/dist/framework/utils/refs.js +10 -1
- package/dist/framework/validate-spec.d.ts +2 -0
- package/dist/framework/validate-spec.js +13 -0
- package/dist/index.d.ts +14 -11
- package/dist/index.js +6 -5
- package/dist/migrations/2.0.0/v1-artifact.d.ts +305 -29
- package/dist/migrations/20260919051027_prop_conditions_and_anatomy_positions_at_rest.d.ts +22 -0
- package/dist/migrations/20260919051027_prop_conditions_and_anatomy_positions_at_rest.js +10 -0
- package/dist/migrations/20260920004019_preview_conditions_keyed.d.ts +27 -0
- package/dist/migrations/20260920004019_preview_conditions_keyed.js +148 -0
- package/dist/migrations/20260920161309_prefixed_token_group.d.ts +12 -0
- package/dist/migrations/20260920161309_prefixed_token_group.js +10 -0
- package/dist/renderer/wrapRegistry.js +8 -2
- package/dist/renderer/wrappers/component-refs.d.ts +14 -0
- package/dist/renderer/wrappers/component-refs.js +79 -0
- package/dist/renderer/wrappers/hex-normalize.d.ts +5 -7
- package/dist/renderer/wrappers/hex-normalize.js +11 -10
- package/dist/spec/cell.d.ts +171 -0
- package/dist/spec/cell.js +361 -0
- package/dist/spec/detach.d.ts +125 -0
- package/dist/spec/detach.js +511 -0
- package/dist/spec/empty-node-slots.d.ts +11 -23
- package/dist/spec/empty-node-slots.js +12 -39
- package/dist/spec/index.d.ts +5 -3
- package/dist/spec/index.js +3 -3
- package/dist/spec/instance.d.ts +77 -0
- package/dist/spec/instance.js +80 -0
- package/dist/spec/preview-content.d.ts +95 -0
- package/dist/spec/preview-content.js +149 -0
- package/dist/spec/preview-elements.d.ts +54 -15
- package/dist/spec/preview-elements.js +109 -29
- package/dist/spec/prop-conditions.d.ts +28 -0
- package/dist/spec/prop-conditions.js +39 -0
- package/dist/spec/slot.d.ts +206 -0
- package/dist/spec/slot.js +542 -0
- package/dist/spec/visibility.d.ts +82 -0
- package/dist/spec/visibility.js +109 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +18 -2
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { CopyPlan } from "../../entities/system/copy-plan.js";
|
|
2
2
|
import { ExtendableRef, Ref } from "../../framework/utils/refs.js";
|
|
3
3
|
import { CreateInput } from "../../framework/utils/field-schema.js";
|
|
4
|
-
import { DerivedEntityClass } from "../../framework/defineDerivedEntity.js";
|
|
5
4
|
import { SubEntityClass } from "../../framework/defineSubEntity.js";
|
|
5
|
+
import { ComputedInput } from "../../framework/registry.js";
|
|
6
|
+
import { DerivedEntityClass } from "../../framework/defineDerivedEntity.js";
|
|
6
7
|
import { ComponentContractOf, PathOf } from "../../framework/registered.js";
|
|
7
8
|
import { EntityClass } from "../../framework/defineEntity.js";
|
|
8
9
|
import { ConfigInstance } from "../../framework/defineConfig.js";
|
|
9
10
|
import { PinOptionsField } from "../../entities/system/LinkedSystem.js";
|
|
10
11
|
import { BreakPlan, LinkPlan, SourceRowState, UnlinkPlan } from "../../entities/system/link-plan.js";
|
|
11
12
|
import { Config } from "../../framework/Config.js";
|
|
12
|
-
import {
|
|
13
|
+
import { StylePropValue } from "../../entities/system/StyleProperty.js";
|
|
14
|
+
import { StoredPreviewCondition } from "../../framework/preview-store.js";
|
|
15
|
+
import { listSlots, namedSlots, slotHostedBy, slotOf } from "../../spec/slot.js";
|
|
16
|
+
import { cellAt } from "../../spec/cell.js";
|
|
17
|
+
import { instanceAt } from "../../spec/instance.js";
|
|
13
18
|
import { DerivedColor, Gradient } from "../../entities/system/color.js";
|
|
14
19
|
import { StyleValue } from "../../entities/system/style-bag.js";
|
|
15
20
|
import { ComponentElementBody, ComponentReference, ComponentStyleBody } from "../../entities/system/Component.js";
|
|
16
|
-
import { StylePropValue } from "../../entities/system/StyleProperty.js";
|
|
17
21
|
import { OverrideCondition } from "../../entities/system/Token.js";
|
|
18
22
|
import { DocumentRename } from "../../spec/rewrite-refs.js";
|
|
19
23
|
import * as _$zod from "zod";
|
|
@@ -253,6 +257,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
253
257
|
__ref: _$zod.ZodString;
|
|
254
258
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
255
259
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
260
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
261
|
+
__ref: _$zod.ZodString;
|
|
262
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
263
|
+
__ref: _$zod.ZodString;
|
|
264
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
256
265
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
257
266
|
type: _$zod.ZodLiteral<"variant">;
|
|
258
267
|
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
@@ -265,6 +274,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
265
274
|
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
266
275
|
}, _$zod_v4_core0.$strict>>]>;
|
|
267
276
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
277
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
278
|
+
__ref: _$zod.ZodString;
|
|
279
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
280
|
+
__ref: _$zod.ZodString;
|
|
281
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
268
282
|
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
269
283
|
type: _$zod.ZodLiteral<"forward">;
|
|
270
284
|
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
@@ -280,6 +294,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
280
294
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
281
295
|
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
282
296
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
297
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
298
|
+
__ref: _$zod.ZodString;
|
|
299
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
300
|
+
__ref: _$zod.ZodString;
|
|
301
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
283
302
|
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
284
303
|
type: "forward";
|
|
285
304
|
target: string | {
|
|
@@ -295,6 +314,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
295
314
|
}[] | undefined;
|
|
296
315
|
text?: boolean | undefined;
|
|
297
316
|
required?: boolean | undefined;
|
|
317
|
+
when?: Record<string, string | number | boolean | {
|
|
318
|
+
__ref: string;
|
|
319
|
+
} | (string | number | boolean | {
|
|
320
|
+
__ref: string;
|
|
321
|
+
})[]> | undefined;
|
|
298
322
|
}, {
|
|
299
323
|
type: "forward";
|
|
300
324
|
target: string | {
|
|
@@ -310,45 +334,77 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
310
334
|
}[] | undefined;
|
|
311
335
|
text?: boolean | undefined;
|
|
312
336
|
required?: boolean | undefined;
|
|
337
|
+
when?: Record<string, string | number | boolean | {
|
|
338
|
+
__ref: string;
|
|
339
|
+
} | (string | number | boolean | {
|
|
340
|
+
__ref: string;
|
|
341
|
+
})[]> | undefined;
|
|
313
342
|
}>>, _$zod.ZodObject<{
|
|
314
343
|
type: _$zod.ZodLiteral<"styleProperty">;
|
|
315
344
|
value: _$zod.ZodObject<{
|
|
316
345
|
__ref: _$zod.ZodString;
|
|
317
346
|
}, _$zod_v4_core0.$strip>;
|
|
347
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
348
|
+
__ref: _$zod.ZodString;
|
|
349
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
350
|
+
__ref: _$zod.ZodString;
|
|
351
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
318
352
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
319
353
|
type: _$zod.ZodLiteral<"composite">;
|
|
320
354
|
value: _$zod.ZodObject<{
|
|
321
355
|
__ref: _$zod.ZodString;
|
|
322
356
|
}, _$zod_v4_core0.$strip>;
|
|
357
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
358
|
+
__ref: _$zod.ZodString;
|
|
359
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
360
|
+
__ref: _$zod.ZodString;
|
|
361
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
323
362
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
324
363
|
type: _$zod.ZodLiteral<"motion">;
|
|
325
364
|
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
326
365
|
__ref: _$zod.ZodString;
|
|
327
366
|
}, _$zod_v4_core0.$strip>>;
|
|
367
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
368
|
+
__ref: _$zod.ZodString;
|
|
369
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
370
|
+
__ref: _$zod.ZodString;
|
|
371
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
328
372
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
329
373
|
type: _$zod.ZodLiteral<"string">;
|
|
330
374
|
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
331
375
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
376
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
377
|
+
__ref: _$zod.ZodString;
|
|
378
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
379
|
+
__ref: _$zod.ZodString;
|
|
380
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
332
381
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
333
382
|
type: _$zod.ZodLiteral<"number">;
|
|
334
383
|
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
335
384
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
385
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
386
|
+
__ref: _$zod.ZodString;
|
|
387
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
388
|
+
__ref: _$zod.ZodString;
|
|
389
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
336
390
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
337
391
|
type: _$zod.ZodLiteral<"boolean">;
|
|
338
392
|
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
339
393
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
394
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
395
|
+
__ref: _$zod.ZodString;
|
|
396
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
397
|
+
__ref: _$zod.ZodString;
|
|
398
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
340
399
|
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
341
400
|
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
342
401
|
__ref: _$zod.ZodString;
|
|
343
402
|
}, _$zod_v4_core0.$strip>>]>>>;
|
|
344
403
|
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
404
|
+
renderProps: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
345
405
|
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
346
406
|
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
347
|
-
|
|
348
|
-
previewWhen: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
349
|
-
when: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
350
|
-
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
351
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
407
|
+
preview: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StoredPreviewCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
352
408
|
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
353
409
|
__ref: _$zod.ZodString;
|
|
354
410
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -371,6 +427,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
371
427
|
__ref: _$zod.ZodString;
|
|
372
428
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
373
429
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
430
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
431
|
+
__ref: _$zod.ZodString;
|
|
432
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
433
|
+
__ref: _$zod.ZodString;
|
|
434
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
374
435
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
375
436
|
type: _$zod.ZodLiteral<"variant">;
|
|
376
437
|
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
@@ -383,6 +444,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
383
444
|
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
384
445
|
}, _$zod_v4_core0.$strict>>]>;
|
|
385
446
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
447
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
448
|
+
__ref: _$zod.ZodString;
|
|
449
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
450
|
+
__ref: _$zod.ZodString;
|
|
451
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
386
452
|
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
387
453
|
type: _$zod.ZodLiteral<"forward">;
|
|
388
454
|
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
@@ -398,6 +464,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
398
464
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
399
465
|
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
400
466
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
467
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
468
|
+
__ref: _$zod.ZodString;
|
|
469
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
470
|
+
__ref: _$zod.ZodString;
|
|
471
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
401
472
|
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
402
473
|
type: "forward";
|
|
403
474
|
target: string | {
|
|
@@ -413,6 +484,11 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
413
484
|
}[] | undefined;
|
|
414
485
|
text?: boolean | undefined;
|
|
415
486
|
required?: boolean | undefined;
|
|
487
|
+
when?: Record<string, string | number | boolean | {
|
|
488
|
+
__ref: string;
|
|
489
|
+
} | (string | number | boolean | {
|
|
490
|
+
__ref: string;
|
|
491
|
+
})[]> | undefined;
|
|
416
492
|
}, {
|
|
417
493
|
type: "forward";
|
|
418
494
|
target: string | {
|
|
@@ -428,51 +504,83 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
428
504
|
}[] | undefined;
|
|
429
505
|
text?: boolean | undefined;
|
|
430
506
|
required?: boolean | undefined;
|
|
507
|
+
when?: Record<string, string | number | boolean | {
|
|
508
|
+
__ref: string;
|
|
509
|
+
} | (string | number | boolean | {
|
|
510
|
+
__ref: string;
|
|
511
|
+
})[]> | undefined;
|
|
431
512
|
}>>, _$zod.ZodObject<{
|
|
432
513
|
type: _$zod.ZodLiteral<"styleProperty">;
|
|
433
514
|
value: _$zod.ZodObject<{
|
|
434
515
|
__ref: _$zod.ZodString;
|
|
435
516
|
}, _$zod_v4_core0.$strip>;
|
|
517
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
518
|
+
__ref: _$zod.ZodString;
|
|
519
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
520
|
+
__ref: _$zod.ZodString;
|
|
521
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
436
522
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
437
523
|
type: _$zod.ZodLiteral<"composite">;
|
|
438
524
|
value: _$zod.ZodObject<{
|
|
439
525
|
__ref: _$zod.ZodString;
|
|
440
526
|
}, _$zod_v4_core0.$strip>;
|
|
527
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
528
|
+
__ref: _$zod.ZodString;
|
|
529
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
530
|
+
__ref: _$zod.ZodString;
|
|
531
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
441
532
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
442
533
|
type: _$zod.ZodLiteral<"motion">;
|
|
443
534
|
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
444
535
|
__ref: _$zod.ZodString;
|
|
445
536
|
}, _$zod_v4_core0.$strip>>;
|
|
537
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
538
|
+
__ref: _$zod.ZodString;
|
|
539
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
540
|
+
__ref: _$zod.ZodString;
|
|
541
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
446
542
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
447
543
|
type: _$zod.ZodLiteral<"string">;
|
|
448
544
|
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
449
545
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
546
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
547
|
+
__ref: _$zod.ZodString;
|
|
548
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
549
|
+
__ref: _$zod.ZodString;
|
|
550
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
450
551
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
451
552
|
type: _$zod.ZodLiteral<"number">;
|
|
452
553
|
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
453
554
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
555
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
556
|
+
__ref: _$zod.ZodString;
|
|
557
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
558
|
+
__ref: _$zod.ZodString;
|
|
559
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
454
560
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
455
561
|
type: _$zod.ZodLiteral<"boolean">;
|
|
456
562
|
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
457
563
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
564
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
565
|
+
__ref: _$zod.ZodString;
|
|
566
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
567
|
+
__ref: _$zod.ZodString;
|
|
568
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
458
569
|
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
459
570
|
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
460
571
|
__ref: _$zod.ZodString;
|
|
461
572
|
}, _$zod_v4_core0.$strip>>]>>>;
|
|
462
573
|
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
574
|
+
renderProps: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
463
575
|
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
464
576
|
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
465
|
-
|
|
466
|
-
previewWhen: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
467
|
-
when: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
468
|
-
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
469
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
577
|
+
preview: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StoredPreviewCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
470
578
|
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
471
579
|
__ref: _$zod.ZodString;
|
|
472
580
|
}, _$zod_v4_core0.$strip>>;
|
|
473
581
|
export: _$zod.ZodOptional<_$zod.ZodString>;
|
|
474
582
|
}, _$zod_v4_core0.$strict>;
|
|
475
|
-
readonly description: "Create a component at a new qualified `path`. For a component with nothing in it yet, one to design on the canvas before it has props or variants, use `create-blank` with only a `path` instead of authoring a minimal body here. 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 `
|
|
583
|
+
readonly description: "Create a component at a new qualified `path`. For a component with nothing in it yet, one to design on the canvas before it has props or variants, use `create-blank` with only a `path` instead of authoring a minimal body here. 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 `preview` (`{ \"*\": { \"when\": null, \"props\": { \"children\": \"Example\" } } }`) 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.";
|
|
476
584
|
readonly example: ({
|
|
477
585
|
config
|
|
478
586
|
}: {
|
|
@@ -571,7 +679,34 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
571
679
|
lt?: number | undefined;
|
|
572
680
|
lte?: number | undefined;
|
|
573
681
|
}>>, _$zod.ZodObject<{
|
|
574
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
682
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
683
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
684
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
685
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
686
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
687
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
688
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
689
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
690
|
+
$state: _$zod.ZodString;
|
|
691
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
692
|
+
$state: string;
|
|
693
|
+
not?: true | undefined;
|
|
694
|
+
eq?: unknown;
|
|
695
|
+
neq?: unknown;
|
|
696
|
+
gt?: number | undefined;
|
|
697
|
+
gte?: number | undefined;
|
|
698
|
+
lt?: number | undefined;
|
|
699
|
+
lte?: number | undefined;
|
|
700
|
+
}, {
|
|
701
|
+
$state: string;
|
|
702
|
+
not?: true | undefined;
|
|
703
|
+
eq?: unknown;
|
|
704
|
+
neq?: unknown;
|
|
705
|
+
gt?: number | undefined;
|
|
706
|
+
gte?: number | undefined;
|
|
707
|
+
lt?: number | undefined;
|
|
708
|
+
lte?: number | undefined;
|
|
709
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
575
710
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
576
711
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
577
712
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -598,7 +733,7 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
598
733
|
gte?: number | undefined;
|
|
599
734
|
lt?: number | undefined;
|
|
600
735
|
lte?: number | undefined;
|
|
601
|
-
}
|
|
736
|
+
}>>>]>>;
|
|
602
737
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
603
738
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
604
739
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -627,7 +762,7 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
627
762
|
lt?: number | undefined;
|
|
628
763
|
lte?: number | undefined;
|
|
629
764
|
}>>, _$zod.ZodObject<{
|
|
630
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
765
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
631
766
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
632
767
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
633
768
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -654,8 +789,35 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
654
789
|
gte?: number | undefined;
|
|
655
790
|
lt?: number | undefined;
|
|
656
791
|
lte?: number | undefined;
|
|
657
|
-
}
|
|
658
|
-
|
|
792
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
793
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
794
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
795
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
796
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
797
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
798
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
799
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
800
|
+
$state: _$zod.ZodString;
|
|
801
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
802
|
+
$state: string;
|
|
803
|
+
not?: true | undefined;
|
|
804
|
+
eq?: unknown;
|
|
805
|
+
neq?: unknown;
|
|
806
|
+
gt?: number | undefined;
|
|
807
|
+
gte?: number | undefined;
|
|
808
|
+
lt?: number | undefined;
|
|
809
|
+
lte?: number | undefined;
|
|
810
|
+
}, {
|
|
811
|
+
$state: string;
|
|
812
|
+
not?: true | undefined;
|
|
813
|
+
eq?: unknown;
|
|
814
|
+
neq?: unknown;
|
|
815
|
+
gt?: number | undefined;
|
|
816
|
+
gte?: number | undefined;
|
|
817
|
+
lt?: number | undefined;
|
|
818
|
+
lte?: number | undefined;
|
|
819
|
+
}>>>]>>;
|
|
820
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
659
821
|
__ref: _$zod.ZodString;
|
|
660
822
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
661
823
|
$state: string;
|
|
@@ -704,7 +866,7 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
704
866
|
lt?: number | undefined;
|
|
705
867
|
lte?: number | undefined;
|
|
706
868
|
}>>, _$zod.ZodObject<{
|
|
707
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
869
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
708
870
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
709
871
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
710
872
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -731,7 +893,34 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
731
893
|
gte?: number | undefined;
|
|
732
894
|
lt?: number | undefined;
|
|
733
895
|
lte?: number | undefined;
|
|
734
|
-
}
|
|
896
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
897
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
898
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
899
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
900
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
901
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
902
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
903
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
904
|
+
$state: _$zod.ZodString;
|
|
905
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
906
|
+
$state: string;
|
|
907
|
+
not?: true | undefined;
|
|
908
|
+
eq?: unknown;
|
|
909
|
+
neq?: unknown;
|
|
910
|
+
gt?: number | undefined;
|
|
911
|
+
gte?: number | undefined;
|
|
912
|
+
lt?: number | undefined;
|
|
913
|
+
lte?: number | undefined;
|
|
914
|
+
}, {
|
|
915
|
+
$state: string;
|
|
916
|
+
not?: true | undefined;
|
|
917
|
+
eq?: unknown;
|
|
918
|
+
neq?: unknown;
|
|
919
|
+
gt?: number | undefined;
|
|
920
|
+
gte?: number | undefined;
|
|
921
|
+
lt?: number | undefined;
|
|
922
|
+
lte?: number | undefined;
|
|
923
|
+
}>>>]>>;
|
|
735
924
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
736
925
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
737
926
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -760,7 +949,34 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
760
949
|
lt?: number | undefined;
|
|
761
950
|
lte?: number | undefined;
|
|
762
951
|
}>>, _$zod.ZodObject<{
|
|
763
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
952
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
953
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
954
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
955
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
956
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
957
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
958
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
959
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
960
|
+
$state: _$zod.ZodString;
|
|
961
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
962
|
+
$state: string;
|
|
963
|
+
not?: true | undefined;
|
|
964
|
+
eq?: unknown;
|
|
965
|
+
neq?: unknown;
|
|
966
|
+
gt?: number | undefined;
|
|
967
|
+
gte?: number | undefined;
|
|
968
|
+
lt?: number | undefined;
|
|
969
|
+
lte?: number | undefined;
|
|
970
|
+
}, {
|
|
971
|
+
$state: string;
|
|
972
|
+
not?: true | undefined;
|
|
973
|
+
eq?: unknown;
|
|
974
|
+
neq?: unknown;
|
|
975
|
+
gt?: number | undefined;
|
|
976
|
+
gte?: number | undefined;
|
|
977
|
+
lt?: number | undefined;
|
|
978
|
+
lte?: number | undefined;
|
|
979
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
764
980
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
765
981
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
766
982
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -787,8 +1003,8 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
787
1003
|
gte?: number | undefined;
|
|
788
1004
|
lt?: number | undefined;
|
|
789
1005
|
lte?: number | undefined;
|
|
790
|
-
}
|
|
791
|
-
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1006
|
+
}>>>]>>;
|
|
1007
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
792
1008
|
__ref: _$zod.ZodString;
|
|
793
1009
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
794
1010
|
$state: string;
|
|
@@ -838,7 +1054,34 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
838
1054
|
lt?: number | undefined;
|
|
839
1055
|
lte?: number | undefined;
|
|
840
1056
|
}>>, _$zod.ZodObject<{
|
|
841
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1057
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1058
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1059
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1060
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1061
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1062
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1063
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1064
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1065
|
+
$state: _$zod.ZodString;
|
|
1066
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1067
|
+
$state: string;
|
|
1068
|
+
not?: true | undefined;
|
|
1069
|
+
eq?: unknown;
|
|
1070
|
+
neq?: unknown;
|
|
1071
|
+
gt?: number | undefined;
|
|
1072
|
+
gte?: number | undefined;
|
|
1073
|
+
lt?: number | undefined;
|
|
1074
|
+
lte?: number | undefined;
|
|
1075
|
+
}, {
|
|
1076
|
+
$state: string;
|
|
1077
|
+
not?: true | undefined;
|
|
1078
|
+
eq?: unknown;
|
|
1079
|
+
neq?: unknown;
|
|
1080
|
+
gt?: number | undefined;
|
|
1081
|
+
gte?: number | undefined;
|
|
1082
|
+
lt?: number | undefined;
|
|
1083
|
+
lte?: number | undefined;
|
|
1084
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
842
1085
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
843
1086
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
844
1087
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -865,7 +1108,7 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
865
1108
|
gte?: number | undefined;
|
|
866
1109
|
lt?: number | undefined;
|
|
867
1110
|
lte?: number | undefined;
|
|
868
|
-
}
|
|
1111
|
+
}>>>]>>;
|
|
869
1112
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
870
1113
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
871
1114
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -894,7 +1137,34 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
894
1137
|
lt?: number | undefined;
|
|
895
1138
|
lte?: number | undefined;
|
|
896
1139
|
}>>, _$zod.ZodObject<{
|
|
897
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1140
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1141
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1142
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1143
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1144
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1145
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1146
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1147
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1148
|
+
$state: _$zod.ZodString;
|
|
1149
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1150
|
+
$state: string;
|
|
1151
|
+
not?: true | undefined;
|
|
1152
|
+
eq?: unknown;
|
|
1153
|
+
neq?: unknown;
|
|
1154
|
+
gt?: number | undefined;
|
|
1155
|
+
gte?: number | undefined;
|
|
1156
|
+
lt?: number | undefined;
|
|
1157
|
+
lte?: number | undefined;
|
|
1158
|
+
}, {
|
|
1159
|
+
$state: string;
|
|
1160
|
+
not?: true | undefined;
|
|
1161
|
+
eq?: unknown;
|
|
1162
|
+
neq?: unknown;
|
|
1163
|
+
gt?: number | undefined;
|
|
1164
|
+
gte?: number | undefined;
|
|
1165
|
+
lt?: number | undefined;
|
|
1166
|
+
lte?: number | undefined;
|
|
1167
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
898
1168
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
899
1169
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
900
1170
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -921,8 +1191,8 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
921
1191
|
gte?: number | undefined;
|
|
922
1192
|
lt?: number | undefined;
|
|
923
1193
|
lte?: number | undefined;
|
|
924
|
-
}
|
|
925
|
-
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1194
|
+
}>>>]>>;
|
|
1195
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
926
1196
|
__ref: _$zod.ZodString;
|
|
927
1197
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
928
1198
|
$state: string;
|
|
@@ -1015,6 +1285,12 @@ declare function loadV1Artifact(studio: V1Artifact, options?: LoadV1Options): Co
|
|
|
1015
1285
|
}: ComputedInput) => string[];
|
|
1016
1286
|
}, false>, "ref"> & {
|
|
1017
1287
|
ref<const Path extends PathOf<"component">>(path: Path): ComponentReference<ComponentContractOf<Path>>;
|
|
1288
|
+
slots: typeof listSlots;
|
|
1289
|
+
slot: typeof slotOf;
|
|
1290
|
+
slotHostedBy: typeof slotHostedBy;
|
|
1291
|
+
namedSlots: typeof namedSlots;
|
|
1292
|
+
cell: typeof cellAt;
|
|
1293
|
+
instance: typeof instanceAt;
|
|
1018
1294
|
};
|
|
1019
1295
|
modifiers: EntityClass<_$zod.ZodObject<{
|
|
1020
1296
|
type: _$zod.ZodEnum<{
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A prop declaration gains an optional `when`: the condition under which the prop applies, in the
|
|
3
|
+
* record a style rule's `when` already uses — each key a sibling prop, each value one of that
|
|
4
|
+
* prop's values (stored as a `value:<prop>/<name>` ref) or a list of them. A declaration without
|
|
5
|
+
* one applies always, which is what every declaration stored before this version meant.
|
|
6
|
+
*
|
|
7
|
+
* A component also gains `renderProps`: the names its render reads beyond the declared props, read
|
|
8
|
+
* off the source at build the way `anatomy` is, so a component painted out of its anatomy keeps them
|
|
9
|
+
* off its root.
|
|
10
|
+
*
|
|
11
|
+
* A stored anatomy node's `visible` gains two spellings. `false` is a position only an interaction
|
|
12
|
+
* shows: a slot the render places inside an overlay closed at rest, kept so the content is not
|
|
13
|
+
* appended elsewhere. A member of an `$or` may be a list of tests that must all hold, the way
|
|
14
|
+
* `a || (b && c)` reads. A condition stored before this version means what it meant.
|
|
15
|
+
*
|
|
16
|
+
* Additive; nothing stored before this version reshapes.
|
|
17
|
+
*
|
|
18
|
+
* Deletable once no stored artifact predates it.
|
|
19
|
+
*/
|
|
20
|
+
import type { SchemaMigration } from '../framework/schema-version';
|
|
21
|
+
export declare const PROP_CONDITIONS_AND_ANATOMY_POSITIONS_AT_REST_VERSION = 20260919051027;
|
|
22
|
+
export declare const propConditionsAndAnatomyPositionsAtRestMigration: SchemaMigration;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/migrations/20260919051027_prop_conditions_and_anatomy_positions_at_rest.ts
|
|
2
|
+
const PROP_CONDITIONS_AND_ANATOMY_POSITIONS_AT_REST_VERSION = 20260919051027;
|
|
3
|
+
const propConditionsAndAnatomyPositionsAtRestMigration = {
|
|
4
|
+
version: PROP_CONDITIONS_AND_ANATOMY_POSITIONS_AT_REST_VERSION,
|
|
5
|
+
up(json) {
|
|
6
|
+
return json;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { PROP_CONDITIONS_AND_ANATOMY_POSITIONS_AT_REST_VERSION, propConditionsAndAnatomyPositionsAtRestMigration };
|