@arquimedes.co/eureka-forms 3.0.29-test → 3.0.30-test
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/dist/App/AppHooks.js +17 -3
- package/dist/main.js +7 -5
- package/package.json +1 -1
package/dist/App/AppHooks.js
CHANGED
|
@@ -115,12 +115,26 @@ export const useSetupApp = (isEmbedded, props) => {
|
|
|
115
115
|
useEffect(() => {
|
|
116
116
|
void loadData();
|
|
117
117
|
// eslint-disable-next-line no-console
|
|
118
|
-
console.log('Changed!');
|
|
118
|
+
console.log('Form props Changed!');
|
|
119
119
|
return () => {
|
|
120
120
|
dispatch({ type: 'CLEAR' });
|
|
121
121
|
};
|
|
122
122
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
123
|
-
}, [
|
|
123
|
+
}, [
|
|
124
|
+
dispatch,
|
|
125
|
+
preview,
|
|
126
|
+
internal,
|
|
127
|
+
postview,
|
|
128
|
+
partial,
|
|
129
|
+
editable,
|
|
130
|
+
handleConfirmed,
|
|
131
|
+
customSteps,
|
|
132
|
+
valuesData,
|
|
133
|
+
apiKey,
|
|
134
|
+
formData,
|
|
135
|
+
classifiers,
|
|
136
|
+
idCurrentAgent,
|
|
137
|
+
]);
|
|
124
138
|
const reload = useCallback(() => {
|
|
125
139
|
if (!form)
|
|
126
140
|
return;
|
|
@@ -137,7 +151,7 @@ export const useSetupApp = (isEmbedded, props) => {
|
|
|
137
151
|
return {
|
|
138
152
|
form,
|
|
139
153
|
organization,
|
|
140
|
-
branding: organization?.customBrandings ?
|
|
154
|
+
branding: organization?.customBrandings ? form?.branding ?? organization.branding : organization?.branding,
|
|
141
155
|
reload,
|
|
142
156
|
};
|
|
143
157
|
};
|
package/dist/main.js
CHANGED
|
@@ -16,8 +16,10 @@ if (values) {
|
|
|
16
16
|
console.error('Invalid data-values JSON', error);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
const idOrganization = urlParams.get('idOrganization') ?? undefined;
|
|
20
|
+
const scrollToTop = () => {
|
|
21
|
+
location.href = '#';
|
|
22
|
+
location.href = '#eureka-root';
|
|
23
|
+
location.href = '#';
|
|
24
|
+
};
|
|
25
|
+
ReactDOM.createRoot(document.getElementById('eureka-root')).render(_jsx("div", { className: styles.eurekaForm, children: _jsx(App, { isWidget: false, idOrganization: idOrganization, apiKey: window.location.pathname.replace('/', ''), valuesData: dataValues, scrollToTop: scrollToTop }) }));
|
package/package.json
CHANGED