@rocapine/react-native-onboarding 1.59.1 → 1.59.2
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/steps/ComposableScreen/elements/TypewriterTextElement.d.ts +9 -4
- package/dist/steps/ComposableScreen/elements/TypewriterTextElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/TypewriterTextElement.js +1 -1
- package/dist/steps/ComposableScreen/elements/TypewriterTextElement.js.map +1 -1
- package/package.json +1 -1
- package/src/steps/ComposableScreen/elements/TypewriterTextElement.ts +8 -3
|
@@ -21,8 +21,13 @@ export type TypewriterTextElementProps = BaseBoxProps & {
|
|
|
21
21
|
*/
|
|
22
22
|
content: string;
|
|
23
23
|
mode?: "plain" | "expression";
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Reanimated entering builder applied per character, or `"none"` to disable
|
|
26
|
+
* the per-character animation entirely (all characters render immediately;
|
|
27
|
+
* with `cursor` they still mount progressively, just without animating in).
|
|
28
|
+
* Default `"FadeInDown"`.
|
|
29
|
+
*/
|
|
30
|
+
preset?: EnteringPreset | "none";
|
|
26
31
|
/** Per-character animation length in ms (reanimated `.duration()`). Default 400. */
|
|
27
32
|
duration?: number;
|
|
28
33
|
/** Lead-in delay (ms) before the first character animates. Default 0. */
|
|
@@ -324,7 +329,7 @@ export declare const TypewriterTextElementPropsSchema: z.ZodObject<{
|
|
|
324
329
|
expression: "expression";
|
|
325
330
|
plain: "plain";
|
|
326
331
|
}>>;
|
|
327
|
-
preset: z.ZodOptional<z.ZodEnum<{
|
|
332
|
+
preset: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
328
333
|
FadeIn: "FadeIn";
|
|
329
334
|
FadeInUp: "FadeInUp";
|
|
330
335
|
FadeInDown: "FadeInDown";
|
|
@@ -364,7 +369,7 @@ export declare const TypewriterTextElementPropsSchema: z.ZodObject<{
|
|
|
364
369
|
PinwheelIn: "PinwheelIn";
|
|
365
370
|
LightSpeedInLeft: "LightSpeedInLeft";
|
|
366
371
|
LightSpeedInRight: "LightSpeedInRight";
|
|
367
|
-
}>>;
|
|
372
|
+
}>, z.ZodLiteral<"none">]>>;
|
|
368
373
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
369
374
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
370
375
|
stagger: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypewriterTextElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TypewriterTextElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,YAAY,EAEZ,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EAIlB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,GAAG;IACtD;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B
|
|
1
|
+
{"version":3,"file":"TypewriterTextElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TypewriterTextElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,YAAY,EAEZ,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EAIlB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,GAAG;IACtD;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC;IACjC,oFAAoF;IACpF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;;;;;;;;iBAqB3C,CAAC"}
|
|
@@ -6,7 +6,7 @@ const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
|
6
6
|
exports.TypewriterTextElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
7
7
|
content: zod_1.z.string(),
|
|
8
8
|
mode: zod_1.z.enum(["plain", "expression"]).optional(),
|
|
9
|
-
preset: BaseBoxProps_1.EnteringPresetSchema.optional(),
|
|
9
|
+
preset: zod_1.z.union([BaseBoxProps_1.EnteringPresetSchema, zod_1.z.literal("none")]).optional(),
|
|
10
10
|
duration: zod_1.z.number().min(0).optional(),
|
|
11
11
|
delay: zod_1.z.number().min(0).optional(),
|
|
12
12
|
stagger: zod_1.z.number().min(0).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypewriterTextElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TypewriterTextElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDASwB;
|
|
1
|
+
{"version":3,"file":"TypewriterTextElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TypewriterTextElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDASwB;AA8DX,QAAA,gCAAgC,GAAG,iCAAkB,CAAC,MAAM,CAAC;IACxE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,mCAAoB,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAA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": "1.59.2",
|
|
4
4
|
"description": "Headless React Native SDK for Rocapine Onboarding Studio - Data fetching, state management, and hooks",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,8 +31,13 @@ export type TypewriterTextElementProps = BaseBoxProps & {
|
|
|
31
31
|
*/
|
|
32
32
|
content: string;
|
|
33
33
|
mode?: "plain" | "expression";
|
|
34
|
-
/**
|
|
35
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Reanimated entering builder applied per character, or `"none"` to disable
|
|
36
|
+
* the per-character animation entirely (all characters render immediately;
|
|
37
|
+
* with `cursor` they still mount progressively, just without animating in).
|
|
38
|
+
* Default `"FadeInDown"`.
|
|
39
|
+
*/
|
|
40
|
+
preset?: EnteringPreset | "none";
|
|
36
41
|
/** Per-character animation length in ms (reanimated `.duration()`). Default 400. */
|
|
37
42
|
duration?: number;
|
|
38
43
|
/** Lead-in delay (ms) before the first character animates. Default 0. */
|
|
@@ -68,7 +73,7 @@ export type TypewriterTextElementProps = BaseBoxProps & {
|
|
|
68
73
|
export const TypewriterTextElementPropsSchema = BaseBoxPropsSchema.extend({
|
|
69
74
|
content: z.string(),
|
|
70
75
|
mode: z.enum(["plain", "expression"]).optional(),
|
|
71
|
-
preset: EnteringPresetSchema.optional(),
|
|
76
|
+
preset: z.union([EnteringPresetSchema, z.literal("none")]).optional(),
|
|
72
77
|
duration: z.number().min(0).optional(),
|
|
73
78
|
delay: z.number().min(0).optional(),
|
|
74
79
|
stagger: z.number().min(0).optional(),
|