@8wave/ai-elements 0.126.0-beta.22 → 0.126.0-beta.23
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/{PkChatbotFilePreview-jN3SAlut.js → PkChatbotFilePreview-B4vbUkNp.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-jN3SAlut.js.map → PkChatbotFilePreview-B4vbUkNp.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-qoTgaVHP.js → PkStreamingMarkdown-GRB3Gg_x.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-qoTgaVHP.js.map → PkStreamingMarkdown-GRB3Gg_x.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-uAyCds1k.js → PkToolChatFile-DTm5-CE4.js} +2 -2
- package/dist/_chunks/{PkToolChatFile-uAyCds1k.js.map → PkToolChatFile-DTm5-CE4.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-NUMXFQ2e.js → PkToolShareDocument-DYr0Rq4D.js} +2 -2
- package/dist/_chunks/{PkToolShareDocument-NUMXFQ2e.js.map → PkToolShareDocument-DYr0Rq4D.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-D1p76r2a.js → PkToolShowArtifact-C9_DHr5Y.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-D1p76r2a.js.map → PkToolShowArtifact-C9_DHr5Y.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-B4S4qtxp.js → PkToolShowContactForm-DhyelktO.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-B4S4qtxp.js.map → PkToolShowContactForm-DhyelktO.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-CauQT97Z.js → PkToolShowDiagram-DWVSCu33.js} +2 -2
- package/dist/_chunks/{PkToolShowDiagram-CauQT97Z.js.map → PkToolShowDiagram-DWVSCu33.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-1sJBr8KY.js → PkToolShowForm-Dz2Hnzts.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-1sJBr8KY.js.map → PkToolShowForm-Dz2Hnzts.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DFhYCp-v.js → PkToolShowImageGallery-By-CPFS0.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DFhYCp-v.js.map → PkToolShowImageGallery-By-CPFS0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DFHejVc0.js → PkToolShowSources-YDHIZ6Ly.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-DFHejVc0.js.map → PkToolShowSources-YDHIZ6Ly.js.map} +1 -1
- package/dist/_chunks/{useLightbox-CUT_xmuZ.js → useLightbox-Co8iz61W.js} +75 -58
- package/dist/_chunks/useLightbox-Co8iz61W.js.map +1 -0
- package/dist/ai-elements.es.js +12 -12
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotFilePreview.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-VJorpNbU.js → PkChatbot-CwHVS4sT.js} +3 -3
- package/dist-vue/_chunks/{PkChatbot-VJorpNbU.js.map → PkChatbot-CwHVS4sT.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-B9dYpXZm.js → PkChatbotEmptyState-BF3Odn3v.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-B9dYpXZm.js.map → PkChatbotEmptyState-BF3Odn3v.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFilePreview-5_bih_vc.js → PkChatbotFilePreview-aKJBtw04.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFilePreview-5_bih_vc.js.map → PkChatbotFilePreview-aKJBtw04.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-BLKhf3WD.js → PkChatbotInput-DNXvFvyG.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotInput-BLKhf3WD.js.map → PkChatbotInput-DNXvFvyG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-Dx_IIX0J.js → PkChatbotMessages-DOOQRLEc.js} +17 -17
- package/dist-vue/_chunks/{PkChatbotMessages-Dx_IIX0J.js.map → PkChatbotMessages-DOOQRLEc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BAQ1LriG.js → PkChatbotSteps-BalLo6DZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotSteps-BAQ1LriG.js.map → PkChatbotSteps-BalLo6DZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-1RqLcPl4.js → PkChatbotViewChat-BWdFuQ4P.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-1RqLcPl4.js.map → PkChatbotViewChat-BWdFuQ4P.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-Dkm34tMI.js → PkFilePreview-B4LOpz5I.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-Dkm34tMI.js.map → PkFilePreview-B4LOpz5I.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-CZg7uqHL.js → PkFilePreviewDialog-C_JCOUKx.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-CZg7uqHL.js.map → PkFilePreviewDialog-C_JCOUKx.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-D6Qxwf47.js → PkStreamingMarkdown-CMxiJTMR.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-D6Qxwf47.js.map → PkStreamingMarkdown-CMxiJTMR.js.map} +1 -1
- package/dist-vue/_chunks/{PkSvgViewer-jCi13HSd.js → PkSvgViewer-PAr87kCa.js} +2 -2
- package/dist-vue/_chunks/{PkSvgViewer-jCi13HSd.js.map → PkSvgViewer-PAr87kCa.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-uO6r1l6t.js → PkToolChatFile-Bd6Ci7i1.js} +2 -2
- package/dist-vue/_chunks/{PkToolChatFile-uO6r1l6t.js.map → PkToolChatFile-Bd6Ci7i1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShareDocument-B7mMJJfn.js → PkToolShareDocument-Bkt9JVqk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShareDocument-B7mMJJfn.js.map → PkToolShareDocument-Bkt9JVqk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-VOfSN9nc.js → PkToolShowArtifact-rlZ-AGWh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-VOfSN9nc.js.map → PkToolShowArtifact-rlZ-AGWh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-D9J0B3C-.js → PkToolShowContactForm-BVBL7Unx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-D9J0B3C-.js.map → PkToolShowContactForm-BVBL7Unx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BlV7ktLW.js → PkToolShowDiagram-Bs39QQZ3.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BlV7ktLW.js.map → PkToolShowDiagram-Bs39QQZ3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BCvqIlt_.js → PkToolShowForm-D-RJeA2F.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowForm-BCvqIlt_.js.map → PkToolShowForm-D-RJeA2F.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-D2DrAB9v.js → PkToolShowImageGallery-8nTrgIRm.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowImageGallery-D2DrAB9v.js.map → PkToolShowImageGallery-8nTrgIRm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowLocation-BhVcLnkV.js → PkToolShowLocation-CqqtwH_R.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowLocation-BhVcLnkV.js.map → PkToolShowLocation-CqqtwH_R.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList--MBQ_ztM.js → PkToolShowProductList-BwfUG41_.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList--MBQ_ztM.js.map → PkToolShowProductList-BwfUG41_.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-D_KfNZ_Q.js → PkToolShowSources-ChGsGtb3.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-D_KfNZ_Q.js.map → PkToolShowSources-ChGsGtb3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CS6iDwjn.js → PkToolShowVideo-BK-jDVJd.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CS6iDwjn.js.map → PkToolShowVideo-BK-jDVJd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-y3sajjCP.js → PkToolShowWebPages-K3Jml1f7.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-y3sajjCP.js.map → PkToolShowWebPages-K3Jml1f7.js.map} +1 -1
- package/dist-vue/_chunks/{useLightbox-BZN3tRGu.js → useLightbox-DrEFS3gx.js} +75 -58
- package/dist-vue/_chunks/useLightbox-DrEFS3gx.js.map +1 -0
- package/dist-vue/index.js +22 -22
- package/dist-vue/packages/components/src/composables/useLightbox.d.ts +12 -0
- package/package.json +1 -1
- package/dist/_chunks/useLightbox-CUT_xmuZ.js.map +0 -1
- package/dist-vue/_chunks/useLightbox-BZN3tRGu.js.map +0 -1
package/dist-vue/_chunks/{PkFilePreviewDialog-CZg7uqHL.js → PkFilePreviewDialog-C_JCOUKx.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-B4LOpz5I.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-C_JCOUKx.js.map
|
package/dist-vue/_chunks/{PkFilePreviewDialog-CZg7uqHL.js.map → PkFilePreviewDialog-C_JCOUKx.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkFilePreviewDialog-
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-C_JCOUKx.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/_chunks/{PkStreamingMarkdown-D6Qxwf47.js → PkStreamingMarkdown-CMxiJTMR.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as e } from "./utils-Bdk5kFfi.js";
|
|
2
2
|
import { W as t } from "./Agent-CRwhrv5Z.js";
|
|
3
|
-
import { a as n, o as r, s as i } from "./useLightbox-
|
|
3
|
+
import { a as n, o as r, s as i } from "./useLightbox-DrEFS3gx.js";
|
|
4
4
|
import "./src-nb8MU1sh.js";
|
|
5
5
|
import { i as a, n as o } from "./url-validation-CJV9pp4v.js";
|
|
6
6
|
import { n as s } from "./useShortUrlResolver-KJDk7QLj.js";
|
|
@@ -3509,4 +3509,4 @@ var La = ["data-pswp-images", "innerHTML"], Ra = 100, za = /* @__PURE__ */ u({
|
|
|
3509
3509
|
});
|
|
3510
3510
|
export { Ma as n, Ia as r, za as t };
|
|
3511
3511
|
|
|
3512
|
-
//# sourceMappingURL=PkStreamingMarkdown-
|
|
3512
|
+
//# sourceMappingURL=PkStreamingMarkdown-CMxiJTMR.js.map
|