botframework-webchat-api 4.18.1 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/boot/deprecated/decorator.js +7 -0
- package/boot/deprecated/decorator.mjs +5 -0
- package/boot/deprecated/graph.js +7 -0
- package/boot/deprecated/graph.mjs +5 -0
- package/boot/deprecated/hook.js +7 -0
- package/boot/deprecated/hook.mjs +5 -0
- package/boot/deprecated/internal.js +7 -0
- package/boot/deprecated/internal.mjs +5 -0
- package/boot/deprecated/middleware.js +7 -0
- package/boot/deprecated/middleware.mjs +5 -0
- package/decorator.js +1 -1
- package/dist/StyleOptions-4TkRjGbQ.d.mts +802 -0
- package/dist/StyleOptions-4TkRjGbQ.d.ts +802 -0
- package/dist/_dtsroll-chunks/B1b7R2eH-avatarMiddleware-CHa011_j.d.ts +109 -0
- package/dist/_dtsroll-chunks/CEcj2Npa-botframework-webchat-redux-store.d.ts +16 -0
- package/dist/_dtsroll-chunks/DnThgHcF-botframework-webchat-api-middleware.d.ts +231 -0
- package/dist/_dtsroll-chunks/Dtb0H_Ee-handler-chain.d.ts +4 -0
- package/dist/_dtsroll-chunks/N-ttGLxs-botframework-webchat-base.utils.d.ts +4 -0
- package/dist/_dtsroll-chunks/qKTV3q17-avatarMiddleware-CHa011_j.d.ts +93 -0
- package/dist/botframework-webchat-api.d.mts +173 -1250
- package/dist/botframework-webchat-api.d.ts +387 -0
- package/dist/botframework-webchat-api.decorator.d.mts +71 -26
- package/dist/botframework-webchat-api.decorator.d.ts +81 -0
- package/dist/botframework-webchat-api.decorator.js +2 -0
- package/dist/botframework-webchat-api.decorator.js.map +1 -0
- package/dist/botframework-webchat-api.decorator.mjs +1 -2
- package/dist/botframework-webchat-api.decorator.mjs.map +1 -1
- package/dist/botframework-webchat-api.graph.d.mts +5 -0
- package/dist/botframework-webchat-api.graph.d.ts +2 -0
- package/dist/botframework-webchat-api.graph.js +2 -0
- package/dist/botframework-webchat-api.graph.js.map +1 -0
- package/dist/botframework-webchat-api.graph.mjs +2 -0
- package/dist/botframework-webchat-api.hook.d.mts +9 -0
- package/dist/botframework-webchat-api.hook.d.ts +9 -0
- package/dist/botframework-webchat-api.hook.js +2 -0
- package/dist/botframework-webchat-api.hook.js.map +1 -0
- package/dist/botframework-webchat-api.hook.mjs +2 -0
- package/dist/botframework-webchat-api.hook.mjs.map +1 -0
- package/dist/botframework-webchat-api.internal.d.mts +66 -1
- package/dist/botframework-webchat-api.internal.d.ts +68 -0
- package/dist/botframework-webchat-api.internal.js +2 -0
- package/dist/botframework-webchat-api.internal.js.map +1 -0
- package/dist/botframework-webchat-api.internal.mjs +1 -2
- package/dist/botframework-webchat-api.internal.mjs.map +1 -1
- package/dist/botframework-webchat-api.js +2 -0
- package/dist/botframework-webchat-api.js.map +1 -0
- package/dist/botframework-webchat-api.middleware.d.mts +45 -0
- package/dist/botframework-webchat-api.middleware.d.ts +45 -0
- package/dist/botframework-webchat-api.middleware.js +2 -0
- package/dist/botframework-webchat-api.middleware.js.map +1 -0
- package/dist/botframework-webchat-api.middleware.mjs +2 -0
- package/dist/botframework-webchat-api.middleware.mjs.map +1 -0
- package/dist/botframework-webchat-api.mjs +1 -139
- package/dist/botframework-webchat-api.mjs.LEGAL.txt +2 -27
- package/dist/botframework-webchat-api.mjs.map +1 -1
- package/dist/chunk-3YCFZWVR.js +2 -0
- package/dist/chunk-3YCFZWVR.js.map +1 -0
- package/dist/chunk-42OUJPJV.js +2 -0
- package/dist/chunk-42OUJPJV.js.map +1 -0
- package/dist/chunk-5HALOM2E.mjs +2 -0
- package/dist/chunk-5HALOM2E.mjs.map +1 -0
- package/dist/chunk-5JETBPYY.mjs +2 -0
- package/dist/chunk-5JETBPYY.mjs.map +1 -0
- package/dist/chunk-5X4VJZOM.js +2 -0
- package/dist/chunk-5X4VJZOM.js.map +1 -0
- package/dist/chunk-62M3VAKR.js +2 -0
- package/dist/chunk-62M3VAKR.js.map +1 -0
- package/dist/chunk-7GV72C4W.js +2 -0
- package/dist/chunk-7GV72C4W.js.map +1 -0
- package/dist/chunk-A6GQOZT3.js +2 -0
- package/dist/chunk-A6GQOZT3.js.map +1 -0
- package/dist/chunk-BWPBSJNH.js +2 -0
- package/dist/chunk-BWPBSJNH.js.map +1 -0
- package/dist/chunk-CIL5QUZ4.js +2 -0
- package/dist/chunk-CIL5QUZ4.js.map +1 -0
- package/dist/chunk-EVD4K5QH.mjs +2 -0
- package/dist/chunk-EVD4K5QH.mjs.map +1 -0
- package/dist/chunk-FA2GLWPN.mjs +2 -0
- package/dist/chunk-FA2GLWPN.mjs.map +1 -0
- package/dist/chunk-FD7QXXVX.js +2 -0
- package/dist/chunk-FD7QXXVX.js.map +1 -0
- package/dist/chunk-G5ZR6XJL.js +2 -0
- package/dist/chunk-G5ZR6XJL.js.map +1 -0
- package/dist/chunk-JKWDQH6P.mjs +2 -0
- package/dist/chunk-JKWDQH6P.mjs.map +1 -0
- package/dist/chunk-L5VFUNB4.js +2 -0
- package/dist/chunk-L5VFUNB4.js.map +1 -0
- package/dist/chunk-LIZ64UIL.mjs +2 -0
- package/dist/chunk-LIZ64UIL.mjs.map +1 -0
- package/dist/chunk-LW6LHF6Z.mjs +2 -0
- package/dist/chunk-LW6LHF6Z.mjs.map +1 -0
- package/dist/chunk-MMNBOGJJ.mjs +2 -0
- package/dist/chunk-MMNBOGJJ.mjs.map +1 -0
- package/dist/chunk-RLEJOP6E.mjs +2 -0
- package/dist/chunk-RLEJOP6E.mjs.map +1 -0
- package/dist/chunk-UK6V7R7K.js +2 -0
- package/dist/chunk-UK6V7R7K.js.map +1 -0
- package/dist/{chunk-J6D5YEY6.mjs → chunk-VAX7AB37.mjs} +1 -2
- package/dist/chunk-VAX7AB37.mjs.map +1 -0
- package/dist/chunk-VNGDFILB.mjs +2 -0
- package/dist/chunk-VNGDFILB.mjs.map +1 -0
- package/dist/chunk-XVCIEKX5.mjs +2 -0
- package/dist/chunk-XVCIEKX5.mjs.map +1 -0
- package/dist/hook-BXcgekzo.d.mts +536 -0
- package/dist/hook-C8NHjp6P.d.ts +536 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/dist/templateMiddleware-BEttHPJk.d.mts +20 -0
- package/dist/templateMiddleware-BEttHPJk.d.ts +20 -0
- package/dist/types-BKuj7f2p.d.ts +228 -0
- package/dist/types-BZzd7aAk.d.mts +228 -0
- package/graph.js +3 -0
- package/hook.js +3 -0
- package/internal.js +1 -1
- package/middleware.js +3 -0
- package/package.json +158 -90
- package/src/StyleOptions.ts +400 -285
- package/src/__tests__/addMetaTag.spec.js +9 -0
- package/src/__tests__/addMetaTag.spec.mjs +9 -0
- package/src/boot/decorator.ts +21 -0
- package/src/boot/graph.ts +1 -0
- package/src/boot/hook.ts +82 -0
- package/src/boot/internal.ts +7 -0
- package/src/boot/middleware.ts +60 -0
- package/src/buildInfo.ts +9 -0
- package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +57 -0
- package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +34 -0
- package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorRequestContext.ts +48 -0
- package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +43 -0
- package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +40 -0
- package/src/decorator/DecoratorComposer.tsx +51 -0
- package/src/decorator/internal/InternalDecoratorComposer.tsx +33 -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/templateDecorator.tsx +113 -0
- package/src/decorator/types.ts +4 -0
- package/src/decorator/useDecoratorRequest.ts +15 -0
- package/src/defaultStyleOptions.ts +40 -23
- package/src/env.d.ts +9 -0
- package/src/errorBox/errorBoxTelemetryPolymiddleware.ts +53 -0
- package/src/hooks/Composer.tsx +204 -142
- package/src/hooks/index.ts +19 -2
- package/src/hooks/internal/Tracker.ts +1 -1
- package/src/hooks/internal/WebChatAPIContext.ts +7 -12
- package/src/hooks/internal/WebChatReduxContext.js +3 -2
- package/src/hooks/internal/usePostVoiceActivity.ts +18 -0
- package/src/hooks/internal/useRegisterVoiceHandler.ts +23 -0
- package/src/hooks/internal/useShouldShowMicrophoneButton.ts +22 -0
- package/src/hooks/internal/useVoiceHandlers.ts +11 -0
- package/src/hooks/internal/useVoiceStateWritable.ts +18 -0
- package/src/hooks/middleware/UserlandBoundary.js +2 -2
- package/src/hooks/middleware/activityFallbackPolymiddleware.ts +23 -0
- package/src/hooks/middleware/applyMiddleware.js +5 -5
- package/src/hooks/middleware/concatMiddleware.spec.js +20 -0
- package/src/hooks/middleware/concatMiddleware.ts +7 -6
- package/src/hooks/private/reduceIterable.spec.ts +0 -2
- package/src/hooks/useActiveTyping.ts +3 -2
- package/src/hooks/useActivities.ts +62 -3
- package/src/hooks/useCreateActivityRenderer.ts +27 -6
- package/src/hooks/useCreateActivityStatusRenderer.tsx +13 -33
- package/src/hooks/useCreateAvatarRenderer.ts +19 -33
- package/src/hooks/useDebouncedNotifications.spec.js +1 -0
- package/src/hooks/useDisabled.ts +8 -2
- package/src/hooks/useLocalizer.ts +3 -3
- package/src/hooks/useRenderAttachment.ts +2 -2
- package/src/hooks/useSendBoxAttachments.ts +2 -0
- package/src/hooks/useSendFiles.ts +1 -1
- package/src/hooks/useSendTimeoutForActivity.ts +2 -0
- package/src/hooks/useStartVoice.ts +9 -0
- package/src/hooks/useStopVoice.ts +9 -0
- package/src/hooks/useStyleOptions.ts +1 -6
- package/src/hooks/useSuggestedActions.ts +9 -23
- package/src/hooks/useTrackEvent.ts +3 -3
- package/src/hooks/useUIState.ts +18 -0
- package/src/hooks/useVoiceRecordingMuted.ts +24 -0
- package/src/hooks/useVoiceState.ts +15 -0
- package/src/hooks/validation/uiState.parseUIState.spec.ts +21 -0
- package/src/hooks/validation/uiState.ts +10 -0
- package/src/index.ts +52 -94
- package/src/legacy/LegacyActivityBridge.tsx +77 -0
- package/src/legacy/LegacyActivityBridgeContext.ts +23 -0
- package/src/legacy/createActivityPolymiddlewareFromLegacy.tsx +123 -0
- package/src/legacy/createAvatarPolymiddlewareFromLegacy.tsx +102 -0
- package/src/localization/ar-SA.json +134 -111
- package/src/localization/bg-BG.json +134 -111
- package/src/localization/ca-ES.json +134 -111
- package/src/localization/cs-CZ.json +134 -111
- package/src/localization/da-DK.json +134 -111
- package/src/localization/de-DE.json +134 -111
- package/src/localization/el-GR.json +134 -111
- package/src/localization/en-US.json +45 -19
- package/src/localization/es-ES.json +134 -111
- package/src/localization/et-EE.json +134 -111
- package/src/localization/eu-ES.json +134 -111
- package/src/localization/fi-FI.json +134 -111
- package/src/localization/fr-FR.json +134 -111
- package/src/localization/gl-ES.json +134 -111
- package/src/localization/he-IL.json +134 -111
- package/src/localization/hi-IN.json +134 -111
- package/src/localization/hr-HR.json +134 -111
- package/src/localization/hu-HU.json +134 -111
- package/src/localization/id-ID.json +134 -111
- package/src/localization/it-IT.json +134 -111
- package/src/localization/ja-JP.json +134 -111
- package/src/localization/kk-KZ.json +134 -111
- package/src/localization/ko-KR.json +134 -111
- package/src/localization/lt-LT.json +134 -111
- package/src/localization/lv-LV.json +134 -111
- package/src/localization/ms-MY.json +134 -111
- package/src/localization/nb-NO.json +134 -111
- package/src/localization/nl-NL.json +134 -111
- package/src/localization/pl-PL.json +134 -111
- package/src/localization/pt-BR.json +134 -111
- package/src/localization/pt-PT.json +134 -111
- package/src/localization/ro-RO.json +134 -111
- package/src/localization/ru-RU.json +134 -111
- package/src/localization/sk-SK.json +134 -111
- package/src/localization/sl-SI.json +134 -111
- package/src/localization/sr-Cyrl-CS.json +134 -111
- package/src/localization/sr-Latn-CS.json +134 -111
- package/src/localization/sv-SE.json +134 -111
- package/src/localization/th-TH.json +134 -111
- package/src/localization/tr-TR.json +134 -111
- package/src/localization/uk-UA.json +134 -111
- package/src/localization/vi-VN.json +134 -111
- package/src/localization/yue.json +5 -16
- package/src/localization/zh-CN.json +134 -111
- package/src/localization/zh-HK.json +134 -111
- package/src/localization/zh-TW.json +134 -111
- package/src/middleware/AvatarPolymiddlewareProxy.tsx +46 -0
- package/src/middleware/SendBoxMiddleware.ts +28 -0
- package/src/middleware/SendBoxToolbarMiddleware.ts +28 -0
- package/src/middleware/private/templateMiddleware.check.test.tsx +47 -0
- package/src/{decorator → middleware}/private/templateMiddleware.test.tsx +19 -17
- package/src/middleware/private/templateMiddleware.tsx +106 -0
- package/src/middleware/useBuildRenderAvatarCallback.ts +37 -0
- package/src/normalizeStyleOptions.ts +51 -76
- package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +197 -40
- package/src/providers/ActivityKeyer/private/someIterable.spec.ts +0 -2
- package/src/providers/ActivityListener/ActivityListenerComposer.tsx +1 -1
- package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +6 -3
- package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +145 -59
- package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +236 -0
- package/src/providers/ActivityTyping/private/useReduceActivities.ts +49 -0
- package/src/providers/Capabilities/CapabilitiesComposer.tsx +53 -0
- package/src/providers/Capabilities/private/Context.ts +13 -0
- package/src/providers/Capabilities/private/capabilityRegistry.ts +45 -0
- package/src/providers/Capabilities/private/fetchCapabilitiesFromAdapter.ts +59 -0
- package/src/providers/Capabilities/private/shallowEqual.ts +18 -0
- package/src/providers/Capabilities/private/useContext.ts +12 -0
- package/src/providers/Capabilities/types/Capabilities.ts +16 -0
- package/src/providers/Capabilities/useCapabilities.ts +25 -0
- package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +116 -0
- package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +23 -0
- package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +113 -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/providers/SpeechToSpeech/SpeechToSpeechComposer.tsx +20 -0
- package/src/providers/SpeechToSpeech/private/VoiceHandlerBridge.tsx +23 -0
- package/src/providers/SpeechToSpeech/private/VoiceRecorderBridge.tsx +49 -0
- package/src/providers/SpeechToSpeech/private/useAudioPlayer.spec.tsx +355 -0
- package/src/providers/SpeechToSpeech/private/useAudioPlayer.ts +92 -0
- package/src/providers/SpeechToSpeech/private/useRecorder.spec.tsx +344 -0
- package/src/providers/SpeechToSpeech/private/useRecorder.ts +220 -0
- package/src/providers/StyleOptions/StyleOptionsComposer.tsx +46 -0
- package/src/providers/StyleOptions/private/StyleOptionsContext.ts +20 -0
- package/src/providers/StyleOptions/private/rectifyStyleOptions.ts +6 -0
- package/src/providers/StyleOptions/useStyleOptions.ts +6 -0
- package/src/tsconfig.json +5 -14
- package/src/types/ActivityStatusMiddleware.ts +1 -9
- package/src/types/AttachmentForScreenReaderMiddleware.ts +9 -2
- package/src/types/AvatarMiddleware.ts +12 -1
- package/src/types/CardActionMiddleware.ts +2 -0
- package/src/types/ComponentMiddleware.ts +1 -1
- package/src/types/GroupActivitiesMiddleware.ts +7 -11
- package/dist/botframework-webchat-api.decorator.mjs.LEGAL.txt +0 -0
- package/dist/botframework-webchat-api.internal.mjs.LEGAL.txt +0 -0
- package/dist/chunk-2S76JUVM.mjs +0 -3
- package/dist/chunk-2S76JUVM.mjs.LEGAL.txt +0 -0
- package/dist/chunk-2S76JUVM.mjs.map +0 -1
- package/dist/chunk-J6D5YEY6.mjs.LEGAL.txt +0 -0
- package/dist/chunk-ZAMHKQQC.mjs +0 -3
- package/dist/chunk-ZAMHKQQC.mjs.LEGAL.txt +0 -0
- 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/decorator/private/templateMiddleware.ts +0 -58
- package/src/hooks/internal/ErrorBox.js +0 -34
- package/src/hooks/internal/SendBoxMiddleware.ts +0 -21
- package/src/hooks/internal/SendBoxToolbarMiddleware.ts +0 -21
- package/src/hooks/internal/private/templateMiddleware.ts +0 -4
- package/src/hooks/internal/useCreateActivityRendererInternal.ts +0 -46
- package/src/hooks/internal/useDebugDeps.js +0 -30
- package/src/hooks/internal/useErrorBoxClass.js +0 -7
- package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +0 -75
- package/src/hooks/useGroupActivities.ts +0 -10
- package/src/internal.ts +0 -3
- package/src/patchStyleOptionsFromDeprecatedProps.js +0 -14
- package/src/providers/ActivityTyping/private/useMemoWithPrevious.ts +0 -17
- package/src/types/ActivityMiddleware.ts +0 -36
- package/src/types/AttachmentMiddleware.ts +0 -16
- package/src/utils/isObject.js +0 -5
- package/src/utils/warnOnce.ts +0 -10
- /package/dist/{chunk-J6D5YEY6.mjs.map → botframework-webchat-api.graph.mjs.map} +0 -0
|
@@ -1,788 +1,133 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as LegacyActivityMiddleware, a as LegacyAttachmentMiddleware, b as LegacyRenderAttachment } from './_dtsroll-chunks/DnThgHcF-botframework-webchat-api-middleware.js';
|
|
2
|
+
import { Polymiddleware } from './botframework-webchat-api.middleware.mjs';
|
|
3
|
+
export { c as ActivityComponentFactory } from './_dtsroll-chunks/DnThgHcF-botframework-webchat-api-middleware.js';
|
|
4
|
+
import { S as SendStatus, C as ComponentFactory, a as ComponentMiddleware, d as AttachmentForScreenReaderMiddleware, e as CardActionMiddleware, A as AttachmentForScreenReaderComponentFactory, b as CallFunction, P as PerformCardAction, c as ScrollToEndButtonComponentFactory, N as Notification, R as RenderToast, F as FunctionMiddleware, f as ScrollToEndButtonMiddleware, T as ToastMiddleware, g as TypingIndicatorMiddleware } from './hook-BXcgekzo.mjs';
|
|
5
|
+
export { h as ActivityStatusRenderer, D as DebouncedNotification, i as DebouncedNotifications, j as PostActivityFile, k as RenderTypingIndicator, l as Typing, m as hooks } from './hook-BXcgekzo.mjs';
|
|
6
|
+
import { a as StrictStyleOptions, S as StyleOptions } from './StyleOptions-4TkRjGbQ.mjs';
|
|
7
|
+
import { O as OneOrMany } from './_dtsroll-chunks/N-ttGLxs-botframework-webchat-base.utils.js';
|
|
8
|
+
import { WebChatActivity, DirectLineJSBotConnection, Observable, sendFiles, sendMessage, setSendBoxAttachments, GlobalScopePonyfill } from 'botframework-webchat-core';
|
|
2
9
|
import PropTypes from 'prop-types';
|
|
3
10
|
import * as react from 'react';
|
|
4
|
-
import react__default, {
|
|
11
|
+
import react__default, { ReactElement, ReactNode, Context } from 'react';
|
|
5
12
|
import * as react_chain_of_responsibility from 'react-chain-of-responsibility';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
bubbleImageHeight?: number;
|
|
131
|
-
bubbleMaxWidth?: number;
|
|
132
|
-
bubbleMinHeight?: number;
|
|
133
|
-
bubbleMinWidth?: number;
|
|
134
|
-
/**
|
|
135
|
-
* Nub offset ''bottom' will render nub at the bottom
|
|
136
|
-
* A positive or negative number will shift nub offset up/down
|
|
137
|
-
* "top" is equivalent to positive zero.
|
|
138
|
-
* "bottom" is equivalent to negative zero.
|
|
139
|
-
*/
|
|
140
|
-
bubbleNubOffset?: number | 'bottom' | 'top';
|
|
141
|
-
/**
|
|
142
|
-
* Nub size 0 will render a sharp corner
|
|
143
|
-
*/
|
|
144
|
-
bubbleNubSize?: number;
|
|
145
|
-
bubbleTextColor?: string;
|
|
146
|
-
messageActivityWordBreak?: 'normal' | 'break-all' | 'break-word' | 'keep-all';
|
|
147
|
-
/**
|
|
148
|
-
* Connectivity UI styling
|
|
149
|
-
*/
|
|
150
|
-
connectivityIconPadding?: number;
|
|
151
|
-
connectivityMarginLeftRight?: number;
|
|
152
|
-
connectivityMarginTopBottom?: number;
|
|
153
|
-
connectivityTextSize?: number | string;
|
|
154
|
-
failedConnectivity?: number | string;
|
|
155
|
-
slowConnectivity?: string;
|
|
156
|
-
notificationText?: string;
|
|
157
|
-
/**
|
|
158
|
-
* Slow connection status will render after x amount of time with no service response
|
|
159
|
-
*/
|
|
160
|
-
slowConnectionAfter?: number;
|
|
161
|
-
/**
|
|
162
|
-
* Emoji styling
|
|
163
|
-
* If true, Web Chat's default set of emoji will be enabled. See patchStyleOptions.js for default list.
|
|
164
|
-
* A custom object will enable unicode emoji specified by the developer.
|
|
165
|
-
* key: emoticon
|
|
166
|
-
* value: unicode emoji
|
|
167
|
-
*/
|
|
168
|
-
emojiSet?: boolean | Record<string, string>;
|
|
169
|
-
/**
|
|
170
|
-
* Live region - Accessibility
|
|
171
|
-
* 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.
|
|
172
|
-
*/
|
|
173
|
-
internalLiveRegionFadeAfter?: number;
|
|
174
|
-
/**
|
|
175
|
-
* Markdown styling
|
|
176
|
-
* Parse markdown to ensure carriage return is respected
|
|
177
|
-
*/
|
|
178
|
-
markdownRespectCRLF?: boolean;
|
|
179
|
-
/**
|
|
180
|
-
* Render HTML inside Markdown.
|
|
181
|
-
*
|
|
182
|
-
* `true` to render HTML inside Markdown, otherwise, `false`. Defaults to `true`.
|
|
183
|
-
*
|
|
184
|
-
* New in 4.17: This option is enabled by default.
|
|
185
|
-
*/
|
|
186
|
-
markdownRenderHTML?: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Assign new image for anchor links to indicate external
|
|
189
|
-
*/
|
|
190
|
-
markdownExternalLinkIconImage?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Scroll behavior styling
|
|
193
|
-
*/
|
|
194
|
-
/**
|
|
195
|
-
* Prevent scroll to end button from rendering
|
|
196
|
-
*
|
|
197
|
-
* @deprecated Since 4.14.0: To hide the scroll to end button, please set `scrollToEndButtonBehavior` to `false`.
|
|
198
|
-
*/
|
|
199
|
-
hideScrollToEndButton?: boolean;
|
|
200
|
-
/**
|
|
201
|
-
* Snap to activity to 'snap-point'
|
|
202
|
-
* If true, scrolling will pause after 1 activity is received.
|
|
203
|
-
* Specifying a number will pause after X number of activities
|
|
204
|
-
*/
|
|
205
|
-
autoScrollSnapOnActivity?: boolean | number;
|
|
206
|
-
/**
|
|
207
|
-
* Specify number of pixels to overscroll or underscroll after pause
|
|
208
|
-
*/
|
|
209
|
-
autoScrollSnapOnActivityOffset?: number;
|
|
210
|
-
/**
|
|
211
|
-
* If true, scrolling will pause after activities have filled the page.
|
|
212
|
-
* Specifying a number (0 to 1) will pause after % of page is filled
|
|
213
|
-
*/
|
|
214
|
-
autoScrollSnapOnPage?: boolean | number;
|
|
215
|
-
/**
|
|
216
|
-
* Specify number of pixels to overscroll or underscroll after pause
|
|
217
|
-
*/
|
|
218
|
-
autoScrollSnapOnPageOffset?: number;
|
|
219
|
-
/**
|
|
220
|
-
* Send box styling
|
|
221
|
-
*/
|
|
222
|
-
hideSendBox?: boolean;
|
|
223
|
-
hideUploadButton?: boolean;
|
|
224
|
-
/**
|
|
225
|
-
* (EXPERIMENTAL) `true`, if the telephone keypad button should be shown, otherwise, `false`. Defaults to `true`.
|
|
226
|
-
*
|
|
227
|
-
* @deprecated This is an experimental style options and should not be used without understanding its risk.
|
|
228
|
-
*/
|
|
229
|
-
hideTelephoneKeypadButton?: boolean | undefined;
|
|
230
|
-
microphoneButtonColorOnDictate?: string;
|
|
231
|
-
sendBoxBackground?: string;
|
|
232
|
-
/**
|
|
233
|
-
* The comma-delimited file types that the upload button should accept.
|
|
234
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
235
|
-
* @example 'image/*,.pdf'
|
|
236
|
-
*/
|
|
237
|
-
uploadAccept?: string;
|
|
238
|
-
/**
|
|
239
|
-
* If true, the upload button will accept multiple files.
|
|
240
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple
|
|
241
|
-
*/
|
|
242
|
-
uploadMultiple?: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* If set to `send` (default), attachment will be sent when the send button is clicked, or when the message is being sent.
|
|
245
|
-
*
|
|
246
|
-
* Otherwise, if set to `attach`, attachment will be sent immediately after file is selected.
|
|
247
|
-
*/
|
|
248
|
-
sendAttachmentOn?: 'attach' | 'send';
|
|
249
|
-
/** Send box button: Icon color, defaults to subtle */
|
|
250
|
-
sendBoxButtonColor?: string;
|
|
251
|
-
/**
|
|
252
|
-
* Send box button: Shade border radius
|
|
253
|
-
*
|
|
254
|
-
* @default 2
|
|
255
|
-
*/
|
|
256
|
-
sendBoxButtonShadeBorderRadius?: number;
|
|
257
|
-
/** Send box button: Shade color */
|
|
258
|
-
sendBoxButtonShadeColor?: string;
|
|
259
|
-
/**
|
|
260
|
-
* Send box button: Shade inset
|
|
261
|
-
*
|
|
262
|
-
* @default 2
|
|
263
|
-
*/
|
|
264
|
-
sendBoxButtonShadeInset?: number;
|
|
265
|
-
/** Send box button (while `:active`): Icon color */
|
|
266
|
-
sendBoxButtonColorOnActive?: string;
|
|
267
|
-
/**
|
|
268
|
-
* Send box button (while `:active`): Shade color
|
|
269
|
-
*
|
|
270
|
-
* @default '#EDEBE9'
|
|
271
|
-
*/
|
|
272
|
-
sendBoxButtonShadeColorOnActive?: string;
|
|
273
|
-
/**
|
|
274
|
-
* Send box button (while `:disabled`): Icon color
|
|
275
|
-
*
|
|
276
|
-
* @default '#A19F9D'
|
|
277
|
-
*/
|
|
278
|
-
sendBoxButtonColorOnDisabled?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Send box button (while `:disabled`): Shade color
|
|
281
|
-
*
|
|
282
|
-
* @default '#F3F2F1'
|
|
283
|
-
*/
|
|
284
|
-
sendBoxButtonShadeColorOnDisabled?: string;
|
|
285
|
-
/** Send box button (while `:focus`): Icon color */
|
|
286
|
-
sendBoxButtonColorOnFocus?: string;
|
|
287
|
-
/** Send box button (while `:focus`): Shade color */
|
|
288
|
-
sendBoxButtonShadeColorOnFocus?: string;
|
|
289
|
-
/** Send box button (while `:hover`): Icon color */
|
|
290
|
-
sendBoxButtonColorOnHover?: string;
|
|
291
|
-
/**
|
|
292
|
-
* Send box button (while `:hover`): Shade color
|
|
293
|
-
*
|
|
294
|
-
* @default '#F3F2F1'
|
|
295
|
-
*/
|
|
296
|
-
sendBoxButtonShadeColorOnHover?: string;
|
|
297
|
-
/**
|
|
298
|
-
* Send box button (while `:focus-visible`): Keyboard focus indicator border color
|
|
299
|
-
*
|
|
300
|
-
* @default '#605E5C'
|
|
301
|
-
*/
|
|
302
|
-
sendBoxButtonKeyboardFocusIndicatorBorderColor?: string;
|
|
303
|
-
/**
|
|
304
|
-
* Send box button (while `:focus-visible`): Keyboard focus indicator border radius
|
|
305
|
-
*
|
|
306
|
-
* @default 0
|
|
307
|
-
*/
|
|
308
|
-
sendBoxButtonKeyboardFocusIndicatorBorderRadius?: number | string;
|
|
309
|
-
/**
|
|
310
|
-
* Send box button (while `:focus-visible`): Keyboard focus indicator border style
|
|
311
|
-
*
|
|
312
|
-
* @default 'solid'
|
|
313
|
-
*/
|
|
314
|
-
sendBoxButtonKeyboardFocusIndicatorBorderStyle?: string;
|
|
315
|
-
/**
|
|
316
|
-
* Send box button (while` :focus-visible`): Keyboard focus indicator border width
|
|
317
|
-
*
|
|
318
|
-
* @default 4
|
|
319
|
-
*/
|
|
320
|
-
sendBoxButtonKeyboardFocusIndicatorBorderWidth?: number;
|
|
321
|
-
/**
|
|
322
|
-
* Send box button (while `:focus-visible`): Keyboard focus indicator inset
|
|
323
|
-
*
|
|
324
|
-
* @default 4
|
|
325
|
-
*/
|
|
326
|
-
sendBoxButtonKeyboardFocusIndicatorInset?: number;
|
|
327
|
-
/**
|
|
328
|
-
* Disabled text color defaults to subtle
|
|
329
|
-
*/
|
|
330
|
-
sendBoxDisabledTextColor?: string;
|
|
331
|
-
sendBoxHeight?: number | string;
|
|
332
|
-
sendBoxMaxHeight?: number | string;
|
|
333
|
-
sendBoxTextColor?: string;
|
|
334
|
-
sendBoxBorderBottom?: number | string;
|
|
335
|
-
sendBoxBorderLeft?: number | string;
|
|
336
|
-
sendBoxBorderRight?: number | string;
|
|
337
|
-
sendBoxBorderTop?: number | string;
|
|
338
|
-
sendBoxPlaceholderColor?: string;
|
|
339
|
-
sendBoxTextWrap?: boolean;
|
|
340
|
-
sendBoxButtonAlignment?: 'bottom' | 'stretch' | 'top';
|
|
341
|
-
/**
|
|
342
|
-
* Show spoken text
|
|
343
|
-
*/
|
|
344
|
-
showSpokenText?: boolean;
|
|
345
|
-
/**
|
|
346
|
-
* Spinner animation styling
|
|
347
|
-
*/
|
|
348
|
-
spinnerAnimationBackgroundImage?: string;
|
|
349
|
-
spinnerAnimationHeight?: number | string;
|
|
350
|
-
spinnerAnimationWidth?: number | string;
|
|
351
|
-
spinnerAnimationPadding?: number | string;
|
|
352
|
-
/**
|
|
353
|
-
* Suggested Actions
|
|
354
|
-
*/
|
|
355
|
-
/**
|
|
356
|
-
* Suggested action: border radius
|
|
357
|
-
*
|
|
358
|
-
* @default 0
|
|
359
|
-
*/
|
|
360
|
-
suggestedActionBorderRadius?: number | string;
|
|
361
|
-
/**
|
|
362
|
-
* Suggested action: Background
|
|
363
|
-
*
|
|
364
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColor` instead. This option will be removed on or after 2023-09-16.
|
|
365
|
-
*/
|
|
366
|
-
suggestedActionBackground?: string;
|
|
367
|
-
/**
|
|
368
|
-
* Suggested action: Background color
|
|
369
|
-
*
|
|
370
|
-
* @default 'White'
|
|
371
|
-
*/
|
|
372
|
-
suggestedActionBackgroundColor?: string;
|
|
373
|
-
/** Suggested action: Border color, defaults to accent color */
|
|
374
|
-
suggestedActionBorderColor?: string;
|
|
375
|
-
/**
|
|
376
|
-
* Suggested action: Border style
|
|
377
|
-
*
|
|
378
|
-
* @default 'solid'
|
|
379
|
-
*/
|
|
380
|
-
suggestedActionBorderStyle?: string;
|
|
381
|
-
/**
|
|
382
|
-
* Suggested action: Border width
|
|
383
|
-
*
|
|
384
|
-
* @default 2
|
|
385
|
-
*/
|
|
386
|
-
suggestedActionBorderWidth?: number;
|
|
387
|
-
/** Suggested action: Text color, defaults to accent color */
|
|
388
|
-
suggestedActionTextColor?: string;
|
|
389
|
-
/** Suggested action (while `:disabled`): Background color, defaults to suggestedActionBackground */
|
|
390
|
-
suggestedActionBackgroundColorOnDisabled?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Suggested action (while `:disabled`): Border color
|
|
393
|
-
*
|
|
394
|
-
* @default '#E6E6E6'
|
|
395
|
-
*/
|
|
396
|
-
suggestedActionBorderColorOnDisabled?: string;
|
|
397
|
-
/** Suggested action (while `:disabled`): Border style */
|
|
398
|
-
suggestedActionBorderStyleOnDisabled?: string;
|
|
399
|
-
/** Suggested action (while `:disabled`): Border width */
|
|
400
|
-
suggestedActionBorderWidthOnDisabled?: number;
|
|
401
|
-
/** Suggested action (while `:disabled`): Foreground color, defaults to subtle color */
|
|
402
|
-
suggestedActionTextColorOnDisabled?: string;
|
|
403
|
-
/**
|
|
404
|
-
* Suggested action (while `:active`): Background color
|
|
405
|
-
*
|
|
406
|
-
* @default '#EDEBE9'
|
|
407
|
-
*/
|
|
408
|
-
suggestedActionBackgroundColorOnActive?: string;
|
|
409
|
-
/** Suggested action (while `:active`): Border color */
|
|
410
|
-
suggestedActionBorderColorOnActive?: string;
|
|
411
|
-
/** Suggested action (while `:active`): Border style */
|
|
412
|
-
suggestedActionBorderStyleOnActive?: string;
|
|
413
|
-
/** Suggested action (while `:active`): Border width */
|
|
414
|
-
suggestedActionBorderWidthOnActive?: number;
|
|
415
|
-
/** Suggested action (while `:active`): Text color */
|
|
416
|
-
suggestedActionTextColorOnActive?: string;
|
|
417
|
-
/** Suggested action (while `:focus`): Background color */
|
|
418
|
-
suggestedActionBackgroundColorOnFocus?: string;
|
|
419
|
-
/** Suggested action (while `:focus`): Border color */
|
|
420
|
-
suggestedActionBorderColorOnFocus?: string;
|
|
421
|
-
/** Suggested action (while `:focus`): Border style */
|
|
422
|
-
suggestedActionBorderStyleOnFocus?: string;
|
|
423
|
-
/** Suggested action (while `:focus`): Border width */
|
|
424
|
-
suggestedActionBorderWidthOnFocus?: number;
|
|
425
|
-
/** Suggested action (while `:focus`): Text color */
|
|
426
|
-
suggestedActionTextColorOnFocus?: string;
|
|
427
|
-
/**
|
|
428
|
-
* Suggested action (while `:hover`): Background color
|
|
429
|
-
*
|
|
430
|
-
* @default '#F3F2F1'
|
|
431
|
-
*/
|
|
432
|
-
suggestedActionBackgroundColorOnHover?: string;
|
|
433
|
-
/** Suggested action (while `:hover`): Border color */
|
|
434
|
-
suggestedActionBorderColorOnHover?: string;
|
|
435
|
-
/** Suggested action (while `:hover`): Border style */
|
|
436
|
-
suggestedActionBorderStyleOnHover?: string;
|
|
437
|
-
/** Suggested action (while `:hover`): Border width */
|
|
438
|
-
suggestedActionBorderWidthOnHover?: number;
|
|
439
|
-
/** Suggested action (while `:hover`): Text color */
|
|
440
|
-
suggestedActionTextColorOnHover?: string;
|
|
441
|
-
/**
|
|
442
|
-
* Suggested action (while `:disabled`): Background, defaults to suggestedActionBackground.
|
|
443
|
-
*
|
|
444
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
445
|
-
*/
|
|
446
|
-
suggestedActionDisabledBackground?: string;
|
|
447
|
-
/**
|
|
448
|
-
* Suggested action (while `:disabled`): Border color
|
|
449
|
-
*
|
|
450
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBorderColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
451
|
-
*/
|
|
452
|
-
suggestedActionDisabledBorderColor?: string;
|
|
453
|
-
/**
|
|
454
|
-
* Suggested action (while `:disabled`): Border style
|
|
455
|
-
*
|
|
456
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBorderStyleOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
457
|
-
*/
|
|
458
|
-
suggestedActionDisabledBorderStyle?: string;
|
|
459
|
-
/**
|
|
460
|
-
* Suggested action (while `:disabled`): Border width
|
|
461
|
-
*
|
|
462
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBorderWidthOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
463
|
-
*/
|
|
464
|
-
suggestedActionDisabledBorderWidth?: number;
|
|
465
|
-
/**
|
|
466
|
-
* Suggested action (while `:disabled`): Foreground color, defaults to subtle color
|
|
467
|
-
*
|
|
468
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionTextColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
|
|
469
|
-
*/
|
|
470
|
-
suggestedActionDisabledTextColor?: string;
|
|
471
|
-
/**
|
|
472
|
-
* Suggested action: Height
|
|
473
|
-
*
|
|
474
|
-
* @default 40
|
|
475
|
-
*/
|
|
476
|
-
suggestedActionHeight?: number | string;
|
|
477
|
-
/**
|
|
478
|
-
* Suggested action: Image height
|
|
479
|
-
*
|
|
480
|
-
* @default 20
|
|
481
|
-
*/
|
|
482
|
-
suggestedActionImageHeight?: number | string;
|
|
483
|
-
/**
|
|
484
|
-
* Suggested action: Layout type
|
|
485
|
-
*
|
|
486
|
-
* @default 'carousel'
|
|
487
|
-
*/
|
|
488
|
-
suggestedActionLayout?: 'carousel' | 'flow' | 'stacked';
|
|
489
|
-
/**
|
|
490
|
-
* Suggested action (while `:focus-visible`): Keyboard focus indicator border color
|
|
491
|
-
*
|
|
492
|
-
* @default '#605E5C'
|
|
493
|
-
*/
|
|
494
|
-
suggestedActionKeyboardFocusIndicatorBorderColor?: string;
|
|
495
|
-
/**
|
|
496
|
-
* Suggested action (while `:focus-visible`): Keyboard focus indicator border radius
|
|
497
|
-
*
|
|
498
|
-
* @default 0
|
|
499
|
-
*/
|
|
500
|
-
suggestedActionKeyboardFocusIndicatorBorderRadius?: number | string;
|
|
501
|
-
/**
|
|
502
|
-
* Suggested action (while `:focus-visible`): Keyboard focus indicator border style
|
|
503
|
-
*
|
|
504
|
-
* @default 'solid'
|
|
505
|
-
*/
|
|
506
|
-
suggestedActionKeyboardFocusIndicatorBorderStyle?: string;
|
|
507
|
-
/**
|
|
508
|
-
* Suggested action (while `:focus-visible`): Keyboard focus indicator border width
|
|
509
|
-
*
|
|
510
|
-
* @default 1
|
|
511
|
-
*/
|
|
512
|
-
suggestedActionKeyboardFocusIndicatorBorderWidth?: number;
|
|
513
|
-
/**
|
|
514
|
-
* Suggested action (while `:focus-visible`): Keyboard focus indicator inset
|
|
515
|
-
*
|
|
516
|
-
* @default 2
|
|
517
|
-
*/
|
|
518
|
-
suggestedActionKeyboardFocusIndicatorInset?: number;
|
|
519
|
-
/**
|
|
520
|
-
* Suggested action (while `:active`): background
|
|
521
|
-
*
|
|
522
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnActive` instead. This option will be removed on or after 2023-09-16.
|
|
523
|
-
*/
|
|
524
|
-
suggestedActionActiveBackground?: string;
|
|
525
|
-
/**
|
|
526
|
-
* Suggested action (while `:focus`): background
|
|
527
|
-
*
|
|
528
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnFocus` instead. This option will be removed on or after 2023-09-16.
|
|
529
|
-
*/
|
|
530
|
-
suggestedActionFocusBackground?: string;
|
|
531
|
-
/**
|
|
532
|
-
* Suggested action (while `:hover`): background
|
|
533
|
-
*
|
|
534
|
-
* @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnHover` instead. This option will be removed on or after 2023-09-16.
|
|
535
|
-
*/
|
|
536
|
-
suggestedActionHoverBackground?: string;
|
|
537
|
-
/**
|
|
538
|
-
* Suggested actions carousel layout
|
|
539
|
-
*/
|
|
540
|
-
/**
|
|
541
|
-
* Cursor when mouseover on flipper
|
|
542
|
-
*/
|
|
543
|
-
suggestedActionsCarouselFlipperCursor?: string;
|
|
544
|
-
/**
|
|
545
|
-
* Flipper bounding box size
|
|
546
|
-
*/
|
|
547
|
-
suggestedActionsCarouselFlipperBoxWidth?: number;
|
|
548
|
-
/**
|
|
549
|
-
* Flipper button's visible size
|
|
550
|
-
*/
|
|
551
|
-
suggestedActionsCarouselFlipperSize?: number;
|
|
552
|
-
/**
|
|
553
|
-
* Suggested actions flow layout
|
|
554
|
-
* Default value is 'auto',
|
|
555
|
-
*/
|
|
556
|
-
suggestedActionsFlowMaxHeight?: undefined;
|
|
557
|
-
/**
|
|
558
|
-
* Suggested actions stacked layout
|
|
559
|
-
*/
|
|
560
|
-
/**
|
|
561
|
-
* Stacked height container's max height. Default value is 'auto'
|
|
562
|
-
*/
|
|
563
|
-
suggestedActionsStackedHeight?: number | 'auto';
|
|
564
|
-
/**
|
|
565
|
-
* Stacked overflow default value is 'auto'
|
|
566
|
-
*/
|
|
567
|
-
suggestedActionsStackedOverflow?: 'auto' | 'hidden' | 'scroll' | 'visible';
|
|
568
|
-
/**
|
|
569
|
-
* Button max height default value is 100% if suggestedActionsStackedLayoutButtonTextWrap is true
|
|
570
|
-
*/
|
|
571
|
-
suggestedActionsStackedLayoutButtonMaxHeight?: number | string;
|
|
572
|
-
/**
|
|
573
|
-
* Button Text Wrap, if set to true, will wrap long text in buttons in STACKED mode ONLY
|
|
574
|
-
*/
|
|
575
|
-
suggestedActionsStackedLayoutButtonTextWrap?: boolean;
|
|
576
|
-
/** Suggested actions: Visual keyboard indicator color for the container. */
|
|
577
|
-
suggestedActionsVisualKeyboardIndicatorColor?: string;
|
|
578
|
-
/** Suggested actions: Visual keyboard indicator style for the container. */
|
|
579
|
-
suggestedActionsVisualKeyboardIndicatorStyle?: string;
|
|
580
|
-
/** Suggested actions: Visual keyboard indicator width for the container. */
|
|
581
|
-
suggestedActionsVisualKeyboardIndicatorWidth?: number;
|
|
582
|
-
/**
|
|
583
|
-
* Timestamp
|
|
584
|
-
*/
|
|
585
|
-
/**
|
|
586
|
-
* Specifies the time window for grouping related timestamps.
|
|
587
|
-
*
|
|
588
|
-
* `number` - time window for grouping related timestamps (in milliseconds)
|
|
589
|
-
* `false` - never group timestamps
|
|
590
|
-
* `true` - group all timestamps
|
|
591
|
-
*/
|
|
592
|
-
groupTimestamp?: boolean | number;
|
|
593
|
-
sendTimeout?: number | ((activity: WebChatActivity) => number);
|
|
594
|
-
sendTimeoutForAttachments?: number;
|
|
595
|
-
/**
|
|
596
|
-
* Timestamp color default value is subtle
|
|
597
|
-
*/
|
|
598
|
-
timestampColor?: string;
|
|
599
|
-
timestampFormat?: 'absolute' | 'relative';
|
|
600
|
-
/**
|
|
601
|
-
* Transcript styling
|
|
602
|
-
*/
|
|
603
|
-
transcriptTerminatorBackgroundColor?: string;
|
|
604
|
-
transcriptTerminatorBorderRadius?: number | string;
|
|
605
|
-
transcriptTerminatorColor?: string;
|
|
606
|
-
transcriptTerminatorFontSize?: number | string;
|
|
607
|
-
transcriptActivityVisualKeyboardIndicatorColor?: string;
|
|
608
|
-
transcriptActivityVisualKeyboardIndicatorStyle?: string;
|
|
609
|
-
transcriptActivityVisualKeyboardIndicatorWidth?: number | string;
|
|
610
|
-
transcriptVisualKeyboardIndicatorColor?: string;
|
|
611
|
-
transcriptVisualKeyboardIndicatorStyle?: string;
|
|
612
|
-
transcriptVisualKeyboardIndicatorWidth?: number | string;
|
|
613
|
-
/**
|
|
614
|
-
* Transcript overlay button
|
|
615
|
-
* e.g. carousel and suggested action flippers, scroll to bottom, etc.
|
|
616
|
-
*/
|
|
617
|
-
/**
|
|
618
|
-
* Controls when the new messages button should show.
|
|
619
|
-
*
|
|
620
|
-
* - `"unread"` will show when there are any unread and offscreen messages (default)
|
|
621
|
-
* - `"any"` will show when there are any offscreen messages
|
|
622
|
-
* - `false` will always hide the button
|
|
623
|
-
*/
|
|
624
|
-
scrollToEndButtonBehavior?: false | 'any' | 'unread';
|
|
625
|
-
/** Font size of the new message button. */
|
|
626
|
-
scrollToEndButtonFontSize?: number | string;
|
|
627
|
-
/**
|
|
628
|
-
* Font size of the new message button.
|
|
629
|
-
*
|
|
630
|
-
* @deprecated Since 4.14.0: Renamed to {@linkcode scrollToEndButtonFontSize}.
|
|
631
|
-
*/
|
|
632
|
-
newMessagesButtonFontSize?: number | string;
|
|
633
|
-
transcriptOverlayButtonBackground?: string;
|
|
634
|
-
transcriptOverlayButtonBackgroundOnDisabled?: string;
|
|
635
|
-
transcriptOverlayButtonBackgroundOnFocus?: string;
|
|
636
|
-
transcriptOverlayButtonBackgroundOnHover?: string;
|
|
637
|
-
transcriptOverlayButtonColor?: string;
|
|
638
|
-
transcriptOverlayButtonColorOnDisabled?: string;
|
|
639
|
-
/**
|
|
640
|
-
* Default value is transcriptOverlayButtonColor
|
|
641
|
-
*/
|
|
642
|
-
transcriptOverlayButtonColorOnFocus?: string;
|
|
643
|
-
/**
|
|
644
|
-
* Default value is transcriptOverlayButtonColor
|
|
645
|
-
*/
|
|
646
|
-
transcriptOverlayButtonColorOnHover?: string;
|
|
647
|
-
/**
|
|
648
|
-
* Toast UI
|
|
649
|
-
*/
|
|
650
|
-
/**
|
|
651
|
-
* New debounce timeout value only affects new notifications.
|
|
652
|
-
*/
|
|
653
|
-
notificationDebounceTimeout?: number;
|
|
654
|
-
hideToaster?: boolean;
|
|
655
|
-
toasterHeight?: number | string;
|
|
656
|
-
toasterMaxHeight?: number | string;
|
|
657
|
-
toasterSingularMaxHeight?: number | string;
|
|
658
|
-
toastFontSize?: number | string;
|
|
659
|
-
toastIconWidth?: number | string;
|
|
660
|
-
toastSeparatorColor?: string;
|
|
661
|
-
toastTextPadding?: number | string;
|
|
662
|
-
toastErrorBackgroundColor?: string;
|
|
663
|
-
toastErrorColor?: string;
|
|
664
|
-
toastInfoBackgroundColor?: string;
|
|
665
|
-
toastInfoColor?: string;
|
|
666
|
-
toastSuccessBackgroundColor?: string;
|
|
667
|
-
toastSuccessColor?: string;
|
|
668
|
-
toastWarnBackgroundColor?: string;
|
|
669
|
-
toastWarnColor?: string;
|
|
670
|
-
/**
|
|
671
|
-
* Typing animation
|
|
672
|
-
*/
|
|
673
|
-
typingAnimationBackgroundImage?: string;
|
|
674
|
-
typingAnimationDuration?: number;
|
|
675
|
-
typingAnimationHeight?: number | string;
|
|
676
|
-
typingAnimationWidth?: number | string;
|
|
677
|
-
/**
|
|
678
|
-
* Upload thumbnail
|
|
679
|
-
*/
|
|
680
|
-
enableUploadThumbnail?: boolean;
|
|
681
|
-
uploadThumbnailContentType?: string;
|
|
682
|
-
uploadThumbnailHeight?: number;
|
|
683
|
-
uploadThumbnailQuality?: number;
|
|
684
|
-
uploadThumbnailWidth?: number;
|
|
685
|
-
/**
|
|
686
|
-
* Video
|
|
687
|
-
*/
|
|
688
|
-
videoHeight?: number | string;
|
|
689
|
-
/**
|
|
690
|
-
* Maximum message length in characters
|
|
691
|
-
*
|
|
692
|
-
* @default 2000
|
|
693
|
-
*/
|
|
694
|
-
maxMessageLength?: number;
|
|
695
|
-
};
|
|
696
|
-
type StrictStyleOptions = Required<Omit<StyleOptions, 'hideScrollToEndButton' | 'newMessagesButtonFontSize'>> & {
|
|
697
|
-
bubbleFromUserNubOffset: number;
|
|
698
|
-
bubbleNubOffset: number;
|
|
699
|
-
emojiSet: false | Record<string, string>;
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
declare const DEFAULT_OPTIONS: Required<StyleOptions>;
|
|
703
|
-
|
|
704
|
-
type AttachmentProps = {
|
|
705
|
-
activity: WebChatActivity;
|
|
706
|
-
attachment: DirectLineAttachment;
|
|
13
|
+
import { E as Enhancer$1 } from './_dtsroll-chunks/Dtb0H_Ee-handler-chain.js';
|
|
14
|
+
import { I as InferMiddleware, a as InferProps, b as InferRequest } from './templateMiddleware-BEttHPJk.mjs';
|
|
15
|
+
import { _ as __INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol } from './_dtsroll-chunks/B1b7R2eH-avatarMiddleware-CHa011_j.js';
|
|
16
|
+
import { AvatarPolymiddlewareRequest } from './botframework-webchat-api.middleware.mjs';
|
|
17
|
+
import 'valibot';
|
|
18
|
+
import 'react-chain-of-responsibility/preview';
|
|
19
|
+
import './_dtsroll-chunks/CEcj2Npa-botframework-webchat-redux-store.js';
|
|
20
|
+
|
|
21
|
+
declare const DEFAULT_OPTIONS: StrictStyleOptions;
|
|
22
|
+
|
|
23
|
+
declare const template$1: {
|
|
24
|
+
createMiddleware: (enhancer: Enhancer$1<false | react.ComponentType<{
|
|
25
|
+
className?: string | undefined;
|
|
26
|
+
}>, void>) => react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
}, string>;
|
|
29
|
+
extractMiddleware: (middleware: readonly ((init: string) => false | Enhancer$1<false | react.ComponentType<unknown>, unknown>)[] | undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
}, string>[];
|
|
32
|
+
Provider: react.MemoExoticComponent<({ children, middleware }: {
|
|
33
|
+
readonly children?: react.ReactNode | undefined;
|
|
34
|
+
readonly middleware: readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
35
|
+
className?: string | undefined;
|
|
36
|
+
}, string>[];
|
|
37
|
+
}) => react.JSX.Element>;
|
|
38
|
+
Proxy: react.ComponentType<{
|
|
39
|
+
className?: string | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
readonly fallbackComponent?: react.ComponentType<{
|
|
42
|
+
className?: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
readonly request: void;
|
|
45
|
+
}>;
|
|
46
|
+
'~types': {
|
|
47
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
48
|
+
className?: string | undefined;
|
|
49
|
+
}, string>;
|
|
50
|
+
props: {
|
|
51
|
+
className?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
request: void;
|
|
54
|
+
};
|
|
707
55
|
};
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
56
|
+
declare const extractSendBoxMiddleware: (middleware: readonly ((init: string) => false | Enhancer$1<false | react.ComponentType<unknown>, unknown>)[] | undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
57
|
+
className?: string | undefined;
|
|
58
|
+
}, string>[];
|
|
59
|
+
declare const SendBoxMiddlewareProxy: react.ComponentType<{
|
|
60
|
+
className?: string | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
readonly fallbackComponent?: react.ComponentType<{
|
|
63
|
+
className?: string | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
readonly request: void;
|
|
66
|
+
}>;
|
|
67
|
+
type SendBoxMiddleware = InferMiddleware<typeof template$1>;
|
|
68
|
+
type SendBoxMiddlewareProps = InferProps<typeof template$1>;
|
|
69
|
+
type SendBoxMiddlewareRequest = InferRequest<typeof template$1>;
|
|
711
70
|
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
71
|
+
declare const template: {
|
|
72
|
+
createMiddleware: (enhancer: Enhancer$1<false | react.ComponentType<{
|
|
73
|
+
className?: string | undefined;
|
|
74
|
+
}>, void>) => react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
75
|
+
className?: string | undefined;
|
|
76
|
+
}, string>;
|
|
77
|
+
extractMiddleware: (middleware: readonly ((init: string) => false | Enhancer$1<false | react.ComponentType<unknown>, unknown>)[] | undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
78
|
+
className?: string | undefined;
|
|
79
|
+
}, string>[];
|
|
80
|
+
Provider: react.MemoExoticComponent<({ children, middleware }: {
|
|
81
|
+
readonly children?: react.ReactNode | undefined;
|
|
82
|
+
readonly middleware: readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
83
|
+
className?: string | undefined;
|
|
84
|
+
}, string>[];
|
|
85
|
+
}) => react.JSX.Element>;
|
|
86
|
+
Proxy: react.ComponentType<{
|
|
87
|
+
className?: string | undefined;
|
|
88
|
+
} & {
|
|
89
|
+
readonly fallbackComponent?: react.ComponentType<{
|
|
90
|
+
className?: string | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
readonly request: void;
|
|
93
|
+
}>;
|
|
94
|
+
'~types': {
|
|
95
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
96
|
+
className?: string | undefined;
|
|
97
|
+
}, string>;
|
|
98
|
+
props: {
|
|
99
|
+
className?: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
request: void;
|
|
102
|
+
};
|
|
724
103
|
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
104
|
+
declare const extractSendBoxToolbarMiddleware: (middleware: readonly ((init: string) => false | Enhancer$1<false | react.ComponentType<unknown>, unknown>)[] | undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
105
|
+
className?: string | undefined;
|
|
106
|
+
}, string>[];
|
|
107
|
+
declare const SendBoxToolbarMiddlewareProxy: react.ComponentType<{
|
|
108
|
+
className?: string | undefined;
|
|
109
|
+
} & {
|
|
110
|
+
readonly fallbackComponent?: react.ComponentType<{
|
|
111
|
+
className?: string | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
readonly request: void;
|
|
114
|
+
}>;
|
|
115
|
+
type SendBoxToolbarMiddleware = InferMiddleware<typeof template>;
|
|
116
|
+
type SendBoxToolbarMiddlewareProps = InferProps<typeof template>;
|
|
117
|
+
type SendBoxToolbarMiddlewareRequest = InferRequest<typeof template>;
|
|
732
118
|
|
|
733
119
|
type RenderActivityStatusOptions = {
|
|
734
120
|
activity: WebChatActivity;
|
|
735
121
|
hideTimestamp: boolean;
|
|
736
122
|
sendState: SendStatus;
|
|
737
|
-
/** @deprecated */
|
|
738
|
-
nextVisibleActivity: WebChatActivity;
|
|
739
|
-
/** @deprecated */
|
|
740
|
-
sameTimestampGroup: boolean;
|
|
741
123
|
};
|
|
742
124
|
type RenderActivityStatus = (options: RenderActivityStatusOptions) => ReactElement;
|
|
743
125
|
type ActivityStatusEnhancer = (next: RenderActivityStatus) => RenderActivityStatus;
|
|
744
126
|
type ActivityStatusMiddleware = () => ActivityStatusEnhancer;
|
|
745
127
|
|
|
746
|
-
type OnScreenReactNode = Exclude<ReactNode, boolean | null | undefined>;
|
|
747
|
-
/**
|
|
748
|
-
* Renders a UI component by returning a React component, or `false`, if nothing should be rendered.
|
|
749
|
-
*
|
|
750
|
-
* @returns {(React.FC|false)} Returns a React component to render, or `false`, if nothing should be rendered.
|
|
751
|
-
*/
|
|
752
|
-
type ComponentFactory<TComponentFactoryArguments extends any[], TProps> = (...args: TComponentFactoryArguments) => ((props?: TProps) => OnScreenReactNode) | false;
|
|
753
|
-
/**
|
|
754
|
-
* Enhances a UI component through decoration, replacement, or removal.
|
|
755
|
-
*/
|
|
756
|
-
type ComponentEnhancer<TComponentFactoryArguments extends any[], TProps> = (next: ComponentFactory<TComponentFactoryArguments, TProps>) => ComponentFactory<TComponentFactoryArguments, TProps>;
|
|
757
|
-
/**
|
|
758
|
-
* Middleware for rendering a UI component.
|
|
759
|
-
*
|
|
760
|
-
* The middleware is a series of enhancers that are chained through functional composition. Each enhancer can:
|
|
761
|
-
*
|
|
762
|
-
* - Decorate: call the next enhancer to get its React component, then decorate it through UI composition
|
|
763
|
-
* - Replace: return a React component without calling the next enhancer
|
|
764
|
-
* - Remove: return `false` without calling the next enhancer
|
|
765
|
-
*
|
|
766
|
-
* The signature of the middleware is:
|
|
767
|
-
*
|
|
768
|
-
* ```
|
|
769
|
-
* (...args: SetupArguments) => (next: Enhancer) => (...args: ComponentFactoryArguments) => false | React.FC<Props>
|
|
770
|
-
* ```
|
|
771
|
-
*/
|
|
772
|
-
type ComponentMiddleware<TSetupArguments extends any[], TComponentFactoryArguments extends any[], TProps> = (...args: TSetupArguments) => ComponentEnhancer<TComponentFactoryArguments, TProps>;
|
|
773
|
-
|
|
774
|
-
type AttachmentForScreenReaderComponentFactoryOptions = [
|
|
775
|
-
{
|
|
776
|
-
activity: WebChatActivity;
|
|
777
|
-
attachment: DirectLineAttachment;
|
|
778
|
-
}
|
|
779
|
-
];
|
|
780
|
-
type AttachmentForScreenReaderComponentFactory = ComponentFactory<AttachmentForScreenReaderComponentFactoryOptions, {}>;
|
|
781
|
-
type AttachmentForScreenReaderMiddleware = ComponentMiddleware<[
|
|
782
|
-
], AttachmentForScreenReaderComponentFactoryOptions, {}>;
|
|
783
|
-
|
|
784
128
|
type AvatarComponentFactoryArguments = [
|
|
785
129
|
{
|
|
130
|
+
[__INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol]: AvatarPolymiddlewareRequest;
|
|
786
131
|
activity: WebChatActivity;
|
|
787
132
|
fromUser: boolean;
|
|
788
133
|
styleOptions: StrictStyleOptions;
|
|
@@ -791,73 +136,30 @@ type AvatarComponentFactoryArguments = [
|
|
|
791
136
|
type AvatarComponentFactory = ComponentFactory<AvatarComponentFactoryArguments, {}>;
|
|
792
137
|
type AvatarMiddleware = ComponentMiddleware<[], AvatarComponentFactoryArguments, {}>;
|
|
793
138
|
|
|
794
|
-
type
|
|
795
|
-
type FunctionEnhancer<TCallArguments extends any[], TResult> = (next: CallFunction<TCallArguments, TResult>) => CallFunction<TCallArguments, TResult>;
|
|
796
|
-
type FunctionMiddleware<TSetupArguments extends any[], TCallArguments extends any[], TResult> = (...args: TSetupArguments) => FunctionEnhancer<TCallArguments, TResult>;
|
|
797
|
-
|
|
798
|
-
type PerformCardAction = (cardAction: DirectLineCardAction, event?: {
|
|
799
|
-
target: EventTarget;
|
|
800
|
-
}) => void;
|
|
801
|
-
type CardActionMiddleware = FunctionMiddleware<[
|
|
802
|
-
{
|
|
803
|
-
dispatch: (action: any) => void;
|
|
804
|
-
}
|
|
805
|
-
], [
|
|
806
|
-
{
|
|
807
|
-
cardAction: DirectLineCardAction;
|
|
808
|
-
getSignInUrl?: () => string;
|
|
809
|
-
target: any;
|
|
810
|
-
}
|
|
811
|
-
], {}>;
|
|
139
|
+
type ContextOf<T> = T extends Context<infer P> ? P : never;
|
|
812
140
|
|
|
141
|
+
type GroupedActivities = readonly (readonly WebChatActivity[])[];
|
|
813
142
|
type GroupActivities = CallFunction<[
|
|
814
|
-
{
|
|
815
|
-
activities: WebChatActivity[];
|
|
816
|
-
}
|
|
143
|
+
Readonly<{
|
|
144
|
+
activities: readonly WebChatActivity[];
|
|
145
|
+
}>
|
|
817
146
|
], {
|
|
818
|
-
|
|
819
|
-
status: WebChatActivity[][];
|
|
147
|
+
[key: string]: GroupedActivities;
|
|
820
148
|
}>;
|
|
821
149
|
type GroupActivitiesMiddleware = FunctionMiddleware<[
|
|
150
|
+
string
|
|
822
151
|
], [
|
|
823
|
-
{
|
|
824
|
-
activities: WebChatActivity[];
|
|
825
|
-
}
|
|
152
|
+
Readonly<{
|
|
153
|
+
activities: readonly WebChatActivity[];
|
|
154
|
+
}>
|
|
826
155
|
], {
|
|
827
|
-
|
|
828
|
-
status: WebChatActivity[][];
|
|
156
|
+
[key: string]: GroupedActivities;
|
|
829
157
|
}>;
|
|
830
158
|
|
|
831
159
|
type LocalizedStrings = {
|
|
832
160
|
[stringId: string]: boolean | string;
|
|
833
161
|
};
|
|
834
162
|
|
|
835
|
-
/**
|
|
836
|
-
* @type {object}
|
|
837
|
-
* @property {boolean} atEnd - `true`, if the transcript scroll view is at the end, otherwise, `false`.
|
|
838
|
-
* @property {object} styleOptions - Normalized style options.
|
|
839
|
-
* @property {boolean} unread - `true`, if there are unread messages in the transcripts, otherwise, `false`.
|
|
840
|
-
*/
|
|
841
|
-
type ScrollToEndButtonComponentArguments = [
|
|
842
|
-
{
|
|
843
|
-
atEnd: boolean;
|
|
844
|
-
styleOptions: StrictStyleOptions;
|
|
845
|
-
unread: boolean;
|
|
846
|
-
}
|
|
847
|
-
];
|
|
848
|
-
/**
|
|
849
|
-
* @type {object}
|
|
850
|
-
* @property {function} onClick - The callback function to call when the user click on the button.
|
|
851
|
-
*/
|
|
852
|
-
type ScrollToEndButtonProps = {
|
|
853
|
-
onClick: () => any;
|
|
854
|
-
};
|
|
855
|
-
/**
|
|
856
|
-
* The middleware for rendering scroll to end button.
|
|
857
|
-
*/
|
|
858
|
-
type ScrollToEndButtonMiddleware = ComponentMiddleware<[], ScrollToEndButtonComponentArguments, ScrollToEndButtonProps>;
|
|
859
|
-
type ScrollToEndButtonComponentFactory = ComponentFactory<ScrollToEndButtonComponentArguments, ScrollToEndButtonProps>;
|
|
860
|
-
|
|
861
163
|
type BaseTelemetryMeasurementEvent = {
|
|
862
164
|
dimension?: any;
|
|
863
165
|
};
|
|
@@ -887,105 +189,6 @@ type TelemetryTimingEndMeasurementEvent = BaseTelemetryMeasurementEvent & {
|
|
|
887
189
|
};
|
|
888
190
|
type TelemetryMeasurementEvent = TelemetryEventMeasurementEvent | TelemetryExceptionMeasurementEvent | TelemetryTimingStartMeasurementEvent | TelemetryTimingEndMeasurementEvent;
|
|
889
191
|
|
|
890
|
-
type Notification = {
|
|
891
|
-
alt: string;
|
|
892
|
-
data?: any;
|
|
893
|
-
id: string;
|
|
894
|
-
level: string;
|
|
895
|
-
message?: string;
|
|
896
|
-
timestamp?: number;
|
|
897
|
-
};
|
|
898
|
-
|
|
899
|
-
type ToastProps = {
|
|
900
|
-
notification: Notification;
|
|
901
|
-
};
|
|
902
|
-
type RenderToast = (props: ToastProps) => ReactNode;
|
|
903
|
-
type ToastEnhancer = (next: RenderToast) => RenderToast;
|
|
904
|
-
type ToastMiddleware = () => ToastEnhancer;
|
|
905
|
-
|
|
906
|
-
type Typing = {
|
|
907
|
-
at: number;
|
|
908
|
-
expireAt: number;
|
|
909
|
-
name: string;
|
|
910
|
-
role: 'bot' | 'user';
|
|
911
|
-
type: 'busy' | 'livestream';
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
type TypingIndicatorProps = {
|
|
915
|
-
activeTyping: {
|
|
916
|
-
[id: string]: Typing;
|
|
917
|
-
};
|
|
918
|
-
typing: {
|
|
919
|
-
[id: string]: Typing;
|
|
920
|
-
};
|
|
921
|
-
visible: boolean;
|
|
922
|
-
};
|
|
923
|
-
type RenderTypingIndicator = (props: TypingIndicatorProps) => ReactNode;
|
|
924
|
-
type TypingIndicatorEnhancer = (next: RenderTypingIndicator) => RenderTypingIndicator;
|
|
925
|
-
type TypingIndicatorMiddleware = () => TypingIndicatorEnhancer;
|
|
926
|
-
|
|
927
|
-
type ContextOf<T> = T extends Context<infer P> ? P : never;
|
|
928
|
-
|
|
929
|
-
type MiddlewareWithInit<M extends ComponentMiddleware$1<any, any, any>, I> = (init: I) => ReturnType<M> | false;
|
|
930
|
-
|
|
931
|
-
declare const initSendBoxMiddleware: (middleware: readonly MiddlewareWithInit<react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
932
|
-
className?: string | undefined;
|
|
933
|
-
}>, void>[], init?: void) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
934
|
-
className?: string | undefined;
|
|
935
|
-
}>[];
|
|
936
|
-
declare const SendBoxMiddlewareProxy: react.ComponentType<{
|
|
937
|
-
className?: string | undefined;
|
|
938
|
-
} & {
|
|
939
|
-
fallbackComponent?: react.ComponentType<{
|
|
940
|
-
className?: string | undefined;
|
|
941
|
-
}>;
|
|
942
|
-
request: void;
|
|
943
|
-
} & {
|
|
944
|
-
children?: react.ReactNode;
|
|
945
|
-
}>;
|
|
946
|
-
declare const types$1: {
|
|
947
|
-
init: void;
|
|
948
|
-
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
949
|
-
className?: string | undefined;
|
|
950
|
-
}>;
|
|
951
|
-
props: {
|
|
952
|
-
className?: string | undefined;
|
|
953
|
-
};
|
|
954
|
-
request: void;
|
|
955
|
-
};
|
|
956
|
-
type SendBoxMiddleware = typeof types$1.middleware;
|
|
957
|
-
type SendBoxMiddlewareProps = typeof types$1.props;
|
|
958
|
-
type SendBoxMiddlewareRequest = typeof types$1.request;
|
|
959
|
-
|
|
960
|
-
declare const initSendBoxToolbarMiddleware: (middleware: readonly MiddlewareWithInit<react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
961
|
-
className?: string | undefined;
|
|
962
|
-
}>, void>[], init?: void) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
963
|
-
className?: string | undefined;
|
|
964
|
-
}>[];
|
|
965
|
-
declare const SendBoxToolbarMiddlewareProxy: react.ComponentType<{
|
|
966
|
-
className?: string | undefined;
|
|
967
|
-
} & {
|
|
968
|
-
fallbackComponent?: react.ComponentType<{
|
|
969
|
-
className?: string | undefined;
|
|
970
|
-
}>;
|
|
971
|
-
request: void;
|
|
972
|
-
} & {
|
|
973
|
-
children?: react.ReactNode;
|
|
974
|
-
}>;
|
|
975
|
-
declare const types: {
|
|
976
|
-
init: void;
|
|
977
|
-
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
978
|
-
className?: string | undefined;
|
|
979
|
-
}>;
|
|
980
|
-
props: {
|
|
981
|
-
className?: string | undefined;
|
|
982
|
-
};
|
|
983
|
-
request: void;
|
|
984
|
-
};
|
|
985
|
-
type SendBoxToolbarMiddleware = typeof types.middleware;
|
|
986
|
-
type SendBoxToolbarMiddlewareProps = typeof types.props;
|
|
987
|
-
type SendBoxToolbarMiddlewareRequest = typeof types.request;
|
|
988
|
-
|
|
989
192
|
type PrecompiledGlobalize = {
|
|
990
193
|
dateFormatter: ({ skeleton }: {
|
|
991
194
|
skeleton: 'MMMMdhm';
|
|
@@ -998,22 +201,18 @@ type PrecompiledGlobalize = {
|
|
|
998
201
|
}) => string);
|
|
999
202
|
};
|
|
1000
203
|
|
|
1001
|
-
type
|
|
1002
|
-
activityRenderer?: LegacyActivityRenderer;
|
|
204
|
+
type WebChatAPIContextType = {
|
|
1003
205
|
activityStatusRenderer: RenderActivityStatus;
|
|
1004
206
|
attachmentForScreenReaderRenderer?: AttachmentForScreenReaderComponentFactory;
|
|
1005
|
-
attachmentRenderer?:
|
|
1006
|
-
avatarRenderer: AvatarComponentFactory;
|
|
207
|
+
attachmentRenderer?: LegacyRenderAttachment;
|
|
1007
208
|
clearSuggestedActions?: () => void;
|
|
1008
209
|
dir?: string;
|
|
1009
210
|
directLine?: DirectLineJSBotConnection;
|
|
1010
|
-
disabled?: boolean;
|
|
1011
211
|
dismissNotification?: (id: string) => void;
|
|
1012
212
|
downscaleImageToDataURL?: (blob: Blob, maxWidth: number, maxHeight: number, type: string, quality: number) => Promise<URL>;
|
|
1013
213
|
emitTypingIndicator?: () => void;
|
|
1014
214
|
grammars?: any;
|
|
1015
215
|
groupActivities?: GroupActivities;
|
|
1016
|
-
internalErrorBoxClass?: React.Component | Function;
|
|
1017
216
|
language?: string;
|
|
1018
217
|
localizedGlobalizeState?: PrecompiledGlobalize[];
|
|
1019
218
|
localizedStrings?: {
|
|
@@ -1046,9 +245,10 @@ type WebChatAPIContext = {
|
|
|
1046
245
|
setSendTimeout?: (timeout: number) => void;
|
|
1047
246
|
startDictate?: () => void;
|
|
1048
247
|
startSpeakingActivity?: () => void;
|
|
248
|
+
startVoice?: () => void;
|
|
1049
249
|
stopDictate?: () => void;
|
|
1050
250
|
stopSpeakingActivity?: () => void;
|
|
1051
|
-
|
|
251
|
+
stopVoice?: () => void;
|
|
1052
252
|
submitSendBox?: (method?: string, { channelData }?: {
|
|
1053
253
|
channelData: any;
|
|
1054
254
|
}) => void;
|
|
@@ -1056,27 +256,36 @@ type WebChatAPIContext = {
|
|
|
1056
256
|
toastRenderer?: RenderToast;
|
|
1057
257
|
trackDimension?: (name: string, data: any) => void;
|
|
1058
258
|
typingIndicatorRenderer?: any;
|
|
259
|
+
uiState: 'blueprint' | 'disabled' | undefined;
|
|
1059
260
|
userID?: string;
|
|
1060
261
|
username?: string;
|
|
1061
262
|
};
|
|
1062
|
-
declare const context: react.Context<WebChatAPIContext>;
|
|
1063
263
|
|
|
1064
264
|
type ComposerCoreProps = Readonly<{
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
265
|
+
/**
|
|
266
|
+
* @deprecated Use `polymiddleware` instead. The `activityMiddleware` prop is being deprecated, please use `polymiddleware` instead. This prop will be removed on or after 2027-08-21.
|
|
267
|
+
*/
|
|
268
|
+
activityMiddleware?: OneOrMany<LegacyActivityMiddleware> | undefined;
|
|
269
|
+
activityStatusMiddleware?: OneOrMany<ActivityStatusMiddleware> | undefined;
|
|
270
|
+
attachmentForScreenReaderMiddleware?: OneOrMany<AttachmentForScreenReaderMiddleware> | undefined;
|
|
271
|
+
attachmentMiddleware?: OneOrMany<LegacyAttachmentMiddleware> | undefined;
|
|
272
|
+
/**
|
|
273
|
+
* @deprecated Use `polymiddleware` instead. The `avatarMiddleware` prop is being deprecated, please use `polymiddleware` instead. This prop will be removed on or after 2028-03-16.
|
|
274
|
+
*/
|
|
275
|
+
avatarMiddleware?: OneOrMany<AvatarMiddleware> | undefined;
|
|
276
|
+
cardActionMiddleware?: OneOrMany<CardActionMiddleware> | undefined;
|
|
277
|
+
children?: ReactNode | ((context: ContextOf<react__default.Context<WebChatAPIContextType>>) => ReactNode);
|
|
1072
278
|
dir?: string;
|
|
1073
279
|
directLine: DirectLineJSBotConnection;
|
|
280
|
+
/**
|
|
281
|
+
* @deprecated Please use `uiState="disabled"` instead. This feature will be removed on or after 2026-09-04.
|
|
282
|
+
*/
|
|
1074
283
|
disabled?: boolean;
|
|
1075
284
|
downscaleImageToDataURL?: (blob: Blob, maxWidth: number, maxHeight: number, type: string, quality: number) => Promise<URL>;
|
|
1076
285
|
grammars?: any;
|
|
1077
|
-
groupActivitiesMiddleware?: OneOrMany<GroupActivitiesMiddleware
|
|
1078
|
-
internalErrorBoxClass?: react__default.Component | Function;
|
|
286
|
+
groupActivitiesMiddleware?: OneOrMany<GroupActivitiesMiddleware> | undefined;
|
|
1079
287
|
locale?: string;
|
|
288
|
+
polymiddleware?: readonly Polymiddleware[] | undefined;
|
|
1080
289
|
onTelemetry?: (event: TelemetryMeasurementEvent) => void;
|
|
1081
290
|
overrideLocalizedStrings?: LocalizedStrings | ((strings: LocalizedStrings, language: string) => LocalizedStrings);
|
|
1082
291
|
renderMarkdown?: (markdown: string, newLineOptions: {
|
|
@@ -1084,14 +293,23 @@ type ComposerCoreProps = Readonly<{
|
|
|
1084
293
|
}, linkOptions: {
|
|
1085
294
|
externalLinkAlt: string;
|
|
1086
295
|
}) => string;
|
|
1087
|
-
scrollToEndButtonMiddleware?: OneOrMany<ScrollToEndButtonMiddleware
|
|
296
|
+
scrollToEndButtonMiddleware?: OneOrMany<ScrollToEndButtonMiddleware> | undefined;
|
|
1088
297
|
selectVoice?: (voices: (typeof window.SpeechSynthesisVoice)[], activity: WebChatActivity) => void;
|
|
1089
298
|
sendBoxMiddleware?: readonly SendBoxMiddleware[] | undefined;
|
|
1090
299
|
sendBoxToolbarMiddleware?: readonly SendBoxToolbarMiddleware[] | undefined;
|
|
1091
300
|
sendTypingIndicator?: boolean;
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
301
|
+
toastMiddleware?: OneOrMany<ToastMiddleware> | undefined;
|
|
302
|
+
typingIndicatorMiddleware?: OneOrMany<TypingIndicatorMiddleware> | undefined;
|
|
303
|
+
/**
|
|
304
|
+
* Sets the state of the UI.
|
|
305
|
+
*
|
|
306
|
+
* - `undefined` will render normally
|
|
307
|
+
* - `"blueprint"` will render as few UI elements as possible and should be non-functional
|
|
308
|
+
* - Useful for loading scenarios
|
|
309
|
+
* - `"disabled"` will render most UI elements as non-functional
|
|
310
|
+
* - Scrolling may continue to trigger read acknowledgements
|
|
311
|
+
*/
|
|
312
|
+
uiState?: 'blueprint' | 'disabled' | undefined;
|
|
1095
313
|
userID?: string;
|
|
1096
314
|
username?: string;
|
|
1097
315
|
}>;
|
|
@@ -1099,7 +317,7 @@ type ComposerWithStoreProps = ComposerCoreProps & Readonly<{
|
|
|
1099
317
|
store?: any;
|
|
1100
318
|
}>;
|
|
1101
319
|
type ComposerProps = ComposerWithStoreProps & {
|
|
1102
|
-
internalRenderErrorBox?: any;
|
|
320
|
+
readonly internalRenderErrorBox?: any;
|
|
1103
321
|
/**
|
|
1104
322
|
* Ponyfill to overrides specific global scope members. This prop cannot be changed after initial render.
|
|
1105
323
|
*
|
|
@@ -1109,10 +327,11 @@ type ComposerProps = ComposerWithStoreProps & {
|
|
|
1109
327
|
*
|
|
1110
328
|
* Please see [#4662](https://github.com/microsoft/BotFramework-WebChat/pull/4662) for details.
|
|
1111
329
|
*/
|
|
1112
|
-
ponyfill?: Partial<GlobalScopePonyfill
|
|
330
|
+
readonly ponyfill?: Partial<GlobalScopePonyfill> | undefined;
|
|
331
|
+
readonly styleOptions?: StyleOptions | undefined;
|
|
1113
332
|
};
|
|
1114
333
|
declare const Composer: {
|
|
1115
|
-
({ internalRenderErrorBox, onTelemetry, ponyfill, ...props }: ComposerProps): any;
|
|
334
|
+
({ internalRenderErrorBox, onTelemetry, ponyfill, styleOptions, ...props }: ComposerProps): any;
|
|
1116
335
|
defaultProps: {
|
|
1117
336
|
internalRenderErrorBox: any;
|
|
1118
337
|
onTelemetry: any;
|
|
@@ -1127,311 +346,14 @@ declare const Composer: {
|
|
|
1127
346
|
};
|
|
1128
347
|
};
|
|
1129
348
|
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
declare function useActivities(): [WebChatActivity[]];
|
|
1133
|
-
|
|
1134
|
-
declare function useActivityKeys(): readonly [readonly string[]];
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* Returns an arrays of two list of activity keys: read and unread.
|
|
1138
|
-
*/
|
|
1139
|
-
declare function useActivityKeysByRead(): readonly [readonly string[], readonly string[]];
|
|
1140
|
-
|
|
1141
|
-
declare function useAvatarForBot(): [{
|
|
1142
|
-
image: string;
|
|
1143
|
-
initials: string;
|
|
1144
|
-
}];
|
|
1145
|
-
|
|
1146
|
-
declare function useAvatarForUser(): [{
|
|
1147
|
-
image: string;
|
|
1148
|
-
initials: string;
|
|
1149
|
-
}];
|
|
1150
|
-
|
|
1151
|
-
declare function useByteFormatter(): (bytes: number) => string;
|
|
1152
|
-
|
|
1153
|
-
declare function useConnectivityStatus(): [string];
|
|
1154
|
-
|
|
1155
|
-
declare function useCreateActivityRenderer(): ActivityComponentFactory;
|
|
1156
|
-
|
|
1157
|
-
type ActivityStatusRenderer = (renderOptions: {
|
|
1158
|
-
activity: WebChatActivity;
|
|
1159
|
-
nextVisibleActivity: WebChatActivity;
|
|
1160
|
-
}) => (props?: {
|
|
1161
|
-
hideTimestamp?: boolean;
|
|
1162
|
-
}) => ReactNode;
|
|
1163
|
-
declare function useCreateActivityStatusRenderer(): ActivityStatusRenderer;
|
|
1164
|
-
|
|
1165
|
-
declare function useCreateAttachmentForScreenReaderRenderer(): AttachmentForScreenReaderComponentFactory;
|
|
1166
|
-
|
|
1167
|
-
declare function useCreateAvatarRenderer(): ({ activity }: {
|
|
1168
|
-
activity: WebChatActivity;
|
|
1169
|
-
}) => false | (() => Exclude<ReactNode, boolean | null | undefined>);
|
|
1170
|
-
|
|
1171
|
-
declare function useCreateScrollToEndButtonRenderer(): ScrollToEndButtonComponentFactory;
|
|
1172
|
-
|
|
1173
|
-
declare function useDateFormatter(): (date: Date | number | string) => string;
|
|
1174
|
-
|
|
1175
|
-
type DebouncedNotification = Notification & {
|
|
1176
|
-
outOfDate: boolean;
|
|
1177
|
-
updateNotBefore: number;
|
|
1178
|
-
};
|
|
1179
|
-
type DebouncedNotifications = {
|
|
1180
|
-
[id: string]: DebouncedNotification;
|
|
1181
|
-
};
|
|
1182
|
-
declare function useDebouncedNotifications(): [DebouncedNotifications];
|
|
1183
|
-
|
|
1184
|
-
declare function useDictateInterims(): [string[], (interims: string[]) => void];
|
|
1185
|
-
|
|
1186
|
-
declare function useDictateState(): [number];
|
|
1187
|
-
|
|
1188
|
-
declare function useDirection(): ['auto' | 'ltr' | 'rtl'];
|
|
1189
|
-
|
|
1190
|
-
declare function useDisabled(): [boolean];
|
|
1191
|
-
|
|
1192
|
-
declare function useDismissNotification(): (id: string) => void;
|
|
1193
|
-
|
|
1194
|
-
declare function useEmitTypingIndicator(): () => void;
|
|
1195
|
-
|
|
1196
|
-
declare function useGetActivitiesByKey(): (key?: string) => readonly WebChatActivity[] | undefined;
|
|
1197
|
-
|
|
1198
|
-
declare function useGetActivityByKey(): (key?: string) => undefined | WebChatActivity;
|
|
1199
|
-
|
|
1200
|
-
declare function useGetHasAcknoweledgedByActivityKey(): (activityKey: string) => boolean | undefined;
|
|
1201
|
-
|
|
1202
|
-
declare function useGetKeyByActivity(): (activity?: WebChatActivity) => string | undefined;
|
|
1203
|
-
|
|
1204
|
-
declare function useGetKeyByActivityId(): (activityId?: string) => string | undefined;
|
|
1205
|
-
|
|
1206
|
-
declare function useGetSendTimeoutForActivity(): ({ activity }: {
|
|
1207
|
-
activity: WebChatActivity;
|
|
1208
|
-
}) => number;
|
|
1209
|
-
|
|
1210
|
-
declare function useGrammars(): [any];
|
|
1211
|
-
|
|
1212
|
-
declare function useGroupActivities(): ({ activities }: {
|
|
1213
|
-
activities: WebChatActivity[];
|
|
1214
|
-
}) => {
|
|
1215
|
-
sender: WebChatActivity[][];
|
|
1216
|
-
status: WebChatActivity[][];
|
|
1217
|
-
};
|
|
1218
|
-
|
|
1219
|
-
declare function useGroupTimestamp(): [boolean | number];
|
|
1220
|
-
|
|
1221
|
-
declare function useLanguage(options?: 'speech'): [string];
|
|
1222
|
-
|
|
1223
|
-
declare function useLastAcknowledgedActivityKey(): readonly [string];
|
|
1224
|
-
|
|
1225
|
-
declare function useLastReadActivityKey(): readonly [string | undefined];
|
|
1226
|
-
|
|
1227
|
-
type Plural = {
|
|
1228
|
-
zero?: string;
|
|
1229
|
-
one?: string;
|
|
1230
|
-
two?: string;
|
|
1231
|
-
few?: string;
|
|
1232
|
-
many?: string;
|
|
1233
|
-
other: string;
|
|
1234
|
-
};
|
|
1235
|
-
declare function useLocalizer({ plural }?: {
|
|
1236
|
-
plural?: boolean;
|
|
1237
|
-
}): (id: string | Plural, args_0?: string | number, ...args_1: string[]) => any;
|
|
1238
|
-
|
|
1239
|
-
declare function useMarkActivityAsSpoken(): (activity: WebChatActivity) => void;
|
|
1240
|
-
|
|
1241
|
-
declare function useMarkActivityKeyAsRead(): (activityKey: string) => void;
|
|
1242
|
-
|
|
1243
|
-
declare function useMarkAllAsAcknowledged(): () => void;
|
|
1244
|
-
|
|
1245
|
-
declare function useNotifications(): [Notification[]];
|
|
1246
|
-
|
|
1247
|
-
declare function usePerformCardAction(): PerformCardAction;
|
|
1248
|
-
|
|
1249
|
-
declare function usePonyfill(): readonly [GlobalScopePonyfill];
|
|
1250
|
-
|
|
1251
|
-
declare function usePostActivity(): (activity: WebChatActivity) => Observable<string>;
|
|
1252
|
-
|
|
1253
|
-
declare function useReferenceGrammarID(): [string];
|
|
1254
|
-
|
|
1255
|
-
declare function useRelativeTimeFormatter(): (dateOrString: Date | string) => string;
|
|
1256
|
-
|
|
1257
|
-
declare function useRenderAttachment(): RenderAttachment | undefined;
|
|
1258
|
-
|
|
1259
|
-
declare function useRenderToast(): RenderToast;
|
|
1260
|
-
|
|
1261
|
-
declare function useRenderTypingIndicator(): RenderTypingIndicator;
|
|
1262
|
-
|
|
1263
|
-
declare function useSendBoxAttachments(): readonly [
|
|
1264
|
-
readonly SendBoxAttachment[],
|
|
1265
|
-
(attachments: readonly SendBoxAttachment[]) => void
|
|
1266
|
-
];
|
|
1267
|
-
|
|
1268
|
-
declare function useSendBoxValue(): [string, (value: string) => void];
|
|
1269
|
-
|
|
1270
|
-
declare function useSendEvent(): (name: string, value: any) => void;
|
|
1271
|
-
|
|
1272
|
-
type PostActivityFile = {
|
|
1273
|
-
name: string;
|
|
1274
|
-
size: number;
|
|
1275
|
-
thumbnail?: string;
|
|
1276
|
-
url: string;
|
|
1277
|
-
};
|
|
1278
|
-
declare function useSendFiles(): (files: PostActivityFile[]) => void;
|
|
1279
|
-
|
|
1280
|
-
declare function useSendMessage(): (text?: string, method?: string, init?: {
|
|
1281
|
-
attachments?: readonly SendBoxAttachment[] | undefined;
|
|
1282
|
-
channelData?: any;
|
|
1283
|
-
}) => void;
|
|
1284
|
-
|
|
1285
|
-
declare function useSendMessageBack(): (value: any, text?: string, displayText?: string) => void;
|
|
1286
|
-
|
|
1287
|
-
declare function useSendPostBack(): (value?: any) => void;
|
|
1288
|
-
|
|
1289
|
-
/**
|
|
1290
|
-
* Returns a key/value map which stores the outgoing activity send status by activity key:
|
|
1291
|
-
*
|
|
1292
|
-
* - `"sending"`, the activity is currently in transit;
|
|
1293
|
-
* - `"sent"`, the activity is sent and acknowledged by the platform;
|
|
1294
|
-
* - `"send failed"`, the activity failed to send.
|
|
1295
|
-
*
|
|
1296
|
-
* If the send status is `"send failed"`, it could be due to (non-exhaustive):
|
|
1297
|
-
*
|
|
1298
|
-
* - Immediate or almost immediate failures, such as network error;
|
|
1299
|
-
* - It took longer than `styleOptions.sendTimeout` or `styleOptions.sendTimeoutForAttachments` to send.
|
|
1300
|
-
*
|
|
1301
|
-
* The send status of an activity could turn from `"send failed"` back to `"sending"` if (non-exhaustive):
|
|
1302
|
-
*
|
|
1303
|
-
* - The platform support resend and the activity is being resend;
|
|
1304
|
-
* - The `styleOptions.sendTimeout` or `styleOptions.sendTimeoutForAttachments` has increased past the expiry, overthrown the previous decision for timeout.
|
|
1305
|
-
*
|
|
1306
|
-
* If the activity key does not exists in this map, the activity is not an outgoing activity.
|
|
1307
|
-
*/
|
|
1308
|
-
declare function useSendStatus(): readonly [ReadonlyMap<string, SendStatus>];
|
|
1309
|
-
|
|
1310
|
-
/** @deprecated Please use "useGetSendTimeoutForActivity()" instead. */
|
|
1311
|
-
declare function useSendTimeoutForActivity(activity: WebChatActivity): number;
|
|
1312
|
-
|
|
1313
|
-
declare function useSendTypingIndicator(): [boolean];
|
|
1314
|
-
|
|
1315
|
-
declare function useSetNotification(): (notification: Notification) => void;
|
|
1316
|
-
|
|
1317
|
-
declare function useShouldSpeakIncomingActivity(): [boolean, (value: boolean) => void];
|
|
1318
|
-
|
|
1319
|
-
declare function useStartDictate(): () => void;
|
|
1320
|
-
|
|
1321
|
-
declare function useStopDictate(): () => void;
|
|
1322
|
-
|
|
1323
|
-
declare function useStyleOptions(): [StrictStyleOptions];
|
|
1324
|
-
|
|
1325
|
-
declare function useSubmitSendBox(): (method?: string, { channelData }?: {
|
|
1326
|
-
channelData: any;
|
|
1327
|
-
}) => void;
|
|
1328
|
-
|
|
1329
|
-
declare function useSuggestedActions(): [DirectLineCardAction[], (suggestedActions: never[]) => void];
|
|
1330
|
-
|
|
1331
|
-
declare function useTimeoutForSend(): [number | ((activity: WebChatActivity) => number)];
|
|
1332
|
-
|
|
1333
|
-
declare function useTrackDimension(): (name: string, data: any) => void;
|
|
1334
|
-
|
|
1335
|
-
type TrackEventFunction = {
|
|
1336
|
-
(name: string, data: any): void;
|
|
1337
|
-
debug: (name: string, data: any) => void;
|
|
1338
|
-
error: (name: string, data: any) => void;
|
|
1339
|
-
info: (name: string, data: any) => void;
|
|
1340
|
-
warn: (name: string, data: any) => void;
|
|
1341
|
-
};
|
|
1342
|
-
declare function useTrackEvent(): TrackEventFunction;
|
|
1343
|
-
|
|
1344
|
-
declare function useTrackException(): (error: Error, fatal: boolean) => void;
|
|
1345
|
-
|
|
1346
|
-
declare function useTrackTiming<T>(): (name: string, functionOrPromise: (() => T) | Promise<T>) => Promise<T>;
|
|
1347
|
-
|
|
1348
|
-
declare function useUserID(): [string];
|
|
1349
|
-
|
|
1350
|
-
declare function useUsername(): [string];
|
|
1351
|
-
|
|
1352
|
-
declare function useVoiceSelector(activity: any): (voices: (typeof window.SpeechSynthesisVoice)[]) => typeof window.SpeechSynthesisVoice;
|
|
1353
|
-
|
|
1354
|
-
declare const index_useActiveTyping: typeof useActiveTyping;
|
|
1355
|
-
declare const index_useActivities: typeof useActivities;
|
|
1356
|
-
declare const index_useActivityKeys: typeof useActivityKeys;
|
|
1357
|
-
declare const index_useActivityKeysByRead: typeof useActivityKeysByRead;
|
|
1358
|
-
declare const index_useAvatarForBot: typeof useAvatarForBot;
|
|
1359
|
-
declare const index_useAvatarForUser: typeof useAvatarForUser;
|
|
1360
|
-
declare const index_useByteFormatter: typeof useByteFormatter;
|
|
1361
|
-
declare const index_useConnectivityStatus: typeof useConnectivityStatus;
|
|
1362
|
-
declare const index_useCreateActivityRenderer: typeof useCreateActivityRenderer;
|
|
1363
|
-
declare const index_useCreateActivityStatusRenderer: typeof useCreateActivityStatusRenderer;
|
|
1364
|
-
declare const index_useCreateAttachmentForScreenReaderRenderer: typeof useCreateAttachmentForScreenReaderRenderer;
|
|
1365
|
-
declare const index_useCreateAvatarRenderer: typeof useCreateAvatarRenderer;
|
|
1366
|
-
declare const index_useCreateScrollToEndButtonRenderer: typeof useCreateScrollToEndButtonRenderer;
|
|
1367
|
-
declare const index_useDateFormatter: typeof useDateFormatter;
|
|
1368
|
-
declare const index_useDebouncedNotifications: typeof useDebouncedNotifications;
|
|
1369
|
-
declare const index_useDictateInterims: typeof useDictateInterims;
|
|
1370
|
-
declare const index_useDictateState: typeof useDictateState;
|
|
1371
|
-
declare const index_useDirection: typeof useDirection;
|
|
1372
|
-
declare const index_useDisabled: typeof useDisabled;
|
|
1373
|
-
declare const index_useDismissNotification: typeof useDismissNotification;
|
|
1374
|
-
declare const index_useEmitTypingIndicator: typeof useEmitTypingIndicator;
|
|
1375
|
-
declare const index_useGetActivitiesByKey: typeof useGetActivitiesByKey;
|
|
1376
|
-
declare const index_useGetActivityByKey: typeof useGetActivityByKey;
|
|
1377
|
-
declare const index_useGetKeyByActivity: typeof useGetKeyByActivity;
|
|
1378
|
-
declare const index_useGetKeyByActivityId: typeof useGetKeyByActivityId;
|
|
1379
|
-
declare const index_useGetSendTimeoutForActivity: typeof useGetSendTimeoutForActivity;
|
|
1380
|
-
declare const index_useGrammars: typeof useGrammars;
|
|
1381
|
-
declare const index_useGroupActivities: typeof useGroupActivities;
|
|
1382
|
-
declare const index_useGroupTimestamp: typeof useGroupTimestamp;
|
|
1383
|
-
declare const index_useLanguage: typeof useLanguage;
|
|
1384
|
-
declare const index_useLastAcknowledgedActivityKey: typeof useLastAcknowledgedActivityKey;
|
|
1385
|
-
declare const index_useLastReadActivityKey: typeof useLastReadActivityKey;
|
|
1386
|
-
declare const index_useLocalizer: typeof useLocalizer;
|
|
1387
|
-
declare const index_useMarkActivityAsSpoken: typeof useMarkActivityAsSpoken;
|
|
1388
|
-
declare const index_useMarkActivityKeyAsRead: typeof useMarkActivityKeyAsRead;
|
|
1389
|
-
declare const index_useMarkAllAsAcknowledged: typeof useMarkAllAsAcknowledged;
|
|
1390
|
-
declare const index_useNotifications: typeof useNotifications;
|
|
1391
|
-
declare const index_usePerformCardAction: typeof usePerformCardAction;
|
|
1392
|
-
declare const index_usePonyfill: typeof usePonyfill;
|
|
1393
|
-
declare const index_usePostActivity: typeof usePostActivity;
|
|
1394
|
-
declare const index_useReferenceGrammarID: typeof useReferenceGrammarID;
|
|
1395
|
-
declare const index_useRelativeTimeFormatter: typeof useRelativeTimeFormatter;
|
|
1396
|
-
declare const index_useRenderAttachment: typeof useRenderAttachment;
|
|
1397
|
-
declare const index_useRenderToast: typeof useRenderToast;
|
|
1398
|
-
declare const index_useRenderTypingIndicator: typeof useRenderTypingIndicator;
|
|
1399
|
-
declare const index_useSendBoxAttachments: typeof useSendBoxAttachments;
|
|
1400
|
-
declare const index_useSendBoxValue: typeof useSendBoxValue;
|
|
1401
|
-
declare const index_useSendEvent: typeof useSendEvent;
|
|
1402
|
-
declare const index_useSendFiles: typeof useSendFiles;
|
|
1403
|
-
declare const index_useSendMessage: typeof useSendMessage;
|
|
1404
|
-
declare const index_useSendMessageBack: typeof useSendMessageBack;
|
|
1405
|
-
declare const index_useSendPostBack: typeof useSendPostBack;
|
|
1406
|
-
declare const index_useSendTimeoutForActivity: typeof useSendTimeoutForActivity;
|
|
1407
|
-
declare const index_useSendTypingIndicator: typeof useSendTypingIndicator;
|
|
1408
|
-
declare const index_useSetNotification: typeof useSetNotification;
|
|
1409
|
-
declare const index_useShouldSpeakIncomingActivity: typeof useShouldSpeakIncomingActivity;
|
|
1410
|
-
declare const index_useStartDictate: typeof useStartDictate;
|
|
1411
|
-
declare const index_useStopDictate: typeof useStopDictate;
|
|
1412
|
-
declare const index_useStyleOptions: typeof useStyleOptions;
|
|
1413
|
-
declare const index_useSubmitSendBox: typeof useSubmitSendBox;
|
|
1414
|
-
declare const index_useSuggestedActions: typeof useSuggestedActions;
|
|
1415
|
-
declare const index_useTimeoutForSend: typeof useTimeoutForSend;
|
|
1416
|
-
declare const index_useTrackDimension: typeof useTrackDimension;
|
|
1417
|
-
declare const index_useTrackEvent: typeof useTrackEvent;
|
|
1418
|
-
declare const index_useTrackException: typeof useTrackException;
|
|
1419
|
-
declare const index_useTrackTiming: typeof useTrackTiming;
|
|
1420
|
-
declare const index_useUserID: typeof useUserID;
|
|
1421
|
-
declare const index_useUsername: typeof useUsername;
|
|
1422
|
-
declare const index_useVoiceSelector: typeof useVoiceSelector;
|
|
1423
|
-
declare namespace index {
|
|
1424
|
-
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, 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_useUserID as useUserID, index_useUsername as useUsername, index_useVoiceSelector as useVoiceSelector };
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
type Work<T> = (...args: any[]) => T;
|
|
349
|
+
type Work<T> = (...args: unknown[]) => T;
|
|
1428
350
|
type Enhancer<T> = (next: Work<T>) => Work<T>;
|
|
1429
351
|
type Middleware<Setup, Result> = (setup: Setup) => Enhancer<Result>;
|
|
1430
|
-
declare function concatMiddleware<Setup, Result>(...middleware: Middleware<Setup, Result>[]): Middleware<Setup, Result>;
|
|
352
|
+
declare function concatMiddleware<Setup, Result>(...middleware: readonly Middleware<Setup, Result>[]): Middleware<Setup, Result>;
|
|
1431
353
|
|
|
1432
354
|
declare function localize(id: string, language: string, ...args: string[]): string | boolean;
|
|
1433
355
|
|
|
1434
|
-
declare function normalizeStyleOptions({
|
|
356
|
+
declare function normalizeStyleOptions({ bubbleImageHeight, bubbleMaxWidth, bubbleMinWidth, disableFileUpload, hideUploadButton, slowConnectionAfter, ...options }?: StyleOptions): StrictStyleOptions;
|
|
1435
357
|
|
|
1436
358
|
type WebSpeechPonyfill = {
|
|
1437
359
|
/**
|
|
@@ -1454,11 +376,12 @@ type WebSpeechPonyfillFactory = ({ referenceGrammarID }: {
|
|
|
1454
376
|
referenceGrammarID?: string;
|
|
1455
377
|
}) => WebSpeechPonyfill;
|
|
1456
378
|
|
|
1457
|
-
declare const
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
version: string;
|
|
379
|
+
declare const buildInfoObject: {
|
|
380
|
+
readonly buildTool?: string | undefined;
|
|
381
|
+
readonly moduleFormat?: string | undefined;
|
|
382
|
+
readonly version?: string | undefined;
|
|
1462
383
|
};
|
|
384
|
+
declare const version: string;
|
|
1463
385
|
|
|
1464
|
-
export {
|
|
386
|
+
export { LegacyActivityMiddleware as ActivityMiddleware, AttachmentForScreenReaderComponentFactory, AttachmentForScreenReaderMiddleware, LegacyAttachmentMiddleware as AttachmentMiddleware, CardActionMiddleware, Composer, Notification, PerformCardAction, LegacyRenderAttachment as RenderAttachment, RenderToast, ScrollToEndButtonComponentFactory, ScrollToEndButtonMiddleware, SendBoxMiddlewareProxy, SendBoxToolbarMiddlewareProxy, SendStatus, StrictStyleOptions, StyleOptions, ToastMiddleware, TypingIndicatorMiddleware, buildInfoObject as buildInfo, concatMiddleware, DEFAULT_OPTIONS as defaultStyleOptions, extractSendBoxMiddleware, extractSendBoxToolbarMiddleware, localize, normalizeStyleOptions, version };
|
|
387
|
+
export type { ActivityStatusMiddleware, AvatarComponentFactory, AvatarMiddleware, ComposerProps, ContextOf, GroupActivities, GroupActivitiesMiddleware, RenderActivityStatus, SendBoxMiddleware, SendBoxMiddlewareProps, SendBoxMiddlewareRequest, SendBoxToolbarMiddleware, SendBoxToolbarMiddlewareProps, SendBoxToolbarMiddlewareRequest, WebSpeechPonyfill, WebSpeechPonyfillFactory };
|