@ones-editor/editor 5.0.5-beta.h1454.1 → 5.0.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/dist/index.js CHANGED
@@ -94536,6 +94536,10 @@ ${data2.plantumlText}
94536
94536
  }, 1e4));
94537
94537
  __publicField(this, "_handleOffline", () => {
94538
94538
  this._offlineFlag = true;
94539
+ this._connectionFlag = true;
94540
+ if (this._editor) {
94541
+ this._editor.readonly = true;
94542
+ }
94539
94543
  this.handleError(new Error("offline"));
94540
94544
  });
94541
94545
  __publicField(this, "_handleOnline", () => {
@@ -94555,7 +94559,6 @@ ${data2.plantumlText}
94555
94559
  });
94556
94560
  __publicField(this, "onClean", () => {
94557
94561
  assert(logger$7, this._editor, "no editor");
94558
- this._editor.readonly = false;
94559
94562
  this._dirtyFlag = false;
94560
94563
  this.autoHide();
94561
94564
  });
@@ -94614,24 +94617,17 @@ ${data2.plantumlText}
94614
94617
  this.autoHide();
94615
94618
  });
94616
94619
  __publicField(this, "onReady", () => {
94617
- var _a;
94618
94620
  logger$7.debug("---------ready");
94619
94621
  console.log(`[${new Date().toLocaleString()}] wiz-editor onReady`);
94620
94622
  this._connectionFlag = false;
94621
- if (this.bar.visible()) {
94622
- this.autoHide();
94623
- }
94624
- if (!this._dirtyFlag) {
94625
- if ((_a = this._editor) == null ? void 0 : _a.readonly) {
94626
- this._editor.readonly = false;
94627
- }
94628
- }
94623
+ this.autoHide();
94629
94624
  });
94630
94625
  window.addEventListener("offline", this._handleOffline);
94631
94626
  window.addEventListener("online", this._handleOnline);
94632
94627
  }
94633
94628
  destroy() {
94634
94629
  var _a;
94630
+ this._showErrorDebounced.cancel();
94635
94631
  (_a = this._errorInfoBar) == null ? void 0 : _a.destroy();
94636
94632
  window.removeEventListener("offline", this._handleOffline);
94637
94633
  window.removeEventListener("online", this._handleOnline);
@@ -97866,7 +97862,7 @@ ${JSON.stringify(error2, null, 2)}`);
97866
97862
  }
97867
97863
  }
97868
97864
  });
97869
- editor.version = "5.0.5-beta.h1454.1";
97865
+ editor.version = "5.0.5";
97870
97866
  return editor;
97871
97867
  }
97872
97868
  function isDoc(doc2) {
@@ -98002,7 +97998,7 @@ ${JSON.stringify(error2, null, 2)}`);
98002
97998
  OnesEditorDropTarget.register(editor);
98003
97999
  OnesEditorTocProvider.register(editor);
98004
98000
  OnesEditorExclusiveBlock.register(editor);
98005
- editor.version = "5.0.5-beta.h1454.1";
98001
+ editor.version = "5.0.5";
98006
98002
  return editor;
98007
98003
  } catch (error2) {
98008
98004
  try {
@@ -98145,7 +98141,7 @@ ${JSON.stringify(error2, null, 2)}`);
98145
98141
  }
98146
98142
  }
98147
98143
  });
98148
- editor.version = "5.0.5-beta.h1454.1";
98144
+ editor.version = "5.0.5";
98149
98145
  return editor;
98150
98146
  }
98151
98147
  const emojis$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "5.0.5-beta.h1454.1",
3
+ "version": "5.0.5",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {