@nexly/next 0.4.0 → 0.6.0
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 +11 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -74,9 +74,19 @@ export function SignUpButton() {
|
|
|
74
74
|
- **`autoPageView`** (default `false`) — send a pageview on mount and on every client-side route change.
|
|
75
75
|
- **`autoEngagement`** (default `false`) — attach scroll, click, visibility, and heartbeat listeners.
|
|
76
76
|
|
|
77
|
+
### Using outside React (plain functions)
|
|
78
|
+
|
|
79
|
+
The provider initializes a global singleton. Access it anywhere without hooks:
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
import { Nexly } from '@nexly/next'
|
|
83
|
+
|
|
84
|
+
Nexly.getInstance()?.event({ name: 'cta_click', type: 'conversion' })
|
|
85
|
+
```
|
|
86
|
+
|
|
77
87
|
### Re-exports
|
|
78
88
|
|
|
79
|
-
`useNexlyClient`
|
|
89
|
+
`useNexlyClient` and `Nexly` are re-exported for convenience — no need to install the base packages separately.
|
|
80
90
|
|
|
81
91
|
## License
|
|
82
92
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACzF,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { NexlyNextProvider } from './nexly-next-provider.js';
|
|
2
|
-
export { useNexlyClient } from '@nexly/react-web';
|
|
2
|
+
export { useNexlyClient, Nexly } from '@nexly/react-web';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexly/next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
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.6.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/react": "^19.2.14",
|