@threedddplus/logoeditor 0.0.207 → 0.0.209

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.
@@ -3,5 +3,5 @@ export interface toastGenProps {
3
3
  type: 'Error' | 'Info' | 'Warning' | 'Success';
4
4
  message: string;
5
5
  }
6
- export declare function CustomToast(type: 'info' | 'error' | 'warning' | 'success', message: string, toastId: number, style?: React.CSSProperties): React.Key;
6
+ export declare function CustomToast(type: 'info' | 'error' | 'warning' | 'success', message: string, toastId: number, style?: React.CSSProperties): string | number | React.JSX.Element;
7
7
  export declare const toastGen: ({ type, message }: toastGenProps) => React.JSX.Element;
@@ -1773,6 +1773,11 @@ var SnapToCenter = function SnapToCenter(props) {
1773
1773
  };
1774
1774
 
1775
1775
  function CustomToast(type, message, toastId, style) {
1776
+ var _C = reactToastify.toast.isActive(toastId);
1777
+ console.log(_C);
1778
+ if (_C) {
1779
+ return React__default.createElement(React__default.Fragment, null);
1780
+ }
1776
1781
  switch (type) {
1777
1782
  case 'info':
1778
1783
  return reactToastify.toast.info(toastGen({
@@ -1867,7 +1872,7 @@ var toastMessages =
1867
1872
  return CustomToast('info', 'Please select the IMAGE / TEXT to delete', 14);
1868
1873
  },
1869
1874
  pleaseSelectTheImageDulpicate: function pleaseSelectTheImageDulpicate() {
1870
- return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate', 15);
1875
+ return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate', 150);
1871
1876
  },
1872
1877
  applyLogoColorNotAvailable: function applyLogoColorNotAvailable(decType) {
1873
1878
  return CustomToast('error', "A few of the colors associated with decoration \"" + decType + "\" are not supported. Please use the \"Edit\" option to update them with supported colors and proceed!", 16);