@guardian/support-dotcom-components 7.10.2 → 8.0.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 (33) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/shared/lib/geolocation.d.ts +20 -10
  4. package/dist/shared/lib/geolocation.d.ts.map +1 -1
  5. package/dist/shared/types/abTests/banner.d.ts +205 -2252
  6. package/dist/shared/types/abTests/banner.d.ts.map +1 -1
  7. package/dist/shared/types/abTests/epic.d.ts +156 -1560
  8. package/dist/shared/types/abTests/epic.d.ts.map +1 -1
  9. package/dist/shared/types/abTests/gutter.d.ts +80 -369
  10. package/dist/shared/types/abTests/gutter.d.ts.map +1 -1
  11. package/dist/shared/types/abTests/header.d.ts +95 -467
  12. package/dist/shared/types/abTests/header.d.ts.map +1 -1
  13. package/dist/shared/types/abTests/shared.d.ts +89 -155
  14. package/dist/shared/types/abTests/shared.d.ts.map +1 -1
  15. package/dist/shared/types/props/banner.d.ts +144 -1675
  16. package/dist/shared/types/props/banner.d.ts.map +1 -1
  17. package/dist/shared/types/props/choiceCards.d.ts +56 -586
  18. package/dist/shared/types/props/choiceCards.d.ts.map +1 -1
  19. package/dist/shared/types/props/design.d.ts +54 -514
  20. package/dist/shared/types/props/design.d.ts.map +1 -1
  21. package/dist/shared/types/props/epic.d.ts +192 -2501
  22. package/dist/shared/types/props/epic.d.ts.map +1 -1
  23. package/dist/shared/types/props/gutter.d.ts +25 -200
  24. package/dist/shared/types/props/gutter.d.ts.map +1 -1
  25. package/dist/shared/types/props/header.d.ts +29 -230
  26. package/dist/shared/types/props/header.d.ts.map +1 -1
  27. package/dist/shared/types/props/shared.d.ts +55 -212
  28. package/dist/shared/types/props/shared.d.ts.map +1 -1
  29. package/dist/shared/types/purchaseInfo.d.ts +11 -2
  30. package/dist/shared/types/purchaseInfo.d.ts.map +1 -1
  31. package/dist/shared/types/targeting/shared.d.ts +5 -15
  32. package/dist/shared/types/targeting/shared.d.ts.map +1 -1
  33. package/package.json +4 -4
@@ -1,638 +1,108 @@
1
1
  import { z } from 'zod';
2
- declare const ratePlanSchema: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
2
+ declare const ratePlanSchema: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
3
3
  export type RatePlan = z.infer<typeof ratePlanSchema>;
4
4
  declare const choiceCardSchema: z.ZodObject<{
5
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
5
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
6
  supportTier: z.ZodLiteral<"Contribution">;
7
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
8
- }, "strip", z.ZodTypeAny, {
9
- supportTier: "Contribution";
10
- ratePlan: "Monthly" | "Annual";
11
- }, {
12
- supportTier: "Contribution";
13
- ratePlan: "Monthly" | "Annual";
14
- }>, z.ZodObject<{
7
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
8
+ }, z.core.$strip>, z.ZodObject<{
15
9
  supportTier: z.ZodLiteral<"SupporterPlus">;
16
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
17
- }, "strip", z.ZodTypeAny, {
18
- supportTier: "SupporterPlus";
19
- ratePlan: "Monthly" | "Annual";
20
- }, {
21
- supportTier: "SupporterPlus";
22
- ratePlan: "Monthly" | "Annual";
23
- }>, z.ZodObject<{
10
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
11
+ }, z.core.$strip>, z.ZodObject<{
24
12
  supportTier: z.ZodLiteral<"OneOff">;
25
- }, "strip", z.ZodTypeAny, {
26
- supportTier: "OneOff";
27
- }, {
28
- supportTier: "OneOff";
29
- }>]>;
13
+ }, z.core.$strip>], "supportTier">;
30
14
  label: z.ZodString;
31
15
  isDefault: z.ZodBoolean;
32
16
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
17
  benefits: z.ZodArray<z.ZodObject<{
34
18
  copy: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- copy: string;
37
- }, {
38
- copy: string;
39
- }>, "many">;
19
+ }, z.core.$strip>>;
40
20
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
21
  copy: z.ZodString;
42
22
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
- r: z.ZodEffects<z.ZodString, string, string>;
44
- g: z.ZodEffects<z.ZodString, string, string>;
45
- b: z.ZodEffects<z.ZodString, string, string>;
23
+ r: z.ZodString;
24
+ g: z.ZodString;
25
+ b: z.ZodString;
46
26
  kind: z.ZodLiteral<"hex">;
47
- }, "strip", z.ZodTypeAny, {
48
- r: string;
49
- b: string;
50
- g: string;
51
- kind: "hex";
52
- }, {
53
- r: string;
54
- b: string;
55
- g: string;
56
- kind: "hex";
57
- }>>>;
27
+ }, z.core.$strip>>>;
58
28
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
59
- r: z.ZodEffects<z.ZodString, string, string>;
60
- g: z.ZodEffects<z.ZodString, string, string>;
61
- b: z.ZodEffects<z.ZodString, string, string>;
29
+ r: z.ZodString;
30
+ g: z.ZodString;
31
+ b: z.ZodString;
62
32
  kind: z.ZodLiteral<"hex">;
63
- }, "strip", z.ZodTypeAny, {
64
- r: string;
65
- b: string;
66
- g: string;
67
- kind: "hex";
68
- }, {
69
- r: string;
70
- b: string;
71
- g: string;
72
- kind: "hex";
73
- }>>>;
74
- }, "strip", z.ZodTypeAny, {
75
- copy: string;
76
- textColour?: {
77
- r: string;
78
- b: string;
79
- g: string;
80
- kind: "hex";
81
- } | null | undefined;
82
- backgroundColour?: {
83
- r: string;
84
- b: string;
85
- g: string;
86
- kind: "hex";
87
- } | null | undefined;
88
- }, {
89
- copy: string;
90
- textColour?: {
91
- r: string;
92
- b: string;
93
- g: string;
94
- kind: "hex";
95
- } | null | undefined;
96
- backgroundColour?: {
97
- r: string;
98
- b: string;
99
- g: string;
100
- kind: "hex";
101
- } | null | undefined;
102
- }>>>;
103
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
104
- }, "strip", z.ZodTypeAny, {
105
- product: {
106
- supportTier: "Contribution";
107
- ratePlan: "Monthly" | "Annual";
108
- } | {
109
- supportTier: "SupporterPlus";
110
- ratePlan: "Monthly" | "Annual";
111
- } | {
112
- supportTier: "OneOff";
113
- };
114
- label: string;
115
- isDefault: boolean;
116
- benefits: {
117
- copy: string;
118
- }[];
119
- benefitsLabel?: string | null | undefined;
120
- pill?: {
121
- copy: string;
122
- textColour?: {
123
- r: string;
124
- b: string;
125
- g: string;
126
- kind: "hex";
127
- } | null | undefined;
128
- backgroundColour?: {
129
- r: string;
130
- b: string;
131
- g: string;
132
- kind: "hex";
133
- } | null | undefined;
134
- } | null | undefined;
135
- destination?: "LandingPage" | "Checkout" | null | undefined;
136
- }, {
137
- product: {
138
- supportTier: "Contribution";
139
- ratePlan: "Monthly" | "Annual";
140
- } | {
141
- supportTier: "SupporterPlus";
142
- ratePlan: "Monthly" | "Annual";
143
- } | {
144
- supportTier: "OneOff";
145
- };
146
- label: string;
147
- isDefault: boolean;
148
- benefits: {
149
- copy: string;
150
- }[];
151
- benefitsLabel?: string | null | undefined;
152
- pill?: {
153
- copy: string;
154
- textColour?: {
155
- r: string;
156
- b: string;
157
- g: string;
158
- kind: "hex";
159
- } | null | undefined;
160
- backgroundColour?: {
161
- r: string;
162
- b: string;
163
- g: string;
164
- kind: "hex";
165
- } | null | undefined;
166
- } | null | undefined;
167
- destination?: "LandingPage" | "Checkout" | null | undefined;
168
- }>;
33
+ }, z.core.$strip>>>;
34
+ }, z.core.$strip>>>;
35
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
36
+ }, z.core.$strip>;
169
37
  export type ChoiceCard = z.infer<typeof choiceCardSchema>;
170
38
  export declare const choiceCardsSettings: z.ZodObject<{
171
39
  choiceCards: z.ZodArray<z.ZodObject<{
172
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
40
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
173
41
  supportTier: z.ZodLiteral<"Contribution">;
174
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
175
- }, "strip", z.ZodTypeAny, {
176
- supportTier: "Contribution";
177
- ratePlan: "Monthly" | "Annual";
178
- }, {
179
- supportTier: "Contribution";
180
- ratePlan: "Monthly" | "Annual";
181
- }>, z.ZodObject<{
42
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
43
+ }, z.core.$strip>, z.ZodObject<{
182
44
  supportTier: z.ZodLiteral<"SupporterPlus">;
183
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
184
- }, "strip", z.ZodTypeAny, {
185
- supportTier: "SupporterPlus";
186
- ratePlan: "Monthly" | "Annual";
187
- }, {
188
- supportTier: "SupporterPlus";
189
- ratePlan: "Monthly" | "Annual";
190
- }>, z.ZodObject<{
45
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
46
+ }, z.core.$strip>, z.ZodObject<{
191
47
  supportTier: z.ZodLiteral<"OneOff">;
192
- }, "strip", z.ZodTypeAny, {
193
- supportTier: "OneOff";
194
- }, {
195
- supportTier: "OneOff";
196
- }>]>;
48
+ }, z.core.$strip>], "supportTier">;
197
49
  label: z.ZodString;
198
50
  isDefault: z.ZodBoolean;
199
51
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
52
  benefits: z.ZodArray<z.ZodObject<{
201
53
  copy: z.ZodString;
202
- }, "strip", z.ZodTypeAny, {
203
- copy: string;
204
- }, {
205
- copy: string;
206
- }>, "many">;
54
+ }, z.core.$strip>>;
207
55
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
208
56
  copy: z.ZodString;
209
57
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
210
- r: z.ZodEffects<z.ZodString, string, string>;
211
- g: z.ZodEffects<z.ZodString, string, string>;
212
- b: z.ZodEffects<z.ZodString, string, string>;
58
+ r: z.ZodString;
59
+ g: z.ZodString;
60
+ b: z.ZodString;
213
61
  kind: z.ZodLiteral<"hex">;
214
- }, "strip", z.ZodTypeAny, {
215
- r: string;
216
- b: string;
217
- g: string;
218
- kind: "hex";
219
- }, {
220
- r: string;
221
- b: string;
222
- g: string;
223
- kind: "hex";
224
- }>>>;
62
+ }, z.core.$strip>>>;
225
63
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
226
- r: z.ZodEffects<z.ZodString, string, string>;
227
- g: z.ZodEffects<z.ZodString, string, string>;
228
- b: z.ZodEffects<z.ZodString, string, string>;
64
+ r: z.ZodString;
65
+ g: z.ZodString;
66
+ b: z.ZodString;
229
67
  kind: z.ZodLiteral<"hex">;
230
- }, "strip", z.ZodTypeAny, {
231
- r: string;
232
- b: string;
233
- g: string;
234
- kind: "hex";
235
- }, {
236
- r: string;
237
- b: string;
238
- g: string;
239
- kind: "hex";
240
- }>>>;
241
- }, "strip", z.ZodTypeAny, {
242
- copy: string;
243
- textColour?: {
244
- r: string;
245
- b: string;
246
- g: string;
247
- kind: "hex";
248
- } | null | undefined;
249
- backgroundColour?: {
250
- r: string;
251
- b: string;
252
- g: string;
253
- kind: "hex";
254
- } | null | undefined;
255
- }, {
256
- copy: string;
257
- textColour?: {
258
- r: string;
259
- b: string;
260
- g: string;
261
- kind: "hex";
262
- } | null | undefined;
263
- backgroundColour?: {
264
- r: string;
265
- b: string;
266
- g: string;
267
- kind: "hex";
268
- } | null | undefined;
269
- }>>>;
270
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
271
- }, "strip", z.ZodTypeAny, {
272
- product: {
273
- supportTier: "Contribution";
274
- ratePlan: "Monthly" | "Annual";
275
- } | {
276
- supportTier: "SupporterPlus";
277
- ratePlan: "Monthly" | "Annual";
278
- } | {
279
- supportTier: "OneOff";
280
- };
281
- label: string;
282
- isDefault: boolean;
283
- benefits: {
284
- copy: string;
285
- }[];
286
- benefitsLabel?: string | null | undefined;
287
- pill?: {
288
- copy: string;
289
- textColour?: {
290
- r: string;
291
- b: string;
292
- g: string;
293
- kind: "hex";
294
- } | null | undefined;
295
- backgroundColour?: {
296
- r: string;
297
- b: string;
298
- g: string;
299
- kind: "hex";
300
- } | null | undefined;
301
- } | null | undefined;
302
- destination?: "LandingPage" | "Checkout" | null | undefined;
303
- }, {
304
- product: {
305
- supportTier: "Contribution";
306
- ratePlan: "Monthly" | "Annual";
307
- } | {
308
- supportTier: "SupporterPlus";
309
- ratePlan: "Monthly" | "Annual";
310
- } | {
311
- supportTier: "OneOff";
312
- };
313
- label: string;
314
- isDefault: boolean;
315
- benefits: {
316
- copy: string;
317
- }[];
318
- benefitsLabel?: string | null | undefined;
319
- pill?: {
320
- copy: string;
321
- textColour?: {
322
- r: string;
323
- b: string;
324
- g: string;
325
- kind: "hex";
326
- } | null | undefined;
327
- backgroundColour?: {
328
- r: string;
329
- b: string;
330
- g: string;
331
- kind: "hex";
332
- } | null | undefined;
333
- } | null | undefined;
334
- destination?: "LandingPage" | "Checkout" | null | undefined;
335
- }>, "many">;
68
+ }, z.core.$strip>>>;
69
+ }, z.core.$strip>>>;
70
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
71
+ }, z.core.$strip>>;
336
72
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
337
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
73
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
338
74
  supportTier: z.ZodLiteral<"Contribution">;
339
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
340
- }, "strip", z.ZodTypeAny, {
341
- supportTier: "Contribution";
342
- ratePlan: "Monthly" | "Annual";
343
- }, {
344
- supportTier: "Contribution";
345
- ratePlan: "Monthly" | "Annual";
346
- }>, z.ZodObject<{
75
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
76
+ }, z.core.$strip>, z.ZodObject<{
347
77
  supportTier: z.ZodLiteral<"SupporterPlus">;
348
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
349
- }, "strip", z.ZodTypeAny, {
350
- supportTier: "SupporterPlus";
351
- ratePlan: "Monthly" | "Annual";
352
- }, {
353
- supportTier: "SupporterPlus";
354
- ratePlan: "Monthly" | "Annual";
355
- }>, z.ZodObject<{
78
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
79
+ }, z.core.$strip>, z.ZodObject<{
356
80
  supportTier: z.ZodLiteral<"OneOff">;
357
- }, "strip", z.ZodTypeAny, {
358
- supportTier: "OneOff";
359
- }, {
360
- supportTier: "OneOff";
361
- }>]>;
81
+ }, z.core.$strip>], "supportTier">;
362
82
  label: z.ZodString;
363
83
  isDefault: z.ZodBoolean;
364
84
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
85
  benefits: z.ZodArray<z.ZodObject<{
366
86
  copy: z.ZodString;
367
- }, "strip", z.ZodTypeAny, {
368
- copy: string;
369
- }, {
370
- copy: string;
371
- }>, "many">;
87
+ }, z.core.$strip>>;
372
88
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
373
89
  copy: z.ZodString;
374
90
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
375
- r: z.ZodEffects<z.ZodString, string, string>;
376
- g: z.ZodEffects<z.ZodString, string, string>;
377
- b: z.ZodEffects<z.ZodString, string, string>;
91
+ r: z.ZodString;
92
+ g: z.ZodString;
93
+ b: z.ZodString;
378
94
  kind: z.ZodLiteral<"hex">;
379
- }, "strip", z.ZodTypeAny, {
380
- r: string;
381
- b: string;
382
- g: string;
383
- kind: "hex";
384
- }, {
385
- r: string;
386
- b: string;
387
- g: string;
388
- kind: "hex";
389
- }>>>;
95
+ }, z.core.$strip>>>;
390
96
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
391
- r: z.ZodEffects<z.ZodString, string, string>;
392
- g: z.ZodEffects<z.ZodString, string, string>;
393
- b: z.ZodEffects<z.ZodString, string, string>;
97
+ r: z.ZodString;
98
+ g: z.ZodString;
99
+ b: z.ZodString;
394
100
  kind: z.ZodLiteral<"hex">;
395
- }, "strip", z.ZodTypeAny, {
396
- r: string;
397
- b: string;
398
- g: string;
399
- kind: "hex";
400
- }, {
401
- r: string;
402
- b: string;
403
- g: string;
404
- kind: "hex";
405
- }>>>;
406
- }, "strip", z.ZodTypeAny, {
407
- copy: string;
408
- textColour?: {
409
- r: string;
410
- b: string;
411
- g: string;
412
- kind: "hex";
413
- } | null | undefined;
414
- backgroundColour?: {
415
- r: string;
416
- b: string;
417
- g: string;
418
- kind: "hex";
419
- } | null | undefined;
420
- }, {
421
- copy: string;
422
- textColour?: {
423
- r: string;
424
- b: string;
425
- g: string;
426
- kind: "hex";
427
- } | null | undefined;
428
- backgroundColour?: {
429
- r: string;
430
- b: string;
431
- g: string;
432
- kind: "hex";
433
- } | null | undefined;
434
- }>>>;
435
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
436
- }, "strip", z.ZodTypeAny, {
437
- product: {
438
- supportTier: "Contribution";
439
- ratePlan: "Monthly" | "Annual";
440
- } | {
441
- supportTier: "SupporterPlus";
442
- ratePlan: "Monthly" | "Annual";
443
- } | {
444
- supportTier: "OneOff";
445
- };
446
- label: string;
447
- isDefault: boolean;
448
- benefits: {
449
- copy: string;
450
- }[];
451
- benefitsLabel?: string | null | undefined;
452
- pill?: {
453
- copy: string;
454
- textColour?: {
455
- r: string;
456
- b: string;
457
- g: string;
458
- kind: "hex";
459
- } | null | undefined;
460
- backgroundColour?: {
461
- r: string;
462
- b: string;
463
- g: string;
464
- kind: "hex";
465
- } | null | undefined;
466
- } | null | undefined;
467
- destination?: "LandingPage" | "Checkout" | null | undefined;
468
- }, {
469
- product: {
470
- supportTier: "Contribution";
471
- ratePlan: "Monthly" | "Annual";
472
- } | {
473
- supportTier: "SupporterPlus";
474
- ratePlan: "Monthly" | "Annual";
475
- } | {
476
- supportTier: "OneOff";
477
- };
478
- label: string;
479
- isDefault: boolean;
480
- benefits: {
481
- copy: string;
482
- }[];
483
- benefitsLabel?: string | null | undefined;
484
- pill?: {
485
- copy: string;
486
- textColour?: {
487
- r: string;
488
- b: string;
489
- g: string;
490
- kind: "hex";
491
- } | null | undefined;
492
- backgroundColour?: {
493
- r: string;
494
- b: string;
495
- g: string;
496
- kind: "hex";
497
- } | null | undefined;
498
- } | null | undefined;
499
- destination?: "LandingPage" | "Checkout" | null | undefined;
500
- }>, "many">>>;
501
- }, "strip", z.ZodTypeAny, {
502
- choiceCards: {
503
- product: {
504
- supportTier: "Contribution";
505
- ratePlan: "Monthly" | "Annual";
506
- } | {
507
- supportTier: "SupporterPlus";
508
- ratePlan: "Monthly" | "Annual";
509
- } | {
510
- supportTier: "OneOff";
511
- };
512
- label: string;
513
- isDefault: boolean;
514
- benefits: {
515
- copy: string;
516
- }[];
517
- benefitsLabel?: string | null | undefined;
518
- pill?: {
519
- copy: string;
520
- textColour?: {
521
- r: string;
522
- b: string;
523
- g: string;
524
- kind: "hex";
525
- } | null | undefined;
526
- backgroundColour?: {
527
- r: string;
528
- b: string;
529
- g: string;
530
- kind: "hex";
531
- } | null | undefined;
532
- } | null | undefined;
533
- destination?: "LandingPage" | "Checkout" | null | undefined;
534
- }[];
535
- mobileChoiceCards?: {
536
- product: {
537
- supportTier: "Contribution";
538
- ratePlan: "Monthly" | "Annual";
539
- } | {
540
- supportTier: "SupporterPlus";
541
- ratePlan: "Monthly" | "Annual";
542
- } | {
543
- supportTier: "OneOff";
544
- };
545
- label: string;
546
- isDefault: boolean;
547
- benefits: {
548
- copy: string;
549
- }[];
550
- benefitsLabel?: string | null | undefined;
551
- pill?: {
552
- copy: string;
553
- textColour?: {
554
- r: string;
555
- b: string;
556
- g: string;
557
- kind: "hex";
558
- } | null | undefined;
559
- backgroundColour?: {
560
- r: string;
561
- b: string;
562
- g: string;
563
- kind: "hex";
564
- } | null | undefined;
565
- } | null | undefined;
566
- destination?: "LandingPage" | "Checkout" | null | undefined;
567
- }[] | null | undefined;
568
- }, {
569
- choiceCards: {
570
- product: {
571
- supportTier: "Contribution";
572
- ratePlan: "Monthly" | "Annual";
573
- } | {
574
- supportTier: "SupporterPlus";
575
- ratePlan: "Monthly" | "Annual";
576
- } | {
577
- supportTier: "OneOff";
578
- };
579
- label: string;
580
- isDefault: boolean;
581
- benefits: {
582
- copy: string;
583
- }[];
584
- benefitsLabel?: string | null | undefined;
585
- pill?: {
586
- copy: string;
587
- textColour?: {
588
- r: string;
589
- b: string;
590
- g: string;
591
- kind: "hex";
592
- } | null | undefined;
593
- backgroundColour?: {
594
- r: string;
595
- b: string;
596
- g: string;
597
- kind: "hex";
598
- } | null | undefined;
599
- } | null | undefined;
600
- destination?: "LandingPage" | "Checkout" | null | undefined;
601
- }[];
602
- mobileChoiceCards?: {
603
- product: {
604
- supportTier: "Contribution";
605
- ratePlan: "Monthly" | "Annual";
606
- } | {
607
- supportTier: "SupporterPlus";
608
- ratePlan: "Monthly" | "Annual";
609
- } | {
610
- supportTier: "OneOff";
611
- };
612
- label: string;
613
- isDefault: boolean;
614
- benefits: {
615
- copy: string;
616
- }[];
617
- benefitsLabel?: string | null | undefined;
618
- pill?: {
619
- copy: string;
620
- textColour?: {
621
- r: string;
622
- b: string;
623
- g: string;
624
- kind: "hex";
625
- } | null | undefined;
626
- backgroundColour?: {
627
- r: string;
628
- b: string;
629
- g: string;
630
- kind: "hex";
631
- } | null | undefined;
632
- } | null | undefined;
633
- destination?: "LandingPage" | "Checkout" | null | undefined;
634
- }[] | null | undefined;
635
- }>;
101
+ }, z.core.$strip>>>;
102
+ }, z.core.$strip>>>;
103
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
104
+ }, z.core.$strip>>>>;
105
+ }, z.core.$strip>;
636
106
  export type ChoiceCardsSettings = z.infer<typeof choiceCardsSettings>;
637
107
  export {};
638
108
  //# sourceMappingURL=choiceCards.d.ts.map