@guardian/support-dotcom-components 1.0.7 → 1.0.11

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 +73 -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 +3 -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 +10 -9
@@ -0,0 +1,622 @@
1
+ import { EmotionJSX } from '@emotion/react/types/jsx-namespace';
2
+ import * as z from 'zod';
3
+ import { Stage, Tracking } from './shared';
4
+ import { OphanComponentEvent } from '../ophan';
5
+ import { EpicVariant } from '../abTests';
6
+ export type ArticleCountType = 'for52Weeks' | 'forTargetedWeeks';
7
+ export type ArticleCounts = {
8
+ [type in ArticleCountType]: number;
9
+ };
10
+ export interface EpicProps extends EmotionJSX.IntrinsicAttributes {
11
+ variant: EpicVariant;
12
+ tracking: Tracking;
13
+ countryCode?: string;
14
+ articleCounts: ArticleCounts;
15
+ onReminderOpen?: Function;
16
+ fetchEmail?: () => Promise<string | null>;
17
+ submitComponentEvent?: (componentEvent: OphanComponentEvent) => void;
18
+ openCmp?: () => void;
19
+ hasConsentForArticleCount?: boolean;
20
+ stage?: Stage;
21
+ }
22
+ export declare const epicPropsSchema: z.ZodObject<{
23
+ variant: z.ZodObject<{
24
+ name: z.ZodString;
25
+ heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ paragraphs: z.ZodArray<z.ZodString, "many">;
27
+ highlightedText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ tickerSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ endType: z.ZodEnum<["unlimited", "hardstop"]>;
30
+ countType: z.ZodEnum<["money"]>;
31
+ currencySymbol: z.ZodString;
32
+ copy: z.ZodObject<{
33
+ countLabel: z.ZodString;
34
+ goalReachedPrimary: z.ZodString;
35
+ goalReachedSecondary: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ countLabel: string;
38
+ goalReachedPrimary: string;
39
+ goalReachedSecondary: string;
40
+ }, {
41
+ countLabel: string;
42
+ goalReachedPrimary: string;
43
+ goalReachedSecondary: string;
44
+ }>;
45
+ tickerData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46
+ total: z.ZodNumber;
47
+ goal: z.ZodNumber;
48
+ }, "strip", z.ZodTypeAny, {
49
+ total: number;
50
+ goal: number;
51
+ }, {
52
+ total: number;
53
+ goal: number;
54
+ }>>>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ copy: {
57
+ countLabel: string;
58
+ goalReachedPrimary: string;
59
+ goalReachedSecondary: string;
60
+ };
61
+ endType: "unlimited" | "hardstop";
62
+ countType: "money";
63
+ currencySymbol: string;
64
+ tickerData?: {
65
+ total: number;
66
+ goal: number;
67
+ } | null | undefined;
68
+ }, {
69
+ copy: {
70
+ countLabel: string;
71
+ goalReachedPrimary: string;
72
+ goalReachedSecondary: string;
73
+ };
74
+ endType: "unlimited" | "hardstop";
75
+ countType: "money";
76
+ currencySymbol: string;
77
+ tickerData?: {
78
+ total: number;
79
+ goal: number;
80
+ } | null | undefined;
81
+ }>>>;
82
+ cta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
+ text: z.ZodString;
84
+ baseUrl: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ text: string;
87
+ baseUrl: string;
88
+ }, {
89
+ text: string;
90
+ baseUrl: string;
91
+ }>>>;
92
+ secondaryCta: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
93
+ type: z.ZodLiteral<"CustomSecondaryCta">;
94
+ cta: z.ZodObject<{
95
+ text: z.ZodString;
96
+ baseUrl: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ text: string;
99
+ baseUrl: string;
100
+ }, {
101
+ text: string;
102
+ baseUrl: string;
103
+ }>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "CustomSecondaryCta";
106
+ cta: {
107
+ text: string;
108
+ baseUrl: string;
109
+ };
110
+ }, {
111
+ type: "CustomSecondaryCta";
112
+ cta: {
113
+ text: string;
114
+ baseUrl: string;
115
+ };
116
+ }>, z.ZodObject<{
117
+ type: z.ZodLiteral<"ContributionsReminderSecondaryCta">;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: "ContributionsReminderSecondaryCta";
120
+ }, {
121
+ type: "ContributionsReminderSecondaryCta";
122
+ }>]>>>;
123
+ footer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
125
+ mainUrl: z.ZodString;
126
+ mobileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ tabletUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ desktopUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ leftColUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ wideUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ altText: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ mainUrl: string;
134
+ altText: string;
135
+ mobileUrl?: string | null | undefined;
136
+ tabletUrl?: string | null | undefined;
137
+ desktopUrl?: string | null | undefined;
138
+ leftColUrl?: string | null | undefined;
139
+ wideUrl?: string | null | undefined;
140
+ }, {
141
+ mainUrl: string;
142
+ altText: string;
143
+ mobileUrl?: string | null | undefined;
144
+ tabletUrl?: string | null | undefined;
145
+ desktopUrl?: string | null | undefined;
146
+ leftColUrl?: string | null | undefined;
147
+ wideUrl?: string | null | undefined;
148
+ }>>>;
149
+ showReminderFields: z.ZodOptional<z.ZodNullable<z.ZodObject<{
150
+ reminderCta: z.ZodString;
151
+ reminderLabel: z.ZodString;
152
+ reminderPeriod: z.ZodString;
153
+ }, "strip", z.ZodTypeAny, {
154
+ reminderCta: string;
155
+ reminderLabel: string;
156
+ reminderPeriod: string;
157
+ }, {
158
+ reminderCta: string;
159
+ reminderLabel: string;
160
+ reminderPeriod: string;
161
+ }>>>;
162
+ separateArticleCount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
+ type: z.ZodString;
164
+ copy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ type: string;
167
+ copy?: string | null | undefined;
168
+ }, {
169
+ type: string;
170
+ copy?: string | null | undefined;
171
+ }>>>;
172
+ maxViews: z.ZodOptional<z.ZodNullable<z.ZodObject<{
173
+ maxViewsCount: z.ZodNumber;
174
+ maxViewsDays: z.ZodNumber;
175
+ minDaysBetweenViews: z.ZodNumber;
176
+ }, "strip", z.ZodTypeAny, {
177
+ maxViewsCount: number;
178
+ maxViewsDays: number;
179
+ minDaysBetweenViews: number;
180
+ }, {
181
+ maxViewsCount: number;
182
+ maxViewsDays: number;
183
+ minDaysBetweenViews: number;
184
+ }>>>;
185
+ showSignInLink: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
186
+ bylineWithImage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
187
+ name: z.ZodString;
188
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ headshot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
190
+ mainUrl: z.ZodString;
191
+ mobileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ tabletUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ desktopUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ leftColUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ wideUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ altText: z.ZodString;
197
+ }, "strip", z.ZodTypeAny, {
198
+ mainUrl: string;
199
+ altText: string;
200
+ mobileUrl?: string | null | undefined;
201
+ tabletUrl?: string | null | undefined;
202
+ desktopUrl?: string | null | undefined;
203
+ leftColUrl?: string | null | undefined;
204
+ wideUrl?: string | null | undefined;
205
+ }, {
206
+ mainUrl: string;
207
+ altText: string;
208
+ mobileUrl?: string | null | undefined;
209
+ tabletUrl?: string | null | undefined;
210
+ desktopUrl?: string | null | undefined;
211
+ leftColUrl?: string | null | undefined;
212
+ wideUrl?: string | null | undefined;
213
+ }>>>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ name: string;
216
+ description?: string | null | undefined;
217
+ headshot?: {
218
+ mainUrl: string;
219
+ altText: string;
220
+ mobileUrl?: string | null | undefined;
221
+ tabletUrl?: string | null | undefined;
222
+ desktopUrl?: string | null | undefined;
223
+ leftColUrl?: string | null | undefined;
224
+ wideUrl?: string | null | undefined;
225
+ } | null | undefined;
226
+ }, {
227
+ name: string;
228
+ description?: string | null | undefined;
229
+ headshot?: {
230
+ mainUrl: string;
231
+ altText: string;
232
+ mobileUrl?: string | null | undefined;
233
+ tabletUrl?: string | null | undefined;
234
+ desktopUrl?: string | null | undefined;
235
+ leftColUrl?: string | null | undefined;
236
+ wideUrl?: string | null | undefined;
237
+ } | null | undefined;
238
+ }>>>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ name: string;
241
+ paragraphs: string[];
242
+ heading?: string | null | undefined;
243
+ highlightedText?: string | null | undefined;
244
+ tickerSettings?: {
245
+ copy: {
246
+ countLabel: string;
247
+ goalReachedPrimary: string;
248
+ goalReachedSecondary: string;
249
+ };
250
+ endType: "unlimited" | "hardstop";
251
+ countType: "money";
252
+ currencySymbol: string;
253
+ tickerData?: {
254
+ total: number;
255
+ goal: number;
256
+ } | null | undefined;
257
+ } | null | undefined;
258
+ cta?: {
259
+ text: string;
260
+ baseUrl: string;
261
+ } | null | undefined;
262
+ secondaryCta?: {
263
+ type: "CustomSecondaryCta";
264
+ cta: {
265
+ text: string;
266
+ baseUrl: string;
267
+ };
268
+ } | {
269
+ type: "ContributionsReminderSecondaryCta";
270
+ } | null | undefined;
271
+ footer?: string | null | undefined;
272
+ image?: {
273
+ mainUrl: string;
274
+ altText: string;
275
+ mobileUrl?: string | null | undefined;
276
+ tabletUrl?: string | null | undefined;
277
+ desktopUrl?: string | null | undefined;
278
+ leftColUrl?: string | null | undefined;
279
+ wideUrl?: string | null | undefined;
280
+ } | null | undefined;
281
+ showReminderFields?: {
282
+ reminderCta: string;
283
+ reminderLabel: string;
284
+ reminderPeriod: string;
285
+ } | null | undefined;
286
+ separateArticleCount?: {
287
+ type: string;
288
+ copy?: string | null | undefined;
289
+ } | null | undefined;
290
+ maxViews?: {
291
+ maxViewsCount: number;
292
+ maxViewsDays: number;
293
+ minDaysBetweenViews: number;
294
+ } | null | undefined;
295
+ showSignInLink?: boolean | null | undefined;
296
+ bylineWithImage?: {
297
+ name: string;
298
+ description?: string | null | undefined;
299
+ headshot?: {
300
+ mainUrl: string;
301
+ altText: string;
302
+ mobileUrl?: string | null | undefined;
303
+ tabletUrl?: string | null | undefined;
304
+ desktopUrl?: string | null | undefined;
305
+ leftColUrl?: string | null | undefined;
306
+ wideUrl?: string | null | undefined;
307
+ } | null | undefined;
308
+ } | null | undefined;
309
+ }, {
310
+ name: string;
311
+ paragraphs: string[];
312
+ heading?: string | null | undefined;
313
+ highlightedText?: string | null | undefined;
314
+ tickerSettings?: {
315
+ copy: {
316
+ countLabel: string;
317
+ goalReachedPrimary: string;
318
+ goalReachedSecondary: string;
319
+ };
320
+ endType: "unlimited" | "hardstop";
321
+ countType: "money";
322
+ currencySymbol: string;
323
+ tickerData?: {
324
+ total: number;
325
+ goal: number;
326
+ } | null | undefined;
327
+ } | null | undefined;
328
+ cta?: {
329
+ text: string;
330
+ baseUrl: string;
331
+ } | null | undefined;
332
+ secondaryCta?: {
333
+ type: "CustomSecondaryCta";
334
+ cta: {
335
+ text: string;
336
+ baseUrl: string;
337
+ };
338
+ } | {
339
+ type: "ContributionsReminderSecondaryCta";
340
+ } | null | undefined;
341
+ footer?: string | null | undefined;
342
+ image?: {
343
+ mainUrl: string;
344
+ altText: string;
345
+ mobileUrl?: string | null | undefined;
346
+ tabletUrl?: string | null | undefined;
347
+ desktopUrl?: string | null | undefined;
348
+ leftColUrl?: string | null | undefined;
349
+ wideUrl?: string | null | undefined;
350
+ } | null | undefined;
351
+ showReminderFields?: {
352
+ reminderCta: string;
353
+ reminderLabel: string;
354
+ reminderPeriod: string;
355
+ } | null | undefined;
356
+ separateArticleCount?: {
357
+ type: string;
358
+ copy?: string | null | undefined;
359
+ } | null | undefined;
360
+ maxViews?: {
361
+ maxViewsCount: number;
362
+ maxViewsDays: number;
363
+ minDaysBetweenViews: number;
364
+ } | null | undefined;
365
+ showSignInLink?: boolean | null | undefined;
366
+ bylineWithImage?: {
367
+ name: string;
368
+ description?: string | null | undefined;
369
+ headshot?: {
370
+ mainUrl: string;
371
+ altText: string;
372
+ mobileUrl?: string | null | undefined;
373
+ tabletUrl?: string | null | undefined;
374
+ desktopUrl?: string | null | undefined;
375
+ leftColUrl?: string | null | undefined;
376
+ wideUrl?: string | null | undefined;
377
+ } | null | undefined;
378
+ } | null | undefined;
379
+ }>;
380
+ tracking: z.ZodObject<{
381
+ abTestName: z.ZodString;
382
+ abTestVariant: z.ZodString;
383
+ campaignCode: z.ZodString;
384
+ componentType: z.ZodEnum<["ACQUISITIONS_EPIC", "ACQUISITIONS_ENGAGEMENT_BANNER", "ACQUISITIONS_SUBSCRIPTIONS_BANNER", "ACQUISITIONS_HEADER", "ACQUISITIONS_OTHER"]>;
385
+ products: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["CONTRIBUTION", "MEMBERSHIP_SUPPORTER", "DIGITAL_SUBSCRIPTION", "PRINT_SUBSCRIPTION"]>, "many">>>;
386
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
387
+ ophanPageId: z.ZodString;
388
+ platformId: z.ZodString;
389
+ referrerUrl: z.ZodString;
390
+ clientName: z.ZodString;
391
+ }, "strip", z.ZodTypeAny, {
392
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
393
+ abTestName: string;
394
+ abTestVariant: string;
395
+ campaignCode: string;
396
+ ophanPageId: string;
397
+ platformId: string;
398
+ referrerUrl: string;
399
+ clientName: string;
400
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
401
+ labels?: string[] | null | undefined;
402
+ }, {
403
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
404
+ abTestName: string;
405
+ abTestVariant: string;
406
+ campaignCode: string;
407
+ ophanPageId: string;
408
+ platformId: string;
409
+ referrerUrl: string;
410
+ clientName: string;
411
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
412
+ labels?: string[] | null | undefined;
413
+ }>;
414
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ articleCounts: z.ZodObject<{
416
+ for52Weeks: z.ZodNumber;
417
+ forTargetedWeeks: z.ZodNumber;
418
+ }, "strip", z.ZodTypeAny, {
419
+ for52Weeks: number;
420
+ forTargetedWeeks: number;
421
+ }, {
422
+ for52Weeks: number;
423
+ forTargetedWeeks: number;
424
+ }>;
425
+ onReminderOpen: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
426
+ fetchEmail: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
427
+ submitComponentEvent: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
428
+ openCmp: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
429
+ hasConsentForArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
430
+ stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ variant: {
433
+ name: string;
434
+ paragraphs: string[];
435
+ heading?: string | null | undefined;
436
+ highlightedText?: string | null | undefined;
437
+ tickerSettings?: {
438
+ copy: {
439
+ countLabel: string;
440
+ goalReachedPrimary: string;
441
+ goalReachedSecondary: string;
442
+ };
443
+ endType: "unlimited" | "hardstop";
444
+ countType: "money";
445
+ currencySymbol: string;
446
+ tickerData?: {
447
+ total: number;
448
+ goal: number;
449
+ } | null | undefined;
450
+ } | null | undefined;
451
+ cta?: {
452
+ text: string;
453
+ baseUrl: string;
454
+ } | null | undefined;
455
+ secondaryCta?: {
456
+ type: "CustomSecondaryCta";
457
+ cta: {
458
+ text: string;
459
+ baseUrl: string;
460
+ };
461
+ } | {
462
+ type: "ContributionsReminderSecondaryCta";
463
+ } | null | undefined;
464
+ footer?: string | null | undefined;
465
+ image?: {
466
+ mainUrl: string;
467
+ altText: string;
468
+ mobileUrl?: string | null | undefined;
469
+ tabletUrl?: string | null | undefined;
470
+ desktopUrl?: string | null | undefined;
471
+ leftColUrl?: string | null | undefined;
472
+ wideUrl?: string | null | undefined;
473
+ } | null | undefined;
474
+ showReminderFields?: {
475
+ reminderCta: string;
476
+ reminderLabel: string;
477
+ reminderPeriod: string;
478
+ } | null | undefined;
479
+ separateArticleCount?: {
480
+ type: string;
481
+ copy?: string | null | undefined;
482
+ } | null | undefined;
483
+ maxViews?: {
484
+ maxViewsCount: number;
485
+ maxViewsDays: number;
486
+ minDaysBetweenViews: number;
487
+ } | null | undefined;
488
+ showSignInLink?: boolean | null | undefined;
489
+ bylineWithImage?: {
490
+ name: string;
491
+ description?: string | null | undefined;
492
+ headshot?: {
493
+ mainUrl: string;
494
+ altText: string;
495
+ mobileUrl?: string | null | undefined;
496
+ tabletUrl?: string | null | undefined;
497
+ desktopUrl?: string | null | undefined;
498
+ leftColUrl?: string | null | undefined;
499
+ wideUrl?: string | null | undefined;
500
+ } | null | undefined;
501
+ } | null | undefined;
502
+ };
503
+ tracking: {
504
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
505
+ abTestName: string;
506
+ abTestVariant: string;
507
+ campaignCode: string;
508
+ ophanPageId: string;
509
+ platformId: string;
510
+ referrerUrl: string;
511
+ clientName: string;
512
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
513
+ labels?: string[] | null | undefined;
514
+ };
515
+ articleCounts: {
516
+ for52Weeks: number;
517
+ forTargetedWeeks: number;
518
+ };
519
+ countryCode?: string | null | undefined;
520
+ onReminderOpen?: any;
521
+ fetchEmail?: any;
522
+ submitComponentEvent?: any;
523
+ openCmp?: any;
524
+ hasConsentForArticleCount?: boolean | null | undefined;
525
+ stage?: string | null | undefined;
526
+ }, {
527
+ variant: {
528
+ name: string;
529
+ paragraphs: string[];
530
+ heading?: string | null | undefined;
531
+ highlightedText?: string | null | undefined;
532
+ tickerSettings?: {
533
+ copy: {
534
+ countLabel: string;
535
+ goalReachedPrimary: string;
536
+ goalReachedSecondary: string;
537
+ };
538
+ endType: "unlimited" | "hardstop";
539
+ countType: "money";
540
+ currencySymbol: string;
541
+ tickerData?: {
542
+ total: number;
543
+ goal: number;
544
+ } | null | undefined;
545
+ } | null | undefined;
546
+ cta?: {
547
+ text: string;
548
+ baseUrl: string;
549
+ } | null | undefined;
550
+ secondaryCta?: {
551
+ type: "CustomSecondaryCta";
552
+ cta: {
553
+ text: string;
554
+ baseUrl: string;
555
+ };
556
+ } | {
557
+ type: "ContributionsReminderSecondaryCta";
558
+ } | null | undefined;
559
+ footer?: string | null | undefined;
560
+ image?: {
561
+ mainUrl: string;
562
+ altText: string;
563
+ mobileUrl?: string | null | undefined;
564
+ tabletUrl?: string | null | undefined;
565
+ desktopUrl?: string | null | undefined;
566
+ leftColUrl?: string | null | undefined;
567
+ wideUrl?: string | null | undefined;
568
+ } | null | undefined;
569
+ showReminderFields?: {
570
+ reminderCta: string;
571
+ reminderLabel: string;
572
+ reminderPeriod: string;
573
+ } | null | undefined;
574
+ separateArticleCount?: {
575
+ type: string;
576
+ copy?: string | null | undefined;
577
+ } | null | undefined;
578
+ maxViews?: {
579
+ maxViewsCount: number;
580
+ maxViewsDays: number;
581
+ minDaysBetweenViews: number;
582
+ } | null | undefined;
583
+ showSignInLink?: boolean | null | undefined;
584
+ bylineWithImage?: {
585
+ name: string;
586
+ description?: string | null | undefined;
587
+ headshot?: {
588
+ mainUrl: string;
589
+ altText: string;
590
+ mobileUrl?: string | null | undefined;
591
+ tabletUrl?: string | null | undefined;
592
+ desktopUrl?: string | null | undefined;
593
+ leftColUrl?: string | null | undefined;
594
+ wideUrl?: string | null | undefined;
595
+ } | null | undefined;
596
+ } | null | undefined;
597
+ };
598
+ tracking: {
599
+ componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
600
+ abTestName: string;
601
+ abTestVariant: string;
602
+ campaignCode: string;
603
+ ophanPageId: string;
604
+ platformId: string;
605
+ referrerUrl: string;
606
+ clientName: string;
607
+ products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
608
+ labels?: string[] | null | undefined;
609
+ };
610
+ articleCounts: {
611
+ for52Weeks: number;
612
+ forTargetedWeeks: number;
613
+ };
614
+ countryCode?: string | null | undefined;
615
+ onReminderOpen?: any;
616
+ fetchEmail?: any;
617
+ submitComponentEvent?: any;
618
+ openCmp?: any;
619
+ hasConsentForArticleCount?: boolean | null | undefined;
620
+ stage?: string | null | undefined;
621
+ }>;
622
+ //# sourceMappingURL=epic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/props/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAKH,KAAK,EAEL,QAAQ,EAEX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GACtB,YAAY,GACZ,kBAAkB,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG;KACvB,IAAI,IAAI,gBAAgB,GAAG,MAAM;CACrC,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,UAAU,CAAC,mBAAmB;IAC7D,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAE7B,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,CAAC,cAAc,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACrE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB;AA4CD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAC"}