@8wave/ai-elements 0.117.0-beta.14 → 0.117.0-beta.22
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/ai-elements.es.js +599 -569
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAudioTranscript.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-CSMWib9A.js → PkChatbot-BEnC7_hV.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-CSMWib9A.js.map → PkChatbot-BEnC7_hV.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotAudioTranscript-BUxBHanA.js +80 -0
- package/dist-vue/_chunks/PkChatbotAudioTranscript-BUxBHanA.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-DJmRPFB8.js → PkChatbotMessages-DnoohZxu.js} +276 -276
- package/dist-vue/_chunks/PkChatbotMessages-DnoohZxu.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-C7eA7hef.js → PkChatbotViewChat-BM51ovrp.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-C7eA7hef.js.map → PkChatbotViewChat-BM51ovrp.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BKz7OPHC.js → PkToolShowDiagram-DzE-X06t.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BKz7OPHC.js.map → PkToolShowDiagram-DzE-X06t.js.map} +1 -1
- package/dist-vue/index.js +3 -3
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbotAudioTranscript-B-cSKvWR.js +0 -52
- package/dist-vue/_chunks/PkChatbotAudioTranscript-B-cSKvWR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-DJmRPFB8.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { VvAccordion as e, VvIcon as t } from "@volverjs/ui-vue/components";
|
|
2
|
-
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, toDisplayString as d, unref as f, withCtx as p } from "vue";
|
|
3
|
-
import { useI18n as m } from "vue-i18n";
|
|
4
|
-
//#region ../../packages/components/src/chat/PkChatbotAudioTranscript.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var h = { class: "pk-chatbot-audio" }, g = ["src"], _ = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "pk-chatbot-audio__status flex items-center gap-8 text-12 text-word-3 mb-0",
|
|
8
|
-
role: "status"
|
|
9
|
-
}, v = { class: "pk-chatbot-audio__text text-14 text-word-2 mb-0" }, y = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "pk-chatbot-audio__status text-12 text-word-3 mb-0"
|
|
12
|
-
}, b = /* @__PURE__ */ l({
|
|
13
|
-
__name: "PkChatbotAudioTranscript",
|
|
14
|
-
props: {
|
|
15
|
-
url: {},
|
|
16
|
-
transcript: {},
|
|
17
|
-
pending: { type: Boolean }
|
|
18
|
-
},
|
|
19
|
-
setup(l) {
|
|
20
|
-
let b = l, { t: x } = m({ useScope: "global" }), S = n(() => {
|
|
21
|
-
switch (b.transcript?.status) {
|
|
22
|
-
case "no-speech": return x("messagePart.audioTranscriptNoSpeech");
|
|
23
|
-
case "failed": return x("messagePart.audioTranscriptFailed");
|
|
24
|
-
case "off": return x("messagePart.audioTranscriptOff");
|
|
25
|
-
default: return;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return (n, m) => {
|
|
29
|
-
let b = t, C = e;
|
|
30
|
-
return u(), a("div", h, [o("audio", {
|
|
31
|
-
class: "pk-chatbot-audio__player",
|
|
32
|
-
src: l.url,
|
|
33
|
-
controls: "",
|
|
34
|
-
preload: "none"
|
|
35
|
-
}, null, 8, g), l.pending && !l.transcript ? (u(), a("p", _, [c(b, {
|
|
36
|
-
name: "loading-loop",
|
|
37
|
-
class: "text-16"
|
|
38
|
-
}), s(" " + d(f(x)("messagePart.audioTranscribing")), 1)])) : l.transcript?.status === "ready" && l.transcript.text ? (u(), r(C, {
|
|
39
|
-
key: 1,
|
|
40
|
-
modifiers: "compact",
|
|
41
|
-
title: f(x)("messagePart.audioTranscript")
|
|
42
|
-
}, {
|
|
43
|
-
default: p(() => [o("p", v, d(l.transcript.text), 1)]),
|
|
44
|
-
_: 1
|
|
45
|
-
}, 8, ["title"])) : S.value ? (u(), a("p", y, d(S.value), 1)) : i("", !0)]);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
//#endregion
|
|
50
|
-
export { b as t };
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=PkChatbotAudioTranscript-B-cSKvWR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PkChatbotAudioTranscript-B-cSKvWR.js","names":["__unplugin_components_0","__unplugin_components_1","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_createTextVNode","_toDisplayString","_unref","_createBlock","_withCtx","_createCommentVNode","_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","PkChatbotAudioTranscript_default","defineComponent","props","__props","$t","useI18n","missing","computed","_component_VvIcon","VvIcon","_component_VvAccordion","VvAccordion","openBlock","createElementBlock","createElementVNode","createVNode","createTextVNode","toDisplayString","unref","createBlock","withCtx","createCommentVNode"],"sources":["../../../../packages/components/src/chat/PkChatbotAudioTranscript.vue","../../../../packages/components/src/chat/PkChatbotAudioTranscript.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n import type { ChatAudioTranscript } from 'models'\n\n const props = defineProps<{\n /** Where the recording plays from. */\n url: string\n /** What the turn heard, once it has (spec `audio-file-transcription.md`, D4). */\n transcript?: ChatAudioTranscript\n /** The turn is still transcribing it: the answer waits on it. */\n pending?: boolean\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n /** Why there is no transcript to open, when there is none. */\n const missing = computed(() => {\n switch (props.transcript?.status) {\n case 'no-speech':\n return $t('messagePart.audioTranscriptNoSpeech')\n case 'failed':\n return $t('messagePart.audioTranscriptFailed')\n case 'off':\n return $t('messagePart.audioTranscriptOff')\n default:\n return undefined\n }\n })\n</script>\n\n<template>\n <div class=\"pk-chatbot-audio\">\n <audio\n class=\"pk-chatbot-audio__player\"\n :src=\"url\"\n controls\n preload=\"none\" />\n <p\n v-if=\"pending && !transcript\"\n class=\"pk-chatbot-audio__status flex items-center gap-8 text-12 text-word-3 mb-0\"\n role=\"status\">\n <VvIcon name=\"loading-loop\" class=\"text-16\" />\n {{ $t('messagePart.audioTranscribing') }}\n </p>\n <VvAccordion\n v-else-if=\"transcript?.status === 'ready' && transcript.text\"\n modifiers=\"compact\"\n :title=\"$t('messagePart.audioTranscript')\">\n <p class=\"pk-chatbot-audio__text text-14 text-word-2 mb-0\">\n {{ transcript.text }}\n </p>\n </VvAccordion>\n <p\n v-else-if=\"missing\"\n class=\"pk-chatbot-audio__status text-12 text-word-3 mb-0\">\n {{ missing }}\n </p>\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chatbot-audio {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n min-width: 0;\n }\n\n .pk-chatbot-audio__player {\n width: 100%;\n max-width: 20rem;\n }\n\n // The paragraphs and their [hh:mm:ss] stamps are the transcript's own.\n .pk-chatbot-audio__text {\n white-space: pre-line;\n overflow-wrap: anywhere;\n }\n</style>\n","<script lang=\"ts\" setup>\n import { computed } from 'vue'\n import { useI18n } from 'vue-i18n'\n import type { ChatAudioTranscript } from 'models'\n\n const props = defineProps<{\n /** Where the recording plays from. */\n url: string\n /** What the turn heard, once it has (spec `audio-file-transcription.md`, D4). */\n transcript?: ChatAudioTranscript\n /** The turn is still transcribing it: the answer waits on it. */\n pending?: boolean\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n /** Why there is no transcript to open, when there is none. */\n const missing = computed(() => {\n switch (props.transcript?.status) {\n case 'no-speech':\n return $t('messagePart.audioTranscriptNoSpeech')\n case 'failed':\n return $t('messagePart.audioTranscriptFailed')\n case 'off':\n return $t('messagePart.audioTranscriptOff')\n default:\n return undefined\n }\n })\n</script>\n\n<template>\n <div class=\"pk-chatbot-audio\">\n <audio\n class=\"pk-chatbot-audio__player\"\n :src=\"url\"\n controls\n preload=\"none\" />\n <p\n v-if=\"pending && !transcript\"\n class=\"pk-chatbot-audio__status flex items-center gap-8 text-12 text-word-3 mb-0\"\n role=\"status\">\n <VvIcon name=\"loading-loop\" class=\"text-16\" />\n {{ $t('messagePart.audioTranscribing') }}\n </p>\n <VvAccordion\n v-else-if=\"transcript?.status === 'ready' && transcript.text\"\n modifiers=\"compact\"\n :title=\"$t('messagePart.audioTranscript')\">\n <p class=\"pk-chatbot-audio__text text-14 text-word-2 mb-0\">\n {{ transcript.text }}\n </p>\n </VvAccordion>\n <p\n v-else-if=\"missing\"\n class=\"pk-chatbot-audio__status text-12 text-word-3 mb-0\">\n {{ missing }}\n </p>\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chatbot-audio {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n min-width: 0;\n }\n\n .pk-chatbot-audio__player {\n width: 100%;\n max-width: 20rem;\n }\n\n // The paragraphs and their [hh:mm:ss] stamps are the transcript's own.\n .pk-chatbot-audio__text {\n white-space: pre-line;\n overflow-wrap: anywhere;\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAKI,IAAMoB,IAAQC,GASR,EAAE,GAAGC,MAAOC,EAAQ,EAAE,UAAU,SAAS,CAAC,GAG1CC,IAAUC,QAAe;GAC3B,QAAQL,EAAM,YAAY,QAA1B;IACI,KAAK,aACD,OAAOE,EAAG,qCAAqC;IACnD,KAAK,UACD,OAAOA,EAAG,mCAAmC;IACjD,KAAK,OACD,OAAOA,EAAG,gCAAgC;IAC9C,SACI;GACR;EACJ,CAAC;;;GAID,OAAApB,EAAA,GAAAC,EA0BM,OA1BNU,GA0BM,CAzBFT,EAIqB,SAAA;IAHjB,OAAM;IACL,KAAKiB,EAAA;IACN,UAAA;IACA,SAAQ;GAEF,GAAA,MAAA,GAAAP,CAAA,GAAAO,EAAA,WAAO,CAAKA,EAAA,cADtBnB,EAAA,GAAAC,EAMI,KANJY,GAMI,CAFAV,EAA8CqB,GAAA;IAAtC,MAAK;IAAe,OAAM;GAAYpB,CAAAA,GAAAA,EAAA,MAC9CC,EAAGC,EAAAc,CAAA,CAAE,CAAA,+BAAA,CAAA,GAAA,CAAA,CAAA,CAAA,KAGMD,EAAA,YAAY,WAAM,WAAgBA,EAAA,WAAW,QAD5DnB,EAAA,GAAAO,EAOcmB,GAAA;;IALV,WAAU;IACT,OAAOpB,EAAAc,CAAA,CAAE,CAAA,6BAAA;;IACV,SAAAZ,QAEI,CAFJN,EAEI,KAFJY,GAEIT,EADGc,EAAA,WAAW,IAAI,GAAA,CAAA,CAAA,CAAA;;GAIX,GAAA,GAAA,CAAA,OAAA,CAAA,KAAAG,EAAA,SADftB,EAAA,GAAAC,EAII,KAJJc,GAIIV,EADGiB,EAAA,KAAO,GAAA,CAAA,KAAAe,EAAA,IAAA,EAAA,CAAA,CAAA"}
|