@copart/ops-tool-kit 1.12.2-alpha.0 → 1.12.2-alpha.1

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.
@@ -47,7 +47,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
47
47
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
48
48
 
49
49
  const name$r = "@copart/ops-tool-kit";
50
- const version$8 = "1.12.2-alpha.0";
50
+ const version$8 = "1.12.2-alpha.1";
51
51
  const main$1 = "dist/ops-tool-kit.js";
52
52
  const style = "dist/ops-tool-kit.css";
53
53
  const files = [
@@ -57043,10 +57043,9 @@ var _styleModuleImportMap$2 = {
57043
57043
  };
57044
57044
  var MiHelpAgent = function MiHelpAgent(_ref) {
57045
57045
  var _ref$quickReplies = _ref.quickReplies,
57046
- quickReplies = _ref$quickReplies === void 0 ? [] : _ref$quickReplies,
57047
- _ref$collection = _ref.collection,
57048
- collection = _ref$collection === void 0 ? '' : _ref$collection,
57049
- _ref$systemPrompt = _ref.systemPrompt,
57046
+ quickReplies = _ref$quickReplies === void 0 ? [] : _ref$quickReplies;
57047
+ _ref.collection;
57048
+ var _ref$systemPrompt = _ref.systemPrompt,
57050
57049
  systemPrompt = _ref$systemPrompt === void 0 ? '' : _ref$systemPrompt,
57051
57050
  _ref$contextMessagesC = _ref.contextMessagesCount,
57052
57051
  contextMessagesCount = _ref$contextMessagesC === void 0 ? 5 : _ref$contextMessagesC,
@@ -57067,8 +57066,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
57067
57066
  setIsFeedbackLoading = _useState6[1];
57068
57067
  var _useState7 = React.useState(false),
57069
57068
  _useState8 = _slicedToArray(_useState7, 2),
57070
- collectionError = _useState8[0],
57071
- setCollectionError = _useState8[1];
57069
+ collectionError = _useState8[0];
57070
+ _useState8[1];
57072
57071
  var retryCount = React.useRef(0);
57073
57072
  var messagesContainerRef = React.useRef(null);
57074
57073
  var inputContainerRef = React.useRef(null);
@@ -57557,12 +57556,15 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
57557
57556
  scroll();
57558
57557
  }
57559
57558
  }, [conversations, showChatWindow]);
57560
- React.useEffect(function () {
57561
- if (!collection || typeof collection !== 'string') {
57562
- console.log('Collection is not of type string');
57563
- setCollectionError(true);
57564
- }
57565
- }, [collection]);
57559
+ // useEffect(
57560
+ // () => {
57561
+ // if (!collection || typeof collection !== 'string') {
57562
+ // console.log('Collection is not of type string')
57563
+ // setCollectionError(true)
57564
+ // }
57565
+ // },
57566
+ // [collection],
57567
+ // )
57566
57568
  React.useEffect(function () {
57567
57569
  if (quickReplies.length) {
57568
57570
  try {