@yahoo/uds-create-config 4.5.2 → 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 +8 -2
- package/dist/framework/Config.js +97 -23
- 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/source-integrity.d.ts +14 -1
- 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 +15 -12
- package/dist/index.js +7 -6
- 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,9 +1,13 @@
|
|
|
1
1
|
import { ExtendedRef, Ref } from "../../framework/utils/refs.js";
|
|
2
2
|
import { SubEntityClass } from "../../framework/defineSubEntity.js";
|
|
3
|
+
import { ComputedInput } from "../../framework/registry.js";
|
|
3
4
|
import { ComponentContractOf, PathOf } from "../../framework/registered.js";
|
|
4
5
|
import { EntityClass } from "../../framework/defineEntity.js";
|
|
5
6
|
import { Config } from "../../framework/Config.js";
|
|
6
|
-
import {
|
|
7
|
+
import { StoredPreviewCondition } from "../../framework/preview-store.js";
|
|
8
|
+
import { listSlots, namedSlots, slotHostedBy, slotOf } from "../../spec/slot.js";
|
|
9
|
+
import { cellAt } from "../../spec/cell.js";
|
|
10
|
+
import { instanceAt } from "../../spec/instance.js";
|
|
7
11
|
import { StyleValue } from "./style-bag.js";
|
|
8
12
|
import { AsInput, LayerMap, PhantomCallProps, PhantomReadProps, PropMap, RenderArgs, StyleRuleInput } from "./defineComponent.js";
|
|
9
13
|
import { z } from "zod";
|
|
@@ -52,6 +56,11 @@ declare const propShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
52
56
|
__ref: z.ZodString;
|
|
53
57
|
}, z.core.$strip>>]>>;
|
|
54
58
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
60
|
+
__ref: z.ZodString;
|
|
61
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
62
|
+
__ref: z.ZodString;
|
|
63
|
+
}, z.core.$strip>]>>]>>>;
|
|
55
64
|
}, z.core.$strict>, z.ZodObject<{
|
|
56
65
|
type: z.ZodLiteral<"variant">;
|
|
57
66
|
value: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
@@ -64,6 +73,11 @@ declare const propShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
64
73
|
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
65
74
|
}, z.core.$strict>>]>;
|
|
66
75
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
77
|
+
__ref: z.ZodString;
|
|
78
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
79
|
+
__ref: z.ZodString;
|
|
80
|
+
}, z.core.$strip>]>>]>>>;
|
|
67
81
|
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
68
82
|
type: z.ZodLiteral<"forward">;
|
|
69
83
|
target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -79,6 +93,11 @@ declare const propShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
79
93
|
}, z.core.$strip>>]>>;
|
|
80
94
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
81
95
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
97
|
+
__ref: z.ZodString;
|
|
98
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
99
|
+
__ref: z.ZodString;
|
|
100
|
+
}, z.core.$strip>]>>]>>>;
|
|
82
101
|
}, z.core.$strict>, z.ZodTransform<{
|
|
83
102
|
type: "forward";
|
|
84
103
|
target: string | {
|
|
@@ -94,6 +113,11 @@ declare const propShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
94
113
|
}[] | undefined;
|
|
95
114
|
text?: boolean | undefined;
|
|
96
115
|
required?: boolean | undefined;
|
|
116
|
+
when?: Record<string, string | number | boolean | {
|
|
117
|
+
__ref: string;
|
|
118
|
+
} | (string | number | boolean | {
|
|
119
|
+
__ref: string;
|
|
120
|
+
})[]> | undefined;
|
|
97
121
|
}, {
|
|
98
122
|
type: "forward";
|
|
99
123
|
target: string | {
|
|
@@ -109,33 +133,68 @@ declare const propShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
109
133
|
}[] | undefined;
|
|
110
134
|
text?: boolean | undefined;
|
|
111
135
|
required?: boolean | undefined;
|
|
136
|
+
when?: Record<string, string | number | boolean | {
|
|
137
|
+
__ref: string;
|
|
138
|
+
} | (string | number | boolean | {
|
|
139
|
+
__ref: string;
|
|
140
|
+
})[]> | undefined;
|
|
112
141
|
}>>, z.ZodObject<{
|
|
113
142
|
type: z.ZodLiteral<"styleProperty">;
|
|
114
143
|
value: z.ZodObject<{
|
|
115
144
|
__ref: z.ZodString;
|
|
116
145
|
}, z.core.$strip>;
|
|
146
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
147
|
+
__ref: z.ZodString;
|
|
148
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
149
|
+
__ref: z.ZodString;
|
|
150
|
+
}, z.core.$strip>]>>]>>>;
|
|
117
151
|
}, z.core.$strict>, z.ZodObject<{
|
|
118
152
|
type: z.ZodLiteral<"composite">;
|
|
119
153
|
value: z.ZodObject<{
|
|
120
154
|
__ref: z.ZodString;
|
|
121
155
|
}, z.core.$strip>;
|
|
156
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
157
|
+
__ref: z.ZodString;
|
|
158
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
159
|
+
__ref: z.ZodString;
|
|
160
|
+
}, z.core.$strip>]>>]>>>;
|
|
122
161
|
}, z.core.$strict>, z.ZodObject<{
|
|
123
162
|
type: z.ZodLiteral<"motion">;
|
|
124
163
|
value: z.ZodDefault<z.ZodObject<{
|
|
125
164
|
__ref: z.ZodString;
|
|
126
165
|
}, z.core.$strip>>;
|
|
166
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
167
|
+
__ref: z.ZodString;
|
|
168
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
169
|
+
__ref: z.ZodString;
|
|
170
|
+
}, z.core.$strip>]>>]>>>;
|
|
127
171
|
}, z.core.$strict>, z.ZodObject<{
|
|
128
172
|
type: z.ZodLiteral<"string">;
|
|
129
173
|
value: z.ZodOptional<z.ZodString>;
|
|
130
174
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
176
|
+
__ref: z.ZodString;
|
|
177
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
178
|
+
__ref: z.ZodString;
|
|
179
|
+
}, z.core.$strip>]>>]>>>;
|
|
131
180
|
}, z.core.$strict>, z.ZodObject<{
|
|
132
181
|
type: z.ZodLiteral<"number">;
|
|
133
182
|
value: z.ZodOptional<z.ZodNumber>;
|
|
134
183
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
185
|
+
__ref: z.ZodString;
|
|
186
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
187
|
+
__ref: z.ZodString;
|
|
188
|
+
}, z.core.$strip>]>>]>>>;
|
|
135
189
|
}, z.core.$strict>, z.ZodObject<{
|
|
136
190
|
type: z.ZodLiteral<"boolean">;
|
|
137
191
|
value: z.ZodOptional<z.ZodBoolean>;
|
|
138
192
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
194
|
+
__ref: z.ZodString;
|
|
195
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
196
|
+
__ref: z.ZodString;
|
|
197
|
+
}, z.core.$strip>]>>]>>>;
|
|
139
198
|
}, z.core.$strict>], "type">;
|
|
140
199
|
/** Nullable because `null` is the omit tombstone: a component that `inherits` its element's props
|
|
141
200
|
* drops one by declaring it `null`, rather than needing a second "don't expose" mechanism. */
|
|
@@ -198,7 +257,7 @@ declare const visibility: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
198
257
|
lt?: number | undefined;
|
|
199
258
|
lte?: number | undefined;
|
|
200
259
|
}>>, z.ZodObject<{
|
|
201
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
260
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
202
261
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
203
262
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
204
263
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -225,7 +284,34 @@ declare const visibility: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
225
284
|
gte?: number | undefined;
|
|
226
285
|
lt?: number | undefined;
|
|
227
286
|
lte?: number | undefined;
|
|
228
|
-
}
|
|
287
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
288
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
289
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
290
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
291
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
$state: z.ZodString;
|
|
296
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
297
|
+
$state: string;
|
|
298
|
+
not?: true | undefined;
|
|
299
|
+
eq?: unknown;
|
|
300
|
+
neq?: unknown;
|
|
301
|
+
gt?: number | undefined;
|
|
302
|
+
gte?: number | undefined;
|
|
303
|
+
lt?: number | undefined;
|
|
304
|
+
lte?: number | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
$state: string;
|
|
307
|
+
not?: true | undefined;
|
|
308
|
+
eq?: unknown;
|
|
309
|
+
neq?: unknown;
|
|
310
|
+
gt?: number | undefined;
|
|
311
|
+
gte?: number | undefined;
|
|
312
|
+
lt?: number | undefined;
|
|
313
|
+
lte?: number | undefined;
|
|
314
|
+
}>>>]>>;
|
|
229
315
|
}, z.core.$strict>, z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
230
316
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
231
317
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -254,7 +340,34 @@ declare const visibility: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
254
340
|
lt?: number | undefined;
|
|
255
341
|
lte?: number | undefined;
|
|
256
342
|
}>>, z.ZodObject<{
|
|
257
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
343
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
344
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
345
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
346
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
347
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
$state: z.ZodString;
|
|
352
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
353
|
+
$state: string;
|
|
354
|
+
not?: true | undefined;
|
|
355
|
+
eq?: unknown;
|
|
356
|
+
neq?: unknown;
|
|
357
|
+
gt?: number | undefined;
|
|
358
|
+
gte?: number | undefined;
|
|
359
|
+
lt?: number | undefined;
|
|
360
|
+
lte?: number | undefined;
|
|
361
|
+
}, {
|
|
362
|
+
$state: string;
|
|
363
|
+
not?: true | undefined;
|
|
364
|
+
eq?: unknown;
|
|
365
|
+
neq?: unknown;
|
|
366
|
+
gt?: number | undefined;
|
|
367
|
+
gte?: number | undefined;
|
|
368
|
+
lt?: number | undefined;
|
|
369
|
+
lte?: number | undefined;
|
|
370
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
258
371
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
259
372
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
260
373
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -281,8 +394,8 @@ declare const visibility: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
281
394
|
gte?: number | undefined;
|
|
282
395
|
lt?: number | undefined;
|
|
283
396
|
lte?: number | undefined;
|
|
284
|
-
}
|
|
285
|
-
}, z.core.$strict>]>>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
397
|
+
}>>>]>>;
|
|
398
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
286
399
|
__ref: z.ZodString;
|
|
287
400
|
}, z.core.$strip>]>>, z.ZodTransform<{
|
|
288
401
|
$state: string;
|
|
@@ -337,6 +450,11 @@ declare const componentFields: z.ZodObject<{
|
|
|
337
450
|
__ref: z.ZodString;
|
|
338
451
|
}, z.core.$strip>>]>>;
|
|
339
452
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
453
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
454
|
+
__ref: z.ZodString;
|
|
455
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
456
|
+
__ref: z.ZodString;
|
|
457
|
+
}, z.core.$strip>]>>]>>>;
|
|
340
458
|
}, z.core.$strict>, z.ZodObject<{
|
|
341
459
|
type: z.ZodLiteral<"variant">;
|
|
342
460
|
value: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
@@ -349,6 +467,11 @@ declare const componentFields: z.ZodObject<{
|
|
|
349
467
|
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
350
468
|
}, z.core.$strict>>]>;
|
|
351
469
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
470
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
471
|
+
__ref: z.ZodString;
|
|
472
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
473
|
+
__ref: z.ZodString;
|
|
474
|
+
}, z.core.$strip>]>>]>>>;
|
|
352
475
|
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
353
476
|
type: z.ZodLiteral<"forward">;
|
|
354
477
|
target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -364,6 +487,11 @@ declare const componentFields: z.ZodObject<{
|
|
|
364
487
|
}, z.core.$strip>>]>>;
|
|
365
488
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
366
489
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
490
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
491
|
+
__ref: z.ZodString;
|
|
492
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
493
|
+
__ref: z.ZodString;
|
|
494
|
+
}, z.core.$strip>]>>]>>>;
|
|
367
495
|
}, z.core.$strict>, z.ZodTransform<{
|
|
368
496
|
type: "forward";
|
|
369
497
|
target: string | {
|
|
@@ -379,6 +507,11 @@ declare const componentFields: z.ZodObject<{
|
|
|
379
507
|
}[] | undefined;
|
|
380
508
|
text?: boolean | undefined;
|
|
381
509
|
required?: boolean | undefined;
|
|
510
|
+
when?: Record<string, string | number | boolean | {
|
|
511
|
+
__ref: string;
|
|
512
|
+
} | (string | number | boolean | {
|
|
513
|
+
__ref: string;
|
|
514
|
+
})[]> | undefined;
|
|
382
515
|
}, {
|
|
383
516
|
type: "forward";
|
|
384
517
|
target: string | {
|
|
@@ -394,45 +527,77 @@ declare const componentFields: z.ZodObject<{
|
|
|
394
527
|
}[] | undefined;
|
|
395
528
|
text?: boolean | undefined;
|
|
396
529
|
required?: boolean | undefined;
|
|
530
|
+
when?: Record<string, string | number | boolean | {
|
|
531
|
+
__ref: string;
|
|
532
|
+
} | (string | number | boolean | {
|
|
533
|
+
__ref: string;
|
|
534
|
+
})[]> | undefined;
|
|
397
535
|
}>>, z.ZodObject<{
|
|
398
536
|
type: z.ZodLiteral<"styleProperty">;
|
|
399
537
|
value: z.ZodObject<{
|
|
400
538
|
__ref: z.ZodString;
|
|
401
539
|
}, z.core.$strip>;
|
|
540
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
541
|
+
__ref: z.ZodString;
|
|
542
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
543
|
+
__ref: z.ZodString;
|
|
544
|
+
}, z.core.$strip>]>>]>>>;
|
|
402
545
|
}, z.core.$strict>, z.ZodObject<{
|
|
403
546
|
type: z.ZodLiteral<"composite">;
|
|
404
547
|
value: z.ZodObject<{
|
|
405
548
|
__ref: z.ZodString;
|
|
406
549
|
}, z.core.$strip>;
|
|
550
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
551
|
+
__ref: z.ZodString;
|
|
552
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
553
|
+
__ref: z.ZodString;
|
|
554
|
+
}, z.core.$strip>]>>]>>>;
|
|
407
555
|
}, z.core.$strict>, z.ZodObject<{
|
|
408
556
|
type: z.ZodLiteral<"motion">;
|
|
409
557
|
value: z.ZodDefault<z.ZodObject<{
|
|
410
558
|
__ref: z.ZodString;
|
|
411
559
|
}, z.core.$strip>>;
|
|
560
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
561
|
+
__ref: z.ZodString;
|
|
562
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
563
|
+
__ref: z.ZodString;
|
|
564
|
+
}, z.core.$strip>]>>]>>>;
|
|
412
565
|
}, z.core.$strict>, z.ZodObject<{
|
|
413
566
|
type: z.ZodLiteral<"string">;
|
|
414
567
|
value: z.ZodOptional<z.ZodString>;
|
|
415
568
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
569
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
570
|
+
__ref: z.ZodString;
|
|
571
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
572
|
+
__ref: z.ZodString;
|
|
573
|
+
}, z.core.$strip>]>>]>>>;
|
|
416
574
|
}, z.core.$strict>, z.ZodObject<{
|
|
417
575
|
type: z.ZodLiteral<"number">;
|
|
418
576
|
value: z.ZodOptional<z.ZodNumber>;
|
|
419
577
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
578
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
579
|
+
__ref: z.ZodString;
|
|
580
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
581
|
+
__ref: z.ZodString;
|
|
582
|
+
}, z.core.$strip>]>>]>>>;
|
|
420
583
|
}, z.core.$strict>, z.ZodObject<{
|
|
421
584
|
type: z.ZodLiteral<"boolean">;
|
|
422
585
|
value: z.ZodOptional<z.ZodBoolean>;
|
|
423
586
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
587
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
588
|
+
__ref: z.ZodString;
|
|
589
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
590
|
+
__ref: z.ZodString;
|
|
591
|
+
}, z.core.$strip>]>>]>>>;
|
|
424
592
|
}, z.core.$strict>], "type">>>>;
|
|
425
593
|
forwards: z.ZodOptional<SubEntityClass<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
|
|
426
594
|
__ref: z.ZodString;
|
|
427
595
|
}, z.core.$strip>>]>>>;
|
|
428
596
|
styles: z.ZodOptional<SubEntityClass<z.ZodType<ComponentStyleBody, unknown, z.core.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
597
|
+
renderProps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
429
598
|
anatomy: z.ZodOptional<SubEntityClass<z.ZodType<ComponentElementBody, unknown, z.core.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
430
599
|
defaultProps: z.ZodOptional<SubEntityClass<z.ZodType<StyleValue, unknown, z.core.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
431
|
-
|
|
432
|
-
previewWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
433
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
434
|
-
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
435
|
-
}, z.core.$strip>>>;
|
|
600
|
+
preview: z.ZodOptional<SubEntityClass<z.ZodType<StoredPreviewCondition, unknown, z.core.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
436
601
|
file: z.ZodOptional<z.ZodObject<{
|
|
437
602
|
__ref: z.ZodString;
|
|
438
603
|
}, z.core.$strip>>;
|
|
@@ -471,6 +636,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
471
636
|
__ref: z.ZodString;
|
|
472
637
|
}, z.core.$strip>>]>>;
|
|
473
638
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
639
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
640
|
+
__ref: z.ZodString;
|
|
641
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
642
|
+
__ref: z.ZodString;
|
|
643
|
+
}, z.core.$strip>]>>]>>>;
|
|
474
644
|
}, z.core.$strict>, z.ZodObject<{
|
|
475
645
|
type: z.ZodLiteral<"variant">;
|
|
476
646
|
value: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
@@ -483,6 +653,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
483
653
|
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
484
654
|
}, z.core.$strict>>]>;
|
|
485
655
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
656
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
657
|
+
__ref: z.ZodString;
|
|
658
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
659
|
+
__ref: z.ZodString;
|
|
660
|
+
}, z.core.$strip>]>>]>>>;
|
|
486
661
|
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
487
662
|
type: z.ZodLiteral<"forward">;
|
|
488
663
|
target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -498,6 +673,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
498
673
|
}, z.core.$strip>>]>>;
|
|
499
674
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
500
675
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
676
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
677
|
+
__ref: z.ZodString;
|
|
678
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
679
|
+
__ref: z.ZodString;
|
|
680
|
+
}, z.core.$strip>]>>]>>>;
|
|
501
681
|
}, z.core.$strict>, z.ZodTransform<{
|
|
502
682
|
type: "forward";
|
|
503
683
|
target: string | {
|
|
@@ -513,6 +693,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
513
693
|
}[] | undefined;
|
|
514
694
|
text?: boolean | undefined;
|
|
515
695
|
required?: boolean | undefined;
|
|
696
|
+
when?: Record<string, string | number | boolean | {
|
|
697
|
+
__ref: string;
|
|
698
|
+
} | (string | number | boolean | {
|
|
699
|
+
__ref: string;
|
|
700
|
+
})[]> | undefined;
|
|
516
701
|
}, {
|
|
517
702
|
type: "forward";
|
|
518
703
|
target: string | {
|
|
@@ -528,45 +713,77 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
528
713
|
}[] | undefined;
|
|
529
714
|
text?: boolean | undefined;
|
|
530
715
|
required?: boolean | undefined;
|
|
716
|
+
when?: Record<string, string | number | boolean | {
|
|
717
|
+
__ref: string;
|
|
718
|
+
} | (string | number | boolean | {
|
|
719
|
+
__ref: string;
|
|
720
|
+
})[]> | undefined;
|
|
531
721
|
}>>, z.ZodObject<{
|
|
532
722
|
type: z.ZodLiteral<"styleProperty">;
|
|
533
723
|
value: z.ZodObject<{
|
|
534
724
|
__ref: z.ZodString;
|
|
535
725
|
}, z.core.$strip>;
|
|
726
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
727
|
+
__ref: z.ZodString;
|
|
728
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
729
|
+
__ref: z.ZodString;
|
|
730
|
+
}, z.core.$strip>]>>]>>>;
|
|
536
731
|
}, z.core.$strict>, z.ZodObject<{
|
|
537
732
|
type: z.ZodLiteral<"composite">;
|
|
538
733
|
value: z.ZodObject<{
|
|
539
734
|
__ref: z.ZodString;
|
|
540
735
|
}, z.core.$strip>;
|
|
736
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
737
|
+
__ref: z.ZodString;
|
|
738
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
739
|
+
__ref: z.ZodString;
|
|
740
|
+
}, z.core.$strip>]>>]>>>;
|
|
541
741
|
}, z.core.$strict>, z.ZodObject<{
|
|
542
742
|
type: z.ZodLiteral<"motion">;
|
|
543
743
|
value: z.ZodDefault<z.ZodObject<{
|
|
544
744
|
__ref: z.ZodString;
|
|
545
745
|
}, z.core.$strip>>;
|
|
746
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
747
|
+
__ref: z.ZodString;
|
|
748
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
749
|
+
__ref: z.ZodString;
|
|
750
|
+
}, z.core.$strip>]>>]>>>;
|
|
546
751
|
}, z.core.$strict>, z.ZodObject<{
|
|
547
752
|
type: z.ZodLiteral<"string">;
|
|
548
753
|
value: z.ZodOptional<z.ZodString>;
|
|
549
754
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
756
|
+
__ref: z.ZodString;
|
|
757
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
758
|
+
__ref: z.ZodString;
|
|
759
|
+
}, z.core.$strip>]>>]>>>;
|
|
550
760
|
}, z.core.$strict>, z.ZodObject<{
|
|
551
761
|
type: z.ZodLiteral<"number">;
|
|
552
762
|
value: z.ZodOptional<z.ZodNumber>;
|
|
553
763
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
764
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
765
|
+
__ref: z.ZodString;
|
|
766
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
767
|
+
__ref: z.ZodString;
|
|
768
|
+
}, z.core.$strip>]>>]>>>;
|
|
554
769
|
}, z.core.$strict>, z.ZodObject<{
|
|
555
770
|
type: z.ZodLiteral<"boolean">;
|
|
556
771
|
value: z.ZodOptional<z.ZodBoolean>;
|
|
557
772
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
773
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
774
|
+
__ref: z.ZodString;
|
|
775
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
776
|
+
__ref: z.ZodString;
|
|
777
|
+
}, z.core.$strip>]>>]>>>;
|
|
558
778
|
}, z.core.$strict>], "type">>>>;
|
|
559
779
|
forwards: z.ZodOptional<SubEntityClass<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
|
|
560
780
|
__ref: z.ZodString;
|
|
561
781
|
}, z.core.$strip>>]>>>;
|
|
562
782
|
styles: z.ZodOptional<SubEntityClass<z.ZodType<ComponentStyleBody, unknown, z.core.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
783
|
+
renderProps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
563
784
|
anatomy: z.ZodOptional<SubEntityClass<z.ZodType<ComponentElementBody, unknown, z.core.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
564
785
|
defaultProps: z.ZodOptional<SubEntityClass<z.ZodType<StyleValue, unknown, z.core.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
565
|
-
|
|
566
|
-
previewWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
567
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
568
|
-
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
569
|
-
}, z.core.$strip>>>;
|
|
786
|
+
preview: z.ZodOptional<SubEntityClass<z.ZodType<StoredPreviewCondition, unknown, z.core.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
570
787
|
file: z.ZodOptional<z.ZodObject<{
|
|
571
788
|
__ref: z.ZodString;
|
|
572
789
|
}, z.core.$strip>>;
|
|
@@ -589,6 +806,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
589
806
|
__ref: z.ZodString;
|
|
590
807
|
}, z.core.$strip>>]>>;
|
|
591
808
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
809
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
810
|
+
__ref: z.ZodString;
|
|
811
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
812
|
+
__ref: z.ZodString;
|
|
813
|
+
}, z.core.$strip>]>>]>>>;
|
|
592
814
|
}, z.core.$strict>, z.ZodObject<{
|
|
593
815
|
type: z.ZodLiteral<"variant">;
|
|
594
816
|
value: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
@@ -601,6 +823,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
601
823
|
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
602
824
|
}, z.core.$strict>>]>;
|
|
603
825
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
826
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
827
|
+
__ref: z.ZodString;
|
|
828
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
829
|
+
__ref: z.ZodString;
|
|
830
|
+
}, z.core.$strip>]>>]>>>;
|
|
604
831
|
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
605
832
|
type: z.ZodLiteral<"forward">;
|
|
606
833
|
target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -616,6 +843,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
616
843
|
}, z.core.$strip>>]>>;
|
|
617
844
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
618
845
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
846
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
847
|
+
__ref: z.ZodString;
|
|
848
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
849
|
+
__ref: z.ZodString;
|
|
850
|
+
}, z.core.$strip>]>>]>>>;
|
|
619
851
|
}, z.core.$strict>, z.ZodTransform<{
|
|
620
852
|
type: "forward";
|
|
621
853
|
target: string | {
|
|
@@ -631,6 +863,11 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
631
863
|
}[] | undefined;
|
|
632
864
|
text?: boolean | undefined;
|
|
633
865
|
required?: boolean | undefined;
|
|
866
|
+
when?: Record<string, string | number | boolean | {
|
|
867
|
+
__ref: string;
|
|
868
|
+
} | (string | number | boolean | {
|
|
869
|
+
__ref: string;
|
|
870
|
+
})[]> | undefined;
|
|
634
871
|
}, {
|
|
635
872
|
type: "forward";
|
|
636
873
|
target: string | {
|
|
@@ -646,51 +883,83 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
646
883
|
}[] | undefined;
|
|
647
884
|
text?: boolean | undefined;
|
|
648
885
|
required?: boolean | undefined;
|
|
886
|
+
when?: Record<string, string | number | boolean | {
|
|
887
|
+
__ref: string;
|
|
888
|
+
} | (string | number | boolean | {
|
|
889
|
+
__ref: string;
|
|
890
|
+
})[]> | undefined;
|
|
649
891
|
}>>, z.ZodObject<{
|
|
650
892
|
type: z.ZodLiteral<"styleProperty">;
|
|
651
893
|
value: z.ZodObject<{
|
|
652
894
|
__ref: z.ZodString;
|
|
653
895
|
}, z.core.$strip>;
|
|
896
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
897
|
+
__ref: z.ZodString;
|
|
898
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
899
|
+
__ref: z.ZodString;
|
|
900
|
+
}, z.core.$strip>]>>]>>>;
|
|
654
901
|
}, z.core.$strict>, z.ZodObject<{
|
|
655
902
|
type: z.ZodLiteral<"composite">;
|
|
656
903
|
value: z.ZodObject<{
|
|
657
904
|
__ref: z.ZodString;
|
|
658
905
|
}, z.core.$strip>;
|
|
906
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
907
|
+
__ref: z.ZodString;
|
|
908
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
909
|
+
__ref: z.ZodString;
|
|
910
|
+
}, z.core.$strip>]>>]>>>;
|
|
659
911
|
}, z.core.$strict>, z.ZodObject<{
|
|
660
912
|
type: z.ZodLiteral<"motion">;
|
|
661
913
|
value: z.ZodDefault<z.ZodObject<{
|
|
662
914
|
__ref: z.ZodString;
|
|
663
915
|
}, z.core.$strip>>;
|
|
916
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
917
|
+
__ref: z.ZodString;
|
|
918
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
919
|
+
__ref: z.ZodString;
|
|
920
|
+
}, z.core.$strip>]>>]>>>;
|
|
664
921
|
}, z.core.$strict>, z.ZodObject<{
|
|
665
922
|
type: z.ZodLiteral<"string">;
|
|
666
923
|
value: z.ZodOptional<z.ZodString>;
|
|
667
924
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
925
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
926
|
+
__ref: z.ZodString;
|
|
927
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
928
|
+
__ref: z.ZodString;
|
|
929
|
+
}, z.core.$strip>]>>]>>>;
|
|
668
930
|
}, z.core.$strict>, z.ZodObject<{
|
|
669
931
|
type: z.ZodLiteral<"number">;
|
|
670
932
|
value: z.ZodOptional<z.ZodNumber>;
|
|
671
933
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
934
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
935
|
+
__ref: z.ZodString;
|
|
936
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
937
|
+
__ref: z.ZodString;
|
|
938
|
+
}, z.core.$strip>]>>]>>>;
|
|
672
939
|
}, z.core.$strict>, z.ZodObject<{
|
|
673
940
|
type: z.ZodLiteral<"boolean">;
|
|
674
941
|
value: z.ZodOptional<z.ZodBoolean>;
|
|
675
942
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
943
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
944
|
+
__ref: z.ZodString;
|
|
945
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
946
|
+
__ref: z.ZodString;
|
|
947
|
+
}, z.core.$strip>]>>]>>>;
|
|
676
948
|
}, z.core.$strict>], "type">>>>;
|
|
677
949
|
forwards: z.ZodOptional<SubEntityClass<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
|
|
678
950
|
__ref: z.ZodString;
|
|
679
951
|
}, z.core.$strip>>]>>>;
|
|
680
952
|
styles: z.ZodOptional<SubEntityClass<z.ZodType<ComponentStyleBody, unknown, z.core.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
953
|
+
renderProps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
681
954
|
anatomy: z.ZodOptional<SubEntityClass<z.ZodType<ComponentElementBody, unknown, z.core.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
682
955
|
defaultProps: z.ZodOptional<SubEntityClass<z.ZodType<StyleValue, unknown, z.core.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
683
|
-
|
|
684
|
-
previewWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
685
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
686
|
-
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
687
|
-
}, z.core.$strip>>>;
|
|
956
|
+
preview: z.ZodOptional<SubEntityClass<z.ZodType<StoredPreviewCondition, unknown, z.core.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
688
957
|
file: z.ZodOptional<z.ZodObject<{
|
|
689
958
|
__ref: z.ZodString;
|
|
690
959
|
}, z.core.$strip>>;
|
|
691
960
|
export: z.ZodOptional<z.ZodString>;
|
|
692
961
|
}, z.core.$strict>;
|
|
693
|
-
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 `
|
|
962
|
+
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.";
|
|
694
963
|
readonly example: ({
|
|
695
964
|
config
|
|
696
965
|
}: {
|
|
@@ -811,7 +1080,7 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
811
1080
|
lt?: number | undefined;
|
|
812
1081
|
lte?: number | undefined;
|
|
813
1082
|
}>>, z.ZodObject<{
|
|
814
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1083
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
815
1084
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
816
1085
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
817
1086
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -838,7 +1107,34 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
838
1107
|
gte?: number | undefined;
|
|
839
1108
|
lt?: number | undefined;
|
|
840
1109
|
lte?: number | undefined;
|
|
841
|
-
}
|
|
1110
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1111
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1112
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1113
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
1114
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
1115
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
1116
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
1117
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
1118
|
+
$state: z.ZodString;
|
|
1119
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1120
|
+
$state: string;
|
|
1121
|
+
not?: true | undefined;
|
|
1122
|
+
eq?: unknown;
|
|
1123
|
+
neq?: unknown;
|
|
1124
|
+
gt?: number | undefined;
|
|
1125
|
+
gte?: number | undefined;
|
|
1126
|
+
lt?: number | undefined;
|
|
1127
|
+
lte?: number | undefined;
|
|
1128
|
+
}, {
|
|
1129
|
+
$state: string;
|
|
1130
|
+
not?: true | undefined;
|
|
1131
|
+
eq?: unknown;
|
|
1132
|
+
neq?: unknown;
|
|
1133
|
+
gt?: number | undefined;
|
|
1134
|
+
gte?: number | undefined;
|
|
1135
|
+
lt?: number | undefined;
|
|
1136
|
+
lte?: number | undefined;
|
|
1137
|
+
}>>>]>>;
|
|
842
1138
|
}, z.core.$strict>, z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
843
1139
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
844
1140
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -867,7 +1163,34 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
867
1163
|
lt?: number | undefined;
|
|
868
1164
|
lte?: number | undefined;
|
|
869
1165
|
}>>, z.ZodObject<{
|
|
870
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1166
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1167
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1168
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1169
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
1170
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
1171
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
1172
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
1173
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
1174
|
+
$state: z.ZodString;
|
|
1175
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1176
|
+
$state: string;
|
|
1177
|
+
not?: true | undefined;
|
|
1178
|
+
eq?: unknown;
|
|
1179
|
+
neq?: unknown;
|
|
1180
|
+
gt?: number | undefined;
|
|
1181
|
+
gte?: number | undefined;
|
|
1182
|
+
lt?: number | undefined;
|
|
1183
|
+
lte?: number | undefined;
|
|
1184
|
+
}, {
|
|
1185
|
+
$state: string;
|
|
1186
|
+
not?: true | undefined;
|
|
1187
|
+
eq?: unknown;
|
|
1188
|
+
neq?: unknown;
|
|
1189
|
+
gt?: number | undefined;
|
|
1190
|
+
gte?: number | undefined;
|
|
1191
|
+
lt?: number | undefined;
|
|
1192
|
+
lte?: number | undefined;
|
|
1193
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
871
1194
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
872
1195
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
873
1196
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -894,8 +1217,8 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
894
1217
|
gte?: number | undefined;
|
|
895
1218
|
lt?: number | undefined;
|
|
896
1219
|
lte?: number | undefined;
|
|
897
|
-
}
|
|
898
|
-
}, z.core.$strict>]>>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1220
|
+
}>>>]>>;
|
|
1221
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
899
1222
|
__ref: z.ZodString;
|
|
900
1223
|
}, z.core.$strip>]>>, z.ZodTransform<{
|
|
901
1224
|
$state: string;
|
|
@@ -944,7 +1267,34 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
944
1267
|
lt?: number | undefined;
|
|
945
1268
|
lte?: number | undefined;
|
|
946
1269
|
}>>, z.ZodObject<{
|
|
947
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1270
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1271
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1272
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1273
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
1274
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
1275
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
1276
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
1277
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
1278
|
+
$state: z.ZodString;
|
|
1279
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1280
|
+
$state: string;
|
|
1281
|
+
not?: true | undefined;
|
|
1282
|
+
eq?: unknown;
|
|
1283
|
+
neq?: unknown;
|
|
1284
|
+
gt?: number | undefined;
|
|
1285
|
+
gte?: number | undefined;
|
|
1286
|
+
lt?: number | undefined;
|
|
1287
|
+
lte?: number | undefined;
|
|
1288
|
+
}, {
|
|
1289
|
+
$state: string;
|
|
1290
|
+
not?: true | undefined;
|
|
1291
|
+
eq?: unknown;
|
|
1292
|
+
neq?: unknown;
|
|
1293
|
+
gt?: number | undefined;
|
|
1294
|
+
gte?: number | undefined;
|
|
1295
|
+
lt?: number | undefined;
|
|
1296
|
+
lte?: number | undefined;
|
|
1297
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
948
1298
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
949
1299
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
950
1300
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -971,7 +1321,7 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
971
1321
|
gte?: number | undefined;
|
|
972
1322
|
lt?: number | undefined;
|
|
973
1323
|
lte?: number | undefined;
|
|
974
|
-
}
|
|
1324
|
+
}>>>]>>;
|
|
975
1325
|
}, z.core.$strict>, z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
976
1326
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
977
1327
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1000,7 +1350,34 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
1000
1350
|
lt?: number | undefined;
|
|
1001
1351
|
lte?: number | undefined;
|
|
1002
1352
|
}>>, z.ZodObject<{
|
|
1003
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1353
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1354
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1355
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1356
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
1357
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
1358
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
1359
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
1360
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
1361
|
+
$state: z.ZodString;
|
|
1362
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1363
|
+
$state: string;
|
|
1364
|
+
not?: true | undefined;
|
|
1365
|
+
eq?: unknown;
|
|
1366
|
+
neq?: unknown;
|
|
1367
|
+
gt?: number | undefined;
|
|
1368
|
+
gte?: number | undefined;
|
|
1369
|
+
lt?: number | undefined;
|
|
1370
|
+
lte?: number | undefined;
|
|
1371
|
+
}, {
|
|
1372
|
+
$state: string;
|
|
1373
|
+
not?: true | undefined;
|
|
1374
|
+
eq?: unknown;
|
|
1375
|
+
neq?: unknown;
|
|
1376
|
+
gt?: number | undefined;
|
|
1377
|
+
gte?: number | undefined;
|
|
1378
|
+
lt?: number | undefined;
|
|
1379
|
+
lte?: number | undefined;
|
|
1380
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1004
1381
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1005
1382
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1006
1383
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1027,8 +1404,8 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
1027
1404
|
gte?: number | undefined;
|
|
1028
1405
|
lt?: number | undefined;
|
|
1029
1406
|
lte?: number | undefined;
|
|
1030
|
-
}
|
|
1031
|
-
}, z.core.$strict>]>>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1407
|
+
}>>>]>>;
|
|
1408
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1032
1409
|
__ref: z.ZodString;
|
|
1033
1410
|
}, z.core.$strip>]>>, z.ZodTransform<{
|
|
1034
1411
|
$state: string;
|
|
@@ -1078,7 +1455,34 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
1078
1455
|
lt?: number | undefined;
|
|
1079
1456
|
lte?: number | undefined;
|
|
1080
1457
|
}>>, z.ZodObject<{
|
|
1081
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1458
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1459
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1460
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1461
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
1462
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
1463
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
1464
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
1465
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
1466
|
+
$state: z.ZodString;
|
|
1467
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1468
|
+
$state: string;
|
|
1469
|
+
not?: true | undefined;
|
|
1470
|
+
eq?: unknown;
|
|
1471
|
+
neq?: unknown;
|
|
1472
|
+
gt?: number | undefined;
|
|
1473
|
+
gte?: number | undefined;
|
|
1474
|
+
lt?: number | undefined;
|
|
1475
|
+
lte?: number | undefined;
|
|
1476
|
+
}, {
|
|
1477
|
+
$state: string;
|
|
1478
|
+
not?: true | undefined;
|
|
1479
|
+
eq?: unknown;
|
|
1480
|
+
neq?: unknown;
|
|
1481
|
+
gt?: number | undefined;
|
|
1482
|
+
gte?: number | undefined;
|
|
1483
|
+
lt?: number | undefined;
|
|
1484
|
+
lte?: number | undefined;
|
|
1485
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1082
1486
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1083
1487
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1084
1488
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1105,7 +1509,7 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
1105
1509
|
gte?: number | undefined;
|
|
1106
1510
|
lt?: number | undefined;
|
|
1107
1511
|
lte?: number | undefined;
|
|
1108
|
-
}
|
|
1512
|
+
}>>>]>>;
|
|
1109
1513
|
}, z.core.$strict>, z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1110
1514
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1111
1515
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1134,7 +1538,34 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
1134
1538
|
lt?: number | undefined;
|
|
1135
1539
|
lte?: number | undefined;
|
|
1136
1540
|
}>>, z.ZodObject<{
|
|
1137
|
-
$or: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1541
|
+
$or: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1542
|
+
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1543
|
+
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1544
|
+
neq: z.ZodOptional<z.ZodUnknown>;
|
|
1545
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
1546
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
1547
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
1548
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
1549
|
+
$state: z.ZodString;
|
|
1550
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1551
|
+
$state: string;
|
|
1552
|
+
not?: true | undefined;
|
|
1553
|
+
eq?: unknown;
|
|
1554
|
+
neq?: unknown;
|
|
1555
|
+
gt?: number | undefined;
|
|
1556
|
+
gte?: number | undefined;
|
|
1557
|
+
lt?: number | undefined;
|
|
1558
|
+
lte?: number | undefined;
|
|
1559
|
+
}, {
|
|
1560
|
+
$state: string;
|
|
1561
|
+
not?: true | undefined;
|
|
1562
|
+
eq?: unknown;
|
|
1563
|
+
neq?: unknown;
|
|
1564
|
+
gt?: number | undefined;
|
|
1565
|
+
gte?: number | undefined;
|
|
1566
|
+
lt?: number | undefined;
|
|
1567
|
+
lte?: number | undefined;
|
|
1568
|
+
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1138
1569
|
not: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1139
1570
|
eq: z.ZodOptional<z.ZodUnknown>;
|
|
1140
1571
|
neq: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1161,8 +1592,8 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
1161
1592
|
gte?: number | undefined;
|
|
1162
1593
|
lt?: number | undefined;
|
|
1163
1594
|
lte?: number | undefined;
|
|
1164
|
-
}
|
|
1165
|
-
}, z.core.$strict>]>>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1595
|
+
}>>>]>>;
|
|
1596
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1166
1597
|
__ref: z.ZodString;
|
|
1167
1598
|
}, z.core.$strip>]>>, z.ZodTransform<{
|
|
1168
1599
|
$state: string;
|
|
@@ -1338,10 +1769,20 @@ type ExtendedComponentRef<Contract = ComponentContractOf<string>, Delta extends
|
|
|
1338
1769
|
type ComponentReference<Contract = ComponentContractOf<string>> = Ref & {
|
|
1339
1770
|
extend<const Delta extends ComponentRefDelta>(delta: ExactComponentDelta<Delta>): ExtendedComponentRef<Contract, Delta>;
|
|
1340
1771
|
};
|
|
1341
|
-
/**
|
|
1342
|
-
*
|
|
1772
|
+
/**
|
|
1773
|
+
* Component keeps the generic entity surface, plus the questions only a component answers: its
|
|
1774
|
+
* slots (`Slot`, in `spec/slot`), what one of its matrix cells shows (`Cell`, in `spec/cell`) and
|
|
1775
|
+
* what a design file put in a placed instance's slots (`Instance`, in `spec/instance`).
|
|
1776
|
+
* Only its ref authoring result knows about the source-only `.render()` step.
|
|
1777
|
+
*/
|
|
1343
1778
|
declare const Component: Omit<typeof ComponentEntity, "ref"> & {
|
|
1344
1779
|
ref<const Path extends PathOf<"component">>(path: Path): ComponentReference<ComponentContractOf<Path>>;
|
|
1780
|
+
slots: typeof listSlots;
|
|
1781
|
+
slot: typeof slotOf;
|
|
1782
|
+
slotHostedBy: typeof slotHostedBy;
|
|
1783
|
+
namedSlots: typeof namedSlots;
|
|
1784
|
+
cell: typeof cellAt;
|
|
1785
|
+
instance: typeof instanceAt;
|
|
1345
1786
|
};
|
|
1346
1787
|
//#endregion
|
|
1347
1788
|
export { AuthoredPropBody, Component, ComponentBody, ComponentElementBody, ComponentPropBody, ComponentReference, ComponentStyleBody, ElementVisibility, ElementVisibilityInput, ExtendedComponentRef, ProjectedVisibility, VariantValueBody, VariantValues, blankComponentBody, canonicalWhen, forwardedNames, layerRef, ownValues, ownsItsValues, valueRef };
|