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.
Files changed (195) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +43 -0
  3. package/dist/@types/index.d.ts +62 -0
  4. package/dist/dist.css +3730 -0
  5. package/dist/index.d.ts +4 -0
  6. package/dist/index.js +209323 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/indexLibrary.d.ts +13 -0
  9. package/dist/indexLibrary.spec.d.ts +1 -0
  10. package/dist/manucap/CompleteButton.d.ts +9 -0
  11. package/dist/manucap/CompleteButton.spec.d.ts +1 -0
  12. package/dist/manucap/CueListToolbar.d.ts +11 -0
  13. package/dist/manucap/CueListToolbar.spec.d.ts +1 -0
  14. package/dist/manucap/ManuCap.d.ts +23 -0
  15. package/dist/manucap/ManuCap.spec.d.ts +1 -0
  16. package/dist/manucap/common/DateTime.d.ts +7 -0
  17. package/dist/manucap/common/DateTime.spec.d.ts +1 -0
  18. package/dist/manucap/common/JoiError.d.ts +8 -0
  19. package/dist/manucap/cues/CueErrorAlert.d.ts +3 -0
  20. package/dist/manucap/cues/CueErrorAlert.spec.d.ts +1 -0
  21. package/dist/manucap/cues/CueErrorLine.d.ts +8 -0
  22. package/dist/manucap/cues/CueErrorLine.spec.d.ts +1 -0
  23. package/dist/manucap/cues/comments/CueComments.d.ts +9 -0
  24. package/dist/manucap/cues/comments/CueComments.spec.d.ts +1 -0
  25. package/dist/manucap/cues/comments/commentsSlices.d.ts +4 -0
  26. package/dist/manucap/cues/cueLine/CueActionsPanel.d.ts +10 -0
  27. package/dist/manucap/cues/cueLine/CueActionsPanel.spec.d.ts +2 -0
  28. package/dist/manucap/cues/cueLine/CueLine.d.ts +18 -0
  29. package/dist/manucap/cues/cueLine/CueLine.fake.children.spec.d.ts +3 -0
  30. package/dist/manucap/cues/cueLine/CueLine.real.children.spec.d.ts +1 -0
  31. package/dist/manucap/cues/cueLine/CueLineCounts.d.ts +9 -0
  32. package/dist/manucap/cues/cueLine/CueLineCounts.spec.d.ts +2 -0
  33. package/dist/manucap/cues/cueLine/CueLineFlap.d.ts +13 -0
  34. package/dist/manucap/cues/cueLine/CueLineFlap.spec.d.ts +1 -0
  35. package/dist/manucap/cues/cueLine/PlayCueButton.d.ts +8 -0
  36. package/dist/manucap/cues/cueLine/PlayCueButton.spec.d.ts +2 -0
  37. package/dist/manucap/cues/cueUtils.d.ts +62 -0
  38. package/dist/manucap/cues/cueUtils.spec.d.ts +1 -0
  39. package/dist/manucap/cues/cueVerifications.d.ts +14 -0
  40. package/dist/manucap/cues/cueVerifications.spec.d.ts +1 -0
  41. package/dist/manucap/cues/cuesList/CuesList.d.ts +12 -0
  42. package/dist/manucap/cues/cuesList/CuesList.fake.line.spec.d.ts +1 -0
  43. package/dist/manucap/cues/cuesList/CuesList.spec.d.ts +1 -0
  44. package/dist/manucap/cues/cuesList/cuesListActions.d.ts +40 -0
  45. package/dist/manucap/cues/cuesList/cuesListActions.spec.d.ts +1 -0
  46. package/dist/manucap/cues/cuesList/cuesListScrollSlice.d.ts +17 -0
  47. package/dist/manucap/cues/cuesList/cuesListScrollSlice.spec.d.ts +1 -0
  48. package/dist/manucap/cues/cuesList/cuesListSlices.d.ts +82 -0
  49. package/dist/manucap/cues/cuesList/cuesListTestUtils.d.ts +4 -0
  50. package/dist/manucap/cues/cuesList/cuesListTimeMatching.d.ts +6 -0
  51. package/dist/manucap/cues/cuesList/useMatchedCuesAsCsv.d.ts +4 -0
  52. package/dist/manucap/cues/cuesList/useMatchedCuesAsCsv.spec.d.ts +1 -0
  53. package/dist/manucap/cues/edit/AddCueLineButton.d.ts +8 -0
  54. package/dist/manucap/cues/edit/AddCueLineButton.spec.d.ts +2 -0
  55. package/dist/manucap/cues/edit/CueCategoryButton.d.ts +8 -0
  56. package/dist/manucap/cues/edit/CueCategoryButton.spec.d.ts +1 -0
  57. package/dist/manucap/cues/edit/CueEdit.d.ts +12 -0
  58. package/dist/manucap/cues/edit/CueEdit.fake.debounce.spec.d.ts +2 -0
  59. package/dist/manucap/cues/edit/CueEdit.fake.editor.spec.d.ts +2 -0
  60. package/dist/manucap/cues/edit/CueExtraCharacters.d.ts +7 -0
  61. package/dist/manucap/cues/edit/CueExtraCharacters.spec.d.ts +1 -0
  62. package/dist/manucap/cues/edit/CueTextEditor.composition.spec.d.ts +2 -0
  63. package/dist/manucap/cues/edit/CueTextEditor.d.ts +18 -0
  64. package/dist/manucap/cues/edit/CueTextEditor.fake.debounce.spec.d.ts +2 -0
  65. package/dist/manucap/cues/edit/CueTextEditor.real.debounce.spec.d.ts +2 -0
  66. package/dist/manucap/cues/edit/CueTextEditor.spellcheck.keyboard.shortcuts.spec.d.ts +2 -0
  67. package/dist/manucap/cues/edit/DeleteCueLineButton.d.ts +6 -0
  68. package/dist/manucap/cues/edit/DeleteCueLineButton.spec.d.ts +2 -0
  69. package/dist/manucap/cues/edit/InlineStyleButton.d.ts +11 -0
  70. package/dist/manucap/cues/edit/InlineStyleButton.spec.d.ts +1 -0
  71. package/dist/manucap/cues/edit/PositionButton.d.ts +8 -0
  72. package/dist/manucap/cues/edit/PositionButton.spec.d.ts +2 -0
  73. package/dist/manucap/cues/edit/SplitCueLineButton.d.ts +6 -0
  74. package/dist/manucap/cues/edit/SplitCueLineButton.spec.d.ts +2 -0
  75. package/dist/manucap/cues/edit/TimeEditor.d.ts +11 -0
  76. package/dist/manucap/cues/edit/TimeEditor.spec.d.ts +1 -0
  77. package/dist/manucap/cues/edit/cueEditorSlices.d.ts +25 -0
  78. package/dist/manucap/cues/edit/cueEditorSlices.spec.d.ts +1 -0
  79. package/dist/manucap/cues/edit/cueTextConverter.d.ts +4 -0
  80. package/dist/manucap/cues/edit/cueTextConverter.spec.d.ts +1 -0
  81. package/dist/manucap/cues/edit/editUtils.d.ts +3 -0
  82. package/dist/manucap/cues/merge/MergeEditor.d.ts +3 -0
  83. package/dist/manucap/cues/merge/MergeEditor.spec.d.ts +1 -0
  84. package/dist/manucap/cues/merge/mergeSlices.d.ts +11 -0
  85. package/dist/manucap/cues/merge/mergeSlices.spec.d.ts +1 -0
  86. package/dist/manucap/cues/saveCueDeleteSlices.d.ts +12 -0
  87. package/dist/manucap/cues/saveCueDeleteSlices.spec.d.ts +1 -0
  88. package/dist/manucap/cues/saveCueUpdateSlices.d.ts +13 -0
  89. package/dist/manucap/cues/saveCueUpdateSlices.spec.d.ts +1 -0
  90. package/dist/manucap/cues/saveSlices.d.ts +16 -0
  91. package/dist/manucap/cues/saveSlices.spec.d.ts +1 -0
  92. package/dist/manucap/cues/searchReplace/SearchReplaceEditor.d.ts +3 -0
  93. package/dist/manucap/cues/searchReplace/SearchReplaceEditor.spec.d.ts +1 -0
  94. package/dist/manucap/cues/searchReplace/SearchReplaceMatch.d.ts +6 -0
  95. package/dist/manucap/cues/searchReplace/SearchReplaceMatch.spec.d.ts +1 -0
  96. package/dist/manucap/cues/searchReplace/model.d.ts +16 -0
  97. package/dist/manucap/cues/searchReplace/searchReplaceSlices.d.ts +22 -0
  98. package/dist/manucap/cues/searchReplace/searchReplaceSlices.spec.d.ts +1 -0
  99. package/dist/manucap/cues/spellCheck/SpellCheckIssue.d.ts +17 -0
  100. package/dist/manucap/cues/spellCheck/SpellCheckIssue.spec.d.ts +1 -0
  101. package/dist/manucap/cues/spellCheck/model.d.ts +33 -0
  102. package/dist/manucap/cues/spellCheck/spellCheckFetch.d.ts +5 -0
  103. package/dist/manucap/cues/spellCheck/spellCheckerUtils.d.ts +6 -0
  104. package/dist/manucap/cues/spellCheck/spellCheckerUtils.spec.d.ts +1 -0
  105. package/dist/manucap/cues/spellCheck/spellcheckerSettingsSlice.spec.d.ts +1 -0
  106. package/dist/manucap/cues/view/ClickCueWrapper.d.ts +13 -0
  107. package/dist/manucap/cues/view/ClickCueWrapper.spec.d.ts +2 -0
  108. package/dist/manucap/cues/view/CueView.d.ts +21 -0
  109. package/dist/manucap/cues/view/CueView.spec.d.ts +2 -0
  110. package/dist/manucap/cues/view/InsertCueButton.d.ts +3 -0
  111. package/dist/manucap/cues/view/sourceCueSlices.d.ts +11 -0
  112. package/dist/manucap/cues/view/sourceCueSlices.spec.d.ts +1 -0
  113. package/dist/manucap/loadingIndicatorSlices.d.ts +2 -0
  114. package/dist/manucap/loadingIndicatorSlices.spec.d.ts +1 -0
  115. package/dist/manucap/manuCapReducers.d.ts +65 -0
  116. package/dist/manucap/model.d.ts +174 -0
  117. package/dist/manucap/player/EditingVideoPlayer.d.ts +10 -0
  118. package/dist/manucap/player/EditingVideoPlayer.fake.player.spec.d.ts +2 -0
  119. package/dist/manucap/player/EditingVideoPlayer.spec.d.ts +1 -0
  120. package/dist/manucap/player/VideoPlayer.d.ts +48 -0
  121. package/dist/manucap/player/VideoPlayer.fake.player.spec.d.ts +1 -0
  122. package/dist/manucap/player/VideoPlayer.spec.d.ts +1 -0
  123. package/dist/manucap/player/VideoPlayer.wavesurfer.spec.d.ts +1 -0
  124. package/dist/manucap/player/playbackSlices.d.ts +11 -0
  125. package/dist/manucap/player/playbackSlices.spec.d.ts +1 -0
  126. package/dist/manucap/player/textTrackOptionsConversion.d.ts +3 -0
  127. package/dist/manucap/player/textTrackOptionsConversion.spec.d.ts +1 -0
  128. package/dist/manucap/player/waveformSlices.d.ts +4 -0
  129. package/dist/manucap/player/waveformSlices.spec.d.ts +1 -0
  130. package/dist/manucap/spellcheckerSettingsSlice.d.ts +4 -0
  131. package/dist/manucap/toolbox/CaptionOverlapToggle.d.ts +8 -0
  132. package/dist/manucap/toolbox/CaptionOverlapToggle.spec.d.ts +1 -0
  133. package/dist/manucap/toolbox/CueCommentsToggle.d.ts +6 -0
  134. package/dist/manucap/toolbox/CueCommentsToggle.spec.d.ts +1 -0
  135. package/dist/manucap/toolbox/ImportTrackCuesButton.d.ts +7 -0
  136. package/dist/manucap/toolbox/ImportTrackCuesButton.spec.d.ts +1 -0
  137. package/dist/manucap/toolbox/MergeCuesButton.d.ts +6 -0
  138. package/dist/manucap/toolbox/MergeCuesButton.spec.d.ts +1 -0
  139. package/dist/manucap/toolbox/SeachReplaceButton.spec.d.ts +1 -0
  140. package/dist/manucap/toolbox/SearchReplaceButton.d.ts +3 -0
  141. package/dist/manucap/toolbox/SyncCuesButton.d.ts +6 -0
  142. package/dist/manucap/toolbox/SyncCuesButton.spec.d.ts +1 -0
  143. package/dist/manucap/toolbox/TimecodesLockToggle.d.ts +6 -0
  144. package/dist/manucap/toolbox/TimecodesLockToggle.spec.d.ts +1 -0
  145. package/dist/manucap/toolbox/ToggleButton.d.ts +11 -0
  146. package/dist/manucap/toolbox/ToggleButton.spec.d.ts +1 -0
  147. package/dist/manucap/toolbox/Toolbox.d.ts +11 -0
  148. package/dist/manucap/toolbox/Toolbox.spec.d.ts +1 -0
  149. package/dist/manucap/toolbox/WaveformToggle.d.ts +6 -0
  150. package/dist/manucap/toolbox/WaveformToggle.spec.d.ts +1 -0
  151. package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsButton.d.ts +3 -0
  152. package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsButton.spec.d.ts +2 -0
  153. package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsForm.d.ts +7 -0
  154. package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsForm.spec.d.ts +1 -0
  155. package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsModal.d.ts +7 -0
  156. package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsModal.spec.d.ts +1 -0
  157. package/dist/manucap/toolbox/captionSpecifications/captionSpecificationSlice.d.ts +11 -0
  158. package/dist/manucap/toolbox/captionSpecifications/captionSpecificationSlice.spec.d.ts +1 -0
  159. package/dist/manucap/toolbox/export/ExportSourceTrackCuesButton.d.ts +6 -0
  160. package/dist/manucap/toolbox/export/ExportSourceTrackCuesButton.spec.d.ts +1 -0
  161. package/dist/manucap/toolbox/export/ExportTrackCuesButton.d.ts +7 -0
  162. package/dist/manucap/toolbox/export/ExportTrackCuesButton.spec.d.ts +1 -0
  163. package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutLabel.d.ts +11 -0
  164. package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutLabel.spec.d.ts +1 -0
  165. package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcuts.d.ts +7 -0
  166. package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcuts.spec.d.ts +1 -0
  167. package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutsModal.d.ts +7 -0
  168. package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutsModal.spec.d.ts +1 -0
  169. package/dist/manucap/toolbox/model.d.ts +17 -0
  170. package/dist/manucap/toolbox/shift/ShiftTimeButton.d.ts +6 -0
  171. package/dist/manucap/toolbox/shift/ShiftTimeButton.spec.d.ts +1 -0
  172. package/dist/manucap/toolbox/shift/ShiftTimeModal.d.ts +7 -0
  173. package/dist/manucap/toolbox/shift/ShiftTimeModal.spec.d.ts +2 -0
  174. package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsButton.d.ts +3 -0
  175. package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsButton.spec.d.ts +2 -0
  176. package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsForm.d.ts +7 -0
  177. package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsForm.spec.d.ts +1 -0
  178. package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsModal.d.ts +7 -0
  179. package/dist/manucap/toolbox/subtitleSpecifications/SubtitleSpecificationsModal.spec.d.ts +1 -0
  180. package/dist/manucap/toolbox/subtitleSpecifications/subtitleSpecificationSlice.d.ts +11 -0
  181. package/dist/manucap/toolbox/subtitleSpecifications/subtitleSpecificationSlice.spec.d.ts +1 -0
  182. package/dist/manucap/trackSlices.d.ts +13 -0
  183. package/dist/manucap/trackSlices.spec.d.ts +1 -0
  184. package/dist/manucap/userSlices.d.ts +10 -0
  185. package/dist/manucap/userSlices.spec.d.ts +1 -0
  186. package/dist/manucap/utils/manuCapUtils.d.ts +3 -0
  187. package/dist/manucap/utils/manuCapUtils.spec.d.ts +1 -0
  188. package/dist/manucap/utils/shortcutConstants.d.ts +41 -0
  189. package/dist/manucap/utils/shortcutConstants.spec.d.ts +1 -0
  190. package/dist/manucap/utils/timeUtils.d.ts +10 -0
  191. package/dist/manucap/utils/timeUtils.spec.d.ts +1 -0
  192. package/dist/testUtils/initBrowserEnvironment.d.ts +1 -0
  193. package/dist/testUtils/testUtils.d.ts +13 -0
  194. package/dist/testUtils/testingStore.d.ts +4 -0
  195. 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,2 @@
1
+ import "../../testUtils/initBrowserEnvironment";
2
+ import "@testing-library/jest-dom/extend-expect";
@@ -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,3 @@
1
+ import { Track } from "../model";
2
+ import videojs from "video.js";
3
+ export declare const convertToTextTrackOptions: (track: Track) => videojs.TextTrackOptions;
@@ -0,0 +1,4 @@
1
+ import { PayloadAction } from "@reduxjs/toolkit";
2
+ export declare const waveformVisibleSlice: import("@reduxjs/toolkit").Slice<boolean, {
3
+ setWaveformVisible: (_state: boolean, action: PayloadAction<boolean>) => boolean;
4
+ }, "waveformVisible">;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Slice } from "@reduxjs/toolkit";
2
+ import { AppThunk } from "./manuCapReducers";
3
+ export declare const spellcheckerSettingsSlice: Slice;
4
+ export declare const setSpellCheckDomain: (spellCheckDomain: string | null | undefined) => AppThunk;
@@ -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,6 @@
1
+ import { MouseEvent, ReactElement } from "react";
2
+ interface Props {
3
+ onClick: (event: MouseEvent<HTMLElement>) => void;
4
+ }
5
+ export declare const CueCommentsToggle: (props: Props) => ReactElement;
6
+ export default CueCommentsToggle;
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ handleImport: () => void;
4
+ disabled?: boolean;
5
+ }
6
+ declare const ImportTrackCuesButton: (props: Props) => ReactElement;
7
+ export default ImportTrackCuesButton;
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,6 @@
1
+ import { MouseEvent, ReactElement } from "react";
2
+ interface Props {
3
+ onClick: (event: MouseEvent<HTMLElement>) => void;
4
+ }
5
+ declare const MergeCuesButton: (props: Props) => ReactElement;
6
+ export default MergeCuesButton;
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,3 @@
1
+ import { ReactElement } from "react";
2
+ declare const SearchReplaceButton: () => ReactElement;
3
+ export default SearchReplaceButton;
@@ -0,0 +1,6 @@
1
+ import { MouseEvent, ReactElement } from "react";
2
+ interface Props {
3
+ onClick: (event: MouseEvent<HTMLElement>) => void;
4
+ }
5
+ declare const SyncCuesButton: (props: Props) => ReactElement;
6
+ export default SyncCuesButton;
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,6 @@
1
+ import { MouseEvent, ReactElement } from "react";
2
+ interface Props {
3
+ onClick: (event: MouseEvent<HTMLElement>) => void;
4
+ }
5
+ export declare const TimecodesLockToggle: (props: Props) => ReactElement;
6
+ export default TimecodesLockToggle;
@@ -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,6 @@
1
+ import { MouseEvent, ReactElement } from "react";
2
+ interface Props {
3
+ onClick: (event: MouseEvent<HTMLElement>) => void;
4
+ }
5
+ export declare const WaveformToggle: (props: Props) => ReactElement;
6
+ export default WaveformToggle;
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,3 @@
1
+ import { ReactElement } from "react";
2
+ declare const CaptionSpecificationsButton: () => ReactElement;
3
+ export default CaptionSpecificationsButton;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -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,7 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ show: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare const CaptionSpecificationsModal: (props: Props) => ReactElement;
7
+ export default CaptionSpecificationsModal;
@@ -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,6 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ handleExport: () => void;
4
+ }
5
+ declare const ExportSourceTrackCuesButton: (props: Props) => ReactElement;
6
+ export default ExportSourceTrackCuesButton;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from "react";
2
+ import { Track } from "../../model";
3
+ interface Props {
4
+ handleExport: (editingTrack: Track | null) => void;
5
+ }
6
+ declare const ExportTrackCuesButton: (props: Props) => ReactElement;
7
+ export default ExportTrackCuesButton;
@@ -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,7 @@
1
+ import { ReactElement, Dispatch, SetStateAction } from "react";
2
+ interface Props {
3
+ setShow: Dispatch<SetStateAction<boolean>>;
4
+ show: boolean;
5
+ }
6
+ declare const KeyboardShortcuts: ({ setShow, show }: Props) => ReactElement;
7
+ export default KeyboardShortcuts;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ onClose: () => void;
4
+ show: boolean;
5
+ }
6
+ declare const KeyboardShortcutsModal: ({ show, onClose }: Props) => JSX.Element;
7
+ export default KeyboardShortcutsModal;
@@ -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,6 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ onClick: () => void;
4
+ }
5
+ declare const ShiftTimeButton: (props: Props) => ReactElement;
6
+ export default ShiftTimeButton;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ show: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare const ShiftTimeModal: (props: Props) => ReactElement;
7
+ export default ShiftTimeModal;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,3 @@
1
+ import { ReactElement } from "react";
2
+ declare const SubtitleSpecificationsButton: () => ReactElement;
3
+ export default SubtitleSpecificationsButton;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -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,7 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ show: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare const SubtitleSpecificationsModal: (props: Props) => ReactElement;
7
+ export default SubtitleSpecificationsModal;
@@ -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,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,3 @@
1
+ import { LoadingIndicator, Track } from "../model";
2
+ export declare const isDirectTranslationTrack: (editingTrack: Track | null) => boolean;
3
+ export declare const hasDataLoaded: (editingTrack: Track | null, loadingIndicator: LoadingIndicator) => boolean | null;
@@ -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;