@ones-editor/editor 1.1.3-bate.6 → 1.1.3-bate.8
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
|
@@ -34102,10 +34102,11 @@ ${codeText}
|
|
|
34102
34102
|
if ("err" in msg || msg.a === "pong") {
|
|
34103
34103
|
this.handleMessage(msg);
|
|
34104
34104
|
} else {
|
|
34105
|
-
|
|
34106
|
-
|
|
34107
|
-
|
|
34108
|
-
|
|
34105
|
+
if (Object.prototype.hasOwnProperty.call(msg, "a") && msg.a === "init") {
|
|
34106
|
+
if (this.retryCount > 0) {
|
|
34107
|
+
logger$2n.info("retrying re-auth success");
|
|
34108
|
+
this.emitAuthRecover();
|
|
34109
|
+
}
|
|
34109
34110
|
}
|
|
34110
34111
|
if (Object.prototype.hasOwnProperty.call(msg, "a") && msg.a !== "init" && msg.a !== "hs") {
|
|
34111
34112
|
this.retryCount = 0;
|
|
@@ -65604,7 +65605,7 @@ ${codeText}
|
|
|
65604
65605
|
__publicField(this, "onReAuthErrorWhenIframeEditing");
|
|
65605
65606
|
__publicField(this, "onIframeExitEdit");
|
|
65606
65607
|
__publicField(this, "destroy", () => {
|
|
65607
|
-
this.editor.doc.unregisterCallback(this);
|
|
65608
|
+
this.editor.doc.externalDoc.unregisterCallback(this);
|
|
65608
65609
|
});
|
|
65609
65610
|
__publicField(this, "onError", (error2) => {
|
|
65610
65611
|
if (error2.code === AuthError.err) {
|
|
@@ -65657,7 +65658,7 @@ ${codeText}
|
|
|
65657
65658
|
}
|
|
65658
65659
|
});
|
|
65659
65660
|
this.editor = editor;
|
|
65660
|
-
this.editor.doc.registerCallback(this);
|
|
65661
|
+
this.editor.doc.externalDoc.registerCallback(this);
|
|
65661
65662
|
}
|
|
65662
65663
|
exit() {
|
|
65663
65664
|
var _a;
|