@guardian/support-dotcom-components 7.8.1 → 7.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,7 +100,7 @@ declare const choiceCardSchema: z.ZodObject<{
100
100
  kind: "hex";
101
101
  } | null | undefined;
102
102
  }>>>;
103
- destinationUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
104
104
  }, "strip", z.ZodTypeAny, {
105
105
  product: {
106
106
  supportTier: "Contribution";
@@ -132,7 +132,7 @@ declare const choiceCardSchema: z.ZodObject<{
132
132
  kind: "hex";
133
133
  } | null | undefined;
134
134
  } | null | undefined;
135
- destinationUrl?: string | null | undefined;
135
+ destination?: "LandingPage" | "Checkout" | null | undefined;
136
136
  }, {
137
137
  product: {
138
138
  supportTier: "Contribution";
@@ -164,7 +164,7 @@ declare const choiceCardSchema: z.ZodObject<{
164
164
  kind: "hex";
165
165
  } | null | undefined;
166
166
  } | null | undefined;
167
- destinationUrl?: string | null | undefined;
167
+ destination?: "LandingPage" | "Checkout" | null | undefined;
168
168
  }>;
169
169
  export type ChoiceCard = z.infer<typeof choiceCardSchema>;
170
170
  export declare const choiceCardsSettings: z.ZodObject<{
@@ -267,7 +267,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
267
267
  kind: "hex";
268
268
  } | null | undefined;
269
269
  }>>>;
270
- destinationUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
271
271
  }, "strip", z.ZodTypeAny, {
272
272
  product: {
273
273
  supportTier: "Contribution";
@@ -299,7 +299,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
299
299
  kind: "hex";
300
300
  } | null | undefined;
301
301
  } | null | undefined;
302
- destinationUrl?: string | null | undefined;
302
+ destination?: "LandingPage" | "Checkout" | null | undefined;
303
303
  }, {
304
304
  product: {
305
305
  supportTier: "Contribution";
@@ -331,7 +331,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
331
331
  kind: "hex";
332
332
  } | null | undefined;
333
333
  } | null | undefined;
334
- destinationUrl?: string | null | undefined;
334
+ destination?: "LandingPage" | "Checkout" | null | undefined;
335
335
  }>, "many">;
336
336
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
337
337
  product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
@@ -432,7 +432,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
432
432
  kind: "hex";
433
433
  } | null | undefined;
434
434
  }>>>;
435
- destinationUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
436
436
  }, "strip", z.ZodTypeAny, {
437
437
  product: {
438
438
  supportTier: "Contribution";
@@ -464,7 +464,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
464
464
  kind: "hex";
465
465
  } | null | undefined;
466
466
  } | null | undefined;
467
- destinationUrl?: string | null | undefined;
467
+ destination?: "LandingPage" | "Checkout" | null | undefined;
468
468
  }, {
469
469
  product: {
470
470
  supportTier: "Contribution";
@@ -496,7 +496,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
496
496
  kind: "hex";
497
497
  } | null | undefined;
498
498
  } | null | undefined;
499
- destinationUrl?: string | null | undefined;
499
+ destination?: "LandingPage" | "Checkout" | null | undefined;
500
500
  }>, "many">>>;
501
501
  }, "strip", z.ZodTypeAny, {
502
502
  choiceCards: {
@@ -530,7 +530,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
530
530
  kind: "hex";
531
531
  } | null | undefined;
532
532
  } | null | undefined;
533
- destinationUrl?: string | null | undefined;
533
+ destination?: "LandingPage" | "Checkout" | null | undefined;
534
534
  }[];
535
535
  mobileChoiceCards?: {
536
536
  product: {
@@ -563,7 +563,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
563
563
  kind: "hex";
564
564
  } | null | undefined;
565
565
  } | null | undefined;
566
- destinationUrl?: string | null | undefined;
566
+ destination?: "LandingPage" | "Checkout" | null | undefined;
567
567
  }[] | null | undefined;
568
568
  }, {
569
569
  choiceCards: {
@@ -597,7 +597,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
597
597
  kind: "hex";
598
598
  } | null | undefined;
599
599
  } | null | undefined;
600
- destinationUrl?: string | null | undefined;
600
+ destination?: "LandingPage" | "Checkout" | null | undefined;
601
601
  }[];
602
602
  mobileChoiceCards?: {
603
603
  product: {
@@ -630,7 +630,7 @@ export declare const choiceCardsSettings: z.ZodObject<{
630
630
  kind: "hex";
631
631
  } | null | undefined;
632
632
  } | null | undefined;
633
- destinationUrl?: string | null | undefined;
633
+ destination?: "LandingPage" | "Checkout" | null | undefined;
634
634
  }[] | null | undefined;
635
635
  }>;
636
636
  export type ChoiceCardsSettings = z.infer<typeof choiceCardsSettings>;
@@ -1 +1 @@
1
- {"version":3,"file":"choiceCards.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/props/choiceCards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,cAAc,+DAAuD,CAAC;AAC5E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAuBtD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEH,MAAM,MAAM,UAAU,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C;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -131,6 +131,54 @@ export declare const configurableDesignSchema: z.ZodObject<{
131
131
  g: string;
132
132
  kind: "hex";
133
133
  }>>>;
134
+ buttonSelectMarkerColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
135
+ r: z.ZodEffects<z.ZodString, string, string>;
136
+ g: z.ZodEffects<z.ZodString, string, string>;
137
+ b: z.ZodEffects<z.ZodString, string, string>;
138
+ kind: z.ZodLiteral<"hex">;
139
+ }, "strip", z.ZodTypeAny, {
140
+ r: string;
141
+ b: string;
142
+ g: string;
143
+ kind: "hex";
144
+ }, {
145
+ r: string;
146
+ b: string;
147
+ g: string;
148
+ kind: "hex";
149
+ }>>>;
150
+ pillTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
151
+ r: z.ZodEffects<z.ZodString, string, string>;
152
+ g: z.ZodEffects<z.ZodString, string, string>;
153
+ b: z.ZodEffects<z.ZodString, string, string>;
154
+ kind: z.ZodLiteral<"hex">;
155
+ }, "strip", z.ZodTypeAny, {
156
+ r: string;
157
+ b: string;
158
+ g: string;
159
+ kind: "hex";
160
+ }, {
161
+ r: string;
162
+ b: string;
163
+ g: string;
164
+ kind: "hex";
165
+ }>>>;
166
+ pillBackgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
+ r: z.ZodEffects<z.ZodString, string, string>;
168
+ g: z.ZodEffects<z.ZodString, string, string>;
169
+ b: z.ZodEffects<z.ZodString, string, string>;
170
+ kind: z.ZodLiteral<"hex">;
171
+ }, "strip", z.ZodTypeAny, {
172
+ r: string;
173
+ b: string;
174
+ g: string;
175
+ kind: "hex";
176
+ }, {
177
+ r: string;
178
+ b: string;
179
+ g: string;
180
+ kind: "hex";
181
+ }>>>;
134
182
  kind: z.ZodLiteral<"ChoiceCards">;
135
183
  }, "strip", z.ZodTypeAny, {
136
184
  kind: "ChoiceCards";
@@ -170,6 +218,24 @@ export declare const configurableDesignSchema: z.ZodObject<{
170
218
  g: string;
171
219
  kind: "hex";
172
220
  } | null | undefined;
221
+ buttonSelectMarkerColour?: {
222
+ r: string;
223
+ b: string;
224
+ g: string;
225
+ kind: "hex";
226
+ } | null | undefined;
227
+ pillTextColour?: {
228
+ r: string;
229
+ b: string;
230
+ g: string;
231
+ kind: "hex";
232
+ } | null | undefined;
233
+ pillBackgroundColour?: {
234
+ r: string;
235
+ b: string;
236
+ g: string;
237
+ kind: "hex";
238
+ } | null | undefined;
173
239
  }, {
174
240
  kind: "ChoiceCards";
175
241
  buttonColour?: {
@@ -208,6 +274,24 @@ export declare const configurableDesignSchema: z.ZodObject<{
208
274
  g: string;
209
275
  kind: "hex";
210
276
  } | null | undefined;
277
+ buttonSelectMarkerColour?: {
278
+ r: string;
279
+ b: string;
280
+ g: string;
281
+ kind: "hex";
282
+ } | null | undefined;
283
+ pillTextColour?: {
284
+ r: string;
285
+ b: string;
286
+ g: string;
287
+ kind: "hex";
288
+ } | null | undefined;
289
+ pillBackgroundColour?: {
290
+ r: string;
291
+ b: string;
292
+ g: string;
293
+ kind: "hex";
294
+ } | null | undefined;
211
295
  }>]>>>;
212
296
  colours: z.ZodObject<{
213
297
  basic: z.ZodObject<{
@@ -362,6 +446,24 @@ export declare const configurableDesignSchema: z.ZodObject<{
362
446
  g: string;
363
447
  kind: "hex";
364
448
  } | null | undefined;
449
+ buttonSelectMarkerColour?: {
450
+ r: string;
451
+ b: string;
452
+ g: string;
453
+ kind: "hex";
454
+ } | null | undefined;
455
+ pillTextColour?: {
456
+ r: string;
457
+ b: string;
458
+ g: string;
459
+ kind: "hex";
460
+ } | null | undefined;
461
+ pillBackgroundColour?: {
462
+ r: string;
463
+ b: string;
464
+ g: string;
465
+ kind: "hex";
466
+ } | null | undefined;
365
467
  } | null | undefined;
366
468
  }, {
367
469
  colours: {
@@ -424,6 +526,24 @@ export declare const configurableDesignSchema: z.ZodObject<{
424
526
  g: string;
425
527
  kind: "hex";
426
528
  } | null | undefined;
529
+ buttonSelectMarkerColour?: {
530
+ r: string;
531
+ b: string;
532
+ g: string;
533
+ kind: "hex";
534
+ } | null | undefined;
535
+ pillTextColour?: {
536
+ r: string;
537
+ b: string;
538
+ g: string;
539
+ kind: "hex";
540
+ } | null | undefined;
541
+ pillBackgroundColour?: {
542
+ r: string;
543
+ b: string;
544
+ g: string;
545
+ kind: "hex";
546
+ } | null | undefined;
427
547
  } | null | undefined;
428
548
  }>;
429
549
  type HexChar = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F';
@@ -444,10 +564,8 @@ export interface CtaDesign {
444
564
  default: CtaStateDesign;
445
565
  }
446
566
  interface TickerDesign {
447
- text: HexColour;
448
567
  filledProgress: HexColour;
449
568
  progressBarBackground: HexColour;
450
- goalMarker: HexColour;
451
569
  headlineColour: HexColour;
452
570
  totalColour: HexColour;
453
571
  goalColour: HexColour;
@@ -469,6 +587,9 @@ interface ChoiceCardsDesign {
469
587
  buttonSelectColour?: HexColour;
470
588
  buttonSelectTextColour?: HexColour;
471
589
  buttonSelectBorderColour?: HexColour;
590
+ buttonSelectMarkerColour?: HexColour;
591
+ pillTextColour?: HexColour;
592
+ pillBackgroundColour?: HexColour;
472
593
  }
473
594
  type Visual = BannerDesignImage | ChoiceCardsDesign;
474
595
  type FontSize = 'small' | 'medium' | 'large';
@@ -1 +1 @@
1
- {"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/props/design.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAK1B,CAAC;AAsBH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASnC,CAAC;AAEH,KAAK,OAAO,GACN,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GA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,CAAC;SACxB,CAAC;QACF,UAAU,EAAE,SAAS,CAAC;QACtB,YAAY,EAAE,SAAS,CAAC;QACxB,WAAW,EAAE,SAAS,CAAC;QACvB,MAAM,EAAE,YAAY,CAAC;KACxB,CAAC;CACL"}
@@ -337,7 +337,7 @@ export declare const variantSchema: z.ZodObject<{
337
337
  kind: "hex";
338
338
  } | null | undefined;
339
339
  }>>>;
340
- destinationUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
341
341
  }, "strip", z.ZodTypeAny, {
342
342
  product: {
343
343
  supportTier: "Contribution";
@@ -369,7 +369,7 @@ export declare const variantSchema: z.ZodObject<{
369
369
  kind: "hex";
370
370
  } | null | undefined;
371
371
  } | null | undefined;
372
- destinationUrl?: string | null | undefined;
372
+ destination?: "LandingPage" | "Checkout" | null | undefined;
373
373
  }, {
374
374
  product: {
375
375
  supportTier: "Contribution";
@@ -401,7 +401,7 @@ export declare const variantSchema: z.ZodObject<{
401
401
  kind: "hex";
402
402
  } | null | undefined;
403
403
  } | null | undefined;
404
- destinationUrl?: string | null | undefined;
404
+ destination?: "LandingPage" | "Checkout" | null | undefined;
405
405
  }>, "many">;
406
406
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
407
407
  product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
@@ -502,7 +502,7 @@ export declare const variantSchema: z.ZodObject<{
502
502
  kind: "hex";
503
503
  } | null | undefined;
504
504
  }>>>;
505
- destinationUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
506
506
  }, "strip", z.ZodTypeAny, {
507
507
  product: {
508
508
  supportTier: "Contribution";
@@ -534,7 +534,7 @@ export declare const variantSchema: z.ZodObject<{
534
534
  kind: "hex";
535
535
  } | null | undefined;
536
536
  } | null | undefined;
537
- destinationUrl?: string | null | undefined;
537
+ destination?: "LandingPage" | "Checkout" | null | undefined;
538
538
  }, {
539
539
  product: {
540
540
  supportTier: "Contribution";
@@ -566,7 +566,7 @@ export declare const variantSchema: z.ZodObject<{
566
566
  kind: "hex";
567
567
  } | null | undefined;
568
568
  } | null | undefined;
569
- destinationUrl?: string | null | undefined;
569
+ destination?: "LandingPage" | "Checkout" | null | undefined;
570
570
  }>, "many">>>;
571
571
  }, "strip", z.ZodTypeAny, {
572
572
  choiceCards: {
@@ -600,7 +600,7 @@ export declare const variantSchema: z.ZodObject<{
600
600
  kind: "hex";
601
601
  } | null | undefined;
602
602
  } | null | undefined;
603
- destinationUrl?: string | null | undefined;
603
+ destination?: "LandingPage" | "Checkout" | null | undefined;
604
604
  }[];
605
605
  mobileChoiceCards?: {
606
606
  product: {
@@ -633,7 +633,7 @@ export declare const variantSchema: z.ZodObject<{
633
633
  kind: "hex";
634
634
  } | null | undefined;
635
635
  } | null | undefined;
636
- destinationUrl?: string | null | undefined;
636
+ destination?: "LandingPage" | "Checkout" | null | undefined;
637
637
  }[] | null | undefined;
638
638
  }, {
639
639
  choiceCards: {
@@ -667,7 +667,7 @@ export declare const variantSchema: z.ZodObject<{
667
667
  kind: "hex";
668
668
  } | null | undefined;
669
669
  } | null | undefined;
670
- destinationUrl?: string | null | undefined;
670
+ destination?: "LandingPage" | "Checkout" | null | undefined;
671
671
  }[];
672
672
  mobileChoiceCards?: {
673
673
  product: {
@@ -700,7 +700,7 @@ export declare const variantSchema: z.ZodObject<{
700
700
  kind: "hex";
701
701
  } | null | undefined;
702
702
  } | null | undefined;
703
- destinationUrl?: string | null | undefined;
703
+ destination?: "LandingPage" | "Checkout" | null | undefined;
704
704
  }[] | null | undefined;
705
705
  }>>>;
706
706
  choiceCardAmounts: z.ZodOptional<z.ZodObject<{
@@ -933,7 +933,7 @@ export declare const variantSchema: z.ZodObject<{
933
933
  kind: "hex";
934
934
  } | null | undefined;
935
935
  } | null | undefined;
936
- destinationUrl?: string | null | undefined;
936
+ destination?: "LandingPage" | "Checkout" | null | undefined;
937
937
  }[];
938
938
  mobileChoiceCards?: {
939
939
  product: {
@@ -966,7 +966,7 @@ export declare const variantSchema: z.ZodObject<{
966
966
  kind: "hex";
967
967
  } | null | undefined;
968
968
  } | null | undefined;
969
- destinationUrl?: string | null | undefined;
969
+ destination?: "LandingPage" | "Checkout" | null | undefined;
970
970
  }[] | null | undefined;
971
971
  } | null | undefined;
972
972
  choiceCardAmounts?: {
@@ -1099,7 +1099,7 @@ export declare const variantSchema: z.ZodObject<{
1099
1099
  kind: "hex";
1100
1100
  } | null | undefined;
1101
1101
  } | null | undefined;
1102
- destinationUrl?: string | null | undefined;
1102
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1103
1103
  }[];
1104
1104
  mobileChoiceCards?: {
1105
1105
  product: {
@@ -1132,7 +1132,7 @@ export declare const variantSchema: z.ZodObject<{
1132
1132
  kind: "hex";
1133
1133
  } | null | undefined;
1134
1134
  } | null | undefined;
1135
- destinationUrl?: string | null | undefined;
1135
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1136
1136
  }[] | null | undefined;
1137
1137
  } | null | undefined;
1138
1138
  choiceCardAmounts?: {
@@ -1483,7 +1483,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1483
1483
  kind: "hex";
1484
1484
  } | null | undefined;
1485
1485
  }>>>;
1486
- destinationUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1486
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1487
1487
  }, "strip", z.ZodTypeAny, {
1488
1488
  product: {
1489
1489
  supportTier: "Contribution";
@@ -1515,7 +1515,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1515
1515
  kind: "hex";
1516
1516
  } | null | undefined;
1517
1517
  } | null | undefined;
1518
- destinationUrl?: string | null | undefined;
1518
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1519
1519
  }, {
1520
1520
  product: {
1521
1521
  supportTier: "Contribution";
@@ -1547,7 +1547,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1547
1547
  kind: "hex";
1548
1548
  } | null | undefined;
1549
1549
  } | null | undefined;
1550
- destinationUrl?: string | null | undefined;
1550
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1551
1551
  }>, "many">;
1552
1552
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1553
1553
  product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
@@ -1648,7 +1648,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1648
1648
  kind: "hex";
1649
1649
  } | null | undefined;
1650
1650
  }>>>;
1651
- destinationUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1651
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1652
1652
  }, "strip", z.ZodTypeAny, {
1653
1653
  product: {
1654
1654
  supportTier: "Contribution";
@@ -1680,7 +1680,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1680
1680
  kind: "hex";
1681
1681
  } | null | undefined;
1682
1682
  } | null | undefined;
1683
- destinationUrl?: string | null | undefined;
1683
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1684
1684
  }, {
1685
1685
  product: {
1686
1686
  supportTier: "Contribution";
@@ -1712,7 +1712,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1712
1712
  kind: "hex";
1713
1713
  } | null | undefined;
1714
1714
  } | null | undefined;
1715
- destinationUrl?: string | null | undefined;
1715
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1716
1716
  }>, "many">>>;
1717
1717
  }, "strip", z.ZodTypeAny, {
1718
1718
  choiceCards: {
@@ -1746,7 +1746,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1746
1746
  kind: "hex";
1747
1747
  } | null | undefined;
1748
1748
  } | null | undefined;
1749
- destinationUrl?: string | null | undefined;
1749
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1750
1750
  }[];
1751
1751
  mobileChoiceCards?: {
1752
1752
  product: {
@@ -1779,7 +1779,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1779
1779
  kind: "hex";
1780
1780
  } | null | undefined;
1781
1781
  } | null | undefined;
1782
- destinationUrl?: string | null | undefined;
1782
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1783
1783
  }[] | null | undefined;
1784
1784
  }, {
1785
1785
  choiceCards: {
@@ -1813,7 +1813,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1813
1813
  kind: "hex";
1814
1814
  } | null | undefined;
1815
1815
  } | null | undefined;
1816
- destinationUrl?: string | null | undefined;
1816
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1817
1817
  }[];
1818
1818
  mobileChoiceCards?: {
1819
1819
  product: {
@@ -1846,7 +1846,7 @@ export declare const epicPropsSchema: z.ZodObject<{
1846
1846
  kind: "hex";
1847
1847
  } | null | undefined;
1848
1848
  } | null | undefined;
1849
- destinationUrl?: string | null | undefined;
1849
+ destination?: "LandingPage" | "Checkout" | null | undefined;
1850
1850
  }[] | null | undefined;
1851
1851
  }>>>;
1852
1852
  choiceCardAmounts: z.ZodOptional<z.ZodObject<{
@@ -2079,7 +2079,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2079
2079
  kind: "hex";
2080
2080
  } | null | undefined;
2081
2081
  } | null | undefined;
2082
- destinationUrl?: string | null | undefined;
2082
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2083
2083
  }[];
2084
2084
  mobileChoiceCards?: {
2085
2085
  product: {
@@ -2112,7 +2112,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2112
2112
  kind: "hex";
2113
2113
  } | null | undefined;
2114
2114
  } | null | undefined;
2115
- destinationUrl?: string | null | undefined;
2115
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2116
2116
  }[] | null | undefined;
2117
2117
  } | null | undefined;
2118
2118
  choiceCardAmounts?: {
@@ -2245,7 +2245,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2245
2245
  kind: "hex";
2246
2246
  } | null | undefined;
2247
2247
  } | null | undefined;
2248
- destinationUrl?: string | null | undefined;
2248
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2249
2249
  }[];
2250
2250
  mobileChoiceCards?: {
2251
2251
  product: {
@@ -2278,7 +2278,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2278
2278
  kind: "hex";
2279
2279
  } | null | undefined;
2280
2280
  } | null | undefined;
2281
- destinationUrl?: string | null | undefined;
2281
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2282
2282
  }[] | null | undefined;
2283
2283
  } | null | undefined;
2284
2284
  choiceCardAmounts?: {
@@ -2461,7 +2461,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2461
2461
  kind: "hex";
2462
2462
  } | null | undefined;
2463
2463
  } | null | undefined;
2464
- destinationUrl?: string | null | undefined;
2464
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2465
2465
  }[];
2466
2466
  mobileChoiceCards?: {
2467
2467
  product: {
@@ -2494,7 +2494,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2494
2494
  kind: "hex";
2495
2495
  } | null | undefined;
2496
2496
  } | null | undefined;
2497
- destinationUrl?: string | null | undefined;
2497
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2498
2498
  }[] | null | undefined;
2499
2499
  } | null | undefined;
2500
2500
  choiceCardAmounts?: {
@@ -2651,7 +2651,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2651
2651
  kind: "hex";
2652
2652
  } | null | undefined;
2653
2653
  } | null | undefined;
2654
- destinationUrl?: string | null | undefined;
2654
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2655
2655
  }[];
2656
2656
  mobileChoiceCards?: {
2657
2657
  product: {
@@ -2684,7 +2684,7 @@ export declare const epicPropsSchema: z.ZodObject<{
2684
2684
  kind: "hex";
2685
2685
  } | null | undefined;
2686
2686
  } | null | undefined;
2687
- destinationUrl?: string | null | undefined;
2687
+ destination?: "LandingPage" | "Checkout" | null | undefined;
2688
2688
  }[] | null | undefined;
2689
2689
  } | null | undefined;
2690
2690
  choiceCardAmounts?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/support-dotcom-components",
3
- "version": "7.8.1",
3
+ "version": "7.10.0",
4
4
  "description": "Service to serve Reader Revenue components to dotcom",
5
5
  "repository": "github:guardian/support-dotcom-components",
6
6
  "author": "The Guardian",
@@ -1,16 +0,0 @@
1
- export type ReminderPlatform = 'WEB' | 'AMP';
2
- export type ReminderComponent = 'EPIC' | 'BANNER';
3
- export type ReminderStage = 'PRE' | 'POST';
4
- interface BaseSignupRequest {
5
- email: string;
6
- reminderPlatform: ReminderPlatform;
7
- reminderComponent: ReminderComponent;
8
- reminderStage: ReminderStage;
9
- country?: string;
10
- reminderOption?: string;
11
- }
12
- export interface OneOffSignupRequest extends BaseSignupRequest {
13
- reminderPeriod: string;
14
- }
15
- export {};
16
- //# sourceMappingURL=reminders.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reminders.d.ts","sourceRoot":"","sources":["../../../src/shared/types/reminders.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,KAAK,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3C,UAAU,iBAAiB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC1D,cAAc,EAAE,MAAM,CAAC;CAC1B"}