@prismicio/types-internal 2.0.0-alpha.2 → 2.0.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/LegacyContentCtx.js +1 -1
- package/lib/content/fields/WidgetContent.d.ts +1 -1
- package/lib/customtypes/widgets/Group.d.ts +164 -3
- package/lib/customtypes/widgets/Group.js +4 -5
- package/lib/customtypes/widgets/UID.d.ts +8 -3
- package/lib/customtypes/widgets/UID.js +4 -5
- package/lib/customtypes/widgets/Widget.d.ts +2 -2
- package/lib/customtypes/widgets/Widget.js +5 -5
- package/lib/customtypes/widgets/nestable/Link.d.ts +0 -1
- package/lib/customtypes/widgets/nestable/Link.js +0 -1
- package/lib/customtypes/widgets/nestable/RichText.d.ts +1 -1
- package/lib/customtypes/widgets/nestable/Text.d.ts +0 -1
- package/lib/customtypes/widgets/nestable/Text.js +0 -1
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +6 -3
- package/lib/customtypes/widgets/slices/CompositeSlice.js +4 -5
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -3
- package/lib/customtypes/widgets/slices/LegacySlice.js +3 -3
- package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +2 -3
- package/lib/customtypes/widgets/slices/SharedSliceRef.js +2 -2
- package/lib/customtypes/widgets/slices/Slice.d.ts +3 -3
- package/lib/customtypes/widgets/slices/Slices.d.ts +1 -1
- package/lib/customtypes/widgets/slices/Slices.js +5 -5
- package/lib/customtypes/widgets/slices/index.d.ts +3 -3
- package/lib/customtypes/widgets/slices/index.js +3 -3
- package/package.json +1 -1
- package/src/content/LegacyContentCtx.ts +2 -2
- package/src/content/fields/WidgetContent.ts +1 -1
- package/src/customtypes/widgets/Group.ts +4 -6
- package/src/customtypes/widgets/UID.ts +4 -6
- package/src/customtypes/widgets/Widget.ts +5 -5
- package/src/customtypes/widgets/nestable/Link.ts +0 -2
- package/src/customtypes/widgets/nestable/RichText.ts +1 -1
- package/src/customtypes/widgets/nestable/Text.ts +0 -2
- package/src/customtypes/widgets/slices/CompositeSlice.ts +4 -6
- package/src/customtypes/widgets/slices/LegacySlice.ts +3 -5
- package/src/customtypes/widgets/slices/SharedSliceRef.ts +2 -4
- package/src/customtypes/widgets/slices/Slice.ts +3 -3
- package/src/customtypes/widgets/slices/Slices.ts +3 -3
- package/src/customtypes/widgets/slices/index.ts +3 -3
- package/lib/content/CustomType.d.ts +0 -2972
- package/lib/content/CustomType.js +0 -15
- package/lib/content/fields/nestable/FieldContent.d.ts +0 -32
- package/lib/content/fields/nestable/FieldContent.js +0 -37
- package/lib/content/fields/nestable/Image.d.ts +0 -103
- package/lib/content/fields/nestable/Image.js +0 -13
- package/lib/content/fields/nestable/RichTextContent.d.ts +0 -376
- package/lib/content/fields/nestable/RichTextContent.js +0 -16
- package/lib/content/fields/slices/CompositeSliceContent.d.ts +0 -677
- package/lib/content/fields/slices/CompositeSliceContent.js +0 -14
- package/lib/content/fields/slices/RepeatableContent.d.ts +0 -338
- package/lib/content/fields/slices/RepeatableContent.js +0 -16
- package/lib/content/fields/slices/SharedSliceContent.d.ts +0 -678
- package/lib/content/fields/slices/SharedSliceContent.js +0 -15
- package/lib/content/fields/slices/SimpleSliceContent.d.ts +0 -675
- package/lib/content/fields/slices/SimpleSliceContent.js +0 -8
- package/lib/customtypes/Comparators/Changes.d.ts +0 -17
- package/lib/customtypes/Comparators/Changes.js +0 -9
- package/lib/customtypes/Comparators/SharedSlice.d.ts +0 -679
- package/lib/customtypes/Comparators/SharedSlice.js +0 -55
- package/lib/customtypes/Comparators/Variation.d.ts +0 -662
- package/lib/customtypes/Comparators/Variation.js +0 -75
- package/lib/customtypes/Comparators/index.d.ts +0 -3
- package/lib/customtypes/Comparators/index.js +0 -6
- package/lib/customtypes/Format.d.ts +0 -4
- package/lib/customtypes/Format.js +0 -8
- package/lib/customtypes/comp/Changes.d.ts +0 -17
- package/lib/customtypes/comp/Changes.js +0 -9
- package/lib/customtypes/comp/SharedSlice.d.ts +0 -679
- package/lib/customtypes/comp/SharedSlice.js +0 -55
- package/lib/customtypes/comp/Variation.d.ts +0 -662
- package/lib/customtypes/comp/Variation.js +0 -76
- package/lib/customtypes/comp/index.d.ts +0 -3
- package/lib/customtypes/comp/index.js +0 -6
- package/lib/customtypes/utils/Comparator.d.ts +0 -1353
- package/lib/customtypes/utils/Comparator.js +0 -59
- package/lib/customtypes/utils/index.d.ts +0 -1
- package/lib/customtypes/utils/index.js +0 -4
- package/lib/customtypes/widgets/WidgetTypes.d.ts +0 -22
- package/lib/customtypes/widgets/WidgetTypes.js +0 -25
- package/lib/documents/DocumentData.d.ts +0 -6
- package/lib/documents/DocumentData.js +0 -15
- package/lib/documents/index.d.ts +0 -2
- package/lib/documents/index.js +0 -7
- package/lib/documents/widgets/EmptyContent.d.ts +0 -8
- package/lib/documents/widgets/EmptyContent.js +0 -9
- package/lib/documents/widgets/GroupContent.d.ts +0 -16
- package/lib/documents/widgets/GroupContent.js +0 -60
- package/lib/documents/widgets/SimpleWidgetContent.d.ts +0 -20
- package/lib/documents/widgets/SimpleWidgetContent.js +0 -75
- package/lib/documents/widgets/StaticWidgetContent.d.ts +0 -10
- package/lib/documents/widgets/StaticWidgetContent.js +0 -26
- package/lib/documents/widgets/UIDContent.d.ts +0 -7
- package/lib/documents/widgets/UIDContent.js +0 -10
- package/lib/documents/widgets/index.d.ts +0 -38
- package/lib/documents/widgets/index.js +0 -40
- package/lib/documents/widgets/nestable/BooleanContent.d.ts +0 -8
- package/lib/documents/widgets/nestable/BooleanContent.js +0 -11
- package/lib/documents/widgets/nestable/EmbedContent.d.ts +0 -42
- package/lib/documents/widgets/nestable/EmbedContent.js +0 -35
- package/lib/documents/widgets/nestable/FieldContent.d.ts +0 -13
- package/lib/documents/widgets/nestable/FieldContent.js +0 -37
- package/lib/documents/widgets/nestable/GeoPointContent.d.ts +0 -17
- package/lib/documents/widgets/nestable/GeoPointContent.js +0 -13
- package/lib/documents/widgets/nestable/ImageContent.d.ts +0 -127
- package/lib/documents/widgets/nestable/ImageContent.js +0 -41
- package/lib/documents/widgets/nestable/IntegrationFieldsContent.d.ts +0 -8
- package/lib/documents/widgets/nestable/IntegrationFieldsContent.js +0 -16
- package/lib/documents/widgets/nestable/Link/DocumentLink.d.ts +0 -12
- package/lib/documents/widgets/nestable/Link/DocumentLink.js +0 -13
- package/lib/documents/widgets/nestable/Link/ExternalLink.d.ts +0 -24
- package/lib/documents/widgets/nestable/Link/ExternalLink.js +0 -24
- package/lib/documents/widgets/nestable/Link/FileLink.d.ts +0 -22
- package/lib/documents/widgets/nestable/Link/FileLink.js +0 -25
- package/lib/documents/widgets/nestable/Link/ImageLink.d.ts +0 -28
- package/lib/documents/widgets/nestable/Link/ImageLink.js +0 -26
- package/lib/documents/widgets/nestable/Link/LinkContent.d.ts +0 -42
- package/lib/documents/widgets/nestable/Link/LinkContent.js +0 -17
- package/lib/documents/widgets/nestable/Link/index.d.ts +0 -90
- package/lib/documents/widgets/nestable/Link/index.js +0 -35
- package/lib/documents/widgets/nestable/SeparatorContent.d.ts +0 -11
- package/lib/documents/widgets/nestable/SeparatorContent.js +0 -15
- package/lib/documents/widgets/nestable/StructuredTextContent/Block.d.ts +0 -314
- package/lib/documents/widgets/nestable/StructuredTextContent/Block.js +0 -98
- package/lib/documents/widgets/nestable/StructuredTextContent/index.d.ts +0 -9
- package/lib/documents/widgets/nestable/StructuredTextContent/index.js +0 -14
- package/lib/documents/widgets/nestable/index.d.ts +0 -26
- package/lib/documents/widgets/nestable/index.js +0 -39
- package/lib/documents/widgets/slices/CompositeSliceContent.d.ts +0 -14
- package/lib/documents/widgets/slices/CompositeSliceContent.js +0 -52
- package/lib/documents/widgets/slices/SharedSliceContent.d.ts +0 -15
- package/lib/documents/widgets/slices/SharedSliceContent.js +0 -63
- package/lib/documents/widgets/slices/SimpleSliceContent.d.ts +0 -6
- package/lib/documents/widgets/slices/SimpleSliceContent.js +0 -6
- package/lib/documents/widgets/slices/SliceWidgetContent.d.ts +0 -8
- package/lib/documents/widgets/slices/SliceWidgetContent.js +0 -26
- package/lib/documents/widgets/slices/SlicesContent.d.ts +0 -17
- package/lib/documents/widgets/slices/SlicesContent.js +0 -52
- package/lib/documents/widgets/slices/index.d.ts +0 -5
- package/lib/documents/widgets/slices/index.js +0 -8
- package/lib/index.d.ts +0 -3
- package/lib/index.js +0 -7
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompositeSliceContentType = exports.CompositeSliceContent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
6
|
-
const slices_1 = require("../../../documents/widgets/slices");
|
|
7
|
-
const nestable_1 = require("../nestable");
|
|
8
|
-
const RepeatableContent_1 = require("./RepeatableContent");
|
|
9
|
-
exports.CompositeSliceContent = t.strict({
|
|
10
|
-
__TYPE__: t.literal(slices_1.CompositeSliceContentType),
|
|
11
|
-
nonRepeat: t.record(t.string, nestable_1.NestableContent),
|
|
12
|
-
repeat: RepeatableContent_1.RepeatableWidgets,
|
|
13
|
-
});
|
|
14
|
-
exports.CompositeSliceContentType = slices_1.CompositeSliceContentType;
|
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import * as t from "io-ts";
|
|
2
|
-
export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3
|
-
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
4
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
5
|
-
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
6
|
-
value: t.BooleanC;
|
|
7
|
-
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
8
|
-
embed_url: t.StringC;
|
|
9
|
-
type: t.StringC;
|
|
10
|
-
}>, t.PartialC<{
|
|
11
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
12
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
13
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
14
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
15
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
16
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
17
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
18
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
19
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
20
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
21
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
22
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
23
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
24
|
-
all: t.UnknownC;
|
|
25
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
26
|
-
type: t.KeyofC<{
|
|
27
|
-
Text: null;
|
|
28
|
-
Date: null;
|
|
29
|
-
Timestamp: null;
|
|
30
|
-
Color: null;
|
|
31
|
-
Number: null;
|
|
32
|
-
Range: null;
|
|
33
|
-
Select: null;
|
|
34
|
-
}>;
|
|
35
|
-
value: t.Type<string, string, unknown>;
|
|
36
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
37
|
-
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
38
|
-
position: t.ExactC<t.TypeC<{
|
|
39
|
-
lat: t.NumberC;
|
|
40
|
-
lng: t.NumberC;
|
|
41
|
-
}>>;
|
|
42
|
-
}>>, t.ExactC<t.TypeC<{
|
|
43
|
-
__TYPE__: t.LiteralC<"GeoPointContent">;
|
|
44
|
-
}>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
45
|
-
origin: t.ExactC<t.TypeC<{
|
|
46
|
-
id: t.StringC;
|
|
47
|
-
url: t.StringC;
|
|
48
|
-
width: t.NumberC;
|
|
49
|
-
height: t.NumberC;
|
|
50
|
-
}>>;
|
|
51
|
-
width: t.NumberC;
|
|
52
|
-
height: t.NumberC;
|
|
53
|
-
edit: t.TypeC<{
|
|
54
|
-
zoom: t.NumberC;
|
|
55
|
-
crop: t.TypeC<{
|
|
56
|
-
x: t.NumberC;
|
|
57
|
-
y: t.NumberC;
|
|
58
|
-
}>;
|
|
59
|
-
background: t.StringC;
|
|
60
|
-
}>;
|
|
61
|
-
}>, t.PartialC<{
|
|
62
|
-
url: t.StringC;
|
|
63
|
-
credits: t.Type<string | null, string | null, unknown>;
|
|
64
|
-
alt: t.Type<string | null, string | null, unknown>;
|
|
65
|
-
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
66
|
-
}>]>>, t.PartialC<{
|
|
67
|
-
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
68
|
-
origin: t.ExactC<t.TypeC<{
|
|
69
|
-
id: t.StringC;
|
|
70
|
-
url: t.StringC;
|
|
71
|
-
width: t.NumberC;
|
|
72
|
-
height: t.NumberC;
|
|
73
|
-
}>>;
|
|
74
|
-
width: t.NumberC;
|
|
75
|
-
height: t.NumberC;
|
|
76
|
-
edit: t.TypeC<{
|
|
77
|
-
zoom: t.NumberC;
|
|
78
|
-
crop: t.TypeC<{
|
|
79
|
-
x: t.NumberC;
|
|
80
|
-
y: t.NumberC;
|
|
81
|
-
}>;
|
|
82
|
-
background: t.StringC;
|
|
83
|
-
}>;
|
|
84
|
-
}>, t.PartialC<{
|
|
85
|
-
url: t.StringC;
|
|
86
|
-
credits: t.Type<string | null, string | null, unknown>;
|
|
87
|
-
alt: t.Type<string | null, string | null, unknown>;
|
|
88
|
-
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
89
|
-
}>]>>>;
|
|
90
|
-
}>]>, t.ExactC<t.TypeC<{
|
|
91
|
-
__TYPE__: t.LiteralC<"ImageContent">;
|
|
92
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
93
|
-
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
94
|
-
value: t.StringC;
|
|
95
|
-
}>>, t.ExactC<t.TypeC<{
|
|
96
|
-
__TYPE__: t.LiteralC<"LinkContent">;
|
|
97
|
-
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
98
|
-
__TYPE__: t.LiteralC<"ImageLink">;
|
|
99
|
-
}>>, t.Type<{
|
|
100
|
-
id: string;
|
|
101
|
-
url: string;
|
|
102
|
-
height: string;
|
|
103
|
-
width: string;
|
|
104
|
-
size: string;
|
|
105
|
-
name: string;
|
|
106
|
-
kind: string;
|
|
107
|
-
} & {
|
|
108
|
-
date?: string | null | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
id: string;
|
|
111
|
-
url: string;
|
|
112
|
-
height: string;
|
|
113
|
-
width: string;
|
|
114
|
-
size: string;
|
|
115
|
-
name: string;
|
|
116
|
-
kind: string;
|
|
117
|
-
} & {
|
|
118
|
-
date?: string | null | undefined;
|
|
119
|
-
} & {
|
|
120
|
-
__TYPE__: "ImageLink";
|
|
121
|
-
}, unknown>]>, t.IntersectionC<[t.Type<{
|
|
122
|
-
id: string;
|
|
123
|
-
url: string;
|
|
124
|
-
name: string;
|
|
125
|
-
kind: string;
|
|
126
|
-
} & {
|
|
127
|
-
date?: string | null | undefined;
|
|
128
|
-
size?: string;
|
|
129
|
-
}, {
|
|
130
|
-
id: string;
|
|
131
|
-
url: string;
|
|
132
|
-
name: string;
|
|
133
|
-
kind: string;
|
|
134
|
-
} & {
|
|
135
|
-
date?: string | null | undefined;
|
|
136
|
-
size?: string;
|
|
137
|
-
} & {
|
|
138
|
-
__TYPE__: "FileLink";
|
|
139
|
-
}, unknown>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
140
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
141
|
-
}>, t.PartialC<{
|
|
142
|
-
size: t.StringC;
|
|
143
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
144
|
-
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
145
|
-
}>>, t.Type<{
|
|
146
|
-
id: string;
|
|
147
|
-
}, {
|
|
148
|
-
id: string;
|
|
149
|
-
} & {
|
|
150
|
-
__TYPE__: "DocumentLink";
|
|
151
|
-
}, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
152
|
-
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
153
|
-
}>>, t.Type<{
|
|
154
|
-
url: string;
|
|
155
|
-
} & {
|
|
156
|
-
kind?: "web";
|
|
157
|
-
target?: string | null | undefined;
|
|
158
|
-
preview?: {
|
|
159
|
-
title?: string;
|
|
160
|
-
} | null | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
url: string;
|
|
163
|
-
} & {
|
|
164
|
-
kind?: "web";
|
|
165
|
-
target?: string | null | undefined;
|
|
166
|
-
preview?: {
|
|
167
|
-
title?: string;
|
|
168
|
-
} | null | undefined;
|
|
169
|
-
} & {
|
|
170
|
-
__TYPE__: "ExternalLink";
|
|
171
|
-
}, unknown>]>]>;
|
|
172
|
-
}>>, t.ExactC<t.TypeC<{
|
|
173
|
-
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
174
|
-
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
175
|
-
type: t.LiteralC<"image">;
|
|
176
|
-
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
177
|
-
origin: t.ExactC<t.TypeC<{
|
|
178
|
-
id: t.StringC;
|
|
179
|
-
url: t.StringC;
|
|
180
|
-
width: t.NumberC;
|
|
181
|
-
height: t.NumberC;
|
|
182
|
-
}>>;
|
|
183
|
-
width: t.NumberC;
|
|
184
|
-
height: t.NumberC;
|
|
185
|
-
edit: t.TypeC<{
|
|
186
|
-
zoom: t.NumberC;
|
|
187
|
-
crop: t.TypeC<{
|
|
188
|
-
x: t.NumberC;
|
|
189
|
-
y: t.NumberC;
|
|
190
|
-
}>;
|
|
191
|
-
background: t.StringC;
|
|
192
|
-
}>;
|
|
193
|
-
}>, t.PartialC<{
|
|
194
|
-
url: t.StringC;
|
|
195
|
-
credits: t.Type<string | null, string | null, unknown>;
|
|
196
|
-
alt: t.Type<string | null, string | null, unknown>;
|
|
197
|
-
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
198
|
-
}>]>>, t.PartialC<{
|
|
199
|
-
linkTo: t.UnionC<[t.Type<({
|
|
200
|
-
__TYPE__: "ImageLink";
|
|
201
|
-
} & {
|
|
202
|
-
id: string;
|
|
203
|
-
url: string;
|
|
204
|
-
height: string;
|
|
205
|
-
width: string;
|
|
206
|
-
size: string;
|
|
207
|
-
name: string;
|
|
208
|
-
kind: string;
|
|
209
|
-
} & {
|
|
210
|
-
date?: string | null | undefined;
|
|
211
|
-
}) | ({
|
|
212
|
-
id: string;
|
|
213
|
-
url: string;
|
|
214
|
-
name: string;
|
|
215
|
-
kind: string;
|
|
216
|
-
} & {
|
|
217
|
-
date?: string | null | undefined;
|
|
218
|
-
size?: string;
|
|
219
|
-
} & {
|
|
220
|
-
__TYPE__: "FileLink";
|
|
221
|
-
} & {
|
|
222
|
-
size?: string;
|
|
223
|
-
}) | ({
|
|
224
|
-
__TYPE__: "DocumentLink";
|
|
225
|
-
} & {
|
|
226
|
-
id: string;
|
|
227
|
-
}) | ({
|
|
228
|
-
__TYPE__: "ExternalLink";
|
|
229
|
-
} & {
|
|
230
|
-
url: string;
|
|
231
|
-
} & {
|
|
232
|
-
kind?: "web";
|
|
233
|
-
target?: string | null | undefined;
|
|
234
|
-
preview?: {
|
|
235
|
-
title?: string;
|
|
236
|
-
} | null | undefined;
|
|
237
|
-
}), ({
|
|
238
|
-
__TYPE__: "ImageLink";
|
|
239
|
-
} & {
|
|
240
|
-
id: string;
|
|
241
|
-
url: string;
|
|
242
|
-
height: string;
|
|
243
|
-
width: string;
|
|
244
|
-
size: string;
|
|
245
|
-
name: string;
|
|
246
|
-
kind: string;
|
|
247
|
-
} & {
|
|
248
|
-
date?: string | null | undefined;
|
|
249
|
-
} & {
|
|
250
|
-
__TYPE__: "ImageLink";
|
|
251
|
-
}) | ({
|
|
252
|
-
id: string;
|
|
253
|
-
url: string;
|
|
254
|
-
name: string;
|
|
255
|
-
kind: string;
|
|
256
|
-
} & {
|
|
257
|
-
date?: string | null | undefined;
|
|
258
|
-
size?: string;
|
|
259
|
-
} & {
|
|
260
|
-
__TYPE__: "FileLink";
|
|
261
|
-
} & {
|
|
262
|
-
__TYPE__: "FileLink";
|
|
263
|
-
} & {
|
|
264
|
-
size?: string;
|
|
265
|
-
}) | ({
|
|
266
|
-
__TYPE__: "DocumentLink";
|
|
267
|
-
} & {
|
|
268
|
-
id: string;
|
|
269
|
-
} & {
|
|
270
|
-
__TYPE__: "DocumentLink";
|
|
271
|
-
}) | ({
|
|
272
|
-
__TYPE__: "ExternalLink";
|
|
273
|
-
} & {
|
|
274
|
-
url: string;
|
|
275
|
-
} & {
|
|
276
|
-
kind?: "web";
|
|
277
|
-
target?: string | null | undefined;
|
|
278
|
-
preview?: {
|
|
279
|
-
title?: string;
|
|
280
|
-
} | null | undefined;
|
|
281
|
-
} & {
|
|
282
|
-
__TYPE__: "ExternalLink";
|
|
283
|
-
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
284
|
-
}>]>;
|
|
285
|
-
}>, t.PartialC<{
|
|
286
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
287
|
-
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
288
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
289
|
-
type: t.LiteralC<"embed">;
|
|
290
|
-
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
291
|
-
embed_url: t.StringC;
|
|
292
|
-
type: t.StringC;
|
|
293
|
-
}>, t.PartialC<{
|
|
294
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
295
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
296
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
297
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
298
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
299
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
300
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
301
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
302
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
303
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
304
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
305
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
306
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
307
|
-
all: t.UnknownC;
|
|
308
|
-
}>>]>;
|
|
309
|
-
}>, t.PartialC<{
|
|
310
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
311
|
-
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
312
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
313
|
-
type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
314
|
-
content: t.IntersectionC<[t.TypeC<{
|
|
315
|
-
text: t.StringC;
|
|
316
|
-
}>, t.PartialC<{
|
|
317
|
-
spans: t.Type<({
|
|
318
|
-
data?: unknown;
|
|
319
|
-
} & {
|
|
320
|
-
start: number;
|
|
321
|
-
end: number;
|
|
322
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
323
|
-
})[], ({
|
|
324
|
-
data?: unknown;
|
|
325
|
-
} & {
|
|
326
|
-
start: number;
|
|
327
|
-
end: number;
|
|
328
|
-
type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
329
|
-
})[], unknown>;
|
|
330
|
-
}>]>;
|
|
331
|
-
}>, t.PartialC<{
|
|
332
|
-
label: t.StringC;
|
|
333
|
-
direction: t.StringC;
|
|
334
|
-
}>]>>]>>;
|
|
335
|
-
}>>, t.ExactC<t.TypeC<{
|
|
336
|
-
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
337
|
-
}>>]>]>>;
|
|
338
|
-
}>>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RepeatableWidgets = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
6
|
-
const GroupContent_1 = require("../GroupContent");
|
|
7
|
-
const nestable_1 = require("../nestable");
|
|
8
|
-
const RepeatableWidget = t.tuple([t.string, nestable_1.NestableContent]);
|
|
9
|
-
const RepeatableWidgetsBlock = t.strict({
|
|
10
|
-
// We need to get rid of this type that is referencing a GroupType even though it's not.
|
|
11
|
-
// We keep it for now for compatibility with `@prismicio/api-renderer`
|
|
12
|
-
__TYPE__: t.literal(GroupContent_1.GroupItemContentType),
|
|
13
|
-
value: t.array(RepeatableWidget),
|
|
14
|
-
});
|
|
15
|
-
t.array(RepeatableWidget);
|
|
16
|
-
exports.RepeatableWidgets = t.array(RepeatableWidgetsBlock);
|