@arquimedes.co/eureka-forms 1.9.81-test → 1.9.82-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
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Classifier, Form } from './@Types/Form';
3
+ import { FormStep } from './@Types/FormStep';
3
4
  export interface AppProps {
4
5
  /** If the app is currently a widget */
5
6
  isWidget?: boolean;
@@ -58,3 +59,4 @@ export declare const SizesToNum: {
58
59
  MEDIUM: number;
59
60
  SMALL: number;
60
61
  };
62
+ export declare const mapOriginalValue: (step: FormStep, value: any, form?: Form) => any;
package/dist/App.js CHANGED
@@ -427,7 +427,7 @@ var mapOriginalValues = function (originalValues, form) {
427
427
  }
428
428
  return newValues;
429
429
  };
430
- var mapOriginalValue = function (step, value, form) {
430
+ export var mapOriginalValue = function (step, value, form) {
431
431
  var _a, _b, _c, _d;
432
432
  switch (step === null || step === void 0 ? void 0 : step.type) {
433
433
  case StepTypes.TEXTAREA: {
@@ -443,7 +443,7 @@ var mapOriginalValue = function (step, value, form) {
443
443
  return value;
444
444
  }
445
445
  case StepTypes.CLASSIFIER_SELECTOR: {
446
- var stepClassifier = (_b = form.classifiers) === null || _b === void 0 ? void 0 : _b[(_c = step.idClassifier) !== null && _c !== void 0 ? _c : ''];
446
+ var stepClassifier = (_b = form === null || form === void 0 ? void 0 : form.classifiers) === null || _b === void 0 ? void 0 : _b[(_c = step.idClassifier) !== null && _c !== void 0 ? _c : ''];
447
447
  if (stepClassifier) {
448
448
  var classifier = (_d = form.classifiers) === null || _d === void 0 ? void 0 : _d[value];
449
449
  if (!(value === null || value === void 0 ? void 0 : value.value))
@@ -4,4 +4,5 @@ import { CustomStep } from '../../../App';
4
4
  import { FormStep } from '../../../@Types/FormStep';
5
5
  declare function ColumnForm({ form, apiKey, reload, domain, postview, internal, formStyle, sendLabel, widthStats, customSteps, customSend, customSubmit, handleLoaded, originalValues, ...others }: FormComponentProps): JSX.Element;
6
6
  export default ColumnForm;
7
+ export declare const calcValue: (idStep: string, steps: Record<string, FormStep>, values: Record<string, any>, customSteps: Record<string, CustomStep>, deleteIds: string[], value?: any) => any;
7
8
  export declare function calcStepDependencyValue(depStep: FormStep, originalValues: Record<string, any>, customSteps?: Record<string, CustomStep>): any;
@@ -225,7 +225,7 @@ function calcNextSection(form, idSection, sections) {
225
225
  }
226
226
  }
227
227
  }
228
- var calcValue = function (idStep, steps, values, customSteps, deleteIds, value) {
228
+ export var calcValue = function (idStep, steps, values, customSteps, deleteIds, value) {
229
229
  var _a, _b;
230
230
  if (value === void 0) { value = values[idStep]; }
231
231
  var step = steps[idStep];
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.9.81-test",
4
+ "version":"1.9.82-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",