@preprio/toolkit 0.6.0-alpha.7 → 0.6.0-alpha.9
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/README.md +5 -5
- package/dist/astro/{chunk-3EXK2LHI.js → chunk-UN4JADNU.js} +1 -1
- package/dist/astro/graphql.js +1 -1
- package/dist/astro/index.cjs +1 -1
- package/dist/astro/index.js +1 -1
- package/dist/{chunk-VQIPTUN4.js → chunk-5QIWVDP2.js} +1 -1
- package/dist/{chunk-U7TRFVK7.js → chunk-J66UOCK6.js} +1 -1
- package/dist/{chunk-3QGWCYTL.js → chunk-WQBKQG4R.js} +1 -1
- package/dist/{chunk-PFJO4TYL.js → chunk-XL4Y7FGW.js} +1 -1
- package/dist/graphql/codegen.js +3 -3
- package/dist/graphql.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/nextjs/{chunk-CZK7SMBD.js → chunk-CMV6ZP6E.js} +1 -1
- package/dist/nextjs/components.cjs +128 -67
- package/dist/nextjs/components.d.cts +14 -13
- package/dist/nextjs/components.d.ts +14 -13
- package/dist/nextjs/components.js +129 -68
- package/dist/nextjs/graphql.cjs +99 -27
- package/dist/nextjs/graphql.d.cts +5 -5
- package/dist/nextjs/graphql.d.ts +5 -5
- package/dist/nextjs/graphql.js +99 -27
- package/dist/nextjs/index.cjs +1 -1
- package/dist/nextjs/index.d.cts +9 -7
- package/dist/nextjs/index.d.ts +9 -7
- package/dist/nextjs/index.js +1 -1
- package/dist/nuxt/{chunk-JL33ENCM.js → chunk-XWOABVMW.js} +1 -1
- package/dist/nuxt/graphql.js +1 -1
- package/dist/nuxt/index.cjs +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/react/components.cjs +1 -1
- package/dist/react/components.js +1 -1
- package/dist/sveltekit/{chunk-S7S276V7.js → chunk-3S5RA6G5.js} +1 -1
- package/dist/sveltekit/graphql.js +1 -1
- package/dist/sveltekit/index.cjs +1 -1
- package/dist/sveltekit/index.js +1 -1
- package/package.json +1 -1
package/dist/nextjs/index.d.ts
CHANGED
|
@@ -175,15 +175,17 @@ declare function PreprTrackingPixel({ id, config, }: PreprTrackingPixelProps): n
|
|
|
175
175
|
*/
|
|
176
176
|
declare function PreprToolbar({ options, ...props }: PreprToolbarComponentProps): null;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
178
|
+
* Gets each client-side navigation's decision in before the click: when the
|
|
179
|
+
* visitor hovers over a same-site link (or presses it, on touch devices), it
|
|
180
|
+
* asks `createPreprProxy` which variants they get on that page. Clicks are
|
|
181
|
+
* never held: the new page paints with those variants when the answer is in,
|
|
182
|
+
* and keeps its personalized sections hidden until then otherwise. Pages
|
|
183
|
+
* without personalization answer with no groups and are not asked again for
|
|
184
|
+
* an hour.
|
|
183
185
|
*
|
|
184
186
|
* Mount it once in the root layout, so links on pages without a
|
|
185
|
-
* `PreprStack` are covered too.
|
|
186
|
-
*
|
|
187
|
+
* `PreprStack` are covered too. Links to other sites and links that open a
|
|
188
|
+
* new tab or download are left alone.
|
|
187
189
|
*
|
|
188
190
|
* @example
|
|
189
191
|
* <PreprPersonalizationSwitch />
|
package/dist/nextjs/index.js
CHANGED
package/dist/nuxt/graphql.js
CHANGED
package/dist/nuxt/index.cjs
CHANGED
package/dist/nuxt/index.js
CHANGED
|
@@ -2313,7 +2313,7 @@ function isReactHydrated(text) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
|
|
2315
2315
|
// src/version.ts
|
|
2316
|
-
var VERSION = "0.6.0-alpha.
|
|
2316
|
+
var VERSION = "0.6.0-alpha.9";
|
|
2317
2317
|
|
|
2318
2318
|
// src/core/pixel.ts
|
|
2319
2319
|
var PIXEL_SCRIPT_URL = "https://cdn.tracking.prepr.io/js/prepr.min.js";
|
package/dist/react/components.js
CHANGED
|
@@ -2289,7 +2289,7 @@ function isReactHydrated(text) {
|
|
|
2289
2289
|
}
|
|
2290
2290
|
|
|
2291
2291
|
// src/version.ts
|
|
2292
|
-
var VERSION = "0.6.0-alpha.
|
|
2292
|
+
var VERSION = "0.6.0-alpha.9";
|
|
2293
2293
|
|
|
2294
2294
|
// src/core/pixel.ts
|
|
2295
2295
|
var PIXEL_SCRIPT_URL = "https://cdn.tracking.prepr.io/js/prepr.min.js";
|
package/dist/sveltekit/index.cjs
CHANGED
package/dist/sveltekit/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@preprio/toolkit",
|
|
3
|
-
"version": "0.6.0-alpha.
|
|
3
|
+
"version": "0.6.0-alpha.9",
|
|
4
4
|
"description": "Prepr personalization, A/B testing and preview toolkit for React, Next.js, Nuxt, Astro, SvelteKit and Express",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Prepr B.V. (https://prepr.io)",
|