motionary 10.5.0 → 10.7.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.
- package/AGENTS.md +2 -0
- package/CHANGELOG.md +28 -0
- package/README.md +95 -1
- package/bin/motionary-mcp.mjs +160 -11
- package/dist/chunks/{anim-image-DuxvYhq6.cjs → anim-image-CFGpUX7t.cjs} +2 -2
- package/dist/chunks/{anim-image-DuxvYhq6.cjs.map → anim-image-CFGpUX7t.cjs.map} +1 -1
- package/dist/chunks/{anim-image-BlNPv4JG.js → anim-image-CXDD19FH.js} +2 -2
- package/dist/chunks/{anim-image-BlNPv4JG.js.map → anim-image-CXDD19FH.js.map} +1 -1
- package/dist/chunks/{keyframes-Ce1s05n3.cjs → keyframes-DdwGY1gr.cjs} +2 -2
- package/dist/chunks/{keyframes-Ce1s05n3.cjs.map → keyframes-DdwGY1gr.cjs.map} +1 -1
- package/dist/chunks/{keyframes-B8ITIAVa.js → keyframes-DwR6GPej.js} +2 -2
- package/dist/chunks/{keyframes-B8ITIAVa.js.map → keyframes-DwR6GPej.js.map} +1 -1
- package/dist/chunks/{registry-DXdFb2fJ.js → registry-D87dP_aR.js} +3 -3
- package/dist/chunks/{registry-DXdFb2fJ.js.map → registry-D87dP_aR.js.map} +1 -1
- package/dist/chunks/{registry-VhfPSI0v.cjs → registry-DhKZCitb.cjs} +2 -2
- package/dist/chunks/{registry-VhfPSI0v.cjs.map → registry-DhKZCitb.cjs.map} +1 -1
- package/dist/chunks/{ticker-C5RMHMW7.js → ticker-CJYI5Pxc.js} +2 -2
- package/dist/chunks/{ticker-C5RMHMW7.js.map → ticker-CJYI5Pxc.js.map} +1 -1
- package/dist/chunks/{ticker-DvmC6WLS.cjs → ticker-jD9_A9Rh.cjs} +2 -2
- package/dist/chunks/{ticker-DvmC6WLS.cjs.map → ticker-jD9_A9Rh.cjs.map} +1 -1
- package/dist/chunks/{tween-_BGIl6hK.cjs → tween-Dk0QmNe9.cjs} +2 -2
- package/dist/chunks/{tween-_BGIl6hK.cjs.map → tween-Dk0QmNe9.cjs.map} +1 -1
- package/dist/chunks/{tween-CPtm-EdT.js → tween-_Lld1MsF.js} +2 -2
- package/dist/chunks/{tween-CPtm-EdT.js.map → tween-_Lld1MsF.js.map} +1 -1
- package/dist/components/ai.cjs +314 -0
- package/dist/components/ai.cjs.map +1 -0
- package/dist/components/ai.d.cts +58 -0
- package/dist/components/ai.d.ts +58 -0
- package/dist/components/ai.js +311 -0
- package/dist/components/ai.js.map +1 -0
- package/dist/components/lite.cjs +179 -0
- package/dist/components/lite.cjs.map +1 -1
- package/dist/components/lite.js +176 -1
- package/dist/components/lite.js.map +1 -1
- package/dist/components/tokens.cjs +179 -0
- package/dist/components/tokens.cjs.map +1 -1
- package/dist/components/tokens.d.cts +36 -1
- package/dist/components/tokens.d.ts +36 -1
- package/dist/components/tokens.js +176 -1
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/widgets.cjs +985 -221
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +606 -4
- package/dist/components/widgets.d.ts +606 -4
- package/dist/components/widgets.js +976 -222
- package/dist/components/widgets.js.map +1 -1
- package/dist/components.cjs +4 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +36 -1
- package/dist/components.d.ts +36 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +2 -2
- package/dist/components.umd.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/llms-full.txt +221 -1
- package/dist/llms.txt +11 -2
- package/dist/manifest.json +580 -1
- package/dist/runtime/format-apng.cjs +4 -4
- package/dist/runtime/format-apng.js +4 -4
- package/dist/runtime/format-css.cjs +4 -4
- package/dist/runtime/format-css.js +4 -4
- package/dist/runtime/format-gif.cjs +4 -4
- package/dist/runtime/format-gif.js +4 -4
- package/dist/runtime/format-gltf.cjs +1 -1
- package/dist/runtime/format-gltf.js +1 -1
- package/dist/runtime/format-motion.cjs +4 -4
- package/dist/runtime/format-motion.js +4 -4
- package/dist/runtime/format-obj.cjs +1 -1
- package/dist/runtime/format-obj.js +1 -1
- package/dist/runtime/format-scene.cjs +241 -0
- package/dist/runtime/format-scene.cjs.map +1 -0
- package/dist/runtime/format-scene.d.cts +349 -0
- package/dist/runtime/format-scene.d.ts +349 -0
- package/dist/runtime/format-scene.iife.js +2 -0
- package/dist/runtime/format-scene.iife.js.map +1 -0
- package/dist/runtime/format-scene.js +233 -0
- package/dist/runtime/format-scene.js.map +1 -0
- package/dist/runtime/format-sprite.cjs +3 -3
- package/dist/runtime/format-sprite.js +3 -3
- package/dist/runtime/format-svg.cjs +3 -3
- package/dist/runtime/format-svg.js +3 -3
- package/dist/runtime/format-webp.cjs +4 -4
- package/dist/runtime/format-webp.js +4 -4
- package/dist/runtime/gl.cjs +1 -1
- package/dist/runtime/gl.js +1 -1
- package/dist/runtime/physics.cjs +739 -0
- package/dist/runtime/physics.cjs.map +1 -0
- package/dist/runtime/physics.d.cts +250 -0
- package/dist/runtime/physics.d.ts +250 -0
- package/dist/runtime/physics.iife.js +2 -0
- package/dist/runtime/physics.iife.js.map +1 -0
- package/dist/runtime/physics.js +731 -0
- package/dist/runtime/physics.js.map +1 -0
- package/dist/runtime/scroll.cjs +2 -2
- package/dist/runtime/scroll.js +2 -2
- package/dist/runtime/smooth.cjs +1 -1
- package/dist/runtime/smooth.js +1 -1
- package/dist/runtime/text.cjs +1 -1
- package/dist/runtime/text.js +1 -1
- package/dist/runtime/vector.cjs +704 -0
- package/dist/runtime/vector.cjs.map +1 -0
- package/dist/runtime/vector.d.cts +306 -0
- package/dist/runtime/vector.d.ts +306 -0
- package/dist/runtime/vector.iife.js +2 -0
- package/dist/runtime/vector.iife.js.map +1 -0
- package/dist/runtime/vector.js +692 -0
- package/dist/runtime/vector.js.map +1 -0
- package/dist/runtime.cjs +3 -3
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +1 -1
- package/dist/runtime.iife.js.map +1 -1
- package/dist/runtime.js +5 -5
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +2 -2
- package/docs/components/README.md +6 -1
- package/docs/components/usa-lottie-player.md +60 -0
- package/docs/components/usa-motion-prompt.md +32 -0
- package/docs/components/usa-physics-playground.md +63 -0
- package/docs/components/usa-rive.md +57 -0
- package/docs/components/usa-token-editor.md +32 -0
- package/docs/components.md +116 -0
- package/docs/runtime/format-scene.md +59 -0
- package/docs/runtime/physics.md +61 -0
- package/docs/runtime/rive.md +55 -0
- package/docs/runtime/vector.md +67 -0
- package/package.json +46 -2
|
@@ -2478,7 +2478,7 @@ interface Light {
|
|
|
2478
2478
|
color: Vec3;
|
|
2479
2479
|
intensity: number;
|
|
2480
2480
|
}
|
|
2481
|
-
declare class Scene {
|
|
2481
|
+
declare class Scene$1 {
|
|
2482
2482
|
root: GlNode;
|
|
2483
2483
|
ambient: Vec3;
|
|
2484
2484
|
lights: Light[];
|
|
@@ -2503,7 +2503,7 @@ declare class Scene {
|
|
|
2503
2503
|
* `<usa-three-scene>` is an alias with the same API.
|
|
2504
2504
|
*/
|
|
2505
2505
|
interface UsaGlSceneElement extends UsaElement {
|
|
2506
|
-
readonly scene: Scene | null;
|
|
2506
|
+
readonly scene: Scene$1 | null;
|
|
2507
2507
|
readonly camera: Camera | null;
|
|
2508
2508
|
readonly root: GlNode | null;
|
|
2509
2509
|
reload(): Promise<void>;
|
|
@@ -2553,6 +2553,603 @@ declare const BACKDROP_PRESETS: Record<string, string>;
|
|
|
2553
2553
|
declare const POST_PASSES: Record<string, string>;
|
|
2554
2554
|
declare function defineShaderBackdrop(tag?: string): CustomElementConstructor | undefined;
|
|
2555
2555
|
|
|
2556
|
+
/**
|
|
2557
|
+
* `motionary/runtime/vector` (10.6) — a Lottie (bodymovin JSON) + dotLottie
|
|
2558
|
+
* player written for Motionary (own renderer on Canvas 2D; no lottie-web
|
|
2559
|
+
* code). Supported subset — see the compatibility table in
|
|
2560
|
+
* `docs/runtime/vector.md`:
|
|
2561
|
+
*
|
|
2562
|
+
* - layers: shape, solid, null, image, precomp (with time stretch / time
|
|
2563
|
+
* remap), parenting, in / out points, hidden layers;
|
|
2564
|
+
* - transforms: anchor, position (incl. split X / Y and spatial bezier
|
|
2565
|
+
* paths), scale, rotation, skew, opacity;
|
|
2566
|
+
* - shapes: groups, paths, rectangles (rounded), ellipses, stars / polygons;
|
|
2567
|
+
* fills (non-zero / even-odd), strokes (caps, joins, dashes), linear and
|
|
2568
|
+
* radial gradient fills / strokes, **trim paths** (individually /
|
|
2569
|
+
* simultaneously);
|
|
2570
|
+
* - **masks** (add, subtract, intersect, inverted, opacity) and **track
|
|
2571
|
+
* mattes** (alpha, alpha inverted; luma approximated by alpha);
|
|
2572
|
+
* - keyframes: bezier easing per dimension, hold keyframes, v4 (`e`) and v5+
|
|
2573
|
+
* (`s` only) files;
|
|
2574
|
+
* - **dotLottie** (`.lottie`): zip (stored + deflate via the native
|
|
2575
|
+
* `DecompressionStream`), `manifest.json` v1 / v2, several animations,
|
|
2576
|
+
* embedded images.
|
|
2577
|
+
*
|
|
2578
|
+
* Not supported (documented): 3D layers, effects, text layers (10.8),
|
|
2579
|
+
* expressions (10.8 subset), merge paths, repeaters. `lottiePlayer()` is a
|
|
2580
|
+
* runtime timeline (seek, reverse, scrub with `progress`, markers → labels).
|
|
2581
|
+
*/
|
|
2582
|
+
|
|
2583
|
+
type Num$2 = number;
|
|
2584
|
+
interface LottieProp {
|
|
2585
|
+
a?: Num$2;
|
|
2586
|
+
k: any;
|
|
2587
|
+
x?: string;
|
|
2588
|
+
s?: boolean;
|
|
2589
|
+
}
|
|
2590
|
+
interface LottieLayer {
|
|
2591
|
+
ty: Num$2;
|
|
2592
|
+
ind?: Num$2;
|
|
2593
|
+
parent?: Num$2;
|
|
2594
|
+
ip: Num$2;
|
|
2595
|
+
op: Num$2;
|
|
2596
|
+
st?: Num$2;
|
|
2597
|
+
sr?: Num$2;
|
|
2598
|
+
ks: any;
|
|
2599
|
+
shapes?: any[];
|
|
2600
|
+
hd?: boolean;
|
|
2601
|
+
tt?: Num$2;
|
|
2602
|
+
td?: Num$2;
|
|
2603
|
+
masksProperties?: any[];
|
|
2604
|
+
refId?: string;
|
|
2605
|
+
w?: Num$2;
|
|
2606
|
+
h?: Num$2;
|
|
2607
|
+
sw?: Num$2;
|
|
2608
|
+
sh?: Num$2;
|
|
2609
|
+
sc?: string;
|
|
2610
|
+
tm?: LottieProp;
|
|
2611
|
+
nm?: string;
|
|
2612
|
+
ddd?: Num$2;
|
|
2613
|
+
ef?: unknown[];
|
|
2614
|
+
}
|
|
2615
|
+
interface LottieAnimation {
|
|
2616
|
+
v?: string;
|
|
2617
|
+
fr: Num$2;
|
|
2618
|
+
ip: Num$2;
|
|
2619
|
+
op: Num$2;
|
|
2620
|
+
w: Num$2;
|
|
2621
|
+
h: Num$2;
|
|
2622
|
+
nm?: string;
|
|
2623
|
+
layers: LottieLayer[];
|
|
2624
|
+
assets?: {
|
|
2625
|
+
id: string;
|
|
2626
|
+
layers?: LottieLayer[];
|
|
2627
|
+
p?: string;
|
|
2628
|
+
u?: string;
|
|
2629
|
+
w?: Num$2;
|
|
2630
|
+
h?: Num$2;
|
|
2631
|
+
e?: Num$2;
|
|
2632
|
+
}[];
|
|
2633
|
+
markers?: {
|
|
2634
|
+
cm: string;
|
|
2635
|
+
tm: Num$2;
|
|
2636
|
+
dr: Num$2;
|
|
2637
|
+
}[];
|
|
2638
|
+
}
|
|
2639
|
+
type LottiePlayer = Playable & {
|
|
2640
|
+
readonly frame: Num$2;
|
|
2641
|
+
readonly totalFrames: Num$2;
|
|
2642
|
+
readonly animation: LottieAnimation;
|
|
2643
|
+
goToFrame(f: Num$2): void;
|
|
2644
|
+
setSegment(seg: [Num$2, Num$2] | string | null): void;
|
|
2645
|
+
markers: Record<string, [Num$2, Num$2]>;
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* `<usa-lottie-player src="hero.lottie" autoplay loop></usa-lottie-player>`
|
|
2650
|
+
* (10.6) — plays Lottie JSON and dotLottie (`.lottie`) files with
|
|
2651
|
+
* **`motionary/runtime/vector`** (requires `use(vector)`): Motionary's own
|
|
2652
|
+
* Canvas 2D renderer for the documented subset (shapes, gradients, trim
|
|
2653
|
+
* paths, masks, track mattes, precomps, images). `animation` (id inside a
|
|
2654
|
+
* dotLottie), `autoplay`, `loop` (or a count), `speed`, `mode` (normal ·
|
|
2655
|
+
* bounce), `segment` ("0,30" or a marker name), `hover` (play on hover),
|
|
2656
|
+
* `scrub` (progress follows the element's scroll position), `fit` (contain ·
|
|
2657
|
+
* cover · fill), `background`, `label`. Methods `play()`, `pause()`,
|
|
2658
|
+
* `stop()`, `seek(frame)`, `player`, `animationData`, `unsupported`
|
|
2659
|
+
* (features in the file this renderer skips); `usa:load`, `usa:complete`,
|
|
2660
|
+
* `usa:error`. Reduced motion: first frame, no autoplay. Renders only while
|
|
2661
|
+
* visible.
|
|
2662
|
+
*/
|
|
2663
|
+
interface UsaLottiePlayerElement extends UsaElement {
|
|
2664
|
+
play(): void;
|
|
2665
|
+
pause(): void;
|
|
2666
|
+
stop(): void;
|
|
2667
|
+
seek(frame: number): void;
|
|
2668
|
+
readonly player: LottiePlayer | null;
|
|
2669
|
+
readonly animationData: LottieAnimation | null;
|
|
2670
|
+
readonly unsupported: string[];
|
|
2671
|
+
}
|
|
2672
|
+
declare function defineLottiePlayer(tag?: string): CustomElementConstructor | undefined;
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* `<usa-rive src="vehicles.riv" state-machine="bumpy" autoplay></usa-rive>`
|
|
2676
|
+
* (10.6) — plays Rive (`.riv`) files with the **official Rive runtime**
|
|
2677
|
+
* `@rive-app/canvas` (an optional peer dependency; `.riv` is Rive's
|
|
2678
|
+
* proprietary binary format, so Motionary does not reimplement it). The
|
|
2679
|
+
* runtime is loaded lazily on first use: from `provideRiveRuntime(() =>
|
|
2680
|
+
* import('@rive-app/canvas'))` (bundlers, after `npm i @rive-app/canvas`),
|
|
2681
|
+
* from `window.rive` (the official CDN script), an import map, or from
|
|
2682
|
+
* `runtime-src` (a URL to the official ESM / UMD build). Missing →
|
|
2683
|
+
* a clear message in place + `usa:runtime-missing`. `artboard`,
|
|
2684
|
+
* `animation`, `state-machine`, `autoplay`, `fit` (contain · cover · fill ·
|
|
2685
|
+
* fitWidth · fitHeight · none), `label`. `rive` (the official instance),
|
|
2686
|
+
* `play()`, `pause()`, `input(name)` (state-machine input); `usa:load`,
|
|
2687
|
+
* `usa:error`. Reduced motion: paused on the first frame.
|
|
2688
|
+
*/
|
|
2689
|
+
interface UsaRiveElement extends UsaElement {
|
|
2690
|
+
readonly rive: any;
|
|
2691
|
+
play(): void;
|
|
2692
|
+
pause(): void;
|
|
2693
|
+
input(name: string): any;
|
|
2694
|
+
}
|
|
2695
|
+
declare const RIVE_PEER = "@rive-app/canvas";
|
|
2696
|
+
declare const RIVE_CDN = "https://unpkg.com/@rive-app/canvas@2.44.1/rive.js";
|
|
2697
|
+
/**
|
|
2698
|
+
* Hand `<usa-rive>` the official runtime yourself — the module, or (better) a
|
|
2699
|
+
* lazy loader such as `() => import('@rive-app/canvas')` for bundlers that do
|
|
2700
|
+
* not follow the element's own optional import. Call before the element mounts.
|
|
2701
|
+
*/
|
|
2702
|
+
declare function provideRiveRuntime(runtime: unknown | (() => unknown)): void;
|
|
2703
|
+
/** Load the official runtime: window.rive → import('@rive-app/canvas') → `runtimeSrc` script. */
|
|
2704
|
+
declare function loadRiveRuntime(runtimeSrc?: string): Promise<any>;
|
|
2705
|
+
declare function defineRive(tag?: string): CustomElementConstructor | undefined;
|
|
2706
|
+
|
|
2707
|
+
/**
|
|
2708
|
+
* motionary/components/tokens — motion design tokens (4.2).
|
|
2709
|
+
*
|
|
2710
|
+
* One source of truth for durations, easings and springs: as CSS custom
|
|
2711
|
+
* properties (`--usa-duration-fast`, `--usa-easing-emphasized`,
|
|
2712
|
+
* `--usa-spring-bouncy-stiffness`…), as W3C Design Tokens JSON, and importable
|
|
2713
|
+
* from Figma Tokens (Tokens Studio) or Style Dictionary exports.
|
|
2714
|
+
*
|
|
2715
|
+
* ```ts
|
|
2716
|
+
* import { applyMotionTokens, importMotionTokens, motionToken } from 'motionary/components/tokens';
|
|
2717
|
+
* applyMotionTokens(importMotionTokens(await (await fetch('/tokens.json')).json()));
|
|
2718
|
+
* el.animate(frames, { duration: motionToken('duration', 'slow'), easing: motionToken('easing', 'emphasized') });
|
|
2719
|
+
* ```
|
|
2720
|
+
*/
|
|
2721
|
+
interface SpringToken {
|
|
2722
|
+
stiffness: number;
|
|
2723
|
+
damping: number;
|
|
2724
|
+
mass: number;
|
|
2725
|
+
}
|
|
2726
|
+
interface MotionTokens {
|
|
2727
|
+
/** Durations in ms. */
|
|
2728
|
+
duration: Record<string, number>;
|
|
2729
|
+
/** CSS easing strings. */
|
|
2730
|
+
easing: Record<string, string>;
|
|
2731
|
+
/** Spring physics parameters. */
|
|
2732
|
+
spring: Record<string, SpringToken>;
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* `<usa-token-editor apply></usa-token-editor>` (10.6, motion design tokens
|
|
2737
|
+
* 2.0) — edit motion tokens (durations and cubic-bézier easings) with a live
|
|
2738
|
+
* preview per token, then export them as W3C Design Tokens (DTCG 2025.10 or
|
|
2739
|
+
* the earlier draft) or import a DTCG file (aliases resolved, problems
|
|
2740
|
+
* listed). `apply` writes the tokens to `:root` custom properties as you
|
|
2741
|
+
* edit; `format` (2025.10 · draft); `groups` (duration,easing). `tokens`,
|
|
2742
|
+
* `exportJSON()`, `importJSON(json)`; `usa:change` { tokens },
|
|
2743
|
+
* `usa:export` { json }, `usa:import` { problems }.
|
|
2744
|
+
*/
|
|
2745
|
+
interface UsaTokenEditorElement extends UsaElement {
|
|
2746
|
+
tokens: MotionTokens;
|
|
2747
|
+
exportJSON(): Record<string, unknown>;
|
|
2748
|
+
importJSON(json: unknown): string[];
|
|
2749
|
+
}
|
|
2750
|
+
declare function defineTokenEditor(tag?: string): CustomElementConstructor | undefined;
|
|
2751
|
+
|
|
2752
|
+
/**
|
|
2753
|
+
* `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
|
|
2754
|
+
* for Motionary (own implementation and API; no Matter.js / Box2D code):
|
|
2755
|
+
*
|
|
2756
|
+
* - bodies: circles, boxes and convex polygons (static, dynamic or
|
|
2757
|
+
* kinematic), density → mass + moment of inertia, restitution, friction,
|
|
2758
|
+
* sensors, collision groups / masks, sleeping;
|
|
2759
|
+
* - collisions: sort-and-sweep broad phase, separating-axis narrow phase
|
|
2760
|
+
* with clipped contact manifolds (up to 2 points), sequential, accumulated and
|
|
2761
|
+
* clamped impulses (normal + Coulomb friction) with a Baumgarte position bias;
|
|
2762
|
+
* - constraints: `distance` (rigid or a spring with `stiffness` /
|
|
2763
|
+
* `damping`), `pin` (a body point to a world point — also the pointer
|
|
2764
|
+
* drag constraint) and `weld`-like stiff distance pairs;
|
|
2765
|
+
* - a fixed time step (default 1/60 s) with an accumulator, so results are
|
|
2766
|
+
* the same at any frame rate; `world.run()` drives it from the shared
|
|
2767
|
+
* runtime ticker (pauses while the ticker sleeps).
|
|
2768
|
+
*
|
|
2769
|
+
* Pure maths — no DOM: safe in SSR and workers. Units are up to you (the
|
|
2770
|
+
* defaults assume pixels: gravity 980 px/s²).
|
|
2771
|
+
*/
|
|
2772
|
+
|
|
2773
|
+
type Num$1 = number;
|
|
2774
|
+
interface Vec2 {
|
|
2775
|
+
x: Num$1;
|
|
2776
|
+
y: Num$1;
|
|
2777
|
+
}
|
|
2778
|
+
type ShapeKind = 'circle' | 'box' | 'polygon';
|
|
2779
|
+
interface BodyOptions {
|
|
2780
|
+
shape?: ShapeKind;
|
|
2781
|
+
x?: Num$1;
|
|
2782
|
+
y?: Num$1;
|
|
2783
|
+
angle?: Num$1;
|
|
2784
|
+
/** circle */
|
|
2785
|
+
radius?: Num$1;
|
|
2786
|
+
/** box */
|
|
2787
|
+
width?: Num$1;
|
|
2788
|
+
height?: Num$1;
|
|
2789
|
+
/** polygon: local vertices (any winding; made convex-ccw) */
|
|
2790
|
+
vertices?: [Num$1, Num$1][];
|
|
2791
|
+
/** 'dynamic' (default), 'static' (never moves) or 'kinematic' (moves by its velocity, ignores forces / collisions). */
|
|
2792
|
+
type?: 'dynamic' | 'static' | 'kinematic';
|
|
2793
|
+
/** Mass per unit area (default 0.001 → a 40 px box weighs 1.6). */
|
|
2794
|
+
density?: Num$1;
|
|
2795
|
+
/** Overrides density. */
|
|
2796
|
+
mass?: Num$1;
|
|
2797
|
+
restitution?: Num$1;
|
|
2798
|
+
friction?: Num$1;
|
|
2799
|
+
vx?: Num$1;
|
|
2800
|
+
vy?: Num$1;
|
|
2801
|
+
angularVelocity?: Num$1;
|
|
2802
|
+
/** Linear / angular damping per second (0–1). */
|
|
2803
|
+
damping?: Num$1;
|
|
2804
|
+
angularDamping?: Num$1;
|
|
2805
|
+
/** Collides with nothing, reports overlaps only. */
|
|
2806
|
+
sensor?: boolean;
|
|
2807
|
+
/** Collision filtering: bodies collide when (a.category & b.mask) && (b.category & a.mask). */
|
|
2808
|
+
category?: Num$1;
|
|
2809
|
+
mask?: Num$1;
|
|
2810
|
+
/** No rotation (infinite inertia). */
|
|
2811
|
+
fixedRotation?: boolean;
|
|
2812
|
+
label?: string;
|
|
2813
|
+
/** Anything (e.g. a fill colour for your renderer). */
|
|
2814
|
+
data?: unknown;
|
|
2815
|
+
}
|
|
2816
|
+
declare class Body {
|
|
2817
|
+
readonly id: number;
|
|
2818
|
+
label: string;
|
|
2819
|
+
shape: ShapeKind;
|
|
2820
|
+
type: 'dynamic' | 'static' | 'kinematic';
|
|
2821
|
+
position: Vec2;
|
|
2822
|
+
velocity: Vec2;
|
|
2823
|
+
angle: Num$1;
|
|
2824
|
+
angularVelocity: Num$1;
|
|
2825
|
+
force: Vec2;
|
|
2826
|
+
torque: number;
|
|
2827
|
+
radius: number;
|
|
2828
|
+
/** Local convex vertices (counter-clockwise) for boxes / polygons. */
|
|
2829
|
+
verts: Vec2[];
|
|
2830
|
+
normals: Vec2[];
|
|
2831
|
+
mass: number;
|
|
2832
|
+
invMass: number;
|
|
2833
|
+
inertia: number;
|
|
2834
|
+
invInertia: number;
|
|
2835
|
+
restitution: Num$1;
|
|
2836
|
+
friction: Num$1;
|
|
2837
|
+
damping: Num$1;
|
|
2838
|
+
angularDamping: Num$1;
|
|
2839
|
+
sensor: boolean;
|
|
2840
|
+
category: Num$1;
|
|
2841
|
+
mask: Num$1;
|
|
2842
|
+
sleeping: boolean;
|
|
2843
|
+
sleepTime: number;
|
|
2844
|
+
data: unknown;
|
|
2845
|
+
/** Bounding box, refreshed every step. */
|
|
2846
|
+
aabb: {
|
|
2847
|
+
minX: number;
|
|
2848
|
+
minY: number;
|
|
2849
|
+
maxX: number;
|
|
2850
|
+
maxY: number;
|
|
2851
|
+
};
|
|
2852
|
+
private wv;
|
|
2853
|
+
private wvAngle;
|
|
2854
|
+
private wvPos;
|
|
2855
|
+
constructor(o?: BodyOptions);
|
|
2856
|
+
get isStatic(): boolean;
|
|
2857
|
+
/** Vertices in world space (cached per pose). */
|
|
2858
|
+
worldVerts(): Vec2[];
|
|
2859
|
+
worldNormal(i: Num$1): Vec2;
|
|
2860
|
+
updateAabb(): void;
|
|
2861
|
+
applyImpulse(j: Vec2, at?: Vec2): void;
|
|
2862
|
+
applyForce(f: Vec2, at?: Vec2): void;
|
|
2863
|
+
wake(): void;
|
|
2864
|
+
/** Is the world point inside this body? */
|
|
2865
|
+
contains(x: Num$1, y: Num$1): boolean;
|
|
2866
|
+
}
|
|
2867
|
+
interface Contact {
|
|
2868
|
+
point: Vec2;
|
|
2869
|
+
depth: Num$1;
|
|
2870
|
+
}
|
|
2871
|
+
interface Manifold {
|
|
2872
|
+
a: Body;
|
|
2873
|
+
b: Body;
|
|
2874
|
+
normal: Vec2;
|
|
2875
|
+
contacts: Contact[];
|
|
2876
|
+
}
|
|
2877
|
+
interface ConstraintOptions {
|
|
2878
|
+
type: 'distance' | 'pin';
|
|
2879
|
+
a: Body;
|
|
2880
|
+
/** distance: the other body; pin: omitted. */
|
|
2881
|
+
b?: Body;
|
|
2882
|
+
/** Anchor on a / b in body-local coordinates (default the centre). */
|
|
2883
|
+
anchorA?: [Num$1, Num$1];
|
|
2884
|
+
anchorB?: [Num$1, Num$1];
|
|
2885
|
+
/** pin: the world point. */
|
|
2886
|
+
point?: [Num$1, Num$1];
|
|
2887
|
+
/** Rest length (default: the current distance). */
|
|
2888
|
+
length?: Num$1;
|
|
2889
|
+
/** 1 = rigid; < 1 = spring (fraction of the error corrected per step). */
|
|
2890
|
+
stiffness?: Num$1;
|
|
2891
|
+
/** Spring damping (0–1). */
|
|
2892
|
+
damping?: Num$1;
|
|
2893
|
+
label?: string;
|
|
2894
|
+
}
|
|
2895
|
+
declare class Constraint {
|
|
2896
|
+
type: 'distance' | 'pin';
|
|
2897
|
+
a: Body;
|
|
2898
|
+
b: Body | null;
|
|
2899
|
+
anchorA: Vec2;
|
|
2900
|
+
anchorB: Vec2;
|
|
2901
|
+
point: Vec2;
|
|
2902
|
+
length: Num$1;
|
|
2903
|
+
stiffness: Num$1;
|
|
2904
|
+
damping: Num$1;
|
|
2905
|
+
label: string;
|
|
2906
|
+
constructor(o: ConstraintOptions);
|
|
2907
|
+
worldA(): Vec2;
|
|
2908
|
+
worldB(): Vec2;
|
|
2909
|
+
/** One velocity iteration (impulse along the constraint axis, with a position bias). */
|
|
2910
|
+
solve(h: Num$1): void;
|
|
2911
|
+
}
|
|
2912
|
+
interface WorldOptions {
|
|
2913
|
+
gravity?: [Num$1, Num$1];
|
|
2914
|
+
/** Velocity iterations per step (default 10). */
|
|
2915
|
+
iterations?: Num$1;
|
|
2916
|
+
/** Fixed step in seconds (default 1/60). */
|
|
2917
|
+
step?: Num$1;
|
|
2918
|
+
/** Let resting bodies sleep (default true). */
|
|
2919
|
+
sleeping?: boolean;
|
|
2920
|
+
}
|
|
2921
|
+
type CollisionListener = (m: Manifold) => void;
|
|
2922
|
+
declare class World {
|
|
2923
|
+
gravity: Vec2;
|
|
2924
|
+
iterations: Num$1;
|
|
2925
|
+
fixedStep: Num$1;
|
|
2926
|
+
sleeping: boolean;
|
|
2927
|
+
bodies: Body[];
|
|
2928
|
+
constraints: Constraint[];
|
|
2929
|
+
/** Manifolds of the last step (incl. sensor overlaps, which have no response). */
|
|
2930
|
+
contacts: Manifold[];
|
|
2931
|
+
time: number;
|
|
2932
|
+
steps: number;
|
|
2933
|
+
private acc;
|
|
2934
|
+
private warm;
|
|
2935
|
+
private listeners;
|
|
2936
|
+
private stop;
|
|
2937
|
+
constructor(o?: WorldOptions);
|
|
2938
|
+
add<T extends Body | Constraint>(...items: T[]): T;
|
|
2939
|
+
body(o: BodyOptions): Body;
|
|
2940
|
+
constraint(o: ConstraintOptions): Constraint;
|
|
2941
|
+
remove(...items: (Body | Constraint)[]): void;
|
|
2942
|
+
clear(): void;
|
|
2943
|
+
/** Static walls around a w × h box (thickness t outside it). */
|
|
2944
|
+
bounds(w: Num$1, h: Num$1, t?: number, o?: {
|
|
2945
|
+
top?: boolean;
|
|
2946
|
+
}): Body[];
|
|
2947
|
+
onCollision(fn: CollisionListener): () => void;
|
|
2948
|
+
/** Bodies under a world point (topmost = last added first). */
|
|
2949
|
+
query(x: Num$1, y: Num$1): Body[];
|
|
2950
|
+
/** Advance by `seconds` of real time in fixed steps (max 8 steps per call). */
|
|
2951
|
+
update(seconds: Num$1): Num$1;
|
|
2952
|
+
/** One fixed step of h seconds. */
|
|
2953
|
+
step(h?: Num$1): void;
|
|
2954
|
+
/** Drive the world from the shared runtime ticker (needs the core). Returns a stopper. */
|
|
2955
|
+
run(): () => void;
|
|
2956
|
+
get running(): boolean;
|
|
2957
|
+
/** Total kinetic energy (handy for tests / "settled" checks). */
|
|
2958
|
+
energy(): Num$1;
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
/**
|
|
2962
|
+
* `motionary/runtime/format-scene` (10.7) — the versioned scene format
|
|
2963
|
+
* `motionary-scene@1`: a JSON description of a 2D physics scene (world,
|
|
2964
|
+
* named materials, bodies, constraints, per-body style) that
|
|
2965
|
+
* `<usa-physics-playground>` and your own code can load, validate,
|
|
2966
|
+
* migrate and save.
|
|
2967
|
+
*
|
|
2968
|
+
* ```json
|
|
2969
|
+
* { "format": "motionary-scene@1",
|
|
2970
|
+
* "world": { "width": 600, "height": 360, "gravity": [0, 980], "walls": true },
|
|
2971
|
+
* "materials": { "rubber": { "restitution": 0.8, "friction": 0.6, "density": 0.001 } },
|
|
2972
|
+
* "bodies": [
|
|
2973
|
+
* { "id": "ball", "shape": "circle", "radius": 20, "position": [120, 40], "material": "rubber", "style": { "fill": "#f472b6" } },
|
|
2974
|
+
* { "id": "floor-plank", "shape": "box", "size": [300, 16], "position": [300, 300], "angle": 0.1, "static": true }
|
|
2975
|
+
* ],
|
|
2976
|
+
* "constraints": [ { "type": "distance", "a": "ball", "b": "floor-plank", "length": 120, "stiffness": 0.3 } ] }
|
|
2977
|
+
* ```
|
|
2978
|
+
*
|
|
2979
|
+
* - `validateScene(json)` lists problems (never throws);
|
|
2980
|
+
* - `migrateScene(json)` upgrades older shapes (an unversioned scene, the
|
|
2981
|
+
* `motionary-scene@0` draft) to `@1` and reports what it changed;
|
|
2982
|
+
* - `parseScene(json)` = migrate + validate, throws on errors;
|
|
2983
|
+
* - `sceneToWorld(scene)` builds a `motionary/runtime/physics` world
|
|
2984
|
+
* (bodies by id); `worldToScene(world)` saves one back.
|
|
2985
|
+
*
|
|
2986
|
+
* Needs `motionary/runtime/physics` registered for `sceneToWorld` /
|
|
2987
|
+
* `worldToScene`; validation and migration are pure.
|
|
2988
|
+
*/
|
|
2989
|
+
|
|
2990
|
+
type Num = number;
|
|
2991
|
+
declare const SCENE_FORMAT = "motionary-scene@1";
|
|
2992
|
+
interface SceneMaterial {
|
|
2993
|
+
restitution?: Num;
|
|
2994
|
+
friction?: Num;
|
|
2995
|
+
density?: Num;
|
|
2996
|
+
}
|
|
2997
|
+
interface SceneBody {
|
|
2998
|
+
id: string;
|
|
2999
|
+
shape: 'circle' | 'box' | 'polygon';
|
|
3000
|
+
position: [Num, Num];
|
|
3001
|
+
angle?: Num;
|
|
3002
|
+
radius?: Num;
|
|
3003
|
+
size?: [Num, Num];
|
|
3004
|
+
vertices?: [Num, Num][];
|
|
3005
|
+
static?: boolean;
|
|
3006
|
+
kinematic?: boolean;
|
|
3007
|
+
material?: string;
|
|
3008
|
+
restitution?: Num;
|
|
3009
|
+
friction?: Num;
|
|
3010
|
+
density?: Num;
|
|
3011
|
+
velocity?: [Num, Num];
|
|
3012
|
+
angularVelocity?: Num;
|
|
3013
|
+
sensor?: boolean;
|
|
3014
|
+
style?: {
|
|
3015
|
+
fill?: string;
|
|
3016
|
+
stroke?: string;
|
|
3017
|
+
label?: string;
|
|
3018
|
+
};
|
|
3019
|
+
}
|
|
3020
|
+
interface SceneConstraint {
|
|
3021
|
+
type: 'distance' | 'pin';
|
|
3022
|
+
a: string;
|
|
3023
|
+
b?: string;
|
|
3024
|
+
point?: [Num, Num];
|
|
3025
|
+
anchorA?: [Num, Num];
|
|
3026
|
+
anchorB?: [Num, Num];
|
|
3027
|
+
length?: Num;
|
|
3028
|
+
stiffness?: Num;
|
|
3029
|
+
damping?: Num;
|
|
3030
|
+
}
|
|
3031
|
+
interface Scene {
|
|
3032
|
+
format: typeof SCENE_FORMAT;
|
|
3033
|
+
name?: string;
|
|
3034
|
+
world: {
|
|
3035
|
+
width: Num;
|
|
3036
|
+
height: Num;
|
|
3037
|
+
gravity?: [Num, Num];
|
|
3038
|
+
walls?: boolean | {
|
|
3039
|
+
top?: boolean;
|
|
3040
|
+
};
|
|
3041
|
+
iterations?: Num;
|
|
3042
|
+
};
|
|
3043
|
+
materials?: Record<string, SceneMaterial>;
|
|
3044
|
+
bodies: SceneBody[];
|
|
3045
|
+
constraints?: SceneConstraint[];
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
/**
|
|
3049
|
+
* `<usa-physics-playground preset="pyramid"></usa-physics-playground>` (10.7)
|
|
3050
|
+
* — a 2D rigid-body sandbox drawn on Canvas 2D, simulated by Motionary's own
|
|
3051
|
+
* **`motionary/runtime/physics`** and loaded from a **`motionary-scene@1`**
|
|
3052
|
+
* scene (`motionary/runtime/format-scene`). Requires `use(physics,
|
|
3053
|
+
* formatScene)` before it mounts.
|
|
3054
|
+
*
|
|
3055
|
+
* Attributes: `preset` (balls · pyramid · pendulum · dominoes), `src` (a
|
|
3056
|
+
* scene JSON URL) or an inline `<script type="application/json">` scene,
|
|
3057
|
+
* `gravity` (px/s², default 980), `spawn` (click / tap empty space drops a
|
|
3058
|
+
* body), `paused`, `label`. Drag any dynamic body (pointer or touch);
|
|
3059
|
+
* arrow keys nudge the last body touched. Reduced motion: the scene is
|
|
3060
|
+
* settled off-screen and drawn once (dragging still works, one frame per
|
|
3061
|
+
* move). Only steps while visible.
|
|
3062
|
+
*
|
|
3063
|
+
* API: `world`, `bodies` (by scene id), `scene` (the loaded scene),
|
|
3064
|
+
* `reset()`, `play()`, `pause()`, `toScene()`; events `usa:load` ({ bodies,
|
|
3065
|
+
* format }), `usa:collision` (first contact between two dynamic bodies per
|
|
3066
|
+
* step), `usa:error`, `usa:runtime-missing`.
|
|
3067
|
+
*/
|
|
3068
|
+
interface UsaPhysicsPlaygroundElement extends UsaElement {
|
|
3069
|
+
readonly world: World | null;
|
|
3070
|
+
readonly bodies: Record<string, Body>;
|
|
3071
|
+
readonly scene: Scene | null;
|
|
3072
|
+
reset(): void;
|
|
3073
|
+
play(): void;
|
|
3074
|
+
pause(): void;
|
|
3075
|
+
toScene(): Scene | null;
|
|
3076
|
+
}
|
|
3077
|
+
/** The built-in scenes (motionary-scene@1). */
|
|
3078
|
+
declare const PHYSICS_PRESETS: Record<string, () => unknown>;
|
|
3079
|
+
declare function definePhysicsPlayground(tag?: string): CustomElementConstructor | undefined;
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* `motionary/components/ai` (10.7, AI-assisted motion) — turns a short
|
|
3083
|
+
* natural-language description ("fade the cards up slowly when they scroll
|
|
3084
|
+
* into view, one after another") into a motion spec: effect, direction,
|
|
3085
|
+
* distance, duration, delay, easing, trigger, repeat, stagger, Web
|
|
3086
|
+
* Animations keyframes + options, a CSS rule and the Motionary components
|
|
3087
|
+
* that do it. English and Chinese phrases. A small deterministic parser —
|
|
3088
|
+
* no model, no network — shared by `<usa-motion-prompt>` and the
|
|
3089
|
+
* `suggest_motion` tool of `motionary-mcp` (which runs an evaluation set of
|
|
3090
|
+
* prompts against it in CI).
|
|
3091
|
+
*
|
|
3092
|
+
* Pure: no DOM access — safe in Node, workers and SSR.
|
|
3093
|
+
*/
|
|
3094
|
+
type MotionEffect = 'fade' | 'slide' | 'zoom' | 'rotate' | 'flip' | 'bounce' | 'shake' | 'pulse' | 'blur' | 'reveal' | 'typewriter' | 'count' | 'tilt' | 'magnetic' | 'ripple' | 'parallax' | 'marquee' | 'particles';
|
|
3095
|
+
type MotionTrigger = 'load' | 'scroll' | 'hover' | 'click' | 'loop';
|
|
3096
|
+
type Direction = 'up' | 'down' | 'left' | 'right' | null;
|
|
3097
|
+
interface MotionIntent {
|
|
3098
|
+
/** The input, trimmed. */
|
|
3099
|
+
text: string;
|
|
3100
|
+
effect: MotionEffect;
|
|
3101
|
+
/** Secondary effects mentioned with the main one ("fade and zoom"). */
|
|
3102
|
+
also: MotionEffect[];
|
|
3103
|
+
direction: Direction;
|
|
3104
|
+
/** px for slides, scale factor for zooms, degrees for rotations / flips. */
|
|
3105
|
+
amount: number;
|
|
3106
|
+
duration: number;
|
|
3107
|
+
delay: number;
|
|
3108
|
+
easing: string;
|
|
3109
|
+
/** Named easing the text asked for ('spring', 'bouncy', 'smooth', 'linear', 'snappy', 'ease-out' …). */
|
|
3110
|
+
easingName: string;
|
|
3111
|
+
trigger: MotionTrigger;
|
|
3112
|
+
/** 1 = once, Infinity = forever. */
|
|
3113
|
+
iterations: number;
|
|
3114
|
+
alternate: boolean;
|
|
3115
|
+
/** ms between items for lists / groups (0 = none). */
|
|
3116
|
+
stagger: number;
|
|
3117
|
+
reducedMotion: 'respect';
|
|
3118
|
+
keyframes: Keyframe[];
|
|
3119
|
+
options: KeyframeAnimationOptions;
|
|
3120
|
+
css: string;
|
|
3121
|
+
/** Motionary components that implement it, best first. */
|
|
3122
|
+
components: {
|
|
3123
|
+
tag: string;
|
|
3124
|
+
why: string;
|
|
3125
|
+
snippet: string;
|
|
3126
|
+
}[];
|
|
3127
|
+
/** 0–1: how much of the text was understood. */
|
|
3128
|
+
confidence: number;
|
|
3129
|
+
/** Words / phrases that drove each decision (for explanations). */
|
|
3130
|
+
matched: string[];
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* `<usa-motion-prompt></usa-motion-prompt>` (10.7, AI-assisted motion) — type
|
|
3135
|
+
* what you want ("fade the cards up slowly, one after another" / "卡片从下往上
|
|
3136
|
+
* 依次淡入") and get a live preview plus ready code: Web Animations, CSS or a
|
|
3137
|
+
* Motionary component. Runs `describeMotion()` from
|
|
3138
|
+
* `motionary/components/ai` — a small deterministic parser (English and
|
|
3139
|
+
* Chinese), **no model and no network**; the same parser backs the
|
|
3140
|
+
* `suggest_motion` tool of `motionary-mcp`.
|
|
3141
|
+
*
|
|
3142
|
+
* Attributes: `value` (initial prompt), `format` (waapi · css · component,
|
|
3143
|
+
* default waapi), `placeholder`, `label`. The preview respects reduced
|
|
3144
|
+
* motion (shows the end state). API: `intent`, `suggest(text)`; events
|
|
3145
|
+
* `usa:suggest` ({ intent }), `usa:copy` ({ format, code }).
|
|
3146
|
+
*/
|
|
3147
|
+
interface UsaMotionPromptElement extends UsaElement {
|
|
3148
|
+
readonly intent: MotionIntent | null;
|
|
3149
|
+
suggest(text: string): MotionIntent;
|
|
3150
|
+
}
|
|
3151
|
+
declare function defineMotionPrompt(tag?: string): CustomElementConstructor | undefined;
|
|
3152
|
+
|
|
2556
3153
|
/**
|
|
2557
3154
|
* motionary/components/widgets — the 6.x animated UI widgets, in their own
|
|
2558
3155
|
* entry so `motionary/components` and `components/lite` keep their size
|
|
@@ -2685,8 +3282,13 @@ declare global {
|
|
|
2685
3282
|
'usa-three-scene': UsaGlSceneElement;
|
|
2686
3283
|
'usa-gpu-particles': UsaGpuParticlesElement;
|
|
2687
3284
|
'usa-shader-backdrop': UsaShaderBackdropElement;
|
|
3285
|
+
'usa-lottie-player': UsaLottiePlayerElement;
|
|
3286
|
+
'usa-rive': UsaRiveElement;
|
|
3287
|
+
'usa-token-editor': UsaTokenEditorElement;
|
|
3288
|
+
'usa-physics-playground': UsaPhysicsPlaygroundElement;
|
|
3289
|
+
'usa-motion-prompt': UsaMotionPromptElement;
|
|
2688
3290
|
}
|
|
2689
3291
|
}
|
|
2690
3292
|
|
|
2691
|
-
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, 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, 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, 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, defineUploadProgress, defineVideoCard, defineVoiceButton, defineVolumeKnob, defineWeatherCard, defineWidgets, defineWorkerCanvas, defineXpBar, describeComponent, exportComponent, formatBytes, formatDistance, fuzzyMatch, haversine, hexToHsv, hsvToHex, initials, keyLabels, levelFor, matchesKeys, monthGrid, pageWindow, parseChips, parseISODate, parseLRC, parseMarkers, parseProps, parseReactions, parseScrub, parseTargets, passwordStrength, project, rankRows, sanitizeCode, sparkPoints, splitTime, stackToast, waveBars, wheelAngle, wrapIndex };
|
|
2692
|
-
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, 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, 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, UsaUploadProgressElement, UsaVideoCardElement, UsaVoiceButtonElement, UsaVolumeKnobElement, UsaWeatherCardElement, UsaWorkerCanvasElement, UsaXpBarElement, WallBadge };
|
|
3293
|
+
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 };
|
|
3294
|
+
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 };
|