@ones-editor/editor 3.1.5-beta.h1452.1 → 3.1.5
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 +8 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -94202,6 +94202,10 @@ ${data2.plantumlText}
|
|
|
94202
94202
|
}, 1e4));
|
|
94203
94203
|
__publicField(this, "_handleOffline", () => {
|
|
94204
94204
|
this._offlineFlag = true;
|
|
94205
|
+
this._connectionFlag = true;
|
|
94206
|
+
if (this._editor) {
|
|
94207
|
+
this._editor.readonly = true;
|
|
94208
|
+
}
|
|
94205
94209
|
this.handleError(new Error("offline"));
|
|
94206
94210
|
});
|
|
94207
94211
|
__publicField(this, "_handleOnline", () => {
|
|
@@ -94221,7 +94225,6 @@ ${data2.plantumlText}
|
|
|
94221
94225
|
});
|
|
94222
94226
|
__publicField(this, "onClean", () => {
|
|
94223
94227
|
assert(logger$7, this._editor, "no editor");
|
|
94224
|
-
this._editor.readonly = false;
|
|
94225
94228
|
this._dirtyFlag = false;
|
|
94226
94229
|
this.autoHide();
|
|
94227
94230
|
});
|
|
@@ -94280,24 +94283,17 @@ ${data2.plantumlText}
|
|
|
94280
94283
|
this.autoHide();
|
|
94281
94284
|
});
|
|
94282
94285
|
__publicField(this, "onReady", () => {
|
|
94283
|
-
var _a;
|
|
94284
94286
|
logger$7.debug("---------ready");
|
|
94285
94287
|
console.log(`[${new Date().toLocaleString()}] wiz-editor onReady`);
|
|
94286
94288
|
this._connectionFlag = false;
|
|
94287
|
-
|
|
94288
|
-
this.autoHide();
|
|
94289
|
-
}
|
|
94290
|
-
if (!this._dirtyFlag) {
|
|
94291
|
-
if ((_a = this._editor) == null ? void 0 : _a.readonly) {
|
|
94292
|
-
this._editor.readonly = false;
|
|
94293
|
-
}
|
|
94294
|
-
}
|
|
94289
|
+
this.autoHide();
|
|
94295
94290
|
});
|
|
94296
94291
|
window.addEventListener("offline", this._handleOffline);
|
|
94297
94292
|
window.addEventListener("online", this._handleOnline);
|
|
94298
94293
|
}
|
|
94299
94294
|
destroy() {
|
|
94300
94295
|
var _a;
|
|
94296
|
+
this._showErrorDebounced.cancel();
|
|
94301
94297
|
(_a = this._errorInfoBar) == null ? void 0 : _a.destroy();
|
|
94302
94298
|
window.removeEventListener("offline", this._handleOffline);
|
|
94303
94299
|
window.removeEventListener("online", this._handleOnline);
|
|
@@ -97402,7 +97398,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97402
97398
|
}
|
|
97403
97399
|
}
|
|
97404
97400
|
});
|
|
97405
|
-
editor.version = "3.1.5
|
|
97401
|
+
editor.version = "3.1.5";
|
|
97406
97402
|
return editor;
|
|
97407
97403
|
}
|
|
97408
97404
|
function isDoc(doc2) {
|
|
@@ -97543,7 +97539,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97543
97539
|
OnesEditorDropTarget.register(editor);
|
|
97544
97540
|
OnesEditorTocProvider.register(editor);
|
|
97545
97541
|
OnesEditorExclusiveBlock.register(editor);
|
|
97546
|
-
editor.version = "3.1.5
|
|
97542
|
+
editor.version = "3.1.5";
|
|
97547
97543
|
return editor;
|
|
97548
97544
|
} catch (error2) {
|
|
97549
97545
|
if (editorForCleanup) {
|