exodeui 6.3.6 → 6.3.7

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.
@@ -1,38 +1,33 @@
1
1
  import { default as React } from 'react';
2
2
  import { ExodeUIEngine } from './engine';
3
- import { Artboard, Fit, Alignment, ComponentEvent, SEOConfig } from './types';
3
+ import { Artboard } from './types';
4
4
 
5
5
  export interface ExodeUICanvasProps {
6
6
  artboard?: Artboard;
7
7
  src?: string;
8
- className?: string;
9
- style?: React.CSSProperties;
10
- autoPlay?: boolean;
11
- fit?: Fit;
12
- alignment?: Alignment;
13
- enableSEO?: boolean;
14
- seo?: SEOConfig;
15
8
  onReady?: (engine: ExodeUIEngine) => void;
16
- onTrigger?: (triggerName: string, animationName: string) => void;
17
- onInputUpdate?: (nameOrId: string, value: any) => void;
18
- onComponentChange?: (event: ComponentEvent) => void;
19
- onToggle?: (name: string, checked: boolean) => void;
20
- onInputChange?: (name: string, text: string) => void;
21
- onInputFocus?: (name: string) => void;
22
- onInputBlur?: (name: string) => void;
23
- onLog?: (msg: string) => void;
24
- onLogicUpdate?: (values: Record<string, any>) => void;
25
- onButtonClick?: (name: string, objectId: string) => void;
26
- onGraphPointClick?: (event: {
27
- objectId: string;
28
- componentName: string;
29
- datasetIndex: number;
30
- pointIndex: number;
31
- value: number;
32
- label: string;
33
- }) => void;
9
+ onTrigger?: (triggerId: string, metadata?: any) => void;
10
+ onInputUpdate?: (inputs: Record<string, any>) => void;
11
+ onComponentChange?: (componentId: string, state: any) => void;
12
+ onToggle?: (id: string, active: boolean) => void;
13
+ onInputChange?: (id: string, value: string) => void;
14
+ onInputFocus?: (id: string) => void;
15
+ onInputBlur?: (id: string) => void;
16
+ onLog?: (message: string, level: 'info' | 'warn' | 'error') => void;
17
+ onLogicUpdate?: (state: any) => void;
18
+ onButtonClick?: (id: string) => void;
19
+ onGraphPointClick?: (graphId: string, point: any) => void;
34
20
  currentTime?: number;
35
21
  revision?: number;
22
+ fit?: 'Contain' | 'Cover' | 'Fill' | 'None';
23
+ alignment?: 'Center' | 'TopLeft' | 'TopRight' | 'BottomLeft' | 'BottomRight';
24
+ style?: React.CSSProperties;
25
+ autoPlay?: boolean;
26
+ enableSEO?: boolean;
27
+ seo?: {
28
+ title?: string;
29
+ description?: string;
30
+ };
36
31
  scrollY?: number;
37
32
  scrollX?: number;
38
33
  mouseX?: number;
@@ -51,6 +51,21 @@ export interface Shadow {
51
51
  export interface Blur {
52
52
  amount: number;
53
53
  }
54
+ export interface RepeaterConfig {
55
+ isEnabled: boolean;
56
+ type: 'Linear' | 'Grid' | 'Radial';
57
+ count: number;
58
+ offsetX?: number;
59
+ offsetY?: number;
60
+ rotation?: number;
61
+ scale?: number;
62
+ cols?: number;
63
+ gapX?: number;
64
+ gapY?: number;
65
+ radius?: number;
66
+ startAngle?: number;
67
+ endAngle?: number;
68
+ }
54
69
  export interface DesignTokens {
55
70
  colors: Record<string, string>;
56
71
  typography: Record<string, {
@@ -510,6 +525,7 @@ export interface ShapeObject {
510
525
  autoLayout?: AutoLayoutConfig;
511
526
  layoutProps?: LayoutProps;
512
527
  altText?: string;
528
+ repeaterConfig?: RepeaterConfig;
513
529
  }
514
530
  export interface Keyframe {
515
531
  time: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodeui",
3
- "version": "6.3.6",
3
+ "version": "6.3.7",
4
4
  "description": "React Runtime for ExodeUI Animation Engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",