@bodhveda/react 0.3.0 → 0.4.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 +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Official React SDK for Bodhveda.
|
|
|
4
4
|
|
|
5
5
|
It extends the core `@bodhveda/js` SDK to provide you with hooks to make it easy to build custom notification UX with React.
|
|
6
6
|
|
|
7
|
-
> This package re-exports everything from the core [`@bodhveda/js`](https://www.npmjs.com/package/@bodhveda/js) SDK, including the email/contacts types. The hooks here cover the recipient **inbox** (in-app notifications and preferences). Email delivery, recipient contacts, and provider configuration are server-side concerns — use the core SDK for those (email addresses should never ride a browser request).
|
|
7
|
+
> This package re-exports everything from the core [`@bodhveda/js`](https://www.npmjs.com/package/@bodhveda/js) SDK, including the email/contacts types. The hooks here cover the recipient **inbox** (in-app notifications and preferences). Email delivery, recipient contacts, the project preference catalog, and provider configuration are server-side concerns — use the core SDK for those (email addresses and full-access keys should never ride a browser request).
|
|
8
8
|
|
|
9
9
|
> This SDK uses [TanStack Query](https://tanstack.com/query/v5/docs/framework/react/overview) to manage Bodhveda API state for you - including caching and invalidation as well. You will need to add `@tanstack/react-query` and wrap your React app with `QueryClientProvider` and then put `BodhvedaProvider` inside it so that `@bodhveda/react` can use the ReactQuery's `QueryClient`.
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodhveda/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "React SDK for Bodhveda",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
"typescript": "^5.9.2"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@bodhveda/js": "^0.
|
|
54
|
+
"@bodhveda/js": "^0.4.0"
|
|
55
55
|
}
|
|
56
56
|
}
|