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