@prismicio/types-internal 2.2.0-alpha.1 → 2.2.0-alpha.3
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/Asset.d.ts +15 -0
- package/lib/common/Asset.js +2 -0
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +1 -0
- package/lib/content/Document.d.ts +40 -40
- package/lib/content/fields/GroupContent.d.ts +12 -12
- package/lib/content/fields/GroupContent.js +11 -4
- package/lib/content/fields/WidgetContent.d.ts +56 -56
- package/lib/content/fields/nestable/NestableContent.d.ts +7 -7
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +12 -12
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +9 -9
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +14 -14
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +5 -5
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +14 -14
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +14 -14
- package/lib/content/fields/slices/Slice/index.d.ts +30 -30
- package/lib/content/fields/slices/SliceItem.d.ts +30 -30
- package/lib/content/fields/slices/SlicesContent.d.ts +42 -42
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -157
- package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -17
- package/lib/import/converters/Document.d.ts +3 -2
- package/lib/import/converters/Document.js +9 -7
- package/lib/import/converters/fields/UID.d.ts +3 -0
- package/lib/import/converters/fields/UID.js +12 -0
- package/lib/import/converters/fields/index.d.ts +1 -0
- package/lib/import/converters/fields/index.js +1 -0
- package/lib/import/converters/fields/nestable/Boolean.d.ts +3 -0
- package/lib/import/converters/fields/nestable/Boolean.js +12 -0
- package/lib/import/converters/fields/nestable/Color.js +9 -6
- package/lib/import/converters/fields/nestable/Date.d.ts +1 -1
- package/lib/import/converters/fields/nestable/Date.js +5 -5
- package/lib/import/converters/fields/nestable/Embed.d.ts +3 -0
- package/lib/import/converters/fields/nestable/Embed.js +13 -0
- package/lib/import/converters/fields/nestable/GeooPoint.d.ts +3 -0
- package/lib/import/converters/fields/nestable/GeooPoint.js +15 -0
- package/lib/import/converters/fields/nestable/Image.d.ts +4 -0
- package/lib/import/converters/fields/nestable/Image.js +45 -0
- package/lib/import/converters/fields/nestable/Link.d.ts +3 -0
- package/lib/import/converters/fields/nestable/Link.js +19 -0
- package/lib/import/converters/fields/nestable/Nestable.d.ts +2 -1
- package/lib/import/converters/fields/nestable/Nestable.js +9 -1
- package/lib/import/converters/fields/nestable/Number.js +9 -6
- package/lib/import/converters/fields/nestable/Select.js +9 -6
- package/lib/import/converters/fields/nestable/Text.js +9 -6
- package/lib/import/converters/fields/nestable/Timestamp.d.ts +1 -1
- package/lib/import/converters/fields/nestable/Timestamp.js +9 -6
- package/lib/import/converters/fields/nestable/index.d.ts +4 -0
- package/lib/import/converters/fields/nestable/index.js +4 -0
- package/lib/import/validators/Document.d.ts +4 -4
- package/lib/import/validators/Document.js +41 -44
- package/lib/import/validators/fields/ImportContent.d.ts +5 -0
- package/lib/import/validators/fields/ImportContent.js +21 -0
- package/lib/import/validators/fields/ImportField.d.ts +230 -0
- package/lib/import/validators/fields/ImportField.js +24 -0
- package/lib/import/validators/fields/UID.d.ts +6 -0
- package/lib/import/validators/fields/UID.js +15 -0
- package/lib/import/validators/fields/index.d.ts +1 -5
- package/lib/import/validators/fields/index.js +1 -0
- package/lib/import/validators/fields/nestable/Boolean.d.ts +6 -0
- package/lib/import/validators/fields/nestable/Boolean.js +6 -0
- package/lib/import/validators/fields/nestable/Color.d.ts +5 -4
- package/lib/import/validators/fields/nestable/Color.js +4 -4
- package/lib/import/validators/fields/nestable/Date.d.ts +5 -3
- package/lib/import/validators/fields/nestable/Date.js +4 -2
- package/lib/import/validators/fields/nestable/Embed.d.ts +27 -0
- package/lib/import/validators/fields/nestable/Embed.js +54 -0
- package/lib/import/validators/fields/nestable/GeoPoint.d.ts +13 -0
- package/lib/import/validators/fields/nestable/GeoPoint.js +13 -0
- package/lib/import/validators/fields/nestable/Image.d.ts +45 -0
- package/lib/import/validators/fields/nestable/Image.js +45 -0
- package/lib/import/validators/fields/nestable/Link.d.ts +20 -0
- package/lib/import/validators/fields/nestable/Link.js +30 -0
- package/lib/import/validators/fields/nestable/Nestable.d.ts +224 -4
- package/lib/import/validators/fields/nestable/Nestable.js +55 -28
- package/lib/import/validators/fields/nestable/Number.d.ts +16 -9
- package/lib/import/validators/fields/nestable/Number.js +5 -4
- package/lib/import/validators/fields/nestable/Select.d.ts +15 -8
- package/lib/import/validators/fields/nestable/Select.js +4 -2
- package/lib/import/validators/fields/nestable/Text.d.ts +6 -3
- package/lib/import/validators/fields/nestable/Text.js +2 -1
- package/lib/import/validators/fields/nestable/Timestamp.d.ts +5 -3
- package/lib/import/validators/fields/nestable/Timestamp.js +4 -2
- package/lib/import/validators/fields/nestable/index.d.ts +4 -0
- package/lib/import/validators/fields/nestable/index.js +4 -0
- package/lib/utils/Objects.d.ts +1 -0
- package/lib/utils/Objects.js +5 -1
- package/lib/validators/BasicTypes.d.ts +8 -0
- package/lib/validators/BasicTypes.js +19 -1
- package/lib/validators/DefaultOrElse.d.ts +5 -0
- package/lib/validators/DefaultOrElse.js +21 -0
- package/lib/validators/NumberRange.d.ts +32 -0
- package/lib/validators/NumberRange.js +40 -0
- package/lib/validators/function.d.ts +20 -0
- package/lib/validators/function.js +41 -1
- package/lib/validators/index.d.ts +2 -1
- package/lib/validators/index.js +4 -2
- package/package.json +3 -2
- package/src/common/Asset.ts +15 -0
- package/src/common/index.ts +1 -0
- package/src/content/fields/GroupContent.ts +9 -5
- package/src/customtypes/widgets/nestable/NestableWidget.ts +0 -17
- package/src/import/converters/Document.ts +19 -11
- package/src/import/converters/fields/UID.ts +13 -0
- package/src/import/converters/fields/index.ts +1 -0
- package/src/import/converters/fields/nestable/Boolean.ts +13 -0
- package/src/import/converters/fields/nestable/Color.ts +7 -5
- package/src/import/converters/fields/nestable/Date.ts +12 -13
- package/src/import/converters/fields/nestable/Embed.ts +15 -0
- package/src/import/converters/fields/nestable/GeooPoint.ts +16 -0
- package/src/import/converters/fields/nestable/Image.ts +53 -0
- package/src/import/converters/fields/nestable/Nestable.ts +14 -0
- package/src/import/converters/fields/nestable/Number.ts +7 -5
- package/src/import/converters/fields/nestable/Select.ts +7 -5
- package/src/import/converters/fields/nestable/Text.ts +7 -5
- package/src/import/converters/fields/nestable/Timestamp.ts +8 -6
- package/src/import/converters/fields/nestable/index.ts +4 -0
- package/src/import/validators/Document.ts +94 -79
- package/src/import/validators/fields/ImportContent.ts +30 -0
- package/src/import/validators/fields/ImportField.ts +25 -0
- package/src/import/validators/fields/UID.ts +27 -0
- package/src/import/validators/fields/index.ts +1 -7
- package/src/import/validators/fields/nestable/Boolean.ts +7 -0
- package/src/import/validators/fields/nestable/Color.ts +23 -23
- package/src/import/validators/fields/nestable/Date.ts +26 -27
- package/src/import/validators/fields/nestable/Embed.ts +86 -0
- package/src/import/validators/fields/nestable/GeoPoint.ts +21 -0
- package/src/import/validators/fields/nestable/Image.ts +77 -0
- package/src/import/validators/fields/nestable/Nestable.ts +60 -26
- package/src/import/validators/fields/nestable/Number.ts +32 -30
- package/src/import/validators/fields/nestable/Select.ts +32 -30
- package/src/import/validators/fields/nestable/Text.ts +6 -6
- package/src/import/validators/fields/nestable/Timestamp.ts +29 -26
- package/src/import/validators/fields/nestable/index.ts +4 -0
- package/src/utils/Objects.ts +10 -0
- package/src/validators/BasicTypes.ts +48 -0
- package/src/validators/DefaultOrElse.ts +24 -0
- package/src/validators/NumberRange.ts +51 -0
- package/src/validators/function.ts +44 -0
- package/src/validators/index.ts +2 -1
- package/lib/import/converters/fields/utils.d.ts +0 -1
- package/lib/import/converters/fields/utils.js +0 -10
- package/lib/validators/NullOrT.d.ts +0 -2
- package/lib/validators/NullOrT.js +0 -13
- package/src/import/converters/fields/utils.ts +0 -7
- package/src/validators/NullOrT.ts +0 -18
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type Asset = {
|
|
2
|
+
id: string;
|
|
3
|
+
last_modified: string;
|
|
4
|
+
kind: "image" | "all";
|
|
5
|
+
filename?: string;
|
|
6
|
+
extension?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
origin_url: string;
|
|
9
|
+
url: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
notes?: string;
|
|
13
|
+
credits?: string;
|
|
14
|
+
alt?: string;
|
|
15
|
+
};
|
package/lib/common/index.d.ts
CHANGED
package/lib/common/index.js
CHANGED
|
@@ -281,7 +281,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
281
281
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
282
282
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
283
283
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
284
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
284
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
285
285
|
content: t.IntersectionC<[t.TypeC<{
|
|
286
286
|
text: t.StringC;
|
|
287
287
|
}>, t.PartialC<{
|
|
@@ -290,13 +290,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
290
290
|
} & {
|
|
291
291
|
start: number;
|
|
292
292
|
end: number;
|
|
293
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
293
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
294
294
|
})[], ({
|
|
295
295
|
data?: unknown;
|
|
296
296
|
} & {
|
|
297
297
|
start: number;
|
|
298
298
|
end: number;
|
|
299
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
299
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
300
300
|
})[], unknown>;
|
|
301
301
|
}>]>;
|
|
302
302
|
}>, t.PartialC<{
|
|
@@ -583,7 +583,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
583
583
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
584
584
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
585
585
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
586
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
586
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
587
587
|
content: t.IntersectionC<[t.TypeC<{
|
|
588
588
|
text: t.StringC;
|
|
589
589
|
}>, t.PartialC<{
|
|
@@ -592,13 +592,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
592
592
|
} & {
|
|
593
593
|
start: number;
|
|
594
594
|
end: number;
|
|
595
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
595
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
596
596
|
})[], ({
|
|
597
597
|
data?: unknown;
|
|
598
598
|
} & {
|
|
599
599
|
start: number;
|
|
600
600
|
end: number;
|
|
601
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
601
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
602
602
|
})[], unknown>;
|
|
603
603
|
}>]>;
|
|
604
604
|
}>, t.PartialC<{
|
|
@@ -894,7 +894,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
894
894
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
895
895
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
896
896
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
897
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
897
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
898
898
|
content: t.IntersectionC<[t.TypeC<{
|
|
899
899
|
text: t.StringC;
|
|
900
900
|
}>, t.PartialC<{
|
|
@@ -903,13 +903,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
903
903
|
} & {
|
|
904
904
|
start: number;
|
|
905
905
|
end: number;
|
|
906
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
906
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
907
907
|
})[], ({
|
|
908
908
|
data?: unknown;
|
|
909
909
|
} & {
|
|
910
910
|
start: number;
|
|
911
911
|
end: number;
|
|
912
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
912
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
913
913
|
})[], unknown>;
|
|
914
914
|
}>]>;
|
|
915
915
|
}>, t.PartialC<{
|
|
@@ -1197,7 +1197,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1197
1197
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1198
1198
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1199
1199
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1200
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1200
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
1201
1201
|
content: t.IntersectionC<[t.TypeC<{
|
|
1202
1202
|
text: t.StringC;
|
|
1203
1203
|
}>, t.PartialC<{
|
|
@@ -1206,13 +1206,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1206
1206
|
} & {
|
|
1207
1207
|
start: number;
|
|
1208
1208
|
end: number;
|
|
1209
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1209
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1210
1210
|
})[], ({
|
|
1211
1211
|
data?: unknown;
|
|
1212
1212
|
} & {
|
|
1213
1213
|
start: number;
|
|
1214
1214
|
end: number;
|
|
1215
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1215
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1216
1216
|
})[], unknown>;
|
|
1217
1217
|
}>]>;
|
|
1218
1218
|
}>, t.PartialC<{
|
|
@@ -1502,7 +1502,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1502
1502
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1503
1503
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1504
1504
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1505
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1505
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
1506
1506
|
content: t.IntersectionC<[t.TypeC<{
|
|
1507
1507
|
text: t.StringC;
|
|
1508
1508
|
}>, t.PartialC<{
|
|
@@ -1511,13 +1511,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1511
1511
|
} & {
|
|
1512
1512
|
start: number;
|
|
1513
1513
|
end: number;
|
|
1514
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1514
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1515
1515
|
})[], ({
|
|
1516
1516
|
data?: unknown;
|
|
1517
1517
|
} & {
|
|
1518
1518
|
start: number;
|
|
1519
1519
|
end: number;
|
|
1520
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1520
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1521
1521
|
})[], unknown>;
|
|
1522
1522
|
}>]>;
|
|
1523
1523
|
}>, t.PartialC<{
|
|
@@ -1805,7 +1805,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1805
1805
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1806
1806
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1807
1807
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1808
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1808
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
1809
1809
|
content: t.IntersectionC<[t.TypeC<{
|
|
1810
1810
|
text: t.StringC;
|
|
1811
1811
|
}>, t.PartialC<{
|
|
@@ -1814,13 +1814,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1814
1814
|
} & {
|
|
1815
1815
|
start: number;
|
|
1816
1816
|
end: number;
|
|
1817
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1817
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1818
1818
|
})[], ({
|
|
1819
1819
|
data?: unknown;
|
|
1820
1820
|
} & {
|
|
1821
1821
|
start: number;
|
|
1822
1822
|
end: number;
|
|
1823
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1823
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1824
1824
|
})[], unknown>;
|
|
1825
1825
|
}>]>;
|
|
1826
1826
|
}>, t.PartialC<{
|
|
@@ -2107,7 +2107,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2107
2107
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2108
2108
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2109
2109
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2110
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2110
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
2111
2111
|
content: t.IntersectionC<[t.TypeC<{
|
|
2112
2112
|
text: t.StringC;
|
|
2113
2113
|
}>, t.PartialC<{
|
|
@@ -2116,13 +2116,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2116
2116
|
} & {
|
|
2117
2117
|
start: number;
|
|
2118
2118
|
end: number;
|
|
2119
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2119
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2120
2120
|
})[], ({
|
|
2121
2121
|
data?: unknown;
|
|
2122
2122
|
} & {
|
|
2123
2123
|
start: number;
|
|
2124
2124
|
end: number;
|
|
2125
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2125
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2126
2126
|
})[], unknown>;
|
|
2127
2127
|
}>]>;
|
|
2128
2128
|
}>, t.PartialC<{
|
|
@@ -2411,7 +2411,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2411
2411
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2412
2412
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2413
2413
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2414
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2414
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
2415
2415
|
content: t.IntersectionC<[t.TypeC<{
|
|
2416
2416
|
text: t.StringC;
|
|
2417
2417
|
}>, t.PartialC<{
|
|
@@ -2420,13 +2420,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2420
2420
|
} & {
|
|
2421
2421
|
start: number;
|
|
2422
2422
|
end: number;
|
|
2423
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2423
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2424
2424
|
})[], ({
|
|
2425
2425
|
data?: unknown;
|
|
2426
2426
|
} & {
|
|
2427
2427
|
start: number;
|
|
2428
2428
|
end: number;
|
|
2429
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2429
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2430
2430
|
})[], unknown>;
|
|
2431
2431
|
}>]>;
|
|
2432
2432
|
}>, t.PartialC<{
|
|
@@ -2703,7 +2703,7 @@ export declare const DocumentLegacy: {
|
|
|
2703
2703
|
label?: string | null | undefined;
|
|
2704
2704
|
direction?: string | null | undefined;
|
|
2705
2705
|
}) | ({
|
|
2706
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2706
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2707
2707
|
content: {
|
|
2708
2708
|
text: string;
|
|
2709
2709
|
} & {
|
|
@@ -2712,7 +2712,7 @@ export declare const DocumentLegacy: {
|
|
|
2712
2712
|
} & {
|
|
2713
2713
|
start: number;
|
|
2714
2714
|
end: number;
|
|
2715
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2715
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2716
2716
|
})[];
|
|
2717
2717
|
};
|
|
2718
2718
|
} & {
|
|
@@ -2973,7 +2973,7 @@ export declare const DocumentLegacy: {
|
|
|
2973
2973
|
label?: string | null | undefined;
|
|
2974
2974
|
direction?: string | null | undefined;
|
|
2975
2975
|
}) | ({
|
|
2976
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2976
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2977
2977
|
content: {
|
|
2978
2978
|
text: string;
|
|
2979
2979
|
} & {
|
|
@@ -2982,7 +2982,7 @@ export declare const DocumentLegacy: {
|
|
|
2982
2982
|
} & {
|
|
2983
2983
|
start: number;
|
|
2984
2984
|
end: number;
|
|
2985
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
2985
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2986
2986
|
})[];
|
|
2987
2987
|
};
|
|
2988
2988
|
} & {
|
|
@@ -3247,7 +3247,7 @@ export declare const DocumentLegacy: {
|
|
|
3247
3247
|
label?: string | null | undefined;
|
|
3248
3248
|
direction?: string | null | undefined;
|
|
3249
3249
|
}) | ({
|
|
3250
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
3250
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3251
3251
|
content: {
|
|
3252
3252
|
text: string;
|
|
3253
3253
|
} & {
|
|
@@ -3256,7 +3256,7 @@ export declare const DocumentLegacy: {
|
|
|
3256
3256
|
} & {
|
|
3257
3257
|
start: number;
|
|
3258
3258
|
end: number;
|
|
3259
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
3259
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3260
3260
|
})[];
|
|
3261
3261
|
};
|
|
3262
3262
|
} & {
|
|
@@ -3517,7 +3517,7 @@ export declare const DocumentLegacy: {
|
|
|
3517
3517
|
label?: string | null | undefined;
|
|
3518
3518
|
direction?: string | null | undefined;
|
|
3519
3519
|
}) | ({
|
|
3520
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
3520
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3521
3521
|
content: {
|
|
3522
3522
|
text: string;
|
|
3523
3523
|
} & {
|
|
@@ -3526,7 +3526,7 @@ export declare const DocumentLegacy: {
|
|
|
3526
3526
|
} & {
|
|
3527
3527
|
start: number;
|
|
3528
3528
|
end: number;
|
|
3529
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
3529
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3530
3530
|
})[];
|
|
3531
3531
|
};
|
|
3532
3532
|
} & {
|
|
@@ -3788,7 +3788,7 @@ export declare const DocumentLegacy: {
|
|
|
3788
3788
|
label?: string | null | undefined;
|
|
3789
3789
|
direction?: string | null | undefined;
|
|
3790
3790
|
}) | ({
|
|
3791
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
3791
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3792
3792
|
content: {
|
|
3793
3793
|
text: string;
|
|
3794
3794
|
} & {
|
|
@@ -3797,7 +3797,7 @@ export declare const DocumentLegacy: {
|
|
|
3797
3797
|
} & {
|
|
3798
3798
|
start: number;
|
|
3799
3799
|
end: number;
|
|
3800
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
3800
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3801
3801
|
})[];
|
|
3802
3802
|
};
|
|
3803
3803
|
} & {
|
|
@@ -4058,7 +4058,7 @@ export declare const DocumentLegacy: {
|
|
|
4058
4058
|
label?: string | null | undefined;
|
|
4059
4059
|
direction?: string | null | undefined;
|
|
4060
4060
|
}) | ({
|
|
4061
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
4061
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
4062
4062
|
content: {
|
|
4063
4063
|
text: string;
|
|
4064
4064
|
} & {
|
|
@@ -4067,7 +4067,7 @@ export declare const DocumentLegacy: {
|
|
|
4067
4067
|
} & {
|
|
4068
4068
|
start: number;
|
|
4069
4069
|
end: number;
|
|
4070
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
4070
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
4071
4071
|
})[];
|
|
4072
4072
|
};
|
|
4073
4073
|
} & {
|
|
@@ -4330,7 +4330,7 @@ export declare const DocumentLegacy: {
|
|
|
4330
4330
|
label?: string | null | undefined;
|
|
4331
4331
|
direction?: string | null | undefined;
|
|
4332
4332
|
}) | ({
|
|
4333
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
4333
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
4334
4334
|
content: {
|
|
4335
4335
|
text: string;
|
|
4336
4336
|
} & {
|
|
@@ -4339,7 +4339,7 @@ export declare const DocumentLegacy: {
|
|
|
4339
4339
|
} & {
|
|
4340
4340
|
start: number;
|
|
4341
4341
|
end: number;
|
|
4342
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
4342
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
4343
4343
|
})[];
|
|
4344
4344
|
};
|
|
4345
4345
|
} & {
|
|
@@ -4600,7 +4600,7 @@ export declare const DocumentLegacy: {
|
|
|
4600
4600
|
label?: string | null | undefined;
|
|
4601
4601
|
direction?: string | null | undefined;
|
|
4602
4602
|
}) | ({
|
|
4603
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
4603
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
4604
4604
|
content: {
|
|
4605
4605
|
text: string;
|
|
4606
4606
|
} & {
|
|
@@ -4609,7 +4609,7 @@ export declare const DocumentLegacy: {
|
|
|
4609
4609
|
} & {
|
|
4610
4610
|
start: number;
|
|
4611
4611
|
end: number;
|
|
4612
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
4612
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
4613
4613
|
})[];
|
|
4614
4614
|
};
|
|
4615
4615
|
} & {
|
|
@@ -279,7 +279,7 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
|
|
|
279
279
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
280
280
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
281
281
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
282
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
282
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
283
283
|
content: t.IntersectionC<[t.TypeC<{
|
|
284
284
|
text: t.StringC;
|
|
285
285
|
}>, t.PartialC<{
|
|
@@ -288,13 +288,13 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
|
|
|
288
288
|
} & {
|
|
289
289
|
start: number;
|
|
290
290
|
end: number;
|
|
291
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
291
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
292
292
|
})[], ({
|
|
293
293
|
data?: unknown;
|
|
294
294
|
} & {
|
|
295
295
|
start: number;
|
|
296
296
|
end: number;
|
|
297
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
297
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
298
298
|
})[], unknown>;
|
|
299
299
|
}>]>;
|
|
300
300
|
}>, t.PartialC<{
|
|
@@ -558,7 +558,7 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
558
558
|
label?: string | null | undefined;
|
|
559
559
|
direction?: string | null | undefined;
|
|
560
560
|
}) | ({
|
|
561
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
561
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
562
562
|
content: {
|
|
563
563
|
text: string;
|
|
564
564
|
} & {
|
|
@@ -567,7 +567,7 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
567
567
|
} & {
|
|
568
568
|
start: number;
|
|
569
569
|
end: number;
|
|
570
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
570
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
571
571
|
})[];
|
|
572
572
|
};
|
|
573
573
|
} & {
|
|
@@ -833,7 +833,7 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
833
833
|
label?: string | null | undefined;
|
|
834
834
|
direction?: string | null | undefined;
|
|
835
835
|
}) | ({
|
|
836
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
836
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
837
837
|
content: {
|
|
838
838
|
text: string;
|
|
839
839
|
} & {
|
|
@@ -842,7 +842,7 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
842
842
|
} & {
|
|
843
843
|
start: number;
|
|
844
844
|
end: number;
|
|
845
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
845
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
846
846
|
})[];
|
|
847
847
|
};
|
|
848
848
|
} & {
|
|
@@ -1107,7 +1107,7 @@ export declare const isGroupContent: (u: unknown) => u is {
|
|
|
1107
1107
|
label?: string | null | undefined;
|
|
1108
1108
|
direction?: string | null | undefined;
|
|
1109
1109
|
}) | ({
|
|
1110
|
-
type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1110
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1111
1111
|
content: {
|
|
1112
1112
|
text: string;
|
|
1113
1113
|
} & {
|
|
@@ -1116,7 +1116,7 @@ export declare const isGroupContent: (u: unknown) => u is {
|
|
|
1116
1116
|
} & {
|
|
1117
1117
|
start: number;
|
|
1118
1118
|
end: number;
|
|
1119
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1119
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1120
1120
|
})[];
|
|
1121
1121
|
};
|
|
1122
1122
|
} & {
|
|
@@ -1408,7 +1408,7 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
|
|
|
1408
1408
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1409
1409
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1410
1410
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1411
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1411
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
1412
1412
|
content: t.IntersectionC<[t.TypeC<{
|
|
1413
1413
|
text: t.StringC;
|
|
1414
1414
|
}>, t.PartialC<{
|
|
@@ -1417,13 +1417,13 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
|
|
|
1417
1417
|
} & {
|
|
1418
1418
|
start: number;
|
|
1419
1419
|
end: number;
|
|
1420
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1420
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1421
1421
|
})[], ({
|
|
1422
1422
|
data?: unknown;
|
|
1423
1423
|
} & {
|
|
1424
1424
|
start: number;
|
|
1425
1425
|
end: number;
|
|
1426
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "
|
|
1426
|
+
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1427
1427
|
})[], unknown>;
|
|
1428
1428
|
}>]>;
|
|
1429
1429
|
}>, t.PartialC<{
|
|
@@ -48,16 +48,23 @@ const GroupItemLegacy = (ctx) => {
|
|
|
48
48
|
};
|
|
49
49
|
exports.GroupItemLegacy = GroupItemLegacy;
|
|
50
50
|
const GroupLegacy = (ctx) => {
|
|
51
|
-
const
|
|
51
|
+
const codecDecode = t.array(t.union([t.null, (0, exports.GroupItemLegacy)(ctx)]));
|
|
52
|
+
const codecEncode = t.array((0, exports.GroupItemLegacy)(ctx));
|
|
52
53
|
return new t.Type("GroupLegacy", exports.isGroupContent, (items) => {
|
|
53
|
-
return (0, function_1.pipe)(
|
|
54
|
+
return (0, function_1.pipe)(codecDecode.decode(items), fp_ts_1.either.map((parsedItems) => {
|
|
54
55
|
return {
|
|
55
|
-
value: parsedItems
|
|
56
|
+
value: parsedItems.map((i) => {
|
|
57
|
+
if (i === null) {
|
|
58
|
+
return { __TYPE__: exports.GroupItemContentType, value: [] };
|
|
59
|
+
}
|
|
60
|
+
else
|
|
61
|
+
return i;
|
|
62
|
+
}),
|
|
56
63
|
__TYPE__: exports.GroupContentType,
|
|
57
64
|
};
|
|
58
65
|
}));
|
|
59
66
|
}, (g) => {
|
|
60
|
-
const res =
|
|
67
|
+
const res = codecEncode.encode(g.value);
|
|
61
68
|
return {
|
|
62
69
|
content: res.map((block) => block.content),
|
|
63
70
|
types: res.reduce((acc, block) => {
|