pi-fabric 0.132.6 → 0.132.8
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/chunks/{chunk-F3D7GTBK.js → chunk-HWZ2HQZD.js} +15 -5
- package/dist/chunks/{chunk-F3D7GTBK.js.map → chunk-HWZ2HQZD.js.map} +2 -2
- package/dist/durable-extension.js +1 -1
- package/dist/durable-extension.js.map +1 -1
- package/dist/extension-bootstrap.js +1 -1
- package/dist/index.js +1 -1
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/conversation.d.ts +1 -0
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +16 -5
- package/dist/ui/conversation.js.map +2 -2
- package/dist/ui/widget.d.ts +6 -1
- package/dist/ui/widget.d.ts.map +1 -1
- package/docs/interface.md +1 -1
- package/package.json +1 -1
|
@@ -4342,13 +4342,14 @@ var widgetViewport = (contentRows, budget, offset) => {
|
|
|
4342
4342
|
};
|
|
4343
4343
|
var HEADER_ROW = "\0main";
|
|
4344
4344
|
var FabricWidget = class {
|
|
4345
|
-
constructor(theme, snapshot, maxRows, terminalRows, retention = new FabricWidgetRetention(), interaction) {
|
|
4345
|
+
constructor(theme, snapshot, maxRows, terminalRows, retention = new FabricWidgetRetention(), interaction, viewport = { offset: 0 }) {
|
|
4346
4346
|
this.theme = theme;
|
|
4347
4347
|
this.snapshot = snapshot;
|
|
4348
4348
|
this.maxRows = maxRows;
|
|
4349
4349
|
this.terminalRows = terminalRows;
|
|
4350
4350
|
this.retention = retention;
|
|
4351
4351
|
this.interaction = interaction;
|
|
4352
|
+
this.viewport = viewport;
|
|
4352
4353
|
}
|
|
4353
4354
|
/** Set by the TUI when the widget gains or loses keyboard focus. */
|
|
4354
4355
|
focused = false;
|
|
@@ -4360,7 +4361,12 @@ var FabricWidget = class {
|
|
|
4360
4361
|
/** Rows above the header in the last render: the spacer, or none on a one-row budget. */
|
|
4361
4362
|
#spacerRows = 1;
|
|
4362
4363
|
#renderedInteraction;
|
|
4363
|
-
#scrollOffset
|
|
4364
|
+
get #scrollOffset() {
|
|
4365
|
+
return this.viewport.offset;
|
|
4366
|
+
}
|
|
4367
|
+
set #scrollOffset(offset) {
|
|
4368
|
+
this.viewport.offset = offset;
|
|
4369
|
+
}
|
|
4364
4370
|
#maxScrollOffset = 0;
|
|
4365
4371
|
#followSelection = false;
|
|
4366
4372
|
/** Select the row on screen, or the first row; used when focus arrives from the keyboard. */
|
|
@@ -4923,6 +4929,7 @@ var FabricUiController = class {
|
|
|
4923
4929
|
#snapshotCache = new FabricDashboardSnapshotCache();
|
|
4924
4930
|
#refreshGeneration = 0;
|
|
4925
4931
|
#widgetRetention = new FabricWidgetRetention();
|
|
4932
|
+
#widgetViewport = { offset: 0 };
|
|
4926
4933
|
start(context) {
|
|
4927
4934
|
this.stop();
|
|
4928
4935
|
this.#context = context;
|
|
@@ -4984,6 +4991,7 @@ var FabricUiController = class {
|
|
|
4984
4991
|
this.#meshOffset = 0;
|
|
4985
4992
|
this.#snapshot = emptySnapshot();
|
|
4986
4993
|
this.#widgetRetention.clear();
|
|
4994
|
+
this.#widgetViewport.offset = 0;
|
|
4987
4995
|
this.#lastRefreshErrorAt = 0;
|
|
4988
4996
|
this.#lastRefreshAt = 0;
|
|
4989
4997
|
this.#dashboardOpen = false;
|
|
@@ -5252,7 +5260,8 @@ var FabricUiController = class {
|
|
|
5252
5260
|
this.state.config.ui.maxRows,
|
|
5253
5261
|
() => tui.terminal?.rows ?? process.stdout.rows,
|
|
5254
5262
|
this.#widgetRetention,
|
|
5255
|
-
interaction
|
|
5263
|
+
interaction,
|
|
5264
|
+
this.#widgetViewport
|
|
5256
5265
|
),
|
|
5257
5266
|
onTargetChange: (id) => {
|
|
5258
5267
|
if (this.#activeConversationReader !== id) this.#suspendConversationReader();
|
|
@@ -5712,7 +5721,8 @@ var FabricUiController = class {
|
|
|
5712
5721
|
requestRender: () => tui.requestRender(),
|
|
5713
5722
|
rendered: () => this.#keepWidgetLast(context),
|
|
5714
5723
|
availableRows: (width) => this.#footerDock?.availableRows(width)
|
|
5715
|
-
}
|
|
5724
|
+
},
|
|
5725
|
+
this.#widgetViewport
|
|
5716
5726
|
);
|
|
5717
5727
|
const widget = this.#widget;
|
|
5718
5728
|
const anchor = {
|
|
@@ -7043,4 +7053,4 @@ export {
|
|
|
7043
7053
|
FABRIC_MANAGED_HOST_VERSION,
|
|
7044
7054
|
createFabricExtension
|
|
7045
7055
|
};
|
|
7046
|
-
//# sourceMappingURL=chunk-
|
|
7056
|
+
//# sourceMappingURL=chunk-HWZ2HQZD.js.map
|