@trackunit/react-form-wizard 2.1.52 → 2.1.55
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/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-wizard",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.55",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"zod": "^3.25.76",
|
|
8
8
|
"@hookform/resolvers": "^3.3.4",
|
|
9
9
|
"@tanstack/router-core": "1.114.29",
|
|
10
|
-
"@trackunit/shared-utils": "1.15.
|
|
11
|
-
"@trackunit/css-class-variance-utilities": "1.13.
|
|
12
|
-
"@trackunit/react-components": "2.1.
|
|
13
|
-
"@trackunit/i18n-library-translation": "2.0.
|
|
10
|
+
"@trackunit/shared-utils": "1.15.53",
|
|
11
|
+
"@trackunit/css-class-variance-utilities": "1.13.52",
|
|
12
|
+
"@trackunit/react-components": "2.1.53",
|
|
13
|
+
"@trackunit/i18n-library-translation": "2.0.53"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=24.x",
|
|
@@ -7,7 +7,7 @@ import { UseFormReturn } from "react-hook-form";
|
|
|
7
7
|
import { AnyZodObject, SomeZodObject, z } from "zod";
|
|
8
8
|
export type StepState = "active" | "done" | "invalid" | "disabled" | "ready";
|
|
9
9
|
export type StepDefinitions<TFullSchema extends AnyZodObject> = {
|
|
10
|
-
[KeyFullStep in keyof z.TypeOf<TFullSchema>]: KeyFullStep extends `${infer KeyParentStep}/${infer
|
|
10
|
+
[KeyFullStep in keyof z.TypeOf<TFullSchema>]: KeyFullStep extends `${infer KeyParentStep}/${infer _KeySubStep}` ? KeyParentStep extends keyof z.TypeOf<TFullSchema> ? DefinedStep<z.TypeOf<TFullSchema>[KeyFullStep], z.TypeOf<TFullSchema>> & {
|
|
11
11
|
shouldRender?: (fullFormState: Partial<z.TypeOf<TFullSchema>>) => boolean;
|
|
12
12
|
} : never : DefinedStep<z.TypeOf<TFullSchema>[KeyFullStep], z.TypeOf<TFullSchema>>;
|
|
13
13
|
};
|