@bendyline/squisq-video 2.3.13 → 2.3.15

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MediaScheduleOptions, Doc, Theme, VideoPresentation, VideoPipSize, VideoPipShape, VideoPipPosition, ViewportPreset } from '@bendyline/squisq/schemas';
1
+ import { MediaScheduleOptions, Doc, Theme, MotionSpec, VideoPresentation, VideoPipSize, VideoPipShape, VideoPipPosition, ViewportPreset } from '@bendyline/squisq/schemas';
2
2
  export { fetchFile } from '@ffmpeg/util';
3
3
 
4
4
  /**
@@ -263,6 +263,8 @@ interface RenderHtmlOptions {
263
263
  captionStyle?: 'standard' | 'social';
264
264
  /** Theme override for the capture player. Omitted values resolve from the Doc. */
265
265
  theme?: Theme;
266
+ /** Motion profile override. Omitted values resolve from the Doc, then the theme. */
267
+ motion?: MotionSpec | null;
266
268
  /** Player-level video placement override. Omitted values resolve from Doc frontmatter. */
267
269
  videoPresentation?: VideoPresentation;
268
270
  /** Picture-in-picture size override. Omitted values resolve from Doc frontmatter. */
package/dist/index.js CHANGED
@@ -196,6 +196,7 @@ function generateRenderHtml(doc, options) {
196
196
  height = 1080,
197
197
  captionStyle,
198
198
  theme,
199
+ motion,
199
200
  videoPresentation,
200
201
  pipSize,
201
202
  pipShape,
@@ -229,6 +230,7 @@ function generateRenderHtml(doc, options) {
229
230
  ` animationsEnabled: ${JSON.stringify(animationsEnabled)}`,
230
231
  captionStyle ? ` captionStyle: ${JSON.stringify(captionStyle)}` : null,
231
232
  theme ? ` theme: ${escapeForScript(JSON.stringify(theme))}` : null,
233
+ motion != null ? ` motion: ${escapeForScript(JSON.stringify(motion))}` : null,
232
234
  videoPresentation ? ` videoPresentation: ${JSON.stringify(videoPresentation)}` : null,
233
235
  pipSize ? ` pipSize: ${JSON.stringify(pipSize)}` : null,
234
236
  pipShape ? ` pipShape: ${JSON.stringify(pipShape)}` : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-video",
3
- "version": "2.3.13",
3
+ "version": "2.3.15",
4
4
  "description": "Cross-runtime video and animated-GIF helpers with browser-based ffmpeg.wasm encoding for Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -48,7 +48,7 @@
48
48
  "typecheck": "tsc --noEmit"
49
49
  },
50
50
  "dependencies": {
51
- "@bendyline/squisq": "2.11.9",
51
+ "@bendyline/squisq": "2.11.11",
52
52
  "@ffmpeg/ffmpeg": "0.12.15",
53
53
  "@ffmpeg/util": "0.12.2"
54
54
  },