@threedddplus/logoeditor 0.0.209 → 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 +15 -7
- 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 -7
- 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): string | number | React.JSX.Element;
|
6
|
+
export declare function CustomToast(type: 'info' | 'error' | 'warning' | 'success', message: string, toastId: number, style?: React.CSSProperties, containerId?: string): string | number | React.JSX.Element;
|
7
7
|
export declare const toastGen: ({ type, message }: toastGenProps) => React.JSX.Element;
|
@@ -1772,9 +1772,12 @@ var SnapToCenter = function SnapToCenter(props) {
|
|
1772
1772
|
})(props);
|
1773
1773
|
};
|
1774
1774
|
|
1775
|
-
function CustomToast(type, message, toastId, style) {
|
1775
|
+
function CustomToast(type, message, toastId, style, containerId) {
|
1776
|
+
if (containerId === void 0) {
|
1777
|
+
containerId = "logoEditor";
|
1778
|
+
}
|
1776
1779
|
var _C = reactToastify.toast.isActive(toastId);
|
1777
|
-
console.log(
|
1780
|
+
console.log(containerId);
|
1778
1781
|
if (_C) {
|
1779
1782
|
return React__default.createElement(React__default.Fragment, null);
|
1780
1783
|
}
|
@@ -1785,7 +1788,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1785
1788
|
message: message
|
1786
1789
|
}), {
|
1787
1790
|
toastId: toastId,
|
1788
|
-
style: style
|
1791
|
+
style: style,
|
1792
|
+
containerId: containerId
|
1789
1793
|
});
|
1790
1794
|
case 'error':
|
1791
1795
|
return reactToastify.toast.error(toastGen({
|
@@ -1794,7 +1798,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1794
1798
|
}), {
|
1795
1799
|
toastId: toastId,
|
1796
1800
|
icon: Error$1,
|
1797
|
-
style: style
|
1801
|
+
style: style,
|
1802
|
+
containerId: containerId
|
1798
1803
|
});
|
1799
1804
|
case 'success':
|
1800
1805
|
return reactToastify.toast.success(toastGen({
|
@@ -1802,7 +1807,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1802
1807
|
message: message
|
1803
1808
|
}), {
|
1804
1809
|
toastId: toastId,
|
1805
|
-
style: style
|
1810
|
+
style: style,
|
1811
|
+
containerId: containerId
|
1806
1812
|
});
|
1807
1813
|
case 'warning':
|
1808
1814
|
return reactToastify.toast.warning(toastGen({
|
@@ -1810,7 +1816,8 @@ function CustomToast(type, message, toastId, style) {
|
|
1810
1816
|
message: message
|
1811
1817
|
}), {
|
1812
1818
|
toastId: toastId,
|
1813
|
-
style: style
|
1819
|
+
style: style,
|
1820
|
+
containerId: containerId
|
1814
1821
|
});
|
1815
1822
|
}
|
1816
1823
|
}
|
@@ -15221,7 +15228,8 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
15221
15228
|
draggable: true,
|
15222
15229
|
pauseOnHover: true,
|
15223
15230
|
theme: "colored",
|
15224
|
-
transition: reactToastify.Bounce
|
15231
|
+
transition: reactToastify.Bounce,
|
15232
|
+
containerId: "logoEditor"
|
15225
15233
|
}), fontList.map(function (font, index) {
|
15226
15234
|
return React__default.createElement(FontLoader, {
|
15227
15235
|
key: index,
|