@carbon/ai-chat 0.4.0-rc.2 → 0.4.0-rc.4

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 (296) hide show
  1. package/dist/es/aiChatEntry.js +220 -14
  2. package/dist/es/chat.AppContainer.js +6491 -0
  3. package/dist/es/chat.AppState.js +40 -0
  4. package/dist/es/{chat/shared/components/BasePanelComponent.js → chat.BasePanelComponent.js} +3 -3
  5. package/dist/es/{chat/shared/components/panels/BodyAndFooterPanelComponent.js → chat.BodyAndFooterPanelComponent.js} +92 -9
  6. package/dist/es/chat.BodyWithFooterComponent.js +140 -0
  7. package/dist/es/{chat/shared/components/header/BotHeader.js → chat.BotHeader.js} +7 -9
  8. package/dist/es/{chat/shared/components/responseTypes/carousel/Carousel.js → chat.Carousel.js} +3 -3
  9. package/dist/es/chat.CatastrophicError.js +381 -0
  10. package/dist/es/chat.Chat.js +2009 -0
  11. package/dist/es/chat.Disclaimer.js +553 -0
  12. package/dist/es/chat.Header.js +1025 -0
  13. package/dist/es/{chat/shared/components/util/HideComponent.js → chat.HideComponent.js} +9 -2
  14. package/dist/es/{types/config/HomeScreenConfig.js → chat.HomeScreenConfig.js} +1 -1
  15. package/dist/es/{chat/shared/components/homeScreen/HomeScreen.js → chat.HomeScreenContainer.js} +159 -14
  16. package/dist/es/{chat/shared/components/homeScreen/HomeScreenHeader.js → chat.HomeScreenHeader.js} +3 -3
  17. package/dist/es/{chat/shared/services/haa/HumanAgentServiceImpl.js → chat.HumanAgentServiceImpl.js} +215 -17
  18. package/dist/es/{chat/shared/components/responseTypes/iframe/IFrameComponent.js → chat.IFrameComponent.js} +4 -8
  19. package/dist/es/chat.IFramePanel.js +151 -0
  20. package/dist/es/{chat/shared/components/input/Input.js → chat.Input.js} +214 -18
  21. package/dist/es/{types/config/ServiceDeskConfig.js → chat.LocalMessageItem.js} +17 -1
  22. package/dist/es/chat.MessageTypeComponent.js +3580 -0
  23. package/dist/es/{types/messaging/Messages.js → chat.Messages.js} +1 -1
  24. package/dist/es/chat.MountChildrenOnDelay.js +97 -0
  25. package/dist/es/{chat/shared/components/OverlayPanel.js → chat.PageObjectId.js} +70 -4
  26. package/dist/es/{chat/web-components/components/markdownText/src/markdownText.scss.js → chat.RichText.js} +347 -1
  27. package/dist/es/chat.TourContainer.js +524 -0
  28. package/dist/es/{chat/languages/en.json.js → chat.VideoComponent.js} +561 -1
  29. package/dist/es/chat.ViewSourcePanel.js +187 -0
  30. package/dist/es/{chat/shared/store/actions.js → chat.actions.js} +2 -2
  31. package/dist/es/{chat/shared/utils/browserUtils.js → chat.browserUtils.js} +1 -1
  32. package/dist/es/{types/utilities/carbonTypes.js → chat.carbonTypes.js} +2 -2
  33. package/dist/es/{chat/web-components/components/codeElement/src/codeElement.scss.js → chat.cds-aichat-code.js} +64 -1
  34. package/dist/es/{chat/shared/utils/constants.js → chat.constants.js} +4 -7
  35. package/dist/es/{types/events/eventBusTypes.js → chat.customElement.js} +32 -1
  36. package/dist/es/chat.dynamic-imports.js +192 -0
  37. package/dist/es/{chat/shared/utils/htmlUtils.js → chat.htmlUtils.js} +16 -2
  38. package/dist/es/{chat/shared/utils/messageUtils.js → chat.messageUtils.js} +54 -7
  39. package/dist/es/{chat/shared/utils/miscUtils.js → chat.miscUtils.js} +24 -5
  40. package/dist/es/chat.resolvablePromise.js +315 -0
  41. package/dist/es/{chat/shared/store/selectors.js → chat.selectors.js} +1 -1
  42. package/dist/es/{chat/shared/utils/lang/stringUtils.js → chat.stringUtils.js} +2 -2
  43. package/dist/es/{chat/shared/hooks/useCounter.js → chat.useCounter.js} +1 -1
  44. package/dist/es/{chat/shared/hooks/useOnMount.js → chat.useOnMount.js} +1 -1
  45. package/dist/es/{chat/shared/utils/domUtils.js → chat.usePrevious.js} +47 -1
  46. package/dist/es/{chat/shared/utils/lang/UUIDType.js → chat.uuid.js} +15 -3
  47. package/dist/es/web-components/cds-aichat-container/index.js +73 -4
  48. package/dist/es/web-components/cds-aichat-custom-element/index.js +1 -3
  49. package/dist/types/aiChatEntry.d.ts +4767 -0
  50. package/package.json +5 -4
  51. package/dist/es/chat/dynamic-imports/dynamic-imports.js +0 -96
  52. package/dist/es/chat/react/components/AppContainer.js +0 -197
  53. package/dist/es/chat/react/components/UserDefinedResponsePortalsContainer.js +0 -31
  54. package/dist/es/chat/react/components/WriteableElementsPortalsContainer.js +0 -28
  55. package/dist/es/chat/react/components/chainOfThought/ChainOfThought.js +0 -20
  56. package/dist/es/chat/react/components/chatHeader/ChatHeaderAvatar.js +0 -20
  57. package/dist/es/chat/react/components/chatHeader/ChatHeaderLink.js +0 -22
  58. package/dist/es/chat/react/components/chatHeader/ChatHeaderMenu.js +0 -27
  59. package/dist/es/chat/react/components/chatHeader/ChatHeaderMenuButton.js +0 -60
  60. package/dist/es/chat/react/components/chatHeader/ChatHeaderMenuItem.js +0 -24
  61. package/dist/es/chat/react/components/chatHeader/ChatHeaderMenuItemRadioGroup.js +0 -28
  62. package/dist/es/chat/react/components/chatHeader/ChatHeaderOverflowMenu.js +0 -69
  63. package/dist/es/chat/react/components/chatHeader/ChatHeaderTitle.js +0 -22
  64. package/dist/es/chat/react/components/feedback/FeedbackButtonsComponent.js +0 -20
  65. package/dist/es/chat/react/components/feedback/FeedbackComponent.js +0 -20
  66. package/dist/es/chat/react/components/inlineLoading/InlineLoadingComponent.js +0 -20
  67. package/dist/es/chat/react/components/markdownText/MarkdownText.js +0 -20
  68. package/dist/es/chat/react/components/stopStreamingButton/StopStreamingButton.js +0 -20
  69. package/dist/es/chat/react/components/table/Table.js +0 -20
  70. package/dist/es/chat/shared/Chat.js +0 -115
  71. package/dist/es/chat/shared/ChatInstanceImpl.js +0 -360
  72. package/dist/es/chat/shared/chatEntryFunctions.js +0 -46
  73. package/dist/es/chat/shared/components/Avatar.js +0 -286
  74. package/dist/es/chat/shared/components/BodyWithFooterComponent.js +0 -56
  75. package/dist/es/chat/shared/components/CatastrophicError.js +0 -77
  76. package/dist/es/chat/shared/components/Chat.js +0 -244
  77. package/dist/es/chat/shared/components/ChatBubbleDark.js +0 -124
  78. package/dist/es/chat/shared/components/ChatBubbleLight.js +0 -216
  79. package/dist/es/chat/shared/components/Disclaimer.js +0 -86
  80. package/dist/es/chat/shared/components/ErrorIcon.js +0 -20
  81. package/dist/es/chat/shared/components/ErrorMessageDark.js +0 -89
  82. package/dist/es/chat/shared/components/ErrorMessageLight.js +0 -135
  83. package/dist/es/chat/shared/components/HydrationPanel.js +0 -58
  84. package/dist/es/chat/shared/components/LatestWelcomeNodes.js +0 -26
  85. package/dist/es/chat/shared/components/ResponseStopped.js +0 -19
  86. package/dist/es/chat/shared/components/SkeletonPicker.js +0 -32
  87. package/dist/es/chat/shared/components/WriteableElement.js +0 -22
  88. package/dist/es/chat/shared/components/agent/AgentAvatar.js +0 -54
  89. package/dist/es/chat/shared/components/agent/AgentBanner.js +0 -109
  90. package/dist/es/chat/shared/components/agent/AgentBannerContainer.js +0 -28
  91. package/dist/es/chat/shared/components/agent/AvailabilityMessage.js +0 -49
  92. package/dist/es/chat/shared/components/aria/AriaAnnouncerComponent.js +0 -122
  93. package/dist/es/chat/shared/components/aria/AriaAnnouncerProvider.js +0 -48
  94. package/dist/es/chat/shared/components/aria/AriaLiveMessage.js +0 -22
  95. package/dist/es/chat/shared/components/header/AISlug.js +0 -22
  96. package/dist/es/chat/shared/components/header/Header.js +0 -460
  97. package/dist/es/chat/shared/components/header/SimpleHeader.js +0 -27
  98. package/dist/es/chat/shared/components/homeScreen/HomeScreenContainer.js +0 -68
  99. package/dist/es/chat/shared/components/launcher/Launcher.js +0 -88
  100. package/dist/es/chat/shared/components/launcher/LauncherComplex.js +0 -63
  101. package/dist/es/chat/shared/components/launcher/LauncherContainer.js +0 -73
  102. package/dist/es/chat/shared/components/launcher/LauncherDesktopContainer.js +0 -221
  103. package/dist/es/chat/shared/components/launcher/LauncherExtended.js +0 -244
  104. package/dist/es/chat/shared/components/launcher/LauncherMobileContainer.js +0 -175
  105. package/dist/es/chat/shared/components/launcher/launcherUtils.js +0 -16
  106. package/dist/es/chat/shared/components/modals/ConfirmModal.js +0 -67
  107. package/dist/es/chat/shared/components/modals/EndAgentChatModal.js +0 -46
  108. package/dist/es/chat/shared/components/modals/RequestScreenShareModal.js +0 -43
  109. package/dist/es/chat/shared/components/notifications/Notifications.js +0 -58
  110. package/dist/es/chat/shared/components/panels/CustomPanel.js +0 -136
  111. package/dist/es/chat/shared/components/responseTypes/agent/ConnectToAgent.js +0 -30
  112. package/dist/es/chat/shared/components/responseTypes/agent/RealConnectToAgent.js +0 -102
  113. package/dist/es/chat/shared/components/responseTypes/audio/AudioComponent.js +0 -26
  114. package/dist/es/chat/shared/components/responseTypes/buttonItem/BaseButtonItemComponent.js +0 -69
  115. package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemComponent.js +0 -48
  116. package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemCustomEventComponent.js +0 -42
  117. package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemPostBackComponent.js +0 -54
  118. package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemShowPanelComponent.js +0 -36
  119. package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemURLComponent.js +0 -42
  120. package/dist/es/chat/shared/components/responseTypes/card/CardItemComponent.js +0 -34
  121. package/dist/es/chat/shared/components/responseTypes/carousel/CarouselItemComponent.js +0 -39
  122. package/dist/es/chat/shared/components/responseTypes/conversationalSearch/ConversationalSearch.js +0 -92
  123. package/dist/es/chat/shared/components/responseTypes/conversationalSearch/ConversationalSearchText.js +0 -158
  124. package/dist/es/chat/shared/components/responseTypes/custom/UserDefinedResponse.js +0 -33
  125. package/dist/es/chat/shared/components/responseTypes/datePicker/DatePickerComponent.js +0 -176
  126. package/dist/es/chat/shared/components/responseTypes/error/InlineError.js +0 -32
  127. package/dist/es/chat/shared/components/responseTypes/grid/GridItemComponent.js +0 -109
  128. package/dist/es/chat/shared/components/responseTypes/iframe/IFrameMessage.js +0 -32
  129. package/dist/es/chat/shared/components/responseTypes/iframe/IFramePanel.js +0 -51
  130. package/dist/es/chat/shared/components/responseTypes/iframe/IFramePreviewCard.js +0 -64
  131. package/dist/es/chat/shared/components/responseTypes/iframe/InlineIFrame.js +0 -55
  132. package/dist/es/chat/shared/components/responseTypes/image/Image.js +0 -120
  133. package/dist/es/chat/shared/components/responseTypes/options/OptionComponent.js +0 -83
  134. package/dist/es/chat/shared/components/responseTypes/options/SelectComponent.js +0 -84
  135. package/dist/es/chat/shared/components/responseTypes/table/TableContainer.js +0 -96
  136. package/dist/es/chat/shared/components/responseTypes/text/TextArea.js +0 -68
  137. package/dist/es/chat/shared/components/responseTypes/tour/TourCard.js +0 -73
  138. package/dist/es/chat/shared/components/responseTypes/util/BodyMessageComponents.js +0 -65
  139. package/dist/es/chat/shared/components/responseTypes/util/ClickableImage.js +0 -36
  140. package/dist/es/chat/shared/components/responseTypes/util/Description.js +0 -21
  141. package/dist/es/chat/shared/components/responseTypes/util/FooterButtonComponents.js +0 -36
  142. package/dist/es/chat/shared/components/responseTypes/util/MediaPlayer.js +0 -157
  143. package/dist/es/chat/shared/components/responseTypes/util/Metablock.js +0 -27
  144. package/dist/es/chat/shared/components/responseTypes/util/RichText.js +0 -31
  145. package/dist/es/chat/shared/components/responseTypes/util/SearchResultBody.js +0 -53
  146. package/dist/es/chat/shared/components/responseTypes/util/StreamingRichText.js +0 -38
  147. package/dist/es/chat/shared/components/responseTypes/util/TextHolderTile.js +0 -35
  148. package/dist/es/chat/shared/components/responseTypes/util/citations/CitationCard.js +0 -65
  149. package/dist/es/chat/shared/components/responseTypes/util/citations/CitationCardContent.js +0 -62
  150. package/dist/es/chat/shared/components/responseTypes/util/citations/CitationClickableCard.js +0 -23
  151. package/dist/es/chat/shared/components/responseTypes/util/citations/ExpandToPanelCard.js +0 -50
  152. package/dist/es/chat/shared/components/responseTypes/util/citations/ViewSourcePanel.js +0 -57
  153. package/dist/es/chat/shared/components/responseTypes/video/VideoComponent.js +0 -23
  154. package/dist/es/chat/shared/components/tour/TourCloseMinimizeComponent.js +0 -44
  155. package/dist/es/chat/shared/components/tour/TourContainer.js +0 -212
  156. package/dist/es/chat/shared/components/tour/TourControlsComponent.js +0 -98
  157. package/dist/es/chat/shared/components/tour/TourStepContentComponent.js +0 -156
  158. package/dist/es/chat/shared/components/tour/TourStepSkeletonComponent.js +0 -20
  159. package/dist/es/chat/shared/components/util/AnnounceOnMountComponent.js +0 -42
  160. package/dist/es/chat/shared/components/util/IconHolder.js +0 -16
  161. package/dist/es/chat/shared/components/util/ImageWithFallback.js +0 -31
  162. package/dist/es/chat/shared/components/util/MaybeDangerouslySetInnerHTML.js +0 -42
  163. package/dist/es/chat/shared/components/util/MountChildrenOnDelay.js +0 -40
  164. package/dist/es/chat/shared/components/util/VisuallyHidden.js +0 -18
  165. package/dist/es/chat/shared/containers/App.js +0 -181
  166. package/dist/es/chat/shared/containers/MessageComponent.js +0 -465
  167. package/dist/es/chat/shared/containers/MessageTypeComponent.js +0 -496
  168. package/dist/es/chat/shared/containers/MessagesComponent.js +0 -469
  169. package/dist/es/chat/shared/containers/ModalPortal.js +0 -53
  170. package/dist/es/chat/shared/containers/main/MainWindow.js +0 -708
  171. package/dist/es/chat/shared/contexts/AriaAnnouncerContext.js +0 -12
  172. package/dist/es/chat/shared/contexts/HideComponentContext.js +0 -12
  173. package/dist/es/chat/shared/contexts/LanguagePackContext.js +0 -12
  174. package/dist/es/chat/shared/contexts/ModalPortalRootContext.js +0 -12
  175. package/dist/es/chat/shared/contexts/ServiceManagerContext.js +0 -12
  176. package/dist/es/chat/shared/contexts/WindowSizeContext.js +0 -12
  177. package/dist/es/chat/shared/environmentVariables.js +0 -13
  178. package/dist/es/chat/shared/events/ChatActionsImpl.js +0 -783
  179. package/dist/es/chat/shared/events/EventBus.js +0 -161
  180. package/dist/es/chat/shared/hocs/withAriaAnnouncer.js +0 -25
  181. package/dist/es/chat/shared/hocs/withServiceManager.js +0 -25
  182. package/dist/es/chat/shared/hooks/useAriaAnnouncer.js +0 -16
  183. package/dist/es/chat/shared/hooks/useCSSCustomProperties.js +0 -21
  184. package/dist/es/chat/shared/hooks/useCallbackOnChange.js +0 -24
  185. package/dist/es/chat/shared/hooks/useEffectDidUpdate.js +0 -21
  186. package/dist/es/chat/shared/hooks/useLanguagePack.js +0 -16
  187. package/dist/es/chat/shared/hooks/usePrevious.js +0 -18
  188. package/dist/es/chat/shared/hooks/useServiceManager.js +0 -16
  189. package/dist/es/chat/shared/hooks/useShouldSanitizeHTML.js +0 -15
  190. package/dist/es/chat/shared/hooks/useUUID.js +0 -22
  191. package/dist/es/chat/shared/hooks/useWindowSize.js +0 -16
  192. package/dist/es/chat/shared/loadServices.js +0 -72
  193. package/dist/es/chat/shared/schema/historyToMessages.js +0 -231
  194. package/dist/es/chat/shared/schema/inputItemToLocalItem.js +0 -30
  195. package/dist/es/chat/shared/schema/outputItemToLocalItem.js +0 -124
  196. package/dist/es/chat/shared/services/CustomPanelInstance.js +0 -26
  197. package/dist/es/chat/shared/services/CustomPanelManager.js +0 -23
  198. package/dist/es/chat/shared/services/HistoryService.js +0 -59
  199. package/dist/es/chat/shared/services/MessageService.js +0 -351
  200. package/dist/es/chat/shared/services/NamespaceService.js +0 -26
  201. package/dist/es/chat/shared/services/ServiceManager.js +0 -19
  202. package/dist/es/chat/shared/services/UserSessionStorageService.js +0 -89
  203. package/dist/es/chat/shared/services/haa/agentStatusMessage.js +0 -108
  204. package/dist/es/chat/shared/services/haa/humanAgentUtils.js +0 -114
  205. package/dist/es/chat/shared/services/mockStorage.js +0 -30
  206. package/dist/es/chat/shared/store/agentActions.js +0 -125
  207. package/dist/es/chat/shared/store/agentReducers.js +0 -215
  208. package/dist/es/chat/shared/store/doCreateStore.js +0 -142
  209. package/dist/es/chat/shared/store/reducerUtils.js +0 -320
  210. package/dist/es/chat/shared/store/reducers.js +0 -871
  211. package/dist/es/chat/shared/store/subscriptions.js +0 -55
  212. package/dist/es/chat/shared/store/tourReducerUtils.js +0 -51
  213. package/dist/es/chat/shared/utils/ListenerList.js +0 -26
  214. package/dist/es/chat/shared/utils/PageObjectId.js +0 -25
  215. package/dist/es/chat/shared/utils/animationUtils.js +0 -77
  216. package/dist/es/chat/shared/utils/colors.js +0 -71
  217. package/dist/es/chat/shared/utils/customizers.js +0 -16
  218. package/dist/es/chat/shared/utils/dateUtils.js +0 -38
  219. package/dist/es/chat/shared/utils/homeScreenUtils.js +0 -27
  220. package/dist/es/chat/shared/utils/intlUtils.js +0 -21
  221. package/dist/es/chat/shared/utils/lang/arrayUtils.js +0 -53
  222. package/dist/es/chat/shared/utils/lang/langUtils.js +0 -13
  223. package/dist/es/chat/shared/utils/lang/objectUtils.js +0 -19
  224. package/dist/es/chat/shared/utils/lang/promiseUtils.js +0 -25
  225. package/dist/es/chat/shared/utils/lang/uuid.js +0 -16
  226. package/dist/es/chat/shared/utils/languages.js +0 -156
  227. package/dist/es/chat/shared/utils/memoizerUtils.js +0 -38
  228. package/dist/es/chat/shared/utils/messageServiceUtils.js +0 -36
  229. package/dist/es/chat/shared/utils/resolvablePromise.js +0 -32
  230. package/dist/es/chat/shared/utils/styleUtils.js +0 -231
  231. package/dist/es/chat/shared/utils/timeUtils.js +0 -14
  232. package/dist/es/chat/shared/utils/viewStateUtils.js +0 -38
  233. package/dist/es/chat/web-components/components/chainOfThought/cds-aichat-chain-of-thought.js +0 -26
  234. package/dist/es/chat/web-components/components/chainOfThought/src/ChainOfThoughtElement.js +0 -130
  235. package/dist/es/chat/web-components/components/chainOfThought/src/chainOfThoughtElement.scss.js +0 -3
  236. package/dist/es/chat/web-components/components/chainOfThought/src/chainOfThoughtElement.template.js +0 -186
  237. package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/cds-aichat-chat-header-avatar.js +0 -26
  238. package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/src/chatHeaderAvatar.template.js +0 -32
  239. package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/src/chatHeaderAvatarElement.js +0 -52
  240. package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/src/chatHeaderAvatarElement.scss.js +0 -3
  241. package/dist/es/chat/web-components/components/chatHeader/chatHeaderLink/cds-aichat-chat-header-link.js +0 -44
  242. package/dist/es/chat/web-components/components/chatHeader/chatHeaderLink/src/chatHeaderLinkElement.template.js +0 -28
  243. package/dist/es/chat/web-components/components/chatHeader/chatHeaderTitle/cds-aichat-chat-header-title.js +0 -42
  244. package/dist/es/chat/web-components/components/chatHeader/chatHeaderTitle/src/chatHeaderTitle.scss.js +0 -3
  245. package/dist/es/chat/web-components/components/chatHeader/chatHeaderTitle/src/chatHeaderTitle.template.js +0 -20
  246. package/dist/es/chat/web-components/components/codeElement/cds-aichat-code.js +0 -66
  247. package/dist/es/chat/web-components/components/feedbackButtonsElement/cds-aichat-feedback-buttons.js +0 -26
  248. package/dist/es/chat/web-components/components/feedbackButtonsElement/src/FeedbackButtonsElement.js +0 -93
  249. package/dist/es/chat/web-components/components/feedbackButtonsElement/src/feedbackButtonsElement.scss.js +0 -3
  250. package/dist/es/chat/web-components/components/feedbackButtonsElement/src/feedbackButtonsElement.template.js +0 -84
  251. package/dist/es/chat/web-components/components/feedbackElement/cds-aichat-feedback.js +0 -30
  252. package/dist/es/chat/web-components/components/feedbackElement/src/FeedbackElement.js +0 -157
  253. package/dist/es/chat/web-components/components/feedbackElement/src/feedbackElement.scss.js +0 -3
  254. package/dist/es/chat/web-components/components/feedbackElement/src/feedbackElement.template.js +0 -95
  255. package/dist/es/chat/web-components/components/inlineLoadingElement/cds-aichat-inline-loading.js +0 -85
  256. package/dist/es/chat/web-components/components/inlineLoadingElement/src/styles.scss.js +0 -3
  257. package/dist/es/chat/web-components/components/markdownText/cds-aichat-markdown-text.js +0 -32
  258. package/dist/es/chat/web-components/components/markdownText/markdown/markdownToHTML.js +0 -28
  259. package/dist/es/chat/web-components/components/markdownText/markdown/utils/renderTokenTree.js +0 -191
  260. package/dist/es/chat/web-components/components/markdownText/markdown/workers/workerManager.js +0 -16
  261. package/dist/es/chat/web-components/components/markdownText/src/MarkdownElement.js +0 -70
  262. package/dist/es/chat/web-components/components/markdownText/src/markdownElement.template.js +0 -19
  263. package/dist/es/chat/web-components/components/roundedButton/cds-aichat-rounded-button.js +0 -29
  264. package/dist/es/chat/web-components/components/stopStreamingButton/cds-aichat-stop-streaming-button.js +0 -26
  265. package/dist/es/chat/web-components/components/stopStreamingButton/src/StopStreamingButtonElement.js +0 -49
  266. package/dist/es/chat/web-components/components/stopStreamingButton/src/stopStreamingButton.scss.js +0 -3
  267. package/dist/es/chat/web-components/components/stopStreamingButton/src/stopStreamingButton.template.js +0 -44
  268. package/dist/es/chat/web-components/components/table/cds-aichat-table.js +0 -229
  269. package/dist/es/chat/web-components/components/table/src/table.scss.js +0 -3
  270. package/dist/es/chat/web-components/components/table/src/table.template.js +0 -81
  271. package/dist/es/chat/web-components/components/table/src/tablePagination.template.js +0 -43
  272. package/dist/es/chat/web-components/components/table/src/tableSkeleton.template.js +0 -17
  273. package/dist/es/chat/web-components/components/tagListElement/cds-aichat-tag-list.js +0 -28
  274. package/dist/es/chat/web-components/components/tagListElement/src/TagListElement.js +0 -70
  275. package/dist/es/chat/web-components/components/tagListElement/src/tagListElement.scss.js +0 -3
  276. package/dist/es/chat/web-components/components/tagListElement/src/tagListElement.template.js +0 -40
  277. package/dist/es/chat/web-components/decorators/customElement.js +0 -33
  278. package/dist/es/chat/web-components/internal/cds-aichat-internal.js +0 -78
  279. package/dist/es/chat/web-components/settings.js +0 -13
  280. package/dist/es/node_modules/@carbon/colors/es/index.js +0 -11
  281. package/dist/es/react/ChatContainer.js +0 -162
  282. package/dist/es/react/ChatCustomElement.js +0 -58
  283. package/dist/es/types/config/ChatHeaderConfig.js +0 -18
  284. package/dist/es/types/config/CornersType.js +0 -16
  285. package/dist/es/types/config/LauncherConfig.js +0 -19
  286. package/dist/es/types/config/PublicConfig.js +0 -36
  287. package/dist/es/types/instance/ChatInstance.js +0 -31
  288. package/dist/es/types/instance/apiTypes.js +0 -33
  289. package/dist/es/types/messaging/LocalMessageItem.js +0 -18
  290. package/dist/es/types/state/AppState.js +0 -18
  291. package/dist/es/types/utilities/Animation.js +0 -31
  292. package/dist/es/types/utilities/HasAddRemoveClassName.js +0 -27
  293. /package/dist/es/{chat/shared/styles/export.carbon.scss.js → chat.export.carbon.js} +0 -0
  294. /package/dist/es/{chat/shared/styles/export.scss.js → chat.export.js} +0 -0
  295. /package/dist/es/{chat/web-components/components/markdownText/markdown/utils/markdown.js → chat.markdown.js} +0 -0
  296. /package/dist/es/{chat/web-components/components/markdownText/markdown/utils/tokenTree.js → chat.tokenTree.js} +0 -0
@@ -1,124 +0,0 @@
1
- import React from "react";
2
-
3
- /*
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- *
9
- * @license
10
- */ function ChatBubbleDark() {
11
- const chatBubbleID = "cbl-";
12
- return React.createElement("svg", {
13
- xmlns: "http://www.w3.org/2000/svg",
14
- viewBox: "0 0 80 80"
15
- }, React.createElement("defs", null, React.createElement("linearGradient", {
16
- id: `${chatBubbleID}-a`,
17
- x1: 30.047,
18
- x2: 35.499,
19
- y1: 54.31,
20
- y2: 54.31,
21
- gradientUnits: "userSpaceOnUse"
22
- }, React.createElement("stop", {
23
- offset: 0,
24
- stopColor: "#393939"
25
- }), React.createElement("stop", {
26
- offset: 1,
27
- stopColor: "#262626"
28
- })), React.createElement("linearGradient", {
29
- id: `${chatBubbleID}-b`,
30
- x1: 28.608,
31
- x2: 70.691,
32
- y1: -3.968,
33
- y2: 68.921,
34
- gradientUnits: "userSpaceOnUse"
35
- }, React.createElement("stop", {
36
- offset: 0,
37
- stopColor: "#6f6f6f"
38
- }), React.createElement("stop", {
39
- offset: .19,
40
- stopColor: "#6c6c6c"
41
- }), React.createElement("stop", {
42
- offset: .316,
43
- stopColor: "#636363"
44
- }), React.createElement("stop", {
45
- offset: .423,
46
- stopColor: "#555"
47
- }), React.createElement("stop", {
48
- offset: .518,
49
- stopColor: "#3f3f3f"
50
- }), React.createElement("stop", {
51
- offset: .545,
52
- stopColor: "#383838"
53
- }), React.createElement("stop", {
54
- offset: 1,
55
- stopColor: "#262626"
56
- })), React.createElement("linearGradient", {
57
- id: `${chatBubbleID}-c`,
58
- x1: 15.125,
59
- x2: 60.902,
60
- y1: 36.198,
61
- y2: 36.198,
62
- gradientUnits: "userSpaceOnUse"
63
- }, React.createElement("stop", {
64
- offset: 0,
65
- stopColor: "#525252"
66
- }), React.createElement("stop", {
67
- offset: 1,
68
- stopColor: "#393939"
69
- })), React.createElement("linearGradient", {
70
- id: `${chatBubbleID}-d`,
71
- x1: 15.14,
72
- x2: 63.056,
73
- y1: 5.723,
74
- y2: 33.517,
75
- gradientUnits: "userSpaceOnUse"
76
- }, React.createElement("stop", {
77
- offset: .777,
78
- stopColor: "#8d8d8d"
79
- }), React.createElement("stop", {
80
- offset: .806,
81
- stopColor: "#8a8a8a",
82
- stopOpacity: .967
83
- }), React.createElement("stop", {
84
- offset: .839,
85
- stopColor: "gray",
86
- stopOpacity: .872
87
- }), React.createElement("stop", {
88
- offset: .873,
89
- stopColor: "#6f6f6f",
90
- stopOpacity: .713
91
- }), React.createElement("stop", {
92
- offset: .908,
93
- stopColor: "#595959",
94
- stopOpacity: .491
95
- }), React.createElement("stop", {
96
- offset: .944,
97
- stopColor: "#3b3b3b",
98
- stopOpacity: .209
99
- }), React.createElement("stop", {
100
- offset: .967,
101
- stopColor: "#262626",
102
- stopOpacity: 0
103
- }))), React.createElement("path", {
104
- d: "m15.129 52.11 45.498 26.279 4.248-2.507-45.473-26.255-4.273 2.483z",
105
- opacity: .25
106
- }), React.createElement("path", {
107
- fill: `url(#${chatBubbleID}-a)`,
108
- d: "m32.663 52.846-2.258 4.227a1.138 1.138 0 0 1-.358.35l2.837-1.649a1.148 1.148 0 0 0 .358-.35L35.5 51.2Z"
109
- }), React.createElement("path", {
110
- fill: `url(#${chatBubbleID}-b)`,
111
- d: "M63.454 26.582 20.631 1.858a1.006 1.006 0 0 0-1.014-.1l-3.973 2.3a1.006 1.006 0 0 1 1.014.1l42.823 24.725a3.148 3.148 0 0 1 1.419 2.462l-.1 36.084a1 1 0 0 1-.419.907l3.973-2.3a1 1 0 0 0 .419-.907l.1-36.084a3.145 3.145 0 0 0-1.419-2.463Z"
112
- }), React.createElement("path", {
113
- fill: `url(#${chatBubbleID}-c)`,
114
- d: "M59.481 28.883a3.151 3.151 0 0 1 1.419 2.462l-.1 36.084c-.009.9-.647 1.26-1.424.812l-26.695-15.4-2.257 4.226a.9.9 0 0 1-1.333.273 3.086 3.086 0 0 1-1.224-1.527l-2.322-7.092-9-5.2a3.143 3.143 0 0 1-1.421-2.461l.1-36.084c0-.9.641-1.272 1.431-.816Z"
115
- }), React.createElement("path", {
116
- fill: "#6f6f6f",
117
- d: "m57.995 37.068-.011 3.902-39.952-23.066.011-3.902 39.952 23.066zM57.995 45.114l-.011 3.903-39.952-23.066.011-3.903 39.952 23.066zM44.62 45.041l-.011 3.902-26.577-15.344.011-3.902L44.62 45.041z"
118
- }), React.createElement("path", {
119
- fill: `url(#${chatBubbleID}-d)`,
120
- d: "M60.756 30.548a2.507 2.507 0 0 1 .146.8l-.011 3.952a3.98 3.98 0 0 1 .413-.125l.011-3.826a3.541 3.541 0 0 0-1.628-2.821L16.864 3.8a1.976 1.976 0 0 0-.445-.192l-.775.45c.006 0 .015 0 .021-.008a.722.722 0 0 1 .188-.071h.015a.822.822 0 0 1 .151-.015h.101a1.087 1.087 0 0 1 .233.051c.014 0 .027.01.041.015a1.654 1.654 0 0 1 .264.121l21.411 12.37 21.412 12.362a3.155 3.155 0 0 1 1.275 1.665Z"
121
- }));
122
- }
123
-
124
- export { ChatBubbleDark };
@@ -1,216 +0,0 @@
1
- import React from "react";
2
-
3
- /*
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- *
9
- * @license
10
- */ function ChatBubbleLight() {
11
- const chatBubbleID = "cbl-";
12
- return React.createElement("svg", {
13
- xmlns: "http://www.w3.org/2000/svg",
14
- xmlnsXlink: "http://www.w3.org/1999/xlink",
15
- viewBox: "0 0 80 80",
16
- className: "chat-bubble-light"
17
- }, React.createElement("defs", null, React.createElement("linearGradient", {
18
- id: `${chatBubbleID}-a`,
19
- x1: 61.44,
20
- x2: 61.44,
21
- y1: 66.99,
22
- y2: 60.01,
23
- gradientUnits: "userSpaceOnUse"
24
- }, React.createElement("stop", {
25
- offset: 0,
26
- stopColor: "#c6c6c6"
27
- }), React.createElement("stop", {
28
- offset: .78,
29
- stopColor: "#e0e0e0"
30
- })), React.createElement("linearGradient", {
31
- id: `${chatBubbleID}-b`,
32
- x1: 28.49,
33
- x2: 53.04,
34
- y1: 44.06,
35
- y2: 86.58,
36
- gradientUnits: "userSpaceOnUse"
37
- }, React.createElement("stop", {
38
- offset: 0,
39
- stopColor: "#525252",
40
- stopOpacity: .05
41
- }), React.createElement("stop", {
42
- offset: 1,
43
- stopOpacity: .1
44
- })), React.createElement("linearGradient", {
45
- id: `${chatBubbleID}-c`,
46
- x1: 30.05,
47
- x2: 35.5,
48
- y1: 54.31,
49
- y2: 54.31,
50
- gradientUnits: "userSpaceOnUse"
51
- }, React.createElement("stop", {
52
- offset: 0,
53
- stopColor: "#a4a4a4"
54
- }), React.createElement("stop", {
55
- offset: 1,
56
- stopColor: "#bebebe"
57
- })), React.createElement("linearGradient", {
58
- id: `${chatBubbleID}-d`,
59
- x1: 28.61,
60
- x2: 70.69,
61
- y1: -3.97,
62
- y2: 68.92,
63
- gradientUnits: "userSpaceOnUse"
64
- }, React.createElement("stop", {
65
- offset: 0,
66
- stopColor: "#f4f4f4"
67
- }), React.createElement("stop", {
68
- offset: .52,
69
- stopColor: "#e0e0e0"
70
- }), React.createElement("stop", {
71
- offset: .56,
72
- stopColor: "#d8d8d8"
73
- }), React.createElement("stop", {
74
- offset: .61,
75
- stopColor: "#c6c6c6"
76
- }), React.createElement("stop", {
77
- offset: .89,
78
- stopColor: "#a8a8a8"
79
- }), React.createElement("stop", {
80
- offset: .96,
81
- stopColor: "#8d8d8d"
82
- })), React.createElement("linearGradient", {
83
- xlinkHref: `#${chatBubbleID}-a`,
84
- id: `${chatBubbleID}-e`,
85
- x1: 38.01,
86
- x2: 38.01,
87
- y1: 59.43,
88
- y2: 3.27
89
- }), React.createElement("linearGradient", {
90
- id: `${chatBubbleID}-f`,
91
- x1: 21.52,
92
- x2: 61.39,
93
- y1: 36.2,
94
- y2: 36.2,
95
- gradientUnits: "userSpaceOnUse"
96
- }, React.createElement("stop", {
97
- offset: 0,
98
- stopColor: "#e0e0e0"
99
- }), React.createElement("stop", {
100
- offset: 1,
101
- stopColor: "#c6c6c6"
102
- })), React.createElement("linearGradient", {
103
- id: `${chatBubbleID}-h`,
104
- x1: 17.68,
105
- x2: 55.37,
106
- y1: 15.75,
107
- y2: 37.5,
108
- gradientUnits: "userSpaceOnUse"
109
- }, React.createElement("stop", {
110
- offset: 0,
111
- stopColor: "#fff"
112
- }), React.createElement("stop", {
113
- offset: .05,
114
- stopColor: "#fdfdfd"
115
- }), React.createElement("stop", {
116
- offset: .3,
117
- stopColor: "#f6f6f6"
118
- }), React.createElement("stop", {
119
- offset: 1,
120
- stopColor: "#f4f4f4"
121
- })), React.createElement("linearGradient", {
122
- xlinkHref: `#${chatBubbleID}-h`,
123
- id: `${chatBubbleID}-i`,
124
- x1: 14.24,
125
- x2: 51.92,
126
- y1: 21.81,
127
- y2: 43.56
128
- }), React.createElement("linearGradient", {
129
- xlinkHref: `#${chatBubbleID}-h`,
130
- id: `${chatBubbleID}-j`,
131
- x1: 10.96,
132
- x2: 48.66,
133
- y1: 27.56,
134
- y2: 49.33
135
- }), React.createElement("linearGradient", {
136
- id: `${chatBubbleID}-k`,
137
- x1: 15.14,
138
- x2: 63.06,
139
- y1: 5.72,
140
- y2: 33.52,
141
- gradientUnits: "userSpaceOnUse"
142
- }, React.createElement("stop", {
143
- offset: .78,
144
- stopColor: "#fff"
145
- }), React.createElement("stop", {
146
- offset: .8,
147
- stopColor: "#fefefe",
148
- stopOpacity: .98
149
- }), React.createElement("stop", {
150
- offset: .82,
151
- stopColor: "#fcfcfc",
152
- stopOpacity: .93
153
- }), React.createElement("stop", {
154
- offset: .85,
155
- stopColor: "#f8f8f8",
156
- stopOpacity: .84
157
- }), React.createElement("stop", {
158
- offset: .87,
159
- stopColor: "#f2f2f2",
160
- stopOpacity: .72
161
- }), React.createElement("stop", {
162
- offset: .9,
163
- stopColor: "#eaeaea",
164
- stopOpacity: .56
165
- }), React.createElement("stop", {
166
- offset: .93,
167
- stopColor: "#e1e1e1",
168
- stopOpacity: .37
169
- }), React.createElement("stop", {
170
- offset: .95,
171
- stopColor: "#d7d7d7",
172
- stopOpacity: .14
173
- }), React.createElement("stop", {
174
- offset: .97,
175
- stopColor: "#d0d0d0",
176
- stopOpacity: 0
177
- }))), React.createElement("path", {
178
- d: "M0 0h80v80H0z",
179
- className: "chat-bubble-light__background"
180
- }), React.createElement("path", {
181
- d: "M61.3 68.11a.67.67 0 0 0 .09-.14.67.67 0 0 1-.09.14Zm.22-.46a1.58 1.58 0 0 0 0-.32v-7.24 7.24a1.58 1.58 0 0 1 0 .32Zm-.09.26a1.18 1.18 0 0 0 .07-.2 1.18 1.18 0 0 1-.07.2Z",
182
- className: "chat-bubble-light__gradient-a"
183
- }), React.createElement("path", {
184
- d: "m15.13 52.11 45.5 26.28 4.25-2.51L19.4 49.63l-4.27 2.48z",
185
- className: "chat-bubble-light__gradient-b"
186
- }), React.createElement("path", {
187
- d: "m32.66 52.85-2.25 4.22a1.08 1.08 0 0 1-.36.35l2.83-1.65a1.08 1.08 0 0 0 .36-.35l2.26-4.22Z",
188
- className: "chat-bubble-light__gradient-c"
189
- }), React.createElement("path", {
190
- d: "M63.45 26.58 20.63 1.86a1 1 0 0 0-1-.1l-4 2.3a1 1 0 0 1 1 .1l42.85 24.72a3.17 3.17 0 0 1 1.42 2.47l-.1 36.08a1 1 0 0 1-.42.91l4-2.3a1 1 0 0 0 .42-.91L64.88 29a3.14 3.14 0 0 0-1.43-2.42Z",
191
- className: "chat-bubble-light__gradient-d"
192
- }), React.createElement("path", {
193
- d: "M59.48 28.88a3.17 3.17 0 0 1 1.42 2.47l-.1 36.08c0 .9-.65 1.26-1.42.81l-26.7-15.4-2.26 4.22a.9.9 0 0 1-1.33.28 3.07 3.07 0 0 1-1.22-1.53l-2.33-7.09-9-5.2a3.15 3.15 0 0 1-1.43-2.46L15.23 5c0-.9.64-1.27 1.43-.81Z",
194
- className: "chat-bubble-light__gradient-e"
195
- }), React.createElement("path", {
196
- d: "M59.48 28.88a3.17 3.17 0 0 1 1.42 2.47l-.1 36.08c0 .9-.65 1.26-1.42.81l-26.7-15.4-2.26 4.22a.9.9 0 0 1-1.33.28 3.07 3.07 0 0 1-1.22-1.53l-2.33-7.09-9-5.2a3.15 3.15 0 0 1-1.43-2.46L15.23 5c0-.9.64-1.27 1.43-.81Z",
197
- className: "chat-bubble-light__gradient-f"
198
- }), React.createElement("path", {
199
- d: "M59.48 28.88a3.17 3.17 0 0 1 1.42 2.47l-.1 36.08c0 .9-.65 1.26-1.42.81l-26.7-15.4-2.26 4.22a.9.9 0 0 1-1.33.28 3.07 3.07 0 0 1-1.22-1.53l-2.33-7.09-9-5.2a3.15 3.15 0 0 1-1.43-2.46L15.23 5c0-.9.64-1.27 1.43-.81Z",
200
- className: "chat-bubble-light__gradient-e-duplicate"
201
- }), React.createElement("path", {
202
- d: "m57.99 37.07-.01 3.9L18.03 17.9l.01-3.9 39.95 23.07z",
203
- className: "chat-bubble-light__gradient-h"
204
- }), React.createElement("path", {
205
- d: "m57.99 45.11-.01 3.91-39.95-23.07.01-3.9 39.95 23.06z",
206
- className: "chat-bubble-light__gradient-i"
207
- }), React.createElement("path", {
208
- d: "m44.62 45.04-.01 3.9L18.03 33.6l.01-3.9 26.58 15.34z",
209
- className: "chat-bubble-light__gradient-j"
210
- }), React.createElement("path", {
211
- d: "M60.76 30.55a2.54 2.54 0 0 1 .14.8v3.95l.41-.13v-3.82a3.54 3.54 0 0 0-1.63-2.82L16.86 3.8a2.09 2.09 0 0 0-.44-.19l-.78.45a1 1 0 0 1 .21-.06h.48l.27.12 21.47 12.4 21.41 12.36a3.19 3.19 0 0 1 1.28 1.67Z",
212
- className: "chat-bubble-light__gradient-k"
213
- }));
214
- }
215
-
216
- export { ChatBubbleLight };
@@ -1,86 +0,0 @@
1
- import { Button } from "@carbon/react";
2
-
3
- import React, { useState, useRef } from "react";
4
-
5
- import { useSelector } from "react-redux";
6
-
7
- import { useLanguagePack } from "../hooks/useLanguagePack.js";
8
-
9
- import { useOnMount } from "../hooks/useOnMount.js";
10
-
11
- import { ChatWidthBreakpoint } from "../../../types/state/AppState.js";
12
-
13
- import { ChatBubbleDark } from "./ChatBubbleDark.js";
14
-
15
- import { ChatBubbleLight } from "./ChatBubbleLight.js";
16
-
17
- import { SimpleHeader as SimpleHeaderExport } from "./header/SimpleHeader.js";
18
-
19
- import { MaybeDangerouslySetInnerHTML as MaybeDangerouslySetInnerHTMLExport } from "./util/MaybeDangerouslySetInnerHTML.js";
20
-
21
- import "../../../types/utilities/carbonTypes.js";
22
-
23
- import { OverlayPanelName } from "./OverlayPanel.js";
24
-
25
- import { CarbonTheme } from "../../../types/config/PublicConfig.js";
26
-
27
- /*
28
- * Copyright IBM Corp. 2025
29
- *
30
- * This source code is licensed under the Apache-2.0 license found in the
31
- * LICENSE file in the root directory of this source tree.
32
- *
33
- * @license
34
- */ function Disclaimer({onAcceptDisclaimer: onAcceptDisclaimer, onClose: onClose, disclaimerHTML: disclaimerHTML, disclaimerAcceptButtonRef: disclaimerAcceptButtonRef}) {
35
- const languagePack = useLanguagePack();
36
- const chatWidthBreakpoint = useSelector(state => state.chatWidthBreakpoint);
37
- const {carbonTheme: carbonTheme, useAITheme: useAITheme} = useSelector(state => state.theme);
38
- const isDarkTheme = carbonTheme === CarbonTheme.G90 || carbonTheme === CarbonTheme.G100;
39
- const [hasReadDisclaimer, setHasReadDisclaimer] = useState(false);
40
- const disclaimerContent = useRef();
41
- const onScroll = () => {
42
- const {scrollTop: scrollTop, scrollHeight: scrollHeight, clientHeight: clientHeight} = disclaimerContent.current;
43
- const scrollBottom = clientHeight - scrollHeight + scrollTop;
44
- if (scrollBottom >= 0) {
45
- setHasReadDisclaimer(true);
46
- }
47
- };
48
- useOnMount(() => {
49
- onScroll();
50
- });
51
- function renderChatBubble() {
52
- return isDarkTheme ? React.createElement(ChatBubbleDark, null) : React.createElement(ChatBubbleLight, null);
53
- }
54
- return React.createElement("div", {
55
- className: "WACDisclaimerContainer"
56
- }, React.createElement("div", {
57
- className: "WAC__disclaimer"
58
- }, React.createElement(SimpleHeaderExport, {
59
- useAITheme: useAITheme,
60
- onClose: onClose,
61
- testIdPrefix: OverlayPanelName.DISCLAIMER
62
- }), React.createElement("div", {
63
- className: "WACPanelContent WAC__disclaimer-content",
64
- onScroll: onScroll,
65
- ref: disclaimerContent
66
- }, React.createElement("div", {
67
- className: "WAC__disclaimer-icon"
68
- }, renderChatBubble()), React.createElement("h1", {
69
- className: "WAC__disclaimer-title"
70
- }, languagePack.disclaimer_title), React.createElement(MaybeDangerouslySetInnerHTMLExport, {
71
- className: "WAC__disclaimer-description",
72
- html: disclaimerHTML
73
- })), React.createElement("div", {
74
- className: "WAC__disclaimer-buttons"
75
- }, React.createElement("div", {
76
- className: "WAC__disclaimer-buttonsPadding"
77
- }, React.createElement(Button, {
78
- className: "WAC__disclaimer-acceptButton",
79
- ref: disclaimerAcceptButtonRef,
80
- onClick: onAcceptDisclaimer,
81
- size: chatWidthBreakpoint === ChatWidthBreakpoint.WIDE ? "2xl" : "lg",
82
- disabled: !hasReadDisclaimer
83
- }, languagePack.disclaimer_accept)))));
84
- }
85
-
86
- export { Disclaimer };
@@ -1,20 +0,0 @@
1
- import ErrorFilled from "@carbon/icons-react/es/ErrorFilled.js";
2
-
3
- import cx from "classnames";
4
-
5
- import React from "react";
6
-
7
- /*
8
- * Copyright IBM Corp. 2025
9
- *
10
- * This source code is licensed under the Apache-2.0 license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- *
13
- * @license
14
- */ function ErrorIcon(props) {
15
- return React.createElement(ErrorFilled, {
16
- className: cx("WACErrorIcon", props.className)
17
- });
18
- }
19
-
20
- export { ErrorIcon };
@@ -1,89 +0,0 @@
1
- import React from "react";
2
-
3
- import { uuid } from "../utils/lang/uuid.js";
4
-
5
- /*
6
- * Copyright IBM Corp. 2025
7
- *
8
- * This source code is licensed under the Apache-2.0 license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- *
11
- * @license
12
- */ function ErrorMessageDark() {
13
- const linearGradientID = uuid();
14
- return React.createElement("svg", {
15
- viewBox: "0 0 80 80"
16
- }, React.createElement("defs", null, React.createElement("linearGradient", {
17
- id: `${linearGradientID}-1`,
18
- x1: "38.91",
19
- y1: "4.92",
20
- x2: "38.91",
21
- y2: "73.85",
22
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
23
- gradientUnits: "userSpaceOnUse"
24
- }, React.createElement("stop", {
25
- offset: "0",
26
- stopColor: "#262626"
27
- }), React.createElement("stop", {
28
- offset: "1",
29
- stopColor: "#393939"
30
- })), React.createElement("linearGradient", {
31
- id: `${linearGradientID}-2`,
32
- x1: "12.44",
33
- y1: "71.21",
34
- x2: "76.34",
35
- y2: "34.31",
36
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
37
- gradientUnits: "userSpaceOnUse"
38
- }, React.createElement("stop", {
39
- offset: "0",
40
- stopColor: "#525252"
41
- }), React.createElement("stop", {
42
- offset: "0.52",
43
- stopColor: "#393939"
44
- }), React.createElement("stop", {
45
- offset: "0.61",
46
- stopColor: "#393939"
47
- }), React.createElement("stop", {
48
- offset: "0.99",
49
- stopColor: "#161616"
50
- })), React.createElement("linearGradient", {
51
- id: `${linearGradientID}-3`,
52
- x1: "39.38",
53
- y1: "50.63",
54
- x2: "52.04",
55
- y2: "72.55",
56
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
57
- gradientUnits: "userSpaceOnUse"
58
- }, React.createElement("stop", {
59
- offset: "0.11",
60
- stopColor: "#6f6f6f",
61
- stopOpacity: "0"
62
- }), React.createElement("stop", {
63
- offset: "0.94",
64
- stopColor: "#6f6f6f"
65
- }))), React.createElement("rect", {
66
- width: "80",
67
- height: "80",
68
- fill: "none"
69
- }), React.createElement("polygon", {
70
- points: "59.91 78.34 16.91 53.51 21.77 50.7 64.77 75.53 59.91 78.34",
71
- opacity: "0.25",
72
- className: "error_message_isolate"
73
- }), React.createElement("path", {
74
- d: "M39,6.92c12.15,7,22,24,21.92,38S51,64.49,38.83,57.48s-22-24-21.92-38S26.83-.09,39,6.92Z",
75
- fill: `url(#${linearGradientID}-1)`
76
- }), React.createElement("path", {
77
- d: "M42.85,4.68C36.74,1.15,31.2.82,27.2,3.15L23.54,5.28C27.52,3.08,33,3.45,39,6.92c12.15,7,22,24,21.92,38,0,6.77-2.35,11.58-6.13,13.94h-.07c-.32.2,3.66-2.1,3.66-2.1,4-2.3,6.39-7.18,6.41-14.12C64.81,28.7,55,11.69,42.85,4.68Z",
78
- fill: `url(#${linearGradientID}-2)`
79
- }), React.createElement("path", {
80
- d: "M29.11,3.91v.36a19.59,19.59,0,0,1,9.68,3c12,6.94,21.78,23.84,21.74,37.65,0,9.4-4.56,15.23-11.83,15.23a19.59,19.59,0,0,1-9.68-3C27,50.21,17.24,33.32,17.28,19.5c0-9.39,4.56-15.23,11.83-15.23V3.91m0,0c-7.21,0-12.17,5.71-12.2,15.59,0,14,9.77,31,21.92,38a20.18,20.18,0,0,0,9.87,3c7.21,0,12.17-5.71,12.2-15.6C60.9,31,51.13,14,39,6.9a19.94,19.94,0,0,0-9.87-3Z",
81
- fill: `url(#${linearGradientID}-3)`
82
- }), React.createElement("path", {
83
- className: "cls-6",
84
- d: "M38.93,49.79a6.83,6.83,0,0,1-2.66-2.51,6.19,6.19,0,0,1-.81-3v-1a2.26,2.26,0,0,1,.81-2c.54-.35,1.43-.17,2.66.54a6.67,6.67,0,0,1,2.61,2.5,6,6,0,0,1,.81,3v1a2.23,2.23,0,0,1-.81,2C41,50.66,40.13,50.49,38.93,49.79ZM37.77,38.16,36,22.77V13l5.81,3.36v9.73L40.17,39.55Z",
85
- fill: "#525252"
86
- }));
87
- }
88
-
89
- export { ErrorMessageDark };
@@ -1,135 +0,0 @@
1
- import React from "react";
2
-
3
- import { uuid } from "../utils/lang/uuid.js";
4
-
5
- /*
6
- * Copyright IBM Corp. 2025
7
- *
8
- * This source code is licensed under the Apache-2.0 license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- *
11
- * @license
12
- */ function ErrorMessageLight() {
13
- const linearGradientID = uuid();
14
- return React.createElement("svg", {
15
- viewBox: "0 0 80 80"
16
- }, React.createElement("defs", null, React.createElement("linearGradient", {
17
- id: `${linearGradientID}-1`,
18
- x1: "29.96",
19
- y1: "36.32",
20
- x2: "53.15",
21
- y2: "-3.84",
22
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
23
- gradientUnits: "userSpaceOnUse"
24
- }, React.createElement("stop", {
25
- offset: "0",
26
- stopColor: "#525252",
27
- stopOpacity: "0.05"
28
- }), React.createElement("stop", {
29
- offset: "1",
30
- stopOpacity: "0.1"
31
- })), React.createElement("linearGradient", {
32
- id: `${linearGradientID}-2`,
33
- x1: "38.91",
34
- y1: "29.41",
35
- x2: "38.91",
36
- y2: "78.7",
37
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
38
- gradientUnits: "userSpaceOnUse"
39
- }, React.createElement("stop", {
40
- offset: "0",
41
- stopColor: "#c6c6c6"
42
- }), React.createElement("stop", {
43
- offset: "0.78",
44
- stopColor: "#e0e0e0"
45
- })), React.createElement("linearGradient", {
46
- id: `${linearGradientID}-3`,
47
- x1: "18.08",
48
- y1: "67.95",
49
- x2: "71.65",
50
- y2: "37.02",
51
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
52
- gradientUnits: "userSpaceOnUse"
53
- }, React.createElement("stop", {
54
- offset: "0",
55
- stopColor: "#e0e0e0"
56
- }), React.createElement("stop", {
57
- offset: "0.13",
58
- stopColor: "#f4f4f4"
59
- }), React.createElement("stop", {
60
- offset: "0.56",
61
- stopColor: "#e0e0e0"
62
- }), React.createElement("stop", {
63
- offset: "0.62",
64
- stopColor: "#d8d8d8"
65
- }), React.createElement("stop", {
66
- offset: "0.7",
67
- stopColor: "#c6c6c6"
68
- }), React.createElement("stop", {
69
- offset: "0.89",
70
- stopColor: "#a8a8a8"
71
- }), React.createElement("stop", {
72
- offset: "1",
73
- stopColor: "#8d8d8d"
74
- })), React.createElement("linearGradient", {
75
- id: `${linearGradientID}-4`,
76
- x1: "27.93",
77
- y1: "30.78",
78
- x2: "49.86",
79
- y2: "68.76",
80
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
81
- gradientUnits: "userSpaceOnUse"
82
- }, React.createElement("stop", {
83
- offset: "0.54",
84
- stopColor: "#d0d0d0",
85
- stopOpacity: "0"
86
- }), React.createElement("stop", {
87
- offset: "0.82",
88
- stopColor: "#f1f1f1",
89
- stopOpacity: "0.7"
90
- }), React.createElement("stop", {
91
- offset: "0.94",
92
- stopColor: "#fff"
93
- })), React.createElement("linearGradient", {
94
- id: `${linearGradientID}-5`,
95
- x1: "28.67",
96
- y1: "55.68",
97
- x2: "47.16",
98
- y2: "45.01",
99
- gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
100
- gradientUnits: "userSpaceOnUse"
101
- }, React.createElement("stop", {
102
- offset: "0",
103
- stopColor: "#fff"
104
- }), React.createElement("stop", {
105
- offset: "0.05",
106
- stopColor: "#fdfdfd"
107
- }), React.createElement("stop", {
108
- offset: "0.3",
109
- stopColor: "#f6f6f6"
110
- }), React.createElement("stop", {
111
- offset: "1",
112
- stopColor: "#f4f4f4"
113
- }))), React.createElement("rect", {
114
- width: "80",
115
- height: "80",
116
- fill: "none"
117
- }), React.createElement("polygon", {
118
- points: "59.91 78.34 16.91 53.51 21.77 50.7 64.77 75.53 59.91 78.34",
119
- fill: `url(#${linearGradientID}-1)`
120
- }), React.createElement("path", {
121
- d: "M39,6.92c12.15,7,22,24,21.92,38S51,64.49,38.83,57.48s-22-24-21.92-38S26.83-.09,39,6.92Z",
122
- fill: `url(#${linearGradientID}-2)`
123
- }), React.createElement("path", {
124
- d: "M42.85,4.68C36.74,1.15,31.2.82,27.2,3.15L23.54,5.28C27.52,3.08,33,3.45,39,6.92c12.15,7,22,24,21.92,38,0,6.77-2.35,11.58-6.13,13.94h-.07c-.32.2,3.66-2.1,3.66-2.1,4-2.3,6.39-7.18,6.41-14.12C64.81,28.7,55,11.69,42.85,4.68Z",
125
- fill: `url(#${linearGradientID}-3)`
126
- }), React.createElement("path", {
127
- d: "M29.11,3.91v.36a19.59,19.59,0,0,1,9.68,3c12,6.94,21.78,23.84,21.74,37.65,0,9.4-4.56,15.23-11.83,15.23a19.59,19.59,0,0,1-9.68-3C27,50.21,17.24,33.32,17.28,19.5c0-9.39,4.56-15.23,11.83-15.23V3.91m0,0c-7.21,0-12.17,5.71-12.2,15.59,0,14,9.77,31,21.92,38a20.18,20.18,0,0,0,9.87,3c7.21,0,12.17-5.71,12.2-15.6C60.9,31,51.13,14,39,6.9a19.94,19.94,0,0,0-9.87-3Z",
128
- fill: `url(#${linearGradientID}-4)`
129
- }), React.createElement("path", {
130
- d: "M38.93,49.79a6.83,6.83,0,0,1-2.66-2.51,6.19,6.19,0,0,1-.81-3v-1a2.26,2.26,0,0,1,.81-2c.54-.35,1.43-.17,2.66.54a6.67,6.67,0,0,1,2.61,2.5,6,6,0,0,1,.81,3v1a2.23,2.23,0,0,1-.81,2C41,50.66,40.13,50.49,38.93,49.79ZM37.77,38.16,36,22.77V13l5.81,3.36v9.73L40.17,39.55Z",
131
- fill: `url(#${linearGradientID}-5)`
132
- }));
133
- }
134
-
135
- export { ErrorMessageLight };