@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
@@ -1,31 +1,31 @@
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
  import { ChevronLeft, ChevronRight } from '@carbon/icons-react';
24
24
  import { Button } from '@carbon/react';
25
25
  import React__default, { forwardRef, useState, useRef, useEffect, useLayoutEffect, createContext } from 'react';
26
26
  import { useIntl } from 'react-intl';
27
27
  import { useSelector } from 'react-redux';
28
- import { aA as ChatWidthBreakpoint, ao as useLanguagePack, aB as ButtonKindEnum } from './AppContainer.js';
28
+ import { aD as ChatWidthBreakpoint, ar as useLanguagePack, aE as ButtonKindEnum } from './AppContainer.js';
29
29
  import 'tslib';
30
30
  import 'classnames';
31
31
  import 'tabbable';
@@ -38,6 +38,7 @@ import 'prop-types';
38
38
  import '@carbon/web-components/es/components/slug/index.js';
39
39
  import '@carbon/web-components/es/components/popover/defs.js';
40
40
  import '@carbon/web-components/es/components/slug/defs.js';
41
+ import '@carbon/web-components/es/components/skeleton-icon/index.js';
41
42
  import '@floating-ui/react';
42
43
  import 'react-dom';
43
44
  import '@carbon/web-components/es/components/slug/slug-action-button.js';
@@ -5659,20 +5660,6 @@ const SwiperSlide = /*#__PURE__*/forwardRef(function (_temp, externalRef) {
5659
5660
  });
5660
5661
  SwiperSlide.displayName = 'SwiperSlide';
5661
5662
 
5662
- /**
5663
- *
5664
- * IBM Confidential
5665
- *
5666
- * (C) Copyright IBM Corp. 2023, 2024
5667
- *
5668
- * The source code for this program is not published or otherwise
5669
- * divested of its trade secrets, irrespective of what has been
5670
- * deposited with the U. S. Copyright Office
5671
- *
5672
- * US Government Users Restricted Rights - Use, duplication or
5673
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
5674
- *
5675
- */
5676
5663
  const SWIPER_MODULES = [A11y, Navigation];
5677
5664
  // This object holds the left margin value for received messages.
5678
5665
  const MESSAGE_RECEIVED_LEFT_MARGIN_BY_BREAKPOINT = {
@@ -1,26 +1,26 @@
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
  */
23
- import { z as debugLog, aE as isConnectToAgent, aI as getSummaryMessages, aJ as asyncForEach, ak as assertType, j as MessageResponseTypes, e as ButtonItemKind, d as ButtonItemType, aF as isEmptyObject, N as consoleError, E as ErrorType, aQ as loadScript, Q as resolveOrTimeout, S as ScreenShareState } from './AppContainer.js';
22
+
23
+ import { D as debugLog, aH as isConnectToAgent, aL as getSummaryMessages, aM as asyncForEach, am as assertType, k as MessageResponseTypes, e as ButtonItemKind, d as ButtonItemType, aI as isEmptyObject, P as consoleError, E as ErrorType, aT as loadScript, Q as resolveOrTimeout, S as ScreenShareState } from './AppContainer.js';
24
24
  import { S as ServiceDeskImpl } from './ServiceDeskImpl.js';
25
25
  import 'react';
26
26
  import 'react-intl';
@@ -39,6 +39,7 @@ import 'prop-types';
39
39
  import '@carbon/web-components/es/components/slug/index.js';
40
40
  import '@carbon/web-components/es/components/popover/defs.js';
41
41
  import '@carbon/web-components/es/components/slug/defs.js';
42
+ import '@carbon/web-components/es/components/skeleton-icon/index.js';
42
43
  import '@floating-ui/react';
43
44
  import 'react-dom';
44
45
  import '@carbon/web-components/es/components/slug/slug-action-button.js';
@@ -54,20 +55,6 @@ import '@carbon/web-components/es/components/chat-button/index.js';
54
55
  import '@carbon/web-components/es/components/button/button.js';
55
56
  import '@carbon/web-components/es/components/layer/index.js';
56
57
 
57
- /**
58
- *
59
- * IBM Confidential
60
- *
61
- * (C) Copyright IBM Corp. 2023
62
- *
63
- * The source code for this program is not published or otherwise
64
- * divested of its trade secrets, irrespective of what has been
65
- * deposited with the U. S. Copyright Office
66
- *
67
- * US Government Users Restricted Rights - Use, duplication or
68
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
69
- *
70
- */
71
58
  /**
72
59
  * This service desk integration is an integration to the Genesys contact center using their Web Messenger
73
60
  * functionality.
@@ -1,26 +1,26 @@
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
  */
23
- import { y as cloneDeep, z as debugLog, D as BuiltInServiceDesk, G as getRegionHostname, J as updateFilesUploadInProgress, K as setIsConnecting, N as consoleError, E as ErrorType, P as addEndChatMessages, S as ScreenShareState, Q as resolveOrTimeout, R as endChat, U as deepFreeze, X as createMessageRequestForText, Y as inputItemToLocalItem, Z as createMessageRequestForFileUpload, _ as addMessages, $ as MessageErrorState, b as AgentsOnlineStatus, a0 as actions, a1 as createLocalMessageForInlineError, a2 as toPair, a3 as setIsScreenSharing, a4 as setIsReconnecting, a as AgentMessageType, a5 as setShowScreenShareRequest, a6 as createAgentLocalMessage, a7 as updateCapabilities, a8 as setAgentAvailability, a9 as setAgentJoined, aa as agentUpdateIsTyping, ab as createMessageResponseForText, ac as addDefaultsToMessage, ad as outputItemToLocalItem, ae as setAgentLeftChat, i as FileStatusValue, af as resolvablePromise, ag as merge, ah as setPersistedServiceDeskState, ai as VERSION } from './AppContainer.js';
22
+
23
+ import { z as cloneDeep, D as debugLog, G as BuiltInServiceDesk, J as getRegionHostname, K as updateFilesUploadInProgress, N as setIsConnecting, P as consoleError, E as ErrorType, S as ScreenShareState, Q as resolveOrTimeout, R as addAgentEndChatMessage, U as endChat, X as addBotReturnMessage, Y as deepFreeze, Z as createMessageRequestForText, _ as inputItemToLocalItem, $ as createMessageRequestForFileUpload, a0 as addMessages, a1 as MessageErrorState, b as AgentsOnlineStatus, a2 as actions, a3 as createLocalMessageForInlineError, a4 as toPair, a5 as setIsScreenSharing, a6 as setIsReconnecting, a as AgentMessageType, a7 as setShowScreenShareRequest, a8 as createAgentLocalMessage, a9 as updateCapabilities, aa as setAgentAvailability, ab as setAgentJoined, ac as agentUpdateIsTyping, ad as createMessageResponseForText, ae as addDefaultsToMessage, af as outputItemToLocalItem, ag as setAgentLeftChat, j as FileStatusValue, ah as resolvablePromise, ai as merge, aj as setPersistedServiceDeskState, ak as VERSION } from './AppContainer.js';
24
24
  import 'react';
25
25
  import 'react-intl';
26
26
  import 'tslib';
@@ -38,6 +38,7 @@ import 'prop-types';
38
38
  import '@carbon/web-components/es/components/slug/index.js';
39
39
  import '@carbon/web-components/es/components/popover/defs.js';
40
40
  import '@carbon/web-components/es/components/slug/defs.js';
41
+ import '@carbon/web-components/es/components/skeleton-icon/index.js';
41
42
  import '@floating-ui/react';
42
43
  import 'react-dom';
43
44
  import '@carbon/web-components/es/components/slug/slug-action-button.js';
@@ -53,20 +54,6 @@ import '@carbon/web-components/es/components/chat-button/index.js';
53
54
  import '@carbon/web-components/es/components/button/button.js';
54
55
  import '@carbon/web-components/es/components/layer/index.js';
55
56
 
56
- /**
57
- *
58
- * IBM Confidential
59
- *
60
- * (C) Copyright IBM Corp. 2021
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
57
  const SESSION_HISTORY_KEY_DELIMITER = '::';
71
58
  /**
72
59
  * Specifies the strict order of the fields from which the key should be generated from.
@@ -86,7 +73,7 @@ const SessionHistoryKeyOrder = [
86
73
  */
87
74
  const SessionHistoryKeySerializer = {
88
75
  serialize: (sessionHistoryKey) => {
89
- const orderedSessionKeyValues = SessionHistoryKeyOrder.map((key) => sessionHistoryKey[key]);
76
+ const orderedSessionKeyValues = SessionHistoryKeyOrder.map(key => sessionHistoryKey[key]);
90
77
  return orderedSessionKeyValues.join(SESSION_HISTORY_KEY_DELIMITER);
91
78
  },
92
79
  deserialize: (serializedSessionHistoryKey) => {
@@ -99,20 +86,6 @@ const SessionHistoryKeySerializer = {
99
86
  },
100
87
  };
101
88
 
102
- /**
103
- *
104
- * IBM Confidential
105
- *
106
- * (C) Copyright IBM Corp. 2020, 2024
107
- *
108
- * The source code for this program is not published or otherwise
109
- * divested of its trade secrets, irrespective of what has been
110
- * deposited with the U. S. Copyright Office
111
- *
112
- * US Government Users Restricted Rights - Use, duplication or
113
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
114
- *
115
- */
116
89
  /**
117
90
  * The amount of time to wait when a message is sent to the service desk before displaying a warning if the service
118
91
  * desk doesn't indicate the message was received.
@@ -260,8 +233,9 @@ class HumanAgentServiceImpl {
260
233
  }
261
234
  if (this.serviceManager.store.getState().persistedToBrowserStorage.chatState.agentState.isSuspended) {
262
235
  // If the user is currently engaged in a conversation with an agent that is suspended and we start a new chat, we
263
- // need to end the current conversation first.
264
- await this.endChat(true, true);
236
+ // need to end the current conversation first. We do still want to generate the "agent left" message however but
237
+ // not the "bot return" message that occurs on a delay.
238
+ await this.endChat(true, true, false);
265
239
  }
266
240
  if (this.chatStarted) {
267
241
  throw new Error('A chat is already running. A call to endChat must be made before a new chat can start.');
@@ -353,11 +327,11 @@ class HumanAgentServiceImpl {
353
327
  *
354
328
  * @param endedByUser Indicates if the chat is being ended as a result of the user or if it was ended
355
329
  * programmatically from an instance method.
356
- * @param skipEndMessages Indicates if the chat should be ended without generating the messages that are normally
357
- * displayed to the user indicating the chat has ended.
330
+ * @param showAgentLeftMessage Indicates if the chat should show the "agent left" message.
331
+ * @param showBotReturnMessage Indicates if the chat should show the "bot return" message.
358
332
  * @returns Returns a Promise that resolves when the service desk has successfully handled the call.
359
333
  */
360
- async endChat(endedByUser, skipEndMessages = false) {
334
+ async endChat(endedByUser, showAgentLeftMessage = true, showBotReturnMessage = true) {
361
335
  if (!this.chatStarted || !this.serviceDesk) {
362
336
  // Already ended or no service desk.
363
337
  return;
@@ -376,19 +350,15 @@ class HumanAgentServiceImpl {
376
350
  return;
377
351
  }
378
352
  }
379
- const wasSuspended = this.isSuspended();
380
- await this.doEndChat(false, event?.preEndChatPayload);
381
- if (isConnected && !skipEndMessages) {
382
- // Display the "end chat" messages.
383
- const messageType = endedByUser ? USER_ENDED_CHAT : CHAT_WAS_ENDED;
384
- await addEndChatMessages(messageType, null, BOT_RETURN_DELAY, true, wasSuspended, this.serviceManager);
385
- }
353
+ const endMessageType = endedByUser ? USER_ENDED_CHAT : CHAT_WAS_ENDED;
354
+ await this.doEndChat(false, event?.preEndChatPayload, showAgentLeftMessage, showBotReturnMessage, endMessageType);
386
355
  }
387
356
  /**
388
357
  * This function will end the chat with a service class and clear the service state for it.
389
358
  */
390
- async doEndChat(endedByAgent, preEndChatPayload) {
359
+ async doEndChat(endedByAgent, preEndChatPayload, showAgentLeftMessage, showBotReturnMessage, agentEndChatMessageType) {
391
360
  const { isConnected } = this.persistedAgentState();
361
+ const wasSuspended = this.isSuspended();
392
362
  this.cancelAgentJoinedTimer();
393
363
  this.closeScreenShareRequestModal(ScreenShareState.CANCELLED);
394
364
  try {
@@ -397,10 +367,17 @@ class HumanAgentServiceImpl {
397
367
  catch (error) {
398
368
  consoleError('[doEndChat] An error with the service desk occurred.', error);
399
369
  }
370
+ if (isConnected && showAgentLeftMessage) {
371
+ const { agentProfile } = this.persistedAgentState();
372
+ await addAgentEndChatMessage(agentEndChatMessageType, agentProfile, true, wasSuspended, this.serviceManager);
373
+ }
400
374
  this.chatStarted = false;
401
375
  this.isAgentTyping = false;
402
376
  this.serviceManager.store.dispatch(endChat());
403
377
  await this.fireEndChat(endedByAgent, !isConnected);
378
+ if (isConnected && showBotReturnMessage) {
379
+ await addBotReturnMessage(BOT_RETURN_DELAY, wasSuspended, this.serviceManager);
380
+ }
404
381
  }
405
382
  /**
406
383
  * Sends a message to the agent in the service desk.
@@ -671,7 +648,9 @@ class HumanAgentServiceImpl {
671
648
  store.dispatch(endChat());
672
649
  if (allowEndChatMessages) {
673
650
  // If we didn't reconnect, then show the "end chat" messages to the user.
674
- await addEndChatMessages(AgentMessageType.CHAT_WAS_ENDED, null, 0, false, wasSuspended, this.serviceManager);
651
+ const { agentProfile } = this.persistedAgentState();
652
+ await addAgentEndChatMessage(AgentMessageType.CHAT_WAS_ENDED, agentProfile, false, wasSuspended, this.serviceManager);
653
+ await addBotReturnMessage(0, wasSuspended, this.serviceManager);
675
654
  }
676
655
  }
677
656
  else {
@@ -904,11 +883,7 @@ class ServiceDeskCallbackImpl {
904
883
  eventDescription: 'Agent ended chat',
905
884
  };
906
885
  this.serviceManager.actions.track(trackProps);
907
- const wasSuspended = this.service.isSuspended();
908
- await this.service.doEndChat(true, event.preEndChatPayload);
909
- // Display the "end chat" messages.
910
- const { agentProfile } = this.persistedAgentState();
911
- await addEndChatMessages(AGENT_ENDED_CHAT, agentProfile, BOT_RETURN_DELAY, true, wasSuspended, this.serviceManager);
886
+ await this.service.doEndChat(true, event.preEndChatPayload, true, true, AGENT_ENDED_CHAT);
912
887
  }
913
888
  /**
914
889
  * Sets the state of the given error type.
@@ -1,26 +1,26 @@
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
  */
23
- import { an as commonjsGlobal, al as getDefaultExportFromCjs, z as debugLog, aN as ANONYMOUS_USER_ID_PREFIX, aO as uuid, aP as UUIDType, Q as resolveOrTimeout, N as consoleError, aE as isConnectToAgent, af as resolvablePromise, aI as getSummaryMessages, ak as assertType, j as MessageResponseTypes, e as ButtonItemKind, d as ButtonItemType, E as ErrorType } from './AppContainer.js';
22
+
23
+ import { aq as commonjsGlobal, ao as getDefaultExportFromCjs, D as debugLog, aQ as ANONYMOUS_USER_ID_PREFIX, aR as uuid, aS as UUIDType, Q as resolveOrTimeout, P as consoleError, aH as isConnectToAgent, ah as resolvablePromise, aL as getSummaryMessages, am as assertType, k as MessageResponseTypes, e as ButtonItemKind, d as ButtonItemType, E as ErrorType } from './AppContainer.js';
24
24
  import { S as ServiceDeskImpl } from './ServiceDeskImpl.js';
25
25
  import 'react';
26
26
  import 'react-intl';
@@ -39,6 +39,7 @@ import 'prop-types';
39
39
  import '@carbon/web-components/es/components/slug/index.js';
40
40
  import '@carbon/web-components/es/components/popover/defs.js';
41
41
  import '@carbon/web-components/es/components/slug/defs.js';
42
+ import '@carbon/web-components/es/components/skeleton-icon/index.js';
42
43
  import '@floating-ui/react';
43
44
  import 'react-dom';
44
45
  import '@carbon/web-components/es/components/slug/slug-action-button.js';
@@ -1608,38 +1609,10 @@ niceCxoneChatWebSdk.exports;
1608
1609
  var niceCxoneChatWebSdkExports = niceCxoneChatWebSdk.exports;
1609
1610
  var ChatSdk = /*@__PURE__*/getDefaultExportFromCjs(niceCxoneChatWebSdkExports);
1610
1611
 
1611
- /**
1612
- *
1613
- * IBM Confidential
1614
- *
1615
- * (C) Copyright IBM Corp. 2023
1616
- *
1617
- * The source code for this program is not published or otherwise
1618
- * divested of its trade secrets, irrespective of what has been
1619
- * deposited with the U. S. Copyright Office
1620
- *
1621
- * US Government Users Restricted Rights - Use, duplication or
1622
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
1623
- *
1624
- */
1625
1612
  function isUploadFailResponse(data) {
1626
1613
  return Boolean(data.allowedFileSize && data.allowedFileTypes);
1627
1614
  }
1628
1615
 
1629
- /**
1630
- *
1631
- * IBM Confidential
1632
- *
1633
- * (C) Copyright IBM Corp. 2023
1634
- *
1635
- * The source code for this program is not published or otherwise
1636
- * divested of its trade secrets, irrespective of what has been
1637
- * deposited with the U. S. Copyright Office
1638
- *
1639
- * US Government Users Restricted Rights - Use, duplication or
1640
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
1641
- *
1642
- */
1643
1616
  /**
1644
1617
  * This service desk integration is an integration to the Nice CXone contact center using their Digital First
1645
1618
  * Omnichannel (DFO) functionality.
@@ -1,27 +1,27 @@
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
  import { Button as Button$1, TextInput, OverflowMenu, OverflowMenuItem, Loading } from '@carbon/react';
24
- import { ao as useLanguagePack, ap as ButtonSizeEnum, aq as isEnterKey, ar as doFocusRef, as as useServiceManager, at as useCounter, au as useWindowSize, av as IS_JEST, aw as parseTextDirective, ax as ModalPortal, ay as FocusTrap, s as consoleWarn, az as MountChildrenOnDelay } from './AppContainer.js';
24
+ import { ar as useLanguagePack, as as ButtonSizeEnum, at as isEnterKey, au as doFocusRef, av as useServiceManager, aw as useCounter, ax as useWindowSize, ay as IS_JEST, az as parseTextDirective, aA as ModalPortal, aB as FocusTrap, t as consoleWarn, aC as MountChildrenOnDelay } from './AppContainer.js';
25
25
  import React__default, { useState, useRef, useEffect } from 'react';
26
26
  import { Search, ChevronLeft, ChevronRight, Close, ChevronUp, ChevronDown, ZoomIn, ZoomOut, ZoomReset, Download } from '@carbon/icons-react';
27
27
  import cx from 'classnames';
@@ -38,6 +38,7 @@ import 'prop-types';
38
38
  import '@carbon/web-components/es/components/slug/index.js';
39
39
  import '@carbon/web-components/es/components/popover/defs.js';
40
40
  import '@carbon/web-components/es/components/slug/defs.js';
41
+ import '@carbon/web-components/es/components/skeleton-icon/index.js';
41
42
  import '@floating-ui/react';
42
43
  import 'react-dom';
43
44
  import '@carbon/web-components/es/components/slug/slug-action-button.js';
@@ -82784,20 +82785,6 @@ __webpack_exports__.TextLayerBuilder;
82784
82785
  __webpack_exports__.XfaLayerBuilder;
82785
82786
  __webpack_exports__.parseQueryString;
82786
82787
 
82787
- /**
82788
- *
82789
- * IBM Confidential
82790
- *
82791
- * (C) Copyright IBM Corp. 2023
82792
- *
82793
- * The source code for this program is not published or otherwise
82794
- * divested of its trade secrets, irrespective of what has been
82795
- * deposited with the U. S. Copyright Office
82796
- *
82797
- * US Government Users Restricted Rights - Use, duplication or
82798
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
82799
- *
82800
- */
82801
82788
  function SearchBox(props) {
82802
82789
  const { disabled, onSearchAgain, onChange, initialSearch, totalMatches, currentMatch, buttonClass } = props;
82803
82790
  const [searchText, setSearchText] = useState(initialSearch);
@@ -82841,20 +82828,6 @@ function SearchBox(props) {
82841
82828
  React__default.createElement(Close, null))))));
82842
82829
  }
82843
82830
 
82844
- /**
82845
- *
82846
- * IBM Confidential
82847
- *
82848
- * (C) Copyright IBM Corp. 2023
82849
- *
82850
- * The source code for this program is not published or otherwise
82851
- * divested of its trade secrets, irrespective of what has been
82852
- * deposited with the U. S. Copyright Office
82853
- *
82854
- * US Government Users Restricted Rights - Use, duplication or
82855
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
82856
- *
82857
- */
82858
82831
  // The width of the header at which point, it should contract some of the content into the overflow menu.
82859
82832
  const OVERFLOW_BREAKPOINT = 700;
82860
82833
  function PDFViewerHeader(props) {
@@ -82973,20 +82946,6 @@ function disableZoomIn(scale) {
82973
82946
  return scale > 5;
82974
82947
  }
82975
82948
 
82976
- /**
82977
- *
82978
- * IBM Confidential
82979
- *
82980
- * (C) Copyright IBM Corp. 2023
82981
- *
82982
- * The source code for this program is not published or otherwise
82983
- * divested of its trade secrets, irrespective of what has been
82984
- * deposited with the U. S. Copyright Office
82985
- *
82986
- * US Government Users Restricted Rights - Use, duplication or
82987
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
82988
- *
82989
- */
82990
82949
  // Set the workerSrc to the inline URL created, check on GlobalWorkerOptions first since it might be mocked.
82991
82950
  if (!IS_JEST) {
82992
82951
  // Create an inline worker that sets up WorkerMessageHandler
@@ -1,41 +1,27 @@
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
  import React__default, { useState, useEffect } from 'react';
24
24
 
25
- /**
26
- *
27
- * IBM Confidential
28
- *
29
- * (C) Copyright IBM Corp. 2024
30
- *
31
- * The source code for this program is not published or otherwise
32
- * divested of its trade secrets, irrespective of what has been
33
- * deposited with the U. S. Copyright Office
34
- *
35
- * US Government Users Restricted Rights - Use, duplication or
36
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
37
- *
38
- */
39
25
  function LazyReactPlayer(props) {
40
26
  const [Player, setPlayer] = useState(null);
41
27
  useEffect(() => {