@rocapine/react-native-onboarding 1.11.1 → 1.13.0
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/evaluateCondition.d.ts +6 -0
- package/dist/evaluateCondition.d.ts.map +1 -0
- package/dist/evaluateCondition.js +48 -0
- package/dist/evaluateCondition.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/infra/provider/OnboardingProvider.d.ts +2 -0
- package/dist/infra/provider/OnboardingProvider.d.ts.map +1 -1
- package/dist/infra/provider/OnboardingProvider.js +8 -0
- package/dist/infra/provider/OnboardingProvider.js.map +1 -1
- package/dist/onboarding-example.d.ts +174 -0
- package/dist/onboarding-example.d.ts.map +1 -1
- package/dist/onboarding-example.js +50 -0
- package/dist/onboarding-example.js.map +1 -1
- package/dist/resolveNextStepNumber.d.ts +11 -0
- package/dist/resolveNextStepNumber.d.ts.map +1 -0
- package/dist/resolveNextStepNumber.js +39 -0
- package/dist/resolveNextStepNumber.js.map +1 -0
- package/dist/steps/Carousel/types.d.ts +29 -8
- package/dist/steps/Carousel/types.d.ts.map +1 -1
- package/dist/steps/Carousel/types.js +1 -8
- package/dist/steps/Carousel/types.js.map +1 -1
- package/dist/steps/Commitment/types.d.ts +29 -8
- package/dist/steps/Commitment/types.d.ts.map +1 -1
- package/dist/steps/Commitment/types.js +1 -8
- package/dist/steps/Commitment/types.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts +67 -0
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js +15 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts +28 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/CarouselElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/CarouselElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/DatePickerElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/DatePickerElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts +30 -3
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts +28 -1
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.d.ts +31 -6
- package/dist/steps/ComposableScreen/types.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.js +3 -8
- package/dist/steps/ComposableScreen/types.js.map +1 -1
- package/dist/steps/Loader/types.d.ts +29 -8
- package/dist/steps/Loader/types.d.ts.map +1 -1
- package/dist/steps/Loader/types.js +1 -8
- package/dist/steps/Loader/types.js.map +1 -1
- package/dist/steps/MediaContent/types.d.ts +29 -8
- package/dist/steps/MediaContent/types.d.ts.map +1 -1
- package/dist/steps/MediaContent/types.js +1 -8
- package/dist/steps/MediaContent/types.js.map +1 -1
- package/dist/steps/Picker/types.d.ts +30 -8
- package/dist/steps/Picker/types.d.ts.map +1 -1
- package/dist/steps/Picker/types.js +2 -8
- package/dist/steps/Picker/types.js.map +1 -1
- package/dist/steps/Question/types.d.ts +30 -8
- package/dist/steps/Question/types.d.ts.map +1 -1
- package/dist/steps/Question/types.js +2 -8
- package/dist/steps/Question/types.js.map +1 -1
- package/dist/steps/Ratings/types.d.ts +29 -8
- package/dist/steps/Ratings/types.d.ts.map +1 -1
- package/dist/steps/Ratings/types.js +1 -8
- package/dist/steps/Ratings/types.js.map +1 -1
- package/dist/steps/common.types.d.ts +109 -0
- package/dist/steps/common.types.d.ts.map +1 -1
- package/dist/steps/common.types.js +52 -1
- package/dist/steps/common.types.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/__tests__/evaluateCondition.test.ts +167 -0
- package/src/__tests__/resolveNextStepNumber.test.ts +309 -0
- package/src/evaluateCondition.ts +50 -0
- package/src/index.ts +19 -0
- package/src/infra/provider/OnboardingProvider.tsx +11 -1
- package/src/onboarding-example.ts +50 -0
- package/src/resolveNextStepNumber.ts +41 -0
- package/src/steps/Carousel/types.ts +2 -9
- package/src/steps/Commitment/types.ts +2 -9
- package/src/steps/ComposableScreen/elements/BaseBoxProps.ts +42 -0
- package/src/steps/ComposableScreen/types.ts +4 -10
- package/src/steps/Loader/types.ts +2 -9
- package/src/steps/MediaContent/types.ts +2 -14
- package/src/steps/Picker/types.ts +3 -9
- package/src/steps/Question/types.ts +3 -9
- package/src/steps/Ratings/types.ts +2 -9
- package/src/steps/common.types.ts +72 -0
- package/src/types.ts +3 -0
|
@@ -26,6 +26,33 @@ export declare const LottieElementPropsSchema: z.ZodObject<{
|
|
|
26
26
|
}>>;
|
|
27
27
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
29
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"linear">;
|
|
31
|
+
from: z.ZodEnum<{
|
|
32
|
+
top: "top";
|
|
33
|
+
bottom: "bottom";
|
|
34
|
+
left: "left";
|
|
35
|
+
right: "right";
|
|
36
|
+
topLeft: "topLeft";
|
|
37
|
+
topRight: "topRight";
|
|
38
|
+
bottomLeft: "bottomLeft";
|
|
39
|
+
bottomRight: "bottomRight";
|
|
40
|
+
}>;
|
|
41
|
+
to: z.ZodEnum<{
|
|
42
|
+
top: "top";
|
|
43
|
+
bottom: "bottom";
|
|
44
|
+
left: "left";
|
|
45
|
+
right: "right";
|
|
46
|
+
topLeft: "topLeft";
|
|
47
|
+
topRight: "topRight";
|
|
48
|
+
bottomLeft: "bottomLeft";
|
|
49
|
+
bottomRight: "bottomRight";
|
|
50
|
+
}>;
|
|
51
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
52
|
+
color: z.ZodString;
|
|
53
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>], "type">>;
|
|
29
56
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
30
57
|
hidden: "hidden";
|
|
31
58
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LottieElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/LottieElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"LottieElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/LottieElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnC,CAAC"}
|
|
@@ -44,6 +44,33 @@ export declare const RadioGroupElementPropsSchema: z.ZodObject<{
|
|
|
44
44
|
}>>;
|
|
45
45
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
47
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"linear">;
|
|
49
|
+
from: z.ZodEnum<{
|
|
50
|
+
top: "top";
|
|
51
|
+
bottom: "bottom";
|
|
52
|
+
left: "left";
|
|
53
|
+
right: "right";
|
|
54
|
+
topLeft: "topLeft";
|
|
55
|
+
topRight: "topRight";
|
|
56
|
+
bottomLeft: "bottomLeft";
|
|
57
|
+
bottomRight: "bottomRight";
|
|
58
|
+
}>;
|
|
59
|
+
to: z.ZodEnum<{
|
|
60
|
+
top: "top";
|
|
61
|
+
bottom: "bottom";
|
|
62
|
+
left: "left";
|
|
63
|
+
right: "right";
|
|
64
|
+
topLeft: "topLeft";
|
|
65
|
+
topRight: "topRight";
|
|
66
|
+
bottomLeft: "bottomLeft";
|
|
67
|
+
bottomRight: "bottomRight";
|
|
68
|
+
}>;
|
|
69
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
70
|
+
color: z.ZodString;
|
|
71
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>], "type">>;
|
|
47
74
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
48
75
|
hidden: "hidden";
|
|
49
76
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroupElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RadioGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"RadioGroupElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RadioGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BvC,CAAC"}
|
|
@@ -28,6 +28,33 @@ export declare const RiveElementPropsSchema: z.ZodObject<{
|
|
|
28
28
|
}>>;
|
|
29
29
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
31
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"linear">;
|
|
33
|
+
from: z.ZodEnum<{
|
|
34
|
+
top: "top";
|
|
35
|
+
bottom: "bottom";
|
|
36
|
+
left: "left";
|
|
37
|
+
right: "right";
|
|
38
|
+
topLeft: "topLeft";
|
|
39
|
+
topRight: "topRight";
|
|
40
|
+
bottomLeft: "bottomLeft";
|
|
41
|
+
bottomRight: "bottomRight";
|
|
42
|
+
}>;
|
|
43
|
+
to: z.ZodEnum<{
|
|
44
|
+
top: "top";
|
|
45
|
+
bottom: "bottom";
|
|
46
|
+
left: "left";
|
|
47
|
+
right: "right";
|
|
48
|
+
topLeft: "topLeft";
|
|
49
|
+
topRight: "topRight";
|
|
50
|
+
bottomLeft: "bottomLeft";
|
|
51
|
+
bottomRight: "bottomRight";
|
|
52
|
+
}>;
|
|
53
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
54
|
+
color: z.ZodString;
|
|
55
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>], "type">>;
|
|
31
58
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
32
59
|
hidden: "hidden";
|
|
33
60
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RiveElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RiveElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IAChG,SAAS,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,aAAa,CAAC;IAC3I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"RiveElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RiveElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IAChG,SAAS,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,aAAa,CAAC;IAC3I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOjC,CAAC"}
|
|
@@ -26,6 +26,33 @@ export declare const StackElementPropsSchema: z.ZodObject<{
|
|
|
26
26
|
}>>;
|
|
27
27
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
29
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"linear">;
|
|
31
|
+
from: z.ZodEnum<{
|
|
32
|
+
top: "top";
|
|
33
|
+
bottom: "bottom";
|
|
34
|
+
left: "left";
|
|
35
|
+
right: "right";
|
|
36
|
+
topLeft: "topLeft";
|
|
37
|
+
topRight: "topRight";
|
|
38
|
+
bottomLeft: "bottomLeft";
|
|
39
|
+
bottomRight: "bottomRight";
|
|
40
|
+
}>;
|
|
41
|
+
to: z.ZodEnum<{
|
|
42
|
+
top: "top";
|
|
43
|
+
bottom: "bottom";
|
|
44
|
+
left: "left";
|
|
45
|
+
right: "right";
|
|
46
|
+
topLeft: "topLeft";
|
|
47
|
+
topRight: "topRight";
|
|
48
|
+
bottomLeft: "bottomLeft";
|
|
49
|
+
bottomRight: "bottomRight";
|
|
50
|
+
}>;
|
|
51
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
52
|
+
color: z.ZodString;
|
|
53
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>], "type">>;
|
|
29
56
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
30
57
|
hidden: "hidden";
|
|
31
58
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/StackElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9D,cAAc,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,CAAC;IACzF,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"StackElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/StackElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9D,cAAc,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,CAAC;IACzF,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlC,CAAC"}
|
|
@@ -31,6 +31,33 @@ export declare const TextElementPropsSchema: z.ZodObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
34
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<"linear">;
|
|
36
|
+
from: z.ZodEnum<{
|
|
37
|
+
top: "top";
|
|
38
|
+
bottom: "bottom";
|
|
39
|
+
left: "left";
|
|
40
|
+
right: "right";
|
|
41
|
+
topLeft: "topLeft";
|
|
42
|
+
topRight: "topRight";
|
|
43
|
+
bottomLeft: "bottomLeft";
|
|
44
|
+
bottomRight: "bottomRight";
|
|
45
|
+
}>;
|
|
46
|
+
to: z.ZodEnum<{
|
|
47
|
+
top: "top";
|
|
48
|
+
bottom: "bottom";
|
|
49
|
+
left: "left";
|
|
50
|
+
right: "right";
|
|
51
|
+
topLeft: "topLeft";
|
|
52
|
+
topRight: "topRight";
|
|
53
|
+
bottomLeft: "bottomLeft";
|
|
54
|
+
bottomRight: "bottomRight";
|
|
55
|
+
}>;
|
|
56
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
57
|
+
color: z.ZodString;
|
|
58
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>], "type">>;
|
|
34
61
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
35
62
|
hidden: "hidden";
|
|
36
63
|
visible: "visible";
|
|
@@ -55,9 +82,9 @@ export declare const TextElementPropsSchema: z.ZodObject<{
|
|
|
55
82
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
56
83
|
color: z.ZodOptional<z.ZodString>;
|
|
57
84
|
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
58
|
-
center: "center";
|
|
59
85
|
left: "left";
|
|
60
86
|
right: "right";
|
|
87
|
+
center: "center";
|
|
61
88
|
}>>;
|
|
62
89
|
letterSpacing: z.ZodOptional<z.ZodNumber>;
|
|
63
90
|
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TextElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"TextElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TextElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUjC,CAAC"}
|
|
@@ -27,6 +27,33 @@ export declare const VideoElementPropsSchema: z.ZodObject<{
|
|
|
27
27
|
}>>;
|
|
28
28
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
30
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"linear">;
|
|
32
|
+
from: z.ZodEnum<{
|
|
33
|
+
top: "top";
|
|
34
|
+
bottom: "bottom";
|
|
35
|
+
left: "left";
|
|
36
|
+
right: "right";
|
|
37
|
+
topLeft: "topLeft";
|
|
38
|
+
topRight: "topRight";
|
|
39
|
+
bottomLeft: "bottomLeft";
|
|
40
|
+
bottomRight: "bottomRight";
|
|
41
|
+
}>;
|
|
42
|
+
to: z.ZodEnum<{
|
|
43
|
+
top: "top";
|
|
44
|
+
bottom: "bottom";
|
|
45
|
+
left: "left";
|
|
46
|
+
right: "right";
|
|
47
|
+
topLeft: "topLeft";
|
|
48
|
+
topRight: "topRight";
|
|
49
|
+
bottomLeft: "bottomLeft";
|
|
50
|
+
bottomRight: "bottomRight";
|
|
51
|
+
}>;
|
|
52
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
53
|
+
color: z.ZodString;
|
|
54
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
}, z.core.$strip>], "type">>;
|
|
30
57
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
31
58
|
hidden: "hidden";
|
|
32
59
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/VideoElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"VideoElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/VideoElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMlC,CAAC"}
|
|
@@ -12,8 +12,8 @@ import { type RadioGroupElementProps } from "./elements/RadioGroupElement";
|
|
|
12
12
|
import { type CheckboxGroupElementProps } from "./elements/CheckboxGroupElement";
|
|
13
13
|
import { type DatePickerElementProps } from "./elements/DatePickerElement";
|
|
14
14
|
import { type CarouselElementProps } from "./elements/CarouselElement";
|
|
15
|
-
export type { BaseBoxProps } from "./elements/BaseBoxProps";
|
|
16
|
-
export { BaseBoxPropsSchema } from "./elements/BaseBoxProps";
|
|
15
|
+
export type { BaseBoxProps, GradientBackground, GradientEdge, GradientStop, LinearGradientConfig } from "./elements/BaseBoxProps";
|
|
16
|
+
export { BaseBoxPropsSchema, GradientBackgroundSchema } from "./elements/BaseBoxProps";
|
|
17
17
|
export type { StackElementProps } from "./elements/StackElement";
|
|
18
18
|
export type { TextElementProps } from "./elements/TextElement";
|
|
19
19
|
export type { ImageElementProps } from "./elements/ImageElement";
|
|
@@ -100,15 +100,40 @@ export declare const ComposableScreenStepPayloadSchema: z.ZodObject<{
|
|
|
100
100
|
}, z.core.$strip>;
|
|
101
101
|
export declare const ComposableScreenStepTypeSchema: z.ZodObject<{
|
|
102
102
|
id: z.ZodString;
|
|
103
|
-
type: z.ZodLiteral<"ComposableScreen">;
|
|
104
103
|
name: z.ZodString;
|
|
105
104
|
displayProgressHeader: z.ZodBoolean;
|
|
105
|
+
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
106
|
+
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
107
|
+
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
label: z.ZodOptional<z.ZodString>;
|
|
109
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
nextStep: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
113
|
+
defaultTargetStepId: z.ZodString;
|
|
114
|
+
branches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
115
|
+
condition: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
116
|
+
variable: z.ZodString;
|
|
117
|
+
operator: z.ZodEnum<{
|
|
118
|
+
eq: "eq";
|
|
119
|
+
neq: "neq";
|
|
120
|
+
gt: "gt";
|
|
121
|
+
lt: "lt";
|
|
122
|
+
gte: "gte";
|
|
123
|
+
lte: "lte";
|
|
124
|
+
contains: "contains";
|
|
125
|
+
in: "in";
|
|
126
|
+
not_in: "not_in";
|
|
127
|
+
}>;
|
|
128
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
129
|
+
}, z.core.$strip>, z.ZodType<import("../common.types").ConditionGroup, unknown, z.core.$ZodTypeInternals<import("../common.types").ConditionGroup, unknown>>]>>>;
|
|
130
|
+
targetStepId: z.ZodString;
|
|
131
|
+
}, z.core.$strip>>>;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
133
|
+
type: z.ZodLiteral<"ComposableScreen">;
|
|
106
134
|
payload: z.ZodObject<{
|
|
107
135
|
elements: z.ZodArray<z.ZodType<UIElement, unknown, z.core.$ZodTypeInternals<UIElement, unknown>>>;
|
|
108
136
|
}, z.core.$strip>;
|
|
109
|
-
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
110
|
-
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
111
|
-
figmaUrl: z.ZodNullable<z.ZodString>;
|
|
112
137
|
}, z.core.$strip>;
|
|
113
138
|
export type ComposableScreenStepType = z.infer<typeof ComposableScreenStepTypeSchema>;
|
|
114
139
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/ComposableScreen/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,C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X,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,iBAAiB,CAAC;CAC1B,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,kBAAkB,CAAC;CAC3B,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,sBAAsB,CAAC;CAC/B,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,yBAAyB,CAAC;CAClC,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,sBAAsB,CAAC;CAC/B,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB,CAAC;AAuFN,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ComposableScreenStepTypeSchema = exports.ComposableScreenStepPayloadSchema = exports.BaseBoxPropsSchema = void 0;
|
|
3
|
+
exports.ComposableScreenStepTypeSchema = exports.ComposableScreenStepPayloadSchema = exports.GradientBackgroundSchema = exports.BaseBoxPropsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_types_1 = require("../common.types");
|
|
6
6
|
const StackElement_1 = require("./elements/StackElement");
|
|
@@ -18,6 +18,7 @@ const DatePickerElement_1 = require("./elements/DatePickerElement");
|
|
|
18
18
|
const CarouselElement_1 = require("./elements/CarouselElement");
|
|
19
19
|
var BaseBoxProps_1 = require("./elements/BaseBoxProps");
|
|
20
20
|
Object.defineProperty(exports, "BaseBoxPropsSchema", { enumerable: true, get: function () { return BaseBoxProps_1.BaseBoxPropsSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "GradientBackgroundSchema", { enumerable: true, get: function () { return BaseBoxProps_1.GradientBackgroundSchema; } });
|
|
21
22
|
const UIElementSchema = zod_1.z.lazy(() => zod_1.z.union([
|
|
22
23
|
zod_1.z.object({
|
|
23
24
|
id: zod_1.z.string(),
|
|
@@ -103,14 +104,8 @@ const UIElementSchema = zod_1.z.lazy(() => zod_1.z.union([
|
|
|
103
104
|
exports.ComposableScreenStepPayloadSchema = zod_1.z.object({
|
|
104
105
|
elements: zod_1.z.array(UIElementSchema),
|
|
105
106
|
});
|
|
106
|
-
exports.ComposableScreenStepTypeSchema =
|
|
107
|
-
id: zod_1.z.string(),
|
|
107
|
+
exports.ComposableScreenStepTypeSchema = common_types_1.BaseStepTypeSchema.extend({
|
|
108
108
|
type: zod_1.z.literal("ComposableScreen"),
|
|
109
|
-
name: zod_1.z.string(),
|
|
110
|
-
displayProgressHeader: zod_1.z.boolean(),
|
|
111
109
|
payload: exports.ComposableScreenStepPayloadSchema,
|
|
112
|
-
customPayload: common_types_1.CustomPayloadSchema,
|
|
113
|
-
continueButtonLabel: zod_1.z.string().optional().default("Continue"),
|
|
114
|
-
figmaUrl: zod_1.z.string().nullable(),
|
|
115
110
|
});
|
|
116
111
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/ComposableScreen/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/ComposableScreen/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;AACrD,0DAA0F;AAC1F,wDAAuF;AACvF,0DAA0F;AAC1F,4DAA6F;AAC7F,wDAAuF;AACvF,wDAAuF;AACvF,0DAA0F;AAC1F,0DAA0F;AAC1F,4DAA6F;AAC7F,oEAAyG;AACzG,0EAAkH;AAClH,oEAAyG;AACzG,gEAAmG;AAGnG,wDAAuF;AAA9E,kHAAA,kBAAkB,OAAA;AAAE,wHAAA,wBAAwB,OAAA;AAmGrD,MAAM,eAAe,GAAyB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACxD,OAAC,CAAC,KAAK,CAAC;IACN,OAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACzD,KAAK,EAAE,sCAAuB;QAC9B,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;KACnC,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,KAAK,EAAE,oCAAsB;KAC9B,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,OA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AAC;KACnC,CAAC;CACH,CAAC,CACH,CAAC;AAEW,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;CACnC,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,iCAAkB,CAAC,MAAM,CAAC;IACtE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,OAAO,EAAE,yCAAiC;CAC3C,CAAC,CAAC"}
|
|
@@ -25,9 +25,37 @@ export declare const LoaderStepPayloadSchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
export declare const LoaderStepTypeSchema: z.ZodObject<{
|
|
27
27
|
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"Loader">;
|
|
29
28
|
name: z.ZodString;
|
|
30
29
|
displayProgressHeader: z.ZodBoolean;
|
|
30
|
+
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
31
|
+
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
label: z.ZodOptional<z.ZodString>;
|
|
34
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
nextStep: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
defaultTargetStepId: z.ZodString;
|
|
39
|
+
branches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
40
|
+
condition: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
41
|
+
variable: z.ZodString;
|
|
42
|
+
operator: z.ZodEnum<{
|
|
43
|
+
eq: "eq";
|
|
44
|
+
neq: "neq";
|
|
45
|
+
gt: "gt";
|
|
46
|
+
lt: "lt";
|
|
47
|
+
gte: "gte";
|
|
48
|
+
lte: "lte";
|
|
49
|
+
contains: "contains";
|
|
50
|
+
in: "in";
|
|
51
|
+
not_in: "not_in";
|
|
52
|
+
}>;
|
|
53
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
54
|
+
}, z.core.$strip>, z.ZodType<import("../common.types").ConditionGroup, unknown, z.core.$ZodTypeInternals<import("../common.types").ConditionGroup, unknown>>]>>>;
|
|
55
|
+
targetStepId: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
type: z.ZodLiteral<"Loader">;
|
|
31
59
|
payload: z.ZodObject<{
|
|
32
60
|
title: z.ZodString;
|
|
33
61
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -48,13 +76,6 @@ export declare const LoaderStepTypeSchema: z.ZodObject<{
|
|
|
48
76
|
texts_fading: "texts_fading";
|
|
49
77
|
}>>>;
|
|
50
78
|
}, z.core.$strip>;
|
|
51
|
-
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
52
|
-
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
53
|
-
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
label: z.ZodOptional<z.ZodString>;
|
|
55
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
-
}, z.core.$strip>>;
|
|
57
|
-
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
79
|
}, z.core.$strip>;
|
|
59
80
|
export type LoaderStepType = z.infer<typeof LoaderStepTypeSchema>;
|
|
60
81
|
export type LoaderStep = z.infer<typeof LoaderStepSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Loader/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AAEH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Loader/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -17,15 +17,8 @@ exports.LoaderStepPayloadSchema = zod_1.z.object({
|
|
|
17
17
|
.optional()
|
|
18
18
|
.default("bars"),
|
|
19
19
|
});
|
|
20
|
-
exports.LoaderStepTypeSchema =
|
|
21
|
-
id: zod_1.z.string(),
|
|
20
|
+
exports.LoaderStepTypeSchema = common_types_1.BaseStepTypeSchema.extend({
|
|
22
21
|
type: zod_1.z.literal("Loader"),
|
|
23
|
-
name: zod_1.z.string(),
|
|
24
|
-
displayProgressHeader: zod_1.z.boolean(),
|
|
25
22
|
payload: exports.LoaderStepPayloadSchema,
|
|
26
|
-
customPayload: common_types_1.CustomPayloadSchema,
|
|
27
|
-
continueButtonLabel: zod_1.z.string().optional().default("Continue"),
|
|
28
|
-
buttonSection: common_types_1.ButtonSectionSchema.optional(),
|
|
29
|
-
figmaUrl: zod_1.z.string().nullish(),
|
|
30
23
|
});
|
|
31
24
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/Loader/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/Loader/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAwE;AAE3D,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;IAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAiB,CAAC,CAAC,OAAO,EAAE;IACtD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC7C,OAAO,EAAE,OAAC;SACP,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;SACxC,QAAQ,EAAE;SACV,OAAO,CAAC,MAAM,CAAC;CACnB,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC5D,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,OAAO,EAAE,+BAAuB;CACjC,CAAC,CAAC"}
|
|
@@ -27,9 +27,37 @@ export declare const MediaContentStepPayloadSchema: z.ZodObject<{
|
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
export declare const MediaContentStepTypeSchema: z.ZodObject<{
|
|
29
29
|
id: z.ZodString;
|
|
30
|
-
type: z.ZodLiteral<"MediaContent">;
|
|
31
30
|
name: z.ZodString;
|
|
32
31
|
displayProgressHeader: z.ZodBoolean;
|
|
32
|
+
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
33
|
+
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
label: z.ZodOptional<z.ZodString>;
|
|
36
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
nextStep: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
defaultTargetStepId: z.ZodString;
|
|
41
|
+
branches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
42
|
+
condition: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
43
|
+
variable: z.ZodString;
|
|
44
|
+
operator: z.ZodEnum<{
|
|
45
|
+
eq: "eq";
|
|
46
|
+
neq: "neq";
|
|
47
|
+
gt: "gt";
|
|
48
|
+
lt: "lt";
|
|
49
|
+
gte: "gte";
|
|
50
|
+
lte: "lte";
|
|
51
|
+
contains: "contains";
|
|
52
|
+
in: "in";
|
|
53
|
+
not_in: "not_in";
|
|
54
|
+
}>;
|
|
55
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
56
|
+
}, z.core.$strip>, z.ZodType<import("../common.types").ConditionGroup, unknown, z.core.$ZodTypeInternals<import("../common.types").ConditionGroup, unknown>>]>>>;
|
|
57
|
+
targetStepId: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
type: z.ZodLiteral<"MediaContent">;
|
|
33
61
|
payload: z.ZodObject<{
|
|
34
62
|
mediaSource: z.ZodUnion<readonly [z.ZodObject<{
|
|
35
63
|
type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"image">]>, z.ZodLiteral<"lottie">]>, z.ZodLiteral<"rive">]>;
|
|
@@ -51,13 +79,6 @@ export declare const MediaContentStepTypeSchema: z.ZodObject<{
|
|
|
51
79
|
media_bottom: "media_bottom";
|
|
52
80
|
}>>>;
|
|
53
81
|
}, z.core.$strip>;
|
|
54
|
-
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
55
|
-
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
56
|
-
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
57
|
-
label: z.ZodOptional<z.ZodString>;
|
|
58
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
|
-
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
82
|
}, z.core.$strip>;
|
|
62
83
|
export type MediaContentStepType = z.infer<typeof MediaContentStepTypeSchema>;
|
|
63
84
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/MediaContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/MediaContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,6BAA6B;;;;GAAsE,CAAC;AAEjH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;iBAMxC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -11,15 +11,8 @@ exports.MediaContentStepPayloadSchema = zod_1.z.object({
|
|
|
11
11
|
socialProof: common_types_1.SocialProofSchema.nullish(),
|
|
12
12
|
layoutStyle: exports.MediaContentLayoutStyleSchema.optional(),
|
|
13
13
|
});
|
|
14
|
-
exports.MediaContentStepTypeSchema =
|
|
15
|
-
id: zod_1.z.string(),
|
|
14
|
+
exports.MediaContentStepTypeSchema = common_types_1.BaseStepTypeSchema.extend({
|
|
16
15
|
type: zod_1.z.literal("MediaContent"),
|
|
17
|
-
name: zod_1.z.string(),
|
|
18
|
-
displayProgressHeader: zod_1.z.boolean(),
|
|
19
16
|
payload: exports.MediaContentStepPayloadSchema,
|
|
20
|
-
customPayload: common_types_1.CustomPayloadSchema,
|
|
21
|
-
continueButtonLabel: zod_1.z.string().optional().default("Continue"),
|
|
22
|
-
buttonSection: common_types_1.ButtonSectionSchema.optional(),
|
|
23
|
-
figmaUrl: zod_1.z.string().nullish(),
|
|
24
17
|
});
|
|
25
18
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/MediaContent/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/MediaContent/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAA2F;AAE9E,QAAA,6BAA6B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAEpG,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,WAAW,EAAE,gCAAiB;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACjC,WAAW,EAAE,gCAAiB,CAAC,OAAO,EAAE;IACxC,WAAW,EAAE,qCAA6B,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAClE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAC/B,OAAO,EAAE,qCAA6B;CACvC,CAAC,CAAC"}
|
|
@@ -23,9 +23,37 @@ export declare const PickerStepPayloadSchema: z.ZodObject<{
|
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
export declare const PickerStepTypeSchema: z.ZodObject<{
|
|
25
25
|
id: z.ZodString;
|
|
26
|
-
type: z.ZodLiteral<"Picker">;
|
|
27
26
|
name: z.ZodString;
|
|
28
27
|
displayProgressHeader: z.ZodBoolean;
|
|
28
|
+
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
29
|
+
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
label: z.ZodOptional<z.ZodString>;
|
|
32
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
nextStep: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
defaultTargetStepId: z.ZodString;
|
|
37
|
+
branches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
38
|
+
condition: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
39
|
+
variable: z.ZodString;
|
|
40
|
+
operator: z.ZodEnum<{
|
|
41
|
+
eq: "eq";
|
|
42
|
+
neq: "neq";
|
|
43
|
+
gt: "gt";
|
|
44
|
+
lt: "lt";
|
|
45
|
+
gte: "gte";
|
|
46
|
+
lte: "lte";
|
|
47
|
+
contains: "contains";
|
|
48
|
+
in: "in";
|
|
49
|
+
not_in: "not_in";
|
|
50
|
+
}>;
|
|
51
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
52
|
+
}, z.core.$strip>, z.ZodType<import("../common.types").ConditionGroup, unknown, z.core.$ZodTypeInternals<import("../common.types").ConditionGroup, unknown>>]>>>;
|
|
53
|
+
targetStepId: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
type: z.ZodLiteral<"Picker">;
|
|
29
57
|
payload: z.ZodObject<{
|
|
30
58
|
title: z.ZodString;
|
|
31
59
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -39,13 +67,7 @@ export declare const PickerStepTypeSchema: z.ZodObject<{
|
|
|
39
67
|
coach: "coach";
|
|
40
68
|
}>, z.ZodString]>;
|
|
41
69
|
}, z.core.$strip>;
|
|
42
|
-
|
|
43
|
-
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
44
|
-
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
label: z.ZodOptional<z.ZodString>;
|
|
46
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
variableName: z.ZodOptional<z.ZodString>;
|
|
49
71
|
}, z.core.$strip>;
|
|
50
72
|
export type PickerStepType = z.infer<typeof PickerStepTypeSchema>;
|
|
51
73
|
export type WeightUnit = "kg" | "lb";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Picker/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;EAQzB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Picker/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;EAQzB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC"}
|