@prismicio/types-internal 1.5.2 → 2.0.0-alpha.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 (254) hide show
  1. package/lib/common/WidgetKey.d.ts +3 -0
  2. package/lib/common/WidgetKey.js +8 -0
  3. package/lib/common/index.d.ts +1 -0
  4. package/lib/common/index.js +4 -0
  5. package/lib/content/Document.d.ts +4285 -2573
  6. package/lib/content/Document.js +87 -10
  7. package/lib/content/LegacyContentCtx.d.ts +41 -0
  8. package/lib/content/LegacyContentCtx.js +65 -0
  9. package/lib/content/fields/EmptyContent.d.ts +16 -0
  10. package/lib/content/fields/EmptyContent.js +30 -0
  11. package/lib/content/fields/GroupContent.d.ts +1063 -364
  12. package/lib/content/fields/GroupContent.js +65 -6
  13. package/lib/content/fields/UIDContent.d.ts +10 -1
  14. package/lib/content/fields/UIDContent.js +17 -4
  15. package/lib/content/fields/WidgetContent.d.ts +6820 -0
  16. package/lib/content/fields/WidgetContent.js +57 -0
  17. package/lib/content/fields/index.d.ts +1 -2989
  18. package/lib/content/fields/index.js +1 -18
  19. package/lib/content/fields/nestable/BooleanContent.d.ts +10 -1
  20. package/lib/content/fields/nestable/BooleanContent.js +17 -4
  21. package/lib/content/fields/nestable/EmbedContent.d.ts +56 -5
  22. package/lib/content/fields/nestable/EmbedContent.js +57 -6
  23. package/lib/content/fields/nestable/FieldContent/ColorContent.d.ts +18 -0
  24. package/lib/content/fields/nestable/FieldContent/ColorContent.js +34 -0
  25. package/lib/content/fields/nestable/FieldContent/DateContent.d.ts +18 -0
  26. package/lib/content/fields/nestable/FieldContent/DateContent.js +34 -0
  27. package/lib/content/fields/nestable/FieldContent/NumberContent.d.ts +18 -0
  28. package/lib/content/fields/nestable/FieldContent/NumberContent.js +34 -0
  29. package/lib/content/fields/nestable/FieldContent/RangeContent.d.ts +18 -0
  30. package/lib/content/fields/nestable/FieldContent/RangeContent.js +34 -0
  31. package/lib/content/fields/nestable/FieldContent/SelectContent.d.ts +18 -0
  32. package/lib/content/fields/nestable/FieldContent/SelectContent.js +34 -0
  33. package/lib/content/fields/nestable/FieldContent/TextContent.d.ts +18 -0
  34. package/lib/content/fields/nestable/FieldContent/TextContent.js +34 -0
  35. package/lib/content/fields/nestable/FieldContent/TimestampContent.d.ts +18 -0
  36. package/lib/content/fields/nestable/FieldContent/TimestampContent.js +34 -0
  37. package/lib/content/fields/nestable/FieldContent/common.d.ts +1 -0
  38. package/lib/content/fields/nestable/FieldContent/common.js +4 -0
  39. package/lib/content/fields/nestable/FieldContent/index.d.ts +49 -0
  40. package/lib/content/fields/nestable/FieldContent/index.js +38 -0
  41. package/lib/content/fields/nestable/FieldContent.d.ts +7 -1
  42. package/lib/content/fields/nestable/FieldContent.js +19 -4
  43. package/lib/content/fields/nestable/GeoPointContent.d.ts +19 -4
  44. package/lib/content/fields/nestable/GeoPointContent.js +22 -5
  45. package/lib/content/fields/nestable/ImageContent.d.ts +109 -11
  46. package/lib/content/fields/nestable/ImageContent.js +64 -6
  47. package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +10 -1
  48. package/lib/content/fields/nestable/IntegrationFieldContent.js +20 -4
  49. package/lib/content/fields/nestable/LinkContent.d.ts +240 -87
  50. package/lib/content/fields/nestable/LinkContent.js +133 -36
  51. package/lib/content/fields/nestable/NestableContent.d.ts +711 -251
  52. package/lib/content/fields/nestable/NestableContent.js +116 -13
  53. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +594 -0
  54. package/lib/content/fields/nestable/RichTextContent/Blocks.js +151 -0
  55. package/lib/content/fields/nestable/RichTextContent/index.d.ts +489 -0
  56. package/lib/content/fields/nestable/RichTextContent/index.js +27 -0
  57. package/lib/content/fields/nestable/SeparatorContent.d.ts +8 -1
  58. package/lib/content/fields/nestable/SeparatorContent.js +15 -4
  59. package/lib/content/fields/slices/CompositeSliceContent.d.ts +296 -362
  60. package/lib/content/fields/slices/RepeatableContent.d.ts +148 -181
  61. package/lib/content/fields/slices/SharedSliceContent.d.ts +296 -362
  62. package/lib/content/fields/slices/SimpleSliceContent.d.ts +296 -362
  63. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1709 -0
  64. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +81 -0
  65. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +582 -0
  66. package/lib/content/fields/slices/Slice/RepeatableContent.js +18 -0
  67. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1713 -0
  68. package/lib/content/fields/slices/Slice/SharedSliceContent.js +98 -0
  69. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +1429 -0
  70. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +24 -0
  71. package/lib/content/fields/slices/Slice/index.d.ts +3216 -0
  72. package/lib/content/fields/slices/Slice/index.js +41 -0
  73. package/lib/content/fields/slices/SliceItem.d.ts +3498 -0
  74. package/lib/content/fields/slices/SliceItem.js +61 -0
  75. package/lib/content/fields/slices/SlicesContent.d.ts +4243 -3576
  76. package/lib/content/fields/slices/SlicesContent.js +28 -18
  77. package/lib/content/fields/slices/index.d.ts +4 -3
  78. package/lib/content/fields/slices/index.js +4 -3
  79. package/lib/content/index.d.ts +1 -0
  80. package/lib/content/index.js +1 -0
  81. package/lib/content/utils.d.ts +10 -0
  82. package/lib/content/utils.js +19 -0
  83. package/lib/customtypes/CustomType.d.ts +366 -366
  84. package/lib/customtypes/CustomType.js +4 -7
  85. package/lib/customtypes/Section.d.ts +366 -366
  86. package/lib/customtypes/Section.js +2 -2
  87. package/lib/customtypes/diff/SharedSlice.d.ts +6 -7
  88. package/lib/customtypes/diff/Variation.d.ts +10 -7
  89. package/lib/customtypes/widgets/Group.d.ts +1 -0
  90. package/lib/customtypes/widgets/Group.js +6 -5
  91. package/lib/customtypes/widgets/UID.d.ts +1 -0
  92. package/lib/customtypes/widgets/UID.js +3 -2
  93. package/lib/customtypes/widgets/Widget.d.ts +384 -362
  94. package/lib/customtypes/widgets/Widget.js +29 -8
  95. package/lib/customtypes/widgets/index.d.ts +6 -7
  96. package/lib/customtypes/widgets/index.js +6 -11
  97. package/lib/customtypes/widgets/nestable/BooleanField.d.ts +10 -3
  98. package/lib/customtypes/widgets/nestable/BooleanField.js +6 -6
  99. package/lib/customtypes/widgets/nestable/Color.d.ts +8 -3
  100. package/lib/customtypes/widgets/nestable/Color.js +6 -6
  101. package/lib/customtypes/widgets/nestable/Date.d.ts +9 -3
  102. package/lib/customtypes/widgets/nestable/Date.js +6 -6
  103. package/lib/customtypes/widgets/nestable/Embed.d.ts +9 -3
  104. package/lib/customtypes/widgets/nestable/Embed.js +6 -6
  105. package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +7 -3
  106. package/lib/customtypes/widgets/nestable/GeoPoint.js +6 -6
  107. package/lib/customtypes/widgets/nestable/Image.d.ts +25 -3
  108. package/lib/customtypes/widgets/nestable/Image.js +8 -8
  109. package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +9 -3
  110. package/lib/customtypes/widgets/nestable/IntegrationField.js +6 -6
  111. package/lib/customtypes/widgets/nestable/Link.d.ts +14 -2
  112. package/lib/customtypes/widgets/nestable/Link.js +7 -6
  113. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +3 -3
  114. package/lib/customtypes/widgets/nestable/NestableWidget.js +30 -30
  115. package/lib/customtypes/widgets/nestable/Number.d.ts +11 -3
  116. package/lib/customtypes/widgets/nestable/Number.js +6 -6
  117. package/lib/customtypes/widgets/nestable/Range.d.ts +11 -3
  118. package/lib/customtypes/widgets/nestable/Range.js +6 -6
  119. package/lib/customtypes/widgets/nestable/RichText.d.ts +1 -0
  120. package/lib/customtypes/widgets/nestable/RichText.js +3 -3
  121. package/lib/customtypes/widgets/nestable/Select.d.ts +10 -3
  122. package/lib/customtypes/widgets/nestable/Select.js +6 -6
  123. package/lib/customtypes/widgets/nestable/Separator.d.ts +7 -3
  124. package/lib/customtypes/widgets/nestable/Separator.js +6 -6
  125. package/lib/customtypes/widgets/nestable/Text.d.ts +9 -2
  126. package/lib/customtypes/widgets/nestable/Text.js +7 -6
  127. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +9 -3
  128. package/lib/customtypes/widgets/nestable/Timestamp.js +6 -6
  129. package/lib/customtypes/widgets/nestable/index.d.ts +15 -15
  130. package/lib/customtypes/widgets/nestable/index.js +15 -31
  131. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +1 -0
  132. package/lib/customtypes/widgets/slices/CompositeSlice.js +7 -6
  133. package/lib/customtypes/widgets/slices/LegacySlice.js +2 -2
  134. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +1 -0
  135. package/lib/customtypes/widgets/slices/SharedSlice.js +7 -7
  136. package/lib/customtypes/widgets/slices/SharedSliceRef.js +2 -2
  137. package/lib/customtypes/widgets/slices/Slices.d.ts +364 -362
  138. package/lib/customtypes/widgets/slices/Slices.js +8 -8
  139. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +6 -5
  140. package/lib/customtypes/widgets/slices/SlicesTypes.js +8 -4
  141. package/lib/documents/DocumentData.d.ts +3 -14
  142. package/lib/documents/DocumentData.js +5 -60
  143. package/lib/documents/widgets/nestable/ImageContent.d.ts +1 -1
  144. package/lib/documents/widgets/nestable/ImageContent.js +2 -2
  145. package/lib/utils/Objects.d.ts +1 -0
  146. package/lib/utils/Objects.js +10 -1
  147. package/package.json +1 -1
  148. package/src/common/WidgetKey.ts +13 -0
  149. package/src/common/index.ts +1 -0
  150. package/src/content/Document.ts +129 -16
  151. package/src/content/LegacyContentCtx.ts +57 -0
  152. package/src/content/fields/EmptyContent.ts +45 -0
  153. package/src/content/fields/GroupContent.ts +103 -8
  154. package/src/content/fields/UIDContent.ts +33 -3
  155. package/src/content/fields/WidgetContent.ts +76 -0
  156. package/src/content/fields/index.ts +1 -23
  157. package/src/content/fields/nestable/BooleanContent.ts +32 -3
  158. package/src/content/fields/nestable/EmbedContent.ts +79 -8
  159. package/src/content/fields/nestable/FieldContent/ColorContent.ts +48 -0
  160. package/src/content/fields/nestable/FieldContent/DateContent.ts +48 -0
  161. package/src/content/fields/nestable/FieldContent/NumberContent.ts +48 -0
  162. package/src/content/fields/nestable/FieldContent/RangeContent.ts +48 -0
  163. package/src/content/fields/nestable/FieldContent/SelectContent.ts +48 -0
  164. package/src/content/fields/nestable/FieldContent/TextContent.ts +48 -0
  165. package/src/content/fields/nestable/FieldContent/TimestampContent.ts +48 -0
  166. package/src/content/fields/nestable/FieldContent/common.ts +1 -0
  167. package/src/content/fields/nestable/FieldContent/index.ts +40 -0
  168. package/src/content/fields/nestable/GeoPointContent.ts +38 -7
  169. package/src/content/fields/nestable/ImageContent.ts +91 -11
  170. package/src/content/fields/nestable/IntegrationFieldContent.ts +42 -3
  171. package/src/content/fields/nestable/LinkContent.ts +208 -47
  172. package/src/content/fields/nestable/NestableContent.ts +180 -24
  173. package/src/content/fields/nestable/RichTextContent/Blocks.ts +205 -0
  174. package/src/content/fields/nestable/RichTextContent/index.ts +43 -0
  175. package/src/content/fields/nestable/SeparatorContent.ts +26 -3
  176. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +118 -0
  177. package/src/content/fields/slices/{RepeatableContent.ts → Slice/RepeatableContent.ts} +7 -4
  178. package/src/content/fields/slices/Slice/SharedSliceContent.ts +129 -0
  179. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +30 -0
  180. package/src/content/fields/slices/Slice/index.ts +47 -0
  181. package/src/content/fields/slices/SliceItem.ts +83 -0
  182. package/src/content/fields/slices/SlicesContent.ts +47 -19
  183. package/src/content/fields/slices/index.ts +4 -3
  184. package/src/content/index.ts +1 -0
  185. package/src/content/utils.ts +20 -0
  186. package/src/customtypes/CustomType.ts +4 -10
  187. package/src/customtypes/Section.ts +1 -1
  188. package/src/customtypes/diff/SharedSlice.ts +2 -2
  189. package/src/customtypes/diff/Variation.ts +8 -2
  190. package/src/customtypes/widgets/Group.ts +4 -4
  191. package/src/customtypes/widgets/UID.ts +3 -2
  192. package/src/customtypes/widgets/Widget.ts +53 -7
  193. package/src/customtypes/widgets/index.ts +6 -7
  194. package/src/customtypes/widgets/nestable/BooleanField.ts +7 -8
  195. package/src/customtypes/widgets/nestable/Color.ts +6 -8
  196. package/src/customtypes/widgets/nestable/Date.ts +7 -8
  197. package/src/customtypes/widgets/nestable/Embed.ts +7 -8
  198. package/src/customtypes/widgets/nestable/GeoPoint.ts +7 -8
  199. package/src/customtypes/widgets/nestable/Image.ts +9 -10
  200. package/src/customtypes/widgets/nestable/IntegrationField.ts +6 -8
  201. package/src/customtypes/widgets/nestable/Link.ts +7 -6
  202. package/src/customtypes/widgets/nestable/NestableWidget.ts +17 -18
  203. package/src/customtypes/widgets/nestable/Number.ts +7 -8
  204. package/src/customtypes/widgets/nestable/Range.ts +7 -8
  205. package/src/customtypes/widgets/nestable/RichText.ts +3 -2
  206. package/src/customtypes/widgets/nestable/Select.ts +7 -8
  207. package/src/customtypes/widgets/nestable/Separator.ts +7 -8
  208. package/src/customtypes/widgets/nestable/Text.ts +7 -6
  209. package/src/customtypes/widgets/nestable/Timestamp.ts +7 -8
  210. package/src/customtypes/widgets/nestable/index.ts +15 -15
  211. package/src/customtypes/widgets/slices/CompositeSlice.ts +5 -4
  212. package/src/customtypes/widgets/slices/LegacySlice.ts +1 -1
  213. package/src/customtypes/widgets/slices/SharedSlice.ts +5 -4
  214. package/src/customtypes/widgets/slices/SharedSliceRef.ts +2 -2
  215. package/src/customtypes/widgets/slices/Slices.ts +7 -6
  216. package/src/customtypes/widgets/slices/SlicesTypes.ts +10 -5
  217. package/src/utils/Objects.ts +12 -0
  218. package/src/content/fields/nestable/FieldContent.ts +0 -25
  219. package/src/content/fields/nestable/RichTextContent.ts +0 -32
  220. package/src/content/fields/slices/CompositeSliceContent.ts +0 -14
  221. package/src/content/fields/slices/SharedSliceContent.ts +0 -14
  222. package/src/content/fields/slices/SimpleSliceContent.ts +0 -7
  223. package/src/customtypes/widgets/WidgetTypes.ts +0 -24
  224. package/src/documents/DocumentData.ts +0 -112
  225. package/src/documents/index.ts +0 -2
  226. package/src/documents/widgets/EmptyContent.ts +0 -8
  227. package/src/documents/widgets/GroupContent.ts +0 -91
  228. package/src/documents/widgets/SimpleWidgetContent.ts +0 -96
  229. package/src/documents/widgets/StaticWidgetContent.ts +0 -46
  230. package/src/documents/widgets/UIDContent.ts +0 -18
  231. package/src/documents/widgets/index.ts +0 -70
  232. package/src/documents/widgets/nestable/BooleanContent.ts +0 -21
  233. package/src/documents/widgets/nestable/EmbedContent.ts +0 -56
  234. package/src/documents/widgets/nestable/FieldContent.ts +0 -53
  235. package/src/documents/widgets/nestable/GeoPointContent.ts +0 -18
  236. package/src/documents/widgets/nestable/ImageContent.ts +0 -51
  237. package/src/documents/widgets/nestable/IntegrationFieldsContent.ts +0 -26
  238. package/src/documents/widgets/nestable/Link/DocumentLink.ts +0 -18
  239. package/src/documents/widgets/nestable/Link/ExternalLink.ts +0 -31
  240. package/src/documents/widgets/nestable/Link/FileLink.ts +0 -30
  241. package/src/documents/widgets/nestable/Link/ImageLink.ts +0 -31
  242. package/src/documents/widgets/nestable/Link/LinkContent.ts +0 -25
  243. package/src/documents/widgets/nestable/Link/index.ts +0 -35
  244. package/src/documents/widgets/nestable/SeparatorContent.ts +0 -13
  245. package/src/documents/widgets/nestable/StructuredTextContent/Block.ts +0 -126
  246. package/src/documents/widgets/nestable/StructuredTextContent/index.ts +0 -25
  247. package/src/documents/widgets/nestable/index.ts +0 -35
  248. package/src/documents/widgets/slices/CompositeSliceContent.ts +0 -77
  249. package/src/documents/widgets/slices/SharedSliceContent.ts +0 -94
  250. package/src/documents/widgets/slices/SimpleSliceContent.ts +0 -4
  251. package/src/documents/widgets/slices/SliceWidgetContent.ts +0 -51
  252. package/src/documents/widgets/slices/SlicesContent.ts +0 -91
  253. package/src/documents/widgets/slices/index.ts +0 -5
  254. package/src/index.ts +0 -3
@@ -1,25 +1,327 @@
1
1
  import * as t from "io-ts";
2
+ import { LegacyContentCtx, WithTypes } from "../LegacyContentCtx";
3
+ export declare const GroupItemContentType: "GroupItemContent";
2
4
  export declare const GroupItemContent: t.ExactC<t.TypeC<{
3
5
  __TYPE__: t.LiteralC<"GroupItemContent">;
4
6
  value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
7
+ type: t.StringC;
8
+ __TYPE__: t.LiteralC<"EmptyContent">;
9
+ }>>, t.ExactC<t.TypeC<{
5
10
  __TYPE__: t.LiteralC<"BooleanContent">;
6
11
  value: t.BooleanC;
7
- }>>, t.IntersectionC<[t.Type<{
8
- embed_url: string;
9
- type: string;
10
- } & {
11
- version?: string | number | null;
12
- title?: string | null | undefined;
13
- author_name?: string | null | undefined;
14
- author_url?: string | null | undefined;
15
- provider_name?: string | null | undefined;
16
- provider_url?: string | null | undefined;
17
- cache_age?: string | number | null;
18
- thumbnail_url?: string | null | undefined;
19
- thumbnail_width?: number | null | undefined;
20
- thumbnail_height?: number | null | undefined;
21
- html?: string | null | undefined;
22
- }, {
12
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
13
+ embed_url: t.StringC;
14
+ type: t.StringC;
15
+ }>, t.PartialC<{
16
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
17
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
18
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
19
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
20
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
21
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
22
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
23
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
24
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
25
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
26
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
27
+ }>]>>, t.ExactC<t.TypeC<{
28
+ __TYPE__: t.LiteralC<"EmbedContent">;
29
+ }>>]>, t.ExactC<t.TypeC<{
30
+ type: t.LiteralC<"Text">;
31
+ value: t.Type<string, string, unknown>;
32
+ __TYPE__: t.LiteralC<"FieldContent">;
33
+ }>>, t.ExactC<t.TypeC<{
34
+ type: t.LiteralC<"Timestamp">;
35
+ value: t.Type<string, string, unknown>;
36
+ __TYPE__: t.LiteralC<"FieldContent">;
37
+ }>>, t.ExactC<t.TypeC<{
38
+ type: t.LiteralC<"Select">;
39
+ value: t.Type<string, string, unknown>;
40
+ __TYPE__: t.LiteralC<"FieldContent">;
41
+ }>>, t.ExactC<t.TypeC<{
42
+ type: t.LiteralC<"Range">;
43
+ value: t.Type<string, string, unknown>;
44
+ __TYPE__: t.LiteralC<"FieldContent">;
45
+ }>>, t.ExactC<t.TypeC<{
46
+ type: t.LiteralC<"Number">;
47
+ value: t.Type<string, string, unknown>;
48
+ __TYPE__: t.LiteralC<"FieldContent">;
49
+ }>>, t.ExactC<t.TypeC<{
50
+ type: t.LiteralC<"Date">;
51
+ value: t.Type<string, string, unknown>;
52
+ __TYPE__: t.LiteralC<"FieldContent">;
53
+ }>>, t.ExactC<t.TypeC<{
54
+ type: t.LiteralC<"Color">;
55
+ value: t.Type<string, string, unknown>;
56
+ __TYPE__: t.LiteralC<"FieldContent">;
57
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
58
+ position: t.ExactC<t.TypeC<{
59
+ lat: t.NumberC;
60
+ lng: t.NumberC;
61
+ }>>;
62
+ }>>, t.ExactC<t.TypeC<{
63
+ __TYPE__: t.LiteralC<"GeoPointContent">;
64
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
65
+ origin: t.ExactC<t.TypeC<{
66
+ id: t.StringC;
67
+ url: t.StringC;
68
+ width: t.NumberC;
69
+ height: t.NumberC;
70
+ }>>;
71
+ width: t.NumberC;
72
+ height: t.NumberC;
73
+ edit: t.TypeC<{
74
+ zoom: t.NumberC;
75
+ crop: t.TypeC<{
76
+ x: t.NumberC;
77
+ y: t.NumberC;
78
+ }>;
79
+ background: t.StringC;
80
+ }>;
81
+ }>, t.PartialC<{
82
+ url: t.StringC;
83
+ credits: t.Type<string | null, string | null, unknown>;
84
+ alt: t.Type<string | null, string | null, unknown>;
85
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
86
+ }>]>>, t.PartialC<{
87
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
88
+ origin: t.ExactC<t.TypeC<{
89
+ id: t.StringC;
90
+ url: t.StringC;
91
+ width: t.NumberC;
92
+ height: t.NumberC;
93
+ }>>;
94
+ width: t.NumberC;
95
+ height: t.NumberC;
96
+ edit: t.TypeC<{
97
+ zoom: t.NumberC;
98
+ crop: t.TypeC<{
99
+ x: t.NumberC;
100
+ y: t.NumberC;
101
+ }>;
102
+ background: t.StringC;
103
+ }>;
104
+ }>, t.PartialC<{
105
+ url: t.StringC;
106
+ credits: t.Type<string | null, string | null, unknown>;
107
+ alt: t.Type<string | null, string | null, unknown>;
108
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
109
+ }>]>>>;
110
+ }>]>, t.ExactC<t.TypeC<{
111
+ __TYPE__: t.LiteralC<"ImageContent">;
112
+ }>>]>, t.ExactC<t.TypeC<{
113
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
114
+ value: t.StringC;
115
+ }>>, t.ExactC<t.TypeC<{
116
+ __TYPE__: t.LiteralC<"LinkContent">;
117
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
118
+ __TYPE__: t.LiteralC<"ImageLink">;
119
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
120
+ id: t.StringC;
121
+ url: t.StringC;
122
+ height: t.StringC;
123
+ width: t.StringC;
124
+ size: t.StringC;
125
+ name: t.StringC;
126
+ kind: t.StringC;
127
+ }>, t.PartialC<{
128
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
129
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
130
+ id: t.StringC;
131
+ url: t.StringC;
132
+ name: t.StringC;
133
+ kind: t.StringC;
134
+ }>, t.PartialC<{
135
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
136
+ size: t.StringC;
137
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
138
+ __TYPE__: t.LiteralC<"FileLink">;
139
+ }>, t.PartialC<{
140
+ size: t.StringC;
141
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
142
+ __TYPE__: t.LiteralC<"DocumentLink">;
143
+ }>>, t.ExactC<t.TypeC<{
144
+ id: t.Type<string, string, unknown>;
145
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
146
+ __TYPE__: t.LiteralC<"ExternalLink">;
147
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
148
+ url: t.StringC;
149
+ }>, t.PartialC<{
150
+ kind: t.LiteralC<"web">;
151
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
152
+ preview: t.UnionC<[t.Type<{
153
+ title?: string;
154
+ }, {
155
+ title?: string;
156
+ }, unknown>, t.NullC, t.UndefinedC]>;
157
+ }>]>>]>]>;
158
+ }>>, t.ExactC<t.TypeC<{
159
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
160
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
161
+ type: t.LiteralC<"image">;
162
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
163
+ origin: t.ExactC<t.TypeC<{
164
+ id: t.StringC;
165
+ url: t.StringC;
166
+ width: t.NumberC;
167
+ height: t.NumberC;
168
+ }>>;
169
+ width: t.NumberC;
170
+ height: t.NumberC;
171
+ edit: t.TypeC<{
172
+ zoom: t.NumberC;
173
+ crop: t.TypeC<{
174
+ x: t.NumberC;
175
+ y: t.NumberC;
176
+ }>;
177
+ background: t.StringC;
178
+ }>;
179
+ }>, t.PartialC<{
180
+ url: t.StringC;
181
+ credits: t.Type<string | null, string | null, unknown>;
182
+ alt: t.Type<string | null, string | null, unknown>;
183
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
184
+ }>]>>, t.PartialC<{
185
+ linkTo: t.UnionC<[t.Type<({
186
+ __TYPE__: "ImageLink";
187
+ } & {
188
+ id: string;
189
+ url: string;
190
+ height: string;
191
+ width: string;
192
+ size: string;
193
+ name: string;
194
+ kind: string;
195
+ } & {
196
+ date?: string | null | undefined;
197
+ }) | ({
198
+ id: string;
199
+ url: string;
200
+ name: string;
201
+ kind: string;
202
+ } & {
203
+ date?: string | null | undefined;
204
+ size?: string;
205
+ } & {
206
+ __TYPE__: "FileLink";
207
+ } & {
208
+ size?: string;
209
+ }) | ({
210
+ __TYPE__: "DocumentLink";
211
+ } & {
212
+ id: string;
213
+ }) | ({
214
+ __TYPE__: "ExternalLink";
215
+ } & {
216
+ url: string;
217
+ } & {
218
+ kind?: "web";
219
+ target?: string | null | undefined;
220
+ preview?: {
221
+ title?: string;
222
+ } | null | undefined;
223
+ }), ({
224
+ __TYPE__: "ImageLink";
225
+ } & {
226
+ id: string;
227
+ url: string;
228
+ height: string;
229
+ width: string;
230
+ size: string;
231
+ name: string;
232
+ kind: string;
233
+ } & {
234
+ date?: string | null | undefined;
235
+ }) | ({
236
+ id: string;
237
+ url: string;
238
+ name: string;
239
+ kind: string;
240
+ } & {
241
+ date?: string | null | undefined;
242
+ size?: string;
243
+ } & {
244
+ __TYPE__: "FileLink";
245
+ } & {
246
+ size?: string;
247
+ }) | ({
248
+ __TYPE__: "DocumentLink";
249
+ } & {
250
+ id: string;
251
+ }) | ({
252
+ __TYPE__: "ExternalLink";
253
+ } & {
254
+ url: string;
255
+ } & {
256
+ kind?: "web";
257
+ target?: string | null | undefined;
258
+ preview?: {
259
+ title?: string;
260
+ } | null | undefined;
261
+ }), unknown>, t.NullC, t.UndefinedC]>;
262
+ }>]>;
263
+ }>, t.PartialC<{
264
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
265
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
266
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
267
+ type: t.LiteralC<"embed">;
268
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
269
+ embed_url: t.StringC;
270
+ type: t.StringC;
271
+ }>, t.PartialC<{
272
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
273
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
274
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
275
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
276
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
277
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
278
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
279
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
280
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
281
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
282
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
283
+ }>]>>, t.ExactC<t.TypeC<{
284
+ __TYPE__: t.LiteralC<"EmbedContent">;
285
+ }>>]>;
286
+ }>, t.PartialC<{
287
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
288
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
289
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
290
+ 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>;
291
+ content: t.IntersectionC<[t.TypeC<{
292
+ text: t.StringC;
293
+ }>, t.PartialC<{
294
+ spans: t.Type<({
295
+ data?: unknown;
296
+ } & {
297
+ start: number;
298
+ end: number;
299
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
300
+ })[], ({
301
+ data?: unknown;
302
+ } & {
303
+ start: number;
304
+ end: number;
305
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
306
+ })[], unknown>;
307
+ }>]>;
308
+ }>, t.PartialC<{
309
+ label: t.StringC;
310
+ direction: t.StringC;
311
+ }>]>>]>>;
312
+ }>>, t.ExactC<t.TypeC<{
313
+ __TYPE__: t.LiteralC<"SeparatorContent">;
314
+ }>>]>]>>;
315
+ }>>;
316
+ export declare type GroupItemContent = t.TypeOf<typeof GroupItemContent>;
317
+ declare const itemLegacyReader: t.ArrayC<t.TupleC<[t.StringC, t.UnknownC]>>;
318
+ export declare type GroupItemLegacy = t.TypeOf<typeof itemLegacyReader>;
319
+ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
320
+ __TYPE__: "GroupItemContent";
321
+ value: [string, {
322
+ __TYPE__: "BooleanContent";
323
+ value: boolean;
324
+ } | ({
23
325
  embed_url: string;
24
326
  type: string;
25
327
  } & {
@@ -36,84 +338,42 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
36
338
  html?: string | null | undefined;
37
339
  } & {
38
340
  __TYPE__: "EmbedContent";
39
- }, unknown>, t.ExactC<t.TypeC<{
40
- __TYPE__: t.LiteralC<"EmbedContent">;
41
- all: t.UnknownC;
42
- }>>]>, t.ExactC<t.TypeC<{
43
- type: t.KeyofC<{
44
- Text: null;
45
- Date: null;
46
- Timestamp: null;
47
- Color: null;
48
- Number: null;
49
- Range: null;
50
- Select: null;
51
- }>;
52
- value: t.Type<string, string, unknown>;
53
- __TYPE__: t.LiteralC<"FieldContent">;
54
- }>>, t.IntersectionC<[t.Type<{
55
- position: {
56
- lat: number;
57
- lng: number;
58
- };
59
- }, {
341
+ }) | {
342
+ type: "Color";
343
+ value: string;
344
+ __TYPE__: "FieldContent";
345
+ } | {
346
+ type: "Date";
347
+ value: string;
348
+ __TYPE__: "FieldContent";
349
+ } | {
350
+ type: "Number";
351
+ value: string;
352
+ __TYPE__: "FieldContent";
353
+ } | {
354
+ type: "Range";
355
+ value: string;
356
+ __TYPE__: "FieldContent";
357
+ } | {
358
+ type: "Select";
359
+ value: string;
360
+ __TYPE__: "FieldContent";
361
+ } | {
362
+ type: "Text";
363
+ value: string;
364
+ __TYPE__: "FieldContent";
365
+ } | {
366
+ type: "Timestamp";
367
+ value: string;
368
+ __TYPE__: "FieldContent";
369
+ } | ({
60
370
  position: {
61
371
  lat: number;
62
372
  lng: number;
63
373
  };
64
374
  } & {
65
375
  __TYPE__: "GeoPointContent";
66
- }, unknown>, t.ExactC<t.TypeC<{
67
- __TYPE__: t.LiteralC<"GeoPointContent">;
68
- }>>]>, t.IntersectionC<[t.Type<{
69
- origin: {
70
- id: string;
71
- url: string;
72
- width: number;
73
- height: number;
74
- };
75
- width: number;
76
- height: number;
77
- edit: {
78
- zoom: number;
79
- crop: {
80
- x: number;
81
- y: number;
82
- };
83
- background: string;
84
- };
85
- } & {
86
- url?: string;
87
- credits?: string | null;
88
- alt?: string | null;
89
- provider?: string | null | undefined;
90
- } & {
91
- thumbnails?: {
92
- [x: string]: {
93
- origin: {
94
- id: string;
95
- url: string;
96
- width: number;
97
- height: number;
98
- };
99
- width: number;
100
- height: number;
101
- edit: {
102
- zoom: number;
103
- crop: {
104
- x: number;
105
- y: number;
106
- };
107
- background: string;
108
- };
109
- } & {
110
- url?: string;
111
- credits?: string | null;
112
- alt?: string | null;
113
- provider?: string | null | undefined;
114
- };
115
- };
116
- }, {
376
+ }) | ({
117
377
  origin: {
118
378
  id: string;
119
379
  url: string;
@@ -163,26 +423,14 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
163
423
  };
164
424
  } & {
165
425
  __TYPE__: "ImageContent";
166
- }, unknown>, t.ExactC<t.TypeC<{
167
- __TYPE__: t.LiteralC<"ImageContent">;
168
- }>>]>, t.ExactC<t.TypeC<{
169
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
170
- value: t.StringC;
171
- }>>, t.ExactC<t.TypeC<{
172
- __TYPE__: t.LiteralC<"LinkContent">;
173
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
174
- __TYPE__: t.LiteralC<"ImageLink">;
175
- }>>, t.Type<{
176
- id: string;
177
- url: string;
178
- height: string;
179
- width: string;
180
- size: string;
181
- name: string;
182
- kind: string;
426
+ }) | {
427
+ __TYPE__: "IntegrationFieldsContent";
428
+ value: string;
429
+ } | {
430
+ __TYPE__: "LinkContent";
431
+ value: ({
432
+ __TYPE__: "ImageLink";
183
433
  } & {
184
- date?: string | null | undefined;
185
- }, {
186
434
  id: string;
187
435
  url: string;
188
436
  height: string;
@@ -192,9 +440,7 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
192
440
  kind: string;
193
441
  } & {
194
442
  date?: string | null | undefined;
195
- } & {
196
- __TYPE__: "ImageLink";
197
- }, unknown>]>, t.IntersectionC<[t.Type<{
443
+ }) | ({
198
444
  id: string;
199
445
  url: string;
200
446
  name: string;
@@ -202,36 +448,17 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
202
448
  } & {
203
449
  date?: string | null | undefined;
204
450
  size?: string;
205
- }, {
206
- readonly size: string;
207
- readonly __TYPE__: "FileLink";
208
- readonly id: string;
209
- readonly url: string;
210
- readonly name: string;
211
- readonly kind: string;
212
- readonly date?: string | null | undefined;
213
- }, unknown>, t.ExactC<t.TypeC<{
214
- __TYPE__: t.LiteralC<"FileLink">;
215
- size: t.StringC;
216
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
217
- __TYPE__: t.LiteralC<"DocumentLink">;
218
- }>>, t.Type<{
219
- id: string;
220
- }, {
221
- id: string;
222
451
  } & {
452
+ __TYPE__: "FileLink";
453
+ } & {
454
+ size?: string;
455
+ }) | ({
223
456
  __TYPE__: "DocumentLink";
224
- }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
225
- __TYPE__: t.LiteralC<"ExternalLink">;
226
- }>>, t.Type<{
227
- url: string;
228
457
  } & {
229
- kind?: "web";
230
- target?: string | null | undefined;
231
- preview?: {
232
- title?: string;
233
- } | null | undefined;
234
- }, {
458
+ id: string;
459
+ }) | ({
460
+ __TYPE__: "ExternalLink";
461
+ } & {
235
462
  url: string;
236
463
  } & {
237
464
  kind?: "web";
@@ -239,69 +466,68 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
239
466
  preview?: {
240
467
  title?: string;
241
468
  } | null | undefined;
242
- } & {
243
- __TYPE__: "ExternalLink";
244
- }, unknown>]>]>;
245
- }>>, t.ExactC<t.TypeC<{
246
- __TYPE__: t.LiteralC<"StructuredTextContent">;
247
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
248
- type: t.LiteralC<"image">;
249
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
250
- origin: t.ExactC<t.TypeC<{
251
- id: t.StringC;
252
- url: t.StringC;
253
- width: t.NumberC;
254
- height: t.NumberC;
255
- }>>;
256
- width: t.NumberC;
257
- height: t.NumberC;
258
- edit: t.TypeC<{
259
- zoom: t.NumberC;
260
- crop: t.TypeC<{
261
- x: t.NumberC;
262
- y: t.NumberC;
263
- }>;
264
- background: t.StringC;
265
- }>;
266
- }>, t.PartialC<{
267
- url: t.StringC;
268
- credits: t.Type<string | null, string | null, unknown>;
269
- alt: t.Type<string | null, string | null, unknown>;
270
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
271
- }>]>>, t.PartialC<{
272
- linkTo: t.UnionC<[t.Type<{
469
+ });
470
+ } | {
471
+ type: string;
472
+ __TYPE__: "EmptyContent";
473
+ } | {
474
+ __TYPE__: "StructuredTextContent";
475
+ value: (({
476
+ type: "image";
477
+ data: {
478
+ origin: {
273
479
  id: string;
274
- } | ({
275
480
  url: string;
481
+ width: number;
482
+ height: number;
483
+ };
484
+ width: number;
485
+ height: number;
486
+ edit: {
487
+ zoom: number;
488
+ crop: {
489
+ x: number;
490
+ y: number;
491
+ };
492
+ background: string;
493
+ };
494
+ } & {
495
+ url?: string;
496
+ credits?: string | null;
497
+ alt?: string | null;
498
+ provider?: string | null | undefined;
499
+ } & {
500
+ linkTo?: ({
501
+ __TYPE__: "ImageLink";
276
502
  } & {
277
- kind?: "web";
278
- target?: string | null | undefined;
279
- preview?: {
280
- title?: string;
281
- } | null | undefined;
282
- }) | ({
283
503
  id: string;
284
504
  url: string;
505
+ height: string;
506
+ width: string;
507
+ size: string;
285
508
  name: string;
286
509
  kind: string;
287
510
  } & {
288
511
  date?: string | null | undefined;
289
- size?: string;
290
512
  }) | ({
291
513
  id: string;
292
514
  url: string;
293
- height: string;
294
- width: string;
295
- size: string;
296
515
  name: string;
297
516
  kind: string;
298
517
  } & {
299
518
  date?: string | null | undefined;
300
- }), ({
301
- id: string;
519
+ size?: string;
302
520
  } & {
521
+ __TYPE__: "FileLink";
522
+ } & {
523
+ size?: string;
524
+ }) | ({
303
525
  __TYPE__: "DocumentLink";
526
+ } & {
527
+ id: string;
304
528
  }) | ({
529
+ __TYPE__: "ExternalLink";
530
+ } & {
305
531
  url: string;
306
532
  } & {
307
533
  kind?: "web";
@@ -309,91 +535,64 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
309
535
  preview?: {
310
536
  title?: string;
311
537
  } | null | undefined;
312
- } & {
313
- __TYPE__: "ExternalLink";
314
- }) | {
315
- readonly size: string;
316
- readonly __TYPE__: "FileLink";
317
- readonly id: string;
318
- readonly url: string;
319
- readonly name: string;
320
- readonly kind: string;
321
- readonly date?: string | null | undefined;
322
- } | ({
323
- id: string;
324
- url: string;
325
- height: string;
326
- width: string;
327
- size: string;
328
- name: string;
329
- kind: string;
330
- } & {
331
- date?: string | null | undefined;
332
- } & {
333
- __TYPE__: "ImageLink";
334
- }), unknown>, t.NullC, t.UndefinedC]>;
335
- }>]>;
336
- }>, t.PartialC<{
337
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
338
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
339
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
340
- type: t.LiteralC<"embed">;
341
- data: t.Type<import("../../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
342
- }>, t.PartialC<{
343
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
344
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
345
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
346
- 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>;
347
- content: t.IntersectionC<[t.TypeC<{
348
- text: t.StringC;
349
- }>, t.PartialC<{
350
- spans: t.Type<({
351
- data?: unknown;
352
- } & {
353
- start: number;
354
- end: number;
355
- type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
356
- })[], ({
538
+ }) | null | undefined;
539
+ };
540
+ } & {
541
+ label?: string | null | undefined;
542
+ direction?: string | null | undefined;
543
+ }) | ({
544
+ type: "embed";
545
+ data: {
546
+ embed_url: string;
547
+ type: string;
548
+ } & {
549
+ version?: string | number | null;
550
+ title?: string | null | undefined;
551
+ author_name?: string | null | undefined;
552
+ author_url?: string | null | undefined;
553
+ provider_name?: string | null | undefined;
554
+ provider_url?: string | null | undefined;
555
+ cache_age?: string | number | null;
556
+ thumbnail_url?: string | null | undefined;
557
+ thumbnail_width?: number | null | undefined;
558
+ thumbnail_height?: number | null | undefined;
559
+ html?: string | null | undefined;
560
+ } & {
561
+ __TYPE__: "EmbedContent";
562
+ };
563
+ } & {
564
+ label?: string | null | undefined;
565
+ direction?: string | null | undefined;
566
+ }) | ({
567
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
568
+ content: {
569
+ text: string;
570
+ } & {
571
+ spans?: ({
357
572
  data?: unknown;
358
573
  } & {
359
574
  start: number;
360
575
  end: number;
361
576
  type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
362
- })[], unknown>;
363
- }>]>;
364
- }>, t.PartialC<{
365
- label: t.StringC;
366
- direction: t.StringC;
367
- }>]>>]>>;
368
- }>>, t.ExactC<t.TypeC<{
369
- __TYPE__: t.LiteralC<"SeparatorContent">;
370
- }>>]>]>>;
371
- }>>;
372
- export declare type GroupItemContent = t.TypeOf<typeof GroupItemContent>;
373
- export declare const GroupItemContentType = "GroupItemContent";
374
- export declare const GroupContent: t.ExactC<t.TypeC<{
375
- __TYPE__: t.LiteralC<"GroupContentType">;
376
- value: t.ArrayC<t.ExactC<t.TypeC<{
377
- __TYPE__: t.LiteralC<"GroupItemContent">;
378
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
379
- __TYPE__: t.LiteralC<"BooleanContent">;
380
- value: t.BooleanC;
381
- }>>, t.IntersectionC<[t.Type<{
382
- embed_url: string;
383
- type: string;
577
+ })[];
578
+ };
384
579
  } & {
385
- version?: string | number | null;
386
- title?: string | null | undefined;
387
- author_name?: string | null | undefined;
388
- author_url?: string | null | undefined;
389
- provider_name?: string | null | undefined;
390
- provider_url?: string | null | undefined;
391
- cache_age?: string | number | null;
392
- thumbnail_url?: string | null | undefined;
393
- thumbnail_width?: number | null | undefined;
394
- thumbnail_height?: number | null | undefined;
395
- html?: string | null | undefined;
396
- }, {
580
+ label?: string;
581
+ direction?: string;
582
+ }))[];
583
+ } | {
584
+ __TYPE__: "SeparatorContent";
585
+ }][];
586
+ }, WithTypes<[string, unknown][]>, unknown>;
587
+ declare type GroupLegacy = Array<GroupItemLegacy>;
588
+ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
589
+ __TYPE__: "GroupContentType";
590
+ value: {
591
+ __TYPE__: "GroupItemContent";
592
+ value: [string, {
593
+ __TYPE__: "BooleanContent";
594
+ value: boolean;
595
+ } | ({
397
596
  embed_url: string;
398
597
  type: string;
399
598
  } & {
@@ -410,36 +609,42 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
410
609
  html?: string | null | undefined;
411
610
  } & {
412
611
  __TYPE__: "EmbedContent";
413
- }, unknown>, t.ExactC<t.TypeC<{
414
- __TYPE__: t.LiteralC<"EmbedContent">;
415
- all: t.UnknownC;
416
- }>>]>, t.ExactC<t.TypeC<{
417
- type: t.KeyofC<{
418
- Text: null;
419
- Date: null;
420
- Timestamp: null;
421
- Color: null;
422
- Number: null;
423
- Range: null;
424
- Select: null;
425
- }>;
426
- value: t.Type<string, string, unknown>;
427
- __TYPE__: t.LiteralC<"FieldContent">;
428
- }>>, t.IntersectionC<[t.Type<{
429
- position: {
430
- lat: number;
431
- lng: number;
432
- };
433
- }, {
612
+ }) | {
613
+ type: "Color";
614
+ value: string;
615
+ __TYPE__: "FieldContent";
616
+ } | {
617
+ type: "Date";
618
+ value: string;
619
+ __TYPE__: "FieldContent";
620
+ } | {
621
+ type: "Number";
622
+ value: string;
623
+ __TYPE__: "FieldContent";
624
+ } | {
625
+ type: "Range";
626
+ value: string;
627
+ __TYPE__: "FieldContent";
628
+ } | {
629
+ type: "Select";
630
+ value: string;
631
+ __TYPE__: "FieldContent";
632
+ } | {
633
+ type: "Text";
634
+ value: string;
635
+ __TYPE__: "FieldContent";
636
+ } | {
637
+ type: "Timestamp";
638
+ value: string;
639
+ __TYPE__: "FieldContent";
640
+ } | ({
434
641
  position: {
435
642
  lat: number;
436
643
  lng: number;
437
644
  };
438
645
  } & {
439
646
  __TYPE__: "GeoPointContent";
440
- }, unknown>, t.ExactC<t.TypeC<{
441
- __TYPE__: t.LiteralC<"GeoPointContent">;
442
- }>>]>, t.IntersectionC<[t.Type<{
647
+ }) | ({
443
648
  origin: {
444
649
  id: string;
445
650
  url: string;
@@ -487,7 +692,231 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
487
692
  provider?: string | null | undefined;
488
693
  };
489
694
  };
490
- }, {
695
+ } & {
696
+ __TYPE__: "ImageContent";
697
+ }) | {
698
+ __TYPE__: "IntegrationFieldsContent";
699
+ value: string;
700
+ } | {
701
+ __TYPE__: "LinkContent";
702
+ value: ({
703
+ __TYPE__: "ImageLink";
704
+ } & {
705
+ id: string;
706
+ url: string;
707
+ height: string;
708
+ width: string;
709
+ size: string;
710
+ name: string;
711
+ kind: string;
712
+ } & {
713
+ date?: string | null | undefined;
714
+ }) | ({
715
+ id: string;
716
+ url: string;
717
+ name: string;
718
+ kind: string;
719
+ } & {
720
+ date?: string | null | undefined;
721
+ size?: string;
722
+ } & {
723
+ __TYPE__: "FileLink";
724
+ } & {
725
+ size?: string;
726
+ }) | ({
727
+ __TYPE__: "DocumentLink";
728
+ } & {
729
+ id: string;
730
+ }) | ({
731
+ __TYPE__: "ExternalLink";
732
+ } & {
733
+ url: string;
734
+ } & {
735
+ kind?: "web";
736
+ target?: string | null | undefined;
737
+ preview?: {
738
+ title?: string;
739
+ } | null | undefined;
740
+ });
741
+ } | {
742
+ type: string;
743
+ __TYPE__: "EmptyContent";
744
+ } | {
745
+ __TYPE__: "StructuredTextContent";
746
+ value: (({
747
+ type: "image";
748
+ data: {
749
+ origin: {
750
+ id: string;
751
+ url: string;
752
+ width: number;
753
+ height: number;
754
+ };
755
+ width: number;
756
+ height: number;
757
+ edit: {
758
+ zoom: number;
759
+ crop: {
760
+ x: number;
761
+ y: number;
762
+ };
763
+ background: string;
764
+ };
765
+ } & {
766
+ url?: string;
767
+ credits?: string | null;
768
+ alt?: string | null;
769
+ provider?: string | null | undefined;
770
+ } & {
771
+ linkTo?: ({
772
+ __TYPE__: "ImageLink";
773
+ } & {
774
+ id: string;
775
+ url: string;
776
+ height: string;
777
+ width: string;
778
+ size: string;
779
+ name: string;
780
+ kind: string;
781
+ } & {
782
+ date?: string | null | undefined;
783
+ }) | ({
784
+ id: string;
785
+ url: string;
786
+ name: string;
787
+ kind: string;
788
+ } & {
789
+ date?: string | null | undefined;
790
+ size?: string;
791
+ } & {
792
+ __TYPE__: "FileLink";
793
+ } & {
794
+ size?: string;
795
+ }) | ({
796
+ __TYPE__: "DocumentLink";
797
+ } & {
798
+ id: string;
799
+ }) | ({
800
+ __TYPE__: "ExternalLink";
801
+ } & {
802
+ url: string;
803
+ } & {
804
+ kind?: "web";
805
+ target?: string | null | undefined;
806
+ preview?: {
807
+ title?: string;
808
+ } | null | undefined;
809
+ }) | null | undefined;
810
+ };
811
+ } & {
812
+ label?: string | null | undefined;
813
+ direction?: string | null | undefined;
814
+ }) | ({
815
+ type: "embed";
816
+ data: {
817
+ embed_url: string;
818
+ type: string;
819
+ } & {
820
+ version?: string | number | null;
821
+ title?: string | null | undefined;
822
+ author_name?: string | null | undefined;
823
+ author_url?: string | null | undefined;
824
+ provider_name?: string | null | undefined;
825
+ provider_url?: string | null | undefined;
826
+ cache_age?: string | number | null;
827
+ thumbnail_url?: string | null | undefined;
828
+ thumbnail_width?: number | null | undefined;
829
+ thumbnail_height?: number | null | undefined;
830
+ html?: string | null | undefined;
831
+ } & {
832
+ __TYPE__: "EmbedContent";
833
+ };
834
+ } & {
835
+ label?: string | null | undefined;
836
+ direction?: string | null | undefined;
837
+ }) | ({
838
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
839
+ content: {
840
+ text: string;
841
+ } & {
842
+ spans?: ({
843
+ data?: unknown;
844
+ } & {
845
+ start: number;
846
+ end: number;
847
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
848
+ })[];
849
+ };
850
+ } & {
851
+ label?: string;
852
+ direction?: string;
853
+ }))[];
854
+ } | {
855
+ __TYPE__: "SeparatorContent";
856
+ }][];
857
+ }[];
858
+ }, WithTypes<GroupLegacy>, unknown>;
859
+ export declare const GroupContentType: "GroupContentType";
860
+ export declare const isGroupContent: (u: unknown) => u is {
861
+ __TYPE__: "GroupContentType";
862
+ value: {
863
+ __TYPE__: "GroupItemContent";
864
+ value: [string, {
865
+ __TYPE__: "BooleanContent";
866
+ value: boolean;
867
+ } | ({
868
+ embed_url: string;
869
+ type: string;
870
+ } & {
871
+ version?: string | number | null;
872
+ title?: string | null | undefined;
873
+ author_name?: string | null | undefined;
874
+ author_url?: string | null | undefined;
875
+ provider_name?: string | null | undefined;
876
+ provider_url?: string | null | undefined;
877
+ cache_age?: string | number | null;
878
+ thumbnail_url?: string | null | undefined;
879
+ thumbnail_width?: number | null | undefined;
880
+ thumbnail_height?: number | null | undefined;
881
+ html?: string | null | undefined;
882
+ } & {
883
+ __TYPE__: "EmbedContent";
884
+ }) | {
885
+ type: "Color";
886
+ value: string;
887
+ __TYPE__: "FieldContent";
888
+ } | {
889
+ type: "Date";
890
+ value: string;
891
+ __TYPE__: "FieldContent";
892
+ } | {
893
+ type: "Number";
894
+ value: string;
895
+ __TYPE__: "FieldContent";
896
+ } | {
897
+ type: "Range";
898
+ value: string;
899
+ __TYPE__: "FieldContent";
900
+ } | {
901
+ type: "Select";
902
+ value: string;
903
+ __TYPE__: "FieldContent";
904
+ } | {
905
+ type: "Text";
906
+ value: string;
907
+ __TYPE__: "FieldContent";
908
+ } | {
909
+ type: "Timestamp";
910
+ value: string;
911
+ __TYPE__: "FieldContent";
912
+ } | ({
913
+ position: {
914
+ lat: number;
915
+ lng: number;
916
+ };
917
+ } & {
918
+ __TYPE__: "GeoPointContent";
919
+ }) | ({
491
920
  origin: {
492
921
  id: string;
493
922
  url: string;
@@ -537,16 +966,14 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
537
966
  };
538
967
  } & {
539
968
  __TYPE__: "ImageContent";
540
- }, unknown>, t.ExactC<t.TypeC<{
541
- __TYPE__: t.LiteralC<"ImageContent">;
542
- }>>]>, t.ExactC<t.TypeC<{
543
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
544
- value: t.StringC;
545
- }>>, t.ExactC<t.TypeC<{
546
- __TYPE__: t.LiteralC<"LinkContent">;
547
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
548
- __TYPE__: t.LiteralC<"ImageLink">;
549
- }>>, t.Type<{
969
+ }) | {
970
+ __TYPE__: "IntegrationFieldsContent";
971
+ value: string;
972
+ } | {
973
+ __TYPE__: "LinkContent";
974
+ value: ({
975
+ __TYPE__: "ImageLink";
976
+ } & {
550
977
  id: string;
551
978
  url: string;
552
979
  height: string;
@@ -556,48 +983,25 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
556
983
  kind: string;
557
984
  } & {
558
985
  date?: string | null | undefined;
559
- }, {
986
+ }) | ({
560
987
  id: string;
561
988
  url: string;
562
- height: string;
563
- width: string;
564
- size: string;
565
989
  name: string;
566
990
  kind: string;
567
991
  } & {
568
992
  date?: string | null | undefined;
993
+ size?: string;
569
994
  } & {
570
- __TYPE__: "ImageLink";
571
- }, unknown>]>, t.IntersectionC<[t.Type<{
572
- id: string;
573
- url: string;
574
- name: string;
575
- kind: string;
995
+ __TYPE__: "FileLink";
576
996
  } & {
577
- date?: string | null | undefined;
578
997
  size?: string;
579
- }, {
580
- readonly size: string;
581
- readonly __TYPE__: "FileLink";
582
- readonly id: string;
583
- readonly url: string;
584
- readonly name: string;
585
- readonly kind: string;
586
- readonly date?: string | null | undefined;
587
- }, unknown>, t.ExactC<t.TypeC<{
588
- __TYPE__: t.LiteralC<"FileLink">;
589
- size: t.StringC;
590
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
591
- __TYPE__: t.LiteralC<"DocumentLink">;
592
- }>>, t.Type<{
593
- id: string;
594
- }, {
998
+ }) | ({
999
+ __TYPE__: "DocumentLink";
1000
+ } & {
595
1001
  id: string;
1002
+ }) | ({
1003
+ __TYPE__: "ExternalLink";
596
1004
  } & {
597
- __TYPE__: "DocumentLink";
598
- }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
599
- __TYPE__: t.LiteralC<"ExternalLink">;
600
- }>>, t.Type<{
601
1005
  url: string;
602
1006
  } & {
603
1007
  kind?: "web";
@@ -605,17 +1009,281 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
605
1009
  preview?: {
606
1010
  title?: string;
607
1011
  } | null | undefined;
608
- }, {
609
- url: string;
1012
+ });
1013
+ } | {
1014
+ type: string;
1015
+ __TYPE__: "EmptyContent";
1016
+ } | {
1017
+ __TYPE__: "StructuredTextContent";
1018
+ value: (({
1019
+ type: "image";
1020
+ data: {
1021
+ origin: {
1022
+ id: string;
1023
+ url: string;
1024
+ width: number;
1025
+ height: number;
1026
+ };
1027
+ width: number;
1028
+ height: number;
1029
+ edit: {
1030
+ zoom: number;
1031
+ crop: {
1032
+ x: number;
1033
+ y: number;
1034
+ };
1035
+ background: string;
1036
+ };
1037
+ } & {
1038
+ url?: string;
1039
+ credits?: string | null;
1040
+ alt?: string | null;
1041
+ provider?: string | null | undefined;
1042
+ } & {
1043
+ linkTo?: ({
1044
+ __TYPE__: "ImageLink";
1045
+ } & {
1046
+ id: string;
1047
+ url: string;
1048
+ height: string;
1049
+ width: string;
1050
+ size: string;
1051
+ name: string;
1052
+ kind: string;
1053
+ } & {
1054
+ date?: string | null | undefined;
1055
+ }) | ({
1056
+ id: string;
1057
+ url: string;
1058
+ name: string;
1059
+ kind: string;
1060
+ } & {
1061
+ date?: string | null | undefined;
1062
+ size?: string;
1063
+ } & {
1064
+ __TYPE__: "FileLink";
1065
+ } & {
1066
+ size?: string;
1067
+ }) | ({
1068
+ __TYPE__: "DocumentLink";
1069
+ } & {
1070
+ id: string;
1071
+ }) | ({
1072
+ __TYPE__: "ExternalLink";
1073
+ } & {
1074
+ url: string;
1075
+ } & {
1076
+ kind?: "web";
1077
+ target?: string | null | undefined;
1078
+ preview?: {
1079
+ title?: string;
1080
+ } | null | undefined;
1081
+ }) | null | undefined;
1082
+ };
610
1083
  } & {
611
- kind?: "web";
612
- target?: string | null | undefined;
613
- preview?: {
614
- title?: string;
615
- } | null | undefined;
1084
+ label?: string | null | undefined;
1085
+ direction?: string | null | undefined;
1086
+ }) | ({
1087
+ type: "embed";
1088
+ data: {
1089
+ embed_url: string;
1090
+ type: string;
1091
+ } & {
1092
+ version?: string | number | null;
1093
+ title?: string | null | undefined;
1094
+ author_name?: string | null | undefined;
1095
+ author_url?: string | null | undefined;
1096
+ provider_name?: string | null | undefined;
1097
+ provider_url?: string | null | undefined;
1098
+ cache_age?: string | number | null;
1099
+ thumbnail_url?: string | null | undefined;
1100
+ thumbnail_width?: number | null | undefined;
1101
+ thumbnail_height?: number | null | undefined;
1102
+ html?: string | null | undefined;
1103
+ } & {
1104
+ __TYPE__: "EmbedContent";
1105
+ };
616
1106
  } & {
617
- __TYPE__: "ExternalLink";
618
- }, unknown>]>]>;
1107
+ label?: string | null | undefined;
1108
+ direction?: string | null | undefined;
1109
+ }) | ({
1110
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1111
+ content: {
1112
+ text: string;
1113
+ } & {
1114
+ spans?: ({
1115
+ data?: unknown;
1116
+ } & {
1117
+ start: number;
1118
+ end: number;
1119
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1120
+ })[];
1121
+ };
1122
+ } & {
1123
+ label?: string;
1124
+ direction?: string;
1125
+ }))[];
1126
+ } | {
1127
+ __TYPE__: "SeparatorContent";
1128
+ }][];
1129
+ }[];
1130
+ };
1131
+ export declare const GroupContent: t.ExactC<t.TypeC<{
1132
+ __TYPE__: t.LiteralC<"GroupContentType">;
1133
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1134
+ __TYPE__: t.LiteralC<"GroupItemContent">;
1135
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1136
+ type: t.StringC;
1137
+ __TYPE__: t.LiteralC<"EmptyContent">;
1138
+ }>>, t.ExactC<t.TypeC<{
1139
+ __TYPE__: t.LiteralC<"BooleanContent">;
1140
+ value: t.BooleanC;
1141
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1142
+ embed_url: t.StringC;
1143
+ type: t.StringC;
1144
+ }>, t.PartialC<{
1145
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1146
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1147
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1148
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1149
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1150
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1151
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1152
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1153
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1154
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1155
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1156
+ }>]>>, t.ExactC<t.TypeC<{
1157
+ __TYPE__: t.LiteralC<"EmbedContent">;
1158
+ }>>]>, t.ExactC<t.TypeC<{
1159
+ type: t.LiteralC<"Text">;
1160
+ value: t.Type<string, string, unknown>;
1161
+ __TYPE__: t.LiteralC<"FieldContent">;
1162
+ }>>, t.ExactC<t.TypeC<{
1163
+ type: t.LiteralC<"Timestamp">;
1164
+ value: t.Type<string, string, unknown>;
1165
+ __TYPE__: t.LiteralC<"FieldContent">;
1166
+ }>>, t.ExactC<t.TypeC<{
1167
+ type: t.LiteralC<"Select">;
1168
+ value: t.Type<string, string, unknown>;
1169
+ __TYPE__: t.LiteralC<"FieldContent">;
1170
+ }>>, t.ExactC<t.TypeC<{
1171
+ type: t.LiteralC<"Range">;
1172
+ value: t.Type<string, string, unknown>;
1173
+ __TYPE__: t.LiteralC<"FieldContent">;
1174
+ }>>, t.ExactC<t.TypeC<{
1175
+ type: t.LiteralC<"Number">;
1176
+ value: t.Type<string, string, unknown>;
1177
+ __TYPE__: t.LiteralC<"FieldContent">;
1178
+ }>>, t.ExactC<t.TypeC<{
1179
+ type: t.LiteralC<"Date">;
1180
+ value: t.Type<string, string, unknown>;
1181
+ __TYPE__: t.LiteralC<"FieldContent">;
1182
+ }>>, t.ExactC<t.TypeC<{
1183
+ type: t.LiteralC<"Color">;
1184
+ value: t.Type<string, string, unknown>;
1185
+ __TYPE__: t.LiteralC<"FieldContent">;
1186
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1187
+ position: t.ExactC<t.TypeC<{
1188
+ lat: t.NumberC;
1189
+ lng: t.NumberC;
1190
+ }>>;
1191
+ }>>, t.ExactC<t.TypeC<{
1192
+ __TYPE__: t.LiteralC<"GeoPointContent">;
1193
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1194
+ origin: t.ExactC<t.TypeC<{
1195
+ id: t.StringC;
1196
+ url: t.StringC;
1197
+ width: t.NumberC;
1198
+ height: t.NumberC;
1199
+ }>>;
1200
+ width: t.NumberC;
1201
+ height: t.NumberC;
1202
+ edit: t.TypeC<{
1203
+ zoom: t.NumberC;
1204
+ crop: t.TypeC<{
1205
+ x: t.NumberC;
1206
+ y: t.NumberC;
1207
+ }>;
1208
+ background: t.StringC;
1209
+ }>;
1210
+ }>, t.PartialC<{
1211
+ url: t.StringC;
1212
+ credits: t.Type<string | null, string | null, unknown>;
1213
+ alt: t.Type<string | null, string | null, unknown>;
1214
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1215
+ }>]>>, t.PartialC<{
1216
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
1217
+ origin: t.ExactC<t.TypeC<{
1218
+ id: t.StringC;
1219
+ url: t.StringC;
1220
+ width: t.NumberC;
1221
+ height: t.NumberC;
1222
+ }>>;
1223
+ width: t.NumberC;
1224
+ height: t.NumberC;
1225
+ edit: t.TypeC<{
1226
+ zoom: t.NumberC;
1227
+ crop: t.TypeC<{
1228
+ x: t.NumberC;
1229
+ y: t.NumberC;
1230
+ }>;
1231
+ background: t.StringC;
1232
+ }>;
1233
+ }>, t.PartialC<{
1234
+ url: t.StringC;
1235
+ credits: t.Type<string | null, string | null, unknown>;
1236
+ alt: t.Type<string | null, string | null, unknown>;
1237
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1238
+ }>]>>>;
1239
+ }>]>, t.ExactC<t.TypeC<{
1240
+ __TYPE__: t.LiteralC<"ImageContent">;
1241
+ }>>]>, t.ExactC<t.TypeC<{
1242
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
1243
+ value: t.StringC;
1244
+ }>>, t.ExactC<t.TypeC<{
1245
+ __TYPE__: t.LiteralC<"LinkContent">;
1246
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1247
+ __TYPE__: t.LiteralC<"ImageLink">;
1248
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1249
+ id: t.StringC;
1250
+ url: t.StringC;
1251
+ height: t.StringC;
1252
+ width: t.StringC;
1253
+ size: t.StringC;
1254
+ name: t.StringC;
1255
+ kind: t.StringC;
1256
+ }>, t.PartialC<{
1257
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1258
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1259
+ id: t.StringC;
1260
+ url: t.StringC;
1261
+ name: t.StringC;
1262
+ kind: t.StringC;
1263
+ }>, t.PartialC<{
1264
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1265
+ size: t.StringC;
1266
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1267
+ __TYPE__: t.LiteralC<"FileLink">;
1268
+ }>, t.PartialC<{
1269
+ size: t.StringC;
1270
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1271
+ __TYPE__: t.LiteralC<"DocumentLink">;
1272
+ }>>, t.ExactC<t.TypeC<{
1273
+ id: t.Type<string, string, unknown>;
1274
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1275
+ __TYPE__: t.LiteralC<"ExternalLink">;
1276
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1277
+ url: t.StringC;
1278
+ }>, t.PartialC<{
1279
+ kind: t.LiteralC<"web">;
1280
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1281
+ preview: t.UnionC<[t.Type<{
1282
+ title?: string;
1283
+ }, {
1284
+ title?: string;
1285
+ }, unknown>, t.NullC, t.UndefinedC]>;
1286
+ }>]>>]>]>;
619
1287
  }>>, t.ExactC<t.TypeC<{
620
1288
  __TYPE__: t.LiteralC<"StructuredTextContent">;
621
1289
  value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -643,39 +1311,37 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
643
1311
  alt: t.Type<string | null, string | null, unknown>;
644
1312
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
645
1313
  }>]>>, t.PartialC<{
646
- linkTo: t.UnionC<[t.Type<{
647
- id: string;
648
- } | ({
649
- url: string;
1314
+ linkTo: t.UnionC<[t.Type<({
1315
+ __TYPE__: "ImageLink";
650
1316
  } & {
651
- kind?: "web";
652
- target?: string | null | undefined;
653
- preview?: {
654
- title?: string;
655
- } | null | undefined;
656
- }) | ({
657
1317
  id: string;
658
1318
  url: string;
1319
+ height: string;
1320
+ width: string;
1321
+ size: string;
659
1322
  name: string;
660
1323
  kind: string;
661
1324
  } & {
662
1325
  date?: string | null | undefined;
663
- size?: string;
664
1326
  }) | ({
665
1327
  id: string;
666
1328
  url: string;
667
- height: string;
668
- width: string;
669
- size: string;
670
1329
  name: string;
671
1330
  kind: string;
672
1331
  } & {
673
1332
  date?: string | null | undefined;
674
- }), ({
675
- id: string;
1333
+ size?: string;
1334
+ } & {
1335
+ __TYPE__: "FileLink";
676
1336
  } & {
1337
+ size?: string;
1338
+ }) | ({
677
1339
  __TYPE__: "DocumentLink";
1340
+ } & {
1341
+ id: string;
678
1342
  }) | ({
1343
+ __TYPE__: "ExternalLink";
1344
+ } & {
679
1345
  url: string;
680
1346
  } & {
681
1347
  kind?: "web";
@@ -683,17 +1349,9 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
683
1349
  preview?: {
684
1350
  title?: string;
685
1351
  } | null | undefined;
1352
+ }), ({
1353
+ __TYPE__: "ImageLink";
686
1354
  } & {
687
- __TYPE__: "ExternalLink";
688
- }) | {
689
- readonly size: string;
690
- readonly __TYPE__: "FileLink";
691
- readonly id: string;
692
- readonly url: string;
693
- readonly name: string;
694
- readonly kind: string;
695
- readonly date?: string | null | undefined;
696
- } | ({
697
1355
  id: string;
698
1356
  url: string;
699
1357
  height: string;
@@ -703,8 +1361,32 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
703
1361
  kind: string;
704
1362
  } & {
705
1363
  date?: string | null | undefined;
1364
+ }) | ({
1365
+ id: string;
1366
+ url: string;
1367
+ name: string;
1368
+ kind: string;
1369
+ } & {
1370
+ date?: string | null | undefined;
1371
+ size?: string;
706
1372
  } & {
707
- __TYPE__: "ImageLink";
1373
+ __TYPE__: "FileLink";
1374
+ } & {
1375
+ size?: string;
1376
+ }) | ({
1377
+ __TYPE__: "DocumentLink";
1378
+ } & {
1379
+ id: string;
1380
+ }) | ({
1381
+ __TYPE__: "ExternalLink";
1382
+ } & {
1383
+ url: string;
1384
+ } & {
1385
+ kind?: "web";
1386
+ target?: string | null | undefined;
1387
+ preview?: {
1388
+ title?: string;
1389
+ } | null | undefined;
708
1390
  }), unknown>, t.NullC, t.UndefinedC]>;
709
1391
  }>]>;
710
1392
  }>, t.PartialC<{
@@ -712,7 +1394,24 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
712
1394
  direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
713
1395
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
714
1396
  type: t.LiteralC<"embed">;
715
- data: t.Type<import("../../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
1397
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1398
+ embed_url: t.StringC;
1399
+ type: t.StringC;
1400
+ }>, t.PartialC<{
1401
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1402
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1403
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1404
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1405
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1406
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1407
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1408
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1409
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1410
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1411
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1412
+ }>]>>, t.ExactC<t.TypeC<{
1413
+ __TYPE__: t.LiteralC<"EmbedContent">;
1414
+ }>>]>;
716
1415
  }>, t.PartialC<{
717
1416
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
718
1417
  direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
@@ -745,4 +1444,4 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
745
1444
  }>>>;
746
1445
  }>>;
747
1446
  export declare type GroupContent = t.TypeOf<typeof GroupContent>;
748
- export declare const GroupContentType = "GroupContentType";
1447
+ export {};