manucap 3.0.3 → 4.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 +1 -1
- package/dist/indexLibrary.d.ts +7 -7
- package/dist/manucap/CompleteButton.d.ts +2 -2
- package/dist/manucap/CompleteButton.spec.d.ts +0 -1
- package/dist/manucap/CueListToolbar.d.ts +2 -2
- package/dist/manucap/CueListToolbar.spec.d.ts +0 -1
- package/dist/manucap/ManuCap.d.ts +2 -4
- package/dist/manucap/ManuCap.spec.d.ts +0 -1
- package/dist/manucap/common/DateTime.d.ts +1 -1
- package/dist/manucap/common/JoiError.d.ts +2 -2
- package/dist/manucap/cues/CueErrorAlert.d.ts +1 -1
- package/dist/manucap/cues/CueErrorAlert.spec.d.ts +0 -1
- package/dist/manucap/cues/CueErrorLine.d.ts +2 -2
- package/dist/manucap/cues/CueErrorLine.spec.d.ts +0 -1
- package/dist/manucap/cues/comments/CueComments.d.ts +2 -2
- package/dist/manucap/cues/comments/CueComments.spec.d.ts +0 -1
- package/dist/manucap/cues/comments/commentsSlices.d.ts +2 -2
- package/dist/manucap/cues/cueLine/CueActionsPanel.d.ts +2 -2
- package/dist/manucap/cues/cueLine/CueActionsPanel.spec.d.ts +0 -2
- package/dist/manucap/cues/cueLine/CueLine.d.ts +2 -2
- package/dist/manucap/cues/cueLine/CueLine.fake.children.spec.d.ts +0 -3
- package/dist/manucap/cues/cueLine/CueLineCounts.d.ts +2 -2
- package/dist/manucap/cues/cueLine/CueLineCounts.spec.d.ts +0 -2
- package/dist/manucap/cues/cueLine/CueLineFlap.d.ts +2 -2
- package/dist/manucap/cues/cueLine/CueLineFlap.spec.d.ts +0 -1
- package/dist/manucap/cues/cueLine/PlayCueButton.d.ts +2 -2
- package/dist/manucap/cues/cueLine/PlayCueButton.spec.d.ts +0 -2
- package/dist/manucap/cues/cueUtils.d.ts +1 -1
- package/dist/manucap/cues/cueUtils.spec.d.ts +0 -1
- package/dist/manucap/cues/cueVerifications.d.ts +2 -2
- package/dist/manucap/cues/cuesList/CuesList.d.ts +2 -2
- package/dist/manucap/cues/cuesList/CuesList.fake.line.spec.d.ts +0 -1
- package/dist/manucap/cues/cuesList/CuesList.spec.d.ts +0 -1
- package/dist/manucap/cues/cuesList/cuesListActions.d.ts +8 -9
- package/dist/manucap/cues/cuesList/cuesListActions.spec.d.ts +0 -1
- package/dist/manucap/cues/cuesList/cuesListScrollSlice.d.ts +6 -6
- package/dist/manucap/cues/cuesList/cuesListSlices.d.ts +24 -24
- package/dist/manucap/cues/cuesList/cuesListTestUtils.d.ts +1 -1
- package/dist/manucap/cues/cuesList/cuesListTimeMatching.d.ts +1 -1
- package/dist/manucap/cues/cuesList/useMatchedCuesAsCsv.d.ts +1 -1
- package/dist/manucap/cues/cuesList/useMatchedCuesAsCsv.spec.d.ts +0 -1
- package/dist/manucap/cues/edit/AddCueLineButton.d.ts +1 -1
- package/dist/manucap/cues/edit/AddCueLineButton.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/CueCategoryButton.d.ts +2 -2
- package/dist/manucap/cues/edit/CueCategoryButton.spec.d.ts +0 -1
- package/dist/manucap/cues/edit/CueEdit.d.ts +2 -2
- package/dist/manucap/cues/edit/CueEdit.fake.debounce.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/CueEdit.fake.editor.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/CueExtraCharacters.d.ts +1 -1
- package/dist/manucap/cues/edit/CueExtraCharacters.spec.d.ts +0 -1
- package/dist/manucap/cues/edit/CueTextEditor.composition.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/CueTextEditor.d.ts +3 -3
- package/dist/manucap/cues/edit/CueTextEditor.fake.debounce.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/CueTextEditor.real.debounce.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/CueTextEditor.spellcheck.keyboard.shortcuts.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/DeleteCueLineButton.d.ts +1 -1
- package/dist/manucap/cues/edit/DeleteCueLineButton.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/InlineStyleButton.d.ts +2 -2
- package/dist/manucap/cues/edit/InlineStyleButton.spec.d.ts +0 -1
- package/dist/manucap/cues/edit/PositionButton.d.ts +2 -2
- package/dist/manucap/cues/edit/PositionButton.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/SplitCueLineButton.d.ts +1 -1
- package/dist/manucap/cues/edit/SplitCueLineButton.spec.d.ts +0 -2
- package/dist/manucap/cues/edit/TimeEditor.d.ts +1 -1
- package/dist/manucap/cues/edit/TimeEditor.spec.d.ts +0 -1
- package/dist/manucap/cues/edit/cueEditorSlices.d.ts +9 -9
- package/dist/manucap/cues/edit/cueEditorSlices.spec.d.ts +0 -1
- package/dist/manucap/cues/edit/cueTextConverter.d.ts +1 -1
- package/dist/manucap/cues/edit/editUtils.d.ts +1 -1
- package/dist/manucap/cues/merge/MergeEditor.d.ts +1 -1
- package/dist/manucap/cues/merge/MergeEditor.spec.d.ts +0 -1
- package/dist/manucap/cues/merge/mergeSlices.d.ts +7 -7
- package/dist/manucap/cues/saveCueDeleteSlices.d.ts +4 -4
- package/dist/manucap/cues/saveCueUpdateSlices.d.ts +5 -5
- package/dist/manucap/cues/saveSlices.d.ts +5 -5
- package/dist/manucap/cues/searchReplace/SearchReplaceEditor.d.ts +1 -1
- package/dist/manucap/cues/searchReplace/SearchReplaceEditor.spec.d.ts +0 -1
- package/dist/manucap/cues/searchReplace/SearchReplaceMatch.d.ts +1 -1
- package/dist/manucap/cues/searchReplace/SearchReplaceMatch.spec.d.ts +0 -1
- package/dist/manucap/cues/searchReplace/searchReplaceSlices.d.ts +11 -11
- package/dist/manucap/cues/spellCheck/SpellCheckIssue.d.ts +2 -2
- package/dist/manucap/cues/spellCheck/SpellCheckIssue.spec.d.ts +0 -1
- package/dist/manucap/cues/spellCheck/spellCheckFetch.d.ts +3 -3
- package/dist/manucap/cues/spellCheck/spellCheckerUtils.d.ts +1 -1
- package/dist/manucap/cues/spellCheck/spellCheckerUtils.spec.d.ts +0 -1
- package/dist/manucap/cues/view/ClickCueWrapper.d.ts +1 -1
- package/dist/manucap/cues/view/ClickCueWrapper.spec.d.ts +0 -2
- package/dist/manucap/cues/view/CueView.d.ts +2 -2
- package/dist/manucap/cues/view/CueView.spec.d.ts +0 -2
- package/dist/manucap/cues/view/InsertCueButton.d.ts +1 -1
- package/dist/manucap/cues/view/sourceCueSlices.d.ts +5 -5
- package/dist/manucap/cues/view/sourceCueSlices.spec.d.ts +0 -1
- package/dist/manucap/loadingIndicatorSlices.d.ts +2 -2
- package/dist/manucap/manuCapReducers.d.ts +43 -43
- package/dist/manucap/model.d.ts +1 -1
- package/dist/manucap/player/EditingVideoPlayer.d.ts +1 -1
- package/dist/manucap/player/EditingVideoPlayer.fake.player.spec.d.ts +0 -2
- package/dist/manucap/player/EditingVideoPlayer.spec.d.ts +0 -1
- package/dist/manucap/player/VideoPlayer.d.ts +5 -6
- package/dist/manucap/player/VideoPlayer.fake.player.spec.d.ts +0 -1
- package/dist/manucap/player/VideoPlayer.spec.d.ts +0 -1
- package/dist/manucap/player/VideoPlayer.wavesurfer.spec.d.ts +0 -1
- package/dist/manucap/player/playbackSlices.d.ts +5 -5
- package/dist/manucap/player/textTrackOptionsConversion.d.ts +2 -2
- package/dist/manucap/player/waveformSlices.d.ts +2 -2
- package/dist/manucap/spellcheckerSettingsSlice.d.ts +2 -2
- package/dist/manucap/toolbox/CaptionOverlapToggle.d.ts +2 -2
- package/dist/manucap/toolbox/CaptionOverlapToggle.spec.d.ts +0 -1
- package/dist/manucap/toolbox/CueCommentsToggle.d.ts +1 -1
- package/dist/manucap/toolbox/CueCommentsToggle.spec.d.ts +0 -1
- package/dist/manucap/toolbox/ImportTrackCuesButton.d.ts +1 -1
- package/dist/manucap/toolbox/ImportTrackCuesButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/MergeCuesButton.d.ts +1 -1
- package/dist/manucap/toolbox/MergeCuesButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/SeachReplaceButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/SearchReplaceButton.d.ts +1 -1
- package/dist/manucap/toolbox/SyncCuesButton.d.ts +1 -1
- package/dist/manucap/toolbox/SyncCuesButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/TimecodesLockToggle.d.ts +1 -1
- package/dist/manucap/toolbox/TimecodesLockToggle.spec.d.ts +0 -1
- package/dist/manucap/toolbox/ToggleButton.d.ts +1 -1
- package/dist/manucap/toolbox/ToggleButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/Toolbox.d.ts +2 -2
- package/dist/manucap/toolbox/Toolbox.spec.d.ts +0 -1
- package/dist/manucap/toolbox/WaveformToggle.d.ts +1 -1
- package/dist/manucap/toolbox/WaveformToggle.spec.d.ts +0 -1
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsButton.d.ts +1 -1
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsButton.spec.d.ts +0 -2
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsForm.d.ts +2 -2
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsForm.spec.d.ts +0 -1
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsModal.d.ts +1 -1
- package/dist/manucap/toolbox/captionSpecifications/CaptionSpecificationsModal.spec.d.ts +0 -1
- package/dist/manucap/toolbox/captionSpecifications/captionSpecificationSlice.d.ts +6 -6
- package/dist/manucap/toolbox/captionSpecifications/captionSpecificationSlice.spec.d.ts +0 -1
- package/dist/manucap/toolbox/export/ExportSourceTrackCuesButton.d.ts +1 -1
- package/dist/manucap/toolbox/export/ExportSourceTrackCuesButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/export/ExportTrackCuesButton.d.ts +2 -2
- package/dist/manucap/toolbox/export/ExportTrackCuesButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutLabel.d.ts +1 -1
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutLabel.spec.d.ts +0 -1
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcuts.d.ts +1 -1
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcuts.spec.d.ts +0 -1
- package/dist/manucap/toolbox/keyboardShortcuts/KeyboardShortcutsModal.d.ts +0 -1
- package/dist/manucap/toolbox/shift/ShiftTimeButton.d.ts +1 -1
- package/dist/manucap/toolbox/shift/ShiftTimeButton.spec.d.ts +0 -1
- package/dist/manucap/toolbox/shift/ShiftTimeModal.d.ts +1 -1
- package/dist/manucap/toolbox/shift/ShiftTimeModal.spec.d.ts +0 -2
- package/dist/manucap/trackSlices.d.ts +5 -5
- package/dist/manucap/userSlices.d.ts +5 -5
- package/dist/manucap/utils/manuCapUtils.d.ts +1 -1
- package/dist/manucap/utils/shortcutConstants.d.ts +1 -1
- package/dist/manucap/utils/timeUtils.spec.d.ts +0 -1
- package/dist/manucap.css +1 -0
- package/dist/manucap.js +303 -0
- package/dist/manucap.mjs +82889 -0
- package/dist/testUtils/testUtils.d.ts +4 -3
- package/dist/testUtils/testingStore.d.ts +2 -2
- package/package.json +27 -37
- package/dist/@types/index.d.ts +0 -62
- package/dist/dist.css +0 -3727
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -201172
- package/dist/index.js.map +0 -1
package/LICENSE
CHANGED
package/dist/indexLibrary.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Reducers } from
|
|
2
|
-
import ManuCap from
|
|
3
|
-
import VideoPlayer from
|
|
1
|
+
import { Reducers } from './manucap/manuCapReducers';
|
|
2
|
+
import { default as ManuCap } from './manucap/ManuCap';
|
|
3
|
+
import { default as VideoPlayer } from './manucap/player/VideoPlayer';
|
|
4
4
|
declare const Actions: {
|
|
5
|
-
updateEditingTrack: (track: import(
|
|
6
|
-
updateCues: (cues: import(
|
|
7
|
-
updateSourceCues: (cues: import(
|
|
8
|
-
updateCaptionUser: (user: import(
|
|
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
9
|
};
|
|
10
10
|
declare const Hooks: {
|
|
11
11
|
useMatchedCuesAsCsv: () => Function;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../testUtils/initBrowserEnvironment";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { SaveState, Track, TrackCues } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { SaveState, Track, TrackCues } from './model';
|
|
3
3
|
export interface Props {
|
|
4
4
|
onViewTrackHistory: () => void;
|
|
5
5
|
editingTrack: Track | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../testUtils/initBrowserEnvironment";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { ReactElement } from "react";
|
|
4
|
-
import { SaveActionParameters, TrackCues, Track, SaveTrackCue, SaveState } from "./model";
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { SaveActionParameters, TrackCues, Track, SaveTrackCue, SaveState } from './model';
|
|
5
3
|
export interface ManuCapProps {
|
|
6
4
|
mp4: string;
|
|
7
5
|
poster: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PayloadAction } from
|
|
2
|
-
export declare const commentsVisibleSlice: import(
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const commentsVisibleSlice: import('@reduxjs/toolkit').Slice<boolean, {
|
|
3
3
|
setCommentsVisible: (_state: boolean, action: PayloadAction<boolean>) => boolean;
|
|
4
4
|
}, "commentsVisible">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { CueLineDto } from '../../model';
|
|
2
3
|
import * as React from "react";
|
|
3
|
-
import { CueLineDto } from "../../model";
|
|
4
4
|
export interface CueLineRowProps {
|
|
5
5
|
targetCuesLength: number;
|
|
6
6
|
withoutSourceCues: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { CueDtoWithIndex, CueError, CueLineState } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { CueDtoWithIndex, CueError, CueLineState } from '../../model';
|
|
3
3
|
interface Props {
|
|
4
4
|
rowIndex: number;
|
|
5
5
|
cueLineState: CueLineState;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "video.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CueDto, CueError, TimeGapLimit, Track } from
|
|
2
|
-
import { CaptionSpecification } from
|
|
1
|
+
import { CueDto, CueError, TimeGapLimit, Track } from '../model';
|
|
2
|
+
import { CaptionSpecification } from '../toolbox/model';
|
|
3
3
|
export declare const checkLineLimitation: (text: string, captionSpecification: CaptionSpecification | null) => boolean;
|
|
4
4
|
export declare const checkCharacterLimitation: (text: string, captionSpecification: CaptionSpecification | null) => boolean;
|
|
5
5
|
export declare const getTimeGapLimits: (captionSpecs: CaptionSpecification | null) => TimeGapLimit;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { TrackCues, Track, SaveState } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TrackCues, Track, SaveState } from '../../model';
|
|
3
3
|
interface Props {
|
|
4
4
|
editingTrack: Track | null;
|
|
5
5
|
commentAuthor?: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ShiftPosition } from "./cuesListSlices";
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { CueCategory, CueComment, CueDto, CuesWithRowIndex, ManuCapAction } from '../../model';
|
|
3
|
+
import { AppThunk, ManuCapState } from '../../manuCapReducers';
|
|
4
|
+
import { ShiftPosition } from './cuesListSlices';
|
|
6
5
|
export declare const updateMatchedCue: (dispatch: Dispatch<ManuCapAction>, state: ManuCapState, index: number) => void;
|
|
7
|
-
export declare const applySpellcheckerOnCue: import(
|
|
6
|
+
export declare const applySpellcheckerOnCue: import('@reduxjs/toolkit').AsyncThunk<unknown, number, {}>;
|
|
8
7
|
export declare const updateMatchedCues: () => AppThunk;
|
|
9
|
-
export declare const checkSpelling: import(
|
|
8
|
+
export declare const checkSpelling: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
10
9
|
index: number;
|
|
11
10
|
}, {
|
|
12
11
|
state: ManuCapState;
|
|
13
12
|
}>;
|
|
14
|
-
export declare const checkErrors: import(
|
|
13
|
+
export declare const checkErrors: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
15
14
|
index: number;
|
|
16
15
|
shouldSpellCheck: boolean;
|
|
17
16
|
}, {
|
|
@@ -22,7 +21,7 @@ export declare const updateVttCue: (idx: number, vttCue: VTTCue, editUuid?: stri
|
|
|
22
21
|
export declare const updateVttCueTextOnly: (idx: number, vttCue: VTTCue, editUuid?: string) => AppThunk;
|
|
23
22
|
export declare const validateVttCue: (idx: number) => AppThunk;
|
|
24
23
|
export declare const removeIgnoredSpellcheckedMatchesFromAllCues: () => AppThunk;
|
|
25
|
-
export declare const validateCorruptedCues: import(
|
|
24
|
+
export declare const validateCorruptedCues: import('@reduxjs/toolkit').AsyncThunk<void, string, {
|
|
26
25
|
state: ManuCapState;
|
|
27
26
|
}>;
|
|
28
27
|
export declare const updateCueCategory: (idx: number, cueCategory: CueCategory) => AppThunk;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "video.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { PayloadAction } from
|
|
2
|
-
import { CueDto, ScrollPosition } from
|
|
3
|
-
import { AppThunk } from
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { CueDto, ScrollPosition } from '../../model';
|
|
3
|
+
import { AppThunk } from '../../manuCapReducers';
|
|
4
4
|
export declare const DEFAULT_PAGE_SIZE = 100;
|
|
5
|
-
export declare const currentPlayerTimeSlice: import(
|
|
5
|
+
export declare const currentPlayerTimeSlice: import('@reduxjs/toolkit').Slice<number, {
|
|
6
6
|
setCurrentPlayerTime: (_state: number, action: PayloadAction<number>) => number;
|
|
7
7
|
}, "currentPlayerTime">;
|
|
8
8
|
export declare const setCurrentPlayerTime: (currentPlayerTime: number) => AppThunk;
|
|
9
|
-
export declare const scrollPositionSlice: import(
|
|
9
|
+
export declare const scrollPositionSlice: import('@reduxjs/toolkit').Slice<number | null, {
|
|
10
10
|
changeFocusedCueIndex: (_state: number | null, action: PayloadAction<number | null>) => number | null;
|
|
11
11
|
}, "scrollPositionSlice">;
|
|
12
|
-
export declare const currentCueErrorIndexSlice: import(
|
|
12
|
+
export declare const currentCueErrorIndexSlice: import('@reduxjs/toolkit').Slice<number, {
|
|
13
13
|
changeCurrentCueErrorPosition: (_state: number, action: PayloadAction<number>) => number;
|
|
14
14
|
}, "currentCueErrorIndex">;
|
|
15
15
|
export declare const matchCueTimeIndex: (cues: CueDto[], trackTime: number) => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PayloadAction } from
|
|
2
|
-
import { CueCategory, CueComment, CueDto, CueError, CueLineDto, ManuCapAction } from
|
|
3
|
-
import { SpellCheck } from
|
|
4
|
-
import { MatchedCuesWithEditingFocus } from
|
|
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
5
|
export interface CueIndexAction extends ManuCapAction {
|
|
6
6
|
idx: number;
|
|
7
7
|
}
|
|
@@ -47,21 +47,21 @@ export declare enum ShiftPosition {
|
|
|
47
47
|
BEFORE = 1,
|
|
48
48
|
AFTER = 2
|
|
49
49
|
}
|
|
50
|
-
export declare const cuesSlice: import(
|
|
51
|
-
updateVttCue: (state: import(
|
|
52
|
-
updateCueCategory: (state: import(
|
|
53
|
-
addCueComment: (state: import(
|
|
54
|
-
deleteCueComment: (state: import(
|
|
55
|
-
addSpellCheck: (state: import(
|
|
56
|
-
removeIgnoredSpellcheckedMatchesFromAllCues: (state: import(
|
|
57
|
-
addCue: (state: import(
|
|
58
|
-
deleteCue: (state: import(
|
|
59
|
-
updateAddedCue: (state: import(
|
|
60
|
-
updateCues: (_state: import(
|
|
61
|
-
applyShiftTimeByPosition: (state: import(
|
|
62
|
-
setErrors: (state: import(
|
|
63
|
-
syncCues: (state: import(
|
|
64
|
-
mergeCues: (state: import(
|
|
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
65
|
}, "cues">;
|
|
66
66
|
interface MatchCuesAction {
|
|
67
67
|
cues: CueDto[];
|
|
@@ -73,10 +73,10 @@ interface MatchedCueAction {
|
|
|
73
73
|
editingIndexMatchedCues: number;
|
|
74
74
|
targetCuesIndex: number;
|
|
75
75
|
}
|
|
76
|
-
export declare const matchedCuesSlice: import(
|
|
77
|
-
matchCuesByTime: (_state: import(
|
|
78
|
-
updateMatchedCue: (state: import(
|
|
79
|
-
updateMatchedCuesFocusIndex: (state: import(
|
|
80
|
-
setMatchCuesForTesting: (state: import(
|
|
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
81
|
}, "matchedCues">;
|
|
82
82
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CueDto, CueLineDto } from
|
|
1
|
+
import { CueDto, CueLineDto } from '../../model';
|
|
2
2
|
export declare const createTestingMatchedCues: (matchedCuesCount: number) => CueLineDto[];
|
|
3
3
|
export declare const createTestingTargetCues: (testingMatchedCues: CueLineDto[]) => CueDto[];
|
|
4
4
|
export declare const createTestingSourceCues: (testingMatchedCues: CueLineDto[]) => CueDto[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CueLineDto } from
|
|
1
|
+
import { CueLineDto } from '../../model';
|
|
2
2
|
export declare const matchedCuesToCsv: (matchedCues: Array<CueLineDto>, isTranslationTrack: boolean) => string;
|
|
3
3
|
declare const useMatchedCuesAsCsv: () => Function;
|
|
4
4
|
export default useMatchedCuesAsCsv;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { EditorState } from
|
|
3
|
-
import { SpellCheck } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EditorState } from 'draft-js';
|
|
3
|
+
import { SpellCheck } from '../spellCheck/model';
|
|
4
4
|
export interface CueTextEditorProps {
|
|
5
5
|
index: number;
|
|
6
6
|
vttCue: VTTCue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../testUtils/initBrowserEnvironment";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Dispatch } from
|
|
2
|
-
import { PayloadAction } from
|
|
3
|
-
import { CueChange, CueError, ManuCapAction } from
|
|
4
|
-
import { AppThunk } from
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
+
import { CueChange, CueError, ManuCapAction } from '../../model';
|
|
4
|
+
import { AppThunk } from '../../manuCapReducers';
|
|
5
5
|
export interface CueIndexAction extends ManuCapAction {
|
|
6
6
|
idx: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const editingCueIndexSlice: import(
|
|
8
|
+
export declare const editingCueIndexSlice: import('@reduxjs/toolkit').Slice<number, {
|
|
9
9
|
updateEditingCueIndex: (_state: number, action: PayloadAction<CueIndexAction>) => number;
|
|
10
10
|
}, "editingCueIndex">;
|
|
11
11
|
declare type FocusedInputType = "EDITOR" | "START_TIME";
|
|
12
|
-
export declare const focusedInputSlice: import(
|
|
12
|
+
export declare const focusedInputSlice: import('@reduxjs/toolkit').Slice<FocusedInputType, {
|
|
13
13
|
updateFocusedInput: (_state: FocusedInputType, action: PayloadAction<FocusedInputType>) => FocusedInputType;
|
|
14
14
|
}, "focusedInput">;
|
|
15
15
|
export declare const updateEditingCueIndexNoThunk: (dispatch: Dispatch<ManuCapAction>, idx: number) => void;
|
|
16
16
|
export declare const updateEditingCueIndex: (idx: number, matchedCueIndex?: number) => AppThunk;
|
|
17
|
-
export declare const validationErrorSlice: import(
|
|
17
|
+
export declare const validationErrorSlice: import('@reduxjs/toolkit').Slice<CueError[], {
|
|
18
18
|
setValidationErrors: (_state: CueError[], action: PayloadAction<CueError[]>) => CueError[];
|
|
19
19
|
}, "validationError">;
|
|
20
20
|
export declare const setValidationErrors: (errors: CueError[]) => AppThunk;
|
|
21
|
-
export declare const lastCueChangeSlice: import(
|
|
22
|
-
recordCueChange: (_state: import(
|
|
21
|
+
export declare const lastCueChangeSlice: import('@reduxjs/toolkit').Slice<CueChange | null, {
|
|
22
|
+
recordCueChange: (_state: import('immer/dist/internal').WritableDraft<CueChange> | null, action: PayloadAction<CueChange | null>) => CueChange | null;
|
|
23
23
|
}, "lastCueChange">;
|
|
24
24
|
export declare const clearLastCueChange: () => AppThunk;
|
|
25
25
|
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "video.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentState } from
|
|
1
|
+
import { ContentState } from 'draft-js';
|
|
2
2
|
export declare const convertVttToHtml: (vtt: string) => string;
|
|
3
3
|
export declare const convertHtmlToVtt: (html: string) => string;
|
|
4
4
|
export declare const getVttText: (currentContent: ContentState) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EditorState } from
|
|
1
|
+
import { EditorState } from 'draft-js';
|
|
2
2
|
export declare const replaceContent: (editorState: EditorState, replacement: string, start: number, end: number) => EditorState;
|
|
3
3
|
export declare const replaceVttCueContent: (vttCue: VTTCue, replacement: string, start: number, end: number) => VTTCue;
|