@haex-space/vault-sdk 2.5.17 → 2.5.19
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/{client-ChcEv5iE.d.mts → client-BTKbN_IB.d.mts} +8 -8
- package/dist/{client-B2k574Va.d.ts → client-CP2zRPsi.d.ts} +8 -8
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +7 -7
- package/dist/react.d.ts +7 -7
- package/dist/react.js +8 -8
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +7 -7
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +4 -4
- package/dist/runtime/nuxt.plugin.client.d.ts +4 -4
- package/dist/runtime/nuxt.plugin.client.js +2 -2
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +2 -2
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +9 -9
- package/dist/svelte.d.ts +9 -9
- package/dist/svelte.js +13 -13
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +11 -11
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +7 -7
- package/dist/vue.d.ts +7 -7
- package/dist/vue.js +8 -8
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +7 -7
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-BTKbN_IB.mjs';
|
|
2
2
|
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,8 +11,8 @@ 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
|
|
15
|
-
client:
|
|
14
|
+
declare function useHaexVaultSdk(config?: HaexHubConfig): {
|
|
15
|
+
client: HaexVaultSdk;
|
|
16
16
|
extensionInfo: ExtensionInfo | null;
|
|
17
17
|
context: ApplicationContext | null;
|
|
18
18
|
isSetupComplete: boolean;
|
|
@@ -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(): HaexVaultSdk | null;
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { getHaexVaultSdk, useHaexVaultSdk };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-CP2zRPsi.js';
|
|
2
2
|
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,8 +11,8 @@ 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
|
|
15
|
-
client:
|
|
14
|
+
declare function useHaexVaultSdk(config?: HaexHubConfig): {
|
|
15
|
+
client: HaexVaultSdk;
|
|
16
16
|
extensionInfo: ExtensionInfo | null;
|
|
17
17
|
context: ApplicationContext | null;
|
|
18
18
|
isSetupComplete: boolean;
|
|
@@ -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(): HaexVaultSdk | null;
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { getHaexVaultSdk, useHaexVaultSdk };
|
package/dist/react.js
CHANGED
|
@@ -1741,7 +1741,7 @@ async function respondToExternalRequest(response, request) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
1743
|
// src/client.ts
|
|
1744
|
-
var
|
|
1744
|
+
var HaexVaultSdk = class {
|
|
1745
1745
|
constructor(config = {}) {
|
|
1746
1746
|
// State
|
|
1747
1747
|
this.initialized = false;
|
|
@@ -2077,15 +2077,15 @@ var HaexVaultClient = class {
|
|
|
2077
2077
|
};
|
|
2078
2078
|
|
|
2079
2079
|
// src/index.ts
|
|
2080
|
-
function
|
|
2081
|
-
return new
|
|
2080
|
+
function createHaexVaultSdk(config = {}) {
|
|
2081
|
+
return new HaexVaultSdk(config);
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
2084
|
// src/react.ts
|
|
2085
2085
|
var clientInstance = null;
|
|
2086
|
-
function
|
|
2086
|
+
function useHaexVaultSdk(config = {}) {
|
|
2087
2087
|
if (!clientInstance) {
|
|
2088
|
-
clientInstance =
|
|
2088
|
+
clientInstance = createHaexVaultSdk(config);
|
|
2089
2089
|
}
|
|
2090
2090
|
const [extensionInfo, setExtensionInfo] = react.useState(
|
|
2091
2091
|
clientInstance.extensionInfo
|
|
@@ -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
|