@8wave/ai-elements 0.125.0-beta.14 → 0.125.0-beta.16
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/_chunks/{PkFilePreview-rAHDDtGS.js → PkFilePreview-8nVPKv8k.js} +348 -320
- package/dist/_chunks/PkFilePreview-8nVPKv8k.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-BBFrC_rn.js → PkFilePreviewDialog-BHPcGlnF.js} +6 -3
- package/dist/_chunks/PkFilePreviewDialog-BHPcGlnF.js.map +1 -0
- package/dist/ai-elements.es.js +115 -115
- 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/_chunks/{PkChatbot-D48q-ulR.js → PkChatbot-Bpo22_yE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-D48q-ulR.js.map → PkChatbot-Bpo22_yE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-lLX_msKI.js → PkChatbotViewChat-Drp0At_n.js} +284 -284
- package/dist-vue/_chunks/PkChatbotViewChat-Drp0At_n.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-Ac_8QIBX.js → PkFilePreview-z7JcRtjP.js} +527 -499
- package/dist-vue/_chunks/PkFilePreview-z7JcRtjP.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-DGBaeZ8y.js → PkFilePreviewDialog-zVon3aPY.js} +6 -3
- package/dist-vue/_chunks/PkFilePreviewDialog-zVon3aPY.js.map +1 -0
- package/dist-vue/index.js +3 -3
- package/dist-vue/packages/components/src/chat/PkFilePreviewDialog.d.ts +2 -2
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkFilePreview-rAHDDtGS.js.map +0 -1
- package/dist/_chunks/PkFilePreviewDialog-BBFrC_rn.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-lLX_msKI.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-Ac_8QIBX.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreviewDialog-DGBaeZ8y.js.map +0 -1
package/dist-vue/_chunks/{PkFilePreviewDialog-DGBaeZ8y.js → PkFilePreviewDialog-zVon3aPY.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-z7JcRtjP.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
|
|
@@ -23,7 +23,10 @@ var u = /*@__PURE__*/ a({
|
|
|
23
23
|
sheetModifiers: {},
|
|
24
24
|
zoom: {},
|
|
25
25
|
zoomModifiers: {},
|
|
26
|
-
fit: {
|
|
26
|
+
fit: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
27
30
|
fitModifiers: {}
|
|
28
31
|
}),
|
|
29
32
|
emits: /*@__PURE__*/ o([
|
|
@@ -102,4 +105,4 @@ var u = /*@__PURE__*/ a({
|
|
|
102
105
|
}), d = /* @__PURE__ */ e({ default: () => f }), f = u;
|
|
103
106
|
export { d as n, f as t };
|
|
104
107
|
|
|
105
|
-
//# sourceMappingURL=PkFilePreviewDialog-
|
|
108
|
+
//# sourceMappingURL=PkFilePreviewDialog-zVon3aPY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-zVon3aPY.js","names":["_useModel","__unplugin_components_0","_openBlock","_createBlock","_withCtx","_createVNode","PkFilePreview","_sfc_main","__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","../../../../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 { 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 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 }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\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 :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\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","<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 { 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 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 }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\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 :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCI,IAAMmB,IAAOD,GAaPE,IAAOpB,EAA4BsB,GAAC,MAAM,GAC1CC,IAAQvB,EAAmBsB,GAAC,OAAO,GACnCE,IAAOxB,EAAmBsB,GAAC,MAAM,GAGjCG,IAAMzB,EAAoBsB,GAAC,KAAwB;;;GAIzD,OAAApB,EAAA,GAAAC,EAgCWuB,GAAA;IA/BN,eAAa;IACb,cAAYJ,EAAA,OAAO;IACnB,WAAWA,EAAA,aAAU,eAAkB,KAAA;IACxC,OAAM;IACL,uBAAkB,AAAAQ,EAAA,QAAA,MAAA,CAAGC,KAAUZ,EAAI,OAAA;;IACpC,SAAAf,QAyB6B,CAzB7BC,EAyB6BC,GAAA;KAxBjB,MAAMc,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,OAAAA,EAAA;KACA,YAAAA,EAAA;KACA,QAAAA,EAAA;KACA,WAASA,EAAA,OAAO;KAChB,oBAAkBA,EAAA,OAAO;KACzB,qBAAAA,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,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
|
@@ -17,7 +17,7 @@ import { B as it, E as at, F as ot, L as st, M as ct, X as lt, Y as ut, Z as dt,
|
|
|
17
17
|
import { t as _t } from "./_chunks/useSafeLocalStorage-Bn4SsL8C.js";
|
|
18
18
|
import { t as vt } from "./_chunks/useDialogConfirm-fn7iV-iE.js";
|
|
19
19
|
import { i as yt, n as bt, r as xt, t as St } from "./_chunks/PkChatbotViewConversations-C0KqM_Wq.js";
|
|
20
|
-
import { a as Ct, i as wt, n as Tt, o as Et, r as Dt, t as Ot } from "./_chunks/PkChatbotViewChat-
|
|
20
|
+
import { a as Ct, i as wt, n as Tt, o as Et, r as Dt, t as Ot } from "./_chunks/PkChatbotViewChat-Drp0At_n.js";
|
|
21
21
|
import { t as kt } from "./_chunks/PkChatbotError-BS84xuiu.js";
|
|
22
22
|
import { t as At } from "./_chunks/useImageFallback-HUe4GHah.js";
|
|
23
23
|
import { t as jt } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
|
@@ -39,7 +39,7 @@ import { t as nr } from "./_chunks/PkChatbotStepToolDetail-CALZDpfQ.js";
|
|
|
39
39
|
import { n as rr, t as ir } from "./_chunks/PkChatbotInput-BVu1b2Te.js";
|
|
40
40
|
import { t as ar } from "./_chunks/PkChatbotEmptyState-CQ_Qdkge.js";
|
|
41
41
|
import { t as or } from "./_chunks/PkChatbotViewProfile-BfNE3d7F.js";
|
|
42
|
-
import { t as sr } from "./_chunks/PkChatbot-
|
|
42
|
+
import { t as sr } from "./_chunks/PkChatbot-Bpo22_yE.js";
|
|
43
43
|
import { i as cr, r as lr, t as ur } from "./_chunks/PkToolShowSources-BHRNGn4s.js";
|
|
44
44
|
import { t as dr } from "./_chunks/mcpOAuthReport-D-MtFYwN.js";
|
|
45
45
|
import { t as fr } from "./_chunks/PkToolShowEmail-BehvoNsz.js";
|
|
@@ -55,7 +55,7 @@ import { t as xr } from "./_chunks/PkToolShowImageGallery-Dmr5zXTj.js";
|
|
|
55
55
|
import { t as Sr } from "./_chunks/PkToolShowSuggestedReply-DHCqxA1P.js";
|
|
56
56
|
import { t as Cr } from "./_chunks/PkToolShareDocument-BIZkgcJ3.js";
|
|
57
57
|
import { t as wr } from "./_chunks/PkToolChatFile-DqLGwJxp.js";
|
|
58
|
-
import { t as Tr } from "./_chunks/PkFilePreviewDialog-
|
|
58
|
+
import { t as Tr } from "./_chunks/PkFilePreviewDialog-zVon3aPY.js";
|
|
59
59
|
import { t as Er } from "./_chunks/PkToolRequestGeolocation-BnV7A6SW.js";
|
|
60
60
|
import { VvAccordion as Dr, VvAccordionGroup as Or, VvAlert as kr, VvAlertGroup as Ar, VvBadge as jr, VvButtonGroup as Mr, VvCheckbox as Nr, VvCombobox as Pr, VvDialog as Fr, VvDropdown as Ir, VvDropdownAction as Lr, VvIcon as Rr, VvInputFile as zr, VvInputRange as Br, VvInputText as Vr, VvTab as Hr } from "@volverjs/ui-vue/components";
|
|
61
61
|
import { Fragment as A, Teleport as Ur, Transition as Wr, TransitionGroup as Gr, cloneVNode as Kr, computed as j, createApp as qr, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createSlots as Jr, createStaticVNode as Yr, createTextVNode as I, createVNode as L, defineComponent as R, guardReactiveProps as Xr, h as Zr, inject as z, isRef as Qr, isVNode as $r, mergeModels as ei, mergeProps as ti, nextTick as ni, normalizeClass as ri, normalizeProps as ii, normalizeStyle as ai, onBeforeUnmount as oi, onMounted as si, onUnmounted as ci, openBlock as B, provide as li, reactive as ui, readonly as di, ref as V, renderList as fi, renderSlot as pi, resolveComponent as mi, resolveDynamicComponent as hi, shallowRef as gi, toDisplayString as H, toRef as _i, toRefs as vi, unref as U, useId as yi, useModel as W, useSlots as bi, useTemplateRef as xi, vModelSelect as Si, vModelText as Ci, watch as G, withCtx as K, withDirectives as wi, withKeys as Ti, withModifiers as Ei } from "vue";
|
|
@@ -39,7 +39,7 @@ declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, C
|
|
|
39
39
|
restore: () => any;
|
|
40
40
|
"update:sheet": (value: number | undefined) => any;
|
|
41
41
|
"update:zoom": (value: number | undefined) => any;
|
|
42
|
-
"update:fit": (value: boolean
|
|
42
|
+
"update:fit": (value: boolean) => any;
|
|
43
43
|
"update:mode": (value: WordPreviewMode | undefined) => any;
|
|
44
44
|
resize: () => any;
|
|
45
45
|
selectionSend: (text: string, pointer: {
|
|
@@ -83,7 +83,7 @@ declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, C
|
|
|
83
83
|
onRestore?: (() => any) | undefined;
|
|
84
84
|
"onUpdate:sheet"?: ((value: number | undefined) => any) | undefined;
|
|
85
85
|
"onUpdate:zoom"?: ((value: number | undefined) => any) | undefined;
|
|
86
|
-
"onUpdate:fit"?: ((value: boolean
|
|
86
|
+
"onUpdate:fit"?: ((value: boolean) => any) | undefined;
|
|
87
87
|
"onUpdate:mode"?: ((value: WordPreviewMode | undefined) => any) | undefined;
|
|
88
88
|
onResize?: (() => any) | undefined;
|
|
89
89
|
onSelectionSend?: ((text: string, pointer: {
|