@kodaris/krubble-app-components 1.0.79 → 1.0.80

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.
@@ -5751,7 +5751,7 @@
5751
5751
  /**
5752
5752
  * AI framework UI config flags fetched from `aiFrameworkConfig` on connect.
5753
5753
  * `debugTelemetryEnabled` (same server-side gate as TOKEN_USAGE emission) turns
5754
- * on the debug drawer toggle and the `/test-warning` / `/test-limit` composer
5754
+ * on the debug drawer toggle and the `/test-context-warning` / `/test-context-limit` composer
5755
5755
  * options — known up front, before any message.
5756
5756
  */
5757
5757
  this._aiFrameworkConfig = {};
@@ -6223,7 +6223,7 @@
6223
6223
  if (debugActions && index === 2) {
6224
6224
  this._skillMenuOpened = false;
6225
6225
  this._send({
6226
- message: '/test-warning',
6226
+ message: '/test-context-warning',
6227
6227
  internalFiles: [],
6228
6228
  });
6229
6229
  return;
@@ -6231,7 +6231,7 @@
6231
6231
  if (debugActions && index === 3) {
6232
6232
  this._skillMenuOpened = false;
6233
6233
  this._send({
6234
- message: '/test-limit',
6234
+ message: '/test-context-limit',
6235
6235
  internalFiles: [],
6236
6236
  });
6237
6237
  return;
@@ -6916,7 +6916,7 @@
6916
6916
  })}
6917
6917
  @click=${() => this._activateSkillMenuItem(2)}
6918
6918
  >
6919
- Test: context warning
6919
+ Test Context Warning
6920
6920
  </button>
6921
6921
  <button
6922
6922
  class=${e({
@@ -6925,7 +6925,7 @@
6925
6925
  })}
6926
6926
  @click=${() => this._activateSkillMenuItem(3)}
6927
6927
  >
6928
- Test: context limit
6928
+ Test Context Limit
6929
6929
  </button>
6930
6930
  ` : A}
6931
6931
  </div>
@@ -7508,9 +7508,7 @@
7508
7508
  </svg>
7509
7509
  </button>
7510
7510
  </div>
7511
- ` : A}
7512
-
7513
- ${this._contextLimitReached ? b `
7511
+ ` : this._contextLimitReached ? b `
7514
7512
  <div class="context-limit" role="alert">
7515
7513
  ${this._contextLimitMessage
7516
7514
  || 'This conversation has reached its limit. Please start a new one to continue.'}
@@ -8096,14 +8094,22 @@
8096
8094
 
8097
8095
  /* Context warning banner (user-facing, dismissible, non-blocking) */
8098
8096
  .context-warning {
8099
- padding: 8px 16px;
8097
+ /* Match the message text column: 768px cap minus its 32px side padding
8098
+ (704px), and viewport minus that padding on narrower screens. */
8099
+ width: 100%;
8100
+ max-width: 735px;
8101
+ margin: 8px auto 0;
8102
+ padding: 10px 14px;
8103
+ border: 1px solid #fde68a;
8104
+ border-radius: 8px;
8100
8105
  background: #fffbeb;
8101
8106
  color: #92400e;
8102
8107
  font-size: 13px;
8108
+ line-height: 1.4;
8103
8109
  display: flex;
8104
8110
  align-items: center;
8105
8111
  justify-content: space-between;
8106
- gap: 8px;
8112
+ gap: 10px;
8107
8113
  flex-shrink: 0;
8108
8114
  }
8109
8115
 
@@ -8116,6 +8122,11 @@
8116
8122
  display: flex;
8117
8123
  align-items: center;
8118
8124
  flex-shrink: 0;
8125
+ opacity: 0.7;
8126
+ }
8127
+
8128
+ .context-warning-dismiss:hover {
8129
+ opacity: 1;
8119
8130
  }
8120
8131
 
8121
8132
  .context-warning-dismiss-icon {
@@ -8125,11 +8136,18 @@
8125
8136
 
8126
8137
  /* Context-limit notice (user-facing, blocking — steers to a new conversation) */
8127
8138
  .context-limit {
8128
- padding: 10px 16px;
8139
+ /* Match the message text column: 768px cap minus its 32px side padding
8140
+ (704px), and viewport minus that padding on narrower screens. */
8141
+ width: 100%;
8142
+ max-width: 735px;
8143
+ margin: 8px auto 0;
8144
+ padding: 10px 14px;
8145
+ border: 1px solid #fecaca;
8146
+ border-radius: 8px;
8129
8147
  background: var(--kr-chatbot-error-bg);
8130
8148
  color: var(--kr-chatbot-error-text);
8131
8149
  font-size: 13px;
8132
- line-height: 1.5;
8150
+ line-height: 1.4;
8133
8151
  flex-shrink: 0;
8134
8152
  }
8135
8153