@hashtree/worker 0.1.26 → 0.2.1
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/README.md +16 -16
- package/package.json +23 -19
- package/src/app-runtime.ts +393 -0
- package/src/capabilities/blossomBandwidthTracker.ts +74 -0
- package/src/capabilities/blossomTransport.ts +179 -0
- package/src/capabilities/connectivity.ts +54 -0
- package/src/capabilities/idbStorage.ts +94 -0
- package/src/capabilities/meshRouterStore.ts +426 -0
- package/src/capabilities/rootResolver.ts +497 -0
- package/src/client-id.ts +137 -0
- package/src/client.ts +501 -0
- package/{dist/entry.js → src/entry.ts} +1 -1
- package/src/htree-path.ts +53 -0
- package/src/htree-url.ts +156 -0
- package/src/index.ts +76 -0
- package/src/mediaStreaming.ts +64 -0
- package/src/p2p/boundedQueue.ts +168 -0
- package/src/p2p/errorMessage.ts +6 -0
- package/src/p2p/index.ts +48 -0
- package/src/p2p/lruCache.ts +78 -0
- package/src/p2p/meshQueryRouter.ts +361 -0
- package/src/p2p/protocol.ts +11 -0
- package/src/p2p/queryForwardingMachine.ts +197 -0
- package/src/p2p/signaling.ts +284 -0
- package/src/p2p/uploadRateLimiter.ts +85 -0
- package/src/p2p/webrtcController.ts +1168 -0
- package/src/p2p/webrtcProxy.ts +519 -0
- package/src/privacyGuards.ts +31 -0
- package/src/protocol.ts +124 -0
- package/src/relay/identity.ts +86 -0
- package/src/relay/mediaHandler.ts +1633 -0
- package/src/relay/ndk.ts +590 -0
- package/{dist/iris/nostr-wasm.js → src/relay/nostr-wasm.ts} +4 -1
- package/src/relay/nostr.ts +249 -0
- package/src/relay/protocol.ts +361 -0
- package/src/relay/publicAssetUrl.ts +25 -0
- package/src/relay/rootPathResolver.ts +50 -0
- package/src/relay/shims.d.ts +17 -0
- package/src/relay/signing.ts +332 -0
- package/src/relay/treeRootCache.ts +354 -0
- package/src/relay/treeRootSubscription.ts +577 -0
- package/src/relay/utils/constants.ts +139 -0
- package/src/relay/utils/errorMessage.ts +7 -0
- package/src/relay/utils/lruCache.ts +79 -0
- package/src/relay/webrtc.ts +5 -0
- package/src/relay/webrtcSignaling.ts +108 -0
- package/src/relay/worker.ts +1787 -0
- package/src/relay-client.ts +265 -0
- package/src/relay-entry.ts +1 -0
- package/src/runtime-network.ts +134 -0
- package/src/runtime.ts +153 -0
- package/src/transferableBytes.ts +5 -0
- package/src/tree-root.ts +851 -0
- package/src/types.ts +8 -0
- package/src/worker.ts +975 -0
- package/LICENSE +0 -21
- package/dist/app-runtime.d.ts +0 -60
- package/dist/app-runtime.d.ts.map +0 -1
- package/dist/app-runtime.js +0 -271
- package/dist/app-runtime.js.map +0 -1
- package/dist/capabilities/blossomBandwidthTracker.d.ts +0 -26
- package/dist/capabilities/blossomBandwidthTracker.d.ts.map +0 -1
- package/dist/capabilities/blossomBandwidthTracker.js +0 -53
- package/dist/capabilities/blossomBandwidthTracker.js.map +0 -1
- package/dist/capabilities/blossomTransport.d.ts +0 -22
- package/dist/capabilities/blossomTransport.d.ts.map +0 -1
- package/dist/capabilities/blossomTransport.js +0 -144
- package/dist/capabilities/blossomTransport.js.map +0 -1
- package/dist/capabilities/connectivity.d.ts +0 -3
- package/dist/capabilities/connectivity.d.ts.map +0 -1
- package/dist/capabilities/connectivity.js +0 -49
- package/dist/capabilities/connectivity.js.map +0 -1
- package/dist/capabilities/idbStorage.d.ts +0 -25
- package/dist/capabilities/idbStorage.d.ts.map +0 -1
- package/dist/capabilities/idbStorage.js +0 -73
- package/dist/capabilities/idbStorage.js.map +0 -1
- package/dist/capabilities/meshRouterStore.d.ts +0 -71
- package/dist/capabilities/meshRouterStore.d.ts.map +0 -1
- package/dist/capabilities/meshRouterStore.js +0 -316
- package/dist/capabilities/meshRouterStore.js.map +0 -1
- package/dist/capabilities/rootResolver.d.ts +0 -10
- package/dist/capabilities/rootResolver.d.ts.map +0 -1
- package/dist/capabilities/rootResolver.js +0 -393
- package/dist/capabilities/rootResolver.js.map +0 -1
- package/dist/client-id.d.ts +0 -18
- package/dist/client-id.d.ts.map +0 -1
- package/dist/client-id.js +0 -98
- package/dist/client-id.js.map +0 -1
- package/dist/client.d.ts +0 -61
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -417
- package/dist/client.js.map +0 -1
- package/dist/entry.d.ts +0 -2
- package/dist/entry.d.ts.map +0 -1
- package/dist/entry.js.map +0 -1
- package/dist/htree-path.d.ts +0 -13
- package/dist/htree-path.d.ts.map +0 -1
- package/dist/htree-path.js +0 -38
- package/dist/htree-path.js.map +0 -1
- package/dist/htree-url.d.ts +0 -22
- package/dist/htree-url.d.ts.map +0 -1
- package/dist/htree-url.js +0 -118
- package/dist/htree-url.js.map +0 -1
- package/dist/index.d.ts +0 -17
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +0 -1
- package/dist/iris/identity.d.ts +0 -36
- package/dist/iris/identity.d.ts.map +0 -1
- package/dist/iris/identity.js +0 -78
- package/dist/iris/identity.js.map +0 -1
- package/dist/iris/mediaHandler.d.ts +0 -64
- package/dist/iris/mediaHandler.d.ts.map +0 -1
- package/dist/iris/mediaHandler.js +0 -1285
- package/dist/iris/mediaHandler.js.map +0 -1
- package/dist/iris/ndk.d.ts +0 -96
- package/dist/iris/ndk.d.ts.map +0 -1
- package/dist/iris/ndk.js +0 -502
- package/dist/iris/ndk.js.map +0 -1
- package/dist/iris/nostr-wasm.d.ts +0 -14
- package/dist/iris/nostr-wasm.d.ts.map +0 -1
- package/dist/iris/nostr-wasm.js.map +0 -1
- package/dist/iris/nostr.d.ts +0 -60
- package/dist/iris/nostr.d.ts.map +0 -1
- package/dist/iris/nostr.js +0 -207
- package/dist/iris/nostr.js.map +0 -1
- package/dist/iris/protocol.d.ts +0 -583
- package/dist/iris/protocol.d.ts.map +0 -1
- package/dist/iris/protocol.js +0 -16
- package/dist/iris/protocol.js.map +0 -1
- package/dist/iris/publicAssetUrl.d.ts +0 -6
- package/dist/iris/publicAssetUrl.d.ts.map +0 -1
- package/dist/iris/publicAssetUrl.js +0 -14
- package/dist/iris/publicAssetUrl.js.map +0 -1
- package/dist/iris/rootPathResolver.d.ts +0 -9
- package/dist/iris/rootPathResolver.d.ts.map +0 -1
- package/dist/iris/rootPathResolver.js +0 -32
- package/dist/iris/rootPathResolver.js.map +0 -1
- package/dist/iris/signing.d.ts +0 -50
- package/dist/iris/signing.d.ts.map +0 -1
- package/dist/iris/signing.js +0 -299
- package/dist/iris/signing.js.map +0 -1
- package/dist/iris/treeRootCache.d.ts +0 -86
- package/dist/iris/treeRootCache.d.ts.map +0 -1
- package/dist/iris/treeRootCache.js +0 -269
- package/dist/iris/treeRootCache.js.map +0 -1
- package/dist/iris/treeRootSubscription.d.ts +0 -55
- package/dist/iris/treeRootSubscription.d.ts.map +0 -1
- package/dist/iris/treeRootSubscription.js +0 -479
- package/dist/iris/treeRootSubscription.js.map +0 -1
- package/dist/iris/utils/constants.d.ts +0 -76
- package/dist/iris/utils/constants.d.ts.map +0 -1
- package/dist/iris/utils/constants.js +0 -113
- package/dist/iris/utils/constants.js.map +0 -1
- package/dist/iris/utils/errorMessage.d.ts +0 -5
- package/dist/iris/utils/errorMessage.d.ts.map +0 -1
- package/dist/iris/utils/errorMessage.js +0 -8
- package/dist/iris/utils/errorMessage.js.map +0 -1
- package/dist/iris/utils/lruCache.d.ts +0 -26
- package/dist/iris/utils/lruCache.d.ts.map +0 -1
- package/dist/iris/utils/lruCache.js +0 -66
- package/dist/iris/utils/lruCache.js.map +0 -1
- package/dist/iris/webrtc.d.ts +0 -2
- package/dist/iris/webrtc.d.ts.map +0 -1
- package/dist/iris/webrtc.js +0 -3
- package/dist/iris/webrtc.js.map +0 -1
- package/dist/iris/webrtcSignaling.d.ts +0 -37
- package/dist/iris/webrtcSignaling.d.ts.map +0 -1
- package/dist/iris/webrtcSignaling.js +0 -86
- package/dist/iris/webrtcSignaling.js.map +0 -1
- package/dist/iris/worker.d.ts +0 -12
- package/dist/iris/worker.d.ts.map +0 -1
- package/dist/iris/worker.js +0 -1529
- package/dist/iris/worker.js.map +0 -1
- package/dist/iris-client.d.ts +0 -31
- package/dist/iris-client.d.ts.map +0 -1
- package/dist/iris-client.js +0 -197
- package/dist/iris-client.js.map +0 -1
- package/dist/iris-entry.d.ts +0 -2
- package/dist/iris-entry.d.ts.map +0 -1
- package/dist/iris-entry.js +0 -2
- package/dist/iris-entry.js.map +0 -1
- package/dist/mediaStreaming.d.ts +0 -7
- package/dist/mediaStreaming.d.ts.map +0 -1
- package/dist/mediaStreaming.js +0 -48
- package/dist/mediaStreaming.js.map +0 -1
- package/dist/p2p/boundedQueue.d.ts +0 -79
- package/dist/p2p/boundedQueue.d.ts.map +0 -1
- package/dist/p2p/boundedQueue.js +0 -134
- package/dist/p2p/boundedQueue.js.map +0 -1
- package/dist/p2p/errorMessage.d.ts +0 -5
- package/dist/p2p/errorMessage.d.ts.map +0 -1
- package/dist/p2p/errorMessage.js +0 -7
- package/dist/p2p/errorMessage.js.map +0 -1
- package/dist/p2p/index.d.ts +0 -8
- package/dist/p2p/index.d.ts.map +0 -1
- package/dist/p2p/index.js +0 -6
- package/dist/p2p/index.js.map +0 -1
- package/dist/p2p/lruCache.d.ts +0 -26
- package/dist/p2p/lruCache.d.ts.map +0 -1
- package/dist/p2p/lruCache.js +0 -65
- package/dist/p2p/lruCache.js.map +0 -1
- package/dist/p2p/meshQueryRouter.d.ts +0 -44
- package/dist/p2p/meshQueryRouter.d.ts.map +0 -1
- package/dist/p2p/meshQueryRouter.js +0 -228
- package/dist/p2p/meshQueryRouter.js.map +0 -1
- package/dist/p2p/protocol.d.ts +0 -10
- package/dist/p2p/protocol.d.ts.map +0 -1
- package/dist/p2p/protocol.js +0 -2
- package/dist/p2p/protocol.js.map +0 -1
- package/dist/p2p/queryForwardingMachine.d.ts +0 -46
- package/dist/p2p/queryForwardingMachine.d.ts.map +0 -1
- package/dist/p2p/queryForwardingMachine.js +0 -144
- package/dist/p2p/queryForwardingMachine.js.map +0 -1
- package/dist/p2p/signaling.d.ts +0 -63
- package/dist/p2p/signaling.d.ts.map +0 -1
- package/dist/p2p/signaling.js +0 -185
- package/dist/p2p/signaling.js.map +0 -1
- package/dist/p2p/uploadRateLimiter.d.ts +0 -21
- package/dist/p2p/uploadRateLimiter.d.ts.map +0 -1
- package/dist/p2p/uploadRateLimiter.js +0 -62
- package/dist/p2p/uploadRateLimiter.js.map +0 -1
- package/dist/p2p/webrtcController.d.ts +0 -168
- package/dist/p2p/webrtcController.d.ts.map +0 -1
- package/dist/p2p/webrtcController.js +0 -902
- package/dist/p2p/webrtcController.js.map +0 -1
- package/dist/p2p/webrtcProxy.d.ts +0 -62
- package/dist/p2p/webrtcProxy.d.ts.map +0 -1
- package/dist/p2p/webrtcProxy.js +0 -447
- package/dist/p2p/webrtcProxy.js.map +0 -1
- package/dist/privacyGuards.d.ts +0 -14
- package/dist/privacyGuards.d.ts.map +0 -1
- package/dist/privacyGuards.js +0 -27
- package/dist/privacyGuards.js.map +0 -1
- package/dist/protocol.d.ts +0 -225
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -2
- package/dist/protocol.js.map +0 -1
- package/dist/runtime-network.d.ts +0 -23
- package/dist/runtime-network.d.ts.map +0 -1
- package/dist/runtime-network.js +0 -105
- package/dist/runtime-network.js.map +0 -1
- package/dist/runtime.d.ts +0 -23
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js +0 -122
- package/dist/runtime.js.map +0 -1
- package/dist/tree-root.d.ts +0 -201
- package/dist/tree-root.d.ts.map +0 -1
- package/dist/tree-root.js +0 -632
- package/dist/tree-root.js.map +0 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/worker.d.ts +0 -9
- package/dist/worker.d.ts.map +0 -1
- package/dist/worker.js +0 -797
- package/dist/worker.js.map +0 -1
package/dist/tree-root.d.ts
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TreeRootRegistry - Browser-side single source of truth for tree root data
|
|
3
|
-
*
|
|
4
|
-
* This module provides:
|
|
5
|
-
* - Unified record format for all root data
|
|
6
|
-
* - Subscription API that emits cached data immediately, then updates
|
|
7
|
-
* - Async resolve with timeout for waiting on first resolution
|
|
8
|
-
* - Local write tracking with dirty flag for publish throttling
|
|
9
|
-
* - Pluggable persistence (localStorage by default)
|
|
10
|
-
*
|
|
11
|
-
* This module lives under @hashtree/worker because it coordinates with worker
|
|
12
|
-
* updates and publish flows, but it runs on the app/main thread.
|
|
13
|
-
*/
|
|
14
|
-
import type { Hash, TreeVisibility } from '@hashtree/core';
|
|
15
|
-
/**
|
|
16
|
-
* Source of the tree root update
|
|
17
|
-
*/
|
|
18
|
-
export type TreeRootSource = 'local-write' | 'nostr' | 'prefetch' | 'worker';
|
|
19
|
-
/**
|
|
20
|
-
* Core record format - single source of truth for all root data
|
|
21
|
-
*/
|
|
22
|
-
export interface TreeRootRecord {
|
|
23
|
-
hash: Hash;
|
|
24
|
-
key?: Hash;
|
|
25
|
-
visibility: TreeVisibility;
|
|
26
|
-
labels?: string[];
|
|
27
|
-
updatedAt: number;
|
|
28
|
-
source: TreeRootSource;
|
|
29
|
-
dirty: boolean;
|
|
30
|
-
encryptedKey?: string;
|
|
31
|
-
keyId?: string;
|
|
32
|
-
selfEncryptedKey?: string;
|
|
33
|
-
selfEncryptedLinkKey?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Listener callback type
|
|
37
|
-
*/
|
|
38
|
-
type Listener = (record: TreeRootRecord | null) => void;
|
|
39
|
-
/**
|
|
40
|
-
* Persistence interface - allows swapping localStorage for IndexedDB/etc
|
|
41
|
-
*/
|
|
42
|
-
export interface RegistryPersistence {
|
|
43
|
-
save(key: string, record: TreeRootRecord): void;
|
|
44
|
-
load(key: string): TreeRootRecord | null;
|
|
45
|
-
delete(key: string): void;
|
|
46
|
-
loadAll(): Map<string, TreeRootRecord>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* TreeRootRegistry - singleton class for managing tree root data
|
|
50
|
-
*/
|
|
51
|
-
declare class TreeRootRegistryImpl {
|
|
52
|
-
private records;
|
|
53
|
-
private listeners;
|
|
54
|
-
private globalListeners;
|
|
55
|
-
private persistence;
|
|
56
|
-
private publishTimers;
|
|
57
|
-
private publishFn;
|
|
58
|
-
private publishDelay;
|
|
59
|
-
private retryDelay;
|
|
60
|
-
constructor(persistence?: RegistryPersistence);
|
|
61
|
-
/**
|
|
62
|
-
* Hydrate from persistence on startup
|
|
63
|
-
*/
|
|
64
|
-
private hydrate;
|
|
65
|
-
/**
|
|
66
|
-
* Set the publish function (called with throttling for dirty records)
|
|
67
|
-
*/
|
|
68
|
-
setPublishFn(fn: (npub: string, treeName: string, record: TreeRootRecord) => Promise<boolean>): void;
|
|
69
|
-
/**
|
|
70
|
-
* Build cache key from npub and treeName
|
|
71
|
-
*/
|
|
72
|
-
private makeKey;
|
|
73
|
-
/**
|
|
74
|
-
* Notify listeners of a record change
|
|
75
|
-
*/
|
|
76
|
-
private notify;
|
|
77
|
-
private shouldAcceptUpdate;
|
|
78
|
-
private mergeSameHashMetadata;
|
|
79
|
-
/**
|
|
80
|
-
* Sync lookup - returns cached record or null (no side effects)
|
|
81
|
-
*/
|
|
82
|
-
get(npub: string, treeName: string): TreeRootRecord | null;
|
|
83
|
-
/**
|
|
84
|
-
* Get by key directly
|
|
85
|
-
*/
|
|
86
|
-
getByKey(key: string): TreeRootRecord | null;
|
|
87
|
-
/**
|
|
88
|
-
* Async resolve - returns current record if cached, otherwise waits for first resolve
|
|
89
|
-
*/
|
|
90
|
-
resolve(npub: string, treeName: string, options?: {
|
|
91
|
-
timeoutMs?: number;
|
|
92
|
-
}): Promise<TreeRootRecord | null>;
|
|
93
|
-
/**
|
|
94
|
-
* Subscribe to updates for a specific tree
|
|
95
|
-
* Emits current snapshot immediately if available, then future updates
|
|
96
|
-
*/
|
|
97
|
-
subscribe(npub: string, treeName: string, callback: Listener): () => void;
|
|
98
|
-
/**
|
|
99
|
-
* Subscribe to all registry updates (for bridges like Tauri/worker)
|
|
100
|
-
*/
|
|
101
|
-
subscribeAll(callback: (key: string, record: TreeRootRecord | null) => void): () => void;
|
|
102
|
-
/**
|
|
103
|
-
* Set record from local write - marks dirty and schedules publish
|
|
104
|
-
*/
|
|
105
|
-
setLocal(npub: string, treeName: string, hash: Hash, options?: {
|
|
106
|
-
key?: Hash;
|
|
107
|
-
visibility?: TreeVisibility;
|
|
108
|
-
labels?: string[];
|
|
109
|
-
encryptedKey?: string;
|
|
110
|
-
keyId?: string;
|
|
111
|
-
selfEncryptedKey?: string;
|
|
112
|
-
selfEncryptedLinkKey?: string;
|
|
113
|
-
}): void;
|
|
114
|
-
/**
|
|
115
|
-
* Set record from resolver (Nostr event) - only updates if newer
|
|
116
|
-
*/
|
|
117
|
-
setFromResolver(npub: string, treeName: string, hash: Hash, updatedAt: number, options?: {
|
|
118
|
-
key?: Hash;
|
|
119
|
-
visibility?: TreeVisibility;
|
|
120
|
-
labels?: string[];
|
|
121
|
-
encryptedKey?: string;
|
|
122
|
-
keyId?: string;
|
|
123
|
-
selfEncryptedKey?: string;
|
|
124
|
-
selfEncryptedLinkKey?: string;
|
|
125
|
-
}): boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Merge a decrypted key into an existing record without changing updatedAt/source.
|
|
128
|
-
* Returns true if the record was updated.
|
|
129
|
-
*/
|
|
130
|
-
mergeKey(npub: string, treeName: string, hash: Hash, key: Hash): boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Set record from worker (Nostr subscription routed through worker)
|
|
133
|
-
* Similar to setFromResolver but source is 'worker'
|
|
134
|
-
*/
|
|
135
|
-
setFromWorker(npub: string, treeName: string, hash: Hash, updatedAt: number, options?: {
|
|
136
|
-
key?: Hash;
|
|
137
|
-
visibility?: TreeVisibility;
|
|
138
|
-
labels?: string[];
|
|
139
|
-
encryptedKey?: string;
|
|
140
|
-
keyId?: string;
|
|
141
|
-
selfEncryptedKey?: string;
|
|
142
|
-
selfEncryptedLinkKey?: string;
|
|
143
|
-
}): boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Set record from external source (Tauri, worker, prefetch)
|
|
146
|
-
*/
|
|
147
|
-
setFromExternal(npub: string, treeName: string, hash: Hash, source: TreeRootSource, options?: {
|
|
148
|
-
key?: Hash;
|
|
149
|
-
visibility?: TreeVisibility;
|
|
150
|
-
labels?: string[];
|
|
151
|
-
updatedAt?: number;
|
|
152
|
-
encryptedKey?: string;
|
|
153
|
-
keyId?: string;
|
|
154
|
-
selfEncryptedKey?: string;
|
|
155
|
-
selfEncryptedLinkKey?: string;
|
|
156
|
-
}): void;
|
|
157
|
-
/**
|
|
158
|
-
* Delete a record
|
|
159
|
-
*/
|
|
160
|
-
delete(npub: string, treeName: string): void;
|
|
161
|
-
/**
|
|
162
|
-
* Schedule a throttled publish
|
|
163
|
-
*/
|
|
164
|
-
private schedulePublish;
|
|
165
|
-
/**
|
|
166
|
-
* Execute the publish
|
|
167
|
-
*/
|
|
168
|
-
private doPublish;
|
|
169
|
-
/**
|
|
170
|
-
* Force immediate publish of all dirty records
|
|
171
|
-
*/
|
|
172
|
-
flushPendingPublishes(): Promise<void>;
|
|
173
|
-
/**
|
|
174
|
-
* Cancel pending publish (call before delete to prevent "undelete")
|
|
175
|
-
*/
|
|
176
|
-
cancelPendingPublish(npub: string, treeName: string): void;
|
|
177
|
-
/**
|
|
178
|
-
* Get all records (for debugging/migration)
|
|
179
|
-
*/
|
|
180
|
-
getAllRecords(): Map<string, TreeRootRecord>;
|
|
181
|
-
/**
|
|
182
|
-
* Check if a record exists
|
|
183
|
-
*/
|
|
184
|
-
has(npub: string, treeName: string): boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Get visibility for a tree
|
|
187
|
-
*/
|
|
188
|
-
getVisibility(npub: string, treeName: string): TreeVisibility | undefined;
|
|
189
|
-
/**
|
|
190
|
-
* Get labels for a tree
|
|
191
|
-
*/
|
|
192
|
-
getLabels(npub: string, treeName: string): string[] | undefined;
|
|
193
|
-
}
|
|
194
|
-
declare global {
|
|
195
|
-
interface Window {
|
|
196
|
-
__treeRootRegistry?: TreeRootRegistryImpl;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
export declare const treeRootRegistry: TreeRootRegistryImpl;
|
|
200
|
-
export type { TreeRootRecord as TreeRootEntry };
|
|
201
|
-
//# sourceMappingURL=tree-root.d.ts.map
|
package/dist/tree-root.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-root.d.ts","sourceRoot":"","sources":["../src/tree-root.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,cAAc,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IAGf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAmBD;;GAEG;AACH,KAAK,QAAQ,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,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