@threedddplus/logoeditor 0.0.215 → 0.0.216

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.
@@ -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 () {
@@ -1764,7 +1765,16 @@ var SnapToCenter = function SnapToCenter(props) {
1764
1765
  })(props);
1765
1766
  };
1766
1767
 
1768
+ console.log('Toast instance:', toast);
1767
1769
  function CustomToast(type, message, toastId, style) {
1770
+ //@ts-ignore
1771
+ var isWindowToastFucExist = typeof window.showToastMessage === 'function';
1772
+ if (isWindowToastFucExist) {
1773
+ var msgType = type === 'success' ? 'success' : 'alert';
1774
+ //@ts-ignore
1775
+ window.showToastMessage(message, msgType);
1776
+ return false;
1777
+ }
1768
1778
  switch (type) {
1769
1779
  case 'info':
1770
1780
  return toast.info(toastGen({
@@ -15482,5 +15492,28 @@ var LogoEditor = function LogoEditor(_ref) {
15482
15492
  }))));
15483
15493
  };
15484
15494
 
15495
+ // import { use3dddPlus } from './store';
15496
+ // import { shallow } from 'zustand/shallow';
15497
+ var container = /*#__PURE__*/document.getElementById('root');
15498
+ var root = /*#__PURE__*/createRoot(container); // createRoot(container!) if you use TypeScript
15499
+ var MYApp = function MYApp() {
15500
+ // const [selectedStepper] = use3dddPlus(state => [state.selectedStepper], shallow)
15501
+ var customerId = "117015";
15502
+ //customerId="80217"corby
15503
+ return React.createElement(LogoEditor, {
15504
+ stepperId: 1,
15505
+ onApply: undefined,
15506
+ customLogoColorList: undefined,
15507
+ defaultColorList: undefined,
15508
+ logoData: undefined,
15509
+ customerId: customerId,
15510
+ onSaveLogo: undefined,
15511
+ onClose: function onClose() {
15512
+ console.log('1212i');
15513
+ }
15514
+ });
15515
+ };
15516
+ root.render(React.createElement(MYApp, null));
15517
+
15485
15518
  export { index$1 as Components, LoadGoogleFonts as GoogleFontLoader, LogoEditor, index as services, use3dddPlus };
15486
15519
  //# sourceMappingURL=logoeditor.esm.js.map