@bodhveda/react 0.0.4 → 0.0.6
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 +47 -24
- package/dist/hooks.d.ts +15 -6
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +33 -18
- package/dist/hooks.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React SDK for Bodhveda
|
|
2
2
|
|
|
3
3
|
Official React SDK for Bodhveda.
|
|
4
4
|
|
|
5
|
-
It extends the core `bodhveda` SDK with
|
|
5
|
+
It extends the core `bodhveda` SDK to provide you with hooks to make it easy to build custom notification UX with React.
|
|
6
|
+
|
|
7
|
+
> 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`.
|
|
6
8
|
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
@@ -12,33 +14,54 @@ npm install @bodhveda/react @tanstack/react-query
|
|
|
12
14
|
|
|
13
15
|
## Usage
|
|
14
16
|
|
|
15
|
-
Wrap your app with the `BodhvedaProvider`:
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import { BodhvedaProvider } from "@bodhveda/react";
|
|
19
|
-
|
|
20
|
-
<BodhvedaProvider apiKey="your-api-key" recipientID="user-123">
|
|
21
|
-
<App />
|
|
22
|
-
</BodhvedaProvider>;
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Or provide an existing Bodhveda client:
|
|
26
|
-
|
|
27
17
|
```tsx
|
|
28
|
-
import {
|
|
18
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
29
19
|
import { BodhvedaProvider } from "@bodhveda/react";
|
|
30
20
|
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
|
|
21
|
+
const queryClient = new QueryClient();
|
|
22
|
+
|
|
23
|
+
<QueryClientProvider client={queryClient}>
|
|
24
|
+
<BodhvedaProvider apiKey="your-api-key" recipientID="user-123">
|
|
25
|
+
<NotificationInbox />
|
|
26
|
+
</BodhvedaProvider>
|
|
27
|
+
</QueryClientProvider>;
|
|
28
|
+
|
|
29
|
+
// src/components/NotificationInbox.tsx
|
|
30
|
+
import { Notification } from "./Notification";
|
|
31
|
+
import { useNotifications } from "@bodhveda/react";
|
|
32
|
+
|
|
33
|
+
function NotificationInbox() {
|
|
34
|
+
// Fetch recipient's notifications.
|
|
35
|
+
const { data, isLoading, isError, isFetching, fetchNextPage, hasNextPage } =
|
|
36
|
+
useNotifications();
|
|
37
|
+
|
|
38
|
+
// ...
|
|
39
|
+
// Handle loading and error states.
|
|
40
|
+
// ...
|
|
41
|
+
|
|
42
|
+
// Render the notifications as per your requirements.
|
|
43
|
+
return (
|
|
44
|
+
<>
|
|
45
|
+
<ul>
|
|
46
|
+
{data.notifications.map((notification) => (
|
|
47
|
+
<li key={notification.id}>
|
|
48
|
+
<NotificationItem notification={notification} />
|
|
49
|
+
</li>
|
|
50
|
+
))}
|
|
51
|
+
</ul>
|
|
52
|
+
|
|
53
|
+
{hasNextPage && (
|
|
54
|
+
<Button onClick={() => fetchNextPage()} loading={isFetching}>
|
|
55
|
+
Load more
|
|
56
|
+
</Button>
|
|
57
|
+
)}
|
|
58
|
+
</>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
36
61
|
```
|
|
37
62
|
|
|
38
63
|
## Hooks
|
|
39
64
|
|
|
40
|
-
All hooks must be used within a `BodhvedaProvider`.
|
|
41
|
-
|
|
42
65
|
### `useBodhveda()`
|
|
43
66
|
|
|
44
67
|
Returns the Bodhveda client instance.
|
|
@@ -47,9 +70,9 @@ Returns the Bodhveda client instance.
|
|
|
47
70
|
|
|
48
71
|
Returns the current recipient ID.
|
|
49
72
|
|
|
50
|
-
### `useNotifications(options?)`
|
|
73
|
+
### `useNotifications(req?, options?)`
|
|
51
74
|
|
|
52
|
-
Fetches
|
|
75
|
+
Fetches notifications for the current recipient in a infinite scrolling manner.
|
|
53
76
|
|
|
54
77
|
### `useNotificationsUnreadCount(options?)`
|
|
55
78
|
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { AnyUseMutationOptions, AnyUseQueryOptions, UseQueryResult } from "@tanstack/react-query";
|
|
2
|
-
import { ListNotificationsResponse, ListPreferencesResponse, UpdateNotificationsStateRequest, UpdateNotificationsStateResponse, SetPreferenceRequest, SetPreferenceResponse, DeleteNotificationsResponse, DeleteNotificationsRequest, Target, CheckPreferenceResponse } from "bodhveda";
|
|
1
|
+
import { AnyUseMutationOptions, AnyUseQueryOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseQueryResult } from "@tanstack/react-query";
|
|
2
|
+
import { ListNotificationsResponse, ListPreferencesResponse, UpdateNotificationsStateRequest, UpdateNotificationsStateResponse, SetPreferenceRequest, SetPreferenceResponse, DeleteNotificationsResponse, DeleteNotificationsRequest, Target, CheckPreferenceResponse, ListNotificationsRequest } from "bodhveda";
|
|
3
3
|
type QueryOptions = Omit<AnyUseQueryOptions, "queryKey">;
|
|
4
4
|
type MutationOptions = AnyUseMutationOptions;
|
|
5
|
+
export declare const QueryKeys: {
|
|
6
|
+
useNotifications: string[];
|
|
7
|
+
useNotificationsUnreadCount: string[];
|
|
8
|
+
useCheckPreference: string[];
|
|
9
|
+
usePreferences: string[];
|
|
10
|
+
};
|
|
5
11
|
/**
|
|
6
12
|
* Returns the Bodhveda client instance.
|
|
7
13
|
*
|
|
@@ -17,12 +23,15 @@ export declare function useBodhveda(): import("bodhveda").Bodhveda;
|
|
|
17
23
|
*/
|
|
18
24
|
export declare function useRecipientID(): string;
|
|
19
25
|
/**
|
|
20
|
-
* Fetches the list of notifications for the current recipient.
|
|
26
|
+
* Fetches the list of notifications for the current recipient with infinite scrolling support.
|
|
21
27
|
*
|
|
22
|
-
* @param
|
|
23
|
-
* @
|
|
28
|
+
* @param req - Optional request parameters for listing notifications.
|
|
29
|
+
* @param options - Optional react-query infinite query options.
|
|
30
|
+
* @returns {UseInfiniteQueryResult<ListNotificationsResponse, Error>} Infinite query result containing notifications and pagination info.
|
|
24
31
|
*/
|
|
25
|
-
export declare function useNotifications(options?:
|
|
32
|
+
export declare function useNotifications(req?: ListNotificationsRequest, options?: Partial<UseInfiniteQueryOptions<ListNotificationsResponse, Error, ListNotificationsResponse, [
|
|
33
|
+
typeof QueryKeys.useNotifications
|
|
34
|
+
]>>): UseInfiniteQueryResult<ListNotificationsResponse, Error>;
|
|
26
35
|
/**
|
|
27
36
|
* Fetches the unread notifications count for the current recipient.
|
|
28
37
|
*
|
package/dist/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,qBAAqB,EACrB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,qBAAqB,EACrB,kBAAkB,EAElB,uBAAuB,EACvB,sBAAsB,EAItB,cAAc,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,yBAAyB,EACzB,uBAAuB,EACvB,+BAA+B,EAC/B,gCAAgC,EAChC,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,0BAA0B,EAC1B,MAAM,EACN,uBAAuB,EACvB,wBAAwB,EAC3B,MAAM,UAAU,CAAC;AAIlB,KAAK,YAAY,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;AACzD,KAAK,eAAe,GAAG,qBAAqB,CAAC;AAE7C,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,WAAW,gCAQ1B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,WAQ7B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC5B,GAAG,GAAE,wBAA6B,EAClC,OAAO,GAAE,OAAO,CACZ,uBAAuB,CACnB,yBAAyB,EACzB,KAAK,EACL,yBAAyB,EACzB;IAAC,OAAO,SAAS,CAAC,gBAAgB;CAAC,CACtC,CACC,GACP,sBAAsB,CAAC,yBAAyB,EAAE,KAAK,CAAC,CA4B1D;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,OAAO,GAAE,YAAiB,GAC3B,cAAc,CAAC;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CAU1C;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,eAAoB,0IA6BxE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,eAAoB,gIA0BnE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,OAAO,GAAE,YAAiB,GAC3B,cAAc,CAAC,uBAAuB,CAAC,CASzC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,eAAoB,oHA0BhE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,YAAiB,GAC3B,cAAc,CAAC,uBAAuB,CAAC,CAUzC"}
|
package/dist/hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { useMutation, useQuery, useQueryClient, } from "@tanstack/react-query";
|
|
2
|
+
import { useInfiniteQuery, useMutation, useQuery, useQueryClient, } from "@tanstack/react-query";
|
|
3
3
|
import { BodhvedaContext } from "./context";
|
|
4
|
-
const
|
|
4
|
+
export const QueryKeys = {
|
|
5
5
|
useNotifications: ["useNotifications"],
|
|
6
6
|
useNotificationsUnreadCount: ["useNotificationsUnreadCount"],
|
|
7
7
|
useCheckPreference: ["useCheckPreference"],
|
|
@@ -34,17 +34,32 @@ export function useRecipientID() {
|
|
|
34
34
|
return context.recipientID;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Fetches the list of notifications for the current recipient.
|
|
37
|
+
* Fetches the list of notifications for the current recipient with infinite scrolling support.
|
|
38
38
|
*
|
|
39
|
-
* @param
|
|
40
|
-
* @
|
|
39
|
+
* @param req - Optional request parameters for listing notifications.
|
|
40
|
+
* @param options - Optional react-query infinite query options.
|
|
41
|
+
* @returns {UseInfiniteQueryResult<ListNotificationsResponse, Error>} Infinite query result containing notifications and pagination info.
|
|
41
42
|
*/
|
|
42
|
-
export function useNotifications(options = {}) {
|
|
43
|
+
export function useNotifications(req = {}, options = {}) {
|
|
43
44
|
const bodhveda = useBodhveda();
|
|
44
45
|
const recipientID = useRecipientID();
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
const { limit = 10 } = req;
|
|
47
|
+
return useInfiniteQuery({
|
|
48
|
+
queryKey: [QueryKeys.useNotifications],
|
|
49
|
+
queryFn: ({ pageParam }) => {
|
|
50
|
+
return bodhveda.recipients.notifications.list(recipientID, {
|
|
51
|
+
limit,
|
|
52
|
+
before: pageParam ? String(pageParam) : undefined,
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
initialPageParam: null,
|
|
56
|
+
getNextPageParam: (lastPage) => lastPage.cursor.before,
|
|
57
|
+
select: (data) => {
|
|
58
|
+
return {
|
|
59
|
+
...data.pages[data.pages.length - 1],
|
|
60
|
+
notifications: data.pages.flatMap((page) => page.notifications),
|
|
61
|
+
};
|
|
62
|
+
},
|
|
48
63
|
...options,
|
|
49
64
|
});
|
|
50
65
|
}
|
|
@@ -58,7 +73,7 @@ export function useNotificationsUnreadCount(options = {}) {
|
|
|
58
73
|
const bodhveda = useBodhveda();
|
|
59
74
|
const recipientID = useRecipientID();
|
|
60
75
|
return useQuery({
|
|
61
|
-
queryKey: [
|
|
76
|
+
queryKey: [QueryKeys.useNotificationsUnreadCount],
|
|
62
77
|
queryFn: () => bodhveda.recipients.notifications.unreadCount(recipientID),
|
|
63
78
|
...options,
|
|
64
79
|
});
|
|
@@ -80,10 +95,10 @@ export function useUpdateNotificationsState(options = {}) {
|
|
|
80
95
|
},
|
|
81
96
|
onSuccess: (...args) => {
|
|
82
97
|
queryClient.invalidateQueries({
|
|
83
|
-
queryKey: [
|
|
98
|
+
queryKey: [QueryKeys.useNotifications],
|
|
84
99
|
});
|
|
85
100
|
queryClient.invalidateQueries({
|
|
86
|
-
queryKey: [
|
|
101
|
+
queryKey: [QueryKeys.useNotificationsUnreadCount],
|
|
87
102
|
});
|
|
88
103
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(...args);
|
|
89
104
|
},
|
|
@@ -107,10 +122,10 @@ export function useDeleteNotifications(options = {}) {
|
|
|
107
122
|
},
|
|
108
123
|
onSuccess: (...args) => {
|
|
109
124
|
queryClient.invalidateQueries({
|
|
110
|
-
queryKey: [
|
|
125
|
+
queryKey: [QueryKeys.useNotifications],
|
|
111
126
|
});
|
|
112
127
|
queryClient.invalidateQueries({
|
|
113
|
-
queryKey: [
|
|
128
|
+
queryKey: [QueryKeys.useNotificationsUnreadCount],
|
|
114
129
|
});
|
|
115
130
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(...args);
|
|
116
131
|
},
|
|
@@ -127,7 +142,7 @@ export function usePreferences(options = {}) {
|
|
|
127
142
|
const bodhveda = useBodhveda();
|
|
128
143
|
const recipientID = useRecipientID();
|
|
129
144
|
return useQuery({
|
|
130
|
-
queryKey: [
|
|
145
|
+
queryKey: [QueryKeys.usePreferences],
|
|
131
146
|
queryFn: () => bodhveda.recipients.preferences.list(recipientID),
|
|
132
147
|
...options,
|
|
133
148
|
});
|
|
@@ -149,10 +164,10 @@ export function useUpdatePreference(options = {}) {
|
|
|
149
164
|
},
|
|
150
165
|
onSuccess: (...args) => {
|
|
151
166
|
queryClient.invalidateQueries({
|
|
152
|
-
queryKey: [
|
|
167
|
+
queryKey: [QueryKeys.usePreferences],
|
|
153
168
|
});
|
|
154
169
|
queryClient.invalidateQueries({
|
|
155
|
-
queryKey: [
|
|
170
|
+
queryKey: [QueryKeys.useCheckPreference, args[0].target],
|
|
156
171
|
});
|
|
157
172
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(...args);
|
|
158
173
|
},
|
|
@@ -170,7 +185,7 @@ export function useCheckPreference(target, options = {}) {
|
|
|
170
185
|
const bodhveda = useBodhveda();
|
|
171
186
|
const recipientID = useRecipientID();
|
|
172
187
|
return useQuery({
|
|
173
|
-
queryKey: [
|
|
188
|
+
queryKey: [QueryKeys.useCheckPreference, target],
|
|
174
189
|
queryFn: () => bodhveda.recipients.preferences.check(recipientID, { target }),
|
|
175
190
|
...options,
|
|
176
191
|
});
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAGH,WAAW,EACX,QAAQ,EACR,cAAc,GAEjB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAGH,gBAAgB,EAGhB,WAAW,EACX,QAAQ,EACR,cAAc,GAEjB,MAAM,uBAAuB,CAAC;AAe/B,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,gBAAgB,EAAE,CAAC,kBAAkB,CAAC;IACtC,2BAA2B,EAAE,CAAC,6BAA6B,CAAC;IAC5D,kBAAkB,EAAE,CAAC,oBAAoB,CAAC;IAC1C,cAAc,EAAE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,MAAM,CAAC;QAChD,OAAO,EAAE,GAAG,EAAE,CACV,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC;QAClE,GAAG,OAAO;KACb,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodhveda/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "React SDK for Bodhveda",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"typescript": "^5.9.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"bodhveda": "^0.0.
|
|
53
|
+
"bodhveda": "^0.0.5"
|
|
54
54
|
}
|
|
55
55
|
}
|