botframework-webchat-core 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/dist/botframework-webchat-core.d.mts +146 -138
- package/dist/botframework-webchat-core.d.ts +959 -0
- package/dist/botframework-webchat-core.js +3 -0
- package/dist/botframework-webchat-core.js.LEGAL.txt +1 -0
- package/dist/botframework-webchat-core.js.map +1 -0
- package/dist/botframework-webchat-core.mjs +1 -1
- package/dist/botframework-webchat-core.mjs.LEGAL.txt +1 -0
- package/dist/botframework-webchat-core.mjs.map +1 -1
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/package.json +43 -52
- package/src/__tests__/detectSlowConnectionSaga.spec.js +1 -1
- package/src/actions/{clearSuggestedActions.js → clearSuggestedActions.ts} +1 -1
- package/src/actions/setSuggestedActions.ts +18 -0
- package/src/actions/{submitSendBox.js → submitSendBox.ts} +1 -1
- package/src/createPromiseQueue.js +8 -6
- package/src/createReducer.ts +2 -0
- package/src/createStore.ts +1 -1
- package/src/index.ts +8 -2
- package/src/reducers/createActivitiesReducer.ts +31 -11
- package/src/reducers/suggestedActions.js +1 -1
- package/src/reducers/suggestedActionsOriginActivity.ts +33 -0
- package/src/sagas/queueIncomingActivitySaga.ts +10 -4
- package/src/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +10 -4
- package/src/sagas/startDictateOnSpeakCompleteSaga.js +3 -3
- package/src/sagas/startSpeakActivityOnPostActivitySaga.js +15 -5
- package/src/sagas/stopDictateOnCardActionSaga.js +11 -3
- package/src/sagas/stopSpeakingActivityOnInputSaga.js +22 -4
- package/src/tsconfig.json +2 -8
- package/src/types/WebChatActivity.ts +15 -5
- package/src/types/external/DirectLineActivity.ts +1 -1
- package/src/types/external/OrgSchema/Action.ts +6 -8
- package/src/types/external/OrgSchema/CreativeWork.ts +25 -3
- package/src/types/external/OrgSchema/Thing.ts +15 -18
- package/src/types/external/OrgSchema/private/orgSchemaProperties.ts +11 -7
- package/src/types/external/OrgSchema/private/orgSchemaProperty.ts +14 -3
- package/src/types/internal/WebChatOutgoingActivity.ts +1 -1
- package/src/utils/dateToLocaleISOString.chatham.spec.js +0 -1
- package/src/utils/dateToLocaleISOString.japan.spec.js +0 -1
- package/src/utils/dateToLocaleISOString.newfoundland.spec.js +0 -1
- package/src/utils/dateToLocaleISOString.pacific.spec.js +0 -1
- package/src/utils/dateToLocaleISOString.utc.spec.js +0 -2
- package/src/utils/getActivityLivestreamingMetadata.spec.ts +153 -0
- package/src/utils/getActivityLivestreamingMetadata.ts +135 -0
- package/src/utils/getOrgSchemaMessage.ts +3 -3
- package/src/utils/onErrorResumeNext.ts +1 -1
- package/lib/actions/clearSuggestedActions.js +0 -15
- package/lib/actions/connect.js +0 -33
- package/lib/actions/connectionStatusUpdate.js +0 -20
- package/lib/actions/deleteActivity.d.ts +0 -13
- package/lib/actions/deleteActivity.d.ts.map +0 -1
- package/lib/actions/deleteActivity.js +0 -19
- package/lib/actions/disconnect.js +0 -21
- package/lib/actions/dismissNotification.d.ts +0 -12
- package/lib/actions/dismissNotification.d.ts.map +0 -1
- package/lib/actions/dismissNotification.js +0 -19
- package/lib/actions/emitTypingIndicator.js +0 -15
- package/lib/actions/incomingActivity.d.ts +0 -14
- package/lib/actions/incomingActivity.d.ts.map +0 -1
- package/lib/actions/incomingActivity.js +0 -19
- package/lib/actions/markActivity.d.ts +0 -17
- package/lib/actions/markActivity.d.ts.map +0 -1
- package/lib/actions/markActivity.js +0 -22
- package/lib/actions/postActivity.d.ts +0 -64
- package/lib/actions/postActivity.d.ts.map +0 -1
- package/lib/actions/postActivity.js +0 -31
- package/lib/actions/queueIncomingActivity.js +0 -18
- package/lib/actions/reconnect.js +0 -17
- package/lib/actions/sagaError.d.ts +0 -8
- package/lib/actions/sagaError.d.ts.map +0 -1
- package/lib/actions/sagaError.js +0 -15
- package/lib/actions/sendEvent.js +0 -19
- package/lib/actions/sendFiles.d.ts +0 -19
- package/lib/actions/sendFiles.d.ts.map +0 -1
- package/lib/actions/sendFiles.js +0 -20
- package/lib/actions/sendMessage.d.ts +0 -19
- package/lib/actions/sendMessage.d.ts.map +0 -1
- package/lib/actions/sendMessage.js +0 -24
- package/lib/actions/sendMessageBack.js +0 -20
- package/lib/actions/sendPostBack.js +0 -18
- package/lib/actions/setClockSkewAdjustment.js +0 -12
- package/lib/actions/setDictateInterims.js +0 -18
- package/lib/actions/setDictateState.js +0 -18
- package/lib/actions/setLanguage.js +0 -18
- package/lib/actions/setNotification.d.ts +0 -10
- package/lib/actions/setNotification.d.ts.map +0 -1
- package/lib/actions/setNotification.js +0 -37
- package/lib/actions/setReferenceGrammarID.js +0 -18
- package/lib/actions/setSendBox.js +0 -18
- package/lib/actions/setSendBoxAttachments.d.ts +0 -13
- package/lib/actions/setSendBoxAttachments.d.ts.map +0 -1
- package/lib/actions/setSendBoxAttachments.js +0 -18
- package/lib/actions/setSendTimeout.js +0 -18
- package/lib/actions/setSendTypingIndicator.d.ts +0 -11
- package/lib/actions/setSendTypingIndicator.d.ts.map +0 -1
- package/lib/actions/setSendTypingIndicator.js +0 -18
- package/lib/actions/setSuggestedActions.js +0 -20
- package/lib/actions/startDictate.js +0 -15
- package/lib/actions/startSpeakingActivity.js +0 -15
- package/lib/actions/stopDictate.js +0 -15
- package/lib/actions/stopSpeakingActivity.js +0 -15
- package/lib/actions/submitSendBox.js +0 -22
- package/lib/actions/updateConnectionStatus.js +0 -18
- package/lib/constants/ActivityClientState.js +0 -16
- package/lib/constants/DictateState.js +0 -17
- package/lib/createPromiseQueue.js +0 -30
- package/lib/createReducer.d.ts +0 -60
- package/lib/createReducer.d.ts.map +0 -1
- package/lib/createReducer.js +0 -45
- package/lib/createSagas.d.ts +0 -8
- package/lib/createSagas.d.ts.map +0 -1
- package/lib/createSagas.js +0 -112
- package/lib/createStore.d.ts +0 -43
- package/lib/createStore.d.ts.map +0 -1
- package/lib/createStore.js +0 -131
- package/lib/definitions/activityFromBot.js +0 -11
- package/lib/definitions/speakableActivity.js +0 -10
- package/lib/definitions/speakingActivity.js +0 -13
- package/lib/index.d.ts +0 -76
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -309
- package/lib/reducers/connectivityStatus.js +0 -49
- package/lib/reducers/createActivitiesReducer.d.ts +0 -12
- package/lib/reducers/createActivitiesReducer.d.ts.map +0 -1
- package/lib/reducers/createActivitiesReducer.js +0 -267
- package/lib/reducers/createInternalReducer.d.ts +0 -10
- package/lib/reducers/createInternalReducer.d.ts.map +0 -1
- package/lib/reducers/createInternalReducer.js +0 -19
- package/lib/reducers/createNotificationsReducer.d.ts +0 -11
- package/lib/reducers/createNotificationsReducer.d.ts.map +0 -1
- package/lib/reducers/createNotificationsReducer.js +0 -55
- package/lib/reducers/createTypingReducer.d.ts +0 -14
- package/lib/reducers/createTypingReducer.d.ts.map +0 -1
- package/lib/reducers/createTypingReducer.js +0 -50
- package/lib/reducers/dictateInterims.js +0 -23
- package/lib/reducers/dictateState.js +0 -38
- package/lib/reducers/language.js +0 -23
- package/lib/reducers/private/findBeforeAfter.d.ts +0 -4
- package/lib/reducers/private/findBeforeAfter.d.ts.map +0 -1
- package/lib/reducers/private/findBeforeAfter.js +0 -24
- package/lib/reducers/readyState.js +0 -23
- package/lib/reducers/referenceGrammarID.js +0 -23
- package/lib/reducers/sendBoxAttachments.d.ts +0 -9
- package/lib/reducers/sendBoxAttachments.d.ts.map +0 -1
- package/lib/reducers/sendBoxAttachments.js +0 -23
- package/lib/reducers/sendBoxValue.js +0 -23
- package/lib/reducers/sendTimeout.js +0 -23
- package/lib/reducers/sendTypingIndicator.js +0 -23
- package/lib/reducers/shouldSpeakIncomingActivity.js +0 -25
- package/lib/reducers/suggestedActions.js +0 -32
- package/lib/sagas/clearSuggestedActionsOnPostActivitySaga.js +0 -62
- package/lib/sagas/connectSaga.js +0 -445
- package/lib/sagas/connectionStatusToNotificationSaga.js +0 -107
- package/lib/sagas/connectionStatusUpdateSaga.js +0 -63
- package/lib/sagas/detectSlowConnectionSaga.d.ts +0 -5
- package/lib/sagas/detectSlowConnectionSaga.d.ts.map +0 -1
- package/lib/sagas/detectSlowConnectionSaga.js +0 -50
- package/lib/sagas/effects/forever.js +0 -19
- package/lib/sagas/effects/forkPut.js +0 -51
- package/lib/sagas/effects/observeEach.js +0 -45
- package/lib/sagas/effects/observeOnce.d.ts +0 -3
- package/lib/sagas/effects/observeOnce.d.ts.map +0 -1
- package/lib/sagas/effects/observeOnce.js +0 -42
- package/lib/sagas/effects/whileConnected.d.ts +0 -7
- package/lib/sagas/effects/whileConnected.d.ts.map +0 -1
- package/lib/sagas/effects/whileConnected.js +0 -55
- package/lib/sagas/emitTypingIndicatorToPostActivitySaga.js +0 -63
- package/lib/sagas/markAllAsSpokenOnStopSpeakActivitySaga.js +0 -78
- package/lib/sagas/observeActivitySaga.d.ts +0 -2
- package/lib/sagas/observeActivitySaga.d.ts.map +0 -1
- package/lib/sagas/observeActivitySaga.js +0 -117
- package/lib/sagas/postActivitySaga.d.ts +0 -3
- package/lib/sagas/postActivitySaga.d.ts.map +0 -1
- package/lib/sagas/postActivitySaga.js +0 -264
- package/lib/sagas/queueIncomingActivitySaga.d.ts +0 -3
- package/lib/sagas/queueIncomingActivitySaga.d.ts.map +0 -1
- package/lib/sagas/queueIncomingActivitySaga.js +0 -197
- package/lib/sagas/sendEventToPostActivitySaga.js +0 -68
- package/lib/sagas/sendFilesToPostActivitySaga.js +0 -85
- package/lib/sagas/sendMessageBackToPostActivitySaga.js +0 -70
- package/lib/sagas/sendMessageToPostActivitySaga.d.ts +0 -2
- package/lib/sagas/sendMessageToPostActivitySaga.d.ts.map +0 -1
- package/lib/sagas/sendMessageToPostActivitySaga.js +0 -91
- package/lib/sagas/sendPostBackToPostActivitySaga.js +0 -69
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts +0 -3
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts.map +0 -1
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.js +0 -145
- package/lib/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +0 -106
- package/lib/sagas/startDictateOnSpeakCompleteSaga.js +0 -65
- package/lib/sagas/startSpeakActivityOnPostActivitySaga.js +0 -62
- package/lib/sagas/stopDictateOnCardActionSaga.js +0 -65
- package/lib/sagas/stopSpeakingActivityOnInputSaga.js +0 -68
- package/lib/sagas/submitSendBoxSaga.js +0 -84
- package/lib/selectors/activities.d.ts +0 -9
- package/lib/selectors/activities.d.ts.map +0 -1
- package/lib/selectors/activities.js +0 -33
- package/lib/selectors/combineSelectors.js +0 -31
- package/lib/selectors/dictateState.js +0 -12
- package/lib/selectors/language.d.ts +0 -4
- package/lib/selectors/language.d.ts.map +0 -1
- package/lib/selectors/language.js +0 -12
- package/lib/selectors/notifications.js +0 -13
- package/lib/selectors/sendBoxAttachments.js +0 -11
- package/lib/selectors/sendBoxValue.js +0 -12
- package/lib/selectors/sendTimeout.d.ts +0 -4
- package/lib/selectors/sendTimeout.d.ts.map +0 -1
- package/lib/selectors/sendTimeout.js +0 -12
- package/lib/selectors/sendTypingIndicator.d.ts +0 -4
- package/lib/selectors/sendTypingIndicator.d.ts.map +0 -1
- package/lib/selectors/sendTypingIndicator.js +0 -12
- package/lib/selectors/shouldSpeakIncomingActivity.js +0 -12
- package/lib/types/AnyAnd.d.ts +0 -2
- package/lib/types/AnyAnd.d.ts.map +0 -1
- package/lib/types/AnyAnd.js +0 -6
- package/lib/types/GlobalScopePonyfill.d.ts +0 -8
- package/lib/types/GlobalScopePonyfill.d.ts.map +0 -1
- package/lib/types/GlobalScopePonyfill.js +0 -6
- package/lib/types/OneOrMany.d.ts +0 -3
- package/lib/types/OneOrMany.d.ts.map +0 -1
- package/lib/types/OneOrMany.js +0 -6
- package/lib/types/SendBoxAttachment.d.ts +0 -5
- package/lib/types/SendBoxAttachment.d.ts.map +0 -1
- package/lib/types/SendBoxAttachment.js +0 -6
- package/lib/types/WebChatActivity.d.ts +0 -128
- package/lib/types/WebChatActivity.d.ts.map +0 -1
- package/lib/types/WebChatActivity.js +0 -6
- package/lib/types/external/DirectLineActivity.d.ts +0 -3
- package/lib/types/external/DirectLineActivity.d.ts.map +0 -1
- package/lib/types/external/DirectLineActivity.js +0 -6
- package/lib/types/external/DirectLineAnimationCard.d.ts +0 -6
- package/lib/types/external/DirectLineAnimationCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineAnimationCard.js +0 -6
- package/lib/types/external/DirectLineAttachment.d.ts +0 -9
- package/lib/types/external/DirectLineAttachment.d.ts.map +0 -1
- package/lib/types/external/DirectLineAttachment.js +0 -6
- package/lib/types/external/DirectLineAudioCard.d.ts +0 -6
- package/lib/types/external/DirectLineAudioCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineAudioCard.js +0 -6
- package/lib/types/external/DirectLineBasicCardEssence.d.ts +0 -12
- package/lib/types/external/DirectLineBasicCardEssence.d.ts.map +0 -1
- package/lib/types/external/DirectLineBasicCardEssence.js +0 -6
- package/lib/types/external/DirectLineCardAction.d.ts +0 -110
- package/lib/types/external/DirectLineCardAction.d.ts.map +0 -1
- package/lib/types/external/DirectLineCardAction.js +0 -6
- package/lib/types/external/DirectLineCardImage.d.ts +0 -8
- package/lib/types/external/DirectLineCardImage.d.ts.map +0 -1
- package/lib/types/external/DirectLineCardImage.js +0 -6
- package/lib/types/external/DirectLineHeroCard.d.ts +0 -6
- package/lib/types/external/DirectLineHeroCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineHeroCard.js +0 -6
- package/lib/types/external/DirectLineJSBotConnection.d.ts +0 -3
- package/lib/types/external/DirectLineJSBotConnection.d.ts.map +0 -1
- package/lib/types/external/DirectLineJSBotConnection.js +0 -6
- package/lib/types/external/DirectLineMediaCardEssence.d.ts +0 -21
- package/lib/types/external/DirectLineMediaCardEssence.d.ts.map +0 -1
- package/lib/types/external/DirectLineMediaCardEssence.js +0 -6
- package/lib/types/external/DirectLineOAuthCard.d.ts +0 -8
- package/lib/types/external/DirectLineOAuthCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineOAuthCard.js +0 -6
- package/lib/types/external/DirectLineReceiptCard.d.ts +0 -28
- package/lib/types/external/DirectLineReceiptCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineReceiptCard.js +0 -6
- package/lib/types/external/DirectLineSignInCard.d.ts +0 -8
- package/lib/types/external/DirectLineSignInCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineSignInCard.js +0 -6
- package/lib/types/external/DirectLineSuggestedAction.d.ts +0 -7
- package/lib/types/external/DirectLineSuggestedAction.d.ts.map +0 -1
- package/lib/types/external/DirectLineSuggestedAction.js +0 -6
- package/lib/types/external/DirectLineThumbnailCard.d.ts +0 -6
- package/lib/types/external/DirectLineThumbnailCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineThumbnailCard.js +0 -6
- package/lib/types/external/DirectLineVideoCard.d.ts +0 -6
- package/lib/types/external/DirectLineVideoCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineVideoCard.js +0 -6
- package/lib/types/external/Observable.d.ts +0 -49
- package/lib/types/external/Observable.d.ts.map +0 -1
- package/lib/types/external/Observable.js +0 -6
- package/lib/types/external/OrgSchema/Action.d.ts +0 -29
- package/lib/types/external/OrgSchema/Action.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Action.js +0 -38
- package/lib/types/external/OrgSchema/Claim.d.ts +0 -35
- package/lib/types/external/OrgSchema/Claim.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Claim.js +0 -41
- package/lib/types/external/OrgSchema/CreativeWork.d.ts +0 -57
- package/lib/types/external/OrgSchema/CreativeWork.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/CreativeWork.js +0 -52
- package/lib/types/external/OrgSchema/DefinedTerm.d.ts +0 -26
- package/lib/types/external/OrgSchema/DefinedTerm.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/DefinedTerm.js +0 -33
- package/lib/types/external/OrgSchema/Project.d.ts +0 -20
- package/lib/types/external/OrgSchema/Project.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Project.js +0 -32
- package/lib/types/external/OrgSchema/Thing.d.ts +0 -53
- package/lib/types/external/OrgSchema/Thing.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Thing.js +0 -54
- package/lib/types/external/OrgSchema/VoteAction.d.ts +0 -22
- package/lib/types/external/OrgSchema/VoteAction.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/VoteAction.js +0 -34
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts +0 -3
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.js +0 -22
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts +0 -4
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.js +0 -15
- package/lib/types/internal/GlobalScopeClock.d.ts +0 -15
- package/lib/types/internal/GlobalScopeClock.d.ts.map +0 -1
- package/lib/types/internal/GlobalScopeClock.js +0 -6
- package/lib/types/internal/Notification.d.ts +0 -10
- package/lib/types/internal/Notification.d.ts.map +0 -1
- package/lib/types/internal/Notification.js +0 -6
- package/lib/types/internal/ReduxState.d.ts +0 -19
- package/lib/types/internal/ReduxState.d.ts.map +0 -1
- package/lib/types/internal/ReduxState.js +0 -6
- package/lib/types/internal/SendStatus.d.ts +0 -7
- package/lib/types/internal/SendStatus.d.ts.map +0 -1
- package/lib/types/internal/SendStatus.js +0 -19
- package/lib/types/internal/WebChatOutgoingActivity.d.ts +0 -49
- package/lib/types/internal/WebChatOutgoingActivity.d.ts.map +0 -1
- package/lib/types/internal/WebChatOutgoingActivity.js +0 -6
- package/lib/utils/dateToLocaleISOString.d.ts +0 -2
- package/lib/utils/dateToLocaleISOString.d.ts.map +0 -1
- package/lib/utils/dateToLocaleISOString.js +0 -52
- package/lib/utils/deleteKey.d.ts +0 -2
- package/lib/utils/deleteKey.d.ts.map +0 -1
- package/lib/utils/deleteKey.js +0 -30
- package/lib/utils/getOrgSchemaMessage.d.ts +0 -4
- package/lib/utils/getOrgSchemaMessage.d.ts.map +0 -1
- package/lib/utils/getOrgSchemaMessage.js +0 -21
- package/lib/utils/isForbiddenPropertyName.d.ts +0 -2
- package/lib/utils/isForbiddenPropertyName.d.ts.map +0 -1
- package/lib/utils/isForbiddenPropertyName.js +0 -16
- package/lib/utils/onErrorResumeNext.d.ts +0 -3
- package/lib/utils/onErrorResumeNext.d.ts.map +0 -1
- package/lib/utils/onErrorResumeNext.js +0 -19
- package/lib/utils/once.d.ts +0 -2
- package/lib/utils/once.d.ts.map +0 -1
- package/lib/utils/once.js +0 -16
- package/lib/utils/singleToArray.d.ts +0 -2
- package/lib/utils/singleToArray.d.ts.map +0 -1
- package/lib/utils/singleToArray.js +0 -10
- package/lib/utils/sleep.d.ts +0 -3
- package/lib/utils/sleep.d.ts.map +0 -1
- package/lib/utils/sleep.js +0 -12
- package/lib/utils/uniqueID.d.ts +0 -2
- package/lib/utils/uniqueID.d.ts.map +0 -1
- package/lib/utils/uniqueID.js +0 -14
- package/lib/utils/warnOnce.d.ts +0 -2
- package/lib/utils/warnOnce.d.ts.map +0 -1
- package/lib/utils/warnOnce.js +0 -14
- package/src/actions/setSuggestedActions.js +0 -12
- /package/src/actions/{connect.js → connect.ts} +0 -0
- /package/src/actions/{connectionStatusUpdate.js → connectionStatusUpdate.ts} +0 -0
- /package/src/actions/{disconnect.js → disconnect.ts} +0 -0
- /package/src/actions/{emitTypingIndicator.js → emitTypingIndicator.ts} +0 -0
- /package/src/actions/{queueIncomingActivity.js → queueIncomingActivity.ts} +0 -0
- /package/src/actions/{reconnect.js → reconnect.ts} +0 -0
- /package/src/actions/{sendEvent.js → sendEvent.ts} +0 -0
- /package/src/actions/{sendMessageBack.js → sendMessageBack.ts} +0 -0
- /package/src/actions/{sendPostBack.js → sendPostBack.ts} +0 -0
- /package/src/actions/{setDictateInterims.js → setDictateInterims.ts} +0 -0
- /package/src/actions/{setDictateState.js → setDictateState.ts} +0 -0
- /package/src/actions/{setLanguage.js → setLanguage.ts} +0 -0
- /package/src/actions/{setSendBox.js → setSendBox.ts} +0 -0
- /package/src/actions/{setSendTimeout.js → setSendTimeout.ts} +0 -0
- /package/src/actions/{startDictate.js → startDictate.ts} +0 -0
- /package/src/actions/{startSpeakingActivity.js → startSpeakingActivity.ts} +0 -0
- /package/src/actions/{stopDictate.js → stopDictate.ts} +0 -0
- /package/src/actions/{stopSpeakingActivity.js → stopSpeakingActivity.ts} +0 -0
- /package/src/actions/{updateConnectionStatus.js → updateConnectionStatus.ts} +0 -0
|
@@ -1,33 +1,26 @@
|
|
|
1
|
+
export { PromiseWithResolvers, withResolvers } from 'botframework-webchat-base/utils';
|
|
1
2
|
import { Store } from 'redux';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
type: CLEAR_SUGGESTED_ACTIONS
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const CONNECT = 'DIRECT_LINE/CONNECT';
|
|
4
|
+
declare function clearSuggestedActions(): {
|
|
5
|
+
type: "WEB_CHAT/CLEAR_SUGGESTED_ACTIONS";
|
|
6
|
+
};
|
|
12
7
|
|
|
13
|
-
function connect({ directLine, userID, username }
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
declare function connect({ directLine, userID, username }: {
|
|
9
|
+
directLine: any;
|
|
10
|
+
userID: any;
|
|
11
|
+
username: any;
|
|
12
|
+
}): {
|
|
13
|
+
type: string;
|
|
16
14
|
payload: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const DISCONNECT = 'DIRECT_LINE/DISCONNECT';
|
|
15
|
+
directLine: any;
|
|
16
|
+
userID: any;
|
|
17
|
+
username: any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
25
20
|
|
|
26
|
-
function disconnect() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
}
|
|
21
|
+
declare function disconnect(): {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
31
24
|
|
|
32
25
|
declare const DISMISS_NOTIFICATION = "WEB_CHAT/DISMISS_NOTIFICATION";
|
|
33
26
|
type DismissNotificationAction = {
|
|
@@ -38,13 +31,9 @@ type DismissNotificationAction = {
|
|
|
38
31
|
};
|
|
39
32
|
declare function dismissNotification(id: string): DismissNotificationAction;
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return {
|
|
45
|
-
type: EMIT_TYPING_INDICATOR
|
|
46
|
-
};
|
|
47
|
-
}
|
|
34
|
+
declare function emitTypingIndicator(): {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
48
37
|
|
|
49
38
|
type MarkActivityActionType = 'WEB_CHAT/MARK_ACTIVITY';
|
|
50
39
|
type MarkActivityAction = {
|
|
@@ -222,7 +211,7 @@ type ChannelData<SendStatus extends SupportedSendStatus | undefined, Type extend
|
|
|
222
211
|
* For further details, please see [#4362](https://github.com/microsoft/BotFramework-WebChat/pull/4362).
|
|
223
212
|
*/
|
|
224
213
|
'webchat:send-status': SendStatus;
|
|
225
|
-
} :
|
|
214
|
+
} : Record<any, any>) & (Type extends 'message' ? {
|
|
226
215
|
messageBack?: {
|
|
227
216
|
displayText: string;
|
|
228
217
|
};
|
|
@@ -230,7 +219,11 @@ type ChannelData<SendStatus extends SupportedSendStatus | undefined, Type extend
|
|
|
230
219
|
speak?: boolean;
|
|
231
220
|
speechSynthesisUtterance?: SpeechSynthesisUtterance;
|
|
232
221
|
'webchat:fallback-text'?: string;
|
|
233
|
-
|
|
222
|
+
feedbackLoop?: {
|
|
223
|
+
type: 'default';
|
|
224
|
+
disclaimer?: string;
|
|
225
|
+
};
|
|
226
|
+
} : Record<any, any>)>;
|
|
234
227
|
type ClientCapabilitiesEntity = {
|
|
235
228
|
requiresBotState?: boolean;
|
|
236
229
|
supportsListening?: boolean;
|
|
@@ -268,14 +261,19 @@ type MessageActivityEssence = {
|
|
|
268
261
|
value?: any;
|
|
269
262
|
};
|
|
270
263
|
type TypingActivityEssence = {
|
|
264
|
+
attachmentLayout?: 'carousel' | 'stacked';
|
|
265
|
+
attachments?: DirectLineAttachment[];
|
|
266
|
+
text?: undefined;
|
|
271
267
|
type: 'typing';
|
|
272
268
|
} | {
|
|
269
|
+
attachmentLayout?: 'carousel' | 'stacked';
|
|
270
|
+
attachments?: DirectLineAttachment[];
|
|
273
271
|
channelData: {
|
|
274
|
-
streamId
|
|
272
|
+
streamId?: string | undefined;
|
|
275
273
|
streamSequence: number;
|
|
276
|
-
streamType: 'informative' | 'streaming';
|
|
274
|
+
streamType: 'informative' | 'streaming' | 'final';
|
|
277
275
|
};
|
|
278
|
-
text
|
|
276
|
+
text?: string | undefined;
|
|
279
277
|
type: 'typing';
|
|
280
278
|
};
|
|
281
279
|
type TimestampFromServerEssence = {
|
|
@@ -319,14 +317,13 @@ type PostActivityAction = {
|
|
|
319
317
|
};
|
|
320
318
|
declare function postActivity(activity: WebChatActivity, method?: string): PostActivityAction;
|
|
321
319
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}
|
|
320
|
+
declare function sendEvent(name: any, value: any): {
|
|
321
|
+
type: string;
|
|
322
|
+
payload: {
|
|
323
|
+
name: any;
|
|
324
|
+
value: any;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
330
327
|
|
|
331
328
|
declare function sendFiles(files: readonly Readonly<{
|
|
332
329
|
name: string;
|
|
@@ -366,50 +363,42 @@ declare function sendMessage(text: string | undefined, method: string | undefine
|
|
|
366
363
|
};
|
|
367
364
|
};
|
|
368
365
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
const SEND_POST_BACK = 'WEB_CHAT/SEND_POST_BACK';
|
|
379
|
-
|
|
380
|
-
function sendPostback(value) {
|
|
381
|
-
return {
|
|
382
|
-
type: SEND_POST_BACK,
|
|
383
|
-
payload: { value }
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
const SET_DICTATE_INTERIMS = 'WEB_CHAT/SET_DICTATE_INTERIMS';
|
|
388
|
-
|
|
389
|
-
function setDictateInterims(dictateInterims) {
|
|
390
|
-
return {
|
|
391
|
-
type: SET_DICTATE_INTERIMS,
|
|
392
|
-
payload: { dictateInterims }
|
|
393
|
-
};
|
|
394
|
-
}
|
|
366
|
+
declare function sendMessageback(value: any, text: any, displayText: any): {
|
|
367
|
+
type: string;
|
|
368
|
+
payload: {
|
|
369
|
+
displayText: any;
|
|
370
|
+
text: any;
|
|
371
|
+
value: any;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
395
374
|
|
|
396
|
-
|
|
375
|
+
declare function sendPostback(value: any): {
|
|
376
|
+
type: string;
|
|
377
|
+
payload: {
|
|
378
|
+
value: any;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
397
381
|
|
|
398
|
-
function
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}
|
|
382
|
+
declare function setDictateInterims(dictateInterims: any): {
|
|
383
|
+
type: string;
|
|
384
|
+
payload: {
|
|
385
|
+
dictateInterims: any;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
404
388
|
|
|
405
|
-
|
|
389
|
+
declare function setDictateState(dictateState: any): {
|
|
390
|
+
type: string;
|
|
391
|
+
payload: {
|
|
392
|
+
dictateState: any;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
406
395
|
|
|
407
|
-
function setLanguage(language) {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
396
|
+
declare function setLanguage(language: any): {
|
|
397
|
+
type: string;
|
|
398
|
+
payload: {
|
|
399
|
+
language: any;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
413
402
|
|
|
414
403
|
type Notification = {
|
|
415
404
|
alt: string;
|
|
@@ -427,14 +416,12 @@ type SetNotificationAction = {
|
|
|
427
416
|
};
|
|
428
417
|
declare function setNotification({ alt, data, id, level, message }: Omit<Notification, 'timestamp'>): SetNotificationAction;
|
|
429
418
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
};
|
|
437
|
-
}
|
|
419
|
+
declare function setSendBox(text: any): {
|
|
420
|
+
type: string;
|
|
421
|
+
payload: {
|
|
422
|
+
text: any;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
438
425
|
|
|
439
426
|
declare function setSendBoxAttachments(attachments: readonly SendBoxAttachment[]): {
|
|
440
427
|
type: string;
|
|
@@ -446,14 +433,12 @@ declare function setSendBoxAttachments(attachments: readonly SendBoxAttachment[]
|
|
|
446
433
|
};
|
|
447
434
|
};
|
|
448
435
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
};
|
|
456
|
-
}
|
|
436
|
+
declare function setSendTimeout(sendTimeout: any): {
|
|
437
|
+
type: string;
|
|
438
|
+
payload: {
|
|
439
|
+
sendTimeout: any;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
457
442
|
|
|
458
443
|
declare const SET_SEND_TYPING_INDICATOR = "WEB_CHAT/SET_SEND_TYPING_INDICATOR";
|
|
459
444
|
type SetSendTypingIndicatorAction = {
|
|
@@ -464,42 +449,31 @@ type SetSendTypingIndicatorAction = {
|
|
|
464
449
|
};
|
|
465
450
|
declare function setSendTypingIndicator(value: any): SetSendTypingIndicatorAction;
|
|
466
451
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
return { type: START_DICTATE };
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
const START_SPEAKING_ACTIVITY = 'WEB_CHAT/START_SPEAKING';
|
|
474
|
-
|
|
475
|
-
function startSpeakingActivity() {
|
|
476
|
-
return {
|
|
477
|
-
type: START_SPEAKING_ACTIVITY
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
const STOP_DICTATE = 'WEB_CHAT/STOP_DICTATE';
|
|
482
|
-
|
|
483
|
-
function stopDictate() {
|
|
484
|
-
return { type: STOP_DICTATE };
|
|
485
|
-
}
|
|
452
|
+
declare function startDictate(): {
|
|
453
|
+
type: string;
|
|
454
|
+
};
|
|
486
455
|
|
|
487
|
-
|
|
456
|
+
declare function startSpeakingActivity(): {
|
|
457
|
+
type: string;
|
|
458
|
+
};
|
|
488
459
|
|
|
489
|
-
function
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
};
|
|
493
|
-
}
|
|
460
|
+
declare function stopDictate(): {
|
|
461
|
+
type: string;
|
|
462
|
+
};
|
|
494
463
|
|
|
495
|
-
|
|
464
|
+
declare function stopSpeakingActivity(): {
|
|
465
|
+
type: string;
|
|
466
|
+
};
|
|
496
467
|
|
|
497
|
-
function submitSendBox(method
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
468
|
+
declare function submitSendBox(method?: string, { channelData }?: {
|
|
469
|
+
channelData: any;
|
|
470
|
+
}): {
|
|
471
|
+
type: string;
|
|
472
|
+
payload: {
|
|
473
|
+
channelData: any;
|
|
474
|
+
method: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
503
477
|
|
|
504
478
|
type GlobalScopeClock = {
|
|
505
479
|
cancelAnimationFrame?: typeof cancelAnimationFrame;
|
|
@@ -646,7 +620,7 @@ type Action = Thing & {
|
|
|
646
620
|
*
|
|
647
621
|
* @see https://schema.org/actionStatus
|
|
648
622
|
*/
|
|
649
|
-
actionStatus?: 'ActiveActionStatus' | '
|
|
623
|
+
actionStatus?: 'ActiveActionStatus' | 'CompletedActionStatus' | 'FailedActionStatus' | 'PotentialActionStatus' | undefined;
|
|
650
624
|
/**
|
|
651
625
|
* The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. Supersedes [carrier](https://schema.org/carrier).
|
|
652
626
|
*
|
|
@@ -698,13 +672,17 @@ type CreativeWork = Thing & {
|
|
|
698
672
|
*
|
|
699
673
|
* @see https://schema.org/author
|
|
700
674
|
*/
|
|
701
|
-
author?: string | undefined;
|
|
675
|
+
author?: Person | string | undefined;
|
|
702
676
|
/**
|
|
703
677
|
* A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
|
|
704
678
|
*
|
|
705
679
|
* @see https://schema.org/citation
|
|
706
680
|
*/
|
|
707
681
|
citation?: readonly CreativeWork[] | undefined;
|
|
682
|
+
/**
|
|
683
|
+
* The schema.org [isBasedOn](https://schema.org/isBasedOn) property provides a resource from which this work is derived or from which it is a modification or adaptation.
|
|
684
|
+
*/
|
|
685
|
+
isBasedOn?: CreativeWork | undefined;
|
|
708
686
|
/**
|
|
709
687
|
* Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
|
|
710
688
|
*
|
|
@@ -730,6 +708,12 @@ type CreativeWork = Thing & {
|
|
|
730
708
|
*/
|
|
731
709
|
usageInfo?: CreativeWork | undefined;
|
|
732
710
|
};
|
|
711
|
+
type Person = {
|
|
712
|
+
'@type': 'Person';
|
|
713
|
+
description?: string | undefined;
|
|
714
|
+
image?: string | undefined;
|
|
715
|
+
name?: string | undefined;
|
|
716
|
+
};
|
|
733
717
|
declare const parseCreativeWork: (data: unknown) => CreativeWork;
|
|
734
718
|
|
|
735
719
|
/**
|
|
@@ -782,7 +766,31 @@ type VoteAction = Action & {
|
|
|
782
766
|
};
|
|
783
767
|
declare const parseVoteAction: (data: unknown) => VoteAction;
|
|
784
768
|
|
|
785
|
-
|
|
769
|
+
/**
|
|
770
|
+
* Gets the livestreaming metadata of the activity, or `undefined` if the activity is not participating in a livestreaming session.
|
|
771
|
+
*
|
|
772
|
+
* - `sessionId` - ID of the livestreaming session
|
|
773
|
+
* - `sequenceNumber` - sequence number of the activity
|
|
774
|
+
* - `type`
|
|
775
|
+
* - `"contentless"` - ongoing but no content, should show indicator
|
|
776
|
+
* - `"interim activity"` - current response, could be partial-from-start, or complete response.
|
|
777
|
+
* More activities are expected. Future interim activities always replace past interim activities, enable erasing or backtracking response.
|
|
778
|
+
* - `"informative message"` - optional side-channel informative message describing the current response, e.g. "Searching your document library".
|
|
779
|
+
* Always replace past informative messages. May interleave with interim activities.
|
|
780
|
+
* - `"final activity"` - complete-and-final response, always replace past interim activities and remove all informative messages.
|
|
781
|
+
* This activity indicates end of the session, all future activities must be ignored.
|
|
782
|
+
* - `undefined` - not part of a livestream session or the activity is not valid
|
|
783
|
+
*
|
|
784
|
+
* @returns {object} Livestreaming metadata of the activity, or `undefined` if the activity is not participating in a livestreaming session.
|
|
785
|
+
*/
|
|
786
|
+
declare function getActivityLivestreamingMetadata(activity: WebChatActivity): Readonly<{
|
|
787
|
+
sessionId: string;
|
|
788
|
+
sequenceNumber: number;
|
|
789
|
+
type: 'contentless' | 'final activity' | 'informative message' | 'interim activity';
|
|
790
|
+
}> | undefined;
|
|
791
|
+
|
|
792
|
+
type EntityType = NonNullable<WebChatActivity['entities']>[number];
|
|
793
|
+
declare function getOrgSchemaMessage(graph: readonly EntityType[]): CreativeWork | undefined;
|
|
786
794
|
|
|
787
795
|
declare function isForbiddenPropertyName(propertyName: string): boolean;
|
|
788
796
|
|
|
@@ -793,7 +801,7 @@ declare function singleToArray<T>(singleOrArray: T | T[]): T[];
|
|
|
793
801
|
|
|
794
802
|
declare function warnOnce(message: string): () => void;
|
|
795
803
|
|
|
796
|
-
type DirectLineActivity = Exclude<any, [] | boolean |
|
|
804
|
+
type DirectLineActivity = Exclude<any, [] | boolean | ((...args: unknown[]) => unknown) | number | string>;
|
|
797
805
|
|
|
798
806
|
type DirectLineMediaCardEssence = {
|
|
799
807
|
aspect?: '4:3' | '16:9';
|
|
@@ -948,4 +956,4 @@ declare const buildInfo: {
|
|
|
948
956
|
version: string;
|
|
949
957
|
};
|
|
950
958
|
|
|
951
|
-
export { Constants, type DirectLineActivity, type DirectLineAnimationCard, type DirectLineAttachment, type DirectLineAudioCard, type DirectLineCardAction, type DirectLineHeroCard, type DirectLineJSBotConnection, type DirectLineOAuthCard, type DirectLineReceiptCard, type DirectLineSignInCard, type DirectLineSuggestedAction, type DirectLineThumbnailCard, type DirectLineVideoCard, type GlobalScopePonyfill, Observable, type OneOrMany, type Action as OrgSchemaAction, type Claim as OrgSchemaClaim, type CreativeWork as OrgSchemaCreativeWork, type DefinedTerm as OrgSchemaDefinedTerm, type Project as OrgSchemaProject, type Thing as OrgSchemaThing, type SendBoxAttachment, type WebChatActivity, buildInfo, clearSuggestedActions, connect, createStore, withDevTools as createStoreWithDevTools, withOptions as createStoreWithOptions, disconnect, dismissNotification, emitTypingIndicator, getOrgSchemaMessage, isForbiddenPropertyName, markActivity, moduleFormat, onErrorResumeNext, parseAction, parseClaim, parseCreativeWork, parseDefinedTerm, parseProject, parseThing, parseVoteAction, postActivity, sendEvent, sendFiles, sendMessage, sendMessageback as sendMessageBack, sendPostback as sendPostBack, setDictateInterims, setDictateState, setLanguage, setNotification, setSendBox, setSendBoxAttachments, setSendTimeout, setSendTypingIndicator, singleToArray, startDictate, startSpeakingActivity, stopDictate, stopSpeakingActivity, submitSendBox, version, warnOnce };
|
|
959
|
+
export { Constants, type DirectLineActivity, type DirectLineAnimationCard, type DirectLineAttachment, type DirectLineAudioCard, type DirectLineCardAction, type DirectLineHeroCard, type DirectLineJSBotConnection, type DirectLineOAuthCard, type DirectLineReceiptCard, type DirectLineSignInCard, type DirectLineSuggestedAction, type DirectLineThumbnailCard, type DirectLineVideoCard, type GlobalScopePonyfill, Observable, type OneOrMany, type Action as OrgSchemaAction, type Claim as OrgSchemaClaim, type CreativeWork as OrgSchemaCreativeWork, type DefinedTerm as OrgSchemaDefinedTerm, type Project as OrgSchemaProject, type Thing as OrgSchemaThing, type SendBoxAttachment, type WebChatActivity, buildInfo, clearSuggestedActions, connect, createStore, withDevTools as createStoreWithDevTools, withOptions as createStoreWithOptions, disconnect, dismissNotification, emitTypingIndicator, getActivityLivestreamingMetadata, getOrgSchemaMessage, isForbiddenPropertyName, markActivity, moduleFormat, onErrorResumeNext, parseAction, parseClaim, parseCreativeWork, parseDefinedTerm, parseProject, parseThing, parseVoteAction, postActivity, sendEvent, sendFiles, sendMessage, sendMessageback as sendMessageBack, sendPostback as sendPostBack, setDictateInterims, setDictateState, setLanguage, setNotification, setSendBox, setSendBoxAttachments, setSendTimeout, setSendTypingIndicator, singleToArray, startDictate, startSpeakingActivity, stopDictate, stopSpeakingActivity, submitSendBox, version, warnOnce };
|