@arquimedes.co/eureka-forms 1.9.24-test → 1.9.25-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.
@@ -72,19 +72,19 @@ import widgetInstance from '../../../AxiosWidget';
72
72
  import React from 'react';
73
73
  function ColumnForm(_a) {
74
74
  var _this = this;
75
- var _b, _c;
75
+ var _b;
76
76
  var form = _a.form, apiKey = _a.apiKey, reload = _a.reload, domain = _a.domain, postview = _a.postview, internal = _a.internal, formStyle = _a.formStyle, sendLabel = _a.sendLabel, widthStats = _a.widthStats, customSteps = _a.customSteps, customSend = _a.customSend, customForm = _a.customForm, handleLoaded = _a.handleLoaded, originalValues = _a.originalValues, others = __rest(_a, ["form", "apiKey", "reload", "domain", "postview", "internal", "formStyle", "sendLabel", "widthStats", "customSteps", "customSend", "customForm", "handleLoaded", "originalValues"]);
77
- var _d = useState(false), tempError = _d[0], setTempError = _d[1];
78
- var _e = useState(calcDependencies(form.steps, originalValues)), dependencyStore = _e[0], setDependencyStore = _e[1];
79
- var _f = (_c = (_b = customForm === null || customForm === void 0 ? void 0 : customForm.useForm) === null || _b === void 0 ? void 0 : _b.call(customForm, mapOriginalValues(originalValues, form))) !== null && _c !== void 0 ? _c : useForm({
77
+ var _c = useState(false), tempError = _c[0], setTempError = _c[1];
78
+ var _d = useState(calcDependencies(form.steps, originalValues)), dependencyStore = _d[0], setDependencyStore = _d[1];
79
+ var _e = (_b = customForm === null || customForm === void 0 ? void 0 : customForm.form) !== null && _b !== void 0 ? _b : useForm({
80
80
  defaultValues: mapOriginalValues(originalValues, form),
81
81
  mode: 'onTouched',
82
82
  shouldFocusError: true,
83
- }), getValues = _f.getValues, setValue = _f.setValue, clearErrors = _f.clearErrors, control = _f.control, errors = _f.formState.errors, trigger = _f.trigger;
83
+ }), getValues = _e.getValues, setValue = _e.setValue, clearErrors = _e.clearErrors, control = _e.control, errors = _e.formState.errors, trigger = _e.trigger;
84
84
  var recaptchaRef = useRef();
85
- var _g = useState(undefined), sections = _g[0], setSections = _g[1];
86
- var _h = useState(false), loading = _h[0], setLoading = _h[1];
87
- var _j = useState(), showConfirmation = _j[0], setShowConfirmation = _j[1];
85
+ var _f = useState(undefined), sections = _f[0], setSections = _f[1];
86
+ var _g = useState(false), loading = _g[0], setLoading = _g[1];
87
+ var _h = useState(), showConfirmation = _h[0], setShowConfirmation = _h[1];
88
88
  useEffect(function () {
89
89
  var tempSections = [];
90
90
  calcNextSection(form, form.firstSection, tempSections);
@@ -15,7 +15,7 @@ export interface FormComponentProps {
15
15
  customSteps: Record<string, CustomStep>;
16
16
  customSend?: (values: any, reload: Function) => Promise<void>;
17
17
  customForm?: {
18
- useForm?: (originalValues: Record<string, unknown>) => any;
18
+ form?: any;
19
19
  submit?: JSX.Element;
20
20
  };
21
21
  widthStats: WidthStats;
@@ -5,3 +5,4 @@ export type { StepProps, EurekaFormProps };
5
5
  export { EurekaForm, StepFunctions };
6
6
  export default EurekaForm;
7
7
  export { default as ReactFromModule } from 'react';
8
+ export { mapOriginalValues } from './FormComponents/Form/ColumnForm/ColumnForm';
package/dist/index.lib.js CHANGED
@@ -3,3 +3,4 @@ import * as StepFunctions from './FormComponents/Step/StepFunctions';
3
3
  export { EurekaForm, StepFunctions };
4
4
  export default EurekaForm;
5
5
  export { default as ReactFromModule } from 'react';
6
+ export { mapOriginalValues } from './FormComponents/Form/ColumnForm/ColumnForm';
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.24-test",
4
+ "version":"1.9.25-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",