@tutorialkit-rb/types 0.1.4

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.
@@ -0,0 +1,894 @@
1
+ import { z } from 'zod';
2
+ export declare const commandSchema: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodObject<{
3
+ command: z.ZodString;
4
+ title: z.ZodString;
5
+ }, "strict", z.ZodTypeAny, {
6
+ title: string;
7
+ command: string;
8
+ }, {
9
+ title: string;
10
+ command: string;
11
+ }>]>;
12
+ export type CommandSchema = z.infer<typeof commandSchema>;
13
+ export declare const commandsSchema: z.ZodObject<{
14
+ mainCommand: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodObject<{
15
+ command: z.ZodString;
16
+ title: z.ZodString;
17
+ }, "strict", z.ZodTypeAny, {
18
+ title: string;
19
+ command: string;
20
+ }, {
21
+ title: string;
22
+ command: string;
23
+ }>]>>;
24
+ prepareCommands: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodObject<{
25
+ command: z.ZodString;
26
+ title: z.ZodString;
27
+ }, "strict", z.ZodTypeAny, {
28
+ title: string;
29
+ command: string;
30
+ }, {
31
+ title: string;
32
+ command: string;
33
+ }>]>, "many">>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ mainCommand?: string | [string, string] | {
36
+ title: string;
37
+ command: string;
38
+ } | undefined;
39
+ prepareCommands?: (string | [string, string] | {
40
+ title: string;
41
+ command: string;
42
+ })[] | undefined;
43
+ }, {
44
+ mainCommand?: string | [string, string] | {
45
+ title: string;
46
+ command: string;
47
+ } | undefined;
48
+ prepareCommands?: (string | [string, string] | {
49
+ title: string;
50
+ command: string;
51
+ })[] | undefined;
52
+ }>;
53
+ export type CommandsSchema = z.infer<typeof commandsSchema>;
54
+ export declare const previewSchema: z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodString], null>, z.ZodTuple<[z.ZodNumber, z.ZodString, z.ZodString], null>, z.ZodObject<{
55
+ port: z.ZodNumber;
56
+ title: z.ZodString;
57
+ pathname: z.ZodOptional<z.ZodString>;
58
+ }, "strict", z.ZodTypeAny, {
59
+ title: string;
60
+ port: number;
61
+ pathname?: string | undefined;
62
+ }, {
63
+ title: string;
64
+ port: number;
65
+ pathname?: string | undefined;
66
+ }>]>, "many">]>;
67
+ export type PreviewSchema = z.infer<typeof previewSchema>;
68
+ export declare const fileSystemSchema: z.ZodObject<{
69
+ watch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ watch?: boolean | string[] | undefined;
72
+ }, {
73
+ watch?: boolean | string[] | undefined;
74
+ }>;
75
+ export type FileSystemSchema = z.infer<typeof fileSystemSchema>;
76
+ declare const panelTypeSchema: z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>;
77
+ export declare const terminalSchema: z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
78
+ open: z.ZodOptional<z.ZodBoolean>;
79
+ panels: z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">, z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>, z.ZodString], null>, z.ZodObject<{
80
+ type: z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>;
81
+ id: z.ZodOptional<z.ZodString>;
82
+ title: z.ZodOptional<z.ZodString>;
83
+ allowRedirects: z.ZodOptional<z.ZodBoolean>;
84
+ allowCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
+ }, "strict", z.ZodTypeAny, {
86
+ type: "output" | "terminal";
87
+ title?: string | undefined;
88
+ id?: string | undefined;
89
+ allowRedirects?: boolean | undefined;
90
+ allowCommands?: string[] | undefined;
91
+ }, {
92
+ type: "output" | "terminal";
93
+ title?: string | undefined;
94
+ id?: string | undefined;
95
+ allowRedirects?: boolean | undefined;
96
+ allowCommands?: string[] | undefined;
97
+ }>]>, "many">, ("output" | "terminal" | ["output" | "terminal", string] | {
98
+ type: "output" | "terminal";
99
+ title?: string | undefined;
100
+ id?: string | undefined;
101
+ allowRedirects?: boolean | undefined;
102
+ allowCommands?: string[] | undefined;
103
+ })[], ("output" | "terminal" | ["output" | "terminal", string] | {
104
+ type: "output" | "terminal";
105
+ title?: string | undefined;
106
+ id?: string | undefined;
107
+ allowRedirects?: boolean | undefined;
108
+ allowCommands?: string[] | undefined;
109
+ })[]>]>;
110
+ activePanel: z.ZodOptional<z.ZodNumber>;
111
+ allowRedirects: z.ZodOptional<z.ZodBoolean>;
112
+ allowCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
113
+ }, "strict", z.ZodTypeAny, {
114
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
115
+ type: "output" | "terminal";
116
+ title?: string | undefined;
117
+ id?: string | undefined;
118
+ allowRedirects?: boolean | undefined;
119
+ allowCommands?: string[] | undefined;
120
+ })[];
121
+ open?: boolean | undefined;
122
+ allowRedirects?: boolean | undefined;
123
+ allowCommands?: string[] | undefined;
124
+ activePanel?: number | undefined;
125
+ }, {
126
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
127
+ type: "output" | "terminal";
128
+ title?: string | undefined;
129
+ id?: string | undefined;
130
+ allowRedirects?: boolean | undefined;
131
+ allowCommands?: string[] | undefined;
132
+ })[];
133
+ open?: boolean | undefined;
134
+ allowRedirects?: boolean | undefined;
135
+ allowCommands?: string[] | undefined;
136
+ activePanel?: number | undefined;
137
+ }>]>;
138
+ export declare const editorSchema: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
139
+ fileTree: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
140
+ allowEdits: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString, "many">]>;
141
+ }, "strict", z.ZodTypeAny, {
142
+ allowEdits: string | boolean | string[];
143
+ }, {
144
+ allowEdits: string | boolean | string[];
145
+ }>]>>;
146
+ }, "strict", z.ZodTypeAny, {
147
+ fileTree?: boolean | {
148
+ allowEdits: string | boolean | string[];
149
+ } | undefined;
150
+ }, {
151
+ fileTree?: boolean | {
152
+ allowEdits: string | boolean | string[];
153
+ } | undefined;
154
+ }>]>;
155
+ declare const customSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
156
+ export type TerminalPanelType = z.infer<typeof panelTypeSchema>;
157
+ export type TerminalSchema = z.infer<typeof terminalSchema>;
158
+ export type EditorSchema = z.infer<typeof editorSchema>;
159
+ export type CustomSchema = z.infer<typeof customSchema>;
160
+ export declare const webcontainerSchema: z.ZodObject<z.objectUtil.extendShape<{
161
+ mainCommand: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodObject<{
162
+ command: z.ZodString;
163
+ title: z.ZodString;
164
+ }, "strict", z.ZodTypeAny, {
165
+ title: string;
166
+ command: string;
167
+ }, {
168
+ title: string;
169
+ command: string;
170
+ }>]>>;
171
+ prepareCommands: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodObject<{
172
+ command: z.ZodString;
173
+ title: z.ZodString;
174
+ }, "strict", z.ZodTypeAny, {
175
+ title: string;
176
+ command: string;
177
+ }, {
178
+ title: string;
179
+ command: string;
180
+ }>]>, "many">>;
181
+ }, {
182
+ meta: z.ZodOptional<z.ZodObject<{
183
+ image: z.ZodOptional<z.ZodString>;
184
+ description: z.ZodOptional<z.ZodString>;
185
+ title: z.ZodOptional<z.ZodString>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ image?: string | undefined;
188
+ description?: string | undefined;
189
+ title?: string | undefined;
190
+ }, {
191
+ image?: string | undefined;
192
+ description?: string | undefined;
193
+ title?: string | undefined;
194
+ }>>;
195
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
196
+ previews: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodString], null>, z.ZodTuple<[z.ZodNumber, z.ZodString, z.ZodString], null>, z.ZodObject<{
197
+ port: z.ZodNumber;
198
+ title: z.ZodString;
199
+ pathname: z.ZodOptional<z.ZodString>;
200
+ }, "strict", z.ZodTypeAny, {
201
+ title: string;
202
+ port: number;
203
+ pathname?: string | undefined;
204
+ }, {
205
+ title: string;
206
+ port: number;
207
+ pathname?: string | undefined;
208
+ }>]>, "many">]>>;
209
+ autoReload: z.ZodOptional<z.ZodBoolean>;
210
+ filesystem: z.ZodOptional<z.ZodObject<{
211
+ watch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ watch?: boolean | string[] | undefined;
214
+ }, {
215
+ watch?: boolean | string[] | undefined;
216
+ }>>;
217
+ template: z.ZodOptional<z.ZodString>;
218
+ terminal: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
219
+ open: z.ZodOptional<z.ZodBoolean>;
220
+ panels: z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">, z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>, z.ZodString], null>, z.ZodObject<{
221
+ type: z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>;
222
+ id: z.ZodOptional<z.ZodString>;
223
+ title: z.ZodOptional<z.ZodString>;
224
+ allowRedirects: z.ZodOptional<z.ZodBoolean>;
225
+ allowCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
226
+ }, "strict", z.ZodTypeAny, {
227
+ type: "output" | "terminal";
228
+ title?: string | undefined;
229
+ id?: string | undefined;
230
+ allowRedirects?: boolean | undefined;
231
+ allowCommands?: string[] | undefined;
232
+ }, {
233
+ type: "output" | "terminal";
234
+ title?: string | undefined;
235
+ id?: string | undefined;
236
+ allowRedirects?: boolean | undefined;
237
+ allowCommands?: string[] | undefined;
238
+ }>]>, "many">, ("output" | "terminal" | ["output" | "terminal", string] | {
239
+ type: "output" | "terminal";
240
+ title?: string | undefined;
241
+ id?: string | undefined;
242
+ allowRedirects?: boolean | undefined;
243
+ allowCommands?: string[] | undefined;
244
+ })[], ("output" | "terminal" | ["output" | "terminal", string] | {
245
+ type: "output" | "terminal";
246
+ title?: string | undefined;
247
+ id?: string | undefined;
248
+ allowRedirects?: boolean | undefined;
249
+ allowCommands?: string[] | undefined;
250
+ })[]>]>;
251
+ activePanel: z.ZodOptional<z.ZodNumber>;
252
+ allowRedirects: z.ZodOptional<z.ZodBoolean>;
253
+ allowCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
254
+ }, "strict", z.ZodTypeAny, {
255
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
256
+ type: "output" | "terminal";
257
+ title?: string | undefined;
258
+ id?: string | undefined;
259
+ allowRedirects?: boolean | undefined;
260
+ allowCommands?: string[] | undefined;
261
+ })[];
262
+ open?: boolean | undefined;
263
+ allowRedirects?: boolean | undefined;
264
+ allowCommands?: string[] | undefined;
265
+ activePanel?: number | undefined;
266
+ }, {
267
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
268
+ type: "output" | "terminal";
269
+ title?: string | undefined;
270
+ id?: string | undefined;
271
+ allowRedirects?: boolean | undefined;
272
+ allowCommands?: string[] | undefined;
273
+ })[];
274
+ open?: boolean | undefined;
275
+ allowRedirects?: boolean | undefined;
276
+ allowCommands?: string[] | undefined;
277
+ activePanel?: number | undefined;
278
+ }>]>>;
279
+ focus: z.ZodOptional<z.ZodString>;
280
+ editor: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
281
+ fileTree: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
282
+ allowEdits: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString, "many">]>;
283
+ }, "strict", z.ZodTypeAny, {
284
+ allowEdits: string | boolean | string[];
285
+ }, {
286
+ allowEdits: string | boolean | string[];
287
+ }>]>>;
288
+ }, "strict", z.ZodTypeAny, {
289
+ fileTree?: boolean | {
290
+ allowEdits: string | boolean | string[];
291
+ } | undefined;
292
+ }, {
293
+ fileTree?: boolean | {
294
+ allowEdits: string | boolean | string[];
295
+ } | undefined;
296
+ }>]>>;
297
+ i18n: z.ZodOptional<z.ZodObject<{
298
+ partTemplate: z.ZodOptional<z.ZodString>;
299
+ editPageText: z.ZodOptional<z.ZodString>;
300
+ webcontainerLinkText: z.ZodOptional<z.ZodString>;
301
+ startWebContainerText: z.ZodOptional<z.ZodString>;
302
+ noPreviewNorStepsText: z.ZodOptional<z.ZodString>;
303
+ filesTitleText: z.ZodOptional<z.ZodString>;
304
+ fileTreeCreateFileText: z.ZodOptional<z.ZodString>;
305
+ fileTreeCreateFolderText: z.ZodOptional<z.ZodString>;
306
+ fileTreeActionNotAllowedText: z.ZodOptional<z.ZodString>;
307
+ fileTreeFileExistsAlreadyText: z.ZodOptional<z.ZodString>;
308
+ fileTreeAllowedPatternsText: z.ZodOptional<z.ZodString>;
309
+ confirmationText: z.ZodOptional<z.ZodString>;
310
+ prepareEnvironmentTitleText: z.ZodOptional<z.ZodString>;
311
+ defaultPreviewTitleText: z.ZodOptional<z.ZodString>;
312
+ reloadPreviewTitle: z.ZodOptional<z.ZodString>;
313
+ toggleTerminalButtonText: z.ZodOptional<z.ZodString>;
314
+ solveButtonText: z.ZodOptional<z.ZodString>;
315
+ resetButtonText: z.ZodOptional<z.ZodString>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ partTemplate?: string | undefined;
318
+ editPageText?: string | undefined;
319
+ webcontainerLinkText?: string | undefined;
320
+ startWebContainerText?: string | undefined;
321
+ noPreviewNorStepsText?: string | undefined;
322
+ filesTitleText?: string | undefined;
323
+ fileTreeCreateFileText?: string | undefined;
324
+ fileTreeCreateFolderText?: string | undefined;
325
+ fileTreeActionNotAllowedText?: string | undefined;
326
+ fileTreeFileExistsAlreadyText?: string | undefined;
327
+ fileTreeAllowedPatternsText?: string | undefined;
328
+ confirmationText?: string | undefined;
329
+ prepareEnvironmentTitleText?: string | undefined;
330
+ defaultPreviewTitleText?: string | undefined;
331
+ reloadPreviewTitle?: string | undefined;
332
+ toggleTerminalButtonText?: string | undefined;
333
+ solveButtonText?: string | undefined;
334
+ resetButtonText?: string | undefined;
335
+ }, {
336
+ partTemplate?: string | undefined;
337
+ editPageText?: string | undefined;
338
+ webcontainerLinkText?: string | undefined;
339
+ startWebContainerText?: string | undefined;
340
+ noPreviewNorStepsText?: string | undefined;
341
+ filesTitleText?: string | undefined;
342
+ fileTreeCreateFileText?: string | undefined;
343
+ fileTreeCreateFolderText?: string | undefined;
344
+ fileTreeActionNotAllowedText?: string | undefined;
345
+ fileTreeFileExistsAlreadyText?: string | undefined;
346
+ fileTreeAllowedPatternsText?: string | undefined;
347
+ confirmationText?: string | undefined;
348
+ prepareEnvironmentTitleText?: string | undefined;
349
+ defaultPreviewTitleText?: string | undefined;
350
+ reloadPreviewTitle?: string | undefined;
351
+ toggleTerminalButtonText?: string | undefined;
352
+ solveButtonText?: string | undefined;
353
+ resetButtonText?: string | undefined;
354
+ }>>;
355
+ editPageLink: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
356
+ openInStackBlitz: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
357
+ projectTitle: z.ZodOptional<z.ZodString>;
358
+ projectDescription: z.ZodOptional<z.ZodString>;
359
+ projectTemplate: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"html">, z.ZodLiteral<"node">, z.ZodLiteral<"angular-cli">, z.ZodLiteral<"create-react-app">, z.ZodLiteral<"javascript">, z.ZodLiteral<"polymer">, z.ZodLiteral<"typescript">, z.ZodLiteral<"vue">]>>;
360
+ }, "strict", z.ZodTypeAny, {
361
+ projectTitle?: string | undefined;
362
+ projectDescription?: string | undefined;
363
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
364
+ }, {
365
+ projectTitle?: string | undefined;
366
+ projectDescription?: string | undefined;
367
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
368
+ }>]>>;
369
+ downloadAsZip: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
370
+ filename: z.ZodString;
371
+ }, "strict", z.ZodTypeAny, {
372
+ filename: string;
373
+ }, {
374
+ filename: string;
375
+ }>]>>;
376
+ }>, "strip", z.ZodTypeAny, {
377
+ custom?: Record<string, any> | undefined;
378
+ mainCommand?: string | [string, string] | {
379
+ title: string;
380
+ command: string;
381
+ } | undefined;
382
+ prepareCommands?: (string | [string, string] | {
383
+ title: string;
384
+ command: string;
385
+ })[] | undefined;
386
+ terminal?: boolean | {
387
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
388
+ type: "output" | "terminal";
389
+ title?: string | undefined;
390
+ id?: string | undefined;
391
+ allowRedirects?: boolean | undefined;
392
+ allowCommands?: string[] | undefined;
393
+ })[];
394
+ open?: boolean | undefined;
395
+ allowRedirects?: boolean | undefined;
396
+ allowCommands?: string[] | undefined;
397
+ activePanel?: number | undefined;
398
+ } | undefined;
399
+ meta?: {
400
+ image?: string | undefined;
401
+ description?: string | undefined;
402
+ title?: string | undefined;
403
+ } | undefined;
404
+ previews?: boolean | (string | number | [number, string] | [number, string, string] | {
405
+ title: string;
406
+ port: number;
407
+ pathname?: string | undefined;
408
+ })[] | undefined;
409
+ autoReload?: boolean | undefined;
410
+ filesystem?: {
411
+ watch?: boolean | string[] | undefined;
412
+ } | undefined;
413
+ template?: string | undefined;
414
+ focus?: string | undefined;
415
+ editor?: boolean | {
416
+ fileTree?: boolean | {
417
+ allowEdits: string | boolean | string[];
418
+ } | undefined;
419
+ } | undefined;
420
+ i18n?: {
421
+ partTemplate?: string | undefined;
422
+ editPageText?: string | undefined;
423
+ webcontainerLinkText?: string | undefined;
424
+ startWebContainerText?: string | undefined;
425
+ noPreviewNorStepsText?: string | undefined;
426
+ filesTitleText?: string | undefined;
427
+ fileTreeCreateFileText?: string | undefined;
428
+ fileTreeCreateFolderText?: string | undefined;
429
+ fileTreeActionNotAllowedText?: string | undefined;
430
+ fileTreeFileExistsAlreadyText?: string | undefined;
431
+ fileTreeAllowedPatternsText?: string | undefined;
432
+ confirmationText?: string | undefined;
433
+ prepareEnvironmentTitleText?: string | undefined;
434
+ defaultPreviewTitleText?: string | undefined;
435
+ reloadPreviewTitle?: string | undefined;
436
+ toggleTerminalButtonText?: string | undefined;
437
+ solveButtonText?: string | undefined;
438
+ resetButtonText?: string | undefined;
439
+ } | undefined;
440
+ editPageLink?: string | boolean | undefined;
441
+ openInStackBlitz?: boolean | {
442
+ projectTitle?: string | undefined;
443
+ projectDescription?: string | undefined;
444
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
445
+ } | undefined;
446
+ downloadAsZip?: boolean | {
447
+ filename: string;
448
+ } | undefined;
449
+ }, {
450
+ custom?: Record<string, any> | undefined;
451
+ mainCommand?: string | [string, string] | {
452
+ title: string;
453
+ command: string;
454
+ } | undefined;
455
+ prepareCommands?: (string | [string, string] | {
456
+ title: string;
457
+ command: string;
458
+ })[] | undefined;
459
+ terminal?: boolean | {
460
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
461
+ type: "output" | "terminal";
462
+ title?: string | undefined;
463
+ id?: string | undefined;
464
+ allowRedirects?: boolean | undefined;
465
+ allowCommands?: string[] | undefined;
466
+ })[];
467
+ open?: boolean | undefined;
468
+ allowRedirects?: boolean | undefined;
469
+ allowCommands?: string[] | undefined;
470
+ activePanel?: number | undefined;
471
+ } | undefined;
472
+ meta?: {
473
+ image?: string | undefined;
474
+ description?: string | undefined;
475
+ title?: string | undefined;
476
+ } | undefined;
477
+ previews?: boolean | (string | number | [number, string] | [number, string, string] | {
478
+ title: string;
479
+ port: number;
480
+ pathname?: string | undefined;
481
+ })[] | undefined;
482
+ autoReload?: boolean | undefined;
483
+ filesystem?: {
484
+ watch?: boolean | string[] | undefined;
485
+ } | undefined;
486
+ template?: string | undefined;
487
+ focus?: string | undefined;
488
+ editor?: boolean | {
489
+ fileTree?: boolean | {
490
+ allowEdits: string | boolean | string[];
491
+ } | undefined;
492
+ } | undefined;
493
+ i18n?: {
494
+ partTemplate?: string | undefined;
495
+ editPageText?: string | undefined;
496
+ webcontainerLinkText?: string | undefined;
497
+ startWebContainerText?: string | undefined;
498
+ noPreviewNorStepsText?: string | undefined;
499
+ filesTitleText?: string | undefined;
500
+ fileTreeCreateFileText?: string | undefined;
501
+ fileTreeCreateFolderText?: string | undefined;
502
+ fileTreeActionNotAllowedText?: string | undefined;
503
+ fileTreeFileExistsAlreadyText?: string | undefined;
504
+ fileTreeAllowedPatternsText?: string | undefined;
505
+ confirmationText?: string | undefined;
506
+ prepareEnvironmentTitleText?: string | undefined;
507
+ defaultPreviewTitleText?: string | undefined;
508
+ reloadPreviewTitle?: string | undefined;
509
+ toggleTerminalButtonText?: string | undefined;
510
+ solveButtonText?: string | undefined;
511
+ resetButtonText?: string | undefined;
512
+ } | undefined;
513
+ editPageLink?: string | boolean | undefined;
514
+ openInStackBlitz?: boolean | {
515
+ projectTitle?: string | undefined;
516
+ projectDescription?: string | undefined;
517
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
518
+ } | undefined;
519
+ downloadAsZip?: boolean | {
520
+ filename: string;
521
+ } | undefined;
522
+ }>;
523
+ export declare const baseSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
524
+ mainCommand: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodObject<{
525
+ command: z.ZodString;
526
+ title: z.ZodString;
527
+ }, "strict", z.ZodTypeAny, {
528
+ title: string;
529
+ command: string;
530
+ }, {
531
+ title: string;
532
+ command: string;
533
+ }>]>>;
534
+ prepareCommands: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodObject<{
535
+ command: z.ZodString;
536
+ title: z.ZodString;
537
+ }, "strict", z.ZodTypeAny, {
538
+ title: string;
539
+ command: string;
540
+ }, {
541
+ title: string;
542
+ command: string;
543
+ }>]>, "many">>;
544
+ }, {
545
+ meta: z.ZodOptional<z.ZodObject<{
546
+ image: z.ZodOptional<z.ZodString>;
547
+ description: z.ZodOptional<z.ZodString>;
548
+ title: z.ZodOptional<z.ZodString>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ image?: string | undefined;
551
+ description?: string | undefined;
552
+ title?: string | undefined;
553
+ }, {
554
+ image?: string | undefined;
555
+ description?: string | undefined;
556
+ title?: string | undefined;
557
+ }>>;
558
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
559
+ previews: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodString], null>, z.ZodTuple<[z.ZodNumber, z.ZodString, z.ZodString], null>, z.ZodObject<{
560
+ port: z.ZodNumber;
561
+ title: z.ZodString;
562
+ pathname: z.ZodOptional<z.ZodString>;
563
+ }, "strict", z.ZodTypeAny, {
564
+ title: string;
565
+ port: number;
566
+ pathname?: string | undefined;
567
+ }, {
568
+ title: string;
569
+ port: number;
570
+ pathname?: string | undefined;
571
+ }>]>, "many">]>>;
572
+ autoReload: z.ZodOptional<z.ZodBoolean>;
573
+ filesystem: z.ZodOptional<z.ZodObject<{
574
+ watch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ watch?: boolean | string[] | undefined;
577
+ }, {
578
+ watch?: boolean | string[] | undefined;
579
+ }>>;
580
+ template: z.ZodOptional<z.ZodString>;
581
+ terminal: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
582
+ open: z.ZodOptional<z.ZodBoolean>;
583
+ panels: z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">, z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>, z.ZodString], null>, z.ZodObject<{
584
+ type: z.ZodUnion<[z.ZodLiteral<"output">, z.ZodLiteral<"terminal">]>;
585
+ id: z.ZodOptional<z.ZodString>;
586
+ title: z.ZodOptional<z.ZodString>;
587
+ allowRedirects: z.ZodOptional<z.ZodBoolean>;
588
+ allowCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
589
+ }, "strict", z.ZodTypeAny, {
590
+ type: "output" | "terminal";
591
+ title?: string | undefined;
592
+ id?: string | undefined;
593
+ allowRedirects?: boolean | undefined;
594
+ allowCommands?: string[] | undefined;
595
+ }, {
596
+ type: "output" | "terminal";
597
+ title?: string | undefined;
598
+ id?: string | undefined;
599
+ allowRedirects?: boolean | undefined;
600
+ allowCommands?: string[] | undefined;
601
+ }>]>, "many">, ("output" | "terminal" | ["output" | "terminal", string] | {
602
+ type: "output" | "terminal";
603
+ title?: string | undefined;
604
+ id?: string | undefined;
605
+ allowRedirects?: boolean | undefined;
606
+ allowCommands?: string[] | undefined;
607
+ })[], ("output" | "terminal" | ["output" | "terminal", string] | {
608
+ type: "output" | "terminal";
609
+ title?: string | undefined;
610
+ id?: string | undefined;
611
+ allowRedirects?: boolean | undefined;
612
+ allowCommands?: string[] | undefined;
613
+ })[]>]>;
614
+ activePanel: z.ZodOptional<z.ZodNumber>;
615
+ allowRedirects: z.ZodOptional<z.ZodBoolean>;
616
+ allowCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
617
+ }, "strict", z.ZodTypeAny, {
618
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
619
+ type: "output" | "terminal";
620
+ title?: string | undefined;
621
+ id?: string | undefined;
622
+ allowRedirects?: boolean | undefined;
623
+ allowCommands?: string[] | undefined;
624
+ })[];
625
+ open?: boolean | undefined;
626
+ allowRedirects?: boolean | undefined;
627
+ allowCommands?: string[] | undefined;
628
+ activePanel?: number | undefined;
629
+ }, {
630
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
631
+ type: "output" | "terminal";
632
+ title?: string | undefined;
633
+ id?: string | undefined;
634
+ allowRedirects?: boolean | undefined;
635
+ allowCommands?: string[] | undefined;
636
+ })[];
637
+ open?: boolean | undefined;
638
+ allowRedirects?: boolean | undefined;
639
+ allowCommands?: string[] | undefined;
640
+ activePanel?: number | undefined;
641
+ }>]>>;
642
+ focus: z.ZodOptional<z.ZodString>;
643
+ editor: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
644
+ fileTree: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
645
+ allowEdits: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString, "many">]>;
646
+ }, "strict", z.ZodTypeAny, {
647
+ allowEdits: string | boolean | string[];
648
+ }, {
649
+ allowEdits: string | boolean | string[];
650
+ }>]>>;
651
+ }, "strict", z.ZodTypeAny, {
652
+ fileTree?: boolean | {
653
+ allowEdits: string | boolean | string[];
654
+ } | undefined;
655
+ }, {
656
+ fileTree?: boolean | {
657
+ allowEdits: string | boolean | string[];
658
+ } | undefined;
659
+ }>]>>;
660
+ i18n: z.ZodOptional<z.ZodObject<{
661
+ partTemplate: z.ZodOptional<z.ZodString>;
662
+ editPageText: z.ZodOptional<z.ZodString>;
663
+ webcontainerLinkText: z.ZodOptional<z.ZodString>;
664
+ startWebContainerText: z.ZodOptional<z.ZodString>;
665
+ noPreviewNorStepsText: z.ZodOptional<z.ZodString>;
666
+ filesTitleText: z.ZodOptional<z.ZodString>;
667
+ fileTreeCreateFileText: z.ZodOptional<z.ZodString>;
668
+ fileTreeCreateFolderText: z.ZodOptional<z.ZodString>;
669
+ fileTreeActionNotAllowedText: z.ZodOptional<z.ZodString>;
670
+ fileTreeFileExistsAlreadyText: z.ZodOptional<z.ZodString>;
671
+ fileTreeAllowedPatternsText: z.ZodOptional<z.ZodString>;
672
+ confirmationText: z.ZodOptional<z.ZodString>;
673
+ prepareEnvironmentTitleText: z.ZodOptional<z.ZodString>;
674
+ defaultPreviewTitleText: z.ZodOptional<z.ZodString>;
675
+ reloadPreviewTitle: z.ZodOptional<z.ZodString>;
676
+ toggleTerminalButtonText: z.ZodOptional<z.ZodString>;
677
+ solveButtonText: z.ZodOptional<z.ZodString>;
678
+ resetButtonText: z.ZodOptional<z.ZodString>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ partTemplate?: string | undefined;
681
+ editPageText?: string | undefined;
682
+ webcontainerLinkText?: string | undefined;
683
+ startWebContainerText?: string | undefined;
684
+ noPreviewNorStepsText?: string | undefined;
685
+ filesTitleText?: string | undefined;
686
+ fileTreeCreateFileText?: string | undefined;
687
+ fileTreeCreateFolderText?: string | undefined;
688
+ fileTreeActionNotAllowedText?: string | undefined;
689
+ fileTreeFileExistsAlreadyText?: string | undefined;
690
+ fileTreeAllowedPatternsText?: string | undefined;
691
+ confirmationText?: string | undefined;
692
+ prepareEnvironmentTitleText?: string | undefined;
693
+ defaultPreviewTitleText?: string | undefined;
694
+ reloadPreviewTitle?: string | undefined;
695
+ toggleTerminalButtonText?: string | undefined;
696
+ solveButtonText?: string | undefined;
697
+ resetButtonText?: string | undefined;
698
+ }, {
699
+ partTemplate?: string | undefined;
700
+ editPageText?: string | undefined;
701
+ webcontainerLinkText?: string | undefined;
702
+ startWebContainerText?: string | undefined;
703
+ noPreviewNorStepsText?: string | undefined;
704
+ filesTitleText?: string | undefined;
705
+ fileTreeCreateFileText?: string | undefined;
706
+ fileTreeCreateFolderText?: string | undefined;
707
+ fileTreeActionNotAllowedText?: string | undefined;
708
+ fileTreeFileExistsAlreadyText?: string | undefined;
709
+ fileTreeAllowedPatternsText?: string | undefined;
710
+ confirmationText?: string | undefined;
711
+ prepareEnvironmentTitleText?: string | undefined;
712
+ defaultPreviewTitleText?: string | undefined;
713
+ reloadPreviewTitle?: string | undefined;
714
+ toggleTerminalButtonText?: string | undefined;
715
+ solveButtonText?: string | undefined;
716
+ resetButtonText?: string | undefined;
717
+ }>>;
718
+ editPageLink: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
719
+ openInStackBlitz: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
720
+ projectTitle: z.ZodOptional<z.ZodString>;
721
+ projectDescription: z.ZodOptional<z.ZodString>;
722
+ projectTemplate: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"html">, z.ZodLiteral<"node">, z.ZodLiteral<"angular-cli">, z.ZodLiteral<"create-react-app">, z.ZodLiteral<"javascript">, z.ZodLiteral<"polymer">, z.ZodLiteral<"typescript">, z.ZodLiteral<"vue">]>>;
723
+ }, "strict", z.ZodTypeAny, {
724
+ projectTitle?: string | undefined;
725
+ projectDescription?: string | undefined;
726
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
727
+ }, {
728
+ projectTitle?: string | undefined;
729
+ projectDescription?: string | undefined;
730
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
731
+ }>]>>;
732
+ downloadAsZip: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
733
+ filename: z.ZodString;
734
+ }, "strict", z.ZodTypeAny, {
735
+ filename: string;
736
+ }, {
737
+ filename: string;
738
+ }>]>>;
739
+ }>, {
740
+ title: z.ZodString;
741
+ slug: z.ZodOptional<z.ZodString>;
742
+ }>, "strip", z.ZodTypeAny, {
743
+ title: string;
744
+ custom?: Record<string, any> | undefined;
745
+ mainCommand?: string | [string, string] | {
746
+ title: string;
747
+ command: string;
748
+ } | undefined;
749
+ prepareCommands?: (string | [string, string] | {
750
+ title: string;
751
+ command: string;
752
+ })[] | undefined;
753
+ terminal?: boolean | {
754
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
755
+ type: "output" | "terminal";
756
+ title?: string | undefined;
757
+ id?: string | undefined;
758
+ allowRedirects?: boolean | undefined;
759
+ allowCommands?: string[] | undefined;
760
+ })[];
761
+ open?: boolean | undefined;
762
+ allowRedirects?: boolean | undefined;
763
+ allowCommands?: string[] | undefined;
764
+ activePanel?: number | undefined;
765
+ } | undefined;
766
+ meta?: {
767
+ image?: string | undefined;
768
+ description?: string | undefined;
769
+ title?: string | undefined;
770
+ } | undefined;
771
+ previews?: boolean | (string | number | [number, string] | [number, string, string] | {
772
+ title: string;
773
+ port: number;
774
+ pathname?: string | undefined;
775
+ })[] | undefined;
776
+ autoReload?: boolean | undefined;
777
+ filesystem?: {
778
+ watch?: boolean | string[] | undefined;
779
+ } | undefined;
780
+ template?: string | undefined;
781
+ focus?: string | undefined;
782
+ editor?: boolean | {
783
+ fileTree?: boolean | {
784
+ allowEdits: string | boolean | string[];
785
+ } | undefined;
786
+ } | undefined;
787
+ i18n?: {
788
+ partTemplate?: string | undefined;
789
+ editPageText?: string | undefined;
790
+ webcontainerLinkText?: string | undefined;
791
+ startWebContainerText?: string | undefined;
792
+ noPreviewNorStepsText?: string | undefined;
793
+ filesTitleText?: string | undefined;
794
+ fileTreeCreateFileText?: string | undefined;
795
+ fileTreeCreateFolderText?: string | undefined;
796
+ fileTreeActionNotAllowedText?: string | undefined;
797
+ fileTreeFileExistsAlreadyText?: string | undefined;
798
+ fileTreeAllowedPatternsText?: string | undefined;
799
+ confirmationText?: string | undefined;
800
+ prepareEnvironmentTitleText?: string | undefined;
801
+ defaultPreviewTitleText?: string | undefined;
802
+ reloadPreviewTitle?: string | undefined;
803
+ toggleTerminalButtonText?: string | undefined;
804
+ solveButtonText?: string | undefined;
805
+ resetButtonText?: string | undefined;
806
+ } | undefined;
807
+ editPageLink?: string | boolean | undefined;
808
+ openInStackBlitz?: boolean | {
809
+ projectTitle?: string | undefined;
810
+ projectDescription?: string | undefined;
811
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
812
+ } | undefined;
813
+ downloadAsZip?: boolean | {
814
+ filename: string;
815
+ } | undefined;
816
+ slug?: string | undefined;
817
+ }, {
818
+ title: string;
819
+ custom?: Record<string, any> | undefined;
820
+ mainCommand?: string | [string, string] | {
821
+ title: string;
822
+ command: string;
823
+ } | undefined;
824
+ prepareCommands?: (string | [string, string] | {
825
+ title: string;
826
+ command: string;
827
+ })[] | undefined;
828
+ terminal?: boolean | {
829
+ panels: "output" | "terminal" | ("output" | "terminal" | ["output" | "terminal", string] | {
830
+ type: "output" | "terminal";
831
+ title?: string | undefined;
832
+ id?: string | undefined;
833
+ allowRedirects?: boolean | undefined;
834
+ allowCommands?: string[] | undefined;
835
+ })[];
836
+ open?: boolean | undefined;
837
+ allowRedirects?: boolean | undefined;
838
+ allowCommands?: string[] | undefined;
839
+ activePanel?: number | undefined;
840
+ } | undefined;
841
+ meta?: {
842
+ image?: string | undefined;
843
+ description?: string | undefined;
844
+ title?: string | undefined;
845
+ } | undefined;
846
+ previews?: boolean | (string | number | [number, string] | [number, string, string] | {
847
+ title: string;
848
+ port: number;
849
+ pathname?: string | undefined;
850
+ })[] | undefined;
851
+ autoReload?: boolean | undefined;
852
+ filesystem?: {
853
+ watch?: boolean | string[] | undefined;
854
+ } | undefined;
855
+ template?: string | undefined;
856
+ focus?: string | undefined;
857
+ editor?: boolean | {
858
+ fileTree?: boolean | {
859
+ allowEdits: string | boolean | string[];
860
+ } | undefined;
861
+ } | undefined;
862
+ i18n?: {
863
+ partTemplate?: string | undefined;
864
+ editPageText?: string | undefined;
865
+ webcontainerLinkText?: string | undefined;
866
+ startWebContainerText?: string | undefined;
867
+ noPreviewNorStepsText?: string | undefined;
868
+ filesTitleText?: string | undefined;
869
+ fileTreeCreateFileText?: string | undefined;
870
+ fileTreeCreateFolderText?: string | undefined;
871
+ fileTreeActionNotAllowedText?: string | undefined;
872
+ fileTreeFileExistsAlreadyText?: string | undefined;
873
+ fileTreeAllowedPatternsText?: string | undefined;
874
+ confirmationText?: string | undefined;
875
+ prepareEnvironmentTitleText?: string | undefined;
876
+ defaultPreviewTitleText?: string | undefined;
877
+ reloadPreviewTitle?: string | undefined;
878
+ toggleTerminalButtonText?: string | undefined;
879
+ solveButtonText?: string | undefined;
880
+ resetButtonText?: string | undefined;
881
+ } | undefined;
882
+ editPageLink?: string | boolean | undefined;
883
+ openInStackBlitz?: boolean | {
884
+ projectTitle?: string | undefined;
885
+ projectDescription?: string | undefined;
886
+ projectTemplate?: "html" | "node" | "angular-cli" | "create-react-app" | "javascript" | "polymer" | "typescript" | "vue" | undefined;
887
+ } | undefined;
888
+ downloadAsZip?: boolean | {
889
+ filename: string;
890
+ } | undefined;
891
+ slug?: string | undefined;
892
+ }>;
893
+ export type BaseSchema = z.infer<typeof baseSchema>;
894
+ export {};