@guardian/support-dotcom-components 1.1.0 → 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/index.d.ts +3 -1
- package/dist/dotcom/src/index.d.ts.map +1 -1
- 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 +325 -63
- package/dist/shared/src/types/props/banner.d.ts.map +1 -1
- package/dist/shared/src/types/props/design.d.ts +216 -12
- 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,7 +340,87 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
337
340
|
g: string;
|
|
338
341
|
kind: "hex";
|
|
339
342
|
r: string;
|
|
340
|
-
}
|
|
343
|
+
}>>>;
|
|
344
|
+
buttonTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
345
|
+
r: z.ZodEffects<z.ZodString, string, string>;
|
|
346
|
+
g: z.ZodEffects<z.ZodString, string, string>;
|
|
347
|
+
b: z.ZodEffects<z.ZodString, string, string>;
|
|
348
|
+
kind: z.ZodLiteral<"hex">;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
b: string;
|
|
351
|
+
g: string;
|
|
352
|
+
kind: "hex";
|
|
353
|
+
r: string;
|
|
354
|
+
}, {
|
|
355
|
+
b: string;
|
|
356
|
+
g: string;
|
|
357
|
+
kind: "hex";
|
|
358
|
+
r: string;
|
|
359
|
+
}>>>;
|
|
360
|
+
buttonBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
361
|
+
r: z.ZodEffects<z.ZodString, string, string>;
|
|
362
|
+
g: z.ZodEffects<z.ZodString, string, string>;
|
|
363
|
+
b: z.ZodEffects<z.ZodString, string, string>;
|
|
364
|
+
kind: z.ZodLiteral<"hex">;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
b: string;
|
|
367
|
+
g: string;
|
|
368
|
+
kind: "hex";
|
|
369
|
+
r: string;
|
|
370
|
+
}, {
|
|
371
|
+
b: string;
|
|
372
|
+
g: string;
|
|
373
|
+
kind: "hex";
|
|
374
|
+
r: string;
|
|
375
|
+
}>>>;
|
|
376
|
+
buttonSelectColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
377
|
+
r: z.ZodEffects<z.ZodString, string, string>;
|
|
378
|
+
g: z.ZodEffects<z.ZodString, string, string>;
|
|
379
|
+
b: z.ZodEffects<z.ZodString, string, string>;
|
|
380
|
+
kind: z.ZodLiteral<"hex">;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
b: string;
|
|
383
|
+
g: string;
|
|
384
|
+
kind: "hex";
|
|
385
|
+
r: string;
|
|
386
|
+
}, {
|
|
387
|
+
b: string;
|
|
388
|
+
g: string;
|
|
389
|
+
kind: "hex";
|
|
390
|
+
r: string;
|
|
391
|
+
}>>>;
|
|
392
|
+
buttonSelectTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
393
|
+
r: z.ZodEffects<z.ZodString, string, string>;
|
|
394
|
+
g: z.ZodEffects<z.ZodString, string, string>;
|
|
395
|
+
b: z.ZodEffects<z.ZodString, string, string>;
|
|
396
|
+
kind: z.ZodLiteral<"hex">;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
b: string;
|
|
399
|
+
g: string;
|
|
400
|
+
kind: "hex";
|
|
401
|
+
r: string;
|
|
402
|
+
}, {
|
|
403
|
+
b: string;
|
|
404
|
+
g: string;
|
|
405
|
+
kind: "hex";
|
|
406
|
+
r: string;
|
|
407
|
+
}>>>;
|
|
408
|
+
buttonSelectBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
409
|
+
r: z.ZodEffects<z.ZodString, string, string>;
|
|
410
|
+
g: z.ZodEffects<z.ZodString, string, string>;
|
|
411
|
+
b: z.ZodEffects<z.ZodString, string, string>;
|
|
412
|
+
kind: z.ZodLiteral<"hex">;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
b: string;
|
|
415
|
+
g: string;
|
|
416
|
+
kind: "hex";
|
|
417
|
+
r: string;
|
|
418
|
+
}, {
|
|
419
|
+
b: string;
|
|
420
|
+
g: string;
|
|
421
|
+
kind: "hex";
|
|
422
|
+
r: string;
|
|
423
|
+
}>>>;
|
|
341
424
|
kind: z.ZodLiteral<"ChoiceCards">;
|
|
342
425
|
}, "strip", z.ZodTypeAny, {
|
|
343
426
|
kind: "ChoiceCards";
|
|
@@ -346,7 +429,37 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
346
429
|
g: string;
|
|
347
430
|
kind: "hex";
|
|
348
431
|
r: string;
|
|
349
|
-
} | undefined;
|
|
432
|
+
} | null | undefined;
|
|
433
|
+
buttonTextColour?: {
|
|
434
|
+
b: string;
|
|
435
|
+
g: string;
|
|
436
|
+
kind: "hex";
|
|
437
|
+
r: string;
|
|
438
|
+
} | null | undefined;
|
|
439
|
+
buttonBorderColour?: {
|
|
440
|
+
b: string;
|
|
441
|
+
g: string;
|
|
442
|
+
kind: "hex";
|
|
443
|
+
r: string;
|
|
444
|
+
} | null | undefined;
|
|
445
|
+
buttonSelectColour?: {
|
|
446
|
+
b: string;
|
|
447
|
+
g: string;
|
|
448
|
+
kind: "hex";
|
|
449
|
+
r: string;
|
|
450
|
+
} | null | undefined;
|
|
451
|
+
buttonSelectTextColour?: {
|
|
452
|
+
b: string;
|
|
453
|
+
g: string;
|
|
454
|
+
kind: "hex";
|
|
455
|
+
r: string;
|
|
456
|
+
} | null | undefined;
|
|
457
|
+
buttonSelectBorderColour?: {
|
|
458
|
+
b: string;
|
|
459
|
+
g: string;
|
|
460
|
+
kind: "hex";
|
|
461
|
+
r: string;
|
|
462
|
+
} | null | undefined;
|
|
350
463
|
}, {
|
|
351
464
|
kind: "ChoiceCards";
|
|
352
465
|
buttonColour?: {
|
|
@@ -354,8 +467,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
354
467
|
g: string;
|
|
355
468
|
kind: "hex";
|
|
356
469
|
r: string;
|
|
357
|
-
} | undefined;
|
|
358
|
-
|
|
470
|
+
} | null | undefined;
|
|
471
|
+
buttonTextColour?: {
|
|
472
|
+
b: string;
|
|
473
|
+
g: string;
|
|
474
|
+
kind: "hex";
|
|
475
|
+
r: string;
|
|
476
|
+
} | null | undefined;
|
|
477
|
+
buttonBorderColour?: {
|
|
478
|
+
b: string;
|
|
479
|
+
g: string;
|
|
480
|
+
kind: "hex";
|
|
481
|
+
r: string;
|
|
482
|
+
} | null | undefined;
|
|
483
|
+
buttonSelectColour?: {
|
|
484
|
+
b: string;
|
|
485
|
+
g: string;
|
|
486
|
+
kind: "hex";
|
|
487
|
+
r: string;
|
|
488
|
+
} | null | undefined;
|
|
489
|
+
buttonSelectTextColour?: {
|
|
490
|
+
b: string;
|
|
491
|
+
g: string;
|
|
492
|
+
kind: "hex";
|
|
493
|
+
r: string;
|
|
494
|
+
} | null | undefined;
|
|
495
|
+
buttonSelectBorderColour?: {
|
|
496
|
+
b: string;
|
|
497
|
+
g: string;
|
|
498
|
+
kind: "hex";
|
|
499
|
+
r: string;
|
|
500
|
+
} | null | undefined;
|
|
501
|
+
}>]>>>;
|
|
359
502
|
colours: z.ZodObject<{
|
|
360
503
|
basic: z.ZodObject<{
|
|
361
504
|
background: z.ZodObject<{
|
|
@@ -478,8 +621,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
478
621
|
g: string;
|
|
479
622
|
kind: "hex";
|
|
480
623
|
r: string;
|
|
481
|
-
} | undefined;
|
|
482
|
-
|
|
624
|
+
} | null | undefined;
|
|
625
|
+
buttonTextColour?: {
|
|
626
|
+
b: string;
|
|
627
|
+
g: string;
|
|
628
|
+
kind: "hex";
|
|
629
|
+
r: string;
|
|
630
|
+
} | null | undefined;
|
|
631
|
+
buttonBorderColour?: {
|
|
632
|
+
b: string;
|
|
633
|
+
g: string;
|
|
634
|
+
kind: "hex";
|
|
635
|
+
r: string;
|
|
636
|
+
} | null | undefined;
|
|
637
|
+
buttonSelectColour?: {
|
|
638
|
+
b: string;
|
|
639
|
+
g: string;
|
|
640
|
+
kind: "hex";
|
|
641
|
+
r: string;
|
|
642
|
+
} | null | undefined;
|
|
643
|
+
buttonSelectTextColour?: {
|
|
644
|
+
b: string;
|
|
645
|
+
g: string;
|
|
646
|
+
kind: "hex";
|
|
647
|
+
r: string;
|
|
648
|
+
} | null | undefined;
|
|
649
|
+
buttonSelectBorderColour?: {
|
|
650
|
+
b: string;
|
|
651
|
+
g: string;
|
|
652
|
+
kind: "hex";
|
|
653
|
+
r: string;
|
|
654
|
+
} | null | undefined;
|
|
655
|
+
} | null | undefined;
|
|
483
656
|
}, {
|
|
484
657
|
colours: {
|
|
485
658
|
basic: {
|
|
@@ -510,8 +683,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
510
683
|
g: string;
|
|
511
684
|
kind: "hex";
|
|
512
685
|
r: string;
|
|
513
|
-
} | undefined;
|
|
514
|
-
|
|
686
|
+
} | null | undefined;
|
|
687
|
+
buttonTextColour?: {
|
|
688
|
+
b: string;
|
|
689
|
+
g: string;
|
|
690
|
+
kind: "hex";
|
|
691
|
+
r: string;
|
|
692
|
+
} | null | undefined;
|
|
693
|
+
buttonBorderColour?: {
|
|
694
|
+
b: string;
|
|
695
|
+
g: string;
|
|
696
|
+
kind: "hex";
|
|
697
|
+
r: string;
|
|
698
|
+
} | null | undefined;
|
|
699
|
+
buttonSelectColour?: {
|
|
700
|
+
b: string;
|
|
701
|
+
g: string;
|
|
702
|
+
kind: "hex";
|
|
703
|
+
r: string;
|
|
704
|
+
} | null | undefined;
|
|
705
|
+
buttonSelectTextColour?: {
|
|
706
|
+
b: string;
|
|
707
|
+
g: string;
|
|
708
|
+
kind: "hex";
|
|
709
|
+
r: string;
|
|
710
|
+
} | null | undefined;
|
|
711
|
+
buttonSelectBorderColour?: {
|
|
712
|
+
b: string;
|
|
713
|
+
g: string;
|
|
714
|
+
kind: "hex";
|
|
715
|
+
r: string;
|
|
716
|
+
} | null | undefined;
|
|
717
|
+
} | null | undefined;
|
|
515
718
|
}>>>;
|
|
516
719
|
}, "strip", z.ZodTypeAny, {
|
|
517
720
|
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
@@ -538,13 +741,13 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
538
741
|
baseUrl: string;
|
|
539
742
|
} | null | undefined;
|
|
540
743
|
secondaryCta?: {
|
|
541
|
-
type: "
|
|
744
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
542
745
|
cta: {
|
|
543
746
|
text: string;
|
|
544
747
|
baseUrl: string;
|
|
545
748
|
};
|
|
546
749
|
} | {
|
|
547
|
-
type: "
|
|
750
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
548
751
|
} | null | undefined;
|
|
549
752
|
} | null | undefined;
|
|
550
753
|
mobileContent?: {
|
|
@@ -558,30 +761,31 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
558
761
|
baseUrl: string;
|
|
559
762
|
} | null | undefined;
|
|
560
763
|
secondaryCta?: {
|
|
561
|
-
type: "
|
|
764
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
562
765
|
cta: {
|
|
563
766
|
text: string;
|
|
564
767
|
baseUrl: string;
|
|
565
768
|
};
|
|
566
769
|
} | {
|
|
567
|
-
type: "
|
|
770
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
568
771
|
} | null | undefined;
|
|
569
772
|
} | null | undefined;
|
|
570
773
|
countryCode?: string | null | undefined;
|
|
571
774
|
isSupporter?: boolean | null | undefined;
|
|
572
775
|
tickerSettings?: {
|
|
776
|
+
name: "US" | "AU";
|
|
573
777
|
copy: {
|
|
574
778
|
countLabel: string;
|
|
575
779
|
goalReachedPrimary: string;
|
|
576
780
|
goalReachedSecondary: string;
|
|
577
781
|
};
|
|
578
|
-
endType: "
|
|
579
|
-
countType: "
|
|
782
|
+
endType: import("./shared").TickerEndType;
|
|
783
|
+
countType: import("./shared").TickerCountType;
|
|
580
784
|
currencySymbol: string;
|
|
581
785
|
tickerData?: {
|
|
582
786
|
total: number;
|
|
583
787
|
goal: number;
|
|
584
|
-
} |
|
|
788
|
+
} | undefined;
|
|
585
789
|
} | null | undefined;
|
|
586
790
|
submitComponentEvent?: any;
|
|
587
791
|
numArticles?: number | null | undefined;
|
|
@@ -618,8 +822,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
618
822
|
g: string;
|
|
619
823
|
kind: "hex";
|
|
620
824
|
r: string;
|
|
621
|
-
} | undefined;
|
|
622
|
-
|
|
825
|
+
} | null | undefined;
|
|
826
|
+
buttonTextColour?: {
|
|
827
|
+
b: string;
|
|
828
|
+
g: string;
|
|
829
|
+
kind: "hex";
|
|
830
|
+
r: string;
|
|
831
|
+
} | null | undefined;
|
|
832
|
+
buttonBorderColour?: {
|
|
833
|
+
b: string;
|
|
834
|
+
g: string;
|
|
835
|
+
kind: "hex";
|
|
836
|
+
r: string;
|
|
837
|
+
} | null | undefined;
|
|
838
|
+
buttonSelectColour?: {
|
|
839
|
+
b: string;
|
|
840
|
+
g: string;
|
|
841
|
+
kind: "hex";
|
|
842
|
+
r: string;
|
|
843
|
+
} | null | undefined;
|
|
844
|
+
buttonSelectTextColour?: {
|
|
845
|
+
b: string;
|
|
846
|
+
g: string;
|
|
847
|
+
kind: "hex";
|
|
848
|
+
r: string;
|
|
849
|
+
} | null | undefined;
|
|
850
|
+
buttonSelectBorderColour?: {
|
|
851
|
+
b: string;
|
|
852
|
+
g: string;
|
|
853
|
+
kind: "hex";
|
|
854
|
+
r: string;
|
|
855
|
+
} | null | undefined;
|
|
856
|
+
} | null | undefined;
|
|
623
857
|
} | null | undefined;
|
|
624
858
|
}, {
|
|
625
859
|
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
@@ -646,13 +880,13 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
646
880
|
baseUrl: string;
|
|
647
881
|
} | null | undefined;
|
|
648
882
|
secondaryCta?: {
|
|
649
|
-
type: "
|
|
883
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
650
884
|
cta: {
|
|
651
885
|
text: string;
|
|
652
886
|
baseUrl: string;
|
|
653
887
|
};
|
|
654
888
|
} | {
|
|
655
|
-
type: "
|
|
889
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
656
890
|
} | null | undefined;
|
|
657
891
|
} | null | undefined;
|
|
658
892
|
mobileContent?: {
|
|
@@ -666,30 +900,31 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
666
900
|
baseUrl: string;
|
|
667
901
|
} | null | undefined;
|
|
668
902
|
secondaryCta?: {
|
|
669
|
-
type: "
|
|
903
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
670
904
|
cta: {
|
|
671
905
|
text: string;
|
|
672
906
|
baseUrl: string;
|
|
673
907
|
};
|
|
674
908
|
} | {
|
|
675
|
-
type: "
|
|
909
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
676
910
|
} | null | undefined;
|
|
677
911
|
} | null | undefined;
|
|
678
912
|
countryCode?: string | null | undefined;
|
|
679
913
|
isSupporter?: boolean | null | undefined;
|
|
680
914
|
tickerSettings?: {
|
|
915
|
+
name: "US" | "AU";
|
|
681
916
|
copy: {
|
|
682
917
|
countLabel: string;
|
|
683
918
|
goalReachedPrimary: string;
|
|
684
919
|
goalReachedSecondary: string;
|
|
685
920
|
};
|
|
686
|
-
endType: "
|
|
687
|
-
countType: "
|
|
921
|
+
endType: import("./shared").TickerEndType;
|
|
922
|
+
countType: import("./shared").TickerCountType;
|
|
688
923
|
currencySymbol: string;
|
|
689
924
|
tickerData?: {
|
|
690
925
|
total: number;
|
|
691
926
|
goal: number;
|
|
692
|
-
} |
|
|
927
|
+
} | undefined;
|
|
693
928
|
} | null | undefined;
|
|
694
929
|
submitComponentEvent?: any;
|
|
695
930
|
numArticles?: number | null | undefined;
|
|
@@ -726,11 +961,38 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
726
961
|
g: string;
|
|
727
962
|
kind: "hex";
|
|
728
963
|
r: string;
|
|
729
|
-
} | undefined;
|
|
730
|
-
|
|
964
|
+
} | null | undefined;
|
|
965
|
+
buttonTextColour?: {
|
|
966
|
+
b: string;
|
|
967
|
+
g: string;
|
|
968
|
+
kind: "hex";
|
|
969
|
+
r: string;
|
|
970
|
+
} | null | undefined;
|
|
971
|
+
buttonBorderColour?: {
|
|
972
|
+
b: string;
|
|
973
|
+
g: string;
|
|
974
|
+
kind: "hex";
|
|
975
|
+
r: string;
|
|
976
|
+
} | null | undefined;
|
|
977
|
+
buttonSelectColour?: {
|
|
978
|
+
b: string;
|
|
979
|
+
g: string;
|
|
980
|
+
kind: "hex";
|
|
981
|
+
r: string;
|
|
982
|
+
} | null | undefined;
|
|
983
|
+
buttonSelectTextColour?: {
|
|
984
|
+
b: string;
|
|
985
|
+
g: string;
|
|
986
|
+
kind: "hex";
|
|
987
|
+
r: string;
|
|
988
|
+
} | null | undefined;
|
|
989
|
+
buttonSelectBorderColour?: {
|
|
990
|
+
b: string;
|
|
991
|
+
g: string;
|
|
992
|
+
kind: "hex";
|
|
993
|
+
r: string;
|
|
994
|
+
} | null | undefined;
|
|
995
|
+
} | null | undefined;
|
|
731
996
|
} | null | undefined;
|
|
732
997
|
}>;
|
|
733
|
-
export interface PuzzlesBannerProps extends Partial<BannerProps> {
|
|
734
|
-
tracking: Tracking;
|
|
735
|
-
}
|
|
736
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,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAA4B,MAAM,UAAU,CAAC;AAExE,eAAO,MAAM,mBAAmB,yDAAuD,CAAC;AAExF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,MAAM,WAAW,aAAa;IAC1B,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