@8wave/ai-elements 0.124.0-beta.2 → 0.124.0-beta.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.
- package/dist/_chunks/{PkFilePreview-DXmgMwwu.js → PkFilePreview-C21RR0l6.js} +3 -2
- package/dist/_chunks/{PkFilePreview-DXmgMwwu.js.map → PkFilePreview-C21RR0l6.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-Bzt534GA.js → PkFilePreviewDialog-C5Ex7Rf5.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-Bzt534GA.js.map → PkFilePreviewDialog-C5Ex7Rf5.js.map} +1 -1
- package/dist/ai-elements.es.js +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-C7--w-xA.js → PkChatbot-BA2tk9ix.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-C7--w-xA.js.map → PkChatbot-BA2tk9ix.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-mWZvsKLA.js → PkChatbotViewChat-C8-fUyQh.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewChat-mWZvsKLA.js.map → PkChatbotViewChat-C8-fUyQh.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-CFqcO3vY.js → PkFilePreview-DfRbMUCD.js} +2 -1
- package/dist-vue/_chunks/{PkFilePreview-CFqcO3vY.js.map → PkFilePreview-DfRbMUCD.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-DeNnbXWq.js → PkFilePreviewDialog-Cap9D7s8.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-DeNnbXWq.js.map → PkFilePreviewDialog-Cap9D7s8.js.map} +1 -1
- package/dist-vue/index.js +3 -3
- package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +5 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
package/dist-vue/_chunks/{PkFilePreviewDialog-DeNnbXWq.js → PkFilePreviewDialog-Cap9D7s8.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-DfRbMUCD.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
|
|
@@ -93,4 +93,4 @@ var u = /*@__PURE__*/ a({
|
|
|
93
93
|
}), d = /* @__PURE__ */ e({ default: () => f }), f = u;
|
|
94
94
|
export { d as n, f as t };
|
|
95
95
|
|
|
96
|
-
//# sourceMappingURL=PkFilePreviewDialog-
|
|
96
|
+
//# sourceMappingURL=PkFilePreviewDialog-Cap9D7s8.js.map
|
package/dist-vue/_chunks/{PkFilePreviewDialog-DeNnbXWq.js.map → PkFilePreviewDialog-Cap9D7s8.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkFilePreviewDialog-
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-Cap9D7s8.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","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 { ChatFilePreview } 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 }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\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 const fit = defineModel<boolean>('fit')\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 @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\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 { ChatFilePreview } 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 }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\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 const fit = defineModel<boolean>('fit')\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 @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BI,IAAMmB,IAAOD,GAQPE,IAAOpB,EAA4BsB,GAAC,MAAM,GAC1CC,IAAQvB,EAAmBsB,GAAC,OAAO,GACnCE,IAAOxB,EAAmBsB,GAAC,MAAM,GACjCG,IAAMzB,EAAoBsB,GAAC,KAAK;;;GAItC,OAAApB,EAAA,GAAAC,EAyBWuB,GAAA;IAxBN,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,QAkB6B,CAlB7BC,EAkB6BC,GAAA;KAjBjB,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,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,SAAK,AAAAW,EAAA,QAAA,MAAEX,EAAI,OAAA"}
|
package/dist-vue/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { E as nt, F as rt, G as it, K as at, M as ot, W as st, g as ct, k as lt,
|
|
|
16
16
|
import { t as ft } from "./_chunks/useSafeLocalStorage-Bn4SsL8C.js";
|
|
17
17
|
import { t as pt } from "./_chunks/useDialogConfirm-fn7iV-iE.js";
|
|
18
18
|
import { i as mt, n as ht, r as gt, t as _t } from "./_chunks/PkChatbotViewConversations-CIv5g2xZ.js";
|
|
19
|
-
import { a as vt, i as yt, n as bt, o as xt, r as St, t as Ct } from "./_chunks/PkChatbotViewChat-
|
|
19
|
+
import { a as vt, i as yt, n as bt, o as xt, r as St, t as Ct } from "./_chunks/PkChatbotViewChat-C8-fUyQh.js";
|
|
20
20
|
import { t as wt } from "./_chunks/PkChatbotError-BS84xuiu.js";
|
|
21
21
|
import { t as Tt } from "./_chunks/useImageFallback-HUe4GHah.js";
|
|
22
22
|
import { t as Et } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
|
@@ -38,7 +38,7 @@ import { t as er } from "./_chunks/PkChatbotStepToolDetail-Cs322RDk.js";
|
|
|
38
38
|
import { n as tr, t as nr } from "./_chunks/PkChatbotInput-DSH5IrO6.js";
|
|
39
39
|
import { t as rr } from "./_chunks/PkChatbotEmptyState-qKpfIuvI.js";
|
|
40
40
|
import { t as ir } from "./_chunks/PkChatbotViewProfile-D3d-hG14.js";
|
|
41
|
-
import { t as ar } from "./_chunks/PkChatbot-
|
|
41
|
+
import { t as ar } from "./_chunks/PkChatbot-BA2tk9ix.js";
|
|
42
42
|
import { i as or, r as sr, t as cr } from "./_chunks/PkToolShowSources-BJd4zYAY.js";
|
|
43
43
|
import { t as lr } from "./_chunks/mcpOAuthReport-D-MtFYwN.js";
|
|
44
44
|
import { t as ur } from "./_chunks/PkToolShowEmail-BehvoNsz.js";
|
|
@@ -54,7 +54,7 @@ import { t as yr } from "./_chunks/PkToolShowImageGallery-CEzeXupr.js";
|
|
|
54
54
|
import { t as br } from "./_chunks/PkToolShowSuggestedReply-Bb7Inxa4.js";
|
|
55
55
|
import { t as xr } from "./_chunks/PkToolShareDocument-CsS5OTDj.js";
|
|
56
56
|
import { t as Sr } from "./_chunks/PkToolChatFile-UZeUytvT.js";
|
|
57
|
-
import { t as Cr } from "./_chunks/PkFilePreviewDialog-
|
|
57
|
+
import { t as Cr } from "./_chunks/PkFilePreviewDialog-Cap9D7s8.js";
|
|
58
58
|
import { t as wr } from "./_chunks/PkToolRequestGeolocation-gEDbmudT.js";
|
|
59
59
|
import { VvAccordion as Tr, VvAccordionGroup as Er, VvAlert as Dr, VvAlertGroup as Or, VvBadge as kr, VvButtonGroup as Ar, VvCheckbox as jr, VvCombobox as Mr, VvDialog as Nr, VvDropdown as Pr, VvDropdownAction as Fr, VvIcon as Ir, VvInputFile as Lr, VvInputRange as Rr, VvInputText as zr, VvTab as Br } from "@volverjs/ui-vue/components";
|
|
60
60
|
import { Fragment as k, Teleport as Vr, Transition as Hr, TransitionGroup as Ur, cloneVNode as Wr, computed as A, createApp as Gr, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as Kr, createStaticVNode as qr, createTextVNode as F, createVNode as I, defineComponent as L, guardReactiveProps as Jr, h as Yr, inject as R, isRef as Xr, isVNode as Zr, mergeModels as Qr, mergeProps as $r, nextTick as ei, normalizeClass as ti, normalizeProps as ni, normalizeStyle as ri, onBeforeUnmount as ii, onMounted as ai, onUnmounted as oi, openBlock as z, provide as si, reactive as ci, readonly as li, ref as B, renderList as ui, renderSlot as di, resolveComponent as fi, resolveDynamicComponent as pi, shallowRef as mi, toDisplayString as V, toRef as hi, toRefs as gi, unref as H, useId as _i, useModel as U, useSlots as vi, useTemplateRef as yi, vModelSelect as bi, vModelText as xi, watch as W, withCtx as G, withDirectives as Si, withKeys as Ci, withModifiers as wi } from "vue";
|
|
@@ -343,6 +343,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
343
343
|
decimals?: number | undefined;
|
|
344
344
|
maxDecimals?: number | undefined;
|
|
345
345
|
currency?: string | undefined;
|
|
346
|
+
grouped?: true | undefined;
|
|
346
347
|
missing?: true | undefined;
|
|
347
348
|
formula?: string | undefined;
|
|
348
349
|
style?: number | undefined;
|
|
@@ -736,6 +737,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
736
737
|
decimals?: number | undefined;
|
|
737
738
|
maxDecimals?: number | undefined;
|
|
738
739
|
currency?: string | undefined;
|
|
740
|
+
grouped?: true | undefined;
|
|
739
741
|
missing?: true | undefined;
|
|
740
742
|
formula?: string | undefined;
|
|
741
743
|
style?: number | undefined;
|
|
@@ -58,6 +58,7 @@ export declare const SpreadsheetPreviewCellSchema: z.ZodObject<{
|
|
|
58
58
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
59
59
|
maxDecimals: z.ZodOptional<z.ZodNumber>;
|
|
60
60
|
currency: z.ZodOptional<z.ZodString>;
|
|
61
|
+
grouped: z.ZodOptional<z.ZodLiteral<true>>;
|
|
61
62
|
missing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
62
63
|
formula: z.ZodOptional<z.ZodString>;
|
|
63
64
|
style: z.ZodOptional<z.ZodNumber>;
|
|
@@ -81,6 +82,7 @@ export declare const SpreadsheetPreviewRowSchema: z.ZodObject<{
|
|
|
81
82
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
82
83
|
maxDecimals: z.ZodOptional<z.ZodNumber>;
|
|
83
84
|
currency: z.ZodOptional<z.ZodString>;
|
|
85
|
+
grouped: z.ZodOptional<z.ZodLiteral<true>>;
|
|
84
86
|
missing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
85
87
|
formula: z.ZodOptional<z.ZodString>;
|
|
86
88
|
style: z.ZodOptional<z.ZodNumber>;
|
|
@@ -112,6 +114,7 @@ export declare const SpreadsheetPreviewSheetSchema: z.ZodObject<{
|
|
|
112
114
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
113
115
|
maxDecimals: z.ZodOptional<z.ZodNumber>;
|
|
114
116
|
currency: z.ZodOptional<z.ZodString>;
|
|
117
|
+
grouped: z.ZodOptional<z.ZodLiteral<true>>;
|
|
115
118
|
missing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
116
119
|
formula: z.ZodOptional<z.ZodString>;
|
|
117
120
|
style: z.ZodOptional<z.ZodNumber>;
|
|
@@ -156,6 +159,7 @@ export declare const SpreadsheetPreviewSchema: z.ZodObject<{
|
|
|
156
159
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
157
160
|
maxDecimals: z.ZodOptional<z.ZodNumber>;
|
|
158
161
|
currency: z.ZodOptional<z.ZodString>;
|
|
162
|
+
grouped: z.ZodOptional<z.ZodLiteral<true>>;
|
|
159
163
|
missing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
160
164
|
formula: z.ZodOptional<z.ZodString>;
|
|
161
165
|
style: z.ZodOptional<z.ZodNumber>;
|
|
@@ -725,6 +729,7 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
725
729
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
726
730
|
maxDecimals: z.ZodOptional<z.ZodNumber>;
|
|
727
731
|
currency: z.ZodOptional<z.ZodString>;
|
|
732
|
+
grouped: z.ZodOptional<z.ZodLiteral<true>>;
|
|
728
733
|
missing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
729
734
|
formula: z.ZodOptional<z.ZodString>;
|
|
730
735
|
style: z.ZodOptional<z.ZodNumber>;
|