@bigbinary/neetoui 6.5.13 → 6.5.14

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.
@@ -1919,6 +1919,7 @@ var withUniqueCheck = function withUniqueCheck(type, toastFunc) {
1919
1919
  onClick = _parseToastrConfig.onClick,
1920
1920
  _parseToastrConfig$cu = _parseToastrConfig.customConfig,
1921
1921
  customConfig = _parseToastrConfig$cu === void 0 ? {} : _parseToastrConfig$cu;
1922
+ var toastId = null;
1922
1923
  if (toastrList.add({
1923
1924
  type: type,
1924
1925
  message: message,
@@ -1934,13 +1935,14 @@ var withUniqueCheck = function withUniqueCheck(type, toastFunc) {
1934
1935
  });
1935
1936
  }
1936
1937
  }, customConfig);
1937
- toastFunc({
1938
+ toastId = toastFunc({
1938
1939
  message: message,
1939
1940
  buttonLabel: buttonLabel,
1940
1941
  onClick: onClick,
1941
1942
  config: config
1942
1943
  });
1943
1944
  }
1945
+ return toastId;
1944
1946
  };
1945
1947
  };
1946
1948
  var showSuccessToastr = withUniqueCheck("success", function (_ref2) {
@@ -1951,8 +1953,8 @@ var showSuccessToastr = withUniqueCheck("success", function (_ref2) {
1951
1953
  return reactToastify.toast.success( /*#__PURE__*/React__default["default"].createElement(Toast, {
1952
1954
  buttonLabel: buttonLabel,
1953
1955
  message: message,
1954
- type: "success",
1955
- onClick: onClick
1956
+ onClick: onClick,
1957
+ type: "success"
1956
1958
  }), config);
1957
1959
  });
1958
1960
  var showInfoToastr = withUniqueCheck("info", function (_ref3) {
@@ -1963,8 +1965,8 @@ var showInfoToastr = withUniqueCheck("info", function (_ref3) {
1963
1965
  return reactToastify.toast.info( /*#__PURE__*/React__default["default"].createElement(Toast, {
1964
1966
  buttonLabel: buttonLabel,
1965
1967
  message: message,
1966
- type: "info",
1967
- onClick: onClick
1968
+ onClick: onClick,
1969
+ type: "info"
1968
1970
  }), config);
1969
1971
  });
1970
1972
  var showWarningToastr = withUniqueCheck("warning", function (_ref4) {
@@ -1975,8 +1977,8 @@ var showWarningToastr = withUniqueCheck("warning", function (_ref4) {
1975
1977
  return reactToastify.toast.warning( /*#__PURE__*/React__default["default"].createElement(Toast, {
1976
1978
  buttonLabel: buttonLabel,
1977
1979
  message: message,
1978
- type: "warning",
1979
- onClick: onClick
1980
+ onClick: onClick,
1981
+ type: "warning"
1980
1982
  }), config);
1981
1983
  });
1982
1984
  var isError = function isError(e) {
@@ -2052,8 +2054,8 @@ var showErrorToastr = withParsedErrorMsg(withUniqueCheck("error", function (_ref
2052
2054
  return reactToastify.toast.error( /*#__PURE__*/React__default["default"].createElement(Toast, {
2053
2055
  buttonLabel: buttonLabel,
2054
2056
  message: message,
2055
- type: "error",
2056
- onClick: onClick
2057
+ onClick: onClick,
2058
+ type: "error"
2057
2059
  }), config);
2058
2060
  }));
2059
2061
  var Toastr = {