@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.
Files changed (141) hide show
  1. package/README.md +15 -15
  2. package/package.json +96 -96
  3. package/dist/assets/icons/FolderOpen.d.ts +0 -4
  4. package/dist/assets/icons/UploadCircle.d.ts +0 -2
  5. package/dist/assets/icons/Video.d.ts +0 -4
  6. package/dist/components/customs/AnimatedLoader/AnimatedLoader.d.ts +0 -8
  7. package/dist/components/customs/Dialog/AlertDialog.d.ts +0 -2
  8. package/dist/components/customs/Highlight/HighlightSelection.d.ts +0 -28
  9. package/dist/components/customs/Player/NewPlayer.d.ts +0 -22
  10. package/dist/components/customs/Player/Player.d.ts +0 -15
  11. package/dist/components/customs/Player/StringIcons.d.ts +0 -7
  12. package/dist/components/customs/Player/playerConfig.d.ts +0 -82
  13. package/dist/components/customs/Source/DirectoryList.d.ts +0 -8
  14. package/dist/components/customs/Source/FileIcon.d.ts +0 -8
  15. package/dist/components/customs/Source/SubDirectory.d.ts +0 -12
  16. package/dist/components/customs/Source/TrimmedList.d.ts +0 -8
  17. package/dist/components/customs/Timeline/CCBlocks.d.ts +0 -2
  18. package/dist/components/customs/Timeline/Timeline.d.ts +0 -14
  19. package/dist/components/customs/Timeline/TimelineCard/CCBlock.d.ts +0 -10
  20. package/dist/components/customs/Timeline/TimelineCard/CCBlockAdd.d.ts +0 -8
  21. package/dist/components/customs/Timeline/TimelineCard/TrimCard.d.ts +0 -28
  22. package/dist/components/customs/Timeline/TimelineCard/TrimCardDetails.d.ts +0 -25
  23. package/dist/components/customs/Timeline/TimelineCards.d.ts +0 -10
  24. package/dist/components/customs/Timeline/TimelineControls.d.ts +0 -7
  25. package/dist/components/customs/Timeline/TimelineGrabber.d.ts +0 -11
  26. package/dist/components/customs/Timeline/TimelineIndicator.d.ts +0 -2
  27. package/dist/components/customs/Timeline/TimelineSpacer.d.ts +0 -5
  28. package/dist/components/customs/Timeline/TimelineThumbnails.d.ts +0 -8
  29. package/dist/components/customs/Timeline/TimelineTimestamps.d.ts +0 -9
  30. package/dist/components/customs/Timeline/TimelineWaveform.d.ts +0 -5
  31. package/dist/components/customs/Timeline/TrimStampEnd.d.ts +0 -6
  32. package/dist/components/customs/Timeline/TrimStampStart.d.ts +0 -6
  33. package/dist/components/customs/Transcription/ExampleUseCase/TranscriptList.d.ts +0 -5
  34. package/dist/components/customs/Transcription/ExampleUseCase/YoutubeTranscriptList.d.ts +0 -5
  35. package/dist/components/customs/Transcription/SubComponents/Timestamps.d.ts +0 -8
  36. package/dist/components/customs/Transcription/SubComponents/TranscriptHighlight.d.ts +0 -29
  37. package/dist/components/customs/Transcription/SubComponents/Word.d.ts +0 -36
  38. package/dist/components/customs/Transcription/SubComponents/utils.d.ts +0 -6
  39. package/dist/components/customs/Transcription/TranscriptSegment.d.ts +0 -38
  40. package/dist/components/customs/Transcription/storybook-transcription.d.ts +0 -25
  41. package/dist/components/customs/Upload/FileUpload.d.ts +0 -8
  42. package/dist/components/customs/Wrappers/Flex.d.ts +0 -11
  43. package/dist/components/customs/Wrappers/index.d.ts +0 -1
  44. package/dist/components/ui/alert-dialog.d.ts +0 -20
  45. package/dist/components/ui/badge.d.ts +0 -9
  46. package/dist/components/ui/button.d.ts +0 -19
  47. package/dist/components/ui/context-menu.d.ts +0 -27
  48. package/dist/components/ui/dialog.d.ts +0 -19
  49. package/dist/components/ui/input.d.ts +0 -3
  50. package/dist/components/ui/resizable.d.ts +0 -23
  51. package/dist/components/ui/select.d.ts +0 -13
  52. package/dist/components/ui/skeleton.d.ts +0 -2
  53. package/dist/components/ui/switch.d.ts +0 -4
  54. package/dist/components/ui/toast.d.ts +0 -15
  55. package/dist/components/ui/toaster.d.ts +0 -1
  56. package/dist/components/ui/tooltip.d.ts +0 -7
  57. package/dist/components/ui/use-toast.d.ts +0 -44
  58. package/dist/config/config.d.ts +0 -1
  59. package/dist/dataServices/directory.d.ts +0 -5
  60. package/dist/dataServices/merged.d.ts +0 -9
  61. package/dist/dataServices/timeline.d.ts +0 -6
  62. package/dist/dataServices/trimmed.d.ts +0 -13
  63. package/dist/dataServices/upload.d.ts +0 -5
  64. package/dist/hooks/use-toast.d.ts +0 -44
  65. package/dist/hooks/useAxios.d.ts +0 -9
  66. package/dist/hooks/useInitialTrimmedClipsVideoMetadata.d.ts +0 -2
  67. package/dist/hooks/useJwt.d.ts +0 -3
  68. package/dist/hooks/useKeyboardShortcuts.d.ts +0 -10
  69. package/dist/hooks/useMoveTime.d.ts +0 -15
  70. package/dist/hooks/useRefresh.d.ts +0 -6
  71. package/dist/hooks/useTimelineDataInitializer.d.ts +0 -10
  72. package/dist/index.css +0 -1
  73. package/dist/index.js +0 -81406
  74. package/dist/lib/constants.d.ts +0 -13
  75. package/dist/lib/helpers/boolHelpers.d.ts +0 -8
  76. package/dist/lib/helpers/chunkTimestamps.d.ts +0 -11
  77. package/dist/lib/helpers/directory.d.ts +0 -5
  78. package/dist/lib/helpers/docHelper.d.ts +0 -13
  79. package/dist/lib/helpers/docHelperExample.d.ts +0 -2
  80. package/dist/lib/helpers/numberHelpers.d.ts +0 -3
  81. package/dist/lib/helpers/stringHelpers.d.ts +0 -12
  82. package/dist/lib/helpers/timestamp/timestampConverter.d.ts +0 -23
  83. package/dist/lib/helpers/timestamp/timestampGetter.d.ts +0 -4
  84. package/dist/lib/helpers/timestamp/timestampSorter.d.ts +0 -4
  85. package/dist/lib/helpers/timestamp/timestampSplitter.d.ts +0 -5
  86. package/dist/lib/schema/salina.d.ts +0 -107
  87. package/dist/lib/schema/schemaGlobal.d.ts +0 -54
  88. package/dist/lib/typings/IAxios.d.ts +0 -10
  89. package/dist/lib/typings/IChapter.d.ts +0 -17
  90. package/dist/lib/typings/IDirectory.d.ts +0 -33
  91. package/dist/lib/typings/IMerged.d.ts +0 -28
  92. package/dist/lib/typings/IResponse.d.ts +0 -5
  93. package/dist/lib/typings/ISalina.d.ts +0 -4
  94. package/dist/lib/typings/ISegment.d.ts +0 -34
  95. package/dist/lib/typings/ISource.d.ts +0 -5
  96. package/dist/lib/typings/ISprites.d.ts +0 -4
  97. package/dist/lib/typings/ITranscript.d.ts +0 -14
  98. package/dist/lib/typings/ITrimmed.d.ts +0 -102
  99. package/dist/lib/typings/IUpload.d.ts +0 -25
  100. package/dist/lib/typings/IVideoMetadata.d.ts +0 -6
  101. package/dist/lib/typings/IWaveform.d.ts +0 -5
  102. package/dist/lib/typings/IWord.d.ts +0 -8
  103. package/dist/lib/utils.d.ts +0 -2
  104. package/dist/main.d.ts +0 -37
  105. package/dist/pages/ClosedCaption/YouTubeTranscriptLoader.d.ts +0 -3
  106. package/dist/pages/ClosedCaption/Youtube.d.ts +0 -3
  107. package/dist/pages/Timestamp/VideoPlayer.d.ts +0 -21
  108. package/dist/pages/Timestamp/VideoPlayerContainer.d.ts +0 -2
  109. package/dist/stories/Components/DirectoryList.stories.d.ts +0 -12
  110. package/dist/stories/Components/FileUpload.stories.d.ts +0 -12
  111. package/dist/stories/Salina/Player/Player.stories.d.ts +0 -9
  112. package/dist/stories/Salina/Player/docs/Default.d.ts +0 -2
  113. package/dist/stories/Salina/Player/docs/YoutubePlayer.d.ts +0 -2
  114. package/dist/stories/Salina/Timeline/Timeline.stories.d.ts +0 -32
  115. package/dist/stories/Salina/Timeline/stories/Balitanghali.d.ts +0 -2
  116. package/dist/stories/Salina/Timeline/stories/Storybook.d.ts +0 -2
  117. package/dist/stories/Salina/Timeline/stories/WithDirectory.d.ts +0 -2
  118. package/dist/stories/Salina/Transcript/Transcript.stories.d.ts +0 -10
  119. package/dist/stories/Salina/Transcript/data/ChaptersTranscript.d.ts +0 -3
  120. package/dist/stories/Salina/Transcript/data/ClosedCaptionTranscript.d.ts +0 -3
  121. package/dist/stories/Salina/Transcript/data/SegmentTranscript.d.ts +0 -13
  122. package/dist/stories/Salina/Transcript/docs/Default.d.ts +0 -2
  123. package/dist/zustand/alertDialogStore.d.ts +0 -13
  124. package/dist/zustand/appConfigStore.d.ts +0 -6
  125. package/dist/zustand/chapterStore.d.ts +0 -7
  126. package/dist/zustand/createStoreWithSelectors.d.ts +0 -4
  127. package/dist/zustand/filePathStore.d.ts +0 -8
  128. package/dist/zustand/focusTrimmedClipStore.d.ts +0 -6
  129. package/dist/zustand/mergeStore.d.ts +0 -15
  130. package/dist/zustand/outputFilesStore.d.ts +0 -7
  131. package/dist/zustand/selectedHighlightOption.d.ts +0 -20
  132. package/dist/zustand/timelineDataStore.d.ts +0 -15
  133. package/dist/zustand/timelineLayersStore.d.ts +0 -20
  134. package/dist/zustand/timelineStore.d.ts +0 -9
  135. package/dist/zustand/toMergeStore.d.ts +0 -8
  136. package/dist/zustand/transcriptHighlightDirection.d.ts +0 -10
  137. package/dist/zustand/transcriptStore.d.ts +0 -9
  138. package/dist/zustand/trimmedClipsStore.d.ts +0 -7
  139. package/dist/zustand/trimmerStampStore.d.ts +0 -8
  140. package/dist/zustand/videoMetadataStore.d.ts +0 -9
  141. package/dist/zustand/videoPlayerStore.d.ts +0 -29
@@ -1,13 +0,0 @@
1
- export declare const trimCardActionsModalInfo: {
2
- [key: string]: {
3
- isOpen: boolean;
4
- title: string;
5
- description: string;
6
- variant: 'default' | 'destructive';
7
- };
8
- };
9
- export declare const reactScanOptions: {
10
- enabled: boolean;
11
- showToolbar: boolean;
12
- trackUnnecessaryRenders: boolean;
13
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * Check if the current time is between the start and end times.
3
- * @param {string | undefined | null} start - The start time as a string.
4
- * @param {string | undefined | null} end - The end time as a string.
5
- * @param {number | undefined} curr - The current time as a number.
6
- * @returns {boolean} True if current time is between start and end, otherwise false.
7
- */
8
- export declare const isInBetweenCurrent: (start: string | undefined | null, end: string | undefined | null, curr: number | undefined) => boolean;
@@ -1,11 +0,0 @@
1
- import { ITranscriptTimestamps, ITranslatedCloseCaption } from '../typings/ISalina';
2
- /**
3
- * Filter timestamps based on the current time and a specified range.
4
- * Returns unique segments that fall within the defined time range.
5
- *
6
- * @param {ITranscriptTimestamps[] | ITranslatedCloseCaption[]} data - The array of timestamped segments to filter.
7
- * @param {number} currentTime - The current time in seconds to use as the reference point.
8
- * @param {number} [rangeSeconds=30] - The total range in seconds to filter around the current time.
9
- * @returns {Array} An array of unique segments that fall within the specified time range.
10
- */
11
- export declare const filterTimestamps: (data: ITranscriptTimestamps[] | ITranslatedCloseCaption[], currentTime: number, rangeSeconds?: number) => ITranslatedCloseCaption[];
@@ -1,5 +0,0 @@
1
- export declare const isAudioVideo: (filename: string, identifier: any) => boolean;
2
- export declare const timeSorting: (formattedTime: any) => any;
3
- export declare const getCurrentDateTime: () => string;
4
- export declare const getFilePath: (filePath: string) => string[];
5
- export declare const videoLabelFormatting: (label: string) => string;
@@ -1,13 +0,0 @@
1
- /**
2
- * Helper for generating React documentation code examples
3
- */
4
- interface DocHelperProps {
5
- /** Array of import statements as strings */
6
- imports: string[];
7
- /** Contents of the component function body */
8
- componentBody: string;
9
- /** Optional component name (defaults to 'App') */
10
- componentName?: string;
11
- }
12
- declare const docHelper: ({ imports, componentBody, componentName, }: DocHelperProps) => string;
13
- export default docHelper;
@@ -1,2 +0,0 @@
1
- declare const exampleCode: string;
2
- export default exampleCode;
@@ -1,3 +0,0 @@
1
- export declare const addNumberPadding: (number: number, length: number) => string;
2
- export declare const padZero: (number: number) => string;
3
- export declare const padZeroWithDecimal: (number: number) => string;
@@ -1,12 +0,0 @@
1
- /**
2
- * Determine the file type for uploaded files based on their name.
3
- * @param {string} name - The file name to check.
4
- * @returns {string} - Returns 'audio' or 'video'.
5
- */
6
- export declare const mediaFileTypeChecker: (name: string) => "audio" | "video";
7
- /**
8
- * Convert a timestamp string to seconds.
9
- * @param {string} timeString - The timestamp string in the format HH:MM:SS.
10
- * @returns {string} - The total seconds as a string or an empty string if invalid.
11
- */
12
- export declare const toSeconds: (timeString: string) => string;
@@ -1,23 +0,0 @@
1
- export declare const secondsToTimestamp: (startingSeconds: number) => string;
2
- /**
3
- * Converts a timestamp string in format "HH:MM:SS.mmm" to seconds
4
- * @param {string} timestamp - The timestamp string to convert
5
- * @returns {number} - Total time in seconds (including milliseconds as decimal)
6
- * @example timestampToSeconds("01:30:45.500") // Returns 5445.5
7
- * @example timestampToSeconds("01:02:03") // Returns 3723
8
- */
9
- export declare const timestampToSeconds: (timestamp: string) => number;
10
- export declare const timestampToWidth: (start: string, end: string, zoomSize?: number) => number;
11
- /**
12
- * Convert a position in pixels to a timestamp format (HH:MM:SS.sss).
13
- * Calculate the hours, minutes, and seconds from the given position
14
- * based on the specified pixels per second.
15
- *
16
- * @param {number} position - The position in pixels.
17
- * @param {number} pixelsPerSecond - The number of pixels that correspond to one second.
18
- * @returns {string} The formatted timestamp.
19
- */
20
- export declare const pxToTimestamp: (position: number, pixelsPerSecond: number) => string;
21
- export declare const durationToTimestamp: (duration: number, format?: string) => string;
22
- export declare const durationToPixel: (duration: number, zoomSize: number) => number;
23
- export declare const ensureThreeDecimalPlaces: (timestamp: string) => string;
@@ -1,4 +0,0 @@
1
- import { ITrimmed } from '../../typings/ITrimmed';
2
- export declare const getClosestTimestamp: (idstmp: string, tmstmp: string, trimmedData: ITrimmed[]) => string;
3
- export declare const getMaxTrimCard: (trimmedData: ITrimmed[], isReady: boolean) => string | 0 | undefined;
4
- export declare const getlowestTimeStampID: (tmstmp: string, trimmedData: ITrimmed[]) => string;
@@ -1,4 +0,0 @@
1
- export declare function sortByTimestampStart<T extends {
2
- timestamp_one?: string;
3
- timestamp_start?: string;
4
- }>(array: T[]): T[];
@@ -1,5 +0,0 @@
1
- export declare const splitTimestamps: (totalSeconds: number) => number;
2
- export declare const checkStampDivisible: (zsz: number, tm: string) => {
3
- zoom: number;
4
- opacity: string;
5
- };
@@ -1,107 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const TranscribeWordTimestamp: z.ZodObject<{
3
- confidence: z.ZodOptional<z.ZodNumber>;
4
- timestamp_start: z.ZodString;
5
- timestamp_end: z.ZodString;
6
- timestamp_text: z.ZodString;
7
- word_segment_idx: z.ZodNumber;
8
- _id: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- timestamp_start: string;
11
- timestamp_end: string;
12
- timestamp_text: string;
13
- word_segment_idx: number;
14
- _id?: string | undefined;
15
- confidence?: number | undefined;
16
- }, {
17
- timestamp_start: string;
18
- timestamp_end: string;
19
- timestamp_text: string;
20
- word_segment_idx: number;
21
- _id?: string | undefined;
22
- confidence?: number | undefined;
23
- }>;
24
- export declare const TranscriptTimestamps: z.ZodObject<{
25
- _id: z.ZodOptional<z.ZodString>;
26
- proofread: z.ZodBoolean;
27
- increment_idx: z.ZodOptional<z.ZodNumber>;
28
- segment_idx: z.ZodNullable<z.ZodNumber>;
29
- timestamp_cpl: z.ZodNumber;
30
- timestamp_cpm: z.ZodNumber;
31
- timestamp_wpm: z.ZodNumber;
32
- timestamp_cps: z.ZodNumber;
33
- timestamp_wps: z.ZodNumber;
34
- timestamp_end: z.ZodString;
35
- timestamp_start: z.ZodString;
36
- timestamp_text: z.ZodString;
37
- isPendingUpdate: z.ZodOptional<z.ZodBoolean>;
38
- transcription_segment: z.ZodOptional<z.ZodNumber>;
39
- words: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
- confidence: z.ZodOptional<z.ZodNumber>;
41
- timestamp_start: z.ZodString;
42
- timestamp_end: z.ZodString;
43
- timestamp_text: z.ZodString;
44
- word_segment_idx: z.ZodNumber;
45
- _id: z.ZodOptional<z.ZodString>;
46
- }, "strip", z.ZodTypeAny, {
47
- timestamp_start: string;
48
- timestamp_end: string;
49
- timestamp_text: string;
50
- word_segment_idx: number;
51
- _id?: string | undefined;
52
- confidence?: number | undefined;
53
- }, {
54
- timestamp_start: string;
55
- timestamp_end: string;
56
- timestamp_text: string;
57
- word_segment_idx: number;
58
- _id?: string | undefined;
59
- confidence?: number | undefined;
60
- }>, "many">>;
61
- }, "strip", z.ZodTypeAny, {
62
- timestamp_start: string;
63
- timestamp_end: string;
64
- timestamp_text: string;
65
- proofread: boolean;
66
- segment_idx: number | null;
67
- timestamp_cpl: number;
68
- timestamp_cpm: number;
69
- timestamp_wpm: number;
70
- timestamp_cps: number;
71
- timestamp_wps: number;
72
- words?: {
73
- timestamp_start: string;
74
- timestamp_end: string;
75
- timestamp_text: string;
76
- word_segment_idx: number;
77
- _id?: string | undefined;
78
- confidence?: number | undefined;
79
- }[] | undefined;
80
- _id?: string | undefined;
81
- increment_idx?: number | undefined;
82
- isPendingUpdate?: boolean | undefined;
83
- transcription_segment?: number | undefined;
84
- }, {
85
- timestamp_start: string;
86
- timestamp_end: string;
87
- timestamp_text: string;
88
- proofread: boolean;
89
- segment_idx: number | null;
90
- timestamp_cpl: number;
91
- timestamp_cpm: number;
92
- timestamp_wpm: number;
93
- timestamp_cps: number;
94
- timestamp_wps: number;
95
- words?: {
96
- timestamp_start: string;
97
- timestamp_end: string;
98
- timestamp_text: string;
99
- word_segment_idx: number;
100
- _id?: string | undefined;
101
- confidence?: number | undefined;
102
- }[] | undefined;
103
- _id?: string | undefined;
104
- increment_idx?: number | undefined;
105
- isPendingUpdate?: boolean | undefined;
106
- transcription_segment?: number | undefined;
107
- }>;
@@ -1,54 +0,0 @@
1
- export interface ITimeline {
2
- audioSrc?: string;
3
- thumbnails?: string[];
4
- userToken?: string;
5
- closeCaptionDetails?: ITranscriptTimestamps[];
6
- defaultZoomSize?: number;
7
- }
8
- export interface ITranscriptTimestamps {
9
- _id?: string;
10
- proofread: boolean;
11
- increment_idx?: number;
12
- addTimestamp_idx?: number;
13
- segment_idx: number | null;
14
- timestamp_cpl: number;
15
- timestamp_cpm: number;
16
- timestamp_wpm: number;
17
- timestamp_cps: number;
18
- timestamp_wps: number;
19
- timestamp_end: string;
20
- timestamp_start: string;
21
- timestamp_text: string;
22
- isPendingUpdate?: boolean;
23
- transcription_segment?: number;
24
- words?: TranscribeWordTimestamp[];
25
- }
26
- export interface TranscribeWordTimestamp {
27
- confidence?: number;
28
- timestamp_start: string;
29
- timestamp_end: string;
30
- timestamp_text: string;
31
- word_segment_idx: number;
32
- _id?: string;
33
- }
34
- export interface IPlayer {
35
- src: string;
36
- }
37
- export interface IKeyoardShortHooks {
38
- userToken: string;
39
- mainFilePath: string;
40
- }
41
- export interface IInitialTrimmedClipsVideoMetadata {
42
- userToken: string;
43
- mainFilePath: string;
44
- videoMetadata?: IVideoMetadata;
45
- }
46
- export interface IVideoMetadata {
47
- videoTitle: string;
48
- videoLink: string;
49
- trimmed: boolean;
50
- fileType: string;
51
- }
52
- export interface ITimelineDataInitializer {
53
- peaks: number[];
54
- }
@@ -1,10 +0,0 @@
1
- import { AxiosRequestHeaders, ResponseType } from 'axios';
2
- export interface IAxios<P, B> {
3
- url: string;
4
- params?: P;
5
- body?: B;
6
- data?: B;
7
- headers?: AxiosRequestHeaders;
8
- responseType?: ResponseType;
9
- onUploadProgress?: (progressEvent: any) => void;
10
- }
@@ -1,17 +0,0 @@
1
- export interface IWord {
2
- word_segment_idx: string | number;
3
- timestamp_text: string;
4
- timestamp_start: string;
5
- timestamp_end: string;
6
- confidence?: number;
7
- }
8
- export interface IChapter {
9
- _id: string;
10
- title: string;
11
- timestamp_end: string;
12
- timestamp_start: string;
13
- timestamp_text: string;
14
- chapter_idx?: number;
15
- thumbnail?: string;
16
- words: IWord[];
17
- }
@@ -1,33 +0,0 @@
1
- export type IDirectory = {
2
- name: string;
3
- path: string;
4
- is_directory: boolean;
5
- };
6
- export type IDirectoryResponse = {
7
- status: boolean;
8
- data: {
9
- files: IDirectory[];
10
- };
11
- };
12
- export type ITrimmedDirectoryPayload = {
13
- path_directory: string;
14
- access_token: string;
15
- };
16
- export type ITrimmedDirectory = IDirectory & {
17
- _id?: string;
18
- process_status?: string;
19
- redirect_url?: string | null;
20
- thumbnails?: string | null;
21
- metadata?: {
22
- article_obj_id?: string | null;
23
- title?: string | null;
24
- content?: string | null;
25
- };
26
- };
27
- export type ITrimmedDirectoryResponse = {
28
- status?: boolean;
29
- success?: boolean;
30
- data: {
31
- files: ITrimmedDirectory[];
32
- };
33
- };
@@ -1,28 +0,0 @@
1
- import { IResponse } from './IResponse';
2
- import { ITranscript } from './ITranscript';
3
- export type IMergedPayload = {
4
- title: string;
5
- access_token: string;
6
- };
7
- export type IMerged = {
8
- _id: string;
9
- title: string;
10
- type: string;
11
- sources: string[];
12
- segment_type: string | null;
13
- file_path: string;
14
- partial: boolean | null;
15
- is_done: boolean;
16
- process_status: string | null;
17
- redirect_url: string | null;
18
- transcription: ITranscript[] | null;
19
- clip_datetime: string | null;
20
- created_by: string | null;
21
- updated_by: string | null;
22
- date_created: string;
23
- date_updated: string;
24
- error_message?: string;
25
- };
26
- export type IMergedResponse = IResponse & {
27
- data: IMerged[];
28
- };
@@ -1,5 +0,0 @@
1
- export type IResponse = {
2
- server_response: string;
3
- success: boolean;
4
- message?: string;
5
- };
@@ -1,4 +0,0 @@
1
- import { z } from 'zod';
2
- import { TranscriptTimestamps } from '../schema/salina';
3
- export type ITranscriptTimestamps = z.infer<typeof TranscriptTimestamps>;
4
- export type ITranslatedCloseCaption = Omit<ITranscriptTimestamps, 'proofread'>;
@@ -1,34 +0,0 @@
1
- import { IWord } from './IWord';
2
- export interface IWordSegments {
3
- timestamp_end: string;
4
- timestamp_start: string;
5
- confidence?: number;
6
- timestamp_text: string;
7
- word_segment_idx: string | number;
8
- _id?: string;
9
- }
10
- export interface ISegments {
11
- timestamp_start: string;
12
- timestamp_end: string;
13
- timestamp_text: string;
14
- words?: IWordSegments[];
15
- segment_idx: number;
16
- _id?: string | undefined;
17
- proofread?: boolean;
18
- language?: string;
19
- language_code?: string;
20
- transcription_segment?: number;
21
- }
22
- export interface ISegment {
23
- _id: string;
24
- originalIndex?: number;
25
- title?: string;
26
- clip_name?: string;
27
- timestamp_text?: string;
28
- timestamp_start: string;
29
- timestamp_end: string;
30
- words: IWord[];
31
- status?: string;
32
- process_status?: string;
33
- segment_type?: string;
34
- }
@@ -1,5 +0,0 @@
1
- export type ISource = {
2
- source: string;
3
- timestamp_start: string;
4
- timestamp_end: string;
5
- };
@@ -1,4 +0,0 @@
1
- import { IResponse } from './IResponse';
2
- export interface ISpritesResponse extends IResponse {
3
- data: string[];
4
- }
@@ -1,14 +0,0 @@
1
- export type ITranscript = {
2
- cpl?: number;
3
- headstart?: string;
4
- start: number;
5
- end: number;
6
- text: string;
7
- };
8
- export type ITranscriptUpdatePayload = {
9
- _id: string;
10
- start: number;
11
- end: number;
12
- text: string;
13
- access_token: string;
14
- };
@@ -1,102 +0,0 @@
1
- import { IResponse } from './IResponse';
2
- import { IWordSegments } from './ISegment';
3
- import { ISource } from './ISource';
4
- import { ITranscript } from './ITranscript';
5
- export type ITrimmedPayload = {
6
- source: string;
7
- access_token: string;
8
- };
9
- export type ITrimmed = {
10
- _id: string;
11
- title: string;
12
- type: string;
13
- chapter: {
14
- text: string;
15
- words: IWordSegments[];
16
- };
17
- clip_name: string;
18
- sources: ISource[];
19
- segment_type: string | null;
20
- file_path: string;
21
- partial: boolean | null;
22
- is_done: boolean;
23
- process_status: string | null;
24
- error_message?: string;
25
- redirect_url: string | null;
26
- transcription: ITranscript[] | null;
27
- clip_datetime: string | null;
28
- created_by: string | null;
29
- updated_by: string | null;
30
- date_created: string;
31
- date_updated: string | null;
32
- id: string;
33
- timestamp_one: string;
34
- timestamp_two: string;
35
- segment: string;
36
- end_timestamp_drag?: any;
37
- data_status?: string;
38
- originalIndex: number;
39
- };
40
- export type ITrimmedResponse = IResponse & {
41
- data: ITrimmed[];
42
- };
43
- export type ITrimmerStamp = {
44
- start: string;
45
- end: string;
46
- processed: boolean;
47
- initialCut: number;
48
- };
49
- export type IPrecutPayload = {
50
- title: string;
51
- type: string;
52
- sources: ISource[];
53
- access_token: string;
54
- };
55
- export type ITrimmedSinglePayload = {
56
- clip_id: string;
57
- access_token: string;
58
- };
59
- export type ITrimmedSingleResponse = IResponse & {
60
- data: {
61
- _id: string;
62
- title: string;
63
- type: string;
64
- sources: ISource[];
65
- segment_type: string | null;
66
- file_path: string;
67
- partial: boolean | null;
68
- is_done: boolean;
69
- process_status: string | null;
70
- error_message?: string;
71
- redirect_url: string | null;
72
- transcription: ITranscript[] | null;
73
- transcript?: ITranscript;
74
- clip_datetime: string | null;
75
- created_by: string | null;
76
- updated_by: string | null;
77
- date_created: string;
78
- date_updated: string;
79
- };
80
- };
81
- export type ITrimmedReprocessPayload = {
82
- clip_id: string;
83
- access_token: string;
84
- };
85
- export type ITrimmedProcessPayload = ITrimmedReprocessPayload & {
86
- title: string;
87
- type: string;
88
- sources: ISource[];
89
- segment_type: string;
90
- partial: boolean;
91
- process_status: string;
92
- };
93
- export type ITrimmedUpdatePayload = {
94
- clip_id: string;
95
- title: string;
96
- type: string;
97
- channel_name: string;
98
- sources: ISource[];
99
- process_status: string;
100
- segment_type: string;
101
- access_token: string;
102
- };
@@ -1,25 +0,0 @@
1
- import { IResponse } from './IResponse';
2
- export interface IUpload {
3
- endpoint: string;
4
- formData: FormData;
5
- type: 'audio' | 'video';
6
- date: string;
7
- channel_name: string;
8
- access_token: string;
9
- onUploadProgress?: (progressEvent: ProgressEvent) => void;
10
- }
11
- export interface IUploadQueuePayload {
12
- type: 'video' | 'audio';
13
- access_token: string;
14
- }
15
- export type IUploadQueueResponse = IResponse & {
16
- data: {
17
- type: 'audio' | 'video';
18
- file: string[];
19
- queues: string;
20
- percentage: number;
21
- percentage_status: boolean;
22
- created_by: string;
23
- date_created: string;
24
- }[];
25
- };
@@ -1,6 +0,0 @@
1
- export interface IVideoMetadata {
2
- videoTitle: string;
3
- videoLink: string;
4
- trimmed: boolean;
5
- fileType: string;
6
- }
@@ -1,5 +0,0 @@
1
- import { IResponse } from './IResponse';
2
- export interface IWaveformResponse extends IResponse {
3
- audio: string;
4
- waveform: number[];
5
- }
@@ -1,8 +0,0 @@
1
- export interface IWord {
2
- _id?: string;
3
- timestamp_text: string;
4
- timestamp_start: string;
5
- timestamp_end: string;
6
- confidence?: number;
7
- word_segment_idx?: string | number;
8
- }
@@ -1,2 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;
package/dist/main.d.ts DELETED
@@ -1,37 +0,0 @@
1
- import { useKeyboardShortcuts } from './hooks/useKeyboardShortcuts';
2
- import { useRefresh } from './hooks/useRefresh';
3
- import { useTimelineDataInitializer } from './hooks/useTimelineDataInitializer';
4
- import { default as useMoveTime } from './hooks/useMoveTime';
5
- import { useTrimmedService } from './dataServices/trimmed';
6
- import { secondsToTimestamp, timestampToSeconds, timestampToWidth, pxToTimestamp, durationToTimestamp, durationToPixel, ensureThreeDecimalPlaces } from './lib/helpers/timestamp/timestampConverter';
7
- import { splitTimestamps, checkStampDivisible } from './lib/helpers/timestamp/timestampSplitter';
8
- import { sortByTimestampStart } from './lib/helpers/timestamp/timestampSorter';
9
- import { getClosestTimestamp, getMaxTrimCard, getlowestTimeStampID } from './lib/helpers/timestamp/timestampGetter';
10
- import { useAlertDialogStore } from './zustand/alertDialogStore';
11
- import { useFilePathStore } from './zustand/filePathStore';
12
- import { useFocusTrimmedClipStore } from './zustand/focusTrimmedClipStore';
13
- import { useMergeStore } from './zustand/mergeStore';
14
- import { useOutputFilesStore } from './zustand/outputFilesStore';
15
- import { useSelectedHighlightOption } from './zustand/selectedHighlightOption';
16
- import { useTimelineStore } from './zustand/timelineStore';
17
- import { useTimelineDataStore } from './zustand/timelineDataStore';
18
- import { useToMergeStore } from './zustand/toMergeStore';
19
- import { useTranscriptStore } from './zustand/transcriptStore';
20
- import { useTrimmedClipsStore } from './zustand/trimmedClipsStore';
21
- import { useTrimmerStampStore } from './zustand/trimmerStampStore';
22
- import { useVideoMetadataStore, videoMetadataInitialState } from './zustand/videoMetadataStore';
23
- import { useVideoPlayerStore } from './zustand/videoPlayerStore';
24
- import { useTranscriptHighlightDirection } from './zustand/transcriptHighlightDirection';
25
- import { useAppConfigStore } from './zustand/appConfigStore';
26
- import { Toaster } from './components/ui/toaster';
27
- import { Toaster as SonnerToaster } from 'sonner';
28
- import { default as AlertDialog } from './components/customs/Dialog/AlertDialog';
29
- import { default as Button, buttonVariants } from './components/ui/button';
30
- import { default as Player } from './components/customs/Player/Player';
31
- import { default as Timeline } from './components/customs/Timeline/Timeline';
32
- import { default as DirectoryList } from './components/customs/Source/DirectoryList';
33
- import { default as SubDirectory } from './components/customs/Source/SubDirectory';
34
- import { default as TranscriptSegment } from './components/customs/Transcription/TranscriptSegment';
35
- import { default as TranscriptList } from './components/customs/Transcription/ExampleUseCase/TranscriptList';
36
- import { default as HighlightSelection } from './components/customs/Highlight/HighlightSelection';
37
- export { useKeyboardShortcuts, useRefresh, useTimelineDataInitializer, useMoveTime, useTrimmedService, secondsToTimestamp, timestampToSeconds, timestampToWidth, pxToTimestamp, durationToTimestamp, durationToPixel, ensureThreeDecimalPlaces, splitTimestamps, checkStampDivisible, sortByTimestampStart, getClosestTimestamp, getMaxTrimCard, getlowestTimeStampID, useAlertDialogStore, useFilePathStore, useFocusTrimmedClipStore, useMergeStore, useOutputFilesStore, useSelectedHighlightOption, useTimelineStore, useTimelineDataStore, useToMergeStore, useTranscriptStore, useTrimmedClipsStore, useTrimmerStampStore, useVideoMetadataStore, videoMetadataInitialState, useVideoPlayerStore, useTranscriptHighlightDirection, useAppConfigStore, Toaster, SonnerToaster, AlertDialog, Button, buttonVariants, Player, Timeline, DirectoryList, TranscriptSegment, TranscriptList, HighlightSelection, SubDirectory, };
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const YouTubeTranscriptLoader: React.FC;
3
- export default YouTubeTranscriptLoader;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const Youtube: React.FC;
3
- export default Youtube;