@pixerate/editor-react 0.105.0 → 0.107.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 (45) hide show
  1. package/dist/animation-editor/index.cjs +2 -1
  2. package/dist/animation-editor/index.js +1 -1
  3. package/dist/canvas/index.cjs +2 -1
  4. package/dist/canvas/index.js +1 -1
  5. package/dist/{chunk-CEV4OEOY.js → chunk-6XI62THS.js} +1 -1
  6. package/dist/{chunk-Q7LAFHGP.js → chunk-ZQ6H2C7N.js} +2 -1
  7. package/dist/effects/EffectParameters.d.cts +4 -2
  8. package/dist/effects/EffectParameters.d.ts +4 -2
  9. package/dist/effects/index.cjs +2 -1
  10. package/dist/effects/index.js +1 -1
  11. package/dist/image-editor/index.cjs +2 -1
  12. package/dist/image-editor/index.js +2 -2
  13. package/dist/index.cjs +2 -1
  14. package/dist/index.js +2 -2
  15. package/dist/paint-editor/index.cjs +2 -1
  16. package/dist/paint-editor/index.js +1 -1
  17. package/dist/typography/FontPicker.d.cts +48 -0
  18. package/dist/typography/FontPicker.d.ts +48 -0
  19. package/dist/typography/TypographyControl.d.cts +11 -0
  20. package/dist/typography/TypographyControl.d.ts +11 -0
  21. package/dist/typography/index.cjs +328 -0
  22. package/dist/typography/index.d.cts +7 -0
  23. package/dist/typography/index.d.ts +7 -0
  24. package/dist/typography/index.js +299 -0
  25. package/dist/typography/useFontPicker.d.cts +17 -0
  26. package/dist/typography/useFontPicker.d.ts +17 -0
  27. package/dist/vector/index.cjs +2 -1
  28. package/dist/vector/index.js +1 -1
  29. package/dist/video-editor/EditPlanPreview.d.cts +16 -0
  30. package/dist/video-editor/EditPlanPreview.d.ts +16 -0
  31. package/dist/video-editor/TranscriptEditor.d.cts +20 -0
  32. package/dist/video-editor/TranscriptEditor.d.ts +20 -0
  33. package/dist/video-editor/VideoEditor.d.cts +7 -1
  34. package/dist/video-editor/VideoEditor.d.ts +7 -1
  35. package/dist/video-editor/VideoTransport.d.cts +2 -1
  36. package/dist/video-editor/VideoTransport.d.ts +2 -1
  37. package/dist/video-editor/index.cjs +1054 -260
  38. package/dist/video-editor/index.d.cts +3 -0
  39. package/dist/video-editor/index.d.ts +3 -0
  40. package/dist/video-editor/index.js +438 -70
  41. package/dist/video-editor/useTranscriptVideo.d.cts +8 -0
  42. package/dist/video-editor/useTranscriptVideo.d.ts +8 -0
  43. package/dist/video-editor/useVideoEditor.d.cts +12 -1
  44. package/dist/video-editor/useVideoEditor.d.ts +12 -1
  45. package/package.json +16 -3
@@ -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.105.0",
3
+ "version": "0.107.0",
4
4
  "description": "React bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -174,6 +174,16 @@
174
174
  "default": "./dist/color/index.cjs"
175
175
  }
176
176
  },
177
+ "./typography": {
178
+ "import": {
179
+ "types": "./dist/typography/index.d.ts",
180
+ "default": "./dist/typography/index.js"
181
+ },
182
+ "require": {
183
+ "types": "./dist/typography/index.d.cts",
184
+ "default": "./dist/typography/index.cjs"
185
+ }
186
+ },
177
187
  "./gradient": {
178
188
  "import": {
179
189
  "types": "./dist/gradient/index.d.ts",
@@ -229,6 +239,9 @@
229
239
  "color": [
230
240
  "./dist/color/index.d.ts"
231
241
  ],
242
+ "typography": [
243
+ "./dist/typography/index.d.ts"
244
+ ],
232
245
  "gradient": [
233
246
  "./dist/gradient/index.d.ts"
234
247
  ]
@@ -245,7 +258,7 @@
245
258
  },
246
259
  "peerDependencies": {
247
260
  "@dagrejs/dagre": "^1.1.8",
248
- "@pixerate/editor": ">=0.157.0 <1.0.0-0",
261
+ "@pixerate/editor": ">=0.162.0 <1.0.0-0",
249
262
  "@tiptap/core": "^2.27.3",
250
263
  "@tiptap/pm": "^2.27.3",
251
264
  "@tiptap/react": "^2.27.3",
@@ -272,7 +285,7 @@
272
285
  "tsup": "^9.0.0",
273
286
  "typescript": "^5.7.3",
274
287
  "vitest": "^5.0.5",
275
- "@pixerate/editor": "0.157.0"
288
+ "@pixerate/editor": "0.162.0"
276
289
  },
277
290
  "scripts": {
278
291
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",