@prismicio/types-internal 3.4.0-alpha.2 → 3.4.0-alpha.4
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 +3305 -3323
- package/lib/content/fields/RepeatableContent.d.ts +51 -123
- package/lib/content/fields/RepeatableContent.js +10 -14
- package/lib/content/fields/WidgetContent.d.ts +3046 -3064
- package/lib/content/fields/nestable/NestableContent.d.ts +501 -504
- package/lib/content/fields/nestable/NestableContent.js +0 -7
- package/lib/content/fields/nestable/RichTextContent/Block.d.ts +1036 -0
- package/lib/content/fields/nestable/RichTextContent/Block.js +31 -0
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +60 -0
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +53 -0
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +203 -0
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +36 -0
- package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +500 -0
- package/lib/content/fields/nestable/RichTextContent/TableBlock.js +21 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +590 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +637 -9
- package/lib/content/fields/nestable/RichTextContent/index.js +4 -4
- package/lib/content/fields/nestable/TableContent.d.ts +245 -12
- package/lib/content/fields/nestable/TableContent.js +7 -7
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1013 -1019
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +234 -235
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1013 -1019
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +501 -504
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +499 -502
- package/lib/content/fields/slices/Slice/index.d.ts +1852 -1862
- package/lib/content/fields/slices/SliceItem.d.ts +1957 -1967
- package/lib/content/fields/slices/SlicesContent.d.ts +2619 -2634
- package/lib/customtypes/CustomType.d.ts +0 -108
- package/lib/customtypes/Section.d.ts +0 -108
- package/lib/customtypes/diff/SharedSlice.d.ts +0 -48
- package/lib/customtypes/diff/Variation.d.ts +0 -48
- package/lib/customtypes/widgets/Group.d.ts +0 -36
- package/lib/customtypes/widgets/Widget.d.ts +0 -126
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -6
- package/lib/customtypes/widgets/nestable/NestableWidget.js +0 -2
- package/lib/customtypes/widgets/nestable/RichText.d.ts +2 -0
- package/lib/customtypes/widgets/nestable/RichText.js +2 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -12
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -12
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +0 -48
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +0 -36
- package/lib/customtypes/widgets/slices/Slices.d.ts +0 -168
- package/package.json +1 -1
- package/src/content/fields/nestable/NestableContent.ts +0 -12
- package/src/content/fields/nestable/RichTextContent/Block.ts +35 -0
- package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +81 -0
- package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +42 -0
- package/src/content/fields/nestable/RichTextContent/TableBlock.ts +36 -0
- package/src/content/fields/nestable/RichTextContent/TextBlock.ts +108 -0
- package/src/content/fields/nestable/RichTextContent/index.ts +2 -2
- package/src/content/fields/nestable/TableContent.ts +6 -6
- package/src/customtypes/widgets/nestable/NestableWidget.ts +0 -2
- package/src/customtypes/widgets/nestable/RichText.ts +2 -0
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +0 -238
|
@@ -94,7 +94,7 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
94
94
|
label?: string | null | undefined;
|
|
95
95
|
direction?: string | null | undefined;
|
|
96
96
|
}) | ({
|
|
97
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
97
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
98
98
|
content: {
|
|
99
99
|
text: string;
|
|
100
100
|
} & {
|
|
@@ -153,7 +153,139 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
153
153
|
} & {
|
|
154
154
|
label?: string;
|
|
155
155
|
direction?: string;
|
|
156
|
-
})
|
|
156
|
+
}) | {
|
|
157
|
+
type: "table";
|
|
158
|
+
content: {
|
|
159
|
+
type: "tableRow";
|
|
160
|
+
content: ({
|
|
161
|
+
type: "tableHeader";
|
|
162
|
+
content: ({
|
|
163
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
164
|
+
content: {
|
|
165
|
+
text: string;
|
|
166
|
+
} & {
|
|
167
|
+
spans?: ({
|
|
168
|
+
data: ({
|
|
169
|
+
__TYPE__: "ImageLink";
|
|
170
|
+
} & {
|
|
171
|
+
kind: "image";
|
|
172
|
+
id: string;
|
|
173
|
+
url: string;
|
|
174
|
+
height: string;
|
|
175
|
+
width: string;
|
|
176
|
+
size: string;
|
|
177
|
+
name: string;
|
|
178
|
+
} & {
|
|
179
|
+
date?: string | null | undefined;
|
|
180
|
+
}) | ({
|
|
181
|
+
__TYPE__: "FileLink";
|
|
182
|
+
} & {
|
|
183
|
+
kind: "file";
|
|
184
|
+
id: string;
|
|
185
|
+
url: string;
|
|
186
|
+
name: string;
|
|
187
|
+
size: string;
|
|
188
|
+
} & {
|
|
189
|
+
date?: string | null | undefined;
|
|
190
|
+
}) | ({
|
|
191
|
+
__TYPE__: "DocumentLink";
|
|
192
|
+
} & {
|
|
193
|
+
id: string;
|
|
194
|
+
}) | ({
|
|
195
|
+
__TYPE__: "ExternalLink";
|
|
196
|
+
} & {
|
|
197
|
+
url: string;
|
|
198
|
+
} & {
|
|
199
|
+
kind?: "web";
|
|
200
|
+
target?: string | null | undefined;
|
|
201
|
+
preview?: {
|
|
202
|
+
title?: string;
|
|
203
|
+
} | null | undefined;
|
|
204
|
+
});
|
|
205
|
+
start: number;
|
|
206
|
+
end: number;
|
|
207
|
+
type: "hyperlink";
|
|
208
|
+
} | {
|
|
209
|
+
data: string;
|
|
210
|
+
start: number;
|
|
211
|
+
end: number;
|
|
212
|
+
type: "label";
|
|
213
|
+
} | {
|
|
214
|
+
start: number;
|
|
215
|
+
end: number;
|
|
216
|
+
type: "strong" | "em" | "list-item";
|
|
217
|
+
})[];
|
|
218
|
+
};
|
|
219
|
+
} & {
|
|
220
|
+
label?: string;
|
|
221
|
+
direction?: string;
|
|
222
|
+
})[];
|
|
223
|
+
} | {
|
|
224
|
+
type: "tableCell";
|
|
225
|
+
content: ({
|
|
226
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
227
|
+
content: {
|
|
228
|
+
text: string;
|
|
229
|
+
} & {
|
|
230
|
+
spans?: ({
|
|
231
|
+
data: ({
|
|
232
|
+
__TYPE__: "ImageLink";
|
|
233
|
+
} & {
|
|
234
|
+
kind: "image";
|
|
235
|
+
id: string;
|
|
236
|
+
url: string;
|
|
237
|
+
height: string;
|
|
238
|
+
width: string;
|
|
239
|
+
size: string;
|
|
240
|
+
name: string;
|
|
241
|
+
} & {
|
|
242
|
+
date?: string | null | undefined;
|
|
243
|
+
}) | ({
|
|
244
|
+
__TYPE__: "FileLink";
|
|
245
|
+
} & {
|
|
246
|
+
kind: "file";
|
|
247
|
+
id: string;
|
|
248
|
+
url: string;
|
|
249
|
+
name: string;
|
|
250
|
+
size: string;
|
|
251
|
+
} & {
|
|
252
|
+
date?: string | null | undefined;
|
|
253
|
+
}) | ({
|
|
254
|
+
__TYPE__: "DocumentLink";
|
|
255
|
+
} & {
|
|
256
|
+
id: string;
|
|
257
|
+
}) | ({
|
|
258
|
+
__TYPE__: "ExternalLink";
|
|
259
|
+
} & {
|
|
260
|
+
url: string;
|
|
261
|
+
} & {
|
|
262
|
+
kind?: "web";
|
|
263
|
+
target?: string | null | undefined;
|
|
264
|
+
preview?: {
|
|
265
|
+
title?: string;
|
|
266
|
+
} | null | undefined;
|
|
267
|
+
});
|
|
268
|
+
start: number;
|
|
269
|
+
end: number;
|
|
270
|
+
type: "hyperlink";
|
|
271
|
+
} | {
|
|
272
|
+
data: string;
|
|
273
|
+
start: number;
|
|
274
|
+
end: number;
|
|
275
|
+
type: "label";
|
|
276
|
+
} | {
|
|
277
|
+
start: number;
|
|
278
|
+
end: number;
|
|
279
|
+
type: "strong" | "em" | "list-item";
|
|
280
|
+
})[];
|
|
281
|
+
};
|
|
282
|
+
} & {
|
|
283
|
+
label?: string;
|
|
284
|
+
direction?: string;
|
|
285
|
+
})[];
|
|
286
|
+
})[];
|
|
287
|
+
}[];
|
|
288
|
+
})[];
|
|
157
289
|
};
|
|
158
290
|
export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
159
291
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -284,7 +416,7 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
284
416
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
285
417
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
286
418
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
287
|
-
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>;
|
|
419
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
|
|
288
420
|
content: t.IntersectionC<[t.TypeC<{
|
|
289
421
|
text: t.StringC;
|
|
290
422
|
}>, t.PartialC<{
|
|
@@ -393,10 +525,242 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
393
525
|
}>, t.PartialC<{
|
|
394
526
|
label: t.StringC;
|
|
395
527
|
direction: t.StringC;
|
|
396
|
-
}>]
|
|
528
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
529
|
+
type: t.LiteralC<"table">;
|
|
530
|
+
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
531
|
+
type: t.LiteralC<"tableRow">;
|
|
532
|
+
content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
|
|
533
|
+
type: t.LiteralC<"tableHeader">;
|
|
534
|
+
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
535
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
|
|
536
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
537
|
+
text: t.StringC;
|
|
538
|
+
}>, t.PartialC<{
|
|
539
|
+
spans: t.Type<({
|
|
540
|
+
data: ({
|
|
541
|
+
__TYPE__: "ImageLink";
|
|
542
|
+
} & {
|
|
543
|
+
kind: "image";
|
|
544
|
+
id: string;
|
|
545
|
+
url: string;
|
|
546
|
+
height: string;
|
|
547
|
+
width: string;
|
|
548
|
+
size: string;
|
|
549
|
+
name: string;
|
|
550
|
+
} & {
|
|
551
|
+
date?: string | null | undefined;
|
|
552
|
+
}) | ({
|
|
553
|
+
__TYPE__: "FileLink";
|
|
554
|
+
} & {
|
|
555
|
+
kind: "file";
|
|
556
|
+
id: string;
|
|
557
|
+
url: string;
|
|
558
|
+
name: string;
|
|
559
|
+
size: string;
|
|
560
|
+
} & {
|
|
561
|
+
date?: string | null | undefined;
|
|
562
|
+
}) | ({
|
|
563
|
+
__TYPE__: "DocumentLink";
|
|
564
|
+
} & {
|
|
565
|
+
id: string;
|
|
566
|
+
}) | ({
|
|
567
|
+
__TYPE__: "ExternalLink";
|
|
568
|
+
} & {
|
|
569
|
+
url: string;
|
|
570
|
+
} & {
|
|
571
|
+
kind?: "web";
|
|
572
|
+
target?: string | null | undefined;
|
|
573
|
+
preview?: {
|
|
574
|
+
title?: string;
|
|
575
|
+
} | null | undefined;
|
|
576
|
+
});
|
|
577
|
+
start: number;
|
|
578
|
+
end: number;
|
|
579
|
+
type: "hyperlink";
|
|
580
|
+
} | {
|
|
581
|
+
data: string;
|
|
582
|
+
start: number;
|
|
583
|
+
end: number;
|
|
584
|
+
type: "label";
|
|
585
|
+
} | {
|
|
586
|
+
start: number;
|
|
587
|
+
end: number;
|
|
588
|
+
type: "strong" | "em" | "list-item";
|
|
589
|
+
})[], ({
|
|
590
|
+
data: ({
|
|
591
|
+
__TYPE__: "ImageLink";
|
|
592
|
+
} & {
|
|
593
|
+
kind: "image";
|
|
594
|
+
id: string;
|
|
595
|
+
url: string;
|
|
596
|
+
height: string;
|
|
597
|
+
width: string;
|
|
598
|
+
size: string;
|
|
599
|
+
name: string;
|
|
600
|
+
} & {
|
|
601
|
+
date?: string | null | undefined;
|
|
602
|
+
}) | ({
|
|
603
|
+
__TYPE__: "FileLink";
|
|
604
|
+
} & {
|
|
605
|
+
kind: "file";
|
|
606
|
+
id: string;
|
|
607
|
+
url: string;
|
|
608
|
+
name: string;
|
|
609
|
+
size: string;
|
|
610
|
+
} & {
|
|
611
|
+
date?: string | null | undefined;
|
|
612
|
+
}) | ({
|
|
613
|
+
__TYPE__: "DocumentLink";
|
|
614
|
+
} & {
|
|
615
|
+
id: string;
|
|
616
|
+
}) | ({
|
|
617
|
+
__TYPE__: "ExternalLink";
|
|
618
|
+
} & {
|
|
619
|
+
url: string;
|
|
620
|
+
} & {
|
|
621
|
+
kind?: "web";
|
|
622
|
+
target?: string | null | undefined;
|
|
623
|
+
preview?: {
|
|
624
|
+
title?: string;
|
|
625
|
+
} | null | undefined;
|
|
626
|
+
});
|
|
627
|
+
start: number;
|
|
628
|
+
end: number;
|
|
629
|
+
type: "hyperlink";
|
|
630
|
+
} | {
|
|
631
|
+
data: string;
|
|
632
|
+
start: number;
|
|
633
|
+
end: number;
|
|
634
|
+
type: "label";
|
|
635
|
+
} | {
|
|
636
|
+
start: number;
|
|
637
|
+
end: number;
|
|
638
|
+
type: "strong" | "em" | "list-item";
|
|
639
|
+
})[], unknown>;
|
|
640
|
+
}>]>;
|
|
641
|
+
}>, t.PartialC<{
|
|
642
|
+
label: t.StringC;
|
|
643
|
+
direction: t.StringC;
|
|
644
|
+
}>]>>>;
|
|
645
|
+
}>>, t.ExactC<t.TypeC<{
|
|
646
|
+
type: t.LiteralC<"tableCell">;
|
|
647
|
+
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
648
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
|
|
649
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
650
|
+
text: t.StringC;
|
|
651
|
+
}>, t.PartialC<{
|
|
652
|
+
spans: t.Type<({
|
|
653
|
+
data: ({
|
|
654
|
+
__TYPE__: "ImageLink";
|
|
655
|
+
} & {
|
|
656
|
+
kind: "image";
|
|
657
|
+
id: string;
|
|
658
|
+
url: string;
|
|
659
|
+
height: string;
|
|
660
|
+
width: string;
|
|
661
|
+
size: string;
|
|
662
|
+
name: string;
|
|
663
|
+
} & {
|
|
664
|
+
date?: string | null | undefined;
|
|
665
|
+
}) | ({
|
|
666
|
+
__TYPE__: "FileLink";
|
|
667
|
+
} & {
|
|
668
|
+
kind: "file";
|
|
669
|
+
id: string;
|
|
670
|
+
url: string;
|
|
671
|
+
name: string;
|
|
672
|
+
size: string;
|
|
673
|
+
} & {
|
|
674
|
+
date?: string | null | undefined;
|
|
675
|
+
}) | ({
|
|
676
|
+
__TYPE__: "DocumentLink";
|
|
677
|
+
} & {
|
|
678
|
+
id: string;
|
|
679
|
+
}) | ({
|
|
680
|
+
__TYPE__: "ExternalLink";
|
|
681
|
+
} & {
|
|
682
|
+
url: string;
|
|
683
|
+
} & {
|
|
684
|
+
kind?: "web";
|
|
685
|
+
target?: string | null | undefined;
|
|
686
|
+
preview?: {
|
|
687
|
+
title?: string;
|
|
688
|
+
} | null | undefined;
|
|
689
|
+
});
|
|
690
|
+
start: number;
|
|
691
|
+
end: number;
|
|
692
|
+
type: "hyperlink";
|
|
693
|
+
} | {
|
|
694
|
+
data: string;
|
|
695
|
+
start: number;
|
|
696
|
+
end: number;
|
|
697
|
+
type: "label";
|
|
698
|
+
} | {
|
|
699
|
+
start: number;
|
|
700
|
+
end: number;
|
|
701
|
+
type: "strong" | "em" | "list-item";
|
|
702
|
+
})[], ({
|
|
703
|
+
data: ({
|
|
704
|
+
__TYPE__: "ImageLink";
|
|
705
|
+
} & {
|
|
706
|
+
kind: "image";
|
|
707
|
+
id: string;
|
|
708
|
+
url: string;
|
|
709
|
+
height: string;
|
|
710
|
+
width: string;
|
|
711
|
+
size: string;
|
|
712
|
+
name: string;
|
|
713
|
+
} & {
|
|
714
|
+
date?: string | null | undefined;
|
|
715
|
+
}) | ({
|
|
716
|
+
__TYPE__: "FileLink";
|
|
717
|
+
} & {
|
|
718
|
+
kind: "file";
|
|
719
|
+
id: string;
|
|
720
|
+
url: string;
|
|
721
|
+
name: string;
|
|
722
|
+
size: string;
|
|
723
|
+
} & {
|
|
724
|
+
date?: string | null | undefined;
|
|
725
|
+
}) | ({
|
|
726
|
+
__TYPE__: "DocumentLink";
|
|
727
|
+
} & {
|
|
728
|
+
id: string;
|
|
729
|
+
}) | ({
|
|
730
|
+
__TYPE__: "ExternalLink";
|
|
731
|
+
} & {
|
|
732
|
+
url: string;
|
|
733
|
+
} & {
|
|
734
|
+
kind?: "web";
|
|
735
|
+
target?: string | null | undefined;
|
|
736
|
+
preview?: {
|
|
737
|
+
title?: string;
|
|
738
|
+
} | null | undefined;
|
|
739
|
+
});
|
|
740
|
+
start: number;
|
|
741
|
+
end: number;
|
|
742
|
+
type: "hyperlink";
|
|
743
|
+
} | {
|
|
744
|
+
data: string;
|
|
745
|
+
start: number;
|
|
746
|
+
end: number;
|
|
747
|
+
type: "label";
|
|
748
|
+
} | {
|
|
749
|
+
start: number;
|
|
750
|
+
end: number;
|
|
751
|
+
type: "strong" | "em" | "list-item";
|
|
752
|
+
})[], unknown>;
|
|
753
|
+
}>]>;
|
|
754
|
+
}>, t.PartialC<{
|
|
755
|
+
label: t.StringC;
|
|
756
|
+
direction: t.StringC;
|
|
757
|
+
}>]>>>;
|
|
758
|
+
}>>]>>;
|
|
759
|
+
}>>>;
|
|
760
|
+
}>>]>>;
|
|
397
761
|
}>>;
|
|
398
762
|
export declare type RichTextContent = t.TypeOf<typeof RichTextContent>;
|
|
399
|
-
export * from "./
|
|
763
|
+
export * from "./Block";
|
|
400
764
|
export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
401
765
|
__TYPE__: "StructuredTextContent";
|
|
402
766
|
value: (({
|
|
@@ -490,7 +854,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
490
854
|
label?: string | null | undefined;
|
|
491
855
|
direction?: string | null | undefined;
|
|
492
856
|
}) | ({
|
|
493
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
857
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
494
858
|
content: {
|
|
495
859
|
text: string;
|
|
496
860
|
} & {
|
|
@@ -549,7 +913,139 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
549
913
|
} & {
|
|
550
914
|
label?: string;
|
|
551
915
|
direction?: string;
|
|
552
|
-
})
|
|
916
|
+
}) | {
|
|
917
|
+
type: "table";
|
|
918
|
+
content: {
|
|
919
|
+
type: "tableRow";
|
|
920
|
+
content: ({
|
|
921
|
+
type: "tableHeader";
|
|
922
|
+
content: ({
|
|
923
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
924
|
+
content: {
|
|
925
|
+
text: string;
|
|
926
|
+
} & {
|
|
927
|
+
spans?: ({
|
|
928
|
+
data: ({
|
|
929
|
+
__TYPE__: "ImageLink";
|
|
930
|
+
} & {
|
|
931
|
+
kind: "image";
|
|
932
|
+
id: string;
|
|
933
|
+
url: string;
|
|
934
|
+
height: string;
|
|
935
|
+
width: string;
|
|
936
|
+
size: string;
|
|
937
|
+
name: string;
|
|
938
|
+
} & {
|
|
939
|
+
date?: string | null | undefined;
|
|
940
|
+
}) | ({
|
|
941
|
+
__TYPE__: "FileLink";
|
|
942
|
+
} & {
|
|
943
|
+
kind: "file";
|
|
944
|
+
id: string;
|
|
945
|
+
url: string;
|
|
946
|
+
name: string;
|
|
947
|
+
size: string;
|
|
948
|
+
} & {
|
|
949
|
+
date?: string | null | undefined;
|
|
950
|
+
}) | ({
|
|
951
|
+
__TYPE__: "DocumentLink";
|
|
952
|
+
} & {
|
|
953
|
+
id: string;
|
|
954
|
+
}) | ({
|
|
955
|
+
__TYPE__: "ExternalLink";
|
|
956
|
+
} & {
|
|
957
|
+
url: string;
|
|
958
|
+
} & {
|
|
959
|
+
kind?: "web";
|
|
960
|
+
target?: string | null | undefined;
|
|
961
|
+
preview?: {
|
|
962
|
+
title?: string;
|
|
963
|
+
} | null | undefined;
|
|
964
|
+
});
|
|
965
|
+
start: number;
|
|
966
|
+
end: number;
|
|
967
|
+
type: "hyperlink";
|
|
968
|
+
} | {
|
|
969
|
+
data: string;
|
|
970
|
+
start: number;
|
|
971
|
+
end: number;
|
|
972
|
+
type: "label";
|
|
973
|
+
} | {
|
|
974
|
+
start: number;
|
|
975
|
+
end: number;
|
|
976
|
+
type: "strong" | "em" | "list-item";
|
|
977
|
+
})[];
|
|
978
|
+
};
|
|
979
|
+
} & {
|
|
980
|
+
label?: string;
|
|
981
|
+
direction?: string;
|
|
982
|
+
})[];
|
|
983
|
+
} | {
|
|
984
|
+
type: "tableCell";
|
|
985
|
+
content: ({
|
|
986
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
987
|
+
content: {
|
|
988
|
+
text: string;
|
|
989
|
+
} & {
|
|
990
|
+
spans?: ({
|
|
991
|
+
data: ({
|
|
992
|
+
__TYPE__: "ImageLink";
|
|
993
|
+
} & {
|
|
994
|
+
kind: "image";
|
|
995
|
+
id: string;
|
|
996
|
+
url: string;
|
|
997
|
+
height: string;
|
|
998
|
+
width: string;
|
|
999
|
+
size: string;
|
|
1000
|
+
name: string;
|
|
1001
|
+
} & {
|
|
1002
|
+
date?: string | null | undefined;
|
|
1003
|
+
}) | ({
|
|
1004
|
+
__TYPE__: "FileLink";
|
|
1005
|
+
} & {
|
|
1006
|
+
kind: "file";
|
|
1007
|
+
id: string;
|
|
1008
|
+
url: string;
|
|
1009
|
+
name: string;
|
|
1010
|
+
size: string;
|
|
1011
|
+
} & {
|
|
1012
|
+
date?: string | null | undefined;
|
|
1013
|
+
}) | ({
|
|
1014
|
+
__TYPE__: "DocumentLink";
|
|
1015
|
+
} & {
|
|
1016
|
+
id: string;
|
|
1017
|
+
}) | ({
|
|
1018
|
+
__TYPE__: "ExternalLink";
|
|
1019
|
+
} & {
|
|
1020
|
+
url: string;
|
|
1021
|
+
} & {
|
|
1022
|
+
kind?: "web";
|
|
1023
|
+
target?: string | null | undefined;
|
|
1024
|
+
preview?: {
|
|
1025
|
+
title?: string;
|
|
1026
|
+
} | null | undefined;
|
|
1027
|
+
});
|
|
1028
|
+
start: number;
|
|
1029
|
+
end: number;
|
|
1030
|
+
type: "hyperlink";
|
|
1031
|
+
} | {
|
|
1032
|
+
data: string;
|
|
1033
|
+
start: number;
|
|
1034
|
+
end: number;
|
|
1035
|
+
type: "label";
|
|
1036
|
+
} | {
|
|
1037
|
+
start: number;
|
|
1038
|
+
end: number;
|
|
1039
|
+
type: "strong" | "em" | "list-item";
|
|
1040
|
+
})[];
|
|
1041
|
+
};
|
|
1042
|
+
} & {
|
|
1043
|
+
label?: string;
|
|
1044
|
+
direction?: string;
|
|
1045
|
+
})[];
|
|
1046
|
+
})[];
|
|
1047
|
+
}[];
|
|
1048
|
+
})[];
|
|
553
1049
|
}, WithTypes<(({
|
|
554
1050
|
type: "image";
|
|
555
1051
|
data: {
|
|
@@ -641,7 +1137,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
641
1137
|
label?: string | null | undefined;
|
|
642
1138
|
direction?: string | null | undefined;
|
|
643
1139
|
}) | ({
|
|
644
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1140
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
645
1141
|
content: {
|
|
646
1142
|
text: string;
|
|
647
1143
|
} & {
|
|
@@ -700,4 +1196,136 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
700
1196
|
} & {
|
|
701
1197
|
label?: string;
|
|
702
1198
|
direction?: string;
|
|
703
|
-
})
|
|
1199
|
+
}) | {
|
|
1200
|
+
type: "table";
|
|
1201
|
+
content: {
|
|
1202
|
+
type: "tableRow";
|
|
1203
|
+
content: ({
|
|
1204
|
+
type: "tableHeader";
|
|
1205
|
+
content: ({
|
|
1206
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
1207
|
+
content: {
|
|
1208
|
+
text: string;
|
|
1209
|
+
} & {
|
|
1210
|
+
spans?: ({
|
|
1211
|
+
data: ({
|
|
1212
|
+
__TYPE__: "ImageLink";
|
|
1213
|
+
} & {
|
|
1214
|
+
kind: "image";
|
|
1215
|
+
id: string;
|
|
1216
|
+
url: string;
|
|
1217
|
+
height: string;
|
|
1218
|
+
width: string;
|
|
1219
|
+
size: string;
|
|
1220
|
+
name: string;
|
|
1221
|
+
} & {
|
|
1222
|
+
date?: string | null | undefined;
|
|
1223
|
+
}) | ({
|
|
1224
|
+
__TYPE__: "FileLink";
|
|
1225
|
+
} & {
|
|
1226
|
+
kind: "file";
|
|
1227
|
+
id: string;
|
|
1228
|
+
url: string;
|
|
1229
|
+
name: string;
|
|
1230
|
+
size: string;
|
|
1231
|
+
} & {
|
|
1232
|
+
date?: string | null | undefined;
|
|
1233
|
+
}) | ({
|
|
1234
|
+
__TYPE__: "DocumentLink";
|
|
1235
|
+
} & {
|
|
1236
|
+
id: string;
|
|
1237
|
+
}) | ({
|
|
1238
|
+
__TYPE__: "ExternalLink";
|
|
1239
|
+
} & {
|
|
1240
|
+
url: string;
|
|
1241
|
+
} & {
|
|
1242
|
+
kind?: "web";
|
|
1243
|
+
target?: string | null | undefined;
|
|
1244
|
+
preview?: {
|
|
1245
|
+
title?: string;
|
|
1246
|
+
} | null | undefined;
|
|
1247
|
+
});
|
|
1248
|
+
start: number;
|
|
1249
|
+
end: number;
|
|
1250
|
+
type: "hyperlink";
|
|
1251
|
+
} | {
|
|
1252
|
+
data: string;
|
|
1253
|
+
start: number;
|
|
1254
|
+
end: number;
|
|
1255
|
+
type: "label";
|
|
1256
|
+
} | {
|
|
1257
|
+
start: number;
|
|
1258
|
+
end: number;
|
|
1259
|
+
type: "strong" | "em" | "list-item";
|
|
1260
|
+
})[];
|
|
1261
|
+
};
|
|
1262
|
+
} & {
|
|
1263
|
+
label?: string;
|
|
1264
|
+
direction?: string;
|
|
1265
|
+
})[];
|
|
1266
|
+
} | {
|
|
1267
|
+
type: "tableCell";
|
|
1268
|
+
content: ({
|
|
1269
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
1270
|
+
content: {
|
|
1271
|
+
text: string;
|
|
1272
|
+
} & {
|
|
1273
|
+
spans?: ({
|
|
1274
|
+
data: ({
|
|
1275
|
+
__TYPE__: "ImageLink";
|
|
1276
|
+
} & {
|
|
1277
|
+
kind: "image";
|
|
1278
|
+
id: string;
|
|
1279
|
+
url: string;
|
|
1280
|
+
height: string;
|
|
1281
|
+
width: string;
|
|
1282
|
+
size: string;
|
|
1283
|
+
name: string;
|
|
1284
|
+
} & {
|
|
1285
|
+
date?: string | null | undefined;
|
|
1286
|
+
}) | ({
|
|
1287
|
+
__TYPE__: "FileLink";
|
|
1288
|
+
} & {
|
|
1289
|
+
kind: "file";
|
|
1290
|
+
id: string;
|
|
1291
|
+
url: string;
|
|
1292
|
+
name: string;
|
|
1293
|
+
size: string;
|
|
1294
|
+
} & {
|
|
1295
|
+
date?: string | null | undefined;
|
|
1296
|
+
}) | ({
|
|
1297
|
+
__TYPE__: "DocumentLink";
|
|
1298
|
+
} & {
|
|
1299
|
+
id: string;
|
|
1300
|
+
}) | ({
|
|
1301
|
+
__TYPE__: "ExternalLink";
|
|
1302
|
+
} & {
|
|
1303
|
+
url: string;
|
|
1304
|
+
} & {
|
|
1305
|
+
kind?: "web";
|
|
1306
|
+
target?: string | null | undefined;
|
|
1307
|
+
preview?: {
|
|
1308
|
+
title?: string;
|
|
1309
|
+
} | null | undefined;
|
|
1310
|
+
});
|
|
1311
|
+
start: number;
|
|
1312
|
+
end: number;
|
|
1313
|
+
type: "hyperlink";
|
|
1314
|
+
} | {
|
|
1315
|
+
data: string;
|
|
1316
|
+
start: number;
|
|
1317
|
+
end: number;
|
|
1318
|
+
type: "label";
|
|
1319
|
+
} | {
|
|
1320
|
+
start: number;
|
|
1321
|
+
end: number;
|
|
1322
|
+
type: "strong" | "em" | "list-item";
|
|
1323
|
+
})[];
|
|
1324
|
+
};
|
|
1325
|
+
} & {
|
|
1326
|
+
label?: string;
|
|
1327
|
+
direction?: string;
|
|
1328
|
+
})[];
|
|
1329
|
+
})[];
|
|
1330
|
+
}[];
|
|
1331
|
+
})[]>, unknown>;
|