botframework-webchat-api 4.18.0 → 4.18.1-hotfix.20260127.b53acdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/decorator.js +1 -1
- package/dist/botframework-webchat-api.d.mts +196 -48
- package/dist/botframework-webchat-api.d.ts +1612 -0
- package/dist/botframework-webchat-api.decorator.d.mts +24 -30
- package/dist/botframework-webchat-api.decorator.d.ts +30 -0
- package/dist/botframework-webchat-api.decorator.js +3 -0
- package/dist/botframework-webchat-api.decorator.js.map +1 -0
- package/dist/botframework-webchat-api.decorator.mjs +1 -1
- package/dist/botframework-webchat-api.decorator.mjs.map +1 -1
- package/dist/botframework-webchat-api.internal.d.mts +18 -1
- package/dist/botframework-webchat-api.internal.d.ts +20 -0
- package/dist/botframework-webchat-api.internal.js +3 -0
- package/dist/botframework-webchat-api.internal.js.map +1 -0
- package/dist/botframework-webchat-api.internal.mjs +1 -1
- package/dist/botframework-webchat-api.internal.mjs.map +1 -1
- package/dist/botframework-webchat-api.js +3 -0
- package/dist/botframework-webchat-api.js.map +1 -0
- package/dist/botframework-webchat-api.mjs +1 -139
- package/dist/botframework-webchat-api.mjs.map +1 -1
- package/dist/chunk-2HABAU7C.mjs +3 -0
- package/dist/chunk-2HABAU7C.mjs.LEGAL.txt +0 -0
- package/dist/chunk-2HABAU7C.mjs.map +1 -0
- package/dist/chunk-45Z2ZE4M.js +3 -0
- package/dist/chunk-45Z2ZE4M.js.LEGAL.txt +0 -0
- package/dist/chunk-45Z2ZE4M.js.map +1 -0
- package/dist/chunk-7K3OK5TS.mjs +3 -0
- package/dist/chunk-7K3OK5TS.mjs.LEGAL.txt +0 -0
- package/dist/chunk-7K3OK5TS.mjs.map +1 -0
- package/dist/chunk-LXPINC7N.js +3 -0
- package/dist/chunk-LXPINC7N.js.LEGAL.txt +0 -0
- package/dist/chunk-LXPINC7N.js.map +1 -0
- package/dist/chunk-PRWGXTDA.mjs +3 -0
- package/dist/chunk-PRWGXTDA.mjs.LEGAL.txt +0 -0
- package/dist/chunk-PRWGXTDA.mjs.map +1 -0
- package/dist/chunk-WH7VSYKK.js +3 -0
- package/dist/chunk-WH7VSYKK.js.LEGAL.txt +0 -0
- package/dist/chunk-WH7VSYKK.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/dist/types-BXPldIKA.d.mts +86 -0
- package/dist/types-BXPldIKA.d.ts +86 -0
- package/internal.js +1 -1
- package/package.json +59 -71
- package/src/StyleOptions.ts +123 -4
- package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +48 -0
- package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +51 -0
- package/src/decorator/ActivityBorder/types.ts +1 -0
- package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +31 -0
- package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +38 -0
- package/src/decorator/ActivityGrouping/types.ts +1 -0
- package/src/decorator/DecoratorComposer.tsx +22 -0
- package/src/decorator/internal/InternalDecoratorComposer.tsx +61 -0
- package/src/decorator/internal/LowPriorityDecoratorComposer.tsx +19 -0
- package/src/decorator/private/DecoratorComposerContext.ts +16 -0
- package/src/decorator/private/PassthroughFallback.tsx +12 -0
- package/src/decorator/private/templateMiddleware.test.tsx +5 -1
- package/src/decorator/private/templateMiddleware.ts +11 -9
- package/src/decorator/types.ts +15 -0
- package/src/decorator.ts +16 -0
- package/src/defaultStyleOptions.ts +26 -5
- package/src/hooks/Composer.tsx +59 -45
- package/src/hooks/index.ts +5 -1
- package/src/hooks/internal/SendBoxMiddleware.ts +3 -1
- package/src/hooks/internal/SendBoxToolbarMiddleware.ts +3 -1
- package/src/hooks/internal/Tracker.ts +1 -1
- package/src/hooks/internal/WebChatAPIContext.ts +12 -5
- package/src/hooks/middleware/concatMiddleware.spec.js +20 -0
- package/src/hooks/middleware/concatMiddleware.ts +6 -5
- package/src/hooks/private/reduceIterable.spec.ts +0 -2
- package/src/hooks/useActiveTyping.ts +3 -2
- package/src/hooks/useDisabled.ts +8 -2
- package/src/hooks/useSuggestedActions.ts +17 -4
- package/src/hooks/useUIState.ts +18 -0
- package/src/hooks/validation/uiState.parseUIState.spec.ts +21 -0
- package/src/hooks/validation/uiState.ts +10 -0
- package/src/internal.ts +3 -1
- package/src/localization/ar-SA.json +20 -16
- package/src/localization/bg-BG.json +20 -16
- package/src/localization/ca-ES.json +20 -16
- package/src/localization/cs-CZ.json +20 -16
- package/src/localization/da-DK.json +20 -16
- package/src/localization/de-DE.json +20 -16
- package/src/localization/el-GR.json +20 -16
- package/src/localization/en-US.json +21 -19
- package/src/localization/es-ES.json +20 -16
- package/src/localization/et-EE.json +20 -16
- package/src/localization/eu-ES.json +20 -16
- package/src/localization/fi-FI.json +20 -16
- package/src/localization/fr-FR.json +20 -16
- package/src/localization/gl-ES.json +20 -16
- package/src/localization/he-IL.json +20 -16
- package/src/localization/hi-IN.json +20 -16
- package/src/localization/hr-HR.json +20 -16
- package/src/localization/hu-HU.json +20 -16
- package/src/localization/id-ID.json +20 -16
- package/src/localization/it-IT.json +20 -16
- package/src/localization/ja-JP.json +20 -16
- package/src/localization/kk-KZ.json +20 -16
- package/src/localization/ko-KR.json +20 -16
- package/src/localization/lt-LT.json +20 -16
- package/src/localization/lv-LV.json +20 -16
- package/src/localization/ms-MY.json +20 -16
- package/src/localization/nb-NO.json +20 -16
- package/src/localization/nl-NL.json +20 -16
- package/src/localization/pl-PL.json +20 -16
- package/src/localization/pt-BR.json +20 -16
- package/src/localization/pt-PT.json +20 -16
- package/src/localization/ro-RO.json +20 -16
- package/src/localization/ru-RU.json +20 -16
- package/src/localization/sk-SK.json +20 -16
- package/src/localization/sl-SI.json +20 -16
- package/src/localization/sr-Cyrl-CS.json +20 -16
- package/src/localization/sr-Latn-CS.json +20 -16
- package/src/localization/sv-SE.json +20 -16
- package/src/localization/th-TH.json +20 -16
- package/src/localization/tr-TR.json +20 -16
- package/src/localization/uk-UA.json +20 -16
- package/src/localization/vi-VN.json +20 -16
- package/src/localization/yue.json +1 -16
- package/src/localization/zh-CN.json +22 -18
- package/src/localization/zh-HK.json +20 -16
- package/src/localization/zh-TW.json +20 -16
- package/src/normalizeStyleOptions.ts +45 -0
- package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +9 -26
- package/src/providers/ActivityKeyer/private/someIterable.spec.ts +0 -2
- package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +2 -2
- package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +144 -59
- package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +231 -0
- package/src/providers/ActivityTyping/private/useReduceActivities.ts +48 -0
- package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +115 -0
- package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +23 -0
- package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +93 -0
- package/src/providers/GroupActivities/private/isGroupingValid.ts +41 -0
- package/src/providers/GroupActivities/private/useGroupActivitiesContext.ts +6 -0
- package/src/providers/GroupActivities/useGroupActivities.ts +20 -0
- package/src/providers/GroupActivities/useGroupActivitiesByName.ts +17 -0
- package/src/tsconfig.json +1 -5
- package/src/types/AttachmentForScreenReaderMiddleware.ts +9 -2
- package/src/types/AvatarMiddleware.ts +5 -1
- package/src/types/CardActionMiddleware.ts +2 -0
- package/src/types/ComponentMiddleware.ts +1 -1
- package/src/types/GroupActivitiesMiddleware.ts +7 -11
- package/src/utils/validateProps.spec.ts +74 -0
- package/src/utils/validateProps.ts +56 -0
- package/dist/chunk-2S76JUVM.mjs +0 -3
- package/dist/chunk-2S76JUVM.mjs.map +0 -1
- package/dist/chunk-J6D5YEY6.mjs +0 -3
- package/dist/chunk-J6D5YEY6.mjs.map +0 -1
- package/dist/chunk-ZAMHKQQC.mjs +0 -3
- package/dist/chunk-ZAMHKQQC.mjs.map +0 -1
- package/lib/StyleOptions.d.ts +0 -697
- package/lib/StyleOptions.d.ts.map +0 -1
- package/lib/StyleOptions.js +0 -2
- package/lib/decorator/index.d.ts +0 -5
- package/lib/decorator/index.d.ts.map +0 -1
- package/lib/decorator/index.js +0 -28
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts +0 -27
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts.map +0 -1
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.js +0 -19
- package/lib/decorator/private/ActivityDecorator.d.ts +0 -9
- package/lib/decorator/private/ActivityDecorator.d.ts.map +0 -1
- package/lib/decorator/private/ActivityDecorator.js +0 -36
- package/lib/decorator/private/DecoratorComposer.d.ts +0 -3
- package/lib/decorator/private/DecoratorComposer.d.ts.map +0 -1
- package/lib/decorator/private/DecoratorComposer.js +0 -13
- package/lib/decorator/private/activityDecoratorRequest.d.ts +0 -6
- package/lib/decorator/private/activityDecoratorRequest.d.ts.map +0 -1
- package/lib/decorator/private/activityDecoratorRequest.js +0 -2
- package/lib/decorator/private/createDecoratorComposer.d.ts +0 -11
- package/lib/decorator/private/createDecoratorComposer.d.ts.map +0 -1
- package/lib/decorator/private/createDecoratorComposer.js +0 -27
- package/lib/decorator/private/templateMiddleware.d.ts +0 -30
- package/lib/decorator/private/templateMiddleware.d.ts.map +0 -1
- package/lib/decorator/private/templateMiddleware.js +0 -53
- package/lib/decorator/private/templateMiddleware.test.d.ts +0 -3
- package/lib/decorator/private/templateMiddleware.test.d.ts.map +0 -1
- package/lib/defaultStyleOptions.d.ts +0 -4
- package/lib/defaultStyleOptions.d.ts.map +0 -1
- package/lib/defaultStyleOptions.js +0 -277
- package/lib/external/PrecompiledGlobalize.js +0 -6361
- package/lib/hooks/Composer.d.ts +0 -88
- package/lib/hooks/Composer.d.ts.map +0 -1
- package/lib/hooks/Composer.js +0 -605
- package/lib/hooks/index.d.ts +0 -73
- package/lib/hooks/index.d.ts.map +0 -1
- package/lib/hooks/index.js +0 -504
- package/lib/hooks/internal/ErrorBox.js +0 -47
- package/lib/hooks/internal/SendBoxMiddleware.d.ts +0 -37
- package/lib/hooks/internal/SendBoxMiddleware.d.ts.map +0 -1
- package/lib/hooks/internal/SendBoxMiddleware.js +0 -17
- package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts +0 -37
- package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts.map +0 -1
- package/lib/hooks/internal/SendBoxToolbarMiddleware.js +0 -17
- package/lib/hooks/internal/Tracker.d.ts +0 -4
- package/lib/hooks/internal/Tracker.d.ts.map +0 -1
- package/lib/hooks/internal/Tracker.js +0 -15
- package/lib/hooks/internal/WebChatAPIContext.d.ts +0 -80
- package/lib/hooks/internal/WebChatAPIContext.d.ts.map +0 -1
- package/lib/hooks/internal/WebChatAPIContext.js +0 -12
- package/lib/hooks/internal/WebChatReduxContext.js +0 -17
- package/lib/hooks/internal/defaultSelectVoice.js +0 -28
- package/lib/hooks/internal/private/templateMiddleware.d.ts +0 -3
- package/lib/hooks/internal/private/templateMiddleware.d.ts.map +0 -1
- package/lib/hooks/internal/private/templateMiddleware.js +0 -12
- package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts +0 -4
- package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts.map +0 -1
- package/lib/hooks/internal/useCreateActivityRendererInternal.js +0 -37
- package/lib/hooks/internal/useDebugDeps.js +0 -39
- package/lib/hooks/internal/useDirFromProps.js +0 -12
- package/lib/hooks/internal/useErrorBoxClass.js +0 -14
- package/lib/hooks/internal/useForceRender.js +0 -24
- package/lib/hooks/internal/useLocalizedGlobalize.js +0 -12
- package/lib/hooks/internal/useLocalizedStrings.js +0 -14
- package/lib/hooks/internal/useMarkActivity.js +0 -12
- package/lib/hooks/internal/usePrevious.d.ts +0 -3
- package/lib/hooks/internal/usePrevious.d.ts.map +0 -1
- package/lib/hooks/internal/usePrevious.js +0 -15
- package/lib/hooks/internal/useReadTelemetryDimensions.js +0 -20
- package/lib/hooks/internal/useSetDictateState.d.ts +0 -2
- package/lib/hooks/internal/useSetDictateState.d.ts.map +0 -1
- package/lib/hooks/internal/useSetDictateState.js +0 -12
- package/lib/hooks/internal/useTimer.d.ts +0 -5
- package/lib/hooks/internal/useTimer.d.ts.map +0 -1
- package/lib/hooks/internal/useTimer.js +0 -43
- package/lib/hooks/internal/useTracker.js +0 -42
- package/lib/hooks/internal/useValueRef.d.ts +0 -3
- package/lib/hooks/internal/useValueRef.d.ts.map +0 -1
- package/lib/hooks/internal/useValueRef.js +0 -22
- package/lib/hooks/internal/useWebChatAPIContext.d.ts +0 -83
- package/lib/hooks/internal/useWebChatAPIContext.d.ts.map +0 -1
- package/lib/hooks/internal/useWebChatAPIContext.js +0 -17
- package/lib/hooks/middleware/UserlandBoundary.js +0 -48
- package/lib/hooks/middleware/applyMiddleware.js +0 -122
- package/lib/hooks/middleware/concatMiddleware.d.ts +0 -6
- package/lib/hooks/middleware/concatMiddleware.d.ts.map +0 -1
- package/lib/hooks/middleware/concatMiddleware.js +0 -33
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts +0 -3
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts.map +0 -1
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.js +0 -43
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts +0 -7
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts.map +0 -1
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.js +0 -68
- package/lib/hooks/private/numberWithInfinity.d.ts +0 -3
- package/lib/hooks/private/numberWithInfinity.d.ts.map +0 -1
- package/lib/hooks/private/numberWithInfinity.js +0 -17
- package/lib/hooks/private/numberWithInfinity.spec.d.ts +0 -2
- package/lib/hooks/private/numberWithInfinity.spec.d.ts.map +0 -1
- package/lib/hooks/private/reduceIterable.d.ts +0 -2
- package/lib/hooks/private/reduceIterable.d.ts.map +0 -1
- package/lib/hooks/private/reduceIterable.js +0 -26
- package/lib/hooks/private/reduceIterable.spec.d.ts +0 -2
- package/lib/hooks/private/reduceIterable.spec.d.ts.map +0 -1
- package/lib/hooks/useActiveTyping.d.ts +0 -4
- package/lib/hooks/useActiveTyping.d.ts.map +0 -1
- package/lib/hooks/useActiveTyping.js +0 -81
- package/lib/hooks/useActivities.d.ts +0 -3
- package/lib/hooks/useActivities.d.ts.map +0 -1
- package/lib/hooks/useActivities.js +0 -14
- package/lib/hooks/useActivityKeys.d.ts +0 -3
- package/lib/hooks/useActivityKeys.d.ts.map +0 -1
- package/lib/hooks/useActivityKeys.js +0 -11
- package/lib/hooks/useActivityKeysByRead.d.ts +0 -3
- package/lib/hooks/useActivityKeysByRead.d.ts.map +0 -1
- package/lib/hooks/useActivityKeysByRead.js +0 -11
- package/lib/hooks/useAvatarForBot.d.ts +0 -5
- package/lib/hooks/useAvatarForBot.d.ts.map +0 -1
- package/lib/hooks/useAvatarForBot.js +0 -26
- package/lib/hooks/useAvatarForUser.d.ts +0 -5
- package/lib/hooks/useAvatarForUser.d.ts.map +0 -1
- package/lib/hooks/useAvatarForUser.js +0 -26
- package/lib/hooks/useByteFormatter.d.ts +0 -2
- package/lib/hooks/useByteFormatter.d.ts.map +0 -1
- package/lib/hooks/useByteFormatter.js +0 -43
- package/lib/hooks/useConnectivityStatus.d.ts +0 -2
- package/lib/hooks/useConnectivityStatus.d.ts.map +0 -1
- package/lib/hooks/useConnectivityStatus.js +0 -14
- package/lib/hooks/useCreateActivityRenderer.d.ts +0 -3
- package/lib/hooks/useCreateActivityRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateActivityRenderer.js +0 -14
- package/lib/hooks/useCreateActivityStatusRenderer.d.ts +0 -10
- package/lib/hooks/useCreateActivityStatusRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateActivityStatusRenderer.js +0 -72
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts +0 -3
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.js +0 -12
- package/lib/hooks/useCreateAvatarRenderer.d.ts +0 -6
- package/lib/hooks/useCreateAvatarRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateAvatarRenderer.js +0 -44
- package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts +0 -3
- package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateScrollToEndButtonRenderer.js +0 -12
- package/lib/hooks/useDateFormatter.d.ts +0 -2
- package/lib/hooks/useDateFormatter.d.ts.map +0 -1
- package/lib/hooks/useDateFormatter.js +0 -35
- package/lib/hooks/useDebouncedNotifications.d.ts +0 -13
- package/lib/hooks/useDebouncedNotifications.d.ts.map +0 -1
- package/lib/hooks/useDebouncedNotifications.js +0 -118
- package/lib/hooks/useDictateInterims.d.ts +0 -2
- package/lib/hooks/useDictateInterims.d.ts.map +0 -1
- package/lib/hooks/useDictateInterims.js +0 -16
- package/lib/hooks/useDictateState.d.ts +0 -2
- package/lib/hooks/useDictateState.d.ts.map +0 -1
- package/lib/hooks/useDictateState.js +0 -15
- package/lib/hooks/useDirection.d.ts +0 -2
- package/lib/hooks/useDirection.d.ts.map +0 -1
- package/lib/hooks/useDirection.js +0 -38
- package/lib/hooks/useDisabled.d.ts +0 -2
- package/lib/hooks/useDisabled.d.ts.map +0 -1
- package/lib/hooks/useDisabled.js +0 -12
- package/lib/hooks/useDismissNotification.d.ts +0 -2
- package/lib/hooks/useDismissNotification.d.ts.map +0 -1
- package/lib/hooks/useDismissNotification.js +0 -12
- package/lib/hooks/useEmitTypingIndicator.d.ts +0 -2
- package/lib/hooks/useEmitTypingIndicator.d.ts.map +0 -1
- package/lib/hooks/useEmitTypingIndicator.js +0 -12
- package/lib/hooks/useGetActivitiesByKey.d.ts +0 -3
- package/lib/hooks/useGetActivitiesByKey.d.ts.map +0 -1
- package/lib/hooks/useGetActivitiesByKey.js +0 -11
- package/lib/hooks/useGetActivityByKey.d.ts +0 -3
- package/lib/hooks/useGetActivityByKey.d.ts.map +0 -1
- package/lib/hooks/useGetActivityByKey.js +0 -11
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts +0 -3
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.js +0 -11
- package/lib/hooks/useGetKeyByActivity.d.ts +0 -3
- package/lib/hooks/useGetKeyByActivity.d.ts.map +0 -1
- package/lib/hooks/useGetKeyByActivity.js +0 -11
- package/lib/hooks/useGetKeyByActivityId.d.ts +0 -3
- package/lib/hooks/useGetKeyByActivityId.d.ts.map +0 -1
- package/lib/hooks/useGetKeyByActivityId.js +0 -11
- package/lib/hooks/useGetSendTimeoutForActivity.d.ts +0 -5
- package/lib/hooks/useGetSendTimeoutForActivity.d.ts.map +0 -1
- package/lib/hooks/useGetSendTimeoutForActivity.js +0 -33
- package/lib/hooks/useGrammars.d.ts +0 -2
- package/lib/hooks/useGrammars.d.ts.map +0 -1
- package/lib/hooks/useGrammars.js +0 -12
- package/lib/hooks/useGroupActivities.d.ts +0 -8
- package/lib/hooks/useGroupActivities.d.ts.map +0 -1
- package/lib/hooks/useGroupActivities.js +0 -12
- package/lib/hooks/useGroupTimestamp.d.ts +0 -2
- package/lib/hooks/useGroupTimestamp.d.ts.map +0 -1
- package/lib/hooks/useGroupTimestamp.js +0 -21
- package/lib/hooks/useLanguage.d.ts +0 -2
- package/lib/hooks/useLanguage.d.ts.map +0 -1
- package/lib/hooks/useLanguage.js +0 -19
- package/lib/hooks/useLastAcknowledgedActivityKey.d.ts +0 -3
- package/lib/hooks/useLastAcknowledgedActivityKey.d.ts.map +0 -1
- package/lib/hooks/useLastAcknowledgedActivityKey.js +0 -11
- package/lib/hooks/useLastReadActivityKey.d.ts +0 -3
- package/lib/hooks/useLastReadActivityKey.d.ts.map +0 -1
- package/lib/hooks/useLastReadActivityKey.js +0 -11
- package/lib/hooks/useLocalizer.d.ts +0 -13
- package/lib/hooks/useLocalizer.d.ts.map +0 -1
- package/lib/hooks/useLocalizer.js +0 -75
- package/lib/hooks/useMarkActivityAsSpoken.d.ts +0 -3
- package/lib/hooks/useMarkActivityAsSpoken.d.ts.map +0 -1
- package/lib/hooks/useMarkActivityAsSpoken.js +0 -16
- package/lib/hooks/useMarkActivityKeyAsRead.d.ts +0 -3
- package/lib/hooks/useMarkActivityKeyAsRead.d.ts.map +0 -1
- package/lib/hooks/useMarkActivityKeyAsRead.js +0 -11
- package/lib/hooks/useMarkAllAsAcknowledged.d.ts +0 -3
- package/lib/hooks/useMarkAllAsAcknowledged.d.ts.map +0 -1
- package/lib/hooks/useMarkAllAsAcknowledged.js +0 -11
- package/lib/hooks/useNotifications.d.ts +0 -3
- package/lib/hooks/useNotifications.d.ts.map +0 -1
- package/lib/hooks/useNotifications.js +0 -14
- package/lib/hooks/usePerformCardAction.d.ts +0 -3
- package/lib/hooks/usePerformCardAction.d.ts.map +0 -1
- package/lib/hooks/usePerformCardAction.js +0 -12
- package/lib/hooks/usePonyfill.d.ts +0 -3
- package/lib/hooks/usePonyfill.d.ts.map +0 -1
- package/lib/hooks/usePonyfill.js +0 -11
- package/lib/hooks/usePostActivity.d.ts +0 -3
- package/lib/hooks/usePostActivity.d.ts.map +0 -1
- package/lib/hooks/usePostActivity.js +0 -12
- package/lib/hooks/useReferenceGrammarID.d.ts +0 -2
- package/lib/hooks/useReferenceGrammarID.d.ts.map +0 -1
- package/lib/hooks/useReferenceGrammarID.js +0 -14
- package/lib/hooks/useRelativeTimeFormatter.d.ts +0 -2
- package/lib/hooks/useRelativeTimeFormatter.d.ts.map +0 -1
- package/lib/hooks/useRelativeTimeFormatter.js +0 -61
- package/lib/hooks/useRenderAttachment.d.ts +0 -3
- package/lib/hooks/useRenderAttachment.d.ts.map +0 -1
- package/lib/hooks/useRenderAttachment.js +0 -14
- package/lib/hooks/useRenderToast.d.ts +0 -3
- package/lib/hooks/useRenderToast.d.ts.map +0 -1
- package/lib/hooks/useRenderToast.js +0 -12
- package/lib/hooks/useRenderTypingIndicator.d.ts +0 -3
- package/lib/hooks/useRenderTypingIndicator.d.ts.map +0 -1
- package/lib/hooks/useRenderTypingIndicator.js +0 -12
- package/lib/hooks/useSendBoxAttachments.d.ts +0 -6
- package/lib/hooks/useSendBoxAttachments.d.ts.map +0 -1
- package/lib/hooks/useSendBoxAttachments.js +0 -23
- package/lib/hooks/useSendBoxValue.d.ts +0 -2
- package/lib/hooks/useSendBoxValue.d.ts.map +0 -1
- package/lib/hooks/useSendBoxValue.js +0 -16
- package/lib/hooks/useSendEvent.d.ts +0 -2
- package/lib/hooks/useSendEvent.d.ts.map +0 -1
- package/lib/hooks/useSendEvent.js +0 -12
- package/lib/hooks/useSendFiles.d.ts +0 -10
- package/lib/hooks/useSendFiles.d.ts.map +0 -1
- package/lib/hooks/useSendFiles.js +0 -35
- package/lib/hooks/useSendMessage.d.ts +0 -6
- package/lib/hooks/useSendMessage.d.ts.map +0 -1
- package/lib/hooks/useSendMessage.js +0 -33
- package/lib/hooks/useSendMessageBack.d.ts +0 -2
- package/lib/hooks/useSendMessageBack.d.ts.map +0 -1
- package/lib/hooks/useSendMessageBack.js +0 -12
- package/lib/hooks/useSendPostBack.d.ts +0 -2
- package/lib/hooks/useSendPostBack.d.ts.map +0 -1
- package/lib/hooks/useSendPostBack.js +0 -12
- package/lib/hooks/useSendStatusByActivityKey.d.ts +0 -22
- package/lib/hooks/useSendStatusByActivityKey.d.ts.map +0 -1
- package/lib/hooks/useSendStatusByActivityKey.js +0 -31
- package/lib/hooks/useSendTimeoutForActivity.d.ts +0 -4
- package/lib/hooks/useSendTimeoutForActivity.d.ts.map +0 -1
- package/lib/hooks/useSendTimeoutForActivity.js +0 -22
- package/lib/hooks/useSendTypingIndicator.d.ts +0 -2
- package/lib/hooks/useSendTypingIndicator.d.ts.map +0 -1
- package/lib/hooks/useSendTypingIndicator.js +0 -14
- package/lib/hooks/useSetNotification.d.ts +0 -3
- package/lib/hooks/useSetNotification.d.ts.map +0 -1
- package/lib/hooks/useSetNotification.js +0 -12
- package/lib/hooks/useShouldSpeakIncomingActivity.d.ts +0 -2
- package/lib/hooks/useShouldSpeakIncomingActivity.d.ts.map +0 -1
- package/lib/hooks/useShouldSpeakIncomingActivity.js +0 -22
- package/lib/hooks/useStartDictate.d.ts +0 -2
- package/lib/hooks/useStartDictate.d.ts.map +0 -1
- package/lib/hooks/useStartDictate.js +0 -12
- package/lib/hooks/useStopDictate.d.ts +0 -2
- package/lib/hooks/useStopDictate.d.ts.map +0 -1
- package/lib/hooks/useStopDictate.js +0 -12
- package/lib/hooks/useStyleOptions.d.ts +0 -3
- package/lib/hooks/useStyleOptions.d.ts.map +0 -1
- package/lib/hooks/useStyleOptions.js +0 -12
- package/lib/hooks/useSubmitSendBox.d.ts +0 -4
- package/lib/hooks/useSubmitSendBox.d.ts.map +0 -1
- package/lib/hooks/useSubmitSendBox.js +0 -49
- package/lib/hooks/useSuggestedActions.d.ts +0 -3
- package/lib/hooks/useSuggestedActions.d.ts.map +0 -1
- package/lib/hooks/useSuggestedActions.js +0 -25
- package/lib/hooks/useTimeoutForSend.d.ts +0 -3
- package/lib/hooks/useTimeoutForSend.d.ts.map +0 -1
- package/lib/hooks/useTimeoutForSend.js +0 -21
- package/lib/hooks/useTrackDimension.d.ts +0 -2
- package/lib/hooks/useTrackDimension.d.ts.map +0 -1
- package/lib/hooks/useTrackDimension.js +0 -14
- package/lib/hooks/useTrackEvent.d.ts +0 -10
- package/lib/hooks/useTrackEvent.d.ts.map +0 -1
- package/lib/hooks/useTrackEvent.js +0 -51
- package/lib/hooks/useTrackException.d.ts +0 -2
- package/lib/hooks/useTrackException.d.ts.map +0 -1
- package/lib/hooks/useTrackException.js +0 -31
- package/lib/hooks/useTrackTiming.d.ts +0 -2
- package/lib/hooks/useTrackTiming.d.ts.map +0 -1
- package/lib/hooks/useTrackTiming.js +0 -93
- package/lib/hooks/useUserID.d.ts +0 -2
- package/lib/hooks/useUserID.d.ts.map +0 -1
- package/lib/hooks/useUserID.js +0 -12
- package/lib/hooks/useUsername.d.ts +0 -2
- package/lib/hooks/useUsername.d.ts.map +0 -1
- package/lib/hooks/useUsername.js +0 -12
- package/lib/hooks/useVoiceSelector.d.ts +0 -2
- package/lib/hooks/useVoiceSelector.d.ts.map +0 -1
- package/lib/hooks/useVoiceSelector.js +0 -16
- package/lib/hooks/utils/ErrorBoundary.js +0 -68
- package/lib/hooks/utils/observableToPromise.d.ts +0 -3
- package/lib/hooks/utils/observableToPromise.d.ts.map +0 -1
- package/lib/hooks/utils/observableToPromise.js +0 -28
- package/lib/index.d.ts +0 -37
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -88
- package/lib/internal.d.ts +0 -3
- package/lib/internal.d.ts.map +0 -1
- package/lib/internal.js +0 -14
- package/lib/localization/Localize.d.ts +0 -4
- package/lib/localization/Localize.d.ts.map +0 -1
- package/lib/localization/Localize.js +0 -50
- package/lib/localization/ar-EG.json +0 -42
- package/lib/localization/ar-JO.json +0 -45
- package/lib/localization/ar-SA.json +0 -112
- package/lib/localization/bg-BG.json +0 -112
- package/lib/localization/ca-ES.json +0 -112
- package/lib/localization/cs-CZ.json +0 -112
- package/lib/localization/da-DK.json +0 -112
- package/lib/localization/de-DE.json +0 -112
- package/lib/localization/el-GR.json +0 -112
- package/lib/localization/en-US.json +0 -183
- package/lib/localization/es-ES.json +0 -112
- package/lib/localization/et-EE.json +0 -112
- package/lib/localization/eu-ES.json +0 -112
- package/lib/localization/fi-FI.json +0 -112
- package/lib/localization/fr-FR.json +0 -112
- package/lib/localization/getAllLocalizedStrings.d.ts +0 -6
- package/lib/localization/getAllLocalizedStrings.d.ts.map +0 -1
- package/lib/localization/getAllLocalizedStrings.js +0 -117
- package/lib/localization/getRTLList.d.ts +0 -2
- package/lib/localization/getRTLList.d.ts.map +0 -1
- package/lib/localization/getRTLList.js +0 -46
- package/lib/localization/gl-ES.json +0 -112
- package/lib/localization/he-IL.json +0 -112
- package/lib/localization/hi-IN.json +0 -112
- package/lib/localization/hr-HR.json +0 -112
- package/lib/localization/hu-HU.json +0 -112
- package/lib/localization/id-ID.json +0 -112
- package/lib/localization/it-IT.json +0 -112
- package/lib/localization/ja-JP.json +0 -112
- package/lib/localization/kk-KZ.json +0 -112
- package/lib/localization/ko-KR.json +0 -112
- package/lib/localization/lt-LT.json +0 -112
- package/lib/localization/lv-LV.json +0 -112
- package/lib/localization/mergeLocalizedStrings.d.ts +0 -7
- package/lib/localization/mergeLocalizedStrings.d.ts.map +0 -1
- package/lib/localization/mergeLocalizedStrings.js +0 -49
- package/lib/localization/ms-MY.json +0 -112
- package/lib/localization/nb-NO.json +0 -112
- package/lib/localization/nl-NL.json +0 -112
- package/lib/localization/overrides.json +0 -257
- package/lib/localization/pl-PL.json +0 -112
- package/lib/localization/pt-BR.json +0 -112
- package/lib/localization/pt-PT.json +0 -112
- package/lib/localization/ro-RO.json +0 -112
- package/lib/localization/ru-RU.json +0 -112
- package/lib/localization/sk-SK.json +0 -112
- package/lib/localization/sl-SI.json +0 -112
- package/lib/localization/sl-SL.json +0 -3
- package/lib/localization/sr-Cyrl-CS.json +0 -112
- package/lib/localization/sr-Cyrl.json +0 -3
- package/lib/localization/sr-Latn-CS.json +0 -112
- package/lib/localization/sr-Latn.json +0 -3
- package/lib/localization/sv-SE.json +0 -112
- package/lib/localization/th-TH.json +0 -112
- package/lib/localization/tr-TR.json +0 -112
- package/lib/localization/uk-UA.json +0 -112
- package/lib/localization/vi-VN.json +0 -112
- package/lib/localization/yue.json +0 -115
- package/lib/localization/zh-CN.json +0 -112
- package/lib/localization/zh-HK.json +0 -112
- package/lib/localization/zh-TW.json +0 -112
- package/lib/normalizeStyleOptions.d.ts +0 -3
- package/lib/normalizeStyleOptions.d.ts.map +0 -1
- package/lib/normalizeStyleOptions.js +0 -147
- package/lib/patchStyleOptionsFromDeprecatedProps.js +0 -21
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts +0 -6
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.js +0 -153
- package/lib/providers/ActivityAcknowledgement/private/Context.d.ts +0 -13
- package/lib/providers/ActivityAcknowledgement/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/private/Context.js +0 -14
- package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts +0 -3
- package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/private/useContext.js +0 -18
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts +0 -5
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.js +0 -15
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.js +0 -12
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts +0 -20
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.js +0 -149
- package/lib/providers/ActivityKeyer/private/Context.d.ts +0 -13
- package/lib/providers/ActivityKeyer/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/Context.js +0 -10
- package/lib/providers/ActivityKeyer/private/getActivityId.d.ts +0 -3
- package/lib/providers/ActivityKeyer/private/getActivityId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/getActivityId.js +0 -10
- package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts +0 -3
- package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/getClientActivityId.js +0 -11
- package/lib/providers/ActivityKeyer/private/lastOf.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/lastOf.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/lastOf.js +0 -10
- package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/someIterable.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/someIterable.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/someIterable.js +0 -27
- package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/uniqueId.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/uniqueId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/uniqueId.js +0 -15
- package/lib/providers/ActivityKeyer/private/useContext.d.ts +0 -3
- package/lib/providers/ActivityKeyer/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/useContext.js +0 -18
- package/lib/providers/ActivityKeyer/useActivityKeys.d.ts +0 -2
- package/lib/providers/ActivityKeyer/useActivityKeys.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useActivityKeys.js +0 -12
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts +0 -3
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.js +0 -12
- package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts +0 -3
- package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetActivityByKey.js +0 -12
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts +0 -3
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.js +0 -12
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts +0 -2
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.js +0 -12
- package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts +0 -7
- package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts.map +0 -1
- package/lib/providers/ActivityListener/ActivityListenerComposer.js +0 -55
- package/lib/providers/ActivityListener/private/Context.d.ts +0 -8
- package/lib/providers/ActivityListener/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityListener/private/Context.js +0 -15
- package/lib/providers/ActivityListener/private/useContext.d.ts +0 -2
- package/lib/providers/ActivityListener/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityListener/private/useContext.js +0 -13
- package/lib/providers/ActivityListener/useUpsertedActivities.d.ts +0 -3
- package/lib/providers/ActivityListener/useUpsertedActivities.d.ts.map +0 -1
- package/lib/providers/ActivityListener/useUpsertedActivities.js +0 -12
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts +0 -4
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.js +0 -149
- package/lib/providers/ActivitySendStatus/private/Context.d.ts +0 -9
- package/lib/providers/ActivitySendStatus/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/private/Context.js +0 -13
- package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts +0 -7
- package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/private/isMapEqual.js +0 -55
- package/lib/providers/ActivitySendStatus/private/useContext.d.ts +0 -3
- package/lib/providers/ActivitySendStatus/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/private/useContext.js +0 -18
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts +0 -22
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.js +0 -31
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts +0 -3
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.js +0 -71
- package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts +0 -9
- package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/ActivityTypingComposer.js +0 -98
- package/lib/providers/ActivityTyping/private/Context.d.ts +0 -8
- package/lib/providers/ActivityTyping/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/private/Context.js +0 -15
- package/lib/providers/ActivityTyping/private/useContext.d.ts +0 -3
- package/lib/providers/ActivityTyping/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/private/useContext.js +0 -13
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts +0 -3
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.js +0 -22
- package/lib/providers/ActivityTyping/types/AllTyping.d.ts +0 -9
- package/lib/providers/ActivityTyping/types/AllTyping.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/types/AllTyping.js +0 -2
- package/lib/providers/ActivityTyping/useAllTyping.d.ts +0 -3
- package/lib/providers/ActivityTyping/useAllTyping.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/useAllTyping.js +0 -12
- package/lib/providers/Ponyfill/PonyfillComposer.d.ts +0 -17
- package/lib/providers/Ponyfill/PonyfillComposer.d.ts.map +0 -1
- package/lib/providers/Ponyfill/PonyfillComposer.js +0 -87
- package/lib/providers/Ponyfill/private/PonyfillContext.d.ts +0 -8
- package/lib/providers/Ponyfill/private/PonyfillContext.d.ts.map +0 -1
- package/lib/providers/Ponyfill/private/PonyfillContext.js +0 -10
- package/lib/providers/Ponyfill/private/useContext.d.ts +0 -6
- package/lib/providers/Ponyfill/private/useContext.d.ts.map +0 -1
- package/lib/providers/Ponyfill/private/useContext.js +0 -17
- package/lib/providers/Ponyfill/usePonyfill.d.ts +0 -3
- package/lib/providers/Ponyfill/usePonyfill.d.ts.map +0 -1
- package/lib/providers/Ponyfill/usePonyfill.js +0 -12
- package/lib/tsconfig.json +0 -18
- package/lib/types/ActivityMiddleware.d.ts +0 -24
- package/lib/types/ActivityMiddleware.d.ts.map +0 -1
- package/lib/types/ActivityMiddleware.js +0 -2
- package/lib/types/ActivityStatusMiddleware.d.ts +0 -17
- package/lib/types/ActivityStatusMiddleware.d.ts.map +0 -1
- package/lib/types/ActivityStatusMiddleware.js +0 -2
- package/lib/types/AttachmentForScreenReaderMiddleware.d.ts +0 -14
- package/lib/types/AttachmentForScreenReaderMiddleware.d.ts.map +0 -1
- package/lib/types/AttachmentForScreenReaderMiddleware.js +0 -2
- package/lib/types/AttachmentMiddleware.d.ts +0 -12
- package/lib/types/AttachmentMiddleware.d.ts.map +0 -1
- package/lib/types/AttachmentMiddleware.js +0 -2
- package/lib/types/AvatarMiddleware.d.ts +0 -15
- package/lib/types/AvatarMiddleware.d.ts.map +0 -1
- package/lib/types/AvatarMiddleware.js +0 -2
- package/lib/types/CardActionMiddleware.d.ts +0 -19
- package/lib/types/CardActionMiddleware.d.ts.map +0 -1
- package/lib/types/CardActionMiddleware.js +0 -2
- package/lib/types/ComponentMiddleware.d.ts +0 -31
- package/lib/types/ComponentMiddleware.d.ts.map +0 -1
- package/lib/types/ComponentMiddleware.js +0 -2
- package/lib/types/ContextOf.d.ts +0 -4
- package/lib/types/ContextOf.d.ts.map +0 -1
- package/lib/types/ContextOf.js +0 -2
- package/lib/types/FunctionMiddleware.d.ts +0 -6
- package/lib/types/FunctionMiddleware.d.ts.map +0 -1
- package/lib/types/FunctionMiddleware.js +0 -2
- package/lib/types/GroupActivitiesMiddleware.d.ts +0 -22
- package/lib/types/GroupActivitiesMiddleware.d.ts.map +0 -1
- package/lib/types/GroupActivitiesMiddleware.js +0 -2
- package/lib/types/LocalizedStrings.d.ts +0 -5
- package/lib/types/LocalizedStrings.d.ts.map +0 -1
- package/lib/types/LocalizedStrings.js +0 -2
- package/lib/types/Notification.d.ts +0 -10
- package/lib/types/Notification.d.ts.map +0 -1
- package/lib/types/Notification.js +0 -2
- package/lib/types/PrecompiledGlobalize.d.ts +0 -13
- package/lib/types/PrecompiledGlobalize.d.ts.map +0 -1
- package/lib/types/PrecompiledGlobalize.js +0 -2
- package/lib/types/ScrollToEndButtonMiddleware.d.ts +0 -30
- package/lib/types/ScrollToEndButtonMiddleware.d.ts.map +0 -1
- package/lib/types/ScrollToEndButtonMiddleware.js +0 -2
- package/lib/types/SendStatus.d.ts +0 -3
- package/lib/types/SendStatus.d.ts.map +0 -1
- package/lib/types/SendStatus.js +0 -2
- package/lib/types/TelemetryMeasurementEvent.d.ts +0 -31
- package/lib/types/TelemetryMeasurementEvent.d.ts.map +0 -1
- package/lib/types/TelemetryMeasurementEvent.js +0 -2
- package/lib/types/ToastMiddleware.d.ts +0 -11
- package/lib/types/ToastMiddleware.d.ts.map +0 -1
- package/lib/types/ToastMiddleware.js +0 -2
- package/lib/types/Typing.d.ts +0 -8
- package/lib/types/Typing.d.ts.map +0 -1
- package/lib/types/Typing.js +0 -2
- package/lib/types/TypingIndicatorMiddleware.d.ts +0 -17
- package/lib/types/TypingIndicatorMiddleware.d.ts.map +0 -1
- package/lib/types/TypingIndicatorMiddleware.js +0 -2
- package/lib/types/WebSpeechPonyfill.d.ts +0 -19
- package/lib/types/WebSpeechPonyfill.d.ts.map +0 -1
- package/lib/types/WebSpeechPonyfill.js +0 -2
- package/lib/types/WebSpeechPonyfillFactory.d.ts +0 -6
- package/lib/types/WebSpeechPonyfillFactory.d.ts.map +0 -1
- package/lib/types/WebSpeechPonyfillFactory.js +0 -2
- package/lib/utils/createCustomEvent.d.ts +0 -4
- package/lib/utils/createCustomEvent.d.ts.map +0 -1
- package/lib/utils/createCustomEvent.js +0 -34
- package/lib/utils/findLastIndex.d.ts +0 -2
- package/lib/utils/findLastIndex.d.ts.map +0 -1
- package/lib/utils/findLastIndex.js +0 -22
- package/lib/utils/findMin.d.ts +0 -7
- package/lib/utils/findMin.d.ts.map +0 -1
- package/lib/utils/findMin.js +0 -46
- package/lib/utils/freezeArray.d.ts +0 -8
- package/lib/utils/freezeArray.d.ts.map +0 -1
- package/lib/utils/freezeArray.js +0 -19
- package/lib/utils/isObject.js +0 -12
- package/lib/utils/mapMap.d.ts +0 -6
- package/lib/utils/mapMap.d.ts.map +0 -1
- package/lib/utils/mapMap.js +0 -27
- package/lib/utils/normalizeLanguage.d.ts +0 -2
- package/lib/utils/normalizeLanguage.d.ts.map +0 -1
- package/lib/utils/normalizeLanguage.js +0 -115
- package/lib/utils/randomId.d.ts +0 -2
- package/lib/utils/randomId.d.ts.map +0 -1
- package/lib/utils/randomId.js +0 -15
- package/lib/utils/warnOnce.d.ts +0 -2
- package/lib/utils/warnOnce.d.ts.map +0 -1
- package/lib/utils/warnOnce.js +0 -16
- package/src/decorator/index.ts +0 -4
- package/src/decorator/private/ActivityBorderDecoratorMiddleware.ts +0 -31
- package/src/decorator/private/ActivityDecorator.tsx +0 -31
- package/src/decorator/private/DecoratorComposer.tsx +0 -6
- package/src/decorator/private/activityDecoratorRequest.ts +0 -6
- package/src/decorator/private/createDecoratorComposer.tsx +0 -36
- package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +0 -75
- package/src/hooks/useGroupActivities.ts +0 -10
- /package/dist/{chunk-2S76JUVM.mjs.LEGAL.txt → botframework-webchat-api.decorator.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-J6D5YEY6.mjs.LEGAL.txt → botframework-webchat-api.internal.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-ZAMHKQQC.mjs.LEGAL.txt → botframework-webchat-api.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,1612 @@
|
|
|
1
|
+
import { WebChatActivity, DirectLineAttachment, DirectLineCardAction, DirectLineJSBotConnection, Observable, sendFiles, sendMessage, setSendBoxAttachments, OneOrMany, GlobalScopePonyfill, SendBoxAttachment } from 'botframework-webchat-core';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import react__default, { ReactNode, ReactElement, Context, ComponentType } from 'react';
|
|
5
|
+
import * as react_chain_of_responsibility from 'react-chain-of-responsibility';
|
|
6
|
+
import { ComponentMiddleware as ComponentMiddleware$1 } from 'react-chain-of-responsibility';
|
|
7
|
+
|
|
8
|
+
type StyleOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* Basic styling
|
|
11
|
+
*/
|
|
12
|
+
/** Web Chat component accent color */
|
|
13
|
+
accent?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Transcript background color
|
|
16
|
+
*/
|
|
17
|
+
backgroundColor?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Secondary component color
|
|
20
|
+
*/
|
|
21
|
+
subtle?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Default padding used in most visual components
|
|
24
|
+
*/
|
|
25
|
+
paddingRegular?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Padding used for suggestedAction buttons
|
|
28
|
+
*/
|
|
29
|
+
paddingWide?: number;
|
|
30
|
+
/**
|
|
31
|
+
Transition for Bubble, Carousel, and StackedLayout
|
|
32
|
+
*/
|
|
33
|
+
transitionDuration?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Fonts
|
|
36
|
+
* Default font size will be inherited from the host app
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* Font size used for secondary components such as sendStatus
|
|
40
|
+
*/
|
|
41
|
+
fontSizeSmall?: number | string;
|
|
42
|
+
/**
|
|
43
|
+
* Font used for ErrorBox
|
|
44
|
+
* comma-space separated string
|
|
45
|
+
*/
|
|
46
|
+
monospaceFont?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Font used in most visual components
|
|
49
|
+
* comma-space separated string
|
|
50
|
+
*/
|
|
51
|
+
primaryFont?: string;
|
|
52
|
+
rootHeight?: number | string;
|
|
53
|
+
rootWidth?: number | string;
|
|
54
|
+
/**
|
|
55
|
+
* "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.
|
|
56
|
+
*/
|
|
57
|
+
rootZIndex?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Avatar styling
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Border radius used for both bot and user avatar
|
|
63
|
+
*/
|
|
64
|
+
avatarBorderRadius?: number | string;
|
|
65
|
+
/**
|
|
66
|
+
* Height and width of avatar
|
|
67
|
+
*/
|
|
68
|
+
avatarSize?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Background color defaults to accent
|
|
71
|
+
*/
|
|
72
|
+
botAvatarBackgroundColor?: string;
|
|
73
|
+
/**
|
|
74
|
+
* URL string. Can be data URI or blob
|
|
75
|
+
* botAvatarInitials must be set to empty string
|
|
76
|
+
*/
|
|
77
|
+
botAvatarImage?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Typically rendered as two letters, e.g. 'WC'
|
|
80
|
+
* Empty string is required when setting botAvatarImage
|
|
81
|
+
*/
|
|
82
|
+
botAvatarInitials?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Background color defaults to accent
|
|
85
|
+
*/
|
|
86
|
+
userAvatarBackgroundColor?: string;
|
|
87
|
+
/**
|
|
88
|
+
* URL string. Can be data URI or blob
|
|
89
|
+
* userAvatarInitials must be set to empty string
|
|
90
|
+
*/
|
|
91
|
+
userAvatarImage?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Typically rendered as two letters, i.e. 'WC'
|
|
94
|
+
* Empty string is required when setting userAvatarImage
|
|
95
|
+
*/
|
|
96
|
+
userAvatarInitials?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Avatar grouping can be set at 3 different levels:
|
|
99
|
+
* Show avatar on activities sharing the same sender ('sender')
|
|
100
|
+
* Show avatar on activities sharing the same status ('status'; default)
|
|
101
|
+
* Show avatar on every activity (true)
|
|
102
|
+
*/
|
|
103
|
+
showAvatarInGroup?: true | 'sender' | 'status';
|
|
104
|
+
/**
|
|
105
|
+
* Bubble styling
|
|
106
|
+
* '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.
|
|
107
|
+
*/
|
|
108
|
+
bubbleBackground?: string;
|
|
109
|
+
bubbleBorderColor?: string;
|
|
110
|
+
bubbleBorderRadius?: number;
|
|
111
|
+
bubbleBorderStyle?: string;
|
|
112
|
+
bubbleBorderWidth?: number;
|
|
113
|
+
bubbleFromUserBackground?: string;
|
|
114
|
+
bubbleFromUserBorderColor?: string;
|
|
115
|
+
bubbleFromUserBorderRadius?: number;
|
|
116
|
+
bubbleFromUserBorderStyle?: string;
|
|
117
|
+
bubbleFromUserBorderWidth?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Nub offset 'bottom' will render nub at the bottom
|
|
120
|
+
* A positive or negative number will shift nub offset up/down
|
|
121
|
+
* "top" is equivalent to positive zero.
|
|
122
|
+
* "bottom" is equivalent to negative zero.
|
|
123
|
+
*/
|
|
124
|
+
bubbleFromUserNubOffset?: number | 'bottom' | 'top';
|
|
125
|
+
/**
|
|
126
|
+
* Nub size 0 will render a sharp corner
|
|
127
|
+
*/
|
|
128
|
+
bubbleFromUserNubSize?: number;
|
|
129
|
+
bubbleFromUserTextColor?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Specifies the fixed height of the bubble for image, default to unset.
|
|
132
|
+
*
|
|
133
|
+
* @deprecated Use `bubbleImageMaxHeight` and `bubbleImageMinHeight` instead. To mimick behavior before deprecation, set both options to 240px.
|
|
134
|
+
*/
|
|
135
|
+
bubbleImageHeight?: number | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies the maximum height of the bubble for image, default to 240px.
|
|
138
|
+
*
|
|
139
|
+
* CSS variable: `--webchat__max-height--image-bubble`.
|
|
140
|
+
*
|
|
141
|
+
* New in 4.18.0.
|
|
142
|
+
*/
|
|
143
|
+
bubbleImageMaxHeight?: number | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies the minimum height of the bubble for image, default to 240px.
|
|
146
|
+
*
|
|
147
|
+
* CSS variable: `--webchat__min-height--image-bubble`.
|
|
148
|
+
*
|
|
149
|
+
* New in 4.18.0.
|
|
150
|
+
*/
|
|
151
|
+
bubbleImageMinHeight?: number | undefined;
|
|
152
|
+
bubbleMaxWidth?: number | undefined;
|
|
153
|
+
bubbleMinWidth?: number | undefined;
|
|
154
|
+
bubbleAttachmentMaxWidth?: number | undefined;
|
|
155
|
+
bubbleAttachmentMinWidth?: number | undefined;
|
|
156
|
+
bubbleMessageMaxWidth?: number | undefined;
|
|
157
|
+
bubbleMessageMinWidth?: number | undefined;
|
|
158
|
+
bubbleMinHeight?: number;
|
|
159
|
+
/**
|
|
160
|
+
* Nub offset ''bottom' will render nub at the bottom
|
|
161
|
+
* A positive or negative number will shift nub offset up/down
|
|
162
|
+
* "top" is equivalent to positive zero.
|
|
163
|
+
* "bottom" is equivalent to negative zero.
|
|
164
|
+
*/
|
|
165
|
+
bubbleNubOffset?: number | 'bottom' | 'top';
|
|
166
|
+
/**
|
|
167
|
+
* Nub size 0 will render a sharp corner
|
|
168
|
+
*/
|
|
169
|
+
bubbleNubSize?: number;
|
|
170
|
+
bubbleTextColor?: string;
|
|
171
|
+
messageActivityWordBreak?: 'normal' | 'break-all' | 'break-word' | 'keep-all';
|
|
172
|
+
/**
|
|
173
|
+
* Connectivity UI styling
|
|
174
|
+
*/
|
|
175
|
+
connectivityIconPadding?: number;
|
|
176
|
+
connectivityMarginLeftRight?: number;
|
|
177
|
+
connectivityMarginTopBottom?: number;
|
|
178
|
+
connectivityTextSize?: number | string;
|
|
179
|
+
failedConnectivity?: number | string;
|
|
180
|
+
slowConnectivity?: string;
|
|
181
|
+
notificationText?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Slow connection status will render after x amount of time with no service response
|
|
184
|
+
*/
|
|
185
|
+
slowConnectionAfter?: number;
|
|
186
|
+
/**
|
|
187
|
+
* Emoji styling
|
|
188
|
+
* If true, Web Chat's default set of emoji will be enabled. See patchStyleOptions.js for default list.
|
|
189
|
+
* A custom object will enable unicode emoji specified by the developer.
|
|
190
|
+
* key: emoticon
|
|
191
|
+
* value: unicode emoji
|
|
192
|
+
*/
|
|
193
|
+
emojiSet?: boolean | Record<string, string>;
|
|
194
|
+
/**
|
|
195
|
+
* Live region - Accessibility
|
|
196
|
+
* 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.
|
|
197
|
+
*/
|
|
198
|
+
internalLiveRegionFadeAfter?: number;
|
|
199
|
+
/**
|
|
200
|
+
* Markdown styling
|
|
201
|
+
* Parse markdown to ensure carriage return is respected
|
|
202
|
+
*/
|
|
203
|
+
markdownRespectCRLF?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Render HTML inside Markdown.
|
|
206
|
+
*
|
|
207
|
+
* `true` to render HTML inside Markdown, otherwise, `false`. Defaults to `true`.
|
|
208
|
+
*
|
|
209
|
+
* New in 4.17: This option is enabled by default.
|
|
210
|
+
*/
|
|
211
|
+
markdownRenderHTML?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Assign new image for anchor links to indicate external
|
|
214
|
+
*/
|
|
215
|
+
markdownExternalLinkIconImage?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Scroll behavior styling
|
|
218
|
+
*/
|
|
219
|
+
/**
|
|
220
|
+
* Prevent scroll to end button from rendering
|
|
221
|
+
*
|
|
222
|
+
* @deprecated Since 4.14.0: To hide the scroll to end button, please set `scrollToEndButtonBehavior` to `false`.
|
|
223
|
+
*/
|
|
224
|
+
hideScrollToEndButton?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Snap to activity to 'snap-point'
|
|
227
|
+
* If true, scrolling will pause after 1 activity is received.
|
|
228
|
+
* Specifying a number will pause after X number of activities
|
|
229
|
+
*/
|
|
230
|
+
autoScrollSnapOnActivity?: boolean | number;
|
|
231
|
+
/**
|
|
232
|
+
* Specify number of pixels to overscroll or underscroll after pause
|
|
233
|
+
*/
|
|
234
|
+
autoScrollSnapOnActivityOffset?: number;
|
|
235
|
+
/**
|
|
236
|
+
* If true, scrolling will pause after activities have filled the page.
|
|
237
|
+
* Specifying a number (0 to 1) will pause after % of page is filled
|
|
238
|
+
*/
|
|
239
|
+
autoScrollSnapOnPage?: boolean | number;
|
|
240
|
+
/**
|
|
241
|
+
* Specify number of pixels to overscroll or underscroll after pause
|
|
242
|
+
*/
|
|
243
|
+
autoScrollSnapOnPageOffset?: number;
|
|
244
|
+
/**
|
|
245
|
+
* Send box styling
|
|
246
|
+
*/
|
|
247
|
+
hideSendBox?: boolean;
|
|
248
|
+
hideUploadButton?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* (EXPERIMENTAL) `true`, if the telephone keypad button should be shown, otherwise, `false`. Defaults to `true`.
|
|
251
|
+
*
|
|
252
|
+
* @deprecated This is an experimental style options and should not be used without understanding its risk.
|
|
253
|
+
*/
|
|
254
|
+
hideTelephoneKeypadButton?: boolean | undefined;
|
|
255
|
+
microphoneButtonColorOnDictate?: string;
|
|
256
|
+
sendBoxBackground?: string;
|
|
257
|
+
/**
|
|
258
|
+
* The comma-delimited file types that the upload button should accept.
|
|
259
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
260
|
+
* @example 'image/*,.pdf'
|
|
261
|
+
*/
|
|
262
|
+
uploadAccept?: string;
|
|
263
|
+
/**
|
|
264
|
+
* If true, the upload button will accept multiple files.
|
|
265
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple
|
|
266
|
+
*/
|
|
267
|
+
uploadMultiple?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* If set to `send` (default), attachment will be sent when the send button is clicked, or when the message is being sent.
|
|
270
|
+
*
|
|
271
|
+
* Otherwise, if set to `attach`, attachment will be sent immediately after file is selected.
|
|
272
|
+
*/
|
|
273
|
+
sendAttachmentOn?: 'attach' | 'send';
|
|
274
|
+
/** Send box button: Icon color, defaults to subtle */
|
|
275
|
+
sendBoxButtonColor?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Send box button: Shade border radius
|
|
278
|
+
*
|
|
279
|
+
* @default 2
|
|
280
|
+
*/
|
|
281
|
+
sendBoxButtonShadeBorderRadius?: number;
|
|
282
|
+
/** Send box button: Shade color */
|
|
283
|
+
sendBoxButtonShadeColor?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Send box button: Shade inset
|
|
286
|
+
*
|
|
287
|
+
* @default 2
|
|
288
|
+
*/
|
|
289
|
+
sendBoxButtonShadeInset?: number;
|
|
290
|
+
/** Send box button (while `:active`): Icon color */
|
|
291
|
+
sendBoxButtonColorOnActive?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Send box button (while `:active`): Shade color
|
|
294
|
+
*
|
|
295
|
+
* @default '#EDEBE9'
|
|
296
|
+
*/
|
|
297
|
+
sendBoxButtonShadeColorOnActive?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Send box button (while `:disabled`): Icon color
|
|
300
|
+
*
|
|
301
|
+
* @default '#A19F9D'
|
|
302
|
+
*/
|
|
303
|
+
sendBoxButtonColorOnDisabled?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Send box button (while `:disabled`): Shade color
|
|
306
|
+
*
|
|
307
|
+
* @default '#F3F2F1'
|
|
308
|
+
*/
|
|
309
|
+
sendBoxButtonShadeColorOnDisabled?: string;
|
|
310
|
+
/** Send box button (while `:focus`): Icon color */
|
|
311
|
+
sendBoxButtonColorOnFocus?: string;
|
|
312
|
+
/** Send box button (while `:focus`): Shade color */
|
|
313
|
+
sendBoxButtonShadeColorOnFocus?: string;
|
|
314
|
+
/** Send box button (while `:hover`): Icon color */
|
|
315
|
+
sendBoxButtonColorOnHover?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Send box button (while `:hover`): Shade color
|
|
318
|
+
*
|
|
319
|
+
* @default '#F3F2F1'
|
|
320
|
+
*/
|
|
321
|
+
sendBoxButtonShadeColorOnHover?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Send box button (while `:focus-visible`): Keyboard focus indicator border color
|
|
324
|
+
*
|
|
325
|
+
* @default '#605E5C'
|
|
326
|
+
*/
|
|
327
|
+
sendBoxButtonKeyboardFocusIndicatorBorderColor?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Send box button (while `:focus-visible`): Keyboard focus indicator border radius
|
|
330
|
+
*
|
|
331
|
+
* @default 0
|
|
332
|
+
*/
|
|
333
|
+
sendBoxButtonKeyboardFocusIndicatorBorderRadius?: number | string;
|
|
334
|
+
/**
|
|
335
|
+
* Send box button (while `:focus-visible`): Keyboard focus indicator border style
|
|
336
|
+
*
|
|
337
|
+
* @default 'solid'
|
|
338
|
+
*/
|
|
339
|
+
sendBoxButtonKeyboardFocusIndicatorBorderStyle?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Send box button (while` :focus-visible`): Keyboard focus indicator border width
|
|
342
|
+
*
|
|
343
|
+
* @default 4
|
|
344
|
+
*/
|
|
345
|
+
sendBoxButtonKeyboardFocusIndicatorBorderWidth?: number;
|
|
346
|
+
/**
|
|
347
|
+
* Send box button (while `:focus-visible`): Keyboard focus indicator inset
|
|
348
|
+
*
|
|
349
|
+
* @default 4
|
|
350
|
+
*/
|
|
351
|
+
sendBoxButtonKeyboardFocusIndicatorInset?: number;
|
|
352
|
+
/**
|
|
353
|
+
* Disabled text color defaults to subtle
|
|
354
|
+
*/
|
|
355
|
+
sendBoxDisabledTextColor?: string;
|
|
356
|
+
sendBoxHeight?: number | string;
|
|
357
|
+
sendBoxMaxHeight?: number | string;
|
|
358
|
+
sendBoxTextColor?: string;
|
|
359
|
+
sendBoxBorderBottom?: number | string;
|
|
360
|
+
sendBoxBorderLeft?: number | string;
|
|
361
|
+
sendBoxBorderRight?: number | string;
|
|
362
|
+
sendBoxBorderTop?: number | string;
|
|
363
|
+
sendBoxPlaceholderColor?: string;
|
|
364
|
+
sendBoxTextWrap?: boolean;
|
|
365
|
+
sendBoxButtonAlignment?: 'bottom' | 'stretch' | 'top';
|
|
366
|
+
/**
|
|
367
|
+
* Show spoken text
|
|
368
|
+
*/
|
|
369
|
+
showSpokenText?: boolean;
|
|
370
|
+
/**
|
|
371
|
+
* Spinner animation styling
|
|
372
|
+
*/
|
|
373
|
+
spinnerAnimationBackgroundImage?: string;
|
|
374
|
+
spinnerAnimationHeight?: number | string;
|
|
375
|
+
spinnerAnimationWidth?: number | string;
|
|
376
|
+
spinnerAnimationPadding?: number | string;
|
|
377
|
+
/**
|
|
378
|
+
* Suggested Actions
|
|
379
|
+
*/
|
|
380
|
+
/**
|
|
381
|
+
* Suggested action: border radius
|
|
382
|
+
*
|
|
383
|
+
* @default 0
|
|
384
|
+
*/
|
|
385
|
+
suggestedActionBorderRadius?: number | string;
|
|
386
|
+
/**
|
|
387
|
+
* Suggested action: Background
|
|
388
|
+
*
|
|
389
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColor` instead. This option will be removed on or after 2023-09-16.
|
|
390
|
+
*/
|
|
391
|
+
suggestedActionBackground?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Suggested action: Background color
|
|
394
|
+
*
|
|
395
|
+
* @default 'White'
|
|
396
|
+
*/
|
|
397
|
+
suggestedActionBackgroundColor?: string;
|
|
398
|
+
/** Suggested action: Border color, defaults to accent color */
|
|
399
|
+
suggestedActionBorderColor?: string;
|
|
400
|
+
/**
|
|
401
|
+
* Suggested action: Border style
|
|
402
|
+
*
|
|
403
|
+
* @default 'solid'
|
|
404
|
+
*/
|
|
405
|
+
suggestedActionBorderStyle?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Suggested action: Border width
|
|
408
|
+
*
|
|
409
|
+
* @default 2
|
|
410
|
+
*/
|
|
411
|
+
suggestedActionBorderWidth?: number;
|
|
412
|
+
/** Suggested action: Text color, defaults to accent color */
|
|
413
|
+
suggestedActionTextColor?: string;
|
|
414
|
+
/** Suggested action (while `:disabled`): Background color, defaults to suggestedActionBackground */
|
|
415
|
+
suggestedActionBackgroundColorOnDisabled?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Suggested action (while `:disabled`): Border color
|
|
418
|
+
*
|
|
419
|
+
* @default '#E6E6E6'
|
|
420
|
+
*/
|
|
421
|
+
suggestedActionBorderColorOnDisabled?: string;
|
|
422
|
+
/** Suggested action (while `:disabled`): Border style */
|
|
423
|
+
suggestedActionBorderStyleOnDisabled?: string;
|
|
424
|
+
/** Suggested action (while `:disabled`): Border width */
|
|
425
|
+
suggestedActionBorderWidthOnDisabled?: number;
|
|
426
|
+
/** Suggested action (while `:disabled`): Foreground color, defaults to subtle color */
|
|
427
|
+
suggestedActionTextColorOnDisabled?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Suggested action (while `:active`): Background color
|
|
430
|
+
*
|
|
431
|
+
* @default '#EDEBE9'
|
|
432
|
+
*/
|
|
433
|
+
suggestedActionBackgroundColorOnActive?: string;
|
|
434
|
+
/** Suggested action (while `:active`): Border color */
|
|
435
|
+
suggestedActionBorderColorOnActive?: string;
|
|
436
|
+
/** Suggested action (while `:active`): Border style */
|
|
437
|
+
suggestedActionBorderStyleOnActive?: string;
|
|
438
|
+
/** Suggested action (while `:active`): Border width */
|
|
439
|
+
suggestedActionBorderWidthOnActive?: number;
|
|
440
|
+
/** Suggested action (while `:active`): Text color */
|
|
441
|
+
suggestedActionTextColorOnActive?: string;
|
|
442
|
+
/** Suggested action (while `:focus`): Background color */
|
|
443
|
+
suggestedActionBackgroundColorOnFocus?: string;
|
|
444
|
+
/** Suggested action (while `:focus`): Border color */
|
|
445
|
+
suggestedActionBorderColorOnFocus?: string;
|
|
446
|
+
/** Suggested action (while `:focus`): Border style */
|
|
447
|
+
suggestedActionBorderStyleOnFocus?: string;
|
|
448
|
+
/** Suggested action (while `:focus`): Border width */
|
|
449
|
+
suggestedActionBorderWidthOnFocus?: number;
|
|
450
|
+
/** Suggested action (while `:focus`): Text color */
|
|
451
|
+
suggestedActionTextColorOnFocus?: string;
|
|
452
|
+
/**
|
|
453
|
+
* Suggested action (while `:hover`): Background color
|
|
454
|
+
*
|
|
455
|
+
* @default '#F3F2F1'
|
|
456
|
+
*/
|
|
457
|
+
suggestedActionBackgroundColorOnHover?: string;
|
|
458
|
+
/** Suggested action (while `:hover`): Border color */
|
|
459
|
+
suggestedActionBorderColorOnHover?: string;
|
|
460
|
+
/** Suggested action (while `:hover`): Border style */
|
|
461
|
+
suggestedActionBorderStyleOnHover?: string;
|
|
462
|
+
/** Suggested action (while `:hover`): Border width */
|
|
463
|
+
suggestedActionBorderWidthOnHover?: number;
|
|
464
|
+
/** Suggested action (while `:hover`): Text color */
|
|
465
|
+
suggestedActionTextColorOnHover?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Suggested action (while `:disabled`): Background, defaults to suggestedActionBackground.
|
|
468
|
+
*
|
|
469
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
470
|
+
*/
|
|
471
|
+
suggestedActionDisabledBackground?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Suggested action (while `:disabled`): Border color
|
|
474
|
+
*
|
|
475
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBorderColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
476
|
+
*/
|
|
477
|
+
suggestedActionDisabledBorderColor?: string;
|
|
478
|
+
/**
|
|
479
|
+
* Suggested action (while `:disabled`): Border style
|
|
480
|
+
*
|
|
481
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBorderStyleOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
482
|
+
*/
|
|
483
|
+
suggestedActionDisabledBorderStyle?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Suggested action (while `:disabled`): Border width
|
|
486
|
+
*
|
|
487
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBorderWidthOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
488
|
+
*/
|
|
489
|
+
suggestedActionDisabledBorderWidth?: number;
|
|
490
|
+
/**
|
|
491
|
+
* Suggested action (while `:disabled`): Foreground color, defaults to subtle color
|
|
492
|
+
*
|
|
493
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionTextColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
494
|
+
*/
|
|
495
|
+
suggestedActionDisabledTextColor?: string;
|
|
496
|
+
/**
|
|
497
|
+
* Suggested action: Height
|
|
498
|
+
*
|
|
499
|
+
* @default 40
|
|
500
|
+
*/
|
|
501
|
+
suggestedActionHeight?: number | string;
|
|
502
|
+
/**
|
|
503
|
+
* Suggested action: Image height
|
|
504
|
+
*
|
|
505
|
+
* @default 20
|
|
506
|
+
*/
|
|
507
|
+
suggestedActionImageHeight?: number | string;
|
|
508
|
+
/**
|
|
509
|
+
* Suggested action: Layout type
|
|
510
|
+
*
|
|
511
|
+
* @default 'carousel'
|
|
512
|
+
*/
|
|
513
|
+
suggestedActionLayout?: 'carousel' | 'flow' | 'stacked';
|
|
514
|
+
/**
|
|
515
|
+
* Suggested action (while `:focus-visible`): Keyboard focus indicator border color
|
|
516
|
+
*
|
|
517
|
+
* @default '#605E5C'
|
|
518
|
+
*/
|
|
519
|
+
suggestedActionKeyboardFocusIndicatorBorderColor?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Suggested action (while `:focus-visible`): Keyboard focus indicator border radius
|
|
522
|
+
*
|
|
523
|
+
* @default 0
|
|
524
|
+
*/
|
|
525
|
+
suggestedActionKeyboardFocusIndicatorBorderRadius?: number | string;
|
|
526
|
+
/**
|
|
527
|
+
* Suggested action (while `:focus-visible`): Keyboard focus indicator border style
|
|
528
|
+
*
|
|
529
|
+
* @default 'solid'
|
|
530
|
+
*/
|
|
531
|
+
suggestedActionKeyboardFocusIndicatorBorderStyle?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Suggested action (while `:focus-visible`): Keyboard focus indicator border width
|
|
534
|
+
*
|
|
535
|
+
* @default 1
|
|
536
|
+
*/
|
|
537
|
+
suggestedActionKeyboardFocusIndicatorBorderWidth?: number;
|
|
538
|
+
/**
|
|
539
|
+
* Suggested action (while `:focus-visible`): Keyboard focus indicator inset
|
|
540
|
+
*
|
|
541
|
+
* @default 2
|
|
542
|
+
*/
|
|
543
|
+
suggestedActionKeyboardFocusIndicatorInset?: number;
|
|
544
|
+
/**
|
|
545
|
+
* Suggested action (while `:active`): background
|
|
546
|
+
*
|
|
547
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnActive` instead. This option will be removed on or after 2023-09-16.
|
|
548
|
+
*/
|
|
549
|
+
suggestedActionActiveBackground?: string;
|
|
550
|
+
/**
|
|
551
|
+
* Suggested action (while `:focus`): background
|
|
552
|
+
*
|
|
553
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnFocus` instead. This option will be removed on or after 2023-09-16.
|
|
554
|
+
*/
|
|
555
|
+
suggestedActionFocusBackground?: string;
|
|
556
|
+
/**
|
|
557
|
+
* Suggested action (while `:hover`): background
|
|
558
|
+
*
|
|
559
|
+
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnHover` instead. This option will be removed on or after 2023-09-16.
|
|
560
|
+
*/
|
|
561
|
+
suggestedActionHoverBackground?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Suggested actions carousel layout
|
|
564
|
+
*/
|
|
565
|
+
/**
|
|
566
|
+
* Cursor when mouseover on flipper
|
|
567
|
+
*/
|
|
568
|
+
suggestedActionsCarouselFlipperCursor?: string;
|
|
569
|
+
/**
|
|
570
|
+
* Flipper bounding box size
|
|
571
|
+
*/
|
|
572
|
+
suggestedActionsCarouselFlipperBoxWidth?: number;
|
|
573
|
+
/**
|
|
574
|
+
* Flipper button's visible size
|
|
575
|
+
*/
|
|
576
|
+
suggestedActionsCarouselFlipperSize?: number;
|
|
577
|
+
/**
|
|
578
|
+
* Suggested actions flow layout
|
|
579
|
+
* Default value is 'auto',
|
|
580
|
+
*/
|
|
581
|
+
suggestedActionsFlowMaxHeight?: undefined;
|
|
582
|
+
/**
|
|
583
|
+
* Suggested actions stacked layout
|
|
584
|
+
*/
|
|
585
|
+
/**
|
|
586
|
+
* Stacked height container's max height. Default value is 'auto'
|
|
587
|
+
*/
|
|
588
|
+
suggestedActionsStackedHeight?: number | 'auto';
|
|
589
|
+
/**
|
|
590
|
+
* Stacked overflow default value is 'auto'
|
|
591
|
+
*/
|
|
592
|
+
suggestedActionsStackedOverflow?: 'auto' | 'hidden' | 'scroll' | 'visible';
|
|
593
|
+
/**
|
|
594
|
+
* Button max height default value is 100% if suggestedActionsStackedLayoutButtonTextWrap is true
|
|
595
|
+
*/
|
|
596
|
+
suggestedActionsStackedLayoutButtonMaxHeight?: number | string;
|
|
597
|
+
/**
|
|
598
|
+
* Button Text Wrap, if set to true, will wrap long text in buttons in STACKED mode ONLY
|
|
599
|
+
*/
|
|
600
|
+
suggestedActionsStackedLayoutButtonTextWrap?: boolean;
|
|
601
|
+
/** Suggested actions: Visual keyboard indicator color for the container. */
|
|
602
|
+
suggestedActionsVisualKeyboardIndicatorColor?: string;
|
|
603
|
+
/** Suggested actions: Visual keyboard indicator style for the container. */
|
|
604
|
+
suggestedActionsVisualKeyboardIndicatorStyle?: string;
|
|
605
|
+
/** Suggested actions: Visual keyboard indicator width for the container. */
|
|
606
|
+
suggestedActionsVisualKeyboardIndicatorWidth?: number;
|
|
607
|
+
/**
|
|
608
|
+
* Timestamp
|
|
609
|
+
*/
|
|
610
|
+
/**
|
|
611
|
+
* Specifies the time window for grouping related timestamps.
|
|
612
|
+
*
|
|
613
|
+
* `number` - time window for grouping related timestamps (in milliseconds)
|
|
614
|
+
* `false` - never group timestamps
|
|
615
|
+
* `true` - group all timestamps
|
|
616
|
+
*/
|
|
617
|
+
groupTimestamp?: boolean | number;
|
|
618
|
+
sendTimeout?: number | ((activity: WebChatActivity) => number);
|
|
619
|
+
sendTimeoutForAttachments?: number;
|
|
620
|
+
/**
|
|
621
|
+
* Timestamp color default value is subtle
|
|
622
|
+
*/
|
|
623
|
+
timestampColor?: string;
|
|
624
|
+
timestampFormat?: 'absolute' | 'relative';
|
|
625
|
+
/**
|
|
626
|
+
* Transcript styling
|
|
627
|
+
*/
|
|
628
|
+
transcriptTerminatorBackgroundColor?: string;
|
|
629
|
+
transcriptTerminatorBorderRadius?: number | string;
|
|
630
|
+
transcriptTerminatorColor?: string;
|
|
631
|
+
transcriptTerminatorFontSize?: number | string;
|
|
632
|
+
transcriptActivityVisualKeyboardIndicatorColor?: string;
|
|
633
|
+
transcriptActivityVisualKeyboardIndicatorStyle?: string;
|
|
634
|
+
transcriptActivityVisualKeyboardIndicatorWidth?: number | string;
|
|
635
|
+
transcriptVisualKeyboardIndicatorColor?: string;
|
|
636
|
+
transcriptVisualKeyboardIndicatorStyle?: string;
|
|
637
|
+
transcriptVisualKeyboardIndicatorWidth?: number | string;
|
|
638
|
+
/**
|
|
639
|
+
* Transcript overlay button
|
|
640
|
+
* e.g. carousel and suggested action flippers, scroll to bottom, etc.
|
|
641
|
+
*/
|
|
642
|
+
/**
|
|
643
|
+
* Controls when the new messages button should show.
|
|
644
|
+
*
|
|
645
|
+
* - `"unread"` will show when there are any unread and offscreen messages (default)
|
|
646
|
+
* - `"any"` will show when there are any offscreen messages
|
|
647
|
+
* - `false` will always hide the button
|
|
648
|
+
*/
|
|
649
|
+
scrollToEndButtonBehavior?: false | 'any' | 'unread';
|
|
650
|
+
/** Font size of the new message button. */
|
|
651
|
+
scrollToEndButtonFontSize?: number | string;
|
|
652
|
+
/**
|
|
653
|
+
* Font size of the new message button.
|
|
654
|
+
*
|
|
655
|
+
* @deprecated Since 4.14.0: Renamed to {@linkcode scrollToEndButtonFontSize}.
|
|
656
|
+
*/
|
|
657
|
+
newMessagesButtonFontSize?: number | string;
|
|
658
|
+
transcriptOverlayButtonBackground?: string;
|
|
659
|
+
transcriptOverlayButtonBackgroundOnDisabled?: string;
|
|
660
|
+
transcriptOverlayButtonBackgroundOnFocus?: string;
|
|
661
|
+
transcriptOverlayButtonBackgroundOnHover?: string;
|
|
662
|
+
transcriptOverlayButtonColor?: string;
|
|
663
|
+
transcriptOverlayButtonColorOnDisabled?: string;
|
|
664
|
+
/**
|
|
665
|
+
* Default value is transcriptOverlayButtonColor
|
|
666
|
+
*/
|
|
667
|
+
transcriptOverlayButtonColorOnFocus?: string;
|
|
668
|
+
/**
|
|
669
|
+
* Default value is transcriptOverlayButtonColor
|
|
670
|
+
*/
|
|
671
|
+
transcriptOverlayButtonColorOnHover?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Toast UI
|
|
674
|
+
*/
|
|
675
|
+
/**
|
|
676
|
+
* New debounce timeout value only affects new notifications.
|
|
677
|
+
*/
|
|
678
|
+
notificationDebounceTimeout?: number;
|
|
679
|
+
hideToaster?: boolean;
|
|
680
|
+
toasterHeight?: number | string;
|
|
681
|
+
toasterMaxHeight?: number | string;
|
|
682
|
+
toasterSingularMaxHeight?: number | string;
|
|
683
|
+
toastFontSize?: number | string;
|
|
684
|
+
toastIconWidth?: number | string;
|
|
685
|
+
toastSeparatorColor?: string;
|
|
686
|
+
toastTextPadding?: number | string;
|
|
687
|
+
toastErrorBackgroundColor?: string;
|
|
688
|
+
toastErrorColor?: string;
|
|
689
|
+
toastInfoBackgroundColor?: string;
|
|
690
|
+
toastInfoColor?: string;
|
|
691
|
+
toastSuccessBackgroundColor?: string;
|
|
692
|
+
toastSuccessColor?: string;
|
|
693
|
+
toastWarnBackgroundColor?: string;
|
|
694
|
+
toastWarnColor?: string;
|
|
695
|
+
/**
|
|
696
|
+
* Typing animation
|
|
697
|
+
*/
|
|
698
|
+
typingAnimationBackgroundImage?: string;
|
|
699
|
+
typingAnimationDuration?: number;
|
|
700
|
+
typingAnimationHeight?: number | string;
|
|
701
|
+
typingAnimationWidth?: number | string;
|
|
702
|
+
/**
|
|
703
|
+
* Upload thumbnail
|
|
704
|
+
*/
|
|
705
|
+
enableUploadThumbnail?: boolean;
|
|
706
|
+
uploadThumbnailContentType?: string;
|
|
707
|
+
uploadThumbnailHeight?: number;
|
|
708
|
+
uploadThumbnailQuality?: number;
|
|
709
|
+
uploadThumbnailWidth?: number;
|
|
710
|
+
/**
|
|
711
|
+
* Video
|
|
712
|
+
*/
|
|
713
|
+
videoHeight?: number | string;
|
|
714
|
+
/**
|
|
715
|
+
* Maximum message length in characters
|
|
716
|
+
*
|
|
717
|
+
* @default 2000
|
|
718
|
+
*/
|
|
719
|
+
maxMessageLength?: number;
|
|
720
|
+
/**
|
|
721
|
+
* The node to place Web Chat styles into. Needed when using as a Web Component.
|
|
722
|
+
*
|
|
723
|
+
* @default document.head
|
|
724
|
+
*/
|
|
725
|
+
stylesRoot?: Node;
|
|
726
|
+
/**
|
|
727
|
+
* Border animation
|
|
728
|
+
*/
|
|
729
|
+
/**
|
|
730
|
+
* Border animation 1st color
|
|
731
|
+
*
|
|
732
|
+
* CSS variable: `--webchat__animation--border-color-1` CSS variable to adjust the color
|
|
733
|
+
*
|
|
734
|
+
* New in 4.19.0.
|
|
735
|
+
*/
|
|
736
|
+
borderAnimationColor1?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Border animation 2nd color
|
|
739
|
+
*
|
|
740
|
+
* CSS variable: `--webchat__animation--border-color-2` CSS variable to adjust the color
|
|
741
|
+
*
|
|
742
|
+
* New in 4.19.0.
|
|
743
|
+
*/
|
|
744
|
+
borderAnimationColor2?: string;
|
|
745
|
+
/**
|
|
746
|
+
* Border animation 3rd color
|
|
747
|
+
*
|
|
748
|
+
* CSS variable: `--webchat__animation--border-color-3` CSS variable to adjust the color
|
|
749
|
+
*
|
|
750
|
+
* New in 4.19.0.
|
|
751
|
+
*/
|
|
752
|
+
borderAnimationColor3?: string;
|
|
753
|
+
/**
|
|
754
|
+
* Code block theme
|
|
755
|
+
*
|
|
756
|
+
* - `'github-light-default'` - use light theme for code blocks
|
|
757
|
+
* - `'github-dark-default'` - use dark theme for code blocks
|
|
758
|
+
*
|
|
759
|
+
* @default 'github-light-default'
|
|
760
|
+
*
|
|
761
|
+
* New in 4.19.0.
|
|
762
|
+
*/
|
|
763
|
+
codeBlockTheme?: 'github-light-default' | 'github-dark-default';
|
|
764
|
+
/**
|
|
765
|
+
* (EXPERIMENTAL) Feedback buttons placement
|
|
766
|
+
*
|
|
767
|
+
* - `'activity-actions'` - place feedback buttons inside activity actions - will show feedback form
|
|
768
|
+
* - `'activity-status'` - place feedback buttons inside activity status
|
|
769
|
+
*
|
|
770
|
+
* @default 'activity-status'
|
|
771
|
+
*
|
|
772
|
+
* @deprecated This is an experimental style options and should not be used without understanding its risk.
|
|
773
|
+
*
|
|
774
|
+
* New in 4.19.0.
|
|
775
|
+
*/
|
|
776
|
+
feedbackActionsPlacement?: 'activity-actions' | 'activity-status';
|
|
777
|
+
/**
|
|
778
|
+
* Use continuous mode for speech recognition. Default to `false`.
|
|
779
|
+
*
|
|
780
|
+
* - `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
|
|
781
|
+
* - `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
|
|
782
|
+
*
|
|
783
|
+
* @see https://github.com/microsoft/BotFramework-WebChat/pull/5426
|
|
784
|
+
*/
|
|
785
|
+
speechRecognitionContinuous?: boolean | undefined;
|
|
786
|
+
/**
|
|
787
|
+
* Defines how activities are being grouped by (in the order of appearance in the array). Default to `['sender', 'status']` or `sender,status` in CSS.
|
|
788
|
+
*
|
|
789
|
+
* Values are key of result of `groupActivitiesMiddleware`. The default implementation of `groupActivitiesMiddleware` has `sender` and `status`.
|
|
790
|
+
*
|
|
791
|
+
* To add new groupings, configure `groupActivitiesMiddleware` to output extra groups. Then, add the group names to `styleOptions.groupActivitiesBy`.
|
|
792
|
+
*/
|
|
793
|
+
groupActivitiesBy?: readonly string[] | undefined;
|
|
794
|
+
};
|
|
795
|
+
type StrictStyleOptions = Required<Omit<StyleOptions, 'bubbleImageHeight' | 'bubbleMaxWidth' | 'bubbleMinWidth' | 'hideScrollToEndButton' | 'newMessagesButtonFontSize'>> & {
|
|
796
|
+
bubbleFromUserNubOffset: number;
|
|
797
|
+
bubbleNubOffset: number;
|
|
798
|
+
emojiSet: false | Record<string, string>;
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
declare const DEFAULT_OPTIONS: Required<StyleOptions>;
|
|
802
|
+
|
|
803
|
+
type AttachmentProps = {
|
|
804
|
+
activity: WebChatActivity;
|
|
805
|
+
attachment: DirectLineAttachment;
|
|
806
|
+
};
|
|
807
|
+
type RenderAttachment = (props?: AttachmentProps) => ReactNode;
|
|
808
|
+
type AttachmentEnhancer = (next: RenderAttachment) => RenderAttachment;
|
|
809
|
+
type AttachmentMiddleware = () => AttachmentEnhancer;
|
|
810
|
+
|
|
811
|
+
type ActivityProps = {
|
|
812
|
+
hideTimestamp: boolean;
|
|
813
|
+
renderActivityStatus: (options: {
|
|
814
|
+
hideTimestamp: boolean;
|
|
815
|
+
}) => ReactNode;
|
|
816
|
+
renderAvatar: false | (() => Exclude<ReactNode, boolean | null | undefined>);
|
|
817
|
+
showCallout: boolean;
|
|
818
|
+
};
|
|
819
|
+
type ActivityComponent = (props: ActivityProps) => Exclude<ReactNode, boolean | null | undefined>;
|
|
820
|
+
type ActivityComponentFactoryOptions = {
|
|
821
|
+
activity: WebChatActivity;
|
|
822
|
+
nextVisibleActivity: WebChatActivity;
|
|
823
|
+
};
|
|
824
|
+
type ActivityComponentFactory = (options: ActivityComponentFactoryOptions) => ActivityComponent | false;
|
|
825
|
+
type LegacyRenderActivity = (renderAttachment: RenderAttachment, { hideTimestamp, renderActivityStatus, renderAvatar, showCallout }: ActivityProps) => Exclude<ReactNode, boolean>;
|
|
826
|
+
type LegacyActivityRenderer = (options: ActivityComponentFactoryOptions) => LegacyRenderActivity | false;
|
|
827
|
+
type ActivityEnhancer = (next: LegacyActivityRenderer) => LegacyActivityRenderer;
|
|
828
|
+
type ActivityMiddleware = () => ActivityEnhancer;
|
|
829
|
+
|
|
830
|
+
type SendStatus = 'send failed' | 'sending' | 'sent';
|
|
831
|
+
|
|
832
|
+
type RenderActivityStatusOptions = {
|
|
833
|
+
activity: WebChatActivity;
|
|
834
|
+
hideTimestamp: boolean;
|
|
835
|
+
sendState: SendStatus;
|
|
836
|
+
/** @deprecated */
|
|
837
|
+
nextVisibleActivity: WebChatActivity;
|
|
838
|
+
/** @deprecated */
|
|
839
|
+
sameTimestampGroup: boolean;
|
|
840
|
+
};
|
|
841
|
+
type RenderActivityStatus = (options: RenderActivityStatusOptions) => ReactElement;
|
|
842
|
+
type ActivityStatusEnhancer = (next: RenderActivityStatus) => RenderActivityStatus;
|
|
843
|
+
type ActivityStatusMiddleware = () => ActivityStatusEnhancer;
|
|
844
|
+
|
|
845
|
+
type OnScreenReactNode = Exclude<ReactNode, boolean | null | undefined>;
|
|
846
|
+
/**
|
|
847
|
+
* Renders a UI component by returning a React component, or `false`, if nothing should be rendered.
|
|
848
|
+
*
|
|
849
|
+
* @returns {(React.FC|false)} Returns a React component to render, or `false`, if nothing should be rendered.
|
|
850
|
+
*/
|
|
851
|
+
type ComponentFactory<TComponentFactoryArguments extends any[], TProps> = (...args: TComponentFactoryArguments) => ((props?: TProps) => OnScreenReactNode) | false;
|
|
852
|
+
/**
|
|
853
|
+
* Enhances a UI component through decoration, replacement, or removal.
|
|
854
|
+
*/
|
|
855
|
+
type ComponentEnhancer<TComponentFactoryArguments extends any[], TProps> = (next: ComponentFactory<TComponentFactoryArguments, TProps>) => ComponentFactory<TComponentFactoryArguments, TProps>;
|
|
856
|
+
/**
|
|
857
|
+
* Middleware for rendering a UI component.
|
|
858
|
+
*
|
|
859
|
+
* The middleware is a series of enhancers that are chained through functional composition. Each enhancer can:
|
|
860
|
+
*
|
|
861
|
+
* - Decorate: call the next enhancer to get its React component, then decorate it through UI composition
|
|
862
|
+
* - Replace: return a React component without calling the next enhancer
|
|
863
|
+
* - Remove: return `false` without calling the next enhancer
|
|
864
|
+
*
|
|
865
|
+
* The signature of the middleware is:
|
|
866
|
+
*
|
|
867
|
+
* ```
|
|
868
|
+
* (...args: SetupArguments) => (next: Enhancer) => (...args: ComponentFactoryArguments) => false | React.ComponentType<Props>
|
|
869
|
+
* ```
|
|
870
|
+
*/
|
|
871
|
+
type ComponentMiddleware<TSetupArguments extends any[], TComponentFactoryArguments extends any[], TProps> = (...args: TSetupArguments) => ComponentEnhancer<TComponentFactoryArguments, TProps>;
|
|
872
|
+
|
|
873
|
+
type AttachmentForScreenReaderComponentFactoryOptions = [
|
|
874
|
+
{
|
|
875
|
+
activity: WebChatActivity;
|
|
876
|
+
attachment: DirectLineAttachment;
|
|
877
|
+
}
|
|
878
|
+
];
|
|
879
|
+
type AttachmentForScreenReaderComponentFactory = ComponentFactory<AttachmentForScreenReaderComponentFactoryOptions, {}>;
|
|
880
|
+
type AttachmentForScreenReaderMiddleware = ComponentMiddleware<[
|
|
881
|
+
], AttachmentForScreenReaderComponentFactoryOptions, {}>;
|
|
882
|
+
|
|
883
|
+
type AvatarComponentFactoryArguments = [
|
|
884
|
+
{
|
|
885
|
+
activity: WebChatActivity;
|
|
886
|
+
fromUser: boolean;
|
|
887
|
+
styleOptions: StrictStyleOptions;
|
|
888
|
+
}
|
|
889
|
+
];
|
|
890
|
+
type AvatarComponentFactory = ComponentFactory<AvatarComponentFactoryArguments, {}>;
|
|
891
|
+
type AvatarMiddleware = ComponentMiddleware<[], AvatarComponentFactoryArguments, {}>;
|
|
892
|
+
|
|
893
|
+
type CallFunction<TArguments extends any[], TResult> = (...args: TArguments) => TResult;
|
|
894
|
+
type FunctionEnhancer<TCallArguments extends any[], TResult> = (next: CallFunction<TCallArguments, TResult>) => CallFunction<TCallArguments, TResult>;
|
|
895
|
+
type FunctionMiddleware<TSetupArguments extends any[], TCallArguments extends any[], TResult> = (...args: TSetupArguments) => FunctionEnhancer<TCallArguments, TResult>;
|
|
896
|
+
|
|
897
|
+
type PerformCardAction = (cardAction: DirectLineCardAction, event?: {
|
|
898
|
+
target: EventTarget;
|
|
899
|
+
}) => void;
|
|
900
|
+
type CardActionMiddleware = FunctionMiddleware<[
|
|
901
|
+
{
|
|
902
|
+
dispatch: (action: any) => void;
|
|
903
|
+
}
|
|
904
|
+
], [
|
|
905
|
+
{
|
|
906
|
+
cardAction: DirectLineCardAction;
|
|
907
|
+
getSignInUrl?: () => string;
|
|
908
|
+
target: any;
|
|
909
|
+
}
|
|
910
|
+
], {}>;
|
|
911
|
+
|
|
912
|
+
type ContextOf<T> = T extends Context<infer P> ? P : never;
|
|
913
|
+
|
|
914
|
+
type GroupedActivities$1 = readonly (readonly WebChatActivity[])[];
|
|
915
|
+
type GroupActivities = CallFunction<[
|
|
916
|
+
Readonly<{
|
|
917
|
+
activities: readonly WebChatActivity[];
|
|
918
|
+
}>
|
|
919
|
+
], {
|
|
920
|
+
[key: string]: GroupedActivities$1;
|
|
921
|
+
}>;
|
|
922
|
+
type GroupActivitiesMiddleware = FunctionMiddleware<[
|
|
923
|
+
string
|
|
924
|
+
], [
|
|
925
|
+
Readonly<{
|
|
926
|
+
activities: readonly WebChatActivity[];
|
|
927
|
+
}>
|
|
928
|
+
], {
|
|
929
|
+
[key: string]: GroupedActivities$1;
|
|
930
|
+
}>;
|
|
931
|
+
|
|
932
|
+
type LocalizedStrings = {
|
|
933
|
+
[stringId: string]: boolean | string;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* @type {object}
|
|
938
|
+
* @property {boolean} atEnd - `true`, if the transcript scroll view is at the end, otherwise, `false`.
|
|
939
|
+
* @property {object} styleOptions - Normalized style options.
|
|
940
|
+
* @property {boolean} unread - `true`, if there are unread messages in the transcripts, otherwise, `false`.
|
|
941
|
+
*/
|
|
942
|
+
type ScrollToEndButtonComponentArguments = [
|
|
943
|
+
{
|
|
944
|
+
atEnd: boolean;
|
|
945
|
+
styleOptions: StrictStyleOptions;
|
|
946
|
+
unread: boolean;
|
|
947
|
+
}
|
|
948
|
+
];
|
|
949
|
+
/**
|
|
950
|
+
* @type {object}
|
|
951
|
+
* @property {function} onClick - The callback function to call when the user click on the button.
|
|
952
|
+
*/
|
|
953
|
+
type ScrollToEndButtonProps = {
|
|
954
|
+
onClick: () => any;
|
|
955
|
+
};
|
|
956
|
+
/**
|
|
957
|
+
* The middleware for rendering scroll to end button.
|
|
958
|
+
*/
|
|
959
|
+
type ScrollToEndButtonMiddleware = ComponentMiddleware<[], ScrollToEndButtonComponentArguments, ScrollToEndButtonProps>;
|
|
960
|
+
type ScrollToEndButtonComponentFactory = ComponentFactory<ScrollToEndButtonComponentArguments, ScrollToEndButtonProps>;
|
|
961
|
+
|
|
962
|
+
type BaseTelemetryMeasurementEvent = {
|
|
963
|
+
dimension?: any;
|
|
964
|
+
};
|
|
965
|
+
type TelemetryEventMeasurementEvent = BaseTelemetryMeasurementEvent & {
|
|
966
|
+
type: 'event';
|
|
967
|
+
name: string;
|
|
968
|
+
level: 'debug' | 'info' | 'warn' | 'error';
|
|
969
|
+
data?: number | string | {
|
|
970
|
+
[key: string]: number | string;
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
type TelemetryExceptionMeasurementEvent = BaseTelemetryMeasurementEvent & {
|
|
974
|
+
type: 'exception';
|
|
975
|
+
error: Error;
|
|
976
|
+
fatal: boolean;
|
|
977
|
+
};
|
|
978
|
+
type TelemetryTimingStartMeasurementEvent = BaseTelemetryMeasurementEvent & {
|
|
979
|
+
type: 'timingstart';
|
|
980
|
+
name: string;
|
|
981
|
+
timingId: string;
|
|
982
|
+
};
|
|
983
|
+
type TelemetryTimingEndMeasurementEvent = BaseTelemetryMeasurementEvent & {
|
|
984
|
+
type: 'timingend';
|
|
985
|
+
name: string;
|
|
986
|
+
timingId: string;
|
|
987
|
+
duration: number;
|
|
988
|
+
};
|
|
989
|
+
type TelemetryMeasurementEvent = TelemetryEventMeasurementEvent | TelemetryExceptionMeasurementEvent | TelemetryTimingStartMeasurementEvent | TelemetryTimingEndMeasurementEvent;
|
|
990
|
+
|
|
991
|
+
type Notification = {
|
|
992
|
+
alt: string;
|
|
993
|
+
data?: any;
|
|
994
|
+
id: string;
|
|
995
|
+
level: string;
|
|
996
|
+
message?: string;
|
|
997
|
+
timestamp?: number;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
type ToastProps = {
|
|
1001
|
+
notification: Notification;
|
|
1002
|
+
};
|
|
1003
|
+
type RenderToast = (props: ToastProps) => ReactNode;
|
|
1004
|
+
type ToastEnhancer = (next: RenderToast) => RenderToast;
|
|
1005
|
+
type ToastMiddleware = () => ToastEnhancer;
|
|
1006
|
+
|
|
1007
|
+
type Typing = {
|
|
1008
|
+
at: number;
|
|
1009
|
+
expireAt: number;
|
|
1010
|
+
name: string;
|
|
1011
|
+
role: 'bot' | 'user';
|
|
1012
|
+
type: 'busy' | 'livestream';
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
type TypingIndicatorProps = {
|
|
1016
|
+
activeTyping: {
|
|
1017
|
+
[id: string]: Typing;
|
|
1018
|
+
};
|
|
1019
|
+
typing: {
|
|
1020
|
+
[id: string]: Typing;
|
|
1021
|
+
};
|
|
1022
|
+
visible: boolean;
|
|
1023
|
+
};
|
|
1024
|
+
type RenderTypingIndicator = (props: TypingIndicatorProps) => ReactNode;
|
|
1025
|
+
type TypingIndicatorEnhancer = (next: RenderTypingIndicator) => RenderTypingIndicator;
|
|
1026
|
+
type TypingIndicatorMiddleware = () => TypingIndicatorEnhancer;
|
|
1027
|
+
|
|
1028
|
+
type MiddlewareWithInit<M extends ComponentMiddleware$1<any, any, any>, I> = (init: I) => ReturnType<M> | false;
|
|
1029
|
+
|
|
1030
|
+
declare const initSendBoxMiddleware: (middleware: readonly MiddlewareWithInit<react_chain_of_responsibility.ComponentMiddleware<unknown, unknown>, undefined>[], init: undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
1031
|
+
className?: string | undefined;
|
|
1032
|
+
}>[];
|
|
1033
|
+
declare const SendBoxMiddlewareProxy: react.ComponentType<{
|
|
1034
|
+
className?: string | undefined;
|
|
1035
|
+
} & {
|
|
1036
|
+
fallbackComponent?: react.ComponentType<{
|
|
1037
|
+
className?: string | undefined;
|
|
1038
|
+
}>;
|
|
1039
|
+
request?: undefined;
|
|
1040
|
+
} & {
|
|
1041
|
+
children?: react.ReactNode | undefined;
|
|
1042
|
+
}>;
|
|
1043
|
+
declare const types$1: {
|
|
1044
|
+
init: undefined;
|
|
1045
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
1046
|
+
className?: string | undefined;
|
|
1047
|
+
}>;
|
|
1048
|
+
props: {
|
|
1049
|
+
className?: string | undefined;
|
|
1050
|
+
};
|
|
1051
|
+
request: void;
|
|
1052
|
+
};
|
|
1053
|
+
type SendBoxMiddleware = typeof types$1.middleware;
|
|
1054
|
+
type SendBoxMiddlewareProps = typeof types$1.props;
|
|
1055
|
+
type SendBoxMiddlewareRequest = typeof types$1.request;
|
|
1056
|
+
|
|
1057
|
+
declare const initSendBoxToolbarMiddleware: (middleware: readonly MiddlewareWithInit<react_chain_of_responsibility.ComponentMiddleware<unknown, unknown>, undefined>[], init: undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
1058
|
+
className?: string | undefined;
|
|
1059
|
+
}>[];
|
|
1060
|
+
declare const SendBoxToolbarMiddlewareProxy: react.ComponentType<{
|
|
1061
|
+
className?: string | undefined;
|
|
1062
|
+
} & {
|
|
1063
|
+
fallbackComponent?: react.ComponentType<{
|
|
1064
|
+
className?: string | undefined;
|
|
1065
|
+
}>;
|
|
1066
|
+
request?: undefined;
|
|
1067
|
+
} & {
|
|
1068
|
+
children?: react.ReactNode | undefined;
|
|
1069
|
+
}>;
|
|
1070
|
+
declare const types: {
|
|
1071
|
+
init: undefined;
|
|
1072
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
1073
|
+
className?: string | undefined;
|
|
1074
|
+
}>;
|
|
1075
|
+
props: {
|
|
1076
|
+
className?: string | undefined;
|
|
1077
|
+
};
|
|
1078
|
+
request: void;
|
|
1079
|
+
};
|
|
1080
|
+
type SendBoxToolbarMiddleware = typeof types.middleware;
|
|
1081
|
+
type SendBoxToolbarMiddlewareProps = typeof types.props;
|
|
1082
|
+
type SendBoxToolbarMiddlewareRequest = typeof types.request;
|
|
1083
|
+
|
|
1084
|
+
type PrecompiledGlobalize = {
|
|
1085
|
+
dateFormatter: ({ skeleton }: {
|
|
1086
|
+
skeleton: 'MMMMdhm';
|
|
1087
|
+
}) => string;
|
|
1088
|
+
relativeTimeFormatter: (format: 'hour' | 'minute') => string;
|
|
1089
|
+
unitFormatter: ((unit: 'byte', options: {
|
|
1090
|
+
form: 'long';
|
|
1091
|
+
}) => string) | ((unit: 'kilobyte' | 'megabyte' | 'gigabyte', options: {
|
|
1092
|
+
form: 'short';
|
|
1093
|
+
}) => string);
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
type WebChatAPIContextType = {
|
|
1097
|
+
activityRenderer?: LegacyActivityRenderer;
|
|
1098
|
+
activityStatusRenderer: RenderActivityStatus;
|
|
1099
|
+
attachmentForScreenReaderRenderer?: AttachmentForScreenReaderComponentFactory;
|
|
1100
|
+
attachmentRenderer?: RenderAttachment;
|
|
1101
|
+
avatarRenderer: AvatarComponentFactory;
|
|
1102
|
+
clearSuggestedActions?: () => void;
|
|
1103
|
+
dir?: string;
|
|
1104
|
+
directLine?: DirectLineJSBotConnection;
|
|
1105
|
+
dismissNotification?: (id: string) => void;
|
|
1106
|
+
downscaleImageToDataURL?: (blob: Blob, maxWidth: number, maxHeight: number, type: string, quality: number) => Promise<URL>;
|
|
1107
|
+
emitTypingIndicator?: () => void;
|
|
1108
|
+
grammars?: any;
|
|
1109
|
+
groupActivities?: GroupActivities;
|
|
1110
|
+
internalErrorBoxClass?: ComponentType<Readonly<{
|
|
1111
|
+
error: Error;
|
|
1112
|
+
type?: string;
|
|
1113
|
+
}>> | undefined;
|
|
1114
|
+
language?: string;
|
|
1115
|
+
localizedGlobalizeState?: PrecompiledGlobalize[];
|
|
1116
|
+
localizedStrings?: {
|
|
1117
|
+
[language: string]: LocalizedStrings;
|
|
1118
|
+
};
|
|
1119
|
+
markActivity?: (activity: {
|
|
1120
|
+
id: string;
|
|
1121
|
+
}, name: string, value?: any) => void;
|
|
1122
|
+
onCardAction?: PerformCardAction;
|
|
1123
|
+
onTelemetry?: (event: TelemetryMeasurementEvent) => void;
|
|
1124
|
+
postActivity?: (activity: WebChatActivity) => Observable<string>;
|
|
1125
|
+
renderMarkdown?: (markdown: string, newLineOptions: {
|
|
1126
|
+
markdownRespectCRLF: boolean;
|
|
1127
|
+
}, linkOptions: {
|
|
1128
|
+
externalLinkAlt: string;
|
|
1129
|
+
}) => string;
|
|
1130
|
+
scrollToEndButtonRenderer?: ScrollToEndButtonComponentFactory;
|
|
1131
|
+
selectVoice?: (voices: (typeof window.SpeechSynthesisVoice)[], activity: WebChatActivity) => typeof window.SpeechSynthesisVoice;
|
|
1132
|
+
sendEvent?: (name: string, value: any) => void;
|
|
1133
|
+
sendFiles?: (...args: Parameters<typeof sendFiles>) => void;
|
|
1134
|
+
sendMessage?: (...args: Parameters<typeof sendMessage>) => void;
|
|
1135
|
+
sendMessageBack?: (value: any, text?: string, displayText?: string) => void;
|
|
1136
|
+
sendPostBack?: (value?: any) => void;
|
|
1137
|
+
sendTypingIndicator?: boolean;
|
|
1138
|
+
setDictateInterims?: (interims: string[]) => void;
|
|
1139
|
+
setDictateState?: (dictateState: number) => void;
|
|
1140
|
+
setNotification?: (notification: Notification) => void;
|
|
1141
|
+
setSendBox?: (value: string) => void;
|
|
1142
|
+
setSendBoxAttachments?: (...args: Parameters<typeof setSendBoxAttachments>) => void;
|
|
1143
|
+
setSendTimeout?: (timeout: number) => void;
|
|
1144
|
+
startDictate?: () => void;
|
|
1145
|
+
startSpeakingActivity?: () => void;
|
|
1146
|
+
stopDictate?: () => void;
|
|
1147
|
+
stopSpeakingActivity?: () => void;
|
|
1148
|
+
styleOptions?: StrictStyleOptions;
|
|
1149
|
+
submitSendBox?: (method?: string, { channelData }?: {
|
|
1150
|
+
channelData: any;
|
|
1151
|
+
}) => void;
|
|
1152
|
+
telemetryDimensionsRef?: React.Ref<any>;
|
|
1153
|
+
toastRenderer?: RenderToast;
|
|
1154
|
+
trackDimension?: (name: string, data: any) => void;
|
|
1155
|
+
typingIndicatorRenderer?: any;
|
|
1156
|
+
uiState: 'blueprint' | 'disabled' | undefined;
|
|
1157
|
+
userID?: string;
|
|
1158
|
+
username?: string;
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
type ComposerCoreProps = Readonly<{
|
|
1162
|
+
activityMiddleware?: OneOrMany<ActivityMiddleware>;
|
|
1163
|
+
activityStatusMiddleware?: OneOrMany<ActivityStatusMiddleware>;
|
|
1164
|
+
attachmentForScreenReaderMiddleware?: OneOrMany<AttachmentForScreenReaderMiddleware>;
|
|
1165
|
+
attachmentMiddleware?: OneOrMany<AttachmentMiddleware>;
|
|
1166
|
+
avatarMiddleware?: OneOrMany<AvatarMiddleware>;
|
|
1167
|
+
cardActionMiddleware?: OneOrMany<CardActionMiddleware>;
|
|
1168
|
+
children?: ReactNode | ((context: ContextOf<react__default.Context<WebChatAPIContextType>>) => ReactNode);
|
|
1169
|
+
dir?: string;
|
|
1170
|
+
directLine: DirectLineJSBotConnection;
|
|
1171
|
+
/**
|
|
1172
|
+
* @deprecated Please use `uiState="disabled"` instead. This feature will be removed on or after 2026-09-04.
|
|
1173
|
+
*/
|
|
1174
|
+
disabled?: boolean;
|
|
1175
|
+
downscaleImageToDataURL?: (blob: Blob, maxWidth: number, maxHeight: number, type: string, quality: number) => Promise<URL>;
|
|
1176
|
+
grammars?: any;
|
|
1177
|
+
groupActivitiesMiddleware?: OneOrMany<GroupActivitiesMiddleware>;
|
|
1178
|
+
internalErrorBoxClass?: ComponentType<Readonly<{
|
|
1179
|
+
error: Error;
|
|
1180
|
+
type?: string;
|
|
1181
|
+
}>> | undefined;
|
|
1182
|
+
locale?: string;
|
|
1183
|
+
onTelemetry?: (event: TelemetryMeasurementEvent) => void;
|
|
1184
|
+
overrideLocalizedStrings?: LocalizedStrings | ((strings: LocalizedStrings, language: string) => LocalizedStrings);
|
|
1185
|
+
renderMarkdown?: (markdown: string, newLineOptions: {
|
|
1186
|
+
markdownRespectCRLF: boolean;
|
|
1187
|
+
}, linkOptions: {
|
|
1188
|
+
externalLinkAlt: string;
|
|
1189
|
+
}) => string;
|
|
1190
|
+
scrollToEndButtonMiddleware?: OneOrMany<ScrollToEndButtonMiddleware>;
|
|
1191
|
+
selectVoice?: (voices: (typeof window.SpeechSynthesisVoice)[], activity: WebChatActivity) => void;
|
|
1192
|
+
sendBoxMiddleware?: readonly SendBoxMiddleware[] | undefined;
|
|
1193
|
+
sendBoxToolbarMiddleware?: readonly SendBoxToolbarMiddleware[] | undefined;
|
|
1194
|
+
sendTypingIndicator?: boolean;
|
|
1195
|
+
styleOptions?: StyleOptions;
|
|
1196
|
+
toastMiddleware?: OneOrMany<ToastMiddleware>;
|
|
1197
|
+
typingIndicatorMiddleware?: OneOrMany<TypingIndicatorMiddleware>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Sets the state of the UI.
|
|
1200
|
+
*
|
|
1201
|
+
* - `undefined` will render normally
|
|
1202
|
+
* - `"blueprint"` will render as few UI elements as possible and should be non-functional
|
|
1203
|
+
* - Useful for loading scenarios
|
|
1204
|
+
* - `"disabled"` will render most UI elements as non-functional
|
|
1205
|
+
* - Scrolling may continue to trigger read acknowledgements
|
|
1206
|
+
*/
|
|
1207
|
+
uiState?: 'blueprint' | 'disabled' | undefined;
|
|
1208
|
+
userID?: string;
|
|
1209
|
+
username?: string;
|
|
1210
|
+
}>;
|
|
1211
|
+
type ComposerWithStoreProps = ComposerCoreProps & Readonly<{
|
|
1212
|
+
store?: any;
|
|
1213
|
+
}>;
|
|
1214
|
+
type ComposerProps = ComposerWithStoreProps & {
|
|
1215
|
+
internalRenderErrorBox?: any;
|
|
1216
|
+
/**
|
|
1217
|
+
* Ponyfill to overrides specific global scope members. This prop cannot be changed after initial render.
|
|
1218
|
+
*
|
|
1219
|
+
* This option is for development use only. Not all features in Web Chat are ponyfilled.
|
|
1220
|
+
*
|
|
1221
|
+
* To fake timers, `setTimeout` and related functions can be passed to overrides the original global scope members.
|
|
1222
|
+
*
|
|
1223
|
+
* Please see [#4662](https://github.com/microsoft/BotFramework-WebChat/pull/4662) for details.
|
|
1224
|
+
*/
|
|
1225
|
+
ponyfill?: Partial<GlobalScopePonyfill>;
|
|
1226
|
+
};
|
|
1227
|
+
declare const Composer: {
|
|
1228
|
+
({ internalRenderErrorBox, onTelemetry, ponyfill, ...props }: ComposerProps): any;
|
|
1229
|
+
defaultProps: {
|
|
1230
|
+
internalRenderErrorBox: any;
|
|
1231
|
+
onTelemetry: any;
|
|
1232
|
+
ponyfill: any;
|
|
1233
|
+
store: any;
|
|
1234
|
+
};
|
|
1235
|
+
propTypes: {
|
|
1236
|
+
internalRenderErrorBox: PropTypes.Requireable<any>;
|
|
1237
|
+
onTelemetry: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1238
|
+
ponyfill: PropTypes.Requireable<any>;
|
|
1239
|
+
store: PropTypes.Requireable<any>;
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
declare function useActiveTyping(expireAfter?: number): readonly [Readonly<Record<string, Typing>>];
|
|
1244
|
+
|
|
1245
|
+
declare function useActivities(): [WebChatActivity[]];
|
|
1246
|
+
|
|
1247
|
+
declare function useActivityKeys(): readonly [readonly string[]];
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Returns an arrays of two list of activity keys: read and unread.
|
|
1251
|
+
*/
|
|
1252
|
+
declare function useActivityKeysByRead(): readonly [readonly string[], readonly string[]];
|
|
1253
|
+
|
|
1254
|
+
declare function useAvatarForBot(): [{
|
|
1255
|
+
image: string;
|
|
1256
|
+
initials: string;
|
|
1257
|
+
}];
|
|
1258
|
+
|
|
1259
|
+
declare function useAvatarForUser(): [{
|
|
1260
|
+
image: string;
|
|
1261
|
+
initials: string;
|
|
1262
|
+
}];
|
|
1263
|
+
|
|
1264
|
+
declare function useByteFormatter(): (bytes: number) => string;
|
|
1265
|
+
|
|
1266
|
+
declare function useConnectivityStatus(): [string];
|
|
1267
|
+
|
|
1268
|
+
declare function useCreateActivityRenderer(): ActivityComponentFactory;
|
|
1269
|
+
|
|
1270
|
+
type ActivityStatusRenderer = (renderOptions: {
|
|
1271
|
+
activity: WebChatActivity;
|
|
1272
|
+
nextVisibleActivity: WebChatActivity;
|
|
1273
|
+
}) => (props?: {
|
|
1274
|
+
hideTimestamp?: boolean;
|
|
1275
|
+
}) => ReactNode;
|
|
1276
|
+
declare function useCreateActivityStatusRenderer(): ActivityStatusRenderer;
|
|
1277
|
+
|
|
1278
|
+
declare function useCreateAttachmentForScreenReaderRenderer(): AttachmentForScreenReaderComponentFactory;
|
|
1279
|
+
|
|
1280
|
+
declare function useCreateAvatarRenderer(): ({ activity }: {
|
|
1281
|
+
activity: WebChatActivity;
|
|
1282
|
+
}) => false | (() => Exclude<ReactNode, boolean | null | undefined>);
|
|
1283
|
+
|
|
1284
|
+
declare function useCreateScrollToEndButtonRenderer(): ScrollToEndButtonComponentFactory;
|
|
1285
|
+
|
|
1286
|
+
declare function useDateFormatter(): (date: Date | number | string) => string;
|
|
1287
|
+
|
|
1288
|
+
type DebouncedNotification = Notification & {
|
|
1289
|
+
outOfDate: boolean;
|
|
1290
|
+
updateNotBefore: number;
|
|
1291
|
+
};
|
|
1292
|
+
type DebouncedNotifications = {
|
|
1293
|
+
[id: string]: DebouncedNotification;
|
|
1294
|
+
};
|
|
1295
|
+
declare function useDebouncedNotifications(): [DebouncedNotifications];
|
|
1296
|
+
|
|
1297
|
+
declare function useDictateInterims(): [string[], (interims: string[]) => void];
|
|
1298
|
+
|
|
1299
|
+
declare function useDictateState(): [number];
|
|
1300
|
+
|
|
1301
|
+
declare function useDirection(): ['auto' | 'ltr' | 'rtl'];
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* @deprecated Please use `useUIState() === 'disabled'` instead. This hook will be removed on or after 2026-09-04.
|
|
1305
|
+
*/
|
|
1306
|
+
declare function useDisabled(): readonly [boolean];
|
|
1307
|
+
|
|
1308
|
+
declare function useDismissNotification(): (id: string) => void;
|
|
1309
|
+
|
|
1310
|
+
declare function useEmitTypingIndicator(): () => void;
|
|
1311
|
+
|
|
1312
|
+
declare function useGetActivitiesByKey(): (key?: string) => readonly WebChatActivity[] | undefined;
|
|
1313
|
+
|
|
1314
|
+
declare function useGetActivityByKey(): (key?: string) => undefined | WebChatActivity;
|
|
1315
|
+
|
|
1316
|
+
declare function useGetHasAcknoweledgedByActivityKey(): (activityKey: string) => boolean | undefined;
|
|
1317
|
+
|
|
1318
|
+
declare function useGetKeyByActivity(): (activity?: WebChatActivity) => string | undefined;
|
|
1319
|
+
|
|
1320
|
+
declare function useGetKeyByActivityId(): (activityId?: string) => string | undefined;
|
|
1321
|
+
|
|
1322
|
+
declare function useGetSendTimeoutForActivity(): ({ activity }: {
|
|
1323
|
+
activity: WebChatActivity;
|
|
1324
|
+
}) => number;
|
|
1325
|
+
|
|
1326
|
+
declare function useGrammars(): [any];
|
|
1327
|
+
|
|
1328
|
+
type GroupedActivities = readonly (readonly WebChatActivity[])[];
|
|
1329
|
+
/**
|
|
1330
|
+
* This hook will return a callback function. When called with `activities`, the callback function will run the `groupActivitiesMiddleware` and will return all groupings.
|
|
1331
|
+
*
|
|
1332
|
+
* @deprecated This function is deprecated and will be removed on or after 2027-05-04. Developers should migrate to [`useGroupActivitiesByName`](#usegroupactivitiesbyname) for performance reason.
|
|
1333
|
+
*/
|
|
1334
|
+
declare function useGroupActivities(): ({ activities }: Readonly<{
|
|
1335
|
+
activities: readonly WebChatActivity[];
|
|
1336
|
+
}>) => Readonly<{
|
|
1337
|
+
[key: string]: GroupedActivities;
|
|
1338
|
+
}>;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* This hook will return a callback function. When called with `activities`, the callback function will run the `groupActivitiesMiddleware` for the specified grouping name.
|
|
1342
|
+
*
|
|
1343
|
+
* Unlike the [`useGroupActivities`](#usegroupactivities) hook which provide result for all groupings, this hook only provide result for the specified grouping name and the grouping name must be one of the name specified in `styleOptions.groupActivitiesBy`.
|
|
1344
|
+
*
|
|
1345
|
+
* @returns Result of `groupActivitiesMiddleware` for the specified grouping name
|
|
1346
|
+
*/
|
|
1347
|
+
declare function useGroupActivitiesBy(): (activities: readonly WebChatActivity[], name: string) => readonly (readonly WebChatActivity[])[];
|
|
1348
|
+
|
|
1349
|
+
declare function useGroupTimestamp(): [boolean | number];
|
|
1350
|
+
|
|
1351
|
+
declare function useLanguage(options?: 'speech'): [string];
|
|
1352
|
+
|
|
1353
|
+
declare function useLastAcknowledgedActivityKey(): readonly [string];
|
|
1354
|
+
|
|
1355
|
+
declare function useLastReadActivityKey(): readonly [string | undefined];
|
|
1356
|
+
|
|
1357
|
+
type Plural = {
|
|
1358
|
+
zero?: string;
|
|
1359
|
+
one?: string;
|
|
1360
|
+
two?: string;
|
|
1361
|
+
few?: string;
|
|
1362
|
+
many?: string;
|
|
1363
|
+
other: string;
|
|
1364
|
+
};
|
|
1365
|
+
declare function useLocalizer({ plural }?: {
|
|
1366
|
+
plural?: boolean;
|
|
1367
|
+
}): (id: string | Plural, args_0?: string | number, ...args: string[]) => any;
|
|
1368
|
+
|
|
1369
|
+
declare function useMarkActivityAsSpoken(): (activity: WebChatActivity) => void;
|
|
1370
|
+
|
|
1371
|
+
declare function useMarkActivityKeyAsRead(): (activityKey: string) => void;
|
|
1372
|
+
|
|
1373
|
+
declare function useMarkAllAsAcknowledged(): () => void;
|
|
1374
|
+
|
|
1375
|
+
declare function useNotifications(): [Notification[]];
|
|
1376
|
+
|
|
1377
|
+
declare function usePerformCardAction(): PerformCardAction;
|
|
1378
|
+
|
|
1379
|
+
declare function usePonyfill(): readonly [GlobalScopePonyfill];
|
|
1380
|
+
|
|
1381
|
+
declare function usePostActivity(): (activity: WebChatActivity) => Observable<string>;
|
|
1382
|
+
|
|
1383
|
+
declare function useReferenceGrammarID(): [string];
|
|
1384
|
+
|
|
1385
|
+
declare function useRelativeTimeFormatter(): (dateOrString: Date | string) => string;
|
|
1386
|
+
|
|
1387
|
+
declare function useRenderAttachment(): RenderAttachment | undefined;
|
|
1388
|
+
|
|
1389
|
+
declare function useRenderToast(): RenderToast;
|
|
1390
|
+
|
|
1391
|
+
declare function useRenderTypingIndicator(): RenderTypingIndicator;
|
|
1392
|
+
|
|
1393
|
+
declare function useSendBoxAttachments(): readonly [
|
|
1394
|
+
readonly SendBoxAttachment[],
|
|
1395
|
+
(attachments: readonly SendBoxAttachment[]) => void
|
|
1396
|
+
];
|
|
1397
|
+
|
|
1398
|
+
declare function useSendBoxValue(): [string, (value: string) => void];
|
|
1399
|
+
|
|
1400
|
+
declare function useSendEvent(): (name: string, value: any) => void;
|
|
1401
|
+
|
|
1402
|
+
type PostActivityFile = {
|
|
1403
|
+
name: string;
|
|
1404
|
+
size: number;
|
|
1405
|
+
thumbnail?: string;
|
|
1406
|
+
url: string;
|
|
1407
|
+
};
|
|
1408
|
+
declare function useSendFiles(): (files: PostActivityFile[]) => void;
|
|
1409
|
+
|
|
1410
|
+
declare function useSendMessage(): (text?: string, method?: string, init?: {
|
|
1411
|
+
attachments?: readonly SendBoxAttachment[] | undefined;
|
|
1412
|
+
channelData?: any;
|
|
1413
|
+
}) => void;
|
|
1414
|
+
|
|
1415
|
+
declare function useSendMessageBack(): (value: any, text?: string, displayText?: string) => void;
|
|
1416
|
+
|
|
1417
|
+
declare function useSendPostBack(): (value?: any) => void;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Returns a key/value map which stores the outgoing activity send status by activity key:
|
|
1421
|
+
*
|
|
1422
|
+
* - `"sending"`, the activity is currently in transit;
|
|
1423
|
+
* - `"sent"`, the activity is sent and acknowledged by the platform;
|
|
1424
|
+
* - `"send failed"`, the activity failed to send.
|
|
1425
|
+
*
|
|
1426
|
+
* If the send status is `"send failed"`, it could be due to (non-exhaustive):
|
|
1427
|
+
*
|
|
1428
|
+
* - Immediate or almost immediate failures, such as network error;
|
|
1429
|
+
* - It took longer than `styleOptions.sendTimeout` or `styleOptions.sendTimeoutForAttachments` to send.
|
|
1430
|
+
*
|
|
1431
|
+
* The send status of an activity could turn from `"send failed"` back to `"sending"` if (non-exhaustive):
|
|
1432
|
+
*
|
|
1433
|
+
* - The platform support resend and the activity is being resend;
|
|
1434
|
+
* - The `styleOptions.sendTimeout` or `styleOptions.sendTimeoutForAttachments` has increased past the expiry, overthrown the previous decision for timeout.
|
|
1435
|
+
*
|
|
1436
|
+
* If the activity key does not exists in this map, the activity is not an outgoing activity.
|
|
1437
|
+
*/
|
|
1438
|
+
declare function useSendStatus(): readonly [ReadonlyMap<string, SendStatus>];
|
|
1439
|
+
|
|
1440
|
+
/** @deprecated Please use "useGetSendTimeoutForActivity()" instead. */
|
|
1441
|
+
declare function useSendTimeoutForActivity(activity: WebChatActivity): number;
|
|
1442
|
+
|
|
1443
|
+
declare function useSendTypingIndicator(): [boolean];
|
|
1444
|
+
|
|
1445
|
+
declare function useSetNotification(): (notification: Notification) => void;
|
|
1446
|
+
|
|
1447
|
+
declare function useShouldSpeakIncomingActivity(): [boolean, (value: boolean) => void];
|
|
1448
|
+
|
|
1449
|
+
declare function useStartDictate(): () => void;
|
|
1450
|
+
|
|
1451
|
+
declare function useStopDictate(): () => void;
|
|
1452
|
+
|
|
1453
|
+
declare function useStyleOptions(): [StrictStyleOptions];
|
|
1454
|
+
|
|
1455
|
+
declare function useSubmitSendBox(): (method?: string, { channelData }?: {
|
|
1456
|
+
channelData: any;
|
|
1457
|
+
}) => void;
|
|
1458
|
+
|
|
1459
|
+
declare function useSuggestedActions(): [
|
|
1460
|
+
DirectLineCardAction[],
|
|
1461
|
+
(suggestedActions: never[]) => void,
|
|
1462
|
+
extras: {
|
|
1463
|
+
activity: WebChatActivity;
|
|
1464
|
+
}
|
|
1465
|
+
];
|
|
1466
|
+
|
|
1467
|
+
declare function useTimeoutForSend(): [number | ((activity: WebChatActivity) => number)];
|
|
1468
|
+
|
|
1469
|
+
declare function useTrackDimension(): (name: string, data: any) => void;
|
|
1470
|
+
|
|
1471
|
+
type TrackEventFunction = {
|
|
1472
|
+
(name: string, data: any): void;
|
|
1473
|
+
debug: (name: string, data: any) => void;
|
|
1474
|
+
error: (name: string, data: any) => void;
|
|
1475
|
+
info: (name: string, data: any) => void;
|
|
1476
|
+
warn: (name: string, data: any) => void;
|
|
1477
|
+
};
|
|
1478
|
+
declare function useTrackEvent(): TrackEventFunction;
|
|
1479
|
+
|
|
1480
|
+
declare function useTrackException(): (error: Error, fatal: boolean) => void;
|
|
1481
|
+
|
|
1482
|
+
declare function useTrackTiming<T>(): (name: string, functionOrPromise: (() => T) | Promise<T>) => Promise<T>;
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* Gets the state of the UI.
|
|
1486
|
+
*
|
|
1487
|
+
* - `undefined` will render normally
|
|
1488
|
+
* - `"blueprint"` will render as few UI elements as possible and should be non-functional
|
|
1489
|
+
* - Useful for loading scenarios
|
|
1490
|
+
* - `"disabled"` will render most UI elements as non-functional
|
|
1491
|
+
* - Scrolling may continue to trigger read acknowledgements
|
|
1492
|
+
*/
|
|
1493
|
+
declare function useUIState(): readonly ['blueprint' | 'disabled' | undefined];
|
|
1494
|
+
|
|
1495
|
+
declare function useUserID(): [string];
|
|
1496
|
+
|
|
1497
|
+
declare function useUsername(): [string];
|
|
1498
|
+
|
|
1499
|
+
declare function useVoiceSelector(activity: any): (voices: (typeof window.SpeechSynthesisVoice)[]) => typeof window.SpeechSynthesisVoice;
|
|
1500
|
+
|
|
1501
|
+
declare const index_useActiveTyping: typeof useActiveTyping;
|
|
1502
|
+
declare const index_useActivities: typeof useActivities;
|
|
1503
|
+
declare const index_useActivityKeys: typeof useActivityKeys;
|
|
1504
|
+
declare const index_useActivityKeysByRead: typeof useActivityKeysByRead;
|
|
1505
|
+
declare const index_useAvatarForBot: typeof useAvatarForBot;
|
|
1506
|
+
declare const index_useAvatarForUser: typeof useAvatarForUser;
|
|
1507
|
+
declare const index_useByteFormatter: typeof useByteFormatter;
|
|
1508
|
+
declare const index_useConnectivityStatus: typeof useConnectivityStatus;
|
|
1509
|
+
declare const index_useCreateActivityRenderer: typeof useCreateActivityRenderer;
|
|
1510
|
+
declare const index_useCreateActivityStatusRenderer: typeof useCreateActivityStatusRenderer;
|
|
1511
|
+
declare const index_useCreateAttachmentForScreenReaderRenderer: typeof useCreateAttachmentForScreenReaderRenderer;
|
|
1512
|
+
declare const index_useCreateAvatarRenderer: typeof useCreateAvatarRenderer;
|
|
1513
|
+
declare const index_useCreateScrollToEndButtonRenderer: typeof useCreateScrollToEndButtonRenderer;
|
|
1514
|
+
declare const index_useDateFormatter: typeof useDateFormatter;
|
|
1515
|
+
declare const index_useDebouncedNotifications: typeof useDebouncedNotifications;
|
|
1516
|
+
declare const index_useDictateInterims: typeof useDictateInterims;
|
|
1517
|
+
declare const index_useDictateState: typeof useDictateState;
|
|
1518
|
+
declare const index_useDirection: typeof useDirection;
|
|
1519
|
+
declare const index_useDisabled: typeof useDisabled;
|
|
1520
|
+
declare const index_useDismissNotification: typeof useDismissNotification;
|
|
1521
|
+
declare const index_useEmitTypingIndicator: typeof useEmitTypingIndicator;
|
|
1522
|
+
declare const index_useGetActivitiesByKey: typeof useGetActivitiesByKey;
|
|
1523
|
+
declare const index_useGetActivityByKey: typeof useGetActivityByKey;
|
|
1524
|
+
declare const index_useGetKeyByActivity: typeof useGetKeyByActivity;
|
|
1525
|
+
declare const index_useGetKeyByActivityId: typeof useGetKeyByActivityId;
|
|
1526
|
+
declare const index_useGetSendTimeoutForActivity: typeof useGetSendTimeoutForActivity;
|
|
1527
|
+
declare const index_useGrammars: typeof useGrammars;
|
|
1528
|
+
declare const index_useGroupActivities: typeof useGroupActivities;
|
|
1529
|
+
declare const index_useGroupTimestamp: typeof useGroupTimestamp;
|
|
1530
|
+
declare const index_useLanguage: typeof useLanguage;
|
|
1531
|
+
declare const index_useLastAcknowledgedActivityKey: typeof useLastAcknowledgedActivityKey;
|
|
1532
|
+
declare const index_useLastReadActivityKey: typeof useLastReadActivityKey;
|
|
1533
|
+
declare const index_useLocalizer: typeof useLocalizer;
|
|
1534
|
+
declare const index_useMarkActivityAsSpoken: typeof useMarkActivityAsSpoken;
|
|
1535
|
+
declare const index_useMarkActivityKeyAsRead: typeof useMarkActivityKeyAsRead;
|
|
1536
|
+
declare const index_useMarkAllAsAcknowledged: typeof useMarkAllAsAcknowledged;
|
|
1537
|
+
declare const index_useNotifications: typeof useNotifications;
|
|
1538
|
+
declare const index_usePerformCardAction: typeof usePerformCardAction;
|
|
1539
|
+
declare const index_usePonyfill: typeof usePonyfill;
|
|
1540
|
+
declare const index_usePostActivity: typeof usePostActivity;
|
|
1541
|
+
declare const index_useReferenceGrammarID: typeof useReferenceGrammarID;
|
|
1542
|
+
declare const index_useRelativeTimeFormatter: typeof useRelativeTimeFormatter;
|
|
1543
|
+
declare const index_useRenderAttachment: typeof useRenderAttachment;
|
|
1544
|
+
declare const index_useRenderToast: typeof useRenderToast;
|
|
1545
|
+
declare const index_useRenderTypingIndicator: typeof useRenderTypingIndicator;
|
|
1546
|
+
declare const index_useSendBoxAttachments: typeof useSendBoxAttachments;
|
|
1547
|
+
declare const index_useSendBoxValue: typeof useSendBoxValue;
|
|
1548
|
+
declare const index_useSendEvent: typeof useSendEvent;
|
|
1549
|
+
declare const index_useSendFiles: typeof useSendFiles;
|
|
1550
|
+
declare const index_useSendMessage: typeof useSendMessage;
|
|
1551
|
+
declare const index_useSendMessageBack: typeof useSendMessageBack;
|
|
1552
|
+
declare const index_useSendPostBack: typeof useSendPostBack;
|
|
1553
|
+
declare const index_useSendTimeoutForActivity: typeof useSendTimeoutForActivity;
|
|
1554
|
+
declare const index_useSendTypingIndicator: typeof useSendTypingIndicator;
|
|
1555
|
+
declare const index_useSetNotification: typeof useSetNotification;
|
|
1556
|
+
declare const index_useShouldSpeakIncomingActivity: typeof useShouldSpeakIncomingActivity;
|
|
1557
|
+
declare const index_useStartDictate: typeof useStartDictate;
|
|
1558
|
+
declare const index_useStopDictate: typeof useStopDictate;
|
|
1559
|
+
declare const index_useStyleOptions: typeof useStyleOptions;
|
|
1560
|
+
declare const index_useSubmitSendBox: typeof useSubmitSendBox;
|
|
1561
|
+
declare const index_useSuggestedActions: typeof useSuggestedActions;
|
|
1562
|
+
declare const index_useTimeoutForSend: typeof useTimeoutForSend;
|
|
1563
|
+
declare const index_useTrackDimension: typeof useTrackDimension;
|
|
1564
|
+
declare const index_useTrackEvent: typeof useTrackEvent;
|
|
1565
|
+
declare const index_useTrackException: typeof useTrackException;
|
|
1566
|
+
declare const index_useTrackTiming: typeof useTrackTiming;
|
|
1567
|
+
declare const index_useUIState: typeof useUIState;
|
|
1568
|
+
declare const index_useUserID: typeof useUserID;
|
|
1569
|
+
declare const index_useUsername: typeof useUsername;
|
|
1570
|
+
declare const index_useVoiceSelector: typeof useVoiceSelector;
|
|
1571
|
+
declare namespace index {
|
|
1572
|
+
export { index_useActiveTyping as useActiveTyping, index_useActivities as useActivities, index_useActivityKeys as useActivityKeys, index_useActivityKeysByRead as useActivityKeysByRead, index_useAvatarForBot as useAvatarForBot, index_useAvatarForUser as useAvatarForUser, index_useByteFormatter as useByteFormatter, index_useConnectivityStatus as useConnectivityStatus, index_useCreateActivityRenderer as useCreateActivityRenderer, index_useCreateActivityStatusRenderer as useCreateActivityStatusRenderer, index_useCreateAttachmentForScreenReaderRenderer as useCreateAttachmentForScreenReaderRenderer, index_useCreateAvatarRenderer as useCreateAvatarRenderer, index_useCreateScrollToEndButtonRenderer as useCreateScrollToEndButtonRenderer, index_useDateFormatter as useDateFormatter, index_useDebouncedNotifications as useDebouncedNotifications, index_useDictateInterims as useDictateInterims, index_useDictateState as useDictateState, index_useDirection as useDirection, index_useDisabled as useDisabled, index_useDismissNotification as useDismissNotification, index_useEmitTypingIndicator as useEmitTypingIndicator, index_useGetActivitiesByKey as useGetActivitiesByKey, index_useGetActivityByKey as useGetActivityByKey, useGetHasAcknoweledgedByActivityKey as useGetHasAcknowledgedByActivityKey, index_useGetKeyByActivity as useGetKeyByActivity, index_useGetKeyByActivityId as useGetKeyByActivityId, index_useGetSendTimeoutForActivity as useGetSendTimeoutForActivity, index_useGrammars as useGrammars, index_useGroupActivities as useGroupActivities, useGroupActivitiesBy as useGroupActivitiesByName, index_useGroupTimestamp as useGroupTimestamp, index_useLanguage as useLanguage, index_useLastAcknowledgedActivityKey as useLastAcknowledgedActivityKey, index_useLastReadActivityKey as useLastReadActivityKey, index_useLocalizer as useLocalizer, index_useMarkActivityAsSpoken as useMarkActivityAsSpoken, index_useMarkActivityKeyAsRead as useMarkActivityKeyAsRead, index_useMarkAllAsAcknowledged as useMarkAllAsAcknowledged, index_useNotifications as useNotifications, index_usePerformCardAction as usePerformCardAction, index_usePonyfill as usePonyfill, index_usePostActivity as usePostActivity, index_useReferenceGrammarID as useReferenceGrammarID, index_useRelativeTimeFormatter as useRelativeTimeFormatter, index_useRenderAttachment as useRenderAttachment, index_useRenderToast as useRenderToast, index_useRenderTypingIndicator as useRenderTypingIndicator, index_useSendBoxAttachments as useSendBoxAttachments, index_useSendBoxValue as useSendBoxValue, index_useSendEvent as useSendEvent, index_useSendFiles as useSendFiles, index_useSendMessage as useSendMessage, index_useSendMessageBack as useSendMessageBack, index_useSendPostBack as useSendPostBack, useSendStatus as useSendStatusByActivityKey, index_useSendTimeoutForActivity as useSendTimeoutForActivity, index_useSendTypingIndicator as useSendTypingIndicator, index_useSetNotification as useSetNotification, index_useShouldSpeakIncomingActivity as useShouldSpeakIncomingActivity, index_useStartDictate as useStartDictate, index_useStopDictate as useStopDictate, index_useStyleOptions as useStyleOptions, index_useSubmitSendBox as useSubmitSendBox, index_useSuggestedActions as useSuggestedActions, index_useTimeoutForSend as useTimeoutForSend, index_useTrackDimension as useTrackDimension, index_useTrackEvent as useTrackEvent, index_useTrackException as useTrackException, index_useTrackTiming as useTrackTiming, index_useUIState as useUIState, index_useUserID as useUserID, index_useUsername as useUsername, index_useVoiceSelector as useVoiceSelector };
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
type Work<T> = (...args: unknown[]) => T;
|
|
1576
|
+
type Enhancer<T> = (next: Work<T>) => Work<T>;
|
|
1577
|
+
type Middleware<Setup, Result> = (setup: Setup) => Enhancer<Result>;
|
|
1578
|
+
declare function concatMiddleware<Setup, Result>(...middleware: Middleware<Setup, Result>[]): Middleware<Setup, Result>;
|
|
1579
|
+
|
|
1580
|
+
declare function localize(id: string, language: string, ...args: string[]): string | boolean;
|
|
1581
|
+
|
|
1582
|
+
declare function normalizeStyleOptions({ hideScrollToEndButton, newMessagesButtonFontSize, ...options }?: StyleOptions): StrictStyleOptions;
|
|
1583
|
+
|
|
1584
|
+
type WebSpeechPonyfill = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Function to resume `AudioContext` object when called.
|
|
1587
|
+
*
|
|
1588
|
+
* Web Chat will call this function on user gestures to resume suspended `AudioContext`.
|
|
1589
|
+
*/
|
|
1590
|
+
resumeAudioContext?: () => Promise<void>;
|
|
1591
|
+
/** Polyfill for Web Speech API `SpeechGrammarList` class. */
|
|
1592
|
+
SpeechGrammarList?: typeof SpeechGrammarList;
|
|
1593
|
+
/** Polyfill for Web Speech API `SpeechRecognition` class. */
|
|
1594
|
+
SpeechRecognition?: typeof SpeechRecognition;
|
|
1595
|
+
/** Polyfill for Web Speech API `speechSynthesis` instance. */
|
|
1596
|
+
speechSynthesis?: SpeechSynthesis;
|
|
1597
|
+
/** Polyfill for Web Speech API `SpeechSynthesisUtterance` class. */
|
|
1598
|
+
SpeechSynthesisUtterance?: typeof SpeechSynthesisUtterance;
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1601
|
+
type WebSpeechPonyfillFactory = ({ referenceGrammarID }: {
|
|
1602
|
+
referenceGrammarID?: string;
|
|
1603
|
+
}) => WebSpeechPonyfill;
|
|
1604
|
+
|
|
1605
|
+
declare const version: string;
|
|
1606
|
+
declare const buildInfo: {
|
|
1607
|
+
buildTool: string;
|
|
1608
|
+
moduleFormat: string;
|
|
1609
|
+
version: string;
|
|
1610
|
+
};
|
|
1611
|
+
|
|
1612
|
+
export { type ActivityComponentFactory, type ActivityMiddleware, type ActivityStatusMiddleware, type ActivityStatusRenderer, type AttachmentForScreenReaderComponentFactory, type AttachmentForScreenReaderMiddleware, type AttachmentMiddleware, type AvatarComponentFactory, type AvatarMiddleware, type CardActionMiddleware, Composer, type ComposerProps, type ContextOf, type DebouncedNotification, type DebouncedNotifications, type GroupActivities, type GroupActivitiesMiddleware, type Notification, type PerformCardAction, type PostActivityFile, type RenderActivityStatus, type RenderAttachment, type RenderToast, type RenderTypingIndicator, type ScrollToEndButtonComponentFactory, type ScrollToEndButtonMiddleware, type SendBoxMiddleware, type SendBoxMiddlewareProps, SendBoxMiddlewareProxy, type SendBoxMiddlewareRequest, type SendBoxToolbarMiddleware, type SendBoxToolbarMiddlewareProps, SendBoxToolbarMiddlewareProxy, type SendBoxToolbarMiddlewareRequest, type SendStatus, type StrictStyleOptions, type StyleOptions, type ToastMiddleware, type Typing, type TypingIndicatorMiddleware, type WebSpeechPonyfill, type WebSpeechPonyfillFactory, buildInfo, concatMiddleware, DEFAULT_OPTIONS as defaultStyleOptions, index as hooks, initSendBoxMiddleware, initSendBoxToolbarMiddleware, localize, normalizeStyleOptions, version };
|