@rendley/sdk 1.9.2 → 1.9.4
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 +48 -48
- package/README.md +40 -40
- package/dist/Engine.d.ts +12 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/types.d.ts +2 -0
- package/dist/modules/clip/Clip.d.ts +60 -60
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +5 -5
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +4 -4
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +5 -5
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +5 -5
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +5 -5
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +8 -8
- package/dist/modules/clip/clips/text/TextClip.d.ts +5 -5
- package/dist/modules/clip/clips/text/TextStyle.d.ts +8 -8
- package/dist/modules/clip/clips/video/VideoClip.d.ts +5 -5
- package/dist/modules/display/Display.d.ts +3 -3
- package/dist/modules/ffmpeg/FFmpeg.d.ts +4 -0
- package/dist/modules/layer/Layer.d.ts +5 -5
- package/dist/modules/library/Library.d.ts +6 -5
- package/dist/modules/library/MediaData.d.ts +7 -4
- package/dist/modules/library/types/MediaData.types.d.ts +1 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +1 -1
- package/dist/modules/timeline/Timeline.d.ts +7 -7
- package/dist/modules/transcode/ITranscodeProvider.d.ts +36 -0
- package/dist/modules/transcode/index.d.ts +1 -1
- package/dist/modules/transition/Transition.d.ts +3 -3
- package/dist/utils/animation/animation.d.ts +12 -12
- package/package.json +81 -81
- package/dist/modules/transcode/TranscodeProviderBase.d.ts +0 -32
|
@@ -12,8 +12,8 @@ export declare const TransitionSchema: z.ZodObject<{
|
|
|
12
12
|
type: z.ZodLiteral<"transition">;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
name: string;
|
|
15
|
-
type: "transition";
|
|
16
15
|
id: string;
|
|
16
|
+
type: "transition";
|
|
17
17
|
startClipId: string;
|
|
18
18
|
endClipId: string;
|
|
19
19
|
inDuration: number;
|
|
@@ -21,8 +21,8 @@ export declare const TransitionSchema: z.ZodObject<{
|
|
|
21
21
|
transitionSrc: string;
|
|
22
22
|
}, {
|
|
23
23
|
name: string;
|
|
24
|
-
type: "transition";
|
|
25
24
|
id: string;
|
|
25
|
+
type: "transition";
|
|
26
26
|
startClipId: string;
|
|
27
27
|
endClipId: string;
|
|
28
28
|
inDuration: number;
|
|
@@ -78,8 +78,8 @@ export declare class Transition {
|
|
|
78
78
|
update(transitionProgress: number): void;
|
|
79
79
|
serialize(): {
|
|
80
80
|
name: string;
|
|
81
|
-
type: "transition";
|
|
82
81
|
id: string;
|
|
82
|
+
type: "transition";
|
|
83
83
|
startClipId: string;
|
|
84
84
|
endClipId: string;
|
|
85
85
|
inDuration: number;
|
|
@@ -74,14 +74,14 @@ export declare const KeyframeSchema: z.ZodObject<{
|
|
|
74
74
|
space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
|
|
75
75
|
relativeProperty: z.ZodOptional<z.ZodString>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
time: number;
|
|
78
77
|
value: string | number;
|
|
78
|
+
time: number;
|
|
79
79
|
easing: EasingEnum;
|
|
80
80
|
space: AnimationSpaceEnum;
|
|
81
81
|
relativeProperty?: string | undefined;
|
|
82
82
|
}, {
|
|
83
|
-
time: number;
|
|
84
83
|
value: string | number;
|
|
84
|
+
time: number;
|
|
85
85
|
easing?: EasingEnum | undefined;
|
|
86
86
|
space?: AnimationSpaceEnum | undefined;
|
|
87
87
|
relativeProperty?: string | undefined;
|
|
@@ -97,14 +97,14 @@ export declare const PropertyAnimationSchema: z.ZodObject<{
|
|
|
97
97
|
space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
|
|
98
98
|
relativeProperty: z.ZodOptional<z.ZodString>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
time: number;
|
|
101
100
|
value: string | number;
|
|
101
|
+
time: number;
|
|
102
102
|
easing: EasingEnum;
|
|
103
103
|
space: AnimationSpaceEnum;
|
|
104
104
|
relativeProperty?: string | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
time: number;
|
|
107
106
|
value: string | number;
|
|
107
|
+
time: number;
|
|
108
108
|
easing?: EasingEnum | undefined;
|
|
109
109
|
space?: AnimationSpaceEnum | undefined;
|
|
110
110
|
relativeProperty?: string | undefined;
|
|
@@ -114,8 +114,8 @@ export declare const PropertyAnimationSchema: z.ZodObject<{
|
|
|
114
114
|
outOutOfRange: OutOfRangeEnum;
|
|
115
115
|
property: string;
|
|
116
116
|
keyframes: {
|
|
117
|
-
time: number;
|
|
118
117
|
value: string | number;
|
|
118
|
+
time: number;
|
|
119
119
|
easing: EasingEnum;
|
|
120
120
|
space: AnimationSpaceEnum;
|
|
121
121
|
relativeProperty?: string | undefined;
|
|
@@ -123,8 +123,8 @@ export declare const PropertyAnimationSchema: z.ZodObject<{
|
|
|
123
123
|
}, {
|
|
124
124
|
property: string;
|
|
125
125
|
keyframes: {
|
|
126
|
-
time: number;
|
|
127
126
|
value: string | number;
|
|
127
|
+
time: number;
|
|
128
128
|
easing?: EasingEnum | undefined;
|
|
129
129
|
space?: AnimationSpaceEnum | undefined;
|
|
130
130
|
relativeProperty?: string | undefined;
|
|
@@ -150,14 +150,14 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
150
150
|
space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
|
|
151
151
|
relativeProperty: z.ZodOptional<z.ZodString>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
time: number;
|
|
154
153
|
value: string | number;
|
|
154
|
+
time: number;
|
|
155
155
|
easing: EasingEnum;
|
|
156
156
|
space: AnimationSpaceEnum;
|
|
157
157
|
relativeProperty?: string | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
time: number;
|
|
160
159
|
value: string | number;
|
|
160
|
+
time: number;
|
|
161
161
|
easing?: EasingEnum | undefined;
|
|
162
162
|
space?: AnimationSpaceEnum | undefined;
|
|
163
163
|
relativeProperty?: string | undefined;
|
|
@@ -167,8 +167,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
167
167
|
outOutOfRange: OutOfRangeEnum;
|
|
168
168
|
property: string;
|
|
169
169
|
keyframes: {
|
|
170
|
-
time: number;
|
|
171
170
|
value: string | number;
|
|
171
|
+
time: number;
|
|
172
172
|
easing: EasingEnum;
|
|
173
173
|
space: AnimationSpaceEnum;
|
|
174
174
|
relativeProperty?: string | undefined;
|
|
@@ -176,8 +176,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
176
176
|
}, {
|
|
177
177
|
property: string;
|
|
178
178
|
keyframes: {
|
|
179
|
-
time: number;
|
|
180
179
|
value: string | number;
|
|
180
|
+
time: number;
|
|
181
181
|
easing?: EasingEnum | undefined;
|
|
182
182
|
space?: AnimationSpaceEnum | undefined;
|
|
183
183
|
relativeProperty?: string | undefined;
|
|
@@ -194,8 +194,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
194
194
|
outOutOfRange: OutOfRangeEnum;
|
|
195
195
|
property: string;
|
|
196
196
|
keyframes: {
|
|
197
|
-
time: number;
|
|
198
197
|
value: string | number;
|
|
198
|
+
time: number;
|
|
199
199
|
easing: EasingEnum;
|
|
200
200
|
space: AnimationSpaceEnum;
|
|
201
201
|
relativeProperty?: string | undefined;
|
|
@@ -209,8 +209,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
209
209
|
propertyAnimations: {
|
|
210
210
|
property: string;
|
|
211
211
|
keyframes: {
|
|
212
|
-
time: number;
|
|
213
212
|
value: string | number;
|
|
213
|
+
time: number;
|
|
214
214
|
easing?: EasingEnum | undefined;
|
|
215
215
|
space?: AnimationSpaceEnum | undefined;
|
|
216
216
|
relativeProperty?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rendley/sdk",
|
|
3
|
-
"version": "1.9.
|
|
4
|
-
"license": "LICENSE",
|
|
5
|
-
"author": "Onix Technologies",
|
|
6
|
-
"homepage": "https://rendley.com",
|
|
7
|
-
"description": "A Video Editing SDK that works completely in the browser.",
|
|
8
|
-
"type": "module",
|
|
9
|
-
"keywords": [
|
|
10
|
-
"video editing sdk",
|
|
11
|
-
"javascript video sdk",
|
|
12
|
-
"typescript video sdk",
|
|
13
|
-
"video api",
|
|
14
|
-
"video processing",
|
|
15
|
-
"ffmpeg",
|
|
16
|
-
"video",
|
|
17
|
-
"web codecs",
|
|
18
|
-
"video editor"
|
|
19
|
-
],
|
|
20
|
-
"main": "./dist/index.cjs",
|
|
21
|
-
"module": "./dist/index.js",
|
|
22
|
-
"typings": "./dist/index.d.ts",
|
|
23
|
-
"files": [
|
|
24
|
-
"dist"
|
|
25
|
-
],
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"registry": "https://registry.npmjs.org/",
|
|
28
|
-
"access": "public"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build:docs": "typedoc",
|
|
32
|
-
"build": "tsc && vite build --mode development",
|
|
33
|
-
"build:watch": "tsc && vite build --watch --mode development",
|
|
34
|
-
"build:production": "tsc && vite build --mode production && npm run obfuscate",
|
|
35
|
-
"obfuscate": "node ./plugins/obfuscate.js",
|
|
36
|
-
"test": "jest",
|
|
37
|
-
"lint": "eslint --ext .ts,.tsx src --fix",
|
|
38
|
-
"format": "prettier --write 'src/**/*.{ts,tsx}'",
|
|
39
|
-
"patch": "patch-package"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.23.7",
|
|
43
|
-
"@babel/preset-env": "7.23.7",
|
|
44
|
-
"@babel/preset-typescript": "7.23.3",
|
|
45
|
-
"@types/crypto-js": "4.2.2",
|
|
46
|
-
"@types/emscripten": "1.39.10",
|
|
47
|
-
"@types/eventemitter3": "2.0.2",
|
|
48
|
-
"@types/gradient-parser": "0.1.5",
|
|
49
|
-
"@types/jest": "29.5.11",
|
|
50
|
-
"@types/node": "20.10.6",
|
|
51
|
-
"@types/uuid": "9.0.8",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "6.17.0",
|
|
53
|
-
"@typescript-eslint/parser": "6.17.0",
|
|
54
|
-
"babel-jest": "29.7.0",
|
|
55
|
-
"eslint": "8.56.0",
|
|
56
|
-
"eslint-plugin-import": "2.29.1",
|
|
57
|
-
"javascript-obfuscator": "4.1.0",
|
|
58
|
-
"jest": "29.7.0",
|
|
59
|
-
"patch-package": "8.0.0",
|
|
60
|
-
"postinstall-postinstall": "2.1.0",
|
|
61
|
-
"prettier": "3.1.1",
|
|
62
|
-
"ts-jest": "29.1.1",
|
|
63
|
-
"typedoc": "0.27.2",
|
|
64
|
-
"typedoc-plugin-markdown": "4.3.1",
|
|
65
|
-
"typescript": "5.3.3",
|
|
66
|
-
"vite": "^5.4.9",
|
|
67
|
-
"vite-plugin-dts": "3.7.2"
|
|
68
|
-
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"@pixi/gif": "2.1.1",
|
|
71
|
-
"@tweenjs/tween.js": "23.1.2",
|
|
72
|
-
"bodymovin": "4.13.0",
|
|
73
|
-
"crypto-js": "4.2.0",
|
|
74
|
-
"eventemitter3": "5.0.1",
|
|
75
|
-
"gradient-parser": "1.0.2",
|
|
76
|
-
"lottie-web": "5.12.2",
|
|
77
|
-
"pixi.js": "7.4.0",
|
|
78
|
-
"uuid": "9.0.1",
|
|
79
|
-
"zod": "3.22.4"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rendley/sdk",
|
|
3
|
+
"version": "1.9.4",
|
|
4
|
+
"license": "LICENSE",
|
|
5
|
+
"author": "Onix Technologies",
|
|
6
|
+
"homepage": "https://rendley.com",
|
|
7
|
+
"description": "A Video Editing SDK that works completely in the browser.",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"video editing sdk",
|
|
11
|
+
"javascript video sdk",
|
|
12
|
+
"typescript video sdk",
|
|
13
|
+
"video api",
|
|
14
|
+
"video processing",
|
|
15
|
+
"ffmpeg",
|
|
16
|
+
"video",
|
|
17
|
+
"web codecs",
|
|
18
|
+
"video editor"
|
|
19
|
+
],
|
|
20
|
+
"main": "./dist/index.cjs",
|
|
21
|
+
"module": "./dist/index.js",
|
|
22
|
+
"typings": "./dist/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"registry": "https://registry.npmjs.org/",
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build:docs": "typedoc",
|
|
32
|
+
"build": "tsc && vite build --mode development",
|
|
33
|
+
"build:watch": "tsc && vite build --watch --mode development",
|
|
34
|
+
"build:production": "tsc && vite build --mode production && npm run obfuscate",
|
|
35
|
+
"obfuscate": "node ./plugins/obfuscate.js",
|
|
36
|
+
"test": "jest",
|
|
37
|
+
"lint": "eslint --ext .ts,.tsx src --fix",
|
|
38
|
+
"format": "prettier --write 'src/**/*.{ts,tsx}'",
|
|
39
|
+
"patch": "patch-package"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "7.23.7",
|
|
43
|
+
"@babel/preset-env": "7.23.7",
|
|
44
|
+
"@babel/preset-typescript": "7.23.3",
|
|
45
|
+
"@types/crypto-js": "4.2.2",
|
|
46
|
+
"@types/emscripten": "1.39.10",
|
|
47
|
+
"@types/eventemitter3": "2.0.2",
|
|
48
|
+
"@types/gradient-parser": "0.1.5",
|
|
49
|
+
"@types/jest": "29.5.11",
|
|
50
|
+
"@types/node": "20.10.6",
|
|
51
|
+
"@types/uuid": "9.0.8",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "6.17.0",
|
|
53
|
+
"@typescript-eslint/parser": "6.17.0",
|
|
54
|
+
"babel-jest": "29.7.0",
|
|
55
|
+
"eslint": "8.56.0",
|
|
56
|
+
"eslint-plugin-import": "2.29.1",
|
|
57
|
+
"javascript-obfuscator": "4.1.0",
|
|
58
|
+
"jest": "29.7.0",
|
|
59
|
+
"patch-package": "8.0.0",
|
|
60
|
+
"postinstall-postinstall": "2.1.0",
|
|
61
|
+
"prettier": "3.1.1",
|
|
62
|
+
"ts-jest": "29.1.1",
|
|
63
|
+
"typedoc": "0.27.2",
|
|
64
|
+
"typedoc-plugin-markdown": "4.3.1",
|
|
65
|
+
"typescript": "5.3.3",
|
|
66
|
+
"vite": "^5.4.9",
|
|
67
|
+
"vite-plugin-dts": "3.7.2"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@pixi/gif": "2.1.1",
|
|
71
|
+
"@tweenjs/tween.js": "23.1.2",
|
|
72
|
+
"bodymovin": "4.13.0",
|
|
73
|
+
"crypto-js": "4.2.0",
|
|
74
|
+
"eventemitter3": "5.0.1",
|
|
75
|
+
"gradient-parser": "1.0.2",
|
|
76
|
+
"lottie-web": "5.12.2",
|
|
77
|
+
"pixi.js": "7.4.0",
|
|
78
|
+
"uuid": "9.0.1",
|
|
79
|
+
"zod": "3.22.4"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
|
|
2
|
-
export interface MediaMetadata {
|
|
3
|
-
mediaInfo?: MediaInfo;
|
|
4
|
-
mimeType?: string;
|
|
5
|
-
url?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface TranscodeResult {
|
|
8
|
-
source: Uint8Array | URL;
|
|
9
|
-
mimeType?: string;
|
|
10
|
-
extension?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SupportType {
|
|
13
|
-
mimeType: string;
|
|
14
|
-
hasAlpha: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface ProgressInfo {
|
|
17
|
-
state: string;
|
|
18
|
-
progress: number;
|
|
19
|
-
}
|
|
20
|
-
export declare enum ControlState {
|
|
21
|
-
RUN = "RUN",
|
|
22
|
-
CANCEL = "CANCEL"
|
|
23
|
-
}
|
|
24
|
-
export interface Control {
|
|
25
|
-
state: ControlState;
|
|
26
|
-
isRead: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare abstract class TranscodeProviderBase {
|
|
29
|
-
abstract supportsOutput(outputType: SupportType): boolean;
|
|
30
|
-
abstract supportsURLs(): boolean;
|
|
31
|
-
abstract transcode(source: Uint8Array | URL, mediaMetadata: MediaMetadata, outputType: SupportType, control: Control, progressCallback?: (progressInfo: ProgressInfo) => void): Promise<TranscodeResult>;
|
|
32
|
-
}
|