@threedddplus/logoeditor 0.0.208 → 0.0.210
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 +16 -8
- 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 +16 -8
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/logoeditor.esm.js
CHANGED
@@ -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
|
}
|
@@ -1864,7 +1871,7 @@ var toastMessages =
|
|
1864
1871
|
return CustomToast('info', 'Please select the IMAGE / TEXT to delete', 14);
|
1865
1872
|
},
|
1866
1873
|
pleaseSelectTheImageDulpicate: function pleaseSelectTheImageDulpicate() {
|
1867
|
-
return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate',
|
1874
|
+
return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate', 150);
|
1868
1875
|
},
|
1869
1876
|
applyLogoColorNotAvailable: function applyLogoColorNotAvailable(decType) {
|
1870
1877
|
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);
|
@@ -15213,7 +15220,8 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
15213
15220
|
draggable: true,
|
15214
15221
|
pauseOnHover: true,
|
15215
15222
|
theme: "colored",
|
15216
|
-
transition: Bounce
|
15223
|
+
transition: Bounce,
|
15224
|
+
containerId: "logoEditor"
|
15217
15225
|
}), fontList.map(function (font, index) {
|
15218
15226
|
return React.createElement(FontLoader, {
|
15219
15227
|
key: index,
|