@pack/hydrogen 3.1.1-beta.0 → 3.1.1
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.d.ts +13 -1
- package/dist/index.js +351 -149
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -26,10 +26,14 @@ interface TestInput {
|
|
|
26
26
|
interface Test$1 {
|
|
27
27
|
id: string;
|
|
28
28
|
handle: string;
|
|
29
|
+
impressionTrigger?: string;
|
|
29
30
|
testVariant: {
|
|
30
31
|
id: string;
|
|
31
32
|
handle: string;
|
|
32
33
|
};
|
|
34
|
+
impression?: {
|
|
35
|
+
sectionIds?: string[];
|
|
36
|
+
};
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
declare class PackTestSession {
|
|
@@ -177,15 +181,23 @@ declare function action({ request, context }: ActionFunctionArgs): Promise<Respo
|
|
|
177
181
|
*/
|
|
178
182
|
declare function loader({ request, context }: LoaderFunctionArgs): Promise<Response>;
|
|
179
183
|
|
|
180
|
-
|
|
184
|
+
type PackTestImpressionSelector = string | string[] | ((packTestInfo: Test$1) => string | string[] | undefined);
|
|
185
|
+
type PackTestRouteProps = {
|
|
186
|
+
impressionSelector?: PackTestImpressionSelector;
|
|
187
|
+
};
|
|
188
|
+
declare const PackTestRoute: ({ impressionSelector, }?: PackTestRouteProps) => null;
|
|
181
189
|
|
|
182
190
|
interface Test {
|
|
183
191
|
id: string;
|
|
184
192
|
handle: string;
|
|
193
|
+
impressionTrigger?: string;
|
|
185
194
|
testVariant: {
|
|
186
195
|
id: string;
|
|
187
196
|
handle: string;
|
|
188
197
|
};
|
|
198
|
+
impression?: {
|
|
199
|
+
sectionIds?: string[];
|
|
200
|
+
};
|
|
189
201
|
}
|
|
190
202
|
interface TestExposureCallbackArg extends Test {
|
|
191
203
|
exposureTime: number;
|