@prismicio/types-internal 1.5.3 → 2.0.0-alpha.1

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 (255) 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 +4 -4
  88. package/lib/customtypes/diff/Variation.d.ts +4 -4
  89. package/lib/customtypes/index.d.ts +1 -1
  90. package/lib/customtypes/index.js +2 -2
  91. package/lib/customtypes/widgets/Group.d.ts +1 -0
  92. package/lib/customtypes/widgets/Group.js +6 -5
  93. package/lib/customtypes/widgets/UID.d.ts +1 -0
  94. package/lib/customtypes/widgets/UID.js +3 -2
  95. package/lib/customtypes/widgets/Widget.d.ts +384 -362
  96. package/lib/customtypes/widgets/Widget.js +29 -8
  97. package/lib/customtypes/widgets/index.d.ts +6 -7
  98. package/lib/customtypes/widgets/index.js +6 -11
  99. package/lib/customtypes/widgets/nestable/BooleanField.d.ts +10 -3
  100. package/lib/customtypes/widgets/nestable/BooleanField.js +6 -6
  101. package/lib/customtypes/widgets/nestable/Color.d.ts +8 -3
  102. package/lib/customtypes/widgets/nestable/Color.js +6 -6
  103. package/lib/customtypes/widgets/nestable/Date.d.ts +9 -3
  104. package/lib/customtypes/widgets/nestable/Date.js +6 -6
  105. package/lib/customtypes/widgets/nestable/Embed.d.ts +9 -3
  106. package/lib/customtypes/widgets/nestable/Embed.js +6 -6
  107. package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +7 -3
  108. package/lib/customtypes/widgets/nestable/GeoPoint.js +6 -6
  109. package/lib/customtypes/widgets/nestable/Image.d.ts +25 -3
  110. package/lib/customtypes/widgets/nestable/Image.js +8 -8
  111. package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +9 -3
  112. package/lib/customtypes/widgets/nestable/IntegrationField.js +6 -6
  113. package/lib/customtypes/widgets/nestable/Link.d.ts +14 -2
  114. package/lib/customtypes/widgets/nestable/Link.js +7 -6
  115. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +3 -3
  116. package/lib/customtypes/widgets/nestable/NestableWidget.js +30 -30
  117. package/lib/customtypes/widgets/nestable/Number.d.ts +11 -3
  118. package/lib/customtypes/widgets/nestable/Number.js +6 -6
  119. package/lib/customtypes/widgets/nestable/Range.d.ts +11 -3
  120. package/lib/customtypes/widgets/nestable/Range.js +6 -6
  121. package/lib/customtypes/widgets/nestable/RichText.d.ts +1 -0
  122. package/lib/customtypes/widgets/nestable/RichText.js +3 -3
  123. package/lib/customtypes/widgets/nestable/Select.d.ts +10 -3
  124. package/lib/customtypes/widgets/nestable/Select.js +6 -6
  125. package/lib/customtypes/widgets/nestable/Separator.d.ts +7 -3
  126. package/lib/customtypes/widgets/nestable/Separator.js +6 -6
  127. package/lib/customtypes/widgets/nestable/Text.d.ts +9 -2
  128. package/lib/customtypes/widgets/nestable/Text.js +7 -6
  129. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +9 -3
  130. package/lib/customtypes/widgets/nestable/Timestamp.js +6 -6
  131. package/lib/customtypes/widgets/nestable/index.d.ts +15 -15
  132. package/lib/customtypes/widgets/nestable/index.js +15 -31
  133. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +1 -0
  134. package/lib/customtypes/widgets/slices/CompositeSlice.js +7 -6
  135. package/lib/customtypes/widgets/slices/LegacySlice.js +2 -2
  136. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +1 -0
  137. package/lib/customtypes/widgets/slices/SharedSlice.js +7 -7
  138. package/lib/customtypes/widgets/slices/SharedSliceRef.js +2 -2
  139. package/lib/customtypes/widgets/slices/Slices.d.ts +364 -362
  140. package/lib/customtypes/widgets/slices/Slices.js +8 -8
  141. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +6 -5
  142. package/lib/customtypes/widgets/slices/SlicesTypes.js +8 -4
  143. package/lib/documents/DocumentData.d.ts +3 -14
  144. package/lib/documents/DocumentData.js +5 -60
  145. package/lib/documents/widgets/nestable/ImageContent.d.ts +1 -1
  146. package/lib/documents/widgets/nestable/ImageContent.js +2 -2
  147. package/lib/utils/Objects.d.ts +1 -0
  148. package/lib/utils/Objects.js +10 -1
  149. package/package.json +1 -1
  150. package/src/common/WidgetKey.ts +13 -0
  151. package/src/common/index.ts +1 -0
  152. package/src/content/Document.ts +129 -16
  153. package/src/content/LegacyContentCtx.ts +57 -0
  154. package/src/content/fields/EmptyContent.ts +45 -0
  155. package/src/content/fields/GroupContent.ts +103 -8
  156. package/src/content/fields/UIDContent.ts +33 -3
  157. package/src/content/fields/WidgetContent.ts +76 -0
  158. package/src/content/fields/index.ts +1 -23
  159. package/src/content/fields/nestable/BooleanContent.ts +32 -3
  160. package/src/content/fields/nestable/EmbedContent.ts +79 -8
  161. package/src/content/fields/nestable/FieldContent/ColorContent.ts +48 -0
  162. package/src/content/fields/nestable/FieldContent/DateContent.ts +48 -0
  163. package/src/content/fields/nestable/FieldContent/NumberContent.ts +48 -0
  164. package/src/content/fields/nestable/FieldContent/RangeContent.ts +48 -0
  165. package/src/content/fields/nestable/FieldContent/SelectContent.ts +48 -0
  166. package/src/content/fields/nestable/FieldContent/TextContent.ts +48 -0
  167. package/src/content/fields/nestable/FieldContent/TimestampContent.ts +48 -0
  168. package/src/content/fields/nestable/FieldContent/common.ts +1 -0
  169. package/src/content/fields/nestable/FieldContent/index.ts +40 -0
  170. package/src/content/fields/nestable/GeoPointContent.ts +38 -7
  171. package/src/content/fields/nestable/ImageContent.ts +91 -11
  172. package/src/content/fields/nestable/IntegrationFieldContent.ts +42 -3
  173. package/src/content/fields/nestable/LinkContent.ts +208 -47
  174. package/src/content/fields/nestable/NestableContent.ts +180 -24
  175. package/src/content/fields/nestable/RichTextContent/Blocks.ts +205 -0
  176. package/src/content/fields/nestable/RichTextContent/index.ts +43 -0
  177. package/src/content/fields/nestable/SeparatorContent.ts +26 -3
  178. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +118 -0
  179. package/src/content/fields/slices/{RepeatableContent.ts → Slice/RepeatableContent.ts} +7 -4
  180. package/src/content/fields/slices/Slice/SharedSliceContent.ts +129 -0
  181. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +30 -0
  182. package/src/content/fields/slices/Slice/index.ts +47 -0
  183. package/src/content/fields/slices/SliceItem.ts +83 -0
  184. package/src/content/fields/slices/SlicesContent.ts +47 -19
  185. package/src/content/fields/slices/index.ts +4 -3
  186. package/src/content/index.ts +1 -0
  187. package/src/content/utils.ts +20 -0
  188. package/src/customtypes/CustomType.ts +4 -10
  189. package/src/customtypes/Section.ts +1 -1
  190. package/src/customtypes/index.ts +1 -1
  191. package/src/customtypes/widgets/Group.ts +4 -4
  192. package/src/customtypes/widgets/UID.ts +3 -2
  193. package/src/customtypes/widgets/Widget.ts +53 -7
  194. package/src/customtypes/widgets/index.ts +6 -7
  195. package/src/customtypes/widgets/nestable/BooleanField.ts +7 -8
  196. package/src/customtypes/widgets/nestable/Color.ts +6 -8
  197. package/src/customtypes/widgets/nestable/Date.ts +7 -8
  198. package/src/customtypes/widgets/nestable/Embed.ts +7 -8
  199. package/src/customtypes/widgets/nestable/GeoPoint.ts +7 -8
  200. package/src/customtypes/widgets/nestable/Image.ts +9 -10
  201. package/src/customtypes/widgets/nestable/IntegrationField.ts +6 -8
  202. package/src/customtypes/widgets/nestable/Link.ts +7 -6
  203. package/src/customtypes/widgets/nestable/NestableWidget.ts +17 -18
  204. package/src/customtypes/widgets/nestable/Number.ts +7 -8
  205. package/src/customtypes/widgets/nestable/Range.ts +7 -8
  206. package/src/customtypes/widgets/nestable/RichText.ts +3 -2
  207. package/src/customtypes/widgets/nestable/Select.ts +7 -8
  208. package/src/customtypes/widgets/nestable/Separator.ts +7 -8
  209. package/src/customtypes/widgets/nestable/Text.ts +7 -6
  210. package/src/customtypes/widgets/nestable/Timestamp.ts +7 -8
  211. package/src/customtypes/widgets/nestable/index.ts +15 -15
  212. package/src/customtypes/widgets/slices/CompositeSlice.ts +5 -4
  213. package/src/customtypes/widgets/slices/LegacySlice.ts +1 -1
  214. package/src/customtypes/widgets/slices/SharedSlice.ts +5 -4
  215. package/src/customtypes/widgets/slices/SharedSliceRef.ts +2 -2
  216. package/src/customtypes/widgets/slices/Slices.ts +7 -6
  217. package/src/customtypes/widgets/slices/SlicesTypes.ts +10 -5
  218. package/src/utils/Objects.ts +12 -0
  219. package/src/content/fields/nestable/FieldContent.ts +0 -25
  220. package/src/content/fields/nestable/RichTextContent.ts +0 -32
  221. package/src/content/fields/slices/CompositeSliceContent.ts +0 -14
  222. package/src/content/fields/slices/SharedSliceContent.ts +0 -14
  223. package/src/content/fields/slices/SimpleSliceContent.ts +0 -7
  224. package/src/customtypes/widgets/WidgetTypes.ts +0 -24
  225. package/src/documents/DocumentData.ts +0 -112
  226. package/src/documents/index.ts +0 -2
  227. package/src/documents/widgets/EmptyContent.ts +0 -8
  228. package/src/documents/widgets/GroupContent.ts +0 -91
  229. package/src/documents/widgets/SimpleWidgetContent.ts +0 -96
  230. package/src/documents/widgets/StaticWidgetContent.ts +0 -46
  231. package/src/documents/widgets/UIDContent.ts +0 -18
  232. package/src/documents/widgets/index.ts +0 -70
  233. package/src/documents/widgets/nestable/BooleanContent.ts +0 -21
  234. package/src/documents/widgets/nestable/EmbedContent.ts +0 -56
  235. package/src/documents/widgets/nestable/FieldContent.ts +0 -53
  236. package/src/documents/widgets/nestable/GeoPointContent.ts +0 -18
  237. package/src/documents/widgets/nestable/ImageContent.ts +0 -51
  238. package/src/documents/widgets/nestable/IntegrationFieldsContent.ts +0 -26
  239. package/src/documents/widgets/nestable/Link/DocumentLink.ts +0 -18
  240. package/src/documents/widgets/nestable/Link/ExternalLink.ts +0 -31
  241. package/src/documents/widgets/nestable/Link/FileLink.ts +0 -30
  242. package/src/documents/widgets/nestable/Link/ImageLink.ts +0 -31
  243. package/src/documents/widgets/nestable/Link/LinkContent.ts +0 -25
  244. package/src/documents/widgets/nestable/Link/index.ts +0 -35
  245. package/src/documents/widgets/nestable/SeparatorContent.ts +0 -13
  246. package/src/documents/widgets/nestable/StructuredTextContent/Block.ts +0 -126
  247. package/src/documents/widgets/nestable/StructuredTextContent/index.ts +0 -25
  248. package/src/documents/widgets/nestable/index.ts +0 -35
  249. package/src/documents/widgets/slices/CompositeSliceContent.ts +0 -77
  250. package/src/documents/widgets/slices/SharedSliceContent.ts +0 -94
  251. package/src/documents/widgets/slices/SimpleSliceContent.ts +0 -4
  252. package/src/documents/widgets/slices/SliceWidgetContent.ts +0 -51
  253. package/src/documents/widgets/slices/SlicesContent.ts +0 -91
  254. package/src/documents/widgets/slices/index.ts +0 -5
  255. package/src/index.ts +0 -3
@@ -0,0 +1,1709 @@
1
+ import * as t from "io-ts";
2
+ import { LegacyContentCtx, WithTypes } from "../../../LegacyContentCtx";
3
+ export declare const CompositeSliceContentType = "CompositeSliceContent";
4
+ export declare const isCompositeSliceContent: (u: unknown) => u is {
5
+ __TYPE__: "CompositeSliceContent";
6
+ nonRepeat: {
7
+ [x: string]: {
8
+ __TYPE__: "BooleanContent";
9
+ value: boolean;
10
+ } | ({
11
+ embed_url: string;
12
+ type: string;
13
+ } & {
14
+ version?: string | number | null;
15
+ title?: string | null | undefined;
16
+ author_name?: string | null | undefined;
17
+ author_url?: string | null | undefined;
18
+ provider_name?: string | null | undefined;
19
+ provider_url?: string | null | undefined;
20
+ cache_age?: string | number | null;
21
+ thumbnail_url?: string | null | undefined;
22
+ thumbnail_width?: number | null | undefined;
23
+ thumbnail_height?: number | null | undefined;
24
+ html?: string | null | undefined;
25
+ } & {
26
+ __TYPE__: "EmbedContent";
27
+ }) | {
28
+ type: "Color";
29
+ value: string;
30
+ __TYPE__: "FieldContent";
31
+ } | {
32
+ type: "Date";
33
+ value: string;
34
+ __TYPE__: "FieldContent";
35
+ } | {
36
+ type: "Number";
37
+ value: string;
38
+ __TYPE__: "FieldContent";
39
+ } | {
40
+ type: "Range";
41
+ value: string;
42
+ __TYPE__: "FieldContent";
43
+ } | {
44
+ type: "Select";
45
+ value: string;
46
+ __TYPE__: "FieldContent";
47
+ } | {
48
+ type: "Text";
49
+ value: string;
50
+ __TYPE__: "FieldContent";
51
+ } | {
52
+ type: "Timestamp";
53
+ value: string;
54
+ __TYPE__: "FieldContent";
55
+ } | ({
56
+ position: {
57
+ lat: number;
58
+ lng: number;
59
+ };
60
+ } & {
61
+ __TYPE__: "GeoPointContent";
62
+ }) | ({
63
+ origin: {
64
+ id: string;
65
+ url: string;
66
+ width: number;
67
+ height: number;
68
+ };
69
+ width: number;
70
+ height: number;
71
+ edit: {
72
+ zoom: number;
73
+ crop: {
74
+ x: number;
75
+ y: number;
76
+ };
77
+ background: string;
78
+ };
79
+ } & {
80
+ url?: string;
81
+ credits?: string | null;
82
+ alt?: string | null;
83
+ provider?: string | null | undefined;
84
+ } & {
85
+ thumbnails?: {
86
+ [x: string]: {
87
+ origin: {
88
+ id: string;
89
+ url: string;
90
+ width: number;
91
+ height: number;
92
+ };
93
+ width: number;
94
+ height: number;
95
+ edit: {
96
+ zoom: number;
97
+ crop: {
98
+ x: number;
99
+ y: number;
100
+ };
101
+ background: string;
102
+ };
103
+ } & {
104
+ url?: string;
105
+ credits?: string | null;
106
+ alt?: string | null;
107
+ provider?: string | null | undefined;
108
+ };
109
+ };
110
+ } & {
111
+ __TYPE__: "ImageContent";
112
+ }) | {
113
+ __TYPE__: "IntegrationFieldsContent";
114
+ value: string;
115
+ } | {
116
+ __TYPE__: "LinkContent";
117
+ value: ({
118
+ __TYPE__: "ImageLink";
119
+ } & {
120
+ id: string;
121
+ url: string;
122
+ height: string;
123
+ width: string;
124
+ size: string;
125
+ name: string;
126
+ kind: string;
127
+ } & {
128
+ date?: string | null | undefined;
129
+ }) | ({
130
+ id: string;
131
+ url: string;
132
+ name: string;
133
+ kind: string;
134
+ } & {
135
+ date?: string | null | undefined;
136
+ size?: string;
137
+ } & {
138
+ __TYPE__: "FileLink";
139
+ } & {
140
+ size?: string;
141
+ }) | ({
142
+ __TYPE__: "DocumentLink";
143
+ } & {
144
+ id: string;
145
+ }) | ({
146
+ __TYPE__: "ExternalLink";
147
+ } & {
148
+ url: string;
149
+ } & {
150
+ kind?: "web";
151
+ target?: string | null | undefined;
152
+ preview?: {
153
+ title?: string;
154
+ } | null | undefined;
155
+ });
156
+ } | {
157
+ type: string;
158
+ __TYPE__: "EmptyContent";
159
+ } | {
160
+ __TYPE__: "StructuredTextContent";
161
+ value: (({
162
+ type: "image";
163
+ data: {
164
+ origin: {
165
+ id: string;
166
+ url: string;
167
+ width: number;
168
+ height: number;
169
+ };
170
+ width: number;
171
+ height: number;
172
+ edit: {
173
+ zoom: number;
174
+ crop: {
175
+ x: number;
176
+ y: number;
177
+ };
178
+ background: string;
179
+ };
180
+ } & {
181
+ url?: string;
182
+ credits?: string | null;
183
+ alt?: string | null;
184
+ provider?: string | null | undefined;
185
+ } & {
186
+ linkTo?: ({
187
+ __TYPE__: "ImageLink";
188
+ } & {
189
+ id: string;
190
+ url: string;
191
+ height: string;
192
+ width: string;
193
+ size: string;
194
+ name: string;
195
+ kind: string;
196
+ } & {
197
+ date?: string | null | undefined;
198
+ }) | ({
199
+ id: string;
200
+ url: string;
201
+ name: string;
202
+ kind: string;
203
+ } & {
204
+ date?: string | null | undefined;
205
+ size?: string;
206
+ } & {
207
+ __TYPE__: "FileLink";
208
+ } & {
209
+ size?: string;
210
+ }) | ({
211
+ __TYPE__: "DocumentLink";
212
+ } & {
213
+ id: string;
214
+ }) | ({
215
+ __TYPE__: "ExternalLink";
216
+ } & {
217
+ url: string;
218
+ } & {
219
+ kind?: "web";
220
+ target?: string | null | undefined;
221
+ preview?: {
222
+ title?: string;
223
+ } | null | undefined;
224
+ }) | null | undefined;
225
+ };
226
+ } & {
227
+ label?: string | null | undefined;
228
+ direction?: string | null | undefined;
229
+ }) | ({
230
+ type: "embed";
231
+ data: {
232
+ embed_url: string;
233
+ type: string;
234
+ } & {
235
+ version?: string | number | null;
236
+ title?: string | null | undefined;
237
+ author_name?: string | null | undefined;
238
+ author_url?: string | null | undefined;
239
+ provider_name?: string | null | undefined;
240
+ provider_url?: string | null | undefined;
241
+ cache_age?: string | number | null;
242
+ thumbnail_url?: string | null | undefined;
243
+ thumbnail_width?: number | null | undefined;
244
+ thumbnail_height?: number | null | undefined;
245
+ html?: string | null | undefined;
246
+ } & {
247
+ __TYPE__: "EmbedContent";
248
+ };
249
+ } & {
250
+ label?: string | null | undefined;
251
+ direction?: string | null | undefined;
252
+ }) | ({
253
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
254
+ content: {
255
+ text: string;
256
+ } & {
257
+ spans?: ({
258
+ data?: unknown;
259
+ } & {
260
+ start: number;
261
+ end: number;
262
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
263
+ })[];
264
+ };
265
+ } & {
266
+ label?: string;
267
+ direction?: string;
268
+ }))[];
269
+ } | {
270
+ __TYPE__: "SeparatorContent";
271
+ };
272
+ };
273
+ repeat: {
274
+ __TYPE__: "GroupItemContent";
275
+ value: [string, {
276
+ __TYPE__: "BooleanContent";
277
+ value: boolean;
278
+ } | ({
279
+ embed_url: string;
280
+ type: string;
281
+ } & {
282
+ version?: string | number | null;
283
+ title?: string | null | undefined;
284
+ author_name?: string | null | undefined;
285
+ author_url?: string | null | undefined;
286
+ provider_name?: string | null | undefined;
287
+ provider_url?: string | null | undefined;
288
+ cache_age?: string | number | null;
289
+ thumbnail_url?: string | null | undefined;
290
+ thumbnail_width?: number | null | undefined;
291
+ thumbnail_height?: number | null | undefined;
292
+ html?: string | null | undefined;
293
+ } & {
294
+ __TYPE__: "EmbedContent";
295
+ }) | {
296
+ type: "Color";
297
+ value: string;
298
+ __TYPE__: "FieldContent";
299
+ } | {
300
+ type: "Date";
301
+ value: string;
302
+ __TYPE__: "FieldContent";
303
+ } | {
304
+ type: "Number";
305
+ value: string;
306
+ __TYPE__: "FieldContent";
307
+ } | {
308
+ type: "Range";
309
+ value: string;
310
+ __TYPE__: "FieldContent";
311
+ } | {
312
+ type: "Select";
313
+ value: string;
314
+ __TYPE__: "FieldContent";
315
+ } | {
316
+ type: "Text";
317
+ value: string;
318
+ __TYPE__: "FieldContent";
319
+ } | {
320
+ type: "Timestamp";
321
+ value: string;
322
+ __TYPE__: "FieldContent";
323
+ } | ({
324
+ position: {
325
+ lat: number;
326
+ lng: number;
327
+ };
328
+ } & {
329
+ __TYPE__: "GeoPointContent";
330
+ }) | ({
331
+ origin: {
332
+ id: string;
333
+ url: string;
334
+ width: number;
335
+ height: number;
336
+ };
337
+ width: number;
338
+ height: number;
339
+ edit: {
340
+ zoom: number;
341
+ crop: {
342
+ x: number;
343
+ y: number;
344
+ };
345
+ background: string;
346
+ };
347
+ } & {
348
+ url?: string;
349
+ credits?: string | null;
350
+ alt?: string | null;
351
+ provider?: string | null | undefined;
352
+ } & {
353
+ thumbnails?: {
354
+ [x: string]: {
355
+ origin: {
356
+ id: string;
357
+ url: string;
358
+ width: number;
359
+ height: number;
360
+ };
361
+ width: number;
362
+ height: number;
363
+ edit: {
364
+ zoom: number;
365
+ crop: {
366
+ x: number;
367
+ y: number;
368
+ };
369
+ background: string;
370
+ };
371
+ } & {
372
+ url?: string;
373
+ credits?: string | null;
374
+ alt?: string | null;
375
+ provider?: string | null | undefined;
376
+ };
377
+ };
378
+ } & {
379
+ __TYPE__: "ImageContent";
380
+ }) | {
381
+ __TYPE__: "IntegrationFieldsContent";
382
+ value: string;
383
+ } | {
384
+ __TYPE__: "LinkContent";
385
+ value: ({
386
+ __TYPE__: "ImageLink";
387
+ } & {
388
+ id: string;
389
+ url: string;
390
+ height: string;
391
+ width: string;
392
+ size: string;
393
+ name: string;
394
+ kind: string;
395
+ } & {
396
+ date?: string | null | undefined;
397
+ }) | ({
398
+ id: string;
399
+ url: string;
400
+ name: string;
401
+ kind: string;
402
+ } & {
403
+ date?: string | null | undefined;
404
+ size?: string;
405
+ } & {
406
+ __TYPE__: "FileLink";
407
+ } & {
408
+ size?: string;
409
+ }) | ({
410
+ __TYPE__: "DocumentLink";
411
+ } & {
412
+ id: string;
413
+ }) | ({
414
+ __TYPE__: "ExternalLink";
415
+ } & {
416
+ url: string;
417
+ } & {
418
+ kind?: "web";
419
+ target?: string | null | undefined;
420
+ preview?: {
421
+ title?: string;
422
+ } | null | undefined;
423
+ });
424
+ } | {
425
+ type: string;
426
+ __TYPE__: "EmptyContent";
427
+ } | {
428
+ __TYPE__: "StructuredTextContent";
429
+ value: (({
430
+ type: "image";
431
+ data: {
432
+ origin: {
433
+ id: string;
434
+ url: string;
435
+ width: number;
436
+ height: number;
437
+ };
438
+ width: number;
439
+ height: number;
440
+ edit: {
441
+ zoom: number;
442
+ crop: {
443
+ x: number;
444
+ y: number;
445
+ };
446
+ background: string;
447
+ };
448
+ } & {
449
+ url?: string;
450
+ credits?: string | null;
451
+ alt?: string | null;
452
+ provider?: string | null | undefined;
453
+ } & {
454
+ linkTo?: ({
455
+ __TYPE__: "ImageLink";
456
+ } & {
457
+ id: string;
458
+ url: string;
459
+ height: string;
460
+ width: string;
461
+ size: string;
462
+ name: string;
463
+ kind: string;
464
+ } & {
465
+ date?: string | null | undefined;
466
+ }) | ({
467
+ id: string;
468
+ url: string;
469
+ name: string;
470
+ kind: string;
471
+ } & {
472
+ date?: string | null | undefined;
473
+ size?: string;
474
+ } & {
475
+ __TYPE__: "FileLink";
476
+ } & {
477
+ size?: string;
478
+ }) | ({
479
+ __TYPE__: "DocumentLink";
480
+ } & {
481
+ id: string;
482
+ }) | ({
483
+ __TYPE__: "ExternalLink";
484
+ } & {
485
+ url: string;
486
+ } & {
487
+ kind?: "web";
488
+ target?: string | null | undefined;
489
+ preview?: {
490
+ title?: string;
491
+ } | null | undefined;
492
+ }) | null | undefined;
493
+ };
494
+ } & {
495
+ label?: string | null | undefined;
496
+ direction?: string | null | undefined;
497
+ }) | ({
498
+ type: "embed";
499
+ data: {
500
+ embed_url: string;
501
+ type: string;
502
+ } & {
503
+ version?: string | number | null;
504
+ title?: string | null | undefined;
505
+ author_name?: string | null | undefined;
506
+ author_url?: string | null | undefined;
507
+ provider_name?: string | null | undefined;
508
+ provider_url?: string | null | undefined;
509
+ cache_age?: string | number | null;
510
+ thumbnail_url?: string | null | undefined;
511
+ thumbnail_width?: number | null | undefined;
512
+ thumbnail_height?: number | null | undefined;
513
+ html?: string | null | undefined;
514
+ } & {
515
+ __TYPE__: "EmbedContent";
516
+ };
517
+ } & {
518
+ label?: string | null | undefined;
519
+ direction?: string | null | undefined;
520
+ }) | ({
521
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
522
+ content: {
523
+ text: string;
524
+ } & {
525
+ spans?: ({
526
+ data?: unknown;
527
+ } & {
528
+ start: number;
529
+ end: number;
530
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
531
+ })[];
532
+ };
533
+ } & {
534
+ label?: string;
535
+ direction?: string;
536
+ }))[];
537
+ } | {
538
+ __TYPE__: "SeparatorContent";
539
+ }][];
540
+ }[];
541
+ };
542
+ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
543
+ __TYPE__: "CompositeSliceContent";
544
+ nonRepeat: {
545
+ [x: string]: {
546
+ __TYPE__: "BooleanContent";
547
+ value: boolean;
548
+ } | ({
549
+ embed_url: string;
550
+ type: string;
551
+ } & {
552
+ version?: string | number | null;
553
+ title?: string | null | undefined;
554
+ author_name?: string | null | undefined;
555
+ author_url?: string | null | undefined;
556
+ provider_name?: string | null | undefined;
557
+ provider_url?: string | null | undefined;
558
+ cache_age?: string | number | null;
559
+ thumbnail_url?: string | null | undefined;
560
+ thumbnail_width?: number | null | undefined;
561
+ thumbnail_height?: number | null | undefined;
562
+ html?: string | null | undefined;
563
+ } & {
564
+ __TYPE__: "EmbedContent";
565
+ }) | {
566
+ type: "Color";
567
+ value: string;
568
+ __TYPE__: "FieldContent";
569
+ } | {
570
+ type: "Date";
571
+ value: string;
572
+ __TYPE__: "FieldContent";
573
+ } | {
574
+ type: "Number";
575
+ value: string;
576
+ __TYPE__: "FieldContent";
577
+ } | {
578
+ type: "Range";
579
+ value: string;
580
+ __TYPE__: "FieldContent";
581
+ } | {
582
+ type: "Select";
583
+ value: string;
584
+ __TYPE__: "FieldContent";
585
+ } | {
586
+ type: "Text";
587
+ value: string;
588
+ __TYPE__: "FieldContent";
589
+ } | {
590
+ type: "Timestamp";
591
+ value: string;
592
+ __TYPE__: "FieldContent";
593
+ } | ({
594
+ position: {
595
+ lat: number;
596
+ lng: number;
597
+ };
598
+ } & {
599
+ __TYPE__: "GeoPointContent";
600
+ }) | ({
601
+ origin: {
602
+ id: string;
603
+ url: string;
604
+ width: number;
605
+ height: number;
606
+ };
607
+ width: number;
608
+ height: number;
609
+ edit: {
610
+ zoom: number;
611
+ crop: {
612
+ x: number;
613
+ y: number;
614
+ };
615
+ background: string;
616
+ };
617
+ } & {
618
+ url?: string;
619
+ credits?: string | null;
620
+ alt?: string | null;
621
+ provider?: string | null | undefined;
622
+ } & {
623
+ thumbnails?: {
624
+ [x: string]: {
625
+ origin: {
626
+ id: string;
627
+ url: string;
628
+ width: number;
629
+ height: number;
630
+ };
631
+ width: number;
632
+ height: number;
633
+ edit: {
634
+ zoom: number;
635
+ crop: {
636
+ x: number;
637
+ y: number;
638
+ };
639
+ background: string;
640
+ };
641
+ } & {
642
+ url?: string;
643
+ credits?: string | null;
644
+ alt?: string | null;
645
+ provider?: string | null | undefined;
646
+ };
647
+ };
648
+ } & {
649
+ __TYPE__: "ImageContent";
650
+ }) | {
651
+ __TYPE__: "IntegrationFieldsContent";
652
+ value: string;
653
+ } | {
654
+ __TYPE__: "LinkContent";
655
+ value: ({
656
+ __TYPE__: "ImageLink";
657
+ } & {
658
+ id: string;
659
+ url: string;
660
+ height: string;
661
+ width: string;
662
+ size: string;
663
+ name: string;
664
+ kind: string;
665
+ } & {
666
+ date?: string | null | undefined;
667
+ }) | ({
668
+ id: string;
669
+ url: string;
670
+ name: string;
671
+ kind: string;
672
+ } & {
673
+ date?: string | null | undefined;
674
+ size?: string;
675
+ } & {
676
+ __TYPE__: "FileLink";
677
+ } & {
678
+ size?: string;
679
+ }) | ({
680
+ __TYPE__: "DocumentLink";
681
+ } & {
682
+ id: string;
683
+ }) | ({
684
+ __TYPE__: "ExternalLink";
685
+ } & {
686
+ url: string;
687
+ } & {
688
+ kind?: "web";
689
+ target?: string | null | undefined;
690
+ preview?: {
691
+ title?: string;
692
+ } | null | undefined;
693
+ });
694
+ } | {
695
+ type: string;
696
+ __TYPE__: "EmptyContent";
697
+ } | {
698
+ __TYPE__: "StructuredTextContent";
699
+ value: (({
700
+ type: "image";
701
+ data: {
702
+ origin: {
703
+ id: string;
704
+ url: string;
705
+ width: number;
706
+ height: number;
707
+ };
708
+ width: number;
709
+ height: number;
710
+ edit: {
711
+ zoom: number;
712
+ crop: {
713
+ x: number;
714
+ y: number;
715
+ };
716
+ background: string;
717
+ };
718
+ } & {
719
+ url?: string;
720
+ credits?: string | null;
721
+ alt?: string | null;
722
+ provider?: string | null | undefined;
723
+ } & {
724
+ linkTo?: ({
725
+ __TYPE__: "ImageLink";
726
+ } & {
727
+ id: string;
728
+ url: string;
729
+ height: string;
730
+ width: string;
731
+ size: string;
732
+ name: string;
733
+ kind: string;
734
+ } & {
735
+ date?: string | null | undefined;
736
+ }) | ({
737
+ id: string;
738
+ url: string;
739
+ name: string;
740
+ kind: string;
741
+ } & {
742
+ date?: string | null | undefined;
743
+ size?: string;
744
+ } & {
745
+ __TYPE__: "FileLink";
746
+ } & {
747
+ size?: string;
748
+ }) | ({
749
+ __TYPE__: "DocumentLink";
750
+ } & {
751
+ id: string;
752
+ }) | ({
753
+ __TYPE__: "ExternalLink";
754
+ } & {
755
+ url: string;
756
+ } & {
757
+ kind?: "web";
758
+ target?: string | null | undefined;
759
+ preview?: {
760
+ title?: string;
761
+ } | null | undefined;
762
+ }) | null | undefined;
763
+ };
764
+ } & {
765
+ label?: string | null | undefined;
766
+ direction?: string | null | undefined;
767
+ }) | ({
768
+ type: "embed";
769
+ data: {
770
+ embed_url: string;
771
+ type: string;
772
+ } & {
773
+ version?: string | number | null;
774
+ title?: string | null | undefined;
775
+ author_name?: string | null | undefined;
776
+ author_url?: string | null | undefined;
777
+ provider_name?: string | null | undefined;
778
+ provider_url?: string | null | undefined;
779
+ cache_age?: string | number | null;
780
+ thumbnail_url?: string | null | undefined;
781
+ thumbnail_width?: number | null | undefined;
782
+ thumbnail_height?: number | null | undefined;
783
+ html?: string | null | undefined;
784
+ } & {
785
+ __TYPE__: "EmbedContent";
786
+ };
787
+ } & {
788
+ label?: string | null | undefined;
789
+ direction?: string | null | undefined;
790
+ }) | ({
791
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
792
+ content: {
793
+ text: string;
794
+ } & {
795
+ spans?: ({
796
+ data?: unknown;
797
+ } & {
798
+ start: number;
799
+ end: number;
800
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
801
+ })[];
802
+ };
803
+ } & {
804
+ label?: string;
805
+ direction?: string;
806
+ }))[];
807
+ } | {
808
+ __TYPE__: "SeparatorContent";
809
+ };
810
+ };
811
+ repeat: {
812
+ __TYPE__: "GroupItemContent";
813
+ value: [string, {
814
+ __TYPE__: "BooleanContent";
815
+ value: boolean;
816
+ } | ({
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
+ type: "Color";
835
+ value: string;
836
+ __TYPE__: "FieldContent";
837
+ } | {
838
+ type: "Date";
839
+ value: string;
840
+ __TYPE__: "FieldContent";
841
+ } | {
842
+ type: "Number";
843
+ value: string;
844
+ __TYPE__: "FieldContent";
845
+ } | {
846
+ type: "Range";
847
+ value: string;
848
+ __TYPE__: "FieldContent";
849
+ } | {
850
+ type: "Select";
851
+ value: string;
852
+ __TYPE__: "FieldContent";
853
+ } | {
854
+ type: "Text";
855
+ value: string;
856
+ __TYPE__: "FieldContent";
857
+ } | {
858
+ type: "Timestamp";
859
+ value: string;
860
+ __TYPE__: "FieldContent";
861
+ } | ({
862
+ position: {
863
+ lat: number;
864
+ lng: number;
865
+ };
866
+ } & {
867
+ __TYPE__: "GeoPointContent";
868
+ }) | ({
869
+ origin: {
870
+ id: string;
871
+ url: string;
872
+ width: number;
873
+ height: number;
874
+ };
875
+ width: number;
876
+ height: number;
877
+ edit: {
878
+ zoom: number;
879
+ crop: {
880
+ x: number;
881
+ y: number;
882
+ };
883
+ background: string;
884
+ };
885
+ } & {
886
+ url?: string;
887
+ credits?: string | null;
888
+ alt?: string | null;
889
+ provider?: string | null | undefined;
890
+ } & {
891
+ thumbnails?: {
892
+ [x: string]: {
893
+ origin: {
894
+ id: string;
895
+ url: string;
896
+ width: number;
897
+ height: number;
898
+ };
899
+ width: number;
900
+ height: number;
901
+ edit: {
902
+ zoom: number;
903
+ crop: {
904
+ x: number;
905
+ y: number;
906
+ };
907
+ background: string;
908
+ };
909
+ } & {
910
+ url?: string;
911
+ credits?: string | null;
912
+ alt?: string | null;
913
+ provider?: string | null | undefined;
914
+ };
915
+ };
916
+ } & {
917
+ __TYPE__: "ImageContent";
918
+ }) | {
919
+ __TYPE__: "IntegrationFieldsContent";
920
+ value: string;
921
+ } | {
922
+ __TYPE__: "LinkContent";
923
+ value: ({
924
+ __TYPE__: "ImageLink";
925
+ } & {
926
+ id: string;
927
+ url: string;
928
+ height: string;
929
+ width: string;
930
+ size: string;
931
+ name: string;
932
+ kind: string;
933
+ } & {
934
+ date?: string | null | undefined;
935
+ }) | ({
936
+ id: string;
937
+ url: string;
938
+ name: string;
939
+ kind: string;
940
+ } & {
941
+ date?: string | null | undefined;
942
+ size?: string;
943
+ } & {
944
+ __TYPE__: "FileLink";
945
+ } & {
946
+ size?: string;
947
+ }) | ({
948
+ __TYPE__: "DocumentLink";
949
+ } & {
950
+ id: string;
951
+ }) | ({
952
+ __TYPE__: "ExternalLink";
953
+ } & {
954
+ url: string;
955
+ } & {
956
+ kind?: "web";
957
+ target?: string | null | undefined;
958
+ preview?: {
959
+ title?: string;
960
+ } | null | undefined;
961
+ });
962
+ } | {
963
+ type: string;
964
+ __TYPE__: "EmptyContent";
965
+ } | {
966
+ __TYPE__: "StructuredTextContent";
967
+ value: (({
968
+ type: "image";
969
+ data: {
970
+ origin: {
971
+ id: string;
972
+ url: string;
973
+ width: number;
974
+ height: number;
975
+ };
976
+ width: number;
977
+ height: number;
978
+ edit: {
979
+ zoom: number;
980
+ crop: {
981
+ x: number;
982
+ y: number;
983
+ };
984
+ background: string;
985
+ };
986
+ } & {
987
+ url?: string;
988
+ credits?: string | null;
989
+ alt?: string | null;
990
+ provider?: string | null | undefined;
991
+ } & {
992
+ linkTo?: ({
993
+ __TYPE__: "ImageLink";
994
+ } & {
995
+ id: string;
996
+ url: string;
997
+ height: string;
998
+ width: string;
999
+ size: string;
1000
+ name: string;
1001
+ kind: string;
1002
+ } & {
1003
+ date?: string | null | undefined;
1004
+ }) | ({
1005
+ id: string;
1006
+ url: string;
1007
+ name: string;
1008
+ kind: string;
1009
+ } & {
1010
+ date?: string | null | undefined;
1011
+ size?: string;
1012
+ } & {
1013
+ __TYPE__: "FileLink";
1014
+ } & {
1015
+ size?: string;
1016
+ }) | ({
1017
+ __TYPE__: "DocumentLink";
1018
+ } & {
1019
+ id: string;
1020
+ }) | ({
1021
+ __TYPE__: "ExternalLink";
1022
+ } & {
1023
+ url: string;
1024
+ } & {
1025
+ kind?: "web";
1026
+ target?: string | null | undefined;
1027
+ preview?: {
1028
+ title?: string;
1029
+ } | null | undefined;
1030
+ }) | null | undefined;
1031
+ };
1032
+ } & {
1033
+ label?: string | null | undefined;
1034
+ direction?: string | null | undefined;
1035
+ }) | ({
1036
+ type: "embed";
1037
+ data: {
1038
+ embed_url: string;
1039
+ type: string;
1040
+ } & {
1041
+ version?: string | number | null;
1042
+ title?: string | null | undefined;
1043
+ author_name?: string | null | undefined;
1044
+ author_url?: string | null | undefined;
1045
+ provider_name?: string | null | undefined;
1046
+ provider_url?: string | null | undefined;
1047
+ cache_age?: string | number | null;
1048
+ thumbnail_url?: string | null | undefined;
1049
+ thumbnail_width?: number | null | undefined;
1050
+ thumbnail_height?: number | null | undefined;
1051
+ html?: string | null | undefined;
1052
+ } & {
1053
+ __TYPE__: "EmbedContent";
1054
+ };
1055
+ } & {
1056
+ label?: string | null | undefined;
1057
+ direction?: string | null | undefined;
1058
+ }) | ({
1059
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1060
+ content: {
1061
+ text: string;
1062
+ } & {
1063
+ spans?: ({
1064
+ data?: unknown;
1065
+ } & {
1066
+ start: number;
1067
+ end: number;
1068
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1069
+ })[];
1070
+ };
1071
+ } & {
1072
+ label?: string;
1073
+ direction?: string;
1074
+ }))[];
1075
+ } | {
1076
+ __TYPE__: "SeparatorContent";
1077
+ }][];
1078
+ }[];
1079
+ }, WithTypes<{
1080
+ repeat?: unknown[];
1081
+ "non-repeat"?: {
1082
+ [key: string]: unknown;
1083
+ };
1084
+ }>, unknown>;
1085
+ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
1086
+ __TYPE__: t.LiteralC<"CompositeSliceContent">;
1087
+ nonRepeat: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1088
+ type: t.StringC;
1089
+ __TYPE__: t.LiteralC<"EmptyContent">;
1090
+ }>>, t.ExactC<t.TypeC<{
1091
+ __TYPE__: t.LiteralC<"BooleanContent">;
1092
+ value: t.BooleanC;
1093
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1094
+ embed_url: t.StringC;
1095
+ type: t.StringC;
1096
+ }>, t.PartialC<{
1097
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1098
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1099
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1100
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1101
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1102
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1103
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1104
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1105
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1106
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1107
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1108
+ }>]>>, t.ExactC<t.TypeC<{
1109
+ __TYPE__: t.LiteralC<"EmbedContent">;
1110
+ }>>]>, t.ExactC<t.TypeC<{
1111
+ type: t.LiteralC<"Text">;
1112
+ value: t.Type<string, string, unknown>;
1113
+ __TYPE__: t.LiteralC<"FieldContent">;
1114
+ }>>, t.ExactC<t.TypeC<{
1115
+ type: t.LiteralC<"Timestamp">;
1116
+ value: t.Type<string, string, unknown>;
1117
+ __TYPE__: t.LiteralC<"FieldContent">;
1118
+ }>>, t.ExactC<t.TypeC<{
1119
+ type: t.LiteralC<"Select">;
1120
+ value: t.Type<string, string, unknown>;
1121
+ __TYPE__: t.LiteralC<"FieldContent">;
1122
+ }>>, t.ExactC<t.TypeC<{
1123
+ type: t.LiteralC<"Range">;
1124
+ value: t.Type<string, string, unknown>;
1125
+ __TYPE__: t.LiteralC<"FieldContent">;
1126
+ }>>, t.ExactC<t.TypeC<{
1127
+ type: t.LiteralC<"Number">;
1128
+ value: t.Type<string, string, unknown>;
1129
+ __TYPE__: t.LiteralC<"FieldContent">;
1130
+ }>>, t.ExactC<t.TypeC<{
1131
+ type: t.LiteralC<"Date">;
1132
+ value: t.Type<string, string, unknown>;
1133
+ __TYPE__: t.LiteralC<"FieldContent">;
1134
+ }>>, t.ExactC<t.TypeC<{
1135
+ type: t.LiteralC<"Color">;
1136
+ value: t.Type<string, string, unknown>;
1137
+ __TYPE__: t.LiteralC<"FieldContent">;
1138
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1139
+ position: t.ExactC<t.TypeC<{
1140
+ lat: t.NumberC;
1141
+ lng: t.NumberC;
1142
+ }>>;
1143
+ }>>, t.ExactC<t.TypeC<{
1144
+ __TYPE__: t.LiteralC<"GeoPointContent">;
1145
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1146
+ origin: t.ExactC<t.TypeC<{
1147
+ id: t.StringC;
1148
+ url: t.StringC;
1149
+ width: t.NumberC;
1150
+ height: t.NumberC;
1151
+ }>>;
1152
+ width: t.NumberC;
1153
+ height: t.NumberC;
1154
+ edit: t.TypeC<{
1155
+ zoom: t.NumberC;
1156
+ crop: t.TypeC<{
1157
+ x: t.NumberC;
1158
+ y: t.NumberC;
1159
+ }>;
1160
+ background: t.StringC;
1161
+ }>;
1162
+ }>, t.PartialC<{
1163
+ url: t.StringC;
1164
+ credits: t.Type<string | null, string | null, unknown>;
1165
+ alt: t.Type<string | null, string | null, unknown>;
1166
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1167
+ }>]>>, t.PartialC<{
1168
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
1169
+ origin: t.ExactC<t.TypeC<{
1170
+ id: t.StringC;
1171
+ url: t.StringC;
1172
+ width: t.NumberC;
1173
+ height: t.NumberC;
1174
+ }>>;
1175
+ width: t.NumberC;
1176
+ height: t.NumberC;
1177
+ edit: t.TypeC<{
1178
+ zoom: t.NumberC;
1179
+ crop: t.TypeC<{
1180
+ x: t.NumberC;
1181
+ y: t.NumberC;
1182
+ }>;
1183
+ background: t.StringC;
1184
+ }>;
1185
+ }>, t.PartialC<{
1186
+ url: t.StringC;
1187
+ credits: t.Type<string | null, string | null, unknown>;
1188
+ alt: t.Type<string | null, string | null, unknown>;
1189
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1190
+ }>]>>>;
1191
+ }>]>, t.ExactC<t.TypeC<{
1192
+ __TYPE__: t.LiteralC<"ImageContent">;
1193
+ }>>]>, t.ExactC<t.TypeC<{
1194
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
1195
+ value: t.StringC;
1196
+ }>>, t.ExactC<t.TypeC<{
1197
+ __TYPE__: t.LiteralC<"LinkContent">;
1198
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1199
+ __TYPE__: t.LiteralC<"ImageLink">;
1200
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1201
+ id: t.StringC;
1202
+ url: t.StringC;
1203
+ height: t.StringC;
1204
+ width: t.StringC;
1205
+ size: t.StringC;
1206
+ name: t.StringC;
1207
+ kind: t.StringC;
1208
+ }>, t.PartialC<{
1209
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1210
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1211
+ id: t.StringC;
1212
+ url: t.StringC;
1213
+ name: t.StringC;
1214
+ kind: t.StringC;
1215
+ }>, t.PartialC<{
1216
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1217
+ size: t.StringC;
1218
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1219
+ __TYPE__: t.LiteralC<"FileLink">;
1220
+ }>, t.PartialC<{
1221
+ size: t.StringC;
1222
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1223
+ __TYPE__: t.LiteralC<"DocumentLink">;
1224
+ }>>, t.ExactC<t.TypeC<{
1225
+ id: t.Type<string, string, unknown>;
1226
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1227
+ __TYPE__: t.LiteralC<"ExternalLink">;
1228
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1229
+ url: t.StringC;
1230
+ }>, t.PartialC<{
1231
+ kind: t.LiteralC<"web">;
1232
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1233
+ preview: t.UnionC<[t.Type<{
1234
+ title?: string;
1235
+ }, {
1236
+ title?: string;
1237
+ }, unknown>, t.NullC, t.UndefinedC]>;
1238
+ }>]>>]>]>;
1239
+ }>>, t.ExactC<t.TypeC<{
1240
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
1241
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1242
+ type: t.LiteralC<"image">;
1243
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1244
+ origin: t.ExactC<t.TypeC<{
1245
+ id: t.StringC;
1246
+ url: t.StringC;
1247
+ width: t.NumberC;
1248
+ height: t.NumberC;
1249
+ }>>;
1250
+ width: t.NumberC;
1251
+ height: t.NumberC;
1252
+ edit: t.TypeC<{
1253
+ zoom: t.NumberC;
1254
+ crop: t.TypeC<{
1255
+ x: t.NumberC;
1256
+ y: t.NumberC;
1257
+ }>;
1258
+ background: t.StringC;
1259
+ }>;
1260
+ }>, t.PartialC<{
1261
+ url: t.StringC;
1262
+ credits: t.Type<string | null, string | null, unknown>;
1263
+ alt: t.Type<string | null, string | null, unknown>;
1264
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1265
+ }>]>>, t.PartialC<{
1266
+ linkTo: t.UnionC<[t.Type<({
1267
+ __TYPE__: "ImageLink";
1268
+ } & {
1269
+ id: string;
1270
+ url: string;
1271
+ height: string;
1272
+ width: string;
1273
+ size: string;
1274
+ name: string;
1275
+ kind: string;
1276
+ } & {
1277
+ date?: string | null | undefined;
1278
+ }) | ({
1279
+ id: string;
1280
+ url: string;
1281
+ name: string;
1282
+ kind: string;
1283
+ } & {
1284
+ date?: string | null | undefined;
1285
+ size?: string;
1286
+ } & {
1287
+ __TYPE__: "FileLink";
1288
+ } & {
1289
+ size?: string;
1290
+ }) | ({
1291
+ __TYPE__: "DocumentLink";
1292
+ } & {
1293
+ id: string;
1294
+ }) | ({
1295
+ __TYPE__: "ExternalLink";
1296
+ } & {
1297
+ url: string;
1298
+ } & {
1299
+ kind?: "web";
1300
+ target?: string | null | undefined;
1301
+ preview?: {
1302
+ title?: string;
1303
+ } | null | undefined;
1304
+ }), ({
1305
+ __TYPE__: "ImageLink";
1306
+ } & {
1307
+ id: string;
1308
+ url: string;
1309
+ height: string;
1310
+ width: string;
1311
+ size: string;
1312
+ name: string;
1313
+ kind: string;
1314
+ } & {
1315
+ date?: string | null | undefined;
1316
+ }) | ({
1317
+ id: string;
1318
+ url: string;
1319
+ name: string;
1320
+ kind: string;
1321
+ } & {
1322
+ date?: string | null | undefined;
1323
+ size?: string;
1324
+ } & {
1325
+ __TYPE__: "FileLink";
1326
+ } & {
1327
+ size?: string;
1328
+ }) | ({
1329
+ __TYPE__: "DocumentLink";
1330
+ } & {
1331
+ id: string;
1332
+ }) | ({
1333
+ __TYPE__: "ExternalLink";
1334
+ } & {
1335
+ url: string;
1336
+ } & {
1337
+ kind?: "web";
1338
+ target?: string | null | undefined;
1339
+ preview?: {
1340
+ title?: string;
1341
+ } | null | undefined;
1342
+ }), unknown>, t.NullC, t.UndefinedC]>;
1343
+ }>]>;
1344
+ }>, t.PartialC<{
1345
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1346
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1347
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1348
+ type: t.LiteralC<"embed">;
1349
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1350
+ embed_url: t.StringC;
1351
+ type: t.StringC;
1352
+ }>, t.PartialC<{
1353
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1354
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1355
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1356
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1357
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1358
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1359
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1360
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1361
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1362
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1363
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1364
+ }>]>>, t.ExactC<t.TypeC<{
1365
+ __TYPE__: t.LiteralC<"EmbedContent">;
1366
+ }>>]>;
1367
+ }>, t.PartialC<{
1368
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1369
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1370
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1371
+ 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>;
1372
+ content: t.IntersectionC<[t.TypeC<{
1373
+ text: t.StringC;
1374
+ }>, t.PartialC<{
1375
+ spans: t.Type<({
1376
+ data?: unknown;
1377
+ } & {
1378
+ start: number;
1379
+ end: number;
1380
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1381
+ })[], ({
1382
+ data?: unknown;
1383
+ } & {
1384
+ start: number;
1385
+ end: number;
1386
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1387
+ })[], unknown>;
1388
+ }>]>;
1389
+ }>, t.PartialC<{
1390
+ label: t.StringC;
1391
+ direction: t.StringC;
1392
+ }>]>>]>>;
1393
+ }>>, t.ExactC<t.TypeC<{
1394
+ __TYPE__: t.LiteralC<"SeparatorContent">;
1395
+ }>>]>>;
1396
+ repeat: t.ArrayC<t.ExactC<t.TypeC<{
1397
+ __TYPE__: t.LiteralC<"GroupItemContent">;
1398
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1399
+ type: t.StringC;
1400
+ __TYPE__: t.LiteralC<"EmptyContent">;
1401
+ }>>, t.ExactC<t.TypeC<{
1402
+ __TYPE__: t.LiteralC<"BooleanContent">;
1403
+ value: t.BooleanC;
1404
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1405
+ embed_url: t.StringC;
1406
+ type: t.StringC;
1407
+ }>, t.PartialC<{
1408
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1409
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1410
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1411
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1412
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1413
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1414
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1415
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1416
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1417
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1418
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1419
+ }>]>>, t.ExactC<t.TypeC<{
1420
+ __TYPE__: t.LiteralC<"EmbedContent">;
1421
+ }>>]>, t.ExactC<t.TypeC<{
1422
+ type: t.LiteralC<"Text">;
1423
+ value: t.Type<string, string, unknown>;
1424
+ __TYPE__: t.LiteralC<"FieldContent">;
1425
+ }>>, t.ExactC<t.TypeC<{
1426
+ type: t.LiteralC<"Timestamp">;
1427
+ value: t.Type<string, string, unknown>;
1428
+ __TYPE__: t.LiteralC<"FieldContent">;
1429
+ }>>, t.ExactC<t.TypeC<{
1430
+ type: t.LiteralC<"Select">;
1431
+ value: t.Type<string, string, unknown>;
1432
+ __TYPE__: t.LiteralC<"FieldContent">;
1433
+ }>>, t.ExactC<t.TypeC<{
1434
+ type: t.LiteralC<"Range">;
1435
+ value: t.Type<string, string, unknown>;
1436
+ __TYPE__: t.LiteralC<"FieldContent">;
1437
+ }>>, t.ExactC<t.TypeC<{
1438
+ type: t.LiteralC<"Number">;
1439
+ value: t.Type<string, string, unknown>;
1440
+ __TYPE__: t.LiteralC<"FieldContent">;
1441
+ }>>, t.ExactC<t.TypeC<{
1442
+ type: t.LiteralC<"Date">;
1443
+ value: t.Type<string, string, unknown>;
1444
+ __TYPE__: t.LiteralC<"FieldContent">;
1445
+ }>>, t.ExactC<t.TypeC<{
1446
+ type: t.LiteralC<"Color">;
1447
+ value: t.Type<string, string, unknown>;
1448
+ __TYPE__: t.LiteralC<"FieldContent">;
1449
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1450
+ position: t.ExactC<t.TypeC<{
1451
+ lat: t.NumberC;
1452
+ lng: t.NumberC;
1453
+ }>>;
1454
+ }>>, t.ExactC<t.TypeC<{
1455
+ __TYPE__: t.LiteralC<"GeoPointContent">;
1456
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1457
+ origin: t.ExactC<t.TypeC<{
1458
+ id: t.StringC;
1459
+ url: t.StringC;
1460
+ width: t.NumberC;
1461
+ height: t.NumberC;
1462
+ }>>;
1463
+ width: t.NumberC;
1464
+ height: t.NumberC;
1465
+ edit: t.TypeC<{
1466
+ zoom: t.NumberC;
1467
+ crop: t.TypeC<{
1468
+ x: t.NumberC;
1469
+ y: t.NumberC;
1470
+ }>;
1471
+ background: t.StringC;
1472
+ }>;
1473
+ }>, t.PartialC<{
1474
+ url: t.StringC;
1475
+ credits: t.Type<string | null, string | null, unknown>;
1476
+ alt: t.Type<string | null, string | null, unknown>;
1477
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1478
+ }>]>>, t.PartialC<{
1479
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
1480
+ origin: t.ExactC<t.TypeC<{
1481
+ id: t.StringC;
1482
+ url: t.StringC;
1483
+ width: t.NumberC;
1484
+ height: t.NumberC;
1485
+ }>>;
1486
+ width: t.NumberC;
1487
+ height: t.NumberC;
1488
+ edit: t.TypeC<{
1489
+ zoom: t.NumberC;
1490
+ crop: t.TypeC<{
1491
+ x: t.NumberC;
1492
+ y: t.NumberC;
1493
+ }>;
1494
+ background: t.StringC;
1495
+ }>;
1496
+ }>, t.PartialC<{
1497
+ url: t.StringC;
1498
+ credits: t.Type<string | null, string | null, unknown>;
1499
+ alt: t.Type<string | null, string | null, unknown>;
1500
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1501
+ }>]>>>;
1502
+ }>]>, t.ExactC<t.TypeC<{
1503
+ __TYPE__: t.LiteralC<"ImageContent">;
1504
+ }>>]>, t.ExactC<t.TypeC<{
1505
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
1506
+ value: t.StringC;
1507
+ }>>, t.ExactC<t.TypeC<{
1508
+ __TYPE__: t.LiteralC<"LinkContent">;
1509
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1510
+ __TYPE__: t.LiteralC<"ImageLink">;
1511
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1512
+ id: t.StringC;
1513
+ url: t.StringC;
1514
+ height: t.StringC;
1515
+ width: t.StringC;
1516
+ size: t.StringC;
1517
+ name: t.StringC;
1518
+ kind: t.StringC;
1519
+ }>, t.PartialC<{
1520
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1521
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1522
+ id: t.StringC;
1523
+ url: t.StringC;
1524
+ name: t.StringC;
1525
+ kind: t.StringC;
1526
+ }>, t.PartialC<{
1527
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1528
+ size: t.StringC;
1529
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1530
+ __TYPE__: t.LiteralC<"FileLink">;
1531
+ }>, t.PartialC<{
1532
+ size: t.StringC;
1533
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1534
+ __TYPE__: t.LiteralC<"DocumentLink">;
1535
+ }>>, t.ExactC<t.TypeC<{
1536
+ id: t.Type<string, string, unknown>;
1537
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1538
+ __TYPE__: t.LiteralC<"ExternalLink">;
1539
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1540
+ url: t.StringC;
1541
+ }>, t.PartialC<{
1542
+ kind: t.LiteralC<"web">;
1543
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1544
+ preview: t.UnionC<[t.Type<{
1545
+ title?: string;
1546
+ }, {
1547
+ title?: string;
1548
+ }, unknown>, t.NullC, t.UndefinedC]>;
1549
+ }>]>>]>]>;
1550
+ }>>, t.ExactC<t.TypeC<{
1551
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
1552
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1553
+ type: t.LiteralC<"image">;
1554
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1555
+ origin: t.ExactC<t.TypeC<{
1556
+ id: t.StringC;
1557
+ url: t.StringC;
1558
+ width: t.NumberC;
1559
+ height: t.NumberC;
1560
+ }>>;
1561
+ width: t.NumberC;
1562
+ height: t.NumberC;
1563
+ edit: t.TypeC<{
1564
+ zoom: t.NumberC;
1565
+ crop: t.TypeC<{
1566
+ x: t.NumberC;
1567
+ y: t.NumberC;
1568
+ }>;
1569
+ background: t.StringC;
1570
+ }>;
1571
+ }>, t.PartialC<{
1572
+ url: t.StringC;
1573
+ credits: t.Type<string | null, string | null, unknown>;
1574
+ alt: t.Type<string | null, string | null, unknown>;
1575
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1576
+ }>]>>, t.PartialC<{
1577
+ linkTo: t.UnionC<[t.Type<({
1578
+ __TYPE__: "ImageLink";
1579
+ } & {
1580
+ id: string;
1581
+ url: string;
1582
+ height: string;
1583
+ width: string;
1584
+ size: string;
1585
+ name: string;
1586
+ kind: string;
1587
+ } & {
1588
+ date?: string | null | undefined;
1589
+ }) | ({
1590
+ id: string;
1591
+ url: string;
1592
+ name: string;
1593
+ kind: string;
1594
+ } & {
1595
+ date?: string | null | undefined;
1596
+ size?: string;
1597
+ } & {
1598
+ __TYPE__: "FileLink";
1599
+ } & {
1600
+ size?: string;
1601
+ }) | ({
1602
+ __TYPE__: "DocumentLink";
1603
+ } & {
1604
+ id: string;
1605
+ }) | ({
1606
+ __TYPE__: "ExternalLink";
1607
+ } & {
1608
+ url: string;
1609
+ } & {
1610
+ kind?: "web";
1611
+ target?: string | null | undefined;
1612
+ preview?: {
1613
+ title?: string;
1614
+ } | null | undefined;
1615
+ }), ({
1616
+ __TYPE__: "ImageLink";
1617
+ } & {
1618
+ id: string;
1619
+ url: string;
1620
+ height: string;
1621
+ width: string;
1622
+ size: string;
1623
+ name: string;
1624
+ kind: string;
1625
+ } & {
1626
+ date?: string | null | undefined;
1627
+ }) | ({
1628
+ id: string;
1629
+ url: string;
1630
+ name: string;
1631
+ kind: string;
1632
+ } & {
1633
+ date?: string | null | undefined;
1634
+ size?: string;
1635
+ } & {
1636
+ __TYPE__: "FileLink";
1637
+ } & {
1638
+ size?: string;
1639
+ }) | ({
1640
+ __TYPE__: "DocumentLink";
1641
+ } & {
1642
+ id: string;
1643
+ }) | ({
1644
+ __TYPE__: "ExternalLink";
1645
+ } & {
1646
+ url: string;
1647
+ } & {
1648
+ kind?: "web";
1649
+ target?: string | null | undefined;
1650
+ preview?: {
1651
+ title?: string;
1652
+ } | null | undefined;
1653
+ }), unknown>, t.NullC, t.UndefinedC]>;
1654
+ }>]>;
1655
+ }>, t.PartialC<{
1656
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1657
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1658
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1659
+ type: t.LiteralC<"embed">;
1660
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1661
+ embed_url: t.StringC;
1662
+ type: t.StringC;
1663
+ }>, t.PartialC<{
1664
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1665
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1666
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1667
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1668
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1669
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1670
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1671
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1672
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1673
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1674
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1675
+ }>]>>, t.ExactC<t.TypeC<{
1676
+ __TYPE__: t.LiteralC<"EmbedContent">;
1677
+ }>>]>;
1678
+ }>, t.PartialC<{
1679
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1680
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1681
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1682
+ 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>;
1683
+ content: t.IntersectionC<[t.TypeC<{
1684
+ text: t.StringC;
1685
+ }>, t.PartialC<{
1686
+ spans: t.Type<({
1687
+ data?: unknown;
1688
+ } & {
1689
+ start: number;
1690
+ end: number;
1691
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1692
+ })[], ({
1693
+ data?: unknown;
1694
+ } & {
1695
+ start: number;
1696
+ end: number;
1697
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1698
+ })[], unknown>;
1699
+ }>]>;
1700
+ }>, t.PartialC<{
1701
+ label: t.StringC;
1702
+ direction: t.StringC;
1703
+ }>]>>]>>;
1704
+ }>>, t.ExactC<t.TypeC<{
1705
+ __TYPE__: t.LiteralC<"SeparatorContent">;
1706
+ }>>]>]>>;
1707
+ }>>>;
1708
+ }>>;
1709
+ export declare type CompositeSliceContent = t.TypeOf<typeof CompositeSliceContent>;