@prismicio/types-internal 2.5.0 → 2.6.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/_internal/utils.d.ts +2 -2
- package/lib/content/Document.d.ts +588 -1632
- package/lib/content/fields/WidgetContent.d.ts +588 -1632
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +4 -4
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +2 -1
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +5 -2158
- package/lib/content/fields/slices/Slice/RepeatableContent.js +6 -148
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +4 -4
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +6 -1049
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +7 -10
- package/lib/content/fields/slices/Slice/index.d.ts +27 -754
- package/lib/content/fields/slices/Slice/index.js +0 -1
- package/lib/content/fields/slices/SliceItem.d.ts +325 -1051
- package/lib/content/fields/slices/SlicesContent.d.ts +1771 -2815
- package/package.json +1 -1
- package/src/_internal/utils.ts +1 -2
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -8
- package/src/content/fields/slices/Slice/RepeatableContent.ts +11 -242
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +7 -7
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +17 -21
- package/src/content/fields/slices/Slice/index.ts +0 -1
- package/src/content/fields/slices/SlicesContent.ts +2 -2
|
@@ -417,7 +417,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
417
417
|
}>>]>>;
|
|
418
418
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
419
419
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
420
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
420
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
421
421
|
type: t.StringC;
|
|
422
422
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
423
423
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -819,7 +819,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
819
819
|
}>]>>]>>;
|
|
820
820
|
}>>, t.ExactC<t.TypeC<{
|
|
821
821
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
822
|
-
}>>]>]>>;
|
|
822
|
+
}>>]>, t.Type<import("../GroupContent").GroupContent, import("../GroupContent").GroupContent, unknown>]>]>>;
|
|
823
823
|
}>>>;
|
|
824
824
|
}>>, t.ExactC<t.TypeC<{
|
|
825
825
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
@@ -1229,7 +1229,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1229
1229
|
}>>]>, t.Type<import("../GroupContent").GroupContent, import("../GroupContent").GroupContent, unknown>]>>;
|
|
1230
1230
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1231
1231
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1232
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
1232
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1233
1233
|
type: t.StringC;
|
|
1234
1234
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1235
1235
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1631,7 +1631,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1631
1631
|
}>]>>]>>;
|
|
1632
1632
|
}>>, t.ExactC<t.TypeC<{
|
|
1633
1633
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1634
|
-
}>>]>]>>;
|
|
1634
|
+
}>>]>, t.Type<import("../GroupContent").GroupContent, import("../GroupContent").GroupContent, unknown>]>]>>;
|
|
1635
1635
|
}>>>;
|
|
1636
1636
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1637
1637
|
type: t.StringC;
|
|
@@ -2035,809 +2035,110 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2035
2035
|
}>]>>]>>;
|
|
2036
2036
|
}>>, t.ExactC<t.TypeC<{
|
|
2037
2037
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2038
|
-
}>>]>, t.
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
2062
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2063
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
2064
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
2065
|
-
all: t.UnknownC;
|
|
2066
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
2067
|
-
type: t.LiteralC<"Text">;
|
|
2068
|
-
value: t.Type<string, string, unknown>;
|
|
2069
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2070
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2071
|
-
type: t.LiteralC<"Timestamp">;
|
|
2072
|
-
value: t.Type<string, string, unknown>;
|
|
2073
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2074
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2075
|
-
type: t.LiteralC<"Select">;
|
|
2076
|
-
value: t.Type<string, string, unknown>;
|
|
2077
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2078
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2079
|
-
type: t.LiteralC<"Range">;
|
|
2080
|
-
value: t.Type<string, string, unknown>;
|
|
2081
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2082
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2083
|
-
type: t.LiteralC<"Number">;
|
|
2084
|
-
value: t.Type<string, string, unknown>;
|
|
2085
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2086
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2087
|
-
type: t.LiteralC<"Date">;
|
|
2088
|
-
value: t.Type<string, string, unknown>;
|
|
2089
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2090
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2091
|
-
type: t.LiteralC<"Color">;
|
|
2092
|
-
value: t.Type<string, string, unknown>;
|
|
2093
|
-
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2094
|
-
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2095
|
-
position: t.ExactC<t.TypeC<{
|
|
2096
|
-
lat: t.NumberC;
|
|
2097
|
-
lng: t.NumberC;
|
|
2098
|
-
}>>;
|
|
2099
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2100
|
-
__TYPE__: t.LiteralC<"GeoPointContent">;
|
|
2101
|
-
}>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2102
|
-
origin: t.ExactC<t.TypeC<{
|
|
2103
|
-
id: t.StringC;
|
|
2104
|
-
url: t.StringC;
|
|
2105
|
-
width: t.NumberC;
|
|
2106
|
-
height: t.NumberC;
|
|
2107
|
-
}>>;
|
|
2108
|
-
width: t.NumberC;
|
|
2109
|
-
height: t.NumberC;
|
|
2110
|
-
edit: t.TypeC<{
|
|
2111
|
-
zoom: t.NumberC;
|
|
2112
|
-
crop: t.TypeC<{
|
|
2113
|
-
x: t.NumberC;
|
|
2114
|
-
y: t.NumberC;
|
|
2115
|
-
}>;
|
|
2116
|
-
background: t.StringC;
|
|
2117
|
-
}>;
|
|
2118
|
-
}>, t.PartialC<{
|
|
2119
|
-
url: t.StringC;
|
|
2120
|
-
credits: t.Type<string | null, string | null, unknown>;
|
|
2121
|
-
alt: t.Type<string | null, string | null, unknown>;
|
|
2122
|
-
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2123
|
-
}>]>>, t.PartialC<{
|
|
2124
|
-
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2125
|
-
origin: t.ExactC<t.TypeC<{
|
|
2126
|
-
id: t.StringC;
|
|
2127
|
-
url: t.StringC;
|
|
2128
|
-
width: t.NumberC;
|
|
2129
|
-
height: t.NumberC;
|
|
2130
|
-
}>>;
|
|
2131
|
-
width: t.NumberC;
|
|
2132
|
-
height: t.NumberC;
|
|
2133
|
-
edit: t.TypeC<{
|
|
2134
|
-
zoom: t.NumberC;
|
|
2135
|
-
crop: t.TypeC<{
|
|
2136
|
-
x: t.NumberC;
|
|
2137
|
-
y: t.NumberC;
|
|
2138
|
-
}>;
|
|
2139
|
-
background: t.StringC;
|
|
2140
|
-
}>;
|
|
2141
|
-
}>, t.PartialC<{
|
|
2142
|
-
url: t.StringC;
|
|
2143
|
-
credits: t.Type<string | null, string | null, unknown>;
|
|
2144
|
-
alt: t.Type<string | null, string | null, unknown>;
|
|
2145
|
-
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2146
|
-
}>]>>>;
|
|
2147
|
-
}>]>, t.ExactC<t.TypeC<{
|
|
2148
|
-
__TYPE__: t.LiteralC<"ImageContent">;
|
|
2149
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
2150
|
-
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2151
|
-
value: t.StringC;
|
|
2152
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2153
|
-
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2154
|
-
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2155
|
-
__TYPE__: t.LiteralC<"ImageLink">;
|
|
2156
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2157
|
-
id: t.StringC;
|
|
2158
|
-
url: t.StringC;
|
|
2159
|
-
height: t.StringC;
|
|
2160
|
-
width: t.StringC;
|
|
2161
|
-
size: t.StringC;
|
|
2162
|
-
name: t.StringC;
|
|
2163
|
-
kind: t.StringC;
|
|
2164
|
-
}>, t.PartialC<{
|
|
2165
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2166
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2167
|
-
id: t.StringC;
|
|
2168
|
-
url: t.StringC;
|
|
2169
|
-
name: t.StringC;
|
|
2170
|
-
kind: t.StringC;
|
|
2171
|
-
size: t.StringC;
|
|
2172
|
-
}>, t.PartialC<{
|
|
2173
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2174
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2175
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
2176
|
-
}>, t.PartialC<{
|
|
2177
|
-
size: t.StringC;
|
|
2178
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2179
|
-
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
2180
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2181
|
-
id: t.Type<string, string, unknown>;
|
|
2182
|
-
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2183
|
-
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
2184
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2185
|
-
url: t.StringC;
|
|
2186
|
-
}>, t.PartialC<{
|
|
2187
|
-
kind: t.LiteralC<"web">;
|
|
2188
|
-
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2189
|
-
preview: t.UnionC<[t.Type<{
|
|
2190
|
-
title?: string;
|
|
2191
|
-
}, {
|
|
2192
|
-
title?: string;
|
|
2193
|
-
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
2194
|
-
}>]>>]>]>;
|
|
2195
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2196
|
-
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
2197
|
-
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2198
|
-
type: t.LiteralC<"image">;
|
|
2199
|
-
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2200
|
-
origin: t.ExactC<t.TypeC<{
|
|
2201
|
-
id: t.StringC;
|
|
2202
|
-
url: t.StringC;
|
|
2203
|
-
width: t.NumberC;
|
|
2204
|
-
height: t.NumberC;
|
|
2205
|
-
}>>;
|
|
2206
|
-
width: t.NumberC;
|
|
2207
|
-
height: t.NumberC;
|
|
2208
|
-
edit: t.TypeC<{
|
|
2209
|
-
zoom: t.NumberC;
|
|
2210
|
-
crop: t.TypeC<{
|
|
2211
|
-
x: t.NumberC;
|
|
2212
|
-
y: t.NumberC;
|
|
2213
|
-
}>;
|
|
2214
|
-
background: t.StringC;
|
|
2215
|
-
}>;
|
|
2216
|
-
}>, t.PartialC<{
|
|
2217
|
-
url: t.StringC;
|
|
2218
|
-
credits: t.Type<string | null, string | null, unknown>;
|
|
2219
|
-
alt: t.Type<string | null, string | null, unknown>;
|
|
2220
|
-
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2221
|
-
}>]>>, t.PartialC<{
|
|
2222
|
-
linkTo: t.UnionC<[t.Type<({
|
|
2223
|
-
__TYPE__: "ImageLink";
|
|
2224
|
-
} & {
|
|
2225
|
-
id: string;
|
|
2226
|
-
url: string;
|
|
2227
|
-
height: string;
|
|
2228
|
-
width: string;
|
|
2229
|
-
size: string;
|
|
2230
|
-
name: string;
|
|
2231
|
-
kind: string;
|
|
2232
|
-
} & {
|
|
2233
|
-
date?: string | null | undefined;
|
|
2234
|
-
}) | ({
|
|
2235
|
-
id: string;
|
|
2236
|
-
url: string;
|
|
2237
|
-
name: string;
|
|
2238
|
-
kind: string;
|
|
2239
|
-
size: string;
|
|
2240
|
-
} & {
|
|
2241
|
-
date?: string | null | undefined;
|
|
2242
|
-
} & {
|
|
2243
|
-
__TYPE__: "FileLink";
|
|
2244
|
-
} & {
|
|
2245
|
-
size?: string;
|
|
2246
|
-
}) | ({
|
|
2247
|
-
__TYPE__: "DocumentLink";
|
|
2248
|
-
} & {
|
|
2249
|
-
id: string;
|
|
2250
|
-
}) | ({
|
|
2251
|
-
__TYPE__: "ExternalLink";
|
|
2252
|
-
} & {
|
|
2253
|
-
url: string;
|
|
2254
|
-
} & {
|
|
2255
|
-
kind?: "web";
|
|
2256
|
-
target?: string | null | undefined;
|
|
2257
|
-
preview?: {
|
|
2258
|
-
title?: string;
|
|
2259
|
-
} | null | undefined;
|
|
2260
|
-
}), ({
|
|
2261
|
-
__TYPE__: "ImageLink";
|
|
2262
|
-
} & {
|
|
2263
|
-
id: string;
|
|
2264
|
-
url: string;
|
|
2265
|
-
height: string;
|
|
2266
|
-
width: string;
|
|
2267
|
-
size: string;
|
|
2268
|
-
name: string;
|
|
2269
|
-
kind: string;
|
|
2270
|
-
} & {
|
|
2271
|
-
date?: string | null | undefined;
|
|
2272
|
-
}) | ({
|
|
2273
|
-
id: string;
|
|
2274
|
-
url: string;
|
|
2275
|
-
name: string;
|
|
2276
|
-
kind: string;
|
|
2277
|
-
size: string;
|
|
2278
|
-
} & {
|
|
2279
|
-
date?: string | null | undefined;
|
|
2280
|
-
} & {
|
|
2281
|
-
__TYPE__: "FileLink";
|
|
2282
|
-
} & {
|
|
2283
|
-
size?: string;
|
|
2284
|
-
}) | ({
|
|
2285
|
-
__TYPE__: "DocumentLink";
|
|
2286
|
-
} & {
|
|
2287
|
-
id: string;
|
|
2288
|
-
}) | ({
|
|
2289
|
-
__TYPE__: "ExternalLink";
|
|
2290
|
-
} & {
|
|
2291
|
-
url: string;
|
|
2292
|
-
} & {
|
|
2293
|
-
kind?: "web";
|
|
2294
|
-
target?: string | null | undefined;
|
|
2295
|
-
preview?: {
|
|
2296
|
-
title?: string;
|
|
2297
|
-
} | null | undefined;
|
|
2298
|
-
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
2299
|
-
}>]>;
|
|
2300
|
-
}>, t.PartialC<{
|
|
2301
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2302
|
-
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2303
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2304
|
-
type: t.LiteralC<"embed">;
|
|
2305
|
-
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2306
|
-
embed_url: t.StringC;
|
|
2307
|
-
type: t.StringC;
|
|
2308
|
-
}>, t.PartialC<{
|
|
2309
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
2310
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2311
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2312
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2313
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2314
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2315
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
2316
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2317
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
2318
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
2319
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2320
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
2321
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
2322
|
-
all: t.UnknownC;
|
|
2323
|
-
}>>]>;
|
|
2324
|
-
}>, t.PartialC<{
|
|
2325
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2326
|
-
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2327
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2328
|
-
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>;
|
|
2329
|
-
content: t.IntersectionC<[t.TypeC<{
|
|
2330
|
-
text: t.StringC;
|
|
2331
|
-
}>, t.PartialC<{
|
|
2332
|
-
spans: t.Type<({
|
|
2333
|
-
data: ({
|
|
2334
|
-
__TYPE__: "ImageLink";
|
|
2335
|
-
} & {
|
|
2336
|
-
id: string;
|
|
2337
|
-
url: string;
|
|
2338
|
-
height: string;
|
|
2339
|
-
width: string;
|
|
2340
|
-
size: string;
|
|
2341
|
-
name: string;
|
|
2342
|
-
kind: string;
|
|
2343
|
-
} & {
|
|
2344
|
-
date?: string | null | undefined;
|
|
2345
|
-
}) | ({
|
|
2346
|
-
id: string;
|
|
2347
|
-
url: string;
|
|
2348
|
-
name: string;
|
|
2349
|
-
kind: string;
|
|
2350
|
-
size: string;
|
|
2351
|
-
} & {
|
|
2352
|
-
date?: string | null | undefined;
|
|
2353
|
-
} & {
|
|
2354
|
-
__TYPE__: "FileLink";
|
|
2355
|
-
} & {
|
|
2356
|
-
size?: string;
|
|
2357
|
-
}) | ({
|
|
2358
|
-
__TYPE__: "DocumentLink";
|
|
2359
|
-
} & {
|
|
2360
|
-
id: string;
|
|
2361
|
-
}) | ({
|
|
2362
|
-
__TYPE__: "ExternalLink";
|
|
2363
|
-
} & {
|
|
2364
|
-
url: string;
|
|
2365
|
-
} & {
|
|
2366
|
-
kind?: "web";
|
|
2367
|
-
target?: string | null | undefined;
|
|
2368
|
-
preview?: {
|
|
2369
|
-
title?: string;
|
|
2370
|
-
} | null | undefined;
|
|
2371
|
-
});
|
|
2372
|
-
start: number;
|
|
2373
|
-
end: number;
|
|
2374
|
-
type: "hyperlink";
|
|
2375
|
-
} | {
|
|
2376
|
-
data: string;
|
|
2377
|
-
start: number;
|
|
2378
|
-
end: number;
|
|
2379
|
-
type: "label";
|
|
2380
|
-
} | {
|
|
2381
|
-
start: number;
|
|
2382
|
-
end: number;
|
|
2383
|
-
type: "strong" | "em" | "list-item";
|
|
2384
|
-
})[], ({
|
|
2385
|
-
data: ({
|
|
2386
|
-
__TYPE__: "ImageLink";
|
|
2387
|
-
} & {
|
|
2388
|
-
id: string;
|
|
2389
|
-
url: string;
|
|
2390
|
-
height: string;
|
|
2391
|
-
width: string;
|
|
2392
|
-
size: string;
|
|
2393
|
-
name: string;
|
|
2394
|
-
kind: string;
|
|
2395
|
-
} & {
|
|
2396
|
-
date?: string | null | undefined;
|
|
2397
|
-
}) | ({
|
|
2398
|
-
id: string;
|
|
2399
|
-
url: string;
|
|
2400
|
-
name: string;
|
|
2401
|
-
kind: string;
|
|
2402
|
-
size: string;
|
|
2403
|
-
} & {
|
|
2404
|
-
date?: string | null | undefined;
|
|
2405
|
-
} & {
|
|
2406
|
-
__TYPE__: "FileLink";
|
|
2407
|
-
} & {
|
|
2408
|
-
size?: string;
|
|
2409
|
-
}) | ({
|
|
2410
|
-
__TYPE__: "DocumentLink";
|
|
2411
|
-
} & {
|
|
2412
|
-
id: string;
|
|
2413
|
-
}) | ({
|
|
2414
|
-
__TYPE__: "ExternalLink";
|
|
2415
|
-
} & {
|
|
2416
|
-
url: string;
|
|
2417
|
-
} & {
|
|
2418
|
-
kind?: "web";
|
|
2419
|
-
target?: string | null | undefined;
|
|
2420
|
-
preview?: {
|
|
2421
|
-
title?: string;
|
|
2422
|
-
} | null | undefined;
|
|
2423
|
-
});
|
|
2424
|
-
start: number;
|
|
2425
|
-
end: number;
|
|
2426
|
-
type: "hyperlink";
|
|
2427
|
-
} | {
|
|
2428
|
-
data: string;
|
|
2429
|
-
start: number;
|
|
2430
|
-
end: number;
|
|
2431
|
-
type: "label";
|
|
2432
|
-
} | {
|
|
2433
|
-
start: number;
|
|
2434
|
-
end: number;
|
|
2435
|
-
type: "strong" | "em" | "list-item";
|
|
2436
|
-
})[], unknown>;
|
|
2437
|
-
}>]>;
|
|
2438
|
-
}>, t.PartialC<{
|
|
2439
|
-
label: t.StringC;
|
|
2440
|
-
direction: t.StringC;
|
|
2441
|
-
}>]>>]>>;
|
|
2442
|
-
}>>, t.ExactC<t.TypeC<{
|
|
2443
|
-
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2444
|
-
}>>]>]>>;
|
|
2445
|
-
}>>>;
|
|
2446
|
-
}>>]>]>;
|
|
2447
|
-
}>;
|
|
2448
|
-
export declare type SliceItemContent = t.TypeOf<typeof SliceItemContent>;
|
|
2449
|
-
export declare type SharedSliceItemContent = Omit<SliceItemContent, "widget"> & {
|
|
2450
|
-
widget: SharedSliceContent;
|
|
2451
|
-
};
|
|
2452
|
-
export declare function isSharedSliceItemContent(item: SliceItemContent): item is SharedSliceItemContent;
|
|
2453
|
-
export declare type CompositeSliceItemContent = Omit<SliceItemContent, "widget"> & {
|
|
2454
|
-
widget: CompositeSliceContent;
|
|
2455
|
-
};
|
|
2456
|
-
export declare function isCompositeSliceItemContent(item: SliceItemContent): item is CompositeSliceItemContent;
|
|
2457
|
-
export declare type SimpleSliceItemContent = Omit<SliceItemContent, "widget"> & {
|
|
2458
|
-
widget: SimpleSliceContent;
|
|
2459
|
-
};
|
|
2460
|
-
export declare function isSimpleSliceItemContent(item: SliceItemContent): item is SimpleSliceItemContent;
|
|
2461
|
-
export declare function sliceItemContentWithDefaultValues(customType: StaticSlice, content: SliceContent): SliceContent;
|
|
2462
|
-
export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
2463
|
-
key: string;
|
|
2464
|
-
name: string;
|
|
2465
|
-
maybeLabel: string | undefined;
|
|
2466
|
-
widget: {
|
|
2467
|
-
type: string;
|
|
2468
|
-
__TYPE__: "EmptyContent";
|
|
2469
|
-
} | {
|
|
2470
|
-
__TYPE__: "BooleanContent";
|
|
2471
|
-
value: boolean;
|
|
2472
|
-
} | ({
|
|
2473
|
-
embed_url: string;
|
|
2474
|
-
type: string;
|
|
2475
|
-
} & {
|
|
2476
|
-
version?: string | number | null;
|
|
2477
|
-
title?: string | null | undefined;
|
|
2478
|
-
author_name?: string | null | undefined;
|
|
2479
|
-
author_url?: string | null | undefined;
|
|
2480
|
-
provider_name?: string | null | undefined;
|
|
2481
|
-
provider_url?: string | null | undefined;
|
|
2482
|
-
cache_age?: string | number | null;
|
|
2483
|
-
thumbnail_url?: string | null | undefined;
|
|
2484
|
-
thumbnail_width?: number | null | undefined;
|
|
2485
|
-
thumbnail_height?: number | null | undefined;
|
|
2486
|
-
html?: string | null | undefined;
|
|
2487
|
-
} & {
|
|
2488
|
-
__TYPE__: "EmbedContent";
|
|
2489
|
-
all: unknown;
|
|
2490
|
-
}) | {
|
|
2491
|
-
type: "Color";
|
|
2492
|
-
value: string;
|
|
2493
|
-
__TYPE__: "FieldContent";
|
|
2494
|
-
} | {
|
|
2495
|
-
type: "Date";
|
|
2496
|
-
value: string;
|
|
2497
|
-
__TYPE__: "FieldContent";
|
|
2498
|
-
} | {
|
|
2499
|
-
type: "Number";
|
|
2500
|
-
value: string;
|
|
2501
|
-
__TYPE__: "FieldContent";
|
|
2502
|
-
} | {
|
|
2503
|
-
type: "Range";
|
|
2504
|
-
value: string;
|
|
2505
|
-
__TYPE__: "FieldContent";
|
|
2506
|
-
} | {
|
|
2507
|
-
type: "Select";
|
|
2508
|
-
value: string;
|
|
2509
|
-
__TYPE__: "FieldContent";
|
|
2510
|
-
} | {
|
|
2511
|
-
type: "Text";
|
|
2512
|
-
value: string;
|
|
2513
|
-
__TYPE__: "FieldContent";
|
|
2514
|
-
} | {
|
|
2515
|
-
type: "Timestamp";
|
|
2516
|
-
value: string;
|
|
2517
|
-
__TYPE__: "FieldContent";
|
|
2518
|
-
} | ({
|
|
2519
|
-
position: {
|
|
2520
|
-
lat: number;
|
|
2521
|
-
lng: number;
|
|
2522
|
-
};
|
|
2523
|
-
} & {
|
|
2524
|
-
__TYPE__: "GeoPointContent";
|
|
2525
|
-
}) | ({
|
|
2526
|
-
origin: {
|
|
2527
|
-
id: string;
|
|
2528
|
-
url: string;
|
|
2529
|
-
width: number;
|
|
2530
|
-
height: number;
|
|
2531
|
-
};
|
|
2532
|
-
width: number;
|
|
2533
|
-
height: number;
|
|
2534
|
-
edit: {
|
|
2535
|
-
zoom: number;
|
|
2536
|
-
crop: {
|
|
2537
|
-
x: number;
|
|
2538
|
-
y: number;
|
|
2539
|
-
};
|
|
2540
|
-
background: string;
|
|
2541
|
-
};
|
|
2542
|
-
} & {
|
|
2543
|
-
url?: string;
|
|
2544
|
-
credits?: string | null;
|
|
2545
|
-
alt?: string | null;
|
|
2546
|
-
provider?: string | null | undefined;
|
|
2547
|
-
} & {
|
|
2548
|
-
thumbnails?: {
|
|
2549
|
-
[x: string]: {
|
|
2550
|
-
origin: {
|
|
2551
|
-
id: string;
|
|
2552
|
-
url: string;
|
|
2553
|
-
width: number;
|
|
2554
|
-
height: number;
|
|
2555
|
-
};
|
|
2556
|
-
width: number;
|
|
2557
|
-
height: number;
|
|
2558
|
-
edit: {
|
|
2559
|
-
zoom: number;
|
|
2560
|
-
crop: {
|
|
2561
|
-
x: number;
|
|
2562
|
-
y: number;
|
|
2563
|
-
};
|
|
2564
|
-
background: string;
|
|
2565
|
-
};
|
|
2566
|
-
} & {
|
|
2567
|
-
url?: string;
|
|
2568
|
-
credits?: string | null;
|
|
2569
|
-
alt?: string | null;
|
|
2570
|
-
provider?: string | null | undefined;
|
|
2571
|
-
};
|
|
2572
|
-
};
|
|
2573
|
-
} & {
|
|
2574
|
-
__TYPE__: "ImageContent";
|
|
2575
|
-
}) | {
|
|
2576
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
2577
|
-
value: string;
|
|
2578
|
-
} | {
|
|
2579
|
-
__TYPE__: "LinkContent";
|
|
2580
|
-
value: ({
|
|
2581
|
-
__TYPE__: "ImageLink";
|
|
2582
|
-
} & {
|
|
2583
|
-
id: string;
|
|
2584
|
-
url: string;
|
|
2585
|
-
height: string;
|
|
2586
|
-
width: string;
|
|
2587
|
-
size: string;
|
|
2588
|
-
name: string;
|
|
2589
|
-
kind: string;
|
|
2590
|
-
} & {
|
|
2591
|
-
date?: string | null | undefined;
|
|
2592
|
-
}) | ({
|
|
2593
|
-
id: string;
|
|
2594
|
-
url: string;
|
|
2595
|
-
name: string;
|
|
2596
|
-
kind: string;
|
|
2597
|
-
size: string;
|
|
2598
|
-
} & {
|
|
2599
|
-
date?: string | null | undefined;
|
|
2600
|
-
} & {
|
|
2601
|
-
__TYPE__: "FileLink";
|
|
2602
|
-
} & {
|
|
2603
|
-
size?: string;
|
|
2604
|
-
}) | ({
|
|
2605
|
-
__TYPE__: "DocumentLink";
|
|
2606
|
-
} & {
|
|
2607
|
-
id: string;
|
|
2608
|
-
}) | ({
|
|
2609
|
-
__TYPE__: "ExternalLink";
|
|
2610
|
-
} & {
|
|
2611
|
-
url: string;
|
|
2612
|
-
} & {
|
|
2613
|
-
kind?: "web";
|
|
2614
|
-
target?: string | null | undefined;
|
|
2615
|
-
preview?: {
|
|
2616
|
-
title?: string;
|
|
2617
|
-
} | null | undefined;
|
|
2618
|
-
});
|
|
2619
|
-
} | {
|
|
2620
|
-
__TYPE__: "StructuredTextContent";
|
|
2621
|
-
value: (({
|
|
2622
|
-
type: "image";
|
|
2623
|
-
data: {
|
|
2624
|
-
origin: {
|
|
2625
|
-
id: string;
|
|
2626
|
-
url: string;
|
|
2627
|
-
width: number;
|
|
2628
|
-
height: number;
|
|
2629
|
-
};
|
|
2630
|
-
width: number;
|
|
2631
|
-
height: number;
|
|
2632
|
-
edit: {
|
|
2633
|
-
zoom: number;
|
|
2634
|
-
crop: {
|
|
2635
|
-
x: number;
|
|
2636
|
-
y: number;
|
|
2637
|
-
};
|
|
2638
|
-
background: string;
|
|
2639
|
-
};
|
|
2640
|
-
} & {
|
|
2641
|
-
url?: string;
|
|
2642
|
-
credits?: string | null;
|
|
2643
|
-
alt?: string | null;
|
|
2644
|
-
provider?: string | null | undefined;
|
|
2645
|
-
} & {
|
|
2646
|
-
linkTo?: ({
|
|
2647
|
-
__TYPE__: "ImageLink";
|
|
2648
|
-
} & {
|
|
2649
|
-
id: string;
|
|
2650
|
-
url: string;
|
|
2651
|
-
height: string;
|
|
2652
|
-
width: string;
|
|
2653
|
-
size: string;
|
|
2654
|
-
name: string;
|
|
2655
|
-
kind: string;
|
|
2656
|
-
} & {
|
|
2657
|
-
date?: string | null | undefined;
|
|
2658
|
-
}) | ({
|
|
2659
|
-
id: string;
|
|
2660
|
-
url: string;
|
|
2661
|
-
name: string;
|
|
2662
|
-
kind: string;
|
|
2663
|
-
size: string;
|
|
2664
|
-
} & {
|
|
2665
|
-
date?: string | null | undefined;
|
|
2666
|
-
} & {
|
|
2667
|
-
__TYPE__: "FileLink";
|
|
2668
|
-
} & {
|
|
2669
|
-
size?: string;
|
|
2670
|
-
}) | ({
|
|
2671
|
-
__TYPE__: "DocumentLink";
|
|
2672
|
-
} & {
|
|
2673
|
-
id: string;
|
|
2674
|
-
}) | ({
|
|
2675
|
-
__TYPE__: "ExternalLink";
|
|
2676
|
-
} & {
|
|
2677
|
-
url: string;
|
|
2678
|
-
} & {
|
|
2679
|
-
kind?: "web";
|
|
2680
|
-
target?: string | null | undefined;
|
|
2681
|
-
preview?: {
|
|
2682
|
-
title?: string;
|
|
2683
|
-
} | null | undefined;
|
|
2684
|
-
}) | null | undefined;
|
|
2685
|
-
};
|
|
2686
|
-
} & {
|
|
2687
|
-
label?: string | null | undefined;
|
|
2688
|
-
direction?: string | null | undefined;
|
|
2689
|
-
}) | ({
|
|
2690
|
-
type: "embed";
|
|
2691
|
-
data: {
|
|
2692
|
-
embed_url: string;
|
|
2693
|
-
type: string;
|
|
2694
|
-
} & {
|
|
2695
|
-
version?: string | number | null;
|
|
2696
|
-
title?: string | null | undefined;
|
|
2697
|
-
author_name?: string | null | undefined;
|
|
2698
|
-
author_url?: string | null | undefined;
|
|
2699
|
-
provider_name?: string | null | undefined;
|
|
2700
|
-
provider_url?: string | null | undefined;
|
|
2701
|
-
cache_age?: string | number | null;
|
|
2702
|
-
thumbnail_url?: string | null | undefined;
|
|
2703
|
-
thumbnail_width?: number | null | undefined;
|
|
2704
|
-
thumbnail_height?: number | null | undefined;
|
|
2705
|
-
html?: string | null | undefined;
|
|
2706
|
-
} & {
|
|
2707
|
-
__TYPE__: "EmbedContent";
|
|
2708
|
-
all: unknown;
|
|
2709
|
-
};
|
|
2710
|
-
} & {
|
|
2711
|
-
label?: string | null | undefined;
|
|
2712
|
-
direction?: string | null | undefined;
|
|
2713
|
-
}) | ({
|
|
2714
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2715
|
-
content: {
|
|
2716
|
-
text: string;
|
|
2717
|
-
} & {
|
|
2718
|
-
spans?: ({
|
|
2719
|
-
data: ({
|
|
2720
|
-
__TYPE__: "ImageLink";
|
|
2721
|
-
} & {
|
|
2722
|
-
id: string;
|
|
2723
|
-
url: string;
|
|
2724
|
-
height: string;
|
|
2725
|
-
width: string;
|
|
2726
|
-
size: string;
|
|
2727
|
-
name: string;
|
|
2728
|
-
kind: string;
|
|
2729
|
-
} & {
|
|
2730
|
-
date?: string | null | undefined;
|
|
2731
|
-
}) | ({
|
|
2732
|
-
id: string;
|
|
2733
|
-
url: string;
|
|
2734
|
-
name: string;
|
|
2735
|
-
kind: string;
|
|
2736
|
-
size: string;
|
|
2737
|
-
} & {
|
|
2738
|
-
date?: string | null | undefined;
|
|
2739
|
-
} & {
|
|
2740
|
-
__TYPE__: "FileLink";
|
|
2741
|
-
} & {
|
|
2742
|
-
size?: string;
|
|
2743
|
-
}) | ({
|
|
2744
|
-
__TYPE__: "DocumentLink";
|
|
2745
|
-
} & {
|
|
2746
|
-
id: string;
|
|
2747
|
-
}) | ({
|
|
2748
|
-
__TYPE__: "ExternalLink";
|
|
2749
|
-
} & {
|
|
2750
|
-
url: string;
|
|
2751
|
-
} & {
|
|
2752
|
-
kind?: "web";
|
|
2753
|
-
target?: string | null | undefined;
|
|
2754
|
-
preview?: {
|
|
2755
|
-
title?: string;
|
|
2756
|
-
} | null | undefined;
|
|
2757
|
-
});
|
|
2758
|
-
start: number;
|
|
2759
|
-
end: number;
|
|
2760
|
-
type: "hyperlink";
|
|
2761
|
-
} | {
|
|
2762
|
-
data: string;
|
|
2763
|
-
start: number;
|
|
2764
|
-
end: number;
|
|
2765
|
-
type: "label";
|
|
2766
|
-
} | {
|
|
2767
|
-
start: number;
|
|
2768
|
-
end: number;
|
|
2769
|
-
type: "strong" | "em" | "list-item";
|
|
2770
|
-
})[];
|
|
2771
|
-
};
|
|
2772
|
-
} & {
|
|
2773
|
-
label?: string;
|
|
2774
|
-
direction?: string;
|
|
2775
|
-
}))[];
|
|
2776
|
-
} | {
|
|
2777
|
-
__TYPE__: "SeparatorContent";
|
|
2038
|
+
}>>]>, t.Type<import("../GroupContent").GroupContent, import("../GroupContent").GroupContent, unknown>]>]>;
|
|
2039
|
+
}>;
|
|
2040
|
+
export declare type SliceItemContent = t.TypeOf<typeof SliceItemContent>;
|
|
2041
|
+
export declare type SharedSliceItemContent = Omit<SliceItemContent, "widget"> & {
|
|
2042
|
+
widget: SharedSliceContent;
|
|
2043
|
+
};
|
|
2044
|
+
export declare function isSharedSliceItemContent(item: SliceItemContent): item is SharedSliceItemContent;
|
|
2045
|
+
export declare type CompositeSliceItemContent = Omit<SliceItemContent, "widget"> & {
|
|
2046
|
+
widget: CompositeSliceContent;
|
|
2047
|
+
};
|
|
2048
|
+
export declare function isCompositeSliceItemContent(item: SliceItemContent): item is CompositeSliceItemContent;
|
|
2049
|
+
export declare type SimpleSliceItemContent = Omit<SliceItemContent, "widget"> & {
|
|
2050
|
+
widget: SimpleSliceContent;
|
|
2051
|
+
};
|
|
2052
|
+
export declare function isSimpleSliceItemContent(item: SliceItemContent): item is SimpleSliceItemContent;
|
|
2053
|
+
export declare function sliceItemContentWithDefaultValues(customType: StaticSlice, content: SliceContent): SliceContent;
|
|
2054
|
+
export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
2055
|
+
key: string;
|
|
2056
|
+
name: string;
|
|
2057
|
+
maybeLabel: string | undefined;
|
|
2058
|
+
widget: {
|
|
2059
|
+
type: string;
|
|
2060
|
+
__TYPE__: "EmptyContent";
|
|
2778
2061
|
} | {
|
|
2779
|
-
__TYPE__: "
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2062
|
+
__TYPE__: "BooleanContent";
|
|
2063
|
+
value: boolean;
|
|
2064
|
+
} | ({
|
|
2065
|
+
embed_url: string;
|
|
2066
|
+
type: string;
|
|
2067
|
+
} & {
|
|
2068
|
+
version?: string | number | null;
|
|
2069
|
+
title?: string | null | undefined;
|
|
2070
|
+
author_name?: string | null | undefined;
|
|
2071
|
+
author_url?: string | null | undefined;
|
|
2072
|
+
provider_name?: string | null | undefined;
|
|
2073
|
+
provider_url?: string | null | undefined;
|
|
2074
|
+
cache_age?: string | number | null;
|
|
2075
|
+
thumbnail_url?: string | null | undefined;
|
|
2076
|
+
thumbnail_width?: number | null | undefined;
|
|
2077
|
+
thumbnail_height?: number | null | undefined;
|
|
2078
|
+
html?: string | null | undefined;
|
|
2079
|
+
} & {
|
|
2080
|
+
__TYPE__: "EmbedContent";
|
|
2081
|
+
all: unknown;
|
|
2082
|
+
}) | {
|
|
2083
|
+
type: "Color";
|
|
2084
|
+
value: string;
|
|
2085
|
+
__TYPE__: "FieldContent";
|
|
2086
|
+
} | {
|
|
2087
|
+
type: "Date";
|
|
2088
|
+
value: string;
|
|
2089
|
+
__TYPE__: "FieldContent";
|
|
2090
|
+
} | {
|
|
2091
|
+
type: "Number";
|
|
2092
|
+
value: string;
|
|
2093
|
+
__TYPE__: "FieldContent";
|
|
2094
|
+
} | {
|
|
2095
|
+
type: "Range";
|
|
2096
|
+
value: string;
|
|
2097
|
+
__TYPE__: "FieldContent";
|
|
2098
|
+
} | {
|
|
2099
|
+
type: "Select";
|
|
2100
|
+
value: string;
|
|
2101
|
+
__TYPE__: "FieldContent";
|
|
2102
|
+
} | {
|
|
2103
|
+
type: "Text";
|
|
2104
|
+
value: string;
|
|
2105
|
+
__TYPE__: "FieldContent";
|
|
2106
|
+
} | {
|
|
2107
|
+
type: "Timestamp";
|
|
2108
|
+
value: string;
|
|
2109
|
+
__TYPE__: "FieldContent";
|
|
2110
|
+
} | ({
|
|
2111
|
+
position: {
|
|
2112
|
+
lat: number;
|
|
2113
|
+
lng: number;
|
|
2114
|
+
};
|
|
2115
|
+
} & {
|
|
2116
|
+
__TYPE__: "GeoPointContent";
|
|
2117
|
+
}) | ({
|
|
2118
|
+
origin: {
|
|
2119
|
+
id: string;
|
|
2120
|
+
url: string;
|
|
2121
|
+
width: number;
|
|
2122
|
+
height: number;
|
|
2123
|
+
};
|
|
2124
|
+
width: number;
|
|
2125
|
+
height: number;
|
|
2126
|
+
edit: {
|
|
2127
|
+
zoom: number;
|
|
2128
|
+
crop: {
|
|
2129
|
+
x: number;
|
|
2130
|
+
y: number;
|
|
2131
|
+
};
|
|
2132
|
+
background: string;
|
|
2133
|
+
};
|
|
2134
|
+
} & {
|
|
2135
|
+
url?: string;
|
|
2136
|
+
credits?: string | null;
|
|
2137
|
+
alt?: string | null;
|
|
2138
|
+
provider?: string | null | undefined;
|
|
2139
|
+
} & {
|
|
2140
|
+
thumbnails?: {
|
|
2141
|
+
[x: string]: {
|
|
2841
2142
|
origin: {
|
|
2842
2143
|
id: string;
|
|
2843
2144
|
url: string;
|
|
@@ -2859,242 +2160,217 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2859
2160
|
credits?: string | null;
|
|
2860
2161
|
alt?: string | null;
|
|
2861
2162
|
provider?: string | null | undefined;
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
__TYPE__: "FileLink";
|
|
2917
|
-
} & {
|
|
2918
|
-
size?: string;
|
|
2919
|
-
}) | ({
|
|
2920
|
-
__TYPE__: "DocumentLink";
|
|
2921
|
-
} & {
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
} & {
|
|
2166
|
+
__TYPE__: "ImageContent";
|
|
2167
|
+
}) | {
|
|
2168
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
2169
|
+
value: string;
|
|
2170
|
+
} | {
|
|
2171
|
+
__TYPE__: "LinkContent";
|
|
2172
|
+
value: ({
|
|
2173
|
+
__TYPE__: "ImageLink";
|
|
2174
|
+
} & {
|
|
2175
|
+
id: string;
|
|
2176
|
+
url: string;
|
|
2177
|
+
height: string;
|
|
2178
|
+
width: string;
|
|
2179
|
+
size: string;
|
|
2180
|
+
name: string;
|
|
2181
|
+
kind: string;
|
|
2182
|
+
} & {
|
|
2183
|
+
date?: string | null | undefined;
|
|
2184
|
+
}) | ({
|
|
2185
|
+
id: string;
|
|
2186
|
+
url: string;
|
|
2187
|
+
name: string;
|
|
2188
|
+
kind: string;
|
|
2189
|
+
size: string;
|
|
2190
|
+
} & {
|
|
2191
|
+
date?: string | null | undefined;
|
|
2192
|
+
} & {
|
|
2193
|
+
__TYPE__: "FileLink";
|
|
2194
|
+
} & {
|
|
2195
|
+
size?: string;
|
|
2196
|
+
}) | ({
|
|
2197
|
+
__TYPE__: "DocumentLink";
|
|
2198
|
+
} & {
|
|
2199
|
+
id: string;
|
|
2200
|
+
}) | ({
|
|
2201
|
+
__TYPE__: "ExternalLink";
|
|
2202
|
+
} & {
|
|
2203
|
+
url: string;
|
|
2204
|
+
} & {
|
|
2205
|
+
kind?: "web";
|
|
2206
|
+
target?: string | null | undefined;
|
|
2207
|
+
preview?: {
|
|
2208
|
+
title?: string;
|
|
2209
|
+
} | null | undefined;
|
|
2210
|
+
});
|
|
2211
|
+
} | {
|
|
2212
|
+
__TYPE__: "StructuredTextContent";
|
|
2213
|
+
value: (({
|
|
2214
|
+
type: "image";
|
|
2215
|
+
data: {
|
|
2216
|
+
origin: {
|
|
2922
2217
|
id: string;
|
|
2923
|
-
}) | ({
|
|
2924
|
-
__TYPE__: "ExternalLink";
|
|
2925
|
-
} & {
|
|
2926
2218
|
url: string;
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
type: "image";
|
|
2938
|
-
data: {
|
|
2939
|
-
origin: {
|
|
2940
|
-
id: string;
|
|
2941
|
-
url: string;
|
|
2942
|
-
width: number;
|
|
2943
|
-
height: number;
|
|
2944
|
-
};
|
|
2945
|
-
width: number;
|
|
2946
|
-
height: number;
|
|
2947
|
-
edit: {
|
|
2948
|
-
zoom: number;
|
|
2949
|
-
crop: {
|
|
2950
|
-
x: number;
|
|
2951
|
-
y: number;
|
|
2952
|
-
};
|
|
2953
|
-
background: string;
|
|
2954
|
-
};
|
|
2955
|
-
} & {
|
|
2956
|
-
url?: string;
|
|
2957
|
-
credits?: string | null;
|
|
2958
|
-
alt?: string | null;
|
|
2959
|
-
provider?: string | null | undefined;
|
|
2960
|
-
} & {
|
|
2961
|
-
linkTo?: ({
|
|
2962
|
-
__TYPE__: "ImageLink";
|
|
2963
|
-
} & {
|
|
2964
|
-
id: string;
|
|
2965
|
-
url: string;
|
|
2966
|
-
height: string;
|
|
2967
|
-
width: string;
|
|
2968
|
-
size: string;
|
|
2969
|
-
name: string;
|
|
2970
|
-
kind: string;
|
|
2971
|
-
} & {
|
|
2972
|
-
date?: string | null | undefined;
|
|
2973
|
-
}) | ({
|
|
2974
|
-
id: string;
|
|
2975
|
-
url: string;
|
|
2976
|
-
name: string;
|
|
2977
|
-
kind: string;
|
|
2978
|
-
size: string;
|
|
2979
|
-
} & {
|
|
2980
|
-
date?: string | null | undefined;
|
|
2981
|
-
} & {
|
|
2982
|
-
__TYPE__: "FileLink";
|
|
2983
|
-
} & {
|
|
2984
|
-
size?: string;
|
|
2985
|
-
}) | ({
|
|
2986
|
-
__TYPE__: "DocumentLink";
|
|
2987
|
-
} & {
|
|
2988
|
-
id: string;
|
|
2989
|
-
}) | ({
|
|
2990
|
-
__TYPE__: "ExternalLink";
|
|
2991
|
-
} & {
|
|
2992
|
-
url: string;
|
|
2993
|
-
} & {
|
|
2994
|
-
kind?: "web";
|
|
2995
|
-
target?: string | null | undefined;
|
|
2996
|
-
preview?: {
|
|
2997
|
-
title?: string;
|
|
2998
|
-
} | null | undefined;
|
|
2999
|
-
}) | null | undefined;
|
|
2219
|
+
width: number;
|
|
2220
|
+
height: number;
|
|
2221
|
+
};
|
|
2222
|
+
width: number;
|
|
2223
|
+
height: number;
|
|
2224
|
+
edit: {
|
|
2225
|
+
zoom: number;
|
|
2226
|
+
crop: {
|
|
2227
|
+
x: number;
|
|
2228
|
+
y: number;
|
|
3000
2229
|
};
|
|
2230
|
+
background: string;
|
|
2231
|
+
};
|
|
2232
|
+
} & {
|
|
2233
|
+
url?: string;
|
|
2234
|
+
credits?: string | null;
|
|
2235
|
+
alt?: string | null;
|
|
2236
|
+
provider?: string | null | undefined;
|
|
2237
|
+
} & {
|
|
2238
|
+
linkTo?: ({
|
|
2239
|
+
__TYPE__: "ImageLink";
|
|
3001
2240
|
} & {
|
|
3002
|
-
|
|
3003
|
-
|
|
2241
|
+
id: string;
|
|
2242
|
+
url: string;
|
|
2243
|
+
height: string;
|
|
2244
|
+
width: string;
|
|
2245
|
+
size: string;
|
|
2246
|
+
name: string;
|
|
2247
|
+
kind: string;
|
|
2248
|
+
} & {
|
|
2249
|
+
date?: string | null | undefined;
|
|
3004
2250
|
}) | ({
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
version?: string | number | null;
|
|
3011
|
-
title?: string | null | undefined;
|
|
3012
|
-
author_name?: string | null | undefined;
|
|
3013
|
-
author_url?: string | null | undefined;
|
|
3014
|
-
provider_name?: string | null | undefined;
|
|
3015
|
-
provider_url?: string | null | undefined;
|
|
3016
|
-
cache_age?: string | number | null;
|
|
3017
|
-
thumbnail_url?: string | null | undefined;
|
|
3018
|
-
thumbnail_width?: number | null | undefined;
|
|
3019
|
-
thumbnail_height?: number | null | undefined;
|
|
3020
|
-
html?: string | null | undefined;
|
|
3021
|
-
} & {
|
|
3022
|
-
__TYPE__: "EmbedContent";
|
|
3023
|
-
all: unknown;
|
|
3024
|
-
};
|
|
2251
|
+
id: string;
|
|
2252
|
+
url: string;
|
|
2253
|
+
name: string;
|
|
2254
|
+
kind: string;
|
|
2255
|
+
size: string;
|
|
3025
2256
|
} & {
|
|
3026
|
-
|
|
3027
|
-
|
|
2257
|
+
date?: string | null | undefined;
|
|
2258
|
+
} & {
|
|
2259
|
+
__TYPE__: "FileLink";
|
|
2260
|
+
} & {
|
|
2261
|
+
size?: string;
|
|
3028
2262
|
}) | ({
|
|
3029
|
-
|
|
3030
|
-
content: {
|
|
3031
|
-
text: string;
|
|
3032
|
-
} & {
|
|
3033
|
-
spans?: ({
|
|
3034
|
-
data: ({
|
|
3035
|
-
__TYPE__: "ImageLink";
|
|
3036
|
-
} & {
|
|
3037
|
-
id: string;
|
|
3038
|
-
url: string;
|
|
3039
|
-
height: string;
|
|
3040
|
-
width: string;
|
|
3041
|
-
size: string;
|
|
3042
|
-
name: string;
|
|
3043
|
-
kind: string;
|
|
3044
|
-
} & {
|
|
3045
|
-
date?: string | null | undefined;
|
|
3046
|
-
}) | ({
|
|
3047
|
-
id: string;
|
|
3048
|
-
url: string;
|
|
3049
|
-
name: string;
|
|
3050
|
-
kind: string;
|
|
3051
|
-
size: string;
|
|
3052
|
-
} & {
|
|
3053
|
-
date?: string | null | undefined;
|
|
3054
|
-
} & {
|
|
3055
|
-
__TYPE__: "FileLink";
|
|
3056
|
-
} & {
|
|
3057
|
-
size?: string;
|
|
3058
|
-
}) | ({
|
|
3059
|
-
__TYPE__: "DocumentLink";
|
|
3060
|
-
} & {
|
|
3061
|
-
id: string;
|
|
3062
|
-
}) | ({
|
|
3063
|
-
__TYPE__: "ExternalLink";
|
|
3064
|
-
} & {
|
|
3065
|
-
url: string;
|
|
3066
|
-
} & {
|
|
3067
|
-
kind?: "web";
|
|
3068
|
-
target?: string | null | undefined;
|
|
3069
|
-
preview?: {
|
|
3070
|
-
title?: string;
|
|
3071
|
-
} | null | undefined;
|
|
3072
|
-
});
|
|
3073
|
-
start: number;
|
|
3074
|
-
end: number;
|
|
3075
|
-
type: "hyperlink";
|
|
3076
|
-
} | {
|
|
3077
|
-
data: string;
|
|
3078
|
-
start: number;
|
|
3079
|
-
end: number;
|
|
3080
|
-
type: "label";
|
|
3081
|
-
} | {
|
|
3082
|
-
start: number;
|
|
3083
|
-
end: number;
|
|
3084
|
-
type: "strong" | "em" | "list-item";
|
|
3085
|
-
})[];
|
|
3086
|
-
};
|
|
2263
|
+
__TYPE__: "DocumentLink";
|
|
3087
2264
|
} & {
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
2265
|
+
id: string;
|
|
2266
|
+
}) | ({
|
|
2267
|
+
__TYPE__: "ExternalLink";
|
|
2268
|
+
} & {
|
|
2269
|
+
url: string;
|
|
2270
|
+
} & {
|
|
2271
|
+
kind?: "web";
|
|
2272
|
+
target?: string | null | undefined;
|
|
2273
|
+
preview?: {
|
|
2274
|
+
title?: string;
|
|
2275
|
+
} | null | undefined;
|
|
2276
|
+
}) | null | undefined;
|
|
3093
2277
|
};
|
|
3094
|
-
}
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
2278
|
+
} & {
|
|
2279
|
+
label?: string | null | undefined;
|
|
2280
|
+
direction?: string | null | undefined;
|
|
2281
|
+
}) | ({
|
|
2282
|
+
type: "embed";
|
|
2283
|
+
data: {
|
|
2284
|
+
embed_url: string;
|
|
2285
|
+
type: string;
|
|
2286
|
+
} & {
|
|
2287
|
+
version?: string | number | null;
|
|
2288
|
+
title?: string | null | undefined;
|
|
2289
|
+
author_name?: string | null | undefined;
|
|
2290
|
+
author_url?: string | null | undefined;
|
|
2291
|
+
provider_name?: string | null | undefined;
|
|
2292
|
+
provider_url?: string | null | undefined;
|
|
2293
|
+
cache_age?: string | number | null;
|
|
2294
|
+
thumbnail_url?: string | null | undefined;
|
|
2295
|
+
thumbnail_width?: number | null | undefined;
|
|
2296
|
+
thumbnail_height?: number | null | undefined;
|
|
2297
|
+
html?: string | null | undefined;
|
|
2298
|
+
} & {
|
|
2299
|
+
__TYPE__: "EmbedContent";
|
|
2300
|
+
all: unknown;
|
|
2301
|
+
};
|
|
2302
|
+
} & {
|
|
2303
|
+
label?: string | null | undefined;
|
|
2304
|
+
direction?: string | null | undefined;
|
|
2305
|
+
}) | ({
|
|
2306
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
2307
|
+
content: {
|
|
2308
|
+
text: string;
|
|
2309
|
+
} & {
|
|
2310
|
+
spans?: ({
|
|
2311
|
+
data: ({
|
|
2312
|
+
__TYPE__: "ImageLink";
|
|
2313
|
+
} & {
|
|
2314
|
+
id: string;
|
|
2315
|
+
url: string;
|
|
2316
|
+
height: string;
|
|
2317
|
+
width: string;
|
|
2318
|
+
size: string;
|
|
2319
|
+
name: string;
|
|
2320
|
+
kind: string;
|
|
2321
|
+
} & {
|
|
2322
|
+
date?: string | null | undefined;
|
|
2323
|
+
}) | ({
|
|
2324
|
+
id: string;
|
|
2325
|
+
url: string;
|
|
2326
|
+
name: string;
|
|
2327
|
+
kind: string;
|
|
2328
|
+
size: string;
|
|
2329
|
+
} & {
|
|
2330
|
+
date?: string | null | undefined;
|
|
2331
|
+
} & {
|
|
2332
|
+
__TYPE__: "FileLink";
|
|
2333
|
+
} & {
|
|
2334
|
+
size?: string;
|
|
2335
|
+
}) | ({
|
|
2336
|
+
__TYPE__: "DocumentLink";
|
|
2337
|
+
} & {
|
|
2338
|
+
id: string;
|
|
2339
|
+
}) | ({
|
|
2340
|
+
__TYPE__: "ExternalLink";
|
|
2341
|
+
} & {
|
|
2342
|
+
url: string;
|
|
2343
|
+
} & {
|
|
2344
|
+
kind?: "web";
|
|
2345
|
+
target?: string | null | undefined;
|
|
2346
|
+
preview?: {
|
|
2347
|
+
title?: string;
|
|
2348
|
+
} | null | undefined;
|
|
2349
|
+
});
|
|
2350
|
+
start: number;
|
|
2351
|
+
end: number;
|
|
2352
|
+
type: "hyperlink";
|
|
2353
|
+
} | {
|
|
2354
|
+
data: string;
|
|
2355
|
+
start: number;
|
|
2356
|
+
end: number;
|
|
2357
|
+
type: "label";
|
|
2358
|
+
} | {
|
|
2359
|
+
start: number;
|
|
2360
|
+
end: number;
|
|
2361
|
+
type: "strong" | "em" | "list-item";
|
|
2362
|
+
})[];
|
|
2363
|
+
};
|
|
2364
|
+
} & {
|
|
2365
|
+
label?: string;
|
|
2366
|
+
direction?: string;
|
|
2367
|
+
}))[];
|
|
2368
|
+
} | {
|
|
2369
|
+
__TYPE__: "SeparatorContent";
|
|
2370
|
+
} | import("../GroupContent").GroupContent | {
|
|
2371
|
+
__TYPE__: "CompositeSliceContent";
|
|
2372
|
+
nonRepeat: {
|
|
2373
|
+
[x: string]: {
|
|
3098
2374
|
type: string;
|
|
3099
2375
|
__TYPE__: "EmptyContent";
|
|
3100
2376
|
} | {
|
|
@@ -3406,13 +2682,11 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3406
2682
|
}))[];
|
|
3407
2683
|
} | {
|
|
3408
2684
|
__TYPE__: "SeparatorContent";
|
|
3409
|
-
}
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
primary: {
|
|
3415
|
-
[x: string]: {
|
|
2685
|
+
};
|
|
2686
|
+
};
|
|
2687
|
+
repeat: {
|
|
2688
|
+
__TYPE__: "GroupItemContent";
|
|
2689
|
+
value: [string, {
|
|
3416
2690
|
type: string;
|
|
3417
2691
|
__TYPE__: "EmptyContent";
|
|
3418
2692
|
} | {
|
|
@@ -3724,11 +2998,13 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3724
2998
|
}))[];
|
|
3725
2999
|
} | {
|
|
3726
3000
|
__TYPE__: "SeparatorContent";
|
|
3727
|
-
} | import("../GroupContent").GroupContent;
|
|
3728
|
-
};
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3001
|
+
} | import("../GroupContent").GroupContent][];
|
|
3002
|
+
}[];
|
|
3003
|
+
} | {
|
|
3004
|
+
__TYPE__: "SharedSliceContent";
|
|
3005
|
+
variation: string;
|
|
3006
|
+
primary: {
|
|
3007
|
+
[x: string]: {
|
|
3732
3008
|
type: string;
|
|
3733
3009
|
__TYPE__: "EmptyContent";
|
|
3734
3010
|
} | {
|
|
@@ -4040,11 +3316,9 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
4040
3316
|
}))[];
|
|
4041
3317
|
} | {
|
|
4042
3318
|
__TYPE__: "SeparatorContent";
|
|
4043
|
-
}
|
|
4044
|
-
}
|
|
4045
|
-
|
|
4046
|
-
__TYPE__: "GroupContentType";
|
|
4047
|
-
value: {
|
|
3319
|
+
} | import("../GroupContent").GroupContent;
|
|
3320
|
+
};
|
|
3321
|
+
items: {
|
|
4048
3322
|
__TYPE__: "GroupItemContent";
|
|
4049
3323
|
value: [string, {
|
|
4050
3324
|
type: string;
|
|
@@ -4358,7 +3632,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
4358
3632
|
}))[];
|
|
4359
3633
|
} | {
|
|
4360
3634
|
__TYPE__: "SeparatorContent";
|
|
4361
|
-
}][];
|
|
3635
|
+
} | import("../GroupContent").GroupContent][];
|
|
4362
3636
|
}[];
|
|
4363
3637
|
};
|
|
4364
3638
|
}, WithTypes<{
|