@mudlet/mudlet-web 0.4.0 → 0.4.1
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-lib/index.js +6 -12
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -6703,7 +6703,7 @@ function gs(e = !0, t = 2e3) {
|
|
|
6703
6703
|
}
|
|
6704
6704
|
//#endregion
|
|
6705
6705
|
//#region src/version.ts
|
|
6706
|
-
var _s = "MUDLET-WEB", vs = "0.4.
|
|
6706
|
+
var _s = "MUDLET-WEB", vs = "0.4.1", ys = "ANSI-TRUECOLOR";
|
|
6707
6707
|
//#endregion
|
|
6708
6708
|
//#region src/ui/AboutModal.tsx
|
|
6709
6709
|
function bs() {
|
|
@@ -6774,7 +6774,7 @@ function xs({ onClose: e }) {
|
|
|
6774
6774
|
className: "about-commit",
|
|
6775
6775
|
children: [
|
|
6776
6776
|
" (",
|
|
6777
|
-
"
|
|
6777
|
+
"4f9db33",
|
|
6778
6778
|
")"
|
|
6779
6779
|
]
|
|
6780
6780
|
})
|
|
@@ -25364,7 +25364,9 @@ var Bb = class {
|
|
|
25364
25364
|
this.client?.isSocketOpen() && e.preventDefault();
|
|
25365
25365
|
};
|
|
25366
25366
|
constructor(t = {}) {
|
|
25367
|
-
this.options = { ...t }, typeof window < "u" && window.addEventListener("beforeunload", this.beforeUnload), this.windows.setConsoleRegistry(this.consoles), this.windows.onMainConsoleResize = (e, t) => this.setWindowSize(e, t), this.events.on("
|
|
25367
|
+
this.options = { ...t }, typeof window < "u" && window.addEventListener("beforeunload", this.beforeUnload), this.windows.setConsoleRegistry(this.consoles), this.windows.onMainConsoleResize = (e, t) => this.setWindowSize(e, t), this.events.on("client.connect", () => this.setStatus("connected")), this.events.on("client.disconnect", () => {
|
|
25368
|
+
this.setStatus("disconnected"), this.setPing(null);
|
|
25369
|
+
}), this.events.on("error", () => this.setStatus("disconnected")), this.events.on("socket.incoming", (e) => this.replayRecorder?.feed(e)), this.events.on("script.log", (t, n, r) => {
|
|
25368
25370
|
this._scriptLog.push({
|
|
25369
25371
|
text: t ?? "",
|
|
25370
25372
|
level: n ?? "info",
|
|
@@ -25400,15 +25402,7 @@ var Bb = class {
|
|
|
25400
25402
|
url: e,
|
|
25401
25403
|
...this.options
|
|
25402
25404
|
}, this.events);
|
|
25403
|
-
this.client = t, this.windowSize && t.setWindowSize(this.windowSize.cols, this.windowSize.rows), this.pingTracker = new Ab((e) => t.sendGmcpRaw(`Core.Ping ${e}`), (e) => this.setPing(e), this.events), this.stateUnsubs = [
|
|
25404
|
-
this.events.on("client.connect", () => this.setStatus("connected")),
|
|
25405
|
-
this.events.on("client.disconnect", () => {
|
|
25406
|
-
this.setStatus("disconnected"), this.setPing(null);
|
|
25407
|
-
}),
|
|
25408
|
-
this.events.on("error", () => this.setStatus("disconnected")),
|
|
25409
|
-
this.events.on("client.error", (e) => this.reportConnectionError(e)),
|
|
25410
|
-
this.events.on("charset.negotiated", (e) => this.noteNegotiatedEncoding(e))
|
|
25411
|
-
], this.serverEncoding !== "UTF-8" && t.setServerEncoding(this.serverEncoding), this.setStatus("connecting"), t.connect();
|
|
25405
|
+
this.client = t, this.windowSize && t.setWindowSize(this.windowSize.cols, this.windowSize.rows), this.pingTracker = new Ab((e) => t.sendGmcpRaw(`Core.Ping ${e}`), (e) => this.setPing(e), this.events), this.stateUnsubs = [this.events.on("client.error", (e) => this.reportConnectionError(e)), this.events.on("charset.negotiated", (e) => this.noteNegotiatedEncoding(e))], this.serverEncoding !== "UTF-8" && t.setServerEncoding(this.serverEncoding), this.setStatus("connecting"), t.connect();
|
|
25412
25406
|
}
|
|
25413
25407
|
disconnect() {
|
|
25414
25408
|
this.client?.disconnect();
|
package/package.json
CHANGED