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

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 (258) hide show
  1. package/lib/common/WidgetKey.d.ts +1 -1
  2. package/lib/common/WidgetKey.js +1 -1
  3. package/lib/common/index.js +1 -1
  4. package/lib/content/Document.d.ts +4 -4
  5. package/lib/content/Document.js +1 -1
  6. package/lib/content/LegacyContentCtx.d.ts +2 -2
  7. package/lib/content/LegacyContentCtx.js +1 -1
  8. package/lib/content/fields/EmptyContent.d.ts +1 -1
  9. package/lib/content/fields/EmptyContent.js +1 -1
  10. package/lib/content/fields/GroupContent.d.ts +4 -4
  11. package/lib/content/fields/GroupContent.js +1 -1
  12. package/lib/content/fields/UIDContent.d.ts +1 -1
  13. package/lib/content/fields/UIDContent.js +1 -1
  14. package/lib/content/fields/WidgetContent.d.ts +2 -2
  15. package/lib/content/fields/WidgetContent.js +1 -1
  16. package/lib/content/fields/index.js +5 -5
  17. package/lib/content/fields/nestable/BooleanContent.d.ts +1 -1
  18. package/lib/content/fields/nestable/BooleanContent.js +1 -1
  19. package/lib/content/fields/nestable/EmbedContent.d.ts +2 -2
  20. package/lib/content/fields/nestable/EmbedContent.js +1 -1
  21. package/lib/content/fields/nestable/FieldContent/ColorContent.d.ts +1 -1
  22. package/lib/content/fields/nestable/FieldContent/ColorContent.js +2 -2
  23. package/lib/content/fields/nestable/FieldContent/DateContent.d.ts +1 -1
  24. package/lib/content/fields/nestable/FieldContent/DateContent.js +2 -2
  25. package/lib/content/fields/nestable/FieldContent/NumberContent.d.ts +1 -1
  26. package/lib/content/fields/nestable/FieldContent/NumberContent.js +2 -2
  27. package/lib/content/fields/nestable/FieldContent/RangeContent.d.ts +1 -1
  28. package/lib/content/fields/nestable/FieldContent/RangeContent.js +2 -2
  29. package/lib/content/fields/nestable/FieldContent/SelectContent.d.ts +1 -1
  30. package/lib/content/fields/nestable/FieldContent/SelectContent.js +2 -2
  31. package/lib/content/fields/nestable/FieldContent/TextContent.d.ts +1 -1
  32. package/lib/content/fields/nestable/FieldContent/TextContent.js +2 -2
  33. package/lib/content/fields/nestable/FieldContent/TimestampContent.d.ts +1 -1
  34. package/lib/content/fields/nestable/FieldContent/TimestampContent.js +2 -2
  35. package/lib/content/fields/nestable/FieldContent/index.d.ts +2 -2
  36. package/lib/content/fields/nestable/FieldContent/index.js +9 -9
  37. package/lib/content/fields/nestable/GeoPointContent.d.ts +1 -1
  38. package/lib/content/fields/nestable/GeoPointContent.js +1 -1
  39. package/lib/content/fields/nestable/ImageContent.d.ts +2 -2
  40. package/lib/content/fields/nestable/ImageContent.js +1 -1
  41. package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +1 -1
  42. package/lib/content/fields/nestable/IntegrationFieldContent.js +1 -1
  43. package/lib/content/fields/nestable/LinkContent.d.ts +6 -6
  44. package/lib/content/fields/nestable/LinkContent.js +1 -1
  45. package/lib/content/fields/nestable/NestableContent.d.ts +2 -2
  46. package/lib/content/fields/nestable/NestableContent.js +1 -1
  47. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +7 -7
  48. package/lib/content/fields/nestable/RichTextContent/Blocks.js +2 -2
  49. package/lib/content/fields/nestable/RichTextContent/index.d.ts +1 -1
  50. package/lib/content/fields/nestable/RichTextContent/index.js +2 -2
  51. package/lib/content/fields/nestable/SeparatorContent.d.ts +1 -1
  52. package/lib/content/fields/nestable/SeparatorContent.js +1 -1
  53. package/lib/content/fields/nestable/index.js +10 -10
  54. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1 -1
  55. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +1 -1
  56. package/lib/content/fields/slices/Slice/RepeatableContent.js +1 -1
  57. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1 -1
  58. package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
  59. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +1 -1
  60. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +1 -1
  61. package/lib/content/fields/slices/Slice/index.d.ts +1 -1
  62. package/lib/content/fields/slices/Slice/index.js +1 -1
  63. package/lib/content/fields/slices/SliceItem.d.ts +1 -1
  64. package/lib/content/fields/slices/SliceItem.js +1 -1
  65. package/lib/content/fields/slices/SlicesContent.d.ts +2 -2
  66. package/lib/content/fields/slices/SlicesContent.js +1 -1
  67. package/lib/content/fields/slices/index.js +5 -5
  68. package/lib/content/index.js +3 -3
  69. package/lib/content/utils.d.ts +2 -2
  70. package/lib/content/utils.js +2 -4
  71. package/lib/customtypes/CustomType.d.ts +2 -2
  72. package/lib/customtypes/CustomType.js +1 -1
  73. package/lib/customtypes/Section.d.ts +2 -2
  74. package/lib/customtypes/Section.js +1 -1
  75. package/lib/customtypes/diff/Changes.d.ts +4 -4
  76. package/lib/customtypes/diff/SharedSlice.d.ts +3 -671
  77. package/lib/customtypes/diff/Variation.d.ts +3 -657
  78. package/lib/customtypes/diff/index.js +3 -3
  79. package/lib/customtypes/index.js +4 -4
  80. package/lib/customtypes/widgets/Group.d.ts +1 -1
  81. package/lib/customtypes/widgets/Group.js +1 -1
  82. package/lib/customtypes/widgets/UID.d.ts +1 -1
  83. package/lib/customtypes/widgets/UID.js +1 -1
  84. package/lib/customtypes/widgets/Widget.d.ts +3 -3
  85. package/lib/customtypes/widgets/Widget.js +3 -3
  86. package/lib/customtypes/widgets/index.js +6 -6
  87. package/lib/customtypes/widgets/nestable/BooleanField.d.ts +2 -2
  88. package/lib/customtypes/widgets/nestable/BooleanField.js +1 -1
  89. package/lib/customtypes/widgets/nestable/Color.d.ts +2 -2
  90. package/lib/customtypes/widgets/nestable/Color.js +1 -1
  91. package/lib/customtypes/widgets/nestable/Date.d.ts +2 -2
  92. package/lib/customtypes/widgets/nestable/Date.js +1 -1
  93. package/lib/customtypes/widgets/nestable/Embed.d.ts +2 -2
  94. package/lib/customtypes/widgets/nestable/Embed.js +1 -1
  95. package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +2 -2
  96. package/lib/customtypes/widgets/nestable/GeoPoint.js +1 -1
  97. package/lib/customtypes/widgets/nestable/Image.d.ts +3 -3
  98. package/lib/customtypes/widgets/nestable/Image.js +2 -2
  99. package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +2 -2
  100. package/lib/customtypes/widgets/nestable/IntegrationField.js +1 -1
  101. package/lib/customtypes/widgets/nestable/Link.d.ts +2 -2
  102. package/lib/customtypes/widgets/nestable/Link.js +1 -1
  103. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +2 -2
  104. package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
  105. package/lib/customtypes/widgets/nestable/Number.d.ts +2 -2
  106. package/lib/customtypes/widgets/nestable/Number.js +1 -1
  107. package/lib/customtypes/widgets/nestable/Range.d.ts +2 -2
  108. package/lib/customtypes/widgets/nestable/Range.js +1 -1
  109. package/lib/customtypes/widgets/nestable/RichText.d.ts +3 -3
  110. package/lib/customtypes/widgets/nestable/RichText.js +2 -2
  111. package/lib/customtypes/widgets/nestable/Select.d.ts +2 -2
  112. package/lib/customtypes/widgets/nestable/Select.js +1 -1
  113. package/lib/customtypes/widgets/nestable/Separator.d.ts +2 -2
  114. package/lib/customtypes/widgets/nestable/Separator.js +1 -1
  115. package/lib/customtypes/widgets/nestable/Text.d.ts +2 -2
  116. package/lib/customtypes/widgets/nestable/Text.js +1 -1
  117. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +2 -2
  118. package/lib/customtypes/widgets/nestable/Timestamp.js +1 -1
  119. package/lib/customtypes/widgets/nestable/index.js +16 -16
  120. package/lib/customtypes/widgets/shared/ImageConstraint.d.ts +1 -1
  121. package/lib/customtypes/widgets/shared/ImageConstraint.js +1 -1
  122. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +1 -1
  123. package/lib/customtypes/widgets/slices/CompositeSlice.js +1 -1
  124. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +1 -1
  125. package/lib/customtypes/widgets/slices/LegacySlice.js +2 -2
  126. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +2 -2
  127. package/lib/customtypes/widgets/slices/SharedSlice.js +1 -1
  128. package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +1 -1
  129. package/lib/customtypes/widgets/slices/SharedSliceRef.js +1 -1
  130. package/lib/customtypes/widgets/slices/Slice.d.ts +2 -2
  131. package/lib/customtypes/widgets/slices/Slices.d.ts +5 -5
  132. package/lib/customtypes/widgets/slices/Slices.js +4 -4
  133. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +1 -1
  134. package/lib/customtypes/widgets/slices/SlicesTypes.js +1 -1
  135. package/lib/customtypes/widgets/slices/index.js +6 -6
  136. package/lib/utils/index.js +2 -2
  137. package/lib/validators/DateFromString.js +1 -1
  138. package/lib/validators/DateFromStringOrNumber.js +1 -1
  139. package/lib/validators/DateFromTsMs.js +1 -1
  140. package/lib/validators/IntFromNumber.d.ts +2 -2
  141. package/lib/validators/IntFromNumber.js +1 -1
  142. package/lib/validators/IntFromPixels.d.ts +2 -2
  143. package/lib/validators/IntFromPixels.js +1 -1
  144. package/lib/validators/NonEmptyString.js +1 -1
  145. package/lib/validators/NonEmptyStringOrNull.js +1 -1
  146. package/lib/validators/NumberOrNull.js +1 -1
  147. package/lib/validators/StringFromBoolean.d.ts +2 -2
  148. package/lib/validators/StringFromBoolean.js +1 -1
  149. package/lib/validators/StringFromNumber.d.ts +2 -2
  150. package/lib/validators/StringFromNumber.js +1 -1
  151. package/lib/validators/StringOrNull.js +1 -1
  152. package/lib/validators/TrimmedString.d.ts +2 -2
  153. package/lib/validators/TrimmedString.js +1 -1
  154. package/lib/validators/function.js +1 -1
  155. package/lib/validators/index.js +12 -12
  156. package/package.json +1 -1
  157. package/lib/content/CustomType.d.ts +0 -2972
  158. package/lib/content/CustomType.js +0 -15
  159. package/lib/content/fields/nestable/FieldContent.d.ts +0 -32
  160. package/lib/content/fields/nestable/FieldContent.js +0 -37
  161. package/lib/content/fields/nestable/Image.d.ts +0 -103
  162. package/lib/content/fields/nestable/Image.js +0 -13
  163. package/lib/content/fields/nestable/RichTextContent.d.ts +0 -376
  164. package/lib/content/fields/nestable/RichTextContent.js +0 -16
  165. package/lib/content/fields/slices/CompositeSliceContent.d.ts +0 -677
  166. package/lib/content/fields/slices/CompositeSliceContent.js +0 -14
  167. package/lib/content/fields/slices/RepeatableContent.d.ts +0 -338
  168. package/lib/content/fields/slices/RepeatableContent.js +0 -16
  169. package/lib/content/fields/slices/SharedSliceContent.d.ts +0 -678
  170. package/lib/content/fields/slices/SharedSliceContent.js +0 -15
  171. package/lib/content/fields/slices/SimpleSliceContent.d.ts +0 -675
  172. package/lib/content/fields/slices/SimpleSliceContent.js +0 -8
  173. package/lib/customtypes/Comparators/Changes.d.ts +0 -17
  174. package/lib/customtypes/Comparators/Changes.js +0 -9
  175. package/lib/customtypes/Comparators/SharedSlice.d.ts +0 -679
  176. package/lib/customtypes/Comparators/SharedSlice.js +0 -55
  177. package/lib/customtypes/Comparators/Variation.d.ts +0 -662
  178. package/lib/customtypes/Comparators/Variation.js +0 -75
  179. package/lib/customtypes/Comparators/index.d.ts +0 -3
  180. package/lib/customtypes/Comparators/index.js +0 -6
  181. package/lib/customtypes/Format.d.ts +0 -4
  182. package/lib/customtypes/Format.js +0 -8
  183. package/lib/customtypes/comp/Changes.d.ts +0 -17
  184. package/lib/customtypes/comp/Changes.js +0 -9
  185. package/lib/customtypes/comp/SharedSlice.d.ts +0 -679
  186. package/lib/customtypes/comp/SharedSlice.js +0 -55
  187. package/lib/customtypes/comp/Variation.d.ts +0 -662
  188. package/lib/customtypes/comp/Variation.js +0 -76
  189. package/lib/customtypes/comp/index.d.ts +0 -3
  190. package/lib/customtypes/comp/index.js +0 -6
  191. package/lib/customtypes/utils/Comparator.d.ts +0 -1353
  192. package/lib/customtypes/utils/Comparator.js +0 -59
  193. package/lib/customtypes/utils/index.d.ts +0 -1
  194. package/lib/customtypes/utils/index.js +0 -4
  195. package/lib/customtypes/widgets/WidgetTypes.d.ts +0 -22
  196. package/lib/customtypes/widgets/WidgetTypes.js +0 -25
  197. package/lib/documents/DocumentData.d.ts +0 -6
  198. package/lib/documents/DocumentData.js +0 -15
  199. package/lib/documents/index.d.ts +0 -2
  200. package/lib/documents/index.js +0 -7
  201. package/lib/documents/widgets/EmptyContent.d.ts +0 -8
  202. package/lib/documents/widgets/EmptyContent.js +0 -9
  203. package/lib/documents/widgets/GroupContent.d.ts +0 -16
  204. package/lib/documents/widgets/GroupContent.js +0 -60
  205. package/lib/documents/widgets/SimpleWidgetContent.d.ts +0 -20
  206. package/lib/documents/widgets/SimpleWidgetContent.js +0 -75
  207. package/lib/documents/widgets/StaticWidgetContent.d.ts +0 -10
  208. package/lib/documents/widgets/StaticWidgetContent.js +0 -26
  209. package/lib/documents/widgets/UIDContent.d.ts +0 -7
  210. package/lib/documents/widgets/UIDContent.js +0 -10
  211. package/lib/documents/widgets/index.d.ts +0 -38
  212. package/lib/documents/widgets/index.js +0 -40
  213. package/lib/documents/widgets/nestable/BooleanContent.d.ts +0 -8
  214. package/lib/documents/widgets/nestable/BooleanContent.js +0 -11
  215. package/lib/documents/widgets/nestable/EmbedContent.d.ts +0 -42
  216. package/lib/documents/widgets/nestable/EmbedContent.js +0 -35
  217. package/lib/documents/widgets/nestable/FieldContent.d.ts +0 -13
  218. package/lib/documents/widgets/nestable/FieldContent.js +0 -37
  219. package/lib/documents/widgets/nestable/GeoPointContent.d.ts +0 -17
  220. package/lib/documents/widgets/nestable/GeoPointContent.js +0 -13
  221. package/lib/documents/widgets/nestable/ImageContent.d.ts +0 -127
  222. package/lib/documents/widgets/nestable/ImageContent.js +0 -41
  223. package/lib/documents/widgets/nestable/IntegrationFieldsContent.d.ts +0 -8
  224. package/lib/documents/widgets/nestable/IntegrationFieldsContent.js +0 -16
  225. package/lib/documents/widgets/nestable/Link/DocumentLink.d.ts +0 -12
  226. package/lib/documents/widgets/nestable/Link/DocumentLink.js +0 -13
  227. package/lib/documents/widgets/nestable/Link/ExternalLink.d.ts +0 -24
  228. package/lib/documents/widgets/nestable/Link/ExternalLink.js +0 -24
  229. package/lib/documents/widgets/nestable/Link/FileLink.d.ts +0 -22
  230. package/lib/documents/widgets/nestable/Link/FileLink.js +0 -25
  231. package/lib/documents/widgets/nestable/Link/ImageLink.d.ts +0 -28
  232. package/lib/documents/widgets/nestable/Link/ImageLink.js +0 -26
  233. package/lib/documents/widgets/nestable/Link/LinkContent.d.ts +0 -42
  234. package/lib/documents/widgets/nestable/Link/LinkContent.js +0 -17
  235. package/lib/documents/widgets/nestable/Link/index.d.ts +0 -90
  236. package/lib/documents/widgets/nestable/Link/index.js +0 -35
  237. package/lib/documents/widgets/nestable/SeparatorContent.d.ts +0 -11
  238. package/lib/documents/widgets/nestable/SeparatorContent.js +0 -15
  239. package/lib/documents/widgets/nestable/StructuredTextContent/Block.d.ts +0 -314
  240. package/lib/documents/widgets/nestable/StructuredTextContent/Block.js +0 -98
  241. package/lib/documents/widgets/nestable/StructuredTextContent/index.d.ts +0 -9
  242. package/lib/documents/widgets/nestable/StructuredTextContent/index.js +0 -14
  243. package/lib/documents/widgets/nestable/index.d.ts +0 -26
  244. package/lib/documents/widgets/nestable/index.js +0 -39
  245. package/lib/documents/widgets/slices/CompositeSliceContent.d.ts +0 -14
  246. package/lib/documents/widgets/slices/CompositeSliceContent.js +0 -52
  247. package/lib/documents/widgets/slices/SharedSliceContent.d.ts +0 -15
  248. package/lib/documents/widgets/slices/SharedSliceContent.js +0 -63
  249. package/lib/documents/widgets/slices/SimpleSliceContent.d.ts +0 -6
  250. package/lib/documents/widgets/slices/SimpleSliceContent.js +0 -6
  251. package/lib/documents/widgets/slices/SliceWidgetContent.d.ts +0 -8
  252. package/lib/documents/widgets/slices/SliceWidgetContent.js +0 -26
  253. package/lib/documents/widgets/slices/SlicesContent.d.ts +0 -17
  254. package/lib/documents/widgets/slices/SlicesContent.js +0 -52
  255. package/lib/documents/widgets/slices/index.d.ts +0 -5
  256. package/lib/documents/widgets/slices/index.js +0 -8
  257. package/lib/index.d.ts +0 -3
  258. package/lib/index.js +0 -7
@@ -1,665 +1,11 @@
1
1
  import type { NestableWidget } from "../widgets/nestable";
2
2
  import type { Variation } from "../widgets/slices";
3
3
  import { type DiffChange } from "./Changes";
4
- export declare type VariationMetadata = Omit<Variation, "primary" | "items">;
5
- export declare type VariationDiff = DiffChange<Variation, Partial<VariationMetadata> & {
4
+ export type VariationMetadata = Omit<Variation, "primary" | "items">;
5
+ export type VariationDiff = DiffChange<Variation, Partial<VariationMetadata> & {
6
6
  primary?: Record<string, DiffChange<NestableWidget, NestableWidget>>;
7
7
  items?: Record<string, DiffChange<NestableWidget, NestableWidget>>;
8
8
  }>;
9
9
  export declare const VariationComparator: {
10
- compare(variationA?: ({
11
- id: string;
12
- name: string;
13
- description: string;
14
- imageUrl: string;
15
- docURL: string;
16
- version: string;
17
- } & {
18
- display?: string;
19
- primary?: {
20
- [x: string]: ({
21
- type: "Boolean";
22
- } & {
23
- config?: {
24
- label?: string | null | undefined;
25
- default_value?: boolean;
26
- placeholder_true?: string;
27
- placeholder_false?: string;
28
- };
29
- }) | ({
30
- type: "Color";
31
- } & {
32
- fieldset?: string | null | undefined;
33
- config?: {
34
- label?: string | null | undefined;
35
- placeholder?: string;
36
- };
37
- }) | ({
38
- type: "Date";
39
- } & {
40
- fieldset?: string | null | undefined;
41
- config?: {
42
- label?: string | null | undefined;
43
- placeholder?: string;
44
- default?: string;
45
- };
46
- }) | ({
47
- type: "Embed";
48
- } & {
49
- fieldset?: string | null | undefined;
50
- config?: {
51
- label?: string | null | undefined;
52
- placeholder?: string;
53
- useAsTitle?: boolean;
54
- };
55
- }) | ({
56
- type: "GeoPoint";
57
- } & {
58
- fieldset?: string | null | undefined;
59
- config?: {
60
- label?: string | null | undefined;
61
- };
62
- }) | ({
63
- type: "Image";
64
- } & {
65
- fieldset?: string | null | undefined;
66
- config?: {
67
- label?: string | null | undefined;
68
- placeholder?: string;
69
- constraint?: {
70
- width?: number | null;
71
- height?: number | null;
72
- };
73
- thumbnails?: readonly ({
74
- name: string;
75
- } & {
76
- width?: number | null;
77
- height?: number | null;
78
- })[];
79
- };
80
- }) | ({
81
- type: "IntegrationFields";
82
- } & {
83
- fieldset?: string | null | undefined;
84
- config?: {
85
- label?: string | null | undefined;
86
- placeholder?: string;
87
- catalog?: string;
88
- };
89
- }) | ({
90
- type: "Link";
91
- } & {
92
- fieldset?: string | null | undefined;
93
- config?: {
94
- label?: string | null | undefined;
95
- useAsTitle?: boolean;
96
- placeholder?: string;
97
- select?: "media" | "document" | "web" | null;
98
- customtypes?: readonly string[];
99
- masks?: readonly string[];
100
- tags?: readonly string[];
101
- allowTargetBlank?: boolean;
102
- };
103
- }) | ({
104
- type: "Number";
105
- } & {
106
- fieldset?: string | null | undefined;
107
- config?: {
108
- label?: string | null | undefined;
109
- placeholder?: string;
110
- min?: number;
111
- max?: number;
112
- step?: number;
113
- };
114
- }) | ({
115
- type: "Range";
116
- } & {
117
- fieldset?: string | null | undefined;
118
- config?: {
119
- label?: string | null | undefined;
120
- placeholder?: string;
121
- min?: number;
122
- max?: number;
123
- step?: number;
124
- };
125
- }) | ({
126
- type: "StructuredText";
127
- } & {
128
- fieldset?: string | null | undefined;
129
- config?: {
130
- label?: string | null | undefined;
131
- placeholder?: string;
132
- useAsTitle?: boolean;
133
- single?: string;
134
- multi?: string;
135
- imageConstraint?: {
136
- width?: number | null;
137
- height?: number | null;
138
- };
139
- labels?: readonly string[];
140
- allowTargetBlank?: boolean;
141
- };
142
- }) | ({
143
- type: "Select";
144
- } & {
145
- fieldset?: string | null | undefined;
146
- config?: {
147
- label?: string | null | undefined;
148
- placeholder?: string;
149
- default_value?: string;
150
- options?: readonly string[];
151
- };
152
- }) | ({
153
- type: "Separator";
154
- } & {
155
- config?: {
156
- label?: string | null | undefined;
157
- };
158
- }) | ({
159
- type: "Text";
160
- } & {
161
- fieldset?: string | null | undefined;
162
- config?: {
163
- label?: string | null | undefined;
164
- useAsTitle?: boolean;
165
- placeholder?: string;
166
- };
167
- }) | ({
168
- type: "Timestamp";
169
- } & {
170
- fieldset?: string | null | undefined;
171
- config?: {
172
- label?: string | null | undefined;
173
- placeholder?: string;
174
- default?: string;
175
- };
176
- });
177
- };
178
- items?: {
179
- [x: string]: ({
180
- type: "Boolean";
181
- } & {
182
- config?: {
183
- label?: string | null | undefined;
184
- default_value?: boolean;
185
- placeholder_true?: string;
186
- placeholder_false?: string;
187
- };
188
- }) | ({
189
- type: "Color";
190
- } & {
191
- fieldset?: string | null | undefined;
192
- config?: {
193
- label?: string | null | undefined;
194
- placeholder?: string;
195
- };
196
- }) | ({
197
- type: "Date";
198
- } & {
199
- fieldset?: string | null | undefined;
200
- config?: {
201
- label?: string | null | undefined;
202
- placeholder?: string;
203
- default?: string;
204
- };
205
- }) | ({
206
- type: "Embed";
207
- } & {
208
- fieldset?: string | null | undefined;
209
- config?: {
210
- label?: string | null | undefined;
211
- placeholder?: string;
212
- useAsTitle?: boolean;
213
- };
214
- }) | ({
215
- type: "GeoPoint";
216
- } & {
217
- fieldset?: string | null | undefined;
218
- config?: {
219
- label?: string | null | undefined;
220
- };
221
- }) | ({
222
- type: "Image";
223
- } & {
224
- fieldset?: string | null | undefined;
225
- config?: {
226
- label?: string | null | undefined;
227
- placeholder?: string;
228
- constraint?: {
229
- width?: number | null;
230
- height?: number | null;
231
- };
232
- thumbnails?: readonly ({
233
- name: string;
234
- } & {
235
- width?: number | null;
236
- height?: number | null;
237
- })[];
238
- };
239
- }) | ({
240
- type: "IntegrationFields";
241
- } & {
242
- fieldset?: string | null | undefined;
243
- config?: {
244
- label?: string | null | undefined;
245
- placeholder?: string;
246
- catalog?: string;
247
- };
248
- }) | ({
249
- type: "Link";
250
- } & {
251
- fieldset?: string | null | undefined;
252
- config?: {
253
- label?: string | null | undefined;
254
- useAsTitle?: boolean;
255
- placeholder?: string;
256
- select?: "media" | "document" | "web" | null;
257
- customtypes?: readonly string[];
258
- masks?: readonly string[];
259
- tags?: readonly string[];
260
- allowTargetBlank?: boolean;
261
- };
262
- }) | ({
263
- type: "Number";
264
- } & {
265
- fieldset?: string | null | undefined;
266
- config?: {
267
- label?: string | null | undefined;
268
- placeholder?: string;
269
- min?: number;
270
- max?: number;
271
- step?: number;
272
- };
273
- }) | ({
274
- type: "Range";
275
- } & {
276
- fieldset?: string | null | undefined;
277
- config?: {
278
- label?: string | null | undefined;
279
- placeholder?: string;
280
- min?: number;
281
- max?: number;
282
- step?: number;
283
- };
284
- }) | ({
285
- type: "StructuredText";
286
- } & {
287
- fieldset?: string | null | undefined;
288
- config?: {
289
- label?: string | null | undefined;
290
- placeholder?: string;
291
- useAsTitle?: boolean;
292
- single?: string;
293
- multi?: string;
294
- imageConstraint?: {
295
- width?: number | null;
296
- height?: number | null;
297
- };
298
- labels?: readonly string[];
299
- allowTargetBlank?: boolean;
300
- };
301
- }) | ({
302
- type: "Select";
303
- } & {
304
- fieldset?: string | null | undefined;
305
- config?: {
306
- label?: string | null | undefined;
307
- placeholder?: string;
308
- default_value?: string;
309
- options?: readonly string[];
310
- };
311
- }) | ({
312
- type: "Separator";
313
- } & {
314
- config?: {
315
- label?: string | null | undefined;
316
- };
317
- }) | ({
318
- type: "Text";
319
- } & {
320
- fieldset?: string | null | undefined;
321
- config?: {
322
- label?: string | null | undefined;
323
- useAsTitle?: boolean;
324
- placeholder?: string;
325
- };
326
- }) | ({
327
- type: "Timestamp";
328
- } & {
329
- fieldset?: string | null | undefined;
330
- config?: {
331
- label?: string | null | undefined;
332
- placeholder?: string;
333
- default?: string;
334
- };
335
- });
336
- };
337
- }) | undefined, variationB?: ({
338
- id: string;
339
- name: string;
340
- description: string;
341
- imageUrl: string;
342
- docURL: string;
343
- version: string;
344
- } & {
345
- display?: string;
346
- primary?: {
347
- [x: string]: ({
348
- type: "Boolean";
349
- } & {
350
- config?: {
351
- label?: string | null | undefined;
352
- default_value?: boolean;
353
- placeholder_true?: string;
354
- placeholder_false?: string;
355
- };
356
- }) | ({
357
- type: "Color";
358
- } & {
359
- fieldset?: string | null | undefined;
360
- config?: {
361
- label?: string | null | undefined;
362
- placeholder?: string;
363
- };
364
- }) | ({
365
- type: "Date";
366
- } & {
367
- fieldset?: string | null | undefined;
368
- config?: {
369
- label?: string | null | undefined;
370
- placeholder?: string;
371
- default?: string;
372
- };
373
- }) | ({
374
- type: "Embed";
375
- } & {
376
- fieldset?: string | null | undefined;
377
- config?: {
378
- label?: string | null | undefined;
379
- placeholder?: string;
380
- useAsTitle?: boolean;
381
- };
382
- }) | ({
383
- type: "GeoPoint";
384
- } & {
385
- fieldset?: string | null | undefined;
386
- config?: {
387
- label?: string | null | undefined;
388
- };
389
- }) | ({
390
- type: "Image";
391
- } & {
392
- fieldset?: string | null | undefined;
393
- config?: {
394
- label?: string | null | undefined;
395
- placeholder?: string;
396
- constraint?: {
397
- width?: number | null;
398
- height?: number | null;
399
- };
400
- thumbnails?: readonly ({
401
- name: string;
402
- } & {
403
- width?: number | null;
404
- height?: number | null;
405
- })[];
406
- };
407
- }) | ({
408
- type: "IntegrationFields";
409
- } & {
410
- fieldset?: string | null | undefined;
411
- config?: {
412
- label?: string | null | undefined;
413
- placeholder?: string;
414
- catalog?: string;
415
- };
416
- }) | ({
417
- type: "Link";
418
- } & {
419
- fieldset?: string | null | undefined;
420
- config?: {
421
- label?: string | null | undefined;
422
- useAsTitle?: boolean;
423
- placeholder?: string;
424
- select?: "media" | "document" | "web" | null;
425
- customtypes?: readonly string[];
426
- masks?: readonly string[];
427
- tags?: readonly string[];
428
- allowTargetBlank?: boolean;
429
- };
430
- }) | ({
431
- type: "Number";
432
- } & {
433
- fieldset?: string | null | undefined;
434
- config?: {
435
- label?: string | null | undefined;
436
- placeholder?: string;
437
- min?: number;
438
- max?: number;
439
- step?: number;
440
- };
441
- }) | ({
442
- type: "Range";
443
- } & {
444
- fieldset?: string | null | undefined;
445
- config?: {
446
- label?: string | null | undefined;
447
- placeholder?: string;
448
- min?: number;
449
- max?: number;
450
- step?: number;
451
- };
452
- }) | ({
453
- type: "StructuredText";
454
- } & {
455
- fieldset?: string | null | undefined;
456
- config?: {
457
- label?: string | null | undefined;
458
- placeholder?: string;
459
- useAsTitle?: boolean;
460
- single?: string;
461
- multi?: string;
462
- imageConstraint?: {
463
- width?: number | null;
464
- height?: number | null;
465
- };
466
- labels?: readonly string[];
467
- allowTargetBlank?: boolean;
468
- };
469
- }) | ({
470
- type: "Select";
471
- } & {
472
- fieldset?: string | null | undefined;
473
- config?: {
474
- label?: string | null | undefined;
475
- placeholder?: string;
476
- default_value?: string;
477
- options?: readonly string[];
478
- };
479
- }) | ({
480
- type: "Separator";
481
- } & {
482
- config?: {
483
- label?: string | null | undefined;
484
- };
485
- }) | ({
486
- type: "Text";
487
- } & {
488
- fieldset?: string | null | undefined;
489
- config?: {
490
- label?: string | null | undefined;
491
- useAsTitle?: boolean;
492
- placeholder?: string;
493
- };
494
- }) | ({
495
- type: "Timestamp";
496
- } & {
497
- fieldset?: string | null | undefined;
498
- config?: {
499
- label?: string | null | undefined;
500
- placeholder?: string;
501
- default?: string;
502
- };
503
- });
504
- };
505
- items?: {
506
- [x: string]: ({
507
- type: "Boolean";
508
- } & {
509
- config?: {
510
- label?: string | null | undefined;
511
- default_value?: boolean;
512
- placeholder_true?: string;
513
- placeholder_false?: string;
514
- };
515
- }) | ({
516
- type: "Color";
517
- } & {
518
- fieldset?: string | null | undefined;
519
- config?: {
520
- label?: string | null | undefined;
521
- placeholder?: string;
522
- };
523
- }) | ({
524
- type: "Date";
525
- } & {
526
- fieldset?: string | null | undefined;
527
- config?: {
528
- label?: string | null | undefined;
529
- placeholder?: string;
530
- default?: string;
531
- };
532
- }) | ({
533
- type: "Embed";
534
- } & {
535
- fieldset?: string | null | undefined;
536
- config?: {
537
- label?: string | null | undefined;
538
- placeholder?: string;
539
- useAsTitle?: boolean;
540
- };
541
- }) | ({
542
- type: "GeoPoint";
543
- } & {
544
- fieldset?: string | null | undefined;
545
- config?: {
546
- label?: string | null | undefined;
547
- };
548
- }) | ({
549
- type: "Image";
550
- } & {
551
- fieldset?: string | null | undefined;
552
- config?: {
553
- label?: string | null | undefined;
554
- placeholder?: string;
555
- constraint?: {
556
- width?: number | null;
557
- height?: number | null;
558
- };
559
- thumbnails?: readonly ({
560
- name: string;
561
- } & {
562
- width?: number | null;
563
- height?: number | null;
564
- })[];
565
- };
566
- }) | ({
567
- type: "IntegrationFields";
568
- } & {
569
- fieldset?: string | null | undefined;
570
- config?: {
571
- label?: string | null | undefined;
572
- placeholder?: string;
573
- catalog?: string;
574
- };
575
- }) | ({
576
- type: "Link";
577
- } & {
578
- fieldset?: string | null | undefined;
579
- config?: {
580
- label?: string | null | undefined;
581
- useAsTitle?: boolean;
582
- placeholder?: string;
583
- select?: "media" | "document" | "web" | null;
584
- customtypes?: readonly string[];
585
- masks?: readonly string[];
586
- tags?: readonly string[];
587
- allowTargetBlank?: boolean;
588
- };
589
- }) | ({
590
- type: "Number";
591
- } & {
592
- fieldset?: string | null | undefined;
593
- config?: {
594
- label?: string | null | undefined;
595
- placeholder?: string;
596
- min?: number;
597
- max?: number;
598
- step?: number;
599
- };
600
- }) | ({
601
- type: "Range";
602
- } & {
603
- fieldset?: string | null | undefined;
604
- config?: {
605
- label?: string | null | undefined;
606
- placeholder?: string;
607
- min?: number;
608
- max?: number;
609
- step?: number;
610
- };
611
- }) | ({
612
- type: "StructuredText";
613
- } & {
614
- fieldset?: string | null | undefined;
615
- config?: {
616
- label?: string | null | undefined;
617
- placeholder?: string;
618
- useAsTitle?: boolean;
619
- single?: string;
620
- multi?: string;
621
- imageConstraint?: {
622
- width?: number | null;
623
- height?: number | null;
624
- };
625
- labels?: readonly string[];
626
- allowTargetBlank?: boolean;
627
- };
628
- }) | ({
629
- type: "Select";
630
- } & {
631
- fieldset?: string | null | undefined;
632
- config?: {
633
- label?: string | null | undefined;
634
- placeholder?: string;
635
- default_value?: string;
636
- options?: readonly string[];
637
- };
638
- }) | ({
639
- type: "Separator";
640
- } & {
641
- config?: {
642
- label?: string | null | undefined;
643
- };
644
- }) | ({
645
- type: "Text";
646
- } & {
647
- fieldset?: string | null | undefined;
648
- config?: {
649
- label?: string | null | undefined;
650
- useAsTitle?: boolean;
651
- placeholder?: string;
652
- };
653
- }) | ({
654
- type: "Timestamp";
655
- } & {
656
- fieldset?: string | null | undefined;
657
- config?: {
658
- label?: string | null | undefined;
659
- placeholder?: string;
660
- default?: string;
661
- };
662
- });
663
- };
664
- }) | undefined): VariationDiff | undefined;
10
+ compare(variationA?: Variation, variationB?: Variation): VariationDiff | undefined;
665
11
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./Changes"), exports);
5
- (0, tslib_1.__exportStar)(require("./SharedSlice"), exports);
6
- (0, tslib_1.__exportStar)(require("./Variation"), exports);
4
+ tslib_1.__exportStar(require("./Changes"), exports);
5
+ tslib_1.__exportStar(require("./SharedSlice"), exports);
6
+ tslib_1.__exportStar(require("./Variation"), exports);
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Section = exports.Comparators = void 0;
4
4
  const tslib_1 = require("tslib");
5
- (0, tslib_1.__exportStar)(require("./CustomType"), exports);
6
- exports.Comparators = (0, tslib_1.__importStar)(require("./diff"));
7
- exports.Section = (0, tslib_1.__importStar)(require("./Section"));
8
- (0, tslib_1.__exportStar)(require("./widgets"), exports);
5
+ tslib_1.__exportStar(require("./CustomType"), exports);
6
+ exports.Comparators = tslib_1.__importStar(require("./diff"));
7
+ exports.Section = tslib_1.__importStar(require("./Section"));
8
+ tslib_1.__exportStar(require("./widgets"), exports);
@@ -168,5 +168,5 @@ declare const Group: t.ExactC<t.IntersectionC<[t.TypeC<{
168
168
  }>]>>]>>;
169
169
  }>>;
170
170
  }>]>>;
171
- declare type Group = t.TypeOf<typeof Group>;
171
+ type Group = t.TypeOf<typeof Group>;
172
172
  export default Group;