@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.
@@ -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): React.Key;
6
+ export declare function CustomToast(type: 'info' | 'error' | 'warning' | 'success', message: string, toastId: number, style?: React.CSSProperties): string | number | false;
7
7
  export declare const toastGen: ({ type, message }: toastGenProps) => React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ import * as Components from './components';
3
3
  import * as services from './services';
4
4
  import LogoEditor from './LogoEditor';
5
5
  import GoogleFontLoader from './loaders/GoogleFontLoader';
6
+ import "./localDevelopment";
6
7
  export { LogoEditor, Components, use3dddPlus, services, GoogleFontLoader };
@@ -40,6 +40,7 @@ var Select__default = _interopDefault(Select);
40
40
  var flowbiteReact = require('flowbite-react');
41
41
  var reactColor = require('react-color');
42
42
  require('react-toastify/dist/ReactToastify.css');
43
+ var client = require('react-dom/client');
43
44
 
44
45
  function _regeneratorRuntime() {
45
46
  _regeneratorRuntime = function () {
@@ -1773,6 +1774,14 @@ var SnapToCenter = function SnapToCenter(props) {
1773
1774
  };
1774
1775
 
1775
1776
  function CustomToast(type, message, toastId, style) {
1777
+ //@ts-ignore
1778
+ var isWindowToastFucExist = typeof window.showToastMessage === 'function';
1779
+ if (isWindowToastFucExist) {
1780
+ var msgType = type === 'success' ? 'success' : 'alert';
1781
+ //@ts-ignore
1782
+ window.showToastMessage(message, msgType);
1783
+ return false;
1784
+ }
1776
1785
  switch (type) {
1777
1786
  case 'info':
1778
1787
  return reactToastify.toast.info(toastGen({
@@ -15490,6 +15499,29 @@ var LogoEditor = function LogoEditor(_ref) {
15490
15499
  }))));
15491
15500
  };
15492
15501
 
15502
+ // import { use3dddPlus } from './store';
15503
+ // import { shallow } from 'zustand/shallow';
15504
+ var container = /*#__PURE__*/document.getElementById('root');
15505
+ var root = /*#__PURE__*/client.createRoot(container); // createRoot(container!) if you use TypeScript
15506
+ var MYApp = function MYApp() {
15507
+ // const [selectedStepper] = use3dddPlus(state => [state.selectedStepper], shallow)
15508
+ var customerId = "117015";
15509
+ //customerId="80217"corby
15510
+ return React__default.createElement(LogoEditor, {
15511
+ stepperId: 1,
15512
+ onApply: undefined,
15513
+ customLogoColorList: undefined,
15514
+ defaultColorList: undefined,
15515
+ logoData: undefined,
15516
+ customerId: customerId,
15517
+ onSaveLogo: undefined,
15518
+ onClose: function onClose() {
15519
+ console.log('1212i');
15520
+ }
15521
+ });
15522
+ };
15523
+ root.render(React__default.createElement(MYApp, null));
15524
+
15493
15525
  exports.Components = index$1;
15494
15526
  exports.GoogleFontLoader = LoadGoogleFonts;
15495
15527
  exports.LogoEditor = LogoEditor;