@prismicio/types-internal 2.4.0-alpha.2 → 2.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/lib/content/Document.d.ts +1035 -1
  2. package/lib/content/Document.js +4 -0
  3. package/lib/content/fields/GroupContent.d.ts +1 -0
  4. package/lib/content/fields/GroupContent.js +5 -1
  5. package/lib/content/fields/WidgetContent.d.ts +1035 -1
  6. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1036 -2
  7. package/lib/content/fields/slices/Slice/SharedSliceContent.js +25 -4
  8. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +1429 -0
  9. package/lib/content/fields/slices/Slice/SlicePrimaryContent.js +28 -0
  10. package/lib/content/fields/slices/Slice/index.d.ts +717 -1
  11. package/lib/content/fields/slices/SliceItem.d.ts +717 -1
  12. package/lib/content/fields/slices/SlicesContent.d.ts +1035 -1
  13. package/lib/content/fields/withDefaultValues.d.ts +3 -1
  14. package/lib/content/fields/withDefaultValues.js +26 -1
  15. package/lib/customtypes/CustomType.d.ts +159 -318
  16. package/lib/customtypes/Section.d.ts +159 -318
  17. package/lib/customtypes/diff/SharedSlice.d.ts +190 -508
  18. package/lib/customtypes/diff/Variation.d.ts +183 -502
  19. package/lib/customtypes/diff/Variation.js +1 -3
  20. package/lib/customtypes/widgets/Widget.d.ts +159 -318
  21. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +10 -324
  22. package/lib/customtypes/widgets/slices/SharedSlice.js +2 -3
  23. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +327 -0
  24. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.js +8 -0
  25. package/lib/customtypes/widgets/slices/Slices.d.ts +422 -740
  26. package/lib/customtypes/widgets/slices/index.d.ts +1 -1
  27. package/lib/customtypes/widgets/slices/index.js +1 -1
  28. package/package.json +1 -1
  29. package/src/content/Document.ts +4 -0
  30. package/src/content/fields/GroupContent.ts +5 -0
  31. package/src/content/fields/slices/Slice/SharedSliceContent.ts +38 -12
  32. package/src/content/fields/slices/Slice/SlicePrimaryContent.ts +33 -0
  33. package/src/content/fields/withDefaultValues.ts +48 -1
  34. package/src/customtypes/diff/Variation.ts +8 -11
  35. package/src/customtypes/widgets/slices/SharedSlice.ts +2 -3
  36. package/src/customtypes/widgets/slices/SlicePrimaryWidget.ts +9 -0
  37. package/src/customtypes/widgets/slices/index.ts +1 -1
  38. package/src/customtypes/widgets/slices/SliceWidget.ts +0 -9
@@ -1597,7 +1597,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1597
1597
  }>>, t.ExactC<t.TypeC<{
1598
1598
  __TYPE__: t.LiteralC<"SharedSliceContent">;
1599
1599
  variation: t.StringC;
1600
- primary: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1600
+ primary: t.RecordC<t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
1601
1601
  type: t.StringC;
1602
1602
  __TYPE__: t.LiteralC<"EmptyContent">;
1603
1603
  }>>, t.ExactC<t.TypeC<{
@@ -1989,6 +1989,404 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1989
1989
  }>]>>]>>;
1990
1990
  }>>, t.ExactC<t.TypeC<{
1991
1991
  __TYPE__: t.LiteralC<"SeparatorContent">;
1992
+ }>>]>, t.ExactC<t.TypeC<{
1993
+ __TYPE__: t.LiteralC<"GroupContentType">;
1994
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1995
+ __TYPE__: t.LiteralC<"GroupItemContent">;
1996
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1997
+ type: t.StringC;
1998
+ __TYPE__: t.LiteralC<"EmptyContent">;
1999
+ }>>, t.ExactC<t.TypeC<{
2000
+ __TYPE__: t.LiteralC<"BooleanContent">;
2001
+ value: t.BooleanC;
2002
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2003
+ embed_url: t.StringC;
2004
+ type: t.StringC;
2005
+ }>, t.PartialC<{
2006
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2007
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2008
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2009
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2010
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2011
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2012
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2013
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2014
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2015
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2016
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2017
+ }>]>>, t.ExactC<t.TypeC<{
2018
+ __TYPE__: t.LiteralC<"EmbedContent">;
2019
+ all: t.UnknownC;
2020
+ }>>]>, t.ExactC<t.TypeC<{
2021
+ type: t.LiteralC<"Text">;
2022
+ value: t.Type<string, string, unknown>;
2023
+ __TYPE__: t.LiteralC<"FieldContent">;
2024
+ }>>, t.ExactC<t.TypeC<{
2025
+ type: t.LiteralC<"Timestamp">;
2026
+ value: t.Type<string, string, unknown>;
2027
+ __TYPE__: t.LiteralC<"FieldContent">;
2028
+ }>>, t.ExactC<t.TypeC<{
2029
+ type: t.LiteralC<"Select">;
2030
+ value: t.Type<string, string, unknown>;
2031
+ __TYPE__: t.LiteralC<"FieldContent">;
2032
+ }>>, t.ExactC<t.TypeC<{
2033
+ type: t.LiteralC<"Range">;
2034
+ value: t.Type<string, string, unknown>;
2035
+ __TYPE__: t.LiteralC<"FieldContent">;
2036
+ }>>, t.ExactC<t.TypeC<{
2037
+ type: t.LiteralC<"Number">;
2038
+ value: t.Type<string, string, unknown>;
2039
+ __TYPE__: t.LiteralC<"FieldContent">;
2040
+ }>>, t.ExactC<t.TypeC<{
2041
+ type: t.LiteralC<"Date">;
2042
+ value: t.Type<string, string, unknown>;
2043
+ __TYPE__: t.LiteralC<"FieldContent">;
2044
+ }>>, t.ExactC<t.TypeC<{
2045
+ type: t.LiteralC<"Color">;
2046
+ value: t.Type<string, string, unknown>;
2047
+ __TYPE__: t.LiteralC<"FieldContent">;
2048
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2049
+ position: t.ExactC<t.TypeC<{
2050
+ lat: t.NumberC;
2051
+ lng: t.NumberC;
2052
+ }>>;
2053
+ }>>, t.ExactC<t.TypeC<{
2054
+ __TYPE__: t.LiteralC<"GeoPointContent">;
2055
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2056
+ origin: t.ExactC<t.TypeC<{
2057
+ id: t.StringC;
2058
+ url: t.StringC;
2059
+ width: t.NumberC;
2060
+ height: t.NumberC;
2061
+ }>>;
2062
+ width: t.NumberC;
2063
+ height: t.NumberC;
2064
+ edit: t.TypeC<{
2065
+ zoom: t.NumberC;
2066
+ crop: t.TypeC<{
2067
+ x: t.NumberC;
2068
+ y: t.NumberC;
2069
+ }>;
2070
+ background: t.StringC;
2071
+ }>;
2072
+ }>, t.PartialC<{
2073
+ url: t.StringC;
2074
+ credits: t.Type<string | null, string | null, unknown>;
2075
+ alt: t.Type<string | null, string | null, unknown>;
2076
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2077
+ }>]>>, t.PartialC<{
2078
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
2079
+ origin: t.ExactC<t.TypeC<{
2080
+ id: t.StringC;
2081
+ url: t.StringC;
2082
+ width: t.NumberC;
2083
+ height: t.NumberC;
2084
+ }>>;
2085
+ width: t.NumberC;
2086
+ height: t.NumberC;
2087
+ edit: t.TypeC<{
2088
+ zoom: t.NumberC;
2089
+ crop: t.TypeC<{
2090
+ x: t.NumberC;
2091
+ y: t.NumberC;
2092
+ }>;
2093
+ background: t.StringC;
2094
+ }>;
2095
+ }>, t.PartialC<{
2096
+ url: t.StringC;
2097
+ credits: t.Type<string | null, string | null, unknown>;
2098
+ alt: t.Type<string | null, string | null, unknown>;
2099
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2100
+ }>]>>>;
2101
+ }>]>, t.ExactC<t.TypeC<{
2102
+ __TYPE__: t.LiteralC<"ImageContent">;
2103
+ }>>]>, t.ExactC<t.TypeC<{
2104
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
2105
+ value: t.StringC;
2106
+ }>>, t.ExactC<t.TypeC<{
2107
+ __TYPE__: t.LiteralC<"LinkContent">;
2108
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2109
+ __TYPE__: t.LiteralC<"ImageLink">;
2110
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2111
+ id: t.StringC;
2112
+ url: t.StringC;
2113
+ height: t.StringC;
2114
+ width: t.StringC;
2115
+ size: t.StringC;
2116
+ name: t.StringC;
2117
+ kind: t.StringC;
2118
+ }>, t.PartialC<{
2119
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2120
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2121
+ id: t.StringC;
2122
+ url: t.StringC;
2123
+ name: t.StringC;
2124
+ kind: t.StringC;
2125
+ size: t.StringC;
2126
+ }>, t.PartialC<{
2127
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2128
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2129
+ __TYPE__: t.LiteralC<"FileLink">;
2130
+ }>, t.PartialC<{
2131
+ size: t.StringC;
2132
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2133
+ __TYPE__: t.LiteralC<"DocumentLink">;
2134
+ }>>, t.ExactC<t.TypeC<{
2135
+ id: t.Type<string, string, unknown>;
2136
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2137
+ __TYPE__: t.LiteralC<"ExternalLink">;
2138
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2139
+ url: t.StringC;
2140
+ }>, t.PartialC<{
2141
+ kind: t.LiteralC<"web">;
2142
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2143
+ preview: t.UnionC<[t.Type<{
2144
+ title?: string;
2145
+ }, {
2146
+ title?: string;
2147
+ }, unknown>, t.NullC, t.UndefinedC]>;
2148
+ }>]>>]>]>;
2149
+ }>>, t.ExactC<t.TypeC<{
2150
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
2151
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2152
+ type: t.LiteralC<"image">;
2153
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2154
+ origin: t.ExactC<t.TypeC<{
2155
+ id: t.StringC;
2156
+ url: t.StringC;
2157
+ width: t.NumberC;
2158
+ height: t.NumberC;
2159
+ }>>;
2160
+ width: t.NumberC;
2161
+ height: t.NumberC;
2162
+ edit: t.TypeC<{
2163
+ zoom: t.NumberC;
2164
+ crop: t.TypeC<{
2165
+ x: t.NumberC;
2166
+ y: t.NumberC;
2167
+ }>;
2168
+ background: t.StringC;
2169
+ }>;
2170
+ }>, t.PartialC<{
2171
+ url: t.StringC;
2172
+ credits: t.Type<string | null, string | null, unknown>;
2173
+ alt: t.Type<string | null, string | null, unknown>;
2174
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2175
+ }>]>>, t.PartialC<{
2176
+ linkTo: t.UnionC<[t.Type<({
2177
+ __TYPE__: "ImageLink";
2178
+ } & {
2179
+ id: string;
2180
+ url: string;
2181
+ height: string;
2182
+ width: string;
2183
+ size: string;
2184
+ name: string;
2185
+ kind: string;
2186
+ } & {
2187
+ date?: string | null | undefined;
2188
+ }) | ({
2189
+ id: string;
2190
+ url: string;
2191
+ name: string;
2192
+ kind: string;
2193
+ size: string;
2194
+ } & {
2195
+ date?: string | null | undefined;
2196
+ } & {
2197
+ __TYPE__: "FileLink";
2198
+ } & {
2199
+ size?: string;
2200
+ }) | ({
2201
+ __TYPE__: "DocumentLink";
2202
+ } & {
2203
+ id: string;
2204
+ }) | ({
2205
+ __TYPE__: "ExternalLink";
2206
+ } & {
2207
+ url: string;
2208
+ } & {
2209
+ kind?: "web";
2210
+ target?: string | null | undefined;
2211
+ preview?: {
2212
+ title?: string;
2213
+ } | null | undefined;
2214
+ }), ({
2215
+ id: string;
2216
+ url: string;
2217
+ height: string;
2218
+ width: string;
2219
+ size: string;
2220
+ name: string;
2221
+ kind: string;
2222
+ } & {
2223
+ date?: string | null | undefined;
2224
+ }) | ({
2225
+ id: string;
2226
+ url: string;
2227
+ name: string;
2228
+ kind: string;
2229
+ size: string;
2230
+ } & {
2231
+ date?: string | null | undefined;
2232
+ }) | {
2233
+ id: string;
2234
+ } | ({
2235
+ url: string;
2236
+ } & {
2237
+ kind?: "web";
2238
+ target?: string | null | undefined;
2239
+ preview?: {
2240
+ title?: string;
2241
+ } | null | undefined;
2242
+ }), unknown>, t.NullC, t.UndefinedC]>;
2243
+ }>]>;
2244
+ }>, t.PartialC<{
2245
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2246
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2247
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2248
+ type: t.LiteralC<"embed">;
2249
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2250
+ embed_url: t.StringC;
2251
+ type: t.StringC;
2252
+ }>, t.PartialC<{
2253
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2254
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2255
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2256
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2257
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2258
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2259
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2260
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2261
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2262
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2263
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2264
+ }>]>>, t.ExactC<t.TypeC<{
2265
+ __TYPE__: t.LiteralC<"EmbedContent">;
2266
+ all: t.UnknownC;
2267
+ }>>]>;
2268
+ }>, t.PartialC<{
2269
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2270
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2271
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2272
+ 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>;
2273
+ content: t.IntersectionC<[t.TypeC<{
2274
+ text: t.StringC;
2275
+ }>, t.PartialC<{
2276
+ spans: t.Type<({
2277
+ data: ({
2278
+ __TYPE__: "ImageLink";
2279
+ } & {
2280
+ id: string;
2281
+ url: string;
2282
+ height: string;
2283
+ width: string;
2284
+ size: string;
2285
+ name: string;
2286
+ kind: string;
2287
+ } & {
2288
+ date?: string | null | undefined;
2289
+ }) | ({
2290
+ id: string;
2291
+ url: string;
2292
+ name: string;
2293
+ kind: string;
2294
+ size: string;
2295
+ } & {
2296
+ date?: string | null | undefined;
2297
+ } & {
2298
+ __TYPE__: "FileLink";
2299
+ } & {
2300
+ size?: string;
2301
+ }) | ({
2302
+ __TYPE__: "DocumentLink";
2303
+ } & {
2304
+ id: string;
2305
+ }) | ({
2306
+ __TYPE__: "ExternalLink";
2307
+ } & {
2308
+ url: string;
2309
+ } & {
2310
+ kind?: "web";
2311
+ target?: string | null | undefined;
2312
+ preview?: {
2313
+ title?: string;
2314
+ } | null | undefined;
2315
+ });
2316
+ start: number;
2317
+ end: number;
2318
+ type: "hyperlink";
2319
+ } | {
2320
+ data: string;
2321
+ start: number;
2322
+ end: number;
2323
+ type: "label";
2324
+ } | {
2325
+ start: number;
2326
+ end: number;
2327
+ type: "strong" | "em" | "list-item";
2328
+ })[], ({
2329
+ data: ({
2330
+ __TYPE__: "ImageLink";
2331
+ } & {
2332
+ id: string;
2333
+ url: string;
2334
+ height: string;
2335
+ width: string;
2336
+ size: string;
2337
+ name: string;
2338
+ kind: string;
2339
+ } & {
2340
+ date?: string | null | undefined;
2341
+ }) | ({
2342
+ id: string;
2343
+ url: string;
2344
+ name: string;
2345
+ kind: string;
2346
+ size: string;
2347
+ } & {
2348
+ date?: string | null | undefined;
2349
+ } & {
2350
+ __TYPE__: "FileLink";
2351
+ } & {
2352
+ size?: string;
2353
+ }) | ({
2354
+ __TYPE__: "DocumentLink";
2355
+ } & {
2356
+ id: string;
2357
+ }) | ({
2358
+ __TYPE__: "ExternalLink";
2359
+ } & {
2360
+ url: string;
2361
+ } & {
2362
+ kind?: "web";
2363
+ target?: string | null | undefined;
2364
+ preview?: {
2365
+ title?: string;
2366
+ } | null | undefined;
2367
+ });
2368
+ start: number;
2369
+ end: number;
2370
+ type: "hyperlink";
2371
+ } | {
2372
+ data: string;
2373
+ start: number;
2374
+ end: number;
2375
+ type: "label";
2376
+ } | {
2377
+ start: number;
2378
+ end: number;
2379
+ type: "strong" | "em" | "list-item";
2380
+ })[], unknown>;
2381
+ }>]>;
2382
+ }>, t.PartialC<{
2383
+ label: t.StringC;
2384
+ direction: t.StringC;
2385
+ }>]>>]>>;
2386
+ }>>, t.ExactC<t.TypeC<{
2387
+ __TYPE__: t.LiteralC<"SeparatorContent">;
2388
+ }>>]>]>>;
2389
+ }>>>;
1992
2390
  }>>]>>;
1993
2391
  items: t.ArrayC<t.ExactC<t.TypeC<{
1994
2392
  __TYPE__: t.LiteralC<"GroupItemContent">;
@@ -5415,6 +5813,324 @@ export declare const DocumentLegacy: {
5415
5813
  }))[];
5416
5814
  } | {
5417
5815
  __TYPE__: "SeparatorContent";
5816
+ } | {
5817
+ __TYPE__: "GroupContentType";
5818
+ value: {
5819
+ __TYPE__: "GroupItemContent";
5820
+ value: [string, {
5821
+ type: string;
5822
+ __TYPE__: "EmptyContent";
5823
+ } | {
5824
+ __TYPE__: "BooleanContent";
5825
+ value: boolean;
5826
+ } | ({
5827
+ embed_url: string;
5828
+ type: string;
5829
+ } & {
5830
+ version?: string | number | null;
5831
+ title?: string | null | undefined;
5832
+ author_name?: string | null | undefined;
5833
+ author_url?: string | null | undefined;
5834
+ provider_name?: string | null | undefined;
5835
+ provider_url?: string | null | undefined;
5836
+ cache_age?: string | number | null;
5837
+ thumbnail_url?: string | null | undefined;
5838
+ thumbnail_width?: number | null | undefined;
5839
+ thumbnail_height?: number | null | undefined;
5840
+ html?: string | null | undefined;
5841
+ } & {
5842
+ __TYPE__: "EmbedContent";
5843
+ all: unknown;
5844
+ }) | {
5845
+ type: "Color";
5846
+ value: string;
5847
+ __TYPE__: "FieldContent";
5848
+ } | {
5849
+ type: "Date";
5850
+ value: string;
5851
+ __TYPE__: "FieldContent";
5852
+ } | {
5853
+ type: "Number";
5854
+ value: string;
5855
+ __TYPE__: "FieldContent";
5856
+ } | {
5857
+ type: "Range";
5858
+ value: string;
5859
+ __TYPE__: "FieldContent";
5860
+ } | {
5861
+ type: "Select";
5862
+ value: string;
5863
+ __TYPE__: "FieldContent";
5864
+ } | {
5865
+ type: "Text";
5866
+ value: string;
5867
+ __TYPE__: "FieldContent";
5868
+ } | {
5869
+ type: "Timestamp";
5870
+ value: string;
5871
+ __TYPE__: "FieldContent";
5872
+ } | ({
5873
+ position: {
5874
+ lat: number;
5875
+ lng: number;
5876
+ };
5877
+ } & {
5878
+ __TYPE__: "GeoPointContent";
5879
+ }) | ({
5880
+ origin: {
5881
+ id: string;
5882
+ url: string;
5883
+ width: number;
5884
+ height: number;
5885
+ };
5886
+ width: number;
5887
+ height: number;
5888
+ edit: {
5889
+ zoom: number;
5890
+ crop: {
5891
+ x: number;
5892
+ y: number;
5893
+ };
5894
+ background: string;
5895
+ };
5896
+ } & {
5897
+ url?: string;
5898
+ credits?: string | null;
5899
+ alt?: string | null;
5900
+ provider?: string | null | undefined;
5901
+ } & {
5902
+ thumbnails?: {
5903
+ [x: string]: {
5904
+ origin: {
5905
+ id: string;
5906
+ url: string;
5907
+ width: number;
5908
+ height: number;
5909
+ };
5910
+ width: number;
5911
+ height: number;
5912
+ edit: {
5913
+ zoom: number;
5914
+ crop: {
5915
+ x: number;
5916
+ y: number;
5917
+ };
5918
+ background: string;
5919
+ };
5920
+ } & {
5921
+ url?: string;
5922
+ credits?: string | null;
5923
+ alt?: string | null;
5924
+ provider?: string | null | undefined;
5925
+ };
5926
+ };
5927
+ } & {
5928
+ __TYPE__: "ImageContent";
5929
+ }) | {
5930
+ __TYPE__: "IntegrationFieldsContent";
5931
+ value: string;
5932
+ } | {
5933
+ __TYPE__: "LinkContent";
5934
+ value: ({
5935
+ __TYPE__: "ImageLink";
5936
+ } & {
5937
+ id: string;
5938
+ url: string;
5939
+ height: string;
5940
+ width: string;
5941
+ size: string;
5942
+ name: string;
5943
+ kind: string;
5944
+ } & {
5945
+ date?: string | null | undefined;
5946
+ }) | ({
5947
+ id: string;
5948
+ url: string;
5949
+ name: string;
5950
+ kind: string;
5951
+ size: string;
5952
+ } & {
5953
+ date?: string | null | undefined;
5954
+ } & {
5955
+ __TYPE__: "FileLink";
5956
+ } & {
5957
+ size?: string;
5958
+ }) | ({
5959
+ __TYPE__: "DocumentLink";
5960
+ } & {
5961
+ id: string;
5962
+ }) | ({
5963
+ __TYPE__: "ExternalLink";
5964
+ } & {
5965
+ url: string;
5966
+ } & {
5967
+ kind?: "web";
5968
+ target?: string | null | undefined;
5969
+ preview?: {
5970
+ title?: string;
5971
+ } | null | undefined;
5972
+ });
5973
+ } | {
5974
+ __TYPE__: "StructuredTextContent";
5975
+ value: (({
5976
+ type: "image";
5977
+ data: {
5978
+ origin: {
5979
+ id: string;
5980
+ url: string;
5981
+ width: number;
5982
+ height: number;
5983
+ };
5984
+ width: number;
5985
+ height: number;
5986
+ edit: {
5987
+ zoom: number;
5988
+ crop: {
5989
+ x: number;
5990
+ y: number;
5991
+ };
5992
+ background: string;
5993
+ };
5994
+ } & {
5995
+ url?: string;
5996
+ credits?: string | null;
5997
+ alt?: string | null;
5998
+ provider?: string | null | undefined;
5999
+ } & {
6000
+ linkTo?: ({
6001
+ __TYPE__: "ImageLink";
6002
+ } & {
6003
+ id: string;
6004
+ url: string;
6005
+ height: string;
6006
+ width: string;
6007
+ size: string;
6008
+ name: string;
6009
+ kind: string;
6010
+ } & {
6011
+ date?: string | null | undefined;
6012
+ }) | ({
6013
+ id: string;
6014
+ url: string;
6015
+ name: string;
6016
+ kind: string;
6017
+ size: string;
6018
+ } & {
6019
+ date?: string | null | undefined;
6020
+ } & {
6021
+ __TYPE__: "FileLink";
6022
+ } & {
6023
+ size?: string;
6024
+ }) | ({
6025
+ __TYPE__: "DocumentLink";
6026
+ } & {
6027
+ id: string;
6028
+ }) | ({
6029
+ __TYPE__: "ExternalLink";
6030
+ } & {
6031
+ url: string;
6032
+ } & {
6033
+ kind?: "web";
6034
+ target?: string | null | undefined;
6035
+ preview?: {
6036
+ title?: string;
6037
+ } | null | undefined;
6038
+ }) | null | undefined;
6039
+ };
6040
+ } & {
6041
+ label?: string | null | undefined;
6042
+ direction?: string | null | undefined;
6043
+ }) | ({
6044
+ type: "embed";
6045
+ data: {
6046
+ embed_url: string;
6047
+ type: string;
6048
+ } & {
6049
+ version?: string | number | null;
6050
+ title?: string | null | undefined;
6051
+ author_name?: string | null | undefined;
6052
+ author_url?: string | null | undefined;
6053
+ provider_name?: string | null | undefined;
6054
+ provider_url?: string | null | undefined;
6055
+ cache_age?: string | number | null;
6056
+ thumbnail_url?: string | null | undefined;
6057
+ thumbnail_width?: number | null | undefined;
6058
+ thumbnail_height?: number | null | undefined;
6059
+ html?: string | null | undefined;
6060
+ } & {
6061
+ __TYPE__: "EmbedContent";
6062
+ all: unknown;
6063
+ };
6064
+ } & {
6065
+ label?: string | null | undefined;
6066
+ direction?: string | null | undefined;
6067
+ }) | ({
6068
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6069
+ content: {
6070
+ text: string;
6071
+ } & {
6072
+ spans?: ({
6073
+ data: ({
6074
+ __TYPE__: "ImageLink";
6075
+ } & {
6076
+ id: string;
6077
+ url: string;
6078
+ height: string;
6079
+ width: string;
6080
+ size: string;
6081
+ name: string;
6082
+ kind: string;
6083
+ } & {
6084
+ date?: string | null | undefined;
6085
+ }) | ({
6086
+ id: string;
6087
+ url: string;
6088
+ name: string;
6089
+ kind: string;
6090
+ size: string;
6091
+ } & {
6092
+ date?: string | null | undefined;
6093
+ } & {
6094
+ __TYPE__: "FileLink";
6095
+ } & {
6096
+ size?: string;
6097
+ }) | ({
6098
+ __TYPE__: "DocumentLink";
6099
+ } & {
6100
+ id: string;
6101
+ }) | ({
6102
+ __TYPE__: "ExternalLink";
6103
+ } & {
6104
+ url: string;
6105
+ } & {
6106
+ kind?: "web";
6107
+ target?: string | null | undefined;
6108
+ preview?: {
6109
+ title?: string;
6110
+ } | null | undefined;
6111
+ });
6112
+ start: number;
6113
+ end: number;
6114
+ type: "hyperlink";
6115
+ } | {
6116
+ data: string;
6117
+ start: number;
6118
+ end: number;
6119
+ type: "label";
6120
+ } | {
6121
+ start: number;
6122
+ end: number;
6123
+ type: "strong" | "em" | "list-item";
6124
+ })[];
6125
+ };
6126
+ } & {
6127
+ label?: string;
6128
+ direction?: string;
6129
+ }))[];
6130
+ } | {
6131
+ __TYPE__: "SeparatorContent";
6132
+ }][];
6133
+ }[];
5418
6134
  };
5419
6135
  };
5420
6136
  items: {
@@ -7989,6 +8705,324 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7989
8705
  }))[];
7990
8706
  } | {
7991
8707
  __TYPE__: "SeparatorContent";
8708
+ } | {
8709
+ __TYPE__: "GroupContentType";
8710
+ value: {
8711
+ __TYPE__: "GroupItemContent";
8712
+ value: [string, {
8713
+ type: string;
8714
+ __TYPE__: "EmptyContent";
8715
+ } | {
8716
+ __TYPE__: "BooleanContent";
8717
+ value: boolean;
8718
+ } | ({
8719
+ embed_url: string;
8720
+ type: string;
8721
+ } & {
8722
+ version?: string | number | null;
8723
+ title?: string | null | undefined;
8724
+ author_name?: string | null | undefined;
8725
+ author_url?: string | null | undefined;
8726
+ provider_name?: string | null | undefined;
8727
+ provider_url?: string | null | undefined;
8728
+ cache_age?: string | number | null;
8729
+ thumbnail_url?: string | null | undefined;
8730
+ thumbnail_width?: number | null | undefined;
8731
+ thumbnail_height?: number | null | undefined;
8732
+ html?: string | null | undefined;
8733
+ } & {
8734
+ __TYPE__: "EmbedContent";
8735
+ all: unknown;
8736
+ }) | {
8737
+ type: "Color";
8738
+ value: string;
8739
+ __TYPE__: "FieldContent";
8740
+ } | {
8741
+ type: "Date";
8742
+ value: string;
8743
+ __TYPE__: "FieldContent";
8744
+ } | {
8745
+ type: "Number";
8746
+ value: string;
8747
+ __TYPE__: "FieldContent";
8748
+ } | {
8749
+ type: "Range";
8750
+ value: string;
8751
+ __TYPE__: "FieldContent";
8752
+ } | {
8753
+ type: "Select";
8754
+ value: string;
8755
+ __TYPE__: "FieldContent";
8756
+ } | {
8757
+ type: "Text";
8758
+ value: string;
8759
+ __TYPE__: "FieldContent";
8760
+ } | {
8761
+ type: "Timestamp";
8762
+ value: string;
8763
+ __TYPE__: "FieldContent";
8764
+ } | ({
8765
+ position: {
8766
+ lat: number;
8767
+ lng: number;
8768
+ };
8769
+ } & {
8770
+ __TYPE__: "GeoPointContent";
8771
+ }) | ({
8772
+ origin: {
8773
+ id: string;
8774
+ url: string;
8775
+ width: number;
8776
+ height: number;
8777
+ };
8778
+ width: number;
8779
+ height: number;
8780
+ edit: {
8781
+ zoom: number;
8782
+ crop: {
8783
+ x: number;
8784
+ y: number;
8785
+ };
8786
+ background: string;
8787
+ };
8788
+ } & {
8789
+ url?: string;
8790
+ credits?: string | null;
8791
+ alt?: string | null;
8792
+ provider?: string | null | undefined;
8793
+ } & {
8794
+ thumbnails?: {
8795
+ [x: string]: {
8796
+ origin: {
8797
+ id: string;
8798
+ url: string;
8799
+ width: number;
8800
+ height: number;
8801
+ };
8802
+ width: number;
8803
+ height: number;
8804
+ edit: {
8805
+ zoom: number;
8806
+ crop: {
8807
+ x: number;
8808
+ y: number;
8809
+ };
8810
+ background: string;
8811
+ };
8812
+ } & {
8813
+ url?: string;
8814
+ credits?: string | null;
8815
+ alt?: string | null;
8816
+ provider?: string | null | undefined;
8817
+ };
8818
+ };
8819
+ } & {
8820
+ __TYPE__: "ImageContent";
8821
+ }) | {
8822
+ __TYPE__: "IntegrationFieldsContent";
8823
+ value: string;
8824
+ } | {
8825
+ __TYPE__: "LinkContent";
8826
+ value: ({
8827
+ __TYPE__: "ImageLink";
8828
+ } & {
8829
+ id: string;
8830
+ url: string;
8831
+ height: string;
8832
+ width: string;
8833
+ size: string;
8834
+ name: string;
8835
+ kind: string;
8836
+ } & {
8837
+ date?: string | null | undefined;
8838
+ }) | ({
8839
+ id: string;
8840
+ url: string;
8841
+ name: string;
8842
+ kind: string;
8843
+ size: string;
8844
+ } & {
8845
+ date?: string | null | undefined;
8846
+ } & {
8847
+ __TYPE__: "FileLink";
8848
+ } & {
8849
+ size?: string;
8850
+ }) | ({
8851
+ __TYPE__: "DocumentLink";
8852
+ } & {
8853
+ id: string;
8854
+ }) | ({
8855
+ __TYPE__: "ExternalLink";
8856
+ } & {
8857
+ url: string;
8858
+ } & {
8859
+ kind?: "web";
8860
+ target?: string | null | undefined;
8861
+ preview?: {
8862
+ title?: string;
8863
+ } | null | undefined;
8864
+ });
8865
+ } | {
8866
+ __TYPE__: "StructuredTextContent";
8867
+ value: (({
8868
+ type: "image";
8869
+ data: {
8870
+ origin: {
8871
+ id: string;
8872
+ url: string;
8873
+ width: number;
8874
+ height: number;
8875
+ };
8876
+ width: number;
8877
+ height: number;
8878
+ edit: {
8879
+ zoom: number;
8880
+ crop: {
8881
+ x: number;
8882
+ y: number;
8883
+ };
8884
+ background: string;
8885
+ };
8886
+ } & {
8887
+ url?: string;
8888
+ credits?: string | null;
8889
+ alt?: string | null;
8890
+ provider?: string | null | undefined;
8891
+ } & {
8892
+ linkTo?: ({
8893
+ __TYPE__: "ImageLink";
8894
+ } & {
8895
+ id: string;
8896
+ url: string;
8897
+ height: string;
8898
+ width: string;
8899
+ size: string;
8900
+ name: string;
8901
+ kind: string;
8902
+ } & {
8903
+ date?: string | null | undefined;
8904
+ }) | ({
8905
+ id: string;
8906
+ url: string;
8907
+ name: string;
8908
+ kind: string;
8909
+ size: string;
8910
+ } & {
8911
+ date?: string | null | undefined;
8912
+ } & {
8913
+ __TYPE__: "FileLink";
8914
+ } & {
8915
+ size?: string;
8916
+ }) | ({
8917
+ __TYPE__: "DocumentLink";
8918
+ } & {
8919
+ id: string;
8920
+ }) | ({
8921
+ __TYPE__: "ExternalLink";
8922
+ } & {
8923
+ url: string;
8924
+ } & {
8925
+ kind?: "web";
8926
+ target?: string | null | undefined;
8927
+ preview?: {
8928
+ title?: string;
8929
+ } | null | undefined;
8930
+ }) | null | undefined;
8931
+ };
8932
+ } & {
8933
+ label?: string | null | undefined;
8934
+ direction?: string | null | undefined;
8935
+ }) | ({
8936
+ type: "embed";
8937
+ data: {
8938
+ embed_url: string;
8939
+ type: string;
8940
+ } & {
8941
+ version?: string | number | null;
8942
+ title?: string | null | undefined;
8943
+ author_name?: string | null | undefined;
8944
+ author_url?: string | null | undefined;
8945
+ provider_name?: string | null | undefined;
8946
+ provider_url?: string | null | undefined;
8947
+ cache_age?: string | number | null;
8948
+ thumbnail_url?: string | null | undefined;
8949
+ thumbnail_width?: number | null | undefined;
8950
+ thumbnail_height?: number | null | undefined;
8951
+ html?: string | null | undefined;
8952
+ } & {
8953
+ __TYPE__: "EmbedContent";
8954
+ all: unknown;
8955
+ };
8956
+ } & {
8957
+ label?: string | null | undefined;
8958
+ direction?: string | null | undefined;
8959
+ }) | ({
8960
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
8961
+ content: {
8962
+ text: string;
8963
+ } & {
8964
+ spans?: ({
8965
+ data: ({
8966
+ __TYPE__: "ImageLink";
8967
+ } & {
8968
+ id: string;
8969
+ url: string;
8970
+ height: string;
8971
+ width: string;
8972
+ size: string;
8973
+ name: string;
8974
+ kind: string;
8975
+ } & {
8976
+ date?: string | null | undefined;
8977
+ }) | ({
8978
+ id: string;
8979
+ url: string;
8980
+ name: string;
8981
+ kind: string;
8982
+ size: string;
8983
+ } & {
8984
+ date?: string | null | undefined;
8985
+ } & {
8986
+ __TYPE__: "FileLink";
8987
+ } & {
8988
+ size?: string;
8989
+ }) | ({
8990
+ __TYPE__: "DocumentLink";
8991
+ } & {
8992
+ id: string;
8993
+ }) | ({
8994
+ __TYPE__: "ExternalLink";
8995
+ } & {
8996
+ url: string;
8997
+ } & {
8998
+ kind?: "web";
8999
+ target?: string | null | undefined;
9000
+ preview?: {
9001
+ title?: string;
9002
+ } | null | undefined;
9003
+ });
9004
+ start: number;
9005
+ end: number;
9006
+ type: "hyperlink";
9007
+ } | {
9008
+ data: string;
9009
+ start: number;
9010
+ end: number;
9011
+ type: "label";
9012
+ } | {
9013
+ start: number;
9014
+ end: number;
9015
+ type: "strong" | "em" | "list-item";
9016
+ })[];
9017
+ };
9018
+ } & {
9019
+ label?: string;
9020
+ direction?: string;
9021
+ }))[];
9022
+ } | {
9023
+ __TYPE__: "SeparatorContent";
9024
+ }][];
9025
+ }[];
7992
9026
  };
7993
9027
  };
7994
9028
  items: {