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