@ones-editor/editor 4.0.5-beta.ONES22302330.1 → 4.0.5-beta.h1453.2
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +9 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -94348,6 +94348,10 @@ ${data2.plantumlText}
|
|
|
94348
94348
|
}, 1e4));
|
|
94349
94349
|
__publicField(this, "_handleOffline", () => {
|
|
94350
94350
|
this._offlineFlag = true;
|
|
94351
|
+
this._connectionFlag = true;
|
|
94352
|
+
if (this._editor) {
|
|
94353
|
+
this._editor.readonly = true;
|
|
94354
|
+
}
|
|
94351
94355
|
this.handleError(new Error("offline"));
|
|
94352
94356
|
});
|
|
94353
94357
|
__publicField(this, "_handleOnline", () => {
|
|
@@ -94367,7 +94371,6 @@ ${data2.plantumlText}
|
|
|
94367
94371
|
});
|
|
94368
94372
|
__publicField(this, "onClean", () => {
|
|
94369
94373
|
assert(logger$7, this._editor, "no editor");
|
|
94370
|
-
this._editor.readonly = false;
|
|
94371
94374
|
this._dirtyFlag = false;
|
|
94372
94375
|
this.autoHide();
|
|
94373
94376
|
});
|
|
@@ -94426,24 +94429,17 @@ ${data2.plantumlText}
|
|
|
94426
94429
|
this.autoHide();
|
|
94427
94430
|
});
|
|
94428
94431
|
__publicField(this, "onReady", () => {
|
|
94429
|
-
var _a;
|
|
94430
94432
|
logger$7.debug("---------ready");
|
|
94431
94433
|
console.log(`[${new Date().toLocaleString()}] wiz-editor onReady`);
|
|
94432
94434
|
this._connectionFlag = false;
|
|
94433
|
-
|
|
94434
|
-
this.autoHide();
|
|
94435
|
-
}
|
|
94436
|
-
if (!this._dirtyFlag) {
|
|
94437
|
-
if ((_a = this._editor) == null ? void 0 : _a.readonly) {
|
|
94438
|
-
this._editor.readonly = false;
|
|
94439
|
-
}
|
|
94440
|
-
}
|
|
94435
|
+
this.autoHide();
|
|
94441
94436
|
});
|
|
94442
94437
|
window.addEventListener("offline", this._handleOffline);
|
|
94443
94438
|
window.addEventListener("online", this._handleOnline);
|
|
94444
94439
|
}
|
|
94445
94440
|
destroy() {
|
|
94446
94441
|
var _a;
|
|
94442
|
+
this._showErrorDebounced.cancel();
|
|
94447
94443
|
(_a = this._errorInfoBar) == null ? void 0 : _a.destroy();
|
|
94448
94444
|
window.removeEventListener("offline", this._handleOffline);
|
|
94449
94445
|
window.removeEventListener("online", this._handleOnline);
|
|
@@ -97547,7 +97543,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97547
97543
|
}
|
|
97548
97544
|
}
|
|
97549
97545
|
});
|
|
97550
|
-
editor.version = "4.0.5-beta.
|
|
97546
|
+
editor.version = "4.0.5-beta.h1453.2";
|
|
97551
97547
|
return editor;
|
|
97552
97548
|
}
|
|
97553
97549
|
function isDoc(doc2) {
|
|
@@ -97683,7 +97679,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97683
97679
|
OnesEditorDropTarget.register(editor);
|
|
97684
97680
|
OnesEditorTocProvider.register(editor);
|
|
97685
97681
|
OnesEditorExclusiveBlock.register(editor);
|
|
97686
|
-
editor.version = "4.0.5-beta.
|
|
97682
|
+
editor.version = "4.0.5-beta.h1453.2";
|
|
97687
97683
|
return editor;
|
|
97688
97684
|
} catch (error2) {
|
|
97689
97685
|
try {
|
|
@@ -97826,7 +97822,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97826
97822
|
}
|
|
97827
97823
|
}
|
|
97828
97824
|
});
|
|
97829
|
-
editor.version = "4.0.5-beta.
|
|
97825
|
+
editor.version = "4.0.5-beta.h1453.2";
|
|
97830
97826
|
return editor;
|
|
97831
97827
|
}
|
|
97832
97828
|
const emojis$1 = {
|