@guardian/support-dotcom-components 2.7.0 → 2.9.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.
@@ -27,16 +27,16 @@ export declare const variantSchema: z.ZodObject<{
27
27
  currencySymbol: z.ZodString;
28
28
  copy: z.ZodObject<{
29
29
  countLabel: z.ZodString;
30
- goalReachedPrimary: z.ZodString;
31
- goalReachedSecondary: z.ZodString;
30
+ goalReachedPrimary: z.ZodOptional<z.ZodString>;
31
+ goalReachedSecondary: z.ZodOptional<z.ZodString>;
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  countLabel: string;
34
- goalReachedPrimary: string;
35
- goalReachedSecondary: string;
34
+ goalReachedPrimary?: string | undefined;
35
+ goalReachedSecondary?: string | undefined;
36
36
  }, {
37
37
  countLabel: string;
38
- goalReachedPrimary: string;
39
- goalReachedSecondary: string;
38
+ goalReachedPrimary?: string | undefined;
39
+ goalReachedSecondary?: string | undefined;
40
40
  }>;
41
41
  name: z.ZodEnum<["US", "AU"]>;
42
42
  tickerData: z.ZodOptional<z.ZodObject<{
@@ -49,31 +49,12 @@ export declare const variantSchema: z.ZodObject<{
49
49
  total: number;
50
50
  goal: number;
51
51
  }>>;
52
- tickerStylingSettings: z.ZodOptional<z.ZodObject<{
53
- headlineColour: z.ZodString;
54
- totalColour: z.ZodString;
55
- goalColour: z.ZodString;
56
- filledProgressColour: z.ZodString;
57
- progressBarBackgroundColour: z.ZodString;
58
- }, "strip", z.ZodTypeAny, {
59
- headlineColour: string;
60
- totalColour: string;
61
- goalColour: string;
62
- filledProgressColour: string;
63
- progressBarBackgroundColour: string;
64
- }, {
65
- headlineColour: string;
66
- totalColour: string;
67
- goalColour: string;
68
- filledProgressColour: string;
69
- progressBarBackgroundColour: string;
70
- }>>;
71
52
  }, "strip", z.ZodTypeAny, {
72
53
  name: "US" | "AU";
73
54
  copy: {
74
55
  countLabel: string;
75
- goalReachedPrimary: string;
76
- goalReachedSecondary: string;
56
+ goalReachedPrimary?: string | undefined;
57
+ goalReachedSecondary?: string | undefined;
77
58
  };
78
59
  endType: import("./shared").TickerEndType;
79
60
  countType: import("./shared").TickerCountType;
@@ -82,19 +63,12 @@ export declare const variantSchema: z.ZodObject<{
82
63
  total: number;
83
64
  goal: number;
84
65
  } | undefined;
85
- tickerStylingSettings?: {
86
- headlineColour: string;
87
- totalColour: string;
88
- goalColour: string;
89
- filledProgressColour: string;
90
- progressBarBackgroundColour: string;
91
- } | undefined;
92
66
  }, {
93
67
  name: "US" | "AU";
94
68
  copy: {
95
69
  countLabel: string;
96
- goalReachedPrimary: string;
97
- goalReachedSecondary: string;
70
+ goalReachedPrimary?: string | undefined;
71
+ goalReachedSecondary?: string | undefined;
98
72
  };
99
73
  endType: import("./shared").TickerEndType;
100
74
  countType: import("./shared").TickerCountType;
@@ -103,13 +77,6 @@ export declare const variantSchema: z.ZodObject<{
103
77
  total: number;
104
78
  goal: number;
105
79
  } | undefined;
106
- tickerStylingSettings?: {
107
- headlineColour: string;
108
- totalColour: string;
109
- goalColour: string;
110
- filledProgressColour: string;
111
- progressBarBackgroundColour: string;
112
- } | undefined;
113
80
  }>>;
114
81
  cta: z.ZodOptional<z.ZodObject<{
115
82
  text: z.ZodString;
@@ -414,8 +381,8 @@ export declare const variantSchema: z.ZodObject<{
414
381
  name: "US" | "AU";
415
382
  copy: {
416
383
  countLabel: string;
417
- goalReachedPrimary: string;
418
- goalReachedSecondary: string;
384
+ goalReachedPrimary?: string | undefined;
385
+ goalReachedSecondary?: string | undefined;
419
386
  };
420
387
  endType: import("./shared").TickerEndType;
421
388
  countType: import("./shared").TickerCountType;
@@ -424,13 +391,6 @@ export declare const variantSchema: z.ZodObject<{
424
391
  total: number;
425
392
  goal: number;
426
393
  } | undefined;
427
- tickerStylingSettings?: {
428
- headlineColour: string;
429
- totalColour: string;
430
- goalColour: string;
431
- filledProgressColour: string;
432
- progressBarBackgroundColour: string;
433
- } | undefined;
434
394
  } | undefined;
435
395
  cta?: {
436
396
  text: string;
@@ -521,8 +481,8 @@ export declare const variantSchema: z.ZodObject<{
521
481
  name: "US" | "AU";
522
482
  copy: {
523
483
  countLabel: string;
524
- goalReachedPrimary: string;
525
- goalReachedSecondary: string;
484
+ goalReachedPrimary?: string | undefined;
485
+ goalReachedSecondary?: string | undefined;
526
486
  };
527
487
  endType: import("./shared").TickerEndType;
528
488
  countType: import("./shared").TickerCountType;
@@ -531,13 +491,6 @@ export declare const variantSchema: z.ZodObject<{
531
491
  total: number;
532
492
  goal: number;
533
493
  } | undefined;
534
- tickerStylingSettings?: {
535
- headlineColour: string;
536
- totalColour: string;
537
- goalColour: string;
538
- filledProgressColour: string;
539
- progressBarBackgroundColour: string;
540
- } | undefined;
541
494
  } | undefined;
542
495
  cta?: {
543
496
  text: string;
@@ -632,16 +585,16 @@ export declare const epicPropsSchema: z.ZodObject<{
632
585
  currencySymbol: z.ZodString;
633
586
  copy: z.ZodObject<{
634
587
  countLabel: z.ZodString;
635
- goalReachedPrimary: z.ZodString;
636
- goalReachedSecondary: z.ZodString;
588
+ goalReachedPrimary: z.ZodOptional<z.ZodString>;
589
+ goalReachedSecondary: z.ZodOptional<z.ZodString>;
637
590
  }, "strip", z.ZodTypeAny, {
638
591
  countLabel: string;
639
- goalReachedPrimary: string;
640
- goalReachedSecondary: string;
592
+ goalReachedPrimary?: string | undefined;
593
+ goalReachedSecondary?: string | undefined;
641
594
  }, {
642
595
  countLabel: string;
643
- goalReachedPrimary: string;
644
- goalReachedSecondary: string;
596
+ goalReachedPrimary?: string | undefined;
597
+ goalReachedSecondary?: string | undefined;
645
598
  }>;
646
599
  name: z.ZodEnum<["US", "AU"]>;
647
600
  tickerData: z.ZodOptional<z.ZodObject<{
@@ -654,31 +607,12 @@ export declare const epicPropsSchema: z.ZodObject<{
654
607
  total: number;
655
608
  goal: number;
656
609
  }>>;
657
- tickerStylingSettings: z.ZodOptional<z.ZodObject<{
658
- headlineColour: z.ZodString;
659
- totalColour: z.ZodString;
660
- goalColour: z.ZodString;
661
- filledProgressColour: z.ZodString;
662
- progressBarBackgroundColour: z.ZodString;
663
- }, "strip", z.ZodTypeAny, {
664
- headlineColour: string;
665
- totalColour: string;
666
- goalColour: string;
667
- filledProgressColour: string;
668
- progressBarBackgroundColour: string;
669
- }, {
670
- headlineColour: string;
671
- totalColour: string;
672
- goalColour: string;
673
- filledProgressColour: string;
674
- progressBarBackgroundColour: string;
675
- }>>;
676
610
  }, "strip", z.ZodTypeAny, {
677
611
  name: "US" | "AU";
678
612
  copy: {
679
613
  countLabel: string;
680
- goalReachedPrimary: string;
681
- goalReachedSecondary: string;
614
+ goalReachedPrimary?: string | undefined;
615
+ goalReachedSecondary?: string | undefined;
682
616
  };
683
617
  endType: import("./shared").TickerEndType;
684
618
  countType: import("./shared").TickerCountType;
@@ -687,19 +621,12 @@ export declare const epicPropsSchema: z.ZodObject<{
687
621
  total: number;
688
622
  goal: number;
689
623
  } | undefined;
690
- tickerStylingSettings?: {
691
- headlineColour: string;
692
- totalColour: string;
693
- goalColour: string;
694
- filledProgressColour: string;
695
- progressBarBackgroundColour: string;
696
- } | undefined;
697
624
  }, {
698
625
  name: "US" | "AU";
699
626
  copy: {
700
627
  countLabel: string;
701
- goalReachedPrimary: string;
702
- goalReachedSecondary: string;
628
+ goalReachedPrimary?: string | undefined;
629
+ goalReachedSecondary?: string | undefined;
703
630
  };
704
631
  endType: import("./shared").TickerEndType;
705
632
  countType: import("./shared").TickerCountType;
@@ -708,13 +635,6 @@ export declare const epicPropsSchema: z.ZodObject<{
708
635
  total: number;
709
636
  goal: number;
710
637
  } | undefined;
711
- tickerStylingSettings?: {
712
- headlineColour: string;
713
- totalColour: string;
714
- goalColour: string;
715
- filledProgressColour: string;
716
- progressBarBackgroundColour: string;
717
- } | undefined;
718
638
  }>>;
719
639
  cta: z.ZodOptional<z.ZodObject<{
720
640
  text: z.ZodString;
@@ -1019,8 +939,8 @@ export declare const epicPropsSchema: z.ZodObject<{
1019
939
  name: "US" | "AU";
1020
940
  copy: {
1021
941
  countLabel: string;
1022
- goalReachedPrimary: string;
1023
- goalReachedSecondary: string;
942
+ goalReachedPrimary?: string | undefined;
943
+ goalReachedSecondary?: string | undefined;
1024
944
  };
1025
945
  endType: import("./shared").TickerEndType;
1026
946
  countType: import("./shared").TickerCountType;
@@ -1029,13 +949,6 @@ export declare const epicPropsSchema: z.ZodObject<{
1029
949
  total: number;
1030
950
  goal: number;
1031
951
  } | undefined;
1032
- tickerStylingSettings?: {
1033
- headlineColour: string;
1034
- totalColour: string;
1035
- goalColour: string;
1036
- filledProgressColour: string;
1037
- progressBarBackgroundColour: string;
1038
- } | undefined;
1039
952
  } | undefined;
1040
953
  cta?: {
1041
954
  text: string;
@@ -1126,8 +1039,8 @@ export declare const epicPropsSchema: z.ZodObject<{
1126
1039
  name: "US" | "AU";
1127
1040
  copy: {
1128
1041
  countLabel: string;
1129
- goalReachedPrimary: string;
1130
- goalReachedSecondary: string;
1042
+ goalReachedPrimary?: string | undefined;
1043
+ goalReachedSecondary?: string | undefined;
1131
1044
  };
1132
1045
  endType: import("./shared").TickerEndType;
1133
1046
  countType: import("./shared").TickerCountType;
@@ -1136,13 +1049,6 @@ export declare const epicPropsSchema: z.ZodObject<{
1136
1049
  total: number;
1137
1050
  goal: number;
1138
1051
  } | undefined;
1139
- tickerStylingSettings?: {
1140
- headlineColour: string;
1141
- totalColour: string;
1142
- goalColour: string;
1143
- filledProgressColour: string;
1144
- progressBarBackgroundColour: string;
1145
- } | undefined;
1146
1052
  } | undefined;
1147
1053
  cta?: {
1148
1054
  text: string;
@@ -1286,8 +1192,8 @@ export declare const epicPropsSchema: z.ZodObject<{
1286
1192
  name: "US" | "AU";
1287
1193
  copy: {
1288
1194
  countLabel: string;
1289
- goalReachedPrimary: string;
1290
- goalReachedSecondary: string;
1195
+ goalReachedPrimary?: string | undefined;
1196
+ goalReachedSecondary?: string | undefined;
1291
1197
  };
1292
1198
  endType: import("./shared").TickerEndType;
1293
1199
  countType: import("./shared").TickerCountType;
@@ -1296,13 +1202,6 @@ export declare const epicPropsSchema: z.ZodObject<{
1296
1202
  total: number;
1297
1203
  goal: number;
1298
1204
  } | undefined;
1299
- tickerStylingSettings?: {
1300
- headlineColour: string;
1301
- totalColour: string;
1302
- goalColour: string;
1303
- filledProgressColour: string;
1304
- progressBarBackgroundColour: string;
1305
- } | undefined;
1306
1205
  } | undefined;
1307
1206
  cta?: {
1308
1207
  text: string;
@@ -1418,8 +1317,8 @@ export declare const epicPropsSchema: z.ZodObject<{
1418
1317
  name: "US" | "AU";
1419
1318
  copy: {
1420
1319
  countLabel: string;
1421
- goalReachedPrimary: string;
1422
- goalReachedSecondary: string;
1320
+ goalReachedPrimary?: string | undefined;
1321
+ goalReachedSecondary?: string | undefined;
1423
1322
  };
1424
1323
  endType: import("./shared").TickerEndType;
1425
1324
  countType: import("./shared").TickerCountType;
@@ -1428,13 +1327,6 @@ export declare const epicPropsSchema: z.ZodObject<{
1428
1327
  total: number;
1429
1328
  goal: number;
1430
1329
  } | undefined;
1431
- tickerStylingSettings?: {
1432
- headlineColour: string;
1433
- totalColour: string;
1434
- goalColour: string;
1435
- filledProgressColour: string;
1436
- progressBarBackgroundColour: string;
1437
- } | undefined;
1438
1330
  } | undefined;
1439
1331
  cta?: {
1440
1332
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/props/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAMH,KAAK,EAEL,QAAQ,EAGR,aAAa,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,SAAU,SAAQ,GAAG,CAAC,mBAAmB;IAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAC"}
@@ -103,21 +103,21 @@ export declare enum TickerCountType {
103
103
  export declare const tickerCountTypeSchema: z.ZodNativeEnum<typeof TickerCountType>;
104
104
  interface TickerCopy {
105
105
  countLabel: string;
106
- goalReachedPrimary: string;
107
- goalReachedSecondary: string;
106
+ goalReachedPrimary?: string;
107
+ goalReachedSecondary?: string;
108
108
  }
109
109
  export declare const tickerCopySchema: z.ZodObject<{
110
110
  countLabel: z.ZodString;
111
- goalReachedPrimary: z.ZodString;
112
- goalReachedSecondary: z.ZodString;
111
+ goalReachedPrimary: z.ZodOptional<z.ZodString>;
112
+ goalReachedSecondary: z.ZodOptional<z.ZodString>;
113
113
  }, "strip", z.ZodTypeAny, {
114
114
  countLabel: string;
115
- goalReachedPrimary: string;
116
- goalReachedSecondary: string;
115
+ goalReachedPrimary?: string | undefined;
116
+ goalReachedSecondary?: string | undefined;
117
117
  }, {
118
118
  countLabel: string;
119
- goalReachedPrimary: string;
120
- goalReachedSecondary: string;
119
+ goalReachedPrimary?: string | undefined;
120
+ goalReachedSecondary?: string | undefined;
121
121
  }>;
122
122
  export interface TickerData {
123
123
  total: number;
@@ -134,32 +134,6 @@ export declare const tickerDataSchema: z.ZodObject<{
134
134
  goal: number;
135
135
  }>;
136
136
  export type TickerName = 'US' | 'AU';
137
- export interface TickerStylingSettings {
138
- headlineColour: string;
139
- totalColour: string;
140
- goalColour: string;
141
- filledProgressColour: string;
142
- progressBarBackgroundColour: string;
143
- }
144
- export declare const tickerStylingSettingsSchema: z.ZodObject<{
145
- headlineColour: z.ZodString;
146
- totalColour: z.ZodString;
147
- goalColour: z.ZodString;
148
- filledProgressColour: z.ZodString;
149
- progressBarBackgroundColour: z.ZodString;
150
- }, "strip", z.ZodTypeAny, {
151
- headlineColour: string;
152
- totalColour: string;
153
- goalColour: string;
154
- filledProgressColour: string;
155
- progressBarBackgroundColour: string;
156
- }, {
157
- headlineColour: string;
158
- totalColour: string;
159
- goalColour: string;
160
- filledProgressColour: string;
161
- progressBarBackgroundColour: string;
162
- }>;
163
137
  export interface TickerSettings {
164
138
  endType: TickerEndType;
165
139
  countType: TickerCountType;
@@ -167,7 +141,6 @@ export interface TickerSettings {
167
141
  copy: TickerCopy;
168
142
  name: TickerName;
169
143
  tickerData?: TickerData;
170
- tickerStylingSettings?: TickerStylingSettings;
171
144
  }
172
145
  export declare const tickerSettingsSchema: z.ZodObject<{
173
146
  endType: z.ZodNativeEnum<typeof TickerEndType>;
@@ -175,16 +148,16 @@ export declare const tickerSettingsSchema: z.ZodObject<{
175
148
  currencySymbol: z.ZodString;
176
149
  copy: z.ZodObject<{
177
150
  countLabel: z.ZodString;
178
- goalReachedPrimary: z.ZodString;
179
- goalReachedSecondary: z.ZodString;
151
+ goalReachedPrimary: z.ZodOptional<z.ZodString>;
152
+ goalReachedSecondary: z.ZodOptional<z.ZodString>;
180
153
  }, "strip", z.ZodTypeAny, {
181
154
  countLabel: string;
182
- goalReachedPrimary: string;
183
- goalReachedSecondary: string;
155
+ goalReachedPrimary?: string | undefined;
156
+ goalReachedSecondary?: string | undefined;
184
157
  }, {
185
158
  countLabel: string;
186
- goalReachedPrimary: string;
187
- goalReachedSecondary: string;
159
+ goalReachedPrimary?: string | undefined;
160
+ goalReachedSecondary?: string | undefined;
188
161
  }>;
189
162
  name: z.ZodEnum<["US", "AU"]>;
190
163
  tickerData: z.ZodOptional<z.ZodObject<{
@@ -197,31 +170,12 @@ export declare const tickerSettingsSchema: z.ZodObject<{
197
170
  total: number;
198
171
  goal: number;
199
172
  }>>;
200
- tickerStylingSettings: z.ZodOptional<z.ZodObject<{
201
- headlineColour: z.ZodString;
202
- totalColour: z.ZodString;
203
- goalColour: z.ZodString;
204
- filledProgressColour: z.ZodString;
205
- progressBarBackgroundColour: z.ZodString;
206
- }, "strip", z.ZodTypeAny, {
207
- headlineColour: string;
208
- totalColour: string;
209
- goalColour: string;
210
- filledProgressColour: string;
211
- progressBarBackgroundColour: string;
212
- }, {
213
- headlineColour: string;
214
- totalColour: string;
215
- goalColour: string;
216
- filledProgressColour: string;
217
- progressBarBackgroundColour: string;
218
- }>>;
219
173
  }, "strip", z.ZodTypeAny, {
220
174
  name: "US" | "AU";
221
175
  copy: {
222
176
  countLabel: string;
223
- goalReachedPrimary: string;
224
- goalReachedSecondary: string;
177
+ goalReachedPrimary?: string | undefined;
178
+ goalReachedSecondary?: string | undefined;
225
179
  };
226
180
  endType: TickerEndType;
227
181
  countType: TickerCountType;
@@ -230,19 +184,12 @@ export declare const tickerSettingsSchema: z.ZodObject<{
230
184
  total: number;
231
185
  goal: number;
232
186
  } | undefined;
233
- tickerStylingSettings?: {
234
- headlineColour: string;
235
- totalColour: string;
236
- goalColour: string;
237
- filledProgressColour: string;
238
- progressBarBackgroundColour: string;
239
- } | undefined;
240
187
  }, {
241
188
  name: "US" | "AU";
242
189
  copy: {
243
190
  countLabel: string;
244
- goalReachedPrimary: string;
245
- goalReachedSecondary: string;
191
+ goalReachedPrimary?: string | undefined;
192
+ goalReachedSecondary?: string | undefined;
246
193
  };
247
194
  endType: TickerEndType;
248
195
  countType: TickerCountType;
@@ -251,13 +198,6 @@ export declare const tickerSettingsSchema: z.ZodObject<{
251
198
  total: number;
252
199
  goal: number;
253
200
  } | undefined;
254
- tickerStylingSettings?: {
255
- headlineColour: string;
256
- totalColour: string;
257
- goalColour: string;
258
- filledProgressColour: string;
259
- progressBarBackgroundColour: string;
260
- } | undefined;
261
201
  }>;
262
202
  export declare const articleCountsSchema: z.ZodObject<{
263
203
  for52Weeks: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/props/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAA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;;EAIhC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/support-dotcom-components",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",