botframework-webchat-component 4.18.0 → 4.18.1-hotfix.20260127.b53acdf
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/decorator.js +3 -0
- package/dist/botframework-webchat-component.d.mts +1044 -462
- package/{lib/Styles/createStyleSet.d.ts → dist/botframework-webchat-component.d.ts} +1380 -263
- package/dist/botframework-webchat-component.decorator.css +3 -0
- package/dist/botframework-webchat-component.decorator.css.map +1 -0
- package/dist/botframework-webchat-component.decorator.d.mts +9 -0
- package/dist/botframework-webchat-component.decorator.d.ts +9 -0
- package/dist/botframework-webchat-component.decorator.js +3 -0
- package/dist/botframework-webchat-component.decorator.js.LEGAL.txt +1 -0
- package/dist/botframework-webchat-component.decorator.js.map +1 -0
- package/dist/botframework-webchat-component.decorator.mjs +3 -0
- package/dist/botframework-webchat-component.decorator.mjs.LEGAL.txt +1 -0
- package/dist/botframework-webchat-component.decorator.mjs.map +1 -0
- package/dist/botframework-webchat-component.internal.d.mts +28 -3
- package/dist/botframework-webchat-component.internal.d.ts +30 -0
- package/dist/botframework-webchat-component.internal.js +3 -0
- package/dist/botframework-webchat-component.internal.js.LEGAL.txt +0 -0
- package/dist/botframework-webchat-component.internal.js.map +1 -0
- package/dist/botframework-webchat-component.internal.mjs +1 -1
- package/dist/botframework-webchat-component.js +33 -0
- package/dist/botframework-webchat-component.js.LEGAL.txt +0 -0
- package/dist/botframework-webchat-component.js.map +1 -0
- package/dist/botframework-webchat-component.mjs +29 -8
- package/dist/botframework-webchat-component.mjs.map +1 -1
- package/dist/chunk-2PXHDPNQ.js +3 -0
- package/dist/chunk-2PXHDPNQ.js.LEGAL.txt +0 -0
- package/dist/chunk-2PXHDPNQ.js.map +1 -0
- package/dist/chunk-HZWWJL43.mjs +3 -0
- package/dist/chunk-HZWWJL43.mjs.LEGAL.txt +0 -0
- package/dist/chunk-HZWWJL43.mjs.map +1 -0
- package/dist/chunk-O4CKKYSK.js +3 -0
- package/dist/chunk-O4CKKYSK.js.LEGAL.txt +2 -0
- package/dist/chunk-O4CKKYSK.js.map +1 -0
- package/dist/chunk-Q5KJQWAB.mjs +3 -0
- package/dist/chunk-Q5KJQWAB.mjs.LEGAL.txt +0 -0
- package/dist/chunk-Q5KJQWAB.mjs.map +1 -0
- package/dist/chunk-TTVXUQC5.mjs +3 -0
- package/dist/chunk-TTVXUQC5.mjs.LEGAL.txt +2 -0
- package/dist/chunk-TTVXUQC5.mjs.map +1 -0
- package/dist/chunk-XOE3AOSM.js +3 -0
- package/dist/chunk-XOE3AOSM.js.LEGAL.txt +0 -0
- package/dist/chunk-XOE3AOSM.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/internal.js +1 -1
- package/package.json +58 -49
- package/src/Activity/Avatar.tsx +19 -22
- package/src/Activity/Bubble.tsx +30 -32
- package/src/Activity/CarouselFilmStrip.js +2 -2
- package/src/Activity/CarouselLayout.js +11 -3
- package/src/Activity/SayAlt.tsx +30 -0
- package/src/Activity/Speak.tsx +66 -35
- package/src/Activity/StackedLayout.tsx +34 -68
- package/src/ActivityFeedback/ActivityFeedback.tsx +27 -0
- package/src/ActivityFeedback/private/FeedbackForm.tsx +88 -0
- package/src/ActivityFeedback/private/FeedbackLoopWithMessage.tsx +29 -0
- package/src/ActivityFeedback/private/FeedbackLoopWithoutMessage.tsx +8 -0
- package/src/ActivityFeedback/private/FeedbackTextArea.tsx +122 -0
- package/src/ActivityFeedback/private/FeedbackVoteButton.tsx +63 -0
- package/src/ActivityFeedback/private/FeedbackVoteButtonBar.tsx +25 -0
- package/src/{ActivityStatus/private/Feedback → ActivityFeedback}/private/ThumbButton.Image.tsx +4 -4
- package/src/{ActivityStatus/private/Feedback → ActivityFeedback}/private/ThumbButton.tsx +21 -8
- package/src/ActivityFeedback/private/getDisclaimer.ts +6 -0
- package/src/ActivityFeedback/private/hasFeedbackLoop.ts +36 -0
- package/src/ActivityFeedback/providers/ActivityFeedbackComposer.tsx +302 -0
- package/src/ActivityFeedback/providers/private/ActivityFeedbackContext.ts +23 -0
- package/src/ActivityFeedback/providers/private/useActivityFeedbackContext.ts +6 -0
- package/src/ActivityFeedback/providers/useActions.ts +6 -0
- package/src/ActivityFeedback/providers/useActivity.ts +6 -0
- package/src/ActivityFeedback/providers/useHasSubmitted.ts +5 -0
- package/src/ActivityFeedback/providers/useSelectedAction.ts +6 -0
- package/src/ActivityFeedback/providers/useShouldAllowResubmit.ts +5 -0
- package/src/ActivityFeedback/providers/useShouldShowFeedbackForm.ts +5 -0
- package/src/ActivityFeedback/providers/useSubmitCallback.ts +6 -0
- package/src/ActivityStatus/OthersActivityStatus.tsx +25 -36
- package/src/ActivityStatus/SelfActivityStatus.tsx +6 -5
- package/src/ActivityStatus/SendStatus/SendStatus.tsx +20 -21
- package/src/ActivityStatus/StatusSlot.tsx +12 -0
- package/src/ActivityStatus/Timestamp.tsx +17 -12
- package/src/Assets/TypingAnimation.js +3 -1
- package/src/Attachment/Assets/DownloadIcon.tsx +35 -0
- package/src/Attachment/AudioContent.tsx +20 -29
- package/src/Attachment/FileContent.tsx +40 -44
- package/src/Attachment/HTMLVideoContent.tsx +21 -27
- package/src/Attachment/ImageContent.tsx +13 -27
- package/src/Attachment/Text/TextAttachment.tsx +38 -14
- package/src/Attachment/Text/TextContent.tsx +49 -16
- package/src/Attachment/Text/private/ActivityButton.tsx +72 -0
- package/src/Attachment/Text/private/ActivityCopyButton.tsx +114 -0
- package/src/Attachment/Text/private/ActivityViewCodeButton.tsx +67 -0
- package/src/Attachment/Text/private/CitationModalContent.tsx +21 -11
- package/src/Attachment/Text/private/CodeContent.tsx +41 -0
- package/src/Attachment/Text/private/MarkdownTextContent.tsx +47 -11
- package/src/Attachment/Text/private/Markdownable.tsx +33 -0
- package/src/Attachment/Text/private/MessageSensitivityLabel.tsx +37 -29
- package/src/Attachment/Text/private/PlainTextContent.tsx +26 -7
- package/src/Attachment/Text/private/ShieldIcon.tsx +52 -34
- package/src/Attachment/Text/private/isAIGeneratedActivity.ts +5 -0
- package/src/Attachment/Text/private/isBasedOnSoftwareSourceCode.ts +18 -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.js → InitialsAvatar.tsx} +19 -14
- package/src/BasicToast.js +1 -1
- package/src/BasicToaster.js +41 -5
- package/src/BasicTranscript.tsx +90 -268
- package/src/BasicWebChat.tsx +34 -35
- package/src/BuiltInDecorator.tsx +17 -0
- package/src/ChatHistory/ChatHistoryBox.tsx +28 -0
- package/src/ChatHistory/ChatHistoryToolbar.tsx +38 -0
- package/src/ChatHistory/private/ScrollToEndButton.tsx +105 -0
- package/src/Composer.tsx +99 -56
- package/src/ConnectivityStatus/{Connecting.js → Connecting.tsx} +25 -20
- package/src/Dictation.js +15 -23
- package/src/ErrorBox.tsx +19 -19
- package/src/LinkDefinition/LinkDefinitions.tsx +61 -12
- 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/createCoreMiddleware.tsx +20 -52
- package/src/Middleware/ActivityGrouping/createDefaultActivityGroupingDecoratorMiddleware.tsx +22 -0
- package/src/Middleware/ActivityGrouping/ui/RenderActivityGrouping.tsx +33 -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/createCoreMiddleware.tsx +23 -24
- package/src/Middleware/ScrollToEndButton/ScrollToEndButton.tsx +58 -0
- package/src/ScreenReaderText.tsx +27 -34
- package/src/SendBox/Assets/SendIcon.js +1 -1
- package/src/SendBox/AutoResizeTextArea.tsx +28 -64
- package/src/SendBox/BasicSendBox.tsx +21 -23
- package/src/SendBox/DictationInterims.tsx +32 -21
- package/src/SendBox/IconButton.tsx +35 -30
- package/src/SendBox/MicrophoneButton.tsx +21 -21
- package/src/SendBox/SendButton.tsx +19 -20
- package/src/SendBox/SuggestedAction.tsx +57 -71
- package/src/SendBox/SuggestedActions.tsx +1 -3
- package/src/SendBox/TextBox.tsx +25 -38
- package/src/SendBoxToolbar/Assets/AttachmentIcon.tsx +1 -1
- package/src/SendBoxToolbar/UploadButton.tsx +22 -20
- package/src/Styles/CustomPropertyNames.ts +14 -6
- package/src/Styles/StyleSet/ActivityButton.ts +46 -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 +80 -0
- package/src/Styles/StyleSet/FeedbackForm.ts +78 -0
- package/src/Styles/StyleSet/FeedbackTextArea.ts +81 -0
- package/src/Styles/StyleSet/ImageAvatar.ts +8 -5
- package/src/Styles/StyleSet/InitialsAvatar.ts +4 -5
- package/src/Styles/StyleSet/LinkDefinitions.ts +14 -8
- package/src/Styles/StyleSet/ModalDialog.ts +7 -1
- package/src/Styles/StyleSet/MonochromeImageMasker.ts +10 -0
- package/src/Styles/StyleSet/RenderMarkdown.ts +26 -0
- package/src/Styles/StyleSet/ScrollToEndButton.ts +0 -11
- package/src/Styles/StyleSet/SendStatus.ts +12 -0
- package/src/Styles/StyleSet/StackedLayout.ts +18 -9
- package/src/Styles/StyleSet/TextContent.ts +13 -1
- package/src/Styles/StyleSet/ThumbButton.ts +54 -16
- package/src/Styles/StyleSet/Tooltip.ts +62 -0
- package/src/Styles/StyleSet/ViewCodeDialog.ts +70 -0
- package/src/Styles/createStyleSet.ts +23 -11
- package/src/Styles/createStyles.ts +5 -0
- package/src/Styles/index.ts +3 -0
- package/src/Styles/useCustomPropertiesClassName.ts +75 -0
- package/src/Tooltip/index.ts +1 -0
- package/src/Tooltip/private/Tooltip.tsx +26 -0
- package/src/Transcript/ActivityRow.tsx +57 -9
- package/src/Transcript/ActivityTree.tsx +35 -0
- package/src/Transcript/FocusTrap.tsx +82 -34
- package/src/Transcript/LiveRegion/SendFailed.tsx +8 -10
- package/src/Transcript/LiveRegionTranscript.tsx +11 -62
- package/src/Transcript/TranscriptActivity.tsx +105 -0
- package/src/Utils/AccessibleInputText.tsx +30 -59
- 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 +1 -1
- package/src/Utils/JSONLinkedData/dereferenceBlankNodes.ts +1 -1
- package/src/Utils/JSONLinkedData/getSafeOwnPropertyNames.ts +2 -2
- package/src/Utils/MonochromeImageMasker.tsx +21 -0
- package/src/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.ts +4 -4
- package/src/Utils/firstTabbableDescendant.js +0 -1
- package/src/Utils/parseDocumentFragmentFromString.ts +9 -0
- package/src/Utils/serializeDocumentFragmentIntoString.ts +3 -0
- package/src/Utils/supportPseudoClass.ts +1 -1
- package/src/Utils/{textFormatToContentType.js → textFormatToContentType.ts} +3 -1
- package/src/decorator/index.ts +1 -0
- package/src/decorator/private/BorderFlair.module.css +564 -0
- package/src/decorator/private/BorderFlair.tsx +30 -0
- package/src/decorator/private/BorderLoader.module.css +48 -0
- package/src/decorator/private/BorderLoader.tsx +19 -0
- package/src/decorator/private/WebChatDecorator.tsx +30 -0
- package/src/decorator/private/WebChatTheme.tsx +17 -0
- package/src/decorator/private/createStyles.ts +5 -0
- package/src/env.d.ts +1 -0
- package/src/hooks/index.ts +4 -0
- 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 +2 -2
- package/src/hooks/internal/createWaitUntilable.ts +1 -1
- 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 +114 -0
- package/src/hooks/internal/useInjectStyles.ts +86 -0
- package/src/hooks/internal/useMemoWithPrevious.ts +1 -1
- package/src/hooks/internal/useMemoized.spec.jsx +3 -3
- package/src/hooks/internal/useObserveFocusVisible.ts +0 -1
- 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/useRenderMarkdownAsHTML.ts +11 -9
- package/src/index.ts +25 -4
- package/src/internal.ts +19 -3
- 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.ts +230 -0
- package/src/providers/CustomElements/customElements/CodeBlockCopyButton.tsx +101 -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 +29 -0
- package/src/providers/GroupedRenderingActivities/private/group.ts +19 -0
- package/src/providers/GroupedRenderingActivities/private/pick.spec.ts +33 -0
- package/src/providers/GroupedRenderingActivities/private/pick.ts +22 -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 +3 -3
- 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 +84 -0
- package/src/providers/RenderingActivities/private/RenderingActivitiesContext.ts +15 -0
- package/src/providers/RenderingActivities/private/useInternalActivitiesWithRenderer.ts +78 -0
- package/src/providers/RenderingActivities/useGetRenderActivityCallback.ts +11 -0
- package/src/providers/RenderingActivities/useRenderingActivities.ts +7 -0
- package/src/providers/RenderingActivities/useRenderingActivityKeys.ts +5 -0
- package/src/providers/RovingTabIndex/RovingTabIndexComposer.tsx +32 -23
- package/src/providers/Theme/ThemeProvider.tsx +24 -16
- package/src/providers/Theme/private/Context.ts +4 -2
- package/src/providers/TranscriptFocus/TranscriptFocusComposer.tsx +17 -27
- package/src/providers/TranscriptFocus/useFocusRelativeActivity.ts +1 -1
- package/src/providers/createContextAndHook.ts +23 -0
- package/src/providers/internal/SendBox/SendBoxComposer.tsx +28 -38
- package/src/testIds.ts +11 -0
- package/src/tsconfig.json +5 -8
- package/src/types/internal/mutableRefObject.ts +33 -0
- package/src/types/internal/reactNode.ts +16 -0
- package/src/types/internal/refObject.ts +40 -0
- package/dist/chunk-X37JABN5.mjs +0 -5
- 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.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/Slotted.tsx +0 -26
- package/src/ActivityStatus/private/Feedback/Feedback.tsx +0 -60
- package/src/ActivityStatus/private/Feedback/private/VoteButton.tsx +0 -36
- package/src/Attachment/Assets/DownloadIcon.js +0 -29
- package/src/Avatar/ImageAvatar.js +0 -49
- package/src/Middleware/ScrollToEndButton/ScrollToEndButton.js +0 -45
- 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/CroppedImage.js +0 -45
- package/src/Utils/parseDocumentFromString.ts +0 -5
- package/src/Utils/serializeDocumentIntoString.ts +0 -10
- package/src/hooks/internal/useStyleToEmotionObject.js +0 -5
- 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
- /package/dist/{chunk-X37JABN5.mjs.LEGAL.txt → botframework-webchat-component.decorator.css.LEGAL.txt} +0 -0
- /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbDislike16Filled.tsx +0 -0
- /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbDislike16Regular.tsx +0 -0
- /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbLike16Filled.tsx +0 -0
- /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbLike16Regular.tsx +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { hooks } from 'botframework-webchat-api';
|
|
2
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import React, { memo, useCallback } from 'react';
|
|
5
|
+
import { boolean, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
6
|
+
|
|
7
|
+
import useStyleSet from '../../../hooks/useStyleSet';
|
|
8
|
+
import useShowModal from '../../../providers/ModalDialog/useShowModal';
|
|
9
|
+
import LocalizedString from '../../../Utils/LocalizedString';
|
|
10
|
+
import ActivityButton from './ActivityButton';
|
|
11
|
+
import CodeContent from './CodeContent';
|
|
12
|
+
|
|
13
|
+
const CODE_ICON_URL = `data:image/svg+xml;utf8,${encodeURIComponent('<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.94 4.05a.75.75 0 0 0-1.38-.6l-5.5 12.5a.75.75 0 1 0 1.38.6l5.5-12.5Zm1.35 9.8a.75.75 0 0 1-.13-1.06L16.3 10l-2.14-2.8a.75.75 0 0 1 1.18-.9l2.5 3.24c.21.27.21.65 0 .92l-2.5 3.25a.75.75 0 0 1-1.05.13Zm-8.58-7.7c.33.26.39.73.13 1.06L3.7 10l2.14 2.8a.75.75 0 1 1-1.18.9l-2.5-3.24a.75.75 0 0 1 0-.92l2.5-3.25a.75.75 0 0 1 1.05-.13Z" fill="currentColor"></path></svg>')}`;
|
|
14
|
+
|
|
15
|
+
const { useLocalizer } = hooks;
|
|
16
|
+
|
|
17
|
+
const activityViewCodeButtonPropsSchema = pipe(
|
|
18
|
+
object({
|
|
19
|
+
className: optional(string()),
|
|
20
|
+
code: string(),
|
|
21
|
+
language: optional(string()),
|
|
22
|
+
isAIGenerated: boolean(),
|
|
23
|
+
title: string()
|
|
24
|
+
}),
|
|
25
|
+
readonly()
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
type ActivityViewCodeButtonProps = InferInput<typeof activityViewCodeButtonPropsSchema>;
|
|
29
|
+
|
|
30
|
+
const ActivityViewCodeButton = (props: ActivityViewCodeButtonProps) => {
|
|
31
|
+
const { className, code, language, title, isAIGenerated } = validateProps(activityViewCodeButtonPropsSchema, props);
|
|
32
|
+
|
|
33
|
+
const [{ activityButton, viewCodeDialog }] = useStyleSet();
|
|
34
|
+
const showModal = useShowModal();
|
|
35
|
+
const localize = useLocalizer();
|
|
36
|
+
|
|
37
|
+
const showCodeModal = useCallback(() => {
|
|
38
|
+
showModal(
|
|
39
|
+
() => (
|
|
40
|
+
<CodeContent code={code} language={language} title={title}>
|
|
41
|
+
{isAIGenerated && (
|
|
42
|
+
<div className={'webchat__view-code-dialog__footer'}>
|
|
43
|
+
<LocalizedString linkClassName={'webchat__view-code-dialog__link'} stringIds="ACTIVITY_CODE_CAUTION" />
|
|
44
|
+
</div>
|
|
45
|
+
)}
|
|
46
|
+
</CodeContent>
|
|
47
|
+
),
|
|
48
|
+
{
|
|
49
|
+
className: classNames('webchat__view-code-dialog', viewCodeDialog),
|
|
50
|
+
'aria-label': localize('ACTIVITY_CODE_ALT', title ?? '')
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}, [code, isAIGenerated, language, localize, showModal, title, viewCodeDialog]);
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<ActivityButton
|
|
57
|
+
className={classNames(activityButton, 'webchat__activity-button', className)}
|
|
58
|
+
data-testid="view code button"
|
|
59
|
+
iconURL={CODE_ICON_URL}
|
|
60
|
+
onClick={showCodeModal}
|
|
61
|
+
text={localize('VIEW_CODE_BUTTON_TEXT')}
|
|
62
|
+
/>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default memo(ActivityViewCodeButton);
|
|
67
|
+
export { activityViewCodeButtonPropsSchema, type ActivityViewCodeButtonProps };
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
1
2
|
import classNames from 'classnames';
|
|
2
|
-
import React, { Fragment, memo } from 'react';
|
|
3
|
+
import React, { Fragment, memo, useMemo } from 'react';
|
|
4
|
+
import { object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
3
5
|
|
|
4
6
|
import useRenderMarkdownAsHTML from '../../../hooks/useRenderMarkdownAsHTML';
|
|
5
7
|
import useStyleSet from '../../../hooks/useStyleSet';
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const citationModalContentPropsSchema = pipe(
|
|
10
|
+
object({
|
|
11
|
+
headerText: optional(string()),
|
|
12
|
+
markdown: string()
|
|
13
|
+
}),
|
|
14
|
+
readonly()
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
type CitationModalContentProps = InferInput<typeof citationModalContentPropsSchema>;
|
|
18
|
+
|
|
19
|
+
function CitationModalContent(props: CitationModalContentProps) {
|
|
20
|
+
const { headerText, markdown } = validateProps(citationModalContentPropsSchema, props);
|
|
11
21
|
|
|
12
|
-
const CitationModalContent = memo(({ headerText, markdown }: Props) => {
|
|
13
22
|
const [{ renderMarkdown: renderMarkdownStyleSet }] = useStyleSet();
|
|
14
23
|
const renderMarkdownAsHTML = useRenderMarkdownAsHTML('citation modal');
|
|
15
24
|
|
|
25
|
+
const html = useMemo(() => ({ __html: renderMarkdownAsHTML(markdown) }), [markdown, renderMarkdownAsHTML]);
|
|
26
|
+
|
|
16
27
|
return (
|
|
17
28
|
<Fragment>
|
|
18
29
|
{headerText && <h2 className="webchat__citation-modal-dialog__header">{headerText}</h2>}
|
|
@@ -25,15 +36,14 @@ const CitationModalContent = memo(({ headerText, markdown }: Props) => {
|
|
|
25
36
|
)}
|
|
26
37
|
// The content rendered by `renderMarkdownAsHTML` is sanitized.
|
|
27
38
|
// eslint-disable-next-line react/no-danger
|
|
28
|
-
dangerouslySetInnerHTML={
|
|
39
|
+
dangerouslySetInnerHTML={html}
|
|
29
40
|
/>
|
|
30
41
|
) : (
|
|
31
42
|
<div className={classNames('webchat__render-markdown', renderMarkdownStyleSet + '')}>{markdown}</div>
|
|
32
43
|
)}
|
|
33
44
|
</Fragment>
|
|
34
45
|
);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
CitationModalContent.displayName = 'CitationModalContent';
|
|
46
|
+
}
|
|
38
47
|
|
|
39
|
-
export default CitationModalContent;
|
|
48
|
+
export default memo(CitationModalContent);
|
|
49
|
+
export { citationModalContentPropsSchema, type CitationModalContentProps };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import React, { Fragment, memo } from 'react';
|
|
4
|
+
import { object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
5
|
+
|
|
6
|
+
import useCodeBlockTag from '../../../providers/CustomElements/useCodeBlockTagName';
|
|
7
|
+
import reactNode from '../../../types/internal/reactNode';
|
|
8
|
+
|
|
9
|
+
const codeContentPropsSchema = pipe(
|
|
10
|
+
object({
|
|
11
|
+
children: optional(reactNode()),
|
|
12
|
+
className: optional(string()),
|
|
13
|
+
code: string(),
|
|
14
|
+
language: string(),
|
|
15
|
+
title: string()
|
|
16
|
+
}),
|
|
17
|
+
readonly()
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
type CodeContentProps = InferInput<typeof codeContentPropsSchema>;
|
|
21
|
+
|
|
22
|
+
function CodeContent(props: CodeContentProps) {
|
|
23
|
+
const { children, className, code, language, title } = validateProps(codeContentPropsSchema, props);
|
|
24
|
+
|
|
25
|
+
const [, CodeBlock] = useCodeBlockTag();
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<Fragment>
|
|
29
|
+
<div className={'webchat__view-code-dialog__header'}>
|
|
30
|
+
<h2 className={'webchat__view-code-dialog__title'}>{title}</h2>
|
|
31
|
+
</div>
|
|
32
|
+
<CodeBlock className={classNames('webchat__view-code-dialog__body', className)} language={language}>
|
|
33
|
+
<code>{code}</code>
|
|
34
|
+
</CodeBlock>
|
|
35
|
+
{children}
|
|
36
|
+
</Fragment>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default memo(CodeContent);
|
|
41
|
+
export { codeContentPropsSchema, type CodeContentProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { hooks } from 'botframework-webchat-api';
|
|
2
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
2
3
|
import {
|
|
3
4
|
getOrgSchemaMessage,
|
|
4
5
|
onErrorResumeNext,
|
|
@@ -9,20 +10,27 @@ import {
|
|
|
9
10
|
import classNames from 'classnames';
|
|
10
11
|
import type { Definition } from 'mdast';
|
|
11
12
|
import { fromMarkdown } from 'mdast-util-from-markdown';
|
|
12
|
-
import React, { memo, useCallback, useMemo, type MouseEventHandler } from 'react';
|
|
13
|
+
import React, { memo, useCallback, useMemo, useRef, type MouseEventHandler } from 'react';
|
|
13
14
|
import { useRefFrom } from 'use-ref-from';
|
|
15
|
+
import { custom, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
14
16
|
|
|
17
|
+
import ActivityFeedback from '../../../ActivityFeedback/ActivityFeedback';
|
|
15
18
|
import { LinkDefinitionItem, LinkDefinitions } from '../../../LinkDefinition/index';
|
|
16
19
|
import dereferenceBlankNodes from '../../../Utils/JSONLinkedData/dereferenceBlankNodes';
|
|
17
20
|
import useRenderMarkdownAsHTML from '../../../hooks/useRenderMarkdownAsHTML';
|
|
18
21
|
import useStyleSet from '../../../hooks/useStyleSet';
|
|
19
22
|
import useShowModal from '../../../providers/ModalDialog/useShowModal';
|
|
20
23
|
import { type PropsOf } from '../../../types/PropsOf';
|
|
24
|
+
import reactNode from '../../../types/internal/reactNode';
|
|
25
|
+
import ActivityCopyButton from './ActivityCopyButton';
|
|
26
|
+
import ActivityViewCodeButton from './ActivityViewCodeButton';
|
|
21
27
|
import CitationModalContext from './CitationModalContent';
|
|
22
28
|
import MessageSensitivityLabel, { type MessageSensitivityLabelProps } from './MessageSensitivityLabel';
|
|
29
|
+
import isAIGeneratedActivity from './isAIGeneratedActivity';
|
|
30
|
+
import isBasedOnSoftwareSourceCode from './isBasedOnSoftwareSourceCode';
|
|
23
31
|
import isHTMLButtonElement from './isHTMLButtonElement';
|
|
24
32
|
|
|
25
|
-
const { useLocalizer } = hooks;
|
|
33
|
+
const { useLocalizer, useStyleOptions } = hooks;
|
|
26
34
|
|
|
27
35
|
type Entry = {
|
|
28
36
|
claim?: OrgSchemaClaim | undefined;
|
|
@@ -32,16 +40,25 @@ type Entry = {
|
|
|
32
40
|
url?: string | undefined;
|
|
33
41
|
};
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
const markdownTextContentPropsSchema = pipe(
|
|
44
|
+
object({
|
|
45
|
+
activity: custom<WebChatActivity>(() => true),
|
|
46
|
+
children: optional(reactNode()),
|
|
47
|
+
markdown: string()
|
|
48
|
+
}),
|
|
49
|
+
readonly()
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
type MarkdownTextContentProps = InferInput<typeof markdownTextContentPropsSchema>;
|
|
39
53
|
|
|
40
54
|
function isCitationURL(url: string): boolean {
|
|
41
55
|
return onErrorResumeNext(() => new URL(url))?.protocol === 'cite:';
|
|
42
56
|
}
|
|
43
57
|
|
|
44
|
-
|
|
58
|
+
function MarkdownTextContent(props: MarkdownTextContentProps) {
|
|
59
|
+
const { activity, children, markdown } = validateProps(markdownTextContentPropsSchema, props);
|
|
60
|
+
|
|
61
|
+
const [{ feedbackActionsPlacement }] = useStyleOptions();
|
|
45
62
|
const [
|
|
46
63
|
{
|
|
47
64
|
citationModalDialog: citationModalDialogStyleSet,
|
|
@@ -49,6 +66,7 @@ const MarkdownTextContent = memo(({ activity, markdown }: Props) => {
|
|
|
49
66
|
textContent: textContentStyleSet
|
|
50
67
|
}
|
|
51
68
|
] = useStyleSet();
|
|
69
|
+
const contentRef = useRef<HTMLDivElement>(null);
|
|
52
70
|
const localize = useLocalizer();
|
|
53
71
|
const graph = useMemo(() => dereferenceBlankNodes(activity.entities || []), [activity.entities]);
|
|
54
72
|
const renderMarkdownAsHTML = useRenderMarkdownAsHTML('message activity');
|
|
@@ -204,7 +222,9 @@ const MarkdownTextContent = memo(({ activity, markdown }: Props) => {
|
|
|
204
222
|
// eslint-disable-next-line react/no-danger
|
|
205
223
|
dangerouslySetInnerHTML={dangerouslySetInnerHTML}
|
|
206
224
|
onClick={handleClick}
|
|
225
|
+
ref={contentRef}
|
|
207
226
|
/>
|
|
227
|
+
{children}
|
|
208
228
|
{!!entries.length && (
|
|
209
229
|
<LinkDefinitions<MessageSensitivityLabelProps>
|
|
210
230
|
accessoryComponentType={messageSensitivityLabelProps && MessageSensitivityLabel}
|
|
@@ -223,10 +243,26 @@ const MarkdownTextContent = memo(({ activity, markdown }: Props) => {
|
|
|
223
243
|
))}
|
|
224
244
|
</LinkDefinitions>
|
|
225
245
|
)}
|
|
246
|
+
<div className="webchat__text-content__activity-actions">
|
|
247
|
+
{activity.type === 'message' && isBasedOnSoftwareSourceCode(messageThing) && messageThing.isBasedOn.text ? (
|
|
248
|
+
<ActivityViewCodeButton
|
|
249
|
+
className="webchat__text-content__activity-view-code-button"
|
|
250
|
+
code={messageThing.isBasedOn.text}
|
|
251
|
+
isAIGenerated={isAIGeneratedActivity(activity)}
|
|
252
|
+
language={messageThing.isBasedOn.programmingLanguage}
|
|
253
|
+
title={messageThing.isBasedOn.programmingLanguage}
|
|
254
|
+
/>
|
|
255
|
+
) : null}
|
|
256
|
+
{activity.type === 'message' && activity.text && messageThing?.keywords?.includes('AllowCopy') ? (
|
|
257
|
+
<ActivityCopyButton className="webchat__text-content__activity-copy-button" targetRef={contentRef} />
|
|
258
|
+
) : null}
|
|
259
|
+
{activity.type === 'message' && feedbackActionsPlacement === 'activity-actions' && (
|
|
260
|
+
<ActivityFeedback activity={activity} />
|
|
261
|
+
)}
|
|
262
|
+
</div>
|
|
226
263
|
</div>
|
|
227
264
|
);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
MarkdownTextContent.displayName = 'MarkdownTextContent';
|
|
265
|
+
}
|
|
231
266
|
|
|
232
|
-
export default MarkdownTextContent;
|
|
267
|
+
export default memo(MarkdownTextContent);
|
|
268
|
+
export { markdownTextContentPropsSchema, type MarkdownTextContentProps };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
3
|
+
|
|
4
|
+
import { useRenderMarkdownAsHTML } from '../../../hooks';
|
|
5
|
+
|
|
6
|
+
const markdownablePropsSchema = pipe(
|
|
7
|
+
object({
|
|
8
|
+
className: optional(string()),
|
|
9
|
+
text: string()
|
|
10
|
+
}),
|
|
11
|
+
readonly()
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
type MarkdownableProps = InferInput<typeof markdownablePropsSchema>;
|
|
15
|
+
|
|
16
|
+
function Markdownable({ className, text }: MarkdownableProps) {
|
|
17
|
+
const renderMarkdownAsHTML = useRenderMarkdownAsHTML('message activity');
|
|
18
|
+
|
|
19
|
+
const innerHTML = useMemo<Readonly<{ __html: string }> | undefined>(
|
|
20
|
+
() => Object.freeze({ __html: renderMarkdownAsHTML?.(text) }),
|
|
21
|
+
[text, renderMarkdownAsHTML]
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
return innerHTML ? (
|
|
25
|
+
// eslint-disable-next-line react/no-danger
|
|
26
|
+
<span className={className} dangerouslySetInnerHTML={innerHTML} />
|
|
27
|
+
) : (
|
|
28
|
+
<span className={className}>{text}</span>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default memo(Markdownable);
|
|
33
|
+
export { markdownablePropsSchema, type MarkdownableProps };
|
|
@@ -1,38 +1,46 @@
|
|
|
1
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
1
2
|
import classNames from 'classnames';
|
|
2
3
|
import React, { memo, useMemo } from 'react';
|
|
4
|
+
import { boolean, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
3
5
|
|
|
4
6
|
import ShieldIcon from './ShieldIcon';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const messageSensitivityLabelPropsSchema = pipe(
|
|
9
|
+
object({
|
|
10
|
+
className: optional(string()),
|
|
11
|
+
color: optional(string()),
|
|
12
|
+
isEncrypted: optional(boolean()),
|
|
13
|
+
name: optional(string()),
|
|
14
|
+
title: optional(string())
|
|
15
|
+
}),
|
|
16
|
+
readonly()
|
|
17
|
+
);
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
<div
|
|
16
|
-
className={classNames(
|
|
17
|
-
'webchat__link-definitions__message-sensitivity-label',
|
|
18
|
-
{
|
|
19
|
-
'webchat__link-definitions__message-sensitivity-label--is-encrypted': isEncrypted
|
|
20
|
-
},
|
|
21
|
-
className
|
|
22
|
-
)}
|
|
23
|
-
title={useMemo(() => [name, title].filter(Boolean).join('\n\n'), [name, title])}
|
|
24
|
-
>
|
|
25
|
-
<ShieldIcon
|
|
26
|
-
className="webchat__link-definitions__message-sensitivity-label-icon"
|
|
27
|
-
fillColor={color}
|
|
28
|
-
hasLock={isEncrypted}
|
|
29
|
-
/>
|
|
30
|
-
<span className="webchat__link-definitions__message-sensitivity-label-text">{name}</span>
|
|
31
|
-
</div>
|
|
32
|
-
));
|
|
19
|
+
type MessageSensitivityLabelProps = InferInput<typeof messageSensitivityLabelPropsSchema>;
|
|
33
20
|
|
|
34
|
-
MessageSensitivityLabel
|
|
21
|
+
function MessageSensitivityLabel(props: MessageSensitivityLabelProps) {
|
|
22
|
+
const { className, color, isEncrypted, name, title } = validateProps(messageSensitivityLabelPropsSchema, props);
|
|
35
23
|
|
|
36
|
-
|
|
24
|
+
return (
|
|
25
|
+
<div
|
|
26
|
+
className={classNames(
|
|
27
|
+
'webchat__link-definitions__message-sensitivity-label',
|
|
28
|
+
{
|
|
29
|
+
'webchat__link-definitions__message-sensitivity-label--is-encrypted': isEncrypted
|
|
30
|
+
},
|
|
31
|
+
className
|
|
32
|
+
)}
|
|
33
|
+
title={useMemo(() => [name, title].filter(Boolean).join('\n\n'), [name, title])}
|
|
34
|
+
>
|
|
35
|
+
<ShieldIcon
|
|
36
|
+
className="webchat__link-definitions__message-sensitivity-label-icon"
|
|
37
|
+
fillColor={color}
|
|
38
|
+
hasLock={isEncrypted}
|
|
39
|
+
/>
|
|
40
|
+
<span className="webchat__link-definitions__message-sensitivity-label-text">{name}</span>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
37
44
|
|
|
38
|
-
export
|
|
45
|
+
export default memo(MessageSensitivityLabel);
|
|
46
|
+
export { messageSensitivityLabelPropsSchema, type MessageSensitivityLabelProps };
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
1
2
|
import classNames from 'classnames';
|
|
2
|
-
import React, {
|
|
3
|
+
import React, { Fragment, memo } from 'react';
|
|
4
|
+
import { object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
3
5
|
|
|
4
6
|
import useStyleSet from '../../../hooks/useStyleSet';
|
|
7
|
+
import reactNode from '../../../types/internal/reactNode';
|
|
5
8
|
|
|
6
|
-
|
|
9
|
+
const plainTextContentPropsSchema = pipe(
|
|
10
|
+
object({
|
|
11
|
+
children: optional(reactNode()),
|
|
12
|
+
text: string()
|
|
13
|
+
}),
|
|
14
|
+
readonly()
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
type PlainTextContentProps = InferInput<typeof plainTextContentPropsSchema>;
|
|
18
|
+
|
|
19
|
+
function PlainTextContent(props: PlainTextContentProps) {
|
|
20
|
+
const { children, text } = validateProps(plainTextContentPropsSchema, props);
|
|
7
21
|
|
|
8
|
-
const PlainTextContent: FC<Props> = memo(({ text }: Props) => {
|
|
9
22
|
const [{ textContent: textContentStyleSet }] = useStyleSet();
|
|
10
23
|
|
|
11
24
|
return (
|
|
@@ -18,10 +31,16 @@ const PlainTextContent: FC<Props> = memo(({ text }: Props) => {
|
|
|
18
31
|
{line.trim()}
|
|
19
32
|
</p>
|
|
20
33
|
))}
|
|
34
|
+
{children && (
|
|
35
|
+
<div
|
|
36
|
+
className={classNames('webchat__text-content', 'webchat__text-content--children', textContentStyleSet + '')}
|
|
37
|
+
>
|
|
38
|
+
{children}
|
|
39
|
+
</div>
|
|
40
|
+
)}
|
|
21
41
|
</Fragment>
|
|
22
42
|
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
PlainTextContent.displayName = 'PlainTextContent';
|
|
43
|
+
}
|
|
26
44
|
|
|
27
|
-
export default PlainTextContent;
|
|
45
|
+
export default memo(PlainTextContent);
|
|
46
|
+
export { plainTextContentPropsSchema, type PlainTextContentProps };
|
|
@@ -1,42 +1,60 @@
|
|
|
1
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
1
2
|
import classNames from 'classnames';
|
|
2
|
-
import React, { Fragment } from 'react';
|
|
3
|
+
import React, { Fragment, memo } from 'react';
|
|
4
|
+
import { boolean, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const shieldIconPropsSchema = pipe(
|
|
7
|
+
object({
|
|
8
|
+
className: optional(string()),
|
|
9
|
+
fillColor: optional(string()),
|
|
10
|
+
hasLock: optional(boolean())
|
|
11
|
+
}),
|
|
12
|
+
readonly()
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
type ShieldIconProps = InferInput<typeof shieldIconPropsSchema>;
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
function ShieldIcon(props: ShieldIconProps) {
|
|
18
|
+
const { className, fillColor, hasLock } = validateProps(shieldIconPropsSchema, props);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<svg
|
|
22
|
+
className={classNames(className)}
|
|
23
|
+
height="16"
|
|
24
|
+
viewBox="0 0 16 16"
|
|
25
|
+
width="16"
|
|
26
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
+
>
|
|
28
|
+
{hasLock ? (
|
|
29
|
+
<Fragment>
|
|
30
|
+
{fillColor && (
|
|
31
|
+
<path
|
|
32
|
+
d="M8.35464 2.14678C8.15946 1.95123 7.84268 1.95105 7.64728 2.14638C6.40416 3.38902 5.02923 4 3.5 4C3.22386 4 3 4.22386 3 4.5V7.50126C3 10.4242 4.35378 12.4971 7 13.6523V10C7 9.06808 7.63739 8.28503 8.5 8.06301V8C8.5 6.34315 9.84315 5 11.5 5C12.0464 5 12.5587 5.14609 13 5.40135V4.5C13 4.22386 12.7761 4 12.5 4C10.9689 4 9.5947 3.38913 8.35464 2.14678ZM9.5 9V8C9.5 6.89543 10.3954 6 11.5 6C12.6046 6 13.5 6.89543 13.5 8V9H14C14.5523 9 15 9.44772 15 10V14C15 14.5523 14.5523 15 14 15H9C8.44771 15 8 14.5523 8 14V10C8 9.44772 8.44772 9 9 9H9.5ZM10.5 8V9H12.5V8C12.5 7.44772 12.0523 7 11.5 7C10.9477 7 10.5 7.44772 10.5 8ZM12.25 12C12.25 11.5858 11.9142 11.25 11.5 11.25C11.0858 11.25 10.75 11.5858 10.75 12C10.75 12.4142 11.0858 12.75 11.5 12.75C11.9142 12.75 12.25 12.4142 12.25 12Z"
|
|
33
|
+
fill={fillColor}
|
|
34
|
+
/>
|
|
35
|
+
)}
|
|
15
36
|
<path
|
|
16
|
-
d="
|
|
17
|
-
fill=
|
|
37
|
+
d="M7.64728 2.14638C7.84268 1.95105 8.15946 1.95123 8.35464 2.14678C9.5947 3.38913 10.9689 4 12.5 4C12.7761 4 13 4.22386 13 4.5V5.40135C12.6963 5.22567 12.359 5.1017 12 5.04148V4.98121C10.5195 4.86895 9.18521 4.25528 8.00042 3.18917C6.81393 4.25491 5.47941 4.86879 4 4.98118V7.50126C4 8.9349 4.36269 10.0655 5.02127 10.9453C5.49089 11.5727 6.14168 12.1134 7 12.5478V13.6523C4.35378 12.4971 3 10.4242 3 7.50126V4.5C3 4.22386 3.22386 4 3.5 4C5.02923 4 6.40416 3.38902 7.64728 2.14638ZM9.5 8V9H9C8.44772 9 8 9.44772 8 10V14C8 14.5523 8.44771 15 9 15H14C14.5523 15 15 14.5523 15 14V10C15 9.44772 14.5523 9 14 9H13.5V8C13.5 6.89543 12.6046 6 11.5 6C10.3954 6 9.5 6.89543 9.5 8ZM10.5 9V8C10.5 7.44772 10.9477 7 11.5 7C12.0523 7 12.5 7.44772 12.5 8V9H10.5ZM11.5 11.25C11.9142 11.25 12.25 11.5858 12.25 12C12.25 12.4142 11.9142 12.75 11.5 12.75C11.0858 12.75 10.75 12.4142 10.75 12C10.75 11.5858 11.0858 11.25 11.5 11.25Z"
|
|
38
|
+
fill="currentcolor"
|
|
18
39
|
/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
</Fragment>
|
|
41
|
+
) : (
|
|
42
|
+
<Fragment>
|
|
43
|
+
{fillColor && (
|
|
44
|
+
<path
|
|
45
|
+
d="M7.64728 2.14638C7.84268 1.95105 8.15946 1.95123 8.35464 2.14678C9.5947 3.38913 10.9689 4 12.5 4C12.7761 4 13 4.22386 13 4.5V7.50126C13 10.7196 11.3587 12.9075 8.15811 13.9743C8.05548 14.0086 7.94452 14.0086 7.84189 13.9743C4.64126 12.9075 3 10.7196 3 7.50126V4.5C3 4.22386 3.22386 4 3.5 4C5.02923 4 6.40416 3.38902 7.64728 2.14638Z"
|
|
46
|
+
fill={fillColor}
|
|
47
|
+
/>
|
|
48
|
+
)}
|
|
28
49
|
<path
|
|
29
|
-
d="M7.64728 2.14638C7.84268 1.95105 8.15946 1.95123 8.35464 2.14678C9.5947 3.38913 10.9689 4 12.5 4C12.7761 4 13 4.22386 13 4.5V7.50126C13 10.7196 11.3587 12.9075 8.15811 13.9743C8.05548 14.0086 7.94452 14.0086 7.84189 13.9743C4.64126 12.9075 3 10.7196 3 7.50126V4.5C3 4.22386 3.22386 4 3.5 4C5.02923 4 6.40416 3.38902 7.64728 2.
|
|
30
|
-
fill=
|
|
50
|
+
d="M7.64728 2.14638C7.84268 1.95105 8.15946 1.95123 8.35464 2.14678C9.5947 3.38913 10.9689 4 12.5 4C12.7761 4 13 4.22386 13 4.5V7.50126C13 10.7196 11.3587 12.9075 8.15811 13.9743C8.05548 14.0086 7.94452 14.0086 7.84189 13.9743C4.64126 12.9075 3 10.7196 3 7.50126V4.5C3 4.22386 3.22386 4 3.5 4C5.02923 4 6.40416 3.38902 7.64728 2.14638ZM8.00042 3.18917C6.81393 4.25491 5.47941 4.86879 4 4.98118V7.50126C4 8.9349 4.36269 10.0655 5.02127 10.9453C5.65858 11.7967 6.62953 12.4885 8 12.9715C9.37047 12.4885 10.3414 11.7967 10.9787 10.9453C11.6373 10.0655 12 8.9349 12 7.50126V4.98121C10.5195 4.86895 9.18521 4.25528 8.00042 3.18917Z"
|
|
51
|
+
fill="currentcolor"
|
|
31
52
|
/>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</Fragment>
|
|
38
|
-
)}
|
|
39
|
-
</svg>
|
|
40
|
-
);
|
|
53
|
+
</Fragment>
|
|
54
|
+
)}
|
|
55
|
+
</svg>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
41
58
|
|
|
42
|
-
export default ShieldIcon;
|
|
59
|
+
export default memo(ShieldIcon);
|
|
60
|
+
export { shieldIconPropsSchema, type ShieldIconProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';
|
|
2
|
+
|
|
3
|
+
export default function isAIGeneratedActivity(activity: undefined | WebChatActivity) {
|
|
4
|
+
return !!(activity && getOrgSchemaMessage(activity?.entities || [])?.keywords?.includes('AIGeneratedContent'));
|
|
5
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type OrgSchemaCreativeWork } from 'botframework-webchat-core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Type guard to check if the isBasedOn field is of type SoftwareSourceCode
|
|
5
|
+
* @param messageEntity The message entity to check
|
|
6
|
+
* @returns True if isBasedOn is of type SoftwareSourceCode, false otherwise
|
|
7
|
+
*/
|
|
8
|
+
export default function isBasedOnSoftwareSourceCode(
|
|
9
|
+
messageEntity?: OrgSchemaCreativeWork
|
|
10
|
+
): messageEntity is OrgSchemaCreativeWork & { isBasedOn: SoftwareSourceCode } {
|
|
11
|
+
return messageEntity?.isBasedOn?.['@type'] === 'SoftwareSourceCode';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface SoftwareSourceCode {
|
|
15
|
+
'@type': 'SoftwareSourceCode';
|
|
16
|
+
programmingLanguage: string;
|
|
17
|
+
text: string;
|
|
18
|
+
}
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
import useStyleSet from '../hooks/useStyleSet';
|
|
6
|
-
import useStyleToEmotionObject from '../hooks/internal/
|
|
6
|
+
import { useStyleToEmotionObject } from '../hooks/internal/styleToEmotionObject';
|
|
7
7
|
import VideoContent from './VideoContent';
|
|
8
8
|
|
|
9
9
|
const ROOT_STYLE = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React, {
|
|
1
|
+
import { validateProps } from 'botframework-webchat-api/internal';
|
|
2
|
+
import React, { memo } from 'react';
|
|
3
|
+
import { boolean, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
|
|
3
4
|
|
|
4
5
|
import HTMLVideoContent from './HTMLVideoContent';
|
|
5
6
|
import VimeoContent from './VimeoContent';
|
|
@@ -30,15 +31,22 @@ function parseURL(url) {
|
|
|
30
31
|
return { hostname, pathname, search };
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
const videoContentPropsSchema = pipe(
|
|
35
|
+
object({
|
|
36
|
+
alt: optional(string()),
|
|
37
|
+
autoPlay: optional(boolean()),
|
|
38
|
+
loop: optional(boolean()),
|
|
39
|
+
poster: optional(string()),
|
|
40
|
+
src: string()
|
|
41
|
+
}),
|
|
42
|
+
readonly()
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
type VideoContentProps = InferInput<typeof videoContentPropsSchema>;
|
|
46
|
+
|
|
47
|
+
function VideoContent(props: VideoContentProps) {
|
|
48
|
+
const { alt, autoPlay = false, loop = false, poster, src } = validateProps(videoContentPropsSchema, props);
|
|
40
49
|
|
|
41
|
-
const VideoContent: FC<VideoContentProps> = ({ alt, autoPlay, loop, poster, src }) => {
|
|
42
50
|
const { hostname, pathname, search } = parseURL(src);
|
|
43
51
|
const lastSegment = pathname.split('/').pop();
|
|
44
52
|
const searchParams = new URLSearchParams(search);
|
|
@@ -59,21 +67,7 @@ const VideoContent: FC<VideoContentProps> = ({ alt, autoPlay, loop, poster, src
|
|
|
59
67
|
default:
|
|
60
68
|
return <HTMLVideoContent alt={alt} autoPlay={autoPlay} loop={loop} poster={poster} src={src} />;
|
|
61
69
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
VideoContent.defaultProps = {
|
|
65
|
-
alt: '',
|
|
66
|
-
autoPlay: false,
|
|
67
|
-
loop: false,
|
|
68
|
-
poster: ''
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
VideoContent.propTypes = {
|
|
72
|
-
alt: PropTypes.string,
|
|
73
|
-
autoPlay: PropTypes.bool,
|
|
74
|
-
loop: PropTypes.bool,
|
|
75
|
-
poster: PropTypes.string,
|
|
76
|
-
src: PropTypes.string.isRequired
|
|
77
|
-
};
|
|
70
|
+
}
|
|
78
71
|
|
|
79
|
-
export default VideoContent;
|
|
72
|
+
export default memo(VideoContent);
|
|
73
|
+
export { videoContentPropsSchema, type VideoContentProps };
|