@carbon/ai-chat 1.8.0 → 1.9.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/README.md +1 -1
- package/dist/es/aiChatEntry.js +19 -17
- package/dist/es/aiChatEntry.js.map +1 -1
- package/dist/es/chat.ChatAppEntry.js +902 -1141
- package/dist/es/chat.ChatAppEntry.js.map +1 -1
- package/dist/es/chat.LayoutCustomProperties.js +26 -0
- package/dist/es/chat.LayoutCustomProperties.js.map +1 -1
- package/dist/es/chat.languageUtils.js +86 -23
- package/dist/es/chat.languageUtils.js.map +1 -1
- package/dist/es/serverEntry.js +2 -2
- package/dist/es/web-components/cds-aichat-container/index.js +8 -8
- package/dist/es/web-components/cds-aichat-custom-element/index.js +8 -8
- package/dist/es-custom/aiChatEntry.js +19 -17
- package/dist/es-custom/aiChatEntry.js.map +1 -1
- package/dist/es-custom/chat.ChatAppEntry.js +902 -1141
- package/dist/es-custom/chat.ChatAppEntry.js.map +1 -1
- package/dist/es-custom/chat.LayoutCustomProperties.js +26 -0
- package/dist/es-custom/chat.LayoutCustomProperties.js.map +1 -1
- package/dist/es-custom/chat.languageUtils.js +86 -23
- package/dist/es-custom/chat.languageUtils.js.map +1 -1
- package/dist/es-custom/serverEntry.js +2 -2
- package/dist/es-custom/web-components/cds-aichat-container/index.js +8 -8
- package/dist/es-custom/web-components/cds-aichat-custom-element/index.js +8 -8
- package/dist/types/aiChatEntry.d.ts +3 -2
- package/dist/types/{serverEntry-j0I5r7y2.d.ts → serverEntry-CrD9G5Ot.d.ts} +434 -37
- package/dist/types/serverEntry.d.ts +2 -1
- package/package.json +6 -6
- package/telemetry.yml +0 -8
|
@@ -4,8 +4,34 @@ var LayoutCustomProperties;
|
|
|
4
4
|
LayoutCustomProperties["height"] = "height";
|
|
5
5
|
LayoutCustomProperties["max_height"] = "max-height";
|
|
6
6
|
LayoutCustomProperties["width"] = "width";
|
|
7
|
+
LayoutCustomProperties["min_height"] = "min-height";
|
|
8
|
+
LayoutCustomProperties["max_width"] = "max-width";
|
|
7
9
|
LayoutCustomProperties["z_index"] = "z-index";
|
|
10
|
+
LayoutCustomProperties["bottom_position"] = "bottom-position";
|
|
11
|
+
LayoutCustomProperties["right_position"] = "right-position";
|
|
12
|
+
LayoutCustomProperties["top_position"] = "top-position";
|
|
13
|
+
LayoutCustomProperties["left_position"] = "left-position";
|
|
14
|
+
LayoutCustomProperties["launcher_default_size"] = "launcher-default-size";
|
|
15
|
+
LayoutCustomProperties["launcher_position_bottom"] = "launcher-position-bottom";
|
|
16
|
+
LayoutCustomProperties["launcher_position_right"] = "launcher-position-right";
|
|
17
|
+
LayoutCustomProperties["launcher_extended_width"] = "launcher-extended-width";
|
|
8
18
|
LayoutCustomProperties["messages_max_width"] = "messages-max-width";
|
|
19
|
+
LayoutCustomProperties["messages_min_width"] = "messages-min-width";
|
|
20
|
+
LayoutCustomProperties["workspace_min_width"] = "workspace-min-width";
|
|
21
|
+
LayoutCustomProperties["card_max_width"] = "card-max-width";
|
|
22
|
+
LayoutCustomProperties["launcher_color_background"] = "launcher-color-background";
|
|
23
|
+
LayoutCustomProperties["launcher_color_avatar"] = "launcher-color-avatar";
|
|
24
|
+
LayoutCustomProperties["launcher_color_background_hover"] = "launcher-color-background-hover";
|
|
25
|
+
LayoutCustomProperties["launcher_color_background_active"] = "launcher-color-background-active";
|
|
26
|
+
LayoutCustomProperties["launcher_color_focus_border"] = "launcher-color-focus-border";
|
|
27
|
+
LayoutCustomProperties["launcher_mobile_color_text"] = "launcher-mobile-color-text";
|
|
28
|
+
LayoutCustomProperties["launcher_expanded_message_color_text"] = "launcher-expanded-message-color-text";
|
|
29
|
+
LayoutCustomProperties["launcher_expanded_message_color_background"] = "launcher-expanded-message-color-background";
|
|
30
|
+
LayoutCustomProperties["launcher_expanded_message_color_background_hover"] = "launcher-expanded-message-color-background-hover";
|
|
31
|
+
LayoutCustomProperties["launcher_expanded_message_color_background_active"] = "launcher-expanded-message-color-background-active";
|
|
32
|
+
LayoutCustomProperties["launcher_expanded_message_color_focus_border"] = "launcher-expanded-message-color-focus-border";
|
|
33
|
+
LayoutCustomProperties["unread_indicator_color_background"] = "unread-indicator-color-background";
|
|
34
|
+
LayoutCustomProperties["unread_indicator_color_text"] = "unread-indicator-color-text";
|
|
9
35
|
})(LayoutCustomProperties || (LayoutCustomProperties = {}));
|
|
10
36
|
|
|
11
37
|
export { LayoutCustomProperties as L };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.LayoutCustomProperties.js","sources":["../../../../src/types/config/LayoutCustomProperties.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\n/**\n * These variables map to CSS custom properties used in styling the AI chat interface.\n *\n * Keys map to the underlying `--cds-aichat-*` custom properties.\n *\n * You can use any standard CSS as the value.\n *\n * @category Config\n */\nexport enum LayoutCustomProperties {\n /**\n * Float layout only.\n *\n * Minimum height of the chat container.\n *\n * Defaults to `calc(100vh - 4rem)
|
|
1
|
+
{"version":3,"file":"chat.LayoutCustomProperties.js","sources":["../../../../src/types/config/LayoutCustomProperties.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\n/**\n * These variables map to CSS custom properties used in styling the AI chat interface.\n *\n * Keys map to the underlying `--cds-aichat-*` custom properties.\n *\n * You can use any standard CSS as the value.\n *\n * @category Config\n */\nexport enum LayoutCustomProperties {\n /**\n * Float layout only.\n *\n * Minimum height of the chat container.\n *\n * Defaults to `calc(100vh - 4rem)`.\n */\n height = \"height\",\n\n /**\n * Float layout only.\n *\n * Maximum height of the chat container (float layout).\n *\n * Defaults to `640px`.\n */\n max_height = \"max-height\",\n\n /**\n * Float layout only.\n *\n * Width of the chat panel (float layout).\n *\n * Defaults to `min(380px, var(--cds-aichat-max-width))`.\n */\n width = \"width\",\n\n /**\n * Float layout only.\n *\n * Minimum height of the chat container.\n *\n * Defaults to `max(150px, calc(min(256px, 100vh) - var(--cds-aichat-bottom-position)))`.\n */\n min_height = \"min-height\",\n\n /**\n * Float layout only.\n *\n * Maximum width of the chat container (float layout).\n *\n * Defaults to the inherited value of `--cds-aichat-max-width` (not explicitly set).\n */\n max_width = \"max-width\",\n\n /**\n * Float layout only.\n *\n * z-index of the chat overlay or container (float layout).\n *\n * Defaults to `99999`.\n */\n z_index = \"z-index\",\n\n /**\n * Float layout only.\n *\n * Distance from the bottom of the viewport for the floating container.\n *\n * Defaults to `48px`.\n */\n bottom_position = \"bottom-position\",\n\n /**\n * Float layout only.\n *\n * Distance from the right of the viewport for the floating container.\n *\n * Defaults to `32px`.\n */\n right_position = \"right-position\",\n\n /**\n * Float layout only.\n *\n * Distance from the top of the viewport for the floating container.\n *\n * Defaults to `auto`.\n */\n top_position = \"top-position\",\n\n /**\n * Float layout only.\n *\n * Distance from the left of the viewport for the floating container.\n *\n * Defaults to `auto`.\n */\n left_position = \"left-position\",\n\n /**\n * Float layout only.\n *\n * Default launcher button size.\n *\n * Defaults to `56px`.\n */\n launcher_default_size = \"launcher-default-size\",\n\n /**\n * Float layout only.\n *\n * Distance from the bottom of the viewport for the launcher.\n *\n * Defaults to `48px`.\n */\n launcher_position_bottom = \"launcher-position-bottom\",\n\n /**\n * Float layout only.\n *\n * Distance from the right of the viewport for the launcher.\n *\n * Defaults to `32px`.\n */\n launcher_position_right = \"launcher-position-right\",\n\n /**\n * Float layout only.\n *\n * Extended launcher width.\n *\n * Defaults to `280px`.\n */\n launcher_extended_width = \"launcher-extended-width\",\n\n /**\n * Shared token.\n *\n * Maximum width for message content area.\n *\n * Defaults to `672px`.\n */\n messages_max_width = \"messages-max-width\",\n\n /**\n * Shared token.\n *\n * Minimum width for message content area.\n *\n * Defaults to `320px`.\n */\n messages_min_width = \"messages-min-width\",\n\n /**\n * Shared token.\n *\n * Minimum width for workspace panel.\n *\n * Defaults to `480px`.\n */\n workspace_min_width = \"workspace-min-width\",\n\n /*\n /**\n * Shared token.\n *\n * Width of the history / conversation list panel.\n *\n * Defaults to `320px`.\n history_width = \"history-width\",\n */\n\n /**\n * Shared token.\n *\n * Maximum width for card components.\n *\n * Defaults to `424px`.\n */\n card_max_width = \"card-max-width\",\n\n /**\n * Shared token.\n *\n * Launcher button background color.\n */\n launcher_color_background = \"launcher-color-background\",\n\n /**\n * Shared token.\n *\n * Launcher avatar/icon color.\n */\n launcher_color_avatar = \"launcher-color-avatar\",\n\n /**\n * Shared token.\n *\n * Launcher hover state background color.\n */\n launcher_color_background_hover = \"launcher-color-background-hover\",\n\n /**\n * Shared token.\n *\n * Launcher active state background color.\n */\n launcher_color_background_active = \"launcher-color-background-active\",\n\n /**\n * Shared token.\n *\n * Launcher focus border color.\n */\n launcher_color_focus_border = \"launcher-color-focus-border\",\n\n /**\n * Shared token.\n *\n * Launcher text color on mobile.\n */\n launcher_mobile_color_text = \"launcher-mobile-color-text\",\n\n /**\n * Shared token.\n *\n * Expanded launcher message text color.\n */\n launcher_expanded_message_color_text = \"launcher-expanded-message-color-text\",\n\n /**\n * Shared token.\n *\n * Expanded launcher message background color.\n */\n launcher_expanded_message_color_background = \"launcher-expanded-message-color-background\",\n\n /**\n * Shared token.\n *\n * Expanded launcher message hover background color.\n */\n launcher_expanded_message_color_background_hover = \"launcher-expanded-message-color-background-hover\",\n\n /**\n * Shared token.\n *\n * Expanded launcher message active background color.\n */\n launcher_expanded_message_color_background_active = \"launcher-expanded-message-color-background-active\",\n\n /**\n * Shared token.\n *\n * Expanded launcher message focus border color.\n */\n launcher_expanded_message_color_focus_border = \"launcher-expanded-message-color-focus-border\",\n\n /**\n * Shared token.\n *\n * Unread indicator background color.\n */\n unread_indicator_color_background = \"unread-indicator-color-background\",\n\n /**\n * Shared token.\n *\n * Unread indicator text color.\n */\n unread_indicator_color_text = \"unread-indicator-color-text\",\n}\n"],"names":["LayoutCustomProperties"],"mappings":"IAkBYA;;CAAZ,SAAYA;EAQVA,uBAAA,YAAA;EASAA,uBAAA,gBAAA;EASAA,uBAAA,WAAA;EASAA,uBAAA,gBAAA;EASAA,uBAAA,eAAA;EASAA,uBAAA,aAAA;EASAA,uBAAA,qBAAA;EASAA,uBAAA,oBAAA;EASAA,uBAAA,kBAAA;EASAA,uBAAA,mBAAA;EASAA,uBAAA,2BAAA;EASAA,uBAAA,8BAAA;EASAA,uBAAA,6BAAA;EASAA,uBAAA,6BAAA;EASAA,uBAAA,wBAAA;EASAA,uBAAA,wBAAA;EASAA,uBAAA,yBAAA;EAmBAA,uBAAA,oBAAA;EAOAA,uBAAA,+BAAA;EAOAA,uBAAA,2BAAA;EAOAA,uBAAA,qCAAA;EAOAA,uBAAA,sCAAA;EAOAA,uBAAA,iCAAA;EAOAA,uBAAA,gCAAA;EAOAA,uBAAA,0CAAA;EAOAA,uBAAA,gDAAA;EAOAA,uBAAA,sDAAA;EAOAA,uBAAA,uDAAA;EAOAA,uBAAA,kDAAA;EAOAA,uBAAA,uCAAA;EAOAA,uBAAA,iCAAA;AACD,EAvQD,CAAYA,2BAAAA,yBAAsB,CAAA;;"}
|
|
@@ -7,13 +7,14 @@ import enLocaleData from "dayjs/locale/en.js";
|
|
|
7
7
|
var PageObjectId;
|
|
8
8
|
|
|
9
9
|
(function(PageObjectId) {
|
|
10
|
+
PageObjectId["CHAT_HEADER"] = "chat_header";
|
|
11
|
+
PageObjectId["HEADER_TITLE"] = "header_title";
|
|
12
|
+
PageObjectId["HEADER_NAME"] = "header_name";
|
|
10
13
|
PageObjectId["CHAT_WIDGET"] = "chat_widget";
|
|
11
14
|
PageObjectId["CLOSE_CHAT"] = "close_chat";
|
|
12
15
|
PageObjectId["LAUNCHER"] = "launcher_open_chat";
|
|
13
16
|
PageObjectId["INPUT"] = "input_field";
|
|
14
17
|
PageObjectId["INPUT_SEND"] = "input_send";
|
|
15
|
-
PageObjectId["HEADER_TITLE"] = "header_title";
|
|
16
|
-
PageObjectId["HEADER_NAME"] = "header_name";
|
|
17
18
|
PageObjectId["MAIN_PANEL"] = "main_panel";
|
|
18
19
|
PageObjectId["DISCLAIMER_PANEL"] = "disclaimer_panel";
|
|
19
20
|
PageObjectId["DISCLAIMER_ACCEPT_BUTTON"] = "disclaimer_accept_button";
|
|
@@ -46,6 +47,7 @@ var WriteableElementName;
|
|
|
46
47
|
WriteableElementName["AI_TOOLTIP_AFTER_DESCRIPTION_ELEMENT"] = "aiTooltipAfterDescriptionElement";
|
|
47
48
|
WriteableElementName["WELCOME_NODE_BEFORE_ELEMENT"] = "welcomeNodeBeforeElement";
|
|
48
49
|
WriteableElementName["HEADER_BOTTOM_ELEMENT"] = "headerBottomElement";
|
|
50
|
+
WriteableElementName["HEADER_FIXED_ACTIONS_ELEMENT"] = "headerFixedActionsElement";
|
|
49
51
|
WriteableElementName["BEFORE_INPUT_ELEMENT"] = "beforeInputElement";
|
|
50
52
|
WriteableElementName["AFTER_INPUT_ELEMENT"] = "afterInputElement";
|
|
51
53
|
WriteableElementName["FOOTER_ELEMENT"] = "footerElement";
|
|
@@ -102,6 +104,7 @@ var BusEventType;
|
|
|
102
104
|
BusEventType["STOP_STREAMING"] = "stopStreaming";
|
|
103
105
|
BusEventType["STATE_CHANGE"] = "state:change";
|
|
104
106
|
BusEventType["DISCLAIMER_ACCEPTED"] = "disclaimerAccepted";
|
|
107
|
+
BusEventType["HEADER_MENU_CLICK"] = "header:menuClick";
|
|
105
108
|
})(BusEventType || (BusEventType = {}));
|
|
106
109
|
|
|
107
110
|
var ViewChangeReason;
|
|
@@ -138,6 +141,14 @@ var FeedbackInteractionType;
|
|
|
138
141
|
FeedbackInteractionType["SUBMITTED"] = "submitted";
|
|
139
142
|
})(FeedbackInteractionType || (FeedbackInteractionType = {}));
|
|
140
143
|
|
|
144
|
+
var HeaderMenuClickType;
|
|
145
|
+
|
|
146
|
+
(function(HeaderMenuClickType) {
|
|
147
|
+
HeaderMenuClickType["HOMESCREEN_BUTTON"] = "homescreenButton";
|
|
148
|
+
HeaderMenuClickType["OVERFLOW_MENU_OPENED"] = "overflowMenuOpened";
|
|
149
|
+
HeaderMenuClickType["OVERFLOW_MENU_ITEM"] = "overflowMenuItem";
|
|
150
|
+
})(HeaderMenuClickType || (HeaderMenuClickType = {}));
|
|
151
|
+
|
|
141
152
|
var MainWindowOpenReason;
|
|
142
153
|
|
|
143
154
|
(function(MainWindowOpenReason) {
|
|
@@ -209,6 +220,8 @@ var input_buttonLabel = "Send message";
|
|
|
209
220
|
|
|
210
221
|
var input_uploadButtonLabel = "Add files to upload";
|
|
211
222
|
|
|
223
|
+
var input_keyboardShortcutAnnouncement = "Press {key} to toggle focus between the message list and input field.";
|
|
224
|
+
|
|
212
225
|
var window_title = "Chat window";
|
|
213
226
|
|
|
214
227
|
var window_ariaChatRegion = "Chat";
|
|
@@ -263,14 +276,20 @@ var messages_processingLabel = "Processing";
|
|
|
263
276
|
|
|
264
277
|
var messages_scrollHandle = "Chat history begin";
|
|
265
278
|
|
|
266
|
-
var messages_scrollHandleDetailed = "Chat history begin. Activate to focus the first message then use the arrow
|
|
279
|
+
var messages_scrollHandleDetailed = "Chat history begin. Activate to focus the first message then use the arrow keys to move between messages. Press escape to exit the message list. Press {shortcut} to toggle between the message list and the input field.";
|
|
280
|
+
|
|
281
|
+
var messages_scrollHandleDetailedNoShortcut = "Chat history begin. Activate to focus the first message then use the arrow keys to move between messages. Press escape to exit the message list.";
|
|
267
282
|
|
|
268
283
|
var messages_scrollHandleEnd = "Chat history end";
|
|
269
284
|
|
|
270
|
-
var messages_scrollHandleEndDetailed = "Chat history end. Activate to focus the last message then use the arrow
|
|
285
|
+
var messages_scrollHandleEndDetailed = "Chat history end. Activate to focus the last message then use the arrow keys to move between messages. Press escape to exit the message list. Press {shortcut} to toggle between the message list and the input field.";
|
|
286
|
+
|
|
287
|
+
var messages_scrollHandleEndDetailedNoShortcut = "Chat history end. Activate to focus the last message then use the arrow keys to move between messages. Press escape to exit the message list.";
|
|
271
288
|
|
|
272
289
|
var messages_scrollMoreButton = "Scroll to bottom";
|
|
273
290
|
|
|
291
|
+
var messages_streamingStart = "{sender} is responding...";
|
|
292
|
+
|
|
274
293
|
var message_labelAssistant = "{actorName} {timestamp}";
|
|
275
294
|
|
|
276
295
|
var message_labelYou = "You {timestamp}";
|
|
@@ -291,7 +310,7 @@ var header_ariaAssistantAvatar = "{assistantName} avatar image";
|
|
|
291
310
|
|
|
292
311
|
var header_overflowMenu_options = "Options";
|
|
293
312
|
|
|
294
|
-
var homeScreen_returnToAssistant = "Return to
|
|
313
|
+
var homeScreen_returnToAssistant = "Return to conversation";
|
|
295
314
|
|
|
296
315
|
var homeScreen_returnToHome = "Return to the home screen";
|
|
297
316
|
|
|
@@ -303,7 +322,11 @@ var homeScreen_ariaQuickStartListOpened = "The quick start menu has been opened.
|
|
|
303
322
|
|
|
304
323
|
var homeScreen_ariaQuickStartListClosed = "The quick start menu has been closed.";
|
|
305
324
|
|
|
306
|
-
var homeScreen_ariaHomeScreenContent = "
|
|
325
|
+
var homeScreen_ariaHomeScreenContent = "Home screen";
|
|
326
|
+
|
|
327
|
+
var homeScreen_shown = "Home screen is now visible";
|
|
328
|
+
|
|
329
|
+
var homeScreen_hidden = "Returned to conversation";
|
|
307
330
|
|
|
308
331
|
var default_agent_availableMessage = "Request an agent, and I'll notify you when they're ready. Your wait time may vary based on availability.";
|
|
309
332
|
|
|
@@ -451,7 +474,7 @@ var general_ariaAnnounceClosedInformationOverlay = "An information panel has bee
|
|
|
451
474
|
|
|
452
475
|
var general_ariaAnnounceEscapeOverlay = "Press escape or click the close button to close.";
|
|
453
476
|
|
|
454
|
-
var general_returnToAssistant = "Return to
|
|
477
|
+
var general_returnToAssistant = "Return to conversation";
|
|
455
478
|
|
|
456
479
|
var conversationalSearch_streamingIncomplete = "This message was not completed. Please try again.";
|
|
457
480
|
|
|
@@ -529,6 +552,14 @@ var codeSnippet_foldCollapse = "Collapse code block";
|
|
|
529
552
|
|
|
530
553
|
var codeSnippet_foldExpand = "Expand code block";
|
|
531
554
|
|
|
555
|
+
var codeSnippet_ariaLabelReadOnly = "Code snippet";
|
|
556
|
+
|
|
557
|
+
var codeSnippet_ariaLabelReadOnlyWithLanguage = "{language} code snippet";
|
|
558
|
+
|
|
559
|
+
var codeSnippet_ariaLabelEditable = "Code editor";
|
|
560
|
+
|
|
561
|
+
var codeSnippet_ariaLabelEditableWithLanguage = "{language} code editor";
|
|
562
|
+
|
|
532
563
|
var table_downloadButton = "Download table data";
|
|
533
564
|
|
|
534
565
|
var feedback_positiveLabel = "Good response";
|
|
@@ -541,6 +572,8 @@ var feedback_defaultPrompt = "Why did you choose this rating?";
|
|
|
541
572
|
|
|
542
573
|
var feedback_defaultPlaceholder = "Add a comment";
|
|
543
574
|
|
|
575
|
+
var feedback_categoriesLabel = "Feedback categories";
|
|
576
|
+
|
|
544
577
|
var feedback_submitLabel = "Submit";
|
|
545
578
|
|
|
546
579
|
var feedback_cancelLabel = "Cancel";
|
|
@@ -577,12 +610,34 @@ var workspace_opened_no_title = "Workspace opened";
|
|
|
577
610
|
|
|
578
611
|
var workspace_closed = "Workspace closed, returned to chat";
|
|
579
612
|
|
|
613
|
+
var panel_opened = "Panel opened";
|
|
614
|
+
|
|
615
|
+
var panel_closed = "Panel closed";
|
|
616
|
+
|
|
617
|
+
var history_shown = "Conversation history is now visible";
|
|
618
|
+
|
|
619
|
+
var history_hidden = "Conversation history is now hidden";
|
|
620
|
+
|
|
580
621
|
var aria_workspaceRegion = "Workspace panel";
|
|
581
622
|
|
|
582
623
|
var aria_historyRegion = "Conversation history";
|
|
583
624
|
|
|
584
625
|
var aria_messagesRegion = "Chat messages";
|
|
585
626
|
|
|
627
|
+
var aria_catastrophicErrorPanel = "Error panel";
|
|
628
|
+
|
|
629
|
+
var aria_hydrationPanel = "Loading panel";
|
|
630
|
+
|
|
631
|
+
var aria_customPanel = "Panel";
|
|
632
|
+
|
|
633
|
+
var aria_disclaimerPanel = "Disclaimer panel";
|
|
634
|
+
|
|
635
|
+
var aria_responsePanel = "Response panel";
|
|
636
|
+
|
|
637
|
+
var aria_iframePanel = "Content panel";
|
|
638
|
+
|
|
639
|
+
var aria_viewSourcePanel = "View source panel";
|
|
640
|
+
|
|
586
641
|
var enLanguagePackData = {
|
|
587
642
|
ai_slug_label,
|
|
588
643
|
ai_slug_title,
|
|
@@ -608,6 +663,7 @@ var enLanguagePackData = {
|
|
|
608
663
|
input_placeholder,
|
|
609
664
|
input_buttonLabel,
|
|
610
665
|
input_uploadButtonLabel,
|
|
666
|
+
input_keyboardShortcutAnnouncement,
|
|
611
667
|
window_title,
|
|
612
668
|
window_ariaChatRegion,
|
|
613
669
|
window_ariaChatRegionNamespace,
|
|
@@ -636,9 +692,12 @@ var enLanguagePackData = {
|
|
|
636
692
|
messages_processingLabel,
|
|
637
693
|
messages_scrollHandle,
|
|
638
694
|
messages_scrollHandleDetailed,
|
|
695
|
+
messages_scrollHandleDetailedNoShortcut,
|
|
639
696
|
messages_scrollHandleEnd,
|
|
640
697
|
messages_scrollHandleEndDetailed,
|
|
698
|
+
messages_scrollHandleEndDetailedNoShortcut,
|
|
641
699
|
messages_scrollMoreButton,
|
|
700
|
+
messages_streamingStart,
|
|
642
701
|
message_labelAssistant,
|
|
643
702
|
message_labelYou,
|
|
644
703
|
buttons_restart,
|
|
@@ -656,6 +715,8 @@ var enLanguagePackData = {
|
|
|
656
715
|
homeScreen_ariaQuickStartListOpened,
|
|
657
716
|
homeScreen_ariaQuickStartListClosed,
|
|
658
717
|
homeScreen_ariaHomeScreenContent,
|
|
718
|
+
homeScreen_shown,
|
|
719
|
+
homeScreen_hidden,
|
|
659
720
|
default_agent_availableMessage,
|
|
660
721
|
default_agent_unavailableMessage,
|
|
661
722
|
agent_reason_error,
|
|
@@ -768,12 +829,17 @@ var enLanguagePackData = {
|
|
|
768
829
|
codeSnippet_lineCount,
|
|
769
830
|
codeSnippet_foldCollapse,
|
|
770
831
|
codeSnippet_foldExpand,
|
|
832
|
+
codeSnippet_ariaLabelReadOnly,
|
|
833
|
+
codeSnippet_ariaLabelReadOnlyWithLanguage,
|
|
834
|
+
codeSnippet_ariaLabelEditable,
|
|
835
|
+
codeSnippet_ariaLabelEditableWithLanguage,
|
|
771
836
|
table_downloadButton,
|
|
772
837
|
feedback_positiveLabel,
|
|
773
838
|
feedback_negativeLabel,
|
|
774
839
|
feedback_defaultTitle,
|
|
775
840
|
feedback_defaultPrompt,
|
|
776
841
|
feedback_defaultPlaceholder,
|
|
842
|
+
feedback_categoriesLabel,
|
|
777
843
|
feedback_submitLabel,
|
|
778
844
|
feedback_cancelLabel,
|
|
779
845
|
input_stopResponse,
|
|
@@ -792,9 +858,20 @@ var enLanguagePackData = {
|
|
|
792
858
|
workspace_opened,
|
|
793
859
|
workspace_opened_no_title,
|
|
794
860
|
workspace_closed,
|
|
861
|
+
panel_opened,
|
|
862
|
+
panel_closed,
|
|
863
|
+
history_shown,
|
|
864
|
+
history_hidden,
|
|
795
865
|
aria_workspaceRegion,
|
|
796
866
|
aria_historyRegion,
|
|
797
|
-
aria_messagesRegion
|
|
867
|
+
aria_messagesRegion,
|
|
868
|
+
aria_catastrophicErrorPanel,
|
|
869
|
+
aria_hydrationPanel,
|
|
870
|
+
aria_customPanel,
|
|
871
|
+
aria_disclaimerPanel,
|
|
872
|
+
aria_responsePanel,
|
|
873
|
+
aria_iframePanel,
|
|
874
|
+
aria_viewSourcePanel
|
|
798
875
|
};
|
|
799
876
|
|
|
800
877
|
const enLanguagePack = enLanguagePackData;
|
|
@@ -1010,10 +1087,6 @@ function THROW_ERROR() {
|
|
|
1010
1087
|
throw Error("Not implemented.");
|
|
1011
1088
|
}
|
|
1012
1089
|
|
|
1013
|
-
const AUTO_SCROLL_EXTRA = 28 - 8;
|
|
1014
|
-
|
|
1015
|
-
const AUTO_SCROLL_THROTTLE_TIMEOUT = 200;
|
|
1016
|
-
|
|
1017
1090
|
async function sleep(milliseconds) {
|
|
1018
1091
|
await new Promise(resolve => {
|
|
1019
1092
|
setTimeout(resolve, milliseconds);
|
|
@@ -1103,16 +1176,6 @@ function callOnError(onError, data) {
|
|
|
1103
1176
|
}
|
|
1104
1177
|
}
|
|
1105
1178
|
|
|
1106
|
-
function getAssistantName(aiEnabled, config) {
|
|
1107
|
-
let assistantName;
|
|
1108
|
-
if (aiEnabled) {
|
|
1109
|
-
assistantName = "watsonx";
|
|
1110
|
-
} else {
|
|
1111
|
-
assistantName = config.public.assistantName || "watsonx";
|
|
1112
|
-
}
|
|
1113
|
-
return assistantName;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
1179
|
function normalizeModuleInterop(mod) {
|
|
1117
1180
|
let resolved = mod;
|
|
1118
1181
|
while (resolved && typeof resolved === "object" && "default" in resolved && resolved.default !== resolved) {
|
|
@@ -1217,5 +1280,5 @@ async function loadDayjsLocale(locale) {
|
|
|
1217
1280
|
return locale;
|
|
1218
1281
|
}
|
|
1219
1282
|
|
|
1220
|
-
export { loadDayjsLocale as $,
|
|
1283
|
+
export { loadDayjsLocale as $, isEnableDebugLog as A, BusEventType as B, CancellationReason as C, DEFAULT_CUSTOM_PANEL_ID as D, ErrorType as E, FeedbackInteractionType as F, safeFetchTextWithTimeout as G, HeaderMenuClickType as H, IFrameItemDisplayOption as I, WA_CONSOLE_PREFIX as J, setEnableDebugLog as K, consoleDebug as L, MessageErrorState as M, resolveOrTimeout as N, OnErrorType as O, PageObjectId as P, loadLocale as Q, ReasoningStepOpenState as R, ScreenShareState as S, MainWindowOpenReason as T, UserType as U, ViewChangeReason as V, WidthOptions as W, RESPONSE_TYPE_TIMEOUT_MS as X, getResponsiveElementPaddingValue as Y, THROW_ERROR as Z, RIGHT_TO_LEFT_MARK as _, ButtonItemKind as a, ENGLISH_US_DATE_FORMAT as a0, createDidCatchErrorData as a1, isValidForUpload as a2, ButtonItemType as b, CarbonTheme as c, CornersType as d, FileStatusValue as e, HumanAgentMessageType as f, HumanAgentsOnlineStatus as g, MessageInputType as h, MessageResponseTypes as i, MessageSendSource as j, MinimizeButtonIconType as k, OptionItemPreference as l, PanelType as m, ViewType as n, WriteableElementName as o, enLanguagePack as p, normalizeModuleInterop as q, localeLoaders as r, InternalMessageRequestType as s, consoleError as t, WORKSPACE_CUSTOM_PANEL_ID as u, debugLog as v, consoleWarn as w, sleep as x, callOnError as y, consoleLog as z };
|
|
1221
1284
|
//# sourceMappingURL=chat.languageUtils.js.map
|