@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
@@ -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
|
6
|
+
export declare function CustomToast(type: 'info' | 'error' | 'warning' | 'success', message: string, toastId: number, style?: React.CSSProperties): React.Key;
|
7
7
|
export declare const toastGen: ({ type, message }: toastGenProps) => React.JSX.Element;
|
@@ -1772,15 +1772,7 @@ var SnapToCenter = function SnapToCenter(props) {
|
|
1772
1772
|
})(props);
|
1773
1773
|
};
|
1774
1774
|
|
1775
|
-
function CustomToast(type, message, toastId, style
|
1776
|
-
if (containerId === void 0) {
|
1777
|
-
containerId = "logoEditor";
|
1778
|
-
}
|
1779
|
-
var _C = reactToastify.toast.isActive(toastId);
|
1780
|
-
console.log(containerId);
|
1781
|
-
if (_C) {
|
1782
|
-
return React__default.createElement(React__default.Fragment, null);
|
1783
|
-
}
|
1775
|
+
function CustomToast(type, message, toastId, style) {
|
1784
1776
|
switch (type) {
|
1785
1777
|
case 'info':
|
1786
1778
|
return reactToastify.toast.info(toastGen({
|
@@ -1788,8 +1780,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1788
1780
|
message: message
|
1789
1781
|
}), {
|
1790
1782
|
toastId: toastId,
|
1791
|
-
style: style
|
1792
|
-
containerId: containerId
|
1783
|
+
style: style
|
1793
1784
|
});
|
1794
1785
|
case 'error':
|
1795
1786
|
return reactToastify.toast.error(toastGen({
|
@@ -1798,8 +1789,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1798
1789
|
}), {
|
1799
1790
|
toastId: toastId,
|
1800
1791
|
icon: Error$1,
|
1801
|
-
style: style
|
1802
|
-
containerId: containerId
|
1792
|
+
style: style
|
1803
1793
|
});
|
1804
1794
|
case 'success':
|
1805
1795
|
return reactToastify.toast.success(toastGen({
|
@@ -1807,8 +1797,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1807
1797
|
message: message
|
1808
1798
|
}), {
|
1809
1799
|
toastId: toastId,
|
1810
|
-
style: style
|
1811
|
-
containerId: containerId
|
1800
|
+
style: style
|
1812
1801
|
});
|
1813
1802
|
case 'warning':
|
1814
1803
|
return reactToastify.toast.warning(toastGen({
|
@@ -1816,8 +1805,7 @@ function CustomToast(type, message, toastId, style, containerId) {
|
|
1816
1805
|
message: message
|
1817
1806
|
}), {
|
1818
1807
|
toastId: toastId,
|
1819
|
-
style: style
|
1820
|
-
containerId: containerId
|
1808
|
+
style: style
|
1821
1809
|
});
|
1822
1810
|
}
|
1823
1811
|
}
|
@@ -1879,7 +1867,7 @@ var toastMessages =
|
|
1879
1867
|
return CustomToast('info', 'Please select the IMAGE / TEXT to delete', 14);
|
1880
1868
|
},
|
1881
1869
|
pleaseSelectTheImageDulpicate: function pleaseSelectTheImageDulpicate() {
|
1882
|
-
return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate',
|
1870
|
+
return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate', 15);
|
1883
1871
|
},
|
1884
1872
|
applyLogoColorNotAvailable: function applyLogoColorNotAvailable(decType) {
|
1885
1873
|
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);
|
@@ -15217,20 +15205,7 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
15217
15205
|
crossOnClick: onClose
|
15218
15206
|
}, React__default.createElement("div", {
|
15219
15207
|
className: "flex flex-col md:flex-row w-full h-[88vh] " + (toggleSaveLogo.status ? "z-10" : "")
|
15220
|
-
},
|
15221
|
-
position: "top-center",
|
15222
|
-
autoClose: 3000,
|
15223
|
-
hideProgressBar: true,
|
15224
|
-
newestOnTop: false,
|
15225
|
-
closeOnClick: true,
|
15226
|
-
rtl: false,
|
15227
|
-
pauseOnFocusLoss: true,
|
15228
|
-
draggable: true,
|
15229
|
-
pauseOnHover: true,
|
15230
|
-
theme: "colored",
|
15231
|
-
transition: reactToastify.Bounce,
|
15232
|
-
containerId: "logoEditor"
|
15233
|
-
}), fontList.map(function (font, index) {
|
15208
|
+
}, fontList.map(function (font, index) {
|
15234
15209
|
return React__default.createElement(FontLoader, {
|
15235
15210
|
key: index,
|
15236
15211
|
fontPath: font
|