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,13 @@
1
+ import { Reducers } from "./manucap/manuCapReducers";
2
+ import ManuCap from "./manucap/ManuCap";
3
+ import VideoPlayer from "./manucap/player/VideoPlayer";
4
+ declare const Actions: {
5
+ updateEditingTrack: (track: import("./manucap/model").Track) => import("./manucap/manuCapReducers").AppThunk;
6
+ updateCues: (cues: import("./manucap/model").CueDto[]) => import("./manucap/manuCapReducers").AppThunk;
7
+ updateSourceCues: (cues: import("./manucap/model").CueDto[]) => import("./manucap/manuCapReducers").AppThunk;
8
+ updateCaptionUser: (user: import("./manucap/model").User) => import("./manucap/manuCapReducers").AppThunk;
9
+ };
10
+ declare const Hooks: {
11
+ useMatchedCuesAsCsv: () => Function;
12
+ };
13
+ export { VideoPlayer, Reducers, ManuCap, Actions, Hooks };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from "react";
2
+ import { SaveState, TrackCues } from "./model";
3
+ interface Props {
4
+ onComplete: (trackCues: TrackCues) => void;
5
+ disabled?: boolean;
6
+ saveState: SaveState;
7
+ }
8
+ declare const CompleteButton: (props: Props) => ReactElement;
9
+ export default CompleteButton;
@@ -0,0 +1 @@
1
+ import "../testUtils/initBrowserEnvironment";
@@ -0,0 +1,11 @@
1
+ import { ReactElement } from "react";
2
+ import { SaveState, Track, TrackCues } from "./model";
3
+ export interface Props {
4
+ onViewTrackHistory: () => void;
5
+ editingTrack: Track | null;
6
+ onComplete: (completeAction: TrackCues) => void;
7
+ editDisabled?: boolean;
8
+ saveState: SaveState;
9
+ }
10
+ declare const CueListToolbar: (props: Props) => ReactElement;
11
+ export default CueListToolbar;
@@ -0,0 +1 @@
1
+ import "../testUtils/initBrowserEnvironment";
@@ -0,0 +1,23 @@
1
+ import "../colors.css";
2
+ import "../global.css";
3
+ import { ReactElement } from "react";
4
+ import { SaveActionParameters, TrackCues, Track, SaveTrackCue, SaveState } from "./model";
5
+ export interface ManuCapProps {
6
+ mp4: string;
7
+ poster: string;
8
+ waveform?: string;
9
+ onViewTrackHistory: () => void;
10
+ onSave: (saveAction: SaveActionParameters) => void;
11
+ onUpdateCue: (trackCue: SaveTrackCue) => void;
12
+ onDeleteCue: (trackCue: SaveTrackCue) => void;
13
+ onComplete: (completeAction: TrackCues) => void;
14
+ onExportFile: (trackVersionExport: Track | null) => void;
15
+ onExportSourceFile: () => void;
16
+ onImportFile: () => void;
17
+ spellCheckerDomain?: string;
18
+ commentAuthor?: string;
19
+ editDisabled?: boolean;
20
+ saveState: SaveState;
21
+ }
22
+ declare const ManuCap: (props: ManuCapProps) => ReactElement;
23
+ export default ManuCap;
@@ -0,0 +1 @@
1
+ import "../testUtils/initBrowserEnvironment";
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from "react";
2
+ export declare const getUserLocale: () => string;
3
+ interface Props {
4
+ value?: string;
5
+ }
6
+ declare const DateTime: (props: Props) => ReactElement;
7
+ export default DateTime;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from "react";
2
+ import { FieldErrors } from "react-hook-form";
3
+ interface ErrorProps {
4
+ errors: FieldErrors;
5
+ field: string;
6
+ }
7
+ declare const JoiError: (props: ErrorProps) => ReactElement | null;
8
+ export default JoiError;
@@ -0,0 +1,3 @@
1
+ import { ReactElement } from "react";
2
+ declare const CueErrorAlert: () => ReactElement;
3
+ export default CueErrorAlert;
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,8 @@
1
+ import { CueError } from "../model";
2
+ import { ReactElement } from "react";
3
+ interface Props {
4
+ cueIndex: number;
5
+ cueError: CueError;
6
+ }
7
+ declare const CueErrorLine: (props: Props) => ReactElement;
8
+ export default CueErrorLine;
@@ -0,0 +1 @@
1
+ import "../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from "react";
2
+ import { CueDto } from "../../model";
3
+ interface Props {
4
+ index: number;
5
+ cue: CueDto;
6
+ commentAuthor?: string;
7
+ }
8
+ declare const CueComments: (props: Props) => ReactElement;
9
+ export default CueComments;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,4 @@
1
+ import { PayloadAction } from "@reduxjs/toolkit";
2
+ export declare const commentsVisibleSlice: import("@reduxjs/toolkit").Slice<boolean, {
3
+ setCommentsVisible: (_state: boolean, action: PayloadAction<boolean>) => boolean;
4
+ }, "commentsVisible">;
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from "react";
2
+ import { CueDto } from "../../model";
3
+ interface Props {
4
+ index: number;
5
+ cue: CueDto;
6
+ sourceCueIndexes: number[];
7
+ isEdit: boolean;
8
+ }
9
+ export declare const CueActionsPanel: (props: Props) => ReactElement;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from "react";
2
+ import * as React from "react";
3
+ import { CueLineDto } from "../../model";
4
+ export interface CueLineRowProps {
5
+ targetCuesLength: number;
6
+ withoutSourceCues: boolean;
7
+ matchedCues: CueLineDto[];
8
+ commentAuthor?: string;
9
+ }
10
+ export interface CueLineProps {
11
+ rowIndex: number;
12
+ data: CueLineDto;
13
+ rowProps: CueLineRowProps;
14
+ rowRef: React.RefObject<HTMLDivElement>;
15
+ editDisabled?: boolean;
16
+ }
17
+ declare const _default: React.MemoExoticComponent<(props: CueLineProps) => ReactElement<any, string | React.JSXElementConstructor<any>>>;
18
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
3
+ import "../edit/CueTextEditor";
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from "react";
2
+ import { EditorState } from "draft-js";
3
+ interface Props {
4
+ cueIndex: number;
5
+ vttCue: VTTCue;
6
+ editorState: EditorState;
7
+ }
8
+ declare const CueLineCounts: (props: Props) => ReactElement;
9
+ export default CueLineCounts;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from "react";
2
+ import { CueDtoWithIndex, CueError, CueLineState } from "../../model";
3
+ interface Props {
4
+ rowIndex: number;
5
+ cueLineState: CueLineState;
6
+ cues: CueDtoWithIndex[] | undefined;
7
+ cuesErrors?: CueError[];
8
+ showErrors?: boolean;
9
+ editDisabled?: boolean;
10
+ cueCommentsCount?: number;
11
+ }
12
+ declare const CueLineFlap: (props: Props) => ReactElement;
13
+ export default CueLineFlap;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from "react";
2
+ import { CueDto } from "../../model";
3
+ interface Props {
4
+ cue: CueDto;
5
+ cueIndex: number;
6
+ }
7
+ declare const PlayCueButton: (props: Props) => ReactElement;
8
+ export default PlayCueButton;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,62 @@
1
+ import Immutable from "immutable";
2
+ export declare const isSafari: () => boolean;
3
+ export declare const copyNonConstructorProperties: (newCue: VTTCue, oldCue: VTTCue) => void;
4
+ /**
5
+ * Constructs array of cue values used for stopping FLUX loops
6
+ *
7
+ * NOTE: This function is tested as part of CueTextEditor tests
8
+ * @param cue Cue object to construct values from
9
+ */
10
+ export declare const constructCueValuesArray: (cue: VTTCue) => any[];
11
+ export interface PositionStyle {
12
+ line: LineAndPositionSetting;
13
+ align: AlignSetting;
14
+ positionAlign: PositionAlignSetting;
15
+ position: LineAndPositionSetting;
16
+ }
17
+ export declare enum Position {
18
+ Row1Column1 = 0,
19
+ Row1Column2 = 1,
20
+ Row1Column3 = 2,
21
+ Row1Column4 = 3,
22
+ Row1Column5 = 4,
23
+ Row2Column1 = 5,
24
+ Row2Column2 = 6,
25
+ Row2Column3 = 7,
26
+ Row2Column4 = 8,
27
+ Row2Column5 = 9,
28
+ Row3Column1 = 10,
29
+ Row3Column2 = 11,
30
+ Row3Column3 = 12,
31
+ Row3Column4 = 13,
32
+ Row3Column5 = 14,
33
+ Row4Column1 = 15,
34
+ Row4Column2 = 16,
35
+ Row4Column3 = 17,
36
+ Row4Column4 = 18,
37
+ Row4Column5 = 19,
38
+ Row5Column1 = 20,
39
+ Row5Column2 = 21,
40
+ Row5Column3 = 22,
41
+ Row5Column4 = 23,
42
+ Row5Column5 = 24
43
+ }
44
+ export interface PositionIcon {
45
+ position: Position;
46
+ iconText: string;
47
+ leftPadding: string;
48
+ }
49
+ export declare const positionStyles: Immutable.Map<Position, PositionStyle>;
50
+ export declare const positionIcons: {
51
+ position: Position;
52
+ iconText: string;
53
+ leftPadding: string;
54
+ }[];
55
+ export declare const findPositionIcon: (vttCue: VTTCue) => PositionIcon;
56
+ export declare const cueCategoryToPrettyName: {
57
+ DIALOGUE: string;
58
+ ONSCREEN_TEXT: string;
59
+ AUDIO_DESCRIPTION: string;
60
+ LYRICS: string;
61
+ };
62
+ export declare const getWordCount: (text: string) => number;
@@ -0,0 +1 @@
1
+ import "video.js";
@@ -0,0 +1,14 @@
1
+ import { CueDto, CueError, TimeGapLimit, Track } from "../model";
2
+ import { CaptionSpecification } from "../toolbox/model";
3
+ export declare const checkLineLimitation: (text: string, captionSpecification: CaptionSpecification | null) => boolean;
4
+ export declare const checkCharacterLimitation: (text: string, captionSpecification: CaptionSpecification | null) => boolean;
5
+ export declare const getTimeGapLimits: (captionSpecs: CaptionSpecification | null) => TimeGapLimit;
6
+ export declare const conformToRules: (cue: CueDto, captionSpecification: CaptionSpecification | null, previousCue?: CueDto, followingCue?: CueDto, overlapCaptions?: boolean) => CueError[];
7
+ export declare const conformToSpelling: (cue: CueDto) => CueError[];
8
+ export declare const applyInvalidRangePreventionStart: (vttCue: VTTCue, captionSpecification: CaptionSpecification | null) => boolean;
9
+ export declare const applyInvalidRangePreventionEnd: (vttCue: VTTCue, captionSpecification: CaptionSpecification | null) => boolean;
10
+ export declare const applyOverlapPreventionStart: (vttCue: VTTCue, previousCue: CueDto) => boolean;
11
+ export declare const applyOverlapPreventionEnd: (vttCue: VTTCue, followingCue: CueDto) => boolean;
12
+ export declare const applyInvalidChunkRangePreventionStart: (vttCue: VTTCue, originalVttCueStart: number, editingTrack: Track) => boolean;
13
+ export declare const applyInvalidChunkRangePreventionEnd: (vttCue: VTTCue, originalVttCueEnd: number, editingTrack: Track) => boolean;
14
+ export declare const verifyCueDuration: (vttCue: VTTCue, editingTrack: Track, timeGapLimit: TimeGapLimit) => boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from "react";
2
+ import { TrackCues, Track, SaveState } from "../../model";
3
+ interface Props {
4
+ editingTrack: Track | null;
5
+ commentAuthor?: string;
6
+ editDisabled?: boolean;
7
+ onViewTrackHistory: () => void;
8
+ onComplete: (completeAction: TrackCues) => void;
9
+ saveState: SaveState;
10
+ }
11
+ declare const CuesList: (props: Props) => ReactElement;
12
+ export default CuesList;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,40 @@
1
+ import "video.js";
2
+ import { Dispatch } from "react";
3
+ import { CueCategory, CueComment, CueDto, CuesWithRowIndex, ManuCapAction } from "../../model";
4
+ import { AppThunk, ManuCapState } from "../../manuCapReducers";
5
+ import { ShiftPosition } from "./cuesListSlices";
6
+ export declare const updateMatchedCue: (dispatch: Dispatch<ManuCapAction>, state: ManuCapState, index: number) => void;
7
+ export declare const applySpellcheckerOnCue: import("@reduxjs/toolkit").AsyncThunk<unknown, number, {}>;
8
+ export declare const updateMatchedCues: () => AppThunk;
9
+ export declare const checkSpelling: import("@reduxjs/toolkit").AsyncThunk<void, {
10
+ index: number;
11
+ }, {
12
+ state: ManuCapState;
13
+ }>;
14
+ export declare const checkErrors: import("@reduxjs/toolkit").AsyncThunk<void, {
15
+ index: number;
16
+ shouldSpellCheck: boolean;
17
+ }, {
18
+ state: ManuCapState;
19
+ }>;
20
+ export declare const validateCue: (dispatch: Dispatch<ManuCapAction | void>, index: number, shouldSpellCheck: boolean) => void;
21
+ export declare const updateVttCue: (idx: number, vttCue: VTTCue, editUuid?: string) => AppThunk;
22
+ export declare const updateVttCueTextOnly: (idx: number, vttCue: VTTCue, editUuid?: string) => AppThunk;
23
+ export declare const validateVttCue: (idx: number) => AppThunk;
24
+ export declare const removeIgnoredSpellcheckedMatchesFromAllCues: () => AppThunk;
25
+ export declare const validateCorruptedCues: import("@reduxjs/toolkit").AsyncThunk<void, string, {
26
+ state: ManuCapState;
27
+ }>;
28
+ export declare const updateCueCategory: (idx: number, cueCategory: CueCategory) => AppThunk;
29
+ export declare const addCueComment: (idx: number, cueComment: CueComment) => AppThunk;
30
+ export declare const deleteCueComment: (idx: number, cueCommentIndex: number) => AppThunk;
31
+ export declare const saveTrack: () => AppThunk;
32
+ export declare const addCue: (idx: number, sourceIndexes: number[]) => AppThunk;
33
+ export declare const splitCue: (idx: number) => AppThunk;
34
+ export declare const deleteCue: (idx: number) => AppThunk;
35
+ export declare const updateCues: (cues: CueDto[]) => AppThunk;
36
+ export declare const applyShiftTimeByPosition: (shiftPosition: ShiftPosition, cueIndex: number, shiftTime: number) => AppThunk;
37
+ export declare const syncCues: () => AppThunk;
38
+ export declare const addCuesToMergeList: (row: CuesWithRowIndex) => AppThunk;
39
+ export declare const removeCuesToMergeList: (row: CuesWithRowIndex) => AppThunk;
40
+ export declare const mergeCues: () => AppThunk;
@@ -0,0 +1 @@
1
+ import "video.js";
@@ -0,0 +1,17 @@
1
+ import { PayloadAction } from "@reduxjs/toolkit";
2
+ import { CueDto, ScrollPosition } from "../../model";
3
+ import { AppThunk } from "../../manuCapReducers";
4
+ export declare const DEFAULT_PAGE_SIZE = 100;
5
+ export declare const currentPlayerTimeSlice: import("@reduxjs/toolkit").Slice<number, {
6
+ setCurrentPlayerTime: (_state: number, action: PayloadAction<number>) => number;
7
+ }, "currentPlayerTime">;
8
+ export declare const setCurrentPlayerTime: (currentPlayerTime: number) => AppThunk;
9
+ export declare const scrollPositionSlice: import("@reduxjs/toolkit").Slice<number | null, {
10
+ changeFocusedCueIndex: (_state: number | null, action: PayloadAction<number | null>) => number | null;
11
+ }, "scrollPositionSlice">;
12
+ export declare const currentCueErrorIndexSlice: import("@reduxjs/toolkit").Slice<number, {
13
+ changeCurrentCueErrorPosition: (_state: number, action: PayloadAction<number>) => number;
14
+ }, "currentCueErrorIndex">;
15
+ export declare const matchCueTimeIndex: (cues: CueDto[], trackTime: number) => number;
16
+ export declare const changeScrollPosition: (scrollPosition: ScrollPosition, previousFocusedCueIndex?: number) => AppThunk;
17
+ export declare const scrollToFirstUnlockChunk: () => AppThunk;
@@ -0,0 +1,82 @@
1
+ import { PayloadAction } from "@reduxjs/toolkit";
2
+ import { CueCategory, CueComment, CueDto, CueError, CueLineDto, ManuCapAction } from "../../model";
3
+ import { SpellCheck } from "../spellCheck/model";
4
+ import { MatchedCuesWithEditingFocus } from "./cuesListTimeMatching";
5
+ export interface CueIndexAction extends ManuCapAction {
6
+ idx: number;
7
+ }
8
+ export interface VttCueAction extends CueIndexAction {
9
+ vttCue: VTTCue;
10
+ editUuid?: string;
11
+ }
12
+ export interface CueCategoryAction extends CueIndexAction {
13
+ cueCategory: CueCategory;
14
+ }
15
+ export interface CueCommentAction extends CueIndexAction {
16
+ cueCommentIndex?: number;
17
+ cueComment?: CueComment;
18
+ }
19
+ export interface CueAction extends CueIndexAction {
20
+ cue: CueDto;
21
+ }
22
+ interface CuesAction extends ManuCapAction {
23
+ cues: CueDto[];
24
+ }
25
+ export interface CueErrorsPayload {
26
+ errors: CueError[];
27
+ index: number;
28
+ }
29
+ export interface SpellCheckAction extends CueIndexAction {
30
+ spellCheck: SpellCheck;
31
+ }
32
+ export interface SpellCheckRemovalAction extends CueIndexAction {
33
+ trackId: string;
34
+ }
35
+ export interface MergeAction {
36
+ mergedCue: CueDto;
37
+ startIndex: number;
38
+ endIndex: number;
39
+ }
40
+ export interface ShiftAction {
41
+ shiftTime: number;
42
+ cueIndex: number;
43
+ shiftPosition: ShiftPosition;
44
+ }
45
+ export declare enum ShiftPosition {
46
+ ALL = 0,
47
+ BEFORE = 1,
48
+ AFTER = 2
49
+ }
50
+ export declare const cuesSlice: import("@reduxjs/toolkit").Slice<CueDto[], {
51
+ updateVttCue: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<VttCueAction>) => void;
52
+ updateCueCategory: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CueCategoryAction>) => void;
53
+ addCueComment: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CueCommentAction>) => void;
54
+ deleteCueComment: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CueCommentAction>) => void;
55
+ addSpellCheck: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<SpellCheckAction>) => void;
56
+ removeIgnoredSpellcheckedMatchesFromAllCues: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<SpellCheckRemovalAction>) => void;
57
+ addCue: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CueAction>) => void;
58
+ deleteCue: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CueIndexAction>) => void;
59
+ updateAddedCue: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CueAction>) => void;
60
+ updateCues: (_state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CuesAction>) => CueDto[];
61
+ applyShiftTimeByPosition: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<ShiftAction>) => CueDto[];
62
+ setErrors: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CueErrorsPayload>) => void;
63
+ syncCues: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<CuesAction>) => CueDto[];
64
+ mergeCues: (state: import("immer/dist/internal").WritableDraft<CueDto>[], action: PayloadAction<MergeAction>) => CueDto[];
65
+ }, "cues">;
66
+ interface MatchCuesAction {
67
+ cues: CueDto[];
68
+ sourceCues: CueDto[];
69
+ editingCueIndex: number;
70
+ }
71
+ interface MatchedCueAction {
72
+ cue: CueDto;
73
+ editingIndexMatchedCues: number;
74
+ targetCuesIndex: number;
75
+ }
76
+ export declare const matchedCuesSlice: import("@reduxjs/toolkit").Slice<MatchedCuesWithEditingFocus, {
77
+ matchCuesByTime: (_state: import("immer/dist/internal").WritableDraft<MatchedCuesWithEditingFocus>, action: PayloadAction<MatchCuesAction>) => MatchedCuesWithEditingFocus;
78
+ updateMatchedCue: (state: import("immer/dist/internal").WritableDraft<MatchedCuesWithEditingFocus>, action: PayloadAction<MatchedCueAction>) => MatchedCuesWithEditingFocus;
79
+ updateMatchedCuesFocusIndex: (state: import("immer/dist/internal").WritableDraft<MatchedCuesWithEditingFocus>, action: PayloadAction<number>) => MatchedCuesWithEditingFocus;
80
+ setMatchCuesForTesting: (state: import("immer/dist/internal").WritableDraft<MatchedCuesWithEditingFocus>, action: PayloadAction<CueLineDto[]>) => MatchedCuesWithEditingFocus;
81
+ }, "matchedCues">;
82
+ export {};
@@ -0,0 +1,4 @@
1
+ import { CueDto, CueLineDto } from "../../model";
2
+ export declare const createTestingMatchedCues: (matchedCuesCount: number) => CueLineDto[];
3
+ export declare const createTestingTargetCues: (testingMatchedCues: CueLineDto[]) => CueDto[];
4
+ export declare const createTestingSourceCues: (testingMatchedCues: CueLineDto[]) => CueDto[];
@@ -0,0 +1,6 @@
1
+ import { CueDto, CueLineDto } from "../../model";
2
+ export interface MatchedCuesWithEditingFocus {
3
+ matchedCues: CueLineDto[];
4
+ matchedCuesFocusIndex: number;
5
+ }
6
+ export declare const matchCuesByTime: (targetCues: CueDto[], sourceCues: CueDto[], editingCueIndex: number) => MatchedCuesWithEditingFocus;
@@ -0,0 +1,4 @@
1
+ import { CueLineDto } from "../../model";
2
+ export declare const matchedCuesToCsv: (matchedCues: Array<CueLineDto>, isTranslationTrack: boolean) => string;
3
+ declare const useMatchedCuesAsCsv: () => Function;
4
+ export default useMatchedCuesAsCsv;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ cueIndex: number;
4
+ sourceCueIndexes: number[];
5
+ text?: string;
6
+ }
7
+ declare const AddCueLineButton: (props: Props) => ReactElement;
8
+ export default AddCueLineButton;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from "react";
2
+ import { CueCategory } from "../../model";
3
+ interface Props {
4
+ category?: CueCategory;
5
+ onChange: (value: CueCategory) => void;
6
+ }
7
+ declare const CueCategoryButton: (props: Props) => ReactElement;
8
+ export default CueCategoryButton;
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,12 @@
1
+ import { CueDto, CueLineDto } from "../../model";
2
+ import { ReactElement } from "react";
3
+ export interface CueEditProps {
4
+ index: number;
5
+ cue: CueDto;
6
+ matchedCuesIndex: number;
7
+ nextCueLine?: CueLineDto;
8
+ glossaryTerm?: string;
9
+ setGlossaryTerm: (glossaryTerm?: string) => void;
10
+ }
11
+ declare const CueEdit: (props: CueEditProps) => ReactElement;
12
+ export default CueEdit;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ children: ReactElement;
4
+ offsetKey?: number;
5
+ }
6
+ export declare const CueExtraCharacters: (props: Props) => ReactElement | null;
7
+ export {};
@@ -0,0 +1 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from "react";
2
+ import { EditorState } from "draft-js";
3
+ import { SpellCheck } from "../spellCheck/model";
4
+ export interface CueTextEditorProps {
5
+ index: number;
6
+ vttCue: VTTCue;
7
+ autoFocus: boolean;
8
+ editUuid?: string;
9
+ spellCheck?: SpellCheck;
10
+ bindCueViewModeKeyboardShortcut: () => void;
11
+ unbindCueViewModeKeyboardShortcut: () => void;
12
+ glossaryTerm?: string;
13
+ setGlossaryTerm: (glossaryTerm?: string) => void;
14
+ }
15
+ export declare let editorStateFOR_TESTING: EditorState;
16
+ export declare let setEditorStateFOR_TESTING: (editorState: EditorState) => void;
17
+ declare const CueTextEditor: (props: CueTextEditorProps) => ReactElement;
18
+ export default CueTextEditor;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from "react";
2
+ interface Props {
3
+ cueIndex: number;
4
+ }
5
+ declare const DeleteCueLineButton: (props: Props) => ReactElement;
6
+ export default DeleteCueLineButton;
@@ -0,0 +1,2 @@
1
+ import "../../../testUtils/initBrowserEnvironment";
2
+ import "video.js";