@prismicio/types-internal 2.0.0-beta.0 → 2.1.0-alpha.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/common/WidgetKey.d.ts +1 -1
- package/lib/common/WidgetKey.js +1 -1
- package/lib/common/index.js +1 -1
- package/lib/content/Document.d.ts +20 -100
- package/lib/content/Document.js +1 -1
- package/lib/content/LegacyContentCtx.d.ts +2 -2
- package/lib/content/LegacyContentCtx.js +1 -1
- package/lib/content/fields/EmptyContent.d.ts +1 -1
- package/lib/content/fields/EmptyContent.js +1 -1
- package/lib/content/fields/GroupContent.d.ts +8 -28
- package/lib/content/fields/GroupContent.js +1 -1
- package/lib/content/fields/UIDContent.d.ts +1 -1
- package/lib/content/fields/UIDContent.js +1 -1
- package/lib/content/fields/WidgetContent.d.ts +18 -98
- package/lib/content/fields/WidgetContent.js +1 -1
- package/lib/content/fields/index.js +6 -6
- package/lib/content/fields/nestable/BooleanContent.d.ts +1 -1
- package/lib/content/fields/nestable/BooleanContent.js +1 -1
- package/lib/content/fields/nestable/EmbedContent.d.ts +2 -2
- package/lib/content/fields/nestable/EmbedContent.js +1 -1
- package/lib/content/fields/nestable/FieldContent/ColorContent.d.ts +1 -1
- package/lib/content/fields/nestable/FieldContent/ColorContent.js +2 -2
- package/lib/content/fields/nestable/FieldContent/DateContent.d.ts +1 -1
- package/lib/content/fields/nestable/FieldContent/DateContent.js +2 -2
- package/lib/content/fields/nestable/FieldContent/NumberContent.d.ts +1 -1
- package/lib/content/fields/nestable/FieldContent/NumberContent.js +2 -2
- package/lib/content/fields/nestable/FieldContent/RangeContent.d.ts +1 -1
- package/lib/content/fields/nestable/FieldContent/RangeContent.js +2 -2
- package/lib/content/fields/nestable/FieldContent/SelectContent.d.ts +1 -1
- package/lib/content/fields/nestable/FieldContent/SelectContent.js +2 -2
- package/lib/content/fields/nestable/FieldContent/TextContent.d.ts +1 -1
- package/lib/content/fields/nestable/FieldContent/TextContent.js +2 -2
- package/lib/content/fields/nestable/FieldContent/TimestampContent.d.ts +1 -1
- package/lib/content/fields/nestable/FieldContent/TimestampContent.js +2 -2
- package/lib/content/fields/nestable/FieldContent/index.d.ts +2 -2
- package/lib/content/fields/nestable/FieldContent/index.js +9 -9
- package/lib/content/fields/nestable/GeoPointContent.d.ts +1 -1
- package/lib/content/fields/nestable/GeoPointContent.js +1 -1
- package/lib/content/fields/nestable/ImageContent.d.ts +2 -2
- package/lib/content/fields/nestable/ImageContent.js +1 -1
- package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +1 -1
- package/lib/content/fields/nestable/IntegrationFieldContent.js +1 -1
- package/lib/content/fields/nestable/LinkContent.d.ts +6 -6
- package/lib/content/fields/nestable/LinkContent.js +1 -1
- package/lib/content/fields/nestable/NestableContent.d.ts +4 -14
- package/lib/content/fields/nestable/NestableContent.js +1 -1
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +11 -31
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +15 -11
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +3 -13
- package/lib/content/fields/nestable/RichTextContent/index.js +3 -3
- package/lib/content/fields/nestable/SeparatorContent.d.ts +1 -1
- package/lib/content/fields/nestable/SeparatorContent.js +1 -1
- package/lib/content/fields/nestable/index.js +10 -10
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +5 -25
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +1 -1
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -12
- package/lib/content/fields/slices/Slice/RepeatableContent.js +1 -1
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +5 -25
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +279 -27
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +6 -2
- package/lib/content/fields/slices/Slice/index.d.ts +285 -73
- package/lib/content/fields/slices/Slice/index.js +4 -4
- package/lib/content/fields/slices/SliceItem.d.ts +13 -73
- package/lib/content/fields/slices/SliceItem.js +1 -1
- package/lib/content/fields/slices/SlicesContent.d.ts +14 -74
- package/lib/content/fields/slices/SlicesContent.js +1 -1
- package/lib/content/fields/slices/index.js +3 -3
- package/lib/content/index.js +3 -3
- package/lib/content/utils.d.ts +2 -2
- package/lib/content/utils.js +2 -1
- package/lib/customtypes/CustomType.d.ts +210 -16
- package/lib/customtypes/CustomType.js +7 -2
- package/lib/customtypes/Section.d.ts +198 -16
- package/lib/customtypes/Section.js +1 -1
- package/lib/customtypes/diff/Changes.d.ts +4 -4
- package/lib/customtypes/diff/SharedSlice.d.ts +723 -3
- package/lib/customtypes/diff/Variation.d.ts +709 -3
- package/lib/customtypes/diff/index.js +3 -3
- package/lib/customtypes/index.js +4 -4
- package/lib/customtypes/widgets/Group.d.ts +56 -4
- package/lib/customtypes/widgets/Group.js +1 -1
- package/lib/customtypes/widgets/UID.d.ts +2 -2
- package/lib/customtypes/widgets/UID.js +1 -1
- package/lib/customtypes/widgets/Widget.d.ts +305 -19
- package/lib/customtypes/widgets/Widget.js +1 -1
- package/lib/customtypes/widgets/index.js +6 -6
- package/lib/customtypes/widgets/nestable/BooleanField.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/BooleanField.js +1 -1
- package/lib/customtypes/widgets/nestable/Color.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Color.js +1 -1
- package/lib/customtypes/widgets/nestable/Date.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Date.js +1 -1
- package/lib/customtypes/widgets/nestable/Embed.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Embed.js +1 -1
- package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/GeoPoint.js +1 -1
- package/lib/customtypes/widgets/nestable/Image.d.ts +3 -3
- package/lib/customtypes/widgets/nestable/Image.js +2 -2
- package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/IntegrationField.js +1 -1
- package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.d.ts +29 -0
- package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.js +44 -0
- package/lib/customtypes/widgets/nestable/Link/index.d.ts +82 -0
- package/lib/customtypes/widgets/nestable/{Link.js → Link/index.js} +5 -3
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +29 -3
- package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
- package/lib/customtypes/widgets/nestable/Number.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Number.js +1 -1
- package/lib/customtypes/widgets/nestable/Range.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Range.js +1 -1
- package/lib/customtypes/widgets/nestable/RichText.d.ts +3 -3
- package/lib/customtypes/widgets/nestable/RichText.js +2 -2
- package/lib/customtypes/widgets/nestable/Select.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Select.js +1 -1
- package/lib/customtypes/widgets/nestable/Separator.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Separator.js +1 -1
- package/lib/customtypes/widgets/nestable/Text.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Text.js +1 -1
- package/lib/customtypes/widgets/nestable/Timestamp.d.ts +2 -2
- package/lib/customtypes/widgets/nestable/Timestamp.js +1 -1
- package/lib/customtypes/widgets/nestable/index.js +16 -16
- package/lib/customtypes/widgets/shared/ImageConstraint.d.ts +1 -1
- package/lib/customtypes/widgets/shared/ImageConstraint.js +1 -1
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +56 -4
- package/lib/customtypes/widgets/slices/CompositeSlice.js +1 -1
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +55 -3
- package/lib/customtypes/widgets/slices/LegacySlice.js +1 -1
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +110 -6
- package/lib/customtypes/widgets/slices/SharedSlice.js +1 -1
- package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +1 -1
- package/lib/customtypes/widgets/slices/SharedSliceRef.js +1 -1
- package/lib/customtypes/widgets/slices/Slice.d.ts +2 -2
- package/lib/customtypes/widgets/slices/Slices.d.ts +497 -29
- package/lib/customtypes/widgets/slices/Slices.js +1 -1
- package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +1 -1
- package/lib/customtypes/widgets/slices/SlicesTypes.js +1 -1
- package/lib/customtypes/widgets/slices/index.js +7 -7
- package/lib/utils/index.js +2 -2
- package/lib/validators/DateFromString.js +1 -1
- package/lib/validators/DateFromStringOrNumber.js +1 -1
- package/lib/validators/DateFromTsMs.js +1 -1
- package/lib/validators/IntFromNumber.d.ts +2 -2
- package/lib/validators/IntFromNumber.js +1 -1
- package/lib/validators/IntFromPixels.d.ts +2 -2
- package/lib/validators/IntFromPixels.js +1 -1
- package/lib/validators/NonEmptyString.js +1 -1
- package/lib/validators/NonEmptyStringOrNull.js +1 -1
- package/lib/validators/NumberOrNull.js +1 -1
- package/lib/validators/StringFromBoolean.d.ts +2 -2
- package/lib/validators/StringFromBoolean.js +1 -1
- package/lib/validators/StringFromNumber.d.ts +2 -2
- package/lib/validators/StringFromNumber.js +1 -1
- package/lib/validators/StringOrNull.js +1 -1
- package/lib/validators/TrimmedString.d.ts +2 -2
- package/lib/validators/TrimmedString.js +1 -1
- package/lib/validators/function.js +1 -1
- package/lib/validators/index.js +12 -12
- package/package.json +1 -1
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +31 -23
- package/src/content/fields/nestable/RichTextContent/index.ts +1 -3
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +4 -1
- package/src/customtypes/CustomType.ts +6 -0
- package/src/customtypes/widgets/nestable/Link/ContentRelationshipResolver.ts +69 -0
- package/src/customtypes/widgets/nestable/{Link.ts → Link/index.ts} +5 -2
- package/lib/customtypes/widgets/nestable/Link.d.ts +0 -29
|
@@ -80,7 +80,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
80
80
|
useAsTitle?: boolean;
|
|
81
81
|
placeholder?: string;
|
|
82
82
|
select?: "media" | "document" | "web" | null;
|
|
83
|
-
customtypes?: readonly
|
|
83
|
+
customtypes?: readonly ({
|
|
84
|
+
customTypeId: string;
|
|
85
|
+
} & {
|
|
86
|
+
fields?: readonly ({
|
|
87
|
+
fieldId: string;
|
|
88
|
+
} & {
|
|
89
|
+
customTypes?: readonly {
|
|
90
|
+
customTypeId: string;
|
|
91
|
+
fields: readonly {
|
|
92
|
+
fieldId: string;
|
|
93
|
+
}[];
|
|
94
|
+
}[];
|
|
95
|
+
})[];
|
|
96
|
+
})[];
|
|
84
97
|
masks?: readonly string[];
|
|
85
98
|
tags?: readonly string[];
|
|
86
99
|
allowTargetBlank?: boolean;
|
|
@@ -246,7 +259,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
246
259
|
useAsTitle?: boolean;
|
|
247
260
|
placeholder?: string;
|
|
248
261
|
select?: "media" | "document" | "web" | null;
|
|
249
|
-
customtypes?: readonly
|
|
262
|
+
customtypes?: readonly ({
|
|
263
|
+
customTypeId: string;
|
|
264
|
+
} & {
|
|
265
|
+
fields?: readonly ({
|
|
266
|
+
fieldId: string;
|
|
267
|
+
} & {
|
|
268
|
+
customTypes?: readonly {
|
|
269
|
+
customTypeId: string;
|
|
270
|
+
fields: readonly {
|
|
271
|
+
fieldId: string;
|
|
272
|
+
}[];
|
|
273
|
+
}[];
|
|
274
|
+
})[];
|
|
275
|
+
})[];
|
|
250
276
|
masks?: readonly string[];
|
|
251
277
|
tags?: readonly string[];
|
|
252
278
|
allowTargetBlank?: boolean;
|
|
@@ -419,7 +445,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
419
445
|
useAsTitle?: boolean;
|
|
420
446
|
placeholder?: string;
|
|
421
447
|
select?: "media" | "document" | "web" | null;
|
|
422
|
-
customtypes?: readonly
|
|
448
|
+
customtypes?: readonly ({
|
|
449
|
+
customTypeId: string;
|
|
450
|
+
} & {
|
|
451
|
+
fields?: readonly ({
|
|
452
|
+
fieldId: string;
|
|
453
|
+
} & {
|
|
454
|
+
customTypes?: readonly {
|
|
455
|
+
customTypeId: string;
|
|
456
|
+
fields: readonly {
|
|
457
|
+
fieldId: string;
|
|
458
|
+
}[];
|
|
459
|
+
}[];
|
|
460
|
+
})[];
|
|
461
|
+
})[];
|
|
423
462
|
masks?: readonly string[];
|
|
424
463
|
tags?: readonly string[];
|
|
425
464
|
allowTargetBlank?: boolean;
|
|
@@ -585,7 +624,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
585
624
|
useAsTitle?: boolean;
|
|
586
625
|
placeholder?: string;
|
|
587
626
|
select?: "media" | "document" | "web" | null;
|
|
588
|
-
customtypes?: readonly
|
|
627
|
+
customtypes?: readonly ({
|
|
628
|
+
customTypeId: string;
|
|
629
|
+
} & {
|
|
630
|
+
fields?: readonly ({
|
|
631
|
+
fieldId: string;
|
|
632
|
+
} & {
|
|
633
|
+
customTypes?: readonly {
|
|
634
|
+
customTypeId: string;
|
|
635
|
+
fields: readonly {
|
|
636
|
+
fieldId: string;
|
|
637
|
+
}[];
|
|
638
|
+
}[];
|
|
639
|
+
})[];
|
|
640
|
+
})[];
|
|
589
641
|
masks?: readonly string[];
|
|
590
642
|
tags?: readonly string[];
|
|
591
643
|
allowTargetBlank?: boolean;
|
|
@@ -752,7 +804,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
752
804
|
useAsTitle?: boolean;
|
|
753
805
|
placeholder?: string;
|
|
754
806
|
select?: "media" | "document" | "web" | null;
|
|
755
|
-
customtypes?: readonly
|
|
807
|
+
customtypes?: readonly ({
|
|
808
|
+
customTypeId: string;
|
|
809
|
+
} & {
|
|
810
|
+
fields?: readonly ({
|
|
811
|
+
fieldId: string;
|
|
812
|
+
} & {
|
|
813
|
+
customTypes?: readonly {
|
|
814
|
+
customTypeId: string;
|
|
815
|
+
fields: readonly {
|
|
816
|
+
fieldId: string;
|
|
817
|
+
}[];
|
|
818
|
+
}[];
|
|
819
|
+
})[];
|
|
820
|
+
})[];
|
|
756
821
|
masks?: readonly string[];
|
|
757
822
|
tags?: readonly string[];
|
|
758
823
|
allowTargetBlank?: boolean;
|
|
@@ -911,7 +976,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
911
976
|
useAsTitle?: boolean;
|
|
912
977
|
placeholder?: string;
|
|
913
978
|
select?: "media" | "document" | "web" | null;
|
|
914
|
-
customtypes?: readonly
|
|
979
|
+
customtypes?: readonly ({
|
|
980
|
+
customTypeId: string;
|
|
981
|
+
} & {
|
|
982
|
+
fields?: readonly ({
|
|
983
|
+
fieldId: string;
|
|
984
|
+
} & {
|
|
985
|
+
customTypes?: readonly {
|
|
986
|
+
customTypeId: string;
|
|
987
|
+
fields: readonly {
|
|
988
|
+
fieldId: string;
|
|
989
|
+
}[];
|
|
990
|
+
}[];
|
|
991
|
+
})[];
|
|
992
|
+
})[];
|
|
915
993
|
masks?: readonly string[];
|
|
916
994
|
tags?: readonly string[];
|
|
917
995
|
allowTargetBlank?: boolean;
|
|
@@ -1086,7 +1164,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1086
1164
|
useAsTitle?: boolean;
|
|
1087
1165
|
placeholder?: string;
|
|
1088
1166
|
select?: "media" | "document" | "web" | null;
|
|
1089
|
-
customtypes?: readonly
|
|
1167
|
+
customtypes?: readonly ({
|
|
1168
|
+
customTypeId: string;
|
|
1169
|
+
} & {
|
|
1170
|
+
fields?: readonly ({
|
|
1171
|
+
fieldId: string;
|
|
1172
|
+
} & {
|
|
1173
|
+
customTypes?: readonly {
|
|
1174
|
+
customTypeId: string;
|
|
1175
|
+
fields: readonly {
|
|
1176
|
+
fieldId: string;
|
|
1177
|
+
}[];
|
|
1178
|
+
}[];
|
|
1179
|
+
})[];
|
|
1180
|
+
})[];
|
|
1090
1181
|
masks?: readonly string[];
|
|
1091
1182
|
tags?: readonly string[];
|
|
1092
1183
|
allowTargetBlank?: boolean;
|
|
@@ -1245,7 +1336,20 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1245
1336
|
useAsTitle?: boolean;
|
|
1246
1337
|
placeholder?: string;
|
|
1247
1338
|
select?: "media" | "document" | "web" | null;
|
|
1248
|
-
customtypes?: readonly
|
|
1339
|
+
customtypes?: readonly ({
|
|
1340
|
+
customTypeId: string;
|
|
1341
|
+
} & {
|
|
1342
|
+
fields?: readonly ({
|
|
1343
|
+
fieldId: string;
|
|
1344
|
+
} & {
|
|
1345
|
+
customTypes?: readonly {
|
|
1346
|
+
customTypeId: string;
|
|
1347
|
+
fields: readonly {
|
|
1348
|
+
fieldId: string;
|
|
1349
|
+
}[];
|
|
1350
|
+
}[];
|
|
1351
|
+
})[];
|
|
1352
|
+
})[];
|
|
1249
1353
|
masks?: readonly string[];
|
|
1250
1354
|
tags?: readonly string[];
|
|
1251
1355
|
allowTargetBlank?: boolean;
|
|
@@ -1341,7 +1445,7 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1341
1445
|
placeholder?: string;
|
|
1342
1446
|
};
|
|
1343
1447
|
}), unknown, unknown>>;
|
|
1344
|
-
export type StaticSection = t.TypeOf<typeof StaticSection>;
|
|
1448
|
+
export declare type StaticSection = t.TypeOf<typeof StaticSection>;
|
|
1345
1449
|
export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>, t.Type<({
|
|
1346
1450
|
type: "Boolean";
|
|
1347
1451
|
} & {
|
|
@@ -1420,7 +1524,20 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
1420
1524
|
useAsTitle?: boolean;
|
|
1421
1525
|
placeholder?: string;
|
|
1422
1526
|
select?: "media" | "document" | "web" | null;
|
|
1423
|
-
customtypes?: readonly
|
|
1527
|
+
customtypes?: readonly ({
|
|
1528
|
+
customTypeId: string;
|
|
1529
|
+
} & {
|
|
1530
|
+
fields?: readonly ({
|
|
1531
|
+
fieldId: string;
|
|
1532
|
+
} & {
|
|
1533
|
+
customTypes?: readonly {
|
|
1534
|
+
customTypeId: string;
|
|
1535
|
+
fields: readonly {
|
|
1536
|
+
fieldId: string;
|
|
1537
|
+
}[];
|
|
1538
|
+
}[];
|
|
1539
|
+
})[];
|
|
1540
|
+
})[];
|
|
1424
1541
|
masks?: readonly string[];
|
|
1425
1542
|
tags?: readonly string[];
|
|
1426
1543
|
allowTargetBlank?: boolean;
|
|
@@ -1586,7 +1703,20 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
1586
1703
|
useAsTitle?: boolean;
|
|
1587
1704
|
placeholder?: string;
|
|
1588
1705
|
select?: "media" | "document" | "web" | null;
|
|
1589
|
-
customtypes?: readonly
|
|
1706
|
+
customtypes?: readonly ({
|
|
1707
|
+
customTypeId: string;
|
|
1708
|
+
} & {
|
|
1709
|
+
fields?: readonly ({
|
|
1710
|
+
fieldId: string;
|
|
1711
|
+
} & {
|
|
1712
|
+
customTypes?: readonly {
|
|
1713
|
+
customTypeId: string;
|
|
1714
|
+
fields: readonly {
|
|
1715
|
+
fieldId: string;
|
|
1716
|
+
}[];
|
|
1717
|
+
}[];
|
|
1718
|
+
})[];
|
|
1719
|
+
})[];
|
|
1590
1720
|
masks?: readonly string[];
|
|
1591
1721
|
tags?: readonly string[];
|
|
1592
1722
|
allowTargetBlank?: boolean;
|
|
@@ -1759,7 +1889,20 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
1759
1889
|
useAsTitle?: boolean;
|
|
1760
1890
|
placeholder?: string;
|
|
1761
1891
|
select?: "media" | "document" | "web" | null;
|
|
1762
|
-
customtypes?: readonly
|
|
1892
|
+
customtypes?: readonly ({
|
|
1893
|
+
customTypeId: string;
|
|
1894
|
+
} & {
|
|
1895
|
+
fields?: readonly ({
|
|
1896
|
+
fieldId: string;
|
|
1897
|
+
} & {
|
|
1898
|
+
customTypes?: readonly {
|
|
1899
|
+
customTypeId: string;
|
|
1900
|
+
fields: readonly {
|
|
1901
|
+
fieldId: string;
|
|
1902
|
+
}[];
|
|
1903
|
+
}[];
|
|
1904
|
+
})[];
|
|
1905
|
+
})[];
|
|
1763
1906
|
masks?: readonly string[];
|
|
1764
1907
|
tags?: readonly string[];
|
|
1765
1908
|
allowTargetBlank?: boolean;
|
|
@@ -1925,7 +2068,20 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
1925
2068
|
useAsTitle?: boolean;
|
|
1926
2069
|
placeholder?: string;
|
|
1927
2070
|
select?: "media" | "document" | "web" | null;
|
|
1928
|
-
customtypes?: readonly
|
|
2071
|
+
customtypes?: readonly ({
|
|
2072
|
+
customTypeId: string;
|
|
2073
|
+
} & {
|
|
2074
|
+
fields?: readonly ({
|
|
2075
|
+
fieldId: string;
|
|
2076
|
+
} & {
|
|
2077
|
+
customTypes?: readonly {
|
|
2078
|
+
customTypeId: string;
|
|
2079
|
+
fields: readonly {
|
|
2080
|
+
fieldId: string;
|
|
2081
|
+
}[];
|
|
2082
|
+
}[];
|
|
2083
|
+
})[];
|
|
2084
|
+
})[];
|
|
1929
2085
|
masks?: readonly string[];
|
|
1930
2086
|
tags?: readonly string[];
|
|
1931
2087
|
allowTargetBlank?: boolean;
|
|
@@ -2092,7 +2248,20 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2092
2248
|
useAsTitle?: boolean;
|
|
2093
2249
|
placeholder?: string;
|
|
2094
2250
|
select?: "media" | "document" | "web" | null;
|
|
2095
|
-
customtypes?: readonly
|
|
2251
|
+
customtypes?: readonly ({
|
|
2252
|
+
customTypeId: string;
|
|
2253
|
+
} & {
|
|
2254
|
+
fields?: readonly ({
|
|
2255
|
+
fieldId: string;
|
|
2256
|
+
} & {
|
|
2257
|
+
customTypes?: readonly {
|
|
2258
|
+
customTypeId: string;
|
|
2259
|
+
fields: readonly {
|
|
2260
|
+
fieldId: string;
|
|
2261
|
+
}[];
|
|
2262
|
+
}[];
|
|
2263
|
+
})[];
|
|
2264
|
+
})[];
|
|
2096
2265
|
masks?: readonly string[];
|
|
2097
2266
|
tags?: readonly string[];
|
|
2098
2267
|
allowTargetBlank?: boolean;
|
|
@@ -2251,7 +2420,20 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2251
2420
|
useAsTitle?: boolean;
|
|
2252
2421
|
placeholder?: string;
|
|
2253
2422
|
select?: "media" | "document" | "web" | null;
|
|
2254
|
-
customtypes?: readonly
|
|
2423
|
+
customtypes?: readonly ({
|
|
2424
|
+
customTypeId: string;
|
|
2425
|
+
} & {
|
|
2426
|
+
fields?: readonly ({
|
|
2427
|
+
fieldId: string;
|
|
2428
|
+
} & {
|
|
2429
|
+
customTypes?: readonly {
|
|
2430
|
+
customTypeId: string;
|
|
2431
|
+
fields: readonly {
|
|
2432
|
+
fieldId: string;
|
|
2433
|
+
}[];
|
|
2434
|
+
}[];
|
|
2435
|
+
})[];
|
|
2436
|
+
})[];
|
|
2255
2437
|
masks?: readonly string[];
|
|
2256
2438
|
tags?: readonly string[];
|
|
2257
2439
|
allowTargetBlank?: boolean;
|
|
@@ -2349,7 +2531,7 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2349
2531
|
placeholder?: string;
|
|
2350
2532
|
};
|
|
2351
2533
|
}), unknown, unknown>>;
|
|
2352
|
-
export type DynamicSection = t.TypeOf<typeof DynamicSection>;
|
|
2534
|
+
export declare type DynamicSection = t.TypeOf<typeof DynamicSection>;
|
|
2353
2535
|
export declare const Sections: {
|
|
2354
2536
|
toStatic(dynamic: DynamicSection, sharedSlices: Map<string, SharedSlice>): StaticSection;
|
|
2355
2537
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Sections = exports.DynamicSection = exports.StaticSection = exports.sectionReader = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const t = tslib_1.__importStar(require("io-ts"));
|
|
5
|
+
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
6
6
|
const common_1 = require("../common");
|
|
7
7
|
const Widget_1 = require("./widgets/Widget");
|
|
8
8
|
function sectionReader(codec) {
|
|
@@ -3,15 +3,15 @@ export declare enum DiffOperation {
|
|
|
3
3
|
Removed = "removed",
|
|
4
4
|
Updated = "updated"
|
|
5
5
|
}
|
|
6
|
-
export type AddChange<A> = {
|
|
6
|
+
export declare type AddChange<A> = {
|
|
7
7
|
op: DiffOperation.Added;
|
|
8
8
|
value: A;
|
|
9
9
|
};
|
|
10
|
-
export type RemovedChange = {
|
|
10
|
+
export declare type RemovedChange = {
|
|
11
11
|
op: DiffOperation.Removed;
|
|
12
12
|
};
|
|
13
|
-
export type UpdatedChange<A> = {
|
|
13
|
+
export declare type UpdatedChange<A> = {
|
|
14
14
|
op: DiffOperation.Updated;
|
|
15
15
|
value: A;
|
|
16
16
|
};
|
|
17
|
-
export type DiffChange<A, U> = AddChange<A> | UpdatedChange<U> | RemovedChange;
|
|
17
|
+
export declare type DiffChange<A, U> = AddChange<A> | UpdatedChange<U> | RemovedChange;
|