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.
Files changed (60) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.ja.md +1 -1
  3. package/README.md +1 -1
  4. package/dist/CopyIndicator-DcJtCBYP.js +63 -0
  5. package/dist/{MarkdownBody-DrX3zb2T.js → MarkdownBody-DX0DoV4C.js} +901 -893
  6. package/dist/{VoiceControls-C8_Tl-c9.js → VoiceControls-B_kX2Uj3.js} +79 -67
  7. package/dist/{VoiceRuntime-DGB607-E.js → VoiceRuntime-D1nURNly.js} +13 -13
  8. package/dist/blank-line-D-aLg3m0.js +213 -0
  9. package/dist/{browser-BjSilng8.js → browser-a2qIWP48.js} +1 -1
  10. package/dist/createLucideIcon-Dc6H577p.js +120 -0
  11. package/dist/index.css +2 -2
  12. package/dist/index.js +6849 -5728
  13. package/dist/{jsx-runtime-BTTIwChF.js → jsx-runtime-2MlY8uwR.js} +132 -122
  14. package/dist/{messages-BEE-IywU.js → messages-ZLdeJx9N.js} +9 -31
  15. package/dist/plugins/qrcode.js +7 -6
  16. package/dist/remark-gfm-DDNju7JY.js +2247 -0
  17. package/dist/{remark-parse-BJR7F87B.js → remark-parse-B3YPcONN.js} +377 -445
  18. package/dist/rolldown-runtime-Csywlj8R.js +25 -0
  19. package/dist/ui/components/ChatFooter.d.ts +1 -1
  20. package/dist/ui/components/ChatHeader.d.ts +1 -1
  21. package/dist/ui/components/ChatHeaderMenu.d.ts +1 -1
  22. package/dist/ui/components/ChatPanel.d.ts +1 -1
  23. package/dist/ui/components/CommandConfirmationCard.d.ts +1 -1
  24. package/dist/ui/components/CommandOverlays.d.ts +1 -1
  25. package/dist/ui/components/CommandPalette.d.ts +1 -1
  26. package/dist/ui/components/ConversationSelect.d.ts +1 -1
  27. package/dist/ui/components/CopyIndicator.d.ts +1 -1
  28. package/dist/ui/components/FloatButton.d.ts +1 -1
  29. package/dist/ui/components/FooterActions.d.ts +1 -1
  30. package/dist/ui/components/HelpDialogContent.d.ts +1 -1
  31. package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
  32. package/dist/ui/components/MessageAttachments.d.ts +1 -1
  33. package/dist/ui/components/MessageBubble.d.ts +1 -1
  34. package/dist/ui/components/MessageCopyButton.d.ts +1 -1
  35. package/dist/ui/components/MessageEditor.d.ts +1 -1
  36. package/dist/ui/components/MessageList.d.ts +1 -1
  37. package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
  38. package/dist/ui/components/MessageRow.d.ts +1 -1
  39. package/dist/ui/components/MessageRowActions.d.ts +1 -1
  40. package/dist/ui/components/MicButton.d.ts +1 -1
  41. package/dist/ui/components/ResizeHandles.d.ts +1 -1
  42. package/dist/ui/components/ToolConfirmationCard.d.ts +1 -1
  43. package/dist/ui/components/ToolConfirmationRecord.d.ts +1 -1
  44. package/dist/ui/components/ToolsDialogContent.d.ts +1 -1
  45. package/dist/ui/components/VoiceControls.d.ts +1 -1
  46. package/dist/ui/components/VoiceLoopStatusBar.d.ts +1 -1
  47. package/dist/ui/components/VoiceLoopToggle.d.ts +1 -1
  48. package/dist/ui/components/VoiceRuntime.d.ts +1 -1
  49. package/dist/ui/components/WidgetDialog.d.ts +1 -1
  50. package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
  51. package/dist/ui/components/markdown/MarkdownBody.d.ts +1 -1
  52. package/dist/ui/components/markdown/MarkdownMessage.d.ts +1 -1
  53. package/dist/{unified-NsWgUw0i.js → unified-DvM6W8YC.js} +3 -3
  54. package/dist/{use-voice-input-CLRsyP04.js → use-voice-input-DJtyHnsT.js} +3 -3
  55. package/dist/{voice-support-Cdpf-m3g.js → voice-support-DYXg7xML.js} +2 -2
  56. package/package.json +20 -20
  57. package/dist/CopyIndicator-DSRPjXWl.js +0 -51
  58. package/dist/blank-line-CUDmZ-mX.js +0 -143
  59. package/dist/createLucideIcon-CL_Vxx_2.js +0 -43
  60. 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
+ };
@@ -38,6 +38,6 @@ type ChatFooterProps = {
38
38
  /** 継続音声モードのトグル(issue #262)。使えない環境では未指定 */
39
39
  voiceLoop?: VoiceLoopControl;
40
40
  };
41
- export declare function ChatFooter({ onSubmit, onNew, onCancel, isLoading, placeholder, autoFocus, onCommand, inputControlRef, voice, onBeforeListen, voiceLoop, }: ChatFooterProps): import("react").JSX.Element;
41
+ export declare function ChatFooter({ onSubmit, onNew, onCancel, isLoading, placeholder, autoFocus, onCommand, inputControlRef, voice, onBeforeListen, voiceLoop, }: ChatFooterProps): import('react').JSX.Element;
42
42
  export {};
43
43
  //# sourceMappingURL=ChatFooter.d.ts.map
@@ -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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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
@@ -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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
16
+ export declare function FooterActions({ isLoading, canSend, onCancel, onNew }: FooterActionsProps): import('react').JSX.Element;
17
17
  export {};
18
18
  //# sourceMappingURL=FooterActions.d.ts.map
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * コマンド名(`/tools` 等)は固定トークンなので翻訳せず、説明のみ locale 連動させる。
5
5
  */
6
- export declare function HelpDialogContent(): import("react").JSX.Element;
6
+ export declare function HelpDialogContent(): import('react').JSX.Element;
7
7
  //# sourceMappingURL=HelpDialogContent.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("react").JSX.Element;
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("react").JSX.Element | null;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element | null;
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("react").JSX.Element;
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("react").JSX.Element | null;
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
@@ -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("react").JSX.Element | null;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
21
+ export declare function MarkdownMessage({ content, isStreaming }: MarkdownMessageProps): import('react').JSX.Element;
22
22
  export {};
23
23
  //# sourceMappingURL=MarkdownMessage.d.ts.map
@@ -1,4 +1,4 @@
1
- import { a as B, i as M, r as H } from "./messages-BEE-IywU.js";
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__ */ B(J(), 1);
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__ */ M({ unified: () => fe });
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 { a as v } from "./messages-BEE-IywU.js";
2
- import { i as T } from "./jsx-runtime-BTTIwChF.js";
3
- import { i as C } from "./voice-support-Cdpf-m3g.js";
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 { a as i } from "./messages-BEE-IywU.js";
2
- import { i as t } from "./jsx-runtime-BTTIwChF.js";
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.11.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": [
@@ -67,10 +67,10 @@
67
67
  "dependencies": {
68
68
  "clsx": "^2.1.1",
69
69
  "highlight.js": "^11.12.0",
70
- "lucide-react": "^1.25.0",
70
+ "lucide-react": "^1.70.0",
71
71
  "qrcode": "^1.5.4",
72
- "react": "^19.2.8",
73
- "react-dom": "^19.2.8",
72
+ "react": "^19.3.1",
73
+ "react-dom": "^19.3.1",
74
74
  "react-markdown": "^10.1.0",
75
75
  "rehype-highlight": "^7.0.2",
76
76
  "remark-gfm": "^4.0.1",
@@ -80,29 +80,29 @@
80
80
  "devDependencies": {
81
81
  "@eslint/js": "^10.0.1",
82
82
  "@size-limit/file": "^12.1.0",
83
- "@tailwindcss/vite": "^4.3.3",
83
+ "@tailwindcss/vite": "^4.3.5",
84
84
  "@testing-library/react": "^16.3.3",
85
- "@testing-library/user-event": "^14.6.7",
85
+ "@testing-library/user-event": "^14.6.8",
86
86
  "@types/qrcode": "^1.5.5",
87
- "@types/react": "^19.2.18",
88
- "@types/react-dom": "^19.2.7",
89
- "@typescript-eslint/eslint-plugin": "^8.69.0",
90
- "@typescript-eslint/parser": "^8.69.0",
91
- "@vitejs/plugin-react": "^6.1.1",
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",
92
92
  "@vitest/coverage-v8": "^4.1.11",
93
- "axe-core": "^4.13.0",
94
- "eslint": "^10.9.1",
93
+ "axe-core": "^4.14.0",
94
+ "eslint": "^10.14.0",
95
95
  "eslint-plugin-jsx-a11y": "^6.10.2",
96
- "globals": "^17.12.0",
96
+ "globals": "^17.14.0",
97
97
  "jsdom": "^29.1.1",
98
- "react": "^19.2.8",
99
- "react-dom": "^19.2.8",
100
- "rollup-plugin-visualizer": "^7.1.1",
98
+ "react": "^19.3.1",
99
+ "react-dom": "^19.3.1",
100
+ "rollup-plugin-visualizer": "^7.1.2",
101
101
  "size-limit": "^12.1.0",
102
- "tailwindcss": "^4.3.3",
102
+ "tailwindcss": "^4.3.5",
103
103
  "typescript": "^5.9.3",
104
- "vite": "^8.2.2",
105
- "vite-plugin-dts": "^5.1.0",
104
+ "vite": "^8.3.6",
105
+ "vite-plugin-dts": "^5.1.2",
106
106
  "vitest": "^4.1.11"
107
107
  },
108
108
  "keywords": [
@@ -1,51 +0,0 @@
1
- import { a as s } from "./messages-BEE-IywU.js";
2
- import { i as n, r as u, t as l } from "./jsx-runtime-BTTIwChF.js";
3
- import { t as o } from "./createLucideIcon-CL_Vxx_2.js";
4
- var p = [["path", {
5
- d: "M20 6 9 17l-5-5",
6
- key: "1gmf2c"
7
- }]], d = o("check", p), _ = [["rect", {
8
- width: "14",
9
- height: "14",
10
- x: "8",
11
- y: "8",
12
- rx: "2",
13
- ry: "2",
14
- key: "17jyea"
15
- }], ["path", {
16
- d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
17
- key: "zix9uf"
18
- }]], f = o("copy", _), m = /!\[[^\]]*\]\(\s*data:[^)]*\)/gi, x = /!\[[^\]]*\]\(\s*data:[A-Za-z0-9+/=,;_\-.%\s]*/gi, w = (r) => {
19
- let e = r.replace(m, "");
20
- return e = e.replace(x, ""), e;
21
- }, t = /* @__PURE__ */ s(n(), 1), v = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g, y = /[\u200b\u200c\u200d\u2060\ufeff]/g, g = (r) => r.replace(/\r\n?/g, `
22
- `).replace(v, "").replace(y, ""), C = 2e3, A = () => {
23
- const [r, e] = (0, t.useState)(!1), a = (0, t.useRef)(null);
24
- return (0, t.useEffect)(() => () => {
25
- a.current !== null && window.clearTimeout(a.current);
26
- }, []), {
27
- copied: r,
28
- copy: (0, t.useCallback)(async (i) => {
29
- if (navigator.clipboard)
30
- try {
31
- await navigator.clipboard.writeText(g(i)), e(!0), a.current !== null && window.clearTimeout(a.current), a.current = window.setTimeout(() => {
32
- e(!1), a.current = null;
33
- }, C);
34
- } catch {
35
- }
36
- }, [])
37
- };
38
- }, c = l();
39
- function E({ copied: r }) {
40
- const e = u(), a = r ? d : f, i = r ? e.copiedLabel : e.copyLabel;
41
- return /* @__PURE__ */ (0, c.jsxs)(c.Fragment, { children: [/* @__PURE__ */ (0, c.jsx)(a, {
42
- className: "wecool-icon--xs",
43
- "aria-hidden": "true"
44
- }), /* @__PURE__ */ (0, c.jsx)("span", { children: i })] });
45
- }
46
- export {
47
- d as i,
48
- A as n,
49
- w as r,
50
- E as t
51
- };