@guardian/support-dotcom-components 1.1.1 → 1.1.2
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/dotcom/src/requests.d.ts +0 -1
- package/dist/dotcom/src/requests.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/src/lib/geolocation.d.ts +4 -1
- package/dist/shared/src/lib/geolocation.d.ts.map +1 -1
- package/dist/shared/src/lib/tracking.d.ts +1 -1
- package/dist/shared/src/lib/tracking.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/banner.d.ts +1 -9
- package/dist/shared/src/types/abTests/banner.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/epic.d.ts +863 -52
- package/dist/shared/src/types/abTests/epic.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/shared.d.ts +66 -5
- package/dist/shared/src/types/abTests/shared.d.ts.map +1 -1
- package/dist/shared/src/types/props/banner.d.ts +105 -103
- package/dist/shared/src/types/props/banner.d.ts.map +1 -1
- package/dist/shared/src/types/props/design.d.ts +41 -42
- package/dist/shared/src/types/props/design.d.ts.map +1 -1
- package/dist/shared/src/types/props/epic.d.ts +982 -213
- package/dist/shared/src/types/props/epic.d.ts.map +1 -1
- package/dist/shared/src/types/props/shared.d.ts +76 -73
- package/dist/shared/src/types/props/shared.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,WAAW,CAAC;AAOjE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB3B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,25 +1,86 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
1
2
|
import { OphanComponentType, OphanProduct } from '../ophan';
|
|
2
3
|
import { purchaseInfoProduct, purchaseInfoUser } from '../purchaseInfo';
|
|
3
|
-
|
|
4
|
+
declare const TestStatus: readonly ["Live", "Draft", "Archived"];
|
|
5
|
+
export type TestStatus = (typeof TestStatus)[number];
|
|
6
|
+
export declare const testStatusSchema: z.ZodEnum<["Live", "Draft", "Archived"]>;
|
|
7
|
+
declare const DeviceType: readonly ["Mobile", "Desktop", "All"];
|
|
8
|
+
export type DeviceType = (typeof DeviceType)[number];
|
|
9
|
+
export declare const deviceTypeSchema: z.ZodEnum<["Mobile", "Desktop", "All"]>;
|
|
10
|
+
declare const SignedInStatus: readonly ["SignedIn", "SignedOut", "All"];
|
|
11
|
+
export type SignedInStatus = (typeof SignedInStatus)[number];
|
|
12
|
+
export declare const signedInStatusSchema: z.ZodEnum<["SignedIn", "SignedOut", "All"]>;
|
|
4
13
|
export interface Variant {
|
|
5
14
|
name: string;
|
|
6
15
|
}
|
|
7
16
|
export interface Test<V extends Variant> {
|
|
8
17
|
name: string;
|
|
9
18
|
status: TestStatus;
|
|
19
|
+
priority: number;
|
|
10
20
|
variants: V[];
|
|
11
21
|
controlProportionSettings?: ControlProportionSettings;
|
|
12
|
-
audienceOffset?: number;
|
|
13
|
-
audience?: number;
|
|
14
22
|
deviceType?: DeviceType;
|
|
15
23
|
signedInStatus?: SignedInStatus;
|
|
16
24
|
}
|
|
25
|
+
export declare const testSchema: z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
status: z.ZodEnum<["Live", "Draft", "Archived"]>;
|
|
28
|
+
priority: z.ZodNumber;
|
|
29
|
+
controlProportionSettings: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
proportion: z.ZodNumber;
|
|
31
|
+
offset: z.ZodNumber;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
offset: number;
|
|
34
|
+
proportion: number;
|
|
35
|
+
}, {
|
|
36
|
+
offset: number;
|
|
37
|
+
proportion: number;
|
|
38
|
+
}>>;
|
|
39
|
+
deviceType: z.ZodOptional<z.ZodEnum<["Mobile", "Desktop", "All"]>>;
|
|
40
|
+
signedInStatus: z.ZodOptional<z.ZodEnum<["SignedIn", "SignedOut", "All"]>>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
priority: number;
|
|
43
|
+
name: string;
|
|
44
|
+
status: "Live" | "Draft" | "Archived";
|
|
45
|
+
controlProportionSettings?: {
|
|
46
|
+
offset: number;
|
|
47
|
+
proportion: number;
|
|
48
|
+
} | undefined;
|
|
49
|
+
deviceType?: "Mobile" | "Desktop" | "All" | undefined;
|
|
50
|
+
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
priority: number;
|
|
53
|
+
name: string;
|
|
54
|
+
status: "Live" | "Draft" | "Archived";
|
|
55
|
+
controlProportionSettings?: {
|
|
56
|
+
offset: number;
|
|
57
|
+
proportion: number;
|
|
58
|
+
} | undefined;
|
|
59
|
+
deviceType?: "Mobile" | "Desktop" | "All" | undefined;
|
|
60
|
+
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
61
|
+
}>;
|
|
17
62
|
export interface ControlProportionSettings {
|
|
18
63
|
proportion: number;
|
|
19
64
|
offset: number;
|
|
20
65
|
}
|
|
21
66
|
export type UserCohort = 'AllExistingSupporters' | 'AllNonSupporters' | 'Everyone' | 'PostAskPauseSingleContributors';
|
|
22
|
-
export
|
|
67
|
+
export declare const userCohortSchema: z.ZodEnum<["AllExistingSupporters", "AllNonSupporters", "Everyone", "PostAskPauseSingleContributors"]>;
|
|
68
|
+
export declare const articlesViewedSettingsSchema: z.ZodObject<{
|
|
69
|
+
minViews: z.ZodNumber;
|
|
70
|
+
maxViews: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
periodInWeeks: z.ZodNumber;
|
|
72
|
+
tagId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
minViews: number;
|
|
75
|
+
periodInWeeks: number;
|
|
76
|
+
maxViews?: number | undefined;
|
|
77
|
+
tagId?: string | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
minViews: number;
|
|
80
|
+
periodInWeeks: number;
|
|
81
|
+
maxViews?: number | undefined;
|
|
82
|
+
tagId?: string | undefined;
|
|
83
|
+
}>;
|
|
23
84
|
export interface ArticlesViewedSettings {
|
|
24
85
|
minViews: number;
|
|
25
86
|
maxViews?: number;
|
|
@@ -45,7 +106,6 @@ export type TestTracking = {
|
|
|
45
106
|
labels?: string[];
|
|
46
107
|
targetingAbTest?: TargetingAbTest;
|
|
47
108
|
};
|
|
48
|
-
export type DeviceType = 'Mobile' | 'Desktop' | 'All';
|
|
49
109
|
export interface PurchaseInfoTest {
|
|
50
110
|
userType: purchaseInfoUser[];
|
|
51
111
|
product: purchaseInfoProduct[];
|
|
@@ -56,4 +116,5 @@ export interface PageContextTargeting {
|
|
|
56
116
|
excludedTagIds: string[];
|
|
57
117
|
excludedSectionIds: string[];
|
|
58
118
|
}
|
|
119
|
+
export {};
|
|
59
120
|
//# 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,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,
|
|
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,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExE,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,uCAAwC,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,gBAAgB,yCAAqB,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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