@carbon/ai-chat 0.4.0-rc.2 → 0.4.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/aiChatEntry.js +220 -14
- package/dist/es/chat.AppContainer.js +6491 -0
- package/dist/es/chat.AppState.js +40 -0
- package/dist/es/{chat/shared/components/BasePanelComponent.js → chat.BasePanelComponent.js} +3 -3
- package/dist/es/{chat/shared/components/panels/BodyAndFooterPanelComponent.js → chat.BodyAndFooterPanelComponent.js} +92 -9
- package/dist/es/chat.BodyWithFooterComponent.js +140 -0
- package/dist/es/{chat/shared/components/header/BotHeader.js → chat.BotHeader.js} +7 -9
- package/dist/es/{chat/shared/components/responseTypes/carousel/Carousel.js → chat.Carousel.js} +3 -3
- package/dist/es/chat.CatastrophicError.js +381 -0
- package/dist/es/chat.Chat.js +2009 -0
- package/dist/es/chat.Disclaimer.js +553 -0
- package/dist/es/chat.Header.js +1025 -0
- package/dist/es/{chat/shared/components/util/HideComponent.js → chat.HideComponent.js} +9 -2
- package/dist/es/{types/config/HomeScreenConfig.js → chat.HomeScreenConfig.js} +1 -1
- package/dist/es/{chat/shared/components/homeScreen/HomeScreen.js → chat.HomeScreenContainer.js} +159 -14
- package/dist/es/{chat/shared/components/homeScreen/HomeScreenHeader.js → chat.HomeScreenHeader.js} +3 -3
- package/dist/es/{chat/shared/services/haa/HumanAgentServiceImpl.js → chat.HumanAgentServiceImpl.js} +215 -17
- package/dist/es/{chat/shared/components/responseTypes/iframe/IFrameComponent.js → chat.IFrameComponent.js} +4 -8
- package/dist/es/chat.IFramePanel.js +151 -0
- package/dist/es/{chat/shared/components/input/Input.js → chat.Input.js} +214 -18
- package/dist/es/{types/config/ServiceDeskConfig.js → chat.LocalMessageItem.js} +17 -1
- package/dist/es/chat.MessageTypeComponent.js +3580 -0
- package/dist/es/{types/messaging/Messages.js → chat.Messages.js} +1 -1
- package/dist/es/chat.MountChildrenOnDelay.js +97 -0
- package/dist/es/{chat/shared/components/OverlayPanel.js → chat.PageObjectId.js} +70 -4
- package/dist/es/{chat/web-components/components/markdownText/src/markdownText.scss.js → chat.RichText.js} +347 -1
- package/dist/es/chat.TourContainer.js +524 -0
- package/dist/es/{chat/languages/en.json.js → chat.VideoComponent.js} +561 -1
- package/dist/es/chat.ViewSourcePanel.js +187 -0
- package/dist/es/{chat/shared/store/actions.js → chat.actions.js} +2 -2
- package/dist/es/{chat/shared/utils/browserUtils.js → chat.browserUtils.js} +1 -1
- package/dist/es/{types/utilities/carbonTypes.js → chat.carbonTypes.js} +2 -2
- package/dist/es/{chat/web-components/components/codeElement/src/codeElement.scss.js → chat.cds-aichat-code.js} +64 -1
- package/dist/es/{chat/shared/utils/constants.js → chat.constants.js} +4 -7
- package/dist/es/{types/events/eventBusTypes.js → chat.customElement.js} +32 -1
- package/dist/es/chat.dynamic-imports.js +192 -0
- package/dist/es/{chat/shared/utils/htmlUtils.js → chat.htmlUtils.js} +16 -2
- package/dist/es/{chat/shared/utils/messageUtils.js → chat.messageUtils.js} +54 -7
- package/dist/es/{chat/shared/utils/miscUtils.js → chat.miscUtils.js} +24 -5
- package/dist/es/chat.resolvablePromise.js +315 -0
- package/dist/es/{chat/shared/store/selectors.js → chat.selectors.js} +1 -1
- package/dist/es/{chat/shared/utils/lang/stringUtils.js → chat.stringUtils.js} +2 -2
- package/dist/es/{chat/shared/hooks/useCounter.js → chat.useCounter.js} +1 -1
- package/dist/es/{chat/shared/hooks/useOnMount.js → chat.useOnMount.js} +1 -1
- package/dist/es/{chat/shared/utils/domUtils.js → chat.usePrevious.js} +47 -1
- package/dist/es/{chat/shared/utils/lang/UUIDType.js → chat.uuid.js} +15 -3
- package/dist/es/web-components/cds-aichat-container/index.js +73 -4
- package/dist/es/web-components/cds-aichat-custom-element/index.js +1 -3
- package/package.json +2 -2
- package/dist/es/chat/dynamic-imports/dynamic-imports.js +0 -96
- package/dist/es/chat/react/components/AppContainer.js +0 -197
- package/dist/es/chat/react/components/UserDefinedResponsePortalsContainer.js +0 -31
- package/dist/es/chat/react/components/WriteableElementsPortalsContainer.js +0 -28
- package/dist/es/chat/react/components/chainOfThought/ChainOfThought.js +0 -20
- package/dist/es/chat/react/components/chatHeader/ChatHeaderAvatar.js +0 -20
- package/dist/es/chat/react/components/chatHeader/ChatHeaderLink.js +0 -22
- package/dist/es/chat/react/components/chatHeader/ChatHeaderMenu.js +0 -27
- package/dist/es/chat/react/components/chatHeader/ChatHeaderMenuButton.js +0 -60
- package/dist/es/chat/react/components/chatHeader/ChatHeaderMenuItem.js +0 -24
- package/dist/es/chat/react/components/chatHeader/ChatHeaderMenuItemRadioGroup.js +0 -28
- package/dist/es/chat/react/components/chatHeader/ChatHeaderOverflowMenu.js +0 -69
- package/dist/es/chat/react/components/chatHeader/ChatHeaderTitle.js +0 -22
- package/dist/es/chat/react/components/feedback/FeedbackButtonsComponent.js +0 -20
- package/dist/es/chat/react/components/feedback/FeedbackComponent.js +0 -20
- package/dist/es/chat/react/components/inlineLoading/InlineLoadingComponent.js +0 -20
- package/dist/es/chat/react/components/markdownText/MarkdownText.js +0 -20
- package/dist/es/chat/react/components/stopStreamingButton/StopStreamingButton.js +0 -20
- package/dist/es/chat/react/components/table/Table.js +0 -20
- package/dist/es/chat/shared/Chat.js +0 -115
- package/dist/es/chat/shared/ChatInstanceImpl.js +0 -360
- package/dist/es/chat/shared/chatEntryFunctions.js +0 -46
- package/dist/es/chat/shared/components/Avatar.js +0 -286
- package/dist/es/chat/shared/components/BodyWithFooterComponent.js +0 -56
- package/dist/es/chat/shared/components/CatastrophicError.js +0 -77
- package/dist/es/chat/shared/components/Chat.js +0 -244
- package/dist/es/chat/shared/components/ChatBubbleDark.js +0 -124
- package/dist/es/chat/shared/components/ChatBubbleLight.js +0 -216
- package/dist/es/chat/shared/components/Disclaimer.js +0 -86
- package/dist/es/chat/shared/components/ErrorIcon.js +0 -20
- package/dist/es/chat/shared/components/ErrorMessageDark.js +0 -89
- package/dist/es/chat/shared/components/ErrorMessageLight.js +0 -135
- package/dist/es/chat/shared/components/HydrationPanel.js +0 -58
- package/dist/es/chat/shared/components/LatestWelcomeNodes.js +0 -26
- package/dist/es/chat/shared/components/ResponseStopped.js +0 -19
- package/dist/es/chat/shared/components/SkeletonPicker.js +0 -32
- package/dist/es/chat/shared/components/WriteableElement.js +0 -22
- package/dist/es/chat/shared/components/agent/AgentAvatar.js +0 -54
- package/dist/es/chat/shared/components/agent/AgentBanner.js +0 -109
- package/dist/es/chat/shared/components/agent/AgentBannerContainer.js +0 -28
- package/dist/es/chat/shared/components/agent/AvailabilityMessage.js +0 -49
- package/dist/es/chat/shared/components/aria/AriaAnnouncerComponent.js +0 -122
- package/dist/es/chat/shared/components/aria/AriaAnnouncerProvider.js +0 -48
- package/dist/es/chat/shared/components/aria/AriaLiveMessage.js +0 -22
- package/dist/es/chat/shared/components/header/AISlug.js +0 -22
- package/dist/es/chat/shared/components/header/Header.js +0 -460
- package/dist/es/chat/shared/components/header/SimpleHeader.js +0 -27
- package/dist/es/chat/shared/components/homeScreen/HomeScreenContainer.js +0 -68
- package/dist/es/chat/shared/components/launcher/Launcher.js +0 -88
- package/dist/es/chat/shared/components/launcher/LauncherComplex.js +0 -63
- package/dist/es/chat/shared/components/launcher/LauncherContainer.js +0 -73
- package/dist/es/chat/shared/components/launcher/LauncherDesktopContainer.js +0 -221
- package/dist/es/chat/shared/components/launcher/LauncherExtended.js +0 -244
- package/dist/es/chat/shared/components/launcher/LauncherMobileContainer.js +0 -175
- package/dist/es/chat/shared/components/launcher/launcherUtils.js +0 -16
- package/dist/es/chat/shared/components/modals/ConfirmModal.js +0 -67
- package/dist/es/chat/shared/components/modals/EndAgentChatModal.js +0 -46
- package/dist/es/chat/shared/components/modals/RequestScreenShareModal.js +0 -43
- package/dist/es/chat/shared/components/notifications/Notifications.js +0 -58
- package/dist/es/chat/shared/components/panels/CustomPanel.js +0 -136
- package/dist/es/chat/shared/components/responseTypes/agent/ConnectToAgent.js +0 -30
- package/dist/es/chat/shared/components/responseTypes/agent/RealConnectToAgent.js +0 -102
- package/dist/es/chat/shared/components/responseTypes/audio/AudioComponent.js +0 -26
- package/dist/es/chat/shared/components/responseTypes/buttonItem/BaseButtonItemComponent.js +0 -69
- package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemComponent.js +0 -48
- package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemCustomEventComponent.js +0 -42
- package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemPostBackComponent.js +0 -54
- package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemShowPanelComponent.js +0 -36
- package/dist/es/chat/shared/components/responseTypes/buttonItem/ButtonItemURLComponent.js +0 -42
- package/dist/es/chat/shared/components/responseTypes/card/CardItemComponent.js +0 -34
- package/dist/es/chat/shared/components/responseTypes/carousel/CarouselItemComponent.js +0 -39
- package/dist/es/chat/shared/components/responseTypes/conversationalSearch/ConversationalSearch.js +0 -92
- package/dist/es/chat/shared/components/responseTypes/conversationalSearch/ConversationalSearchText.js +0 -158
- package/dist/es/chat/shared/components/responseTypes/custom/UserDefinedResponse.js +0 -33
- package/dist/es/chat/shared/components/responseTypes/datePicker/DatePickerComponent.js +0 -176
- package/dist/es/chat/shared/components/responseTypes/error/InlineError.js +0 -32
- package/dist/es/chat/shared/components/responseTypes/grid/GridItemComponent.js +0 -109
- package/dist/es/chat/shared/components/responseTypes/iframe/IFrameMessage.js +0 -32
- package/dist/es/chat/shared/components/responseTypes/iframe/IFramePanel.js +0 -51
- package/dist/es/chat/shared/components/responseTypes/iframe/IFramePreviewCard.js +0 -64
- package/dist/es/chat/shared/components/responseTypes/iframe/InlineIFrame.js +0 -55
- package/dist/es/chat/shared/components/responseTypes/image/Image.js +0 -120
- package/dist/es/chat/shared/components/responseTypes/options/OptionComponent.js +0 -83
- package/dist/es/chat/shared/components/responseTypes/options/SelectComponent.js +0 -84
- package/dist/es/chat/shared/components/responseTypes/table/TableContainer.js +0 -96
- package/dist/es/chat/shared/components/responseTypes/text/TextArea.js +0 -68
- package/dist/es/chat/shared/components/responseTypes/tour/TourCard.js +0 -73
- package/dist/es/chat/shared/components/responseTypes/util/BodyMessageComponents.js +0 -65
- package/dist/es/chat/shared/components/responseTypes/util/ClickableImage.js +0 -36
- package/dist/es/chat/shared/components/responseTypes/util/Description.js +0 -21
- package/dist/es/chat/shared/components/responseTypes/util/FooterButtonComponents.js +0 -36
- package/dist/es/chat/shared/components/responseTypes/util/MediaPlayer.js +0 -157
- package/dist/es/chat/shared/components/responseTypes/util/Metablock.js +0 -27
- package/dist/es/chat/shared/components/responseTypes/util/RichText.js +0 -31
- package/dist/es/chat/shared/components/responseTypes/util/SearchResultBody.js +0 -53
- package/dist/es/chat/shared/components/responseTypes/util/StreamingRichText.js +0 -38
- package/dist/es/chat/shared/components/responseTypes/util/TextHolderTile.js +0 -35
- package/dist/es/chat/shared/components/responseTypes/util/citations/CitationCard.js +0 -65
- package/dist/es/chat/shared/components/responseTypes/util/citations/CitationCardContent.js +0 -62
- package/dist/es/chat/shared/components/responseTypes/util/citations/CitationClickableCard.js +0 -23
- package/dist/es/chat/shared/components/responseTypes/util/citations/ExpandToPanelCard.js +0 -50
- package/dist/es/chat/shared/components/responseTypes/util/citations/ViewSourcePanel.js +0 -57
- package/dist/es/chat/shared/components/responseTypes/video/VideoComponent.js +0 -23
- package/dist/es/chat/shared/components/tour/TourCloseMinimizeComponent.js +0 -44
- package/dist/es/chat/shared/components/tour/TourContainer.js +0 -212
- package/dist/es/chat/shared/components/tour/TourControlsComponent.js +0 -98
- package/dist/es/chat/shared/components/tour/TourStepContentComponent.js +0 -156
- package/dist/es/chat/shared/components/tour/TourStepSkeletonComponent.js +0 -20
- package/dist/es/chat/shared/components/util/AnnounceOnMountComponent.js +0 -42
- package/dist/es/chat/shared/components/util/IconHolder.js +0 -16
- package/dist/es/chat/shared/components/util/ImageWithFallback.js +0 -31
- package/dist/es/chat/shared/components/util/MaybeDangerouslySetInnerHTML.js +0 -42
- package/dist/es/chat/shared/components/util/MountChildrenOnDelay.js +0 -40
- package/dist/es/chat/shared/components/util/VisuallyHidden.js +0 -18
- package/dist/es/chat/shared/containers/App.js +0 -181
- package/dist/es/chat/shared/containers/MessageComponent.js +0 -465
- package/dist/es/chat/shared/containers/MessageTypeComponent.js +0 -496
- package/dist/es/chat/shared/containers/MessagesComponent.js +0 -469
- package/dist/es/chat/shared/containers/ModalPortal.js +0 -53
- package/dist/es/chat/shared/containers/main/MainWindow.js +0 -708
- package/dist/es/chat/shared/contexts/AriaAnnouncerContext.js +0 -12
- package/dist/es/chat/shared/contexts/HideComponentContext.js +0 -12
- package/dist/es/chat/shared/contexts/LanguagePackContext.js +0 -12
- package/dist/es/chat/shared/contexts/ModalPortalRootContext.js +0 -12
- package/dist/es/chat/shared/contexts/ServiceManagerContext.js +0 -12
- package/dist/es/chat/shared/contexts/WindowSizeContext.js +0 -12
- package/dist/es/chat/shared/environmentVariables.js +0 -13
- package/dist/es/chat/shared/events/ChatActionsImpl.js +0 -783
- package/dist/es/chat/shared/events/EventBus.js +0 -161
- package/dist/es/chat/shared/hocs/withAriaAnnouncer.js +0 -25
- package/dist/es/chat/shared/hocs/withServiceManager.js +0 -25
- package/dist/es/chat/shared/hooks/useAriaAnnouncer.js +0 -16
- package/dist/es/chat/shared/hooks/useCSSCustomProperties.js +0 -21
- package/dist/es/chat/shared/hooks/useCallbackOnChange.js +0 -24
- package/dist/es/chat/shared/hooks/useEffectDidUpdate.js +0 -21
- package/dist/es/chat/shared/hooks/useLanguagePack.js +0 -16
- package/dist/es/chat/shared/hooks/usePrevious.js +0 -18
- package/dist/es/chat/shared/hooks/useServiceManager.js +0 -16
- package/dist/es/chat/shared/hooks/useShouldSanitizeHTML.js +0 -15
- package/dist/es/chat/shared/hooks/useUUID.js +0 -22
- package/dist/es/chat/shared/hooks/useWindowSize.js +0 -16
- package/dist/es/chat/shared/loadServices.js +0 -72
- package/dist/es/chat/shared/schema/historyToMessages.js +0 -231
- package/dist/es/chat/shared/schema/inputItemToLocalItem.js +0 -30
- package/dist/es/chat/shared/schema/outputItemToLocalItem.js +0 -124
- package/dist/es/chat/shared/services/CustomPanelInstance.js +0 -26
- package/dist/es/chat/shared/services/CustomPanelManager.js +0 -23
- package/dist/es/chat/shared/services/HistoryService.js +0 -59
- package/dist/es/chat/shared/services/MessageService.js +0 -351
- package/dist/es/chat/shared/services/NamespaceService.js +0 -26
- package/dist/es/chat/shared/services/ServiceManager.js +0 -19
- package/dist/es/chat/shared/services/UserSessionStorageService.js +0 -89
- package/dist/es/chat/shared/services/haa/agentStatusMessage.js +0 -108
- package/dist/es/chat/shared/services/haa/humanAgentUtils.js +0 -114
- package/dist/es/chat/shared/services/mockStorage.js +0 -30
- package/dist/es/chat/shared/store/agentActions.js +0 -125
- package/dist/es/chat/shared/store/agentReducers.js +0 -215
- package/dist/es/chat/shared/store/doCreateStore.js +0 -142
- package/dist/es/chat/shared/store/reducerUtils.js +0 -320
- package/dist/es/chat/shared/store/reducers.js +0 -871
- package/dist/es/chat/shared/store/subscriptions.js +0 -55
- package/dist/es/chat/shared/store/tourReducerUtils.js +0 -51
- package/dist/es/chat/shared/utils/ListenerList.js +0 -26
- package/dist/es/chat/shared/utils/PageObjectId.js +0 -25
- package/dist/es/chat/shared/utils/animationUtils.js +0 -77
- package/dist/es/chat/shared/utils/colors.js +0 -71
- package/dist/es/chat/shared/utils/customizers.js +0 -16
- package/dist/es/chat/shared/utils/dateUtils.js +0 -38
- package/dist/es/chat/shared/utils/homeScreenUtils.js +0 -27
- package/dist/es/chat/shared/utils/intlUtils.js +0 -21
- package/dist/es/chat/shared/utils/lang/arrayUtils.js +0 -53
- package/dist/es/chat/shared/utils/lang/langUtils.js +0 -13
- package/dist/es/chat/shared/utils/lang/objectUtils.js +0 -19
- package/dist/es/chat/shared/utils/lang/promiseUtils.js +0 -25
- package/dist/es/chat/shared/utils/lang/uuid.js +0 -16
- package/dist/es/chat/shared/utils/languages.js +0 -156
- package/dist/es/chat/shared/utils/memoizerUtils.js +0 -38
- package/dist/es/chat/shared/utils/messageServiceUtils.js +0 -36
- package/dist/es/chat/shared/utils/resolvablePromise.js +0 -32
- package/dist/es/chat/shared/utils/styleUtils.js +0 -231
- package/dist/es/chat/shared/utils/timeUtils.js +0 -14
- package/dist/es/chat/shared/utils/viewStateUtils.js +0 -38
- package/dist/es/chat/web-components/components/chainOfThought/cds-aichat-chain-of-thought.js +0 -26
- package/dist/es/chat/web-components/components/chainOfThought/src/ChainOfThoughtElement.js +0 -130
- package/dist/es/chat/web-components/components/chainOfThought/src/chainOfThoughtElement.scss.js +0 -3
- package/dist/es/chat/web-components/components/chainOfThought/src/chainOfThoughtElement.template.js +0 -186
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/cds-aichat-chat-header-avatar.js +0 -26
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/src/chatHeaderAvatar.template.js +0 -32
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/src/chatHeaderAvatarElement.js +0 -52
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderAvatar/src/chatHeaderAvatarElement.scss.js +0 -3
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderLink/cds-aichat-chat-header-link.js +0 -44
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderLink/src/chatHeaderLinkElement.template.js +0 -28
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderTitle/cds-aichat-chat-header-title.js +0 -42
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderTitle/src/chatHeaderTitle.scss.js +0 -3
- package/dist/es/chat/web-components/components/chatHeader/chatHeaderTitle/src/chatHeaderTitle.template.js +0 -20
- package/dist/es/chat/web-components/components/codeElement/cds-aichat-code.js +0 -66
- package/dist/es/chat/web-components/components/feedbackButtonsElement/cds-aichat-feedback-buttons.js +0 -26
- package/dist/es/chat/web-components/components/feedbackButtonsElement/src/FeedbackButtonsElement.js +0 -93
- package/dist/es/chat/web-components/components/feedbackButtonsElement/src/feedbackButtonsElement.scss.js +0 -3
- package/dist/es/chat/web-components/components/feedbackButtonsElement/src/feedbackButtonsElement.template.js +0 -84
- package/dist/es/chat/web-components/components/feedbackElement/cds-aichat-feedback.js +0 -30
- package/dist/es/chat/web-components/components/feedbackElement/src/FeedbackElement.js +0 -157
- package/dist/es/chat/web-components/components/feedbackElement/src/feedbackElement.scss.js +0 -3
- package/dist/es/chat/web-components/components/feedbackElement/src/feedbackElement.template.js +0 -95
- package/dist/es/chat/web-components/components/inlineLoadingElement/cds-aichat-inline-loading.js +0 -85
- package/dist/es/chat/web-components/components/inlineLoadingElement/src/styles.scss.js +0 -3
- package/dist/es/chat/web-components/components/markdownText/cds-aichat-markdown-text.js +0 -32
- package/dist/es/chat/web-components/components/markdownText/markdown/markdownToHTML.js +0 -28
- package/dist/es/chat/web-components/components/markdownText/markdown/utils/renderTokenTree.js +0 -191
- package/dist/es/chat/web-components/components/markdownText/markdown/workers/workerManager.js +0 -16
- package/dist/es/chat/web-components/components/markdownText/src/MarkdownElement.js +0 -70
- package/dist/es/chat/web-components/components/markdownText/src/markdownElement.template.js +0 -19
- package/dist/es/chat/web-components/components/roundedButton/cds-aichat-rounded-button.js +0 -29
- package/dist/es/chat/web-components/components/stopStreamingButton/cds-aichat-stop-streaming-button.js +0 -26
- package/dist/es/chat/web-components/components/stopStreamingButton/src/StopStreamingButtonElement.js +0 -49
- package/dist/es/chat/web-components/components/stopStreamingButton/src/stopStreamingButton.scss.js +0 -3
- package/dist/es/chat/web-components/components/stopStreamingButton/src/stopStreamingButton.template.js +0 -44
- package/dist/es/chat/web-components/components/table/cds-aichat-table.js +0 -229
- package/dist/es/chat/web-components/components/table/src/table.scss.js +0 -3
- package/dist/es/chat/web-components/components/table/src/table.template.js +0 -81
- package/dist/es/chat/web-components/components/table/src/tablePagination.template.js +0 -43
- package/dist/es/chat/web-components/components/table/src/tableSkeleton.template.js +0 -17
- package/dist/es/chat/web-components/components/tagListElement/cds-aichat-tag-list.js +0 -28
- package/dist/es/chat/web-components/components/tagListElement/src/TagListElement.js +0 -70
- package/dist/es/chat/web-components/components/tagListElement/src/tagListElement.scss.js +0 -3
- package/dist/es/chat/web-components/components/tagListElement/src/tagListElement.template.js +0 -40
- package/dist/es/chat/web-components/decorators/customElement.js +0 -33
- package/dist/es/chat/web-components/internal/cds-aichat-internal.js +0 -78
- package/dist/es/chat/web-components/settings.js +0 -13
- package/dist/es/node_modules/@carbon/colors/es/index.js +0 -11
- package/dist/es/react/ChatContainer.js +0 -162
- package/dist/es/react/ChatCustomElement.js +0 -58
- package/dist/es/types/config/ChatHeaderConfig.js +0 -18
- package/dist/es/types/config/CornersType.js +0 -16
- package/dist/es/types/config/LauncherConfig.js +0 -19
- package/dist/es/types/config/PublicConfig.js +0 -36
- package/dist/es/types/instance/ChatInstance.js +0 -31
- package/dist/es/types/instance/apiTypes.js +0 -33
- package/dist/es/types/messaging/LocalMessageItem.js +0 -18
- package/dist/es/types/state/AppState.js +0 -18
- package/dist/es/types/utilities/Animation.js +0 -31
- package/dist/es/types/utilities/HasAddRemoveClassName.js +0 -27
- /package/dist/es/{chat/shared/styles/export.carbon.scss.js → chat.export.carbon.js} +0 -0
- /package/dist/es/{chat/shared/styles/export.scss.js → chat.export.js} +0 -0
- /package/dist/es/{chat/web-components/components/markdownText/markdown/utils/markdown.js → chat.markdown.js} +0 -0
- /package/dist/es/{chat/web-components/components/markdownText/markdown/utils/tokenTree.js → chat.tokenTree.js} +0 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import Restart from "@carbon/icons-react/es/Restart.js";
|
|
2
|
+
|
|
3
|
+
import { unstable__ChatButton } from "@carbon/react";
|
|
4
|
+
|
|
5
|
+
import cx from "classnames";
|
|
6
|
+
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
import { useIntl } from "react-intl";
|
|
10
|
+
|
|
11
|
+
import { useSelector } from "react-redux";
|
|
12
|
+
|
|
13
|
+
import { u as uuid } from "./chat.uuid.js";
|
|
14
|
+
|
|
15
|
+
import { B as BotHeaderExport } from "./chat.BotHeader.js";
|
|
16
|
+
|
|
17
|
+
import { R as RichTextExport } from "./chat.RichText.js";
|
|
18
|
+
|
|
19
|
+
import { B as ButtonSizeEnum, a as ButtonKindEnum } from "./chat.carbonTypes.js";
|
|
20
|
+
|
|
21
|
+
import { O as OverlayPanelName } from "./chat.PageObjectId.js";
|
|
22
|
+
|
|
23
|
+
import { b as CarbonTheme } from "./chat.dynamic-imports.js";
|
|
24
|
+
|
|
25
|
+
import "uuid";
|
|
26
|
+
|
|
27
|
+
import "@carbon/icons-react/es/Home.js";
|
|
28
|
+
|
|
29
|
+
import "./chat.AppState.js";
|
|
30
|
+
|
|
31
|
+
import "./chat.usePrevious.js";
|
|
32
|
+
|
|
33
|
+
import "compute-scroll-into-view";
|
|
34
|
+
|
|
35
|
+
import "memoize-one";
|
|
36
|
+
|
|
37
|
+
import "tabbable";
|
|
38
|
+
|
|
39
|
+
import "./chat.selectors.js";
|
|
40
|
+
|
|
41
|
+
import "./chat.constants.js";
|
|
42
|
+
|
|
43
|
+
import "./chat.Header.js";
|
|
44
|
+
|
|
45
|
+
import "@carbon/web-components/es-custom/components/slug/index.js";
|
|
46
|
+
|
|
47
|
+
import "@carbon/icons-react/es/Close.js";
|
|
48
|
+
|
|
49
|
+
import "@carbon/icons-react/es/CloseLarge.js";
|
|
50
|
+
|
|
51
|
+
import "@carbon/icons-react/es/DownToBottom.js";
|
|
52
|
+
|
|
53
|
+
import "@carbon/icons-react/es/Menu.js";
|
|
54
|
+
|
|
55
|
+
import "@carbon/icons-react/es/SidePanelClose.js";
|
|
56
|
+
|
|
57
|
+
import "@carbon/icons-react/es/SubtractLarge.js";
|
|
58
|
+
|
|
59
|
+
import "@carbon/web-components/es-custom/components/ai-label/defs.js";
|
|
60
|
+
|
|
61
|
+
import "@carbon/web-components/es-custom/components/popover/defs.js";
|
|
62
|
+
|
|
63
|
+
import "@lit/react";
|
|
64
|
+
|
|
65
|
+
import "tslib";
|
|
66
|
+
|
|
67
|
+
import "./chat.customElement.js";
|
|
68
|
+
|
|
69
|
+
import "@carbon/web-components/es-custom/components/skeleton-icon/index.js";
|
|
70
|
+
|
|
71
|
+
import "lit";
|
|
72
|
+
|
|
73
|
+
import "bind-decorator";
|
|
74
|
+
|
|
75
|
+
import "lit/decorators.js";
|
|
76
|
+
|
|
77
|
+
import "@carbon/web-components/es-custom/components/button/index.js";
|
|
78
|
+
|
|
79
|
+
import "@carbon/web-components/es-custom/components/overflow-menu/index.js";
|
|
80
|
+
|
|
81
|
+
import "@carbon/icons-react/es/ChevronDown.js";
|
|
82
|
+
|
|
83
|
+
import "@carbon/icons-react/es/ChevronUp.js";
|
|
84
|
+
|
|
85
|
+
import "@floating-ui/react";
|
|
86
|
+
|
|
87
|
+
import "./chat.HideComponent.js";
|
|
88
|
+
|
|
89
|
+
import "./chat.actions.js";
|
|
90
|
+
|
|
91
|
+
import "focus-trap-react";
|
|
92
|
+
|
|
93
|
+
import "react-dom";
|
|
94
|
+
|
|
95
|
+
import "@carbon/web-components/es-custom/components/ai-label/ai-label-action-button.js";
|
|
96
|
+
|
|
97
|
+
import "@carbon/web-components/es-custom/components/ai-label/ai-label.js";
|
|
98
|
+
|
|
99
|
+
import "lodash-es/throttle.js";
|
|
100
|
+
|
|
101
|
+
import "dompurify";
|
|
102
|
+
|
|
103
|
+
import "lit/directives/repeat.js";
|
|
104
|
+
|
|
105
|
+
import "lit/directives/unsafe-html.js";
|
|
106
|
+
|
|
107
|
+
import "./chat.htmlUtils.js";
|
|
108
|
+
|
|
109
|
+
import "./chat.stringUtils.js";
|
|
110
|
+
|
|
111
|
+
import "./chat.miscUtils.js";
|
|
112
|
+
|
|
113
|
+
import "./chat.browserUtils.js";
|
|
114
|
+
|
|
115
|
+
import "detect-browser";
|
|
116
|
+
|
|
117
|
+
/*
|
|
118
|
+
* Copyright IBM Corp. 2025
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
121
|
+
* LICENSE file in the root directory of this source tree.
|
|
122
|
+
*
|
|
123
|
+
* @license
|
|
124
|
+
*/ function ErrorMessageDark() {
|
|
125
|
+
const linearGradientID = uuid();
|
|
126
|
+
return React.createElement("svg", {
|
|
127
|
+
viewBox: "0 0 80 80"
|
|
128
|
+
}, React.createElement("defs", null, React.createElement("linearGradient", {
|
|
129
|
+
id: `${linearGradientID}-1`,
|
|
130
|
+
x1: "38.91",
|
|
131
|
+
y1: "4.92",
|
|
132
|
+
x2: "38.91",
|
|
133
|
+
y2: "73.85",
|
|
134
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
135
|
+
gradientUnits: "userSpaceOnUse"
|
|
136
|
+
}, React.createElement("stop", {
|
|
137
|
+
offset: "0",
|
|
138
|
+
stopColor: "#262626"
|
|
139
|
+
}), React.createElement("stop", {
|
|
140
|
+
offset: "1",
|
|
141
|
+
stopColor: "#393939"
|
|
142
|
+
})), React.createElement("linearGradient", {
|
|
143
|
+
id: `${linearGradientID}-2`,
|
|
144
|
+
x1: "12.44",
|
|
145
|
+
y1: "71.21",
|
|
146
|
+
x2: "76.34",
|
|
147
|
+
y2: "34.31",
|
|
148
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
149
|
+
gradientUnits: "userSpaceOnUse"
|
|
150
|
+
}, React.createElement("stop", {
|
|
151
|
+
offset: "0",
|
|
152
|
+
stopColor: "#525252"
|
|
153
|
+
}), React.createElement("stop", {
|
|
154
|
+
offset: "0.52",
|
|
155
|
+
stopColor: "#393939"
|
|
156
|
+
}), React.createElement("stop", {
|
|
157
|
+
offset: "0.61",
|
|
158
|
+
stopColor: "#393939"
|
|
159
|
+
}), React.createElement("stop", {
|
|
160
|
+
offset: "0.99",
|
|
161
|
+
stopColor: "#161616"
|
|
162
|
+
})), React.createElement("linearGradient", {
|
|
163
|
+
id: `${linearGradientID}-3`,
|
|
164
|
+
x1: "39.38",
|
|
165
|
+
y1: "50.63",
|
|
166
|
+
x2: "52.04",
|
|
167
|
+
y2: "72.55",
|
|
168
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
169
|
+
gradientUnits: "userSpaceOnUse"
|
|
170
|
+
}, React.createElement("stop", {
|
|
171
|
+
offset: "0.11",
|
|
172
|
+
stopColor: "#6f6f6f",
|
|
173
|
+
stopOpacity: "0"
|
|
174
|
+
}), React.createElement("stop", {
|
|
175
|
+
offset: "0.94",
|
|
176
|
+
stopColor: "#6f6f6f"
|
|
177
|
+
}))), React.createElement("rect", {
|
|
178
|
+
width: "80",
|
|
179
|
+
height: "80",
|
|
180
|
+
fill: "none"
|
|
181
|
+
}), React.createElement("polygon", {
|
|
182
|
+
points: "59.91 78.34 16.91 53.51 21.77 50.7 64.77 75.53 59.91 78.34",
|
|
183
|
+
opacity: "0.25",
|
|
184
|
+
className: "error_message_isolate"
|
|
185
|
+
}), React.createElement("path", {
|
|
186
|
+
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",
|
|
187
|
+
fill: `url(#${linearGradientID}-1)`
|
|
188
|
+
}), React.createElement("path", {
|
|
189
|
+
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",
|
|
190
|
+
fill: `url(#${linearGradientID}-2)`
|
|
191
|
+
}), React.createElement("path", {
|
|
192
|
+
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",
|
|
193
|
+
fill: `url(#${linearGradientID}-3)`
|
|
194
|
+
}), React.createElement("path", {
|
|
195
|
+
className: "cls-6",
|
|
196
|
+
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",
|
|
197
|
+
fill: "#525252"
|
|
198
|
+
}));
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/*
|
|
202
|
+
* Copyright IBM Corp. 2025
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
205
|
+
* LICENSE file in the root directory of this source tree.
|
|
206
|
+
*
|
|
207
|
+
* @license
|
|
208
|
+
*/ function ErrorMessageLight() {
|
|
209
|
+
const linearGradientID = uuid();
|
|
210
|
+
return React.createElement("svg", {
|
|
211
|
+
viewBox: "0 0 80 80"
|
|
212
|
+
}, React.createElement("defs", null, React.createElement("linearGradient", {
|
|
213
|
+
id: `${linearGradientID}-1`,
|
|
214
|
+
x1: "29.96",
|
|
215
|
+
y1: "36.32",
|
|
216
|
+
x2: "53.15",
|
|
217
|
+
y2: "-3.84",
|
|
218
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
219
|
+
gradientUnits: "userSpaceOnUse"
|
|
220
|
+
}, React.createElement("stop", {
|
|
221
|
+
offset: "0",
|
|
222
|
+
stopColor: "#525252",
|
|
223
|
+
stopOpacity: "0.05"
|
|
224
|
+
}), React.createElement("stop", {
|
|
225
|
+
offset: "1",
|
|
226
|
+
stopOpacity: "0.1"
|
|
227
|
+
})), React.createElement("linearGradient", {
|
|
228
|
+
id: `${linearGradientID}-2`,
|
|
229
|
+
x1: "38.91",
|
|
230
|
+
y1: "29.41",
|
|
231
|
+
x2: "38.91",
|
|
232
|
+
y2: "78.7",
|
|
233
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
234
|
+
gradientUnits: "userSpaceOnUse"
|
|
235
|
+
}, React.createElement("stop", {
|
|
236
|
+
offset: "0",
|
|
237
|
+
stopColor: "#c6c6c6"
|
|
238
|
+
}), React.createElement("stop", {
|
|
239
|
+
offset: "0.78",
|
|
240
|
+
stopColor: "#e0e0e0"
|
|
241
|
+
})), React.createElement("linearGradient", {
|
|
242
|
+
id: `${linearGradientID}-3`,
|
|
243
|
+
x1: "18.08",
|
|
244
|
+
y1: "67.95",
|
|
245
|
+
x2: "71.65",
|
|
246
|
+
y2: "37.02",
|
|
247
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
248
|
+
gradientUnits: "userSpaceOnUse"
|
|
249
|
+
}, React.createElement("stop", {
|
|
250
|
+
offset: "0",
|
|
251
|
+
stopColor: "#e0e0e0"
|
|
252
|
+
}), React.createElement("stop", {
|
|
253
|
+
offset: "0.13",
|
|
254
|
+
stopColor: "#f4f4f4"
|
|
255
|
+
}), React.createElement("stop", {
|
|
256
|
+
offset: "0.56",
|
|
257
|
+
stopColor: "#e0e0e0"
|
|
258
|
+
}), React.createElement("stop", {
|
|
259
|
+
offset: "0.62",
|
|
260
|
+
stopColor: "#d8d8d8"
|
|
261
|
+
}), React.createElement("stop", {
|
|
262
|
+
offset: "0.7",
|
|
263
|
+
stopColor: "#c6c6c6"
|
|
264
|
+
}), React.createElement("stop", {
|
|
265
|
+
offset: "0.89",
|
|
266
|
+
stopColor: "#a8a8a8"
|
|
267
|
+
}), React.createElement("stop", {
|
|
268
|
+
offset: "1",
|
|
269
|
+
stopColor: "#8d8d8d"
|
|
270
|
+
})), React.createElement("linearGradient", {
|
|
271
|
+
id: `${linearGradientID}-4`,
|
|
272
|
+
x1: "27.93",
|
|
273
|
+
y1: "30.78",
|
|
274
|
+
x2: "49.86",
|
|
275
|
+
y2: "68.76",
|
|
276
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
277
|
+
gradientUnits: "userSpaceOnUse"
|
|
278
|
+
}, React.createElement("stop", {
|
|
279
|
+
offset: "0.54",
|
|
280
|
+
stopColor: "#d0d0d0",
|
|
281
|
+
stopOpacity: "0"
|
|
282
|
+
}), React.createElement("stop", {
|
|
283
|
+
offset: "0.82",
|
|
284
|
+
stopColor: "#f1f1f1",
|
|
285
|
+
stopOpacity: "0.7"
|
|
286
|
+
}), React.createElement("stop", {
|
|
287
|
+
offset: "0.94",
|
|
288
|
+
stopColor: "#fff"
|
|
289
|
+
})), React.createElement("linearGradient", {
|
|
290
|
+
id: `${linearGradientID}-5`,
|
|
291
|
+
x1: "28.67",
|
|
292
|
+
y1: "55.68",
|
|
293
|
+
x2: "47.16",
|
|
294
|
+
y2: "45.01",
|
|
295
|
+
gradientTransform: "matrix(1, 0, 0, -1, 0, 82)",
|
|
296
|
+
gradientUnits: "userSpaceOnUse"
|
|
297
|
+
}, React.createElement("stop", {
|
|
298
|
+
offset: "0",
|
|
299
|
+
stopColor: "#fff"
|
|
300
|
+
}), React.createElement("stop", {
|
|
301
|
+
offset: "0.05",
|
|
302
|
+
stopColor: "#fdfdfd"
|
|
303
|
+
}), React.createElement("stop", {
|
|
304
|
+
offset: "0.3",
|
|
305
|
+
stopColor: "#f6f6f6"
|
|
306
|
+
}), React.createElement("stop", {
|
|
307
|
+
offset: "1",
|
|
308
|
+
stopColor: "#f4f4f4"
|
|
309
|
+
}))), React.createElement("rect", {
|
|
310
|
+
width: "80",
|
|
311
|
+
height: "80",
|
|
312
|
+
fill: "none"
|
|
313
|
+
}), React.createElement("polygon", {
|
|
314
|
+
points: "59.91 78.34 16.91 53.51 21.77 50.7 64.77 75.53 59.91 78.34",
|
|
315
|
+
fill: `url(#${linearGradientID}-1)`
|
|
316
|
+
}), React.createElement("path", {
|
|
317
|
+
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",
|
|
318
|
+
fill: `url(#${linearGradientID}-2)`
|
|
319
|
+
}), React.createElement("path", {
|
|
320
|
+
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",
|
|
321
|
+
fill: `url(#${linearGradientID}-3)`
|
|
322
|
+
}), React.createElement("path", {
|
|
323
|
+
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",
|
|
324
|
+
fill: `url(#${linearGradientID}-4)`
|
|
325
|
+
}), React.createElement("path", {
|
|
326
|
+
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",
|
|
327
|
+
fill: `url(#${linearGradientID}-5)`
|
|
328
|
+
}));
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/*
|
|
332
|
+
* Copyright IBM Corp. 2025
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
335
|
+
* LICENSE file in the root directory of this source tree.
|
|
336
|
+
*
|
|
337
|
+
* @license
|
|
338
|
+
*/ function CatastrophicError({onClose: onClose, languagePack: languagePack, onRestart: onRestart, showHeader: showHeader, botName: botName, headerDisplayName: headerDisplayName}) {
|
|
339
|
+
const intl = useIntl();
|
|
340
|
+
const carbonTheme = useSelector(state => state.theme.carbonTheme);
|
|
341
|
+
const isDarkTheme = carbonTheme === CarbonTheme.G90 || carbonTheme === CarbonTheme.G100;
|
|
342
|
+
const errorKey = "errors_communicating";
|
|
343
|
+
const errorBodyText = intl.formatMessage({
|
|
344
|
+
id: errorKey
|
|
345
|
+
}, {
|
|
346
|
+
botName: botName
|
|
347
|
+
});
|
|
348
|
+
return React.createElement("div", {
|
|
349
|
+
className: "WAC"
|
|
350
|
+
}, showHeader && React.createElement(BotHeaderExport, {
|
|
351
|
+
headerDisplayName: headerDisplayName,
|
|
352
|
+
onClose: onClose,
|
|
353
|
+
onToggleHomeScreen: null,
|
|
354
|
+
includeWriteableElement: false,
|
|
355
|
+
testIdPrefix: OverlayPanelName.CATASTROPHIC
|
|
356
|
+
}), React.createElement("div", {
|
|
357
|
+
className: cx("WACCatastrophicError", "WACPanelContent", {
|
|
358
|
+
"WACCatastrophicError--withHeader": showHeader
|
|
359
|
+
})
|
|
360
|
+
}, React.createElement("div", {
|
|
361
|
+
className: "WACCatastrophicError__ErrorTextContainer"
|
|
362
|
+
}, isDarkTheme && React.createElement(ErrorMessageDark, null), !isDarkTheme && React.createElement(ErrorMessageLight, null), React.createElement("div", {
|
|
363
|
+
className: "WACCatastrophicError__ErrorHeading"
|
|
364
|
+
}, languagePack.errors_somethingWrong), React.createElement("div", {
|
|
365
|
+
className: "WACCatastrophicError__ErrorBody"
|
|
366
|
+
}, React.createElement(RichTextExport, {
|
|
367
|
+
text: errorBodyText
|
|
368
|
+
})), onRestart && React.createElement(unstable__ChatButton, {
|
|
369
|
+
className: "WACCatastrophicError__RestartButton",
|
|
370
|
+
kind: ButtonKindEnum.TERTIARY,
|
|
371
|
+
size: ButtonSizeEnum.SMALL,
|
|
372
|
+
"aria-label": languagePack.buttons_restart,
|
|
373
|
+
onClick: onRestart,
|
|
374
|
+
renderIcon: Restart,
|
|
375
|
+
type: "button"
|
|
376
|
+
}, languagePack.buttons_retry))));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
const CatastrophicErrorExport = React.memo(CatastrophicError);
|
|
380
|
+
|
|
381
|
+
export { CatastrophicErrorExport as CatastrophicError, CatastrophicErrorExport as default };
|