@haex-space/vault-sdk 2.5.17 → 2.5.18
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/dist/react.d.mts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +4 -4
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +3 -3
- package/dist/react.mjs.map +1 -1
- package/dist/svelte.d.mts +7 -7
- package/dist/svelte.d.ts +7 -7
- package/dist/svelte.js +9 -9
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +7 -7
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +5 -5
- package/dist/vue.d.ts +5 -5
- package/dist/vue.js +4 -4
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +3 -3
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
|
3
3
|
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* React hook for
|
|
6
|
+
* React hook for HaexVault SDK
|
|
7
7
|
*
|
|
8
8
|
* Creates a singleton SDK client with reactive state that automatically
|
|
9
9
|
* updates when the SDK receives new data from the parent application.
|
|
@@ -11,7 +11,7 @@ import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from
|
|
|
11
11
|
* @param config - Optional SDK configuration
|
|
12
12
|
* @returns SDK instance with extensionInfo, context, db, and storage
|
|
13
13
|
*/
|
|
14
|
-
declare function
|
|
14
|
+
declare function useHaexVaultSdk(config?: HaexHubConfig): {
|
|
15
15
|
client: HaexVaultClient;
|
|
16
16
|
extensionInfo: ExtensionInfo | null;
|
|
17
17
|
context: ApplicationContext | null;
|
|
@@ -21,9 +21,9 @@ declare function useHaexHub(config?: HaexHubConfig): {
|
|
|
21
21
|
getTableName: (tableName: string) => string;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
|
-
* Get the raw
|
|
24
|
+
* Get the raw HaexVault SDK client instance (non-reactive)
|
|
25
25
|
* Useful for direct API calls without React state overhead
|
|
26
26
|
*/
|
|
27
|
-
declare function
|
|
27
|
+
declare function getHaexVaultSdk(): HaexVaultClient | null;
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { getHaexVaultSdk, useHaexVaultSdk };
|
package/dist/react.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
|
3
3
|
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* React hook for
|
|
6
|
+
* React hook for HaexVault SDK
|
|
7
7
|
*
|
|
8
8
|
* Creates a singleton SDK client with reactive state that automatically
|
|
9
9
|
* updates when the SDK receives new data from the parent application.
|
|
@@ -11,7 +11,7 @@ import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from
|
|
|
11
11
|
* @param config - Optional SDK configuration
|
|
12
12
|
* @returns SDK instance with extensionInfo, context, db, and storage
|
|
13
13
|
*/
|
|
14
|
-
declare function
|
|
14
|
+
declare function useHaexVaultSdk(config?: HaexHubConfig): {
|
|
15
15
|
client: HaexVaultClient;
|
|
16
16
|
extensionInfo: ExtensionInfo | null;
|
|
17
17
|
context: ApplicationContext | null;
|
|
@@ -21,9 +21,9 @@ declare function useHaexHub(config?: HaexHubConfig): {
|
|
|
21
21
|
getTableName: (tableName: string) => string;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
|
-
* Get the raw
|
|
24
|
+
* Get the raw HaexVault SDK client instance (non-reactive)
|
|
25
25
|
* Useful for direct API calls without React state overhead
|
|
26
26
|
*/
|
|
27
|
-
declare function
|
|
27
|
+
declare function getHaexVaultSdk(): HaexVaultClient | null;
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { getHaexVaultSdk, useHaexVaultSdk };
|
package/dist/react.js
CHANGED
|
@@ -2083,7 +2083,7 @@ function createHaexVaultClient(config = {}) {
|
|
|
2083
2083
|
|
|
2084
2084
|
// src/react.ts
|
|
2085
2085
|
var clientInstance = null;
|
|
2086
|
-
function
|
|
2086
|
+
function useHaexVaultSdk(config = {}) {
|
|
2087
2087
|
if (!clientInstance) {
|
|
2088
2088
|
clientInstance = createHaexVaultClient(config);
|
|
2089
2089
|
}
|
|
@@ -2115,11 +2115,11 @@ function useHaexHub(config = {}) {
|
|
|
2115
2115
|
getTableName: clientInstance.getTableName.bind(clientInstance)
|
|
2116
2116
|
};
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function getHaexVaultSdk() {
|
|
2119
2119
|
return clientInstance;
|
|
2120
2120
|
}
|
|
2121
2121
|
|
|
2122
|
-
exports.
|
|
2123
|
-
exports.
|
|
2122
|
+
exports.getHaexVaultSdk = getHaexVaultSdk;
|
|
2123
|
+
exports.useHaexVaultSdk = useHaexVaultSdk;
|
|
2124
2124
|
//# sourceMappingURL=react.js.map
|
|
2125
2125
|
//# sourceMappingURL=react.js.map
|