@twick/timeline 0.14.0 → 0.14.2
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/README.md +175 -175
- package/dist/core/addOns/animation.d.ts +5 -5
- package/dist/core/addOns/frame-effect.d.ts +3 -1
- package/dist/core/addOns/text-effect.d.ts +3 -4
- package/dist/core/editor/timeline.editor.d.ts +2 -0
- package/dist/core/elements/audio.element.d.ts +4 -0
- package/dist/core/elements/video.element.d.ts +4 -1
- package/dist/index-CXhwwSX--DHE9Xex3.js +14961 -0
- package/dist/index-CXhwwSX--DHE9Xex3.js.map +1 -0
- package/dist/index.js +19993 -190
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4953 -111
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/utils/timeline.utils.d.ts +1 -0
- package/package.json +41 -40
package/dist/types/index.d.ts
CHANGED
|
@@ -51,7 +51,6 @@ export type ObjectFit = "cover" | "contain" | "fill" | "none";
|
|
|
51
51
|
export type TextAlign = "left" | "center" | "right";
|
|
52
52
|
export type AudioProps = {
|
|
53
53
|
src: string;
|
|
54
|
-
play: boolean;
|
|
55
54
|
volume?: number;
|
|
56
55
|
loop?: boolean;
|
|
57
56
|
playbackRate?: number;
|
|
@@ -104,7 +103,6 @@ export type TextProps = {
|
|
|
104
103
|
};
|
|
105
104
|
export type VideoProps = {
|
|
106
105
|
src: string;
|
|
107
|
-
play: boolean;
|
|
108
106
|
playbackRate?: number;
|
|
109
107
|
time?: number;
|
|
110
108
|
mediaFilter?: string;
|
|
@@ -9,3 +9,4 @@ export declare const getCurrentElements: (currentTime: number, tracks: Track[])
|
|
|
9
9
|
export declare const canSplitElement: (element: TrackElement, currentTime: number) => boolean;
|
|
10
10
|
export declare const isElementId: (id: string) => boolean;
|
|
11
11
|
export declare const isTrackId: (id: string) => boolean;
|
|
12
|
+
export declare const extractVideoAudio: (tracks: Track[], duration: number) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@twick/timeline",
|
|
3
|
-
"version": "0.14.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"sideEffects": [
|
|
9
|
-
"**/*.css"
|
|
10
|
-
],
|
|
11
|
-
"license": "Apache-2.0",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "vite build",
|
|
20
|
-
"dev": "vite build --watch",
|
|
21
|
-
"lint": "eslint src/",
|
|
22
|
-
"clean": "rimraf .turbo node_modules dist",
|
|
23
|
-
"docs": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@twick/media-utils": "
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"@types/
|
|
31
|
-
"@types/react
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@twick/timeline",
|
|
3
|
+
"version": "0.14.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "vite build",
|
|
20
|
+
"dev": "vite build --watch",
|
|
21
|
+
"lint": "eslint src/",
|
|
22
|
+
"clean": "rimraf .turbo node_modules dist",
|
|
23
|
+
"docs": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@twick/media-utils": "0.14.2",
|
|
27
|
+
"posthog-js": "^1.258.5"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "^20.11.24",
|
|
31
|
+
"@types/react": "^18.2.55",
|
|
32
|
+
"@types/react-dom": "^18.2.19",
|
|
33
|
+
"autoprefixer": "^10.4.17",
|
|
34
|
+
"rimraf": "^5.0.5",
|
|
35
|
+
"typedoc": "^0.25.8",
|
|
36
|
+
"typedoc-plugin-markdown": "^3.17.1",
|
|
37
|
+
"typescript": "^5.4.2",
|
|
38
|
+
"vite": "^5.1.4",
|
|
39
|
+
"vite-plugin-dts": "^3.7.3"
|
|
40
|
+
}
|
|
41
|
+
}
|