@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.
- package/dist/components/customToast/customToast.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/logoeditor.cjs.development.js +33 -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 +33 -0
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +133 -133
@@ -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): 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 () {
|
@@ -1772,7 +1773,16 @@ var SnapToCenter = function SnapToCenter(props) {
|
|
1772
1773
|
})(props);
|
1773
1774
|
};
|
1774
1775
|
|
1776
|
+
console.log('Toast instance:', reactToastify.toast);
|
1775
1777
|
function CustomToast(type, message, toastId, style) {
|
1778
|
+
//@ts-ignore
|
1779
|
+
var isWindowToastFucExist = typeof window.showToastMessage === 'function';
|
1780
|
+
if (isWindowToastFucExist) {
|
1781
|
+
var msgType = type === 'success' ? 'success' : 'alert';
|
1782
|
+
//@ts-ignore
|
1783
|
+
window.showToastMessage(message, msgType);
|
1784
|
+
return false;
|
1785
|
+
}
|
1776
1786
|
switch (type) {
|
1777
1787
|
case 'info':
|
1778
1788
|
return reactToastify.toast.info(toastGen({
|
@@ -15490,6 +15500,29 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
15490
15500
|
}))));
|
15491
15501
|
};
|
15492
15502
|
|
15503
|
+
// import { use3dddPlus } from './store';
|
15504
|
+
// import { shallow } from 'zustand/shallow';
|
15505
|
+
var container = /*#__PURE__*/document.getElementById('root');
|
15506
|
+
var root = /*#__PURE__*/client.createRoot(container); // createRoot(container!) if you use TypeScript
|
15507
|
+
var MYApp = function MYApp() {
|
15508
|
+
// const [selectedStepper] = use3dddPlus(state => [state.selectedStepper], shallow)
|
15509
|
+
var customerId = "117015";
|
15510
|
+
//customerId="80217"corby
|
15511
|
+
return React__default.createElement(LogoEditor, {
|
15512
|
+
stepperId: 1,
|
15513
|
+
onApply: undefined,
|
15514
|
+
customLogoColorList: undefined,
|
15515
|
+
defaultColorList: undefined,
|
15516
|
+
logoData: undefined,
|
15517
|
+
customerId: customerId,
|
15518
|
+
onSaveLogo: undefined,
|
15519
|
+
onClose: function onClose() {
|
15520
|
+
console.log('1212i');
|
15521
|
+
}
|
15522
|
+
});
|
15523
|
+
};
|
15524
|
+
root.render(React__default.createElement(MYApp, null));
|
15525
|
+
|
15493
15526
|
exports.Components = index$1;
|
15494
15527
|
exports.GoogleFontLoader = LoadGoogleFonts;
|
15495
15528
|
exports.LogoEditor = LogoEditor;
|