@shotstack/shotstack-studio 1.6.0 → 1.7.1
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 +13442 -2554
- package/dist/schema/assets/fonts/Arapey-Regular.ttf +0 -0
- package/dist/schema/assets/fonts/ClearSans-Regular.ttf +0 -0
- package/dist/schema/assets/fonts/DidactGothic-Regular.ttf +0 -0
- package/dist/schema/assets/fonts/Montserrat-ExtraBold.ttf +0 -0
- package/dist/schema/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/dist/schema/assets/fonts/MovLette.ttf +0 -0
- package/dist/schema/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/dist/schema/assets/fonts/PermanentMarker-Regular.ttf +0 -0
- package/dist/schema/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/dist/schema/assets/fonts/SueEllenFrancisco.ttf +0 -0
- package/dist/schema/assets/fonts/UniNeue-Bold.otf +0 -0
- package/dist/schema/assets/fonts/WorkSans-Light.ttf +0 -0
- package/dist/schema/assets/images/typescript.svg +1 -0
- package/dist/schema/hb.wasm +0 -0
- package/dist/schema/index.d.ts +16426 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.mjs +301 -0
- package/dist/shotstack-studio.es.js +46 -12955
- package/dist/shotstack-studio.umd.js +99 -27
- package/package.json +28 -3
- package/readme.md +4 -0
package/package.json
CHANGED
|
@@ -5,15 +5,26 @@
|
|
|
5
5
|
"cpuccino",
|
|
6
6
|
"dazzatron"
|
|
7
7
|
],
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.7.1",
|
|
9
9
|
"description": "A video editing library for creating and editing videos with Shotstack",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "dist/shotstack-studio.umd.js",
|
|
12
12
|
"module": "dist/shotstack-studio.es.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/shotstack-studio.es.js",
|
|
17
|
+
"require": "./dist/shotstack-studio.umd.js"
|
|
18
|
+
},
|
|
19
|
+
"./schema": {
|
|
20
|
+
"import": "./dist/schema/index.mjs",
|
|
21
|
+
"require": "./dist/schema/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
14
24
|
"files": [
|
|
15
25
|
"dist/shotstack-studio.umd.js",
|
|
16
26
|
"dist/shotstack-studio.es.js",
|
|
27
|
+
"dist/schema/**",
|
|
17
28
|
"dist/**/*.d.ts"
|
|
18
29
|
],
|
|
19
30
|
"keywords": [
|
|
@@ -28,11 +39,22 @@
|
|
|
28
39
|
"url": "https://github.com/shotstack/shotstack-studio-sdk"
|
|
29
40
|
},
|
|
30
41
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
42
|
+
"dev": "vite",
|
|
43
|
+
"start": "npm run build && vite preview",
|
|
44
|
+
"build": "npm run build:main && npm run build:schema",
|
|
45
|
+
"build:main": "vite build",
|
|
46
|
+
"build:schema": "vite build --config vite.config.schema.ts",
|
|
47
|
+
"test": "npm run build && jest",
|
|
48
|
+
"test:watch": "jest --watch",
|
|
49
|
+
"lint": "eslint --ignore-path .gitignore .",
|
|
50
|
+
"lint:fix": "eslint --ignore-path .gitignore --fix .",
|
|
51
|
+
"format": "prettier --ignore-path .gitignore --write .",
|
|
52
|
+
"prepublishOnly": "npm run build && npm run test"
|
|
33
53
|
},
|
|
34
54
|
"devDependencies": {
|
|
55
|
+
"@jest/globals": "^30.2.0",
|
|
35
56
|
"@types/howler": "^2.2.12",
|
|
57
|
+
"@types/jest": "^30.0.0",
|
|
36
58
|
"@types/node": "^22.9.0",
|
|
37
59
|
"@types/opentype.js": "^1.3.8",
|
|
38
60
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
@@ -42,11 +64,14 @@
|
|
|
42
64
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
43
65
|
"eslint-config-prettier": "^9.1.0",
|
|
44
66
|
"eslint-plugin-import": "^2.31.0",
|
|
67
|
+
"jest": "^30.2.0",
|
|
68
|
+
"ts-jest": "^29.4.5",
|
|
45
69
|
"typescript": "^5.6.2",
|
|
46
70
|
"vite": "^5.4.10",
|
|
47
71
|
"vite-plugin-dts": "^4.5.4"
|
|
48
72
|
},
|
|
49
73
|
"dependencies": {
|
|
74
|
+
"@shotstack/shotstack-canvas": "^1.1.2",
|
|
50
75
|
"fast-deep-equal": "^3.1.3",
|
|
51
76
|
"howler": "^2.2.4",
|
|
52
77
|
"mediabunny": "^1.11.2",
|
package/readme.md
CHANGED
|
@@ -78,6 +78,10 @@ Your HTML should include containers for both the canvas and timeline:
|
|
|
78
78
|
The Edit class represents a video project with its timeline, clips, and properties.
|
|
79
79
|
|
|
80
80
|
```typescript
|
|
81
|
+
import { Edit } from "@shotstack/shotstack-studio";
|
|
82
|
+
|
|
83
|
+
// For schema validation only (e.g., in tests):
|
|
84
|
+
import { EditSchema, ClipSchema } from "@shotstack/shotstack-studio/schema";
|
|
81
85
|
// Create an edit with dimensions and background
|
|
82
86
|
const edit = new Edit({ width: 1280, height: 720 }, "#000000");
|
|
83
87
|
await edit.load();
|