@antelopejs/dms 0.22.1 → 0.22.2-next.1023.gd4e59bf
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/implementations/dms-builder/engine/cell-displays.js +2 -2
- package/dist/implementations/dms-builder/engine/cell-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/column-groups.d.ts +5 -12
- package/dist/implementations/dms-builder/engine/connection-access-config.js +3 -1
- package/dist/implementations/dms-builder/engine/connection-access-config.js.map +1 -1
- package/dist/implementations/dms-builder/engine/database-access.js +2 -2
- package/dist/implementations/dms-builder/engine/database-access.js.map +1 -1
- package/dist/implementations/dms-builder/engine/database-check-input.d.ts +8 -15
- package/dist/implementations/dms-builder/engine/driver-probe.d.ts +3 -11
- package/dist/implementations/dms-builder/engine/driver-probe.js +4 -4
- package/dist/implementations/dms-builder/engine/driver-probe.js.map +1 -1
- package/dist/implementations/dms-builder/engine/probe-answer.d.ts +17 -34
- package/dist/implementations/dms-builder/engine/probe-child.js +12 -10
- package/dist/implementations/dms-builder/engine/probe-child.js.map +1 -1
- package/dist/implementations/dms-builder/engine/probe-protocol.d.ts +7 -33
- package/dist/implementations/dms-builder/engine/probe-protocol.js +1 -1
- package/dist/implementations/dms-builder/engine/probe-protocol.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme-draft.js +3 -3
- package/dist/implementations/dms-builder/engine/theme-draft.js.map +1 -1
- package/dist/mcp/access.d.ts +4 -1
- package/dist/mcp/bridge.d.ts +3 -1
- package/dist/mcp/hidden-values.d.ts +1 -1
- package/dist/mcp/hidden-values.js.map +1 -1
- package/dist/mcp/json.d.ts +1 -1
- package/dist/mcp/page-verify/page-probe.d.ts +7 -123
- package/dist/mcp/page-verify/playwright.d.ts +7 -23
- package/dist/mcp/page-verify/render.js +3 -1
- package/dist/mcp/page-verify/render.js.map +1 -1
- package/dist/mcp/redact.js.map +1 -1
- package/dist/mcp/tool.d.ts +1 -1
- package/dist/mcp/tool.js +15 -2
- package/dist/mcp/tool.js.map +1 -1
- package/dist/mcp/tools/builder-queries.d.ts +8 -3
- package/dist/mcp/tools/builder-resources.d.ts +2 -8
- package/dist/mcp/tools/builder-resources.js +1 -1
- package/dist/mcp/tools/builder-resources.js.map +1 -1
- package/dist/mcp/tools/builder-shared.d.ts +1 -1
- package/dist/mcp/tools/builder-shared.js.map +1 -1
- package/dist/mcp/tools/builder-table-view.d.ts +65 -211
- package/dist/mcp/tools/json-patch.d.ts +10 -56
- package/dist/mcp/tools/mockup-support.d.ts +2 -2
- package/dist/mcp/tools/theme-schemas.d.ts +19 -173
- package/dist/mockup/anchor.d.ts +7 -31
- package/dist/mockup/anchor.js.map +1 -1
- package/dist/mockup/annotations-file.d.ts +15 -73
- package/dist/mockup/annotations.d.ts +11 -101
- package/dist/mockup/apply-to-page.js +4 -1
- package/dist/mockup/apply-to-page.js.map +1 -1
- package/dist/mockup/controller-blocks.js +3 -3
- package/dist/mockup/controller-blocks.js.map +1 -1
- package/dist/mockup/files.d.ts +1 -5
- package/dist/mockup/fixtures.d.ts +11 -19
- package/dist/mockup/generate.d.ts +4 -56
- package/dist/mockup/generate.js +1 -1
- package/dist/mockup/generate.js.map +1 -1
- package/dist/mockup/history.d.ts +9 -21
- package/dist/mockup/model.d.ts +103 -772
- package/dist/mockup/model.js +2 -2
- package/dist/mockup/model.js.map +1 -1
- package/dist/mockup/presence.d.ts +1 -1
- package/dist/mockup/table-columns.d.ts +1 -25
- package/dist/mockup/table-columns.js +2 -2
- package/dist/mockup/table-columns.js.map +1 -1
- package/dist/mockup/table-options.d.ts +62 -399
- package/dist/pages/settings/users/profile.d.ts +2 -9
- package/dist/routes/auth/oauth/providers.js.map +1 -1
- package/dist/routes/auth/switch-tenant.d.ts +1 -7
- package/dist/store/catalog.d.ts +3 -9
- package/dist/store/catalog.js +1 -1
- package/dist/store/catalog.js.map +1 -1
- package/dist/store/interfaces.js +10 -4
- package/dist/store/interfaces.js.map +1 -1
- package/dist/store/internal/frontend/frontend-ready.d.ts +2 -20
- package/dist/store/runtime.d.ts +1 -7
- package/dist/validation/account-deletion.schema.d.ts +1 -7
- package/dist/validation/auth.schema.d.ts +26 -121
- package/dist/validation/file.schema.d.ts +4 -20
- package/dist/validation/member-invite.schema.d.ts +4 -36
- package/dist/validation/member-ownership.schema.d.ts +1 -5
- package/dist/validation/onboarding/register-admin.schema.d.ts +6 -22
- package/dist/validation/regional-preferences.schema.d.ts +11 -17
- package/dist/validation/role-editor.schema.d.ts +6 -28
- package/dist/validation/security.schema.d.ts +4 -24
- package/dist/validation/store.schema.d.ts +3 -30
- package/dist/validation/store.schema.js +1 -1
- package/dist/validation/store.schema.js.map +1 -1
- package/dist/validation/user-notification-preferences.schema.d.ts +1 -1
- package/frontend-vue/layers/dms-core/app/build/composables/api-error.ts +4 -1
- package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +21 -12
- package/frontend-vue/layers/dms-core/app/composables/useFormValidation.ts +6 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formComponentValidation.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formValidation.ts +9 -8
- package/frontend-vue/package.json +2 -3
- package/package.json +5 -6
package/dist/mockup/model.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const SLUG_PATTERN: RegExp;
|
|
|
13
13
|
export declare const KEY_PATTERN: RegExp;
|
|
14
14
|
export declare const MAX_PAGES = 50;
|
|
15
15
|
export declare const RESERVED_MOCKUP_NAMES: readonly string[];
|
|
16
|
-
export declare const mockupNameSchema: z.ZodBranded<z.
|
|
16
|
+
export declare const mockupNameSchema: z.core.$ZodBranded<z.ZodString, "Mockup", "out">;
|
|
17
17
|
export type MockupName = z.infer<typeof mockupNameSchema>;
|
|
18
18
|
export declare const pageIdSchema: z.ZodString;
|
|
19
19
|
export declare const fixtureKeySchema: z.ZodString;
|
|
@@ -29,60 +29,39 @@ export interface MockupNode {
|
|
|
29
29
|
colSpan?: number;
|
|
30
30
|
}
|
|
31
31
|
declare const pageOptionsSchema: z.ZodObject<{
|
|
32
|
-
theme: z.ZodOptional<z.ZodEnum<
|
|
32
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
dark: "dark";
|
|
34
|
+
light: "light";
|
|
35
|
+
}>>;
|
|
33
36
|
locale: z.ZodOptional<z.ZodString>;
|
|
34
37
|
padding: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
},
|
|
36
|
-
theme?: "dark" | "light" | undefined;
|
|
37
|
-
locale?: string | undefined;
|
|
38
|
-
padding?: boolean | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
theme?: "dark" | "light" | undefined;
|
|
41
|
-
locale?: string | undefined;
|
|
42
|
-
padding?: boolean | undefined;
|
|
43
|
-
}>;
|
|
38
|
+
}, z.core.$strict>;
|
|
44
39
|
export type MockupPageOptions = z.infer<typeof pageOptionsSchema>;
|
|
45
40
|
declare const livePageSchema: z.ZodObject<{
|
|
46
41
|
ref: z.ZodString;
|
|
47
42
|
version: z.ZodString;
|
|
48
|
-
},
|
|
49
|
-
ref: string;
|
|
50
|
-
version: string;
|
|
51
|
-
}, {
|
|
52
|
-
ref: string;
|
|
53
|
-
version: string;
|
|
54
|
-
}>;
|
|
43
|
+
}, z.core.$strict>;
|
|
55
44
|
export type MockupLivePage = z.infer<typeof livePageSchema>;
|
|
56
45
|
declare const headerActionSchema: z.ZodObject<{
|
|
57
46
|
label: z.ZodString;
|
|
58
47
|
icon: z.ZodOptional<z.ZodString>;
|
|
59
|
-
color: z.ZodOptional<z.ZodEnum<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
variant?: ButtonVariant | undefined;
|
|
71
|
-
}>;
|
|
48
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
error: "error";
|
|
50
|
+
info: "info";
|
|
51
|
+
neutral: "neutral";
|
|
52
|
+
primary: "primary";
|
|
53
|
+
secondary: "secondary";
|
|
54
|
+
success: "success";
|
|
55
|
+
warning: "warning";
|
|
56
|
+
}>>;
|
|
57
|
+
variant: z.ZodOptional<z.ZodEnum<typeof ButtonVariant>>;
|
|
58
|
+
}, z.core.$strict>;
|
|
72
59
|
export type MockupHeaderAction = z.infer<typeof headerActionSchema>;
|
|
73
60
|
declare const categorySchema: z.ZodObject<{
|
|
74
61
|
id: z.ZodString;
|
|
75
62
|
title: z.ZodString;
|
|
76
63
|
icon: z.ZodOptional<z.ZodString>;
|
|
77
|
-
},
|
|
78
|
-
id: string;
|
|
79
|
-
title: string;
|
|
80
|
-
icon?: string | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
id: string;
|
|
83
|
-
title: string;
|
|
84
|
-
icon?: string | undefined;
|
|
85
|
-
}>;
|
|
64
|
+
}, z.core.$strict>;
|
|
86
65
|
export type MockupCategory = z.infer<typeof categorySchema>;
|
|
87
66
|
export declare const MAX_SIDEBAR_WIDGETS = 10;
|
|
88
67
|
export declare const SIDEBAR_WIDGET_DEFAULT_HEIGHT = 120;
|
|
@@ -92,19 +71,7 @@ declare const sidebarWidgetSchema: z.ZodObject<{
|
|
|
92
71
|
html: z.ZodString;
|
|
93
72
|
css: z.ZodOptional<z.ZodString>;
|
|
94
73
|
height: z.ZodOptional<z.ZodNumber>;
|
|
95
|
-
},
|
|
96
|
-
id: string;
|
|
97
|
-
title?: string | undefined;
|
|
98
|
-
html: string;
|
|
99
|
-
css?: string | undefined;
|
|
100
|
-
height?: number | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
id: string;
|
|
103
|
-
title?: string | undefined;
|
|
104
|
-
html: string;
|
|
105
|
-
css?: string | undefined;
|
|
106
|
-
height?: number | undefined;
|
|
107
|
-
}>;
|
|
74
|
+
}, z.core.$strict>;
|
|
108
75
|
export type MockupSidebarWidget = z.infer<typeof sidebarWidgetSchema>;
|
|
109
76
|
declare const sidebarSchema: z.ZodObject<{
|
|
110
77
|
widgets: z.ZodArray<z.ZodObject<{
|
|
@@ -113,39 +80,11 @@ declare const sidebarSchema: z.ZodObject<{
|
|
|
113
80
|
html: z.ZodString;
|
|
114
81
|
css: z.ZodOptional<z.ZodString>;
|
|
115
82
|
height: z.ZodOptional<z.ZodNumber>;
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
title?: string | undefined;
|
|
119
|
-
html: string;
|
|
120
|
-
css?: string | undefined;
|
|
121
|
-
height?: number | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
id: string;
|
|
124
|
-
title?: string | undefined;
|
|
125
|
-
html: string;
|
|
126
|
-
css?: string | undefined;
|
|
127
|
-
height?: number | undefined;
|
|
128
|
-
}>, "many">;
|
|
129
|
-
}, "strict", z.ZodTypeAny, {
|
|
130
|
-
widgets: {
|
|
131
|
-
id: string;
|
|
132
|
-
title?: string | undefined;
|
|
133
|
-
html: string;
|
|
134
|
-
css?: string | undefined;
|
|
135
|
-
height?: number | undefined;
|
|
136
|
-
}[];
|
|
137
|
-
}, {
|
|
138
|
-
widgets: {
|
|
139
|
-
id: string;
|
|
140
|
-
title?: string | undefined;
|
|
141
|
-
html: string;
|
|
142
|
-
css?: string | undefined;
|
|
143
|
-
height?: number | undefined;
|
|
144
|
-
}[];
|
|
145
|
-
}>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
}, z.core.$strict>;
|
|
146
85
|
export type MockupSidebar = z.infer<typeof sidebarSchema>;
|
|
147
86
|
export declare const ROUTE_PARAM_PATTERN: RegExp;
|
|
148
|
-
declare const pageSchema: z.
|
|
87
|
+
declare const pageSchema: z.ZodObject<{
|
|
149
88
|
id: z.ZodString;
|
|
150
89
|
title: z.ZodString;
|
|
151
90
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -157,273 +96,90 @@ declare const pageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
157
96
|
headerActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
158
97
|
label: z.ZodString;
|
|
159
98
|
icon: z.ZodOptional<z.ZodString>;
|
|
160
|
-
color: z.ZodOptional<z.ZodEnum<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
variant?: ButtonVariant | undefined;
|
|
172
|
-
}>, "many">>;
|
|
99
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
error: "error";
|
|
101
|
+
info: "info";
|
|
102
|
+
neutral: "neutral";
|
|
103
|
+
primary: "primary";
|
|
104
|
+
secondary: "secondary";
|
|
105
|
+
success: "success";
|
|
106
|
+
warning: "warning";
|
|
107
|
+
}>>;
|
|
108
|
+
variant: z.ZodOptional<z.ZodEnum<typeof ButtonVariant>>;
|
|
109
|
+
}, z.core.$strict>>>;
|
|
173
110
|
options: z.ZodOptional<z.ZodObject<{
|
|
174
|
-
theme: z.ZodOptional<z.ZodEnum<
|
|
111
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
dark: "dark";
|
|
113
|
+
light: "light";
|
|
114
|
+
}>>;
|
|
175
115
|
locale: z.ZodOptional<z.ZodString>;
|
|
176
116
|
padding: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
-
},
|
|
178
|
-
theme?: "dark" | "light" | undefined;
|
|
179
|
-
locale?: string | undefined;
|
|
180
|
-
padding?: boolean | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
theme?: "dark" | "light" | undefined;
|
|
183
|
-
locale?: string | undefined;
|
|
184
|
-
padding?: boolean | undefined;
|
|
185
|
-
}>>;
|
|
117
|
+
}, z.core.$strict>>;
|
|
186
118
|
livePage: z.ZodOptional<z.ZodObject<{
|
|
187
119
|
ref: z.ZodString;
|
|
188
120
|
version: z.ZodString;
|
|
189
|
-
},
|
|
190
|
-
ref: string;
|
|
191
|
-
version: string;
|
|
192
|
-
}, {
|
|
193
|
-
ref: string;
|
|
194
|
-
version: string;
|
|
195
|
-
}>>;
|
|
121
|
+
}, z.core.$strict>>;
|
|
196
122
|
liveRoutes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
197
|
-
fixtures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.
|
|
123
|
+
fixtures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>>;
|
|
198
124
|
custom: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
-
html: z.ZodOptional<z.ZodType<Json, z.
|
|
200
|
-
css: z.ZodOptional<z.ZodType<Json, z.
|
|
201
|
-
height: z.ZodOptional<z.ZodType<Json, z.
|
|
202
|
-
states: z.ZodOptional<z.ZodType<Json, z.
|
|
203
|
-
tree: z.ZodDefault<z.ZodArray<z.ZodType<MockupNode, z.
|
|
204
|
-
},
|
|
205
|
-
id: string;
|
|
206
|
-
title: string;
|
|
207
|
-
category?: string | undefined;
|
|
208
|
-
menu?: boolean | undefined;
|
|
209
|
-
parent?: string | undefined;
|
|
210
|
-
route?: string | undefined;
|
|
211
|
-
icon?: string | undefined;
|
|
212
|
-
description?: string | undefined;
|
|
213
|
-
headerActions?: {
|
|
214
|
-
label: string;
|
|
215
|
-
icon?: string | undefined;
|
|
216
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
217
|
-
variant?: ButtonVariant | undefined;
|
|
218
|
-
}[] | undefined;
|
|
219
|
-
options?: {
|
|
220
|
-
theme?: "dark" | "light" | undefined;
|
|
221
|
-
locale?: string | undefined;
|
|
222
|
-
padding?: boolean | undefined;
|
|
223
|
-
} | undefined;
|
|
224
|
-
livePage?: {
|
|
225
|
-
ref: string;
|
|
226
|
-
version: string;
|
|
227
|
-
} | undefined;
|
|
228
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
229
|
-
fixtures?: Record<string, Json> | undefined;
|
|
230
|
-
custom?: boolean | undefined;
|
|
231
|
-
html?: Json | undefined;
|
|
232
|
-
css?: Json | undefined;
|
|
233
|
-
height?: Json | undefined;
|
|
234
|
-
states?: Json | undefined;
|
|
235
|
-
tree: MockupNode[];
|
|
236
|
-
}, {
|
|
237
|
-
id: string;
|
|
238
|
-
title: string;
|
|
239
|
-
category?: string | undefined;
|
|
240
|
-
menu?: boolean | undefined;
|
|
241
|
-
parent?: string | undefined;
|
|
242
|
-
route?: string | undefined;
|
|
243
|
-
icon?: string | undefined;
|
|
244
|
-
description?: string | undefined;
|
|
245
|
-
headerActions?: {
|
|
246
|
-
label: string;
|
|
247
|
-
icon?: string | undefined;
|
|
248
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
249
|
-
variant?: ButtonVariant | undefined;
|
|
250
|
-
}[] | undefined;
|
|
251
|
-
options?: {
|
|
252
|
-
theme?: "dark" | "light" | undefined;
|
|
253
|
-
locale?: string | undefined;
|
|
254
|
-
padding?: boolean | undefined;
|
|
255
|
-
} | undefined;
|
|
256
|
-
livePage?: {
|
|
257
|
-
ref: string;
|
|
258
|
-
version: string;
|
|
259
|
-
} | undefined;
|
|
260
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
261
|
-
fixtures?: Record<string, Json> | undefined;
|
|
262
|
-
custom?: boolean | undefined;
|
|
263
|
-
html?: Json | undefined;
|
|
264
|
-
css?: Json | undefined;
|
|
265
|
-
height?: Json | undefined;
|
|
266
|
-
states?: Json | undefined;
|
|
267
|
-
tree?: MockupNode[] | undefined;
|
|
268
|
-
}>, {
|
|
269
|
-
id: string;
|
|
270
|
-
title: string;
|
|
271
|
-
category?: string | undefined;
|
|
272
|
-
menu?: boolean | undefined;
|
|
273
|
-
parent?: string | undefined;
|
|
274
|
-
route?: string | undefined;
|
|
275
|
-
icon?: string | undefined;
|
|
276
|
-
description?: string | undefined;
|
|
277
|
-
headerActions?: {
|
|
278
|
-
label: string;
|
|
279
|
-
icon?: string | undefined;
|
|
280
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
281
|
-
variant?: ButtonVariant | undefined;
|
|
282
|
-
}[] | undefined;
|
|
283
|
-
options?: {
|
|
284
|
-
theme?: "dark" | "light" | undefined;
|
|
285
|
-
locale?: string | undefined;
|
|
286
|
-
padding?: boolean | undefined;
|
|
287
|
-
} | undefined;
|
|
288
|
-
livePage?: {
|
|
289
|
-
ref: string;
|
|
290
|
-
version: string;
|
|
291
|
-
} | undefined;
|
|
292
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
293
|
-
fixtures?: Record<string, Json> | undefined;
|
|
294
|
-
custom?: boolean | undefined;
|
|
295
|
-
html?: Json | undefined;
|
|
296
|
-
css?: Json | undefined;
|
|
297
|
-
height?: Json | undefined;
|
|
298
|
-
states?: Json | undefined;
|
|
299
|
-
tree: MockupNode[];
|
|
300
|
-
}, {
|
|
301
|
-
id: string;
|
|
302
|
-
title: string;
|
|
303
|
-
category?: string | undefined;
|
|
304
|
-
menu?: boolean | undefined;
|
|
305
|
-
parent?: string | undefined;
|
|
306
|
-
route?: string | undefined;
|
|
307
|
-
icon?: string | undefined;
|
|
308
|
-
description?: string | undefined;
|
|
309
|
-
headerActions?: {
|
|
310
|
-
label: string;
|
|
311
|
-
icon?: string | undefined;
|
|
312
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
313
|
-
variant?: ButtonVariant | undefined;
|
|
314
|
-
}[] | undefined;
|
|
315
|
-
options?: {
|
|
316
|
-
theme?: "dark" | "light" | undefined;
|
|
317
|
-
locale?: string | undefined;
|
|
318
|
-
padding?: boolean | undefined;
|
|
319
|
-
} | undefined;
|
|
320
|
-
livePage?: {
|
|
321
|
-
ref: string;
|
|
322
|
-
version: string;
|
|
323
|
-
} | undefined;
|
|
324
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
325
|
-
fixtures?: Record<string, Json> | undefined;
|
|
326
|
-
custom?: boolean | undefined;
|
|
327
|
-
html?: Json | undefined;
|
|
328
|
-
css?: Json | undefined;
|
|
329
|
-
height?: Json | undefined;
|
|
330
|
-
states?: Json | undefined;
|
|
331
|
-
tree?: MockupNode[] | undefined;
|
|
332
|
-
}>;
|
|
125
|
+
html: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
126
|
+
css: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
127
|
+
height: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
128
|
+
states: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
129
|
+
tree: z.ZodDefault<z.ZodArray<z.ZodType<MockupNode, unknown, z.core.$ZodTypeInternals<MockupNode, unknown>>>>;
|
|
130
|
+
}, z.core.$strict>;
|
|
333
131
|
export type MockupSpecPage = z.infer<typeof pageSchema>;
|
|
334
132
|
export declare const CUSTOM_PAGE_FIELDS: readonly ["html", "css", "height", "states"];
|
|
335
133
|
export declare const MOCKUP_SOURCES: readonly ["chat", "claude-code", "codex"];
|
|
336
134
|
export type MockupSource = (typeof MOCKUP_SOURCES)[number];
|
|
337
|
-
export declare const mockupSourceSchema: z.ZodEnum<
|
|
135
|
+
export declare const mockupSourceSchema: z.ZodEnum<{
|
|
136
|
+
chat: "chat";
|
|
137
|
+
"claude-code": "claude-code";
|
|
138
|
+
codex: "codex";
|
|
139
|
+
}>;
|
|
338
140
|
export declare const mockupBuiltSchema: z.ZodObject<{
|
|
339
141
|
at: z.ZodString;
|
|
340
142
|
pages: z.ZodArray<z.ZodObject<{
|
|
341
143
|
path: z.ZodString;
|
|
342
144
|
title: z.ZodOptional<z.ZodString>;
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
title?: string | undefined;
|
|
346
|
-
}, {
|
|
347
|
-
path: string;
|
|
348
|
-
title?: string | undefined;
|
|
349
|
-
}>, "many">;
|
|
350
|
-
}, "strict", z.ZodTypeAny, {
|
|
351
|
-
at: string;
|
|
352
|
-
pages: {
|
|
353
|
-
path: string;
|
|
354
|
-
title?: string | undefined;
|
|
355
|
-
}[];
|
|
356
|
-
}, {
|
|
357
|
-
at: string;
|
|
358
|
-
pages: {
|
|
359
|
-
path: string;
|
|
360
|
-
title?: string | undefined;
|
|
361
|
-
}[];
|
|
362
|
-
}>;
|
|
145
|
+
}, z.core.$strict>>;
|
|
146
|
+
}, z.core.$strict>;
|
|
363
147
|
declare const specDataSchema: z.ZodObject<{
|
|
364
148
|
connection: z.ZodString;
|
|
365
|
-
access: z.ZodDefault<z.ZodEnum<
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
},
|
|
370
|
-
connection: string;
|
|
371
|
-
access?: "read" | "read-write" | undefined;
|
|
372
|
-
}>;
|
|
149
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
150
|
+
read: "read";
|
|
151
|
+
"read-write": "read-write";
|
|
152
|
+
}>>;
|
|
153
|
+
}, z.core.$strict>;
|
|
373
154
|
export type MockupData = z.infer<typeof specDataSchema>;
|
|
374
|
-
export declare const specSchema: z.
|
|
155
|
+
export declare const specSchema: z.ZodObject<{
|
|
375
156
|
$schema: z.ZodOptional<z.ZodString>;
|
|
376
157
|
version: z.ZodLiteral<1>;
|
|
377
158
|
title: z.ZodOptional<z.ZodString>;
|
|
378
|
-
source: z.ZodOptional<z.ZodEnum<
|
|
159
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
chat: "chat";
|
|
161
|
+
"claude-code": "claude-code";
|
|
162
|
+
codex: "codex";
|
|
163
|
+
}>>;
|
|
379
164
|
built: z.ZodOptional<z.ZodObject<{
|
|
380
165
|
at: z.ZodString;
|
|
381
166
|
pages: z.ZodArray<z.ZodObject<{
|
|
382
167
|
path: z.ZodString;
|
|
383
168
|
title: z.ZodOptional<z.ZodString>;
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
title?: string | undefined;
|
|
387
|
-
}, {
|
|
388
|
-
path: string;
|
|
389
|
-
title?: string | undefined;
|
|
390
|
-
}>, "many">;
|
|
391
|
-
}, "strict", z.ZodTypeAny, {
|
|
392
|
-
at: string;
|
|
393
|
-
pages: {
|
|
394
|
-
path: string;
|
|
395
|
-
title?: string | undefined;
|
|
396
|
-
}[];
|
|
397
|
-
}, {
|
|
398
|
-
at: string;
|
|
399
|
-
pages: {
|
|
400
|
-
path: string;
|
|
401
|
-
title?: string | undefined;
|
|
402
|
-
}[];
|
|
403
|
-
}>>;
|
|
169
|
+
}, z.core.$strict>>;
|
|
170
|
+
}, z.core.$strict>>;
|
|
404
171
|
data: z.ZodOptional<z.ZodObject<{
|
|
405
172
|
connection: z.ZodString;
|
|
406
|
-
access: z.ZodDefault<z.ZodEnum<
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
},
|
|
411
|
-
connection: string;
|
|
412
|
-
access?: "read" | "read-write" | undefined;
|
|
413
|
-
}>>;
|
|
173
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
174
|
+
read: "read";
|
|
175
|
+
"read-write": "read-write";
|
|
176
|
+
}>>;
|
|
177
|
+
}, z.core.$strict>>;
|
|
414
178
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
415
179
|
id: z.ZodString;
|
|
416
180
|
title: z.ZodString;
|
|
417
181
|
icon: z.ZodOptional<z.ZodString>;
|
|
418
|
-
},
|
|
419
|
-
id: string;
|
|
420
|
-
title: string;
|
|
421
|
-
icon?: string | undefined;
|
|
422
|
-
}, {
|
|
423
|
-
id: string;
|
|
424
|
-
title: string;
|
|
425
|
-
icon?: string | undefined;
|
|
426
|
-
}>, "many">>;
|
|
182
|
+
}, z.core.$strict>>>;
|
|
427
183
|
sidebar: z.ZodOptional<z.ZodObject<{
|
|
428
184
|
widgets: z.ZodArray<z.ZodObject<{
|
|
429
185
|
id: z.ZodString;
|
|
@@ -431,38 +187,10 @@ export declare const specSchema: z.ZodEffects<z.ZodObject<{
|
|
|
431
187
|
html: z.ZodString;
|
|
432
188
|
css: z.ZodOptional<z.ZodString>;
|
|
433
189
|
height: z.ZodOptional<z.ZodNumber>;
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
css?: string | undefined;
|
|
439
|
-
height?: number | undefined;
|
|
440
|
-
}, {
|
|
441
|
-
id: string;
|
|
442
|
-
title?: string | undefined;
|
|
443
|
-
html: string;
|
|
444
|
-
css?: string | undefined;
|
|
445
|
-
height?: number | undefined;
|
|
446
|
-
}>, "many">;
|
|
447
|
-
}, "strict", z.ZodTypeAny, {
|
|
448
|
-
widgets: {
|
|
449
|
-
id: string;
|
|
450
|
-
title?: string | undefined;
|
|
451
|
-
html: string;
|
|
452
|
-
css?: string | undefined;
|
|
453
|
-
height?: number | undefined;
|
|
454
|
-
}[];
|
|
455
|
-
}, {
|
|
456
|
-
widgets: {
|
|
457
|
-
id: string;
|
|
458
|
-
title?: string | undefined;
|
|
459
|
-
html: string;
|
|
460
|
-
css?: string | undefined;
|
|
461
|
-
height?: number | undefined;
|
|
462
|
-
}[];
|
|
463
|
-
}>>;
|
|
464
|
-
modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
465
|
-
pages: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
190
|
+
}, z.core.$strict>>;
|
|
191
|
+
}, z.core.$strict>>;
|
|
192
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
466
194
|
id: z.ZodString;
|
|
467
195
|
title: z.ZodString;
|
|
468
196
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -474,436 +202,39 @@ export declare const specSchema: z.ZodEffects<z.ZodObject<{
|
|
|
474
202
|
headerActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
475
203
|
label: z.ZodString;
|
|
476
204
|
icon: z.ZodOptional<z.ZodString>;
|
|
477
|
-
color: z.ZodOptional<z.ZodEnum<
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
variant?: ButtonVariant | undefined;
|
|
489
|
-
}>, "many">>;
|
|
205
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
206
|
+
error: "error";
|
|
207
|
+
info: "info";
|
|
208
|
+
neutral: "neutral";
|
|
209
|
+
primary: "primary";
|
|
210
|
+
secondary: "secondary";
|
|
211
|
+
success: "success";
|
|
212
|
+
warning: "warning";
|
|
213
|
+
}>>;
|
|
214
|
+
variant: z.ZodOptional<z.ZodEnum<typeof ButtonVariant>>;
|
|
215
|
+
}, z.core.$strict>>>;
|
|
490
216
|
options: z.ZodOptional<z.ZodObject<{
|
|
491
|
-
theme: z.ZodOptional<z.ZodEnum<
|
|
217
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
dark: "dark";
|
|
219
|
+
light: "light";
|
|
220
|
+
}>>;
|
|
492
221
|
locale: z.ZodOptional<z.ZodString>;
|
|
493
222
|
padding: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
-
},
|
|
495
|
-
theme?: "dark" | "light" | undefined;
|
|
496
|
-
locale?: string | undefined;
|
|
497
|
-
padding?: boolean | undefined;
|
|
498
|
-
}, {
|
|
499
|
-
theme?: "dark" | "light" | undefined;
|
|
500
|
-
locale?: string | undefined;
|
|
501
|
-
padding?: boolean | undefined;
|
|
502
|
-
}>>;
|
|
223
|
+
}, z.core.$strict>>;
|
|
503
224
|
livePage: z.ZodOptional<z.ZodObject<{
|
|
504
225
|
ref: z.ZodString;
|
|
505
226
|
version: z.ZodString;
|
|
506
|
-
},
|
|
507
|
-
ref: string;
|
|
508
|
-
version: string;
|
|
509
|
-
}, {
|
|
510
|
-
ref: string;
|
|
511
|
-
version: string;
|
|
512
|
-
}>>;
|
|
227
|
+
}, z.core.$strict>>;
|
|
513
228
|
liveRoutes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
514
|
-
fixtures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.
|
|
229
|
+
fixtures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>>;
|
|
515
230
|
custom: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
-
html: z.ZodOptional<z.ZodType<Json, z.
|
|
517
|
-
css: z.ZodOptional<z.ZodType<Json, z.
|
|
518
|
-
height: z.ZodOptional<z.ZodType<Json, z.
|
|
519
|
-
states: z.ZodOptional<z.ZodType<Json, z.
|
|
520
|
-
tree: z.ZodDefault<z.ZodArray<z.ZodType<MockupNode, z.
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
title: string;
|
|
524
|
-
category?: string | undefined;
|
|
525
|
-
menu?: boolean | undefined;
|
|
526
|
-
parent?: string | undefined;
|
|
527
|
-
route?: string | undefined;
|
|
528
|
-
icon?: string | undefined;
|
|
529
|
-
description?: string | undefined;
|
|
530
|
-
headerActions?: {
|
|
531
|
-
label: string;
|
|
532
|
-
icon?: string | undefined;
|
|
533
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
534
|
-
variant?: ButtonVariant | undefined;
|
|
535
|
-
}[] | undefined;
|
|
536
|
-
options?: {
|
|
537
|
-
theme?: "dark" | "light" | undefined;
|
|
538
|
-
locale?: string | undefined;
|
|
539
|
-
padding?: boolean | undefined;
|
|
540
|
-
} | undefined;
|
|
541
|
-
livePage?: {
|
|
542
|
-
ref: string;
|
|
543
|
-
version: string;
|
|
544
|
-
} | undefined;
|
|
545
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
546
|
-
fixtures?: Record<string, Json> | undefined;
|
|
547
|
-
custom?: boolean | undefined;
|
|
548
|
-
html?: Json | undefined;
|
|
549
|
-
css?: Json | undefined;
|
|
550
|
-
height?: Json | undefined;
|
|
551
|
-
states?: Json | undefined;
|
|
552
|
-
tree: MockupNode[];
|
|
553
|
-
}, {
|
|
554
|
-
id: string;
|
|
555
|
-
title: string;
|
|
556
|
-
category?: string | undefined;
|
|
557
|
-
menu?: boolean | undefined;
|
|
558
|
-
parent?: string | undefined;
|
|
559
|
-
route?: string | undefined;
|
|
560
|
-
icon?: string | undefined;
|
|
561
|
-
description?: string | undefined;
|
|
562
|
-
headerActions?: {
|
|
563
|
-
label: string;
|
|
564
|
-
icon?: string | undefined;
|
|
565
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
566
|
-
variant?: ButtonVariant | undefined;
|
|
567
|
-
}[] | undefined;
|
|
568
|
-
options?: {
|
|
569
|
-
theme?: "dark" | "light" | undefined;
|
|
570
|
-
locale?: string | undefined;
|
|
571
|
-
padding?: boolean | undefined;
|
|
572
|
-
} | undefined;
|
|
573
|
-
livePage?: {
|
|
574
|
-
ref: string;
|
|
575
|
-
version: string;
|
|
576
|
-
} | undefined;
|
|
577
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
578
|
-
fixtures?: Record<string, Json> | undefined;
|
|
579
|
-
custom?: boolean | undefined;
|
|
580
|
-
html?: Json | undefined;
|
|
581
|
-
css?: Json | undefined;
|
|
582
|
-
height?: Json | undefined;
|
|
583
|
-
states?: Json | undefined;
|
|
584
|
-
tree?: MockupNode[] | undefined;
|
|
585
|
-
}>, {
|
|
586
|
-
id: string;
|
|
587
|
-
title: string;
|
|
588
|
-
category?: string | undefined;
|
|
589
|
-
menu?: boolean | undefined;
|
|
590
|
-
parent?: string | undefined;
|
|
591
|
-
route?: string | undefined;
|
|
592
|
-
icon?: string | undefined;
|
|
593
|
-
description?: string | undefined;
|
|
594
|
-
headerActions?: {
|
|
595
|
-
label: string;
|
|
596
|
-
icon?: string | undefined;
|
|
597
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
598
|
-
variant?: ButtonVariant | undefined;
|
|
599
|
-
}[] | undefined;
|
|
600
|
-
options?: {
|
|
601
|
-
theme?: "dark" | "light" | undefined;
|
|
602
|
-
locale?: string | undefined;
|
|
603
|
-
padding?: boolean | undefined;
|
|
604
|
-
} | undefined;
|
|
605
|
-
livePage?: {
|
|
606
|
-
ref: string;
|
|
607
|
-
version: string;
|
|
608
|
-
} | undefined;
|
|
609
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
610
|
-
fixtures?: Record<string, Json> | undefined;
|
|
611
|
-
custom?: boolean | undefined;
|
|
612
|
-
html?: Json | undefined;
|
|
613
|
-
css?: Json | undefined;
|
|
614
|
-
height?: Json | undefined;
|
|
615
|
-
states?: Json | undefined;
|
|
616
|
-
tree: MockupNode[];
|
|
617
|
-
}, {
|
|
618
|
-
id: string;
|
|
619
|
-
title: string;
|
|
620
|
-
category?: string | undefined;
|
|
621
|
-
menu?: boolean | undefined;
|
|
622
|
-
parent?: string | undefined;
|
|
623
|
-
route?: string | undefined;
|
|
624
|
-
icon?: string | undefined;
|
|
625
|
-
description?: string | undefined;
|
|
626
|
-
headerActions?: {
|
|
627
|
-
label: string;
|
|
628
|
-
icon?: string | undefined;
|
|
629
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
630
|
-
variant?: ButtonVariant | undefined;
|
|
631
|
-
}[] | undefined;
|
|
632
|
-
options?: {
|
|
633
|
-
theme?: "dark" | "light" | undefined;
|
|
634
|
-
locale?: string | undefined;
|
|
635
|
-
padding?: boolean | undefined;
|
|
636
|
-
} | undefined;
|
|
637
|
-
livePage?: {
|
|
638
|
-
ref: string;
|
|
639
|
-
version: string;
|
|
640
|
-
} | undefined;
|
|
641
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
642
|
-
fixtures?: Record<string, Json> | undefined;
|
|
643
|
-
custom?: boolean | undefined;
|
|
644
|
-
html?: Json | undefined;
|
|
645
|
-
css?: Json | undefined;
|
|
646
|
-
height?: Json | undefined;
|
|
647
|
-
states?: Json | undefined;
|
|
648
|
-
tree?: MockupNode[] | undefined;
|
|
649
|
-
}>, "many">;
|
|
650
|
-
}, "strict", z.ZodTypeAny, {
|
|
651
|
-
$schema?: string | undefined;
|
|
652
|
-
version: 1;
|
|
653
|
-
title?: string | undefined;
|
|
654
|
-
source?: "chat" | "claude-code" | "codex" | undefined;
|
|
655
|
-
built?: {
|
|
656
|
-
at: string;
|
|
657
|
-
pages: {
|
|
658
|
-
path: string;
|
|
659
|
-
title?: string | undefined;
|
|
660
|
-
}[];
|
|
661
|
-
} | undefined;
|
|
662
|
-
data?: {
|
|
663
|
-
connection: string;
|
|
664
|
-
access: "read" | "read-write";
|
|
665
|
-
} | undefined;
|
|
666
|
-
categories?: {
|
|
667
|
-
id: string;
|
|
668
|
-
title: string;
|
|
669
|
-
icon?: string | undefined;
|
|
670
|
-
}[] | undefined;
|
|
671
|
-
sidebar?: {
|
|
672
|
-
widgets: {
|
|
673
|
-
id: string;
|
|
674
|
-
title?: string | undefined;
|
|
675
|
-
html: string;
|
|
676
|
-
css?: string | undefined;
|
|
677
|
-
height?: number | undefined;
|
|
678
|
-
}[];
|
|
679
|
-
} | undefined;
|
|
680
|
-
modules?: string[] | undefined;
|
|
681
|
-
pages: {
|
|
682
|
-
id: string;
|
|
683
|
-
title: string;
|
|
684
|
-
category?: string | undefined;
|
|
685
|
-
menu?: boolean | undefined;
|
|
686
|
-
parent?: string | undefined;
|
|
687
|
-
route?: string | undefined;
|
|
688
|
-
icon?: string | undefined;
|
|
689
|
-
description?: string | undefined;
|
|
690
|
-
headerActions?: {
|
|
691
|
-
label: string;
|
|
692
|
-
icon?: string | undefined;
|
|
693
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
694
|
-
variant?: ButtonVariant | undefined;
|
|
695
|
-
}[] | undefined;
|
|
696
|
-
options?: {
|
|
697
|
-
theme?: "dark" | "light" | undefined;
|
|
698
|
-
locale?: string | undefined;
|
|
699
|
-
padding?: boolean | undefined;
|
|
700
|
-
} | undefined;
|
|
701
|
-
livePage?: {
|
|
702
|
-
ref: string;
|
|
703
|
-
version: string;
|
|
704
|
-
} | undefined;
|
|
705
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
706
|
-
fixtures?: Record<string, Json> | undefined;
|
|
707
|
-
custom?: boolean | undefined;
|
|
708
|
-
html?: Json | undefined;
|
|
709
|
-
css?: Json | undefined;
|
|
710
|
-
height?: Json | undefined;
|
|
711
|
-
states?: Json | undefined;
|
|
712
|
-
tree: MockupNode[];
|
|
713
|
-
}[];
|
|
714
|
-
}, {
|
|
715
|
-
$schema?: string | undefined;
|
|
716
|
-
version: 1;
|
|
717
|
-
title?: string | undefined;
|
|
718
|
-
source?: "chat" | "claude-code" | "codex" | undefined;
|
|
719
|
-
built?: {
|
|
720
|
-
at: string;
|
|
721
|
-
pages: {
|
|
722
|
-
path: string;
|
|
723
|
-
title?: string | undefined;
|
|
724
|
-
}[];
|
|
725
|
-
} | undefined;
|
|
726
|
-
data?: {
|
|
727
|
-
connection: string;
|
|
728
|
-
access?: "read" | "read-write" | undefined;
|
|
729
|
-
} | undefined;
|
|
730
|
-
categories?: {
|
|
731
|
-
id: string;
|
|
732
|
-
title: string;
|
|
733
|
-
icon?: string | undefined;
|
|
734
|
-
}[] | undefined;
|
|
735
|
-
sidebar?: {
|
|
736
|
-
widgets: {
|
|
737
|
-
id: string;
|
|
738
|
-
title?: string | undefined;
|
|
739
|
-
html: string;
|
|
740
|
-
css?: string | undefined;
|
|
741
|
-
height?: number | undefined;
|
|
742
|
-
}[];
|
|
743
|
-
} | undefined;
|
|
744
|
-
modules?: string[] | undefined;
|
|
745
|
-
pages: {
|
|
746
|
-
id: string;
|
|
747
|
-
title: string;
|
|
748
|
-
category?: string | undefined;
|
|
749
|
-
menu?: boolean | undefined;
|
|
750
|
-
parent?: string | undefined;
|
|
751
|
-
route?: string | undefined;
|
|
752
|
-
icon?: string | undefined;
|
|
753
|
-
description?: string | undefined;
|
|
754
|
-
headerActions?: {
|
|
755
|
-
label: string;
|
|
756
|
-
icon?: string | undefined;
|
|
757
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
758
|
-
variant?: ButtonVariant | undefined;
|
|
759
|
-
}[] | undefined;
|
|
760
|
-
options?: {
|
|
761
|
-
theme?: "dark" | "light" | undefined;
|
|
762
|
-
locale?: string | undefined;
|
|
763
|
-
padding?: boolean | undefined;
|
|
764
|
-
} | undefined;
|
|
765
|
-
livePage?: {
|
|
766
|
-
ref: string;
|
|
767
|
-
version: string;
|
|
768
|
-
} | undefined;
|
|
769
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
770
|
-
fixtures?: Record<string, Json> | undefined;
|
|
771
|
-
custom?: boolean | undefined;
|
|
772
|
-
html?: Json | undefined;
|
|
773
|
-
css?: Json | undefined;
|
|
774
|
-
height?: Json | undefined;
|
|
775
|
-
states?: Json | undefined;
|
|
776
|
-
tree?: MockupNode[] | undefined;
|
|
777
|
-
}[];
|
|
778
|
-
}>, {
|
|
779
|
-
$schema?: string | undefined;
|
|
780
|
-
version: 1;
|
|
781
|
-
title?: string | undefined;
|
|
782
|
-
source?: "chat" | "claude-code" | "codex" | undefined;
|
|
783
|
-
built?: {
|
|
784
|
-
at: string;
|
|
785
|
-
pages: {
|
|
786
|
-
path: string;
|
|
787
|
-
title?: string | undefined;
|
|
788
|
-
}[];
|
|
789
|
-
} | undefined;
|
|
790
|
-
data?: {
|
|
791
|
-
connection: string;
|
|
792
|
-
access: "read" | "read-write";
|
|
793
|
-
} | undefined;
|
|
794
|
-
categories?: {
|
|
795
|
-
id: string;
|
|
796
|
-
title: string;
|
|
797
|
-
icon?: string | undefined;
|
|
798
|
-
}[] | undefined;
|
|
799
|
-
sidebar?: {
|
|
800
|
-
widgets: {
|
|
801
|
-
id: string;
|
|
802
|
-
title?: string | undefined;
|
|
803
|
-
html: string;
|
|
804
|
-
css?: string | undefined;
|
|
805
|
-
height?: number | undefined;
|
|
806
|
-
}[];
|
|
807
|
-
} | undefined;
|
|
808
|
-
modules?: string[] | undefined;
|
|
809
|
-
pages: {
|
|
810
|
-
id: string;
|
|
811
|
-
title: string;
|
|
812
|
-
category?: string | undefined;
|
|
813
|
-
menu?: boolean | undefined;
|
|
814
|
-
parent?: string | undefined;
|
|
815
|
-
route?: string | undefined;
|
|
816
|
-
icon?: string | undefined;
|
|
817
|
-
description?: string | undefined;
|
|
818
|
-
headerActions?: {
|
|
819
|
-
label: string;
|
|
820
|
-
icon?: string | undefined;
|
|
821
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
822
|
-
variant?: ButtonVariant | undefined;
|
|
823
|
-
}[] | undefined;
|
|
824
|
-
options?: {
|
|
825
|
-
theme?: "dark" | "light" | undefined;
|
|
826
|
-
locale?: string | undefined;
|
|
827
|
-
padding?: boolean | undefined;
|
|
828
|
-
} | undefined;
|
|
829
|
-
livePage?: {
|
|
830
|
-
ref: string;
|
|
831
|
-
version: string;
|
|
832
|
-
} | undefined;
|
|
833
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
834
|
-
fixtures?: Record<string, Json> | undefined;
|
|
835
|
-
custom?: boolean | undefined;
|
|
836
|
-
html?: Json | undefined;
|
|
837
|
-
css?: Json | undefined;
|
|
838
|
-
height?: Json | undefined;
|
|
839
|
-
states?: Json | undefined;
|
|
840
|
-
tree: MockupNode[];
|
|
841
|
-
}[];
|
|
842
|
-
}, {
|
|
843
|
-
$schema?: string | undefined;
|
|
844
|
-
version: 1;
|
|
845
|
-
title?: string | undefined;
|
|
846
|
-
source?: "chat" | "claude-code" | "codex" | undefined;
|
|
847
|
-
built?: {
|
|
848
|
-
at: string;
|
|
849
|
-
pages: {
|
|
850
|
-
path: string;
|
|
851
|
-
title?: string | undefined;
|
|
852
|
-
}[];
|
|
853
|
-
} | undefined;
|
|
854
|
-
data?: {
|
|
855
|
-
connection: string;
|
|
856
|
-
access?: "read" | "read-write" | undefined;
|
|
857
|
-
} | undefined;
|
|
858
|
-
categories?: {
|
|
859
|
-
id: string;
|
|
860
|
-
title: string;
|
|
861
|
-
icon?: string | undefined;
|
|
862
|
-
}[] | undefined;
|
|
863
|
-
sidebar?: {
|
|
864
|
-
widgets: {
|
|
865
|
-
id: string;
|
|
866
|
-
title?: string | undefined;
|
|
867
|
-
html: string;
|
|
868
|
-
css?: string | undefined;
|
|
869
|
-
height?: number | undefined;
|
|
870
|
-
}[];
|
|
871
|
-
} | undefined;
|
|
872
|
-
modules?: string[] | undefined;
|
|
873
|
-
pages: {
|
|
874
|
-
id: string;
|
|
875
|
-
title: string;
|
|
876
|
-
category?: string | undefined;
|
|
877
|
-
menu?: boolean | undefined;
|
|
878
|
-
parent?: string | undefined;
|
|
879
|
-
route?: string | undefined;
|
|
880
|
-
icon?: string | undefined;
|
|
881
|
-
description?: string | undefined;
|
|
882
|
-
headerActions?: {
|
|
883
|
-
label: string;
|
|
884
|
-
icon?: string | undefined;
|
|
885
|
-
color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
886
|
-
variant?: ButtonVariant | undefined;
|
|
887
|
-
}[] | undefined;
|
|
888
|
-
options?: {
|
|
889
|
-
theme?: "dark" | "light" | undefined;
|
|
890
|
-
locale?: string | undefined;
|
|
891
|
-
padding?: boolean | undefined;
|
|
892
|
-
} | undefined;
|
|
893
|
-
livePage?: {
|
|
894
|
-
ref: string;
|
|
895
|
-
version: string;
|
|
896
|
-
} | undefined;
|
|
897
|
-
liveRoutes?: Record<string, string> | undefined;
|
|
898
|
-
fixtures?: Record<string, Json> | undefined;
|
|
899
|
-
custom?: boolean | undefined;
|
|
900
|
-
html?: Json | undefined;
|
|
901
|
-
css?: Json | undefined;
|
|
902
|
-
height?: Json | undefined;
|
|
903
|
-
states?: Json | undefined;
|
|
904
|
-
tree?: MockupNode[] | undefined;
|
|
905
|
-
}[];
|
|
906
|
-
}>;
|
|
231
|
+
html: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
232
|
+
css: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
233
|
+
height: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
234
|
+
states: z.ZodOptional<z.ZodType<Json, unknown, z.core.$ZodTypeInternals<Json, unknown>>>;
|
|
235
|
+
tree: z.ZodDefault<z.ZodArray<z.ZodType<MockupNode, unknown, z.core.$ZodTypeInternals<MockupNode, unknown>>>>;
|
|
236
|
+
}, z.core.$strict>>;
|
|
237
|
+
}, z.core.$strict>;
|
|
907
238
|
export type MockupSpec = z.infer<typeof specSchema>;
|
|
908
239
|
export interface MockupIssue {
|
|
909
240
|
path: string;
|
|
@@ -953,5 +284,5 @@ export interface MockupState {
|
|
|
953
284
|
}
|
|
954
285
|
export declare function isJsonObject(value: Json | undefined): value is JsonObject;
|
|
955
286
|
export declare function specValueAt(value: Json, pointer: string): Json | undefined;
|
|
956
|
-
export declare function jsonPointer(path:
|
|
287
|
+
export declare function jsonPointer(path: readonly PropertyKey[]): string;
|
|
957
288
|
export declare function zodIssues(base: string, error: z.ZodError): MockupIssue[];
|