@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/vue.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { Ref } from 'vue';
|
|
4
4
|
import { H as HaexHubConfig } from './types-C4BTOGe5.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Vue 3 composable for
|
|
7
|
+
* Vue 3 composable for HaexVault SDK
|
|
8
8
|
*
|
|
9
9
|
* Creates a singleton SDK client with reactive properties that automatically
|
|
10
10
|
* update when the SDK receives new data from the parent application.
|
|
@@ -12,8 +12,8 @@ import { H as HaexHubConfig } from './types-C4BTOGe5.mjs';
|
|
|
12
12
|
* @param config - Optional SDK configuration
|
|
13
13
|
* @returns Reactive SDK instance with extensionInfo, context, db, and storage
|
|
14
14
|
*/
|
|
15
|
-
declare function
|
|
16
|
-
client:
|
|
15
|
+
declare function useHaexVaultSdk(config?: HaexHubConfig): {
|
|
16
|
+
client: HaexVaultSdk;
|
|
17
17
|
extensionInfo: Readonly<Ref<{
|
|
18
18
|
readonly publicKey: string;
|
|
19
19
|
readonly name: string;
|
|
@@ -42,9 +42,9 @@ declare function useHaexHub(config?: HaexHubConfig): {
|
|
|
42
42
|
getTableName: (tableName: string) => string;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* Get the raw
|
|
45
|
+
* Get the raw HaexVault SDK client instance (non-reactive)
|
|
46
46
|
* Useful for direct API calls without Vue reactivity overhead
|
|
47
47
|
*/
|
|
48
|
-
declare function
|
|
48
|
+
declare function getHaexVaultSdk(): HaexVaultSdk | null;
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { getHaexVaultSdk, useHaexVaultSdk };
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { Ref } from 'vue';
|
|
4
4
|
import { H as HaexHubConfig } from './types-C4BTOGe5.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Vue 3 composable for
|
|
7
|
+
* Vue 3 composable for HaexVault SDK
|
|
8
8
|
*
|
|
9
9
|
* Creates a singleton SDK client with reactive properties that automatically
|
|
10
10
|
* update when the SDK receives new data from the parent application.
|
|
@@ -12,8 +12,8 @@ import { H as HaexHubConfig } from './types-C4BTOGe5.js';
|
|
|
12
12
|
* @param config - Optional SDK configuration
|
|
13
13
|
* @returns Reactive SDK instance with extensionInfo, context, db, and storage
|
|
14
14
|
*/
|
|
15
|
-
declare function
|
|
16
|
-
client:
|
|
15
|
+
declare function useHaexVaultSdk(config?: HaexHubConfig): {
|
|
16
|
+
client: HaexVaultSdk;
|
|
17
17
|
extensionInfo: Readonly<Ref<{
|
|
18
18
|
readonly publicKey: string;
|
|
19
19
|
readonly name: string;
|
|
@@ -42,9 +42,9 @@ declare function useHaexHub(config?: HaexHubConfig): {
|
|
|
42
42
|
getTableName: (tableName: string) => string;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* Get the raw
|
|
45
|
+
* Get the raw HaexVault SDK client instance (non-reactive)
|
|
46
46
|
* Useful for direct API calls without Vue reactivity overhead
|
|
47
47
|
*/
|
|
48
|
-
declare function
|
|
48
|
+
declare function getHaexVaultSdk(): HaexVaultSdk | null;
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { getHaexVaultSdk, useHaexVaultSdk };
|
package/dist/vue.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,8 +2077,8 @@ 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/vue.ts
|
|
@@ -2086,9 +2086,9 @@ var clientInstance = null;
|
|
|
2086
2086
|
var extensionInfo = null;
|
|
2087
2087
|
var context = null;
|
|
2088
2088
|
var isSetupComplete = null;
|
|
2089
|
-
function
|
|
2089
|
+
function useHaexVaultSdk(config = {}) {
|
|
2090
2090
|
if (!clientInstance) {
|
|
2091
|
-
clientInstance =
|
|
2091
|
+
clientInstance = createHaexVaultSdk(config);
|
|
2092
2092
|
extensionInfo = vue.ref(clientInstance.extensionInfo);
|
|
2093
2093
|
context = vue.ref(clientInstance.context);
|
|
2094
2094
|
isSetupComplete = vue.ref(false);
|
|
@@ -2114,11 +2114,11 @@ function useHaexHub(config = {}) {
|
|
|
2114
2114
|
getTableName: clientInstance.getTableName.bind(clientInstance)
|
|
2115
2115
|
};
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function getHaexVaultSdk() {
|
|
2118
2118
|
return clientInstance;
|
|
2119
2119
|
}
|
|
2120
2120
|
|
|
2121
|
-
exports.
|
|
2122
|
-
exports.
|
|
2121
|
+
exports.getHaexVaultSdk = getHaexVaultSdk;
|
|
2122
|
+
exports.useHaexVaultSdk = useHaexVaultSdk;
|
|
2123
2123
|
//# sourceMappingURL=vue.js.map
|
|
2124
2124
|
//# sourceMappingURL=vue.js.map
|