@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.
package/dist/Toastr.js CHANGED
@@ -1895,6 +1895,7 @@ var withUniqueCheck = function withUniqueCheck(type, toastFunc) {
1895
1895
  onClick = _parseToastrConfig.onClick,
1896
1896
  _parseToastrConfig$cu = _parseToastrConfig.customConfig,
1897
1897
  customConfig = _parseToastrConfig$cu === void 0 ? {} : _parseToastrConfig$cu;
1898
+ var toastId = null;
1898
1899
  if (toastrList.add({
1899
1900
  type: type,
1900
1901
  message: message,
@@ -1910,13 +1911,14 @@ var withUniqueCheck = function withUniqueCheck(type, toastFunc) {
1910
1911
  });
1911
1912
  }
1912
1913
  }, customConfig);
1913
- toastFunc({
1914
+ toastId = toastFunc({
1914
1915
  message: message,
1915
1916
  buttonLabel: buttonLabel,
1916
1917
  onClick: onClick,
1917
1918
  config: config
1918
1919
  });
1919
1920
  }
1921
+ return toastId;
1920
1922
  };
1921
1923
  };
1922
1924
  var showSuccessToastr = withUniqueCheck("success", function (_ref2) {
@@ -1927,8 +1929,8 @@ var showSuccessToastr = withUniqueCheck("success", function (_ref2) {
1927
1929
  return toast.success( /*#__PURE__*/React__default.createElement(Toast, {
1928
1930
  buttonLabel: buttonLabel,
1929
1931
  message: message,
1930
- type: "success",
1931
- onClick: onClick
1932
+ onClick: onClick,
1933
+ type: "success"
1932
1934
  }), config);
1933
1935
  });
1934
1936
  var showInfoToastr = withUniqueCheck("info", function (_ref3) {
@@ -1939,8 +1941,8 @@ var showInfoToastr = withUniqueCheck("info", function (_ref3) {
1939
1941
  return toast.info( /*#__PURE__*/React__default.createElement(Toast, {
1940
1942
  buttonLabel: buttonLabel,
1941
1943
  message: message,
1942
- type: "info",
1943
- onClick: onClick
1944
+ onClick: onClick,
1945
+ type: "info"
1944
1946
  }), config);
1945
1947
  });
1946
1948
  var showWarningToastr = withUniqueCheck("warning", function (_ref4) {
@@ -1951,8 +1953,8 @@ var showWarningToastr = withUniqueCheck("warning", function (_ref4) {
1951
1953
  return toast.warning( /*#__PURE__*/React__default.createElement(Toast, {
1952
1954
  buttonLabel: buttonLabel,
1953
1955
  message: message,
1954
- type: "warning",
1955
- onClick: onClick
1956
+ onClick: onClick,
1957
+ type: "warning"
1956
1958
  }), config);
1957
1959
  });
1958
1960
  var isError = function isError(e) {
@@ -2028,8 +2030,8 @@ var showErrorToastr = withParsedErrorMsg(withUniqueCheck("error", function (_ref
2028
2030
  return toast.error( /*#__PURE__*/React__default.createElement(Toast, {
2029
2031
  buttonLabel: buttonLabel,
2030
2032
  message: message,
2031
- type: "error",
2032
- onClick: onClick
2033
+ onClick: onClick,
2034
+ type: "error"
2033
2035
  }), config);
2034
2036
  }));
2035
2037
  var Toastr = {