blun-king-cli 9.1.377 → 9.1.378
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/blun.mjs +16 -1
- package/package.json +1 -1
package/blun.mjs
CHANGED
|
@@ -516233,7 +516233,9 @@ function requestRunningUpdateAtSafeBoundary(tui) {
|
|
|
516233
516233
|
})) {
|
|
516234
516234
|
if (tui.runningUpdatePreparedNoticeVersion !== version) {
|
|
516235
516235
|
tui.runningUpdatePreparedNoticeVersion = version;
|
|
516236
|
-
|
|
516236
|
+
const notice = runningUpdateNoticeText(version, mode);
|
|
516237
|
+
if (typeof tui.showRunningUpdateStatus === "function") tui.showRunningUpdateStatus(notice);
|
|
516238
|
+
else tui.showStatus(notice, "success");
|
|
516237
516239
|
}
|
|
516238
516240
|
return false;
|
|
516239
516241
|
}
|
|
@@ -516363,6 +516365,7 @@ var BlunTUI = class {
|
|
|
516363
516365
|
runningUpdatePreparedVersion;
|
|
516364
516366
|
runningUpdatePreparedMode;
|
|
516365
516367
|
runningUpdatePreparedNoticeVersion;
|
|
516368
|
+
runningUpdatePreparedNoticeComponent;
|
|
516366
516369
|
runningUpdateMessageDispose;
|
|
516367
516370
|
startupPhaseMs = {};
|
|
516368
516371
|
lastActivityMode;
|
|
@@ -518944,6 +518947,18 @@ var BlunTUI = class {
|
|
|
518944
518947
|
for (const child of toDispose) if (hasDispose(child)) child.dispose();
|
|
518945
518948
|
children.splice(0, children.length, ...newChildren);
|
|
518946
518949
|
}
|
|
518950
|
+
showRunningUpdateStatus(message) {
|
|
518951
|
+
const next = new StatusMessageComponent(message, "success");
|
|
518952
|
+
const current = this.runningUpdatePreparedNoticeComponent;
|
|
518953
|
+
const children = this.state.transcriptContainer.children;
|
|
518954
|
+
const currentIndex = current === void 0 ? -1 : children.indexOf(current);
|
|
518955
|
+
if (currentIndex >= 0) {
|
|
518956
|
+
if (hasDispose(current)) current.dispose();
|
|
518957
|
+
children.splice(currentIndex, 1, next);
|
|
518958
|
+
} else this.state.transcriptContainer.addChild(next);
|
|
518959
|
+
this.runningUpdatePreparedNoticeComponent = next;
|
|
518960
|
+
this.state.ui.requestRender();
|
|
518961
|
+
}
|
|
518947
518962
|
showStatus(message, color) {
|
|
518948
518963
|
this.telegramRemoteCommandContext?.responses.push(message);
|
|
518949
518964
|
this.state.transcriptContainer.addChild(new StatusMessageComponent(message, color));
|