@rocapine/react-native-onboarding-ui 1.38.2 → 1.39.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.
@@ -37,6 +37,10 @@ import {
37
37
  type ProgressIndicatorElementProps,
38
38
  ProgressIndicatorElementPropsSchema,
39
39
  } from "./elements/ProgressIndicatorElement";
40
+ import {
41
+ type AnimatedTextElementProps,
42
+ AnimatedTextElementPropsSchema,
43
+ } from "./elements/AnimatedTextElement";
40
44
 
41
45
  export type { BaseBoxProps } from "./elements/BaseBoxProps";
42
46
  export { BaseBoxPropsSchema } from "./elements/BaseBoxProps";
@@ -70,6 +74,7 @@ export type {
70
74
  KeyboardAvoidingBehavior,
71
75
  } from "./elements/KeyboardAvoidingViewElement";
72
76
  export type { ProgressIndicatorElementProps, ProgressEasing } from "./elements/ProgressIndicatorElement";
77
+ export type { AnimatedTextElementProps } from "./elements/AnimatedTextElement";
73
78
 
74
79
  // UIElement union — must live here (not in elements/) to avoid circular deps
75
80
  // because the Stack variant's children: UIElement[] references itself.
@@ -227,6 +232,13 @@ export type UIElement =
227
232
  renderWhen?: LeafCondition | ConditionGroup;
228
233
  type: "ProgressIndicator";
229
234
  props: ProgressIndicatorElementProps;
235
+ }
236
+ | {
237
+ id: string;
238
+ name?: string;
239
+ renderWhen?: LeafCondition | ConditionGroup;
240
+ type: "AnimatedText";
241
+ props: AnimatedTextElementProps;
230
242
  };
231
243
 
232
244
  // The `Text` variant, extracted so `RichText` can restrict its children to
@@ -390,6 +402,13 @@ export const UIElementSchema: z.ZodType<UIElement> = z.lazy(() =>
390
402
  type: z.literal("ProgressIndicator"),
391
403
  props: ProgressIndicatorElementPropsSchema,
392
404
  }),
405
+ z.object({
406
+ id: z.string(),
407
+ name: z.string().optional(),
408
+ renderWhen: z.union([LeafConditionSchema, ConditionGroupSchema]).optional(),
409
+ type: z.literal("AnimatedText"),
410
+ props: AnimatedTextElementPropsSchema,
411
+ }),
393
412
  ])
394
413
  );
395
414