impaktapps-ui-builder 0.0.105-4.alpha-4 → 0.0.105-4.alpha-5

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.
@@ -5,6 +5,7 @@ interface funcParamsProps {
5
5
  userValue: any;
6
6
  pageDataProvider: any;
7
7
  functionsProvider?: Record<string, any>;
8
+ setExternaldata?: any;
8
9
  }
9
10
  export declare const extractEvents: (eventConfig: any) => any;
10
11
  declare const _default: (funcParams: funcParamsProps) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.1054.alpha-4",
3
+ "version": "0.0.1054.alpha-5",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -19,7 +19,8 @@ interface funcParamsProps {
19
19
  service: any,
20
20
  userValue: any,
21
21
  pageDataProvider: any,
22
- functionsProvider?: Record<string, any>
22
+ functionsProvider?: Record<string, any>,
23
+ setExternaldata?: any
23
24
  }
24
25
  let pageData: any = false;
25
26
  export const extractEvents = (eventConfig: any) => {
@@ -90,13 +91,15 @@ export default (funcParams: funcParamsProps) => {
90
91
  }
91
92
  const config = pageData?.config;
92
93
 
93
- const pathParts = funcParams.store.location.pathname.split("/");
94
- const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value;
95
- if (pathParts?.[1] === "page" && pathParts?.[2] === "program_name") {
96
- if(!programId){
97
- funcParams.store.setFormdata((pre) => ({ ...pre, programId: programId }));
98
- }
99
- }
94
+ // const pathParts = funcParams.store.location.pathname.split("/");
95
+ // const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value;
96
+ // if (pathParts?.[1] === "page" && pathParts?.[2] === "program_name") {
97
+ // if(programId){
98
+ // funcParams.store.setFormdata((pre) => ({ ...pre, programId: programId }));
99
+ // }
100
+ // }
101
+
102
+ funcParams?.setExternaldata();
100
103
 
101
104
  const uiSchema = pageData?.uiSchema;
102
105
  const event = new CustomEvent('pageNameChanged', {