@shotstack/shotstack-studio 1.2.2 → 1.3.0

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 (30) hide show
  1. package/dist/core/entities/{player.d.ts → base/player.d.ts} +3 -3
  2. package/dist/core/entities/index.d.ts +14 -0
  3. package/dist/core/entities/{audio-player.d.ts → players/audio-player.d.ts} +4 -4
  4. package/dist/core/entities/{html-player.d.ts → players/html-player.d.ts} +4 -4
  5. package/dist/core/entities/{image-player.d.ts → players/image-player.d.ts} +4 -4
  6. package/dist/core/entities/{luma-player.d.ts → players/luma-player.d.ts} +4 -4
  7. package/dist/core/entities/{shape-player.d.ts → players/shape-player.d.ts} +4 -4
  8. package/dist/core/entities/players/text-player.d.ts +19 -0
  9. package/dist/core/entities/{video-player.d.ts → players/video-player.d.ts} +4 -4
  10. package/dist/core/entities/{edit.d.ts → system/edit.d.ts} +7 -7
  11. package/dist/core/entities/{inspector.d.ts → system/inspector.d.ts} +1 -1
  12. package/dist/core/entities/text/text-cursor.d.ts +47 -0
  13. package/dist/core/entities/text/text-editor.d.ts +43 -0
  14. package/dist/core/entities/text/text-input-handler.d.ts +54 -0
  15. package/dist/core/export/video-exporter.d.ts +1 -1
  16. package/dist/core/inputs/controls.d.ts +1 -1
  17. package/dist/core/schemas/asset.d.ts +6 -10
  18. package/dist/core/schemas/audio-asset.d.ts +6 -10
  19. package/dist/core/schemas/clip.d.ts +21 -35
  20. package/dist/core/schemas/edit.d.ts +42 -70
  21. package/dist/core/schemas/track.d.ts +21 -35
  22. package/dist/core/schemas/video-asset.d.ts +6 -10
  23. package/dist/core/shotstack-canvas.d.ts +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/shotstack-studio.es.js +2451 -2032
  26. package/dist/shotstack-studio.umd.js +8 -6
  27. package/package.json +1 -1
  28. package/readme.md +7 -6
  29. package/dist/core/entities/text-player.d.ts +0 -18
  30. /package/dist/core/entities/{entity.d.ts → base/entity.d.ts} +0 -0
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "cpuccino",
6
6
  "dazzatron"
7
7
  ],
8
- "version": "1.2.2",
8
+ "version": "1.3.0",
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",
package/readme.md CHANGED
@@ -16,6 +16,13 @@ Try Shotstack Studio in your preferred framework:
16
16
  [![Angular](https://img.shields.io/badge/Angular-StackBlitz-blue?style=for-the-badge&logo=angular)](https://stackblitz.com/edit/shotstack-studio-angular?file=src%2Fmain.ts)
17
17
  [![Next.js](https://img.shields.io/badge/Next.js-StackBlitz-blue?style=for-the-badge&logo=next.js)](https://stackblitz.com/edit/shotstack-studio-nextjs?file=app%2Fpage.tsx)
18
18
 
19
+ ## Features
20
+
21
+ - Create video compositions with multiple tracks and clips
22
+ - WYSIWYG text editing
23
+ - Use in conjunction with the [Shotstack Edit API](https://shotstack.io/docs/guide/getting-started/hello-world-using-curl/) to render video
24
+ - Export to video using browser-based FFmpeg
25
+
19
26
  ## Installation
20
27
 
21
28
  ```bash
@@ -68,12 +75,6 @@ Your HTML should include a container with the `data-shotstack-studio` attribute:
68
75
  <div data-shotstack-studio></div>
69
76
  ```
70
77
 
71
- ## Features
72
-
73
- - Create video compositions with multiple tracks and clips
74
- - Use in conjunction with the [Shotstack Edit API](https://shotstack.io/docs/guide/getting-started/hello-world-using-curl/) to render video
75
- - Export to video using browser-based FFmpeg
76
-
77
78
  ## Main Components
78
79
 
79
80
  ### Edit
@@ -1,18 +0,0 @@
1
- import { type Size } from "../layouts/geometry";
2
- import { type Clip } from "../schemas/clip";
3
- import type { Edit } from "./edit";
4
- import { Player } from "./player";
5
- /**
6
- * TODO: Add constants for text defaults
7
- */
8
- export declare class TextPlayer extends Player {
9
- private background;
10
- private text;
11
- constructor(timeline: Edit, clipConfiguration: Clip);
12
- load(): Promise<void>;
13
- update(deltaTime: number, elapsed: number): void;
14
- draw(): void;
15
- dispose(): void;
16
- getSize(): Size;
17
- protected getFitScale(): number;
18
- }