@guardian/support-dotcom-components 1.0.6 → 1.0.8

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 (59) hide show
  1. package/dist/dotcom/src/index.d.ts +6 -1
  2. package/dist/dotcom/src/index.d.ts.map +1 -1
  3. package/dist/dotcom/src/types.d.ts +3 -0
  4. package/dist/dotcom/src/types.d.ts.map +1 -1
  5. package/dist/index.esm.js +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/shared/src/lib/geolocation.d.ts +19 -0
  8. package/dist/shared/src/lib/geolocation.d.ts.map +1 -0
  9. package/dist/shared/src/lib/index.d.ts +7 -0
  10. package/dist/shared/src/lib/index.d.ts.map +1 -0
  11. package/dist/shared/src/lib/placeholders.d.ts +12 -0
  12. package/dist/shared/src/lib/placeholders.d.ts.map +1 -0
  13. package/dist/shared/src/lib/reminderFields.d.ts +9 -0
  14. package/dist/shared/src/lib/reminderFields.d.ts.map +1 -0
  15. package/dist/shared/src/lib/tracking.d.ts +17 -0
  16. package/dist/shared/src/lib/tracking.d.ts.map +1 -0
  17. package/dist/shared/src/lib/viewLog.d.ts +1 -1
  18. package/dist/shared/src/lib/viewLog.d.ts.map +1 -1
  19. package/dist/shared/src/types/abTests/banner.d.ts +74 -0
  20. package/dist/shared/src/types/abTests/banner.d.ts.map +1 -0
  21. package/dist/shared/src/types/abTests/epic.d.ts +112 -0
  22. package/dist/shared/src/types/abTests/epic.d.ts.map +1 -0
  23. package/dist/shared/src/types/abTests/header.d.ts +26 -0
  24. package/dist/shared/src/types/abTests/header.d.ts.map +1 -0
  25. package/dist/shared/src/types/abTests/index.d.ts +5 -0
  26. package/dist/shared/src/types/abTests/index.d.ts.map +1 -0
  27. package/dist/shared/src/types/abTests/shared.d.ts +12 -4
  28. package/dist/shared/src/types/abTests/shared.d.ts.map +1 -1
  29. package/dist/shared/src/types/index.d.ts +8 -0
  30. package/dist/shared/src/types/index.d.ts.map +1 -0
  31. package/dist/shared/src/types/ophan.d.ts +5 -5
  32. package/dist/shared/src/types/ophan.d.ts.map +1 -1
  33. package/dist/shared/src/types/prices.d.ts +16 -0
  34. package/dist/shared/src/types/prices.d.ts.map +1 -0
  35. package/dist/shared/src/types/props/banner.d.ts +736 -0
  36. package/dist/shared/src/types/props/banner.d.ts.map +1 -0
  37. package/dist/shared/src/types/props/design.d.ts +287 -0
  38. package/dist/shared/src/types/props/design.d.ts.map +1 -0
  39. package/dist/shared/src/types/props/epic.d.ts +622 -0
  40. package/dist/shared/src/types/props/epic.d.ts.map +1 -0
  41. package/dist/shared/src/types/props/header.d.ts +231 -0
  42. package/dist/shared/src/types/props/header.d.ts.map +1 -0
  43. package/dist/shared/src/types/props/index.d.ts +6 -0
  44. package/dist/shared/src/types/props/index.d.ts.map +1 -0
  45. package/dist/shared/src/types/props/shared.d.ts +329 -0
  46. package/dist/shared/src/types/props/shared.d.ts.map +1 -0
  47. package/dist/shared/src/types/purchaseInfo.d.ts +2 -2
  48. package/dist/shared/src/types/purchaseInfo.d.ts.map +1 -1
  49. package/dist/shared/src/types/reminders.d.ts +16 -0
  50. package/dist/shared/src/types/reminders.d.ts.map +1 -0
  51. package/dist/shared/src/types/targeting/banner.d.ts +2 -2
  52. package/dist/shared/src/types/targeting/banner.d.ts.map +1 -1
  53. package/dist/shared/src/types/targeting/epic.d.ts +4 -3
  54. package/dist/shared/src/types/targeting/epic.d.ts.map +1 -1
  55. package/dist/shared/src/types/targeting/header.d.ts +1 -1
  56. package/dist/shared/src/types/targeting/header.d.ts.map +1 -1
  57. package/dist/shared/src/types/targeting/shared.d.ts +4 -4
  58. package/dist/shared/src/types/targeting/shared.d.ts.map +1 -1
  59. package/package.json +14 -14
@@ -0,0 +1,736 @@
1
+ import { EmotionJSX } from '@emotion/react/types/jsx-namespace';
2
+ import { Cta, SecondaryCta, TickerSettings, Tracking } from './shared';
3
+ import { OphanComponentEvent } from '../ophan';
4
+ import * as z from 'zod';
5
+ import { Prices } from '../prices';
6
+ import { SelectedAmountsVariant } from '../abTests';
7
+ import { ConfigurableDesign } from './design';
8
+ export declare const bannerChannelSchema: z.ZodEnum<["contributions", "subscriptions", "signIn"]>;
9
+ export type BannerChannel = z.infer<typeof bannerChannelSchema>;
10
+ export interface BannerContent {
11
+ heading?: string;
12
+ messageText?: string;
13
+ paragraphs?: string[];
14
+ mobileMessageText?: string;
15
+ highlightedText?: string;
16
+ cta?: Cta;
17
+ secondaryCta?: SecondaryCta;
18
+ }
19
+ export interface BannerProps extends EmotionJSX.IntrinsicAttributes {
20
+ tracking: Tracking;
21
+ bannerChannel: BannerChannel;
22
+ content?: BannerContent;
23
+ mobileContent?: BannerContent;
24
+ countryCode?: string;
25
+ isSupporter?: boolean;
26
+ tickerSettings?: TickerSettings;
27
+ submitComponentEvent?: (componentEvent: OphanComponentEvent) => void;
28
+ numArticles?: number;
29
+ hasOptedOutOfArticleCount?: boolean;
30
+ fetchEmail?: () => Promise<string | null>;
31
+ separateArticleCount?: boolean;
32
+ prices?: Prices;
33
+ choiceCardAmounts?: SelectedAmountsVariant;
34
+ design?: ConfigurableDesign;
35
+ }
36
+ export declare const bannerSchema: z.ZodObject<{
37
+ tracking: z.ZodObject<{
38
+ abTestName: z.ZodString;
39
+ abTestVariant: z.ZodString;
40
+ campaignCode: z.ZodString;
41
+ componentType: z.ZodEnum<["ACQUISITIONS_EPIC", "ACQUISITIONS_ENGAGEMENT_BANNER", "ACQUISITIONS_SUBSCRIPTIONS_BANNER", "ACQUISITIONS_HEADER", "ACQUISITIONS_OTHER"]>;
42
+ products: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["CONTRIBUTION", "MEMBERSHIP_SUPPORTER", "DIGITAL_SUBSCRIPTION", "PRINT_SUBSCRIPTION"]>, "many">>>;
43
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
44
+ ophanPageId: z.ZodString;
45
+ platformId: z.ZodString;
46
+ referrerUrl: z.ZodString;
47
+ clientName: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
50
+ abTestName: string;
51
+ abTestVariant: string;
52
+ campaignCode: string;
53
+ ophanPageId: string;
54
+ platformId: string;
55
+ referrerUrl: string;
56
+ clientName: string;
57
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
58
+ labels?: string[] | null | undefined;
59
+ }, {
60
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
61
+ abTestName: string;
62
+ abTestVariant: string;
63
+ campaignCode: string;
64
+ ophanPageId: string;
65
+ platformId: string;
66
+ referrerUrl: string;
67
+ clientName: string;
68
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
69
+ labels?: string[] | null | undefined;
70
+ }>;
71
+ bannerChannel: z.ZodEnum<["contributions", "subscriptions", "signIn"]>;
72
+ content: z.ZodOptional<z.ZodNullable<z.ZodObject<{
73
+ heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ messageText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ paragraphs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
76
+ mobileMessageText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ highlightedText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ cta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
79
+ text: z.ZodString;
80
+ baseUrl: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ text: string;
83
+ baseUrl: string;
84
+ }, {
85
+ text: string;
86
+ baseUrl: string;
87
+ }>>>;
88
+ secondaryCta: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
89
+ type: z.ZodLiteral<"CustomSecondaryCta">;
90
+ cta: z.ZodObject<{
91
+ text: z.ZodString;
92
+ baseUrl: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ text: string;
95
+ baseUrl: string;
96
+ }, {
97
+ text: string;
98
+ baseUrl: string;
99
+ }>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: "CustomSecondaryCta";
102
+ cta: {
103
+ text: string;
104
+ baseUrl: string;
105
+ };
106
+ }, {
107
+ type: "CustomSecondaryCta";
108
+ cta: {
109
+ text: string;
110
+ baseUrl: string;
111
+ };
112
+ }>, z.ZodObject<{
113
+ type: z.ZodLiteral<"ContributionsReminderSecondaryCta">;
114
+ }, "strip", z.ZodTypeAny, {
115
+ type: "ContributionsReminderSecondaryCta";
116
+ }, {
117
+ type: "ContributionsReminderSecondaryCta";
118
+ }>]>>>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ heading?: string | null | undefined;
121
+ messageText?: string | null | undefined;
122
+ paragraphs?: string[] | null | undefined;
123
+ mobileMessageText?: string | null | undefined;
124
+ highlightedText?: string | null | undefined;
125
+ cta?: {
126
+ text: string;
127
+ baseUrl: string;
128
+ } | null | undefined;
129
+ secondaryCta?: {
130
+ type: "CustomSecondaryCta";
131
+ cta: {
132
+ text: string;
133
+ baseUrl: string;
134
+ };
135
+ } | {
136
+ type: "ContributionsReminderSecondaryCta";
137
+ } | null | undefined;
138
+ }, {
139
+ heading?: string | null | undefined;
140
+ messageText?: string | null | undefined;
141
+ paragraphs?: string[] | null | undefined;
142
+ mobileMessageText?: string | null | undefined;
143
+ highlightedText?: string | null | undefined;
144
+ cta?: {
145
+ text: string;
146
+ baseUrl: string;
147
+ } | null | undefined;
148
+ secondaryCta?: {
149
+ type: "CustomSecondaryCta";
150
+ cta: {
151
+ text: string;
152
+ baseUrl: string;
153
+ };
154
+ } | {
155
+ type: "ContributionsReminderSecondaryCta";
156
+ } | null | undefined;
157
+ }>>>;
158
+ mobileContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
159
+ heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ messageText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ paragraphs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
162
+ mobileMessageText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ highlightedText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ cta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
165
+ text: z.ZodString;
166
+ baseUrl: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ text: string;
169
+ baseUrl: string;
170
+ }, {
171
+ text: string;
172
+ baseUrl: string;
173
+ }>>>;
174
+ secondaryCta: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
175
+ type: z.ZodLiteral<"CustomSecondaryCta">;
176
+ cta: z.ZodObject<{
177
+ text: z.ZodString;
178
+ baseUrl: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ text: string;
181
+ baseUrl: string;
182
+ }, {
183
+ text: string;
184
+ baseUrl: string;
185
+ }>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ type: "CustomSecondaryCta";
188
+ cta: {
189
+ text: string;
190
+ baseUrl: string;
191
+ };
192
+ }, {
193
+ type: "CustomSecondaryCta";
194
+ cta: {
195
+ text: string;
196
+ baseUrl: string;
197
+ };
198
+ }>, z.ZodObject<{
199
+ type: z.ZodLiteral<"ContributionsReminderSecondaryCta">;
200
+ }, "strip", z.ZodTypeAny, {
201
+ type: "ContributionsReminderSecondaryCta";
202
+ }, {
203
+ type: "ContributionsReminderSecondaryCta";
204
+ }>]>>>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ heading?: string | null | undefined;
207
+ messageText?: string | null | undefined;
208
+ paragraphs?: string[] | null | undefined;
209
+ mobileMessageText?: string | null | undefined;
210
+ highlightedText?: string | null | undefined;
211
+ cta?: {
212
+ text: string;
213
+ baseUrl: string;
214
+ } | null | undefined;
215
+ secondaryCta?: {
216
+ type: "CustomSecondaryCta";
217
+ cta: {
218
+ text: string;
219
+ baseUrl: string;
220
+ };
221
+ } | {
222
+ type: "ContributionsReminderSecondaryCta";
223
+ } | null | undefined;
224
+ }, {
225
+ heading?: string | null | undefined;
226
+ messageText?: string | null | undefined;
227
+ paragraphs?: string[] | null | undefined;
228
+ mobileMessageText?: string | null | undefined;
229
+ highlightedText?: string | null | undefined;
230
+ cta?: {
231
+ text: string;
232
+ baseUrl: string;
233
+ } | null | undefined;
234
+ secondaryCta?: {
235
+ type: "CustomSecondaryCta";
236
+ cta: {
237
+ text: string;
238
+ baseUrl: string;
239
+ };
240
+ } | {
241
+ type: "ContributionsReminderSecondaryCta";
242
+ } | null | undefined;
243
+ }>>>;
244
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
+ isSupporter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
246
+ tickerSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
247
+ endType: z.ZodEnum<["unlimited", "hardstop"]>;
248
+ countType: z.ZodEnum<["money"]>;
249
+ currencySymbol: z.ZodString;
250
+ copy: z.ZodObject<{
251
+ countLabel: z.ZodString;
252
+ goalReachedPrimary: z.ZodString;
253
+ goalReachedSecondary: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ countLabel: string;
256
+ goalReachedPrimary: string;
257
+ goalReachedSecondary: string;
258
+ }, {
259
+ countLabel: string;
260
+ goalReachedPrimary: string;
261
+ goalReachedSecondary: string;
262
+ }>;
263
+ tickerData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
264
+ total: z.ZodNumber;
265
+ goal: z.ZodNumber;
266
+ }, "strip", z.ZodTypeAny, {
267
+ total: number;
268
+ goal: number;
269
+ }, {
270
+ total: number;
271
+ goal: number;
272
+ }>>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ copy: {
275
+ countLabel: string;
276
+ goalReachedPrimary: string;
277
+ goalReachedSecondary: string;
278
+ };
279
+ endType: "unlimited" | "hardstop";
280
+ countType: "money";
281
+ currencySymbol: string;
282
+ tickerData?: {
283
+ total: number;
284
+ goal: number;
285
+ } | null | undefined;
286
+ }, {
287
+ copy: {
288
+ countLabel: string;
289
+ goalReachedPrimary: string;
290
+ goalReachedSecondary: string;
291
+ };
292
+ endType: "unlimited" | "hardstop";
293
+ countType: "money";
294
+ currencySymbol: string;
295
+ tickerData?: {
296
+ total: number;
297
+ goal: number;
298
+ } | null | undefined;
299
+ }>>>;
300
+ submitComponentEvent: z.ZodAny;
301
+ numArticles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
302
+ hasOptedOutOfArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
303
+ fetchEmail: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
304
+ separateArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
305
+ design: z.ZodOptional<z.ZodNullable<z.ZodObject<{
306
+ visual: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
307
+ mobileUrl: z.ZodString;
308
+ tabletDesktopUrl: z.ZodString;
309
+ wideUrl: z.ZodString;
310
+ altText: z.ZodString;
311
+ kind: z.ZodLiteral<"Image">;
312
+ }, "strip", z.ZodTypeAny, {
313
+ kind: "Image";
314
+ mobileUrl: string;
315
+ wideUrl: string;
316
+ altText: string;
317
+ tabletDesktopUrl: string;
318
+ }, {
319
+ kind: "Image";
320
+ mobileUrl: string;
321
+ wideUrl: string;
322
+ altText: string;
323
+ tabletDesktopUrl: string;
324
+ }>, z.ZodObject<{
325
+ buttonColour: z.ZodOptional<z.ZodObject<{
326
+ r: z.ZodEffects<z.ZodString, string, string>;
327
+ g: z.ZodEffects<z.ZodString, string, string>;
328
+ b: z.ZodEffects<z.ZodString, string, string>;
329
+ kind: z.ZodLiteral<"hex">;
330
+ }, "strip", z.ZodTypeAny, {
331
+ b: string;
332
+ g: string;
333
+ kind: "hex";
334
+ r: string;
335
+ }, {
336
+ b: string;
337
+ g: string;
338
+ kind: "hex";
339
+ r: string;
340
+ }>>;
341
+ kind: z.ZodLiteral<"ChoiceCards">;
342
+ }, "strip", z.ZodTypeAny, {
343
+ kind: "ChoiceCards";
344
+ buttonColour?: {
345
+ b: string;
346
+ g: string;
347
+ kind: "hex";
348
+ r: string;
349
+ } | undefined;
350
+ }, {
351
+ kind: "ChoiceCards";
352
+ buttonColour?: {
353
+ b: string;
354
+ g: string;
355
+ kind: "hex";
356
+ r: string;
357
+ } | undefined;
358
+ }>]>>;
359
+ colours: z.ZodObject<{
360
+ basic: z.ZodObject<{
361
+ background: z.ZodObject<{
362
+ r: z.ZodEffects<z.ZodString, string, string>;
363
+ g: z.ZodEffects<z.ZodString, string, string>;
364
+ b: z.ZodEffects<z.ZodString, string, string>;
365
+ kind: z.ZodLiteral<"hex">;
366
+ }, "strip", z.ZodTypeAny, {
367
+ b: string;
368
+ g: string;
369
+ kind: "hex";
370
+ r: string;
371
+ }, {
372
+ b: string;
373
+ g: string;
374
+ kind: "hex";
375
+ r: string;
376
+ }>;
377
+ bodyText: z.ZodObject<{
378
+ r: z.ZodEffects<z.ZodString, string, string>;
379
+ g: z.ZodEffects<z.ZodString, string, string>;
380
+ b: z.ZodEffects<z.ZodString, string, string>;
381
+ kind: z.ZodLiteral<"hex">;
382
+ }, "strip", z.ZodTypeAny, {
383
+ b: string;
384
+ g: string;
385
+ kind: "hex";
386
+ r: string;
387
+ }, {
388
+ b: string;
389
+ g: string;
390
+ kind: "hex";
391
+ r: string;
392
+ }>;
393
+ }, "strip", z.ZodTypeAny, {
394
+ background: {
395
+ b: string;
396
+ g: string;
397
+ kind: "hex";
398
+ r: string;
399
+ };
400
+ bodyText: {
401
+ b: string;
402
+ g: string;
403
+ kind: "hex";
404
+ r: string;
405
+ };
406
+ }, {
407
+ background: {
408
+ b: string;
409
+ g: string;
410
+ kind: "hex";
411
+ r: string;
412
+ };
413
+ bodyText: {
414
+ b: string;
415
+ g: string;
416
+ kind: "hex";
417
+ r: string;
418
+ };
419
+ }>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ basic: {
422
+ background: {
423
+ b: string;
424
+ g: string;
425
+ kind: "hex";
426
+ r: string;
427
+ };
428
+ bodyText: {
429
+ b: string;
430
+ g: string;
431
+ kind: "hex";
432
+ r: string;
433
+ };
434
+ };
435
+ }, {
436
+ basic: {
437
+ background: {
438
+ b: string;
439
+ g: string;
440
+ kind: "hex";
441
+ r: string;
442
+ };
443
+ bodyText: {
444
+ b: string;
445
+ g: string;
446
+ kind: "hex";
447
+ r: string;
448
+ };
449
+ };
450
+ }>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ colours: {
453
+ basic: {
454
+ background: {
455
+ b: string;
456
+ g: string;
457
+ kind: "hex";
458
+ r: string;
459
+ };
460
+ bodyText: {
461
+ b: string;
462
+ g: string;
463
+ kind: "hex";
464
+ r: string;
465
+ };
466
+ };
467
+ };
468
+ visual?: {
469
+ kind: "Image";
470
+ mobileUrl: string;
471
+ wideUrl: string;
472
+ altText: string;
473
+ tabletDesktopUrl: string;
474
+ } | {
475
+ kind: "ChoiceCards";
476
+ buttonColour?: {
477
+ b: string;
478
+ g: string;
479
+ kind: "hex";
480
+ r: string;
481
+ } | undefined;
482
+ } | undefined;
483
+ }, {
484
+ colours: {
485
+ basic: {
486
+ background: {
487
+ b: string;
488
+ g: string;
489
+ kind: "hex";
490
+ r: string;
491
+ };
492
+ bodyText: {
493
+ b: string;
494
+ g: string;
495
+ kind: "hex";
496
+ r: string;
497
+ };
498
+ };
499
+ };
500
+ visual?: {
501
+ kind: "Image";
502
+ mobileUrl: string;
503
+ wideUrl: string;
504
+ altText: string;
505
+ tabletDesktopUrl: string;
506
+ } | {
507
+ kind: "ChoiceCards";
508
+ buttonColour?: {
509
+ b: string;
510
+ g: string;
511
+ kind: "hex";
512
+ r: string;
513
+ } | undefined;
514
+ } | undefined;
515
+ }>>>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ bannerChannel: "contributions" | "subscriptions" | "signIn";
518
+ tracking: {
519
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
520
+ abTestName: string;
521
+ abTestVariant: string;
522
+ campaignCode: string;
523
+ ophanPageId: string;
524
+ platformId: string;
525
+ referrerUrl: string;
526
+ clientName: string;
527
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
528
+ labels?: string[] | null | undefined;
529
+ };
530
+ content?: {
531
+ heading?: string | null | undefined;
532
+ messageText?: string | null | undefined;
533
+ paragraphs?: string[] | null | undefined;
534
+ mobileMessageText?: string | null | undefined;
535
+ highlightedText?: string | null | undefined;
536
+ cta?: {
537
+ text: string;
538
+ baseUrl: string;
539
+ } | null | undefined;
540
+ secondaryCta?: {
541
+ type: "CustomSecondaryCta";
542
+ cta: {
543
+ text: string;
544
+ baseUrl: string;
545
+ };
546
+ } | {
547
+ type: "ContributionsReminderSecondaryCta";
548
+ } | null | undefined;
549
+ } | null | undefined;
550
+ mobileContent?: {
551
+ heading?: string | null | undefined;
552
+ messageText?: string | null | undefined;
553
+ paragraphs?: string[] | null | undefined;
554
+ mobileMessageText?: string | null | undefined;
555
+ highlightedText?: string | null | undefined;
556
+ cta?: {
557
+ text: string;
558
+ baseUrl: string;
559
+ } | null | undefined;
560
+ secondaryCta?: {
561
+ type: "CustomSecondaryCta";
562
+ cta: {
563
+ text: string;
564
+ baseUrl: string;
565
+ };
566
+ } | {
567
+ type: "ContributionsReminderSecondaryCta";
568
+ } | null | undefined;
569
+ } | null | undefined;
570
+ countryCode?: string | null | undefined;
571
+ isSupporter?: boolean | null | undefined;
572
+ tickerSettings?: {
573
+ copy: {
574
+ countLabel: string;
575
+ goalReachedPrimary: string;
576
+ goalReachedSecondary: string;
577
+ };
578
+ endType: "unlimited" | "hardstop";
579
+ countType: "money";
580
+ currencySymbol: string;
581
+ tickerData?: {
582
+ total: number;
583
+ goal: number;
584
+ } | null | undefined;
585
+ } | null | undefined;
586
+ submitComponentEvent?: any;
587
+ numArticles?: number | null | undefined;
588
+ hasOptedOutOfArticleCount?: boolean | null | undefined;
589
+ fetchEmail?: any;
590
+ separateArticleCount?: boolean | null | undefined;
591
+ design?: {
592
+ colours: {
593
+ basic: {
594
+ background: {
595
+ b: string;
596
+ g: string;
597
+ kind: "hex";
598
+ r: string;
599
+ };
600
+ bodyText: {
601
+ b: string;
602
+ g: string;
603
+ kind: "hex";
604
+ r: string;
605
+ };
606
+ };
607
+ };
608
+ visual?: {
609
+ kind: "Image";
610
+ mobileUrl: string;
611
+ wideUrl: string;
612
+ altText: string;
613
+ tabletDesktopUrl: string;
614
+ } | {
615
+ kind: "ChoiceCards";
616
+ buttonColour?: {
617
+ b: string;
618
+ g: string;
619
+ kind: "hex";
620
+ r: string;
621
+ } | undefined;
622
+ } | undefined;
623
+ } | null | undefined;
624
+ }, {
625
+ bannerChannel: "contributions" | "subscriptions" | "signIn";
626
+ tracking: {
627
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
628
+ abTestName: string;
629
+ abTestVariant: string;
630
+ campaignCode: string;
631
+ ophanPageId: string;
632
+ platformId: string;
633
+ referrerUrl: string;
634
+ clientName: string;
635
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
636
+ labels?: string[] | null | undefined;
637
+ };
638
+ content?: {
639
+ heading?: string | null | undefined;
640
+ messageText?: string | null | undefined;
641
+ paragraphs?: string[] | null | undefined;
642
+ mobileMessageText?: string | null | undefined;
643
+ highlightedText?: string | null | undefined;
644
+ cta?: {
645
+ text: string;
646
+ baseUrl: string;
647
+ } | null | undefined;
648
+ secondaryCta?: {
649
+ type: "CustomSecondaryCta";
650
+ cta: {
651
+ text: string;
652
+ baseUrl: string;
653
+ };
654
+ } | {
655
+ type: "ContributionsReminderSecondaryCta";
656
+ } | null | undefined;
657
+ } | null | undefined;
658
+ mobileContent?: {
659
+ heading?: string | null | undefined;
660
+ messageText?: string | null | undefined;
661
+ paragraphs?: string[] | null | undefined;
662
+ mobileMessageText?: string | null | undefined;
663
+ highlightedText?: string | null | undefined;
664
+ cta?: {
665
+ text: string;
666
+ baseUrl: string;
667
+ } | null | undefined;
668
+ secondaryCta?: {
669
+ type: "CustomSecondaryCta";
670
+ cta: {
671
+ text: string;
672
+ baseUrl: string;
673
+ };
674
+ } | {
675
+ type: "ContributionsReminderSecondaryCta";
676
+ } | null | undefined;
677
+ } | null | undefined;
678
+ countryCode?: string | null | undefined;
679
+ isSupporter?: boolean | null | undefined;
680
+ tickerSettings?: {
681
+ copy: {
682
+ countLabel: string;
683
+ goalReachedPrimary: string;
684
+ goalReachedSecondary: string;
685
+ };
686
+ endType: "unlimited" | "hardstop";
687
+ countType: "money";
688
+ currencySymbol: string;
689
+ tickerData?: {
690
+ total: number;
691
+ goal: number;
692
+ } | null | undefined;
693
+ } | null | undefined;
694
+ submitComponentEvent?: any;
695
+ numArticles?: number | null | undefined;
696
+ hasOptedOutOfArticleCount?: boolean | null | undefined;
697
+ fetchEmail?: any;
698
+ separateArticleCount?: boolean | null | undefined;
699
+ design?: {
700
+ colours: {
701
+ basic: {
702
+ background: {
703
+ b: string;
704
+ g: string;
705
+ kind: "hex";
706
+ r: string;
707
+ };
708
+ bodyText: {
709
+ b: string;
710
+ g: string;
711
+ kind: "hex";
712
+ r: string;
713
+ };
714
+ };
715
+ };
716
+ visual?: {
717
+ kind: "Image";
718
+ mobileUrl: string;
719
+ wideUrl: string;
720
+ altText: string;
721
+ tabletDesktopUrl: string;
722
+ } | {
723
+ kind: "ChoiceCards";
724
+ buttonColour?: {
725
+ b: string;
726
+ g: string;
727
+ kind: "hex";
728
+ r: string;
729
+ } | undefined;
730
+ } | undefined;
731
+ } | null | undefined;
732
+ }>;
733
+ export interface PuzzlesBannerProps extends Partial<BannerProps> {
734
+ tracking: Tracking;
735
+ }
736
+ //# sourceMappingURL=banner.d.ts.map