@copart/ops-tool-kit 1.10.20-alpha.10 → 1.10.20-alpha.12

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.
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
33
33
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
34
34
 
35
35
  const name$r = "@copart/ops-tool-kit";
36
- const version$5 = "1.10.20-alpha.10";
36
+ const version$5 = "1.10.20-alpha.12";
37
37
  const main$1 = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -38432,6 +38432,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
38432
38432
  setFeedbacks(feedbacksToBeSaved);
38433
38433
  if (conversationsToBeSaved.length) {
38434
38434
  saveCurrentContext(conversationsToBeSaved);
38435
+ } else {
38436
+ setCurrentContext(null);
38435
38437
  }
38436
38438
  if (mihelpAgentRef && _typeof(mihelpAgentRef) === 'object') {
38437
38439
  mihelpAgentRef.current = {
@@ -38452,6 +38454,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
38452
38454
  setConversations(conversationsToBeSaved);
38453
38455
  if (conversationsToBeSaved.length) {
38454
38456
  saveCurrentContext(conversationsToBeSaved);
38457
+ } else {
38458
+ setCurrentContext(null);
38455
38459
  }
38456
38460
  }
38457
38461
  if (event.key === 'mihelpAgentFeedbacks') {
@@ -38537,7 +38541,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
38537
38541
  messages: messagesWithOutId,
38538
38542
  collection: collection,
38539
38543
  last_n: contextMessagesCount,
38540
- appName: isCoreApp ? 'g2Home' : appAuthName,
38544
+ app_name: isCoreApp ? 'g2Home' : appAuthName,
38541
38545
  k: contextChunks
38542
38546
  };
38543
38547
  endpoint = (_storage$getLocalItem = storage$1.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : (_storage$getLocalItem2 = _storage$getLocalItem.endpoints) === null || _storage$getLocalItem2 === void 0 ? void 0 : _storage$getLocalItem2.mihelpChat;
@@ -38638,6 +38642,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
38638
38642
  storage$1.setLocalItem('mihelpAgentConversations', []);
38639
38643
  storage$1.setLocalItem('mihelpAgentFeedbacks', {});
38640
38644
  setMessageError(false);
38645
+ setCurrentContext(null);
38641
38646
  };
38642
38647
  var updateFeedback = /*#__PURE__*/function () {
38643
38648
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(feedback, Currentconversation, conversations) {