@bsol-oss/react-datatable5 13.0.1-beta.26 → 13.0.1-beta.28
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/index.d.ts +9 -24
- package/dist/index.js +40 -350
- package/dist/index.mjs +41 -351
- package/dist/types/components/Form/SchemaFormContext.d.ts +1 -22
- package/dist/types/components/Form/components/core/FormRoot.d.ts +2 -12
- package/dist/types/components/Form/components/types/CustomJSONSchema7.d.ts +2 -2
- package/dist/types/components/Form/useForm.d.ts +4 -9
- package/package.json +4 -1
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
3
|
import { CustomJSONSchema7 } from './components/types/CustomJSONSchema7';
|
|
4
|
-
export interface
|
|
5
|
-
|
|
6
|
-
i18n?: any;
|
|
7
|
-
ready?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface UseFormProps {
|
|
10
|
-
preLoadedValues?: FieldValues | undefined;
|
|
4
|
+
export interface UseFormProps<T> {
|
|
5
|
+
preLoadedValues?: T | undefined;
|
|
11
6
|
schema?: CustomJSONSchema7;
|
|
12
7
|
}
|
|
13
|
-
export declare
|
|
14
|
-
form: import("react-hook-form").UseFormReturn<
|
|
8
|
+
export declare function useForm<T extends FieldValues = any>({ preLoadedValues, schema, }: UseFormProps<T>): {
|
|
9
|
+
form: import("react-hook-form").UseFormReturn<T, any, T>;
|
|
15
10
|
idMap: Record<string, object>;
|
|
16
11
|
setIdMap: import("react").Dispatch<import("react").SetStateAction<Record<string, object>>>;
|
|
17
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsol-oss/react-datatable5",
|
|
3
|
-
"version": "13.0.1-beta.
|
|
3
|
+
"version": "13.0.1-beta.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -91,5 +91,8 @@
|
|
|
91
91
|
"*.{ts,js,json,md,tsx}": [
|
|
92
92
|
"prettier --config ./.prettierrc --write"
|
|
93
93
|
]
|
|
94
|
+
},
|
|
95
|
+
"dependencies": {
|
|
96
|
+
"@hookform/resolvers": "^5.2.2"
|
|
94
97
|
}
|
|
95
98
|
}
|