wecool-chat 0.10.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 +37 -0
- package/README.ja.md +9 -3
- package/README.md +14 -3
- package/dist/CopyIndicator-DcJtCBYP.js +63 -0
- package/dist/{MarkdownBody-EIz0jnQy.js → MarkdownBody-DX0DoV4C.js} +901 -893
- package/dist/VoiceControls-B_kX2Uj3.js +160 -0
- package/dist/{VoiceRuntime-DrYjNkZK.js → VoiceRuntime-D1nURNly.js} +13 -13
- package/dist/blank-line-D-aLg3m0.js +213 -0
- package/dist/{browser-M7mS-hAN.js → browser-a2qIWP48.js} +1 -1
- package/dist/core/client.d.ts +5 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/consume-stream.d.ts +18 -1
- package/dist/core/consume-stream.d.ts.map +1 -1
- package/dist/core/i18n/messages.d.ts +2 -0
- package/dist/core/i18n/messages.d.ts.map +1 -1
- package/dist/core/narration-round.d.ts +27 -0
- package/dist/core/narration-round.d.ts.map +1 -0
- package/dist/core/placeholder-manager.d.ts +30 -0
- package/dist/core/placeholder-manager.d.ts.map +1 -0
- package/dist/core/run-conversation.d.ts.map +1 -1
- package/dist/core/stream-state.d.ts +9 -1
- package/dist/core/stream-state.d.ts.map +1 -1
- package/dist/core/types.d.ts +21 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/createLucideIcon-Dc6H577p.js +120 -0
- package/dist/index.css +2 -2
- package/dist/index.js +6514 -5325
- package/dist/{jsx-runtime-Cyy0mp0f.js → jsx-runtime-2MlY8uwR.js} +132 -122
- package/dist/{messages-FvtWi3lI.js → messages-ZLdeJx9N.js} +11 -31
- package/dist/observe/__tests__/widget-self-http.test.d.ts +2 -0
- package/dist/observe/__tests__/widget-self-http.test.d.ts.map +1 -0
- package/dist/observe/__tests__/widget-self.test.d.ts +2 -0
- package/dist/observe/__tests__/widget-self.test.d.ts.map +1 -0
- package/dist/observe/observers/http.d.ts.map +1 -1
- package/dist/observe/observers/js-error.d.ts +7 -2
- package/dist/observe/observers/js-error.d.ts.map +1 -1
- package/dist/observe/widget-self.d.ts +46 -0
- package/dist/observe/widget-self.d.ts.map +1 -0
- package/dist/plugin/logger.d.ts.map +1 -1
- package/dist/plugins/qrcode.js +7 -6
- package/dist/remark-gfm-DDNju7JY.js +2247 -0
- package/dist/{remark-parse-BnwSmQr-.js → remark-parse-B3YPcONN.js} +377 -445
- package/dist/rolldown-runtime-Csywlj8R.js +25 -0
- package/dist/ui/components/ChatFooter.d.ts +4 -3
- package/dist/ui/components/ChatFooter.d.ts.map +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/ChatWidget.d.ts.map +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/VoiceControls.d.ts.map +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/ui/hooks/use-mic-button.d.ts +2 -0
- package/dist/ui/hooks/use-mic-button.d.ts.map +1 -1
- package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
- package/dist/{unified-DctkAd9P.js → unified-DvM6W8YC.js} +3 -3
- package/dist/{use-voice-input-LtJJz-zQ.js → use-voice-input-DJtyHnsT.js} +3 -3
- package/dist/{voice-support-BeOiOzcn.js → voice-support-DYXg7xML.js} +2 -2
- package/package.json +33 -33
- package/dist/CopyIndicator-RR3hSsBA.js +0 -51
- package/dist/VoiceControls-A7N4uPTo.js +0 -146
- package/dist/blank-line-CUDmZ-mX.js +0 -143
- package/dist/createLucideIcon-C7wGkK-Q.js +0 -43
- package/dist/remark-gfm-Bzy1u34W.js +0 -1962
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var v = Object.create, l = Object.defineProperty, O = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, b = Object.getPrototypeOf, o = Object.prototype.hasOwnProperty, g = (e, r) => () => (r || (e((r = { exports: {} }).exports, r, r.exports), e = null), r.exports), f = (e, r) => {
|
|
2
|
+
let t = {};
|
|
3
|
+
for (var n in e)
|
|
4
|
+
l(t, n, {
|
|
5
|
+
get: e[n],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return r || l(t, Symbol.toStringTag, { value: "Module" }), t;
|
|
9
|
+
}, P = (e, r, t, n) => {
|
|
10
|
+
if (r && typeof r == "object" || typeof r == "function")
|
|
11
|
+
for (var _ = s(r), p = 0, u = _.length, a; p < u; p++)
|
|
12
|
+
a = _[p], !o.call(e, a) && a !== t && l(e, a, {
|
|
13
|
+
get: ((c) => r[c]).bind(null, a),
|
|
14
|
+
enumerable: !(n = O(r, a)) || n.enumerable
|
|
15
|
+
});
|
|
16
|
+
return e;
|
|
17
|
+
}, i = (e, r, t) => (t = e != null ? v(b(e)) : {}, P(r || !e || !e.__esModule || !o.call(e, "default") ? l(t, "default", {
|
|
18
|
+
value: e,
|
|
19
|
+
enumerable: !0
|
|
20
|
+
}) : t, e));
|
|
21
|
+
export {
|
|
22
|
+
f as n,
|
|
23
|
+
i as r,
|
|
24
|
+
g as t
|
|
25
|
+
};
|
|
@@ -17,8 +17,9 @@ type ChatFooterProps = {
|
|
|
17
17
|
onSubmit: (message: string) => void;
|
|
18
18
|
/**
|
|
19
19
|
* 新しい会話を始める。渡されたときだけボタンを描画する。
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* ウィジェット内では渡していない。ヘッダーを持つレイアウトは設定メニューが同じ操作を担い、
|
|
21
|
+
* input-only はリセットをホストの責任とするため(issue #296)。`ChatFooter` を直接
|
|
22
|
+
* 組み込む利用者向けに公開 prop として残している。
|
|
22
23
|
*/
|
|
23
24
|
onNew?: () => void;
|
|
24
25
|
onCancel: () => void;
|
|
@@ -37,6 +38,6 @@ type ChatFooterProps = {
|
|
|
37
38
|
/** 継続音声モードのトグル(issue #262)。使えない環境では未指定 */
|
|
38
39
|
voiceLoop?: VoiceLoopControl;
|
|
39
40
|
};
|
|
40
|
-
export declare function ChatFooter({ onSubmit, onNew, onCancel, isLoading, placeholder, autoFocus, onCommand, inputControlRef, voice, onBeforeListen, voiceLoop, }: ChatFooterProps): import(
|
|
41
|
+
export declare function ChatFooter({ onSubmit, onNew, onCancel, isLoading, placeholder, autoFocus, onCommand, inputControlRef, voice, onBeforeListen, voiceLoop, }: ChatFooterProps): import('react').JSX.Element;
|
|
41
42
|
export {};
|
|
42
43
|
//# sourceMappingURL=ChatFooter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ChatFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mCAAmC;IACnC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,mBAAmB;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC
|
|
1
|
+
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ChatFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mCAAmC;IACnC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,mBAAmB;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,iDAAiD;IACjD,eAAe,CAAC,EAAE,SAAS,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACvD,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,WAAW,EACX,SAAiB,EACjB,SAAS,EACT,eAAe,EACf,KAAa,EACb,cAAc,EACd,SAAS,GACV,EAAE,eAAe,+BAqNjB"}
|
|
@@ -29,7 +29,7 @@ type ChatHeaderProps = {
|
|
|
29
29
|
/** セレクトボックスの「+ 新しい会話」と設定メニュー「新しい会話を始める」の共通コールバック */
|
|
30
30
|
onNewConversation?: () => void;
|
|
31
31
|
};
|
|
32
|
-
declare function ChatHeaderComponent({ onClose, showClose, draggable, onHeaderPointerDown, onHeaderKeyDown, onReset, isFullscreen, onToggleFullscreen, onResetHistory, onDeleteConversation, menuTriggerRef, conversations, selectedSessionId, isLoading, onSelectConversation, onNewConversation, }: ChatHeaderProps): import(
|
|
32
|
+
declare function ChatHeaderComponent({ onClose, showClose, draggable, onHeaderPointerDown, onHeaderKeyDown, onReset, isFullscreen, onToggleFullscreen, onResetHistory, onDeleteConversation, menuTriggerRef, conversations, selectedSessionId, isLoading, onSelectConversation, onNewConversation, }: ChatHeaderProps): import('react').JSX.Element;
|
|
33
33
|
export declare const ChatHeader: import('react').MemoExoticComponent<typeof ChatHeaderComponent>;
|
|
34
34
|
export {};
|
|
35
35
|
//# sourceMappingURL=ChatHeader.d.ts.map
|
|
@@ -33,6 +33,6 @@ type ChatHeaderMenuProps = {
|
|
|
33
33
|
* この会話を削除(onDeleteConversation が渡された場合のみ = 会話表示中のみ)・
|
|
34
34
|
* すべての履歴をこのブラウザから消す(常時表示)。
|
|
35
35
|
*/
|
|
36
|
-
export declare function ChatHeaderMenu({ onNewConversation, onReset, isFullscreen, onToggleFullscreen, onResetHistory, onDeleteConversation, triggerRef: externalTriggerRef, }: ChatHeaderMenuProps): import(
|
|
36
|
+
export declare function ChatHeaderMenu({ onNewConversation, onReset, isFullscreen, onToggleFullscreen, onResetHistory, onDeleteConversation, triggerRef: externalTriggerRef, }: ChatHeaderMenuProps): import('react').JSX.Element;
|
|
37
37
|
export {};
|
|
38
38
|
//# sourceMappingURL=ChatHeaderMenu.d.ts.map
|
|
@@ -68,6 +68,6 @@ type ChatPanelProps = {
|
|
|
68
68
|
/** 継続音声モードの開始の合図(`ChatConfig.voiceLoopStartCue`。issue #262) */
|
|
69
69
|
voiceLoopStartCue?: ChatConfig["voiceLoopStartCue"];
|
|
70
70
|
};
|
|
71
|
-
export declare function ChatPanel({ messages, isLoading, isStreaming, onSendMessage, onRegenerate, onEditMessage, onCancel, onNew, onClose, showClose, placeholder, isFloating, panelId, lang, isDraggable, onHeaderPointerDown, onHeaderKeyDown, onHeaderReset, isFullscreen, onToggleFullscreen, onResetHistory, onDeleteConversation, menuTriggerRef, onExitFullscreen, fullscreenAnnouncement, conversations, selectedSessionId, onSelectConversation, pendingConfirmations, onRespondToConfirmation, resizeHandles, onCommand, inputControlRef, voice, voiceLoopStartCue, }: ChatPanelProps): import(
|
|
71
|
+
export declare function ChatPanel({ messages, isLoading, isStreaming, onSendMessage, onRegenerate, onEditMessage, onCancel, onNew, onClose, showClose, placeholder, isFloating, panelId, lang, isDraggable, onHeaderPointerDown, onHeaderKeyDown, onHeaderReset, isFullscreen, onToggleFullscreen, onResetHistory, onDeleteConversation, menuTriggerRef, onExitFullscreen, fullscreenAnnouncement, conversations, selectedSessionId, onSelectConversation, pendingConfirmations, onRespondToConfirmation, resizeHandles, onCommand, inputControlRef, voice, voiceLoopStartCue, }: ChatPanelProps): import('react').JSX.Element;
|
|
72
72
|
export {};
|
|
73
73
|
//# sourceMappingURL=ChatPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatWidget.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ChatWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatWidget.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ChatWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAgEhD,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EAAE,SAAS,EAChB,QAAgB,EAChB,WAAmB,EACnB,QAAyB,EACzB,WAAW,EACX,WAAW,GACZ,EAAE,eAAe,8FA+iBjB"}
|
|
@@ -23,6 +23,6 @@ type CommandConfirmationCardProps = {
|
|
|
23
23
|
* - Esc はキャンセル(IME 確定の Esc は無視)
|
|
24
24
|
* - ツール実行フローには乗せず、コマンド用の軽い確認として独立実装する
|
|
25
25
|
*/
|
|
26
|
-
export declare function CommandConfirmationCard({ message, onApprove, onCancel, regionLabel, approveLabel, cancelLabel, }: CommandConfirmationCardProps): import(
|
|
26
|
+
export declare function CommandConfirmationCard({ message, onApprove, onCancel, regionLabel, approveLabel, cancelLabel, }: CommandConfirmationCardProps): import('react').JSX.Element;
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=CommandConfirmationCard.d.ts.map
|
|
@@ -35,6 +35,6 @@ type CommandOverlaysProps = {
|
|
|
35
35
|
* 各表示モード(input-only / floating / embed)のルート内に描画し、state は
|
|
36
36
|
* `useCommandExecution` が保持する。
|
|
37
37
|
*/
|
|
38
|
-
export declare function CommandOverlays({ commandDialog, isClearConfirmOpen, isResetHistoryConfirmOpen, isDeleteConversationConfirmOpen, tools, locale, messages, onCloseDialog, onInsertExample, onClearApprove, onClearCancel, onResetHistoryApprove, onResetHistoryCancel, onDeleteConversationApprove, onDeleteConversationCancel, }: CommandOverlaysProps): import(
|
|
38
|
+
export declare function CommandOverlays({ commandDialog, isClearConfirmOpen, isResetHistoryConfirmOpen, isDeleteConversationConfirmOpen, tools, locale, messages, onCloseDialog, onInsertExample, onClearApprove, onClearCancel, onResetHistoryApprove, onResetHistoryCancel, onDeleteConversationApprove, onDeleteConversationCancel, }: CommandOverlaysProps): import('react').JSX.Element;
|
|
39
39
|
export {};
|
|
40
40
|
//# sourceMappingURL=CommandOverlays.d.ts.map
|
|
@@ -20,6 +20,6 @@ type CommandPaletteProps = {
|
|
|
20
20
|
* option 自体は tabindex を持たない。ポインタ操作は `onPointerDown` で受け、
|
|
21
21
|
* 直前に textarea が blur して選択が空振りしないよう `preventDefault` する。
|
|
22
22
|
*/
|
|
23
|
-
export declare function CommandPalette({ items, activeIndex, listboxId, getOptionId, onSelect, onActivate, }: CommandPaletteProps): import(
|
|
23
|
+
export declare function CommandPalette({ items, activeIndex, listboxId, getOptionId, onSelect, onActivate, }: CommandPaletteProps): import('react').JSX.Element;
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=CommandPalette.d.ts.map
|
|
@@ -10,6 +10,6 @@ type ConversationSelectProps = {
|
|
|
10
10
|
* ヘッダー内の会話選択セレクトボックス。
|
|
11
11
|
* 先頭に「+ 新しい会話」を固定表示し、ストリーミング中は disabled にする。
|
|
12
12
|
*/
|
|
13
|
-
export declare function ConversationSelect({ conversations, selectedSessionId, isLoading, onSelect, onNew, }: ConversationSelectProps): import(
|
|
13
|
+
export declare function ConversationSelect({ conversations, selectedSessionId, isLoading, onSelect, onNew, }: ConversationSelectProps): import('react').JSX.Element;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=ConversationSelect.d.ts.map
|
|
@@ -7,6 +7,6 @@ type CopyIndicatorProps = {
|
|
|
7
7
|
* Copy ボタン本体(MessageCopyButton / CodeBlock)の見た目部分を共通化する目的のみ。
|
|
8
8
|
* クリック処理やラベル変更は呼び出し側に持たせる。
|
|
9
9
|
*/
|
|
10
|
-
export declare function CopyIndicator({ copied }: CopyIndicatorProps): import(
|
|
10
|
+
export declare function CopyIndicator({ copied }: CopyIndicatorProps): import('react').JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=CopyIndicator.d.ts.map
|
|
@@ -7,7 +7,7 @@ type FloatButtonProps = {
|
|
|
7
7
|
/** パネル閉時のフォーカス復帰先として親が保持する ref */
|
|
8
8
|
ref?: Ref<HTMLButtonElement>;
|
|
9
9
|
};
|
|
10
|
-
declare function FloatButtonComponent({ isOpen, onClick, controlsId, ref }: FloatButtonProps): import(
|
|
10
|
+
declare function FloatButtonComponent({ isOpen, onClick, controlsId, ref }: FloatButtonProps): import('react').JSX.Element;
|
|
11
11
|
export declare const FloatButton: import('react').MemoExoticComponent<typeof FloatButtonComponent>;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=FloatButton.d.ts.map
|
|
@@ -13,6 +13,6 @@ type FooterActionsProps = {
|
|
|
13
13
|
* ChatFooter は入力・履歴・コマンドパレットの制御で行数が大きいため、
|
|
14
14
|
* 表示のみで状態を持たないボタン列をここへ分けている。
|
|
15
15
|
*/
|
|
16
|
-
export declare function FooterActions({ isLoading, canSend, onCancel, onNew }: FooterActionsProps): import(
|
|
16
|
+
export declare function FooterActions({ isLoading, canSend, onCancel, onNew }: FooterActionsProps): import('react').JSX.Element;
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=FooterActions.d.ts.map
|
|
@@ -19,6 +19,6 @@ type MessageActionsPopoverProps = {
|
|
|
19
19
|
* 自動 dismiss: AUTO_DISMISS_MS 経過で onDismiss を呼ぶ。
|
|
20
20
|
* Popover 内クリックでは閉じない(呼出側 MessageList で外側クリック判定を行う)。
|
|
21
21
|
*/
|
|
22
|
-
export declare function MessageActionsPopover({ anchorRef, triggerRef, onDismiss, children, }: MessageActionsPopoverProps): import(
|
|
22
|
+
export declare function MessageActionsPopover({ anchorRef, triggerRef, onDismiss, children, }: MessageActionsPopoverProps): import('react').JSX.Element;
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=MessageActionsPopover.d.ts.map
|
|
@@ -15,7 +15,7 @@ type MessageAttachmentsProps = {
|
|
|
15
15
|
* Why: tool が `{ type: "image", mimeType, base64, alt, filename }` を返したらホスト側で
|
|
16
16
|
* 安全に描画したい。LLM 履歴・バックエンドに base64 を流さずに済むため軽い。
|
|
17
17
|
*/
|
|
18
|
-
declare function MessageAttachmentsComponent({ attachments }: MessageAttachmentsProps): import(
|
|
18
|
+
declare function MessageAttachmentsComponent({ attachments }: MessageAttachmentsProps): import('react').JSX.Element | null;
|
|
19
19
|
export declare const MessageAttachments: import('react').MemoExoticComponent<typeof MessageAttachmentsComponent>;
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=MessageAttachments.d.ts.map
|
|
@@ -18,7 +18,7 @@ type MessageBubbleProps = {
|
|
|
18
18
|
refs: MessageBubbleRefs;
|
|
19
19
|
handlers: MessageBubbleHandlers;
|
|
20
20
|
};
|
|
21
|
-
declare function MessageBubbleComponent({ message, isStreaming, isActive, isEditing, refs, handlers, }: MessageBubbleProps): import(
|
|
21
|
+
declare function MessageBubbleComponent({ message, isStreaming, isActive, isEditing, refs, handlers, }: MessageBubbleProps): import('react').JSX.Element;
|
|
22
22
|
export declare const MessageBubble: import('react').MemoExoticComponent<typeof MessageBubbleComponent>;
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=MessageBubble.d.ts.map
|
|
@@ -10,6 +10,6 @@ type MessageCopyButtonProps = {
|
|
|
10
10
|
* button のテキストが「コピー」→「コピーしました」に変わるだけだと、
|
|
11
11
|
* 一部 SR が変更を読み上げない。状態変化アナウンスは別の status 領域に集約する。
|
|
12
12
|
*/
|
|
13
|
-
export declare function MessageCopyButton({ content, role }: MessageCopyButtonProps): import(
|
|
13
|
+
export declare function MessageCopyButton({ content, role }: MessageCopyButtonProps): import('react').JSX.Element;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=MessageCopyButton.d.ts.map
|
|
@@ -9,6 +9,6 @@ type MessageEditorProps = {
|
|
|
9
9
|
* UI と操作感は ChatFooter と揃える(input + Send ボタン、Enter で確定 / Esc で破棄、
|
|
10
10
|
* IME 変換中の Enter は無視、trim 後空文字は送信不可)。
|
|
11
11
|
*/
|
|
12
|
-
export declare function MessageEditor({ initialContent, onSubmit, onCancel }: MessageEditorProps): import(
|
|
12
|
+
export declare function MessageEditor({ initialContent, onSubmit, onCancel }: MessageEditorProps): import('react').JSX.Element;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=MessageEditor.d.ts.map
|
|
@@ -27,6 +27,6 @@ type MessageListProps = {
|
|
|
27
27
|
/** 読み上げボタン押下時のハンドラ(messageId・本文を渡す) */
|
|
28
28
|
onToggleSpeak?: (messageId: string, text: string) => void;
|
|
29
29
|
};
|
|
30
|
-
export declare function MessageList({ messages, isLoading, isStreaming, onRegenerate, onEditMessage, pendingConfirmations, onRespondToConfirmation, showsSpeak, speakingMessageId, onToggleSpeak, }: MessageListProps): import(
|
|
30
|
+
export declare function MessageList({ messages, isLoading, isStreaming, onRegenerate, onEditMessage, pendingConfirmations, onRespondToConfirmation, showsSpeak, speakingMessageId, onToggleSpeak, }: MessageListProps): import('react').JSX.Element;
|
|
31
31
|
export {};
|
|
32
32
|
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -11,6 +11,6 @@ type MessagePopoverButtonProps = {
|
|
|
11
11
|
* 状態を持たない単発アクション用(Edit / Cancel / Regenerate 等)。
|
|
12
12
|
* 状態を持つ Copy ボタンは MessageCopyButton を使う。
|
|
13
13
|
*/
|
|
14
|
-
export declare function MessagePopoverButton({ icon: Icon, label, ariaLabel, onClick, }: MessagePopoverButtonProps): import(
|
|
14
|
+
export declare function MessagePopoverButton({ icon: Icon, label, ariaLabel, onClick, }: MessagePopoverButtonProps): import('react').JSX.Element;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=MessagePopoverButton.d.ts.map
|
|
@@ -18,7 +18,7 @@ type MessageRowProps = {
|
|
|
18
18
|
/** 読み上げボタン押下時のハンドラ(messageId・本文を渡す) */
|
|
19
19
|
onToggleSpeak?: (messageId: string, text: string) => void;
|
|
20
20
|
};
|
|
21
|
-
declare function MessageRowComponent({ message, isActive, isStreaming, isLast, isEditing, onToggleActive, onClearActive, onRegenerate, onStartEdit, onCancelEdit, onSubmitEdit, showsSpeak, speakingMessageId, onToggleSpeak, }: MessageRowProps): import(
|
|
21
|
+
declare function MessageRowComponent({ message, isActive, isStreaming, isLast, isEditing, onToggleActive, onClearActive, onRegenerate, onStartEdit, onCancelEdit, onSubmitEdit, showsSpeak, speakingMessageId, onToggleSpeak, }: MessageRowProps): import('react').JSX.Element;
|
|
22
22
|
export declare const MessageRow: import('react').MemoExoticComponent<typeof MessageRowComponent>;
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=MessageRow.d.ts.map
|
|
@@ -19,6 +19,6 @@ type MessageRowActionsProps = {
|
|
|
19
19
|
*
|
|
20
20
|
* 編集モード中は「キャンセル」のみ。通常時はコピーに加え、対象行に応じて再生成・編集・読み上げを提示する。
|
|
21
21
|
*/
|
|
22
|
-
export declare function MessageRowActions({ message, isEditing, showsRegenerate, showsEdit, onRegenerate, onStartEdit, onCancelEdit, showsSpeak, isSpeaking, onToggleSpeak, }: MessageRowActionsProps): import(
|
|
22
|
+
export declare function MessageRowActions({ message, isEditing, showsRegenerate, showsEdit, onRegenerate, onStartEdit, onCancelEdit, showsSpeak, isSpeaking, onToggleSpeak, }: MessageRowActionsProps): import('react').JSX.Element;
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=MessageRowActions.d.ts.map
|
|
@@ -6,6 +6,6 @@ type MicButtonProps = {
|
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
};
|
|
8
8
|
/** 入力欄のマイクボタンと、認識失敗時の短い状態表示(issue #261) */
|
|
9
|
-
export declare function MicButton({ isListening, disabled, errorText, ariaLabel, onClick, }: MicButtonProps): import(
|
|
9
|
+
export declare function MicButton({ isListening, disabled, errorText, ariaLabel, onClick, }: MicButtonProps): import('react').JSX.Element;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=MicButton.d.ts.map
|
|
@@ -10,6 +10,6 @@ type ResizeHandlesProps = {
|
|
|
10
10
|
* 通常は透明で、hover / キーボードフォーカス時のみ薄く可視化する。
|
|
11
11
|
* タッチ主体の端末では CSS(pointer: coarse)で非表示になる。
|
|
12
12
|
*/
|
|
13
|
-
export declare function ResizeHandles({ onResizeStart, onSeHandleKeyDown }: ResizeHandlesProps): import(
|
|
13
|
+
export declare function ResizeHandles({ onResizeStart, onSeHandleKeyDown }: ResizeHandlesProps): import('react').JSX.Element;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=ResizeHandles.d.ts.map
|
|
@@ -17,6 +17,6 @@ type ToolConfirmationCardProps = {
|
|
|
17
17
|
* - 決着後は respond → pending 除去で即アンマウントされる。フォーカスは残りの確認カード
|
|
18
18
|
* (複数並存時)、無ければ入力欄へ返す
|
|
19
19
|
*/
|
|
20
|
-
export declare function ToolConfirmationCard({ confirmation, onRespond }: ToolConfirmationCardProps): import(
|
|
20
|
+
export declare function ToolConfirmationCard({ confirmation, onRespond }: ToolConfirmationCardProps): import('react').JSX.Element;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=ToolConfirmationCard.d.ts.map
|
|
@@ -11,6 +11,6 @@ type ToolConfirmationRecordProps = {
|
|
|
11
11
|
* (再クリックで実行し直せる UI にはしない)。メッセージログ (role="log") 内の
|
|
12
12
|
* リスト項目として並び、支援技術には通常のログ追加として伝わる。
|
|
13
13
|
*/
|
|
14
|
-
export declare function ToolConfirmationRecord({ message }: ToolConfirmationRecordProps): import(
|
|
14
|
+
export declare function ToolConfirmationRecord({ message }: ToolConfirmationRecordProps): import('react').JSX.Element | null;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=ToolConfirmationRecord.d.ts.map
|
|
@@ -15,6 +15,6 @@ type ToolsDialogContentProps = {
|
|
|
15
15
|
* - 表示名は `resolveLocalizedText`(現在 locale → もう片方 → 英語 description)で解決する
|
|
16
16
|
* - 質問例はクリックで入力欄へ挿入(自動送信しない)。0 件時は空状態文言
|
|
17
17
|
*/
|
|
18
|
-
export declare function ToolsDialogContent({ tools, locale, onInsertExample }: ToolsDialogContentProps): import(
|
|
18
|
+
export declare function ToolsDialogContent({ tools, locale, onInsertExample }: ToolsDialogContentProps): import('react').JSX.Element;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=ToolsDialogContent.d.ts.map
|
|
@@ -17,6 +17,6 @@ type VoiceControlsProps = {
|
|
|
17
17
|
* 手を触れずに続けたい場合)。継続モード中は単発マイクを無効化し、2 つの聞き取りが
|
|
18
18
|
* 同時に走らないようにする。
|
|
19
19
|
*/
|
|
20
|
-
export declare function VoiceControls({ voice, isLoading, onBeforeListen, onTranscript, announce, voiceLoop, }: VoiceControlsProps): import(
|
|
20
|
+
export declare function VoiceControls({ voice, isLoading, onBeforeListen, onTranscript, announce, voiceLoop, }: VoiceControlsProps): import('react').JSX.Element | null;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=VoiceControls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceControls.d.ts","sourceRoot":"","sources":["../../../src/ui/components/VoiceControls.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,KAAK,kBAAkB,GAAG;IACxB,4CAA4C;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,wDAAwD;IACxD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,SAAS,GACV,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"VoiceControls.d.ts","sourceRoot":"","sources":["../../../src/ui/components/VoiceControls.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,KAAK,kBAAkB,GAAG;IACxB,4CAA4C;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,wDAAwD;IACxD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,SAAS,GACV,EAAE,kBAAkB,sCA0CpB"}
|
|
@@ -12,6 +12,6 @@ type VoiceLoopStatusBarProps = {
|
|
|
12
12
|
* 画面を見ていない利用者にも段階が伝わるよう `role="status"` で穏やかに読み上げる。
|
|
13
13
|
* 自動終了の理由だけは気づかせる必要があるため `role="alert"` で即時に伝える。
|
|
14
14
|
*/
|
|
15
|
-
export declare function VoiceLoopStatusBar({ statusKey, endReason, onStop }: VoiceLoopStatusBarProps): import(
|
|
15
|
+
export declare function VoiceLoopStatusBar({ statusKey, endReason, onStop }: VoiceLoopStatusBarProps): import('react').JSX.Element | null;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=VoiceLoopStatusBar.d.ts.map
|
|
@@ -10,6 +10,6 @@ type VoiceLoopToggleProps = {
|
|
|
10
10
|
* アイコンは単発のマイクと取り違えられないものを使う。入切は `aria-pressed` で伝える
|
|
11
11
|
* (ラベルの入れ替えだけだと、状態を持つボタンであることが支援技術に伝わらない)。
|
|
12
12
|
*/
|
|
13
|
-
export declare function VoiceLoopToggle({ isRunning, disabled, ariaLabel, onClick }: VoiceLoopToggleProps): import(
|
|
13
|
+
export declare function VoiceLoopToggle({ isRunning, disabled, ariaLabel, onClick }: VoiceLoopToggleProps): import('react').JSX.Element;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=VoiceLoopToggle.d.ts.map
|
|
@@ -11,6 +11,6 @@ type VoiceRuntimeProps = UseVoiceRuntimeParams & {
|
|
|
11
11
|
* 状態はこの中に閉じ、描画するのは継続モードの状態バーだけに留める。状態バー以外の
|
|
12
12
|
* 画面を持たないため、読み込みが終わるまでの間もチャット画面の描画は一切止まらない。
|
|
13
13
|
*/
|
|
14
|
-
export declare function VoiceRuntime({ onSnapshotChange, ...params }: VoiceRuntimeProps): import(
|
|
14
|
+
export declare function VoiceRuntime({ onSnapshotChange, ...params }: VoiceRuntimeProps): import('react').JSX.Element;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=VoiceRuntime.d.ts.map
|
|
@@ -17,6 +17,6 @@ type WidgetDialogProps = {
|
|
|
17
17
|
* 元のチャット表示へ戻る。フォーカス復帰(トリガー = 入力欄)は呼び出し側(ChatWidget)が
|
|
18
18
|
* `onClose` 内で行う。
|
|
19
19
|
*/
|
|
20
|
-
export declare function WidgetDialog({ title, description, onClose, children }: WidgetDialogProps): import(
|
|
20
|
+
export declare function WidgetDialog({ title, description, onClose, children }: WidgetDialogProps): import('react').JSX.Element;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=WidgetDialog.d.ts.map
|
|
@@ -10,6 +10,6 @@ type CodeBlockProps = {
|
|
|
10
10
|
* children には rehype-highlight でハイライト済みの ReactNode が渡される想定。
|
|
11
11
|
* code には raw のテキストを渡し、コピー時はサニタイズしてクリップボードへ書き込む。
|
|
12
12
|
*/
|
|
13
|
-
export declare function CodeBlock({ language, code, className, children }: CodeBlockProps): import(
|
|
13
|
+
export declare function CodeBlock({ language, code, className, children }: CodeBlockProps): import('react').JSX.Element;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -23,6 +23,6 @@ type MarkdownBodyProps = {
|
|
|
23
23
|
* - isStreaming=true のときは stable prefix(確定済み部分)と unstable suffix(最後のブロック)に分割し、
|
|
24
24
|
* prefix を memo 化して再パース範囲を最小化する。
|
|
25
25
|
*/
|
|
26
|
-
export declare function MarkdownBody({ content, isStreaming }: MarkdownBodyProps): import(
|
|
26
|
+
export declare function MarkdownBody({ content, isStreaming }: MarkdownBodyProps): import('react').JSX.Element;
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=MarkdownBody.d.ts.map
|
|
@@ -18,6 +18,6 @@ type MarkdownMessageProps = {
|
|
|
18
18
|
* セキュリティ方針(skipHtml / disallowedElements / urlTransform 等)は
|
|
19
19
|
* MarkdownBody の JSDoc を参照。
|
|
20
20
|
*/
|
|
21
|
-
export declare function MarkdownMessage({ content, isStreaming }: MarkdownMessageProps): import(
|
|
21
|
+
export declare function MarkdownMessage({ content, isStreaming }: MarkdownMessageProps): import('react').JSX.Element;
|
|
22
22
|
export {};
|
|
23
23
|
//# sourceMappingURL=MarkdownMessage.d.ts.map
|
|
@@ -19,6 +19,8 @@ export type UseMicButtonResult = {
|
|
|
19
19
|
/** 聞き取り状態に応じたボタンの aria-label */
|
|
20
20
|
ariaLabel: string;
|
|
21
21
|
handleMicClick: () => void;
|
|
22
|
+
/** 失敗表示とスクリーンリーダー向けアナウンスを消す(継続音声モード開始時に使う。issue #328) */
|
|
23
|
+
clearStatus: () => void;
|
|
22
24
|
};
|
|
23
25
|
/**
|
|
24
26
|
* マイクボタンの状態管理(`useVoiceInput` の結果 + 失敗表示のタイマー + クリックハンドラ)を
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-mic-button.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/use-mic-button.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"use-mic-button.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/use-mic-button.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAkBzD,KAAK,kBAAkB,GAAG;IACxB,mDAAmD;IACnD,KAAK,EAAE,OAAO,CAAC;IACf,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gCAAgC;IAChC,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,EAAE,QAAQ,CAAC;IACnB,uDAAuD;IACvD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mCAAmC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,wCAAwC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,yDAAyD;IACzD,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,8DAM1B,kBAAkB,KAAG,kBAwEvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-send-message.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/use-send-message.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"use-send-message.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/use-send-message.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AA0B9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC;CAC7B,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAC;IACnB,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;IAC9E,SAAS,EAAE,eAAe,CAAC;IAC3B,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IACxC,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,uCAAuC;IACvC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gEAAgE;IAChE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oEAAoE;IACpE,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9C;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACtD;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,qCAAqC;IACrC,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAyHF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,oBAAoB,KAC3B,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CA+HnE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as B, r as M, t as H } from "./rolldown-runtime-Csywlj8R.js";
|
|
2
2
|
import { t as b } from "./default-sNAxTmdF.js";
|
|
3
3
|
import { t as q } from "./lib-DG_DjiCr.js";
|
|
4
4
|
function C(e) {
|
|
@@ -41,7 +41,7 @@ var J = /* @__PURE__ */ H(((e, t) => {
|
|
|
41
41
|
}));
|
|
42
42
|
return m;
|
|
43
43
|
};
|
|
44
|
-
})), _ = /* @__PURE__ */
|
|
44
|
+
})), _ = /* @__PURE__ */ M(J(), 1);
|
|
45
45
|
function R(e) {
|
|
46
46
|
if (typeof e != "object" || e === null) return !1;
|
|
47
47
|
const t = Object.getPrototypeOf(e);
|
|
@@ -509,7 +509,7 @@ function le(e) {
|
|
|
509
509
|
function he(e) {
|
|
510
510
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
511
511
|
}
|
|
512
|
-
var ye = /* @__PURE__ */
|
|
512
|
+
var ye = /* @__PURE__ */ B({ unified: () => fe });
|
|
513
513
|
export {
|
|
514
514
|
y as i,
|
|
515
515
|
fe as n,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as T } from "./jsx-runtime-
|
|
3
|
-
import { i as C } from "./voice-support-
|
|
1
|
+
import { r as v } from "./rolldown-runtime-Csywlj8R.js";
|
|
2
|
+
import { i as T } from "./jsx-runtime-2MlY8uwR.js";
|
|
3
|
+
import { i as C } from "./voice-support-DYXg7xML.js";
|
|
4
4
|
var o = /* @__PURE__ */ v(T(), 1), E = {
|
|
5
5
|
ja: "ja-JP",
|
|
6
6
|
en: "en-US"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as t } from "./jsx-runtime-
|
|
1
|
+
import { r as i } from "./rolldown-runtime-Csywlj8R.js";
|
|
2
|
+
import { i as t } from "./jsx-runtime-2MlY8uwR.js";
|
|
3
3
|
var e = /* @__PURE__ */ i(t(), 1), o = (0, e.createContext)("ja"), a = o.Provider, d = () => (0, e.useContext)(o), p = () => typeof window < "u" && (typeof window.SpeechRecognition < "u" || typeof window.webkitSpeechRecognition < "u"), s = () => typeof window < "u" && typeof window.speechSynthesis < "u";
|
|
4
4
|
export {
|
|
5
5
|
d as i,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wecool-chat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Drop-in LLM chat widget that executes your JavaScript functions via natural language",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -53,13 +53,24 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "tsc && vite build",
|
|
58
|
+
"build:loader": "vite build --config vite.config.loader.ts",
|
|
59
|
+
"size": "size-limit",
|
|
60
|
+
"analyze": "ANALYZE=true vite build",
|
|
61
|
+
"lint": "eslint src",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:coverage": "vitest run --coverage",
|
|
64
|
+
"test:watch": "vitest",
|
|
65
|
+
"check:styles": "node ../../scripts/ci-check-styles.mjs"
|
|
66
|
+
},
|
|
56
67
|
"dependencies": {
|
|
57
68
|
"clsx": "^2.1.1",
|
|
58
69
|
"highlight.js": "^11.12.0",
|
|
59
|
-
"lucide-react": "^1.
|
|
70
|
+
"lucide-react": "^1.70.0",
|
|
60
71
|
"qrcode": "^1.5.4",
|
|
61
|
-
"react": "^19.
|
|
62
|
-
"react-dom": "^19.
|
|
72
|
+
"react": "^19.3.1",
|
|
73
|
+
"react-dom": "^19.3.1",
|
|
63
74
|
"react-markdown": "^10.1.0",
|
|
64
75
|
"rehype-highlight": "^7.0.2",
|
|
65
76
|
"remark-gfm": "^4.0.1",
|
|
@@ -69,29 +80,29 @@
|
|
|
69
80
|
"devDependencies": {
|
|
70
81
|
"@eslint/js": "^10.0.1",
|
|
71
82
|
"@size-limit/file": "^12.1.0",
|
|
72
|
-
"@tailwindcss/vite": "^4.3.
|
|
83
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
73
84
|
"@testing-library/react": "^16.3.3",
|
|
74
|
-
"@testing-library/user-event": "^14.6.
|
|
85
|
+
"@testing-library/user-event": "^14.6.8",
|
|
75
86
|
"@types/qrcode": "^1.5.5",
|
|
76
|
-
"@types/react": "^19.
|
|
77
|
-
"@types/react-dom": "^19.
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
79
|
-
"@typescript-eslint/parser": "^8.
|
|
80
|
-
"@vitejs/plugin-react": "^6.
|
|
87
|
+
"@types/react": "^19.3.0",
|
|
88
|
+
"@types/react-dom": "^19.3.0",
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^8.72.1",
|
|
90
|
+
"@typescript-eslint/parser": "^8.72.1",
|
|
91
|
+
"@vitejs/plugin-react": "^6.2.1",
|
|
81
92
|
"@vitest/coverage-v8": "^4.1.11",
|
|
82
|
-
"axe-core": "^4.
|
|
83
|
-
"eslint": "^10.
|
|
93
|
+
"axe-core": "^4.14.0",
|
|
94
|
+
"eslint": "^10.14.0",
|
|
84
95
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
85
|
-
"globals": "^17.
|
|
96
|
+
"globals": "^17.14.0",
|
|
86
97
|
"jsdom": "^29.1.1",
|
|
87
|
-
"react": "^19.
|
|
88
|
-
"react-dom": "^19.
|
|
89
|
-
"rollup-plugin-visualizer": "^7.1.
|
|
98
|
+
"react": "^19.3.1",
|
|
99
|
+
"react-dom": "^19.3.1",
|
|
100
|
+
"rollup-plugin-visualizer": "^7.1.2",
|
|
90
101
|
"size-limit": "^12.1.0",
|
|
91
|
-
"tailwindcss": "^4.3.
|
|
102
|
+
"tailwindcss": "^4.3.5",
|
|
92
103
|
"typescript": "^5.9.3",
|
|
93
|
-
"vite": "^8.
|
|
94
|
-
"vite-plugin-dts": "^5.1.
|
|
104
|
+
"vite": "^8.3.6",
|
|
105
|
+
"vite-plugin-dts": "^5.1.2",
|
|
95
106
|
"vitest": "^4.1.11"
|
|
96
107
|
},
|
|
97
108
|
"keywords": [
|
|
@@ -112,16 +123,5 @@
|
|
|
112
123
|
"bugs": {
|
|
113
124
|
"email": "wecool.dev@gmail.com"
|
|
114
125
|
},
|
|
115
|
-
"author": "wecool-dev"
|
|
116
|
-
|
|
117
|
-
"build": "tsc && vite build",
|
|
118
|
-
"build:loader": "vite build --config vite.config.loader.ts",
|
|
119
|
-
"size": "size-limit",
|
|
120
|
-
"analyze": "ANALYZE=true vite build",
|
|
121
|
-
"lint": "eslint src",
|
|
122
|
-
"test": "vitest run",
|
|
123
|
-
"test:coverage": "vitest run --coverage",
|
|
124
|
-
"test:watch": "vitest",
|
|
125
|
-
"check:styles": "node ../../scripts/ci-check-styles.mjs"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
126
|
+
"author": "wecool-dev"
|
|
127
|
+
}
|