@emit-vision/sdk-next 0.2.0 โ 0.3.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 +14 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +12 -0
- package/package.json +17 -10
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Next.js helper layer for `@emit-vision/sdk-js`.
|
|
4
4
|
|
|
5
|
+
๐ **[Full sdk-next reference โ](https://emitvision.com/docs/sdk-next)**
|
|
6
|
+
|
|
5
7
|
## Layout Pattern
|
|
6
8
|
|
|
7
9
|
Use the server helper to normalize serializable config, then pass it to the client provider in an app-router layout.
|
|
@@ -30,3 +32,15 @@ export default function RootLayout({
|
|
|
30
32
|
|
|
31
33
|
- `@emit-vision/sdk-next/client` stays browser-safe and only wraps the React helper.
|
|
32
34
|
- `@emit-vision/sdk-next/server` keeps config composition on the server side.
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
- [sdk-next reference](https://emitvision.com/docs/sdk-next) โ full API reference and guides
|
|
39
|
+
- [Getting started](https://emitvision.com/docs/introduction)
|
|
40
|
+
- [Installation & configuration](https://emitvision.com/docs/installation)
|
|
41
|
+
- [Browser SDK](https://emitvision.com/docs/sdk-js) ยท [React SDK](https://emitvision.com/docs/sdk-react) ยท [Node SDK](https://emitvision.com/docs/sdk-node)
|
|
42
|
+
- [Troubleshooting](https://emitvision.com/docs/troubleshooting)
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
MIT โ see [LICENSE](./LICENSE).
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { EmitVisionProviderProps } from '@emit-vision/sdk-react';
|
|
3
|
-
export { useEmitVision } from '@emit-vision/sdk-react';
|
|
3
|
+
export { ConsentState, declineConsent, getConsentState, grantConsent, onConsentChange, useConsentState, useEmitVision } from '@emit-vision/sdk-react';
|
|
4
4
|
|
|
5
5
|
type EmitVisionNextProviderProps = EmitVisionProviderProps;
|
|
6
6
|
declare function EmitVisionProvider(props: EmitVisionNextProviderProps): react_jsx_runtime.JSX.Element;
|
package/dist/client.js
CHANGED
|
@@ -5,11 +5,23 @@ import {
|
|
|
5
5
|
EmitVisionProvider as ReactEmitVisionProvider,
|
|
6
6
|
useEmitVision
|
|
7
7
|
} from "@emit-vision/sdk-react";
|
|
8
|
+
import {
|
|
9
|
+
grantConsent,
|
|
10
|
+
declineConsent,
|
|
11
|
+
getConsentState,
|
|
12
|
+
onConsentChange,
|
|
13
|
+
useConsentState
|
|
14
|
+
} from "@emit-vision/sdk-react";
|
|
8
15
|
import { jsx } from "react/jsx-runtime";
|
|
9
16
|
function EmitVisionProvider(props) {
|
|
10
17
|
return /* @__PURE__ */ jsx(ReactEmitVisionProvider, { ...props });
|
|
11
18
|
}
|
|
12
19
|
export {
|
|
13
20
|
EmitVisionProvider,
|
|
21
|
+
declineConsent,
|
|
22
|
+
getConsentState,
|
|
23
|
+
grantConsent,
|
|
24
|
+
onConsentChange,
|
|
25
|
+
useConsentState,
|
|
14
26
|
useEmitVision
|
|
15
27
|
};
|
package/package.json
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emit-vision/sdk-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Next.js helper layer for @emit-vision/sdk-js.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Emit Vision",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://emitvision.com/docs/sdk-next",
|
|
9
9
|
"repository": {
|
|
10
|
-
"
|
|
11
|
-
"url": "git+https://github.com/develemit/emit-vision.git",
|
|
12
|
-
"directory": "packages/sdk-next"
|
|
10
|
+
"url": "https://emitvision.com/docs/sdk-next"
|
|
13
11
|
},
|
|
14
12
|
"bugs": {
|
|
15
|
-
"
|
|
13
|
+
"email": "hello@emitvision.com"
|
|
16
14
|
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"emit-vision",
|
|
17
|
+
"analytics",
|
|
18
|
+
"error-tracking",
|
|
19
|
+
"feature-flags",
|
|
20
|
+
"observability",
|
|
21
|
+
"nextjs",
|
|
22
|
+
"react",
|
|
23
|
+
"sdk"
|
|
24
|
+
],
|
|
17
25
|
"publishConfig": {
|
|
18
26
|
"access": "public"
|
|
19
27
|
},
|
|
@@ -48,13 +56,12 @@
|
|
|
48
56
|
"react-dom": "^19.0.0"
|
|
49
57
|
},
|
|
50
58
|
"dependencies": {
|
|
51
|
-
"@emit-vision/sdk-react": "
|
|
59
|
+
"@emit-vision/sdk-react": "^0.3.0"
|
|
52
60
|
},
|
|
53
61
|
"scripts": {
|
|
54
62
|
"build": "tsup --config tsup.config.ts",
|
|
55
63
|
"test": "vitest run --config vitest.config.ts",
|
|
56
64
|
"lint": "eslint src",
|
|
57
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
58
|
-
"prepack": "pnpm run build"
|
|
65
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
59
66
|
}
|
|
60
|
-
}
|
|
67
|
+
}
|