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