@tsed/react-formio 1.13.4 → 1.13.5
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/components/form/useForm.hook.d.ts +3 -3
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +4 -4
- package/src/components/form/useForm.hook.ts +2 -7
- package/src/components/index.ts +2 -0
- package/src/index.ts +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExtendedComponentSchema
|
|
2
|
+
import { ExtendedComponentSchema } from "formiojs";
|
|
3
3
|
import { FormOptions, FormSchema, Submission } from "../../interfaces";
|
|
4
4
|
export interface ChangedSubmission<T = any> extends Submission<T> {
|
|
5
5
|
changed: {
|
|
6
6
|
component: ExtendedComponentSchema;
|
|
7
|
-
instance:
|
|
7
|
+
instance: any;
|
|
8
8
|
value: any;
|
|
9
9
|
} & Record<string, any>;
|
|
10
10
|
isValid: boolean;
|
|
@@ -53,7 +53,7 @@ export interface UseFormHookProps<Data = any> extends Record<string, any> {
|
|
|
53
53
|
onFocus?: Function;
|
|
54
54
|
onBlur?: Function;
|
|
55
55
|
onInitialized?: Function;
|
|
56
|
-
onFormReady?: (formio:
|
|
56
|
+
onFormReady?: (formio: any) => void;
|
|
57
57
|
}
|
|
58
58
|
export declare function useForm<Data = any>(props: UseFormHookProps<Data>): {
|
|
59
59
|
element: import("react").MutableRefObject<any>;
|
|
@@ -2,6 +2,7 @@ export * from "./actions-table/actionsTable.component";
|
|
|
2
2
|
export * from "./alert/alert.component";
|
|
3
3
|
export * from "./card/card.component";
|
|
4
4
|
export * from "./form/form.component";
|
|
5
|
+
export * from "./form/useForm.hook";
|
|
5
6
|
export * from "./form-access/formAccess.component";
|
|
6
7
|
export * from "./form-action/formAction.component";
|
|
7
8
|
export * from "./form-builder/formBuilder.component";
|
|
@@ -9,6 +10,7 @@ export * from "./form-control/formControl.component";
|
|
|
9
10
|
export * from "./form-edit/formCtas.component";
|
|
10
11
|
export * from "./form-edit/formEdit.component";
|
|
11
12
|
export * from "./form-edit/formParameters.component";
|
|
13
|
+
export * from "./form-edit/useFormEdit.hook";
|
|
12
14
|
export * from "./form-settings/formSettings.component";
|
|
13
15
|
export * from "./forms-table/formsTable.component";
|
|
14
16
|
export * from "./input-tags/inputTags.component";
|
package/dist/index.js
CHANGED
|
@@ -1007,9 +1007,6 @@ function _catch(body, recover) {
|
|
|
1007
1007
|
function useEvent(event, callback, events) {
|
|
1008
1008
|
React.useEffect(function () {
|
|
1009
1009
|
if (callback) {
|
|
1010
|
-
// if (event === "onChange") {
|
|
1011
|
-
// callback = callLast(callback, 200);
|
|
1012
|
-
// }
|
|
1013
1010
|
events.set(event, callback);
|
|
1014
1011
|
}
|
|
1015
1012
|
}, [callback, event, events]);
|
|
@@ -9981,6 +9978,8 @@ exports.setUser = setUser;
|
|
|
9981
9978
|
exports.submissionAccessUser = submissionAccessUser;
|
|
9982
9979
|
exports.submissionReducer = submissionReducer;
|
|
9983
9980
|
exports.submissionsReducer = submissionsReducer;
|
|
9981
|
+
exports.useForm = useForm;
|
|
9982
|
+
exports.useFormEdit = useFormEdit;
|
|
9984
9983
|
exports.useModal = useModal;
|
|
9985
9984
|
exports.useOperations = useOperations;
|
|
9986
9985
|
exports.useTooltip = useTooltip;
|