@visual-platform/contracts 0.3.0 → 0.4.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/app-sources.d.ts +206 -0
- package/dist/app-sources.d.ts.map +1 -0
- package/dist/app-sources.js +287 -0
- package/dist/app-sources.js.map +1 -0
- package/dist/component.d.ts +95 -0
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +20 -1
- package/dist/component.js.map +1 -1
- package/dist/data.d.ts +55 -2
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +17 -2
- package/dist/data.js.map +1 -1
- package/dist/design.d.ts +144 -0
- package/dist/design.d.ts.map +1 -1
- package/dist/design.js +9 -1
- package/dist/design.js.map +1 -1
- package/dist/events.d.ts +40 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +17 -0
- package/dist/events.js.map +1 -1
- package/dist/flow-sim.d.ts +36 -0
- package/dist/flow-sim.d.ts.map +1 -0
- package/dist/flow-sim.js +128 -0
- package/dist/flow-sim.js.map +1 -0
- package/dist/flows.d.ts +267 -0
- package/dist/flows.d.ts.map +1 -0
- package/dist/flows.js +387 -0
- package/dist/flows.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/motion.d.ts +161 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +228 -0
- package/dist/motion.js.map +1 -0
- package/dist/page-document.d.ts +128 -0
- package/dist/page-document.d.ts.map +1 -1
- package/dist/page-document.js +12 -1
- package/dist/page-document.js.map +1 -1
- package/dist/published.d.ts +365 -0
- package/dist/published.d.ts.map +1 -1
- package/dist/published.js +5 -0
- package/dist/published.js.map +1 -1
- package/dist/sources.d.ts +170 -0
- package/dist/sources.d.ts.map +1 -0
- package/dist/sources.js +236 -0
- package/dist/sources.js.map +1 -0
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +2 -1
- package/dist/tables.js.map +1 -1
- package/package.json +1 -1
package/dist/page-document.d.ts
CHANGED
|
@@ -30,6 +30,12 @@ export type ComponentNode = {
|
|
|
30
30
|
/** Props bound to data fields, e.g. { title: { path: "item.name" } }; props keep the fallback (ADR-034). */
|
|
31
31
|
bind?: NodeBindings | undefined;
|
|
32
32
|
showIf?: string | undefined;
|
|
33
|
+
/** After a Server-Action event: a step on success / on error (ADR-048). */
|
|
34
|
+
eventSteps?: import("./events.js").EventSteps | undefined;
|
|
35
|
+
/** Flows/handlers run when the block mounts, unmounts, scrolls in/out, or every N seconds (ADR-051). */
|
|
36
|
+
lifecycle?: import("./flows.js").NodeLifecycle | undefined;
|
|
37
|
+
/** Entrance / hover / loop / scroll / stagger animations by preset name (ADR-052). */
|
|
38
|
+
animation?: import("./motion.js").NodeAnimation | undefined;
|
|
33
39
|
slots?: Record<string, ComponentNode[]> | undefined;
|
|
34
40
|
dataBinding?: Record<string, unknown> | undefined;
|
|
35
41
|
ext?: ExtensionData | undefined;
|
|
@@ -85,6 +91,7 @@ export declare const RootPropsSchema: z.ZodObject<{
|
|
|
85
91
|
label: z.ZodOptional<z.ZodString>;
|
|
86
92
|
source: z.ZodDefault<z.ZodEnum<{
|
|
87
93
|
app: "app";
|
|
94
|
+
appSource: "appSource";
|
|
88
95
|
table: "table";
|
|
89
96
|
}>>;
|
|
90
97
|
shape: z.ZodEnum<{
|
|
@@ -109,7 +116,67 @@ export declare const RootPropsSchema: z.ZodObject<{
|
|
|
109
116
|
locale: z.ZodOptional<z.ZodString>;
|
|
110
117
|
}, z.core.$strict>>>;
|
|
111
118
|
single: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
120
|
+
params: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
kind: z.ZodLiteral<"literal">;
|
|
122
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
+
kind: z.ZodLiteral<"page-locale">;
|
|
125
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
126
|
+
kind: z.ZodLiteral<"route-param">;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
129
|
+
kind: z.ZodLiteral<"query-param">;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
132
|
+
kind: z.ZodLiteral<"context">;
|
|
133
|
+
key: z.ZodString;
|
|
134
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
135
|
+
kind: z.ZodLiteral<"source">;
|
|
136
|
+
path: z.ZodString;
|
|
137
|
+
}, z.core.$strict>], "kind">>>>;
|
|
138
|
+
fallback: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
139
|
+
empty: "empty";
|
|
140
|
+
hide: "hide";
|
|
141
|
+
sample: "sample";
|
|
142
|
+
}>>>;
|
|
112
143
|
}, z.core.$strict>>>>;
|
|
144
|
+
flows: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
label: z.ZodOptional<z.ZodString>;
|
|
147
|
+
description: z.ZodOptional<z.ZodString>;
|
|
148
|
+
params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
label: z.ZodOptional<z.ZodString>;
|
|
151
|
+
type: z.ZodEnum<{
|
|
152
|
+
boolean: "boolean";
|
|
153
|
+
number: "number";
|
|
154
|
+
text: "text";
|
|
155
|
+
}>;
|
|
156
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
}, z.core.$strict>>>;
|
|
158
|
+
steps: z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>;
|
|
159
|
+
onError: z.ZodOptional<z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>>;
|
|
160
|
+
}, z.core.$strict>>>>;
|
|
161
|
+
flowTriggers: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
162
|
+
on: z.ZodEnum<{
|
|
163
|
+
exitIntent: "exitIntent";
|
|
164
|
+
idle: "idle";
|
|
165
|
+
interval: "interval";
|
|
166
|
+
leave: "leave";
|
|
167
|
+
load: "load";
|
|
168
|
+
scroll: "scroll";
|
|
169
|
+
tabHidden: "tabHidden";
|
|
170
|
+
tabVisible: "tabVisible";
|
|
171
|
+
}>;
|
|
172
|
+
flow: z.ZodString;
|
|
173
|
+
delayMs: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
once: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
}, z.core.$strict>>>>;
|
|
179
|
+
flowState: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
|
|
113
180
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
114
181
|
export declare const PageDocumentSchema: z.ZodObject<{
|
|
115
182
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -164,6 +231,7 @@ export declare const PageDocumentSchema: z.ZodObject<{
|
|
|
164
231
|
label: z.ZodOptional<z.ZodString>;
|
|
165
232
|
source: z.ZodDefault<z.ZodEnum<{
|
|
166
233
|
app: "app";
|
|
234
|
+
appSource: "appSource";
|
|
167
235
|
table: "table";
|
|
168
236
|
}>>;
|
|
169
237
|
shape: z.ZodEnum<{
|
|
@@ -188,7 +256,67 @@ export declare const PageDocumentSchema: z.ZodObject<{
|
|
|
188
256
|
locale: z.ZodOptional<z.ZodString>;
|
|
189
257
|
}, z.core.$strict>>>;
|
|
190
258
|
single: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
260
|
+
params: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
261
|
+
kind: z.ZodLiteral<"literal">;
|
|
262
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
+
kind: z.ZodLiteral<"page-locale">;
|
|
265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
266
|
+
kind: z.ZodLiteral<"route-param">;
|
|
267
|
+
name: z.ZodString;
|
|
268
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
269
|
+
kind: z.ZodLiteral<"query-param">;
|
|
270
|
+
name: z.ZodString;
|
|
271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"context">;
|
|
273
|
+
key: z.ZodString;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
kind: z.ZodLiteral<"source">;
|
|
276
|
+
path: z.ZodString;
|
|
277
|
+
}, z.core.$strict>], "kind">>>>;
|
|
278
|
+
fallback: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
279
|
+
empty: "empty";
|
|
280
|
+
hide: "hide";
|
|
281
|
+
sample: "sample";
|
|
282
|
+
}>>>;
|
|
283
|
+
}, z.core.$strict>>>>;
|
|
284
|
+
flows: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
285
|
+
name: z.ZodString;
|
|
286
|
+
label: z.ZodOptional<z.ZodString>;
|
|
287
|
+
description: z.ZodOptional<z.ZodString>;
|
|
288
|
+
params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
label: z.ZodOptional<z.ZodString>;
|
|
291
|
+
type: z.ZodEnum<{
|
|
292
|
+
boolean: "boolean";
|
|
293
|
+
number: "number";
|
|
294
|
+
text: "text";
|
|
295
|
+
}>;
|
|
296
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
}, z.core.$strict>>>;
|
|
298
|
+
steps: z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>;
|
|
299
|
+
onError: z.ZodOptional<z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>>;
|
|
300
|
+
}, z.core.$strict>>>>;
|
|
301
|
+
flowTriggers: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
302
|
+
on: z.ZodEnum<{
|
|
303
|
+
exitIntent: "exitIntent";
|
|
304
|
+
idle: "idle";
|
|
305
|
+
interval: "interval";
|
|
306
|
+
leave: "leave";
|
|
307
|
+
load: "load";
|
|
308
|
+
scroll: "scroll";
|
|
309
|
+
tabHidden: "tabHidden";
|
|
310
|
+
tabVisible: "tabVisible";
|
|
311
|
+
}>;
|
|
312
|
+
flow: z.ZodString;
|
|
313
|
+
delayMs: z.ZodOptional<z.ZodNumber>;
|
|
314
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
once: z.ZodOptional<z.ZodBoolean>;
|
|
191
318
|
}, z.core.$strict>>>>;
|
|
319
|
+
flowState: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
|
|
192
320
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
193
321
|
ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
194
322
|
v: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-document.d.ts","sourceRoot":"","sources":["../src/page-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"page-document.d.ts","sourceRoot":"","sources":["../src/page-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAwC,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEpG,uFAAuF;AACvF,eAAO,MAAM,4BAA4B,EAAG,CAAU,CAAC;AAEvD,8EAA8E;AAC9E,eAAO,MAAM,YAAY,aAA+E,CAAC;AAEzG;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;kBAG/B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,cAAc;;;;;;kBAEhB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,yFAAyF;IACzF,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IACpH,4GAA4G;IAC5G,IAAI,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,OAAO,aA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AA4G;AAC5G,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAW/D"}
|
package/dist/page-document.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { PageSeoSchema } from "./seo.js";
|
|
3
3
|
import { ClassNameSchema } from "./classes.js";
|
|
4
|
-
import { EventBindingsSchema } from "./events.js";
|
|
4
|
+
import { EventBindingsSchema, EventStepsSchema } from "./events.js";
|
|
5
|
+
import { FlowsSchema, FlowStateSchema, FlowTriggersSchema, NodeLifecycleSchema } from "./flows.js";
|
|
6
|
+
import { NodeAnimationSchema } from "./motion.js";
|
|
5
7
|
import { DataInputsSchema, NodeBindingsSchema } from "./data.js";
|
|
6
8
|
/** Current canonical document schema version. Bump only through an RFC + migration. */
|
|
7
9
|
export const PAGE_DOCUMENT_SCHEMA_VERSION = 1;
|
|
@@ -22,6 +24,9 @@ export const ComponentNodeSchema = z.lazy(() => z
|
|
|
22
24
|
props: z.record(z.string(), z.unknown()),
|
|
23
25
|
className: z.lazy(() => ClassNameSchema).optional(),
|
|
24
26
|
events: z.lazy(() => EventBindingsSchema).optional(),
|
|
27
|
+
eventSteps: z.lazy(() => EventStepsSchema).optional(),
|
|
28
|
+
lifecycle: z.lazy(() => NodeLifecycleSchema).optional(),
|
|
29
|
+
animation: z.lazy(() => NodeAnimationSchema).optional(),
|
|
25
30
|
bind: z.lazy(() => NodeBindingsSchema).optional(),
|
|
26
31
|
/** Show this block only when the condition holds on the data (ADR-046), e.g. "plans.length > 3". */
|
|
27
32
|
showIf: z.string().trim().min(1).max(500).optional(),
|
|
@@ -39,6 +44,12 @@ export const RootPropsSchema = z
|
|
|
39
44
|
designSystemId: z.string().min(1).max(80).optional(),
|
|
40
45
|
/** Data inputs this page reads (ADR-034). */
|
|
41
46
|
data: z.lazy(() => DataInputsSchema).optional(),
|
|
47
|
+
/** Flows events of this page can run (ADR-049). */
|
|
48
|
+
flows: z.lazy(() => FlowsSchema).optional(),
|
|
49
|
+
/** Flows run when the page loads (ADR-050). */
|
|
50
|
+
flowTriggers: z.lazy(() => FlowTriggersSchema).optional(),
|
|
51
|
+
/** Starting page state for flows and state showIf (ADR-050). */
|
|
52
|
+
flowState: z.lazy(() => FlowStateSchema).optional(),
|
|
42
53
|
})
|
|
43
54
|
.catchall(z.unknown());
|
|
44
55
|
export const PageDocumentSchema = z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-document.js","sourceRoot":"","sources":["../src/page-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAqC,MAAM,WAAW,CAAC;AAEpG,uFAAuF;AACvF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAU,CAAC;AAEvD,8EAA8E;AAC9E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAuB,EAAE,iCAAiC,CAAC,CAAC;AAEzG;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CACzC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uCAAuC,EAAE,6CAA6C,CAAC,EACxG,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAClD,CAAC;AAGF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,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KAAK,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3H,OAAO,EAAE,GAAG,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;AACvD,CAAC"}
|
package/dist/published.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export declare const ResolvedPageSchema: z.ZodObject<{
|
|
|
83
83
|
label: z.ZodOptional<z.ZodString>;
|
|
84
84
|
source: z.ZodDefault<z.ZodEnum<{
|
|
85
85
|
app: "app";
|
|
86
|
+
appSource: "appSource";
|
|
86
87
|
table: "table";
|
|
87
88
|
}>>;
|
|
88
89
|
shape: z.ZodEnum<{
|
|
@@ -107,7 +108,67 @@ export declare const ResolvedPageSchema: z.ZodObject<{
|
|
|
107
108
|
locale: z.ZodOptional<z.ZodString>;
|
|
108
109
|
}, z.core.$strict>>>;
|
|
109
110
|
single: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
112
|
+
params: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"literal">;
|
|
114
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
kind: z.ZodLiteral<"page-locale">;
|
|
117
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
118
|
+
kind: z.ZodLiteral<"route-param">;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
121
|
+
kind: z.ZodLiteral<"query-param">;
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
+
kind: z.ZodLiteral<"context">;
|
|
125
|
+
key: z.ZodString;
|
|
126
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
127
|
+
kind: z.ZodLiteral<"source">;
|
|
128
|
+
path: z.ZodString;
|
|
129
|
+
}, z.core.$strict>], "kind">>>>;
|
|
130
|
+
fallback: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
131
|
+
empty: "empty";
|
|
132
|
+
hide: "hide";
|
|
133
|
+
sample: "sample";
|
|
134
|
+
}>>>;
|
|
110
135
|
}, z.core.$strict>>>>;
|
|
136
|
+
flows: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
label: z.ZodOptional<z.ZodString>;
|
|
139
|
+
description: z.ZodOptional<z.ZodString>;
|
|
140
|
+
params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
label: z.ZodOptional<z.ZodString>;
|
|
143
|
+
type: z.ZodEnum<{
|
|
144
|
+
boolean: "boolean";
|
|
145
|
+
number: "number";
|
|
146
|
+
text: "text";
|
|
147
|
+
}>;
|
|
148
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
}, z.core.$strict>>>;
|
|
150
|
+
steps: z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>;
|
|
151
|
+
onError: z.ZodOptional<z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>>;
|
|
152
|
+
}, z.core.$strict>>>>;
|
|
153
|
+
flowTriggers: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
154
|
+
on: z.ZodEnum<{
|
|
155
|
+
exitIntent: "exitIntent";
|
|
156
|
+
idle: "idle";
|
|
157
|
+
interval: "interval";
|
|
158
|
+
leave: "leave";
|
|
159
|
+
load: "load";
|
|
160
|
+
scroll: "scroll";
|
|
161
|
+
tabHidden: "tabHidden";
|
|
162
|
+
tabVisible: "tabVisible";
|
|
163
|
+
}>;
|
|
164
|
+
flow: z.ZodString;
|
|
165
|
+
delayMs: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
once: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
}, z.core.$strict>>>>;
|
|
171
|
+
flowState: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
|
|
111
172
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
112
173
|
ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
113
174
|
v: z.ZodNumber;
|
|
@@ -163,6 +224,41 @@ export declare const ResolvedPageSchema: z.ZodObject<{
|
|
|
163
224
|
}, z.core.$strip>>>;
|
|
164
225
|
defaultLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
226
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
227
|
+
sourcePlan: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
layers: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
229
|
+
input: z.ZodString;
|
|
230
|
+
kind: z.ZodEnum<{
|
|
231
|
+
app: "app";
|
|
232
|
+
appSource: "appSource";
|
|
233
|
+
}>;
|
|
234
|
+
sourceRef: z.ZodString;
|
|
235
|
+
params: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
236
|
+
kind: z.ZodLiteral<"literal">;
|
|
237
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
238
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
239
|
+
kind: z.ZodLiteral<"page-locale">;
|
|
240
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
241
|
+
kind: z.ZodLiteral<"route-param">;
|
|
242
|
+
name: z.ZodString;
|
|
243
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
244
|
+
kind: z.ZodLiteral<"query-param">;
|
|
245
|
+
name: z.ZodString;
|
|
246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
247
|
+
kind: z.ZodLiteral<"context">;
|
|
248
|
+
key: z.ZodString;
|
|
249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
250
|
+
kind: z.ZodLiteral<"source">;
|
|
251
|
+
path: z.ZodString;
|
|
252
|
+
}, z.core.$strict>], "kind">>;
|
|
253
|
+
fallback: z.ZodEnum<{
|
|
254
|
+
empty: "empty";
|
|
255
|
+
hide: "hide";
|
|
256
|
+
sample: "sample";
|
|
257
|
+
}>;
|
|
258
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
260
|
+
contextKeys: z.ZodArray<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>>;
|
|
166
262
|
design: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
167
263
|
vars: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
168
264
|
themes: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -184,6 +280,42 @@ export declare const ResolvedPageSchema: z.ZodObject<{
|
|
|
184
280
|
unicodeRange: z.ZodOptional<z.ZodString>;
|
|
185
281
|
}, z.core.$strict>>;
|
|
186
282
|
}, z.core.$strip>>;
|
|
283
|
+
motion: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
284
|
+
presets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
285
|
+
label: z.ZodOptional<z.ZodString>;
|
|
286
|
+
kind: z.ZodEnum<{
|
|
287
|
+
emphasis: "emphasis";
|
|
288
|
+
entrance: "entrance";
|
|
289
|
+
hover: "hover";
|
|
290
|
+
loop: "loop";
|
|
291
|
+
}>;
|
|
292
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
293
|
+
at: z.ZodNumber;
|
|
294
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
298
|
+
"%": "%";
|
|
299
|
+
px: "px";
|
|
300
|
+
}>>;
|
|
301
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
rotate: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
305
|
+
duration: z.ZodNumber;
|
|
306
|
+
easing: z.ZodString;
|
|
307
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
iterations: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>>;
|
|
309
|
+
alternate: z.ZodOptional<z.ZodBoolean>;
|
|
310
|
+
}, z.core.$strict>>>;
|
|
311
|
+
durations: z.ZodOptional<z.ZodObject<{
|
|
312
|
+
fast: z.ZodNumber;
|
|
313
|
+
normal: z.ZodNumber;
|
|
314
|
+
slow: z.ZodNumber;
|
|
315
|
+
}, z.core.$strict>>;
|
|
316
|
+
easings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
317
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
}, z.core.$strict>>>;
|
|
187
319
|
systems: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
188
320
|
vars: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
189
321
|
themes: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -205,6 +337,42 @@ export declare const ResolvedPageSchema: z.ZodObject<{
|
|
|
205
337
|
unicodeRange: z.ZodOptional<z.ZodString>;
|
|
206
338
|
}, z.core.$strict>>;
|
|
207
339
|
}, z.core.$strip>>;
|
|
340
|
+
motion: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
341
|
+
presets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
342
|
+
label: z.ZodOptional<z.ZodString>;
|
|
343
|
+
kind: z.ZodEnum<{
|
|
344
|
+
emphasis: "emphasis";
|
|
345
|
+
entrance: "entrance";
|
|
346
|
+
hover: "hover";
|
|
347
|
+
loop: "loop";
|
|
348
|
+
}>;
|
|
349
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
350
|
+
at: z.ZodNumber;
|
|
351
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
355
|
+
"%": "%";
|
|
356
|
+
px: "px";
|
|
357
|
+
}>>;
|
|
358
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
rotate: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
duration: z.ZodNumber;
|
|
363
|
+
easing: z.ZodString;
|
|
364
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
iterations: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>>;
|
|
366
|
+
alternate: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
}, z.core.$strict>>>;
|
|
368
|
+
durations: z.ZodOptional<z.ZodObject<{
|
|
369
|
+
fast: z.ZodNumber;
|
|
370
|
+
normal: z.ZodNumber;
|
|
371
|
+
slow: z.ZodNumber;
|
|
372
|
+
}, z.core.$strict>>;
|
|
373
|
+
easings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
374
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
375
|
+
}, z.core.$strict>>>;
|
|
208
376
|
}, z.core.$strip>>>;
|
|
209
377
|
}, z.core.$strip>>>;
|
|
210
378
|
styles: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -279,6 +447,7 @@ export declare const ResolvedComponentSchema: z.ZodObject<{
|
|
|
279
447
|
label: z.ZodOptional<z.ZodString>;
|
|
280
448
|
source: z.ZodDefault<z.ZodEnum<{
|
|
281
449
|
app: "app";
|
|
450
|
+
appSource: "appSource";
|
|
282
451
|
table: "table";
|
|
283
452
|
}>>;
|
|
284
453
|
shape: z.ZodEnum<{
|
|
@@ -303,7 +472,96 @@ export declare const ResolvedComponentSchema: z.ZodObject<{
|
|
|
303
472
|
locale: z.ZodOptional<z.ZodString>;
|
|
304
473
|
}, z.core.$strict>>>;
|
|
305
474
|
single: z.ZodOptional<z.ZodBoolean>;
|
|
475
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
476
|
+
params: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
477
|
+
kind: z.ZodLiteral<"literal">;
|
|
478
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
479
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
480
|
+
kind: z.ZodLiteral<"page-locale">;
|
|
481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
482
|
+
kind: z.ZodLiteral<"route-param">;
|
|
483
|
+
name: z.ZodString;
|
|
484
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
485
|
+
kind: z.ZodLiteral<"query-param">;
|
|
486
|
+
name: z.ZodString;
|
|
487
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
488
|
+
kind: z.ZodLiteral<"context">;
|
|
489
|
+
key: z.ZodString;
|
|
490
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
491
|
+
kind: z.ZodLiteral<"source">;
|
|
492
|
+
path: z.ZodString;
|
|
493
|
+
}, z.core.$strict>], "kind">>>>;
|
|
494
|
+
fallback: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
495
|
+
empty: "empty";
|
|
496
|
+
hide: "hide";
|
|
497
|
+
sample: "sample";
|
|
498
|
+
}>>>;
|
|
499
|
+
}, z.core.$strict>>>>;
|
|
500
|
+
flows: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
501
|
+
name: z.ZodString;
|
|
502
|
+
label: z.ZodOptional<z.ZodString>;
|
|
503
|
+
description: z.ZodOptional<z.ZodString>;
|
|
504
|
+
params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
505
|
+
name: z.ZodString;
|
|
506
|
+
label: z.ZodOptional<z.ZodString>;
|
|
507
|
+
type: z.ZodEnum<{
|
|
508
|
+
boolean: "boolean";
|
|
509
|
+
number: "number";
|
|
510
|
+
text: "text";
|
|
511
|
+
}>;
|
|
512
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
513
|
+
}, z.core.$strict>>>;
|
|
514
|
+
steps: z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>;
|
|
515
|
+
onError: z.ZodOptional<z.ZodArray<z.ZodType<import("./flows.js").FlowStep, unknown, z.core.$ZodTypeInternals<import("./flows.js").FlowStep, unknown>>>>;
|
|
306
516
|
}, z.core.$strict>>>>;
|
|
517
|
+
lifecycle: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
518
|
+
mount: z.ZodOptional<z.ZodString>;
|
|
519
|
+
unmount: z.ZodOptional<z.ZodString>;
|
|
520
|
+
visible: z.ZodOptional<z.ZodString>;
|
|
521
|
+
leave: z.ZodOptional<z.ZodString>;
|
|
522
|
+
visibleOnce: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
every: z.ZodOptional<z.ZodObject<{
|
|
524
|
+
run: z.ZodString;
|
|
525
|
+
ms: z.ZodNumber;
|
|
526
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
}, z.core.$strict>>;
|
|
528
|
+
}, z.core.$strict>>>;
|
|
529
|
+
animation: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
530
|
+
entrance: z.ZodOptional<z.ZodObject<{
|
|
531
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
532
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
533
|
+
easing: z.ZodOptional<z.ZodString>;
|
|
534
|
+
preset: z.ZodString;
|
|
535
|
+
trigger: z.ZodOptional<z.ZodEnum<{
|
|
536
|
+
mount: "mount";
|
|
537
|
+
visible: "visible";
|
|
538
|
+
}>>;
|
|
539
|
+
once: z.ZodOptional<z.ZodBoolean>;
|
|
540
|
+
}, z.core.$strict>>;
|
|
541
|
+
hover: z.ZodOptional<z.ZodObject<{
|
|
542
|
+
preset: z.ZodString;
|
|
543
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
544
|
+
easing: z.ZodOptional<z.ZodString>;
|
|
545
|
+
}, z.core.$strict>>;
|
|
546
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
547
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
549
|
+
easing: z.ZodOptional<z.ZodString>;
|
|
550
|
+
preset: z.ZodString;
|
|
551
|
+
iterations: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>>;
|
|
552
|
+
}, z.core.$strict>>;
|
|
553
|
+
scroll: z.ZodOptional<z.ZodObject<{
|
|
554
|
+
preset: z.ZodString;
|
|
555
|
+
range: z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
cover: "cover";
|
|
557
|
+
enter: "enter";
|
|
558
|
+
exit: "exit";
|
|
559
|
+
}>>;
|
|
560
|
+
}, z.core.$strict>>;
|
|
561
|
+
stagger: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
ms: z.ZodNumber;
|
|
563
|
+
}, z.core.$strict>>;
|
|
564
|
+
}, z.core.$strict>>>;
|
|
307
565
|
disabledLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
308
566
|
childrenSlot: z.ZodOptional<z.ZodObject<{
|
|
309
567
|
nodeId: z.ZodString;
|
|
@@ -332,6 +590,42 @@ export declare const ResolvedComponentSchema: z.ZodObject<{
|
|
|
332
590
|
unicodeRange: z.ZodOptional<z.ZodString>;
|
|
333
591
|
}, z.core.$strict>>;
|
|
334
592
|
}, z.core.$strip>>;
|
|
593
|
+
motion: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
594
|
+
presets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
595
|
+
label: z.ZodOptional<z.ZodString>;
|
|
596
|
+
kind: z.ZodEnum<{
|
|
597
|
+
emphasis: "emphasis";
|
|
598
|
+
entrance: "entrance";
|
|
599
|
+
hover: "hover";
|
|
600
|
+
loop: "loop";
|
|
601
|
+
}>;
|
|
602
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
603
|
+
at: z.ZodNumber;
|
|
604
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
606
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
607
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
608
|
+
"%": "%";
|
|
609
|
+
px: "px";
|
|
610
|
+
}>>;
|
|
611
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
rotate: z.ZodOptional<z.ZodNumber>;
|
|
613
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
}, z.core.$strict>>;
|
|
615
|
+
duration: z.ZodNumber;
|
|
616
|
+
easing: z.ZodString;
|
|
617
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
618
|
+
iterations: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>>;
|
|
619
|
+
alternate: z.ZodOptional<z.ZodBoolean>;
|
|
620
|
+
}, z.core.$strict>>>;
|
|
621
|
+
durations: z.ZodOptional<z.ZodObject<{
|
|
622
|
+
fast: z.ZodNumber;
|
|
623
|
+
normal: z.ZodNumber;
|
|
624
|
+
slow: z.ZodNumber;
|
|
625
|
+
}, z.core.$strict>>;
|
|
626
|
+
easings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
627
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
628
|
+
}, z.core.$strict>>>;
|
|
335
629
|
systems: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
336
630
|
vars: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
337
631
|
themes: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -353,6 +647,42 @@ export declare const ResolvedComponentSchema: z.ZodObject<{
|
|
|
353
647
|
unicodeRange: z.ZodOptional<z.ZodString>;
|
|
354
648
|
}, z.core.$strict>>;
|
|
355
649
|
}, z.core.$strip>>;
|
|
650
|
+
motion: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
651
|
+
presets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
652
|
+
label: z.ZodOptional<z.ZodString>;
|
|
653
|
+
kind: z.ZodEnum<{
|
|
654
|
+
emphasis: "emphasis";
|
|
655
|
+
entrance: "entrance";
|
|
656
|
+
hover: "hover";
|
|
657
|
+
loop: "loop";
|
|
658
|
+
}>;
|
|
659
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
660
|
+
at: z.ZodNumber;
|
|
661
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
662
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
663
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
664
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
665
|
+
"%": "%";
|
|
666
|
+
px: "px";
|
|
667
|
+
}>>;
|
|
668
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
669
|
+
rotate: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
671
|
+
}, z.core.$strict>>;
|
|
672
|
+
duration: z.ZodNumber;
|
|
673
|
+
easing: z.ZodString;
|
|
674
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
675
|
+
iterations: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>>;
|
|
676
|
+
alternate: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
+
}, z.core.$strict>>>;
|
|
678
|
+
durations: z.ZodOptional<z.ZodObject<{
|
|
679
|
+
fast: z.ZodNumber;
|
|
680
|
+
normal: z.ZodNumber;
|
|
681
|
+
slow: z.ZodNumber;
|
|
682
|
+
}, z.core.$strict>>;
|
|
683
|
+
easings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
684
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
685
|
+
}, z.core.$strict>>>;
|
|
356
686
|
}, z.core.$strip>>>;
|
|
357
687
|
}, z.core.$strip>>>;
|
|
358
688
|
styles: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -365,6 +695,41 @@ export declare const ResolvedComponentSchema: z.ZodObject<{
|
|
|
365
695
|
}>;
|
|
366
696
|
}, z.core.$strip>>>>>;
|
|
367
697
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
698
|
+
sourcePlan: z.ZodOptional<z.ZodObject<{
|
|
699
|
+
layers: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
700
|
+
input: z.ZodString;
|
|
701
|
+
kind: z.ZodEnum<{
|
|
702
|
+
app: "app";
|
|
703
|
+
appSource: "appSource";
|
|
704
|
+
}>;
|
|
705
|
+
sourceRef: z.ZodString;
|
|
706
|
+
params: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
707
|
+
kind: z.ZodLiteral<"literal">;
|
|
708
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
709
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
710
|
+
kind: z.ZodLiteral<"page-locale">;
|
|
711
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
712
|
+
kind: z.ZodLiteral<"route-param">;
|
|
713
|
+
name: z.ZodString;
|
|
714
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
715
|
+
kind: z.ZodLiteral<"query-param">;
|
|
716
|
+
name: z.ZodString;
|
|
717
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
718
|
+
kind: z.ZodLiteral<"context">;
|
|
719
|
+
key: z.ZodString;
|
|
720
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
721
|
+
kind: z.ZodLiteral<"source">;
|
|
722
|
+
path: z.ZodString;
|
|
723
|
+
}, z.core.$strict>], "kind">>;
|
|
724
|
+
fallback: z.ZodEnum<{
|
|
725
|
+
empty: "empty";
|
|
726
|
+
hide: "hide";
|
|
727
|
+
sample: "sample";
|
|
728
|
+
}>;
|
|
729
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
730
|
+
}, z.core.$strip>>>;
|
|
731
|
+
contextKeys: z.ZodArray<z.ZodString>;
|
|
732
|
+
}, z.core.$strip>>;
|
|
368
733
|
}, z.core.$strip>;
|
|
369
734
|
export type ResolvedComponent = z.infer<typeof ResolvedComponentSchema>;
|
|
370
735
|
/** `GET /v1/projects/:projectId/classes` — Tailwind classes used by the current release (for apps that build their own CSS). */
|