@threedddplus/logoeditor 0.0.215 → 0.0.217
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/index.d.ts +1 -0
- package/dist/logoeditor.cjs.development.js +32 -0
- 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 +32 -0
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +133 -133
package/dist/logoeditor.esm.js
CHANGED
@@ -32,6 +32,7 @@ import Select, { components } from 'react-select';
|
|
32
32
|
import { FloatingLabel } from 'flowbite-react';
|
33
33
|
import { ChromePicker } from 'react-color';
|
34
34
|
import 'react-toastify/dist/ReactToastify.css';
|
35
|
+
import { createRoot } from 'react-dom/client';
|
35
36
|
|
36
37
|
function _regeneratorRuntime() {
|
37
38
|
_regeneratorRuntime = function () {
|
@@ -1765,6 +1766,14 @@ var SnapToCenter = function SnapToCenter(props) {
|
|
1765
1766
|
};
|
1766
1767
|
|
1767
1768
|
function CustomToast(type, message, toastId, style) {
|
1769
|
+
//@ts-ignore
|
1770
|
+
var isWindowToastFucExist = typeof window.showToastMessage === 'function';
|
1771
|
+
if (isWindowToastFucExist) {
|
1772
|
+
var msgType = type === 'success' ? 'success' : 'alert';
|
1773
|
+
//@ts-ignore
|
1774
|
+
window.showToastMessage(message, msgType);
|
1775
|
+
return false;
|
1776
|
+
}
|
1768
1777
|
switch (type) {
|
1769
1778
|
case 'info':
|
1770
1779
|
return toast.info(toastGen({
|
@@ -15482,5 +15491,28 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
15482
15491
|
}))));
|
15483
15492
|
};
|
15484
15493
|
|
15494
|
+
// import { use3dddPlus } from './store';
|
15495
|
+
// import { shallow } from 'zustand/shallow';
|
15496
|
+
var container = /*#__PURE__*/document.getElementById('root');
|
15497
|
+
var root = /*#__PURE__*/createRoot(container); // createRoot(container!) if you use TypeScript
|
15498
|
+
var MYApp = function MYApp() {
|
15499
|
+
// const [selectedStepper] = use3dddPlus(state => [state.selectedStepper], shallow)
|
15500
|
+
var customerId = "117015";
|
15501
|
+
//customerId="80217"corby
|
15502
|
+
return React.createElement(LogoEditor, {
|
15503
|
+
stepperId: 1,
|
15504
|
+
onApply: undefined,
|
15505
|
+
customLogoColorList: undefined,
|
15506
|
+
defaultColorList: undefined,
|
15507
|
+
logoData: undefined,
|
15508
|
+
customerId: customerId,
|
15509
|
+
onSaveLogo: undefined,
|
15510
|
+
onClose: function onClose() {
|
15511
|
+
console.log('1212i');
|
15512
|
+
}
|
15513
|
+
});
|
15514
|
+
};
|
15515
|
+
root.render(React.createElement(MYApp, null));
|
15516
|
+
|
15485
15517
|
export { index$1 as Components, LoadGoogleFonts as GoogleFontLoader, LogoEditor, index as services, use3dddPlus };
|
15486
15518
|
//# sourceMappingURL=logoeditor.esm.js.map
|