@prismicio/types-internal 1.5.3 → 2.0.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/common/WidgetKey.d.ts +3 -0
- package/lib/common/WidgetKey.js +8 -0
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +4 -0
- package/lib/content/Document.d.ts +4285 -2573
- package/lib/content/Document.js +87 -10
- package/lib/content/LegacyContentCtx.d.ts +41 -0
- package/lib/content/LegacyContentCtx.js +65 -0
- package/lib/content/fields/EmptyContent.d.ts +16 -0
- package/lib/content/fields/EmptyContent.js +30 -0
- package/lib/content/fields/GroupContent.d.ts +1063 -364
- package/lib/content/fields/GroupContent.js +65 -6
- package/lib/content/fields/UIDContent.d.ts +10 -1
- package/lib/content/fields/UIDContent.js +17 -4
- package/lib/content/fields/WidgetContent.d.ts +6820 -0
- package/lib/content/fields/WidgetContent.js +57 -0
- package/lib/content/fields/index.d.ts +1 -2989
- package/lib/content/fields/index.js +1 -18
- package/lib/content/fields/nestable/BooleanContent.d.ts +10 -1
- package/lib/content/fields/nestable/BooleanContent.js +17 -4
- package/lib/content/fields/nestable/EmbedContent.d.ts +56 -5
- package/lib/content/fields/nestable/EmbedContent.js +57 -6
- package/lib/content/fields/nestable/FieldContent/ColorContent.d.ts +18 -0
- package/lib/content/fields/nestable/FieldContent/ColorContent.js +34 -0
- package/lib/content/fields/nestable/FieldContent/DateContent.d.ts +18 -0
- package/lib/content/fields/nestable/FieldContent/DateContent.js +34 -0
- package/lib/content/fields/nestable/FieldContent/NumberContent.d.ts +18 -0
- package/lib/content/fields/nestable/FieldContent/NumberContent.js +34 -0
- package/lib/content/fields/nestable/FieldContent/RangeContent.d.ts +18 -0
- package/lib/content/fields/nestable/FieldContent/RangeContent.js +34 -0
- package/lib/content/fields/nestable/FieldContent/SelectContent.d.ts +18 -0
- package/lib/content/fields/nestable/FieldContent/SelectContent.js +34 -0
- package/lib/content/fields/nestable/FieldContent/TextContent.d.ts +18 -0
- package/lib/content/fields/nestable/FieldContent/TextContent.js +34 -0
- package/lib/content/fields/nestable/FieldContent/TimestampContent.d.ts +18 -0
- package/lib/content/fields/nestable/FieldContent/TimestampContent.js +34 -0
- package/lib/content/fields/nestable/FieldContent/common.d.ts +1 -0
- package/lib/content/fields/nestable/FieldContent/common.js +4 -0
- package/lib/content/fields/nestable/FieldContent/index.d.ts +49 -0
- package/lib/content/fields/nestable/FieldContent/index.js +38 -0
- package/lib/content/fields/nestable/FieldContent.d.ts +7 -1
- package/lib/content/fields/nestable/FieldContent.js +19 -4
- package/lib/content/fields/nestable/GeoPointContent.d.ts +19 -4
- package/lib/content/fields/nestable/GeoPointContent.js +22 -5
- package/lib/content/fields/nestable/ImageContent.d.ts +109 -11
- package/lib/content/fields/nestable/ImageContent.js +64 -6
- package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +10 -1
- package/lib/content/fields/nestable/IntegrationFieldContent.js +20 -4
- package/lib/content/fields/nestable/LinkContent.d.ts +240 -87
- package/lib/content/fields/nestable/LinkContent.js +133 -36
- package/lib/content/fields/nestable/NestableContent.d.ts +711 -251
- package/lib/content/fields/nestable/NestableContent.js +116 -13
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +594 -0
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +151 -0
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +489 -0
- package/lib/content/fields/nestable/RichTextContent/index.js +27 -0
- package/lib/content/fields/nestable/SeparatorContent.d.ts +8 -1
- package/lib/content/fields/nestable/SeparatorContent.js +15 -4
- package/lib/content/fields/slices/CompositeSliceContent.d.ts +296 -362
- package/lib/content/fields/slices/RepeatableContent.d.ts +148 -181
- package/lib/content/fields/slices/SharedSliceContent.d.ts +296 -362
- package/lib/content/fields/slices/SimpleSliceContent.d.ts +296 -362
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1709 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +81 -0
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +582 -0
- package/lib/content/fields/slices/Slice/RepeatableContent.js +18 -0
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1713 -0
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +98 -0
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +1429 -0
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +24 -0
- package/lib/content/fields/slices/Slice/index.d.ts +3216 -0
- package/lib/content/fields/slices/Slice/index.js +41 -0
- package/lib/content/fields/slices/SliceItem.d.ts +3498 -0
- package/lib/content/fields/slices/SliceItem.js +61 -0
- package/lib/content/fields/slices/SlicesContent.d.ts +4243 -3576
- package/lib/content/fields/slices/SlicesContent.js +28 -18
- package/lib/content/fields/slices/index.d.ts +4 -3
- package/lib/content/fields/slices/index.js +4 -3
- package/lib/content/index.d.ts +1 -0
- package/lib/content/index.js +1 -0
- package/lib/content/utils.d.ts +10 -0
- package/lib/content/utils.js +19 -0
- package/lib/customtypes/CustomType.d.ts +366 -366
- package/lib/customtypes/CustomType.js +4 -7
- package/lib/customtypes/Section.d.ts +366 -366
- package/lib/customtypes/Section.js +2 -2
- package/lib/customtypes/diff/SharedSlice.d.ts +4 -4
- package/lib/customtypes/diff/Variation.d.ts +4 -4
- package/lib/customtypes/widgets/Group.d.ts +1 -0
- package/lib/customtypes/widgets/Group.js +6 -5
- package/lib/customtypes/widgets/UID.d.ts +1 -0
- package/lib/customtypes/widgets/UID.js +3 -2
- package/lib/customtypes/widgets/Widget.d.ts +384 -362
- package/lib/customtypes/widgets/Widget.js +29 -8
- package/lib/customtypes/widgets/index.d.ts +6 -7
- package/lib/customtypes/widgets/index.js +6 -11
- package/lib/customtypes/widgets/nestable/BooleanField.d.ts +10 -3
- package/lib/customtypes/widgets/nestable/BooleanField.js +6 -6
- package/lib/customtypes/widgets/nestable/Color.d.ts +8 -3
- package/lib/customtypes/widgets/nestable/Color.js +6 -6
- package/lib/customtypes/widgets/nestable/Date.d.ts +9 -3
- package/lib/customtypes/widgets/nestable/Date.js +6 -6
- package/lib/customtypes/widgets/nestable/Embed.d.ts +9 -3
- package/lib/customtypes/widgets/nestable/Embed.js +6 -6
- package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +7 -3
- package/lib/customtypes/widgets/nestable/GeoPoint.js +6 -6
- package/lib/customtypes/widgets/nestable/Image.d.ts +25 -3
- package/lib/customtypes/widgets/nestable/Image.js +8 -8
- package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +9 -3
- package/lib/customtypes/widgets/nestable/IntegrationField.js +6 -6
- package/lib/customtypes/widgets/nestable/Link.d.ts +14 -2
- package/lib/customtypes/widgets/nestable/Link.js +7 -6
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +3 -3
- package/lib/customtypes/widgets/nestable/NestableWidget.js +30 -30
- package/lib/customtypes/widgets/nestable/Number.d.ts +11 -3
- package/lib/customtypes/widgets/nestable/Number.js +6 -6
- package/lib/customtypes/widgets/nestable/Range.d.ts +11 -3
- package/lib/customtypes/widgets/nestable/Range.js +6 -6
- package/lib/customtypes/widgets/nestable/RichText.d.ts +1 -0
- package/lib/customtypes/widgets/nestable/RichText.js +3 -3
- package/lib/customtypes/widgets/nestable/Select.d.ts +10 -3
- package/lib/customtypes/widgets/nestable/Select.js +6 -6
- package/lib/customtypes/widgets/nestable/Separator.d.ts +7 -3
- package/lib/customtypes/widgets/nestable/Separator.js +6 -6
- package/lib/customtypes/widgets/nestable/Text.d.ts +9 -2
- package/lib/customtypes/widgets/nestable/Text.js +7 -6
- package/lib/customtypes/widgets/nestable/Timestamp.d.ts +9 -3
- package/lib/customtypes/widgets/nestable/Timestamp.js +6 -6
- package/lib/customtypes/widgets/nestable/index.d.ts +15 -15
- package/lib/customtypes/widgets/nestable/index.js +15 -31
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +1 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.js +7 -6
- package/lib/customtypes/widgets/slices/LegacySlice.js +2 -2
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +1 -0
- package/lib/customtypes/widgets/slices/SharedSlice.js +7 -7
- package/lib/customtypes/widgets/slices/SharedSliceRef.js +2 -2
- package/lib/customtypes/widgets/slices/Slices.d.ts +364 -362
- package/lib/customtypes/widgets/slices/Slices.js +8 -8
- package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +6 -5
- package/lib/customtypes/widgets/slices/SlicesTypes.js +8 -4
- package/lib/documents/DocumentData.d.ts +3 -14
- package/lib/documents/DocumentData.js +5 -60
- package/lib/documents/widgets/nestable/ImageContent.d.ts +1 -1
- package/lib/documents/widgets/nestable/ImageContent.js +2 -2
- package/lib/utils/Objects.d.ts +1 -0
- package/lib/utils/Objects.js +10 -1
- package/package.json +1 -1
- package/src/common/WidgetKey.ts +13 -0
- package/src/common/index.ts +1 -0
- package/src/content/Document.ts +129 -16
- package/src/content/LegacyContentCtx.ts +57 -0
- package/src/content/fields/EmptyContent.ts +45 -0
- package/src/content/fields/GroupContent.ts +103 -8
- package/src/content/fields/UIDContent.ts +33 -3
- package/src/content/fields/WidgetContent.ts +76 -0
- package/src/content/fields/index.ts +1 -23
- package/src/content/fields/nestable/BooleanContent.ts +32 -3
- package/src/content/fields/nestable/EmbedContent.ts +79 -8
- package/src/content/fields/nestable/FieldContent/ColorContent.ts +48 -0
- package/src/content/fields/nestable/FieldContent/DateContent.ts +48 -0
- package/src/content/fields/nestable/FieldContent/NumberContent.ts +48 -0
- package/src/content/fields/nestable/FieldContent/RangeContent.ts +48 -0
- package/src/content/fields/nestable/FieldContent/SelectContent.ts +48 -0
- package/src/content/fields/nestable/FieldContent/TextContent.ts +48 -0
- package/src/content/fields/nestable/FieldContent/TimestampContent.ts +48 -0
- package/src/content/fields/nestable/FieldContent/common.ts +1 -0
- package/src/content/fields/nestable/FieldContent/index.ts +40 -0
- package/src/content/fields/nestable/GeoPointContent.ts +38 -7
- package/src/content/fields/nestable/ImageContent.ts +91 -11
- package/src/content/fields/nestable/IntegrationFieldContent.ts +42 -3
- package/src/content/fields/nestable/LinkContent.ts +208 -47
- package/src/content/fields/nestable/NestableContent.ts +180 -24
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +205 -0
- package/src/content/fields/nestable/RichTextContent/index.ts +43 -0
- package/src/content/fields/nestable/SeparatorContent.ts +26 -3
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +118 -0
- package/src/content/fields/slices/{RepeatableContent.ts → Slice/RepeatableContent.ts} +7 -4
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +129 -0
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +30 -0
- package/src/content/fields/slices/Slice/index.ts +47 -0
- package/src/content/fields/slices/SliceItem.ts +83 -0
- package/src/content/fields/slices/SlicesContent.ts +47 -19
- package/src/content/fields/slices/index.ts +4 -3
- package/src/content/index.ts +1 -0
- package/src/content/utils.ts +20 -0
- package/src/customtypes/CustomType.ts +4 -10
- package/src/customtypes/Section.ts +1 -1
- package/src/customtypes/widgets/Group.ts +4 -4
- package/src/customtypes/widgets/UID.ts +3 -2
- package/src/customtypes/widgets/Widget.ts +53 -7
- package/src/customtypes/widgets/index.ts +6 -7
- package/src/customtypes/widgets/nestable/BooleanField.ts +7 -8
- package/src/customtypes/widgets/nestable/Color.ts +6 -8
- package/src/customtypes/widgets/nestable/Date.ts +7 -8
- package/src/customtypes/widgets/nestable/Embed.ts +7 -8
- package/src/customtypes/widgets/nestable/GeoPoint.ts +7 -8
- package/src/customtypes/widgets/nestable/Image.ts +9 -10
- package/src/customtypes/widgets/nestable/IntegrationField.ts +6 -8
- package/src/customtypes/widgets/nestable/Link.ts +7 -6
- package/src/customtypes/widgets/nestable/NestableWidget.ts +17 -18
- package/src/customtypes/widgets/nestable/Number.ts +7 -8
- package/src/customtypes/widgets/nestable/Range.ts +7 -8
- package/src/customtypes/widgets/nestable/RichText.ts +3 -2
- package/src/customtypes/widgets/nestable/Select.ts +7 -8
- package/src/customtypes/widgets/nestable/Separator.ts +7 -8
- package/src/customtypes/widgets/nestable/Text.ts +7 -6
- package/src/customtypes/widgets/nestable/Timestamp.ts +7 -8
- package/src/customtypes/widgets/nestable/index.ts +15 -15
- package/src/customtypes/widgets/slices/CompositeSlice.ts +5 -4
- package/src/customtypes/widgets/slices/LegacySlice.ts +1 -1
- package/src/customtypes/widgets/slices/SharedSlice.ts +5 -4
- package/src/customtypes/widgets/slices/SharedSliceRef.ts +2 -2
- package/src/customtypes/widgets/slices/Slices.ts +7 -6
- package/src/customtypes/widgets/slices/SlicesTypes.ts +10 -5
- package/src/utils/Objects.ts +12 -0
- package/src/content/fields/nestable/FieldContent.ts +0 -25
- package/src/content/fields/nestable/RichTextContent.ts +0 -32
- package/src/content/fields/slices/CompositeSliceContent.ts +0 -14
- package/src/content/fields/slices/SharedSliceContent.ts +0 -14
- package/src/content/fields/slices/SimpleSliceContent.ts +0 -7
- package/src/customtypes/widgets/WidgetTypes.ts +0 -24
- package/src/documents/DocumentData.ts +0 -112
- package/src/documents/index.ts +0 -2
- package/src/documents/widgets/EmptyContent.ts +0 -8
- package/src/documents/widgets/GroupContent.ts +0 -91
- package/src/documents/widgets/SimpleWidgetContent.ts +0 -96
- package/src/documents/widgets/StaticWidgetContent.ts +0 -46
- package/src/documents/widgets/UIDContent.ts +0 -18
- package/src/documents/widgets/index.ts +0 -70
- package/src/documents/widgets/nestable/BooleanContent.ts +0 -21
- package/src/documents/widgets/nestable/EmbedContent.ts +0 -56
- package/src/documents/widgets/nestable/FieldContent.ts +0 -53
- package/src/documents/widgets/nestable/GeoPointContent.ts +0 -18
- package/src/documents/widgets/nestable/ImageContent.ts +0 -51
- package/src/documents/widgets/nestable/IntegrationFieldsContent.ts +0 -26
- package/src/documents/widgets/nestable/Link/DocumentLink.ts +0 -18
- package/src/documents/widgets/nestable/Link/ExternalLink.ts +0 -31
- package/src/documents/widgets/nestable/Link/FileLink.ts +0 -30
- package/src/documents/widgets/nestable/Link/ImageLink.ts +0 -31
- package/src/documents/widgets/nestable/Link/LinkContent.ts +0 -25
- package/src/documents/widgets/nestable/Link/index.ts +0 -35
- package/src/documents/widgets/nestable/SeparatorContent.ts +0 -13
- package/src/documents/widgets/nestable/StructuredTextContent/Block.ts +0 -126
- package/src/documents/widgets/nestable/StructuredTextContent/index.ts +0 -25
- package/src/documents/widgets/nestable/index.ts +0 -35
- package/src/documents/widgets/slices/CompositeSliceContent.ts +0 -77
- package/src/documents/widgets/slices/SharedSliceContent.ts +0 -94
- package/src/documents/widgets/slices/SimpleSliceContent.ts +0 -4
- package/src/documents/widgets/slices/SliceWidgetContent.ts +0 -51
- package/src/documents/widgets/slices/SlicesContent.ts +0 -91
- package/src/documents/widgets/slices/index.ts +0 -5
- package/src/index.ts +0 -3
|
@@ -667,7 +667,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
667
667
|
}>]>>]>>;
|
|
668
668
|
}>>;
|
|
669
669
|
}>]>>, t.Type<{
|
|
670
|
-
type: "
|
|
670
|
+
type: "Choice" | "Slices";
|
|
671
671
|
} & {
|
|
672
672
|
fieldset?: string | null | undefined;
|
|
673
673
|
config?: {
|
|
@@ -757,7 +757,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
757
757
|
label?: string | null | undefined;
|
|
758
758
|
useAsTitle?: boolean;
|
|
759
759
|
placeholder?: string;
|
|
760
|
-
select?: "
|
|
760
|
+
select?: "media" | "document" | "web" | null;
|
|
761
761
|
customtypes?: readonly string[];
|
|
762
762
|
masks?: readonly string[];
|
|
763
763
|
tags?: readonly string[];
|
|
@@ -836,6 +836,175 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
836
836
|
placeholder?: string;
|
|
837
837
|
default?: string;
|
|
838
838
|
};
|
|
839
|
+
}) | ({
|
|
840
|
+
type: "Group";
|
|
841
|
+
} & {
|
|
842
|
+
fieldset?: string | null | undefined;
|
|
843
|
+
icon?: string;
|
|
844
|
+
description?: string;
|
|
845
|
+
config?: {
|
|
846
|
+
label?: string | null | undefined;
|
|
847
|
+
repeat?: boolean;
|
|
848
|
+
fields?: {
|
|
849
|
+
[x: string]: ({
|
|
850
|
+
type: "Boolean";
|
|
851
|
+
} & {
|
|
852
|
+
config?: {
|
|
853
|
+
label?: string | null | undefined;
|
|
854
|
+
default_value?: boolean;
|
|
855
|
+
placeholder_true?: string;
|
|
856
|
+
placeholder_false?: string;
|
|
857
|
+
};
|
|
858
|
+
}) | ({
|
|
859
|
+
type: "Color";
|
|
860
|
+
} & {
|
|
861
|
+
fieldset?: string | null | undefined;
|
|
862
|
+
config?: {
|
|
863
|
+
label?: string | null | undefined;
|
|
864
|
+
placeholder?: string;
|
|
865
|
+
};
|
|
866
|
+
}) | ({
|
|
867
|
+
type: "Date";
|
|
868
|
+
} & {
|
|
869
|
+
fieldset?: string | null | undefined;
|
|
870
|
+
config?: {
|
|
871
|
+
label?: string | null | undefined;
|
|
872
|
+
placeholder?: string;
|
|
873
|
+
default?: string;
|
|
874
|
+
};
|
|
875
|
+
}) | ({
|
|
876
|
+
type: "Embed";
|
|
877
|
+
} & {
|
|
878
|
+
fieldset?: string | null | undefined;
|
|
879
|
+
config?: {
|
|
880
|
+
label?: string | null | undefined;
|
|
881
|
+
placeholder?: string;
|
|
882
|
+
useAsTitle?: boolean;
|
|
883
|
+
};
|
|
884
|
+
}) | ({
|
|
885
|
+
type: "GeoPoint";
|
|
886
|
+
} & {
|
|
887
|
+
fieldset?: string | null | undefined;
|
|
888
|
+
config?: {
|
|
889
|
+
label?: string | null | undefined;
|
|
890
|
+
};
|
|
891
|
+
}) | ({
|
|
892
|
+
type: "Image";
|
|
893
|
+
} & {
|
|
894
|
+
fieldset?: string | null | undefined;
|
|
895
|
+
config?: {
|
|
896
|
+
label?: string | null | undefined;
|
|
897
|
+
placeholder?: string;
|
|
898
|
+
constraint?: {
|
|
899
|
+
width?: number | null;
|
|
900
|
+
height?: number | null;
|
|
901
|
+
};
|
|
902
|
+
thumbnails?: readonly ({
|
|
903
|
+
name: string;
|
|
904
|
+
} & {
|
|
905
|
+
width?: number | null;
|
|
906
|
+
height?: number | null;
|
|
907
|
+
})[];
|
|
908
|
+
};
|
|
909
|
+
}) | ({
|
|
910
|
+
type: "IntegrationFields";
|
|
911
|
+
} & {
|
|
912
|
+
fieldset?: string | null | undefined;
|
|
913
|
+
config?: {
|
|
914
|
+
label?: string | null | undefined;
|
|
915
|
+
placeholder?: string;
|
|
916
|
+
catalog?: string;
|
|
917
|
+
};
|
|
918
|
+
}) | ({
|
|
919
|
+
type: "Link";
|
|
920
|
+
} & {
|
|
921
|
+
fieldset?: string | null | undefined;
|
|
922
|
+
config?: {
|
|
923
|
+
label?: string | null | undefined;
|
|
924
|
+
useAsTitle?: boolean;
|
|
925
|
+
placeholder?: string;
|
|
926
|
+
select?: "media" | "document" | "web" | null;
|
|
927
|
+
customtypes?: readonly string[];
|
|
928
|
+
masks?: readonly string[];
|
|
929
|
+
tags?: readonly string[];
|
|
930
|
+
allowTargetBlank?: boolean;
|
|
931
|
+
};
|
|
932
|
+
}) | ({
|
|
933
|
+
type: "Number";
|
|
934
|
+
} & {
|
|
935
|
+
fieldset?: string | null | undefined;
|
|
936
|
+
config?: {
|
|
937
|
+
label?: string | null | undefined;
|
|
938
|
+
placeholder?: string;
|
|
939
|
+
min?: number;
|
|
940
|
+
max?: number;
|
|
941
|
+
step?: number;
|
|
942
|
+
};
|
|
943
|
+
}) | ({
|
|
944
|
+
type: "Range";
|
|
945
|
+
} & {
|
|
946
|
+
fieldset?: string | null | undefined;
|
|
947
|
+
config?: {
|
|
948
|
+
label?: string | null | undefined;
|
|
949
|
+
placeholder?: string;
|
|
950
|
+
min?: number;
|
|
951
|
+
max?: number;
|
|
952
|
+
step?: number;
|
|
953
|
+
};
|
|
954
|
+
}) | ({
|
|
955
|
+
type: "StructuredText";
|
|
956
|
+
} & {
|
|
957
|
+
fieldset?: string | null | undefined;
|
|
958
|
+
config?: {
|
|
959
|
+
label?: string | null | undefined;
|
|
960
|
+
placeholder?: string;
|
|
961
|
+
useAsTitle?: boolean;
|
|
962
|
+
single?: string;
|
|
963
|
+
multi?: string;
|
|
964
|
+
imageConstraint?: {
|
|
965
|
+
width?: number | null;
|
|
966
|
+
height?: number | null;
|
|
967
|
+
};
|
|
968
|
+
labels?: readonly string[];
|
|
969
|
+
allowTargetBlank?: boolean;
|
|
970
|
+
};
|
|
971
|
+
}) | ({
|
|
972
|
+
type: "Select";
|
|
973
|
+
} & {
|
|
974
|
+
fieldset?: string | null | undefined;
|
|
975
|
+
config?: {
|
|
976
|
+
label?: string | null | undefined;
|
|
977
|
+
placeholder?: string;
|
|
978
|
+
default_value?: string;
|
|
979
|
+
options?: readonly string[];
|
|
980
|
+
};
|
|
981
|
+
}) | ({
|
|
982
|
+
type: "Separator";
|
|
983
|
+
} & {
|
|
984
|
+
config?: {
|
|
985
|
+
label?: string | null | undefined;
|
|
986
|
+
};
|
|
987
|
+
}) | ({
|
|
988
|
+
type: "Text";
|
|
989
|
+
} & {
|
|
990
|
+
fieldset?: string | null | undefined;
|
|
991
|
+
config?: {
|
|
992
|
+
label?: string | null | undefined;
|
|
993
|
+
useAsTitle?: boolean;
|
|
994
|
+
placeholder?: string;
|
|
995
|
+
};
|
|
996
|
+
}) | ({
|
|
997
|
+
type: "Timestamp";
|
|
998
|
+
} & {
|
|
999
|
+
fieldset?: string | null | undefined;
|
|
1000
|
+
config?: {
|
|
1001
|
+
label?: string | null | undefined;
|
|
1002
|
+
placeholder?: string;
|
|
1003
|
+
default?: string;
|
|
1004
|
+
};
|
|
1005
|
+
});
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
839
1008
|
}) | ({
|
|
840
1009
|
type: "Slice";
|
|
841
1010
|
} & {
|
|
@@ -921,7 +1090,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
921
1090
|
label?: string | null | undefined;
|
|
922
1091
|
useAsTitle?: boolean;
|
|
923
1092
|
placeholder?: string;
|
|
924
|
-
select?: "
|
|
1093
|
+
select?: "media" | "document" | "web" | null;
|
|
925
1094
|
customtypes?: readonly string[];
|
|
926
1095
|
masks?: readonly string[];
|
|
927
1096
|
tags?: readonly string[];
|
|
@@ -1080,7 +1249,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1080
1249
|
label?: string | null | undefined;
|
|
1081
1250
|
useAsTitle?: boolean;
|
|
1082
1251
|
placeholder?: string;
|
|
1083
|
-
select?: "
|
|
1252
|
+
select?: "media" | "document" | "web" | null;
|
|
1084
1253
|
customtypes?: readonly string[];
|
|
1085
1254
|
masks?: readonly string[];
|
|
1086
1255
|
tags?: readonly string[];
|
|
@@ -1165,15 +1334,19 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1165
1334
|
label?: string | null | undefined;
|
|
1166
1335
|
};
|
|
1167
1336
|
}) | ({
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1337
|
+
id: string;
|
|
1338
|
+
type: "SharedSlice";
|
|
1339
|
+
name: string;
|
|
1340
|
+
variations: readonly ({
|
|
1341
|
+
id: string;
|
|
1342
|
+
name: string;
|
|
1343
|
+
description: string;
|
|
1344
|
+
imageUrl: string;
|
|
1345
|
+
docURL: string;
|
|
1346
|
+
version: string;
|
|
1347
|
+
} & {
|
|
1348
|
+
display?: string;
|
|
1349
|
+
primary?: {
|
|
1177
1350
|
[x: string]: ({
|
|
1178
1351
|
type: "Boolean";
|
|
1179
1352
|
} & {
|
|
@@ -1251,7 +1424,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1251
1424
|
label?: string | null | undefined;
|
|
1252
1425
|
useAsTitle?: boolean;
|
|
1253
1426
|
placeholder?: string;
|
|
1254
|
-
select?: "
|
|
1427
|
+
select?: "media" | "document" | "web" | null;
|
|
1255
1428
|
customtypes?: readonly string[];
|
|
1256
1429
|
masks?: readonly string[];
|
|
1257
1430
|
tags?: readonly string[];
|
|
@@ -1332,21 +1505,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1332
1505
|
};
|
|
1333
1506
|
});
|
|
1334
1507
|
};
|
|
1335
|
-
|
|
1336
|
-
}) | ({
|
|
1337
|
-
id: string;
|
|
1338
|
-
type: "SharedSlice";
|
|
1339
|
-
name: string;
|
|
1340
|
-
variations: readonly ({
|
|
1341
|
-
id: string;
|
|
1342
|
-
name: string;
|
|
1343
|
-
description: string;
|
|
1344
|
-
imageUrl: string;
|
|
1345
|
-
docURL: string;
|
|
1346
|
-
version: string;
|
|
1347
|
-
} & {
|
|
1348
|
-
display?: string;
|
|
1349
|
-
primary?: {
|
|
1508
|
+
items?: {
|
|
1350
1509
|
[x: string]: ({
|
|
1351
1510
|
type: "Boolean";
|
|
1352
1511
|
} & {
|
|
@@ -1424,166 +1583,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1424
1583
|
label?: string | null | undefined;
|
|
1425
1584
|
useAsTitle?: boolean;
|
|
1426
1585
|
placeholder?: string;
|
|
1427
|
-
select?: "
|
|
1428
|
-
customtypes?: readonly string[];
|
|
1429
|
-
masks?: readonly string[];
|
|
1430
|
-
tags?: readonly string[];
|
|
1431
|
-
allowTargetBlank?: boolean;
|
|
1432
|
-
};
|
|
1433
|
-
}) | ({
|
|
1434
|
-
type: "Number";
|
|
1435
|
-
} & {
|
|
1436
|
-
fieldset?: string | null | undefined;
|
|
1437
|
-
config?: {
|
|
1438
|
-
label?: string | null | undefined;
|
|
1439
|
-
placeholder?: string;
|
|
1440
|
-
min?: number;
|
|
1441
|
-
max?: number;
|
|
1442
|
-
step?: number;
|
|
1443
|
-
};
|
|
1444
|
-
}) | ({
|
|
1445
|
-
type: "Range";
|
|
1446
|
-
} & {
|
|
1447
|
-
fieldset?: string | null | undefined;
|
|
1448
|
-
config?: {
|
|
1449
|
-
label?: string | null | undefined;
|
|
1450
|
-
placeholder?: string;
|
|
1451
|
-
min?: number;
|
|
1452
|
-
max?: number;
|
|
1453
|
-
step?: number;
|
|
1454
|
-
};
|
|
1455
|
-
}) | ({
|
|
1456
|
-
type: "StructuredText";
|
|
1457
|
-
} & {
|
|
1458
|
-
fieldset?: string | null | undefined;
|
|
1459
|
-
config?: {
|
|
1460
|
-
label?: string | null | undefined;
|
|
1461
|
-
placeholder?: string;
|
|
1462
|
-
useAsTitle?: boolean;
|
|
1463
|
-
single?: string;
|
|
1464
|
-
multi?: string;
|
|
1465
|
-
imageConstraint?: {
|
|
1466
|
-
width?: number | null;
|
|
1467
|
-
height?: number | null;
|
|
1468
|
-
};
|
|
1469
|
-
labels?: readonly string[];
|
|
1470
|
-
allowTargetBlank?: boolean;
|
|
1471
|
-
};
|
|
1472
|
-
}) | ({
|
|
1473
|
-
type: "Select";
|
|
1474
|
-
} & {
|
|
1475
|
-
fieldset?: string | null | undefined;
|
|
1476
|
-
config?: {
|
|
1477
|
-
label?: string | null | undefined;
|
|
1478
|
-
placeholder?: string;
|
|
1479
|
-
default_value?: string;
|
|
1480
|
-
options?: readonly string[];
|
|
1481
|
-
};
|
|
1482
|
-
}) | ({
|
|
1483
|
-
type: "Separator";
|
|
1484
|
-
} & {
|
|
1485
|
-
config?: {
|
|
1486
|
-
label?: string | null | undefined;
|
|
1487
|
-
};
|
|
1488
|
-
}) | ({
|
|
1489
|
-
type: "Text";
|
|
1490
|
-
} & {
|
|
1491
|
-
fieldset?: string | null | undefined;
|
|
1492
|
-
config?: {
|
|
1493
|
-
label?: string | null | undefined;
|
|
1494
|
-
useAsTitle?: boolean;
|
|
1495
|
-
placeholder?: string;
|
|
1496
|
-
};
|
|
1497
|
-
}) | ({
|
|
1498
|
-
type: "Timestamp";
|
|
1499
|
-
} & {
|
|
1500
|
-
fieldset?: string | null | undefined;
|
|
1501
|
-
config?: {
|
|
1502
|
-
label?: string | null | undefined;
|
|
1503
|
-
placeholder?: string;
|
|
1504
|
-
default?: string;
|
|
1505
|
-
};
|
|
1506
|
-
});
|
|
1507
|
-
};
|
|
1508
|
-
items?: {
|
|
1509
|
-
[x: string]: ({
|
|
1510
|
-
type: "Boolean";
|
|
1511
|
-
} & {
|
|
1512
|
-
config?: {
|
|
1513
|
-
label?: string | null | undefined;
|
|
1514
|
-
default_value?: boolean;
|
|
1515
|
-
placeholder_true?: string;
|
|
1516
|
-
placeholder_false?: string;
|
|
1517
|
-
};
|
|
1518
|
-
}) | ({
|
|
1519
|
-
type: "Color";
|
|
1520
|
-
} & {
|
|
1521
|
-
fieldset?: string | null | undefined;
|
|
1522
|
-
config?: {
|
|
1523
|
-
label?: string | null | undefined;
|
|
1524
|
-
placeholder?: string;
|
|
1525
|
-
};
|
|
1526
|
-
}) | ({
|
|
1527
|
-
type: "Date";
|
|
1528
|
-
} & {
|
|
1529
|
-
fieldset?: string | null | undefined;
|
|
1530
|
-
config?: {
|
|
1531
|
-
label?: string | null | undefined;
|
|
1532
|
-
placeholder?: string;
|
|
1533
|
-
default?: string;
|
|
1534
|
-
};
|
|
1535
|
-
}) | ({
|
|
1536
|
-
type: "Embed";
|
|
1537
|
-
} & {
|
|
1538
|
-
fieldset?: string | null | undefined;
|
|
1539
|
-
config?: {
|
|
1540
|
-
label?: string | null | undefined;
|
|
1541
|
-
placeholder?: string;
|
|
1542
|
-
useAsTitle?: boolean;
|
|
1543
|
-
};
|
|
1544
|
-
}) | ({
|
|
1545
|
-
type: "GeoPoint";
|
|
1546
|
-
} & {
|
|
1547
|
-
fieldset?: string | null | undefined;
|
|
1548
|
-
config?: {
|
|
1549
|
-
label?: string | null | undefined;
|
|
1550
|
-
};
|
|
1551
|
-
}) | ({
|
|
1552
|
-
type: "Image";
|
|
1553
|
-
} & {
|
|
1554
|
-
fieldset?: string | null | undefined;
|
|
1555
|
-
config?: {
|
|
1556
|
-
label?: string | null | undefined;
|
|
1557
|
-
placeholder?: string;
|
|
1558
|
-
constraint?: {
|
|
1559
|
-
width?: number | null;
|
|
1560
|
-
height?: number | null;
|
|
1561
|
-
};
|
|
1562
|
-
thumbnails?: readonly ({
|
|
1563
|
-
name: string;
|
|
1564
|
-
} & {
|
|
1565
|
-
width?: number | null;
|
|
1566
|
-
height?: number | null;
|
|
1567
|
-
})[];
|
|
1568
|
-
};
|
|
1569
|
-
}) | ({
|
|
1570
|
-
type: "IntegrationFields";
|
|
1571
|
-
} & {
|
|
1572
|
-
fieldset?: string | null | undefined;
|
|
1573
|
-
config?: {
|
|
1574
|
-
label?: string | null | undefined;
|
|
1575
|
-
placeholder?: string;
|
|
1576
|
-
catalog?: string;
|
|
1577
|
-
};
|
|
1578
|
-
}) | ({
|
|
1579
|
-
type: "Link";
|
|
1580
|
-
} & {
|
|
1581
|
-
fieldset?: string | null | undefined;
|
|
1582
|
-
config?: {
|
|
1583
|
-
label?: string | null | undefined;
|
|
1584
|
-
useAsTitle?: boolean;
|
|
1585
|
-
placeholder?: string;
|
|
1586
|
-
select?: "web" | "media" | "document" | null;
|
|
1586
|
+
select?: "media" | "document" | "web" | null;
|
|
1587
1587
|
customtypes?: readonly string[];
|
|
1588
1588
|
masks?: readonly string[];
|
|
1589
1589
|
tags?: readonly string[];
|
|
@@ -2005,7 +2005,7 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2005
2005
|
}>]>>]>>;
|
|
2006
2006
|
}>>;
|
|
2007
2007
|
}>]>>, t.Type<{
|
|
2008
|
-
type: "
|
|
2008
|
+
type: "Choice" | "Slices";
|
|
2009
2009
|
} & {
|
|
2010
2010
|
fieldset?: string | null | undefined;
|
|
2011
2011
|
config?: {
|
|
@@ -2095,7 +2095,7 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2095
2095
|
label?: string | null | undefined;
|
|
2096
2096
|
useAsTitle?: boolean;
|
|
2097
2097
|
placeholder?: string;
|
|
2098
|
-
select?: "
|
|
2098
|
+
select?: "media" | "document" | "web" | null;
|
|
2099
2099
|
customtypes?: readonly string[];
|
|
2100
2100
|
masks?: readonly string[];
|
|
2101
2101
|
tags?: readonly string[];
|
|
@@ -2174,6 +2174,175 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2174
2174
|
placeholder?: string;
|
|
2175
2175
|
default?: string;
|
|
2176
2176
|
};
|
|
2177
|
+
}) | ({
|
|
2178
|
+
type: "Group";
|
|
2179
|
+
} & {
|
|
2180
|
+
fieldset?: string | null | undefined;
|
|
2181
|
+
icon?: string;
|
|
2182
|
+
description?: string;
|
|
2183
|
+
config?: {
|
|
2184
|
+
label?: string | null | undefined;
|
|
2185
|
+
repeat?: boolean;
|
|
2186
|
+
fields?: {
|
|
2187
|
+
[x: string]: ({
|
|
2188
|
+
type: "Boolean";
|
|
2189
|
+
} & {
|
|
2190
|
+
config?: {
|
|
2191
|
+
label?: string | null | undefined;
|
|
2192
|
+
default_value?: boolean;
|
|
2193
|
+
placeholder_true?: string;
|
|
2194
|
+
placeholder_false?: string;
|
|
2195
|
+
};
|
|
2196
|
+
}) | ({
|
|
2197
|
+
type: "Color";
|
|
2198
|
+
} & {
|
|
2199
|
+
fieldset?: string | null | undefined;
|
|
2200
|
+
config?: {
|
|
2201
|
+
label?: string | null | undefined;
|
|
2202
|
+
placeholder?: string;
|
|
2203
|
+
};
|
|
2204
|
+
}) | ({
|
|
2205
|
+
type: "Date";
|
|
2206
|
+
} & {
|
|
2207
|
+
fieldset?: string | null | undefined;
|
|
2208
|
+
config?: {
|
|
2209
|
+
label?: string | null | undefined;
|
|
2210
|
+
placeholder?: string;
|
|
2211
|
+
default?: string;
|
|
2212
|
+
};
|
|
2213
|
+
}) | ({
|
|
2214
|
+
type: "Embed";
|
|
2215
|
+
} & {
|
|
2216
|
+
fieldset?: string | null | undefined;
|
|
2217
|
+
config?: {
|
|
2218
|
+
label?: string | null | undefined;
|
|
2219
|
+
placeholder?: string;
|
|
2220
|
+
useAsTitle?: boolean;
|
|
2221
|
+
};
|
|
2222
|
+
}) | ({
|
|
2223
|
+
type: "GeoPoint";
|
|
2224
|
+
} & {
|
|
2225
|
+
fieldset?: string | null | undefined;
|
|
2226
|
+
config?: {
|
|
2227
|
+
label?: string | null | undefined;
|
|
2228
|
+
};
|
|
2229
|
+
}) | ({
|
|
2230
|
+
type: "Image";
|
|
2231
|
+
} & {
|
|
2232
|
+
fieldset?: string | null | undefined;
|
|
2233
|
+
config?: {
|
|
2234
|
+
label?: string | null | undefined;
|
|
2235
|
+
placeholder?: string;
|
|
2236
|
+
constraint?: {
|
|
2237
|
+
width?: number | null;
|
|
2238
|
+
height?: number | null;
|
|
2239
|
+
};
|
|
2240
|
+
thumbnails?: readonly ({
|
|
2241
|
+
name: string;
|
|
2242
|
+
} & {
|
|
2243
|
+
width?: number | null;
|
|
2244
|
+
height?: number | null;
|
|
2245
|
+
})[];
|
|
2246
|
+
};
|
|
2247
|
+
}) | ({
|
|
2248
|
+
type: "IntegrationFields";
|
|
2249
|
+
} & {
|
|
2250
|
+
fieldset?: string | null | undefined;
|
|
2251
|
+
config?: {
|
|
2252
|
+
label?: string | null | undefined;
|
|
2253
|
+
placeholder?: string;
|
|
2254
|
+
catalog?: string;
|
|
2255
|
+
};
|
|
2256
|
+
}) | ({
|
|
2257
|
+
type: "Link";
|
|
2258
|
+
} & {
|
|
2259
|
+
fieldset?: string | null | undefined;
|
|
2260
|
+
config?: {
|
|
2261
|
+
label?: string | null | undefined;
|
|
2262
|
+
useAsTitle?: boolean;
|
|
2263
|
+
placeholder?: string;
|
|
2264
|
+
select?: "media" | "document" | "web" | null;
|
|
2265
|
+
customtypes?: readonly string[];
|
|
2266
|
+
masks?: readonly string[];
|
|
2267
|
+
tags?: readonly string[];
|
|
2268
|
+
allowTargetBlank?: boolean;
|
|
2269
|
+
};
|
|
2270
|
+
}) | ({
|
|
2271
|
+
type: "Number";
|
|
2272
|
+
} & {
|
|
2273
|
+
fieldset?: string | null | undefined;
|
|
2274
|
+
config?: {
|
|
2275
|
+
label?: string | null | undefined;
|
|
2276
|
+
placeholder?: string;
|
|
2277
|
+
min?: number;
|
|
2278
|
+
max?: number;
|
|
2279
|
+
step?: number;
|
|
2280
|
+
};
|
|
2281
|
+
}) | ({
|
|
2282
|
+
type: "Range";
|
|
2283
|
+
} & {
|
|
2284
|
+
fieldset?: string | null | undefined;
|
|
2285
|
+
config?: {
|
|
2286
|
+
label?: string | null | undefined;
|
|
2287
|
+
placeholder?: string;
|
|
2288
|
+
min?: number;
|
|
2289
|
+
max?: number;
|
|
2290
|
+
step?: number;
|
|
2291
|
+
};
|
|
2292
|
+
}) | ({
|
|
2293
|
+
type: "StructuredText";
|
|
2294
|
+
} & {
|
|
2295
|
+
fieldset?: string | null | undefined;
|
|
2296
|
+
config?: {
|
|
2297
|
+
label?: string | null | undefined;
|
|
2298
|
+
placeholder?: string;
|
|
2299
|
+
useAsTitle?: boolean;
|
|
2300
|
+
single?: string;
|
|
2301
|
+
multi?: string;
|
|
2302
|
+
imageConstraint?: {
|
|
2303
|
+
width?: number | null;
|
|
2304
|
+
height?: number | null;
|
|
2305
|
+
};
|
|
2306
|
+
labels?: readonly string[];
|
|
2307
|
+
allowTargetBlank?: boolean;
|
|
2308
|
+
};
|
|
2309
|
+
}) | ({
|
|
2310
|
+
type: "Select";
|
|
2311
|
+
} & {
|
|
2312
|
+
fieldset?: string | null | undefined;
|
|
2313
|
+
config?: {
|
|
2314
|
+
label?: string | null | undefined;
|
|
2315
|
+
placeholder?: string;
|
|
2316
|
+
default_value?: string;
|
|
2317
|
+
options?: readonly string[];
|
|
2318
|
+
};
|
|
2319
|
+
}) | ({
|
|
2320
|
+
type: "Separator";
|
|
2321
|
+
} & {
|
|
2322
|
+
config?: {
|
|
2323
|
+
label?: string | null | undefined;
|
|
2324
|
+
};
|
|
2325
|
+
}) | ({
|
|
2326
|
+
type: "Text";
|
|
2327
|
+
} & {
|
|
2328
|
+
fieldset?: string | null | undefined;
|
|
2329
|
+
config?: {
|
|
2330
|
+
label?: string | null | undefined;
|
|
2331
|
+
useAsTitle?: boolean;
|
|
2332
|
+
placeholder?: string;
|
|
2333
|
+
};
|
|
2334
|
+
}) | ({
|
|
2335
|
+
type: "Timestamp";
|
|
2336
|
+
} & {
|
|
2337
|
+
fieldset?: string | null | undefined;
|
|
2338
|
+
config?: {
|
|
2339
|
+
label?: string | null | undefined;
|
|
2340
|
+
placeholder?: string;
|
|
2341
|
+
default?: string;
|
|
2342
|
+
};
|
|
2343
|
+
});
|
|
2344
|
+
};
|
|
2345
|
+
};
|
|
2177
2346
|
}) | ({
|
|
2178
2347
|
type: "Slice";
|
|
2179
2348
|
} & {
|
|
@@ -2259,7 +2428,7 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2259
2428
|
label?: string | null | undefined;
|
|
2260
2429
|
useAsTitle?: boolean;
|
|
2261
2430
|
placeholder?: string;
|
|
2262
|
-
select?: "
|
|
2431
|
+
select?: "media" | "document" | "web" | null;
|
|
2263
2432
|
customtypes?: readonly string[];
|
|
2264
2433
|
masks?: readonly string[];
|
|
2265
2434
|
tags?: readonly string[];
|
|
@@ -2418,7 +2587,7 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2418
2587
|
label?: string | null | undefined;
|
|
2419
2588
|
useAsTitle?: boolean;
|
|
2420
2589
|
placeholder?: string;
|
|
2421
|
-
select?: "
|
|
2590
|
+
select?: "media" | "document" | "web" | null;
|
|
2422
2591
|
customtypes?: readonly string[];
|
|
2423
2592
|
masks?: readonly string[];
|
|
2424
2593
|
tags?: readonly string[];
|
|
@@ -2502,175 +2671,6 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2502
2671
|
config?: {
|
|
2503
2672
|
label?: string | null | undefined;
|
|
2504
2673
|
};
|
|
2505
|
-
}) | ({
|
|
2506
|
-
type: "Group";
|
|
2507
|
-
} & {
|
|
2508
|
-
fieldset?: string | null | undefined;
|
|
2509
|
-
icon?: string;
|
|
2510
|
-
description?: string;
|
|
2511
|
-
config?: {
|
|
2512
|
-
label?: string | null | undefined;
|
|
2513
|
-
repeat?: boolean;
|
|
2514
|
-
fields?: {
|
|
2515
|
-
[x: string]: ({
|
|
2516
|
-
type: "Boolean";
|
|
2517
|
-
} & {
|
|
2518
|
-
config?: {
|
|
2519
|
-
label?: string | null | undefined;
|
|
2520
|
-
default_value?: boolean;
|
|
2521
|
-
placeholder_true?: string;
|
|
2522
|
-
placeholder_false?: string;
|
|
2523
|
-
};
|
|
2524
|
-
}) | ({
|
|
2525
|
-
type: "Color";
|
|
2526
|
-
} & {
|
|
2527
|
-
fieldset?: string | null | undefined;
|
|
2528
|
-
config?: {
|
|
2529
|
-
label?: string | null | undefined;
|
|
2530
|
-
placeholder?: string;
|
|
2531
|
-
};
|
|
2532
|
-
}) | ({
|
|
2533
|
-
type: "Date";
|
|
2534
|
-
} & {
|
|
2535
|
-
fieldset?: string | null | undefined;
|
|
2536
|
-
config?: {
|
|
2537
|
-
label?: string | null | undefined;
|
|
2538
|
-
placeholder?: string;
|
|
2539
|
-
default?: string;
|
|
2540
|
-
};
|
|
2541
|
-
}) | ({
|
|
2542
|
-
type: "Embed";
|
|
2543
|
-
} & {
|
|
2544
|
-
fieldset?: string | null | undefined;
|
|
2545
|
-
config?: {
|
|
2546
|
-
label?: string | null | undefined;
|
|
2547
|
-
placeholder?: string;
|
|
2548
|
-
useAsTitle?: boolean;
|
|
2549
|
-
};
|
|
2550
|
-
}) | ({
|
|
2551
|
-
type: "GeoPoint";
|
|
2552
|
-
} & {
|
|
2553
|
-
fieldset?: string | null | undefined;
|
|
2554
|
-
config?: {
|
|
2555
|
-
label?: string | null | undefined;
|
|
2556
|
-
};
|
|
2557
|
-
}) | ({
|
|
2558
|
-
type: "Image";
|
|
2559
|
-
} & {
|
|
2560
|
-
fieldset?: string | null | undefined;
|
|
2561
|
-
config?: {
|
|
2562
|
-
label?: string | null | undefined;
|
|
2563
|
-
placeholder?: string;
|
|
2564
|
-
constraint?: {
|
|
2565
|
-
width?: number | null;
|
|
2566
|
-
height?: number | null;
|
|
2567
|
-
};
|
|
2568
|
-
thumbnails?: readonly ({
|
|
2569
|
-
name: string;
|
|
2570
|
-
} & {
|
|
2571
|
-
width?: number | null;
|
|
2572
|
-
height?: number | null;
|
|
2573
|
-
})[];
|
|
2574
|
-
};
|
|
2575
|
-
}) | ({
|
|
2576
|
-
type: "IntegrationFields";
|
|
2577
|
-
} & {
|
|
2578
|
-
fieldset?: string | null | undefined;
|
|
2579
|
-
config?: {
|
|
2580
|
-
label?: string | null | undefined;
|
|
2581
|
-
placeholder?: string;
|
|
2582
|
-
catalog?: string;
|
|
2583
|
-
};
|
|
2584
|
-
}) | ({
|
|
2585
|
-
type: "Link";
|
|
2586
|
-
} & {
|
|
2587
|
-
fieldset?: string | null | undefined;
|
|
2588
|
-
config?: {
|
|
2589
|
-
label?: string | null | undefined;
|
|
2590
|
-
useAsTitle?: boolean;
|
|
2591
|
-
placeholder?: string;
|
|
2592
|
-
select?: "web" | "media" | "document" | null;
|
|
2593
|
-
customtypes?: readonly string[];
|
|
2594
|
-
masks?: readonly string[];
|
|
2595
|
-
tags?: readonly string[];
|
|
2596
|
-
allowTargetBlank?: boolean;
|
|
2597
|
-
};
|
|
2598
|
-
}) | ({
|
|
2599
|
-
type: "Number";
|
|
2600
|
-
} & {
|
|
2601
|
-
fieldset?: string | null | undefined;
|
|
2602
|
-
config?: {
|
|
2603
|
-
label?: string | null | undefined;
|
|
2604
|
-
placeholder?: string;
|
|
2605
|
-
min?: number;
|
|
2606
|
-
max?: number;
|
|
2607
|
-
step?: number;
|
|
2608
|
-
};
|
|
2609
|
-
}) | ({
|
|
2610
|
-
type: "Range";
|
|
2611
|
-
} & {
|
|
2612
|
-
fieldset?: string | null | undefined;
|
|
2613
|
-
config?: {
|
|
2614
|
-
label?: string | null | undefined;
|
|
2615
|
-
placeholder?: string;
|
|
2616
|
-
min?: number;
|
|
2617
|
-
max?: number;
|
|
2618
|
-
step?: number;
|
|
2619
|
-
};
|
|
2620
|
-
}) | ({
|
|
2621
|
-
type: "StructuredText";
|
|
2622
|
-
} & {
|
|
2623
|
-
fieldset?: string | null | undefined;
|
|
2624
|
-
config?: {
|
|
2625
|
-
label?: string | null | undefined;
|
|
2626
|
-
placeholder?: string;
|
|
2627
|
-
useAsTitle?: boolean;
|
|
2628
|
-
single?: string;
|
|
2629
|
-
multi?: string;
|
|
2630
|
-
imageConstraint?: {
|
|
2631
|
-
width?: number | null;
|
|
2632
|
-
height?: number | null;
|
|
2633
|
-
};
|
|
2634
|
-
labels?: readonly string[];
|
|
2635
|
-
allowTargetBlank?: boolean;
|
|
2636
|
-
};
|
|
2637
|
-
}) | ({
|
|
2638
|
-
type: "Select";
|
|
2639
|
-
} & {
|
|
2640
|
-
fieldset?: string | null | undefined;
|
|
2641
|
-
config?: {
|
|
2642
|
-
label?: string | null | undefined;
|
|
2643
|
-
placeholder?: string;
|
|
2644
|
-
default_value?: string;
|
|
2645
|
-
options?: readonly string[];
|
|
2646
|
-
};
|
|
2647
|
-
}) | ({
|
|
2648
|
-
type: "Separator";
|
|
2649
|
-
} & {
|
|
2650
|
-
config?: {
|
|
2651
|
-
label?: string | null | undefined;
|
|
2652
|
-
};
|
|
2653
|
-
}) | ({
|
|
2654
|
-
type: "Text";
|
|
2655
|
-
} & {
|
|
2656
|
-
fieldset?: string | null | undefined;
|
|
2657
|
-
config?: {
|
|
2658
|
-
label?: string | null | undefined;
|
|
2659
|
-
useAsTitle?: boolean;
|
|
2660
|
-
placeholder?: string;
|
|
2661
|
-
};
|
|
2662
|
-
}) | ({
|
|
2663
|
-
type: "Timestamp";
|
|
2664
|
-
} & {
|
|
2665
|
-
fieldset?: string | null | undefined;
|
|
2666
|
-
config?: {
|
|
2667
|
-
label?: string | null | undefined;
|
|
2668
|
-
placeholder?: string;
|
|
2669
|
-
default?: string;
|
|
2670
|
-
};
|
|
2671
|
-
});
|
|
2672
|
-
};
|
|
2673
|
-
};
|
|
2674
2674
|
}) | {
|
|
2675
2675
|
type: "SharedSlice";
|
|
2676
2676
|
};
|
|
@@ -2678,6 +2678,28 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2678
2678
|
};
|
|
2679
2679
|
}, unknown, unknown>]>;
|
|
2680
2680
|
export declare type DynamicWidget = t.TypeOf<typeof DynamicWidget>;
|
|
2681
|
+
export declare const FieldTypes: t.KeyofC<{
|
|
2682
|
+
Color: null;
|
|
2683
|
+
Boolean: null;
|
|
2684
|
+
Number: null;
|
|
2685
|
+
Embed: null;
|
|
2686
|
+
GeoPoint: null;
|
|
2687
|
+
Date: null;
|
|
2688
|
+
Range: null;
|
|
2689
|
+
StructuredText: null;
|
|
2690
|
+
Select: null;
|
|
2691
|
+
Separator: null;
|
|
2692
|
+
Text: null;
|
|
2693
|
+
Timestamp: null;
|
|
2694
|
+
Link: null;
|
|
2695
|
+
Image: null;
|
|
2696
|
+
IntegrationFields: null;
|
|
2697
|
+
UID: null;
|
|
2698
|
+
Group: null;
|
|
2699
|
+
Slices: null;
|
|
2700
|
+
Choice: null;
|
|
2701
|
+
}>;
|
|
2702
|
+
export declare type FieldTypes = t.TypeOf<typeof FieldTypes>;
|
|
2681
2703
|
export declare const Widgets: {
|
|
2682
2704
|
toStatic(widget: DynamicWidget, sharedSlices: Map<string, SharedSlice>): StaticWidget;
|
|
2683
2705
|
};
|