mindcache 3.4.2 → 3.4.3
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/{CloudAdapter-D2xxVv4E.d.mts → CloudAdapter-CJS3Sh4f.d.mts} +4 -1
- package/dist/{CloudAdapter-D2xxVv4E.d.ts → CloudAdapter-CJS3Sh4f.d.ts} +4 -1
- package/dist/cloud/index.d.mts +2 -2
- package/dist/cloud/index.d.ts +2 -2
- package/dist/cloud/index.js +42 -7
- package/dist/cloud/index.js.map +1 -1
- package/dist/cloud/index.mjs +42 -7
- package/dist/cloud/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -31
- package/dist/index.d.ts +4 -31
- package/dist/index.js +42 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -7
- package/dist/index.mjs.map +1 -1
- package/dist/server.d.mts +33 -0
- package/dist/server.d.ts +33 -0
- package/dist/server.js +2280 -0
- package/dist/server.js.map +1 -0
- package/dist/server.mjs +2250 -0
- package/dist/server.mjs.map +1 -0
- package/package.json +6 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { M as MindCache } from './CloudAdapter-CJS3Sh4f.mjs';
|
|
2
|
+
export { A as AccessLevel, a as CloudAdapter, c as CloudAdapterEvents, C as CloudConfig, b as ConnectionState, m as DEFAULT_KEY_ATTRIBUTES, G as GlobalListener, H as HistoryEntry, j as HistoryOptions, K as KeyAttributes, i as KeyEntry, f as KeyType, L as Listener, k as MindCacheCloudOptions, l as MindCacheIndexedDBOptions, e as MindCacheOptions, h as STM, i as STMEntry, g as SystemTag, n as SystemTagHelpers } from './CloudAdapter-CJS3Sh4f.mjs';
|
|
3
|
+
import 'yjs';
|
|
4
|
+
|
|
5
|
+
interface IndexedDBConfig {
|
|
6
|
+
/** Database name (defaults to 'mindcache_db') */
|
|
7
|
+
dbName?: string;
|
|
8
|
+
/** Store name (defaults to 'mindcache_store') */
|
|
9
|
+
storeName?: string;
|
|
10
|
+
/** Storage key (defaults to 'mindcache_data') */
|
|
11
|
+
key?: string;
|
|
12
|
+
/** Debounce time in ms for saving (defaults to 1000) */
|
|
13
|
+
debounceMs?: number;
|
|
14
|
+
}
|
|
15
|
+
declare class IndexedDBAdapter {
|
|
16
|
+
private config;
|
|
17
|
+
private mindcache;
|
|
18
|
+
private unsubscribe;
|
|
19
|
+
private saveTimeout;
|
|
20
|
+
private db;
|
|
21
|
+
private dbName;
|
|
22
|
+
private storeName;
|
|
23
|
+
private key;
|
|
24
|
+
constructor(config?: IndexedDBConfig);
|
|
25
|
+
attach(mc: MindCache): Promise<void>;
|
|
26
|
+
detach(): void;
|
|
27
|
+
private initDB;
|
|
28
|
+
private load;
|
|
29
|
+
private scheduleSave;
|
|
30
|
+
private save;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { IndexedDBAdapter, type IndexedDBConfig, MindCache };
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { M as MindCache } from './CloudAdapter-CJS3Sh4f.js';
|
|
2
|
+
export { A as AccessLevel, a as CloudAdapter, c as CloudAdapterEvents, C as CloudConfig, b as ConnectionState, m as DEFAULT_KEY_ATTRIBUTES, G as GlobalListener, H as HistoryEntry, j as HistoryOptions, K as KeyAttributes, i as KeyEntry, f as KeyType, L as Listener, k as MindCacheCloudOptions, l as MindCacheIndexedDBOptions, e as MindCacheOptions, h as STM, i as STMEntry, g as SystemTag, n as SystemTagHelpers } from './CloudAdapter-CJS3Sh4f.js';
|
|
3
|
+
import 'yjs';
|
|
4
|
+
|
|
5
|
+
interface IndexedDBConfig {
|
|
6
|
+
/** Database name (defaults to 'mindcache_db') */
|
|
7
|
+
dbName?: string;
|
|
8
|
+
/** Store name (defaults to 'mindcache_store') */
|
|
9
|
+
storeName?: string;
|
|
10
|
+
/** Storage key (defaults to 'mindcache_data') */
|
|
11
|
+
key?: string;
|
|
12
|
+
/** Debounce time in ms for saving (defaults to 1000) */
|
|
13
|
+
debounceMs?: number;
|
|
14
|
+
}
|
|
15
|
+
declare class IndexedDBAdapter {
|
|
16
|
+
private config;
|
|
17
|
+
private mindcache;
|
|
18
|
+
private unsubscribe;
|
|
19
|
+
private saveTimeout;
|
|
20
|
+
private db;
|
|
21
|
+
private dbName;
|
|
22
|
+
private storeName;
|
|
23
|
+
private key;
|
|
24
|
+
constructor(config?: IndexedDBConfig);
|
|
25
|
+
attach(mc: MindCache): Promise<void>;
|
|
26
|
+
detach(): void;
|
|
27
|
+
private initDB;
|
|
28
|
+
private load;
|
|
29
|
+
private scheduleSave;
|
|
30
|
+
private save;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { IndexedDBAdapter, type IndexedDBConfig, MindCache };
|