@guardian/support-dotcom-components 1.1.1 → 1.1.2
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.
- package/dist/dotcom/src/requests.d.ts +0 -1
- package/dist/dotcom/src/requests.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/src/lib/geolocation.d.ts +4 -1
- package/dist/shared/src/lib/geolocation.d.ts.map +1 -1
- package/dist/shared/src/lib/tracking.d.ts +1 -1
- package/dist/shared/src/lib/tracking.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/banner.d.ts +1 -9
- package/dist/shared/src/types/abTests/banner.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/epic.d.ts +863 -52
- package/dist/shared/src/types/abTests/epic.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/shared.d.ts +66 -5
- package/dist/shared/src/types/abTests/shared.d.ts.map +1 -1
- package/dist/shared/src/types/props/banner.d.ts +105 -103
- package/dist/shared/src/types/props/banner.d.ts.map +1 -1
- package/dist/shared/src/types/props/design.d.ts +41 -42
- package/dist/shared/src/types/props/design.d.ts.map +1 -1
- package/dist/shared/src/types/props/epic.d.ts +982 -213
- package/dist/shared/src/types/props/epic.d.ts.map +1 -1
- package/dist/shared/src/types/props/shared.d.ts +76 -73
- package/dist/shared/src/types/props/shared.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -85,8 +85,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
85
85
|
text: string;
|
|
86
86
|
baseUrl: string;
|
|
87
87
|
}>>>;
|
|
88
|
-
secondaryCta: z.ZodOptional<z.ZodNullable<z.
|
|
89
|
-
type: z.ZodLiteral<"
|
|
88
|
+
secondaryCta: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
|
|
90
90
|
cta: z.ZodObject<{
|
|
91
91
|
text: z.ZodString;
|
|
92
92
|
baseUrl: z.ZodString;
|
|
@@ -98,23 +98,23 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
98
98
|
baseUrl: string;
|
|
99
99
|
}>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
type: "
|
|
101
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
102
102
|
cta: {
|
|
103
103
|
text: string;
|
|
104
104
|
baseUrl: string;
|
|
105
105
|
};
|
|
106
106
|
}, {
|
|
107
|
-
type: "
|
|
107
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
108
108
|
cta: {
|
|
109
109
|
text: string;
|
|
110
110
|
baseUrl: string;
|
|
111
111
|
};
|
|
112
112
|
}>, z.ZodObject<{
|
|
113
|
-
type: z.ZodLiteral<"
|
|
113
|
+
type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
type: "
|
|
115
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
116
116
|
}, {
|
|
117
|
-
type: "
|
|
117
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
118
118
|
}>]>>>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
120
|
heading?: string | null | undefined;
|
|
@@ -127,13 +127,13 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
127
127
|
baseUrl: string;
|
|
128
128
|
} | null | undefined;
|
|
129
129
|
secondaryCta?: {
|
|
130
|
-
type: "
|
|
130
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
131
131
|
cta: {
|
|
132
132
|
text: string;
|
|
133
133
|
baseUrl: string;
|
|
134
134
|
};
|
|
135
135
|
} | {
|
|
136
|
-
type: "
|
|
136
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
137
137
|
} | null | undefined;
|
|
138
138
|
}, {
|
|
139
139
|
heading?: string | null | undefined;
|
|
@@ -146,13 +146,13 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
146
146
|
baseUrl: string;
|
|
147
147
|
} | null | undefined;
|
|
148
148
|
secondaryCta?: {
|
|
149
|
-
type: "
|
|
149
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
150
150
|
cta: {
|
|
151
151
|
text: string;
|
|
152
152
|
baseUrl: string;
|
|
153
153
|
};
|
|
154
154
|
} | {
|
|
155
|
-
type: "
|
|
155
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
156
156
|
} | null | undefined;
|
|
157
157
|
}>>>;
|
|
158
158
|
mobileContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -171,8 +171,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
171
171
|
text: string;
|
|
172
172
|
baseUrl: string;
|
|
173
173
|
}>>>;
|
|
174
|
-
secondaryCta: z.ZodOptional<z.ZodNullable<z.
|
|
175
|
-
type: z.ZodLiteral<"
|
|
174
|
+
secondaryCta: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
175
|
+
type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
|
|
176
176
|
cta: z.ZodObject<{
|
|
177
177
|
text: z.ZodString;
|
|
178
178
|
baseUrl: z.ZodString;
|
|
@@ -184,23 +184,23 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
184
184
|
baseUrl: string;
|
|
185
185
|
}>;
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
type: "
|
|
187
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
188
188
|
cta: {
|
|
189
189
|
text: string;
|
|
190
190
|
baseUrl: string;
|
|
191
191
|
};
|
|
192
192
|
}, {
|
|
193
|
-
type: "
|
|
193
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
194
194
|
cta: {
|
|
195
195
|
text: string;
|
|
196
196
|
baseUrl: string;
|
|
197
197
|
};
|
|
198
198
|
}>, z.ZodObject<{
|
|
199
|
-
type: z.ZodLiteral<"
|
|
199
|
+
type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
type: "
|
|
201
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
202
202
|
}, {
|
|
203
|
-
type: "
|
|
203
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
204
204
|
}>]>>>;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
heading?: string | null | undefined;
|
|
@@ -213,13 +213,13 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
213
213
|
baseUrl: string;
|
|
214
214
|
} | null | undefined;
|
|
215
215
|
secondaryCta?: {
|
|
216
|
-
type: "
|
|
216
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
217
217
|
cta: {
|
|
218
218
|
text: string;
|
|
219
219
|
baseUrl: string;
|
|
220
220
|
};
|
|
221
221
|
} | {
|
|
222
|
-
type: "
|
|
222
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
223
223
|
} | null | undefined;
|
|
224
224
|
}, {
|
|
225
225
|
heading?: string | null | undefined;
|
|
@@ -232,20 +232,20 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
232
232
|
baseUrl: string;
|
|
233
233
|
} | null | undefined;
|
|
234
234
|
secondaryCta?: {
|
|
235
|
-
type: "
|
|
235
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
236
236
|
cta: {
|
|
237
237
|
text: string;
|
|
238
238
|
baseUrl: string;
|
|
239
239
|
};
|
|
240
240
|
} | {
|
|
241
|
-
type: "
|
|
241
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
242
242
|
} | null | undefined;
|
|
243
243
|
}>>>;
|
|
244
244
|
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
245
|
isSupporter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
246
246
|
tickerSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
247
|
-
endType: z.
|
|
248
|
-
countType: z.
|
|
247
|
+
endType: z.ZodNativeEnum<typeof import("./shared").TickerEndType>;
|
|
248
|
+
countType: z.ZodNativeEnum<typeof import("./shared").TickerCountType>;
|
|
249
249
|
currencySymbol: z.ZodString;
|
|
250
250
|
copy: z.ZodObject<{
|
|
251
251
|
countLabel: z.ZodString;
|
|
@@ -260,7 +260,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
260
260
|
goalReachedPrimary: string;
|
|
261
261
|
goalReachedSecondary: string;
|
|
262
262
|
}>;
|
|
263
|
-
|
|
263
|
+
name: z.ZodEnum<["US", "AU"]>;
|
|
264
|
+
tickerData: z.ZodOptional<z.ZodObject<{
|
|
264
265
|
total: z.ZodNumber;
|
|
265
266
|
goal: z.ZodNumber;
|
|
266
267
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -269,33 +270,35 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
269
270
|
}, {
|
|
270
271
|
total: number;
|
|
271
272
|
goal: number;
|
|
272
|
-
}
|
|
273
|
+
}>>;
|
|
273
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
name: "US" | "AU";
|
|
274
276
|
copy: {
|
|
275
277
|
countLabel: string;
|
|
276
278
|
goalReachedPrimary: string;
|
|
277
279
|
goalReachedSecondary: string;
|
|
278
280
|
};
|
|
279
|
-
endType: "
|
|
280
|
-
countType: "
|
|
281
|
+
endType: import("./shared").TickerEndType;
|
|
282
|
+
countType: import("./shared").TickerCountType;
|
|
281
283
|
currencySymbol: string;
|
|
282
284
|
tickerData?: {
|
|
283
285
|
total: number;
|
|
284
286
|
goal: number;
|
|
285
|
-
} |
|
|
287
|
+
} | undefined;
|
|
286
288
|
}, {
|
|
289
|
+
name: "US" | "AU";
|
|
287
290
|
copy: {
|
|
288
291
|
countLabel: string;
|
|
289
292
|
goalReachedPrimary: string;
|
|
290
293
|
goalReachedSecondary: string;
|
|
291
294
|
};
|
|
292
|
-
endType: "
|
|
293
|
-
countType: "
|
|
295
|
+
endType: import("./shared").TickerEndType;
|
|
296
|
+
countType: import("./shared").TickerCountType;
|
|
294
297
|
currencySymbol: string;
|
|
295
298
|
tickerData?: {
|
|
296
299
|
total: number;
|
|
297
300
|
goal: number;
|
|
298
|
-
} |
|
|
301
|
+
} | undefined;
|
|
299
302
|
}>>>;
|
|
300
303
|
submitComponentEvent: z.ZodAny;
|
|
301
304
|
numArticles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -303,7 +306,7 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
303
306
|
fetchEmail: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
304
307
|
separateArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
305
308
|
design: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
306
|
-
visual: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
309
|
+
visual: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
307
310
|
mobileUrl: z.ZodString;
|
|
308
311
|
tabletDesktopUrl: z.ZodString;
|
|
309
312
|
wideUrl: z.ZodString;
|
|
@@ -322,7 +325,7 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
322
325
|
altText: string;
|
|
323
326
|
tabletDesktopUrl: string;
|
|
324
327
|
}>, z.ZodObject<{
|
|
325
|
-
buttonColour: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
buttonColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
326
329
|
r: z.ZodEffects<z.ZodString, string, string>;
|
|
327
330
|
g: z.ZodEffects<z.ZodString, string, string>;
|
|
328
331
|
b: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -337,8 +340,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
337
340
|
g: string;
|
|
338
341
|
kind: "hex";
|
|
339
342
|
r: string;
|
|
340
|
-
}
|
|
341
|
-
buttonTextColour: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
}>>>;
|
|
344
|
+
buttonTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
342
345
|
r: z.ZodEffects<z.ZodString, string, string>;
|
|
343
346
|
g: z.ZodEffects<z.ZodString, string, string>;
|
|
344
347
|
b: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -353,8 +356,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
353
356
|
g: string;
|
|
354
357
|
kind: "hex";
|
|
355
358
|
r: string;
|
|
356
|
-
}
|
|
357
|
-
buttonBorderColour: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
}>>>;
|
|
360
|
+
buttonBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
358
361
|
r: z.ZodEffects<z.ZodString, string, string>;
|
|
359
362
|
g: z.ZodEffects<z.ZodString, string, string>;
|
|
360
363
|
b: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -369,8 +372,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
369
372
|
g: string;
|
|
370
373
|
kind: "hex";
|
|
371
374
|
r: string;
|
|
372
|
-
}
|
|
373
|
-
buttonSelectColour: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
}>>>;
|
|
376
|
+
buttonSelectColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
374
377
|
r: z.ZodEffects<z.ZodString, string, string>;
|
|
375
378
|
g: z.ZodEffects<z.ZodString, string, string>;
|
|
376
379
|
b: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -385,8 +388,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
385
388
|
g: string;
|
|
386
389
|
kind: "hex";
|
|
387
390
|
r: string;
|
|
388
|
-
}
|
|
389
|
-
buttonSelectTextColour: z.ZodOptional<z.ZodObject<{
|
|
391
|
+
}>>>;
|
|
392
|
+
buttonSelectTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
390
393
|
r: z.ZodEffects<z.ZodString, string, string>;
|
|
391
394
|
g: z.ZodEffects<z.ZodString, string, string>;
|
|
392
395
|
b: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -401,8 +404,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
401
404
|
g: string;
|
|
402
405
|
kind: "hex";
|
|
403
406
|
r: string;
|
|
404
|
-
}
|
|
405
|
-
buttonSelectBorderColour: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
}>>>;
|
|
408
|
+
buttonSelectBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
406
409
|
r: z.ZodEffects<z.ZodString, string, string>;
|
|
407
410
|
g: z.ZodEffects<z.ZodString, string, string>;
|
|
408
411
|
b: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -417,7 +420,7 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
417
420
|
g: string;
|
|
418
421
|
kind: "hex";
|
|
419
422
|
r: string;
|
|
420
|
-
}
|
|
423
|
+
}>>>;
|
|
421
424
|
kind: z.ZodLiteral<"ChoiceCards">;
|
|
422
425
|
}, "strip", z.ZodTypeAny, {
|
|
423
426
|
kind: "ChoiceCards";
|
|
@@ -426,37 +429,37 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
426
429
|
g: string;
|
|
427
430
|
kind: "hex";
|
|
428
431
|
r: string;
|
|
429
|
-
} | undefined;
|
|
432
|
+
} | null | undefined;
|
|
430
433
|
buttonTextColour?: {
|
|
431
434
|
b: string;
|
|
432
435
|
g: string;
|
|
433
436
|
kind: "hex";
|
|
434
437
|
r: string;
|
|
435
|
-
} | undefined;
|
|
438
|
+
} | null | undefined;
|
|
436
439
|
buttonBorderColour?: {
|
|
437
440
|
b: string;
|
|
438
441
|
g: string;
|
|
439
442
|
kind: "hex";
|
|
440
443
|
r: string;
|
|
441
|
-
} | undefined;
|
|
444
|
+
} | null | undefined;
|
|
442
445
|
buttonSelectColour?: {
|
|
443
446
|
b: string;
|
|
444
447
|
g: string;
|
|
445
448
|
kind: "hex";
|
|
446
449
|
r: string;
|
|
447
|
-
} | undefined;
|
|
450
|
+
} | null | undefined;
|
|
448
451
|
buttonSelectTextColour?: {
|
|
449
452
|
b: string;
|
|
450
453
|
g: string;
|
|
451
454
|
kind: "hex";
|
|
452
455
|
r: string;
|
|
453
|
-
} | undefined;
|
|
456
|
+
} | null | undefined;
|
|
454
457
|
buttonSelectBorderColour?: {
|
|
455
458
|
b: string;
|
|
456
459
|
g: string;
|
|
457
460
|
kind: "hex";
|
|
458
461
|
r: string;
|
|
459
|
-
} | undefined;
|
|
462
|
+
} | null | undefined;
|
|
460
463
|
}, {
|
|
461
464
|
kind: "ChoiceCards";
|
|
462
465
|
buttonColour?: {
|
|
@@ -464,38 +467,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
464
467
|
g: string;
|
|
465
468
|
kind: "hex";
|
|
466
469
|
r: string;
|
|
467
|
-
} | undefined;
|
|
470
|
+
} | null | undefined;
|
|
468
471
|
buttonTextColour?: {
|
|
469
472
|
b: string;
|
|
470
473
|
g: string;
|
|
471
474
|
kind: "hex";
|
|
472
475
|
r: string;
|
|
473
|
-
} | undefined;
|
|
476
|
+
} | null | undefined;
|
|
474
477
|
buttonBorderColour?: {
|
|
475
478
|
b: string;
|
|
476
479
|
g: string;
|
|
477
480
|
kind: "hex";
|
|
478
481
|
r: string;
|
|
479
|
-
} | undefined;
|
|
482
|
+
} | null | undefined;
|
|
480
483
|
buttonSelectColour?: {
|
|
481
484
|
b: string;
|
|
482
485
|
g: string;
|
|
483
486
|
kind: "hex";
|
|
484
487
|
r: string;
|
|
485
|
-
} | undefined;
|
|
488
|
+
} | null | undefined;
|
|
486
489
|
buttonSelectTextColour?: {
|
|
487
490
|
b: string;
|
|
488
491
|
g: string;
|
|
489
492
|
kind: "hex";
|
|
490
493
|
r: string;
|
|
491
|
-
} | undefined;
|
|
494
|
+
} | null | undefined;
|
|
492
495
|
buttonSelectBorderColour?: {
|
|
493
496
|
b: string;
|
|
494
497
|
g: string;
|
|
495
498
|
kind: "hex";
|
|
496
499
|
r: string;
|
|
497
|
-
} | undefined;
|
|
498
|
-
}>]
|
|
500
|
+
} | null | undefined;
|
|
501
|
+
}>]>>>;
|
|
499
502
|
colours: z.ZodObject<{
|
|
500
503
|
basic: z.ZodObject<{
|
|
501
504
|
background: z.ZodObject<{
|
|
@@ -618,38 +621,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
618
621
|
g: string;
|
|
619
622
|
kind: "hex";
|
|
620
623
|
r: string;
|
|
621
|
-
} | undefined;
|
|
624
|
+
} | null | undefined;
|
|
622
625
|
buttonTextColour?: {
|
|
623
626
|
b: string;
|
|
624
627
|
g: string;
|
|
625
628
|
kind: "hex";
|
|
626
629
|
r: string;
|
|
627
|
-
} | undefined;
|
|
630
|
+
} | null | undefined;
|
|
628
631
|
buttonBorderColour?: {
|
|
629
632
|
b: string;
|
|
630
633
|
g: string;
|
|
631
634
|
kind: "hex";
|
|
632
635
|
r: string;
|
|
633
|
-
} | undefined;
|
|
636
|
+
} | null | undefined;
|
|
634
637
|
buttonSelectColour?: {
|
|
635
638
|
b: string;
|
|
636
639
|
g: string;
|
|
637
640
|
kind: "hex";
|
|
638
641
|
r: string;
|
|
639
|
-
} | undefined;
|
|
642
|
+
} | null | undefined;
|
|
640
643
|
buttonSelectTextColour?: {
|
|
641
644
|
b: string;
|
|
642
645
|
g: string;
|
|
643
646
|
kind: "hex";
|
|
644
647
|
r: string;
|
|
645
|
-
} | undefined;
|
|
648
|
+
} | null | undefined;
|
|
646
649
|
buttonSelectBorderColour?: {
|
|
647
650
|
b: string;
|
|
648
651
|
g: string;
|
|
649
652
|
kind: "hex";
|
|
650
653
|
r: string;
|
|
651
|
-
} | undefined;
|
|
652
|
-
} | undefined;
|
|
654
|
+
} | null | undefined;
|
|
655
|
+
} | null | undefined;
|
|
653
656
|
}, {
|
|
654
657
|
colours: {
|
|
655
658
|
basic: {
|
|
@@ -680,38 +683,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
680
683
|
g: string;
|
|
681
684
|
kind: "hex";
|
|
682
685
|
r: string;
|
|
683
|
-
} | undefined;
|
|
686
|
+
} | null | undefined;
|
|
684
687
|
buttonTextColour?: {
|
|
685
688
|
b: string;
|
|
686
689
|
g: string;
|
|
687
690
|
kind: "hex";
|
|
688
691
|
r: string;
|
|
689
|
-
} | undefined;
|
|
692
|
+
} | null | undefined;
|
|
690
693
|
buttonBorderColour?: {
|
|
691
694
|
b: string;
|
|
692
695
|
g: string;
|
|
693
696
|
kind: "hex";
|
|
694
697
|
r: string;
|
|
695
|
-
} | undefined;
|
|
698
|
+
} | null | undefined;
|
|
696
699
|
buttonSelectColour?: {
|
|
697
700
|
b: string;
|
|
698
701
|
g: string;
|
|
699
702
|
kind: "hex";
|
|
700
703
|
r: string;
|
|
701
|
-
} | undefined;
|
|
704
|
+
} | null | undefined;
|
|
702
705
|
buttonSelectTextColour?: {
|
|
703
706
|
b: string;
|
|
704
707
|
g: string;
|
|
705
708
|
kind: "hex";
|
|
706
709
|
r: string;
|
|
707
|
-
} | undefined;
|
|
710
|
+
} | null | undefined;
|
|
708
711
|
buttonSelectBorderColour?: {
|
|
709
712
|
b: string;
|
|
710
713
|
g: string;
|
|
711
714
|
kind: "hex";
|
|
712
715
|
r: string;
|
|
713
|
-
} | undefined;
|
|
714
|
-
} | undefined;
|
|
716
|
+
} | null | undefined;
|
|
717
|
+
} | null | undefined;
|
|
715
718
|
}>>>;
|
|
716
719
|
}, "strip", z.ZodTypeAny, {
|
|
717
720
|
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
@@ -738,13 +741,13 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
738
741
|
baseUrl: string;
|
|
739
742
|
} | null | undefined;
|
|
740
743
|
secondaryCta?: {
|
|
741
|
-
type: "
|
|
744
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
742
745
|
cta: {
|
|
743
746
|
text: string;
|
|
744
747
|
baseUrl: string;
|
|
745
748
|
};
|
|
746
749
|
} | {
|
|
747
|
-
type: "
|
|
750
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
748
751
|
} | null | undefined;
|
|
749
752
|
} | null | undefined;
|
|
750
753
|
mobileContent?: {
|
|
@@ -758,30 +761,31 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
758
761
|
baseUrl: string;
|
|
759
762
|
} | null | undefined;
|
|
760
763
|
secondaryCta?: {
|
|
761
|
-
type: "
|
|
764
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
762
765
|
cta: {
|
|
763
766
|
text: string;
|
|
764
767
|
baseUrl: string;
|
|
765
768
|
};
|
|
766
769
|
} | {
|
|
767
|
-
type: "
|
|
770
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
768
771
|
} | null | undefined;
|
|
769
772
|
} | null | undefined;
|
|
770
773
|
countryCode?: string | null | undefined;
|
|
771
774
|
isSupporter?: boolean | null | undefined;
|
|
772
775
|
tickerSettings?: {
|
|
776
|
+
name: "US" | "AU";
|
|
773
777
|
copy: {
|
|
774
778
|
countLabel: string;
|
|
775
779
|
goalReachedPrimary: string;
|
|
776
780
|
goalReachedSecondary: string;
|
|
777
781
|
};
|
|
778
|
-
endType: "
|
|
779
|
-
countType: "
|
|
782
|
+
endType: import("./shared").TickerEndType;
|
|
783
|
+
countType: import("./shared").TickerCountType;
|
|
780
784
|
currencySymbol: string;
|
|
781
785
|
tickerData?: {
|
|
782
786
|
total: number;
|
|
783
787
|
goal: number;
|
|
784
|
-
} |
|
|
788
|
+
} | undefined;
|
|
785
789
|
} | null | undefined;
|
|
786
790
|
submitComponentEvent?: any;
|
|
787
791
|
numArticles?: number | null | undefined;
|
|
@@ -818,38 +822,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
818
822
|
g: string;
|
|
819
823
|
kind: "hex";
|
|
820
824
|
r: string;
|
|
821
|
-
} | undefined;
|
|
825
|
+
} | null | undefined;
|
|
822
826
|
buttonTextColour?: {
|
|
823
827
|
b: string;
|
|
824
828
|
g: string;
|
|
825
829
|
kind: "hex";
|
|
826
830
|
r: string;
|
|
827
|
-
} | undefined;
|
|
831
|
+
} | null | undefined;
|
|
828
832
|
buttonBorderColour?: {
|
|
829
833
|
b: string;
|
|
830
834
|
g: string;
|
|
831
835
|
kind: "hex";
|
|
832
836
|
r: string;
|
|
833
|
-
} | undefined;
|
|
837
|
+
} | null | undefined;
|
|
834
838
|
buttonSelectColour?: {
|
|
835
839
|
b: string;
|
|
836
840
|
g: string;
|
|
837
841
|
kind: "hex";
|
|
838
842
|
r: string;
|
|
839
|
-
} | undefined;
|
|
843
|
+
} | null | undefined;
|
|
840
844
|
buttonSelectTextColour?: {
|
|
841
845
|
b: string;
|
|
842
846
|
g: string;
|
|
843
847
|
kind: "hex";
|
|
844
848
|
r: string;
|
|
845
|
-
} | undefined;
|
|
849
|
+
} | null | undefined;
|
|
846
850
|
buttonSelectBorderColour?: {
|
|
847
851
|
b: string;
|
|
848
852
|
g: string;
|
|
849
853
|
kind: "hex";
|
|
850
854
|
r: string;
|
|
851
|
-
} | undefined;
|
|
852
|
-
} | undefined;
|
|
855
|
+
} | null | undefined;
|
|
856
|
+
} | null | undefined;
|
|
853
857
|
} | null | undefined;
|
|
854
858
|
}, {
|
|
855
859
|
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
@@ -876,13 +880,13 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
876
880
|
baseUrl: string;
|
|
877
881
|
} | null | undefined;
|
|
878
882
|
secondaryCta?: {
|
|
879
|
-
type: "
|
|
883
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
880
884
|
cta: {
|
|
881
885
|
text: string;
|
|
882
886
|
baseUrl: string;
|
|
883
887
|
};
|
|
884
888
|
} | {
|
|
885
|
-
type: "
|
|
889
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
886
890
|
} | null | undefined;
|
|
887
891
|
} | null | undefined;
|
|
888
892
|
mobileContent?: {
|
|
@@ -896,30 +900,31 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
896
900
|
baseUrl: string;
|
|
897
901
|
} | null | undefined;
|
|
898
902
|
secondaryCta?: {
|
|
899
|
-
type: "
|
|
903
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
900
904
|
cta: {
|
|
901
905
|
text: string;
|
|
902
906
|
baseUrl: string;
|
|
903
907
|
};
|
|
904
908
|
} | {
|
|
905
|
-
type: "
|
|
909
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
906
910
|
} | null | undefined;
|
|
907
911
|
} | null | undefined;
|
|
908
912
|
countryCode?: string | null | undefined;
|
|
909
913
|
isSupporter?: boolean | null | undefined;
|
|
910
914
|
tickerSettings?: {
|
|
915
|
+
name: "US" | "AU";
|
|
911
916
|
copy: {
|
|
912
917
|
countLabel: string;
|
|
913
918
|
goalReachedPrimary: string;
|
|
914
919
|
goalReachedSecondary: string;
|
|
915
920
|
};
|
|
916
|
-
endType: "
|
|
917
|
-
countType: "
|
|
921
|
+
endType: import("./shared").TickerEndType;
|
|
922
|
+
countType: import("./shared").TickerCountType;
|
|
918
923
|
currencySymbol: string;
|
|
919
924
|
tickerData?: {
|
|
920
925
|
total: number;
|
|
921
926
|
goal: number;
|
|
922
|
-
} |
|
|
927
|
+
} | undefined;
|
|
923
928
|
} | null | undefined;
|
|
924
929
|
submitComponentEvent?: any;
|
|
925
930
|
numArticles?: number | null | undefined;
|
|
@@ -956,41 +961,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
956
961
|
g: string;
|
|
957
962
|
kind: "hex";
|
|
958
963
|
r: string;
|
|
959
|
-
} | undefined;
|
|
964
|
+
} | null | undefined;
|
|
960
965
|
buttonTextColour?: {
|
|
961
966
|
b: string;
|
|
962
967
|
g: string;
|
|
963
968
|
kind: "hex";
|
|
964
969
|
r: string;
|
|
965
|
-
} | undefined;
|
|
970
|
+
} | null | undefined;
|
|
966
971
|
buttonBorderColour?: {
|
|
967
972
|
b: string;
|
|
968
973
|
g: string;
|
|
969
974
|
kind: "hex";
|
|
970
975
|
r: string;
|
|
971
|
-
} | undefined;
|
|
976
|
+
} | null | undefined;
|
|
972
977
|
buttonSelectColour?: {
|
|
973
978
|
b: string;
|
|
974
979
|
g: string;
|
|
975
980
|
kind: "hex";
|
|
976
981
|
r: string;
|
|
977
|
-
} | undefined;
|
|
982
|
+
} | null | undefined;
|
|
978
983
|
buttonSelectTextColour?: {
|
|
979
984
|
b: string;
|
|
980
985
|
g: string;
|
|
981
986
|
kind: "hex";
|
|
982
987
|
r: string;
|
|
983
|
-
} | undefined;
|
|
988
|
+
} | null | undefined;
|
|
984
989
|
buttonSelectBorderColour?: {
|
|
985
990
|
b: string;
|
|
986
991
|
g: string;
|
|
987
992
|
kind: "hex";
|
|
988
993
|
r: string;
|
|
989
|
-
} | undefined;
|
|
990
|
-
} | undefined;
|
|
994
|
+
} | null | undefined;
|
|
995
|
+
} | null | undefined;
|
|
991
996
|
} | null | undefined;
|
|
992
997
|
}>;
|
|
993
|
-
export interface PuzzlesBannerProps extends Partial<BannerProps> {
|
|
994
|
-
tracking: Tracking;
|
|
995
|
-
}
|
|
996
998
|
//# sourceMappingURL=banner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/props/banner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EACH,GAAG,EAEH,YAAY,EAEZ,cAAc,EAEd,QAAQ,EAEX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC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