botframework-webchat-component 4.13.0 → 4.14.2
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/.eslintignore +1 -9
- package/.eslintrc.yml +6 -0
- package/lib/Activity/Avatar.d.ts +10 -0
- package/lib/Activity/Avatar.d.ts.map +1 -0
- package/lib/Activity/Avatar.js +2 -1
- package/lib/Activity/Bubble.d.ts +11 -0
- package/lib/Activity/Bubble.d.ts.map +1 -0
- package/lib/Activity/Bubble.js +2 -2
- package/lib/Activity/CarouselFilmStrip.js +20 -30
- package/lib/Activity/CarouselFilmStripAttachment.js +120 -0
- package/lib/Activity/CarouselLayout.js +5 -5
- package/lib/Activity/Speak.d.ts +10 -0
- package/lib/Activity/Speak.d.ts.map +1 -0
- package/lib/Activity/Speak.js +10 -12
- package/lib/Activity/StackedLayout.d.ts +18 -0
- package/lib/Activity/StackedLayout.d.ts.map +1 -0
- package/lib/Activity/StackedLayout.js +18 -14
- package/lib/Assets/TypingAnimation.js +2 -2
- package/lib/Attachment/Assets/DownloadIcon.js +3 -1
- package/lib/Attachment/AudioAttachment.js +2 -2
- package/lib/Attachment/AudioContent.d.ts +11 -0
- package/lib/Attachment/AudioContent.d.ts.map +1 -0
- package/lib/Attachment/AudioContent.js +4 -4
- package/lib/Attachment/FileContent.d.ts +10 -0
- package/lib/Attachment/FileContent.d.ts.map +1 -0
- package/lib/Attachment/FileContent.js +4 -9
- package/lib/Attachment/HTMLVideoContent.d.ts +11 -0
- package/lib/Attachment/HTMLVideoContent.d.ts.map +1 -0
- package/lib/Attachment/HTMLVideoContent.js +2 -2
- package/lib/Attachment/ImageContent.d.ts +8 -0
- package/lib/Attachment/ImageContent.d.ts.map +1 -0
- package/lib/Attachment/ImageContent.js +2 -2
- package/lib/Attachment/TextContent.d.ts +8 -0
- package/lib/Attachment/TextContent.d.ts.map +1 -0
- package/lib/Attachment/TextContent.js +4 -4
- package/lib/Attachment/VideoAttachment.js +2 -2
- package/lib/Attachment/VideoContent.d.ts +11 -0
- package/lib/Attachment/VideoContent.d.ts.map +1 -0
- package/lib/Attachment/VideoContent.js +1 -1
- package/lib/Attachment/VimeoContent.d.ts +10 -0
- package/lib/Attachment/VimeoContent.d.ts.map +1 -0
- package/lib/Attachment/VimeoContent.js +8 -8
- package/lib/Attachment/YouTubeContent.d.ts +10 -0
- package/lib/Attachment/YouTubeContent.d.ts.map +1 -0
- package/lib/Attachment/YouTubeContent.js +5 -5
- package/lib/Avatar/ImageAvatar.js +2 -2
- package/lib/Avatar/InitialsAvatar.js +2 -2
- package/lib/BasicConnectivityStatus.js +2 -2
- package/lib/BasicSendBox.d.ts +9 -0
- package/lib/BasicSendBox.d.ts.map +1 -0
- package/lib/BasicSendBox.js +6 -5
- package/lib/BasicToast.js +4 -4
- package/lib/BasicToaster.js +4 -4
- package/lib/BasicTranscript.js +143 -123
- package/lib/BasicTypingIndicator.d.ts +5 -0
- package/lib/BasicTypingIndicator.d.ts.map +1 -0
- package/lib/BasicTypingIndicator.js +2 -2
- package/lib/BasicWebChat.d.ts +9 -0
- package/lib/BasicWebChat.d.ts.map +1 -0
- package/lib/BasicWebChat.js +6 -4
- package/lib/Composer.d.ts +23 -0
- package/lib/Composer.d.ts.map +1 -0
- package/lib/Composer.js +33 -55
- package/lib/ConnectivityStatus/Assets/ErrorNotificationIcon.js +2 -2
- package/lib/ConnectivityStatus/Assets/SpinnerAnimation.js +2 -2
- package/lib/ConnectivityStatus/Assets/WarningNotificationIcon.js +2 -2
- package/lib/ConnectivityStatus/Connected.js +1 -1
- package/lib/ConnectivityStatus/Connecting.js +4 -4
- package/lib/ConnectivityStatus/FailedToConnect.js +2 -2
- package/lib/ConnectivityStatus/JavaScriptError.js +2 -2
- package/lib/Dictation.js +13 -4
- package/lib/ErrorBox.d.ts +8 -0
- package/lib/ErrorBox.d.ts.map +1 -0
- package/lib/ErrorBox.js +2 -2
- package/lib/Middleware/Activity/createCoreMiddleware.d.ts +3 -0
- package/lib/Middleware/Activity/createCoreMiddleware.d.ts.map +1 -0
- package/lib/Middleware/Activity/createCoreMiddleware.js +1 -1
- package/lib/Middleware/ActivityStatus/AbsoluteTime.js +1 -1
- package/lib/Middleware/ActivityStatus/RelativeTime.js +1 -1
- package/lib/Middleware/ActivityStatus/SendStatus/SendFailedRetry.js +3 -3
- package/lib/Middleware/ActivityStatus/SendStatus/SendStatus.d.ts +11 -0
- package/lib/Middleware/ActivityStatus/SendStatus/SendStatus.d.ts.map +1 -0
- package/lib/Middleware/ActivityStatus/SendStatus/SendStatus.js +4 -4
- package/lib/Middleware/ActivityStatus/Timestamp.d.ts +9 -0
- package/lib/Middleware/ActivityStatus/Timestamp.d.ts.map +1 -0
- package/lib/Middleware/ActivityStatus/Timestamp.js +2 -2
- package/lib/Middleware/ActivityStatus/createCoreMiddleware.d.ts +3 -0
- package/lib/Middleware/ActivityStatus/createCoreMiddleware.d.ts.map +1 -0
- package/lib/Middleware/ActivityStatus/createCoreMiddleware.js +1 -1
- package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.js +5 -3
- package/lib/Middleware/ActivityStatus/createTimestampMiddleware.js +1 -1
- package/lib/Middleware/Attachment/createCoreMiddleware.d.ts +3 -0
- package/lib/Middleware/Attachment/createCoreMiddleware.d.ts.map +1 -0
- package/lib/Middleware/Attachment/createCoreMiddleware.js +9 -9
- package/lib/Middleware/AttachmentForScreenReader/AudioAttachment.js +1 -1
- package/lib/Middleware/AttachmentForScreenReader/FileAttachment.js +1 -1
- package/lib/Middleware/AttachmentForScreenReader/ImageAttachment.js +1 -1
- package/lib/Middleware/AttachmentForScreenReader/TextAttachment.js +1 -1
- package/lib/Middleware/AttachmentForScreenReader/VideoAttachment.js +1 -1
- package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.d.ts +3 -0
- package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.d.ts.map +1 -0
- package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.js +9 -5
- package/lib/Middleware/Avatar/createCoreMiddleware.d.ts +11 -0
- package/lib/Middleware/Avatar/createCoreMiddleware.d.ts.map +1 -0
- package/lib/Middleware/Avatar/createCoreMiddleware.js +2 -2
- package/lib/Middleware/CardAction/createCoreMiddleware.js +2 -2
- package/lib/Middleware/GroupActivities/createCoreMiddleware.js +1 -1
- package/lib/Middleware/ScrollToEndButton/ScrollToEndButton.js +71 -0
- package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.d.ts +3 -0
- package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.d.ts.map +1 -0
- package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.js +27 -0
- package/lib/Middleware/Toast/createCoreMiddleware.d.ts +4 -0
- package/lib/Middleware/Toast/createCoreMiddleware.d.ts.map +1 -0
- package/lib/Middleware/Toast/createCoreMiddleware.js +1 -1
- package/lib/Middleware/TypingIndicator/createCoreMiddleware.d.ts +3 -0
- package/lib/Middleware/TypingIndicator/createCoreMiddleware.d.ts.map +1 -0
- package/lib/Middleware/TypingIndicator/createCoreMiddleware.js +3 -2
- package/lib/ReactWebChat.d.ts +10 -0
- package/lib/ReactWebChat.d.ts.map +1 -0
- package/lib/ReactWebChat.js +19 -7
- package/lib/ScreenReaderActivity.js +64 -45
- package/lib/SendBox/Assets/AttachmentIcon.js +3 -1
- package/lib/SendBox/Assets/MicrophoneIcon.js +3 -1
- package/lib/SendBox/Assets/SendIcon.js +2 -2
- package/lib/SendBox/AutoResizeTextArea.d.ts +23 -0
- package/lib/SendBox/AutoResizeTextArea.d.ts.map +1 -0
- package/lib/SendBox/AutoResizeTextArea.js +6 -6
- package/lib/SendBox/DictationInterims.d.ts +9 -0
- package/lib/SendBox/DictationInterims.d.ts.map +1 -0
- package/lib/SendBox/DictationInterims.js +2 -2
- package/lib/SendBox/IconButton.js +2 -2
- package/lib/SendBox/MicrophoneButton.d.ts +11 -0
- package/lib/SendBox/MicrophoneButton.d.ts.map +1 -0
- package/lib/SendBox/MicrophoneButton.js +25 -24
- package/lib/SendBox/SendButton.d.ts +9 -0
- package/lib/SendBox/SendButton.d.ts.map +1 -0
- package/lib/SendBox/SendButton.js +7 -5
- package/lib/SendBox/SuggestedAction.js +5 -9
- package/lib/SendBox/SuggestedActions.d.ts +5 -0
- package/lib/SendBox/SuggestedActions.d.ts.map +1 -0
- package/lib/SendBox/SuggestedActions.js +10 -7
- package/lib/SendBox/TextBox.d.ts +28 -0
- package/lib/SendBox/TextBox.d.ts.map +1 -0
- package/lib/SendBox/TextBox.js +12 -7
- package/lib/SendBox/UploadButton.d.ts +9 -0
- package/lib/SendBox/UploadButton.d.ts.map +1 -0
- package/lib/SendBox/UploadButton.js +5 -5
- package/lib/Styles/StyleSet/Activities.d.ts +5 -0
- package/lib/Styles/StyleSet/Activities.d.ts.map +1 -0
- package/lib/Styles/StyleSet/AudioAttachment.d.ts +6 -0
- package/lib/Styles/StyleSet/AudioAttachment.d.ts.map +1 -0
- package/lib/Styles/StyleSet/AudioContent.d.ts +4 -0
- package/lib/Styles/StyleSet/AudioContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts +37 -0
- package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Avatar.d.ts +9 -0
- package/lib/Styles/StyleSet/Avatar.d.ts.map +1 -0
- package/lib/Styles/StyleSet/BasicTranscript.d.ts +77 -0
- package/lib/Styles/StyleSet/BasicTranscript.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Bubble.d.ts +5 -0
- package/lib/Styles/StyleSet/Bubble.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Bubble.js +1 -1
- package/lib/Styles/StyleSet/CarouselFilmStrip.d.ts +5 -0
- package/lib/Styles/StyleSet/CarouselFilmStrip.d.ts.map +1 -0
- package/lib/Styles/StyleSet/CarouselFilmStrip.js +2 -18
- package/lib/Styles/StyleSet/CarouselFilmStripAttachment.d.ts +3 -0
- package/lib/Styles/StyleSet/CarouselFilmStripAttachment.d.ts.map +1 -0
- package/lib/Styles/StyleSet/CarouselFilmStripAttachment.js +63 -0
- package/lib/Styles/StyleSet/CarouselFlipper.d.ts +27 -0
- package/lib/Styles/StyleSet/CarouselFlipper.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ConnectivityNotification.d.ts +13 -0
- package/lib/Styles/StyleSet/ConnectivityNotification.d.ts.map +1 -0
- package/lib/Styles/StyleSet/DictationInterims.d.ts +13 -0
- package/lib/Styles/StyleSet/DictationInterims.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ErrorBox.d.ts +33 -0
- package/lib/Styles/StyleSet/ErrorBox.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ErrorNotification.d.ts +23 -0
- package/lib/Styles/StyleSet/ErrorNotification.d.ts.map +1 -0
- package/lib/Styles/StyleSet/FileContent.d.ts +32 -0
- package/lib/Styles/StyleSet/FileContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ImageAvatar.d.ts +7 -0
- package/lib/Styles/StyleSet/ImageAvatar.d.ts.map +1 -0
- package/lib/Styles/StyleSet/InitialsAvatar.d.ts +19 -0
- package/lib/Styles/StyleSet/InitialsAvatar.d.ts.map +1 -0
- package/lib/Styles/StyleSet/MicrophoneButton.d.ts +13 -0
- package/lib/Styles/StyleSet/MicrophoneButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Root.d.ts +8 -0
- package/lib/Styles/StyleSet/Root.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ScrollToEndButton.d.ts +36 -0
- package/lib/Styles/StyleSet/ScrollToEndButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ScrollToEndButton.js +36 -34
- package/lib/Styles/StyleSet/SendBox.d.ts +24 -0
- package/lib/Styles/StyleSet/SendBox.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SendBoxButton.d.ts +33 -0
- package/lib/Styles/StyleSet/SendBoxButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SendBoxTextBox.d.ts +41 -0
- package/lib/Styles/StyleSet/SendBoxTextBox.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SendStatus.d.ts +8 -0
- package/lib/Styles/StyleSet/SendStatus.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts +11 -0
- package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SpinnerAnimation.d.ts +15 -0
- package/lib/Styles/StyleSet/SpinnerAnimation.d.ts.map +1 -0
- package/lib/Styles/StyleSet/StackedLayout.d.ts +63 -0
- package/lib/Styles/StyleSet/StackedLayout.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SuggestedAction.d.ts +49 -0
- package/lib/Styles/StyleSet/SuggestedAction.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SuggestedAction.js +2 -2
- package/lib/Styles/StyleSet/SuggestedActions.d.ts +118 -0
- package/lib/Styles/StyleSet/SuggestedActions.d.ts.map +1 -0
- package/lib/Styles/StyleSet/TextContent.d.ts +28 -0
- package/lib/Styles/StyleSet/TextContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Toast.d.ts +65 -0
- package/lib/Styles/StyleSet/Toast.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Toaster.d.ts +111 -0
- package/lib/Styles/StyleSet/Toaster.d.ts.map +1 -0
- package/lib/Styles/StyleSet/TypingAnimation.d.ts +8 -0
- package/lib/Styles/StyleSet/TypingAnimation.d.ts.map +1 -0
- package/lib/Styles/StyleSet/TypingIndicator.d.ts +11 -0
- package/lib/Styles/StyleSet/TypingIndicator.d.ts.map +1 -0
- package/lib/Styles/StyleSet/UploadButton.d.ts +14 -0
- package/lib/Styles/StyleSet/UploadButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/VideoAttachment.d.ts +2 -0
- package/lib/Styles/StyleSet/VideoAttachment.d.ts.map +1 -0
- package/lib/Styles/StyleSet/VideoContent.d.ts +6 -0
- package/lib/Styles/StyleSet/VideoContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/VimeoContent.d.ts +7 -0
- package/lib/Styles/StyleSet/VimeoContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/WarningNotification.d.ts +22 -0
- package/lib/Styles/StyleSet/WarningNotification.d.ts.map +1 -0
- package/lib/Styles/StyleSet/YouTubeContent.d.ts +7 -0
- package/lib/Styles/StyleSet/YouTubeContent.d.ts.map +1 -0
- package/lib/Styles/createStyleSet.d.ts +1103 -0
- package/lib/Styles/createStyleSet.d.ts.map +1 -0
- package/lib/Styles/createStyleSet.js +44 -41
- package/lib/Styles/mirrorStyle.js +2 -2
- package/lib/Toast/CollapseIcon.js +3 -1
- package/lib/Toast/DismissIcon.js +3 -1
- package/lib/Toast/ExpandIcon.js +3 -1
- package/lib/Toast/NotificationIcon.js +1 -1
- package/lib/Toast/createToastMiddleware.d.ts +4 -0
- package/lib/Toast/createToastMiddleware.d.ts.map +1 -0
- package/lib/Toast/createToastMiddleware.js +2 -2
- package/lib/Utils/AccessKeySink/Surface.js +7 -5
- package/lib/Utils/AccessibleButton.js +6 -4
- package/lib/Utils/AccessibleInputText.d.ts +21 -0
- package/lib/Utils/AccessibleInputText.d.ts.map +1 -0
- package/lib/Utils/AccessibleInputText.js +29 -25
- package/lib/Utils/AccessibleTextArea.d.ts +20 -0
- package/lib/Utils/AccessibleTextArea.d.ts.map +1 -0
- package/lib/Utils/AccessibleTextArea.js +35 -24
- package/lib/Utils/CroppedImage.js +2 -2
- package/lib/Utils/Fade.js +2 -2
- package/lib/Utils/FocusRedirector.js +3 -3
- package/lib/Utils/InlineMarkdown.js +6 -6
- package/lib/Utils/TypeFocusSink/FocusBox.js +6 -4
- package/lib/Utils/TypeFocusSink/getTabIndex.d.ts +2 -0
- package/lib/Utils/TypeFocusSink/getTabIndex.d.ts.map +1 -0
- package/lib/Utils/TypeFocusSink/getTabIndex.js +1 -1
- package/lib/Utils/TypeFocusSink/navigableEvent.js +1 -1
- package/lib/Utils/activityAltText.js +100 -0
- package/lib/Utils/addTargetBlankToHyperlinksMarkdown.js +1 -1
- package/lib/Utils/createCustomEvent.js +1 -1
- package/lib/Utils/debounce.js +1 -1
- package/lib/Utils/detectBrowser.js +1 -1
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.js +2 -2
- package/lib/Utils/downscaleImageToDataURL/index.js +2 -2
- package/lib/Utils/filterMap.js +1 -1
- package/lib/Utils/findLastIndex.js +2 -2
- package/lib/Utils/mapMap.js +1 -1
- package/lib/Utils/readDataURIToBlob.js +2 -2
- package/lib/Utils/singleToArray.js +1 -1
- package/lib/connectToWebChat.js +5 -3
- package/lib/hooks/index.d.ts +21 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/internal/BypassSpeechSynthesisPonyfill.js +97 -39
- package/lib/hooks/internal/UITracker.js +2 -2
- package/lib/hooks/internal/useAcknowledgedActivity.js +2 -2
- package/lib/hooks/internal/useDispatchScrollPosition.js +1 -1
- package/lib/hooks/internal/useDispatchTranscriptFocus.js +1 -1
- package/lib/hooks/internal/useEnterKeyHint.js +1 -1
- package/lib/hooks/internal/useForceRender.js +2 -2
- package/lib/hooks/internal/useForceRenderAtInterval.js +2 -2
- package/lib/hooks/internal/useInternalRenderMarkdownInline.js +1 -1
- package/lib/hooks/internal/useLocalizeAccessKey.js +2 -2
- package/lib/hooks/internal/useMemoize.js +2 -2
- package/lib/hooks/internal/useNavigatorPlatform.js +1 -1
- package/lib/hooks/internal/useNonce.js +1 -1
- package/lib/hooks/internal/useRegisterFocusSendBox.js +1 -1
- package/lib/hooks/internal/useRegisterFocusTranscript.js +1 -1
- package/lib/hooks/internal/useRegisterScrollRelative.js +1 -1
- package/lib/hooks/internal/useRegisterScrollTo.js +1 -1
- package/lib/hooks/internal/useRegisterScrollToEnd.js +1 -1
- package/lib/hooks/internal/useReplaceEmoticon.js +2 -2
- package/lib/hooks/internal/useResumeAudioContext.js +33 -0
- package/lib/hooks/internal/useScrollRelative.js +1 -1
- package/lib/hooks/internal/useSettableDictateAbortable.js +1 -1
- package/lib/hooks/internal/useSuggestedActionsAccessKey.js +1 -1
- package/lib/hooks/internal/useUniqueId.d.ts +2 -0
- package/lib/hooks/internal/useUniqueId.d.ts.map +1 -0
- package/lib/hooks/internal/useUniqueId.js +1 -1
- package/lib/hooks/useDictateAbortable.d.ts +2 -0
- package/lib/hooks/useDictateAbortable.d.ts.map +1 -0
- package/lib/hooks/useDictateAbortable.js +2 -2
- package/lib/hooks/useFocus.d.ts +2 -0
- package/lib/hooks/useFocus.d.ts.map +1 -0
- package/lib/hooks/useFocus.js +1 -1
- package/lib/hooks/useFocusSendBox.d.ts +3 -0
- package/lib/hooks/useFocusSendBox.d.ts.map +1 -0
- package/lib/hooks/useFocusSendBox.js +2 -1
- package/lib/hooks/useObserveScrollPosition.d.ts +3 -0
- package/lib/hooks/useObserveScrollPosition.d.ts.map +1 -0
- package/lib/hooks/useObserveScrollPosition.js +2 -2
- package/lib/hooks/useObserveTranscriptFocus.d.ts +5 -0
- package/lib/hooks/useObserveTranscriptFocus.d.ts.map +1 -0
- package/lib/hooks/useObserveTranscriptFocus.js +2 -2
- package/lib/hooks/useRenderMarkdownAsHTML.d.ts +5 -0
- package/lib/hooks/useRenderMarkdownAsHTML.d.ts.map +1 -0
- package/lib/hooks/useRenderMarkdownAsHTML.js +2 -2
- package/lib/hooks/useScrollDown.d.ts +4 -0
- package/lib/hooks/useScrollDown.d.ts.map +1 -0
- package/lib/hooks/useScrollDown.js +1 -1
- package/lib/hooks/useScrollTo.d.ts +5 -0
- package/lib/hooks/useScrollTo.d.ts.map +1 -0
- package/lib/hooks/useScrollTo.js +1 -1
- package/lib/hooks/useScrollToEnd.d.ts +2 -0
- package/lib/hooks/useScrollToEnd.d.ts.map +1 -0
- package/lib/hooks/useScrollToEnd.js +1 -1
- package/lib/hooks/useScrollUp.d.ts +4 -0
- package/lib/hooks/useScrollUp.d.ts.map +1 -0
- package/lib/hooks/useScrollUp.js +1 -1
- package/lib/hooks/useSendFiles.d.ts +2 -0
- package/lib/hooks/useSendFiles.d.ts.map +1 -0
- package/lib/hooks/useSendFiles.js +3 -3
- package/lib/hooks/useStyleSet.d.ts +2 -0
- package/lib/hooks/useStyleSet.d.ts.map +1 -0
- package/lib/hooks/useStyleSet.js +1 -1
- package/lib/hooks/useWebSpeechPonyfill.d.ts +3 -0
- package/lib/hooks/useWebSpeechPonyfill.d.ts.map +1 -0
- package/lib/hooks/useWebSpeechPonyfill.js +1 -1
- package/lib/index.d.ts +209 -22
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -19
- package/lib/tsconfig.json +1 -1
- package/lib/types/ScrollPosition.d.ts +6 -0
- package/lib/types/ScrollPosition.d.ts.map +1 -0
- package/lib/types/ScrollPosition.js +2 -0
- package/package.json +38 -38
- package/src/Activity/{Avatar.js → Avatar.tsx} +9 -2
- package/src/Activity/{Bubble.js → Bubble.tsx} +10 -2
- package/src/Activity/CarouselFilmStrip.js +20 -29
- package/src/Activity/CarouselFilmStripAttachment.js +92 -0
- package/src/Activity/{Speak.js → Speak.tsx} +12 -5
- package/src/Activity/{StackedLayout.js → StackedLayout.tsx} +36 -11
- package/src/Attachment/Assets/DownloadIcon.js +8 -1
- package/src/Attachment/{AudioContent.js → AudioContent.tsx} +12 -3
- package/src/Attachment/{FileContent.js → FileContent.tsx} +10 -7
- package/src/Attachment/{HTMLVideoContent.js → HTMLVideoContent.tsx} +10 -2
- package/src/Attachment/{ImageContent.js → ImageContent.tsx} +7 -2
- package/src/Attachment/{TextContent.js → TextContent.tsx} +14 -7
- package/src/Attachment/{VideoContent.js → VideoContent.tsx} +10 -2
- package/src/Attachment/{VimeoContent.js → VimeoContent.tsx} +15 -8
- package/src/Attachment/{YouTubeContent.js → YouTubeContent.tsx} +12 -5
- package/src/{BasicSendBox.js → BasicSendBox.tsx} +9 -5
- package/src/BasicToaster.js +4 -4
- package/src/BasicTranscript.js +114 -98
- package/src/{BasicTypingIndicator.js → BasicTypingIndicator.tsx} +1 -1
- package/src/{BasicWebChat.js → BasicWebChat.tsx} +13 -4
- package/src/{Composer.js → Composer.tsx} +41 -42
- package/src/Dictation.js +13 -4
- package/src/{ErrorBox.js → ErrorBox.tsx} +7 -2
- package/src/Middleware/Activity/{createCoreMiddleware.js → createCoreMiddleware.tsx} +2 -1
- package/src/Middleware/ActivityStatus/SendStatus/{SendStatus.js → SendStatus.tsx} +8 -3
- package/src/Middleware/ActivityStatus/{Timestamp.js → Timestamp.tsx} +8 -2
- package/src/Middleware/ActivityStatus/{createCoreMiddleware.js → createCoreMiddleware.tsx} +3 -1
- package/src/Middleware/ActivityStatus/createSendStatusMiddleware.js +8 -6
- package/src/Middleware/ActivityStatus/createTimestampMiddleware.js +10 -8
- package/src/Middleware/Attachment/{createCoreMiddleware.js → createCoreMiddleware.tsx} +8 -7
- package/src/Middleware/AttachmentForScreenReader/{createCoreMiddleware.js → createCoreMiddleware.tsx} +4 -3
- package/src/Middleware/Avatar/{createCoreMiddleware.js → createCoreMiddleware.tsx} +10 -3
- package/src/Middleware/CardAction/createCoreMiddleware.js +43 -41
- package/src/Middleware/GroupActivities/createCoreMiddleware.js +6 -4
- package/src/Middleware/ScrollToEndButton/ScrollToEndButton.js +45 -0
- package/src/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.ts +17 -0
- package/src/Middleware/Toast/{createCoreMiddleware.js → createCoreMiddleware.tsx} +3 -1
- package/src/Middleware/TypingIndicator/{createCoreMiddleware.js → createCoreMiddleware.tsx} +3 -4
- package/src/{ReactWebChat.js → ReactWebChat.tsx} +25 -7
- package/src/ScreenReaderActivity.js +47 -37
- package/src/SendBox/Assets/AttachmentIcon.js +1 -1
- package/src/SendBox/Assets/MicrophoneIcon.js +1 -1
- package/src/SendBox/{AutoResizeTextArea.js → AutoResizeTextArea.tsx} +30 -4
- package/src/SendBox/{DictationInterims.js → DictationInterims.tsx} +6 -2
- package/src/SendBox/{MicrophoneButton.js → MicrophoneButton.tsx} +35 -25
- package/src/SendBox/{SendButton.js → SendButton.tsx} +8 -3
- package/src/SendBox/SuggestedAction.js +1 -15
- package/src/SendBox/{SuggestedActions.js → SuggestedActions.tsx} +42 -21
- package/src/SendBox/{TextBox.js → TextBox.tsx} +21 -7
- package/src/SendBox/{UploadButton.js → UploadButton.tsx} +7 -3
- package/src/Styles/StyleSet/CarouselFilmStrip.ts +0 -20
- package/src/Styles/StyleSet/CarouselFilmStripAttachment.ts +56 -0
- package/src/Styles/StyleSet/ScrollToEndButton.ts +33 -31
- package/src/Styles/StyleSet/SuggestedAction.ts +1 -1
- package/src/Styles/createStyleSet.ts +41 -39
- package/src/Toast/CollapseIcon.js +9 -1
- package/src/Toast/DismissIcon.js +9 -1
- package/src/Toast/ExpandIcon.js +9 -1
- package/src/Toast/{createToastMiddleware.js → createToastMiddleware.tsx} +3 -2
- package/src/Utils/{AccessibleInputText.js → AccessibleInputText.tsx} +48 -5
- package/src/Utils/{AccessibleTextArea.js → AccessibleTextArea.tsx} +67 -6
- package/src/Utils/TypeFocusSink/FocusBox.js +4 -4
- package/src/Utils/TypeFocusSink/getTabIndex.ts +1 -1
- package/src/Utils/activityAltText.ts +135 -0
- package/src/Utils/findLastIndex.spec.js +2 -0
- package/src/Utils/intersectionOf.spec.js +2 -0
- package/src/Utils/mapMap.spec.js +2 -0
- package/src/Utils/removeInline.spec.js +2 -0
- package/src/Utils/{singleToArray.js → singleToArray.ts} +1 -1
- package/src/Utils/walkMarkdownTokens.spec.js +3 -3
- package/src/hooks/{index.js → index.ts} +1 -0
- package/src/hooks/internal/BypassSpeechSynthesisPonyfill.js +68 -17
- package/src/hooks/internal/useMemoize.spec.js +2 -0
- package/src/hooks/internal/useResumeAudioContext.ts +7 -0
- package/src/hooks/internal/useScrollRelative.js +4 -3
- package/src/hooks/internal/{useUniqueId.js → useUniqueId.ts} +1 -1
- package/src/hooks/{useDictateAbortable.js → useDictateAbortable.ts} +1 -1
- package/src/hooks/{useFocus.js → useFocus.ts} +1 -1
- package/src/hooks/{useFocusSendBox.js → useFocusSendBox.ts} +2 -1
- package/src/hooks/{useObserveScrollPosition.js → useObserveScrollPosition.ts} +6 -1
- package/src/hooks/{useObserveTranscriptFocus.js → useObserveTranscriptFocus.ts} +6 -1
- package/src/hooks/{useRenderMarkdownAsHTML.js → useRenderMarkdownAsHTML.ts} +6 -2
- package/src/hooks/{useScrollDown.js → useScrollDown.ts} +1 -1
- package/src/hooks/{useScrollTo.js → useScrollTo.ts} +5 -1
- package/src/hooks/{useScrollToEnd.js → useScrollToEnd.ts} +1 -1
- package/src/hooks/{useScrollUp.js → useScrollUp.ts} +1 -1
- package/src/hooks/{useSendFiles.js → useSendFiles.ts} +3 -2
- package/src/hooks/{useStyleSet.js → useStyleSet.ts} +1 -1
- package/src/hooks/useWebSpeechPonyfill.ts +7 -0
- package/src/index.ts +7 -11
- package/src/tsconfig.json +1 -1
- package/src/types/ScrollPosition.ts +6 -0
- package/lib/Activity/ScrollToEndButton.js +0 -81
- package/lib/Attachment/Assets/ErrorIcon.js +0 -22
- package/lib/Utils/remarkStripMarkdown.js +0 -26
- package/lib/hooks/internal/useStripMarkdown.js +0 -19
- package/src/Activity/ScrollToEndButton.js +0 -58
- package/src/Attachment/Assets/ErrorIcon.js +0 -9
- package/src/Utils/remarkStripMarkdown.js +0 -13
- package/src/hooks/internal/useStripMarkdown.js +0 -7
- package/src/hooks/useWebSpeechPonyfill.js +0 -5
- package/src/index.tsx +0 -35
|
@@ -0,0 +1,1103 @@
|
|
|
1
|
+
import { StyleOptions } from 'botframework-webchat-api';
|
|
2
|
+
export default function createStyleSet(styleOptions: StyleOptions): {
|
|
3
|
+
activities: {
|
|
4
|
+
margin: number;
|
|
5
|
+
padding: number;
|
|
6
|
+
};
|
|
7
|
+
audioAttachment: {
|
|
8
|
+
display: string;
|
|
9
|
+
minHeight: number;
|
|
10
|
+
};
|
|
11
|
+
audioContent: {
|
|
12
|
+
width: string;
|
|
13
|
+
};
|
|
14
|
+
autoResizeTextArea: {
|
|
15
|
+
'&.webchat__auto-resize-textarea': {
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
overflow: string;
|
|
18
|
+
position: string;
|
|
19
|
+
'& .webchat__auto-resize-textarea__doppelganger': {
|
|
20
|
+
color: string;
|
|
21
|
+
height: string;
|
|
22
|
+
overflowY: string;
|
|
23
|
+
userSelect: string;
|
|
24
|
+
width: string;
|
|
25
|
+
whiteSpace: string;
|
|
26
|
+
wordBreak: string;
|
|
27
|
+
};
|
|
28
|
+
'& .webchat__auto-resize-textarea__textarea': {
|
|
29
|
+
appearance: string;
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
border: number;
|
|
32
|
+
color: string;
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
fontSize: string;
|
|
35
|
+
height: string;
|
|
36
|
+
left: number;
|
|
37
|
+
margin: number;
|
|
38
|
+
outline: number;
|
|
39
|
+
overflowY: string;
|
|
40
|
+
padding: number;
|
|
41
|
+
position: string;
|
|
42
|
+
resize: string;
|
|
43
|
+
top: number;
|
|
44
|
+
width: string;
|
|
45
|
+
wordBreak: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
avatar: {
|
|
50
|
+
'&.webchat__defaultAvatar': {
|
|
51
|
+
borderRadius: string | number;
|
|
52
|
+
height: number;
|
|
53
|
+
width: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
basicTranscript: {
|
|
57
|
+
'&.webchat__basic-transcript': {
|
|
58
|
+
'&:focus': {
|
|
59
|
+
outline: number;
|
|
60
|
+
'& .webchat__basic-transcript__activity-indicator.webchat__basic-transcript__activity-indicator--focus': {
|
|
61
|
+
borderColor: string;
|
|
62
|
+
borderStyle: string;
|
|
63
|
+
borderWidth: string | number;
|
|
64
|
+
boxSizing: string;
|
|
65
|
+
height: string;
|
|
66
|
+
left: number;
|
|
67
|
+
margin: number;
|
|
68
|
+
pointerEvents: string;
|
|
69
|
+
position: string;
|
|
70
|
+
top: number;
|
|
71
|
+
width: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
'&:focus .webchat__basic-transcript__focus-indicator, .webchat__basic-transcript__terminator:focus + .webchat__basic-transcript__focus-indicator': {
|
|
75
|
+
height: string;
|
|
76
|
+
borderColor: string;
|
|
77
|
+
borderStyle: string;
|
|
78
|
+
borderWidth: string | number;
|
|
79
|
+
boxSizing: string;
|
|
80
|
+
pointerEvents: string;
|
|
81
|
+
position: string;
|
|
82
|
+
top: number;
|
|
83
|
+
width: string;
|
|
84
|
+
};
|
|
85
|
+
'& .webchat__basic-transcript__activity': {
|
|
86
|
+
paddingTop: number;
|
|
87
|
+
position: string;
|
|
88
|
+
'&:not(:first-child)': {
|
|
89
|
+
marginTop: number;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
'& .webchat__basic-transcript__activity-box:not(:empty)': {
|
|
93
|
+
paddingBottom: number;
|
|
94
|
+
};
|
|
95
|
+
'& .webchat__basic-transcript__activity-sentinel': {
|
|
96
|
+
height: string;
|
|
97
|
+
left: number;
|
|
98
|
+
pointerEvents: string;
|
|
99
|
+
position: string;
|
|
100
|
+
top: number;
|
|
101
|
+
width: string;
|
|
102
|
+
};
|
|
103
|
+
'& .webchat__basic-transcript__terminator': {
|
|
104
|
+
bottom: number;
|
|
105
|
+
height: number;
|
|
106
|
+
outline: number;
|
|
107
|
+
position: string;
|
|
108
|
+
width: string;
|
|
109
|
+
};
|
|
110
|
+
'& .webchat__basic-transcript__terminator-body': {
|
|
111
|
+
bottom: number;
|
|
112
|
+
display: string;
|
|
113
|
+
justifyContent: string;
|
|
114
|
+
position: string;
|
|
115
|
+
width: string;
|
|
116
|
+
};
|
|
117
|
+
'& .webchat__basic-transcript__terminator:not(:focus) .webchat__basic-transcript__terminator-body': {
|
|
118
|
+
display: string;
|
|
119
|
+
};
|
|
120
|
+
'& .webchat__basic-transcript__terminator-text': {
|
|
121
|
+
backgroundColor: string;
|
|
122
|
+
borderRadius: string | number;
|
|
123
|
+
color: string;
|
|
124
|
+
fontFamily: string;
|
|
125
|
+
fontSize: string | number;
|
|
126
|
+
margin: number;
|
|
127
|
+
padding: number;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
bubble: {
|
|
132
|
+
'&.webchat__bubble': any;
|
|
133
|
+
};
|
|
134
|
+
carouselFilmStrip: {
|
|
135
|
+
'&.webchat__carousel-filmstrip': any;
|
|
136
|
+
};
|
|
137
|
+
carouselFilmStripAttachment: any;
|
|
138
|
+
carouselFlipper: {
|
|
139
|
+
'&.webchat__carousel-layout': {
|
|
140
|
+
'& .react-film__flipper': {
|
|
141
|
+
'& .react-film__flipper__body': {
|
|
142
|
+
backgroundColor: string;
|
|
143
|
+
color: string;
|
|
144
|
+
outline: number;
|
|
145
|
+
};
|
|
146
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
147
|
+
'& .react-film__flipper__body': {
|
|
148
|
+
backgroundColor: string;
|
|
149
|
+
color: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
'&:focus .react-film__flipper__body': {
|
|
153
|
+
backgroundColor: string;
|
|
154
|
+
color: string;
|
|
155
|
+
};
|
|
156
|
+
'&:hover .react-film__flipper__body': {
|
|
157
|
+
backgroundColor: string;
|
|
158
|
+
color: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
connectivityNotification: {
|
|
164
|
+
alignItems: string;
|
|
165
|
+
color: string;
|
|
166
|
+
display: string;
|
|
167
|
+
fontFamily: string;
|
|
168
|
+
fontSize: string | number;
|
|
169
|
+
marginBottom: number;
|
|
170
|
+
marginLeft: number;
|
|
171
|
+
marginRight: number;
|
|
172
|
+
marginTop: number;
|
|
173
|
+
};
|
|
174
|
+
dictationInterims: {
|
|
175
|
+
fontFamily: string;
|
|
176
|
+
margin: number;
|
|
177
|
+
paddingBottom: number;
|
|
178
|
+
paddingLeft: number;
|
|
179
|
+
paddingRight: number;
|
|
180
|
+
paddingTop: number;
|
|
181
|
+
'&.dictating > span:not(:first-child), &.status': {
|
|
182
|
+
opacity: number;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
errorBox: {
|
|
186
|
+
display: string;
|
|
187
|
+
flexDirection: string;
|
|
188
|
+
fontFamily: string;
|
|
189
|
+
margin: number;
|
|
190
|
+
minHeight: number;
|
|
191
|
+
maxHeight: number;
|
|
192
|
+
overflowY: string;
|
|
193
|
+
WebkitOverflowScrolling: string;
|
|
194
|
+
'& > :first-child': {
|
|
195
|
+
backgroundColor: string;
|
|
196
|
+
color: string;
|
|
197
|
+
padding: string;
|
|
198
|
+
};
|
|
199
|
+
'& > :last-child': {
|
|
200
|
+
borderColor: string;
|
|
201
|
+
borderStyle: string;
|
|
202
|
+
borderBottomWidth: number;
|
|
203
|
+
borderLeftWidth: number;
|
|
204
|
+
borderRightWidth: number;
|
|
205
|
+
borderTopWidth: number;
|
|
206
|
+
margin: number;
|
|
207
|
+
overflowY: string;
|
|
208
|
+
padding: number;
|
|
209
|
+
'& > pre': {
|
|
210
|
+
fontFamily: string;
|
|
211
|
+
fontSize: string;
|
|
212
|
+
margin: number;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
errorNotification: {
|
|
217
|
+
alignItems: string;
|
|
218
|
+
color: string | number;
|
|
219
|
+
display: string;
|
|
220
|
+
fontFamily: string;
|
|
221
|
+
fontSize: string | number;
|
|
222
|
+
fontWeight: string;
|
|
223
|
+
marginBottom: number;
|
|
224
|
+
marginLeft: number;
|
|
225
|
+
marginRight: number;
|
|
226
|
+
marginTop: number;
|
|
227
|
+
'& > svg': {
|
|
228
|
+
fill: string | number;
|
|
229
|
+
'&:not(.webchat__error--rtl)': {
|
|
230
|
+
paddingRight: number;
|
|
231
|
+
};
|
|
232
|
+
'&.webchat__error--rtl': {
|
|
233
|
+
paddingLeft: number;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
fileContent: {
|
|
238
|
+
color: string;
|
|
239
|
+
display: string;
|
|
240
|
+
fontFamily: string;
|
|
241
|
+
padding: number;
|
|
242
|
+
'& .webchat__fileContent__badge': {
|
|
243
|
+
justifyContent: string;
|
|
244
|
+
};
|
|
245
|
+
'& .webchat__fileContent__buttonLink': {
|
|
246
|
+
alignItems: string;
|
|
247
|
+
color: string;
|
|
248
|
+
textDecoration: string;
|
|
249
|
+
'&:focus': {
|
|
250
|
+
backgroundColor: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
'& .webchat__fileContent__downloadIcon': {
|
|
254
|
+
fill: string;
|
|
255
|
+
padding: number;
|
|
256
|
+
'&:not(.webchat__fileContent__downloadIcon--rtl)': {
|
|
257
|
+
marginLeft: number;
|
|
258
|
+
};
|
|
259
|
+
'&.webchat__fileContent__downloadIcon--rtl': {
|
|
260
|
+
marginRight: number;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
'& .webchat__fileContent__fileName': {
|
|
264
|
+
color: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
imageAvatar: {
|
|
268
|
+
height: number;
|
|
269
|
+
overflow: string;
|
|
270
|
+
width: number;
|
|
271
|
+
};
|
|
272
|
+
initialsAvatar: {
|
|
273
|
+
'&.webchat__initialsAvatar': {
|
|
274
|
+
alignItems: string;
|
|
275
|
+
color: string;
|
|
276
|
+
fontFamily: string;
|
|
277
|
+
height: number;
|
|
278
|
+
justifyContent: string;
|
|
279
|
+
overflow: string;
|
|
280
|
+
width: number;
|
|
281
|
+
'&.webchat__initialsAvatar--fromUser': {
|
|
282
|
+
backgroundColor: string;
|
|
283
|
+
};
|
|
284
|
+
'&:not(.webchat__initialsAvatar--fromUser)': {
|
|
285
|
+
backgroundColor: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
microphoneButton: {
|
|
290
|
+
'&.webchat__microphone-button': {
|
|
291
|
+
'&.webchat__microphone-button--dictating .webchat__microphone-button__button': {
|
|
292
|
+
'&, &:focus, &:hover': {
|
|
293
|
+
'& .webchat__microphone-button__icon': {
|
|
294
|
+
fill: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
options: {
|
|
301
|
+
accent: string;
|
|
302
|
+
backgroundColor: string;
|
|
303
|
+
subtle: string;
|
|
304
|
+
paddingRegular: number;
|
|
305
|
+
paddingWide: number;
|
|
306
|
+
transitionDuration: string;
|
|
307
|
+
fontSizeSmall: string | number;
|
|
308
|
+
monospaceFont: string;
|
|
309
|
+
primaryFont: string;
|
|
310
|
+
rootHeight: string | number;
|
|
311
|
+
rootWidth: string | number;
|
|
312
|
+
rootZIndex: number;
|
|
313
|
+
avatarBorderRadius: string | number;
|
|
314
|
+
avatarSize: number;
|
|
315
|
+
botAvatarBackgroundColor: string;
|
|
316
|
+
botAvatarImage: string;
|
|
317
|
+
botAvatarInitials: string;
|
|
318
|
+
userAvatarBackgroundColor: string;
|
|
319
|
+
userAvatarImage: string;
|
|
320
|
+
userAvatarInitials: string;
|
|
321
|
+
showAvatarInGroup: true | "status" | "sender";
|
|
322
|
+
bubbleBackground: string;
|
|
323
|
+
bubbleBorderColor: string;
|
|
324
|
+
bubbleBorderRadius: number;
|
|
325
|
+
bubbleBorderStyle: string;
|
|
326
|
+
bubbleBorderWidth: number;
|
|
327
|
+
bubbleFromUserBackground: string;
|
|
328
|
+
bubbleFromUserBorderColor: string;
|
|
329
|
+
bubbleFromUserBorderRadius: number;
|
|
330
|
+
bubbleFromUserBorderStyle: string;
|
|
331
|
+
bubbleFromUserBorderWidth: number;
|
|
332
|
+
bubbleFromUserNubOffset: number;
|
|
333
|
+
bubbleFromUserNubSize: number;
|
|
334
|
+
bubbleFromUserTextColor: string;
|
|
335
|
+
bubbleImageHeight: number;
|
|
336
|
+
bubbleMaxWidth: number;
|
|
337
|
+
bubbleMinHeight: number;
|
|
338
|
+
bubbleMinWidth: number;
|
|
339
|
+
bubbleNubOffset: number;
|
|
340
|
+
bubbleNubSize: number;
|
|
341
|
+
bubbleTextColor: string;
|
|
342
|
+
messageActivityWordBreak: "break-word" | "normal" | "break-all" | "keep-all";
|
|
343
|
+
connectivityIconPadding: number;
|
|
344
|
+
connectivityMarginLeftRight: number;
|
|
345
|
+
connectivityMarginTopBottom: number;
|
|
346
|
+
connectivityTextSize: string | number;
|
|
347
|
+
failedConnectivity: string | number;
|
|
348
|
+
slowConnectivity: string;
|
|
349
|
+
notificationText: string;
|
|
350
|
+
slowConnectionAfter: number;
|
|
351
|
+
emojiSet: (boolean | Record<string, string>) & (false | Record<string, string>);
|
|
352
|
+
internalLiveRegionFadeAfter: number;
|
|
353
|
+
markdownRespectCRLF: boolean;
|
|
354
|
+
markdownExternalLinkIconImage: string;
|
|
355
|
+
autoScrollSnapOnActivity: number | boolean;
|
|
356
|
+
autoScrollSnapOnActivityOffset: number;
|
|
357
|
+
autoScrollSnapOnPage: number | boolean;
|
|
358
|
+
autoScrollSnapOnPageoffset: number;
|
|
359
|
+
hideSendBox: boolean;
|
|
360
|
+
hideUploadButton: boolean;
|
|
361
|
+
microphoneButtonColorOnDictate: string;
|
|
362
|
+
sendBoxBackground: string;
|
|
363
|
+
sendBoxButtonColor: string;
|
|
364
|
+
sendBoxButtonColorOnDisabled: string;
|
|
365
|
+
sendBoxButtonColorOnFocus: string;
|
|
366
|
+
sendBoxButtonColorOnHover: string;
|
|
367
|
+
sendBoxDisabledTextColor: string;
|
|
368
|
+
sendBoxHeight: string | number;
|
|
369
|
+
sendBoxMaxHeight: string | number;
|
|
370
|
+
sendBoxTextColor: string;
|
|
371
|
+
sendBoxBorderBottom: string | number;
|
|
372
|
+
sendBoxBorderLeft: string | number;
|
|
373
|
+
sendBoxBorderRight: string | number;
|
|
374
|
+
sendBoxBorderTop: string | number;
|
|
375
|
+
sendBoxPlaceholderColor: string;
|
|
376
|
+
sendBoxTextWrap: boolean;
|
|
377
|
+
sendBoxButtonAlignment: "bottom" | "top" | "stretch";
|
|
378
|
+
showSpokenText: boolean;
|
|
379
|
+
spinnerAnimationBackgroundImage: string;
|
|
380
|
+
spinnerAnimationHeight: string | number;
|
|
381
|
+
spinnerAnimationWidth: string | number;
|
|
382
|
+
spinnerAnimationPadding: string | number;
|
|
383
|
+
suggestedActionBackground: string;
|
|
384
|
+
suggestedActionBorderColor: string;
|
|
385
|
+
suggestedActionBorderRadius: string | number;
|
|
386
|
+
suggestedActionBorderStyle: string;
|
|
387
|
+
suggestedActionBorderWidth: string | number;
|
|
388
|
+
suggestedActionDisabledBackground: string;
|
|
389
|
+
suggestedActionDisabledBorderColor: string;
|
|
390
|
+
suggestedActionDisabledBorderStyle: string;
|
|
391
|
+
suggestedActionDisabledBorderWidth: string | number;
|
|
392
|
+
suggestedActionDisabledTextColor: string;
|
|
393
|
+
suggestedActionHeight: string | number;
|
|
394
|
+
suggestedActionImageHeight: string | number;
|
|
395
|
+
suggestedActionLayout: "carousel" | "flow" | "stacked";
|
|
396
|
+
suggestedActionTextColor: string;
|
|
397
|
+
suggestedActionsCarouselFlipperCursor: string;
|
|
398
|
+
suggestedActionsCarouselFlipperBoxWidth: number;
|
|
399
|
+
suggestedActionsCarouselFlipperSize: number;
|
|
400
|
+
suggestedActionsFlowMaxHeight: undefined;
|
|
401
|
+
suggestedActionsStackedHeight: number | "auto";
|
|
402
|
+
suggestedActionsStackedOverflow: "string";
|
|
403
|
+
suggestedActionsStackedLayoutButtonMaxHeight: string | number;
|
|
404
|
+
suggestedActionsStackedLayoutButtonTextWrap: boolean;
|
|
405
|
+
groupTimestamp: number | boolean;
|
|
406
|
+
sendTimeout: number | ((activity: any) => number);
|
|
407
|
+
sendTimeoutForAttachments: number;
|
|
408
|
+
timestampColor: string;
|
|
409
|
+
timestampFormat: "absolute" | "relative";
|
|
410
|
+
transcriptTerminatorBackgroundColor: string;
|
|
411
|
+
transcriptTerminatorBorderRadius: string | number;
|
|
412
|
+
transcriptTerminatorColor: string;
|
|
413
|
+
transcriptTerminatorFontSize: string | number;
|
|
414
|
+
transcriptActivityVisualKeyboardIndicatorColor: string;
|
|
415
|
+
transcriptActivityVisualKeyboardIndicatorStyle: string;
|
|
416
|
+
transcriptActivityVisualKeyboardIndicatorWidth: string | number;
|
|
417
|
+
transcriptVisualKeyboardIndicatorColor: string;
|
|
418
|
+
transcriptVisualKeyboardIndicatorStyle: string;
|
|
419
|
+
transcriptVisualKeyboardIndicatorWidth: string | number;
|
|
420
|
+
scrollToEndButtonBehavior: false | "any" | "unread";
|
|
421
|
+
scrollToEndButtonFontSize: string | number;
|
|
422
|
+
transcriptOverlayButtonBackground: string;
|
|
423
|
+
transcriptOverlayButtonBackgroundOnDisabled: string;
|
|
424
|
+
transcriptOverlayButtonBackgroundOnFocus: string;
|
|
425
|
+
transcriptOverlayButtonBackgroundOnHover: string;
|
|
426
|
+
transcriptOverlayButtonColor: string;
|
|
427
|
+
transcriptOverlayButtonColorOnDisabled: string;
|
|
428
|
+
transcriptOverlayButtonColorOnFocus: string;
|
|
429
|
+
transcriptOverlayButtonColorOnHover: string;
|
|
430
|
+
notificationDebounceTimeout: number;
|
|
431
|
+
hideToaster: boolean;
|
|
432
|
+
toasterHeight: string | number;
|
|
433
|
+
toasterMaxHeight: string | number;
|
|
434
|
+
toasterSingularMaxHeight: string | number;
|
|
435
|
+
toastFontSize: string | number;
|
|
436
|
+
toastIconWidth: string | number;
|
|
437
|
+
toastSeparatorColor: string;
|
|
438
|
+
toastTextPadding: string | number;
|
|
439
|
+
toastErrorBackgroundColor: string;
|
|
440
|
+
toastErrorColor: string;
|
|
441
|
+
toastInfoBackgroundColor: string;
|
|
442
|
+
toastInfoColor: string;
|
|
443
|
+
toastSuccessBackgroundColor: string;
|
|
444
|
+
toastSuccessColor: string;
|
|
445
|
+
toastWarnBackgroundColor: string;
|
|
446
|
+
toastWarnColor: string;
|
|
447
|
+
typingAnimationBackgroundImage: string;
|
|
448
|
+
typingAnimationDuration: number;
|
|
449
|
+
typingAnimationHeight: string | number;
|
|
450
|
+
typingAnimationWidth: string | number;
|
|
451
|
+
enableUploadThumbnail: boolean;
|
|
452
|
+
uploadThumbnailContentType: string;
|
|
453
|
+
uploadThumbnailHeight: string | number;
|
|
454
|
+
uploadThumbnailQuality: number;
|
|
455
|
+
uploadThumbnailWidth: string | number;
|
|
456
|
+
videoHeight: string | number;
|
|
457
|
+
};
|
|
458
|
+
root: {
|
|
459
|
+
backgroundColor: string;
|
|
460
|
+
height: string | number;
|
|
461
|
+
width: string | number;
|
|
462
|
+
zIndex: number;
|
|
463
|
+
};
|
|
464
|
+
scrollToEndButton: {
|
|
465
|
+
'&.webchat__scroll-to-end-button': {
|
|
466
|
+
'@media screen and (-ms-high-contrast: active)': {
|
|
467
|
+
borderWidth: string;
|
|
468
|
+
outline: string;
|
|
469
|
+
};
|
|
470
|
+
appearance: string;
|
|
471
|
+
backgroundColor: string;
|
|
472
|
+
borderRadius: number;
|
|
473
|
+
borderWidth: number;
|
|
474
|
+
bottom: number;
|
|
475
|
+
color: string;
|
|
476
|
+
fontFamily: string;
|
|
477
|
+
fontSize: string | number;
|
|
478
|
+
outline: number;
|
|
479
|
+
padding: number;
|
|
480
|
+
position: string;
|
|
481
|
+
zIndex: number;
|
|
482
|
+
'&:hover': {
|
|
483
|
+
backgroundColor: string;
|
|
484
|
+
color: string;
|
|
485
|
+
};
|
|
486
|
+
'&:focus': {
|
|
487
|
+
backgroundColor: string;
|
|
488
|
+
color: string;
|
|
489
|
+
};
|
|
490
|
+
'&:not(.webchat__scroll-to-end-button--rtl)': {
|
|
491
|
+
right: number;
|
|
492
|
+
};
|
|
493
|
+
'&.webchat__scroll-to-end-button--rtl': {
|
|
494
|
+
left: number;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
sendBox: {
|
|
499
|
+
'&.webchat__send-box': {
|
|
500
|
+
'& .webchat__send-box__button--align-bottom': {
|
|
501
|
+
alignSelf: string;
|
|
502
|
+
};
|
|
503
|
+
'& .webchat__send-box__button--align-stretch': {
|
|
504
|
+
alignSelf: string;
|
|
505
|
+
};
|
|
506
|
+
'& .webchat__send-box__button--align-top': {
|
|
507
|
+
alignSelf: string;
|
|
508
|
+
};
|
|
509
|
+
'& .webchat__send-box__main': {
|
|
510
|
+
alignItems: string;
|
|
511
|
+
backgroundColor: string;
|
|
512
|
+
borderBottom: string | number;
|
|
513
|
+
borderLeft: string | number;
|
|
514
|
+
borderRight: string | number;
|
|
515
|
+
borderTop: string | number;
|
|
516
|
+
minHeight: string | number;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
sendBoxButton: {
|
|
521
|
+
'&.webchat__icon-button': {
|
|
522
|
+
alignItems: string;
|
|
523
|
+
backgroundColor: string;
|
|
524
|
+
border: number;
|
|
525
|
+
display: string;
|
|
526
|
+
justifyContent: string;
|
|
527
|
+
outline: number;
|
|
528
|
+
padding: number;
|
|
529
|
+
width: string | number;
|
|
530
|
+
'&:not(.webchat__icon-button--stretch)': {
|
|
531
|
+
height: string | number;
|
|
532
|
+
};
|
|
533
|
+
'&:not(:disabled):not([aria-disabled="true"])': {
|
|
534
|
+
'&:focus svg': {
|
|
535
|
+
fill: string;
|
|
536
|
+
};
|
|
537
|
+
'&:hover svg': {
|
|
538
|
+
fill: string;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
'& svg': {
|
|
542
|
+
fill: string;
|
|
543
|
+
};
|
|
544
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
545
|
+
'& svg': {
|
|
546
|
+
fill: string;
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
sendBoxTextBox: {
|
|
552
|
+
'&.webchat__send-box-text-box': {
|
|
553
|
+
alignItems: string;
|
|
554
|
+
fontFamily: string;
|
|
555
|
+
padding: number;
|
|
556
|
+
position: string;
|
|
557
|
+
'& .webchat__send-box-text-box__input': {
|
|
558
|
+
border: number;
|
|
559
|
+
fontFamily: string;
|
|
560
|
+
fontSize: string;
|
|
561
|
+
height: string;
|
|
562
|
+
outline: number;
|
|
563
|
+
padding: number;
|
|
564
|
+
};
|
|
565
|
+
'& .webchat__send-box-text-box__input, & .webchat__send-box-text-box__html-text-area': {
|
|
566
|
+
backgroundColor: string;
|
|
567
|
+
'&:not(:disabled):not([aria-disabled="true"])': {
|
|
568
|
+
color: string;
|
|
569
|
+
};
|
|
570
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
571
|
+
color: string;
|
|
572
|
+
};
|
|
573
|
+
'&::placeholder': {
|
|
574
|
+
color: string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
'& .webchat__send-box-text-box__input, & .webchat__send-box-text-box__text-area': {
|
|
578
|
+
maxHeight: string | number;
|
|
579
|
+
};
|
|
580
|
+
'& .webchat__send-box-text-box__glass': {
|
|
581
|
+
height: string;
|
|
582
|
+
left: number;
|
|
583
|
+
position: string;
|
|
584
|
+
top: number;
|
|
585
|
+
userSelect: number;
|
|
586
|
+
width: string;
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
sendStatus: {
|
|
591
|
+
color: string;
|
|
592
|
+
fontFamily: string;
|
|
593
|
+
fontSize: string | number;
|
|
594
|
+
paddingTop: number;
|
|
595
|
+
};
|
|
596
|
+
singleAttachmentActivity: {
|
|
597
|
+
'& > .bubble-box': {
|
|
598
|
+
maxWidth: number;
|
|
599
|
+
minWidth: number;
|
|
600
|
+
};
|
|
601
|
+
'& > .filler': {
|
|
602
|
+
minWidth: number;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
spinnerAnimation: {
|
|
606
|
+
backgroundImage: string;
|
|
607
|
+
backgroundRepeat: string;
|
|
608
|
+
backgroundSize: string;
|
|
609
|
+
height: string | number;
|
|
610
|
+
width: string | number;
|
|
611
|
+
':not(.webchat__spinner--rtl)': {
|
|
612
|
+
marginRight: string | number;
|
|
613
|
+
};
|
|
614
|
+
'.webchat__spinner--rtl': {
|
|
615
|
+
marginLeft: string | number;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
stackedLayout: {
|
|
619
|
+
'&.webchat__stacked-layout': {
|
|
620
|
+
marginLeft: number;
|
|
621
|
+
marginRight: number;
|
|
622
|
+
'& .webchat__stacked-layout__alignment-pad': {
|
|
623
|
+
transitionDuration: string;
|
|
624
|
+
transitionProperty: string;
|
|
625
|
+
width: number;
|
|
626
|
+
};
|
|
627
|
+
'&.webchat__stacked-layout--extra-trailing .webchat__stacked-layout__alignment-pad': {
|
|
628
|
+
width: number;
|
|
629
|
+
};
|
|
630
|
+
'& .webchat__stacked-layout__avatar-gutter': {
|
|
631
|
+
transitionDuration: string;
|
|
632
|
+
transitionProperty: string;
|
|
633
|
+
width: number;
|
|
634
|
+
};
|
|
635
|
+
'& .webchat__stacked-layout__attachment': {
|
|
636
|
+
maxWidth: number;
|
|
637
|
+
minWidth: number;
|
|
638
|
+
transitionDuration: string;
|
|
639
|
+
transitionProperty: string;
|
|
640
|
+
};
|
|
641
|
+
'& .webchat__stacked-layout__attachment-row': {
|
|
642
|
+
marginTop: number;
|
|
643
|
+
width: string;
|
|
644
|
+
};
|
|
645
|
+
'&.webchat__stacked-layout--no-message .webchat__stacked-layout__attachment-row.webchat__stacked-layout__attachment-row--first': {
|
|
646
|
+
marginTop: number;
|
|
647
|
+
};
|
|
648
|
+
'& .webchat__stacked-layout__message': {
|
|
649
|
+
maxWidth: number;
|
|
650
|
+
overflow: string;
|
|
651
|
+
transitionDuration: string;
|
|
652
|
+
transitionProperty: string;
|
|
653
|
+
};
|
|
654
|
+
'& .webchat__stacked-layout__nub-pad': {
|
|
655
|
+
transitionDuration: string;
|
|
656
|
+
transitionProperty: string;
|
|
657
|
+
width: number;
|
|
658
|
+
};
|
|
659
|
+
'&.webchat__stacked-layout--hide-avatar, &.webchat__stacked-layout--show-avatar': {
|
|
660
|
+
'& .webchat__stacked-layout__avatar-gutter': {
|
|
661
|
+
width: number;
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
'&.webchat__stacked-layout--hide-avatar, &.webchat__stacked-layout--show-avatar, &.webchat__stacked-layout--hide-nub, &.webchat__stacked-layout--show-nub': {
|
|
665
|
+
'& .webchat__stacked-layout__attachment, & .webchat__stacked-layout__message': {
|
|
666
|
+
maxWidth: number;
|
|
667
|
+
};
|
|
668
|
+
'& .webchat__stacked-layout__nub-pad': {
|
|
669
|
+
width: number;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
'&:not(.webchat__stacked-layout--top-callout)': {
|
|
673
|
+
'& .webchat__stacked-layout__avatar-gutter, & .webchat__stacked-layout__content': {
|
|
674
|
+
justifyContent: string;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
suggestedAction: {
|
|
680
|
+
'&.webchat__suggested-action': {
|
|
681
|
+
display: string;
|
|
682
|
+
maxWidth: string;
|
|
683
|
+
'& .webchat__suggested-action__button': {
|
|
684
|
+
alignItems: string;
|
|
685
|
+
borderRadius: string | number;
|
|
686
|
+
fontFamily: string;
|
|
687
|
+
fontSize: string;
|
|
688
|
+
height: string | number;
|
|
689
|
+
justifyContent: string;
|
|
690
|
+
maxWidth: string;
|
|
691
|
+
paddingLeft: number;
|
|
692
|
+
paddingRight: number;
|
|
693
|
+
whiteSpace: string;
|
|
694
|
+
width: string;
|
|
695
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
696
|
+
background: string;
|
|
697
|
+
borderColor: string;
|
|
698
|
+
borderStyle: string;
|
|
699
|
+
borderWidth: string | number;
|
|
700
|
+
color: string;
|
|
701
|
+
};
|
|
702
|
+
'&:not(:disabled):not([aria-disabled="true"])': {
|
|
703
|
+
background: string;
|
|
704
|
+
borderColor: string;
|
|
705
|
+
borderStyle: string;
|
|
706
|
+
borderWidth: string | number;
|
|
707
|
+
color: string;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
'& .webchat__suggested-action__image': {
|
|
711
|
+
height: string | number;
|
|
712
|
+
};
|
|
713
|
+
'& .webchat__suggested-action--wrapping': {
|
|
714
|
+
height: string;
|
|
715
|
+
maxHeight: string | number;
|
|
716
|
+
minHeight: string | number;
|
|
717
|
+
};
|
|
718
|
+
'&:not(.webchat__suggested-action--rtl) .webchat__suggested-action__image + .webchat__suggested-action__text': {
|
|
719
|
+
paddingLeft: number;
|
|
720
|
+
};
|
|
721
|
+
'&.webchat__suggested-action--rtl .webchat__suggested-action__image + .webchat__suggested-action__text': {
|
|
722
|
+
paddingRight: number;
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
suggestedActions: {
|
|
727
|
+
'&.webchat__suggested-actions': {
|
|
728
|
+
'&.webchat__suggested-actions--carousel-layout': {
|
|
729
|
+
'& .webchat__suggested-actions__carousel': {
|
|
730
|
+
paddingBottom: number;
|
|
731
|
+
paddingTop: number;
|
|
732
|
+
'& .webchat__suggested-actions__button': {
|
|
733
|
+
paddingBottom: number;
|
|
734
|
+
paddingLeft: number;
|
|
735
|
+
paddingRight: number;
|
|
736
|
+
paddingTop: number;
|
|
737
|
+
};
|
|
738
|
+
'& .react-film__filmstrip': {
|
|
739
|
+
scrollbarWidth: string;
|
|
740
|
+
};
|
|
741
|
+
'& .react-film__flipper': {
|
|
742
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
743
|
+
'& .react-film__flipper__body': {
|
|
744
|
+
backgroundColor: string;
|
|
745
|
+
color: string;
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
'&:focus .react-film__flipper__body': {
|
|
749
|
+
backgroundColor: string;
|
|
750
|
+
color: string;
|
|
751
|
+
};
|
|
752
|
+
'&:hover .react-film__flipper__body': {
|
|
753
|
+
backgroundColor: string;
|
|
754
|
+
color: string;
|
|
755
|
+
};
|
|
756
|
+
'& .react-film__flipper__body': {
|
|
757
|
+
background: string;
|
|
758
|
+
color: string;
|
|
759
|
+
outline: number;
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
'&:not(.webchat__suggested-actions--rtl)': {
|
|
764
|
+
'& .react-film__filmstrip__item:first-child': {
|
|
765
|
+
paddingLeft: number;
|
|
766
|
+
};
|
|
767
|
+
'& .react-film__filmstrip__item:last-child': {
|
|
768
|
+
paddingRight: number;
|
|
769
|
+
};
|
|
770
|
+
'& .react-film__flipper + .react-film__filmstrip': {
|
|
771
|
+
'& .react-film__filmstrip__item:first-child': {
|
|
772
|
+
paddingLeft: number;
|
|
773
|
+
};
|
|
774
|
+
'& .react-film__filmstrip__item:last-child': {
|
|
775
|
+
paddingRight: number;
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
'&.webchat__suggested-actions--rtl': {
|
|
780
|
+
'& .react-film__filmstrip__item:first-child': {
|
|
781
|
+
paddingRight: number;
|
|
782
|
+
};
|
|
783
|
+
'& .react-film__filmstrip__item:last-child': {
|
|
784
|
+
paddingLeft: number;
|
|
785
|
+
};
|
|
786
|
+
'& .react-film__flipper + .react-film__filmstrip': {
|
|
787
|
+
'& .react-film__filmstrip__item:first-child': {
|
|
788
|
+
paddingRight: number;
|
|
789
|
+
};
|
|
790
|
+
'& .react-film__filmstrip__item:last-child': {
|
|
791
|
+
paddingLeft: number;
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
'&.webchat__suggested-actions--flow-layout': {
|
|
797
|
+
'& .webchat__suggested-actions__flow-box': {
|
|
798
|
+
maxHeight: undefined;
|
|
799
|
+
overflowY: string;
|
|
800
|
+
paddingBottom: number;
|
|
801
|
+
paddingLeft: number;
|
|
802
|
+
paddingRight: number;
|
|
803
|
+
paddingTop: number;
|
|
804
|
+
};
|
|
805
|
+
'& .webchat__suggested-actions__item': {
|
|
806
|
+
maxWidth: string;
|
|
807
|
+
overflow: string;
|
|
808
|
+
};
|
|
809
|
+
'& .webchat__suggested-actions__button': {
|
|
810
|
+
padding: number;
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
'&.webchat__suggested-actions--stacked-layout': {
|
|
814
|
+
'& .webchat__suggested-actions__stack': {
|
|
815
|
+
maxHeight: number | "auto";
|
|
816
|
+
overflowY: string;
|
|
817
|
+
paddingBottom: number;
|
|
818
|
+
paddingLeft: number;
|
|
819
|
+
paddingRight: number;
|
|
820
|
+
paddingTop: number;
|
|
821
|
+
};
|
|
822
|
+
'& .webchat__suggested-actions__button': {
|
|
823
|
+
paddingBottom: number;
|
|
824
|
+
paddingLeft: number;
|
|
825
|
+
paddingRight: number;
|
|
826
|
+
paddingTop: number;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
'&.webchat__suggested-actions--flow-layout, &.webchat__suggested-actions--stacked-layout': {
|
|
830
|
+
'& .webchat__suggested-actions__button-text': {
|
|
831
|
+
overflow: string;
|
|
832
|
+
textOverflow: string;
|
|
833
|
+
};
|
|
834
|
+
'& .webchat__suggested-actions__button-text-stacked-text-wrap': {
|
|
835
|
+
alignItems: string;
|
|
836
|
+
display: string;
|
|
837
|
+
whiteSpace: string;
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
textContent: {
|
|
843
|
+
fontFamily: string;
|
|
844
|
+
margin: number;
|
|
845
|
+
minHeight: number;
|
|
846
|
+
padding: number;
|
|
847
|
+
'& > :first-child': {
|
|
848
|
+
marginTop: number;
|
|
849
|
+
};
|
|
850
|
+
'& > :last-child': {
|
|
851
|
+
marginBottom: number;
|
|
852
|
+
};
|
|
853
|
+
'&.markdown': {
|
|
854
|
+
'& img:not(.webchat__markdown__external-link-icon)': {
|
|
855
|
+
maxWidth: number;
|
|
856
|
+
width: string;
|
|
857
|
+
};
|
|
858
|
+
'& img.webchat__markdown__external-link-icon': {
|
|
859
|
+
backgroundImage: string;
|
|
860
|
+
height: string;
|
|
861
|
+
marginLeft: string;
|
|
862
|
+
};
|
|
863
|
+
'& pre': {
|
|
864
|
+
overflow: string;
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
toast: {
|
|
869
|
+
fontFamily: string;
|
|
870
|
+
fontSize: string | number;
|
|
871
|
+
minHeight: string | number;
|
|
872
|
+
'&.webchat__toast--error': {
|
|
873
|
+
color: string;
|
|
874
|
+
fill: string;
|
|
875
|
+
};
|
|
876
|
+
'&.webchat__toast--info': {
|
|
877
|
+
color: string;
|
|
878
|
+
fill: string;
|
|
879
|
+
};
|
|
880
|
+
'&.webchat__toast--success': {
|
|
881
|
+
color: string;
|
|
882
|
+
fill: string;
|
|
883
|
+
};
|
|
884
|
+
'&.webchat__toast--warn': {
|
|
885
|
+
color: string;
|
|
886
|
+
fill: string;
|
|
887
|
+
};
|
|
888
|
+
'& .webchat__toast__iconBox': {
|
|
889
|
+
alignItems: string;
|
|
890
|
+
display: string;
|
|
891
|
+
flexShrink: number;
|
|
892
|
+
height: string | number;
|
|
893
|
+
justifyContent: string;
|
|
894
|
+
width: string | number;
|
|
895
|
+
};
|
|
896
|
+
'& .webchat__toast__dismissButton': {
|
|
897
|
+
alignItems: string;
|
|
898
|
+
appearance: string;
|
|
899
|
+
backgroundColor: string;
|
|
900
|
+
border: number;
|
|
901
|
+
display: string;
|
|
902
|
+
height: string | number;
|
|
903
|
+
justifyContent: string;
|
|
904
|
+
outline: number;
|
|
905
|
+
padding: number;
|
|
906
|
+
width: string | number;
|
|
907
|
+
'&:focus .webchat__toast__dismissButtonFocus': {
|
|
908
|
+
borderColor: string;
|
|
909
|
+
};
|
|
910
|
+
'&:hover .webchat__toast__dismissButtonFocus': {
|
|
911
|
+
backgroundColor: string;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
'& .webchat__toast__dismissButtonFocus': {
|
|
915
|
+
alignItems: string;
|
|
916
|
+
borderColor: string;
|
|
917
|
+
borderStyle: string;
|
|
918
|
+
borderWidth: number;
|
|
919
|
+
borderRadius: number;
|
|
920
|
+
display: string;
|
|
921
|
+
height: number;
|
|
922
|
+
justifyContent: string;
|
|
923
|
+
width: number;
|
|
924
|
+
};
|
|
925
|
+
'& .webchat__toast__text': {
|
|
926
|
+
alignSelf: string;
|
|
927
|
+
paddingBottom: string | number;
|
|
928
|
+
paddingTop: string | number;
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
toaster: {
|
|
932
|
+
overflowY: string;
|
|
933
|
+
'&:not(.webchat__toaster--expandable)': {
|
|
934
|
+
maxHeight: string | number;
|
|
935
|
+
};
|
|
936
|
+
'&.webchat__toaster--expandable:not(.webchat__toaster--expanded) > ul': {
|
|
937
|
+
height: number;
|
|
938
|
+
};
|
|
939
|
+
'&.webchat__toaster--expandable.webchat__toaster--expanded': {
|
|
940
|
+
maxHeight: string | number;
|
|
941
|
+
};
|
|
942
|
+
'& .webchat__toaster__header': {
|
|
943
|
+
alignItems: string;
|
|
944
|
+
alignSelf: string;
|
|
945
|
+
appearance: string;
|
|
946
|
+
backgroundColor: string;
|
|
947
|
+
border: number;
|
|
948
|
+
display: string;
|
|
949
|
+
fontFamily: string;
|
|
950
|
+
fontSize: string | number;
|
|
951
|
+
minHeight: string | number;
|
|
952
|
+
outline: number;
|
|
953
|
+
padding: number;
|
|
954
|
+
textAlign: string;
|
|
955
|
+
'&:focus .webchat__toaster__expandIconFocus': {
|
|
956
|
+
borderColor: string;
|
|
957
|
+
};
|
|
958
|
+
'&:hover .webchat__toaster__expandIconFocus': {
|
|
959
|
+
backgroundColor: string;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
'& .webchat__toaster__expandIconFocus': {
|
|
963
|
+
alignItems: string;
|
|
964
|
+
borderColor: string;
|
|
965
|
+
borderStyle: string;
|
|
966
|
+
borderWidth: number;
|
|
967
|
+
borderRadius: number;
|
|
968
|
+
display: string;
|
|
969
|
+
height: number;
|
|
970
|
+
justifyContent: string;
|
|
971
|
+
width: number;
|
|
972
|
+
};
|
|
973
|
+
'&.webchat__toaster--error': {
|
|
974
|
+
'&:not(.webchat__toaster--expandable), & .webchat__toaster__header': {
|
|
975
|
+
backgroundColor: string;
|
|
976
|
+
};
|
|
977
|
+
'& .webchat__toaster__header': {
|
|
978
|
+
color: string;
|
|
979
|
+
fill: string;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
'&.webchat__toaster--info': {
|
|
983
|
+
'&:not(.webchat__toaster--expandable), & .webchat__toaster__header': {
|
|
984
|
+
backgroundColor: string;
|
|
985
|
+
};
|
|
986
|
+
'& .webchat__toaster__header': {
|
|
987
|
+
color: string;
|
|
988
|
+
fill: string;
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
'&.webchat__toaster--success': {
|
|
992
|
+
'&:not(.webchat__toaster--expandable), & .webchat__toaster__header': {
|
|
993
|
+
backgroundColor: string;
|
|
994
|
+
};
|
|
995
|
+
'& .webchat__toaster__header': {
|
|
996
|
+
color: string;
|
|
997
|
+
fill: string;
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
'&.webchat__toaster--warn': {
|
|
1001
|
+
'&:not(.webchat__toaster--expandable), & .webchat__toaster__header': {
|
|
1002
|
+
backgroundColor: string;
|
|
1003
|
+
};
|
|
1004
|
+
'& .webchat__toaster__header': {
|
|
1005
|
+
color: string;
|
|
1006
|
+
fill: string;
|
|
1007
|
+
};
|
|
1008
|
+
};
|
|
1009
|
+
'& .webchat__toaster__expandLevelIconBox': {
|
|
1010
|
+
height: string | number;
|
|
1011
|
+
width: string | number;
|
|
1012
|
+
};
|
|
1013
|
+
'& .webchat__toaster__expandIcon': {
|
|
1014
|
+
height: string | number;
|
|
1015
|
+
width: string | number;
|
|
1016
|
+
};
|
|
1017
|
+
'& .webchat__toaster__expandText': {
|
|
1018
|
+
padding: string;
|
|
1019
|
+
};
|
|
1020
|
+
'& .webchat__toaster__expandLevelIconBox, & .webchat__toaster__expandIcon': {
|
|
1021
|
+
alignItems: string;
|
|
1022
|
+
display: string;
|
|
1023
|
+
justifyContent: string;
|
|
1024
|
+
};
|
|
1025
|
+
'& .webchat__toaster__list': {
|
|
1026
|
+
margin: number;
|
|
1027
|
+
overflowY: string;
|
|
1028
|
+
padding: number;
|
|
1029
|
+
};
|
|
1030
|
+
'& .webchat__toaster__listItem:first-child:last-child': {
|
|
1031
|
+
overflow: string;
|
|
1032
|
+
};
|
|
1033
|
+
'& .webchat__toaster__listItem:not(:first-child), & .webchat__toaster__listItem:not(:last-child)': {
|
|
1034
|
+
borderBottomColor: string;
|
|
1035
|
+
borderBottomStyle: string;
|
|
1036
|
+
borderBottomWidth: number;
|
|
1037
|
+
minHeight: number;
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
typingAnimation: {
|
|
1041
|
+
backgroundImage: string;
|
|
1042
|
+
backgroundRepeat: string;
|
|
1043
|
+
height: string | number;
|
|
1044
|
+
width: string | number;
|
|
1045
|
+
};
|
|
1046
|
+
typingIndicator: {
|
|
1047
|
+
paddingBottom: number;
|
|
1048
|
+
'&:not(.webchat__typingIndicator--rtl)': {
|
|
1049
|
+
paddingLeft: number;
|
|
1050
|
+
};
|
|
1051
|
+
'&.webchat__typingIndicator--rtl': {
|
|
1052
|
+
paddingRight: number;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
uploadButton: {
|
|
1056
|
+
width: string | number;
|
|
1057
|
+
'& > .icon > svg': {
|
|
1058
|
+
fill: string;
|
|
1059
|
+
};
|
|
1060
|
+
'& > input:hover + .icon > svg': {
|
|
1061
|
+
fill: string;
|
|
1062
|
+
};
|
|
1063
|
+
'& > input:focus + .icon > svg': {
|
|
1064
|
+
fill: string;
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
videoAttachment: {};
|
|
1068
|
+
videoContent: {
|
|
1069
|
+
height: string | number;
|
|
1070
|
+
width: string;
|
|
1071
|
+
};
|
|
1072
|
+
vimeoContent: {
|
|
1073
|
+
border: number;
|
|
1074
|
+
height: string | number;
|
|
1075
|
+
width: string;
|
|
1076
|
+
};
|
|
1077
|
+
warningNotification: {
|
|
1078
|
+
alignItems: string;
|
|
1079
|
+
color: string;
|
|
1080
|
+
display: string;
|
|
1081
|
+
fontFamily: string;
|
|
1082
|
+
fontSize: string | number;
|
|
1083
|
+
marginBottom: number;
|
|
1084
|
+
marginLeft: number;
|
|
1085
|
+
marginRight: number;
|
|
1086
|
+
marginTop: number;
|
|
1087
|
+
'& > svg': {
|
|
1088
|
+
fill: string;
|
|
1089
|
+
'&:not(webchat__warning--rtl)': {
|
|
1090
|
+
paddingRight: number;
|
|
1091
|
+
};
|
|
1092
|
+
'&.webchat__warning--rtl': {
|
|
1093
|
+
paddingLeft: number;
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
youTubeContent: {
|
|
1098
|
+
border: number;
|
|
1099
|
+
height: string | number;
|
|
1100
|
+
width: string;
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
//# sourceMappingURL=createStyleSet.d.ts.map
|