@ones-editor/editor 1.1.18-beta.14 → 1.1.18-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
|
@@ -34350,7 +34350,9 @@ ${codeText}
|
|
|
34350
34350
|
this.events.emit("writeConflictError", error2);
|
|
34351
34351
|
}
|
|
34352
34352
|
emitMaxUsersError() {
|
|
34353
|
-
|
|
34353
|
+
const err = new Error(MaxUserError.msg);
|
|
34354
|
+
err.code = MaxUserError.err;
|
|
34355
|
+
this.events.emit("maxUsersError", err);
|
|
34354
34356
|
this.end(false);
|
|
34355
34357
|
}
|
|
34356
34358
|
handleMessage(message) {
|
|
@@ -35681,6 +35683,12 @@ ${codeText}
|
|
|
35681
35683
|
return (_a = cb.onAuthRecover) == null ? void 0 : _a.call(cb);
|
|
35682
35684
|
});
|
|
35683
35685
|
});
|
|
35686
|
+
this.client.onMaxUsersError((err) => {
|
|
35687
|
+
this.callbacks.forEach((cb) => {
|
|
35688
|
+
var _a;
|
|
35689
|
+
return (_a = cb.onError) == null ? void 0 : _a.call(cb, err);
|
|
35690
|
+
});
|
|
35691
|
+
});
|
|
35684
35692
|
this.client.onWriteConflictError(this.handleWriteConflictError);
|
|
35685
35693
|
}
|
|
35686
35694
|
clearEvents() {
|
|
@@ -77122,7 +77130,7 @@ ${data.flowchartText}
|
|
|
77122
77130
|
}
|
|
77123
77131
|
}
|
|
77124
77132
|
});
|
|
77125
|
-
editor.version = "1.1.18-beta.
|
|
77133
|
+
editor.version = "1.1.18-beta.15";
|
|
77126
77134
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
77127
77135
|
window.setReauthFail = (fail) => {
|
|
77128
77136
|
window.isReauthError = fail;
|
|
@@ -77210,7 +77218,7 @@ ${data.flowchartText}
|
|
|
77210
77218
|
});
|
|
77211
77219
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
77212
77220
|
OnesEditorToolbar.register(editor);
|
|
77213
|
-
editor.version = "1.1.18-beta.
|
|
77221
|
+
editor.version = "1.1.18-beta.15";
|
|
77214
77222
|
return editor;
|
|
77215
77223
|
}
|
|
77216
77224
|
async function showDocVersions(editor, options, serverUrl) {
|