@prismicio/types-internal 2.4.0-alpha.3 → 2.4.0-alpha.5

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.
@@ -1593,7 +1593,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1593
1593
  }>>, t.ExactC<t.TypeC<{
1594
1594
  __TYPE__: t.LiteralC<"SharedSliceContent">;
1595
1595
  variation: t.StringC;
1596
- primary: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1596
+ primary: t.RecordC<t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
1597
1597
  type: t.StringC;
1598
1598
  __TYPE__: t.LiteralC<"EmptyContent">;
1599
1599
  }>>, t.ExactC<t.TypeC<{
@@ -1985,6 +1985,404 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1985
1985
  }>]>>]>>;
1986
1986
  }>>, t.ExactC<t.TypeC<{
1987
1987
  __TYPE__: t.LiteralC<"SeparatorContent">;
1988
+ }>>]>, t.ExactC<t.TypeC<{
1989
+ __TYPE__: t.LiteralC<"GroupContentType">;
1990
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1991
+ __TYPE__: t.LiteralC<"GroupItemContent">;
1992
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1993
+ type: t.StringC;
1994
+ __TYPE__: t.LiteralC<"EmptyContent">;
1995
+ }>>, t.ExactC<t.TypeC<{
1996
+ __TYPE__: t.LiteralC<"BooleanContent">;
1997
+ value: t.BooleanC;
1998
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1999
+ embed_url: t.StringC;
2000
+ type: t.StringC;
2001
+ }>, t.PartialC<{
2002
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2003
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2004
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2005
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2006
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2007
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2008
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2009
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2010
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2011
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2012
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2013
+ }>]>>, t.ExactC<t.TypeC<{
2014
+ __TYPE__: t.LiteralC<"EmbedContent">;
2015
+ all: t.UnknownC;
2016
+ }>>]>, t.ExactC<t.TypeC<{
2017
+ type: t.LiteralC<"Text">;
2018
+ value: t.Type<string, string, unknown>;
2019
+ __TYPE__: t.LiteralC<"FieldContent">;
2020
+ }>>, t.ExactC<t.TypeC<{
2021
+ type: t.LiteralC<"Timestamp">;
2022
+ value: t.Type<string, string, unknown>;
2023
+ __TYPE__: t.LiteralC<"FieldContent">;
2024
+ }>>, t.ExactC<t.TypeC<{
2025
+ type: t.LiteralC<"Select">;
2026
+ value: t.Type<string, string, unknown>;
2027
+ __TYPE__: t.LiteralC<"FieldContent">;
2028
+ }>>, t.ExactC<t.TypeC<{
2029
+ type: t.LiteralC<"Range">;
2030
+ value: t.Type<string, string, unknown>;
2031
+ __TYPE__: t.LiteralC<"FieldContent">;
2032
+ }>>, t.ExactC<t.TypeC<{
2033
+ type: t.LiteralC<"Number">;
2034
+ value: t.Type<string, string, unknown>;
2035
+ __TYPE__: t.LiteralC<"FieldContent">;
2036
+ }>>, t.ExactC<t.TypeC<{
2037
+ type: t.LiteralC<"Date">;
2038
+ value: t.Type<string, string, unknown>;
2039
+ __TYPE__: t.LiteralC<"FieldContent">;
2040
+ }>>, t.ExactC<t.TypeC<{
2041
+ type: t.LiteralC<"Color">;
2042
+ value: t.Type<string, string, unknown>;
2043
+ __TYPE__: t.LiteralC<"FieldContent">;
2044
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2045
+ position: t.ExactC<t.TypeC<{
2046
+ lat: t.NumberC;
2047
+ lng: t.NumberC;
2048
+ }>>;
2049
+ }>>, t.ExactC<t.TypeC<{
2050
+ __TYPE__: t.LiteralC<"GeoPointContent">;
2051
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2052
+ origin: t.ExactC<t.TypeC<{
2053
+ id: t.StringC;
2054
+ url: t.StringC;
2055
+ width: t.NumberC;
2056
+ height: t.NumberC;
2057
+ }>>;
2058
+ width: t.NumberC;
2059
+ height: t.NumberC;
2060
+ edit: t.TypeC<{
2061
+ zoom: t.NumberC;
2062
+ crop: t.TypeC<{
2063
+ x: t.NumberC;
2064
+ y: t.NumberC;
2065
+ }>;
2066
+ background: t.StringC;
2067
+ }>;
2068
+ }>, t.PartialC<{
2069
+ url: t.StringC;
2070
+ credits: t.Type<string | null, string | null, unknown>;
2071
+ alt: t.Type<string | null, string | null, unknown>;
2072
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2073
+ }>]>>, t.PartialC<{
2074
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
2075
+ origin: t.ExactC<t.TypeC<{
2076
+ id: t.StringC;
2077
+ url: t.StringC;
2078
+ width: t.NumberC;
2079
+ height: t.NumberC;
2080
+ }>>;
2081
+ width: t.NumberC;
2082
+ height: t.NumberC;
2083
+ edit: t.TypeC<{
2084
+ zoom: t.NumberC;
2085
+ crop: t.TypeC<{
2086
+ x: t.NumberC;
2087
+ y: t.NumberC;
2088
+ }>;
2089
+ background: t.StringC;
2090
+ }>;
2091
+ }>, t.PartialC<{
2092
+ url: t.StringC;
2093
+ credits: t.Type<string | null, string | null, unknown>;
2094
+ alt: t.Type<string | null, string | null, unknown>;
2095
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2096
+ }>]>>>;
2097
+ }>]>, t.ExactC<t.TypeC<{
2098
+ __TYPE__: t.LiteralC<"ImageContent">;
2099
+ }>>]>, t.ExactC<t.TypeC<{
2100
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
2101
+ value: t.StringC;
2102
+ }>>, t.ExactC<t.TypeC<{
2103
+ __TYPE__: t.LiteralC<"LinkContent">;
2104
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2105
+ __TYPE__: t.LiteralC<"ImageLink">;
2106
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2107
+ id: t.StringC;
2108
+ url: t.StringC;
2109
+ height: t.StringC;
2110
+ width: t.StringC;
2111
+ size: t.StringC;
2112
+ name: t.StringC;
2113
+ kind: t.StringC;
2114
+ }>, t.PartialC<{
2115
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2116
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2117
+ id: t.StringC;
2118
+ url: t.StringC;
2119
+ name: t.StringC;
2120
+ kind: t.StringC;
2121
+ size: t.StringC;
2122
+ }>, t.PartialC<{
2123
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2124
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2125
+ __TYPE__: t.LiteralC<"FileLink">;
2126
+ }>, t.PartialC<{
2127
+ size: t.StringC;
2128
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2129
+ __TYPE__: t.LiteralC<"DocumentLink">;
2130
+ }>>, t.ExactC<t.TypeC<{
2131
+ id: t.Type<string, string, unknown>;
2132
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2133
+ __TYPE__: t.LiteralC<"ExternalLink">;
2134
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2135
+ url: t.StringC;
2136
+ }>, t.PartialC<{
2137
+ kind: t.LiteralC<"web">;
2138
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2139
+ preview: t.UnionC<[t.Type<{
2140
+ title?: string;
2141
+ }, {
2142
+ title?: string;
2143
+ }, unknown>, t.NullC, t.UndefinedC]>;
2144
+ }>]>>]>]>;
2145
+ }>>, t.ExactC<t.TypeC<{
2146
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
2147
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2148
+ type: t.LiteralC<"image">;
2149
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2150
+ origin: t.ExactC<t.TypeC<{
2151
+ id: t.StringC;
2152
+ url: t.StringC;
2153
+ width: t.NumberC;
2154
+ height: t.NumberC;
2155
+ }>>;
2156
+ width: t.NumberC;
2157
+ height: t.NumberC;
2158
+ edit: t.TypeC<{
2159
+ zoom: t.NumberC;
2160
+ crop: t.TypeC<{
2161
+ x: t.NumberC;
2162
+ y: t.NumberC;
2163
+ }>;
2164
+ background: t.StringC;
2165
+ }>;
2166
+ }>, t.PartialC<{
2167
+ url: t.StringC;
2168
+ credits: t.Type<string | null, string | null, unknown>;
2169
+ alt: t.Type<string | null, string | null, unknown>;
2170
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2171
+ }>]>>, t.PartialC<{
2172
+ linkTo: t.UnionC<[t.Type<({
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
+ id: string;
2212
+ url: string;
2213
+ height: string;
2214
+ width: string;
2215
+ size: string;
2216
+ name: string;
2217
+ kind: string;
2218
+ } & {
2219
+ date?: string | null | undefined;
2220
+ }) | ({
2221
+ id: string;
2222
+ url: string;
2223
+ name: string;
2224
+ kind: string;
2225
+ size: string;
2226
+ } & {
2227
+ date?: string | null | undefined;
2228
+ }) | {
2229
+ id: string;
2230
+ } | ({
2231
+ url: string;
2232
+ } & {
2233
+ kind?: "web";
2234
+ target?: string | null | undefined;
2235
+ preview?: {
2236
+ title?: string;
2237
+ } | null | undefined;
2238
+ }), unknown>, t.NullC, t.UndefinedC]>;
2239
+ }>]>;
2240
+ }>, t.PartialC<{
2241
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2242
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2243
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2244
+ type: t.LiteralC<"embed">;
2245
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2246
+ embed_url: t.StringC;
2247
+ type: t.StringC;
2248
+ }>, t.PartialC<{
2249
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2250
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2251
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2252
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2253
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2254
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2255
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2256
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2257
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2258
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2259
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2260
+ }>]>>, t.ExactC<t.TypeC<{
2261
+ __TYPE__: t.LiteralC<"EmbedContent">;
2262
+ all: t.UnknownC;
2263
+ }>>]>;
2264
+ }>, t.PartialC<{
2265
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2266
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2267
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2268
+ 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>;
2269
+ content: t.IntersectionC<[t.TypeC<{
2270
+ text: t.StringC;
2271
+ }>, t.PartialC<{
2272
+ spans: t.Type<({
2273
+ data: ({
2274
+ __TYPE__: "ImageLink";
2275
+ } & {
2276
+ id: string;
2277
+ url: string;
2278
+ height: string;
2279
+ width: string;
2280
+ size: string;
2281
+ name: string;
2282
+ kind: string;
2283
+ } & {
2284
+ date?: string | null | undefined;
2285
+ }) | ({
2286
+ id: string;
2287
+ url: string;
2288
+ name: string;
2289
+ kind: string;
2290
+ size: string;
2291
+ } & {
2292
+ date?: string | null | undefined;
2293
+ } & {
2294
+ __TYPE__: "FileLink";
2295
+ } & {
2296
+ size?: string;
2297
+ }) | ({
2298
+ __TYPE__: "DocumentLink";
2299
+ } & {
2300
+ id: string;
2301
+ }) | ({
2302
+ __TYPE__: "ExternalLink";
2303
+ } & {
2304
+ url: string;
2305
+ } & {
2306
+ kind?: "web";
2307
+ target?: string | null | undefined;
2308
+ preview?: {
2309
+ title?: string;
2310
+ } | null | undefined;
2311
+ });
2312
+ start: number;
2313
+ end: number;
2314
+ type: "hyperlink";
2315
+ } | {
2316
+ data: string;
2317
+ start: number;
2318
+ end: number;
2319
+ type: "label";
2320
+ } | {
2321
+ start: number;
2322
+ end: number;
2323
+ type: "strong" | "em" | "list-item";
2324
+ })[], ({
2325
+ data: ({
2326
+ __TYPE__: "ImageLink";
2327
+ } & {
2328
+ id: string;
2329
+ url: string;
2330
+ height: string;
2331
+ width: string;
2332
+ size: string;
2333
+ name: string;
2334
+ kind: string;
2335
+ } & {
2336
+ date?: string | null | undefined;
2337
+ }) | ({
2338
+ id: string;
2339
+ url: string;
2340
+ name: string;
2341
+ kind: string;
2342
+ size: string;
2343
+ } & {
2344
+ date?: string | null | undefined;
2345
+ } & {
2346
+ __TYPE__: "FileLink";
2347
+ } & {
2348
+ size?: string;
2349
+ }) | ({
2350
+ __TYPE__: "DocumentLink";
2351
+ } & {
2352
+ id: string;
2353
+ }) | ({
2354
+ __TYPE__: "ExternalLink";
2355
+ } & {
2356
+ url: string;
2357
+ } & {
2358
+ kind?: "web";
2359
+ target?: string | null | undefined;
2360
+ preview?: {
2361
+ title?: string;
2362
+ } | null | undefined;
2363
+ });
2364
+ start: number;
2365
+ end: number;
2366
+ type: "hyperlink";
2367
+ } | {
2368
+ data: string;
2369
+ start: number;
2370
+ end: number;
2371
+ type: "label";
2372
+ } | {
2373
+ start: number;
2374
+ end: number;
2375
+ type: "strong" | "em" | "list-item";
2376
+ })[], unknown>;
2377
+ }>]>;
2378
+ }>, t.PartialC<{
2379
+ label: t.StringC;
2380
+ direction: t.StringC;
2381
+ }>]>>]>>;
2382
+ }>>, t.ExactC<t.TypeC<{
2383
+ __TYPE__: t.LiteralC<"SeparatorContent">;
2384
+ }>>]>]>>;
2385
+ }>>>;
1988
2386
  }>>]>>;
1989
2387
  items: t.ArrayC<t.ExactC<t.TypeC<{
1990
2388
  __TYPE__: t.LiteralC<"GroupItemContent">;
@@ -5393,6 +5791,324 @@ export declare const isWidgetContent: (u: unknown) => u is {
5393
5791
  }))[];
5394
5792
  } | {
5395
5793
  __TYPE__: "SeparatorContent";
5794
+ } | {
5795
+ __TYPE__: "GroupContentType";
5796
+ value: {
5797
+ __TYPE__: "GroupItemContent";
5798
+ value: [string, {
5799
+ type: string;
5800
+ __TYPE__: "EmptyContent";
5801
+ } | {
5802
+ __TYPE__: "BooleanContent";
5803
+ value: boolean;
5804
+ } | ({
5805
+ embed_url: string;
5806
+ type: string;
5807
+ } & {
5808
+ version?: string | number | null;
5809
+ title?: string | null | undefined;
5810
+ author_name?: string | null | undefined;
5811
+ author_url?: string | null | undefined;
5812
+ provider_name?: string | null | undefined;
5813
+ provider_url?: string | null | undefined;
5814
+ cache_age?: string | number | null;
5815
+ thumbnail_url?: string | null | undefined;
5816
+ thumbnail_width?: number | null | undefined;
5817
+ thumbnail_height?: number | null | undefined;
5818
+ html?: string | null | undefined;
5819
+ } & {
5820
+ __TYPE__: "EmbedContent";
5821
+ all: unknown;
5822
+ }) | {
5823
+ type: "Color";
5824
+ value: string;
5825
+ __TYPE__: "FieldContent";
5826
+ } | {
5827
+ type: "Date";
5828
+ value: string;
5829
+ __TYPE__: "FieldContent";
5830
+ } | {
5831
+ type: "Number";
5832
+ value: string;
5833
+ __TYPE__: "FieldContent";
5834
+ } | {
5835
+ type: "Range";
5836
+ value: string;
5837
+ __TYPE__: "FieldContent";
5838
+ } | {
5839
+ type: "Select";
5840
+ value: string;
5841
+ __TYPE__: "FieldContent";
5842
+ } | {
5843
+ type: "Text";
5844
+ value: string;
5845
+ __TYPE__: "FieldContent";
5846
+ } | {
5847
+ type: "Timestamp";
5848
+ value: string;
5849
+ __TYPE__: "FieldContent";
5850
+ } | ({
5851
+ position: {
5852
+ lat: number;
5853
+ lng: number;
5854
+ };
5855
+ } & {
5856
+ __TYPE__: "GeoPointContent";
5857
+ }) | ({
5858
+ origin: {
5859
+ id: string;
5860
+ url: string;
5861
+ width: number;
5862
+ height: number;
5863
+ };
5864
+ width: number;
5865
+ height: number;
5866
+ edit: {
5867
+ zoom: number;
5868
+ crop: {
5869
+ x: number;
5870
+ y: number;
5871
+ };
5872
+ background: string;
5873
+ };
5874
+ } & {
5875
+ url?: string;
5876
+ credits?: string | null;
5877
+ alt?: string | null;
5878
+ provider?: string | null | undefined;
5879
+ } & {
5880
+ thumbnails?: {
5881
+ [x: string]: {
5882
+ origin: {
5883
+ id: string;
5884
+ url: string;
5885
+ width: number;
5886
+ height: number;
5887
+ };
5888
+ width: number;
5889
+ height: number;
5890
+ edit: {
5891
+ zoom: number;
5892
+ crop: {
5893
+ x: number;
5894
+ y: number;
5895
+ };
5896
+ background: string;
5897
+ };
5898
+ } & {
5899
+ url?: string;
5900
+ credits?: string | null;
5901
+ alt?: string | null;
5902
+ provider?: string | null | undefined;
5903
+ };
5904
+ };
5905
+ } & {
5906
+ __TYPE__: "ImageContent";
5907
+ }) | {
5908
+ __TYPE__: "IntegrationFieldsContent";
5909
+ value: string;
5910
+ } | {
5911
+ __TYPE__: "LinkContent";
5912
+ value: ({
5913
+ __TYPE__: "ImageLink";
5914
+ } & {
5915
+ id: string;
5916
+ url: string;
5917
+ height: string;
5918
+ width: string;
5919
+ size: string;
5920
+ name: string;
5921
+ kind: string;
5922
+ } & {
5923
+ date?: string | null | undefined;
5924
+ }) | ({
5925
+ id: string;
5926
+ url: string;
5927
+ name: string;
5928
+ kind: string;
5929
+ size: string;
5930
+ } & {
5931
+ date?: string | null | undefined;
5932
+ } & {
5933
+ __TYPE__: "FileLink";
5934
+ } & {
5935
+ size?: string;
5936
+ }) | ({
5937
+ __TYPE__: "DocumentLink";
5938
+ } & {
5939
+ id: string;
5940
+ }) | ({
5941
+ __TYPE__: "ExternalLink";
5942
+ } & {
5943
+ url: string;
5944
+ } & {
5945
+ kind?: "web";
5946
+ target?: string | null | undefined;
5947
+ preview?: {
5948
+ title?: string;
5949
+ } | null | undefined;
5950
+ });
5951
+ } | {
5952
+ __TYPE__: "StructuredTextContent";
5953
+ value: (({
5954
+ type: "image";
5955
+ data: {
5956
+ origin: {
5957
+ id: string;
5958
+ url: string;
5959
+ width: number;
5960
+ height: number;
5961
+ };
5962
+ width: number;
5963
+ height: number;
5964
+ edit: {
5965
+ zoom: number;
5966
+ crop: {
5967
+ x: number;
5968
+ y: number;
5969
+ };
5970
+ background: string;
5971
+ };
5972
+ } & {
5973
+ url?: string;
5974
+ credits?: string | null;
5975
+ alt?: string | null;
5976
+ provider?: string | null | undefined;
5977
+ } & {
5978
+ linkTo?: ({
5979
+ __TYPE__: "ImageLink";
5980
+ } & {
5981
+ id: string;
5982
+ url: string;
5983
+ height: string;
5984
+ width: string;
5985
+ size: string;
5986
+ name: string;
5987
+ kind: string;
5988
+ } & {
5989
+ date?: string | null | undefined;
5990
+ }) | ({
5991
+ id: string;
5992
+ url: string;
5993
+ name: string;
5994
+ kind: string;
5995
+ size: string;
5996
+ } & {
5997
+ date?: string | null | undefined;
5998
+ } & {
5999
+ __TYPE__: "FileLink";
6000
+ } & {
6001
+ size?: string;
6002
+ }) | ({
6003
+ __TYPE__: "DocumentLink";
6004
+ } & {
6005
+ id: string;
6006
+ }) | ({
6007
+ __TYPE__: "ExternalLink";
6008
+ } & {
6009
+ url: string;
6010
+ } & {
6011
+ kind?: "web";
6012
+ target?: string | null | undefined;
6013
+ preview?: {
6014
+ title?: string;
6015
+ } | null | undefined;
6016
+ }) | null | undefined;
6017
+ };
6018
+ } & {
6019
+ label?: string | null | undefined;
6020
+ direction?: string | null | undefined;
6021
+ }) | ({
6022
+ type: "embed";
6023
+ data: {
6024
+ embed_url: string;
6025
+ type: string;
6026
+ } & {
6027
+ version?: string | number | null;
6028
+ title?: string | null | undefined;
6029
+ author_name?: string | null | undefined;
6030
+ author_url?: string | null | undefined;
6031
+ provider_name?: string | null | undefined;
6032
+ provider_url?: string | null | undefined;
6033
+ cache_age?: string | number | null;
6034
+ thumbnail_url?: string | null | undefined;
6035
+ thumbnail_width?: number | null | undefined;
6036
+ thumbnail_height?: number | null | undefined;
6037
+ html?: string | null | undefined;
6038
+ } & {
6039
+ __TYPE__: "EmbedContent";
6040
+ all: unknown;
6041
+ };
6042
+ } & {
6043
+ label?: string | null | undefined;
6044
+ direction?: string | null | undefined;
6045
+ }) | ({
6046
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6047
+ content: {
6048
+ text: string;
6049
+ } & {
6050
+ spans?: ({
6051
+ data: ({
6052
+ __TYPE__: "ImageLink";
6053
+ } & {
6054
+ id: string;
6055
+ url: string;
6056
+ height: string;
6057
+ width: string;
6058
+ size: string;
6059
+ name: string;
6060
+ kind: string;
6061
+ } & {
6062
+ date?: string | null | undefined;
6063
+ }) | ({
6064
+ id: string;
6065
+ url: string;
6066
+ name: string;
6067
+ kind: string;
6068
+ size: string;
6069
+ } & {
6070
+ date?: string | null | undefined;
6071
+ } & {
6072
+ __TYPE__: "FileLink";
6073
+ } & {
6074
+ size?: string;
6075
+ }) | ({
6076
+ __TYPE__: "DocumentLink";
6077
+ } & {
6078
+ id: string;
6079
+ }) | ({
6080
+ __TYPE__: "ExternalLink";
6081
+ } & {
6082
+ url: string;
6083
+ } & {
6084
+ kind?: "web";
6085
+ target?: string | null | undefined;
6086
+ preview?: {
6087
+ title?: string;
6088
+ } | null | undefined;
6089
+ });
6090
+ start: number;
6091
+ end: number;
6092
+ type: "hyperlink";
6093
+ } | {
6094
+ data: string;
6095
+ start: number;
6096
+ end: number;
6097
+ type: "label";
6098
+ } | {
6099
+ start: number;
6100
+ end: number;
6101
+ type: "strong" | "em" | "list-item";
6102
+ })[];
6103
+ };
6104
+ } & {
6105
+ label?: string;
6106
+ direction?: string;
6107
+ }))[];
6108
+ } | {
6109
+ __TYPE__: "SeparatorContent";
6110
+ }][];
6111
+ }[];
5396
6112
  };
5397
6113
  };
5398
6114
  items: {
@@ -7935,6 +8651,324 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7935
8651
  }))[];
7936
8652
  } | {
7937
8653
  __TYPE__: "SeparatorContent";
8654
+ } | {
8655
+ __TYPE__: "GroupContentType";
8656
+ value: {
8657
+ __TYPE__: "GroupItemContent";
8658
+ value: [string, {
8659
+ type: string;
8660
+ __TYPE__: "EmptyContent";
8661
+ } | {
8662
+ __TYPE__: "BooleanContent";
8663
+ value: boolean;
8664
+ } | ({
8665
+ embed_url: string;
8666
+ type: string;
8667
+ } & {
8668
+ version?: string | number | null;
8669
+ title?: string | null | undefined;
8670
+ author_name?: string | null | undefined;
8671
+ author_url?: string | null | undefined;
8672
+ provider_name?: string | null | undefined;
8673
+ provider_url?: string | null | undefined;
8674
+ cache_age?: string | number | null;
8675
+ thumbnail_url?: string | null | undefined;
8676
+ thumbnail_width?: number | null | undefined;
8677
+ thumbnail_height?: number | null | undefined;
8678
+ html?: string | null | undefined;
8679
+ } & {
8680
+ __TYPE__: "EmbedContent";
8681
+ all: unknown;
8682
+ }) | {
8683
+ type: "Color";
8684
+ value: string;
8685
+ __TYPE__: "FieldContent";
8686
+ } | {
8687
+ type: "Date";
8688
+ value: string;
8689
+ __TYPE__: "FieldContent";
8690
+ } | {
8691
+ type: "Number";
8692
+ value: string;
8693
+ __TYPE__: "FieldContent";
8694
+ } | {
8695
+ type: "Range";
8696
+ value: string;
8697
+ __TYPE__: "FieldContent";
8698
+ } | {
8699
+ type: "Select";
8700
+ value: string;
8701
+ __TYPE__: "FieldContent";
8702
+ } | {
8703
+ type: "Text";
8704
+ value: string;
8705
+ __TYPE__: "FieldContent";
8706
+ } | {
8707
+ type: "Timestamp";
8708
+ value: string;
8709
+ __TYPE__: "FieldContent";
8710
+ } | ({
8711
+ position: {
8712
+ lat: number;
8713
+ lng: number;
8714
+ };
8715
+ } & {
8716
+ __TYPE__: "GeoPointContent";
8717
+ }) | ({
8718
+ origin: {
8719
+ id: string;
8720
+ url: string;
8721
+ width: number;
8722
+ height: number;
8723
+ };
8724
+ width: number;
8725
+ height: number;
8726
+ edit: {
8727
+ zoom: number;
8728
+ crop: {
8729
+ x: number;
8730
+ y: number;
8731
+ };
8732
+ background: string;
8733
+ };
8734
+ } & {
8735
+ url?: string;
8736
+ credits?: string | null;
8737
+ alt?: string | null;
8738
+ provider?: string | null | undefined;
8739
+ } & {
8740
+ thumbnails?: {
8741
+ [x: string]: {
8742
+ origin: {
8743
+ id: string;
8744
+ url: string;
8745
+ width: number;
8746
+ height: number;
8747
+ };
8748
+ width: number;
8749
+ height: number;
8750
+ edit: {
8751
+ zoom: number;
8752
+ crop: {
8753
+ x: number;
8754
+ y: number;
8755
+ };
8756
+ background: string;
8757
+ };
8758
+ } & {
8759
+ url?: string;
8760
+ credits?: string | null;
8761
+ alt?: string | null;
8762
+ provider?: string | null | undefined;
8763
+ };
8764
+ };
8765
+ } & {
8766
+ __TYPE__: "ImageContent";
8767
+ }) | {
8768
+ __TYPE__: "IntegrationFieldsContent";
8769
+ value: string;
8770
+ } | {
8771
+ __TYPE__: "LinkContent";
8772
+ value: ({
8773
+ __TYPE__: "ImageLink";
8774
+ } & {
8775
+ id: string;
8776
+ url: string;
8777
+ height: string;
8778
+ width: string;
8779
+ size: string;
8780
+ name: string;
8781
+ kind: string;
8782
+ } & {
8783
+ date?: string | null | undefined;
8784
+ }) | ({
8785
+ id: string;
8786
+ url: string;
8787
+ name: string;
8788
+ kind: string;
8789
+ size: string;
8790
+ } & {
8791
+ date?: string | null | undefined;
8792
+ } & {
8793
+ __TYPE__: "FileLink";
8794
+ } & {
8795
+ size?: string;
8796
+ }) | ({
8797
+ __TYPE__: "DocumentLink";
8798
+ } & {
8799
+ id: string;
8800
+ }) | ({
8801
+ __TYPE__: "ExternalLink";
8802
+ } & {
8803
+ url: string;
8804
+ } & {
8805
+ kind?: "web";
8806
+ target?: string | null | undefined;
8807
+ preview?: {
8808
+ title?: string;
8809
+ } | null | undefined;
8810
+ });
8811
+ } | {
8812
+ __TYPE__: "StructuredTextContent";
8813
+ value: (({
8814
+ type: "image";
8815
+ data: {
8816
+ origin: {
8817
+ id: string;
8818
+ url: string;
8819
+ width: number;
8820
+ height: number;
8821
+ };
8822
+ width: number;
8823
+ height: number;
8824
+ edit: {
8825
+ zoom: number;
8826
+ crop: {
8827
+ x: number;
8828
+ y: number;
8829
+ };
8830
+ background: string;
8831
+ };
8832
+ } & {
8833
+ url?: string;
8834
+ credits?: string | null;
8835
+ alt?: string | null;
8836
+ provider?: string | null | undefined;
8837
+ } & {
8838
+ linkTo?: ({
8839
+ __TYPE__: "ImageLink";
8840
+ } & {
8841
+ id: string;
8842
+ url: string;
8843
+ height: string;
8844
+ width: string;
8845
+ size: string;
8846
+ name: string;
8847
+ kind: string;
8848
+ } & {
8849
+ date?: string | null | undefined;
8850
+ }) | ({
8851
+ id: string;
8852
+ url: string;
8853
+ name: string;
8854
+ kind: string;
8855
+ size: string;
8856
+ } & {
8857
+ date?: string | null | undefined;
8858
+ } & {
8859
+ __TYPE__: "FileLink";
8860
+ } & {
8861
+ size?: string;
8862
+ }) | ({
8863
+ __TYPE__: "DocumentLink";
8864
+ } & {
8865
+ id: string;
8866
+ }) | ({
8867
+ __TYPE__: "ExternalLink";
8868
+ } & {
8869
+ url: string;
8870
+ } & {
8871
+ kind?: "web";
8872
+ target?: string | null | undefined;
8873
+ preview?: {
8874
+ title?: string;
8875
+ } | null | undefined;
8876
+ }) | null | undefined;
8877
+ };
8878
+ } & {
8879
+ label?: string | null | undefined;
8880
+ direction?: string | null | undefined;
8881
+ }) | ({
8882
+ type: "embed";
8883
+ data: {
8884
+ embed_url: string;
8885
+ type: string;
8886
+ } & {
8887
+ version?: string | number | null;
8888
+ title?: string | null | undefined;
8889
+ author_name?: string | null | undefined;
8890
+ author_url?: string | null | undefined;
8891
+ provider_name?: string | null | undefined;
8892
+ provider_url?: string | null | undefined;
8893
+ cache_age?: string | number | null;
8894
+ thumbnail_url?: string | null | undefined;
8895
+ thumbnail_width?: number | null | undefined;
8896
+ thumbnail_height?: number | null | undefined;
8897
+ html?: string | null | undefined;
8898
+ } & {
8899
+ __TYPE__: "EmbedContent";
8900
+ all: unknown;
8901
+ };
8902
+ } & {
8903
+ label?: string | null | undefined;
8904
+ direction?: string | null | undefined;
8905
+ }) | ({
8906
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
8907
+ content: {
8908
+ text: string;
8909
+ } & {
8910
+ spans?: ({
8911
+ data: ({
8912
+ __TYPE__: "ImageLink";
8913
+ } & {
8914
+ id: string;
8915
+ url: string;
8916
+ height: string;
8917
+ width: string;
8918
+ size: string;
8919
+ name: string;
8920
+ kind: string;
8921
+ } & {
8922
+ date?: string | null | undefined;
8923
+ }) | ({
8924
+ id: string;
8925
+ url: string;
8926
+ name: string;
8927
+ kind: string;
8928
+ size: string;
8929
+ } & {
8930
+ date?: string | null | undefined;
8931
+ } & {
8932
+ __TYPE__: "FileLink";
8933
+ } & {
8934
+ size?: string;
8935
+ }) | ({
8936
+ __TYPE__: "DocumentLink";
8937
+ } & {
8938
+ id: string;
8939
+ }) | ({
8940
+ __TYPE__: "ExternalLink";
8941
+ } & {
8942
+ url: string;
8943
+ } & {
8944
+ kind?: "web";
8945
+ target?: string | null | undefined;
8946
+ preview?: {
8947
+ title?: string;
8948
+ } | null | undefined;
8949
+ });
8950
+ start: number;
8951
+ end: number;
8952
+ type: "hyperlink";
8953
+ } | {
8954
+ data: string;
8955
+ start: number;
8956
+ end: number;
8957
+ type: "label";
8958
+ } | {
8959
+ start: number;
8960
+ end: number;
8961
+ type: "strong" | "em" | "list-item";
8962
+ })[];
8963
+ };
8964
+ } & {
8965
+ label?: string;
8966
+ direction?: string;
8967
+ }))[];
8968
+ } | {
8969
+ __TYPE__: "SeparatorContent";
8970
+ }][];
8971
+ }[];
7938
8972
  };
7939
8973
  };
7940
8974
  items: {