@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.
@@ -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.0",
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": "workspace:^0.14.0"
27
- },
28
- "devDependencies": {
29
- "@types/node": "^20.11.24",
30
- "@types/react": "^18.2.55",
31
- "@types/react-dom": "^18.2.19",
32
- "rimraf": "^5.0.5",
33
- "typedoc": "^0.25.8",
34
- "typedoc-plugin-markdown": "^3.17.1",
35
- "typescript": "^5.4.2",
36
- "vite": "^5.1.4",
37
- "vite-plugin-dts": "^3.7.3",
38
- "autoprefixer": "^10.4.17"
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
+ }