@algorisys/tinyfly 0.64.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 (140) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +672 -0
  3. package/bin/tinyfly.mjs +59 -0
  4. package/lib/addons/adapters.js +756 -0
  5. package/lib/addons/dom-adapter-ChrbtkLC.js +243 -0
  6. package/lib/addons/drivers.js +72 -0
  7. package/lib/addons/export.js +1169 -0
  8. package/lib/addons/gsap-compat.js +2576 -0
  9. package/lib/addons/interaction.js +225 -0
  10. package/lib/addons/smooth-scroll-DaSacemU.js +671 -0
  11. package/lib/addons/teach.js +215 -0
  12. package/lib/browser/tinyfly.iife.js +2 -0
  13. package/lib/browser/tinyfly.js +6372 -0
  14. package/lib/browser/tinyfly.umd.js +2 -0
  15. package/lib/cli/tools.js +2325 -0
  16. package/lib/embed/tinyfly-embed.iife.js +18 -0
  17. package/lib/embed/tinyfly-embed.js +2316 -0
  18. package/lib/engine/tinyfly-engine.js +1972 -0
  19. package/lib/engine/tinyfly-engine.umd.cjs +2 -0
  20. package/lib/frameworks/react.js +32 -0
  21. package/lib/frameworks/solid.js +27 -0
  22. package/lib/frameworks/svelte.js +15 -0
  23. package/lib/frameworks/vue.js +29 -0
  24. package/lib/player/tinyfly-player.es.js +2306 -0
  25. package/lib/player/tinyfly-player.iife.js +2 -0
  26. package/lib/player/tinyfly-player.umd.js +2 -0
  27. package/lib/types/adapters/canvas/canvas-adapter.d.ts +238 -0
  28. package/lib/types/adapters/canvas/index.d.ts +1 -0
  29. package/lib/types/adapters/dom/dom-adapter.d.ts +50 -0
  30. package/lib/types/adapters/dom/flip.d.ts +60 -0
  31. package/lib/types/adapters/dom/index.d.ts +2 -0
  32. package/lib/types/adapters/filter-utils.d.ts +32 -0
  33. package/lib/types/adapters/index.d.ts +5 -0
  34. package/lib/types/adapters/shine-utils.d.ts +26 -0
  35. package/lib/types/adapters/svg/index.d.ts +1 -0
  36. package/lib/types/adapters/svg/svg-adapter.d.ts +47 -0
  37. package/lib/types/adapters/svg-transform-box.d.ts +13 -0
  38. package/lib/types/adapters/text-content.d.ts +11 -0
  39. package/lib/types/adapters/webgl/index.d.ts +1 -0
  40. package/lib/types/adapters/webgl/webgl-adapter.d.ts +69 -0
  41. package/lib/types/browser/index.d.ts +41 -0
  42. package/lib/types/compat/gsap/custom-eases.d.ts +28 -0
  43. package/lib/types/compat/gsap/defaults.d.ts +19 -0
  44. package/lib/types/compat/gsap/draw-svg-vars.d.ts +36 -0
  45. package/lib/types/compat/gsap/ease-map.d.ts +51 -0
  46. package/lib/types/compat/gsap/image-sequence.d.ts +61 -0
  47. package/lib/types/compat/gsap/index.d.ts +65 -0
  48. package/lib/types/compat/gsap/inertia-vars.d.ts +39 -0
  49. package/lib/types/compat/gsap/keyframes-vars.d.ts +8 -0
  50. package/lib/types/compat/gsap/layout.d.ts +6 -0
  51. package/lib/types/compat/gsap/live-context.d.ts +87 -0
  52. package/lib/types/compat/gsap/live-draggable.d.ts +75 -0
  53. package/lib/types/compat/gsap/live-flip.d.ts +73 -0
  54. package/lib/types/compat/gsap/live-morph.d.ts +18 -0
  55. package/lib/types/compat/gsap/live-motion-path.d.ts +33 -0
  56. package/lib/types/compat/gsap/live-scroll-to.d.ts +52 -0
  57. package/lib/types/compat/gsap/live-scroll.d.ts +108 -0
  58. package/lib/types/compat/gsap/live-transition.d.ts +40 -0
  59. package/lib/types/compat/gsap/live.d.ts +341 -0
  60. package/lib/types/compat/gsap/morph-vars.d.ts +21 -0
  61. package/lib/types/compat/gsap/motion-path-vars.d.ts +38 -0
  62. package/lib/types/compat/gsap/playhead-crossings.d.ts +47 -0
  63. package/lib/types/compat/gsap/position.d.ts +37 -0
  64. package/lib/types/compat/gsap/quick-play.d.ts +38 -0
  65. package/lib/types/compat/gsap/split-text.d.ts +66 -0
  66. package/lib/types/compat/gsap/spring-vars.d.ts +34 -0
  67. package/lib/types/compat/gsap/stage.d.ts +182 -0
  68. package/lib/types/compat/gsap/stagger-grid.d.ts +30 -0
  69. package/lib/types/compat/gsap/text-vars.d.ts +39 -0
  70. package/lib/types/compat/gsap/timeline.d.ts +161 -0
  71. package/lib/types/compat/gsap/utils.d.ts +60 -0
  72. package/lib/types/compat/gsap/vars.d.ts +79 -0
  73. package/lib/types/drivers/index.d.ts +8 -0
  74. package/lib/types/drivers/scroll-driver.d.ts +218 -0
  75. package/lib/types/drivers/scroll-markers.d.ts +41 -0
  76. package/lib/types/drivers/scroll-math.d.ts +87 -0
  77. package/lib/types/drivers/scroll-pin.d.ts +45 -0
  78. package/lib/types/drivers/scroll-snap.d.ts +47 -0
  79. package/lib/types/drivers/smooth-scroll.d.ts +118 -0
  80. package/lib/types/drivers/types.d.ts +23 -0
  81. package/lib/types/drivers/visibility-driver.d.ts +56 -0
  82. package/lib/types/embed/controls.d.ts +46 -0
  83. package/lib/types/embed/index.d.ts +17 -0
  84. package/lib/types/embed/mount.d.ts +41 -0
  85. package/lib/types/embed/tools.d.ts +33 -0
  86. package/lib/types/engine/authoring/custom-ease.d.ts +49 -0
  87. package/lib/types/engine/authoring/index.d.ts +3 -0
  88. package/lib/types/engine/authoring/random.d.ts +38 -0
  89. package/lib/types/engine/authoring/resolve-values.d.ts +57 -0
  90. package/lib/types/engine/core/bake.d.ts +66 -0
  91. package/lib/types/engine/core/clock.d.ts +44 -0
  92. package/lib/types/engine/core/index.d.ts +8 -0
  93. package/lib/types/engine/core/inertia.d.ts +30 -0
  94. package/lib/types/engine/core/playhead-crossings.d.ts +47 -0
  95. package/lib/types/engine/core/spring.d.ts +132 -0
  96. package/lib/types/engine/core/stagger.d.ts +40 -0
  97. package/lib/types/engine/core/timeline.d.ts +203 -0
  98. package/lib/types/engine/core/track.d.ts +90 -0
  99. package/lib/types/engine/export/byte-writer.d.ts +36 -0
  100. package/lib/types/engine/export/css.d.ts +31 -0
  101. package/lib/types/engine/export/gif-decode.test-helper.d.ts +24 -0
  102. package/lib/types/engine/export/gif.d.ts +134 -0
  103. package/lib/types/engine/export/index.d.ts +9 -0
  104. package/lib/types/engine/export/lottie.d.ts +104 -0
  105. package/lib/types/engine/export/mp4.d.ts +64 -0
  106. package/lib/types/engine/export/quantize.d.ts +56 -0
  107. package/lib/types/engine/export/sprite-sheet.d.ts +46 -0
  108. package/lib/types/engine/export/video.d.ts +99 -0
  109. package/lib/types/engine/export/webp.d.ts +82 -0
  110. package/lib/types/engine/index.d.ts +7 -0
  111. package/lib/types/engine/interpolation/easing.d.ts +65 -0
  112. package/lib/types/engine/interpolation/index.d.ts +2 -0
  113. package/lib/types/engine/interpolation/interpolators.d.ts +25 -0
  114. package/lib/types/engine/path/index.d.ts +11 -0
  115. package/lib/types/engine/path/motion-path.d.ts +24 -0
  116. package/lib/types/engine/path/path-builders.d.ts +38 -0
  117. package/lib/types/engine/path/path-morph.d.ts +47 -0
  118. package/lib/types/engine/path/path-utils.d.ts +73 -0
  119. package/lib/types/engine/serialization/index.d.ts +1 -0
  120. package/lib/types/engine/serialization/json.d.ts +30 -0
  121. package/lib/types/engine/text/index.d.ts +2 -0
  122. package/lib/types/engine/text/text-value.d.ts +16 -0
  123. package/lib/types/engine/types.d.ts +401 -0
  124. package/lib/types/frameworks/react.d.ts +35 -0
  125. package/lib/types/frameworks/solid.d.ts +16 -0
  126. package/lib/types/frameworks/svelte.d.ts +19 -0
  127. package/lib/types/frameworks/vue.d.ts +27 -0
  128. package/lib/types/interaction/draggable.d.ts +133 -0
  129. package/lib/types/interaction/index.d.ts +3 -0
  130. package/lib/types/interaction/observer.d.ts +80 -0
  131. package/lib/types/interaction/snap.d.ts +30 -0
  132. package/lib/types/player/index.d.ts +7 -0
  133. package/lib/types/player/media-sync.d.ts +60 -0
  134. package/lib/types/player/player.d.ts +238 -0
  135. package/lib/types/player/sequence-types.d.ts +68 -0
  136. package/lib/types/player/sequencer.d.ts +91 -0
  137. package/lib/types/teach/diagrams.d.ts +137 -0
  138. package/lib/types/teach/index.d.ts +11 -0
  139. package/lib/types/teach/lesson.d.ts +55 -0
  140. package/package.json +170 -0
@@ -0,0 +1,91 @@
1
+ import type { SequenceDefinition, SequencerOptions } from './sequence-types';
2
+ type SequencerState = 'idle' | 'playing-scene' | 'transitioning';
3
+ /**
4
+ * Multi-scene animation player that plays scenes in sequence with transitions.
5
+ *
6
+ * Uses a dual-container approach: during transitions, both the outgoing and
7
+ * incoming scenes render simultaneously in separate containers, and CSS
8
+ * handles the visual transition effect.
9
+ */
10
+ export declare class TinyflySequencer {
11
+ private container;
12
+ private containerA;
13
+ private containerB;
14
+ private adapterA;
15
+ private adapterB;
16
+ private timelineA;
17
+ private timelineB;
18
+ /** Symbol nested timelines by id (from the sequence). */
19
+ private symbolDefs;
20
+ /** Per-scene-slot symbol instances (nested adapter + timeline), keyed by the
21
+ * slot's scene adapter. */
22
+ private nestedByAdapter;
23
+ private sequence;
24
+ private options;
25
+ private _currentSceneIndex;
26
+ private _state;
27
+ private _isPlaying;
28
+ private _isDestroyed;
29
+ private loopIteration;
30
+ private animationFrameId;
31
+ private lastTime;
32
+ private transitionTimer;
33
+ constructor(container: HTMLElement | string, options?: SequencerOptions);
34
+ /**
35
+ * Load a sequence from a URL or inline definition.
36
+ */
37
+ load(source: string | SequenceDefinition): Promise<void>;
38
+ /**
39
+ * Start or resume playback.
40
+ */
41
+ play(): void;
42
+ /**
43
+ * Pause playback.
44
+ */
45
+ pause(): void;
46
+ /**
47
+ * Stop playback and reset to beginning.
48
+ */
49
+ stop(): void;
50
+ /**
51
+ * Jump to a specific scene by index.
52
+ */
53
+ goToScene(index: number): void;
54
+ /**
55
+ * Clean up all resources.
56
+ */
57
+ destroy(): void;
58
+ get currentSceneIndex(): number;
59
+ get sceneCount(): number;
60
+ get isPlaying(): boolean;
61
+ get state(): SequencerState;
62
+ private createSceneContainer;
63
+ private renderScene;
64
+ /**
65
+ * For each symbol instance container (`[data-tinyfly-symbol]`) in a scene slot,
66
+ * bind its inner elements to a private adapter driven by the symbol's timeline.
67
+ */
68
+ private setupNested;
69
+ /** Apply the nested symbol states for a slot at a given scene time. */
70
+ private applyNested;
71
+ private clearContainer;
72
+ private createTimeline;
73
+ private onSceneComplete;
74
+ private beginTransitionTo;
75
+ private applyTransition;
76
+ private resetTransitionStyles;
77
+ private finishTransition;
78
+ private switchToScene;
79
+ private startAnimationLoop;
80
+ private stopAnimationLoop;
81
+ }
82
+ /**
83
+ * Simple function to play a multi-scene animation sequence.
84
+ *
85
+ * Usage:
86
+ * ```ts
87
+ * const seq = await playSequence('#container', 'sequence.json', { loop: -1 })
88
+ * ```
89
+ */
90
+ export declare function playSequence(container: HTMLElement | string, source: string | SequenceDefinition, options?: SequencerOptions): Promise<TinyflySequencer>;
91
+ export {};
@@ -0,0 +1,137 @@
1
+ import type { LessonBuilder, StepOptions } from './lesson';
2
+ /**
3
+ * Diagram primitives for computer-science teaching: each returns SVG markup with
4
+ * `data-tinyfly` names, its geometry, and step helpers that write to a
5
+ * `lesson()`. Put the pieces in a `figure()` and embed the result.
6
+ *
7
+ * const slice = cells({ id: 's', values: [1, 2, 3, ''], x: 20, y: 40 })
8
+ * const ptr = pointer({ id: 'len', label: 'len', x: slice.center(2).x, y: 110 })
9
+ * const l = lesson({ id: 'append' })
10
+ * l.marker('before', { label: 'len 3, cap 4' })
11
+ * slice.write(l, 3, 4)
12
+ * ptr.moveTo(l, slice.center(3).x)
13
+ * const markup = figure({ width: 360, height: 150, children: [slice, ptr] })
14
+ *
15
+ * Helpers only: nothing here is in the engine, and everything they produce is
16
+ * ordinary markup and keyframes.
17
+ */
18
+ export interface Piece {
19
+ /** SVG markup for this piece */
20
+ svg: string;
21
+ }
22
+ export interface Theme {
23
+ stroke: string;
24
+ fill: string;
25
+ text: string;
26
+ accent: string;
27
+ muted: string;
28
+ font: string;
29
+ }
30
+ export declare const DEFAULT_THEME: Theme;
31
+ /** An `<svg>` holding pieces, scaled by its viewBox. */
32
+ export declare function figure(options: {
33
+ width: number;
34
+ height: number;
35
+ children: Piece[];
36
+ title?: string;
37
+ theme?: Partial<Theme>;
38
+ }): string;
39
+ export interface Cells extends Piece {
40
+ /** `data-tinyfly` name of cell i's box, and of its value text */
41
+ cell(index: number): string;
42
+ value(index: number): string;
43
+ /** Centre of cell i */
44
+ center(index: number): {
45
+ x: number;
46
+ y: number;
47
+ };
48
+ /** Colour a cell (and optionally back again later) */
49
+ highlight(lesson: LessonBuilder, index: number, fill?: string, options?: StepOptions): void;
50
+ /** Put a value into a cell: it fades in */
51
+ write(lesson: LessonBuilder, index: number, value: string | number, options?: StepOptions): void;
52
+ }
53
+ export declare function cells(options: {
54
+ id: string;
55
+ values: Array<string | number>;
56
+ x?: number;
57
+ y?: number;
58
+ size?: number;
59
+ gap?: number;
60
+ /** Index labels under the cells (default true) */
61
+ indexes?: boolean;
62
+ theme?: Partial<Theme>;
63
+ }): Cells;
64
+ export interface Pointer extends Piece {
65
+ name: string;
66
+ moveTo(lesson: LessonBuilder, x: number, options?: StepOptions): void;
67
+ }
68
+ /** An upward arrow at `x` (its tip at `y`), labelled underneath. Moves along x. */
69
+ export declare function pointer(options: {
70
+ id: string;
71
+ label: string;
72
+ x: number;
73
+ y: number;
74
+ theme?: Partial<Theme>;
75
+ }): Pointer;
76
+ export interface Stack extends Piece {
77
+ frame(index: number): string;
78
+ push(lesson: LessonBuilder, label: string, options?: StepOptions): void;
79
+ pop(lesson: LessonBuilder, options?: StepOptions): void;
80
+ }
81
+ /** A call stack growing upwards from its base, with room for `capacity` frames. */
82
+ export declare function stack(options: {
83
+ id: string;
84
+ x: number;
85
+ y: number;
86
+ width?: number;
87
+ frameHeight?: number;
88
+ capacity: number;
89
+ theme?: Partial<Theme>;
90
+ }): Stack;
91
+ export interface Queue extends Piece {
92
+ /** A value token enters from the left and waits at the back of the queue */
93
+ send(lesson: LessonBuilder, label: string, options?: StepOptions): void;
94
+ /** The front token leaves to the right */
95
+ receive(lesson: LessonBuilder, options?: StepOptions): void;
96
+ }
97
+ /** A horizontal buffer (a Go channel, a queue) with `capacity` slots. */
98
+ export declare function queue(options: {
99
+ id: string;
100
+ x: number;
101
+ y: number;
102
+ capacity: number;
103
+ slot?: number;
104
+ label?: string;
105
+ theme?: Partial<Theme>;
106
+ }): Queue;
107
+ export interface Table extends Piece {
108
+ row(key: string): string;
109
+ /** Set a key's value, highlighting its row */
110
+ put(lesson: LessonBuilder, key: string, value: string | number, options?: StepOptions): void;
111
+ }
112
+ /** A two-column key → value table (a map, a hash bucket, a symbol table). */
113
+ export declare function table(options: {
114
+ id: string;
115
+ x: number;
116
+ y: number;
117
+ keys: string[];
118
+ values?: Array<string | number>;
119
+ width?: number;
120
+ rowHeight?: number;
121
+ theme?: Partial<Theme>;
122
+ }): Table;
123
+ export interface Pipeline extends Piece {
124
+ token: string;
125
+ /** Move the request to stage i */
126
+ advance(lesson: LessonBuilder, stage: number, options?: StepOptions): void;
127
+ }
128
+ /** Stages in a row (middleware, a compiler, a build) with a request token travelling through. */
129
+ export declare function pipeline(options: {
130
+ id: string;
131
+ x: number;
132
+ y: number;
133
+ stages: string[];
134
+ stageWidth?: number;
135
+ gap?: number;
136
+ theme?: Partial<Theme>;
137
+ }): Pipeline;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @algorisys/tinyfly/teach — authoring helpers for teaching animations: `lesson()` writes
3
+ * steps as timeline JSON, and diagram primitives (cells, pointer, stack, queue,
4
+ * table, pipeline) produce SVG markup with matching step helpers. They run
5
+ * anywhere (browser, Node, a build script); the output is ordinary markup and
6
+ * keyframes for `tinyfly/embed`.
7
+ */
8
+ export { lesson } from './lesson';
9
+ export type { LessonBuilder, StepOptions, MarkerOptions } from './lesson';
10
+ export { figure, cells, pointer, stack, queue, table, pipeline, DEFAULT_THEME } from './diagrams';
11
+ export type { Piece, Theme, Cells, Pointer, Stack, Queue, Table, Pipeline } from './diagrams';
@@ -0,0 +1,55 @@
1
+ import { type AnimatableValue, type EasingType, type TimelineDefinition } from '../engine';
2
+ /**
3
+ * Write a teaching animation as steps, and get the timeline JSON.
4
+ *
5
+ * const l = lesson({ id: 'append' })
6
+ * l.marker('start', { label: 'len 3, cap 4' })
7
+ * l.to('ptr', { x: 180 }) // animates from where it was
8
+ * l.set('len', { text: 'len = 4' }) // changes at once
9
+ * l.marker('full', { label: 'cap is full', pause: true, question: 'What happens on the next append?' })
10
+ * l.together(() => { l.to('old', { opacity: 0.3 }); l.to('new', { y: 80 }) })
11
+ * const definition = l.definition()
12
+ *
13
+ * A cursor moves forward with each step. Each tween starts from the value that
14
+ * target and property last had (or its `initial` value, or a sensible default),
15
+ * so steps never jump. Everything is plain keyframes: a player, the editor and
16
+ * the validator all read the result.
17
+ */
18
+ export interface StepOptions {
19
+ /** Milliseconds (default 400) */
20
+ duration?: number;
21
+ easing?: EasingType;
22
+ /** Wait this long before the step starts */
23
+ delay?: number;
24
+ }
25
+ export interface MarkerOptions {
26
+ label?: string;
27
+ pause?: boolean;
28
+ question?: string;
29
+ /** Captions for this marker, per language */
30
+ captions?: Record<string, string>;
31
+ }
32
+ export interface LessonBuilder {
33
+ /** Current cursor, in milliseconds */
34
+ readonly time: number;
35
+ /** Move the cursor to a time */
36
+ at(time: number): LessonBuilder;
37
+ /** Move the cursor forward */
38
+ wait(milliseconds: number): LessonBuilder;
39
+ /** Starting values, before anything moves */
40
+ initial(target: string, values: Record<string, AnimatableValue>): LessonBuilder;
41
+ /** Change values at once, at the cursor */
42
+ set(target: string, values: Record<string, AnimatableValue>): LessonBuilder;
43
+ /** Animate values from where they are, advancing the cursor */
44
+ to(target: string, values: Record<string, AnimatableValue>, options?: StepOptions): LessonBuilder;
45
+ /** Run steps that start at the same moment; the cursor moves to the end of the longest */
46
+ together(steps: () => void): LessonBuilder;
47
+ /** A named step at the cursor */
48
+ marker(id: string, options?: MarkerOptions): LessonBuilder;
49
+ /** The finished timeline */
50
+ definition(): TimelineDefinition;
51
+ }
52
+ export declare function lesson(options: {
53
+ id: string;
54
+ name?: string;
55
+ }): LessonBuilder;
package/package.json ADDED
@@ -0,0 +1,170 @@
1
+ {
2
+ "name": "@algorisys/tinyfly",
3
+ "version": "0.64.0",
4
+ "type": "module",
5
+ "description": "Lightweight, API-driven animation engine and editor. The engine is framework-agnostic and runs in browsers, Web Workers, and Node.",
6
+ "license": "MIT",
7
+ "author": "Algorisys OSS Team",
8
+ "homepage": "https://github.com/algorisys-oss/tinyfly#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/algorisys-oss/tinyfly.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/algorisys-oss/tinyfly/issues"
15
+ },
16
+ "keywords": [
17
+ "animation",
18
+ "animation-engine",
19
+ "timeline",
20
+ "keyframes",
21
+ "tween",
22
+ "easing",
23
+ "spring",
24
+ "gsap-alternative",
25
+ "svg",
26
+ "canvas",
27
+ "web-animation"
28
+ ],
29
+ "sideEffects": [
30
+ "**/*.css"
31
+ ],
32
+ "main": "./lib/engine/tinyfly-engine.umd.cjs",
33
+ "module": "./lib/engine/tinyfly-engine.js",
34
+ "types": "./lib/types/engine/index.d.ts",
35
+ "unpkg": "./lib/browser/tinyfly.iife.js",
36
+ "jsdelivr": "./lib/browser/tinyfly.iife.js",
37
+ "bin": {
38
+ "tinyfly": "./bin/tinyfly.mjs"
39
+ },
40
+ "exports": {
41
+ ".": {
42
+ "types": "./lib/types/engine/index.d.ts",
43
+ "import": "./lib/engine/tinyfly-engine.js",
44
+ "require": "./lib/engine/tinyfly-engine.umd.cjs"
45
+ },
46
+ "./player": {
47
+ "types": "./lib/types/player/index.d.ts",
48
+ "import": "./lib/player/tinyfly-player.es.js",
49
+ "require": "./lib/player/tinyfly-player.umd.js"
50
+ },
51
+ "./export": {
52
+ "types": "./lib/types/engine/export/index.d.ts",
53
+ "import": "./lib/addons/export.js"
54
+ },
55
+ "./adapters": {
56
+ "types": "./lib/types/adapters/index.d.ts",
57
+ "import": "./lib/addons/adapters.js"
58
+ },
59
+ "./drivers": {
60
+ "types": "./lib/types/drivers/index.d.ts",
61
+ "import": "./lib/addons/drivers.js"
62
+ },
63
+ "./interaction": {
64
+ "types": "./lib/types/interaction/index.d.ts",
65
+ "import": "./lib/addons/interaction.js"
66
+ },
67
+ "./gsap-compat": {
68
+ "types": "./lib/types/compat/gsap/index.d.ts",
69
+ "import": "./lib/addons/gsap-compat.js"
70
+ },
71
+ "./browser": {
72
+ "types": "./lib/types/browser/index.d.ts",
73
+ "import": "./lib/browser/tinyfly.js",
74
+ "require": "./lib/browser/tinyfly.umd.js"
75
+ },
76
+ "./teach": {
77
+ "types": "./lib/types/teach/index.d.ts",
78
+ "import": "./lib/addons/teach.js"
79
+ },
80
+ "./embed": {
81
+ "types": "./lib/types/embed/index.d.ts",
82
+ "import": "./lib/embed/tinyfly-embed.js"
83
+ },
84
+ "./react": {
85
+ "types": "./lib/types/frameworks/react.d.ts",
86
+ "import": "./lib/frameworks/react.js"
87
+ },
88
+ "./vue": {
89
+ "types": "./lib/types/frameworks/vue.d.ts",
90
+ "import": "./lib/frameworks/vue.js"
91
+ },
92
+ "./svelte": {
93
+ "types": "./lib/types/frameworks/svelte.d.ts",
94
+ "import": "./lib/frameworks/svelte.js"
95
+ },
96
+ "./solid": {
97
+ "types": "./lib/types/frameworks/solid.d.ts",
98
+ "import": "./lib/frameworks/solid.js"
99
+ },
100
+ "./package.json": "./package.json"
101
+ },
102
+ "files": [
103
+ "lib/engine",
104
+ "lib/player",
105
+ "lib/addons",
106
+ "lib/browser",
107
+ "lib/frameworks",
108
+ "lib/embed",
109
+ "lib/cli",
110
+ "bin",
111
+ "lib/types"
112
+ ],
113
+ "publishConfig": {
114
+ "access": "public"
115
+ },
116
+ "scripts": {
117
+ "dev": "vite",
118
+ "build": "tsc -b && vite build",
119
+ "build:player": "vite build --config vite.config.player.ts",
120
+ "build:engine": "vite build --config vite.config.engine.ts",
121
+ "build:types": "tsc -p tsconfig.lib.json",
122
+ "build:libs": "npm run build:engine && npm run build:player && npm run build:addons && npm run build:frameworks && npm run build:embed && npm run build:cli && npm run build:browser && npm run build:types",
123
+ "preview": "vite preview",
124
+ "test": "vitest",
125
+ "test:run": "vitest run",
126
+ "build:addons": "vite build --config vite.config.addons.ts",
127
+ "build:browser": "vite build --config vite.config.browser.ts",
128
+ "prepublishOnly": "npm run test:run && npm run build:libs",
129
+ "e2e": "node e2e/run.mjs",
130
+ "release:oss": "./scripts/publish-oss.sh --push",
131
+ "release:oss:dry-run": "./scripts/publish-oss.sh",
132
+ "build:frameworks": "vite build --config vite.config.frameworks.ts",
133
+ "release:npm": "npm publish",
134
+ "release:npm:dry-run": "npm publish --dry-run",
135
+ "build:embed": "vite build --config vite.config.embed.ts",
136
+ "build:cli": "vite build --config vite.config.cli.ts"
137
+ },
138
+ "devDependencies": {
139
+ "@solidjs/router": "^0.15.4",
140
+ "@types/node": "^24.10.1",
141
+ "@types/react": "^19.3.0",
142
+ "@types/react-dom": "^19.3.0",
143
+ "happy-dom": "^20.5.0",
144
+ "playwright-core": "1.62.1",
145
+ "react": "^19.3.0",
146
+ "react-dom": "^19.3.0",
147
+ "solid-js": "^1.9.10",
148
+ "typescript": "~5.9.3",
149
+ "vite": "^7.2.4",
150
+ "vite-plugin-solid": "^2.11.10",
151
+ "vitest": "^4.0.18",
152
+ "vue": "^3.5.42"
153
+ },
154
+ "peerDependencies": {
155
+ "react": ">=18",
156
+ "vue": ">=3.3",
157
+ "solid-js": ">=1.8"
158
+ },
159
+ "peerDependenciesMeta": {
160
+ "react": {
161
+ "optional": true
162
+ },
163
+ "vue": {
164
+ "optional": true
165
+ },
166
+ "solid-js": {
167
+ "optional": true
168
+ }
169
+ }
170
+ }