botframework-webchat-api 4.17.1 → 4.18.1-hotfix.20260127.b53acdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/decorator.js +3 -0
- package/dist/botframework-webchat-api.d.mts +213 -55
- package/dist/botframework-webchat-api.d.ts +1612 -0
- package/dist/botframework-webchat-api.decorator.d.mts +30 -0
- package/dist/botframework-webchat-api.decorator.d.ts +30 -0
- package/dist/botframework-webchat-api.decorator.js +3 -0
- package/dist/botframework-webchat-api.decorator.js.map +1 -0
- package/dist/botframework-webchat-api.decorator.mjs +3 -0
- package/dist/botframework-webchat-api.decorator.mjs.LEGAL.txt +0 -0
- package/dist/botframework-webchat-api.decorator.mjs.map +1 -0
- package/dist/botframework-webchat-api.internal.d.mts +18 -1
- package/dist/botframework-webchat-api.internal.d.ts +20 -0
- package/dist/botframework-webchat-api.internal.js +3 -0
- package/dist/botframework-webchat-api.internal.js.LEGAL.txt +0 -0
- package/dist/botframework-webchat-api.internal.js.map +1 -0
- package/dist/botframework-webchat-api.internal.mjs +1 -1
- package/dist/botframework-webchat-api.internal.mjs.map +1 -1
- package/dist/botframework-webchat-api.js +3 -0
- package/dist/botframework-webchat-api.js.LEGAL.txt +0 -0
- package/dist/botframework-webchat-api.js.map +1 -0
- package/dist/botframework-webchat-api.mjs +1 -1
- package/dist/botframework-webchat-api.mjs.map +1 -1
- package/dist/chunk-2HABAU7C.mjs +3 -0
- package/dist/chunk-2HABAU7C.mjs.LEGAL.txt +0 -0
- package/dist/chunk-2HABAU7C.mjs.map +1 -0
- package/dist/chunk-45Z2ZE4M.js +3 -0
- package/dist/chunk-45Z2ZE4M.js.LEGAL.txt +0 -0
- package/dist/chunk-45Z2ZE4M.js.map +1 -0
- package/dist/chunk-7K3OK5TS.mjs +3 -0
- package/dist/chunk-7K3OK5TS.mjs.LEGAL.txt +0 -0
- package/dist/chunk-7K3OK5TS.mjs.map +1 -0
- package/dist/chunk-LXPINC7N.js +3 -0
- package/dist/chunk-LXPINC7N.js.LEGAL.txt +0 -0
- package/dist/chunk-LXPINC7N.js.map +1 -0
- package/dist/chunk-PRWGXTDA.mjs +3 -0
- package/dist/chunk-PRWGXTDA.mjs.LEGAL.txt +0 -0
- package/dist/chunk-PRWGXTDA.mjs.map +1 -0
- package/dist/chunk-WH7VSYKK.js +3 -0
- package/dist/chunk-WH7VSYKK.js.LEGAL.txt +0 -0
- package/dist/chunk-WH7VSYKK.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/dist/types-BXPldIKA.d.mts +86 -0
- package/dist/types-BXPldIKA.d.ts +86 -0
- package/internal.js +1 -1
- package/package.json +68 -70
- package/src/StyleOptions.ts +123 -4
- package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +48 -0
- package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +51 -0
- package/src/decorator/ActivityBorder/types.ts +1 -0
- package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +31 -0
- package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +38 -0
- package/src/decorator/ActivityGrouping/types.ts +1 -0
- package/src/decorator/DecoratorComposer.tsx +22 -0
- package/src/decorator/internal/InternalDecoratorComposer.tsx +61 -0
- package/src/decorator/internal/LowPriorityDecoratorComposer.tsx +19 -0
- package/src/decorator/private/DecoratorComposerContext.ts +16 -0
- package/src/decorator/private/PassthroughFallback.tsx +12 -0
- package/src/decorator/private/templateMiddleware.test.tsx +100 -0
- package/src/decorator/private/templateMiddleware.ts +60 -0
- package/src/decorator/types.ts +15 -0
- package/src/decorator.ts +16 -0
- package/src/defaultStyleOptions.ts +26 -5
- package/{lib/external/PrecompiledGlobalize.cjs → src/external/PrecompiledGlobalize.js} +8 -7
- package/src/hooks/Composer.tsx +75 -53
- package/src/hooks/index.ts +7 -1
- package/src/hooks/internal/SendBoxMiddleware.ts +5 -3
- package/src/hooks/internal/SendBoxToolbarMiddleware.ts +5 -3
- package/src/hooks/internal/Tracker.ts +1 -1
- package/src/hooks/internal/WebChatAPIContext.ts +12 -5
- package/src/hooks/internal/private/templateMiddleware.ts +3 -43
- package/src/hooks/internal/usePrevious.ts +5 -2
- package/src/hooks/middleware/concatMiddleware.spec.js +20 -0
- package/src/hooks/middleware/concatMiddleware.ts +6 -5
- package/src/hooks/private/numberWithInfinity.spec.ts +9 -0
- package/src/hooks/private/numberWithInfinity.ts +15 -0
- package/src/hooks/private/reduceIterable.spec.ts +29 -0
- package/src/hooks/private/reduceIterable.ts +13 -0
- package/src/hooks/useActiveTyping.ts +31 -28
- package/src/hooks/useDisabled.ts +8 -2
- package/src/hooks/useGetActivitiesByKey.ts +3 -0
- package/src/hooks/useSuggestedActions.ts +17 -4
- package/src/hooks/useUIState.ts +18 -0
- package/src/hooks/validation/uiState.parseUIState.spec.ts +21 -0
- package/src/hooks/validation/uiState.ts +10 -0
- package/src/index.ts +4 -4
- package/src/internal.ts +3 -1
- package/src/localization/ar-SA.json +19 -0
- package/src/localization/bg-BG.json +19 -0
- package/src/localization/ca-ES.json +19 -0
- package/src/localization/cs-CZ.json +19 -0
- package/src/localization/da-DK.json +19 -0
- package/src/localization/de-DE.json +19 -0
- package/src/localization/el-GR.json +19 -0
- package/src/localization/en-US.json +20 -2
- package/src/localization/es-ES.json +19 -0
- package/src/localization/et-EE.json +19 -0
- package/src/localization/eu-ES.json +19 -0
- package/src/localization/fi-FI.json +19 -0
- package/src/localization/fr-FR.json +19 -0
- package/src/localization/gl-ES.json +19 -0
- package/src/localization/he-IL.json +20 -1
- package/src/localization/hi-IN.json +19 -0
- package/src/localization/hr-HR.json +19 -0
- package/src/localization/hu-HU.json +19 -0
- package/src/localization/id-ID.json +19 -0
- package/src/localization/it-IT.json +19 -0
- package/src/localization/ja-JP.json +19 -0
- package/src/localization/kk-KZ.json +19 -0
- package/src/localization/ko-KR.json +19 -0
- package/src/localization/lt-LT.json +19 -0
- package/src/localization/lv-LV.json +19 -0
- package/src/localization/ms-MY.json +19 -0
- package/src/localization/nb-NO.json +19 -0
- package/src/localization/nl-NL.json +19 -0
- package/src/localization/pl-PL.json +19 -0
- package/src/localization/pt-BR.json +19 -0
- package/src/localization/pt-PT.json +19 -0
- package/src/localization/ro-RO.json +19 -0
- package/src/localization/ru-RU.json +19 -0
- package/src/localization/sk-SK.json +19 -0
- package/src/localization/sl-SI.json +19 -0
- package/src/localization/sr-Cyrl-CS.json +19 -0
- package/src/localization/sr-Latn-CS.json +19 -0
- package/src/localization/sv-SE.json +19 -0
- package/src/localization/th-TH.json +19 -0
- package/src/localization/tr-TR.json +19 -0
- package/src/localization/uk-UA.json +19 -0
- package/src/localization/vi-VN.json +19 -0
- package/src/localization/zh-CN.json +21 -2
- package/src/localization/zh-HK.json +19 -0
- package/src/localization/zh-TW.json +19 -0
- package/src/normalizeStyleOptions.ts +45 -0
- package/src/providers/ActivityAcknowledgement/useLastReadActivityKey.ts +1 -1
- package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +50 -30
- package/src/providers/ActivityKeyer/private/Context.ts +2 -1
- package/src/providers/ActivityKeyer/private/lastOf.spec.ts +6 -0
- package/src/providers/ActivityKeyer/private/lastOf.ts +3 -0
- package/src/providers/ActivityKeyer/private/someIterable.spec.ts +44 -0
- package/src/providers/ActivityKeyer/private/someIterable.ts +9 -0
- package/src/providers/ActivityKeyer/useGetActivitiesByKey.ts +7 -0
- package/src/providers/ActivityListener/ActivityListenerComposer.tsx +28 -0
- package/src/providers/ActivityListener/private/Context.tsx +16 -0
- package/src/providers/ActivityListener/private/useContext.ts +6 -0
- package/src/providers/ActivityListener/useUpsertedActivities.ts +6 -0
- package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +2 -2
- package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +170 -0
- package/src/providers/ActivityTyping/private/Context.ts +16 -0
- package/src/providers/ActivityTyping/private/useContext.ts +6 -0
- package/src/providers/ActivityTyping/private/useMemoWithPrevious.ts +17 -0
- package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +231 -0
- package/src/providers/ActivityTyping/private/useReduceActivities.ts +48 -0
- package/src/providers/ActivityTyping/types/AllTyping.ts +8 -0
- package/src/providers/ActivityTyping/useAllTyping.ts +6 -0
- package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +115 -0
- package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +23 -0
- package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +93 -0
- package/src/providers/GroupActivities/private/isGroupingValid.ts +41 -0
- package/src/providers/GroupActivities/private/useGroupActivitiesContext.ts +6 -0
- package/src/providers/GroupActivities/useGroupActivities.ts +20 -0
- package/src/providers/GroupActivities/useGroupActivitiesByName.ts +17 -0
- package/src/tsconfig.json +1 -5
- package/src/types/AttachmentForScreenReaderMiddleware.ts +9 -2
- package/src/types/AvatarMiddleware.ts +5 -1
- package/src/types/CardActionMiddleware.ts +2 -0
- package/src/types/ComponentMiddleware.ts +1 -1
- package/src/types/GroupActivitiesMiddleware.ts +7 -11
- package/src/types/Typing.ts +2 -3
- package/src/utils/validateProps.spec.ts +74 -0
- package/src/utils/validateProps.ts +56 -0
- package/dist/chunk-4ZIUY4G5.mjs +0 -3
- package/dist/chunk-4ZIUY4G5.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/defaultStyleOptions.d.ts +0 -4
- package/lib/defaultStyleOptions.d.ts.map +0 -1
- package/lib/defaultStyleOptions.js +0 -277
- package/lib/hooks/Composer.d.ts +0 -88
- package/lib/hooks/Composer.d.ts.map +0 -1
- package/lib/hooks/Composer.js +0 -602
- package/lib/hooks/index.d.ts +0 -72
- package/lib/hooks/index.d.ts.map +0 -1
- package/lib/hooks/index.js +0 -497
- package/lib/hooks/internal/ErrorBox.js +0 -47
- package/lib/hooks/internal/SendBoxMiddleware.d.ts +0 -34
- 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 -34
- 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 -28
- package/lib/hooks/internal/private/templateMiddleware.d.ts.map +0 -1
- package/lib/hooks/internal/private/templateMiddleware.js +0 -48
- 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 -2
- 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/useActiveTyping.d.ts +0 -6
- 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/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 -97
- package/lib/localization/bg-BG.json +0 -97
- package/lib/localization/ca-ES.json +0 -97
- package/lib/localization/cs-CZ.json +0 -97
- package/lib/localization/da-DK.json +0 -97
- package/lib/localization/de-DE.json +0 -97
- package/lib/localization/el-GR.json +0 -97
- package/lib/localization/en-US.json +0 -167
- package/lib/localization/es-ES.json +0 -97
- package/lib/localization/et-EE.json +0 -97
- package/lib/localization/eu-ES.json +0 -97
- package/lib/localization/fi-FI.json +0 -97
- package/lib/localization/fr-FR.json +0 -97
- 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 -97
- package/lib/localization/he-IL.json +0 -97
- package/lib/localization/hi-IN.json +0 -97
- package/lib/localization/hr-HR.json +0 -97
- package/lib/localization/hu-HU.json +0 -97
- package/lib/localization/id-ID.json +0 -97
- package/lib/localization/it-IT.json +0 -97
- package/lib/localization/ja-JP.json +0 -97
- package/lib/localization/kk-KZ.json +0 -97
- package/lib/localization/ko-KR.json +0 -97
- package/lib/localization/lt-LT.json +0 -97
- package/lib/localization/lv-LV.json +0 -97
- 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 -97
- package/lib/localization/nb-NO.json +0 -97
- package/lib/localization/nl-NL.json +0 -97
- package/lib/localization/overrides.json +0 -257
- package/lib/localization/pl-PL.json +0 -97
- package/lib/localization/pt-BR.json +0 -97
- package/lib/localization/pt-PT.json +0 -97
- package/lib/localization/ro-RO.json +0 -97
- package/lib/localization/ru-RU.json +0 -97
- package/lib/localization/sk-SK.json +0 -97
- package/lib/localization/sl-SI.json +0 -97
- package/lib/localization/sl-SL.json +0 -3
- package/lib/localization/sr-Cyrl-CS.json +0 -97
- package/lib/localization/sr-Cyrl.json +0 -3
- package/lib/localization/sr-Latn-CS.json +0 -97
- package/lib/localization/sr-Latn.json +0 -3
- package/lib/localization/sv-SE.json +0 -97
- package/lib/localization/th-TH.json +0 -97
- package/lib/localization/tr-TR.json +0 -97
- package/lib/localization/uk-UA.json +0 -97
- package/lib/localization/vi-VN.json +0 -97
- package/lib/localization/yue.json +0 -100
- package/lib/localization/zh-CN.json +0 -97
- package/lib/localization/zh-HK.json +0 -97
- package/lib/localization/zh-TW.json +0 -97
- 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 -119
- package/lib/providers/ActivityKeyer/private/Context.d.ts +0 -12
- 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/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/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/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/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/external/PrecompiledGlobalize.cjs +0 -8855
- package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +0 -75
- package/src/hooks/useGroupActivities.ts +0 -10
- /package/dist/{chunk-4ZIUY4G5.mjs.LEGAL.txt → botframework-webchat-api.decorator.js.LEGAL.txt} +0 -0
package/decorator.js
ADDED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { WebChatActivity, DirectLineAttachment, DirectLineCardAction, DirectLineJSBotConnection, Observable, sendFiles, sendMessage, setSendBoxAttachments,
|
|
1
|
+
import { WebChatActivity, DirectLineAttachment, DirectLineCardAction, DirectLineJSBotConnection, Observable, sendFiles, sendMessage, setSendBoxAttachments, OneOrMany, GlobalScopePonyfill, SendBoxAttachment } from 'botframework-webchat-core';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode, ReactElement, Context } from 'react';
|
|
4
|
+
import react__default, { ReactNode, ReactElement, Context, ComponentType } from 'react';
|
|
5
5
|
import * as react_chain_of_responsibility from 'react-chain-of-responsibility';
|
|
6
|
-
import
|
|
6
|
+
import { ComponentMiddleware as ComponentMiddleware$1 } from 'react-chain-of-responsibility';
|
|
7
7
|
|
|
8
8
|
type StyleOptions = {
|
|
9
9
|
/**
|
|
@@ -127,10 +127,35 @@ type StyleOptions = {
|
|
|
127
127
|
*/
|
|
128
128
|
bubbleFromUserNubSize?: number;
|
|
129
129
|
bubbleFromUserTextColor?: string;
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Specifies the fixed height of the bubble for image, default to unset.
|
|
132
|
+
*
|
|
133
|
+
* @deprecated Use `bubbleImageMaxHeight` and `bubbleImageMinHeight` instead. To mimick behavior before deprecation, set both options to 240px.
|
|
134
|
+
*/
|
|
135
|
+
bubbleImageHeight?: number | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies the maximum height of the bubble for image, default to 240px.
|
|
138
|
+
*
|
|
139
|
+
* CSS variable: `--webchat__max-height--image-bubble`.
|
|
140
|
+
*
|
|
141
|
+
* New in 4.18.0.
|
|
142
|
+
*/
|
|
143
|
+
bubbleImageMaxHeight?: number | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies the minimum height of the bubble for image, default to 240px.
|
|
146
|
+
*
|
|
147
|
+
* CSS variable: `--webchat__min-height--image-bubble`.
|
|
148
|
+
*
|
|
149
|
+
* New in 4.18.0.
|
|
150
|
+
*/
|
|
151
|
+
bubbleImageMinHeight?: number | undefined;
|
|
152
|
+
bubbleMaxWidth?: number | undefined;
|
|
153
|
+
bubbleMinWidth?: number | undefined;
|
|
154
|
+
bubbleAttachmentMaxWidth?: number | undefined;
|
|
155
|
+
bubbleAttachmentMinWidth?: number | undefined;
|
|
156
|
+
bubbleMessageMaxWidth?: number | undefined;
|
|
157
|
+
bubbleMessageMinWidth?: number | undefined;
|
|
132
158
|
bubbleMinHeight?: number;
|
|
133
|
-
bubbleMinWidth?: number;
|
|
134
159
|
/**
|
|
135
160
|
* Nub offset ''bottom' will render nub at the bottom
|
|
136
161
|
* A positive or negative number will shift nub offset up/down
|
|
@@ -692,8 +717,82 @@ type StyleOptions = {
|
|
|
692
717
|
* @default 2000
|
|
693
718
|
*/
|
|
694
719
|
maxMessageLength?: number;
|
|
720
|
+
/**
|
|
721
|
+
* The node to place Web Chat styles into. Needed when using as a Web Component.
|
|
722
|
+
*
|
|
723
|
+
* @default document.head
|
|
724
|
+
*/
|
|
725
|
+
stylesRoot?: Node;
|
|
726
|
+
/**
|
|
727
|
+
* Border animation
|
|
728
|
+
*/
|
|
729
|
+
/**
|
|
730
|
+
* Border animation 1st color
|
|
731
|
+
*
|
|
732
|
+
* CSS variable: `--webchat__animation--border-color-1` CSS variable to adjust the color
|
|
733
|
+
*
|
|
734
|
+
* New in 4.19.0.
|
|
735
|
+
*/
|
|
736
|
+
borderAnimationColor1?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Border animation 2nd color
|
|
739
|
+
*
|
|
740
|
+
* CSS variable: `--webchat__animation--border-color-2` CSS variable to adjust the color
|
|
741
|
+
*
|
|
742
|
+
* New in 4.19.0.
|
|
743
|
+
*/
|
|
744
|
+
borderAnimationColor2?: string;
|
|
745
|
+
/**
|
|
746
|
+
* Border animation 3rd color
|
|
747
|
+
*
|
|
748
|
+
* CSS variable: `--webchat__animation--border-color-3` CSS variable to adjust the color
|
|
749
|
+
*
|
|
750
|
+
* New in 4.19.0.
|
|
751
|
+
*/
|
|
752
|
+
borderAnimationColor3?: string;
|
|
753
|
+
/**
|
|
754
|
+
* Code block theme
|
|
755
|
+
*
|
|
756
|
+
* - `'github-light-default'` - use light theme for code blocks
|
|
757
|
+
* - `'github-dark-default'` - use dark theme for code blocks
|
|
758
|
+
*
|
|
759
|
+
* @default 'github-light-default'
|
|
760
|
+
*
|
|
761
|
+
* New in 4.19.0.
|
|
762
|
+
*/
|
|
763
|
+
codeBlockTheme?: 'github-light-default' | 'github-dark-default';
|
|
764
|
+
/**
|
|
765
|
+
* (EXPERIMENTAL) Feedback buttons placement
|
|
766
|
+
*
|
|
767
|
+
* - `'activity-actions'` - place feedback buttons inside activity actions - will show feedback form
|
|
768
|
+
* - `'activity-status'` - place feedback buttons inside activity status
|
|
769
|
+
*
|
|
770
|
+
* @default 'activity-status'
|
|
771
|
+
*
|
|
772
|
+
* @deprecated This is an experimental style options and should not be used without understanding its risk.
|
|
773
|
+
*
|
|
774
|
+
* New in 4.19.0.
|
|
775
|
+
*/
|
|
776
|
+
feedbackActionsPlacement?: 'activity-actions' | 'activity-status';
|
|
777
|
+
/**
|
|
778
|
+
* Use continuous mode for speech recognition. Default to `false`.
|
|
779
|
+
*
|
|
780
|
+
* - `true` to use continuous mode which focuses on a hands-off experience, keeping speech recognition active for extended periods, supporting barge-in, non-speech interactions will not stop speech recognition
|
|
781
|
+
* - `false` to use interactive mode which focuses on privacy, keeping speech recognition active only for the minimal time required, no barge-in, non-speech interactions will stop speech recognition
|
|
782
|
+
*
|
|
783
|
+
* @see https://github.com/microsoft/BotFramework-WebChat/pull/5426
|
|
784
|
+
*/
|
|
785
|
+
speechRecognitionContinuous?: boolean | undefined;
|
|
786
|
+
/**
|
|
787
|
+
* Defines how activities are being grouped by (in the order of appearance in the array). Default to `['sender', 'status']` or `sender,status` in CSS.
|
|
788
|
+
*
|
|
789
|
+
* Values are key of result of `groupActivitiesMiddleware`. The default implementation of `groupActivitiesMiddleware` has `sender` and `status`.
|
|
790
|
+
*
|
|
791
|
+
* To add new groupings, configure `groupActivitiesMiddleware` to output extra groups. Then, add the group names to `styleOptions.groupActivitiesBy`.
|
|
792
|
+
*/
|
|
793
|
+
groupActivitiesBy?: readonly string[] | undefined;
|
|
695
794
|
};
|
|
696
|
-
type StrictStyleOptions = Required<Omit<StyleOptions, 'hideScrollToEndButton' | 'newMessagesButtonFontSize'>> & {
|
|
795
|
+
type StrictStyleOptions = Required<Omit<StyleOptions, 'bubbleImageHeight' | 'bubbleMaxWidth' | 'bubbleMinWidth' | 'hideScrollToEndButton' | 'newMessagesButtonFontSize'>> & {
|
|
697
796
|
bubbleFromUserNubOffset: number;
|
|
698
797
|
bubbleNubOffset: number;
|
|
699
798
|
emojiSet: false | Record<string, string>;
|
|
@@ -766,7 +865,7 @@ type ComponentEnhancer<TComponentFactoryArguments extends any[], TProps> = (next
|
|
|
766
865
|
* The signature of the middleware is:
|
|
767
866
|
*
|
|
768
867
|
* ```
|
|
769
|
-
* (...args: SetupArguments) => (next: Enhancer) => (...args: ComponentFactoryArguments) => false | React.
|
|
868
|
+
* (...args: SetupArguments) => (next: Enhancer) => (...args: ComponentFactoryArguments) => false | React.ComponentType<Props>
|
|
770
869
|
* ```
|
|
771
870
|
*/
|
|
772
871
|
type ComponentMiddleware<TSetupArguments extends any[], TComponentFactoryArguments extends any[], TProps> = (...args: TSetupArguments) => ComponentEnhancer<TComponentFactoryArguments, TProps>;
|
|
@@ -810,22 +909,24 @@ type CardActionMiddleware = FunctionMiddleware<[
|
|
|
810
909
|
}
|
|
811
910
|
], {}>;
|
|
812
911
|
|
|
912
|
+
type ContextOf<T> = T extends Context<infer P> ? P : never;
|
|
913
|
+
|
|
914
|
+
type GroupedActivities$1 = readonly (readonly WebChatActivity[])[];
|
|
813
915
|
type GroupActivities = CallFunction<[
|
|
814
|
-
{
|
|
815
|
-
activities: WebChatActivity[];
|
|
816
|
-
}
|
|
916
|
+
Readonly<{
|
|
917
|
+
activities: readonly WebChatActivity[];
|
|
918
|
+
}>
|
|
817
919
|
], {
|
|
818
|
-
|
|
819
|
-
status: WebChatActivity[][];
|
|
920
|
+
[key: string]: GroupedActivities$1;
|
|
820
921
|
}>;
|
|
821
922
|
type GroupActivitiesMiddleware = FunctionMiddleware<[
|
|
923
|
+
string
|
|
822
924
|
], [
|
|
823
|
-
{
|
|
824
|
-
activities: WebChatActivity[];
|
|
825
|
-
}
|
|
925
|
+
Readonly<{
|
|
926
|
+
activities: readonly WebChatActivity[];
|
|
927
|
+
}>
|
|
826
928
|
], {
|
|
827
|
-
|
|
828
|
-
status: WebChatActivity[][];
|
|
929
|
+
[key: string]: GroupedActivities$1;
|
|
829
930
|
}>;
|
|
830
931
|
|
|
831
932
|
type LocalizedStrings = {
|
|
@@ -908,6 +1009,7 @@ type Typing = {
|
|
|
908
1009
|
expireAt: number;
|
|
909
1010
|
name: string;
|
|
910
1011
|
role: 'bot' | 'user';
|
|
1012
|
+
type: 'busy' | 'livestream';
|
|
911
1013
|
};
|
|
912
1014
|
|
|
913
1015
|
type TypingIndicatorProps = {
|
|
@@ -923,55 +1025,57 @@ type RenderTypingIndicator = (props: TypingIndicatorProps) => ReactNode;
|
|
|
923
1025
|
type TypingIndicatorEnhancer = (next: RenderTypingIndicator) => RenderTypingIndicator;
|
|
924
1026
|
type TypingIndicatorMiddleware = () => TypingIndicatorEnhancer;
|
|
925
1027
|
|
|
926
|
-
type
|
|
1028
|
+
type MiddlewareWithInit<M extends ComponentMiddleware$1<any, any, any>, I> = (init: I) => ReturnType<M> | false;
|
|
927
1029
|
|
|
1030
|
+
declare const initSendBoxMiddleware: (middleware: readonly MiddlewareWithInit<react_chain_of_responsibility.ComponentMiddleware<unknown, unknown>, undefined>[], init: undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
1031
|
+
className?: string | undefined;
|
|
1032
|
+
}>[];
|
|
928
1033
|
declare const SendBoxMiddlewareProxy: react.ComponentType<{
|
|
929
1034
|
className?: string | undefined;
|
|
930
1035
|
} & {
|
|
931
1036
|
fallbackComponent?: react.ComponentType<{
|
|
932
1037
|
className?: string | undefined;
|
|
933
1038
|
}>;
|
|
934
|
-
request
|
|
1039
|
+
request?: undefined;
|
|
935
1040
|
} & {
|
|
936
|
-
children?: react.ReactNode;
|
|
1041
|
+
children?: react.ReactNode | undefined;
|
|
937
1042
|
}>;
|
|
938
|
-
declare const rectifySendBoxMiddlewareProps: (middleware: unknown) => readonly react_chain_of_responsibility.ComponentMiddleware<type_fest.EmptyObject, {
|
|
939
|
-
className?: string | undefined;
|
|
940
|
-
}>[];
|
|
941
1043
|
declare const types$1: {
|
|
942
|
-
|
|
1044
|
+
init: undefined;
|
|
1045
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
943
1046
|
className?: string | undefined;
|
|
944
1047
|
}>;
|
|
945
1048
|
props: {
|
|
946
1049
|
className?: string | undefined;
|
|
947
1050
|
};
|
|
948
|
-
request:
|
|
1051
|
+
request: void;
|
|
949
1052
|
};
|
|
950
1053
|
type SendBoxMiddleware = typeof types$1.middleware;
|
|
951
1054
|
type SendBoxMiddlewareProps = typeof types$1.props;
|
|
952
1055
|
type SendBoxMiddlewareRequest = typeof types$1.request;
|
|
953
1056
|
|
|
1057
|
+
declare const initSendBoxToolbarMiddleware: (middleware: readonly MiddlewareWithInit<react_chain_of_responsibility.ComponentMiddleware<unknown, unknown>, undefined>[], init: undefined) => readonly react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
1058
|
+
className?: string | undefined;
|
|
1059
|
+
}>[];
|
|
954
1060
|
declare const SendBoxToolbarMiddlewareProxy: react.ComponentType<{
|
|
955
1061
|
className?: string | undefined;
|
|
956
1062
|
} & {
|
|
957
1063
|
fallbackComponent?: react.ComponentType<{
|
|
958
1064
|
className?: string | undefined;
|
|
959
1065
|
}>;
|
|
960
|
-
request
|
|
1066
|
+
request?: undefined;
|
|
961
1067
|
} & {
|
|
962
|
-
children?: react.ReactNode;
|
|
1068
|
+
children?: react.ReactNode | undefined;
|
|
963
1069
|
}>;
|
|
964
|
-
declare const rectifySendBoxToolbarMiddlewareProps: (middleware: unknown) => readonly react_chain_of_responsibility.ComponentMiddleware<type_fest.EmptyObject, {
|
|
965
|
-
className?: string | undefined;
|
|
966
|
-
}>[];
|
|
967
1070
|
declare const types: {
|
|
968
|
-
|
|
1071
|
+
init: undefined;
|
|
1072
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<void, {
|
|
969
1073
|
className?: string | undefined;
|
|
970
1074
|
}>;
|
|
971
1075
|
props: {
|
|
972
1076
|
className?: string | undefined;
|
|
973
1077
|
};
|
|
974
|
-
request:
|
|
1078
|
+
request: void;
|
|
975
1079
|
};
|
|
976
1080
|
type SendBoxToolbarMiddleware = typeof types.middleware;
|
|
977
1081
|
type SendBoxToolbarMiddlewareProps = typeof types.props;
|
|
@@ -989,7 +1093,7 @@ type PrecompiledGlobalize = {
|
|
|
989
1093
|
}) => string);
|
|
990
1094
|
};
|
|
991
1095
|
|
|
992
|
-
type
|
|
1096
|
+
type WebChatAPIContextType = {
|
|
993
1097
|
activityRenderer?: LegacyActivityRenderer;
|
|
994
1098
|
activityStatusRenderer: RenderActivityStatus;
|
|
995
1099
|
attachmentForScreenReaderRenderer?: AttachmentForScreenReaderComponentFactory;
|
|
@@ -998,13 +1102,15 @@ type WebChatAPIContext = {
|
|
|
998
1102
|
clearSuggestedActions?: () => void;
|
|
999
1103
|
dir?: string;
|
|
1000
1104
|
directLine?: DirectLineJSBotConnection;
|
|
1001
|
-
disabled?: boolean;
|
|
1002
1105
|
dismissNotification?: (id: string) => void;
|
|
1003
1106
|
downscaleImageToDataURL?: (blob: Blob, maxWidth: number, maxHeight: number, type: string, quality: number) => Promise<URL>;
|
|
1004
1107
|
emitTypingIndicator?: () => void;
|
|
1005
1108
|
grammars?: any;
|
|
1006
1109
|
groupActivities?: GroupActivities;
|
|
1007
|
-
internalErrorBoxClass?:
|
|
1110
|
+
internalErrorBoxClass?: ComponentType<Readonly<{
|
|
1111
|
+
error: Error;
|
|
1112
|
+
type?: string;
|
|
1113
|
+
}>> | undefined;
|
|
1008
1114
|
language?: string;
|
|
1009
1115
|
localizedGlobalizeState?: PrecompiledGlobalize[];
|
|
1010
1116
|
localizedStrings?: {
|
|
@@ -1047,10 +1153,10 @@ type WebChatAPIContext = {
|
|
|
1047
1153
|
toastRenderer?: RenderToast;
|
|
1048
1154
|
trackDimension?: (name: string, data: any) => void;
|
|
1049
1155
|
typingIndicatorRenderer?: any;
|
|
1156
|
+
uiState: 'blueprint' | 'disabled' | undefined;
|
|
1050
1157
|
userID?: string;
|
|
1051
1158
|
username?: string;
|
|
1052
1159
|
};
|
|
1053
|
-
declare const context: react.Context<WebChatAPIContext>;
|
|
1054
1160
|
|
|
1055
1161
|
type ComposerCoreProps = Readonly<{
|
|
1056
1162
|
activityMiddleware?: OneOrMany<ActivityMiddleware>;
|
|
@@ -1059,14 +1165,20 @@ type ComposerCoreProps = Readonly<{
|
|
|
1059
1165
|
attachmentMiddleware?: OneOrMany<AttachmentMiddleware>;
|
|
1060
1166
|
avatarMiddleware?: OneOrMany<AvatarMiddleware>;
|
|
1061
1167
|
cardActionMiddleware?: OneOrMany<CardActionMiddleware>;
|
|
1062
|
-
children?: ReactNode | ((context: ContextOf<
|
|
1168
|
+
children?: ReactNode | ((context: ContextOf<react__default.Context<WebChatAPIContextType>>) => ReactNode);
|
|
1063
1169
|
dir?: string;
|
|
1064
1170
|
directLine: DirectLineJSBotConnection;
|
|
1171
|
+
/**
|
|
1172
|
+
* @deprecated Please use `uiState="disabled"` instead. This feature will be removed on or after 2026-09-04.
|
|
1173
|
+
*/
|
|
1065
1174
|
disabled?: boolean;
|
|
1066
1175
|
downscaleImageToDataURL?: (blob: Blob, maxWidth: number, maxHeight: number, type: string, quality: number) => Promise<URL>;
|
|
1067
1176
|
grammars?: any;
|
|
1068
1177
|
groupActivitiesMiddleware?: OneOrMany<GroupActivitiesMiddleware>;
|
|
1069
|
-
internalErrorBoxClass?:
|
|
1178
|
+
internalErrorBoxClass?: ComponentType<Readonly<{
|
|
1179
|
+
error: Error;
|
|
1180
|
+
type?: string;
|
|
1181
|
+
}>> | undefined;
|
|
1070
1182
|
locale?: string;
|
|
1071
1183
|
onTelemetry?: (event: TelemetryMeasurementEvent) => void;
|
|
1072
1184
|
overrideLocalizedStrings?: LocalizedStrings | ((strings: LocalizedStrings, language: string) => LocalizedStrings);
|
|
@@ -1083,6 +1195,16 @@ type ComposerCoreProps = Readonly<{
|
|
|
1083
1195
|
styleOptions?: StyleOptions;
|
|
1084
1196
|
toastMiddleware?: OneOrMany<ToastMiddleware>;
|
|
1085
1197
|
typingIndicatorMiddleware?: OneOrMany<TypingIndicatorMiddleware>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Sets the state of the UI.
|
|
1200
|
+
*
|
|
1201
|
+
* - `undefined` will render normally
|
|
1202
|
+
* - `"blueprint"` will render as few UI elements as possible and should be non-functional
|
|
1203
|
+
* - Useful for loading scenarios
|
|
1204
|
+
* - `"disabled"` will render most UI elements as non-functional
|
|
1205
|
+
* - Scrolling may continue to trigger read acknowledgements
|
|
1206
|
+
*/
|
|
1207
|
+
uiState?: 'blueprint' | 'disabled' | undefined;
|
|
1086
1208
|
userID?: string;
|
|
1087
1209
|
username?: string;
|
|
1088
1210
|
}>;
|
|
@@ -1118,9 +1240,7 @@ declare const Composer: {
|
|
|
1118
1240
|
};
|
|
1119
1241
|
};
|
|
1120
1242
|
|
|
1121
|
-
declare function useActiveTyping(expireAfter?: number): [
|
|
1122
|
-
[userId: string]: Typing;
|
|
1123
|
-
}];
|
|
1243
|
+
declare function useActiveTyping(expireAfter?: number): readonly [Readonly<Record<string, Typing>>];
|
|
1124
1244
|
|
|
1125
1245
|
declare function useActivities(): [WebChatActivity[]];
|
|
1126
1246
|
|
|
@@ -1180,12 +1300,17 @@ declare function useDictateState(): [number];
|
|
|
1180
1300
|
|
|
1181
1301
|
declare function useDirection(): ['auto' | 'ltr' | 'rtl'];
|
|
1182
1302
|
|
|
1183
|
-
|
|
1303
|
+
/**
|
|
1304
|
+
* @deprecated Please use `useUIState() === 'disabled'` instead. This hook will be removed on or after 2026-09-04.
|
|
1305
|
+
*/
|
|
1306
|
+
declare function useDisabled(): readonly [boolean];
|
|
1184
1307
|
|
|
1185
1308
|
declare function useDismissNotification(): (id: string) => void;
|
|
1186
1309
|
|
|
1187
1310
|
declare function useEmitTypingIndicator(): () => void;
|
|
1188
1311
|
|
|
1312
|
+
declare function useGetActivitiesByKey(): (key?: string) => readonly WebChatActivity[] | undefined;
|
|
1313
|
+
|
|
1189
1314
|
declare function useGetActivityByKey(): (key?: string) => undefined | WebChatActivity;
|
|
1190
1315
|
|
|
1191
1316
|
declare function useGetHasAcknoweledgedByActivityKey(): (activityKey: string) => boolean | undefined;
|
|
@@ -1200,12 +1325,26 @@ declare function useGetSendTimeoutForActivity(): ({ activity }: {
|
|
|
1200
1325
|
|
|
1201
1326
|
declare function useGrammars(): [any];
|
|
1202
1327
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1328
|
+
type GroupedActivities = readonly (readonly WebChatActivity[])[];
|
|
1329
|
+
/**
|
|
1330
|
+
* This hook will return a callback function. When called with `activities`, the callback function will run the `groupActivitiesMiddleware` and will return all groupings.
|
|
1331
|
+
*
|
|
1332
|
+
* @deprecated This function is deprecated and will be removed on or after 2027-05-04. Developers should migrate to [`useGroupActivitiesByName`](#usegroupactivitiesbyname) for performance reason.
|
|
1333
|
+
*/
|
|
1334
|
+
declare function useGroupActivities(): ({ activities }: Readonly<{
|
|
1335
|
+
activities: readonly WebChatActivity[];
|
|
1336
|
+
}>) => Readonly<{
|
|
1337
|
+
[key: string]: GroupedActivities;
|
|
1338
|
+
}>;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* This hook will return a callback function. When called with `activities`, the callback function will run the `groupActivitiesMiddleware` for the specified grouping name.
|
|
1342
|
+
*
|
|
1343
|
+
* Unlike the [`useGroupActivities`](#usegroupactivities) hook which provide result for all groupings, this hook only provide result for the specified grouping name and the grouping name must be one of the name specified in `styleOptions.groupActivitiesBy`.
|
|
1344
|
+
*
|
|
1345
|
+
* @returns Result of `groupActivitiesMiddleware` for the specified grouping name
|
|
1346
|
+
*/
|
|
1347
|
+
declare function useGroupActivitiesBy(): (activities: readonly WebChatActivity[], name: string) => readonly (readonly WebChatActivity[])[];
|
|
1209
1348
|
|
|
1210
1349
|
declare function useGroupTimestamp(): [boolean | number];
|
|
1211
1350
|
|
|
@@ -1213,7 +1352,7 @@ declare function useLanguage(options?: 'speech'): [string];
|
|
|
1213
1352
|
|
|
1214
1353
|
declare function useLastAcknowledgedActivityKey(): readonly [string];
|
|
1215
1354
|
|
|
1216
|
-
declare function useLastReadActivityKey(): readonly [string];
|
|
1355
|
+
declare function useLastReadActivityKey(): readonly [string | undefined];
|
|
1217
1356
|
|
|
1218
1357
|
type Plural = {
|
|
1219
1358
|
zero?: string;
|
|
@@ -1225,7 +1364,7 @@ type Plural = {
|
|
|
1225
1364
|
};
|
|
1226
1365
|
declare function useLocalizer({ plural }?: {
|
|
1227
1366
|
plural?: boolean;
|
|
1228
|
-
}): (id: string | Plural, args_0?: string | number, ...
|
|
1367
|
+
}): (id: string | Plural, args_0?: string | number, ...args: string[]) => any;
|
|
1229
1368
|
|
|
1230
1369
|
declare function useMarkActivityAsSpoken(): (activity: WebChatActivity) => void;
|
|
1231
1370
|
|
|
@@ -1317,7 +1456,13 @@ declare function useSubmitSendBox(): (method?: string, { channelData }?: {
|
|
|
1317
1456
|
channelData: any;
|
|
1318
1457
|
}) => void;
|
|
1319
1458
|
|
|
1320
|
-
declare function useSuggestedActions(): [
|
|
1459
|
+
declare function useSuggestedActions(): [
|
|
1460
|
+
DirectLineCardAction[],
|
|
1461
|
+
(suggestedActions: never[]) => void,
|
|
1462
|
+
extras: {
|
|
1463
|
+
activity: WebChatActivity;
|
|
1464
|
+
}
|
|
1465
|
+
];
|
|
1321
1466
|
|
|
1322
1467
|
declare function useTimeoutForSend(): [number | ((activity: WebChatActivity) => number)];
|
|
1323
1468
|
|
|
@@ -1336,6 +1481,17 @@ declare function useTrackException(): (error: Error, fatal: boolean) => void;
|
|
|
1336
1481
|
|
|
1337
1482
|
declare function useTrackTiming<T>(): (name: string, functionOrPromise: (() => T) | Promise<T>) => Promise<T>;
|
|
1338
1483
|
|
|
1484
|
+
/**
|
|
1485
|
+
* Gets the state of the UI.
|
|
1486
|
+
*
|
|
1487
|
+
* - `undefined` will render normally
|
|
1488
|
+
* - `"blueprint"` will render as few UI elements as possible and should be non-functional
|
|
1489
|
+
* - Useful for loading scenarios
|
|
1490
|
+
* - `"disabled"` will render most UI elements as non-functional
|
|
1491
|
+
* - Scrolling may continue to trigger read acknowledgements
|
|
1492
|
+
*/
|
|
1493
|
+
declare function useUIState(): readonly ['blueprint' | 'disabled' | undefined];
|
|
1494
|
+
|
|
1339
1495
|
declare function useUserID(): [string];
|
|
1340
1496
|
|
|
1341
1497
|
declare function useUsername(): [string];
|
|
@@ -1363,6 +1519,7 @@ declare const index_useDirection: typeof useDirection;
|
|
|
1363
1519
|
declare const index_useDisabled: typeof useDisabled;
|
|
1364
1520
|
declare const index_useDismissNotification: typeof useDismissNotification;
|
|
1365
1521
|
declare const index_useEmitTypingIndicator: typeof useEmitTypingIndicator;
|
|
1522
|
+
declare const index_useGetActivitiesByKey: typeof useGetActivitiesByKey;
|
|
1366
1523
|
declare const index_useGetActivityByKey: typeof useGetActivityByKey;
|
|
1367
1524
|
declare const index_useGetKeyByActivity: typeof useGetKeyByActivity;
|
|
1368
1525
|
declare const index_useGetKeyByActivityId: typeof useGetKeyByActivityId;
|
|
@@ -1407,14 +1564,15 @@ declare const index_useTrackDimension: typeof useTrackDimension;
|
|
|
1407
1564
|
declare const index_useTrackEvent: typeof useTrackEvent;
|
|
1408
1565
|
declare const index_useTrackException: typeof useTrackException;
|
|
1409
1566
|
declare const index_useTrackTiming: typeof useTrackTiming;
|
|
1567
|
+
declare const index_useUIState: typeof useUIState;
|
|
1410
1568
|
declare const index_useUserID: typeof useUserID;
|
|
1411
1569
|
declare const index_useUsername: typeof useUsername;
|
|
1412
1570
|
declare const index_useVoiceSelector: typeof useVoiceSelector;
|
|
1413
1571
|
declare namespace index {
|
|
1414
|
-
export { index_useActiveTyping as useActiveTyping, index_useActivities as useActivities, index_useActivityKeys as useActivityKeys, index_useActivityKeysByRead as useActivityKeysByRead, index_useAvatarForBot as useAvatarForBot, index_useAvatarForUser as useAvatarForUser, index_useByteFormatter as useByteFormatter, index_useConnectivityStatus as useConnectivityStatus, index_useCreateActivityRenderer as useCreateActivityRenderer, index_useCreateActivityStatusRenderer as useCreateActivityStatusRenderer, index_useCreateAttachmentForScreenReaderRenderer as useCreateAttachmentForScreenReaderRenderer, index_useCreateAvatarRenderer as useCreateAvatarRenderer, index_useCreateScrollToEndButtonRenderer as useCreateScrollToEndButtonRenderer, index_useDateFormatter as useDateFormatter, index_useDebouncedNotifications as useDebouncedNotifications, index_useDictateInterims as useDictateInterims, index_useDictateState as useDictateState, index_useDirection as useDirection, index_useDisabled as useDisabled, index_useDismissNotification as useDismissNotification, index_useEmitTypingIndicator as useEmitTypingIndicator, index_useGetActivityByKey as useGetActivityByKey, useGetHasAcknoweledgedByActivityKey as useGetHasAcknowledgedByActivityKey, index_useGetKeyByActivity as useGetKeyByActivity, index_useGetKeyByActivityId as useGetKeyByActivityId, index_useGetSendTimeoutForActivity as useGetSendTimeoutForActivity, index_useGrammars as useGrammars, index_useGroupActivities as useGroupActivities, index_useGroupTimestamp as useGroupTimestamp, index_useLanguage as useLanguage, index_useLastAcknowledgedActivityKey as useLastAcknowledgedActivityKey, index_useLastReadActivityKey as useLastReadActivityKey, index_useLocalizer as useLocalizer, index_useMarkActivityAsSpoken as useMarkActivityAsSpoken, index_useMarkActivityKeyAsRead as useMarkActivityKeyAsRead, index_useMarkAllAsAcknowledged as useMarkAllAsAcknowledged, index_useNotifications as useNotifications, index_usePerformCardAction as usePerformCardAction, index_usePonyfill as usePonyfill, index_usePostActivity as usePostActivity, index_useReferenceGrammarID as useReferenceGrammarID, index_useRelativeTimeFormatter as useRelativeTimeFormatter, index_useRenderAttachment as useRenderAttachment, index_useRenderToast as useRenderToast, index_useRenderTypingIndicator as useRenderTypingIndicator, index_useSendBoxAttachments as useSendBoxAttachments, index_useSendBoxValue as useSendBoxValue, index_useSendEvent as useSendEvent, index_useSendFiles as useSendFiles, index_useSendMessage as useSendMessage, index_useSendMessageBack as useSendMessageBack, index_useSendPostBack as useSendPostBack, useSendStatus as useSendStatusByActivityKey, index_useSendTimeoutForActivity as useSendTimeoutForActivity, index_useSendTypingIndicator as useSendTypingIndicator, index_useSetNotification as useSetNotification, index_useShouldSpeakIncomingActivity as useShouldSpeakIncomingActivity, index_useStartDictate as useStartDictate, index_useStopDictate as useStopDictate, index_useStyleOptions as useStyleOptions, index_useSubmitSendBox as useSubmitSendBox, index_useSuggestedActions as useSuggestedActions, index_useTimeoutForSend as useTimeoutForSend, index_useTrackDimension as useTrackDimension, index_useTrackEvent as useTrackEvent, index_useTrackException as useTrackException, index_useTrackTiming as useTrackTiming, index_useUserID as useUserID, index_useUsername as useUsername, index_useVoiceSelector as useVoiceSelector };
|
|
1572
|
+
export { index_useActiveTyping as useActiveTyping, index_useActivities as useActivities, index_useActivityKeys as useActivityKeys, index_useActivityKeysByRead as useActivityKeysByRead, index_useAvatarForBot as useAvatarForBot, index_useAvatarForUser as useAvatarForUser, index_useByteFormatter as useByteFormatter, index_useConnectivityStatus as useConnectivityStatus, index_useCreateActivityRenderer as useCreateActivityRenderer, index_useCreateActivityStatusRenderer as useCreateActivityStatusRenderer, index_useCreateAttachmentForScreenReaderRenderer as useCreateAttachmentForScreenReaderRenderer, index_useCreateAvatarRenderer as useCreateAvatarRenderer, index_useCreateScrollToEndButtonRenderer as useCreateScrollToEndButtonRenderer, index_useDateFormatter as useDateFormatter, index_useDebouncedNotifications as useDebouncedNotifications, index_useDictateInterims as useDictateInterims, index_useDictateState as useDictateState, index_useDirection as useDirection, index_useDisabled as useDisabled, index_useDismissNotification as useDismissNotification, index_useEmitTypingIndicator as useEmitTypingIndicator, index_useGetActivitiesByKey as useGetActivitiesByKey, index_useGetActivityByKey as useGetActivityByKey, useGetHasAcknoweledgedByActivityKey as useGetHasAcknowledgedByActivityKey, index_useGetKeyByActivity as useGetKeyByActivity, index_useGetKeyByActivityId as useGetKeyByActivityId, index_useGetSendTimeoutForActivity as useGetSendTimeoutForActivity, index_useGrammars as useGrammars, index_useGroupActivities as useGroupActivities, useGroupActivitiesBy as useGroupActivitiesByName, index_useGroupTimestamp as useGroupTimestamp, index_useLanguage as useLanguage, index_useLastAcknowledgedActivityKey as useLastAcknowledgedActivityKey, index_useLastReadActivityKey as useLastReadActivityKey, index_useLocalizer as useLocalizer, index_useMarkActivityAsSpoken as useMarkActivityAsSpoken, index_useMarkActivityKeyAsRead as useMarkActivityKeyAsRead, index_useMarkAllAsAcknowledged as useMarkAllAsAcknowledged, index_useNotifications as useNotifications, index_usePerformCardAction as usePerformCardAction, index_usePonyfill as usePonyfill, index_usePostActivity as usePostActivity, index_useReferenceGrammarID as useReferenceGrammarID, index_useRelativeTimeFormatter as useRelativeTimeFormatter, index_useRenderAttachment as useRenderAttachment, index_useRenderToast as useRenderToast, index_useRenderTypingIndicator as useRenderTypingIndicator, index_useSendBoxAttachments as useSendBoxAttachments, index_useSendBoxValue as useSendBoxValue, index_useSendEvent as useSendEvent, index_useSendFiles as useSendFiles, index_useSendMessage as useSendMessage, index_useSendMessageBack as useSendMessageBack, index_useSendPostBack as useSendPostBack, useSendStatus as useSendStatusByActivityKey, index_useSendTimeoutForActivity as useSendTimeoutForActivity, index_useSendTypingIndicator as useSendTypingIndicator, index_useSetNotification as useSetNotification, index_useShouldSpeakIncomingActivity as useShouldSpeakIncomingActivity, index_useStartDictate as useStartDictate, index_useStopDictate as useStopDictate, index_useStyleOptions as useStyleOptions, index_useSubmitSendBox as useSubmitSendBox, index_useSuggestedActions as useSuggestedActions, index_useTimeoutForSend as useTimeoutForSend, index_useTrackDimension as useTrackDimension, index_useTrackEvent as useTrackEvent, index_useTrackException as useTrackException, index_useTrackTiming as useTrackTiming, index_useUIState as useUIState, index_useUserID as useUserID, index_useUsername as useUsername, index_useVoiceSelector as useVoiceSelector };
|
|
1415
1573
|
}
|
|
1416
1574
|
|
|
1417
|
-
type Work<T> = (...args:
|
|
1575
|
+
type Work<T> = (...args: unknown[]) => T;
|
|
1418
1576
|
type Enhancer<T> = (next: Work<T>) => Work<T>;
|
|
1419
1577
|
type Middleware<Setup, Result> = (setup: Setup) => Enhancer<Result>;
|
|
1420
1578
|
declare function concatMiddleware<Setup, Result>(...middleware: Middleware<Setup, Result>[]): Middleware<Setup, Result>;
|
|
@@ -1451,4 +1609,4 @@ declare const buildInfo: {
|
|
|
1451
1609
|
version: string;
|
|
1452
1610
|
};
|
|
1453
1611
|
|
|
1454
|
-
export { type ActivityComponentFactory, type ActivityMiddleware, type ActivityStatusMiddleware, type ActivityStatusRenderer, type AttachmentForScreenReaderComponentFactory, type AttachmentForScreenReaderMiddleware, type AttachmentMiddleware, type AvatarComponentFactory, type AvatarMiddleware, type CardActionMiddleware, Composer, type ComposerProps, type ContextOf, type DebouncedNotification, type DebouncedNotifications, type GroupActivities, type GroupActivitiesMiddleware, type Notification, type PerformCardAction, type PostActivityFile, type RenderActivityStatus, type RenderAttachment, type RenderToast, type RenderTypingIndicator, type ScrollToEndButtonComponentFactory, type ScrollToEndButtonMiddleware, type SendBoxMiddleware, type SendBoxMiddlewareProps, SendBoxMiddlewareProxy, type SendBoxMiddlewareRequest, type SendBoxToolbarMiddleware, type SendBoxToolbarMiddlewareProps, SendBoxToolbarMiddlewareProxy, type SendBoxToolbarMiddlewareRequest, type SendStatus, type StrictStyleOptions, type StyleOptions, type ToastMiddleware, type Typing, type TypingIndicatorMiddleware, type WebSpeechPonyfill, type WebSpeechPonyfillFactory, buildInfo, concatMiddleware, DEFAULT_OPTIONS as defaultStyleOptions, index as hooks,
|
|
1612
|
+
export { type ActivityComponentFactory, type ActivityMiddleware, type ActivityStatusMiddleware, type ActivityStatusRenderer, type AttachmentForScreenReaderComponentFactory, type AttachmentForScreenReaderMiddleware, type AttachmentMiddleware, type AvatarComponentFactory, type AvatarMiddleware, type CardActionMiddleware, Composer, type ComposerProps, type ContextOf, type DebouncedNotification, type DebouncedNotifications, type GroupActivities, type GroupActivitiesMiddleware, type Notification, type PerformCardAction, type PostActivityFile, type RenderActivityStatus, type RenderAttachment, type RenderToast, type RenderTypingIndicator, type ScrollToEndButtonComponentFactory, type ScrollToEndButtonMiddleware, type SendBoxMiddleware, type SendBoxMiddlewareProps, SendBoxMiddlewareProxy, type SendBoxMiddlewareRequest, type SendBoxToolbarMiddleware, type SendBoxToolbarMiddlewareProps, SendBoxToolbarMiddlewareProxy, type SendBoxToolbarMiddlewareRequest, type SendStatus, type StrictStyleOptions, type StyleOptions, type ToastMiddleware, type Typing, type TypingIndicatorMiddleware, type WebSpeechPonyfill, type WebSpeechPonyfillFactory, buildInfo, concatMiddleware, DEFAULT_OPTIONS as defaultStyleOptions, index as hooks, initSendBoxMiddleware, initSendBoxToolbarMiddleware, localize, normalizeStyleOptions, version };
|