@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.
|
@@ -8672,6 +8672,15 @@ var BackgroundSyncManager = class extends EventEmitter {
|
|
|
8672
8672
|
const childProvider = await this.rootProvider.loadChild(docId);
|
|
8673
8673
|
await childProvider.ready;
|
|
8674
8674
|
await this._waitForSynced(childProvider);
|
|
8675
|
+
{
|
|
8676
|
+
const treeEntry = this.rootProvider.document.getMap("doc-tree").get(docId);
|
|
8677
|
+
this.emit("docSynced", {
|
|
8678
|
+
docId,
|
|
8679
|
+
document: childProvider.document,
|
|
8680
|
+
label: treeEntry?.label ?? "",
|
|
8681
|
+
meta: treeEntry?.meta
|
|
8682
|
+
});
|
|
8683
|
+
}
|
|
8675
8684
|
if (this.opts.prefetchFiles && this.fileBlobStore) this._prefetchDocFiles(docId, childProvider.document).catch(() => null);
|
|
8676
8685
|
if (!alreadyCached) this.rootProvider.unloadChild(docId);
|
|
8677
8686
|
return {
|
|
@@ -8701,6 +8710,15 @@ var BackgroundSyncManager = class extends EventEmitter {
|
|
|
8701
8710
|
try {
|
|
8702
8711
|
await childProvider.ready;
|
|
8703
8712
|
await this._waitForSynced(childProvider);
|
|
8713
|
+
{
|
|
8714
|
+
const treeEntry = this.rootProvider.document.getMap("doc-tree").get(docId);
|
|
8715
|
+
this.emit("docSynced", {
|
|
8716
|
+
docId,
|
|
8717
|
+
document: childDoc,
|
|
8718
|
+
label: treeEntry?.label ?? "",
|
|
8719
|
+
meta: treeEntry?.meta
|
|
8720
|
+
});
|
|
8721
|
+
}
|
|
8704
8722
|
if (this.opts.prefetchFiles && this.fileBlobStore) this._prefetchDocFiles(docId, childDoc).catch(() => null);
|
|
8705
8723
|
return {
|
|
8706
8724
|
docId,
|