@guardian/support-dotcom-components 0.0.0-beta-20251028082458

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 (71) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +6 -0
  3. package/dist/dotcom/index.d.ts +14 -0
  4. package/dist/dotcom/index.d.ts.map +1 -0
  5. package/dist/dotcom/requests.d.ts +18 -0
  6. package/dist/dotcom/requests.d.ts.map +1 -0
  7. package/dist/dotcom/types.d.ts +6 -0
  8. package/dist/dotcom/types.d.ts.map +1 -0
  9. package/dist/index.esm.js +1 -0
  10. package/dist/index.js +1 -0
  11. package/dist/shared/lib/geolocation.d.ts +44 -0
  12. package/dist/shared/lib/geolocation.d.ts.map +1 -0
  13. package/dist/shared/lib/history.d.ts +18 -0
  14. package/dist/shared/lib/history.d.ts.map +1 -0
  15. package/dist/shared/lib/index.d.ts +6 -0
  16. package/dist/shared/lib/index.d.ts.map +1 -0
  17. package/dist/shared/lib/placeholders.d.ts +12 -0
  18. package/dist/shared/lib/placeholders.d.ts.map +1 -0
  19. package/dist/shared/lib/reminderFields.d.ts +9 -0
  20. package/dist/shared/lib/reminderFields.d.ts.map +1 -0
  21. package/dist/shared/lib/viewLog.d.ts +17 -0
  22. package/dist/shared/lib/viewLog.d.ts.map +1 -0
  23. package/dist/shared/types/abTests/banner.d.ts +424 -0
  24. package/dist/shared/types/abTests/banner.d.ts.map +1 -0
  25. package/dist/shared/types/abTests/epic.d.ts +345 -0
  26. package/dist/shared/types/abTests/epic.d.ts.map +1 -0
  27. package/dist/shared/types/abTests/gutter.d.ts +146 -0
  28. package/dist/shared/types/abTests/gutter.d.ts.map +1 -0
  29. package/dist/shared/types/abTests/header.d.ts +173 -0
  30. package/dist/shared/types/abTests/header.d.ts.map +1 -0
  31. package/dist/shared/types/abTests/index.d.ts +6 -0
  32. package/dist/shared/types/abTests/index.d.ts.map +1 -0
  33. package/dist/shared/types/abTests/shared.d.ts +186 -0
  34. package/dist/shared/types/abTests/shared.d.ts.map +1 -0
  35. package/dist/shared/types/index.d.ts +6 -0
  36. package/dist/shared/types/index.d.ts.map +1 -0
  37. package/dist/shared/types/prices.d.ts +10 -0
  38. package/dist/shared/types/prices.d.ts.map +1 -0
  39. package/dist/shared/types/props/banner.d.ts +313 -0
  40. package/dist/shared/types/props/banner.d.ts.map +1 -0
  41. package/dist/shared/types/props/choiceCards.d.ts +108 -0
  42. package/dist/shared/types/props/choiceCards.d.ts.map +1 -0
  43. package/dist/shared/types/props/design.d.ts +164 -0
  44. package/dist/shared/types/props/design.d.ts.map +1 -0
  45. package/dist/shared/types/props/epic.d.ts +429 -0
  46. package/dist/shared/types/props/epic.d.ts.map +1 -0
  47. package/dist/shared/types/props/gutter.d.ts +75 -0
  48. package/dist/shared/types/props/gutter.d.ts.map +1 -0
  49. package/dist/shared/types/props/header.d.ts +87 -0
  50. package/dist/shared/types/props/header.d.ts.map +1 -0
  51. package/dist/shared/types/props/index.d.ts +7 -0
  52. package/dist/shared/types/props/index.d.ts.map +1 -0
  53. package/dist/shared/types/props/shared.d.ts +180 -0
  54. package/dist/shared/types/props/shared.d.ts.map +1 -0
  55. package/dist/shared/types/purchaseInfo.d.ts +18 -0
  56. package/dist/shared/types/purchaseInfo.d.ts.map +1 -0
  57. package/dist/shared/types/reminders.d.ts +16 -0
  58. package/dist/shared/types/reminders.d.ts.map +1 -0
  59. package/dist/shared/types/targeting/banner.d.ts +28 -0
  60. package/dist/shared/types/targeting/banner.d.ts.map +1 -0
  61. package/dist/shared/types/targeting/epic.d.ts +30 -0
  62. package/dist/shared/types/targeting/epic.d.ts.map +1 -0
  63. package/dist/shared/types/targeting/gutter.d.ts +13 -0
  64. package/dist/shared/types/targeting/gutter.d.ts.map +1 -0
  65. package/dist/shared/types/targeting/header.d.ts +13 -0
  66. package/dist/shared/types/targeting/header.d.ts.map +1 -0
  67. package/dist/shared/types/targeting/index.d.ts +6 -0
  68. package/dist/shared/types/targeting/index.d.ts.map +1 -0
  69. package/dist/shared/types/targeting/shared.d.ts +30 -0
  70. package/dist/shared/types/targeting/shared.d.ts.map +1 -0
  71. package/package.json +104 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,186 @@
1
+ import type { OphanComponentType, OphanProduct } from '@guardian/libs';
2
+ import { z } from 'zod';
3
+ import type { purchaseInfoProduct, purchaseInfoUser } from '../purchaseInfo';
4
+ declare const Channel: readonly ["Epic", "EpicAppleNews", "EpicLiveblog", "Banner1", "Banner2", "Header", "GutterLiveblog"];
5
+ export type Channel = (typeof Channel)[number];
6
+ declare const TestStatus: readonly ["Live", "Draft", "Archived"];
7
+ export type TestStatus = (typeof TestStatus)[number];
8
+ export declare const testStatusSchema: z.ZodEnum<{
9
+ Live: "Live";
10
+ Draft: "Draft";
11
+ Archived: "Archived";
12
+ }>;
13
+ declare const DeviceType: readonly ["Mobile", "Desktop", "All", "iOS", "Android"];
14
+ export type DeviceType = (typeof DeviceType)[number];
15
+ export type UserDeviceType = Exclude<DeviceType, 'Mobile' | 'All'>;
16
+ export declare const deviceTypeSchema: z.ZodEnum<{
17
+ Mobile: "Mobile";
18
+ Desktop: "Desktop";
19
+ All: "All";
20
+ iOS: "iOS";
21
+ Android: "Android";
22
+ }>;
23
+ declare const SignedInStatus: readonly ["SignedIn", "SignedOut", "All"];
24
+ export type SignedInStatus = (typeof SignedInStatus)[number];
25
+ export declare const signedInStatusSchema: z.ZodEnum<{
26
+ All: "All";
27
+ SignedIn: "SignedIn";
28
+ SignedOut: "SignedOut";
29
+ }>;
30
+ declare const ConsentStatus: readonly ["HasConsented", "HasNotConsented", "All"];
31
+ export type ConsentStatus = (typeof ConsentStatus)[number];
32
+ export declare const ConsentStatusSchema: z.ZodEnum<{
33
+ All: "All";
34
+ HasConsented: "HasConsented";
35
+ HasNotConsented: "HasNotConsented";
36
+ }>;
37
+ declare const methodologySchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
38
+ name: z.ZodLiteral<"ABTest">;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ name: z.ZodLiteral<"EpsilonGreedyBandit">;
41
+ epsilon: z.ZodNumber;
42
+ sampleCount: z.ZodOptional<z.ZodNumber>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ name: z.ZodLiteral<"Roulette">;
45
+ sampleCount: z.ZodOptional<z.ZodNumber>;
46
+ }, z.core.$strip>], "name">, z.ZodObject<{
47
+ testName: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strip>>;
49
+ export type Methodology = z.infer<typeof methodologySchema>;
50
+ export type BanditMethodology = Exclude<Methodology, {
51
+ name: 'ABTest';
52
+ }>;
53
+ export interface Variant {
54
+ name: string;
55
+ }
56
+ export interface Test<V extends Variant> {
57
+ channel: Channel;
58
+ name: string;
59
+ status: TestStatus;
60
+ priority: number;
61
+ variants: V[];
62
+ controlProportionSettings?: ControlProportionSettings;
63
+ deviceType?: DeviceType;
64
+ signedInStatus?: SignedInStatus;
65
+ consentStatus?: ConsentStatus;
66
+ methodologies?: Methodology[];
67
+ }
68
+ export declare const testSchema: z.ZodObject<{
69
+ channel: z.ZodEnum<{
70
+ Epic: "Epic";
71
+ EpicAppleNews: "EpicAppleNews";
72
+ EpicLiveblog: "EpicLiveblog";
73
+ Banner1: "Banner1";
74
+ Banner2: "Banner2";
75
+ Header: "Header";
76
+ GutterLiveblog: "GutterLiveblog";
77
+ }>;
78
+ name: z.ZodString;
79
+ status: z.ZodEnum<{
80
+ Live: "Live";
81
+ Draft: "Draft";
82
+ Archived: "Archived";
83
+ }>;
84
+ priority: z.ZodNumber;
85
+ controlProportionSettings: z.ZodOptional<z.ZodObject<{
86
+ proportion: z.ZodNumber;
87
+ offset: z.ZodNumber;
88
+ }, z.core.$strip>>;
89
+ deviceType: z.ZodOptional<z.ZodEnum<{
90
+ Mobile: "Mobile";
91
+ Desktop: "Desktop";
92
+ All: "All";
93
+ iOS: "iOS";
94
+ Android: "Android";
95
+ }>>;
96
+ signedInStatus: z.ZodOptional<z.ZodEnum<{
97
+ All: "All";
98
+ SignedIn: "SignedIn";
99
+ SignedOut: "SignedOut";
100
+ }>>;
101
+ consentStatus: z.ZodOptional<z.ZodEnum<{
102
+ All: "All";
103
+ HasConsented: "HasConsented";
104
+ HasNotConsented: "HasNotConsented";
105
+ }>>;
106
+ methodologies: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
107
+ name: z.ZodLiteral<"ABTest">;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ name: z.ZodLiteral<"EpsilonGreedyBandit">;
110
+ epsilon: z.ZodNumber;
111
+ sampleCount: z.ZodOptional<z.ZodNumber>;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ name: z.ZodLiteral<"Roulette">;
114
+ sampleCount: z.ZodOptional<z.ZodNumber>;
115
+ }, z.core.$strip>], "name">, z.ZodObject<{
116
+ testName: z.ZodOptional<z.ZodString>;
117
+ }, z.core.$strip>>>>;
118
+ }, z.core.$strip>;
119
+ export interface ControlProportionSettings {
120
+ proportion: number;
121
+ offset: number;
122
+ }
123
+ export type UserCohort = 'AllExistingSupporters' | 'AllNonSupporters' | 'Everyone' | 'PostAskPauseSingleContributors';
124
+ export declare const userCohortSchema: z.ZodEnum<{
125
+ AllExistingSupporters: "AllExistingSupporters";
126
+ AllNonSupporters: "AllNonSupporters";
127
+ Everyone: "Everyone";
128
+ PostAskPauseSingleContributors: "PostAskPauseSingleContributors";
129
+ }>;
130
+ export declare const articlesViewedSettingsSchema: z.ZodObject<{
131
+ minViews: z.ZodNumber;
132
+ maxViews: z.ZodOptional<z.ZodNumber>;
133
+ periodInWeeks: z.ZodNumber;
134
+ tagIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
135
+ }, z.core.$strip>;
136
+ export interface ArticlesViewedSettings {
137
+ minViews: number;
138
+ maxViews?: number;
139
+ periodInWeeks: number;
140
+ tagIds?: string[];
141
+ }
142
+ /**
143
+ * Targeting tests are for experimenting with targeting rules.
144
+ * It is not a message test and should not affect what the user sees once they're in a test.
145
+ * But we do need to carry the test/variant names through in the tracking.
146
+ */
147
+ export interface TargetingAbTest {
148
+ testName: string;
149
+ variantName: string;
150
+ }
151
+ export type TestTracking = {
152
+ abTestName: string;
153
+ abTestVariant: string;
154
+ campaignCode: string;
155
+ campaignId?: string;
156
+ componentType: OphanComponentType;
157
+ products?: OphanProduct[];
158
+ labels?: string[];
159
+ targetingAbTest?: TargetingAbTest;
160
+ };
161
+ export interface PurchaseInfoTest {
162
+ userType: purchaseInfoUser[];
163
+ product: purchaseInfoProduct[];
164
+ }
165
+ export declare const purchaseInfoTestSchema: z.ZodObject<{
166
+ userType: z.ZodArray<z.ZodEnum<{
167
+ new: "new";
168
+ guest: "guest";
169
+ current: "current";
170
+ }>>;
171
+ product: z.ZodArray<z.ZodEnum<{
172
+ Contribution: "Contribution";
173
+ SupporterPlus: "SupporterPlus";
174
+ GuardianWeekly: "GuardianWeekly";
175
+ Paper: "Paper";
176
+ }>>;
177
+ }, z.core.$strip>;
178
+ export declare const pageContextTargetingSchema: z.ZodObject<{
179
+ tagIds: z.ZodArray<z.ZodString>;
180
+ sectionIds: z.ZodArray<z.ZodString>;
181
+ excludedTagIds: z.ZodArray<z.ZodString>;
182
+ excludedSectionIds: z.ZodArray<z.ZodString>;
183
+ }, z.core.$strip>;
184
+ export type PageContextTargeting = z.infer<typeof pageContextTargetingSchema>;
185
+ export {};
186
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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tB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAGjC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './props';
2
+ export * from './targeting';
3
+ export * from './abTests';
4
+ export { Prices } from './prices';
5
+ export { EpicViewLog } from '../lib/viewLog';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { CountryGroupId } from '../lib';
2
+ export type RatePlan = 'Monthly' | 'Annual';
3
+ type ProductPriceData = Record<RatePlan, {
4
+ price: string;
5
+ }>;
6
+ export type GuardianProduct = 'GuardianWeekly' | 'Digisub';
7
+ type CountryGroupPriceData = Record<GuardianProduct, ProductPriceData>;
8
+ export type Prices = Record<CountryGroupId, CountryGroupPriceData>;
9
+ export {};
10
+ //# sourceMappingURL=prices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prices.d.ts","sourceRoot":"","sources":["../../../src/shared/types/prices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC5C,KAAK,gBAAgB,GAAG,MAAM,CAC1B,QAAQ,EACR;IACI,KAAK,EAAE,MAAM,CAAC;CACjB,CACJ,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAC3D,KAAK,qBAAqB,GAAG,MAAM,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;AACvE,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,cAAc,EAAE,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,313 @@
1
+ import type { ComponentEvent } from '@guardian/ophan-tracker-js';
2
+ import { z } from 'zod';
3
+ import type { Channel, SelectedAmountsVariant } from '../abTests';
4
+ import type { Prices } from '../prices';
5
+ import type { AbandonedBasket } from '../targeting';
6
+ import type { ChoiceCardsSettings } from './choiceCards';
7
+ import type { ConfigurableDesign } from './design';
8
+ import type { ArticleCounts, Cta, SecondaryCta, SeparateArticleCount, TickerSettings, Tracking } from './shared';
9
+ export declare const bannerChannelSchema: z.ZodEnum<{
10
+ contributions: "contributions";
11
+ subscriptions: "subscriptions";
12
+ signIn: "signIn";
13
+ abandonedBasket: "abandonedBasket";
14
+ }>;
15
+ export type BannerChannel = z.infer<typeof bannerChannelSchema>;
16
+ export declare const channelFromBannerChannel: (bannerChannel: BannerChannel) => Channel;
17
+ export interface BannerContent {
18
+ heading?: string;
19
+ messageText?: string;
20
+ paragraphs?: string[];
21
+ mobileMessageText?: string;
22
+ highlightedText?: string;
23
+ cta?: Cta;
24
+ secondaryCta?: SecondaryCta;
25
+ }
26
+ export declare const bannerContentSchema: z.ZodObject<{
27
+ heading: z.ZodOptional<z.ZodString>;
28
+ messageText: z.ZodOptional<z.ZodString>;
29
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ mobileMessageText: z.ZodOptional<z.ZodString>;
31
+ highlightedText: z.ZodOptional<z.ZodString>;
32
+ cta: z.ZodOptional<z.ZodObject<{
33
+ text: z.ZodString;
34
+ baseUrl: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
38
+ cta: z.ZodObject<{
39
+ text: z.ZodString;
40
+ baseUrl: z.ZodString;
41
+ }, z.core.$strip>;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
44
+ }, z.core.$strip>], "type">>;
45
+ }, z.core.$strip>;
46
+ export interface BannerProps {
47
+ tracking: Tracking;
48
+ bannerChannel: BannerChannel;
49
+ content?: BannerContent;
50
+ mobileContent?: BannerContent;
51
+ countryCode?: string;
52
+ isSupporter?: boolean;
53
+ tickerSettings?: TickerSettings;
54
+ submitComponentEvent?: (componentEvent: ComponentEvent) => Promise<void>;
55
+ articleCounts: ArticleCounts;
56
+ hasOptedOutOfArticleCount?: boolean;
57
+ fetchEmail?: () => Promise<string | null>;
58
+ separateArticleCount?: boolean;
59
+ separateArticleCountSettings?: SeparateArticleCount;
60
+ prices?: Prices;
61
+ choiceCardAmounts?: SelectedAmountsVariant;
62
+ choiceCardsSettings?: ChoiceCardsSettings;
63
+ design?: ConfigurableDesign;
64
+ abandonedBasket?: AbandonedBasket;
65
+ promoCodes?: string[];
66
+ }
67
+ export declare const bannerSchema: z.ZodObject<{
68
+ tracking: z.ZodObject<{
69
+ abTestName: z.ZodString;
70
+ abTestVariant: z.ZodString;
71
+ campaignCode: z.ZodString;
72
+ componentType: z.ZodEnum<{
73
+ ACQUISITIONS_EPIC: "ACQUISITIONS_EPIC";
74
+ ACQUISITIONS_ENGAGEMENT_BANNER: "ACQUISITIONS_ENGAGEMENT_BANNER";
75
+ ACQUISITIONS_HEADER: "ACQUISITIONS_HEADER";
76
+ ACQUISITIONS_OTHER: "ACQUISITIONS_OTHER";
77
+ ACQUISITIONS_SUBSCRIPTIONS_BANNER: "ACQUISITIONS_SUBSCRIPTIONS_BANNER";
78
+ }>;
79
+ products: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
80
+ CONTRIBUTION: "CONTRIBUTION";
81
+ MEMBERSHIP_SUPPORTER: "MEMBERSHIP_SUPPORTER";
82
+ DIGITAL_SUBSCRIPTION: "DIGITAL_SUBSCRIPTION";
83
+ PRINT_SUBSCRIPTION: "PRINT_SUBSCRIPTION";
84
+ }>>>>;
85
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
86
+ ophanPageId: z.ZodString;
87
+ platformId: z.ZodString;
88
+ referrerUrl: z.ZodString;
89
+ }, z.core.$strip>;
90
+ bannerChannel: z.ZodEnum<{
91
+ contributions: "contributions";
92
+ subscriptions: "subscriptions";
93
+ signIn: "signIn";
94
+ abandonedBasket: "abandonedBasket";
95
+ }>;
96
+ content: z.ZodOptional<z.ZodNullable<z.ZodObject<{
97
+ heading: z.ZodOptional<z.ZodString>;
98
+ messageText: z.ZodOptional<z.ZodString>;
99
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
+ mobileMessageText: z.ZodOptional<z.ZodString>;
101
+ highlightedText: z.ZodOptional<z.ZodString>;
102
+ cta: z.ZodOptional<z.ZodObject<{
103
+ text: z.ZodString;
104
+ baseUrl: z.ZodString;
105
+ }, z.core.$strip>>;
106
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
107
+ type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
108
+ cta: z.ZodObject<{
109
+ text: z.ZodString;
110
+ baseUrl: z.ZodString;
111
+ }, z.core.$strip>;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
114
+ }, z.core.$strip>], "type">>;
115
+ }, z.core.$strip>>>;
116
+ mobileContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
+ heading: z.ZodOptional<z.ZodString>;
118
+ messageText: z.ZodOptional<z.ZodString>;
119
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ mobileMessageText: z.ZodOptional<z.ZodString>;
121
+ highlightedText: z.ZodOptional<z.ZodString>;
122
+ cta: z.ZodOptional<z.ZodObject<{
123
+ text: z.ZodString;
124
+ baseUrl: z.ZodString;
125
+ }, z.core.$strip>>;
126
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
127
+ type: z.ZodLiteral<import("./shared").SecondaryCtaType.Custom>;
128
+ cta: z.ZodObject<{
129
+ text: z.ZodString;
130
+ baseUrl: z.ZodString;
131
+ }, z.core.$strip>;
132
+ }, z.core.$strip>, z.ZodObject<{
133
+ type: z.ZodLiteral<import("./shared").SecondaryCtaType.ContributionsReminder>;
134
+ }, z.core.$strip>], "type">>;
135
+ }, z.core.$strip>>>;
136
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ isSupporter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
138
+ tickerSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
139
+ currencySymbol: z.ZodString;
140
+ copy: z.ZodObject<{
141
+ countLabel: z.ZodString;
142
+ goalCopy: z.ZodOptional<z.ZodString>;
143
+ }, z.core.$strip>;
144
+ name: z.ZodEnum<{
145
+ global: "global";
146
+ US: "US";
147
+ AU: "AU";
148
+ }>;
149
+ tickerData: z.ZodOptional<z.ZodObject<{
150
+ total: z.ZodNumber;
151
+ goal: z.ZodNumber;
152
+ }, z.core.$strip>>;
153
+ }, z.core.$strip>>>;
154
+ submitComponentEvent: z.ZodAny;
155
+ articleCounts: z.ZodObject<{
156
+ for52Weeks: z.ZodNumber;
157
+ forTargetedWeeks: z.ZodNumber;
158
+ }, z.core.$strip>;
159
+ hasOptedOutOfArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
160
+ fetchEmail: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
161
+ separateArticleCount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
162
+ design: z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
+ visual: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
164
+ mobileUrl: z.ZodString;
165
+ tabletUrl: z.ZodString;
166
+ desktopUrl: z.ZodString;
167
+ altText: z.ZodString;
168
+ kind: z.ZodLiteral<"Image">;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ buttonColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
171
+ r: z.ZodString;
172
+ g: z.ZodString;
173
+ b: z.ZodString;
174
+ kind: z.ZodLiteral<"hex">;
175
+ }, z.core.$strip>>>;
176
+ buttonTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
177
+ r: z.ZodString;
178
+ g: z.ZodString;
179
+ b: z.ZodString;
180
+ kind: z.ZodLiteral<"hex">;
181
+ }, z.core.$strip>>>;
182
+ buttonBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
183
+ r: z.ZodString;
184
+ g: z.ZodString;
185
+ b: z.ZodString;
186
+ kind: z.ZodLiteral<"hex">;
187
+ }, z.core.$strip>>>;
188
+ buttonSelectColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
189
+ r: z.ZodString;
190
+ g: z.ZodString;
191
+ b: z.ZodString;
192
+ kind: z.ZodLiteral<"hex">;
193
+ }, z.core.$strip>>>;
194
+ buttonSelectTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
195
+ r: z.ZodString;
196
+ g: z.ZodString;
197
+ b: z.ZodString;
198
+ kind: z.ZodLiteral<"hex">;
199
+ }, z.core.$strip>>>;
200
+ buttonSelectBorderColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
201
+ r: z.ZodString;
202
+ g: z.ZodString;
203
+ b: z.ZodString;
204
+ kind: z.ZodLiteral<"hex">;
205
+ }, z.core.$strip>>>;
206
+ buttonSelectMarkerColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
207
+ r: z.ZodString;
208
+ g: z.ZodString;
209
+ b: z.ZodString;
210
+ kind: z.ZodLiteral<"hex">;
211
+ }, z.core.$strip>>>;
212
+ pillTextColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
213
+ r: z.ZodString;
214
+ g: z.ZodString;
215
+ b: z.ZodString;
216
+ kind: z.ZodLiteral<"hex">;
217
+ }, z.core.$strip>>>;
218
+ pillBackgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
219
+ r: z.ZodString;
220
+ g: z.ZodString;
221
+ b: z.ZodString;
222
+ kind: z.ZodLiteral<"hex">;
223
+ }, z.core.$strip>>>;
224
+ kind: z.ZodLiteral<"ChoiceCards">;
225
+ }, z.core.$strip>], "kind">>>;
226
+ colours: z.ZodObject<{
227
+ basic: z.ZodObject<{
228
+ background: z.ZodObject<{
229
+ r: z.ZodString;
230
+ g: z.ZodString;
231
+ b: z.ZodString;
232
+ kind: z.ZodLiteral<"hex">;
233
+ }, z.core.$strip>;
234
+ bodyText: z.ZodObject<{
235
+ r: z.ZodString;
236
+ g: z.ZodString;
237
+ b: z.ZodString;
238
+ kind: z.ZodLiteral<"hex">;
239
+ }, z.core.$strip>;
240
+ }, z.core.$strip>;
241
+ }, z.core.$strip>;
242
+ }, z.core.$strip>>>;
243
+ choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
244
+ choiceCards: z.ZodArray<z.ZodObject<{
245
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
246
+ supportTier: z.ZodLiteral<"Contribution">;
247
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ supportTier: z.ZodLiteral<"SupporterPlus">;
250
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ supportTier: z.ZodLiteral<"OneOff">;
253
+ }, z.core.$strip>], "supportTier">;
254
+ label: z.ZodString;
255
+ isDefault: z.ZodBoolean;
256
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ benefits: z.ZodArray<z.ZodObject<{
258
+ copy: z.ZodString;
259
+ }, z.core.$strip>>;
260
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
261
+ copy: z.ZodString;
262
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
263
+ r: z.ZodString;
264
+ g: z.ZodString;
265
+ b: z.ZodString;
266
+ kind: z.ZodLiteral<"hex">;
267
+ }, z.core.$strip>>>;
268
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
269
+ r: z.ZodString;
270
+ g: z.ZodString;
271
+ b: z.ZodString;
272
+ kind: z.ZodLiteral<"hex">;
273
+ }, z.core.$strip>>>;
274
+ }, z.core.$strip>>>;
275
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
276
+ }, z.core.$strip>>;
277
+ mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
278
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
279
+ supportTier: z.ZodLiteral<"Contribution">;
280
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
281
+ }, z.core.$strip>, z.ZodObject<{
282
+ supportTier: z.ZodLiteral<"SupporterPlus">;
283
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ supportTier: z.ZodLiteral<"OneOff">;
286
+ }, z.core.$strip>], "supportTier">;
287
+ label: z.ZodString;
288
+ isDefault: z.ZodBoolean;
289
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ benefits: z.ZodArray<z.ZodObject<{
291
+ copy: z.ZodString;
292
+ }, z.core.$strip>>;
293
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
294
+ copy: z.ZodString;
295
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
296
+ r: z.ZodString;
297
+ g: z.ZodString;
298
+ b: z.ZodString;
299
+ kind: z.ZodLiteral<"hex">;
300
+ }, z.core.$strip>>>;
301
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
302
+ r: z.ZodString;
303
+ g: z.ZodString;
304
+ b: z.ZodString;
305
+ kind: z.ZodLiteral<"hex">;
306
+ }, z.core.$strip>>>;
307
+ }, z.core.$strip>>>;
308
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
309
+ }, z.core.$strip>>>>;
310
+ }, z.core.$strip>>>;
311
+ promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
312
+ }, z.core.$strip>;
313
+ //# sourceMappingURL=banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/props/banner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE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AC1C,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4BAA4B,CAAC,EAAE,oBAAoB,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBvB,CAAC"}
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod';
2
+ declare const ratePlanSchema: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
3
+ export type RatePlan = z.infer<typeof ratePlanSchema>;
4
+ declare const choiceCardSchema: z.ZodObject<{
5
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ supportTier: z.ZodLiteral<"Contribution">;
7
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ supportTier: z.ZodLiteral<"SupporterPlus">;
10
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
11
+ }, z.core.$strip>, z.ZodObject<{
12
+ supportTier: z.ZodLiteral<"OneOff">;
13
+ }, z.core.$strip>], "supportTier">;
14
+ label: z.ZodString;
15
+ isDefault: z.ZodBoolean;
16
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ benefits: z.ZodArray<z.ZodObject<{
18
+ copy: z.ZodString;
19
+ }, z.core.$strip>>;
20
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ copy: z.ZodString;
22
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
+ r: z.ZodString;
24
+ g: z.ZodString;
25
+ b: z.ZodString;
26
+ kind: z.ZodLiteral<"hex">;
27
+ }, z.core.$strip>>>;
28
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ r: z.ZodString;
30
+ g: z.ZodString;
31
+ b: z.ZodString;
32
+ kind: z.ZodLiteral<"hex">;
33
+ }, z.core.$strip>>>;
34
+ }, z.core.$strip>>>;
35
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
36
+ }, z.core.$strip>;
37
+ export type ChoiceCard = z.infer<typeof choiceCardSchema>;
38
+ export declare const choiceCardsSettings: z.ZodObject<{
39
+ choiceCards: z.ZodArray<z.ZodObject<{
40
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
41
+ supportTier: z.ZodLiteral<"Contribution">;
42
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ supportTier: z.ZodLiteral<"SupporterPlus">;
45
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ supportTier: z.ZodLiteral<"OneOff">;
48
+ }, z.core.$strip>], "supportTier">;
49
+ label: z.ZodString;
50
+ isDefault: z.ZodBoolean;
51
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ benefits: z.ZodArray<z.ZodObject<{
53
+ copy: z.ZodString;
54
+ }, z.core.$strip>>;
55
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
+ copy: z.ZodString;
57
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
+ r: z.ZodString;
59
+ g: z.ZodString;
60
+ b: z.ZodString;
61
+ kind: z.ZodLiteral<"hex">;
62
+ }, z.core.$strip>>>;
63
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
+ r: z.ZodString;
65
+ g: z.ZodString;
66
+ b: z.ZodString;
67
+ kind: z.ZodLiteral<"hex">;
68
+ }, z.core.$strip>>>;
69
+ }, z.core.$strip>>>;
70
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
71
+ }, z.core.$strip>>;
72
+ mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
73
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
74
+ supportTier: z.ZodLiteral<"Contribution">;
75
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ supportTier: z.ZodLiteral<"SupporterPlus">;
78
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ supportTier: z.ZodLiteral<"OneOff">;
81
+ }, z.core.$strip>], "supportTier">;
82
+ label: z.ZodString;
83
+ isDefault: z.ZodBoolean;
84
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ benefits: z.ZodArray<z.ZodObject<{
86
+ copy: z.ZodString;
87
+ }, z.core.$strip>>;
88
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
89
+ copy: z.ZodString;
90
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
91
+ r: z.ZodString;
92
+ g: z.ZodString;
93
+ b: z.ZodString;
94
+ kind: z.ZodLiteral<"hex">;
95
+ }, z.core.$strip>>>;
96
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
97
+ r: z.ZodString;
98
+ g: z.ZodString;
99
+ b: z.ZodString;
100
+ kind: z.ZodLiteral<"hex">;
101
+ }, z.core.$strip>>>;
102
+ }, z.core.$strip>>>;
103
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
104
+ }, z.core.$strip>>>>;
105
+ }, z.core.$strip>;
106
+ export type ChoiceCardsSettings = z.infer<typeof choiceCardsSettings>;
107
+ export {};
108
+ //# sourceMappingURL=choiceCards.d.ts.map
@@ -0,0 +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,wEAAuD,CAAC;AAC5E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAyBtD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQpB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}