@arquimedes.co/eureka-forms 1.0.8-test → 1.1.2-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.js
CHANGED
|
@@ -69,6 +69,8 @@ function App(_a) {
|
|
|
69
69
|
var _this = this;
|
|
70
70
|
var _b, _c, _d, _e;
|
|
71
71
|
var apiKey = _a.apiKey, domain = _a.domain, preview = _a.preview, formData = _a.formData, postview = _a.postview, isWidget = _a.isWidget, internal = _a.internal, valuesData = _a.valuesData, customSteps = _a.customSteps, handleConfirmed = _a.handleConfirmed, others = __rest(_a, ["apiKey", "domain", "preview", "formData", "postview", "isWidget", "internal", "valuesData", "customSteps", "handleConfirmed"]);
|
|
72
|
+
// eslint-disable-next-line no-console
|
|
73
|
+
console.log('PROPS:', { formData: formData, customSteps: customSteps });
|
|
72
74
|
var _f = useState(undefined), form = _f[0], setForm = _f[1];
|
|
73
75
|
var _g = useState({}), originalValues = _g[0], setOriginalValues = _g[1];
|
|
74
76
|
var _h = useState(undefined), organizationInfo = _h[0], setOrganizationInfo = _h[1];
|
|
@@ -191,7 +191,10 @@ var mapOriginal = function (values, form) {
|
|
|
191
191
|
return newValues;
|
|
192
192
|
};
|
|
193
193
|
var updateValue = function (idStep, values, form, customSteps) {
|
|
194
|
+
console.log('FORM', form);
|
|
194
195
|
var step = form.steps[idStep];
|
|
196
|
+
console.log('idStep', idStep);
|
|
197
|
+
console.log('STEP:', step);
|
|
195
198
|
switch (step === null || step === void 0 ? void 0 : step.type) {
|
|
196
199
|
case Types.TEXTAREA: {
|
|
197
200
|
var value = values[step.id];
|
|
@@ -219,10 +222,12 @@ var updateValue = function (idStep, values, form, customSteps) {
|
|
|
219
222
|
break;
|
|
220
223
|
}
|
|
221
224
|
default:
|
|
222
|
-
console
|
|
223
|
-
console.log(
|
|
224
|
-
console
|
|
225
|
+
// eslint-disable-next-line no-console
|
|
226
|
+
console.log(customSteps);
|
|
227
|
+
// eslint-disable-next-line no-console
|
|
228
|
+
console.log('TYPE', step.type);
|
|
225
229
|
var custom = customSteps[step.type];
|
|
230
|
+
// eslint-disable-next-line no-console
|
|
226
231
|
console.log('UPDATE:', custom);
|
|
227
232
|
if (custom !== undefined) {
|
|
228
233
|
custom.updateValue(idStep, values, form);
|
package/package.json
CHANGED