wecool-chat 0.11.0 → 0.11.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/CHANGELOG.md +8 -0
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/CopyIndicator-DcJtCBYP.js +63 -0
- package/dist/{MarkdownBody-DrX3zb2T.js → MarkdownBody-DX0DoV4C.js} +901 -893
- package/dist/{VoiceControls-C8_Tl-c9.js → VoiceControls-B_kX2Uj3.js} +79 -67
- package/dist/{VoiceRuntime-DGB607-E.js → VoiceRuntime-D1nURNly.js} +13 -13
- package/dist/blank-line-D-aLg3m0.js +213 -0
- package/dist/{browser-BjSilng8.js → browser-a2qIWP48.js} +1 -1
- package/dist/createLucideIcon-Dc6H577p.js +120 -0
- package/dist/index.css +2 -2
- package/dist/index.js +6849 -5728
- package/dist/{jsx-runtime-BTTIwChF.js → jsx-runtime-2MlY8uwR.js} +132 -122
- package/dist/{messages-BEE-IywU.js → messages-ZLdeJx9N.js} +9 -31
- package/dist/plugins/qrcode.js +7 -6
- package/dist/remark-gfm-DDNju7JY.js +2247 -0
- package/dist/{remark-parse-BJR7F87B.js → remark-parse-B3YPcONN.js} +377 -445
- package/dist/rolldown-runtime-Csywlj8R.js +25 -0
- package/dist/ui/components/ChatFooter.d.ts +1 -1
- package/dist/ui/components/ChatHeader.d.ts +1 -1
- package/dist/ui/components/ChatHeaderMenu.d.ts +1 -1
- package/dist/ui/components/ChatPanel.d.ts +1 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts +1 -1
- package/dist/ui/components/CommandOverlays.d.ts +1 -1
- package/dist/ui/components/CommandPalette.d.ts +1 -1
- package/dist/ui/components/ConversationSelect.d.ts +1 -1
- package/dist/ui/components/CopyIndicator.d.ts +1 -1
- package/dist/ui/components/FloatButton.d.ts +1 -1
- package/dist/ui/components/FooterActions.d.ts +1 -1
- package/dist/ui/components/HelpDialogContent.d.ts +1 -1
- package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
- package/dist/ui/components/MessageAttachments.d.ts +1 -1
- package/dist/ui/components/MessageBubble.d.ts +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts +1 -1
- package/dist/ui/components/MessageEditor.d.ts +1 -1
- package/dist/ui/components/MessageList.d.ts +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
- package/dist/ui/components/MessageRow.d.ts +1 -1
- package/dist/ui/components/MessageRowActions.d.ts +1 -1
- package/dist/ui/components/MicButton.d.ts +1 -1
- package/dist/ui/components/ResizeHandles.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationCard.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationRecord.d.ts +1 -1
- package/dist/ui/components/ToolsDialogContent.d.ts +1 -1
- package/dist/ui/components/VoiceControls.d.ts +1 -1
- package/dist/ui/components/VoiceLoopStatusBar.d.ts +1 -1
- package/dist/ui/components/VoiceLoopToggle.d.ts +1 -1
- package/dist/ui/components/VoiceRuntime.d.ts +1 -1
- package/dist/ui/components/WidgetDialog.d.ts +1 -1
- package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownBody.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownMessage.d.ts +1 -1
- package/dist/{unified-NsWgUw0i.js → unified-DvM6W8YC.js} +3 -3
- package/dist/{use-voice-input-CLRsyP04.js → use-voice-input-DJtyHnsT.js} +3 -3
- package/dist/{voice-support-Cdpf-m3g.js → voice-support-DYXg7xML.js} +2 -2
- package/package.json +20 -20
- package/dist/CopyIndicator-DSRPjXWl.js +0 -51
- package/dist/blank-line-CUDmZ-mX.js +0 -143
- package/dist/createLucideIcon-CL_Vxx_2.js +0 -43
- package/dist/remark-gfm-Bzy1u34W.js +0 -1962
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
var z = l(/[A-Za-z]/), I = l(/[\dA-Za-z]/), m = l(/[#-'*+\--9=?A-Z^-~]/);
|
|
2
|
-
function E(n) {
|
|
3
|
-
return n !== null && (n < 32 || n === 127);
|
|
4
|
-
}
|
|
5
|
-
var L = l(/\d/), O = l(/[\dA-Fa-f]/), N = l(/[!-/:-@[-`{-~]/);
|
|
6
|
-
function y(n) {
|
|
7
|
-
return n !== null && n < -2;
|
|
8
|
-
}
|
|
9
|
-
function A(n) {
|
|
10
|
-
return n !== null && (n < 0 || n === 32);
|
|
11
|
-
}
|
|
12
|
-
function f(n) {
|
|
13
|
-
return n === -2 || n === -1 || n === 32;
|
|
14
|
-
}
|
|
15
|
-
var w = l(new RegExp("\\p{P}|\\p{S}", "u")), x = l(/\s/);
|
|
16
|
-
function l(n) {
|
|
17
|
-
return r;
|
|
18
|
-
function r(t) {
|
|
19
|
-
return t !== null && t > -1 && n.test(String.fromCharCode(t));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function Z(n) {
|
|
23
|
-
return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
24
|
-
}
|
|
25
|
-
function j(n) {
|
|
26
|
-
if (n === null || A(n) || x(n)) return 1;
|
|
27
|
-
if (w(n)) return 2;
|
|
28
|
-
}
|
|
29
|
-
var k = {};
|
|
30
|
-
function B(n, r) {
|
|
31
|
-
const t = r || k;
|
|
32
|
-
return p(n, typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, typeof t.includeHtml == "boolean" ? t.includeHtml : !0);
|
|
33
|
-
}
|
|
34
|
-
function p(n, r, t) {
|
|
35
|
-
if (b(n)) {
|
|
36
|
-
if ("value" in n) return n.type === "html" && !t ? "" : n.value;
|
|
37
|
-
if (r && "alt" in n && n.alt) return n.alt;
|
|
38
|
-
if ("children" in n) return s(n.children, r, t);
|
|
39
|
-
}
|
|
40
|
-
return Array.isArray(n) ? s(n, r, t) : "";
|
|
41
|
-
}
|
|
42
|
-
function s(n, r, t) {
|
|
43
|
-
const e = [];
|
|
44
|
-
let a = -1;
|
|
45
|
-
for (; ++a < n.length; ) e[a] = p(n[a], r, t);
|
|
46
|
-
return e.join("");
|
|
47
|
-
}
|
|
48
|
-
function b(n) {
|
|
49
|
-
return !!(n && typeof n == "object");
|
|
50
|
-
}
|
|
51
|
-
function g(n, r, t, e) {
|
|
52
|
-
const a = n.length;
|
|
53
|
-
let i = 0, u;
|
|
54
|
-
if (r < 0 ? r = -r > a ? 0 : a + r : r = r > a ? a : r, t = t > 0 ? t : 0, e.length < 1e4)
|
|
55
|
-
u = Array.from(e), u.unshift(r, t), n.splice(...u);
|
|
56
|
-
else
|
|
57
|
-
for (t && n.splice(r, t); i < e.length; )
|
|
58
|
-
u = e.slice(i, i + 1e4), u.unshift(r, 0), n.splice(...u), i += 1e4, r += 1e4;
|
|
59
|
-
}
|
|
60
|
-
function D(n, r) {
|
|
61
|
-
return n.length > 0 ? (g(n, n.length, 0, r), n) : r;
|
|
62
|
-
}
|
|
63
|
-
var h = {}.hasOwnProperty;
|
|
64
|
-
function F(n) {
|
|
65
|
-
const r = {};
|
|
66
|
-
let t = -1;
|
|
67
|
-
for (; ++t < n.length; ) S(r, n[t]);
|
|
68
|
-
return r;
|
|
69
|
-
}
|
|
70
|
-
function S(n, r) {
|
|
71
|
-
let t;
|
|
72
|
-
for (t in r) {
|
|
73
|
-
const e = (h.call(n, t) ? n[t] : void 0) || (n[t] = {}), a = r[t];
|
|
74
|
-
let i;
|
|
75
|
-
if (a) for (i in a) {
|
|
76
|
-
h.call(e, i) || (e[i] = []);
|
|
77
|
-
const u = a[i];
|
|
78
|
-
C(e[i], Array.isArray(u) ? u : u ? [u] : []);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function C(n, r) {
|
|
83
|
-
let t = -1;
|
|
84
|
-
const e = [];
|
|
85
|
-
for (; ++t < r.length; ) (r[t].add === "after" ? n : e).push(r[t]);
|
|
86
|
-
g(n, 0, 0, e);
|
|
87
|
-
}
|
|
88
|
-
function T(n, r, t) {
|
|
89
|
-
const e = [];
|
|
90
|
-
let a = -1;
|
|
91
|
-
for (; ++a < n.length; ) {
|
|
92
|
-
const i = n[a].resolveAll;
|
|
93
|
-
i && !e.includes(i) && (r = i(r, t), e.push(i));
|
|
94
|
-
}
|
|
95
|
-
return r;
|
|
96
|
-
}
|
|
97
|
-
function P(n, r, t, e) {
|
|
98
|
-
const a = e ? e - 1 : Number.POSITIVE_INFINITY;
|
|
99
|
-
let i = 0;
|
|
100
|
-
return u;
|
|
101
|
-
function u(o) {
|
|
102
|
-
return f(o) ? (n.enter(t), c(o)) : r(o);
|
|
103
|
-
}
|
|
104
|
-
function c(o) {
|
|
105
|
-
return f(o) && i++ < a ? (n.consume(o), c) : (n.exit(t), r(o));
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
var _ = {
|
|
109
|
-
partial: !0,
|
|
110
|
-
tokenize: d
|
|
111
|
-
};
|
|
112
|
-
function d(n, r, t) {
|
|
113
|
-
return e;
|
|
114
|
-
function e(i) {
|
|
115
|
-
return f(i) ? P(n, a, "linePrefix")(i) : a(i);
|
|
116
|
-
}
|
|
117
|
-
function a(i) {
|
|
118
|
-
return i === null || y(i) ? r(i) : t(i);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
export {
|
|
122
|
-
y as _,
|
|
123
|
-
D as a,
|
|
124
|
-
w as b,
|
|
125
|
-
j as c,
|
|
126
|
-
I as d,
|
|
127
|
-
m as f,
|
|
128
|
-
N as g,
|
|
129
|
-
O as h,
|
|
130
|
-
F as i,
|
|
131
|
-
Z as l,
|
|
132
|
-
L as m,
|
|
133
|
-
P as n,
|
|
134
|
-
g as o,
|
|
135
|
-
E as p,
|
|
136
|
-
T as r,
|
|
137
|
-
B as s,
|
|
138
|
-
_ as t,
|
|
139
|
-
z as u,
|
|
140
|
-
A as v,
|
|
141
|
-
x,
|
|
142
|
-
f as y
|
|
143
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { a as g } from "./messages-BEE-IywU.js";
|
|
2
|
-
import { i as A } from "./jsx-runtime-BTTIwChF.js";
|
|
3
|
-
var a = /* @__PURE__ */ g(A(), 1), m = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), b = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), L = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, r, o) => o ? o.toUpperCase() : r.toLowerCase()), d = (t) => {
|
|
4
|
-
const e = L(t);
|
|
5
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
6
|
-
}, c = {
|
|
7
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
-
width: 24,
|
|
9
|
-
height: 24,
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
fill: "none",
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
strokeWidth: 2,
|
|
14
|
-
strokeLinecap: "round",
|
|
15
|
-
strokeLinejoin: "round"
|
|
16
|
-
}, W = (t) => {
|
|
17
|
-
for (const e in t) if (e.startsWith("aria-") || e === "role" || e === "title") return !0;
|
|
18
|
-
return !1;
|
|
19
|
-
}, S = (0, a.createContext)({}), _ = () => (0, a.useContext)(S), y = (0, a.forwardRef)(({ color: t, size: e, strokeWidth: r, absoluteStrokeWidth: o, className: i = "", children: s, iconNode: C, ...l }, h) => {
|
|
20
|
-
const { size: n = 24, strokeWidth: u = 2, absoluteStrokeWidth: p = !1, color: f = "currentColor", className: v = "" } = _() ?? {}, w = o ?? p ? Number(r ?? u) * 24 / Number(e ?? n) : r ?? u;
|
|
21
|
-
return (0, a.createElement)("svg", {
|
|
22
|
-
ref: h,
|
|
23
|
-
...c,
|
|
24
|
-
width: e ?? n ?? c.width,
|
|
25
|
-
height: e ?? n ?? c.height,
|
|
26
|
-
stroke: t ?? f,
|
|
27
|
-
strokeWidth: w,
|
|
28
|
-
className: m("lucide", v, i),
|
|
29
|
-
...!s && !W(l) && { "aria-hidden": "true" },
|
|
30
|
-
...l
|
|
31
|
-
}, [...C.map(([x, k]) => (0, a.createElement)(x, k)), ...Array.isArray(s) ? s : [s]]);
|
|
32
|
-
}), j = (t, e) => {
|
|
33
|
-
const r = (0, a.forwardRef)(({ className: o, ...i }, s) => (0, a.createElement)(y, {
|
|
34
|
-
ref: s,
|
|
35
|
-
iconNode: e,
|
|
36
|
-
className: m(`lucide-${b(d(t))}`, `lucide-${t}`, o),
|
|
37
|
-
...i
|
|
38
|
-
}));
|
|
39
|
-
return r.displayName = d(t), r;
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
j as t
|
|
43
|
-
};
|