@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
@@ -6,7 +6,12 @@ import type { AbandonedBasket } from '../targeting';
6
6
  import type { ChoiceCardsSettings } from './choiceCards';
7
7
  import type { ConfigurableDesign } from './design';
8
8
  import type { ArticleCounts, Cta, SecondaryCta, SeparateArticleCount, TickerSettings, Tracking } from './shared';
9
- export declare const bannerChannelSchema: z.ZodEnum<["contributions", "subscriptions", "signIn", "abandonedBasket"]>;
9
+ export declare const bannerChannelSchema: z.ZodEnum<{
10
+ contributions: "contributions";
11
+ subscriptions: "subscriptions";
12
+ signIn: "signIn";
13
+ abandonedBasket: "abandonedBasket";
14
+ }>;
10
15
  export type BannerChannel = z.infer<typeof bannerChannelSchema>;
11
16
  export declare const channelFromBannerChannel: (bannerChannel: BannerChannel) => Channel;
12
17
  export interface BannerContent {
@@ -21,89 +26,23 @@ export interface BannerContent {
21
26
  export declare const bannerContentSchema: z.ZodObject<{
22
27
  heading: z.ZodOptional<z.ZodString>;
23
28
  messageText: z.ZodOptional<z.ZodString>;
24
- paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
30
  mobileMessageText: z.ZodOptional<z.ZodString>;
26
31
  highlightedText: z.ZodOptional<z.ZodString>;
27
32
  cta: z.ZodOptional<z.ZodObject<{
28
33
  text: z.ZodString;
29
34
  baseUrl: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- text: string;
32
- baseUrl: string;
33
- }, {
34
- text: string;
35
- baseUrl: string;
36
- }>>;
37
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
35
+ }, z.core.$strip>>;
36
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
38
37
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
39
38
  cta: z.ZodObject<{
40
39
  text: z.ZodString;
41
40
  baseUrl: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- text: string;
44
- baseUrl: string;
45
- }, {
46
- text: string;
47
- baseUrl: string;
48
- }>;
49
- }, "strip", z.ZodTypeAny, {
50
- type: import("./shared").SecondaryCtaType.Custom;
51
- cta: {
52
- text: string;
53
- baseUrl: string;
54
- };
55
- }, {
56
- type: import("./shared").SecondaryCtaType.Custom;
57
- cta: {
58
- text: string;
59
- baseUrl: string;
60
- };
61
- }>, z.ZodObject<{
41
+ }, z.core.$strip>;
42
+ }, z.core.$strip>, z.ZodObject<{
62
43
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
65
- }, {
66
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
67
- }>]>>;
68
- }, "strip", z.ZodTypeAny, {
69
- heading?: string | undefined;
70
- messageText?: string | undefined;
71
- paragraphs?: string[] | undefined;
72
- mobileMessageText?: string | undefined;
73
- highlightedText?: string | undefined;
74
- cta?: {
75
- text: string;
76
- baseUrl: string;
77
- } | undefined;
78
- secondaryCta?: {
79
- type: import("./shared").SecondaryCtaType.Custom;
80
- cta: {
81
- text: string;
82
- baseUrl: string;
83
- };
84
- } | {
85
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
86
- } | undefined;
87
- }, {
88
- heading?: string | undefined;
89
- messageText?: string | undefined;
90
- paragraphs?: string[] | undefined;
91
- mobileMessageText?: string | undefined;
92
- highlightedText?: string | undefined;
93
- cta?: {
94
- text: string;
95
- baseUrl: string;
96
- } | undefined;
97
- secondaryCta?: {
98
- type: import("./shared").SecondaryCtaType.Custom;
99
- cta: {
100
- text: string;
101
- baseUrl: string;
102
- };
103
- } | {
104
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
105
- } | undefined;
106
- }>;
44
+ }, z.core.$strip>], "type">>;
45
+ }, z.core.$strip>;
107
46
  export interface BannerProps {
108
47
  tracking: Tracking;
109
48
  bannerChannel: BannerChannel;
@@ -130,206 +69,70 @@ export declare const bannerSchema: z.ZodObject<{
130
69
  abTestName: z.ZodString;
131
70
  abTestVariant: z.ZodString;
132
71
  campaignCode: z.ZodString;
133
- componentType: z.ZodEnum<["ACQUISITIONS_EPIC", "ACQUISITIONS_ENGAGEMENT_BANNER", "ACQUISITIONS_SUBSCRIPTIONS_BANNER", "ACQUISITIONS_HEADER", "ACQUISITIONS_OTHER"]>;
134
- products: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["CONTRIBUTION", "MEMBERSHIP_SUPPORTER", "DIGITAL_SUBSCRIPTION", "PRINT_SUBSCRIPTION"]>, "many">>>;
135
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
72
+ componentType: z.ZodEnum<{
73
+ ACQUISITIONS_EPIC: "ACQUISITIONS_EPIC";
74
+ ACQUISITIONS_ENGAGEMENT_BANNER: "ACQUISITIONS_ENGAGEMENT_BANNER";
75
+ ACQUISITIONS_HEADER: "ACQUISITIONS_HEADER";
76
+ ACQUISITIONS_OTHER: "ACQUISITIONS_OTHER";
77
+ ACQUISITIONS_SUBSCRIPTIONS_BANNER: "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
78
+ }>;
79
+ products: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
80
+ CONTRIBUTION: "CONTRIBUTION";
81
+ MEMBERSHIP_SUPPORTER: "MEMBERSHIP_SUPPORTER";
82
+ DIGITAL_SUBSCRIPTION: "DIGITAL_SUBSCRIPTION";
83
+ PRINT_SUBSCRIPTION: "PRINT_SUBSCRIPTION";
84
+ }>>>>;
85
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
136
86
  ophanPageId: z.ZodString;
137
87
  platformId: z.ZodString;
138
88
  referrerUrl: z.ZodString;
139
- }, "strip", z.ZodTypeAny, {
140
- abTestName: string;
141
- abTestVariant: string;
142
- campaignCode: string;
143
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
144
- ophanPageId: string;
145
- platformId: string;
146
- referrerUrl: string;
147
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
148
- labels?: string[] | null | undefined;
149
- }, {
150
- abTestName: string;
151
- abTestVariant: string;
152
- campaignCode: string;
153
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
154
- ophanPageId: string;
155
- platformId: string;
156
- referrerUrl: string;
157
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
158
- labels?: string[] | null | undefined;
89
+ }, z.core.$strip>;
90
+ bannerChannel: z.ZodEnum<{
91
+ contributions: "contributions";
92
+ subscriptions: "subscriptions";
93
+ signIn: "signIn";
94
+ abandonedBasket: "abandonedBasket";
159
95
  }>;
160
- bannerChannel: z.ZodEnum<["contributions", "subscriptions", "signIn", "abandonedBasket"]>;
161
96
  content: z.ZodOptional<z.ZodNullable<z.ZodObject<{
162
97
  heading: z.ZodOptional<z.ZodString>;
163
98
  messageText: z.ZodOptional<z.ZodString>;
164
- paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
99
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
100
  mobileMessageText: z.ZodOptional<z.ZodString>;
166
101
  highlightedText: z.ZodOptional<z.ZodString>;
167
102
  cta: z.ZodOptional<z.ZodObject<{
168
103
  text: z.ZodString;
169
104
  baseUrl: z.ZodString;
170
- }, "strip", z.ZodTypeAny, {
171
- text: string;
172
- baseUrl: string;
173
- }, {
174
- text: string;
175
- baseUrl: string;
176
- }>>;
177
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
105
+ }, z.core.$strip>>;
106
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
178
107
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
179
108
  cta: z.ZodObject<{
180
109
  text: z.ZodString;
181
110
  baseUrl: z.ZodString;
182
- }, "strip", z.ZodTypeAny, {
183
- text: string;
184
- baseUrl: string;
185
- }, {
186
- text: string;
187
- baseUrl: string;
188
- }>;
189
- }, "strip", z.ZodTypeAny, {
190
- type: import("./shared").SecondaryCtaType.Custom;
191
- cta: {
192
- text: string;
193
- baseUrl: string;
194
- };
195
- }, {
196
- type: import("./shared").SecondaryCtaType.Custom;
197
- cta: {
198
- text: string;
199
- baseUrl: string;
200
- };
201
- }>, z.ZodObject<{
111
+ }, z.core.$strip>;
112
+ }, z.core.$strip>, z.ZodObject<{
202
113
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
203
- }, "strip", z.ZodTypeAny, {
204
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
205
- }, {
206
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
207
- }>]>>;
208
- }, "strip", z.ZodTypeAny, {
209
- heading?: string | undefined;
210
- messageText?: string | undefined;
211
- paragraphs?: string[] | undefined;
212
- mobileMessageText?: string | undefined;
213
- highlightedText?: string | undefined;
214
- cta?: {
215
- text: string;
216
- baseUrl: string;
217
- } | undefined;
218
- secondaryCta?: {
219
- type: import("./shared").SecondaryCtaType.Custom;
220
- cta: {
221
- text: string;
222
- baseUrl: string;
223
- };
224
- } | {
225
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
226
- } | undefined;
227
- }, {
228
- heading?: string | undefined;
229
- messageText?: string | undefined;
230
- paragraphs?: string[] | undefined;
231
- mobileMessageText?: string | undefined;
232
- highlightedText?: string | undefined;
233
- cta?: {
234
- text: string;
235
- baseUrl: string;
236
- } | undefined;
237
- secondaryCta?: {
238
- type: import("./shared").SecondaryCtaType.Custom;
239
- cta: {
240
- text: string;
241
- baseUrl: string;
242
- };
243
- } | {
244
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
245
- } | undefined;
246
- }>>>;
114
+ }, z.core.$strip>], "type">>;
115
+ }, z.core.$strip>>>;
247
116
  mobileContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
248
117
  heading: z.ZodOptional<z.ZodString>;
249
118
  messageText: z.ZodOptional<z.ZodString>;
250
- paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
251
120
  mobileMessageText: z.ZodOptional<z.ZodString>;
252
121
  highlightedText: z.ZodOptional<z.ZodString>;
253
122
  cta: z.ZodOptional<z.ZodObject<{
254
123
  text: z.ZodString;
255
124
  baseUrl: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- text: string;
258
- baseUrl: string;
259
- }, {
260
- text: string;
261
- baseUrl: string;
262
- }>>;
263
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
125
+ }, z.core.$strip>>;
126
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
264
127
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
265
128
  cta: z.ZodObject<{
266
129
  text: z.ZodString;
267
130
  baseUrl: z.ZodString;
268
- }, "strip", z.ZodTypeAny, {
269
- text: string;
270
- baseUrl: string;
271
- }, {
272
- text: string;
273
- baseUrl: string;
274
- }>;
275
- }, "strip", z.ZodTypeAny, {
276
- type: import("./shared").SecondaryCtaType.Custom;
277
- cta: {
278
- text: string;
279
- baseUrl: string;
280
- };
281
- }, {
282
- type: import("./shared").SecondaryCtaType.Custom;
283
- cta: {
284
- text: string;
285
- baseUrl: string;
286
- };
287
- }>, z.ZodObject<{
131
+ }, z.core.$strip>;
132
+ }, z.core.$strip>, z.ZodObject<{
288
133
  type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
289
- }, "strip", z.ZodTypeAny, {
290
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
291
- }, {
292
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
293
- }>]>>;
294
- }, "strip", z.ZodTypeAny, {
295
- heading?: string | undefined;
296
- messageText?: string | undefined;
297
- paragraphs?: string[] | undefined;
298
- mobileMessageText?: string | undefined;
299
- highlightedText?: string | undefined;
300
- cta?: {
301
- text: string;
302
- baseUrl: string;
303
- } | undefined;
304
- secondaryCta?: {
305
- type: import("./shared").SecondaryCtaType.Custom;
306
- cta: {
307
- text: string;
308
- baseUrl: string;
309
- };
310
- } | {
311
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
312
- } | undefined;
313
- }, {
314
- heading?: string | undefined;
315
- messageText?: string | undefined;
316
- paragraphs?: string[] | undefined;
317
- mobileMessageText?: string | undefined;
318
- highlightedText?: string | undefined;
319
- cta?: {
320
- text: string;
321
- baseUrl: string;
322
- } | undefined;
323
- secondaryCta?: {
324
- type: import("./shared").SecondaryCtaType.Custom;
325
- cta: {
326
- text: string;
327
- baseUrl: string;
328
- };
329
- } | {
330
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
331
- } | undefined;
332
- }>>>;
134
+ }, z.core.$strip>], "type">>;
135
+ }, z.core.$strip>>>;
333
136
  countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
137
  isSupporter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
335
138
  tickerSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -337,1508 +140,174 @@ export declare const bannerSchema: z.ZodObject<{
337
140
  copy: z.ZodObject<{
338
141
  countLabel: z.ZodString;
339
142
  goalCopy: z.ZodOptional<z.ZodString>;
340
- }, "strip", z.ZodTypeAny, {
341
- countLabel: string;
342
- goalCopy?: string | undefined;
343
- }, {
344
- countLabel: string;
345
- goalCopy?: string | undefined;
143
+ }, z.core.$strip>;
144
+ name: z.ZodEnum<{
145
+ global: "global";
146
+ US: "US";
147
+ AU: "AU";
346
148
  }>;
347
- name: z.ZodEnum<["US", "AU", "global"]>;
348
149
  tickerData: z.ZodOptional<z.ZodObject<{
349
150
  total: z.ZodNumber;
350
151
  goal: z.ZodNumber;
351
- }, "strip", z.ZodTypeAny, {
352
- total: number;
353
- goal: number;
354
- }, {
355
- total: number;
356
- goal: number;
357
- }>>;
358
- }, "strip", z.ZodTypeAny, {
359
- name: "global" | "US" | "AU";
360
- copy: {
361
- countLabel: string;
362
- goalCopy?: string | undefined;
363
- };
364
- currencySymbol: string;
365
- tickerData?: {
366
- total: number;
367
- goal: number;
368
- } | undefined;
369
- }, {
370
- name: "global" | "US" | "AU";
371
- copy: {
372
- countLabel: string;
373
- goalCopy?: string | undefined;
374
- };
375
- currencySymbol: string;
376
- tickerData?: {
377
- total: number;
378
- goal: number;
379
- } | undefined;
380
- }>>>;
152
+ }, z.core.$strip>>;
153
+ }, z.core.$strip>>>;
381
154
  submitComponentEvent: z.ZodAny;
382
155
  articleCounts: z.ZodObject<{
383
156
  for52Weeks: z.ZodNumber;
384
157
  forTargetedWeeks: z.ZodNumber;
385
- }, "strip", z.ZodTypeAny, {
386
- for52Weeks: number;
387
- forTargetedWeeks: number;
388
- }, {
389
- for52Weeks: number;
390
- forTargetedWeeks: number;
391
- }>;
158
+ }, z.core.$strip>;
392
159
  hasOptedOutOfArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
393
160
  fetchEmail: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
394
161
  separateArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
395
162
  design: z.ZodOptional<z.ZodNullable<z.ZodObject<{
396
- visual: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
163
+ visual: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
397
164
  mobileUrl: z.ZodString;
398
165
  tabletUrl: z.ZodString;
399
166
  desktopUrl: z.ZodString;
400
167
  altText: z.ZodString;
401
168
  kind: z.ZodLiteral<"Image">;
402
- }, "strip", z.ZodTypeAny, {
403
- kind: "Image";
404
- mobileUrl: string;
405
- tabletUrl: string;
406
- desktopUrl: string;
407
- altText: string;
408
- }, {
409
- kind: "Image";
410
- mobileUrl: string;
411
- tabletUrl: string;
412
- desktopUrl: string;
413
- altText: string;
414
- }>, z.ZodObject<{
169
+ }, z.core.$strip>, z.ZodObject<{
415
170
  buttonColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
416
- r: z.ZodEffects<z.ZodString, string, string>;
417
- g: z.ZodEffects<z.ZodString, string, string>;
418
- b: z.ZodEffects<z.ZodString, string, string>;
171
+ r: z.ZodString;
172
+ g: z.ZodString;
173
+ b: z.ZodString;
419
174
  kind: z.ZodLiteral<"hex">;
420
- }, "strip", z.ZodTypeAny, {
421
- r: string;
422
- b: string;
423
- g: string;
424
- kind: "hex";
425
- }, {
426
- r: string;
427
- b: string;
428
- g: string;
429
- kind: "hex";
430
- }>>>;
175
+ }, z.core.$strip>>>;
431
176
  buttonTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
432
- r: z.ZodEffects<z.ZodString, string, string>;
433
- g: z.ZodEffects<z.ZodString, string, string>;
434
- b: z.ZodEffects<z.ZodString, string, string>;
177
+ r: z.ZodString;
178
+ g: z.ZodString;
179
+ b: z.ZodString;
435
180
  kind: z.ZodLiteral<"hex">;
436
- }, "strip", z.ZodTypeAny, {
437
- r: string;
438
- b: string;
439
- g: string;
440
- kind: "hex";
441
- }, {
442
- r: string;
443
- b: string;
444
- g: string;
445
- kind: "hex";
446
- }>>>;
181
+ }, z.core.$strip>>>;
447
182
  buttonBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
448
- r: z.ZodEffects<z.ZodString, string, string>;
449
- g: z.ZodEffects<z.ZodString, string, string>;
450
- b: z.ZodEffects<z.ZodString, string, string>;
183
+ r: z.ZodString;
184
+ g: z.ZodString;
185
+ b: z.ZodString;
451
186
  kind: z.ZodLiteral<"hex">;
452
- }, "strip", z.ZodTypeAny, {
453
- r: string;
454
- b: string;
455
- g: string;
456
- kind: "hex";
457
- }, {
458
- r: string;
459
- b: string;
460
- g: string;
461
- kind: "hex";
462
- }>>>;
187
+ }, z.core.$strip>>>;
463
188
  buttonSelectColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
464
- r: z.ZodEffects<z.ZodString, string, string>;
465
- g: z.ZodEffects<z.ZodString, string, string>;
466
- b: z.ZodEffects<z.ZodString, string, string>;
189
+ r: z.ZodString;
190
+ g: z.ZodString;
191
+ b: z.ZodString;
467
192
  kind: z.ZodLiteral<"hex">;
468
- }, "strip", z.ZodTypeAny, {
469
- r: string;
470
- b: string;
471
- g: string;
472
- kind: "hex";
473
- }, {
474
- r: string;
475
- b: string;
476
- g: string;
477
- kind: "hex";
478
- }>>>;
193
+ }, z.core.$strip>>>;
479
194
  buttonSelectTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
480
- r: z.ZodEffects<z.ZodString, string, string>;
481
- g: z.ZodEffects<z.ZodString, string, string>;
482
- b: z.ZodEffects<z.ZodString, string, string>;
195
+ r: z.ZodString;
196
+ g: z.ZodString;
197
+ b: z.ZodString;
483
198
  kind: z.ZodLiteral<"hex">;
484
- }, "strip", z.ZodTypeAny, {
485
- r: string;
486
- b: string;
487
- g: string;
488
- kind: "hex";
489
- }, {
490
- r: string;
491
- b: string;
492
- g: string;
493
- kind: "hex";
494
- }>>>;
199
+ }, z.core.$strip>>>;
495
200
  buttonSelectBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
496
- r: z.ZodEffects<z.ZodString, string, string>;
497
- g: z.ZodEffects<z.ZodString, string, string>;
498
- b: z.ZodEffects<z.ZodString, string, string>;
201
+ r: z.ZodString;
202
+ g: z.ZodString;
203
+ b: z.ZodString;
499
204
  kind: z.ZodLiteral<"hex">;
500
- }, "strip", z.ZodTypeAny, {
501
- r: string;
502
- b: string;
503
- g: string;
504
- kind: "hex";
505
- }, {
506
- r: string;
507
- b: string;
508
- g: string;
509
- kind: "hex";
510
- }>>>;
205
+ }, z.core.$strip>>>;
511
206
  buttonSelectMarkerColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
512
- r: z.ZodEffects<z.ZodString, string, string>;
513
- g: z.ZodEffects<z.ZodString, string, string>;
514
- b: z.ZodEffects<z.ZodString, string, string>;
207
+ r: z.ZodString;
208
+ g: z.ZodString;
209
+ b: z.ZodString;
515
210
  kind: z.ZodLiteral<"hex">;
516
- }, "strip", z.ZodTypeAny, {
517
- r: string;
518
- b: string;
519
- g: string;
520
- kind: "hex";
521
- }, {
522
- r: string;
523
- b: string;
524
- g: string;
525
- kind: "hex";
526
- }>>>;
211
+ }, z.core.$strip>>>;
527
212
  pillTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
528
- r: z.ZodEffects<z.ZodString, string, string>;
529
- g: z.ZodEffects<z.ZodString, string, string>;
530
- b: z.ZodEffects<z.ZodString, string, string>;
213
+ r: z.ZodString;
214
+ g: z.ZodString;
215
+ b: z.ZodString;
531
216
  kind: z.ZodLiteral<"hex">;
532
- }, "strip", z.ZodTypeAny, {
533
- r: string;
534
- b: string;
535
- g: string;
536
- kind: "hex";
537
- }, {
538
- r: string;
539
- b: string;
540
- g: string;
541
- kind: "hex";
542
- }>>>;
217
+ }, z.core.$strip>>>;
543
218
  pillBackgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
544
- r: z.ZodEffects<z.ZodString, string, string>;
545
- g: z.ZodEffects<z.ZodString, string, string>;
546
- b: z.ZodEffects<z.ZodString, string, string>;
219
+ r: z.ZodString;
220
+ g: z.ZodString;
221
+ b: z.ZodString;
547
222
  kind: z.ZodLiteral<"hex">;
548
- }, "strip", z.ZodTypeAny, {
549
- r: string;
550
- b: string;
551
- g: string;
552
- kind: "hex";
553
- }, {
554
- r: string;
555
- b: string;
556
- g: string;
557
- kind: "hex";
558
- }>>>;
223
+ }, z.core.$strip>>>;
559
224
  kind: z.ZodLiteral<"ChoiceCards">;
560
- }, "strip", z.ZodTypeAny, {
561
- kind: "ChoiceCards";
562
- buttonColour?: {
563
- r: string;
564
- b: string;
565
- g: string;
566
- kind: "hex";
567
- } | null | undefined;
568
- buttonTextColour?: {
569
- r: string;
570
- b: string;
571
- g: string;
572
- kind: "hex";
573
- } | null | undefined;
574
- buttonBorderColour?: {
575
- r: string;
576
- b: string;
577
- g: string;
578
- kind: "hex";
579
- } | null | undefined;
580
- buttonSelectColour?: {
581
- r: string;
582
- b: string;
583
- g: string;
584
- kind: "hex";
585
- } | null | undefined;
586
- buttonSelectTextColour?: {
587
- r: string;
588
- b: string;
589
- g: string;
590
- kind: "hex";
591
- } | null | undefined;
592
- buttonSelectBorderColour?: {
593
- r: string;
594
- b: string;
595
- g: string;
596
- kind: "hex";
597
- } | null | undefined;
598
- buttonSelectMarkerColour?: {
599
- r: string;
600
- b: string;
601
- g: string;
602
- kind: "hex";
603
- } | null | undefined;
604
- pillTextColour?: {
605
- r: string;
606
- b: string;
607
- g: string;
608
- kind: "hex";
609
- } | null | undefined;
610
- pillBackgroundColour?: {
611
- r: string;
612
- b: string;
613
- g: string;
614
- kind: "hex";
615
- } | null | undefined;
616
- }, {
617
- kind: "ChoiceCards";
618
- buttonColour?: {
619
- r: string;
620
- b: string;
621
- g: string;
622
- kind: "hex";
623
- } | null | undefined;
624
- buttonTextColour?: {
625
- r: string;
626
- b: string;
627
- g: string;
628
- kind: "hex";
629
- } | null | undefined;
630
- buttonBorderColour?: {
631
- r: string;
632
- b: string;
633
- g: string;
634
- kind: "hex";
635
- } | null | undefined;
636
- buttonSelectColour?: {
637
- r: string;
638
- b: string;
639
- g: string;
640
- kind: "hex";
641
- } | null | undefined;
642
- buttonSelectTextColour?: {
643
- r: string;
644
- b: string;
645
- g: string;
646
- kind: "hex";
647
- } | null | undefined;
648
- buttonSelectBorderColour?: {
649
- r: string;
650
- b: string;
651
- g: string;
652
- kind: "hex";
653
- } | null | undefined;
654
- buttonSelectMarkerColour?: {
655
- r: string;
656
- b: string;
657
- g: string;
658
- kind: "hex";
659
- } | null | undefined;
660
- pillTextColour?: {
661
- r: string;
662
- b: string;
663
- g: string;
664
- kind: "hex";
665
- } | null | undefined;
666
- pillBackgroundColour?: {
667
- r: string;
668
- b: string;
669
- g: string;
670
- kind: "hex";
671
- } | null | undefined;
672
- }>]>>>;
225
+ }, z.core.$strip>], "kind">>>;
673
226
  colours: z.ZodObject<{
674
227
  basic: z.ZodObject<{
675
228
  background: z.ZodObject<{
676
- r: z.ZodEffects<z.ZodString, string, string>;
677
- g: z.ZodEffects<z.ZodString, string, string>;
678
- b: z.ZodEffects<z.ZodString, string, string>;
229
+ r: z.ZodString;
230
+ g: z.ZodString;
231
+ b: z.ZodString;
679
232
  kind: z.ZodLiteral<"hex">;
680
- }, "strip", z.ZodTypeAny, {
681
- r: string;
682
- b: string;
683
- g: string;
684
- kind: "hex";
685
- }, {
686
- r: string;
687
- b: string;
688
- g: string;
689
- kind: "hex";
690
- }>;
233
+ }, z.core.$strip>;
691
234
  bodyText: z.ZodObject<{
692
- r: z.ZodEffects<z.ZodString, string, string>;
693
- g: z.ZodEffects<z.ZodString, string, string>;
694
- b: z.ZodEffects<z.ZodString, string, string>;
235
+ r: z.ZodString;
236
+ g: z.ZodString;
237
+ b: z.ZodString;
695
238
  kind: z.ZodLiteral<"hex">;
696
- }, "strip", z.ZodTypeAny, {
697
- r: string;
698
- b: string;
699
- g: string;
700
- kind: "hex";
701
- }, {
702
- r: string;
703
- b: string;
704
- g: string;
705
- kind: "hex";
706
- }>;
707
- }, "strip", z.ZodTypeAny, {
708
- background: {
709
- r: string;
710
- b: string;
711
- g: string;
712
- kind: "hex";
713
- };
714
- bodyText: {
715
- r: string;
716
- b: string;
717
- g: string;
718
- kind: "hex";
719
- };
720
- }, {
721
- background: {
722
- r: string;
723
- b: string;
724
- g: string;
725
- kind: "hex";
726
- };
727
- bodyText: {
728
- r: string;
729
- b: string;
730
- g: string;
731
- kind: "hex";
732
- };
733
- }>;
734
- }, "strip", z.ZodTypeAny, {
735
- basic: {
736
- background: {
737
- r: string;
738
- b: string;
739
- g: string;
740
- kind: "hex";
741
- };
742
- bodyText: {
743
- r: string;
744
- b: string;
745
- g: string;
746
- kind: "hex";
747
- };
748
- };
749
- }, {
750
- basic: {
751
- background: {
752
- r: string;
753
- b: string;
754
- g: string;
755
- kind: "hex";
756
- };
757
- bodyText: {
758
- r: string;
759
- b: string;
760
- g: string;
761
- kind: "hex";
762
- };
763
- };
764
- }>;
765
- }, "strip", z.ZodTypeAny, {
766
- colours: {
767
- basic: {
768
- background: {
769
- r: string;
770
- b: string;
771
- g: string;
772
- kind: "hex";
773
- };
774
- bodyText: {
775
- r: string;
776
- b: string;
777
- g: string;
778
- kind: "hex";
779
- };
780
- };
781
- };
782
- visual?: {
783
- kind: "Image";
784
- mobileUrl: string;
785
- tabletUrl: string;
786
- desktopUrl: string;
787
- altText: string;
788
- } | {
789
- kind: "ChoiceCards";
790
- buttonColour?: {
791
- r: string;
792
- b: string;
793
- g: string;
794
- kind: "hex";
795
- } | null | undefined;
796
- buttonTextColour?: {
797
- r: string;
798
- b: string;
799
- g: string;
800
- kind: "hex";
801
- } | null | undefined;
802
- buttonBorderColour?: {
803
- r: string;
804
- b: string;
805
- g: string;
806
- kind: "hex";
807
- } | null | undefined;
808
- buttonSelectColour?: {
809
- r: string;
810
- b: string;
811
- g: string;
812
- kind: "hex";
813
- } | null | undefined;
814
- buttonSelectTextColour?: {
815
- r: string;
816
- b: string;
817
- g: string;
818
- kind: "hex";
819
- } | null | undefined;
820
- buttonSelectBorderColour?: {
821
- r: string;
822
- b: string;
823
- g: string;
824
- kind: "hex";
825
- } | null | undefined;
826
- buttonSelectMarkerColour?: {
827
- r: string;
828
- b: string;
829
- g: string;
830
- kind: "hex";
831
- } | null | undefined;
832
- pillTextColour?: {
833
- r: string;
834
- b: string;
835
- g: string;
836
- kind: "hex";
837
- } | null | undefined;
838
- pillBackgroundColour?: {
839
- r: string;
840
- b: string;
841
- g: string;
842
- kind: "hex";
843
- } | null | undefined;
844
- } | null | undefined;
845
- }, {
846
- colours: {
847
- basic: {
848
- background: {
849
- r: string;
850
- b: string;
851
- g: string;
852
- kind: "hex";
853
- };
854
- bodyText: {
855
- r: string;
856
- b: string;
857
- g: string;
858
- kind: "hex";
859
- };
860
- };
861
- };
862
- visual?: {
863
- kind: "Image";
864
- mobileUrl: string;
865
- tabletUrl: string;
866
- desktopUrl: string;
867
- altText: string;
868
- } | {
869
- kind: "ChoiceCards";
870
- buttonColour?: {
871
- r: string;
872
- b: string;
873
- g: string;
874
- kind: "hex";
875
- } | null | undefined;
876
- buttonTextColour?: {
877
- r: string;
878
- b: string;
879
- g: string;
880
- kind: "hex";
881
- } | null | undefined;
882
- buttonBorderColour?: {
883
- r: string;
884
- b: string;
885
- g: string;
886
- kind: "hex";
887
- } | null | undefined;
888
- buttonSelectColour?: {
889
- r: string;
890
- b: string;
891
- g: string;
892
- kind: "hex";
893
- } | null | undefined;
894
- buttonSelectTextColour?: {
895
- r: string;
896
- b: string;
897
- g: string;
898
- kind: "hex";
899
- } | null | undefined;
900
- buttonSelectBorderColour?: {
901
- r: string;
902
- b: string;
903
- g: string;
904
- kind: "hex";
905
- } | null | undefined;
906
- buttonSelectMarkerColour?: {
907
- r: string;
908
- b: string;
909
- g: string;
910
- kind: "hex";
911
- } | null | undefined;
912
- pillTextColour?: {
913
- r: string;
914
- b: string;
915
- g: string;
916
- kind: "hex";
917
- } | null | undefined;
918
- pillBackgroundColour?: {
919
- r: string;
920
- b: string;
921
- g: string;
922
- kind: "hex";
923
- } | null | undefined;
924
- } | null | undefined;
925
- }>>>;
239
+ }, z.core.$strip>;
240
+ }, z.core.$strip>;
241
+ }, z.core.$strip>;
242
+ }, z.core.$strip>>>;
926
243
  choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
927
244
  choiceCards: z.ZodArray<z.ZodObject<{
928
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
245
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
929
246
  supportTier: z.ZodLiteral<"Contribution">;
930
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
931
- }, "strip", z.ZodTypeAny, {
932
- supportTier: "Contribution";
933
- ratePlan: "Monthly" | "Annual";
934
- }, {
935
- supportTier: "Contribution";
936
- ratePlan: "Monthly" | "Annual";
937
- }>, z.ZodObject<{
247
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
248
+ }, z.core.$strip>, z.ZodObject<{
938
249
  supportTier: z.ZodLiteral<"SupporterPlus">;
939
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
940
- }, "strip", z.ZodTypeAny, {
941
- supportTier: "SupporterPlus";
942
- ratePlan: "Monthly" | "Annual";
943
- }, {
944
- supportTier: "SupporterPlus";
945
- ratePlan: "Monthly" | "Annual";
946
- }>, z.ZodObject<{
250
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
251
+ }, z.core.$strip>, z.ZodObject<{
947
252
  supportTier: z.ZodLiteral<"OneOff">;
948
- }, "strip", z.ZodTypeAny, {
949
- supportTier: "OneOff";
950
- }, {
951
- supportTier: "OneOff";
952
- }>]>;
253
+ }, z.core.$strip>], "supportTier">;
953
254
  label: z.ZodString;
954
255
  isDefault: z.ZodBoolean;
955
256
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
257
  benefits: z.ZodArray<z.ZodObject<{
957
258
  copy: z.ZodString;
958
- }, "strip", z.ZodTypeAny, {
959
- copy: string;
960
- }, {
961
- copy: string;
962
- }>, "many">;
259
+ }, z.core.$strip>>;
963
260
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
964
261
  copy: z.ZodString;
965
262
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
966
- r: z.ZodEffects<z.ZodString, string, string>;
967
- g: z.ZodEffects<z.ZodString, string, string>;
968
- b: z.ZodEffects<z.ZodString, string, string>;
263
+ r: z.ZodString;
264
+ g: z.ZodString;
265
+ b: z.ZodString;
969
266
  kind: z.ZodLiteral<"hex">;
970
- }, "strip", z.ZodTypeAny, {
971
- r: string;
972
- b: string;
973
- g: string;
974
- kind: "hex";
975
- }, {
976
- r: string;
977
- b: string;
978
- g: string;
979
- kind: "hex";
980
- }>>>;
267
+ }, z.core.$strip>>>;
981
268
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
982
- r: z.ZodEffects<z.ZodString, string, string>;
983
- g: z.ZodEffects<z.ZodString, string, string>;
984
- b: z.ZodEffects<z.ZodString, string, string>;
269
+ r: z.ZodString;
270
+ g: z.ZodString;
271
+ b: z.ZodString;
985
272
  kind: z.ZodLiteral<"hex">;
986
- }, "strip", z.ZodTypeAny, {
987
- r: string;
988
- b: string;
989
- g: string;
990
- kind: "hex";
991
- }, {
992
- r: string;
993
- b: string;
994
- g: string;
995
- kind: "hex";
996
- }>>>;
997
- }, "strip", z.ZodTypeAny, {
998
- copy: string;
999
- textColour?: {
1000
- r: string;
1001
- b: string;
1002
- g: string;
1003
- kind: "hex";
1004
- } | null | undefined;
1005
- backgroundColour?: {
1006
- r: string;
1007
- b: string;
1008
- g: string;
1009
- kind: "hex";
1010
- } | null | undefined;
1011
- }, {
1012
- copy: string;
1013
- textColour?: {
1014
- r: string;
1015
- b: string;
1016
- g: string;
1017
- kind: "hex";
1018
- } | null | undefined;
1019
- backgroundColour?: {
1020
- r: string;
1021
- b: string;
1022
- g: string;
1023
- kind: "hex";
1024
- } | null | undefined;
1025
- }>>>;
1026
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1027
- }, "strip", z.ZodTypeAny, {
1028
- product: {
1029
- supportTier: "Contribution";
1030
- ratePlan: "Monthly" | "Annual";
1031
- } | {
1032
- supportTier: "SupporterPlus";
1033
- ratePlan: "Monthly" | "Annual";
1034
- } | {
1035
- supportTier: "OneOff";
1036
- };
1037
- label: string;
1038
- isDefault: boolean;
1039
- benefits: {
1040
- copy: string;
1041
- }[];
1042
- benefitsLabel?: string | null | undefined;
1043
- pill?: {
1044
- copy: string;
1045
- textColour?: {
1046
- r: string;
1047
- b: string;
1048
- g: string;
1049
- kind: "hex";
1050
- } | null | undefined;
1051
- backgroundColour?: {
1052
- r: string;
1053
- b: string;
1054
- g: string;
1055
- kind: "hex";
1056
- } | null | undefined;
1057
- } | null | undefined;
1058
- destination?: "LandingPage" | "Checkout" | null | undefined;
1059
- }, {
1060
- product: {
1061
- supportTier: "Contribution";
1062
- ratePlan: "Monthly" | "Annual";
1063
- } | {
1064
- supportTier: "SupporterPlus";
1065
- ratePlan: "Monthly" | "Annual";
1066
- } | {
1067
- supportTier: "OneOff";
1068
- };
1069
- label: string;
1070
- isDefault: boolean;
1071
- benefits: {
1072
- copy: string;
1073
- }[];
1074
- benefitsLabel?: string | null | undefined;
1075
- pill?: {
1076
- copy: string;
1077
- textColour?: {
1078
- r: string;
1079
- b: string;
1080
- g: string;
1081
- kind: "hex";
1082
- } | null | undefined;
1083
- backgroundColour?: {
1084
- r: string;
1085
- b: string;
1086
- g: string;
1087
- kind: "hex";
1088
- } | null | undefined;
1089
- } | null | undefined;
1090
- destination?: "LandingPage" | "Checkout" | null | undefined;
1091
- }>, "many">;
273
+ }, z.core.$strip>>>;
274
+ }, z.core.$strip>>>;
275
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
276
+ }, z.core.$strip>>;
1092
277
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1093
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
278
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
1094
279
  supportTier: z.ZodLiteral<"Contribution">;
1095
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1096
- }, "strip", z.ZodTypeAny, {
1097
- supportTier: "Contribution";
1098
- ratePlan: "Monthly" | "Annual";
1099
- }, {
1100
- supportTier: "Contribution";
1101
- ratePlan: "Monthly" | "Annual";
1102
- }>, z.ZodObject<{
280
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
281
+ }, z.core.$strip>, z.ZodObject<{
1103
282
  supportTier: z.ZodLiteral<"SupporterPlus">;
1104
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1105
- }, "strip", z.ZodTypeAny, {
1106
- supportTier: "SupporterPlus";
1107
- ratePlan: "Monthly" | "Annual";
1108
- }, {
1109
- supportTier: "SupporterPlus";
1110
- ratePlan: "Monthly" | "Annual";
1111
- }>, z.ZodObject<{
283
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
284
+ }, z.core.$strip>, z.ZodObject<{
1112
285
  supportTier: z.ZodLiteral<"OneOff">;
1113
- }, "strip", z.ZodTypeAny, {
1114
- supportTier: "OneOff";
1115
- }, {
1116
- supportTier: "OneOff";
1117
- }>]>;
286
+ }, z.core.$strip>], "supportTier">;
1118
287
  label: z.ZodString;
1119
288
  isDefault: z.ZodBoolean;
1120
289
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
290
  benefits: z.ZodArray<z.ZodObject<{
1122
291
  copy: z.ZodString;
1123
- }, "strip", z.ZodTypeAny, {
1124
- copy: string;
1125
- }, {
1126
- copy: string;
1127
- }>, "many">;
292
+ }, z.core.$strip>>;
1128
293
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1129
294
  copy: z.ZodString;
1130
295
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1131
- r: z.ZodEffects<z.ZodString, string, string>;
1132
- g: z.ZodEffects<z.ZodString, string, string>;
1133
- b: z.ZodEffects<z.ZodString, string, string>;
296
+ r: z.ZodString;
297
+ g: z.ZodString;
298
+ b: z.ZodString;
1134
299
  kind: z.ZodLiteral<"hex">;
1135
- }, "strip", z.ZodTypeAny, {
1136
- r: string;
1137
- b: string;
1138
- g: string;
1139
- kind: "hex";
1140
- }, {
1141
- r: string;
1142
- b: string;
1143
- g: string;
1144
- kind: "hex";
1145
- }>>>;
300
+ }, z.core.$strip>>>;
1146
301
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1147
- r: z.ZodEffects<z.ZodString, string, string>;
1148
- g: z.ZodEffects<z.ZodString, string, string>;
1149
- b: z.ZodEffects<z.ZodString, string, string>;
302
+ r: z.ZodString;
303
+ g: z.ZodString;
304
+ b: z.ZodString;
1150
305
  kind: z.ZodLiteral<"hex">;
1151
- }, "strip", z.ZodTypeAny, {
1152
- r: string;
1153
- b: string;
1154
- g: string;
1155
- kind: "hex";
1156
- }, {
1157
- r: string;
1158
- b: string;
1159
- g: string;
1160
- kind: "hex";
1161
- }>>>;
1162
- }, "strip", z.ZodTypeAny, {
1163
- copy: string;
1164
- textColour?: {
1165
- r: string;
1166
- b: string;
1167
- g: string;
1168
- kind: "hex";
1169
- } | null | undefined;
1170
- backgroundColour?: {
1171
- r: string;
1172
- b: string;
1173
- g: string;
1174
- kind: "hex";
1175
- } | null | undefined;
1176
- }, {
1177
- copy: string;
1178
- textColour?: {
1179
- r: string;
1180
- b: string;
1181
- g: string;
1182
- kind: "hex";
1183
- } | null | undefined;
1184
- backgroundColour?: {
1185
- r: string;
1186
- b: string;
1187
- g: string;
1188
- kind: "hex";
1189
- } | null | undefined;
1190
- }>>>;
1191
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1192
- }, "strip", z.ZodTypeAny, {
1193
- product: {
1194
- supportTier: "Contribution";
1195
- ratePlan: "Monthly" | "Annual";
1196
- } | {
1197
- supportTier: "SupporterPlus";
1198
- ratePlan: "Monthly" | "Annual";
1199
- } | {
1200
- supportTier: "OneOff";
1201
- };
1202
- label: string;
1203
- isDefault: boolean;
1204
- benefits: {
1205
- copy: string;
1206
- }[];
1207
- benefitsLabel?: string | null | undefined;
1208
- pill?: {
1209
- copy: string;
1210
- textColour?: {
1211
- r: string;
1212
- b: string;
1213
- g: string;
1214
- kind: "hex";
1215
- } | null | undefined;
1216
- backgroundColour?: {
1217
- r: string;
1218
- b: string;
1219
- g: string;
1220
- kind: "hex";
1221
- } | null | undefined;
1222
- } | null | undefined;
1223
- destination?: "LandingPage" | "Checkout" | null | undefined;
1224
- }, {
1225
- product: {
1226
- supportTier: "Contribution";
1227
- ratePlan: "Monthly" | "Annual";
1228
- } | {
1229
- supportTier: "SupporterPlus";
1230
- ratePlan: "Monthly" | "Annual";
1231
- } | {
1232
- supportTier: "OneOff";
1233
- };
1234
- label: string;
1235
- isDefault: boolean;
1236
- benefits: {
1237
- copy: string;
1238
- }[];
1239
- benefitsLabel?: string | null | undefined;
1240
- pill?: {
1241
- copy: string;
1242
- textColour?: {
1243
- r: string;
1244
- b: string;
1245
- g: string;
1246
- kind: "hex";
1247
- } | null | undefined;
1248
- backgroundColour?: {
1249
- r: string;
1250
- b: string;
1251
- g: string;
1252
- kind: "hex";
1253
- } | null | undefined;
1254
- } | null | undefined;
1255
- destination?: "LandingPage" | "Checkout" | null | undefined;
1256
- }>, "many">>>;
1257
- }, "strip", z.ZodTypeAny, {
1258
- choiceCards: {
1259
- product: {
1260
- supportTier: "Contribution";
1261
- ratePlan: "Monthly" | "Annual";
1262
- } | {
1263
- supportTier: "SupporterPlus";
1264
- ratePlan: "Monthly" | "Annual";
1265
- } | {
1266
- supportTier: "OneOff";
1267
- };
1268
- label: string;
1269
- isDefault: boolean;
1270
- benefits: {
1271
- copy: string;
1272
- }[];
1273
- benefitsLabel?: string | null | undefined;
1274
- pill?: {
1275
- copy: string;
1276
- textColour?: {
1277
- r: string;
1278
- b: string;
1279
- g: string;
1280
- kind: "hex";
1281
- } | null | undefined;
1282
- backgroundColour?: {
1283
- r: string;
1284
- b: string;
1285
- g: string;
1286
- kind: "hex";
1287
- } | null | undefined;
1288
- } | null | undefined;
1289
- destination?: "LandingPage" | "Checkout" | null | undefined;
1290
- }[];
1291
- mobileChoiceCards?: {
1292
- product: {
1293
- supportTier: "Contribution";
1294
- ratePlan: "Monthly" | "Annual";
1295
- } | {
1296
- supportTier: "SupporterPlus";
1297
- ratePlan: "Monthly" | "Annual";
1298
- } | {
1299
- supportTier: "OneOff";
1300
- };
1301
- label: string;
1302
- isDefault: boolean;
1303
- benefits: {
1304
- copy: string;
1305
- }[];
1306
- benefitsLabel?: string | null | undefined;
1307
- pill?: {
1308
- copy: string;
1309
- textColour?: {
1310
- r: string;
1311
- b: string;
1312
- g: string;
1313
- kind: "hex";
1314
- } | null | undefined;
1315
- backgroundColour?: {
1316
- r: string;
1317
- b: string;
1318
- g: string;
1319
- kind: "hex";
1320
- } | null | undefined;
1321
- } | null | undefined;
1322
- destination?: "LandingPage" | "Checkout" | null | undefined;
1323
- }[] | null | undefined;
1324
- }, {
1325
- choiceCards: {
1326
- product: {
1327
- supportTier: "Contribution";
1328
- ratePlan: "Monthly" | "Annual";
1329
- } | {
1330
- supportTier: "SupporterPlus";
1331
- ratePlan: "Monthly" | "Annual";
1332
- } | {
1333
- supportTier: "OneOff";
1334
- };
1335
- label: string;
1336
- isDefault: boolean;
1337
- benefits: {
1338
- copy: string;
1339
- }[];
1340
- benefitsLabel?: string | null | undefined;
1341
- pill?: {
1342
- copy: string;
1343
- textColour?: {
1344
- r: string;
1345
- b: string;
1346
- g: string;
1347
- kind: "hex";
1348
- } | null | undefined;
1349
- backgroundColour?: {
1350
- r: string;
1351
- b: string;
1352
- g: string;
1353
- kind: "hex";
1354
- } | null | undefined;
1355
- } | null | undefined;
1356
- destination?: "LandingPage" | "Checkout" | null | undefined;
1357
- }[];
1358
- mobileChoiceCards?: {
1359
- product: {
1360
- supportTier: "Contribution";
1361
- ratePlan: "Monthly" | "Annual";
1362
- } | {
1363
- supportTier: "SupporterPlus";
1364
- ratePlan: "Monthly" | "Annual";
1365
- } | {
1366
- supportTier: "OneOff";
1367
- };
1368
- label: string;
1369
- isDefault: boolean;
1370
- benefits: {
1371
- copy: string;
1372
- }[];
1373
- benefitsLabel?: string | null | undefined;
1374
- pill?: {
1375
- copy: string;
1376
- textColour?: {
1377
- r: string;
1378
- b: string;
1379
- g: string;
1380
- kind: "hex";
1381
- } | null | undefined;
1382
- backgroundColour?: {
1383
- r: string;
1384
- b: string;
1385
- g: string;
1386
- kind: "hex";
1387
- } | null | undefined;
1388
- } | null | undefined;
1389
- destination?: "LandingPage" | "Checkout" | null | undefined;
1390
- }[] | null | undefined;
1391
- }>>>;
1392
- promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1393
- }, "strip", z.ZodTypeAny, {
1394
- tracking: {
1395
- abTestName: string;
1396
- abTestVariant: string;
1397
- campaignCode: string;
1398
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
1399
- ophanPageId: string;
1400
- platformId: string;
1401
- referrerUrl: string;
1402
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
1403
- labels?: string[] | null | undefined;
1404
- };
1405
- articleCounts: {
1406
- for52Weeks: number;
1407
- forTargetedWeeks: number;
1408
- };
1409
- bannerChannel: "contributions" | "subscriptions" | "signIn" | "abandonedBasket";
1410
- content?: {
1411
- heading?: string | undefined;
1412
- messageText?: string | undefined;
1413
- paragraphs?: string[] | undefined;
1414
- mobileMessageText?: string | undefined;
1415
- highlightedText?: string | undefined;
1416
- cta?: {
1417
- text: string;
1418
- baseUrl: string;
1419
- } | undefined;
1420
- secondaryCta?: {
1421
- type: import("./shared").SecondaryCtaType.Custom;
1422
- cta: {
1423
- text: string;
1424
- baseUrl: string;
1425
- };
1426
- } | {
1427
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
1428
- } | undefined;
1429
- } | null | undefined;
1430
- mobileContent?: {
1431
- heading?: string | undefined;
1432
- messageText?: string | undefined;
1433
- paragraphs?: string[] | undefined;
1434
- mobileMessageText?: string | undefined;
1435
- highlightedText?: string | undefined;
1436
- cta?: {
1437
- text: string;
1438
- baseUrl: string;
1439
- } | undefined;
1440
- secondaryCta?: {
1441
- type: import("./shared").SecondaryCtaType.Custom;
1442
- cta: {
1443
- text: string;
1444
- baseUrl: string;
1445
- };
1446
- } | {
1447
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
1448
- } | undefined;
1449
- } | null | undefined;
1450
- countryCode?: string | null | undefined;
1451
- isSupporter?: boolean | null | undefined;
1452
- tickerSettings?: {
1453
- name: "global" | "US" | "AU";
1454
- copy: {
1455
- countLabel: string;
1456
- goalCopy?: string | undefined;
1457
- };
1458
- currencySymbol: string;
1459
- tickerData?: {
1460
- total: number;
1461
- goal: number;
1462
- } | undefined;
1463
- } | null | undefined;
1464
- submitComponentEvent?: any;
1465
- hasOptedOutOfArticleCount?: boolean | null | undefined;
1466
- fetchEmail?: any;
1467
- separateArticleCount?: boolean | null | undefined;
1468
- design?: {
1469
- colours: {
1470
- basic: {
1471
- background: {
1472
- r: string;
1473
- b: string;
1474
- g: string;
1475
- kind: "hex";
1476
- };
1477
- bodyText: {
1478
- r: string;
1479
- b: string;
1480
- g: string;
1481
- kind: "hex";
1482
- };
1483
- };
1484
- };
1485
- visual?: {
1486
- kind: "Image";
1487
- mobileUrl: string;
1488
- tabletUrl: string;
1489
- desktopUrl: string;
1490
- altText: string;
1491
- } | {
1492
- kind: "ChoiceCards";
1493
- buttonColour?: {
1494
- r: string;
1495
- b: string;
1496
- g: string;
1497
- kind: "hex";
1498
- } | null | undefined;
1499
- buttonTextColour?: {
1500
- r: string;
1501
- b: string;
1502
- g: string;
1503
- kind: "hex";
1504
- } | null | undefined;
1505
- buttonBorderColour?: {
1506
- r: string;
1507
- b: string;
1508
- g: string;
1509
- kind: "hex";
1510
- } | null | undefined;
1511
- buttonSelectColour?: {
1512
- r: string;
1513
- b: string;
1514
- g: string;
1515
- kind: "hex";
1516
- } | null | undefined;
1517
- buttonSelectTextColour?: {
1518
- r: string;
1519
- b: string;
1520
- g: string;
1521
- kind: "hex";
1522
- } | null | undefined;
1523
- buttonSelectBorderColour?: {
1524
- r: string;
1525
- b: string;
1526
- g: string;
1527
- kind: "hex";
1528
- } | null | undefined;
1529
- buttonSelectMarkerColour?: {
1530
- r: string;
1531
- b: string;
1532
- g: string;
1533
- kind: "hex";
1534
- } | null | undefined;
1535
- pillTextColour?: {
1536
- r: string;
1537
- b: string;
1538
- g: string;
1539
- kind: "hex";
1540
- } | null | undefined;
1541
- pillBackgroundColour?: {
1542
- r: string;
1543
- b: string;
1544
- g: string;
1545
- kind: "hex";
1546
- } | null | undefined;
1547
- } | null | undefined;
1548
- } | null | undefined;
1549
- choiceCardsSettings?: {
1550
- choiceCards: {
1551
- product: {
1552
- supportTier: "Contribution";
1553
- ratePlan: "Monthly" | "Annual";
1554
- } | {
1555
- supportTier: "SupporterPlus";
1556
- ratePlan: "Monthly" | "Annual";
1557
- } | {
1558
- supportTier: "OneOff";
1559
- };
1560
- label: string;
1561
- isDefault: boolean;
1562
- benefits: {
1563
- copy: string;
1564
- }[];
1565
- benefitsLabel?: string | null | undefined;
1566
- pill?: {
1567
- copy: string;
1568
- textColour?: {
1569
- r: string;
1570
- b: string;
1571
- g: string;
1572
- kind: "hex";
1573
- } | null | undefined;
1574
- backgroundColour?: {
1575
- r: string;
1576
- b: string;
1577
- g: string;
1578
- kind: "hex";
1579
- } | null | undefined;
1580
- } | null | undefined;
1581
- destination?: "LandingPage" | "Checkout" | null | undefined;
1582
- }[];
1583
- mobileChoiceCards?: {
1584
- product: {
1585
- supportTier: "Contribution";
1586
- ratePlan: "Monthly" | "Annual";
1587
- } | {
1588
- supportTier: "SupporterPlus";
1589
- ratePlan: "Monthly" | "Annual";
1590
- } | {
1591
- supportTier: "OneOff";
1592
- };
1593
- label: string;
1594
- isDefault: boolean;
1595
- benefits: {
1596
- copy: string;
1597
- }[];
1598
- benefitsLabel?: string | null | undefined;
1599
- pill?: {
1600
- copy: string;
1601
- textColour?: {
1602
- r: string;
1603
- b: string;
1604
- g: string;
1605
- kind: "hex";
1606
- } | null | undefined;
1607
- backgroundColour?: {
1608
- r: string;
1609
- b: string;
1610
- g: string;
1611
- kind: "hex";
1612
- } | null | undefined;
1613
- } | null | undefined;
1614
- destination?: "LandingPage" | "Checkout" | null | undefined;
1615
- }[] | null | undefined;
1616
- } | null | undefined;
1617
- promoCodes?: string[] | null | undefined;
1618
- }, {
1619
- tracking: {
1620
- abTestName: string;
1621
- abTestVariant: string;
1622
- campaignCode: string;
1623
- componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
1624
- ophanPageId: string;
1625
- platformId: string;
1626
- referrerUrl: string;
1627
- products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
1628
- labels?: string[] | null | undefined;
1629
- };
1630
- articleCounts: {
1631
- for52Weeks: number;
1632
- forTargetedWeeks: number;
1633
- };
1634
- bannerChannel: "contributions" | "subscriptions" | "signIn" | "abandonedBasket";
1635
- content?: {
1636
- heading?: string | undefined;
1637
- messageText?: string | undefined;
1638
- paragraphs?: string[] | undefined;
1639
- mobileMessageText?: string | undefined;
1640
- highlightedText?: string | undefined;
1641
- cta?: {
1642
- text: string;
1643
- baseUrl: string;
1644
- } | undefined;
1645
- secondaryCta?: {
1646
- type: import("./shared").SecondaryCtaType.Custom;
1647
- cta: {
1648
- text: string;
1649
- baseUrl: string;
1650
- };
1651
- } | {
1652
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
1653
- } | undefined;
1654
- } | null | undefined;
1655
- mobileContent?: {
1656
- heading?: string | undefined;
1657
- messageText?: string | undefined;
1658
- paragraphs?: string[] | undefined;
1659
- mobileMessageText?: string | undefined;
1660
- highlightedText?: string | undefined;
1661
- cta?: {
1662
- text: string;
1663
- baseUrl: string;
1664
- } | undefined;
1665
- secondaryCta?: {
1666
- type: import("./shared").SecondaryCtaType.Custom;
1667
- cta: {
1668
- text: string;
1669
- baseUrl: string;
1670
- };
1671
- } | {
1672
- type: import("./shared").SecondaryCtaType.ContributionsReminder;
1673
- } | undefined;
1674
- } | null | undefined;
1675
- countryCode?: string | null | undefined;
1676
- isSupporter?: boolean | null | undefined;
1677
- tickerSettings?: {
1678
- name: "global" | "US" | "AU";
1679
- copy: {
1680
- countLabel: string;
1681
- goalCopy?: string | undefined;
1682
- };
1683
- currencySymbol: string;
1684
- tickerData?: {
1685
- total: number;
1686
- goal: number;
1687
- } | undefined;
1688
- } | null | undefined;
1689
- submitComponentEvent?: any;
1690
- hasOptedOutOfArticleCount?: boolean | null | undefined;
1691
- fetchEmail?: any;
1692
- separateArticleCount?: boolean | null | undefined;
1693
- design?: {
1694
- colours: {
1695
- basic: {
1696
- background: {
1697
- r: string;
1698
- b: string;
1699
- g: string;
1700
- kind: "hex";
1701
- };
1702
- bodyText: {
1703
- r: string;
1704
- b: string;
1705
- g: string;
1706
- kind: "hex";
1707
- };
1708
- };
1709
- };
1710
- visual?: {
1711
- kind: "Image";
1712
- mobileUrl: string;
1713
- tabletUrl: string;
1714
- desktopUrl: string;
1715
- altText: string;
1716
- } | {
1717
- kind: "ChoiceCards";
1718
- buttonColour?: {
1719
- r: string;
1720
- b: string;
1721
- g: string;
1722
- kind: "hex";
1723
- } | null | undefined;
1724
- buttonTextColour?: {
1725
- r: string;
1726
- b: string;
1727
- g: string;
1728
- kind: "hex";
1729
- } | null | undefined;
1730
- buttonBorderColour?: {
1731
- r: string;
1732
- b: string;
1733
- g: string;
1734
- kind: "hex";
1735
- } | null | undefined;
1736
- buttonSelectColour?: {
1737
- r: string;
1738
- b: string;
1739
- g: string;
1740
- kind: "hex";
1741
- } | null | undefined;
1742
- buttonSelectTextColour?: {
1743
- r: string;
1744
- b: string;
1745
- g: string;
1746
- kind: "hex";
1747
- } | null | undefined;
1748
- buttonSelectBorderColour?: {
1749
- r: string;
1750
- b: string;
1751
- g: string;
1752
- kind: "hex";
1753
- } | null | undefined;
1754
- buttonSelectMarkerColour?: {
1755
- r: string;
1756
- b: string;
1757
- g: string;
1758
- kind: "hex";
1759
- } | null | undefined;
1760
- pillTextColour?: {
1761
- r: string;
1762
- b: string;
1763
- g: string;
1764
- kind: "hex";
1765
- } | null | undefined;
1766
- pillBackgroundColour?: {
1767
- r: string;
1768
- b: string;
1769
- g: string;
1770
- kind: "hex";
1771
- } | null | undefined;
1772
- } | null | undefined;
1773
- } | null | undefined;
1774
- choiceCardsSettings?: {
1775
- choiceCards: {
1776
- product: {
1777
- supportTier: "Contribution";
1778
- ratePlan: "Monthly" | "Annual";
1779
- } | {
1780
- supportTier: "SupporterPlus";
1781
- ratePlan: "Monthly" | "Annual";
1782
- } | {
1783
- supportTier: "OneOff";
1784
- };
1785
- label: string;
1786
- isDefault: boolean;
1787
- benefits: {
1788
- copy: string;
1789
- }[];
1790
- benefitsLabel?: string | null | undefined;
1791
- pill?: {
1792
- copy: string;
1793
- textColour?: {
1794
- r: string;
1795
- b: string;
1796
- g: string;
1797
- kind: "hex";
1798
- } | null | undefined;
1799
- backgroundColour?: {
1800
- r: string;
1801
- b: string;
1802
- g: string;
1803
- kind: "hex";
1804
- } | null | undefined;
1805
- } | null | undefined;
1806
- destination?: "LandingPage" | "Checkout" | null | undefined;
1807
- }[];
1808
- mobileChoiceCards?: {
1809
- product: {
1810
- supportTier: "Contribution";
1811
- ratePlan: "Monthly" | "Annual";
1812
- } | {
1813
- supportTier: "SupporterPlus";
1814
- ratePlan: "Monthly" | "Annual";
1815
- } | {
1816
- supportTier: "OneOff";
1817
- };
1818
- label: string;
1819
- isDefault: boolean;
1820
- benefits: {
1821
- copy: string;
1822
- }[];
1823
- benefitsLabel?: string | null | undefined;
1824
- pill?: {
1825
- copy: string;
1826
- textColour?: {
1827
- r: string;
1828
- b: string;
1829
- g: string;
1830
- kind: "hex";
1831
- } | null | undefined;
1832
- backgroundColour?: {
1833
- r: string;
1834
- b: string;
1835
- g: string;
1836
- kind: "hex";
1837
- } | null | undefined;
1838
- } | null | undefined;
1839
- destination?: "LandingPage" | "Checkout" | null | undefined;
1840
- }[] | null | undefined;
1841
- } | null | undefined;
1842
- promoCodes?: string[] | null | undefined;
1843
- }>;
306
+ }, z.core.$strip>>>;
307
+ }, z.core.$strip>>>;
308
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
309
+ }, z.core.$strip>>>>;
310
+ }, z.core.$strip>>>;
311
+ promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
312
+ }, z.core.$strip>;
1844
313
  //# sourceMappingURL=banner.d.ts.map