@abraca/dabra 1.0.25 → 1.1.0
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.
|
@@ -8620,6 +8620,15 @@ var BackgroundSyncManager = class extends EventEmitter {
|
|
|
8620
8620
|
const childProvider = await this.rootProvider.loadChild(docId);
|
|
8621
8621
|
await childProvider.ready;
|
|
8622
8622
|
await this._waitForSynced(childProvider);
|
|
8623
|
+
{
|
|
8624
|
+
const treeEntry = this.rootProvider.document.getMap("doc-tree").get(docId);
|
|
8625
|
+
this.emit("docSynced", {
|
|
8626
|
+
docId,
|
|
8627
|
+
document: childProvider.document,
|
|
8628
|
+
label: treeEntry?.label ?? "",
|
|
8629
|
+
meta: treeEntry?.meta
|
|
8630
|
+
});
|
|
8631
|
+
}
|
|
8623
8632
|
if (this.opts.prefetchFiles && this.fileBlobStore) this._prefetchDocFiles(docId, childProvider.document).catch(() => null);
|
|
8624
8633
|
if (!alreadyCached) this.rootProvider.unloadChild(docId);
|
|
8625
8634
|
return {
|
|
@@ -8649,6 +8658,15 @@ var BackgroundSyncManager = class extends EventEmitter {
|
|
|
8649
8658
|
try {
|
|
8650
8659
|
await childProvider.ready;
|
|
8651
8660
|
await this._waitForSynced(childProvider);
|
|
8661
|
+
{
|
|
8662
|
+
const treeEntry = this.rootProvider.document.getMap("doc-tree").get(docId);
|
|
8663
|
+
this.emit("docSynced", {
|
|
8664
|
+
docId,
|
|
8665
|
+
document: childDoc,
|
|
8666
|
+
label: treeEntry?.label ?? "",
|
|
8667
|
+
meta: treeEntry?.meta
|
|
8668
|
+
});
|
|
8669
|
+
}
|
|
8652
8670
|
if (this.opts.prefetchFiles && this.fileBlobStore) this._prefetchDocFiles(docId, childDoc).catch(() => null);
|
|
8653
8671
|
return {
|
|
8654
8672
|
docId,
|