@bodhveda/react 0.0.1 → 0.0.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Mudgal Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1 +1,80 @@
1
- # React SDK for Bodhveda
1
+ # @bodhveda/react
2
+
3
+ Official React SDK for Bodhveda.
4
+
5
+ It extends the core `bodhveda` SDK with React hooks making it easy to build custom notification experiences.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @bodhveda/react @tanstack/react-query
11
+ ```
12
+
13
+ ## Usage
14
+
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
+ ```tsx
28
+ import { Bodhveda } from "bodhveda";
29
+ import { BodhvedaProvider } from "@bodhveda/react";
30
+
31
+ const client = new Bodhveda("your-api-key");
32
+
33
+ <BodhvedaProvider bodhveda={client} recipientID="user-123">
34
+ <App />
35
+ </BodhvedaProvider>;
36
+ ```
37
+
38
+ ## Hooks
39
+
40
+ All hooks must be used within a `BodhvedaProvider`.
41
+
42
+ ### `useBodhveda()`
43
+
44
+ Returns the Bodhveda client instance.
45
+
46
+ ### `useRecipientID()`
47
+
48
+ Returns the current recipient ID.
49
+
50
+ ### `useNotifications(options?)`
51
+
52
+ Fetches the list of notifications for the current recipient.
53
+
54
+ ### `useNotificationsUnreadCount(options?)`
55
+
56
+ Fetches the unread notifications count for the current recipient.
57
+
58
+ ### `useUpdateNotificationsState(options?)`
59
+
60
+ Returns a mutation hook to update notification state (e.g., mark as read).
61
+
62
+ ### `useDeleteNotifications(options?)`
63
+
64
+ Returns a mutation hook to delete notifications for the current recipient.
65
+
66
+ ### `usePreferences(options?)`
67
+
68
+ Fetches the notification preferences for the current recipient.
69
+
70
+ ### `useUpdatePreference(options?)`
71
+
72
+ Returns a mutation hook to update a notification preference.
73
+
74
+ ### `useCheckPreference(target, options?)`
75
+
76
+ Checks a specific notification preference for the current recipient.
77
+
78
+ ## License
79
+
80
+ MIT
package/dist/hooks.d.ts CHANGED
@@ -2,16 +2,71 @@ import { AnyUseMutationOptions, AnyUseQueryOptions, UseQueryResult } from "@tans
2
2
  import { ListNotificationsResponse, ListPreferencesResponse, UpdateNotificationsStateRequest, UpdateNotificationsStateResponse, SetPreferenceRequest, SetPreferenceResponse, DeleteNotificationsResponse, DeleteNotificationsRequest, Target, CheckPreferenceResponse } from "bodhveda";
3
3
  type QueryOptions = Omit<AnyUseQueryOptions, "queryKey">;
4
4
  type MutationOptions = AnyUseMutationOptions;
5
+ /**
6
+ * Returns the Bodhveda client instance.
7
+ *
8
+ * @throws If used outside a {@link BodhvedaProvider}.
9
+ * @returns {Bodhveda} The Bodhveda client instance.
10
+ */
5
11
  export declare function useBodhveda(): import("bodhveda").Bodhveda;
12
+ /**
13
+ * Returns the current recipient ID.
14
+ *
15
+ * @throws If used outside a {@link BodhvedaProvider}.
16
+ * @returns {string} The recipient ID.
17
+ */
6
18
  export declare function useRecipientID(): string;
19
+ /**
20
+ * Fetches the list of notifications for the current recipient.
21
+ *
22
+ * @param options - Optional react-query options.
23
+ * @returns {UseQueryResult<ListNotificationsResponse>} Query result.
24
+ */
7
25
  export declare function useNotifications(options?: QueryOptions): UseQueryResult<ListNotificationsResponse>;
26
+ /**
27
+ * Fetches the unread notifications count for the current recipient.
28
+ *
29
+ * @param options - Optional react-query options.
30
+ * @returns {UseQueryResult<{ unread_count: number }>} Query result.
31
+ */
8
32
  export declare function useNotificationsUnreadCount(options?: QueryOptions): UseQueryResult<{
9
33
  unread_count: number;
10
34
  }>;
35
+ /**
36
+ * Returns a mutation hook to update notification state (e.g., mark as read).
37
+ *
38
+ * @param options - Optional mutation options.
39
+ * @returns Mutation hook.
40
+ */
11
41
  export declare function useUpdateNotificationsState(options?: MutationOptions): import("@tanstack/react-query").UseMutationResult<UpdateNotificationsStateResponse, unknown, UpdateNotificationsStateRequest, unknown>;
42
+ /**
43
+ * Returns a mutation hook to delete notifications for the current recipient.
44
+ *
45
+ * @param options - Optional mutation options.
46
+ * @returns Mutation hook.
47
+ */
12
48
  export declare function useDeleteNotifications(options?: MutationOptions): import("@tanstack/react-query").UseMutationResult<DeleteNotificationsResponse, unknown, DeleteNotificationsRequest, unknown>;
49
+ /**
50
+ * Fetches the notification preferences for the current recipient.
51
+ *
52
+ * @param options - Optional react-query options.
53
+ * @returns {UseQueryResult<ListPreferencesResponse>} Query result.
54
+ */
13
55
  export declare function usePreferences(options?: QueryOptions): UseQueryResult<ListPreferencesResponse>;
56
+ /**
57
+ * Returns a mutation hook to update a notification preference for the current recipient.
58
+ *
59
+ * @param options - Optional mutation options.
60
+ * @returns Mutation hook.
61
+ */
14
62
  export declare function useUpdatePreference(options?: MutationOptions): import("@tanstack/react-query").UseMutationResult<SetPreferenceResponse, unknown, SetPreferenceRequest, unknown>;
63
+ /**
64
+ * Checks a specific notification preference for the current recipient.
65
+ *
66
+ * @param target - The notification target/channel to check.
67
+ * @param options - Optional react-query options.
68
+ * @returns {UseQueryResult<CheckPreferenceResponse>} Query result.
69
+ */
15
70
  export declare function useCheckPreference(target: Target, options?: QueryOptions): UseQueryResult<CheckPreferenceResponse>;
16
71
  export {};
17
72
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,qBAAqB,EACrB,kBAAkB,EAIlB,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,EAC1B,MAAM,UAAU,CAAC;AAIlB,KAAK,YAAY,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;AACzD,KAAK,eAAe,GAAG,qBAAqB,CAAC;AAS7C,wBAAgB,WAAW,gCAQ1B;AAED,wBAAgB,cAAc,WAQ7B;AAED,wBAAgB,gBAAgB,CAC5B,OAAO,GAAE,YAAiB,GAC3B,cAAc,CAAC,yBAAyB,CAAC,CAS3C;AAED,wBAAgB,2BAA2B,CACvC,OAAO,GAAE,YAAiB,GAC3B,cAAc,CAAC;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CAU1C;AAED,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,eAAoB,0IA6BxE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,eAAoB,gIA0BnE;AAED,wB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,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
@@ -7,6 +7,12 @@ const QUERY_KEYS = {
7
7
  useCheckPreference: ["useCheckPreference"],
8
8
  usePreferences: ["usePreferences"],
9
9
  };
10
+ /**
11
+ * Returns the Bodhveda client instance.
12
+ *
13
+ * @throws If used outside a {@link BodhvedaProvider}.
14
+ * @returns {Bodhveda} The Bodhveda client instance.
15
+ */
10
16
  export function useBodhveda() {
11
17
  const context = useContext(BodhvedaContext);
12
18
  if (!context) {
@@ -14,6 +20,12 @@ export function useBodhveda() {
14
20
  }
15
21
  return context.bodhveda;
16
22
  }
23
+ /**
24
+ * Returns the current recipient ID.
25
+ *
26
+ * @throws If used outside a {@link BodhvedaProvider}.
27
+ * @returns {string} The recipient ID.
28
+ */
17
29
  export function useRecipientID() {
18
30
  const context = useContext(BodhvedaContext);
19
31
  if (!context) {
@@ -21,6 +33,12 @@ export function useRecipientID() {
21
33
  }
22
34
  return context.recipientID;
23
35
  }
36
+ /**
37
+ * Fetches the list of notifications for the current recipient.
38
+ *
39
+ * @param options - Optional react-query options.
40
+ * @returns {UseQueryResult<ListNotificationsResponse>} Query result.
41
+ */
24
42
  export function useNotifications(options = {}) {
25
43
  const bodhveda = useBodhveda();
26
44
  const recipientID = useRecipientID();
@@ -30,6 +48,12 @@ export function useNotifications(options = {}) {
30
48
  ...options,
31
49
  });
32
50
  }
51
+ /**
52
+ * Fetches the unread notifications count for the current recipient.
53
+ *
54
+ * @param options - Optional react-query options.
55
+ * @returns {UseQueryResult<{ unread_count: number }>} Query result.
56
+ */
33
57
  export function useNotificationsUnreadCount(options = {}) {
34
58
  const bodhveda = useBodhveda();
35
59
  const recipientID = useRecipientID();
@@ -39,6 +63,12 @@ export function useNotificationsUnreadCount(options = {}) {
39
63
  ...options,
40
64
  });
41
65
  }
66
+ /**
67
+ * Returns a mutation hook to update notification state (e.g., mark as read).
68
+ *
69
+ * @param options - Optional mutation options.
70
+ * @returns Mutation hook.
71
+ */
42
72
  export function useUpdateNotificationsState(options = {}) {
43
73
  const bodhveda = useBodhveda();
44
74
  const recipientID = useRecipientID();
@@ -60,6 +90,12 @@ export function useUpdateNotificationsState(options = {}) {
60
90
  ...rest,
61
91
  });
62
92
  }
93
+ /**
94
+ * Returns a mutation hook to delete notifications for the current recipient.
95
+ *
96
+ * @param options - Optional mutation options.
97
+ * @returns Mutation hook.
98
+ */
63
99
  export function useDeleteNotifications(options = {}) {
64
100
  const bodhveda = useBodhveda();
65
101
  const recipientID = useRecipientID();
@@ -81,6 +117,12 @@ export function useDeleteNotifications(options = {}) {
81
117
  ...rest,
82
118
  });
83
119
  }
120
+ /**
121
+ * Fetches the notification preferences for the current recipient.
122
+ *
123
+ * @param options - Optional react-query options.
124
+ * @returns {UseQueryResult<ListPreferencesResponse>} Query result.
125
+ */
84
126
  export function usePreferences(options = {}) {
85
127
  const bodhveda = useBodhveda();
86
128
  const recipientID = useRecipientID();
@@ -90,6 +132,12 @@ export function usePreferences(options = {}) {
90
132
  ...options,
91
133
  });
92
134
  }
135
+ /**
136
+ * Returns a mutation hook to update a notification preference for the current recipient.
137
+ *
138
+ * @param options - Optional mutation options.
139
+ * @returns Mutation hook.
140
+ */
93
141
  export function useUpdatePreference(options = {}) {
94
142
  const bodhveda = useBodhveda();
95
143
  const recipientID = useRecipientID();
@@ -111,6 +159,13 @@ export function useUpdatePreference(options = {}) {
111
159
  ...rest,
112
160
  });
113
161
  }
162
+ /**
163
+ * Checks a specific notification preference for the current recipient.
164
+ *
165
+ * @param target - The notification target/channel to check.
166
+ * @param options - Optional react-query options.
167
+ * @returns {UseQueryResult<CheckPreferenceResponse>} Query result.
168
+ */
114
169
  export function useCheckPreference(target, options = {}) {
115
170
  const bodhveda = useBodhveda();
116
171
  const recipientID = useRecipientID();
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;AAc/B,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C,MAAM,UAAU,GAAG;IACf,gBAAgB,EAAE,CAAC,kBAAkB,CAAC;IACtC,2BAA2B,EAAE,CAAC,6BAA6B,CAAC;IAC5D,kBAAkB,EAAE,CAAC,oBAAoB,CAAC;IAC1C,cAAc,EAAE,CAAC,gBAAgB,CAAC;CACrC,CAAC;AAEF,MAAM,UAAU,WAAW;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAE5C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO,OAAO,CAAC,QAAQ,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,cAAc;IAC1B,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAE5C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO,OAAO,CAAC,WAAW,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC5B,UAAwB,EAAE;IAE1B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,OAAO,QAAQ,CAAC;QACZ,QAAQ,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC;QACvC,OAAO,EAAE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";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from "./provider";
2
2
  export * from "./hooks";
3
+ // Export Bodhveda class and types from core package for convenience.
4
+ export * from "bodhveda";
3
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AAExB,qEAAqE;AACrE,cAAc,UAAU,CAAC"}
@@ -1,16 +1,65 @@
1
1
  import { Bodhveda } from "bodhveda";
2
+ /**
3
+ * Props for {@link BodhvedaProvider}.
4
+ *
5
+ * You must provide `recipientID` along with either a `bodhveda` client instance, or an `apiKey` (with optional `options`).
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * <BodhvedaProvider bodhveda={bodhvedaClient} recipientID="user-123">
10
+ * <App />
11
+ * </BodhvedaProvider>
12
+ * ```
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <BodhvedaProvider apiKey="your-api-key" recipientID="user-123">
17
+ * <App />
18
+ * </BodhvedaProvider>
19
+ * ```
20
+ */
2
21
  type BodhvedaProviderProps = {
22
+ /**
23
+ * An existing Bodhveda client instance.
24
+ */
3
25
  bodhveda: Bodhveda;
26
+ /**
27
+ * The recipient's ID.
28
+ */
4
29
  recipientID: string;
30
+ /**
31
+ * React children.
32
+ */
5
33
  children: React.ReactNode;
6
34
  } | {
35
+ /**
36
+ * API key for Bodhveda.
37
+ */
7
38
  apiKey: string;
39
+ /**
40
+ * The recipient's ID.
41
+ */
8
42
  recipientID: string;
43
+ /**
44
+ * Optional configuration.
45
+ */
9
46
  options?: {
47
+ /**
48
+ * Override the API URL.
49
+ */
10
50
  apiURL?: string;
11
51
  };
52
+ /**
53
+ * React children.
54
+ */
12
55
  children: React.ReactNode;
13
56
  };
57
+ /**
58
+ * Use this at the root of your React app to be able to use the hooks provided.
59
+ *
60
+ * @param props - {@link BodhvedaProviderProps}
61
+ * @returns React provider component.
62
+ */
14
63
  export declare function BodhvedaProvider(props: BodhvedaProviderProps): import("react/jsx-runtime").JSX.Element;
15
64
  export {};
16
65
  //# sourceMappingURL=provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,KAAK,qBAAqB,GACpB;IACI,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,GACD;IACI,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAER,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAsC5D"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,KAAK,qBAAqB,GACpB;IACI;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,GACD;IACI;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE;QACN;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAER;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAsC5D"}
package/dist/provider.js CHANGED
@@ -2,6 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { Bodhveda } from "bodhveda";
4
4
  import { BodhvedaContext } from "./context";
5
+ /**
6
+ * Use this at the root of your React app to be able to use the hooks provided.
7
+ *
8
+ * @param props - {@link BodhvedaProviderProps}
9
+ * @returns React provider component.
10
+ */
5
11
  export function BodhvedaProvider(props) {
6
12
  const hasClient = "bodhveda" in props;
7
13
  const hasApiKey = "apiKey" in props;
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAiB5C,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IACzD,MAAM,SAAS,GAAG,UAAU,IAAI,KAAK,CAAC;IACtC,MAAM,SAAS,GAAG,QAAQ,IAAI,KAAK,CAAC;IACpC,MAAM,UAAU,GAAG,SAAS,IAAI,KAAK,CAAC;IAEt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ACtC,MAAM,SAAS,GAAG,QAAQ,IAAI,KAAK,CAAC;IACpC,MAAM,UAAU,GAAG,SAAS,IAAI,KAAK,CAAC;IAEtC,IAAI,SAAS,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACX,8EAA8E,CACjF,CAAC;IACN,CAAC;IAED,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CACX,4EAA4E,CAC/E,CAAC;IACN,CAAC;IAED,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;;QAC1B,IAAI,UAAU,IAAI,KAAK,EAAE,CAAC;YACtB,OAAO,KAAK,CAAC,QAAQ,CAAC;QAC1B,CAAC;QAED,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE;YAC9B,MAAM,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,MAAM;SAChC,CAAC,CAAC;IACP,CAAC,EAAE;QACC,iEAAiE;QACjE,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM;QACnD,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO;KAClD,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,eAAe,CAAC,QAAQ,IACrB,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,YAElD,KAAK,CAAC,QAAQ,GACQ,CAC9B,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhveda/react",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "React SDK for Bodhveda",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -44,12 +44,12 @@
44
44
  "@tanstack/react-query": ">=5.0.0",
45
45
  "react": ">=18"
46
46
  },
47
- "dependencies": {
48
- "bodhveda": "^0.0.1"
49
- },
50
47
  "devDependencies": {
51
48
  "@types/react": "^19.1.12",
52
49
  "react": "^19.1.1",
53
50
  "typescript": "^5.9.2"
51
+ },
52
+ "dependencies": {
53
+ "bodhveda": "^0.0.4"
54
54
  }
55
55
  }