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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.11.1
|
|
4
|
+
|
|
5
|
+
**Bundle size**: Initial 127.1 KB gzip / 108.0 KB brotli · Total 274.3 KB gzip
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- 028a433: 依存パッケージの patch / minor 一括更新(dependabot #380)。ウィジェットに同梱される実行時の依存は react・react-dom 19.3.1 / lucide-react 1.70.0、wecool-cli の実行時の依存は @clack/prompts 1.8.1。外部仕様に変更はない。ウィジェットが使うアイコンの形は lucide-react 1.25.0 と同じ。
|
|
10
|
+
|
|
3
11
|
## 0.11.0
|
|
4
12
|
|
|
5
13
|
**Bundle size**: Initial 116.2 KB gzip / 98.8 KB brotli · Total 260.3 KB gzip
|
package/README.ja.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/wecool-chat)
|
|
6
6
|
[](https://www.npmjs.com/package/wecool-chat)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
|
-
[](https://www.npmjs.com/package/wecool-chat)
|
|
9
9
|
|
|
10
10
|
> 自然言語で UI を操作できる、どんなフレームワークでも使える LLM チャットウィジェット。
|
|
11
11
|
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/wecool-chat)
|
|
6
6
|
[](https://www.npmjs.com/package/wecool-chat)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
|
-
[](https://www.npmjs.com/package/wecool-chat)
|
|
9
9
|
|
|
10
10
|
> A drop-in LLM chat widget that lets users operate your UI in natural language — works with any framework.
|
|
11
11
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { r as u } from "./rolldown-runtime-Csywlj8R.js";
|
|
2
|
+
import { i as l, r as p, t as d } from "./jsx-runtime-2MlY8uwR.js";
|
|
3
|
+
import { t as i } from "./createLucideIcon-Dc6H577p.js";
|
|
4
|
+
var o = {
|
|
5
|
+
name: "check",
|
|
6
|
+
size: 24,
|
|
7
|
+
node: [["path", {
|
|
8
|
+
d: "M20 6 9 17l-5-5",
|
|
9
|
+
key: "1gmf2c"
|
|
10
|
+
}]]
|
|
11
|
+
};
|
|
12
|
+
o.node;
|
|
13
|
+
var _ = i(o), s = {
|
|
14
|
+
name: "copy",
|
|
15
|
+
size: 24,
|
|
16
|
+
node: [["rect", {
|
|
17
|
+
width: "14",
|
|
18
|
+
height: "14",
|
|
19
|
+
x: "8",
|
|
20
|
+
y: "8",
|
|
21
|
+
rx: "2",
|
|
22
|
+
ry: "2",
|
|
23
|
+
key: "17jyea"
|
|
24
|
+
}], ["path", {
|
|
25
|
+
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
26
|
+
key: "zix9uf"
|
|
27
|
+
}]]
|
|
28
|
+
};
|
|
29
|
+
s.node;
|
|
30
|
+
var m = i(s), f = /!\[[^\]]*\]\(\s*data:[^)]*\)/gi, x = /!\[[^\]]*\]\(\s*data:[A-Za-z0-9+/=,;_\-.%\s]*/gi, w = (r) => {
|
|
31
|
+
let e = r.replace(f, "");
|
|
32
|
+
return e = e.replace(x, ""), e;
|
|
33
|
+
}, t = /* @__PURE__ */ u(l(), 1), v = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g, y = /[\u200b\u200c\u200d\u2060\ufeff]/g, g = (r) => r.replace(/\r\n?/g, `
|
|
34
|
+
`).replace(v, "").replace(y, ""), C = 2e3, A = () => {
|
|
35
|
+
const [r, e] = (0, t.useState)(!1), a = (0, t.useRef)(null);
|
|
36
|
+
return (0, t.useEffect)(() => () => {
|
|
37
|
+
a.current !== null && window.clearTimeout(a.current);
|
|
38
|
+
}, []), {
|
|
39
|
+
copied: r,
|
|
40
|
+
copy: (0, t.useCallback)(async (n) => {
|
|
41
|
+
if (navigator.clipboard)
|
|
42
|
+
try {
|
|
43
|
+
await navigator.clipboard.writeText(g(n)), e(!0), a.current !== null && window.clearTimeout(a.current), a.current = window.setTimeout(() => {
|
|
44
|
+
e(!1), a.current = null;
|
|
45
|
+
}, C);
|
|
46
|
+
} catch {
|
|
47
|
+
}
|
|
48
|
+
}, [])
|
|
49
|
+
};
|
|
50
|
+
}, c = d();
|
|
51
|
+
function E({ copied: r }) {
|
|
52
|
+
const e = p(), a = r ? _ : m, n = r ? e.copiedLabel : e.copyLabel;
|
|
53
|
+
return /* @__PURE__ */ (0, c.jsxs)(c.Fragment, { children: [/* @__PURE__ */ (0, c.jsx)(a, {
|
|
54
|
+
className: "wecool-icon--xs",
|
|
55
|
+
"aria-hidden": "true"
|
|
56
|
+
}), /* @__PURE__ */ (0, c.jsx)("span", { children: n })] });
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
_ as i,
|
|
60
|
+
A as n,
|
|
61
|
+
w as r,
|
|
62
|
+
E as t
|
|
63
|
+
};
|