@rocapine/react-native-onboarding 1.44.7 → 1.46.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.
@@ -34,6 +34,8 @@ import {
34
34
  } from "./elements/KeyboardAvoidingViewElement";
35
35
  import { type ProgressIndicatorElementProps, ProgressIndicatorElementPropsSchema } from "./elements/ProgressIndicatorElement";
36
36
  import { type AnimatedTextElementProps, AnimatedTextElementPropsSchema } from "./elements/AnimatedTextElement";
37
+ import { type DrawingPadElementProps, DrawingPadElementPropsSchema } from "./elements/DrawingPadElement";
38
+ import { type SliderElementProps, SliderElementPropsSchema } from "./elements/SliderElement";
37
39
 
38
40
  export type { BaseBoxProps, GradientBackground, GradientEdge, GradientStop, LinearGradientConfig } from "./elements/BaseBoxProps";
39
41
  export type {
@@ -86,6 +88,8 @@ export type {
86
88
  } from "./elements/KeyboardAvoidingViewElement";
87
89
  export type { ProgressIndicatorElementProps, ProgressEasing } from "./elements/ProgressIndicatorElement";
88
90
  export type { AnimatedTextElementProps } from "./elements/AnimatedTextElement";
91
+ export type { DrawingPadElementProps } from "./elements/DrawingPadElement";
92
+ export type { SliderElementProps } from "./elements/SliderElement";
89
93
 
90
94
  /**
91
95
  * Type tag for a ComposableScreen variable. Drives expression-mode coercion
@@ -267,6 +271,20 @@ type UIElement =
267
271
  renderWhen?: LeafCondition | ConditionGroup;
268
272
  type: "AnimatedText";
269
273
  props: AnimatedTextElementProps;
274
+ }
275
+ | {
276
+ id: string;
277
+ name?: string;
278
+ renderWhen?: LeafCondition | ConditionGroup;
279
+ type: "DrawingPad";
280
+ props: DrawingPadElementProps;
281
+ }
282
+ | {
283
+ id: string;
284
+ name?: string;
285
+ renderWhen?: LeafCondition | ConditionGroup;
286
+ type: "Slider";
287
+ props: SliderElementProps;
270
288
  };
271
289
 
272
290
  // The `Text` variant, extracted so `RichText` can restrict its children to
@@ -437,6 +455,20 @@ const UIElementSchema: z.ZodType<UIElement> = z.lazy(() =>
437
455
  type: z.literal("AnimatedText"),
438
456
  props: AnimatedTextElementPropsSchema,
439
457
  }),
458
+ z.object({
459
+ id: z.string(),
460
+ name: z.string().optional(),
461
+ renderWhen: z.union([LeafConditionSchema, ConditionGroupSchema]).optional(),
462
+ type: z.literal("DrawingPad"),
463
+ props: DrawingPadElementPropsSchema,
464
+ }),
465
+ z.object({
466
+ id: z.string(),
467
+ name: z.string().optional(),
468
+ renderWhen: z.union([LeafConditionSchema, ConditionGroupSchema]).optional(),
469
+ type: z.literal("Slider"),
470
+ props: SliderElementPropsSchema,
471
+ }),
440
472
  ])
441
473
  );
442
474