@makeswift/prop-controllers 0.2.0-canary.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/index.cjs +785 -313
  2. package/dist/types/backgrounds/backgrounds.d.ts +3965 -0
  3. package/dist/types/backgrounds/backgrounds.d.ts.map +1 -0
  4. package/dist/types/backgrounds/backgrounds.test.d.ts +2 -0
  5. package/dist/types/backgrounds/backgrounds.test.d.ts.map +1 -0
  6. package/dist/types/backgrounds/index.d.ts +2 -0
  7. package/dist/types/backgrounds/index.d.ts.map +1 -0
  8. package/dist/types/data.d.ts +66 -0
  9. package/dist/types/data.d.ts.map +1 -1
  10. package/dist/types/images/images.d.ts +5304 -18
  11. package/dist/types/images/images.d.ts.map +1 -1
  12. package/dist/types/index.d.ts +7 -1
  13. package/dist/types/index.d.ts.map +1 -1
  14. package/dist/types/link/link.d.ts +24 -24
  15. package/dist/types/margin/margin.d.ts +304 -304
  16. package/dist/types/navigation-links/navigation-links.d.ts +200 -200
  17. package/dist/types/prop-controllers.d.ts +3 -0
  18. package/dist/types/prop-controllers.d.ts.map +1 -1
  19. package/dist/types/shadows.d.ts +20 -20
  20. package/package.json +1 -1
  21. package/dist/types/border copy/border.d.ts +0 -2435
  22. package/dist/types/border copy/border.d.ts.map +0 -1
  23. package/dist/types/border copy/border.test.d.ts +0 -2
  24. package/dist/types/border copy/border.test.d.ts.map +0 -1
  25. package/dist/types/border copy/index.d.ts +0 -2
  26. package/dist/types/border copy/index.d.ts.map +0 -1
  27. package/dist/types/date/checkbox.test.d.ts +0 -2
  28. package/dist/types/date/checkbox.test.d.ts.map +0 -1
  29. package/dist/types/date copy/date.d.ts +0 -50
  30. package/dist/types/date copy/date.d.ts.map +0 -1
  31. package/dist/types/date copy/date.test.d.ts +0 -2
  32. package/dist/types/date copy/date.test.d.ts.map +0 -1
  33. package/dist/types/date copy/index.d.ts +0 -2
  34. package/dist/types/date copy/index.d.ts.map +0 -1
  35. package/dist/types/deleted.d.ts +0 -1
  36. package/dist/types/deleted.d.ts.map +0 -1
  37. package/dist/types/deteted.d.ts +0 -1
  38. package/dist/types/deteted.d.ts.map +0 -1
  39. package/dist/types/element-id/date.d.ts +0 -50
  40. package/dist/types/element-id/date.d.ts.map +0 -1
  41. package/dist/types/element-id/date.test.d.ts +0 -2
  42. package/dist/types/element-id/date.test.d.ts.map +0 -1
  43. package/dist/types/font/border.d.ts +0 -2435
  44. package/dist/types/font/border.d.ts.map +0 -1
  45. package/dist/types/font/border.test.d.ts +0 -2
  46. package/dist/types/font/border.test.d.ts.map +0 -1
  47. package/dist/types/font/date.d.ts +0 -50
  48. package/dist/types/font/date.d.ts.map +0 -1
  49. package/dist/types/font/date.test.d.ts +0 -2
  50. package/dist/types/font/date.test.d.ts.map +0 -1
  51. package/dist/types/gap-x/text-style.d.ts +0 -589
  52. package/dist/types/gap-x/text-style.d.ts.map +0 -1
  53. package/dist/types/gap-x/text-style.test.d.ts +0 -2
  54. package/dist/types/gap-x/text-style.test.d.ts.map +0 -1
  55. package/dist/types/gap-x copy/gap-x.d.ts +0 -177
  56. package/dist/types/gap-x copy/gap-x.d.ts.map +0 -1
  57. package/dist/types/gap-x copy/gap-x.test.d.ts +0 -2
  58. package/dist/types/gap-x copy/gap-x.test.d.ts.map +0 -1
  59. package/dist/types/gap-x copy/index.d.ts +0 -2
  60. package/dist/types/gap-x copy/index.d.ts.map +0 -1
  61. package/dist/types/gap-y/gap-x.d.ts +0 -177
  62. package/dist/types/gap-y/gap-x.d.ts.map +0 -1
  63. package/dist/types/gap-y/gap-x.test.d.ts +0 -2
  64. package/dist/types/gap-y/gap-x.test.d.ts.map +0 -1
  65. package/dist/types/grid/table.d.ts +0 -54
  66. package/dist/types/grid/table.d.ts.map +0 -1
  67. package/dist/types/grid/table.test.d.ts +0 -2
  68. package/dist/types/grid/table.test.d.ts.map +0 -1
  69. package/dist/types/image/date.d.ts +0 -50
  70. package/dist/types/image/date.d.ts.map +0 -1
  71. package/dist/types/image/date.test.d.ts +0 -2
  72. package/dist/types/image/date.test.d.ts.map +0 -1
  73. package/dist/types/image copy/image.d.ts +0 -267
  74. package/dist/types/image copy/image.d.ts.map +0 -1
  75. package/dist/types/image copy/image.test.d.ts +0 -2
  76. package/dist/types/image copy/image.test.d.ts.map +0 -1
  77. package/dist/types/image copy/index.d.ts +0 -2
  78. package/dist/types/image copy/index.d.ts.map +0 -1
  79. package/dist/types/images/image.d.ts +0 -267
  80. package/dist/types/images/image.d.ts.map +0 -1
  81. package/dist/types/images/image.test.d.ts +0 -2
  82. package/dist/types/images/image.test.d.ts.map +0 -1
  83. package/dist/types/margin/border.d.ts +0 -2435
  84. package/dist/types/margin/border.d.ts.map +0 -1
  85. package/dist/types/margin/border.test.d.ts +0 -2
  86. package/dist/types/margin/border.test.d.ts.map +0 -1
  87. package/dist/types/margin copy/index.d.ts +0 -2
  88. package/dist/types/margin copy/index.d.ts.map +0 -1
  89. package/dist/types/margin copy/margin.d.ts +0 -1026
  90. package/dist/types/margin copy/margin.d.ts.map +0 -1
  91. package/dist/types/margin copy/margin.test.d.ts +0 -2
  92. package/dist/types/margin copy/margin.test.d.ts.map +0 -1
  93. package/dist/types/navigation-links/date.d.ts +0 -50
  94. package/dist/types/navigation-links/date.d.ts.map +0 -1
  95. package/dist/types/navigation-links/date.test.d.ts +0 -2
  96. package/dist/types/navigation-links/date.test.d.ts.map +0 -1
  97. package/dist/types/padding/margin.d.ts +0 -1026
  98. package/dist/types/padding/margin.d.ts.map +0 -1
  99. package/dist/types/padding/margin.test.d.ts +0 -2
  100. package/dist/types/padding/margin.test.d.ts.map +0 -1
  101. package/dist/types/padding copy/index.d.ts +0 -2
  102. package/dist/types/padding copy/index.d.ts.map +0 -1
  103. package/dist/types/padding copy/padding.d.ts +0 -1026
  104. package/dist/types/padding copy/padding.d.ts.map +0 -1
  105. package/dist/types/padding copy/padding.test.d.ts +0 -2
  106. package/dist/types/padding copy/padding.test.d.ts.map +0 -1
  107. package/dist/types/table/date.d.ts +0 -50
  108. package/dist/types/table/date.d.ts.map +0 -1
  109. package/dist/types/table/date.test.d.ts +0 -2
  110. package/dist/types/table/date.test.d.ts.map +0 -1
  111. package/dist/types/table copy/index.d.ts +0 -2
  112. package/dist/types/table copy/index.d.ts.map +0 -1
  113. package/dist/types/table copy/table.d.ts +0 -54
  114. package/dist/types/table copy/table.d.ts.map +0 -1
  115. package/dist/types/table copy/table.test.d.ts +0 -2
  116. package/dist/types/table copy/table.test.d.ts.map +0 -1
  117. package/dist/types/table-form-fields/date.d.ts +0 -50
  118. package/dist/types/table-form-fields/date.d.ts.map +0 -1
  119. package/dist/types/table-form-fields/date.test.d.ts +0 -2
  120. package/dist/types/table-form-fields/date.test.d.ts.map +0 -1
  121. package/dist/types/text-area/date.d.ts +0 -50
  122. package/dist/types/text-area/date.d.ts.map +0 -1
  123. package/dist/types/text-area/date.test.d.ts +0 -2
  124. package/dist/types/text-area/date.test.d.ts.map +0 -1
  125. package/dist/types/text-style/font.test.d.ts +0 -2
  126. package/dist/types/text-style/font.test.d.ts.map +0 -1
  127. package/dist/types/text-style copy/index.d.ts +0 -2
  128. package/dist/types/text-style copy/index.d.ts.map +0 -1
  129. package/dist/types/text-style copy/text-style.d.ts +0 -589
  130. package/dist/types/text-style copy/text-style.d.ts.map +0 -1
  131. package/dist/types/text-style copy/text-style.test.d.ts +0 -2
  132. package/dist/types/text-style copy/text-style.test.d.ts.map +0 -1
  133. package/dist/types/typeahead/date.d.ts +0 -50
  134. package/dist/types/typeahead/date.d.ts.map +0 -1
  135. package/dist/types/typeahead/date.test.d.ts +0 -2
  136. package/dist/types/typeahead/date.test.d.ts.map +0 -1
  137. package/dist/types/typeahead/index.d.ts +0 -2
  138. package/dist/types/typeahead/index.d.ts.map +0 -1
  139. package/dist/types/typeahead/typeahead.d.ts +0 -50
  140. package/dist/types/typeahead/typeahead.d.ts.map +0 -1
  141. package/dist/types/typeahead/typeahead.test.d.ts +0 -2
  142. package/dist/types/typeahead/typeahead.test.d.ts.map +0 -1
  143. package/dist/types/video/date.d.ts +0 -50
  144. package/dist/types/video/date.d.ts.map +0 -1
  145. package/dist/types/video/date.test.d.ts +0 -2
  146. package/dist/types/video/date.test.d.ts.map +0 -1
  147. package/dist/types/video/font.test.d.ts +0 -2
  148. package/dist/types/video/font.test.d.ts.map +0 -1
  149. package/dist/types/width/padding.d.ts +0 -1026
  150. package/dist/types/width/padding.d.ts.map +0 -1
  151. package/dist/types/width/padding.test.d.ts +0 -2
  152. package/dist/types/width/padding.test.d.ts.map +0 -1
@@ -0,0 +1,3965 @@
1
+ import { z } from 'zod';
2
+ import { CopyContext, Options, Types } from '../prop-controllers';
3
+ export declare const backgroundImageDataSchema: z.ZodUnion<[z.ZodObject<{
4
+ imageId: z.ZodString;
5
+ position: z.ZodObject<{
6
+ x: z.ZodNumber;
7
+ y: z.ZodNumber;
8
+ }, "strip", z.ZodTypeAny, {
9
+ x: number;
10
+ y: number;
11
+ }, {
12
+ x: number;
13
+ y: number;
14
+ }>;
15
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
16
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
17
+ opacity: z.ZodOptional<z.ZodNumber>;
18
+ parallax: z.ZodOptional<z.ZodNumber>;
19
+ priority: z.ZodOptional<z.ZodBoolean>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ imageId: string;
22
+ position: {
23
+ x: number;
24
+ y: number;
25
+ };
26
+ size?: "cover" | "contain" | "auto" | undefined;
27
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
28
+ opacity?: number | undefined;
29
+ parallax?: number | undefined;
30
+ priority?: boolean | undefined;
31
+ }, {
32
+ imageId: string;
33
+ position: {
34
+ x: number;
35
+ y: number;
36
+ };
37
+ size?: "cover" | "contain" | "auto" | undefined;
38
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
39
+ opacity?: number | undefined;
40
+ parallax?: number | undefined;
41
+ priority?: boolean | undefined;
42
+ }>, z.ZodObject<{
43
+ version: z.ZodLiteral<1>;
44
+ image: z.ZodUnion<[z.ZodObject<{
45
+ version: z.ZodLiteral<1>;
46
+ type: z.ZodLiteral<"makeswift-file">;
47
+ id: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "makeswift-file";
50
+ version: 1;
51
+ id: string;
52
+ }, {
53
+ type: "makeswift-file";
54
+ version: 1;
55
+ id: string;
56
+ }>, z.ZodObject<{
57
+ version: z.ZodLiteral<1>;
58
+ type: z.ZodLiteral<"external-file">;
59
+ url: z.ZodString;
60
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ type: "external-file";
64
+ version: 1;
65
+ url: string;
66
+ width?: number | null | undefined;
67
+ height?: number | null | undefined;
68
+ }, {
69
+ type: "external-file";
70
+ version: 1;
71
+ url: string;
72
+ width?: number | null | undefined;
73
+ height?: number | null | undefined;
74
+ }>]>;
75
+ position: z.ZodObject<{
76
+ x: z.ZodNumber;
77
+ y: z.ZodNumber;
78
+ }, "strip", z.ZodTypeAny, {
79
+ x: number;
80
+ y: number;
81
+ }, {
82
+ x: number;
83
+ y: number;
84
+ }>;
85
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
86
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
87
+ opacity: z.ZodOptional<z.ZodNumber>;
88
+ parallax: z.ZodOptional<z.ZodNumber>;
89
+ priority: z.ZodOptional<z.ZodBoolean>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ version: 1;
92
+ position: {
93
+ x: number;
94
+ y: number;
95
+ };
96
+ image: {
97
+ type: "makeswift-file";
98
+ version: 1;
99
+ id: string;
100
+ } | {
101
+ type: "external-file";
102
+ version: 1;
103
+ url: string;
104
+ width?: number | null | undefined;
105
+ height?: number | null | undefined;
106
+ };
107
+ size?: "cover" | "contain" | "auto" | undefined;
108
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
109
+ opacity?: number | undefined;
110
+ parallax?: number | undefined;
111
+ priority?: boolean | undefined;
112
+ }, {
113
+ version: 1;
114
+ position: {
115
+ x: number;
116
+ y: number;
117
+ };
118
+ image: {
119
+ type: "makeswift-file";
120
+ version: 1;
121
+ id: string;
122
+ } | {
123
+ type: "external-file";
124
+ version: 1;
125
+ url: string;
126
+ width?: number | null | undefined;
127
+ height?: number | null | undefined;
128
+ };
129
+ size?: "cover" | "contain" | "auto" | undefined;
130
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
131
+ opacity?: number | undefined;
132
+ parallax?: number | undefined;
133
+ priority?: boolean | undefined;
134
+ }>]>;
135
+ export type BackgroundImageData = z.infer<typeof backgroundImageDataSchema>;
136
+ export declare const imageBackgroundDataSchema: z.ZodUnion<[z.ZodObject<{
137
+ type: z.ZodLiteral<"image">;
138
+ id: z.ZodString;
139
+ payload: z.ZodObject<{
140
+ imageId: z.ZodString;
141
+ position: z.ZodObject<{
142
+ x: z.ZodNumber;
143
+ y: z.ZodNumber;
144
+ }, "strip", z.ZodTypeAny, {
145
+ x: number;
146
+ y: number;
147
+ }, {
148
+ x: number;
149
+ y: number;
150
+ }>;
151
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
152
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
153
+ opacity: z.ZodOptional<z.ZodNumber>;
154
+ parallax: z.ZodOptional<z.ZodNumber>;
155
+ priority: z.ZodOptional<z.ZodBoolean>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ imageId: string;
158
+ position: {
159
+ x: number;
160
+ y: number;
161
+ };
162
+ size?: "cover" | "contain" | "auto" | undefined;
163
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
164
+ opacity?: number | undefined;
165
+ parallax?: number | undefined;
166
+ priority?: boolean | undefined;
167
+ }, {
168
+ imageId: string;
169
+ position: {
170
+ x: number;
171
+ y: number;
172
+ };
173
+ size?: "cover" | "contain" | "auto" | undefined;
174
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
175
+ opacity?: number | undefined;
176
+ parallax?: number | undefined;
177
+ priority?: boolean | undefined;
178
+ }>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "image";
181
+ id: string;
182
+ payload: {
183
+ imageId: string;
184
+ position: {
185
+ x: number;
186
+ y: number;
187
+ };
188
+ size?: "cover" | "contain" | "auto" | undefined;
189
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
190
+ opacity?: number | undefined;
191
+ parallax?: number | undefined;
192
+ priority?: boolean | undefined;
193
+ };
194
+ }, {
195
+ type: "image";
196
+ id: string;
197
+ payload: {
198
+ imageId: string;
199
+ position: {
200
+ x: number;
201
+ y: number;
202
+ };
203
+ size?: "cover" | "contain" | "auto" | undefined;
204
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
205
+ opacity?: number | undefined;
206
+ parallax?: number | undefined;
207
+ priority?: boolean | undefined;
208
+ };
209
+ }>, z.ZodObject<{
210
+ type: z.ZodLiteral<"image-v1">;
211
+ id: z.ZodString;
212
+ payload: z.ZodObject<{
213
+ version: z.ZodLiteral<1>;
214
+ image: z.ZodUnion<[z.ZodObject<{
215
+ version: z.ZodLiteral<1>;
216
+ type: z.ZodLiteral<"makeswift-file">;
217
+ id: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ type: "makeswift-file";
220
+ version: 1;
221
+ id: string;
222
+ }, {
223
+ type: "makeswift-file";
224
+ version: 1;
225
+ id: string;
226
+ }>, z.ZodObject<{
227
+ version: z.ZodLiteral<1>;
228
+ type: z.ZodLiteral<"external-file">;
229
+ url: z.ZodString;
230
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
231
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ type: "external-file";
234
+ version: 1;
235
+ url: string;
236
+ width?: number | null | undefined;
237
+ height?: number | null | undefined;
238
+ }, {
239
+ type: "external-file";
240
+ version: 1;
241
+ url: string;
242
+ width?: number | null | undefined;
243
+ height?: number | null | undefined;
244
+ }>]>;
245
+ position: z.ZodObject<{
246
+ x: z.ZodNumber;
247
+ y: z.ZodNumber;
248
+ }, "strip", z.ZodTypeAny, {
249
+ x: number;
250
+ y: number;
251
+ }, {
252
+ x: number;
253
+ y: number;
254
+ }>;
255
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
256
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
257
+ opacity: z.ZodOptional<z.ZodNumber>;
258
+ parallax: z.ZodOptional<z.ZodNumber>;
259
+ priority: z.ZodOptional<z.ZodBoolean>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ version: 1;
262
+ position: {
263
+ x: number;
264
+ y: number;
265
+ };
266
+ image: {
267
+ type: "makeswift-file";
268
+ version: 1;
269
+ id: string;
270
+ } | {
271
+ type: "external-file";
272
+ version: 1;
273
+ url: string;
274
+ width?: number | null | undefined;
275
+ height?: number | null | undefined;
276
+ };
277
+ size?: "cover" | "contain" | "auto" | undefined;
278
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
279
+ opacity?: number | undefined;
280
+ parallax?: number | undefined;
281
+ priority?: boolean | undefined;
282
+ }, {
283
+ version: 1;
284
+ position: {
285
+ x: number;
286
+ y: number;
287
+ };
288
+ image: {
289
+ type: "makeswift-file";
290
+ version: 1;
291
+ id: string;
292
+ } | {
293
+ type: "external-file";
294
+ version: 1;
295
+ url: string;
296
+ width?: number | null | undefined;
297
+ height?: number | null | undefined;
298
+ };
299
+ size?: "cover" | "contain" | "auto" | undefined;
300
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
301
+ opacity?: number | undefined;
302
+ parallax?: number | undefined;
303
+ priority?: boolean | undefined;
304
+ }>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type: "image-v1";
307
+ id: string;
308
+ payload: {
309
+ version: 1;
310
+ position: {
311
+ x: number;
312
+ y: number;
313
+ };
314
+ image: {
315
+ type: "makeswift-file";
316
+ version: 1;
317
+ id: string;
318
+ } | {
319
+ type: "external-file";
320
+ version: 1;
321
+ url: string;
322
+ width?: number | null | undefined;
323
+ height?: number | null | undefined;
324
+ };
325
+ size?: "cover" | "contain" | "auto" | undefined;
326
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
327
+ opacity?: number | undefined;
328
+ parallax?: number | undefined;
329
+ priority?: boolean | undefined;
330
+ };
331
+ }, {
332
+ type: "image-v1";
333
+ id: string;
334
+ payload: {
335
+ version: 1;
336
+ position: {
337
+ x: number;
338
+ y: number;
339
+ };
340
+ image: {
341
+ type: "makeswift-file";
342
+ version: 1;
343
+ id: string;
344
+ } | {
345
+ type: "external-file";
346
+ version: 1;
347
+ url: string;
348
+ width?: number | null | undefined;
349
+ height?: number | null | undefined;
350
+ };
351
+ size?: "cover" | "contain" | "auto" | undefined;
352
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
353
+ opacity?: number | undefined;
354
+ parallax?: number | undefined;
355
+ priority?: boolean | undefined;
356
+ };
357
+ }>]>;
358
+ export type ImageBackgroundData = z.infer<typeof imageBackgroundDataSchema>;
359
+ declare const backgroundDataSchema: z.ZodUnion<[z.ZodObject<{
360
+ type: z.ZodLiteral<"color">;
361
+ id: z.ZodString;
362
+ payload: z.ZodNullable<z.ZodObject<{
363
+ swatchId: z.ZodString;
364
+ alpha: z.ZodNumber;
365
+ }, "strip", z.ZodTypeAny, {
366
+ swatchId: string;
367
+ alpha: number;
368
+ }, {
369
+ swatchId: string;
370
+ alpha: number;
371
+ }>>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "color";
374
+ id: string;
375
+ payload: {
376
+ swatchId: string;
377
+ alpha: number;
378
+ } | null;
379
+ }, {
380
+ type: "color";
381
+ id: string;
382
+ payload: {
383
+ swatchId: string;
384
+ alpha: number;
385
+ } | null;
386
+ }>, z.ZodObject<{
387
+ type: z.ZodLiteral<"gradient">;
388
+ id: z.ZodString;
389
+ payload: z.ZodObject<{
390
+ angle: z.ZodOptional<z.ZodNumber>;
391
+ isRadial: z.ZodOptional<z.ZodBoolean>;
392
+ stops: z.ZodArray<z.ZodObject<{
393
+ id: z.ZodString;
394
+ location: z.ZodNumber;
395
+ color: z.ZodNullable<z.ZodObject<{
396
+ swatchId: z.ZodString;
397
+ alpha: z.ZodNumber;
398
+ }, "strip", z.ZodTypeAny, {
399
+ swatchId: string;
400
+ alpha: number;
401
+ }, {
402
+ swatchId: string;
403
+ alpha: number;
404
+ }>>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ id: string;
407
+ color: {
408
+ swatchId: string;
409
+ alpha: number;
410
+ } | null;
411
+ location: number;
412
+ }, {
413
+ id: string;
414
+ color: {
415
+ swatchId: string;
416
+ alpha: number;
417
+ } | null;
418
+ location: number;
419
+ }>, "many">;
420
+ }, "strip", z.ZodTypeAny, {
421
+ stops: {
422
+ id: string;
423
+ color: {
424
+ swatchId: string;
425
+ alpha: number;
426
+ } | null;
427
+ location: number;
428
+ }[];
429
+ angle?: number | undefined;
430
+ isRadial?: boolean | undefined;
431
+ }, {
432
+ stops: {
433
+ id: string;
434
+ color: {
435
+ swatchId: string;
436
+ alpha: number;
437
+ } | null;
438
+ location: number;
439
+ }[];
440
+ angle?: number | undefined;
441
+ isRadial?: boolean | undefined;
442
+ }>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ type: "gradient";
445
+ id: string;
446
+ payload: {
447
+ stops: {
448
+ id: string;
449
+ color: {
450
+ swatchId: string;
451
+ alpha: number;
452
+ } | null;
453
+ location: number;
454
+ }[];
455
+ angle?: number | undefined;
456
+ isRadial?: boolean | undefined;
457
+ };
458
+ }, {
459
+ type: "gradient";
460
+ id: string;
461
+ payload: {
462
+ stops: {
463
+ id: string;
464
+ color: {
465
+ swatchId: string;
466
+ alpha: number;
467
+ } | null;
468
+ location: number;
469
+ }[];
470
+ angle?: number | undefined;
471
+ isRadial?: boolean | undefined;
472
+ };
473
+ }>, z.ZodUnion<[z.ZodObject<{
474
+ type: z.ZodLiteral<"image">;
475
+ id: z.ZodString;
476
+ payload: z.ZodObject<{
477
+ imageId: z.ZodString;
478
+ position: z.ZodObject<{
479
+ x: z.ZodNumber;
480
+ y: z.ZodNumber;
481
+ }, "strip", z.ZodTypeAny, {
482
+ x: number;
483
+ y: number;
484
+ }, {
485
+ x: number;
486
+ y: number;
487
+ }>;
488
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
489
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
490
+ opacity: z.ZodOptional<z.ZodNumber>;
491
+ parallax: z.ZodOptional<z.ZodNumber>;
492
+ priority: z.ZodOptional<z.ZodBoolean>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ imageId: string;
495
+ position: {
496
+ x: number;
497
+ y: number;
498
+ };
499
+ size?: "cover" | "contain" | "auto" | undefined;
500
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
501
+ opacity?: number | undefined;
502
+ parallax?: number | undefined;
503
+ priority?: boolean | undefined;
504
+ }, {
505
+ imageId: string;
506
+ position: {
507
+ x: number;
508
+ y: number;
509
+ };
510
+ size?: "cover" | "contain" | "auto" | undefined;
511
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
512
+ opacity?: number | undefined;
513
+ parallax?: number | undefined;
514
+ priority?: boolean | undefined;
515
+ }>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ type: "image";
518
+ id: string;
519
+ payload: {
520
+ imageId: string;
521
+ position: {
522
+ x: number;
523
+ y: number;
524
+ };
525
+ size?: "cover" | "contain" | "auto" | undefined;
526
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
527
+ opacity?: number | undefined;
528
+ parallax?: number | undefined;
529
+ priority?: boolean | undefined;
530
+ };
531
+ }, {
532
+ type: "image";
533
+ id: string;
534
+ payload: {
535
+ imageId: string;
536
+ position: {
537
+ x: number;
538
+ y: number;
539
+ };
540
+ size?: "cover" | "contain" | "auto" | undefined;
541
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
542
+ opacity?: number | undefined;
543
+ parallax?: number | undefined;
544
+ priority?: boolean | undefined;
545
+ };
546
+ }>, z.ZodObject<{
547
+ type: z.ZodLiteral<"image-v1">;
548
+ id: z.ZodString;
549
+ payload: z.ZodObject<{
550
+ version: z.ZodLiteral<1>;
551
+ image: z.ZodUnion<[z.ZodObject<{
552
+ version: z.ZodLiteral<1>;
553
+ type: z.ZodLiteral<"makeswift-file">;
554
+ id: z.ZodString;
555
+ }, "strip", z.ZodTypeAny, {
556
+ type: "makeswift-file";
557
+ version: 1;
558
+ id: string;
559
+ }, {
560
+ type: "makeswift-file";
561
+ version: 1;
562
+ id: string;
563
+ }>, z.ZodObject<{
564
+ version: z.ZodLiteral<1>;
565
+ type: z.ZodLiteral<"external-file">;
566
+ url: z.ZodString;
567
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
568
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ type: "external-file";
571
+ version: 1;
572
+ url: string;
573
+ width?: number | null | undefined;
574
+ height?: number | null | undefined;
575
+ }, {
576
+ type: "external-file";
577
+ version: 1;
578
+ url: string;
579
+ width?: number | null | undefined;
580
+ height?: number | null | undefined;
581
+ }>]>;
582
+ position: z.ZodObject<{
583
+ x: z.ZodNumber;
584
+ y: z.ZodNumber;
585
+ }, "strip", z.ZodTypeAny, {
586
+ x: number;
587
+ y: number;
588
+ }, {
589
+ x: number;
590
+ y: number;
591
+ }>;
592
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
593
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
594
+ opacity: z.ZodOptional<z.ZodNumber>;
595
+ parallax: z.ZodOptional<z.ZodNumber>;
596
+ priority: z.ZodOptional<z.ZodBoolean>;
597
+ }, "strip", z.ZodTypeAny, {
598
+ version: 1;
599
+ position: {
600
+ x: number;
601
+ y: number;
602
+ };
603
+ image: {
604
+ type: "makeswift-file";
605
+ version: 1;
606
+ id: string;
607
+ } | {
608
+ type: "external-file";
609
+ version: 1;
610
+ url: string;
611
+ width?: number | null | undefined;
612
+ height?: number | null | undefined;
613
+ };
614
+ size?: "cover" | "contain" | "auto" | undefined;
615
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
616
+ opacity?: number | undefined;
617
+ parallax?: number | undefined;
618
+ priority?: boolean | undefined;
619
+ }, {
620
+ version: 1;
621
+ position: {
622
+ x: number;
623
+ y: number;
624
+ };
625
+ image: {
626
+ type: "makeswift-file";
627
+ version: 1;
628
+ id: string;
629
+ } | {
630
+ type: "external-file";
631
+ version: 1;
632
+ url: string;
633
+ width?: number | null | undefined;
634
+ height?: number | null | undefined;
635
+ };
636
+ size?: "cover" | "contain" | "auto" | undefined;
637
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
638
+ opacity?: number | undefined;
639
+ parallax?: number | undefined;
640
+ priority?: boolean | undefined;
641
+ }>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ type: "image-v1";
644
+ id: string;
645
+ payload: {
646
+ version: 1;
647
+ position: {
648
+ x: number;
649
+ y: number;
650
+ };
651
+ image: {
652
+ type: "makeswift-file";
653
+ version: 1;
654
+ id: string;
655
+ } | {
656
+ type: "external-file";
657
+ version: 1;
658
+ url: string;
659
+ width?: number | null | undefined;
660
+ height?: number | null | undefined;
661
+ };
662
+ size?: "cover" | "contain" | "auto" | undefined;
663
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
664
+ opacity?: number | undefined;
665
+ parallax?: number | undefined;
666
+ priority?: boolean | undefined;
667
+ };
668
+ }, {
669
+ type: "image-v1";
670
+ id: string;
671
+ payload: {
672
+ version: 1;
673
+ position: {
674
+ x: number;
675
+ y: number;
676
+ };
677
+ image: {
678
+ type: "makeswift-file";
679
+ version: 1;
680
+ id: string;
681
+ } | {
682
+ type: "external-file";
683
+ version: 1;
684
+ url: string;
685
+ width?: number | null | undefined;
686
+ height?: number | null | undefined;
687
+ };
688
+ size?: "cover" | "contain" | "auto" | undefined;
689
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
690
+ opacity?: number | undefined;
691
+ parallax?: number | undefined;
692
+ priority?: boolean | undefined;
693
+ };
694
+ }>]>, z.ZodObject<{
695
+ type: z.ZodLiteral<"video">;
696
+ id: z.ZodString;
697
+ payload: z.ZodObject<{
698
+ url: z.ZodOptional<z.ZodString>;
699
+ maskColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
700
+ swatchId: z.ZodString;
701
+ alpha: z.ZodNumber;
702
+ }, "strip", z.ZodTypeAny, {
703
+ swatchId: string;
704
+ alpha: number;
705
+ }, {
706
+ swatchId: string;
707
+ alpha: number;
708
+ }>>>;
709
+ opacity: z.ZodOptional<z.ZodNumber>;
710
+ zoom: z.ZodOptional<z.ZodNumber>;
711
+ aspectRatio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"wide">, z.ZodLiteral<"standard">]>>;
712
+ parallax: z.ZodOptional<z.ZodNumber>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ url?: string | undefined;
715
+ maskColor?: {
716
+ swatchId: string;
717
+ alpha: number;
718
+ } | null | undefined;
719
+ opacity?: number | undefined;
720
+ zoom?: number | undefined;
721
+ aspectRatio?: "wide" | "standard" | undefined;
722
+ parallax?: number | undefined;
723
+ }, {
724
+ url?: string | undefined;
725
+ maskColor?: {
726
+ swatchId: string;
727
+ alpha: number;
728
+ } | null | undefined;
729
+ opacity?: number | undefined;
730
+ zoom?: number | undefined;
731
+ aspectRatio?: "wide" | "standard" | undefined;
732
+ parallax?: number | undefined;
733
+ }>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ type: "video";
736
+ id: string;
737
+ payload: {
738
+ url?: string | undefined;
739
+ maskColor?: {
740
+ swatchId: string;
741
+ alpha: number;
742
+ } | null | undefined;
743
+ opacity?: number | undefined;
744
+ zoom?: number | undefined;
745
+ aspectRatio?: "wide" | "standard" | undefined;
746
+ parallax?: number | undefined;
747
+ };
748
+ }, {
749
+ type: "video";
750
+ id: string;
751
+ payload: {
752
+ url?: string | undefined;
753
+ maskColor?: {
754
+ swatchId: string;
755
+ alpha: number;
756
+ } | null | undefined;
757
+ opacity?: number | undefined;
758
+ zoom?: number | undefined;
759
+ aspectRatio?: "wide" | "standard" | undefined;
760
+ parallax?: number | undefined;
761
+ };
762
+ }>]>;
763
+ export type BackgroundData = z.infer<typeof backgroundDataSchema>;
764
+ declare const responsiveBackgroundsDataSchema: z.ZodArray<z.ZodObject<{
765
+ deviceId: z.ZodString;
766
+ value: z.ZodArray<z.ZodUnion<[z.ZodObject<{
767
+ type: z.ZodLiteral<"color">;
768
+ id: z.ZodString;
769
+ payload: z.ZodNullable<z.ZodObject<{
770
+ swatchId: z.ZodString;
771
+ alpha: z.ZodNumber;
772
+ }, "strip", z.ZodTypeAny, {
773
+ swatchId: string;
774
+ alpha: number;
775
+ }, {
776
+ swatchId: string;
777
+ alpha: number;
778
+ }>>;
779
+ }, "strip", z.ZodTypeAny, {
780
+ type: "color";
781
+ id: string;
782
+ payload: {
783
+ swatchId: string;
784
+ alpha: number;
785
+ } | null;
786
+ }, {
787
+ type: "color";
788
+ id: string;
789
+ payload: {
790
+ swatchId: string;
791
+ alpha: number;
792
+ } | null;
793
+ }>, z.ZodObject<{
794
+ type: z.ZodLiteral<"gradient">;
795
+ id: z.ZodString;
796
+ payload: z.ZodObject<{
797
+ angle: z.ZodOptional<z.ZodNumber>;
798
+ isRadial: z.ZodOptional<z.ZodBoolean>;
799
+ stops: z.ZodArray<z.ZodObject<{
800
+ id: z.ZodString;
801
+ location: z.ZodNumber;
802
+ color: z.ZodNullable<z.ZodObject<{
803
+ swatchId: z.ZodString;
804
+ alpha: z.ZodNumber;
805
+ }, "strip", z.ZodTypeAny, {
806
+ swatchId: string;
807
+ alpha: number;
808
+ }, {
809
+ swatchId: string;
810
+ alpha: number;
811
+ }>>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ id: string;
814
+ color: {
815
+ swatchId: string;
816
+ alpha: number;
817
+ } | null;
818
+ location: number;
819
+ }, {
820
+ id: string;
821
+ color: {
822
+ swatchId: string;
823
+ alpha: number;
824
+ } | null;
825
+ location: number;
826
+ }>, "many">;
827
+ }, "strip", z.ZodTypeAny, {
828
+ stops: {
829
+ id: string;
830
+ color: {
831
+ swatchId: string;
832
+ alpha: number;
833
+ } | null;
834
+ location: number;
835
+ }[];
836
+ angle?: number | undefined;
837
+ isRadial?: boolean | undefined;
838
+ }, {
839
+ stops: {
840
+ id: string;
841
+ color: {
842
+ swatchId: string;
843
+ alpha: number;
844
+ } | null;
845
+ location: number;
846
+ }[];
847
+ angle?: number | undefined;
848
+ isRadial?: boolean | undefined;
849
+ }>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ type: "gradient";
852
+ id: string;
853
+ payload: {
854
+ stops: {
855
+ id: string;
856
+ color: {
857
+ swatchId: string;
858
+ alpha: number;
859
+ } | null;
860
+ location: number;
861
+ }[];
862
+ angle?: number | undefined;
863
+ isRadial?: boolean | undefined;
864
+ };
865
+ }, {
866
+ type: "gradient";
867
+ id: string;
868
+ payload: {
869
+ stops: {
870
+ id: string;
871
+ color: {
872
+ swatchId: string;
873
+ alpha: number;
874
+ } | null;
875
+ location: number;
876
+ }[];
877
+ angle?: number | undefined;
878
+ isRadial?: boolean | undefined;
879
+ };
880
+ }>, z.ZodUnion<[z.ZodObject<{
881
+ type: z.ZodLiteral<"image">;
882
+ id: z.ZodString;
883
+ payload: z.ZodObject<{
884
+ imageId: z.ZodString;
885
+ position: z.ZodObject<{
886
+ x: z.ZodNumber;
887
+ y: z.ZodNumber;
888
+ }, "strip", z.ZodTypeAny, {
889
+ x: number;
890
+ y: number;
891
+ }, {
892
+ x: number;
893
+ y: number;
894
+ }>;
895
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
896
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
897
+ opacity: z.ZodOptional<z.ZodNumber>;
898
+ parallax: z.ZodOptional<z.ZodNumber>;
899
+ priority: z.ZodOptional<z.ZodBoolean>;
900
+ }, "strip", z.ZodTypeAny, {
901
+ imageId: string;
902
+ position: {
903
+ x: number;
904
+ y: number;
905
+ };
906
+ size?: "cover" | "contain" | "auto" | undefined;
907
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
908
+ opacity?: number | undefined;
909
+ parallax?: number | undefined;
910
+ priority?: boolean | undefined;
911
+ }, {
912
+ imageId: string;
913
+ position: {
914
+ x: number;
915
+ y: number;
916
+ };
917
+ size?: "cover" | "contain" | "auto" | undefined;
918
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
919
+ opacity?: number | undefined;
920
+ parallax?: number | undefined;
921
+ priority?: boolean | undefined;
922
+ }>;
923
+ }, "strip", z.ZodTypeAny, {
924
+ type: "image";
925
+ id: string;
926
+ payload: {
927
+ imageId: string;
928
+ position: {
929
+ x: number;
930
+ y: number;
931
+ };
932
+ size?: "cover" | "contain" | "auto" | undefined;
933
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
934
+ opacity?: number | undefined;
935
+ parallax?: number | undefined;
936
+ priority?: boolean | undefined;
937
+ };
938
+ }, {
939
+ type: "image";
940
+ id: string;
941
+ payload: {
942
+ imageId: string;
943
+ position: {
944
+ x: number;
945
+ y: number;
946
+ };
947
+ size?: "cover" | "contain" | "auto" | undefined;
948
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
949
+ opacity?: number | undefined;
950
+ parallax?: number | undefined;
951
+ priority?: boolean | undefined;
952
+ };
953
+ }>, z.ZodObject<{
954
+ type: z.ZodLiteral<"image-v1">;
955
+ id: z.ZodString;
956
+ payload: z.ZodObject<{
957
+ version: z.ZodLiteral<1>;
958
+ image: z.ZodUnion<[z.ZodObject<{
959
+ version: z.ZodLiteral<1>;
960
+ type: z.ZodLiteral<"makeswift-file">;
961
+ id: z.ZodString;
962
+ }, "strip", z.ZodTypeAny, {
963
+ type: "makeswift-file";
964
+ version: 1;
965
+ id: string;
966
+ }, {
967
+ type: "makeswift-file";
968
+ version: 1;
969
+ id: string;
970
+ }>, z.ZodObject<{
971
+ version: z.ZodLiteral<1>;
972
+ type: z.ZodLiteral<"external-file">;
973
+ url: z.ZodString;
974
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
975
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ type: "external-file";
978
+ version: 1;
979
+ url: string;
980
+ width?: number | null | undefined;
981
+ height?: number | null | undefined;
982
+ }, {
983
+ type: "external-file";
984
+ version: 1;
985
+ url: string;
986
+ width?: number | null | undefined;
987
+ height?: number | null | undefined;
988
+ }>]>;
989
+ position: z.ZodObject<{
990
+ x: z.ZodNumber;
991
+ y: z.ZodNumber;
992
+ }, "strip", z.ZodTypeAny, {
993
+ x: number;
994
+ y: number;
995
+ }, {
996
+ x: number;
997
+ y: number;
998
+ }>;
999
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
1000
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
1001
+ opacity: z.ZodOptional<z.ZodNumber>;
1002
+ parallax: z.ZodOptional<z.ZodNumber>;
1003
+ priority: z.ZodOptional<z.ZodBoolean>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ version: 1;
1006
+ position: {
1007
+ x: number;
1008
+ y: number;
1009
+ };
1010
+ image: {
1011
+ type: "makeswift-file";
1012
+ version: 1;
1013
+ id: string;
1014
+ } | {
1015
+ type: "external-file";
1016
+ version: 1;
1017
+ url: string;
1018
+ width?: number | null | undefined;
1019
+ height?: number | null | undefined;
1020
+ };
1021
+ size?: "cover" | "contain" | "auto" | undefined;
1022
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1023
+ opacity?: number | undefined;
1024
+ parallax?: number | undefined;
1025
+ priority?: boolean | undefined;
1026
+ }, {
1027
+ version: 1;
1028
+ position: {
1029
+ x: number;
1030
+ y: number;
1031
+ };
1032
+ image: {
1033
+ type: "makeswift-file";
1034
+ version: 1;
1035
+ id: string;
1036
+ } | {
1037
+ type: "external-file";
1038
+ version: 1;
1039
+ url: string;
1040
+ width?: number | null | undefined;
1041
+ height?: number | null | undefined;
1042
+ };
1043
+ size?: "cover" | "contain" | "auto" | undefined;
1044
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1045
+ opacity?: number | undefined;
1046
+ parallax?: number | undefined;
1047
+ priority?: boolean | undefined;
1048
+ }>;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ type: "image-v1";
1051
+ id: string;
1052
+ payload: {
1053
+ version: 1;
1054
+ position: {
1055
+ x: number;
1056
+ y: number;
1057
+ };
1058
+ image: {
1059
+ type: "makeswift-file";
1060
+ version: 1;
1061
+ id: string;
1062
+ } | {
1063
+ type: "external-file";
1064
+ version: 1;
1065
+ url: string;
1066
+ width?: number | null | undefined;
1067
+ height?: number | null | undefined;
1068
+ };
1069
+ size?: "cover" | "contain" | "auto" | undefined;
1070
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1071
+ opacity?: number | undefined;
1072
+ parallax?: number | undefined;
1073
+ priority?: boolean | undefined;
1074
+ };
1075
+ }, {
1076
+ type: "image-v1";
1077
+ id: string;
1078
+ payload: {
1079
+ version: 1;
1080
+ position: {
1081
+ x: number;
1082
+ y: number;
1083
+ };
1084
+ image: {
1085
+ type: "makeswift-file";
1086
+ version: 1;
1087
+ id: string;
1088
+ } | {
1089
+ type: "external-file";
1090
+ version: 1;
1091
+ url: string;
1092
+ width?: number | null | undefined;
1093
+ height?: number | null | undefined;
1094
+ };
1095
+ size?: "cover" | "contain" | "auto" | undefined;
1096
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1097
+ opacity?: number | undefined;
1098
+ parallax?: number | undefined;
1099
+ priority?: boolean | undefined;
1100
+ };
1101
+ }>]>, z.ZodObject<{
1102
+ type: z.ZodLiteral<"video">;
1103
+ id: z.ZodString;
1104
+ payload: z.ZodObject<{
1105
+ url: z.ZodOptional<z.ZodString>;
1106
+ maskColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1107
+ swatchId: z.ZodString;
1108
+ alpha: z.ZodNumber;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ swatchId: string;
1111
+ alpha: number;
1112
+ }, {
1113
+ swatchId: string;
1114
+ alpha: number;
1115
+ }>>>;
1116
+ opacity: z.ZodOptional<z.ZodNumber>;
1117
+ zoom: z.ZodOptional<z.ZodNumber>;
1118
+ aspectRatio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"wide">, z.ZodLiteral<"standard">]>>;
1119
+ parallax: z.ZodOptional<z.ZodNumber>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ url?: string | undefined;
1122
+ maskColor?: {
1123
+ swatchId: string;
1124
+ alpha: number;
1125
+ } | null | undefined;
1126
+ opacity?: number | undefined;
1127
+ zoom?: number | undefined;
1128
+ aspectRatio?: "wide" | "standard" | undefined;
1129
+ parallax?: number | undefined;
1130
+ }, {
1131
+ url?: string | undefined;
1132
+ maskColor?: {
1133
+ swatchId: string;
1134
+ alpha: number;
1135
+ } | null | undefined;
1136
+ opacity?: number | undefined;
1137
+ zoom?: number | undefined;
1138
+ aspectRatio?: "wide" | "standard" | undefined;
1139
+ parallax?: number | undefined;
1140
+ }>;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ type: "video";
1143
+ id: string;
1144
+ payload: {
1145
+ url?: string | undefined;
1146
+ maskColor?: {
1147
+ swatchId: string;
1148
+ alpha: number;
1149
+ } | null | undefined;
1150
+ opacity?: number | undefined;
1151
+ zoom?: number | undefined;
1152
+ aspectRatio?: "wide" | "standard" | undefined;
1153
+ parallax?: number | undefined;
1154
+ };
1155
+ }, {
1156
+ type: "video";
1157
+ id: string;
1158
+ payload: {
1159
+ url?: string | undefined;
1160
+ maskColor?: {
1161
+ swatchId: string;
1162
+ alpha: number;
1163
+ } | null | undefined;
1164
+ opacity?: number | undefined;
1165
+ zoom?: number | undefined;
1166
+ aspectRatio?: "wide" | "standard" | undefined;
1167
+ parallax?: number | undefined;
1168
+ };
1169
+ }>]>, "many">;
1170
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1171
+ value: ({
1172
+ type: "color";
1173
+ id: string;
1174
+ payload: {
1175
+ swatchId: string;
1176
+ alpha: number;
1177
+ } | null;
1178
+ } | {
1179
+ type: "gradient";
1180
+ id: string;
1181
+ payload: {
1182
+ stops: {
1183
+ id: string;
1184
+ color: {
1185
+ swatchId: string;
1186
+ alpha: number;
1187
+ } | null;
1188
+ location: number;
1189
+ }[];
1190
+ angle?: number | undefined;
1191
+ isRadial?: boolean | undefined;
1192
+ };
1193
+ } | {
1194
+ type: "image";
1195
+ id: string;
1196
+ payload: {
1197
+ imageId: string;
1198
+ position: {
1199
+ x: number;
1200
+ y: number;
1201
+ };
1202
+ size?: "cover" | "contain" | "auto" | undefined;
1203
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1204
+ opacity?: number | undefined;
1205
+ parallax?: number | undefined;
1206
+ priority?: boolean | undefined;
1207
+ };
1208
+ } | {
1209
+ type: "image-v1";
1210
+ id: string;
1211
+ payload: {
1212
+ version: 1;
1213
+ position: {
1214
+ x: number;
1215
+ y: number;
1216
+ };
1217
+ image: {
1218
+ type: "makeswift-file";
1219
+ version: 1;
1220
+ id: string;
1221
+ } | {
1222
+ type: "external-file";
1223
+ version: 1;
1224
+ url: string;
1225
+ width?: number | null | undefined;
1226
+ height?: number | null | undefined;
1227
+ };
1228
+ size?: "cover" | "contain" | "auto" | undefined;
1229
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1230
+ opacity?: number | undefined;
1231
+ parallax?: number | undefined;
1232
+ priority?: boolean | undefined;
1233
+ };
1234
+ } | {
1235
+ type: "video";
1236
+ id: string;
1237
+ payload: {
1238
+ url?: string | undefined;
1239
+ maskColor?: {
1240
+ swatchId: string;
1241
+ alpha: number;
1242
+ } | null | undefined;
1243
+ opacity?: number | undefined;
1244
+ zoom?: number | undefined;
1245
+ aspectRatio?: "wide" | "standard" | undefined;
1246
+ parallax?: number | undefined;
1247
+ };
1248
+ })[];
1249
+ deviceId: string;
1250
+ }, {
1251
+ value: ({
1252
+ type: "color";
1253
+ id: string;
1254
+ payload: {
1255
+ swatchId: string;
1256
+ alpha: number;
1257
+ } | null;
1258
+ } | {
1259
+ type: "gradient";
1260
+ id: string;
1261
+ payload: {
1262
+ stops: {
1263
+ id: string;
1264
+ color: {
1265
+ swatchId: string;
1266
+ alpha: number;
1267
+ } | null;
1268
+ location: number;
1269
+ }[];
1270
+ angle?: number | undefined;
1271
+ isRadial?: boolean | undefined;
1272
+ };
1273
+ } | {
1274
+ type: "image";
1275
+ id: string;
1276
+ payload: {
1277
+ imageId: string;
1278
+ position: {
1279
+ x: number;
1280
+ y: number;
1281
+ };
1282
+ size?: "cover" | "contain" | "auto" | undefined;
1283
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1284
+ opacity?: number | undefined;
1285
+ parallax?: number | undefined;
1286
+ priority?: boolean | undefined;
1287
+ };
1288
+ } | {
1289
+ type: "image-v1";
1290
+ id: string;
1291
+ payload: {
1292
+ version: 1;
1293
+ position: {
1294
+ x: number;
1295
+ y: number;
1296
+ };
1297
+ image: {
1298
+ type: "makeswift-file";
1299
+ version: 1;
1300
+ id: string;
1301
+ } | {
1302
+ type: "external-file";
1303
+ version: 1;
1304
+ url: string;
1305
+ width?: number | null | undefined;
1306
+ height?: number | null | undefined;
1307
+ };
1308
+ size?: "cover" | "contain" | "auto" | undefined;
1309
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1310
+ opacity?: number | undefined;
1311
+ parallax?: number | undefined;
1312
+ priority?: boolean | undefined;
1313
+ };
1314
+ } | {
1315
+ type: "video";
1316
+ id: string;
1317
+ payload: {
1318
+ url?: string | undefined;
1319
+ maskColor?: {
1320
+ swatchId: string;
1321
+ alpha: number;
1322
+ } | null | undefined;
1323
+ opacity?: number | undefined;
1324
+ zoom?: number | undefined;
1325
+ aspectRatio?: "wide" | "standard" | undefined;
1326
+ parallax?: number | undefined;
1327
+ };
1328
+ })[];
1329
+ deviceId: string;
1330
+ }>, "many">;
1331
+ export type ResponsiveBackgroundsData = z.infer<typeof responsiveBackgroundsDataSchema>;
1332
+ declare const backgroundsPropControllerDataV1Schema: z.ZodArray<z.ZodObject<{
1333
+ deviceId: z.ZodString;
1334
+ value: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1335
+ type: z.ZodLiteral<"color">;
1336
+ id: z.ZodString;
1337
+ payload: z.ZodNullable<z.ZodObject<{
1338
+ swatchId: z.ZodString;
1339
+ alpha: z.ZodNumber;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ swatchId: string;
1342
+ alpha: number;
1343
+ }, {
1344
+ swatchId: string;
1345
+ alpha: number;
1346
+ }>>;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ type: "color";
1349
+ id: string;
1350
+ payload: {
1351
+ swatchId: string;
1352
+ alpha: number;
1353
+ } | null;
1354
+ }, {
1355
+ type: "color";
1356
+ id: string;
1357
+ payload: {
1358
+ swatchId: string;
1359
+ alpha: number;
1360
+ } | null;
1361
+ }>, z.ZodObject<{
1362
+ type: z.ZodLiteral<"gradient">;
1363
+ id: z.ZodString;
1364
+ payload: z.ZodObject<{
1365
+ angle: z.ZodOptional<z.ZodNumber>;
1366
+ isRadial: z.ZodOptional<z.ZodBoolean>;
1367
+ stops: z.ZodArray<z.ZodObject<{
1368
+ id: z.ZodString;
1369
+ location: z.ZodNumber;
1370
+ color: z.ZodNullable<z.ZodObject<{
1371
+ swatchId: z.ZodString;
1372
+ alpha: z.ZodNumber;
1373
+ }, "strip", z.ZodTypeAny, {
1374
+ swatchId: string;
1375
+ alpha: number;
1376
+ }, {
1377
+ swatchId: string;
1378
+ alpha: number;
1379
+ }>>;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ id: string;
1382
+ color: {
1383
+ swatchId: string;
1384
+ alpha: number;
1385
+ } | null;
1386
+ location: number;
1387
+ }, {
1388
+ id: string;
1389
+ color: {
1390
+ swatchId: string;
1391
+ alpha: number;
1392
+ } | null;
1393
+ location: number;
1394
+ }>, "many">;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ stops: {
1397
+ id: string;
1398
+ color: {
1399
+ swatchId: string;
1400
+ alpha: number;
1401
+ } | null;
1402
+ location: number;
1403
+ }[];
1404
+ angle?: number | undefined;
1405
+ isRadial?: boolean | undefined;
1406
+ }, {
1407
+ stops: {
1408
+ id: string;
1409
+ color: {
1410
+ swatchId: string;
1411
+ alpha: number;
1412
+ } | null;
1413
+ location: number;
1414
+ }[];
1415
+ angle?: number | undefined;
1416
+ isRadial?: boolean | undefined;
1417
+ }>;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ type: "gradient";
1420
+ id: string;
1421
+ payload: {
1422
+ stops: {
1423
+ id: string;
1424
+ color: {
1425
+ swatchId: string;
1426
+ alpha: number;
1427
+ } | null;
1428
+ location: number;
1429
+ }[];
1430
+ angle?: number | undefined;
1431
+ isRadial?: boolean | undefined;
1432
+ };
1433
+ }, {
1434
+ type: "gradient";
1435
+ id: string;
1436
+ payload: {
1437
+ stops: {
1438
+ id: string;
1439
+ color: {
1440
+ swatchId: string;
1441
+ alpha: number;
1442
+ } | null;
1443
+ location: number;
1444
+ }[];
1445
+ angle?: number | undefined;
1446
+ isRadial?: boolean | undefined;
1447
+ };
1448
+ }>, z.ZodUnion<[z.ZodObject<{
1449
+ type: z.ZodLiteral<"image">;
1450
+ id: z.ZodString;
1451
+ payload: z.ZodObject<{
1452
+ imageId: z.ZodString;
1453
+ position: z.ZodObject<{
1454
+ x: z.ZodNumber;
1455
+ y: z.ZodNumber;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ x: number;
1458
+ y: number;
1459
+ }, {
1460
+ x: number;
1461
+ y: number;
1462
+ }>;
1463
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
1464
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
1465
+ opacity: z.ZodOptional<z.ZodNumber>;
1466
+ parallax: z.ZodOptional<z.ZodNumber>;
1467
+ priority: z.ZodOptional<z.ZodBoolean>;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ imageId: string;
1470
+ position: {
1471
+ x: number;
1472
+ y: number;
1473
+ };
1474
+ size?: "cover" | "contain" | "auto" | undefined;
1475
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1476
+ opacity?: number | undefined;
1477
+ parallax?: number | undefined;
1478
+ priority?: boolean | undefined;
1479
+ }, {
1480
+ imageId: string;
1481
+ position: {
1482
+ x: number;
1483
+ y: number;
1484
+ };
1485
+ size?: "cover" | "contain" | "auto" | undefined;
1486
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1487
+ opacity?: number | undefined;
1488
+ parallax?: number | undefined;
1489
+ priority?: boolean | undefined;
1490
+ }>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ type: "image";
1493
+ id: string;
1494
+ payload: {
1495
+ imageId: string;
1496
+ position: {
1497
+ x: number;
1498
+ y: number;
1499
+ };
1500
+ size?: "cover" | "contain" | "auto" | undefined;
1501
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1502
+ opacity?: number | undefined;
1503
+ parallax?: number | undefined;
1504
+ priority?: boolean | undefined;
1505
+ };
1506
+ }, {
1507
+ type: "image";
1508
+ id: string;
1509
+ payload: {
1510
+ imageId: string;
1511
+ position: {
1512
+ x: number;
1513
+ y: number;
1514
+ };
1515
+ size?: "cover" | "contain" | "auto" | undefined;
1516
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1517
+ opacity?: number | undefined;
1518
+ parallax?: number | undefined;
1519
+ priority?: boolean | undefined;
1520
+ };
1521
+ }>, z.ZodObject<{
1522
+ type: z.ZodLiteral<"image-v1">;
1523
+ id: z.ZodString;
1524
+ payload: z.ZodObject<{
1525
+ version: z.ZodLiteral<1>;
1526
+ image: z.ZodUnion<[z.ZodObject<{
1527
+ version: z.ZodLiteral<1>;
1528
+ type: z.ZodLiteral<"makeswift-file">;
1529
+ id: z.ZodString;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ type: "makeswift-file";
1532
+ version: 1;
1533
+ id: string;
1534
+ }, {
1535
+ type: "makeswift-file";
1536
+ version: 1;
1537
+ id: string;
1538
+ }>, z.ZodObject<{
1539
+ version: z.ZodLiteral<1>;
1540
+ type: z.ZodLiteral<"external-file">;
1541
+ url: z.ZodString;
1542
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1543
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ type: "external-file";
1546
+ version: 1;
1547
+ url: string;
1548
+ width?: number | null | undefined;
1549
+ height?: number | null | undefined;
1550
+ }, {
1551
+ type: "external-file";
1552
+ version: 1;
1553
+ url: string;
1554
+ width?: number | null | undefined;
1555
+ height?: number | null | undefined;
1556
+ }>]>;
1557
+ position: z.ZodObject<{
1558
+ x: z.ZodNumber;
1559
+ y: z.ZodNumber;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ x: number;
1562
+ y: number;
1563
+ }, {
1564
+ x: number;
1565
+ y: number;
1566
+ }>;
1567
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
1568
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
1569
+ opacity: z.ZodOptional<z.ZodNumber>;
1570
+ parallax: z.ZodOptional<z.ZodNumber>;
1571
+ priority: z.ZodOptional<z.ZodBoolean>;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ version: 1;
1574
+ position: {
1575
+ x: number;
1576
+ y: number;
1577
+ };
1578
+ image: {
1579
+ type: "makeswift-file";
1580
+ version: 1;
1581
+ id: string;
1582
+ } | {
1583
+ type: "external-file";
1584
+ version: 1;
1585
+ url: string;
1586
+ width?: number | null | undefined;
1587
+ height?: number | null | undefined;
1588
+ };
1589
+ size?: "cover" | "contain" | "auto" | undefined;
1590
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1591
+ opacity?: number | undefined;
1592
+ parallax?: number | undefined;
1593
+ priority?: boolean | undefined;
1594
+ }, {
1595
+ version: 1;
1596
+ position: {
1597
+ x: number;
1598
+ y: number;
1599
+ };
1600
+ image: {
1601
+ type: "makeswift-file";
1602
+ version: 1;
1603
+ id: string;
1604
+ } | {
1605
+ type: "external-file";
1606
+ version: 1;
1607
+ url: string;
1608
+ width?: number | null | undefined;
1609
+ height?: number | null | undefined;
1610
+ };
1611
+ size?: "cover" | "contain" | "auto" | undefined;
1612
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1613
+ opacity?: number | undefined;
1614
+ parallax?: number | undefined;
1615
+ priority?: boolean | undefined;
1616
+ }>;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ type: "image-v1";
1619
+ id: string;
1620
+ payload: {
1621
+ version: 1;
1622
+ position: {
1623
+ x: number;
1624
+ y: number;
1625
+ };
1626
+ image: {
1627
+ type: "makeswift-file";
1628
+ version: 1;
1629
+ id: string;
1630
+ } | {
1631
+ type: "external-file";
1632
+ version: 1;
1633
+ url: string;
1634
+ width?: number | null | undefined;
1635
+ height?: number | null | undefined;
1636
+ };
1637
+ size?: "cover" | "contain" | "auto" | undefined;
1638
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1639
+ opacity?: number | undefined;
1640
+ parallax?: number | undefined;
1641
+ priority?: boolean | undefined;
1642
+ };
1643
+ }, {
1644
+ type: "image-v1";
1645
+ id: string;
1646
+ payload: {
1647
+ version: 1;
1648
+ position: {
1649
+ x: number;
1650
+ y: number;
1651
+ };
1652
+ image: {
1653
+ type: "makeswift-file";
1654
+ version: 1;
1655
+ id: string;
1656
+ } | {
1657
+ type: "external-file";
1658
+ version: 1;
1659
+ url: string;
1660
+ width?: number | null | undefined;
1661
+ height?: number | null | undefined;
1662
+ };
1663
+ size?: "cover" | "contain" | "auto" | undefined;
1664
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1665
+ opacity?: number | undefined;
1666
+ parallax?: number | undefined;
1667
+ priority?: boolean | undefined;
1668
+ };
1669
+ }>]>, z.ZodObject<{
1670
+ type: z.ZodLiteral<"video">;
1671
+ id: z.ZodString;
1672
+ payload: z.ZodObject<{
1673
+ url: z.ZodOptional<z.ZodString>;
1674
+ maskColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1675
+ swatchId: z.ZodString;
1676
+ alpha: z.ZodNumber;
1677
+ }, "strip", z.ZodTypeAny, {
1678
+ swatchId: string;
1679
+ alpha: number;
1680
+ }, {
1681
+ swatchId: string;
1682
+ alpha: number;
1683
+ }>>>;
1684
+ opacity: z.ZodOptional<z.ZodNumber>;
1685
+ zoom: z.ZodOptional<z.ZodNumber>;
1686
+ aspectRatio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"wide">, z.ZodLiteral<"standard">]>>;
1687
+ parallax: z.ZodOptional<z.ZodNumber>;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ url?: string | undefined;
1690
+ maskColor?: {
1691
+ swatchId: string;
1692
+ alpha: number;
1693
+ } | null | undefined;
1694
+ opacity?: number | undefined;
1695
+ zoom?: number | undefined;
1696
+ aspectRatio?: "wide" | "standard" | undefined;
1697
+ parallax?: number | undefined;
1698
+ }, {
1699
+ url?: string | undefined;
1700
+ maskColor?: {
1701
+ swatchId: string;
1702
+ alpha: number;
1703
+ } | null | undefined;
1704
+ opacity?: number | undefined;
1705
+ zoom?: number | undefined;
1706
+ aspectRatio?: "wide" | "standard" | undefined;
1707
+ parallax?: number | undefined;
1708
+ }>;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ type: "video";
1711
+ id: string;
1712
+ payload: {
1713
+ url?: string | undefined;
1714
+ maskColor?: {
1715
+ swatchId: string;
1716
+ alpha: number;
1717
+ } | null | undefined;
1718
+ opacity?: number | undefined;
1719
+ zoom?: number | undefined;
1720
+ aspectRatio?: "wide" | "standard" | undefined;
1721
+ parallax?: number | undefined;
1722
+ };
1723
+ }, {
1724
+ type: "video";
1725
+ id: string;
1726
+ payload: {
1727
+ url?: string | undefined;
1728
+ maskColor?: {
1729
+ swatchId: string;
1730
+ alpha: number;
1731
+ } | null | undefined;
1732
+ opacity?: number | undefined;
1733
+ zoom?: number | undefined;
1734
+ aspectRatio?: "wide" | "standard" | undefined;
1735
+ parallax?: number | undefined;
1736
+ };
1737
+ }>]>, "many">;
1738
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1739
+ value: ({
1740
+ type: "color";
1741
+ id: string;
1742
+ payload: {
1743
+ swatchId: string;
1744
+ alpha: number;
1745
+ } | null;
1746
+ } | {
1747
+ type: "gradient";
1748
+ id: string;
1749
+ payload: {
1750
+ stops: {
1751
+ id: string;
1752
+ color: {
1753
+ swatchId: string;
1754
+ alpha: number;
1755
+ } | null;
1756
+ location: number;
1757
+ }[];
1758
+ angle?: number | undefined;
1759
+ isRadial?: boolean | undefined;
1760
+ };
1761
+ } | {
1762
+ type: "image";
1763
+ id: string;
1764
+ payload: {
1765
+ imageId: string;
1766
+ position: {
1767
+ x: number;
1768
+ y: number;
1769
+ };
1770
+ size?: "cover" | "contain" | "auto" | undefined;
1771
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1772
+ opacity?: number | undefined;
1773
+ parallax?: number | undefined;
1774
+ priority?: boolean | undefined;
1775
+ };
1776
+ } | {
1777
+ type: "image-v1";
1778
+ id: string;
1779
+ payload: {
1780
+ version: 1;
1781
+ position: {
1782
+ x: number;
1783
+ y: number;
1784
+ };
1785
+ image: {
1786
+ type: "makeswift-file";
1787
+ version: 1;
1788
+ id: string;
1789
+ } | {
1790
+ type: "external-file";
1791
+ version: 1;
1792
+ url: string;
1793
+ width?: number | null | undefined;
1794
+ height?: number | null | undefined;
1795
+ };
1796
+ size?: "cover" | "contain" | "auto" | undefined;
1797
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1798
+ opacity?: number | undefined;
1799
+ parallax?: number | undefined;
1800
+ priority?: boolean | undefined;
1801
+ };
1802
+ } | {
1803
+ type: "video";
1804
+ id: string;
1805
+ payload: {
1806
+ url?: string | undefined;
1807
+ maskColor?: {
1808
+ swatchId: string;
1809
+ alpha: number;
1810
+ } | null | undefined;
1811
+ opacity?: number | undefined;
1812
+ zoom?: number | undefined;
1813
+ aspectRatio?: "wide" | "standard" | undefined;
1814
+ parallax?: number | undefined;
1815
+ };
1816
+ })[];
1817
+ deviceId: string;
1818
+ }, {
1819
+ value: ({
1820
+ type: "color";
1821
+ id: string;
1822
+ payload: {
1823
+ swatchId: string;
1824
+ alpha: number;
1825
+ } | null;
1826
+ } | {
1827
+ type: "gradient";
1828
+ id: string;
1829
+ payload: {
1830
+ stops: {
1831
+ id: string;
1832
+ color: {
1833
+ swatchId: string;
1834
+ alpha: number;
1835
+ } | null;
1836
+ location: number;
1837
+ }[];
1838
+ angle?: number | undefined;
1839
+ isRadial?: boolean | undefined;
1840
+ };
1841
+ } | {
1842
+ type: "image";
1843
+ id: string;
1844
+ payload: {
1845
+ imageId: string;
1846
+ position: {
1847
+ x: number;
1848
+ y: number;
1849
+ };
1850
+ size?: "cover" | "contain" | "auto" | undefined;
1851
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1852
+ opacity?: number | undefined;
1853
+ parallax?: number | undefined;
1854
+ priority?: boolean | undefined;
1855
+ };
1856
+ } | {
1857
+ type: "image-v1";
1858
+ id: string;
1859
+ payload: {
1860
+ version: 1;
1861
+ position: {
1862
+ x: number;
1863
+ y: number;
1864
+ };
1865
+ image: {
1866
+ type: "makeswift-file";
1867
+ version: 1;
1868
+ id: string;
1869
+ } | {
1870
+ type: "external-file";
1871
+ version: 1;
1872
+ url: string;
1873
+ width?: number | null | undefined;
1874
+ height?: number | null | undefined;
1875
+ };
1876
+ size?: "cover" | "contain" | "auto" | undefined;
1877
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
1878
+ opacity?: number | undefined;
1879
+ parallax?: number | undefined;
1880
+ priority?: boolean | undefined;
1881
+ };
1882
+ } | {
1883
+ type: "video";
1884
+ id: string;
1885
+ payload: {
1886
+ url?: string | undefined;
1887
+ maskColor?: {
1888
+ swatchId: string;
1889
+ alpha: number;
1890
+ } | null | undefined;
1891
+ opacity?: number | undefined;
1892
+ zoom?: number | undefined;
1893
+ aspectRatio?: "wide" | "standard" | undefined;
1894
+ parallax?: number | undefined;
1895
+ };
1896
+ })[];
1897
+ deviceId: string;
1898
+ }>, "many">;
1899
+ export type BackgroundsPropControllerDataV1 = z.infer<typeof backgroundsPropControllerDataV1Schema>;
1900
+ export declare const BackgroundsPropControllerDataV2Type = "prop-controllers::backgrounds::v2";
1901
+ declare const backgroundsPropControllerDataV2Schema: z.ZodObject<{
1902
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::backgrounds::v2">;
1903
+ value: z.ZodArray<z.ZodObject<{
1904
+ deviceId: z.ZodString;
1905
+ value: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1906
+ type: z.ZodLiteral<"color">;
1907
+ id: z.ZodString;
1908
+ payload: z.ZodNullable<z.ZodObject<{
1909
+ swatchId: z.ZodString;
1910
+ alpha: z.ZodNumber;
1911
+ }, "strip", z.ZodTypeAny, {
1912
+ swatchId: string;
1913
+ alpha: number;
1914
+ }, {
1915
+ swatchId: string;
1916
+ alpha: number;
1917
+ }>>;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ type: "color";
1920
+ id: string;
1921
+ payload: {
1922
+ swatchId: string;
1923
+ alpha: number;
1924
+ } | null;
1925
+ }, {
1926
+ type: "color";
1927
+ id: string;
1928
+ payload: {
1929
+ swatchId: string;
1930
+ alpha: number;
1931
+ } | null;
1932
+ }>, z.ZodObject<{
1933
+ type: z.ZodLiteral<"gradient">;
1934
+ id: z.ZodString;
1935
+ payload: z.ZodObject<{
1936
+ angle: z.ZodOptional<z.ZodNumber>;
1937
+ isRadial: z.ZodOptional<z.ZodBoolean>;
1938
+ stops: z.ZodArray<z.ZodObject<{
1939
+ id: z.ZodString;
1940
+ location: z.ZodNumber;
1941
+ color: z.ZodNullable<z.ZodObject<{
1942
+ swatchId: z.ZodString;
1943
+ alpha: z.ZodNumber;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ swatchId: string;
1946
+ alpha: number;
1947
+ }, {
1948
+ swatchId: string;
1949
+ alpha: number;
1950
+ }>>;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ id: string;
1953
+ color: {
1954
+ swatchId: string;
1955
+ alpha: number;
1956
+ } | null;
1957
+ location: number;
1958
+ }, {
1959
+ id: string;
1960
+ color: {
1961
+ swatchId: string;
1962
+ alpha: number;
1963
+ } | null;
1964
+ location: number;
1965
+ }>, "many">;
1966
+ }, "strip", z.ZodTypeAny, {
1967
+ stops: {
1968
+ id: string;
1969
+ color: {
1970
+ swatchId: string;
1971
+ alpha: number;
1972
+ } | null;
1973
+ location: number;
1974
+ }[];
1975
+ angle?: number | undefined;
1976
+ isRadial?: boolean | undefined;
1977
+ }, {
1978
+ stops: {
1979
+ id: string;
1980
+ color: {
1981
+ swatchId: string;
1982
+ alpha: number;
1983
+ } | null;
1984
+ location: number;
1985
+ }[];
1986
+ angle?: number | undefined;
1987
+ isRadial?: boolean | undefined;
1988
+ }>;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ type: "gradient";
1991
+ id: string;
1992
+ payload: {
1993
+ stops: {
1994
+ id: string;
1995
+ color: {
1996
+ swatchId: string;
1997
+ alpha: number;
1998
+ } | null;
1999
+ location: number;
2000
+ }[];
2001
+ angle?: number | undefined;
2002
+ isRadial?: boolean | undefined;
2003
+ };
2004
+ }, {
2005
+ type: "gradient";
2006
+ id: string;
2007
+ payload: {
2008
+ stops: {
2009
+ id: string;
2010
+ color: {
2011
+ swatchId: string;
2012
+ alpha: number;
2013
+ } | null;
2014
+ location: number;
2015
+ }[];
2016
+ angle?: number | undefined;
2017
+ isRadial?: boolean | undefined;
2018
+ };
2019
+ }>, z.ZodUnion<[z.ZodObject<{
2020
+ type: z.ZodLiteral<"image">;
2021
+ id: z.ZodString;
2022
+ payload: z.ZodObject<{
2023
+ imageId: z.ZodString;
2024
+ position: z.ZodObject<{
2025
+ x: z.ZodNumber;
2026
+ y: z.ZodNumber;
2027
+ }, "strip", z.ZodTypeAny, {
2028
+ x: number;
2029
+ y: number;
2030
+ }, {
2031
+ x: number;
2032
+ y: number;
2033
+ }>;
2034
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
2035
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
2036
+ opacity: z.ZodOptional<z.ZodNumber>;
2037
+ parallax: z.ZodOptional<z.ZodNumber>;
2038
+ priority: z.ZodOptional<z.ZodBoolean>;
2039
+ }, "strip", z.ZodTypeAny, {
2040
+ imageId: string;
2041
+ position: {
2042
+ x: number;
2043
+ y: number;
2044
+ };
2045
+ size?: "cover" | "contain" | "auto" | undefined;
2046
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2047
+ opacity?: number | undefined;
2048
+ parallax?: number | undefined;
2049
+ priority?: boolean | undefined;
2050
+ }, {
2051
+ imageId: string;
2052
+ position: {
2053
+ x: number;
2054
+ y: number;
2055
+ };
2056
+ size?: "cover" | "contain" | "auto" | undefined;
2057
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2058
+ opacity?: number | undefined;
2059
+ parallax?: number | undefined;
2060
+ priority?: boolean | undefined;
2061
+ }>;
2062
+ }, "strip", z.ZodTypeAny, {
2063
+ type: "image";
2064
+ id: string;
2065
+ payload: {
2066
+ imageId: string;
2067
+ position: {
2068
+ x: number;
2069
+ y: number;
2070
+ };
2071
+ size?: "cover" | "contain" | "auto" | undefined;
2072
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2073
+ opacity?: number | undefined;
2074
+ parallax?: number | undefined;
2075
+ priority?: boolean | undefined;
2076
+ };
2077
+ }, {
2078
+ type: "image";
2079
+ id: string;
2080
+ payload: {
2081
+ imageId: string;
2082
+ position: {
2083
+ x: number;
2084
+ y: number;
2085
+ };
2086
+ size?: "cover" | "contain" | "auto" | undefined;
2087
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2088
+ opacity?: number | undefined;
2089
+ parallax?: number | undefined;
2090
+ priority?: boolean | undefined;
2091
+ };
2092
+ }>, z.ZodObject<{
2093
+ type: z.ZodLiteral<"image-v1">;
2094
+ id: z.ZodString;
2095
+ payload: z.ZodObject<{
2096
+ version: z.ZodLiteral<1>;
2097
+ image: z.ZodUnion<[z.ZodObject<{
2098
+ version: z.ZodLiteral<1>;
2099
+ type: z.ZodLiteral<"makeswift-file">;
2100
+ id: z.ZodString;
2101
+ }, "strip", z.ZodTypeAny, {
2102
+ type: "makeswift-file";
2103
+ version: 1;
2104
+ id: string;
2105
+ }, {
2106
+ type: "makeswift-file";
2107
+ version: 1;
2108
+ id: string;
2109
+ }>, z.ZodObject<{
2110
+ version: z.ZodLiteral<1>;
2111
+ type: z.ZodLiteral<"external-file">;
2112
+ url: z.ZodString;
2113
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2114
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2115
+ }, "strip", z.ZodTypeAny, {
2116
+ type: "external-file";
2117
+ version: 1;
2118
+ url: string;
2119
+ width?: number | null | undefined;
2120
+ height?: number | null | undefined;
2121
+ }, {
2122
+ type: "external-file";
2123
+ version: 1;
2124
+ url: string;
2125
+ width?: number | null | undefined;
2126
+ height?: number | null | undefined;
2127
+ }>]>;
2128
+ position: z.ZodObject<{
2129
+ x: z.ZodNumber;
2130
+ y: z.ZodNumber;
2131
+ }, "strip", z.ZodTypeAny, {
2132
+ x: number;
2133
+ y: number;
2134
+ }, {
2135
+ x: number;
2136
+ y: number;
2137
+ }>;
2138
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
2139
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
2140
+ opacity: z.ZodOptional<z.ZodNumber>;
2141
+ parallax: z.ZodOptional<z.ZodNumber>;
2142
+ priority: z.ZodOptional<z.ZodBoolean>;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ version: 1;
2145
+ position: {
2146
+ x: number;
2147
+ y: number;
2148
+ };
2149
+ image: {
2150
+ type: "makeswift-file";
2151
+ version: 1;
2152
+ id: string;
2153
+ } | {
2154
+ type: "external-file";
2155
+ version: 1;
2156
+ url: string;
2157
+ width?: number | null | undefined;
2158
+ height?: number | null | undefined;
2159
+ };
2160
+ size?: "cover" | "contain" | "auto" | undefined;
2161
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2162
+ opacity?: number | undefined;
2163
+ parallax?: number | undefined;
2164
+ priority?: boolean | undefined;
2165
+ }, {
2166
+ version: 1;
2167
+ position: {
2168
+ x: number;
2169
+ y: number;
2170
+ };
2171
+ image: {
2172
+ type: "makeswift-file";
2173
+ version: 1;
2174
+ id: string;
2175
+ } | {
2176
+ type: "external-file";
2177
+ version: 1;
2178
+ url: string;
2179
+ width?: number | null | undefined;
2180
+ height?: number | null | undefined;
2181
+ };
2182
+ size?: "cover" | "contain" | "auto" | undefined;
2183
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2184
+ opacity?: number | undefined;
2185
+ parallax?: number | undefined;
2186
+ priority?: boolean | undefined;
2187
+ }>;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ type: "image-v1";
2190
+ id: string;
2191
+ payload: {
2192
+ version: 1;
2193
+ position: {
2194
+ x: number;
2195
+ y: number;
2196
+ };
2197
+ image: {
2198
+ type: "makeswift-file";
2199
+ version: 1;
2200
+ id: string;
2201
+ } | {
2202
+ type: "external-file";
2203
+ version: 1;
2204
+ url: string;
2205
+ width?: number | null | undefined;
2206
+ height?: number | null | undefined;
2207
+ };
2208
+ size?: "cover" | "contain" | "auto" | undefined;
2209
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2210
+ opacity?: number | undefined;
2211
+ parallax?: number | undefined;
2212
+ priority?: boolean | undefined;
2213
+ };
2214
+ }, {
2215
+ type: "image-v1";
2216
+ id: string;
2217
+ payload: {
2218
+ version: 1;
2219
+ position: {
2220
+ x: number;
2221
+ y: number;
2222
+ };
2223
+ image: {
2224
+ type: "makeswift-file";
2225
+ version: 1;
2226
+ id: string;
2227
+ } | {
2228
+ type: "external-file";
2229
+ version: 1;
2230
+ url: string;
2231
+ width?: number | null | undefined;
2232
+ height?: number | null | undefined;
2233
+ };
2234
+ size?: "cover" | "contain" | "auto" | undefined;
2235
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2236
+ opacity?: number | undefined;
2237
+ parallax?: number | undefined;
2238
+ priority?: boolean | undefined;
2239
+ };
2240
+ }>]>, z.ZodObject<{
2241
+ type: z.ZodLiteral<"video">;
2242
+ id: z.ZodString;
2243
+ payload: z.ZodObject<{
2244
+ url: z.ZodOptional<z.ZodString>;
2245
+ maskColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2246
+ swatchId: z.ZodString;
2247
+ alpha: z.ZodNumber;
2248
+ }, "strip", z.ZodTypeAny, {
2249
+ swatchId: string;
2250
+ alpha: number;
2251
+ }, {
2252
+ swatchId: string;
2253
+ alpha: number;
2254
+ }>>>;
2255
+ opacity: z.ZodOptional<z.ZodNumber>;
2256
+ zoom: z.ZodOptional<z.ZodNumber>;
2257
+ aspectRatio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"wide">, z.ZodLiteral<"standard">]>>;
2258
+ parallax: z.ZodOptional<z.ZodNumber>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ url?: string | undefined;
2261
+ maskColor?: {
2262
+ swatchId: string;
2263
+ alpha: number;
2264
+ } | null | undefined;
2265
+ opacity?: number | undefined;
2266
+ zoom?: number | undefined;
2267
+ aspectRatio?: "wide" | "standard" | undefined;
2268
+ parallax?: number | undefined;
2269
+ }, {
2270
+ url?: string | undefined;
2271
+ maskColor?: {
2272
+ swatchId: string;
2273
+ alpha: number;
2274
+ } | null | undefined;
2275
+ opacity?: number | undefined;
2276
+ zoom?: number | undefined;
2277
+ aspectRatio?: "wide" | "standard" | undefined;
2278
+ parallax?: number | undefined;
2279
+ }>;
2280
+ }, "strip", z.ZodTypeAny, {
2281
+ type: "video";
2282
+ id: string;
2283
+ payload: {
2284
+ url?: string | undefined;
2285
+ maskColor?: {
2286
+ swatchId: string;
2287
+ alpha: number;
2288
+ } | null | undefined;
2289
+ opacity?: number | undefined;
2290
+ zoom?: number | undefined;
2291
+ aspectRatio?: "wide" | "standard" | undefined;
2292
+ parallax?: number | undefined;
2293
+ };
2294
+ }, {
2295
+ type: "video";
2296
+ id: string;
2297
+ payload: {
2298
+ url?: string | undefined;
2299
+ maskColor?: {
2300
+ swatchId: string;
2301
+ alpha: number;
2302
+ } | null | undefined;
2303
+ opacity?: number | undefined;
2304
+ zoom?: number | undefined;
2305
+ aspectRatio?: "wide" | "standard" | undefined;
2306
+ parallax?: number | undefined;
2307
+ };
2308
+ }>]>, "many">;
2309
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2310
+ value: ({
2311
+ type: "color";
2312
+ id: string;
2313
+ payload: {
2314
+ swatchId: string;
2315
+ alpha: number;
2316
+ } | null;
2317
+ } | {
2318
+ type: "gradient";
2319
+ id: string;
2320
+ payload: {
2321
+ stops: {
2322
+ id: string;
2323
+ color: {
2324
+ swatchId: string;
2325
+ alpha: number;
2326
+ } | null;
2327
+ location: number;
2328
+ }[];
2329
+ angle?: number | undefined;
2330
+ isRadial?: boolean | undefined;
2331
+ };
2332
+ } | {
2333
+ type: "image";
2334
+ id: string;
2335
+ payload: {
2336
+ imageId: string;
2337
+ position: {
2338
+ x: number;
2339
+ y: number;
2340
+ };
2341
+ size?: "cover" | "contain" | "auto" | undefined;
2342
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2343
+ opacity?: number | undefined;
2344
+ parallax?: number | undefined;
2345
+ priority?: boolean | undefined;
2346
+ };
2347
+ } | {
2348
+ type: "image-v1";
2349
+ id: string;
2350
+ payload: {
2351
+ version: 1;
2352
+ position: {
2353
+ x: number;
2354
+ y: number;
2355
+ };
2356
+ image: {
2357
+ type: "makeswift-file";
2358
+ version: 1;
2359
+ id: string;
2360
+ } | {
2361
+ type: "external-file";
2362
+ version: 1;
2363
+ url: string;
2364
+ width?: number | null | undefined;
2365
+ height?: number | null | undefined;
2366
+ };
2367
+ size?: "cover" | "contain" | "auto" | undefined;
2368
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2369
+ opacity?: number | undefined;
2370
+ parallax?: number | undefined;
2371
+ priority?: boolean | undefined;
2372
+ };
2373
+ } | {
2374
+ type: "video";
2375
+ id: string;
2376
+ payload: {
2377
+ url?: string | undefined;
2378
+ maskColor?: {
2379
+ swatchId: string;
2380
+ alpha: number;
2381
+ } | null | undefined;
2382
+ opacity?: number | undefined;
2383
+ zoom?: number | undefined;
2384
+ aspectRatio?: "wide" | "standard" | undefined;
2385
+ parallax?: number | undefined;
2386
+ };
2387
+ })[];
2388
+ deviceId: string;
2389
+ }, {
2390
+ value: ({
2391
+ type: "color";
2392
+ id: string;
2393
+ payload: {
2394
+ swatchId: string;
2395
+ alpha: number;
2396
+ } | null;
2397
+ } | {
2398
+ type: "gradient";
2399
+ id: string;
2400
+ payload: {
2401
+ stops: {
2402
+ id: string;
2403
+ color: {
2404
+ swatchId: string;
2405
+ alpha: number;
2406
+ } | null;
2407
+ location: number;
2408
+ }[];
2409
+ angle?: number | undefined;
2410
+ isRadial?: boolean | undefined;
2411
+ };
2412
+ } | {
2413
+ type: "image";
2414
+ id: string;
2415
+ payload: {
2416
+ imageId: string;
2417
+ position: {
2418
+ x: number;
2419
+ y: number;
2420
+ };
2421
+ size?: "cover" | "contain" | "auto" | undefined;
2422
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2423
+ opacity?: number | undefined;
2424
+ parallax?: number | undefined;
2425
+ priority?: boolean | undefined;
2426
+ };
2427
+ } | {
2428
+ type: "image-v1";
2429
+ id: string;
2430
+ payload: {
2431
+ version: 1;
2432
+ position: {
2433
+ x: number;
2434
+ y: number;
2435
+ };
2436
+ image: {
2437
+ type: "makeswift-file";
2438
+ version: 1;
2439
+ id: string;
2440
+ } | {
2441
+ type: "external-file";
2442
+ version: 1;
2443
+ url: string;
2444
+ width?: number | null | undefined;
2445
+ height?: number | null | undefined;
2446
+ };
2447
+ size?: "cover" | "contain" | "auto" | undefined;
2448
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2449
+ opacity?: number | undefined;
2450
+ parallax?: number | undefined;
2451
+ priority?: boolean | undefined;
2452
+ };
2453
+ } | {
2454
+ type: "video";
2455
+ id: string;
2456
+ payload: {
2457
+ url?: string | undefined;
2458
+ maskColor?: {
2459
+ swatchId: string;
2460
+ alpha: number;
2461
+ } | null | undefined;
2462
+ opacity?: number | undefined;
2463
+ zoom?: number | undefined;
2464
+ aspectRatio?: "wide" | "standard" | undefined;
2465
+ parallax?: number | undefined;
2466
+ };
2467
+ })[];
2468
+ deviceId: string;
2469
+ }>, "many">;
2470
+ }, "strip", z.ZodTypeAny, {
2471
+ "@@makeswift/type": "prop-controllers::backgrounds::v2";
2472
+ value: {
2473
+ value: ({
2474
+ type: "color";
2475
+ id: string;
2476
+ payload: {
2477
+ swatchId: string;
2478
+ alpha: number;
2479
+ } | null;
2480
+ } | {
2481
+ type: "gradient";
2482
+ id: string;
2483
+ payload: {
2484
+ stops: {
2485
+ id: string;
2486
+ color: {
2487
+ swatchId: string;
2488
+ alpha: number;
2489
+ } | null;
2490
+ location: number;
2491
+ }[];
2492
+ angle?: number | undefined;
2493
+ isRadial?: boolean | undefined;
2494
+ };
2495
+ } | {
2496
+ type: "image";
2497
+ id: string;
2498
+ payload: {
2499
+ imageId: string;
2500
+ position: {
2501
+ x: number;
2502
+ y: number;
2503
+ };
2504
+ size?: "cover" | "contain" | "auto" | undefined;
2505
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2506
+ opacity?: number | undefined;
2507
+ parallax?: number | undefined;
2508
+ priority?: boolean | undefined;
2509
+ };
2510
+ } | {
2511
+ type: "image-v1";
2512
+ id: string;
2513
+ payload: {
2514
+ version: 1;
2515
+ position: {
2516
+ x: number;
2517
+ y: number;
2518
+ };
2519
+ image: {
2520
+ type: "makeswift-file";
2521
+ version: 1;
2522
+ id: string;
2523
+ } | {
2524
+ type: "external-file";
2525
+ version: 1;
2526
+ url: string;
2527
+ width?: number | null | undefined;
2528
+ height?: number | null | undefined;
2529
+ };
2530
+ size?: "cover" | "contain" | "auto" | undefined;
2531
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2532
+ opacity?: number | undefined;
2533
+ parallax?: number | undefined;
2534
+ priority?: boolean | undefined;
2535
+ };
2536
+ } | {
2537
+ type: "video";
2538
+ id: string;
2539
+ payload: {
2540
+ url?: string | undefined;
2541
+ maskColor?: {
2542
+ swatchId: string;
2543
+ alpha: number;
2544
+ } | null | undefined;
2545
+ opacity?: number | undefined;
2546
+ zoom?: number | undefined;
2547
+ aspectRatio?: "wide" | "standard" | undefined;
2548
+ parallax?: number | undefined;
2549
+ };
2550
+ })[];
2551
+ deviceId: string;
2552
+ }[];
2553
+ }, {
2554
+ "@@makeswift/type": "prop-controllers::backgrounds::v2";
2555
+ value: {
2556
+ value: ({
2557
+ type: "color";
2558
+ id: string;
2559
+ payload: {
2560
+ swatchId: string;
2561
+ alpha: number;
2562
+ } | null;
2563
+ } | {
2564
+ type: "gradient";
2565
+ id: string;
2566
+ payload: {
2567
+ stops: {
2568
+ id: string;
2569
+ color: {
2570
+ swatchId: string;
2571
+ alpha: number;
2572
+ } | null;
2573
+ location: number;
2574
+ }[];
2575
+ angle?: number | undefined;
2576
+ isRadial?: boolean | undefined;
2577
+ };
2578
+ } | {
2579
+ type: "image";
2580
+ id: string;
2581
+ payload: {
2582
+ imageId: string;
2583
+ position: {
2584
+ x: number;
2585
+ y: number;
2586
+ };
2587
+ size?: "cover" | "contain" | "auto" | undefined;
2588
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2589
+ opacity?: number | undefined;
2590
+ parallax?: number | undefined;
2591
+ priority?: boolean | undefined;
2592
+ };
2593
+ } | {
2594
+ type: "image-v1";
2595
+ id: string;
2596
+ payload: {
2597
+ version: 1;
2598
+ position: {
2599
+ x: number;
2600
+ y: number;
2601
+ };
2602
+ image: {
2603
+ type: "makeswift-file";
2604
+ version: 1;
2605
+ id: string;
2606
+ } | {
2607
+ type: "external-file";
2608
+ version: 1;
2609
+ url: string;
2610
+ width?: number | null | undefined;
2611
+ height?: number | null | undefined;
2612
+ };
2613
+ size?: "cover" | "contain" | "auto" | undefined;
2614
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2615
+ opacity?: number | undefined;
2616
+ parallax?: number | undefined;
2617
+ priority?: boolean | undefined;
2618
+ };
2619
+ } | {
2620
+ type: "video";
2621
+ id: string;
2622
+ payload: {
2623
+ url?: string | undefined;
2624
+ maskColor?: {
2625
+ swatchId: string;
2626
+ alpha: number;
2627
+ } | null | undefined;
2628
+ opacity?: number | undefined;
2629
+ zoom?: number | undefined;
2630
+ aspectRatio?: "wide" | "standard" | undefined;
2631
+ parallax?: number | undefined;
2632
+ };
2633
+ })[];
2634
+ deviceId: string;
2635
+ }[];
2636
+ }>;
2637
+ export type BackgroundsPropControllerDataV2 = z.infer<typeof backgroundsPropControllerDataV2Schema>;
2638
+ export declare const backgroundsPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
2639
+ deviceId: z.ZodString;
2640
+ value: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2641
+ type: z.ZodLiteral<"color">;
2642
+ id: z.ZodString;
2643
+ payload: z.ZodNullable<z.ZodObject<{
2644
+ swatchId: z.ZodString;
2645
+ alpha: z.ZodNumber;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ swatchId: string;
2648
+ alpha: number;
2649
+ }, {
2650
+ swatchId: string;
2651
+ alpha: number;
2652
+ }>>;
2653
+ }, "strip", z.ZodTypeAny, {
2654
+ type: "color";
2655
+ id: string;
2656
+ payload: {
2657
+ swatchId: string;
2658
+ alpha: number;
2659
+ } | null;
2660
+ }, {
2661
+ type: "color";
2662
+ id: string;
2663
+ payload: {
2664
+ swatchId: string;
2665
+ alpha: number;
2666
+ } | null;
2667
+ }>, z.ZodObject<{
2668
+ type: z.ZodLiteral<"gradient">;
2669
+ id: z.ZodString;
2670
+ payload: z.ZodObject<{
2671
+ angle: z.ZodOptional<z.ZodNumber>;
2672
+ isRadial: z.ZodOptional<z.ZodBoolean>;
2673
+ stops: z.ZodArray<z.ZodObject<{
2674
+ id: z.ZodString;
2675
+ location: z.ZodNumber;
2676
+ color: z.ZodNullable<z.ZodObject<{
2677
+ swatchId: z.ZodString;
2678
+ alpha: z.ZodNumber;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ swatchId: string;
2681
+ alpha: number;
2682
+ }, {
2683
+ swatchId: string;
2684
+ alpha: number;
2685
+ }>>;
2686
+ }, "strip", z.ZodTypeAny, {
2687
+ id: string;
2688
+ color: {
2689
+ swatchId: string;
2690
+ alpha: number;
2691
+ } | null;
2692
+ location: number;
2693
+ }, {
2694
+ id: string;
2695
+ color: {
2696
+ swatchId: string;
2697
+ alpha: number;
2698
+ } | null;
2699
+ location: number;
2700
+ }>, "many">;
2701
+ }, "strip", z.ZodTypeAny, {
2702
+ stops: {
2703
+ id: string;
2704
+ color: {
2705
+ swatchId: string;
2706
+ alpha: number;
2707
+ } | null;
2708
+ location: number;
2709
+ }[];
2710
+ angle?: number | undefined;
2711
+ isRadial?: boolean | undefined;
2712
+ }, {
2713
+ stops: {
2714
+ id: string;
2715
+ color: {
2716
+ swatchId: string;
2717
+ alpha: number;
2718
+ } | null;
2719
+ location: number;
2720
+ }[];
2721
+ angle?: number | undefined;
2722
+ isRadial?: boolean | undefined;
2723
+ }>;
2724
+ }, "strip", z.ZodTypeAny, {
2725
+ type: "gradient";
2726
+ id: string;
2727
+ payload: {
2728
+ stops: {
2729
+ id: string;
2730
+ color: {
2731
+ swatchId: string;
2732
+ alpha: number;
2733
+ } | null;
2734
+ location: number;
2735
+ }[];
2736
+ angle?: number | undefined;
2737
+ isRadial?: boolean | undefined;
2738
+ };
2739
+ }, {
2740
+ type: "gradient";
2741
+ id: string;
2742
+ payload: {
2743
+ stops: {
2744
+ id: string;
2745
+ color: {
2746
+ swatchId: string;
2747
+ alpha: number;
2748
+ } | null;
2749
+ location: number;
2750
+ }[];
2751
+ angle?: number | undefined;
2752
+ isRadial?: boolean | undefined;
2753
+ };
2754
+ }>, z.ZodUnion<[z.ZodObject<{
2755
+ type: z.ZodLiteral<"image">;
2756
+ id: z.ZodString;
2757
+ payload: z.ZodObject<{
2758
+ imageId: z.ZodString;
2759
+ position: z.ZodObject<{
2760
+ x: z.ZodNumber;
2761
+ y: z.ZodNumber;
2762
+ }, "strip", z.ZodTypeAny, {
2763
+ x: number;
2764
+ y: number;
2765
+ }, {
2766
+ x: number;
2767
+ y: number;
2768
+ }>;
2769
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
2770
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
2771
+ opacity: z.ZodOptional<z.ZodNumber>;
2772
+ parallax: z.ZodOptional<z.ZodNumber>;
2773
+ priority: z.ZodOptional<z.ZodBoolean>;
2774
+ }, "strip", z.ZodTypeAny, {
2775
+ imageId: string;
2776
+ position: {
2777
+ x: number;
2778
+ y: number;
2779
+ };
2780
+ size?: "cover" | "contain" | "auto" | undefined;
2781
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2782
+ opacity?: number | undefined;
2783
+ parallax?: number | undefined;
2784
+ priority?: boolean | undefined;
2785
+ }, {
2786
+ imageId: string;
2787
+ position: {
2788
+ x: number;
2789
+ y: number;
2790
+ };
2791
+ size?: "cover" | "contain" | "auto" | undefined;
2792
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2793
+ opacity?: number | undefined;
2794
+ parallax?: number | undefined;
2795
+ priority?: boolean | undefined;
2796
+ }>;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ type: "image";
2799
+ id: string;
2800
+ payload: {
2801
+ imageId: string;
2802
+ position: {
2803
+ x: number;
2804
+ y: number;
2805
+ };
2806
+ size?: "cover" | "contain" | "auto" | undefined;
2807
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2808
+ opacity?: number | undefined;
2809
+ parallax?: number | undefined;
2810
+ priority?: boolean | undefined;
2811
+ };
2812
+ }, {
2813
+ type: "image";
2814
+ id: string;
2815
+ payload: {
2816
+ imageId: string;
2817
+ position: {
2818
+ x: number;
2819
+ y: number;
2820
+ };
2821
+ size?: "cover" | "contain" | "auto" | undefined;
2822
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2823
+ opacity?: number | undefined;
2824
+ parallax?: number | undefined;
2825
+ priority?: boolean | undefined;
2826
+ };
2827
+ }>, z.ZodObject<{
2828
+ type: z.ZodLiteral<"image-v1">;
2829
+ id: z.ZodString;
2830
+ payload: z.ZodObject<{
2831
+ version: z.ZodLiteral<1>;
2832
+ image: z.ZodUnion<[z.ZodObject<{
2833
+ version: z.ZodLiteral<1>;
2834
+ type: z.ZodLiteral<"makeswift-file">;
2835
+ id: z.ZodString;
2836
+ }, "strip", z.ZodTypeAny, {
2837
+ type: "makeswift-file";
2838
+ version: 1;
2839
+ id: string;
2840
+ }, {
2841
+ type: "makeswift-file";
2842
+ version: 1;
2843
+ id: string;
2844
+ }>, z.ZodObject<{
2845
+ version: z.ZodLiteral<1>;
2846
+ type: z.ZodLiteral<"external-file">;
2847
+ url: z.ZodString;
2848
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2849
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2850
+ }, "strip", z.ZodTypeAny, {
2851
+ type: "external-file";
2852
+ version: 1;
2853
+ url: string;
2854
+ width?: number | null | undefined;
2855
+ height?: number | null | undefined;
2856
+ }, {
2857
+ type: "external-file";
2858
+ version: 1;
2859
+ url: string;
2860
+ width?: number | null | undefined;
2861
+ height?: number | null | undefined;
2862
+ }>]>;
2863
+ position: z.ZodObject<{
2864
+ x: z.ZodNumber;
2865
+ y: z.ZodNumber;
2866
+ }, "strip", z.ZodTypeAny, {
2867
+ x: number;
2868
+ y: number;
2869
+ }, {
2870
+ x: number;
2871
+ y: number;
2872
+ }>;
2873
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
2874
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
2875
+ opacity: z.ZodOptional<z.ZodNumber>;
2876
+ parallax: z.ZodOptional<z.ZodNumber>;
2877
+ priority: z.ZodOptional<z.ZodBoolean>;
2878
+ }, "strip", z.ZodTypeAny, {
2879
+ version: 1;
2880
+ position: {
2881
+ x: number;
2882
+ y: number;
2883
+ };
2884
+ image: {
2885
+ type: "makeswift-file";
2886
+ version: 1;
2887
+ id: string;
2888
+ } | {
2889
+ type: "external-file";
2890
+ version: 1;
2891
+ url: string;
2892
+ width?: number | null | undefined;
2893
+ height?: number | null | undefined;
2894
+ };
2895
+ size?: "cover" | "contain" | "auto" | undefined;
2896
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2897
+ opacity?: number | undefined;
2898
+ parallax?: number | undefined;
2899
+ priority?: boolean | undefined;
2900
+ }, {
2901
+ version: 1;
2902
+ position: {
2903
+ x: number;
2904
+ y: number;
2905
+ };
2906
+ image: {
2907
+ type: "makeswift-file";
2908
+ version: 1;
2909
+ id: string;
2910
+ } | {
2911
+ type: "external-file";
2912
+ version: 1;
2913
+ url: string;
2914
+ width?: number | null | undefined;
2915
+ height?: number | null | undefined;
2916
+ };
2917
+ size?: "cover" | "contain" | "auto" | undefined;
2918
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2919
+ opacity?: number | undefined;
2920
+ parallax?: number | undefined;
2921
+ priority?: boolean | undefined;
2922
+ }>;
2923
+ }, "strip", z.ZodTypeAny, {
2924
+ type: "image-v1";
2925
+ id: string;
2926
+ payload: {
2927
+ version: 1;
2928
+ position: {
2929
+ x: number;
2930
+ y: number;
2931
+ };
2932
+ image: {
2933
+ type: "makeswift-file";
2934
+ version: 1;
2935
+ id: string;
2936
+ } | {
2937
+ type: "external-file";
2938
+ version: 1;
2939
+ url: string;
2940
+ width?: number | null | undefined;
2941
+ height?: number | null | undefined;
2942
+ };
2943
+ size?: "cover" | "contain" | "auto" | undefined;
2944
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2945
+ opacity?: number | undefined;
2946
+ parallax?: number | undefined;
2947
+ priority?: boolean | undefined;
2948
+ };
2949
+ }, {
2950
+ type: "image-v1";
2951
+ id: string;
2952
+ payload: {
2953
+ version: 1;
2954
+ position: {
2955
+ x: number;
2956
+ y: number;
2957
+ };
2958
+ image: {
2959
+ type: "makeswift-file";
2960
+ version: 1;
2961
+ id: string;
2962
+ } | {
2963
+ type: "external-file";
2964
+ version: 1;
2965
+ url: string;
2966
+ width?: number | null | undefined;
2967
+ height?: number | null | undefined;
2968
+ };
2969
+ size?: "cover" | "contain" | "auto" | undefined;
2970
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
2971
+ opacity?: number | undefined;
2972
+ parallax?: number | undefined;
2973
+ priority?: boolean | undefined;
2974
+ };
2975
+ }>]>, z.ZodObject<{
2976
+ type: z.ZodLiteral<"video">;
2977
+ id: z.ZodString;
2978
+ payload: z.ZodObject<{
2979
+ url: z.ZodOptional<z.ZodString>;
2980
+ maskColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2981
+ swatchId: z.ZodString;
2982
+ alpha: z.ZodNumber;
2983
+ }, "strip", z.ZodTypeAny, {
2984
+ swatchId: string;
2985
+ alpha: number;
2986
+ }, {
2987
+ swatchId: string;
2988
+ alpha: number;
2989
+ }>>>;
2990
+ opacity: z.ZodOptional<z.ZodNumber>;
2991
+ zoom: z.ZodOptional<z.ZodNumber>;
2992
+ aspectRatio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"wide">, z.ZodLiteral<"standard">]>>;
2993
+ parallax: z.ZodOptional<z.ZodNumber>;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ url?: string | undefined;
2996
+ maskColor?: {
2997
+ swatchId: string;
2998
+ alpha: number;
2999
+ } | null | undefined;
3000
+ opacity?: number | undefined;
3001
+ zoom?: number | undefined;
3002
+ aspectRatio?: "wide" | "standard" | undefined;
3003
+ parallax?: number | undefined;
3004
+ }, {
3005
+ url?: string | undefined;
3006
+ maskColor?: {
3007
+ swatchId: string;
3008
+ alpha: number;
3009
+ } | null | undefined;
3010
+ opacity?: number | undefined;
3011
+ zoom?: number | undefined;
3012
+ aspectRatio?: "wide" | "standard" | undefined;
3013
+ parallax?: number | undefined;
3014
+ }>;
3015
+ }, "strip", z.ZodTypeAny, {
3016
+ type: "video";
3017
+ id: string;
3018
+ payload: {
3019
+ url?: string | undefined;
3020
+ maskColor?: {
3021
+ swatchId: string;
3022
+ alpha: number;
3023
+ } | null | undefined;
3024
+ opacity?: number | undefined;
3025
+ zoom?: number | undefined;
3026
+ aspectRatio?: "wide" | "standard" | undefined;
3027
+ parallax?: number | undefined;
3028
+ };
3029
+ }, {
3030
+ type: "video";
3031
+ id: string;
3032
+ payload: {
3033
+ url?: string | undefined;
3034
+ maskColor?: {
3035
+ swatchId: string;
3036
+ alpha: number;
3037
+ } | null | undefined;
3038
+ opacity?: number | undefined;
3039
+ zoom?: number | undefined;
3040
+ aspectRatio?: "wide" | "standard" | undefined;
3041
+ parallax?: number | undefined;
3042
+ };
3043
+ }>]>, "many">;
3044
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3045
+ value: ({
3046
+ type: "color";
3047
+ id: string;
3048
+ payload: {
3049
+ swatchId: string;
3050
+ alpha: number;
3051
+ } | null;
3052
+ } | {
3053
+ type: "gradient";
3054
+ id: string;
3055
+ payload: {
3056
+ stops: {
3057
+ id: string;
3058
+ color: {
3059
+ swatchId: string;
3060
+ alpha: number;
3061
+ } | null;
3062
+ location: number;
3063
+ }[];
3064
+ angle?: number | undefined;
3065
+ isRadial?: boolean | undefined;
3066
+ };
3067
+ } | {
3068
+ type: "image";
3069
+ id: string;
3070
+ payload: {
3071
+ imageId: string;
3072
+ position: {
3073
+ x: number;
3074
+ y: number;
3075
+ };
3076
+ size?: "cover" | "contain" | "auto" | undefined;
3077
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3078
+ opacity?: number | undefined;
3079
+ parallax?: number | undefined;
3080
+ priority?: boolean | undefined;
3081
+ };
3082
+ } | {
3083
+ type: "image-v1";
3084
+ id: string;
3085
+ payload: {
3086
+ version: 1;
3087
+ position: {
3088
+ x: number;
3089
+ y: number;
3090
+ };
3091
+ image: {
3092
+ type: "makeswift-file";
3093
+ version: 1;
3094
+ id: string;
3095
+ } | {
3096
+ type: "external-file";
3097
+ version: 1;
3098
+ url: string;
3099
+ width?: number | null | undefined;
3100
+ height?: number | null | undefined;
3101
+ };
3102
+ size?: "cover" | "contain" | "auto" | undefined;
3103
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3104
+ opacity?: number | undefined;
3105
+ parallax?: number | undefined;
3106
+ priority?: boolean | undefined;
3107
+ };
3108
+ } | {
3109
+ type: "video";
3110
+ id: string;
3111
+ payload: {
3112
+ url?: string | undefined;
3113
+ maskColor?: {
3114
+ swatchId: string;
3115
+ alpha: number;
3116
+ } | null | undefined;
3117
+ opacity?: number | undefined;
3118
+ zoom?: number | undefined;
3119
+ aspectRatio?: "wide" | "standard" | undefined;
3120
+ parallax?: number | undefined;
3121
+ };
3122
+ })[];
3123
+ deviceId: string;
3124
+ }, {
3125
+ value: ({
3126
+ type: "color";
3127
+ id: string;
3128
+ payload: {
3129
+ swatchId: string;
3130
+ alpha: number;
3131
+ } | null;
3132
+ } | {
3133
+ type: "gradient";
3134
+ id: string;
3135
+ payload: {
3136
+ stops: {
3137
+ id: string;
3138
+ color: {
3139
+ swatchId: string;
3140
+ alpha: number;
3141
+ } | null;
3142
+ location: number;
3143
+ }[];
3144
+ angle?: number | undefined;
3145
+ isRadial?: boolean | undefined;
3146
+ };
3147
+ } | {
3148
+ type: "image";
3149
+ id: string;
3150
+ payload: {
3151
+ imageId: string;
3152
+ position: {
3153
+ x: number;
3154
+ y: number;
3155
+ };
3156
+ size?: "cover" | "contain" | "auto" | undefined;
3157
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3158
+ opacity?: number | undefined;
3159
+ parallax?: number | undefined;
3160
+ priority?: boolean | undefined;
3161
+ };
3162
+ } | {
3163
+ type: "image-v1";
3164
+ id: string;
3165
+ payload: {
3166
+ version: 1;
3167
+ position: {
3168
+ x: number;
3169
+ y: number;
3170
+ };
3171
+ image: {
3172
+ type: "makeswift-file";
3173
+ version: 1;
3174
+ id: string;
3175
+ } | {
3176
+ type: "external-file";
3177
+ version: 1;
3178
+ url: string;
3179
+ width?: number | null | undefined;
3180
+ height?: number | null | undefined;
3181
+ };
3182
+ size?: "cover" | "contain" | "auto" | undefined;
3183
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3184
+ opacity?: number | undefined;
3185
+ parallax?: number | undefined;
3186
+ priority?: boolean | undefined;
3187
+ };
3188
+ } | {
3189
+ type: "video";
3190
+ id: string;
3191
+ payload: {
3192
+ url?: string | undefined;
3193
+ maskColor?: {
3194
+ swatchId: string;
3195
+ alpha: number;
3196
+ } | null | undefined;
3197
+ opacity?: number | undefined;
3198
+ zoom?: number | undefined;
3199
+ aspectRatio?: "wide" | "standard" | undefined;
3200
+ parallax?: number | undefined;
3201
+ };
3202
+ })[];
3203
+ deviceId: string;
3204
+ }>, "many">, z.ZodObject<{
3205
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::backgrounds::v2">;
3206
+ value: z.ZodArray<z.ZodObject<{
3207
+ deviceId: z.ZodString;
3208
+ value: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3209
+ type: z.ZodLiteral<"color">;
3210
+ id: z.ZodString;
3211
+ payload: z.ZodNullable<z.ZodObject<{
3212
+ swatchId: z.ZodString;
3213
+ alpha: z.ZodNumber;
3214
+ }, "strip", z.ZodTypeAny, {
3215
+ swatchId: string;
3216
+ alpha: number;
3217
+ }, {
3218
+ swatchId: string;
3219
+ alpha: number;
3220
+ }>>;
3221
+ }, "strip", z.ZodTypeAny, {
3222
+ type: "color";
3223
+ id: string;
3224
+ payload: {
3225
+ swatchId: string;
3226
+ alpha: number;
3227
+ } | null;
3228
+ }, {
3229
+ type: "color";
3230
+ id: string;
3231
+ payload: {
3232
+ swatchId: string;
3233
+ alpha: number;
3234
+ } | null;
3235
+ }>, z.ZodObject<{
3236
+ type: z.ZodLiteral<"gradient">;
3237
+ id: z.ZodString;
3238
+ payload: z.ZodObject<{
3239
+ angle: z.ZodOptional<z.ZodNumber>;
3240
+ isRadial: z.ZodOptional<z.ZodBoolean>;
3241
+ stops: z.ZodArray<z.ZodObject<{
3242
+ id: z.ZodString;
3243
+ location: z.ZodNumber;
3244
+ color: z.ZodNullable<z.ZodObject<{
3245
+ swatchId: z.ZodString;
3246
+ alpha: z.ZodNumber;
3247
+ }, "strip", z.ZodTypeAny, {
3248
+ swatchId: string;
3249
+ alpha: number;
3250
+ }, {
3251
+ swatchId: string;
3252
+ alpha: number;
3253
+ }>>;
3254
+ }, "strip", z.ZodTypeAny, {
3255
+ id: string;
3256
+ color: {
3257
+ swatchId: string;
3258
+ alpha: number;
3259
+ } | null;
3260
+ location: number;
3261
+ }, {
3262
+ id: string;
3263
+ color: {
3264
+ swatchId: string;
3265
+ alpha: number;
3266
+ } | null;
3267
+ location: number;
3268
+ }>, "many">;
3269
+ }, "strip", z.ZodTypeAny, {
3270
+ stops: {
3271
+ id: string;
3272
+ color: {
3273
+ swatchId: string;
3274
+ alpha: number;
3275
+ } | null;
3276
+ location: number;
3277
+ }[];
3278
+ angle?: number | undefined;
3279
+ isRadial?: boolean | undefined;
3280
+ }, {
3281
+ stops: {
3282
+ id: string;
3283
+ color: {
3284
+ swatchId: string;
3285
+ alpha: number;
3286
+ } | null;
3287
+ location: number;
3288
+ }[];
3289
+ angle?: number | undefined;
3290
+ isRadial?: boolean | undefined;
3291
+ }>;
3292
+ }, "strip", z.ZodTypeAny, {
3293
+ type: "gradient";
3294
+ id: string;
3295
+ payload: {
3296
+ stops: {
3297
+ id: string;
3298
+ color: {
3299
+ swatchId: string;
3300
+ alpha: number;
3301
+ } | null;
3302
+ location: number;
3303
+ }[];
3304
+ angle?: number | undefined;
3305
+ isRadial?: boolean | undefined;
3306
+ };
3307
+ }, {
3308
+ type: "gradient";
3309
+ id: string;
3310
+ payload: {
3311
+ stops: {
3312
+ id: string;
3313
+ color: {
3314
+ swatchId: string;
3315
+ alpha: number;
3316
+ } | null;
3317
+ location: number;
3318
+ }[];
3319
+ angle?: number | undefined;
3320
+ isRadial?: boolean | undefined;
3321
+ };
3322
+ }>, z.ZodUnion<[z.ZodObject<{
3323
+ type: z.ZodLiteral<"image">;
3324
+ id: z.ZodString;
3325
+ payload: z.ZodObject<{
3326
+ imageId: z.ZodString;
3327
+ position: z.ZodObject<{
3328
+ x: z.ZodNumber;
3329
+ y: z.ZodNumber;
3330
+ }, "strip", z.ZodTypeAny, {
3331
+ x: number;
3332
+ y: number;
3333
+ }, {
3334
+ x: number;
3335
+ y: number;
3336
+ }>;
3337
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
3338
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
3339
+ opacity: z.ZodOptional<z.ZodNumber>;
3340
+ parallax: z.ZodOptional<z.ZodNumber>;
3341
+ priority: z.ZodOptional<z.ZodBoolean>;
3342
+ }, "strip", z.ZodTypeAny, {
3343
+ imageId: string;
3344
+ position: {
3345
+ x: number;
3346
+ y: number;
3347
+ };
3348
+ size?: "cover" | "contain" | "auto" | undefined;
3349
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3350
+ opacity?: number | undefined;
3351
+ parallax?: number | undefined;
3352
+ priority?: boolean | undefined;
3353
+ }, {
3354
+ imageId: string;
3355
+ position: {
3356
+ x: number;
3357
+ y: number;
3358
+ };
3359
+ size?: "cover" | "contain" | "auto" | undefined;
3360
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3361
+ opacity?: number | undefined;
3362
+ parallax?: number | undefined;
3363
+ priority?: boolean | undefined;
3364
+ }>;
3365
+ }, "strip", z.ZodTypeAny, {
3366
+ type: "image";
3367
+ id: string;
3368
+ payload: {
3369
+ imageId: string;
3370
+ position: {
3371
+ x: number;
3372
+ y: number;
3373
+ };
3374
+ size?: "cover" | "contain" | "auto" | undefined;
3375
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3376
+ opacity?: number | undefined;
3377
+ parallax?: number | undefined;
3378
+ priority?: boolean | undefined;
3379
+ };
3380
+ }, {
3381
+ type: "image";
3382
+ id: string;
3383
+ payload: {
3384
+ imageId: string;
3385
+ position: {
3386
+ x: number;
3387
+ y: number;
3388
+ };
3389
+ size?: "cover" | "contain" | "auto" | undefined;
3390
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3391
+ opacity?: number | undefined;
3392
+ parallax?: number | undefined;
3393
+ priority?: boolean | undefined;
3394
+ };
3395
+ }>, z.ZodObject<{
3396
+ type: z.ZodLiteral<"image-v1">;
3397
+ id: z.ZodString;
3398
+ payload: z.ZodObject<{
3399
+ version: z.ZodLiteral<1>;
3400
+ image: z.ZodUnion<[z.ZodObject<{
3401
+ version: z.ZodLiteral<1>;
3402
+ type: z.ZodLiteral<"makeswift-file">;
3403
+ id: z.ZodString;
3404
+ }, "strip", z.ZodTypeAny, {
3405
+ type: "makeswift-file";
3406
+ version: 1;
3407
+ id: string;
3408
+ }, {
3409
+ type: "makeswift-file";
3410
+ version: 1;
3411
+ id: string;
3412
+ }>, z.ZodObject<{
3413
+ version: z.ZodLiteral<1>;
3414
+ type: z.ZodLiteral<"external-file">;
3415
+ url: z.ZodString;
3416
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3417
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3418
+ }, "strip", z.ZodTypeAny, {
3419
+ type: "external-file";
3420
+ version: 1;
3421
+ url: string;
3422
+ width?: number | null | undefined;
3423
+ height?: number | null | undefined;
3424
+ }, {
3425
+ type: "external-file";
3426
+ version: 1;
3427
+ url: string;
3428
+ width?: number | null | undefined;
3429
+ height?: number | null | undefined;
3430
+ }>]>;
3431
+ position: z.ZodObject<{
3432
+ x: z.ZodNumber;
3433
+ y: z.ZodNumber;
3434
+ }, "strip", z.ZodTypeAny, {
3435
+ x: number;
3436
+ y: number;
3437
+ }, {
3438
+ x: number;
3439
+ y: number;
3440
+ }>;
3441
+ size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"cover">, z.ZodLiteral<"contain">, z.ZodLiteral<"auto">]>>;
3442
+ repeat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"no-repeat">, z.ZodLiteral<"repeat-x">, z.ZodLiteral<"repeat-y">, z.ZodLiteral<"repeat">]>>;
3443
+ opacity: z.ZodOptional<z.ZodNumber>;
3444
+ parallax: z.ZodOptional<z.ZodNumber>;
3445
+ priority: z.ZodOptional<z.ZodBoolean>;
3446
+ }, "strip", z.ZodTypeAny, {
3447
+ version: 1;
3448
+ position: {
3449
+ x: number;
3450
+ y: number;
3451
+ };
3452
+ image: {
3453
+ type: "makeswift-file";
3454
+ version: 1;
3455
+ id: string;
3456
+ } | {
3457
+ type: "external-file";
3458
+ version: 1;
3459
+ url: string;
3460
+ width?: number | null | undefined;
3461
+ height?: number | null | undefined;
3462
+ };
3463
+ size?: "cover" | "contain" | "auto" | undefined;
3464
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3465
+ opacity?: number | undefined;
3466
+ parallax?: number | undefined;
3467
+ priority?: boolean | undefined;
3468
+ }, {
3469
+ version: 1;
3470
+ position: {
3471
+ x: number;
3472
+ y: number;
3473
+ };
3474
+ image: {
3475
+ type: "makeswift-file";
3476
+ version: 1;
3477
+ id: string;
3478
+ } | {
3479
+ type: "external-file";
3480
+ version: 1;
3481
+ url: string;
3482
+ width?: number | null | undefined;
3483
+ height?: number | null | undefined;
3484
+ };
3485
+ size?: "cover" | "contain" | "auto" | undefined;
3486
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3487
+ opacity?: number | undefined;
3488
+ parallax?: number | undefined;
3489
+ priority?: boolean | undefined;
3490
+ }>;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ type: "image-v1";
3493
+ id: string;
3494
+ payload: {
3495
+ version: 1;
3496
+ position: {
3497
+ x: number;
3498
+ y: number;
3499
+ };
3500
+ image: {
3501
+ type: "makeswift-file";
3502
+ version: 1;
3503
+ id: string;
3504
+ } | {
3505
+ type: "external-file";
3506
+ version: 1;
3507
+ url: string;
3508
+ width?: number | null | undefined;
3509
+ height?: number | null | undefined;
3510
+ };
3511
+ size?: "cover" | "contain" | "auto" | undefined;
3512
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3513
+ opacity?: number | undefined;
3514
+ parallax?: number | undefined;
3515
+ priority?: boolean | undefined;
3516
+ };
3517
+ }, {
3518
+ type: "image-v1";
3519
+ id: string;
3520
+ payload: {
3521
+ version: 1;
3522
+ position: {
3523
+ x: number;
3524
+ y: number;
3525
+ };
3526
+ image: {
3527
+ type: "makeswift-file";
3528
+ version: 1;
3529
+ id: string;
3530
+ } | {
3531
+ type: "external-file";
3532
+ version: 1;
3533
+ url: string;
3534
+ width?: number | null | undefined;
3535
+ height?: number | null | undefined;
3536
+ };
3537
+ size?: "cover" | "contain" | "auto" | undefined;
3538
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3539
+ opacity?: number | undefined;
3540
+ parallax?: number | undefined;
3541
+ priority?: boolean | undefined;
3542
+ };
3543
+ }>]>, z.ZodObject<{
3544
+ type: z.ZodLiteral<"video">;
3545
+ id: z.ZodString;
3546
+ payload: z.ZodObject<{
3547
+ url: z.ZodOptional<z.ZodString>;
3548
+ maskColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3549
+ swatchId: z.ZodString;
3550
+ alpha: z.ZodNumber;
3551
+ }, "strip", z.ZodTypeAny, {
3552
+ swatchId: string;
3553
+ alpha: number;
3554
+ }, {
3555
+ swatchId: string;
3556
+ alpha: number;
3557
+ }>>>;
3558
+ opacity: z.ZodOptional<z.ZodNumber>;
3559
+ zoom: z.ZodOptional<z.ZodNumber>;
3560
+ aspectRatio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"wide">, z.ZodLiteral<"standard">]>>;
3561
+ parallax: z.ZodOptional<z.ZodNumber>;
3562
+ }, "strip", z.ZodTypeAny, {
3563
+ url?: string | undefined;
3564
+ maskColor?: {
3565
+ swatchId: string;
3566
+ alpha: number;
3567
+ } | null | undefined;
3568
+ opacity?: number | undefined;
3569
+ zoom?: number | undefined;
3570
+ aspectRatio?: "wide" | "standard" | undefined;
3571
+ parallax?: number | undefined;
3572
+ }, {
3573
+ url?: string | undefined;
3574
+ maskColor?: {
3575
+ swatchId: string;
3576
+ alpha: number;
3577
+ } | null | undefined;
3578
+ opacity?: number | undefined;
3579
+ zoom?: number | undefined;
3580
+ aspectRatio?: "wide" | "standard" | undefined;
3581
+ parallax?: number | undefined;
3582
+ }>;
3583
+ }, "strip", z.ZodTypeAny, {
3584
+ type: "video";
3585
+ id: string;
3586
+ payload: {
3587
+ url?: string | undefined;
3588
+ maskColor?: {
3589
+ swatchId: string;
3590
+ alpha: number;
3591
+ } | null | undefined;
3592
+ opacity?: number | undefined;
3593
+ zoom?: number | undefined;
3594
+ aspectRatio?: "wide" | "standard" | undefined;
3595
+ parallax?: number | undefined;
3596
+ };
3597
+ }, {
3598
+ type: "video";
3599
+ id: string;
3600
+ payload: {
3601
+ url?: string | undefined;
3602
+ maskColor?: {
3603
+ swatchId: string;
3604
+ alpha: number;
3605
+ } | null | undefined;
3606
+ opacity?: number | undefined;
3607
+ zoom?: number | undefined;
3608
+ aspectRatio?: "wide" | "standard" | undefined;
3609
+ parallax?: number | undefined;
3610
+ };
3611
+ }>]>, "many">;
3612
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3613
+ value: ({
3614
+ type: "color";
3615
+ id: string;
3616
+ payload: {
3617
+ swatchId: string;
3618
+ alpha: number;
3619
+ } | null;
3620
+ } | {
3621
+ type: "gradient";
3622
+ id: string;
3623
+ payload: {
3624
+ stops: {
3625
+ id: string;
3626
+ color: {
3627
+ swatchId: string;
3628
+ alpha: number;
3629
+ } | null;
3630
+ location: number;
3631
+ }[];
3632
+ angle?: number | undefined;
3633
+ isRadial?: boolean | undefined;
3634
+ };
3635
+ } | {
3636
+ type: "image";
3637
+ id: string;
3638
+ payload: {
3639
+ imageId: string;
3640
+ position: {
3641
+ x: number;
3642
+ y: number;
3643
+ };
3644
+ size?: "cover" | "contain" | "auto" | undefined;
3645
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3646
+ opacity?: number | undefined;
3647
+ parallax?: number | undefined;
3648
+ priority?: boolean | undefined;
3649
+ };
3650
+ } | {
3651
+ type: "image-v1";
3652
+ id: string;
3653
+ payload: {
3654
+ version: 1;
3655
+ position: {
3656
+ x: number;
3657
+ y: number;
3658
+ };
3659
+ image: {
3660
+ type: "makeswift-file";
3661
+ version: 1;
3662
+ id: string;
3663
+ } | {
3664
+ type: "external-file";
3665
+ version: 1;
3666
+ url: string;
3667
+ width?: number | null | undefined;
3668
+ height?: number | null | undefined;
3669
+ };
3670
+ size?: "cover" | "contain" | "auto" | undefined;
3671
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3672
+ opacity?: number | undefined;
3673
+ parallax?: number | undefined;
3674
+ priority?: boolean | undefined;
3675
+ };
3676
+ } | {
3677
+ type: "video";
3678
+ id: string;
3679
+ payload: {
3680
+ url?: string | undefined;
3681
+ maskColor?: {
3682
+ swatchId: string;
3683
+ alpha: number;
3684
+ } | null | undefined;
3685
+ opacity?: number | undefined;
3686
+ zoom?: number | undefined;
3687
+ aspectRatio?: "wide" | "standard" | undefined;
3688
+ parallax?: number | undefined;
3689
+ };
3690
+ })[];
3691
+ deviceId: string;
3692
+ }, {
3693
+ value: ({
3694
+ type: "color";
3695
+ id: string;
3696
+ payload: {
3697
+ swatchId: string;
3698
+ alpha: number;
3699
+ } | null;
3700
+ } | {
3701
+ type: "gradient";
3702
+ id: string;
3703
+ payload: {
3704
+ stops: {
3705
+ id: string;
3706
+ color: {
3707
+ swatchId: string;
3708
+ alpha: number;
3709
+ } | null;
3710
+ location: number;
3711
+ }[];
3712
+ angle?: number | undefined;
3713
+ isRadial?: boolean | undefined;
3714
+ };
3715
+ } | {
3716
+ type: "image";
3717
+ id: string;
3718
+ payload: {
3719
+ imageId: string;
3720
+ position: {
3721
+ x: number;
3722
+ y: number;
3723
+ };
3724
+ size?: "cover" | "contain" | "auto" | undefined;
3725
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3726
+ opacity?: number | undefined;
3727
+ parallax?: number | undefined;
3728
+ priority?: boolean | undefined;
3729
+ };
3730
+ } | {
3731
+ type: "image-v1";
3732
+ id: string;
3733
+ payload: {
3734
+ version: 1;
3735
+ position: {
3736
+ x: number;
3737
+ y: number;
3738
+ };
3739
+ image: {
3740
+ type: "makeswift-file";
3741
+ version: 1;
3742
+ id: string;
3743
+ } | {
3744
+ type: "external-file";
3745
+ version: 1;
3746
+ url: string;
3747
+ width?: number | null | undefined;
3748
+ height?: number | null | undefined;
3749
+ };
3750
+ size?: "cover" | "contain" | "auto" | undefined;
3751
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3752
+ opacity?: number | undefined;
3753
+ parallax?: number | undefined;
3754
+ priority?: boolean | undefined;
3755
+ };
3756
+ } | {
3757
+ type: "video";
3758
+ id: string;
3759
+ payload: {
3760
+ url?: string | undefined;
3761
+ maskColor?: {
3762
+ swatchId: string;
3763
+ alpha: number;
3764
+ } | null | undefined;
3765
+ opacity?: number | undefined;
3766
+ zoom?: number | undefined;
3767
+ aspectRatio?: "wide" | "standard" | undefined;
3768
+ parallax?: number | undefined;
3769
+ };
3770
+ })[];
3771
+ deviceId: string;
3772
+ }>, "many">;
3773
+ }, "strip", z.ZodTypeAny, {
3774
+ "@@makeswift/type": "prop-controllers::backgrounds::v2";
3775
+ value: {
3776
+ value: ({
3777
+ type: "color";
3778
+ id: string;
3779
+ payload: {
3780
+ swatchId: string;
3781
+ alpha: number;
3782
+ } | null;
3783
+ } | {
3784
+ type: "gradient";
3785
+ id: string;
3786
+ payload: {
3787
+ stops: {
3788
+ id: string;
3789
+ color: {
3790
+ swatchId: string;
3791
+ alpha: number;
3792
+ } | null;
3793
+ location: number;
3794
+ }[];
3795
+ angle?: number | undefined;
3796
+ isRadial?: boolean | undefined;
3797
+ };
3798
+ } | {
3799
+ type: "image";
3800
+ id: string;
3801
+ payload: {
3802
+ imageId: string;
3803
+ position: {
3804
+ x: number;
3805
+ y: number;
3806
+ };
3807
+ size?: "cover" | "contain" | "auto" | undefined;
3808
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3809
+ opacity?: number | undefined;
3810
+ parallax?: number | undefined;
3811
+ priority?: boolean | undefined;
3812
+ };
3813
+ } | {
3814
+ type: "image-v1";
3815
+ id: string;
3816
+ payload: {
3817
+ version: 1;
3818
+ position: {
3819
+ x: number;
3820
+ y: number;
3821
+ };
3822
+ image: {
3823
+ type: "makeswift-file";
3824
+ version: 1;
3825
+ id: string;
3826
+ } | {
3827
+ type: "external-file";
3828
+ version: 1;
3829
+ url: string;
3830
+ width?: number | null | undefined;
3831
+ height?: number | null | undefined;
3832
+ };
3833
+ size?: "cover" | "contain" | "auto" | undefined;
3834
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3835
+ opacity?: number | undefined;
3836
+ parallax?: number | undefined;
3837
+ priority?: boolean | undefined;
3838
+ };
3839
+ } | {
3840
+ type: "video";
3841
+ id: string;
3842
+ payload: {
3843
+ url?: string | undefined;
3844
+ maskColor?: {
3845
+ swatchId: string;
3846
+ alpha: number;
3847
+ } | null | undefined;
3848
+ opacity?: number | undefined;
3849
+ zoom?: number | undefined;
3850
+ aspectRatio?: "wide" | "standard" | undefined;
3851
+ parallax?: number | undefined;
3852
+ };
3853
+ })[];
3854
+ deviceId: string;
3855
+ }[];
3856
+ }, {
3857
+ "@@makeswift/type": "prop-controllers::backgrounds::v2";
3858
+ value: {
3859
+ value: ({
3860
+ type: "color";
3861
+ id: string;
3862
+ payload: {
3863
+ swatchId: string;
3864
+ alpha: number;
3865
+ } | null;
3866
+ } | {
3867
+ type: "gradient";
3868
+ id: string;
3869
+ payload: {
3870
+ stops: {
3871
+ id: string;
3872
+ color: {
3873
+ swatchId: string;
3874
+ alpha: number;
3875
+ } | null;
3876
+ location: number;
3877
+ }[];
3878
+ angle?: number | undefined;
3879
+ isRadial?: boolean | undefined;
3880
+ };
3881
+ } | {
3882
+ type: "image";
3883
+ id: string;
3884
+ payload: {
3885
+ imageId: string;
3886
+ position: {
3887
+ x: number;
3888
+ y: number;
3889
+ };
3890
+ size?: "cover" | "contain" | "auto" | undefined;
3891
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3892
+ opacity?: number | undefined;
3893
+ parallax?: number | undefined;
3894
+ priority?: boolean | undefined;
3895
+ };
3896
+ } | {
3897
+ type: "image-v1";
3898
+ id: string;
3899
+ payload: {
3900
+ version: 1;
3901
+ position: {
3902
+ x: number;
3903
+ y: number;
3904
+ };
3905
+ image: {
3906
+ type: "makeswift-file";
3907
+ version: 1;
3908
+ id: string;
3909
+ } | {
3910
+ type: "external-file";
3911
+ version: 1;
3912
+ url: string;
3913
+ width?: number | null | undefined;
3914
+ height?: number | null | undefined;
3915
+ };
3916
+ size?: "cover" | "contain" | "auto" | undefined;
3917
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | undefined;
3918
+ opacity?: number | undefined;
3919
+ parallax?: number | undefined;
3920
+ priority?: boolean | undefined;
3921
+ };
3922
+ } | {
3923
+ type: "video";
3924
+ id: string;
3925
+ payload: {
3926
+ url?: string | undefined;
3927
+ maskColor?: {
3928
+ swatchId: string;
3929
+ alpha: number;
3930
+ } | null | undefined;
3931
+ opacity?: number | undefined;
3932
+ zoom?: number | undefined;
3933
+ aspectRatio?: "wide" | "standard" | undefined;
3934
+ parallax?: number | undefined;
3935
+ };
3936
+ })[];
3937
+ deviceId: string;
3938
+ }[];
3939
+ }>]>;
3940
+ export type BackgroundsPropControllerData = z.infer<typeof backgroundsPropControllerDataSchema>;
3941
+ export type BackgroundsOptions = Options<Record<string, never>>;
3942
+ type BackgroundsDescriptorV1<_T = BackgroundsPropControllerDataV1> = {
3943
+ type: typeof Types.Backgrounds;
3944
+ version: 1;
3945
+ options: BackgroundsOptions;
3946
+ };
3947
+ type BackgroundsDescriptorV2<_T = BackgroundsPropControllerData> = {
3948
+ type: typeof Types.Backgrounds;
3949
+ version: 2;
3950
+ options: BackgroundsOptions;
3951
+ };
3952
+ export type BackgroundsDescriptor<_T = BackgroundsPropControllerData> = BackgroundsDescriptorV1 | BackgroundsDescriptorV2;
3953
+ export type ResolveBackgroundsPropControllerValue<T extends BackgroundsDescriptor> = T extends BackgroundsDescriptor ? ResponsiveBackgroundsData | undefined : never;
3954
+ /**
3955
+ * @deprecated Imports from @makeswift/prop-controllers are deprecated. Use
3956
+ * @makeswift/runtime/controls instead.
3957
+ */
3958
+ export declare function Backgrounds(options?: BackgroundsOptions): BackgroundsDescriptorV2;
3959
+ export declare function getBackgroundsPropControllerDataResponsiveBackgroundsData(data: BackgroundsPropControllerData | undefined): ResponsiveBackgroundsData | undefined;
3960
+ export declare function createBackgroundsPropControllerDataFromResponsiveBackgroundsData(data: ResponsiveBackgroundsData, definition: BackgroundsDescriptor): BackgroundsPropControllerData;
3961
+ export declare function getBackgroundsPropControllerFileIds(data: BackgroundsPropControllerData | undefined): string[];
3962
+ export declare function getBackgroundsPropControllerSwatchIds(data: BackgroundsPropControllerData | undefined): string[];
3963
+ export declare function copyBackgroundsPropControllerData(descriptor: BackgroundsDescriptor, data: BackgroundsPropControllerData | undefined, context: CopyContext): BackgroundsPropControllerData | undefined;
3964
+ export {};
3965
+ //# sourceMappingURL=backgrounds.d.ts.map