@kodaris/krubble-app-components 1.0.102 → 1.0.103

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.
@@ -7318,122 +7318,6 @@ let KRChatbot = class KRChatbot extends i$3 {
7318
7318
  }
7319
7319
  }
7320
7320
  // --- Render ---
7321
- /**
7322
- * The composer's controls: attach, the textarea, the mic, and send/stop.
7323
- *
7324
- * While dictating, only the mic swaps — to a stop button — so the textarea
7325
- * stays visible with the transcript streaming into it and send stays reachable.
7326
- */
7327
- _renderComposerControls() {
7328
- return b `
7329
- <button
7330
- class="input-plus"
7331
- @click=${this._handlePlusClick}
7332
- >+</button>
7333
- <textarea
7334
- class="input"
7335
- .value=${this._inputValue}
7336
- placeholder=${this.placeholder}
7337
- rows="1"
7338
- @input=${this._handleInputChange}
7339
- @keydown=${this._handleKeyDown}
7340
- @paste=${this._handlePaste}
7341
- ></textarea>
7342
- ${window.SpeechRecognition || window.webkitSpeechRecognition ? b `
7343
- ${this._isDictating ? b `
7344
- <button
7345
- class="mic-stop"
7346
- title="Stop dictation"
7347
- aria-label="Stop dictation"
7348
- @click=${this._handleMicClick}
7349
- >
7350
- <svg
7351
- xmlns="http://www.w3.org/2000/svg"
7352
- fill="currentColor"
7353
- viewBox="0 0 24 24"
7354
- class="mic-stop-icon"
7355
- aria-hidden="true"
7356
- >
7357
- <rect
7358
- x="6"
7359
- y="6"
7360
- width="12"
7361
- height="12"
7362
- rx="2"
7363
- />
7364
- </svg>
7365
- </button>
7366
- ` : b `
7367
- <button
7368
- class="mic"
7369
- title="Dictate a message"
7370
- aria-label="Dictate a message"
7371
- @click=${this._handleMicClick}
7372
- >
7373
- <svg
7374
- xmlns="http://www.w3.org/2000/svg"
7375
- viewBox="0 0 24 24"
7376
- fill="none"
7377
- stroke="currentColor"
7378
- stroke-width="1.75"
7379
- stroke-linecap="round"
7380
- stroke-linejoin="round"
7381
- class="mic-icon"
7382
- aria-hidden="true"
7383
- >
7384
- <path d="M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Z"/>
7385
- <path d="M19 11a7 7 0 0 1-14 0"/>
7386
- <path d="M12 18v3"/>
7387
- </svg>
7388
- </button>
7389
- `}
7390
- ` : A}
7391
- ${this._isStreaming ? b `
7392
- <button
7393
- class="stop"
7394
- @click=${this._handleStop}
7395
- title="Stop generating"
7396
- >
7397
- <svg
7398
- xmlns="http://www.w3.org/2000/svg"
7399
- fill="currentColor"
7400
- viewBox="0 0 24 24"
7401
- class="stop-icon"
7402
- >
7403
- <rect
7404
- x="6"
7405
- y="6"
7406
- width="12"
7407
- height="12"
7408
- rx="2"
7409
- />
7410
- </svg>
7411
- </button>
7412
- ` : b `
7413
- <button
7414
- class=${e({
7415
- 'send': true,
7416
- 'send--disabled': !this._inputValue.trim() && !this._pendingConversationFiles.length,
7417
- })}
7418
- @click=${this._handleSubmit}
7419
- title="Send message"
7420
- >
7421
- <svg
7422
- width="16"
7423
- height="16"
7424
- viewBox="0 0 24 24"
7425
- fill="none"
7426
- stroke="currentColor"
7427
- stroke-width="2.5"
7428
- stroke-linecap="round"
7429
- class="send-icon"
7430
- >
7431
- <path d="M12 19V5M5 12l7-7 7 7"/>
7432
- </svg>
7433
- </button>
7434
- `}
7435
- `;
7436
- }
7437
7321
  /** The `/` skill menu shown above the composer while typing a slash command. */
7438
7322
  _renderSkillMenu() {
7439
7323
  const skills = this._invocableSkills;
@@ -8140,7 +8024,112 @@ let KRChatbot = class KRChatbot extends i$3 {
8140
8024
  />
8141
8025
  ${this._skillMenuOpened ? this._renderSkillMenu() : A}
8142
8026
  <div class="input-wrapper">
8143
- ${this._renderComposerControls()}
8027
+ <button
8028
+ class="input-plus"
8029
+ @click=${this._handlePlusClick}
8030
+ >+</button>
8031
+ <textarea
8032
+ class="input"
8033
+ .value=${this._inputValue}
8034
+ placeholder=${this.placeholder}
8035
+ rows="1"
8036
+ @input=${this._handleInputChange}
8037
+ @keydown=${this._handleKeyDown}
8038
+ @paste=${this._handlePaste}
8039
+ ></textarea>
8040
+ ${window.SpeechRecognition || window.webkitSpeechRecognition ? b `
8041
+ ${this._isDictating ? b `
8042
+ <button
8043
+ class="mic-stop"
8044
+ title="Stop dictation"
8045
+ aria-label="Stop dictation"
8046
+ @click=${this._handleMicClick}
8047
+ >
8048
+ <svg
8049
+ xmlns="http://www.w3.org/2000/svg"
8050
+ fill="currentColor"
8051
+ viewBox="0 0 24 24"
8052
+ class="mic-stop-icon"
8053
+ aria-hidden="true"
8054
+ >
8055
+ <rect
8056
+ x="6"
8057
+ y="6"
8058
+ width="12"
8059
+ height="12"
8060
+ rx="2"
8061
+ />
8062
+ </svg>
8063
+ </button>
8064
+ ` : b `
8065
+ <button
8066
+ class="mic"
8067
+ title="Dictate a message"
8068
+ aria-label="Dictate a message"
8069
+ @click=${this._handleMicClick}
8070
+ >
8071
+ <svg
8072
+ xmlns="http://www.w3.org/2000/svg"
8073
+ viewBox="0 0 24 24"
8074
+ fill="none"
8075
+ stroke="currentColor"
8076
+ stroke-width="1.75"
8077
+ stroke-linecap="round"
8078
+ stroke-linejoin="round"
8079
+ class="mic-icon"
8080
+ aria-hidden="true"
8081
+ >
8082
+ <path d="M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Z"/>
8083
+ <path d="M19 11a7 7 0 0 1-14 0"/>
8084
+ <path d="M12 18v3"/>
8085
+ </svg>
8086
+ </button>
8087
+ `}
8088
+ ` : A}
8089
+ ${this._isStreaming ? b `
8090
+ <button
8091
+ class="stop"
8092
+ @click=${this._handleStop}
8093
+ title="Stop generating"
8094
+ >
8095
+ <svg
8096
+ xmlns="http://www.w3.org/2000/svg"
8097
+ fill="currentColor"
8098
+ viewBox="0 0 24 24"
8099
+ class="stop-icon"
8100
+ >
8101
+ <rect
8102
+ x="6"
8103
+ y="6"
8104
+ width="12"
8105
+ height="12"
8106
+ rx="2"
8107
+ />
8108
+ </svg>
8109
+ </button>
8110
+ ` : b `
8111
+ <button
8112
+ class=${e({
8113
+ 'send': true,
8114
+ 'send--disabled': !this._inputValue.trim() && !this._pendingConversationFiles.length,
8115
+ })}
8116
+ @click=${this._handleSubmit}
8117
+ title="Send message"
8118
+ >
8119
+ <svg
8120
+ width="16"
8121
+ height="16"
8122
+ viewBox="0 0 24 24"
8123
+ fill="none"
8124
+ stroke="currentColor"
8125
+ stroke-width="2.5"
8126
+ stroke-linecap="round"
8127
+ class="send-icon"
8128
+ >
8129
+ <path d="M12 19V5M5 12l7-7 7 7"/>
8130
+ </svg>
8131
+ </button>
8132
+ `}
8144
8133
  </div>
8145
8134
  </div>
8146
8135
  ${this._skillBrowseOpened ? this._renderSkillBrowse() : A}