motionary 10.6.0 → 10.8.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.
Files changed (153) hide show
  1. package/AGENTS.md +2 -0
  2. package/CHANGELOG.md +36 -0
  3. package/README.md +77 -4
  4. package/bin/motionary-mcp.mjs +160 -11
  5. package/dist/chunks/{anim-image-DECLkPH4.cjs → anim-image-BzTQa2k3.cjs} +2 -2
  6. package/dist/chunks/{anim-image-DECLkPH4.cjs.map → anim-image-BzTQa2k3.cjs.map} +1 -1
  7. package/dist/chunks/{anim-image-DNghy017.js → anim-image-iD646Q7i.js} +2 -2
  8. package/dist/chunks/{anim-image-DNghy017.js.map → anim-image-iD646Q7i.js.map} +1 -1
  9. package/dist/chunks/{keyframes-F6vp6tZZ.js → keyframes-B4zefz0k.js} +2 -2
  10. package/dist/chunks/{keyframes-F6vp6tZZ.js.map → keyframes-B4zefz0k.js.map} +1 -1
  11. package/dist/chunks/{keyframes-CbUZjD_5.cjs → keyframes-BlOyB1PP.cjs} +2 -2
  12. package/dist/chunks/{keyframes-CbUZjD_5.cjs.map → keyframes-BlOyB1PP.cjs.map} +1 -1
  13. package/dist/chunks/{registry-dr1CPTk1.cjs → registry-BZxDVL3h.cjs} +2 -2
  14. package/dist/chunks/{registry-dr1CPTk1.cjs.map → registry-BZxDVL3h.cjs.map} +1 -1
  15. package/dist/chunks/{registry-D8LAoXI-.js → registry-Bkt3-3ET.js} +3 -3
  16. package/dist/chunks/{registry-D8LAoXI-.js.map → registry-Bkt3-3ET.js.map} +1 -1
  17. package/dist/chunks/runtime-link-CUiZ8lbE.cjs +38 -0
  18. package/dist/chunks/runtime-link-CUiZ8lbE.cjs.map +1 -0
  19. package/dist/chunks/runtime-link-c13gskBZ.js +36 -0
  20. package/dist/chunks/runtime-link-c13gskBZ.js.map +1 -0
  21. package/dist/chunks/{ticker-DaAlEyOd.cjs → ticker-BfxAECfO.cjs} +2 -2
  22. package/dist/chunks/{ticker-DaAlEyOd.cjs.map → ticker-BfxAECfO.cjs.map} +1 -1
  23. package/dist/chunks/{ticker-Do9bGsaV.js → ticker-ZtweD3U4.js} +2 -2
  24. package/dist/chunks/{ticker-Do9bGsaV.js.map → ticker-ZtweD3U4.js.map} +1 -1
  25. package/dist/chunks/{tween-CmkdSyaC.cjs → tween--MD-39y0.cjs} +2 -2
  26. package/dist/chunks/{tween-CmkdSyaC.cjs.map → tween--MD-39y0.cjs.map} +1 -1
  27. package/dist/chunks/{tween-BzCGq_Ba.js → tween-DACdkLyO.js} +2 -2
  28. package/dist/chunks/{tween-BzCGq_Ba.js.map → tween-DACdkLyO.js.map} +1 -1
  29. package/dist/components/ai.cjs +314 -0
  30. package/dist/components/ai.cjs.map +1 -0
  31. package/dist/components/ai.d.cts +58 -0
  32. package/dist/components/ai.d.ts +58 -0
  33. package/dist/components/ai.js +311 -0
  34. package/dist/components/ai.js.map +1 -0
  35. package/dist/components/snap-carousel.cjs +216 -0
  36. package/dist/components/snap-carousel.cjs.map +1 -0
  37. package/dist/components/snap-carousel.d.cts +80 -0
  38. package/dist/components/snap-carousel.d.ts +80 -0
  39. package/dist/components/snap-carousel.js +214 -0
  40. package/dist/components/snap-carousel.js.map +1 -0
  41. package/dist/components/widgets.cjs +626 -268
  42. package/dist/components/widgets.cjs.map +1 -1
  43. package/dist/components/widgets.d.cts +515 -39
  44. package/dist/components/widgets.d.ts +515 -39
  45. package/dist/components/widgets.js +617 -262
  46. package/dist/components/widgets.js.map +1 -1
  47. package/dist/llms-full.txt +191 -6
  48. package/dist/llms.txt +10 -3
  49. package/dist/manifest.json +497 -19
  50. package/dist/runtime/drag-snap.cjs +269 -0
  51. package/dist/runtime/drag-snap.cjs.map +1 -0
  52. package/dist/runtime/drag-snap.d.cts +109 -0
  53. package/dist/runtime/drag-snap.d.ts +109 -0
  54. package/dist/runtime/drag-snap.iife.js +2 -0
  55. package/dist/runtime/drag-snap.iife.js.map +1 -0
  56. package/dist/runtime/drag-snap.js +261 -0
  57. package/dist/runtime/drag-snap.js.map +1 -0
  58. package/dist/runtime/format-apng.cjs +4 -4
  59. package/dist/runtime/format-apng.js +4 -4
  60. package/dist/runtime/format-css.cjs +4 -4
  61. package/dist/runtime/format-css.js +4 -4
  62. package/dist/runtime/format-gif.cjs +4 -4
  63. package/dist/runtime/format-gif.js +4 -4
  64. package/dist/runtime/format-gltf.cjs +37 -18
  65. package/dist/runtime/format-gltf.cjs.map +1 -1
  66. package/dist/runtime/format-gltf.d.cts +18 -2
  67. package/dist/runtime/format-gltf.d.ts +18 -2
  68. package/dist/runtime/format-gltf.iife.js +1 -1
  69. package/dist/runtime/format-gltf.iife.js.map +1 -1
  70. package/dist/runtime/format-gltf.js +37 -18
  71. package/dist/runtime/format-gltf.js.map +1 -1
  72. package/dist/runtime/format-motion.cjs +4 -4
  73. package/dist/runtime/format-motion.js +4 -4
  74. package/dist/runtime/format-obj.cjs +1 -1
  75. package/dist/runtime/format-obj.d.cts +2 -0
  76. package/dist/runtime/format-obj.d.ts +2 -0
  77. package/dist/runtime/format-obj.iife.js.map +1 -1
  78. package/dist/runtime/format-obj.js +1 -1
  79. package/dist/runtime/format-scene.cjs +241 -0
  80. package/dist/runtime/format-scene.cjs.map +1 -0
  81. package/dist/runtime/format-scene.d.cts +349 -0
  82. package/dist/runtime/format-scene.d.ts +349 -0
  83. package/dist/runtime/format-scene.iife.js +2 -0
  84. package/dist/runtime/format-scene.iife.js.map +1 -0
  85. package/dist/runtime/format-scene.js +233 -0
  86. package/dist/runtime/format-scene.js.map +1 -0
  87. package/dist/runtime/format-sprite.cjs +3 -3
  88. package/dist/runtime/format-sprite.js +3 -3
  89. package/dist/runtime/format-svg.cjs +3 -3
  90. package/dist/runtime/format-svg.js +3 -3
  91. package/dist/runtime/format-webp.cjs +4 -4
  92. package/dist/runtime/format-webp.js +4 -4
  93. package/dist/runtime/gl.cjs +17 -4
  94. package/dist/runtime/gl.cjs.map +1 -1
  95. package/dist/runtime/gl.d.cts +2 -0
  96. package/dist/runtime/gl.d.ts +2 -0
  97. package/dist/runtime/gl.iife.js +1 -1
  98. package/dist/runtime/gl.iife.js.map +1 -1
  99. package/dist/runtime/gl.js +17 -4
  100. package/dist/runtime/gl.js.map +1 -1
  101. package/dist/runtime/gltf-anim.cjs +251 -0
  102. package/dist/runtime/gltf-anim.cjs.map +1 -0
  103. package/dist/runtime/gltf-anim.d.cts +216 -0
  104. package/dist/runtime/gltf-anim.d.ts +216 -0
  105. package/dist/runtime/gltf-anim.iife.js +2 -0
  106. package/dist/runtime/gltf-anim.iife.js.map +1 -0
  107. package/dist/runtime/gltf-anim.js +243 -0
  108. package/dist/runtime/gltf-anim.js.map +1 -0
  109. package/dist/runtime/physics.cjs +739 -0
  110. package/dist/runtime/physics.cjs.map +1 -0
  111. package/dist/runtime/physics.d.cts +250 -0
  112. package/dist/runtime/physics.d.ts +250 -0
  113. package/dist/runtime/physics.iife.js +2 -0
  114. package/dist/runtime/physics.iife.js.map +1 -0
  115. package/dist/runtime/physics.js +731 -0
  116. package/dist/runtime/physics.js.map +1 -0
  117. package/dist/runtime/scroll.cjs +2 -2
  118. package/dist/runtime/scroll.js +2 -2
  119. package/dist/runtime/smooth.cjs +1 -1
  120. package/dist/runtime/smooth.js +1 -1
  121. package/dist/runtime/text.cjs +1 -1
  122. package/dist/runtime/text.js +1 -1
  123. package/dist/runtime/vector.cjs +421 -11
  124. package/dist/runtime/vector.cjs.map +1 -1
  125. package/dist/runtime/vector.d.cts +20 -4
  126. package/dist/runtime/vector.d.ts +20 -4
  127. package/dist/runtime/vector.iife.js +1 -1
  128. package/dist/runtime/vector.iife.js.map +1 -1
  129. package/dist/runtime/vector.js +421 -12
  130. package/dist/runtime/vector.js.map +1 -1
  131. package/dist/runtime.cjs +3 -3
  132. package/dist/runtime.d.cts +1 -1
  133. package/dist/runtime.d.ts +1 -1
  134. package/dist/runtime.iife.js +1 -1
  135. package/dist/runtime.iife.js.map +1 -1
  136. package/dist/runtime.js +5 -5
  137. package/dist/widgets.umd.js +1 -1
  138. package/dist/widgets.umd.js.map +1 -1
  139. package/docs/ROADMAP.md +2 -2
  140. package/docs/components/README.md +5 -2
  141. package/docs/components/usa-gl-scene.md +27 -6
  142. package/docs/components/usa-lottie-player.md +18 -0
  143. package/docs/components/usa-motion-prompt.md +32 -0
  144. package/docs/components/usa-physics-playground.md +63 -0
  145. package/docs/components/usa-snap-carousel.md +68 -0
  146. package/docs/components.md +95 -3
  147. package/docs/runtime/drag-snap.md +60 -0
  148. package/docs/runtime/format-gltf.md +3 -2
  149. package/docs/runtime/format-scene.md +59 -0
  150. package/docs/runtime/gltf-anim.md +62 -0
  151. package/docs/runtime/physics.md +61 -0
  152. package/docs/runtime/vector.md +3 -2
  153. package/package.json +61 -1
@@ -2392,6 +2392,8 @@ interface Geometry {
2392
2392
  indices?: Uint16Array | Uint32Array;
2393
2393
  /** 'triangles' (default), 'lines', 'points'. */
2394
2394
  mode?: 'triangles' | 'lines' | 'points';
2395
+ /** Bump after changing positions / normals in place (10.8: skinning, morph targets) — the renderer re-uploads them. */
2396
+ version?: number;
2395
2397
  /** Renderer cache. */
2396
2398
  _gpu?: unknown;
2397
2399
  }
@@ -2478,7 +2480,7 @@ interface Light {
2478
2480
  color: Vec3;
2479
2481
  intensity: number;
2480
2482
  }
2481
- declare class Scene {
2483
+ declare class Scene$1 {
2482
2484
  root: GlNode;
2483
2485
  ambient: Vec3;
2484
2486
  lights: Light[];
@@ -2488,6 +2490,60 @@ declare class Scene {
2488
2490
  add(...n: GlNode[]): this;
2489
2491
  }
2490
2492
 
2493
+ /**
2494
+ * `motionary/runtime/gltf-anim` (10.8) — glTF 2.0 animation, skinning and
2495
+ * morph targets for models loaded by `motionary/runtime/format-gltf`
2496
+ * (own implementation; requires `use(gl, formatGltf, gltfAnim)`).
2497
+ *
2498
+ * - animation channels on node `translation` / `rotation` / `scale` /
2499
+ * `weights` with `LINEAR` (quaternions slerped), `STEP` and
2500
+ * `CUBICSPLINE` (Hermite with in / out tangents) samplers;
2501
+ * - morph targets (POSITION + NORMAL deltas) with mesh default weights,
2502
+ * node weights and animated weights;
2503
+ * - skins: joint hierarchy, inverse bind matrices, 4 joints / vertex
2504
+ * (JOINTS_0 / WEIGHTS_0), skinned on the CPU and re-uploaded each frame
2505
+ * (`geometry.version`), so it works with every runtime/gl material;
2506
+ * - `gltfAnimator(model)` plays a clip (by name or index) with loop / speed
2507
+ * / seek, `update(dt)` from your loop or `play()` on the shared ticker.
2508
+ *
2509
+ * Sampling and deformation are pure (SSR / workers / tests).
2510
+ */
2511
+
2512
+ type Num$3 = number;
2513
+ type ChannelPath = 'translation' | 'rotation' | 'scale' | 'weights';
2514
+ type Interpolation = 'LINEAR' | 'STEP' | 'CUBICSPLINE';
2515
+ interface GltfChannel {
2516
+ node: GlNode;
2517
+ path: ChannelPath;
2518
+ interpolation: Interpolation;
2519
+ times: Float32Array;
2520
+ values: Float32Array;
2521
+ /** Components per key (3, 4 or the morph target count). */
2522
+ size: Num$3;
2523
+ }
2524
+ interface GltfClip {
2525
+ name: string;
2526
+ duration: Num$3;
2527
+ channels: GltfChannel[];
2528
+ }
2529
+ interface GltfAnimator {
2530
+ readonly clips: GltfClip[];
2531
+ readonly clip: GltfClip | null;
2532
+ time: Num$3;
2533
+ speed: Num$3;
2534
+ loop: boolean;
2535
+ readonly playing: boolean;
2536
+ /** Switch clip (name or index); keeps playing state. */
2537
+ use(clip: string | Num$3): void;
2538
+ seek(t: Num$3): void;
2539
+ /** Advance by `dt` seconds and pose + deform. */
2540
+ update(dt: Num$3): void;
2541
+ /** Run on the shared ticker. */
2542
+ play(): void;
2543
+ pause(): void;
2544
+ dispose(): void;
2545
+ }
2546
+
2491
2547
  /**
2492
2548
  * `<usa-gl-scene src="model.glb" controls auto-rotate></usa-gl-scene>` (10.5)
2493
2549
  * — a WebGL2 3D viewer on **`motionary/runtime/gl`** (requires `use(gl)`;
@@ -2498,14 +2554,18 @@ declare class Scene {
2498
2554
  * `auto-rotate` (deg/s; off under reduced motion), `video` (a video URL
2499
2555
  * mapped onto the shape as a texture; `video-scrub` ties its time to the
2500
2556
  * element's scroll position instead of playing), `label` (accessible name).
2501
- * Renders only while visible. `scene`, `camera`, `root`, `reload()`;
2502
- * `usa:load` { nodes, meshes }, `usa:error`.
2557
+ * 10.8: `animation` (clip name or index; empty = the first) plays a glTF
2558
+ * animation with skinning and morph targets (requires
2559
+ * `motionary/runtime/gltf-anim`), `animation-speed`; reduced motion shows
2560
+ * the first pose. Renders only while visible. `scene`, `camera`, `root`,
2561
+ * `animator`, `reload()`; `usa:load` { meshes, animations }, `usa:error`.
2503
2562
  * `<usa-three-scene>` is an alias with the same API.
2504
2563
  */
2505
2564
  interface UsaGlSceneElement extends UsaElement {
2506
- readonly scene: Scene | null;
2565
+ readonly scene: Scene$1 | null;
2507
2566
  readonly camera: Camera | null;
2508
2567
  readonly root: GlNode | null;
2568
+ readonly animator: GltfAnimator | null;
2509
2569
  reload(): Promise<void>;
2510
2570
  }
2511
2571
  declare function defineGlScene(tag?: string): CustomElementConstructor | undefined;
@@ -2575,50 +2635,55 @@ declare function defineShaderBackdrop(tag?: string): CustomElementConstructor |
2575
2635
  * `DecompressionStream`), `manifest.json` v1 / v2, several animations,
2576
2636
  * embedded images.
2577
2637
  *
2578
- * Not supported (documented): 3D layers, effects, text layers (10.8),
2579
- * expressions (10.8 subset), merge paths, repeaters. `lottiePlayer()` is a
2638
+ * 10.8: **text layers** (system / web fonts by family + style, justification,
2639
+ * tracking, line height, fill + stroke, box text with wrapping, source-text
2640
+ * keyframes and expressions) and an **expression subset** (see
2641
+ * `lottie-expr.ts`: time, value, wiggle, loopOut / loopIn, linear / ease,
2642
+ * Math…; no eval). Not supported (documented): 3D layers, effects, text
2643
+ * animators, glyph outlines (`chars`), merge paths, repeaters. `lottiePlayer()` is a
2580
2644
  * runtime timeline (seek, reverse, scrub with `progress`, markers → labels).
2581
2645
  */
2582
2646
 
2583
- type Num = number;
2647
+ type Num$2 = number;
2584
2648
  interface LottieProp {
2585
- a?: Num;
2649
+ a?: Num$2;
2586
2650
  k: any;
2587
2651
  x?: string;
2588
2652
  s?: boolean;
2589
2653
  }
2590
2654
  interface LottieLayer {
2591
- ty: Num;
2592
- ind?: Num;
2593
- parent?: Num;
2594
- ip: Num;
2595
- op: Num;
2596
- st?: Num;
2597
- sr?: Num;
2655
+ t?: any;
2656
+ ty: Num$2;
2657
+ ind?: Num$2;
2658
+ parent?: Num$2;
2659
+ ip: Num$2;
2660
+ op: Num$2;
2661
+ st?: Num$2;
2662
+ sr?: Num$2;
2598
2663
  ks: any;
2599
2664
  shapes?: any[];
2600
2665
  hd?: boolean;
2601
- tt?: Num;
2602
- td?: Num;
2666
+ tt?: Num$2;
2667
+ td?: Num$2;
2603
2668
  masksProperties?: any[];
2604
2669
  refId?: string;
2605
- w?: Num;
2606
- h?: Num;
2607
- sw?: Num;
2608
- sh?: Num;
2670
+ w?: Num$2;
2671
+ h?: Num$2;
2672
+ sw?: Num$2;
2673
+ sh?: Num$2;
2609
2674
  sc?: string;
2610
2675
  tm?: LottieProp;
2611
2676
  nm?: string;
2612
- ddd?: Num;
2677
+ ddd?: Num$2;
2613
2678
  ef?: unknown[];
2614
2679
  }
2615
2680
  interface LottieAnimation {
2616
2681
  v?: string;
2617
- fr: Num;
2618
- ip: Num;
2619
- op: Num;
2620
- w: Num;
2621
- h: Num;
2682
+ fr: Num$2;
2683
+ ip: Num$2;
2684
+ op: Num$2;
2685
+ w: Num$2;
2686
+ h: Num$2;
2622
2687
  nm?: string;
2623
2688
  layers: LottieLayer[];
2624
2689
  assets?: {
@@ -2626,23 +2691,31 @@ interface LottieAnimation {
2626
2691
  layers?: LottieLayer[];
2627
2692
  p?: string;
2628
2693
  u?: string;
2629
- w?: Num;
2630
- h?: Num;
2631
- e?: Num;
2694
+ w?: Num$2;
2695
+ h?: Num$2;
2696
+ e?: Num$2;
2632
2697
  }[];
2633
2698
  markers?: {
2634
2699
  cm: string;
2635
- tm: Num;
2636
- dr: Num;
2700
+ tm: Num$2;
2701
+ dr: Num$2;
2637
2702
  }[];
2703
+ fonts?: {
2704
+ list?: {
2705
+ fName: string;
2706
+ fFamily?: string;
2707
+ fStyle?: string;
2708
+ }[];
2709
+ };
2710
+ chars?: unknown[];
2638
2711
  }
2639
2712
  type LottiePlayer = Playable & {
2640
- readonly frame: Num;
2641
- readonly totalFrames: Num;
2713
+ readonly frame: Num$2;
2714
+ readonly totalFrames: Num$2;
2642
2715
  readonly animation: LottieAnimation;
2643
- goToFrame(f: Num): void;
2644
- setSegment(seg: [Num, Num] | string | null): void;
2645
- markers: Record<string, [Num, Num]>;
2716
+ goToFrame(f: Num$2): void;
2717
+ setSegment(seg: [Num$2, Num$2] | string | null): void;
2718
+ markers: Record<string, [Num$2, Num$2]>;
2646
2719
  };
2647
2720
 
2648
2721
  /**
@@ -2749,6 +2822,407 @@ interface UsaTokenEditorElement extends UsaElement {
2749
2822
  }
2750
2823
  declare function defineTokenEditor(tag?: string): CustomElementConstructor | undefined;
2751
2824
 
2825
+ /**
2826
+ * `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
2827
+ * for Motionary (own implementation and API; no Matter.js / Box2D code):
2828
+ *
2829
+ * - bodies: circles, boxes and convex polygons (static, dynamic or
2830
+ * kinematic), density → mass + moment of inertia, restitution, friction,
2831
+ * sensors, collision groups / masks, sleeping;
2832
+ * - collisions: sort-and-sweep broad phase, separating-axis narrow phase
2833
+ * with clipped contact manifolds (up to 2 points), sequential, accumulated and
2834
+ * clamped impulses (normal + Coulomb friction) with a Baumgarte position bias;
2835
+ * - constraints: `distance` (rigid or a spring with `stiffness` /
2836
+ * `damping`), `pin` (a body point to a world point — also the pointer
2837
+ * drag constraint) and `weld`-like stiff distance pairs;
2838
+ * - a fixed time step (default 1/60 s) with an accumulator, so results are
2839
+ * the same at any frame rate; `world.run()` drives it from the shared
2840
+ * runtime ticker (pauses while the ticker sleeps).
2841
+ *
2842
+ * Pure maths — no DOM: safe in SSR and workers. Units are up to you (the
2843
+ * defaults assume pixels: gravity 980 px/s²).
2844
+ */
2845
+
2846
+ type Num$1 = number;
2847
+ interface Vec2 {
2848
+ x: Num$1;
2849
+ y: Num$1;
2850
+ }
2851
+ type ShapeKind = 'circle' | 'box' | 'polygon';
2852
+ interface BodyOptions {
2853
+ shape?: ShapeKind;
2854
+ x?: Num$1;
2855
+ y?: Num$1;
2856
+ angle?: Num$1;
2857
+ /** circle */
2858
+ radius?: Num$1;
2859
+ /** box */
2860
+ width?: Num$1;
2861
+ height?: Num$1;
2862
+ /** polygon: local vertices (any winding; made convex-ccw) */
2863
+ vertices?: [Num$1, Num$1][];
2864
+ /** 'dynamic' (default), 'static' (never moves) or 'kinematic' (moves by its velocity, ignores forces / collisions). */
2865
+ type?: 'dynamic' | 'static' | 'kinematic';
2866
+ /** Mass per unit area (default 0.001 → a 40 px box weighs 1.6). */
2867
+ density?: Num$1;
2868
+ /** Overrides density. */
2869
+ mass?: Num$1;
2870
+ restitution?: Num$1;
2871
+ friction?: Num$1;
2872
+ vx?: Num$1;
2873
+ vy?: Num$1;
2874
+ angularVelocity?: Num$1;
2875
+ /** Linear / angular damping per second (0–1). */
2876
+ damping?: Num$1;
2877
+ angularDamping?: Num$1;
2878
+ /** Collides with nothing, reports overlaps only. */
2879
+ sensor?: boolean;
2880
+ /** Collision filtering: bodies collide when (a.category & b.mask) && (b.category & a.mask). */
2881
+ category?: Num$1;
2882
+ mask?: Num$1;
2883
+ /** No rotation (infinite inertia). */
2884
+ fixedRotation?: boolean;
2885
+ label?: string;
2886
+ /** Anything (e.g. a fill colour for your renderer). */
2887
+ data?: unknown;
2888
+ }
2889
+ declare class Body {
2890
+ readonly id: number;
2891
+ label: string;
2892
+ shape: ShapeKind;
2893
+ type: 'dynamic' | 'static' | 'kinematic';
2894
+ position: Vec2;
2895
+ velocity: Vec2;
2896
+ angle: Num$1;
2897
+ angularVelocity: Num$1;
2898
+ force: Vec2;
2899
+ torque: number;
2900
+ radius: number;
2901
+ /** Local convex vertices (counter-clockwise) for boxes / polygons. */
2902
+ verts: Vec2[];
2903
+ normals: Vec2[];
2904
+ mass: number;
2905
+ invMass: number;
2906
+ inertia: number;
2907
+ invInertia: number;
2908
+ restitution: Num$1;
2909
+ friction: Num$1;
2910
+ damping: Num$1;
2911
+ angularDamping: Num$1;
2912
+ sensor: boolean;
2913
+ category: Num$1;
2914
+ mask: Num$1;
2915
+ sleeping: boolean;
2916
+ sleepTime: number;
2917
+ data: unknown;
2918
+ /** Bounding box, refreshed every step. */
2919
+ aabb: {
2920
+ minX: number;
2921
+ minY: number;
2922
+ maxX: number;
2923
+ maxY: number;
2924
+ };
2925
+ private wv;
2926
+ private wvAngle;
2927
+ private wvPos;
2928
+ constructor(o?: BodyOptions);
2929
+ get isStatic(): boolean;
2930
+ /** Vertices in world space (cached per pose). */
2931
+ worldVerts(): Vec2[];
2932
+ worldNormal(i: Num$1): Vec2;
2933
+ updateAabb(): void;
2934
+ applyImpulse(j: Vec2, at?: Vec2): void;
2935
+ applyForce(f: Vec2, at?: Vec2): void;
2936
+ wake(): void;
2937
+ /** Is the world point inside this body? */
2938
+ contains(x: Num$1, y: Num$1): boolean;
2939
+ }
2940
+ interface Contact {
2941
+ point: Vec2;
2942
+ depth: Num$1;
2943
+ }
2944
+ interface Manifold {
2945
+ a: Body;
2946
+ b: Body;
2947
+ normal: Vec2;
2948
+ contacts: Contact[];
2949
+ }
2950
+ interface ConstraintOptions {
2951
+ type: 'distance' | 'pin';
2952
+ a: Body;
2953
+ /** distance: the other body; pin: omitted. */
2954
+ b?: Body;
2955
+ /** Anchor on a / b in body-local coordinates (default the centre). */
2956
+ anchorA?: [Num$1, Num$1];
2957
+ anchorB?: [Num$1, Num$1];
2958
+ /** pin: the world point. */
2959
+ point?: [Num$1, Num$1];
2960
+ /** Rest length (default: the current distance). */
2961
+ length?: Num$1;
2962
+ /** 1 = rigid; < 1 = spring (fraction of the error corrected per step). */
2963
+ stiffness?: Num$1;
2964
+ /** Spring damping (0–1). */
2965
+ damping?: Num$1;
2966
+ label?: string;
2967
+ }
2968
+ declare class Constraint {
2969
+ type: 'distance' | 'pin';
2970
+ a: Body;
2971
+ b: Body | null;
2972
+ anchorA: Vec2;
2973
+ anchorB: Vec2;
2974
+ point: Vec2;
2975
+ length: Num$1;
2976
+ stiffness: Num$1;
2977
+ damping: Num$1;
2978
+ label: string;
2979
+ constructor(o: ConstraintOptions);
2980
+ worldA(): Vec2;
2981
+ worldB(): Vec2;
2982
+ /** One velocity iteration (impulse along the constraint axis, with a position bias). */
2983
+ solve(h: Num$1): void;
2984
+ }
2985
+ interface WorldOptions {
2986
+ gravity?: [Num$1, Num$1];
2987
+ /** Velocity iterations per step (default 10). */
2988
+ iterations?: Num$1;
2989
+ /** Fixed step in seconds (default 1/60). */
2990
+ step?: Num$1;
2991
+ /** Let resting bodies sleep (default true). */
2992
+ sleeping?: boolean;
2993
+ }
2994
+ type CollisionListener = (m: Manifold) => void;
2995
+ declare class World {
2996
+ gravity: Vec2;
2997
+ iterations: Num$1;
2998
+ fixedStep: Num$1;
2999
+ sleeping: boolean;
3000
+ bodies: Body[];
3001
+ constraints: Constraint[];
3002
+ /** Manifolds of the last step (incl. sensor overlaps, which have no response). */
3003
+ contacts: Manifold[];
3004
+ time: number;
3005
+ steps: number;
3006
+ private acc;
3007
+ private warm;
3008
+ private listeners;
3009
+ private stop;
3010
+ constructor(o?: WorldOptions);
3011
+ add<T extends Body | Constraint>(...items: T[]): T;
3012
+ body(o: BodyOptions): Body;
3013
+ constraint(o: ConstraintOptions): Constraint;
3014
+ remove(...items: (Body | Constraint)[]): void;
3015
+ clear(): void;
3016
+ /** Static walls around a w × h box (thickness t outside it). */
3017
+ bounds(w: Num$1, h: Num$1, t?: number, o?: {
3018
+ top?: boolean;
3019
+ }): Body[];
3020
+ onCollision(fn: CollisionListener): () => void;
3021
+ /** Bodies under a world point (topmost = last added first). */
3022
+ query(x: Num$1, y: Num$1): Body[];
3023
+ /** Advance by `seconds` of real time in fixed steps (max 8 steps per call). */
3024
+ update(seconds: Num$1): Num$1;
3025
+ /** One fixed step of h seconds. */
3026
+ step(h?: Num$1): void;
3027
+ /** Drive the world from the shared runtime ticker (needs the core). Returns a stopper. */
3028
+ run(): () => void;
3029
+ get running(): boolean;
3030
+ /** Total kinetic energy (handy for tests / "settled" checks). */
3031
+ energy(): Num$1;
3032
+ }
3033
+
3034
+ /**
3035
+ * `motionary/runtime/format-scene` (10.7) — the versioned scene format
3036
+ * `motionary-scene@1`: a JSON description of a 2D physics scene (world,
3037
+ * named materials, bodies, constraints, per-body style) that
3038
+ * `<usa-physics-playground>` and your own code can load, validate,
3039
+ * migrate and save.
3040
+ *
3041
+ * ```json
3042
+ * { "format": "motionary-scene@1",
3043
+ * "world": { "width": 600, "height": 360, "gravity": [0, 980], "walls": true },
3044
+ * "materials": { "rubber": { "restitution": 0.8, "friction": 0.6, "density": 0.001 } },
3045
+ * "bodies": [
3046
+ * { "id": "ball", "shape": "circle", "radius": 20, "position": [120, 40], "material": "rubber", "style": { "fill": "#f472b6" } },
3047
+ * { "id": "floor-plank", "shape": "box", "size": [300, 16], "position": [300, 300], "angle": 0.1, "static": true }
3048
+ * ],
3049
+ * "constraints": [ { "type": "distance", "a": "ball", "b": "floor-plank", "length": 120, "stiffness": 0.3 } ] }
3050
+ * ```
3051
+ *
3052
+ * - `validateScene(json)` lists problems (never throws);
3053
+ * - `migrateScene(json)` upgrades older shapes (an unversioned scene, the
3054
+ * `motionary-scene@0` draft) to `@1` and reports what it changed;
3055
+ * - `parseScene(json)` = migrate + validate, throws on errors;
3056
+ * - `sceneToWorld(scene)` builds a `motionary/runtime/physics` world
3057
+ * (bodies by id); `worldToScene(world)` saves one back.
3058
+ *
3059
+ * Needs `motionary/runtime/physics` registered for `sceneToWorld` /
3060
+ * `worldToScene`; validation and migration are pure.
3061
+ */
3062
+
3063
+ type Num = number;
3064
+ declare const SCENE_FORMAT = "motionary-scene@1";
3065
+ interface SceneMaterial {
3066
+ restitution?: Num;
3067
+ friction?: Num;
3068
+ density?: Num;
3069
+ }
3070
+ interface SceneBody {
3071
+ id: string;
3072
+ shape: 'circle' | 'box' | 'polygon';
3073
+ position: [Num, Num];
3074
+ angle?: Num;
3075
+ radius?: Num;
3076
+ size?: [Num, Num];
3077
+ vertices?: [Num, Num][];
3078
+ static?: boolean;
3079
+ kinematic?: boolean;
3080
+ material?: string;
3081
+ restitution?: Num;
3082
+ friction?: Num;
3083
+ density?: Num;
3084
+ velocity?: [Num, Num];
3085
+ angularVelocity?: Num;
3086
+ sensor?: boolean;
3087
+ style?: {
3088
+ fill?: string;
3089
+ stroke?: string;
3090
+ label?: string;
3091
+ };
3092
+ }
3093
+ interface SceneConstraint {
3094
+ type: 'distance' | 'pin';
3095
+ a: string;
3096
+ b?: string;
3097
+ point?: [Num, Num];
3098
+ anchorA?: [Num, Num];
3099
+ anchorB?: [Num, Num];
3100
+ length?: Num;
3101
+ stiffness?: Num;
3102
+ damping?: Num;
3103
+ }
3104
+ interface Scene {
3105
+ format: typeof SCENE_FORMAT;
3106
+ name?: string;
3107
+ world: {
3108
+ width: Num;
3109
+ height: Num;
3110
+ gravity?: [Num, Num];
3111
+ walls?: boolean | {
3112
+ top?: boolean;
3113
+ };
3114
+ iterations?: Num;
3115
+ };
3116
+ materials?: Record<string, SceneMaterial>;
3117
+ bodies: SceneBody[];
3118
+ constraints?: SceneConstraint[];
3119
+ }
3120
+
3121
+ /**
3122
+ * `<usa-physics-playground preset="pyramid"></usa-physics-playground>` (10.7)
3123
+ * — a 2D rigid-body sandbox drawn on Canvas 2D, simulated by Motionary's own
3124
+ * **`motionary/runtime/physics`** and loaded from a **`motionary-scene@1`**
3125
+ * scene (`motionary/runtime/format-scene`). Requires `use(physics,
3126
+ * formatScene)` before it mounts.
3127
+ *
3128
+ * Attributes: `preset` (balls · pyramid · pendulum · dominoes), `src` (a
3129
+ * scene JSON URL) or an inline `<script type="application/json">` scene,
3130
+ * `gravity` (px/s², default 980), `spawn` (click / tap empty space drops a
3131
+ * body), `paused`, `label`. Drag any dynamic body (pointer or touch);
3132
+ * arrow keys nudge the last body touched. Reduced motion: the scene is
3133
+ * settled off-screen and drawn once (dragging still works, one frame per
3134
+ * move). Only steps while visible.
3135
+ *
3136
+ * API: `world`, `bodies` (by scene id), `scene` (the loaded scene),
3137
+ * `reset()`, `play()`, `pause()`, `toScene()`; events `usa:load` ({ bodies,
3138
+ * format }), `usa:collision` (first contact between two dynamic bodies per
3139
+ * step), `usa:error`, `usa:runtime-missing`.
3140
+ */
3141
+ interface UsaPhysicsPlaygroundElement extends UsaElement {
3142
+ readonly world: World | null;
3143
+ readonly bodies: Record<string, Body>;
3144
+ readonly scene: Scene | null;
3145
+ reset(): void;
3146
+ play(): void;
3147
+ pause(): void;
3148
+ toScene(): Scene | null;
3149
+ }
3150
+ /** The built-in scenes (motionary-scene@1). */
3151
+ declare const PHYSICS_PRESETS: Record<string, () => unknown>;
3152
+ declare function definePhysicsPlayground(tag?: string): CustomElementConstructor | undefined;
3153
+
3154
+ /**
3155
+ * `motionary/components/ai` (10.7, AI-assisted motion) — turns a short
3156
+ * natural-language description ("fade the cards up slowly when they scroll
3157
+ * into view, one after another") into a motion spec: effect, direction,
3158
+ * distance, duration, delay, easing, trigger, repeat, stagger, Web
3159
+ * Animations keyframes + options, a CSS rule and the Motionary components
3160
+ * that do it. English and Chinese phrases. A small deterministic parser —
3161
+ * no model, no network — shared by `<usa-motion-prompt>` and the
3162
+ * `suggest_motion` tool of `motionary-mcp` (which runs an evaluation set of
3163
+ * prompts against it in CI).
3164
+ *
3165
+ * Pure: no DOM access — safe in Node, workers and SSR.
3166
+ */
3167
+ type MotionEffect = 'fade' | 'slide' | 'zoom' | 'rotate' | 'flip' | 'bounce' | 'shake' | 'pulse' | 'blur' | 'reveal' | 'typewriter' | 'count' | 'tilt' | 'magnetic' | 'ripple' | 'parallax' | 'marquee' | 'particles';
3168
+ type MotionTrigger = 'load' | 'scroll' | 'hover' | 'click' | 'loop';
3169
+ type Direction = 'up' | 'down' | 'left' | 'right' | null;
3170
+ interface MotionIntent {
3171
+ /** The input, trimmed. */
3172
+ text: string;
3173
+ effect: MotionEffect;
3174
+ /** Secondary effects mentioned with the main one ("fade and zoom"). */
3175
+ also: MotionEffect[];
3176
+ direction: Direction;
3177
+ /** px for slides, scale factor for zooms, degrees for rotations / flips. */
3178
+ amount: number;
3179
+ duration: number;
3180
+ delay: number;
3181
+ easing: string;
3182
+ /** Named easing the text asked for ('spring', 'bouncy', 'smooth', 'linear', 'snappy', 'ease-out' …). */
3183
+ easingName: string;
3184
+ trigger: MotionTrigger;
3185
+ /** 1 = once, Infinity = forever. */
3186
+ iterations: number;
3187
+ alternate: boolean;
3188
+ /** ms between items for lists / groups (0 = none). */
3189
+ stagger: number;
3190
+ reducedMotion: 'respect';
3191
+ keyframes: Keyframe[];
3192
+ options: KeyframeAnimationOptions;
3193
+ css: string;
3194
+ /** Motionary components that implement it, best first. */
3195
+ components: {
3196
+ tag: string;
3197
+ why: string;
3198
+ snippet: string;
3199
+ }[];
3200
+ /** 0–1: how much of the text was understood. */
3201
+ confidence: number;
3202
+ /** Words / phrases that drove each decision (for explanations). */
3203
+ matched: string[];
3204
+ }
3205
+
3206
+ /**
3207
+ * `<usa-motion-prompt></usa-motion-prompt>` (10.7, AI-assisted motion) — type
3208
+ * what you want ("fade the cards up slowly, one after another" / "卡片从下往上
3209
+ * 依次淡入") and get a live preview plus ready code: Web Animations, CSS or a
3210
+ * Motionary component. Runs `describeMotion()` from
3211
+ * `motionary/components/ai` — a small deterministic parser (English and
3212
+ * Chinese), **no model and no network**; the same parser backs the
3213
+ * `suggest_motion` tool of `motionary-mcp`.
3214
+ *
3215
+ * Attributes: `value` (initial prompt), `format` (waapi · css · component,
3216
+ * default waapi), `placeholder`, `label`. The preview respects reduced
3217
+ * motion (shows the end state). API: `intent`, `suggest(text)`; events
3218
+ * `usa:suggest` ({ intent }), `usa:copy` ({ format, code }).
3219
+ */
3220
+ interface UsaMotionPromptElement extends UsaElement {
3221
+ readonly intent: MotionIntent | null;
3222
+ suggest(text: string): MotionIntent;
3223
+ }
3224
+ declare function defineMotionPrompt(tag?: string): CustomElementConstructor | undefined;
3225
+
2752
3226
  /**
2753
3227
  * motionary/components/widgets — the 6.x animated UI widgets, in their own
2754
3228
  * entry so `motionary/components` and `components/lite` keep their size
@@ -2884,8 +3358,10 @@ declare global {
2884
3358
  'usa-lottie-player': UsaLottiePlayerElement;
2885
3359
  'usa-rive': UsaRiveElement;
2886
3360
  'usa-token-editor': UsaTokenEditorElement;
3361
+ 'usa-physics-playground': UsaPhysicsPlaygroundElement;
3362
+ 'usa-motion-prompt': UsaMotionPromptElement;
2887
3363
  }
2888
3364
  }
2889
3365
 
2890
- export { BACKDROP_PRESETS, CAROUSEL_EFFECTS, EQ_PRESETS, FESTIVAL_THEMES, LOTTIE_ICONS, MENU_EFFECTS, MODAL_EFFECTS, NAV_INDICATORS, PARTICLE_DRAW_WGSL, PARTICLE_SIM_WGSL, POST_PASSES, PRESENCE_STATES, PROGRESS_VARIANTS, RETRO_VARIANTS, RIVE_CDN, RIVE_PEER, SEGMENTED_VARIANTS, SHEET_SIDES, SKELETON_VARIANTS, SPARK_VARIANTS, SWITCH_VARIANTS, TAB_INDICATORS, TIP_PLACEMENTS, TOAST_POSITIONS, TOGGLE_VARIANTS, WEATHER_CONDITIONS, WIDGETS, WIDGET_TAGS, WORKER_SCENES, backgroundCss, badgeProgress, cartTotal, defineAddToCart, defineBadgeWall, defineBarChart, defineBgGenerator, defineCarousel, defineCartDrawer, defineChapterNav, defineChatComposer, defineClockControl, defineCodeExport, defineColorPicker, defineCommandPalette, defineCompare, defineCountdown, defineCubeGallery, defineDatePicker, defineDisclosure, defineDock, defineEqualizer, defineFestivalBanner, defineField, defineFileDrop, defineGauge, defineGenArt, defineGestureSticker, defineGlScene, defineGlobe, defineGpuParticles, defineGyroCard, defineHeroVideo, defineHudPanel, defineHydrate, defineInstallButton, defineKanban, defineKeyframeEditor, defineKpi, defineLeaderboard, defineLiquidNav, defineLocationCard, defineLottie, defineLottieIcon, defineLottiePlayer, defineLyrics, defineMasonryFlow, defineMenu, defineMenuToggle, defineMessageList, defineMilestones, defineModal, defineMotion, defineMotionInspector, defineMotionPrefs, defineMotionSpec, defineMusicPlayer, defineNativePreview, defineNavMorph, defineNotificationBell, defineOdometer, defineOrganicCard, defineOtp, definePagination, definePanorama, defineParallaxLayers, definePauseAll, definePerfMonitor, definePluginCard, definePluginStore, definePresence, definePrizeWheel, defineProductGallery, defineProgressRing, definePropPanel, definePullCord, defineRadar, defineReactions, defineRedEnvelope, defineRetroButton, defineRive, defineRouteTransition, defineScene, defineScrollRing, defineScrollScene, defineSegmented, defineShaderBackdrop, defineSheet, defineShortcut, defineSkeletonReveal, defineSketchChart, defineSmoothScroll, defineSparkline, defineSpatialCard, defineStarRating, defineStepper, defineStickyWall, defineStories, defineSuggestionChips, defineSwipeDeck, defineSwitch, defineTabBar, defineTerminal, defineTextSplitter, defineThemeSurface, defineThemeSwitcher, defineThreeScene, defineTip, defineToastStack, defineTokenEditor, defineUploadProgress, defineVideoCard, defineVoiceButton, defineVolumeKnob, defineWeatherCard, defineWidgets, defineWorkerCanvas, defineXpBar, describeComponent, exportComponent, formatBytes, formatDistance, fuzzyMatch, haversine, hexToHsv, hsvToHex, initials, keyLabels, levelFor, loadRiveRuntime, matchesKeys, monthGrid, pageWindow, parseChips, parseISODate, parseLRC, parseMarkers, parseProps, parseReactions, parseScrub, parseTargets, passwordStrength, project, provideRiveRuntime, rankRows, sanitizeCode, sparkPoints, splitTime, stackToast, waveBars, wheelAngle, wrapIndex };
2891
- export type { BellNotice, CartItem, ChatMessage, ExportFormat, ExportedNode, GlobeMarker, LeaderRow, PaletteCommand, PerfStats, PresenceState, PropSpec, RadarTarget, StackToastOptions, StickerState, UsaAddToCartElement, UsaBadgeWallElement, UsaBarChartElement, UsaBgGeneratorElement, UsaCarouselElement, UsaCartDrawerElement, UsaChapterNavElement, UsaChatComposerElement, UsaClockControlElement, UsaCodeExportElement, UsaColorPickerElement, UsaCommandPaletteElement, UsaCompareElement, UsaCountdownElement, UsaCubeGalleryElement, UsaDatePickerElement, UsaDisclosureElement, UsaDockElement, UsaEqualizerElement, UsaFestivalBannerElement, UsaFieldElement, UsaFileDropElement, UsaGaugeElement, UsaGenArtElement, UsaGestureStickerElement, UsaGlSceneElement, UsaGlobeElement, UsaGpuParticlesElement, UsaGyroCardElement, UsaHeroVideoElement, UsaHudPanelElement, UsaHydrateElement, UsaInstallButtonElement, UsaKanbanElement, UsaKeyframeEditorElement, UsaKpiElement, UsaLeaderboardElement, UsaLiquidNavElement, UsaLocationCardElement, UsaLottieElement, UsaLottieIconElement, UsaLottiePlayerElement, UsaLyricsElement, UsaMasonryFlowElement, UsaMenuElement, UsaMenuToggleElement, UsaMessageListElement, UsaMilestonesElement, UsaModalElement, UsaMotionElement, UsaMotionInspectorElement, UsaMotionPrefsElement, UsaMotionSpecElement, UsaMusicPlayerElement, UsaNativePreviewElement, UsaNavMorphElement, UsaNotificationBellElement, UsaOdometerElement, UsaOrganicCardElement, UsaOtpElement, UsaPaginationElement, UsaPanoramaElement, UsaParallaxLayersElement, UsaPauseAllElement, UsaPerfMonitorElement, UsaPluginCardElement, UsaPluginStoreElement, UsaPresenceElement, UsaPrizeWheelElement, UsaProductGalleryElement, UsaProgressRingElement, UsaPropPanelElement, UsaPullCordElement, UsaRadarElement, UsaReactionsElement, UsaRedEnvelopeElement, UsaRetroButtonElement, UsaRiveElement, UsaRouteTransitionElement, UsaSceneElement, UsaScrollRingElement, UsaScrollSceneElement, UsaSegmentedElement, UsaShaderBackdropElement, UsaSheetElement, UsaShortcutElement, UsaSkeletonRevealElement, UsaSketchChartElement, UsaSmoothScrollElement, UsaSparklineElement, UsaSpatialCardElement, UsaStarRatingElement, UsaStepperElement, UsaStickyWallElement, UsaStoriesElement, UsaSuggestionChipsElement, UsaSwipeDeckElement, UsaSwitchElement, UsaTabBarElement, UsaTerminalElement, UsaTextSplitterElement, UsaThemeSurfaceElement, UsaThemeSwitcherElement, UsaTipElement, UsaToastStackElement, UsaTokenEditorElement, UsaUploadProgressElement, UsaVideoCardElement, UsaVoiceButtonElement, UsaVolumeKnobElement, UsaWeatherCardElement, UsaWorkerCanvasElement, UsaXpBarElement, WallBadge };
3366
+ export { BACKDROP_PRESETS, CAROUSEL_EFFECTS, EQ_PRESETS, FESTIVAL_THEMES, LOTTIE_ICONS, MENU_EFFECTS, MODAL_EFFECTS, NAV_INDICATORS, PARTICLE_DRAW_WGSL, PARTICLE_SIM_WGSL, PHYSICS_PRESETS, POST_PASSES, PRESENCE_STATES, PROGRESS_VARIANTS, RETRO_VARIANTS, RIVE_CDN, RIVE_PEER, SEGMENTED_VARIANTS, SHEET_SIDES, SKELETON_VARIANTS, SPARK_VARIANTS, SWITCH_VARIANTS, TAB_INDICATORS, TIP_PLACEMENTS, TOAST_POSITIONS, TOGGLE_VARIANTS, WEATHER_CONDITIONS, WIDGETS, WIDGET_TAGS, WORKER_SCENES, backgroundCss, badgeProgress, cartTotal, defineAddToCart, defineBadgeWall, defineBarChart, defineBgGenerator, defineCarousel, defineCartDrawer, defineChapterNav, defineChatComposer, defineClockControl, defineCodeExport, defineColorPicker, defineCommandPalette, defineCompare, defineCountdown, defineCubeGallery, defineDatePicker, defineDisclosure, defineDock, defineEqualizer, defineFestivalBanner, defineField, defineFileDrop, defineGauge, defineGenArt, defineGestureSticker, defineGlScene, defineGlobe, defineGpuParticles, defineGyroCard, defineHeroVideo, defineHudPanel, defineHydrate, defineInstallButton, defineKanban, defineKeyframeEditor, defineKpi, defineLeaderboard, defineLiquidNav, defineLocationCard, defineLottie, defineLottieIcon, defineLottiePlayer, defineLyrics, defineMasonryFlow, defineMenu, defineMenuToggle, defineMessageList, defineMilestones, defineModal, defineMotion, defineMotionInspector, defineMotionPrefs, defineMotionPrompt, defineMotionSpec, defineMusicPlayer, defineNativePreview, defineNavMorph, defineNotificationBell, defineOdometer, defineOrganicCard, defineOtp, definePagination, definePanorama, defineParallaxLayers, definePauseAll, definePerfMonitor, definePhysicsPlayground, definePluginCard, definePluginStore, definePresence, definePrizeWheel, defineProductGallery, defineProgressRing, definePropPanel, definePullCord, defineRadar, defineReactions, defineRedEnvelope, defineRetroButton, defineRive, defineRouteTransition, defineScene, defineScrollRing, defineScrollScene, defineSegmented, defineShaderBackdrop, defineSheet, defineShortcut, defineSkeletonReveal, defineSketchChart, defineSmoothScroll, defineSparkline, defineSpatialCard, defineStarRating, defineStepper, defineStickyWall, defineStories, defineSuggestionChips, defineSwipeDeck, defineSwitch, defineTabBar, defineTerminal, defineTextSplitter, defineThemeSurface, defineThemeSwitcher, defineThreeScene, defineTip, defineToastStack, defineTokenEditor, defineUploadProgress, defineVideoCard, defineVoiceButton, defineVolumeKnob, defineWeatherCard, defineWidgets, defineWorkerCanvas, defineXpBar, describeComponent, exportComponent, formatBytes, formatDistance, fuzzyMatch, haversine, hexToHsv, hsvToHex, initials, keyLabels, levelFor, loadRiveRuntime, matchesKeys, monthGrid, pageWindow, parseChips, parseISODate, parseLRC, parseMarkers, parseProps, parseReactions, parseScrub, parseTargets, passwordStrength, project, provideRiveRuntime, rankRows, sanitizeCode, sparkPoints, splitTime, stackToast, waveBars, wheelAngle, wrapIndex };
3367
+ export type { BellNotice, CartItem, ChatMessage, ExportFormat, ExportedNode, GlobeMarker, LeaderRow, PaletteCommand, PerfStats, PresenceState, PropSpec, RadarTarget, StackToastOptions, StickerState, UsaAddToCartElement, UsaBadgeWallElement, UsaBarChartElement, UsaBgGeneratorElement, UsaCarouselElement, UsaCartDrawerElement, UsaChapterNavElement, UsaChatComposerElement, UsaClockControlElement, UsaCodeExportElement, UsaColorPickerElement, UsaCommandPaletteElement, UsaCompareElement, UsaCountdownElement, UsaCubeGalleryElement, UsaDatePickerElement, UsaDisclosureElement, UsaDockElement, UsaEqualizerElement, UsaFestivalBannerElement, UsaFieldElement, UsaFileDropElement, UsaGaugeElement, UsaGenArtElement, UsaGestureStickerElement, UsaGlSceneElement, UsaGlobeElement, UsaGpuParticlesElement, UsaGyroCardElement, UsaHeroVideoElement, UsaHudPanelElement, UsaHydrateElement, UsaInstallButtonElement, UsaKanbanElement, UsaKeyframeEditorElement, UsaKpiElement, UsaLeaderboardElement, UsaLiquidNavElement, UsaLocationCardElement, UsaLottieElement, UsaLottieIconElement, UsaLottiePlayerElement, UsaLyricsElement, UsaMasonryFlowElement, UsaMenuElement, UsaMenuToggleElement, UsaMessageListElement, UsaMilestonesElement, UsaModalElement, UsaMotionElement, UsaMotionInspectorElement, UsaMotionPrefsElement, UsaMotionPromptElement, UsaMotionSpecElement, UsaMusicPlayerElement, UsaNativePreviewElement, UsaNavMorphElement, UsaNotificationBellElement, UsaOdometerElement, UsaOrganicCardElement, UsaOtpElement, UsaPaginationElement, UsaPanoramaElement, UsaParallaxLayersElement, UsaPauseAllElement, UsaPerfMonitorElement, UsaPhysicsPlaygroundElement, UsaPluginCardElement, UsaPluginStoreElement, UsaPresenceElement, UsaPrizeWheelElement, UsaProductGalleryElement, UsaProgressRingElement, UsaPropPanelElement, UsaPullCordElement, UsaRadarElement, UsaReactionsElement, UsaRedEnvelopeElement, UsaRetroButtonElement, UsaRiveElement, UsaRouteTransitionElement, UsaSceneElement, UsaScrollRingElement, UsaScrollSceneElement, UsaSegmentedElement, UsaShaderBackdropElement, UsaSheetElement, UsaShortcutElement, UsaSkeletonRevealElement, UsaSketchChartElement, UsaSmoothScrollElement, UsaSparklineElement, UsaSpatialCardElement, UsaStarRatingElement, UsaStepperElement, UsaStickyWallElement, UsaStoriesElement, UsaSuggestionChipsElement, UsaSwipeDeckElement, UsaSwitchElement, UsaTabBarElement, UsaTerminalElement, UsaTextSplitterElement, UsaThemeSurfaceElement, UsaThemeSwitcherElement, UsaTipElement, UsaToastStackElement, UsaTokenEditorElement, UsaUploadProgressElement, UsaVideoCardElement, UsaVoiceButtonElement, UsaVolumeKnobElement, UsaWeatherCardElement, UsaWorkerCanvasElement, UsaXpBarElement, WallBadge };