@ones-editor/editor 1.1.3-bate.2 → 1.1.3-bate.3

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
@@ -5411,9 +5411,15 @@ div.editor-root div.editor-content div[data-type=editor-container] div[data-embe
5411
5411
  }
5412
5412
  :root .iframe-embed-auth-error-tips {
5413
5413
  width: 100%;
5414
- height: 80px;
5415
- background-color: #7084a4;
5414
+ height: 40px;
5415
+ line-height: 40px;
5416
+ background-color: #f7f8fa;
5416
5417
  text-align: center;
5418
+ color: #bebfc2;
5419
+ }
5420
+ :root .iframe-embed-auth-error-tips span {
5421
+ cursor: pointer;
5422
+ color: #0064ff;
5417
5423
  }.editor-content .editing {
5418
5424
  background-color: rgba(205, 205, 205, 0.2509803922);
5419
5425
  }
@@ -34118,6 +34124,7 @@ ${codeText}
34118
34124
  Connection.apply(this.connection, [this.ws]);
34119
34125
  }
34120
34126
  async handleAuthError() {
34127
+ console.log("handleAuthError");
34121
34128
  if (this.reauthFunc) {
34122
34129
  if (this.retryCount === 5) {
34123
34130
  logger$2n.warn("retry auth times exceed 5, broadcast auth error");
@@ -65450,7 +65457,18 @@ ${codeText}
65450
65457
  const fixedToolbar = createElement("div", ["iframe-embed-auth-error-tips"], container);
65451
65458
  fixedToolbar.innerHTML = i18n$1.t("authError.tips");
65452
65459
  fixedToolbar.addEventListener("click", (event) => {
65453
- event.currentTarget;
65460
+ const target = event.target;
65461
+ if (target instanceof HTMLSpanElement) {
65462
+ const id = target.id;
65463
+ switch (id) {
65464
+ case "retry":
65465
+ this.reAuth();
65466
+ break;
65467
+ case "exit":
65468
+ this.exit();
65469
+ break;
65470
+ }
65471
+ }
65454
65472
  });
65455
65473
  }
65456
65474
  });
@@ -65463,6 +65481,9 @@ ${codeText}
65463
65481
  }
65464
65482
  exit() {
65465
65483
  var _a;
65484
+ if (this.currentBlock) {
65485
+ enablePageScroll(this.currentBlock.id);
65486
+ }
65466
65487
  this.unRegister();
65467
65488
  (_a = this.onIframeExitEdit) == null ? void 0 : _a.call(this);
65468
65489
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.3-bate.2",
3
+ "version": "1.1.3-bate.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",