@guardian/support-dotcom-components 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/dotcom/src/requests.d.ts +0 -1
  2. package/dist/dotcom/src/requests.d.ts.map +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/shared/src/lib/geolocation.d.ts +4 -1
  6. package/dist/shared/src/lib/geolocation.d.ts.map +1 -1
  7. package/dist/shared/src/lib/tracking.d.ts +1 -1
  8. package/dist/shared/src/lib/tracking.d.ts.map +1 -1
  9. package/dist/shared/src/types/abTests/banner.d.ts +1 -9
  10. package/dist/shared/src/types/abTests/banner.d.ts.map +1 -1
  11. package/dist/shared/src/types/abTests/epic.d.ts +889 -52
  12. package/dist/shared/src/types/abTests/epic.d.ts.map +1 -1
  13. package/dist/shared/src/types/abTests/header.d.ts +444 -13
  14. package/dist/shared/src/types/abTests/header.d.ts.map +1 -1
  15. package/dist/shared/src/types/abTests/shared.d.ts +76 -5
  16. package/dist/shared/src/types/abTests/shared.d.ts.map +1 -1
  17. package/dist/shared/src/types/props/banner.d.ts +105 -103
  18. package/dist/shared/src/types/props/banner.d.ts.map +1 -1
  19. package/dist/shared/src/types/props/design.d.ts +41 -42
  20. package/dist/shared/src/types/props/design.d.ts.map +1 -1
  21. package/dist/shared/src/types/props/epic.d.ts +1026 -213
  22. package/dist/shared/src/types/props/epic.d.ts.map +1 -1
  23. package/dist/shared/src/types/props/header.d.ts +94 -35
  24. package/dist/shared/src/types/props/header.d.ts.map +1 -1
  25. package/dist/shared/src/types/props/shared.d.ts +76 -73
  26. package/dist/shared/src/types/props/shared.d.ts.map +1 -1
  27. package/dist/shared/src/types/purchaseInfo.d.ts +8 -2
  28. package/dist/shared/src/types/purchaseInfo.d.ts.map +1 -1
  29. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"epic.d.ts","sourceRoot":"","sources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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAC"}
@@ -9,6 +9,55 @@ export interface HeaderContent {
9
9
  secondaryCta?: Cta;
10
10
  benefits?: string[];
11
11
  }
12
+ export declare const headerContentSchema: z.ZodObject<{
13
+ heading: z.ZodString;
14
+ subheading: z.ZodString;
15
+ primaryCta: z.ZodOptional<z.ZodObject<{
16
+ text: z.ZodString;
17
+ baseUrl: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ text: string;
20
+ baseUrl: string;
21
+ }, {
22
+ text: string;
23
+ baseUrl: string;
24
+ }>>;
25
+ secondaryCta: z.ZodOptional<z.ZodObject<{
26
+ text: z.ZodString;
27
+ baseUrl: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ text: string;
30
+ baseUrl: string;
31
+ }, {
32
+ text: string;
33
+ baseUrl: string;
34
+ }>>;
35
+ benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ heading: string;
38
+ subheading: string;
39
+ primaryCta?: {
40
+ text: string;
41
+ baseUrl: string;
42
+ } | undefined;
43
+ secondaryCta?: {
44
+ text: string;
45
+ baseUrl: string;
46
+ } | undefined;
47
+ benefits?: string[] | undefined;
48
+ }, {
49
+ heading: string;
50
+ subheading: string;
51
+ primaryCta?: {
52
+ text: string;
53
+ baseUrl: string;
54
+ } | undefined;
55
+ secondaryCta?: {
56
+ text: string;
57
+ baseUrl: string;
58
+ } | undefined;
59
+ benefits?: string[] | undefined;
60
+ }>;
12
61
  export interface HeaderProps extends EmotionJSX.IntrinsicAttributes {
13
62
  content: HeaderContent;
14
63
  tracking: Tracking;
@@ -17,11 +66,11 @@ export interface HeaderProps extends EmotionJSX.IntrinsicAttributes {
17
66
  submitComponentEvent?: (componentEvent: OphanComponentEvent) => void;
18
67
  numArticles?: number;
19
68
  }
20
- export declare const headerSchema: z.ZodObject<{
69
+ export declare const headerPropsSchema: z.ZodObject<{
21
70
  content: z.ZodObject<{
22
71
  heading: z.ZodString;
23
72
  subheading: z.ZodString;
24
- primaryCta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
73
+ primaryCta: z.ZodOptional<z.ZodObject<{
25
74
  text: z.ZodString;
26
75
  baseUrl: z.ZodString;
27
76
  }, "strip", z.ZodTypeAny, {
@@ -30,8 +79,8 @@ export declare const headerSchema: z.ZodObject<{
30
79
  }, {
31
80
  text: string;
32
81
  baseUrl: string;
33
- }>>>;
34
- secondaryCta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
82
+ }>>;
83
+ secondaryCta: z.ZodOptional<z.ZodObject<{
35
84
  text: z.ZodString;
36
85
  baseUrl: z.ZodString;
37
86
  }, "strip", z.ZodTypeAny, {
@@ -40,29 +89,32 @@ export declare const headerSchema: z.ZodObject<{
40
89
  }, {
41
90
  text: string;
42
91
  baseUrl: string;
43
- }>>>;
92
+ }>>;
93
+ benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
94
  }, "strip", z.ZodTypeAny, {
45
95
  heading: string;
46
96
  subheading: string;
47
97
  primaryCta?: {
48
98
  text: string;
49
99
  baseUrl: string;
50
- } | null | undefined;
100
+ } | undefined;
51
101
  secondaryCta?: {
52
102
  text: string;
53
103
  baseUrl: string;
54
- } | null | undefined;
104
+ } | undefined;
105
+ benefits?: string[] | undefined;
55
106
  }, {
56
107
  heading: string;
57
108
  subheading: string;
58
109
  primaryCta?: {
59
110
  text: string;
60
111
  baseUrl: string;
61
- } | null | undefined;
112
+ } | undefined;
62
113
  secondaryCta?: {
63
114
  text: string;
64
115
  baseUrl: string;
65
- } | null | undefined;
116
+ } | undefined;
117
+ benefits?: string[] | undefined;
66
118
  }>;
67
119
  tracking: z.ZodObject<{
68
120
  abTestName: z.ZodString;
@@ -98,10 +150,10 @@ export declare const headerSchema: z.ZodObject<{
98
150
  products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
99
151
  labels?: string[] | null | undefined;
100
152
  }>;
101
- mobileContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
153
+ mobileContent: z.ZodOptional<z.ZodObject<{
102
154
  heading: z.ZodString;
103
155
  subheading: z.ZodString;
104
- primaryCta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
156
+ primaryCta: z.ZodOptional<z.ZodObject<{
105
157
  text: z.ZodString;
106
158
  baseUrl: z.ZodString;
107
159
  }, "strip", z.ZodTypeAny, {
@@ -110,8 +162,8 @@ export declare const headerSchema: z.ZodObject<{
110
162
  }, {
111
163
  text: string;
112
164
  baseUrl: string;
113
- }>>>;
114
- secondaryCta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
165
+ }>>;
166
+ secondaryCta: z.ZodOptional<z.ZodObject<{
115
167
  text: z.ZodString;
116
168
  baseUrl: z.ZodString;
117
169
  }, "strip", z.ZodTypeAny, {
@@ -120,33 +172,36 @@ export declare const headerSchema: z.ZodObject<{
120
172
  }, {
121
173
  text: string;
122
174
  baseUrl: string;
123
- }>>>;
175
+ }>>;
176
+ benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
177
  }, "strip", z.ZodTypeAny, {
125
178
  heading: string;
126
179
  subheading: string;
127
180
  primaryCta?: {
128
181
  text: string;
129
182
  baseUrl: string;
130
- } | null | undefined;
183
+ } | undefined;
131
184
  secondaryCta?: {
132
185
  text: string;
133
186
  baseUrl: string;
134
- } | null | undefined;
187
+ } | undefined;
188
+ benefits?: string[] | undefined;
135
189
  }, {
136
190
  heading: string;
137
191
  subheading: string;
138
192
  primaryCta?: {
139
193
  text: string;
140
194
  baseUrl: string;
141
- } | null | undefined;
195
+ } | undefined;
142
196
  secondaryCta?: {
143
197
  text: string;
144
198
  baseUrl: string;
145
- } | null | undefined;
146
- }>>>;
147
- countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ } | undefined;
200
+ benefits?: string[] | undefined;
201
+ }>>;
202
+ countryCode: z.ZodOptional<z.ZodString>;
148
203
  submitComponentEvent: z.ZodAny;
149
- numArticles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
204
+ numArticles: z.ZodOptional<z.ZodNumber>;
150
205
  }, "strip", z.ZodTypeAny, {
151
206
  content: {
152
207
  heading: string;
@@ -154,11 +209,12 @@ export declare const headerSchema: z.ZodObject<{
154
209
  primaryCta?: {
155
210
  text: string;
156
211
  baseUrl: string;
157
- } | null | undefined;
212
+ } | undefined;
158
213
  secondaryCta?: {
159
214
  text: string;
160
215
  baseUrl: string;
161
- } | null | undefined;
216
+ } | undefined;
217
+ benefits?: string[] | undefined;
162
218
  };
163
219
  tracking: {
164
220
  componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
@@ -178,15 +234,16 @@ export declare const headerSchema: z.ZodObject<{
178
234
  primaryCta?: {
179
235
  text: string;
180
236
  baseUrl: string;
181
- } | null | undefined;
237
+ } | undefined;
182
238
  secondaryCta?: {
183
239
  text: string;
184
240
  baseUrl: string;
185
- } | null | undefined;
186
- } | null | undefined;
187
- countryCode?: string | null | undefined;
241
+ } | undefined;
242
+ benefits?: string[] | undefined;
243
+ } | undefined;
244
+ countryCode?: string | undefined;
188
245
  submitComponentEvent?: any;
189
- numArticles?: number | null | undefined;
246
+ numArticles?: number | undefined;
190
247
  }, {
191
248
  content: {
192
249
  heading: string;
@@ -194,11 +251,12 @@ export declare const headerSchema: z.ZodObject<{
194
251
  primaryCta?: {
195
252
  text: string;
196
253
  baseUrl: string;
197
- } | null | undefined;
254
+ } | undefined;
198
255
  secondaryCta?: {
199
256
  text: string;
200
257
  baseUrl: string;
201
- } | null | undefined;
258
+ } | undefined;
259
+ benefits?: string[] | undefined;
202
260
  };
203
261
  tracking: {
204
262
  componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
@@ -218,14 +276,15 @@ export declare const headerSchema: z.ZodObject<{
218
276
  primaryCta?: {
219
277
  text: string;
220
278
  baseUrl: string;
221
- } | null | undefined;
279
+ } | undefined;
222
280
  secondaryCta?: {
223
281
  text: string;
224
282
  baseUrl: string;
225
- } | null | undefined;
226
- } | null | undefined;
227
- countryCode?: string | null | undefined;
283
+ } | undefined;
284
+ benefits?: string[] | undefined;
285
+ } | undefined;
286
+ countryCode?: string | undefined;
228
287
  submitComponentEvent?: any;
229
- numArticles?: number | null | undefined;
288
+ numArticles?: number | undefined;
230
289
  }>;
231
290
  //# sourceMappingURL=header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/props/header.ts"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AAU,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkB,GAAG,EAAa,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,UAAU,CAAC,mBAAmB;IAC/D,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,CAAC,cAAc,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC"}
@@ -20,13 +20,13 @@ export declare enum SecondaryCtaType {
20
20
  Custom = "CustomSecondaryCta",
21
21
  ContributionsReminder = "ContributionsReminderSecondaryCta"
22
22
  }
23
- export declare const secondaryCtaTypeSchema: z.ZodEnum<["CustomSecondaryCta", "ContributionsReminderSecondaryCta"]>;
23
+ export declare const secondaryCtaTypeSchema: z.ZodNativeEnum<typeof SecondaryCtaType>;
24
24
  interface CustomSecondaryCta {
25
25
  type: SecondaryCtaType.Custom;
26
26
  cta: Cta;
27
27
  }
28
28
  export declare const customSecondaryCtaSchema: z.ZodObject<{
29
- type: z.ZodLiteral<"CustomSecondaryCta">;
29
+ type: z.ZodLiteral<SecondaryCtaType.Custom>;
30
30
  cta: z.ZodObject<{
31
31
  text: z.ZodString;
32
32
  baseUrl: z.ZodString;
@@ -38,13 +38,13 @@ export declare const customSecondaryCtaSchema: z.ZodObject<{
38
38
  baseUrl: string;
39
39
  }>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- type: "CustomSecondaryCta";
41
+ type: SecondaryCtaType.Custom;
42
42
  cta: {
43
43
  text: string;
44
44
  baseUrl: string;
45
45
  };
46
46
  }, {
47
- type: "CustomSecondaryCta";
47
+ type: SecondaryCtaType.Custom;
48
48
  cta: {
49
49
  text: string;
50
50
  baseUrl: string;
@@ -54,15 +54,15 @@ interface ContributionsReminderSecondaryCta {
54
54
  type: SecondaryCtaType.ContributionsReminder;
55
55
  }
56
56
  export declare const contributionsReminderSecondaryCtaSchema: z.ZodObject<{
57
- type: z.ZodLiteral<"ContributionsReminderSecondaryCta">;
57
+ type: z.ZodLiteral<SecondaryCtaType.ContributionsReminder>;
58
58
  }, "strip", z.ZodTypeAny, {
59
- type: "ContributionsReminderSecondaryCta";
59
+ type: SecondaryCtaType.ContributionsReminder;
60
60
  }, {
61
- type: "ContributionsReminderSecondaryCta";
61
+ type: SecondaryCtaType.ContributionsReminder;
62
62
  }>;
63
63
  export type SecondaryCta = CustomSecondaryCta | ContributionsReminderSecondaryCta;
64
- export declare const secondaryCtaSchema: z.ZodUnion<[z.ZodObject<{
65
- type: z.ZodLiteral<"CustomSecondaryCta">;
64
+ export declare const secondaryCtaSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
65
+ type: z.ZodLiteral<SecondaryCtaType.Custom>;
66
66
  cta: z.ZodObject<{
67
67
  text: z.ZodString;
68
68
  baseUrl: z.ZodString;
@@ -74,33 +74,33 @@ export declare const secondaryCtaSchema: z.ZodUnion<[z.ZodObject<{
74
74
  baseUrl: string;
75
75
  }>;
76
76
  }, "strip", z.ZodTypeAny, {
77
- type: "CustomSecondaryCta";
77
+ type: SecondaryCtaType.Custom;
78
78
  cta: {
79
79
  text: string;
80
80
  baseUrl: string;
81
81
  };
82
82
  }, {
83
- type: "CustomSecondaryCta";
83
+ type: SecondaryCtaType.Custom;
84
84
  cta: {
85
85
  text: string;
86
86
  baseUrl: string;
87
87
  };
88
88
  }>, z.ZodObject<{
89
- type: z.ZodLiteral<"ContributionsReminderSecondaryCta">;
89
+ type: z.ZodLiteral<SecondaryCtaType.ContributionsReminder>;
90
90
  }, "strip", z.ZodTypeAny, {
91
- type: "ContributionsReminderSecondaryCta";
91
+ type: SecondaryCtaType.ContributionsReminder;
92
92
  }, {
93
- type: "ContributionsReminderSecondaryCta";
93
+ type: SecondaryCtaType.ContributionsReminder;
94
94
  }>]>;
95
95
  export declare enum TickerEndType {
96
96
  unlimited = "unlimited",
97
97
  hardstop = "hardstop"
98
98
  }
99
- export declare const tickerEndTypeSchema: z.ZodEnum<["unlimited", "hardstop"]>;
99
+ export declare const tickerEndTypeSchema: z.ZodNativeEnum<typeof TickerEndType>;
100
100
  export declare enum TickerCountType {
101
101
  money = "money"
102
102
  }
103
- export declare const tickerCountTypeSchema: z.ZodEnum<["money"]>;
103
+ export declare const tickerCountTypeSchema: z.ZodNativeEnum<typeof TickerCountType>;
104
104
  interface TickerCopy {
105
105
  countLabel: string;
106
106
  goalReachedPrimary: string;
@@ -143,8 +143,8 @@ export interface TickerSettings {
143
143
  tickerData?: TickerData;
144
144
  }
145
145
  export declare const tickerSettingsSchema: z.ZodObject<{
146
- endType: z.ZodEnum<["unlimited", "hardstop"]>;
147
- countType: z.ZodEnum<["money"]>;
146
+ endType: z.ZodNativeEnum<typeof TickerEndType>;
147
+ countType: z.ZodNativeEnum<typeof TickerCountType>;
148
148
  currencySymbol: z.ZodString;
149
149
  copy: z.ZodObject<{
150
150
  countLabel: z.ZodString;
@@ -159,7 +159,8 @@ export declare const tickerSettingsSchema: z.ZodObject<{
159
159
  goalReachedPrimary: string;
160
160
  goalReachedSecondary: string;
161
161
  }>;
162
- tickerData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
162
+ name: z.ZodEnum<["US", "AU"]>;
163
+ tickerData: z.ZodOptional<z.ZodObject<{
163
164
  total: z.ZodNumber;
164
165
  goal: z.ZodNumber;
165
166
  }, "strip", z.ZodTypeAny, {
@@ -168,33 +169,35 @@ export declare const tickerSettingsSchema: z.ZodObject<{
168
169
  }, {
169
170
  total: number;
170
171
  goal: number;
171
- }>>>;
172
+ }>>;
172
173
  }, "strip", z.ZodTypeAny, {
174
+ name: "US" | "AU";
173
175
  copy: {
174
176
  countLabel: string;
175
177
  goalReachedPrimary: string;
176
178
  goalReachedSecondary: string;
177
179
  };
178
- endType: "unlimited" | "hardstop";
179
- countType: "money";
180
+ endType: TickerEndType;
181
+ countType: TickerCountType;
180
182
  currencySymbol: string;
181
183
  tickerData?: {
182
184
  total: number;
183
185
  goal: number;
184
- } | null | undefined;
186
+ } | undefined;
185
187
  }, {
188
+ name: "US" | "AU";
186
189
  copy: {
187
190
  countLabel: string;
188
191
  goalReachedPrimary: string;
189
192
  goalReachedSecondary: string;
190
193
  };
191
- endType: "unlimited" | "hardstop";
192
- countType: "money";
194
+ endType: TickerEndType;
195
+ countType: TickerCountType;
193
196
  currencySymbol: string;
194
197
  tickerData?: {
195
198
  total: number;
196
199
  goal: number;
197
- } | null | undefined;
200
+ } | undefined;
198
201
  }>;
199
202
  export declare const ophanProductSchema: z.ZodEnum<["CONTRIBUTION", "MEMBERSHIP_SUPPORTER", "DIGITAL_SUBSCRIPTION", "PRINT_SUBSCRIPTION"]>;
200
203
  export declare const ophanComponentTypeSchema: z.ZodEnum<["ACQUISITIONS_EPIC", "ACQUISITIONS_ENGAGEMENT_BANNER", "ACQUISITIONS_SUBSCRIPTIONS_BANNER", "ACQUISITIONS_HEADER", "ACQUISITIONS_OTHER"]>;
@@ -244,28 +247,28 @@ export interface Image {
244
247
  }
245
248
  export declare const imageSchema: z.ZodObject<{
246
249
  mainUrl: z.ZodString;
247
- mobileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
- tabletUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
- desktopUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- leftColUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
- wideUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ mobileUrl: z.ZodOptional<z.ZodString>;
251
+ tabletUrl: z.ZodOptional<z.ZodString>;
252
+ desktopUrl: z.ZodOptional<z.ZodString>;
253
+ leftColUrl: z.ZodOptional<z.ZodString>;
254
+ wideUrl: z.ZodOptional<z.ZodString>;
252
255
  altText: z.ZodString;
253
256
  }, "strip", z.ZodTypeAny, {
254
257
  mainUrl: string;
255
258
  altText: string;
256
- mobileUrl?: string | null | undefined;
257
- tabletUrl?: string | null | undefined;
258
- desktopUrl?: string | null | undefined;
259
- leftColUrl?: string | null | undefined;
260
- wideUrl?: string | null | undefined;
259
+ mobileUrl?: string | undefined;
260
+ tabletUrl?: string | undefined;
261
+ desktopUrl?: string | undefined;
262
+ leftColUrl?: string | undefined;
263
+ wideUrl?: string | undefined;
261
264
  }, {
262
265
  mainUrl: string;
263
266
  altText: string;
264
- mobileUrl?: string | null | undefined;
265
- tabletUrl?: string | null | undefined;
266
- desktopUrl?: string | null | undefined;
267
- leftColUrl?: string | null | undefined;
268
- wideUrl?: string | null | undefined;
267
+ mobileUrl?: string | undefined;
268
+ tabletUrl?: string | undefined;
269
+ desktopUrl?: string | undefined;
270
+ leftColUrl?: string | undefined;
271
+ wideUrl?: string | undefined;
269
272
  }>;
270
273
  export interface BylineWithImage {
271
274
  name: string;
@@ -274,56 +277,56 @@ export interface BylineWithImage {
274
277
  }
275
278
  export declare const bylineWithImageSchema: z.ZodObject<{
276
279
  name: z.ZodString;
277
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
- headshot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
280
+ description: z.ZodOptional<z.ZodString>;
281
+ headshot: z.ZodOptional<z.ZodObject<{
279
282
  mainUrl: z.ZodString;
280
- mobileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
- tabletUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
- desktopUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
- leftColUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
- wideUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
+ mobileUrl: z.ZodOptional<z.ZodString>;
284
+ tabletUrl: z.ZodOptional<z.ZodString>;
285
+ desktopUrl: z.ZodOptional<z.ZodString>;
286
+ leftColUrl: z.ZodOptional<z.ZodString>;
287
+ wideUrl: z.ZodOptional<z.ZodString>;
285
288
  altText: z.ZodString;
286
289
  }, "strip", z.ZodTypeAny, {
287
290
  mainUrl: string;
288
291
  altText: string;
289
- mobileUrl?: string | null | undefined;
290
- tabletUrl?: string | null | undefined;
291
- desktopUrl?: string | null | undefined;
292
- leftColUrl?: string | null | undefined;
293
- wideUrl?: string | null | undefined;
292
+ mobileUrl?: string | undefined;
293
+ tabletUrl?: string | undefined;
294
+ desktopUrl?: string | undefined;
295
+ leftColUrl?: string | undefined;
296
+ wideUrl?: string | undefined;
294
297
  }, {
295
298
  mainUrl: string;
296
299
  altText: string;
297
- mobileUrl?: string | null | undefined;
298
- tabletUrl?: string | null | undefined;
299
- desktopUrl?: string | null | undefined;
300
- leftColUrl?: string | null | undefined;
301
- wideUrl?: string | null | undefined;
302
- }>>>;
300
+ mobileUrl?: string | undefined;
301
+ tabletUrl?: string | undefined;
302
+ desktopUrl?: string | undefined;
303
+ leftColUrl?: string | undefined;
304
+ wideUrl?: string | undefined;
305
+ }>>;
303
306
  }, "strip", z.ZodTypeAny, {
304
307
  name: string;
305
- description?: string | null | undefined;
308
+ description?: string | undefined;
306
309
  headshot?: {
307
310
  mainUrl: string;
308
311
  altText: string;
309
- mobileUrl?: string | null | undefined;
310
- tabletUrl?: string | null | undefined;
311
- desktopUrl?: string | null | undefined;
312
- leftColUrl?: string | null | undefined;
313
- wideUrl?: string | null | undefined;
314
- } | null | undefined;
312
+ mobileUrl?: string | undefined;
313
+ tabletUrl?: string | undefined;
314
+ desktopUrl?: string | undefined;
315
+ leftColUrl?: string | undefined;
316
+ wideUrl?: string | undefined;
317
+ } | undefined;
315
318
  }, {
316
319
  name: string;
317
- description?: string | null | undefined;
320
+ description?: string | undefined;
318
321
  headshot?: {
319
322
  mainUrl: string;
320
323
  altText: string;
321
- mobileUrl?: string | null | undefined;
322
- tabletUrl?: string | null | undefined;
323
- desktopUrl?: string | null | undefined;
324
- leftColUrl?: string | null | undefined;
325
- wideUrl?: string | null | undefined;
326
- } | null | undefined;
324
+ mobileUrl?: string | undefined;
325
+ tabletUrl?: string | undefined;
326
+ desktopUrl?: string | undefined;
327
+ leftColUrl?: string | undefined;
328
+ wideUrl?: string | undefined;
329
+ } | undefined;
327
330
  }>;
328
331
  export {};
329
332
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/props/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE5C,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,SAAS;;;;;;;;;EAGpB,CAAC;AAEH,oBAAY,gBAAgB;IACxB,MAAM,uBAAuB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E,aAAa,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,eAAO,MAAM,kBAAkB,mGAK7B,CAAC;AAEH,eAAO,MAAM,wBAAwB,sJAMnC,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC;AAEnD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzB,CAAC;AAEH,MAAM,WAAW,KAAK;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;EAQtB,CAAC;AAEH,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;CACpB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC"}
@@ -1,3 +1,9 @@
1
- export type purchaseInfoProduct = 'Contribution' | 'SupporterPlus' | 'GuardianWeekly' | 'Paper';
2
- export type purchaseInfoUser = 'new' | 'guest' | 'current';
1
+ import * as z from 'zod';
2
+ declare const purchaseInfoProduct: readonly ["Contribution", "SupporterPlus", "GuardianWeekly", "Paper"];
3
+ export type purchaseInfoProduct = (typeof purchaseInfoProduct)[number];
4
+ export declare const purchaseInfoProductSchema: z.ZodEnum<["Contribution", "SupporterPlus", "GuardianWeekly", "Paper"]>;
5
+ declare const purchaseInfoUser: readonly ["new", "guest", "current"];
6
+ export type purchaseInfoUser = (typeof purchaseInfoUser)[number];
7
+ export declare const purchaseInfoUserSchema: z.ZodEnum<["new", "guest", "current"]>;
8
+ export {};
3
9
  //# sourceMappingURL=purchaseInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"purchaseInfo.d.ts","sourceRoot":"","sources":["../../../../../shared/src/types/purchaseInfo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG,eAAe,GAAG,gBAAgB,GAAG,OAAO,CAAC;AAChG,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"purchaseInfo.d.ts","sourceRoot":"","sources":["../../../../../shared/src/types/purchaseInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,QAAA,MAAM,mBAAmB,uEAAwE,CAAC;AAClG,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,eAAO,MAAM,yBAAyB,yEAA8B,CAAC;AAErE,QAAA,MAAM,gBAAgB,sCAAuC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACjE,eAAO,MAAM,sBAAsB,wCAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/support-dotcom-components",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",