@prismicio/types-internal 3.4.0-alpha.13 → 3.4.0-alpha.14
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/content/Document.d.ts +498 -3366
- package/lib/content/fields/GroupContent.d.ts +1 -1
- package/lib/content/fields/GroupContent.js +2 -1
- package/lib/content/fields/WidgetContent.d.ts +514 -3382
- package/lib/content/fields/nestable/NestableContent.d.ts +68 -546
- package/lib/content/fields/nestable/NestableContent.js +7 -8
- package/lib/content/fields/nestable/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/nestable/RepeatableContent.js +5 -2
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +9 -641
- package/lib/content/fields/nestable/RichTextContent/index.js +4 -8
- package/lib/content/fields/nestable/TableContent.d.ts +637 -834
- package/lib/content/fields/nestable/TableContent.js +10 -7
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +190 -1146
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +26 -252
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +190 -1146
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -546
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -546
- package/lib/content/fields/slices/Slice/index.d.ts +269 -2029
- package/lib/content/fields/slices/SliceItem.d.ts +463 -2223
- package/lib/content/fields/slices/SlicesContent.d.ts +394 -2784
- package/lib/customtypes/widgets/Group.d.ts +36 -36
- package/lib/customtypes/widgets/Widget.d.ts +54 -54
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +6 -6
- package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
- package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -2
- package/lib/customtypes/widgets/nestable/RichText.js +0 -2
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +12 -12
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +12 -12
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +48 -48
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +18 -18
- package/lib/customtypes/widgets/slices/Slices.d.ts +72 -72
- package/package.json +1 -1
- package/src/content/fields/GroupContent.ts +2 -1
- package/src/content/fields/nestable/NestableContent.ts +13 -9
- package/src/content/fields/nestable/RepeatableContent.ts +6 -2
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +238 -0
- package/src/content/fields/nestable/RichTextContent/index.ts +3 -7
- package/src/content/fields/nestable/TableContent.ts +10 -7
- package/src/customtypes/widgets/nestable/NestableWidget.ts +1 -1
- package/src/customtypes/widgets/nestable/RichText.ts +0 -2
- package/src/content/fields/nestable/RichTextContent/Block.ts +0 -35
- package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +0 -81
- package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +0 -42
- package/src/content/fields/nestable/RichTextContent/TableBlock.ts +0 -36
- package/src/content/fields/nestable/RichTextContent/TextBlock.ts +0 -108
|
@@ -107,6 +107,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
107
107
|
config: t.ExactC<t.PartialC<{
|
|
108
108
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
109
109
|
}>>;
|
|
110
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
111
|
+
type: t.LiteralC<"Table">;
|
|
112
|
+
}>, t.PartialC<{
|
|
113
|
+
config: t.ExactC<t.PartialC<{
|
|
114
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
115
|
+
}>>;
|
|
110
116
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
111
117
|
type: t.LiteralC<"Text">;
|
|
112
118
|
}>, t.PartialC<{
|
|
@@ -169,12 +175,6 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
169
175
|
placeholder: t.StringC;
|
|
170
176
|
catalog: t.StringC;
|
|
171
177
|
}>>;
|
|
172
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
173
|
-
type: t.LiteralC<"Table">;
|
|
174
|
-
}>, t.PartialC<{
|
|
175
|
-
config: t.ExactC<t.PartialC<{
|
|
176
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
177
|
-
}>>;
|
|
178
178
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
179
179
|
type: t.LiteralC<"Group">;
|
|
180
180
|
}>, t.PartialC<{
|
|
@@ -281,6 +281,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
281
281
|
config: t.ExactC<t.PartialC<{
|
|
282
282
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
283
283
|
}>>;
|
|
284
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
285
|
+
type: t.LiteralC<"Table">;
|
|
286
|
+
}>, t.PartialC<{
|
|
287
|
+
config: t.ExactC<t.PartialC<{
|
|
288
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
289
|
+
}>>;
|
|
284
290
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
285
291
|
type: t.LiteralC<"Text">;
|
|
286
292
|
}>, t.PartialC<{
|
|
@@ -343,12 +349,6 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
343
349
|
placeholder: t.StringC;
|
|
344
350
|
catalog: t.StringC;
|
|
345
351
|
}>>;
|
|
346
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
347
|
-
type: t.LiteralC<"Table">;
|
|
348
|
-
}>, t.PartialC<{
|
|
349
|
-
config: t.ExactC<t.PartialC<{
|
|
350
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
351
|
-
}>>;
|
|
352
352
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
353
353
|
type: t.LiteralC<"Group">;
|
|
354
354
|
}>, t.PartialC<{
|
|
@@ -455,6 +455,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
455
455
|
config: t.ExactC<t.PartialC<{
|
|
456
456
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
457
457
|
}>>;
|
|
458
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
459
|
+
type: t.LiteralC<"Table">;
|
|
460
|
+
}>, t.PartialC<{
|
|
461
|
+
config: t.ExactC<t.PartialC<{
|
|
462
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
463
|
+
}>>;
|
|
458
464
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
459
465
|
type: t.LiteralC<"Text">;
|
|
460
466
|
}>, t.PartialC<{
|
|
@@ -517,12 +523,6 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
517
523
|
placeholder: t.StringC;
|
|
518
524
|
catalog: t.StringC;
|
|
519
525
|
}>>;
|
|
520
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
521
|
-
type: t.LiteralC<"Table">;
|
|
522
|
-
}>, t.PartialC<{
|
|
523
|
-
config: t.ExactC<t.PartialC<{
|
|
524
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
525
|
-
}>>;
|
|
526
526
|
}>]>>]>>;
|
|
527
527
|
}>>;
|
|
528
528
|
}>]>>]>>;
|
|
@@ -625,6 +625,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
625
625
|
config: t.ExactC<t.PartialC<{
|
|
626
626
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
627
627
|
}>>;
|
|
628
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
629
|
+
type: t.LiteralC<"Table">;
|
|
630
|
+
}>, t.PartialC<{
|
|
631
|
+
config: t.ExactC<t.PartialC<{
|
|
632
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
633
|
+
}>>;
|
|
628
634
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
629
635
|
type: t.LiteralC<"Text">;
|
|
630
636
|
}>, t.PartialC<{
|
|
@@ -687,12 +693,6 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
687
693
|
placeholder: t.StringC;
|
|
688
694
|
catalog: t.StringC;
|
|
689
695
|
}>>;
|
|
690
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
691
|
-
type: t.LiteralC<"Table">;
|
|
692
|
-
}>, t.PartialC<{
|
|
693
|
-
config: t.ExactC<t.PartialC<{
|
|
694
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
695
|
-
}>>;
|
|
696
696
|
}>]>>]>>;
|
|
697
697
|
}>]>>;
|
|
698
698
|
export declare type Variation = t.TypeOf<typeof Variation>;
|
|
@@ -813,6 +813,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
813
813
|
config: t.ExactC<t.PartialC<{
|
|
814
814
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
815
815
|
}>>;
|
|
816
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
817
|
+
type: t.LiteralC<"Table">;
|
|
818
|
+
}>, t.PartialC<{
|
|
819
|
+
config: t.ExactC<t.PartialC<{
|
|
820
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
821
|
+
}>>;
|
|
816
822
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
817
823
|
type: t.LiteralC<"Text">;
|
|
818
824
|
}>, t.PartialC<{
|
|
@@ -875,12 +881,6 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
875
881
|
placeholder: t.StringC;
|
|
876
882
|
catalog: t.StringC;
|
|
877
883
|
}>>;
|
|
878
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
879
|
-
type: t.LiteralC<"Table">;
|
|
880
|
-
}>, t.PartialC<{
|
|
881
|
-
config: t.ExactC<t.PartialC<{
|
|
882
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
883
|
-
}>>;
|
|
884
884
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
885
885
|
type: t.LiteralC<"Group">;
|
|
886
886
|
}>, t.PartialC<{
|
|
@@ -987,6 +987,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
987
987
|
config: t.ExactC<t.PartialC<{
|
|
988
988
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
989
989
|
}>>;
|
|
990
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
991
|
+
type: t.LiteralC<"Table">;
|
|
992
|
+
}>, t.PartialC<{
|
|
993
|
+
config: t.ExactC<t.PartialC<{
|
|
994
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
995
|
+
}>>;
|
|
990
996
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
991
997
|
type: t.LiteralC<"Text">;
|
|
992
998
|
}>, t.PartialC<{
|
|
@@ -1049,12 +1055,6 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1049
1055
|
placeholder: t.StringC;
|
|
1050
1056
|
catalog: t.StringC;
|
|
1051
1057
|
}>>;
|
|
1052
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1053
|
-
type: t.LiteralC<"Table">;
|
|
1054
|
-
}>, t.PartialC<{
|
|
1055
|
-
config: t.ExactC<t.PartialC<{
|
|
1056
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1057
|
-
}>>;
|
|
1058
1058
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1059
1059
|
type: t.LiteralC<"Group">;
|
|
1060
1060
|
}>, t.PartialC<{
|
|
@@ -1161,6 +1161,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1161
1161
|
config: t.ExactC<t.PartialC<{
|
|
1162
1162
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1163
1163
|
}>>;
|
|
1164
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1165
|
+
type: t.LiteralC<"Table">;
|
|
1166
|
+
}>, t.PartialC<{
|
|
1167
|
+
config: t.ExactC<t.PartialC<{
|
|
1168
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1169
|
+
}>>;
|
|
1164
1170
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1165
1171
|
type: t.LiteralC<"Text">;
|
|
1166
1172
|
}>, t.PartialC<{
|
|
@@ -1223,12 +1229,6 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1223
1229
|
placeholder: t.StringC;
|
|
1224
1230
|
catalog: t.StringC;
|
|
1225
1231
|
}>>;
|
|
1226
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1227
|
-
type: t.LiteralC<"Table">;
|
|
1228
|
-
}>, t.PartialC<{
|
|
1229
|
-
config: t.ExactC<t.PartialC<{
|
|
1230
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1231
|
-
}>>;
|
|
1232
1232
|
}>]>>]>>;
|
|
1233
1233
|
}>>;
|
|
1234
1234
|
}>]>>]>>;
|
|
@@ -1331,6 +1331,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1331
1331
|
config: t.ExactC<t.PartialC<{
|
|
1332
1332
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1333
1333
|
}>>;
|
|
1334
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1335
|
+
type: t.LiteralC<"Table">;
|
|
1336
|
+
}>, t.PartialC<{
|
|
1337
|
+
config: t.ExactC<t.PartialC<{
|
|
1338
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1339
|
+
}>>;
|
|
1334
1340
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1335
1341
|
type: t.LiteralC<"Text">;
|
|
1336
1342
|
}>, t.PartialC<{
|
|
@@ -1393,12 +1399,6 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1393
1399
|
placeholder: t.StringC;
|
|
1394
1400
|
catalog: t.StringC;
|
|
1395
1401
|
}>>;
|
|
1396
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1397
|
-
type: t.LiteralC<"Table">;
|
|
1398
|
-
}>, t.PartialC<{
|
|
1399
|
-
config: t.ExactC<t.PartialC<{
|
|
1400
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1401
|
-
}>>;
|
|
1402
1402
|
}>]>>]>>;
|
|
1403
1403
|
}>]>>>;
|
|
1404
1404
|
}>, t.PartialC<{
|
|
@@ -96,6 +96,12 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
|
|
|
96
96
|
config: t.ExactC<t.PartialC<{
|
|
97
97
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
98
98
|
}>>;
|
|
99
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
100
|
+
type: t.LiteralC<"Table">;
|
|
101
|
+
}>, t.PartialC<{
|
|
102
|
+
config: t.ExactC<t.PartialC<{
|
|
103
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
104
|
+
}>>;
|
|
99
105
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
100
106
|
type: t.LiteralC<"Text">;
|
|
101
107
|
}>, t.PartialC<{
|
|
@@ -158,12 +164,6 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
|
|
|
158
164
|
placeholder: t.StringC;
|
|
159
165
|
catalog: t.StringC;
|
|
160
166
|
}>>;
|
|
161
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
162
|
-
type: t.LiteralC<"Table">;
|
|
163
|
-
}>, t.PartialC<{
|
|
164
|
-
config: t.ExactC<t.PartialC<{
|
|
165
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
166
|
-
}>>;
|
|
167
167
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
168
168
|
type: t.LiteralC<"Group">;
|
|
169
169
|
}>, t.PartialC<{
|
|
@@ -270,6 +270,12 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
|
|
|
270
270
|
config: t.ExactC<t.PartialC<{
|
|
271
271
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
272
272
|
}>>;
|
|
273
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
274
|
+
type: t.LiteralC<"Table">;
|
|
275
|
+
}>, t.PartialC<{
|
|
276
|
+
config: t.ExactC<t.PartialC<{
|
|
277
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
278
|
+
}>>;
|
|
273
279
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
274
280
|
type: t.LiteralC<"Text">;
|
|
275
281
|
}>, t.PartialC<{
|
|
@@ -332,12 +338,6 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
|
|
|
332
338
|
placeholder: t.StringC;
|
|
333
339
|
catalog: t.StringC;
|
|
334
340
|
}>>;
|
|
335
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
336
|
-
type: t.LiteralC<"Table">;
|
|
337
|
-
}>, t.PartialC<{
|
|
338
|
-
config: t.ExactC<t.PartialC<{
|
|
339
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
340
|
-
}>>;
|
|
341
341
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
342
342
|
type: t.LiteralC<"Group">;
|
|
343
343
|
}>, t.PartialC<{
|
|
@@ -444,6 +444,12 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
|
|
|
444
444
|
config: t.ExactC<t.PartialC<{
|
|
445
445
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
446
446
|
}>>;
|
|
447
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
448
|
+
type: t.LiteralC<"Table">;
|
|
449
|
+
}>, t.PartialC<{
|
|
450
|
+
config: t.ExactC<t.PartialC<{
|
|
451
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
452
|
+
}>>;
|
|
447
453
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
448
454
|
type: t.LiteralC<"Text">;
|
|
449
455
|
}>, t.PartialC<{
|
|
@@ -506,12 +512,6 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
|
|
|
506
512
|
placeholder: t.StringC;
|
|
507
513
|
catalog: t.StringC;
|
|
508
514
|
}>>;
|
|
509
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
510
|
-
type: t.LiteralC<"Table">;
|
|
511
|
-
}>, t.PartialC<{
|
|
512
|
-
config: t.ExactC<t.PartialC<{
|
|
513
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
514
|
-
}>>;
|
|
515
515
|
}>]>>]>>;
|
|
516
516
|
}>>;
|
|
517
517
|
}>]>>]>>;
|
|
@@ -113,6 +113,12 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
113
113
|
config: t.ExactC<t.PartialC<{
|
|
114
114
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
115
115
|
}>>;
|
|
116
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
117
|
+
type: t.LiteralC<"Table">;
|
|
118
|
+
}>, t.PartialC<{
|
|
119
|
+
config: t.ExactC<t.PartialC<{
|
|
120
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
121
|
+
}>>;
|
|
116
122
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
117
123
|
type: t.LiteralC<"Text">;
|
|
118
124
|
}>, t.PartialC<{
|
|
@@ -175,12 +181,6 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
175
181
|
placeholder: t.StringC;
|
|
176
182
|
catalog: t.StringC;
|
|
177
183
|
}>>;
|
|
178
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
179
|
-
type: t.LiteralC<"Table">;
|
|
180
|
-
}>, t.PartialC<{
|
|
181
|
-
config: t.ExactC<t.PartialC<{
|
|
182
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
183
|
-
}>>;
|
|
184
184
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
185
185
|
type: t.LiteralC<"Group">;
|
|
186
186
|
}>, t.PartialC<{
|
|
@@ -287,6 +287,12 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
287
287
|
config: t.ExactC<t.PartialC<{
|
|
288
288
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
289
289
|
}>>;
|
|
290
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
291
|
+
type: t.LiteralC<"Table">;
|
|
292
|
+
}>, t.PartialC<{
|
|
293
|
+
config: t.ExactC<t.PartialC<{
|
|
294
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
295
|
+
}>>;
|
|
290
296
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
291
297
|
type: t.LiteralC<"Text">;
|
|
292
298
|
}>, t.PartialC<{
|
|
@@ -349,12 +355,6 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
349
355
|
placeholder: t.StringC;
|
|
350
356
|
catalog: t.StringC;
|
|
351
357
|
}>>;
|
|
352
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
353
|
-
type: t.LiteralC<"Table">;
|
|
354
|
-
}>, t.PartialC<{
|
|
355
|
-
config: t.ExactC<t.PartialC<{
|
|
356
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
357
|
-
}>>;
|
|
358
358
|
}>]>>]>>;
|
|
359
359
|
}>>;
|
|
360
360
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -461,6 +461,12 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
461
461
|
config: t.ExactC<t.PartialC<{
|
|
462
462
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
463
463
|
}>>;
|
|
464
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
465
|
+
type: t.LiteralC<"Table">;
|
|
466
|
+
}>, t.PartialC<{
|
|
467
|
+
config: t.ExactC<t.PartialC<{
|
|
468
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
469
|
+
}>>;
|
|
464
470
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
465
471
|
type: t.LiteralC<"Text">;
|
|
466
472
|
}>, t.PartialC<{
|
|
@@ -523,12 +529,6 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
523
529
|
placeholder: t.StringC;
|
|
524
530
|
catalog: t.StringC;
|
|
525
531
|
}>>;
|
|
526
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
527
|
-
type: t.LiteralC<"Table">;
|
|
528
|
-
}>, t.PartialC<{
|
|
529
|
-
config: t.ExactC<t.PartialC<{
|
|
530
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
531
|
-
}>>;
|
|
532
532
|
}>]>>]>>;
|
|
533
533
|
repeat: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
534
534
|
type: t.LiteralC<"Color">;
|
|
@@ -627,6 +627,12 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
627
627
|
config: t.ExactC<t.PartialC<{
|
|
628
628
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
629
629
|
}>>;
|
|
630
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
631
|
+
type: t.LiteralC<"Table">;
|
|
632
|
+
}>, t.PartialC<{
|
|
633
|
+
config: t.ExactC<t.PartialC<{
|
|
634
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
635
|
+
}>>;
|
|
630
636
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
631
637
|
type: t.LiteralC<"Text">;
|
|
632
638
|
}>, t.PartialC<{
|
|
@@ -689,12 +695,6 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
|
|
|
689
695
|
placeholder: t.StringC;
|
|
690
696
|
catalog: t.StringC;
|
|
691
697
|
}>>;
|
|
692
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
693
|
-
type: t.LiteralC<"Table">;
|
|
694
|
-
}>, t.PartialC<{
|
|
695
|
-
config: t.ExactC<t.PartialC<{
|
|
696
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
697
|
-
}>>;
|
|
698
698
|
}>]>>]>>;
|
|
699
699
|
config: t.ExactC<t.PartialC<{
|
|
700
700
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -805,6 +805,12 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
805
805
|
config: t.ExactC<t.PartialC<{
|
|
806
806
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
807
807
|
}>>;
|
|
808
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
809
|
+
type: t.LiteralC<"Table">;
|
|
810
|
+
}>, t.PartialC<{
|
|
811
|
+
config: t.ExactC<t.PartialC<{
|
|
812
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
813
|
+
}>>;
|
|
808
814
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
809
815
|
type: t.LiteralC<"Text">;
|
|
810
816
|
}>, t.PartialC<{
|
|
@@ -867,12 +873,6 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
867
873
|
placeholder: t.StringC;
|
|
868
874
|
catalog: t.StringC;
|
|
869
875
|
}>>;
|
|
870
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
871
|
-
type: t.LiteralC<"Table">;
|
|
872
|
-
}>, t.PartialC<{
|
|
873
|
-
config: t.ExactC<t.PartialC<{
|
|
874
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
875
|
-
}>>;
|
|
876
876
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
877
877
|
type: t.LiteralC<"Group">;
|
|
878
878
|
}>, t.PartialC<{
|
|
@@ -979,6 +979,12 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
979
979
|
config: t.ExactC<t.PartialC<{
|
|
980
980
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
981
981
|
}>>;
|
|
982
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
983
|
+
type: t.LiteralC<"Table">;
|
|
984
|
+
}>, t.PartialC<{
|
|
985
|
+
config: t.ExactC<t.PartialC<{
|
|
986
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
987
|
+
}>>;
|
|
982
988
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
983
989
|
type: t.LiteralC<"Text">;
|
|
984
990
|
}>, t.PartialC<{
|
|
@@ -1041,12 +1047,6 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
1041
1047
|
placeholder: t.StringC;
|
|
1042
1048
|
catalog: t.StringC;
|
|
1043
1049
|
}>>;
|
|
1044
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1045
|
-
type: t.LiteralC<"Table">;
|
|
1046
|
-
}>, t.PartialC<{
|
|
1047
|
-
config: t.ExactC<t.PartialC<{
|
|
1048
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1049
|
-
}>>;
|
|
1050
1050
|
}>]>>]>>;
|
|
1051
1051
|
}>>;
|
|
1052
1052
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -1153,6 +1153,12 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
1153
1153
|
config: t.ExactC<t.PartialC<{
|
|
1154
1154
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1155
1155
|
}>>;
|
|
1156
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1157
|
+
type: t.LiteralC<"Table">;
|
|
1158
|
+
}>, t.PartialC<{
|
|
1159
|
+
config: t.ExactC<t.PartialC<{
|
|
1160
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1161
|
+
}>>;
|
|
1156
1162
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1157
1163
|
type: t.LiteralC<"Text">;
|
|
1158
1164
|
}>, t.PartialC<{
|
|
@@ -1215,12 +1221,6 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
1215
1221
|
placeholder: t.StringC;
|
|
1216
1222
|
catalog: t.StringC;
|
|
1217
1223
|
}>>;
|
|
1218
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1219
|
-
type: t.LiteralC<"Table">;
|
|
1220
|
-
}>, t.PartialC<{
|
|
1221
|
-
config: t.ExactC<t.PartialC<{
|
|
1222
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1223
|
-
}>>;
|
|
1224
1224
|
}>]>>]>>;
|
|
1225
1225
|
repeat: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1226
1226
|
type: t.LiteralC<"Color">;
|
|
@@ -1319,6 +1319,12 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
1319
1319
|
config: t.ExactC<t.PartialC<{
|
|
1320
1320
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1321
1321
|
}>>;
|
|
1322
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1323
|
+
type: t.LiteralC<"Table">;
|
|
1324
|
+
}>, t.PartialC<{
|
|
1325
|
+
config: t.ExactC<t.PartialC<{
|
|
1326
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1327
|
+
}>>;
|
|
1322
1328
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1323
1329
|
type: t.LiteralC<"Text">;
|
|
1324
1330
|
}>, t.PartialC<{
|
|
@@ -1381,12 +1387,6 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
1381
1387
|
placeholder: t.StringC;
|
|
1382
1388
|
catalog: t.StringC;
|
|
1383
1389
|
}>>;
|
|
1384
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1385
|
-
type: t.LiteralC<"Table">;
|
|
1386
|
-
}>, t.PartialC<{
|
|
1387
|
-
config: t.ExactC<t.PartialC<{
|
|
1388
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1389
|
-
}>>;
|
|
1390
1390
|
}>]>>]>>;
|
|
1391
1391
|
config: t.ExactC<t.PartialC<{
|
|
1392
1392
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -2209,6 +2209,12 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2209
2209
|
config: t.ExactC<t.PartialC<{
|
|
2210
2210
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2211
2211
|
}>>;
|
|
2212
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2213
|
+
type: t.LiteralC<"Table">;
|
|
2214
|
+
}>, t.PartialC<{
|
|
2215
|
+
config: t.ExactC<t.PartialC<{
|
|
2216
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2217
|
+
}>>;
|
|
2212
2218
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2213
2219
|
type: t.LiteralC<"Text">;
|
|
2214
2220
|
}>, t.PartialC<{
|
|
@@ -2271,12 +2277,6 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2271
2277
|
placeholder: t.StringC;
|
|
2272
2278
|
catalog: t.StringC;
|
|
2273
2279
|
}>>;
|
|
2274
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2275
|
-
type: t.LiteralC<"Table">;
|
|
2276
|
-
}>, t.PartialC<{
|
|
2277
|
-
config: t.ExactC<t.PartialC<{
|
|
2278
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2279
|
-
}>>;
|
|
2280
2280
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2281
2281
|
type: t.LiteralC<"Group">;
|
|
2282
2282
|
}>, t.PartialC<{
|
|
@@ -2383,6 +2383,12 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2383
2383
|
config: t.ExactC<t.PartialC<{
|
|
2384
2384
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2385
2385
|
}>>;
|
|
2386
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2387
|
+
type: t.LiteralC<"Table">;
|
|
2388
|
+
}>, t.PartialC<{
|
|
2389
|
+
config: t.ExactC<t.PartialC<{
|
|
2390
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2391
|
+
}>>;
|
|
2386
2392
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2387
2393
|
type: t.LiteralC<"Text">;
|
|
2388
2394
|
}>, t.PartialC<{
|
|
@@ -2445,12 +2451,6 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2445
2451
|
placeholder: t.StringC;
|
|
2446
2452
|
catalog: t.StringC;
|
|
2447
2453
|
}>>;
|
|
2448
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2449
|
-
type: t.LiteralC<"Table">;
|
|
2450
|
-
}>, t.PartialC<{
|
|
2451
|
-
config: t.ExactC<t.PartialC<{
|
|
2452
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2453
|
-
}>>;
|
|
2454
2454
|
}>]>>]>>;
|
|
2455
2455
|
}>>;
|
|
2456
2456
|
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -2557,6 +2557,12 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2557
2557
|
config: t.ExactC<t.PartialC<{
|
|
2558
2558
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2559
2559
|
}>>;
|
|
2560
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2561
|
+
type: t.LiteralC<"Table">;
|
|
2562
|
+
}>, t.PartialC<{
|
|
2563
|
+
config: t.ExactC<t.PartialC<{
|
|
2564
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2565
|
+
}>>;
|
|
2560
2566
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2561
2567
|
type: t.LiteralC<"Text">;
|
|
2562
2568
|
}>, t.PartialC<{
|
|
@@ -2619,12 +2625,6 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2619
2625
|
placeholder: t.StringC;
|
|
2620
2626
|
catalog: t.StringC;
|
|
2621
2627
|
}>>;
|
|
2622
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2623
|
-
type: t.LiteralC<"Table">;
|
|
2624
|
-
}>, t.PartialC<{
|
|
2625
|
-
config: t.ExactC<t.PartialC<{
|
|
2626
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2627
|
-
}>>;
|
|
2628
2628
|
}>]>>]>>;
|
|
2629
2629
|
repeat: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2630
2630
|
type: t.LiteralC<"Color">;
|
|
@@ -2723,6 +2723,12 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2723
2723
|
config: t.ExactC<t.PartialC<{
|
|
2724
2724
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2725
2725
|
}>>;
|
|
2726
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2727
|
+
type: t.LiteralC<"Table">;
|
|
2728
|
+
}>, t.PartialC<{
|
|
2729
|
+
config: t.ExactC<t.PartialC<{
|
|
2730
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2731
|
+
}>>;
|
|
2726
2732
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2727
2733
|
type: t.LiteralC<"Text">;
|
|
2728
2734
|
}>, t.PartialC<{
|
|
@@ -2785,12 +2791,6 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
|
|
|
2785
2791
|
placeholder: t.StringC;
|
|
2786
2792
|
catalog: t.StringC;
|
|
2787
2793
|
}>>;
|
|
2788
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2789
|
-
type: t.LiteralC<"Table">;
|
|
2790
|
-
}>, t.PartialC<{
|
|
2791
|
-
config: t.ExactC<t.PartialC<{
|
|
2792
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2793
|
-
}>>;
|
|
2794
2794
|
}>]>>]>>;
|
|
2795
2795
|
config: t.ExactC<t.PartialC<{
|
|
2796
2796
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
package/package.json
CHANGED
|
@@ -58,7 +58,8 @@ export type GroupContent = {
|
|
|
58
58
|
value: GroupItemContent[]
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export const isGroupContent = GroupContent
|
|
61
|
+
export const isGroupContent = (u: unknown): u is GroupContent =>
|
|
62
|
+
hasContentType(u) && u.__TYPE__ === GroupContentType
|
|
62
63
|
|
|
63
64
|
export const GroupContentDefaultValue: GroupContent = {
|
|
64
65
|
__TYPE__: GroupContentType,
|
|
@@ -4,7 +4,6 @@ import * as t from "io-ts"
|
|
|
4
4
|
import type { NestableWidget } from "../../../customtypes"
|
|
5
5
|
import type { LegacyContentCtx } from "../../LegacyContentCtx"
|
|
6
6
|
import { EmptyContent, EmptyLegacy, isEmptyContent } from "../EmptyContent"
|
|
7
|
-
import { isTableContent } from "."
|
|
8
7
|
import {
|
|
9
8
|
BooleanContent,
|
|
10
9
|
BooleanContentDefaultValue,
|
|
@@ -84,7 +83,12 @@ import {
|
|
|
84
83
|
SeparatorContentType,
|
|
85
84
|
SeparatorLegacy,
|
|
86
85
|
} from "./SeparatorContent"
|
|
87
|
-
import {
|
|
86
|
+
import {
|
|
87
|
+
isTableContent,
|
|
88
|
+
TableContent,
|
|
89
|
+
TableContentType,
|
|
90
|
+
TableLegacy,
|
|
91
|
+
} from "./TableContent"
|
|
88
92
|
|
|
89
93
|
export const NestableContent = t.union([
|
|
90
94
|
EmptyContent,
|
|
@@ -103,8 +107,8 @@ export const NestableContent = t.union([
|
|
|
103
107
|
LinkContent,
|
|
104
108
|
RichTextContent,
|
|
105
109
|
SeparatorContent,
|
|
106
|
-
RepeatableContent,
|
|
107
110
|
TableContent,
|
|
111
|
+
RepeatableContent,
|
|
108
112
|
])
|
|
109
113
|
export type NestableContent = t.TypeOf<typeof NestableContent>
|
|
110
114
|
export type NestableContentType = NestableContent["__TYPE__"]
|
|
@@ -138,9 +142,9 @@ export const isNestableContent = (u: unknown): u is NestableContent =>
|
|
|
138
142
|
isIntegrationFieldContent(u) ||
|
|
139
143
|
isLinkContent(u) ||
|
|
140
144
|
isSeparatorContent(u) ||
|
|
145
|
+
isTableContent(u) ||
|
|
141
146
|
isEmptyContent(u) ||
|
|
142
|
-
isRepeatableContent(u)
|
|
143
|
-
isTableContent(u)
|
|
147
|
+
isRepeatableContent(u)
|
|
144
148
|
|
|
145
149
|
export const NestableLegacy = (ctx: LegacyContentCtx) => {
|
|
146
150
|
return {
|
|
@@ -182,10 +186,10 @@ export const NestableLegacy = (ctx: LegacyContentCtx) => {
|
|
|
182
186
|
return LinkContentLegacy(ctx)
|
|
183
187
|
case "Separator":
|
|
184
188
|
return SeparatorLegacy(ctx)
|
|
185
|
-
case "Repeatable.Link":
|
|
186
|
-
return RepeatableLegacy(ctx, "Link")
|
|
187
189
|
case "Table":
|
|
188
190
|
return TableLegacy(ctx)
|
|
191
|
+
case "Repeatable.Link":
|
|
192
|
+
return RepeatableLegacy(ctx, "Link")
|
|
189
193
|
default:
|
|
190
194
|
return
|
|
191
195
|
}
|
|
@@ -224,10 +228,10 @@ export const NestableLegacy = (ctx: LegacyContentCtx) => {
|
|
|
224
228
|
return LinkContentLegacy(ctx).encode(value)
|
|
225
229
|
case SeparatorContentType:
|
|
226
230
|
return SeparatorLegacy(ctx).encode(value)
|
|
227
|
-
case "RepeatableContent":
|
|
228
|
-
return RepeatableLegacy(ctx, value.type).encode(value)
|
|
229
231
|
case TableContentType:
|
|
230
232
|
return TableLegacy(ctx).encode(value)
|
|
233
|
+
case "RepeatableContent":
|
|
234
|
+
return RepeatableLegacy(ctx, value.type).encode(value)
|
|
231
235
|
|
|
232
236
|
default:
|
|
233
237
|
return
|