@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.
- package/dist/animation-editor/index.cjs +2 -1
- package/dist/animation-editor/index.js +1 -1
- package/dist/canvas/index.cjs +2 -1
- package/dist/canvas/index.js +1 -1
- package/dist/{chunk-CEV4OEOY.js → chunk-6XI62THS.js} +1 -1
- package/dist/{chunk-Q7LAFHGP.js → chunk-ZQ6H2C7N.js} +2 -1
- package/dist/effects/EffectParameters.d.cts +4 -2
- package/dist/effects/EffectParameters.d.ts +4 -2
- package/dist/effects/index.cjs +2 -1
- package/dist/effects/index.js +1 -1
- package/dist/image-editor/index.cjs +2 -1
- package/dist/image-editor/index.js +2 -2
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -2
- package/dist/paint-editor/index.cjs +2 -1
- package/dist/paint-editor/index.js +1 -1
- package/dist/typography/FontPicker.d.cts +48 -0
- package/dist/typography/FontPicker.d.ts +48 -0
- package/dist/typography/TypographyControl.d.cts +11 -0
- package/dist/typography/TypographyControl.d.ts +11 -0
- package/dist/typography/index.cjs +328 -0
- package/dist/typography/index.d.cts +7 -0
- package/dist/typography/index.d.ts +7 -0
- package/dist/typography/index.js +299 -0
- package/dist/typography/useFontPicker.d.cts +17 -0
- package/dist/typography/useFontPicker.d.ts +17 -0
- package/dist/vector/index.cjs +2 -1
- package/dist/vector/index.js +1 -1
- package/dist/video-editor/EditPlanPreview.d.cts +16 -0
- package/dist/video-editor/EditPlanPreview.d.ts +16 -0
- package/dist/video-editor/TranscriptEditor.d.cts +20 -0
- package/dist/video-editor/TranscriptEditor.d.ts +20 -0
- package/dist/video-editor/VideoEditor.d.cts +7 -1
- package/dist/video-editor/VideoEditor.d.ts +7 -1
- package/dist/video-editor/VideoTransport.d.cts +2 -1
- package/dist/video-editor/VideoTransport.d.ts +2 -1
- package/dist/video-editor/index.cjs +1054 -260
- package/dist/video-editor/index.d.cts +3 -0
- package/dist/video-editor/index.d.ts +3 -0
- package/dist/video-editor/index.js +438 -70
- package/dist/video-editor/useTranscriptVideo.d.cts +8 -0
- package/dist/video-editor/useTranscriptVideo.d.ts +8 -0
- package/dist/video-editor/useVideoEditor.d.cts +12 -1
- package/dist/video-editor/useVideoEditor.d.ts +12 -1
- package/package.json +16 -3
package/dist/vector/index.cjs
CHANGED
|
@@ -4669,10 +4669,11 @@ function EffectParameters({
|
|
|
4669
4669
|
onPreset,
|
|
4670
4670
|
onPresetName,
|
|
4671
4671
|
renderControlAddon,
|
|
4672
|
+
fonts,
|
|
4672
4673
|
disabled = false,
|
|
4673
4674
|
className = ""
|
|
4674
4675
|
}) {
|
|
4675
|
-
const fields = (0, import_react22.useMemo)(() => (0, import_effects3.effectParameterFields)(description), [description]);
|
|
4676
|
+
const fields = (0, import_react22.useMemo)(() => (0, import_effects3.effectParameterFields)(description, { fonts }), [description, fonts]);
|
|
4676
4677
|
const idBase = (0, import_react22.useId)();
|
|
4677
4678
|
const gesture = import_react22.default.useRef(null);
|
|
4678
4679
|
const count = import_react22.default.useRef(0);
|
package/dist/vector/index.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface EditPlanPreviewProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Allow accepting plans (default true; discarding is always allowed). */
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Proposed edit plans waiting for review (from agents, cleanup or text edits): each with its title,
|
|
11
|
+
* what it would do (length change, clips added, changed and removed, new problems), a strip of the
|
|
12
|
+
* timeline showing the stretches it cuts (click one to go there) and Accept / Discard. Accepting
|
|
13
|
+
* applies the plan as one undo step; a plan made before other edits is checked again first. Renders
|
|
14
|
+
* nothing when no plan is open.
|
|
15
|
+
*/
|
|
16
|
+
export declare function EditPlanPreview({ controller, editable, className }: EditPlanPreviewProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface EditPlanPreviewProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Allow accepting plans (default true; discarding is always allowed). */
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Proposed edit plans waiting for review (from agents, cleanup or text edits): each with its title,
|
|
11
|
+
* what it would do (length change, clips added, changed and removed, new problems), a strip of the
|
|
12
|
+
* timeline showing the stretches it cuts (click one to go there) and Accept / Discard. Accepting
|
|
13
|
+
* applies the plan as one undo step; a plan made before other edits is checked again first. Renders
|
|
14
|
+
* nothing when no plan is open.
|
|
15
|
+
*/
|
|
16
|
+
export declare function EditPlanPreview({ controller, editable, className }: EditPlanPreviewProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface TranscriptEditorProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Track whose words to show (default: the first audio track with a transcribed clip, else the first video track with one). */
|
|
6
|
+
track?: string;
|
|
7
|
+
/** Deleting words proposes a plan for review instead of cutting at once (default false). */
|
|
8
|
+
planFirst?: boolean;
|
|
9
|
+
/** Allow cutting by text (default true). */
|
|
10
|
+
editable?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Edit by text, with disfluencies marked: the words the timeline plays, the word under the
|
|
15
|
+
* playhead highlighted as it plays, fillers, long pauses and stutters marked in the text and
|
|
16
|
+
* listed as chips that cut each one out with a click. Click a word to go to it, Shift-click to
|
|
17
|
+
* select a run, Delete to cut it (or propose the cut with `planFirst`). "Plan cleanup" proposes
|
|
18
|
+
* every disfluency as one plan for review (see `EditPlanPreview`). Each cut is one undo step.
|
|
19
|
+
*/
|
|
20
|
+
export declare function TranscriptEditor({ controller, track, planFirst, editable, className }: TranscriptEditorProps): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface TranscriptEditorProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** Track whose words to show (default: the first audio track with a transcribed clip, else the first video track with one). */
|
|
6
|
+
track?: string;
|
|
7
|
+
/** Deleting words proposes a plan for review instead of cutting at once (default false). */
|
|
8
|
+
planFirst?: boolean;
|
|
9
|
+
/** Allow cutting by text (default true). */
|
|
10
|
+
editable?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Edit by text, with disfluencies marked: the words the timeline plays, the word under the
|
|
15
|
+
* playhead highlighted as it plays, fillers, long pauses and stutters marked in the text and
|
|
16
|
+
* listed as chips that cut each one out with a click. Click a word to go to it, Shift-click to
|
|
17
|
+
* select a run, Delete to cut it (or propose the cut with `planFirst`). "Plan cleanup" proposes
|
|
18
|
+
* every disfluency as one plan for review (see `EditPlanPreview`). Each cut is one undo step.
|
|
19
|
+
*/
|
|
20
|
+
export declare function TranscriptEditor({ controller, track, planFirst, editable, className }: TranscriptEditorProps): React.JSX.Element;
|
|
@@ -22,6 +22,12 @@ export interface VideoEditorProps {
|
|
|
22
22
|
showIssues?: boolean;
|
|
23
23
|
/** Show the transcript panel for editing by text (default true). */
|
|
24
24
|
showTranscript?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* How the transcript is shown: `panel` (default) is `<TranscriptPanel>`, which also loads
|
|
27
|
+
* transcript files; `editor` marks fillers, pauses and stutters and plans cleanups for review
|
|
28
|
+
* (`<TranscriptEditor>`).
|
|
29
|
+
*/
|
|
30
|
+
transcriptMode?: 'editor' | 'panel';
|
|
25
31
|
/** Show colour scopes (histogram, luma waveform, vectorscope) of the preview under it (default false). */
|
|
26
32
|
showScopes?: boolean;
|
|
27
33
|
/**
|
|
@@ -43,4 +49,4 @@ export interface VideoEditorProps {
|
|
|
43
49
|
* transport, the timeline and the clip inspector, with the project's issues listed under the
|
|
44
50
|
* timeline. Every edit is one undo step; the controller's agent tools edit the same project.
|
|
45
51
|
*/
|
|
46
|
-
export declare function VideoEditor({ controller: given, options, editable, pxPerSecond, onPxPerSecondChange, resolution, showIssues, showTranscript, showScopes, effects, showEffects, className, playback, onPlaybackReveal }: VideoEditorProps): React.JSX.Element;
|
|
52
|
+
export declare function VideoEditor({ controller: given, options, editable, pxPerSecond, onPxPerSecondChange, resolution, showIssues, showTranscript, transcriptMode, showScopes, effects, showEffects, className, playback, onPlaybackReveal }: VideoEditorProps): React.JSX.Element;
|
|
@@ -22,6 +22,12 @@ export interface VideoEditorProps {
|
|
|
22
22
|
showIssues?: boolean;
|
|
23
23
|
/** Show the transcript panel for editing by text (default true). */
|
|
24
24
|
showTranscript?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* How the transcript is shown: `panel` (default) is `<TranscriptPanel>`, which also loads
|
|
27
|
+
* transcript files; `editor` marks fillers, pauses and stutters and plans cleanups for review
|
|
28
|
+
* (`<TranscriptEditor>`).
|
|
29
|
+
*/
|
|
30
|
+
transcriptMode?: 'editor' | 'panel';
|
|
25
31
|
/** Show colour scopes (histogram, luma waveform, vectorscope) of the preview under it (default false). */
|
|
26
32
|
showScopes?: boolean;
|
|
27
33
|
/**
|
|
@@ -43,4 +49,4 @@ export interface VideoEditorProps {
|
|
|
43
49
|
* transport, the timeline and the clip inspector, with the project's issues listed under the
|
|
44
50
|
* timeline. Every edit is one undo step; the controller's agent tools edit the same project.
|
|
45
51
|
*/
|
|
46
|
-
export declare function VideoEditor({ controller: given, options, editable, pxPerSecond, onPxPerSecondChange, resolution, showIssues, showTranscript, showScopes, effects, showEffects, className, playback, onPlaybackReveal }: VideoEditorProps): React.JSX.Element;
|
|
52
|
+
export declare function VideoEditor({ controller: given, options, editable, pxPerSecond, onPxPerSecondChange, resolution, showIssues, showTranscript, transcriptMode, showScopes, effects, showEffects, className, playback, onPlaybackReveal }: VideoEditorProps): React.JSX.Element;
|
|
@@ -8,7 +8,8 @@ export interface VideoTransportProps {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Play / pause, a frame back and forward, the playhead and total length as timecode, and the
|
|
11
|
-
* edits that work on the playhead and the selection: split, delete, ripple delete,
|
|
11
|
+
* edits that work on the playhead and the selection: split, delete, ripple delete, add an
|
|
12
|
+
* adjustment clip at the playhead, undo and redo.
|
|
12
13
|
* When any asset has proxies, a preview-size control picks what the preview plays (a view setting).
|
|
13
14
|
*/
|
|
14
15
|
export declare function VideoTransport({ controller, editable, className }: VideoTransportProps): React.JSX.Element;
|
|
@@ -8,7 +8,8 @@ export interface VideoTransportProps {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Play / pause, a frame back and forward, the playhead and total length as timecode, and the
|
|
11
|
-
* edits that work on the playhead and the selection: split, delete, ripple delete,
|
|
11
|
+
* edits that work on the playhead and the selection: split, delete, ripple delete, add an
|
|
12
|
+
* adjustment clip at the playhead, undo and redo.
|
|
12
13
|
* When any asset has proxies, a preview-size control picks what the preview plays (a view setting).
|
|
13
14
|
*/
|
|
14
15
|
export declare function VideoTransport({ controller, editable, className }: VideoTransportProps): React.JSX.Element;
|