botframework-webchat-api 4.18.1-main.20260518.2a3d1d3 → 4.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/decorator.js +1 -1
- package/dist/botframework-webchat-api.d.mts +1250 -173
- package/dist/botframework-webchat-api.decorator.d.mts +26 -71
- package/dist/botframework-webchat-api.decorator.mjs +2 -1
- package/dist/botframework-webchat-api.decorator.mjs.LEGAL.txt +0 -0
- package/dist/botframework-webchat-api.decorator.mjs.map +1 -1
- package/dist/botframework-webchat-api.internal.d.mts +1 -66
- package/dist/botframework-webchat-api.internal.mjs +2 -1
- package/dist/botframework-webchat-api.internal.mjs.LEGAL.txt +0 -0
- package/dist/botframework-webchat-api.internal.mjs.map +1 -1
- package/dist/botframework-webchat-api.mjs +139 -1
- package/dist/botframework-webchat-api.mjs.LEGAL.txt +27 -2
- package/dist/botframework-webchat-api.mjs.map +1 -1
- package/dist/chunk-2S76JUVM.mjs +3 -0
- package/dist/chunk-2S76JUVM.mjs.LEGAL.txt +0 -0
- package/dist/chunk-2S76JUVM.mjs.map +1 -0
- package/dist/{chunk-VAX7AB37.mjs → chunk-J6D5YEY6.mjs} +2 -1
- package/dist/chunk-J6D5YEY6.mjs.LEGAL.txt +0 -0
- package/dist/chunk-ZAMHKQQC.mjs +3 -0
- package/dist/chunk-ZAMHKQQC.mjs.LEGAL.txt +0 -0
- package/dist/chunk-ZAMHKQQC.mjs.map +1 -0
- package/dist/metafile-esm.json +1 -1
- package/internal.js +1 -1
- package/lib/StyleOptions.d.ts +697 -0
- package/lib/StyleOptions.d.ts.map +1 -0
- package/lib/StyleOptions.js +2 -0
- package/lib/decorator/index.d.ts +5 -0
- package/lib/decorator/index.d.ts.map +1 -0
- package/lib/decorator/index.js +28 -0
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts +27 -0
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts.map +1 -0
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.js +19 -0
- package/lib/decorator/private/ActivityDecorator.d.ts +9 -0
- package/lib/decorator/private/ActivityDecorator.d.ts.map +1 -0
- package/lib/decorator/private/ActivityDecorator.js +36 -0
- package/lib/decorator/private/DecoratorComposer.d.ts +3 -0
- package/lib/decorator/private/DecoratorComposer.d.ts.map +1 -0
- package/lib/decorator/private/DecoratorComposer.js +13 -0
- package/lib/decorator/private/activityDecoratorRequest.d.ts +6 -0
- package/lib/decorator/private/activityDecoratorRequest.d.ts.map +1 -0
- package/lib/decorator/private/activityDecoratorRequest.js +2 -0
- package/lib/decorator/private/createDecoratorComposer.d.ts +11 -0
- package/lib/decorator/private/createDecoratorComposer.d.ts.map +1 -0
- package/lib/decorator/private/createDecoratorComposer.js +27 -0
- package/lib/decorator/private/templateMiddleware.d.ts +30 -0
- package/lib/decorator/private/templateMiddleware.d.ts.map +1 -0
- package/lib/decorator/private/templateMiddleware.js +53 -0
- package/lib/decorator/private/templateMiddleware.test.d.ts +3 -0
- package/lib/decorator/private/templateMiddleware.test.d.ts.map +1 -0
- package/lib/defaultStyleOptions.d.ts +4 -0
- package/lib/defaultStyleOptions.d.ts.map +1 -0
- package/lib/defaultStyleOptions.js +277 -0
- package/lib/external/PrecompiledGlobalize.js +6361 -0
- package/lib/hooks/Composer.d.ts +88 -0
- package/lib/hooks/Composer.d.ts.map +1 -0
- package/lib/hooks/Composer.js +605 -0
- package/lib/hooks/index.d.ts +73 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +504 -0
- package/lib/hooks/internal/ErrorBox.js +47 -0
- package/lib/hooks/internal/SendBoxMiddleware.d.ts +37 -0
- package/lib/hooks/internal/SendBoxMiddleware.d.ts.map +1 -0
- package/lib/hooks/internal/SendBoxMiddleware.js +17 -0
- package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts +37 -0
- package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts.map +1 -0
- package/lib/hooks/internal/SendBoxToolbarMiddleware.js +17 -0
- package/lib/hooks/internal/Tracker.d.ts +4 -0
- package/lib/hooks/internal/Tracker.d.ts.map +1 -0
- package/lib/hooks/internal/Tracker.js +15 -0
- package/lib/hooks/internal/WebChatAPIContext.d.ts +80 -0
- package/lib/hooks/internal/WebChatAPIContext.d.ts.map +1 -0
- package/lib/hooks/internal/WebChatAPIContext.js +12 -0
- package/lib/hooks/internal/WebChatReduxContext.js +17 -0
- package/lib/hooks/internal/defaultSelectVoice.js +28 -0
- package/lib/hooks/internal/private/templateMiddleware.d.ts +3 -0
- package/lib/hooks/internal/private/templateMiddleware.d.ts.map +1 -0
- package/lib/hooks/internal/private/templateMiddleware.js +12 -0
- package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts +4 -0
- package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts.map +1 -0
- package/lib/hooks/internal/useCreateActivityRendererInternal.js +37 -0
- package/lib/hooks/internal/useDebugDeps.js +39 -0
- package/lib/hooks/internal/useDirFromProps.js +12 -0
- package/lib/hooks/internal/useErrorBoxClass.js +14 -0
- package/lib/hooks/internal/useForceRender.js +24 -0
- package/lib/hooks/internal/useLocalizedGlobalize.js +12 -0
- package/lib/hooks/internal/useLocalizedStrings.js +14 -0
- package/lib/hooks/internal/useMarkActivity.js +12 -0
- package/lib/hooks/internal/usePrevious.d.ts +3 -0
- package/lib/hooks/internal/usePrevious.d.ts.map +1 -0
- package/lib/hooks/internal/usePrevious.js +15 -0
- package/lib/hooks/internal/useReadTelemetryDimensions.js +20 -0
- package/lib/hooks/internal/useSetDictateState.d.ts +2 -0
- package/lib/hooks/internal/useSetDictateState.d.ts.map +1 -0
- package/lib/hooks/internal/useSetDictateState.js +12 -0
- package/lib/hooks/internal/useTimer.d.ts +5 -0
- package/lib/hooks/internal/useTimer.d.ts.map +1 -0
- package/lib/hooks/internal/useTimer.js +43 -0
- package/lib/hooks/internal/useTracker.js +42 -0
- package/lib/hooks/internal/useValueRef.d.ts +3 -0
- package/lib/hooks/internal/useValueRef.d.ts.map +1 -0
- package/lib/hooks/internal/useValueRef.js +22 -0
- package/lib/hooks/internal/useWebChatAPIContext.d.ts +83 -0
- package/lib/hooks/internal/useWebChatAPIContext.d.ts.map +1 -0
- package/lib/hooks/internal/useWebChatAPIContext.js +17 -0
- package/lib/hooks/middleware/UserlandBoundary.js +48 -0
- package/lib/hooks/middleware/applyMiddleware.js +122 -0
- package/lib/hooks/middleware/concatMiddleware.d.ts +6 -0
- package/lib/hooks/middleware/concatMiddleware.d.ts.map +1 -0
- package/lib/hooks/middleware/concatMiddleware.js +33 -0
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts +3 -0
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts.map +1 -0
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.js +43 -0
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts +7 -0
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts.map +1 -0
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.js +68 -0
- package/lib/hooks/private/numberWithInfinity.d.ts +3 -0
- package/lib/hooks/private/numberWithInfinity.d.ts.map +1 -0
- package/lib/hooks/private/numberWithInfinity.js +17 -0
- package/lib/hooks/private/numberWithInfinity.spec.d.ts +2 -0
- package/lib/hooks/private/numberWithInfinity.spec.d.ts.map +1 -0
- package/lib/hooks/private/reduceIterable.d.ts +2 -0
- package/lib/hooks/private/reduceIterable.d.ts.map +1 -0
- package/lib/hooks/private/reduceIterable.js +26 -0
- package/lib/hooks/private/reduceIterable.spec.d.ts +2 -0
- package/lib/hooks/private/reduceIterable.spec.d.ts.map +1 -0
- package/lib/hooks/useActiveTyping.d.ts +4 -0
- package/lib/hooks/useActiveTyping.d.ts.map +1 -0
- package/lib/hooks/useActiveTyping.js +81 -0
- package/lib/hooks/useActivities.d.ts +3 -0
- package/lib/hooks/useActivities.d.ts.map +1 -0
- package/lib/hooks/useActivities.js +14 -0
- package/lib/hooks/useActivityKeys.d.ts +3 -0
- package/lib/hooks/useActivityKeys.d.ts.map +1 -0
- package/lib/hooks/useActivityKeys.js +11 -0
- package/lib/hooks/useActivityKeysByRead.d.ts +3 -0
- package/lib/hooks/useActivityKeysByRead.d.ts.map +1 -0
- package/lib/hooks/useActivityKeysByRead.js +11 -0
- package/lib/hooks/useAvatarForBot.d.ts +5 -0
- package/lib/hooks/useAvatarForBot.d.ts.map +1 -0
- package/lib/hooks/useAvatarForBot.js +26 -0
- package/lib/hooks/useAvatarForUser.d.ts +5 -0
- package/lib/hooks/useAvatarForUser.d.ts.map +1 -0
- package/lib/hooks/useAvatarForUser.js +26 -0
- package/lib/hooks/useByteFormatter.d.ts +2 -0
- package/lib/hooks/useByteFormatter.d.ts.map +1 -0
- package/lib/hooks/useByteFormatter.js +43 -0
- package/lib/hooks/useConnectivityStatus.d.ts +2 -0
- package/lib/hooks/useConnectivityStatus.d.ts.map +1 -0
- package/lib/hooks/useConnectivityStatus.js +14 -0
- package/lib/hooks/useCreateActivityRenderer.d.ts +3 -0
- package/lib/hooks/useCreateActivityRenderer.d.ts.map +1 -0
- package/lib/hooks/useCreateActivityRenderer.js +14 -0
- package/lib/hooks/useCreateActivityStatusRenderer.d.ts +10 -0
- package/lib/hooks/useCreateActivityStatusRenderer.d.ts.map +1 -0
- package/lib/hooks/useCreateActivityStatusRenderer.js +72 -0
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts +3 -0
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts.map +1 -0
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.js +12 -0
- package/lib/hooks/useCreateAvatarRenderer.d.ts +6 -0
- package/lib/hooks/useCreateAvatarRenderer.d.ts.map +1 -0
- package/lib/hooks/useCreateAvatarRenderer.js +44 -0
- package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts +3 -0
- package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts.map +1 -0
- package/lib/hooks/useCreateScrollToEndButtonRenderer.js +12 -0
- package/lib/hooks/useDateFormatter.d.ts +2 -0
- package/lib/hooks/useDateFormatter.d.ts.map +1 -0
- package/lib/hooks/useDateFormatter.js +35 -0
- package/lib/hooks/useDebouncedNotifications.d.ts +13 -0
- package/lib/hooks/useDebouncedNotifications.d.ts.map +1 -0
- package/lib/hooks/useDebouncedNotifications.js +118 -0
- package/lib/hooks/useDictateInterims.d.ts +2 -0
- package/lib/hooks/useDictateInterims.d.ts.map +1 -0
- package/lib/hooks/useDictateInterims.js +16 -0
- package/lib/hooks/useDictateState.d.ts +2 -0
- package/lib/hooks/useDictateState.d.ts.map +1 -0
- package/lib/hooks/useDictateState.js +15 -0
- package/lib/hooks/useDirection.d.ts +2 -0
- package/lib/hooks/useDirection.d.ts.map +1 -0
- package/lib/hooks/useDirection.js +38 -0
- package/lib/hooks/useDisabled.d.ts +2 -0
- package/lib/hooks/useDisabled.d.ts.map +1 -0
- package/lib/hooks/useDisabled.js +12 -0
- package/lib/hooks/useDismissNotification.d.ts +2 -0
- package/lib/hooks/useDismissNotification.d.ts.map +1 -0
- package/lib/hooks/useDismissNotification.js +12 -0
- package/lib/hooks/useEmitTypingIndicator.d.ts +2 -0
- package/lib/hooks/useEmitTypingIndicator.d.ts.map +1 -0
- package/lib/hooks/useEmitTypingIndicator.js +12 -0
- package/lib/hooks/useGetActivitiesByKey.d.ts +3 -0
- package/lib/hooks/useGetActivitiesByKey.d.ts.map +1 -0
- package/lib/hooks/useGetActivitiesByKey.js +11 -0
- package/lib/hooks/useGetActivityByKey.d.ts +3 -0
- package/lib/hooks/useGetActivityByKey.d.ts.map +1 -0
- package/lib/hooks/useGetActivityByKey.js +11 -0
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts +3 -0
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts.map +1 -0
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.js +11 -0
- package/lib/hooks/useGetKeyByActivity.d.ts +3 -0
- package/lib/hooks/useGetKeyByActivity.d.ts.map +1 -0
- package/lib/hooks/useGetKeyByActivity.js +11 -0
- package/lib/hooks/useGetKeyByActivityId.d.ts +3 -0
- package/lib/hooks/useGetKeyByActivityId.d.ts.map +1 -0
- package/lib/hooks/useGetKeyByActivityId.js +11 -0
- package/lib/hooks/useGetSendTimeoutForActivity.d.ts +5 -0
- package/lib/hooks/useGetSendTimeoutForActivity.d.ts.map +1 -0
- package/lib/hooks/useGetSendTimeoutForActivity.js +33 -0
- package/lib/hooks/useGrammars.d.ts +2 -0
- package/lib/hooks/useGrammars.d.ts.map +1 -0
- package/lib/hooks/useGrammars.js +12 -0
- package/lib/hooks/useGroupActivities.d.ts +8 -0
- package/lib/hooks/useGroupActivities.d.ts.map +1 -0
- package/lib/hooks/useGroupActivities.js +12 -0
- package/lib/hooks/useGroupTimestamp.d.ts +2 -0
- package/lib/hooks/useGroupTimestamp.d.ts.map +1 -0
- package/lib/hooks/useGroupTimestamp.js +21 -0
- package/lib/hooks/useLanguage.d.ts +2 -0
- package/lib/hooks/useLanguage.d.ts.map +1 -0
- package/lib/hooks/useLanguage.js +19 -0
- package/lib/hooks/useLastAcknowledgedActivityKey.d.ts +3 -0
- package/lib/hooks/useLastAcknowledgedActivityKey.d.ts.map +1 -0
- package/lib/hooks/useLastAcknowledgedActivityKey.js +11 -0
- package/lib/hooks/useLastReadActivityKey.d.ts +3 -0
- package/lib/hooks/useLastReadActivityKey.d.ts.map +1 -0
- package/lib/hooks/useLastReadActivityKey.js +11 -0
- package/lib/hooks/useLocalizer.d.ts +13 -0
- package/lib/hooks/useLocalizer.d.ts.map +1 -0
- package/lib/hooks/useLocalizer.js +75 -0
- package/lib/hooks/useMarkActivityAsSpoken.d.ts +3 -0
- package/lib/hooks/useMarkActivityAsSpoken.d.ts.map +1 -0
- package/lib/hooks/useMarkActivityAsSpoken.js +16 -0
- package/lib/hooks/useMarkActivityKeyAsRead.d.ts +3 -0
- package/lib/hooks/useMarkActivityKeyAsRead.d.ts.map +1 -0
- package/lib/hooks/useMarkActivityKeyAsRead.js +11 -0
- package/lib/hooks/useMarkAllAsAcknowledged.d.ts +3 -0
- package/lib/hooks/useMarkAllAsAcknowledged.d.ts.map +1 -0
- package/lib/hooks/useMarkAllAsAcknowledged.js +11 -0
- package/lib/hooks/useNotifications.d.ts +3 -0
- package/lib/hooks/useNotifications.d.ts.map +1 -0
- package/lib/hooks/useNotifications.js +14 -0
- package/lib/hooks/usePerformCardAction.d.ts +3 -0
- package/lib/hooks/usePerformCardAction.d.ts.map +1 -0
- package/lib/hooks/usePerformCardAction.js +12 -0
- package/lib/hooks/usePonyfill.d.ts +3 -0
- package/lib/hooks/usePonyfill.d.ts.map +1 -0
- package/lib/hooks/usePonyfill.js +11 -0
- package/lib/hooks/usePostActivity.d.ts +3 -0
- package/lib/hooks/usePostActivity.d.ts.map +1 -0
- package/lib/hooks/usePostActivity.js +12 -0
- package/lib/hooks/useReferenceGrammarID.d.ts +2 -0
- package/lib/hooks/useReferenceGrammarID.d.ts.map +1 -0
- package/lib/hooks/useReferenceGrammarID.js +14 -0
- package/lib/hooks/useRelativeTimeFormatter.d.ts +2 -0
- package/lib/hooks/useRelativeTimeFormatter.d.ts.map +1 -0
- package/lib/hooks/useRelativeTimeFormatter.js +61 -0
- package/lib/hooks/useRenderAttachment.d.ts +3 -0
- package/lib/hooks/useRenderAttachment.d.ts.map +1 -0
- package/lib/hooks/useRenderAttachment.js +14 -0
- package/lib/hooks/useRenderToast.d.ts +3 -0
- package/lib/hooks/useRenderToast.d.ts.map +1 -0
- package/lib/hooks/useRenderToast.js +12 -0
- package/lib/hooks/useRenderTypingIndicator.d.ts +3 -0
- package/lib/hooks/useRenderTypingIndicator.d.ts.map +1 -0
- package/lib/hooks/useRenderTypingIndicator.js +12 -0
- package/lib/hooks/useSendBoxAttachments.d.ts +6 -0
- package/lib/hooks/useSendBoxAttachments.d.ts.map +1 -0
- package/lib/hooks/useSendBoxAttachments.js +23 -0
- package/lib/hooks/useSendBoxValue.d.ts +2 -0
- package/lib/hooks/useSendBoxValue.d.ts.map +1 -0
- package/lib/hooks/useSendBoxValue.js +16 -0
- package/lib/hooks/useSendEvent.d.ts +2 -0
- package/lib/hooks/useSendEvent.d.ts.map +1 -0
- package/lib/hooks/useSendEvent.js +12 -0
- package/lib/hooks/useSendFiles.d.ts +10 -0
- package/lib/hooks/useSendFiles.d.ts.map +1 -0
- package/lib/hooks/useSendFiles.js +35 -0
- package/lib/hooks/useSendMessage.d.ts +6 -0
- package/lib/hooks/useSendMessage.d.ts.map +1 -0
- package/lib/hooks/useSendMessage.js +33 -0
- package/lib/hooks/useSendMessageBack.d.ts +2 -0
- package/lib/hooks/useSendMessageBack.d.ts.map +1 -0
- package/lib/hooks/useSendMessageBack.js +12 -0
- package/lib/hooks/useSendPostBack.d.ts +2 -0
- package/lib/hooks/useSendPostBack.d.ts.map +1 -0
- package/lib/hooks/useSendPostBack.js +12 -0
- package/lib/hooks/useSendStatusByActivityKey.d.ts +22 -0
- package/lib/hooks/useSendStatusByActivityKey.d.ts.map +1 -0
- package/lib/hooks/useSendStatusByActivityKey.js +31 -0
- package/lib/hooks/useSendTimeoutForActivity.d.ts +4 -0
- package/lib/hooks/useSendTimeoutForActivity.d.ts.map +1 -0
- package/lib/hooks/useSendTimeoutForActivity.js +22 -0
- package/lib/hooks/useSendTypingIndicator.d.ts +2 -0
- package/lib/hooks/useSendTypingIndicator.d.ts.map +1 -0
- package/lib/hooks/useSendTypingIndicator.js +14 -0
- package/lib/hooks/useSetNotification.d.ts +3 -0
- package/lib/hooks/useSetNotification.d.ts.map +1 -0
- package/lib/hooks/useSetNotification.js +12 -0
- package/lib/hooks/useShouldSpeakIncomingActivity.d.ts +2 -0
- package/lib/hooks/useShouldSpeakIncomingActivity.d.ts.map +1 -0
- package/lib/hooks/useShouldSpeakIncomingActivity.js +22 -0
- package/lib/hooks/useStartDictate.d.ts +2 -0
- package/lib/hooks/useStartDictate.d.ts.map +1 -0
- package/lib/hooks/useStartDictate.js +12 -0
- package/lib/hooks/useStopDictate.d.ts +2 -0
- package/lib/hooks/useStopDictate.d.ts.map +1 -0
- package/lib/hooks/useStopDictate.js +12 -0
- package/lib/hooks/useStyleOptions.d.ts +3 -0
- package/lib/hooks/useStyleOptions.d.ts.map +1 -0
- package/lib/hooks/useStyleOptions.js +12 -0
- package/lib/hooks/useSubmitSendBox.d.ts +4 -0
- package/lib/hooks/useSubmitSendBox.d.ts.map +1 -0
- package/lib/hooks/useSubmitSendBox.js +49 -0
- package/lib/hooks/useSuggestedActions.d.ts +3 -0
- package/lib/hooks/useSuggestedActions.d.ts.map +1 -0
- package/lib/hooks/useSuggestedActions.js +25 -0
- package/lib/hooks/useTimeoutForSend.d.ts +3 -0
- package/lib/hooks/useTimeoutForSend.d.ts.map +1 -0
- package/lib/hooks/useTimeoutForSend.js +21 -0
- package/lib/hooks/useTrackDimension.d.ts +2 -0
- package/lib/hooks/useTrackDimension.d.ts.map +1 -0
- package/lib/hooks/useTrackDimension.js +14 -0
- package/lib/hooks/useTrackEvent.d.ts +10 -0
- package/lib/hooks/useTrackEvent.d.ts.map +1 -0
- package/lib/hooks/useTrackEvent.js +51 -0
- package/lib/hooks/useTrackException.d.ts +2 -0
- package/lib/hooks/useTrackException.d.ts.map +1 -0
- package/lib/hooks/useTrackException.js +31 -0
- package/lib/hooks/useTrackTiming.d.ts +2 -0
- package/lib/hooks/useTrackTiming.d.ts.map +1 -0
- package/lib/hooks/useTrackTiming.js +93 -0
- package/lib/hooks/useUserID.d.ts +2 -0
- package/lib/hooks/useUserID.d.ts.map +1 -0
- package/lib/hooks/useUserID.js +12 -0
- package/lib/hooks/useUsername.d.ts +2 -0
- package/lib/hooks/useUsername.d.ts.map +1 -0
- package/lib/hooks/useUsername.js +12 -0
- package/lib/hooks/useVoiceSelector.d.ts +2 -0
- package/lib/hooks/useVoiceSelector.d.ts.map +1 -0
- package/lib/hooks/useVoiceSelector.js +16 -0
- package/lib/hooks/utils/ErrorBoundary.js +68 -0
- package/lib/hooks/utils/observableToPromise.d.ts +3 -0
- package/lib/hooks/utils/observableToPromise.d.ts.map +1 -0
- package/lib/hooks/utils/observableToPromise.js +28 -0
- package/lib/index.d.ts +37 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +88 -0
- package/lib/internal.d.ts +3 -0
- package/lib/internal.d.ts.map +1 -0
- package/lib/internal.js +14 -0
- package/lib/localization/Localize.d.ts +4 -0
- package/lib/localization/Localize.d.ts.map +1 -0
- package/lib/localization/Localize.js +50 -0
- package/lib/localization/ar-EG.json +42 -0
- package/lib/localization/ar-JO.json +45 -0
- package/lib/localization/ar-SA.json +112 -0
- package/lib/localization/bg-BG.json +112 -0
- package/lib/localization/ca-ES.json +112 -0
- package/lib/localization/cs-CZ.json +112 -0
- package/lib/localization/da-DK.json +112 -0
- package/lib/localization/de-DE.json +112 -0
- package/lib/localization/el-GR.json +112 -0
- package/lib/localization/en-US.json +183 -0
- package/lib/localization/es-ES.json +112 -0
- package/lib/localization/et-EE.json +112 -0
- package/lib/localization/eu-ES.json +112 -0
- package/lib/localization/fi-FI.json +112 -0
- package/lib/localization/fr-FR.json +112 -0
- package/lib/localization/getAllLocalizedStrings.d.ts +6 -0
- package/lib/localization/getAllLocalizedStrings.d.ts.map +1 -0
- package/lib/localization/getAllLocalizedStrings.js +117 -0
- package/lib/localization/getRTLList.d.ts +2 -0
- package/lib/localization/getRTLList.d.ts.map +1 -0
- package/lib/localization/getRTLList.js +46 -0
- package/lib/localization/gl-ES.json +112 -0
- package/lib/localization/he-IL.json +112 -0
- package/lib/localization/hi-IN.json +112 -0
- package/lib/localization/hr-HR.json +112 -0
- package/lib/localization/hu-HU.json +112 -0
- package/lib/localization/id-ID.json +112 -0
- package/lib/localization/it-IT.json +112 -0
- package/lib/localization/ja-JP.json +112 -0
- package/lib/localization/kk-KZ.json +112 -0
- package/lib/localization/ko-KR.json +112 -0
- package/lib/localization/lt-LT.json +112 -0
- package/lib/localization/lv-LV.json +112 -0
- package/lib/localization/mergeLocalizedStrings.d.ts +7 -0
- package/lib/localization/mergeLocalizedStrings.d.ts.map +1 -0
- package/lib/localization/mergeLocalizedStrings.js +49 -0
- package/lib/localization/ms-MY.json +112 -0
- package/lib/localization/nb-NO.json +112 -0
- package/lib/localization/nl-NL.json +112 -0
- package/lib/localization/overrides.json +257 -0
- package/lib/localization/pl-PL.json +112 -0
- package/lib/localization/pt-BR.json +112 -0
- package/lib/localization/pt-PT.json +112 -0
- package/lib/localization/ro-RO.json +112 -0
- package/lib/localization/ru-RU.json +112 -0
- package/lib/localization/sk-SK.json +112 -0
- package/lib/localization/sl-SI.json +112 -0
- package/lib/localization/sl-SL.json +3 -0
- package/lib/localization/sr-Cyrl-CS.json +112 -0
- package/lib/localization/sr-Cyrl.json +3 -0
- package/lib/localization/sr-Latn-CS.json +112 -0
- package/lib/localization/sr-Latn.json +3 -0
- package/lib/localization/sv-SE.json +112 -0
- package/lib/localization/th-TH.json +112 -0
- package/lib/localization/tr-TR.json +112 -0
- package/lib/localization/uk-UA.json +112 -0
- package/lib/localization/vi-VN.json +112 -0
- package/lib/localization/yue.json +115 -0
- package/lib/localization/zh-CN.json +112 -0
- package/lib/localization/zh-HK.json +112 -0
- package/lib/localization/zh-TW.json +112 -0
- package/lib/normalizeStyleOptions.d.ts +3 -0
- package/lib/normalizeStyleOptions.d.ts.map +1 -0
- package/lib/normalizeStyleOptions.js +147 -0
- package/lib/patchStyleOptionsFromDeprecatedProps.js +21 -0
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts +6 -0
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.js +153 -0
- package/lib/providers/ActivityAcknowledgement/private/Context.d.ts +13 -0
- package/lib/providers/ActivityAcknowledgement/private/Context.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/private/Context.js +14 -0
- package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts +3 -0
- package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/private/useContext.js +18 -0
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts +5 -0
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.js +15 -0
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts +2 -0
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.js +12 -0
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts +2 -0
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.js +12 -0
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts +2 -0
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.js +12 -0
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts +2 -0
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.js +12 -0
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts +2 -0
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts.map +1 -0
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.js +12 -0
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts +20 -0
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.js +149 -0
- package/lib/providers/ActivityKeyer/private/Context.d.ts +13 -0
- package/lib/providers/ActivityKeyer/private/Context.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/Context.js +10 -0
- package/lib/providers/ActivityKeyer/private/getActivityId.d.ts +3 -0
- package/lib/providers/ActivityKeyer/private/getActivityId.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/getActivityId.js +10 -0
- package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts +3 -0
- package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/getClientActivityId.js +11 -0
- package/lib/providers/ActivityKeyer/private/lastOf.d.ts +2 -0
- package/lib/providers/ActivityKeyer/private/lastOf.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/lastOf.js +10 -0
- package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts +2 -0
- package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/someIterable.d.ts +2 -0
- package/lib/providers/ActivityKeyer/private/someIterable.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/someIterable.js +27 -0
- package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts +2 -0
- package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/uniqueId.d.ts +2 -0
- package/lib/providers/ActivityKeyer/private/uniqueId.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/uniqueId.js +15 -0
- package/lib/providers/ActivityKeyer/private/useContext.d.ts +3 -0
- package/lib/providers/ActivityKeyer/private/useContext.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/private/useContext.js +18 -0
- package/lib/providers/ActivityKeyer/useActivityKeys.d.ts +2 -0
- package/lib/providers/ActivityKeyer/useActivityKeys.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/useActivityKeys.js +12 -0
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts +3 -0
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.js +12 -0
- package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts +3 -0
- package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/useGetActivityByKey.js +12 -0
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts +3 -0
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.js +12 -0
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts +2 -0
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts.map +1 -0
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.js +12 -0
- package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts +7 -0
- package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts.map +1 -0
- package/lib/providers/ActivityListener/ActivityListenerComposer.js +55 -0
- package/lib/providers/ActivityListener/private/Context.d.ts +8 -0
- package/lib/providers/ActivityListener/private/Context.d.ts.map +1 -0
- package/lib/providers/ActivityListener/private/Context.js +15 -0
- package/lib/providers/ActivityListener/private/useContext.d.ts +2 -0
- package/lib/providers/ActivityListener/private/useContext.d.ts.map +1 -0
- package/lib/providers/ActivityListener/private/useContext.js +13 -0
- package/lib/providers/ActivityListener/useUpsertedActivities.d.ts +3 -0
- package/lib/providers/ActivityListener/useUpsertedActivities.d.ts.map +1 -0
- package/lib/providers/ActivityListener/useUpsertedActivities.js +12 -0
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts +4 -0
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts.map +1 -0
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.js +149 -0
- package/lib/providers/ActivitySendStatus/private/Context.d.ts +9 -0
- package/lib/providers/ActivitySendStatus/private/Context.d.ts.map +1 -0
- package/lib/providers/ActivitySendStatus/private/Context.js +13 -0
- package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts +7 -0
- package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts.map +1 -0
- package/lib/providers/ActivitySendStatus/private/isMapEqual.js +55 -0
- package/lib/providers/ActivitySendStatus/private/useContext.d.ts +3 -0
- package/lib/providers/ActivitySendStatus/private/useContext.d.ts.map +1 -0
- package/lib/providers/ActivitySendStatus/private/useContext.js +18 -0
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts +22 -0
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts.map +1 -0
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.js +31 -0
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts +3 -0
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts.map +1 -0
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.js +71 -0
- package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts +9 -0
- package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts.map +1 -0
- package/lib/providers/ActivityTyping/ActivityTypingComposer.js +98 -0
- package/lib/providers/ActivityTyping/private/Context.d.ts +8 -0
- package/lib/providers/ActivityTyping/private/Context.d.ts.map +1 -0
- package/lib/providers/ActivityTyping/private/Context.js +15 -0
- package/lib/providers/ActivityTyping/private/useContext.d.ts +3 -0
- package/lib/providers/ActivityTyping/private/useContext.d.ts.map +1 -0
- package/lib/providers/ActivityTyping/private/useContext.js +13 -0
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts +3 -0
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts.map +1 -0
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.js +22 -0
- package/lib/providers/ActivityTyping/types/AllTyping.d.ts +9 -0
- package/lib/providers/ActivityTyping/types/AllTyping.d.ts.map +1 -0
- package/lib/providers/ActivityTyping/types/AllTyping.js +2 -0
- package/lib/providers/ActivityTyping/useAllTyping.d.ts +3 -0
- package/lib/providers/ActivityTyping/useAllTyping.d.ts.map +1 -0
- package/lib/providers/ActivityTyping/useAllTyping.js +12 -0
- package/lib/providers/Ponyfill/PonyfillComposer.d.ts +17 -0
- package/lib/providers/Ponyfill/PonyfillComposer.d.ts.map +1 -0
- package/lib/providers/Ponyfill/PonyfillComposer.js +87 -0
- package/lib/providers/Ponyfill/private/PonyfillContext.d.ts +8 -0
- package/lib/providers/Ponyfill/private/PonyfillContext.d.ts.map +1 -0
- package/lib/providers/Ponyfill/private/PonyfillContext.js +10 -0
- package/lib/providers/Ponyfill/private/useContext.d.ts +6 -0
- package/lib/providers/Ponyfill/private/useContext.d.ts.map +1 -0
- package/lib/providers/Ponyfill/private/useContext.js +17 -0
- package/lib/providers/Ponyfill/usePonyfill.d.ts +3 -0
- package/lib/providers/Ponyfill/usePonyfill.d.ts.map +1 -0
- package/lib/providers/Ponyfill/usePonyfill.js +12 -0
- package/lib/tsconfig.json +18 -0
- package/lib/types/ActivityMiddleware.d.ts +24 -0
- package/lib/types/ActivityMiddleware.d.ts.map +1 -0
- package/lib/types/ActivityMiddleware.js +2 -0
- package/lib/types/ActivityStatusMiddleware.d.ts +17 -0
- package/lib/types/ActivityStatusMiddleware.d.ts.map +1 -0
- package/lib/types/ActivityStatusMiddleware.js +2 -0
- package/lib/types/AttachmentForScreenReaderMiddleware.d.ts +14 -0
- package/lib/types/AttachmentForScreenReaderMiddleware.d.ts.map +1 -0
- package/lib/types/AttachmentForScreenReaderMiddleware.js +2 -0
- package/lib/types/AttachmentMiddleware.d.ts +12 -0
- package/lib/types/AttachmentMiddleware.d.ts.map +1 -0
- package/lib/types/AttachmentMiddleware.js +2 -0
- package/lib/types/AvatarMiddleware.d.ts +15 -0
- package/lib/types/AvatarMiddleware.d.ts.map +1 -0
- package/lib/types/AvatarMiddleware.js +2 -0
- package/lib/types/CardActionMiddleware.d.ts +19 -0
- package/lib/types/CardActionMiddleware.d.ts.map +1 -0
- package/lib/types/CardActionMiddleware.js +2 -0
- package/lib/types/ComponentMiddleware.d.ts +31 -0
- package/lib/types/ComponentMiddleware.d.ts.map +1 -0
- package/lib/types/ComponentMiddleware.js +2 -0
- package/lib/types/ContextOf.d.ts +4 -0
- package/lib/types/ContextOf.d.ts.map +1 -0
- package/lib/types/ContextOf.js +2 -0
- package/lib/types/FunctionMiddleware.d.ts +6 -0
- package/lib/types/FunctionMiddleware.d.ts.map +1 -0
- package/lib/types/FunctionMiddleware.js +2 -0
- package/lib/types/GroupActivitiesMiddleware.d.ts +22 -0
- package/lib/types/GroupActivitiesMiddleware.d.ts.map +1 -0
- package/lib/types/GroupActivitiesMiddleware.js +2 -0
- package/lib/types/LocalizedStrings.d.ts +5 -0
- package/lib/types/LocalizedStrings.d.ts.map +1 -0
- package/lib/types/LocalizedStrings.js +2 -0
- package/lib/types/Notification.d.ts +10 -0
- package/lib/types/Notification.d.ts.map +1 -0
- package/lib/types/Notification.js +2 -0
- package/lib/types/PrecompiledGlobalize.d.ts +13 -0
- package/lib/types/PrecompiledGlobalize.d.ts.map +1 -0
- package/lib/types/PrecompiledGlobalize.js +2 -0
- package/lib/types/ScrollToEndButtonMiddleware.d.ts +30 -0
- package/lib/types/ScrollToEndButtonMiddleware.d.ts.map +1 -0
- package/lib/types/ScrollToEndButtonMiddleware.js +2 -0
- package/lib/types/SendStatus.d.ts +3 -0
- package/lib/types/SendStatus.d.ts.map +1 -0
- package/lib/types/SendStatus.js +2 -0
- package/lib/types/TelemetryMeasurementEvent.d.ts +31 -0
- package/lib/types/TelemetryMeasurementEvent.d.ts.map +1 -0
- package/lib/types/TelemetryMeasurementEvent.js +2 -0
- package/lib/types/ToastMiddleware.d.ts +11 -0
- package/lib/types/ToastMiddleware.d.ts.map +1 -0
- package/lib/types/ToastMiddleware.js +2 -0
- package/lib/types/Typing.d.ts +8 -0
- package/lib/types/Typing.d.ts.map +1 -0
- package/lib/types/Typing.js +2 -0
- package/lib/types/TypingIndicatorMiddleware.d.ts +17 -0
- package/lib/types/TypingIndicatorMiddleware.d.ts.map +1 -0
- package/lib/types/TypingIndicatorMiddleware.js +2 -0
- package/lib/types/WebSpeechPonyfill.d.ts +19 -0
- package/lib/types/WebSpeechPonyfill.d.ts.map +1 -0
- package/lib/types/WebSpeechPonyfill.js +2 -0
- package/lib/types/WebSpeechPonyfillFactory.d.ts +6 -0
- package/lib/types/WebSpeechPonyfillFactory.d.ts.map +1 -0
- package/lib/types/WebSpeechPonyfillFactory.js +2 -0
- package/lib/utils/createCustomEvent.d.ts +4 -0
- package/lib/utils/createCustomEvent.d.ts.map +1 -0
- package/lib/utils/createCustomEvent.js +34 -0
- package/lib/utils/findLastIndex.d.ts +2 -0
- package/lib/utils/findLastIndex.d.ts.map +1 -0
- package/lib/utils/findLastIndex.js +22 -0
- package/lib/utils/findMin.d.ts +7 -0
- package/lib/utils/findMin.d.ts.map +1 -0
- package/lib/utils/findMin.js +46 -0
- package/lib/utils/freezeArray.d.ts +8 -0
- package/lib/utils/freezeArray.d.ts.map +1 -0
- package/lib/utils/freezeArray.js +19 -0
- package/lib/utils/isObject.js +12 -0
- package/lib/utils/mapMap.d.ts +6 -0
- package/lib/utils/mapMap.d.ts.map +1 -0
- package/lib/utils/mapMap.js +27 -0
- package/lib/utils/normalizeLanguage.d.ts +2 -0
- package/lib/utils/normalizeLanguage.d.ts.map +1 -0
- package/lib/utils/normalizeLanguage.js +115 -0
- package/lib/utils/randomId.d.ts +2 -0
- package/lib/utils/randomId.d.ts.map +1 -0
- package/lib/utils/randomId.js +15 -0
- package/lib/utils/warnOnce.d.ts +2 -0
- package/lib/utils/warnOnce.d.ts.map +1 -0
- package/lib/utils/warnOnce.js +16 -0
- package/package.json +90 -158
- package/src/StyleOptions.ts +285 -400
- package/src/decorator/index.ts +4 -0
- package/src/decorator/private/ActivityBorderDecoratorMiddleware.ts +31 -0
- package/src/decorator/private/ActivityDecorator.tsx +31 -0
- package/src/decorator/private/DecoratorComposer.tsx +6 -0
- package/src/decorator/private/activityDecoratorRequest.ts +6 -0
- package/src/decorator/private/createDecoratorComposer.tsx +36 -0
- package/src/{middleware → decorator}/private/templateMiddleware.test.tsx +17 -19
- package/src/decorator/private/templateMiddleware.ts +58 -0
- package/src/defaultStyleOptions.ts +23 -40
- package/src/hooks/Composer.tsx +142 -204
- package/src/hooks/index.ts +2 -19
- package/src/hooks/internal/ErrorBox.js +34 -0
- package/src/hooks/internal/SendBoxMiddleware.ts +21 -0
- package/src/hooks/internal/SendBoxToolbarMiddleware.ts +21 -0
- package/src/hooks/internal/Tracker.ts +1 -1
- package/src/hooks/internal/WebChatAPIContext.ts +12 -7
- package/src/hooks/internal/WebChatReduxContext.js +2 -3
- package/src/hooks/internal/private/templateMiddleware.ts +4 -0
- package/src/hooks/internal/useCreateActivityRendererInternal.ts +46 -0
- package/src/hooks/internal/useDebugDeps.js +30 -0
- package/src/hooks/internal/useErrorBoxClass.js +7 -0
- package/src/hooks/middleware/UserlandBoundary.js +2 -2
- package/src/hooks/middleware/applyMiddleware.js +5 -5
- package/src/hooks/middleware/concatMiddleware.spec.js +0 -20
- package/src/hooks/middleware/concatMiddleware.ts +6 -7
- package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +75 -0
- package/src/hooks/private/reduceIterable.spec.ts +2 -0
- package/src/hooks/useActiveTyping.ts +2 -3
- package/src/hooks/useActivities.ts +3 -62
- package/src/hooks/useCreateActivityRenderer.ts +6 -27
- package/src/hooks/useCreateActivityStatusRenderer.tsx +33 -13
- package/src/hooks/useCreateAvatarRenderer.ts +33 -19
- package/src/hooks/useDebouncedNotifications.spec.js +0 -1
- package/src/hooks/useDisabled.ts +2 -8
- package/src/hooks/useGroupActivities.ts +10 -0
- package/src/hooks/useLocalizer.ts +3 -3
- package/src/hooks/useRenderAttachment.ts +2 -2
- package/src/hooks/useSendBoxAttachments.ts +0 -2
- package/src/hooks/useSendFiles.ts +1 -1
- package/src/hooks/useSendTimeoutForActivity.ts +0 -2
- package/src/hooks/useStyleOptions.ts +6 -1
- package/src/hooks/useSuggestedActions.ts +23 -9
- package/src/hooks/useTrackEvent.ts +3 -3
- package/src/index.ts +94 -52
- package/src/internal.ts +3 -0
- package/src/localization/ar-SA.json +111 -134
- package/src/localization/bg-BG.json +111 -134
- package/src/localization/ca-ES.json +111 -134
- package/src/localization/cs-CZ.json +111 -134
- package/src/localization/da-DK.json +111 -134
- package/src/localization/de-DE.json +111 -134
- package/src/localization/el-GR.json +111 -134
- package/src/localization/en-US.json +19 -45
- package/src/localization/es-ES.json +111 -134
- package/src/localization/et-EE.json +111 -134
- package/src/localization/eu-ES.json +111 -134
- package/src/localization/fi-FI.json +111 -134
- package/src/localization/fr-FR.json +111 -134
- package/src/localization/gl-ES.json +111 -134
- package/src/localization/he-IL.json +111 -134
- package/src/localization/hi-IN.json +111 -134
- package/src/localization/hr-HR.json +111 -134
- package/src/localization/hu-HU.json +111 -134
- package/src/localization/id-ID.json +111 -134
- package/src/localization/it-IT.json +111 -134
- package/src/localization/ja-JP.json +111 -134
- package/src/localization/kk-KZ.json +111 -134
- package/src/localization/ko-KR.json +111 -134
- package/src/localization/lt-LT.json +111 -134
- package/src/localization/lv-LV.json +111 -134
- package/src/localization/ms-MY.json +111 -134
- package/src/localization/nb-NO.json +111 -134
- package/src/localization/nl-NL.json +111 -134
- package/src/localization/pl-PL.json +111 -134
- package/src/localization/pt-BR.json +111 -134
- package/src/localization/pt-PT.json +111 -134
- package/src/localization/ro-RO.json +111 -134
- package/src/localization/ru-RU.json +111 -134
- package/src/localization/sk-SK.json +111 -134
- package/src/localization/sl-SI.json +111 -134
- package/src/localization/sr-Cyrl-CS.json +111 -134
- package/src/localization/sr-Latn-CS.json +111 -134
- package/src/localization/sv-SE.json +111 -134
- package/src/localization/th-TH.json +111 -134
- package/src/localization/tr-TR.json +111 -134
- package/src/localization/uk-UA.json +111 -134
- package/src/localization/vi-VN.json +111 -134
- package/src/localization/yue.json +16 -5
- package/src/localization/zh-CN.json +111 -134
- package/src/localization/zh-HK.json +111 -134
- package/src/localization/zh-TW.json +111 -134
- package/src/normalizeStyleOptions.ts +76 -51
- package/src/patchStyleOptionsFromDeprecatedProps.js +14 -0
- package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +40 -197
- package/src/providers/ActivityKeyer/private/someIterable.spec.ts +2 -0
- package/src/providers/ActivityListener/ActivityListenerComposer.tsx +1 -1
- package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +3 -6
- package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +59 -145
- package/src/providers/ActivityTyping/private/useMemoWithPrevious.ts +17 -0
- package/src/tsconfig.json +14 -5
- package/src/types/ActivityMiddleware.ts +36 -0
- package/src/types/ActivityStatusMiddleware.ts +9 -1
- package/src/types/AttachmentForScreenReaderMiddleware.ts +2 -9
- package/src/types/AttachmentMiddleware.ts +16 -0
- package/src/types/AvatarMiddleware.ts +1 -12
- package/src/types/CardActionMiddleware.ts +0 -2
- package/src/types/ComponentMiddleware.ts +1 -1
- package/src/types/GroupActivitiesMiddleware.ts +11 -7
- package/src/utils/isObject.js +5 -0
- package/src/utils/warnOnce.ts +10 -0
- package/LICENSE +0 -21
- package/boot/deprecated/decorator.js +0 -7
- package/boot/deprecated/decorator.mjs +0 -5
- package/boot/deprecated/graph.js +0 -7
- package/boot/deprecated/graph.mjs +0 -5
- package/boot/deprecated/hook.js +0 -7
- package/boot/deprecated/hook.mjs +0 -5
- package/boot/deprecated/internal.js +0 -7
- package/boot/deprecated/internal.mjs +0 -5
- package/boot/deprecated/middleware.js +0 -7
- package/boot/deprecated/middleware.mjs +0 -5
- package/dist/StyleOptions-4TkRjGbQ.d.mts +0 -802
- package/dist/StyleOptions-4TkRjGbQ.d.ts +0 -802
- package/dist/_dtsroll-chunks/B1b7R2eH-avatarMiddleware-CHa011_j.d.ts +0 -109
- package/dist/_dtsroll-chunks/CEcj2Npa-botframework-webchat-redux-store.d.ts +0 -16
- package/dist/_dtsroll-chunks/CZE5KEv8-botframework-webchat-api-middleware.d.ts +0 -230
- package/dist/_dtsroll-chunks/Dtb0H_Ee-handler-chain.d.ts +0 -4
- package/dist/_dtsroll-chunks/N-ttGLxs-botframework-webchat-base.utils.d.ts +0 -4
- package/dist/_dtsroll-chunks/qKTV3q17-avatarMiddleware-CHa011_j.d.ts +0 -93
- package/dist/botframework-webchat-api.d.ts +0 -387
- package/dist/botframework-webchat-api.decorator.d.ts +0 -81
- package/dist/botframework-webchat-api.decorator.js +0 -2
- package/dist/botframework-webchat-api.decorator.js.map +0 -1
- package/dist/botframework-webchat-api.graph.d.mts +0 -5
- package/dist/botframework-webchat-api.graph.d.ts +0 -2
- package/dist/botframework-webchat-api.graph.js +0 -2
- package/dist/botframework-webchat-api.graph.js.map +0 -1
- package/dist/botframework-webchat-api.graph.mjs +0 -2
- package/dist/botframework-webchat-api.hook.d.mts +0 -9
- package/dist/botframework-webchat-api.hook.d.ts +0 -9
- package/dist/botframework-webchat-api.hook.js +0 -2
- package/dist/botframework-webchat-api.hook.js.map +0 -1
- package/dist/botframework-webchat-api.hook.mjs +0 -2
- package/dist/botframework-webchat-api.hook.mjs.map +0 -1
- package/dist/botframework-webchat-api.internal.d.ts +0 -68
- package/dist/botframework-webchat-api.internal.js +0 -2
- package/dist/botframework-webchat-api.internal.js.map +0 -1
- package/dist/botframework-webchat-api.js +0 -2
- package/dist/botframework-webchat-api.js.map +0 -1
- package/dist/botframework-webchat-api.middleware.d.mts +0 -45
- package/dist/botframework-webchat-api.middleware.d.ts +0 -45
- package/dist/botframework-webchat-api.middleware.js +0 -2
- package/dist/botframework-webchat-api.middleware.js.map +0 -1
- package/dist/botframework-webchat-api.middleware.mjs +0 -2
- package/dist/botframework-webchat-api.middleware.mjs.map +0 -1
- package/dist/chunk-3YCFZWVR.js +0 -2
- package/dist/chunk-3YCFZWVR.js.map +0 -1
- package/dist/chunk-3ZWCT7YW.js +0 -2
- package/dist/chunk-3ZWCT7YW.js.map +0 -1
- package/dist/chunk-5HALOM2E.mjs +0 -2
- package/dist/chunk-5HALOM2E.mjs.map +0 -1
- package/dist/chunk-5JETBPYY.mjs +0 -2
- package/dist/chunk-5JETBPYY.mjs.map +0 -1
- package/dist/chunk-5X4VJZOM.js +0 -2
- package/dist/chunk-5X4VJZOM.js.map +0 -1
- package/dist/chunk-7GV72C4W.js +0 -2
- package/dist/chunk-7GV72C4W.js.map +0 -1
- package/dist/chunk-7IP5FN7Q.mjs +0 -2
- package/dist/chunk-7IP5FN7Q.mjs.map +0 -1
- package/dist/chunk-A6GQOZT3.js +0 -2
- package/dist/chunk-A6GQOZT3.js.map +0 -1
- package/dist/chunk-CIL5QUZ4.js +0 -2
- package/dist/chunk-CIL5QUZ4.js.map +0 -1
- package/dist/chunk-FA2GLWPN.mjs +0 -2
- package/dist/chunk-FA2GLWPN.mjs.map +0 -1
- package/dist/chunk-FD7QXXVX.js +0 -2
- package/dist/chunk-FD7QXXVX.js.map +0 -1
- package/dist/chunk-FOKVXAWC.mjs +0 -2
- package/dist/chunk-FOKVXAWC.mjs.map +0 -1
- package/dist/chunk-G5ZR6XJL.js +0 -2
- package/dist/chunk-G5ZR6XJL.js.map +0 -1
- package/dist/chunk-HIYAS5EE.js +0 -2
- package/dist/chunk-HIYAS5EE.js.map +0 -1
- package/dist/chunk-HJXXCOFT.js +0 -2
- package/dist/chunk-HJXXCOFT.js.map +0 -1
- package/dist/chunk-JKWDQH6P.mjs +0 -2
- package/dist/chunk-JKWDQH6P.mjs.map +0 -1
- package/dist/chunk-KDDULPEL.js +0 -2
- package/dist/chunk-KDDULPEL.js.map +0 -1
- package/dist/chunk-KGCBCAKG.js +0 -2
- package/dist/chunk-KGCBCAKG.js.map +0 -1
- package/dist/chunk-RLEJOP6E.mjs +0 -2
- package/dist/chunk-RLEJOP6E.mjs.map +0 -1
- package/dist/chunk-SOXBB2PI.mjs +0 -2
- package/dist/chunk-SOXBB2PI.mjs.map +0 -1
- package/dist/chunk-TU4357L3.mjs +0 -2
- package/dist/chunk-TU4357L3.mjs.map +0 -1
- package/dist/chunk-TWUVYAF5.mjs +0 -2
- package/dist/chunk-TWUVYAF5.mjs.map +0 -1
- package/dist/chunk-VAX7AB37.mjs.map +0 -1
- package/dist/chunk-VNGDFILB.mjs +0 -2
- package/dist/chunk-VNGDFILB.mjs.map +0 -1
- package/dist/hook-BXcgekzo.d.mts +0 -536
- package/dist/hook-C8NHjp6P.d.ts +0 -536
- package/dist/metafile-cjs.json +0 -1
- package/dist/templateMiddleware-BEttHPJk.d.mts +0 -20
- package/dist/templateMiddleware-BEttHPJk.d.ts +0 -20
- package/dist/types-BKuj7f2p.d.ts +0 -228
- package/dist/types-BZzd7aAk.d.mts +0 -228
- package/graph.js +0 -3
- package/hook.js +0 -3
- package/middleware.js +0 -3
- package/src/__tests__/addMetaTag.spec.js +0 -9
- package/src/__tests__/addMetaTag.spec.mjs +0 -9
- package/src/boot/decorator.ts +0 -21
- package/src/boot/graph.ts +0 -1
- package/src/boot/hook.ts +0 -82
- package/src/boot/internal.ts +0 -7
- package/src/boot/middleware.ts +0 -60
- package/src/buildInfo.ts +0 -9
- package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +0 -57
- package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +0 -34
- package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorRequestContext.ts +0 -48
- package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +0 -43
- package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +0 -40
- package/src/decorator/DecoratorComposer.tsx +0 -51
- package/src/decorator/internal/InternalDecoratorComposer.tsx +0 -33
- package/src/decorator/internal/LowPriorityDecoratorComposer.tsx +0 -19
- package/src/decorator/private/DecoratorComposerContext.ts +0 -16
- package/src/decorator/private/PassthroughFallback.tsx +0 -12
- package/src/decorator/private/templateDecorator.tsx +0 -113
- package/src/decorator/types.ts +0 -4
- package/src/decorator/useDecoratorRequest.ts +0 -15
- package/src/env.d.ts +0 -9
- package/src/errorBox/errorBoxTelemetryPolymiddleware.ts +0 -53
- package/src/hooks/internal/usePostVoiceActivity.ts +0 -18
- package/src/hooks/internal/useRegisterVoiceHandler.ts +0 -23
- package/src/hooks/internal/useShouldShowMicrophoneButton.ts +0 -22
- package/src/hooks/internal/useVoiceHandlers.ts +0 -11
- package/src/hooks/internal/useVoiceStateWritable.ts +0 -18
- package/src/hooks/middleware/activityFallbackPolymiddleware.ts +0 -23
- package/src/hooks/useStartVoice.ts +0 -9
- package/src/hooks/useStopVoice.ts +0 -9
- package/src/hooks/useUIState.ts +0 -18
- package/src/hooks/useVoiceRecordingMuted.ts +0 -24
- package/src/hooks/useVoiceState.ts +0 -15
- package/src/hooks/validation/uiState.parseUIState.spec.ts +0 -21
- package/src/hooks/validation/uiState.ts +0 -10
- package/src/legacy/LegacyActivityBridge.tsx +0 -77
- package/src/legacy/LegacyActivityBridgeContext.ts +0 -23
- package/src/legacy/createActivityPolymiddlewareFromLegacy.tsx +0 -123
- package/src/legacy/createAvatarPolymiddlewareFromLegacy.tsx +0 -102
- package/src/middleware/AvatarPolymiddlewareProxy.tsx +0 -46
- package/src/middleware/SendBoxMiddleware.ts +0 -28
- package/src/middleware/SendBoxToolbarMiddleware.ts +0 -28
- package/src/middleware/private/templateMiddleware.check.test.tsx +0 -47
- package/src/middleware/private/templateMiddleware.tsx +0 -106
- package/src/middleware/useBuildRenderAvatarCallback.ts +0 -37
- package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +0 -236
- package/src/providers/ActivityTyping/private/useReduceActivities.ts +0 -49
- package/src/providers/Capabilities/CapabilitiesComposer.tsx +0 -53
- package/src/providers/Capabilities/private/Context.ts +0 -13
- package/src/providers/Capabilities/private/capabilityRegistry.ts +0 -45
- package/src/providers/Capabilities/private/fetchCapabilitiesFromAdapter.ts +0 -59
- package/src/providers/Capabilities/private/shallowEqual.ts +0 -18
- package/src/providers/Capabilities/private/useContext.ts +0 -12
- package/src/providers/Capabilities/types/Capabilities.ts +0 -16
- package/src/providers/Capabilities/useCapabilities.ts +0 -25
- package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +0 -116
- package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +0 -23
- package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +0 -113
- package/src/providers/GroupActivities/private/isGroupingValid.ts +0 -41
- package/src/providers/GroupActivities/private/useGroupActivitiesContext.ts +0 -6
- package/src/providers/GroupActivities/useGroupActivities.ts +0 -20
- package/src/providers/GroupActivities/useGroupActivitiesByName.ts +0 -17
- package/src/providers/SpeechToSpeech/SpeechToSpeechComposer.tsx +0 -20
- package/src/providers/SpeechToSpeech/private/VoiceHandlerBridge.tsx +0 -23
- package/src/providers/SpeechToSpeech/private/VoiceRecorderBridge.tsx +0 -49
- package/src/providers/SpeechToSpeech/private/useAudioPlayer.spec.tsx +0 -355
- package/src/providers/SpeechToSpeech/private/useAudioPlayer.ts +0 -92
- package/src/providers/SpeechToSpeech/private/useRecorder.spec.tsx +0 -344
- package/src/providers/SpeechToSpeech/private/useRecorder.ts +0 -220
- package/src/providers/StyleOptions/StyleOptionsComposer.tsx +0 -46
- package/src/providers/StyleOptions/private/StyleOptionsContext.ts +0 -20
- package/src/providers/StyleOptions/private/rectifyStyleOptions.ts +0 -6
- package/src/providers/StyleOptions/useStyleOptions.ts +0 -6
- /package/dist/{botframework-webchat-api.graph.mjs.map → chunk-J6D5YEY6.mjs.map} +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { WebChatActivity } from 'botframework-webchat-core';
|
|
2
|
-
import react__default from 'react';
|
|
3
|
-
import * as react_chain_of_responsibility_preview from 'react-chain-of-responsibility/preview';
|
|
4
|
-
import { ComponentHandler, ComponentHandlerResult, ComponentEnhancer, ProviderProps, ProxyProps, ComponentRenderer } from 'react-chain-of-responsibility/preview';
|
|
5
|
-
|
|
6
|
-
type InferenceHelper<Request, Props extends object> = {
|
|
7
|
-
'~types': {
|
|
8
|
-
handler: ComponentHandler<Request, Props>;
|
|
9
|
-
handlerResult: ComponentHandlerResult<Props>;
|
|
10
|
-
middleware: (init: string) => ComponentEnhancer<Request, Props>;
|
|
11
|
-
props: Props;
|
|
12
|
-
providerProps: Pick<ProviderProps<Request, Props, string>, 'children' | 'middleware'>;
|
|
13
|
-
proxyProps: ProxyProps<Request, Props>;
|
|
14
|
-
renderer: ComponentRenderer<Props>;
|
|
15
|
-
request: Request;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
type InferHandler<T extends InferenceHelper<any, any>> = T['~types']['handler'];
|
|
19
|
-
type InferHandlerResult<T extends InferenceHelper<any, any>> = T['~types']['handlerResult'];
|
|
20
|
-
type InferMiddleware<T extends InferenceHelper<any, any>> = T['~types']['middleware'];
|
|
21
|
-
type InferProps<T extends InferenceHelper<any, any>> = T['~types']['props'];
|
|
22
|
-
type InferRenderer<T extends InferenceHelper<any, any>> = T['~types']['renderer'];
|
|
23
|
-
type InferRequest<T extends InferenceHelper<any, any>> = T['~types']['request'];
|
|
24
|
-
|
|
25
|
-
declare const __INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol: unique symbol;
|
|
26
|
-
declare const createAvatarPolymiddleware: (enhancer: react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
27
|
-
readonly activity: WebChatActivity;
|
|
28
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
29
|
-
}, {
|
|
30
|
-
readonly children?: never;
|
|
31
|
-
}>) => (init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
32
|
-
readonly activity: WebChatActivity;
|
|
33
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
34
|
-
}, {
|
|
35
|
-
readonly children?: never;
|
|
36
|
-
}>;
|
|
37
|
-
declare const AvatarPolymiddlewareProvider: react__default.NamedExoticComponent<{
|
|
38
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
39
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
40
|
-
readonly activity: WebChatActivity;
|
|
41
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
42
|
-
}, {
|
|
43
|
-
readonly children?: never;
|
|
44
|
-
}>)[];
|
|
45
|
-
}> & {
|
|
46
|
-
readonly type: ({ children, middleware }: {
|
|
47
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
48
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
49
|
-
readonly activity: WebChatActivity;
|
|
50
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
51
|
-
}, {
|
|
52
|
-
readonly children?: never;
|
|
53
|
-
}>)[];
|
|
54
|
-
}) => react__default.JSX.Element;
|
|
55
|
-
} & {
|
|
56
|
-
'~types': {
|
|
57
|
-
handler: react_chain_of_responsibility_preview.ComponentHandler<{
|
|
58
|
-
readonly activity: WebChatActivity;
|
|
59
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
60
|
-
}, {
|
|
61
|
-
readonly children?: never;
|
|
62
|
-
}>;
|
|
63
|
-
handlerResult: react_chain_of_responsibility_preview.ComponentHandlerResult<{
|
|
64
|
-
readonly children?: never;
|
|
65
|
-
}>;
|
|
66
|
-
middleware: (init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
67
|
-
readonly activity: WebChatActivity;
|
|
68
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
69
|
-
}, {
|
|
70
|
-
readonly children?: never;
|
|
71
|
-
}>;
|
|
72
|
-
props: {
|
|
73
|
-
readonly children?: never;
|
|
74
|
-
};
|
|
75
|
-
providerProps: Pick<react_chain_of_responsibility_preview.ProviderProps<{
|
|
76
|
-
readonly activity: WebChatActivity;
|
|
77
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
78
|
-
}, {
|
|
79
|
-
readonly children?: never;
|
|
80
|
-
}, string>, "middleware" | "children">;
|
|
81
|
-
proxyProps: react_chain_of_responsibility_preview.ProxyProps<{
|
|
82
|
-
readonly activity: WebChatActivity;
|
|
83
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
84
|
-
}, {
|
|
85
|
-
readonly children?: never;
|
|
86
|
-
}>;
|
|
87
|
-
renderer: react_chain_of_responsibility_preview.ComponentRenderer<{
|
|
88
|
-
readonly children?: never;
|
|
89
|
-
}>;
|
|
90
|
-
request: {
|
|
91
|
-
readonly activity: WebChatActivity;
|
|
92
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
declare const avatarComponent: react_chain_of_responsibility_preview.ReactComponentHandlerResult<{
|
|
97
|
-
readonly children?: never;
|
|
98
|
-
}>;
|
|
99
|
-
type AvatarPolymiddleware = InferMiddleware<typeof AvatarPolymiddlewareProvider>;
|
|
100
|
-
type AvatarPolymiddlewareHandler = InferHandler<typeof AvatarPolymiddlewareProvider>;
|
|
101
|
-
type AvatarPolymiddlewareHandlerResult = InferHandlerResult<typeof AvatarPolymiddlewareProvider>;
|
|
102
|
-
type AvatarPolymiddlewareProps = InferProps<typeof AvatarPolymiddlewareProvider>;
|
|
103
|
-
type AvatarPolymiddlewareRenderer = InferRenderer<typeof AvatarPolymiddlewareProvider>;
|
|
104
|
-
type AvatarPolymiddlewareRequest = InferRequest<typeof AvatarPolymiddlewareProvider>;
|
|
105
|
-
|
|
106
|
-
declare const __INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol: unique symbol;
|
|
107
|
-
|
|
108
|
-
export { __INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol as _, __INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol as a, avatarComponent as g, createAvatarPolymiddleware as h };
|
|
109
|
-
export type { AvatarPolymiddlewareRequest as A, InferMiddleware as I, AvatarPolymiddleware as b, AvatarPolymiddlewareHandler as c, AvatarPolymiddlewareHandlerResult as d, AvatarPolymiddlewareProps as e, AvatarPolymiddlewareRenderer as f, InferHandler as i, InferHandlerResult as j, InferProps as k, InferRenderer as l, InferRequest as m };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { DirectLineCardAction, WebChatActivity } from 'botframework-webchat-core';
|
|
3
|
-
|
|
4
|
-
type SuggestedActionsContextType = Readonly<{
|
|
5
|
-
useSuggestedActions: () => readonly [
|
|
6
|
-
readonly DirectLineCardAction[],
|
|
7
|
-
Dispatch<SetStateAction<readonly DirectLineCardAction[]>>,
|
|
8
|
-
Readonly<{
|
|
9
|
-
activity: undefined | WebChatActivity;
|
|
10
|
-
}>
|
|
11
|
-
];
|
|
12
|
-
}>;
|
|
13
|
-
|
|
14
|
-
declare function useSuggestedActionsHooks(): SuggestedActionsContextType;
|
|
15
|
-
|
|
16
|
-
export { useSuggestedActionsHooks as u };
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { WebChatActivity, DirectLineAttachment } from 'botframework-webchat-core';
|
|
2
|
-
import react__default, { ReactNode } from 'react';
|
|
3
|
-
import * as valibot from 'valibot';
|
|
4
|
-
import { InferInput } from 'valibot';
|
|
5
|
-
import * as react_chain_of_responsibility_preview from 'react-chain-of-responsibility/preview';
|
|
6
|
-
import { I as InferMiddleware, i as InferHandler, j as InferHandlerResult, k as InferProps, l as InferRenderer, m as InferRequest } from './B1b7R2eH-avatarMiddleware-CHa011_j.js';
|
|
7
|
-
|
|
8
|
-
type LegacyAttachmentProps = {
|
|
9
|
-
activity: WebChatActivity;
|
|
10
|
-
attachment: DirectLineAttachment;
|
|
11
|
-
};
|
|
12
|
-
type LegacyRenderAttachment = (props?: LegacyAttachmentProps) => ReactNode;
|
|
13
|
-
type LegacyAttachmentEnhancer = (next: LegacyRenderAttachment) => LegacyRenderAttachment;
|
|
14
|
-
type LegacyAttachmentMiddleware = () => LegacyAttachmentEnhancer;
|
|
15
|
-
|
|
16
|
-
type LegacyActivityProps = {
|
|
17
|
-
children?: never | undefined;
|
|
18
|
-
hideTimestamp: boolean;
|
|
19
|
-
renderActivityStatus: (options: {
|
|
20
|
-
hideTimestamp: boolean;
|
|
21
|
-
}) => ReactNode;
|
|
22
|
-
renderAvatar: false | (() => Exclude<ReactNode, boolean | null | undefined>);
|
|
23
|
-
showCallout: boolean;
|
|
24
|
-
};
|
|
25
|
-
type LegacyActivityComponent = (props: LegacyActivityProps) => Exclude<ReactNode, boolean | null | undefined>;
|
|
26
|
-
type LegacyActivityComponentFactoryOptions = {
|
|
27
|
-
activity: WebChatActivity;
|
|
28
|
-
};
|
|
29
|
-
type LegacyActivityComponentFactory = (options: LegacyActivityComponentFactoryOptions) => LegacyActivityComponent | false;
|
|
30
|
-
type LegacyRenderActivity = (renderAttachment: LegacyRenderAttachment, { hideTimestamp, renderActivityStatus, renderAvatar, showCallout }: LegacyActivityProps) => Exclude<ReactNode, boolean>;
|
|
31
|
-
type LegacyActivityRenderer = (options: LegacyActivityComponentFactoryOptions) => LegacyRenderActivity | false;
|
|
32
|
-
type LegacyActivityEnhancer = (next: LegacyActivityRenderer) => LegacyActivityRenderer;
|
|
33
|
-
type LegacyActivityMiddleware = () => LegacyActivityEnhancer;
|
|
34
|
-
|
|
35
|
-
declare const createActivityPolymiddleware: (enhancer: react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
36
|
-
readonly activity: WebChatActivity;
|
|
37
|
-
}, {
|
|
38
|
-
readonly children?: never;
|
|
39
|
-
}>) => (init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
40
|
-
readonly activity: WebChatActivity;
|
|
41
|
-
}, {
|
|
42
|
-
readonly children?: never;
|
|
43
|
-
}>;
|
|
44
|
-
declare const Provider: react__default.NamedExoticComponent<{
|
|
45
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
46
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
47
|
-
readonly activity: WebChatActivity;
|
|
48
|
-
}, {
|
|
49
|
-
readonly children?: never;
|
|
50
|
-
}>)[];
|
|
51
|
-
}> & {
|
|
52
|
-
readonly type: ({ children, middleware }: {
|
|
53
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
54
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
55
|
-
readonly activity: WebChatActivity;
|
|
56
|
-
}, {
|
|
57
|
-
readonly children?: never;
|
|
58
|
-
}>)[];
|
|
59
|
-
}) => react__default.JSX.Element;
|
|
60
|
-
} & {
|
|
61
|
-
'~types': {
|
|
62
|
-
handler: react_chain_of_responsibility_preview.ComponentHandler<{
|
|
63
|
-
readonly activity: WebChatActivity;
|
|
64
|
-
}, {
|
|
65
|
-
readonly children?: never;
|
|
66
|
-
}>;
|
|
67
|
-
handlerResult: react_chain_of_responsibility_preview.ComponentHandlerResult<{
|
|
68
|
-
readonly children?: never;
|
|
69
|
-
}>;
|
|
70
|
-
middleware: (init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
71
|
-
readonly activity: WebChatActivity;
|
|
72
|
-
}, {
|
|
73
|
-
readonly children?: never;
|
|
74
|
-
}>;
|
|
75
|
-
props: {
|
|
76
|
-
readonly children?: never;
|
|
77
|
-
};
|
|
78
|
-
providerProps: Pick<react_chain_of_responsibility_preview.ProviderProps<{
|
|
79
|
-
readonly activity: WebChatActivity;
|
|
80
|
-
}, {
|
|
81
|
-
readonly children?: never;
|
|
82
|
-
}, string>, "middleware" | "children">;
|
|
83
|
-
proxyProps: react_chain_of_responsibility_preview.ProxyProps<{
|
|
84
|
-
readonly activity: WebChatActivity;
|
|
85
|
-
}, {
|
|
86
|
-
readonly children?: never;
|
|
87
|
-
}>;
|
|
88
|
-
renderer: react_chain_of_responsibility_preview.ComponentRenderer<{
|
|
89
|
-
readonly children?: never;
|
|
90
|
-
}>;
|
|
91
|
-
request: {
|
|
92
|
-
readonly activity: WebChatActivity;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
declare const activityComponent: react_chain_of_responsibility_preview.ReactComponentHandlerResult<{
|
|
97
|
-
readonly children?: never;
|
|
98
|
-
}>;
|
|
99
|
-
declare const useBuildRenderActivityCallback: () => react_chain_of_responsibility_preview.UseBuildRenderCallback<{
|
|
100
|
-
readonly activity: WebChatActivity;
|
|
101
|
-
}, {
|
|
102
|
-
readonly children?: never;
|
|
103
|
-
}>;
|
|
104
|
-
type ActivityPolymiddleware = InferMiddleware<typeof Provider>;
|
|
105
|
-
type ActivityPolymiddlewareHandler = InferHandler<typeof Provider>;
|
|
106
|
-
type ActivityPolymiddlewareHandlerResult = InferHandlerResult<typeof Provider>;
|
|
107
|
-
type ActivityPolymiddlewareProps = InferProps<typeof Provider>;
|
|
108
|
-
type ActivityPolymiddlewareRenderer = InferRenderer<typeof Provider>;
|
|
109
|
-
type ActivityPolymiddlewareRequest = InferRequest<typeof Provider>;
|
|
110
|
-
declare const activityPolymiddlewareProxyPropsSchema: valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
|
|
111
|
-
readonly activity: valibot.CustomSchema<Readonly<WebChatActivity>, undefined>;
|
|
112
|
-
}, undefined>, valibot.ReadonlyAction<{
|
|
113
|
-
activity: Readonly<WebChatActivity>;
|
|
114
|
-
}>]>;
|
|
115
|
-
type ActivityPolymiddlewareProxyProps = Readonly<InferInput<typeof activityPolymiddlewareProxyPropsSchema>>;
|
|
116
|
-
declare const ActivityPolymiddlewareProxy: react__default.MemoExoticComponent<(props: ActivityPolymiddlewareProxyProps) => react__default.JSX.Element>;
|
|
117
|
-
|
|
118
|
-
declare const createErrorBoxPolymiddleware: (enhancer: react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
119
|
-
readonly error: unknown;
|
|
120
|
-
readonly where: string;
|
|
121
|
-
}, {
|
|
122
|
-
readonly children?: never;
|
|
123
|
-
}>) => (init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
124
|
-
readonly error: unknown;
|
|
125
|
-
readonly where: string;
|
|
126
|
-
}, {
|
|
127
|
-
readonly children?: never;
|
|
128
|
-
}>;
|
|
129
|
-
declare const ErrorBoxPolymiddlewareProvider: react__default.NamedExoticComponent<{
|
|
130
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
131
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
132
|
-
readonly error: unknown;
|
|
133
|
-
readonly where: string;
|
|
134
|
-
}, {
|
|
135
|
-
readonly children?: never;
|
|
136
|
-
}>)[];
|
|
137
|
-
}> & {
|
|
138
|
-
readonly type: ({ children, middleware }: {
|
|
139
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
140
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
141
|
-
readonly error: unknown;
|
|
142
|
-
readonly where: string;
|
|
143
|
-
}, {
|
|
144
|
-
readonly children?: never;
|
|
145
|
-
}>)[];
|
|
146
|
-
}) => react__default.JSX.Element;
|
|
147
|
-
} & {
|
|
148
|
-
'~types': {
|
|
149
|
-
handler: react_chain_of_responsibility_preview.ComponentHandler<{
|
|
150
|
-
readonly error: unknown;
|
|
151
|
-
readonly where: string;
|
|
152
|
-
}, {
|
|
153
|
-
readonly children?: never;
|
|
154
|
-
}>;
|
|
155
|
-
handlerResult: react_chain_of_responsibility_preview.ComponentHandlerResult<{
|
|
156
|
-
readonly children?: never;
|
|
157
|
-
}>;
|
|
158
|
-
middleware: (init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
159
|
-
readonly error: unknown;
|
|
160
|
-
readonly where: string;
|
|
161
|
-
}, {
|
|
162
|
-
readonly children?: never;
|
|
163
|
-
}>;
|
|
164
|
-
props: {
|
|
165
|
-
readonly children?: never;
|
|
166
|
-
};
|
|
167
|
-
providerProps: Pick<react_chain_of_responsibility_preview.ProviderProps<{
|
|
168
|
-
readonly error: unknown;
|
|
169
|
-
readonly where: string;
|
|
170
|
-
}, {
|
|
171
|
-
readonly children?: never;
|
|
172
|
-
}, string>, "middleware" | "children">;
|
|
173
|
-
proxyProps: react_chain_of_responsibility_preview.ProxyProps<{
|
|
174
|
-
readonly error: unknown;
|
|
175
|
-
readonly where: string;
|
|
176
|
-
}, {
|
|
177
|
-
readonly children?: never;
|
|
178
|
-
}>;
|
|
179
|
-
renderer: react_chain_of_responsibility_preview.ComponentRenderer<{
|
|
180
|
-
readonly children?: never;
|
|
181
|
-
}>;
|
|
182
|
-
request: {
|
|
183
|
-
readonly error: unknown;
|
|
184
|
-
readonly where: string;
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
declare const errorBoxComponent: react_chain_of_responsibility_preview.ReactComponentHandlerResult<{
|
|
189
|
-
readonly children?: never;
|
|
190
|
-
}>;
|
|
191
|
-
declare const useBuildRenderErrorBoxCallback: () => react_chain_of_responsibility_preview.UseBuildRenderCallback<{
|
|
192
|
-
readonly error: unknown;
|
|
193
|
-
readonly where: string;
|
|
194
|
-
}, {
|
|
195
|
-
readonly children?: never;
|
|
196
|
-
}>;
|
|
197
|
-
type ErrorBoxPolymiddleware = InferMiddleware<typeof ErrorBoxPolymiddlewareProvider>;
|
|
198
|
-
type ErrorBoxPolymiddlewareHandler = InferHandler<typeof ErrorBoxPolymiddlewareProvider>;
|
|
199
|
-
type ErrorBoxPolymiddlewareHandlerResult = InferHandlerResult<typeof ErrorBoxPolymiddlewareProvider>;
|
|
200
|
-
type ErrorBoxPolymiddlewareProps = InferProps<typeof ErrorBoxPolymiddlewareProvider>;
|
|
201
|
-
type ErrorBoxPolymiddlewareRenderer = InferRenderer<typeof ErrorBoxPolymiddlewareProvider>;
|
|
202
|
-
type ErrorBoxPolymiddlewareRequest = InferRequest<typeof ErrorBoxPolymiddlewareProvider>;
|
|
203
|
-
declare const ErrorBoxPolymiddlewareProxyPropsSchema: valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
|
|
204
|
-
readonly error: valibot.UnknownSchema;
|
|
205
|
-
readonly where: valibot.StringSchema<undefined>;
|
|
206
|
-
}, undefined>, valibot.ReadonlyAction<{
|
|
207
|
-
error: unknown;
|
|
208
|
-
where: string;
|
|
209
|
-
}>]>;
|
|
210
|
-
type ErrorBoxPolymiddlewareProxyProps = Readonly<InferInput<typeof ErrorBoxPolymiddlewareProxyPropsSchema>>;
|
|
211
|
-
declare const ErrorBoxPolymiddlewareProxy: react__default.MemoExoticComponent<(props: ErrorBoxPolymiddlewareProxyProps) => react__default.JSX.Element>;
|
|
212
|
-
|
|
213
|
-
type Polymiddleware = ActivityPolymiddleware | ErrorBoxPolymiddleware;
|
|
214
|
-
|
|
215
|
-
declare const polymiddlewareComposerPropsSchema: valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
|
|
216
|
-
readonly children: valibot.OptionalSchema<valibot.CustomSchema<react__default.ReactNode, undefined>, undefined>;
|
|
217
|
-
readonly polymiddleware: valibot.SchemaWithPipe<readonly [valibot.CustomSchema<readonly Polymiddleware[], undefined>, valibot.TransformAction<readonly Polymiddleware[], readonly Polymiddleware[]>]>;
|
|
218
|
-
}, undefined>, valibot.ReadonlyAction<{
|
|
219
|
-
children?: react__default.ReactNode;
|
|
220
|
-
polymiddleware: readonly Polymiddleware[];
|
|
221
|
-
}>]>;
|
|
222
|
-
type PolymiddlewareComposerProps = Readonly<InferInput<typeof polymiddlewareComposerPropsSchema>>;
|
|
223
|
-
declare function PolymiddlewareComposer(props: PolymiddlewareComposerProps): react__default.JSX.Element;
|
|
224
|
-
declare namespace PolymiddlewareComposer {
|
|
225
|
-
var displayName: string;
|
|
226
|
-
}
|
|
227
|
-
declare const _default: react__default.MemoExoticComponent<typeof PolymiddlewareComposer>;
|
|
228
|
-
|
|
229
|
-
export { _default as _, ActivityPolymiddlewareProxy as g, ErrorBoxPolymiddlewareProxy as n, activityComponent as r, createActivityPolymiddleware as s, createErrorBoxPolymiddleware as t, errorBoxComponent as u, useBuildRenderActivityCallback as v, useBuildRenderErrorBoxCallback as w };
|
|
230
|
-
export type { ActivityPolymiddleware as A, ErrorBoxPolymiddleware as E, LegacyActivityMiddleware as L, Polymiddleware as P, LegacyAttachmentMiddleware as a, LegacyRenderAttachment as b, LegacyActivityComponentFactory as c, ActivityPolymiddlewareHandler as d, ActivityPolymiddlewareHandlerResult as e, ActivityPolymiddlewareProps as f, ActivityPolymiddlewareProxyProps as h, ActivityPolymiddlewareRenderer as i, ActivityPolymiddlewareRequest as j, ErrorBoxPolymiddlewareHandler as k, ErrorBoxPolymiddlewareHandlerResult as l, ErrorBoxPolymiddlewareProps as m, ErrorBoxPolymiddlewareProxyProps as o, ErrorBoxPolymiddlewareRenderer as p, ErrorBoxPolymiddlewareRequest as q };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { WebChatActivity } from 'botframework-webchat-core';
|
|
2
|
-
import react__default, { ReactNode } from 'react';
|
|
3
|
-
import * as react_chain_of_responsibility_preview from 'react-chain-of-responsibility/preview';
|
|
4
|
-
import { ComponentHandler, ComponentHandlerResult, ComponentEnhancer, ProviderProps, ProxyProps, ComponentRenderer } from 'react-chain-of-responsibility/preview';
|
|
5
|
-
|
|
6
|
-
type InferenceHelper<Request, Props extends object> = {
|
|
7
|
-
'~types': {
|
|
8
|
-
handler: ComponentHandler<Request, Props>;
|
|
9
|
-
handlerResult: ComponentHandlerResult<Props>;
|
|
10
|
-
middleware: (init: string) => ComponentEnhancer<Request, Props>;
|
|
11
|
-
props: Props;
|
|
12
|
-
providerProps: Pick<ProviderProps<Request, Props, string>, 'children' | 'middleware'>;
|
|
13
|
-
proxyProps: ProxyProps<Request, Props>;
|
|
14
|
-
renderer: ComponentRenderer<Props>;
|
|
15
|
-
request: Request;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
type InferRequest<T extends InferenceHelper<any, any>> = T['~types']['request'];
|
|
19
|
-
|
|
20
|
-
declare const __INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol: unique symbol;
|
|
21
|
-
declare const AvatarPolymiddlewareProvider: react__default.NamedExoticComponent<{
|
|
22
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
23
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
24
|
-
readonly activity: WebChatActivity;
|
|
25
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
26
|
-
}, {
|
|
27
|
-
readonly children?: never;
|
|
28
|
-
}>)[];
|
|
29
|
-
}> & {
|
|
30
|
-
readonly type: ({ children, middleware }: {
|
|
31
|
-
readonly children?: react__default.ReactNode | undefined;
|
|
32
|
-
readonly middleware: readonly ((init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
33
|
-
readonly activity: WebChatActivity;
|
|
34
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
35
|
-
}, {
|
|
36
|
-
readonly children?: never;
|
|
37
|
-
}>)[];
|
|
38
|
-
}) => react__default.JSX.Element;
|
|
39
|
-
} & {
|
|
40
|
-
'~types': {
|
|
41
|
-
handler: react_chain_of_responsibility_preview.ComponentHandler<{
|
|
42
|
-
readonly activity: WebChatActivity;
|
|
43
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
44
|
-
}, {
|
|
45
|
-
readonly children?: never;
|
|
46
|
-
}>;
|
|
47
|
-
handlerResult: react_chain_of_responsibility_preview.ComponentHandlerResult<{
|
|
48
|
-
readonly children?: never;
|
|
49
|
-
}>;
|
|
50
|
-
middleware: (init: string) => react_chain_of_responsibility_preview.ComponentEnhancer<{
|
|
51
|
-
readonly activity: WebChatActivity;
|
|
52
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
53
|
-
}, {
|
|
54
|
-
readonly children?: never;
|
|
55
|
-
}>;
|
|
56
|
-
props: {
|
|
57
|
-
readonly children?: never;
|
|
58
|
-
};
|
|
59
|
-
providerProps: Pick<react_chain_of_responsibility_preview.ProviderProps<{
|
|
60
|
-
readonly activity: WebChatActivity;
|
|
61
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
62
|
-
}, {
|
|
63
|
-
readonly children?: never;
|
|
64
|
-
}, string>, "middleware" | "children">;
|
|
65
|
-
proxyProps: react_chain_of_responsibility_preview.ProxyProps<{
|
|
66
|
-
readonly activity: WebChatActivity;
|
|
67
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
68
|
-
}, {
|
|
69
|
-
readonly children?: never;
|
|
70
|
-
}>;
|
|
71
|
-
renderer: react_chain_of_responsibility_preview.ComponentRenderer<{
|
|
72
|
-
readonly children?: never;
|
|
73
|
-
}>;
|
|
74
|
-
request: {
|
|
75
|
-
readonly activity: WebChatActivity;
|
|
76
|
-
readonly [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: any;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
type AvatarPolymiddlewareRequest = InferRequest<typeof AvatarPolymiddlewareProvider>;
|
|
81
|
-
|
|
82
|
-
declare const __INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol: unique symbol;
|
|
83
|
-
type LegacyAvatarComponentFactoryArguments = {
|
|
84
|
-
readonly [__INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol]: AvatarPolymiddlewareRequest;
|
|
85
|
-
readonly activity: WebChatActivity;
|
|
86
|
-
readonly fromUser: boolean;
|
|
87
|
-
readonly styleOptions: Readonly<Record<string, unknown>>;
|
|
88
|
-
};
|
|
89
|
-
type LegacyAvatarRenderer = false | (() => Exclude<ReactNode, boolean | null | undefined>);
|
|
90
|
-
type LegacyAvatarEnhancer = (next: (args: LegacyAvatarComponentFactoryArguments) => LegacyAvatarRenderer) => (args: LegacyAvatarComponentFactoryArguments) => LegacyAvatarRenderer;
|
|
91
|
-
type LegacyAvatarMiddleware = () => LegacyAvatarEnhancer;
|
|
92
|
-
|
|
93
|
-
export type { LegacyAvatarMiddleware as L };
|