@guardian/support-dotcom-components 1.1.2 → 2.0.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.
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/src/types/abTests/banner.d.ts +971 -29
- package/dist/shared/src/types/abTests/banner.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/epic.d.ts +36 -15
- package/dist/shared/src/types/abTests/epic.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/header.d.ts +444 -13
- package/dist/shared/src/types/abTests/header.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/shared.d.ts +29 -7
- package/dist/shared/src/types/abTests/shared.d.ts.map +1 -1
- package/dist/shared/src/types/props/banner.d.ts +166 -80
- package/dist/shared/src/types/props/banner.d.ts.map +1 -1
- package/dist/shared/src/types/props/epic.d.ts +49 -12
- package/dist/shared/src/types/props/epic.d.ts.map +1 -1
- package/dist/shared/src/types/props/header.d.ts +98 -39
- package/dist/shared/src/types/props/header.d.ts.map +1 -1
- package/dist/shared/src/types/props/shared.d.ts +2 -2
- package/dist/shared/src/types/purchaseInfo.d.ts +8 -2
- package/dist/shared/src/types/purchaseInfo.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,9 +4,10 @@ import { purchaseInfoProduct, purchaseInfoUser } from '../purchaseInfo';
|
|
|
4
4
|
declare const TestStatus: readonly ["Live", "Draft", "Archived"];
|
|
5
5
|
export type TestStatus = (typeof TestStatus)[number];
|
|
6
6
|
export declare const testStatusSchema: z.ZodEnum<["Live", "Draft", "Archived"]>;
|
|
7
|
-
declare const DeviceType: readonly ["Mobile", "Desktop", "All"];
|
|
7
|
+
declare const DeviceType: readonly ["Mobile", "Desktop", "All", "iOS", "Android"];
|
|
8
8
|
export type DeviceType = (typeof DeviceType)[number];
|
|
9
|
-
export
|
|
9
|
+
export type UserDeviceType = Exclude<DeviceType, 'Mobile' | 'All'>;
|
|
10
|
+
export declare const deviceTypeSchema: z.ZodEnum<["Mobile", "Desktop", "All", "iOS", "Android"]>;
|
|
10
11
|
declare const SignedInStatus: readonly ["SignedIn", "SignedOut", "All"];
|
|
11
12
|
export type SignedInStatus = (typeof SignedInStatus)[number];
|
|
12
13
|
export declare const signedInStatusSchema: z.ZodEnum<["SignedIn", "SignedOut", "All"]>;
|
|
@@ -36,7 +37,7 @@ export declare const testSchema: z.ZodObject<{
|
|
|
36
37
|
offset: number;
|
|
37
38
|
proportion: number;
|
|
38
39
|
}>>;
|
|
39
|
-
deviceType: z.ZodOptional<z.ZodEnum<["Mobile", "Desktop", "All"]>>;
|
|
40
|
+
deviceType: z.ZodOptional<z.ZodEnum<["Mobile", "Desktop", "All", "iOS", "Android"]>>;
|
|
40
41
|
signedInStatus: z.ZodOptional<z.ZodEnum<["SignedIn", "SignedOut", "All"]>>;
|
|
41
42
|
}, "strip", z.ZodTypeAny, {
|
|
42
43
|
priority: number;
|
|
@@ -46,7 +47,7 @@ export declare const testSchema: z.ZodObject<{
|
|
|
46
47
|
offset: number;
|
|
47
48
|
proportion: number;
|
|
48
49
|
} | undefined;
|
|
49
|
-
deviceType?: "Mobile" | "Desktop" | "All" | undefined;
|
|
50
|
+
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
50
51
|
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
51
52
|
}, {
|
|
52
53
|
priority: number;
|
|
@@ -56,7 +57,7 @@ export declare const testSchema: z.ZodObject<{
|
|
|
56
57
|
offset: number;
|
|
57
58
|
proportion: number;
|
|
58
59
|
} | undefined;
|
|
59
|
-
deviceType?: "Mobile" | "Desktop" | "All" | undefined;
|
|
60
|
+
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
60
61
|
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
61
62
|
}>;
|
|
62
63
|
export interface ControlProportionSettings {
|
|
@@ -110,11 +111,32 @@ export interface PurchaseInfoTest {
|
|
|
110
111
|
userType: purchaseInfoUser[];
|
|
111
112
|
product: purchaseInfoProduct[];
|
|
112
113
|
}
|
|
113
|
-
export
|
|
114
|
+
export declare const purchaseInfoTestSchema: z.ZodObject<{
|
|
115
|
+
userType: z.ZodArray<z.ZodEnum<["new", "guest", "current"]>, "many">;
|
|
116
|
+
product: z.ZodArray<z.ZodEnum<["Contribution", "SupporterPlus", "GuardianWeekly", "Paper"]>, "many">;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
119
|
+
userType: ("new" | "guest" | "current")[];
|
|
120
|
+
}, {
|
|
121
|
+
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
122
|
+
userType: ("new" | "guest" | "current")[];
|
|
123
|
+
}>;
|
|
124
|
+
export declare const pageContextTargetingSchema: z.ZodObject<{
|
|
125
|
+
tagIds: z.ZodArray<z.ZodString, "many">;
|
|
126
|
+
sectionIds: z.ZodArray<z.ZodString, "many">;
|
|
127
|
+
excludedTagIds: z.ZodArray<z.ZodString, "many">;
|
|
128
|
+
excludedSectionIds: z.ZodArray<z.ZodString, "many">;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
130
|
tagIds: string[];
|
|
115
131
|
sectionIds: string[];
|
|
116
132
|
excludedTagIds: string[];
|
|
117
133
|
excludedSectionIds: string[];
|
|
118
|
-
}
|
|
134
|
+
}, {
|
|
135
|
+
tagIds: string[];
|
|
136
|
+
sectionIds: string[];
|
|
137
|
+
excludedTagIds: string[];
|
|
138
|
+
excludedSectionIds: string[];
|
|
139
|
+
}>;
|
|
140
|
+
export type PageContextTargeting = z.infer<typeof pageContextTargetingSchema>;
|
|
119
141
|
export {};
|
|
120
142
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EACH,mBAAmB,EAEnB,gBAAgB,EAEnB,MAAM,iBAAiB,CAAC;AAEzB,QAAA,MAAM,UAAU,wCAAyC,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,gBAAgB,0CAAqB,CAAC;AAEnD,QAAA,MAAM,UAAU,yDAA0D,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACrD,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,EAAE,QAAQ,GAAG,KAAK,CAAC,CAAC;AAEnE,eAAO,MAAM,gBAAgB,2DAAqB,CAAC;AAEnD,QAAA,MAAM,cAAc,2CAA4C,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,eAAO,MAAM,oBAAoB,6CAAyB,CAAC;AAE3D,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,IAAI,CAAC,CAAC,SAAS,OAAO;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,yBAAy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M,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -16,6 +16,92 @@ export interface BannerContent {
|
|
|
16
16
|
cta?: Cta;
|
|
17
17
|
secondaryCta?: SecondaryCta;
|
|
18
18
|
}
|
|
19
|
+
export declare const bannerContentSchema: z.ZodObject<{
|
|
20
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
21
|
+
messageText: z.ZodOptional<z.ZodString>;
|
|
22
|
+
paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23
|
+
mobileMessageText: z.ZodOptional<z.ZodString>;
|
|
24
|
+
highlightedText: z.ZodOptional<z.ZodString>;
|
|
25
|
+
cta: 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
|
+
secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
|
|
37
|
+
cta: z.ZodObject<{
|
|
38
|
+
text: z.ZodString;
|
|
39
|
+
baseUrl: z.ZodString;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
text: string;
|
|
42
|
+
baseUrl: string;
|
|
43
|
+
}, {
|
|
44
|
+
text: string;
|
|
45
|
+
baseUrl: string;
|
|
46
|
+
}>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
49
|
+
cta: {
|
|
50
|
+
text: string;
|
|
51
|
+
baseUrl: string;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
55
|
+
cta: {
|
|
56
|
+
text: string;
|
|
57
|
+
baseUrl: string;
|
|
58
|
+
};
|
|
59
|
+
}>, z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
63
|
+
}, {
|
|
64
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
65
|
+
}>]>>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
heading?: string | undefined;
|
|
68
|
+
messageText?: string | undefined;
|
|
69
|
+
paragraphs?: string[] | undefined;
|
|
70
|
+
mobileMessageText?: string | undefined;
|
|
71
|
+
highlightedText?: string | undefined;
|
|
72
|
+
cta?: {
|
|
73
|
+
text: string;
|
|
74
|
+
baseUrl: string;
|
|
75
|
+
} | undefined;
|
|
76
|
+
secondaryCta?: {
|
|
77
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
78
|
+
cta: {
|
|
79
|
+
text: string;
|
|
80
|
+
baseUrl: string;
|
|
81
|
+
};
|
|
82
|
+
} | {
|
|
83
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
84
|
+
} | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
heading?: string | undefined;
|
|
87
|
+
messageText?: string | undefined;
|
|
88
|
+
paragraphs?: string[] | undefined;
|
|
89
|
+
mobileMessageText?: string | undefined;
|
|
90
|
+
highlightedText?: string | undefined;
|
|
91
|
+
cta?: {
|
|
92
|
+
text: string;
|
|
93
|
+
baseUrl: string;
|
|
94
|
+
} | undefined;
|
|
95
|
+
secondaryCta?: {
|
|
96
|
+
type: import("./shared").SecondaryCtaType.Custom;
|
|
97
|
+
cta: {
|
|
98
|
+
text: string;
|
|
99
|
+
baseUrl: string;
|
|
100
|
+
};
|
|
101
|
+
} | {
|
|
102
|
+
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
103
|
+
} | undefined;
|
|
104
|
+
}>;
|
|
19
105
|
export interface BannerProps extends EmotionJSX.IntrinsicAttributes {
|
|
20
106
|
tracking: Tracking;
|
|
21
107
|
bannerChannel: BannerChannel;
|
|
@@ -46,10 +132,10 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
46
132
|
referrerUrl: z.ZodString;
|
|
47
133
|
clientName: z.ZodString;
|
|
48
134
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
50
135
|
abTestName: string;
|
|
51
136
|
abTestVariant: string;
|
|
52
137
|
campaignCode: string;
|
|
138
|
+
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
53
139
|
ophanPageId: string;
|
|
54
140
|
platformId: string;
|
|
55
141
|
referrerUrl: string;
|
|
@@ -57,10 +143,10 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
57
143
|
products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
|
|
58
144
|
labels?: string[] | null | undefined;
|
|
59
145
|
}, {
|
|
60
|
-
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
61
146
|
abTestName: string;
|
|
62
147
|
abTestVariant: string;
|
|
63
148
|
campaignCode: string;
|
|
149
|
+
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
64
150
|
ophanPageId: string;
|
|
65
151
|
platformId: string;
|
|
66
152
|
referrerUrl: string;
|
|
@@ -70,12 +156,12 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
70
156
|
}>;
|
|
71
157
|
bannerChannel: z.ZodEnum<["contributions", "subscriptions", "signIn"]>;
|
|
72
158
|
content: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
73
|
-
heading: z.ZodOptional<z.
|
|
74
|
-
messageText: z.ZodOptional<z.
|
|
75
|
-
paragraphs: z.ZodOptional<z.
|
|
76
|
-
mobileMessageText: z.ZodOptional<z.
|
|
77
|
-
highlightedText: z.ZodOptional<z.
|
|
78
|
-
cta: z.ZodOptional<z.
|
|
159
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
160
|
+
messageText: z.ZodOptional<z.ZodString>;
|
|
161
|
+
paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
162
|
+
mobileMessageText: z.ZodOptional<z.ZodString>;
|
|
163
|
+
highlightedText: z.ZodOptional<z.ZodString>;
|
|
164
|
+
cta: z.ZodOptional<z.ZodObject<{
|
|
79
165
|
text: z.ZodString;
|
|
80
166
|
baseUrl: z.ZodString;
|
|
81
167
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -84,8 +170,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
84
170
|
}, {
|
|
85
171
|
text: string;
|
|
86
172
|
baseUrl: string;
|
|
87
|
-
}
|
|
88
|
-
secondaryCta: z.ZodOptional<z.
|
|
173
|
+
}>>;
|
|
174
|
+
secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
89
175
|
type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
|
|
90
176
|
cta: z.ZodObject<{
|
|
91
177
|
text: z.ZodString;
|
|
@@ -115,17 +201,17 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
115
201
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
116
202
|
}, {
|
|
117
203
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
118
|
-
}>]
|
|
204
|
+
}>]>>;
|
|
119
205
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
heading?: string |
|
|
121
|
-
messageText?: string |
|
|
122
|
-
paragraphs?: string[] |
|
|
123
|
-
mobileMessageText?: string |
|
|
124
|
-
highlightedText?: string |
|
|
206
|
+
heading?: string | undefined;
|
|
207
|
+
messageText?: string | undefined;
|
|
208
|
+
paragraphs?: string[] | undefined;
|
|
209
|
+
mobileMessageText?: string | undefined;
|
|
210
|
+
highlightedText?: string | undefined;
|
|
125
211
|
cta?: {
|
|
126
212
|
text: string;
|
|
127
213
|
baseUrl: string;
|
|
128
|
-
} |
|
|
214
|
+
} | undefined;
|
|
129
215
|
secondaryCta?: {
|
|
130
216
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
131
217
|
cta: {
|
|
@@ -134,17 +220,17 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
134
220
|
};
|
|
135
221
|
} | {
|
|
136
222
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
137
|
-
} |
|
|
223
|
+
} | undefined;
|
|
138
224
|
}, {
|
|
139
|
-
heading?: string |
|
|
140
|
-
messageText?: string |
|
|
141
|
-
paragraphs?: string[] |
|
|
142
|
-
mobileMessageText?: string |
|
|
143
|
-
highlightedText?: string |
|
|
225
|
+
heading?: string | undefined;
|
|
226
|
+
messageText?: string | undefined;
|
|
227
|
+
paragraphs?: string[] | undefined;
|
|
228
|
+
mobileMessageText?: string | undefined;
|
|
229
|
+
highlightedText?: string | undefined;
|
|
144
230
|
cta?: {
|
|
145
231
|
text: string;
|
|
146
232
|
baseUrl: string;
|
|
147
|
-
} |
|
|
233
|
+
} | undefined;
|
|
148
234
|
secondaryCta?: {
|
|
149
235
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
150
236
|
cta: {
|
|
@@ -153,15 +239,15 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
153
239
|
};
|
|
154
240
|
} | {
|
|
155
241
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
156
|
-
} |
|
|
242
|
+
} | undefined;
|
|
157
243
|
}>>>;
|
|
158
244
|
mobileContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
159
|
-
heading: z.ZodOptional<z.
|
|
160
|
-
messageText: z.ZodOptional<z.
|
|
161
|
-
paragraphs: z.ZodOptional<z.
|
|
162
|
-
mobileMessageText: z.ZodOptional<z.
|
|
163
|
-
highlightedText: z.ZodOptional<z.
|
|
164
|
-
cta: z.ZodOptional<z.
|
|
245
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
246
|
+
messageText: z.ZodOptional<z.ZodString>;
|
|
247
|
+
paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
248
|
+
mobileMessageText: z.ZodOptional<z.ZodString>;
|
|
249
|
+
highlightedText: z.ZodOptional<z.ZodString>;
|
|
250
|
+
cta: z.ZodOptional<z.ZodObject<{
|
|
165
251
|
text: z.ZodString;
|
|
166
252
|
baseUrl: z.ZodString;
|
|
167
253
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -170,8 +256,8 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
170
256
|
}, {
|
|
171
257
|
text: string;
|
|
172
258
|
baseUrl: string;
|
|
173
|
-
}
|
|
174
|
-
secondaryCta: z.ZodOptional<z.
|
|
259
|
+
}>>;
|
|
260
|
+
secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
175
261
|
type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
|
|
176
262
|
cta: z.ZodObject<{
|
|
177
263
|
text: z.ZodString;
|
|
@@ -201,17 +287,17 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
201
287
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
202
288
|
}, {
|
|
203
289
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
204
|
-
}>]
|
|
290
|
+
}>]>>;
|
|
205
291
|
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
heading?: string |
|
|
207
|
-
messageText?: string |
|
|
208
|
-
paragraphs?: string[] |
|
|
209
|
-
mobileMessageText?: string |
|
|
210
|
-
highlightedText?: string |
|
|
292
|
+
heading?: string | undefined;
|
|
293
|
+
messageText?: string | undefined;
|
|
294
|
+
paragraphs?: string[] | undefined;
|
|
295
|
+
mobileMessageText?: string | undefined;
|
|
296
|
+
highlightedText?: string | undefined;
|
|
211
297
|
cta?: {
|
|
212
298
|
text: string;
|
|
213
299
|
baseUrl: string;
|
|
214
|
-
} |
|
|
300
|
+
} | undefined;
|
|
215
301
|
secondaryCta?: {
|
|
216
302
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
217
303
|
cta: {
|
|
@@ -220,17 +306,17 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
220
306
|
};
|
|
221
307
|
} | {
|
|
222
308
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
223
|
-
} |
|
|
309
|
+
} | undefined;
|
|
224
310
|
}, {
|
|
225
|
-
heading?: string |
|
|
226
|
-
messageText?: string |
|
|
227
|
-
paragraphs?: string[] |
|
|
228
|
-
mobileMessageText?: string |
|
|
229
|
-
highlightedText?: string |
|
|
311
|
+
heading?: string | undefined;
|
|
312
|
+
messageText?: string | undefined;
|
|
313
|
+
paragraphs?: string[] | undefined;
|
|
314
|
+
mobileMessageText?: string | undefined;
|
|
315
|
+
highlightedText?: string | undefined;
|
|
230
316
|
cta?: {
|
|
231
317
|
text: string;
|
|
232
318
|
baseUrl: string;
|
|
233
|
-
} |
|
|
319
|
+
} | undefined;
|
|
234
320
|
secondaryCta?: {
|
|
235
321
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
236
322
|
cta: {
|
|
@@ -239,7 +325,7 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
239
325
|
};
|
|
240
326
|
} | {
|
|
241
327
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
242
|
-
} |
|
|
328
|
+
} | undefined;
|
|
243
329
|
}>>>;
|
|
244
330
|
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
331
|
isSupporter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -717,12 +803,11 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
717
803
|
} | null | undefined;
|
|
718
804
|
}>>>;
|
|
719
805
|
}, "strip", z.ZodTypeAny, {
|
|
720
|
-
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
721
806
|
tracking: {
|
|
722
|
-
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
723
807
|
abTestName: string;
|
|
724
808
|
abTestVariant: string;
|
|
725
809
|
campaignCode: string;
|
|
810
|
+
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
726
811
|
ophanPageId: string;
|
|
727
812
|
platformId: string;
|
|
728
813
|
referrerUrl: string;
|
|
@@ -730,16 +815,17 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
730
815
|
products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
|
|
731
816
|
labels?: string[] | null | undefined;
|
|
732
817
|
};
|
|
818
|
+
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
733
819
|
content?: {
|
|
734
|
-
heading?: string |
|
|
735
|
-
messageText?: string |
|
|
736
|
-
paragraphs?: string[] |
|
|
737
|
-
mobileMessageText?: string |
|
|
738
|
-
highlightedText?: string |
|
|
820
|
+
heading?: string | undefined;
|
|
821
|
+
messageText?: string | undefined;
|
|
822
|
+
paragraphs?: string[] | undefined;
|
|
823
|
+
mobileMessageText?: string | undefined;
|
|
824
|
+
highlightedText?: string | undefined;
|
|
739
825
|
cta?: {
|
|
740
826
|
text: string;
|
|
741
827
|
baseUrl: string;
|
|
742
|
-
} |
|
|
828
|
+
} | undefined;
|
|
743
829
|
secondaryCta?: {
|
|
744
830
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
745
831
|
cta: {
|
|
@@ -748,18 +834,18 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
748
834
|
};
|
|
749
835
|
} | {
|
|
750
836
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
751
|
-
} |
|
|
837
|
+
} | undefined;
|
|
752
838
|
} | null | undefined;
|
|
753
839
|
mobileContent?: {
|
|
754
|
-
heading?: string |
|
|
755
|
-
messageText?: string |
|
|
756
|
-
paragraphs?: string[] |
|
|
757
|
-
mobileMessageText?: string |
|
|
758
|
-
highlightedText?: string |
|
|
840
|
+
heading?: string | undefined;
|
|
841
|
+
messageText?: string | undefined;
|
|
842
|
+
paragraphs?: string[] | undefined;
|
|
843
|
+
mobileMessageText?: string | undefined;
|
|
844
|
+
highlightedText?: string | undefined;
|
|
759
845
|
cta?: {
|
|
760
846
|
text: string;
|
|
761
847
|
baseUrl: string;
|
|
762
|
-
} |
|
|
848
|
+
} | undefined;
|
|
763
849
|
secondaryCta?: {
|
|
764
850
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
765
851
|
cta: {
|
|
@@ -768,7 +854,7 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
768
854
|
};
|
|
769
855
|
} | {
|
|
770
856
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
771
|
-
} |
|
|
857
|
+
} | undefined;
|
|
772
858
|
} | null | undefined;
|
|
773
859
|
countryCode?: string | null | undefined;
|
|
774
860
|
isSupporter?: boolean | null | undefined;
|
|
@@ -856,12 +942,11 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
856
942
|
} | null | undefined;
|
|
857
943
|
} | null | undefined;
|
|
858
944
|
}, {
|
|
859
|
-
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
860
945
|
tracking: {
|
|
861
|
-
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
862
946
|
abTestName: string;
|
|
863
947
|
abTestVariant: string;
|
|
864
948
|
campaignCode: string;
|
|
949
|
+
componentType: "ACQUISITIONS_EPIC" | "ACQUISITIONS_ENGAGEMENT_BANNER" | "ACQUISITIONS_HEADER" | "ACQUISITIONS_OTHER" | "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
|
|
865
950
|
ophanPageId: string;
|
|
866
951
|
platformId: string;
|
|
867
952
|
referrerUrl: string;
|
|
@@ -869,16 +954,17 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
869
954
|
products?: ("CONTRIBUTION" | "MEMBERSHIP_SUPPORTER" | "DIGITAL_SUBSCRIPTION" | "PRINT_SUBSCRIPTION")[] | null | undefined;
|
|
870
955
|
labels?: string[] | null | undefined;
|
|
871
956
|
};
|
|
957
|
+
bannerChannel: "contributions" | "subscriptions" | "signIn";
|
|
872
958
|
content?: {
|
|
873
|
-
heading?: string |
|
|
874
|
-
messageText?: string |
|
|
875
|
-
paragraphs?: string[] |
|
|
876
|
-
mobileMessageText?: string |
|
|
877
|
-
highlightedText?: string |
|
|
959
|
+
heading?: string | undefined;
|
|
960
|
+
messageText?: string | undefined;
|
|
961
|
+
paragraphs?: string[] | undefined;
|
|
962
|
+
mobileMessageText?: string | undefined;
|
|
963
|
+
highlightedText?: string | undefined;
|
|
878
964
|
cta?: {
|
|
879
965
|
text: string;
|
|
880
966
|
baseUrl: string;
|
|
881
|
-
} |
|
|
967
|
+
} | undefined;
|
|
882
968
|
secondaryCta?: {
|
|
883
969
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
884
970
|
cta: {
|
|
@@ -887,18 +973,18 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
887
973
|
};
|
|
888
974
|
} | {
|
|
889
975
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
890
|
-
} |
|
|
976
|
+
} | undefined;
|
|
891
977
|
} | null | undefined;
|
|
892
978
|
mobileContent?: {
|
|
893
|
-
heading?: string |
|
|
894
|
-
messageText?: string |
|
|
895
|
-
paragraphs?: string[] |
|
|
896
|
-
mobileMessageText?: string |
|
|
897
|
-
highlightedText?: string |
|
|
979
|
+
heading?: string | undefined;
|
|
980
|
+
messageText?: string | undefined;
|
|
981
|
+
paragraphs?: string[] | undefined;
|
|
982
|
+
mobileMessageText?: string | undefined;
|
|
983
|
+
highlightedText?: string | undefined;
|
|
898
984
|
cta?: {
|
|
899
985
|
text: string;
|
|
900
986
|
baseUrl: string;
|
|
901
|
-
} |
|
|
987
|
+
} | undefined;
|
|
902
988
|
secondaryCta?: {
|
|
903
989
|
type: import("./shared").SecondaryCtaType.Custom;
|
|
904
990
|
cta: {
|
|
@@ -907,7 +993,7 @@ export declare const bannerSchema: z.ZodObject<{
|
|
|
907
993
|
};
|
|
908
994
|
} | {
|
|
909
995
|
type: import("./shared").SecondaryCtaType.ContributionsReminder;
|
|
910
|
-
} |
|
|
996
|
+
} | undefined;
|
|
911
997
|
} | null | undefined;
|
|
912
998
|
countryCode?: string | null | undefined;
|
|
913
999
|
isSupporter?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/props/banner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAA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