@threedddplus/logoeditor 0.0.210 → 0.0.212
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 +7 -32
- 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 +8 -33
- 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,15 +1764,7 @@ var SnapToCenter = function SnapToCenter(props) {
|
|
1764
1764
|
})(props);
|
1765
1765
|
};
|
1766
1766
|
|
1767
|
-
function CustomToast(type, message, toastId, style
|
1768
|
-
if (containerId === void 0) {
|
1769
|
-
containerId = "logoEditor";
|
1770
|
-
}
|
1771
|
-
var _C = toast.isActive(toastId);
|
1772
|
-
console.log(containerId);
|
1773
|
-
if (_C) {
|
1774
|
-
return React.createElement(React.Fragment, null);
|
1775
|
-
}
|
1767
|
+
function CustomToast(type, message, toastId, style) {
|
1776
1768
|
switch (type) {
|
1777
1769
|
case 'info':
|
1778
1770
|
return toast.info(toastGen({
|
@@ -1780,8 +1772,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1780
1772
|
message: message
|
1781
1773
|
}), {
|
1782
1774
|
toastId: toastId,
|
1783
|
-
style: style
|
1784
|
-
containerId: containerId
|
1775
|
+
style: style
|
1785
1776
|
});
|
1786
1777
|
case 'error':
|
1787
1778
|
return toast.error(toastGen({
|
@@ -1790,8 +1781,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1790
1781
|
}), {
|
1791
1782
|
toastId: toastId,
|
1792
1783
|
icon: Error$1,
|
1793
|
-
style: style
|
1794
|
-
containerId: containerId
|
1784
|
+
style: style
|
1795
1785
|
});
|
1796
1786
|
case 'success':
|
1797
1787
|
return toast.success(toastGen({
|
@@ -1799,8 +1789,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1799
1789
|
message: message
|
1800
1790
|
}), {
|
1801
1791
|
toastId: toastId,
|
1802
|
-
style: style
|
1803
|
-
containerId: containerId
|
1792
|
+
style: style
|
1804
1793
|
});
|
1805
1794
|
case 'warning':
|
1806
1795
|
return toast.warning(toastGen({
|
@@ -1808,8 +1797,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1808
1797
|
message: message
|
1809
1798
|
}), {
|
1810
1799
|
toastId: toastId,
|
1811
|
-
style: style
|
1812
|
-
containerId: containerId
|
1800
|
+
style: style
|
1813
1801
|
});
|
1814
1802
|
}
|
1815
1803
|
}
|
@@ -1871,7 +1859,7 @@ var toastMessages =
|
|
1871
1859
|
return CustomToast('info', 'Please select the IMAGE / TEXT to delete', 14);
|
1872
1860
|
},
|
1873
1861
|
pleaseSelectTheImageDulpicate: function pleaseSelectTheImageDulpicate() {
|
1874
|
-
return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate',
|
1862
|
+
return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate', 15);
|
1875
1863
|
},
|
1876
1864
|
applyLogoColorNotAvailable: function applyLogoColorNotAvailable(decType) {
|
1877
1865
|
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);
|
@@ -15209,20 +15197,7 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
15209
15197
|
crossOnClick: onClose
|
15210
15198
|
}, React.createElement("div", {
|
15211
15199
|
className: "flex flex-col md:flex-row w-full h-[88vh] " + (toggleSaveLogo.status ? "z-10" : "")
|
15212
|
-
},
|
15213
|
-
position: "top-center",
|
15214
|
-
autoClose: 3000,
|
15215
|
-
hideProgressBar: true,
|
15216
|
-
newestOnTop: false,
|
15217
|
-
closeOnClick: true,
|
15218
|
-
rtl: false,
|
15219
|
-
pauseOnFocusLoss: true,
|
15220
|
-
draggable: true,
|
15221
|
-
pauseOnHover: true,
|
15222
|
-
theme: "colored",
|
15223
|
-
transition: Bounce,
|
15224
|
-
containerId: "logoEditor"
|
15225
|
-
}), fontList.map(function (font, index) {
|
15200
|
+
}, fontList.map(function (font, index) {
|
15226
15201
|
return React.createElement(FontLoader, {
|
15227
15202
|
key: index,
|
15228
15203
|
fontPath: font
|