@k2b/ui 0.57.1 → 0.59.0
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/base.css +1 -0
- package/dist/browser/actions/ContextMenu.js +5 -2
- package/dist/browser/actions/ContextMenu.js.map +1 -1
- package/dist/browser/actions/Dropdown.js +4 -3
- package/dist/browser/actions/Dropdown.js.map +1 -1
- package/dist/browser/actions/Tabs.js +58 -19
- package/dist/browser/actions/Tabs.js.map +1 -1
- package/dist/browser/actions/Toolbar.js +66 -60
- package/dist/browser/actions/Toolbar.js.map +1 -1
- package/dist/browser/actions/ViewTabs.js +89 -73
- package/dist/browser/actions/ViewTabs.js.map +1 -1
- package/dist/browser/actions/drag-and-drop.js +2 -1
- package/dist/browser/actions/drag-and-drop.js.map +1 -1
- package/dist/browser/actions/menu-rows.js +1 -1
- package/dist/browser/actions/menu-rows.js.map +1 -1
- package/dist/browser/charts/core/snapshot.js +3 -1
- package/dist/browser/charts/core/snapshot.js.map +1 -1
- package/dist/browser/chat/ChatComposer.js +832 -679
- package/dist/browser/chat/ChatComposer.js.map +1 -1
- package/dist/browser/chat/ChatContextPopup.js +34 -4
- package/dist/browser/chat/ChatContextPopup.js.map +1 -1
- package/dist/browser/chat/ChatPrimitives.js +471 -284
- package/dist/browser/chat/ChatPrimitives.js.map +1 -1
- package/dist/browser/chat/ChatTasks.js +218 -80
- package/dist/browser/chat/ChatTasks.js.map +1 -1
- package/dist/browser/chat/ChatTimeline.js +5 -3
- package/dist/browser/chat/ChatTimeline.js.map +1 -1
- package/dist/browser/chat/chat-behavior.js +12 -0
- package/dist/browser/chat/chat-behavior.js.map +1 -1
- package/dist/browser/chat/chat-messages.js +50 -2
- package/dist/browser/chat/chat-messages.js.map +1 -1
- package/dist/browser/chat/index.js +2 -1
- package/dist/browser/chat/index.js.map +1 -1
- package/dist/browser/chat/types.js.map +1 -1
- package/dist/browser/content/Calendar.js +2 -2
- package/dist/browser/content/Calendar.js.map +1 -1
- package/dist/browser/content/CalendarWeekView.js +9 -2
- package/dist/browser/content/CalendarWeekView.js.map +1 -1
- package/dist/browser/content/ChartRoot.js +4 -1
- package/dist/browser/content/ChartRoot.js.map +1 -1
- package/dist/browser/content/DataTable.js +9 -0
- package/dist/browser/content/DataTable.js.map +1 -1
- package/dist/browser/content/Lightbox.js +2 -2
- package/dist/browser/content/Lightbox.js.map +1 -1
- package/dist/browser/content/PdfPages.js +160 -44
- package/dist/browser/content/PdfPages.js.map +1 -1
- package/dist/browser/content/PdfViewer.js +59 -21
- package/dist/browser/content/PdfViewer.js.map +1 -1
- package/dist/browser/content/ProgressPath.js +101 -0
- package/dist/browser/content/ProgressPath.js.map +1 -0
- package/dist/browser/content/Timeline.js +1 -1
- package/dist/browser/content/Timeline.js.map +1 -1
- package/dist/browser/content/chart-tick-room.js +59 -0
- package/dist/browser/content/chart-tick-room.js.map +1 -0
- package/dist/browser/content/index.js +1 -0
- package/dist/browser/content/index.js.map +1 -1
- package/dist/browser/content/pdf-viewer-engine.js +1 -1
- package/dist/browser/feedback/HoverCard.js +535 -0
- package/dist/browser/feedback/HoverCard.js.map +1 -0
- package/dist/browser/feedback/Tooltip.js +5 -2
- package/dist/browser/feedback/Tooltip.js.map +1 -1
- package/dist/browser/feedback/dialog-core.js +12 -8
- package/dist/browser/feedback/dialog-core.js.map +1 -1
- package/dist/browser/feedback/index.js +1 -0
- package/dist/browser/feedback/index.js.map +1 -1
- package/dist/browser/feedback/prompt-confirm.js +3 -17
- package/dist/browser/feedback/prompt-confirm.js.map +1 -1
- package/dist/browser/feedback/prompt-sheet-view.js +95 -0
- package/dist/browser/feedback/prompt-sheet-view.js.map +1 -0
- package/dist/browser/feedback/prompt-sheet.js +36 -0
- package/dist/browser/feedback/prompt-sheet.js.map +1 -0
- package/dist/browser/feedback/prompts.js +14 -38
- package/dist/browser/feedback/prompts.js.map +1 -1
- package/dist/browser/feedback/toast.js +17 -12
- package/dist/browser/feedback/toast.js.map +1 -1
- package/dist/browser/internal/anchor-placement.js +38 -0
- package/dist/browser/internal/anchor-placement.js.map +1 -0
- package/dist/browser/internal/portal-scope.js +36 -0
- package/dist/browser/internal/portal-scope.js.map +1 -0
- package/dist/browser/internal/portal.js +13 -10
- package/dist/browser/internal/portal.js.map +1 -1
- package/dist/browser/intl/messages.js +10 -0
- package/dist/browser/intl/messages.js.map +1 -1
- package/dist/browser/layout/AnchoredPopover.js +10 -25
- package/dist/browser/layout/AnchoredPopover.js.map +1 -1
- package/dist/browser/layout/BottomSheet.js +1 -12
- package/dist/browser/layout/BottomSheet.js.map +1 -1
- package/dist/browser/layout/Discussion.js +298 -3
- package/dist/browser/layout/Discussion.js.map +1 -1
- package/dist/browser/layout/FloatingWindow.js +124 -75
- package/dist/browser/layout/FloatingWindow.js.map +1 -1
- package/dist/browser/layout/Panes.js +643 -212
- package/dist/browser/layout/Panes.js.map +1 -1
- package/dist/browser/layout/index.js +1 -1
- package/dist/browser/layout/index.js.map +1 -1
- package/dist/browser/layout/panes-layout.js +169 -0
- package/dist/browser/layout/panes-layout.js.map +1 -1
- package/dist/browser/layout/panes-messages.js +108 -2
- package/dist/browser/layout/panes-messages.js.map +1 -1
- package/dist/browser/layout/panes-preview-scope.js +9 -0
- package/dist/browser/layout/panes-preview-scope.js.map +1 -0
- package/dist/browser/layout/sheet-handle.js +173 -37
- package/dist/browser/layout/sheet-handle.js.map +1 -1
- package/dist/browser/layout/sheet-motion.js +38 -5
- package/dist/browser/layout/sheet-motion.js.map +1 -1
- package/dist/browser/panes.js +3 -0
- package/dist/browser/panes.js.map +1 -0
- package/dist/browser/surfaces/ChangeList.js +78 -16
- package/dist/browser/surfaces/ChangeList.js.map +1 -1
- package/dist/browser/surfaces/DotStrip.js +126 -41
- package/dist/browser/surfaces/DotStrip.js.map +1 -1
- package/dist/browser/surfaces/LinkCard.js +69 -16
- package/dist/browser/surfaces/LinkCard.js.map +1 -1
- package/dist/ssr/actions/ContextMenu.js +1 -0
- package/dist/ssr/actions/ContextMenu.js.map +1 -1
- package/dist/ssr/actions/Dropdown.js +4 -4
- package/dist/ssr/actions/Dropdown.js.map +1 -1
- package/dist/ssr/actions/Tabs.js +21 -6
- package/dist/ssr/actions/Tabs.js.map +1 -1
- package/dist/ssr/actions/Toolbar.js +24 -18
- package/dist/ssr/actions/Toolbar.js.map +1 -1
- package/dist/ssr/actions/ViewTabs.js +27 -20
- package/dist/ssr/actions/ViewTabs.js.map +1 -1
- package/dist/ssr/actions/drag-and-drop.js +2 -1
- package/dist/ssr/actions/drag-and-drop.js.map +1 -1
- package/dist/ssr/actions/menu-rows.js +1 -1
- package/dist/ssr/actions/menu-rows.js.map +1 -1
- package/dist/ssr/charts/core/snapshot.js +3 -1
- package/dist/ssr/charts/core/snapshot.js.map +1 -1
- package/dist/ssr/chat/ChatComposer.js +250 -142
- package/dist/ssr/chat/ChatComposer.js.map +1 -1
- package/dist/ssr/chat/ChatContextPopup.js +17 -1
- package/dist/ssr/chat/ChatContextPopup.js.map +1 -1
- package/dist/ssr/chat/ChatPrimitives.js +179 -51
- package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
- package/dist/ssr/chat/ChatTasks.js +117 -27
- package/dist/ssr/chat/ChatTasks.js.map +1 -1
- package/dist/ssr/chat/ChatTimeline.js +5 -3
- package/dist/ssr/chat/ChatTimeline.js.map +1 -1
- package/dist/ssr/chat/chat-behavior.js +12 -0
- package/dist/ssr/chat/chat-behavior.js.map +1 -1
- package/dist/ssr/chat/chat-messages.js +50 -2
- package/dist/ssr/chat/chat-messages.js.map +1 -1
- package/dist/ssr/chat/index.js +2 -1
- package/dist/ssr/chat/index.js.map +1 -1
- package/dist/ssr/chat/types.js.map +1 -1
- package/dist/ssr/content/Calendar.js +2 -2
- package/dist/ssr/content/Calendar.js.map +1 -1
- package/dist/ssr/content/CalendarWeekView.js +9 -2
- package/dist/ssr/content/CalendarWeekView.js.map +1 -1
- package/dist/ssr/content/ChartRoot.js +4 -1
- package/dist/ssr/content/ChartRoot.js.map +1 -1
- package/dist/ssr/content/DataTable.js +9 -0
- package/dist/ssr/content/DataTable.js.map +1 -1
- package/dist/ssr/content/Lightbox.js +2 -2
- package/dist/ssr/content/Lightbox.js.map +1 -1
- package/dist/ssr/content/PdfPages.js +160 -44
- package/dist/ssr/content/PdfPages.js.map +1 -1
- package/dist/ssr/content/PdfViewer.js +40 -8
- package/dist/ssr/content/PdfViewer.js.map +1 -1
- package/dist/ssr/content/ProgressPath.js +51 -0
- package/dist/ssr/content/ProgressPath.js.map +1 -0
- package/dist/ssr/content/Timeline.js +1 -1
- package/dist/ssr/content/Timeline.js.map +1 -1
- package/dist/ssr/content/chart-tick-room.js +59 -0
- package/dist/ssr/content/chart-tick-room.js.map +1 -0
- package/dist/ssr/content/index.js +1 -0
- package/dist/ssr/content/index.js.map +1 -1
- package/dist/ssr/feedback/HoverCard.js +473 -0
- package/dist/ssr/feedback/HoverCard.js.map +1 -0
- package/dist/ssr/feedback/Tooltip.js +5 -2
- package/dist/ssr/feedback/Tooltip.js.map +1 -1
- package/dist/ssr/feedback/dialog-core.js +12 -8
- package/dist/ssr/feedback/dialog-core.js.map +1 -1
- package/dist/ssr/feedback/index.js +1 -0
- package/dist/ssr/feedback/index.js.map +1 -1
- package/dist/ssr/feedback/prompt-confirm.js +3 -17
- package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
- package/dist/ssr/feedback/prompt-sheet-view.js +61 -0
- package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -0
- package/dist/ssr/feedback/prompt-sheet.js +36 -0
- package/dist/ssr/feedback/prompt-sheet.js.map +1 -0
- package/dist/ssr/feedback/prompts.js +14 -38
- package/dist/ssr/feedback/prompts.js.map +1 -1
- package/dist/ssr/feedback/toast.js +17 -12
- package/dist/ssr/feedback/toast.js.map +1 -1
- package/dist/ssr/internal/anchor-placement.js +38 -0
- package/dist/ssr/internal/anchor-placement.js.map +1 -0
- package/dist/ssr/internal/portal-scope.js +36 -0
- package/dist/ssr/internal/portal-scope.js.map +1 -0
- package/dist/ssr/internal/portal.js +13 -10
- package/dist/ssr/internal/portal.js.map +1 -1
- package/dist/ssr/intl/messages.js +10 -0
- package/dist/ssr/intl/messages.js.map +1 -1
- package/dist/ssr/layout/AnchoredPopover.js +10 -25
- package/dist/ssr/layout/AnchoredPopover.js.map +1 -1
- package/dist/ssr/layout/BottomSheet.js +1 -12
- package/dist/ssr/layout/BottomSheet.js.map +1 -1
- package/dist/ssr/layout/Discussion.js +168 -2
- package/dist/ssr/layout/Discussion.js.map +1 -1
- package/dist/ssr/layout/FloatingWindow.js +39 -15
- package/dist/ssr/layout/FloatingWindow.js.map +1 -1
- package/dist/ssr/layout/Panes.js +399 -41
- package/dist/ssr/layout/Panes.js.map +1 -1
- package/dist/ssr/layout/index.js +1 -1
- package/dist/ssr/layout/index.js.map +1 -1
- package/dist/ssr/layout/panes-layout.js +169 -0
- package/dist/ssr/layout/panes-layout.js.map +1 -1
- package/dist/ssr/layout/panes-messages.js +108 -2
- package/dist/ssr/layout/panes-messages.js.map +1 -1
- package/dist/ssr/layout/panes-preview-scope.js +9 -0
- package/dist/ssr/layout/panes-preview-scope.js.map +1 -0
- package/dist/ssr/layout/sheet-handle.js +173 -37
- package/dist/ssr/layout/sheet-handle.js.map +1 -1
- package/dist/ssr/layout/sheet-motion.js +38 -5
- package/dist/ssr/layout/sheet-motion.js.map +1 -1
- package/dist/ssr/panes.js +3 -0
- package/dist/ssr/panes.js.map +1 -0
- package/dist/ssr/surfaces/ChangeList.js +37 -5
- package/dist/ssr/surfaces/ChangeList.js.map +1 -1
- package/dist/ssr/surfaces/DotStrip.js +75 -12
- package/dist/ssr/surfaces/DotStrip.js.map +1 -1
- package/dist/ssr/surfaces/LinkCard.js +46 -7
- package/dist/ssr/surfaces/LinkCard.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/actions/Dropdown.d.ts +4 -3
- package/dist/types/actions/Tabs.d.ts +9 -0
- package/dist/types/actions/ViewTabs.d.ts +2 -0
- package/dist/types/chat/ChatComposer.d.ts +24 -2
- package/dist/types/chat/ChatPrimitives.d.ts +6 -1
- package/dist/types/chat/ChatTasks.d.ts +14 -1
- package/dist/types/chat/chat-behavior.d.ts +14 -0
- package/dist/types/chat/chat-messages.d.ts +24 -0
- package/dist/types/chat/index.d.ts +5 -4
- package/dist/types/chat/types.d.ts +27 -0
- package/dist/types/content/PdfPages.d.ts +8 -3
- package/dist/types/content/PdfViewer.d.ts +12 -4
- package/dist/types/content/ProgressPath.d.ts +25 -0
- package/dist/types/content/chart-tick-room.d.ts +15 -0
- package/dist/types/content/index.d.ts +1 -0
- package/dist/types/feedback/HoverCard.d.ts +44 -0
- package/dist/types/feedback/Tooltip.d.ts +5 -0
- package/dist/types/feedback/index.d.ts +2 -0
- package/dist/types/feedback/prompt-confirm.d.ts +0 -2
- package/dist/types/feedback/prompt-sheet-view.d.ts +3 -0
- package/dist/types/feedback/prompt-sheet.d.ts +20 -0
- package/dist/types/feedback/toast.d.ts +5 -1
- package/dist/types/internal/anchor-placement.d.ts +23 -0
- package/dist/types/internal/portal-scope.d.ts +11 -0
- package/dist/types/internal/portal.d.ts +1 -1
- package/dist/types/intl/messages.d.ts +5 -0
- package/dist/types/layout/BottomSheet.d.ts +1 -5
- package/dist/types/layout/Discussion.d.ts +25 -0
- package/dist/types/layout/FloatingWindow.d.ts +6 -0
- package/dist/types/layout/Panes.d.ts +21 -0
- package/dist/types/layout/index.d.ts +3 -3
- package/dist/types/layout/panes-layout.d.ts +51 -0
- package/dist/types/layout/panes-messages.d.ts +55 -0
- package/dist/types/layout/panes-preview-scope.d.ts +2 -0
- package/dist/types/layout/sheet-handle.d.ts +17 -8
- package/dist/types/layout/sheet-motion.d.ts +5 -0
- package/dist/types/panes.d.ts +2 -0
- package/dist/types/surfaces/ChangeList.d.ts +23 -4
- package/dist/types/surfaces/DotStrip.d.ts +25 -5
- package/dist/types/surfaces/LinkCard.d.ts +13 -0
- package/package.json +8 -2
|
@@ -15,55 +15,56 @@ var _tmpl$ = ["<span><strong", ">", "</strong></span>"],
|
|
|
15
15
|
_tmpl$8 = ["<div class=\"k2b-chat-composer__microphone\">", "", "</div>"],
|
|
16
16
|
_tmpl$9 = ["<div class=\"k2b-chat-composer__highlight\" aria-hidden=\"true\">", "\n</div>"],
|
|
17
17
|
_tmpl$0 = "<textarea class=\"k2b-chat-composer__measure\" rows=\"1\" tabindex=\"-1\" aria-hidden=\"true\" readonly></textarea>",
|
|
18
|
-
_tmpl$1 = ["<div class=\"k2b-chat-composer__input\" role=\"group\"", ">", "<textarea class=\"", "\" rows=\"1\"", "", "", "></textarea>", "</div>"],
|
|
18
|
+
_tmpl$1 = ["<div class=\"k2b-chat-composer__input\" role=\"group\"", ">", "<textarea class=\"", "\" rows=\"1\"", "", "", "></textarea>", "", "</div>"],
|
|
19
19
|
_tmpl$10 = "<span class=\"k2b-dictation-mark\"></span>",
|
|
20
20
|
_tmpl$11 = ["<span class=\"", "\">", "</span>"],
|
|
21
|
-
_tmpl$12 = ["<
|
|
22
|
-
_tmpl$13 = ["<span class=\"k2b-chat-composer__command-
|
|
23
|
-
_tmpl$14 = ["<
|
|
24
|
-
_tmpl$15 = ["<
|
|
25
|
-
_tmpl$16 = ["<
|
|
26
|
-
_tmpl$17 = ["<
|
|
27
|
-
_tmpl$18 = ["<span class=\"k2b-message-row__quote-
|
|
28
|
-
_tmpl$19 = ["<
|
|
29
|
-
_tmpl$20 = ["<
|
|
30
|
-
_tmpl$21 = ["<
|
|
31
|
-
_tmpl$22 = ["<div role=\"status\"><i class=\"ti ti-
|
|
32
|
-
_tmpl$23 = ["<div role=\"status\">", "</div>"],
|
|
33
|
-
_tmpl$24 = ["<div
|
|
34
|
-
_tmpl$25 = ["<div class=\"k2b-chat-composer-
|
|
35
|
-
_tmpl$26 = ["<div class=\"k2b-chat-
|
|
36
|
-
_tmpl$27 = ["<div class=\"k2b-chat-
|
|
37
|
-
_tmpl$28 = ["<div class=\"k2b-chat-
|
|
38
|
-
_tmpl$29 = ["<div class=\"k2b-chat-
|
|
39
|
-
_tmpl$30 = ["<div class=\"k2b-chat-
|
|
40
|
-
_tmpl$31 = ["<div class=\"k2b-chat-
|
|
41
|
-
_tmpl$32 = ["<
|
|
42
|
-
_tmpl$33 = ["<
|
|
43
|
-
_tmpl$34 = ["<small
|
|
44
|
-
_tmpl$35 = ["<
|
|
45
|
-
_tmpl$36 = "<
|
|
46
|
-
_tmpl$37 =
|
|
47
|
-
_tmpl$38 = "<div class=\"k2b-chat-composer__command-
|
|
48
|
-
_tmpl$39 =
|
|
49
|
-
_tmpl$40 = ["<span class=\"k2b-chat-
|
|
50
|
-
_tmpl$41 = ["<
|
|
51
|
-
_tmpl$42 = ["<
|
|
52
|
-
_tmpl$43 = ["<div class=\"k2b-
|
|
53
|
-
_tmpl$44 = ["<
|
|
54
|
-
_tmpl$45 = ["<
|
|
55
|
-
_tmpl$46 = ["<
|
|
56
|
-
_tmpl$47 = ["<
|
|
57
|
-
_tmpl$48 = ["<
|
|
58
|
-
_tmpl$49 = ["<
|
|
59
|
-
_tmpl$50 = ["<
|
|
60
|
-
_tmpl$51 = ["<
|
|
61
|
-
_tmpl$52 = ["<
|
|
62
|
-
_tmpl$53 = ["<
|
|
63
|
-
_tmpl$54 = ["<div class=\"k2b-chat-
|
|
64
|
-
_tmpl$55 = ["<
|
|
65
|
-
_tmpl$56 = ["<
|
|
66
|
-
_tmpl$57 = ["<
|
|
21
|
+
_tmpl$12 = ["<div class=\"k2b-chat-composer__suggestion\"><span aria-hidden=\"true\">", "</span><span hidden", ">", "</span><span class=\"k2b-chat-composer__suggestion-key\" aria-hidden=\"true\"><i class=\"ti ti-sparkles k2b-chat-composer__suggestion-mark\" aria-hidden=\"true\"></i><kbd class=\"k2b-chat-composer__suggestion-cap\">Tab</kbd>", "</span><button type=\"button\" class=\"k2b-chat-composer__suggestion-accept\"", "><i class=\"ti ti-sparkles k2b-chat-composer__suggestion-mark\" aria-hidden=\"true\"></i>", "</button></div>"],
|
|
22
|
+
_tmpl$13 = ["<span class=\"k2b-chat-composer__command-detail\"", "><small", ">", "</small><small", "><i class=\"ti ti-loader-2 k2b-spin\" aria-hidden=\"true\"></i>", "</small></span>"],
|
|
23
|
+
_tmpl$14 = ["<span class=\"k2b-chat-composer__command-end\"><i class=\"ti ti-check\" aria-hidden=\"true\"></i><span class=\"k2b-sr-only\">", "</span></span>"],
|
|
24
|
+
_tmpl$15 = ["<button class=\"k2b-chat-composer__command\"", " type=\"button\" role=\"option\" tabindex=\"-1\"", "><i", " aria-hidden=\"true\"></i><span class=\"k2b-chat-composer__command-text\"><strong>", "</strong>", "</span>", "</button>"],
|
|
25
|
+
_tmpl$16 = ["<b>", "</b>"],
|
|
26
|
+
_tmpl$17 = ["<small", ">", "</small>"],
|
|
27
|
+
_tmpl$18 = ["<span class=\"k2b-message-row__quote-author\"><span class=\"k2b-sr-only\">", " </span>", "</span>"],
|
|
28
|
+
_tmpl$19 = ["<span class=\"k2b-message-row__quote-text\">", "</span>"],
|
|
29
|
+
_tmpl$20 = ["<div class=\"k2b-chat-composer-accessory\"><div", " class=\"k2b-chat-composer__commands\" role=\"listbox\"", ">", "</div></div>"],
|
|
30
|
+
_tmpl$21 = ["<label class=\"k2b-chat-composer__command-search\"><i class=\"ti ti-search\" aria-hidden=\"true\"></i><input type=\"text\" role=\"combobox\"", " aria-autocomplete=\"list\"", " aria-expanded=\"true\"", " autocomplete=\"off\" autocapitalize=\"off\" spellcheck=\"false\"", "></label>"],
|
|
31
|
+
_tmpl$22 = ["<div role=\"status\" class=\"k2b-chat-composer__loading\"><i class=\"ti ti-loader-2 k2b-spin\" aria-hidden=\"true\"></i><strong>", "</strong></div>"],
|
|
32
|
+
_tmpl$23 = ["<div role=\"status\"><i class=\"ti ti-alert-circle\"></i> ", "</div>"],
|
|
33
|
+
_tmpl$24 = ["<div role=\"status\">", "</div>"],
|
|
34
|
+
_tmpl$25 = ["<div class=\"k2b-chat-composer-accessory\" data-commands", ">", "<div", " class=\"k2b-chat-composer__commands\" role=\"listbox\"", ">", "", "", "", "", "</div></div>"],
|
|
35
|
+
_tmpl$26 = ["<div class=\"k2b-chat-composer-slot\"", "><div style=\"", "\"", ">", "</div>", "", "", "</div>"],
|
|
36
|
+
_tmpl$27 = ["<div class=\"k2b-chat-composer__hint\" aria-live=\"polite\">", "</div>"],
|
|
37
|
+
_tmpl$28 = ["<div class=\"k2b-chat-composer__attachments\" role=\"list\"", " tabindex=\"0\">", "</div>"],
|
|
38
|
+
_tmpl$29 = ["<div class=\"k2b-chat-composer__error\" role=\"alert\"><i class=\"ti ti-alert-circle\" aria-hidden=\"true\"></i>", "</div>"],
|
|
39
|
+
_tmpl$30 = ["<div class=\"k2b-chat-composer__dictation\">", "</div>"],
|
|
40
|
+
_tmpl$31 = ["<div class=\"k2b-chat-composer__row\">", "", "<div class=\"k2b-chat-composer__field\">", "<div class=\"k2b-chat-composer__field-tools\">", "", "", "", "</div></div>", "</div>"],
|
|
41
|
+
_tmpl$32 = ["<div class=\"k2b-chat-composer-shell\">", "<section class=\"", "\"", " role=\"group\"", ">", "", "", "", "", "</section><div class=\"k2b-sr-only\" role=\"status\" aria-live=\"polite\">", "</div><div class=\"k2b-chat-composer__status\" role=\"status\">", "", "</div></div>"],
|
|
42
|
+
_tmpl$33 = ["<button id=\"", "\" type=\"button\" role=\"option\" tabindex=\"-1\"", "><span class=\"k2b-chat-composer__emoji-glyph\" aria-hidden=\"true\">", "</span><strong>", "</strong>", "</button>"],
|
|
43
|
+
_tmpl$34 = ["<small>:", ":</small>"],
|
|
44
|
+
_tmpl$35 = ["<small>", "</small>"],
|
|
45
|
+
_tmpl$36 = ["<button id=\"", "\" type=\"button\" role=\"option\" tabindex=\"-1\"", "><i", " aria-hidden=\"true\"></i><strong>", "</strong>", "</button>"],
|
|
46
|
+
_tmpl$37 = "<i class=\"ti ti-loader-2 k2b-spin\" aria-hidden=\"true\"></i>",
|
|
47
|
+
_tmpl$38 = ["<div class=\"k2b-chat-composer__command-group\" role=\"group\"", "><div class=\"k2b-chat-composer__command-heading\"", " role=\"presentation\"><span>", "</span>", "</div>", "", "</div>"],
|
|
48
|
+
_tmpl$39 = "<div class=\"k2b-chat-composer__command-placeholder\" aria-hidden=\"true\"><span></span><span><span></span><span></span></span></div>",
|
|
49
|
+
_tmpl$40 = ["<span class=\"k2b-chat-composer__hint-text\">", "</span>"],
|
|
50
|
+
_tmpl$41 = ["<span class=\"k2b-chat-composer__dictation\"", "><i", " aria-hidden=\"true\"></i><span>", "</span></span>"],
|
|
51
|
+
_tmpl$42 = ["<button type=\"button\" class=\"k2b-chat-composer__hint-action\"", ">", "</button>"],
|
|
52
|
+
_tmpl$43 = ["<div class=\"k2b-chat-composer__reply\">", "<button type=\"button\" class=\"k2b-chat-composer__icon-action k2b-chat-composer__reply-cancel\"", "><i class=\"ti ti-x\" aria-hidden=\"true\"></i></button></div>"],
|
|
53
|
+
_tmpl$44 = ["<div class=\"k2b-message-row__quote\">", "</div>"],
|
|
54
|
+
_tmpl$45 = ["<button type=\"button\" class=\"k2b-message-row__quote\">", "</button>"],
|
|
55
|
+
_tmpl$46 = ["<span class=\"k2b-chat-composer__attachment-action k2b-chat-composer__attachment-progress\">", "", "</span>"],
|
|
56
|
+
_tmpl$47 = ["<button type=\"button\" class=\"k2b-chat-composer__attachment-remove\"", "", "><i class=\"ti ti-x\" aria-hidden=\"true\"></i></button>"],
|
|
57
|
+
_tmpl$48 = ["<div class=\"k2b-chat-composer__attachment\" role=\"listitem\"><div class=\"", "\">", "", "", "</div>", "</div>"],
|
|
58
|
+
_tmpl$49 = ["<img", ">"],
|
|
59
|
+
_tmpl$50 = ["<div class=\"k2b-chat-composer__attachment-identity\">", "", "</div>"],
|
|
60
|
+
_tmpl$51 = ["<a class=\"k2b-chat-composer__attachment-link\"", " target=\"_blank\" rel=\"noopener noreferrer\"", ">", "", "</a>"],
|
|
61
|
+
_tmpl$52 = ["<button type=\"button\" class=\"k2b-chat-composer__attachment-action\"", "", ">", "", "</button>"],
|
|
62
|
+
_tmpl$53 = ["<footer class=\"k2b-chat-composer__footer\">", "</footer>"],
|
|
63
|
+
_tmpl$54 = ["<div class=\"k2b-chat-composer__tools\">", "", "", "", "", "", "", "", "", "</div>"],
|
|
64
|
+
_tmpl$55 = ["<div class=\"k2b-chat-composer__submit\">", "", "", "", "</div>"],
|
|
65
|
+
_tmpl$56 = ["<span>", "</span>"],
|
|
66
|
+
_tmpl$57 = ["<div class=\"k2b-chat-composer__status-line\"", "><i aria-hidden=\"true\"", "></i><span>", "</span></div>"],
|
|
67
|
+
_tmpl$58 = ["<span class=\"k2b-sr-only\">", "</span>"];
|
|
67
68
|
import { batch, children, createEffect, createMemo, createSignal, createUniqueId, For, Index, on, onCleanup, onMount, Show, untrack } from "solid-js";
|
|
68
69
|
import { Dropdown } from "../actions/Dropdown";
|
|
69
70
|
import { dialogHistorySettled, holdDialogHistory } from "../feedback/dialog-core";
|
|
@@ -83,7 +84,7 @@ import { useLocale } from "../intl/locale";
|
|
|
83
84
|
import { useUiMessages } from "../intl/messages";
|
|
84
85
|
import { ProgressRing } from "../surfaces/ProgressRing";
|
|
85
86
|
import { ChatContextUsage as ContextUsage } from "./ChatPrimitives";
|
|
86
|
-
import { chatCommandKey, conversationEnterAction, executeChatAction, nextChatCommandIndex, reportChatFailure, runChatSubmission } from "./chat-behavior";
|
|
87
|
+
import { chatCommandKey, chatSuggestionKeyAction, conversationEnterAction, executeChatAction, nextChatCommandIndex, reportChatFailure, runChatSubmission } from "./chat-behavior";
|
|
87
88
|
import { useChatMessages } from "./chat-messages";
|
|
88
89
|
import { chatCommandListModel, parseChatCommandQuery } from "./command-search";
|
|
89
90
|
import { chatCommandQuery, chatMentionSegments, chatPeopleQuery, reconcileChatMentions } from "./composer-document";
|
|
@@ -116,6 +117,14 @@ const composerUndoBudgetChars = 1_000_000;
|
|
|
116
117
|
|
|
117
118
|
/** Suggests people for `@`; the composer inserts the chosen one as a mention named "@Name". */
|
|
118
119
|
|
|
120
|
+
/**
|
|
121
|
+
* A suggested next message. It stands in the empty field instead of the placeholder, wraps and grows the field like
|
|
122
|
+
* typed text, and ends in a hint: "Tab accept" with a keyboard, an Accept button on touch-only devices. Tab or the hint
|
|
123
|
+
* puts the text into the field as an edit that undo takes back; nothing is sent. Typing replaces it, and an empty field
|
|
124
|
+
* shows it again. Escape dismisses it, and so does sending. The application owns where it comes from and drops it when
|
|
125
|
+
* a new response starts.
|
|
126
|
+
*/
|
|
127
|
+
|
|
119
128
|
/** The row stays short: what a chat message needs. Other Markdown, typed by hand, keeps working. */
|
|
120
129
|
const formatTools = [{
|
|
121
130
|
id: "bold",
|
|
@@ -237,6 +246,7 @@ export function ChatComposer(props) {
|
|
|
237
246
|
let textareaRef;
|
|
238
247
|
let fileInputRef;
|
|
239
248
|
let measureRef;
|
|
249
|
+
let suggestionRef;
|
|
240
250
|
let microphoneRef;
|
|
241
251
|
let sawRunning = props.state === "running";
|
|
242
252
|
const conversation = () => props.variant === "conversation";
|
|
@@ -938,6 +948,66 @@ export function ChatComposer(props) {
|
|
|
938
948
|
const blocked = () => busy() || submitting();
|
|
939
949
|
/** The conversation field stays editable while a message is sent, so it keeps the focus and a phone its keyboard. */
|
|
940
950
|
const editBlocked = () => conversation() ? busy() : blocked();
|
|
951
|
+
/** The suggestion Escape or a sent message set aside; a different one shows again. */
|
|
952
|
+
const [setAsideSuggestion, setSetAsideSuggestion] = createSignal();
|
|
953
|
+
/** One line of text: a suggestion is a short next message, read in full. */
|
|
954
|
+
const suggestionText = () => props.suggestion?.text.replace(/\s+/g, " ").trim();
|
|
955
|
+
/** The suggested text standing in the field: only in an empty field that takes text now. */
|
|
956
|
+
const shownSuggestion = createMemo(() => {
|
|
957
|
+
const text = suggestionText();
|
|
958
|
+
if (!text || props.value || text === setAsideSuggestion()) return undefined;
|
|
959
|
+
if (editBlocked() || openingRow() !== undefined || dictation() === "listening" || dictation() === "refining") return undefined;
|
|
960
|
+
return text;
|
|
961
|
+
});
|
|
962
|
+
const suggestionDescriptionId = `${commandListId}-suggestion`;
|
|
963
|
+
// Known after mount, so the server and the first client render describe it alike.
|
|
964
|
+
const [touchOnly, setTouchOnly] = createSignal(false);
|
|
965
|
+
onMount(() => setTouchOnly(isTouchOnly()));
|
|
966
|
+
const suggestionDescription = text => touchOnly() ? chatMessages().suggestionAnnouncementTouch({
|
|
967
|
+
text
|
|
968
|
+
}) : chatMessages().suggestionAnnouncement({
|
|
969
|
+
text
|
|
970
|
+
});
|
|
971
|
+
/** Once per suggestion, when it stands in the focused field. */
|
|
972
|
+
let announcedSuggestion;
|
|
973
|
+
// A suggestion that went away, or another draft, starts over: the same text may be offered and heard again.
|
|
974
|
+
createEffect(() => {
|
|
975
|
+
if (props.suggestion) return;
|
|
976
|
+
setSetAsideSuggestion(undefined);
|
|
977
|
+
announcedSuggestion = undefined;
|
|
978
|
+
});
|
|
979
|
+
createEffect(on(() => props.draftKey, () => {
|
|
980
|
+
setSetAsideSuggestion(undefined);
|
|
981
|
+
announcedSuggestion = undefined;
|
|
982
|
+
}, {
|
|
983
|
+
defer: true
|
|
984
|
+
}));
|
|
985
|
+
const announceSuggestion = () => {
|
|
986
|
+
const text = shownSuggestion();
|
|
987
|
+
if (!text || text === announcedSuggestion || !textareaRef || textareaRef.ownerDocument.activeElement !== textareaRef) return;
|
|
988
|
+
announcedSuggestion = text;
|
|
989
|
+
setSuggestionAnnouncement({
|
|
990
|
+
text: suggestionDescription(text)
|
|
991
|
+
});
|
|
992
|
+
};
|
|
993
|
+
createEffect(() => {
|
|
994
|
+
if (shownSuggestion()) announceSuggestion();
|
|
995
|
+
});
|
|
996
|
+
/** Puts the text into the field as typing would, so undo takes it back; nothing is sent. */
|
|
997
|
+
const acceptSuggestion = () => {
|
|
998
|
+
const suggestion = props.suggestion;
|
|
999
|
+
const text = shownSuggestion();
|
|
1000
|
+
if (!suggestion || !text || !textareaRef) return;
|
|
1001
|
+
replaceTextareaRange(textareaRef, 0, textareaRef.value.length, text);
|
|
1002
|
+
suggestion.onAccept();
|
|
1003
|
+
};
|
|
1004
|
+
const dismissSuggestion = () => {
|
|
1005
|
+
const suggestion = props.suggestion;
|
|
1006
|
+
const text = shownSuggestion();
|
|
1007
|
+
if (!suggestion || !text) return;
|
|
1008
|
+
setSetAsideSuggestion(text);
|
|
1009
|
+
suggestion.onDismiss();
|
|
1010
|
+
};
|
|
941
1011
|
// Dictation belongs to one draft in one editable field: another draft, a field that turns read-only or a host that
|
|
942
1012
|
// drops the source ends it; the words so far stay.
|
|
943
1013
|
// Memos compare values, so typing and arriving words never end it.
|
|
@@ -991,18 +1061,27 @@ export function ChatComposer(props) {
|
|
|
991
1061
|
}
|
|
992
1062
|
return items;
|
|
993
1063
|
};
|
|
1064
|
+
|
|
1065
|
+
/** The height a suggestion gave the field; typing over it keeps that height until the field is empty again. */
|
|
1066
|
+
let suggestionHeight = 0;
|
|
994
1067
|
const autoResize = () => {
|
|
995
1068
|
if (!textareaRef) return;
|
|
1069
|
+
let height;
|
|
996
1070
|
if (conversation()) {
|
|
997
1071
|
// A hidden copy measures the text. Collapsing the field itself would shrink the composer for a frame, and
|
|
998
1072
|
// WebKit then clamps the scroll position of the conversation above it. CSS caps the height.
|
|
999
1073
|
if (!measureRef) return;
|
|
1000
1074
|
measureRef.value = textareaRef.value;
|
|
1001
|
-
|
|
1002
|
-
|
|
1075
|
+
height = measureRef.scrollHeight;
|
|
1076
|
+
} else {
|
|
1077
|
+
textareaRef.style.height = "auto";
|
|
1078
|
+
height = textareaRef.scrollHeight;
|
|
1003
1079
|
}
|
|
1004
|
-
|
|
1005
|
-
|
|
1080
|
+
// A suggestion grows the field like text. The first typed character or accepting it does not shrink the field;
|
|
1081
|
+
// only an empty field without one, after sending, clearing or Escape, lets it return to its own height.
|
|
1082
|
+
if (suggestionRef && shownSuggestion()) suggestionHeight = suggestionRef.offsetHeight;else if (!textareaRef.value) suggestionHeight = 0;
|
|
1083
|
+
height = Math.max(height, suggestionHeight);
|
|
1084
|
+
textareaRef.style.height = `${conversation() ? height : Math.min(height, composerMaxInputHeight)}px`;
|
|
1006
1085
|
};
|
|
1007
1086
|
const focus = () => textareaRef?.focus();
|
|
1008
1087
|
onMount(() => {
|
|
@@ -1038,6 +1117,7 @@ export function ChatComposer(props) {
|
|
|
1038
1117
|
});
|
|
1039
1118
|
createEffect(() => {
|
|
1040
1119
|
props.value;
|
|
1120
|
+
shownSuggestion();
|
|
1041
1121
|
queueMicrotask(autoResize);
|
|
1042
1122
|
});
|
|
1043
1123
|
createEffect(() => {
|
|
@@ -1168,6 +1248,8 @@ export function ChatComposer(props) {
|
|
|
1168
1248
|
};
|
|
1169
1249
|
await runChatSubmission({
|
|
1170
1250
|
clear: () => {
|
|
1251
|
+
// A sent message answers the moment the suggestion belonged to.
|
|
1252
|
+
setSetAsideSuggestion(suggestionText());
|
|
1171
1253
|
props.onValueChange("");
|
|
1172
1254
|
props.onMentionsChange?.([]);
|
|
1173
1255
|
if (intent !== "steer") setAttachments([]);
|
|
@@ -1593,6 +1675,17 @@ export function ChatComposer(props) {
|
|
|
1593
1675
|
restoreHistory(event.shiftKey ? 1 : -1);
|
|
1594
1676
|
return;
|
|
1595
1677
|
}
|
|
1678
|
+
if (shownSuggestion()) {
|
|
1679
|
+
const action = chatSuggestionKeyAction(event, {
|
|
1680
|
+
composing: composing(),
|
|
1681
|
+
listOpen: suggestionsOpen()
|
|
1682
|
+
});
|
|
1683
|
+
if (action) {
|
|
1684
|
+
event.preventDefault();
|
|
1685
|
+
if (action === "accept") acceptSuggestion();else dismissSuggestion();
|
|
1686
|
+
return;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1596
1689
|
if (emojiOpen() || peopleOpen()) {
|
|
1597
1690
|
const count = emojiOpen() ? emojiMatches().length : peopleMatches().length;
|
|
1598
1691
|
if (event.key === "ArrowUp" || event.key === "ArrowDown") {
|
|
@@ -2052,7 +2145,7 @@ export function ChatComposer(props) {
|
|
|
2052
2145
|
});
|
|
2053
2146
|
}
|
|
2054
2147
|
});
|
|
2055
|
-
const field = () => _$ssr(_tmpl$1, _$ssrAttribute("aria-label", _$escape(chatMessages().messageInput, true), false), _$escape(_$createComponent(Show, {
|
|
2148
|
+
const field = () => _$ssr(_tmpl$1, _$ssrAttribute("aria-label", _$escape(chatMessages().messageInput, true), false) + _$ssrAttribute("data-suggestion", shownSuggestion() ? "" : _$escape(undefined, true), false), _$escape(_$createComponent(Show, {
|
|
2056
2149
|
get when() {
|
|
2057
2150
|
return mentions().length > 0 || dictationView();
|
|
2058
2151
|
},
|
|
@@ -2064,7 +2157,14 @@ export function ChatComposer(props) {
|
|
|
2064
2157
|
children: part => part.mark ? _$ssr(_tmpl$10) : _$ssr(_tmpl$11, `${Boolean(part.mention) ? "k2b-chat-composer__mention" : ""} ${Boolean(part.fresh) ? "k2b-dictation-fresh" : ""}`, _$escape(part.text))
|
|
2065
2158
|
})));
|
|
2066
2159
|
}
|
|
2067
|
-
})), mentions().length > 0 || Boolean(dictationView()) ? "k2b-chat-composer__textarea--highlighted" : "", _$ssrAttribute("value", _$escape(props.value, true), false), _$ssrAttribute("disabled", editBlocked() && openingRow() === undefined, true), _$ssrAttribute("readonly", openingRow() !== undefined, true) + _$ssrAttribute("enterkeyhint", conversation() ? "enter" : _$escape(undefined, true), false) + _$ssrAttribute("placeholder", _$escape(props.placeholder ?? (running() ? chatMessages().addGuidance : conversation() ? chatMessages().writeConversationMessage : chatMessages().writeMessage), true), false) + _$ssrAttribute("aria-label", _$escape(props.inputLabel ?? messages().message, true), false) + _$ssrAttribute("role", fieldOwnsList() ? "combobox" : _$escape(undefined, true), false) + _$ssrAttribute("aria-autocomplete", fieldOwnsList() ? "list" : _$escape(undefined, true), false) + _$ssrAttribute("aria-controls", fieldOwnsList() ? _$escape(commandListId, true) : _$escape(undefined, true), false) + _$ssrAttribute("aria-expanded", fieldOwnsList() ? "true" : _$escape(undefined, true), false) + _$ssrAttribute("aria-activedescendant", !fieldOwnsList() ? _$escape(undefined, true) : emojiOpen() || peopleOpen() ? `${_$escape(commandListId, true)}-${_$escape(selectedCommandIndex(), true)}` : selectedCommand() ? _$escape(commandOptionId(selectedCommand()), true) : _$escape(undefined, true), false), _$escape(_$createComponent(Show, {
|
|
2160
|
+
})), mentions().length > 0 || Boolean(dictationView()) ? "k2b-chat-composer__textarea--highlighted" : "", _$ssrAttribute("value", _$escape(props.value, true), false), _$ssrAttribute("disabled", editBlocked() && openingRow() === undefined, true), _$ssrAttribute("readonly", openingRow() !== undefined, true) + _$ssrAttribute("enterkeyhint", conversation() ? "enter" : _$escape(undefined, true), false) + _$ssrAttribute("placeholder", shownSuggestion() ? "" : _$escape(props.placeholder ?? (running() ? chatMessages().addGuidance : conversation() ? chatMessages().writeConversationMessage : chatMessages().writeMessage), true), false) + _$ssrAttribute("aria-label", _$escape(props.inputLabel ?? messages().message, true), false) + _$ssrAttribute("aria-describedby", shownSuggestion() ? _$escape(suggestionDescriptionId, true) : _$escape(undefined, true), false) + _$ssrAttribute("role", fieldOwnsList() ? "combobox" : _$escape(undefined, true), false) + _$ssrAttribute("aria-autocomplete", fieldOwnsList() ? "list" : _$escape(undefined, true), false) + _$ssrAttribute("aria-controls", fieldOwnsList() ? _$escape(commandListId, true) : _$escape(undefined, true), false) + _$ssrAttribute("aria-expanded", fieldOwnsList() ? "true" : _$escape(undefined, true), false) + _$ssrAttribute("aria-activedescendant", !fieldOwnsList() ? _$escape(undefined, true) : emojiOpen() || peopleOpen() ? `${_$escape(commandListId, true)}-${_$escape(selectedCommandIndex(), true)}` : selectedCommand() ? _$escape(commandOptionId(selectedCommand()), true) : _$escape(undefined, true), false), _$escape(_$createComponent(Show, {
|
|
2161
|
+
get when() {
|
|
2162
|
+
return shownSuggestion();
|
|
2163
|
+
},
|
|
2164
|
+
children: text => _$ssr(_tmpl$12, _$escape(text()), _$ssrAttribute("id", _$escape(suggestionDescriptionId, true), false), _$escape(suggestionDescription(text())), _$escape(chatMessages().suggestionKeyHint), _$ssrAttribute("aria-label", _$escape(chatMessages().suggestionAcceptLabel({
|
|
2165
|
+
text: text()
|
|
2166
|
+
}), true), false), _$escape(chatMessages().suggestionAccept))
|
|
2167
|
+
})), _$escape(_$createComponent(Show, {
|
|
2068
2168
|
get when() {
|
|
2069
2169
|
return conversation();
|
|
2070
2170
|
},
|
|
@@ -2108,14 +2208,14 @@ export function ChatComposer(props) {
|
|
|
2108
2208
|
const title = () => command().label ?? command().name;
|
|
2109
2209
|
const opening = () => openingRow() === key;
|
|
2110
2210
|
const failure = () => openFailures()[key];
|
|
2111
|
-
return _$ssr(_tmpl$
|
|
2211
|
+
return _$ssr(_tmpl$15, _$ssrAttribute("id", _$escape(commandOptionId(command()), true), false), _$ssrAttribute("aria-selected", _$escape(selectedCommandKey(), true) === _$escape(key, true), false) + _$ssrAttribute("aria-disabled", _$escape(Boolean(command().disabled || command().reason), true), false) + _$ssrAttribute("aria-busy", opening() ? "true" : _$escape(undefined, true), false) + _$ssrAttribute("aria-describedby", command().reason ? `${_$escape(commandOptionId(command()), true)}-reason` : _$escape(undefined, true), false) + _$ssrAttribute("data-reason", command().reason ? "true" : _$escape(undefined, true), false) + _$ssrAttribute("data-active", selectedCommandKey() === key ? "true" : _$escape(undefined, true), false) + _$ssrAttribute("data-command-key", _$escape(key, true), false), _$ssrAttribute("class", _$escape(command().icon ?? "ti ti-slash", true), false), _$escape(_$createComponent(Show, {
|
|
2112
2212
|
get when() {
|
|
2113
2213
|
return highlight();
|
|
2114
2214
|
},
|
|
2115
2215
|
get fallback() {
|
|
2116
2216
|
return title();
|
|
2117
2217
|
},
|
|
2118
|
-
children: range => [title().slice(0, range()[0]), _$ssr(_tmpl$
|
|
2218
|
+
children: range => [title().slice(0, range()[0]), _$ssr(_tmpl$16, _$escape(title().slice(range()[0], range()[1]))), title().slice(range()[1])]
|
|
2119
2219
|
})), _$escape(_$createComponent(Show, {
|
|
2120
2220
|
get when() {
|
|
2121
2221
|
return _$memo(() => !!command().open)() && !command().reason;
|
|
@@ -2126,42 +2226,42 @@ export function ChatComposer(props) {
|
|
|
2126
2226
|
return command().reason ?? command().description;
|
|
2127
2227
|
},
|
|
2128
2228
|
get children() {
|
|
2129
|
-
return _$ssr(_tmpl$
|
|
2229
|
+
return _$ssr(_tmpl$17, _$ssrAttribute("id", command().reason ? `${_$escape(commandOptionId(command()), true)}-reason` : _$escape(undefined, true), false), _$escape(command().reason ?? command().description));
|
|
2130
2230
|
}
|
|
2131
2231
|
});
|
|
2132
2232
|
},
|
|
2133
2233
|
get children() {
|
|
2134
|
-
return _$ssr(_tmpl$
|
|
2234
|
+
return _$ssr(_tmpl$13, _$ssrAttribute("data-state", opening() ? "busy" : failure() ? "failed" : _$escape(undefined, true), false), _$ssrAttribute("aria-hidden", opening() ? "true" : _$escape(undefined, true), false), _$escape(failure() ?? command().description), _$ssrAttribute("aria-hidden", opening() ? _$escape(undefined, true) : "true", false), _$escape(command().busyLabel ?? chatMessages().commandOpening));
|
|
2135
2235
|
}
|
|
2136
2236
|
})), _$escape(_$createComponent(Show, {
|
|
2137
2237
|
get when() {
|
|
2138
2238
|
return command().selected;
|
|
2139
2239
|
},
|
|
2140
2240
|
get children() {
|
|
2141
|
-
return _$ssr(_tmpl$
|
|
2241
|
+
return _$ssr(_tmpl$14, _$escape(chatMessages().commandSelected));
|
|
2142
2242
|
}
|
|
2143
2243
|
})));
|
|
2144
2244
|
};
|
|
2145
|
-
const replyQuote = reply => [_$ssr(_tmpl$
|
|
2146
|
-
return _$ssr(_tmpl$
|
|
2245
|
+
const replyQuote = reply => [_$ssr(_tmpl$18, _$escape(chatMessages().replyingTo), _$escape(reply.author)), _$ssr(_tmpl$19, _$escape(reply.text))];
|
|
2246
|
+
return _$ssr(_tmpl$32, _$escape(_$createComponent(Show, {
|
|
2147
2247
|
get when() {
|
|
2148
2248
|
return suggestionsOpen() || hasAccessory();
|
|
2149
2249
|
},
|
|
2150
2250
|
get children() {
|
|
2151
|
-
return _$ssr(_tmpl$
|
|
2251
|
+
return _$ssr(_tmpl$26, _$ssrAttribute("data-overlay", hasAccessory() ? _$escape(undefined, true) : "true", false), _$ssrStyleProperty("visibility:", suggestionsOpen() ? "hidden" : _$escape(undefined, true)), _$ssrAttribute("inert", suggestionsOpen(), true), _$escape(accessory()), _$escape(_$createComponent(Show, {
|
|
2152
2252
|
get when() {
|
|
2153
2253
|
return emojiOpen();
|
|
2154
2254
|
},
|
|
2155
2255
|
get children() {
|
|
2156
|
-
return _$ssr(_tmpl$
|
|
2256
|
+
return _$ssr(_tmpl$20, _$ssrAttribute("id", _$escape(commandListId, true), false), _$ssrAttribute("aria-label", _$escape(chatMessages().emojiSuggestions, true), false), _$escape(_$createComponent(For, {
|
|
2157
2257
|
get each() {
|
|
2158
2258
|
return emojiMatches();
|
|
2159
2259
|
},
|
|
2160
|
-
children: (entry, index) => _$ssr(_tmpl$
|
|
2260
|
+
children: (entry, index) => _$ssr(_tmpl$33, `${_$escape(commandListId, true)}-${_$escape(index(), true)}`, _$ssrAttribute("aria-selected", _$escape(index(), true) === _$escape(selectedCommandIndex(), true), false) + _$ssrAttribute("aria-label", _$escape(emojiName(entry, locale()), true), false) + _$ssrAttribute("data-active", index() === selectedCommandIndex() ? "true" : _$escape(undefined, true), false), _$escape(emojiInTone(entry, props.emoji?.skinTone ?? 0)), _$escape(emojiName(entry, locale())), _$escape(_$createComponent(Show, {
|
|
2161
2261
|
get when() {
|
|
2162
2262
|
return entry.shortcodes[0];
|
|
2163
2263
|
},
|
|
2164
|
-
children: code => _$ssr(_tmpl$
|
|
2264
|
+
children: code => _$ssr(_tmpl$34, _$escape(code()))
|
|
2165
2265
|
})))
|
|
2166
2266
|
})));
|
|
2167
2267
|
}
|
|
@@ -2170,16 +2270,16 @@ export function ChatComposer(props) {
|
|
|
2170
2270
|
return peopleOpen();
|
|
2171
2271
|
},
|
|
2172
2272
|
get children() {
|
|
2173
|
-
return _$ssr(_tmpl$
|
|
2273
|
+
return _$ssr(_tmpl$20, _$ssrAttribute("id", _$escape(commandListId, true), false), _$ssrAttribute("aria-label", _$escape(chatMessages().peopleSuggestions, true), false), _$escape(_$createComponent(For, {
|
|
2174
2274
|
get each() {
|
|
2175
2275
|
return peopleMatches();
|
|
2176
2276
|
},
|
|
2177
|
-
children: (person, index) => _$ssr(_tmpl$
|
|
2277
|
+
children: (person, index) => _$ssr(_tmpl$36, `${_$escape(commandListId, true)}-${_$escape(index(), true)}`, _$ssrAttribute("aria-selected", _$escape(index(), true) === _$escape(selectedCommandIndex(), true), false) + _$ssrAttribute("data-active", index() === selectedCommandIndex() ? "true" : _$escape(undefined, true), false), _$ssrAttribute("class", person.agent ? "ti ti-robot" : "ti ti-user", false), _$escape(person.name), _$escape(_$createComponent(Show, {
|
|
2178
2278
|
get when() {
|
|
2179
2279
|
return person.agent;
|
|
2180
2280
|
},
|
|
2181
2281
|
get children() {
|
|
2182
|
-
return _$ssr(_tmpl$
|
|
2282
|
+
return _$ssr(_tmpl$35, _$escape(chatMessages().agentLabel));
|
|
2183
2283
|
}
|
|
2184
2284
|
})))
|
|
2185
2285
|
})));
|
|
@@ -2189,12 +2289,12 @@ export function ChatComposer(props) {
|
|
|
2189
2289
|
return commandsOpen();
|
|
2190
2290
|
},
|
|
2191
2291
|
get children() {
|
|
2192
|
-
return _$ssr(_tmpl$
|
|
2292
|
+
return _$ssr(_tmpl$25, _$ssrAttribute("data-search", addSearch() ? "" : _$escape(undefined, true), false), _$escape(_$createComponent(Show, {
|
|
2193
2293
|
get when() {
|
|
2194
2294
|
return addSearch();
|
|
2195
2295
|
},
|
|
2196
2296
|
get children() {
|
|
2197
|
-
return _$ssr(_tmpl$
|
|
2297
|
+
return _$ssr(_tmpl$21, _$ssrAttribute("value", _$escape(addQuery(), true), false) + _$ssrAttribute("placeholder", _$escape(chatMessages().commandSearch, true), false) + _$ssrAttribute("aria-label", _$escape(chatMessages().commandSearchLabel, true), false), _$ssrAttribute("aria-controls", _$escape(commandListId, true), false), _$ssrAttribute("aria-activedescendant", selectedCommand() ? _$escape(commandOptionId(selectedCommand()), true) : _$escape(undefined, true), false), _$ssrAttribute("readonly", openingRow() !== undefined, true));
|
|
2198
2298
|
}
|
|
2199
2299
|
})), _$ssrAttribute("id", _$escape(commandListId, true), false), _$ssrAttribute("aria-label", _$escape(chatMessages().commands, true), false) + _$ssrAttribute("aria-busy", searching() ? "true" : _$escape(undefined, true), false), _$escape(_$createComponent(For, {
|
|
2200
2300
|
get each() {
|
|
@@ -2216,12 +2316,12 @@ export function ChatComposer(props) {
|
|
|
2216
2316
|
});
|
|
2217
2317
|
},
|
|
2218
2318
|
get children() {
|
|
2219
|
-
return _$ssr(_tmpl$
|
|
2319
|
+
return _$ssr(_tmpl$38, _$ssrAttribute("aria-labelledby", _$escape(headingId(), true), false), _$ssrAttribute("id", _$escape(headingId(), true), false), _$escape(group()?.scopeTitle ?? group()?.section?.label), _$escape(_$createComponent(Show, {
|
|
2220
2320
|
get when() {
|
|
2221
2321
|
return group()?.loading;
|
|
2222
2322
|
},
|
|
2223
2323
|
get children() {
|
|
2224
|
-
return _$ssr(_tmpl$
|
|
2324
|
+
return _$ssr(_tmpl$37);
|
|
2225
2325
|
}
|
|
2226
2326
|
})), _$escape(_$createComponent(For, {
|
|
2227
2327
|
get each() {
|
|
@@ -2234,7 +2334,7 @@ export function ChatComposer(props) {
|
|
|
2234
2334
|
length: Math.max(group()?.placeholder ? 1 : 0, group()?.pendingRows ?? 0)
|
|
2235
2335
|
});
|
|
2236
2336
|
},
|
|
2237
|
-
children: () => _$ssr(_tmpl$
|
|
2337
|
+
children: () => _$ssr(_tmpl$39)
|
|
2238
2338
|
})));
|
|
2239
2339
|
}
|
|
2240
2340
|
});
|
|
@@ -2244,21 +2344,21 @@ export function ChatComposer(props) {
|
|
|
2244
2344
|
return _$memo(() => !!(searching() && foundCommandCount() === 0))() && !commandModel().groups.some(group => group.section || group.scopeTitle);
|
|
2245
2345
|
},
|
|
2246
2346
|
get children() {
|
|
2247
|
-
return _$ssr(_tmpl$
|
|
2347
|
+
return _$ssr(_tmpl$22, _$escape(messages().loading));
|
|
2248
2348
|
}
|
|
2249
2349
|
})), _$escape(_$createComponent(Show, {
|
|
2250
2350
|
get when() {
|
|
2251
2351
|
return searchError();
|
|
2252
2352
|
},
|
|
2253
2353
|
get children() {
|
|
2254
|
-
return _$ssr(_tmpl$
|
|
2354
|
+
return _$ssr(_tmpl$23, _$escape(messages().error));
|
|
2255
2355
|
}
|
|
2256
2356
|
})), _$escape(_$createComponent(Show, {
|
|
2257
2357
|
get when() {
|
|
2258
2358
|
return _$memo(() => !!(!searching() && !searchError() && foundCommandCount() === 0))() && !commandModel().groups.some(group => group.pendingRows);
|
|
2259
2359
|
},
|
|
2260
2360
|
get children() {
|
|
2261
|
-
return _$ssr(_tmpl$
|
|
2361
|
+
return _$ssr(_tmpl$24, !parsedCommandQuery().query.trim() ? _$escape(messages().noResults) : _$escape(chatMessages().commandsNothingFound({
|
|
2262
2362
|
query: parsedCommandQuery().query.trim()
|
|
2263
2363
|
})));
|
|
2264
2364
|
}
|
|
@@ -2277,18 +2377,18 @@ export function ChatComposer(props) {
|
|
|
2277
2377
|
return showHint();
|
|
2278
2378
|
},
|
|
2279
2379
|
get children() {
|
|
2280
|
-
return _$ssr(_tmpl$
|
|
2380
|
+
return _$ssr(_tmpl$27, _$escape(_$createComponent(Show, {
|
|
2281
2381
|
get when() {
|
|
2282
2382
|
return dictationStatus();
|
|
2283
2383
|
},
|
|
2284
2384
|
get fallback() {
|
|
2285
|
-
return _$ssr(_tmpl$
|
|
2385
|
+
return _$ssr(_tmpl$40, _$escape(hint()));
|
|
2286
2386
|
},
|
|
2287
|
-
children: status => [_$ssr(_tmpl$
|
|
2387
|
+
children: status => [_$ssr(_tmpl$41, _$ssrAttribute("data-state", _$escape(dictation() ?? undefined, true), false), _$ssrAttribute("class", _$escape(status().icon, true), false), _$escape(status().text)), _$createComponent(Show, {
|
|
2288
2388
|
get when() {
|
|
2289
2389
|
return _$memo(() => dictation() === "refined")() ? props.microphone?.onRestoreOriginal : undefined;
|
|
2290
2390
|
},
|
|
2291
|
-
children: restore => _$ssr(_tmpl$
|
|
2391
|
+
children: restore => _$ssr(_tmpl$42, _$ssrAttribute("disabled", microphoneDisabled(), true), _$escape(chatMessages().restoreOriginal))
|
|
2292
2392
|
})]
|
|
2293
2393
|
})));
|
|
2294
2394
|
}
|
|
@@ -2296,30 +2396,30 @@ export function ChatComposer(props) {
|
|
|
2296
2396
|
get when() {
|
|
2297
2397
|
return props.reply;
|
|
2298
2398
|
},
|
|
2299
|
-
children: reply => _$ssr(_tmpl$
|
|
2399
|
+
children: reply => _$ssr(_tmpl$43, _$escape(_$createComponent(Show, {
|
|
2300
2400
|
get when() {
|
|
2301
2401
|
return reply().onSelect;
|
|
2302
2402
|
},
|
|
2303
2403
|
get fallback() {
|
|
2304
|
-
return _$ssr(_tmpl$
|
|
2404
|
+
return _$ssr(_tmpl$44, _$escape(replyQuote(reply())));
|
|
2305
2405
|
},
|
|
2306
|
-
children: select => _$ssr(_tmpl$
|
|
2406
|
+
children: select => _$ssr(_tmpl$45, _$escape(replyQuote(reply())))
|
|
2307
2407
|
})), _$ssrAttribute("aria-label", _$escape(chatMessages().cancelReply, true), false) + _$ssrAttribute("title", _$escape(chatMessages().cancelReply, true), false))
|
|
2308
2408
|
})), _$escape(_$createComponent(Show, {
|
|
2309
2409
|
get when() {
|
|
2310
2410
|
return attachments().length > 0;
|
|
2311
2411
|
},
|
|
2312
2412
|
get children() {
|
|
2313
|
-
return _$ssr(_tmpl$
|
|
2413
|
+
return _$ssr(_tmpl$28, _$ssrAttribute("aria-label", _$escape(chatMessages().attachments, true), false), _$escape(_$createComponent(For, {
|
|
2314
2414
|
get each() {
|
|
2315
2415
|
return attachments();
|
|
2316
2416
|
},
|
|
2317
|
-
children: attachment => _$ssr(_tmpl$
|
|
2417
|
+
children: attachment => _$ssr(_tmpl$48, `k2b-chat-composer__attachment-content ${Boolean(attachment.action) || attachment.progress !== undefined ? "k2b-chat-composer__attachment-content--action" : ""}`, _$escape(_$createComponent(Show, {
|
|
2318
2418
|
get when() {
|
|
2319
2419
|
return attachment.href;
|
|
2320
2420
|
},
|
|
2321
2421
|
get fallback() {
|
|
2322
|
-
return _$ssr(_tmpl$
|
|
2422
|
+
return _$ssr(_tmpl$50, _$escape(_$createComponent(Show, {
|
|
2323
2423
|
get when() {
|
|
2324
2424
|
return _$memo(() => attachment.kind === "image")() && attachment.previewUrl;
|
|
2325
2425
|
},
|
|
@@ -2327,11 +2427,11 @@ export function ChatComposer(props) {
|
|
|
2327
2427
|
return _$ssr(_tmpl$3, _$ssrAttribute("class", _$escape(attachmentIcon(attachment), true), false));
|
|
2328
2428
|
},
|
|
2329
2429
|
get children() {
|
|
2330
|
-
return _$ssr(_tmpl$
|
|
2430
|
+
return _$ssr(_tmpl$49, _$ssrAttribute("src", _$escape(attachment.previewUrl, true), false) + _$ssrAttribute("alt", _$escape(attachment.alt ?? "", true), false));
|
|
2331
2431
|
}
|
|
2332
2432
|
})), _$escape(renderAttachmentCopy(attachment)));
|
|
2333
2433
|
},
|
|
2334
|
-
children: href => _$ssr(_tmpl$
|
|
2434
|
+
children: href => _$ssr(_tmpl$51, _$ssrAttribute("href", _$escape(href(), true), false), _$ssrAttribute("aria-label", _$escape(chatMessages().openInNewTab({
|
|
2335
2435
|
name: attachment.name
|
|
2336
2436
|
}), true), false), _$escape(_$createComponent(Show, {
|
|
2337
2437
|
get when() {
|
|
@@ -2341,7 +2441,7 @@ export function ChatComposer(props) {
|
|
|
2341
2441
|
return _$ssr(_tmpl$3, _$ssrAttribute("class", _$escape(attachmentIcon(attachment), true), false));
|
|
2342
2442
|
},
|
|
2343
2443
|
get children() {
|
|
2344
|
-
return _$ssr(_tmpl$
|
|
2444
|
+
return _$ssr(_tmpl$49, _$ssrAttribute("src", _$escape(attachment.previewUrl, true), false) + _$ssrAttribute("alt", _$escape(attachment.alt ?? "", true), false));
|
|
2345
2445
|
}
|
|
2346
2446
|
})), _$escape(renderAttachmentCopy(attachment)))
|
|
2347
2447
|
})), _$escape(_$createComponent(Show, {
|
|
@@ -2349,7 +2449,7 @@ export function ChatComposer(props) {
|
|
|
2349
2449
|
return attachment.progress !== undefined;
|
|
2350
2450
|
},
|
|
2351
2451
|
get children() {
|
|
2352
|
-
return _$ssr(_tmpl$
|
|
2452
|
+
return _$ssr(_tmpl$46, _$escape(_$createComponent(ProgressRing, {
|
|
2353
2453
|
get value() {
|
|
2354
2454
|
return attachment.progress ?? 0;
|
|
2355
2455
|
},
|
|
@@ -2366,7 +2466,7 @@ export function ChatComposer(props) {
|
|
|
2366
2466
|
get when() {
|
|
2367
2467
|
return _$memo(() => attachment.progress === undefined)() && attachment.action;
|
|
2368
2468
|
},
|
|
2369
|
-
children: action => _$ssr(_tmpl$
|
|
2469
|
+
children: action => _$ssr(_tmpl$52, _$ssrAttribute("data-tone", action().variant === "danger" ? "danger" : _$escape(undefined, true), false) + _$ssrAttribute("data-waiting", action().disabled ? "" : _$escape(undefined, true), false), _$ssrAttribute("disabled", blocked() || action().disabled, true), _$escape(_$createComponent(Show, {
|
|
2370
2470
|
get when() {
|
|
2371
2471
|
return action().icon;
|
|
2372
2472
|
},
|
|
@@ -2377,7 +2477,7 @@ export function ChatComposer(props) {
|
|
|
2377
2477
|
return props.onAttachmentsChange;
|
|
2378
2478
|
},
|
|
2379
2479
|
get children() {
|
|
2380
|
-
return _$ssr(_tmpl$
|
|
2480
|
+
return _$ssr(_tmpl$47, _$ssrAttribute("aria-label", _$escape(selectMessages().removeNamed({
|
|
2381
2481
|
name: attachment.name
|
|
2382
2482
|
}), true), false), _$ssrAttribute("disabled", blocked(), true));
|
|
2383
2483
|
}
|
|
@@ -2394,14 +2494,14 @@ export function ChatComposer(props) {
|
|
|
2394
2494
|
return props.error;
|
|
2395
2495
|
},
|
|
2396
2496
|
get children() {
|
|
2397
|
-
return _$ssr(_tmpl$
|
|
2497
|
+
return _$ssr(_tmpl$29, _$escape(props.error));
|
|
2398
2498
|
}
|
|
2399
|
-
}), formatRow(), _$ssr(_tmpl$
|
|
2499
|
+
}), formatRow(), _$ssr(_tmpl$53, _$escape(_$createComponent(Show, {
|
|
2400
2500
|
get when() {
|
|
2401
2501
|
return dictating() || footer();
|
|
2402
2502
|
},
|
|
2403
2503
|
get fallback() {
|
|
2404
|
-
return [_$ssr(_tmpl$
|
|
2504
|
+
return [_$ssr(_tmpl$54, _$escape(props.footerTools), _$escape(_$createComponent(Show, {
|
|
2405
2505
|
get when() {
|
|
2406
2506
|
return addOpensCommands();
|
|
2407
2507
|
},
|
|
@@ -2418,7 +2518,54 @@ export function ChatComposer(props) {
|
|
|
2418
2518
|
get children() {
|
|
2419
2519
|
return addSearchButton();
|
|
2420
2520
|
}
|
|
2421
|
-
})), _$escape(fileInput()), _$escape(
|
|
2521
|
+
})), _$escape(fileInput()), _$escape(_$createComponent(Show, {
|
|
2522
|
+
get when() {
|
|
2523
|
+
return hasContextUsage() || (props.contextSections?.length ?? 0) > 0;
|
|
2524
|
+
},
|
|
2525
|
+
get children() {
|
|
2526
|
+
return _$createComponent(ContextUsage, _$mergeProps(() => props.contextUsage ?? {}, {
|
|
2527
|
+
get context() {
|
|
2528
|
+
return hasContextUsage();
|
|
2529
|
+
},
|
|
2530
|
+
get sections() {
|
|
2531
|
+
return props.contextSections;
|
|
2532
|
+
},
|
|
2533
|
+
get action() {
|
|
2534
|
+
return props.contextPopupAction;
|
|
2535
|
+
},
|
|
2536
|
+
get onActionError() {
|
|
2537
|
+
return props.onError;
|
|
2538
|
+
}
|
|
2539
|
+
}));
|
|
2540
|
+
}
|
|
2541
|
+
})), _$escape(_$createComponent(For, {
|
|
2542
|
+
get each() {
|
|
2543
|
+
return props.contextActions;
|
|
2544
|
+
},
|
|
2545
|
+
children: action => _$createComponent(Tooltip.Trigger, {
|
|
2546
|
+
type: "button",
|
|
2547
|
+
"class": "k2b-chat-composer__icon-action",
|
|
2548
|
+
get ["data-tone"]() {
|
|
2549
|
+
return action.variant === "danger" ? "danger" : undefined;
|
|
2550
|
+
},
|
|
2551
|
+
get disabled() {
|
|
2552
|
+
return action.disabled;
|
|
2553
|
+
},
|
|
2554
|
+
get ["aria-pressed"]() {
|
|
2555
|
+
return action.pressed;
|
|
2556
|
+
},
|
|
2557
|
+
get ["aria-label"]() {
|
|
2558
|
+
return action.label;
|
|
2559
|
+
},
|
|
2560
|
+
get content() {
|
|
2561
|
+
return action.label;
|
|
2562
|
+
},
|
|
2563
|
+
onClick: () => reportChatFailure(() => executeChatAction(action), props.onError),
|
|
2564
|
+
get children() {
|
|
2565
|
+
return _$ssr(_tmpl$3, _$ssrAttribute("class", _$escape(action.icon ?? "ti ti-dots", true), false));
|
|
2566
|
+
}
|
|
2567
|
+
})
|
|
2568
|
+
})), _$escape(formatToggle()), _$escape(emojiButton()), _$escape(_$createComponent(Show, {
|
|
2422
2569
|
get when() {
|
|
2423
2570
|
return (props.models?.length ?? 0) > 0;
|
|
2424
2571
|
},
|
|
@@ -2464,46 +2611,7 @@ export function ChatComposer(props) {
|
|
|
2464
2611
|
}
|
|
2465
2612
|
});
|
|
2466
2613
|
}
|
|
2467
|
-
})), _$escape(props.modelDetails)), _$ssr(_tmpl$
|
|
2468
|
-
get each() {
|
|
2469
|
-
return props.contextActions;
|
|
2470
|
-
},
|
|
2471
|
-
children: action => _$createComponent(Tooltip.Trigger, {
|
|
2472
|
-
type: "button",
|
|
2473
|
-
"class": "k2b-chat-composer__icon-action",
|
|
2474
|
-
get ["data-tone"]() {
|
|
2475
|
-
return action.variant === "danger" ? "danger" : undefined;
|
|
2476
|
-
},
|
|
2477
|
-
get disabled() {
|
|
2478
|
-
return action.disabled;
|
|
2479
|
-
},
|
|
2480
|
-
get ["aria-pressed"]() {
|
|
2481
|
-
return action.pressed;
|
|
2482
|
-
},
|
|
2483
|
-
get ["aria-label"]() {
|
|
2484
|
-
return action.label;
|
|
2485
|
-
},
|
|
2486
|
-
get content() {
|
|
2487
|
-
return action.label;
|
|
2488
|
-
},
|
|
2489
|
-
onClick: () => reportChatFailure(() => executeChatAction(action), props.onError),
|
|
2490
|
-
get children() {
|
|
2491
|
-
return _$ssr(_tmpl$3, _$ssrAttribute("class", _$escape(action.icon ?? "ti ti-dots", true), false));
|
|
2492
|
-
}
|
|
2493
|
-
})
|
|
2494
|
-
})), _$escape(_$createComponent(Show, {
|
|
2495
|
-
get when() {
|
|
2496
|
-
return _$memo(() => !!hasContextUsage())() ? props.contextUsage ?? {} : undefined;
|
|
2497
|
-
},
|
|
2498
|
-
children: usage => _$createComponent(ContextUsage, _$mergeProps(usage, {
|
|
2499
|
-
get action() {
|
|
2500
|
-
return props.contextPopupAction;
|
|
2501
|
-
},
|
|
2502
|
-
get onActionError() {
|
|
2503
|
-
return props.onError;
|
|
2504
|
-
}
|
|
2505
|
-
}))
|
|
2506
|
-
})), _$escape(props.submitTools), _$escape(_$createComponent(Show, {
|
|
2614
|
+
})), _$escape(props.modelDetails)), _$ssr(_tmpl$55, _$escape(props.submitTools), _$escape(_$createComponent(Show, {
|
|
2507
2615
|
get when() {
|
|
2508
2616
|
return props.dictation;
|
|
2509
2617
|
},
|
|
@@ -2539,7 +2647,7 @@ export function ChatComposer(props) {
|
|
|
2539
2647
|
return props.error;
|
|
2540
2648
|
},
|
|
2541
2649
|
get children() {
|
|
2542
|
-
return _$ssr(_tmpl$
|
|
2650
|
+
return _$ssr(_tmpl$29, _$escape(props.error));
|
|
2543
2651
|
}
|
|
2544
2652
|
}), _$createComponent(Show, {
|
|
2545
2653
|
get when() {
|
|
@@ -2549,11 +2657,11 @@ export function ChatComposer(props) {
|
|
|
2549
2657
|
return formatRow();
|
|
2550
2658
|
},
|
|
2551
2659
|
get children() {
|
|
2552
|
-
return _$ssr(_tmpl$
|
|
2660
|
+
return _$ssr(_tmpl$30, _$escape(_$createComponent(DictationBar, {
|
|
2553
2661
|
dictation: liveDictation
|
|
2554
2662
|
})));
|
|
2555
2663
|
}
|
|
2556
|
-
}), _$ssr(_tmpl$
|
|
2664
|
+
}), _$ssr(_tmpl$31, _$escape(attachControl()), _$escape(fileInput()), _$escape(field()), _$escape(formatToggle()), _$escape(emojiButton()), _$escape(_$createComponent(Show, {
|
|
2557
2665
|
get when() {
|
|
2558
2666
|
return props.dictation;
|
|
2559
2667
|
},
|
|
@@ -2590,18 +2698,18 @@ export function ChatComposer(props) {
|
|
|
2590
2698
|
return suggestionAnnouncement();
|
|
2591
2699
|
},
|
|
2592
2700
|
keyed: true,
|
|
2593
|
-
children: announced => _$ssr(_tmpl$
|
|
2701
|
+
children: announced => _$ssr(_tmpl$56, _$escape(announced.text))
|
|
2594
2702
|
})), _$escape(_$createComponent(Show, {
|
|
2595
2703
|
get when() {
|
|
2596
2704
|
return _$memo(() => !!!suggestionsOpen())() && commandStatus();
|
|
2597
2705
|
},
|
|
2598
|
-
children: status => _$ssr(_tmpl$
|
|
2706
|
+
children: status => _$ssr(_tmpl$57, _$ssrAttribute("data-tone", _$escape(status().tone, true), false), _$ssrAttribute("class", status().tone === "busy" ? "ti ti-loader-2 k2b-spin" : status().tone === "done" ? "ti ti-check" : "ti ti-alert-circle", false), _$escape(status().text))
|
|
2599
2707
|
})), _$escape(_$createComponent(Show, {
|
|
2600
2708
|
get when() {
|
|
2601
2709
|
return _$memo(() => !!suggestionsOpen())() && announcement();
|
|
2602
2710
|
},
|
|
2603
2711
|
keyed: true,
|
|
2604
|
-
children: announced => _$ssr(_tmpl$
|
|
2712
|
+
children: announced => _$ssr(_tmpl$58, _$escape(announced.text))
|
|
2605
2713
|
})));
|
|
2606
2714
|
}
|
|
2607
2715
|
//# sourceMappingURL=ChatComposer.js.map
|