pi-fabric 0.125.0 → 0.125.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.
|
@@ -4172,7 +4172,10 @@ var FooterDock = class {
|
|
|
4172
4172
|
}
|
|
4173
4173
|
#parent;
|
|
4174
4174
|
#holder;
|
|
4175
|
-
/**
|
|
4175
|
+
/**
|
|
4176
|
+
* Pi's editor container while its render carries the badge: the render it
|
|
4177
|
+
* had, the wrapper installed over it, and whether that wrapper still badges.
|
|
4178
|
+
*/
|
|
4176
4179
|
#editor;
|
|
4177
4180
|
/** Pi's editor drew the badge in its last frame; a border too narrow or busy for it did not. */
|
|
4178
4181
|
#badgeDrawn = false;
|
|
@@ -4222,19 +4225,24 @@ var FooterDock = class {
|
|
|
4222
4225
|
this.#restoreEditor();
|
|
4223
4226
|
const render = editor.render;
|
|
4224
4227
|
const badge = this.badge;
|
|
4225
|
-
|
|
4226
|
-
|
|
4228
|
+
const live = { on: true };
|
|
4229
|
+
const wrapper = (width) => {
|
|
4227
4230
|
const lines = render.call(editor, width);
|
|
4231
|
+
if (!live.on) return lines;
|
|
4228
4232
|
const badged = withBorderBadge(lines, badge());
|
|
4229
4233
|
this.#badgeDrawn = badged !== lines;
|
|
4230
4234
|
return badged;
|
|
4231
4235
|
};
|
|
4236
|
+
this.#editor = { node: editor, render, wrapper, live };
|
|
4237
|
+
editor.render = wrapper;
|
|
4232
4238
|
}
|
|
4233
4239
|
#restoreEditor() {
|
|
4234
4240
|
const editor = this.#editor;
|
|
4235
4241
|
this.#editor = void 0;
|
|
4236
4242
|
this.#badgeDrawn = false;
|
|
4237
|
-
if (editor)
|
|
4243
|
+
if (!editor) return;
|
|
4244
|
+
editor.live.on = false;
|
|
4245
|
+
if (editor.node.render === editor.wrapper) editor.node.render = editor.render;
|
|
4238
4246
|
}
|
|
4239
4247
|
#roots() {
|
|
4240
4248
|
const tui = this.tui;
|
|
@@ -6307,4 +6315,4 @@ export {
|
|
|
6307
6315
|
FABRIC_MANAGED_HOST_VERSION,
|
|
6308
6316
|
createFabricExtension
|
|
6309
6317
|
};
|
|
6310
|
-
//# sourceMappingURL=chunk-
|
|
6318
|
+
//# sourceMappingURL=chunk-BBJ4ANUN.js.map
|