@threedddplus/logoeditor 0.0.209 → 0.0.211
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/components/customToast/customToast.d.ts +1 -1
- package/dist/logoeditor.cjs.development.js +14 -19
- package/dist/logoeditor.cjs.development.js.map +1 -1
- package/dist/logoeditor.cjs.production.min.js +1 -1
- package/dist/logoeditor.cjs.production.min.js.map +1 -1
- package/dist/logoeditor.esm.js +15 -20
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/logoeditor.esm.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { create } from 'zustand';
|
2
2
|
import { subscribeWithSelector } from 'zustand/middleware';
|
3
3
|
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
4
|
-
import { toast
|
4
|
+
import { toast } from 'react-toastify';
|
5
5
|
import { IconContext } from 'react-icons';
|
6
6
|
import { useTooltipState, TooltipReference, Button as Button$1, Tooltip, Input } from 'reakit';
|
7
7
|
import { IoMdCheckmarkCircle } from 'react-icons/io';
|
@@ -1764,9 +1764,12 @@ var SnapToCenter = function SnapToCenter(props) {
|
|
1764
1764
|
})(props);
|
1765
1765
|
};
|
1766
1766
|
|
1767
|
-
function CustomToast(type, message, toastId, style) {
|
1767
|
+
function CustomToast(type, message, toastId, style, containerId) {
|
1768
|
+
if (containerId === void 0) {
|
1769
|
+
containerId = "logoEditor";
|
1770
|
+
}
|
1768
1771
|
var _C = toast.isActive(toastId);
|
1769
|
-
console.log(
|
1772
|
+
console.log(containerId);
|
1770
1773
|
if (_C) {
|
1771
1774
|
return React.createElement(React.Fragment, null);
|
1772
1775
|
}
|
@@ -1777,7 +1780,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1777
1780
|
message: message
|
1778
1781
|
}), {
|
1779
1782
|
toastId: toastId,
|
1780
|
-
style: style
|
1783
|
+
style: style,
|
1784
|
+
containerId: containerId
|
1781
1785
|
});
|
1782
1786
|
case 'error':
|
1783
1787
|
return toast.error(toastGen({
|
@@ -1786,7 +1790,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1786
1790
|
}), {
|
1787
1791
|
toastId: toastId,
|
1788
1792
|
icon: Error$1,
|
1789
|
-
style: style
|
1793
|
+
style: style,
|
1794
|
+
containerId: containerId
|
1790
1795
|
});
|
1791
1796
|
case 'success':
|
1792
1797
|
return toast.success(toastGen({
|
@@ -1794,7 +1799,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1794
1799
|
message: message
|
1795
1800
|
}), {
|
1796
1801
|
toastId: toastId,
|
1797
|
-
style: style
|
1802
|
+
style: style,
|
1803
|
+
containerId: containerId
|
1798
1804
|
});
|
1799
1805
|
case 'warning':
|
1800
1806
|
return toast.warning(toastGen({
|
@@ -1802,7 +1808,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1802
1808
|
message: message
|
1803
1809
|
}), {
|
1804
1810
|
toastId: toastId,
|
1805
|
-
style: style
|
1811
|
+
style: style,
|
1812
|
+
containerId: containerId
|
1806
1813
|
});
|
1807
1814
|
}
|
1808
1815
|
}
|
@@ -15202,19 +15209,7 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
15202
15209
|
crossOnClick: onClose
|
15203
15210
|
}, React.createElement("div", {
|
15204
15211
|
className: "flex flex-col md:flex-row w-full h-[88vh] " + (toggleSaveLogo.status ? "z-10" : "")
|
15205
|
-
},
|
15206
|
-
position: "top-center",
|
15207
|
-
autoClose: 3000,
|
15208
|
-
hideProgressBar: true,
|
15209
|
-
newestOnTop: false,
|
15210
|
-
closeOnClick: true,
|
15211
|
-
rtl: false,
|
15212
|
-
pauseOnFocusLoss: true,
|
15213
|
-
draggable: true,
|
15214
|
-
pauseOnHover: true,
|
15215
|
-
theme: "colored",
|
15216
|
-
transition: Bounce
|
15217
|
-
}), fontList.map(function (font, index) {
|
15212
|
+
}, fontList.map(function (font, index) {
|
15218
15213
|
return React.createElement(FontLoader, {
|
15219
15214
|
key: index,
|
15220
15215
|
fontPath: font
|