@arquimedes.co/eureka-forms 1.5.3-test → 1.5.6-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.d.ts CHANGED
@@ -29,6 +29,7 @@ export interface AppProps {
29
29
  handleConfirmed?: Function;
30
30
  }
31
31
  export interface CustomStep {
32
+ componentProps?: Record<string, any>;
32
33
  component: ReactNode;
33
34
  updateValue: (idStep: string, values: Record<string, any>, form: Form) => void;
34
35
  }
@@ -235,8 +235,8 @@ var updateValue = function (idStep, values, form, customSteps) {
235
235
  break;
236
236
  }
237
237
  default:
238
- if (step.type === 'CBR_INCIDENCIAS') {
239
- values[step.id] = (_a = values[step.id]) === null || _a === void 0 ? void 0 : _a.map(function (inmueble) { return inmueble.deleted !== false; });
238
+ if ((step === null || step === void 0 ? void 0 : step.type) === 'CBR_INCIDENCIAS') {
239
+ values[step.id] = (_a = values[step.id]) === null || _a === void 0 ? void 0 : _a.filter(function (inmueble) { return inmueble.deleted !== false; });
240
240
  }
241
241
  break;
242
242
  }
@@ -33,10 +33,11 @@ import FileUploadStep from './FileUploadStep/FileUploadStep';
33
33
  import CheckBoxStep from './CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep';
34
34
  import CBRStepMapper from './CBRStepMapper';
35
35
  function StepComponent(_a) {
36
+ var _b;
36
37
  var step = _a.step, props = __rest(_a, ["step"]);
37
38
  var customStep = props.customSteps[step.type];
38
39
  if (customStep) {
39
- return customStep.component(__assign({ step: step }, props));
40
+ return customStep.component(__assign(__assign({ step: step }, props), ((_b = customStep.componentProps) !== null && _b !== void 0 ? _b : {})));
40
41
  }
41
42
  switch (step.type) {
42
43
  case Types.TITLE: {
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.5.3-test",
4
+ "version":"1.5.6-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",