@arquimedes.co/eureka-forms 1.0.7-test → 1.1.1-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,7 +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
|
-
console
|
|
72
|
+
// eslint-disable-next-line no-console
|
|
73
|
+
console.log('PROPS:', { formData: formData, customSteps: customSteps });
|
|
73
74
|
var _f = useState(undefined), form = _f[0], setForm = _f[1];
|
|
74
75
|
var _g = useState({}), originalValues = _g[0], setOriginalValues = _g[1];
|
|
75
76
|
var _h = useState(undefined), organizationInfo = _h[0], setOrganizationInfo = _h[1];
|
|
@@ -71,7 +71,6 @@ import widgetInstance from '../../../AxiosWidget';
|
|
|
71
71
|
function ColumnForm(_a) {
|
|
72
72
|
var _this = this;
|
|
73
73
|
var form = _a.form, apiKey = _a.apiKey, reload = _a.reload, domain = _a.domain, postview = _a.postview, internal = _a.internal, formStyle = _a.formStyle, widthStats = _a.widthStats, customSteps = _a.customSteps, originalValues = _a.originalValues, others = __rest(_a, ["form", "apiKey", "reload", "domain", "postview", "internal", "formStyle", "widthStats", "customSteps", "originalValues"]);
|
|
74
|
-
console.log(customSteps);
|
|
75
74
|
var _b = useState(false), tempError = _b[0], setTempError = _b[1];
|
|
76
75
|
var _c = useForm({
|
|
77
76
|
defaultValues: mapOriginal(originalValues, form),
|
|
@@ -192,7 +191,9 @@ var mapOriginal = function (values, form) {
|
|
|
192
191
|
return newValues;
|
|
193
192
|
};
|
|
194
193
|
var updateValue = function (idStep, values, form, customSteps) {
|
|
194
|
+
console.log('FORM', form);
|
|
195
195
|
var step = form.steps[idStep];
|
|
196
|
+
console.log('STEP:', step);
|
|
196
197
|
switch (step === null || step === void 0 ? void 0 : step.type) {
|
|
197
198
|
case Types.TEXTAREA: {
|
|
198
199
|
var value = values[step.id];
|
|
@@ -220,8 +221,12 @@ var updateValue = function (idStep, values, form, customSteps) {
|
|
|
220
221
|
break;
|
|
221
222
|
}
|
|
222
223
|
default:
|
|
223
|
-
console
|
|
224
|
-
|
|
224
|
+
// eslint-disable-next-line no-console
|
|
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
|
|
225
230
|
console.log('UPDATE:', custom);
|
|
226
231
|
if (custom !== undefined) {
|
|
227
232
|
custom.updateValue(idStep, values, form);
|
package/package.json
CHANGED