impaktapps-ui-builder 0.0.382-alpha.332 → 0.0.382-alpha.334

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.
@@ -1,5 +1,8 @@
1
1
  import { handlersProps } from "./interface";
2
- export declare const executeEvents: (params: handlersProps) => Promise<any>;
2
+ export declare const executeEvents: (params: handlersProps) => Promise<{
3
+ response: any;
4
+ events: any;
5
+ }>;
3
6
  export declare function executeRefreshHandler(params: handlersProps): Promise<void>;
4
7
  export declare function buildApiPayload(compConfig: any, body: any, headers: any, store: any, dynamicData: any, userValue: any, service: any): Promise<{
5
8
  body: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.382-alpha.332",
3
+ "version": "0.0.382-alpha.334",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -26,7 +26,7 @@ export const executeEvents = async (
26
26
  await executeEvents({ ...params, config: actionConfig, parentEventOutput: finalResponse })
27
27
  }
28
28
  }
29
- return finalResponse;
29
+ finalResponse;
30
30
  }
31
31
 
32
32
  async function executeEventsHandler(params: handlersProps) {
@@ -230,6 +230,6 @@ function asyncOperation() {
230
230
  resolve("Operation completed successfully!");
231
231
  reject(new Error("Operation failed!"));
232
232
  }
233
- }, 400);
233
+ }, 50);
234
234
  });
235
235
  }
@@ -228,8 +228,12 @@ export default (funcParams: funcParamsProps) => {
228
228
  funcParams.dynamicData.path.split(".")[0];
229
229
  if (eventGroups?.[eventType]?.[path] !== undefined) {
230
230
  for (const eventConfig of eventGroups?.[eventType]?.[path]) {
231
- executeEventsParameters.store.functionParameters = functionParameters;
232
- await debouncedExecuteEvents(eventConfig, path);
231
+ executeEventsParameters.store.functionParameters = functionParameters
232
+ await executeEvents({
233
+ ...executeEventsParameters,
234
+ config: eventConfig,
235
+ componentName: path
236
+ })
233
237
  }
234
238
  }
235
239
  },