@pixerate/editor-react 0.104.0 → 0.106.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.
@@ -0,0 +1,8 @@
1
+ import { TranscriptVideoController, type TranscriptVideoOptions, type TranscriptVideoState, type VideoEditorController } from '@pixerate/editor/video-editor';
2
+ /**
3
+ * A `TranscriptVideoController` over a video editor for the component's lifetime (rebuilt when the
4
+ * editor, track or `planFirst` change; destroyed on unmount).
5
+ */
6
+ export declare function useTranscriptVideoController(controller: VideoEditorController, options?: TranscriptVideoOptions): TranscriptVideoController;
7
+ /** The transcript controller's state (re-renders when the words, the word under the playhead or the selection change). */
8
+ export declare function useTranscriptVideoState(transcript: TranscriptVideoController): TranscriptVideoState;
@@ -0,0 +1,8 @@
1
+ import { TranscriptVideoController, type TranscriptVideoOptions, type TranscriptVideoState, type VideoEditorController } from '@pixerate/editor/video-editor';
2
+ /**
3
+ * A `TranscriptVideoController` over a video editor for the component's lifetime (rebuilt when the
4
+ * editor, track or `planFirst` change; destroyed on unmount).
5
+ */
6
+ export declare function useTranscriptVideoController(controller: VideoEditorController, options?: TranscriptVideoOptions): TranscriptVideoController;
7
+ /** The transcript controller's state (re-renders when the words, the word under the playhead or the selection change). */
8
+ export declare function useTranscriptVideoState(transcript: TranscriptVideoController): TranscriptVideoState;
@@ -1,4 +1,4 @@
1
- import { VideoEditorController, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions, type VideoProject } from '@pixerate/editor/video-editor';
1
+ import { VideoEditorController, type VideoDialogueToolProviderOptions, type VideoMusicToolProviderOptions, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions, type VideoProject } from '@pixerate/editor/video-editor';
2
2
  import type { EditorDocument } from '@pixerate/editor/persistence';
3
3
  import type { ToolRegistry } from '@pixerate/editor/tools';
4
4
  /** A `VideoEditorController` created once for the component's lifetime (destroyed on unmount). */
@@ -43,3 +43,14 @@ export declare function useVideoEditorTools(registry: ToolRegistry | null | unde
43
43
  * so and the write tools refuse.
44
44
  */
45
45
  export declare function useVideoEffectsTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEffectsToolProviderOptions): void;
46
+ /**
47
+ * Registers the talking-head cleanup tools (`find_video_disfluencies`, `plan_video_dialogue_cleanup`)
48
+ * in `registry` while mounted (skill `pixerate-talking-head-edit`).
49
+ */
50
+ export declare function useVideoDialogueTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoDialogueToolProviderOptions): void;
51
+ /**
52
+ * Registers the music and mix tools (`find_video_beats`, `plan_video_beat_snap`, `duck_video_music`,
53
+ * `measure_video_loudness`, `normalize_video_loudness`) in `registry` while mounted (skill
54
+ * `pixerate-bgm-alignment`).
55
+ */
56
+ export declare function useVideoMusicTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoMusicToolProviderOptions): void;
@@ -1,4 +1,4 @@
1
- import { VideoEditorController, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions, type VideoProject } from '@pixerate/editor/video-editor';
1
+ import { VideoEditorController, type VideoDialogueToolProviderOptions, type VideoMusicToolProviderOptions, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions, type VideoProject } from '@pixerate/editor/video-editor';
2
2
  import type { EditorDocument } from '@pixerate/editor/persistence';
3
3
  import type { ToolRegistry } from '@pixerate/editor/tools';
4
4
  /** A `VideoEditorController` created once for the component's lifetime (destroyed on unmount). */
@@ -43,3 +43,14 @@ export declare function useVideoEditorTools(registry: ToolRegistry | null | unde
43
43
  * so and the write tools refuse.
44
44
  */
45
45
  export declare function useVideoEffectsTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEffectsToolProviderOptions): void;
46
+ /**
47
+ * Registers the talking-head cleanup tools (`find_video_disfluencies`, `plan_video_dialogue_cleanup`)
48
+ * in `registry` while mounted (skill `pixerate-talking-head-edit`).
49
+ */
50
+ export declare function useVideoDialogueTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoDialogueToolProviderOptions): void;
51
+ /**
52
+ * Registers the music and mix tools (`find_video_beats`, `plan_video_beat_snap`, `duck_video_music`,
53
+ * `measure_video_loudness`, `normalize_video_loudness`) in `registry` while mounted (skill
54
+ * `pixerate-bgm-alignment`).
55
+ */
56
+ export declare function useVideoMusicTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoMusicToolProviderOptions): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-react",
3
- "version": "0.104.0",
3
+ "version": "0.106.0",
4
4
  "description": "React bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -245,7 +245,7 @@
245
245
  },
246
246
  "peerDependencies": {
247
247
  "@dagrejs/dagre": "^1.1.8",
248
- "@pixerate/editor": ">=0.155.0 <1.0.0-0",
248
+ "@pixerate/editor": ">=0.161.0 <1.0.0-0",
249
249
  "@tiptap/core": "^2.27.3",
250
250
  "@tiptap/pm": "^2.27.3",
251
251
  "@tiptap/react": "^2.27.3",
@@ -272,7 +272,7 @@
272
272
  "tsup": "^9.0.0",
273
273
  "typescript": "^5.7.3",
274
274
  "vitest": "^5.0.5",
275
- "@pixerate/editor": "0.155.0"
275
+ "@pixerate/editor": "0.161.0"
276
276
  },
277
277
  "scripts": {
278
278
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",