impaktapps-ui-builder 0.0.88 → 0.0.90

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.88",
3
+ "version": "0.0.90",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -146,7 +146,7 @@ function executeCustomHandler(params: handlersProps) {
146
146
  }
147
147
 
148
148
  function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any, service: any, formDataHolder: any) {
149
- if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
149
+ if (eventConfig.type === "Select" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
150
150
  store.setSchema((pre) => {
151
151
  return {
152
152
  ...pre, properties: {
@@ -158,7 +158,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
158
158
  }
159
159
  })
160
160
  }
161
- else if (eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
161
+ else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
162
162
  store.setSchema((pre) => {
163
163
  return {
164
164
  ...pre, properties: {
@@ -93,7 +93,7 @@ export default (funcParams: funcParamsProps) => {
93
93
  const event = new CustomEvent('pageNameChanged', {
94
94
  detail: { pageName: config.label }
95
95
  });
96
- window.dispatchEvent(event)
96
+ // window.dispatchEvent(event)
97
97
  const theme = funcParams?.store?.theme?.myTheme;
98
98
  uiSchema.elements.push(
99
99
 
@@ -204,7 +204,6 @@ export default (funcParams: funcParamsProps) => {
204
204
  }
205
205
  );
206
206
  const schema = pageData?.schema ?? { type: "object", properties: {} };
207
- eventGroups = {}
208
207
  eventGroups = extractEvents(config);
209
208
  executeEventsParameters = {
210
209
  config: {}, componentName: "",