@ones-editor/editor 1.1.10-beta.13 → 1.1.10-beta.15

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
@@ -34300,6 +34300,9 @@ ${codeText}
34300
34300
  __publicField(this, "reAuth", async () => {
34301
34301
  if (this.connection && this.reauthFunc) {
34302
34302
  const newAuth = await this.reauthFunc();
34303
+ if (window.isReauthError) {
34304
+ throw new Error("reauth error");
34305
+ }
34303
34306
  await this.auth(newAuth);
34304
34307
  const pingOptions = this.pingOptions;
34305
34308
  this.connection._initializeHandshake = function handshake() {
@@ -34369,6 +34372,9 @@ ${codeText}
34369
34372
  const thatWs = this.ws;
34370
34373
  const pingOptions = this.pingOptions;
34371
34374
  this.connection._initializeHandshake = function handshake() {
34375
+ if (window.isTokenExpired) {
34376
+ auth.token = "aaabbbccc";
34377
+ }
34372
34378
  this.send({ a: "hs", id: this.id, auth, options: { ping: pingOptions } });
34373
34379
  if (this._ping == null) {
34374
34380
  this._ping = window.setInterval(() => {
@@ -35567,7 +35573,13 @@ ${codeText}
35567
35573
  __publicField(this, "disableLogout");
35568
35574
  __publicField(this, "destroyed", false);
35569
35575
  __publicField(this, "handleNothingPending", () => {
35570
- this.setStatus("clean");
35576
+ if (window.setDelay) {
35577
+ setTimeout(() => {
35578
+ this.setStatus("clean");
35579
+ }, 30 * 1e3);
35580
+ } else {
35581
+ this.setStatus("clean");
35582
+ }
35571
35583
  });
35572
35584
  __publicField(this, "handleCreate", () => {
35573
35585
  this.handleReload("doc created");
@@ -75711,7 +75723,7 @@ ${data.flowchartText}
75711
75723
  }
75712
75724
  }
75713
75725
  });
75714
- editor.version = "1.1.10-beta.13";
75726
+ editor.version = "1.1.10-beta.15";
75715
75727
  return editor;
75716
75728
  }
75717
75729
  function isDoc(doc2) {
@@ -75784,7 +75796,7 @@ ${data.flowchartText}
75784
75796
  });
75785
75797
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
75786
75798
  OnesEditorToolbar.register(editor);
75787
- editor.version = "1.1.10-beta.13";
75799
+ editor.version = "1.1.10-beta.15";
75788
75800
  return editor;
75789
75801
  }
75790
75802
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.10-beta.13",
3
+ "version": "1.1.10-beta.15",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",