@salina-app/media-editor 0.1.76 → 0.1.78
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/README.md +15 -15
- package/package.json +96 -96
- package/dist/assets/icons/FolderOpen.d.ts +0 -4
- package/dist/assets/icons/UploadCircle.d.ts +0 -2
- package/dist/assets/icons/Video.d.ts +0 -4
- package/dist/components/customs/AnimatedLoader/AnimatedLoader.d.ts +0 -8
- package/dist/components/customs/Dialog/AlertDialog.d.ts +0 -2
- package/dist/components/customs/Highlight/HighlightSelection.d.ts +0 -28
- package/dist/components/customs/Player/NewPlayer.d.ts +0 -22
- package/dist/components/customs/Player/Player.d.ts +0 -15
- package/dist/components/customs/Player/StringIcons.d.ts +0 -7
- package/dist/components/customs/Player/playerConfig.d.ts +0 -82
- package/dist/components/customs/Source/DirectoryList.d.ts +0 -8
- package/dist/components/customs/Source/FileIcon.d.ts +0 -8
- package/dist/components/customs/Source/SubDirectory.d.ts +0 -12
- package/dist/components/customs/Source/TrimmedList.d.ts +0 -8
- package/dist/components/customs/Timeline/CCBlocks.d.ts +0 -2
- package/dist/components/customs/Timeline/Timeline.d.ts +0 -14
- package/dist/components/customs/Timeline/TimelineCard/CCBlock.d.ts +0 -10
- package/dist/components/customs/Timeline/TimelineCard/CCBlockAdd.d.ts +0 -8
- package/dist/components/customs/Timeline/TimelineCard/TrimCard.d.ts +0 -28
- package/dist/components/customs/Timeline/TimelineCard/TrimCardDetails.d.ts +0 -25
- package/dist/components/customs/Timeline/TimelineCards.d.ts +0 -10
- package/dist/components/customs/Timeline/TimelineControls.d.ts +0 -7
- package/dist/components/customs/Timeline/TimelineGrabber.d.ts +0 -11
- package/dist/components/customs/Timeline/TimelineIndicator.d.ts +0 -2
- package/dist/components/customs/Timeline/TimelineSpacer.d.ts +0 -5
- package/dist/components/customs/Timeline/TimelineThumbnails.d.ts +0 -8
- package/dist/components/customs/Timeline/TimelineTimestamps.d.ts +0 -9
- package/dist/components/customs/Timeline/TimelineWaveform.d.ts +0 -5
- package/dist/components/customs/Timeline/TrimStampEnd.d.ts +0 -6
- package/dist/components/customs/Timeline/TrimStampStart.d.ts +0 -6
- package/dist/components/customs/Transcription/ExampleUseCase/TranscriptList.d.ts +0 -5
- package/dist/components/customs/Transcription/ExampleUseCase/YoutubeTranscriptList.d.ts +0 -5
- package/dist/components/customs/Transcription/SubComponents/Timestamps.d.ts +0 -8
- package/dist/components/customs/Transcription/SubComponents/TranscriptHighlight.d.ts +0 -29
- package/dist/components/customs/Transcription/SubComponents/Word.d.ts +0 -36
- package/dist/components/customs/Transcription/SubComponents/utils.d.ts +0 -6
- package/dist/components/customs/Transcription/TranscriptSegment.d.ts +0 -38
- package/dist/components/customs/Transcription/storybook-transcription.d.ts +0 -25
- package/dist/components/customs/Upload/FileUpload.d.ts +0 -8
- package/dist/components/customs/Wrappers/Flex.d.ts +0 -11
- package/dist/components/customs/Wrappers/index.d.ts +0 -1
- package/dist/components/ui/alert-dialog.d.ts +0 -20
- package/dist/components/ui/badge.d.ts +0 -9
- package/dist/components/ui/button.d.ts +0 -19
- package/dist/components/ui/context-menu.d.ts +0 -27
- package/dist/components/ui/dialog.d.ts +0 -19
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/resizable.d.ts +0 -23
- package/dist/components/ui/select.d.ts +0 -13
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/switch.d.ts +0 -4
- package/dist/components/ui/toast.d.ts +0 -15
- package/dist/components/ui/toaster.d.ts +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/components/ui/use-toast.d.ts +0 -44
- package/dist/config/config.d.ts +0 -1
- package/dist/dataServices/directory.d.ts +0 -5
- package/dist/dataServices/merged.d.ts +0 -9
- package/dist/dataServices/timeline.d.ts +0 -6
- package/dist/dataServices/trimmed.d.ts +0 -13
- package/dist/dataServices/upload.d.ts +0 -5
- package/dist/hooks/use-toast.d.ts +0 -44
- package/dist/hooks/useAxios.d.ts +0 -9
- package/dist/hooks/useInitialTrimmedClipsVideoMetadata.d.ts +0 -2
- package/dist/hooks/useJwt.d.ts +0 -3
- package/dist/hooks/useKeyboardShortcuts.d.ts +0 -10
- package/dist/hooks/useMoveTime.d.ts +0 -15
- package/dist/hooks/useRefresh.d.ts +0 -6
- package/dist/hooks/useTimelineDataInitializer.d.ts +0 -10
- package/dist/index.css +0 -1
- package/dist/index.js +0 -81406
- package/dist/lib/constants.d.ts +0 -13
- package/dist/lib/helpers/boolHelpers.d.ts +0 -8
- package/dist/lib/helpers/chunkTimestamps.d.ts +0 -11
- package/dist/lib/helpers/directory.d.ts +0 -5
- package/dist/lib/helpers/docHelper.d.ts +0 -13
- package/dist/lib/helpers/docHelperExample.d.ts +0 -2
- package/dist/lib/helpers/numberHelpers.d.ts +0 -3
- package/dist/lib/helpers/stringHelpers.d.ts +0 -12
- package/dist/lib/helpers/timestamp/timestampConverter.d.ts +0 -23
- package/dist/lib/helpers/timestamp/timestampGetter.d.ts +0 -4
- package/dist/lib/helpers/timestamp/timestampSorter.d.ts +0 -4
- package/dist/lib/helpers/timestamp/timestampSplitter.d.ts +0 -5
- package/dist/lib/schema/salina.d.ts +0 -107
- package/dist/lib/schema/schemaGlobal.d.ts +0 -54
- package/dist/lib/typings/IAxios.d.ts +0 -10
- package/dist/lib/typings/IChapter.d.ts +0 -17
- package/dist/lib/typings/IDirectory.d.ts +0 -33
- package/dist/lib/typings/IMerged.d.ts +0 -28
- package/dist/lib/typings/IResponse.d.ts +0 -5
- package/dist/lib/typings/ISalina.d.ts +0 -4
- package/dist/lib/typings/ISegment.d.ts +0 -34
- package/dist/lib/typings/ISource.d.ts +0 -5
- package/dist/lib/typings/ISprites.d.ts +0 -4
- package/dist/lib/typings/ITranscript.d.ts +0 -14
- package/dist/lib/typings/ITrimmed.d.ts +0 -102
- package/dist/lib/typings/IUpload.d.ts +0 -25
- package/dist/lib/typings/IVideoMetadata.d.ts +0 -6
- package/dist/lib/typings/IWaveform.d.ts +0 -5
- package/dist/lib/typings/IWord.d.ts +0 -8
- package/dist/lib/utils.d.ts +0 -2
- package/dist/main.d.ts +0 -37
- package/dist/pages/ClosedCaption/YouTubeTranscriptLoader.d.ts +0 -3
- package/dist/pages/ClosedCaption/Youtube.d.ts +0 -3
- package/dist/pages/Timestamp/VideoPlayer.d.ts +0 -21
- package/dist/pages/Timestamp/VideoPlayerContainer.d.ts +0 -2
- package/dist/stories/Components/DirectoryList.stories.d.ts +0 -12
- package/dist/stories/Components/FileUpload.stories.d.ts +0 -12
- package/dist/stories/Salina/Player/Player.stories.d.ts +0 -9
- package/dist/stories/Salina/Player/docs/Default.d.ts +0 -2
- package/dist/stories/Salina/Player/docs/YoutubePlayer.d.ts +0 -2
- package/dist/stories/Salina/Timeline/Timeline.stories.d.ts +0 -32
- package/dist/stories/Salina/Timeline/stories/Balitanghali.d.ts +0 -2
- package/dist/stories/Salina/Timeline/stories/Storybook.d.ts +0 -2
- package/dist/stories/Salina/Timeline/stories/WithDirectory.d.ts +0 -2
- package/dist/stories/Salina/Transcript/Transcript.stories.d.ts +0 -10
- package/dist/stories/Salina/Transcript/data/ChaptersTranscript.d.ts +0 -3
- package/dist/stories/Salina/Transcript/data/ClosedCaptionTranscript.d.ts +0 -3
- package/dist/stories/Salina/Transcript/data/SegmentTranscript.d.ts +0 -13
- package/dist/stories/Salina/Transcript/docs/Default.d.ts +0 -2
- package/dist/zustand/alertDialogStore.d.ts +0 -13
- package/dist/zustand/appConfigStore.d.ts +0 -6
- package/dist/zustand/chapterStore.d.ts +0 -7
- package/dist/zustand/createStoreWithSelectors.d.ts +0 -4
- package/dist/zustand/filePathStore.d.ts +0 -8
- package/dist/zustand/focusTrimmedClipStore.d.ts +0 -6
- package/dist/zustand/mergeStore.d.ts +0 -15
- package/dist/zustand/outputFilesStore.d.ts +0 -7
- package/dist/zustand/selectedHighlightOption.d.ts +0 -20
- package/dist/zustand/timelineDataStore.d.ts +0 -15
- package/dist/zustand/timelineLayersStore.d.ts +0 -20
- package/dist/zustand/timelineStore.d.ts +0 -9
- package/dist/zustand/toMergeStore.d.ts +0 -8
- package/dist/zustand/transcriptHighlightDirection.d.ts +0 -10
- package/dist/zustand/transcriptStore.d.ts +0 -9
- package/dist/zustand/trimmedClipsStore.d.ts +0 -7
- package/dist/zustand/trimmerStampStore.d.ts +0 -8
- package/dist/zustand/videoMetadataStore.d.ts +0 -9
- package/dist/zustand/videoPlayerStore.d.ts +0 -29
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as Player } from 'video.js/dist/types/player';
|
|
2
|
-
interface VideoPlayerProps {
|
|
3
|
-
options: {
|
|
4
|
-
autoplay?: boolean;
|
|
5
|
-
controls?: boolean;
|
|
6
|
-
responsive?: boolean;
|
|
7
|
-
fluid?: boolean;
|
|
8
|
-
controlBar?: Record<string, unknown>;
|
|
9
|
-
sources: {
|
|
10
|
-
src: string;
|
|
11
|
-
type?: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
timestampRanges?: Array<{
|
|
15
|
-
startSeconds: number | null;
|
|
16
|
-
endSeconds: number | null;
|
|
17
|
-
}>;
|
|
18
|
-
onReady?: (player: Player) => void;
|
|
19
|
-
}
|
|
20
|
-
declare const VideoPlayer: ({ options, timestampRanges, onReady, }: VideoPlayerProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export default VideoPlayer;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as DirectoryList } from '../../components/customs/Source/DirectoryList';
|
|
3
|
-
declare const meta: Meta<typeof DirectoryList>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<StoryProps>;
|
|
6
|
-
interface StoryProps {
|
|
7
|
-
endpoint: string;
|
|
8
|
-
startEndpoint: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
userToken: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const Default: Story;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as FileUpload } from '../../components/customs/Upload/FileUpload';
|
|
3
|
-
declare const meta: Meta<typeof FileUpload>;
|
|
4
|
-
export default meta;
|
|
5
|
-
interface StoryProps {
|
|
6
|
-
videoFiles: File[];
|
|
7
|
-
setVideoFiles: (files: File[]) => void;
|
|
8
|
-
maxFiles: number;
|
|
9
|
-
type: 'video' | 'audio';
|
|
10
|
-
}
|
|
11
|
-
type Story = StoryObj<StoryProps>;
|
|
12
|
-
export declare const Default: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as Player } from '../../../components/customs/Player/Player';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: Meta<typeof Player>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type PlayerStoryProps = StoryObj<{
|
|
6
|
-
src?: string;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const Default: PlayerStoryProps;
|
|
9
|
-
export declare const YoutubePlayer: PlayerStoryProps;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const YoutubePlayerDoc = "\nimport { Player, useTimelineDataStore } from '@salina-app/media-editor';\n\nconst App = () => {\n const setVideoSrc = useTimelineDataStore((state) => state.setVideoSrc);\n \n // Pass here your video source\n useEffect(() => {\n setVideoSrc('https://www.youtube.com/watch?v=dQw4w9WgXcQ');\n return () => setVideoSrc('');\n }, [setVideoSrc, src]);\n\n return <Player />;\n}\n\nexport default App;\n";
|
|
2
|
-
export default YoutubePlayerDoc;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { default as Timeline } from '../../../components/customs/Timeline/Timeline';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
/**
|
|
4
|
-
* Timeline component allows user to visualize and edit media timeline
|
|
5
|
-
*/
|
|
6
|
-
declare const meta: Meta<typeof Timeline>;
|
|
7
|
-
export default meta;
|
|
8
|
-
type TimelineStoryProps = StoryObj<{
|
|
9
|
-
audioSrc?: string;
|
|
10
|
-
thumbnails?: string[];
|
|
11
|
-
mainFilePath: string;
|
|
12
|
-
pathname: string;
|
|
13
|
-
userToken: string;
|
|
14
|
-
videoMetadata: {
|
|
15
|
-
videoTitle: string;
|
|
16
|
-
videoLink: string;
|
|
17
|
-
trimmed: boolean;
|
|
18
|
-
fileType: string;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Basic video timeline with chapter functionality
|
|
23
|
-
*/
|
|
24
|
-
export declare const Default: TimelineStoryProps;
|
|
25
|
-
/**
|
|
26
|
-
* Balitanghali news program timeline view
|
|
27
|
-
*/
|
|
28
|
-
export declare const Balitanghali: TimelineStoryProps;
|
|
29
|
-
/**
|
|
30
|
-
* Timeline with directory navigation support
|
|
31
|
-
*/
|
|
32
|
-
export declare const WithDirectory: TimelineStoryProps;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TranscriptSegment } from '../../../main';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: Meta<typeof TranscriptSegment>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const ClosedCaption: Story;
|
|
8
|
-
export declare const Chapter: Story;
|
|
9
|
-
export declare const Multiple: Story;
|
|
10
|
-
export declare const MultipleWithPlayer: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const SegmentTranscript: {
|
|
2
|
-
_id: string;
|
|
3
|
-
timestamp_start: string;
|
|
4
|
-
timestamp_end: string;
|
|
5
|
-
timestamp_text: string;
|
|
6
|
-
words: {
|
|
7
|
-
word_segment_idx: number;
|
|
8
|
-
timestamp_text: string;
|
|
9
|
-
timestamp_start: string;
|
|
10
|
-
timestamp_end: string;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
export default SegmentTranscript;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type IAlertDialog = {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
title: string;
|
|
4
|
-
description: string;
|
|
5
|
-
variant: 'default' | 'destructive';
|
|
6
|
-
onConfirm: () => void;
|
|
7
|
-
};
|
|
8
|
-
type AlertDialogStore = {
|
|
9
|
-
alertDialog: IAlertDialog;
|
|
10
|
-
setAlertDialog: (alertDialog: IAlertDialog) => void;
|
|
11
|
-
};
|
|
12
|
-
export declare const useAlertDialogStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AlertDialogStore>>;
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IChapter } from '../lib/typings/IChapter';
|
|
2
|
-
interface ChapterStore {
|
|
3
|
-
chapters: IChapter[];
|
|
4
|
-
setChapters: (chapters: IChapter[]) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const useChapterStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ChapterStore>>;
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type FilePathStore = {
|
|
2
|
-
mainFilePath: string;
|
|
3
|
-
setMainFilePath: (mainFilePath: string) => void;
|
|
4
|
-
trimmedFilePath: string;
|
|
5
|
-
setTrimmedFilePath: (trimmedFilePath: string) => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const useFilePathStore: import('zustand').UseBoundStore<import('zustand').StoreApi<FilePathStore>>;
|
|
8
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IMerged } from '../lib/typings/IMerged';
|
|
2
|
-
type ToMergeInfoType = {
|
|
3
|
-
name: string;
|
|
4
|
-
path: string;
|
|
5
|
-
};
|
|
6
|
-
type MergeStore = {
|
|
7
|
-
toMergeInfo: ToMergeInfoType[];
|
|
8
|
-
setToMergeInfo: (toMergeInfo: ToMergeInfoType[]) => void;
|
|
9
|
-
mergingInfo: IMerged | null;
|
|
10
|
-
setMergingInfo: (mergingInfo: IMerged | null) => void;
|
|
11
|
-
mergedSelectedInfo: IMerged | null;
|
|
12
|
-
setMergedSelectedInfo: (mergedSelectedInfo: IMerged | null) => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const useMergeStore: import('zustand').UseBoundStore<import('zustand').StoreApi<MergeStore>>;
|
|
15
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ITrimmedDirectory } from '../lib/typings/IDirectory';
|
|
2
|
-
type OutputFilesStore = {
|
|
3
|
-
outputFiles: ITrimmedDirectory[];
|
|
4
|
-
setOutputFiles: (outputFiles: ITrimmedDirectory[]) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const useOutputFilesStore: import('zustand').UseBoundStore<import('zustand').StoreApi<OutputFilesStore>>;
|
|
7
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const highlightOptions: readonly [{
|
|
2
|
-
readonly value: "off";
|
|
3
|
-
readonly name: "Off";
|
|
4
|
-
}, {
|
|
5
|
-
readonly value: "option1";
|
|
6
|
-
readonly name: "Highlight 1";
|
|
7
|
-
}, {
|
|
8
|
-
readonly value: "option2";
|
|
9
|
-
readonly name: "Highlight 2";
|
|
10
|
-
}, {
|
|
11
|
-
readonly value: "option3";
|
|
12
|
-
readonly name: "Highlight 3";
|
|
13
|
-
}];
|
|
14
|
-
export type HighlightOptionValue = (typeof highlightOptions)[number]['value'];
|
|
15
|
-
type SelectedHighlightOptionStore = {
|
|
16
|
-
selectedHighlightOption: HighlightOptionValue;
|
|
17
|
-
setSelectedHighlightOption: (value: HighlightOptionValue) => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const useSelectedHighlightOption: import('zustand').UseBoundStore<import('zustand').StoreApi<SelectedHighlightOptionStore>>;
|
|
20
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ITranscriptTimestamps } from '../lib/typings/ISalina';
|
|
2
|
-
interface TimelineData {
|
|
3
|
-
waveForm: any | null;
|
|
4
|
-
setWaveForm: (waveform: any) => void;
|
|
5
|
-
thumbnails: string[];
|
|
6
|
-
setThumbnails: (thumbnails: string[]) => void;
|
|
7
|
-
closeCaptionDetails: ITranscriptTimestamps[];
|
|
8
|
-
setCloseCaptionDetails: (closeCaptionDetails: ITranscriptTimestamps[]) => void;
|
|
9
|
-
audioSrc: string;
|
|
10
|
-
setAudioSrc: (audioSrc: string) => void;
|
|
11
|
-
videoSrc: string;
|
|
12
|
-
setVideoSrc: (videoSrc: string) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const useTimelineDataStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TimelineData>>;
|
|
15
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface TimelineLayers {
|
|
2
|
-
waveformShow: boolean;
|
|
3
|
-
setWaveformShow: (waveformShow: boolean) => void;
|
|
4
|
-
ccShow: boolean;
|
|
5
|
-
setCcShow: (captionsShow: boolean) => void;
|
|
6
|
-
thumbnailsShow: boolean;
|
|
7
|
-
setThumbnailsShow: (thumbnailsShow: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const useTimelineLayersStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<TimelineLayers>, "persist"> & {
|
|
10
|
-
persist: {
|
|
11
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<TimelineLayers, TimelineLayers>>) => void;
|
|
12
|
-
clearStorage: () => void;
|
|
13
|
-
rehydrate: () => Promise<void> | void;
|
|
14
|
-
hasHydrated: () => boolean;
|
|
15
|
-
onHydrate: (fn: (state: TimelineLayers) => void) => () => void;
|
|
16
|
-
onFinishHydration: (fn: (state: TimelineLayers) => void) => () => void;
|
|
17
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<TimelineLayers, TimelineLayers>>;
|
|
18
|
-
};
|
|
19
|
-
}>;
|
|
20
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface TimelineStore {
|
|
2
|
-
showTimeline: boolean;
|
|
3
|
-
setShowTimeline: (showTimeline: boolean) => void;
|
|
4
|
-
zoomSize: number;
|
|
5
|
-
setZoomSize: (zoomSize: number) => void;
|
|
6
|
-
resetZoomSize: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const useTimelineStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TimelineStore>>;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ITrimmedDirectory } from '../lib/typings/IDirectory';
|
|
2
|
-
interface ToMergeState {
|
|
3
|
-
toMerge: ITrimmedDirectory[];
|
|
4
|
-
addToMerge: (item: ITrimmedDirectory) => void;
|
|
5
|
-
resetToMerge: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const useToMergeStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ToMergeState>>;
|
|
8
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Store for managing transcript highlight direction
|
|
3
|
-
* Used to control the visual highlighting of words when moving them up or down
|
|
4
|
-
*/
|
|
5
|
-
type TranscriptHighlightDirection = {
|
|
6
|
-
highlightDirection: 'up' | 'down' | null;
|
|
7
|
-
setHighlightDirection: (direction: 'up' | 'down' | null) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const useTranscriptHighlightDirection: import('zustand').UseBoundStore<import('zustand').StoreApi<TranscriptHighlightDirection>>;
|
|
10
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ITranscript } from '../lib/typings/ITranscript';
|
|
2
|
-
type TranscriptStore = {
|
|
3
|
-
transcript: ITranscript[];
|
|
4
|
-
setTranscript: (transcript: ITranscript[]) => void;
|
|
5
|
-
transcriptId: string;
|
|
6
|
-
setTranscriptId: (transcriptId: string) => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const useTranscriptStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TranscriptStore>>;
|
|
9
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ITrimmed } from '../lib/typings/ITrimmed';
|
|
2
|
-
type TrimmedClipsStore = {
|
|
3
|
-
trimmedClips: ITrimmed[];
|
|
4
|
-
setTrimmedClips: (trimmedClips: ITrimmed[]) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const useTrimmedClipsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TrimmedClipsStore>>;
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ITrimmerStamp } from '../lib/typings/ITrimmed';
|
|
2
|
-
type TrimmerStampStore = {
|
|
3
|
-
trimmerStamp: ITrimmerStamp;
|
|
4
|
-
setTrimmerStamp: (trimmerStamp: ITrimmerStamp) => void;
|
|
5
|
-
resetTrimmerStamp: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const useTrimmerStampStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TrimmerStampStore>>;
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IVideoMetadata } from '../lib/typings/IVideoMetadata';
|
|
2
|
-
type VideoMetadataStore = {
|
|
3
|
-
videoMetadata: IVideoMetadata;
|
|
4
|
-
setVideoMetadata: (videoMetadata: IVideoMetadata) => void;
|
|
5
|
-
resetVideoMetaData: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const videoMetadataInitialState: IVideoMetadata;
|
|
8
|
-
export declare const useVideoMetadataStore: import('zustand').UseBoundStore<import('zustand').StoreApi<VideoMetadataStore>>;
|
|
9
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface VideoPlayerActions {
|
|
2
|
-
videoCurrentTime: number;
|
|
3
|
-
videoDuration: number;
|
|
4
|
-
videoIsPlaying: boolean;
|
|
5
|
-
videoIsReady: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const videoPlayerDefault: {
|
|
8
|
-
videoCurrentTime: number;
|
|
9
|
-
videoDuration: number;
|
|
10
|
-
videoIsPlaying: boolean;
|
|
11
|
-
videoIsReady: boolean;
|
|
12
|
-
};
|
|
13
|
-
interface VideoPlayerState {
|
|
14
|
-
videoCurrentTime: number;
|
|
15
|
-
setVideoCurrentTime: (value: number) => void;
|
|
16
|
-
videoDuration: number;
|
|
17
|
-
setVideoDuration: (value: number) => void;
|
|
18
|
-
videoIsPlaying: boolean;
|
|
19
|
-
setVideoIsPlaying: (value: boolean) => void;
|
|
20
|
-
videoIsReady: boolean;
|
|
21
|
-
setVideoIsReady: (value: boolean) => void;
|
|
22
|
-
playerRef: any | null;
|
|
23
|
-
setPlayerRef: (playerRef: any) => void;
|
|
24
|
-
activeTranscript: string | undefined;
|
|
25
|
-
setActiveTranscript: (value: string) => void;
|
|
26
|
-
resetPlayerState: () => void;
|
|
27
|
-
}
|
|
28
|
-
export declare const useVideoPlayerStore: import('zustand').UseBoundStore<import('zustand').StoreApi<VideoPlayerState>>;
|
|
29
|
-
export {};
|