@prismicio/types-internal 2.8.0 → 2.9.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/_internal/utils.d.ts +3 -2
- package/lib/content/Document.d.ts +1369 -61
- package/lib/content/LegacyContentCtx.d.ts +15 -0
- package/lib/content/fields/RepeatableContent.d.ts +236 -0
- package/lib/content/fields/RepeatableContent.js +97 -0
- package/lib/content/fields/WidgetContent.d.ts +1369 -61
- package/lib/content/fields/nestable/LinkContent.d.ts +23 -0
- package/lib/content/fields/nestable/LinkContent.js +23 -0
- package/lib/content/fields/nestable/NestableContent.d.ts +220 -2
- package/lib/content/fields/nestable/NestableContent.js +21 -2
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +66 -66
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +438 -2
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +74 -0
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +440 -4
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +220 -2
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +221 -3
- package/lib/content/fields/slices/Slice/index.d.ts +735 -5
- package/lib/content/fields/slices/SliceItem.d.ts +734 -4
- package/lib/content/fields/slices/SlicesContent.d.ts +1098 -8
- package/lib/customtypes/CustomType.d.ts +18 -0
- package/lib/customtypes/Section.d.ts +18 -0
- package/lib/customtypes/diff/SharedSlice.d.ts +8 -0
- package/lib/customtypes/diff/Variation.d.ts +8 -0
- package/lib/customtypes/widgets/Group.d.ts +6 -0
- package/lib/customtypes/widgets/Widget.d.ts +36 -0
- package/lib/customtypes/widgets/Widget.js +15 -0
- package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
- package/lib/customtypes/widgets/nestable/Link.js +5 -1
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +3 -1
- package/lib/customtypes/widgets/nestable/NestableWidget.js +18 -1
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +6 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +28 -0
- package/package.json +1 -1
- package/src/_internal/utils.ts +3 -1
- package/src/content/fields/RepeatableContent.ts +156 -0
- package/src/content/fields/nestable/LinkContent.ts +24 -0
- package/src/content/fields/nestable/NestableContent.ts +28 -3
- package/src/customtypes/widgets/Widget.ts +15 -0
- package/src/customtypes/widgets/nestable/Link.ts +5 -1
- package/src/customtypes/widgets/nestable/NestableWidget.ts +34 -16
|
@@ -425,6 +425,80 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
425
425
|
}>]>>]>>;
|
|
426
426
|
}>>, t.ExactC<t.TypeC<{
|
|
427
427
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
428
|
+
}>>, t.ExactC<t.TypeC<{
|
|
429
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
430
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
431
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
432
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
433
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
434
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
435
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
436
|
+
kind: t.StringC;
|
|
437
|
+
id: t.StringC;
|
|
438
|
+
url: t.StringC;
|
|
439
|
+
height: t.StringC;
|
|
440
|
+
width: t.StringC;
|
|
441
|
+
size: t.StringC;
|
|
442
|
+
name: t.StringC;
|
|
443
|
+
}>>, t.ExactC<t.PartialC<{
|
|
444
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
445
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
446
|
+
text: t.StringC;
|
|
447
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
448
|
+
kind: t.LiteralC<"image">;
|
|
449
|
+
text: t.StringC;
|
|
450
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
451
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
452
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
453
|
+
kind: t.StringC;
|
|
454
|
+
id: t.StringC;
|
|
455
|
+
url: t.StringC;
|
|
456
|
+
name: t.StringC;
|
|
457
|
+
size: t.StringC;
|
|
458
|
+
}>, t.PartialC<{
|
|
459
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
460
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
461
|
+
text: t.StringC;
|
|
462
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
463
|
+
kind: t.LiteralC<"file">;
|
|
464
|
+
text: t.StringC;
|
|
465
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
466
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
467
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
468
|
+
id: t.Type<string, string, unknown>;
|
|
469
|
+
}>>, t.ExactC<t.PartialC<{
|
|
470
|
+
text: t.StringC;
|
|
471
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
472
|
+
kind: t.LiteralC<"document">;
|
|
473
|
+
text: t.StringC;
|
|
474
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
475
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
476
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
477
|
+
url: t.StringC;
|
|
478
|
+
}>, t.PartialC<{
|
|
479
|
+
kind: t.LiteralC<"web">;
|
|
480
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
481
|
+
preview: t.UnionC<[t.Type<{
|
|
482
|
+
title?: string;
|
|
483
|
+
}, {
|
|
484
|
+
title?: string;
|
|
485
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
486
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
487
|
+
text: t.StringC;
|
|
488
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
489
|
+
kind: t.LiteralC<"web">;
|
|
490
|
+
text: t.StringC;
|
|
491
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
492
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
493
|
+
}>>, t.ExactC<t.TypeC<{
|
|
494
|
+
kind: t.LiteralC<"media">;
|
|
495
|
+
text: t.StringC;
|
|
496
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
497
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
498
|
+
}>>, t.ExactC<t.TypeC<{
|
|
499
|
+
text: t.StringC;
|
|
500
|
+
}>>]>]>;
|
|
501
|
+
}>>>;
|
|
428
502
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
|
|
429
503
|
export declare type SimpleSliceContent = t.TypeOf<typeof SimpleSliceContent>;
|
|
430
504
|
export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
@@ -608,6 +682,78 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
608
682
|
text: string;
|
|
609
683
|
});
|
|
610
684
|
} | {
|
|
685
|
+
__TYPE__: "RepeatableContent";
|
|
686
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
687
|
+
value: {
|
|
688
|
+
__TYPE__: "LinkContent";
|
|
689
|
+
value: ({
|
|
690
|
+
__TYPE__: "ImageLink";
|
|
691
|
+
} & (({
|
|
692
|
+
kind: string;
|
|
693
|
+
id: string;
|
|
694
|
+
url: string;
|
|
695
|
+
height: string;
|
|
696
|
+
width: string;
|
|
697
|
+
size: string;
|
|
698
|
+
name: string;
|
|
699
|
+
} & {
|
|
700
|
+
date?: string | null | undefined;
|
|
701
|
+
} & {
|
|
702
|
+
text?: string;
|
|
703
|
+
}) | {
|
|
704
|
+
kind: "image";
|
|
705
|
+
text: string;
|
|
706
|
+
})) | ({
|
|
707
|
+
__TYPE__: "FileLink";
|
|
708
|
+
} & (({
|
|
709
|
+
kind: string;
|
|
710
|
+
id: string;
|
|
711
|
+
url: string;
|
|
712
|
+
name: string;
|
|
713
|
+
size: string;
|
|
714
|
+
} & {
|
|
715
|
+
date?: string | null | undefined;
|
|
716
|
+
} & {
|
|
717
|
+
text?: string;
|
|
718
|
+
}) | {
|
|
719
|
+
kind: "file";
|
|
720
|
+
text: string;
|
|
721
|
+
})) | ({
|
|
722
|
+
__TYPE__: "MediaLink";
|
|
723
|
+
} & {
|
|
724
|
+
kind: "media";
|
|
725
|
+
text: string;
|
|
726
|
+
}) | ({
|
|
727
|
+
__TYPE__: "DocumentLink";
|
|
728
|
+
} & (({
|
|
729
|
+
id: string;
|
|
730
|
+
} & {
|
|
731
|
+
text?: string;
|
|
732
|
+
}) | {
|
|
733
|
+
kind: "document";
|
|
734
|
+
text: string;
|
|
735
|
+
})) | ({
|
|
736
|
+
__TYPE__: "ExternalLink";
|
|
737
|
+
} & (({
|
|
738
|
+
url: string;
|
|
739
|
+
} & {
|
|
740
|
+
kind?: "web";
|
|
741
|
+
target?: string | null | undefined;
|
|
742
|
+
preview?: {
|
|
743
|
+
title?: string;
|
|
744
|
+
} | null | undefined;
|
|
745
|
+
} & {
|
|
746
|
+
text?: string;
|
|
747
|
+
}) | {
|
|
748
|
+
kind: "web";
|
|
749
|
+
text: string;
|
|
750
|
+
})) | ({
|
|
751
|
+
__TYPE__: "AnyLink";
|
|
752
|
+
} & {
|
|
753
|
+
text: string;
|
|
754
|
+
});
|
|
755
|
+
}[];
|
|
756
|
+
} | GroupContent | {
|
|
611
757
|
__TYPE__: "StructuredTextContent";
|
|
612
758
|
value: (({
|
|
613
759
|
type: "image";
|
|
@@ -762,9 +908,9 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
762
908
|
}))[];
|
|
763
909
|
} | {
|
|
764
910
|
__TYPE__: "SeparatorContent";
|
|
765
|
-
}
|
|
911
|
+
};
|
|
766
912
|
export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
767
|
-
decode: ((value: unknown) => import("fp-ts/lib/Either").
|
|
913
|
+
decode: ((value: unknown) => import("fp-ts/lib/Either").Right<{
|
|
768
914
|
type: string;
|
|
769
915
|
__TYPE__: "EmptyContent";
|
|
770
916
|
}> | import("fp-ts/lib/Either").Right<{
|
|
@@ -944,6 +1090,78 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
944
1090
|
} & {
|
|
945
1091
|
text: string;
|
|
946
1092
|
});
|
|
1093
|
+
}> | t.Validation<{
|
|
1094
|
+
__TYPE__: "RepeatableContent";
|
|
1095
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
1096
|
+
value: {
|
|
1097
|
+
__TYPE__: "LinkContent";
|
|
1098
|
+
value: ({
|
|
1099
|
+
__TYPE__: "ImageLink";
|
|
1100
|
+
} & (({
|
|
1101
|
+
kind: string;
|
|
1102
|
+
id: string;
|
|
1103
|
+
url: string;
|
|
1104
|
+
height: string;
|
|
1105
|
+
width: string;
|
|
1106
|
+
size: string;
|
|
1107
|
+
name: string;
|
|
1108
|
+
} & {
|
|
1109
|
+
date?: string | null | undefined;
|
|
1110
|
+
} & {
|
|
1111
|
+
text?: string;
|
|
1112
|
+
}) | {
|
|
1113
|
+
kind: "image";
|
|
1114
|
+
text: string;
|
|
1115
|
+
})) | ({
|
|
1116
|
+
__TYPE__: "FileLink";
|
|
1117
|
+
} & (({
|
|
1118
|
+
kind: string;
|
|
1119
|
+
id: string;
|
|
1120
|
+
url: string;
|
|
1121
|
+
name: string;
|
|
1122
|
+
size: string;
|
|
1123
|
+
} & {
|
|
1124
|
+
date?: string | null | undefined;
|
|
1125
|
+
} & {
|
|
1126
|
+
text?: string;
|
|
1127
|
+
}) | {
|
|
1128
|
+
kind: "file";
|
|
1129
|
+
text: string;
|
|
1130
|
+
})) | ({
|
|
1131
|
+
__TYPE__: "MediaLink";
|
|
1132
|
+
} & {
|
|
1133
|
+
kind: "media";
|
|
1134
|
+
text: string;
|
|
1135
|
+
}) | ({
|
|
1136
|
+
__TYPE__: "DocumentLink";
|
|
1137
|
+
} & (({
|
|
1138
|
+
id: string;
|
|
1139
|
+
} & {
|
|
1140
|
+
text?: string;
|
|
1141
|
+
}) | {
|
|
1142
|
+
kind: "document";
|
|
1143
|
+
text: string;
|
|
1144
|
+
})) | ({
|
|
1145
|
+
__TYPE__: "ExternalLink";
|
|
1146
|
+
} & (({
|
|
1147
|
+
url: string;
|
|
1148
|
+
} & {
|
|
1149
|
+
kind?: "web";
|
|
1150
|
+
target?: string | null | undefined;
|
|
1151
|
+
preview?: {
|
|
1152
|
+
title?: string;
|
|
1153
|
+
} | null | undefined;
|
|
1154
|
+
} & {
|
|
1155
|
+
text?: string;
|
|
1156
|
+
}) | {
|
|
1157
|
+
kind: "web";
|
|
1158
|
+
text: string;
|
|
1159
|
+
})) | ({
|
|
1160
|
+
__TYPE__: "AnyLink";
|
|
1161
|
+
} & {
|
|
1162
|
+
text: string;
|
|
1163
|
+
});
|
|
1164
|
+
}[];
|
|
947
1165
|
}> | import("fp-ts/lib/Either").Right<{
|
|
948
1166
|
__TYPE__: "StructuredTextContent";
|
|
949
1167
|
value: (({
|
|
@@ -422,11 +422,85 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
422
422
|
}>]>>]>>;
|
|
423
423
|
}>>, t.ExactC<t.TypeC<{
|
|
424
424
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
425
|
+
}>>, t.ExactC<t.TypeC<{
|
|
426
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
427
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
428
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
429
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
430
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
431
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
432
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
433
|
+
kind: t.StringC;
|
|
434
|
+
id: t.StringC;
|
|
435
|
+
url: t.StringC;
|
|
436
|
+
height: t.StringC;
|
|
437
|
+
width: t.StringC;
|
|
438
|
+
size: t.StringC;
|
|
439
|
+
name: t.StringC;
|
|
440
|
+
}>>, t.ExactC<t.PartialC<{
|
|
441
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
442
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
443
|
+
text: t.StringC;
|
|
444
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
445
|
+
kind: t.LiteralC<"image">;
|
|
446
|
+
text: t.StringC;
|
|
447
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
448
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
449
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
450
|
+
kind: t.StringC;
|
|
451
|
+
id: t.StringC;
|
|
452
|
+
url: t.StringC;
|
|
453
|
+
name: t.StringC;
|
|
454
|
+
size: t.StringC;
|
|
455
|
+
}>, t.PartialC<{
|
|
456
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
457
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
458
|
+
text: t.StringC;
|
|
459
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
460
|
+
kind: t.LiteralC<"file">;
|
|
461
|
+
text: t.StringC;
|
|
462
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
463
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
464
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
465
|
+
id: t.Type<string, string, unknown>;
|
|
466
|
+
}>>, t.ExactC<t.PartialC<{
|
|
467
|
+
text: t.StringC;
|
|
468
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
469
|
+
kind: t.LiteralC<"document">;
|
|
470
|
+
text: t.StringC;
|
|
471
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
472
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
473
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
474
|
+
url: t.StringC;
|
|
475
|
+
}>, t.PartialC<{
|
|
476
|
+
kind: t.LiteralC<"web">;
|
|
477
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
478
|
+
preview: t.UnionC<[t.Type<{
|
|
479
|
+
title?: string;
|
|
480
|
+
}, {
|
|
481
|
+
title?: string;
|
|
482
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
483
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
484
|
+
text: t.StringC;
|
|
485
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
486
|
+
kind: t.LiteralC<"web">;
|
|
487
|
+
text: t.StringC;
|
|
488
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
489
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
490
|
+
}>>, t.ExactC<t.TypeC<{
|
|
491
|
+
kind: t.LiteralC<"media">;
|
|
492
|
+
text: t.StringC;
|
|
493
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
494
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
495
|
+
}>>, t.ExactC<t.TypeC<{
|
|
496
|
+
text: t.StringC;
|
|
497
|
+
}>>]>]>;
|
|
498
|
+
}>>>;
|
|
425
499
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
|
|
426
500
|
export declare type SlicePrimaryContent = t.TypeOf<typeof SlicePrimaryContent>;
|
|
427
501
|
export declare type SlicePrimaryContentType = SlicePrimaryContent["__TYPE__"];
|
|
428
502
|
export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
429
|
-
decode(value: unknown): import("fp-ts/lib/Either").Right<{
|
|
503
|
+
decode(value: unknown): import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
|
|
430
504
|
type: string;
|
|
431
505
|
__TYPE__: "EmptyContent";
|
|
432
506
|
}> | import("fp-ts/lib/Either").Right<{
|
|
@@ -606,6 +680,78 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
606
680
|
} & {
|
|
607
681
|
text: string;
|
|
608
682
|
});
|
|
683
|
+
}> | import("fp-ts/lib/Either").Right<{
|
|
684
|
+
__TYPE__: "RepeatableContent";
|
|
685
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
686
|
+
value: {
|
|
687
|
+
__TYPE__: "LinkContent";
|
|
688
|
+
value: ({
|
|
689
|
+
__TYPE__: "ImageLink";
|
|
690
|
+
} & (({
|
|
691
|
+
kind: string;
|
|
692
|
+
id: string;
|
|
693
|
+
url: string;
|
|
694
|
+
height: string;
|
|
695
|
+
width: string;
|
|
696
|
+
size: string;
|
|
697
|
+
name: string;
|
|
698
|
+
} & {
|
|
699
|
+
date?: string | null | undefined;
|
|
700
|
+
} & {
|
|
701
|
+
text?: string;
|
|
702
|
+
}) | {
|
|
703
|
+
kind: "image";
|
|
704
|
+
text: string;
|
|
705
|
+
})) | ({
|
|
706
|
+
__TYPE__: "FileLink";
|
|
707
|
+
} & (({
|
|
708
|
+
kind: string;
|
|
709
|
+
id: string;
|
|
710
|
+
url: string;
|
|
711
|
+
name: string;
|
|
712
|
+
size: string;
|
|
713
|
+
} & {
|
|
714
|
+
date?: string | null | undefined;
|
|
715
|
+
} & {
|
|
716
|
+
text?: string;
|
|
717
|
+
}) | {
|
|
718
|
+
kind: "file";
|
|
719
|
+
text: string;
|
|
720
|
+
})) | ({
|
|
721
|
+
__TYPE__: "MediaLink";
|
|
722
|
+
} & {
|
|
723
|
+
kind: "media";
|
|
724
|
+
text: string;
|
|
725
|
+
}) | ({
|
|
726
|
+
__TYPE__: "DocumentLink";
|
|
727
|
+
} & (({
|
|
728
|
+
id: string;
|
|
729
|
+
} & {
|
|
730
|
+
text?: string;
|
|
731
|
+
}) | {
|
|
732
|
+
kind: "document";
|
|
733
|
+
text: string;
|
|
734
|
+
})) | ({
|
|
735
|
+
__TYPE__: "ExternalLink";
|
|
736
|
+
} & (({
|
|
737
|
+
url: string;
|
|
738
|
+
} & {
|
|
739
|
+
kind?: "web";
|
|
740
|
+
target?: string | null | undefined;
|
|
741
|
+
preview?: {
|
|
742
|
+
title?: string;
|
|
743
|
+
} | null | undefined;
|
|
744
|
+
} & {
|
|
745
|
+
text?: string;
|
|
746
|
+
}) | {
|
|
747
|
+
kind: "web";
|
|
748
|
+
text: string;
|
|
749
|
+
})) | ({
|
|
750
|
+
__TYPE__: "AnyLink";
|
|
751
|
+
} & {
|
|
752
|
+
text: string;
|
|
753
|
+
});
|
|
754
|
+
}[];
|
|
609
755
|
}> | import("fp-ts/lib/Either").Right<{
|
|
610
756
|
__TYPE__: "StructuredTextContent";
|
|
611
757
|
value: (({
|
|
@@ -761,7 +907,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
761
907
|
}))[];
|
|
762
908
|
}> | import("fp-ts/lib/Either").Right<{
|
|
763
909
|
__TYPE__: "SeparatorContent";
|
|
764
|
-
}> |
|
|
910
|
+
}> | import("fp-ts/lib/Either").Right<GroupContent> | undefined;
|
|
765
911
|
encode(value: SlicePrimaryContent): import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
|
|
766
912
|
};
|
|
767
913
|
export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
@@ -945,6 +1091,78 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
945
1091
|
text: string;
|
|
946
1092
|
});
|
|
947
1093
|
} | {
|
|
1094
|
+
__TYPE__: "RepeatableContent";
|
|
1095
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
1096
|
+
value: {
|
|
1097
|
+
__TYPE__: "LinkContent";
|
|
1098
|
+
value: ({
|
|
1099
|
+
__TYPE__: "ImageLink";
|
|
1100
|
+
} & (({
|
|
1101
|
+
kind: string;
|
|
1102
|
+
id: string;
|
|
1103
|
+
url: string;
|
|
1104
|
+
height: string;
|
|
1105
|
+
width: string;
|
|
1106
|
+
size: string;
|
|
1107
|
+
name: string;
|
|
1108
|
+
} & {
|
|
1109
|
+
date?: string | null | undefined;
|
|
1110
|
+
} & {
|
|
1111
|
+
text?: string;
|
|
1112
|
+
}) | {
|
|
1113
|
+
kind: "image";
|
|
1114
|
+
text: string;
|
|
1115
|
+
})) | ({
|
|
1116
|
+
__TYPE__: "FileLink";
|
|
1117
|
+
} & (({
|
|
1118
|
+
kind: string;
|
|
1119
|
+
id: string;
|
|
1120
|
+
url: string;
|
|
1121
|
+
name: string;
|
|
1122
|
+
size: string;
|
|
1123
|
+
} & {
|
|
1124
|
+
date?: string | null | undefined;
|
|
1125
|
+
} & {
|
|
1126
|
+
text?: string;
|
|
1127
|
+
}) | {
|
|
1128
|
+
kind: "file";
|
|
1129
|
+
text: string;
|
|
1130
|
+
})) | ({
|
|
1131
|
+
__TYPE__: "MediaLink";
|
|
1132
|
+
} & {
|
|
1133
|
+
kind: "media";
|
|
1134
|
+
text: string;
|
|
1135
|
+
}) | ({
|
|
1136
|
+
__TYPE__: "DocumentLink";
|
|
1137
|
+
} & (({
|
|
1138
|
+
id: string;
|
|
1139
|
+
} & {
|
|
1140
|
+
text?: string;
|
|
1141
|
+
}) | {
|
|
1142
|
+
kind: "document";
|
|
1143
|
+
text: string;
|
|
1144
|
+
})) | ({
|
|
1145
|
+
__TYPE__: "ExternalLink";
|
|
1146
|
+
} & (({
|
|
1147
|
+
url: string;
|
|
1148
|
+
} & {
|
|
1149
|
+
kind?: "web";
|
|
1150
|
+
target?: string | null | undefined;
|
|
1151
|
+
preview?: {
|
|
1152
|
+
title?: string;
|
|
1153
|
+
} | null | undefined;
|
|
1154
|
+
} & {
|
|
1155
|
+
text?: string;
|
|
1156
|
+
}) | {
|
|
1157
|
+
kind: "web";
|
|
1158
|
+
text: string;
|
|
1159
|
+
})) | ({
|
|
1160
|
+
__TYPE__: "AnyLink";
|
|
1161
|
+
} & {
|
|
1162
|
+
text: string;
|
|
1163
|
+
});
|
|
1164
|
+
}[];
|
|
1165
|
+
} | GroupContent | {
|
|
948
1166
|
__TYPE__: "StructuredTextContent";
|
|
949
1167
|
value: (({
|
|
950
1168
|
type: "image";
|
|
@@ -1099,4 +1317,4 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1099
1317
|
}))[];
|
|
1100
1318
|
} | {
|
|
1101
1319
|
__TYPE__: "SeparatorContent";
|
|
1102
|
-
}
|
|
1320
|
+
};
|