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