botframework-webchat-api 4.18.0 → 4.18.1-hotfix.20260127.b53acdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/decorator.js +1 -1
- package/dist/botframework-webchat-api.d.mts +196 -48
- package/dist/botframework-webchat-api.d.ts +1612 -0
- package/dist/botframework-webchat-api.decorator.d.mts +24 -30
- package/dist/botframework-webchat-api.decorator.d.ts +30 -0
- package/dist/botframework-webchat-api.decorator.js +3 -0
- package/dist/botframework-webchat-api.decorator.js.map +1 -0
- package/dist/botframework-webchat-api.decorator.mjs +1 -1
- package/dist/botframework-webchat-api.decorator.mjs.map +1 -1
- package/dist/botframework-webchat-api.internal.d.mts +18 -1
- package/dist/botframework-webchat-api.internal.d.ts +20 -0
- package/dist/botframework-webchat-api.internal.js +3 -0
- package/dist/botframework-webchat-api.internal.js.map +1 -0
- package/dist/botframework-webchat-api.internal.mjs +1 -1
- package/dist/botframework-webchat-api.internal.mjs.map +1 -1
- package/dist/botframework-webchat-api.js +3 -0
- package/dist/botframework-webchat-api.js.map +1 -0
- package/dist/botframework-webchat-api.mjs +1 -139
- package/dist/botframework-webchat-api.mjs.map +1 -1
- package/dist/chunk-2HABAU7C.mjs +3 -0
- package/dist/chunk-2HABAU7C.mjs.LEGAL.txt +0 -0
- package/dist/chunk-2HABAU7C.mjs.map +1 -0
- package/dist/chunk-45Z2ZE4M.js +3 -0
- package/dist/chunk-45Z2ZE4M.js.LEGAL.txt +0 -0
- package/dist/chunk-45Z2ZE4M.js.map +1 -0
- package/dist/chunk-7K3OK5TS.mjs +3 -0
- package/dist/chunk-7K3OK5TS.mjs.LEGAL.txt +0 -0
- package/dist/chunk-7K3OK5TS.mjs.map +1 -0
- package/dist/chunk-LXPINC7N.js +3 -0
- package/dist/chunk-LXPINC7N.js.LEGAL.txt +0 -0
- package/dist/chunk-LXPINC7N.js.map +1 -0
- package/dist/chunk-PRWGXTDA.mjs +3 -0
- package/dist/chunk-PRWGXTDA.mjs.LEGAL.txt +0 -0
- package/dist/chunk-PRWGXTDA.mjs.map +1 -0
- package/dist/chunk-WH7VSYKK.js +3 -0
- package/dist/chunk-WH7VSYKK.js.LEGAL.txt +0 -0
- package/dist/chunk-WH7VSYKK.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/dist/types-BXPldIKA.d.mts +86 -0
- package/dist/types-BXPldIKA.d.ts +86 -0
- package/internal.js +1 -1
- package/package.json +59 -71
- package/src/StyleOptions.ts +123 -4
- package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +48 -0
- package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +51 -0
- package/src/decorator/ActivityBorder/types.ts +1 -0
- package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +31 -0
- package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +38 -0
- package/src/decorator/ActivityGrouping/types.ts +1 -0
- package/src/decorator/DecoratorComposer.tsx +22 -0
- package/src/decorator/internal/InternalDecoratorComposer.tsx +61 -0
- package/src/decorator/internal/LowPriorityDecoratorComposer.tsx +19 -0
- package/src/decorator/private/DecoratorComposerContext.ts +16 -0
- package/src/decorator/private/PassthroughFallback.tsx +12 -0
- package/src/decorator/private/templateMiddleware.test.tsx +5 -1
- package/src/decorator/private/templateMiddleware.ts +11 -9
- package/src/decorator/types.ts +15 -0
- package/src/decorator.ts +16 -0
- package/src/defaultStyleOptions.ts +26 -5
- package/src/hooks/Composer.tsx +59 -45
- package/src/hooks/index.ts +5 -1
- package/src/hooks/internal/SendBoxMiddleware.ts +3 -1
- package/src/hooks/internal/SendBoxToolbarMiddleware.ts +3 -1
- package/src/hooks/internal/Tracker.ts +1 -1
- package/src/hooks/internal/WebChatAPIContext.ts +12 -5
- package/src/hooks/middleware/concatMiddleware.spec.js +20 -0
- package/src/hooks/middleware/concatMiddleware.ts +6 -5
- package/src/hooks/private/reduceIterable.spec.ts +0 -2
- package/src/hooks/useActiveTyping.ts +3 -2
- package/src/hooks/useDisabled.ts +8 -2
- package/src/hooks/useSuggestedActions.ts +17 -4
- package/src/hooks/useUIState.ts +18 -0
- package/src/hooks/validation/uiState.parseUIState.spec.ts +21 -0
- package/src/hooks/validation/uiState.ts +10 -0
- package/src/internal.ts +3 -1
- package/src/localization/ar-SA.json +20 -16
- package/src/localization/bg-BG.json +20 -16
- package/src/localization/ca-ES.json +20 -16
- package/src/localization/cs-CZ.json +20 -16
- package/src/localization/da-DK.json +20 -16
- package/src/localization/de-DE.json +20 -16
- package/src/localization/el-GR.json +20 -16
- package/src/localization/en-US.json +21 -19
- package/src/localization/es-ES.json +20 -16
- package/src/localization/et-EE.json +20 -16
- package/src/localization/eu-ES.json +20 -16
- package/src/localization/fi-FI.json +20 -16
- package/src/localization/fr-FR.json +20 -16
- package/src/localization/gl-ES.json +20 -16
- package/src/localization/he-IL.json +20 -16
- package/src/localization/hi-IN.json +20 -16
- package/src/localization/hr-HR.json +20 -16
- package/src/localization/hu-HU.json +20 -16
- package/src/localization/id-ID.json +20 -16
- package/src/localization/it-IT.json +20 -16
- package/src/localization/ja-JP.json +20 -16
- package/src/localization/kk-KZ.json +20 -16
- package/src/localization/ko-KR.json +20 -16
- package/src/localization/lt-LT.json +20 -16
- package/src/localization/lv-LV.json +20 -16
- package/src/localization/ms-MY.json +20 -16
- package/src/localization/nb-NO.json +20 -16
- package/src/localization/nl-NL.json +20 -16
- package/src/localization/pl-PL.json +20 -16
- package/src/localization/pt-BR.json +20 -16
- package/src/localization/pt-PT.json +20 -16
- package/src/localization/ro-RO.json +20 -16
- package/src/localization/ru-RU.json +20 -16
- package/src/localization/sk-SK.json +20 -16
- package/src/localization/sl-SI.json +20 -16
- package/src/localization/sr-Cyrl-CS.json +20 -16
- package/src/localization/sr-Latn-CS.json +20 -16
- package/src/localization/sv-SE.json +20 -16
- package/src/localization/th-TH.json +20 -16
- package/src/localization/tr-TR.json +20 -16
- package/src/localization/uk-UA.json +20 -16
- package/src/localization/vi-VN.json +20 -16
- package/src/localization/yue.json +1 -16
- package/src/localization/zh-CN.json +22 -18
- package/src/localization/zh-HK.json +20 -16
- package/src/localization/zh-TW.json +20 -16
- package/src/normalizeStyleOptions.ts +45 -0
- package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +9 -26
- package/src/providers/ActivityKeyer/private/someIterable.spec.ts +0 -2
- package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +2 -2
- package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +144 -59
- package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +231 -0
- package/src/providers/ActivityTyping/private/useReduceActivities.ts +48 -0
- package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +115 -0
- package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +23 -0
- package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +93 -0
- package/src/providers/GroupActivities/private/isGroupingValid.ts +41 -0
- package/src/providers/GroupActivities/private/useGroupActivitiesContext.ts +6 -0
- package/src/providers/GroupActivities/useGroupActivities.ts +20 -0
- package/src/providers/GroupActivities/useGroupActivitiesByName.ts +17 -0
- package/src/tsconfig.json +1 -5
- package/src/types/AttachmentForScreenReaderMiddleware.ts +9 -2
- package/src/types/AvatarMiddleware.ts +5 -1
- package/src/types/CardActionMiddleware.ts +2 -0
- package/src/types/ComponentMiddleware.ts +1 -1
- package/src/types/GroupActivitiesMiddleware.ts +7 -11
- package/src/utils/validateProps.spec.ts +74 -0
- package/src/utils/validateProps.ts +56 -0
- package/dist/chunk-2S76JUVM.mjs +0 -3
- package/dist/chunk-2S76JUVM.mjs.map +0 -1
- package/dist/chunk-J6D5YEY6.mjs +0 -3
- package/dist/chunk-J6D5YEY6.mjs.map +0 -1
- package/dist/chunk-ZAMHKQQC.mjs +0 -3
- package/dist/chunk-ZAMHKQQC.mjs.map +0 -1
- package/lib/StyleOptions.d.ts +0 -697
- package/lib/StyleOptions.d.ts.map +0 -1
- package/lib/StyleOptions.js +0 -2
- package/lib/decorator/index.d.ts +0 -5
- package/lib/decorator/index.d.ts.map +0 -1
- package/lib/decorator/index.js +0 -28
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts +0 -27
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts.map +0 -1
- package/lib/decorator/private/ActivityBorderDecoratorMiddleware.js +0 -19
- package/lib/decorator/private/ActivityDecorator.d.ts +0 -9
- package/lib/decorator/private/ActivityDecorator.d.ts.map +0 -1
- package/lib/decorator/private/ActivityDecorator.js +0 -36
- package/lib/decorator/private/DecoratorComposer.d.ts +0 -3
- package/lib/decorator/private/DecoratorComposer.d.ts.map +0 -1
- package/lib/decorator/private/DecoratorComposer.js +0 -13
- package/lib/decorator/private/activityDecoratorRequest.d.ts +0 -6
- package/lib/decorator/private/activityDecoratorRequest.d.ts.map +0 -1
- package/lib/decorator/private/activityDecoratorRequest.js +0 -2
- package/lib/decorator/private/createDecoratorComposer.d.ts +0 -11
- package/lib/decorator/private/createDecoratorComposer.d.ts.map +0 -1
- package/lib/decorator/private/createDecoratorComposer.js +0 -27
- package/lib/decorator/private/templateMiddleware.d.ts +0 -30
- package/lib/decorator/private/templateMiddleware.d.ts.map +0 -1
- package/lib/decorator/private/templateMiddleware.js +0 -53
- package/lib/decorator/private/templateMiddleware.test.d.ts +0 -3
- package/lib/decorator/private/templateMiddleware.test.d.ts.map +0 -1
- package/lib/defaultStyleOptions.d.ts +0 -4
- package/lib/defaultStyleOptions.d.ts.map +0 -1
- package/lib/defaultStyleOptions.js +0 -277
- package/lib/external/PrecompiledGlobalize.js +0 -6361
- package/lib/hooks/Composer.d.ts +0 -88
- package/lib/hooks/Composer.d.ts.map +0 -1
- package/lib/hooks/Composer.js +0 -605
- package/lib/hooks/index.d.ts +0 -73
- package/lib/hooks/index.d.ts.map +0 -1
- package/lib/hooks/index.js +0 -504
- package/lib/hooks/internal/ErrorBox.js +0 -47
- package/lib/hooks/internal/SendBoxMiddleware.d.ts +0 -37
- package/lib/hooks/internal/SendBoxMiddleware.d.ts.map +0 -1
- package/lib/hooks/internal/SendBoxMiddleware.js +0 -17
- package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts +0 -37
- package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts.map +0 -1
- package/lib/hooks/internal/SendBoxToolbarMiddleware.js +0 -17
- package/lib/hooks/internal/Tracker.d.ts +0 -4
- package/lib/hooks/internal/Tracker.d.ts.map +0 -1
- package/lib/hooks/internal/Tracker.js +0 -15
- package/lib/hooks/internal/WebChatAPIContext.d.ts +0 -80
- package/lib/hooks/internal/WebChatAPIContext.d.ts.map +0 -1
- package/lib/hooks/internal/WebChatAPIContext.js +0 -12
- package/lib/hooks/internal/WebChatReduxContext.js +0 -17
- package/lib/hooks/internal/defaultSelectVoice.js +0 -28
- package/lib/hooks/internal/private/templateMiddleware.d.ts +0 -3
- package/lib/hooks/internal/private/templateMiddleware.d.ts.map +0 -1
- package/lib/hooks/internal/private/templateMiddleware.js +0 -12
- package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts +0 -4
- package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts.map +0 -1
- package/lib/hooks/internal/useCreateActivityRendererInternal.js +0 -37
- package/lib/hooks/internal/useDebugDeps.js +0 -39
- package/lib/hooks/internal/useDirFromProps.js +0 -12
- package/lib/hooks/internal/useErrorBoxClass.js +0 -14
- package/lib/hooks/internal/useForceRender.js +0 -24
- package/lib/hooks/internal/useLocalizedGlobalize.js +0 -12
- package/lib/hooks/internal/useLocalizedStrings.js +0 -14
- package/lib/hooks/internal/useMarkActivity.js +0 -12
- package/lib/hooks/internal/usePrevious.d.ts +0 -3
- package/lib/hooks/internal/usePrevious.d.ts.map +0 -1
- package/lib/hooks/internal/usePrevious.js +0 -15
- package/lib/hooks/internal/useReadTelemetryDimensions.js +0 -20
- package/lib/hooks/internal/useSetDictateState.d.ts +0 -2
- package/lib/hooks/internal/useSetDictateState.d.ts.map +0 -1
- package/lib/hooks/internal/useSetDictateState.js +0 -12
- package/lib/hooks/internal/useTimer.d.ts +0 -5
- package/lib/hooks/internal/useTimer.d.ts.map +0 -1
- package/lib/hooks/internal/useTimer.js +0 -43
- package/lib/hooks/internal/useTracker.js +0 -42
- package/lib/hooks/internal/useValueRef.d.ts +0 -3
- package/lib/hooks/internal/useValueRef.d.ts.map +0 -1
- package/lib/hooks/internal/useValueRef.js +0 -22
- package/lib/hooks/internal/useWebChatAPIContext.d.ts +0 -83
- package/lib/hooks/internal/useWebChatAPIContext.d.ts.map +0 -1
- package/lib/hooks/internal/useWebChatAPIContext.js +0 -17
- package/lib/hooks/middleware/UserlandBoundary.js +0 -48
- package/lib/hooks/middleware/applyMiddleware.js +0 -122
- package/lib/hooks/middleware/concatMiddleware.d.ts +0 -6
- package/lib/hooks/middleware/concatMiddleware.d.ts.map +0 -1
- package/lib/hooks/middleware/concatMiddleware.js +0 -33
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts +0 -3
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts.map +0 -1
- package/lib/hooks/middleware/createDefaultCardActionMiddleware.js +0 -43
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts +0 -7
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts.map +0 -1
- package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.js +0 -68
- package/lib/hooks/private/numberWithInfinity.d.ts +0 -3
- package/lib/hooks/private/numberWithInfinity.d.ts.map +0 -1
- package/lib/hooks/private/numberWithInfinity.js +0 -17
- package/lib/hooks/private/numberWithInfinity.spec.d.ts +0 -2
- package/lib/hooks/private/numberWithInfinity.spec.d.ts.map +0 -1
- package/lib/hooks/private/reduceIterable.d.ts +0 -2
- package/lib/hooks/private/reduceIterable.d.ts.map +0 -1
- package/lib/hooks/private/reduceIterable.js +0 -26
- package/lib/hooks/private/reduceIterable.spec.d.ts +0 -2
- package/lib/hooks/private/reduceIterable.spec.d.ts.map +0 -1
- package/lib/hooks/useActiveTyping.d.ts +0 -4
- package/lib/hooks/useActiveTyping.d.ts.map +0 -1
- package/lib/hooks/useActiveTyping.js +0 -81
- package/lib/hooks/useActivities.d.ts +0 -3
- package/lib/hooks/useActivities.d.ts.map +0 -1
- package/lib/hooks/useActivities.js +0 -14
- package/lib/hooks/useActivityKeys.d.ts +0 -3
- package/lib/hooks/useActivityKeys.d.ts.map +0 -1
- package/lib/hooks/useActivityKeys.js +0 -11
- package/lib/hooks/useActivityKeysByRead.d.ts +0 -3
- package/lib/hooks/useActivityKeysByRead.d.ts.map +0 -1
- package/lib/hooks/useActivityKeysByRead.js +0 -11
- package/lib/hooks/useAvatarForBot.d.ts +0 -5
- package/lib/hooks/useAvatarForBot.d.ts.map +0 -1
- package/lib/hooks/useAvatarForBot.js +0 -26
- package/lib/hooks/useAvatarForUser.d.ts +0 -5
- package/lib/hooks/useAvatarForUser.d.ts.map +0 -1
- package/lib/hooks/useAvatarForUser.js +0 -26
- package/lib/hooks/useByteFormatter.d.ts +0 -2
- package/lib/hooks/useByteFormatter.d.ts.map +0 -1
- package/lib/hooks/useByteFormatter.js +0 -43
- package/lib/hooks/useConnectivityStatus.d.ts +0 -2
- package/lib/hooks/useConnectivityStatus.d.ts.map +0 -1
- package/lib/hooks/useConnectivityStatus.js +0 -14
- package/lib/hooks/useCreateActivityRenderer.d.ts +0 -3
- package/lib/hooks/useCreateActivityRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateActivityRenderer.js +0 -14
- package/lib/hooks/useCreateActivityStatusRenderer.d.ts +0 -10
- package/lib/hooks/useCreateActivityStatusRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateActivityStatusRenderer.js +0 -72
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts +0 -3
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.js +0 -12
- package/lib/hooks/useCreateAvatarRenderer.d.ts +0 -6
- package/lib/hooks/useCreateAvatarRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateAvatarRenderer.js +0 -44
- package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts +0 -3
- package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts.map +0 -1
- package/lib/hooks/useCreateScrollToEndButtonRenderer.js +0 -12
- package/lib/hooks/useDateFormatter.d.ts +0 -2
- package/lib/hooks/useDateFormatter.d.ts.map +0 -1
- package/lib/hooks/useDateFormatter.js +0 -35
- package/lib/hooks/useDebouncedNotifications.d.ts +0 -13
- package/lib/hooks/useDebouncedNotifications.d.ts.map +0 -1
- package/lib/hooks/useDebouncedNotifications.js +0 -118
- package/lib/hooks/useDictateInterims.d.ts +0 -2
- package/lib/hooks/useDictateInterims.d.ts.map +0 -1
- package/lib/hooks/useDictateInterims.js +0 -16
- package/lib/hooks/useDictateState.d.ts +0 -2
- package/lib/hooks/useDictateState.d.ts.map +0 -1
- package/lib/hooks/useDictateState.js +0 -15
- package/lib/hooks/useDirection.d.ts +0 -2
- package/lib/hooks/useDirection.d.ts.map +0 -1
- package/lib/hooks/useDirection.js +0 -38
- package/lib/hooks/useDisabled.d.ts +0 -2
- package/lib/hooks/useDisabled.d.ts.map +0 -1
- package/lib/hooks/useDisabled.js +0 -12
- package/lib/hooks/useDismissNotification.d.ts +0 -2
- package/lib/hooks/useDismissNotification.d.ts.map +0 -1
- package/lib/hooks/useDismissNotification.js +0 -12
- package/lib/hooks/useEmitTypingIndicator.d.ts +0 -2
- package/lib/hooks/useEmitTypingIndicator.d.ts.map +0 -1
- package/lib/hooks/useEmitTypingIndicator.js +0 -12
- package/lib/hooks/useGetActivitiesByKey.d.ts +0 -3
- package/lib/hooks/useGetActivitiesByKey.d.ts.map +0 -1
- package/lib/hooks/useGetActivitiesByKey.js +0 -11
- package/lib/hooks/useGetActivityByKey.d.ts +0 -3
- package/lib/hooks/useGetActivityByKey.d.ts.map +0 -1
- package/lib/hooks/useGetActivityByKey.js +0 -11
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts +0 -3
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
- package/lib/hooks/useGetHasAcknowledgedByActivityKey.js +0 -11
- package/lib/hooks/useGetKeyByActivity.d.ts +0 -3
- package/lib/hooks/useGetKeyByActivity.d.ts.map +0 -1
- package/lib/hooks/useGetKeyByActivity.js +0 -11
- package/lib/hooks/useGetKeyByActivityId.d.ts +0 -3
- package/lib/hooks/useGetKeyByActivityId.d.ts.map +0 -1
- package/lib/hooks/useGetKeyByActivityId.js +0 -11
- package/lib/hooks/useGetSendTimeoutForActivity.d.ts +0 -5
- package/lib/hooks/useGetSendTimeoutForActivity.d.ts.map +0 -1
- package/lib/hooks/useGetSendTimeoutForActivity.js +0 -33
- package/lib/hooks/useGrammars.d.ts +0 -2
- package/lib/hooks/useGrammars.d.ts.map +0 -1
- package/lib/hooks/useGrammars.js +0 -12
- package/lib/hooks/useGroupActivities.d.ts +0 -8
- package/lib/hooks/useGroupActivities.d.ts.map +0 -1
- package/lib/hooks/useGroupActivities.js +0 -12
- package/lib/hooks/useGroupTimestamp.d.ts +0 -2
- package/lib/hooks/useGroupTimestamp.d.ts.map +0 -1
- package/lib/hooks/useGroupTimestamp.js +0 -21
- package/lib/hooks/useLanguage.d.ts +0 -2
- package/lib/hooks/useLanguage.d.ts.map +0 -1
- package/lib/hooks/useLanguage.js +0 -19
- package/lib/hooks/useLastAcknowledgedActivityKey.d.ts +0 -3
- package/lib/hooks/useLastAcknowledgedActivityKey.d.ts.map +0 -1
- package/lib/hooks/useLastAcknowledgedActivityKey.js +0 -11
- package/lib/hooks/useLastReadActivityKey.d.ts +0 -3
- package/lib/hooks/useLastReadActivityKey.d.ts.map +0 -1
- package/lib/hooks/useLastReadActivityKey.js +0 -11
- package/lib/hooks/useLocalizer.d.ts +0 -13
- package/lib/hooks/useLocalizer.d.ts.map +0 -1
- package/lib/hooks/useLocalizer.js +0 -75
- package/lib/hooks/useMarkActivityAsSpoken.d.ts +0 -3
- package/lib/hooks/useMarkActivityAsSpoken.d.ts.map +0 -1
- package/lib/hooks/useMarkActivityAsSpoken.js +0 -16
- package/lib/hooks/useMarkActivityKeyAsRead.d.ts +0 -3
- package/lib/hooks/useMarkActivityKeyAsRead.d.ts.map +0 -1
- package/lib/hooks/useMarkActivityKeyAsRead.js +0 -11
- package/lib/hooks/useMarkAllAsAcknowledged.d.ts +0 -3
- package/lib/hooks/useMarkAllAsAcknowledged.d.ts.map +0 -1
- package/lib/hooks/useMarkAllAsAcknowledged.js +0 -11
- package/lib/hooks/useNotifications.d.ts +0 -3
- package/lib/hooks/useNotifications.d.ts.map +0 -1
- package/lib/hooks/useNotifications.js +0 -14
- package/lib/hooks/usePerformCardAction.d.ts +0 -3
- package/lib/hooks/usePerformCardAction.d.ts.map +0 -1
- package/lib/hooks/usePerformCardAction.js +0 -12
- package/lib/hooks/usePonyfill.d.ts +0 -3
- package/lib/hooks/usePonyfill.d.ts.map +0 -1
- package/lib/hooks/usePonyfill.js +0 -11
- package/lib/hooks/usePostActivity.d.ts +0 -3
- package/lib/hooks/usePostActivity.d.ts.map +0 -1
- package/lib/hooks/usePostActivity.js +0 -12
- package/lib/hooks/useReferenceGrammarID.d.ts +0 -2
- package/lib/hooks/useReferenceGrammarID.d.ts.map +0 -1
- package/lib/hooks/useReferenceGrammarID.js +0 -14
- package/lib/hooks/useRelativeTimeFormatter.d.ts +0 -2
- package/lib/hooks/useRelativeTimeFormatter.d.ts.map +0 -1
- package/lib/hooks/useRelativeTimeFormatter.js +0 -61
- package/lib/hooks/useRenderAttachment.d.ts +0 -3
- package/lib/hooks/useRenderAttachment.d.ts.map +0 -1
- package/lib/hooks/useRenderAttachment.js +0 -14
- package/lib/hooks/useRenderToast.d.ts +0 -3
- package/lib/hooks/useRenderToast.d.ts.map +0 -1
- package/lib/hooks/useRenderToast.js +0 -12
- package/lib/hooks/useRenderTypingIndicator.d.ts +0 -3
- package/lib/hooks/useRenderTypingIndicator.d.ts.map +0 -1
- package/lib/hooks/useRenderTypingIndicator.js +0 -12
- package/lib/hooks/useSendBoxAttachments.d.ts +0 -6
- package/lib/hooks/useSendBoxAttachments.d.ts.map +0 -1
- package/lib/hooks/useSendBoxAttachments.js +0 -23
- package/lib/hooks/useSendBoxValue.d.ts +0 -2
- package/lib/hooks/useSendBoxValue.d.ts.map +0 -1
- package/lib/hooks/useSendBoxValue.js +0 -16
- package/lib/hooks/useSendEvent.d.ts +0 -2
- package/lib/hooks/useSendEvent.d.ts.map +0 -1
- package/lib/hooks/useSendEvent.js +0 -12
- package/lib/hooks/useSendFiles.d.ts +0 -10
- package/lib/hooks/useSendFiles.d.ts.map +0 -1
- package/lib/hooks/useSendFiles.js +0 -35
- package/lib/hooks/useSendMessage.d.ts +0 -6
- package/lib/hooks/useSendMessage.d.ts.map +0 -1
- package/lib/hooks/useSendMessage.js +0 -33
- package/lib/hooks/useSendMessageBack.d.ts +0 -2
- package/lib/hooks/useSendMessageBack.d.ts.map +0 -1
- package/lib/hooks/useSendMessageBack.js +0 -12
- package/lib/hooks/useSendPostBack.d.ts +0 -2
- package/lib/hooks/useSendPostBack.d.ts.map +0 -1
- package/lib/hooks/useSendPostBack.js +0 -12
- package/lib/hooks/useSendStatusByActivityKey.d.ts +0 -22
- package/lib/hooks/useSendStatusByActivityKey.d.ts.map +0 -1
- package/lib/hooks/useSendStatusByActivityKey.js +0 -31
- package/lib/hooks/useSendTimeoutForActivity.d.ts +0 -4
- package/lib/hooks/useSendTimeoutForActivity.d.ts.map +0 -1
- package/lib/hooks/useSendTimeoutForActivity.js +0 -22
- package/lib/hooks/useSendTypingIndicator.d.ts +0 -2
- package/lib/hooks/useSendTypingIndicator.d.ts.map +0 -1
- package/lib/hooks/useSendTypingIndicator.js +0 -14
- package/lib/hooks/useSetNotification.d.ts +0 -3
- package/lib/hooks/useSetNotification.d.ts.map +0 -1
- package/lib/hooks/useSetNotification.js +0 -12
- package/lib/hooks/useShouldSpeakIncomingActivity.d.ts +0 -2
- package/lib/hooks/useShouldSpeakIncomingActivity.d.ts.map +0 -1
- package/lib/hooks/useShouldSpeakIncomingActivity.js +0 -22
- package/lib/hooks/useStartDictate.d.ts +0 -2
- package/lib/hooks/useStartDictate.d.ts.map +0 -1
- package/lib/hooks/useStartDictate.js +0 -12
- package/lib/hooks/useStopDictate.d.ts +0 -2
- package/lib/hooks/useStopDictate.d.ts.map +0 -1
- package/lib/hooks/useStopDictate.js +0 -12
- package/lib/hooks/useStyleOptions.d.ts +0 -3
- package/lib/hooks/useStyleOptions.d.ts.map +0 -1
- package/lib/hooks/useStyleOptions.js +0 -12
- package/lib/hooks/useSubmitSendBox.d.ts +0 -4
- package/lib/hooks/useSubmitSendBox.d.ts.map +0 -1
- package/lib/hooks/useSubmitSendBox.js +0 -49
- package/lib/hooks/useSuggestedActions.d.ts +0 -3
- package/lib/hooks/useSuggestedActions.d.ts.map +0 -1
- package/lib/hooks/useSuggestedActions.js +0 -25
- package/lib/hooks/useTimeoutForSend.d.ts +0 -3
- package/lib/hooks/useTimeoutForSend.d.ts.map +0 -1
- package/lib/hooks/useTimeoutForSend.js +0 -21
- package/lib/hooks/useTrackDimension.d.ts +0 -2
- package/lib/hooks/useTrackDimension.d.ts.map +0 -1
- package/lib/hooks/useTrackDimension.js +0 -14
- package/lib/hooks/useTrackEvent.d.ts +0 -10
- package/lib/hooks/useTrackEvent.d.ts.map +0 -1
- package/lib/hooks/useTrackEvent.js +0 -51
- package/lib/hooks/useTrackException.d.ts +0 -2
- package/lib/hooks/useTrackException.d.ts.map +0 -1
- package/lib/hooks/useTrackException.js +0 -31
- package/lib/hooks/useTrackTiming.d.ts +0 -2
- package/lib/hooks/useTrackTiming.d.ts.map +0 -1
- package/lib/hooks/useTrackTiming.js +0 -93
- package/lib/hooks/useUserID.d.ts +0 -2
- package/lib/hooks/useUserID.d.ts.map +0 -1
- package/lib/hooks/useUserID.js +0 -12
- package/lib/hooks/useUsername.d.ts +0 -2
- package/lib/hooks/useUsername.d.ts.map +0 -1
- package/lib/hooks/useUsername.js +0 -12
- package/lib/hooks/useVoiceSelector.d.ts +0 -2
- package/lib/hooks/useVoiceSelector.d.ts.map +0 -1
- package/lib/hooks/useVoiceSelector.js +0 -16
- package/lib/hooks/utils/ErrorBoundary.js +0 -68
- package/lib/hooks/utils/observableToPromise.d.ts +0 -3
- package/lib/hooks/utils/observableToPromise.d.ts.map +0 -1
- package/lib/hooks/utils/observableToPromise.js +0 -28
- package/lib/index.d.ts +0 -37
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -88
- package/lib/internal.d.ts +0 -3
- package/lib/internal.d.ts.map +0 -1
- package/lib/internal.js +0 -14
- package/lib/localization/Localize.d.ts +0 -4
- package/lib/localization/Localize.d.ts.map +0 -1
- package/lib/localization/Localize.js +0 -50
- package/lib/localization/ar-EG.json +0 -42
- package/lib/localization/ar-JO.json +0 -45
- package/lib/localization/ar-SA.json +0 -112
- package/lib/localization/bg-BG.json +0 -112
- package/lib/localization/ca-ES.json +0 -112
- package/lib/localization/cs-CZ.json +0 -112
- package/lib/localization/da-DK.json +0 -112
- package/lib/localization/de-DE.json +0 -112
- package/lib/localization/el-GR.json +0 -112
- package/lib/localization/en-US.json +0 -183
- package/lib/localization/es-ES.json +0 -112
- package/lib/localization/et-EE.json +0 -112
- package/lib/localization/eu-ES.json +0 -112
- package/lib/localization/fi-FI.json +0 -112
- package/lib/localization/fr-FR.json +0 -112
- package/lib/localization/getAllLocalizedStrings.d.ts +0 -6
- package/lib/localization/getAllLocalizedStrings.d.ts.map +0 -1
- package/lib/localization/getAllLocalizedStrings.js +0 -117
- package/lib/localization/getRTLList.d.ts +0 -2
- package/lib/localization/getRTLList.d.ts.map +0 -1
- package/lib/localization/getRTLList.js +0 -46
- package/lib/localization/gl-ES.json +0 -112
- package/lib/localization/he-IL.json +0 -112
- package/lib/localization/hi-IN.json +0 -112
- package/lib/localization/hr-HR.json +0 -112
- package/lib/localization/hu-HU.json +0 -112
- package/lib/localization/id-ID.json +0 -112
- package/lib/localization/it-IT.json +0 -112
- package/lib/localization/ja-JP.json +0 -112
- package/lib/localization/kk-KZ.json +0 -112
- package/lib/localization/ko-KR.json +0 -112
- package/lib/localization/lt-LT.json +0 -112
- package/lib/localization/lv-LV.json +0 -112
- package/lib/localization/mergeLocalizedStrings.d.ts +0 -7
- package/lib/localization/mergeLocalizedStrings.d.ts.map +0 -1
- package/lib/localization/mergeLocalizedStrings.js +0 -49
- package/lib/localization/ms-MY.json +0 -112
- package/lib/localization/nb-NO.json +0 -112
- package/lib/localization/nl-NL.json +0 -112
- package/lib/localization/overrides.json +0 -257
- package/lib/localization/pl-PL.json +0 -112
- package/lib/localization/pt-BR.json +0 -112
- package/lib/localization/pt-PT.json +0 -112
- package/lib/localization/ro-RO.json +0 -112
- package/lib/localization/ru-RU.json +0 -112
- package/lib/localization/sk-SK.json +0 -112
- package/lib/localization/sl-SI.json +0 -112
- package/lib/localization/sl-SL.json +0 -3
- package/lib/localization/sr-Cyrl-CS.json +0 -112
- package/lib/localization/sr-Cyrl.json +0 -3
- package/lib/localization/sr-Latn-CS.json +0 -112
- package/lib/localization/sr-Latn.json +0 -3
- package/lib/localization/sv-SE.json +0 -112
- package/lib/localization/th-TH.json +0 -112
- package/lib/localization/tr-TR.json +0 -112
- package/lib/localization/uk-UA.json +0 -112
- package/lib/localization/vi-VN.json +0 -112
- package/lib/localization/yue.json +0 -115
- package/lib/localization/zh-CN.json +0 -112
- package/lib/localization/zh-HK.json +0 -112
- package/lib/localization/zh-TW.json +0 -112
- package/lib/normalizeStyleOptions.d.ts +0 -3
- package/lib/normalizeStyleOptions.d.ts.map +0 -1
- package/lib/normalizeStyleOptions.js +0 -147
- package/lib/patchStyleOptionsFromDeprecatedProps.js +0 -21
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts +0 -6
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.js +0 -153
- package/lib/providers/ActivityAcknowledgement/private/Context.d.ts +0 -13
- package/lib/providers/ActivityAcknowledgement/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/private/Context.js +0 -14
- package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts +0 -3
- package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/private/useContext.js +0 -18
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts +0 -5
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.js +0 -15
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.js +0 -12
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts +0 -2
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts.map +0 -1
- package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.js +0 -12
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts +0 -20
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/ActivityKeyerComposer.js +0 -149
- package/lib/providers/ActivityKeyer/private/Context.d.ts +0 -13
- package/lib/providers/ActivityKeyer/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/Context.js +0 -10
- package/lib/providers/ActivityKeyer/private/getActivityId.d.ts +0 -3
- package/lib/providers/ActivityKeyer/private/getActivityId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/getActivityId.js +0 -10
- package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts +0 -3
- package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/getClientActivityId.js +0 -11
- package/lib/providers/ActivityKeyer/private/lastOf.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/lastOf.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/lastOf.js +0 -10
- package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/someIterable.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/someIterable.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/someIterable.js +0 -27
- package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/uniqueId.d.ts +0 -2
- package/lib/providers/ActivityKeyer/private/uniqueId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/uniqueId.js +0 -15
- package/lib/providers/ActivityKeyer/private/useContext.d.ts +0 -3
- package/lib/providers/ActivityKeyer/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/private/useContext.js +0 -18
- package/lib/providers/ActivityKeyer/useActivityKeys.d.ts +0 -2
- package/lib/providers/ActivityKeyer/useActivityKeys.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useActivityKeys.js +0 -12
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts +0 -3
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetActivitiesByKey.js +0 -12
- package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts +0 -3
- package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetActivityByKey.js +0 -12
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts +0 -3
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetKeyByActivity.js +0 -12
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts +0 -2
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts.map +0 -1
- package/lib/providers/ActivityKeyer/useGetKeyByActivityId.js +0 -12
- package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts +0 -7
- package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts.map +0 -1
- package/lib/providers/ActivityListener/ActivityListenerComposer.js +0 -55
- package/lib/providers/ActivityListener/private/Context.d.ts +0 -8
- package/lib/providers/ActivityListener/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityListener/private/Context.js +0 -15
- package/lib/providers/ActivityListener/private/useContext.d.ts +0 -2
- package/lib/providers/ActivityListener/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityListener/private/useContext.js +0 -13
- package/lib/providers/ActivityListener/useUpsertedActivities.d.ts +0 -3
- package/lib/providers/ActivityListener/useUpsertedActivities.d.ts.map +0 -1
- package/lib/providers/ActivityListener/useUpsertedActivities.js +0 -12
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts +0 -4
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.js +0 -149
- package/lib/providers/ActivitySendStatus/private/Context.d.ts +0 -9
- package/lib/providers/ActivitySendStatus/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/private/Context.js +0 -13
- package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts +0 -7
- package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/private/isMapEqual.js +0 -55
- package/lib/providers/ActivitySendStatus/private/useContext.d.ts +0 -3
- package/lib/providers/ActivitySendStatus/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/private/useContext.js +0 -18
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts +0 -22
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.js +0 -31
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts +0 -3
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts.map +0 -1
- package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.js +0 -71
- package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts +0 -9
- package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/ActivityTypingComposer.js +0 -98
- package/lib/providers/ActivityTyping/private/Context.d.ts +0 -8
- package/lib/providers/ActivityTyping/private/Context.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/private/Context.js +0 -15
- package/lib/providers/ActivityTyping/private/useContext.d.ts +0 -3
- package/lib/providers/ActivityTyping/private/useContext.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/private/useContext.js +0 -13
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts +0 -3
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/private/useMemoWithPrevious.js +0 -22
- package/lib/providers/ActivityTyping/types/AllTyping.d.ts +0 -9
- package/lib/providers/ActivityTyping/types/AllTyping.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/types/AllTyping.js +0 -2
- package/lib/providers/ActivityTyping/useAllTyping.d.ts +0 -3
- package/lib/providers/ActivityTyping/useAllTyping.d.ts.map +0 -1
- package/lib/providers/ActivityTyping/useAllTyping.js +0 -12
- package/lib/providers/Ponyfill/PonyfillComposer.d.ts +0 -17
- package/lib/providers/Ponyfill/PonyfillComposer.d.ts.map +0 -1
- package/lib/providers/Ponyfill/PonyfillComposer.js +0 -87
- package/lib/providers/Ponyfill/private/PonyfillContext.d.ts +0 -8
- package/lib/providers/Ponyfill/private/PonyfillContext.d.ts.map +0 -1
- package/lib/providers/Ponyfill/private/PonyfillContext.js +0 -10
- package/lib/providers/Ponyfill/private/useContext.d.ts +0 -6
- package/lib/providers/Ponyfill/private/useContext.d.ts.map +0 -1
- package/lib/providers/Ponyfill/private/useContext.js +0 -17
- package/lib/providers/Ponyfill/usePonyfill.d.ts +0 -3
- package/lib/providers/Ponyfill/usePonyfill.d.ts.map +0 -1
- package/lib/providers/Ponyfill/usePonyfill.js +0 -12
- package/lib/tsconfig.json +0 -18
- package/lib/types/ActivityMiddleware.d.ts +0 -24
- package/lib/types/ActivityMiddleware.d.ts.map +0 -1
- package/lib/types/ActivityMiddleware.js +0 -2
- package/lib/types/ActivityStatusMiddleware.d.ts +0 -17
- package/lib/types/ActivityStatusMiddleware.d.ts.map +0 -1
- package/lib/types/ActivityStatusMiddleware.js +0 -2
- package/lib/types/AttachmentForScreenReaderMiddleware.d.ts +0 -14
- package/lib/types/AttachmentForScreenReaderMiddleware.d.ts.map +0 -1
- package/lib/types/AttachmentForScreenReaderMiddleware.js +0 -2
- package/lib/types/AttachmentMiddleware.d.ts +0 -12
- package/lib/types/AttachmentMiddleware.d.ts.map +0 -1
- package/lib/types/AttachmentMiddleware.js +0 -2
- package/lib/types/AvatarMiddleware.d.ts +0 -15
- package/lib/types/AvatarMiddleware.d.ts.map +0 -1
- package/lib/types/AvatarMiddleware.js +0 -2
- package/lib/types/CardActionMiddleware.d.ts +0 -19
- package/lib/types/CardActionMiddleware.d.ts.map +0 -1
- package/lib/types/CardActionMiddleware.js +0 -2
- package/lib/types/ComponentMiddleware.d.ts +0 -31
- package/lib/types/ComponentMiddleware.d.ts.map +0 -1
- package/lib/types/ComponentMiddleware.js +0 -2
- package/lib/types/ContextOf.d.ts +0 -4
- package/lib/types/ContextOf.d.ts.map +0 -1
- package/lib/types/ContextOf.js +0 -2
- package/lib/types/FunctionMiddleware.d.ts +0 -6
- package/lib/types/FunctionMiddleware.d.ts.map +0 -1
- package/lib/types/FunctionMiddleware.js +0 -2
- package/lib/types/GroupActivitiesMiddleware.d.ts +0 -22
- package/lib/types/GroupActivitiesMiddleware.d.ts.map +0 -1
- package/lib/types/GroupActivitiesMiddleware.js +0 -2
- package/lib/types/LocalizedStrings.d.ts +0 -5
- package/lib/types/LocalizedStrings.d.ts.map +0 -1
- package/lib/types/LocalizedStrings.js +0 -2
- package/lib/types/Notification.d.ts +0 -10
- package/lib/types/Notification.d.ts.map +0 -1
- package/lib/types/Notification.js +0 -2
- package/lib/types/PrecompiledGlobalize.d.ts +0 -13
- package/lib/types/PrecompiledGlobalize.d.ts.map +0 -1
- package/lib/types/PrecompiledGlobalize.js +0 -2
- package/lib/types/ScrollToEndButtonMiddleware.d.ts +0 -30
- package/lib/types/ScrollToEndButtonMiddleware.d.ts.map +0 -1
- package/lib/types/ScrollToEndButtonMiddleware.js +0 -2
- package/lib/types/SendStatus.d.ts +0 -3
- package/lib/types/SendStatus.d.ts.map +0 -1
- package/lib/types/SendStatus.js +0 -2
- package/lib/types/TelemetryMeasurementEvent.d.ts +0 -31
- package/lib/types/TelemetryMeasurementEvent.d.ts.map +0 -1
- package/lib/types/TelemetryMeasurementEvent.js +0 -2
- package/lib/types/ToastMiddleware.d.ts +0 -11
- package/lib/types/ToastMiddleware.d.ts.map +0 -1
- package/lib/types/ToastMiddleware.js +0 -2
- package/lib/types/Typing.d.ts +0 -8
- package/lib/types/Typing.d.ts.map +0 -1
- package/lib/types/Typing.js +0 -2
- package/lib/types/TypingIndicatorMiddleware.d.ts +0 -17
- package/lib/types/TypingIndicatorMiddleware.d.ts.map +0 -1
- package/lib/types/TypingIndicatorMiddleware.js +0 -2
- package/lib/types/WebSpeechPonyfill.d.ts +0 -19
- package/lib/types/WebSpeechPonyfill.d.ts.map +0 -1
- package/lib/types/WebSpeechPonyfill.js +0 -2
- package/lib/types/WebSpeechPonyfillFactory.d.ts +0 -6
- package/lib/types/WebSpeechPonyfillFactory.d.ts.map +0 -1
- package/lib/types/WebSpeechPonyfillFactory.js +0 -2
- package/lib/utils/createCustomEvent.d.ts +0 -4
- package/lib/utils/createCustomEvent.d.ts.map +0 -1
- package/lib/utils/createCustomEvent.js +0 -34
- package/lib/utils/findLastIndex.d.ts +0 -2
- package/lib/utils/findLastIndex.d.ts.map +0 -1
- package/lib/utils/findLastIndex.js +0 -22
- package/lib/utils/findMin.d.ts +0 -7
- package/lib/utils/findMin.d.ts.map +0 -1
- package/lib/utils/findMin.js +0 -46
- package/lib/utils/freezeArray.d.ts +0 -8
- package/lib/utils/freezeArray.d.ts.map +0 -1
- package/lib/utils/freezeArray.js +0 -19
- package/lib/utils/isObject.js +0 -12
- package/lib/utils/mapMap.d.ts +0 -6
- package/lib/utils/mapMap.d.ts.map +0 -1
- package/lib/utils/mapMap.js +0 -27
- package/lib/utils/normalizeLanguage.d.ts +0 -2
- package/lib/utils/normalizeLanguage.d.ts.map +0 -1
- package/lib/utils/normalizeLanguage.js +0 -115
- package/lib/utils/randomId.d.ts +0 -2
- package/lib/utils/randomId.d.ts.map +0 -1
- package/lib/utils/randomId.js +0 -15
- package/lib/utils/warnOnce.d.ts +0 -2
- package/lib/utils/warnOnce.d.ts.map +0 -1
- package/lib/utils/warnOnce.js +0 -16
- package/src/decorator/index.ts +0 -4
- package/src/decorator/private/ActivityBorderDecoratorMiddleware.ts +0 -31
- package/src/decorator/private/ActivityDecorator.tsx +0 -31
- package/src/decorator/private/DecoratorComposer.tsx +0 -6
- package/src/decorator/private/activityDecoratorRequest.ts +0 -6
- package/src/decorator/private/createDecoratorComposer.tsx +0 -36
- package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +0 -75
- package/src/hooks/useGroupActivities.ts +0 -10
- /package/dist/{chunk-2S76JUVM.mjs.LEGAL.txt → botframework-webchat-api.decorator.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-J6D5YEY6.mjs.LEGAL.txt → botframework-webchat-api.internal.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-ZAMHKQQC.mjs.LEGAL.txt → botframework-webchat-api.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as react_chain_of_responsibility from 'react-chain-of-responsibility';
|
|
2
|
+
import { EmptyObject } from 'type-fest';
|
|
3
|
+
import { WebChatActivity } from 'botframework-webchat-core';
|
|
4
|
+
|
|
5
|
+
declare const types$1: {
|
|
6
|
+
init: "activity border";
|
|
7
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<Readonly<{
|
|
8
|
+
/**
|
|
9
|
+
* Decorate the activity as it participate in a livestreaming session.
|
|
10
|
+
*
|
|
11
|
+
* - `"completing"` - decorate as the livestreaming is completing
|
|
12
|
+
* - `"ongoing"` - decorate as the livestreaming is ongoing
|
|
13
|
+
* - `"preparing"` - decorate as the livestreaming is being prepared
|
|
14
|
+
* - `undefined` - not participated in a livestreaming session
|
|
15
|
+
*/
|
|
16
|
+
livestreamingState: "completing" | "ongoing" | "preparing" | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Gets the role of the sender for the activity.
|
|
19
|
+
*
|
|
20
|
+
* - `"bot"` - the sender is a bot or other users
|
|
21
|
+
* - `"channel"` - the sender is the channel service
|
|
22
|
+
* - `"user"` - the sender is the current user
|
|
23
|
+
* - `undefined` - the sender is unknown
|
|
24
|
+
*/
|
|
25
|
+
from: "bot" | "channel" | `user` | undefined;
|
|
26
|
+
}>, EmptyObject>;
|
|
27
|
+
props: EmptyObject;
|
|
28
|
+
request: Readonly<{
|
|
29
|
+
/**
|
|
30
|
+
* Decorate the activity as it participate in a livestreaming session.
|
|
31
|
+
*
|
|
32
|
+
* - `"completing"` - decorate as the livestreaming is completing
|
|
33
|
+
* - `"ongoing"` - decorate as the livestreaming is ongoing
|
|
34
|
+
* - `"preparing"` - decorate as the livestreaming is being prepared
|
|
35
|
+
* - `undefined` - not participated in a livestreaming session
|
|
36
|
+
*/
|
|
37
|
+
livestreamingState: "completing" | "ongoing" | "preparing" | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Gets the role of the sender for the activity.
|
|
40
|
+
*
|
|
41
|
+
* - `"bot"` - the sender is a bot or other users
|
|
42
|
+
* - `"channel"` - the sender is the channel service
|
|
43
|
+
* - `"user"` - the sender is the current user
|
|
44
|
+
* - `undefined` - the sender is unknown
|
|
45
|
+
*/
|
|
46
|
+
from: "bot" | "channel" | `user` | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
type ActivityBorderDecoratorMiddleware = typeof types$1.middleware;
|
|
50
|
+
|
|
51
|
+
declare const activityBorderDecoratorTypeName: "activity border";
|
|
52
|
+
|
|
53
|
+
declare const types: {
|
|
54
|
+
init: "activity grouping";
|
|
55
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<Readonly<{
|
|
56
|
+
/**
|
|
57
|
+
* Name of the grouping from the result of `groupActivitesMiddleware()`.
|
|
58
|
+
*/
|
|
59
|
+
groupingName: string;
|
|
60
|
+
}>, Readonly<{
|
|
61
|
+
activities: readonly WebChatActivity[];
|
|
62
|
+
}>>;
|
|
63
|
+
props: Readonly<{
|
|
64
|
+
activities: readonly WebChatActivity[];
|
|
65
|
+
}>;
|
|
66
|
+
request: Readonly<{
|
|
67
|
+
/**
|
|
68
|
+
* Name of the grouping from the result of `groupActivitesMiddleware()`.
|
|
69
|
+
*/
|
|
70
|
+
groupingName: string;
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
type ActivityGroupingDecoratorMiddleware = typeof types.middleware;
|
|
74
|
+
|
|
75
|
+
declare const activityGroupingDecoratorTypeName: "activity grouping";
|
|
76
|
+
|
|
77
|
+
type DecoratorMiddlewareTypes = {
|
|
78
|
+
[activityBorderDecoratorTypeName]: ReturnType<ActivityBorderDecoratorMiddleware>;
|
|
79
|
+
[activityGroupingDecoratorTypeName]: ReturnType<ActivityGroupingDecoratorMiddleware>;
|
|
80
|
+
};
|
|
81
|
+
type DecoratorMiddlewareInit = keyof DecoratorMiddlewareTypes;
|
|
82
|
+
interface DecoratorMiddleware {
|
|
83
|
+
(init: keyof DecoratorMiddlewareTypes): DecoratorMiddlewareTypes[typeof init] | false;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type { DecoratorMiddleware as D, DecoratorMiddlewareInit as a, DecoratorMiddlewareTypes as b };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as react_chain_of_responsibility from 'react-chain-of-responsibility';
|
|
2
|
+
import { EmptyObject } from 'type-fest';
|
|
3
|
+
import { WebChatActivity } from 'botframework-webchat-core';
|
|
4
|
+
|
|
5
|
+
declare const types$1: {
|
|
6
|
+
init: "activity border";
|
|
7
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<Readonly<{
|
|
8
|
+
/**
|
|
9
|
+
* Decorate the activity as it participate in a livestreaming session.
|
|
10
|
+
*
|
|
11
|
+
* - `"completing"` - decorate as the livestreaming is completing
|
|
12
|
+
* - `"ongoing"` - decorate as the livestreaming is ongoing
|
|
13
|
+
* - `"preparing"` - decorate as the livestreaming is being prepared
|
|
14
|
+
* - `undefined` - not participated in a livestreaming session
|
|
15
|
+
*/
|
|
16
|
+
livestreamingState: "completing" | "ongoing" | "preparing" | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Gets the role of the sender for the activity.
|
|
19
|
+
*
|
|
20
|
+
* - `"bot"` - the sender is a bot or other users
|
|
21
|
+
* - `"channel"` - the sender is the channel service
|
|
22
|
+
* - `"user"` - the sender is the current user
|
|
23
|
+
* - `undefined` - the sender is unknown
|
|
24
|
+
*/
|
|
25
|
+
from: "bot" | "channel" | `user` | undefined;
|
|
26
|
+
}>, EmptyObject>;
|
|
27
|
+
props: EmptyObject;
|
|
28
|
+
request: Readonly<{
|
|
29
|
+
/**
|
|
30
|
+
* Decorate the activity as it participate in a livestreaming session.
|
|
31
|
+
*
|
|
32
|
+
* - `"completing"` - decorate as the livestreaming is completing
|
|
33
|
+
* - `"ongoing"` - decorate as the livestreaming is ongoing
|
|
34
|
+
* - `"preparing"` - decorate as the livestreaming is being prepared
|
|
35
|
+
* - `undefined` - not participated in a livestreaming session
|
|
36
|
+
*/
|
|
37
|
+
livestreamingState: "completing" | "ongoing" | "preparing" | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Gets the role of the sender for the activity.
|
|
40
|
+
*
|
|
41
|
+
* - `"bot"` - the sender is a bot or other users
|
|
42
|
+
* - `"channel"` - the sender is the channel service
|
|
43
|
+
* - `"user"` - the sender is the current user
|
|
44
|
+
* - `undefined` - the sender is unknown
|
|
45
|
+
*/
|
|
46
|
+
from: "bot" | "channel" | `user` | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
type ActivityBorderDecoratorMiddleware = typeof types$1.middleware;
|
|
50
|
+
|
|
51
|
+
declare const activityBorderDecoratorTypeName: "activity border";
|
|
52
|
+
|
|
53
|
+
declare const types: {
|
|
54
|
+
init: "activity grouping";
|
|
55
|
+
middleware: react_chain_of_responsibility.ComponentMiddleware<Readonly<{
|
|
56
|
+
/**
|
|
57
|
+
* Name of the grouping from the result of `groupActivitesMiddleware()`.
|
|
58
|
+
*/
|
|
59
|
+
groupingName: string;
|
|
60
|
+
}>, Readonly<{
|
|
61
|
+
activities: readonly WebChatActivity[];
|
|
62
|
+
}>>;
|
|
63
|
+
props: Readonly<{
|
|
64
|
+
activities: readonly WebChatActivity[];
|
|
65
|
+
}>;
|
|
66
|
+
request: Readonly<{
|
|
67
|
+
/**
|
|
68
|
+
* Name of the grouping from the result of `groupActivitesMiddleware()`.
|
|
69
|
+
*/
|
|
70
|
+
groupingName: string;
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
type ActivityGroupingDecoratorMiddleware = typeof types.middleware;
|
|
74
|
+
|
|
75
|
+
declare const activityGroupingDecoratorTypeName: "activity grouping";
|
|
76
|
+
|
|
77
|
+
type DecoratorMiddlewareTypes = {
|
|
78
|
+
[activityBorderDecoratorTypeName]: ReturnType<ActivityBorderDecoratorMiddleware>;
|
|
79
|
+
[activityGroupingDecoratorTypeName]: ReturnType<ActivityGroupingDecoratorMiddleware>;
|
|
80
|
+
};
|
|
81
|
+
type DecoratorMiddlewareInit = keyof DecoratorMiddlewareTypes;
|
|
82
|
+
interface DecoratorMiddleware {
|
|
83
|
+
(init: keyof DecoratorMiddlewareTypes): DecoratorMiddlewareTypes[typeof init] | false;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type { DecoratorMiddleware as D, DecoratorMiddlewareInit as a, DecoratorMiddlewareTypes as b };
|
package/internal.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botframework-webchat-api",
|
|
3
|
-
"version": "4.18.
|
|
3
|
+
"version": "4.18.1-hotfix.20260127.b53acdf",
|
|
4
4
|
"description": "React DOM component of botframework-webchat",
|
|
5
|
-
"main": "./
|
|
6
|
-
"types": "./
|
|
5
|
+
"main": "./dist/botframework-webchat-api.js",
|
|
6
|
+
"types": "./dist/botframework-webchat-api.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"default": "./dist/botframework-webchat-api.mjs"
|
|
12
12
|
},
|
|
13
13
|
"require": {
|
|
14
|
-
"types": "./
|
|
15
|
-
"default": "./
|
|
14
|
+
"types": "./dist/botframework-webchat-api.d.ts",
|
|
15
|
+
"default": "./dist/botframework-webchat-api.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"./internal": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"default": "./dist/botframework-webchat-api.internal.mjs"
|
|
22
22
|
},
|
|
23
23
|
"require": {
|
|
24
|
-
"types": "./
|
|
25
|
-
"default": "./
|
|
24
|
+
"types": "./dist/botframework-webchat-api.internal.d.ts",
|
|
25
|
+
"default": "./dist/botframework-webchat-api.internal.js"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"./decorator": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"default": "./dist/botframework-webchat-api.decorator.mjs"
|
|
32
32
|
},
|
|
33
33
|
"require": {
|
|
34
|
-
"types": "./
|
|
35
|
-
"default": "./
|
|
34
|
+
"types": "./dist/botframework-webchat-api.decorator.d.ts",
|
|
35
|
+
"default": "./dist/botframework-webchat-api.decorator.js"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
|
@@ -51,78 +51,27 @@
|
|
|
51
51
|
"files": [
|
|
52
52
|
"./dist/**/*",
|
|
53
53
|
"./*.js",
|
|
54
|
-
"./lib/**/*",
|
|
55
54
|
"./src/**/*"
|
|
56
55
|
],
|
|
57
56
|
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
|
|
58
57
|
"scripts": {
|
|
59
|
-
"
|
|
60
|
-
"build": "npm run build:globalize && npm run build:tsup && npm run build:typescript && npm run build:babel",
|
|
61
|
-
"build:babel": "cross-env build_tool=babel module_format=commonjs babel src --copy-files --extensions .js,.ts,.tsx --ignore **/*.spec.js,**/*.spec.ts,**/*.spec.tsx,**/*.test.js,**/*.test.ts,**/*.test.tsx,__tests__/**/*.js,__tests__/**/*.ts,__tests__/**/*.tsx --no-copy-ignored --out-dir lib --verbose",
|
|
58
|
+
"build": "npm run build:globalize && npm run build:tsup",
|
|
62
59
|
"build:globalize": "node scripts/createPrecompiledGlobalize.mjs",
|
|
63
60
|
"build:tsup": "tsup --config ./tsup.config.ts",
|
|
64
|
-
"
|
|
65
|
-
"bump": "
|
|
66
|
-
"bump:
|
|
67
|
-
"bump:dev": "if [ `cat package.json | jq -r '.devDependencies | length'` -ne 0 ]; then npm install --legacy-peer-deps $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.devDependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
|
|
68
|
-
"bump:prod": "if [ `cat package.json | jq -r '.dependencies | length'` -ne 0 ]; then npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.dependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
|
|
61
|
+
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
|
|
62
|
+
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
|
|
63
|
+
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install --save-exact $PACKAGES_TO_BUMP || true",
|
|
69
64
|
"eslint": "npm run precommit",
|
|
70
|
-
"
|
|
71
|
-
"postbump": "cat package.json | jq '. + (.dependencies = ((.dependencies + (.localPeerDependencies // {})) | to_entries | sort_by(.key) | from_entries)) | (.devDependencies = ((.devDependencies + (.localPeerDevDependencies // {})) | to_entries | sort_by(.key) | from_entries))' > package-temp.json && mv package-temp.json package.json",
|
|
72
|
-
"preauditfix": "npm run prebump",
|
|
73
|
-
"prebump": "cat package.json | jq '(((.localPeerDependencies // {}) | keys | map([\"dependencies\", .])) + ((.localPeerDevDependencies // {}) | keys | map([\"devDependencies\", .]))) as $localPeerPaths | delpaths($localPeerPaths)' > package-temp.json && mv package-temp.json package.json",
|
|
65
|
+
"postversion": "cat package.json | jq '.version as $V | (.localDependencies // {} | with_entries(select(.value == \"production\") | { key: .key, value: $V })) as $L1 | (.localDependencies // {} | with_entries(select(.value == \"development\") | { key: .key, value: $V })) as $L2 | ((.dependencies // {}) + $L1 | to_entries | sort_by(.key) | from_entries) as $D1 | ((.devDependencies // {}) + $L2 | to_entries | sort_by(.key) | from_entries) as $D2 | . + { dependencies: $D1, devDependencies: $D2 }' > package-temp.json && mv package-temp.json package.json",
|
|
74
66
|
"precommit": "npm run precommit:eslint -- src && npm run precommit:typecheck",
|
|
75
67
|
"precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0",
|
|
76
68
|
"precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
|
|
77
|
-
"
|
|
78
|
-
"start": "
|
|
79
|
-
"start:babel": "npm run build:babel -- --skip-initial-build --watch",
|
|
80
|
-
"start:globalize": "node-dev --respawn scripts/createPrecompiledGlobalize.mjs",
|
|
81
|
-
"start:tsup": "npm run build:tsup -- --watch",
|
|
82
|
-
"start:typescript": "npm run build:typescript -- --watch"
|
|
69
|
+
"preversion": "cat package.json | jq '(.localDependencies // {} | to_entries | map([if .value == \"production\" then \"dependencies\" else \"devDependencies\" end, .key])) as $P | delpaths($P)' > package-temp.json && mv package-temp.json package.json",
|
|
70
|
+
"start": "npm run build:tsup -- --onSuccess=\"touch ../component/src/index.ts\" --watch"
|
|
83
71
|
},
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"@babel/preset-env": "^7.19.1",
|
|
88
|
-
"@babel/preset-react": "^7.18.6",
|
|
89
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
90
|
-
"@types/dom-speech-recognition": "^0.0.4",
|
|
91
|
-
"@types/node": "^20.12.11",
|
|
92
|
-
"@types/react": "^16.14.60",
|
|
93
|
-
"babel-plugin-istanbul": "^6.1.1",
|
|
94
|
-
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
95
|
-
"cldr-data": "4.18.0",
|
|
96
|
-
"concurrently": "^8.2.2",
|
|
97
|
-
"core-js": "^3.37.0",
|
|
98
|
-
"cross-env": "^7.0.3",
|
|
99
|
-
"globalize-compiler": "^1.1.1",
|
|
100
|
-
"iana-tz-data": "^2019.1.0",
|
|
101
|
-
"node-dev": "^8.0.0",
|
|
102
|
-
"type-fest": "^4.18.2",
|
|
103
|
-
"typescript": "^5.4.5"
|
|
104
|
-
},
|
|
105
|
-
"dependencies": {
|
|
106
|
-
"botframework-webchat-core": "4.18.0",
|
|
107
|
-
"globalize": "1.7.0",
|
|
108
|
-
"math-random": "2.0.1",
|
|
109
|
-
"prop-types": "15.8.1",
|
|
110
|
-
"react-chain-of-responsibility": "0.2.0-main.3cb47ab",
|
|
111
|
-
"react-redux": "7.2.9",
|
|
112
|
-
"redux": "5.0.1",
|
|
113
|
-
"simple-update-in": "2.2.0",
|
|
114
|
-
"use-ref-from": "0.1.0",
|
|
115
|
-
"valibot": "0.30.0"
|
|
116
|
-
},
|
|
117
|
-
"peerDependencies": {
|
|
118
|
-
"react": ">= 16.8.6",
|
|
119
|
-
"react-dom": ">= 16.8.6"
|
|
120
|
-
},
|
|
121
|
-
"localPeerDependencies": {
|
|
122
|
-
"botframework-webchat-core": "0.0.0-0"
|
|
123
|
-
},
|
|
124
|
-
"localPeerDevDependencies": {
|
|
125
|
-
"cldr-data": "36.0.0-0"
|
|
72
|
+
"localDependencies": {
|
|
73
|
+
"botframework-webchat-cldr-data": "development",
|
|
74
|
+
"botframework-webchat-core": "production"
|
|
126
75
|
},
|
|
127
76
|
"pinDependencies": {
|
|
128
77
|
"@babel/cli": [
|
|
@@ -150,7 +99,46 @@
|
|
|
150
99
|
"react@16.8.6 is our baseline"
|
|
151
100
|
],
|
|
152
101
|
"react-redux": [
|
|
153
|
-
"7"
|
|
102
|
+
"7",
|
|
103
|
+
"react-redux@>7 requires newer version of React"
|
|
154
104
|
]
|
|
105
|
+
},
|
|
106
|
+
"devDependencies": {
|
|
107
|
+
"@babel/cli": "^7.18.10",
|
|
108
|
+
"@babel/core": "^7.19.1",
|
|
109
|
+
"@babel/preset-env": "^7.19.1",
|
|
110
|
+
"@babel/preset-react": "^7.18.6",
|
|
111
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
112
|
+
"@types/dom-speech-recognition": "^0.0.4",
|
|
113
|
+
"@types/node": "^22.13.4",
|
|
114
|
+
"@types/react": "^16.14.62",
|
|
115
|
+
"babel-plugin-istanbul": "^7.0.0",
|
|
116
|
+
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
117
|
+
"botframework-webchat-cldr-data": "4.18.1-hotfix.20260127.b53acdf",
|
|
118
|
+
"concurrently": "^9.1.2",
|
|
119
|
+
"core-js": "^3.40.0",
|
|
120
|
+
"cross-env": "^7.0.3",
|
|
121
|
+
"globalize-compiler": "^1.1.1",
|
|
122
|
+
"iana-tz-data": "^2019.1.0",
|
|
123
|
+
"nodemon": "^3.1.9",
|
|
124
|
+
"type-fest": "^4.34.1",
|
|
125
|
+
"typescript": "^5.7.3"
|
|
126
|
+
},
|
|
127
|
+
"dependencies": {
|
|
128
|
+
"botframework-webchat-core": "4.18.1-hotfix.20260127.b53acdf",
|
|
129
|
+
"globalize": "1.7.0",
|
|
130
|
+
"iter-fest": "^0.2.1",
|
|
131
|
+
"math-random": "2.0.1",
|
|
132
|
+
"prop-types": "15.8.1",
|
|
133
|
+
"react-chain-of-responsibility": "0.2.0",
|
|
134
|
+
"react-redux": "7.2.9",
|
|
135
|
+
"redux": "5.0.1",
|
|
136
|
+
"simple-update-in": "2.2.0",
|
|
137
|
+
"use-ref-from": "0.1.0",
|
|
138
|
+
"valibot": "1.1.0"
|
|
139
|
+
},
|
|
140
|
+
"peerDependencies": {
|
|
141
|
+
"react": ">= 16.8.6",
|
|
142
|
+
"react-dom": ">= 16.8.6"
|
|
155
143
|
}
|
|
156
144
|
}
|
package/src/StyleOptions.ts
CHANGED
|
@@ -150,10 +150,43 @@ type StyleOptions = {
|
|
|
150
150
|
bubbleFromUserNubSize?: number;
|
|
151
151
|
|
|
152
152
|
bubbleFromUserTextColor?: string;
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Specifies the fixed height of the bubble for image, default to unset.
|
|
156
|
+
*
|
|
157
|
+
* @deprecated Use `bubbleImageMaxHeight` and `bubbleImageMinHeight` instead. To mimick behavior before deprecation, set both options to 240px.
|
|
158
|
+
*/
|
|
159
|
+
bubbleImageHeight?: number | undefined;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Specifies the maximum height of the bubble for image, default to 240px.
|
|
163
|
+
*
|
|
164
|
+
* CSS variable: `--webchat__max-height--image-bubble`.
|
|
165
|
+
*
|
|
166
|
+
* New in 4.18.0.
|
|
167
|
+
*/
|
|
168
|
+
bubbleImageMaxHeight?: number | undefined;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Specifies the minimum height of the bubble for image, default to 240px.
|
|
172
|
+
*
|
|
173
|
+
* CSS variable: `--webchat__min-height--image-bubble`.
|
|
174
|
+
*
|
|
175
|
+
* New in 4.18.0.
|
|
176
|
+
*/
|
|
177
|
+
bubbleImageMinHeight?: number | undefined;
|
|
178
|
+
|
|
179
|
+
/* @deprecated Please use `bubbleAttachmentMaxWidth` and `bubbleMessageMaxWidth` instead. */
|
|
180
|
+
bubbleMaxWidth?: number | undefined;
|
|
181
|
+
/* @deprecated Please use `bubbleAttachmentMaxWidth` and `bubbleMessageMaxWidth` instead. */
|
|
182
|
+
bubbleMinWidth?: number | undefined;
|
|
183
|
+
|
|
184
|
+
bubbleAttachmentMaxWidth?: number | undefined;
|
|
185
|
+
bubbleAttachmentMinWidth?: number | undefined;
|
|
186
|
+
bubbleMessageMaxWidth?: number | undefined;
|
|
187
|
+
bubbleMessageMinWidth?: number | undefined;
|
|
188
|
+
|
|
155
189
|
bubbleMinHeight?: number;
|
|
156
|
-
bubbleMinWidth?: number;
|
|
157
190
|
|
|
158
191
|
/**
|
|
159
192
|
* Nub offset ''bottom' will render nub at the bottom
|
|
@@ -847,13 +880,99 @@ type StyleOptions = {
|
|
|
847
880
|
* @default 2000
|
|
848
881
|
*/
|
|
849
882
|
maxMessageLength?: number;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* The node to place Web Chat styles into. Needed when using as a Web Component.
|
|
886
|
+
*
|
|
887
|
+
* @default document.head
|
|
888
|
+
*/
|
|
889
|
+
stylesRoot?: Node;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Border animation
|
|
893
|
+
*/
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Border animation 1st color
|
|
897
|
+
*
|
|
898
|
+
* CSS variable: `--webchat__animation--border-color-1` CSS variable to adjust the color
|
|
899
|
+
*
|
|
900
|
+
* New in 4.19.0.
|
|
901
|
+
*/
|
|
902
|
+
borderAnimationColor1?: string;
|
|
903
|
+
/**
|
|
904
|
+
* Border animation 2nd color
|
|
905
|
+
*
|
|
906
|
+
* CSS variable: `--webchat__animation--border-color-2` CSS variable to adjust the color
|
|
907
|
+
*
|
|
908
|
+
* New in 4.19.0.
|
|
909
|
+
*/
|
|
910
|
+
borderAnimationColor2?: string;
|
|
911
|
+
/**
|
|
912
|
+
* Border animation 3rd color
|
|
913
|
+
*
|
|
914
|
+
* CSS variable: `--webchat__animation--border-color-3` CSS variable to adjust the color
|
|
915
|
+
*
|
|
916
|
+
* New in 4.19.0.
|
|
917
|
+
*/
|
|
918
|
+
borderAnimationColor3?: string;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Code block theme
|
|
922
|
+
*
|
|
923
|
+
* - `'github-light-default'` - use light theme for code blocks
|
|
924
|
+
* - `'github-dark-default'` - use dark theme for code blocks
|
|
925
|
+
*
|
|
926
|
+
* @default 'github-light-default'
|
|
927
|
+
*
|
|
928
|
+
* New in 4.19.0.
|
|
929
|
+
*/
|
|
930
|
+
codeBlockTheme?: 'github-light-default' | 'github-dark-default';
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* (EXPERIMENTAL) Feedback buttons placement
|
|
934
|
+
*
|
|
935
|
+
* - `'activity-actions'` - place feedback buttons inside activity actions - will show feedback form
|
|
936
|
+
* - `'activity-status'` - place feedback buttons inside activity status
|
|
937
|
+
*
|
|
938
|
+
* @default 'activity-status'
|
|
939
|
+
*
|
|
940
|
+
* @deprecated This is an experimental style options and should not be used without understanding its risk.
|
|
941
|
+
*
|
|
942
|
+
* New in 4.19.0.
|
|
943
|
+
*/
|
|
944
|
+
feedbackActionsPlacement?: 'activity-actions' | 'activity-status';
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Use continuous mode for speech recognition. Default to `false`.
|
|
948
|
+
*
|
|
949
|
+
* - `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
|
|
950
|
+
* - `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
|
|
951
|
+
*
|
|
952
|
+
* @see https://github.com/microsoft/BotFramework-WebChat/pull/5426
|
|
953
|
+
*/
|
|
954
|
+
speechRecognitionContinuous?: boolean | undefined;
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Defines how activities are being grouped by (in the order of appearance in the array). Default to `['sender', 'status']` or `sender,status` in CSS.
|
|
958
|
+
*
|
|
959
|
+
* Values are key of result of `groupActivitiesMiddleware`. The default implementation of `groupActivitiesMiddleware` has `sender` and `status`.
|
|
960
|
+
*
|
|
961
|
+
* To add new groupings, configure `groupActivitiesMiddleware` to output extra groups. Then, add the group names to `styleOptions.groupActivitiesBy`.
|
|
962
|
+
*/
|
|
963
|
+
groupActivitiesBy?: readonly string[] | undefined;
|
|
850
964
|
};
|
|
851
965
|
|
|
852
966
|
// StrictStyleOptions is only used internally in Web Chat and for simplifying our code:
|
|
853
967
|
// 1. Allow developers to set the "bubbleNubOffset" option as "top" (string), but when we normalize them, we will convert it to 0 (number);
|
|
854
968
|
// 2. Renamed/deprecated options, only the newer option will be kept, the older option will be dropped.
|
|
855
969
|
// Internally, no code should use the deprecated value except the migration code.
|
|
856
|
-
type StrictStyleOptions = Required<
|
|
970
|
+
type StrictStyleOptions = Required<
|
|
971
|
+
Omit<
|
|
972
|
+
StyleOptions,
|
|
973
|
+
'bubbleImageHeight' | 'bubbleMaxWidth' | 'bubbleMinWidth' | 'hideScrollToEndButton' | 'newMessagesButtonFontSize'
|
|
974
|
+
>
|
|
975
|
+
> & {
|
|
857
976
|
bubbleFromUserNubOffset: number;
|
|
858
977
|
bubbleNubOffset: number;
|
|
859
978
|
emojiSet: false | Record<string, string>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getActivityLivestreamingMetadata, type WebChatActivity } from 'botframework-webchat-core';
|
|
2
|
+
import React, { memo, useMemo, type ReactNode } from 'react';
|
|
3
|
+
import PassthroughFallback from '../private/PassthroughFallback';
|
|
4
|
+
import {
|
|
5
|
+
ActivityBorderDecoratorMiddlewareProxy,
|
|
6
|
+
type ActivityBorderDecoratorMiddlewareRequest
|
|
7
|
+
} from './private/ActivityBorderDecoratorMiddleware';
|
|
8
|
+
|
|
9
|
+
const supportedActivityRoles: ActivityBorderDecoratorMiddlewareRequest['from'][] = [
|
|
10
|
+
'bot',
|
|
11
|
+
'channel',
|
|
12
|
+
'user',
|
|
13
|
+
undefined
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
type ActivityBorderDecoratorProps = Readonly<{
|
|
17
|
+
activity?: WebChatActivity | undefined;
|
|
18
|
+
children?: ReactNode | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
|
|
21
|
+
function ActivityBorderDecorator({ activity, children }: ActivityBorderDecoratorProps) {
|
|
22
|
+
const request = useMemo<ActivityBorderDecoratorMiddlewareRequest>(() => {
|
|
23
|
+
const { type } = getActivityLivestreamingMetadata(activity) || {};
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
livestreamingState:
|
|
27
|
+
type === 'final activity'
|
|
28
|
+
? 'completing'
|
|
29
|
+
: type === 'informative message'
|
|
30
|
+
? 'preparing'
|
|
31
|
+
: type === 'interim activity'
|
|
32
|
+
? 'ongoing'
|
|
33
|
+
: type === 'contentless'
|
|
34
|
+
? undefined // No bubble is shown for "contentless" livestream, should not decorate.
|
|
35
|
+
: undefined,
|
|
36
|
+
from: supportedActivityRoles.includes(activity?.from?.role) ? activity?.from?.role : undefined
|
|
37
|
+
};
|
|
38
|
+
}, [activity]);
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<ActivityBorderDecoratorMiddlewareProxy fallbackComponent={PassthroughFallback} request={request}>
|
|
42
|
+
{children}
|
|
43
|
+
</ActivityBorderDecoratorMiddlewareProxy>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default memo(ActivityBorderDecorator);
|
|
48
|
+
export { type ActivityBorderDecoratorProps };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { EmptyObject } from 'type-fest';
|
|
2
|
+
import templateMiddleware from '../../private/templateMiddleware';
|
|
3
|
+
import { type activityBorderDecoratorTypeName } from '../types';
|
|
4
|
+
|
|
5
|
+
type Request = Readonly<{
|
|
6
|
+
/**
|
|
7
|
+
* Decorate the activity as it participate in a livestreaming session.
|
|
8
|
+
*
|
|
9
|
+
* - `"completing"` - decorate as the livestreaming is completing
|
|
10
|
+
* - `"ongoing"` - decorate as the livestreaming is ongoing
|
|
11
|
+
* - `"preparing"` - decorate as the livestreaming is being prepared
|
|
12
|
+
* - `undefined` - not participated in a livestreaming session
|
|
13
|
+
*/
|
|
14
|
+
livestreamingState: 'completing' | 'ongoing' | 'preparing' | undefined;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Gets the role of the sender for the activity.
|
|
18
|
+
*
|
|
19
|
+
* - `"bot"` - the sender is a bot or other users
|
|
20
|
+
* - `"channel"` - the sender is the channel service
|
|
21
|
+
* - `"user"` - the sender is the current user
|
|
22
|
+
* - `undefined` - the sender is unknown
|
|
23
|
+
*/
|
|
24
|
+
from: 'bot' | 'channel' | `user` | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
|
|
27
|
+
type Props = EmptyObject;
|
|
28
|
+
|
|
29
|
+
const {
|
|
30
|
+
initMiddleware: initActivityBorderDecoratorMiddleware,
|
|
31
|
+
Provider: ActivityBorderDecoratorMiddlewareProvider,
|
|
32
|
+
Proxy: ActivityBorderDecoratorMiddlewareProxy,
|
|
33
|
+
// False positive, `types` is used for its typing.
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
35
|
+
types
|
|
36
|
+
} = templateMiddleware<typeof activityBorderDecoratorTypeName, Request, Props>('ActivityBorderDecoratorMiddleware');
|
|
37
|
+
|
|
38
|
+
type ActivityBorderDecoratorMiddleware = typeof types.middleware;
|
|
39
|
+
type ActivityBorderDecoratorMiddlewareInit = typeof types.init;
|
|
40
|
+
type ActivityBorderDecoratorMiddlewareProps = typeof types.props;
|
|
41
|
+
type ActivityBorderDecoratorMiddlewareRequest = typeof types.request;
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
ActivityBorderDecoratorMiddlewareProvider,
|
|
45
|
+
ActivityBorderDecoratorMiddlewareProxy,
|
|
46
|
+
initActivityBorderDecoratorMiddleware,
|
|
47
|
+
type ActivityBorderDecoratorMiddleware,
|
|
48
|
+
type ActivityBorderDecoratorMiddlewareInit,
|
|
49
|
+
type ActivityBorderDecoratorMiddlewareProps,
|
|
50
|
+
type ActivityBorderDecoratorMiddlewareRequest
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const activityBorderDecoratorTypeName = 'activity border' as const;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type WebChatActivity } from 'botframework-webchat-core';
|
|
2
|
+
import React, { memo, useMemo, type ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
import PassthroughFallback from '../private/PassthroughFallback';
|
|
5
|
+
import {
|
|
6
|
+
ActivityGroupingDecoratorMiddlewareProxy,
|
|
7
|
+
type ActivityGroupingDecoratorMiddlewareRequest
|
|
8
|
+
} from './private/ActivityGroupingDecoratorMiddleware';
|
|
9
|
+
|
|
10
|
+
type ActivityGroupingDecoratorProps = Readonly<{
|
|
11
|
+
activities: readonly WebChatActivity[];
|
|
12
|
+
children?: ReactNode | undefined;
|
|
13
|
+
groupingName: string;
|
|
14
|
+
}>;
|
|
15
|
+
|
|
16
|
+
function ActivityGroupingDecorator({ activities, children, groupingName }: ActivityGroupingDecoratorProps) {
|
|
17
|
+
const request = useMemo<ActivityGroupingDecoratorMiddlewareRequest>(() => ({ groupingName }), [groupingName]);
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<ActivityGroupingDecoratorMiddlewareProxy
|
|
21
|
+
activities={activities}
|
|
22
|
+
fallbackComponent={PassthroughFallback}
|
|
23
|
+
request={request}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</ActivityGroupingDecoratorMiddlewareProxy>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default memo(ActivityGroupingDecorator);
|
|
31
|
+
export { type ActivityGroupingDecoratorProps };
|