@doubling/compound-sync 1.12.4 → 1.12.6
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/auth-persistence.d.ts +22 -0
- package/auth-persistence.js +79 -83
- package/config.d.ts +13 -0
- package/config.js +55 -54
- package/files.d.ts +221 -0
- package/files.js +373 -438
- package/folder-chain.d.ts +44 -0
- package/folder-chain.js +52 -59
- package/manifest.d.ts +38 -0
- package/manifest.js +87 -89
- package/org-sync.d.ts +16 -0
- package/org-sync.js +1156 -1203
- package/package.json +24 -3
- package/paths.d.ts +1 -1
- package/pre-mint-app-check.d.ts +6 -0
- package/pre-mint-app-check.js +46 -39
- package/push-outcome.d.ts +9 -0
- package/push-outcome.js +6 -5
- package/setup-auth-with-pre-mint.d.ts +24 -0
- package/setup-auth-with-pre-mint.js +48 -55
- package/storage-helpers.d.ts +14 -0
- package/storage-helpers.js +43 -107
- package/sync-state.d.ts +4 -0
- package/sync-state.js +30 -16
- package/sync.d.ts +18 -0
- package/sync.js +464 -515
- package/team-registry.d.ts +41 -0
- package/team-registry.js +90 -81
- package/yjs-binding-state.d.ts +4 -0
- package/yjs-binding-state.js +25 -22
- package/yjs-file-binding.d.ts +32 -0
- package/yjs-file-binding.js +217 -204
- package/yjs-firestore-update-store.d.ts +13 -0
- package/yjs-firestore-update-store.js +99 -103
- package/yjs-provider.d.ts +43 -0
- package/yjs-provider.js +79 -75
package/yjs-file-binding.js
CHANGED
|
@@ -16,221 +16,234 @@
|
|
|
16
16
|
// touching the filesystem and so the daemon can plumb its existing
|
|
17
17
|
// suppressLocal set (avoids the disk write feeding back through
|
|
18
18
|
// chokidar as a fake user edit).
|
|
19
|
-
|
|
20
19
|
import * as Y from 'yjs';
|
|
21
20
|
import fastDiff from 'fast-diff';
|
|
22
21
|
import { YjsProvider } from './yjs-provider.js';
|
|
23
|
-
|
|
24
22
|
export class YjsFileBinding {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// any). After this, ytext equals what disk was at the daemon's
|
|
56
|
-
// last write. This is the common ancestor for any divergence
|
|
57
|
-
// that happened while the daemon was offline.
|
|
58
|
-
// 2. If the current disk content differs from the restored ytext,
|
|
59
|
-
// the difference is disk-only edits made during downtime.
|
|
60
|
-
// Apply them as Y.Doc operations (positions are valid in the
|
|
61
|
-
// restored ytext since restored-ytext == lastDisk == fast-diff
|
|
62
|
-
// input).
|
|
63
|
-
// 3. provider.loadInitial() pulls cloud's yupdates on top. Y.applyUpdate
|
|
64
|
-
// is idempotent (Yjs's state-vector dedup), so already-known
|
|
65
|
-
// ops are no-ops. Only NEW cloud ops (offline web edits) take
|
|
66
|
-
// effect. They CRDT-merge with the disk ops from step 2.
|
|
67
|
-
//
|
|
68
|
-
// Without step 1, fast-diff(post-loadInitial-ytext, currentDisk)
|
|
69
|
-
// treats web's offline insertions as "things present in ytext but
|
|
70
|
-
// missing from disk" and DELETES them. That's the bug this fixes.
|
|
71
|
-
// Seed lastDiskText from the disk content we observed at construction
|
|
72
|
-
// time so the initial flush is a no-op when ytext already matches
|
|
73
|
-
// what's on disk. Without this, the binding's initial flush always
|
|
74
|
-
// wrote ytext to disk on startup, which clobbered any content the
|
|
75
|
-
// daemon's legacy contentHash + Storage blob pull (the fallthrough
|
|
76
|
-
// path in handleFirestoreChange) may have written first for non-Yjs
|
|
77
|
-
// cloud edits. Regression case: "after restart, pulls a web edit
|
|
78
|
-
// made while stopped despite a fresh local mtime" in
|
|
79
|
-
// sync/org-sync.test.js.
|
|
80
|
-
this.lastDiskText = this.currentDiskText;
|
|
81
|
-
|
|
82
|
-
if (this.initialDocState) {
|
|
83
|
-
Y.applyUpdate(this.doc, this.initialDocState);
|
|
23
|
+
doc;
|
|
24
|
+
ytext;
|
|
25
|
+
store;
|
|
26
|
+
provider;
|
|
27
|
+
debounceMs;
|
|
28
|
+
onDiskWrite;
|
|
29
|
+
onDocStateChange;
|
|
30
|
+
initialDocState;
|
|
31
|
+
currentDiskText;
|
|
32
|
+
flushTimer = null;
|
|
33
|
+
lastDiskText = null;
|
|
34
|
+
observer = null;
|
|
35
|
+
stopped = false;
|
|
36
|
+
constructor(store, { debounceMs = 300, onDiskWrite, onDocStateChange, initialDocState = null, currentDiskText = null, }) {
|
|
37
|
+
if (!onDiskWrite)
|
|
38
|
+
throw new Error('YjsFileBinding: onDiskWrite is required');
|
|
39
|
+
this.doc = new Y.Doc();
|
|
40
|
+
this.ytext = this.doc.getText('content');
|
|
41
|
+
this.store = store;
|
|
42
|
+
this.provider = new YjsProvider(this.doc, store);
|
|
43
|
+
this.debounceMs = debounceMs;
|
|
44
|
+
this.onDiskWrite = onDiskWrite;
|
|
45
|
+
// Called after every Y.Doc mutation reaches a stable state, with
|
|
46
|
+
// the encoded Y.Doc binary state. The daemon persists this to
|
|
47
|
+
// disk so the next startup can restore the baseline and merge
|
|
48
|
+
// offline disk edits without losing offline cloud edits (DOU-209).
|
|
49
|
+
this.onDocStateChange = onDocStateChange ?? null;
|
|
50
|
+
// Restore options for offline-merge (DOU-209).
|
|
51
|
+
this.initialDocState = initialDocState;
|
|
52
|
+
this.currentDiskText = currentDiskText;
|
|
84
53
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
54
|
+
async start() {
|
|
55
|
+
// DOU-209: offline-merge startup. Three-step process that turns the
|
|
56
|
+
// daemon's restart into a deterministic CRDT merge:
|
|
57
|
+
//
|
|
58
|
+
// 1. Restore Y.Doc from the daemon's last-saved binary state (if
|
|
59
|
+
// any). After this, ytext equals what disk was at the daemon's
|
|
60
|
+
// last write. This is the common ancestor for any divergence
|
|
61
|
+
// that happened while the daemon was offline.
|
|
62
|
+
// 2. If the current disk content differs from the restored ytext,
|
|
63
|
+
// the difference is disk-only edits made during downtime.
|
|
64
|
+
// Apply them as Y.Doc operations (positions are valid in the
|
|
65
|
+
// restored ytext since restored-ytext == lastDisk == fast-diff
|
|
66
|
+
// input).
|
|
67
|
+
// 3. provider.loadInitial() pulls cloud's yupdates on top. Y.applyUpdate
|
|
68
|
+
// is idempotent (Yjs's state-vector dedup), so already-known
|
|
69
|
+
// ops are no-ops. Only NEW cloud ops (offline web edits) take
|
|
70
|
+
// effect. They CRDT-merge with the disk ops from step 2.
|
|
71
|
+
//
|
|
72
|
+
// Without step 1, fast-diff(post-loadInitial-ytext, currentDisk)
|
|
73
|
+
// treats web's offline insertions as "things present in ytext but
|
|
74
|
+
// missing from disk" and DELETES them. That's the bug this fixes.
|
|
75
|
+
// Seed lastDiskText from the disk content we observed at construction
|
|
76
|
+
// time so the initial flush is a no-op when ytext already matches
|
|
77
|
+
// what's on disk. Without this, the binding's initial flush always
|
|
78
|
+
// wrote ytext to disk on startup, which clobbered any content the
|
|
79
|
+
// daemon's legacy contentHash + Storage blob pull (the fallthrough
|
|
80
|
+
// path in handleFirestoreChange) may have written first for non-Yjs
|
|
81
|
+
// cloud edits. Regression case: "after restart, pulls a web edit
|
|
82
|
+
// made while stopped despite a fresh local mtime" in
|
|
83
|
+
// sync/org-sync.test.js.
|
|
84
|
+
this.lastDiskText = this.currentDiskText;
|
|
85
|
+
if (this.initialDocState) {
|
|
86
|
+
Y.applyUpdate(this.doc, this.initialDocState);
|
|
87
|
+
}
|
|
88
|
+
// Disk-merge ops emitted below need to reach the store so other
|
|
89
|
+
// clients see the offline disk edits. The provider's local-update
|
|
90
|
+
// handler isn't attached yet (it's wired in startSubscription,
|
|
91
|
+
// which we can't call until after loadInitial), so we capture the
|
|
92
|
+
// updates synchronously here and push them after the subscription
|
|
93
|
+
// is set up. Capture by Y.Doc 'update' event with a 'disk' origin
|
|
94
|
+
// filter so we only grab the ops from our own _applyTextDiff and
|
|
95
|
+
// not anything spurious.
|
|
96
|
+
//
|
|
97
|
+
// The disk-merge is only safe when we have an `initialDocState`:
|
|
98
|
+
// that gives ytext a known baseline (the daemon's last view of the
|
|
99
|
+
// file) before we diff against currentDiskText, so fast-diff
|
|
100
|
+
// positions are valid AND the resulting ops are scoped to JUST the
|
|
101
|
+
// disk-only changes. Without a baseline, applying currentDiskText
|
|
102
|
+
// as fresh inserts on top of an empty ytext would then collide
|
|
103
|
+
// with whatever loadInitial pulls from the cloud: Yjs would see
|
|
104
|
+
// both the daemon's "fresh insert" and the cloud's "original
|
|
105
|
+
// insert" as concurrent ops, producing duplicated content. So on
|
|
106
|
+
// first contact (no saved state) we skip the disk merge and let
|
|
107
|
+
// loadInitial + initial flush behave the same as before DOU-209.
|
|
108
|
+
const capturedDiskUpdates = [];
|
|
109
|
+
if (this.initialDocState && this.currentDiskText != null) {
|
|
110
|
+
const restored = this.ytext.toString();
|
|
111
|
+
if (this.currentDiskText !== restored) {
|
|
112
|
+
const captureHandler = (update, origin) => {
|
|
113
|
+
if (origin === 'disk')
|
|
114
|
+
capturedDiskUpdates.push(update);
|
|
115
|
+
};
|
|
116
|
+
this.doc.on('update', captureHandler);
|
|
117
|
+
// Same diff-and-apply shape as applyDiskText, but we call the
|
|
118
|
+
// internal helper directly: applyDiskText is the live-chokidar
|
|
119
|
+
// path and also touches lastDiskText / _emitDocState in ways
|
|
120
|
+
// that aren't appropriate during the startup-merge phase.
|
|
121
|
+
this._applyTextDiff(restored, this.currentDiskText);
|
|
122
|
+
this.doc.off('update', captureHandler);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
// DOU-204: two-phase provider start. Phase 1 loads snapshot +
|
|
126
|
+
// initial updates without subscribing. We then attach the
|
|
127
|
+
// Y.Text observer that drives the debounced disk write. Phase 2
|
|
128
|
+
// subscribes to remote updates; the first listener fire is the
|
|
129
|
+
// initial query result (re-applies the already-loaded docs
|
|
130
|
+
// idempotently), and any update that lands after loadInitial
|
|
131
|
+
// routes through the now-attached observer instead of mutating
|
|
132
|
+
// Y.Text silently between provider.start and observer attach.
|
|
133
|
+
await this.provider.loadInitial();
|
|
134
|
+
this.observer = () => {
|
|
135
|
+
if (this.stopped)
|
|
136
|
+
return;
|
|
137
|
+
if (this.flushTimer)
|
|
138
|
+
clearTimeout(this.flushTimer);
|
|
139
|
+
this.flushTimer = setTimeout(() => this._flushNow(), this.debounceMs);
|
|
112
140
|
};
|
|
113
|
-
this.
|
|
114
|
-
|
|
115
|
-
//
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
141
|
+
this.ytext.observe(this.observer);
|
|
142
|
+
this.provider.startSubscription();
|
|
143
|
+
// Push the disk-side updates captured above so the store records
|
|
144
|
+
// the offline disk edits and other clients receive them. Y.applyUpdate
|
|
145
|
+
// is idempotent so the daemon's own subscription echo (when the
|
|
146
|
+
// store fires its own append back through subscribeUpdates) is a
|
|
147
|
+
// no-op on our local Y.Doc.
|
|
148
|
+
for (const update of capturedDiskUpdates) {
|
|
149
|
+
try {
|
|
150
|
+
await this.store.appendUpdate(update);
|
|
151
|
+
}
|
|
152
|
+
catch (err) {
|
|
153
|
+
console.error('YjsFileBinding: disk-merge appendUpdate failed:', err?.message);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
// Initial flush: ytext may be non-empty after replay (file has
|
|
157
|
+
// existing Yjs state). Writes the loaded content to disk so the
|
|
158
|
+
// local file is up-to-date the moment the binding is wired in.
|
|
159
|
+
if (this.ytext.length > 0)
|
|
160
|
+
this._flushNow();
|
|
161
|
+
// Persist the merged baseline so the next restart has the right
|
|
162
|
+
// anchor (the binding's state right now == disk after the flush
|
|
163
|
+
// above; future disk-side edits should diff against this state).
|
|
164
|
+
this._emitDocState();
|
|
121
165
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
// the offline disk edits and other clients receive them. Y.applyUpdate
|
|
142
|
-
// is idempotent so the daemon's own subscription echo (when the
|
|
143
|
-
// store fires its own append back through subscribeUpdates) is a
|
|
144
|
-
// no-op on our local Y.Doc.
|
|
145
|
-
for (const update of capturedDiskUpdates) {
|
|
146
|
-
try { await this.store.appendUpdate(update); }
|
|
147
|
-
catch (err) { console.error('YjsFileBinding: disk-merge appendUpdate failed:', err && err.message); }
|
|
166
|
+
_applyTextDiff(fromText, toText) {
|
|
167
|
+
if (fromText === toText)
|
|
168
|
+
return;
|
|
169
|
+
const diffs = fastDiff(fromText, toText);
|
|
170
|
+
this.doc.transact(() => {
|
|
171
|
+
let idx = 0;
|
|
172
|
+
for (const [op, str] of diffs) {
|
|
173
|
+
if (op === 0) {
|
|
174
|
+
idx += str.length;
|
|
175
|
+
}
|
|
176
|
+
else if (op === 1) {
|
|
177
|
+
this.ytext.insert(idx, str);
|
|
178
|
+
idx += str.length;
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
this.ytext.delete(idx, str.length);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}, 'disk');
|
|
148
185
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
this._emitDocState();
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
_applyTextDiff(fromText, toText) {
|
|
161
|
-
if (fromText === toText) return;
|
|
162
|
-
const diffs = fastDiff(fromText, toText);
|
|
163
|
-
this.doc.transact(() => {
|
|
164
|
-
let idx = 0;
|
|
165
|
-
for (const [op, str] of diffs) {
|
|
166
|
-
if (op === 0) {
|
|
167
|
-
idx += str.length;
|
|
168
|
-
} else if (op === 1) {
|
|
169
|
-
this.ytext.insert(idx, str);
|
|
170
|
-
idx += str.length;
|
|
171
|
-
} else {
|
|
172
|
-
this.ytext.delete(idx, str.length);
|
|
186
|
+
_emitDocState() {
|
|
187
|
+
if (this.stopped || !this.onDocStateChange)
|
|
188
|
+
return;
|
|
189
|
+
try {
|
|
190
|
+
this.onDocStateChange(Y.encodeStateAsUpdate(this.doc));
|
|
191
|
+
}
|
|
192
|
+
catch (err) {
|
|
193
|
+
console.error('YjsFileBinding: onDocStateChange failed:', err?.message);
|
|
173
194
|
}
|
|
174
|
-
}
|
|
175
|
-
}, 'disk');
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
_emitDocState() {
|
|
179
|
-
if (this.stopped || !this.onDocStateChange) return;
|
|
180
|
-
try {
|
|
181
|
-
this.onDocStateChange(Y.encodeStateAsUpdate(this.doc));
|
|
182
|
-
} catch (err) {
|
|
183
|
-
console.error('YjsFileBinding: onDocStateChange failed:', err && err.message);
|
|
184
195
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
// Sync flush used by both the debounced observer and the final
|
|
197
|
+
// drain in stop().
|
|
198
|
+
_flushNow() {
|
|
199
|
+
if (this.stopped)
|
|
200
|
+
return;
|
|
201
|
+
if (this.flushTimer) {
|
|
202
|
+
clearTimeout(this.flushTimer);
|
|
203
|
+
this.flushTimer = null;
|
|
204
|
+
}
|
|
205
|
+
const text = this.ytext.toString();
|
|
206
|
+
if (text === this.lastDiskText)
|
|
207
|
+
return;
|
|
208
|
+
this.lastDiskText = text;
|
|
209
|
+
this.onDiskWrite(text);
|
|
210
|
+
// The disk now matches ytext: snapshot the Y.Doc state so the next
|
|
211
|
+
// restart has the right baseline for offline-merge (DOU-209).
|
|
212
|
+
this._emitDocState();
|
|
194
213
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
// Suppress the debounced echo: lastDiskText now matches the disk
|
|
214
|
-
// content the caller just observed, so the observer's pending
|
|
215
|
-
// flush is a no-op.
|
|
216
|
-
this.lastDiskText = newText;
|
|
217
|
-
// Snapshot the Y.Doc state so the next restart's baseline includes
|
|
218
|
-
// this disk-originated edit (DOU-209).
|
|
219
|
-
this._emitDocState();
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
async stop() {
|
|
223
|
-
if (this.stopped) return;
|
|
224
|
-
this.stopped = true;
|
|
225
|
-
if (this.observer) {
|
|
226
|
-
this.ytext.unobserve(this.observer);
|
|
227
|
-
this.observer = null;
|
|
214
|
+
// The local disk file changed (chokidar). Diff against the current
|
|
215
|
+
// ytext and apply as a sequence of inserts/deletes inside one
|
|
216
|
+
// transaction. Using a distinct origin ('disk') keeps the provider's
|
|
217
|
+
// local-update listener pushing the resulting yupdate to Firestore.
|
|
218
|
+
applyDiskText(newText) {
|
|
219
|
+
if (this.stopped)
|
|
220
|
+
return;
|
|
221
|
+
const oldText = this.ytext.toString();
|
|
222
|
+
if (oldText === newText)
|
|
223
|
+
return;
|
|
224
|
+
this._applyTextDiff(oldText, newText);
|
|
225
|
+
// Suppress the debounced echo: lastDiskText now matches the disk
|
|
226
|
+
// content the caller just observed, so the observer's pending
|
|
227
|
+
// flush is a no-op.
|
|
228
|
+
this.lastDiskText = newText;
|
|
229
|
+
// Snapshot the Y.Doc state so the next restart's baseline includes
|
|
230
|
+
// this disk-originated edit (DOU-209).
|
|
231
|
+
this._emitDocState();
|
|
228
232
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
233
|
+
async stop() {
|
|
234
|
+
if (this.stopped)
|
|
235
|
+
return;
|
|
236
|
+
this.stopped = true;
|
|
237
|
+
if (this.observer) {
|
|
238
|
+
this.ytext.unobserve(this.observer);
|
|
239
|
+
this.observer = null;
|
|
240
|
+
}
|
|
241
|
+
if (this.flushTimer) {
|
|
242
|
+
clearTimeout(this.flushTimer);
|
|
243
|
+
this.flushTimer = null;
|
|
244
|
+
}
|
|
245
|
+
this.provider.stop();
|
|
246
|
+
this.doc.destroy();
|
|
232
247
|
}
|
|
233
|
-
this.provider.stop();
|
|
234
|
-
this.doc.destroy();
|
|
235
|
-
}
|
|
236
248
|
}
|
|
249
|
+
//# sourceMappingURL=yjs-file-binding.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Firestore, type Unsubscribe } from 'firebase/firestore';
|
|
2
|
+
import type { YjsSnapshot, YjsUpdateListener, YjsUpdateRecord, YjsUpdateStore } from './yjs-provider.js';
|
|
3
|
+
export declare class FirestoreUpdateStore implements YjsUpdateStore {
|
|
4
|
+
private readonly updatesCol;
|
|
5
|
+
private readonly snapshotDoc;
|
|
6
|
+
constructor(db: Firestore, orgId: string, fileId: string);
|
|
7
|
+
loadSnapshot(): Promise<YjsSnapshot | null>;
|
|
8
|
+
loadUpdatesAfter(baselineId: string | null): Promise<YjsUpdateRecord[]>;
|
|
9
|
+
appendUpdate(update: Uint8Array): Promise<YjsUpdateRecord>;
|
|
10
|
+
subscribeUpdates(onUpdate: YjsUpdateListener): Unsubscribe;
|
|
11
|
+
saveSnapshotAndCompact(state: Uint8Array, newBaselineId: string): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=yjs-firestore-update-store.d.ts.map
|