@overlap.ai/react-video-subtitles 1.0.28 → 1.0.30
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/index.d.ts +2 -2
- package/dist/index.esm.js +119 -86
- package/dist/index.js +119 -86
- package/dist/test/constants/testWords.d.ts +1 -0
- package/dist/types/components.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/subtitles.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16,5 +16,6 @@ export interface SubtitleTextProps {
|
|
|
16
16
|
highlightWords?: string[];
|
|
17
17
|
highlightWordsColor?: string;
|
|
18
18
|
lineCount?: number;
|
|
19
|
+
speakerStyle?: Partial<StyleConfig>;
|
|
19
20
|
}
|
|
20
21
|
export type SubtitleComponent = React.ComponentType<SubtitleTextProps> | React.MemoExoticComponent<React.ComponentType<SubtitleTextProps>>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { StyleConfig, SubtitlesProps, Phrase } from './subtitles';
|
|
1
|
+
export type { StyleConfig, SubtitlesProps, Phrase, SegmentWord } from './subtitles';
|
|
2
2
|
export type { SubtitleComponent, SubtitleTextProps } from './components';
|
|
@@ -2,6 +2,7 @@ export interface SegmentWord {
|
|
|
2
2
|
text: string;
|
|
3
3
|
start: number;
|
|
4
4
|
end: number;
|
|
5
|
+
speaker?: number;
|
|
5
6
|
}
|
|
6
7
|
export interface Phrase {
|
|
7
8
|
start: number;
|
|
@@ -78,6 +79,7 @@ export interface SubtitlesProps {
|
|
|
78
79
|
maxCharsPerLine?: number;
|
|
79
80
|
lineCount?: number;
|
|
80
81
|
styleConfig: StyleConfig;
|
|
82
|
+
speakerStyleIndex?: Partial<StyleConfig>[];
|
|
81
83
|
x: number;
|
|
82
84
|
y: number;
|
|
83
85
|
currentFrame: number;
|