@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.
@@ -683,6 +683,8 @@ function ChartInspector({ controller, sections, className }) {
683
683
  onChange: (e) => controller.update({ gapWidth: Number(e.currentTarget.value) })
684
684
  }
685
685
  ) }),
686
+ spec.type === "radar" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Rings", htmlFor: `${idBase}-radar-ticks`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChartCommitInput, { id: `${idBase}-radar-ticks`, value: spec.radarTicks === null ? "" : String(spec.radarTicks), placeholder: "Auto", inputMode: "numeric", "data-option": "radarTicks", className: chartInputClass, onCommit: (text) => controller.update({ radarTicks: text.trim() === "" ? null : Number(text) }).ok }) }),
687
+ spec.type === "radar" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Grid", htmlFor: `${idBase}-radar-graticule`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select, { id: `${idBase}-radar-graticule`, name: "radarGraticule", value: spec.radarGraticule, options: import_chart4.CHART_RADAR_GRATICULES, labels: { polygon: "Polygons", circle: "Circles" }, onChange: (radarGraticule) => controller.update({ radarGraticule }) }) }),
686
688
  spec.dataLabels && hasBars && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Labels", htmlFor: `${idBase}-label-position`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select, { id: `${idBase}-label-position`, name: "labelPosition", value: spec.labelPosition, options: import_chart4.CHART_LABEL_POSITIONS, onChange: (labelPosition) => controller.update({ labelPosition }) }) }),
687
689
  spec.type === "histogram" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Bins", htmlFor: `${idBase}-bins`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChartCommitInput, { id: `${idBase}-bins`, value: spec.bins === null ? "" : String(spec.bins), placeholder: "Auto", inputMode: "numeric", "data-option": "bins", className: chartInputClass, onCommit: (text) => controller.update({ bins: text.trim() === "" ? null : Number(text) }).ok }) }),
688
690
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-wrap gap-x-4 gap-y-1", children: [
@@ -20,7 +20,7 @@ import {
20
20
  useChartState,
21
21
  useChartToolProvider,
22
22
  useOfficeChartToolProvider
23
- } from "../chunk-ZHMATFBB.js";
23
+ } from "../chunk-FUR7LCDM.js";
24
24
  import {
25
25
  PresenceLayer,
26
26
  useAgentPlayback,
@@ -427,6 +427,7 @@ import {
427
427
  chartSupportsTrendlines,
428
428
  chartTrendlineName,
429
429
  CHART_CURVES,
430
+ CHART_RADAR_GRATICULES,
430
431
  CHART_LEGEND_POSITIONS,
431
432
  CHART_NUMBER_STYLES,
432
433
  CHART_SERIES_TYPES,
@@ -671,6 +672,8 @@ function ChartInspector({ controller, sections, className }) {
671
672
  onChange: (e) => controller.update({ gapWidth: Number(e.currentTarget.value) })
672
673
  }
673
674
  ) }),
675
+ spec.type === "radar" && /* @__PURE__ */ jsx3(Field, { label: "Rings", htmlFor: `${idBase}-radar-ticks`, children: /* @__PURE__ */ jsx3(ChartCommitInput, { id: `${idBase}-radar-ticks`, value: spec.radarTicks === null ? "" : String(spec.radarTicks), placeholder: "Auto", inputMode: "numeric", "data-option": "radarTicks", className: chartInputClass, onCommit: (text) => controller.update({ radarTicks: text.trim() === "" ? null : Number(text) }).ok }) }),
676
+ spec.type === "radar" && /* @__PURE__ */ jsx3(Field, { label: "Grid", htmlFor: `${idBase}-radar-graticule`, children: /* @__PURE__ */ jsx3(Select, { id: `${idBase}-radar-graticule`, name: "radarGraticule", value: spec.radarGraticule, options: CHART_RADAR_GRATICULES, labels: { polygon: "Polygons", circle: "Circles" }, onChange: (radarGraticule) => controller.update({ radarGraticule }) }) }),
674
677
  spec.dataLabels && hasBars && /* @__PURE__ */ jsx3(Field, { label: "Labels", htmlFor: `${idBase}-label-position`, children: /* @__PURE__ */ jsx3(Select, { id: `${idBase}-label-position`, name: "labelPosition", value: spec.labelPosition, options: CHART_LABEL_POSITIONS, onChange: (labelPosition) => controller.update({ labelPosition }) }) }),
675
678
  spec.type === "histogram" && /* @__PURE__ */ jsx3(Field, { label: "Bins", htmlFor: `${idBase}-bins`, children: /* @__PURE__ */ jsx3(ChartCommitInput, { id: `${idBase}-bins`, value: spec.bins === null ? "" : String(spec.bins), placeholder: "Auto", inputMode: "numeric", "data-option": "bins", className: chartInputClass, onCommit: (text) => controller.update({ bins: text.trim() === "" ? null : Number(text) }).ok }) }),
676
679
  /* @__PURE__ */ jsxs3("div", { className: "flex flex-wrap gap-x-4 gap-y-1", children: [
package/dist/index.cjs CHANGED
@@ -11781,6 +11781,8 @@ function ChartInspector({ controller, sections, className }) {
11781
11781
  onChange: (e) => controller.update({ gapWidth: Number(e.currentTarget.value) })
11782
11782
  }
11783
11783
  ) }),
11784
+ spec.type === "radar" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Rings", htmlFor: `${idBase}-radar-ticks`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChartCommitInput, { id: `${idBase}-radar-ticks`, value: spec.radarTicks === null ? "" : String(spec.radarTicks), placeholder: "Auto", inputMode: "numeric", "data-option": "radarTicks", className: chartInputClass, onCommit: (text) => controller.update({ radarTicks: text.trim() === "" ? null : Number(text) }).ok }) }),
11785
+ spec.type === "radar" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Grid", htmlFor: `${idBase}-radar-graticule`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Select, { id: `${idBase}-radar-graticule`, name: "radarGraticule", value: spec.radarGraticule, options: import_chart4.CHART_RADAR_GRATICULES, labels: { polygon: "Polygons", circle: "Circles" }, onChange: (radarGraticule) => controller.update({ radarGraticule }) }) }),
11784
11786
  spec.dataLabels && hasBars && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Labels", htmlFor: `${idBase}-label-position`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Select, { id: `${idBase}-label-position`, name: "labelPosition", value: spec.labelPosition, options: import_chart4.CHART_LABEL_POSITIONS, onChange: (labelPosition) => controller.update({ labelPosition }) }) }),
11785
11787
  spec.type === "histogram" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Bins", htmlFor: `${idBase}-bins`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChartCommitInput, { id: `${idBase}-bins`, value: spec.bins === null ? "" : String(spec.bins), placeholder: "Auto", inputMode: "numeric", "data-option": "bins", className: chartInputClass, onCommit: (text) => controller.update({ bins: text.trim() === "" ? null : Number(text) }).ok }) }),
11786
11788
  /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-wrap gap-x-4 gap-y-1", children: [
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  ChartDataGrid,
7
7
  ChartInspector,
8
8
  chartButtonClass
9
- } from "./chunk-ZHMATFBB.js";
9
+ } from "./chunk-FUR7LCDM.js";
10
10
  import {
11
11
  FormulaHints,
12
12
  NameManager,
@@ -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, undo and redo.
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, undo and redo.
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;