indicator-ui 1.1.37 → 1.1.38

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.
@@ -2,6 +2,7 @@ import { IsAny, IsArray, IsTuple } from '../../../types';
2
2
  export type ObjectFormType = Record<string, unknown>;
3
3
  export type ArrayFormType = any[];
4
4
  export type BaseFormType = Exclude<any, ObjectFormType | ArrayFormType>;
5
+ export type FormValueType<T> = T | null | undefined;
5
6
  type MaxRecursiveDeep = 8;
6
7
  type SafeRecursiveArr = [];
7
8
  type AddRecursiveDeep<T extends any[]> = [...T, 0];
@@ -16,6 +16,8 @@ type PropsType<Form, T> = {
16
16
  }, services: UseFormServices<Form, T>) => void;
17
17
  onSubmitAttempt?: (data: T | undefined | null, event: React.SubmitEvent<HTMLFormElement>, services: UseFormServices<Form, T>) => void;
18
18
  watch?: FormWatchType<Form>;
19
+ /** Отключить вызов watch-коллбэков для родительских путей при изменении вложенного поля */
20
+ offWatchDeep?: boolean;
19
21
  /** Debounce в мс для реактивной ревалидации при изменении поля с ошибкой. Полезно при async-валидаторах */
20
22
  revalidateDebounce?: number;
21
23
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.1.37",
14
+ "version": "1.1.38",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",