@prismicio/types-internal 1.2.0-alpha.0 → 1.2.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.
Files changed (76) hide show
  1. package/lib/content/fields/GroupContent.d.ts +810 -0
  2. package/lib/content/fields/GroupContent.js +17 -0
  3. package/lib/content/fields/index.d.ts +3 -0
  4. package/lib/content/fields/index.js +6 -0
  5. package/lib/content/fields/nestable/BooleanContent.d.ts +7 -0
  6. package/lib/content/fields/nestable/BooleanContent.js +11 -0
  7. package/lib/content/fields/nestable/EmbedContent.d.ts +70 -0
  8. package/lib/content/fields/nestable/EmbedContent.js +13 -0
  9. package/lib/content/fields/nestable/FieldContent.d.ts +26 -0
  10. package/lib/content/fields/nestable/FieldContent.js +22 -0
  11. package/lib/content/fields/nestable/GeoPointContent.d.ts +18 -0
  12. package/lib/content/fields/nestable/GeoPointContent.js +13 -0
  13. package/lib/content/fields/nestable/Image.d.ts +103 -0
  14. package/lib/content/fields/nestable/Image.js +13 -0
  15. package/lib/content/fields/nestable/ImageContent.d.ts +104 -0
  16. package/lib/content/fields/nestable/ImageContent.js +13 -0
  17. package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +7 -0
  18. package/lib/content/fields/nestable/IntegrationFieldContent.js +11 -0
  19. package/lib/content/fields/nestable/LinkContent.d.ts +159 -0
  20. package/lib/content/fields/nestable/LinkContent.js +48 -0
  21. package/lib/content/fields/nestable/NestableContent.d.ts +400 -0
  22. package/lib/content/fields/nestable/NestableContent.js +25 -0
  23. package/lib/content/fields/nestable/RichTextContent.d.ts +127 -0
  24. package/lib/content/fields/nestable/RichTextContent.js +11 -0
  25. package/lib/content/fields/nestable/SeparatorContent.d.ts +6 -0
  26. package/lib/content/fields/nestable/SeparatorContent.js +10 -0
  27. package/lib/content/fields/nestable/index.d.ts +10 -0
  28. package/lib/content/fields/nestable/index.js +13 -0
  29. package/lib/content/fields/slices/SharedSliceContent.d.ts +806 -0
  30. package/lib/content/fields/slices/SharedSliceContent.js +15 -0
  31. package/lib/content/fields/slices/index.d.ts +1 -0
  32. package/lib/content/fields/slices/index.js +4 -0
  33. package/lib/content/index.d.ts +1 -0
  34. package/lib/content/index.js +4 -0
  35. package/lib/customtypes/Comparators/SharedSlice.d.ts +260 -260
  36. package/lib/customtypes/Comparators/Variation.d.ts +258 -258
  37. package/lib/customtypes/CustomType.d.ts +932 -932
  38. package/lib/customtypes/Section.d.ts +932 -932
  39. package/lib/customtypes/widgets/Widget.d.ts +664 -664
  40. package/lib/customtypes/widgets/slices/Slices.d.ts +792 -792
  41. package/lib/documents/widgets/nestable/EmbedContent.d.ts +5 -6
  42. package/lib/documents/widgets/nestable/EmbedContent.js +5 -5
  43. package/lib/documents/widgets/nestable/ImageContent.d.ts +14 -14
  44. package/lib/documents/widgets/nestable/Link/ExternalLink.d.ts +4 -4
  45. package/lib/documents/widgets/nestable/Link/FileLink.d.ts +1 -1
  46. package/lib/documents/widgets/nestable/Link/FileLink.js +2 -1
  47. package/lib/documents/widgets/nestable/Link/LinkContent.d.ts +3 -3
  48. package/lib/documents/widgets/nestable/Link/index.d.ts +5 -5
  49. package/lib/documents/widgets/nestable/SeparatorContent.d.ts +4 -0
  50. package/lib/documents/widgets/nestable/SeparatorContent.js +5 -0
  51. package/lib/documents/widgets/nestable/StructuredTextContent/Block.d.ts +10 -10
  52. package/lib/utils/Objects.d.ts +3 -3
  53. package/lib/validators/TrimmedString.d.ts +5 -0
  54. package/lib/validators/TrimmedString.js +23 -0
  55. package/package.json +1 -1
  56. package/src/content/fields/GroupContent.ts +21 -0
  57. package/src/content/fields/index.ts +3 -0
  58. package/src/content/fields/nestable/BooleanContent.ts +11 -0
  59. package/src/content/fields/nestable/EmbedContent.ts +16 -0
  60. package/src/content/fields/nestable/FieldContent.ts +25 -0
  61. package/src/content/fields/nestable/GeoPointContent.ts +16 -0
  62. package/src/content/fields/nestable/ImageContent.ts +16 -0
  63. package/src/content/fields/nestable/IntegrationFieldContent.ts +11 -0
  64. package/src/content/fields/nestable/LinkContent.ts +68 -0
  65. package/src/content/fields/nestable/NestableContent.ts +25 -0
  66. package/src/content/fields/nestable/RichTextContent.ts +14 -0
  67. package/src/content/fields/nestable/SeparatorContent.ts +10 -0
  68. package/src/content/fields/nestable/index.ts +10 -0
  69. package/src/content/fields/slices/SharedSliceContent.ts +14 -0
  70. package/src/content/fields/slices/index.ts +1 -0
  71. package/src/content/index.ts +1 -0
  72. package/src/documents/widgets/nestable/EmbedContent.ts +1 -1
  73. package/src/documents/widgets/nestable/Link/FileLink.ts +2 -1
  74. package/src/documents/widgets/nestable/SeparatorContent.ts +5 -0
  75. package/src/utils/Objects.ts +13 -14
  76. package/src/validators/TrimmedString.ts +33 -0
@@ -0,0 +1,400 @@
1
+ import * as t from "io-ts";
2
+ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
3
+ __TYPE__: t.LiteralC<"BooleanContent">;
4
+ value: t.BooleanC;
5
+ }>>, t.IntersectionC<[t.Type<{
6
+ embed_url: string;
7
+ type: string;
8
+ } & {
9
+ version?: string | number | null;
10
+ title?: string | null | undefined;
11
+ author_name?: string | null | undefined;
12
+ author_url?: string | null | undefined;
13
+ provider_name?: string | null | undefined;
14
+ provider_url?: string | null | undefined;
15
+ cache_age?: string | number | null;
16
+ thumbnail_url?: string | null | undefined;
17
+ thumbnail_width?: number | null | undefined;
18
+ thumbnail_height?: number | null | undefined;
19
+ html?: string | null | undefined;
20
+ }, {
21
+ embed_url: string;
22
+ type: string;
23
+ } & {
24
+ version?: string | number | null;
25
+ title?: string | null | undefined;
26
+ author_name?: string | null | undefined;
27
+ author_url?: string | null | undefined;
28
+ provider_name?: string | null | undefined;
29
+ provider_url?: string | null | undefined;
30
+ cache_age?: string | number | null;
31
+ thumbnail_url?: string | null | undefined;
32
+ thumbnail_width?: number | null | undefined;
33
+ thumbnail_height?: number | null | undefined;
34
+ html?: string | null | undefined;
35
+ } & {
36
+ __TYPE__: "EmbedContent";
37
+ }, unknown>, t.ExactC<t.TypeC<{
38
+ __TYPE__: t.LiteralC<"EmbedContent">;
39
+ all: t.Type<{
40
+ embed_url: string;
41
+ type: string;
42
+ } & {
43
+ version?: string | number | null;
44
+ title?: string | null | undefined;
45
+ author_name?: string | null | undefined;
46
+ author_url?: string | null | undefined;
47
+ provider_name?: string | null | undefined;
48
+ provider_url?: string | null | undefined;
49
+ cache_age?: string | number | null;
50
+ thumbnail_url?: string | null | undefined;
51
+ thumbnail_width?: number | null | undefined;
52
+ thumbnail_height?: number | null | undefined;
53
+ html?: string | null | undefined;
54
+ }, {
55
+ embed_url: string;
56
+ type: string;
57
+ } & {
58
+ version?: string | number | null;
59
+ title?: string | null | undefined;
60
+ author_name?: string | null | undefined;
61
+ author_url?: string | null | undefined;
62
+ provider_name?: string | null | undefined;
63
+ provider_url?: string | null | undefined;
64
+ cache_age?: string | number | null;
65
+ thumbnail_url?: string | null | undefined;
66
+ thumbnail_width?: number | null | undefined;
67
+ thumbnail_height?: number | null | undefined;
68
+ html?: string | null | undefined;
69
+ } & {
70
+ __TYPE__: "EmbedContent";
71
+ }, unknown>;
72
+ }>>]>, t.ExactC<t.TypeC<{
73
+ type: t.KeyofC<{
74
+ Text: null;
75
+ Date: null;
76
+ Timestamp: null;
77
+ Color: null;
78
+ Number: null;
79
+ Range: null;
80
+ Select: null;
81
+ }>;
82
+ value: t.Type<string, string, unknown>;
83
+ __TYPE__: t.LiteralC<"FieldContent">;
84
+ }>>, t.IntersectionC<[t.Type<{
85
+ position: {
86
+ lat: number;
87
+ lng: number;
88
+ };
89
+ }, {
90
+ position: {
91
+ lat: number;
92
+ lng: number;
93
+ };
94
+ } & {
95
+ __TYPE__: "GeoPointContent";
96
+ }, unknown>, t.ExactC<t.TypeC<{
97
+ __TYPE__: t.LiteralC<"GeoPointContent">;
98
+ }>>]>, t.IntersectionC<[t.Type<{
99
+ origin: {
100
+ id: string;
101
+ url: string;
102
+ width: number;
103
+ height: number;
104
+ };
105
+ width: number;
106
+ height: number;
107
+ edit: {
108
+ zoom: number;
109
+ crop: {
110
+ x: number;
111
+ y: number;
112
+ };
113
+ background: string;
114
+ };
115
+ } & {
116
+ url?: string;
117
+ credits?: string | null;
118
+ alt?: string | null;
119
+ provider?: string | null | undefined;
120
+ } & {
121
+ thumbnails?: {
122
+ [x: string]: {
123
+ origin: {
124
+ id: string;
125
+ url: string;
126
+ width: number;
127
+ height: number;
128
+ };
129
+ width: number;
130
+ height: number;
131
+ edit: {
132
+ zoom: number;
133
+ crop: {
134
+ x: number;
135
+ y: number;
136
+ };
137
+ background: string;
138
+ };
139
+ } & {
140
+ url?: string;
141
+ credits?: string | null;
142
+ alt?: string | null;
143
+ provider?: string | null | undefined;
144
+ };
145
+ };
146
+ }, {
147
+ origin: {
148
+ id: string;
149
+ url: string;
150
+ width: number;
151
+ height: number;
152
+ };
153
+ width: number;
154
+ height: number;
155
+ edit: {
156
+ zoom: number;
157
+ crop: {
158
+ x: number;
159
+ y: number;
160
+ };
161
+ background: string;
162
+ };
163
+ } & {
164
+ url?: string;
165
+ credits?: string | null;
166
+ alt?: string | null;
167
+ provider?: string | null | undefined;
168
+ } & {
169
+ thumbnails?: {
170
+ [x: string]: {
171
+ origin: {
172
+ id: string;
173
+ url: string;
174
+ width: number;
175
+ height: number;
176
+ };
177
+ width: number;
178
+ height: number;
179
+ edit: {
180
+ zoom: number;
181
+ crop: {
182
+ x: number;
183
+ y: number;
184
+ };
185
+ background: string;
186
+ };
187
+ } & {
188
+ url?: string;
189
+ credits?: string | null;
190
+ alt?: string | null;
191
+ provider?: string | null | undefined;
192
+ };
193
+ };
194
+ } & {
195
+ __TYPE__: "ImageContent";
196
+ }, unknown>, t.ExactC<t.TypeC<{
197
+ __TYPE__: t.LiteralC<"ImageContent">;
198
+ }>>]>, t.ExactC<t.TypeC<{
199
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
200
+ value: t.StringC;
201
+ }>>, t.ExactC<t.TypeC<{
202
+ __TYPE__: t.LiteralC<"LinkContent">;
203
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
204
+ __TYPE__: t.LiteralC<"ImageLink">;
205
+ }>>, t.Type<{
206
+ id: string;
207
+ url: string;
208
+ height: string;
209
+ width: string;
210
+ size: string;
211
+ name: string;
212
+ kind: string;
213
+ } & {
214
+ date?: string | null | undefined;
215
+ }, {
216
+ id: string;
217
+ url: string;
218
+ height: string;
219
+ width: string;
220
+ size: string;
221
+ name: string;
222
+ kind: string;
223
+ } & {
224
+ date?: string | null | undefined;
225
+ } & {
226
+ __TYPE__: "ImageLink";
227
+ }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
228
+ __TYPE__: t.LiteralC<"FileLink">;
229
+ }>>, t.Type<{
230
+ id: string;
231
+ url: string;
232
+ name: string;
233
+ kind: string;
234
+ } & {
235
+ date?: string | null | undefined;
236
+ size?: string;
237
+ }, {
238
+ readonly size: string;
239
+ readonly __TYPE__: "FileLink";
240
+ readonly id: string;
241
+ readonly url: string;
242
+ readonly name: string;
243
+ readonly kind: string;
244
+ readonly date?: string | null | undefined;
245
+ }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
246
+ __TYPE__: t.LiteralC<"DocumentLink">;
247
+ }>>, t.Type<{
248
+ id: string;
249
+ }, {
250
+ id: string;
251
+ } & {
252
+ __TYPE__: "DocumentLink";
253
+ }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
254
+ __TYPE__: t.LiteralC<"ExternalLink">;
255
+ }>>, t.Type<{
256
+ url: string;
257
+ } & {
258
+ kind?: "web";
259
+ target?: string | null | undefined;
260
+ preview?: {
261
+ title?: string;
262
+ } | null | undefined;
263
+ }, {
264
+ url: string;
265
+ } & {
266
+ kind?: "web";
267
+ target?: string | null | undefined;
268
+ preview?: {
269
+ title?: string;
270
+ } | null | undefined;
271
+ } & {
272
+ __TYPE__: "ExternalLink";
273
+ }, unknown>]>]>;
274
+ }>>, t.ExactC<t.TypeC<{
275
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
276
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
277
+ type: t.LiteralC<"image">;
278
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
279
+ origin: t.ExactC<t.TypeC<{
280
+ id: t.StringC;
281
+ url: t.StringC;
282
+ width: t.NumberC;
283
+ height: t.NumberC;
284
+ }>>;
285
+ width: t.NumberC;
286
+ height: t.NumberC;
287
+ edit: t.TypeC<{
288
+ zoom: t.NumberC;
289
+ crop: t.TypeC<{
290
+ x: t.NumberC;
291
+ y: t.NumberC;
292
+ }>;
293
+ background: t.StringC;
294
+ }>;
295
+ }>, t.PartialC<{
296
+ url: t.StringC;
297
+ credits: t.Type<string | null, string | null, unknown>;
298
+ alt: t.Type<string | null, string | null, unknown>;
299
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
300
+ }>]>>, t.PartialC<{
301
+ linkTo: t.UnionC<[t.Type<{
302
+ id: string;
303
+ } | ({
304
+ url: string;
305
+ } & {
306
+ kind?: "web";
307
+ target?: string | null | undefined;
308
+ preview?: {
309
+ title?: string;
310
+ } | null | undefined;
311
+ }) | ({
312
+ id: string;
313
+ url: string;
314
+ name: string;
315
+ kind: string;
316
+ } & {
317
+ date?: string | null | undefined;
318
+ size?: string;
319
+ }) | ({
320
+ id: string;
321
+ url: string;
322
+ height: string;
323
+ width: string;
324
+ size: string;
325
+ name: string;
326
+ kind: string;
327
+ } & {
328
+ date?: string | null | undefined;
329
+ }), ({
330
+ id: string;
331
+ } & {
332
+ __TYPE__: "DocumentLink";
333
+ }) | ({
334
+ url: string;
335
+ } & {
336
+ kind?: "web";
337
+ target?: string | null | undefined;
338
+ preview?: {
339
+ title?: string;
340
+ } | null | undefined;
341
+ } & {
342
+ __TYPE__: "ExternalLink";
343
+ }) | {
344
+ readonly size: string;
345
+ readonly __TYPE__: "FileLink";
346
+ readonly id: string;
347
+ readonly url: string;
348
+ readonly name: string;
349
+ readonly kind: string;
350
+ readonly date?: string | null | undefined;
351
+ } | ({
352
+ id: string;
353
+ url: string;
354
+ height: string;
355
+ width: string;
356
+ size: string;
357
+ name: string;
358
+ kind: string;
359
+ } & {
360
+ date?: string | null | undefined;
361
+ } & {
362
+ __TYPE__: "ImageLink";
363
+ }), unknown>, t.NullC, t.UndefinedC]>;
364
+ }>]>;
365
+ }>, t.PartialC<{
366
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
367
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
368
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
369
+ type: t.LiteralC<"embed">;
370
+ data: t.Type<import("../../../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
371
+ }>, t.PartialC<{
372
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
373
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
374
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
375
+ type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
376
+ content: t.IntersectionC<[t.TypeC<{
377
+ text: t.StringC;
378
+ }>, t.PartialC<{
379
+ spans: t.Type<({
380
+ data?: unknown;
381
+ } & {
382
+ start: number;
383
+ end: number;
384
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
385
+ })[], ({
386
+ data?: unknown;
387
+ } & {
388
+ start: number;
389
+ end: number;
390
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
391
+ })[], unknown>;
392
+ }>]>;
393
+ }>, t.PartialC<{
394
+ label: t.StringC;
395
+ direction: t.StringC;
396
+ }>]>>]>>;
397
+ }>>, t.ExactC<t.TypeC<{
398
+ __TYPE__: t.LiteralC<"SeparatorContent">;
399
+ }>>]>;
400
+ export declare type NestableContent = t.TypeOf<typeof NestableContent>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NestableContent = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
6
+ const BooleanContent_1 = require("./BooleanContent");
7
+ const EmbedContent_1 = require("./EmbedContent");
8
+ const FieldContent_1 = require("./FieldContent");
9
+ const GeoPointContent_1 = require("./GeoPointContent");
10
+ const ImageContent_1 = require("./ImageContent");
11
+ const IntegrationFieldContent_1 = require("./IntegrationFieldContent");
12
+ const LinkContent_1 = require("./LinkContent");
13
+ const RichTextContent_1 = require("./RichTextContent");
14
+ const SeparatorContent_1 = require("./SeparatorContent");
15
+ exports.NestableContent = t.union([
16
+ BooleanContent_1.BooleanContent,
17
+ EmbedContent_1.EmbedContent,
18
+ FieldContent_1.FieldContent,
19
+ GeoPointContent_1.GeoPointContent,
20
+ ImageContent_1.ImageContent,
21
+ IntegrationFieldContent_1.IntegrationFieldContent,
22
+ LinkContent_1.LinkContent,
23
+ RichTextContent_1.RichTextContent,
24
+ SeparatorContent_1.SeparatorContent,
25
+ ]);
@@ -0,0 +1,127 @@
1
+ import * as t from "io-ts";
2
+ export declare const RichTextContent: t.ExactC<t.TypeC<{
3
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
4
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
5
+ type: t.LiteralC<"image">;
6
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
7
+ origin: t.ExactC<t.TypeC<{
8
+ id: t.StringC;
9
+ url: t.StringC;
10
+ width: t.NumberC;
11
+ height: t.NumberC;
12
+ }>>;
13
+ width: t.NumberC;
14
+ height: t.NumberC;
15
+ edit: t.TypeC<{
16
+ zoom: t.NumberC;
17
+ crop: t.TypeC<{
18
+ x: t.NumberC;
19
+ y: t.NumberC;
20
+ }>;
21
+ background: t.StringC;
22
+ }>;
23
+ }>, t.PartialC<{
24
+ url: t.StringC;
25
+ credits: t.Type<string | null, string | null, unknown>;
26
+ alt: t.Type<string | null, string | null, unknown>;
27
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
28
+ }>]>>, t.PartialC<{
29
+ linkTo: t.UnionC<[t.Type<{
30
+ id: string;
31
+ } | ({
32
+ url: string;
33
+ } & {
34
+ kind?: "web";
35
+ target?: string | null | undefined;
36
+ preview?: {
37
+ title?: string;
38
+ } | null | undefined;
39
+ }) | ({
40
+ id: string;
41
+ url: string;
42
+ name: string;
43
+ kind: string;
44
+ } & {
45
+ date?: string | null | undefined;
46
+ size?: string;
47
+ }) | ({
48
+ id: string;
49
+ url: string;
50
+ height: string;
51
+ width: string;
52
+ size: string;
53
+ name: string;
54
+ kind: string;
55
+ } & {
56
+ date?: string | null | undefined;
57
+ }), ({
58
+ id: string;
59
+ } & {
60
+ __TYPE__: "DocumentLink";
61
+ }) | ({
62
+ url: string;
63
+ } & {
64
+ kind?: "web";
65
+ target?: string | null | undefined;
66
+ preview?: {
67
+ title?: string;
68
+ } | null | undefined;
69
+ } & {
70
+ __TYPE__: "ExternalLink";
71
+ }) | {
72
+ readonly size: string;
73
+ readonly __TYPE__: "FileLink";
74
+ readonly id: string;
75
+ readonly url: string;
76
+ readonly name: string;
77
+ readonly kind: string;
78
+ readonly date?: string | null | undefined;
79
+ } | ({
80
+ id: string;
81
+ url: string;
82
+ height: string;
83
+ width: string;
84
+ size: string;
85
+ name: string;
86
+ kind: string;
87
+ } & {
88
+ date?: string | null | undefined;
89
+ } & {
90
+ __TYPE__: "ImageLink";
91
+ }), unknown>, t.NullC, t.UndefinedC]>;
92
+ }>]>;
93
+ }>, t.PartialC<{
94
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
95
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
96
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
97
+ type: t.LiteralC<"embed">;
98
+ data: t.Type<import("../../../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
99
+ }>, t.PartialC<{
100
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
101
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
102
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
103
+ type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
104
+ content: t.IntersectionC<[t.TypeC<{
105
+ text: t.StringC;
106
+ }>, t.PartialC<{
107
+ spans: t.Type<({
108
+ data?: unknown;
109
+ } & {
110
+ start: number;
111
+ end: number;
112
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
113
+ })[], ({
114
+ data?: unknown;
115
+ } & {
116
+ start: number;
117
+ end: number;
118
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
119
+ })[], unknown>;
120
+ }>]>;
121
+ }>, t.PartialC<{
122
+ label: t.StringC;
123
+ direction: t.StringC;
124
+ }>]>>]>>;
125
+ }>>;
126
+ export declare type RichTextContent = t.TypeOf<typeof RichTextContent>;
127
+ export declare const RichTextContentType = "StructuredTextContent";
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RichTextContentType = exports.RichTextContent = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
6
+ const StructuredTextContent_1 = require("../../../documents/widgets/nestable/StructuredTextContent");
7
+ exports.RichTextContent = t.strict({
8
+ __TYPE__: t.literal(StructuredTextContent_1.StructuredTextContentType),
9
+ value: t.array(StructuredTextContent_1.Blocks.Block),
10
+ });
11
+ exports.RichTextContentType = StructuredTextContent_1.StructuredTextContentType;
@@ -0,0 +1,6 @@
1
+ import * as t from "io-ts";
2
+ export declare const SeparatorContent: t.ExactC<t.TypeC<{
3
+ __TYPE__: t.LiteralC<"SeparatorContent">;
4
+ }>>;
5
+ export declare type SeparatorContent = t.TypeOf<typeof SeparatorContent>;
6
+ export declare const SeparatorContentType = "SeparatorContent";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SeparatorContentType = exports.SeparatorContent = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
6
+ const SeparatorContent_1 = require("../../../documents/widgets/nestable/SeparatorContent");
7
+ exports.SeparatorContent = t.strict({
8
+ __TYPE__: t.literal(SeparatorContent_1.SeparatorContentType),
9
+ });
10
+ exports.SeparatorContentType = SeparatorContent_1.SeparatorContentType;
@@ -0,0 +1,10 @@
1
+ export * from "./BooleanContent";
2
+ export * from "./EmbedContent";
3
+ export * from "./FieldContent";
4
+ export * from "./GeoPointContent";
5
+ export * from "./ImageContent";
6
+ export * from "./IntegrationFieldContent";
7
+ export * from "./LinkContent";
8
+ export * from "./NestableContent";
9
+ export * from "./RichTextContent";
10
+ export * from "./SeparatorContent";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ (0, tslib_1.__exportStar)(require("./BooleanContent"), exports);
5
+ (0, tslib_1.__exportStar)(require("./EmbedContent"), exports);
6
+ (0, tslib_1.__exportStar)(require("./FieldContent"), exports);
7
+ (0, tslib_1.__exportStar)(require("./GeoPointContent"), exports);
8
+ (0, tslib_1.__exportStar)(require("./ImageContent"), exports);
9
+ (0, tslib_1.__exportStar)(require("./IntegrationFieldContent"), exports);
10
+ (0, tslib_1.__exportStar)(require("./LinkContent"), exports);
11
+ (0, tslib_1.__exportStar)(require("./NestableContent"), exports);
12
+ (0, tslib_1.__exportStar)(require("./RichTextContent"), exports);
13
+ (0, tslib_1.__exportStar)(require("./SeparatorContent"), exports);