@nexly/next 0.10.0 → 0.12.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.
|
@@ -14,5 +14,5 @@ export type NexlyNextProviderProps = Omit<NexlyProviderProps, 'autoPageView'> &
|
|
|
14
14
|
* When `autoPageView` is `true`, a pageview is sent on mount **and** on every
|
|
15
15
|
* subsequent client-side navigation (pathname change).
|
|
16
16
|
*/
|
|
17
|
-
export declare function NexlyNextProvider({ autoPageView,
|
|
17
|
+
export declare function NexlyNextProvider({ autoPageView, children, ...rest }: NexlyNextProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
//# sourceMappingURL=nexly-next-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nexly-next-provider.d.ts","sourceRoot":"","sources":["../src/nexly-next-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nexly-next-provider.d.ts","sourceRoot":"","sources":["../src/nexly-next-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAA8D,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAuBtH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,kBAAkB,EAAE,cAAc,CAAC,GAAG;IAC9E;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,YAAoB,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,sBAAsB,2CASpG"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { NexlyClient } from '@nexly/core';
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
5
|
+
import { NexlyProvider, useNexlyClient, _NexlyClientIdentityContext } from '@nexly/react-web';
|
|
4
6
|
import { usePathname } from 'next/navigation';
|
|
5
7
|
import { useEffect, useRef } from 'react';
|
|
6
8
|
/**
|
|
@@ -27,6 +29,6 @@ function RoutePageviews() {
|
|
|
27
29
|
* When `autoPageView` is `true`, a pageview is sent on mount **and** on every
|
|
28
30
|
* subsequent client-side navigation (pathname change).
|
|
29
31
|
*/
|
|
30
|
-
export function NexlyNextProvider({ autoPageView = false,
|
|
31
|
-
return (
|
|
32
|
+
export function NexlyNextProvider({ autoPageView = false, children, ...rest }) {
|
|
33
|
+
return (_jsx(_NexlyClientIdentityContext.Provider, { value: NexlyClient.Next, children: _jsxs(NexlyProvider, { ...rest, autoPageView: false, children: [autoPageView && _jsx(RoutePageviews, {}), children] }) }));
|
|
32
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexly/next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Next.js App Router helpers for Nexly: route-aware auto pageview on top of @nexly/react-web",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^18.0.0 || ^19.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@nexly/react-web": "0.
|
|
44
|
+
"@nexly/react-web": "0.12.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/react": "^19.2.14",
|