@salina-app/media-editor 0.1.9 → 0.1.10
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/dist/components/customs/Player/playerConfig.d.ts +34 -0
- package/dist/components/customs/Transcription/ExampleUseCase/TranscriptList.d.ts +5 -0
- package/dist/components/customs/Transcription/ExampleUseCase/YoutubeTranscriptList.d.ts +5 -0
- package/dist/components/customs/Transcription/SubComponents/Timestamps.d.ts +27 -0
- package/dist/components/customs/Transcription/{TranscriptHighlight.d.ts → SubComponents/TranscriptHighlight.d.ts} +8 -4
- package/dist/components/customs/Transcription/SubComponents/utils.d.ts +6 -0
- package/dist/components/customs/Transcription/TranscriptSegment.d.ts +19 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.js +26108 -23426
- package/dist/lib/helpers/timeline.d.ts +7 -0
- package/dist/lib/typings/IWord.d.ts +7 -0
- package/dist/main.d.ts +3 -4
- package/dist/pages/ClosedCaption/Youtube.d.ts +3 -0
- package/dist/stories/Chapter.stories.d.ts +12 -0
- package/dist/stories/ClosedCaption.stories.d.ts +20 -4
- package/dist/stories/Player.stories.d.ts +7 -0
- package/dist/stories/Transcript.stories.d.ts +3 -4
- package/package.json +3 -2
- package/dist/components/customs/ClosedCaption/CCDetails.d.ts +0 -7
- package/dist/components/customs/ClosedCaption/CCLine.d.ts +0 -10
- package/dist/components/customs/ClosedCaption/NoClosedCaption.d.ts +0 -2
- package/dist/components/customs/Transcription/TranscriptMultiple.d.ts +0 -4
- package/dist/components/customs/Transcription/TranscriptSingle.d.ts +0 -18
|
@@ -1,4 +1,38 @@
|
|
|
1
1
|
import { Track } from './Player';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the provided URL is a YouTube link
|
|
4
|
+
* Supports various YouTube URL formats:
|
|
5
|
+
* - youtube.com/watch?v=VIDEO_ID
|
|
6
|
+
* - youtu.be/VIDEO_ID
|
|
7
|
+
* - youtube.com/embed/VIDEO_ID
|
|
8
|
+
* - youtube.com/v/VIDEO_ID
|
|
9
|
+
* - youtube.com/shorts/VIDEO_ID
|
|
10
|
+
*/
|
|
11
|
+
export declare const isYoutubeLink: (url: string) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Extracts YouTube video ID from a YouTube URL
|
|
14
|
+
* Supports various YouTube URL formats
|
|
15
|
+
*/
|
|
16
|
+
export declare const getYoutubeVideoId: (url: string) => string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Creates specific YouTube player configuration options
|
|
19
|
+
*/
|
|
20
|
+
export declare const createYoutubeOptions: (videoId: string) => {
|
|
21
|
+
techOrder: string[];
|
|
22
|
+
youtube: {
|
|
23
|
+
videoId: string;
|
|
24
|
+
iv_load_policy: number;
|
|
25
|
+
modestbranding: number;
|
|
26
|
+
playsinline: number;
|
|
27
|
+
rel: number;
|
|
28
|
+
showinfo: number;
|
|
29
|
+
controls: number;
|
|
30
|
+
fs: number;
|
|
31
|
+
disablekb: number;
|
|
32
|
+
quality: string;
|
|
33
|
+
volume: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
2
36
|
export declare const createVideoOptions: (src: string, tracks?: Track[]) => {
|
|
3
37
|
autoplay: boolean;
|
|
4
38
|
controls: boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface TimeStampsProps {
|
|
2
|
+
start: string;
|
|
3
|
+
end: string;
|
|
4
|
+
prevEnd?: string;
|
|
5
|
+
nextStart?: string;
|
|
6
|
+
handleUpdateTimestamp?: (payload: any) => void;
|
|
7
|
+
payload?: {
|
|
8
|
+
timestamp_end: string;
|
|
9
|
+
timestamp_start: string;
|
|
10
|
+
process_id: string;
|
|
11
|
+
segment_id?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Render timestamp controls for managing start and end times.
|
|
16
|
+
* Accepts start and end timestamps, previous and next timestamps,
|
|
17
|
+
* and a payload for updating timestamps.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} start - The start timestamp.
|
|
20
|
+
* @param {string} end - The end timestamp.
|
|
21
|
+
* @param {string} prevEnd - The end timestamp of the previous segment.
|
|
22
|
+
* @param {string} nextStart - The start timestamp of the next segment.
|
|
23
|
+
* @param {Object} payload - The payload containing timestamp details.
|
|
24
|
+
* @param {Function} [handleUpdateTimestamp] - Optional function to handle timestamp updates.
|
|
25
|
+
*/
|
|
26
|
+
declare const TimeStamps: ({ start, end, prevEnd, nextStart, payload, handleUpdateTimestamp, }: TimeStampsProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default TimeStamps;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWord } from '../../../../lib/typings/IWord';
|
|
2
2
|
type Props = {
|
|
3
3
|
timestamp_start: string;
|
|
4
4
|
timestamp_end: string;
|
|
5
|
-
|
|
5
|
+
words: IWord[];
|
|
6
|
+
activeWord: IWord | null;
|
|
6
7
|
isSaving: boolean;
|
|
7
|
-
|
|
8
|
+
contextItems?: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
props: any;
|
|
11
|
+
}[];
|
|
8
12
|
};
|
|
9
13
|
/**
|
|
10
14
|
* Renders the highlighted transcript based on the provided word segments and timestamps.
|
|
@@ -13,5 +17,5 @@ type Props = {
|
|
|
13
17
|
* @param {string} timestamp_start - The start timestamp for the highlighted section.
|
|
14
18
|
* @param {boolean} isSaving - Indicates if the transcript is currently being saved.
|
|
15
19
|
*/
|
|
16
|
-
declare const VideoHighlightedTranscript: ({
|
|
20
|
+
declare const VideoHighlightedTranscript: ({ timestamp_start, timestamp_end, words, activeWord, isSaving, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
21
|
export default VideoHighlightedTranscript;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IWord } from '../../../lib/typings/IWord';
|
|
2
|
+
export interface Item {
|
|
3
|
+
_id: string;
|
|
4
|
+
timestamp_start: string;
|
|
5
|
+
timestamp_end: string;
|
|
6
|
+
timestamp_text?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
words: IWord[];
|
|
9
|
+
}
|
|
10
|
+
interface SingleTranscriptProps {
|
|
11
|
+
indexVersion?: number;
|
|
12
|
+
index?: number;
|
|
13
|
+
item: Item;
|
|
14
|
+
previousItem?: Item;
|
|
15
|
+
nextItem?: Item;
|
|
16
|
+
activeItem?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import('react').MemoExoticComponent<({ index, indexVersion, item, previousItem, nextItem, activeItem, }: SingleTranscriptProps) => import("react/jsx-runtime").JSX.Element>;
|
|
19
|
+
export default _default;
|