botframework-webchat-component 4.18.1-main.20260518.2a3d1d3 → 4.18.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/dist/botframework-webchat-component.d.mts +2312 -64
- package/dist/botframework-webchat-component.internal.d.mts +3 -68
- package/dist/botframework-webchat-component.internal.mjs +2 -1
- package/dist/botframework-webchat-component.internal.mjs.LEGAL.txt +0 -0
- package/dist/botframework-webchat-component.mjs +11 -1
- package/dist/botframework-webchat-component.mjs.LEGAL.txt +0 -0
- package/dist/botframework-webchat-component.mjs.map +1 -1
- package/dist/chunk-X37JABN5.mjs +5 -0
- package/dist/chunk-X37JABN5.mjs.LEGAL.txt +0 -0
- package/dist/chunk-X37JABN5.mjs.map +1 -0
- package/dist/metafile-esm.json +1 -1
- package/internal.js +1 -1
- package/lib/Activity/Avatar.d.ts +10 -0
- package/lib/Activity/Avatar.d.ts.map +1 -0
- package/lib/Activity/Avatar.js +35 -0
- package/lib/Activity/Bubble.d.ts +11 -0
- package/lib/Activity/Bubble.d.ts.map +1 -0
- package/lib/Activity/Bubble.js +137 -0
- package/lib/Activity/CarouselFilmStrip.js +264 -0
- package/lib/Activity/CarouselFilmStripAttachment.js +93 -0
- package/lib/Activity/CarouselLayout.js +133 -0
- package/lib/Activity/SayAlt.js +31 -0
- package/lib/Activity/Speak.d.ts +8 -0
- package/lib/Activity/Speak.d.ts.map +1 -0
- package/lib/Activity/Speak.js +99 -0
- package/lib/Activity/StackedLayout.d.ts +17 -0
- package/lib/Activity/StackedLayout.d.ts.map +1 -0
- package/lib/Activity/StackedLayout.js +233 -0
- package/lib/ActivityStatus/AbsoluteTime.js +38 -0
- package/lib/ActivityStatus/OthersActivityStatus.d.ts +8 -0
- package/lib/ActivityStatus/OthersActivityStatus.d.ts.map +1 -0
- package/lib/ActivityStatus/OthersActivityStatus.js +105 -0
- package/lib/ActivityStatus/SelfActivityStatus.d.ts +8 -0
- package/lib/ActivityStatus/SelfActivityStatus.d.ts.map +1 -0
- package/lib/ActivityStatus/SelfActivityStatus.js +37 -0
- package/lib/ActivityStatus/SendStatus/SendStatus.d.ts +10 -0
- package/lib/ActivityStatus/SendStatus/SendStatus.d.ts.map +1 -0
- package/lib/ActivityStatus/SendStatus/SendStatus.js +58 -0
- package/lib/ActivityStatus/SendStatus/private/SendFailedRetry.js +35 -0
- package/lib/ActivityStatus/Slotted.d.ts +7 -0
- package/lib/ActivityStatus/Slotted.d.ts.map +1 -0
- package/lib/ActivityStatus/Slotted.js +31 -0
- package/lib/ActivityStatus/Timestamp.d.ts +7 -0
- package/lib/ActivityStatus/Timestamp.d.ts.map +1 -0
- package/lib/ActivityStatus/Timestamp.js +36 -0
- package/lib/ActivityStatus/private/Feedback/Feedback.d.ts +8 -0
- package/lib/ActivityStatus/private/Feedback/Feedback.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/Feedback.js +67 -0
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.d.ts +9 -0
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.js +34 -0
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.d.ts +9 -0
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.js +57 -0
- package/lib/ActivityStatus/private/Feedback/private/VoteButton.d.ts +10 -0
- package/lib/ActivityStatus/private/Feedback/private/VoteButton.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/private/VoteButton.js +43 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.d.ts +7 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.js +28 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.d.ts +7 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.js +28 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.d.ts +7 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.js +28 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.d.ts +7 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.js +28 -0
- package/lib/ActivityStatus/private/Originator.d.ts +8 -0
- package/lib/ActivityStatus/private/Originator.d.ts.map +1 -0
- package/lib/ActivityStatus/private/Originator.js +29 -0
- package/lib/ActivityStatus/private/RelativeTime.js +37 -0
- package/lib/Assets/TypingAnimation.js +47 -0
- package/lib/Attachment/Assets/DownloadIcon.js +35 -0
- package/lib/Attachment/AudioAttachment.js +38 -0
- package/lib/Attachment/AudioContent.d.ts +11 -0
- package/lib/Attachment/AudioContent.d.ts.map +1 -0
- package/lib/Attachment/AudioContent.js +51 -0
- package/lib/Attachment/FileAttachment.js +43 -0
- package/lib/Attachment/FileContent.d.ts +10 -0
- package/lib/Attachment/FileContent.d.ts.map +1 -0
- package/lib/Attachment/FileContent.js +120 -0
- package/lib/Attachment/HTMLVideoContent.d.ts +11 -0
- package/lib/Attachment/HTMLVideoContent.d.ts.map +1 -0
- package/lib/Attachment/HTMLVideoContent.js +51 -0
- package/lib/Attachment/ImageAttachment.js +41 -0
- package/lib/Attachment/ImageContent.d.ts +8 -0
- package/lib/Attachment/ImageContent.d.ts.map +1 -0
- package/lib/Attachment/ImageContent.js +41 -0
- package/lib/Attachment/Text/TextAttachment.d.ts +12 -0
- package/lib/Attachment/Text/TextAttachment.d.ts.map +1 -0
- package/lib/Attachment/Text/TextAttachment.js +27 -0
- package/lib/Attachment/Text/TextContent.d.ts +10 -0
- package/lib/Attachment/Text/TextContent.d.ts.map +1 -0
- package/lib/Attachment/Text/TextContent.js +34 -0
- package/lib/Attachment/Text/private/CitationModalContent.d.ts +8 -0
- package/lib/Attachment/Text/private/CitationModalContent.d.ts.map +1 -0
- package/lib/Attachment/Text/private/CitationModalContent.js +45 -0
- package/lib/Attachment/Text/private/MarkdownTextContent.d.ts +9 -0
- package/lib/Attachment/Text/private/MarkdownTextContent.d.ts.map +1 -0
- package/lib/Attachment/Text/private/MarkdownTextContent.js +204 -0
- package/lib/Attachment/Text/private/MessageSensitivityLabel.d.ts +12 -0
- package/lib/Attachment/Text/private/MessageSensitivityLabel.d.ts.map +1 -0
- package/lib/Attachment/Text/private/MessageSensitivityLabel.js +38 -0
- package/lib/Attachment/Text/private/PlainTextContent.d.ts +7 -0
- package/lib/Attachment/Text/private/PlainTextContent.d.ts.map +1 -0
- package/lib/Attachment/Text/private/PlainTextContent.js +35 -0
- package/lib/Attachment/Text/private/ShieldIcon.d.ts +9 -0
- package/lib/Attachment/Text/private/ShieldIcon.d.ts.map +1 -0
- package/lib/Attachment/Text/private/ShieldIcon.js +39 -0
- package/lib/Attachment/Text/private/isHTMLButtonElement.d.ts +2 -0
- package/lib/Attachment/Text/private/isHTMLButtonElement.d.ts.map +1 -0
- package/lib/Attachment/Text/private/isHTMLButtonElement.js +10 -0
- package/lib/Attachment/VideoAttachment.js +45 -0
- package/lib/Attachment/VideoContent.d.ts +11 -0
- package/lib/Attachment/VideoContent.d.ts.map +1 -0
- package/lib/Attachment/VideoContent.js +103 -0
- package/lib/Attachment/VimeoContent.d.ts +10 -0
- package/lib/Attachment/VimeoContent.d.ts.map +1 -0
- package/lib/Attachment/VimeoContent.js +59 -0
- package/lib/Attachment/YouTubeContent.d.ts +10 -0
- package/lib/Attachment/YouTubeContent.d.ts.map +1 -0
- package/lib/Attachment/YouTubeContent.js +60 -0
- package/lib/Attachment/createMiddleware.d.ts +3 -0
- package/lib/Attachment/createMiddleware.d.ts.map +1 -0
- package/lib/Attachment/createMiddleware.js +64 -0
- package/lib/Attachment/private/types/WebChatAttachment.d.ts +9 -0
- package/lib/Attachment/private/types/WebChatAttachment.d.ts.map +1 -0
- package/lib/Attachment/private/types/WebChatAttachment.js +2 -0
- package/lib/Avatar/ImageAvatar.js +59 -0
- package/lib/Avatar/InitialsAvatar.js +57 -0
- package/lib/BasicConnectivityStatus.js +46 -0
- package/lib/BasicToast.js +103 -0
- package/lib/BasicToaster.js +176 -0
- package/lib/BasicTranscript.d.ts +7 -0
- package/lib/BasicTranscript.d.ts.map +1 -0
- package/lib/BasicTranscript.js +735 -0
- package/lib/BasicTypingIndicator.d.ts +6 -0
- package/lib/BasicTypingIndicator.d.ts.map +1 -0
- package/lib/BasicTypingIndicator.js +54 -0
- package/lib/BasicWebChat.d.ts +9 -0
- package/lib/BasicWebChat.d.ts.map +1 -0
- package/lib/BasicWebChat.js +90 -0
- package/lib/Composer.d.ts +50 -0
- package/lib/Composer.d.ts.map +1 -0
- package/lib/Composer.js +336 -0
- package/lib/ConnectivityStatus/Assets/ErrorNotificationIcon.js +47 -0
- package/lib/ConnectivityStatus/Assets/SpinnerAnimation.js +32 -0
- package/lib/ConnectivityStatus/Assets/WarningNotificationIcon.js +47 -0
- package/lib/ConnectivityStatus/Connected.js +20 -0
- package/lib/ConnectivityStatus/Connecting.js +82 -0
- package/lib/ConnectivityStatus/FailedToConnect.js +41 -0
- package/lib/ConnectivityStatus/JavaScriptError.js +41 -0
- package/lib/Dictation.js +158 -0
- package/lib/ErrorBox.d.ts +8 -0
- package/lib/ErrorBox.d.ts.map +1 -0
- package/lib/ErrorBox.js +42 -0
- package/lib/LinkDefinition/LinkDefinitionItem.d.ts +12 -0
- package/lib/LinkDefinition/LinkDefinitionItem.d.ts.map +1 -0
- package/lib/LinkDefinition/LinkDefinitionItem.js +57 -0
- package/lib/LinkDefinition/LinkDefinitions.d.ts +12 -0
- package/lib/LinkDefinition/LinkDefinitions.d.ts.map +1 -0
- package/lib/LinkDefinition/LinkDefinitions.js +69 -0
- package/lib/LinkDefinition/index.d.ts +4 -0
- package/lib/LinkDefinition/index.d.ts.map +1 -0
- package/lib/LinkDefinition/index.js +21 -0
- package/lib/LinkDefinition/private/Badge.d.ts +7 -0
- package/lib/LinkDefinition/private/Badge.d.ts.map +1 -0
- package/lib/LinkDefinition/private/Badge.js +20 -0
- package/lib/LinkDefinition/private/Chevron.d.ts +4 -0
- package/lib/LinkDefinition/private/Chevron.d.ts.map +1 -0
- package/lib/LinkDefinition/private/Chevron.js +27 -0
- package/lib/LinkDefinition/private/ItemBody.d.ts +11 -0
- package/lib/LinkDefinition/private/ItemBody.d.ts.map +1 -0
- package/lib/LinkDefinition/private/ItemBody.js +41 -0
- package/lib/LinkDefinition/private/OpenInNewWindowIcon.d.ts +7 -0
- package/lib/LinkDefinition/private/OpenInNewWindowIcon.d.ts.map +1 -0
- package/lib/LinkDefinition/private/OpenInNewWindowIcon.js +23 -0
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.d.ts +2 -0
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.d.ts.map +1 -0
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.js +24 -0
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.spec.d.ts +2 -0
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.spec.d.ts.map +1 -0
- package/lib/LiveRegion/LiveRegionActivity.d.ts +9 -0
- package/lib/LiveRegion/LiveRegionActivity.d.ts.map +1 -0
- package/lib/LiveRegion/LiveRegionActivity.js +70 -0
- package/lib/LiveRegion/private/LiveRegionAttachments.d.ts +11 -0
- package/lib/LiveRegion/private/LiveRegionAttachments.d.ts.map +1 -0
- package/lib/LiveRegion/private/LiveRegionAttachments.js +53 -0
- package/lib/LiveRegion/private/LiveRegionSuggestedActions.d.ts +8 -0
- package/lib/LiveRegion/private/LiveRegionSuggestedActions.d.ts.map +1 -0
- package/lib/LiveRegion/private/LiveRegionSuggestedActions.js +37 -0
- 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 +95 -0
- 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 +13 -0
- package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.d.ts +3 -0
- package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.d.ts.map +1 -0
- package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.js +41 -0
- package/lib/Middleware/ActivityStatus/createTimestampMiddleware.d.ts +3 -0
- package/lib/Middleware/ActivityStatus/createTimestampMiddleware.d.ts.map +1 -0
- package/lib/Middleware/ActivityStatus/createTimestampMiddleware.js +48 -0
- package/lib/Middleware/AttachmentForScreenReader/AudioAttachment.js +18 -0
- package/lib/Middleware/AttachmentForScreenReader/FileAttachment.js +28 -0
- package/lib/Middleware/AttachmentForScreenReader/ImageAttachment.js +18 -0
- package/lib/Middleware/AttachmentForScreenReader/TextAttachment.js +28 -0
- package/lib/Middleware/AttachmentForScreenReader/VideoAttachment.js +18 -0
- 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 +61 -0
- 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 +82 -0
- package/lib/Middleware/CardAction/createCoreMiddleware.js +108 -0
- package/lib/Middleware/ScrollToEndButton/ScrollToEndButton.js +52 -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 +27 -0
- 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 +47 -0
- package/lib/ReactWebChat.d.ts +42 -0
- package/lib/ReactWebChat.d.ts.map +1 -0
- package/lib/ReactWebChat.js +52 -0
- package/lib/ScreenReaderText.d.ts +9 -0
- package/lib/ScreenReaderText.d.ts.map +1 -0
- package/lib/ScreenReaderText.js +58 -0
- package/lib/SendBox/Assets/MicrophoneIcon.js +25 -0
- package/lib/SendBox/Assets/SendIcon.js +45 -0
- package/lib/SendBox/AutoResizeTextArea.d.ts +24 -0
- package/lib/SendBox/AutoResizeTextArea.d.ts.map +1 -0
- package/lib/SendBox/AutoResizeTextArea.js +113 -0
- package/lib/SendBox/BasicSendBox.d.ts +9 -0
- package/lib/SendBox/BasicSendBox.d.ts.map +1 -0
- package/lib/SendBox/BasicSendBox.js +123 -0
- package/lib/SendBox/DictationInterims.d.ts +7 -0
- package/lib/SendBox/DictationInterims.d.ts.map +1 -0
- package/lib/SendBox/DictationInterims.js +68 -0
- package/lib/SendBox/IconButton.d.ts +11 -0
- package/lib/SendBox/IconButton.d.ts.map +1 -0
- package/lib/SendBox/IconButton.js +73 -0
- package/lib/SendBox/MicrophoneButton.d.ts +10 -0
- package/lib/SendBox/MicrophoneButton.d.ts.map +1 -0
- package/lib/SendBox/MicrophoneButton.js +160 -0
- package/lib/SendBox/SendButton.d.ts +7 -0
- package/lib/SendBox/SendButton.d.ts.map +1 -0
- package/lib/SendBox/SendButton.js +53 -0
- package/lib/SendBox/SuggestedAction.d.ts +16 -0
- package/lib/SendBox/SuggestedAction.d.ts.map +1 -0
- package/lib/SendBox/SuggestedAction.js +166 -0
- package/lib/SendBox/SuggestedActions.d.ts +7 -0
- package/lib/SendBox/SuggestedActions.d.ts.map +1 -0
- package/lib/SendBox/SuggestedActions.js +256 -0
- package/lib/SendBox/TextBox.d.ts +24 -0
- package/lib/SendBox/TextBox.d.ts.map +1 -0
- package/lib/SendBox/TextBox.js +252 -0
- package/lib/SendBox/createMiddleware.d.ts +4 -0
- package/lib/SendBox/createMiddleware.d.ts.map +1 -0
- package/lib/SendBox/createMiddleware.js +38 -0
- package/lib/SendBoxToolbar/Assets/AttachmentIcon.d.ts +7 -0
- package/lib/SendBoxToolbar/Assets/AttachmentIcon.d.ts.map +1 -0
- package/lib/SendBoxToolbar/Assets/AttachmentIcon.js +63 -0
- package/lib/SendBoxToolbar/BasicSendBoxToolbar.d.ts +6 -0
- package/lib/SendBoxToolbar/BasicSendBoxToolbar.d.ts.map +1 -0
- package/lib/SendBoxToolbar/BasicSendBoxToolbar.js +32 -0
- package/lib/SendBoxToolbar/UploadButton.d.ts +7 -0
- package/lib/SendBoxToolbar/UploadButton.d.ts.map +1 -0
- package/lib/SendBoxToolbar/UploadButton.js +156 -0
- package/lib/SendBoxToolbar/createMiddleware.d.ts +4 -0
- package/lib/SendBoxToolbar/createMiddleware.d.ts.map +1 -0
- package/lib/SendBoxToolbar/createMiddleware.js +20 -0
- package/lib/Styles/CSSTokens.d.ts +16 -0
- package/lib/Styles/CSSTokens.d.ts.map +1 -0
- package/lib/Styles/CSSTokens.js +19 -0
- package/lib/Styles/CustomPropertyNames.d.ts +13 -0
- package/lib/Styles/CustomPropertyNames.d.ts.map +1 -0
- package/lib/Styles/CustomPropertyNames.js +24 -0
- package/lib/Styles/StyleSet/Activities.d.ts +5 -0
- package/lib/Styles/StyleSet/Activities.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Activities.js +13 -0
- package/lib/Styles/StyleSet/AudioAttachment.d.ts +6 -0
- package/lib/Styles/StyleSet/AudioAttachment.d.ts.map +1 -0
- package/lib/Styles/StyleSet/AudioAttachment.js +15 -0
- package/lib/Styles/StyleSet/AudioContent.d.ts +4 -0
- package/lib/Styles/StyleSet/AudioContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/AudioContent.js +12 -0
- package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts +37 -0
- package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts.map +1 -0
- package/lib/Styles/StyleSet/AutoResizeTextArea.js +45 -0
- package/lib/Styles/StyleSet/Avatar.d.ts +9 -0
- package/lib/Styles/StyleSet/Avatar.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Avatar.js +18 -0
- package/lib/Styles/StyleSet/BasicTranscript.d.ts +85 -0
- package/lib/Styles/StyleSet/BasicTranscript.d.ts.map +1 -0
- package/lib/Styles/StyleSet/BasicTranscript.js +110 -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 +153 -0
- package/lib/Styles/StyleSet/CSSCustomProperties.d.ts +16 -0
- package/lib/Styles/StyleSet/CSSCustomProperties.d.ts.map +1 -0
- package/lib/Styles/StyleSet/CSSCustomProperties.js +27 -0
- 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 +90 -0
- 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 +57 -0
- package/lib/Styles/StyleSet/CarouselFlipper.d.ts +27 -0
- package/lib/Styles/StyleSet/CarouselFlipper.d.ts.map +1 -0
- package/lib/Styles/StyleSet/CarouselFlipper.js +42 -0
- package/lib/Styles/StyleSet/CitationModalDialog.d.ts +8 -0
- package/lib/Styles/StyleSet/CitationModalDialog.d.ts.map +1 -0
- package/lib/Styles/StyleSet/CitationModalDialog.js +16 -0
- package/lib/Styles/StyleSet/ConnectivityNotification.d.ts +13 -0
- package/lib/Styles/StyleSet/ConnectivityNotification.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ConnectivityNotification.js +26 -0
- package/lib/Styles/StyleSet/Constants.d.ts +6 -0
- package/lib/Styles/StyleSet/Constants.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Constants.js +15 -0
- package/lib/Styles/StyleSet/DictationInterims.d.ts +13 -0
- package/lib/Styles/StyleSet/DictationInterims.d.ts.map +1 -0
- package/lib/Styles/StyleSet/DictationInterims.js +22 -0
- package/lib/Styles/StyleSet/ErrorBox.d.ts +33 -0
- package/lib/Styles/StyleSet/ErrorBox.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ErrorBox.js +43 -0
- package/lib/Styles/StyleSet/ErrorNotification.d.ts +23 -0
- package/lib/Styles/StyleSet/ErrorNotification.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ErrorNotification.js +36 -0
- package/lib/Styles/StyleSet/FileContent.d.ts +32 -0
- package/lib/Styles/StyleSet/FileContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/FileContent.js +43 -0
- package/lib/Styles/StyleSet/ImageAvatar.d.ts +7 -0
- package/lib/Styles/StyleSet/ImageAvatar.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ImageAvatar.js +15 -0
- package/lib/Styles/StyleSet/InitialsAvatar.d.ts +19 -0
- package/lib/Styles/StyleSet/InitialsAvatar.d.ts.map +1 -0
- package/lib/Styles/StyleSet/InitialsAvatar.js +31 -0
- package/lib/Styles/StyleSet/KeyboardHelp.d.ts +152 -0
- package/lib/Styles/StyleSet/KeyboardHelp.d.ts.map +1 -0
- package/lib/Styles/StyleSet/KeyboardHelp.js +168 -0
- package/lib/Styles/StyleSet/LinkDefinitions.d.ts +165 -0
- package/lib/Styles/StyleSet/LinkDefinitions.d.ts.map +1 -0
- package/lib/Styles/StyleSet/LinkDefinitions.js +180 -0
- package/lib/Styles/StyleSet/MicrophoneButton.d.ts +13 -0
- package/lib/Styles/StyleSet/MicrophoneButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/MicrophoneButton.js +21 -0
- package/lib/Styles/StyleSet/ModalDialog.d.ts +94 -0
- package/lib/Styles/StyleSet/ModalDialog.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ModalDialog.js +98 -0
- package/lib/Styles/StyleSet/RenderMarkdown.d.ts +51 -0
- package/lib/Styles/StyleSet/RenderMarkdown.d.ts.map +1 -0
- package/lib/Styles/StyleSet/RenderMarkdown.js +67 -0
- package/lib/Styles/StyleSet/Root.d.ts +8 -0
- package/lib/Styles/StyleSet/Root.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Root.js +19 -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 +55 -0
- package/lib/Styles/StyleSet/SendBox.d.ts +24 -0
- package/lib/Styles/StyleSet/SendBox.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SendBox.js +37 -0
- package/lib/Styles/StyleSet/SendBoxButton.d.ts +79 -0
- package/lib/Styles/StyleSet/SendBoxButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SendBoxButton.js +112 -0
- package/lib/Styles/StyleSet/SendBoxTextBox.d.ts +41 -0
- package/lib/Styles/StyleSet/SendBoxTextBox.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SendBoxTextBox.js +57 -0
- package/lib/Styles/StyleSet/SendStatus.d.ts +19 -0
- package/lib/Styles/StyleSet/SendStatus.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SendStatus.js +29 -0
- package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts +11 -0
- package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SingleAttachmentActivity.js +21 -0
- package/lib/Styles/StyleSet/SlottedActivityStatus.d.ts +12 -0
- package/lib/Styles/StyleSet/SlottedActivityStatus.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SlottedActivityStatus.js +22 -0
- package/lib/Styles/StyleSet/SpinnerAnimation.d.ts +15 -0
- package/lib/Styles/StyleSet/SpinnerAnimation.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SpinnerAnimation.js +34 -0
- package/lib/Styles/StyleSet/StackedLayout.d.ts +63 -0
- package/lib/Styles/StyleSet/StackedLayout.d.ts.map +1 -0
- package/lib/Styles/StyleSet/StackedLayout.js +77 -0
- package/lib/Styles/StyleSet/SuggestedAction.d.ts +94 -0
- package/lib/Styles/StyleSet/SuggestedAction.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SuggestedAction.js +152 -0
- package/lib/Styles/StyleSet/SuggestedActions.d.ts +139 -0
- package/lib/Styles/StyleSet/SuggestedActions.d.ts.map +1 -0
- package/lib/Styles/StyleSet/SuggestedActions.js +165 -0
- package/lib/Styles/StyleSet/TextContent.d.ts +24 -0
- package/lib/Styles/StyleSet/TextContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/TextContent.js +34 -0
- package/lib/Styles/StyleSet/ThumbButton.d.ts +32 -0
- package/lib/Styles/StyleSet/ThumbButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/ThumbButton.js +44 -0
- package/lib/Styles/StyleSet/Toast.d.ts +65 -0
- package/lib/Styles/StyleSet/Toast.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Toast.js +83 -0
- package/lib/Styles/StyleSet/Toaster.d.ts +111 -0
- package/lib/Styles/StyleSet/Toaster.d.ts.map +1 -0
- package/lib/Styles/StyleSet/Toaster.js +137 -0
- package/lib/Styles/StyleSet/TypingAnimation.d.ts +8 -0
- package/lib/Styles/StyleSet/TypingAnimation.d.ts.map +1 -0
- package/lib/Styles/StyleSet/TypingAnimation.js +26 -0
- package/lib/Styles/StyleSet/TypingIndicator.d.ts +11 -0
- package/lib/Styles/StyleSet/TypingIndicator.d.ts.map +1 -0
- package/lib/Styles/StyleSet/TypingIndicator.js +19 -0
- package/lib/Styles/StyleSet/UploadButton.d.ts +14 -0
- package/lib/Styles/StyleSet/UploadButton.d.ts.map +1 -0
- package/lib/Styles/StyleSet/UploadButton.js +27 -0
- package/lib/Styles/StyleSet/VideoAttachment.d.ts +2 -0
- package/lib/Styles/StyleSet/VideoAttachment.d.ts.map +1 -0
- package/lib/Styles/StyleSet/VideoAttachment.js +10 -0
- package/lib/Styles/StyleSet/VideoContent.d.ts +6 -0
- package/lib/Styles/StyleSet/VideoContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/VideoContent.js +14 -0
- package/lib/Styles/StyleSet/VimeoContent.d.ts +7 -0
- package/lib/Styles/StyleSet/VimeoContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/VimeoContent.js +15 -0
- package/lib/Styles/StyleSet/WarningNotification.d.ts +22 -0
- package/lib/Styles/StyleSet/WarningNotification.d.ts.map +1 -0
- package/lib/Styles/StyleSet/WarningNotification.js +37 -0
- package/lib/Styles/StyleSet/YouTubeContent.d.ts +7 -0
- package/lib/Styles/StyleSet/YouTubeContent.d.ts.map +1 -0
- package/lib/Styles/StyleSet/YouTubeContent.js +15 -0
- package/lib/Styles/createStyleSet.d.ts +1803 -0
- package/lib/Styles/createStyleSet.d.ts.map +1 -0
- package/lib/Styles/createStyleSet.js +121 -0
- package/lib/Styles/mirrorStyle.js +40 -0
- package/lib/Toast/CheckMarkIcon.js +36 -0
- package/lib/Toast/CollapseIcon.js +32 -0
- package/lib/Toast/DismissIcon.js +32 -0
- package/lib/Toast/ExclamationMarkIcon.js +34 -0
- package/lib/Toast/ExpandIcon.js +32 -0
- package/lib/Toast/NotificationIcon.js +46 -0
- package/lib/Toast/createToastMiddleware.d.ts +4 -0
- package/lib/Toast/createToastMiddleware.d.ts.map +1 -0
- package/lib/Toast/createToastMiddleware.js +26 -0
- package/lib/Transcript/ActivityRow.d.ts +9 -0
- package/lib/Transcript/ActivityRow.d.ts.map +1 -0
- package/lib/Transcript/ActivityRow.js +137 -0
- package/lib/Transcript/FocusTrap.d.ts +9 -0
- package/lib/Transcript/FocusTrap.d.ts.map +1 -0
- package/lib/Transcript/FocusTrap.js +76 -0
- package/lib/Transcript/KeyboardHelp.d.ts +4 -0
- package/lib/Transcript/KeyboardHelp.d.ts.map +1 -0
- package/lib/Transcript/KeyboardHelp.js +562 -0
- package/lib/Transcript/LiveRegion/SendFailed.d.ts +14 -0
- package/lib/Transcript/LiveRegion/SendFailed.d.ts.map +1 -0
- package/lib/Transcript/LiveRegion/SendFailed.js +90 -0
- package/lib/Transcript/LiveRegion/isPresentational.d.ts +9 -0
- package/lib/Transcript/LiveRegion/isPresentational.d.ts.map +1 -0
- package/lib/Transcript/LiveRegion/isPresentational.js +30 -0
- package/lib/Transcript/LiveRegionTranscript.d.ts +8 -0
- package/lib/Transcript/LiveRegionTranscript.d.ts.map +1 -0
- package/lib/Transcript/LiveRegionTranscript.js +178 -0
- package/lib/Transcript/types.d.ts +2 -0
- package/lib/Transcript/types.d.ts.map +1 -0
- package/lib/Transcript/types.js +2 -0
- package/lib/Transcript/useActivityAccessibleName.d.ts +11 -0
- package/lib/Transcript/useActivityAccessibleName.d.ts.map +1 -0
- package/lib/Transcript/useActivityAccessibleName.js +103 -0
- package/lib/Transcript/useTypistNames.d.ts +3 -0
- package/lib/Transcript/useTypistNames.d.ts.map +1 -0
- package/lib/Transcript/useTypistNames.js +50 -0
- package/lib/TranscriptActivity.d.ts +17 -0
- package/lib/TranscriptActivity.d.ts.map +1 -0
- package/lib/TranscriptActivity.js +48 -0
- package/lib/Utils/AccessKeySink/Surface.js +74 -0
- package/lib/Utils/AccessKeySink/internal/Context.js +11 -0
- package/lib/Utils/AccessKeySink/internal/useContext.js +13 -0
- package/lib/Utils/AccessKeySink/useFocusAccessKeyEffect.js +34 -0
- package/lib/Utils/AccessibleButton.d.ts +11 -0
- package/lib/Utils/AccessibleButton.d.ts.map +1 -0
- package/lib/Utils/AccessibleButton.js +78 -0
- package/lib/Utils/AccessibleInputText.d.ts +22 -0
- package/lib/Utils/AccessibleInputText.d.ts.map +1 -0
- package/lib/Utils/AccessibleInputText.js +114 -0
- package/lib/Utils/AccessibleTextArea.d.ts +20 -0
- package/lib/Utils/AccessibleTextArea.d.ts.map +1 -0
- package/lib/Utils/AccessibleTextArea.js +105 -0
- package/lib/Utils/CroppedImage.js +61 -0
- package/lib/Utils/FocusRedirector.d.ts +9 -0
- package/lib/Utils/FocusRedirector.d.ts.map +1 -0
- package/lib/Utils/FocusRedirector.js +61 -0
- package/lib/Utils/InlineMarkdown.js +166 -0
- package/lib/Utils/JSONLinkedData/BlankNode.d.ts +15 -0
- package/lib/Utils/JSONLinkedData/BlankNode.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/BlankNode.js +2 -0
- package/lib/Utils/JSONLinkedData/__snapshots__/dereferenceBlankNodes.spec.ts.snap +92 -0
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.d.ts +16 -0
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.js +96 -0
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.spec.d.ts +2 -0
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.spec.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.d.ts +10 -0
- package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.js +22 -0
- package/lib/Utils/JSONLinkedData/isBlankNode.d.ts +10 -0
- package/lib/Utils/JSONLinkedData/isBlankNode.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/isBlankNode.js +22 -0
- package/lib/Utils/JSONLinkedData/isBlankNode.spec.d.ts +2 -0
- package/lib/Utils/JSONLinkedData/isBlankNode.spec.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.d.ts +10 -0
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.js +21 -0
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.d.ts +2 -0
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/visitOnce.d.ts +2 -0
- package/lib/Utils/JSONLinkedData/visitOnce.d.ts.map +1 -0
- package/lib/Utils/JSONLinkedData/visitOnce.js +17 -0
- package/lib/Utils/LocalizedString.d.ts +26 -0
- package/lib/Utils/LocalizedString.d.ts.map +1 -0
- package/lib/Utils/LocalizedString.js +138 -0
- package/lib/Utils/TypeFocusSink/Context.js +14 -0
- package/lib/Utils/TypeFocusSink/FocusBox.js +91 -0
- 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 +27 -0
- package/lib/Utils/TypeFocusSink/index.js +18 -0
- package/lib/Utils/TypeFocusSink/inputtableKey.d.ts +2 -0
- package/lib/Utils/TypeFocusSink/inputtableKey.d.ts.map +1 -0
- package/lib/Utils/TypeFocusSink/inputtableKey.js +28 -0
- package/lib/Utils/TypeFocusSink/navigableEvent.js +59 -0
- package/lib/Utils/activityAltText.d.ts +8 -0
- package/lib/Utils/activityAltText.d.ts.map +1 -0
- package/lib/Utils/activityAltText.js +79 -0
- package/lib/Utils/addTargetBlankToHyperlinksMarkdown.js +34 -0
- package/lib/Utils/betterLinks.d.ts +28 -0
- package/lib/Utils/betterLinks.d.ts.map +1 -0
- package/lib/Utils/betterLinks.js +142 -0
- package/lib/Utils/computeSuggestedActionText.d.ts +3 -0
- package/lib/Utils/computeSuggestedActionText.d.ts.map +1 -0
- package/lib/Utils/computeSuggestedActionText.js +24 -0
- package/lib/Utils/createCSSKey.js +16 -0
- package/lib/Utils/createCustomEvent.js +34 -0
- package/lib/Utils/detectBrowser.js +27 -0
- package/lib/Utils/downscaleImageToDataURL/WorkerJob.d.ts +16 -0
- package/lib/Utils/downscaleImageToDataURL/WorkerJob.d.ts.map +1 -0
- package/lib/Utils/downscaleImageToDataURL/WorkerJob.js +2 -0
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.d.ts +2 -0
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.d.ts.map +1 -0
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.js +90 -0
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.d.ts +4 -0
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.d.ts.map +1 -0
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.js +198 -0
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.worker.js +96 -0
- package/lib/Utils/downscaleImageToDataURL/index.d.ts +2 -0
- package/lib/Utils/downscaleImageToDataURL/index.d.ts.map +1 -0
- package/lib/Utils/downscaleImageToDataURL/index.js +44 -0
- package/lib/Utils/filterMap.js +28 -0
- package/lib/Utils/findAncestor.d.ts +2 -0
- package/lib/Utils/findAncestor.d.ts.map +1 -0
- package/lib/Utils/findAncestor.js +15 -0
- package/lib/Utils/firstTabbableDescendant.js +40 -0
- package/lib/Utils/getActivityUniqueId.d.ts +3 -0
- package/lib/Utils/getActivityUniqueId.d.ts.map +1 -0
- package/lib/Utils/getActivityUniqueId.js +11 -0
- package/lib/Utils/intersectionOf.d.ts +5 -0
- package/lib/Utils/intersectionOf.d.ts.map +1 -0
- package/lib/Utils/intersectionOf.js +27 -0
- package/lib/Utils/isZeroOrPositive.d.ts +5 -0
- package/lib/Utils/isZeroOrPositive.d.ts.map +1 -0
- package/lib/Utils/isZeroOrPositive.js +14 -0
- package/lib/Utils/mapMap.js +27 -0
- package/lib/Utils/parseDocumentFromString.d.ts +2 -0
- package/lib/Utils/parseDocumentFromString.d.ts.map +1 -0
- package/lib/Utils/parseDocumentFromString.js +11 -0
- package/lib/Utils/randomId.js +15 -0
- package/lib/Utils/readDataURIToBlob.js +44 -0
- package/lib/Utils/removeInline.js +18 -0
- package/lib/Utils/scrollIntoViewWithBlockNearest.d.ts +7 -0
- package/lib/Utils/scrollIntoViewWithBlockNearest.d.ts.map +1 -0
- package/lib/Utils/scrollIntoViewWithBlockNearest.js +38 -0
- package/lib/Utils/serializeDocumentIntoString.d.ts +2 -0
- package/lib/Utils/serializeDocumentIntoString.d.ts.map +1 -0
- package/lib/Utils/serializeDocumentIntoString.js +27 -0
- package/lib/Utils/shallowEquals.js +21 -0
- package/lib/Utils/singleToArray.d.ts +2 -0
- package/lib/Utils/singleToArray.d.ts.map +1 -0
- package/lib/Utils/singleToArray.js +10 -0
- package/lib/Utils/supportPseudoClass.d.ts +2 -0
- package/lib/Utils/supportPseudoClass.d.ts.map +1 -0
- package/lib/Utils/supportPseudoClass.js +21 -0
- package/lib/Utils/tabbableElements.d.ts +2 -0
- package/lib/Utils/tabbableElements.d.ts.map +1 -0
- package/lib/Utils/tabbableElements.js +20 -0
- package/lib/Utils/textFormatToContentType.js +17 -0
- package/lib/Utils/updateMarkdownAttrs.js +16 -0
- package/lib/Utils/walkMarkdownTokens.js +19 -0
- package/lib/hooks/index.d.ts +22 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +152 -0
- package/lib/hooks/internal/BypassSpeechSynthesisPonyfill.js +278 -0
- package/lib/hooks/internal/UITracker.js +39 -0
- package/lib/hooks/internal/WebChatUIContext.d.ts +8 -0
- package/lib/hooks/internal/WebChatUIContext.d.ts.map +1 -0
- package/lib/hooks/internal/WebChatUIContext.js +11 -0
- package/lib/hooks/internal/createWaitUntilable.d.ts +5 -0
- package/lib/hooks/internal/createWaitUntilable.d.ts.map +1 -0
- package/lib/hooks/internal/createWaitUntilable.js +50 -0
- package/lib/hooks/internal/createWaitUntilable.spec.d.ts +2 -0
- package/lib/hooks/internal/createWaitUntilable.spec.d.ts.map +1 -0
- package/lib/hooks/internal/private/createOnEventShim.d.ts +5 -0
- package/lib/hooks/internal/private/createOnEventShim.d.ts.map +1 -0
- package/lib/hooks/internal/private/createOnEventShim.js +25 -0
- package/lib/hooks/internal/private/createOnEventShim.spec.d.ts +2 -0
- package/lib/hooks/internal/private/createOnEventShim.spec.d.ts.map +1 -0
- package/lib/hooks/internal/useChanged.d.ts +9 -0
- package/lib/hooks/internal/useChanged.d.ts.map +1 -0
- package/lib/hooks/internal/useChanged.js +21 -0
- package/lib/hooks/internal/useDispatchScrollPosition.js +12 -0
- package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.d.ts +2 -0
- package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.d.ts.map +1 -0
- package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.js +12 -0
- package/lib/hooks/internal/useEnterKeyHint.js +18 -0
- package/lib/hooks/internal/useFocusVisible.d.ts +3 -0
- package/lib/hooks/internal/useFocusVisible.d.ts.map +1 -0
- package/lib/hooks/internal/useFocusVisible.js +37 -0
- package/lib/hooks/internal/useFocusWithin.d.ts +3 -0
- package/lib/hooks/internal/useFocusWithin.d.ts.map +1 -0
- package/lib/hooks/internal/useFocusWithin.js +38 -0
- package/lib/hooks/internal/useForceRender.js +24 -0
- package/lib/hooks/internal/useForceRenderAtInterval.d.ts +3 -0
- package/lib/hooks/internal/useForceRenderAtInterval.d.ts.map +1 -0
- package/lib/hooks/internal/useForceRenderAtInterval.js +57 -0
- package/lib/hooks/internal/useInternalMarkdownIt.js +14 -0
- package/lib/hooks/internal/useInternalRenderMarkdownInline.js +16 -0
- package/lib/hooks/internal/useLocalizeAccessKey.d.ts +2 -0
- package/lib/hooks/internal/useLocalizeAccessKey.d.ts.map +1 -0
- package/lib/hooks/internal/useLocalizeAccessKey.js +38 -0
- package/lib/hooks/internal/useMemoWithPrevious.d.ts +3 -0
- package/lib/hooks/internal/useMemoWithPrevious.d.ts.map +1 -0
- package/lib/hooks/internal/useMemoWithPrevious.js +20 -0
- package/lib/hooks/internal/useMemoized.d.ts +11 -0
- package/lib/hooks/internal/useMemoized.d.ts.map +1 -0
- package/lib/hooks/internal/useMemoized.js +82 -0
- package/lib/hooks/internal/useMemoized.spec.jsx +159 -0
- package/lib/hooks/internal/useNavigatorPlatform.js +31 -0
- package/lib/hooks/internal/useNonce.js +14 -0
- package/lib/hooks/internal/useObserveFocusVisible.d.ts +3 -0
- package/lib/hooks/internal/useObserveFocusVisible.d.ts.map +1 -0
- package/lib/hooks/internal/useObserveFocusVisible.js +201 -0
- package/lib/hooks/internal/usePrevious.d.ts +2 -0
- package/lib/hooks/internal/usePrevious.d.ts.map +1 -0
- package/lib/hooks/internal/usePrevious.js +17 -0
- package/lib/hooks/internal/useRegisterFocusTranscript.js +27 -0
- package/lib/hooks/internal/useRegisterScrollTo.js +27 -0
- package/lib/hooks/internal/useRegisterScrollToEnd.js +25 -0
- package/lib/hooks/internal/useReplaceEmoticon.js +58 -0
- package/lib/hooks/internal/useResumeAudioContext.d.ts +2 -0
- package/lib/hooks/internal/useResumeAudioContext.d.ts.map +1 -0
- package/lib/hooks/internal/useResumeAudioContext.js +23 -0
- package/lib/hooks/internal/useSendBoxFocusRef.js +12 -0
- package/lib/hooks/internal/useSettableDictateAbortable.js +15 -0
- package/lib/hooks/internal/useStateRef.d.ts +3 -0
- package/lib/hooks/internal/useStateRef.d.ts.map +1 -0
- package/lib/hooks/internal/useStateRef.js +30 -0
- package/lib/hooks/internal/useStyleToEmotionObject.js +12 -0
- package/lib/hooks/internal/useSuggestedActionsAccessKey.js +14 -0
- package/lib/hooks/internal/useTimer.d.ts +5 -0
- package/lib/hooks/internal/useTimer.d.ts.map +1 -0
- package/lib/hooks/internal/useTimer.js +46 -0
- package/lib/hooks/internal/useTranscriptActivityElementsRef.js +12 -0
- package/lib/hooks/internal/useTranscriptFocusRef.js +12 -0
- 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 +19 -0
- package/lib/hooks/internal/useValueRef.d.ts +3 -0
- package/lib/hooks/internal/useValueRef.d.ts.map +1 -0
- package/lib/hooks/internal/useValueRef.js +24 -0
- package/lib/hooks/internal/useWebChatUIContext.js +17 -0
- package/lib/hooks/sendBoxFocus.d.ts +7 -0
- package/lib/hooks/sendBoxFocus.d.ts.map +1 -0
- package/lib/hooks/sendBoxFocus.js +13 -0
- package/lib/hooks/transcriptScrollRelative.d.ts +7 -0
- package/lib/hooks/transcriptScrollRelative.d.ts.map +1 -0
- package/lib/hooks/transcriptScrollRelative.js +13 -0
- package/lib/hooks/useDictateAbortable.d.ts +2 -0
- package/lib/hooks/useDictateAbortable.d.ts.map +1 -0
- package/lib/hooks/useDictateAbortable.js +22 -0
- package/lib/hooks/useFocus.d.ts +2 -0
- package/lib/hooks/useFocus.d.ts.map +1 -0
- package/lib/hooks/useFocus.js +65 -0
- package/lib/hooks/useMakeThumbnail.d.ts +2 -0
- package/lib/hooks/useMakeThumbnail.d.ts.map +1 -0
- package/lib/hooks/useMakeThumbnail.js +74 -0
- package/lib/hooks/useObserveScrollPosition.d.ts +3 -0
- package/lib/hooks/useObserveScrollPosition.d.ts.map +1 -0
- package/lib/hooks/useObserveScrollPosition.js +31 -0
- package/lib/hooks/useObserveTranscriptFocus.d.ts +5 -0
- package/lib/hooks/useObserveTranscriptFocus.d.ts.map +1 -0
- package/lib/hooks/useObserveTranscriptFocus.js +31 -0
- package/lib/hooks/useRenderMarkdownAsHTML.d.ts +5 -0
- package/lib/hooks/useRenderMarkdownAsHTML.d.ts.map +1 -0
- package/lib/hooks/useRenderMarkdownAsHTML.js +62 -0
- package/lib/hooks/useScrollDown.d.ts +4 -0
- package/lib/hooks/useScrollDown.d.ts.map +1 -0
- package/lib/hooks/useScrollDown.js +20 -0
- package/lib/hooks/useScrollTo.d.ts +5 -0
- package/lib/hooks/useScrollTo.d.ts.map +1 -0
- package/lib/hooks/useScrollTo.js +22 -0
- package/lib/hooks/useScrollToEnd.d.ts +2 -0
- package/lib/hooks/useScrollToEnd.d.ts.map +1 -0
- package/lib/hooks/useScrollToEnd.js +21 -0
- package/lib/hooks/useScrollUp.d.ts +4 -0
- package/lib/hooks/useScrollUp.d.ts.map +1 -0
- package/lib/hooks/useScrollUp.js +20 -0
- package/lib/hooks/useSendFiles.d.ts +5 -0
- package/lib/hooks/useSendFiles.d.ts.map +1 -0
- package/lib/hooks/useSendFiles.js +63 -0
- package/lib/hooks/useSendMessage.d.ts +8 -0
- package/lib/hooks/useSendMessage.d.ts.map +1 -0
- package/lib/hooks/useSendMessage.js +102 -0
- package/lib/hooks/useStyleSet.d.ts +3 -0
- package/lib/hooks/useStyleSet.d.ts.map +1 -0
- package/lib/hooks/useStyleSet.js +13 -0
- package/lib/hooks/useWebSpeechPonyfill.d.ts +3 -0
- package/lib/hooks/useWebSpeechPonyfill.d.ts.map +1 -0
- package/lib/hooks/useWebSpeechPonyfill.js +12 -0
- package/lib/index.d.ts +330 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +164 -0
- package/lib/internal.d.ts +4 -0
- package/lib/internal.d.ts.map +1 -0
- package/lib/internal.js +21 -0
- package/lib/providers/ActivityTree/ActivityTreeComposer.d.ts +7 -0
- package/lib/providers/ActivityTree/ActivityTreeComposer.d.ts.map +1 -0
- package/lib/providers/ActivityTree/ActivityTreeComposer.js +90 -0
- package/lib/providers/ActivityTree/private/Context.d.ts +9 -0
- package/lib/providers/ActivityTree/private/Context.d.ts.map +1 -0
- package/lib/providers/ActivityTree/private/Context.js +10 -0
- package/lib/providers/ActivityTree/private/types.d.ts +10 -0
- package/lib/providers/ActivityTree/private/types.d.ts.map +1 -0
- package/lib/providers/ActivityTree/private/types.js +2 -0
- package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.d.ts +4 -0
- package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.d.ts.map +1 -0
- package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.js +36 -0
- package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.d.ts +5 -0
- package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.d.ts.map +1 -0
- package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.js +147 -0
- package/lib/providers/ActivityTree/private/useContext.d.ts +3 -0
- package/lib/providers/ActivityTree/private/useContext.d.ts.map +1 -0
- package/lib/providers/ActivityTree/private/useContext.js +18 -0
- package/lib/providers/ActivityTree/useActivityTreeWithRenderer.d.ts +8 -0
- package/lib/providers/ActivityTree/useActivityTreeWithRenderer.d.ts.map +1 -0
- package/lib/providers/ActivityTree/useActivityTreeWithRenderer.js +14 -0
- package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.d.ts +37 -0
- package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.js +145 -0
- package/lib/providers/LiveRegionTwin/private/Context.d.ts +10 -0
- package/lib/providers/LiveRegionTwin/private/Context.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/private/Context.js +11 -0
- package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.d.ts +12 -0
- package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.js +77 -0
- package/lib/providers/LiveRegionTwin/private/types.d.ts +8 -0
- package/lib/providers/LiveRegionTwin/private/types.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/private/types.js +2 -0
- package/lib/providers/LiveRegionTwin/private/useContext.d.ts +3 -0
- package/lib/providers/LiveRegionTwin/private/useContext.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/private/useContext.js +18 -0
- package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.d.ts +2 -0
- package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.js +20 -0
- package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.d.ts +3 -0
- package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.js +12 -0
- package/lib/providers/LiveRegionTwin/useQueueStaticElement.d.ts +8 -0
- package/lib/providers/LiveRegionTwin/useQueueStaticElement.d.ts.map +1 -0
- package/lib/providers/LiveRegionTwin/useQueueStaticElement.js +17 -0
- package/lib/providers/ModalDialog/ModalDialogComposer.d.ts +7 -0
- package/lib/providers/ModalDialog/ModalDialogComposer.d.ts.map +1 -0
- package/lib/providers/ModalDialog/ModalDialogComposer.js +51 -0
- package/lib/providers/ModalDialog/private/Context.d.ts +13 -0
- package/lib/providers/ModalDialog/private/Context.d.ts.map +1 -0
- package/lib/providers/ModalDialog/private/Context.js +24 -0
- package/lib/providers/ModalDialog/private/Popover.d.ts +10 -0
- package/lib/providers/ModalDialog/private/Popover.d.ts.map +1 -0
- package/lib/providers/ModalDialog/private/Popover.js +79 -0
- package/lib/providers/ModalDialog/private/useContext.d.ts +4 -0
- package/lib/providers/ModalDialog/private/useContext.d.ts.map +1 -0
- package/lib/providers/ModalDialog/private/useContext.js +13 -0
- package/lib/providers/ModalDialog/useClose.d.ts +3 -0
- package/lib/providers/ModalDialog/useClose.d.ts.map +1 -0
- package/lib/providers/ModalDialog/useClose.js +12 -0
- package/lib/providers/ModalDialog/useShowModal.d.ts +3 -0
- package/lib/providers/ModalDialog/useShowModal.d.ts.map +1 -0
- package/lib/providers/ModalDialog/useShowModal.js +12 -0
- package/lib/providers/RovingTabIndex/RovingTabIndexComposer.d.ts +8 -0
- package/lib/providers/RovingTabIndex/RovingTabIndexComposer.d.ts.map +1 -0
- package/lib/providers/RovingTabIndex/RovingTabIndexComposer.js +163 -0
- package/lib/providers/RovingTabIndex/private/Context.d.ts +8 -0
- package/lib/providers/RovingTabIndex/private/Context.d.ts.map +1 -0
- package/lib/providers/RovingTabIndex/private/Context.js +17 -0
- package/lib/providers/RovingTabIndex/private/useContext.d.ts +2 -0
- package/lib/providers/RovingTabIndex/private/useContext.d.ts.map +1 -0
- package/lib/providers/RovingTabIndex/private/useContext.js +18 -0
- package/lib/providers/RovingTabIndex/useItemRef.d.ts +3 -0
- package/lib/providers/RovingTabIndex/useItemRef.d.ts.map +1 -0
- package/lib/providers/RovingTabIndex/useItemRef.js +19 -0
- package/lib/providers/Theme/ThemeProvider.d.ts +7 -0
- package/lib/providers/Theme/ThemeProvider.d.ts.map +1 -0
- package/lib/providers/Theme/ThemeProvider.js +103 -0
- package/lib/providers/Theme/private/Context.d.ts +19 -0
- package/lib/providers/Theme/private/Context.d.ts.map +1 -0
- package/lib/providers/Theme/private/Context.js +26 -0
- package/lib/providers/Theme/useTheme.d.ts +2 -0
- package/lib/providers/Theme/useTheme.d.ts.map +1 -0
- package/lib/providers/Theme/useTheme.js +13 -0
- package/lib/providers/TranscriptFocus/TranscriptFocusComposer.d.ts +7 -0
- package/lib/providers/TranscriptFocus/TranscriptFocusComposer.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/TranscriptFocusComposer.js +153 -0
- package/lib/providers/TranscriptFocus/private/Context.d.ts +12 -0
- package/lib/providers/TranscriptFocus/private/Context.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/private/Context.js +11 -0
- package/lib/providers/TranscriptFocus/private/useContext.d.ts +2 -0
- package/lib/providers/TranscriptFocus/private/useContext.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/private/useContext.js +18 -0
- package/lib/providers/TranscriptFocus/useActiveDescendantId.d.ts +2 -0
- package/lib/providers/TranscriptFocus/useActiveDescendantId.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/useActiveDescendantId.js +12 -0
- package/lib/providers/TranscriptFocus/useFocusByActivityKey.d.ts +8 -0
- package/lib/providers/TranscriptFocus/useFocusByActivityKey.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/useFocusByActivityKey.js +18 -0
- package/lib/providers/TranscriptFocus/useFocusRelativeActivity.d.ts +2 -0
- package/lib/providers/TranscriptFocus/useFocusRelativeActivity.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/useFocusRelativeActivity.js +12 -0
- package/lib/providers/TranscriptFocus/useFocusedActivityKey.d.ts +2 -0
- package/lib/providers/TranscriptFocus/useFocusedActivityKey.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/useFocusedActivityKey.js +12 -0
- package/lib/providers/TranscriptFocus/useFocusedExplicitly.d.ts +2 -0
- package/lib/providers/TranscriptFocus/useFocusedExplicitly.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/useFocusedExplicitly.js +12 -0
- package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.d.ts +2 -0
- package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.d.ts.map +1 -0
- package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.js +12 -0
- package/lib/providers/internal/SendBox/SendBoxComposer.d.ts +4 -0
- package/lib/providers/internal/SendBox/SendBoxComposer.d.ts.map +1 -0
- package/lib/providers/internal/SendBox/SendBoxComposer.js +161 -0
- package/lib/providers/internal/SendBox/private/Context.d.ts +4 -0
- package/lib/providers/internal/SendBox/private/Context.d.ts.map +1 -0
- package/lib/providers/internal/SendBox/private/Context.js +11 -0
- package/lib/providers/internal/SendBox/private/types.d.ts +8 -0
- package/lib/providers/internal/SendBox/private/types.d.ts.map +1 -0
- package/lib/providers/internal/SendBox/private/types.js +2 -0
- package/lib/providers/internal/SendBox/private/useContext.d.ts +3 -0
- package/lib/providers/internal/SendBox/private/useContext.d.ts.map +1 -0
- package/lib/providers/internal/SendBox/private/useContext.js +17 -0
- package/lib/providers/internal/SendBox/useErrorMessageId.d.ts +12 -0
- package/lib/providers/internal/SendBox/useErrorMessageId.d.ts.map +1 -0
- package/lib/providers/internal/SendBox/useErrorMessageId.js +22 -0
- package/lib/providers/internal/SendBox/useSubmit.d.ts +14 -0
- package/lib/providers/internal/SendBox/useSubmit.d.ts.map +1 -0
- package/lib/providers/internal/SendBox/useSubmit.js +20 -0
- package/lib/tsconfig.json +18 -0
- package/lib/types/ContextOf.d.ts +4 -0
- package/lib/types/ContextOf.d.ts.map +1 -0
- package/lib/types/ContextOf.js +2 -0
- package/lib/types/PropsOf.d.ts +3 -0
- package/lib/types/PropsOf.d.ts.map +1 -0
- package/lib/types/PropsOf.js +2 -0
- 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/lib/types/internal/FocusTranscriptInit.d.ts +4 -0
- package/lib/types/internal/FocusTranscriptInit.d.ts.map +1 -0
- package/lib/types/internal/FocusTranscriptInit.js +2 -0
- package/lib/types/internal/SendStatus.d.ts +7 -0
- package/lib/types/internal/SendStatus.d.ts.map +1 -0
- package/lib/types/internal/SendStatus.js +19 -0
- package/lib/types/internal/TypeOfArray.d.ts +2 -0
- package/lib/types/internal/TypeOfArray.d.ts.map +1 -0
- package/lib/types/internal/TypeOfArray.js +2 -0
- package/lib/withEmoji/private/UndoEntry.d.ts +9 -0
- package/lib/withEmoji/private/UndoEntry.d.ts.map +1 -0
- package/lib/withEmoji/private/UndoEntry.js +69 -0
- package/lib/withEmoji/private/useUndoStack.d.ts +6 -0
- package/lib/withEmoji/private/useUndoStack.d.ts.map +1 -0
- package/lib/withEmoji/private/useUndoStack.js +64 -0
- package/lib/withEmoji/withEmoji.d.ts +15 -0
- package/lib/withEmoji/withEmoji.d.ts.map +1 -0
- package/lib/withEmoji/withEmoji.js +128 -0
- package/package.json +81 -146
- package/src/Activity/Avatar.tsx +23 -20
- package/src/Activity/Bubble.tsx +70 -45
- package/src/Activity/CarouselFilmStrip.js +112 -31
- package/src/Activity/CarouselFilmStripAttachment.js +15 -14
- package/src/Activity/CarouselLayout.js +17 -16
- package/src/Activity/SayAlt.js +26 -0
- package/src/Activity/Speak.tsx +42 -84
- package/src/Activity/StackedLayout.tsx +198 -265
- package/src/ActivityStatus/AbsoluteTime.js +32 -0
- package/src/ActivityStatus/OthersActivityStatus.tsx +53 -52
- package/src/ActivityStatus/SelfActivityStatus.tsx +8 -11
- package/src/ActivityStatus/SendStatus/SendStatus.tsx +23 -23
- package/src/ActivityStatus/Slotted.tsx +26 -0
- package/src/ActivityStatus/Timestamp.tsx +12 -17
- package/src/ActivityStatus/private/Feedback/Feedback.tsx +60 -0
- package/src/ActivityStatus/private/Feedback/private/ThumbButton.Image.tsx +30 -0
- package/src/ActivityStatus/private/Feedback/private/ThumbButton.tsx +54 -0
- package/src/ActivityStatus/private/Feedback/private/VoteButton.tsx +36 -0
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.tsx +16 -0
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.tsx +16 -0
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.tsx +16 -0
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.tsx +16 -0
- package/src/ActivityStatus/private/Originator.tsx +10 -33
- package/src/ActivityStatus/private/RelativeTime.js +31 -0
- package/src/Assets/TypingAnimation.js +1 -3
- package/src/Attachment/Assets/DownloadIcon.js +29 -0
- package/src/Attachment/AudioContent.tsx +29 -20
- package/src/Attachment/FileContent.tsx +46 -46
- package/src/Attachment/HTMLVideoContent.tsx +27 -21
- package/src/Attachment/ImageAttachment.js +37 -0
- package/src/Attachment/ImageContent.tsx +27 -13
- package/src/Attachment/Text/TextAttachment.tsx +14 -38
- package/src/Attachment/Text/TextContent.tsx +16 -40
- package/src/Attachment/Text/private/CitationModalContent.tsx +21 -28
- package/src/Attachment/Text/private/MarkdownTextContent.tsx +126 -223
- package/src/Attachment/Text/private/MessageSensitivityLabel.tsx +34 -47
- package/src/Attachment/Text/private/PlainTextContent.tsx +14 -24
- package/src/Attachment/Text/private/ShieldIcon.tsx +34 -52
- package/src/Attachment/VideoAttachment.js +1 -1
- package/src/Attachment/VideoContent.tsx +27 -21
- package/src/Attachment/VimeoContent.tsx +25 -21
- package/src/Attachment/YouTubeContent.tsx +25 -21
- package/src/Avatar/ImageAvatar.js +49 -0
- package/src/Avatar/InitialsAvatar.js +50 -0
- package/src/BasicConnectivityStatus.js +7 -7
- package/src/BasicToast.js +1 -1
- package/src/BasicToaster.js +8 -47
- package/src/BasicTranscript.tsx +587 -402
- package/src/BasicWebChat.tsx +34 -28
- package/src/Composer.tsx +128 -226
- package/src/ConnectivityStatus/Connecting.js +72 -0
- package/src/Dictation.js +24 -16
- package/src/ErrorBox.tsx +26 -54
- package/src/LinkDefinition/LinkDefinitionItem.tsx +21 -51
- package/src/LinkDefinition/LinkDefinitions.tsx +19 -84
- package/src/LinkDefinition/index.ts +4 -6
- package/src/LinkDefinition/private/Badge.tsx +1 -12
- package/src/LinkDefinition/private/Chevron.tsx +21 -0
- package/src/LinkDefinition/private/ItemBody.tsx +15 -24
- package/src/LinkDefinition/private/OpenInNewWindowIcon.tsx +13 -20
- package/src/LinkDefinition/private/extractHostnameWithSubdomain.spec.ts +0 -2
- package/src/LinkDefinition/private/extractHostnameWithSubdomain.ts +1 -1
- package/src/LiveRegion/LiveRegionActivity.tsx +18 -18
- package/src/LiveRegion/private/LiveRegionSuggestedActions.tsx +25 -34
- package/src/Middleware/Activity/createCoreMiddleware.tsx +102 -0
- package/src/Middleware/ActivityStatus/createTimestampMiddleware.tsx +2 -2
- package/src/Middleware/Avatar/createCoreMiddleware.tsx +76 -0
- package/src/Middleware/ScrollToEndButton/ScrollToEndButton.js +45 -0
- package/src/ReactWebChat.tsx +8 -3
- package/src/ScreenReaderText.tsx +34 -27
- package/src/SendBox/Assets/MicrophoneIcon.js +12 -0
- package/src/SendBox/Assets/SendIcon.js +36 -0
- package/src/SendBox/AutoResizeTextArea.tsx +64 -28
- package/src/SendBox/BasicSendBox.tsx +30 -99
- package/src/SendBox/DictationInterims.tsx +21 -32
- package/src/SendBox/IconButton.tsx +30 -32
- package/src/SendBox/MicrophoneButton.tsx +23 -29
- package/src/SendBox/SendButton.tsx +21 -26
- package/src/SendBox/SuggestedAction.tsx +72 -60
- package/src/SendBox/SuggestedActions.tsx +9 -6
- package/src/SendBox/TextBox.tsx +39 -57
- package/src/SendBoxToolbar/Assets/AttachmentIcon.tsx +23 -6
- package/src/SendBoxToolbar/BasicSendBoxToolbar.tsx +2 -4
- package/src/SendBoxToolbar/UploadButton.tsx +26 -47
- package/src/Styles/CustomPropertyNames.ts +6 -66
- package/src/Styles/StyleSet/AudioAttachment.ts +3 -3
- package/src/Styles/StyleSet/Avatar.ts +3 -4
- package/src/Styles/StyleSet/CSSCustomProperties.ts +46 -0
- package/src/Styles/StyleSet/CarouselFilmStrip.ts +7 -9
- package/src/Styles/StyleSet/CarouselFilmStripAttachment.ts +4 -3
- package/src/Styles/StyleSet/ErrorBox.ts +2 -2
- package/src/Styles/StyleSet/FileContent.ts +1 -2
- package/src/Styles/StyleSet/ImageAvatar.ts +5 -8
- package/src/Styles/StyleSet/InitialsAvatar.ts +5 -4
- package/src/Styles/StyleSet/KeyboardHelp.ts +204 -0
- package/src/Styles/StyleSet/LinkDefinitions.ts +11 -17
- package/src/Styles/StyleSet/MicrophoneButton.ts +1 -1
- package/src/Styles/StyleSet/ModalDialog.ts +8 -14
- package/src/Styles/StyleSet/RenderMarkdown.ts +0 -35
- package/src/Styles/StyleSet/ScrollToEndButton.ts +11 -0
- package/src/Styles/StyleSet/SendBox.ts +7 -57
- package/src/Styles/StyleSet/SendBoxButton.ts +5 -7
- package/src/Styles/StyleSet/SendBoxTextBox.ts +1 -6
- package/src/Styles/StyleSet/SendStatus.ts +0 -12
- package/src/Styles/StyleSet/SingleAttachmentActivity.ts +18 -0
- package/src/Styles/StyleSet/SlottedActivityStatus.ts +16 -0
- package/src/Styles/StyleSet/SpinnerAnimation.ts +1 -3
- package/src/Styles/StyleSet/StackedLayout.ts +9 -18
- package/src/Styles/StyleSet/SuggestedAction.ts +13 -1
- package/src/Styles/StyleSet/TextContent.ts +2 -17
- package/src/Styles/StyleSet/ThumbButton.ts +24 -77
- package/src/Styles/StyleSet/TypingAnimation.ts +1 -3
- package/src/Styles/createStyleSet.ts +14 -14
- package/src/Transcript/ActivityRow.tsx +39 -100
- package/src/Transcript/FocusTrap.tsx +38 -96
- package/src/Transcript/KeyboardHelp.tsx +319 -0
- package/src/Transcript/LiveRegion/SendFailed.tsx +10 -8
- package/src/Transcript/LiveRegionTranscript.tsx +62 -11
- package/src/TranscriptActivity.tsx +64 -0
- package/src/Utils/AccessKeySink/Surface.js +56 -0
- package/src/Utils/AccessibleButton.tsx +49 -64
- package/src/Utils/AccessibleInputText.tsx +106 -97
- package/src/Utils/AccessibleTextArea.tsx +41 -10
- package/src/Utils/CroppedImage.js +45 -0
- package/src/Utils/FocusRedirector.tsx +26 -31
- package/src/Utils/InlineMarkdown.js +1 -6
- package/src/Utils/JSONLinkedData/__snapshots__/dereferenceBlankNodes.spec.ts.snap +17 -17
- package/src/Utils/JSONLinkedData/dereferenceBlankNodes.spec.ts +0 -2
- package/src/Utils/JSONLinkedData/dereferenceBlankNodes.ts +1 -1
- package/src/Utils/JSONLinkedData/getSafeOwnPropertyNames.ts +2 -2
- package/src/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.ts +0 -2
- package/src/Utils/LocalizedString.tsx +3 -3
- package/src/Utils/addTargetBlankToHyperlinksMarkdown.spec.js +4 -4
- package/src/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.ts +0 -2
- package/src/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.ts +4 -4
- package/src/Utils/firstTabbableDescendant.js +1 -0
- package/src/Utils/parseDocumentFromString.ts +5 -0
- package/src/Utils/readDataURIToBlob.js +31 -0
- package/src/Utils/serializeDocumentIntoString.ts +10 -0
- package/src/Utils/singleToArray.ts +3 -0
- package/src/Utils/supportPseudoClass.ts +1 -1
- package/src/Utils/tabbableElements.ts +1 -7
- package/src/Utils/textFormatToContentType.js +12 -0
- package/src/Utils/updateMarkdownAttrs.spec.js +14 -14
- package/src/Utils/walkMarkdownTokens.spec.js +1 -1
- package/src/hooks/index.ts +0 -4
- package/src/hooks/internal/UITracker.js +1 -1
- package/src/hooks/internal/WebChatUIContext.ts +1 -19
- package/src/hooks/internal/createWaitUntilable.spec.ts +2 -4
- package/src/hooks/internal/createWaitUntilable.ts +1 -1
- package/src/hooks/internal/private/createOnEventShim.spec.ts +0 -2
- package/src/hooks/internal/useForceRenderAtInterval.ts +6 -6
- package/src/hooks/internal/useMemoWithPrevious.ts +16 -0
- package/src/hooks/internal/useMemoized.spec.jsx +3 -3
- package/src/hooks/internal/useMemoized.ts +1 -1
- package/src/hooks/internal/useNonce.js +7 -0
- package/src/hooks/internal/useObserveFocusVisible.ts +1 -0
- package/src/hooks/internal/useStateRef.ts +1 -1
- package/src/hooks/internal/useStyleToEmotionObject.js +5 -0
- package/src/hooks/sendBoxFocus.ts +2 -6
- package/src/hooks/transcriptScrollRelative.ts +3 -6
- package/src/hooks/useObserveScrollPosition.ts +0 -3
- package/src/hooks/useObserveTranscriptFocus.ts +3 -9
- package/src/hooks/useRenderMarkdownAsHTML.ts +29 -32
- package/src/hooks/useSendFiles.ts +1 -4
- package/src/index.ts +125 -30
- package/src/internal.ts +4 -0
- package/src/providers/ActivityTree/ActivityTreeComposer.tsx +90 -0
- package/src/providers/ActivityTree/private/Context.ts +12 -0
- package/src/providers/ActivityTree/private/types.ts +12 -0
- package/src/providers/ActivityTree/private/useActivitiesWithRenderer.ts +40 -0
- package/src/providers/ActivityTree/private/useActivityTreeWithRenderer.ts +140 -0
- package/src/providers/ActivityTree/private/useContext.ts +15 -0
- package/src/providers/ActivityTree/useActivityTreeWithRenderer.ts +16 -0
- package/src/providers/LiveRegionTwin/LiveRegionTwinComposer.tsx +172 -0
- package/src/providers/LiveRegionTwin/private/Context.ts +15 -0
- package/src/providers/LiveRegionTwin/private/LiveRegionTwinContainer.tsx +39 -27
- package/src/providers/LiveRegionTwin/private/useContext.ts +8 -2
- package/src/providers/LiveRegionTwin/useQueueStaticElement.ts +2 -2
- package/src/providers/ModalDialog/private/Popover.tsx +15 -5
- package/src/providers/RovingTabIndex/RovingTabIndexComposer.tsx +23 -20
- package/src/providers/Theme/ThemeProvider.tsx +40 -119
- package/src/providers/Theme/private/Context.ts +18 -18
- package/src/providers/TranscriptFocus/TranscriptFocusComposer.tsx +68 -325
- package/src/providers/TranscriptFocus/private/Context.ts +0 -4
- package/src/providers/TranscriptFocus/useActiveDescendantId.ts +1 -4
- package/src/providers/TranscriptFocus/useFocusRelativeActivity.ts +1 -1
- package/src/providers/internal/SendBox/SendBoxComposer.tsx +38 -30
- package/src/tsconfig.json +14 -8
- package/LICENSE +0 -21
- package/boot/deprecated/component.js +0 -7
- package/boot/deprecated/component.mjs +0 -5
- package/boot/deprecated/decorator.js +0 -7
- package/boot/deprecated/decorator.mjs +0 -5
- package/boot/deprecated/hook.js +0 -7
- package/boot/deprecated/hook.mjs +0 -5
- package/boot/deprecated/internal.js +0 -7
- package/boot/deprecated/internal.mjs +0 -5
- package/component.js +0 -3
- package/decorator.js +0 -3
- package/dist/TextBox-BEU2rUID.d.mts +0 -46
- package/dist/TextBox-BEU2rUID.d.ts +0 -46
- package/dist/_dtsroll-chunks/BlpMO3PT-empty-object.d.ts +0 -34
- package/dist/_dtsroll-chunks/Cha1SOtx-botframework-webchat-styles.react.d.ts +0 -38
- package/dist/_dtsroll-chunks/DP9nda2m-botframework-webchat-react-hooks.d.ts +0 -19
- package/dist/botframework-webchat-component.component.css +0 -2
- package/dist/botframework-webchat-component.component.css.map +0 -1
- package/dist/botframework-webchat-component.component.d.mts +0 -9
- package/dist/botframework-webchat-component.component.d.ts +0 -9
- package/dist/botframework-webchat-component.component.js +0 -2
- package/dist/botframework-webchat-component.component.js.map +0 -1
- package/dist/botframework-webchat-component.component.mjs +0 -2
- package/dist/botframework-webchat-component.component.mjs.map +0 -1
- package/dist/botframework-webchat-component.css +0 -2
- package/dist/botframework-webchat-component.css.map +0 -1
- package/dist/botframework-webchat-component.d.ts +0 -90
- package/dist/botframework-webchat-component.decorator.css +0 -2
- package/dist/botframework-webchat-component.decorator.css.map +0 -1
- package/dist/botframework-webchat-component.decorator.d.mts +0 -28
- package/dist/botframework-webchat-component.decorator.d.ts +0 -28
- package/dist/botframework-webchat-component.decorator.js +0 -2
- package/dist/botframework-webchat-component.decorator.js.map +0 -1
- package/dist/botframework-webchat-component.decorator.mjs +0 -2
- package/dist/botframework-webchat-component.decorator.mjs.map +0 -1
- package/dist/botframework-webchat-component.hook.css +0 -2
- package/dist/botframework-webchat-component.hook.css.map +0 -1
- package/dist/botframework-webchat-component.hook.d.mts +0 -8
- package/dist/botframework-webchat-component.hook.d.ts +0 -8
- package/dist/botframework-webchat-component.hook.js +0 -2
- package/dist/botframework-webchat-component.hook.js.map +0 -1
- package/dist/botframework-webchat-component.hook.mjs +0 -2
- package/dist/botframework-webchat-component.hook.mjs.map +0 -1
- package/dist/botframework-webchat-component.internal.css +0 -2
- package/dist/botframework-webchat-component.internal.css.map +0 -1
- package/dist/botframework-webchat-component.internal.d.ts +0 -70
- package/dist/botframework-webchat-component.internal.js +0 -2
- package/dist/botframework-webchat-component.internal.js.map +0 -1
- package/dist/botframework-webchat-component.js +0 -2
- package/dist/botframework-webchat-component.js.map +0 -1
- package/dist/chunk-4IEFVGFY.mjs +0 -2
- package/dist/chunk-4IEFVGFY.mjs.map +0 -1
- package/dist/chunk-AUUHHO4G.mjs +0 -2
- package/dist/chunk-AUUHHO4G.mjs.map +0 -1
- package/dist/chunk-BUJ23PGG.js +0 -77
- package/dist/chunk-BUJ23PGG.js.map +0 -1
- package/dist/chunk-EYXG4PAK.js +0 -2
- package/dist/chunk-EYXG4PAK.js.map +0 -1
- package/dist/chunk-FA5SN6F3.js +0 -2
- package/dist/chunk-FA5SN6F3.js.map +0 -1
- package/dist/chunk-H443W2JC.mjs +0 -2
- package/dist/chunk-H443W2JC.mjs.map +0 -1
- package/dist/chunk-I2HRS7P3.js +0 -2
- package/dist/chunk-I2HRS7P3.js.map +0 -1
- package/dist/chunk-I6DJ35K3.mjs +0 -2
- package/dist/chunk-I6DJ35K3.mjs.map +0 -1
- package/dist/chunk-I6EXXZUN.js +0 -2
- package/dist/chunk-I6EXXZUN.js.map +0 -1
- package/dist/chunk-IB5KEWTO.js +0 -2
- package/dist/chunk-IB5KEWTO.js.map +0 -1
- package/dist/chunk-NNNAE55I.mjs +0 -2
- package/dist/chunk-NNNAE55I.mjs.map +0 -1
- package/dist/chunk-TMUNLKZW.js +0 -2
- package/dist/chunk-TMUNLKZW.js.map +0 -1
- package/dist/chunk-UKBRB4EA.mjs +0 -2
- package/dist/chunk-UKBRB4EA.mjs.map +0 -1
- package/dist/chunk-UXADOWHM.mjs +0 -77
- package/dist/chunk-UXADOWHM.mjs.map +0 -1
- package/dist/component-BtSxgJS5.d.mts +0 -539
- package/dist/component-Fyy8iCRE.d.ts +0 -539
- package/dist/hook-B7KuomGm.d.mts +0 -2259
- package/dist/hook-o9AgRedV.d.ts +0 -2259
- package/dist/metafile-cjs.json +0 -1
- package/hook.js +0 -3
- package/src/Activity/AttachmentRow.tsx +0 -56
- package/src/Activity/Bubble.module.css +0 -131
- package/src/Activity/CarouselFilmStrip.module.css +0 -155
- package/src/Activity/CarouselFilmStripAttachment.module.css +0 -38
- package/src/Activity/CarouselLayout.module.css +0 -30
- package/src/Activity/CodeBlockContent.module.css +0 -40
- package/src/Activity/CodeBlockContent.tsx +0 -42
- package/src/Activity/CollapsibleContent.module.css +0 -43
- package/src/Activity/CollapsibleContent.tsx +0 -68
- package/src/Activity/SayAlt.module.css +0 -4
- package/src/Activity/SayAlt.tsx +0 -25
- package/src/Activity/StackedLayout.module.css +0 -233
- package/src/Activity/StackedLayoutMain.tsx +0 -36
- package/src/Activity/StackedLayoutMessageStatus.tsx +0 -57
- package/src/Activity/StackedLayoutRoot.tsx +0 -71
- package/src/Activity/StackedLayoutStatus.tsx +0 -36
- package/src/Activity/private/MessageStatusLoader.module.css +0 -18
- package/src/Activity/private/MessageStatusLoader.tsx +0 -27
- package/src/ActivityDebug/RestrictedActivityDebugAPI.ts +0 -15
- package/src/ActivityDebug/index.ts +0 -1
- package/src/ActivityFeedback/ActivityFeedback.tsx +0 -88
- package/src/ActivityFeedback/private/FeedbackForm.module.css +0 -123
- package/src/ActivityFeedback/private/FeedbackForm.tsx +0 -83
- package/src/ActivityFeedback/private/FeedbackVoteButton.tsx +0 -88
- package/src/ActivityFeedback/private/FeedbackVoteButtonBar.tsx +0 -40
- package/src/ActivityFeedback/private/ThumbButton.Image.tsx +0 -35
- package/src/ActivityFeedback/private/ThumbButton.module.css +0 -91
- package/src/ActivityFeedback/private/ThumbButton.tsx +0 -103
- package/src/ActivityFeedback/private/canActionResubmit.ts +0 -6
- package/src/ActivityFeedback/private/getDisclaimerFromFeedbackLoop.ts +0 -10
- package/src/ActivityFeedback/private/getDisclaimerFromReviewAction.ts +0 -12
- package/src/ActivityFeedback/private/hasFeedbackLoop.ts +0 -42
- package/src/ActivityFeedback/private/isActionRequireReview.ts +0 -10
- package/src/ActivityFeedback/providers/ActivityFeedbackComposer.tsx +0 -372
- package/src/ActivityFeedback/providers/private/ActivityFeedbackContext.ts +0 -24
- package/src/ActivityFeedback/providers/private/FocusPropagation.ts +0 -10
- package/src/ActivityFeedback/providers/useActivityFeedbackHooks.ts +0 -6
- package/src/ActivityStatus/AbsoluteTime.tsx +0 -37
- package/src/ActivityStatus/ActivityStatus.module.css +0 -31
- package/src/ActivityStatus/StatusSlot.tsx +0 -17
- package/src/ActivityStatus/private/RelativeTime.tsx +0 -43
- package/src/Attachment/ImageAttachment.tsx +0 -58
- package/src/Attachment/Text/TextContent.module.css +0 -45
- package/src/Attachment/Text/private/ActivityButton.module.css +0 -45
- package/src/Attachment/Text/private/ActivityButton.tsx +0 -71
- package/src/Attachment/Text/private/ActivityCopyButton.module.css +0 -45
- package/src/Attachment/Text/private/ActivityCopyButton.tsx +0 -109
- package/src/Attachment/Text/private/ActivityViewCodeButton.tsx +0 -66
- package/src/Attachment/Text/private/CitationModal.module.css +0 -9
- package/src/Attachment/Text/private/CodeContent.tsx +0 -44
- package/src/Attachment/Text/private/Markdownable.tsx +0 -39
- package/src/Attachment/Text/private/ViewCodeDialog.module.css +0 -59
- package/src/Attachment/Text/private/isAIGeneratedActivity.ts +0 -5
- package/src/Avatar/ImageAvatar.tsx +0 -48
- package/src/Avatar/InitialsAvatar.tsx +0 -55
- package/src/BuiltInDecorator.tsx +0 -17
- package/src/ChatHistory/ChatHistoryBox.tsx +0 -27
- package/src/ChatHistory/ChatHistoryToolbar.tsx +0 -36
- package/src/ChatHistory/private/ScrollToEndButton.tsx +0 -105
- package/src/ConnectivityStatus/Connecting.tsx +0 -77
- package/src/Icon/ComponentIcon.module.css +0 -113
- package/src/Icon/ComponentIcon.tsx +0 -59
- package/src/Icon/index.ts +0 -1
- package/src/LinkDefinition/LinkDefinitions.module.css +0 -209
- package/src/Middleware/Activity/defaultActivityPolymiddleware.tsx +0 -104
- package/src/Middleware/ActivityGrouping/createDefaultActivityGroupingDecoratorMiddleware.tsx +0 -21
- package/src/Middleware/ActivityGrouping/ui/LegacyActivityBridgeComposer.tsx +0 -91
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGrouping.module.css +0 -76
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGrouping.tsx +0 -97
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGroupingList.tsx +0 -30
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGroupingTitle.tsx +0 -29
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/PartGrouping.tsx +0 -52
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/private/PartGroupingActivity.module.css +0 -29
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/private/PartGroupingActivity.tsx +0 -258
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/private/usePartGroupingLogicalGroup.ts +0 -41
- package/src/Middleware/ActivityGrouping/ui/RenderActivity.tsx +0 -37
- package/src/Middleware/ActivityGrouping/ui/RenderActivityGrouping.tsx +0 -41
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/SenderGrouping.tsx +0 -49
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/private/SenderGroupingContext.ts +0 -18
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/private/useSenderGroupingContext.ts +0 -6
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/useFirstActivity.ts +0 -6
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/useLastActivity.ts +0 -6
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/StatusGrouping.tsx +0 -49
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/private/StatusGroupingContext.ts +0 -18
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/private/useStatusGroupingContext.ts +0 -6
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/useFirstActivity.ts +0 -6
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/useLastActivity.ts +0 -6
- package/src/Middleware/Avatar/DefaultAvatar.tsx +0 -61
- package/src/Middleware/Avatar/createDefaultAvatarPolymiddleware.tsx +0 -22
- package/src/Middleware/ScrollToEndButton/ScrollToEndButton.tsx +0 -58
- package/src/SendBox/AttachmentBar/AttachmentBar.module.css +0 -32
- package/src/SendBox/AttachmentBar/AttachmentBar.tsx +0 -71
- package/src/SendBox/AttachmentBar/AttachmentBarItem.module.css +0 -137
- package/src/SendBox/AttachmentBar/AttachmentBarItem.tsx +0 -103
- package/src/SendBox/AttachmentBar/ItemDeleteButton.tsx +0 -61
- package/src/SendBox/AttachmentBar/ItemPreview.tsx +0 -52
- package/src/SendBox/AttachmentBar/Preview/FilePreview.module.css +0 -35
- package/src/SendBox/AttachmentBar/Preview/FilePreview.tsx +0 -63
- package/src/SendBox/AttachmentBar/Preview/ImagePreview.module.css +0 -5
- package/src/SendBox/AttachmentBar/Preview/ImagePreview.tsx +0 -46
- package/src/SendBox/AttachmentBar/Preview/sendBoxAttachment.ts +0 -13
- package/src/SendBox/AttachmentBar/index.ts +0 -3
- package/src/SendBox/DropZone.tsx +0 -64
- package/src/Styles/CSSCustomPropertiesContainer.tsx +0 -195
- package/src/Styles/StyleSet/ActivityButton.ts +0 -49
- package/src/Styles/StyleSet/ActivityCopyButton.ts +0 -40
- package/src/Styles/StyleSet/ChatHistoryBox.ts +0 -22
- package/src/Styles/StyleSet/CodeBlock.ts +0 -39
- package/src/Styles/StyleSet/CodeBlockCopyButton.ts +0 -71
- package/src/Styles/StyleSet/Tooltip.ts +0 -66
- package/src/Styles/StyleSet/ViewCodeDialog.ts +0 -70
- package/src/Styles/StyleSet/types/StyleSet.ts +0 -11
- package/src/TextArea/TextArea.module.css +0 -75
- package/src/TextArea/TextArea.tsx +0 -126
- package/src/TextArea/index.ts +0 -1
- package/src/Tooltip/index.ts +0 -1
- package/src/Tooltip/private/Tooltip.tsx +0 -26
- package/src/Transcript/ActivityTree.tsx +0 -35
- package/src/Transcript/TranscriptFocus/TranscriptActivityList.tsx +0 -22
- package/src/Transcript/TranscriptFocus/TranscriptFocus.module.css +0 -117
- package/src/Transcript/TranscriptFocus/TranscriptFocusArea.tsx +0 -27
- package/src/Transcript/TranscriptFocus/TranscriptFocusContent.tsx +0 -34
- package/src/Transcript/TranscriptFocus/TranscriptFocusContentActiveDescendant.tsx +0 -26
- package/src/Transcript/TranscriptFocus/TranscriptFocusContentBody.tsx +0 -20
- package/src/Transcript/TranscriptFocus/TranscriptFocusContentOverlay.tsx +0 -20
- package/src/Transcript/TranscriptFocus/TranscriptFocusIndicator.tsx +0 -28
- package/src/Transcript/TranscriptFocus/TranscriptFocusTerminator.tsx +0 -42
- package/src/Transcript/TranscriptFocus/TranscriptFocusTerminatorBody.tsx +0 -20
- package/src/Transcript/TranscriptFocus/TranscriptFocusTerminatorText.tsx +0 -20
- package/src/Transcript/TranscriptFocus/index.ts +0 -25
- package/src/Transcript/hooks/useRenderActivityProps.ts +0 -88
- package/src/Utils/AccessKeySink/Surface.tsx +0 -63
- package/src/Utils/FixedWidthImage.tsx +0 -60
- package/src/Utils/createIconComponent.tsx +0 -126
- package/src/Utils/orgSchema/getFirstBaseOfSoftwareSourceCode.ts +0 -15
- package/src/Utils/parseDocumentFragmentFromString.ts +0 -9
- package/src/Utils/readDataURIToBlob.ts +0 -37
- package/src/Utils/serializeDocumentFragmentIntoString.ts +0 -3
- package/src/Utils/textFormatToContentType.ts +0 -14
- package/src/__tests__/addMetaTag.spec.js +0 -8
- package/src/__tests__/addMetaTag.spec.mjs +0 -8
- package/src/boot/component.ts +0 -45
- package/src/boot/decorator.ts +0 -1
- package/src/boot/hook.ts +0 -118
- package/src/boot/internal.ts +0 -15
- package/src/buildInfo.ts +0 -9
- package/src/decorator/index.ts +0 -3
- package/src/decorator/private/BorderFlair.module.css +0 -566
- package/src/decorator/private/BorderFlair.tsx +0 -39
- package/src/decorator/private/BorderLoader.module.css +0 -53
- package/src/decorator/private/BorderLoader.tsx +0 -24
- package/src/decorator/private/WebChatDecorator.tsx +0 -64
- package/src/decorator/stylesheet/DecoratorStylesheet.tsx +0 -33
- package/src/decorator/stylesheet/createDecoratorStyleElements.ts +0 -8
- package/src/env.d.ts +0 -11
- package/src/hooks/RenderMarkdown.module.css +0 -102
- package/src/hooks/internal/codeHighlighter/index.ts +0 -3
- package/src/hooks/internal/codeHighlighter/private/CodeHighlighterComposer.tsx +0 -32
- package/src/hooks/internal/codeHighlighter/private/createCodeHighlighterComposer.tsx +0 -32
- package/src/hooks/internal/codeHighlighter/private/defaultHighlightCode.tsx +0 -22
- package/src/hooks/internal/styleToEmotionObject/index.ts +0 -1
- package/src/hooks/internal/styleToEmotionObject/private/StyleToEmotionObjectComposer.tsx +0 -20
- package/src/hooks/internal/styleToEmotionObject/private/createStyleToEmotionObjectComposer.tsx +0 -22
- package/src/hooks/internal/useEmotion.ts +0 -37
- package/src/hooks/internal/useFeedbackActions.ts +0 -120
- package/src/hooks/internal/useNonce.ts +0 -7
- package/src/hooks/internal/useSanitizeHrefCallback.ts +0 -37
- package/src/hooks/useStreamingMarkdownWithDefinitions.ts +0 -193
- package/src/providers/ActivityLogicalGrouping/ActivityLogicalGroupingComposer.ts +0 -100
- package/src/providers/ActivityLogicalGrouping/index.ts +0 -7
- package/src/providers/ActivityLogicalGrouping/private/ActivityLogicalGroupingContext.ts +0 -31
- package/src/providers/ActivityLogicalGrouping/private/useStateWithOptimisticRef.ts +0 -13
- package/src/providers/ActivityLogicalGrouping/useAddLogicalGrouping.ts +0 -5
- package/src/providers/ActivityLogicalGrouping/useGetGroupState.ts +0 -5
- package/src/providers/ActivityLogicalGrouping/useGetLogicalGroupBoundaries.ts +0 -5
- package/src/providers/ActivityLogicalGrouping/useGetLogicalGroupKey.ts +0 -5
- package/src/providers/ActivityLogicalGrouping/useRemoveLogicalGrouping.ts +0 -5
- package/src/providers/ChatHistoryDOM/ChatHistoryDOMComposer.tsx +0 -18
- package/src/providers/ChatHistoryDOM/private/ChatHistoryDOMContext.ts +0 -11
- package/src/providers/ChatHistoryDOM/useActivityElementRef.ts +0 -6
- package/src/providers/CustomElements/CustomElementsComposer.tsx +0 -58
- package/src/providers/CustomElements/customElements/CodeBlock.module.css +0 -35
- package/src/providers/CustomElements/customElements/CodeBlock.ts +0 -230
- package/src/providers/CustomElements/customElements/CodeBlockCopyButton.module.css +0 -63
- package/src/providers/CustomElements/customElements/CodeBlockCopyButton.tsx +0 -108
- package/src/providers/CustomElements/customElements/wrapAsCustomElement.ts +0 -85
- package/src/providers/CustomElements/private/CustomElementsContext.ts +0 -15
- package/src/providers/CustomElements/private/useCustomElementsContext.ts +0 -6
- package/src/providers/CustomElements/useCodeBlockCopyButtonTagName.ts +0 -8
- package/src/providers/CustomElements/useCodeBlockTagName.ts +0 -19
- package/src/providers/GroupedRenderingActivities/GroupedRenderingActivities.ts +0 -10
- package/src/providers/GroupedRenderingActivities/GroupedRenderingActivitiesComposer.tsx +0 -87
- package/src/providers/GroupedRenderingActivities/private/GroupedRenderingActivitiesContext.ts +0 -14
- package/src/providers/GroupedRenderingActivities/private/group.spec.ts +0 -31
- package/src/providers/GroupedRenderingActivities/private/group.ts +0 -19
- package/src/providers/GroupedRenderingActivities/private/pick.spec.ts +0 -35
- package/src/providers/GroupedRenderingActivities/private/pick.ts +0 -20
- package/src/providers/GroupedRenderingActivities/useGroupedRenderingActivities.ts +0 -6
- package/src/providers/GroupedRenderingActivities/useNumRenderingActivities.ts +0 -5
- package/src/providers/HTMLContentTransformCOR/HTMLContentTransformComposer.tsx +0 -41
- package/src/providers/HTMLContentTransformCOR/index.ts +0 -8
- package/src/providers/HTMLContentTransformCOR/private/HTMLContentTransformContext.ts +0 -34
- package/src/providers/HTMLContentTransformCOR/private/useHTMLContentTransformContext.ts +0 -6
- package/src/providers/HTMLContentTransformCOR/useTransformHTMLContent.ts +0 -187
- package/src/providers/LiveRegionTwin/index.ts +0 -3
- package/src/providers/LiveRegionTwin/private/LiveRegionTwinComposer.ts +0 -27
- package/src/providers/LiveRegionTwin/private/createLiveRegionTwinComposer.tsx +0 -155
- package/src/providers/LiveRegionTwin/useLiveRegion.ts +0 -27
- package/src/providers/ReducedMotion/ReducedMotionComposer.tsx +0 -35
- package/src/providers/ReducedMotion/private/Context.ts +0 -22
- package/src/providers/ReducedMotion/private/useContext.ts +0 -8
- package/src/providers/ReducedMotion/useShouldReduceMotion.ts +0 -5
- package/src/providers/RenderingActivities/RenderingActivitiesComposer.tsx +0 -103
- package/src/providers/RenderingActivities/private/RenderingActivitiesContext.ts +0 -15
- package/src/providers/RenderingActivities/useActivityRendererMap.ts +0 -9
- package/src/providers/RenderingActivities/useRenderingActivities.ts +0 -7
- package/src/providers/RenderingActivities/useRenderingActivityKeys.ts +0 -5
- package/src/providers/TranscriptFocus/TranscriptFocusComposer.spec.tsx +0 -611
- package/src/providers/TranscriptFocus/useFocusByGroupKey.ts +0 -11
- package/src/providers/TranscriptFocus/useFocusedKey.ts +0 -6
- package/src/providers/TranscriptFocus/useGetGroupDescendantIdByActivityKey.ts +0 -5
- package/src/providers/createContextAndHook.ts +0 -23
- package/src/stylesheet/ComponentStylesheet.tsx +0 -33
- package/src/stylesheet/createComponentStyleElements.ts +0 -8
- package/src/testIds.ts +0 -18
- package/src/types/internal/mutableRefObject.ts +0 -40
- package/src/types/internal/refObject.ts +0 -40
|
@@ -1,77 +1,17 @@
|
|
|
1
1
|
const CustomPropertyNames = Object.freeze({
|
|
2
2
|
// Make sure key names does not have JavaScript forbidden names.
|
|
3
|
-
BackgroundCardPushButton: '--webchat__background--card-push-button',
|
|
4
|
-
BackgroundBubble: '--webchat__background--bubble',
|
|
5
|
-
BackgroundBubbleUser: '--webchat__background--bubble-user',
|
|
6
|
-
BackgroundCodeBlock: '--webchat__background--code-block',
|
|
7
|
-
BackgroundImageSpinnerAnimation: '--webchat__background-image--spinner-animation',
|
|
8
|
-
BackgroundImageTypingAnimation: '--webchat__background-image--typing-animation',
|
|
9
|
-
BackgroundToastError: '--webchat__background--toast-error',
|
|
10
|
-
BackgroundToastInfo: '--webchat__background--toast-info',
|
|
11
|
-
BackgroundToastSuccess: '--webchat__background--toast-success',
|
|
12
|
-
BackgroundToastWarn: '--webchat__background--toast-warn',
|
|
13
|
-
BackgroundTranscriptOverlayButton: '--webchat__background--transcript-overlay-button',
|
|
14
|
-
BackgroundTranscriptOverlayButtonDisabled: '--webchat__background--transcript-overlay-button-disabled',
|
|
15
|
-
BackgroundTranscriptOverlayButtonFocus: '--webchat__background--transcript-overlay-button-focus',
|
|
16
|
-
BackgroundTranscriptOverlayButtonHover: '--webchat__background--transcript-overlay-button-hover',
|
|
17
|
-
BackgroundTranscriptTerminator: '--webchat__background--transcript-terminator',
|
|
18
|
-
BorderAnimationColor1: '--webchat__border-animation--color-1',
|
|
19
|
-
BorderAnimationColor2: '--webchat__border-animation--color-2',
|
|
20
|
-
BorderAnimationColor3: '--webchat__border-animation--color-3',
|
|
21
|
-
BorderColorBubble: '--webchat__border-color--bubble',
|
|
22
|
-
BorderColorBubbleUser: '--webchat__border-color--bubble-user',
|
|
23
|
-
BorderRadiusAvatar: '--webchat__border-radius--avatar',
|
|
24
|
-
BorderRadiusBubble: '--webchat__border-radius--bubble',
|
|
25
|
-
BorderRadiusBubbleUser: '--webchat__border-radius--bubble-user',
|
|
26
|
-
BorderStyleBubble: '--webchat__border-style--bubble',
|
|
27
|
-
BorderStyleBubbleUser: '--webchat__border-style--bubble-user',
|
|
28
|
-
BorderStyleTranscriptActivityVisualKeyboardIndicator:
|
|
29
|
-
'--webchat__border-style--transcript-activity-visual-keyboard-indicator',
|
|
30
|
-
BorderStyleTranscriptVisualKeyboardIndicator: '--webchat__border-style--transcript-visual-keyboard-indicator',
|
|
31
|
-
BorderWidthBubble: '--webchat__border-width--bubble',
|
|
32
|
-
BorderWidthBubbleUser: '--webchat__border-width--bubble-user',
|
|
33
|
-
BorderWidthTranscriptActivityVisualKeyboardIndicator:
|
|
34
|
-
'--webchat__border-width--transcript-activity-visual-keyboard-indicator',
|
|
35
|
-
BorderRadiusTranscriptTerminator: '--webchat__border-radius--transcript-terminator',
|
|
36
|
-
BorderWidthTranscriptVisualKeyboardIndicator: '--webchat__border-width--transcript-visual-keyboard-indicator',
|
|
37
3
|
ColorAccent: '--webchat__color--accent',
|
|
38
|
-
ColorBubble: '--webchat__color--bubble',
|
|
39
|
-
ColorBubbleUser: '--webchat__color--bubble-user',
|
|
40
|
-
ColorCardPushButton: '--webchat__color--card-push-button',
|
|
41
|
-
ColorCodeBlock: '--webchat__color--code-block',
|
|
42
|
-
ColorConnectivityFailed: '--webchat__color--connectivity-failed',
|
|
43
4
|
ColorSubtle: '--webchat__color--subtle',
|
|
44
5
|
ColorTimestamp: '--webchat__color--timestamp',
|
|
45
|
-
ColorTranscriptActivityVisualKeyboardIndicator: '--webchat__color--transcript-activity-visual-keyboard-indicator',
|
|
46
|
-
ColorTranscriptOverlayButton: '--webchat__color--transcript-overlay-button',
|
|
47
|
-
ColorTranscriptOverlayButtonDisabled: '--webchat__color--transcript-overlay-button-disabled',
|
|
48
|
-
ColorTranscriptOverlayButtonFocus: '--webchat__color--transcript-overlay-button-focus',
|
|
49
|
-
ColorTranscriptOverlayButtonHover: '--webchat__color--transcript-overlay-button-hover',
|
|
50
|
-
ColorTranscriptTerminator: '--webchat__color--transcript-terminator',
|
|
51
|
-
ColorTranscriptVisualKeyboardIndicator: '--webchat__color--transcript-visual-keyboard-indicator',
|
|
52
6
|
FontPrimary: '--webchat__font--primary',
|
|
53
|
-
FontMonospace: '--webchat__font--monospace',
|
|
54
7
|
FontSizeSmall: '--webchat__font-size--small',
|
|
55
|
-
FontSizeTranscriptTerminator: '--webchat__font-size--transcript-terminator',
|
|
56
8
|
IconURLExternalLink: '--webchat__icon-url--external-link',
|
|
57
|
-
|
|
58
|
-
MaxHeightSendBoxAttachmentBar: '--webchat__max-height--send-box-attachment-bar',
|
|
59
|
-
MaxWidthAttachmentBubble: '--webchat__max-width--attachment-bubble',
|
|
60
|
-
MaxWidthMessageBubble: '--webchat__max-width--message-bubble',
|
|
9
|
+
MaxWidthBubble: '--webchat__max-width--bubble',
|
|
61
10
|
MinHeightBubble: '--webchat__min-height--bubble',
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
SizeAvatar: '--webchat__size--avatar',
|
|
68
|
-
SizeBubbleNub: '--webchat__size--bubble-nub',
|
|
69
|
-
SizeBubbleNubUser: '--webchat__size--bubble-nub-user',
|
|
70
|
-
SpaceBubbleNub: '--webchat__space--bubble-nub',
|
|
71
|
-
SpaceBubbleNubUser: '--webchat__space--bubble-nub-user',
|
|
72
|
-
TransitionDuration: '--webchat__transition-duration',
|
|
73
|
-
TransitionEasing: '--webchat__transition-easing',
|
|
74
|
-
WordBreakMessageActivity: '--webchat__word-break--message-activity'
|
|
75
|
-
}) satisfies Readonly<Record<string, `--webchat__${string}`>>;
|
|
11
|
+
PaddingRegular: '--webchat__padding--regular'
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// This is for type-checking only to make sure the CSS custom property names is `--webchat__${string}`.
|
|
15
|
+
const _TypeChecking: Readonly<Record<string, `--webchat__${string}`>> = CustomPropertyNames;
|
|
76
16
|
|
|
77
17
|
export default CustomPropertyNames;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
2
2
|
|
|
3
|
-
export default function AudioAttachment() {
|
|
3
|
+
export default function AudioAttachment({ avatarSize }: StrictStyleOptions) {
|
|
4
4
|
return {
|
|
5
5
|
// TODO: [P2] We should not set "display" in styleSet, this will allow the user to break the layout for no good reasons.
|
|
6
6
|
display: 'flex',
|
|
7
|
-
minHeight:
|
|
7
|
+
minHeight: avatarSize
|
|
8
8
|
};
|
|
9
9
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
2
|
-
import CSSTokens from '../CSSTokens';
|
|
3
2
|
|
|
4
|
-
export default function createAvatarStyle({ avatarBorderRadius }: StrictStyleOptions) {
|
|
3
|
+
export default function createAvatarStyle({ avatarBorderRadius, avatarSize }: StrictStyleOptions) {
|
|
5
4
|
return {
|
|
6
5
|
'&.webchat__defaultAvatar': {
|
|
7
6
|
borderRadius: avatarBorderRadius,
|
|
8
|
-
height:
|
|
9
|
-
width:
|
|
7
|
+
height: avatarSize,
|
|
8
|
+
width: avatarSize
|
|
10
9
|
}
|
|
11
10
|
};
|
|
12
11
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
2
|
+
|
|
3
|
+
import CustomPropertyNames from '../CustomPropertyNames';
|
|
4
|
+
|
|
5
|
+
export default function createCSSCustomPropertiesStyle({
|
|
6
|
+
accent,
|
|
7
|
+
bubbleMaxWidth,
|
|
8
|
+
bubbleMinHeight,
|
|
9
|
+
fontSizeSmall,
|
|
10
|
+
markdownExternalLinkIconImage,
|
|
11
|
+
paddingRegular,
|
|
12
|
+
primaryFont,
|
|
13
|
+
subtle,
|
|
14
|
+
timestampColor
|
|
15
|
+
}: StrictStyleOptions) {
|
|
16
|
+
return {
|
|
17
|
+
'&.webchat__css-custom-properties': {
|
|
18
|
+
display: 'contents',
|
|
19
|
+
|
|
20
|
+
// TODO: Should we register the CSS property for inheritance, type checking, and initial value?
|
|
21
|
+
// Registrations need to be done on global level, and duplicate registration will throw.
|
|
22
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/@property
|
|
23
|
+
|
|
24
|
+
// TODO: This is ongoing work. We are slowly adding CSS variables to ease calculations and stuff.
|
|
25
|
+
//
|
|
26
|
+
// We need to build a story to let web devs override these CSS variables.
|
|
27
|
+
//
|
|
28
|
+
// Candy points:
|
|
29
|
+
// - They should be able to override CSS variables for certain things (say, padding of popover) without affecting much.
|
|
30
|
+
//
|
|
31
|
+
// House rules:
|
|
32
|
+
// - We should put styling varibles here, e.g. paddingRegular
|
|
33
|
+
// - We MUST NOT put runtime variables here, e.g. sendTimeout
|
|
34
|
+
// - This is because we cannot programmatically know when the sendTimeout change
|
|
35
|
+
[CustomPropertyNames.ColorAccent]: accent,
|
|
36
|
+
[CustomPropertyNames.ColorSubtle]: subtle,
|
|
37
|
+
[CustomPropertyNames.ColorTimestamp]: timestampColor || subtle, // Maybe we should not need this if we allow web devs to override CSS variables for certain components.
|
|
38
|
+
[CustomPropertyNames.FontPrimary]: primaryFont,
|
|
39
|
+
[CustomPropertyNames.FontSizeSmall]: fontSizeSmall,
|
|
40
|
+
[CustomPropertyNames.IconURLExternalLink]: markdownExternalLinkIconImage,
|
|
41
|
+
[CustomPropertyNames.MaxWidthBubble]: bubbleMaxWidth + 'px',
|
|
42
|
+
[CustomPropertyNames.MinHeightBubble]: bubbleMinHeight + 'px',
|
|
43
|
+
[CustomPropertyNames.PaddingRegular]: paddingRegular + 'px'
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/* eslint no-magic-numbers: ["error", { "ignore": [2] }] */
|
|
2
2
|
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
3
3
|
|
|
4
|
-
import CSSTokens from '../CSSTokens';
|
|
5
4
|
import mirrorStyle from '../mirrorStyle';
|
|
6
5
|
|
|
7
6
|
export default function CarouselFilmStrip({
|
|
8
7
|
avatarSize,
|
|
9
|
-
|
|
8
|
+
bubbleMaxWidth,
|
|
10
9
|
paddingRegular,
|
|
11
10
|
transitionDuration
|
|
12
11
|
}: StrictStyleOptions) {
|
|
@@ -18,24 +17,23 @@ export default function CarouselFilmStrip({
|
|
|
18
17
|
marginBottom: -17
|
|
19
18
|
},
|
|
20
19
|
|
|
21
|
-
'& .webchat__carousel-
|
|
22
|
-
maxWidth:
|
|
23
|
-
minWidth: CSSTokens.MinWidthMessageBubble,
|
|
20
|
+
'& .webchat__carousel-filmstrip__message': {
|
|
21
|
+
maxWidth: bubbleMaxWidth,
|
|
24
22
|
transitionDuration,
|
|
25
23
|
transitionProperty: 'max-width'
|
|
26
24
|
},
|
|
27
25
|
|
|
28
26
|
'&.webchat__carousel-filmstrip--hide-nub, &.webchat__carousel-filmstrip--show-nub, &.webchat__carousel-filmstrip--hide-avatar, &.webchat__carousel-filmstrip--show-avatar':
|
|
29
27
|
{
|
|
30
|
-
'& .webchat__carousel-
|
|
31
|
-
maxWidth:
|
|
28
|
+
'& .webchat__carousel-filmstrip__message': {
|
|
29
|
+
maxWidth: bubbleMaxWidth + paddingRegular
|
|
32
30
|
}
|
|
33
31
|
},
|
|
34
32
|
|
|
35
33
|
'& .webchat__carousel-filmstrip__alignment-pad': {
|
|
36
34
|
transitionDuration,
|
|
37
35
|
transitionProperty: 'width',
|
|
38
|
-
width:
|
|
36
|
+
width: paddingRegular
|
|
39
37
|
},
|
|
40
38
|
|
|
41
39
|
'&.webchat__carousel-filmstrip--extra-trailing .webchat__carousel-filmstrip__alignment-pad': {
|
|
@@ -60,7 +58,7 @@ export default function CarouselFilmStrip({
|
|
|
60
58
|
|
|
61
59
|
'&.webchat__carousel-filmstrip--hide-avatar, &.webchat__carousel-filmstrip--show-avatar': {
|
|
62
60
|
'& .webchat__carousel-filmstrip__avatar-gutter': {
|
|
63
|
-
width:
|
|
61
|
+
width: avatarSize
|
|
64
62
|
}
|
|
65
63
|
},
|
|
66
64
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* eslint no-magic-numbers: ["error", { "ignore": [2] }] */
|
|
2
2
|
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
3
3
|
|
|
4
|
-
import CSSTokens from '../CSSTokens';
|
|
5
4
|
import mirrorStyle from '../mirrorStyle';
|
|
6
5
|
|
|
7
6
|
export default function CarouselFilmStripAttachment({
|
|
8
7
|
avatarSize,
|
|
8
|
+
bubbleMaxWidth,
|
|
9
|
+
bubbleMinWidth,
|
|
9
10
|
paddingRegular,
|
|
10
11
|
transcriptVisualKeyboardIndicatorColor,
|
|
11
12
|
transcriptVisualKeyboardIndicatorStyle,
|
|
@@ -14,8 +15,8 @@ export default function CarouselFilmStripAttachment({
|
|
|
14
15
|
}: StrictStyleOptions) {
|
|
15
16
|
return {
|
|
16
17
|
'&.webchat__carousel-filmstrip-attachment': {
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
minWidth: bubbleMinWidth,
|
|
19
|
+
maxWidth: bubbleMaxWidth,
|
|
19
20
|
transitionDuration,
|
|
20
21
|
transitionProperty: 'max-width, min-width',
|
|
21
22
|
|
|
@@ -13,13 +13,13 @@ export default function createErrorBoxStyle({ monospaceFont, primaryFont }: Stri
|
|
|
13
13
|
WebkitOverflowScrolling: 'touch',
|
|
14
14
|
|
|
15
15
|
'& > :first-child': {
|
|
16
|
-
backgroundColor: '#
|
|
16
|
+
backgroundColor: '#EF0000',
|
|
17
17
|
color: 'White',
|
|
18
18
|
padding: '5px 10px'
|
|
19
19
|
},
|
|
20
20
|
|
|
21
21
|
'& > :last-child': {
|
|
22
|
-
borderColor: '#
|
|
22
|
+
borderColor: '#EF0000',
|
|
23
23
|
borderStyle: 'dashed',
|
|
24
24
|
borderBottomWidth: 2,
|
|
25
25
|
borderLeftWidth: 2,
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
2
2
|
|
|
3
|
-
export default function createImageAvatarStyle() {
|
|
3
|
+
export default function createImageAvatarStyle({ avatarSize }: StrictStyleOptions) {
|
|
4
4
|
return {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
justifyContent: 'center',
|
|
9
|
-
overflow: ['hidden', 'clip'],
|
|
10
|
-
width: CSSTokens.SizeAvatar
|
|
5
|
+
height: avatarSize,
|
|
6
|
+
overflow: 'hidden',
|
|
7
|
+
width: avatarSize
|
|
11
8
|
};
|
|
12
9
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
2
|
-
import CSSTokens from '../CSSTokens';
|
|
3
2
|
|
|
4
3
|
export default function createInitialsAvatarStyle({
|
|
5
4
|
accent,
|
|
5
|
+
avatarSize,
|
|
6
6
|
botAvatarBackgroundColor,
|
|
7
|
+
primaryFont,
|
|
7
8
|
userAvatarBackgroundColor
|
|
8
9
|
}: StrictStyleOptions) {
|
|
9
10
|
return {
|
|
10
11
|
'&.webchat__initialsAvatar': {
|
|
11
12
|
alignItems: 'center',
|
|
12
13
|
color: 'White',
|
|
13
|
-
fontFamily:
|
|
14
|
-
height:
|
|
14
|
+
fontFamily: primaryFont,
|
|
15
|
+
height: avatarSize,
|
|
15
16
|
justifyContent: 'center',
|
|
16
17
|
overflow: 'hidden',
|
|
17
|
-
width:
|
|
18
|
+
width: avatarSize,
|
|
18
19
|
|
|
19
20
|
'&.webchat__initialsAvatar--fromUser': {
|
|
20
21
|
backgroundColor: userAvatarBackgroundColor || accent
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// Numbers are commonly used in CSS.
|
|
2
|
+
/* eslint-disable no-magic-numbers */
|
|
3
|
+
|
|
4
|
+
import { StrictStyleOptions } from 'botframework-webchat-api';
|
|
5
|
+
|
|
6
|
+
const DARK_THEME_SELECTOR = '@media (forced-colors: none) and (prefers-color-scheme: dark)';
|
|
7
|
+
const LIGHT_THEME_SELECTOR = '@media (forced-colors: none) and (prefers-color-scheme: light)';
|
|
8
|
+
const FORCED_COLORS_SELECTOR = '@media (forced-colors: active)';
|
|
9
|
+
|
|
10
|
+
export default function createKeyboardHelpStyleSet({ paddingRegular, primaryFont }: StrictStyleOptions) {
|
|
11
|
+
return {
|
|
12
|
+
'&.webchat__keyboard-help': {
|
|
13
|
+
fontFamily: primaryFont,
|
|
14
|
+
fontSize: 14,
|
|
15
|
+
height: '100%',
|
|
16
|
+
outline: 0,
|
|
17
|
+
overflow: 'hidden',
|
|
18
|
+
|
|
19
|
+
'&:not(.webchat__keyboard-help--shown)': {
|
|
20
|
+
height: 0,
|
|
21
|
+
margin: 0,
|
|
22
|
+
overflow: 'hidden',
|
|
23
|
+
pointerEvents: 'none',
|
|
24
|
+
width: 0
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
'& .webchat__keyboard-help__border': {
|
|
28
|
+
boxSizing: 'border-box',
|
|
29
|
+
height: '100%',
|
|
30
|
+
padding: paddingRegular
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
'& .webchat__keyboard-help__box': {
|
|
34
|
+
// From Power BI:
|
|
35
|
+
// boxShadow: '0 6.4px 14.4px rgb(0 0 0 / 13%), 0 1.2px 3.6px rgb(0 0 0 / 11%)',
|
|
36
|
+
// From Fluent (depth-16 for teaching callouts):
|
|
37
|
+
borderRadius: 2,
|
|
38
|
+
boxShadow: '0px 8px 16px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12)',
|
|
39
|
+
height: '100%',
|
|
40
|
+
overflow: 'hidden',
|
|
41
|
+
|
|
42
|
+
[FORCED_COLORS_SELECTOR]: {
|
|
43
|
+
backgroundColor: 'Canvas',
|
|
44
|
+
boxShadow: 'none',
|
|
45
|
+
outlineColor: 'ButtonBorder',
|
|
46
|
+
outlineStyle: 'solid',
|
|
47
|
+
outlineWidth: 4
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
[DARK_THEME_SELECTOR]: {
|
|
51
|
+
backgroundColor: 'Black',
|
|
52
|
+
boxShadow: '0px 8px 16px rgba(0, 0, 0, 0.28), 0px 0px 2px rgba(0, 0, 0, 0.24)'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
'& .webchat__keyboard-help__scrollable': {
|
|
57
|
+
boxSizing: 'border-box',
|
|
58
|
+
height: '100%',
|
|
59
|
+
overflowY: 'auto',
|
|
60
|
+
padding: paddingRegular * 2,
|
|
61
|
+
position: 'relative'
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
'& .webchat__keyboard-help__close-button': {
|
|
65
|
+
appearance: 'none',
|
|
66
|
+
backgroundColor: 'transparent',
|
|
67
|
+
border: 0,
|
|
68
|
+
outline: 0,
|
|
69
|
+
padding: paddingRegular,
|
|
70
|
+
// We are enlarging the bounding box of close button for scroll into view properly/cosmetically.
|
|
71
|
+
// When TAB key focus on the close button, it is scrolled into view.
|
|
72
|
+
// If the close button is at (10, 10), the `scrollTop` will be 10.
|
|
73
|
+
// We are enlarging the bounding box, so TAB to focus on close button, `scrollTop` will be 0.
|
|
74
|
+
// However, the bounding box enlarged does not means the padding are clickable.
|
|
75
|
+
// We are setting `pointerEvents` to `none` to ignore mouse click on the enlarged bounding box.
|
|
76
|
+
pointerEvents: 'none',
|
|
77
|
+
position: 'absolute',
|
|
78
|
+
right: 0,
|
|
79
|
+
top: 0
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
'& .webchat__keyboard-help__close-button-border': {
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
borderRadius: 4,
|
|
85
|
+
borderStyle: 'solid',
|
|
86
|
+
borderWidth: 2,
|
|
87
|
+
color: '#999',
|
|
88
|
+
display: 'flex',
|
|
89
|
+
height: 30,
|
|
90
|
+
justifyContent: 'center',
|
|
91
|
+
// After enlarging the bounding box, we will resume pointer events (i.e. "click") inside this element.
|
|
92
|
+
pointerEvents: 'initial',
|
|
93
|
+
width: 30,
|
|
94
|
+
|
|
95
|
+
[LIGHT_THEME_SELECTOR]: {
|
|
96
|
+
borderColor: 'black',
|
|
97
|
+
|
|
98
|
+
'&:active': {
|
|
99
|
+
backgroundColor: '#EDEBE9' // neutralLight (gray30)
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
'&:not(:active):hover': {
|
|
103
|
+
backgroundColor: '#F3F2F1' // neutralLighter (gray20)
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
[DARK_THEME_SELECTOR]: {
|
|
108
|
+
borderColor: 'white',
|
|
109
|
+
|
|
110
|
+
'&:active': {
|
|
111
|
+
backgroundColor: '#292827' // neutralLight (gray30)
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
'&:not(:active):hover': {
|
|
115
|
+
backgroundColor: '#252423' // neutralLight (gray30)
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
[FORCED_COLORS_SELECTOR]: {
|
|
120
|
+
backgroundColor: 'ButtonFace',
|
|
121
|
+
borderColor: 'ButtonBorder'
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
'& .webchat__keyboard-help__close-button-image': {
|
|
126
|
+
fill: '#323130', // neutralPrimary (gray160)
|
|
127
|
+
height: 10,
|
|
128
|
+
width: 10,
|
|
129
|
+
|
|
130
|
+
[FORCED_COLORS_SELECTOR]: {
|
|
131
|
+
fill: 'ButtonText'
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
[DARK_THEME_SELECTOR]: {
|
|
135
|
+
fill: '#F3F2F1' // neutralPrimary (gray160)
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
'& .webchat__keyboard-help__header, & .webchat__keyboard-help__sub-header': {
|
|
140
|
+
marginBottom: paddingRegular / 2,
|
|
141
|
+
marginTop: 0
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
'& .webchat__keyboard-help__section:not(:last-child)': {
|
|
145
|
+
marginBottom: paddingRegular
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
'& .webchat__keyboard-help__two-panes': {
|
|
149
|
+
alignItems: 'flex-start',
|
|
150
|
+
display: 'flex'
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
'& .webchat__keyboard-help__image': {
|
|
154
|
+
paddingRight: paddingRegular
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
'& .webchat__keyboard-help__image--dark, & .webchat__keyboard-help__image--high-contrast': {
|
|
158
|
+
display: 'none'
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
[FORCED_COLORS_SELECTOR]: {
|
|
162
|
+
'& .webchat__keyboard-help__image--dark, & .webchat__keyboard-help__image--light': {
|
|
163
|
+
display: 'none'
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
'& .webchat__keyboard-help__image--high-contrast': {
|
|
167
|
+
display: 'unset',
|
|
168
|
+
// "difference" will make sure SVG image is properly color in both light and dark high contrast mode.
|
|
169
|
+
mixBlendMode: 'difference'
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
[DARK_THEME_SELECTOR]: {
|
|
174
|
+
color: '#F3F2F1',
|
|
175
|
+
|
|
176
|
+
'& .webchat__keyboard-help__image--light': {
|
|
177
|
+
display: 'none'
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
'& .webchat__keyboard-help__image--dark': {
|
|
181
|
+
display: 'unset'
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
'& .webchat__keyboard-help__notes': {
|
|
186
|
+
marginBottom: paddingRegular,
|
|
187
|
+
marginTop: 0
|
|
188
|
+
},
|
|
189
|
+
|
|
190
|
+
'& .webchat__keyboard-help__notes-header': {
|
|
191
|
+
fontWeight: 'bold',
|
|
192
|
+
margin: 0
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
'& .webchat__keyboard-help__notes-pane': {
|
|
196
|
+
flexShrink: 10000
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
'& .webchat__keyboard-help__notes-text': {
|
|
200
|
+
margin: 0
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
@@ -9,14 +9,16 @@ import CSSTokens from '../CSSTokens';
|
|
|
9
9
|
export default function createLinkDefinitionsStyleSet() {
|
|
10
10
|
return {
|
|
11
11
|
'&.webchat__link-definitions': {
|
|
12
|
+
// '&[open] .webchat__link-definitions__header::after': {
|
|
13
|
+
// transform: 'rotate(0deg)'
|
|
14
|
+
// },
|
|
15
|
+
|
|
12
16
|
'.webchat__link-definitions__header': {
|
|
13
17
|
alignItems: 'center',
|
|
14
|
-
cursor: 'default',
|
|
15
18
|
display: 'flex',
|
|
16
19
|
fontFamily: CSSTokens.FontPrimary,
|
|
17
20
|
fontSize: CSSTokens.FontSizeSmall,
|
|
18
21
|
gap: 4,
|
|
19
|
-
justifyContent: 'space-between',
|
|
20
22
|
listStyle: 'none',
|
|
21
23
|
|
|
22
24
|
[LIGHT_THEME_SELECTOR]: {
|
|
@@ -29,17 +31,6 @@ export default function createLinkDefinitionsStyleSet() {
|
|
|
29
31
|
}
|
|
30
32
|
},
|
|
31
33
|
|
|
32
|
-
'.webchat__link-definitions__header-section': {
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
display: 'flex',
|
|
35
|
-
gap: 4,
|
|
36
|
-
overflow: 'hidden'
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
'.webchat__link-definitions__header-section--left': {
|
|
40
|
-
flexShrink: 0
|
|
41
|
-
},
|
|
42
|
-
|
|
43
34
|
'.webchat__link-definitions__header-text': {
|
|
44
35
|
flexShrink: 0
|
|
45
36
|
},
|
|
@@ -56,12 +47,15 @@ export default function createLinkDefinitionsStyleSet() {
|
|
|
56
47
|
transform: 'rotate(-180deg)'
|
|
57
48
|
},
|
|
58
49
|
|
|
50
|
+
'.webchat__link-definitions__header-filler': {
|
|
51
|
+
flexGrow: 1
|
|
52
|
+
},
|
|
53
|
+
|
|
59
54
|
'.webchat__link-definitions__header-accessory': {
|
|
60
55
|
overflow: 'hidden'
|
|
61
56
|
},
|
|
62
57
|
|
|
63
58
|
'.webchat__link-definitions__message-sensitivity-label': {
|
|
64
|
-
alignItems: 'center',
|
|
65
59
|
display: 'flex',
|
|
66
60
|
gap: 4
|
|
67
61
|
},
|
|
@@ -91,19 +85,19 @@ export default function createLinkDefinitionsStyleSet() {
|
|
|
91
85
|
},
|
|
92
86
|
|
|
93
87
|
'.webchat__link-definitions__badge': {
|
|
88
|
+
alignItems: 'center',
|
|
94
89
|
alignSelf: 'flex-start',
|
|
95
90
|
borderRadius: '4px',
|
|
96
91
|
borderStyle: 'solid',
|
|
97
92
|
borderWidth: 1,
|
|
93
|
+
display: 'flex',
|
|
98
94
|
flexShrink: 0,
|
|
99
95
|
fontSize: '75%',
|
|
96
|
+
justifyContent: 'center',
|
|
100
97
|
margin: 4,
|
|
101
|
-
maxWidth: '4em',
|
|
102
98
|
minWidth: '1em',
|
|
103
99
|
overflow: 'hidden',
|
|
104
100
|
padding: 2,
|
|
105
|
-
textAlign: 'center',
|
|
106
|
-
textOverflow: 'ellipsis',
|
|
107
101
|
whiteSpace: 'nowrap',
|
|
108
102
|
|
|
109
103
|
[LIGHT_THEME_SELECTOR]: {
|
|
@@ -6,7 +6,7 @@ export default function createMicrophoneButtonStyle({ microphoneButtonColorOnDic
|
|
|
6
6
|
'&.webchat__microphone-button--dictating .webchat__microphone-button__button': {
|
|
7
7
|
'&, &:focus, &:hover': {
|
|
8
8
|
'& .webchat__microphone-button__icon': {
|
|
9
|
-
|
|
9
|
+
fill: microphoneButtonColorOnDictate
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -19,12 +19,6 @@ export default function createModalDialogStyleSet() {
|
|
|
19
19
|
border: 0
|
|
20
20
|
},
|
|
21
21
|
|
|
22
|
-
// Assume the content is being prepared, so we hide the whole dialog until content appears in the DOM.
|
|
23
|
-
// Use opacity to still be able to set focus on the first available control (close button).
|
|
24
|
-
'&:has(.webchat__modal-dialog__body:empty)': {
|
|
25
|
-
opacity: 0
|
|
26
|
-
},
|
|
27
|
-
|
|
28
22
|
'& .webchat__modal-dialog__box': {
|
|
29
23
|
borderRadius: 2,
|
|
30
24
|
overflow: 'hidden',
|
|
@@ -36,7 +30,7 @@ export default function createModalDialogStyleSet() {
|
|
|
36
30
|
|
|
37
31
|
'@media screen and (min-width: 640px)': {
|
|
38
32
|
maxWidth: '60%',
|
|
39
|
-
minWidth: 'calc(640px -
|
|
33
|
+
minWidth: 'calc(640px - 32px)',
|
|
40
34
|
width: '60%'
|
|
41
35
|
},
|
|
42
36
|
|
|
@@ -71,9 +65,6 @@ export default function createModalDialogStyleSet() {
|
|
|
71
65
|
'& .webchat__modal-dialog__close-button': {
|
|
72
66
|
height: 30,
|
|
73
67
|
width: 30,
|
|
74
|
-
padding: 0,
|
|
75
|
-
|
|
76
|
-
'--webchat__component-icon--size': '16px',
|
|
77
68
|
|
|
78
69
|
[NOT_FORCED_COLORS_SELECTOR]: {
|
|
79
70
|
appearance: 'none',
|
|
@@ -113,17 +104,20 @@ export default function createModalDialogStyleSet() {
|
|
|
113
104
|
}
|
|
114
105
|
},
|
|
115
106
|
|
|
116
|
-
'& .webchat__modal-dialog__close-button-
|
|
107
|
+
'& .webchat__modal-dialog__close-button-image': {
|
|
108
|
+
height: 10,
|
|
109
|
+
width: 10,
|
|
110
|
+
|
|
117
111
|
[LIGHT_THEME_SELECTOR]: {
|
|
118
|
-
|
|
112
|
+
fill: '#323130' // neutralPrimary (gray160)
|
|
119
113
|
},
|
|
120
114
|
|
|
121
115
|
[DARK_THEME_SELECTOR]: {
|
|
122
|
-
|
|
116
|
+
fill: '#F3F2F1' // neutralPrimary (gray160)
|
|
123
117
|
},
|
|
124
118
|
|
|
125
119
|
[FORCED_COLORS_SELECTOR]: {
|
|
126
|
-
|
|
120
|
+
fill: 'currentcolor'
|
|
127
121
|
}
|
|
128
122
|
},
|
|
129
123
|
|