@arquimedes.co/eureka-forms 2.0.0-test → 2.0.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.
@@ -13,4 +13,5 @@ export declare const addMapperStep: <Type>(step: Mapper, customSteps: Record<str
13
13
  steps: Record<string, FormStep>;
14
14
  };
15
15
  export declare function calcRecursiveData<Type>(element: Readonly<MapperElement<Type>>, newSteps: Record<string, FormStep>, customSteps: Record<string, CustomStep>): void;
16
+ export declare const mapOriginalValue: (step: FormStep, value: any, values: ValuesStore, form?: Form) => any;
16
17
  export declare const calcInitialSections: (form: Form) => Pick<SiteState, 'previousSections' | 'idCurrentSection' | 'nextSections'>;
@@ -103,7 +103,7 @@ export function calcRecursiveData(element, newSteps, customSteps) {
103
103
  calcSubSteps(step, function (idStep) { var _a; return (_a = element.ids[idStep]) !== null && _a !== void 0 ? _a : idStep; });
104
104
  }
105
105
  }
106
- var mapOriginalValue = function (step, value, values, form) {
106
+ export var mapOriginalValue = function (step, value, values, form) {
107
107
  var _a, _b, _c, _d, _e, _f;
108
108
  if (!value)
109
109
  return value;
@@ -9,7 +9,6 @@ export interface CustomStepProps extends StepProps, UseFormReturn, GlobalState {
9
9
  }
10
10
  export interface CustomStep {
11
11
  componentProps?: Record<string, any>;
12
- originalValues: Record<string, any>;
13
12
  component: (props: CustomStepProps) => JSX.Element;
14
13
  calcValue?: (step: any, value: any) => any;
15
14
  /** Function to change custom steps nested step ids to the generated ones. */
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":"2.0.0-test",
4
+ "version":"2.0.1-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",