@8wave/ai-elements 0.127.0-beta.2 → 0.127.0-beta.3
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 +356 -356
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotWakeupBar.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-8Fqlhwq5.js → PkChatbot-B2SwBImk.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-8Fqlhwq5.js.map → PkChatbot-B2SwBImk.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DTKfW1kr.js → PkChatbotViewChat-DPk9LjX-.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-DTKfW1kr.js.map → PkChatbotViewChat-DPk9LjX-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotWakeupBar-Bx1zqFAX.js → PkChatbotWakeupBar-IoQJdUjI.js} +11 -11
- package/dist-vue/_chunks/PkChatbotWakeupBar-IoQJdUjI.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-sSb1Mmr2.js → PkFilePreview-DLJ2wTHk.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-sSb1Mmr2.js.map → PkFilePreview-DLJ2wTHk.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.js → PkFilePreviewDialog-CDPZ3QIk.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.js.map → PkFilePreviewDialog-CDPZ3QIk.js.map} +1 -1
- package/dist-vue/index.js +5 -5
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbotWakeupBar-Bx1zqFAX.js.map +0 -1
package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.js → PkFilePreviewDialog-CDPZ3QIk.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { t } from "./PkFilePreview-
|
|
2
|
+
import { t } from "./PkFilePreview-DLJ2wTHk.js";
|
|
3
3
|
import { VvDialog as n } from "@volverjs/ui-vue/components";
|
|
4
4
|
import { createBlock as r, createVNode as i, defineComponent as a, mergeModels as o, openBlock as s, useModel as c, withCtx as l } from "vue";
|
|
5
5
|
// ../../packages/components/src/chat/PkFilePreviewDialog.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -113,4 +113,4 @@ var u = /*@__PURE__*/ a({
|
|
|
113
113
|
}), d = /* @__PURE__ */ e({ default: () => f }), f = u;
|
|
114
114
|
export { d as n, f as t };
|
|
115
115
|
|
|
116
|
-
//# sourceMappingURL=PkFilePreviewDialog-
|
|
116
|
+
//# sourceMappingURL=PkFilePreviewDialog-CDPZ3QIk.js.map
|
package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.js.map → PkFilePreviewDialog-CDPZ3QIk.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkFilePreviewDialog-
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-CDPZ3QIk.js","names":["_useModel","_openBlock","_createBlock","_withCtx","_createVNode","PkFilePreview","__exportAll","PkFilePreviewDialog_vue_vue_type_script_setup_true_lang_default","\"mode\"","\"modeModifiers\"","\"sheet\"","\"sheetModifiers\"","\"zoom\"","\"zoomModifiers\"","\"fit\"","\"fitModifiers\"","__emit","emit","mode","useModel","__props","sheet","zoom","fit","_component_VvDialog","VvDialog","openBlock","createBlock","_cache","$event","withCtx","createVNode","PkFilePreview_default","text","pointer","action","PkFilePreviewDialog_exports","PkFilePreviewDialog_default"],"sources":["../../../../packages/components/src/chat/PkFilePreviewDialog.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n /** The agent answers in the chat the dialog covers. */\n working?: boolean\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n showChat: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n :working\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @show-chat=\"emit('showChat')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCI,IAAMiB,IAAOD,GAcPE,IAAOlB,EAA4BoB,GAAC,MAAM,GAC1CC,IAAQrB,EAAmBoB,GAAC,OAAO,GACnCE,IAAOtB,EAAmBoB,GAAC,MAAM,GAGjCG,IAAMvB,EAAoBoB,GAAC,KAAwB;;;GAIzD,OAAAnB,EAAA,GAAAC,EAmCWsB,GAAA;IAlCN,eAAa;IACb,cAAYJ,EAAA,OAAO;IACnB,WAAWA,EAAA,aAAU,eAAkB,KAAA;IACxC,OAAM;IACL,uBAAkB,AAAAQ,EAAA,SAAA,MAAA,CAAGC,KAAUZ,EAAI,OAAA;;IACpC,SAAAd,QA4B6B,CA5B7BC,EA4B6BC,GAAA;KA3BjB,MAAMa,EAAA;KAAA,iBAAA,AAAAU,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,OAAOR,EAAA;KAAA,kBAAA,AAAAO,EAAA,QAAA,MAAA,EAAK,QAAAC;KACZ,MAAMP,EAAA;KAAA,iBAAA,AAAAM,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,KAAKN,EAAA;KAAA,gBAAA,AAAAK,EAAA,QAAA,MAAA,EAAG,QAAAC;KACf,MAAMT,EAAA,OAAO;KACb,UAAUA,EAAA,OAAO;KACjB,SAASA,EAAA,OAAO;KAChB,UAAAA,EAAA;KACA,gBAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,OAAAA,EAAA;KACA,YAAAA,EAAA;KACA,QAAAA,EAAA;KACA,WAASA,EAAA,OAAO;KAChB,oBAAkBA,EAAA,OAAO;KACzB,qBAAAA,EAAA;KACA,SAAAA,EAAA;KACA,WAAO,AAAAQ,EAAA,QAAA,MAAEX,EAAI,WAAYY,CAAM;KAC/B,WAAO,AAAAD,EAAA,QAAA,MAAEX,EAAI,SAAA;KACb,UAAM,AAAAW,EAAA,QAAA,MAAEX,EAAI,QAAA;KACZ,YAAS,AAAAW,EAAA,QAAA,MAAEX,EAAI,UAAA;KACf,iBAAc,AAAAW,EAAA,QAAoB,GAAM,GAAS,MAA+BX,EAAI,iBAAkBgB,GAAMC,GAASC,CAAM;KAI3H,SAAK,AAAAP,EAAA,QAAA,MAAEX,EAAI,OAAA"}
|
package/dist-vue/index.js
CHANGED
|
@@ -22,14 +22,14 @@ import { t as Tn } from "./_chunks/PkChatbotError-DFZ5S5jd.js";
|
|
|
22
22
|
import { t as En } from "./_chunks/PkLazyImg-D_Tmtfz3.js";
|
|
23
23
|
import { t as Dn } from "./_chunks/useSafeLocalStorage-Bn4SsL8C.js";
|
|
24
24
|
import { n as On } from "./_chunks/PkChatbotLocalFolders-CSvqh_Cx.js";
|
|
25
|
-
import { i as kn, r as An } from "./_chunks/PkFilePreview-
|
|
25
|
+
import { i as kn, r as An } from "./_chunks/PkFilePreview-DLJ2wTHk.js";
|
|
26
26
|
import { B as jn, D as Mn, F as Nn, M as Pn, R as Fn, U as In, W as Ln, _ as Rn, l as zn, x as Bn, y as Vn } from "./_chunks/utils-CY0jFRnG.js";
|
|
27
27
|
import { i as Hn } from "./_chunks/ChatTask-2-ffbJFK.js";
|
|
28
|
-
import { n as Un } from "./_chunks/PkChatbotWakeupBar-
|
|
28
|
+
import { n as Un } from "./_chunks/PkChatbotWakeupBar-IoQJdUjI.js";
|
|
29
29
|
import { t as Wn } from "./_chunks/PkAvatar-DwtZWSW4.js";
|
|
30
30
|
import { r as Gn, t as Kn } from "./_chunks/PkToolShowForm-DfFmPOt6.js";
|
|
31
31
|
import { i as qn, n as Jn, r as Yn, t as Xn } from "./_chunks/PkChatbotViewConversations-NA_PCvZR.js";
|
|
32
|
-
import { a as Zn, c as Qn, d as $n, i as er, l as tr, n as nr, o as rr, s as ir, t as ar, u as or } from "./_chunks/PkChatbotViewChat-
|
|
32
|
+
import { a as Zn, c as Qn, d as $n, i as er, l as tr, n as nr, o as rr, s as ir, t as ar, u as or } from "./_chunks/PkChatbotViewChat-DPk9LjX-.js";
|
|
33
33
|
import { t as sr } from "./_chunks/PkSvgViewer-BBRyAFWm.js";
|
|
34
34
|
import { t as cr } from "./_chunks/PkUrl-IFszepUi.js";
|
|
35
35
|
import "./_chunks/src-nb8MU1sh.js";
|
|
@@ -43,7 +43,7 @@ import { t as yr } from "./_chunks/PkChatbotStepToolDetail-wIZmkvr-.js";
|
|
|
43
43
|
import { n as br, t as xr } from "./_chunks/PkChatbotInput-CJ5lPtpH.js";
|
|
44
44
|
import { t as Sr } from "./_chunks/PkChatbotEmptyState-C_htXOSW.js";
|
|
45
45
|
import { t as Cr } from "./_chunks/PkChatbotViewProfile-iTBiQVsZ.js";
|
|
46
|
-
import { t as wr } from "./_chunks/PkChatbot-
|
|
46
|
+
import { t as wr } from "./_chunks/PkChatbot-B2SwBImk.js";
|
|
47
47
|
import { t as Tr } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
|
48
48
|
import { t as Er } from "./_chunks/mcpOAuthReport-D-MtFYwN.js";
|
|
49
49
|
import { t as Dr } from "./_chunks/PkToolShowEmail-C_iJsuec.js";
|
|
@@ -59,7 +59,7 @@ import { t as Ir } from "./_chunks/PkToolShowImageGallery-DA6KW2g_.js";
|
|
|
59
59
|
import { t as Lr } from "./_chunks/PkToolShowSuggestedReply-C863wgtU.js";
|
|
60
60
|
import { t as Rr } from "./_chunks/PkToolShareDocument-CVDYH1kA.js";
|
|
61
61
|
import { t as zr } from "./_chunks/PkToolChatFile-IEQxfzjM.js";
|
|
62
|
-
import { t as Br } from "./_chunks/PkFilePreviewDialog-
|
|
62
|
+
import { t as Br } from "./_chunks/PkFilePreviewDialog-CDPZ3QIk.js";
|
|
63
63
|
import { t as Vr } from "./_chunks/PkToolRequestGeolocation-BmrbMPke.js";
|
|
64
64
|
import { VvAccordion as Hr, VvAccordionGroup as Ur, VvAlert as Wr, VvAlertGroup as Gr, VvBadge as Kr, VvButtonGroup as qr, VvCheckbox as Jr, VvCombobox as Yr, VvDialog as Xr, VvDropdown as Zr, VvDropdownAction as Qr, VvIcon as $r, VvInputFile as ei, VvInputRange as ti, VvInputText as ni, VvTab as ri, VvTextarea as ii } from "@volverjs/ui-vue/components";
|
|
65
65
|
import { Fragment as j, Teleport as ai, Transition as oi, TransitionGroup as si, cloneVNode as ci, computed as M, createApp as li, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as ui, createStaticVNode as di, createTextVNode as L, createVNode as R, defineComponent as z, guardReactiveProps as fi, h as pi, inject as B, isRef as mi, isVNode as hi, mergeModels as gi, mergeProps as _i, nextTick as vi, normalizeClass as yi, normalizeProps as bi, normalizeStyle as xi, onBeforeUnmount as Si, onMounted as Ci, onUnmounted as wi, openBlock as V, provide as Ti, reactive as Ei, readonly as Di, ref as H, renderList as Oi, renderSlot as ki, resolveComponent as Ai, resolveDynamicComponent as ji, shallowRef as Mi, toDisplayString as U, toRef as Ni, toRefs as Pi, unref as W, useId as Fi, useModel as G, useSlots as Ii, useTemplateRef as Li, vModelSelect as Ri, vModelText as zi, watch as K, withCtx as q, withDirectives as Bi, withKeys as Vi, withModifiers as Hi } from "vue";
|