@haex-space/vault-sdk 2.5.84 → 2.5.87
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-C8JtjQzm.d.ts → client-DGSamcol.d.ts} +1 -1
- package/dist/{client-C0fkm4FE.d.mts → client-Y1a7Vkgk.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +22 -1
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +22 -1
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +2 -2
- package/dist/runtime/nuxt.plugin.client.d.ts +2 -2
- package/dist/runtime/nuxt.plugin.client.js +22 -1
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +22 -1
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/svelte.js +22 -1
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +22 -1
- package/dist/svelte.mjs.map +1 -1
- package/dist/{types-CS-ggsXY.d.mts → types-D4ft4_oG.d.mts} +14 -1
- package/dist/{types-CS-ggsXY.d.ts → types-D4ft4_oG.d.ts} +14 -1
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js +22 -1
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +22 -1
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { H as HaextensionConfig, g as getExtensionDir, r as readHaextensionConfig } from './config-D_HXjsEV.mjs';
|
|
2
|
-
import { E as ExtensionManifest } from './types-
|
|
2
|
+
import { E as ExtensionManifest } from './types-D4ft4_oG.mjs';
|
|
3
3
|
|
|
4
4
|
interface ReadManifestOptions {
|
|
5
5
|
/** Root directory of the project */
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { H as HaextensionConfig, g as getExtensionDir, r as readHaextensionConfig } from './config-D_HXjsEV.js';
|
|
2
|
-
import { E as ExtensionManifest } from './types-
|
|
2
|
+
import { E as ExtensionManifest } from './types-D4ft4_oG.js';
|
|
3
3
|
|
|
4
4
|
interface ReadManifestOptions {
|
|
5
5
|
/** Root directory of the project */
|
package/dist/react.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-Y1a7Vkgk.mjs';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
|
-
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-
|
|
3
|
+
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-D4ft4_oG.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* React hook for HaexVault SDK
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-DGSamcol.js';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
|
-
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-
|
|
3
|
+
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-D4ft4_oG.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* React hook for HaexVault SDK
|
package/dist/react.js
CHANGED
|
@@ -339,7 +339,9 @@ var HAEXTENSION_EVENTS = {
|
|
|
339
339
|
/** Search request from HaexHub */
|
|
340
340
|
SEARCH_REQUEST: "haextension:search:request",
|
|
341
341
|
/** File system change detected (from native file watcher) */
|
|
342
|
-
FILE_CHANGED: "filesync:file-changed"
|
|
342
|
+
FILE_CHANGED: "filesync:file-changed",
|
|
343
|
+
/** Tables have been updated via sync (CRDT pull from server) */
|
|
344
|
+
SYNC_TABLES_UPDATED: "haextension:sync:tables-updated"
|
|
343
345
|
};
|
|
344
346
|
var EXTERNAL_EVENTS = {
|
|
345
347
|
/** External request from authorized client */
|
|
@@ -1327,6 +1329,25 @@ async function setupTauriEventListeners(ctx, log, onEvent, onContextChange) {
|
|
|
1327
1329
|
console.error("[HaexVault SDK] Failed to setup file change listener:", error);
|
|
1328
1330
|
log("Failed to setup file change listener:", error);
|
|
1329
1331
|
}
|
|
1332
|
+
console.log("[HaexVault SDK] About to register sync tables updated listener for:", HAEXTENSION_EVENTS.SYNC_TABLES_UPDATED);
|
|
1333
|
+
try {
|
|
1334
|
+
await listen(HAEXTENSION_EVENTS.SYNC_TABLES_UPDATED, (event) => {
|
|
1335
|
+
console.log("[HaexVault SDK] Sync tables updated event received:", event.payload);
|
|
1336
|
+
log("Received sync tables updated event:", event);
|
|
1337
|
+
if (event.payload) {
|
|
1338
|
+
const payload = event.payload;
|
|
1339
|
+
onEvent({
|
|
1340
|
+
type: HAEXTENSION_EVENTS.SYNC_TABLES_UPDATED,
|
|
1341
|
+
data: { tables: payload.tables },
|
|
1342
|
+
timestamp: Date.now()
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
});
|
|
1346
|
+
console.log("[HaexVault SDK] Sync tables updated listener registered successfully");
|
|
1347
|
+
} catch (error) {
|
|
1348
|
+
console.error("[HaexVault SDK] Failed to setup sync tables updated listener:", error);
|
|
1349
|
+
log("Failed to setup sync tables updated listener:", error);
|
|
1350
|
+
}
|
|
1330
1351
|
}
|
|
1331
1352
|
async function initIframeMode(ctx, log, messageHandler, request) {
|
|
1332
1353
|
if (!isInIframe()) {
|