@threedddplus/logoeditor 0.0.206 → 0.0.208

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({
@@ -4227,10 +4232,10 @@ var converterSlice = function converterSlice(set, get) {
4227
4232
  case 0:
4228
4233
  formData = new FormData();
4229
4234
  formData.append('file', aiFile);
4230
- url = 'https://m2dev.richardsonsports.com/rest/V1/file-conversion';
4235
+ url = process.env.REACT_APP_MAGENTO_URL + '/rest/V1/file-conversion';
4231
4236
  config = {
4232
4237
  headers: {
4233
- Authorization: 'Bearer 6k5hm5dcmdwtd6l4setj4a3aq6liab5u',
4238
+ Authorization: "Bearer " + process.env.REACT_APP_MAGENTO_TOKEN,
4234
4239
  'Content-Type': 'multipart/form-data'
4235
4240
  }
4236
4241
  };