@kodaris/krubble-app-components 1.0.114 → 1.0.115

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.
@@ -5679,10 +5679,10 @@
5679
5679
  this._dragStartTop = 0;
5680
5680
  this._resizeStartW = 0;
5681
5681
  this._resizeStartH = 0;
5682
- /** Cursor X at debug-drawer resize start. */
5683
- this._debugResizeStartX = 0;
5684
- /** Debug-drawer width at resize start. */
5685
- this._debugResizeStartW = 0;
5682
+ /** Cursor X at drawer resize start. */
5683
+ this._drawerResizeStartX = 0;
5684
+ /** Drawer width at resize start. */
5685
+ this._drawerResizeStartW = 0;
5686
5686
  /** Counter for depth-aware dragenter/dragleave tracking. */
5687
5687
  this._dragDepth = 0;
5688
5688
  /** Monotonic id source for pending attachments. */
@@ -5860,9 +5860,9 @@
5860
5860
  */
5861
5861
  this._drawerView = 'settings';
5862
5862
  /** Current width of the drawer in px (user-resizable, persisted). */
5863
- this._debugDrawerWidth = 430;
5863
+ this._drawerWidth = 430;
5864
5864
  /** True while the user is dragging the drawer's resize handle. */
5865
- this._isDebugResizing = false;
5865
+ this._isDrawerResizing = false;
5866
5866
  /** Files staged in the composer, before the message is sent. */
5867
5867
  this._pendingConversationFiles = [];
5868
5868
  /** True while a file is being dragged over the panel (shows the drop overlay). */
@@ -6059,23 +6059,23 @@
6059
6059
  }
6060
6060
  }
6061
6061
  };
6062
- this._handleDebugResizeMouseMove = (e) => {
6063
- if (!this._isDebugResizing) {
6062
+ this._handleDrawerResizeMouseMove = (e) => {
6063
+ if (!this._isDrawerResizing) {
6064
6064
  return;
6065
6065
  }
6066
6066
  // Handle is on the drawer's left edge; dragging left (negative dx) widens it.
6067
- const dx = e.clientX - this._debugResizeStartX;
6067
+ const dx = e.clientX - this._drawerResizeStartX;
6068
6068
  const minW = 300;
6069
6069
  // Never let the chat column shrink below 300px — cap the drawer at the
6070
6070
  // container width minus that reserved chat width.
6071
6071
  const minChatWidth = 300;
6072
6072
  const maxW = Math.max(minW, this.offsetWidth - minChatWidth);
6073
- this._debugDrawerWidth = Math.max(minW, Math.min(this._debugResizeStartW - dx, maxW));
6073
+ this._drawerWidth = Math.max(minW, Math.min(this._drawerResizeStartW - dx, maxW));
6074
6074
  };
6075
- this._handleDebugResizeMouseUp = () => {
6076
- this._isDebugResizing = false;
6077
- document.removeEventListener('mousemove', this._handleDebugResizeMouseMove);
6078
- document.removeEventListener('mouseup', this._handleDebugResizeMouseUp);
6075
+ this._handleDrawerResizeMouseUp = () => {
6076
+ this._isDrawerResizing = false;
6077
+ document.removeEventListener('mousemove', this._handleDrawerResizeMouseMove);
6078
+ document.removeEventListener('mouseup', this._handleDrawerResizeMouseUp);
6079
6079
  this._saveState();
6080
6080
  };
6081
6081
  }
@@ -6386,7 +6386,7 @@
6386
6386
  showConfirmationInput: String(this._showConfirmationInput),
6387
6387
  drawerOpen: String(this._drawerOpen),
6388
6388
  drawerView: this._drawerView,
6389
- debugDrawerWidth: String(this._debugDrawerWidth),
6389
+ drawerWidth: String(this._drawerWidth),
6390
6390
  };
6391
6391
  if (this._panelEl) {
6392
6392
  const s = this._panelEl.style;
@@ -6436,9 +6436,9 @@
6436
6436
  if (state.drawerView === 'settings' || state.drawerView === 'debug') {
6437
6437
  this._drawerView = state.drawerView;
6438
6438
  }
6439
- const w = Number(state.debugDrawerWidth);
6439
+ const w = Number(state.drawerWidth);
6440
6440
  if (w >= 300) {
6441
- this._debugDrawerWidth = w;
6441
+ this._drawerWidth = w;
6442
6442
  }
6443
6443
  // The floating widget's open/layout state doesn't apply to inline mode.
6444
6444
  if (this.variant !== 'inline' && state.opened === 'true') {
@@ -7529,14 +7529,14 @@
7529
7529
  this._drawerOpen = false;
7530
7530
  this._saveState();
7531
7531
  }
7532
- _handleDebugResizeMouseDown(e) {
7533
- this._isDebugResizing = true;
7534
- this._debugResizeStartX = e.clientX;
7535
- this._debugResizeStartW = this._debugDrawerWidth;
7532
+ _handleDrawerResizeMouseDown(e) {
7533
+ this._isDrawerResizing = true;
7534
+ this._drawerResizeStartX = e.clientX;
7535
+ this._drawerResizeStartW = this._drawerWidth;
7536
7536
  e.preventDefault();
7537
7537
  e.stopPropagation();
7538
- document.addEventListener('mousemove', this._handleDebugResizeMouseMove);
7539
- document.addEventListener('mouseup', this._handleDebugResizeMouseUp);
7538
+ document.addEventListener('mousemove', this._handleDrawerResizeMouseMove);
7539
+ document.addEventListener('mouseup', this._handleDrawerResizeMouseUp);
7540
7540
  }
7541
7541
  _readStreamChunk() {
7542
7542
  if (!this._reader) {
@@ -8141,13 +8141,13 @@
8141
8141
  class=${e({
8142
8142
  'drawer': true,
8143
8143
  'drawer--open': this._drawerOpen,
8144
- 'drawer--resizing': this._isDebugResizing,
8144
+ 'drawer--resizing': this._isDrawerResizing,
8145
8145
  })}
8146
- style=${o({ width: `${this._debugDrawerWidth}px` })}
8146
+ style=${o({ width: `${this._drawerWidth}px` })}
8147
8147
  >
8148
8148
  <div
8149
8149
  class="drawer__resize"
8150
- @mousedown=${this._handleDebugResizeMouseDown}
8150
+ @mousedown=${this._handleDrawerResizeMouseDown}
8151
8151
  ></div>
8152
8152
  <div class="drawer__header">
8153
8153
  <span class="drawer__title">${isDebug ? 'Debug' : 'Settings'}</span>
@@ -8311,7 +8311,7 @@
8311
8311
  // both views. Only pushes while the drawer is open.
8312
8312
  const contentPadding = {};
8313
8313
  if (this._drawerOpen) {
8314
- contentPadding.paddingRight = `${this._debugDrawerWidth}px`;
8314
+ contentPadding.paddingRight = `${this._drawerWidth}px`;
8315
8315
  }
8316
8316
  // Group the transcript into runs so an agent turn (its reasoning/tool/text/
8317
8317
  // decision messages, which stream in as separate entries) renders inside ONE
@@ -8357,7 +8357,7 @@
8357
8357
  class=${e({
8358
8358
  'panel': true,
8359
8359
  'panel--opened': this.opened,
8360
- 'panel--resizing-debug': this._isDebugResizing,
8360
+ 'panel--resizing-drawer': this._isDrawerResizing,
8361
8361
  })}
8362
8362
  style=${o(contentPadding)}
8363
8363
  @dragenter=${this._handleDragEnter}
@@ -9126,7 +9126,7 @@
9126
9126
  }
9127
9127
 
9128
9128
  /* Track the cursor 1:1 while dragging the drawer's resize handle. */
9129
- :host([variant='inline']) .panel--resizing-debug {
9129
+ :host([variant='inline']) .panel--resizing-drawer {
9130
9130
  transition: none;
9131
9131
  }
9132
9132
 
@@ -9811,7 +9811,7 @@
9811
9811
  * drawer does not overlay. It stays mounted and slides in/out via a transform,
9812
9812
  * so opening and closing animate; switching views just swaps the content
9813
9813
  * inside (no re-slide, no width change). One consistent resizable width across
9814
- * both views; the width is set inline from _debugDrawerWidth.
9814
+ * both views; the width is set inline from _drawerWidth.
9815
9815
  */
9816
9816
  .drawer {
9817
9817
  position: absolute;
@@ -10842,10 +10842,10 @@
10842
10842
  ], exports.Chatbot.prototype, "_drawerView", void 0);
10843
10843
  __decorate([
10844
10844
  r()
10845
- ], exports.Chatbot.prototype, "_debugDrawerWidth", void 0);
10845
+ ], exports.Chatbot.prototype, "_drawerWidth", void 0);
10846
10846
  __decorate([
10847
10847
  r()
10848
- ], exports.Chatbot.prototype, "_isDebugResizing", void 0);
10848
+ ], exports.Chatbot.prototype, "_isDrawerResizing", void 0);
10849
10849
  __decorate([
10850
10850
  r()
10851
10851
  ], exports.Chatbot.prototype, "_pendingConversationFiles", void 0);