@threedddplus/logoeditor 0.0.1

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.
Files changed (152) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +181 -0
  3. package/dist/axios/index.d.ts +10 -0
  4. package/dist/components/Rightmenu/Rightmenu.d.ts +3 -0
  5. package/dist/components/Rightmenu/imageEdit.d.ts +8 -0
  6. package/dist/components/Rightmenu/index.d.ts +2 -0
  7. package/dist/components/SortByDropdown/index.d.ts +2 -0
  8. package/dist/components/SortByDropdown/sortButton.d.ts +7 -0
  9. package/dist/components/SortByDropdown/sortByDropdown.d.ts +2 -0
  10. package/dist/components/addMascot/addMascot.d.ts +2 -0
  11. package/dist/components/addMascot/index.d.ts +1 -0
  12. package/dist/components/button/button.d.ts +8 -0
  13. package/dist/components/button/editButton.d.ts +8 -0
  14. package/dist/components/button/iconButton.d.ts +9 -0
  15. package/dist/components/button/index.d.ts +3 -0
  16. package/dist/components/canvas/canvas.d.ts +4 -0
  17. package/dist/components/canvas/canvasButtons.d.ts +3 -0
  18. package/dist/components/canvas/index.d.ts +1 -0
  19. package/dist/components/canvas/popUpCanvas.d.ts +2 -0
  20. package/dist/components/card/card.d.ts +9 -0
  21. package/dist/components/card/cardbody.d.ts +6 -0
  22. package/dist/components/card/cardcheckmark.d.ts +6 -0
  23. package/dist/components/card/carddescription.d.ts +6 -0
  24. package/dist/components/card/carddownloadicon.d.ts +8 -0
  25. package/dist/components/card/cardflag.d.ts +6 -0
  26. package/dist/components/card/cardmedia.d.ts +8 -0
  27. package/dist/components/card/cardtags.d.ts +6 -0
  28. package/dist/components/card/cardtitle.d.ts +6 -0
  29. package/dist/components/card/index.d.ts +9 -0
  30. package/dist/components/colorPallet/color.d.ts +2 -0
  31. package/dist/components/colorPallet/colorPalette.d.ts +22 -0
  32. package/dist/components/colorPallet/index.d.ts +2 -0
  33. package/dist/components/contextMenu/contextMenu.d.ts +2 -0
  34. package/dist/components/contextMenu/index.d.ts +1 -0
  35. package/dist/components/icon/addMascot.d.ts +2 -0
  36. package/dist/components/icon/addText.d.ts +2 -0
  37. package/dist/components/icon/copy.d.ts +2 -0
  38. package/dist/components/icon/custom.d.ts +29 -0
  39. package/dist/components/icon/customIcon.d.ts +2 -0
  40. package/dist/components/icon/delete.d.ts +2 -0
  41. package/dist/components/icon/designConcept.d.ts +2 -0
  42. package/dist/components/icon/error.d.ts +2 -0
  43. package/dist/components/icon/eyedropper.d.ts +2 -0
  44. package/dist/components/icon/flat.d.ts +2 -0
  45. package/dist/components/icon/flipH.d.ts +2 -0
  46. package/dist/components/icon/flipV.d.ts +2 -0
  47. package/dist/components/icon/horizontalFlip.d.ts +2 -0
  48. package/dist/components/icon/icon.d.ts +24 -0
  49. package/dist/components/icon/index.d.ts +39 -0
  50. package/dist/components/icon/info.d.ts +2 -0
  51. package/dist/components/icon/locationA.d.ts +2 -0
  52. package/dist/components/icon/locationB.d.ts +2 -0
  53. package/dist/components/icon/mascotObjectList.d.ts +1 -0
  54. package/dist/components/icon/myLogo.d.ts +2 -0
  55. package/dist/components/icon/outlineNone.d.ts +2 -0
  56. package/dist/components/icon/paste.d.ts +2 -0
  57. package/dist/components/icon/patch.d.ts +6 -0
  58. package/dist/components/icon/productColor.d.ts +2 -0
  59. package/dist/components/icon/rLogo.d.ts +2 -0
  60. package/dist/components/icon/selectAll.d.ts +2 -0
  61. package/dist/components/icon/sendAboveObject.d.ts +2 -0
  62. package/dist/components/icon/sendToBack.d.ts +2 -0
  63. package/dist/components/icon/sendToFront.d.ts +2 -0
  64. package/dist/components/icon/sendUnderObject.d.ts +2 -0
  65. package/dist/components/icon/shapes.d.ts +10 -0
  66. package/dist/components/icon/stockMascotObject.d.ts +2 -0
  67. package/dist/components/icon/success.d.ts +2 -0
  68. package/dist/components/icon/teamCustom.d.ts +2 -0
  69. package/dist/components/icon/teamDecoration.d.ts +2 -0
  70. package/dist/components/icon/teamLetters.d.ts +2 -0
  71. package/dist/components/icon/text.d.ts +2 -0
  72. package/dist/components/icon/threeDIcon.d.ts +2 -0
  73. package/dist/components/icon/verticalFlip.d.ts +2 -0
  74. package/dist/components/icon/warning.d.ts +2 -0
  75. package/dist/components/index.d.ts +8 -0
  76. package/dist/components/input/index.d.ts +1 -0
  77. package/dist/components/input/input.d.ts +3 -0
  78. package/dist/components/leftMenu/index.d.ts +1 -0
  79. package/dist/components/leftMenu/leftMenu.d.ts +2 -0
  80. package/dist/components/list/decoration-grid.d.ts +15 -0
  81. package/dist/components/list/decoration-list.d.ts +13 -0
  82. package/dist/components/list/index.d.ts +2 -0
  83. package/dist/components/loader/index.d.ts +1 -0
  84. package/dist/components/loader/loader.d.ts +6 -0
  85. package/dist/components/loader-svg/index.d.ts +3 -0
  86. package/dist/components/middleMenu/index.d.ts +1 -0
  87. package/dist/components/middleMenu/middleMenu.d.ts +4 -0
  88. package/dist/components/modal/index.d.ts +6 -0
  89. package/dist/components/modal/modal.d.ts +9 -0
  90. package/dist/components/modal/modalButtons.d.ts +11 -0
  91. package/dist/components/modal/modalDownloadIcon.d.ts +8 -0
  92. package/dist/components/modal/modalHeading.d.ts +6 -0
  93. package/dist/components/modal/modalLabel.d.ts +6 -0
  94. package/dist/components/modal/modalStatusIcon.d.ts +8 -0
  95. package/dist/components/myLogo/index.d.ts +1 -0
  96. package/dist/components/myLogo/myLogo.d.ts +4 -0
  97. package/dist/components/saveDesign/index.d.ts +2 -0
  98. package/dist/components/saveDesign/saveDesign.d.ts +3 -0
  99. package/dist/components/saveDesign/saveDesignModal.d.ts +6 -0
  100. package/dist/components/searchbar/index.d.ts +1 -0
  101. package/dist/components/searchbar/searchbar.d.ts +11 -0
  102. package/dist/components/skeletonLoaders/index.d.ts +1 -0
  103. package/dist/components/skeletonLoaders/loadADesignSkeleton.d.ts +3 -0
  104. package/dist/components/uploadLogo/fileuploadButton.d.ts +6 -0
  105. package/dist/components/uploadLogo/index.d.ts +1 -0
  106. package/dist/components/uploadLogo/uploadLogo.d.ts +2 -0
  107. package/dist/hooks/debounce/index.d.ts +1 -0
  108. package/dist/hooks/debounce/useDebounce.d.ts +1 -0
  109. package/dist/hooks/outsideAlerter.d.ts +6 -0
  110. package/dist/hooks/progressiveImage/index.d.ts +1 -0
  111. package/dist/hooks/progressiveImage/progressiveImage.d.ts +1 -0
  112. package/dist/index.d.ts +13 -0
  113. package/dist/index.js +8 -0
  114. package/dist/loaders/index.d.ts +0 -0
  115. package/dist/logoeditor.cjs.development.js +5890 -0
  116. package/dist/logoeditor.cjs.development.js.map +1 -0
  117. package/dist/logoeditor.cjs.production.min.js +2 -0
  118. package/dist/logoeditor.cjs.production.min.js.map +1 -0
  119. package/dist/logoeditor.esm.js +5880 -0
  120. package/dist/logoeditor.esm.js.map +1 -0
  121. package/dist/mockResponses/queries.d.ts +918 -0
  122. package/dist/services/UrlMapping.d.ts +9 -0
  123. package/dist/services/arrayFuntions.d.ts +7 -0
  124. package/dist/services/cookies.d.ts +3 -0
  125. package/dist/services/date.d.ts +1 -0
  126. package/dist/services/getDom.d.ts +1 -0
  127. package/dist/services/index.d.ts +6 -0
  128. package/dist/services/object.d.ts +1 -0
  129. package/dist/services/restrictSpecialCharacters.d.ts +1 -0
  130. package/dist/services/saveFile.d.ts +1 -0
  131. package/dist/services/sessionStorage.d.ts +3 -0
  132. package/dist/services/token.d.ts +4 -0
  133. package/dist/store/actions/index.d.ts +47 -0
  134. package/dist/store/actions/types.d.ts +6 -0
  135. package/dist/store/auth/index.d.ts +16 -0
  136. package/dist/store/converters/index.d.ts +15 -0
  137. package/dist/store/customize/types.d.ts +1191 -0
  138. package/dist/store/fabric/Popupcanvas.d.ts +2 -0
  139. package/dist/store/fabric/fabricCanvas.d.ts +2 -0
  140. package/dist/store/fabric/index.d.ts +49 -0
  141. package/dist/store/history/index.d.ts +9 -0
  142. package/dist/store/index.d.ts +11 -0
  143. package/dist/store/lambda/index.d.ts +9 -0
  144. package/dist/store/saveDesign/index.d.ts +17 -0
  145. package/dist/theme.d.ts +109 -0
  146. package/example/.npmignore +3 -0
  147. package/example/index.html +14 -0
  148. package/example/index.tsx +41 -0
  149. package/example/package.json +25 -0
  150. package/example/tsconfig.json +18 -0
  151. package/example/yarn.lock +5601 -0
  152. package/package.json +125 -0
@@ -0,0 +1,2 @@
1
+ import { fabric } from 'fabric';
2
+ export declare const Initpopup: () => fabric.Canvas;
@@ -0,0 +1,2 @@
1
+ import { fabric } from 'fabric';
2
+ export declare const initCanvas: () => fabric.Canvas;
@@ -0,0 +1,49 @@
1
+ import { StateCreator } from 'zustand';
2
+ export interface FabricSlice {
3
+ loading: Boolean;
4
+ selectedStepper?: any;
5
+ setSelectedStepper?: (selectedStepper: any) => void;
6
+ storeHistory: any;
7
+ count: number;
8
+ stockLogos: [];
9
+ retriveLogoDesign: [];
10
+ fabricCanvas: any;
11
+ popupCanv: any;
12
+ textInfo: string;
13
+ uploadImageModalDisplay: boolean;
14
+ currentSelection: string;
15
+ activeSelection: any;
16
+ selectedAll: boolean;
17
+ colorFill: any;
18
+ storeAllObject: [];
19
+ iconImage: string;
20
+ HideControls: any;
21
+ showContextMenu: boolean;
22
+ forStoringAllObject: (data: any) => void;
23
+ forIconCapture: () => void;
24
+ duplicateObject: () => void;
25
+ deleteButtonControls: () => void;
26
+ undo: () => void;
27
+ redo: () => void;
28
+ moveDown: (element: any) => void;
29
+ moveUp: (element: any) => void;
30
+ moveRight: (element: any) => void;
31
+ moveLeft: (element: any) => void;
32
+ applyColorFill: () => any;
33
+ updateModifaction: (saveHistory: boolean) => void;
34
+ nameCounter: any;
35
+ contextMenuCoordinates: {
36
+ x: number;
37
+ y: number;
38
+ };
39
+ stockLogoHandler: (e: any) => void;
40
+ testSVG: (data: any) => void;
41
+ myLogoHandler: (logo: any) => void;
42
+ loadingRetrivedFiles: (data: any) => void;
43
+ allColor: any;
44
+ uploadLogoConfig: (jsonConfig: any, customerId: any) => any;
45
+ logoData: any;
46
+ setLogoData: (logo: any) => void;
47
+ }
48
+ export declare const fabricSlice: StateCreator<FabricSlice>;
49
+ export default FabricSlice;
@@ -0,0 +1,9 @@
1
+ import { StateCreator } from 'zustand';
2
+ export interface HistorySlice {
3
+ history: string[];
4
+ current: string;
5
+ navigateTo: (page: string) => void;
6
+ goBack: () => void;
7
+ }
8
+ export declare const historySlice: StateCreator<HistorySlice>;
9
+ export default HistorySlice;
@@ -0,0 +1,11 @@
1
+ import { StateCreator } from 'zustand';
2
+ import { ActionSlice } from './actions';
3
+ import { LambdaSlice } from './lambda/index';
4
+ import SaveDesignSlice from './saveDesign';
5
+ import AuthSlice from './auth';
6
+ import HistorySlice from './history';
7
+ import FabricSlice from './fabric';
8
+ import ConverterSlice from './converters';
9
+ export declare type ThreedddPlus = ActionSlice & LambdaSlice & SaveDesignSlice & AuthSlice & HistorySlice & ConverterSlice & FabricSlice;
10
+ export declare const threedddPlusState: StateCreator<ThreedddPlus>;
11
+ export declare const use3dddPlus: any;
@@ -0,0 +1,9 @@
1
+ import { StateCreator } from 'zustand';
2
+ export interface LambdaSlice {
3
+ lambdaClient: any;
4
+ loadingLogo: (data: any) => void;
5
+ getStockLogos: () => void;
6
+ saveLogo: (data: any) => any;
7
+ }
8
+ declare const lambdaSlice: StateCreator<LambdaSlice>;
9
+ export default lambdaSlice;
@@ -0,0 +1,17 @@
1
+ import { StateCreator } from 'zustand';
2
+ export interface SaveDesignSlice {
3
+ disableSaveButton: boolean;
4
+ designNumber: string;
5
+ designImageUrl: string;
6
+ designProofPdfUrl: string;
7
+ designTag: string[];
8
+ designName: string;
9
+ designNotes: string;
10
+ designConfig: string;
11
+ designId: number;
12
+ hasDesignNumber: () => boolean;
13
+ showSaveCTA: boolean;
14
+ showSaveRackCTA: boolean;
15
+ }
16
+ export declare const saveDesignSlice: StateCreator<SaveDesignSlice>;
17
+ export default SaveDesignSlice;
@@ -0,0 +1,109 @@
1
+ export declare const PRIMARY_COLOR = "text-[#cf132b]";
2
+ export declare const SECONDARY_COLOR = "text-[#e11a38]";
3
+ export declare const BORDER_COLOR = "border-[#e0e0e0]";
4
+ export declare const BORDER_COLOR_1 = "border-[#ecebed]";
5
+ export declare const BORDER_COLOR_2 = "border-[#c2c2c2]";
6
+ export declare const BORDER_COLOR_3 = "border-[#e11a38]";
7
+ export declare const SIDEBAR_BG_COLOR = "bg-[#f7f7f7]";
8
+ export declare const SELECT_BG_COLOR = "bg-[#e11a38]";
9
+ export declare const BG_COLOR_1 = "bg-[#e11a38]";
10
+ export declare const SELECT_TEXT_COLOR = "text-white";
11
+ export declare const TEXT_SIZE_1 = "text-xs";
12
+ export declare const TEXT_SIZE_2 = "text-2xl";
13
+ export declare const TEXT_SIZE_3 = "text-[15px]";
14
+ export declare const TEXT_SIZE_4 = "text-[17px]";
15
+ export declare const TEXT_SIZE_5 = "text-[28px]";
16
+ export declare const TEXT_SIZE_6 = "text-[14px]";
17
+ export declare const TEXT_SIZE_7 = "text-[30px]";
18
+ export declare const TEXT_SIZE_8 = "text-[21px]";
19
+ export declare const TEXT_SIZE_9 = "text-[13px]";
20
+ export declare const TEXT_SIZE_11 = "text-[18px]";
21
+ export declare const TEXT_SIZE_12 = "text-[11px]";
22
+ export declare const TEXT_SIZE_13 = "text-[12px]";
23
+ export declare const TEXT_SIZE_14 = "text-[16px]";
24
+ export declare const TEXT_SIZE_15 = "text-[25px]";
25
+ export declare const TEXT_SIZE_16 = "text-[26px]";
26
+ export declare const TEXT_SIZE_17 = "text-[22px]";
27
+ export declare const TEXT_SIZE_18 = "text-[16px]";
28
+ export declare const ACTIVE_BG_COLOR = "bg-[#cf132b]";
29
+ export declare const BUTTON_TEXT_COLOR = "text-white";
30
+ export declare const BUTTON_BG_COLOR = "bg-black";
31
+ export declare const INPUT_BG_COLOR = "bg-white";
32
+ export declare const TEXT_COLOR_1 = "text-[#5d5d5d]";
33
+ export declare const BACKDROP_BLUR = "backdrop-blur-[21px]";
34
+ export declare const BACKDROP_BLUR_BG_COLOR = "bg-[#00000046]";
35
+ export declare const MODAL_BG_COLOR = "bg-[#ffffff]";
36
+ export declare const CARD_BG_COLOR = "bg-white";
37
+ export declare const INPUT_TEXT_DISABLE_COLOR = "text-slate-300";
38
+ export declare const CHECKBOX_CHECKED_COLOR = "#e11a38";
39
+ export declare const LOAD_DESIGN_BORDER_COLOR = "#e0e0e0";
40
+ export declare const LOAD_DESIGN_TEXT_COLOR = "text-[#e11a38]";
41
+ export declare const SEARCH_ICON_COLOR = "text-[#727272]";
42
+ export declare const SEARCHBAR_BORDER_COLOR = "border-[#bebebe]";
43
+ export declare const MY_DESIGN_TEXT_COLOR = "text-[#353535]";
44
+ export declare const SEARCH_TEXT_COLOR = "text-[#353535]";
45
+ export declare const NO_SEARCHRESULT_TEXT_COLOR_1 = "text-[#727272]";
46
+ export declare const NO_SEARCHRESULT_TEXT_COLOR_2 = "text-[#5d5d5d]";
47
+ export declare const CANVAS_MENU_TEXT = "text-[#353535]";
48
+ export declare const CANVAS_MENU_BORDER = "border-[#f4f4f4]";
49
+ export declare const CANVAS_MENU_BG_COLOR = "bg-white";
50
+ export declare const CANVAS_MENU_DROPDOWN_BG_COLOR = "bg-white";
51
+ export declare const DECORATION_BG_COLOR = "bg-[#F1F1F1]";
52
+ export declare const DROPDOWN_BACKGROUND_COLOR = "bg-[#FCE8EB]";
53
+ export declare const TAG_BG_COLOR = "bg-[#FCE8EB]";
54
+ export declare const TAG_TEXT_COLOR = "text-[#e11a38]";
55
+ export declare const CARD_LAST_UPDATE_COLOR = "text-[#727272]";
56
+ export declare const CARD_DOWNLAOD_ICON_COLOR = "text-[#353535]";
57
+ export declare const CARD_DESCRIPTION_COLOR = "text-[#353535]";
58
+ export declare const FOOTER_TEXT_COLOR = "text-[#ffffff]";
59
+ export declare const FOOTER_RACK_BG_COLOR = "bg-[#E21938]";
60
+ export declare const FOOTER_PRICE_COLOR = "text-[#353535]";
61
+ export declare const FOOTER_RACK_COUNT_COLOR = "text-[#E21938]";
62
+ export declare const FOOTER_ROSTER_COLOR = "text-[#353535]";
63
+ export declare const FOOTER_ROSTER_BORDER_COLOR = "border-[#353535]";
64
+ export declare const FOOTER_SUMMARY_BG_COLOR = "bg-[#353535]";
65
+ export declare const FOOTER_SUMMARY_TEXT_COLOR = "text-white";
66
+ export declare const CONFIRMDESIGN_DISCARD_BORDER_COLOR = "border-[#707070]";
67
+ export declare const CONFIRMDESIGN_TEXT_COLOR_1 = "text-[#5d5d5d]";
68
+ export declare const CONFIRMDESIGN_TEXT_COLOR_2 = "text-[#E11A38]";
69
+ export declare const CONFIRMDESIGN_TEXT_COLOR_3 = "text-[#353535]";
70
+ export declare const CONFIRMDESIGN_TEXT_COLOR_4 = "text-[#ffffff]";
71
+ export declare const CONFIRMDESIGN_SAVEBUTTON_BG_COLOR = "bg-[#E11A38]";
72
+ export declare const DESIGNSUCCESS_CLOSE_BORDER_COLOR = "border-[#707070]";
73
+ export declare const DESIGNSUCCESS_TEXT_COLOR_1 = "text-[#5d5d5d]";
74
+ export declare const DESIGNSUCCESS_TEXT_COLOR_2 = "text-[#E21938]";
75
+ export declare const DESIGNSUCCESS_TEXT_COLOR_3 = "text-[#353535]";
76
+ export declare const SAVERACK_BORDER_COLOR = "border-[#707070]";
77
+ export declare const SAVERACK_TEXT_COLOR = "text-[#707070]";
78
+ export declare const SAVEBUTTON_BG_COLOR = "bg-[#E11A38]";
79
+ export declare const TOASTER_SUCCESS_BG_COLOR = "bg-[#D5F2EA]";
80
+ export declare const TOASTER_FAILURE_BG_COLOR = "bg-[#FCE8EB]";
81
+ export declare const TOASTER_INFO_BG_COLOR = "bg-[#D5E9FA]";
82
+ export declare const TOASTER_WARNING_BG_COLOR = "bg-[#FFF8E7]";
83
+ export declare const RESET_BUTTON_BG_COLOR = "text-[#9A9A9A]";
84
+ export declare const PRODUCTINFO_TEXT_COLOR_1 = "text-[#353535]";
85
+ export declare const PRODUCTINFO_TEXT_COLOR_2 = "text-[#c2c2c2]";
86
+ export declare const PRODUCTINFO_TEXT_COLOR_3 = "text-[#e11a38]";
87
+ export declare const PRODUCTINFO_TEXT_COLOR_4 = "text-[#5d5d5d]";
88
+ export declare const UPDATESUCCESS_RACK_BORDER_COLOR = "border-[#E11938]";
89
+ export declare const UPDATESUCCESS_TEXT_COLOR_1 = "text-[#E11938]";
90
+ export declare const RACK_CARD_BORDER_COLOR = "border-[#e5e5e5]";
91
+ export declare const RACK_CARD_TEXT_COLOR_1 = "text-[#E11A38]";
92
+ export declare const RACK_CARD_TEXT_COLOR_2 = "text-[#353535]";
93
+ export declare const RACK_CARD_TEXT_COLOR_3 = "text-[#9f9f9f]";
94
+ export declare const RACK_CARD_MENU_TEXT = "text-[#353535]";
95
+ export declare const EDIT_DESIGN_INFO_TEXT_COLOR_1 = "text-[#E11A38]";
96
+ export declare const EDIT_DESIGN_INFO_TEXT_COLOR_2 = "text-[#727272]";
97
+ export declare const EDIT_DESIGN_INFO_TEXT_COLOR_3 = "text-[#353535]";
98
+ export declare const EDIT_DESIGN_INFO_TEXT_COLOR_4 = "text-[#ffffff]";
99
+ export declare const EDIT_DESIGN_INFO_INPUT_BORDER_COLOR = "border-[#ECEBED]";
100
+ export declare const EDIT_DESIGN_INFO_DISABLED_BG_COLOR_1 = "bg-[#F8F8F8]";
101
+ export declare const EDIT_DESIGN_INFO_BG_COLOR_2 = "bg-[#ffffff]";
102
+ export declare const EDIT_DESIGN_INFO_BG_COLOR_3 = "bg-[#e11a38]";
103
+ export declare const EDIT_DESIGN_INFO_BG_COLOR_4 = "bg-[#fce8eb]";
104
+ export declare const INPUT_ERROR_BORDER_COLOR = "border-[#E11A38]";
105
+ export declare const INPUT_ERROR_TEXT_COLOR = "text-[#E11A38]";
106
+ export declare const PRICEBREAKUP_TEXT_COLOR_1 = "text-[#353535]";
107
+ export declare const PRICEBREAKUP_TEXT_COLOR_2 = "text-[#747474]";
108
+ export declare const PRICEBREAKUP_TEXT_BORDER_COLOR_1 = "border-[#c2c2c2]";
109
+ export declare const PRICEBREAKUP_TEXT_BORDER_COLOR_2 = "border-[#ebebeb]";
@@ -0,0 +1,3 @@
1
+ node_modules
2
+ .cache
3
+ dist
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
7
+ <title>Playground</title>
8
+ </head>
9
+
10
+ <body>
11
+ <div id="root"></div>
12
+ <script src="./index.tsx"></script>
13
+ </body>
14
+ </html>
@@ -0,0 +1,41 @@
1
+ import 'react-app-polyfill/ie11';
2
+ import * as React from 'react';
3
+ import * as ReactDOM from 'react-dom';
4
+ import { Componnets, use3dddPlus } from '../.';
5
+ import { shallow } from 'zustand/shallow';
6
+
7
+ const App = () => {
8
+ const queryString = window.location.search;
9
+ const urlParams = new URLSearchParams(queryString);
10
+ const projectId = urlParams.get('projectId');
11
+ const productId = urlParams.get('productId');
12
+ const [accessToken] = use3dddPlus((state) => [state.accessToken], shallow);
13
+ const modelId = use3dddPlus((state) => state.modelId);
14
+
15
+ // API calls for Login in 3dddPlus
16
+ React.useEffect(() => {
17
+ if (!projectId) return;
18
+ // setCookie('projectId', projectId, 1);
19
+ use3dddPlus.getState().mutation.login(projectId);
20
+ }, [projectId]);
21
+
22
+ // API calls for Product Details and Varients Detail
23
+ React.useEffect(() => {
24
+ if (!accessToken) return;
25
+ use3dddPlus.getState().queries.getDetails(productId!, projectId!);
26
+ if (!modelId) return;
27
+ use3dddPlus.getState().queries.getVarientByModelId(modelId!);
28
+ }, [accessToken, modelId]);
29
+ return (
30
+ <div className="flex flex-col">
31
+ {/* {children ||
32
+ `You Should not see this Screen! If you're then the Customizer is still under maintainance`} */}
33
+ <div className="flex md:flex-row flex-col h-screen">
34
+ <Componnets.Canvas />
35
+ <Componnets.Sidebar />
36
+ </div>
37
+ </div>
38
+ );
39
+ };
40
+
41
+ ReactDOM.render(<App />, document.getElementById('root'));
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "example",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "license": "MIT",
6
+ "scripts": {
7
+ "start": "parcel index.html",
8
+ "build": "parcel build index.html"
9
+ },
10
+ "dependencies": {
11
+ "react-app-polyfill": "^1.0.0",
12
+ "zustand": "^4.3.9"
13
+ },
14
+ "alias": {
15
+ "react": "../node_modules/react",
16
+ "react-dom": "../node_modules/react-dom/profiling",
17
+ "scheduler/tracing": "../node_modules/scheduler/tracing-profiling"
18
+ },
19
+ "devDependencies": {
20
+ "@types/react": "^16.9.11",
21
+ "@types/react-dom": "^16.8.4",
22
+ "parcel": "1.12.3",
23
+ "typescript": "^3.4.5"
24
+ }
25
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowSyntheticDefaultImports": false,
4
+ "target": "es5",
5
+ "module": "commonjs",
6
+ "jsx": "react",
7
+ "moduleResolution": "node",
8
+ "noImplicitAny": false,
9
+ "noUnusedLocals": false,
10
+ "noUnusedParameters": false,
11
+ "removeComments": true,
12
+ "strictNullChecks": true,
13
+ "preserveConstEnums": true,
14
+ "sourceMap": true,
15
+ "lib": ["es2015", "es2016", "dom"],
16
+ "types": ["node"]
17
+ }
18
+ }