botframework-webchat-component 4.18.2 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/boot/deprecated/component.js +7 -0
- package/boot/deprecated/component.mjs +5 -0
- package/boot/deprecated/decorator.js +7 -0
- package/boot/deprecated/decorator.mjs +5 -0
- package/boot/deprecated/hook.js +7 -0
- package/boot/deprecated/hook.mjs +5 -0
- package/boot/deprecated/internal.js +7 -0
- package/boot/deprecated/internal.mjs +5 -0
- package/component.js +3 -0
- package/decorator.js +3 -0
- package/dist/TextBox-BEU2rUID.d.mts +46 -0
- package/dist/TextBox-BEU2rUID.d.ts +46 -0
- package/dist/_dtsroll-chunks/BlpMO3PT-empty-object.d.ts +34 -0
- package/dist/_dtsroll-chunks/Cha1SOtx-botframework-webchat-styles.react.d.ts +38 -0
- package/dist/_dtsroll-chunks/DP9nda2m-botframework-webchat-react-hooks.d.ts +19 -0
- package/dist/botframework-webchat-component.component.css +2 -0
- package/dist/botframework-webchat-component.component.css.map +1 -0
- package/dist/botframework-webchat-component.component.d.mts +9 -0
- package/dist/botframework-webchat-component.component.d.ts +9 -0
- package/dist/botframework-webchat-component.component.js +2 -0
- package/dist/botframework-webchat-component.component.js.map +1 -0
- package/dist/botframework-webchat-component.component.mjs +2 -0
- package/dist/botframework-webchat-component.component.mjs.map +1 -0
- package/dist/botframework-webchat-component.css +2 -0
- package/dist/botframework-webchat-component.css.map +1 -0
- package/dist/botframework-webchat-component.d.mts +64 -2312
- package/dist/botframework-webchat-component.d.ts +90 -0
- package/dist/botframework-webchat-component.decorator.css +2 -0
- package/dist/botframework-webchat-component.decorator.css.map +1 -0
- package/dist/botframework-webchat-component.decorator.d.mts +28 -0
- package/dist/botframework-webchat-component.decorator.d.ts +28 -0
- package/dist/botframework-webchat-component.decorator.js +2 -0
- package/dist/botframework-webchat-component.decorator.js.map +1 -0
- package/dist/botframework-webchat-component.decorator.mjs +2 -0
- package/dist/botframework-webchat-component.decorator.mjs.map +1 -0
- package/dist/botframework-webchat-component.hook.css +2 -0
- package/dist/botframework-webchat-component.hook.css.map +1 -0
- package/dist/botframework-webchat-component.hook.d.mts +8 -0
- package/dist/botframework-webchat-component.hook.d.ts +8 -0
- package/dist/botframework-webchat-component.hook.js +2 -0
- package/dist/botframework-webchat-component.hook.js.map +1 -0
- package/dist/botframework-webchat-component.hook.mjs +2 -0
- package/dist/botframework-webchat-component.hook.mjs.map +1 -0
- package/dist/botframework-webchat-component.internal.css +2 -0
- package/dist/botframework-webchat-component.internal.css.map +1 -0
- package/dist/botframework-webchat-component.internal.d.mts +68 -3
- package/dist/botframework-webchat-component.internal.d.ts +70 -0
- package/dist/botframework-webchat-component.internal.js +2 -0
- package/dist/botframework-webchat-component.internal.js.map +1 -0
- package/dist/botframework-webchat-component.internal.mjs +1 -2
- package/dist/botframework-webchat-component.js +2 -0
- package/dist/botframework-webchat-component.js.map +1 -0
- package/dist/botframework-webchat-component.mjs +1 -11
- package/dist/botframework-webchat-component.mjs.map +1 -1
- package/dist/chunk-2R7BJ63Z.js +2 -0
- package/dist/chunk-2R7BJ63Z.js.map +1 -0
- package/dist/chunk-A4NDFSZM.mjs +77 -0
- package/dist/chunk-A4NDFSZM.mjs.map +1 -0
- package/dist/chunk-CNTMOACS.mjs +2 -0
- package/dist/chunk-CNTMOACS.mjs.map +1 -0
- package/dist/chunk-GTOP3WPD.mjs +2 -0
- package/dist/chunk-GTOP3WPD.mjs.map +1 -0
- package/dist/chunk-H5YR7OLF.js +2 -0
- package/dist/chunk-H5YR7OLF.js.map +1 -0
- package/dist/chunk-I6DJ35K3.mjs +2 -0
- package/dist/chunk-I6DJ35K3.mjs.map +1 -0
- package/dist/chunk-I6EXXZUN.js +2 -0
- package/dist/chunk-I6EXXZUN.js.map +1 -0
- package/dist/chunk-LVVCSDZ4.mjs +2 -0
- package/dist/chunk-LVVCSDZ4.mjs.map +1 -0
- package/dist/chunk-MOJMHOVH.js +2 -0
- package/dist/chunk-MOJMHOVH.js.map +1 -0
- package/dist/chunk-TMUNLKZW.js +2 -0
- package/dist/chunk-TMUNLKZW.js.map +1 -0
- package/dist/chunk-TYPS3H4I.mjs +2 -0
- package/dist/chunk-TYPS3H4I.mjs.map +1 -0
- package/dist/chunk-U6OWCHTQ.js +2 -0
- package/dist/chunk-U6OWCHTQ.js.map +1 -0
- package/dist/chunk-UKBRB4EA.mjs +2 -0
- package/dist/chunk-UKBRB4EA.mjs.map +1 -0
- package/dist/chunk-VDF6GQAL.js +77 -0
- package/dist/chunk-VDF6GQAL.js.map +1 -0
- package/dist/component-BtSxgJS5.d.mts +539 -0
- package/dist/component-Fyy8iCRE.d.ts +539 -0
- package/dist/hook-B7KuomGm.d.mts +2259 -0
- package/dist/hook-o9AgRedV.d.ts +2259 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/hook.js +3 -0
- package/internal.js +1 -1
- package/package.json +146 -81
- package/src/Activity/AttachmentRow.tsx +56 -0
- package/src/Activity/Avatar.tsx +20 -23
- package/src/Activity/Bubble.module.css +131 -0
- package/src/Activity/Bubble.tsx +45 -70
- package/src/Activity/CarouselFilmStrip.js +31 -112
- package/src/Activity/CarouselFilmStrip.module.css +155 -0
- package/src/Activity/CarouselFilmStripAttachment.js +14 -15
- package/src/Activity/CarouselFilmStripAttachment.module.css +38 -0
- package/src/Activity/CarouselLayout.js +16 -17
- package/src/Activity/CarouselLayout.module.css +30 -0
- package/src/Activity/CodeBlockContent.module.css +40 -0
- package/src/Activity/CodeBlockContent.tsx +42 -0
- package/src/Activity/CollapsibleContent.module.css +43 -0
- package/src/Activity/CollapsibleContent.tsx +68 -0
- package/src/Activity/SayAlt.module.css +4 -0
- package/src/Activity/SayAlt.tsx +25 -0
- package/src/Activity/Speak.tsx +84 -42
- package/src/Activity/StackedLayout.module.css +233 -0
- package/src/Activity/StackedLayout.tsx +265 -198
- package/src/Activity/StackedLayoutMain.tsx +36 -0
- package/src/Activity/StackedLayoutMessageStatus.tsx +57 -0
- package/src/Activity/StackedLayoutRoot.tsx +71 -0
- package/src/Activity/StackedLayoutStatus.tsx +36 -0
- package/src/Activity/private/MessageStatusLoader.module.css +18 -0
- package/src/Activity/private/MessageStatusLoader.tsx +27 -0
- package/src/ActivityDebug/RestrictedActivityDebugAPI.ts +15 -0
- package/src/ActivityDebug/index.ts +1 -0
- package/src/ActivityFeedback/ActivityFeedback.tsx +88 -0
- package/src/ActivityFeedback/private/FeedbackForm.module.css +123 -0
- package/src/ActivityFeedback/private/FeedbackForm.tsx +83 -0
- package/src/ActivityFeedback/private/FeedbackVoteButton.tsx +88 -0
- package/src/ActivityFeedback/private/FeedbackVoteButtonBar.tsx +40 -0
- package/src/ActivityFeedback/private/ThumbButton.Image.tsx +35 -0
- package/src/ActivityFeedback/private/ThumbButton.module.css +91 -0
- package/src/ActivityFeedback/private/ThumbButton.tsx +103 -0
- package/src/ActivityFeedback/private/canActionResubmit.ts +6 -0
- package/src/ActivityFeedback/private/getDisclaimerFromFeedbackLoop.ts +10 -0
- package/src/ActivityFeedback/private/getDisclaimerFromReviewAction.ts +12 -0
- package/src/ActivityFeedback/private/hasFeedbackLoop.ts +42 -0
- package/src/ActivityFeedback/private/isActionRequireReview.ts +10 -0
- package/src/ActivityFeedback/providers/ActivityFeedbackComposer.tsx +372 -0
- package/src/ActivityFeedback/providers/private/ActivityFeedbackContext.ts +24 -0
- package/src/ActivityFeedback/providers/private/FocusPropagation.ts +10 -0
- package/src/ActivityFeedback/providers/useActivityFeedbackHooks.ts +6 -0
- package/src/ActivityStatus/AbsoluteTime.tsx +37 -0
- package/src/ActivityStatus/ActivityStatus.module.css +31 -0
- package/src/ActivityStatus/OthersActivityStatus.tsx +52 -53
- package/src/ActivityStatus/SelfActivityStatus.tsx +11 -8
- package/src/ActivityStatus/SendStatus/SendStatus.tsx +23 -23
- package/src/ActivityStatus/StatusSlot.tsx +17 -0
- package/src/ActivityStatus/Timestamp.tsx +17 -12
- package/src/ActivityStatus/private/Originator.tsx +33 -10
- package/src/ActivityStatus/private/RelativeTime.tsx +43 -0
- package/src/Assets/TypingAnimation.js +3 -1
- package/src/Attachment/AudioContent.tsx +20 -29
- package/src/Attachment/FileContent.tsx +46 -46
- package/src/Attachment/HTMLVideoContent.tsx +21 -27
- package/src/Attachment/ImageAttachment.tsx +58 -0
- package/src/Attachment/ImageContent.tsx +13 -27
- package/src/Attachment/Text/TextAttachment.tsx +38 -14
- package/src/Attachment/Text/TextContent.module.css +45 -0
- package/src/Attachment/Text/TextContent.tsx +40 -16
- package/src/Attachment/Text/private/ActivityButton.module.css +45 -0
- package/src/Attachment/Text/private/ActivityButton.tsx +71 -0
- package/src/Attachment/Text/private/ActivityCopyButton.module.css +45 -0
- package/src/Attachment/Text/private/ActivityCopyButton.tsx +109 -0
- package/src/Attachment/Text/private/ActivityViewCodeButton.tsx +66 -0
- package/src/Attachment/Text/private/CitationModal.module.css +9 -0
- package/src/Attachment/Text/private/CitationModalContent.tsx +28 -21
- package/src/Attachment/Text/private/CodeContent.tsx +44 -0
- package/src/Attachment/Text/private/MarkdownTextContent.tsx +223 -126
- package/src/Attachment/Text/private/Markdownable.tsx +39 -0
- package/src/Attachment/Text/private/MessageSensitivityLabel.tsx +47 -34
- package/src/Attachment/Text/private/PlainTextContent.tsx +24 -14
- package/src/Attachment/Text/private/ShieldIcon.tsx +52 -34
- package/src/Attachment/Text/private/ViewCodeDialog.module.css +59 -0
- package/src/Attachment/Text/private/isAIGeneratedActivity.ts +5 -0
- package/src/Attachment/VideoAttachment.js +1 -1
- package/src/Attachment/VideoContent.tsx +21 -27
- package/src/Attachment/VimeoContent.tsx +21 -25
- package/src/Attachment/YouTubeContent.tsx +21 -25
- package/src/Avatar/ImageAvatar.tsx +48 -0
- package/src/Avatar/InitialsAvatar.tsx +55 -0
- package/src/BasicConnectivityStatus.js +7 -7
- package/src/BasicToast.js +1 -1
- package/src/BasicToaster.js +47 -8
- package/src/BasicTranscript.tsx +402 -587
- package/src/BasicWebChat.tsx +28 -34
- package/src/BuiltInDecorator.tsx +17 -0
- package/src/ChatHistory/ChatHistoryBox.tsx +27 -0
- package/src/ChatHistory/ChatHistoryToolbar.tsx +36 -0
- package/src/ChatHistory/private/ScrollToEndButton.tsx +105 -0
- package/src/Composer.tsx +226 -128
- package/src/ConnectivityStatus/Connecting.tsx +77 -0
- package/src/Dictation.js +16 -24
- package/src/ErrorBox.tsx +54 -26
- package/src/Icon/ComponentIcon.module.css +113 -0
- package/src/Icon/ComponentIcon.tsx +59 -0
- package/src/Icon/index.ts +1 -0
- package/src/LinkDefinition/LinkDefinitionItem.tsx +51 -21
- package/src/LinkDefinition/LinkDefinitions.module.css +209 -0
- package/src/LinkDefinition/LinkDefinitions.tsx +84 -19
- package/src/LinkDefinition/index.ts +6 -4
- package/src/LinkDefinition/private/Badge.tsx +12 -1
- package/src/LinkDefinition/private/ItemBody.tsx +24 -15
- package/src/LinkDefinition/private/OpenInNewWindowIcon.tsx +20 -13
- package/src/LinkDefinition/private/extractHostnameWithSubdomain.spec.ts +2 -0
- package/src/LinkDefinition/private/extractHostnameWithSubdomain.ts +1 -1
- package/src/LiveRegion/LiveRegionActivity.tsx +18 -18
- package/src/LiveRegion/private/LiveRegionSuggestedActions.tsx +34 -25
- package/src/Middleware/Activity/defaultActivityPolymiddleware.tsx +104 -0
- package/src/Middleware/ActivityGrouping/createDefaultActivityGroupingDecoratorMiddleware.tsx +21 -0
- package/src/Middleware/ActivityGrouping/ui/LegacyActivityBridgeComposer.tsx +91 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGrouping.module.css +76 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGrouping.tsx +97 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGroupingList.tsx +30 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/CollapsibleGroupingTitle.tsx +29 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/PartGrouping.tsx +52 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/private/PartGroupingActivity.module.css +29 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/private/PartGroupingActivity.tsx +258 -0
- package/src/Middleware/ActivityGrouping/ui/PartGrouping/private/usePartGroupingLogicalGroup.ts +41 -0
- package/src/Middleware/ActivityGrouping/ui/RenderActivity.tsx +37 -0
- package/src/Middleware/ActivityGrouping/ui/RenderActivityGrouping.tsx +41 -0
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/SenderGrouping.tsx +49 -0
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/private/SenderGroupingContext.ts +18 -0
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/private/useSenderGroupingContext.ts +6 -0
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/useFirstActivity.ts +6 -0
- package/src/Middleware/ActivityGrouping/ui/SenderGrouping/useLastActivity.ts +6 -0
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/StatusGrouping.tsx +49 -0
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/private/StatusGroupingContext.ts +18 -0
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/private/useStatusGroupingContext.ts +6 -0
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/useFirstActivity.ts +6 -0
- package/src/Middleware/ActivityGrouping/ui/StatusGrouping/useLastActivity.ts +6 -0
- package/src/Middleware/ActivityStatus/createTimestampMiddleware.tsx +2 -2
- package/src/Middleware/Avatar/DefaultAvatar.tsx +61 -0
- package/src/Middleware/Avatar/createDefaultAvatarPolymiddleware.tsx +22 -0
- package/src/Middleware/ScrollToEndButton/ScrollToEndButton.tsx +58 -0
- package/src/ReactWebChat.tsx +3 -8
- package/src/ScreenReaderText.tsx +27 -34
- package/src/SendBox/AttachmentBar/AttachmentBar.module.css +32 -0
- package/src/SendBox/AttachmentBar/AttachmentBar.tsx +71 -0
- package/src/SendBox/AttachmentBar/AttachmentBarItem.module.css +137 -0
- package/src/SendBox/AttachmentBar/AttachmentBarItem.tsx +103 -0
- package/src/SendBox/AttachmentBar/ItemDeleteButton.tsx +61 -0
- package/src/SendBox/AttachmentBar/ItemPreview.tsx +52 -0
- package/src/SendBox/AttachmentBar/Preview/FilePreview.module.css +35 -0
- package/src/SendBox/AttachmentBar/Preview/FilePreview.tsx +63 -0
- package/src/SendBox/AttachmentBar/Preview/ImagePreview.module.css +5 -0
- package/src/SendBox/AttachmentBar/Preview/ImagePreview.tsx +46 -0
- package/src/SendBox/AttachmentBar/Preview/sendBoxAttachment.ts +13 -0
- package/src/SendBox/AttachmentBar/index.ts +3 -0
- package/src/SendBox/AutoResizeTextArea.tsx +28 -64
- package/src/SendBox/BasicSendBox.tsx +99 -30
- package/src/SendBox/DictationInterims.tsx +32 -21
- package/src/SendBox/DropZone.tsx +64 -0
- package/src/SendBox/IconButton.tsx +32 -30
- package/src/SendBox/MicrophoneButton.tsx +29 -23
- package/src/SendBox/SendButton.tsx +26 -21
- package/src/SendBox/SuggestedAction.tsx +60 -72
- package/src/SendBox/SuggestedActions.tsx +6 -9
- package/src/SendBox/TextBox.tsx +57 -39
- package/src/SendBoxToolbar/Assets/AttachmentIcon.tsx +6 -23
- package/src/SendBoxToolbar/BasicSendBoxToolbar.tsx +4 -2
- package/src/SendBoxToolbar/UploadButton.tsx +47 -26
- package/src/Styles/CSSCustomPropertiesContainer.tsx +195 -0
- package/src/Styles/CustomPropertyNames.ts +66 -6
- package/src/Styles/StyleSet/ActivityButton.ts +49 -0
- package/src/Styles/StyleSet/ActivityCopyButton.ts +40 -0
- package/src/Styles/StyleSet/AudioAttachment.ts +3 -3
- package/src/Styles/StyleSet/Avatar.ts +4 -3
- package/src/Styles/StyleSet/CarouselFilmStrip.ts +9 -7
- package/src/Styles/StyleSet/CarouselFilmStripAttachment.ts +3 -4
- package/src/Styles/StyleSet/ChatHistoryBox.ts +22 -0
- package/src/Styles/StyleSet/CodeBlock.ts +39 -0
- package/src/Styles/StyleSet/CodeBlockCopyButton.ts +71 -0
- package/src/Styles/StyleSet/ErrorBox.ts +2 -2
- package/src/Styles/StyleSet/FileContent.ts +2 -1
- package/src/Styles/StyleSet/ImageAvatar.ts +8 -5
- package/src/Styles/StyleSet/InitialsAvatar.ts +4 -5
- package/src/Styles/StyleSet/LinkDefinitions.ts +17 -11
- package/src/Styles/StyleSet/MicrophoneButton.ts +1 -1
- package/src/Styles/StyleSet/ModalDialog.ts +14 -8
- package/src/Styles/StyleSet/RenderMarkdown.ts +35 -0
- package/src/Styles/StyleSet/ScrollToEndButton.ts +0 -11
- package/src/Styles/StyleSet/SendBox.ts +57 -7
- package/src/Styles/StyleSet/SendBoxButton.ts +7 -5
- package/src/Styles/StyleSet/SendBoxTextBox.ts +6 -1
- package/src/Styles/StyleSet/SendStatus.ts +12 -0
- package/src/Styles/StyleSet/SpinnerAnimation.ts +3 -1
- package/src/Styles/StyleSet/StackedLayout.ts +18 -9
- package/src/Styles/StyleSet/SuggestedAction.ts +1 -13
- package/src/Styles/StyleSet/TextContent.ts +17 -2
- package/src/Styles/StyleSet/ThumbButton.ts +77 -24
- package/src/Styles/StyleSet/Tooltip.ts +66 -0
- package/src/Styles/StyleSet/TypingAnimation.ts +3 -1
- package/src/Styles/StyleSet/ViewCodeDialog.ts +70 -0
- package/src/Styles/StyleSet/types/StyleSet.ts +11 -0
- package/src/Styles/createStyleSet.ts +14 -14
- package/src/TextArea/TextArea.module.css +75 -0
- package/src/TextArea/TextArea.tsx +126 -0
- package/src/TextArea/index.ts +1 -0
- package/src/Tooltip/index.ts +1 -0
- package/src/Tooltip/private/Tooltip.tsx +26 -0
- package/src/Transcript/ActivityRow.tsx +100 -39
- package/src/Transcript/ActivityTree.tsx +35 -0
- package/src/Transcript/FocusTrap.tsx +96 -38
- package/src/Transcript/LiveRegion/SendFailed.tsx +8 -10
- package/src/Transcript/LiveRegionTranscript.tsx +11 -62
- package/src/Transcript/TranscriptFocus/TranscriptActivityList.tsx +22 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocus.module.css +117 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusArea.tsx +27 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusContent.tsx +34 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusContentActiveDescendant.tsx +26 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusContentBody.tsx +20 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusContentOverlay.tsx +20 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusIndicator.tsx +28 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusTerminator.tsx +42 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusTerminatorBody.tsx +20 -0
- package/src/Transcript/TranscriptFocus/TranscriptFocusTerminatorText.tsx +20 -0
- package/src/Transcript/TranscriptFocus/index.ts +25 -0
- package/src/Transcript/hooks/useRenderActivityProps.ts +88 -0
- package/src/Utils/AccessKeySink/Surface.tsx +63 -0
- package/src/Utils/AccessibleButton.tsx +64 -49
- package/src/Utils/AccessibleInputText.tsx +97 -106
- package/src/Utils/AccessibleTextArea.tsx +10 -41
- package/src/Utils/FixedWidthImage.tsx +60 -0
- package/src/Utils/FocusRedirector.tsx +31 -26
- package/src/Utils/InlineMarkdown.js +6 -1
- package/src/Utils/JSONLinkedData/__snapshots__/dereferenceBlankNodes.spec.ts.snap +17 -17
- package/src/Utils/JSONLinkedData/dereferenceBlankNodes.spec.ts +2 -0
- package/src/Utils/JSONLinkedData/dereferenceBlankNodes.ts +1 -1
- package/src/Utils/JSONLinkedData/getSafeOwnPropertyNames.ts +2 -2
- package/src/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.ts +2 -0
- package/src/Utils/LocalizedString.tsx +3 -3
- package/src/Utils/addTargetBlankToHyperlinksMarkdown.spec.js +4 -4
- package/src/Utils/createIconComponent.tsx +126 -0
- package/src/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.ts +2 -0
- package/src/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.ts +4 -4
- package/src/Utils/firstTabbableDescendant.js +0 -1
- package/src/Utils/orgSchema/getFirstBaseOfSoftwareSourceCode.ts +15 -0
- package/src/Utils/parseDocumentFragmentFromString.ts +9 -0
- package/src/Utils/readDataURIToBlob.ts +37 -0
- package/src/Utils/serializeDocumentFragmentIntoString.ts +3 -0
- package/src/Utils/supportPseudoClass.ts +1 -1
- package/src/Utils/tabbableElements.ts +7 -1
- package/src/Utils/textFormatToContentType.ts +14 -0
- package/src/Utils/updateMarkdownAttrs.spec.js +14 -14
- package/src/Utils/walkMarkdownTokens.spec.js +1 -1
- package/src/__tests__/addMetaTag.spec.js +8 -0
- package/src/__tests__/addMetaTag.spec.mjs +8 -0
- package/src/boot/component.ts +45 -0
- package/src/boot/decorator.ts +1 -0
- package/src/boot/hook.ts +118 -0
- package/src/boot/internal.ts +15 -0
- package/src/buildInfo.ts +9 -0
- package/src/decorator/index.ts +3 -0
- package/src/decorator/private/BorderFlair.module.css +566 -0
- package/src/decorator/private/BorderFlair.tsx +39 -0
- package/src/decorator/private/BorderLoader.module.css +53 -0
- package/src/decorator/private/BorderLoader.tsx +24 -0
- package/src/decorator/private/WebChatDecorator.tsx +64 -0
- package/src/decorator/stylesheet/DecoratorStylesheet.tsx +33 -0
- package/src/decorator/stylesheet/createDecoratorStyleElements.ts +8 -0
- package/src/env.d.ts +11 -0
- package/src/hooks/RenderMarkdown.module.css +102 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/internal/UITracker.js +1 -1
- package/src/hooks/internal/WebChatUIContext.ts +19 -1
- package/src/hooks/internal/codeHighlighter/index.ts +3 -0
- package/src/hooks/internal/codeHighlighter/private/CodeHighlighterComposer.tsx +32 -0
- package/src/hooks/internal/codeHighlighter/private/createCodeHighlighterComposer.tsx +32 -0
- package/src/hooks/internal/codeHighlighter/private/defaultHighlightCode.tsx +22 -0
- package/src/hooks/internal/createWaitUntilable.spec.ts +4 -2
- package/src/hooks/internal/createWaitUntilable.ts +1 -1
- package/src/hooks/internal/private/createOnEventShim.spec.ts +2 -0
- package/src/hooks/internal/styleToEmotionObject/index.ts +1 -0
- package/src/hooks/internal/styleToEmotionObject/private/StyleToEmotionObjectComposer.tsx +20 -0
- package/src/hooks/internal/styleToEmotionObject/private/createStyleToEmotionObjectComposer.tsx +22 -0
- package/src/hooks/internal/useEmotion.ts +37 -0
- package/src/hooks/internal/useFeedbackActions.ts +120 -0
- package/src/hooks/internal/useForceRenderAtInterval.ts +6 -6
- package/src/hooks/internal/useMemoized.spec.jsx +3 -3
- package/src/hooks/internal/useMemoized.ts +1 -1
- package/src/hooks/internal/useNonce.ts +7 -0
- package/src/hooks/internal/useObserveFocusVisible.ts +0 -1
- package/src/hooks/internal/useSanitizeHrefCallback.ts +37 -0
- package/src/hooks/internal/useStateRef.ts +1 -1
- package/src/hooks/sendBoxFocus.ts +6 -2
- package/src/hooks/transcriptScrollRelative.ts +6 -3
- package/src/hooks/useObserveScrollPosition.ts +3 -0
- package/src/hooks/useObserveTranscriptFocus.ts +9 -3
- package/src/hooks/useRenderMarkdownAsHTML.ts +32 -29
- package/src/hooks/useSendFiles.ts +4 -1
- package/src/hooks/useStreamingMarkdownWithDefinitions.ts +193 -0
- package/src/index.ts +30 -125
- package/src/providers/ActivityLogicalGrouping/ActivityLogicalGroupingComposer.ts +100 -0
- package/src/providers/ActivityLogicalGrouping/index.ts +7 -0
- package/src/providers/ActivityLogicalGrouping/private/ActivityLogicalGroupingContext.ts +31 -0
- package/src/providers/ActivityLogicalGrouping/private/useStateWithOptimisticRef.ts +13 -0
- package/src/providers/ActivityLogicalGrouping/useAddLogicalGrouping.ts +5 -0
- package/src/providers/ActivityLogicalGrouping/useGetGroupState.ts +5 -0
- package/src/providers/ActivityLogicalGrouping/useGetLogicalGroupBoundaries.ts +5 -0
- package/src/providers/ActivityLogicalGrouping/useGetLogicalGroupKey.ts +5 -0
- package/src/providers/ActivityLogicalGrouping/useRemoveLogicalGrouping.ts +5 -0
- package/src/providers/ChatHistoryDOM/ChatHistoryDOMComposer.tsx +18 -0
- package/src/providers/ChatHistoryDOM/private/ChatHistoryDOMContext.ts +11 -0
- package/src/providers/ChatHistoryDOM/useActivityElementRef.ts +6 -0
- package/src/providers/CustomElements/CustomElementsComposer.tsx +58 -0
- package/src/providers/CustomElements/customElements/CodeBlock.module.css +35 -0
- package/src/providers/CustomElements/customElements/CodeBlock.ts +230 -0
- package/src/providers/CustomElements/customElements/CodeBlockCopyButton.module.css +63 -0
- package/src/providers/CustomElements/customElements/CodeBlockCopyButton.tsx +108 -0
- package/src/providers/CustomElements/customElements/wrapAsCustomElement.ts +85 -0
- package/src/providers/CustomElements/private/CustomElementsContext.ts +15 -0
- package/src/providers/CustomElements/private/useCustomElementsContext.ts +6 -0
- package/src/providers/CustomElements/useCodeBlockCopyButtonTagName.ts +8 -0
- package/src/providers/CustomElements/useCodeBlockTagName.ts +19 -0
- package/src/providers/GroupedRenderingActivities/GroupedRenderingActivities.ts +10 -0
- package/src/providers/GroupedRenderingActivities/GroupedRenderingActivitiesComposer.tsx +87 -0
- package/src/providers/GroupedRenderingActivities/private/GroupedRenderingActivitiesContext.ts +14 -0
- package/src/providers/GroupedRenderingActivities/private/group.spec.ts +31 -0
- package/src/providers/GroupedRenderingActivities/private/group.ts +19 -0
- package/src/providers/GroupedRenderingActivities/private/pick.spec.ts +35 -0
- package/src/providers/GroupedRenderingActivities/private/pick.ts +20 -0
- package/src/providers/GroupedRenderingActivities/useGroupedRenderingActivities.ts +6 -0
- package/src/providers/GroupedRenderingActivities/useNumRenderingActivities.ts +5 -0
- package/src/providers/HTMLContentTransformCOR/HTMLContentTransformComposer.tsx +41 -0
- package/src/providers/HTMLContentTransformCOR/index.ts +8 -0
- package/src/providers/HTMLContentTransformCOR/private/HTMLContentTransformContext.ts +34 -0
- package/src/providers/HTMLContentTransformCOR/private/useHTMLContentTransformContext.ts +6 -0
- package/src/providers/HTMLContentTransformCOR/useTransformHTMLContent.ts +187 -0
- package/src/providers/LiveRegionTwin/index.ts +3 -0
- package/src/providers/LiveRegionTwin/private/LiveRegionTwinComposer.ts +27 -0
- package/src/providers/LiveRegionTwin/private/LiveRegionTwinContainer.tsx +27 -39
- package/src/providers/LiveRegionTwin/private/createLiveRegionTwinComposer.tsx +155 -0
- package/src/providers/LiveRegionTwin/private/useContext.ts +2 -8
- package/src/providers/LiveRegionTwin/useLiveRegion.ts +27 -0
- package/src/providers/LiveRegionTwin/useQueueStaticElement.ts +2 -2
- package/src/providers/ModalDialog/private/Popover.tsx +5 -15
- package/src/providers/ReducedMotion/ReducedMotionComposer.tsx +35 -0
- package/src/providers/ReducedMotion/private/Context.ts +22 -0
- package/src/providers/ReducedMotion/private/useContext.ts +8 -0
- package/src/providers/ReducedMotion/useShouldReduceMotion.ts +5 -0
- package/src/providers/RenderingActivities/RenderingActivitiesComposer.tsx +103 -0
- package/src/providers/RenderingActivities/private/RenderingActivitiesContext.ts +15 -0
- package/src/providers/RenderingActivities/useActivityRendererMap.ts +9 -0
- package/src/providers/RenderingActivities/useRenderingActivities.ts +7 -0
- package/src/providers/RenderingActivities/useRenderingActivityKeys.ts +5 -0
- package/src/providers/RovingTabIndex/RovingTabIndexComposer.tsx +20 -23
- package/src/providers/Theme/ThemeProvider.tsx +119 -40
- package/src/providers/Theme/private/Context.ts +18 -18
- package/src/providers/TranscriptFocus/TranscriptFocusComposer.spec.tsx +611 -0
- package/src/providers/TranscriptFocus/TranscriptFocusComposer.tsx +325 -68
- package/src/providers/TranscriptFocus/private/Context.ts +4 -0
- package/src/providers/TranscriptFocus/useActiveDescendantId.ts +4 -1
- package/src/providers/TranscriptFocus/useFocusByGroupKey.ts +11 -0
- package/src/providers/TranscriptFocus/useFocusRelativeActivity.ts +1 -1
- package/src/providers/TranscriptFocus/useFocusedKey.ts +6 -0
- package/src/providers/TranscriptFocus/useGetGroupDescendantIdByActivityKey.ts +5 -0
- package/src/providers/createContextAndHook.ts +23 -0
- package/src/providers/internal/SendBox/SendBoxComposer.tsx +30 -38
- package/src/stylesheet/ComponentStylesheet.tsx +33 -0
- package/src/stylesheet/createComponentStyleElements.ts +8 -0
- package/src/testIds.ts +18 -0
- package/src/tsconfig.json +8 -14
- package/src/types/internal/mutableRefObject.ts +40 -0
- package/src/types/internal/refObject.ts +40 -0
- package/dist/botframework-webchat-component.internal.mjs.LEGAL.txt +0 -0
- package/dist/botframework-webchat-component.mjs.LEGAL.txt +0 -0
- package/dist/chunk-X37JABN5.mjs +0 -5
- package/dist/chunk-X37JABN5.mjs.LEGAL.txt +0 -0
- package/dist/chunk-X37JABN5.mjs.map +0 -1
- package/lib/Activity/Avatar.d.ts +0 -10
- package/lib/Activity/Avatar.d.ts.map +0 -1
- package/lib/Activity/Avatar.js +0 -35
- package/lib/Activity/Bubble.d.ts +0 -11
- package/lib/Activity/Bubble.d.ts.map +0 -1
- package/lib/Activity/Bubble.js +0 -137
- package/lib/Activity/CarouselFilmStrip.js +0 -264
- package/lib/Activity/CarouselFilmStripAttachment.js +0 -93
- package/lib/Activity/CarouselLayout.js +0 -133
- package/lib/Activity/SayAlt.js +0 -31
- package/lib/Activity/Speak.d.ts +0 -8
- package/lib/Activity/Speak.d.ts.map +0 -1
- package/lib/Activity/Speak.js +0 -99
- package/lib/Activity/StackedLayout.d.ts +0 -17
- package/lib/Activity/StackedLayout.d.ts.map +0 -1
- package/lib/Activity/StackedLayout.js +0 -233
- package/lib/ActivityStatus/AbsoluteTime.js +0 -38
- package/lib/ActivityStatus/OthersActivityStatus.d.ts +0 -8
- package/lib/ActivityStatus/OthersActivityStatus.d.ts.map +0 -1
- package/lib/ActivityStatus/OthersActivityStatus.js +0 -105
- package/lib/ActivityStatus/SelfActivityStatus.d.ts +0 -8
- package/lib/ActivityStatus/SelfActivityStatus.d.ts.map +0 -1
- package/lib/ActivityStatus/SelfActivityStatus.js +0 -37
- package/lib/ActivityStatus/SendStatus/SendStatus.d.ts +0 -10
- package/lib/ActivityStatus/SendStatus/SendStatus.d.ts.map +0 -1
- package/lib/ActivityStatus/SendStatus/SendStatus.js +0 -58
- package/lib/ActivityStatus/SendStatus/private/SendFailedRetry.js +0 -35
- package/lib/ActivityStatus/Slotted.d.ts +0 -7
- package/lib/ActivityStatus/Slotted.d.ts.map +0 -1
- package/lib/ActivityStatus/Slotted.js +0 -31
- package/lib/ActivityStatus/Timestamp.d.ts +0 -7
- package/lib/ActivityStatus/Timestamp.d.ts.map +0 -1
- package/lib/ActivityStatus/Timestamp.js +0 -36
- package/lib/ActivityStatus/private/Feedback/Feedback.d.ts +0 -8
- package/lib/ActivityStatus/private/Feedback/Feedback.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/Feedback.js +0 -67
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.d.ts +0 -9
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.js +0 -34
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.d.ts +0 -9
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/private/ThumbButton.js +0 -57
- package/lib/ActivityStatus/private/Feedback/private/VoteButton.d.ts +0 -10
- package/lib/ActivityStatus/private/Feedback/private/VoteButton.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/private/VoteButton.js +0 -43
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.d.ts +0 -7
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.js +0 -28
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.d.ts +0 -7
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.js +0 -28
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.d.ts +0 -7
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.js +0 -28
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.d.ts +0 -7
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.js +0 -28
- package/lib/ActivityStatus/private/Originator.d.ts +0 -8
- package/lib/ActivityStatus/private/Originator.d.ts.map +0 -1
- package/lib/ActivityStatus/private/Originator.js +0 -29
- package/lib/ActivityStatus/private/RelativeTime.js +0 -37
- package/lib/Assets/TypingAnimation.js +0 -47
- package/lib/Attachment/Assets/DownloadIcon.js +0 -35
- package/lib/Attachment/AudioAttachment.js +0 -38
- package/lib/Attachment/AudioContent.d.ts +0 -11
- package/lib/Attachment/AudioContent.d.ts.map +0 -1
- package/lib/Attachment/AudioContent.js +0 -51
- package/lib/Attachment/FileAttachment.js +0 -43
- package/lib/Attachment/FileContent.d.ts +0 -10
- package/lib/Attachment/FileContent.d.ts.map +0 -1
- package/lib/Attachment/FileContent.js +0 -120
- package/lib/Attachment/HTMLVideoContent.d.ts +0 -11
- package/lib/Attachment/HTMLVideoContent.d.ts.map +0 -1
- package/lib/Attachment/HTMLVideoContent.js +0 -51
- package/lib/Attachment/ImageAttachment.js +0 -41
- package/lib/Attachment/ImageContent.d.ts +0 -8
- package/lib/Attachment/ImageContent.d.ts.map +0 -1
- package/lib/Attachment/ImageContent.js +0 -41
- package/lib/Attachment/Text/TextAttachment.d.ts +0 -12
- package/lib/Attachment/Text/TextAttachment.d.ts.map +0 -1
- package/lib/Attachment/Text/TextAttachment.js +0 -27
- package/lib/Attachment/Text/TextContent.d.ts +0 -10
- package/lib/Attachment/Text/TextContent.d.ts.map +0 -1
- package/lib/Attachment/Text/TextContent.js +0 -34
- package/lib/Attachment/Text/private/CitationModalContent.d.ts +0 -8
- package/lib/Attachment/Text/private/CitationModalContent.d.ts.map +0 -1
- package/lib/Attachment/Text/private/CitationModalContent.js +0 -45
- package/lib/Attachment/Text/private/MarkdownTextContent.d.ts +0 -9
- package/lib/Attachment/Text/private/MarkdownTextContent.d.ts.map +0 -1
- package/lib/Attachment/Text/private/MarkdownTextContent.js +0 -204
- package/lib/Attachment/Text/private/MessageSensitivityLabel.d.ts +0 -12
- package/lib/Attachment/Text/private/MessageSensitivityLabel.d.ts.map +0 -1
- package/lib/Attachment/Text/private/MessageSensitivityLabel.js +0 -38
- package/lib/Attachment/Text/private/PlainTextContent.d.ts +0 -7
- package/lib/Attachment/Text/private/PlainTextContent.d.ts.map +0 -1
- package/lib/Attachment/Text/private/PlainTextContent.js +0 -35
- package/lib/Attachment/Text/private/ShieldIcon.d.ts +0 -9
- package/lib/Attachment/Text/private/ShieldIcon.d.ts.map +0 -1
- package/lib/Attachment/Text/private/ShieldIcon.js +0 -39
- package/lib/Attachment/Text/private/isHTMLButtonElement.d.ts +0 -2
- package/lib/Attachment/Text/private/isHTMLButtonElement.d.ts.map +0 -1
- package/lib/Attachment/Text/private/isHTMLButtonElement.js +0 -10
- package/lib/Attachment/VideoAttachment.js +0 -45
- package/lib/Attachment/VideoContent.d.ts +0 -11
- package/lib/Attachment/VideoContent.d.ts.map +0 -1
- package/lib/Attachment/VideoContent.js +0 -103
- package/lib/Attachment/VimeoContent.d.ts +0 -10
- package/lib/Attachment/VimeoContent.d.ts.map +0 -1
- package/lib/Attachment/VimeoContent.js +0 -59
- package/lib/Attachment/YouTubeContent.d.ts +0 -10
- package/lib/Attachment/YouTubeContent.d.ts.map +0 -1
- package/lib/Attachment/YouTubeContent.js +0 -60
- package/lib/Attachment/createMiddleware.d.ts +0 -3
- package/lib/Attachment/createMiddleware.d.ts.map +0 -1
- package/lib/Attachment/createMiddleware.js +0 -64
- package/lib/Attachment/private/types/WebChatAttachment.d.ts +0 -9
- package/lib/Attachment/private/types/WebChatAttachment.d.ts.map +0 -1
- package/lib/Attachment/private/types/WebChatAttachment.js +0 -2
- package/lib/Avatar/ImageAvatar.js +0 -59
- package/lib/Avatar/InitialsAvatar.js +0 -57
- package/lib/BasicConnectivityStatus.js +0 -46
- package/lib/BasicToast.js +0 -103
- package/lib/BasicToaster.js +0 -176
- package/lib/BasicTranscript.d.ts +0 -7
- package/lib/BasicTranscript.d.ts.map +0 -1
- package/lib/BasicTranscript.js +0 -735
- package/lib/BasicTypingIndicator.d.ts +0 -6
- package/lib/BasicTypingIndicator.d.ts.map +0 -1
- package/lib/BasicTypingIndicator.js +0 -54
- package/lib/BasicWebChat.d.ts +0 -9
- package/lib/BasicWebChat.d.ts.map +0 -1
- package/lib/BasicWebChat.js +0 -90
- package/lib/Composer.d.ts +0 -50
- package/lib/Composer.d.ts.map +0 -1
- package/lib/Composer.js +0 -336
- package/lib/ConnectivityStatus/Assets/ErrorNotificationIcon.js +0 -47
- package/lib/ConnectivityStatus/Assets/SpinnerAnimation.js +0 -32
- package/lib/ConnectivityStatus/Assets/WarningNotificationIcon.js +0 -47
- package/lib/ConnectivityStatus/Connected.js +0 -20
- package/lib/ConnectivityStatus/Connecting.js +0 -82
- package/lib/ConnectivityStatus/FailedToConnect.js +0 -41
- package/lib/ConnectivityStatus/JavaScriptError.js +0 -41
- package/lib/Dictation.js +0 -158
- package/lib/ErrorBox.d.ts +0 -8
- package/lib/ErrorBox.d.ts.map +0 -1
- package/lib/ErrorBox.js +0 -42
- package/lib/LinkDefinition/LinkDefinitionItem.d.ts +0 -12
- package/lib/LinkDefinition/LinkDefinitionItem.d.ts.map +0 -1
- package/lib/LinkDefinition/LinkDefinitionItem.js +0 -57
- package/lib/LinkDefinition/LinkDefinitions.d.ts +0 -12
- package/lib/LinkDefinition/LinkDefinitions.d.ts.map +0 -1
- package/lib/LinkDefinition/LinkDefinitions.js +0 -69
- package/lib/LinkDefinition/index.d.ts +0 -4
- package/lib/LinkDefinition/index.d.ts.map +0 -1
- package/lib/LinkDefinition/index.js +0 -21
- package/lib/LinkDefinition/private/Badge.d.ts +0 -7
- package/lib/LinkDefinition/private/Badge.d.ts.map +0 -1
- package/lib/LinkDefinition/private/Badge.js +0 -20
- package/lib/LinkDefinition/private/Chevron.d.ts +0 -4
- package/lib/LinkDefinition/private/Chevron.d.ts.map +0 -1
- package/lib/LinkDefinition/private/Chevron.js +0 -27
- package/lib/LinkDefinition/private/ItemBody.d.ts +0 -11
- package/lib/LinkDefinition/private/ItemBody.d.ts.map +0 -1
- package/lib/LinkDefinition/private/ItemBody.js +0 -41
- package/lib/LinkDefinition/private/OpenInNewWindowIcon.d.ts +0 -7
- package/lib/LinkDefinition/private/OpenInNewWindowIcon.d.ts.map +0 -1
- package/lib/LinkDefinition/private/OpenInNewWindowIcon.js +0 -23
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.d.ts +0 -2
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.d.ts.map +0 -1
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.js +0 -24
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.spec.d.ts +0 -2
- package/lib/LinkDefinition/private/extractHostnameWithSubdomain.spec.d.ts.map +0 -1
- package/lib/LiveRegion/LiveRegionActivity.d.ts +0 -9
- package/lib/LiveRegion/LiveRegionActivity.d.ts.map +0 -1
- package/lib/LiveRegion/LiveRegionActivity.js +0 -70
- package/lib/LiveRegion/private/LiveRegionAttachments.d.ts +0 -11
- package/lib/LiveRegion/private/LiveRegionAttachments.d.ts.map +0 -1
- package/lib/LiveRegion/private/LiveRegionAttachments.js +0 -53
- package/lib/LiveRegion/private/LiveRegionSuggestedActions.d.ts +0 -8
- package/lib/LiveRegion/private/LiveRegionSuggestedActions.d.ts.map +0 -1
- package/lib/LiveRegion/private/LiveRegionSuggestedActions.js +0 -37
- package/lib/Middleware/Activity/createCoreMiddleware.d.ts +0 -3
- package/lib/Middleware/Activity/createCoreMiddleware.d.ts.map +0 -1
- package/lib/Middleware/Activity/createCoreMiddleware.js +0 -95
- package/lib/Middleware/ActivityStatus/createCoreMiddleware.d.ts +0 -3
- package/lib/Middleware/ActivityStatus/createCoreMiddleware.d.ts.map +0 -1
- package/lib/Middleware/ActivityStatus/createCoreMiddleware.js +0 -13
- package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.d.ts +0 -3
- package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.d.ts.map +0 -1
- package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.js +0 -41
- package/lib/Middleware/ActivityStatus/createTimestampMiddleware.d.ts +0 -3
- package/lib/Middleware/ActivityStatus/createTimestampMiddleware.d.ts.map +0 -1
- package/lib/Middleware/ActivityStatus/createTimestampMiddleware.js +0 -48
- package/lib/Middleware/AttachmentForScreenReader/AudioAttachment.js +0 -18
- package/lib/Middleware/AttachmentForScreenReader/FileAttachment.js +0 -28
- package/lib/Middleware/AttachmentForScreenReader/ImageAttachment.js +0 -18
- package/lib/Middleware/AttachmentForScreenReader/TextAttachment.js +0 -28
- package/lib/Middleware/AttachmentForScreenReader/VideoAttachment.js +0 -18
- package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.d.ts +0 -3
- package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.d.ts.map +0 -1
- package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.js +0 -61
- package/lib/Middleware/Avatar/createCoreMiddleware.d.ts +0 -11
- package/lib/Middleware/Avatar/createCoreMiddleware.d.ts.map +0 -1
- package/lib/Middleware/Avatar/createCoreMiddleware.js +0 -82
- package/lib/Middleware/CardAction/createCoreMiddleware.js +0 -108
- package/lib/Middleware/ScrollToEndButton/ScrollToEndButton.js +0 -52
- package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.d.ts +0 -3
- package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.d.ts.map +0 -1
- package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.js +0 -27
- package/lib/Middleware/Toast/createCoreMiddleware.d.ts +0 -4
- package/lib/Middleware/Toast/createCoreMiddleware.d.ts.map +0 -1
- package/lib/Middleware/Toast/createCoreMiddleware.js +0 -27
- package/lib/Middleware/TypingIndicator/createCoreMiddleware.d.ts +0 -3
- package/lib/Middleware/TypingIndicator/createCoreMiddleware.d.ts.map +0 -1
- package/lib/Middleware/TypingIndicator/createCoreMiddleware.js +0 -47
- package/lib/ReactWebChat.d.ts +0 -42
- package/lib/ReactWebChat.d.ts.map +0 -1
- package/lib/ReactWebChat.js +0 -52
- package/lib/ScreenReaderText.d.ts +0 -9
- package/lib/ScreenReaderText.d.ts.map +0 -1
- package/lib/ScreenReaderText.js +0 -58
- package/lib/SendBox/Assets/MicrophoneIcon.js +0 -25
- package/lib/SendBox/Assets/SendIcon.js +0 -45
- package/lib/SendBox/AutoResizeTextArea.d.ts +0 -24
- package/lib/SendBox/AutoResizeTextArea.d.ts.map +0 -1
- package/lib/SendBox/AutoResizeTextArea.js +0 -113
- package/lib/SendBox/BasicSendBox.d.ts +0 -9
- package/lib/SendBox/BasicSendBox.d.ts.map +0 -1
- package/lib/SendBox/BasicSendBox.js +0 -123
- package/lib/SendBox/DictationInterims.d.ts +0 -7
- package/lib/SendBox/DictationInterims.d.ts.map +0 -1
- package/lib/SendBox/DictationInterims.js +0 -68
- package/lib/SendBox/IconButton.d.ts +0 -11
- package/lib/SendBox/IconButton.d.ts.map +0 -1
- package/lib/SendBox/IconButton.js +0 -73
- package/lib/SendBox/MicrophoneButton.d.ts +0 -10
- package/lib/SendBox/MicrophoneButton.d.ts.map +0 -1
- package/lib/SendBox/MicrophoneButton.js +0 -160
- package/lib/SendBox/SendButton.d.ts +0 -7
- package/lib/SendBox/SendButton.d.ts.map +0 -1
- package/lib/SendBox/SendButton.js +0 -53
- package/lib/SendBox/SuggestedAction.d.ts +0 -16
- package/lib/SendBox/SuggestedAction.d.ts.map +0 -1
- package/lib/SendBox/SuggestedAction.js +0 -166
- package/lib/SendBox/SuggestedActions.d.ts +0 -7
- package/lib/SendBox/SuggestedActions.d.ts.map +0 -1
- package/lib/SendBox/SuggestedActions.js +0 -256
- package/lib/SendBox/TextBox.d.ts +0 -24
- package/lib/SendBox/TextBox.d.ts.map +0 -1
- package/lib/SendBox/TextBox.js +0 -252
- package/lib/SendBox/createMiddleware.d.ts +0 -4
- package/lib/SendBox/createMiddleware.d.ts.map +0 -1
- package/lib/SendBox/createMiddleware.js +0 -38
- package/lib/SendBoxToolbar/Assets/AttachmentIcon.d.ts +0 -7
- package/lib/SendBoxToolbar/Assets/AttachmentIcon.d.ts.map +0 -1
- package/lib/SendBoxToolbar/Assets/AttachmentIcon.js +0 -63
- package/lib/SendBoxToolbar/BasicSendBoxToolbar.d.ts +0 -6
- package/lib/SendBoxToolbar/BasicSendBoxToolbar.d.ts.map +0 -1
- package/lib/SendBoxToolbar/BasicSendBoxToolbar.js +0 -32
- package/lib/SendBoxToolbar/UploadButton.d.ts +0 -7
- package/lib/SendBoxToolbar/UploadButton.d.ts.map +0 -1
- package/lib/SendBoxToolbar/UploadButton.js +0 -156
- package/lib/SendBoxToolbar/createMiddleware.d.ts +0 -4
- package/lib/SendBoxToolbar/createMiddleware.d.ts.map +0 -1
- package/lib/SendBoxToolbar/createMiddleware.js +0 -20
- package/lib/Styles/CSSTokens.d.ts +0 -16
- package/lib/Styles/CSSTokens.d.ts.map +0 -1
- package/lib/Styles/CSSTokens.js +0 -19
- package/lib/Styles/CustomPropertyNames.d.ts +0 -13
- package/lib/Styles/CustomPropertyNames.d.ts.map +0 -1
- package/lib/Styles/CustomPropertyNames.js +0 -24
- package/lib/Styles/StyleSet/Activities.d.ts +0 -5
- package/lib/Styles/StyleSet/Activities.d.ts.map +0 -1
- package/lib/Styles/StyleSet/Activities.js +0 -13
- package/lib/Styles/StyleSet/AudioAttachment.d.ts +0 -6
- package/lib/Styles/StyleSet/AudioAttachment.d.ts.map +0 -1
- package/lib/Styles/StyleSet/AudioAttachment.js +0 -15
- package/lib/Styles/StyleSet/AudioContent.d.ts +0 -4
- package/lib/Styles/StyleSet/AudioContent.d.ts.map +0 -1
- package/lib/Styles/StyleSet/AudioContent.js +0 -12
- package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts +0 -37
- package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts.map +0 -1
- package/lib/Styles/StyleSet/AutoResizeTextArea.js +0 -45
- package/lib/Styles/StyleSet/Avatar.d.ts +0 -9
- package/lib/Styles/StyleSet/Avatar.d.ts.map +0 -1
- package/lib/Styles/StyleSet/Avatar.js +0 -18
- package/lib/Styles/StyleSet/BasicTranscript.d.ts +0 -85
- package/lib/Styles/StyleSet/BasicTranscript.d.ts.map +0 -1
- package/lib/Styles/StyleSet/BasicTranscript.js +0 -110
- package/lib/Styles/StyleSet/Bubble.d.ts +0 -5
- package/lib/Styles/StyleSet/Bubble.d.ts.map +0 -1
- package/lib/Styles/StyleSet/Bubble.js +0 -153
- package/lib/Styles/StyleSet/CSSCustomProperties.d.ts +0 -16
- package/lib/Styles/StyleSet/CSSCustomProperties.d.ts.map +0 -1
- package/lib/Styles/StyleSet/CSSCustomProperties.js +0 -27
- package/lib/Styles/StyleSet/CarouselFilmStrip.d.ts +0 -5
- package/lib/Styles/StyleSet/CarouselFilmStrip.d.ts.map +0 -1
- package/lib/Styles/StyleSet/CarouselFilmStrip.js +0 -90
- package/lib/Styles/StyleSet/CarouselFilmStripAttachment.d.ts +0 -3
- package/lib/Styles/StyleSet/CarouselFilmStripAttachment.d.ts.map +0 -1
- package/lib/Styles/StyleSet/CarouselFilmStripAttachment.js +0 -57
- package/lib/Styles/StyleSet/CarouselFlipper.d.ts +0 -27
- package/lib/Styles/StyleSet/CarouselFlipper.d.ts.map +0 -1
- package/lib/Styles/StyleSet/CarouselFlipper.js +0 -42
- package/lib/Styles/StyleSet/CitationModalDialog.d.ts +0 -8
- package/lib/Styles/StyleSet/CitationModalDialog.d.ts.map +0 -1
- package/lib/Styles/StyleSet/CitationModalDialog.js +0 -16
- package/lib/Styles/StyleSet/ConnectivityNotification.d.ts +0 -13
- package/lib/Styles/StyleSet/ConnectivityNotification.d.ts.map +0 -1
- package/lib/Styles/StyleSet/ConnectivityNotification.js +0 -26
- package/lib/Styles/StyleSet/Constants.d.ts +0 -6
- package/lib/Styles/StyleSet/Constants.d.ts.map +0 -1
- package/lib/Styles/StyleSet/Constants.js +0 -15
- package/lib/Styles/StyleSet/DictationInterims.d.ts +0 -13
- package/lib/Styles/StyleSet/DictationInterims.d.ts.map +0 -1
- package/lib/Styles/StyleSet/DictationInterims.js +0 -22
- package/lib/Styles/StyleSet/ErrorBox.d.ts +0 -33
- package/lib/Styles/StyleSet/ErrorBox.d.ts.map +0 -1
- package/lib/Styles/StyleSet/ErrorBox.js +0 -43
- package/lib/Styles/StyleSet/ErrorNotification.d.ts +0 -23
- package/lib/Styles/StyleSet/ErrorNotification.d.ts.map +0 -1
- package/lib/Styles/StyleSet/ErrorNotification.js +0 -36
- package/lib/Styles/StyleSet/FileContent.d.ts +0 -32
- package/lib/Styles/StyleSet/FileContent.d.ts.map +0 -1
- package/lib/Styles/StyleSet/FileContent.js +0 -43
- package/lib/Styles/StyleSet/ImageAvatar.d.ts +0 -7
- package/lib/Styles/StyleSet/ImageAvatar.d.ts.map +0 -1
- package/lib/Styles/StyleSet/ImageAvatar.js +0 -15
- package/lib/Styles/StyleSet/InitialsAvatar.d.ts +0 -19
- package/lib/Styles/StyleSet/InitialsAvatar.d.ts.map +0 -1
- package/lib/Styles/StyleSet/InitialsAvatar.js +0 -31
- package/lib/Styles/StyleSet/KeyboardHelp.d.ts +0 -152
- package/lib/Styles/StyleSet/KeyboardHelp.d.ts.map +0 -1
- package/lib/Styles/StyleSet/KeyboardHelp.js +0 -168
- package/lib/Styles/StyleSet/LinkDefinitions.d.ts +0 -165
- package/lib/Styles/StyleSet/LinkDefinitions.d.ts.map +0 -1
- package/lib/Styles/StyleSet/LinkDefinitions.js +0 -180
- package/lib/Styles/StyleSet/MicrophoneButton.d.ts +0 -13
- package/lib/Styles/StyleSet/MicrophoneButton.d.ts.map +0 -1
- package/lib/Styles/StyleSet/MicrophoneButton.js +0 -21
- package/lib/Styles/StyleSet/ModalDialog.d.ts +0 -94
- package/lib/Styles/StyleSet/ModalDialog.d.ts.map +0 -1
- package/lib/Styles/StyleSet/ModalDialog.js +0 -98
- package/lib/Styles/StyleSet/RenderMarkdown.d.ts +0 -51
- package/lib/Styles/StyleSet/RenderMarkdown.d.ts.map +0 -1
- package/lib/Styles/StyleSet/RenderMarkdown.js +0 -67
- package/lib/Styles/StyleSet/Root.d.ts +0 -8
- package/lib/Styles/StyleSet/Root.d.ts.map +0 -1
- package/lib/Styles/StyleSet/Root.js +0 -19
- package/lib/Styles/StyleSet/ScrollToEndButton.d.ts +0 -36
- package/lib/Styles/StyleSet/ScrollToEndButton.d.ts.map +0 -1
- package/lib/Styles/StyleSet/ScrollToEndButton.js +0 -55
- package/lib/Styles/StyleSet/SendBox.d.ts +0 -24
- package/lib/Styles/StyleSet/SendBox.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SendBox.js +0 -37
- package/lib/Styles/StyleSet/SendBoxButton.d.ts +0 -79
- package/lib/Styles/StyleSet/SendBoxButton.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SendBoxButton.js +0 -112
- package/lib/Styles/StyleSet/SendBoxTextBox.d.ts +0 -41
- package/lib/Styles/StyleSet/SendBoxTextBox.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SendBoxTextBox.js +0 -57
- package/lib/Styles/StyleSet/SendStatus.d.ts +0 -19
- package/lib/Styles/StyleSet/SendStatus.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SendStatus.js +0 -29
- package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts +0 -11
- package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SingleAttachmentActivity.js +0 -21
- package/lib/Styles/StyleSet/SlottedActivityStatus.d.ts +0 -12
- package/lib/Styles/StyleSet/SlottedActivityStatus.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SlottedActivityStatus.js +0 -22
- package/lib/Styles/StyleSet/SpinnerAnimation.d.ts +0 -15
- package/lib/Styles/StyleSet/SpinnerAnimation.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SpinnerAnimation.js +0 -34
- package/lib/Styles/StyleSet/StackedLayout.d.ts +0 -63
- package/lib/Styles/StyleSet/StackedLayout.d.ts.map +0 -1
- package/lib/Styles/StyleSet/StackedLayout.js +0 -77
- package/lib/Styles/StyleSet/SuggestedAction.d.ts +0 -94
- package/lib/Styles/StyleSet/SuggestedAction.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SuggestedAction.js +0 -152
- package/lib/Styles/StyleSet/SuggestedActions.d.ts +0 -139
- package/lib/Styles/StyleSet/SuggestedActions.d.ts.map +0 -1
- package/lib/Styles/StyleSet/SuggestedActions.js +0 -165
- package/lib/Styles/StyleSet/TextContent.d.ts +0 -24
- package/lib/Styles/StyleSet/TextContent.d.ts.map +0 -1
- package/lib/Styles/StyleSet/TextContent.js +0 -34
- package/lib/Styles/StyleSet/ThumbButton.d.ts +0 -32
- package/lib/Styles/StyleSet/ThumbButton.d.ts.map +0 -1
- package/lib/Styles/StyleSet/ThumbButton.js +0 -44
- package/lib/Styles/StyleSet/Toast.d.ts +0 -65
- package/lib/Styles/StyleSet/Toast.d.ts.map +0 -1
- package/lib/Styles/StyleSet/Toast.js +0 -83
- package/lib/Styles/StyleSet/Toaster.d.ts +0 -111
- package/lib/Styles/StyleSet/Toaster.d.ts.map +0 -1
- package/lib/Styles/StyleSet/Toaster.js +0 -137
- package/lib/Styles/StyleSet/TypingAnimation.d.ts +0 -8
- package/lib/Styles/StyleSet/TypingAnimation.d.ts.map +0 -1
- package/lib/Styles/StyleSet/TypingAnimation.js +0 -26
- package/lib/Styles/StyleSet/TypingIndicator.d.ts +0 -11
- package/lib/Styles/StyleSet/TypingIndicator.d.ts.map +0 -1
- package/lib/Styles/StyleSet/TypingIndicator.js +0 -19
- package/lib/Styles/StyleSet/UploadButton.d.ts +0 -14
- package/lib/Styles/StyleSet/UploadButton.d.ts.map +0 -1
- package/lib/Styles/StyleSet/UploadButton.js +0 -27
- package/lib/Styles/StyleSet/VideoAttachment.d.ts +0 -2
- package/lib/Styles/StyleSet/VideoAttachment.d.ts.map +0 -1
- package/lib/Styles/StyleSet/VideoAttachment.js +0 -10
- package/lib/Styles/StyleSet/VideoContent.d.ts +0 -6
- package/lib/Styles/StyleSet/VideoContent.d.ts.map +0 -1
- package/lib/Styles/StyleSet/VideoContent.js +0 -14
- package/lib/Styles/StyleSet/VimeoContent.d.ts +0 -7
- package/lib/Styles/StyleSet/VimeoContent.d.ts.map +0 -1
- package/lib/Styles/StyleSet/VimeoContent.js +0 -15
- package/lib/Styles/StyleSet/WarningNotification.d.ts +0 -22
- package/lib/Styles/StyleSet/WarningNotification.d.ts.map +0 -1
- package/lib/Styles/StyleSet/WarningNotification.js +0 -37
- package/lib/Styles/StyleSet/YouTubeContent.d.ts +0 -7
- package/lib/Styles/StyleSet/YouTubeContent.d.ts.map +0 -1
- package/lib/Styles/StyleSet/YouTubeContent.js +0 -15
- package/lib/Styles/createStyleSet.d.ts +0 -1803
- package/lib/Styles/createStyleSet.d.ts.map +0 -1
- package/lib/Styles/createStyleSet.js +0 -121
- package/lib/Styles/mirrorStyle.js +0 -40
- package/lib/Toast/CheckMarkIcon.js +0 -36
- package/lib/Toast/CollapseIcon.js +0 -32
- package/lib/Toast/DismissIcon.js +0 -32
- package/lib/Toast/ExclamationMarkIcon.js +0 -34
- package/lib/Toast/ExpandIcon.js +0 -32
- package/lib/Toast/NotificationIcon.js +0 -46
- package/lib/Toast/createToastMiddleware.d.ts +0 -4
- package/lib/Toast/createToastMiddleware.d.ts.map +0 -1
- package/lib/Toast/createToastMiddleware.js +0 -26
- package/lib/Transcript/ActivityRow.d.ts +0 -9
- package/lib/Transcript/ActivityRow.d.ts.map +0 -1
- package/lib/Transcript/ActivityRow.js +0 -137
- package/lib/Transcript/FocusTrap.d.ts +0 -9
- package/lib/Transcript/FocusTrap.d.ts.map +0 -1
- package/lib/Transcript/FocusTrap.js +0 -76
- package/lib/Transcript/KeyboardHelp.d.ts +0 -4
- package/lib/Transcript/KeyboardHelp.d.ts.map +0 -1
- package/lib/Transcript/KeyboardHelp.js +0 -562
- package/lib/Transcript/LiveRegion/SendFailed.d.ts +0 -14
- package/lib/Transcript/LiveRegion/SendFailed.d.ts.map +0 -1
- package/lib/Transcript/LiveRegion/SendFailed.js +0 -90
- package/lib/Transcript/LiveRegion/isPresentational.d.ts +0 -9
- package/lib/Transcript/LiveRegion/isPresentational.d.ts.map +0 -1
- package/lib/Transcript/LiveRegion/isPresentational.js +0 -30
- package/lib/Transcript/LiveRegionTranscript.d.ts +0 -8
- package/lib/Transcript/LiveRegionTranscript.d.ts.map +0 -1
- package/lib/Transcript/LiveRegionTranscript.js +0 -178
- package/lib/Transcript/types.d.ts +0 -2
- package/lib/Transcript/types.d.ts.map +0 -1
- package/lib/Transcript/types.js +0 -2
- package/lib/Transcript/useActivityAccessibleName.d.ts +0 -11
- package/lib/Transcript/useActivityAccessibleName.d.ts.map +0 -1
- package/lib/Transcript/useActivityAccessibleName.js +0 -103
- package/lib/Transcript/useTypistNames.d.ts +0 -3
- package/lib/Transcript/useTypistNames.d.ts.map +0 -1
- package/lib/Transcript/useTypistNames.js +0 -50
- package/lib/TranscriptActivity.d.ts +0 -17
- package/lib/TranscriptActivity.d.ts.map +0 -1
- package/lib/TranscriptActivity.js +0 -48
- package/lib/Utils/AccessKeySink/Surface.js +0 -74
- package/lib/Utils/AccessKeySink/internal/Context.js +0 -11
- package/lib/Utils/AccessKeySink/internal/useContext.js +0 -13
- package/lib/Utils/AccessKeySink/useFocusAccessKeyEffect.js +0 -34
- package/lib/Utils/AccessibleButton.d.ts +0 -11
- package/lib/Utils/AccessibleButton.d.ts.map +0 -1
- package/lib/Utils/AccessibleButton.js +0 -78
- package/lib/Utils/AccessibleInputText.d.ts +0 -22
- package/lib/Utils/AccessibleInputText.d.ts.map +0 -1
- package/lib/Utils/AccessibleInputText.js +0 -114
- package/lib/Utils/AccessibleTextArea.d.ts +0 -20
- package/lib/Utils/AccessibleTextArea.d.ts.map +0 -1
- package/lib/Utils/AccessibleTextArea.js +0 -105
- package/lib/Utils/CroppedImage.js +0 -61
- package/lib/Utils/FocusRedirector.d.ts +0 -9
- package/lib/Utils/FocusRedirector.d.ts.map +0 -1
- package/lib/Utils/FocusRedirector.js +0 -61
- package/lib/Utils/InlineMarkdown.js +0 -166
- package/lib/Utils/JSONLinkedData/BlankNode.d.ts +0 -15
- package/lib/Utils/JSONLinkedData/BlankNode.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/BlankNode.js +0 -2
- package/lib/Utils/JSONLinkedData/__snapshots__/dereferenceBlankNodes.spec.ts.snap +0 -92
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.d.ts +0 -16
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.js +0 -96
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.spec.d.ts +0 -2
- package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.spec.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.d.ts +0 -10
- package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.js +0 -22
- package/lib/Utils/JSONLinkedData/isBlankNode.d.ts +0 -10
- package/lib/Utils/JSONLinkedData/isBlankNode.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/isBlankNode.js +0 -22
- package/lib/Utils/JSONLinkedData/isBlankNode.spec.d.ts +0 -2
- package/lib/Utils/JSONLinkedData/isBlankNode.spec.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.d.ts +0 -10
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.js +0 -21
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.d.ts +0 -2
- package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/visitOnce.d.ts +0 -2
- package/lib/Utils/JSONLinkedData/visitOnce.d.ts.map +0 -1
- package/lib/Utils/JSONLinkedData/visitOnce.js +0 -17
- package/lib/Utils/LocalizedString.d.ts +0 -26
- package/lib/Utils/LocalizedString.d.ts.map +0 -1
- package/lib/Utils/LocalizedString.js +0 -138
- package/lib/Utils/TypeFocusSink/Context.js +0 -14
- package/lib/Utils/TypeFocusSink/FocusBox.js +0 -91
- package/lib/Utils/TypeFocusSink/getTabIndex.d.ts +0 -2
- package/lib/Utils/TypeFocusSink/getTabIndex.d.ts.map +0 -1
- package/lib/Utils/TypeFocusSink/getTabIndex.js +0 -27
- package/lib/Utils/TypeFocusSink/index.js +0 -18
- package/lib/Utils/TypeFocusSink/inputtableKey.d.ts +0 -2
- package/lib/Utils/TypeFocusSink/inputtableKey.d.ts.map +0 -1
- package/lib/Utils/TypeFocusSink/inputtableKey.js +0 -28
- package/lib/Utils/TypeFocusSink/navigableEvent.js +0 -59
- package/lib/Utils/activityAltText.d.ts +0 -8
- package/lib/Utils/activityAltText.d.ts.map +0 -1
- package/lib/Utils/activityAltText.js +0 -79
- package/lib/Utils/addTargetBlankToHyperlinksMarkdown.js +0 -34
- package/lib/Utils/betterLinks.d.ts +0 -28
- package/lib/Utils/betterLinks.d.ts.map +0 -1
- package/lib/Utils/betterLinks.js +0 -142
- package/lib/Utils/computeSuggestedActionText.d.ts +0 -3
- package/lib/Utils/computeSuggestedActionText.d.ts.map +0 -1
- package/lib/Utils/computeSuggestedActionText.js +0 -24
- package/lib/Utils/createCSSKey.js +0 -16
- package/lib/Utils/createCustomEvent.js +0 -34
- package/lib/Utils/detectBrowser.js +0 -27
- package/lib/Utils/downscaleImageToDataURL/WorkerJob.d.ts +0 -16
- package/lib/Utils/downscaleImageToDataURL/WorkerJob.d.ts.map +0 -1
- package/lib/Utils/downscaleImageToDataURL/WorkerJob.js +0 -2
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.d.ts +0 -2
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.d.ts.map +0 -1
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.js +0 -90
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.d.ts +0 -4
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.d.ts.map +0 -1
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.js +0 -198
- package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.worker.js +0 -96
- package/lib/Utils/downscaleImageToDataURL/index.d.ts +0 -2
- package/lib/Utils/downscaleImageToDataURL/index.d.ts.map +0 -1
- package/lib/Utils/downscaleImageToDataURL/index.js +0 -44
- package/lib/Utils/filterMap.js +0 -28
- package/lib/Utils/findAncestor.d.ts +0 -2
- package/lib/Utils/findAncestor.d.ts.map +0 -1
- package/lib/Utils/findAncestor.js +0 -15
- package/lib/Utils/firstTabbableDescendant.js +0 -40
- package/lib/Utils/getActivityUniqueId.d.ts +0 -3
- package/lib/Utils/getActivityUniqueId.d.ts.map +0 -1
- package/lib/Utils/getActivityUniqueId.js +0 -11
- package/lib/Utils/intersectionOf.d.ts +0 -5
- package/lib/Utils/intersectionOf.d.ts.map +0 -1
- package/lib/Utils/intersectionOf.js +0 -27
- package/lib/Utils/isZeroOrPositive.d.ts +0 -5
- package/lib/Utils/isZeroOrPositive.d.ts.map +0 -1
- package/lib/Utils/isZeroOrPositive.js +0 -14
- package/lib/Utils/mapMap.js +0 -27
- package/lib/Utils/parseDocumentFromString.d.ts +0 -2
- package/lib/Utils/parseDocumentFromString.d.ts.map +0 -1
- package/lib/Utils/parseDocumentFromString.js +0 -11
- package/lib/Utils/randomId.js +0 -15
- package/lib/Utils/readDataURIToBlob.js +0 -44
- package/lib/Utils/removeInline.js +0 -18
- package/lib/Utils/scrollIntoViewWithBlockNearest.d.ts +0 -7
- package/lib/Utils/scrollIntoViewWithBlockNearest.d.ts.map +0 -1
- package/lib/Utils/scrollIntoViewWithBlockNearest.js +0 -38
- package/lib/Utils/serializeDocumentIntoString.d.ts +0 -2
- package/lib/Utils/serializeDocumentIntoString.d.ts.map +0 -1
- package/lib/Utils/serializeDocumentIntoString.js +0 -27
- package/lib/Utils/shallowEquals.js +0 -21
- package/lib/Utils/singleToArray.d.ts +0 -2
- package/lib/Utils/singleToArray.d.ts.map +0 -1
- package/lib/Utils/singleToArray.js +0 -10
- package/lib/Utils/supportPseudoClass.d.ts +0 -2
- package/lib/Utils/supportPseudoClass.d.ts.map +0 -1
- package/lib/Utils/supportPseudoClass.js +0 -21
- package/lib/Utils/tabbableElements.d.ts +0 -2
- package/lib/Utils/tabbableElements.d.ts.map +0 -1
- package/lib/Utils/tabbableElements.js +0 -20
- package/lib/Utils/textFormatToContentType.js +0 -17
- package/lib/Utils/updateMarkdownAttrs.js +0 -16
- package/lib/Utils/walkMarkdownTokens.js +0 -19
- package/lib/hooks/index.d.ts +0 -22
- package/lib/hooks/index.d.ts.map +0 -1
- package/lib/hooks/index.js +0 -152
- package/lib/hooks/internal/BypassSpeechSynthesisPonyfill.js +0 -278
- package/lib/hooks/internal/UITracker.js +0 -39
- package/lib/hooks/internal/WebChatUIContext.d.ts +0 -8
- package/lib/hooks/internal/WebChatUIContext.d.ts.map +0 -1
- package/lib/hooks/internal/WebChatUIContext.js +0 -11
- package/lib/hooks/internal/createWaitUntilable.d.ts +0 -5
- package/lib/hooks/internal/createWaitUntilable.d.ts.map +0 -1
- package/lib/hooks/internal/createWaitUntilable.js +0 -50
- package/lib/hooks/internal/createWaitUntilable.spec.d.ts +0 -2
- package/lib/hooks/internal/createWaitUntilable.spec.d.ts.map +0 -1
- package/lib/hooks/internal/private/createOnEventShim.d.ts +0 -5
- package/lib/hooks/internal/private/createOnEventShim.d.ts.map +0 -1
- package/lib/hooks/internal/private/createOnEventShim.js +0 -25
- package/lib/hooks/internal/private/createOnEventShim.spec.d.ts +0 -2
- package/lib/hooks/internal/private/createOnEventShim.spec.d.ts.map +0 -1
- package/lib/hooks/internal/useChanged.d.ts +0 -9
- package/lib/hooks/internal/useChanged.d.ts.map +0 -1
- package/lib/hooks/internal/useChanged.js +0 -21
- package/lib/hooks/internal/useDispatchScrollPosition.js +0 -12
- package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.d.ts +0 -2
- package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.d.ts.map +0 -1
- package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.js +0 -12
- package/lib/hooks/internal/useEnterKeyHint.js +0 -18
- package/lib/hooks/internal/useFocusVisible.d.ts +0 -3
- package/lib/hooks/internal/useFocusVisible.d.ts.map +0 -1
- package/lib/hooks/internal/useFocusVisible.js +0 -37
- package/lib/hooks/internal/useFocusWithin.d.ts +0 -3
- package/lib/hooks/internal/useFocusWithin.d.ts.map +0 -1
- package/lib/hooks/internal/useFocusWithin.js +0 -38
- package/lib/hooks/internal/useForceRender.js +0 -24
- package/lib/hooks/internal/useForceRenderAtInterval.d.ts +0 -3
- package/lib/hooks/internal/useForceRenderAtInterval.d.ts.map +0 -1
- package/lib/hooks/internal/useForceRenderAtInterval.js +0 -57
- package/lib/hooks/internal/useInternalMarkdownIt.js +0 -14
- package/lib/hooks/internal/useInternalRenderMarkdownInline.js +0 -16
- package/lib/hooks/internal/useLocalizeAccessKey.d.ts +0 -2
- package/lib/hooks/internal/useLocalizeAccessKey.d.ts.map +0 -1
- package/lib/hooks/internal/useLocalizeAccessKey.js +0 -38
- package/lib/hooks/internal/useMemoWithPrevious.d.ts +0 -3
- package/lib/hooks/internal/useMemoWithPrevious.d.ts.map +0 -1
- package/lib/hooks/internal/useMemoWithPrevious.js +0 -20
- package/lib/hooks/internal/useMemoized.d.ts +0 -11
- package/lib/hooks/internal/useMemoized.d.ts.map +0 -1
- package/lib/hooks/internal/useMemoized.js +0 -82
- package/lib/hooks/internal/useMemoized.spec.jsx +0 -159
- package/lib/hooks/internal/useNavigatorPlatform.js +0 -31
- package/lib/hooks/internal/useNonce.js +0 -14
- package/lib/hooks/internal/useObserveFocusVisible.d.ts +0 -3
- package/lib/hooks/internal/useObserveFocusVisible.d.ts.map +0 -1
- package/lib/hooks/internal/useObserveFocusVisible.js +0 -201
- package/lib/hooks/internal/usePrevious.d.ts +0 -2
- package/lib/hooks/internal/usePrevious.d.ts.map +0 -1
- package/lib/hooks/internal/usePrevious.js +0 -17
- package/lib/hooks/internal/useRegisterFocusTranscript.js +0 -27
- package/lib/hooks/internal/useRegisterScrollTo.js +0 -27
- package/lib/hooks/internal/useRegisterScrollToEnd.js +0 -25
- package/lib/hooks/internal/useReplaceEmoticon.js +0 -58
- package/lib/hooks/internal/useResumeAudioContext.d.ts +0 -2
- package/lib/hooks/internal/useResumeAudioContext.d.ts.map +0 -1
- package/lib/hooks/internal/useResumeAudioContext.js +0 -23
- package/lib/hooks/internal/useSendBoxFocusRef.js +0 -12
- package/lib/hooks/internal/useSettableDictateAbortable.js +0 -15
- package/lib/hooks/internal/useStateRef.d.ts +0 -3
- package/lib/hooks/internal/useStateRef.d.ts.map +0 -1
- package/lib/hooks/internal/useStateRef.js +0 -30
- package/lib/hooks/internal/useStyleToEmotionObject.js +0 -12
- package/lib/hooks/internal/useSuggestedActionsAccessKey.js +0 -14
- package/lib/hooks/internal/useTimer.d.ts +0 -5
- package/lib/hooks/internal/useTimer.d.ts.map +0 -1
- package/lib/hooks/internal/useTimer.js +0 -46
- package/lib/hooks/internal/useTranscriptActivityElementsRef.js +0 -12
- package/lib/hooks/internal/useTranscriptFocusRef.js +0 -12
- package/lib/hooks/internal/useUniqueId.d.ts +0 -2
- package/lib/hooks/internal/useUniqueId.d.ts.map +0 -1
- package/lib/hooks/internal/useUniqueId.js +0 -19
- package/lib/hooks/internal/useValueRef.d.ts +0 -3
- package/lib/hooks/internal/useValueRef.d.ts.map +0 -1
- package/lib/hooks/internal/useValueRef.js +0 -24
- package/lib/hooks/internal/useWebChatUIContext.js +0 -17
- package/lib/hooks/sendBoxFocus.d.ts +0 -7
- package/lib/hooks/sendBoxFocus.d.ts.map +0 -1
- package/lib/hooks/sendBoxFocus.js +0 -13
- package/lib/hooks/transcriptScrollRelative.d.ts +0 -7
- package/lib/hooks/transcriptScrollRelative.d.ts.map +0 -1
- package/lib/hooks/transcriptScrollRelative.js +0 -13
- package/lib/hooks/useDictateAbortable.d.ts +0 -2
- package/lib/hooks/useDictateAbortable.d.ts.map +0 -1
- package/lib/hooks/useDictateAbortable.js +0 -22
- package/lib/hooks/useFocus.d.ts +0 -2
- package/lib/hooks/useFocus.d.ts.map +0 -1
- package/lib/hooks/useFocus.js +0 -65
- package/lib/hooks/useMakeThumbnail.d.ts +0 -2
- package/lib/hooks/useMakeThumbnail.d.ts.map +0 -1
- package/lib/hooks/useMakeThumbnail.js +0 -74
- package/lib/hooks/useObserveScrollPosition.d.ts +0 -3
- package/lib/hooks/useObserveScrollPosition.d.ts.map +0 -1
- package/lib/hooks/useObserveScrollPosition.js +0 -31
- package/lib/hooks/useObserveTranscriptFocus.d.ts +0 -5
- package/lib/hooks/useObserveTranscriptFocus.d.ts.map +0 -1
- package/lib/hooks/useObserveTranscriptFocus.js +0 -31
- package/lib/hooks/useRenderMarkdownAsHTML.d.ts +0 -5
- package/lib/hooks/useRenderMarkdownAsHTML.d.ts.map +0 -1
- package/lib/hooks/useRenderMarkdownAsHTML.js +0 -62
- package/lib/hooks/useScrollDown.d.ts +0 -4
- package/lib/hooks/useScrollDown.d.ts.map +0 -1
- package/lib/hooks/useScrollDown.js +0 -20
- package/lib/hooks/useScrollTo.d.ts +0 -5
- package/lib/hooks/useScrollTo.d.ts.map +0 -1
- package/lib/hooks/useScrollTo.js +0 -22
- package/lib/hooks/useScrollToEnd.d.ts +0 -2
- package/lib/hooks/useScrollToEnd.d.ts.map +0 -1
- package/lib/hooks/useScrollToEnd.js +0 -21
- package/lib/hooks/useScrollUp.d.ts +0 -4
- package/lib/hooks/useScrollUp.d.ts.map +0 -1
- package/lib/hooks/useScrollUp.js +0 -20
- package/lib/hooks/useSendFiles.d.ts +0 -5
- package/lib/hooks/useSendFiles.d.ts.map +0 -1
- package/lib/hooks/useSendFiles.js +0 -63
- package/lib/hooks/useSendMessage.d.ts +0 -8
- package/lib/hooks/useSendMessage.d.ts.map +0 -1
- package/lib/hooks/useSendMessage.js +0 -102
- package/lib/hooks/useStyleSet.d.ts +0 -3
- package/lib/hooks/useStyleSet.d.ts.map +0 -1
- package/lib/hooks/useStyleSet.js +0 -13
- package/lib/hooks/useWebSpeechPonyfill.d.ts +0 -3
- package/lib/hooks/useWebSpeechPonyfill.d.ts.map +0 -1
- package/lib/hooks/useWebSpeechPonyfill.js +0 -12
- package/lib/index.d.ts +0 -330
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -164
- package/lib/internal.d.ts +0 -4
- package/lib/internal.d.ts.map +0 -1
- package/lib/internal.js +0 -21
- package/lib/providers/ActivityTree/ActivityTreeComposer.d.ts +0 -7
- package/lib/providers/ActivityTree/ActivityTreeComposer.d.ts.map +0 -1
- package/lib/providers/ActivityTree/ActivityTreeComposer.js +0 -90
- package/lib/providers/ActivityTree/private/Context.d.ts +0 -9
- package/lib/providers/ActivityTree/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityTree/private/Context.js +0 -10
- package/lib/providers/ActivityTree/private/types.d.ts +0 -10
- package/lib/providers/ActivityTree/private/types.d.ts.map +0 -1
- package/lib/providers/ActivityTree/private/types.js +0 -2
- package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.d.ts +0 -4
- package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.d.ts.map +0 -1
- package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.js +0 -36
- package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.d.ts +0 -5
- package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.d.ts.map +0 -1
- package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.js +0 -147
- package/lib/providers/ActivityTree/private/useContext.d.ts +0 -3
- package/lib/providers/ActivityTree/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityTree/private/useContext.js +0 -18
- package/lib/providers/ActivityTree/useActivityTreeWithRenderer.d.ts +0 -8
- package/lib/providers/ActivityTree/useActivityTreeWithRenderer.d.ts.map +0 -1
- package/lib/providers/ActivityTree/useActivityTreeWithRenderer.js +0 -14
- package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.d.ts +0 -37
- package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.js +0 -145
- package/lib/providers/LiveRegionTwin/private/Context.d.ts +0 -10
- package/lib/providers/LiveRegionTwin/private/Context.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/private/Context.js +0 -11
- package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.d.ts +0 -12
- package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.js +0 -77
- package/lib/providers/LiveRegionTwin/private/types.d.ts +0 -8
- package/lib/providers/LiveRegionTwin/private/types.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/private/types.js +0 -2
- package/lib/providers/LiveRegionTwin/private/useContext.d.ts +0 -3
- package/lib/providers/LiveRegionTwin/private/useContext.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/private/useContext.js +0 -18
- package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.d.ts +0 -2
- package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.js +0 -20
- package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.d.ts +0 -3
- package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.js +0 -12
- package/lib/providers/LiveRegionTwin/useQueueStaticElement.d.ts +0 -8
- package/lib/providers/LiveRegionTwin/useQueueStaticElement.d.ts.map +0 -1
- package/lib/providers/LiveRegionTwin/useQueueStaticElement.js +0 -17
- package/lib/providers/ModalDialog/ModalDialogComposer.d.ts +0 -7
- package/lib/providers/ModalDialog/ModalDialogComposer.d.ts.map +0 -1
- package/lib/providers/ModalDialog/ModalDialogComposer.js +0 -51
- package/lib/providers/ModalDialog/private/Context.d.ts +0 -13
- package/lib/providers/ModalDialog/private/Context.d.ts.map +0 -1
- package/lib/providers/ModalDialog/private/Context.js +0 -24
- package/lib/providers/ModalDialog/private/Popover.d.ts +0 -10
- package/lib/providers/ModalDialog/private/Popover.d.ts.map +0 -1
- package/lib/providers/ModalDialog/private/Popover.js +0 -79
- package/lib/providers/ModalDialog/private/useContext.d.ts +0 -4
- package/lib/providers/ModalDialog/private/useContext.d.ts.map +0 -1
- package/lib/providers/ModalDialog/private/useContext.js +0 -13
- package/lib/providers/ModalDialog/useClose.d.ts +0 -3
- package/lib/providers/ModalDialog/useClose.d.ts.map +0 -1
- package/lib/providers/ModalDialog/useClose.js +0 -12
- package/lib/providers/ModalDialog/useShowModal.d.ts +0 -3
- package/lib/providers/ModalDialog/useShowModal.d.ts.map +0 -1
- package/lib/providers/ModalDialog/useShowModal.js +0 -12
- package/lib/providers/RovingTabIndex/RovingTabIndexComposer.d.ts +0 -8
- package/lib/providers/RovingTabIndex/RovingTabIndexComposer.d.ts.map +0 -1
- package/lib/providers/RovingTabIndex/RovingTabIndexComposer.js +0 -163
- package/lib/providers/RovingTabIndex/private/Context.d.ts +0 -8
- package/lib/providers/RovingTabIndex/private/Context.d.ts.map +0 -1
- package/lib/providers/RovingTabIndex/private/Context.js +0 -17
- package/lib/providers/RovingTabIndex/private/useContext.d.ts +0 -2
- package/lib/providers/RovingTabIndex/private/useContext.d.ts.map +0 -1
- package/lib/providers/RovingTabIndex/private/useContext.js +0 -18
- package/lib/providers/RovingTabIndex/useItemRef.d.ts +0 -3
- package/lib/providers/RovingTabIndex/useItemRef.d.ts.map +0 -1
- package/lib/providers/RovingTabIndex/useItemRef.js +0 -19
- package/lib/providers/Theme/ThemeProvider.d.ts +0 -7
- package/lib/providers/Theme/ThemeProvider.d.ts.map +0 -1
- package/lib/providers/Theme/ThemeProvider.js +0 -103
- package/lib/providers/Theme/private/Context.d.ts +0 -19
- package/lib/providers/Theme/private/Context.d.ts.map +0 -1
- package/lib/providers/Theme/private/Context.js +0 -26
- package/lib/providers/Theme/useTheme.d.ts +0 -2
- package/lib/providers/Theme/useTheme.d.ts.map +0 -1
- package/lib/providers/Theme/useTheme.js +0 -13
- package/lib/providers/TranscriptFocus/TranscriptFocusComposer.d.ts +0 -7
- package/lib/providers/TranscriptFocus/TranscriptFocusComposer.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/TranscriptFocusComposer.js +0 -153
- package/lib/providers/TranscriptFocus/private/Context.d.ts +0 -12
- package/lib/providers/TranscriptFocus/private/Context.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/private/Context.js +0 -11
- package/lib/providers/TranscriptFocus/private/useContext.d.ts +0 -2
- package/lib/providers/TranscriptFocus/private/useContext.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/private/useContext.js +0 -18
- package/lib/providers/TranscriptFocus/useActiveDescendantId.d.ts +0 -2
- package/lib/providers/TranscriptFocus/useActiveDescendantId.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/useActiveDescendantId.js +0 -12
- package/lib/providers/TranscriptFocus/useFocusByActivityKey.d.ts +0 -8
- package/lib/providers/TranscriptFocus/useFocusByActivityKey.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/useFocusByActivityKey.js +0 -18
- package/lib/providers/TranscriptFocus/useFocusRelativeActivity.d.ts +0 -2
- package/lib/providers/TranscriptFocus/useFocusRelativeActivity.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/useFocusRelativeActivity.js +0 -12
- package/lib/providers/TranscriptFocus/useFocusedActivityKey.d.ts +0 -2
- package/lib/providers/TranscriptFocus/useFocusedActivityKey.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/useFocusedActivityKey.js +0 -12
- package/lib/providers/TranscriptFocus/useFocusedExplicitly.d.ts +0 -2
- package/lib/providers/TranscriptFocus/useFocusedExplicitly.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/useFocusedExplicitly.js +0 -12
- package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.d.ts +0 -2
- package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.d.ts.map +0 -1
- package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.js +0 -12
- package/lib/providers/internal/SendBox/SendBoxComposer.d.ts +0 -4
- package/lib/providers/internal/SendBox/SendBoxComposer.d.ts.map +0 -1
- package/lib/providers/internal/SendBox/SendBoxComposer.js +0 -161
- package/lib/providers/internal/SendBox/private/Context.d.ts +0 -4
- package/lib/providers/internal/SendBox/private/Context.d.ts.map +0 -1
- package/lib/providers/internal/SendBox/private/Context.js +0 -11
- package/lib/providers/internal/SendBox/private/types.d.ts +0 -8
- package/lib/providers/internal/SendBox/private/types.d.ts.map +0 -1
- package/lib/providers/internal/SendBox/private/types.js +0 -2
- package/lib/providers/internal/SendBox/private/useContext.d.ts +0 -3
- package/lib/providers/internal/SendBox/private/useContext.d.ts.map +0 -1
- package/lib/providers/internal/SendBox/private/useContext.js +0 -17
- package/lib/providers/internal/SendBox/useErrorMessageId.d.ts +0 -12
- package/lib/providers/internal/SendBox/useErrorMessageId.d.ts.map +0 -1
- package/lib/providers/internal/SendBox/useErrorMessageId.js +0 -22
- package/lib/providers/internal/SendBox/useSubmit.d.ts +0 -14
- package/lib/providers/internal/SendBox/useSubmit.d.ts.map +0 -1
- package/lib/providers/internal/SendBox/useSubmit.js +0 -20
- package/lib/tsconfig.json +0 -18
- package/lib/types/ContextOf.d.ts +0 -4
- package/lib/types/ContextOf.d.ts.map +0 -1
- package/lib/types/ContextOf.js +0 -2
- package/lib/types/PropsOf.d.ts +0 -3
- package/lib/types/PropsOf.d.ts.map +0 -1
- package/lib/types/PropsOf.js +0 -2
- package/lib/types/ScrollPosition.d.ts +0 -6
- package/lib/types/ScrollPosition.d.ts.map +0 -1
- package/lib/types/ScrollPosition.js +0 -2
- package/lib/types/internal/FocusTranscriptInit.d.ts +0 -4
- package/lib/types/internal/FocusTranscriptInit.d.ts.map +0 -1
- package/lib/types/internal/FocusTranscriptInit.js +0 -2
- package/lib/types/internal/SendStatus.d.ts +0 -7
- package/lib/types/internal/SendStatus.d.ts.map +0 -1
- package/lib/types/internal/SendStatus.js +0 -19
- package/lib/types/internal/TypeOfArray.d.ts +0 -2
- package/lib/types/internal/TypeOfArray.d.ts.map +0 -1
- package/lib/types/internal/TypeOfArray.js +0 -2
- package/lib/withEmoji/private/UndoEntry.d.ts +0 -9
- package/lib/withEmoji/private/UndoEntry.d.ts.map +0 -1
- package/lib/withEmoji/private/UndoEntry.js +0 -69
- package/lib/withEmoji/private/useUndoStack.d.ts +0 -6
- package/lib/withEmoji/private/useUndoStack.d.ts.map +0 -1
- package/lib/withEmoji/private/useUndoStack.js +0 -64
- package/lib/withEmoji/withEmoji.d.ts +0 -15
- package/lib/withEmoji/withEmoji.d.ts.map +0 -1
- package/lib/withEmoji/withEmoji.js +0 -128
- package/src/Activity/SayAlt.js +0 -26
- package/src/ActivityStatus/AbsoluteTime.js +0 -32
- package/src/ActivityStatus/Slotted.tsx +0 -26
- package/src/ActivityStatus/private/Feedback/Feedback.tsx +0 -60
- package/src/ActivityStatus/private/Feedback/private/ThumbButton.Image.tsx +0 -30
- package/src/ActivityStatus/private/Feedback/private/ThumbButton.tsx +0 -54
- package/src/ActivityStatus/private/Feedback/private/VoteButton.tsx +0 -36
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.tsx +0 -16
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.tsx +0 -16
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.tsx +0 -16
- package/src/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.tsx +0 -16
- package/src/ActivityStatus/private/RelativeTime.js +0 -31
- package/src/Attachment/Assets/DownloadIcon.js +0 -29
- package/src/Attachment/ImageAttachment.js +0 -37
- package/src/Avatar/ImageAvatar.js +0 -49
- package/src/Avatar/InitialsAvatar.js +0 -50
- package/src/ConnectivityStatus/Connecting.js +0 -72
- package/src/LinkDefinition/private/Chevron.tsx +0 -21
- package/src/Middleware/Activity/createCoreMiddleware.tsx +0 -102
- package/src/Middleware/Avatar/createCoreMiddleware.tsx +0 -76
- package/src/Middleware/ScrollToEndButton/ScrollToEndButton.js +0 -45
- package/src/SendBox/Assets/MicrophoneIcon.js +0 -12
- package/src/SendBox/Assets/SendIcon.js +0 -36
- package/src/Styles/StyleSet/CSSCustomProperties.ts +0 -46
- package/src/Styles/StyleSet/KeyboardHelp.ts +0 -204
- package/src/Styles/StyleSet/SingleAttachmentActivity.ts +0 -18
- package/src/Styles/StyleSet/SlottedActivityStatus.ts +0 -16
- package/src/Transcript/KeyboardHelp.tsx +0 -319
- package/src/TranscriptActivity.tsx +0 -64
- package/src/Utils/AccessKeySink/Surface.js +0 -56
- package/src/Utils/CroppedImage.js +0 -45
- package/src/Utils/parseDocumentFromString.ts +0 -5
- package/src/Utils/readDataURIToBlob.js +0 -31
- package/src/Utils/serializeDocumentIntoString.ts +0 -10
- package/src/Utils/singleToArray.ts +0 -3
- package/src/Utils/textFormatToContentType.js +0 -12
- package/src/hooks/internal/useMemoWithPrevious.ts +0 -16
- package/src/hooks/internal/useNonce.js +0 -7
- package/src/hooks/internal/useStyleToEmotionObject.js +0 -5
- package/src/internal.ts +0 -4
- package/src/providers/ActivityTree/ActivityTreeComposer.tsx +0 -90
- package/src/providers/ActivityTree/private/Context.ts +0 -12
- package/src/providers/ActivityTree/private/types.ts +0 -12
- package/src/providers/ActivityTree/private/useActivitiesWithRenderer.ts +0 -40
- package/src/providers/ActivityTree/private/useActivityTreeWithRenderer.ts +0 -140
- package/src/providers/ActivityTree/private/useContext.ts +0 -15
- package/src/providers/ActivityTree/useActivityTreeWithRenderer.ts +0 -16
- package/src/providers/LiveRegionTwin/LiveRegionTwinComposer.tsx +0 -172
- package/src/providers/LiveRegionTwin/private/Context.ts +0 -15
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useStyles } from '@msinternal/botframework-webchat-styles/react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import React, { forwardRef, type HTMLAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
import styles from './TranscriptFocus.module.css';
|
|
6
|
+
|
|
7
|
+
type TranscriptFocusTerminatorBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
|
|
9
|
+
const TranscriptFocusTerminatorBody = forwardRef<HTMLDivElement, TranscriptFocusTerminatorBodyProps>(
|
|
10
|
+
({ className, ...props }, ref) => {
|
|
11
|
+
const classNames = useStyles(styles);
|
|
12
|
+
|
|
13
|
+
return <div {...props} className={cx(classNames['transcript-focus-area__terminator-body'], className)} ref={ref} />;
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
TranscriptFocusTerminatorBody.displayName = 'TranscriptFocusTerminatorBody';
|
|
18
|
+
|
|
19
|
+
export default TranscriptFocusTerminatorBody;
|
|
20
|
+
export { type TranscriptFocusTerminatorBodyProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useStyles } from '@msinternal/botframework-webchat-styles/react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import React, { forwardRef, type HTMLAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
import styles from './TranscriptFocus.module.css';
|
|
6
|
+
|
|
7
|
+
type TranscriptFocusTerminatorTextProps = HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
|
|
9
|
+
const TranscriptFocusTerminatorText = forwardRef<HTMLDivElement, TranscriptFocusTerminatorTextProps>(
|
|
10
|
+
({ className, ...props }, ref) => {
|
|
11
|
+
const classNames = useStyles(styles);
|
|
12
|
+
|
|
13
|
+
return <div {...props} className={cx(classNames['transcript-focus-area__terminator-text'], className)} ref={ref} />;
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
TranscriptFocusTerminatorText.displayName = 'TranscriptFocusTerminatorText';
|
|
18
|
+
|
|
19
|
+
export default TranscriptFocusTerminatorText;
|
|
20
|
+
export { type TranscriptFocusTerminatorTextProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { default as TranscriptActivityList, type TranscriptActivityListProps } from './TranscriptActivityList';
|
|
2
|
+
export { default as TranscriptFocusArea, type TranscriptFocusAreaProps } from './TranscriptFocusArea';
|
|
3
|
+
export { default as TranscriptFocusContent, type TranscriptFocusContentProps } from './TranscriptFocusContent';
|
|
4
|
+
export {
|
|
5
|
+
default as TranscriptFocusContentOverlay,
|
|
6
|
+
type TranscriptFocusContentOverlayProps
|
|
7
|
+
} from './TranscriptFocusContentOverlay';
|
|
8
|
+
export {
|
|
9
|
+
default as TranscriptFocusContentActiveDescendant,
|
|
10
|
+
type TranscriptFocusContentActiveDescendantProps
|
|
11
|
+
} from './TranscriptFocusContentActiveDescendant';
|
|
12
|
+
export {
|
|
13
|
+
default as TranscriptFocusContentBody,
|
|
14
|
+
type TranscriptFocusContentBodyProps
|
|
15
|
+
} from './TranscriptFocusContentBody';
|
|
16
|
+
export { default as TranscriptFocusIndicator, type TranscriptFocusIndicatorProps } from './TranscriptFocusIndicator';
|
|
17
|
+
export { default as TranscriptFocusTerminator, type TranscriptFocusTerminatorProps } from './TranscriptFocusTerminator';
|
|
18
|
+
export {
|
|
19
|
+
default as TranscriptFocusTerminatorBody,
|
|
20
|
+
type TranscriptFocusTerminatorBodyProps
|
|
21
|
+
} from './TranscriptFocusTerminatorBody';
|
|
22
|
+
export {
|
|
23
|
+
default as TranscriptFocusTerminatorText,
|
|
24
|
+
type TranscriptFocusTerminatorTextProps
|
|
25
|
+
} from './TranscriptFocusTerminatorText';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { hooks } from 'botframework-webchat-api';
|
|
2
|
+
import { useBuildRenderAvatarCallback } from 'botframework-webchat-api/middleware.js';
|
|
3
|
+
import { type WebChatActivity } from 'botframework-webchat-core';
|
|
4
|
+
import { useMemo, type ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
import useFirstActivityInSenderGroup from '../../Middleware/ActivityGrouping/ui/SenderGrouping/useFirstActivity';
|
|
7
|
+
import useLastActivityInSenderGroup from '../../Middleware/ActivityGrouping/ui/SenderGrouping/useLastActivity';
|
|
8
|
+
import useFirstActivityInStatusGroup from '../../Middleware/ActivityGrouping/ui/StatusGrouping/useFirstActivity';
|
|
9
|
+
import useLastActivityInStatusGroup from '../../Middleware/ActivityGrouping/ui/StatusGrouping/useLastActivity';
|
|
10
|
+
import isZeroOrPositive from '../../Utils/isZeroOrPositive';
|
|
11
|
+
|
|
12
|
+
const { useCreateActivityStatusRenderer, useStyleOptions } = hooks;
|
|
13
|
+
|
|
14
|
+
type RenderActivityProps = {
|
|
15
|
+
hideTimestamp: boolean;
|
|
16
|
+
renderActivityStatus: ((options: { hideTimestamp: boolean }) => ReactNode) | undefined;
|
|
17
|
+
renderAvatar: false | (() => Exclude<ReactNode, boolean | null | undefined>) | undefined;
|
|
18
|
+
showCallout: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const useRenderActivityProps = (activity: WebChatActivity): RenderActivityProps => {
|
|
22
|
+
const [styleOptions] = useStyleOptions();
|
|
23
|
+
const [firstActivityInSenderGroup] = useFirstActivityInSenderGroup();
|
|
24
|
+
const [firstActivityInStatusGroup] = useFirstActivityInStatusGroup();
|
|
25
|
+
const [lastActivityInSenderGroup] = useLastActivityInSenderGroup();
|
|
26
|
+
const [lastActivityInStatusGroup] = useLastActivityInStatusGroup();
|
|
27
|
+
const createActivityStatusRenderer = useCreateActivityStatusRenderer();
|
|
28
|
+
const buildRenderAvatar = useBuildRenderAvatarCallback();
|
|
29
|
+
|
|
30
|
+
const { bubbleFromUserNubOffset, bubbleNubOffset, groupTimestamp, showAvatarInGroup } = styleOptions;
|
|
31
|
+
|
|
32
|
+
const hideAllTimestamps = groupTimestamp === false;
|
|
33
|
+
const isFirstInSenderGroup =
|
|
34
|
+
firstActivityInSenderGroup === activity || typeof firstActivityInSenderGroup === 'undefined';
|
|
35
|
+
const isFirstInStatusGroup =
|
|
36
|
+
firstActivityInStatusGroup === activity || typeof firstActivityInStatusGroup === 'undefined';
|
|
37
|
+
const isLastInSenderGroup =
|
|
38
|
+
lastActivityInSenderGroup === activity || typeof lastActivityInSenderGroup === 'undefined';
|
|
39
|
+
const isLastInStatusGroup =
|
|
40
|
+
lastActivityInStatusGroup === activity || typeof lastActivityInStatusGroup === 'undefined';
|
|
41
|
+
|
|
42
|
+
const renderAvatarForSenderGroup = useMemo<false | (() => Exclude<ReactNode, boolean | null | undefined>)>(() => {
|
|
43
|
+
// Pass styleOptions through the runtime object (not typed in public request) for internal use
|
|
44
|
+
// by the core middleware and legacy bridge handlers.
|
|
45
|
+
const renderer = buildRenderAvatar(Object.freeze({ activity }));
|
|
46
|
+
|
|
47
|
+
return renderer ? (): ReactNode => renderer({}) : false;
|
|
48
|
+
}, [activity, buildRenderAvatar]);
|
|
49
|
+
|
|
50
|
+
const isTopSideBotNub = isZeroOrPositive(bubbleNubOffset);
|
|
51
|
+
const isTopSideUserNub = isZeroOrPositive(bubbleFromUserNubOffset);
|
|
52
|
+
|
|
53
|
+
const renderActivityStatus = useMemo(
|
|
54
|
+
() => createActivityStatusRenderer({ activity }),
|
|
55
|
+
[activity, createActivityStatusRenderer]
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const hideTimestamp = hideAllTimestamps || !isLastInStatusGroup;
|
|
59
|
+
const isTopSideNub = activity.from?.role === 'user' ? isTopSideUserNub : isTopSideBotNub;
|
|
60
|
+
|
|
61
|
+
let showCallout: boolean;
|
|
62
|
+
|
|
63
|
+
// Depending on the "showAvatarInGroup" setting, the avatar will render in different positions.
|
|
64
|
+
if (showAvatarInGroup === 'sender') {
|
|
65
|
+
if (isTopSideNub) {
|
|
66
|
+
showCallout = isFirstInSenderGroup && isFirstInStatusGroup;
|
|
67
|
+
} else {
|
|
68
|
+
showCallout = isLastInSenderGroup && isLastInStatusGroup;
|
|
69
|
+
}
|
|
70
|
+
} else if (showAvatarInGroup === 'status') {
|
|
71
|
+
if (isTopSideNub) {
|
|
72
|
+
showCallout = isFirstInStatusGroup;
|
|
73
|
+
} else {
|
|
74
|
+
showCallout = isLastInStatusGroup;
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
showCallout = true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
hideTimestamp,
|
|
82
|
+
renderActivityStatus,
|
|
83
|
+
renderAvatar: renderAvatarForSenderGroup,
|
|
84
|
+
showCallout
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default useRenderActivityProps;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';
|
|
2
|
+
import React, { forwardRef, useCallback, useRef } from 'react';
|
|
3
|
+
import { object, optional, pipe, readonly, string, type InferOutput } from 'valibot';
|
|
4
|
+
|
|
5
|
+
import useNavigatorPlatform from '../../hooks/internal/useNavigatorPlatform';
|
|
6
|
+
import { orSelf as firstTabbableDescendantOrSelf } from '../firstTabbableDescendant';
|
|
7
|
+
import AccessKeySinkContext from './internal/Context';
|
|
8
|
+
|
|
9
|
+
const surfacePropsSchema = pipe(
|
|
10
|
+
object({
|
|
11
|
+
children: optional(reactNode()),
|
|
12
|
+
className: optional(string()),
|
|
13
|
+
role: optional(string())
|
|
14
|
+
}),
|
|
15
|
+
readonly()
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
type SurfaceProps = InferOutput<typeof surfacePropsSchema>;
|
|
19
|
+
|
|
20
|
+
const Surface = forwardRef<HTMLDivElement, SurfaceProps>((props, ref) => {
|
|
21
|
+
const { children, className, role } = validateProps(surfacePropsSchema, props);
|
|
22
|
+
|
|
23
|
+
const [{ apple }] = useNavigatorPlatform();
|
|
24
|
+
const contextRef = useRef({ focii: [] });
|
|
25
|
+
|
|
26
|
+
const handleKeyUp = useCallback(
|
|
27
|
+
event => {
|
|
28
|
+
const { altKey, ctrlKey, key, shiftKey } = event;
|
|
29
|
+
|
|
30
|
+
// On Apple, most modern browsers use CTRL + OPTION as modifiers.
|
|
31
|
+
// Otherwise, we use ALT + SHIFT as modifierse.
|
|
32
|
+
if (altKey && (apple ? ctrlKey : shiftKey)) {
|
|
33
|
+
const focii = contextRef.current.focii.filter(entry => entry.keys.includes(key));
|
|
34
|
+
|
|
35
|
+
const currentFocus = focii.findIndex(
|
|
36
|
+
({ ref: { current } }) => current === document.activeElement || current.contains(document.activeElement)
|
|
37
|
+
);
|
|
38
|
+
const nextFocus = focii[(currentFocus + 1) % focii.length];
|
|
39
|
+
|
|
40
|
+
if (nextFocus) {
|
|
41
|
+
event.preventDefault();
|
|
42
|
+
event.stopPropagation();
|
|
43
|
+
|
|
44
|
+
const tabbable = firstTabbableDescendantOrSelf(nextFocus.ref.current);
|
|
45
|
+
|
|
46
|
+
tabbable && tabbable.focus();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
[apple]
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<AccessKeySinkContext.Provider value={contextRef.current}>
|
|
55
|
+
<div className={className} onKeyUp={handleKeyUp} ref={ref} role={role}>
|
|
56
|
+
{children}
|
|
57
|
+
</div>
|
|
58
|
+
</AccessKeySinkContext.Provider>
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export default Surface;
|
|
63
|
+
export { surfacePropsSchema, type SurfaceProps };
|
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
/* eslint no-magic-numbers: ["error", { "ignore": [-1] }] */
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import React, { forwardRef,
|
|
3
|
+
import { reactNode } from '@msinternal/botframework-webchat-react-valibot';
|
|
4
|
+
import React, { forwardRef, memo, type MouseEventHandler } from 'react';
|
|
5
|
+
import {
|
|
6
|
+
boolean,
|
|
7
|
+
custom,
|
|
8
|
+
function_,
|
|
9
|
+
is,
|
|
10
|
+
literal,
|
|
11
|
+
number,
|
|
12
|
+
object,
|
|
13
|
+
optional,
|
|
14
|
+
pipe,
|
|
15
|
+
readonly,
|
|
16
|
+
string,
|
|
17
|
+
type InferInput
|
|
18
|
+
} from 'valibot';
|
|
5
19
|
|
|
6
20
|
const PREVENT_DEFAULT_HANDLER = event => event.preventDefault();
|
|
7
21
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
const accessibleButtonPropsSchema = pipe(
|
|
23
|
+
object({
|
|
24
|
+
'aria-hidden': optional(boolean()),
|
|
25
|
+
'aria-keyshortcuts': optional(string()),
|
|
26
|
+
children: optional(reactNode()),
|
|
27
|
+
className: optional(string()),
|
|
28
|
+
'data-testid': optional(string()),
|
|
29
|
+
disabled: optional(boolean()),
|
|
30
|
+
onClick: custom<MouseEventHandler<HTMLButtonElement>>(value => is(function_(), value)),
|
|
31
|
+
tabIndex: optional(number()),
|
|
32
|
+
title: optional(string()),
|
|
33
|
+
type: literal('button')
|
|
34
|
+
}),
|
|
35
|
+
readonly()
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
type AccessibleButtonProps = InferInput<typeof accessibleButtonPropsSchema>;
|
|
16
39
|
|
|
17
40
|
// Differences between <button> and <AccessibleButton>:
|
|
18
41
|
// - Disable behavior
|
|
@@ -33,46 +56,38 @@ type AccessibleButtonProps = {
|
|
|
33
56
|
// - If the widget is contained by a <form>, the developer need to filter out some `onSubmit` event caused by this widget
|
|
34
57
|
|
|
35
58
|
const AccessibleButton = forwardRef<HTMLButtonElement, AccessibleButtonProps>(
|
|
36
|
-
(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
59
|
+
(
|
|
60
|
+
{
|
|
61
|
+
'aria-hidden': ariaHidden,
|
|
62
|
+
'aria-keyshortcuts': ariaKeyShortcuts,
|
|
63
|
+
children,
|
|
64
|
+
className,
|
|
65
|
+
'data-testid': dataTestId,
|
|
66
|
+
disabled,
|
|
67
|
+
onClick,
|
|
68
|
+
tabIndex,
|
|
69
|
+
title
|
|
70
|
+
},
|
|
71
|
+
ref
|
|
72
|
+
) => (
|
|
73
|
+
<button
|
|
74
|
+
aria-disabled={disabled || undefined}
|
|
75
|
+
aria-hidden={ariaHidden}
|
|
76
|
+
aria-keyshortcuts={ariaKeyShortcuts}
|
|
77
|
+
className={className}
|
|
78
|
+
data-testid={dataTestId}
|
|
79
|
+
onClick={disabled ? PREVENT_DEFAULT_HANDLER : onClick}
|
|
80
|
+
ref={ref}
|
|
81
|
+
tabIndex={disabled ? -1 : tabIndex}
|
|
82
|
+
title={title}
|
|
83
|
+
type="button"
|
|
84
|
+
>
|
|
85
|
+
{children}
|
|
86
|
+
</button>
|
|
87
|
+
)
|
|
55
88
|
);
|
|
56
89
|
|
|
57
|
-
AccessibleButton.defaultProps = {
|
|
58
|
-
'aria-hidden': undefined,
|
|
59
|
-
children: undefined,
|
|
60
|
-
disabled: undefined,
|
|
61
|
-
onClick: undefined,
|
|
62
|
-
tabIndex: undefined
|
|
63
|
-
};
|
|
64
|
-
|
|
65
90
|
AccessibleButton.displayName = 'AccessibleButton';
|
|
66
91
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
children: PropTypes.any,
|
|
70
|
-
disabled: PropTypes.bool,
|
|
71
|
-
onClick: PropTypes.func,
|
|
72
|
-
tabIndex: PropTypes.number,
|
|
73
|
-
// TypeScript class is not mappable to PropTypes.oneOf(['button'])
|
|
74
|
-
// @ts-ignore
|
|
75
|
-
type: PropTypes.oneOf(['button']).isRequired
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export default AccessibleButton;
|
|
92
|
+
export default memo(AccessibleButton);
|
|
93
|
+
export { accessibleButtonPropsSchema, type AccessibleButtonProps };
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
/* eslint no-magic-numbers: ["error", { "ignore": [-1] }] */
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { validateProps } from '@msinternal/botframework-webchat-react-valibot';
|
|
4
4
|
import React, {
|
|
5
|
-
ChangeEventHandler,
|
|
6
|
-
FocusEventHandler,
|
|
5
|
+
type ChangeEventHandler,
|
|
6
|
+
type FocusEventHandler,
|
|
7
7
|
forwardRef,
|
|
8
|
-
KeyboardEventHandler,
|
|
9
|
-
|
|
8
|
+
type KeyboardEventHandler,
|
|
9
|
+
type MouseEventHandler,
|
|
10
|
+
type ReactEventHandler,
|
|
10
11
|
useRef
|
|
11
12
|
} from 'react';
|
|
13
|
+
import {
|
|
14
|
+
boolean,
|
|
15
|
+
custom,
|
|
16
|
+
type InferInput,
|
|
17
|
+
literal,
|
|
18
|
+
number,
|
|
19
|
+
object,
|
|
20
|
+
optional,
|
|
21
|
+
picklist,
|
|
22
|
+
pipe,
|
|
23
|
+
readonly,
|
|
24
|
+
string
|
|
25
|
+
} from 'valibot';
|
|
12
26
|
|
|
13
27
|
import useEnterKeyHint from '../hooks/internal/useEnterKeyHint';
|
|
14
28
|
|
|
@@ -30,113 +44,90 @@ import useEnterKeyHint from '../hooks/internal/useEnterKeyHint';
|
|
|
30
44
|
// - aria-disabled="true" is the source of truth
|
|
31
45
|
// - If the widget is contained by a <form>, the developer need to filter out some `onSubmit` event caused by this widget
|
|
32
46
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
const AccessibleInputTextPropsSchema = pipe(
|
|
48
|
+
object({
|
|
49
|
+
'aria-errormessage': optional(string()),
|
|
50
|
+
'aria-label': optional(string()),
|
|
51
|
+
className: optional(string()),
|
|
52
|
+
'data-id': optional(string()),
|
|
53
|
+
'data-testid': optional(string()),
|
|
54
|
+
disabled: optional(boolean()),
|
|
55
|
+
enterKeyHint: optional(string()),
|
|
56
|
+
inputMode: optional(picklist(['decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', 'url'])),
|
|
57
|
+
onChange: optional(custom<ChangeEventHandler<HTMLInputElement>>(value => typeof value === 'function')),
|
|
58
|
+
onClick: optional(custom<MouseEventHandler<HTMLInputElement>>(value => typeof value === 'function')),
|
|
59
|
+
onFocus: optional(custom<FocusEventHandler<HTMLInputElement>>(value => typeof value === 'function')),
|
|
60
|
+
onKeyDown: optional(custom<KeyboardEventHandler<HTMLInputElement>>(value => typeof value === 'function')),
|
|
61
|
+
onKeyDownCapture: optional(custom<KeyboardEventHandler<HTMLInputElement>>(value => typeof value === 'function')),
|
|
62
|
+
onKeyPress: optional(custom<KeyboardEventHandler<HTMLInputElement>>(value => typeof value === 'function')),
|
|
63
|
+
onSelect: optional(custom<ReactEventHandler<HTMLInputElement>>(value => typeof value === 'function')),
|
|
64
|
+
placeholder: optional(string()),
|
|
65
|
+
readOnly: optional(boolean()),
|
|
66
|
+
tabIndex: optional(number()),
|
|
67
|
+
type: literal('text'),
|
|
68
|
+
value: optional(string())
|
|
69
|
+
}),
|
|
70
|
+
readonly()
|
|
71
|
+
);
|
|
51
72
|
|
|
52
|
-
|
|
53
|
-
(
|
|
54
|
-
{
|
|
55
|
-
'aria-errormessage': ariaErrorMessage,
|
|
56
|
-
className,
|
|
57
|
-
disabled,
|
|
58
|
-
enterKeyHint,
|
|
59
|
-
onChange,
|
|
60
|
-
onFocus,
|
|
61
|
-
onKeyDown,
|
|
62
|
-
onKeyDownCapture,
|
|
63
|
-
onKeyPress,
|
|
64
|
-
onSelect,
|
|
65
|
-
placeholder,
|
|
66
|
-
readOnly,
|
|
67
|
-
tabIndex,
|
|
68
|
-
value,
|
|
69
|
-
...props
|
|
70
|
-
},
|
|
71
|
-
forwardedRef
|
|
72
|
-
) => {
|
|
73
|
-
const targetRef = useRef();
|
|
73
|
+
type AccessibleInputTextProps = InferInput<typeof AccessibleInputTextPropsSchema>;
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
const AccessibleInputText = forwardRef<HTMLInputElement, AccessibleInputTextProps>((rawProps, forwardedRef) => {
|
|
76
|
+
const {
|
|
77
|
+
'aria-errormessage': ariaErrorMessage,
|
|
78
|
+
'aria-label': ariaLabel,
|
|
79
|
+
className,
|
|
80
|
+
'data-id': dataId,
|
|
81
|
+
'data-testid': dataTestId,
|
|
82
|
+
disabled,
|
|
83
|
+
enterKeyHint,
|
|
84
|
+
onChange,
|
|
85
|
+
onClick,
|
|
86
|
+
onFocus,
|
|
87
|
+
onKeyDown,
|
|
88
|
+
onKeyDownCapture,
|
|
89
|
+
onKeyPress,
|
|
90
|
+
onSelect,
|
|
91
|
+
placeholder,
|
|
92
|
+
readOnly,
|
|
93
|
+
tabIndex,
|
|
94
|
+
value,
|
|
95
|
+
...props
|
|
96
|
+
} = validateProps(AccessibleInputTextPropsSchema, rawProps);
|
|
76
97
|
|
|
77
|
-
|
|
98
|
+
const targetRef = useRef<HTMLInputElement>(null);
|
|
78
99
|
|
|
79
|
-
|
|
80
|
-
<input
|
|
81
|
-
aria-disabled={disabled || undefined}
|
|
82
|
-
aria-errormessage={ariaErrorMessage}
|
|
83
|
-
className={className}
|
|
84
|
-
onChange={disabled ? undefined : onChange}
|
|
85
|
-
onFocus={disabled ? undefined : onFocus}
|
|
86
|
-
onKeyDown={disabled ? undefined : onKeyDown}
|
|
87
|
-
onKeyDownCapture={disabled ? undefined : onKeyDownCapture}
|
|
88
|
-
onKeyPress={disabled ? undefined : onKeyPress}
|
|
89
|
-
onSelect={disabled ? undefined : onSelect}
|
|
90
|
-
placeholder={placeholder}
|
|
91
|
-
readOnly={readOnly || disabled}
|
|
92
|
-
ref={ref}
|
|
93
|
-
tabIndex={disabled ? -1 : tabIndex}
|
|
94
|
-
value={value}
|
|
95
|
-
{...props}
|
|
96
|
-
type="text"
|
|
97
|
-
/>
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
);
|
|
100
|
+
const ref = forwardedRef || targetRef;
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
'aria-errormessage': undefined,
|
|
104
|
-
className: undefined,
|
|
105
|
-
disabled: undefined,
|
|
106
|
-
enterKeyHint: undefined,
|
|
107
|
-
inputMode: undefined,
|
|
108
|
-
onChange: undefined,
|
|
109
|
-
onFocus: undefined,
|
|
110
|
-
onKeyDown: undefined,
|
|
111
|
-
onKeyDownCapture: undefined,
|
|
112
|
-
onKeyPress: undefined,
|
|
113
|
-
onSelect: undefined,
|
|
114
|
-
placeholder: undefined,
|
|
115
|
-
readOnly: undefined,
|
|
116
|
-
tabIndex: undefined,
|
|
117
|
-
value: undefined
|
|
118
|
-
};
|
|
102
|
+
useEnterKeyHint(ref, enterKeyHint);
|
|
119
103
|
|
|
120
|
-
|
|
104
|
+
return (
|
|
105
|
+
<input
|
|
106
|
+
aria-disabled={disabled || undefined}
|
|
107
|
+
aria-errormessage={ariaErrorMessage}
|
|
108
|
+
aria-label={ariaLabel}
|
|
109
|
+
className={className}
|
|
110
|
+
data-id={dataId}
|
|
111
|
+
data-testid={dataTestId}
|
|
112
|
+
onChange={disabled ? undefined : onChange}
|
|
113
|
+
onClick={onClick}
|
|
114
|
+
onFocus={disabled ? undefined : onFocus}
|
|
115
|
+
onKeyDown={disabled ? undefined : onKeyDown}
|
|
116
|
+
onKeyDownCapture={disabled ? undefined : onKeyDownCapture}
|
|
117
|
+
onKeyPress={disabled ? undefined : onKeyPress}
|
|
118
|
+
onSelect={disabled ? undefined : onSelect}
|
|
119
|
+
placeholder={placeholder}
|
|
120
|
+
readOnly={readOnly || disabled}
|
|
121
|
+
ref={ref}
|
|
122
|
+
tabIndex={disabled ? -1 : tabIndex}
|
|
123
|
+
value={value}
|
|
124
|
+
{...props}
|
|
125
|
+
type="text"
|
|
126
|
+
/>
|
|
127
|
+
);
|
|
128
|
+
});
|
|
121
129
|
|
|
122
|
-
AccessibleInputText.
|
|
123
|
-
'aria-errormessage': PropTypes.string,
|
|
124
|
-
className: PropTypes.string,
|
|
125
|
-
disabled: PropTypes.bool,
|
|
126
|
-
enterKeyHint: PropTypes.string,
|
|
127
|
-
inputMode: PropTypes.oneOf(['text', 'none', 'tel', 'url', 'email', 'numeric', 'decimal', 'search']),
|
|
128
|
-
onChange: PropTypes.func,
|
|
129
|
-
onFocus: PropTypes.func,
|
|
130
|
-
onKeyDown: PropTypes.func,
|
|
131
|
-
onKeyDownCapture: PropTypes.func,
|
|
132
|
-
onKeyPress: PropTypes.func,
|
|
133
|
-
onSelect: PropTypes.func,
|
|
134
|
-
placeholder: PropTypes.string,
|
|
135
|
-
readOnly: PropTypes.bool,
|
|
136
|
-
tabIndex: PropTypes.number,
|
|
137
|
-
// @ts-ignore PropTypes and TypeScript type do not well understood each other.
|
|
138
|
-
type: PropTypes.oneOf(['text']).isRequired,
|
|
139
|
-
value: PropTypes.string
|
|
140
|
-
};
|
|
130
|
+
AccessibleInputText.displayName = 'AccessibleInputText';
|
|
141
131
|
|
|
142
132
|
export default AccessibleInputText;
|
|
133
|
+
export { AccessibleInputTextPropsSchema, type AccessibleInputTextProps };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint no-magic-numbers: ["error", { "ignore": [-1] }] */
|
|
2
2
|
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import React, {
|
|
5
|
-
ChangeEventHandler,
|
|
6
|
-
FocusEventHandler,
|
|
4
|
+
type ChangeEventHandler,
|
|
5
|
+
type FocusEventHandler,
|
|
7
6
|
forwardRef,
|
|
8
|
-
KeyboardEventHandler,
|
|
9
|
-
|
|
7
|
+
type KeyboardEventHandler,
|
|
8
|
+
type MouseEventHandler,
|
|
9
|
+
type ReactEventHandler,
|
|
10
10
|
useRef
|
|
11
11
|
} from 'react';
|
|
12
12
|
|
|
@@ -28,11 +28,12 @@ import React, {
|
|
|
28
28
|
// - aria-disabled="true" is the source of truth
|
|
29
29
|
// - If the widget is contained by a <form>, the developer need to filter out some `onSubmit` event caused by this widget
|
|
30
30
|
|
|
31
|
-
type AccessibleTextAreaProps = {
|
|
31
|
+
type AccessibleTextAreaProps = Readonly<{
|
|
32
32
|
className?: string;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
inputMode?: 'text' | 'none' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
35
35
|
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
36
|
+
onClick?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
36
37
|
onFocus?: FocusEventHandler<HTMLTextAreaElement>;
|
|
37
38
|
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
38
39
|
onKeyDownCapture?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
@@ -43,7 +44,7 @@ type AccessibleTextAreaProps = {
|
|
|
43
44
|
rows?: number;
|
|
44
45
|
tabIndex?: number;
|
|
45
46
|
value?: string;
|
|
46
|
-
}
|
|
47
|
+
}>;
|
|
47
48
|
|
|
48
49
|
const AccessibleTextArea = forwardRef<HTMLTextAreaElement, AccessibleTextAreaProps>(
|
|
49
50
|
(
|
|
@@ -52,6 +53,7 @@ const AccessibleTextArea = forwardRef<HTMLTextAreaElement, AccessibleTextAreaPro
|
|
|
52
53
|
disabled,
|
|
53
54
|
inputMode,
|
|
54
55
|
onChange,
|
|
56
|
+
onClick,
|
|
55
57
|
onFocus,
|
|
56
58
|
onKeyDown,
|
|
57
59
|
onKeyDownCapture,
|
|
@@ -75,6 +77,7 @@ const AccessibleTextArea = forwardRef<HTMLTextAreaElement, AccessibleTextAreaPro
|
|
|
75
77
|
className={className}
|
|
76
78
|
inputMode={inputMode}
|
|
77
79
|
onChange={disabled ? undefined : onChange}
|
|
80
|
+
onClick={onClick}
|
|
78
81
|
onFocus={disabled ? undefined : onFocus}
|
|
79
82
|
onKeyDown={disabled ? undefined : onKeyDown}
|
|
80
83
|
onKeyDownCapture={disabled ? undefined : onKeyDownCapture}
|
|
@@ -91,40 +94,6 @@ const AccessibleTextArea = forwardRef<HTMLTextAreaElement, AccessibleTextAreaPro
|
|
|
91
94
|
}
|
|
92
95
|
);
|
|
93
96
|
|
|
94
|
-
AccessibleTextArea.defaultProps = {
|
|
95
|
-
className: undefined,
|
|
96
|
-
disabled: undefined,
|
|
97
|
-
inputMode: undefined,
|
|
98
|
-
onChange: undefined,
|
|
99
|
-
onFocus: undefined,
|
|
100
|
-
onKeyDown: undefined,
|
|
101
|
-
onKeyDownCapture: undefined,
|
|
102
|
-
onKeyPress: undefined,
|
|
103
|
-
onSelect: undefined,
|
|
104
|
-
placeholder: undefined,
|
|
105
|
-
readOnly: undefined,
|
|
106
|
-
rows: undefined,
|
|
107
|
-
tabIndex: undefined,
|
|
108
|
-
value: undefined
|
|
109
|
-
};
|
|
110
|
-
|
|
111
97
|
AccessibleTextArea.displayName = 'AccessibleTextArea';
|
|
112
98
|
|
|
113
|
-
AccessibleTextArea.propTypes = {
|
|
114
|
-
className: PropTypes.string,
|
|
115
|
-
disabled: PropTypes.bool,
|
|
116
|
-
inputMode: PropTypes.oneOf(['text', 'none', 'tel', 'url', 'email', 'numeric', 'decimal', 'search']),
|
|
117
|
-
onChange: PropTypes.func,
|
|
118
|
-
onFocus: PropTypes.func,
|
|
119
|
-
onKeyDown: PropTypes.func,
|
|
120
|
-
onKeyDownCapture: PropTypes.func,
|
|
121
|
-
onKeyPress: PropTypes.func,
|
|
122
|
-
onSelect: PropTypes.func,
|
|
123
|
-
placeholder: PropTypes.string,
|
|
124
|
-
readOnly: PropTypes.bool,
|
|
125
|
-
rows: PropTypes.number,
|
|
126
|
-
tabIndex: PropTypes.number,
|
|
127
|
-
value: PropTypes.string
|
|
128
|
-
};
|
|
129
|
-
|
|
130
99
|
export default AccessibleTextArea;
|