@webstudio-is/sdk 0.269.0 → 0.271.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/lib/index.js +26 -11
- package/lib/schema.js +902 -0
- package/lib/types/instances-utils.d.ts +1 -1
- package/lib/types/page-utils.d.ts +1 -1
- package/lib/types/schema/pages.d.ts +49 -50
- package/lib/types/schema.d.ts +11 -0
- package/package.json +13 -8
|
@@ -9,7 +9,7 @@ export declare const getHtmlTagsFromProps: (props: Props) => Map<string, string>
|
|
|
9
9
|
export declare const getHtmlTagFromInstance: ({ instance, metas, props, htmlTagsByInstanceId, }: {
|
|
10
10
|
instance: Instance;
|
|
11
11
|
metas: Map<Instance["component"], WsComponentMeta>;
|
|
12
|
-
props
|
|
12
|
+
props?: Props;
|
|
13
13
|
htmlTagsByInstanceId?: Map<Instance["id"], string>;
|
|
14
14
|
}) => string | undefined;
|
|
15
15
|
export type IndexesWithinAncestors = Map<Instance["id"], number>;
|
|
@@ -33,21 +33,21 @@ export declare const PageAuth: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
33
33
|
password: z.ZodString;
|
|
34
34
|
method: z.ZodLiteral<"basic">;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
method: "basic";
|
|
36
37
|
login: string;
|
|
37
38
|
password: string;
|
|
38
|
-
method: "basic";
|
|
39
39
|
}, {
|
|
40
|
+
method: "basic";
|
|
40
41
|
login: string;
|
|
41
42
|
password: string;
|
|
42
|
-
method: "basic";
|
|
43
43
|
}>, {
|
|
44
|
+
method: "basic";
|
|
44
45
|
login: string;
|
|
45
46
|
password: string;
|
|
46
|
-
method: "basic";
|
|
47
47
|
}, {
|
|
48
|
+
method: "basic";
|
|
48
49
|
login: string;
|
|
49
50
|
password: string;
|
|
50
|
-
method: "basic";
|
|
51
51
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
52
52
|
login: z.ZodString;
|
|
53
53
|
password: z.ZodString;
|
|
@@ -79,9 +79,9 @@ export declare const PageAuth: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
79
79
|
}>]>;
|
|
80
80
|
export type PageAuth = z.infer<typeof PageAuth>;
|
|
81
81
|
export declare const HomePagePath: z.ZodEffects<z.ZodString, "", string>;
|
|
82
|
-
export declare const
|
|
82
|
+
export declare const RedirectSourcePath: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
83
83
|
export declare const PagePath: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
84
|
-
declare const Page: z.ZodObject<{
|
|
84
|
+
export declare const Page: z.ZodObject<{
|
|
85
85
|
path: z.ZodUnion<[z.ZodEffects<z.ZodString, "", string>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>]>;
|
|
86
86
|
id: z.ZodString;
|
|
87
87
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -105,21 +105,21 @@ declare const Page: z.ZodObject<{
|
|
|
105
105
|
password: z.ZodString;
|
|
106
106
|
method: z.ZodLiteral<"basic">;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
method: "basic";
|
|
108
109
|
login: string;
|
|
109
110
|
password: string;
|
|
110
|
-
method: "basic";
|
|
111
111
|
}, {
|
|
112
|
+
method: "basic";
|
|
112
113
|
login: string;
|
|
113
114
|
password: string;
|
|
114
|
-
method: "basic";
|
|
115
115
|
}>, {
|
|
116
|
+
method: "basic";
|
|
116
117
|
login: string;
|
|
117
118
|
password: string;
|
|
118
|
-
method: "basic";
|
|
119
119
|
}, {
|
|
120
|
+
method: "basic";
|
|
120
121
|
login: string;
|
|
121
122
|
password: string;
|
|
122
|
-
method: "basic";
|
|
123
123
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
124
124
|
login: z.ZodString;
|
|
125
125
|
password: z.ZodString;
|
|
@@ -167,9 +167,9 @@ declare const Page: z.ZodObject<{
|
|
|
167
167
|
}[] | undefined;
|
|
168
168
|
description?: string | undefined;
|
|
169
169
|
auth?: {
|
|
170
|
+
method: "basic";
|
|
170
171
|
login: string;
|
|
171
172
|
password: string;
|
|
172
|
-
method: "basic";
|
|
173
173
|
} | {
|
|
174
174
|
method: "basic";
|
|
175
175
|
login: string;
|
|
@@ -191,9 +191,9 @@ declare const Page: z.ZodObject<{
|
|
|
191
191
|
}[] | undefined;
|
|
192
192
|
description?: string | undefined;
|
|
193
193
|
auth?: {
|
|
194
|
+
method: "basic";
|
|
194
195
|
login: string;
|
|
195
196
|
password: string;
|
|
196
|
-
method: "basic";
|
|
197
197
|
} | {
|
|
198
198
|
type: "basic";
|
|
199
199
|
login: string;
|
|
@@ -232,9 +232,9 @@ declare const Page: z.ZodObject<{
|
|
|
232
232
|
}[] | undefined;
|
|
233
233
|
description?: string | undefined;
|
|
234
234
|
auth?: {
|
|
235
|
+
method: "basic";
|
|
235
236
|
login: string;
|
|
236
237
|
password: string;
|
|
237
|
-
method: "basic";
|
|
238
238
|
} | {
|
|
239
239
|
method: "basic";
|
|
240
240
|
login: string;
|
|
@@ -270,9 +270,9 @@ declare const Page: z.ZodObject<{
|
|
|
270
270
|
}[] | undefined;
|
|
271
271
|
description?: string | undefined;
|
|
272
272
|
auth?: {
|
|
273
|
+
method: "basic";
|
|
273
274
|
login: string;
|
|
274
275
|
password: string;
|
|
275
|
-
method: "basic";
|
|
276
276
|
} | {
|
|
277
277
|
type: "basic";
|
|
278
278
|
login: string;
|
|
@@ -320,21 +320,21 @@ export declare const PageTemplate: z.ZodObject<{
|
|
|
320
320
|
password: z.ZodString;
|
|
321
321
|
method: z.ZodLiteral<"basic">;
|
|
322
322
|
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
method: "basic";
|
|
323
324
|
login: string;
|
|
324
325
|
password: string;
|
|
325
|
-
method: "basic";
|
|
326
326
|
}, {
|
|
327
|
+
method: "basic";
|
|
327
328
|
login: string;
|
|
328
329
|
password: string;
|
|
329
|
-
method: "basic";
|
|
330
330
|
}>, {
|
|
331
|
+
method: "basic";
|
|
331
332
|
login: string;
|
|
332
333
|
password: string;
|
|
333
|
-
method: "basic";
|
|
334
334
|
}, {
|
|
335
|
+
method: "basic";
|
|
335
336
|
login: string;
|
|
336
337
|
password: string;
|
|
337
|
-
method: "basic";
|
|
338
338
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
339
339
|
login: z.ZodString;
|
|
340
340
|
password: z.ZodString;
|
|
@@ -382,9 +382,9 @@ export declare const PageTemplate: z.ZodObject<{
|
|
|
382
382
|
}[] | undefined;
|
|
383
383
|
description?: string | undefined;
|
|
384
384
|
auth?: {
|
|
385
|
+
method: "basic";
|
|
385
386
|
login: string;
|
|
386
387
|
password: string;
|
|
387
|
-
method: "basic";
|
|
388
388
|
} | {
|
|
389
389
|
method: "basic";
|
|
390
390
|
login: string;
|
|
@@ -406,9 +406,9 @@ export declare const PageTemplate: z.ZodObject<{
|
|
|
406
406
|
}[] | undefined;
|
|
407
407
|
description?: string | undefined;
|
|
408
408
|
auth?: {
|
|
409
|
+
method: "basic";
|
|
409
410
|
login: string;
|
|
410
411
|
password: string;
|
|
411
|
-
method: "basic";
|
|
412
412
|
} | {
|
|
413
413
|
type: "basic";
|
|
414
414
|
login: string;
|
|
@@ -433,9 +433,9 @@ export declare const PageTemplate: z.ZodObject<{
|
|
|
433
433
|
}[] | undefined;
|
|
434
434
|
description?: string | undefined;
|
|
435
435
|
auth?: {
|
|
436
|
+
method: "basic";
|
|
436
437
|
login: string;
|
|
437
438
|
password: string;
|
|
438
|
-
method: "basic";
|
|
439
439
|
} | {
|
|
440
440
|
method: "basic";
|
|
441
441
|
login: string;
|
|
@@ -464,9 +464,9 @@ export declare const PageTemplate: z.ZodObject<{
|
|
|
464
464
|
}[] | undefined;
|
|
465
465
|
description?: string | undefined;
|
|
466
466
|
auth?: {
|
|
467
|
+
method: "basic";
|
|
467
468
|
login: string;
|
|
468
469
|
password: string;
|
|
469
|
-
method: "basic";
|
|
470
470
|
} | {
|
|
471
471
|
type: "basic";
|
|
472
472
|
login: string;
|
|
@@ -487,7 +487,7 @@ export declare const PageTemplate: z.ZodObject<{
|
|
|
487
487
|
systemDataSourceId?: string | undefined;
|
|
488
488
|
}>;
|
|
489
489
|
export type PageTemplate = z.infer<typeof PageTemplate>;
|
|
490
|
-
declare const ProjectMeta: z.ZodObject<{
|
|
490
|
+
export declare const ProjectMeta: z.ZodObject<{
|
|
491
491
|
siteName: z.ZodOptional<z.ZodString>;
|
|
492
492
|
contactEmail: z.ZodOptional<z.ZodString>;
|
|
493
493
|
faviconAssetId: z.ZodOptional<z.ZodString>;
|
|
@@ -509,7 +509,7 @@ declare const ProjectMeta: z.ZodObject<{
|
|
|
509
509
|
export type ProjectMeta = z.infer<typeof ProjectMeta>;
|
|
510
510
|
export declare const ProjectNewRedirectPath: z.ZodEffects<z.ZodString, string, string>;
|
|
511
511
|
export declare const PageRedirect: z.ZodObject<{
|
|
512
|
-
old: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
512
|
+
old: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
513
513
|
new: z.ZodEffects<z.ZodString, string, string>;
|
|
514
514
|
status: z.ZodOptional<z.ZodEnum<["301", "302"]>>;
|
|
515
515
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -559,7 +559,7 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
559
559
|
atomicStyles?: boolean | undefined;
|
|
560
560
|
}>>;
|
|
561
561
|
redirects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
562
|
-
old: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
562
|
+
old: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
563
563
|
new: z.ZodEffects<z.ZodString, string, string>;
|
|
564
564
|
status: z.ZodOptional<z.ZodEnum<["301", "302"]>>;
|
|
565
565
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -597,21 +597,21 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
597
597
|
password: z.ZodString;
|
|
598
598
|
method: z.ZodLiteral<"basic">;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
+
method: "basic";
|
|
600
601
|
login: string;
|
|
601
602
|
password: string;
|
|
602
|
-
method: "basic";
|
|
603
603
|
}, {
|
|
604
|
+
method: "basic";
|
|
604
605
|
login: string;
|
|
605
606
|
password: string;
|
|
606
|
-
method: "basic";
|
|
607
607
|
}>, {
|
|
608
|
+
method: "basic";
|
|
608
609
|
login: string;
|
|
609
610
|
password: string;
|
|
610
|
-
method: "basic";
|
|
611
611
|
}, {
|
|
612
|
+
method: "basic";
|
|
612
613
|
login: string;
|
|
613
614
|
password: string;
|
|
614
|
-
method: "basic";
|
|
615
615
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
616
616
|
login: z.ZodString;
|
|
617
617
|
password: z.ZodString;
|
|
@@ -659,9 +659,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
659
659
|
}[] | undefined;
|
|
660
660
|
description?: string | undefined;
|
|
661
661
|
auth?: {
|
|
662
|
+
method: "basic";
|
|
662
663
|
login: string;
|
|
663
664
|
password: string;
|
|
664
|
-
method: "basic";
|
|
665
665
|
} | {
|
|
666
666
|
method: "basic";
|
|
667
667
|
login: string;
|
|
@@ -683,9 +683,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
683
683
|
}[] | undefined;
|
|
684
684
|
description?: string | undefined;
|
|
685
685
|
auth?: {
|
|
686
|
+
method: "basic";
|
|
686
687
|
login: string;
|
|
687
688
|
password: string;
|
|
688
|
-
method: "basic";
|
|
689
689
|
} | {
|
|
690
690
|
type: "basic";
|
|
691
691
|
login: string;
|
|
@@ -724,9 +724,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
724
724
|
}[] | undefined;
|
|
725
725
|
description?: string | undefined;
|
|
726
726
|
auth?: {
|
|
727
|
+
method: "basic";
|
|
727
728
|
login: string;
|
|
728
729
|
password: string;
|
|
729
|
-
method: "basic";
|
|
730
730
|
} | {
|
|
731
731
|
method: "basic";
|
|
732
732
|
login: string;
|
|
@@ -762,9 +762,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
762
762
|
}[] | undefined;
|
|
763
763
|
description?: string | undefined;
|
|
764
764
|
auth?: {
|
|
765
|
+
method: "basic";
|
|
765
766
|
login: string;
|
|
766
767
|
password: string;
|
|
767
|
-
method: "basic";
|
|
768
768
|
} | {
|
|
769
769
|
type: "basic";
|
|
770
770
|
login: string;
|
|
@@ -812,21 +812,21 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
812
812
|
password: z.ZodString;
|
|
813
813
|
method: z.ZodLiteral<"basic">;
|
|
814
814
|
}, "strip", z.ZodTypeAny, {
|
|
815
|
+
method: "basic";
|
|
815
816
|
login: string;
|
|
816
817
|
password: string;
|
|
817
|
-
method: "basic";
|
|
818
818
|
}, {
|
|
819
|
+
method: "basic";
|
|
819
820
|
login: string;
|
|
820
821
|
password: string;
|
|
821
|
-
method: "basic";
|
|
822
822
|
}>, {
|
|
823
|
+
method: "basic";
|
|
823
824
|
login: string;
|
|
824
825
|
password: string;
|
|
825
|
-
method: "basic";
|
|
826
826
|
}, {
|
|
827
|
+
method: "basic";
|
|
827
828
|
login: string;
|
|
828
829
|
password: string;
|
|
829
|
-
method: "basic";
|
|
830
830
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
831
831
|
login: z.ZodString;
|
|
832
832
|
password: z.ZodString;
|
|
@@ -874,9 +874,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
874
874
|
}[] | undefined;
|
|
875
875
|
description?: string | undefined;
|
|
876
876
|
auth?: {
|
|
877
|
+
method: "basic";
|
|
877
878
|
login: string;
|
|
878
879
|
password: string;
|
|
879
|
-
method: "basic";
|
|
880
880
|
} | {
|
|
881
881
|
method: "basic";
|
|
882
882
|
login: string;
|
|
@@ -898,9 +898,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
898
898
|
}[] | undefined;
|
|
899
899
|
description?: string | undefined;
|
|
900
900
|
auth?: {
|
|
901
|
+
method: "basic";
|
|
901
902
|
login: string;
|
|
902
903
|
password: string;
|
|
903
|
-
method: "basic";
|
|
904
904
|
} | {
|
|
905
905
|
type: "basic";
|
|
906
906
|
login: string;
|
|
@@ -925,9 +925,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
925
925
|
}[] | undefined;
|
|
926
926
|
description?: string | undefined;
|
|
927
927
|
auth?: {
|
|
928
|
+
method: "basic";
|
|
928
929
|
login: string;
|
|
929
930
|
password: string;
|
|
930
|
-
method: "basic";
|
|
931
931
|
} | {
|
|
932
932
|
method: "basic";
|
|
933
933
|
login: string;
|
|
@@ -956,9 +956,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
956
956
|
}[] | undefined;
|
|
957
957
|
description?: string | undefined;
|
|
958
958
|
auth?: {
|
|
959
|
+
method: "basic";
|
|
959
960
|
login: string;
|
|
960
961
|
password: string;
|
|
961
|
-
method: "basic";
|
|
962
962
|
} | {
|
|
963
963
|
type: "basic";
|
|
964
964
|
login: string;
|
|
@@ -1016,9 +1016,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1016
1016
|
}[] | undefined;
|
|
1017
1017
|
description?: string | undefined;
|
|
1018
1018
|
auth?: {
|
|
1019
|
+
method: "basic";
|
|
1019
1020
|
login: string;
|
|
1020
1021
|
password: string;
|
|
1021
|
-
method: "basic";
|
|
1022
1022
|
} | {
|
|
1023
1023
|
method: "basic";
|
|
1024
1024
|
login: string;
|
|
@@ -1077,9 +1077,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1077
1077
|
}[] | undefined;
|
|
1078
1078
|
description?: string | undefined;
|
|
1079
1079
|
auth?: {
|
|
1080
|
+
method: "basic";
|
|
1080
1081
|
login: string;
|
|
1081
1082
|
password: string;
|
|
1082
|
-
method: "basic";
|
|
1083
1083
|
} | {
|
|
1084
1084
|
method: "basic";
|
|
1085
1085
|
login: string;
|
|
@@ -1111,9 +1111,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1111
1111
|
}[] | undefined;
|
|
1112
1112
|
description?: string | undefined;
|
|
1113
1113
|
auth?: {
|
|
1114
|
+
method: "basic";
|
|
1114
1115
|
login: string;
|
|
1115
1116
|
password: string;
|
|
1116
|
-
method: "basic";
|
|
1117
1117
|
} | {
|
|
1118
1118
|
type: "basic";
|
|
1119
1119
|
login: string;
|
|
@@ -1172,9 +1172,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1172
1172
|
}[] | undefined;
|
|
1173
1173
|
description?: string | undefined;
|
|
1174
1174
|
auth?: {
|
|
1175
|
+
method: "basic";
|
|
1175
1176
|
login: string;
|
|
1176
1177
|
password: string;
|
|
1177
|
-
method: "basic";
|
|
1178
1178
|
} | {
|
|
1179
1179
|
type: "basic";
|
|
1180
1180
|
login: string;
|
|
@@ -1206,9 +1206,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1206
1206
|
}[] | undefined;
|
|
1207
1207
|
description?: string | undefined;
|
|
1208
1208
|
auth?: {
|
|
1209
|
+
method: "basic";
|
|
1209
1210
|
login: string;
|
|
1210
1211
|
password: string;
|
|
1211
|
-
method: "basic";
|
|
1212
1212
|
} | {
|
|
1213
1213
|
method: "basic";
|
|
1214
1214
|
login: string;
|
|
@@ -1267,9 +1267,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1267
1267
|
}[] | undefined;
|
|
1268
1268
|
description?: string | undefined;
|
|
1269
1269
|
auth?: {
|
|
1270
|
+
method: "basic";
|
|
1270
1271
|
login: string;
|
|
1271
1272
|
password: string;
|
|
1272
|
-
method: "basic";
|
|
1273
1273
|
} | {
|
|
1274
1274
|
method: "basic";
|
|
1275
1275
|
login: string;
|
|
@@ -1301,9 +1301,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1301
1301
|
}[] | undefined;
|
|
1302
1302
|
description?: string | undefined;
|
|
1303
1303
|
auth?: {
|
|
1304
|
+
method: "basic";
|
|
1304
1305
|
login: string;
|
|
1305
1306
|
password: string;
|
|
1306
|
-
method: "basic";
|
|
1307
1307
|
} | {
|
|
1308
1308
|
type: "basic";
|
|
1309
1309
|
login: string;
|
|
@@ -1362,9 +1362,9 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1362
1362
|
}[] | undefined;
|
|
1363
1363
|
description?: string | undefined;
|
|
1364
1364
|
auth?: {
|
|
1365
|
+
method: "basic";
|
|
1365
1366
|
login: string;
|
|
1366
1367
|
password: string;
|
|
1367
|
-
method: "basic";
|
|
1368
1368
|
} | {
|
|
1369
1369
|
type: "basic";
|
|
1370
1370
|
login: string;
|
|
@@ -1386,4 +1386,3 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1386
1386
|
}> | undefined;
|
|
1387
1387
|
}>;
|
|
1388
1388
|
export type Pages = z.infer<typeof Pages>;
|
|
1389
|
-
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./schema/assets";
|
|
2
|
+
export * from "./schema/breakpoints";
|
|
3
|
+
export * from "./schema/data-sources";
|
|
4
|
+
export * from "./schema/deployment";
|
|
5
|
+
export * from "./schema/instances";
|
|
6
|
+
export * from "./schema/pages";
|
|
7
|
+
export * from "./schema/props";
|
|
8
|
+
export * from "./schema/resources";
|
|
9
|
+
export * from "./schema/style-source-selections";
|
|
10
|
+
export * from "./schema/style-sources";
|
|
11
|
+
export * from "./schema/styles";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.271.0",
|
|
4
4
|
"description": "Webstudio project data schema",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
"types": "./lib/types/link-utils.d.ts",
|
|
24
24
|
"import": "./lib/link-utils.js"
|
|
25
25
|
},
|
|
26
|
+
"./schema": {
|
|
27
|
+
"webstudio": "./src/schema.ts",
|
|
28
|
+
"types": "./lib/types/schema.d.ts",
|
|
29
|
+
"import": "./lib/schema.js"
|
|
30
|
+
},
|
|
26
31
|
"./normalize.css": {
|
|
27
32
|
"webstudio": "./src/__generated__/normalize.css.ts",
|
|
28
33
|
"types": "./lib/types/__generated__/normalize.css.d.ts",
|
|
@@ -51,23 +56,23 @@
|
|
|
51
56
|
"type-fest": "^4.37.0",
|
|
52
57
|
"warn-once": "^0.1.1",
|
|
53
58
|
"zod": "^3.24.2",
|
|
54
|
-
"@webstudio-is/css-engine": "0.
|
|
55
|
-
"@webstudio-is/
|
|
56
|
-
"@webstudio-is/
|
|
57
|
-
"@webstudio-is/wsauth": "0.
|
|
59
|
+
"@webstudio-is/css-engine": "0.271.0",
|
|
60
|
+
"@webstudio-is/icons": "0.271.0",
|
|
61
|
+
"@webstudio-is/fonts": "0.271.0",
|
|
62
|
+
"@webstudio-is/wsauth": "0.271.0"
|
|
58
63
|
},
|
|
59
64
|
"devDependencies": {
|
|
60
65
|
"html-tags": "^4.0.0",
|
|
61
66
|
"vitest": "^3.1.2",
|
|
62
|
-
"@webstudio-is/
|
|
63
|
-
"@webstudio-is/
|
|
67
|
+
"@webstudio-is/css-data": "0.271.0",
|
|
68
|
+
"@webstudio-is/template": "0.271.0",
|
|
64
69
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
65
70
|
},
|
|
66
71
|
"scripts": {
|
|
67
72
|
"typecheck": "tsgo --noEmit -p tsconfig.typecheck.json",
|
|
68
73
|
"test": "vitest run",
|
|
69
74
|
"build:normalize.css": "tsx --conditions=webstudio ./scripts/normalize.css.ts && prettier --write src/__generated__/normalize.css.ts",
|
|
70
|
-
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/link-utils.ts src/__generated__/normalize.css.ts src/core-templates.tsx --outdir=lib --bundle --format=esm --packages=external",
|
|
75
|
+
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/link-utils.ts src/schema.ts src/__generated__/normalize.css.ts src/core-templates.tsx --outdir=lib --bundle --format=esm --packages=external",
|
|
71
76
|
"dts": "tsc --project tsconfig.dts.json"
|
|
72
77
|
}
|
|
73
78
|
}
|