@prismicio/types-internal 3.2.0-alpha.3 → 3.3.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/content/Document.d.ts +216 -0
- package/lib/content/fields/WidgetContent.d.ts +216 -0
- package/lib/content/fields/nestable/LinkContent.d.ts +48 -0
- package/lib/content/fields/nestable/LinkContent.js +6 -0
- package/lib/content/fields/nestable/NestableContent.d.ts +36 -0
- package/lib/content/fields/nestable/RepeatableContent.d.ts +12 -0
- package/lib/content/fields/nestable/RepeatableContent.js +1 -8
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +72 -0
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +12 -0
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +72 -0
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +36 -0
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +36 -0
- package/lib/content/fields/slices/Slice/index.d.ts +120 -0
- package/lib/content/fields/slices/SliceItem.d.ts +120 -0
- package/lib/content/fields/slices/SlicesContent.d.ts +180 -0
- package/lib/customtypes/CustomType.d.ts +72 -0
- package/lib/customtypes/Section.d.ts +72 -0
- package/lib/customtypes/diff/SharedSlice.d.ts +32 -0
- package/lib/customtypes/diff/Variation.d.ts +32 -0
- package/lib/customtypes/widgets/Group.d.ts +24 -0
- package/lib/customtypes/widgets/Widget.d.ts +84 -0
- package/lib/customtypes/widgets/nestable/Link.d.ts +8 -0
- package/lib/customtypes/widgets/nestable/Link.js +4 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +4 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +8 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +8 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +32 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +24 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +112 -0
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +6 -0
- package/src/content/fields/nestable/RepeatableContent.ts +1 -10
- package/src/customtypes/widgets/nestable/Link.ts +5 -0
|
@@ -134,6 +134,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
134
134
|
kind: t.LiteralC<"image">;
|
|
135
135
|
}>>]>, t.ExactC<t.PartialC<{
|
|
136
136
|
text: t.StringC;
|
|
137
|
+
variant: t.StringC;
|
|
137
138
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
138
139
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
139
140
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -148,6 +149,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
148
149
|
kind: t.LiteralC<"file">;
|
|
149
150
|
}>>]>, t.ExactC<t.PartialC<{
|
|
150
151
|
text: t.StringC;
|
|
152
|
+
variant: t.StringC;
|
|
151
153
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
152
154
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
153
155
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -156,6 +158,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
156
158
|
kind: t.LiteralC<"document">;
|
|
157
159
|
}>>]>, t.ExactC<t.PartialC<{
|
|
158
160
|
text: t.StringC;
|
|
161
|
+
variant: t.StringC;
|
|
159
162
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
160
163
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
161
164
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -172,18 +175,21 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
172
175
|
kind: t.LiteralC<"web">;
|
|
173
176
|
}>>]>, t.ExactC<t.PartialC<{
|
|
174
177
|
text: t.StringC;
|
|
178
|
+
variant: t.StringC;
|
|
175
179
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
176
180
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
177
181
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
178
182
|
kind: t.LiteralC<"media">;
|
|
179
183
|
}>>, t.ExactC<t.PartialC<{
|
|
180
184
|
text: t.StringC;
|
|
185
|
+
variant: t.StringC;
|
|
181
186
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
182
187
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
183
188
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
184
189
|
kind: t.LiteralC<"any">;
|
|
185
190
|
}>, t.PartialC<{
|
|
186
191
|
text: t.StringC;
|
|
192
|
+
variant: t.StringC;
|
|
187
193
|
}>]>>]>]>;
|
|
188
194
|
}>>]>, t.ExactC<t.TypeC<{
|
|
189
195
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -449,6 +455,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
449
455
|
kind: t.LiteralC<"image">;
|
|
450
456
|
}>>]>, t.ExactC<t.PartialC<{
|
|
451
457
|
text: t.StringC;
|
|
458
|
+
variant: t.StringC;
|
|
452
459
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
453
460
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
454
461
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -463,6 +470,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
463
470
|
kind: t.LiteralC<"file">;
|
|
464
471
|
}>>]>, t.ExactC<t.PartialC<{
|
|
465
472
|
text: t.StringC;
|
|
473
|
+
variant: t.StringC;
|
|
466
474
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
467
475
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
468
476
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -471,6 +479,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
471
479
|
kind: t.LiteralC<"document">;
|
|
472
480
|
}>>]>, t.ExactC<t.PartialC<{
|
|
473
481
|
text: t.StringC;
|
|
482
|
+
variant: t.StringC;
|
|
474
483
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
475
484
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
476
485
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -487,18 +496,21 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
487
496
|
kind: t.LiteralC<"web">;
|
|
488
497
|
}>>]>, t.ExactC<t.PartialC<{
|
|
489
498
|
text: t.StringC;
|
|
499
|
+
variant: t.StringC;
|
|
490
500
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
491
501
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
492
502
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
493
503
|
kind: t.LiteralC<"media">;
|
|
494
504
|
}>>, t.ExactC<t.PartialC<{
|
|
495
505
|
text: t.StringC;
|
|
506
|
+
variant: t.StringC;
|
|
496
507
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
497
508
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
498
509
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
499
510
|
kind: t.LiteralC<"any">;
|
|
500
511
|
}>, t.PartialC<{
|
|
501
512
|
text: t.StringC;
|
|
513
|
+
variant: t.StringC;
|
|
502
514
|
}>]>>]>]>;
|
|
503
515
|
}>>]>>;
|
|
504
516
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
|
|
@@ -635,6 +647,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
635
647
|
kind: "image";
|
|
636
648
|
}) & {
|
|
637
649
|
text?: string;
|
|
650
|
+
variant?: string;
|
|
638
651
|
})) | ({
|
|
639
652
|
__TYPE__: "FileLink";
|
|
640
653
|
} & ((({
|
|
@@ -649,12 +662,14 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
649
662
|
kind: "file";
|
|
650
663
|
}) & {
|
|
651
664
|
text?: string;
|
|
665
|
+
variant?: string;
|
|
652
666
|
})) | ({
|
|
653
667
|
__TYPE__: "MediaLink";
|
|
654
668
|
} & {
|
|
655
669
|
kind: "media";
|
|
656
670
|
} & {
|
|
657
671
|
text?: string;
|
|
672
|
+
variant?: string;
|
|
658
673
|
}) | ({
|
|
659
674
|
__TYPE__: "DocumentLink";
|
|
660
675
|
} & (({
|
|
@@ -663,6 +678,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
663
678
|
kind: "document";
|
|
664
679
|
}) & {
|
|
665
680
|
text?: string;
|
|
681
|
+
variant?: string;
|
|
666
682
|
})) | ({
|
|
667
683
|
__TYPE__: "ExternalLink";
|
|
668
684
|
} & ((({
|
|
@@ -677,12 +693,14 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
677
693
|
kind: "web";
|
|
678
694
|
}) & {
|
|
679
695
|
text?: string;
|
|
696
|
+
variant?: string;
|
|
680
697
|
})) | ({
|
|
681
698
|
__TYPE__: "AnyLink";
|
|
682
699
|
} & {
|
|
683
700
|
kind: "any";
|
|
684
701
|
} & {
|
|
685
702
|
text?: string;
|
|
703
|
+
variant?: string;
|
|
686
704
|
});
|
|
687
705
|
}) | {
|
|
688
706
|
__TYPE__: "RepeatableContent";
|
|
@@ -707,6 +725,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
707
725
|
kind: "image";
|
|
708
726
|
}) & {
|
|
709
727
|
text?: string;
|
|
728
|
+
variant?: string;
|
|
710
729
|
})) | ({
|
|
711
730
|
__TYPE__: "FileLink";
|
|
712
731
|
} & ((({
|
|
@@ -721,12 +740,14 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
721
740
|
kind: "file";
|
|
722
741
|
}) & {
|
|
723
742
|
text?: string;
|
|
743
|
+
variant?: string;
|
|
724
744
|
})) | ({
|
|
725
745
|
__TYPE__: "MediaLink";
|
|
726
746
|
} & {
|
|
727
747
|
kind: "media";
|
|
728
748
|
} & {
|
|
729
749
|
text?: string;
|
|
750
|
+
variant?: string;
|
|
730
751
|
}) | ({
|
|
731
752
|
__TYPE__: "DocumentLink";
|
|
732
753
|
} & (({
|
|
@@ -735,6 +756,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
735
756
|
kind: "document";
|
|
736
757
|
}) & {
|
|
737
758
|
text?: string;
|
|
759
|
+
variant?: string;
|
|
738
760
|
})) | ({
|
|
739
761
|
__TYPE__: "ExternalLink";
|
|
740
762
|
} & ((({
|
|
@@ -749,12 +771,14 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
749
771
|
kind: "web";
|
|
750
772
|
}) & {
|
|
751
773
|
text?: string;
|
|
774
|
+
variant?: string;
|
|
752
775
|
})) | ({
|
|
753
776
|
__TYPE__: "AnyLink";
|
|
754
777
|
} & {
|
|
755
778
|
kind: "any";
|
|
756
779
|
} & {
|
|
757
780
|
text?: string;
|
|
781
|
+
variant?: string;
|
|
758
782
|
});
|
|
759
783
|
})[];
|
|
760
784
|
} | GroupContent | {
|
|
@@ -1046,6 +1070,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1046
1070
|
kind: "image";
|
|
1047
1071
|
}) & {
|
|
1048
1072
|
text?: string;
|
|
1073
|
+
variant?: string;
|
|
1049
1074
|
})) | ({
|
|
1050
1075
|
__TYPE__: "FileLink";
|
|
1051
1076
|
} & ((({
|
|
@@ -1060,12 +1085,14 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1060
1085
|
kind: "file";
|
|
1061
1086
|
}) & {
|
|
1062
1087
|
text?: string;
|
|
1088
|
+
variant?: string;
|
|
1063
1089
|
})) | ({
|
|
1064
1090
|
__TYPE__: "MediaLink";
|
|
1065
1091
|
} & {
|
|
1066
1092
|
kind: "media";
|
|
1067
1093
|
} & {
|
|
1068
1094
|
text?: string;
|
|
1095
|
+
variant?: string;
|
|
1069
1096
|
}) | ({
|
|
1070
1097
|
__TYPE__: "DocumentLink";
|
|
1071
1098
|
} & (({
|
|
@@ -1074,6 +1101,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1074
1101
|
kind: "document";
|
|
1075
1102
|
}) & {
|
|
1076
1103
|
text?: string;
|
|
1104
|
+
variant?: string;
|
|
1077
1105
|
})) | ({
|
|
1078
1106
|
__TYPE__: "ExternalLink";
|
|
1079
1107
|
} & ((({
|
|
@@ -1088,12 +1116,14 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1088
1116
|
kind: "web";
|
|
1089
1117
|
}) & {
|
|
1090
1118
|
text?: string;
|
|
1119
|
+
variant?: string;
|
|
1091
1120
|
})) | ({
|
|
1092
1121
|
__TYPE__: "AnyLink";
|
|
1093
1122
|
} & {
|
|
1094
1123
|
kind: "any";
|
|
1095
1124
|
} & {
|
|
1096
1125
|
text?: string;
|
|
1126
|
+
variant?: string;
|
|
1097
1127
|
});
|
|
1098
1128
|
}> | import("fp-ts/lib/Either").Right<{
|
|
1099
1129
|
__TYPE__: "RepeatableContent";
|
|
@@ -1118,6 +1148,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1118
1148
|
kind: "image";
|
|
1119
1149
|
}) & {
|
|
1120
1150
|
text?: string;
|
|
1151
|
+
variant?: string;
|
|
1121
1152
|
})) | ({
|
|
1122
1153
|
__TYPE__: "FileLink";
|
|
1123
1154
|
} & ((({
|
|
@@ -1132,12 +1163,14 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1132
1163
|
kind: "file";
|
|
1133
1164
|
}) & {
|
|
1134
1165
|
text?: string;
|
|
1166
|
+
variant?: string;
|
|
1135
1167
|
})) | ({
|
|
1136
1168
|
__TYPE__: "MediaLink";
|
|
1137
1169
|
} & {
|
|
1138
1170
|
kind: "media";
|
|
1139
1171
|
} & {
|
|
1140
1172
|
text?: string;
|
|
1173
|
+
variant?: string;
|
|
1141
1174
|
}) | ({
|
|
1142
1175
|
__TYPE__: "DocumentLink";
|
|
1143
1176
|
} & (({
|
|
@@ -1146,6 +1179,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1146
1179
|
kind: "document";
|
|
1147
1180
|
}) & {
|
|
1148
1181
|
text?: string;
|
|
1182
|
+
variant?: string;
|
|
1149
1183
|
})) | ({
|
|
1150
1184
|
__TYPE__: "ExternalLink";
|
|
1151
1185
|
} & ((({
|
|
@@ -1160,12 +1194,14 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1160
1194
|
kind: "web";
|
|
1161
1195
|
}) & {
|
|
1162
1196
|
text?: string;
|
|
1197
|
+
variant?: string;
|
|
1163
1198
|
})) | ({
|
|
1164
1199
|
__TYPE__: "AnyLink";
|
|
1165
1200
|
} & {
|
|
1166
1201
|
kind: "any";
|
|
1167
1202
|
} & {
|
|
1168
1203
|
text?: string;
|
|
1204
|
+
variant?: string;
|
|
1169
1205
|
});
|
|
1170
1206
|
})[];
|
|
1171
1207
|
}> | import("fp-ts/lib/Either").Right<{
|
|
@@ -131,6 +131,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
131
131
|
kind: t.LiteralC<"image">;
|
|
132
132
|
}>>]>, t.ExactC<t.PartialC<{
|
|
133
133
|
text: t.StringC;
|
|
134
|
+
variant: t.StringC;
|
|
134
135
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
135
136
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
136
137
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -145,6 +146,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
145
146
|
kind: t.LiteralC<"file">;
|
|
146
147
|
}>>]>, t.ExactC<t.PartialC<{
|
|
147
148
|
text: t.StringC;
|
|
149
|
+
variant: t.StringC;
|
|
148
150
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
149
151
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
150
152
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -153,6 +155,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
153
155
|
kind: t.LiteralC<"document">;
|
|
154
156
|
}>>]>, t.ExactC<t.PartialC<{
|
|
155
157
|
text: t.StringC;
|
|
158
|
+
variant: t.StringC;
|
|
156
159
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
157
160
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
158
161
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -169,18 +172,21 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
169
172
|
kind: t.LiteralC<"web">;
|
|
170
173
|
}>>]>, t.ExactC<t.PartialC<{
|
|
171
174
|
text: t.StringC;
|
|
175
|
+
variant: t.StringC;
|
|
172
176
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
173
177
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
174
178
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
175
179
|
kind: t.LiteralC<"media">;
|
|
176
180
|
}>>, t.ExactC<t.PartialC<{
|
|
177
181
|
text: t.StringC;
|
|
182
|
+
variant: t.StringC;
|
|
178
183
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
179
184
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
180
185
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
181
186
|
kind: t.LiteralC<"any">;
|
|
182
187
|
}>, t.PartialC<{
|
|
183
188
|
text: t.StringC;
|
|
189
|
+
variant: t.StringC;
|
|
184
190
|
}>]>>]>]>;
|
|
185
191
|
}>>]>, t.ExactC<t.TypeC<{
|
|
186
192
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -446,6 +452,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
446
452
|
kind: t.LiteralC<"image">;
|
|
447
453
|
}>>]>, t.ExactC<t.PartialC<{
|
|
448
454
|
text: t.StringC;
|
|
455
|
+
variant: t.StringC;
|
|
449
456
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
450
457
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
451
458
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -460,6 +467,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
460
467
|
kind: t.LiteralC<"file">;
|
|
461
468
|
}>>]>, t.ExactC<t.PartialC<{
|
|
462
469
|
text: t.StringC;
|
|
470
|
+
variant: t.StringC;
|
|
463
471
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
464
472
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
465
473
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -468,6 +476,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
468
476
|
kind: t.LiteralC<"document">;
|
|
469
477
|
}>>]>, t.ExactC<t.PartialC<{
|
|
470
478
|
text: t.StringC;
|
|
479
|
+
variant: t.StringC;
|
|
471
480
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
472
481
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
473
482
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -484,18 +493,21 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
484
493
|
kind: t.LiteralC<"web">;
|
|
485
494
|
}>>]>, t.ExactC<t.PartialC<{
|
|
486
495
|
text: t.StringC;
|
|
496
|
+
variant: t.StringC;
|
|
487
497
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
488
498
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
489
499
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
490
500
|
kind: t.LiteralC<"media">;
|
|
491
501
|
}>>, t.ExactC<t.PartialC<{
|
|
492
502
|
text: t.StringC;
|
|
503
|
+
variant: t.StringC;
|
|
493
504
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
494
505
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
495
506
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
496
507
|
kind: t.LiteralC<"any">;
|
|
497
508
|
}>, t.PartialC<{
|
|
498
509
|
text: t.StringC;
|
|
510
|
+
variant: t.StringC;
|
|
499
511
|
}>]>>]>]>;
|
|
500
512
|
}>>]>>;
|
|
501
513
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
|
|
@@ -634,6 +646,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
634
646
|
kind: "image";
|
|
635
647
|
}) & {
|
|
636
648
|
text?: string;
|
|
649
|
+
variant?: string;
|
|
637
650
|
})) | ({
|
|
638
651
|
__TYPE__: "FileLink";
|
|
639
652
|
} & ((({
|
|
@@ -648,12 +661,14 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
648
661
|
kind: "file";
|
|
649
662
|
}) & {
|
|
650
663
|
text?: string;
|
|
664
|
+
variant?: string;
|
|
651
665
|
})) | ({
|
|
652
666
|
__TYPE__: "MediaLink";
|
|
653
667
|
} & {
|
|
654
668
|
kind: "media";
|
|
655
669
|
} & {
|
|
656
670
|
text?: string;
|
|
671
|
+
variant?: string;
|
|
657
672
|
}) | ({
|
|
658
673
|
__TYPE__: "DocumentLink";
|
|
659
674
|
} & (({
|
|
@@ -662,6 +677,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
662
677
|
kind: "document";
|
|
663
678
|
}) & {
|
|
664
679
|
text?: string;
|
|
680
|
+
variant?: string;
|
|
665
681
|
})) | ({
|
|
666
682
|
__TYPE__: "ExternalLink";
|
|
667
683
|
} & ((({
|
|
@@ -676,12 +692,14 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
676
692
|
kind: "web";
|
|
677
693
|
}) & {
|
|
678
694
|
text?: string;
|
|
695
|
+
variant?: string;
|
|
679
696
|
})) | ({
|
|
680
697
|
__TYPE__: "AnyLink";
|
|
681
698
|
} & {
|
|
682
699
|
kind: "any";
|
|
683
700
|
} & {
|
|
684
701
|
text?: string;
|
|
702
|
+
variant?: string;
|
|
685
703
|
});
|
|
686
704
|
}> | import("fp-ts/lib/Either").Right<{
|
|
687
705
|
__TYPE__: "RepeatableContent";
|
|
@@ -706,6 +724,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
706
724
|
kind: "image";
|
|
707
725
|
}) & {
|
|
708
726
|
text?: string;
|
|
727
|
+
variant?: string;
|
|
709
728
|
})) | ({
|
|
710
729
|
__TYPE__: "FileLink";
|
|
711
730
|
} & ((({
|
|
@@ -720,12 +739,14 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
720
739
|
kind: "file";
|
|
721
740
|
}) & {
|
|
722
741
|
text?: string;
|
|
742
|
+
variant?: string;
|
|
723
743
|
})) | ({
|
|
724
744
|
__TYPE__: "MediaLink";
|
|
725
745
|
} & {
|
|
726
746
|
kind: "media";
|
|
727
747
|
} & {
|
|
728
748
|
text?: string;
|
|
749
|
+
variant?: string;
|
|
729
750
|
}) | ({
|
|
730
751
|
__TYPE__: "DocumentLink";
|
|
731
752
|
} & (({
|
|
@@ -734,6 +755,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
734
755
|
kind: "document";
|
|
735
756
|
}) & {
|
|
736
757
|
text?: string;
|
|
758
|
+
variant?: string;
|
|
737
759
|
})) | ({
|
|
738
760
|
__TYPE__: "ExternalLink";
|
|
739
761
|
} & ((({
|
|
@@ -748,12 +770,14 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
748
770
|
kind: "web";
|
|
749
771
|
}) & {
|
|
750
772
|
text?: string;
|
|
773
|
+
variant?: string;
|
|
751
774
|
})) | ({
|
|
752
775
|
__TYPE__: "AnyLink";
|
|
753
776
|
} & {
|
|
754
777
|
kind: "any";
|
|
755
778
|
} & {
|
|
756
779
|
text?: string;
|
|
780
|
+
variant?: string;
|
|
757
781
|
});
|
|
758
782
|
})[];
|
|
759
783
|
}> | import("fp-ts/lib/Either").Right<{
|
|
@@ -1046,6 +1070,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1046
1070
|
kind: "image";
|
|
1047
1071
|
}) & {
|
|
1048
1072
|
text?: string;
|
|
1073
|
+
variant?: string;
|
|
1049
1074
|
})) | ({
|
|
1050
1075
|
__TYPE__: "FileLink";
|
|
1051
1076
|
} & ((({
|
|
@@ -1060,12 +1085,14 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1060
1085
|
kind: "file";
|
|
1061
1086
|
}) & {
|
|
1062
1087
|
text?: string;
|
|
1088
|
+
variant?: string;
|
|
1063
1089
|
})) | ({
|
|
1064
1090
|
__TYPE__: "MediaLink";
|
|
1065
1091
|
} & {
|
|
1066
1092
|
kind: "media";
|
|
1067
1093
|
} & {
|
|
1068
1094
|
text?: string;
|
|
1095
|
+
variant?: string;
|
|
1069
1096
|
}) | ({
|
|
1070
1097
|
__TYPE__: "DocumentLink";
|
|
1071
1098
|
} & (({
|
|
@@ -1074,6 +1101,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1074
1101
|
kind: "document";
|
|
1075
1102
|
}) & {
|
|
1076
1103
|
text?: string;
|
|
1104
|
+
variant?: string;
|
|
1077
1105
|
})) | ({
|
|
1078
1106
|
__TYPE__: "ExternalLink";
|
|
1079
1107
|
} & ((({
|
|
@@ -1088,12 +1116,14 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1088
1116
|
kind: "web";
|
|
1089
1117
|
}) & {
|
|
1090
1118
|
text?: string;
|
|
1119
|
+
variant?: string;
|
|
1091
1120
|
})) | ({
|
|
1092
1121
|
__TYPE__: "AnyLink";
|
|
1093
1122
|
} & {
|
|
1094
1123
|
kind: "any";
|
|
1095
1124
|
} & {
|
|
1096
1125
|
text?: string;
|
|
1126
|
+
variant?: string;
|
|
1097
1127
|
});
|
|
1098
1128
|
}) | {
|
|
1099
1129
|
__TYPE__: "RepeatableContent";
|
|
@@ -1118,6 +1148,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1118
1148
|
kind: "image";
|
|
1119
1149
|
}) & {
|
|
1120
1150
|
text?: string;
|
|
1151
|
+
variant?: string;
|
|
1121
1152
|
})) | ({
|
|
1122
1153
|
__TYPE__: "FileLink";
|
|
1123
1154
|
} & ((({
|
|
@@ -1132,12 +1163,14 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1132
1163
|
kind: "file";
|
|
1133
1164
|
}) & {
|
|
1134
1165
|
text?: string;
|
|
1166
|
+
variant?: string;
|
|
1135
1167
|
})) | ({
|
|
1136
1168
|
__TYPE__: "MediaLink";
|
|
1137
1169
|
} & {
|
|
1138
1170
|
kind: "media";
|
|
1139
1171
|
} & {
|
|
1140
1172
|
text?: string;
|
|
1173
|
+
variant?: string;
|
|
1141
1174
|
}) | ({
|
|
1142
1175
|
__TYPE__: "DocumentLink";
|
|
1143
1176
|
} & (({
|
|
@@ -1146,6 +1179,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1146
1179
|
kind: "document";
|
|
1147
1180
|
}) & {
|
|
1148
1181
|
text?: string;
|
|
1182
|
+
variant?: string;
|
|
1149
1183
|
})) | ({
|
|
1150
1184
|
__TYPE__: "ExternalLink";
|
|
1151
1185
|
} & ((({
|
|
@@ -1160,12 +1194,14 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1160
1194
|
kind: "web";
|
|
1161
1195
|
}) & {
|
|
1162
1196
|
text?: string;
|
|
1197
|
+
variant?: string;
|
|
1163
1198
|
})) | ({
|
|
1164
1199
|
__TYPE__: "AnyLink";
|
|
1165
1200
|
} & {
|
|
1166
1201
|
kind: "any";
|
|
1167
1202
|
} & {
|
|
1168
1203
|
text?: string;
|
|
1204
|
+
variant?: string;
|
|
1169
1205
|
});
|
|
1170
1206
|
})[];
|
|
1171
1207
|
} | GroupContent | {
|