manucap 3.0.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/LICENSE +21 -0
- package/README.md +43 -0
- package/dist/@types/index.d.ts +62 -0
- package/dist/dist.css +3730 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +209323 -0
- package/dist/index.js.map +1 -0
- package/dist/indexLibrary.d.ts +13 -0
- package/dist/indexLibrary.spec.d.ts +1 -0
- package/dist/manucap/CompleteButton.d.ts +9 -0
- package/dist/manucap/CompleteButton.spec.d.ts +1 -0
- package/dist/manucap/CueListToolbar.d.ts +11 -0
- package/dist/manucap/CueListToolbar.spec.d.ts +1 -0
- package/dist/manucap/ManuCap.d.ts +23 -0
- package/dist/manucap/ManuCap.spec.d.ts +1 -0
- package/dist/manucap/common/DateTime.d.ts +7 -0
- package/dist/manucap/common/DateTime.spec.d.ts +1 -0
- package/dist/manucap/common/JoiError.d.ts +8 -0
- package/dist/manucap/cues/CueErrorAlert.d.ts +3 -0
- package/dist/manucap/cues/CueErrorAlert.spec.d.ts +1 -0
- package/dist/manucap/cues/CueErrorLine.d.ts +8 -0
- package/dist/manucap/cues/CueErrorLine.spec.d.ts +1 -0
- package/dist/manucap/cues/comments/CueComments.d.ts +9 -0
- package/dist/manucap/cues/comments/CueComments.spec.d.ts +1 -0
- package/dist/manucap/cues/comments/commentsSlices.d.ts +4 -0
- package/dist/manucap/cues/cueLine/CueActionsPanel.d.ts +10 -0
- package/dist/manucap/cues/cueLine/CueActionsPanel.spec.d.ts +2 -0
- package/dist/manucap/cues/cueLine/CueLine.d.ts +18 -0
- package/dist/manucap/cues/cueLine/CueLine.fake.children.spec.d.ts +3 -0
- package/dist/manucap/cues/cueLine/CueLine.real.children.spec.d.ts +1 -0
- package/dist/manucap/cues/cueLine/CueLineCounts.d.ts +9 -0
- package/dist/manucap/cues/cueLine/CueLineCounts.spec.d.ts +2 -0
- package/dist/manucap/cues/cueLine/CueLineFlap.d.ts +13 -0
- package/dist/manucap/cues/cueLine/CueLineFlap.spec.d.ts +1 -0
- package/dist/manucap/cues/cueLine/PlayCueButton.d.ts +8 -0
- package/dist/manucap/cues/cueLine/PlayCueButton.spec.d.ts +2 -0
- package/dist/manucap/cues/cueUtils.d.ts +62 -0
- package/dist/manucap/cues/cueUtils.spec.d.ts +1 -0
- package/dist/manucap/cues/cueVerifications.d.ts +14 -0
- package/dist/manucap/cues/cueVerifications.spec.d.ts +1 -0
- package/dist/manucap/cues/cuesList/CuesList.d.ts +12 -0
- package/dist/manucap/cues/cuesList/CuesList.fake.line.spec.d.ts +1 -0
- package/dist/manucap/cues/cuesList/CuesList.spec.d.ts +1 -0
- package/dist/manucap/cues/cuesList/cuesListActions.d.ts +40 -0
- package/dist/manucap/cues/cuesList/cuesListActions.spec.d.ts +1 -0
- package/dist/manucap/cues/cuesList/cuesListScrollSlice.d.ts +17 -0
- package/dist/manucap/cues/cuesList/cuesListScrollSlice.spec.d.ts +1 -0
- package/dist/manucap/cues/cuesList/cuesListSlices.d.ts +82 -0
- package/dist/manucap/cues/cuesList/cuesListTestUtils.d.ts +4 -0
- package/dist/manucap/cues/cuesList/cuesListTimeMatching.d.ts +6 -0
- package/dist/manucap/cues/cuesList/useMatchedCuesAsCsv.d.ts +4 -0
- package/dist/manucap/cues/cuesList/useMatchedCuesAsCsv.spec.d.ts +1 -0
- package/dist/manucap/cues/edit/AddCueLineButton.d.ts +8 -0
- package/dist/manucap/cues/edit/AddCueLineButton.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/CueCategoryButton.d.ts +8 -0
- package/dist/manucap/cues/edit/CueCategoryButton.spec.d.ts +1 -0
- package/dist/manucap/cues/edit/CueEdit.d.ts +12 -0
- package/dist/manucap/cues/edit/CueEdit.fake.debounce.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/CueEdit.fake.editor.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/CueExtraCharacters.d.ts +7 -0
- package/dist/manucap/cues/edit/CueExtraCharacters.spec.d.ts +1 -0
- package/dist/manucap/cues/edit/CueTextEditor.composition.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/CueTextEditor.d.ts +18 -0
- package/dist/manucap/cues/edit/CueTextEditor.fake.debounce.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/CueTextEditor.real.debounce.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/CueTextEditor.spellcheck.keyboard.shortcuts.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/DeleteCueLineButton.d.ts +6 -0
- package/dist/manucap/cues/edit/DeleteCueLineButton.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/InlineStyleButton.d.ts +11 -0
- package/dist/manucap/cues/edit/InlineStyleButton.spec.d.ts +1 -0
- package/dist/manucap/cues/edit/PositionButton.d.ts +8 -0
- package/dist/manucap/cues/edit/PositionButton.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/SplitCueLineButton.d.ts +6 -0
- package/dist/manucap/cues/edit/SplitCueLineButton.spec.d.ts +2 -0
- package/dist/manucap/cues/edit/TimeEditor.d.ts +11 -0
- package/dist/manucap/cues/edit/TimeEditor.spec.d.ts +1 -0
- package/dist/manucap/cues/edit/cueEditorSlices.d.ts +25 -0
- package/dist/manucap/cues/edit/cueEditorSlices.spec.d.ts +1 -0
- package/dist/manucap/cues/edit/cueTextConverter.d.ts +4 -0
- package/dist/manucap/cues/edit/cueTextConverter.spec.d.ts +1 -0
- package/dist/manucap/cues/edit/editUtils.d.ts +3 -0
- package/dist/manucap/cues/merge/MergeEditor.d.ts +3 -0
- package/dist/manucap/cues/merge/MergeEditor.spec.d.ts +1 -0
- package/dist/manucap/cues/merge/mergeSlices.d.ts +11 -0
- package/dist/manucap/cues/merge/mergeSlices.spec.d.ts +1 -0
- package/dist/manucap/cues/saveCueDeleteSlices.d.ts +12 -0
- package/dist/manucap/cues/saveCueDeleteSlices.spec.d.ts +1 -0
- package/dist/manucap/cues/saveCueUpdateSlices.d.ts +13 -0
- package/dist/manucap/cues/saveCueUpdateSlices.spec.d.ts +1 -0
- package/dist/manucap/cues/saveSlices.d.ts +16 -0
- package/dist/manucap/cues/saveSlices.spec.d.ts +1 -0
- package/dist/manucap/cues/searchReplace/SearchReplaceEditor.d.ts +3 -0
- package/dist/manucap/cues/searchReplace/SearchReplaceEditor.spec.d.ts +1 -0
- package/dist/manucap/cues/searchReplace/SearchReplaceMatch.d.ts +6 -0
- package/dist/manucap/cues/searchReplace/SearchReplaceMatch.spec.d.ts +1 -0
- package/dist/manucap/cues/searchReplace/model.d.ts +16 -0
- package/dist/manucap/cues/searchReplace/searchReplaceSlices.d.ts +22 -0
- package/dist/manucap/cues/searchReplace/searchReplaceSlices.spec.d.ts +1 -0
- package/dist/manucap/cues/spellCheck/SpellCheckIssue.d.ts +17 -0
- package/dist/manucap/cues/spellCheck/SpellCheckIssue.spec.d.ts +1 -0
- package/dist/manucap/cues/spellCheck/model.d.ts +33 -0
- package/dist/manucap/cues/spellCheck/spellCheckFetch.d.ts +5 -0
- package/dist/manucap/cues/spellCheck/spellCheckerUtils.d.ts +6 -0
- package/dist/manucap/cues/spellCheck/spellCheckerUtils.spec.d.ts +1 -0
- package/dist/manucap/cues/spellCheck/spellcheckerSettingsSlice.spec.d.ts +1 -0
- package/dist/manucap/cues/view/ClickCueWrapper.d.ts +13 -0
- package/dist/manucap/cues/view/ClickCueWrapper.spec.d.ts +2 -0
- package/dist/manucap/cues/view/CueView.d.ts +21 -0
- package/dist/manucap/cues/view/CueView.spec.d.ts +2 -0
- package/dist/manucap/cues/view/InsertCueButton.d.ts +3 -0
- package/dist/manucap/cues/view/sourceCueSlices.d.ts +11 -0
- package/dist/manucap/cues/view/sourceCueSlices.spec.d.ts +1 -0
- package/dist/manucap/loadingIndicatorSlices.d.ts +2 -0
- package/dist/manucap/loadingIndicatorSlices.spec.d.ts +1 -0
- package/dist/manucap/manuCapReducers.d.ts +65 -0
- package/dist/manucap/model.d.ts +174 -0
- package/dist/manucap/player/EditingVideoPlayer.d.ts +10 -0
- package/dist/manucap/player/EditingVideoPlayer.fake.player.spec.d.ts +2 -0
- package/dist/manucap/player/EditingVideoPlayer.spec.d.ts +1 -0
- package/dist/manucap/player/VideoPlayer.d.ts +48 -0
- package/dist/manucap/player/VideoPlayer.fake.player.spec.d.ts +1 -0
- package/dist/manucap/player/VideoPlayer.spec.d.ts +1 -0
- package/dist/manucap/player/VideoPlayer.wavesurfer.spec.d.ts +1 -0
- package/dist/manucap/player/playbackSlices.d.ts +11 -0
- package/dist/manucap/player/playbackSlices.spec.d.ts +1 -0
- package/dist/manucap/player/textTrackOptionsConversion.d.ts +3 -0
- package/dist/manucap/player/textTrackOptionsConversion.spec.d.ts +1 -0
- package/dist/manucap/player/waveformSlices.d.ts +4 -0
- package/dist/manucap/player/waveformSlices.spec.d.ts +1 -0
- package/dist/manucap/spellcheckerSettingsSlice.d.ts +4 -0
- package/dist/manucap/toolbox/CaptionOverlapToggle.d.ts +8 -0
- package/dist/manucap/toolbox/CaptionOverlapToggle.spec.d.ts +1 -0
- package/dist/manucap/toolbox/CueCommentsToggle.d.ts +6 -0
- package/dist/manucap/toolbox/CueCommentsToggle.spec.d.ts +1 -0
- package/dist/manucap/toolbox/ImportTrackCuesButton.d.ts +7 -0
- package/dist/manucap/toolbox/ImportTrackCuesButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/MergeCuesButton.d.ts +6 -0
- package/dist/manucap/toolbox/MergeCuesButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/SeachReplaceButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/SearchReplaceButton.d.ts +3 -0
- package/dist/manucap/toolbox/SyncCuesButton.d.ts +6 -0
- package/dist/manucap/toolbox/SyncCuesButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/TimecodesLockToggle.d.ts +6 -0
- package/dist/manucap/toolbox/TimecodesLockToggle.spec.d.ts +1 -0
- package/dist/manucap/toolbox/ToggleButton.d.ts +11 -0
- package/dist/manucap/toolbox/ToggleButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/Toolbox.d.ts +11 -0
- package/dist/manucap/toolbox/Toolbox.spec.d.ts +1 -0
- package/dist/manucap/toolbox/WaveformToggle.d.ts +6 -0
- package/dist/manucap/toolbox/WaveformToggle.spec.d.ts +1 -0
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsButton.d.ts +3 -0
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsButton.spec.d.ts +2 -0
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsForm.d.ts +7 -0
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsForm.spec.d.ts +1 -0
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsModal.d.ts +7 -0
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsModal.spec.d.ts +1 -0
- package/dist/manucap/toolbox/captionSpecifications/captionSpecificationSlice.d.ts +11 -0
- package/dist/manucap/toolbox/captionSpecifications/captionSpecificationSlice.spec.d.ts +1 -0
- package/dist/manucap/toolbox/export/ExportSourceTrackCuesButton.d.ts +6 -0
- package/dist/manucap/toolbox/export/ExportSourceTrackCuesButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/export/ExportTrackCuesButton.d.ts +7 -0
- package/dist/manucap/toolbox/export/ExportTrackCuesButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutLabel.d.ts +11 -0
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutLabel.spec.d.ts +1 -0
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcuts.d.ts +7 -0
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcuts.spec.d.ts +1 -0
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutsModal.d.ts +7 -0
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutsModal.spec.d.ts +1 -0
- package/dist/manucap/toolbox/model.d.ts +17 -0
- package/dist/manucap/toolbox/shift/ShiftTimeButton.d.ts +6 -0
- package/dist/manucap/toolbox/shift/ShiftTimeButton.spec.d.ts +1 -0
- package/dist/manucap/toolbox/shift/ShiftTimeModal.d.ts +7 -0
- package/dist/manucap/toolbox/shift/ShiftTimeModal.spec.d.ts +2 -0
- package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsButton.d.ts +3 -0
- package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsButton.spec.d.ts +2 -0
- package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsForm.d.ts +7 -0
- package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsForm.spec.d.ts +1 -0
- package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsModal.d.ts +7 -0
- package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsModal.spec.d.ts +1 -0
- package/dist/manucap/toolbox/subtitleSpecifications/subtitleSpecificationSlice.d.ts +11 -0
- package/dist/manucap/toolbox/subtitleSpecifications/subtitleSpecificationSlice.spec.d.ts +1 -0
- package/dist/manucap/trackSlices.d.ts +13 -0
- package/dist/manucap/trackSlices.spec.d.ts +1 -0
- package/dist/manucap/userSlices.d.ts +10 -0
- package/dist/manucap/userSlices.spec.d.ts +1 -0
- package/dist/manucap/utils/manuCapUtils.d.ts +3 -0
- package/dist/manucap/utils/manuCapUtils.spec.d.ts +1 -0
- package/dist/manucap/utils/shortcutConstants.d.ts +41 -0
- package/dist/manucap/utils/shortcutConstants.spec.d.ts +1 -0
- package/dist/manucap/utils/timeUtils.d.ts +10 -0
- package/dist/manucap/utils/timeUtils.spec.d.ts +1 -0
- package/dist/testUtils/initBrowserEnvironment.d.ts +1 -0
- package/dist/testUtils/testUtils.d.ts +13 -0
- package/dist/testUtils/testingStore.d.ts +4 -0
- package/package.json +154 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
mp4: string;
|
|
4
|
+
poster: string;
|
|
5
|
+
waveform?: string;
|
|
6
|
+
mediaLength?: number;
|
|
7
|
+
onTimeChange?: (time: number) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const EditingVideoPlayer: (props: Props) => ReactElement;
|
|
10
|
+
export default EditingVideoPlayer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "video.js/dist/video-js.css";
|
|
2
|
+
import { CueChange, CueDto, LanguageCues, Track } from "../model";
|
|
3
|
+
import { VideoJsPlayer } from "video.js";
|
|
4
|
+
import { ReactElement } from "react";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { PlayVideoAction } from "./playbackSlices";
|
|
7
|
+
import WaveSurfer from "wavesurfer.js";
|
|
8
|
+
export interface Props {
|
|
9
|
+
mp4: string;
|
|
10
|
+
poster: string;
|
|
11
|
+
waveform?: string;
|
|
12
|
+
mediaLength?: number;
|
|
13
|
+
waveformVisible?: boolean;
|
|
14
|
+
updateCueTimecodes?: (idx: number, start: number, end: number) => void;
|
|
15
|
+
timecodesUnlocked?: boolean;
|
|
16
|
+
cues?: CueDto[];
|
|
17
|
+
tracks: Track[];
|
|
18
|
+
onTimeChange?: (time: number) => void;
|
|
19
|
+
languageCuesArray: LanguageCues[];
|
|
20
|
+
playSection?: PlayVideoAction;
|
|
21
|
+
resetPlayerTimeChange?: () => void;
|
|
22
|
+
lastCueChange: CueChange | null;
|
|
23
|
+
trackFontSizePercent?: number;
|
|
24
|
+
}
|
|
25
|
+
declare class VideoPlayer extends React.Component<Props> {
|
|
26
|
+
player: VideoJsPlayer;
|
|
27
|
+
private readonly videoNode?;
|
|
28
|
+
playSegmentPauseTimeout?: number;
|
|
29
|
+
playPromise: Promise<void> | undefined;
|
|
30
|
+
wavesurfer: WaveSurfer;
|
|
31
|
+
private readonly waveformRef?;
|
|
32
|
+
private readonly waveformTimelineRef?;
|
|
33
|
+
constructor(props: Props);
|
|
34
|
+
componentDidMount(): void;
|
|
35
|
+
componentDidUpdate(prevProps: Props): void;
|
|
36
|
+
private loadWaveform;
|
|
37
|
+
private formatRegionTime;
|
|
38
|
+
private addRegion;
|
|
39
|
+
private updateRegion;
|
|
40
|
+
private removeAllRegions;
|
|
41
|
+
private reloadRegions;
|
|
42
|
+
getTime(): number;
|
|
43
|
+
shiftTime(delta: number): void;
|
|
44
|
+
playPause(): void;
|
|
45
|
+
private pauseVideo;
|
|
46
|
+
render(): ReactElement;
|
|
47
|
+
}
|
|
48
|
+
export default VideoPlayer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
+
import { AppThunk } from "../manuCapReducers";
|
|
3
|
+
import { ManuCapAction } from "../model";
|
|
4
|
+
export interface PlayVideoAction extends ManuCapAction {
|
|
5
|
+
startTime: number;
|
|
6
|
+
endTime?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const playVideoSectionSlice: import("@reduxjs/toolkit").Slice<PlayVideoAction, {
|
|
9
|
+
playVideoSectionSlice: (_state: import("immer/dist/internal").WritableDraft<PlayVideoAction>, action: PayloadAction<PlayVideoAction>) => PlayVideoAction;
|
|
10
|
+
}, "playVideoSection">;
|
|
11
|
+
export declare const playVideoSection: (startTime: number, endTime?: number) => AppThunk;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MouseEvent, ReactElement } from "react";
|
|
2
|
+
import { SaveState } from "../model";
|
|
3
|
+
interface Props {
|
|
4
|
+
onClick: (event: MouseEvent<HTMLElement>) => void;
|
|
5
|
+
saveState: SaveState;
|
|
6
|
+
}
|
|
7
|
+
export declare const CaptionOverlapToggle: (props: Props) => ReactElement;
|
|
8
|
+
export default CaptionOverlapToggle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionComponent, MouseEvent, ReactElement } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
toggled?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
render: (toggle: boolean) => ReactElement;
|
|
9
|
+
}
|
|
10
|
+
declare const ToggleButton: FunctionComponent<Props>;
|
|
11
|
+
export default ToggleButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { SaveState, Track } from "../model";
|
|
3
|
+
interface Props {
|
|
4
|
+
handleExportFile: (trackVersionExport: Track | null) => void;
|
|
5
|
+
handleExportSourceFile: () => void;
|
|
6
|
+
handleImportFile: () => void;
|
|
7
|
+
editDisabled?: boolean;
|
|
8
|
+
saveState: SaveState;
|
|
9
|
+
}
|
|
10
|
+
declare const Toolbox: (props: Props) => ReactElement;
|
|
11
|
+
export default Toolbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { CaptionSpecification } from "../model";
|
|
3
|
+
export interface Props {
|
|
4
|
+
captionSpecifications: CaptionSpecification;
|
|
5
|
+
}
|
|
6
|
+
declare const CaptionSpecificationsForm: (props: Props) => ReactElement;
|
|
7
|
+
export default CaptionSpecificationsForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
+
import { AppThunk } from "../../manuCapReducers";
|
|
3
|
+
import { CaptionSpecification } from "../model";
|
|
4
|
+
import { ManuCapAction } from "../../model";
|
|
5
|
+
export interface CaptionSpecificationAction extends ManuCapAction {
|
|
6
|
+
captionSpecification: CaptionSpecification | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const captionSpecificationSlice: import("@reduxjs/toolkit").Slice<CaptionSpecification | null, {
|
|
9
|
+
readCaptionSpecification: (_state: import("immer/dist/internal").WritableDraft<CaptionSpecification> | null, action: PayloadAction<CaptionSpecificationAction>) => CaptionSpecification | null;
|
|
10
|
+
}, "captionSpecification">;
|
|
11
|
+
export declare const readCaptionSpecification: (captionSpecification: CaptionSpecification) => AppThunk;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "video.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
export interface Props {
|
|
3
|
+
character: string;
|
|
4
|
+
name: string;
|
|
5
|
+
hideShiftKey?: boolean | false;
|
|
6
|
+
hideMetaKey?: boolean | false;
|
|
7
|
+
hideAltKey?: boolean | false;
|
|
8
|
+
hideAlternativeKey?: boolean | false;
|
|
9
|
+
}
|
|
10
|
+
declare const KeyboardShortcutLabel: (props: Props) => ReactElement;
|
|
11
|
+
export default KeyboardShortcutLabel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CaptionSpecification {
|
|
2
|
+
captionSpecificationId: string;
|
|
3
|
+
projectId: string;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
audioDescription: boolean;
|
|
6
|
+
onScreenText: boolean;
|
|
7
|
+
spokenAudio: boolean;
|
|
8
|
+
speakerIdentification: string;
|
|
9
|
+
dialogueStyle: string;
|
|
10
|
+
maxLinesPerCaption: number | null;
|
|
11
|
+
maxCharactersPerLine: number | null;
|
|
12
|
+
minCaptionDurationInMillis: number | null;
|
|
13
|
+
maxCaptionDurationInMillis: number | null;
|
|
14
|
+
maxCharactersPerSecondPerCaption: number | null;
|
|
15
|
+
comments: string;
|
|
16
|
+
mediaNotes?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { SubtitleSpecification } from "../model";
|
|
3
|
+
export interface Props {
|
|
4
|
+
subTitleSpecifications: SubtitleSpecification;
|
|
5
|
+
}
|
|
6
|
+
declare const SubtitleSpecificationsForm: (props: Props) => ReactElement;
|
|
7
|
+
export default SubtitleSpecificationsForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
+
import { AppThunk } from "../../manuCapReducers";
|
|
3
|
+
import { SubtitleSpecification } from "../model";
|
|
4
|
+
import { SubtitleEditAction } from "../../model";
|
|
5
|
+
export interface SubtitleSpecificationAction extends SubtitleEditAction {
|
|
6
|
+
subtitleSpecification: SubtitleSpecification | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const subtitleSpecificationSlice: import("@reduxjs/toolkit").Slice<SubtitleSpecification | null, {
|
|
9
|
+
readSubtitleSpecification: (_state: import("immer/dist/internal").WritableDraft<SubtitleSpecification> | null, action: PayloadAction<SubtitleSpecificationAction>) => SubtitleSpecification | null;
|
|
10
|
+
}, "subtitleSpecification">;
|
|
11
|
+
export declare const readSubtitleSpecification: (subtitleSpecification: SubtitleSpecification) => AppThunk;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "video.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
+
import { ManuCapAction, Track } from "./model";
|
|
3
|
+
import { AppThunk } from "./manuCapReducers";
|
|
4
|
+
interface EditingTrackAction extends ManuCapAction {
|
|
5
|
+
editingTrack: Track;
|
|
6
|
+
}
|
|
7
|
+
export declare const editingTrackSlice: import("@reduxjs/toolkit").Slice<Track | null, {
|
|
8
|
+
updateEditingTrack: (state: import("immer/dist/internal").WritableDraft<Track> | null, action: PayloadAction<EditingTrackAction>) => Track;
|
|
9
|
+
resetEditingTrack: () => Track | null;
|
|
10
|
+
}, "editingTrack">;
|
|
11
|
+
export declare const updateEditingTrack: (track: Track) => AppThunk;
|
|
12
|
+
export declare const resetEditingTrack: () => AppThunk;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
+
import { ManuCapAction, User } from "./model";
|
|
3
|
+
import { AppThunk } from "./manuCapReducers";
|
|
4
|
+
export interface UserAction extends ManuCapAction {
|
|
5
|
+
captionUser: User;
|
|
6
|
+
}
|
|
7
|
+
export declare const userSlice: import("@reduxjs/toolkit").Slice<User | null, {
|
|
8
|
+
updateCaptionUser: (_state: import("immer/dist/internal").WritableDraft<User> | null, action: PayloadAction<UserAction>) => User;
|
|
9
|
+
}, "captionUser">;
|
|
10
|
+
export declare const updateCaptionUser: (user: User) => AppThunk;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { KeyboardEventHandler } from "react";
|
|
3
|
+
export declare enum Character {
|
|
4
|
+
O_CHAR = 79,
|
|
5
|
+
K_CHAR = 75,
|
|
6
|
+
B_CHAR = 66,
|
|
7
|
+
ARROW_LEFT = 37,
|
|
8
|
+
ARROW_UP = 38,
|
|
9
|
+
ARROW_RIGHT = 39,
|
|
10
|
+
ARROW_DOWN = 40,
|
|
11
|
+
SLASH_CHAR = 191,
|
|
12
|
+
ENTER = 13,
|
|
13
|
+
ESCAPE = 27,
|
|
14
|
+
SPACE = 32,
|
|
15
|
+
TAB = 9
|
|
16
|
+
}
|
|
17
|
+
export declare enum KeyCombination {
|
|
18
|
+
MOD_SHIFT_O = "mod+shift+o",
|
|
19
|
+
ALT_SHIFT_O = "alt+shift+o",
|
|
20
|
+
MOD_SHIFT_K = "mod+shift+k",
|
|
21
|
+
ALT_SHIFT_K = "alt+shift+k",
|
|
22
|
+
MOD_SHIFT_LEFT = "mod+shift+left",
|
|
23
|
+
ALT_SHIFT_LEFT = "alt+shift+left",
|
|
24
|
+
MOD_SHIFT_UP = "mod+shift+up",
|
|
25
|
+
ALT_SHIFT_UP = "alt+shift+up",
|
|
26
|
+
MOD_SHIFT_RIGHT = "mod+shift+right",
|
|
27
|
+
ALT_SHIFT_RIGHT = "alt+shift+right",
|
|
28
|
+
MOD_SHIFT_DOWN = "mod+shift+down",
|
|
29
|
+
ALT_SHIFT_DOWN = "alt+shift+down",
|
|
30
|
+
MOD_SHIFT_SLASH = "mod+shift+/",
|
|
31
|
+
ALT_SHIFT_SLASH = "alt+shift+/",
|
|
32
|
+
ESCAPE = "escape",
|
|
33
|
+
ENTER = "enter",
|
|
34
|
+
MOD_SHIFT_ESCAPE = "mod+shift+escape",
|
|
35
|
+
ALT_SHIFT_ESCAPE = "alt+shift+escape"
|
|
36
|
+
}
|
|
37
|
+
export declare const mousetrapBindings: Map<string, KeyCombination>;
|
|
38
|
+
export declare const characterBindings: Map<Character, string>;
|
|
39
|
+
export declare const getActionByKeyboardEvent: (e: React.KeyboardEvent<KeyboardEventHandler>) => string | undefined;
|
|
40
|
+
export declare const triggerMouseTrapAction: (e: React.KeyboardEvent<KeyboardEventHandler>) => void;
|
|
41
|
+
export declare const getShortcutAsText: (char: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface TimeInUnits {
|
|
2
|
+
hours: number;
|
|
3
|
+
minutes: number;
|
|
4
|
+
seconds: number;
|
|
5
|
+
millis: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const getTimeInUnits: (timeInSeconds: number) => TimeInUnits;
|
|
8
|
+
export declare const getTimeString: (timeInSeconds: number, hideHours?: Function) => string;
|
|
9
|
+
export declare const getTimeFromString: (timeString: string) => number;
|
|
10
|
+
export declare const formatStartOrEndTime: (value: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "video.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactWrapper } from "enzyme";
|
|
2
|
+
import { RenderResult } from "@testing-library/react";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
export declare const removeVideoPlayerDynamicValue: (htmlString: string) => string;
|
|
5
|
+
export declare const removeDraftJsDynamicValues: (htmlString: string) => string;
|
|
6
|
+
export declare const fixVideoPlayerInvalidTime: (htmlString: string) => string;
|
|
7
|
+
export declare const removeBackgroundColorStyle: (htmlString: string) => string;
|
|
8
|
+
export declare const spellCheckOptionPredicate: (optionIndex: number) => (wrapper: ReactWrapper) => boolean;
|
|
9
|
+
export declare const removeIds: (html: string) => string;
|
|
10
|
+
export declare const renderWithPortal: (element: ReactElement) => RenderResult;
|
|
11
|
+
export interface MockedDebouncedFunction extends Function {
|
|
12
|
+
cancel: Function;
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EnhancedStore } from "@reduxjs/toolkit";
|
|
2
|
+
export declare const createTestingStore: (initialState?: Record<string, unknown>) => EnhancedStore;
|
|
3
|
+
declare const _default: EnhancedStore<any, import("redux").AnyAction, readonly import("redux").Middleware<{}, any, import("redux").Dispatch<import("redux").AnyAction>>[]>;
|
|
4
|
+
export default _default;
|