@cutcraft/player 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +61 -2
- package/dist/engine.d.mts +2 -0
- package/dist/engine.mjs +1 -0
- package/dist/index.d.mts +327 -0
- package/dist/index.mjs +3301 -0
- package/dist/render-DA1KFyei.mjs +3176 -0
- package/dist/warn-GHM3SBI2.d.mts +892 -0
- package/fonts.css +23 -0
- package/package.json +74 -3
package/fonts.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The bundled font families (BUNDLED_FONTS in @cutcraft/kit), so the preview sets
|
|
3
|
+
* text in the same faces as the export. Import once in the app:
|
|
4
|
+
* import "@cutcraft/player/fonts.css";
|
|
5
|
+
*/
|
|
6
|
+
@import "@fontsource/inter/400.css";
|
|
7
|
+
@import "@fontsource/inter/700.css";
|
|
8
|
+
@import "@fontsource/inter/400-italic.css";
|
|
9
|
+
@import "@fontsource/inter/700-italic.css";
|
|
10
|
+
@import "@fontsource/space-grotesk/400.css";
|
|
11
|
+
@import "@fontsource/space-grotesk/700.css";
|
|
12
|
+
@import "@fontsource/playfair-display/400.css";
|
|
13
|
+
@import "@fontsource/playfair-display/700.css";
|
|
14
|
+
@import "@fontsource/playfair-display/400-italic.css";
|
|
15
|
+
@import "@fontsource/playfair-display/700-italic.css";
|
|
16
|
+
@import "@fontsource/dm-sans/400.css";
|
|
17
|
+
@import "@fontsource/dm-sans/700.css";
|
|
18
|
+
@import "@fontsource/dm-sans/400-italic.css";
|
|
19
|
+
@import "@fontsource/dm-sans/700-italic.css";
|
|
20
|
+
@import "@fontsource/jetbrains-mono/400.css";
|
|
21
|
+
@import "@fontsource/jetbrains-mono/700.css";
|
|
22
|
+
@import "@fontsource/jetbrains-mono/400-italic.css";
|
|
23
|
+
@import "@fontsource/jetbrains-mono/700-italic.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cutcraft/player",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Browser player for the cut video DSL: WebCodecs decode through mediabunny, canvas compositing, DOM overlays, Web Audio clock.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"video",
|
|
7
|
+
"video-editing",
|
|
8
|
+
"react",
|
|
9
|
+
"tsx",
|
|
10
|
+
"llm",
|
|
11
|
+
"ai-video",
|
|
12
|
+
"webcodecs",
|
|
13
|
+
"player",
|
|
14
|
+
"web-audio",
|
|
15
|
+
"canvas"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"homepage": "https://prefix-tree.github.io/cutcraft/",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/prefix-tree/cutcraft.git",
|
|
22
|
+
"directory": "packages/player"
|
|
23
|
+
},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/prefix-tree/cutcraft/issues"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": "./dist/index.mjs",
|
|
30
|
+
"./engine": "./dist/engine.mjs",
|
|
31
|
+
"./fonts.css": "./fonts.css"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"fonts.css"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"react": "^19.0.0",
|
|
42
|
+
"react-dom": "^19.0.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@fontsource/dm-sans": "^5.3.0",
|
|
46
|
+
"@fontsource/inter": "^5.3.0",
|
|
47
|
+
"@fontsource/jetbrains-mono": "^5.3.0",
|
|
48
|
+
"@fontsource/playfair-display": "^5.3.0",
|
|
49
|
+
"@fontsource/space-grotesk": "^5.3.0",
|
|
50
|
+
"mediabunny": "1.62.0",
|
|
51
|
+
"saxes": "^6.0.0",
|
|
52
|
+
"zod": "^4.6.7",
|
|
53
|
+
"@cutcraft/graphics": "0.2.0",
|
|
54
|
+
"@cutcraft/kit": "0.2.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@playwright/test": "1.56.1",
|
|
58
|
+
"@types/node": "^22.0.0",
|
|
59
|
+
"@types/react": "^19.3.0",
|
|
60
|
+
"@types/react-dom": "^19.3.0",
|
|
61
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
62
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
63
|
+
"jsdom": "^30.1.3",
|
|
64
|
+
"react": "^19.3.1",
|
|
65
|
+
"react-dom": "^19.3.1",
|
|
66
|
+
"typescript": "^5.9.3",
|
|
67
|
+
"vite": "^8.3.5",
|
|
68
|
+
"vitest": "^5.0.5"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "tsdown src/index.ts src/engine.ts --dts",
|
|
72
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
73
|
+
"test": "vitest run",
|
|
74
|
+
"test:watch": "vitest",
|
|
75
|
+
"test:e2e": "playwright test"
|
|
76
|
+
}
|
|
6
77
|
}
|