wi-chat 0.5.0 → 0.5.1
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/mobile-ui/index.cjs +1 -1
- package/dist/mobile-ui/index.js +87 -81
- package/dist/mobile-ui/style.css +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.js +176 -161
- package/dist/tools/useAutoScroll.d.ts +11 -3
- package/dist/web-ui/index.cjs +1 -1
- package/dist/web-ui/index.js +336 -331
- package/dist/web-ui/style.css +1 -1
- package/package.json +1 -1
package/dist/mobile-ui/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("wi-chat/renderers"),e=require("vue"),B=require("vant"),I=require("wi-chat/tools"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("wi-chat/renderers"),e=require("vue"),B=require("vant"),I=require("wi-chat/tools"),T={class:"wi-mobile-inputbox"},V=e.defineComponent({__name:"Inputbox",props:{modelValue:{default:""},placeholder:{default:"请输入问题(Enter 发送)"},disabled:{type:Boolean,default:!1},disabledSend:{type:Boolean,default:!1},enterExact:{type:Boolean,default:!0},submitText:{default:"发送"},stopText:{default:"停止"},talking:{type:Boolean,default:!1},buttonType:{default:"primary"}},emits:["update:modelValue","submit","stop"],setup(r,{emit:u}){const a=r,o=u,d=()=>{if(a.talking){o("stop");return}a.disabled||a.disabledSend||o("submit")},m=t=>{t.isComposing||t.keyCode===229||!a.enterExact||a.talking||(t.preventDefault(),d())};return(t,l)=>(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(e.unref(B.Field),{"model-value":t.modelValue,type:"textarea",rows:"2",autosize:"",placeholder:t.placeholder,disabled:t.disabled,"onUpdate:modelValue":l[0]||(l[0]=p=>o("update:modelValue",String(p??""))),onKeydown:e.withKeys(e.withModifiers(m,["exact"]),["enter"])},null,8,["model-value","placeholder","disabled","onKeydown"]),e.createVNode(e.unref(B.Button),{class:"wi-mobile-inputbox__btn",type:t.talking?"danger":t.buttonType,size:"small",disabled:t.disabled,onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.talking?t.stopText:t.submitText),1)]),_:1},8,["type","disabled"])]))}}),h=(r,u)=>{const a=r.__vccOpts||r;for(const[o,d]of u)a[o]=d;return a},v=h(V,[["__scopeId","data-v-02f9c6a0"]]),O=r=>(e.pushScopeId("data-v-04e966f6"),r=r(),e.popScopeId(),r),P={key:0,class:"wi-mobile-chat-messages__loading"},N={key:1,class:"wi-mobile-chat-messages__empty"},j=O(()=>e.createElementVNode("div",{class:"wi-mobile-chat-messages__empty-logo"},"WI",-1)),F={class:"wi-mobile-chat-messages__empty-title"},A={class:"wi-mobile-chat-messages__empty-description"},D={key:0,class:"wi-mobile-chat-messages__user"},q={class:"wi-mobile-chat-messages__user-wrapper"},M={key:0,class:"wi-mobile-chat-messages__attachments"},$={class:"wi-mobile-chat-messages__user-bubble"},x={key:1,class:"wi-mobile-chat-messages__assistant"},K=e.defineComponent({__name:"ChatMessagesView",props:{messages:{default:()=>[]},parsers:{default:()=>[]},outputFileConfig:{},loading:{type:Boolean,default:!1},emptyTitle:{default:"输入问题,开始与 AI 对话"},emptyDescription:{default:"回答内容由共享渲染层统一分发"}},emits:["loadOlder","updateThinkingExpanded"],setup(r,{expose:u,emit:a}){var _,w;const o=r,d=a;n.provideOutputFileConfig(o.outputFileConfig??{});const m=e.ref(),{showScrollToBottom:t,forceScrollToBottom:l,requestScrollToBottom:p,resetScrollState:b,onReachTop:E}=I.useAutoScroll(m),S=e.computed(()=>n.createAnswerContentMap(o.parsers));e.watch(()=>o.messages.length===0,i=>{i&&b()});let y=((_=o.messages[0])==null?void 0:_.id)??"",k=((w=o.messages[o.messages.length-1])==null?void 0:w.id)??"";return e.watch(()=>o.messages,()=>{var g,c;const i=((g=o.messages[0])==null?void 0:g.id)??"",f=((c=o.messages[o.messages.length-1])==null?void 0:c.id)??"",s=i!==y&&f===k;y=i,k=f,!s&&p()},{deep:!0}),E(()=>d("loadOlder")),u({forceScrollToBottom:l,requestScrollToBottom:p}),(i,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollEl",ref:m,class:"wi-mobile-chat-messages"},[i.loading?(e.openBlock(),e.createElementBlock("div",P,"历史加载中...")):i.messages.length===0?(e.openBlock(),e.createElementBlock("div",N,[j,e.createElementVNode("div",F,e.toDisplayString(i.emptyTitle),1),e.createElementVNode("div",A,e.toDisplayString(i.emptyDescription),1)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.messages,s=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,{key:s.id},[s.role==="user"?(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("div",q,[(g=s.attachments)!=null&&g.length?(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.attachments,c=>(e.openBlock(),e.createElementBlock("span",{key:c.name,class:"wi-mobile-chat-messages__attachment"},e.toDisplayString(c.name),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",$,e.toDisplayString(s.content),1)])])):(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(e.unref(n.DeepThinkingSteps),{steps:s.thinking.steps,expanded:s.thinking.expanded,"onUpdate:expanded":c=>d("updateThinkingExpanded",s,c)},null,8,["steps","expanded","onUpdate:expanded"]),e.createVNode(e.unref(n.AiAnswerBubble),{answer:s.answer,error:s.error,stopped:s.stopped,"content-map":S.value},null,8,["answer","error","stopped","content-map"])]))],64)}),128)),e.createVNode(e.Transition,{name:"wi-mobile-chat-messages-fade"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"wi-mobile-chat-messages__bottom",onClick:f[0]||(f[0]=(...s)=>e.unref(l)&&e.unref(l)(...s))}," 回到底部 ")):e.createCommentVNode("",!0)]),_:1})],512))}}),C=h(K,[["__scopeId","data-v-04e966f6"]]),R={class:"wi-mobile-chat-container"},U=e.defineComponent({__name:"ChatContainer",props:{messages:{default:()=>[]},parsers:{default:()=>[]},outputFileConfig:{},loading:{type:Boolean,default:!1},talking:{type:Boolean,default:!1},session:{default:""},question:{default:""},placeholder:{default:"请输入问题,按 Enter 发送"},hasMore:{type:Boolean,default:!0},emptyTitle:{default:"输入问题,开始与 AI 对话"},emptyDescription:{default:"回答内容由共享渲染层统一分发"},disabled:{type:Boolean,default:!1}},emits:["update:question","submit","stop","loadOlder","updateThinkingExpanded"],setup(r,{emit:u}){const a=r,o=u,d=()=>{a.hasMore&&o("loadOlder")},m=()=>{o("submit",{text:a.question})};return(t,l)=>(e.openBlock(),e.createElementBlock("section",R,[e.renderSlot(t.$slots,"messages",{},()=>[e.createVNode(C,{messages:t.messages,parsers:t.parsers,"output-file-config":t.outputFileConfig,loading:t.loading,"empty-title":t.emptyTitle,"empty-description":t.emptyDescription,onLoadOlder:d,onUpdateThinkingExpanded:l[0]||(l[0]=(p,b)=>o("updateThinkingExpanded",p,b))},null,8,["messages","parsers","output-file-config","loading","empty-title","empty-description"])],!0),e.renderSlot(t.$slots,"above-input",{},void 0,!0),e.createVNode(v,{"model-value":t.question,placeholder:t.placeholder,disabled:t.disabled||!t.session,"disabled-send":!t.question.trim(),talking:t.talking,"onUpdate:modelValue":l[1]||(l[1]=p=>o("update:question",p)),onSubmit:m,onStop:l[2]||(l[2]=p=>o("stop"))},null,8,["model-value","placeholder","disabled","disabled-send","talking"])]))}}),z=h(U,[["__scopeId","data-v-9bd22d00"]]);Object.defineProperty(exports,"AiAnswerBubble",{enumerable:!0,get:()=>n.AiAnswerBubble});Object.defineProperty(exports,"ClarificationCard",{enumerable:!0,get:()=>n.ClarificationCard});Object.defineProperty(exports,"DeepThinkingSteps",{enumerable:!0,get:()=>n.DeepThinkingSteps});Object.defineProperty(exports,"IframePage",{enumerable:!0,get:()=>n.IframePage});Object.defineProperty(exports,"KnowledgeStreamResult",{enumerable:!0,get:()=>n.KnowledgeStreamResult});Object.defineProperty(exports,"OutputFile",{enumerable:!0,get:()=>n.OutputFile});Object.defineProperty(exports,"createAnswerContentMap",{enumerable:!0,get:()=>n.createAnswerContentMap});Object.defineProperty(exports,"injectIframeResizerChild",{enumerable:!0,get:()=>n.injectIframeResizerChild});Object.defineProperty(exports,"provideIframePageConfig",{enumerable:!0,get:()=>n.provideIframePageConfig});Object.defineProperty(exports,"provideOutputFileConfig",{enumerable:!0,get:()=>n.provideOutputFileConfig});Object.defineProperty(exports,"resolveIframePlaceholders",{enumerable:!0,get:()=>n.resolveIframePlaceholders});Object.defineProperty(exports,"useIframePage",{enumerable:!0,get:()=>n.useIframePage});exports.ChatContainer=z;exports.ChatMessagesView=C;exports.Inputbox=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mobile-ui/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { provideOutputFileConfig as
|
|
2
|
-
import { AiAnswerBubble as
|
|
3
|
-
import { defineComponent as C, openBlock as i, createElementBlock as n, createVNode as f, unref as c, withKeys as
|
|
4
|
-
import { Field as
|
|
5
|
-
import { useAutoScroll as
|
|
6
|
-
const
|
|
1
|
+
import { provideOutputFileConfig as q, createAnswerContentMap as $, DeepThinkingSteps as x, AiAnswerBubble as P } from "wi-chat/renderers";
|
|
2
|
+
import { AiAnswerBubble as ke, ClarificationCard as ve, DeepThinkingSteps as Ce, IframePage as Te, KnowledgeStreamResult as Ie, OutputFile as Se, createAnswerContentMap as Be, injectIframeResizerChild as Ee, provideIframePageConfig as Ve, provideOutputFileConfig as Ae, resolveIframePlaceholders as Fe, useIframePage as Oe } from "wi-chat/renderers";
|
|
3
|
+
import { defineComponent as C, openBlock as i, createElementBlock as n, createVNode as f, unref as c, withKeys as U, withModifiers as K, withCtx as O, createTextVNode as N, toDisplayString as y, ref as z, computed as L, watch as V, createElementVNode as _, createCommentVNode as k, Fragment as v, renderList as A, Transition as R, pushScopeId as j, popScopeId as W, renderSlot as F } from "vue";
|
|
4
|
+
import { Field as G, Button as H } from "vant";
|
|
5
|
+
import { useAutoScroll as J } from "wi-chat/tools";
|
|
6
|
+
const Q = { class: "wi-mobile-inputbox" }, X = /* @__PURE__ */ C({
|
|
7
7
|
__name: "Inputbox",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { default: "" },
|
|
@@ -18,35 +18,35 @@ const J = { class: "wi-mobile-inputbox" }, Q = /* @__PURE__ */ C({
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["update:modelValue", "submit", "stop"],
|
|
20
20
|
setup(l, { emit: u }) {
|
|
21
|
-
const o = l, t = u,
|
|
21
|
+
const o = l, t = u, r = () => {
|
|
22
22
|
if (o.talking) {
|
|
23
23
|
t("stop");
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
o.disabled || o.disabledSend || t("submit");
|
|
27
27
|
}, g = (e) => {
|
|
28
|
-
e.isComposing || e.keyCode === 229 || !o.enterExact || o.talking || (e.preventDefault(),
|
|
28
|
+
e.isComposing || e.keyCode === 229 || !o.enterExact || o.talking || (e.preventDefault(), r());
|
|
29
29
|
};
|
|
30
|
-
return (e, a) => (i(), n("div",
|
|
31
|
-
f(c(
|
|
30
|
+
return (e, a) => (i(), n("div", Q, [
|
|
31
|
+
f(c(G), {
|
|
32
32
|
"model-value": e.modelValue,
|
|
33
33
|
type: "textarea",
|
|
34
34
|
rows: "2",
|
|
35
35
|
autosize: "",
|
|
36
36
|
placeholder: e.placeholder,
|
|
37
37
|
disabled: e.disabled,
|
|
38
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
39
|
-
onKeydown:
|
|
38
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => t("update:modelValue", String(p ?? ""))),
|
|
39
|
+
onKeydown: U(K(g, ["exact"]), ["enter"])
|
|
40
40
|
}, null, 8, ["model-value", "placeholder", "disabled", "onKeydown"]),
|
|
41
|
-
f(c(
|
|
41
|
+
f(c(H), {
|
|
42
42
|
class: "wi-mobile-inputbox__btn",
|
|
43
43
|
type: e.talking ? "danger" : e.buttonType,
|
|
44
44
|
size: "small",
|
|
45
45
|
disabled: e.disabled,
|
|
46
|
-
onClick:
|
|
46
|
+
onClick: r
|
|
47
47
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
48
|
+
default: O(() => [
|
|
49
|
+
N(y(e.talking ? e.stopText : e.submitText), 1)
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}, 8, ["type", "disabled"])
|
|
@@ -54,25 +54,25 @@ const J = { class: "wi-mobile-inputbox" }, Q = /* @__PURE__ */ C({
|
|
|
54
54
|
}
|
|
55
55
|
}), T = (l, u) => {
|
|
56
56
|
const o = l.__vccOpts || l;
|
|
57
|
-
for (const [t,
|
|
58
|
-
o[t] =
|
|
57
|
+
for (const [t, r] of u)
|
|
58
|
+
o[t] = r;
|
|
59
59
|
return o;
|
|
60
|
-
},
|
|
60
|
+
}, Y = /* @__PURE__ */ T(X, [["__scopeId", "data-v-02f9c6a0"]]), Z = (l) => (j("data-v-04e966f6"), l = l(), W(), l), ee = {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "wi-mobile-chat-messages__loading"
|
|
63
|
-
},
|
|
63
|
+
}, te = {
|
|
64
64
|
key: 1,
|
|
65
65
|
class: "wi-mobile-chat-messages__empty"
|
|
66
|
-
},
|
|
66
|
+
}, se = /* @__PURE__ */ Z(() => /* @__PURE__ */ _("div", { class: "wi-mobile-chat-messages__empty-logo" }, "WI", -1)), oe = { class: "wi-mobile-chat-messages__empty-title" }, ae = { class: "wi-mobile-chat-messages__empty-description" }, ie = {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "wi-mobile-chat-messages__user"
|
|
69
|
-
},
|
|
69
|
+
}, ne = { class: "wi-mobile-chat-messages__user-wrapper" }, le = {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "wi-mobile-chat-messages__attachments"
|
|
72
|
-
},
|
|
72
|
+
}, de = { class: "wi-mobile-chat-messages__user-bubble" }, re = {
|
|
73
73
|
key: 1,
|
|
74
74
|
class: "wi-mobile-chat-messages__assistant"
|
|
75
|
-
},
|
|
75
|
+
}, pe = /* @__PURE__ */ C({
|
|
76
76
|
__name: "ChatMessagesView",
|
|
77
77
|
props: {
|
|
78
78
|
messages: { default: () => [] },
|
|
@@ -84,71 +84,77 @@ const J = { class: "wi-mobile-inputbox" }, Q = /* @__PURE__ */ C({
|
|
|
84
84
|
},
|
|
85
85
|
emits: ["loadOlder", "updateThinkingExpanded"],
|
|
86
86
|
setup(l, { expose: u, emit: o }) {
|
|
87
|
-
var
|
|
88
|
-
const t = l,
|
|
89
|
-
|
|
90
|
-
const g =
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
var B, E;
|
|
88
|
+
const t = l, r = o;
|
|
89
|
+
q(t.outputFileConfig ?? {});
|
|
90
|
+
const g = z(), { showScrollToBottom: e, forceScrollToBottom: a, requestScrollToBottom: p, resetScrollState: w, onReachTop: D } = J(g), M = L(() => $(t.parsers));
|
|
91
|
+
V(
|
|
92
|
+
() => t.messages.length === 0,
|
|
93
|
+
(d) => {
|
|
94
|
+
d && w();
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
let I = ((B = t.messages[0]) == null ? void 0 : B.id) ?? "", S = ((E = t.messages[t.messages.length - 1]) == null ? void 0 : E.id) ?? "";
|
|
98
|
+
return V(
|
|
93
99
|
() => t.messages,
|
|
94
100
|
() => {
|
|
95
|
-
var
|
|
96
|
-
const
|
|
97
|
-
I =
|
|
101
|
+
var b, m;
|
|
102
|
+
const d = ((b = t.messages[0]) == null ? void 0 : b.id) ?? "", h = ((m = t.messages[t.messages.length - 1]) == null ? void 0 : m.id) ?? "", s = d !== I && h === S;
|
|
103
|
+
I = d, S = h, !s && p();
|
|
98
104
|
},
|
|
99
105
|
{ deep: !0 }
|
|
100
|
-
),
|
|
106
|
+
), D(() => r("loadOlder")), u({
|
|
101
107
|
/** 强制滚动到底部 */
|
|
102
108
|
forceScrollToBottom: a,
|
|
103
109
|
/** 自动滚动开启时请求滚动到底部 */
|
|
104
|
-
requestScrollToBottom:
|
|
105
|
-
}), (
|
|
110
|
+
requestScrollToBottom: p
|
|
111
|
+
}), (d, h) => (i(), n("div", {
|
|
106
112
|
ref_key: "scrollEl",
|
|
107
113
|
ref: g,
|
|
108
114
|
class: "wi-mobile-chat-messages"
|
|
109
115
|
}, [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
_("div",
|
|
113
|
-
_("div",
|
|
116
|
+
d.loading ? (i(), n("div", ee, "历史加载中...")) : d.messages.length === 0 ? (i(), n("div", te, [
|
|
117
|
+
se,
|
|
118
|
+
_("div", oe, y(d.emptyTitle), 1),
|
|
119
|
+
_("div", ae, y(d.emptyDescription), 1)
|
|
114
120
|
])) : k("", !0),
|
|
115
|
-
(i(!0), n(v, null,
|
|
116
|
-
var
|
|
121
|
+
(i(!0), n(v, null, A(d.messages, (s) => {
|
|
122
|
+
var b;
|
|
117
123
|
return i(), n(v, {
|
|
118
124
|
key: s.id
|
|
119
125
|
}, [
|
|
120
|
-
s.role === "user" ? (i(), n("div",
|
|
121
|
-
_("div",
|
|
122
|
-
(
|
|
123
|
-
(i(!0), n(v, null,
|
|
126
|
+
s.role === "user" ? (i(), n("div", ie, [
|
|
127
|
+
_("div", ne, [
|
|
128
|
+
(b = s.attachments) != null && b.length ? (i(), n("div", le, [
|
|
129
|
+
(i(!0), n(v, null, A(s.attachments, (m) => (i(), n("span", {
|
|
124
130
|
key: m.name,
|
|
125
131
|
class: "wi-mobile-chat-messages__attachment"
|
|
126
132
|
}, y(m.name), 1))), 128))
|
|
127
133
|
])) : k("", !0),
|
|
128
|
-
_("div",
|
|
134
|
+
_("div", de, y(s.content), 1)
|
|
129
135
|
])
|
|
130
|
-
])) : (i(), n("div",
|
|
131
|
-
f(c(
|
|
136
|
+
])) : (i(), n("div", re, [
|
|
137
|
+
f(c(x), {
|
|
132
138
|
steps: s.thinking.steps,
|
|
133
139
|
expanded: s.thinking.expanded,
|
|
134
|
-
"onUpdate:expanded": (m) =>
|
|
140
|
+
"onUpdate:expanded": (m) => r("updateThinkingExpanded", s, m)
|
|
135
141
|
}, null, 8, ["steps", "expanded", "onUpdate:expanded"]),
|
|
136
|
-
f(c(
|
|
142
|
+
f(c(P), {
|
|
137
143
|
answer: s.answer,
|
|
138
144
|
error: s.error,
|
|
139
145
|
stopped: s.stopped,
|
|
140
|
-
"content-map":
|
|
146
|
+
"content-map": M.value
|
|
141
147
|
}, null, 8, ["answer", "error", "stopped", "content-map"])
|
|
142
148
|
]))
|
|
143
149
|
], 64);
|
|
144
150
|
}), 128)),
|
|
145
|
-
f(
|
|
146
|
-
default:
|
|
151
|
+
f(R, { name: "wi-mobile-chat-messages-fade" }, {
|
|
152
|
+
default: O(() => [
|
|
147
153
|
c(e) ? (i(), n("button", {
|
|
148
154
|
key: 0,
|
|
149
155
|
type: "button",
|
|
150
156
|
class: "wi-mobile-chat-messages__bottom",
|
|
151
|
-
onClick:
|
|
157
|
+
onClick: h[0] || (h[0] = //@ts-ignore
|
|
152
158
|
(...s) => c(a) && c(a)(...s))
|
|
153
159
|
}, " 回到底部 ")) : k("", !0)
|
|
154
160
|
]),
|
|
@@ -156,7 +162,7 @@ const J = { class: "wi-mobile-inputbox" }, Q = /* @__PURE__ */ C({
|
|
|
156
162
|
})
|
|
157
163
|
], 512));
|
|
158
164
|
}
|
|
159
|
-
}),
|
|
165
|
+
}), ue = /* @__PURE__ */ T(pe, [["__scopeId", "data-v-04e966f6"]]), me = { class: "wi-mobile-chat-container" }, ce = /* @__PURE__ */ C({
|
|
160
166
|
__name: "ChatContainer",
|
|
161
167
|
props: {
|
|
162
168
|
messages: { default: () => [] },
|
|
@@ -174,53 +180,53 @@ const J = { class: "wi-mobile-inputbox" }, Q = /* @__PURE__ */ C({
|
|
|
174
180
|
},
|
|
175
181
|
emits: ["update:question", "submit", "stop", "loadOlder", "updateThinkingExpanded"],
|
|
176
182
|
setup(l, { emit: u }) {
|
|
177
|
-
const o = l, t = u,
|
|
183
|
+
const o = l, t = u, r = () => {
|
|
178
184
|
o.hasMore && t("loadOlder");
|
|
179
185
|
}, g = () => {
|
|
180
186
|
t("submit", { text: o.question });
|
|
181
187
|
};
|
|
182
|
-
return (e, a) => (i(), n("section",
|
|
183
|
-
|
|
184
|
-
f(
|
|
188
|
+
return (e, a) => (i(), n("section", me, [
|
|
189
|
+
F(e.$slots, "messages", {}, () => [
|
|
190
|
+
f(ue, {
|
|
185
191
|
messages: e.messages,
|
|
186
192
|
parsers: e.parsers,
|
|
187
193
|
"output-file-config": e.outputFileConfig,
|
|
188
194
|
loading: e.loading,
|
|
189
195
|
"empty-title": e.emptyTitle,
|
|
190
196
|
"empty-description": e.emptyDescription,
|
|
191
|
-
onLoadOlder:
|
|
192
|
-
onUpdateThinkingExpanded: a[0] || (a[0] = (
|
|
197
|
+
onLoadOlder: r,
|
|
198
|
+
onUpdateThinkingExpanded: a[0] || (a[0] = (p, w) => t("updateThinkingExpanded", p, w))
|
|
193
199
|
}, null, 8, ["messages", "parsers", "output-file-config", "loading", "empty-title", "empty-description"])
|
|
194
200
|
], !0),
|
|
195
|
-
|
|
196
|
-
f(
|
|
201
|
+
F(e.$slots, "above-input", {}, void 0, !0),
|
|
202
|
+
f(Y, {
|
|
197
203
|
"model-value": e.question,
|
|
198
204
|
placeholder: e.placeholder,
|
|
199
205
|
disabled: e.disabled || !e.session,
|
|
200
206
|
"disabled-send": !e.question.trim(),
|
|
201
207
|
talking: e.talking,
|
|
202
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
208
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => t("update:question", p)),
|
|
203
209
|
onSubmit: g,
|
|
204
|
-
onStop: a[2] || (a[2] = (
|
|
210
|
+
onStop: a[2] || (a[2] = (p) => t("stop"))
|
|
205
211
|
}, null, 8, ["model-value", "placeholder", "disabled", "disabled-send", "talking"])
|
|
206
212
|
]));
|
|
207
213
|
}
|
|
208
|
-
}),
|
|
214
|
+
}), ye = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-9bd22d00"]]);
|
|
209
215
|
export {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
ke as AiAnswerBubble,
|
|
217
|
+
ye as ChatContainer,
|
|
218
|
+
ue as ChatMessagesView,
|
|
219
|
+
ve as ClarificationCard,
|
|
220
|
+
Ce as DeepThinkingSteps,
|
|
221
|
+
Te as IframePage,
|
|
222
|
+
Y as Inputbox,
|
|
223
|
+
Ie as KnowledgeStreamResult,
|
|
224
|
+
Se as OutputFile,
|
|
219
225
|
Be as createAnswerContentMap,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
226
|
+
Ee as injectIframeResizerChild,
|
|
227
|
+
Ve as provideIframePageConfig,
|
|
228
|
+
Ae as provideOutputFileConfig,
|
|
229
|
+
Fe as resolveIframePlaceholders,
|
|
230
|
+
Oe as useIframePage
|
|
225
231
|
};
|
|
226
232
|
//# sourceMappingURL=index.js.map
|
package/dist/mobile-ui/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.wi-mobile-inputbox[data-v-02f9c6a0]{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--wi-chat-border, #e1e4e8);background:#f7f8fa}.wi-mobile-inputbox[data-v-02f9c6a0] .van-field__control{font-size:14px;line-height:1.75}.wi-mobile-inputbox__btn[data-v-02f9c6a0]{flex-shrink:0}.wi-mobile-chat-messages[data-v-
|
|
1
|
+
.wi-mobile-inputbox[data-v-02f9c6a0]{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--wi-chat-border, #e1e4e8);background:#f7f8fa}.wi-mobile-inputbox[data-v-02f9c6a0] .van-field__control{font-size:14px;line-height:1.75}.wi-mobile-inputbox__btn[data-v-02f9c6a0]{flex-shrink:0}.wi-mobile-chat-messages[data-v-04e966f6]{position:relative;flex:1;min-height:0;overflow-y:auto;padding:14px 12px;background:#f5f7fb;-webkit-overflow-scrolling:touch}.wi-mobile-chat-messages__loading[data-v-04e966f6],.wi-mobile-chat-messages__empty[data-v-04e966f6]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:8px;color:#8a93a6;font-size:13px}.wi-mobile-chat-messages__empty-logo[data-v-04e966f6]{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,var(--wi-chat-primary),color-mix(in srgb,var(--wi-chat-primary) 55%,#7b61ff));color:#fff;font-size:19px;font-weight:700}.wi-mobile-chat-messages__empty-title[data-v-04e966f6]{color:#2c3653;font-size:16px;font-weight:600}.wi-mobile-chat-messages__user[data-v-04e966f6]{display:flex;justify-content:flex-end;margin:12px 0}.wi-mobile-chat-messages__user-wrapper[data-v-04e966f6]{display:flex;flex-direction:column;align-items:flex-end;max-width:86%;gap:6px}.wi-mobile-chat-messages__attachments[data-v-04e966f6]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.wi-mobile-chat-messages__attachment[data-v-04e966f6]{max-width:100%;padding:4px 8px;border:1px solid #dfe4ee;border-radius:6px;background:#fff;color:#53617c;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wi-mobile-chat-messages__user-bubble[data-v-04e966f6]{max-width:100%;padding:9px 12px;border-radius:14px 4px 14px 14px;background:var(--wi-chat-primary);color:#fff;font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.wi-mobile-chat-messages__assistant[data-v-04e966f6]{width:fit-content;max-width:100%;margin:12px 0;padding:10px 11px;border:1px solid #e7eaf2;border-radius:4px 12px 12px;background:#fff;box-shadow:0 4px 14px #3137570d;color:#27344d;font-size:14px;line-height:1.7;word-break:break-word}.wi-mobile-chat-messages__bottom[data-v-04e966f6]{position:sticky;bottom:10px;left:100%;padding:5px 12px;border:1px solid #e1e4e8;border-radius:999px;background:#fff;box-shadow:0 4px 12px #31375724;color:#53617c;font-size:12px}.wi-mobile-chat-messages-fade-enter-active[data-v-04e966f6],.wi-mobile-chat-messages-fade-leave-active[data-v-04e966f6]{transition:opacity .2s ease}.wi-mobile-chat-messages-fade-enter-from[data-v-04e966f6],.wi-mobile-chat-messages-fade-leave-to[data-v-04e966f6]{opacity:0}.wi-mobile-chat-container[data-v-9bd22d00]{display:flex;flex-direction:column;height:100%;min-height:0;background:#f5f7fb}
|
package/dist/tools/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var N=Object.create;var A=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var X=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of J(t))!V.call(e,c)&&c!==o&&A(e,c,{get:()=>t[c],enumerable:!(n=z(t,c))||n.enumerable});return e};var D=(e,t,o)=>(o=e!=null?N(Z(e)):{},X(t||!e||!e.__esModule?A(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("wi-chat/style.css");const w=require("vue"),P=require("wi-chat/parser"),Y=require("@mdit/plugin-katex"),M=require("highlight.js"),E=require("markdown-it"),_=e=>new E().utils.escapeHtml(e),O=e=>_(e).replace(/"/g,""").replace(/'/g,"'"),K=e=>!e||e.includes("get_image_full")?e:e.replace("get_image","get_image_full"),j=e=>{const{langPrefix:t="language-",imagePreview:o=!0,showCodeLang:n=!0,imageSrcResolver:c,imageDownload:l=!0,tableDownload:r=!0}=e,a='<button type="button" class="wi-md-table-download" title="下载 Excel" aria-label="下载表格为 Excel"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg></button>',d=new E({linkify:!0,typographer:!0,breaks:!0,html:!0,langPrefix:t,highlight:(s,u)=>{if(u&&M.getLanguage(u))try{return M.highlight(s,{language:u}).value}catch{return _(s)}return _(s)}}).use(Y.katex,{delimiters:"dollars"});return d.renderer.rules.fence=(s,u,m,y,g)=>{var v;const f=s[u],p=f.info.trim().split(/\s+/)[0].toLowerCase(),k=((v=m.highlight)==null?void 0:v.call(m,f.content,p,""))||_(f.content);return`
|
|
2
2
|
<div class="wi-md-block">
|
|
3
3
|
<div class="wi-md-block-header">
|
|
4
|
-
<div class="wi-md-block-header-left">${
|
|
4
|
+
<div class="wi-md-block-header-left">${n&&p?`<span class="wi-md-lang">${_(p)}</span>`:""}</div>
|
|
5
5
|
<div class="wi-md-block-header-right">
|
|
6
6
|
<button type="button" class="wi-md-copy" title="复制" aria-label="复制代码">
|
|
7
7
|
<svg viewBox="0 0 16 16" width="14" height="14" fill="currentColor"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Zm5-5C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"/></svg>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</button>
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
|
-
<pre class="wi-md-code"><code class="${m.langPrefix}${
|
|
14
|
+
<pre class="wi-md-code"><code class="${m.langPrefix}${_(p)}">${k}</code></pre>
|
|
15
15
|
</div>
|
|
16
|
-
`.trim()},d.renderer.rules.table_open=()=>r?'<div class="wi-md-table-wrap"><table class="wi-md-table">':'<table class="wi-md-table">',d.renderer.rules.table_close=()=>r?`</table>${a}</div>`:"</table>",d.renderer.rules.ordered_list_open=(
|
|
16
|
+
`.trim()},d.renderer.rules.table_open=()=>r?'<div class="wi-md-table-wrap"><table class="wi-md-table">':'<table class="wi-md-table">',d.renderer.rules.table_close=()=>r?`</table>${a}</div>`:"</table>",d.renderer.rules.ordered_list_open=(s,u,m,y,g)=>(s[u].attrJoin("class","wi-md-list wi-md-list-ordered"),g.renderToken(s,u,m)),d.renderer.rules.bullet_list_open=(s,u,m,y,g)=>(s[u].attrJoin("class","wi-md-list wi-md-list-bullet"),g.renderToken(s,u,m)),d.renderer.rules.list_item_open=(s,u,m,y,g)=>(s[u].attrJoin("class","wi-md-list-item"),g.renderToken(s,u,m)),d.renderer.rules.image=(s,u,m,y,g)=>{const f=s[u],p=f.attrGet("src")||"",k=f.attrGet("alt")||f.content||"",S=f.attrGet("title")||"",v=[`src="${O(p)}"`,`alt="${O(k)}"`,S?`title="${O(S)}"`:""].filter(Boolean).join(" ");if(!o)return`<img ${v} />`;const x=c?c(p):K(p),h=l?'<span class="wi-md-image-download" title="下载图片" role="button" aria-label="下载图片"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg></span>':"";return`<span class="wi-md-image-wrap" data-src="${O(x)}"><img ${v} loading="lazy" />${h}</span>`},d},Q=".wi-markdown";let W=0;const q=()=>{const e="data-wi-md-scope",t=`wi-md-scope-${++W}`;return{attr:e,id:t,selector:`[${e}="${t}"]`}},ee=/^(background|padding|margin|width|height|min-width|min-height|max-width|max-height|overflow|display|position|inset|top|right|bottom|left|border|box-shadow|flex|gap|justify-content|align-items)/i,te=e=>e.replace(/(^|[{};,])(\s*)(?:html|body|:root)(?![\w-])\s*\{([^}]*)\}/gi,(t,o,n,c)=>{const l=c.split(";").map(r=>r.trim()).filter(r=>r&&!ee.test(r)).join(";");return l?`${o}${n}:scope{${l}}`:""}),oe=(e,t)=>{const o=[];let n=e.replace(/<style\b([^>]*)>([\s\S]*?)<\/style\s*>/gi,(c,l,r)=>{const a=/^\s*@scope\b/i.test(r)?`<style${l}>${r}</style>`:`<style${l}>@scope (${t}) {${te(r)}}</style>`;return o.push(a),`\0wi-md-style-${o.length-1}\0`});return n=n.replace(/<\/?style\b[^>]*>/gi,""),n=n.replace(/<script\b[^>]*>[\s\S]*?<\/script\s*>/gi,"").replace(/<\/?script\b[^>]*>/gi,""),n=n.replace(/<link\b[^>]*>/gi,""),n.replace(/\u0000wi-md-style-(\d+)\u0000/g,(c,l)=>o[Number(l)])};let B=null;const ne=()=>(B||(B=j({})),B),re=e=>(e.langPrefix===void 0||e.langPrefix==="language-")&&(e.imagePreview===void 0||e.imagePreview)&&(e.showCodeLang===void 0||e.showCodeLang)&&(e.imageDownload===void 0||e.imageDownload)&&(e.tableDownload===void 0||e.tableDownload)&&!e.imageSrcResolver,I=(e,t={})=>{const o=re(t)?ne():j(t);return oe(o.render(e),t.styleScope||Q)};let T=null;const U=()=>{T&&(w.render(null,T),T.remove(),T=null)},F=async(e,t,o)=>{U();const n=t&&t.length?t.includes(e)?t:[e,...t.filter(d=>d!==e)]:[e],c=Math.max(o??n.indexOf(e),0),l=document.createElement("div");document.body.appendChild(l),T=l;const{ElImageViewer:r}=await import("element-plus");if(T!==l)return;const a=w.createVNode(r,{urlList:n,initialIndex:Math.min(c,n.length-1),onClose:U,hideOnClickModal:!0,teleported:!0});w.render(a,l)},le=e=>{fetch(e).then(t=>t.blob()).then(t=>{var c;const o=URL.createObjectURL(t),n=document.createElement("a");n.href=o,n.download=((c=e.split("/").pop())==null?void 0:c.split("?")[0])||"image",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(o)}).catch(()=>{const t=document.createElement("a");t.href=e,t.download="",t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)})},G=async(e,t)=>{try{const o=await import("xlsx"),n=o.utils.table_to_sheet(e),c=o.utils.book_new();o.utils.book_append_sheet(c,n,"查询结果");const l=o.write(c,{bookType:"xlsx",type:"array"}),r=new Blob([l],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=URL.createObjectURL(r),d=document.createElement("a");d.href=a,d.download=`${t||"表格"}_${new Date().toISOString().slice(0,10)}.xlsx`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(a)}catch(o){console.error("[downloadTableAsExcel] 表格导出 Excel 失败:",o)}},ae=["data-wi-md-scope","innerHTML"],ce=w.defineComponent({__name:"MarkdownContent",props:{source:{default:""},renderOptions:{default:()=>({})}},setup(e){const t=e,o=w.ref(),n=q(),c=w.computed(()=>I(t.source,{...t.renderOptions,styleScope:n.selector})),l=async(a,d)=>{try{await navigator.clipboard.writeText(d)}catch{const s=document.createElement("textarea");s.value=d,s.style.position="fixed",s.style.opacity="0",document.body.appendChild(s),s.select(),document.execCommand("copy"),s.remove()}a.classList.add("wi-md-copied"),window.setTimeout(()=>a.classList.remove("wi-md-copied"),1500)},r=a=>{var f,p,k,S,v,x;const d=a.target,s=d.closest(".wi-md-copy");if(s){a.preventDefault();const h=((p=(f=s.closest(".wi-md-block"))==null?void 0:f.querySelector(".wi-md-code code"))==null?void 0:p.textContent)||"";l(s,h);return}const u=d.closest(".wi-md-toggle");if(u){a.preventDefault(),(k=u.closest(".wi-md-block"))==null||k.classList.toggle("wi-md-collapsed");return}const m=d.closest(".wi-md-image-download");if(m){a.preventDefault(),a.stopPropagation();const h=(S=m.closest(".wi-md-image-wrap"))==null?void 0:S.dataset.src;h&&le(h);return}const y=d.closest(".wi-md-table-download");if(y){a.preventDefault(),a.stopPropagation();const h=(v=y.closest(".wi-md-table-wrap"))==null?void 0:v.querySelector("table");h&&G(h);return}const g=d.closest(".wi-md-image-wrap img");if(g){a.preventDefault();const h=g.closest(".wi-md-image-wrap"),C=(h==null?void 0:h.dataset.src)||g.src||"";if(!C)return;const L=Array.from(((x=o.value)==null?void 0:x.querySelectorAll(".wi-md-image-wrap"))??[]).map(R=>{var i;return R.dataset.src||((i=R.querySelector("img"))==null?void 0:i.getAttribute("src"))||""}).filter(Boolean);F(C,L.length>1?L:void 0,L.indexOf(C))}};return w.onBeforeUnmount(U),(a,d)=>(w.openBlock(),w.createElementBlock("div",{ref_key:"rootEl",ref:o,class:"wi-markdown","data-wi-md-scope":w.unref(n).id,innerHTML:c.value,onClick:r},null,8,ae))}}),se=48,ie=48,de=async()=>{await w.nextTick(),await new Promise(e=>requestAnimationFrame(()=>e()))},ue=e=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e,0)},me=e=>{const t=w.ref(!1),o=w.ref(!0);let n,c,l,r=!1,a=0,d,s={preserveScroll:!0},u=!1,m=!1;const y=i=>i.scrollHeight-i.scrollTop-i.clientHeight<=se,g=i=>i.scrollTop<=ie,f=i=>{const b=e.value;if(!b)return;const $=b.scrollHeight>a;a=b.scrollHeight,i&&$&&o.value&&(b.scrollTop=b.scrollHeight);const H=y(b);o.value=H,t.value=!H},p=()=>f(!1),k=()=>{r||(r=!0,ue(()=>{r=!1,f(!0)}))},S=()=>{n==null||n(),n=void 0,c==null||c.disconnect(),c=void 0,l==null||l.disconnect(),l=void 0},v=async()=>{await de();const i=e.value;i&&(i.scrollTop=i.scrollHeight,a=i.scrollHeight,o.value=!0,t.value=!1)},x=async()=>{if(!o.value){t.value=!0;return}await v()},h=()=>{const i=e.value;i&&(i.scrollTop=0),a=0,o.value=!0,t.value=!1},C=async i=>{const b=e.value,$=b?b.scrollHeight:0;try{await i()}finally{await w.nextTick(),e.value&&$&&(e.value.scrollTop+=e.value.scrollHeight-$,a=e.value.scrollHeight)}},L=(i,b={preserveScroll:!0})=>{d=i,s=b},R=async()=>{const i=e.value;if(!i||(p(),!d||u))return;const b=g(i);if(b&&!m){m=!0,u=!0;try{(s==null?void 0:s.preserveScroll)!==!1?await C(d):await d()}finally{u=!1,g(i)||(m=!1)}}else b||(m=!1)};return w.watch(e,i=>{S(),i&&(i.addEventListener("scroll",R,{passive:!0}),n=()=>i.removeEventListener("scroll",R),typeof MutationObserver<"u"&&(c=new MutationObserver(k),c.observe(i,{childList:!0,subtree:!0,characterData:!0})),typeof ResizeObserver<"u"&&(l=new ResizeObserver(k),l.observe(i)),a=0,p())},{immediate:!0,flush:"post"}),w.getCurrentInstance()&&w.onUnmounted(()=>S()),{showScrollToBottom:t,forceScrollToBottom:v,requestScrollToBottom:x,syncScrollState:p,resetScrollState:h,onReachTop:L,preserveScrollPosition:C}},we=async(e,t={})=>{if(typeof window>"u"||typeof document>"u")return;const o=e.attachContent||{},n=e.name||o.file_name||"download";if(o.raw){const l=URL.createObjectURL(o.raw),r=document.createElement("a");r.href=l,r.download=n,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(l);return}if(!o.fileId)return;const c=P.resolveAttachDownloadUrl(o.fileId,t.baseURL,t.getFileUrl);if(c)try{const l=await fetch(c,{credentials:"include"});if(!l.ok)throw new Error(`Download failed with status ${l.status}`);const r=URL.createObjectURL(await l.blob()),a=document.createElement("a");a.href=r,a.download=n,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)}catch(l){console.error("[downloadAttachment] fetch blob 失败,降级为直接链接触发:",l);const r=document.createElement("a");r.href=c,r.download=n,document.body.appendChild(r),r.click(),document.body.removeChild(r)}};Object.defineProperty(exports,"consumeStream",{enumerable:!0,get:()=>P.consumeStream});exports.MarkdownContent=ce;exports.closeImagePreview=U;exports.createStyleScope=q;exports.downloadAttachment=we;exports.downloadTableAsExcel=G;exports.openImagePreview=F;exports.renderMarkdown=I;exports.useAutoScroll=me;
|
|
17
17
|
//# sourceMappingURL=index.cjs.map
|