botframework-webchat-api 4.18.1-main.20260511.8fcd02a → 4.18.1
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-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-A6GQOZT3.js +0 -2
- package/dist/chunk-A6GQOZT3.js.map +0 -1
- package/dist/chunk-C4R6NR53.mjs +0 -2
- package/dist/chunk-C4R6NR53.mjs.map +0 -1
- package/dist/chunk-CBZ43QWR.js +0 -2
- package/dist/chunk-CBZ43QWR.js.map +0 -1
- package/dist/chunk-CHK4LFTH.js +0 -2
- package/dist/chunk-CHK4LFTH.js.map +0 -1
- package/dist/chunk-CIL5QUZ4.js +0 -2
- package/dist/chunk-CIL5QUZ4.js.map +0 -1
- package/dist/chunk-DFT7HFE5.js +0 -2
- package/dist/chunk-DFT7HFE5.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-G5ZR6XJL.js +0 -2
- package/dist/chunk-G5ZR6XJL.js.map +0 -1
- package/dist/chunk-HN2U3UQ3.mjs +0 -2
- package/dist/chunk-HN2U3UQ3.mjs.map +0 -1
- package/dist/chunk-JKWDQH6P.mjs +0 -2
- package/dist/chunk-JKWDQH6P.mjs.map +0 -1
- package/dist/chunk-LMAKRCAA.mjs +0 -2
- package/dist/chunk-LMAKRCAA.mjs.map +0 -1
- package/dist/chunk-NGAMGIOT.mjs +0 -2
- package/dist/chunk-NGAMGIOT.mjs.map +0 -1
- package/dist/chunk-NI6HIOVK.js +0 -2
- package/dist/chunk-NI6HIOVK.js.map +0 -1
- package/dist/chunk-RLEJOP6E.mjs +0 -2
- package/dist/chunk-RLEJOP6E.mjs.map +0 -1
- package/dist/chunk-SBCOSAZS.mjs +0 -2
- package/dist/chunk-SBCOSAZS.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/chunk-VUX2WFWT.js +0 -2
- package/dist/chunk-VUX2WFWT.js.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
package/src/StyleOptions.ts
CHANGED
|
@@ -1,42 +1,37 @@
|
|
|
1
1
|
import type { WebChatActivity } from 'botframework-webchat-core';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type StyleOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* Basic styling
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/** Web Chat component accent color */
|
|
9
|
-
accent
|
|
9
|
+
accent?: string;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Transcript background color
|
|
13
13
|
*/
|
|
14
|
-
backgroundColor
|
|
14
|
+
backgroundColor?: string;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Secondary component color
|
|
18
18
|
*/
|
|
19
|
-
subtle
|
|
19
|
+
subtle?: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Default padding used in most visual components
|
|
23
23
|
*/
|
|
24
|
-
paddingRegular
|
|
24
|
+
paddingRegular?: number;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Padding used for suggestedAction buttons
|
|
28
28
|
*/
|
|
29
|
-
paddingWide
|
|
29
|
+
paddingWide?: number;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
|
|
32
|
+
Transition for Bubble, Carousel, and StackedLayout
|
|
33
33
|
*/
|
|
34
|
-
transitionDuration
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The easing function to be used for transitions
|
|
38
|
-
*/
|
|
39
|
-
transitionEasing: string | undefined;
|
|
34
|
+
transitionDuration?: string;
|
|
40
35
|
|
|
41
36
|
/**
|
|
42
37
|
* Fonts
|
|
@@ -46,28 +41,28 @@ type StrictStyleOptions = {
|
|
|
46
41
|
/**
|
|
47
42
|
* Font size used for secondary components such as sendStatus
|
|
48
43
|
*/
|
|
49
|
-
fontSizeSmall
|
|
44
|
+
fontSizeSmall?: number | string;
|
|
50
45
|
|
|
51
46
|
/**
|
|
52
47
|
* Font used for ErrorBox
|
|
53
48
|
* comma-space separated string
|
|
54
49
|
*/
|
|
55
|
-
monospaceFont
|
|
50
|
+
monospaceFont?: string;
|
|
56
51
|
|
|
57
52
|
/**
|
|
58
53
|
* Font used in most visual components
|
|
59
54
|
* comma-space separated string
|
|
60
55
|
*/
|
|
61
|
-
primaryFont
|
|
56
|
+
primaryFont?: string;
|
|
62
57
|
|
|
63
|
-
rootHeight
|
|
58
|
+
rootHeight?: number | string;
|
|
64
59
|
|
|
65
|
-
rootWidth
|
|
60
|
+
rootWidth?: number | string;
|
|
66
61
|
|
|
67
62
|
/**
|
|
68
63
|
* "z-index" for the root container of Web Chat. This will form a new stacking context so "z-index" used in children won't pollute.
|
|
69
64
|
*/
|
|
70
|
-
rootZIndex
|
|
65
|
+
rootZIndex?: number;
|
|
71
66
|
|
|
72
67
|
/**
|
|
73
68
|
* Avatar styling
|
|
@@ -76,46 +71,46 @@ type StrictStyleOptions = {
|
|
|
76
71
|
/**
|
|
77
72
|
* Border radius used for both bot and user avatar
|
|
78
73
|
*/
|
|
79
|
-
avatarBorderRadius
|
|
74
|
+
avatarBorderRadius?: number | string;
|
|
80
75
|
|
|
81
76
|
/**
|
|
82
77
|
* Height and width of avatar
|
|
83
78
|
*/
|
|
84
|
-
avatarSize
|
|
79
|
+
avatarSize?: number;
|
|
85
80
|
|
|
86
81
|
/**
|
|
87
82
|
* Background color defaults to accent
|
|
88
83
|
*/
|
|
89
|
-
botAvatarBackgroundColor
|
|
84
|
+
botAvatarBackgroundColor?: string;
|
|
90
85
|
|
|
91
86
|
/**
|
|
92
87
|
* URL string. Can be data URI or blob
|
|
93
88
|
* botAvatarInitials must be set to empty string
|
|
94
89
|
*/
|
|
95
|
-
botAvatarImage
|
|
90
|
+
botAvatarImage?: string;
|
|
96
91
|
|
|
97
92
|
/**
|
|
98
93
|
* Typically rendered as two letters, e.g. 'WC'
|
|
99
94
|
* Empty string is required when setting botAvatarImage
|
|
100
95
|
*/
|
|
101
|
-
botAvatarInitials
|
|
96
|
+
botAvatarInitials?: string;
|
|
102
97
|
|
|
103
98
|
/**
|
|
104
99
|
* Background color defaults to accent
|
|
105
100
|
*/
|
|
106
|
-
userAvatarBackgroundColor
|
|
101
|
+
userAvatarBackgroundColor?: string;
|
|
107
102
|
|
|
108
103
|
/**
|
|
109
104
|
* URL string. Can be data URI or blob
|
|
110
105
|
* userAvatarInitials must be set to empty string
|
|
111
106
|
*/
|
|
112
|
-
userAvatarImage
|
|
107
|
+
userAvatarImage?: string;
|
|
113
108
|
|
|
114
109
|
/**
|
|
115
110
|
* Typically rendered as two letters, i.e. 'WC'
|
|
116
111
|
* Empty string is required when setting userAvatarImage
|
|
117
112
|
*/
|
|
118
|
-
userAvatarInitials
|
|
113
|
+
userAvatarInitials?: string;
|
|
119
114
|
|
|
120
115
|
/**
|
|
121
116
|
* Avatar grouping can be set at 3 different levels:
|
|
@@ -123,23 +118,23 @@ type StrictStyleOptions = {
|
|
|
123
118
|
* Show avatar on activities sharing the same status ('status'; default)
|
|
124
119
|
* Show avatar on every activity (true)
|
|
125
120
|
*/
|
|
126
|
-
showAvatarInGroup
|
|
121
|
+
showAvatarInGroup?: true | 'sender' | 'status';
|
|
127
122
|
|
|
128
123
|
/**
|
|
129
124
|
* Bubble styling
|
|
130
125
|
* 'Bubble' refers to the container of the activit(ies) from the bot and user. Below, non-'fromUser' props refer to styling for the bot activities.
|
|
131
126
|
*/
|
|
132
127
|
|
|
133
|
-
bubbleBackground
|
|
134
|
-
bubbleBorderColor
|
|
135
|
-
bubbleBorderRadius
|
|
136
|
-
bubbleBorderStyle
|
|
137
|
-
bubbleBorderWidth
|
|
138
|
-
bubbleFromUserBackground
|
|
139
|
-
bubbleFromUserBorderColor
|
|
140
|
-
bubbleFromUserBorderRadius
|
|
141
|
-
bubbleFromUserBorderStyle
|
|
142
|
-
bubbleFromUserBorderWidth
|
|
128
|
+
bubbleBackground?: string;
|
|
129
|
+
bubbleBorderColor?: string;
|
|
130
|
+
bubbleBorderRadius?: number;
|
|
131
|
+
bubbleBorderStyle?: string;
|
|
132
|
+
bubbleBorderWidth?: number;
|
|
133
|
+
bubbleFromUserBackground?: string;
|
|
134
|
+
bubbleFromUserBorderColor?: string;
|
|
135
|
+
bubbleFromUserBorderRadius?: number;
|
|
136
|
+
bubbleFromUserBorderStyle?: string;
|
|
137
|
+
bubbleFromUserBorderWidth?: number;
|
|
143
138
|
|
|
144
139
|
/**
|
|
145
140
|
* Nub offset 'bottom' will render nub at the bottom
|
|
@@ -147,39 +142,18 @@ type StrictStyleOptions = {
|
|
|
147
142
|
* "top" is equivalent to positive zero.
|
|
148
143
|
* "bottom" is equivalent to negative zero.
|
|
149
144
|
*/
|
|
150
|
-
bubbleFromUserNubOffset
|
|
145
|
+
bubbleFromUserNubOffset?: number | 'bottom' | 'top';
|
|
151
146
|
|
|
152
147
|
/**
|
|
153
148
|
* Nub size 0 will render a sharp corner
|
|
154
149
|
*/
|
|
155
|
-
bubbleFromUserNubSize
|
|
156
|
-
|
|
157
|
-
bubbleFromUserTextColor: string | undefined;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Specifies the maximum height of the bubble for image, default to 240px.
|
|
161
|
-
*
|
|
162
|
-
* CSS variable: `--webchat__max-height--image-bubble`.
|
|
163
|
-
*
|
|
164
|
-
* New in 4.18.0.
|
|
165
|
-
*/
|
|
166
|
-
bubbleImageMaxHeight: number | undefined;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Specifies the minimum height of the bubble for image, default to 240px.
|
|
170
|
-
*
|
|
171
|
-
* CSS variable: `--webchat__min-height--image-bubble`.
|
|
172
|
-
*
|
|
173
|
-
* New in 4.18.0.
|
|
174
|
-
*/
|
|
175
|
-
bubbleImageMinHeight: number | undefined;
|
|
176
|
-
|
|
177
|
-
bubbleAttachmentMaxWidth: number | undefined;
|
|
178
|
-
bubbleAttachmentMinWidth: number | undefined;
|
|
179
|
-
bubbleMessageMaxWidth: number | undefined;
|
|
180
|
-
bubbleMessageMinWidth: number | undefined;
|
|
150
|
+
bubbleFromUserNubSize?: number;
|
|
181
151
|
|
|
182
|
-
|
|
152
|
+
bubbleFromUserTextColor?: string;
|
|
153
|
+
bubbleImageHeight?: number;
|
|
154
|
+
bubbleMaxWidth?: number;
|
|
155
|
+
bubbleMinHeight?: number;
|
|
156
|
+
bubbleMinWidth?: number;
|
|
183
157
|
|
|
184
158
|
/**
|
|
185
159
|
* Nub offset ''bottom' will render nub at the bottom
|
|
@@ -187,33 +161,33 @@ type StrictStyleOptions = {
|
|
|
187
161
|
* "top" is equivalent to positive zero.
|
|
188
162
|
* "bottom" is equivalent to negative zero.
|
|
189
163
|
*/
|
|
190
|
-
bubbleNubOffset
|
|
164
|
+
bubbleNubOffset?: number | 'bottom' | 'top';
|
|
191
165
|
|
|
192
166
|
/**
|
|
193
167
|
* Nub size 0 will render a sharp corner
|
|
194
168
|
*/
|
|
195
|
-
bubbleNubSize
|
|
169
|
+
bubbleNubSize?: number;
|
|
196
170
|
|
|
197
|
-
bubbleTextColor
|
|
171
|
+
bubbleTextColor?: string;
|
|
198
172
|
|
|
199
|
-
messageActivityWordBreak
|
|
173
|
+
messageActivityWordBreak?: 'normal' | 'break-all' | 'break-word' | 'keep-all';
|
|
200
174
|
|
|
201
175
|
/**
|
|
202
176
|
* Connectivity UI styling
|
|
203
177
|
*/
|
|
204
178
|
|
|
205
|
-
connectivityIconPadding
|
|
206
|
-
connectivityMarginLeftRight
|
|
207
|
-
connectivityMarginTopBottom
|
|
208
|
-
connectivityTextSize
|
|
209
|
-
failedConnectivity
|
|
210
|
-
slowConnectivity
|
|
211
|
-
notificationText
|
|
179
|
+
connectivityIconPadding?: number;
|
|
180
|
+
connectivityMarginLeftRight?: number;
|
|
181
|
+
connectivityMarginTopBottom?: number;
|
|
182
|
+
connectivityTextSize?: number | string;
|
|
183
|
+
failedConnectivity?: number | string;
|
|
184
|
+
slowConnectivity?: string;
|
|
185
|
+
notificationText?: string;
|
|
212
186
|
|
|
213
187
|
/**
|
|
214
188
|
* Slow connection status will render after x amount of time with no service response
|
|
215
189
|
*/
|
|
216
|
-
slowConnectionAfter
|
|
190
|
+
slowConnectionAfter?: number;
|
|
217
191
|
|
|
218
192
|
/**
|
|
219
193
|
* Emoji styling
|
|
@@ -222,19 +196,19 @@ type StrictStyleOptions = {
|
|
|
222
196
|
* key: emoticon
|
|
223
197
|
* value: unicode emoji
|
|
224
198
|
*/
|
|
225
|
-
emojiSet
|
|
199
|
+
emojiSet?: boolean | Record<string, string>;
|
|
226
200
|
|
|
227
201
|
/**
|
|
228
202
|
* Live region - Accessibility
|
|
229
203
|
* New activities will be rendered in the non-visual live region and removed after a certain amount of time. Modify this property to change fade time.
|
|
230
204
|
*/
|
|
231
|
-
internalLiveRegionFadeAfter
|
|
205
|
+
internalLiveRegionFadeAfter?: number;
|
|
232
206
|
|
|
233
207
|
/**
|
|
234
208
|
* Markdown styling
|
|
235
209
|
* Parse markdown to ensure carriage return is respected
|
|
236
210
|
*/
|
|
237
|
-
markdownRespectCRLF
|
|
211
|
+
markdownRespectCRLF?: boolean;
|
|
238
212
|
|
|
239
213
|
/**
|
|
240
214
|
* Render HTML inside Markdown.
|
|
@@ -243,199 +217,208 @@ type StrictStyleOptions = {
|
|
|
243
217
|
*
|
|
244
218
|
* New in 4.17: This option is enabled by default.
|
|
245
219
|
*/
|
|
246
|
-
markdownRenderHTML
|
|
220
|
+
markdownRenderHTML?: boolean;
|
|
247
221
|
|
|
248
222
|
/**
|
|
249
223
|
* Assign new image for anchor links to indicate external
|
|
250
224
|
*/
|
|
251
|
-
markdownExternalLinkIconImage
|
|
225
|
+
markdownExternalLinkIconImage?: string;
|
|
252
226
|
|
|
253
227
|
/**
|
|
254
228
|
* Scroll behavior styling
|
|
255
229
|
*/
|
|
256
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Prevent scroll to end button from rendering
|
|
233
|
+
*
|
|
234
|
+
* @deprecated Since 4.14.0: To hide the scroll to end button, please set `scrollToEndButtonBehavior` to `false`.
|
|
235
|
+
*/
|
|
236
|
+
// TODO: [P4] Will be removed on or after 2023-06-02.
|
|
237
|
+
hideScrollToEndButton?: boolean;
|
|
238
|
+
|
|
257
239
|
/**
|
|
258
240
|
* Snap to activity to 'snap-point'
|
|
259
241
|
* If true, scrolling will pause after 1 activity is received.
|
|
260
242
|
* Specifying a number will pause after X number of activities
|
|
261
243
|
*/
|
|
262
|
-
autoScrollSnapOnActivity
|
|
244
|
+
autoScrollSnapOnActivity?: boolean | number;
|
|
263
245
|
|
|
264
246
|
/**
|
|
265
247
|
* Specify number of pixels to overscroll or underscroll after pause
|
|
266
248
|
*/
|
|
267
|
-
autoScrollSnapOnActivityOffset
|
|
249
|
+
autoScrollSnapOnActivityOffset?: number;
|
|
268
250
|
|
|
269
251
|
/**
|
|
270
252
|
* If true, scrolling will pause after activities have filled the page.
|
|
271
253
|
* Specifying a number (0 to 1) will pause after % of page is filled
|
|
272
254
|
*/
|
|
273
|
-
autoScrollSnapOnPage
|
|
255
|
+
autoScrollSnapOnPage?: boolean | number;
|
|
274
256
|
|
|
275
257
|
/**
|
|
276
258
|
* Specify number of pixels to overscroll or underscroll after pause
|
|
277
259
|
*/
|
|
278
|
-
autoScrollSnapOnPageOffset
|
|
260
|
+
autoScrollSnapOnPageOffset?: number;
|
|
279
261
|
|
|
280
262
|
/**
|
|
281
263
|
* Send box styling
|
|
282
264
|
*/
|
|
283
265
|
|
|
284
|
-
hideSendBox
|
|
266
|
+
hideSendBox?: boolean;
|
|
267
|
+
hideUploadButton?: boolean;
|
|
285
268
|
|
|
286
269
|
/**
|
|
287
270
|
* (EXPERIMENTAL) `true`, if the telephone keypad button should be shown, otherwise, `false`. Defaults to `true`.
|
|
288
271
|
*
|
|
289
272
|
* @deprecated This is an experimental style options and should not be used without understanding its risk.
|
|
290
273
|
*/
|
|
291
|
-
hideTelephoneKeypadButton
|
|
274
|
+
hideTelephoneKeypadButton?: boolean | undefined;
|
|
292
275
|
|
|
293
|
-
microphoneButtonColorOnDictate
|
|
294
|
-
sendBoxBackground
|
|
276
|
+
microphoneButtonColorOnDictate?: string;
|
|
277
|
+
sendBoxBackground?: string;
|
|
295
278
|
|
|
296
279
|
/**
|
|
297
280
|
* The comma-delimited file types that the upload button should accept.
|
|
298
281
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
299
282
|
* @example 'image/*,.pdf'
|
|
300
283
|
*/
|
|
301
|
-
uploadAccept
|
|
284
|
+
uploadAccept?: string;
|
|
302
285
|
/**
|
|
303
286
|
* If true, the upload button will accept multiple files.
|
|
304
287
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple
|
|
305
288
|
*/
|
|
306
|
-
uploadMultiple
|
|
289
|
+
uploadMultiple?: boolean;
|
|
307
290
|
|
|
308
291
|
/**
|
|
309
292
|
* If set to `send` (default), attachment will be sent when the send button is clicked, or when the message is being sent.
|
|
310
293
|
*
|
|
311
294
|
* Otherwise, if set to `attach`, attachment will be sent immediately after file is selected.
|
|
312
295
|
*/
|
|
313
|
-
sendAttachmentOn
|
|
296
|
+
sendAttachmentOn?: 'attach' | 'send';
|
|
314
297
|
|
|
315
298
|
/** Send box button: Icon color, defaults to subtle */
|
|
316
|
-
sendBoxButtonColor
|
|
299
|
+
sendBoxButtonColor?: string;
|
|
317
300
|
|
|
318
301
|
/**
|
|
319
302
|
* Send box button: Shade border radius
|
|
320
303
|
*
|
|
321
304
|
* @default 2
|
|
322
305
|
*/
|
|
323
|
-
sendBoxButtonShadeBorderRadius
|
|
306
|
+
sendBoxButtonShadeBorderRadius?: number;
|
|
324
307
|
|
|
325
308
|
/** Send box button: Shade color */
|
|
326
|
-
sendBoxButtonShadeColor
|
|
309
|
+
sendBoxButtonShadeColor?: string;
|
|
327
310
|
|
|
328
311
|
/**
|
|
329
312
|
* Send box button: Shade inset
|
|
330
313
|
*
|
|
331
314
|
* @default 2
|
|
332
315
|
*/
|
|
333
|
-
sendBoxButtonShadeInset
|
|
316
|
+
sendBoxButtonShadeInset?: number;
|
|
334
317
|
|
|
335
318
|
/** Send box button (while `:active`): Icon color */
|
|
336
|
-
sendBoxButtonColorOnActive
|
|
319
|
+
sendBoxButtonColorOnActive?: string;
|
|
337
320
|
|
|
338
321
|
/**
|
|
339
322
|
* Send box button (while `:active`): Shade color
|
|
340
323
|
*
|
|
341
324
|
* @default '#EDEBE9'
|
|
342
325
|
*/
|
|
343
|
-
sendBoxButtonShadeColorOnActive
|
|
326
|
+
sendBoxButtonShadeColorOnActive?: string;
|
|
344
327
|
|
|
345
328
|
/**
|
|
346
329
|
* Send box button (while `:disabled`): Icon color
|
|
347
330
|
*
|
|
348
331
|
* @default '#A19F9D'
|
|
349
332
|
*/
|
|
350
|
-
sendBoxButtonColorOnDisabled
|
|
333
|
+
sendBoxButtonColorOnDisabled?: string;
|
|
351
334
|
|
|
352
335
|
/**
|
|
353
336
|
* Send box button (while `:disabled`): Shade color
|
|
354
337
|
*
|
|
355
338
|
* @default '#F3F2F1'
|
|
356
339
|
*/
|
|
357
|
-
sendBoxButtonShadeColorOnDisabled
|
|
340
|
+
sendBoxButtonShadeColorOnDisabled?: string;
|
|
358
341
|
|
|
359
342
|
/** Send box button (while `:focus`): Icon color */
|
|
360
|
-
sendBoxButtonColorOnFocus
|
|
343
|
+
sendBoxButtonColorOnFocus?: string;
|
|
361
344
|
|
|
362
345
|
/** Send box button (while `:focus`): Shade color */
|
|
363
|
-
sendBoxButtonShadeColorOnFocus
|
|
346
|
+
sendBoxButtonShadeColorOnFocus?: string;
|
|
364
347
|
|
|
365
348
|
/** Send box button (while `:hover`): Icon color */
|
|
366
|
-
sendBoxButtonColorOnHover
|
|
349
|
+
sendBoxButtonColorOnHover?: string;
|
|
367
350
|
|
|
368
351
|
/**
|
|
369
352
|
* Send box button (while `:hover`): Shade color
|
|
370
353
|
*
|
|
371
354
|
* @default '#F3F2F1'
|
|
372
355
|
*/
|
|
373
|
-
sendBoxButtonShadeColorOnHover
|
|
356
|
+
sendBoxButtonShadeColorOnHover?: string;
|
|
374
357
|
|
|
375
358
|
/**
|
|
376
359
|
* Send box button (while `:focus-visible`): Keyboard focus indicator border color
|
|
377
360
|
*
|
|
378
361
|
* @default '#605E5C'
|
|
379
362
|
*/
|
|
380
|
-
sendBoxButtonKeyboardFocusIndicatorBorderColor
|
|
363
|
+
sendBoxButtonKeyboardFocusIndicatorBorderColor?: string;
|
|
381
364
|
|
|
382
365
|
/**
|
|
383
366
|
* Send box button (while `:focus-visible`): Keyboard focus indicator border radius
|
|
384
367
|
*
|
|
385
368
|
* @default 0
|
|
386
369
|
*/
|
|
387
|
-
sendBoxButtonKeyboardFocusIndicatorBorderRadius
|
|
370
|
+
sendBoxButtonKeyboardFocusIndicatorBorderRadius?: number | string;
|
|
388
371
|
|
|
389
372
|
/**
|
|
390
373
|
* Send box button (while `:focus-visible`): Keyboard focus indicator border style
|
|
391
374
|
*
|
|
392
375
|
* @default 'solid'
|
|
393
376
|
*/
|
|
394
|
-
sendBoxButtonKeyboardFocusIndicatorBorderStyle
|
|
377
|
+
sendBoxButtonKeyboardFocusIndicatorBorderStyle?: string;
|
|
395
378
|
|
|
396
379
|
/**
|
|
397
380
|
* Send box button (while` :focus-visible`): Keyboard focus indicator border width
|
|
398
381
|
*
|
|
399
382
|
* @default 4
|
|
400
383
|
*/
|
|
401
|
-
sendBoxButtonKeyboardFocusIndicatorBorderWidth
|
|
384
|
+
sendBoxButtonKeyboardFocusIndicatorBorderWidth?: number;
|
|
402
385
|
|
|
403
386
|
/**
|
|
404
387
|
* Send box button (while `:focus-visible`): Keyboard focus indicator inset
|
|
405
388
|
*
|
|
406
389
|
* @default 4
|
|
407
390
|
*/
|
|
408
|
-
sendBoxButtonKeyboardFocusIndicatorInset
|
|
391
|
+
sendBoxButtonKeyboardFocusIndicatorInset?: number;
|
|
409
392
|
|
|
410
393
|
/**
|
|
411
394
|
* Disabled text color defaults to subtle
|
|
412
395
|
*/
|
|
413
|
-
sendBoxDisabledTextColor
|
|
396
|
+
sendBoxDisabledTextColor?: string;
|
|
414
397
|
|
|
415
|
-
sendBoxHeight
|
|
416
|
-
sendBoxMaxHeight
|
|
417
|
-
sendBoxTextColor
|
|
418
|
-
sendBoxBorderBottom
|
|
419
|
-
sendBoxBorderLeft
|
|
420
|
-
sendBoxBorderRight
|
|
421
|
-
sendBoxBorderTop
|
|
422
|
-
sendBoxPlaceholderColor
|
|
423
|
-
sendBoxTextWrap
|
|
424
|
-
sendBoxButtonAlignment
|
|
398
|
+
sendBoxHeight?: number | string;
|
|
399
|
+
sendBoxMaxHeight?: number | string;
|
|
400
|
+
sendBoxTextColor?: string;
|
|
401
|
+
sendBoxBorderBottom?: number | string;
|
|
402
|
+
sendBoxBorderLeft?: number | string;
|
|
403
|
+
sendBoxBorderRight?: number | string;
|
|
404
|
+
sendBoxBorderTop?: number | string;
|
|
405
|
+
sendBoxPlaceholderColor?: string;
|
|
406
|
+
sendBoxTextWrap?: boolean;
|
|
407
|
+
sendBoxButtonAlignment?: 'bottom' | 'stretch' | 'top';
|
|
425
408
|
|
|
426
409
|
/**
|
|
427
410
|
* Show spoken text
|
|
428
411
|
*/
|
|
429
|
-
showSpokenText
|
|
412
|
+
showSpokenText?: boolean;
|
|
430
413
|
|
|
431
414
|
/**
|
|
432
415
|
* Spinner animation styling
|
|
433
416
|
*/
|
|
434
417
|
|
|
435
|
-
spinnerAnimationBackgroundImage
|
|
436
|
-
spinnerAnimationHeight
|
|
437
|
-
spinnerAnimationWidth
|
|
438
|
-
spinnerAnimationPadding
|
|
418
|
+
spinnerAnimationBackgroundImage?: string;
|
|
419
|
+
spinnerAnimationHeight?: number | string;
|
|
420
|
+
spinnerAnimationWidth?: number | string;
|
|
421
|
+
spinnerAnimationPadding?: number | string;
|
|
439
422
|
|
|
440
423
|
/**
|
|
441
424
|
* Suggested Actions
|
|
@@ -446,162 +429,225 @@ type StrictStyleOptions = {
|
|
|
446
429
|
*
|
|
447
430
|
* @default 0
|
|
448
431
|
*/
|
|
449
|
-
suggestedActionBorderRadius
|
|
432
|
+
suggestedActionBorderRadius?: number | string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Suggested action: Background
|
|
436
|
+
*
|
|
437
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColor` instead. This option will be removed on or after 2023-09-16.
|
|
438
|
+
*/
|
|
439
|
+
suggestedActionBackground?: string;
|
|
450
440
|
|
|
451
441
|
/**
|
|
452
442
|
* Suggested action: Background color
|
|
453
443
|
*
|
|
454
444
|
* @default 'White'
|
|
455
445
|
*/
|
|
456
|
-
suggestedActionBackgroundColor
|
|
446
|
+
suggestedActionBackgroundColor?: string;
|
|
457
447
|
|
|
458
448
|
/** Suggested action: Border color, defaults to accent color */
|
|
459
|
-
suggestedActionBorderColor
|
|
449
|
+
suggestedActionBorderColor?: string;
|
|
460
450
|
|
|
461
451
|
/**
|
|
462
452
|
* Suggested action: Border style
|
|
463
453
|
*
|
|
464
454
|
* @default 'solid'
|
|
465
455
|
*/
|
|
466
|
-
suggestedActionBorderStyle
|
|
456
|
+
suggestedActionBorderStyle?: string;
|
|
467
457
|
|
|
468
458
|
/**
|
|
469
459
|
* Suggested action: Border width
|
|
470
460
|
*
|
|
471
461
|
* @default 2
|
|
472
462
|
*/
|
|
473
|
-
suggestedActionBorderWidth
|
|
463
|
+
suggestedActionBorderWidth?: number;
|
|
474
464
|
|
|
475
465
|
/** Suggested action: Text color, defaults to accent color */
|
|
476
|
-
suggestedActionTextColor
|
|
466
|
+
suggestedActionTextColor?: string;
|
|
477
467
|
|
|
478
468
|
/** Suggested action (while `:disabled`): Background color, defaults to suggestedActionBackground */
|
|
479
|
-
suggestedActionBackgroundColorOnDisabled
|
|
469
|
+
suggestedActionBackgroundColorOnDisabled?: string;
|
|
480
470
|
|
|
481
471
|
/**
|
|
482
472
|
* Suggested action (while `:disabled`): Border color
|
|
483
473
|
*
|
|
484
474
|
* @default '#E6E6E6'
|
|
485
475
|
*/
|
|
486
|
-
suggestedActionBorderColorOnDisabled
|
|
476
|
+
suggestedActionBorderColorOnDisabled?: string;
|
|
487
477
|
|
|
488
478
|
/** Suggested action (while `:disabled`): Border style */
|
|
489
|
-
suggestedActionBorderStyleOnDisabled
|
|
479
|
+
suggestedActionBorderStyleOnDisabled?: string;
|
|
490
480
|
|
|
491
481
|
/** Suggested action (while `:disabled`): Border width */
|
|
492
|
-
suggestedActionBorderWidthOnDisabled
|
|
482
|
+
suggestedActionBorderWidthOnDisabled?: number;
|
|
493
483
|
|
|
494
484
|
/** Suggested action (while `:disabled`): Foreground color, defaults to subtle color */
|
|
495
|
-
suggestedActionTextColorOnDisabled
|
|
485
|
+
suggestedActionTextColorOnDisabled?: string;
|
|
496
486
|
|
|
497
487
|
/**
|
|
498
488
|
* Suggested action (while `:active`): Background color
|
|
499
489
|
*
|
|
500
490
|
* @default '#EDEBE9'
|
|
501
491
|
*/
|
|
502
|
-
suggestedActionBackgroundColorOnActive
|
|
492
|
+
suggestedActionBackgroundColorOnActive?: string;
|
|
503
493
|
|
|
504
494
|
/** Suggested action (while `:active`): Border color */
|
|
505
|
-
suggestedActionBorderColorOnActive
|
|
495
|
+
suggestedActionBorderColorOnActive?: string;
|
|
506
496
|
|
|
507
497
|
/** Suggested action (while `:active`): Border style */
|
|
508
|
-
suggestedActionBorderStyleOnActive
|
|
498
|
+
suggestedActionBorderStyleOnActive?: string;
|
|
509
499
|
|
|
510
500
|
/** Suggested action (while `:active`): Border width */
|
|
511
|
-
suggestedActionBorderWidthOnActive
|
|
501
|
+
suggestedActionBorderWidthOnActive?: number;
|
|
512
502
|
|
|
513
503
|
/** Suggested action (while `:active`): Text color */
|
|
514
|
-
suggestedActionTextColorOnActive
|
|
504
|
+
suggestedActionTextColorOnActive?: string;
|
|
515
505
|
|
|
516
506
|
/** Suggested action (while `:focus`): Background color */
|
|
517
|
-
suggestedActionBackgroundColorOnFocus
|
|
507
|
+
suggestedActionBackgroundColorOnFocus?: string;
|
|
518
508
|
|
|
519
509
|
/** Suggested action (while `:focus`): Border color */
|
|
520
|
-
suggestedActionBorderColorOnFocus
|
|
510
|
+
suggestedActionBorderColorOnFocus?: string;
|
|
521
511
|
|
|
522
512
|
/** Suggested action (while `:focus`): Border style */
|
|
523
|
-
suggestedActionBorderStyleOnFocus
|
|
513
|
+
suggestedActionBorderStyleOnFocus?: string;
|
|
524
514
|
|
|
525
515
|
/** Suggested action (while `:focus`): Border width */
|
|
526
|
-
suggestedActionBorderWidthOnFocus
|
|
516
|
+
suggestedActionBorderWidthOnFocus?: number;
|
|
527
517
|
|
|
528
518
|
/** Suggested action (while `:focus`): Text color */
|
|
529
|
-
suggestedActionTextColorOnFocus
|
|
519
|
+
suggestedActionTextColorOnFocus?: string;
|
|
530
520
|
|
|
531
521
|
/**
|
|
532
522
|
* Suggested action (while `:hover`): Background color
|
|
533
523
|
*
|
|
534
524
|
* @default '#F3F2F1'
|
|
535
525
|
*/
|
|
536
|
-
suggestedActionBackgroundColorOnHover
|
|
526
|
+
suggestedActionBackgroundColorOnHover?: string;
|
|
537
527
|
|
|
538
528
|
/** Suggested action (while `:hover`): Border color */
|
|
539
|
-
suggestedActionBorderColorOnHover
|
|
529
|
+
suggestedActionBorderColorOnHover?: string;
|
|
540
530
|
|
|
541
531
|
/** Suggested action (while `:hover`): Border style */
|
|
542
|
-
suggestedActionBorderStyleOnHover
|
|
532
|
+
suggestedActionBorderStyleOnHover?: string;
|
|
543
533
|
|
|
544
534
|
/** Suggested action (while `:hover`): Border width */
|
|
545
|
-
suggestedActionBorderWidthOnHover
|
|
535
|
+
suggestedActionBorderWidthOnHover?: number;
|
|
546
536
|
|
|
547
537
|
/** Suggested action (while `:hover`): Text color */
|
|
548
|
-
suggestedActionTextColorOnHover
|
|
538
|
+
suggestedActionTextColorOnHover?: string;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Suggested action (while `:disabled`): Background, defaults to suggestedActionBackground.
|
|
542
|
+
*
|
|
543
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
544
|
+
*/
|
|
545
|
+
suggestedActionDisabledBackground?: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Suggested action (while `:disabled`): Border color
|
|
549
|
+
*
|
|
550
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBorderColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
551
|
+
*/
|
|
552
|
+
suggestedActionDisabledBorderColor?: string;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Suggested action (while `:disabled`): Border style
|
|
556
|
+
*
|
|
557
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBorderStyleOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
558
|
+
*/
|
|
559
|
+
suggestedActionDisabledBorderStyle?: string;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Suggested action (while `:disabled`): Border width
|
|
563
|
+
*
|
|
564
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBorderWidthOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
565
|
+
*/
|
|
566
|
+
suggestedActionDisabledBorderWidth?: number;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Suggested action (while `:disabled`): Foreground color, defaults to subtle color
|
|
570
|
+
*
|
|
571
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionTextColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
572
|
+
*/
|
|
573
|
+
suggestedActionDisabledTextColor?: string;
|
|
549
574
|
|
|
550
575
|
/**
|
|
551
576
|
* Suggested action: Height
|
|
552
577
|
*
|
|
553
578
|
* @default 40
|
|
554
579
|
*/
|
|
555
|
-
suggestedActionHeight
|
|
580
|
+
suggestedActionHeight?: number | string;
|
|
556
581
|
|
|
557
582
|
/**
|
|
558
583
|
* Suggested action: Image height
|
|
559
584
|
*
|
|
560
585
|
* @default 20
|
|
561
586
|
*/
|
|
562
|
-
suggestedActionImageHeight
|
|
587
|
+
suggestedActionImageHeight?: number | string;
|
|
563
588
|
|
|
564
589
|
/**
|
|
565
590
|
* Suggested action: Layout type
|
|
566
591
|
*
|
|
567
592
|
* @default 'carousel'
|
|
568
593
|
*/
|
|
569
|
-
suggestedActionLayout
|
|
594
|
+
suggestedActionLayout?: 'carousel' | 'flow' | 'stacked';
|
|
570
595
|
|
|
571
596
|
/**
|
|
572
597
|
* Suggested action (while `:focus-visible`): Keyboard focus indicator border color
|
|
573
598
|
*
|
|
574
599
|
* @default '#605E5C'
|
|
575
600
|
*/
|
|
576
|
-
suggestedActionKeyboardFocusIndicatorBorderColor
|
|
601
|
+
suggestedActionKeyboardFocusIndicatorBorderColor?: string;
|
|
577
602
|
|
|
578
603
|
/**
|
|
579
604
|
* Suggested action (while `:focus-visible`): Keyboard focus indicator border radius
|
|
580
605
|
*
|
|
581
606
|
* @default 0
|
|
582
607
|
*/
|
|
583
|
-
suggestedActionKeyboardFocusIndicatorBorderRadius
|
|
608
|
+
suggestedActionKeyboardFocusIndicatorBorderRadius?: number | string;
|
|
584
609
|
|
|
585
610
|
/**
|
|
586
611
|
* Suggested action (while `:focus-visible`): Keyboard focus indicator border style
|
|
587
612
|
*
|
|
588
613
|
* @default 'solid'
|
|
589
614
|
*/
|
|
590
|
-
suggestedActionKeyboardFocusIndicatorBorderStyle
|
|
615
|
+
suggestedActionKeyboardFocusIndicatorBorderStyle?: string;
|
|
591
616
|
|
|
592
617
|
/**
|
|
593
618
|
* Suggested action (while `:focus-visible`): Keyboard focus indicator border width
|
|
594
619
|
*
|
|
595
620
|
* @default 1
|
|
596
621
|
*/
|
|
597
|
-
suggestedActionKeyboardFocusIndicatorBorderWidth
|
|
622
|
+
suggestedActionKeyboardFocusIndicatorBorderWidth?: number;
|
|
598
623
|
|
|
599
624
|
/**
|
|
600
625
|
* Suggested action (while `:focus-visible`): Keyboard focus indicator inset
|
|
601
626
|
*
|
|
602
627
|
* @default 2
|
|
603
628
|
*/
|
|
604
|
-
suggestedActionKeyboardFocusIndicatorInset
|
|
629
|
+
suggestedActionKeyboardFocusIndicatorInset?: number;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Suggested action (while `:active`): background
|
|
633
|
+
*
|
|
634
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnActive` instead. This option will be removed on or after 2023-09-16.
|
|
635
|
+
*/
|
|
636
|
+
suggestedActionActiveBackground?: string;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Suggested action (while `:focus`): background
|
|
640
|
+
*
|
|
641
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnFocus` instead. This option will be removed on or after 2023-09-16.
|
|
642
|
+
*/
|
|
643
|
+
suggestedActionFocusBackground?: string;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Suggested action (while `:hover`): background
|
|
647
|
+
*
|
|
648
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnHover` instead. This option will be removed on or after 2023-09-16.
|
|
649
|
+
*/
|
|
650
|
+
suggestedActionHoverBackground?: string;
|
|
605
651
|
|
|
606
652
|
/**
|
|
607
653
|
* Suggested actions carousel layout
|
|
@@ -610,23 +656,23 @@ type StrictStyleOptions = {
|
|
|
610
656
|
/**
|
|
611
657
|
* Cursor when mouseover on flipper
|
|
612
658
|
*/
|
|
613
|
-
suggestedActionsCarouselFlipperCursor
|
|
659
|
+
suggestedActionsCarouselFlipperCursor?: string;
|
|
614
660
|
|
|
615
661
|
/**
|
|
616
662
|
* Flipper bounding box size
|
|
617
663
|
*/
|
|
618
|
-
suggestedActionsCarouselFlipperBoxWidth
|
|
664
|
+
suggestedActionsCarouselFlipperBoxWidth?: number;
|
|
619
665
|
|
|
620
666
|
/**
|
|
621
667
|
* Flipper button's visible size
|
|
622
668
|
*/
|
|
623
|
-
suggestedActionsCarouselFlipperSize
|
|
669
|
+
suggestedActionsCarouselFlipperSize?: number;
|
|
624
670
|
|
|
625
671
|
/**
|
|
626
672
|
* Suggested actions flow layout
|
|
627
673
|
* Default value is 'auto',
|
|
628
674
|
*/
|
|
629
|
-
suggestedActionsFlowMaxHeight
|
|
675
|
+
suggestedActionsFlowMaxHeight?: undefined;
|
|
630
676
|
|
|
631
677
|
/**
|
|
632
678
|
* Suggested actions stacked layout
|
|
@@ -635,31 +681,31 @@ type StrictStyleOptions = {
|
|
|
635
681
|
/**
|
|
636
682
|
* Stacked height container's max height. Default value is 'auto'
|
|
637
683
|
*/
|
|
638
|
-
suggestedActionsStackedHeight
|
|
684
|
+
suggestedActionsStackedHeight?: number | 'auto';
|
|
639
685
|
|
|
640
686
|
/**
|
|
641
687
|
* Stacked overflow default value is 'auto'
|
|
642
688
|
*/
|
|
643
|
-
suggestedActionsStackedOverflow
|
|
689
|
+
suggestedActionsStackedOverflow?: 'auto' | 'hidden' | 'scroll' | 'visible';
|
|
644
690
|
|
|
645
691
|
/**
|
|
646
692
|
* Button max height default value is 100% if suggestedActionsStackedLayoutButtonTextWrap is true
|
|
647
693
|
*/
|
|
648
|
-
suggestedActionsStackedLayoutButtonMaxHeight
|
|
694
|
+
suggestedActionsStackedLayoutButtonMaxHeight?: number | string;
|
|
649
695
|
|
|
650
696
|
/**
|
|
651
697
|
* Button Text Wrap, if set to true, will wrap long text in buttons in STACKED mode ONLY
|
|
652
698
|
*/
|
|
653
|
-
suggestedActionsStackedLayoutButtonTextWrap
|
|
699
|
+
suggestedActionsStackedLayoutButtonTextWrap?: boolean;
|
|
654
700
|
|
|
655
701
|
/** Suggested actions: Visual keyboard indicator color for the container. */
|
|
656
|
-
suggestedActionsVisualKeyboardIndicatorColor
|
|
702
|
+
suggestedActionsVisualKeyboardIndicatorColor?: string;
|
|
657
703
|
|
|
658
704
|
/** Suggested actions: Visual keyboard indicator style for the container. */
|
|
659
|
-
suggestedActionsVisualKeyboardIndicatorStyle
|
|
705
|
+
suggestedActionsVisualKeyboardIndicatorStyle?: string;
|
|
660
706
|
|
|
661
707
|
/** Suggested actions: Visual keyboard indicator width for the container. */
|
|
662
|
-
suggestedActionsVisualKeyboardIndicatorWidth
|
|
708
|
+
suggestedActionsVisualKeyboardIndicatorWidth?: number;
|
|
663
709
|
|
|
664
710
|
/**
|
|
665
711
|
* Timestamp
|
|
@@ -672,34 +718,34 @@ type StrictStyleOptions = {
|
|
|
672
718
|
* `false` - never group timestamps
|
|
673
719
|
* `true` - group all timestamps
|
|
674
720
|
*/
|
|
675
|
-
groupTimestamp
|
|
721
|
+
groupTimestamp?: boolean | number;
|
|
676
722
|
|
|
677
|
-
sendTimeout
|
|
678
|
-
sendTimeoutForAttachments
|
|
723
|
+
sendTimeout?: number | ((activity: WebChatActivity) => number);
|
|
724
|
+
sendTimeoutForAttachments?: number;
|
|
679
725
|
|
|
680
726
|
/**
|
|
681
727
|
* Timestamp color default value is subtle
|
|
682
728
|
*/
|
|
683
|
-
timestampColor
|
|
729
|
+
timestampColor?: string;
|
|
684
730
|
|
|
685
|
-
timestampFormat
|
|
731
|
+
timestampFormat?: 'absolute' | 'relative';
|
|
686
732
|
|
|
687
733
|
/**
|
|
688
734
|
* Transcript styling
|
|
689
735
|
*/
|
|
690
736
|
|
|
691
|
-
transcriptTerminatorBackgroundColor
|
|
692
|
-
transcriptTerminatorBorderRadius
|
|
693
|
-
transcriptTerminatorColor
|
|
694
|
-
transcriptTerminatorFontSize
|
|
737
|
+
transcriptTerminatorBackgroundColor?: string;
|
|
738
|
+
transcriptTerminatorBorderRadius?: number | string;
|
|
739
|
+
transcriptTerminatorColor?: string;
|
|
740
|
+
transcriptTerminatorFontSize?: number | string;
|
|
695
741
|
|
|
696
|
-
transcriptActivityVisualKeyboardIndicatorColor
|
|
697
|
-
transcriptActivityVisualKeyboardIndicatorStyle
|
|
698
|
-
transcriptActivityVisualKeyboardIndicatorWidth
|
|
742
|
+
transcriptActivityVisualKeyboardIndicatorColor?: string;
|
|
743
|
+
transcriptActivityVisualKeyboardIndicatorStyle?: string;
|
|
744
|
+
transcriptActivityVisualKeyboardIndicatorWidth?: number | string;
|
|
699
745
|
|
|
700
|
-
transcriptVisualKeyboardIndicatorColor
|
|
701
|
-
transcriptVisualKeyboardIndicatorStyle
|
|
702
|
-
transcriptVisualKeyboardIndicatorWidth
|
|
746
|
+
transcriptVisualKeyboardIndicatorColor?: string;
|
|
747
|
+
transcriptVisualKeyboardIndicatorStyle?: string;
|
|
748
|
+
transcriptVisualKeyboardIndicatorWidth?: number | string;
|
|
703
749
|
|
|
704
750
|
/**
|
|
705
751
|
* Transcript overlay button
|
|
@@ -713,27 +759,35 @@ type StrictStyleOptions = {
|
|
|
713
759
|
* - `"any"` will show when there are any offscreen messages
|
|
714
760
|
* - `false` will always hide the button
|
|
715
761
|
*/
|
|
716
|
-
scrollToEndButtonBehavior
|
|
762
|
+
scrollToEndButtonBehavior?: false | 'any' | 'unread';
|
|
717
763
|
|
|
718
764
|
/** Font size of the new message button. */
|
|
719
|
-
scrollToEndButtonFontSize
|
|
765
|
+
scrollToEndButtonFontSize?: number | string;
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Font size of the new message button.
|
|
769
|
+
*
|
|
770
|
+
* @deprecated Since 4.14.0: Renamed to {@linkcode scrollToEndButtonFontSize}.
|
|
771
|
+
*/
|
|
772
|
+
// TODO: [P4] Will be removed on or after 2023-06-02.
|
|
773
|
+
newMessagesButtonFontSize?: number | string;
|
|
720
774
|
|
|
721
|
-
transcriptOverlayButtonBackground
|
|
722
|
-
transcriptOverlayButtonBackgroundOnDisabled
|
|
723
|
-
transcriptOverlayButtonBackgroundOnFocus
|
|
724
|
-
transcriptOverlayButtonBackgroundOnHover
|
|
725
|
-
transcriptOverlayButtonColor
|
|
726
|
-
transcriptOverlayButtonColorOnDisabled
|
|
775
|
+
transcriptOverlayButtonBackground?: string;
|
|
776
|
+
transcriptOverlayButtonBackgroundOnDisabled?: string;
|
|
777
|
+
transcriptOverlayButtonBackgroundOnFocus?: string;
|
|
778
|
+
transcriptOverlayButtonBackgroundOnHover?: string;
|
|
779
|
+
transcriptOverlayButtonColor?: string;
|
|
780
|
+
transcriptOverlayButtonColorOnDisabled?: string;
|
|
727
781
|
|
|
728
782
|
/**
|
|
729
783
|
* Default value is transcriptOverlayButtonColor
|
|
730
784
|
*/
|
|
731
|
-
transcriptOverlayButtonColorOnFocus
|
|
785
|
+
transcriptOverlayButtonColorOnFocus?: string;
|
|
732
786
|
|
|
733
787
|
/**
|
|
734
788
|
* Default value is transcriptOverlayButtonColor
|
|
735
789
|
*/
|
|
736
|
-
transcriptOverlayButtonColorOnHover
|
|
790
|
+
transcriptOverlayButtonColorOnHover?: string;
|
|
737
791
|
|
|
738
792
|
/**
|
|
739
793
|
* Toast UI
|
|
@@ -742,237 +796,68 @@ type StrictStyleOptions = {
|
|
|
742
796
|
/**
|
|
743
797
|
* New debounce timeout value only affects new notifications.
|
|
744
798
|
*/
|
|
745
|
-
notificationDebounceTimeout
|
|
799
|
+
notificationDebounceTimeout?: number;
|
|
746
800
|
|
|
747
|
-
hideToaster
|
|
748
|
-
toasterHeight
|
|
749
|
-
toasterMaxHeight
|
|
750
|
-
toasterSingularMaxHeight
|
|
751
|
-
toastFontSize
|
|
752
|
-
toastIconWidth
|
|
753
|
-
toastSeparatorColor
|
|
754
|
-
toastTextPadding
|
|
801
|
+
hideToaster?: boolean;
|
|
802
|
+
toasterHeight?: number | string;
|
|
803
|
+
toasterMaxHeight?: number | string;
|
|
804
|
+
toasterSingularMaxHeight?: number | string;
|
|
805
|
+
toastFontSize?: number | string;
|
|
806
|
+
toastIconWidth?: number | string;
|
|
807
|
+
toastSeparatorColor?: string;
|
|
808
|
+
toastTextPadding?: number | string;
|
|
755
809
|
|
|
756
|
-
toastErrorBackgroundColor
|
|
757
|
-
toastErrorColor
|
|
758
|
-
toastInfoBackgroundColor
|
|
759
|
-
toastInfoColor
|
|
760
|
-
toastSuccessBackgroundColor
|
|
761
|
-
toastSuccessColor
|
|
762
|
-
toastWarnBackgroundColor
|
|
763
|
-
toastWarnColor
|
|
810
|
+
toastErrorBackgroundColor?: string;
|
|
811
|
+
toastErrorColor?: string;
|
|
812
|
+
toastInfoBackgroundColor?: string;
|
|
813
|
+
toastInfoColor?: string;
|
|
814
|
+
toastSuccessBackgroundColor?: string;
|
|
815
|
+
toastSuccessColor?: string;
|
|
816
|
+
toastWarnBackgroundColor?: string;
|
|
817
|
+
toastWarnColor?: string;
|
|
764
818
|
|
|
765
819
|
/**
|
|
766
820
|
* Typing animation
|
|
767
821
|
*/
|
|
768
822
|
|
|
769
|
-
typingAnimationBackgroundImage
|
|
770
|
-
typingAnimationDuration
|
|
771
|
-
typingAnimationHeight
|
|
772
|
-
typingAnimationWidth
|
|
823
|
+
typingAnimationBackgroundImage?: string;
|
|
824
|
+
typingAnimationDuration?: number;
|
|
825
|
+
typingAnimationHeight?: number | string;
|
|
826
|
+
typingAnimationWidth?: number | string;
|
|
773
827
|
|
|
774
828
|
/**
|
|
775
829
|
* Upload thumbnail
|
|
776
830
|
*/
|
|
777
831
|
|
|
778
|
-
enableUploadThumbnail
|
|
779
|
-
uploadThumbnailContentType
|
|
780
|
-
uploadThumbnailHeight
|
|
781
|
-
uploadThumbnailQuality
|
|
782
|
-
uploadThumbnailWidth
|
|
832
|
+
enableUploadThumbnail?: boolean;
|
|
833
|
+
uploadThumbnailContentType?: string;
|
|
834
|
+
uploadThumbnailHeight?: number;
|
|
835
|
+
uploadThumbnailQuality?: number;
|
|
836
|
+
uploadThumbnailWidth?: number;
|
|
783
837
|
|
|
784
838
|
/**
|
|
785
839
|
* Video
|
|
786
840
|
*/
|
|
787
841
|
|
|
788
|
-
videoHeight
|
|
842
|
+
videoHeight?: number | string;
|
|
789
843
|
|
|
790
844
|
/**
|
|
791
845
|
* Maximum message length in characters
|
|
792
846
|
*
|
|
793
847
|
* @default 2000
|
|
794
848
|
*/
|
|
795
|
-
maxMessageLength
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* The node to place Web Chat styles into. Needed when using as a Web Component.
|
|
799
|
-
*
|
|
800
|
-
* @default document.head
|
|
801
|
-
*/
|
|
802
|
-
stylesRoot: Node | undefined;
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* Border animation
|
|
806
|
-
*/
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* Border animation 1st color
|
|
810
|
-
*
|
|
811
|
-
* CSS variable: `--webchat__animation--border-color-1` CSS variable to adjust the color
|
|
812
|
-
*
|
|
813
|
-
* New in 4.19.0.
|
|
814
|
-
*/
|
|
815
|
-
borderAnimationColor1: string | undefined;
|
|
816
|
-
/**
|
|
817
|
-
* Border animation 2nd color
|
|
818
|
-
*
|
|
819
|
-
* CSS variable: `--webchat__animation--border-color-2` CSS variable to adjust the color
|
|
820
|
-
*
|
|
821
|
-
* New in 4.19.0.
|
|
822
|
-
*/
|
|
823
|
-
borderAnimationColor2: string | undefined;
|
|
824
|
-
/**
|
|
825
|
-
* Border animation 3rd color
|
|
826
|
-
*
|
|
827
|
-
* CSS variable: `--webchat__animation--border-color-3` CSS variable to adjust the color
|
|
828
|
-
*
|
|
829
|
-
* New in 4.19.0.
|
|
830
|
-
*/
|
|
831
|
-
borderAnimationColor3: string | undefined;
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Code block theme
|
|
835
|
-
*
|
|
836
|
-
* - `'github-light-default'` - use light theme for code blocks
|
|
837
|
-
* - `'github-dark-default'` - use dark theme for code blocks
|
|
838
|
-
*
|
|
839
|
-
* @default 'github-light-default'
|
|
840
|
-
*
|
|
841
|
-
* New in 4.19.0.
|
|
842
|
-
*/
|
|
843
|
-
codeBlockTheme: 'github-light-default' | 'github-dark-default' | undefined;
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* (EXPERIMENTAL) Feedback buttons placement
|
|
847
|
-
*
|
|
848
|
-
* - `'activity-actions'` - place feedback buttons inside activity actions - will show feedback form
|
|
849
|
-
* - `'activity-status'` - place feedback buttons inside activity status
|
|
850
|
-
*
|
|
851
|
-
* @default 'activity-status'
|
|
852
|
-
*
|
|
853
|
-
* @deprecated This is an experimental style options and should not be used without understanding its risk.
|
|
854
|
-
*
|
|
855
|
-
* New in 4.19.0.
|
|
856
|
-
*/
|
|
857
|
-
feedbackActionsPlacement: 'activity-actions' | 'activity-status' | undefined;
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* Use continuous mode for speech recognition. Default to `false`.
|
|
861
|
-
*
|
|
862
|
-
* - `true` to use continuous mode which focuses on a hands-off experience, keeping speech recognition active for extended periods, supporting barge-in, non-speech interactions will not stop speech recognition
|
|
863
|
-
* - `false` to use interactive mode which focuses on privacy, keeping speech recognition active only for the minimal time required, no barge-in, non-speech interactions will stop speech recognition
|
|
864
|
-
*
|
|
865
|
-
* @see https://github.com/microsoft/BotFramework-WebChat/pull/5426
|
|
866
|
-
*/
|
|
867
|
-
speechRecognitionContinuous: boolean | undefined;
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* Whether part groups are open by default.
|
|
871
|
-
*
|
|
872
|
-
* @default true
|
|
873
|
-
*/
|
|
874
|
-
partGroupDefaultOpen: boolean | undefined;
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* Whether references (citation link definitions) are open by default.
|
|
878
|
-
*
|
|
879
|
-
* @default true
|
|
880
|
-
*/
|
|
881
|
-
referenceListDefaultOpen: boolean | undefined;
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* Defines how activities are being grouped by (in the order of appearance in the array). Default to `['sender', 'status', 'part']` or `sender,status` in CSS.
|
|
885
|
-
*
|
|
886
|
-
* Values are key of result of `groupActivitiesMiddleware`. The default implementation of `groupActivitiesMiddleware` has `sender`, `status`, and `part`.
|
|
887
|
-
*
|
|
888
|
-
* To add new groupings, configure `groupActivitiesMiddleware` to output extra groups. Then, add the group names to `styleOptions.groupActivitiesBy`.
|
|
889
|
-
*/
|
|
890
|
-
groupActivitiesBy: readonly string[] | undefined;
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* Send box: maximum number of attachment item to preview as thumbnail before showing as text-only.
|
|
894
|
-
* Send box: maximum height of the attachment bar.
|
|
895
|
-
*
|
|
896
|
-
* @default 114
|
|
897
|
-
*/
|
|
898
|
-
sendBoxAttachmentBarMaxHeight: number | undefined;
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* Send box: maximum number of attachment item to preview as thumbnail before showing as list item.
|
|
902
|
-
*
|
|
903
|
-
* @default 3
|
|
904
|
-
*/
|
|
905
|
-
sendBoxAttachmentBarMaxThumbnail: number | undefined;
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* Indicates if file upload should be disabled.
|
|
909
|
-
*
|
|
910
|
-
* @default false
|
|
911
|
-
*
|
|
912
|
-
* New in 4.19.0.
|
|
913
|
-
*/
|
|
914
|
-
disableFileUpload: boolean | undefined;
|
|
915
|
-
/**
|
|
916
|
-
* Controls microphone button visibility in Fluent theme send box.
|
|
917
|
-
*
|
|
918
|
-
* - `'auto'` - Show microphone button if the chat adapter supports voice (has voiceConfiguration capability)
|
|
919
|
-
* - `'hide'` - Do not show microphone button regardless of adapter capabilities
|
|
920
|
-
*
|
|
921
|
-
* @default 'auto'
|
|
922
|
-
*/
|
|
923
|
-
showMicrophoneButton: 'auto' | 'hide' | undefined;
|
|
849
|
+
maxMessageLength?: number;
|
|
924
850
|
};
|
|
925
851
|
|
|
926
852
|
// StrictStyleOptions is only used internally in Web Chat and for simplifying our code:
|
|
927
853
|
// 1. Allow developers to set the "bubbleNubOffset" option as "top" (string), but when we normalize them, we will convert it to 0 (number);
|
|
928
854
|
// 2. Renamed/deprecated options, only the newer option will be kept, the older option will be dropped.
|
|
929
855
|
// Internally, no code should use the deprecated value except the migration code.
|
|
930
|
-
type
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
* @deprecated Use `bubbleImageMaxHeight` and `bubbleImageMinHeight` instead. To mimick behavior before deprecation, set both options to 240px.
|
|
935
|
-
*/
|
|
936
|
-
bubbleImageHeight?: number | undefined;
|
|
937
|
-
|
|
938
|
-
/* @deprecated Please use `bubbleAttachmentMaxWidth` and `bubbleMessageMaxWidth` instead. */
|
|
939
|
-
bubbleMaxWidth?: number | undefined;
|
|
940
|
-
/* @deprecated Please use `bubbleAttachmentMaxWidth` and `bubbleMessageMaxWidth` instead. */
|
|
941
|
-
bubbleMinWidth?: number | undefined;
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* Indicates if the upload file button should be hidden.
|
|
945
|
-
*
|
|
946
|
-
* @default false
|
|
947
|
-
*
|
|
948
|
-
* @deprecated deprecated since 4.18.0: obsolated by {@linkcode disableFileUpload}. This option will be removed on or after 2027-07-14.
|
|
949
|
-
*/
|
|
950
|
-
hideUploadButton?: boolean | undefined;
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* Nub offset 'bottom' will render nub at the bottom
|
|
954
|
-
* A positive or negative number will shift nub offset up/down
|
|
955
|
-
* "top" is equivalent to positive zero.
|
|
956
|
-
* "bottom" is equivalent to negative zero.
|
|
957
|
-
*/
|
|
958
|
-
bubbleFromUserNubOffset?: number | 'bottom' | 'top' | undefined;
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Nub offset ''bottom' will render nub at the bottom
|
|
962
|
-
* A positive or negative number will shift nub offset up/down
|
|
963
|
-
* "top" is equivalent to positive zero.
|
|
964
|
-
* "bottom" is equivalent to negative zero.
|
|
965
|
-
*/
|
|
966
|
-
bubbleNubOffset?: number | 'bottom' | 'top' | undefined;
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* Emoji styling
|
|
970
|
-
* If true, Web Chat's default set of emoji will be enabled. See patchStyleOptions.js for default list.
|
|
971
|
-
* A custom object will enable unicode emoji specified by the developer.
|
|
972
|
-
* key: emoticon
|
|
973
|
-
* value: unicode emoji
|
|
974
|
-
*/
|
|
975
|
-
emojiSet?: boolean | Record<string, string> | undefined;
|
|
856
|
+
type StrictStyleOptions = Required<Omit<StyleOptions, 'hideScrollToEndButton' | 'newMessagesButtonFontSize'>> & {
|
|
857
|
+
bubbleFromUserNubOffset: number;
|
|
858
|
+
bubbleNubOffset: number;
|
|
859
|
+
emojiSet: false | Record<string, string>;
|
|
976
860
|
};
|
|
977
861
|
|
|
978
|
-
export
|
|
862
|
+
export default StyleOptions;
|
|
863
|
+
export { StrictStyleOptions };
|