animot-presenter 0.5.13 → 0.5.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/types.d.ts CHANGED
@@ -435,6 +435,16 @@ export interface Slide {
435
435
  transition: TransitionConfig;
436
436
  duration: number;
437
437
  camera?: CameraViewport;
438
+ /** Speaker notes — never rendered onto the audience canvas. Kept on the
439
+ * type so JSON imports preserve them across edit cycles. */
440
+ notes?: string;
441
+ /** Per-slide voice-over track. Played when the slide is shown if the
442
+ * project has `settings.narrationEnabled` true. `src` is a base64 data
443
+ * URL; `duration` is the clip length in ms. */
444
+ narration?: {
445
+ src: string;
446
+ duration: number;
447
+ };
438
448
  }
439
449
  export interface ProjectSettings {
440
450
  defaultCanvasWidth: number;
@@ -446,6 +456,10 @@ export interface ProjectSettings {
446
456
  * 'transition' = smoothly morph from last slide to first.
447
457
  * Default: 'reset' */
448
458
  loopMode?: 'reset' | 'transition';
459
+ /** When true, per-slide narration is played. Consumers should also
460
+ * suppress autoplay when this is on so the viewer's first interaction
461
+ * unlocks the browser audio context. Default: false. */
462
+ narrationEnabled?: boolean;
449
463
  }
450
464
  /** Animot project JSON format */
451
465
  export interface AnimotProject {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "animot-presenter",
3
- "version": "0.5.13",
3
+ "version": "0.5.15",
4
4
  "description": "Embed animated presentations anywhere. Works with vanilla JS, React, Vue, Angular, Svelte, and any frontend framework. Morphing animations, code highlighting, charts, particles, and more.",
5
5
  "type": "module",
6
6
  "svelte": "./dist/index.js",