@carbon/ai-chat 0.1.7-test-no-cjs → 0.2.0-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.
Files changed (275) hide show
  1. package/dist/docs/carbon-chat-docs.js +2 -0
  2. package/dist/docs/carbon-chat-docs.js.LICENSE.txt +118 -0
  3. package/dist/docs/carbon-chat.html +8 -0
  4. package/dist/docs/carbon-tsdocs/.nojekyll +1 -0
  5. package/dist/docs/carbon-tsdocs/assets/hierarchy.js +1 -0
  6. package/dist/docs/carbon-tsdocs/assets/highlight.css +22 -0
  7. package/dist/docs/carbon-tsdocs/assets/icons.js +18 -0
  8. package/dist/docs/carbon-tsdocs/assets/icons.svg +1 -0
  9. package/dist/docs/carbon-tsdocs/assets/main.js +60 -0
  10. package/dist/docs/carbon-tsdocs/assets/navigation.js +1 -0
  11. package/dist/docs/carbon-tsdocs/assets/search.js +1 -0
  12. package/dist/docs/carbon-tsdocs/assets/style.css +1611 -0
  13. package/dist/docs/carbon-tsdocs/enums/AgentMessageType.html +20 -0
  14. package/dist/docs/carbon-tsdocs/enums/AgentsOnlineStatus.html +9 -0
  15. package/dist/docs/carbon-tsdocs/enums/BusEventType.html +67 -0
  16. package/dist/docs/carbon-tsdocs/enums/ButtonItemKind.html +6 -0
  17. package/dist/docs/carbon-tsdocs/enums/ButtonItemType.html +5 -0
  18. package/dist/docs/carbon-tsdocs/enums/CarbonTheme.html +7 -0
  19. package/dist/docs/carbon-tsdocs/enums/CatastrophicErrorType.html +11 -0
  20. package/dist/docs/carbon-tsdocs/enums/ChainOfThoughtStepStatus.html +5 -0
  21. package/dist/docs/carbon-tsdocs/enums/ChatHeaderObjectType.html +6 -0
  22. package/dist/docs/carbon-tsdocs/enums/CornersType.html +4 -0
  23. package/dist/docs/carbon-tsdocs/enums/CustomEventType.html +3 -0
  24. package/dist/docs/carbon-tsdocs/enums/ErrorType.html +12 -0
  25. package/dist/docs/carbon-tsdocs/enums/FeedbackInteractionType.html +10 -0
  26. package/dist/docs/carbon-tsdocs/enums/FileStatusValue.html +6 -0
  27. package/dist/docs/carbon-tsdocs/enums/HomeScreenBackgroundType.html +6 -0
  28. package/dist/docs/carbon-tsdocs/enums/IFrameItemDisplayOption.html +6 -0
  29. package/dist/docs/carbon-tsdocs/enums/LauncherType.html +6 -0
  30. package/dist/docs/carbon-tsdocs/enums/MessageInputType.html +8 -0
  31. package/dist/docs/carbon-tsdocs/enums/MessageResponseTypes.html +36 -0
  32. package/dist/docs/carbon-tsdocs/enums/MessageSendSource.html +45 -0
  33. package/dist/docs/carbon-tsdocs/enums/MinimizeButtonIconType.html +9 -0
  34. package/dist/docs/carbon-tsdocs/enums/OnErrorType.html +27 -0
  35. package/dist/docs/carbon-tsdocs/enums/OptionItemPreference.html +6 -0
  36. package/dist/docs/carbon-tsdocs/enums/ScreenShareState.html +10 -0
  37. package/dist/docs/carbon-tsdocs/enums/TourEndReason.html +5 -0
  38. package/dist/docs/carbon-tsdocs/enums/TourStartReason.html +9 -0
  39. package/dist/docs/carbon-tsdocs/enums/ViewChangeReason.html +47 -0
  40. package/dist/docs/carbon-tsdocs/enums/ViewType.html +10 -0
  41. package/dist/docs/carbon-tsdocs/enums/WriteableElementName.html +16 -0
  42. package/dist/docs/carbon-tsdocs/functions/ChatContainer.html +10 -0
  43. package/dist/docs/carbon-tsdocs/functions/ChatCustomElement.html +8 -0
  44. package/dist/docs/carbon-tsdocs/hierarchy.html +1 -0
  45. package/dist/docs/carbon-tsdocs/index.html +1 -0
  46. package/dist/docs/carbon-tsdocs/interfaces/AdditionalDataToAgent.html +5 -0
  47. package/dist/docs/carbon-tsdocs/interfaces/AgentAppConfig.html +8 -0
  48. package/dist/docs/carbon-tsdocs/interfaces/AgentAppInfo.html +6 -0
  49. package/dist/docs/carbon-tsdocs/interfaces/AgentAvailability.html +12 -0
  50. package/dist/docs/carbon-tsdocs/interfaces/AgentProfile.html +12 -0
  51. package/dist/docs/carbon-tsdocs/interfaces/BaseMessageInput.html +3 -0
  52. package/dist/docs/carbon-tsdocs/interfaces/BusEvent.html +3 -0
  53. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentAreAnyAgentsOnline.html +8 -0
  54. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentEndChat.html +10 -0
  55. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentPreEndChat.html +12 -0
  56. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentPreReceive.html +5 -0
  57. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentPreSend.html +5 -0
  58. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentPreSessionHistory.html +8 -0
  59. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentPreStartChat.html +13 -0
  60. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentReceive.html +5 -0
  61. package/dist/docs/carbon-tsdocs/interfaces/BusEventAgentSend.html +5 -0
  62. package/dist/docs/carbon-tsdocs/interfaces/BusEventChatReady.html +3 -0
  63. package/dist/docs/carbon-tsdocs/interfaces/BusEventChunkUserDefinedResponse.html +39 -0
  64. package/dist/docs/carbon-tsdocs/interfaces/BusEventClosePanelButtonClicked.html +4 -0
  65. package/dist/docs/carbon-tsdocs/interfaces/BusEventCustomPanelClose.html +3 -0
  66. package/dist/docs/carbon-tsdocs/interfaces/BusEventCustomPanelOpen.html +3 -0
  67. package/dist/docs/carbon-tsdocs/interfaces/BusEventCustomPanelPreClose.html +3 -0
  68. package/dist/docs/carbon-tsdocs/interfaces/BusEventCustomPanelPreOpen.html +3 -0
  69. package/dist/docs/carbon-tsdocs/interfaces/BusEventFeedback.html +17 -0
  70. package/dist/docs/carbon-tsdocs/interfaces/BusEventGenesysMessengerAuthError.html +5 -0
  71. package/dist/docs/carbon-tsdocs/interfaces/BusEventGenesysMessengerAuthProvider.html +5 -0
  72. package/dist/docs/carbon-tsdocs/interfaces/BusEventGenesysMessengerGetAuthCode.html +5 -0
  73. package/dist/docs/carbon-tsdocs/interfaces/BusEventGenesysMessengerLoggedOut.html +5 -0
  74. package/dist/docs/carbon-tsdocs/interfaces/BusEventGenesysMessengerReauthenticate.html +5 -0
  75. package/dist/docs/carbon-tsdocs/interfaces/BusEventHistoryBegin.html +15 -0
  76. package/dist/docs/carbon-tsdocs/interfaces/BusEventHistoryEnd.html +11 -0
  77. package/dist/docs/carbon-tsdocs/interfaces/BusEventMessageItemCustom.html +11 -0
  78. package/dist/docs/carbon-tsdocs/interfaces/BusEventNiceDFOGetAuthCode.html +7 -0
  79. package/dist/docs/carbon-tsdocs/interfaces/BusEventPreReceive.html +11 -0
  80. package/dist/docs/carbon-tsdocs/interfaces/BusEventPreReset.html +3 -0
  81. package/dist/docs/carbon-tsdocs/interfaces/BusEventPreSend.html +8 -0
  82. package/dist/docs/carbon-tsdocs/interfaces/BusEventReceive.html +4 -0
  83. package/dist/docs/carbon-tsdocs/interfaces/BusEventReset.html +3 -0
  84. package/dist/docs/carbon-tsdocs/interfaces/BusEventSend.html +8 -0
  85. package/dist/docs/carbon-tsdocs/interfaces/BusEventTourEnd.html +7 -0
  86. package/dist/docs/carbon-tsdocs/interfaces/BusEventTourStart.html +8 -0
  87. package/dist/docs/carbon-tsdocs/interfaces/BusEventTourStep.html +8 -0
  88. package/dist/docs/carbon-tsdocs/interfaces/BusEventUserDefinedResponse.html +10 -0
  89. package/dist/docs/carbon-tsdocs/interfaces/BusEventViewChange.html +13 -0
  90. package/dist/docs/carbon-tsdocs/interfaces/BusEventViewPreChange.html +12 -0
  91. package/dist/docs/carbon-tsdocs/interfaces/ButtonItem.html +34 -0
  92. package/dist/docs/carbon-tsdocs/interfaces/CarouselItem.html +15 -0
  93. package/dist/docs/carbon-tsdocs/interfaces/ChainOfThoughtStep.html +20 -0
  94. package/dist/docs/carbon-tsdocs/interfaces/ChatContainerProps.html +14 -0
  95. package/dist/docs/carbon-tsdocs/interfaces/ChatCustomElementProps.html +31 -0
  96. package/dist/docs/carbon-tsdocs/interfaces/ChatHeaderAvatarConfig.html +6 -0
  97. package/dist/docs/carbon-tsdocs/interfaces/ChatHeaderButton.html +8 -0
  98. package/dist/docs/carbon-tsdocs/interfaces/ChatHeaderConfig.html +9 -0
  99. package/dist/docs/carbon-tsdocs/interfaces/ChatHeaderGroupMenu.html +13 -0
  100. package/dist/docs/carbon-tsdocs/interfaces/ChatHeaderGroupMenuItem.html +8 -0
  101. package/dist/docs/carbon-tsdocs/interfaces/ChatHeaderLink.html +10 -0
  102. package/dist/docs/carbon-tsdocs/interfaces/ChatHeaderMenu.html +9 -0
  103. package/dist/docs/carbon-tsdocs/interfaces/ChatInstance.html +146 -0
  104. package/dist/docs/carbon-tsdocs/interfaces/ChatInstanceMessaging.html +16 -0
  105. package/dist/docs/carbon-tsdocs/interfaces/ChatInstanceNotifications.html +7 -0
  106. package/dist/docs/carbon-tsdocs/interfaces/ChatInstanceServiceDeskActions.html +13 -0
  107. package/dist/docs/carbon-tsdocs/interfaces/ChatInstanceTours.html +13 -0
  108. package/dist/docs/carbon-tsdocs/interfaces/Chunk.html +5 -0
  109. package/dist/docs/carbon-tsdocs/interfaces/CompleteItemChunk.html +9 -0
  110. package/dist/docs/carbon-tsdocs/interfaces/ConnectToAgentItem.html +24 -0
  111. package/dist/docs/carbon-tsdocs/interfaces/ConnectToAgentItemTransferInfo.html +9 -0
  112. package/dist/docs/carbon-tsdocs/interfaces/ConnectingErrorInfo.html +12 -0
  113. package/dist/docs/carbon-tsdocs/interfaces/ConversationalSearchItem.html +22 -0
  114. package/dist/docs/carbon-tsdocs/interfaces/ConversationalSearchItemCitation.html +18 -0
  115. package/dist/docs/carbon-tsdocs/interfaces/CustomMenuOption.html +6 -0
  116. package/dist/docs/carbon-tsdocs/interfaces/CustomPanelConfigOptions.html +29 -0
  117. package/dist/docs/carbon-tsdocs/interfaces/CustomPanelInstance.html +9 -0
  118. package/dist/docs/carbon-tsdocs/interfaces/CustomPanels.html +4 -0
  119. package/dist/docs/carbon-tsdocs/interfaces/CustomSendMessageOptions.html +3 -0
  120. package/dist/docs/carbon-tsdocs/interfaces/DisclaimerPublicConfig.html +5 -0
  121. package/dist/docs/carbon-tsdocs/interfaces/DisconnectedErrorInfo.html +11 -0
  122. package/dist/docs/carbon-tsdocs/interfaces/EndChatInfo.html +8 -0
  123. package/dist/docs/carbon-tsdocs/interfaces/EventHandlers.html +16 -0
  124. package/dist/docs/carbon-tsdocs/interfaces/EventInput.html +6 -0
  125. package/dist/docs/carbon-tsdocs/interfaces/EventInputData.html +6 -0
  126. package/dist/docs/carbon-tsdocs/interfaces/FileUpload.html +12 -0
  127. package/dist/docs/carbon-tsdocs/interfaces/FinalResponseChunk.html +6 -0
  128. package/dist/docs/carbon-tsdocs/interfaces/GenericItem.html +14 -0
  129. package/dist/docs/carbon-tsdocs/interfaces/GenericItemMessageFeedbackOptions.html +27 -0
  130. package/dist/docs/carbon-tsdocs/interfaces/GenericItemMessageOptions.html +6 -0
  131. package/dist/docs/carbon-tsdocs/interfaces/GenesysMessengerConfig.html +8 -0
  132. package/dist/docs/carbon-tsdocs/interfaces/GridItem.html +23 -0
  133. package/dist/docs/carbon-tsdocs/interfaces/HasAddRemoveClassName.html +6 -0
  134. package/dist/docs/carbon-tsdocs/interfaces/HeaderConfig.html +9 -0
  135. package/dist/docs/carbon-tsdocs/interfaces/HistoryItem.html +6 -0
  136. package/dist/docs/carbon-tsdocs/interfaces/HomeScreenConfig.html +17 -0
  137. package/dist/docs/carbon-tsdocs/interfaces/HomeScreenStarterButton.html +7 -0
  138. package/dist/docs/carbon-tsdocs/interfaces/HomeScreenStarterButtons.html +4 -0
  139. package/dist/docs/carbon-tsdocs/interfaces/IFrameItem.html +27 -0
  140. package/dist/docs/carbon-tsdocs/interfaces/InlineErrorItem.html +22 -0
  141. package/dist/docs/carbon-tsdocs/interfaces/InstanceElements.html +8 -0
  142. package/dist/docs/carbon-tsdocs/interfaces/InstanceInputElement.html +13 -0
  143. package/dist/docs/carbon-tsdocs/interfaces/ItemStreamingMetadata.html +12 -0
  144. package/dist/docs/carbon-tsdocs/interfaces/LayoutConfig.html +11 -0
  145. package/dist/docs/carbon-tsdocs/interfaces/MediaItem.html +27 -0
  146. package/dist/docs/carbon-tsdocs/interfaces/MediaItemDimensions.html +6 -0
  147. package/dist/docs/carbon-tsdocs/interfaces/MessageContext.html +9 -0
  148. package/dist/docs/carbon-tsdocs/interfaces/MessageGlobalContext.html +3 -0
  149. package/dist/docs/carbon-tsdocs/interfaces/MessageHistory.html +18 -0
  150. package/dist/docs/carbon-tsdocs/interfaces/MessageInput.html +11 -0
  151. package/dist/docs/carbon-tsdocs/interfaces/MessageItemPanelInfo.html +11 -0
  152. package/dist/docs/carbon-tsdocs/interfaces/MessageOutput.html +4 -0
  153. package/dist/docs/carbon-tsdocs/interfaces/MessageRequest.html +12 -0
  154. package/dist/docs/carbon-tsdocs/interfaces/MessageResponse.html +12 -0
  155. package/dist/docs/carbon-tsdocs/interfaces/MessageSkillContext.html +3 -0
  156. package/dist/docs/carbon-tsdocs/interfaces/MessageSystemContext.html +5 -0
  157. package/dist/docs/carbon-tsdocs/interfaces/NiceDFOConfig.html +14 -0
  158. package/dist/docs/carbon-tsdocs/interfaces/NotificationMessage.html +15 -0
  159. package/dist/docs/carbon-tsdocs/interfaces/OnErrorData.html +13 -0
  160. package/dist/docs/carbon-tsdocs/interfaces/Option.html +7 -0
  161. package/dist/docs/carbon-tsdocs/interfaces/OptionItem.html +23 -0
  162. package/dist/docs/carbon-tsdocs/interfaces/PageLinkConfig.html +6 -0
  163. package/dist/docs/carbon-tsdocs/interfaces/PageLinkIDConfig.html +5 -0
  164. package/dist/docs/carbon-tsdocs/interfaces/PartialItemChunk.html +38 -0
  165. package/dist/docs/carbon-tsdocs/interfaces/PauseItem.html +18 -0
  166. package/dist/docs/carbon-tsdocs/interfaces/PublicConfig.html +75 -0
  167. package/dist/docs/carbon-tsdocs/interfaces/PublicConfigMessaging.html +24 -0
  168. package/dist/docs/carbon-tsdocs/interfaces/PublicWebChatServiceDeskState.html +8 -0
  169. package/dist/docs/carbon-tsdocs/interfaces/PublicWebChatState.html +21 -0
  170. package/dist/docs/carbon-tsdocs/interfaces/RenderUserDefinedState.html +41 -0
  171. package/dist/docs/carbon-tsdocs/interfaces/SendOptions.html +10 -0
  172. package/dist/docs/carbon-tsdocs/interfaces/ServiceDesk.html +74 -0
  173. package/dist/docs/carbon-tsdocs/interfaces/ServiceDeskCallback.html +81 -0
  174. package/dist/docs/carbon-tsdocs/interfaces/ServiceDeskCapabilities.html +9 -0
  175. package/dist/docs/carbon-tsdocs/interfaces/ServiceDeskFactoryParameters.html +8 -0
  176. package/dist/docs/carbon-tsdocs/interfaces/ServiceDeskPublicConfig.html +25 -0
  177. package/dist/docs/carbon-tsdocs/interfaces/StartChatOptions.html +6 -0
  178. package/dist/docs/carbon-tsdocs/interfaces/TableItem.html +22 -0
  179. package/dist/docs/carbon-tsdocs/interfaces/TableItemRow.html +5 -0
  180. package/dist/docs/carbon-tsdocs/interfaces/TextItem.html +19 -0
  181. package/dist/docs/carbon-tsdocs/interfaces/ThemeConfig.html +16 -0
  182. package/dist/docs/carbon-tsdocs/interfaces/TourStepGenericItem.html +17 -0
  183. package/dist/docs/carbon-tsdocs/interfaces/TypeAndHandler.html +6 -0
  184. package/dist/docs/carbon-tsdocs/interfaces/UpdateHistoryEvent.html +10 -0
  185. package/dist/docs/carbon-tsdocs/interfaces/UserDefinedItem.html +13 -0
  186. package/dist/docs/carbon-tsdocs/interfaces/UserMessageErrorInfo.html +8 -0
  187. package/dist/docs/carbon-tsdocs/interfaces/ViewState.html +8 -0
  188. package/dist/docs/carbon-tsdocs/interfaces/WithBodyAndFooter.html +5 -0
  189. package/dist/docs/carbon-tsdocs/types/AudioItem.html +2 -0
  190. package/dist/docs/carbon-tsdocs/types/CardItem.html +1 -0
  191. package/dist/docs/carbon-tsdocs/types/ChangeFunction.html +1 -0
  192. package/dist/docs/carbon-tsdocs/types/ChatHeaderMenuItemTypes.html +2 -0
  193. package/dist/docs/carbon-tsdocs/types/ChatHeaderObjectTypes.html +2 -0
  194. package/dist/docs/carbon-tsdocs/types/DateItem.html +3 -0
  195. package/dist/docs/carbon-tsdocs/types/EventBusHandler.html +3 -0
  196. package/dist/docs/carbon-tsdocs/types/HorizontalCellAlignment.html +1 -0
  197. package/dist/docs/carbon-tsdocs/types/ImageItem.html +2 -0
  198. package/dist/docs/carbon-tsdocs/types/IncreaseOrDecrease.html +1 -0
  199. package/dist/docs/carbon-tsdocs/types/Message.html +2 -0
  200. package/dist/docs/carbon-tsdocs/types/PartialOrCompleteItemChunk.html +1 -0
  201. package/dist/docs/carbon-tsdocs/types/RenderUserDefinedResponse.html +6 -0
  202. package/dist/docs/carbon-tsdocs/types/RenderWriteableElementResponse.html +2 -0
  203. package/dist/docs/carbon-tsdocs/types/ServiceDeskErrorInfo.html +3 -0
  204. package/dist/docs/carbon-tsdocs/types/StreamChunk.html +1 -0
  205. package/dist/docs/carbon-tsdocs/types/TableItemCell.html +1 -0
  206. package/dist/docs/carbon-tsdocs/types/TableItemRowExpandableSectionItem.html +1 -0
  207. package/dist/docs/carbon-tsdocs/types/VerticalCellAlignment.html +1 -0
  208. package/dist/docs/carbon-tsdocs/types/VideoItem.html +2 -0
  209. package/dist/docs/carbon-tsdocs/types/WriteableElements.html +3 -0
  210. package/dist/es/AppContainer.js +1670 -6105
  211. package/dist/es/Carousel.js +23 -36
  212. package/dist/es/GenesysMessengerServiceDesk.js +23 -36
  213. package/dist/es/HumanAgentServiceImpl.js +45 -70
  214. package/dist/es/NiceDFOServiceDesk.js +23 -50
  215. package/dist/es/PDFViewerContainer.js +23 -64
  216. package/dist/es/ReactPlayer.js +21 -35
  217. package/dist/es/SFServiceDesk.js +23 -37
  218. package/dist/es/ServiceDeskImpl.js +21 -35
  219. package/dist/es/Table.js +26 -97
  220. package/dist/es/ZendeskServiceDesk.js +23 -53
  221. package/dist/es/_node-resolve_empty.js +21 -21
  222. package/dist/es/aiChatEntry.js +24 -75
  223. package/dist/es/ar-dz.js +22 -22
  224. package/dist/es/ar-kw.js +22 -22
  225. package/dist/es/ar-ly.js +22 -22
  226. package/dist/es/ar-ma.js +22 -22
  227. package/dist/es/ar-sa.js +22 -22
  228. package/dist/es/ar-tn.js +22 -22
  229. package/dist/es/ar.js +22 -22
  230. package/dist/es/ar2.js +46 -24
  231. package/dist/es/cds-aichat-container.js +23 -50
  232. package/dist/es/cds-aichat-custom-element.js +22 -35
  233. package/dist/es/cs.js +22 -22
  234. package/dist/es/cs2.js +45 -23
  235. package/dist/es/de-at.js +22 -22
  236. package/dist/es/de-ch.js +22 -22
  237. package/dist/es/de.js +22 -22
  238. package/dist/es/de2.js +45 -23
  239. package/dist/es/en-au.js +22 -22
  240. package/dist/es/en-ca.js +22 -22
  241. package/dist/es/en-gb.js +22 -22
  242. package/dist/es/en-ie.js +22 -22
  243. package/dist/es/en-il.js +22 -22
  244. package/dist/es/en-nz.js +22 -22
  245. package/dist/es/es-do.js +22 -22
  246. package/dist/es/es-us.js +22 -22
  247. package/dist/es/es.js +22 -22
  248. package/dist/es/es2.js +45 -23
  249. package/dist/es/export.js +58 -23
  250. package/dist/es/export.legacy.js +58 -23
  251. package/dist/es/fr-ca.js +22 -22
  252. package/dist/es/fr-ch.js +22 -22
  253. package/dist/es/fr.js +22 -22
  254. package/dist/es/fr2.js +45 -23
  255. package/dist/es/it-ch.js +22 -22
  256. package/dist/es/it.js +22 -22
  257. package/dist/es/it2.js +45 -23
  258. package/dist/es/ja.js +22 -22
  259. package/dist/es/ja2.js +45 -23
  260. package/dist/es/ko.js +22 -22
  261. package/dist/es/ko2.js +45 -23
  262. package/dist/es/mockServiceDesk.js +23 -36
  263. package/dist/es/nl.js +22 -22
  264. package/dist/es/nl2.js +45 -23
  265. package/dist/es/pt-br.js +22 -22
  266. package/dist/es/pt-br2.js +45 -23
  267. package/dist/es/pt.js +22 -22
  268. package/dist/es/{fontUtils.js → scriptRender.js} +87 -35
  269. package/dist/es/zh-cn.js +22 -22
  270. package/dist/es/zh-tw.js +22 -22
  271. package/dist/es/zh-tw2.js +45 -23
  272. package/dist/es/zh.js +45 -23
  273. package/dist/types/aiChatEntry.d.ts +39 -10
  274. package/package.json +24 -7
  275. package/dist/es/render.js +0 -105
package/dist/es/zh.js CHANGED
@@ -1,25 +1,25 @@
1
- /*
2
-
3
-
4
- (C) Copyright IBM Corp. 2017, 2025. All Rights Reserved.
5
-
6
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7
- in compliance with the License. You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software distributed under the License
12
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13
- or implied. See the License for the specific language governing permissions and limitations under
14
- the License.
15
-
16
- @carbon/ai-chat 0.1.7-test-no-cjs
17
-
18
- Built: Feb 26 2025 2:36 pm -05:00
19
-
20
-
21
-
1
+ /**
2
+ * @license
3
+ *
4
+ * (C) Copyright IBM Corp. 2017, 2025. All Rights Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7
+ * in compliance with the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
12
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13
+ * or implied. See the License for the specific language governing permissions and limitations under
14
+ * the License.
15
+ *
16
+ * @carbon/ai-chat 0.1.6
17
+ *
18
+ * Built: Mar 5 2025 3:03 pm -05:00
19
+ *
20
+ *
22
21
  */
22
+
23
23
  var ai_slug_title = "由 IBM watsonx 提供技术支持";
24
24
  var ai_slug_description = "IBM watsonx 由最新的 AI 模型提供支持,用于智能处理对话,并随时随地提供帮助。";
25
25
  var components_overflow_ariaLabel = "打开和关闭选项列表";
@@ -195,6 +195,7 @@ var conversationalSearch_streamingIncomplete = "此信息未完成。 请重试
195
195
  var conversationalSearch_viewPDF = "查看 PDF";
196
196
  var conversationalSearch_viewSourceDocument = "查看源";
197
197
  var conversationalSearch_toggleCitations = "打开或关闭源列表";
198
+ var conversationalSearch_responseStopped = "响应已停止";
198
199
  var launcher_chatNow = "立即聊天";
199
200
  var iframe_ariaSourceLoaded = "网页已加载。";
200
201
  var iframe_ariaImageAltText = "预览网页面板的图像。";
@@ -265,6 +266,16 @@ var feedback_defaultPrompt = "为什么选择此评级?";
265
266
  var feedback_defaultPlaceholder = "添加注释";
266
267
  var feedback_submitLabel = "提交";
267
268
  var feedback_cancelLabel = "取消";
269
+ var input_stopResponse = "停止响应";
270
+ var messages_responseStopped = "响应已停止";
271
+ var chainOfThought_stepTitle = "{stepNumber, number}: {stepTitle}";
272
+ var chainOfThought_inputLabel = "Input";
273
+ var chainOfThought_outputLabel = "输出";
274
+ var chainOfThought_toolLabel = "工具";
275
+ var chainOfThought_statusSucceededLabel = "已成功";
276
+ var chainOfThought_statusFailedLabel = "失败";
277
+ var chainOfThought_statusProcessingLabel = "正在处理";
278
+ var chainOfThought_explainabilityLabel = "我是如何得到这个答案的?";
268
279
  var zh = {
269
280
  ai_slug_title: ai_slug_title,
270
281
  ai_slug_description: ai_slug_description,
@@ -441,6 +452,7 @@ var zh = {
441
452
  conversationalSearch_viewPDF: conversationalSearch_viewPDF,
442
453
  conversationalSearch_viewSourceDocument: conversationalSearch_viewSourceDocument,
443
454
  conversationalSearch_toggleCitations: conversationalSearch_toggleCitations,
455
+ conversationalSearch_responseStopped: conversationalSearch_responseStopped,
444
456
  launcher_chatNow: launcher_chatNow,
445
457
  iframe_ariaSourceLoaded: iframe_ariaSourceLoaded,
446
458
  iframe_ariaImageAltText: iframe_ariaImageAltText,
@@ -510,7 +522,17 @@ var zh = {
510
522
  feedback_defaultPrompt: feedback_defaultPrompt,
511
523
  feedback_defaultPlaceholder: feedback_defaultPlaceholder,
512
524
  feedback_submitLabel: feedback_submitLabel,
513
- feedback_cancelLabel: feedback_cancelLabel
525
+ feedback_cancelLabel: feedback_cancelLabel,
526
+ input_stopResponse: input_stopResponse,
527
+ messages_responseStopped: messages_responseStopped,
528
+ chainOfThought_stepTitle: chainOfThought_stepTitle,
529
+ chainOfThought_inputLabel: chainOfThought_inputLabel,
530
+ chainOfThought_outputLabel: chainOfThought_outputLabel,
531
+ chainOfThought_toolLabel: chainOfThought_toolLabel,
532
+ chainOfThought_statusSucceededLabel: chainOfThought_statusSucceededLabel,
533
+ chainOfThought_statusFailedLabel: chainOfThought_statusFailedLabel,
534
+ chainOfThought_statusProcessingLabel: chainOfThought_statusProcessingLabel,
535
+ chainOfThought_explainabilityLabel: chainOfThought_explainabilityLabel
514
536
  };
515
537
 
516
- export { agent_agentEndedChat, agent_agentEndedChatNoName, agent_agentJoinedName, agent_agentJoinedNoName, agent_agentLeftChat, agent_agentLeftChatNoName, agent_agentNoNameTitle, agent_ariaAgentAvatar, agent_ariaGenericAvatar, agent_ariaGenericBotAvatar, agent_botReturned, agent_cardButtonChatEnded, agent_cardButtonChatRequested, agent_cardButtonConnected, agent_cardMessageChatEnded, agent_cardMessageConnected, agent_chatTitle, agent_confirmCancelRequestMessage, agent_confirmCancelRequestNo, agent_confirmCancelRequestTitle, agent_confirmCancelRequestYes, agent_confirmEndChat, agent_confirmEndChatNo, agent_confirmEndChatYes, agent_confirmEndSuspendedYes, agent_confirmSuspendedEndChatMessage, agent_confirmSuspendedEndChatTitle, agent_connectButtonCancel, agent_connectWaiting, agent_connectedButtonEndChat, agent_connecting, agent_connectingMinutes, agent_connectingQueue, agent_conversationWasEnded, agent_defaultMessageToAgent, agent_disconnected, agent_endChat, agent_inputPlaceholderConnecting, agent_inputPlaceholderReconnecting, agent_newMessage, agent_noName, agent_reason_error, agent_reconnected, agent_sdMissingWarning, agent_sharingAcceptButton, agent_sharingAccepted, agent_sharingCancelled, agent_sharingDeclineButton, agent_sharingDeclined, agent_sharingEnded, agent_sharingRequestMessage, agent_sharingRequestTitle, agent_sharingRequested, agent_sharingStopSharingButton, agent_startChat, agent_suspendedWarning, agent_transferring, agent_transferringNoName, agent_youConnectedWarning, agent_youEndedChat, ai_slug_description, ai_slug_title, branding_ariaInformationButton, branding_description, branding_headline, branding_sign_up, buttons_cancel, buttons_restart, buttons_retry, carousel_nextNavButton, carousel_prevNavButton, channelTransfer_failed, closeAndRestartModal_cancel, closeAndRestartModal_confirm, closeAndRestartModal_message, closeAndRestartModal_title, components_overflow_ariaLabel, components_swiper_currentLabel, conversationalSearch_streamingIncomplete, conversationalSearch_toggleCitations, conversationalSearch_viewPDF, conversationalSearch_viewSourceDocument, datePicker_chooseDate, datePicker_confirmDate, zh as default, default_agent_availableMessage, default_agent_unavailableMessage, disclaimer_accept, disclaimer_title, documentViewer_ariaRoleLabel, documentViewer_clearSearch, documentViewer_close, documentViewer_currentPage, documentViewer_download, documentViewer_loadError, documentViewer_loadErrorRetry, documentViewer_loadErrorTitle, documentViewer_nextMatch, documentViewer_nextPage, documentViewer_pagesLabel, documentViewer_previousMatch, documentViewer_previousPage, documentViewer_search, documentViewer_title, documentViewer_zoomIn, documentViewer_zoomOut, documentViewer_zoomReset, errors_agentAppSessionExpired, errors_ariaMessageFailed, errors_ariaMessageRetrying, errors_audioSource, errors_busy, errors_communicating, errors_connectingToAgent, errors_generalContent, errors_iframeSource, errors_imageSource, errors_noAgentsAvailable, errors_noAgentsJoined, errors_singleMessage, errors_somethingWrong, errors_videoSource, feedback_cancelLabel, feedback_defaultPlaceholder, feedback_defaultPrompt, feedback_defaultTitle, feedback_negativeLabel, feedback_positiveLabel, feedback_submitLabel, fileSharing_agentMessageText, fileSharing_ariaAnnounceSuccess, fileSharing_fileIcon, fileSharing_fileTooLarge, fileSharing_removeButtonTitle, fileSharing_request, fileSharing_statusUploading, fileSharing_uploadFailed, general_ariaAnnounceClosedInformationOverlay, general_ariaAnnounceEscapeOverlay, general_ariaAnnounceOpenedInformationOverlay, general_ariaCloseInformationOverlay, general_returnToAssistant, header_ariaBotAvatar, header_ariaCloseRestart, header_overflowMenu_options, header_previewLinkTitle, homeScreen_ariaQuickStartListButton, homeScreen_ariaQuickStartListClosed, homeScreen_ariaQuickStartListOpened, homeScreen_overflowMenuHomeScreen, homeScreen_returnToAssistant, homeScreen_returnToHome, icon_ariaUnreadMessages, iframe_ariaClickPreviewCard, iframe_ariaClosePanel, iframe_ariaClosedPanel, iframe_ariaImageAltText, iframe_ariaOpenedPanel, iframe_ariaSourceLoaded, input_ariaLabel, input_buttonLabel, input_completionsTagApp, input_completionsTagAssistant, input_placeholder, input_uploadButtonLabel, launcher_ariaIsExpanded, launcher_chatNow, launcher_closeButton, launcher_desktopGreeting, launcher_isClosed, launcher_isOpen, launcher_isTourClosed, launcher_isTourOpen, launcher_mobileGreeting, message_labelBot, message_labelYou, messages_agentIsTyping, messages_agentSaid, messages_botIsLoading, messages_botIsTyping, messages_botSaid, messages_scrollHandle, messages_scrollHandleDetailed, messages_scrollHandleEnd, messages_scrollHandleEndDetailed, messages_searchResults, messages_searchResultsCollapse, messages_searchResultsExpand, messages_searchResultsLink, messages_searchResultsOpenDocument, messages_searchResultsOpenDocumentWithLabel, messages_youSaid, notifications_toastClose, options_ariaOptionsDisabled, options_select, serviceDesk_niceDFO_fileUploadError, sessionHistory_expired, sessionHistory_expiredNoCopy, showMore, showMoreResults, suggestions_ariaAnnounceButtonShow, suggestions_ariaAnnounceListClosed, suggestions_ariaAnnounceListCollapsed, suggestions_ariaAnnounceListExpanded, suggestions_ariaAnnounceListOpen, suggestions_ariaButtonToClose, suggestions_ariaButtonToOpen, suggestions_ariaMessageButtons, suggestions_ariaPanelButtonToggle, suggestions_connectToAgent, suggestions_noSearchResults, suggestions_searchBookmarkButtonDescription, suggestions_searchBookmarkFooter, suggestions_searchBookmarkHeader, suggestions_sectionTitleAlternateResponses, suggestions_sectionTitleContact, suggestions_sectionTitleSearch, suggestions_sectionTitleStarters, suggestions_title, table_filterPlaceholder, table_itemsPerPage, table_nextPage, table_paginationStatus, table_paginationSupplementalText, table_previousPage, tour_ariaChatButton, tour_ariaCloseButton, tour_ariaMinimizeButton, tour_ariaNextButton, tour_ariaPreviousButton, tour_doneButton, tour_errorBody, tour_errorFetchingStep, tour_errorTitle, tour_instructions, tour_restartButton, tour_resumeButton, tour_startButton, window_ariaChatRegion, window_ariaChatRegionNamespace, window_ariaTourRegion, window_ariaTourRegionNamespace, window_ariaWindowClosed, window_ariaWindowLoading, window_ariaWindowOpened, window_title };
538
+ export { agent_agentEndedChat, agent_agentEndedChatNoName, agent_agentJoinedName, agent_agentJoinedNoName, agent_agentLeftChat, agent_agentLeftChatNoName, agent_agentNoNameTitle, agent_ariaAgentAvatar, agent_ariaGenericAvatar, agent_ariaGenericBotAvatar, agent_botReturned, agent_cardButtonChatEnded, agent_cardButtonChatRequested, agent_cardButtonConnected, agent_cardMessageChatEnded, agent_cardMessageConnected, agent_chatTitle, agent_confirmCancelRequestMessage, agent_confirmCancelRequestNo, agent_confirmCancelRequestTitle, agent_confirmCancelRequestYes, agent_confirmEndChat, agent_confirmEndChatNo, agent_confirmEndChatYes, agent_confirmEndSuspendedYes, agent_confirmSuspendedEndChatMessage, agent_confirmSuspendedEndChatTitle, agent_connectButtonCancel, agent_connectWaiting, agent_connectedButtonEndChat, agent_connecting, agent_connectingMinutes, agent_connectingQueue, agent_conversationWasEnded, agent_defaultMessageToAgent, agent_disconnected, agent_endChat, agent_inputPlaceholderConnecting, agent_inputPlaceholderReconnecting, agent_newMessage, agent_noName, agent_reason_error, agent_reconnected, agent_sdMissingWarning, agent_sharingAcceptButton, agent_sharingAccepted, agent_sharingCancelled, agent_sharingDeclineButton, agent_sharingDeclined, agent_sharingEnded, agent_sharingRequestMessage, agent_sharingRequestTitle, agent_sharingRequested, agent_sharingStopSharingButton, agent_startChat, agent_suspendedWarning, agent_transferring, agent_transferringNoName, agent_youConnectedWarning, agent_youEndedChat, ai_slug_description, ai_slug_title, branding_ariaInformationButton, branding_description, branding_headline, branding_sign_up, buttons_cancel, buttons_restart, buttons_retry, carousel_nextNavButton, carousel_prevNavButton, chainOfThought_explainabilityLabel, chainOfThought_inputLabel, chainOfThought_outputLabel, chainOfThought_statusFailedLabel, chainOfThought_statusProcessingLabel, chainOfThought_statusSucceededLabel, chainOfThought_stepTitle, chainOfThought_toolLabel, channelTransfer_failed, closeAndRestartModal_cancel, closeAndRestartModal_confirm, closeAndRestartModal_message, closeAndRestartModal_title, components_overflow_ariaLabel, components_swiper_currentLabel, conversationalSearch_responseStopped, conversationalSearch_streamingIncomplete, conversationalSearch_toggleCitations, conversationalSearch_viewPDF, conversationalSearch_viewSourceDocument, datePicker_chooseDate, datePicker_confirmDate, zh as default, default_agent_availableMessage, default_agent_unavailableMessage, disclaimer_accept, disclaimer_title, documentViewer_ariaRoleLabel, documentViewer_clearSearch, documentViewer_close, documentViewer_currentPage, documentViewer_download, documentViewer_loadError, documentViewer_loadErrorRetry, documentViewer_loadErrorTitle, documentViewer_nextMatch, documentViewer_nextPage, documentViewer_pagesLabel, documentViewer_previousMatch, documentViewer_previousPage, documentViewer_search, documentViewer_title, documentViewer_zoomIn, documentViewer_zoomOut, documentViewer_zoomReset, errors_agentAppSessionExpired, errors_ariaMessageFailed, errors_ariaMessageRetrying, errors_audioSource, errors_busy, errors_communicating, errors_connectingToAgent, errors_generalContent, errors_iframeSource, errors_imageSource, errors_noAgentsAvailable, errors_noAgentsJoined, errors_singleMessage, errors_somethingWrong, errors_videoSource, feedback_cancelLabel, feedback_defaultPlaceholder, feedback_defaultPrompt, feedback_defaultTitle, feedback_negativeLabel, feedback_positiveLabel, feedback_submitLabel, fileSharing_agentMessageText, fileSharing_ariaAnnounceSuccess, fileSharing_fileIcon, fileSharing_fileTooLarge, fileSharing_removeButtonTitle, fileSharing_request, fileSharing_statusUploading, fileSharing_uploadFailed, general_ariaAnnounceClosedInformationOverlay, general_ariaAnnounceEscapeOverlay, general_ariaAnnounceOpenedInformationOverlay, general_ariaCloseInformationOverlay, general_returnToAssistant, header_ariaBotAvatar, header_ariaCloseRestart, header_overflowMenu_options, header_previewLinkTitle, homeScreen_ariaQuickStartListButton, homeScreen_ariaQuickStartListClosed, homeScreen_ariaQuickStartListOpened, homeScreen_overflowMenuHomeScreen, homeScreen_returnToAssistant, homeScreen_returnToHome, icon_ariaUnreadMessages, iframe_ariaClickPreviewCard, iframe_ariaClosePanel, iframe_ariaClosedPanel, iframe_ariaImageAltText, iframe_ariaOpenedPanel, iframe_ariaSourceLoaded, input_ariaLabel, input_buttonLabel, input_completionsTagApp, input_completionsTagAssistant, input_placeholder, input_stopResponse, input_uploadButtonLabel, launcher_ariaIsExpanded, launcher_chatNow, launcher_closeButton, launcher_desktopGreeting, launcher_isClosed, launcher_isOpen, launcher_isTourClosed, launcher_isTourOpen, launcher_mobileGreeting, message_labelBot, message_labelYou, messages_agentIsTyping, messages_agentSaid, messages_botIsLoading, messages_botIsTyping, messages_botSaid, messages_responseStopped, messages_scrollHandle, messages_scrollHandleDetailed, messages_scrollHandleEnd, messages_scrollHandleEndDetailed, messages_searchResults, messages_searchResultsCollapse, messages_searchResultsExpand, messages_searchResultsLink, messages_searchResultsOpenDocument, messages_searchResultsOpenDocumentWithLabel, messages_youSaid, notifications_toastClose, options_ariaOptionsDisabled, options_select, serviceDesk_niceDFO_fileUploadError, sessionHistory_expired, sessionHistory_expiredNoCopy, showMore, showMoreResults, suggestions_ariaAnnounceButtonShow, suggestions_ariaAnnounceListClosed, suggestions_ariaAnnounceListCollapsed, suggestions_ariaAnnounceListExpanded, suggestions_ariaAnnounceListOpen, suggestions_ariaButtonToClose, suggestions_ariaButtonToOpen, suggestions_ariaMessageButtons, suggestions_ariaPanelButtonToggle, suggestions_connectToAgent, suggestions_noSearchResults, suggestions_searchBookmarkButtonDescription, suggestions_searchBookmarkFooter, suggestions_searchBookmarkHeader, suggestions_sectionTitleAlternateResponses, suggestions_sectionTitleContact, suggestions_sectionTitleSearch, suggestions_sectionTitleStarters, suggestions_title, table_filterPlaceholder, table_itemsPerPage, table_nextPage, table_paginationStatus, table_paginationSupplementalText, table_previousPage, tour_ariaChatButton, tour_ariaCloseButton, tour_ariaMinimizeButton, tour_ariaNextButton, tour_ariaPreviousButton, tour_doneButton, tour_errorBody, tour_errorFetchingStep, tour_errorTitle, tour_instructions, tour_restartButton, tour_resumeButton, tour_startButton, window_ariaChatRegion, window_ariaChatRegionNamespace, window_ariaTourRegion, window_ariaTourRegionNamespace, window_ariaWindowClosed, window_ariaWindowLoading, window_ariaWindowOpened, window_title };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  *
3
- * (C) Copyright IBM Corp. 2017, 2024. All Rights Reserved.
3
+ * (C) Copyright IBM Corp. 2017, 2025. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6
6
  * in compliance with the License. You may obtain a copy of the License at
@@ -740,7 +740,7 @@ type DateItem = GenericItem;
740
740
  type TableItemCell = string | number;
741
741
  /**
742
742
  * A table item returned in a message response from a back-end. This response type is used when displaying a table of data to the user.
743
- * The content of the table is up to the client and is authored using json.
743
+ * The content of the table is up to the client and is authored using json.
744
744
  */
745
745
  interface TableItem<TUserDefinedType = Record<string, unknown>> extends GenericItem<TUserDefinedType> {
746
746
  /**
@@ -775,6 +775,16 @@ interface TableItemRow {
775
775
  * Additional metadata associated with a specific message item (response type) inside of a message response.
776
776
  */
777
777
  interface ItemStreamingMetadata {
778
+ /**
779
+ * When included on a partial_item, indicates if the stream can be cancelled.
780
+ * If so, a "stop streaming" button will display in the UI.
781
+ */
782
+ cancellable?: boolean;
783
+ /**
784
+ * Indicates if the stream has stopped which will trigger the UI to respond with appropriate a11y states
785
+ * and messaging.
786
+ */
787
+ stream_stopped?: boolean;
778
788
  /**
779
789
  * An identifier for this item within the full message response. This ID is used to correlate a partial or
780
790
  * complete item chunk with other chunks that represent the same item. This ID is only unique for a given message
@@ -1783,6 +1793,15 @@ interface ChatHeaderConfig {
1783
1793
  }
1784
1794
 
1785
1795
 
1796
+ /**
1797
+ * The types of corners web chat can have.
1798
+ */
1799
+ declare enum CornersType {
1800
+ ROUND = "round",
1801
+ SQUARE = "square"
1802
+ }
1803
+
1804
+
1786
1805
 
1787
1806
  /**
1788
1807
  * A general type to indicate any message.
@@ -3511,6 +3530,19 @@ interface TypeAndHandler {
3511
3530
  */
3512
3531
  handler: EventBusHandler;
3513
3532
  }
3533
+ /**
3534
+ * The main chat header customization options.
3535
+ */
3536
+ interface ChatHeaderAvatarConfig {
3537
+ /**
3538
+ * The url or data uri of the image to display in the main chat header.
3539
+ */
3540
+ url: string;
3541
+ /**
3542
+ * Indicates if the image should be given rounded corners. The default value is "square".
3543
+ */
3544
+ corners?: CornersType;
3545
+ }
3514
3546
  /**
3515
3547
  * This is a subset of the public interface that provides methods that can be used by the user to control the widget
3516
3548
  * and have it perform certain actions.
@@ -3683,6 +3715,10 @@ interface ChatActions {
3683
3715
  * to nothing when the AI theme is turned on.
3684
3716
  */
3685
3717
  updateMainHeaderTitle: (title?: null | string) => void;
3718
+ /**
3719
+ * Updates the avatar image of the bot panel.
3720
+ */
3721
+ updateMainHeaderAvatar: (config?: ChatHeaderAvatarConfig) => void;
3686
3722
  /**
3687
3723
  * Add a system level notification to the list of system notifications.
3688
3724
  * @deprecated
@@ -4219,13 +4255,6 @@ declare enum CarbonTheme {
4219
4255
  G90 = "g90",
4220
4256
  G100 = "g100"
4221
4257
  }
4222
- /**
4223
- * The types of corners web chat can have.
4224
- */
4225
- declare enum CornersType {
4226
- ROUND = "round",
4227
- SQUARE = "square"
4228
- }
4229
4258
  /**
4230
4259
  * The different categories of errors that the system can record. These values are published for end user consumption.
4231
4260
  */
@@ -4445,4 +4474,4 @@ interface ChatCustomElementProps extends ChatContainerProps {
4445
4474
  declare function ChatCustomElement({ config, onBeforeRender, onAfterRender, renderUserDefinedResponse, renderWriteableElements, className, id, onViewChange, }: ChatCustomElementProps): React.JSX.Element;
4446
4475
  declare const ChatCustomElementExport: React.MemoExoticComponent<typeof ChatCustomElement>;
4447
4476
 
4448
- export { type AdditionalDataToAgent, type AgentAppConfig, type AgentAppInfo, type AgentAvailability, AgentMessageType, type AgentProfile, AgentsOnlineStatus, type AudioItem, type BaseMessageInput, type BusEvent, type BusEventAgentAreAnyAgentsOnline, type BusEventAgentEndChat, type BusEventAgentPreEndChat, type BusEventAgentPreReceive, type BusEventAgentPreSend, type BusEventAgentPreSessionHistory, type BusEventAgentPreStartChat, type BusEventAgentReceive, type BusEventAgentSend, type BusEventChatReady, type BusEventChunkUserDefinedResponse, type BusEventClosePanelButtonClicked, type BusEventCustomPanelClose, type BusEventCustomPanelOpen, type BusEventCustomPanelPreClose, type BusEventCustomPanelPreOpen, type BusEventFeedback, type BusEventGenesysMessengerAuthError, type BusEventGenesysMessengerAuthProvider, type BusEventGenesysMessengerGetAuthCode, type BusEventGenesysMessengerLoggedOut, type BusEventGenesysMessengerReauthenticate, type BusEventHistoryBegin, type BusEventHistoryEnd, type BusEventMessageItemCustom, type BusEventNiceDFOGetAuthCode, type BusEventPreReceive, type BusEventPreReset, type BusEventPreSend, type BusEventReceive, type BusEventReset, type BusEventSend, type BusEventTourEnd, type BusEventTourStart, type BusEventTourStep, BusEventType, type BusEventUserDefinedResponse, type BusEventViewChange, type BusEventViewPreChange, type ButtonItem, ButtonItemKind, ButtonItemType, CarbonTheme, type CardItem, type CarouselItem, CatastrophicErrorType, type ChainOfThoughtStep, ChainOfThoughtStepStatus, type ChangeFunction, ChatContainerExport as ChatContainer, type ChatContainerProps, ChatCustomElementExport as ChatCustomElement, type ChatCustomElementProps, type ChatHeaderButton, type ChatHeaderConfig, type ChatHeaderGroupMenu, type ChatHeaderGroupMenuItem, type ChatHeaderLink, type ChatHeaderMenu, type ChatHeaderMenuItemTypes, ChatHeaderObjectType, type ChatHeaderObjectTypes, type ChatInstance, type ChatInstanceMessaging, type ChatInstanceNotifications, type ChatInstanceServiceDeskActions, type ChatInstanceTours, type Chunk, type CompleteItemChunk, type ConnectToAgentItem, type ConnectToAgentItemTransferInfo, type ConnectingErrorInfo, type ConversationalSearchItem, type ConversationalSearchItemCitation, CornersType, CustomEventType, type CustomMenuOption, type CustomPanelConfigOptions, type CustomPanelInstance, type CustomPanels, type CustomSendMessageOptions, type DateItem, type DisclaimerPublicConfig, type DisconnectedErrorInfo, type EndChatInfo, ErrorType, type EventBusHandler, type EventHandlers, type EventInput, type EventInputData, FeedbackInteractionType, FileStatusValue, type FileUpload, type FinalResponseChunk, type GenericItem, type GenericItemMessageFeedbackOptions, type GenericItemMessageOptions, type GenesysMessengerConfig, type GridItem, type HasAddRemoveClassName, type HeaderConfig, type HistoryItem, HomeScreenBackgroundType, type HomeScreenConfig, type HomeScreenStarterButton, type HomeScreenStarterButtons, type HorizontalCellAlignment, type IFrameItem, IFrameItemDisplayOption, type ImageItem, type IncreaseOrDecrease, type InlineErrorItem, type InstanceElements, type InstanceInputElement, type ItemStreamingMetadata, LauncherType, type LayoutConfig, type MediaItem, type MediaItemDimensions, type Message, type MessageContext, type MessageGlobalContext, type MessageHistory, type MessageInput, MessageInputType, type MessageItemPanelInfo, type MessageOutput, type MessageRequest, type MessageResponse, MessageResponseTypes, MessageSendSource, type MessageSkillContext, type MessageSystemContext, MinimizeButtonIconType, type NiceDFOConfig, type NotificationMessage, type OnErrorData, OnErrorType, type Option, type OptionItem, OptionItemPreference, type PageLinkConfig, type PageLinkIDConfig, type PartialItemChunk, type PartialOrCompleteItemChunk, type PauseItem, type PublicConfig, type PublicConfigMessaging, type PublicWebChatServiceDeskState, type PublicWebChatState, type RenderUserDefinedResponse, type RenderUserDefinedState, type RenderWriteableElementResponse, ScreenShareState, type SendOptions, type ServiceDesk, type ServiceDeskCallback, type ServiceDeskCapabilities, type ServiceDeskErrorInfo, type ServiceDeskFactoryParameters, type ServiceDeskPublicConfig, type StartChatOptions, type StreamChunk, type TableItem, type TableItemCell, type TableItemRow, type TableItemRowExpandableSectionItem, type TextItem, type ThemeConfig, TourEndReason, TourStartReason, type TourStepGenericItem, type TypeAndHandler, type UpdateHistoryEvent, type UserDefinedItem, type UserMessageErrorInfo, type VerticalCellAlignment, type VideoItem, ViewChangeReason, type ViewState, ViewType, type WithBodyAndFooter, WriteableElementName, type WriteableElements };
4477
+ export { type AdditionalDataToAgent, type AgentAppConfig, type AgentAppInfo, type AgentAvailability, AgentMessageType, type AgentProfile, AgentsOnlineStatus, type AudioItem, type BaseMessageInput, type BusEvent, type BusEventAgentAreAnyAgentsOnline, type BusEventAgentEndChat, type BusEventAgentPreEndChat, type BusEventAgentPreReceive, type BusEventAgentPreSend, type BusEventAgentPreSessionHistory, type BusEventAgentPreStartChat, type BusEventAgentReceive, type BusEventAgentSend, type BusEventChatReady, type BusEventChunkUserDefinedResponse, type BusEventClosePanelButtonClicked, type BusEventCustomPanelClose, type BusEventCustomPanelOpen, type BusEventCustomPanelPreClose, type BusEventCustomPanelPreOpen, type BusEventFeedback, type BusEventGenesysMessengerAuthError, type BusEventGenesysMessengerAuthProvider, type BusEventGenesysMessengerGetAuthCode, type BusEventGenesysMessengerLoggedOut, type BusEventGenesysMessengerReauthenticate, type BusEventHistoryBegin, type BusEventHistoryEnd, type BusEventMessageItemCustom, type BusEventNiceDFOGetAuthCode, type BusEventPreReceive, type BusEventPreReset, type BusEventPreSend, type BusEventReceive, type BusEventReset, type BusEventSend, type BusEventTourEnd, type BusEventTourStart, type BusEventTourStep, BusEventType, type BusEventUserDefinedResponse, type BusEventViewChange, type BusEventViewPreChange, type ButtonItem, ButtonItemKind, ButtonItemType, CarbonTheme, type CardItem, type CarouselItem, CatastrophicErrorType, type ChainOfThoughtStep, ChainOfThoughtStepStatus, type ChangeFunction, ChatContainerExport as ChatContainer, type ChatContainerProps, ChatCustomElementExport as ChatCustomElement, type ChatCustomElementProps, type ChatHeaderAvatarConfig, type ChatHeaderButton, type ChatHeaderConfig, type ChatHeaderGroupMenu, type ChatHeaderGroupMenuItem, type ChatHeaderLink, type ChatHeaderMenu, type ChatHeaderMenuItemTypes, ChatHeaderObjectType, type ChatHeaderObjectTypes, type ChatInstance, type ChatInstanceMessaging, type ChatInstanceNotifications, type ChatInstanceServiceDeskActions, type ChatInstanceTours, type Chunk, type CompleteItemChunk, type ConnectToAgentItem, type ConnectToAgentItemTransferInfo, type ConnectingErrorInfo, type ConversationalSearchItem, type ConversationalSearchItemCitation, CornersType, CustomEventType, type CustomMenuOption, type CustomPanelConfigOptions, type CustomPanelInstance, type CustomPanels, type CustomSendMessageOptions, type DateItem, type DisclaimerPublicConfig, type DisconnectedErrorInfo, type EndChatInfo, ErrorType, type EventBusHandler, type EventHandlers, type EventInput, type EventInputData, FeedbackInteractionType, FileStatusValue, type FileUpload, type FinalResponseChunk, type GenericItem, type GenericItemMessageFeedbackOptions, type GenericItemMessageOptions, type GenesysMessengerConfig, type GridItem, type HasAddRemoveClassName, type HeaderConfig, type HistoryItem, HomeScreenBackgroundType, type HomeScreenConfig, type HomeScreenStarterButton, type HomeScreenStarterButtons, type HorizontalCellAlignment, type IFrameItem, IFrameItemDisplayOption, type ImageItem, type IncreaseOrDecrease, type InlineErrorItem, type InstanceElements, type InstanceInputElement, type ItemStreamingMetadata, LauncherType, type LayoutConfig, type MediaItem, type MediaItemDimensions, type Message, type MessageContext, type MessageGlobalContext, type MessageHistory, type MessageInput, MessageInputType, type MessageItemPanelInfo, type MessageOutput, type MessageRequest, type MessageResponse, MessageResponseTypes, MessageSendSource, type MessageSkillContext, type MessageSystemContext, MinimizeButtonIconType, type NiceDFOConfig, type NotificationMessage, type OnErrorData, OnErrorType, type Option, type OptionItem, OptionItemPreference, type PageLinkConfig, type PageLinkIDConfig, type PartialItemChunk, type PartialOrCompleteItemChunk, type PauseItem, type PublicConfig, type PublicConfigMessaging, type PublicWebChatServiceDeskState, type PublicWebChatState, type RenderUserDefinedResponse, type RenderUserDefinedState, type RenderWriteableElementResponse, ScreenShareState, type SendOptions, type ServiceDesk, type ServiceDeskCallback, type ServiceDeskCapabilities, type ServiceDeskErrorInfo, type ServiceDeskFactoryParameters, type ServiceDeskPublicConfig, type StartChatOptions, type StreamChunk, type TableItem, type TableItemCell, type TableItemRow, type TableItemRowExpandableSectionItem, type TextItem, type ThemeConfig, TourEndReason, TourStartReason, type TourStepGenericItem, type TypeAndHandler, type UpdateHistoryEvent, type UserDefinedItem, type UserMessageErrorInfo, type VerticalCellAlignment, type VideoItem, ViewChangeReason, type ViewState, ViewType, type WithBodyAndFooter, WriteableElementName, type WriteableElements };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon/ai-chat",
3
- "version": "0.1.7-test-no-cjs",
3
+ "version": "0.2.0-0",
4
4
  "description": "Be sure to review the [chat documentation](https://web-chat.global.assistant.watson.cloud.ibm.com/carbon-chat.html).",
5
5
  "author": "IBM Corp",
6
6
  "license": "Apache-2.0",
@@ -12,23 +12,24 @@
12
12
  },
13
13
  "exports": {
14
14
  ".": {
15
- "import": "./dist/es/aiChatEntry.js",
15
+ "default": "./dist/es/aiChatEntry.js",
16
16
  "types": "./dist/types/aiChatEntry.d.ts"
17
17
  },
18
18
  "./dist/es/cds-aichat-container.js": {
19
- "import": "./dist/es/cds-aichat-container.js",
19
+ "default": "./dist/es/cds-aichat-container.js",
20
20
  "types": "./dist/types/aiChatEntry.d.ts"
21
21
  },
22
22
  "./dist/es/cds-aichat-custom-element.js": {
23
- "import": "./dist/es/cds-aichat-custom-element.js",
23
+ "default": "./dist/es/cds-aichat-custom-element.js",
24
24
  "types": "./dist/types/aiChatEntry.d.ts"
25
25
  },
26
+ "./dist/es/*": "./dist/es/*",
26
27
  "./dist/web-components/cds-aichat-container/index.js": {
27
- "import": "./dist/es/cds-aichat-container.js",
28
+ "default": "./dist/es/cds-aichat-container.js",
28
29
  "types": "./dist/types/aiChatEntry.d.ts"
29
30
  },
30
31
  "./dist/web-components/cds-aichat-custom-element/index.js": {
31
- "import": "./dist/es/cds-aichat-custom-element.js",
32
+ "default": "./dist/es/cds-aichat-custom-element.js",
32
33
  "types": "./dist/types/aiChatEntry.d.ts"
33
34
  }
34
35
  },
@@ -47,13 +48,16 @@
47
48
  "@carbon/web-components": "^2.17.0",
48
49
  "@floating-ui/react": "^0.26.0",
49
50
  "classnames": "^2.5.1",
51
+ "commit-and-tag-version": "^12.5.0",
50
52
  "lit": "^3.1.0",
51
53
  "prop-types": "^15.7.2",
52
54
  "react": "^18.0.0",
53
55
  "react-dom": "^18.0.0",
54
56
  "tabbable": "^6.2.0",
55
57
  "ts-lit-plugin": "^2.0.2",
56
- "tslib": "^2.6.3"
58
+ "tslib": "^2.6.3",
59
+ "tsx": "^4.19.3",
60
+ "typedoc": "^0.27.9"
57
61
  },
58
62
  "peerDependencies": {
59
63
  "@carbon/icon-helpers": "^10.53.0",
@@ -111,6 +115,19 @@
111
115
  }
112
116
  },
113
117
  "scripts": {
118
+ "build": "npm run build:chat && webpack --config ../../build/webpack.aichat.docs.js && mkdirp ./src/build && cp ./dist/types/aiChatEntry.d.ts ./src/build && typedoc --disableSources --readme none --name 'Carbon AI chat' --out ./dist/docs/carbon-tsdocs ./src/build/aiChatEntry.d.ts && rimraf ./src/build",
119
+ "build:chat": "rollup -c ../../build/rollup.aichat.js",
120
+ "build:profile": "profile=true rollup -c ../../build/rollup.aichat.js",
121
+ "clean": "mkdirp dist && rimraf dist/* && mkdirp ./src/build && rimraf ./src/build/*",
122
+ "release": "commit-and-tag-version -t @carbon/ai-chat@",
123
+ "release:patch": "npm run release -- --release-as patch",
124
+ "release:minor": "npm run release -- --release-as minor",
125
+ "release:major": "npm run release -- --release-as major",
126
+ "release:prerelease:patch": "npm run release -- --release-as patch --prerelease",
127
+ "release:prerelease:minor": "npm run release -- --release-as minor --prerelease",
128
+ "release:prerelease:major": "npm run release -- --release-as major --prerelease",
129
+ "do-release": "tsx ../../scripts/cli-do-release-carbon-ai-chat.ts",
130
+ "start": "rollup -c ../../build/rollup.aichat.js --watch",
114
131
  "test": "echo \"Error: no test specified\" && exit 1"
115
132
  },
116
133
  "repository": {
package/dist/es/render.js DELETED
@@ -1,105 +0,0 @@
1
- /*
2
-
3
-
4
- (C) Copyright IBM Corp. 2017, 2025. All Rights Reserved.
5
-
6
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7
- in compliance with the License. You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software distributed under the License
12
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13
- or implied. See the License for the specific language governing permissions and limitations under
14
- the License.
15
-
16
- @carbon/ai-chat 0.1.7-test-no-cjs
17
-
18
- Built: Feb 26 2025 2:36 pm -05:00
19
-
20
-
21
-
22
- */
23
- import React__default from 'react';
24
- import ReactDOM from 'react-dom';
25
- import { t as loadStyles, u as loadStylesWithReset, v as App, w as getVersionLoaded, x as getCDNURL } from './AppContainer.js';
26
- import 'react-intl';
27
- import 'tslib';
28
- import '@carbon/icons-react';
29
- import 'classnames';
30
- import '@carbon/react';
31
- import 'react-redux';
32
- import 'tabbable';
33
- import 'lit';
34
- import 'lit/decorators.js';
35
- import '@carbon/web-components/es/components/button/index.js';
36
- import '@carbon/web-components/es/components/overflow-menu/index.js';
37
- import 'lit/directives/unsafe-html.js';
38
- import 'prop-types';
39
- import '@carbon/web-components/es/components/slug/index.js';
40
- import '@carbon/web-components/es/components/popover/defs.js';
41
- import '@carbon/web-components/es/components/slug/defs.js';
42
- import '@floating-ui/react';
43
- import '@carbon/web-components/es/components/slug/slug-action-button.js';
44
- import '@carbon/web-components/es/components/slug/slug.js';
45
- import '@carbon/web-components/es/components/inline-loading/index.js';
46
- import '@carbon/icon-helpers';
47
- import '@carbon/icons';
48
- import 'lit/directives/unsafe-svg.js';
49
- import '@carbon/web-components/es/components/textarea/index.js';
50
- import '@carbon/web-components/es/components/icon-button/index.js';
51
- import '@carbon/web-components/es/components/tag/index.js';
52
- import '@carbon/web-components/es/components/chat-button/index.js';
53
- import '@carbon/web-components/es/components/button/button.js';
54
- import '@carbon/web-components/es/components/layer/index.js';
55
-
56
- /**
57
- *
58
- * IBM Confidential
59
- *
60
- * (C) Copyright IBM Corp. 2020, 2024
61
- *
62
- * The source code for this program is not published or otherwise
63
- * divested of its trade secrets, irrespective of what has been
64
- * deposited with the U. S. Copyright Office
65
- *
66
- * US Government Users Restricted Rights - Use, duplication or
67
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
68
- *
69
- */
70
- /* eslint-disable react/no-deprecated */
71
- async function loadFontFace(publicConfig) {
72
- const { getFontFace } = await import(/* webpackChunkName: "font-styles" */ './fontUtils.js');
73
- const versionLoaded = getVersionLoaded(publicConfig);
74
- const cdnEndpoint = getCDNURL(publicConfig);
75
- const baseURL = `${cdnEndpoint}/versions/${versionLoaded}`;
76
- return getFontFace(baseURL);
77
- }
78
- async function render({ serviceManager }) {
79
- const { config } = serviceManager.store.getState();
80
- const [applicationStyles, fontStyles] = await Promise.all([
81
- config.public.__ibm__?.useShadowRoot ? loadStyles() : loadStylesWithReset(),
82
- loadFontFace(config.public),
83
- ]);
84
- const container = document.createElement('div');
85
- serviceManager.container = container;
86
- container.classList.add('WatsonAssistantChatHost');
87
- if (serviceManager.customHostElement) {
88
- // Set container to grow to size of provided element. We don't do this sooner because "body" might be set to
89
- // display: flex;
90
- container.setAttribute('style', 'width:100% !important;height:100% !important');
91
- // Otherwise append the container to the provided element.
92
- serviceManager.customHostElement.appendChild(container);
93
- }
94
- else {
95
- // If an element was not provided, append the container to the body.
96
- document.body.appendChild(container);
97
- // When attaching the topmost element to the body, we want to make sure it doesn't interfere with the body
98
- // by covering anything up so we'll set it to a 0 size. The child elements use position: fixed along with
99
- // a size that break out of the container.
100
- container.setAttribute('style', 'width:0 !important;height:0 !important');
101
- }
102
- ReactDOM.render(React__default.createElement(App, { serviceManager: serviceManager, hostElement: serviceManager.customHostElement, applicationStyles: applicationStyles, fontStyles: fontStyles }), container);
103
- }
104
-
105
- export { render };