@prismicio/types-internal 3.4.0-alpha.13 → 3.4.0-alpha.14
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 +498 -3366
- package/lib/content/fields/GroupContent.d.ts +1 -1
- package/lib/content/fields/GroupContent.js +2 -1
- package/lib/content/fields/WidgetContent.d.ts +514 -3382
- package/lib/content/fields/nestable/NestableContent.d.ts +68 -546
- package/lib/content/fields/nestable/NestableContent.js +7 -8
- package/lib/content/fields/nestable/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/nestable/RepeatableContent.js +5 -2
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +9 -641
- package/lib/content/fields/nestable/RichTextContent/index.js +4 -8
- package/lib/content/fields/nestable/TableContent.d.ts +637 -834
- package/lib/content/fields/nestable/TableContent.js +10 -7
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +190 -1146
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +26 -252
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +190 -1146
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -546
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -546
- package/lib/content/fields/slices/Slice/index.d.ts +269 -2029
- package/lib/content/fields/slices/SliceItem.d.ts +463 -2223
- package/lib/content/fields/slices/SlicesContent.d.ts +394 -2784
- package/lib/customtypes/widgets/Group.d.ts +36 -36
- package/lib/customtypes/widgets/Widget.d.ts +54 -54
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +6 -6
- package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
- package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -2
- package/lib/customtypes/widgets/nestable/RichText.js +0 -2
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +12 -12
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +12 -12
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +48 -48
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +18 -18
- package/lib/customtypes/widgets/slices/Slices.d.ts +72 -72
- package/package.json +1 -1
- package/src/content/fields/GroupContent.ts +2 -1
- package/src/content/fields/nestable/NestableContent.ts +13 -9
- package/src/content/fields/nestable/RepeatableContent.ts +6 -2
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +238 -0
- package/src/content/fields/nestable/RichTextContent/index.ts +3 -7
- package/src/content/fields/nestable/TableContent.ts +10 -7
- package/src/customtypes/widgets/nestable/NestableWidget.ts +1 -1
- package/src/customtypes/widgets/nestable/RichText.ts +0 -2
- package/src/content/fields/nestable/RichTextContent/Block.ts +0 -35
- package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +0 -81
- package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +0 -42
- package/src/content/fields/nestable/RichTextContent/TableBlock.ts +0 -36
- package/src/content/fields/nestable/RichTextContent/TextBlock.ts +0 -108
|
@@ -317,7 +317,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
317
317
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
318
318
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
319
319
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
320
|
-
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl"
|
|
320
|
+
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>;
|
|
321
321
|
content: t.IntersectionC<[t.TypeC<{
|
|
322
322
|
text: t.StringC;
|
|
323
323
|
}>, t.PartialC<{
|
|
@@ -426,14 +426,18 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
426
426
|
}>, t.PartialC<{
|
|
427
427
|
label: t.StringC;
|
|
428
428
|
direction: t.StringC;
|
|
429
|
-
}>]
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
429
|
+
}>]>>]>>;
|
|
430
|
+
}>>, t.ExactC<t.TypeC<{
|
|
431
|
+
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
432
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
433
|
+
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
434
|
+
type: t.LiteralC<"tableRow">;
|
|
435
|
+
content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
|
|
436
|
+
type: t.LiteralC<"tableHeader">;
|
|
437
|
+
content: t.ExactC<t.TypeC<{
|
|
438
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
439
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
440
|
+
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>;
|
|
437
441
|
content: t.IntersectionC<[t.TypeC<{
|
|
438
442
|
text: t.StringC;
|
|
439
443
|
}>, t.PartialC<{
|
|
@@ -543,10 +547,13 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
543
547
|
label: t.StringC;
|
|
544
548
|
direction: t.StringC;
|
|
545
549
|
}>]>>>;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
+
}>>;
|
|
551
|
+
}>>, t.ExactC<t.TypeC<{
|
|
552
|
+
type: t.LiteralC<"tableCell">;
|
|
553
|
+
content: t.ExactC<t.TypeC<{
|
|
554
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
555
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
556
|
+
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>;
|
|
550
557
|
content: t.IntersectionC<[t.TypeC<{
|
|
551
558
|
text: t.StringC;
|
|
552
559
|
}>, t.PartialC<{
|
|
@@ -656,12 +663,12 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
656
663
|
label: t.StringC;
|
|
657
664
|
direction: t.StringC;
|
|
658
665
|
}>]>>>;
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
}>>, t.ExactC<t.TypeC<{
|
|
663
|
-
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
666
|
+
}>>;
|
|
667
|
+
}>>]>>;
|
|
668
|
+
}>>>;
|
|
664
669
|
}>>, t.ExactC<t.TypeC<{
|
|
670
|
+
__TYPE__: t.LiteralC<"TableContent">;
|
|
671
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
665
672
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
666
673
|
type: t.LiteralC<"Link">;
|
|
667
674
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -742,240 +749,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
742
749
|
variant: t.StringC;
|
|
743
750
|
}>]>>]>]>;
|
|
744
751
|
}>>]>>;
|
|
745
|
-
}
|
|
746
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
747
|
-
type: t.LiteralC<"tableRow">;
|
|
748
|
-
content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
|
|
749
|
-
type: t.LiteralC<"tableHeader">;
|
|
750
|
-
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
751
|
-
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>;
|
|
752
|
-
content: t.IntersectionC<[t.TypeC<{
|
|
753
|
-
text: t.StringC;
|
|
754
|
-
}>, t.PartialC<{
|
|
755
|
-
spans: t.Type<({
|
|
756
|
-
data: ({
|
|
757
|
-
__TYPE__: "ImageLink";
|
|
758
|
-
} & {
|
|
759
|
-
kind: "image";
|
|
760
|
-
id: string;
|
|
761
|
-
url: string;
|
|
762
|
-
height: string;
|
|
763
|
-
width: string;
|
|
764
|
-
size: string;
|
|
765
|
-
name: string;
|
|
766
|
-
} & {
|
|
767
|
-
date?: string | null | undefined;
|
|
768
|
-
}) | ({
|
|
769
|
-
__TYPE__: "FileLink";
|
|
770
|
-
} & {
|
|
771
|
-
kind: "file";
|
|
772
|
-
id: string;
|
|
773
|
-
url: string;
|
|
774
|
-
name: string;
|
|
775
|
-
size: string;
|
|
776
|
-
} & {
|
|
777
|
-
date?: string | null | undefined;
|
|
778
|
-
}) | ({
|
|
779
|
-
__TYPE__: "DocumentLink";
|
|
780
|
-
} & {
|
|
781
|
-
id: string;
|
|
782
|
-
}) | ({
|
|
783
|
-
__TYPE__: "ExternalLink";
|
|
784
|
-
} & {
|
|
785
|
-
url: string;
|
|
786
|
-
} & {
|
|
787
|
-
kind?: "web";
|
|
788
|
-
target?: string | null | undefined;
|
|
789
|
-
preview?: {
|
|
790
|
-
title?: string;
|
|
791
|
-
} | null | undefined;
|
|
792
|
-
});
|
|
793
|
-
start: number;
|
|
794
|
-
end: number;
|
|
795
|
-
type: "hyperlink";
|
|
796
|
-
} | {
|
|
797
|
-
data: string;
|
|
798
|
-
start: number;
|
|
799
|
-
end: number;
|
|
800
|
-
type: "label";
|
|
801
|
-
} | {
|
|
802
|
-
start: number;
|
|
803
|
-
end: number;
|
|
804
|
-
type: "strong" | "em" | "list-item";
|
|
805
|
-
})[], ({
|
|
806
|
-
data: ({
|
|
807
|
-
__TYPE__: "ImageLink";
|
|
808
|
-
} & {
|
|
809
|
-
kind: "image";
|
|
810
|
-
id: string;
|
|
811
|
-
url: string;
|
|
812
|
-
height: string;
|
|
813
|
-
width: string;
|
|
814
|
-
size: string;
|
|
815
|
-
name: string;
|
|
816
|
-
} & {
|
|
817
|
-
date?: string | null | undefined;
|
|
818
|
-
}) | ({
|
|
819
|
-
__TYPE__: "FileLink";
|
|
820
|
-
} & {
|
|
821
|
-
kind: "file";
|
|
822
|
-
id: string;
|
|
823
|
-
url: string;
|
|
824
|
-
name: string;
|
|
825
|
-
size: string;
|
|
826
|
-
} & {
|
|
827
|
-
date?: string | null | undefined;
|
|
828
|
-
}) | ({
|
|
829
|
-
__TYPE__: "DocumentLink";
|
|
830
|
-
} & {
|
|
831
|
-
id: string;
|
|
832
|
-
}) | ({
|
|
833
|
-
__TYPE__: "ExternalLink";
|
|
834
|
-
} & {
|
|
835
|
-
url: string;
|
|
836
|
-
} & {
|
|
837
|
-
kind?: "web";
|
|
838
|
-
target?: string | null | undefined;
|
|
839
|
-
preview?: {
|
|
840
|
-
title?: string;
|
|
841
|
-
} | null | undefined;
|
|
842
|
-
});
|
|
843
|
-
start: number;
|
|
844
|
-
end: number;
|
|
845
|
-
type: "hyperlink";
|
|
846
|
-
} | {
|
|
847
|
-
data: string;
|
|
848
|
-
start: number;
|
|
849
|
-
end: number;
|
|
850
|
-
type: "label";
|
|
851
|
-
} | {
|
|
852
|
-
start: number;
|
|
853
|
-
end: number;
|
|
854
|
-
type: "strong" | "em" | "list-item";
|
|
855
|
-
})[], unknown>;
|
|
856
|
-
}>]>;
|
|
857
|
-
}>, t.PartialC<{
|
|
858
|
-
label: t.StringC;
|
|
859
|
-
direction: t.StringC;
|
|
860
|
-
}>]>>>;
|
|
861
|
-
}>>, t.ExactC<t.TypeC<{
|
|
862
|
-
type: t.LiteralC<"tableCell">;
|
|
863
|
-
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
864
|
-
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>;
|
|
865
|
-
content: t.IntersectionC<[t.TypeC<{
|
|
866
|
-
text: t.StringC;
|
|
867
|
-
}>, t.PartialC<{
|
|
868
|
-
spans: t.Type<({
|
|
869
|
-
data: ({
|
|
870
|
-
__TYPE__: "ImageLink";
|
|
871
|
-
} & {
|
|
872
|
-
kind: "image";
|
|
873
|
-
id: string;
|
|
874
|
-
url: string;
|
|
875
|
-
height: string;
|
|
876
|
-
width: string;
|
|
877
|
-
size: string;
|
|
878
|
-
name: string;
|
|
879
|
-
} & {
|
|
880
|
-
date?: string | null | undefined;
|
|
881
|
-
}) | ({
|
|
882
|
-
__TYPE__: "FileLink";
|
|
883
|
-
} & {
|
|
884
|
-
kind: "file";
|
|
885
|
-
id: string;
|
|
886
|
-
url: string;
|
|
887
|
-
name: string;
|
|
888
|
-
size: string;
|
|
889
|
-
} & {
|
|
890
|
-
date?: string | null | undefined;
|
|
891
|
-
}) | ({
|
|
892
|
-
__TYPE__: "DocumentLink";
|
|
893
|
-
} & {
|
|
894
|
-
id: string;
|
|
895
|
-
}) | ({
|
|
896
|
-
__TYPE__: "ExternalLink";
|
|
897
|
-
} & {
|
|
898
|
-
url: string;
|
|
899
|
-
} & {
|
|
900
|
-
kind?: "web";
|
|
901
|
-
target?: string | null | undefined;
|
|
902
|
-
preview?: {
|
|
903
|
-
title?: string;
|
|
904
|
-
} | null | undefined;
|
|
905
|
-
});
|
|
906
|
-
start: number;
|
|
907
|
-
end: number;
|
|
908
|
-
type: "hyperlink";
|
|
909
|
-
} | {
|
|
910
|
-
data: string;
|
|
911
|
-
start: number;
|
|
912
|
-
end: number;
|
|
913
|
-
type: "label";
|
|
914
|
-
} | {
|
|
915
|
-
start: number;
|
|
916
|
-
end: number;
|
|
917
|
-
type: "strong" | "em" | "list-item";
|
|
918
|
-
})[], ({
|
|
919
|
-
data: ({
|
|
920
|
-
__TYPE__: "ImageLink";
|
|
921
|
-
} & {
|
|
922
|
-
kind: "image";
|
|
923
|
-
id: string;
|
|
924
|
-
url: string;
|
|
925
|
-
height: string;
|
|
926
|
-
width: string;
|
|
927
|
-
size: string;
|
|
928
|
-
name: string;
|
|
929
|
-
} & {
|
|
930
|
-
date?: string | null | undefined;
|
|
931
|
-
}) | ({
|
|
932
|
-
__TYPE__: "FileLink";
|
|
933
|
-
} & {
|
|
934
|
-
kind: "file";
|
|
935
|
-
id: string;
|
|
936
|
-
url: string;
|
|
937
|
-
name: string;
|
|
938
|
-
size: string;
|
|
939
|
-
} & {
|
|
940
|
-
date?: string | null | undefined;
|
|
941
|
-
}) | ({
|
|
942
|
-
__TYPE__: "DocumentLink";
|
|
943
|
-
} & {
|
|
944
|
-
id: string;
|
|
945
|
-
}) | ({
|
|
946
|
-
__TYPE__: "ExternalLink";
|
|
947
|
-
} & {
|
|
948
|
-
url: string;
|
|
949
|
-
} & {
|
|
950
|
-
kind?: "web";
|
|
951
|
-
target?: string | null | undefined;
|
|
952
|
-
preview?: {
|
|
953
|
-
title?: string;
|
|
954
|
-
} | null | undefined;
|
|
955
|
-
});
|
|
956
|
-
start: number;
|
|
957
|
-
end: number;
|
|
958
|
-
type: "hyperlink";
|
|
959
|
-
} | {
|
|
960
|
-
data: string;
|
|
961
|
-
start: number;
|
|
962
|
-
end: number;
|
|
963
|
-
type: "label";
|
|
964
|
-
} | {
|
|
965
|
-
start: number;
|
|
966
|
-
end: number;
|
|
967
|
-
type: "strong" | "em" | "list-item";
|
|
968
|
-
})[], unknown>;
|
|
969
|
-
}>]>;
|
|
970
|
-
}>, t.PartialC<{
|
|
971
|
-
label: t.StringC;
|
|
972
|
-
direction: t.StringC;
|
|
973
|
-
}>]>>>;
|
|
974
|
-
}>>]>>;
|
|
975
|
-
}>>>;
|
|
976
|
-
}>>, t.ExactC<t.TypeC<{
|
|
977
|
-
__TYPE__: t.LiteralC<"TableContent">;
|
|
978
|
-
}>>]>]>, t.Type<GroupContent, GroupContent, unknown>]>;
|
|
752
|
+
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
|
|
979
753
|
export declare type SlicePrimaryContent = t.TypeOf<typeof SlicePrimaryContent>;
|
|
980
754
|
export declare type SlicePrimaryContentType = SlicePrimaryContent["__TYPE__"];
|
|
981
755
|
export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
@@ -1338,7 +1112,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1338
1112
|
label?: string | null | undefined;
|
|
1339
1113
|
direction?: string | null | undefined;
|
|
1340
1114
|
}) | ({
|
|
1341
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl"
|
|
1115
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1342
1116
|
content: {
|
|
1343
1117
|
text: string;
|
|
1344
1118
|
} & {
|
|
@@ -1397,14 +1171,18 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1397
1171
|
} & {
|
|
1398
1172
|
label?: string;
|
|
1399
1173
|
direction?: string;
|
|
1400
|
-
})
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1174
|
+
}))[];
|
|
1175
|
+
}> | import("fp-ts/lib/Either").Right<{
|
|
1176
|
+
__TYPE__: "SeparatorContent";
|
|
1177
|
+
}> | import("fp-ts/lib/Either").Right<{
|
|
1178
|
+
content: {
|
|
1179
|
+
type: "tableRow";
|
|
1180
|
+
content: ({
|
|
1181
|
+
type: "tableHeader";
|
|
1182
|
+
content: {
|
|
1183
|
+
__TYPE__: "StructuredTextContent";
|
|
1184
|
+
value: ({
|
|
1185
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1408
1186
|
content: {
|
|
1409
1187
|
text: string;
|
|
1410
1188
|
} & {
|
|
@@ -1464,10 +1242,13 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1464
1242
|
label?: string;
|
|
1465
1243
|
direction?: string;
|
|
1466
1244
|
})[];
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1245
|
+
};
|
|
1246
|
+
} | {
|
|
1247
|
+
type: "tableCell";
|
|
1248
|
+
content: {
|
|
1249
|
+
__TYPE__: "StructuredTextContent";
|
|
1250
|
+
value: ({
|
|
1251
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1471
1252
|
content: {
|
|
1472
1253
|
text: string;
|
|
1473
1254
|
} & {
|
|
@@ -1527,140 +1308,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1527
1308
|
label?: string;
|
|
1528
1309
|
direction?: string;
|
|
1529
1310
|
})[];
|
|
1530
|
-
}
|
|
1531
|
-
}[];
|
|
1532
|
-
})[];
|
|
1533
|
-
}> | import("fp-ts/lib/Either").Right<{
|
|
1534
|
-
__TYPE__: "SeparatorContent";
|
|
1535
|
-
}> | import("fp-ts/lib/Either").Right<{
|
|
1536
|
-
content: {
|
|
1537
|
-
type: "tableRow";
|
|
1538
|
-
content: ({
|
|
1539
|
-
type: "tableHeader";
|
|
1540
|
-
content: ({
|
|
1541
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
1542
|
-
content: {
|
|
1543
|
-
text: string;
|
|
1544
|
-
} & {
|
|
1545
|
-
spans?: ({
|
|
1546
|
-
data: ({
|
|
1547
|
-
__TYPE__: "ImageLink";
|
|
1548
|
-
} & {
|
|
1549
|
-
kind: "image";
|
|
1550
|
-
id: string;
|
|
1551
|
-
url: string;
|
|
1552
|
-
height: string;
|
|
1553
|
-
width: string;
|
|
1554
|
-
size: string;
|
|
1555
|
-
name: string;
|
|
1556
|
-
} & {
|
|
1557
|
-
date?: string | null | undefined;
|
|
1558
|
-
}) | ({
|
|
1559
|
-
__TYPE__: "FileLink";
|
|
1560
|
-
} & {
|
|
1561
|
-
kind: "file";
|
|
1562
|
-
id: string;
|
|
1563
|
-
url: string;
|
|
1564
|
-
name: string;
|
|
1565
|
-
size: string;
|
|
1566
|
-
} & {
|
|
1567
|
-
date?: string | null | undefined;
|
|
1568
|
-
}) | ({
|
|
1569
|
-
__TYPE__: "DocumentLink";
|
|
1570
|
-
} & {
|
|
1571
|
-
id: string;
|
|
1572
|
-
}) | ({
|
|
1573
|
-
__TYPE__: "ExternalLink";
|
|
1574
|
-
} & {
|
|
1575
|
-
url: string;
|
|
1576
|
-
} & {
|
|
1577
|
-
kind?: "web";
|
|
1578
|
-
target?: string | null | undefined;
|
|
1579
|
-
preview?: {
|
|
1580
|
-
title?: string;
|
|
1581
|
-
} | null | undefined;
|
|
1582
|
-
});
|
|
1583
|
-
start: number;
|
|
1584
|
-
end: number;
|
|
1585
|
-
type: "hyperlink";
|
|
1586
|
-
} | {
|
|
1587
|
-
data: string;
|
|
1588
|
-
start: number;
|
|
1589
|
-
end: number;
|
|
1590
|
-
type: "label";
|
|
1591
|
-
} | {
|
|
1592
|
-
start: number;
|
|
1593
|
-
end: number;
|
|
1594
|
-
type: "strong" | "em" | "list-item";
|
|
1595
|
-
})[];
|
|
1596
|
-
};
|
|
1597
|
-
} & {
|
|
1598
|
-
label?: string;
|
|
1599
|
-
direction?: string;
|
|
1600
|
-
})[];
|
|
1601
|
-
} | {
|
|
1602
|
-
type: "tableCell";
|
|
1603
|
-
content: ({
|
|
1604
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
1605
|
-
content: {
|
|
1606
|
-
text: string;
|
|
1607
|
-
} & {
|
|
1608
|
-
spans?: ({
|
|
1609
|
-
data: ({
|
|
1610
|
-
__TYPE__: "ImageLink";
|
|
1611
|
-
} & {
|
|
1612
|
-
kind: "image";
|
|
1613
|
-
id: string;
|
|
1614
|
-
url: string;
|
|
1615
|
-
height: string;
|
|
1616
|
-
width: string;
|
|
1617
|
-
size: string;
|
|
1618
|
-
name: string;
|
|
1619
|
-
} & {
|
|
1620
|
-
date?: string | null | undefined;
|
|
1621
|
-
}) | ({
|
|
1622
|
-
__TYPE__: "FileLink";
|
|
1623
|
-
} & {
|
|
1624
|
-
kind: "file";
|
|
1625
|
-
id: string;
|
|
1626
|
-
url: string;
|
|
1627
|
-
name: string;
|
|
1628
|
-
size: string;
|
|
1629
|
-
} & {
|
|
1630
|
-
date?: string | null | undefined;
|
|
1631
|
-
}) | ({
|
|
1632
|
-
__TYPE__: "DocumentLink";
|
|
1633
|
-
} & {
|
|
1634
|
-
id: string;
|
|
1635
|
-
}) | ({
|
|
1636
|
-
__TYPE__: "ExternalLink";
|
|
1637
|
-
} & {
|
|
1638
|
-
url: string;
|
|
1639
|
-
} & {
|
|
1640
|
-
kind?: "web";
|
|
1641
|
-
target?: string | null | undefined;
|
|
1642
|
-
preview?: {
|
|
1643
|
-
title?: string;
|
|
1644
|
-
} | null | undefined;
|
|
1645
|
-
});
|
|
1646
|
-
start: number;
|
|
1647
|
-
end: number;
|
|
1648
|
-
type: "hyperlink";
|
|
1649
|
-
} | {
|
|
1650
|
-
data: string;
|
|
1651
|
-
start: number;
|
|
1652
|
-
end: number;
|
|
1653
|
-
type: "label";
|
|
1654
|
-
} | {
|
|
1655
|
-
start: number;
|
|
1656
|
-
end: number;
|
|
1657
|
-
type: "strong" | "em" | "list-item";
|
|
1658
|
-
})[];
|
|
1659
|
-
};
|
|
1660
|
-
} & {
|
|
1661
|
-
label?: string;
|
|
1662
|
-
direction?: string;
|
|
1663
|
-
})[];
|
|
1311
|
+
};
|
|
1664
1312
|
})[];
|
|
1665
1313
|
}[];
|
|
1666
1314
|
} & {
|
|
@@ -2027,7 +1675,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
2027
1675
|
label?: string | null | undefined;
|
|
2028
1676
|
direction?: string | null | undefined;
|
|
2029
1677
|
}) | ({
|
|
2030
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl"
|
|
1678
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2031
1679
|
content: {
|
|
2032
1680
|
text: string;
|
|
2033
1681
|
} & {
|
|
@@ -2086,14 +1734,18 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
2086
1734
|
} & {
|
|
2087
1735
|
label?: string;
|
|
2088
1736
|
direction?: string;
|
|
2089
|
-
})
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
1737
|
+
}))[];
|
|
1738
|
+
} | {
|
|
1739
|
+
__TYPE__: "SeparatorContent";
|
|
1740
|
+
} | ({
|
|
1741
|
+
content: {
|
|
1742
|
+
type: "tableRow";
|
|
1743
|
+
content: ({
|
|
1744
|
+
type: "tableHeader";
|
|
1745
|
+
content: {
|
|
1746
|
+
__TYPE__: "StructuredTextContent";
|
|
1747
|
+
value: ({
|
|
1748
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2097
1749
|
content: {
|
|
2098
1750
|
text: string;
|
|
2099
1751
|
} & {
|
|
@@ -2153,10 +1805,13 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
2153
1805
|
label?: string;
|
|
2154
1806
|
direction?: string;
|
|
2155
1807
|
})[];
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
1808
|
+
};
|
|
1809
|
+
} | {
|
|
1810
|
+
type: "tableCell";
|
|
1811
|
+
content: {
|
|
1812
|
+
__TYPE__: "StructuredTextContent";
|
|
1813
|
+
value: ({
|
|
1814
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2160
1815
|
content: {
|
|
2161
1816
|
text: string;
|
|
2162
1817
|
} & {
|
|
@@ -2216,140 +1871,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
2216
1871
|
label?: string;
|
|
2217
1872
|
direction?: string;
|
|
2218
1873
|
})[];
|
|
2219
|
-
}
|
|
2220
|
-
}[];
|
|
2221
|
-
})[];
|
|
2222
|
-
} | {
|
|
2223
|
-
__TYPE__: "SeparatorContent";
|
|
2224
|
-
} | ({
|
|
2225
|
-
content: {
|
|
2226
|
-
type: "tableRow";
|
|
2227
|
-
content: ({
|
|
2228
|
-
type: "tableHeader";
|
|
2229
|
-
content: ({
|
|
2230
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
2231
|
-
content: {
|
|
2232
|
-
text: string;
|
|
2233
|
-
} & {
|
|
2234
|
-
spans?: ({
|
|
2235
|
-
data: ({
|
|
2236
|
-
__TYPE__: "ImageLink";
|
|
2237
|
-
} & {
|
|
2238
|
-
kind: "image";
|
|
2239
|
-
id: string;
|
|
2240
|
-
url: string;
|
|
2241
|
-
height: string;
|
|
2242
|
-
width: string;
|
|
2243
|
-
size: string;
|
|
2244
|
-
name: string;
|
|
2245
|
-
} & {
|
|
2246
|
-
date?: string | null | undefined;
|
|
2247
|
-
}) | ({
|
|
2248
|
-
__TYPE__: "FileLink";
|
|
2249
|
-
} & {
|
|
2250
|
-
kind: "file";
|
|
2251
|
-
id: string;
|
|
2252
|
-
url: string;
|
|
2253
|
-
name: string;
|
|
2254
|
-
size: string;
|
|
2255
|
-
} & {
|
|
2256
|
-
date?: string | null | undefined;
|
|
2257
|
-
}) | ({
|
|
2258
|
-
__TYPE__: "DocumentLink";
|
|
2259
|
-
} & {
|
|
2260
|
-
id: string;
|
|
2261
|
-
}) | ({
|
|
2262
|
-
__TYPE__: "ExternalLink";
|
|
2263
|
-
} & {
|
|
2264
|
-
url: string;
|
|
2265
|
-
} & {
|
|
2266
|
-
kind?: "web";
|
|
2267
|
-
target?: string | null | undefined;
|
|
2268
|
-
preview?: {
|
|
2269
|
-
title?: string;
|
|
2270
|
-
} | null | undefined;
|
|
2271
|
-
});
|
|
2272
|
-
start: number;
|
|
2273
|
-
end: number;
|
|
2274
|
-
type: "hyperlink";
|
|
2275
|
-
} | {
|
|
2276
|
-
data: string;
|
|
2277
|
-
start: number;
|
|
2278
|
-
end: number;
|
|
2279
|
-
type: "label";
|
|
2280
|
-
} | {
|
|
2281
|
-
start: number;
|
|
2282
|
-
end: number;
|
|
2283
|
-
type: "strong" | "em" | "list-item";
|
|
2284
|
-
})[];
|
|
2285
|
-
};
|
|
2286
|
-
} & {
|
|
2287
|
-
label?: string;
|
|
2288
|
-
direction?: string;
|
|
2289
|
-
})[];
|
|
2290
|
-
} | {
|
|
2291
|
-
type: "tableCell";
|
|
2292
|
-
content: ({
|
|
2293
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
|
|
2294
|
-
content: {
|
|
2295
|
-
text: string;
|
|
2296
|
-
} & {
|
|
2297
|
-
spans?: ({
|
|
2298
|
-
data: ({
|
|
2299
|
-
__TYPE__: "ImageLink";
|
|
2300
|
-
} & {
|
|
2301
|
-
kind: "image";
|
|
2302
|
-
id: string;
|
|
2303
|
-
url: string;
|
|
2304
|
-
height: string;
|
|
2305
|
-
width: string;
|
|
2306
|
-
size: string;
|
|
2307
|
-
name: string;
|
|
2308
|
-
} & {
|
|
2309
|
-
date?: string | null | undefined;
|
|
2310
|
-
}) | ({
|
|
2311
|
-
__TYPE__: "FileLink";
|
|
2312
|
-
} & {
|
|
2313
|
-
kind: "file";
|
|
2314
|
-
id: string;
|
|
2315
|
-
url: string;
|
|
2316
|
-
name: string;
|
|
2317
|
-
size: string;
|
|
2318
|
-
} & {
|
|
2319
|
-
date?: string | null | undefined;
|
|
2320
|
-
}) | ({
|
|
2321
|
-
__TYPE__: "DocumentLink";
|
|
2322
|
-
} & {
|
|
2323
|
-
id: string;
|
|
2324
|
-
}) | ({
|
|
2325
|
-
__TYPE__: "ExternalLink";
|
|
2326
|
-
} & {
|
|
2327
|
-
url: string;
|
|
2328
|
-
} & {
|
|
2329
|
-
kind?: "web";
|
|
2330
|
-
target?: string | null | undefined;
|
|
2331
|
-
preview?: {
|
|
2332
|
-
title?: string;
|
|
2333
|
-
} | null | undefined;
|
|
2334
|
-
});
|
|
2335
|
-
start: number;
|
|
2336
|
-
end: number;
|
|
2337
|
-
type: "hyperlink";
|
|
2338
|
-
} | {
|
|
2339
|
-
data: string;
|
|
2340
|
-
start: number;
|
|
2341
|
-
end: number;
|
|
2342
|
-
type: "label";
|
|
2343
|
-
} | {
|
|
2344
|
-
start: number;
|
|
2345
|
-
end: number;
|
|
2346
|
-
type: "strong" | "em" | "list-item";
|
|
2347
|
-
})[];
|
|
2348
|
-
};
|
|
2349
|
-
} & {
|
|
2350
|
-
label?: string;
|
|
2351
|
-
direction?: string;
|
|
2352
|
-
})[];
|
|
1874
|
+
};
|
|
2353
1875
|
})[];
|
|
2354
1876
|
}[];
|
|
2355
1877
|
} & {
|