botframework-webchat-core
Advanced tools
Comparing version 4.2.1-master.b34fa87 to 4.2.1-master.b95462b
@@ -7,5 +7,9 @@ "use strict"; | ||
exports.default = _default; | ||
exports.CONNECT_FULFILLED = exports.CONNECT_FULFILLING = exports.CONNECT_REJECTED = exports.CONNECT_PENDING = exports.CONNECT = void 0; | ||
exports.CONNECT_STILL_PENDING = exports.CONNECT_REJECTED = exports.CONNECT_PENDING = exports.CONNECT_FULFILLING = exports.CONNECT_FULFILLED = exports.CONNECT = void 0; | ||
var CONNECT = 'DIRECT_LINE/CONNECT'; | ||
exports.CONNECT = CONNECT; | ||
var CONNECT_FULFILLED = "".concat(CONNECT, "_FULFILLED"); | ||
exports.CONNECT_FULFILLED = CONNECT_FULFILLED; | ||
var CONNECT_FULFILLING = "".concat(CONNECT, "_FULFILLING"); | ||
exports.CONNECT_FULFILLING = CONNECT_FULFILLING; | ||
var CONNECT_PENDING = "".concat(CONNECT, "_PENDING"); | ||
@@ -15,10 +19,9 @@ exports.CONNECT_PENDING = CONNECT_PENDING; | ||
exports.CONNECT_REJECTED = CONNECT_REJECTED; | ||
var CONNECT_FULFILLING = "".concat(CONNECT, "_FULFILLING"); | ||
exports.CONNECT_FULFILLING = CONNECT_FULFILLING; | ||
var CONNECT_FULFILLED = "".concat(CONNECT, "_FULFILLED"); | ||
exports.CONNECT_FULFILLED = CONNECT_FULFILLED; | ||
var CONNECT_STILL_PENDING = "".concat(CONNECT, "_STILL_PENDING"); | ||
exports.CONNECT_STILL_PENDING = CONNECT_STILL_PENDING; | ||
function _default(_ref) { | ||
var directLine = _ref.directLine, | ||
userID = _ref.userID; | ||
userID = _ref.userID, | ||
username = _ref.username; | ||
return { | ||
@@ -28,6 +31,7 @@ type: CONNECT, | ||
directLine: directLine, | ||
userID: userID | ||
userID: userID, | ||
username: username | ||
} | ||
}; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyY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gQ09OTkVDVF9QRU5ESU5HLFxuICBDT05ORUNUX1JFSkVDVEVELFxuICBDT05ORUNUX1NUSUxMX1BFTkRJTkdcbn1cbiJdfQ== |
@@ -8,2 +8,3 @@ "use strict"; | ||
exports.SET_SEND_TYPING = void 0; | ||
// TODO: [P3] Take this deprecation code out when releasing on or after 2020 January 13 | ||
var SET_SEND_TYPING = 'WEB_CHAT/SET_SEND_TYPING'; | ||
@@ -13,2 +14,3 @@ exports.SET_SEND_TYPING = SET_SEND_TYPING; | ||
function _default(value) { | ||
// Deprecation notes added to reducer | ||
return { | ||
@@ -21,2 +23,2 @@ type: SET_SEND_TYPING, | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hY3Rpb25zL3NldFNlbmRUeXBpbmcuanMiXSwibmFtZXMiOlsiU0VUX1NFTkRfVFlQSU5HIiwidmFsdWUiLCJ0eXBlIiwicGF5bG9hZCIsInNlbmRUeXBpbmciXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSxJQUFNQSxlQUFlLEdBQUcsMEJBQXhCOzs7QUFFZSxrQkFBVUMsS0FBVixFQUFpQjtBQUM5QixTQUFPO0FBQ0xDLElBQUFBLElBQUksRUFBRUYsZUFERDtBQUVMRyxJQUFBQSxPQUFPLEVBQUU7QUFBRUMsTUFBQUEsVUFBVSxFQUFFLENBQUMsQ0FBQ0g7QUFBaEI7QUFGSixHQUFQO0FBSUQiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBTRVRfU0VORF9UWVBJTkcgPSAnV0VCX0NIQVQvU0VUX1NFTkRfVFlQSU5HJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gKHZhbHVlKSB7XG4gIHJldHVybiB7XG4gICAgdHlwZTogU0VUX1NFTkRfVFlQSU5HLFxuICAgIHBheWxvYWQ6IHsgc2VuZFR5cGluZzogISF2YWx1ZSB9XG4gIH07XG59XG5cbmV4cG9ydCB7IFNFVF9TRU5EX1RZUElORyB9XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hY3Rpb25zL3NldFNlbmRUeXBpbmcuanMiXSwibmFtZXMiOlsiU0VUX1NFTkRfVFlQSU5HIiwidmFsdWUiLCJ0eXBlIiwicGF5bG9hZCIsInNlbmRUeXBpbmciXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTtBQUNBLElBQU1BLGVBQWUsR0FBRywwQkFBeEI7OztBQUVlLGtCQUFVQyxLQUFWLEVBQWlCO0FBQzlCO0FBQ0EsU0FBTztBQUNMQyxJQUFBQSxJQUFJLEVBQUVGLGVBREQ7QUFFTEcsSUFBQUEsT0FBTyxFQUFFO0FBQUVDLE1BQUFBLFVBQVUsRUFBRSxDQUFDLENBQUNIO0FBQWhCO0FBRkosR0FBUDtBQUlEIiwic291cmNlc0NvbnRlbnQiOlsiLy8gVE9ETzogW1AzXSBUYWtlIHRoaXMgZGVwcmVjYXRpb24gY29kZSBvdXQgd2hlbiByZWxlYXNpbmcgb24gb3IgYWZ0ZXIgMjAyMCBKYW51YXJ5IDEzXG5jb25zdCBTRVRfU0VORF9UWVBJTkcgPSAnV0VCX0NIQVQvU0VUX1NFTkRfVFlQSU5HJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gKHZhbHVlKSB7XG4gIC8vIERlcHJlY2F0aW9uIG5vdGVzIGFkZGVkIHRvIHJlZHVjZXJcbiAgcmV0dXJuIHtcbiAgICB0eXBlOiBTRVRfU0VORF9UWVBJTkcsXG4gICAgcGF5bG9hZDogeyBzZW5kVHlwaW5nOiAhIXZhbHVlIH1cbiAgfTtcbn1cblxuZXhwb3J0IHsgU0VUX1NFTkRfVFlQSU5HIH1cbiJdfQ== |
@@ -106,2 +106,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "setSendTypingIndicator", { | ||
enumerable: true, | ||
get: function get() { | ||
return _setSendTypingIndicator.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "startDictate", { | ||
@@ -171,2 +177,4 @@ enumerable: true, | ||
var _setSendTypingIndicator = _interopRequireDefault(require("./actions/setSendTypingIndicator")); | ||
var _startDictate = _interopRequireDefault(require("./actions/startDictate")); | ||
@@ -191,4 +199,4 @@ | ||
exports.Constants = Constants; | ||
var version = "4.2.1-master.b34fa87"; | ||
var version = "4.2.1-master.b95462b"; | ||
exports.version = version; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJDb25zdGFudHMiLCJBY3Rpdml0eUNsaWVudFN0YXRlIiwiRGljdGF0ZVN0YXRlIiwidmVyc2lvbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFFQTs7QUFDQTs7QUFFQSxJQUFNQSxTQUFTLEdBQUc7QUFBRUMsRUFBQUEsbUJBQW1CLEVBQW5CQSxtQkFBRjtBQUF1QkMsRUFBQUEsWUFBWSxFQUFaQTtBQUF2QixDQUFsQjs7QUFDQSxJQUFNQyxPQUFPLHlC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RGljdGF0ZUludGVyaW1zLFxuICBzZXREaWN0YXRlU3RhdGUsXG4gIHNldExhbmd1YWdlLFxuICBzZXRTZW5kQm94LFxuICBzZXRTZW5kVGltZW91dCxcbiAgc2V0U2VuZFR5cGluZ0luZGljYXRvcixcbiAgc3RhcnREaWN0YXRlLFxuICBzdGFydFNwZWFraW5nQWN0aXZpdHksXG4gIHN0b3BEaWN0YXRlLFxuICBzdG9wU3BlYWtpbmdBY3Rpdml0eSxcbiAgc3VibWl0U2VuZEJveCxcbiAgdmVyc2lvbixcblxuICAvLyBUT0RPOiBbUDNdIFRha2UgdGhpcyBkZXByZWNhdGlvbiBjb2RlIG91dCB3aGVuIHJlbGVhc2luZyBvbiBvciBhZnRlciBKYW51YXJ5IDEzIDIwMjAgXG4gIHNldFNlbmRUeXBpbmdcbn1cbiJdfQ== |
declare const _default: import("redux").Reducer<{ | ||
activities: {}; | ||
connectivityStatus: {}; | ||
dictateInterims: {}; | ||
@@ -10,5 +11,6 @@ dictateState: {}; | ||
sendTimeout: {}; | ||
sendTypingIndicator: {}; | ||
suggestedActions: {}; | ||
sendTyping: {}; | ||
suggestedActions: {}; | ||
}, import("redux").AnyAction>; | ||
export default _default; |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _connectivityStatus = _interopRequireDefault(require("./reducers/connectivityStatus")); | ||
var _dictateInterims = _interopRequireDefault(require("./reducers/dictateInterims")); | ||
@@ -29,3 +31,3 @@ | ||
var _sendTyping = _interopRequireDefault(require("./reducers/sendTyping")); | ||
var _sendTypingIndicator = _interopRequireDefault(require("./reducers/sendTypingIndicator")); | ||
@@ -36,2 +38,3 @@ var _suggestedActions = _interopRequireDefault(require("./reducers/suggestedActions")); | ||
activities: _activities.default, | ||
connectivityStatus: _connectivityStatus.default, | ||
dictateInterims: _dictateInterims.default, | ||
@@ -44,7 +47,9 @@ dictateState: _dictateState.default, | ||
sendTimeout: _sendTimeout.default, | ||
sendTyping: _sendTyping.default, | ||
suggestedActions: _suggestedActions.default | ||
sendTypingIndicator: _sendTypingIndicator.default, | ||
suggestedActions: _suggestedActions.default, | ||
// TODO: [P3] Take this deprecation code out when releasing on or after January 13 2020 | ||
sendTyping: _sendTypingIndicator.default | ||
}); | ||
exports.default = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZWR1Y2VyLnRzIl0sIm5hbWVzIjpbImFjdGl2aXRpZXMiLCJkaWN0YXRlSW50ZXJpbXMiLCJkaWN0YXRlU3RhdGUiLCJsYW5ndWFnZSIsInJlYWR5U3RhdGUiLCJyZWZlcmVuY2VHcmFtbWFySUQiLCJzZW5kQm94VmFsdWUiLCJzZW5kVGltZW91dCIsInNlbmRUeXBpbmciLCJzdWdnZXN0ZWRBY3Rpb25zIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7QUFFQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7ZUFFZSw0QkFBZ0I7QUFDN0JBLEVBQUFBLFVBQVUsRUFBVkEsbUJBRDZCO0FBRTdCQyxFQUFBQSxlQUFlLEVBQWZBLHdCQUY2QjtBQUc3QkMsRUFBQUEsWUFBWSxFQUFaQSxxQkFINkI7QUFJN0JDLEVBQUFBLFFBQVEsRUFBUkEsaUJBSjZCO0FBSzdCQyxFQUFBQSxVQUFVLEVBQVZBLG1CQUw2QjtBQU03QkMsRUFBQUEsa0JBQWtCLEVBQWxCQSwyQkFONkI7QUFPN0JDLEVBQUFBLFlBQVksRUFBWkEscUJBUDZCO0FBUTdCQyxFQUFBQSxXQUFXLEVBQVhBLG9CQVI2QjtBQVM3QkMsRUFBQUEsVUFBVSxFQUFWQSxtQkFUNkI7QUFVN0JDLEVBQUFBLGdCQUFnQixFQUFoQkE7QUFWNkIsQ0FBaEIsQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGN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xcbiAgZGljdGF0ZVN0YXRlLFxuICBsYW5ndWFnZSxcbiAgcmVhZHlTdGF0ZSxcbiAgcmVmZXJlbmNlR3JhbW1hcklELFxuICBzZW5kQm94VmFsdWUsXG4gIHNlbmRUaW1lb3V0LFxuICBzZW5kVHlwaW5nSW5kaWNhdG9yLFxuICBzdWdnZXN0ZWRBY3Rpb25zLFxuXG4gIC8vIFRPRE86IFtQM10gVGFrZSB0aGlzIGRlcHJlY2F0aW9uIGNvZGUgb3V0IHdoZW4gcmVsZWFzaW5nIG9uIG9yIGFmdGVyIEphbnVhcnkgMTMgMjAyMFxuICBzZW5kVHlwaW5nOiBzZW5kVHlwaW5nSW5kaWNhdG9yXG59KVxuIl19 |
@@ -20,2 +20,4 @@ "use strict"; | ||
var _detectSlowConnectionSaga = _interopRequireDefault(require("./sagas/detectSlowConnectionSaga")); | ||
var _incomingActivitySaga = _interopRequireDefault(require("./sagas/incomingActivitySaga")); | ||
@@ -41,3 +43,3 @@ | ||
var _sendTypingOnSetSendBoxSaga = _interopRequireDefault(require("./sagas/sendTypingOnSetSendBoxSaga")); | ||
var _sendTypingIndicatorOnSetSendBoxSaga = _interopRequireDefault(require("./sagas/sendTypingIndicatorOnSetSendBoxSaga")); | ||
@@ -76,65 +78,69 @@ var _startDictateAfterSpeakActivitySaga = _interopRequireDefault(require("./sagas/startDictateAfterSpeakActivitySaga")); | ||
_context.next = 8; | ||
return (0, _effects.fork)(_incomingActivitySaga.default); | ||
return (0, _effects.fork)(_detectSlowConnectionSaga.default); | ||
case 8: | ||
_context.next = 10; | ||
return (0, _effects.fork)(_markActivityForSpeakOnIncomingActivityFromOthersSaga.default); | ||
return (0, _effects.fork)(_incomingActivitySaga.default); | ||
case 10: | ||
_context.next = 12; | ||
return (0, _effects.fork)(_markAllAsSpokenOnStopSpeakActivitySaga.default); | ||
return (0, _effects.fork)(_markActivityForSpeakOnIncomingActivityFromOthersSaga.default); | ||
case 12: | ||
_context.next = 14; | ||
return (0, _effects.fork)(_postActivitySaga.default); | ||
return (0, _effects.fork)(_markAllAsSpokenOnStopSpeakActivitySaga.default); | ||
case 14: | ||
_context.next = 16; | ||
return (0, _effects.fork)(_removeIncomingTypingAfterIntervalSaga.default); | ||
return (0, _effects.fork)(_postActivitySaga.default); | ||
case 16: | ||
_context.next = 18; | ||
return (0, _effects.fork)(_sendEventToPostActivitySaga.default); | ||
return (0, _effects.fork)(_removeIncomingTypingAfterIntervalSaga.default); | ||
case 18: | ||
_context.next = 20; | ||
return (0, _effects.fork)(_sendFilesToPostActivitySaga.default); | ||
return (0, _effects.fork)(_sendEventToPostActivitySaga.default); | ||
case 20: | ||
_context.next = 22; | ||
return (0, _effects.fork)(_sendMessageToPostActivitySaga.default); | ||
return (0, _effects.fork)(_sendFilesToPostActivitySaga.default); | ||
case 22: | ||
_context.next = 24; | ||
return (0, _effects.fork)(_sendMessageBackToPostActivitySaga.default); | ||
return (0, _effects.fork)(_sendMessageToPostActivitySaga.default); | ||
case 24: | ||
_context.next = 26; | ||
return (0, _effects.fork)(_sendPostBackToPostActivitySaga.default); | ||
return (0, _effects.fork)(_sendMessageBackToPostActivitySaga.default); | ||
case 26: | ||
_context.next = 28; | ||
return (0, _effects.fork)(_sendTypingOnSetSendBoxSaga.default); | ||
return (0, _effects.fork)(_sendPostBackToPostActivitySaga.default); | ||
case 28: | ||
_context.next = 30; | ||
return (0, _effects.fork)(_startDictateAfterSpeakActivitySaga.default); | ||
return (0, _effects.fork)(_sendTypingIndicatorOnSetSendBoxSaga.default); | ||
case 30: | ||
_context.next = 32; | ||
return (0, _effects.fork)(_startSpeakActivityOnPostActivitySaga.default); | ||
return (0, _effects.fork)(_startDictateAfterSpeakActivitySaga.default); | ||
case 32: | ||
_context.next = 34; | ||
return (0, _effects.fork)(_stopDictateOnCardActionSaga.default); | ||
return (0, _effects.fork)(_startSpeakActivityOnPostActivitySaga.default); | ||
case 34: | ||
_context.next = 36; | ||
return (0, _effects.fork)(_stopSpeakingActivityOnInputSaga.default); | ||
return (0, _effects.fork)(_stopDictateOnCardActionSaga.default); | ||
case 36: | ||
_context.next = 38; | ||
return (0, _effects.fork)(_stopSpeakingActivityOnInputSaga.default); | ||
case 38: | ||
_context.next = 40; | ||
return (0, _effects.fork)(_submitSendBoxSaga.default); | ||
case 38: | ||
case 40: | ||
case "end": | ||
@@ -146,2 +152,2 @@ return _context.stop(); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zYWdhcy5qcyJdLCJuYW1lcyI6WyJjbGVhclN1Z2dlc3RlZEFjdGlvbnNPblBvc3RBY3Rpdml0eVNhZ2EiLCJjb25uZWN0aW9uU3RhdHVzVXBkYXRlU2FnYSIsImNvbm5lY3RTYWdhIiwiaW5jb21pbmdBY3Rpdml0eVNhZ2EiLCJtYXJrQWN0aXZpdHlGb3JTcGVha09uSW5jb21pbmdBY3Rpdml0eUZyb21PdGhlcnNTYWdhIiwibWFya0FsbEFzU3Bva2VuT25TdG9wU3BlYWtBY3Rpdml0eVNhZ2EiLCJwb3N0QWN0aXZpdHlTYWdhIiwicmVtb3ZlSW5jb21pbmdUeXBpbmdBZnRlckludGVydmFsU2FnYSIsInNlbmRFdmVudFRvUG9zdEFjdGl2aXR5U2FnYSIsInNlbmRGaWxlc1RvUG9zdEFjdGl2aXR5U2FnYSIsInNlbmRNZXNzYWdlVG9Qb3N0QWN0aXZpdHlTYWdhIiwic2VuZE1lc3NhZ2VCYWNrVG9Qb3N0QWN0aXZpdHlTYWdhIiwic2VuZFBvc3RCYWNrVG9Qb3N0QWN0aXZpdHlTYWdhIiwic2VuZFR5cGluZ09uU2V0U2VuZEJveFNhZ2EiLCJzdGFydERpY3RhdGVBZnRlclNwZWFrQWN0aXZpdHlTYWdhIiwic3RhcnRTcGVha0FjdGl2aXR5T25Qb3N0QWN0aXZpdHlTYWdhIiwic3RvcERpY3RhdGVPbkNhcmRBY3Rpb25TYWdhIiwic3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9yayhzdGFydERpY3RhdGVBZnRlclNwZWFrQWN0aXZpdHlTYWdhKTtcbiAgeWllbGQgZm9yayhzdGFydFNwZWFrQWN0aXZpdHlPblBvc3RBY3Rpdml0eVNhZ2EpO1xuICB5aWVsZCBmb3JrKHN0b3BEaWN0YXRlT25DYXJkQWN0aW9uU2FnYSk7XG4gIHlpZWxkIGZvcmsoc3RvcFNwZWFraW5nQWN0aXZpdHlPbklucHV0U2FnYSk7XG4gIHlpZWxkIGZvcmsoc3VibWl0U2VuZEJveFNhZ2EpO1xufVxuIl19 |
@@ -45,3 +45,4 @@ "use strict"; | ||
function observeConnectionStatus(directLine) { | ||
function observeConnectionStatus(_ref) { | ||
var directLine; | ||
return _regenerator.default.wrap(function observeConnectionStatus$(_context3) { | ||
@@ -51,3 +52,4 @@ while (1) { | ||
case 0: | ||
_context3.next = 2; | ||
directLine = _ref.directLine; | ||
_context3.next = 3; | ||
return (0, _observeEach.default)(directLine.connectionStatus$, | ||
@@ -75,3 +77,3 @@ /*#__PURE__*/ | ||
case 2: | ||
case 3: | ||
case "end": | ||
@@ -83,2 +85,2 @@ return _context3.stop(); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zYWdhcy9jb25uZWN0aW9uU3RhdHVzVXBkYXRlU2FnYS5qcyJdLCJuYW1lcyI6WyJvYnNlcnZlQ29ubmVjdGlvblN0YXR1cyIsImRpcmVjdExpbmUiLCJjb25uZWN0aW9uU3RhdHVzJCIsImNvbm5lY3Rpb25TdGF0dXMiLCJyZWZlcmVuY2VHcmFtbWFySWQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBSUE7O0FBQ0E7O0FBRUE7O0FBQ0E7Ozs7Ozs7MEJBTVVBLHVCOztBQUpLO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNiLGlCQUFNLDZCQUFlQSx1QkFBZ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25uZWN0aW9uU3RhdHVzVXBkYXRlKGNvbm5lY3Rpb25TdGF0dXMpKTtcbiAgICB5aWVsZCBwdXQoc2V0UmVmZXJlbmNlR3JhbW1hcklEKGRpcmVjdExpbmUucmVmZXJlbmNlR3JhbW1hcklkKSk7XG4gIH0pO1xufVxuIl19 |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -18,8 +20,8 @@ | ||
var _callUntil = _interopRequireDefault(require("./effects/callUntil")); | ||
var _updateConnectionStatus = _interopRequireWildcard(require("../actions/updateConnectionStatus")); | ||
var _forever = _interopRequireDefault(require("./effects/forever")); | ||
var _createPromiseQueue = _interopRequireDefault(require("../createPromiseQueue")); | ||
var _botframeworkDirectlinejs = require("botframework-directlinejs"); | ||
var _connect = require("../actions/connect"); | ||
@@ -31,3 +33,3 @@ | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(_callee), | ||
_regenerator.default.mark(observeAndPutConnectionStatusUpdate), | ||
_marked2 = | ||
@@ -38,11 +40,10 @@ /*#__PURE__*/ | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(disconnectSaga); | ||
_regenerator.default.mark(_callee); | ||
// const UNINITIALIZED = 0; | ||
// const CONNECTING = 1; | ||
var ONLINE = 2; // const EXPIRED_TOKEN = 3; | ||
// const FAILED_TO_CONNECT = 4; | ||
var CONNECTING = _botframeworkDirectlinejs.ConnectionStatus.Connecting, | ||
ONLINE = _botframeworkDirectlinejs.ConnectionStatus.Online, | ||
EXPIRED_TOKEN = _botframeworkDirectlinejs.ConnectionStatus.ExpiredToken, | ||
FAILED_TO_CONNECT = _botframeworkDirectlinejs.ConnectionStatus.FailedToConnect, | ||
ENDED = _botframeworkDirectlinejs.ConnectionStatus.Ended; | ||
var ENDED = 5; | ||
function randomUserID() { | ||
@@ -52,56 +53,33 @@ return "r_".concat((0, _mathRandom.default)().toString(36).substr(2, 10)); | ||
function _callee() { | ||
var _ref, _ref$payload, directLine, userID, token, _ref2, userIDFromToken, connectTask; | ||
return _regenerator.default.wrap(function _callee$(_context) { | ||
function observeAndPutConnectionStatusUpdate(directLine) { | ||
var connectionStatusQueue, connectionStatusSubscription, connectionStatus; | ||
return _regenerator.default.wrap(function observeAndPutConnectionStatusUpdate$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
_context.next = 2; | ||
return (0, _effects.take)(_connect.CONNECT); | ||
connectionStatusQueue = (0, _createPromiseQueue.default)(); | ||
connectionStatusSubscription = directLine.connectionStatus$.subscribe({ | ||
next: connectionStatusQueue.push | ||
}); | ||
_context.prev = 2; | ||
case 2: | ||
_ref = _context.sent; | ||
_ref$payload = _ref.payload; | ||
directLine = _ref$payload.directLine; | ||
userID = _ref$payload.userID; | ||
token = directLine.token; | ||
_ref2 = (0, _jsonwebtoken.decode)(token) || {}, userIDFromToken = _ref2.user; | ||
case 3: | ||
_context.next = 5; | ||
return (0, _effects.call)(connectionStatusQueue.shift); | ||
if (userIDFromToken) { | ||
if (userID && userID !== userIDFromToken) { | ||
console.warn('Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token.'); | ||
} | ||
case 5: | ||
connectionStatus = _context.sent; | ||
_context.next = 8; | ||
return (0, _effects.put)((0, _updateConnectionStatus.default)(connectionStatus)); | ||
userID = userIDFromToken; | ||
} else if (userID) { | ||
if (typeof userID !== 'string') { | ||
console.warn('Web Chat: user ID must be a string.'); | ||
userID = randomUserID(); | ||
} else if (/^dl_/.test(userID)) { | ||
console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'); | ||
userID = randomUserID(); | ||
} | ||
} else { | ||
// Only specify "default-user" if not found from token and not passed in | ||
userID = randomUserID(); | ||
} | ||
case 8: | ||
_context.next = 3; | ||
break; | ||
_context.next = 11; | ||
return (0, _effects.fork)(connectSaga, directLine, userID); | ||
case 10: | ||
_context.prev = 10; | ||
connectionStatusSubscription.unsubscribe(); | ||
return _context.finish(10); | ||
case 11: | ||
connectTask = _context.sent; | ||
_context.next = 14; | ||
return (0, _effects.take)(_disconnect.DISCONNECT); | ||
case 14: | ||
_context.next = 16; | ||
return (0, _effects.call)(disconnectSaga, connectTask, directLine); | ||
case 16: | ||
_context.next = 0; | ||
break; | ||
case 18: | ||
case 13: | ||
case "end": | ||
@@ -111,7 +89,45 @@ return _context.stop(); | ||
} | ||
}, _marked, this); | ||
}, _marked, this, [[2,, 10, 13]]); | ||
} | ||
function connectSaga(directLine, userID) { | ||
var meta, connectionStatusQueue, connectionStatusSubscription, activitySubscription; | ||
function negativeUpdateConnectionStatusAction(_ref) { | ||
var payload = _ref.payload, | ||
type = _ref.type; | ||
if (type === _updateConnectionStatus.UPDATE_CONNECTION_STATUS) { | ||
var connectionStatus = payload.connectionStatus; | ||
return connectionStatus !== CONNECTING && connectionStatus !== ONLINE; | ||
} | ||
} | ||
function rectifyUserID(directLine, userIDFromAction) { | ||
var token = directLine.token; | ||
var _ref2 = (0, _jsonwebtoken.decode)(token) || {}, | ||
userIDFromToken = _ref2.user; | ||
if (userIDFromToken) { | ||
if (userIDFromAction && userIDFromAction !== userIDFromToken) { | ||
console.warn('Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token.'); | ||
} | ||
return userIDFromToken; | ||
} else if (userIDFromAction) { | ||
if (typeof userIDFromAction !== 'string') { | ||
console.warn('Web Chat: user ID must be a string.'); | ||
return randomUserID(); | ||
} else if (/^dl_/.test(userIDFromAction)) { | ||
console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'); | ||
return randomUserID(); | ||
} | ||
} else { | ||
return randomUserID(); | ||
} | ||
return userIDFromAction; | ||
} | ||
function connectSaga(directLine) { | ||
var activitySubscription, _ref3, connectionStatus; | ||
return _regenerator.default.wrap(function connectSaga$(_context2) { | ||
@@ -121,17 +137,3 @@ while (1) { | ||
case 0: | ||
meta = { | ||
userID: userID | ||
}; | ||
_context2.next = 3; | ||
return (0, _effects.put)({ | ||
type: _connect.CONNECT_PENDING, | ||
meta: meta | ||
}); | ||
case 3: | ||
connectionStatusQueue = (0, _createPromiseQueue.default)(); | ||
connectionStatusSubscription = directLine.connectionStatus$.subscribe({ | ||
next: connectionStatusQueue.push | ||
}); // DirectLineJS start the connection only after the first subscriber for activity$, but not connectionStatus$ | ||
// DirectLineJS start the connection only after the first subscriber for activity$, but not connectionStatus$ | ||
activitySubscription = directLine.activity$.subscribe({ | ||
@@ -142,81 +144,52 @@ next: function next() { | ||
}); | ||
_context2.prev = 6; | ||
_context2.prev = 7; | ||
_context2.next = 10; | ||
return (0, _callUntil.default)(connectionStatusQueue.shift, [], function (connectionStatus) { | ||
return connectionStatus === ONLINE; | ||
_context2.prev = 1; | ||
case 2: | ||
_context2.next = 4; | ||
return (0, _effects.take)(_updateConnectionStatus.UPDATE_CONNECTION_STATUS); | ||
case 4: | ||
_ref3 = _context2.sent; | ||
connectionStatus = _ref3.payload.connectionStatus; | ||
if (!(connectionStatus === ONLINE)) { | ||
_context2.next = 10; | ||
break; | ||
} | ||
return _context2.abrupt("return", function () { | ||
activitySubscription.unsubscribe(); | ||
directLine.end(); | ||
}); | ||
case 10: | ||
_context2.next = 12; | ||
return (0, _effects.put)({ | ||
type: _connect.CONNECT_FULFILLING, | ||
meta: meta, | ||
payload: { | ||
directLine: directLine | ||
} | ||
}); | ||
if (!(connectionStatus === ENDED || connectionStatus === EXPIRED_TOKEN || connectionStatus === FAILED_TO_CONNECT)) { | ||
_context2.next = 12; | ||
break; | ||
} | ||
throw new Error('Failed to connect'); | ||
case 12: | ||
_context2.next = 14; | ||
return (0, _effects.put)({ | ||
type: _connect.CONNECT_FULFILLED, | ||
meta: meta, | ||
payload: { | ||
directLine: directLine | ||
} | ||
}); | ||
_context2.next = 2; | ||
break; | ||
case 14: | ||
_context2.next = 20; | ||
break; | ||
case 16: | ||
_context2.prev = 16; | ||
_context2.t0 = _context2["catch"](7); | ||
_context2.next = 20; | ||
return (0, _effects.put)({ | ||
type: _connect.CONNECT_REJECTED, | ||
error: true, | ||
meta: meta, | ||
payload: _context2.t0 | ||
}); | ||
case 20: | ||
_context2.prev = 20; | ||
_context2.next = 23; | ||
_context2.prev = 14; | ||
_context2.next = 17; | ||
return (0, _effects.cancelled)(); | ||
case 23: | ||
case 17: | ||
if (!_context2.sent) { | ||
_context2.next = 26; | ||
_context2.next = 20; | ||
break; | ||
} | ||
_context2.next = 26; | ||
return (0, _effects.put)({ | ||
type: _connect.CONNECT_REJECTED, | ||
error: true, | ||
meta: meta, | ||
payload: new Error('cancelled') | ||
}); | ||
activitySubscription.unsubscribe(); | ||
throw new Error('Cancelled'); | ||
case 26: | ||
return _context2.finish(20); | ||
case 20: | ||
return _context2.finish(14); | ||
case 27: | ||
_context2.next = 29; | ||
return (0, _forever.default)(); | ||
case 29: | ||
_context2.prev = 29; | ||
// TODO: [P2] DirectLineJS should kill the connection when we unsubscribe | ||
// But currently in v3, DirectLineJS does not have this functionality | ||
// Thus, we need to call "end()" explicitly | ||
directLine.end(); | ||
activitySubscription.unsubscribe(); | ||
connectionStatusSubscription.unsubscribe(); | ||
return _context2.finish(29); | ||
case 34: | ||
case 21: | ||
case "end": | ||
@@ -226,8 +199,9 @@ return _context2.stop(); | ||
} | ||
}, _marked2, this, [[6,, 29, 34], [7, 16, 20, 27]]); | ||
}, _marked2, this, [[1,, 14, 21]]); | ||
} | ||
function disconnectSaga(connectTask, directLine) { | ||
var connectionStatusQueue, unsubscribe; | ||
return _regenerator.default.wrap(function disconnectSaga$(_context3) { | ||
function _callee() { | ||
var _ref4, _ref4$payload, directLine, userIDFromAction, username, updateConnectionStatusTask, meta, endDirectLine, terminateAction; | ||
return _regenerator.default.wrap(function _callee$(_context3) { | ||
while (1) { | ||
@@ -237,66 +211,118 @@ switch (_context3.prev = _context3.next) { | ||
_context3.next = 2; | ||
return (0, _effects.put)({ | ||
type: _disconnect.DISCONNECT_PENDING | ||
}); | ||
return (0, _effects.take)(_connect.CONNECT); | ||
case 2: | ||
connectionStatusQueue = (0, _createPromiseQueue.default)(); | ||
unsubscribe = directLine.connectionStatus$.subscribe({ | ||
next: connectionStatusQueue.push | ||
}); // DirectLineJS should cancel underlying REST/WS when we cancel | ||
// the connect task, which subsequently unsubscribe connectionStatus$ | ||
_context3.next = 6; | ||
return (0, _effects.cancel)(connectTask); | ||
case 6: | ||
_context3.prev = 6; | ||
_ref4 = _context3.sent; | ||
_ref4$payload = _ref4.payload; | ||
directLine = _ref4$payload.directLine; | ||
userIDFromAction = _ref4$payload.userID; | ||
username = _ref4$payload.username; | ||
_context3.next = 9; | ||
return (0, _callUntil.default)(connectionStatusQueue.shift, [], function (connectionStatus) { | ||
return connectionStatus === ENDED; | ||
}); | ||
return (0, _effects.fork)(observeAndPutConnectionStatusUpdate, directLine); | ||
case 9: | ||
_context3.next = 11; | ||
updateConnectionStatusTask = _context3.sent; | ||
_context3.prev = 10; | ||
meta = { | ||
userID: rectifyUserID(directLine, userIDFromAction), | ||
username: username | ||
}; | ||
endDirectLine = void 0; | ||
_context3.next = 15; | ||
return (0, _effects.put)({ | ||
type: _disconnect.DISCONNECT_FULFILLED | ||
type: _connect.CONNECT_PENDING, | ||
meta: meta | ||
}); | ||
case 11: | ||
_context3.next = 17; | ||
case 15: | ||
_context3.prev = 15; | ||
_context3.next = 18; | ||
return (0, _effects.call)(connectSaga, directLine); | ||
case 18: | ||
endDirectLine = _context3.sent; | ||
_context3.next = 26; | ||
break; | ||
case 13: | ||
_context3.prev = 13; | ||
_context3.t0 = _context3["catch"](6); | ||
_context3.next = 17; | ||
case 21: | ||
_context3.prev = 21; | ||
_context3.t0 = _context3["catch"](15); | ||
_context3.next = 25; | ||
return (0, _effects.put)({ | ||
type: _disconnect.DISCONNECT_REJECTED, | ||
type: _connect.CONNECT_REJECTED, | ||
error: true, | ||
meta: meta, | ||
payload: _context3.t0 | ||
}); | ||
case 17: | ||
_context3.prev = 17; | ||
_context3.next = 20; | ||
return (0, _effects.cancelled)(); | ||
case 25: | ||
return _context3.abrupt("continue", 49); | ||
case 20: | ||
if (!_context3.sent) { | ||
_context3.next = 23; | ||
case 26: | ||
_context3.prev = 26; | ||
_context3.next = 29; | ||
return (0, _effects.put)({ | ||
type: _connect.CONNECT_FULFILLING, | ||
meta: meta, | ||
payload: { | ||
directLine: directLine | ||
} | ||
}); | ||
case 29: | ||
_context3.next = 31; | ||
return (0, _effects.put)({ | ||
type: _connect.CONNECT_FULFILLED, | ||
meta: meta, | ||
payload: { | ||
directLine: directLine | ||
} | ||
}); | ||
case 31: | ||
_context3.next = 33; | ||
return (0, _effects.take)([_disconnect.DISCONNECT, negativeUpdateConnectionStatusAction]); | ||
case 33: | ||
terminateAction = _context3.sent; | ||
_context3.next = 36; | ||
return (0, _effects.put)({ | ||
type: _disconnect.DISCONNECT_PENDING | ||
}); | ||
case 36: | ||
endDirectLine(); | ||
if (!(terminateAction.type === _disconnect.DISCONNECT)) { | ||
_context3.next = 40; | ||
break; | ||
} | ||
_context3.next = 23; | ||
_context3.next = 40; | ||
return (0, _effects.take)(negativeUpdateConnectionStatusAction); | ||
case 40: | ||
_context3.prev = 40; | ||
_context3.next = 43; | ||
return (0, _effects.put)({ | ||
type: _disconnect.DISCONNECT_REJECTED, | ||
error: true, | ||
payload: new Error('cancelled') | ||
type: _disconnect.DISCONNECT_FULFILLED | ||
}); | ||
case 23: | ||
unsubscribe(); | ||
return _context3.finish(17); | ||
case 43: | ||
endDirectLine(); | ||
return _context3.finish(40); | ||
case 25: | ||
case 45: | ||
_context3.prev = 45; | ||
_context3.next = 48; | ||
return (0, _effects.cancel)(updateConnectionStatusTask); | ||
case 48: | ||
return _context3.finish(45); | ||
case 49: | ||
_context3.next = 0; | ||
break; | ||
case 51: | ||
case "end": | ||
@@ -306,4 +332,4 @@ return _context3.stop(); | ||
} | ||
}, _marked3, this, [[6, 13, 17, 25]]); | ||
}, _marked3, this, [[10,, 45, 49], [15,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G9iamVjdCBldmVuIGRpc2Nvbm5lY3QgZmFpbGVkLlxuICAgICAgICAvLyBXZSB3aWxsIHN0aWxsIHVuc3Vic2NyaWJlIHRvIGluY29taW5nIGFjdGl2aXRpZXMgYW5kIGNvbnNpZGVyIERpcmVjdCBMaW5lIG9iamVjdCBhYmFuZG9uZWQuXG4gICAgICAgIHlpZWxkIHB1dCh7IHR5cGU6IERJU0NPTk5FQ1RfRlVMRklMTEVEIH0pO1xuXG4gICAgICAgIGVuZERpcmVjdExpbmUoKTtcbiAgICAgIH1cbiAgICB9IGZpbmFsbHkge1xuICAgICAgeWllbGQgY2FuY2VsKHVwZGF0ZUNvbm5lY3Rpb25TdGF0dXNUYXNrKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== |
@@ -22,3 +22,3 @@ "use strict"; | ||
_regenerator.default.mark(function _callee() { | ||
var _ref, userID, directLine, task; | ||
var _ref, _ref$meta, userID, username, directLine, task; | ||
@@ -34,21 +34,27 @@ return _regenerator.default.wrap(function _callee$(_context) { | ||
_ref = _context.sent; | ||
userID = _ref.meta.userID; | ||
_ref$meta = _ref.meta; | ||
userID = _ref$meta.userID; | ||
username = _ref$meta.username; | ||
directLine = _ref.payload.directLine; | ||
_context.next = 7; | ||
return (0, _effects.fork)(fn, directLine, userID); | ||
_context.next = 9; | ||
return (0, _effects.fork)(fn, { | ||
directLine: directLine, | ||
userID: userID, | ||
username: username | ||
}); | ||
case 7: | ||
case 9: | ||
task = _context.sent; | ||
_context.next = 10; | ||
return (0, _effects.take)(_disconnect.DISCONNECT_FULFILLED); | ||
_context.next = 12; | ||
return (0, _effects.take)(_disconnect.DISCONNECT_PENDING); | ||
case 10: | ||
_context.next = 12; | ||
case 12: | ||
_context.next = 14; | ||
return (0, _effects.cancel)(task); | ||
case 12: | ||
case 14: | ||
_context.next = 0; | ||
break; | ||
case 14: | ||
case 16: | ||
case "end": | ||
@@ -61,2 +67,2 @@ return _context.stop(); | ||
} | ||
//# sourceMappingURL=data:application/json;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1xuICAgICAgY29uc3QgdGFzayA9IHlpZWxkIGZvcmsoZm4sIHsgZGlyZWN0TGluZSwgdXNlcklELCB1c2VybmFtZSB9KTtcblxuICAgICAgLy8gV2hlbiB3ZSByZWNlaXZlIERJU0NPTk5FQ1RfUEVORElORywgdGhlIERpcmVjdCBMaW5lIGNvbm5lY3Rpb24gaXMgdGVhcmluZyBkb3duIGFuZCBzaG91bGQgbm90IGJlIHVzZWQuXG4gICAgICB5aWVsZCB0YWtlKERJU0NPTk5FQ1RfUEVORElORyk7XG4gICAgICB5aWVsZCBjYW5jZWwodGFzayk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ== |
@@ -51,3 +51,4 @@ "use strict"; | ||
function observeActivity(directLine, userID) { | ||
function observeActivity(_ref) { | ||
var directLine, userID; | ||
return _regenerator.default.wrap(function observeActivity$(_context3) { | ||
@@ -57,7 +58,8 @@ while (1) { | ||
case 0: | ||
_context3.next = 2; | ||
directLine = _ref.directLine, userID = _ref.userID; | ||
_context3.next = 3; | ||
return (0, _observeEach.default)(directLine.activity$, | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(function _callee2(activity) { | ||
var messageActivities, lastMessageActivity, _lastMessageActivity$, actions; | ||
var messageActivities, lastMessageActivity, _lastMessageActivity$, actions, to; | ||
@@ -87,5 +89,7 @@ return _regenerator.default.wrap(function _callee2$(_context2) { | ||
_lastMessageActivity$ = _lastMessageActivity$ === void 0 ? {} : _lastMessageActivity$; | ||
actions = _lastMessageActivity$.actions; | ||
actions = _lastMessageActivity$.actions, to = _lastMessageActivity$.to; // If suggested actions is not destined to anyone, or is destined to the user, show it. | ||
// In other words, if suggested actions is destined to someone else, don't show it. | ||
_context2.next = 13; | ||
return (0, _effects.put)((0, _setSuggestedActions.default)(actions)); | ||
return (0, _effects.put)((0, _setSuggestedActions.default)(to && to.length && !to.includes(userID) ? null : actions)); | ||
@@ -100,3 +104,3 @@ case 13: | ||
case 2: | ||
case 3: | ||
case "end": | ||
@@ -136,2 +140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oZWNrIGFuZCBsb2dpYyBsYXRlci5cblxuICAvLyBQYXRjaCBhY3Rpdml0eS5mcm9tLnJvbGUgdG8gbWFrZSBzdXJlIGl0cyBlaXRoZXIgXCJib3RcIiwgXCJ1c2VyXCIsIG9yIFwiY2hhbm5lbFwiXG4gIGlmICghYWN0aXZpdHkuZnJvbSkge1xuICAgIGFjdGl2aXR5ID0gdXBkYXRlSW4oYWN0aXZpdHksIFsnZnJvbScsICdyb2xlJ10sICgpID0+ICdjaGFubmVsJyk7XG4gIH0gZWxzZSBpZiAoIWFjdGl2aXR5LmZyb20ucm9sZSkge1xuICAgIGlmIChhY3Rpdml0eS5mcm9tLmlkID09PSB1c2VySUQpIHtcbiAgICAgIGFjdGl2aXR5ID0gdXBkYXRlSW4oYWN0aXZpdHksIFsnZnJvbScsICdyb2xlJ10sICgpID0+ICd1c2VyJyk7XG4gICAgfSBlbHNlIGlmIChhY3Rpdml0eS5mcm9tLmlkKSB7XG4gICAgICBhY3Rpdml0eSA9IHVwZGF0ZUluKGFjdGl2aXR5LCBbJ2Zyb20nLCAncm9sZSddLCAoKSA9PiAnYm90Jyk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGFjdGl2aXR5ID0gdXBkYXRlSW4oYWN0aXZpdHksIFsnZnJvbScsICdyb2xlJ10sICgpID0+ICdjaGFubmVsJyk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGFjdGl2aXR5O1xufVxuIl19 |
@@ -42,3 +42,4 @@ "use strict"; | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(function _callee(_, userID) { | ||
_regenerator.default.mark(function _callee(_ref) { | ||
var userID; | ||
return _regenerator.default.wrap(function _callee$(_context) { | ||
@@ -48,6 +49,7 @@ while (1) { | ||
case 0: | ||
_context.next = 2; | ||
userID = _ref.userID; | ||
_context.next = 3; | ||
return (0, _whileSpeakIncomingActivity.default)(markActivityForSpeakOnIncomingActivityFromOthers.bind(null, userID)); | ||
case 2: | ||
case 3: | ||
case "end": | ||
@@ -74,5 +76,5 @@ return _context.stop(); | ||
_context3.next = 2; | ||
return (0, _effects.takeEvery)(function (_ref) { | ||
var payload = _ref.payload, | ||
type = _ref.type; | ||
return (0, _effects.takeEvery)(function (_ref2) { | ||
var payload = _ref2.payload, | ||
type = _ref2.type; | ||
return type === _incomingActivity.INCOMING_ACTIVITY && (0, _speakableActivity.default)(payload.activity) && payload.activity.from.id !== userID; | ||
@@ -89,3 +91,3 @@ }, markActivityForSpeak); | ||
function markActivityForSpeak(_ref2) { | ||
function markActivityForSpeak(_ref3) { | ||
var activity; | ||
@@ -96,3 +98,3 @@ return _regenerator.default.wrap(function markActivityForSpeak$(_context4) { | ||
case 0: | ||
activity = _ref2.payload.activity; | ||
activity = _ref3.payload.activity; | ||
_context4.next = 3; | ||
@@ -108,2 +110,2 @@ return (0, _effects.put)((0, _markActivity.default)(activity, 'speak', true)); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zYWdhcy9tYXJrQWN0aXZpdHlGb3JTcGVha09uSW5jb21pbmdBY3Rpdml0eUZyb21PdGhlcnNTYWdhLmpzIl0sIm5hbWVzIjpbIm1hcmtBY3Rpdml0eUZvclNwZWFrT25JbmNvbWluZ0FjdGl2aXR5RnJvbU90aGVycyIsIm1hcmtBY3Rpdml0eUZvclNwZWFrIiwiXyIsInVzZXJJRCIsImJpbmQiLCJwYXlsb2FkIiwidHlwZSIsIklOQ09NSU5HX0FDVElWSVRZIiwiYWN0aXZpdHkiLCJmcm9tIiwiaWQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBS0E7O0FBRUE7O0FBQ0E7O0FBRUE7O0FBQ0E7Ozs7Ozs7MEJBUVVBLGdEOzs7MEJBV0FDLG9COztBQWpCSztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDYixpQkFBTTtBQUFBO0FBQUEsb0NBQWUs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ltcG9ydCB7IElOQ09NSU5HX0FDVElWSVRZIH0gZnJvbSAnLi4vYWN0aW9ucy9pbmNvbWluZ0FjdGl2aXR5JztcbmltcG9ydCBtYXJrQWN0aXZpdHkgZnJvbSAnLi4vYWN0aW9ucy9tYXJrQWN0aXZpdHknO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiogKCkge1xuICB5aWVsZCB3aGlsZUNvbm5lY3RlZChmdW5jdGlvbiogKHsgdXNlcklEIH0pIHtcbiAgICB5aWVsZCB3aGlsZVNwZWFrSW5jb21pbmdBY3Rpdml0eShtYXJrQWN0aXZpdHlGb3JTcGVha09uSW5jb21pbmdBY3Rpdml0eUZyb21PdGhlcnMuYmluZChudWxsLCB1c2VySUQpKTtcbiAgfSk7XG59XG5cbmZ1bmN0aW9uKiBtYXJrQWN0aXZpdHlGb3JTcGVha09uSW5jb21pbmdBY3Rpdml0eUZyb21PdGhlcnModXNlcklEKSB7XG4gIHlpZWxkIHRha2VFdmVyeShcbiAgICAoeyBwYXlsb2FkLCB0eXBlIH0pID0+IChcbiAgICAgIHR5cGUgPT09IElOQ09NSU5HX0FDVElWSVRZXG4gICAgICAmJiBzcGVha2FibGVBY3Rpdml0eShwYXlsb2FkLmFjdGl2aXR5KVxuICAgICAgJiYgcGF5bG9hZC5hY3Rpdml0eS5mcm9tLmlkICE9PSB1c2VySURcbiAgICApLFxuICAgIG1hcmtBY3Rpdml0eUZvclNwZWFrXG4gICk7XG59XG5cbmZ1bmN0aW9uKiBtYXJrQWN0aXZpdHlGb3JTcGVhayh7IHBheWxvYWQ6IHsgYWN0aXZpdHkgfSB9KSB7XG4gIHlpZWxkIHB1dChtYXJrQWN0aXZpdHkoYWN0aXZpdHksICdzcGVhaycsIHRydWUpKTtcbn1cbiJdfQ== |
@@ -53,4 +53,4 @@ "use strict"; | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(function _callee2(directLine, userID) { | ||
var numActivitiesPosted; | ||
_regenerator.default.mark(function _callee2(_ref) { | ||
var directLine, userID, username, numActivitiesPosted; | ||
return _regenerator.default.wrap(function _callee2$(_context2) { | ||
@@ -60,4 +60,5 @@ while (1) { | ||
case 0: | ||
directLine = _ref.directLine, userID = _ref.userID, username = _ref.username; | ||
numActivitiesPosted = 0; | ||
_context2.next = 3; | ||
_context2.next = 4; | ||
return (0, _effects.takeEvery)(_postActivity.POST_ACTIVITY, | ||
@@ -70,3 +71,3 @@ /*#__PURE__*/ | ||
case 0: | ||
return _context.delegateYield(postActivity(directLine, userID, numActivitiesPosted++, action), "t0", 1); | ||
return _context.delegateYield(postActivity(directLine, userID, username, numActivitiesPosted++, action), "t0", 1); | ||
@@ -81,3 +82,3 @@ case 1: | ||
case 3: | ||
case 4: | ||
case "end": | ||
@@ -98,4 +99,4 @@ return _context2.stop(); | ||
function postActivity(directLine, userID, numActivitiesPosted, _ref) { | ||
var method, activity, locale, _activity, attachments, _activity$channelData, _activity$channelData2, clientActivityID, meta, echoBackCall, sendTimeout, _ref4, echoBack; | ||
function postActivity(directLine, userID, username, numActivitiesPosted, _ref2) { | ||
var method, activity, locale, _activity, attachments, _activity$channelData, _activity$channelData2, clientActivityID, meta, echoBackCall, sendTimeout, _ref5, echoBack; | ||
@@ -106,3 +107,3 @@ return _regenerator.default.wrap(function postActivity$(_context5) { | ||
case 0: | ||
method = _ref.meta.method, activity = _ref.payload.activity; | ||
method = _ref2.meta.method, activity = _ref2.payload.activity; | ||
_context5.next = 3; | ||
@@ -117,6 +118,6 @@ return (0, _effects.select)(_language.default); | ||
activity = (0, _objectSpread2.default)({}, (0, _deleteKey.default)(activity, 'id'), { | ||
attachments: attachments && attachments.map(function (_ref2) { | ||
var contentType = _ref2.contentType, | ||
contentUrl = _ref2.contentUrl, | ||
name = _ref2.name; | ||
attachments: attachments && attachments.map(function (_ref3) { | ||
var contentType = _ref3.contentType, | ||
contentUrl = _ref3.contentUrl, | ||
name = _ref3.name; | ||
return { | ||
@@ -134,2 +135,3 @@ contentType: contentType, | ||
id: userID, | ||
name: username, | ||
role: 'user' | ||
@@ -172,3 +174,3 @@ }, | ||
_regenerator.default.mark(function _callee4() { | ||
var _ref3, _activity2, _activity2$channelDat, channelData, id; | ||
var _ref4, _activity2, _activity2$channelDat, channelData, id; | ||
@@ -183,4 +185,4 @@ return _regenerator.default.wrap(function _callee4$(_context4) { | ||
case 2: | ||
_ref3 = _context4.sent; | ||
_activity2 = _ref3.payload.activity; | ||
_ref4 = _context4.sent; | ||
_activity2 = _ref4.payload.activity; | ||
_activity2$channelDat = _activity2.channelData, channelData = _activity2$channelDat === void 0 ? {} : _activity2$channelDat, id = _activity2.id; | ||
@@ -229,4 +231,4 @@ | ||
case 19: | ||
_ref4 = _context5.sent; | ||
echoBack = _ref4.send.echoBack; | ||
_ref5 = _context5.sent; | ||
echoBack = _ref5.send.echoBack; | ||
_context5.next = 23; | ||
@@ -285,2 +287,2 @@ return (0, _effects.put)({ | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zYWdhcy9wb3N0QWN0aXZpdHlTYWdhLmpzIl0sIm5hbWVzIjpbInBvc3RBY3Rpdml0eSIsImRpcmVjdExpbmUiLCJ1c2VySUQiLCJudW1BY3Rpdml0aWVzUG9zdGVkIiwiUE9TVF9BQ1RJVklUWSIsImFjdGlvbiIsIm1ldGhvZCIsIm1ldGEiLCJhY3Rpdml0eSIsInBheWxvYWQiLCJsYW5ndWFnZVNlbGVjdG9yIiwibG9jYWxlIiwiYXR0YWNobWVudHMiLCJjaGFubmVsRGF0YSIsImNsaWVudEFjdGl2aXR5SUQiLCJtYXAiLCJjb250ZW50VHlwZSIsImNvbnRlbnRVcmwiLCJuYW1lIiwiY2hhbm5lbElkIiwiZnJvbSIsImlkIiwicm9sZSIsInRpbWVzdGFtcCIsImVudGl0aWVzIiwicmVxdWlyZXNCb3RTdGF0ZSIsInN1cHBvcnRzTGlzdGVuaW5nIiwic3Vwc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oYWN0aXZpdHkpKVxuICAgICAgfSksXG4gICAgICB0aW1lb3V0OiBjYWxsKCgpID0+IHNsZWVwKHNlbmRUaW1lb3V0KS50aGVuKCgpID0+IFByb21pc2UucmVqZWN0KG5ldyBFcnJvcigndGltZW91dCcpKSkpXG4gICAgfSk7XG5cbiAgICB5aWVsZCBwdXQoeyB0eXBlOiBQT1NUX0FDVElWSVRZX0ZVTEZJTExFRCwgbWV0YSwgcGF5bG9hZDogeyBhY3Rpdml0eTogZWNob0JhY2sgfSB9KTtcbiAgfSBjYXRjaCAoZXJyKSB7XG4gICAgeWllbGQgcHV0KHsgdHlwZTogUE9TVF9BQ1RJVklUWV9SRUpFQ1RFRCwgZXJyb3I6IHRydWUsIG1ldGEsIHBheWxvYWQ6IGVyciB9KTtcbiAgfSBmaW5hbGx5IHtcbiAgICBpZiAoeWllbGQgY2FuY2VsbGVkKCkpIHtcbiAgICAgIHlpZWxkIHB1dCh7IHR5cGU6IFBPU1RfQUNUSVZJVFlfUkVKRUNURUQsIGVycm9yOiB0cnVlLCBtZXRhLCBwYXlsb2FkOiBuZXcgRXJyb3IoJ2NhbmNlbGxlZCcpIH0pO1xuICAgIH1cbiAgfVxufVxuIl19 |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _mime = _interopRequireDefault(require("mime")); | ||
var _mimeWrapper = _interopRequireDefault(require("../utils/mime-wrapper")); | ||
@@ -33,3 +33,3 @@ var _whileConnected = _interopRequireDefault(require("./effects/whileConnected")); | ||
var getType = _mime.default.getType.bind(_mime.default); | ||
var getType = _mimeWrapper.default.getType.bind(_mimeWrapper.default); | ||
@@ -106,2 +106,2 @@ function _callee() { | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zYWdhcy9zZW5kRmlsZXNUb1Bvc3RBY3Rpdml0eVNhZ2EuanMiXSwibmFtZXMiOlsic2VuZEZpbGVzVG9Qb3N0QWN0a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fa87", | ||
"version": "4.2.1-master.b95462b", | ||
"description": "Core of botframework-webchat", | ||
@@ -53,3 +53,3 @@ "main": "lib/index.js", | ||
"babel-plugin-version-transform": "^1.0.0", | ||
"botframework-directlinejs": "^0.10.2", | ||
"botframework-directlinejs": "~0.11.2", | ||
"concurrently": "^4.0.1", | ||
@@ -56,0 +56,0 @@ "jest": "^23.6.0", |
const CONNECT = 'DIRECT_LINE/CONNECT'; | ||
const CONNECT_FULFILLED = `${ CONNECT }_FULFILLED`; | ||
const CONNECT_FULFILLING = `${ CONNECT }_FULFILLING`; | ||
const CONNECT_PENDING = `${ CONNECT }_PENDING`; | ||
const CONNECT_REJECTED = `${ CONNECT }_REJECTED`; | ||
const CONNECT_FULFILLING = `${ CONNECT }_FULFILLING`; | ||
const CONNECT_FULFILLED = `${ CONNECT }_FULFILLED`; | ||
const CONNECT_STILL_PENDING = `${ CONNECT }_STILL_PENDING`; | ||
export default function ({ directLine, userID }) { | ||
export default function ({ directLine, userID, username }) { | ||
return { | ||
type: CONNECT, | ||
payload: { directLine, userID } | ||
payload: { | ||
directLine, | ||
userID, | ||
username | ||
} | ||
}; | ||
@@ -16,6 +21,7 @@ } | ||
CONNECT, | ||
CONNECT_FULFILLED, | ||
CONNECT_FULFILLING, | ||
CONNECT_PENDING, | ||
CONNECT_REJECTED, | ||
CONNECT_FULFILLING, | ||
CONNECT_FULFILLED | ||
CONNECT_STILL_PENDING | ||
} |
@@ -0,4 +1,6 @@ | ||
// TODO: [P3] Take this deprecation code out when releasing on or after 2020 January 13 | ||
const SET_SEND_TYPING = 'WEB_CHAT/SET_SEND_TYPING'; | ||
export default function (value) { | ||
// Deprecation notes added to reducer | ||
return { | ||
@@ -5,0 +7,0 @@ type: SET_SEND_TYPING, |
@@ -17,2 +17,3 @@ import connect from './actions/connect'; | ||
import setSendTyping from './actions/setSendTyping'; | ||
import setSendTypingIndicator from './actions/setSendTypingIndicator'; | ||
import startDictate from './actions/startDictate'; | ||
@@ -47,3 +48,3 @@ import startSpeakingActivity from './actions/startSpeakingActivity'; | ||
setSendTimeout, | ||
setSendTyping, | ||
setSendTypingIndicator, | ||
startDictate, | ||
@@ -54,3 +55,6 @@ startSpeakingActivity, | ||
submitSendBox, | ||
version | ||
version, | ||
// TODO: [P3] Take this deprecation code out when releasing on or after January 13 2020 | ||
setSendTyping | ||
} |
import { combineReducers } from 'redux'; | ||
import activities from './reducers/activities'; | ||
import connectivityStatus from './reducers/connectivityStatus' | ||
import dictateInterims from './reducers/dictateInterims'; | ||
@@ -11,3 +12,3 @@ import dictateState from './reducers/dictateState'; | ||
import sendTimeout from './reducers/sendTimeout'; | ||
import sendTyping from './reducers/sendTyping'; | ||
import sendTypingIndicator from './reducers/sendTypingIndicator'; | ||
import suggestedActions from './reducers/suggestedActions'; | ||
@@ -17,2 +18,3 @@ | ||
activities, | ||
connectivityStatus, | ||
dictateInterims, | ||
@@ -25,4 +27,7 @@ dictateState, | ||
sendTimeout, | ||
sendTyping, | ||
suggestedActions | ||
sendTypingIndicator, | ||
suggestedActions, | ||
// TODO: [P3] Take this deprecation code out when releasing on or after January 13 2020 | ||
sendTyping: sendTypingIndicator | ||
}) |
@@ -6,2 +6,3 @@ import { fork } from 'redux-saga/effects'; | ||
import connectSaga from './sagas/connectSaga'; | ||
import detectSlowConnectionSaga from './sagas/detectSlowConnectionSaga'; | ||
import incomingActivitySaga from './sagas/incomingActivitySaga'; | ||
@@ -17,3 +18,3 @@ import markActivityForSpeakOnIncomingActivityFromOthersSaga from './sagas/markActivityForSpeakOnIncomingActivityFromOthersSaga'; | ||
import sendPostBackToPostActivitySaga from './sagas/sendPostBackToPostActivitySaga'; | ||
import sendTypingOnSetSendBoxSaga from './sagas/sendTypingOnSetSendBoxSaga'; | ||
import sendTypingIndicatorOnSetSendBoxSaga from './sagas/sendTypingIndicatorOnSetSendBoxSaga'; | ||
import startDictateAfterSpeakActivitySaga from './sagas/startDictateAfterSpeakActivitySaga'; | ||
@@ -29,2 +30,3 @@ import startSpeakActivityOnPostActivitySaga from './sagas/startSpeakActivityOnPostActivitySaga'; | ||
yield fork(connectSaga); | ||
yield fork(detectSlowConnectionSaga); | ||
yield fork(incomingActivitySaga); | ||
@@ -40,3 +42,3 @@ yield fork(markActivityForSpeakOnIncomingActivityFromOthersSaga); | ||
yield fork(sendPostBackToPostActivitySaga); | ||
yield fork(sendTypingOnSetSendBoxSaga); | ||
yield fork(sendTypingIndicatorOnSetSendBoxSaga); | ||
yield fork(startDictateAfterSpeakActivitySaga); | ||
@@ -43,0 +45,0 @@ yield fork(startSpeakActivityOnPostActivitySaga); |
@@ -15,3 +15,3 @@ import { | ||
function* observeConnectionStatus(directLine) { | ||
function* observeConnectionStatus({ directLine }) { | ||
yield observeEach(directLine.connectionStatus$, function* (connectionStatus) { | ||
@@ -18,0 +18,0 @@ yield put(connectionStatusUpdate(connectionStatus)); |
@@ -13,7 +13,8 @@ import { | ||
import callUntil from './effects/callUntil'; | ||
import forever from './effects/forever'; | ||
import updateConnectionStatus, { UPDATE_CONNECTION_STATUS } from '../actions/updateConnectionStatus'; | ||
import createPromiseQueue from '../createPromiseQueue'; | ||
import { ConnectionStatus } from 'botframework-directlinejs'; | ||
import { | ||
@@ -30,12 +31,12 @@ CONNECT, | ||
DISCONNECT_PENDING, | ||
DISCONNECT_REJECTED, | ||
DISCONNECT_FULFILLED | ||
} from '../actions/disconnect'; | ||
// const UNINITIALIZED = 0; | ||
// const CONNECTING = 1; | ||
const ONLINE = 2; | ||
// const EXPIRED_TOKEN = 3; | ||
// const FAILED_TO_CONNECT = 4; | ||
const ENDED = 5; | ||
const { | ||
Connecting: CONNECTING, | ||
Online: ONLINE, | ||
ExpiredToken: EXPIRED_TOKEN, | ||
FailedToConnect: FAILED_TO_CONNECT, | ||
Ended: ENDED | ||
} = ConnectionStatus; | ||
@@ -46,42 +47,58 @@ function randomUserID() { | ||
export default function* () { | ||
for (;;) { | ||
const { payload: { directLine, userID } } = yield take(CONNECT); | ||
const { token } = directLine; | ||
const { user: userIDFromToken } = decode(token) || {}; | ||
function* observeAndPutConnectionStatusUpdate(directLine) { | ||
const connectionStatusQueue = createPromiseQueue(); | ||
const connectionStatusSubscription = directLine.connectionStatus$.subscribe({ | ||
next: connectionStatusQueue.push | ||
}); | ||
if (userIDFromToken) { | ||
if (userID && userID !== userIDFromToken) { | ||
console.warn('Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token.'); | ||
} | ||
try { | ||
for (;;) { | ||
const connectionStatus = yield call(connectionStatusQueue.shift); | ||
userID = userIDFromToken; | ||
} else if (userID) { | ||
if (typeof userID !== 'string') { | ||
console.warn('Web Chat: user ID must be a string.'); | ||
userID = randomUserID(); | ||
} else if (/^dl_/.test(userID)) { | ||
console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'); | ||
userID = randomUserID(); | ||
} | ||
} else { | ||
// Only specify "default-user" if not found from token and not passed in | ||
userID = randomUserID(); | ||
yield put(updateConnectionStatus(connectionStatus)); | ||
} | ||
} finally { | ||
connectionStatusSubscription.unsubscribe(); | ||
} | ||
} | ||
const connectTask = yield fork(connectSaga, directLine, userID); | ||
function negativeUpdateConnectionStatusAction({ payload, type }) { | ||
if (type === UPDATE_CONNECTION_STATUS) { | ||
const { connectionStatus } = payload; | ||
yield take(DISCONNECT); | ||
yield call(disconnectSaga, connectTask, directLine); | ||
return ( | ||
connectionStatus !== CONNECTING | ||
&& connectionStatus !== ONLINE | ||
); | ||
} | ||
} | ||
function* connectSaga(directLine, userID) { | ||
const meta = { userID }; | ||
function rectifyUserID(directLine, userIDFromAction) { | ||
const { token } = directLine; | ||
const { user: userIDFromToken } = decode(token) || {}; | ||
yield put({ type: CONNECT_PENDING, meta }); | ||
if (userIDFromToken) { | ||
if (userIDFromAction && userIDFromAction !== userIDFromToken) { | ||
console.warn('Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token.'); | ||
} | ||
const connectionStatusQueue = createPromiseQueue(); | ||
const connectionStatusSubscription = directLine.connectionStatus$.subscribe({ next: connectionStatusQueue.push }); | ||
return userIDFromToken; | ||
} else if (userIDFromAction) { | ||
if (typeof userIDFromAction !== 'string') { | ||
console.warn('Web Chat: user ID must be a string.'); | ||
return randomUserID(); | ||
} else if (/^dl_/.test(userIDFromAction)) { | ||
console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'); | ||
return randomUserID(); | ||
} | ||
} else { | ||
return randomUserID(); | ||
} | ||
return userIDFromAction; | ||
} | ||
function* connectSaga(directLine) { | ||
// DirectLineJS start the connection only after the first subscriber for activity$, but not connectionStatus$ | ||
@@ -91,47 +108,92 @@ const activitySubscription = directLine.activity$.subscribe({ next: () => 0 }); | ||
try { | ||
try { | ||
yield callUntil(connectionStatusQueue.shift, [], connectionStatus => connectionStatus === ONLINE); | ||
yield put({ type: CONNECT_FULFILLING, meta, payload: { directLine } }); | ||
yield put({ type: CONNECT_FULFILLED, meta, payload: { directLine } }); | ||
} catch (err) { | ||
yield put({ type: CONNECT_REJECTED, error: true, meta, payload: err }); | ||
} finally { | ||
if (yield cancelled()) { | ||
yield put({ type: CONNECT_REJECTED, error: true, meta, payload: new Error('cancelled') }); | ||
for (;;) { | ||
const { payload: { connectionStatus } } = yield take(UPDATE_CONNECTION_STATUS); | ||
// We will ignore DISCONNECT actions until we connect | ||
if (connectionStatus === ONLINE) { | ||
// TODO: [P2] DirectLineJS should kill the connection when we unsubscribe | ||
// But currently in v3, DirectLineJS does not have this functionality | ||
// Thus, we need to call "end()" explicitly | ||
return () => { | ||
activitySubscription.unsubscribe(); | ||
directLine.end(); | ||
}; | ||
} else if ( | ||
connectionStatus === ENDED | ||
|| connectionStatus === EXPIRED_TOKEN | ||
|| connectionStatus === FAILED_TO_CONNECT | ||
) { | ||
// If we receive anything negative, we will assume the connection is errored out | ||
throw new Error('Failed to connect'); | ||
} | ||
} | ||
} finally { | ||
if (yield cancelled()) { | ||
activitySubscription.unsubscribe(); | ||
yield forever(); | ||
} finally { | ||
// TODO: [P2] DirectLineJS should kill the connection when we unsubscribe | ||
// But currently in v3, DirectLineJS does not have this functionality | ||
// Thus, we need to call "end()" explicitly | ||
directLine.end(); | ||
activitySubscription.unsubscribe(); | ||
connectionStatusSubscription.unsubscribe(); | ||
throw new Error('Cancelled'); | ||
} | ||
} | ||
} | ||
function* disconnectSaga(connectTask, directLine) { | ||
yield put({ type: DISCONNECT_PENDING }); | ||
export default function* () { | ||
for (;;) { | ||
const { | ||
payload: { | ||
directLine, | ||
userID: userIDFromAction, | ||
username | ||
} | ||
} = yield take(CONNECT); | ||
const updateConnectionStatusTask = yield fork(observeAndPutConnectionStatusUpdate, directLine); | ||
const connectionStatusQueue = createPromiseQueue(); | ||
const unsubscribe = directLine.connectionStatus$.subscribe({ next: connectionStatusQueue.push }); | ||
try { | ||
const meta = { | ||
userID: rectifyUserID(directLine, userIDFromAction), | ||
username | ||
}; | ||
// DirectLineJS should cancel underlying REST/WS when we cancel | ||
// the connect task, which subsequently unsubscribe connectionStatus$ | ||
yield cancel(connectTask); | ||
let endDirectLine; | ||
try { | ||
yield callUntil(connectionStatusQueue.shift, [], connectionStatus => connectionStatus === ENDED); | ||
yield put({ type: DISCONNECT_FULFILLED }); | ||
} catch (err) { | ||
yield put({ type: DISCONNECT_REJECTED, error: true, payload: err }); | ||
} finally { | ||
if (yield cancelled()) { | ||
yield put({ type: DISCONNECT_REJECTED, error: true, payload: new Error('cancelled') }); | ||
yield put({ type: CONNECT_PENDING, meta }); | ||
try { | ||
endDirectLine = yield call(connectSaga, directLine); | ||
} catch (err) { | ||
yield put({ type: CONNECT_REJECTED, error: true, meta, payload: err }); | ||
continue; | ||
} | ||
// At this point, we established connection to Direct Line. | ||
// Any errors from this point, we need to make sure we call endDirectLine() to release resources. | ||
try { | ||
yield put({ type: CONNECT_FULFILLING, meta, payload: { directLine } }); | ||
yield put({ type: CONNECT_FULFILLED, meta, payload: { directLine } }); | ||
const terminateAction = yield take([DISCONNECT, negativeUpdateConnectionStatusAction]); | ||
// Even if the connection is interrupted, we will still emitting DISCONNECT_PENDING. | ||
// This will makes handling logic easier. If CONNECT_FULFILLED, we guarantee DISCONNECT_PENDING. | ||
yield put({ type: DISCONNECT_PENDING }); | ||
endDirectLine(); | ||
if (terminateAction.type === DISCONNECT) { | ||
// For graceful disconnect, we wait until Direct Line say it is ended | ||
yield take(negativeUpdateConnectionStatusAction); | ||
} | ||
} finally { | ||
// It is meaningless to continue to use the Direct Line object even disconnect failed. | ||
// We will still unsubscribe to incoming activities and consider Direct Line object abandoned. | ||
yield put({ type: DISCONNECT_FULFILLED }); | ||
endDirectLine(); | ||
} | ||
} finally { | ||
yield cancel(updateConnectionStatusTask); | ||
} | ||
unsubscribe(); | ||
} | ||
} |
@@ -9,3 +9,3 @@ import { | ||
import { CONNECT_FULFILLING } from '../../actions/connect'; | ||
import { DISCONNECT_FULFILLED } from '../../actions/disconnect'; | ||
import { DISCONNECT_PENDING } from '../../actions/disconnect'; | ||
@@ -15,6 +15,7 @@ export default function (fn) { | ||
for (;;) { | ||
const { meta: { userID }, payload: { directLine } } = yield take(CONNECT_FULFILLING); | ||
const task = yield fork(fn, directLine, userID); | ||
const { meta: { userID, username }, payload: { directLine } } = yield take(CONNECT_FULFILLING); | ||
const task = yield fork(fn, { directLine, userID, username }); | ||
yield take(DISCONNECT_FULFILLED); | ||
// When we receive DISCONNECT_PENDING, the Direct Line connection is tearing down and should not be used. | ||
yield take(DISCONNECT_PENDING); | ||
yield cancel(task); | ||
@@ -21,0 +22,0 @@ } |
@@ -22,3 +22,3 @@ import { | ||
function* observeActivity(directLine, userID) { | ||
function* observeActivity({ directLine, userID }) { | ||
yield observeEach(directLine.activity$, function* (activity) { | ||
@@ -30,2 +30,3 @@ activity = patchActivityWithFromRole(activity, userID); | ||
// Update suggested actions | ||
// TODO: [P3] We could put this logic inside reducer to minimize number of actions dispatched. | ||
const messageActivities = yield select(activitiesOfType('message')); | ||
@@ -35,5 +36,7 @@ const lastMessageActivity = messageActivities[messageActivities.length - 1]; | ||
if (activityFromBot(lastMessageActivity)) { | ||
const { suggestedActions: { actions } = {} } = lastMessageActivity; | ||
const { suggestedActions: { actions, to } = {} } = lastMessageActivity; | ||
yield put(setSuggestedActions(actions)); | ||
// If suggested actions is not destined to anyone, or is destined to the user, show it. | ||
// In other words, if suggested actions is destined to someone else, don't show it. | ||
yield put(setSuggestedActions(to && to.length && !to.includes(userID) ? null : actions)); | ||
} | ||
@@ -40,0 +43,0 @@ }); |
@@ -15,3 +15,3 @@ import { | ||
export default function* () { | ||
yield whileConnected(function* (_, userID) { | ||
yield whileConnected(function* ({ userID }) { | ||
yield whileSpeakIncomingActivity(markActivityForSpeakOnIncomingActivityFromOthers.bind(null, userID)); | ||
@@ -18,0 +18,0 @@ }); |
@@ -33,7 +33,7 @@ import { | ||
export default function* () { | ||
yield whileConnected(function* (directLine, userID) { | ||
yield whileConnected(function* ({ directLine, userID, username }) { | ||
let numActivitiesPosted = 0; | ||
yield takeEvery(POST_ACTIVITY, function* (action) { | ||
yield* postActivity(directLine, userID, numActivitiesPosted++, action); | ||
yield* postActivity(directLine, userID, username, numActivitiesPosted++, action); | ||
}); | ||
@@ -43,3 +43,3 @@ }); | ||
function* postActivity(directLine, userID, numActivitiesPosted, { meta: { method }, payload: { activity } }) { | ||
function* postActivity(directLine, userID, username, numActivitiesPosted, { meta: { method }, payload: { activity } }) { | ||
const locale = yield select(languageSelector); | ||
@@ -62,2 +62,3 @@ const { attachments, channelData: { clientActivityID = uniqueID() } = {} } = activity; | ||
id: userID, | ||
name: username, | ||
role: 'user' | ||
@@ -64,0 +65,0 @@ }, |
@@ -6,3 +6,3 @@ import { | ||
import mime from 'mime'; | ||
import mime from '../utils/mime-wrapper'; | ||
@@ -9,0 +9,0 @@ import whileConnected from './effects/whileConnected'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
360070
188
5434