@arquimedes.co/eureka-forms 1.1.1-test → 1.1.4
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,8 +69,6 @@ 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 });
|
|
74
72
|
var _f = useState(undefined), form = _f[0], setForm = _f[1];
|
|
75
73
|
var _g = useState({}), originalValues = _g[0], setOriginalValues = _g[1];
|
|
76
74
|
var _h = useState(undefined), organizationInfo = _h[0], setOrganizationInfo = _h[1];
|
|
@@ -112,6 +112,10 @@ function ColumnForm(_a) {
|
|
|
112
112
|
idStep = _a[_i];
|
|
113
113
|
updateValue(idStep, values, form, customSteps);
|
|
114
114
|
}
|
|
115
|
+
if (internal) {
|
|
116
|
+
// eslint-disable-next-line no-console
|
|
117
|
+
console.log('UPDATED:', values);
|
|
118
|
+
}
|
|
115
119
|
payload = {
|
|
116
120
|
formValues: { steps: values },
|
|
117
121
|
};
|
|
@@ -191,9 +195,7 @@ var mapOriginal = function (values, form) {
|
|
|
191
195
|
return newValues;
|
|
192
196
|
};
|
|
193
197
|
var updateValue = function (idStep, values, form, customSteps) {
|
|
194
|
-
console.log('FORM', form);
|
|
195
198
|
var step = form.steps[idStep];
|
|
196
|
-
console.log('STEP:', step);
|
|
197
199
|
switch (step === null || step === void 0 ? void 0 : step.type) {
|
|
198
200
|
case Types.TEXTAREA: {
|
|
199
201
|
var value = values[step.id];
|
|
@@ -221,13 +223,7 @@ var updateValue = function (idStep, values, form, customSteps) {
|
|
|
221
223
|
break;
|
|
222
224
|
}
|
|
223
225
|
default:
|
|
224
|
-
|
|
225
|
-
console.log(customSteps);
|
|
226
|
-
// eslint-disable-next-line no-console
|
|
227
|
-
console.log('TYPE', step.type);
|
|
228
|
-
var custom = customSteps[step.type];
|
|
229
|
-
// eslint-disable-next-line no-console
|
|
230
|
-
console.log('UPDATE:', custom);
|
|
226
|
+
var custom = customSteps[step === null || step === void 0 ? void 0 : step.type];
|
|
231
227
|
if (custom !== undefined) {
|
|
232
228
|
custom.updateValue(idStep, values, form);
|
|
233
229
|
}
|
package/package.json
CHANGED