@arquimedes.co/eureka-forms 1.0.7-test → 1.0.8-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,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
- console.log(customSteps);
73
72
  var _f = useState(undefined), form = _f[0], setForm = _f[1];
74
73
  var _g = useState({}), originalValues = _g[0], setOriginalValues = _g[1];
75
74
  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),
@@ -221,7 +220,9 @@ var updateValue = function (idStep, values, form, customSteps) {
221
220
  }
222
221
  default:
223
222
  console.log('CustomSteps:', customSteps);
224
- var custom = customSteps[idStep];
223
+ console.log('values');
224
+ console.log('STEP', step);
225
+ var custom = customSteps[step.type];
225
226
  console.log('UPDATE:', custom);
226
227
  if (custom !== undefined) {
227
228
  custom.updateValue(idStep, values, form);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version":"1.0.7-test",
4
+ "version":"1.0.8-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",