impaktapps-ui-builder 0.0.963-copyElement.1028 → 0.0.963-copyElement.1030

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.963-copyElement.1028",
3
+ "version": "0.0.963-copyElement.1030",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -248,9 +248,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
248
248
  },
249
249
  ElementPathSetter: function(uiSchema: any,copiedFormData?: any){
250
250
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
251
- const completePath = formData.pageName.split('>').map(item => item.trim());
252
- const componentName = completePath[completePath.length - 2];
253
- const elementHeading = formData.name ? `Copied Element: ${formData.name}` : `Copied Event: ${componentName} Event Type: ${formData.eventType} `;
251
+ const elementHeading = formData.name ? `Copied Element: ${formData.name}` : `Event Type: ${formData.eventType} `;
254
252
  uiSchema.elements[2].elements[1].config.main.heading = elementHeading;
255
253
  }
256
254
  }
@@ -85,17 +85,15 @@ export default (
85
85
  ...functionsName
86
86
  ]
87
87
  }
88
+ if (sessionStorage.getItem("copiedConfig") ) {
89
+ Component(store, dynamicData, submitHandler, service).ElementPathSetter(uiSchema);
90
+ }
88
91
  store.setSchema(schema)
89
92
  store.setUiSchema(uiSchema)
90
93
  },
91
94
 
92
95
  getFormData: Component(store, dynamicData, submitHandler, service).getFormdata,
93
96
  getUiSchema: function () {
94
- const UiSchema = _.cloneDeep(EventUiSchema(store.theme.myTheme))
95
- if (sessionStorage.getItem("copiedConfig") ) {
96
- Component(store, dynamicData, submitHandler, service).ElementPathSetter(UiSchema);
97
- }
98
- store.setUiSchema(UiSchema);
99
97
  return EventUiSchema;
100
98
  },
101
99
  getSchema: () => {