gsintegrations 0.0.7 → 0.0.11
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.
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const onboardingStepSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
description: z.ZodString;
|
|
6
|
+
image: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
title: string;
|
|
9
|
+
id: string;
|
|
10
|
+
description: string;
|
|
11
|
+
image?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
title: string;
|
|
14
|
+
id: string;
|
|
15
|
+
description: string;
|
|
16
|
+
image?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type OnboardingStep = z.infer<typeof onboardingStepSchema>;
|
|
19
|
+
export declare const onboardingPageSchema: z.ZodObject<{
|
|
20
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
description: z.ZodString;
|
|
24
|
+
image: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
title: string;
|
|
27
|
+
id: string;
|
|
28
|
+
description: string;
|
|
29
|
+
image?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
title: string;
|
|
32
|
+
id: string;
|
|
33
|
+
description: string;
|
|
34
|
+
image?: string | undefined;
|
|
35
|
+
}>, "many">;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
steps: {
|
|
38
|
+
title: string;
|
|
39
|
+
id: string;
|
|
40
|
+
description: string;
|
|
41
|
+
image?: string | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
}, {
|
|
44
|
+
steps: {
|
|
45
|
+
title: string;
|
|
46
|
+
id: string;
|
|
47
|
+
description: string;
|
|
48
|
+
image?: string | undefined;
|
|
49
|
+
}[];
|
|
50
|
+
}>;
|
|
51
|
+
export type OnboardingPageProps = z.infer<typeof onboardingPageSchema>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnboardingPageProps } from "./OnboardingPage.types";
|
|
2
|
+
export declare const useOnboardingPage: (props: OnboardingPageProps) => {
|
|
3
|
+
data: {
|
|
4
|
+
step: {
|
|
5
|
+
title: string;
|
|
6
|
+
id: string;
|
|
7
|
+
description: string;
|
|
8
|
+
image?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
currentIndex: number;
|
|
11
|
+
totalSteps: number;
|
|
12
|
+
isFirstScreen: boolean;
|
|
13
|
+
isLastScreen: boolean;
|
|
14
|
+
isIntroScreen: boolean;
|
|
15
|
+
isFinalScreen: boolean;
|
|
16
|
+
isStepScreen: boolean;
|
|
17
|
+
};
|
|
18
|
+
fns: {
|
|
19
|
+
goNext: () => void;
|
|
20
|
+
goBack: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
package/package.json
CHANGED