@rendley/sdk 1.12.3 → 1.12.5

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.
Files changed (42) hide show
  1. package/README.md +2 -2
  2. package/dist/Engine.d.ts +18 -17
  3. package/dist/config/config.d.ts +1 -1
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +1 -1
  7. package/dist/libs/ffmpeg/classes.d.ts +13 -0
  8. package/dist/libs/ffmpeg/const.d.ts +14 -1
  9. package/dist/libs/ffmpeg/types.d.ts +48 -2
  10. package/dist/modules/clip/Clip.d.ts +8 -8
  11. package/dist/modules/clip/ClipStyle.d.ts +6 -6
  12. package/dist/modules/clip/clips/adjustment/AdjustmentClip.d.ts +2 -2
  13. package/dist/modules/clip/clips/audio/AudioClip.d.ts +6 -6
  14. package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
  15. package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +13 -12
  16. package/dist/modules/clip/clips/index.d.ts +2 -0
  17. package/dist/modules/clip/clips/lottie/LottieClip.d.ts +22 -22
  18. package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
  19. package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +13 -13
  20. package/dist/modules/clip/clips/svg/SvgClip.d.ts +119 -0
  21. package/dist/modules/clip/clips/text/TextClip.d.ts +7 -6
  22. package/dist/modules/clip/clips/text/TextStyle.d.ts +19 -19
  23. package/dist/modules/clip/clips/video/VideoClip.d.ts +9 -7
  24. package/dist/modules/effect/Effect.d.ts +3 -3
  25. package/dist/modules/ffmpeg/types/FFmpeg.types.d.ts +2 -0
  26. package/dist/modules/filter/Filter.d.ts +3 -3
  27. package/dist/modules/filter/MaskFilter.d.ts +1 -1
  28. package/dist/modules/font-registry/FontRegistry.d.ts +9 -5
  29. package/dist/modules/layer/Layer.d.ts +8 -6
  30. package/dist/modules/library/EffectData.d.ts +6 -6
  31. package/dist/modules/library/Library.d.ts +61 -56
  32. package/dist/modules/library/MediaData.d.ts +1 -0
  33. package/dist/modules/library/Subtitles.d.ts +7 -7
  34. package/dist/modules/library/TransitionData.d.ts +6 -6
  35. package/dist/modules/subtitles/SubtitleManager.d.ts +21 -21
  36. package/dist/modules/timeline/Timeline.d.ts +14 -7
  37. package/dist/modules/transition/Transition.d.ts +3 -3
  38. package/dist/modules/zip-archive/ZipArchive.d.ts +20 -0
  39. package/dist/modules/zip-archive/index.d.ts +1 -0
  40. package/dist/types/clip.types.d.ts +1 -0
  41. package/dist/utils/browser/isFirefox.d.ts +1 -0
  42. package/package.json +2 -2
package/README.md CHANGED
@@ -24,8 +24,8 @@ The package includes type definitions, so you don't need to worry about setting
24
24
 
25
25
  ## Getting Started
26
26
 
27
- Check out the [documentation](https://docs.rendley.com) to learn more about how to get started creating compositions and building your own video editing software.
27
+ Check out the [documentation](https://docs.rendleysdk.com) to learn more about how to get started creating compositions and building your own video editing software.
28
28
 
29
29
  ## Templates
30
30
 
31
- To further simplify the process, we have [pre-built interfaces](https://docs.rendley.com/video-editor) that allow you to embed our video editing capabilities onto your website with just a few lines of code.
31
+ To further simplify the process, we have [pre-built interfaces](https://docs.rendleysdk.com/video-editor-ui/overview.html) that allow you to embed our video editing capabilities onto your website with just a few lines of code.
package/dist/Engine.d.ts CHANGED
@@ -123,7 +123,7 @@ export declare class Engine {
123
123
  callStaticCustomClipMethod(typeEnum: string, methodName: string, ...args: any[]): any;
124
124
  createCustomClipInstance<T extends CustomClip = CustomClip>(typeEnum: string, ...args: any[]): T;
125
125
  hasCustomClipType(typeEnum: string): boolean;
126
- reset(): void;
126
+ reset(): Promise<void>;
127
127
  isReady(): boolean;
128
128
  isSafeToSerialize(): boolean;
129
129
  serialize(): {
@@ -134,13 +134,14 @@ export declare class Engine {
134
134
  };
135
135
  timeline: {
136
136
  startTime: number;
137
+ volume: number;
137
138
  fps: number;
138
139
  layers: {
139
140
  id: string;
140
141
  transitions: {
142
+ properties: [string, any][];
141
143
  id: string;
142
144
  provider: string;
143
- properties: [string, any][];
144
145
  startClipId: string;
145
146
  endClipId: string;
146
147
  inDuration: number;
@@ -161,20 +162,12 @@ export declare class Engine {
161
162
  language: string;
162
163
  textBlocks: {
163
164
  text: string;
164
- duration: number;
165
165
  time: number;
166
+ duration: number;
166
167
  }[];
167
168
  }[];
168
- filters: {
169
- name: string;
170
- id: string;
171
- provider: string;
172
- lutUrl: string;
173
- }[];
174
- effects: {
169
+ transitions: {
175
170
  name: string;
176
- id: string;
177
- provider: string;
178
171
  properties: {
179
172
  type: import(".").PropertyDescriptionTypeEnum;
180
173
  name: string;
@@ -182,7 +175,9 @@ export declare class Engine {
182
175
  label?: string | undefined;
183
176
  description?: string | undefined;
184
177
  }[];
185
- fragmentSrc: string;
178
+ id: string;
179
+ provider: string;
180
+ transitionSrc: string;
186
181
  inputTextures?: {
187
182
  name: string;
188
183
  url: string;
@@ -191,10 +186,14 @@ export declare class Engine {
191
186
  mipmap?: import(".").InputTextureMipmapMode | undefined;
192
187
  }[] | undefined;
193
188
  }[];
194
- transitions: {
189
+ filters: {
195
190
  name: string;
196
191
  id: string;
197
192
  provider: string;
193
+ lutUrl: string;
194
+ }[];
195
+ effects: {
196
+ name: string;
198
197
  properties: {
199
198
  type: import(".").PropertyDescriptionTypeEnum;
200
199
  name: string;
@@ -202,7 +201,9 @@ export declare class Engine {
202
201
  label?: string | undefined;
203
202
  description?: string | undefined;
204
203
  }[];
205
- transitionSrc: string;
204
+ id: string;
205
+ provider: string;
206
+ fragmentSrc: string;
206
207
  inputTextures?: {
207
208
  name: string;
208
209
  url: string;
@@ -233,6 +234,7 @@ export declare class Engine {
233
234
  highlightAnimationSpeed: number;
234
235
  mainTextStyle: {
235
236
  color: string;
237
+ padding: number;
236
238
  fontSize: number;
237
239
  fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
238
240
  fontFamily: string;
@@ -241,7 +243,6 @@ export declare class Engine {
241
243
  strokeColor: string;
242
244
  strokeThickness: number;
243
245
  wordWrapWidth: number;
244
- padding: number;
245
246
  wordWrap: boolean;
246
247
  backgroundPadding: number;
247
248
  backgroundCornerRadius: number;
@@ -249,6 +250,7 @@ export declare class Engine {
249
250
  };
250
251
  highlightTextStyle: {
251
252
  color: string;
253
+ padding: number;
252
254
  fontSize: number;
253
255
  fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
254
256
  fontFamily: string;
@@ -256,7 +258,6 @@ export declare class Engine {
256
258
  backgroundColor: string;
257
259
  strokeColor: string;
258
260
  strokeThickness: number;
259
- padding: number;
260
261
  backgroundPadding: number;
261
262
  backgroundCornerRadius: number;
262
263
  };
@@ -3,6 +3,6 @@ export declare const BACKGROUND_SPRITE_NAME = "CANVAS_BACKGROUND_SPRITE";
3
3
  export declare const STAGE_CONTAINER_NAME = "STAGE_CONTAINER";
4
4
  export declare const RENDLEY_CDN: any;
5
5
  export declare const FFMPEG_CDN: string;
6
- export declare const RENDLEY_API_BASE_URL = "https://api.rendley.com/sdk/v1";
6
+ export declare const RENDLEY_API_BASE_URL = "https://api.rendleysdk.com/sdk/v1";
7
7
  export declare const LICENSE_LOCAL_STORAGE_KEY = "license";
8
8
  export declare const getLicenseEndpoint: (licenseName: string, isSublicense?: boolean) => string;