impaktapps-ui-builder 0.0.963-copyElement.1003 → 0.0.963-copyElement.1004

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.
@@ -16,8 +16,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
16
16
  backHandler: () => void;
17
17
  deletePopUpComponent: () => void;
18
18
  deletePopUpEvent: () => void;
19
- CopyComponent: (paramStore: any) => void;
20
- PasteComponent: (paramStore: any) => void;
19
+ CopyComponent: (paramStore?: any) => void;
20
+ PasteComponent: (paramStore?: any) => void;
21
21
  RemoveItemButton: (paramStore: any) => void;
22
22
  CopyEvent: (store: any) => void;
23
23
  PasteEvent: (store: any) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.963-copyElement.1003",
3
+ "version": "0.0.963-copyElement.1004",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -180,7 +180,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
180
180
 
181
181
 
182
182
 
183
- CopyComponent: function(paramStore){
183
+ CopyComponent: function(paramStore = store){
184
184
  if (sessionStorage.getItem("copiedConfig") ) {
185
185
  store.setNotify({
186
186
  FailMessage: "Element already copied. Cancel to copy again.",
@@ -208,7 +208,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
208
208
  }
209
209
  },
210
210
 
211
- PasteComponent: function(paramStore){
211
+ PasteComponent: function(paramStore = store){
212
212
  // const schema = cloneDeep(store.schema);
213
213
 
214
214
  const path = store.searchParams?.get("path");