@adminforth/agent 2.7.2 → 2.7.4
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
class="flex items-center justify-center rounded-xl border px-6 border-gray-200 dark:border-gray-700 min-w-0 transition-shadow duration-150 z-20"
|
|
4
4
|
@click="handleMarkdownLinkClick"
|
|
5
5
|
:class="[
|
|
6
|
-
hasVegaLite ? 'w-full my-2' : '
|
|
6
|
+
hasVegaLite ? 'w-full my-2' : 'my-2',
|
|
7
7
|
props.role === 'user' ? 'bg-lightListTableHeading dark:bg-darkListTableHeading self-end max-w-[80%] mr-4'
|
|
8
8
|
: 'border-none self-start max-w-full',
|
|
9
9
|
props.editMode ? 'ring-2 ring-lightPrimary dark:ring-darkPrimary w-full max-w-[calc(100%-2rem)] flex-col items-stretch py-3' : ''
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
text-decoration-style:dotted;
|
|
163
163
|
color: rgb(0, 0, 0);
|
|
164
164
|
transition: color 0.2s ease;
|
|
165
|
+
word-break: break-all;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
.incremark a.incremark-link:hover {
|
|
@@ -126,8 +126,10 @@ async function onStartRecording() {
|
|
|
126
126
|
agentAudio.playBeep(1000);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
function onStopRecording() {
|
|
130
|
-
|
|
129
|
+
function onStopRecording(playBeep = true) {
|
|
130
|
+
if (playBeep) {
|
|
131
|
+
agentAudio.playBeep(600);
|
|
132
|
+
}
|
|
131
133
|
stopUserMedia();
|
|
132
134
|
audioAmplitude.value = 0;
|
|
133
135
|
showAudioWavesAnimation.value = false;
|
|
@@ -180,7 +182,7 @@ async function sendRecordForTranscription() {
|
|
|
180
182
|
onBeforeUnmount(() => {
|
|
181
183
|
stopUserMedia();
|
|
182
184
|
agentStore.setIsAudioChatMode(false);
|
|
183
|
-
onStopRecording();
|
|
185
|
+
onStopRecording(false);
|
|
184
186
|
hideAnimationDebounced.cancel();
|
|
185
187
|
sendUserRecordDebounced.cancel();
|
|
186
188
|
});
|