@mihirsarya/manim-scroll 0.1.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/dist/index.d.ts +16 -0
- package/dist/index.js +16 -0
- package/dist/next.d.ts +17 -0
- package/dist/next.js +16 -0
- package/package.json +43 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mihirsarya/manim-scroll
|
|
3
|
+
*
|
|
4
|
+
* Unified package for scroll-driven Manim animations.
|
|
5
|
+
* Re-exports from runtime, React, and Next.js packages.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { ManimScroll, useManimScroll } from "@mihirsarya/manim-scroll";
|
|
10
|
+
* import { withManimScroll } from "@mihirsarya/manim-scroll/next";
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export { registerScrollAnimation } from "@mihirsarya/manim-scroll-runtime";
|
|
14
|
+
export type { RenderManifest, ScrollAnimationOptions, ScrollRange, ScrollRangePreset, ScrollRangeValue, } from "@mihirsarya/manim-scroll-runtime";
|
|
15
|
+
export { ManimScroll, useManimScroll } from "@mihirsarya/manim-scroll-react";
|
|
16
|
+
export type { ManimScrollProps, ManimAnimationProps, UseManimScrollOptions, UseManimScrollResult, } from "@mihirsarya/manim-scroll-react";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mihirsarya/manim-scroll
|
|
3
|
+
*
|
|
4
|
+
* Unified package for scroll-driven Manim animations.
|
|
5
|
+
* Re-exports from runtime, React, and Next.js packages.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { ManimScroll, useManimScroll } from "@mihirsarya/manim-scroll";
|
|
10
|
+
* import { withManimScroll } from "@mihirsarya/manim-scroll/next";
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
// Runtime exports
|
|
14
|
+
export { registerScrollAnimation } from "@mihirsarya/manim-scroll-runtime";
|
|
15
|
+
// React exports
|
|
16
|
+
export { ManimScroll, useManimScroll } from "@mihirsarya/manim-scroll-react";
|
package/dist/next.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Next.js plugin exports.
|
|
3
|
+
*
|
|
4
|
+
* Separated to allow tree-shaking when not using Next.js.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```js
|
|
8
|
+
* // next.config.js
|
|
9
|
+
* const { withManimScroll } = require("@mihirsarya/manim-scroll/next");
|
|
10
|
+
*
|
|
11
|
+
* module.exports = withManimScroll({
|
|
12
|
+
* manimScroll: { quality: "h" },
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export { withManimScroll, processManimScroll, extractAnimations, computePropsHash, isCached, getCacheEntry, getAnimationsToRender, writeCacheManifest, readCacheManifest, cleanOrphanedCache, renderAnimations, } from "@mihirsarya/manim-scroll-next";
|
|
17
|
+
export type { ManimScrollConfig, NextConfigWithManimScroll, ExtractedAnimation, RenderResult, RenderOptions, } from "@mihirsarya/manim-scroll-next";
|
package/dist/next.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Next.js plugin exports.
|
|
3
|
+
*
|
|
4
|
+
* Separated to allow tree-shaking when not using Next.js.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```js
|
|
8
|
+
* // next.config.js
|
|
9
|
+
* const { withManimScroll } = require("@mihirsarya/manim-scroll/next");
|
|
10
|
+
*
|
|
11
|
+
* module.exports = withManimScroll({
|
|
12
|
+
* manimScroll: { quality: "h" },
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export { withManimScroll, processManimScroll, extractAnimations, computePropsHash, isCached, getCacheEntry, getAnimationsToRender, writeCacheManifest, readCacheManifest, cleanOrphanedCache, renderAnimations, } from "@mihirsarya/manim-scroll-next";
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mihirsarya/manim-scroll",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Unified package for scroll-driven Manim animations - includes runtime, React components, and Next.js plugin.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./next": {
|
|
16
|
+
"types": "./dist/next.d.ts",
|
|
17
|
+
"default": "./dist/next.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": ">=18.0.0",
|
|
22
|
+
"react-dom": ">=18.0.0",
|
|
23
|
+
"next": ">=13.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependenciesMeta": {
|
|
26
|
+
"next": {
|
|
27
|
+
"optional": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@mihirsarya/manim-scroll-runtime": "0.1.0",
|
|
32
|
+
"@mihirsarya/manim-scroll-react": "0.1.0",
|
|
33
|
+
"@mihirsarya/manim-scroll-next": "0.1.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/react": "^18.2.61",
|
|
37
|
+
"@types/react-dom": "^18.2.19",
|
|
38
|
+
"typescript": "^5.4.5"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc -p tsconfig.json"
|
|
42
|
+
}
|
|
43
|
+
}
|