@acuteinfo/common-base 1.0.15 → 1.0.16

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,6 +13,7 @@ export declare const useField: ({ fieldKey, name, dependentFields, validate, val
13
13
  runValidation: (mergeObj: any, alwaysRun?: boolean, touchAndValidate?: boolean) => void;
14
14
  dependentValues: DependentValuesType;
15
15
  handleOptionValueExtraData: (data: any) => void;
16
+ validationAPIResult: string;
16
17
  setDisplayValue: (displayValue: any) => void;
17
18
  setIgnoreInSubmit: (val: boolean) => void;
18
19
  error: string;
@@ -27,7 +28,6 @@ export declare const useField: ({ fieldKey, name, dependentFields, validate, val
27
28
  validate?: typeof ValidateFnType | import("./types").EmptyFnType | null | undefined;
28
29
  incomingMessage?: any;
29
30
  dependentFields?: string | string[] | undefined;
30
- validationAPIResult?: any;
31
31
  skipValueUpdateFromCrossFieldWhenReadOnly: boolean;
32
32
  optionData?: any;
33
33
  ignoreInSubmit?: boolean | undefined;
@@ -106,12 +106,12 @@ export declare function getFixedRowsCountFnType(fieldData: FormArrayFieldRowsAto
106
106
  export declare function shouldExcludeFnType(fieldData: FormFieldAtomType, dependentFieldsValues: DependentValuesType, formState: any): Promise<boolean> | boolean;
107
107
  export declare function SchemaValidateFnType(fieldData: FormFieldAtomType, formState: any): Promise<any> | any;
108
108
  export declare function ValidateFnType(fieldData: FormFieldAtomType, dependentFieldsValues: DependentValuesType, formState: any): Promise<any> | any;
109
- export declare function PostValidationSetCrossFieldValuesFnType(fieldData: FormFieldAtomType, formState: any, dependentFieldsState: any): Promise<InitialValuesType | undefined | null> | InitialValuesType | undefined | null;
109
+ export declare function PostValidationSetCrossFieldValuesFnType(fieldData: FormFieldAtomType, formState: any, authState: any, dependentFieldsState: any): Promise<InitialValuesType | undefined | null> | InitialValuesType | undefined | null;
110
110
  export interface EmptyFnType {
111
111
  (args: FormFieldAtomType): string;
112
112
  }
113
113
  export interface SubmitFnType {
114
- (values: Object, displayValues: Object, endSubmit: (submitSuccessful: boolean, message?: string) => void, setFieldErrors: (fieldsErrorObj: FieldsErrorObjType) => void, actionFlag?: String): void;
114
+ (values: Object, displayValues: Object, endSubmit: (submitSuccessful: boolean, message?: string) => void, setFieldErrors: (fieldsErrorObj: FieldsErrorObjType) => void, actionFlag?: String, hasError?: boolean): void;
115
115
  }
116
116
  export interface RenderFnOptionsType {
117
117
  row: TemplateFieldRowType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acuteinfo/common-base",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",