intelicoreact 1.5.10 → 1.5.11

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.
@@ -35,6 +35,7 @@ const FormWithDependOn = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
35
35
  const [initialForm] = (0, _react.useState)((0, _utils.clone)(form));
36
36
  const safelySetForm = typeof setForm === "function" ? setForm : () => {};
37
37
  const safelyOnChange = typeof onChange === "function" ? onChange : () => {};
38
+ const getActualForm = () => form;
38
39
  const {
39
40
  assignChangesToField
40
41
  } = (0, _useFormFieldsChangesManager.default)({
@@ -47,7 +48,8 @@ const FormWithDependOn = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
47
48
 
48
49
  const anotherActions = typeof getAnotherActions === "function" ? getAnotherActions({
49
50
  setForm,
50
- assign
51
+ assign,
52
+ getActualForm
51
53
  }) : {};
52
54
  const getMainOfAdditional = (onChange, additionalOfOnChange) => ({
53
55
  actions: anotherActions,
@@ -56,11 +58,13 @@ const FormWithDependOn = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
56
58
  onChange,
57
59
  setForm: safelySetForm,
58
60
  assign,
61
+ getActualForm,
59
62
  initialForm,
60
63
  typeOfUse
61
64
  });
62
65
  const startDependOn = (0, _utils2.getDependOnStarter)({
63
- assign
66
+ assign,
67
+ getActualForm
64
68
  });
65
69
 
66
70
  // ? Местный handleChange добавляет логику dependOn к верхнему onChange,
@@ -32,7 +32,7 @@ const getDependOnStarter = props => {
32
32
  // ! Для звисимого филда есть 2 способа назначить обработчик
33
33
 
34
34
  // ? - прописать в объекте dependOn callback, который будет вызываться для каждой зависимости,
35
- // ? а уже внктри самого колбэка разбираться, для какой имменно зависимости вызван обработчик
35
+ // ? а уже внутри самого колбэка разбираться, для какой имменно зависимости вызван обработчик
36
36
 
37
37
  // ? - прописать в объекте dependOn пропу callbacks, передать в нее объект в формате
38
38
  // ? { ... [ключ_доминирующего_поля]: соответствующий_коллбэк, ... }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [