@salina-app/media-editor 0.0.22 → 0.0.24

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 (34) hide show
  1. package/dist/assets/icons/ArrowLeftTriangle.d.ts +4 -0
  2. package/dist/assets/icons/UploadCircle.d.ts +2 -0
  3. package/dist/components/customs/ClosedCaption/CCDetails.d.ts +7 -0
  4. package/dist/components/customs/ClosedCaption/CCLine.d.ts +10 -0
  5. package/dist/components/customs/ClosedCaption/NoClosedCaption.d.ts +2 -0
  6. package/dist/components/customs/DirectoryList/DirectoryList.d.ts +2 -1
  7. package/dist/components/customs/DirectoryList/TrimmedList.d.ts +4 -2
  8. package/dist/components/customs/Transcription/TranscriptHighlight.d.ts +2 -0
  9. package/dist/components/customs/Transcription/TranscriptSingle.d.ts +18 -0
  10. package/dist/components/customs/Transcription/storybook-transcription.d.ts +25 -0
  11. package/dist/components/customs/Upload/FileUpload.d.ts +8 -0
  12. package/dist/components/customs/Wrappers/Flex.d.ts +1 -1
  13. package/dist/components/ui/button.d.ts +1 -1
  14. package/dist/components/ui/resizable.d.ts +1 -1
  15. package/dist/dataServices/upload.d.ts +5 -0
  16. package/dist/hooks/useMoveTime.d.ts +15 -0
  17. package/dist/hooks/useReactVirtualizeHelpers.d.ts +10 -0
  18. package/dist/index.css +1 -1
  19. package/dist/index.js +68865 -67711
  20. package/dist/lib/dummyData/closedcaption.d.ts +5 -0
  21. package/dist/lib/typings/ISegment.d.ts +20 -0
  22. package/dist/lib/typings/ITranscript.d.ts +1 -1
  23. package/dist/lib/typings/IUpload.d.ts +25 -0
  24. package/dist/main.d.ts +5 -3
  25. package/dist/stories/ClosedCaption.stories.d.ts +10 -0
  26. package/dist/stories/FileUpload.stories.d.ts +12 -0
  27. package/dist/stories/Timeline.stories.d.ts +1 -1
  28. package/dist/stories/Transcript.stories.d.ts +12 -0
  29. package/dist/zustand/createStoreWithSelectors.d.ts +4 -0
  30. package/dist/zustand/reactVirtualizedStore.d.ts +8 -0
  31. package/dist/zustand/toMergeStore.d.ts +8 -0
  32. package/package.json +4 -1
  33. package/dist/hooks/useFetchTrimmedClips.d.ts +0 -2
  34. package/dist/hooks/useInitialize.d.ts +0 -9
@@ -0,0 +1,4 @@
1
+ declare const ArrowLeftTriangle: ({ className }: {
2
+ className: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default ArrowLeftTriangle;
@@ -0,0 +1,2 @@
1
+ declare const UploadCircle: () => import("react/jsx-runtime").JSX.Element;
2
+ export default UploadCircle;
@@ -0,0 +1,7 @@
1
+ interface TranscriptionSmallPillsProps {
2
+ cpl?: number | string;
3
+ cps?: number | string;
4
+ cpm?: number | string;
5
+ }
6
+ declare const CCDetails: ({ cpl, cps, cpm }: TranscriptionSmallPillsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default CCDetails;
@@ -0,0 +1,10 @@
1
+ import { ITranscript } from '../../../lib/typings/ITranscript';
2
+ interface Props {
3
+ i: number;
4
+ transcriptTimestamp: ITranscript;
5
+ currentTime: number;
6
+ handleOnTimeChange: (time: number) => void;
7
+ currentId?: string;
8
+ }
9
+ declare const CCLine: ({ i, transcriptTimestamp, currentTime, handleOnTimeChange, }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export default CCLine;
@@ -0,0 +1,2 @@
1
+ declare const NoClosedCaption: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NoClosedCaption;
@@ -2,6 +2,7 @@ interface Props {
2
2
  endpoint: string;
3
3
  startEndpoint: string;
4
4
  userToken: string;
5
+ className?: string;
5
6
  }
6
- declare const DirectoryList: ({ endpoint, startEndpoint, userToken }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const DirectoryList: ({ endpoint, startEndpoint, userToken, className, }: Props) => import("react/jsx-runtime").JSX.Element;
7
8
  export default DirectoryList;
@@ -1,6 +1,8 @@
1
1
  interface Props {
2
2
  endpoint: string;
3
- userToken: string;
3
+ pathname: string;
4
+ userToken?: string;
5
+ className?: string;
4
6
  }
5
- declare const TrimmedList: ({ endpoint, userToken }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const TrimmedList: ({ endpoint, userToken, pathname, className }: Props) => import("react/jsx-runtime").JSX.Element;
6
8
  export default TrimmedList;
@@ -0,0 +1,2 @@
1
+ declare const TranscriptHighlight: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TranscriptHighlight;
@@ -0,0 +1,18 @@
1
+ import { ISegments } from '../../../lib/typings/ISegment';
2
+ interface SingleTranscriptProps {
3
+ data: {
4
+ proofread?: boolean;
5
+ segment_idx: number;
6
+ timestamp_cpl: number;
7
+ timestamp_cpm: number;
8
+ timestamp_cps: number;
9
+ timestamp_end: string;
10
+ timestamp_start: string;
11
+ timestamp_text: string;
12
+ transcription_segment: number;
13
+ segments: ISegments[];
14
+ };
15
+ active: string | undefined;
16
+ }
17
+ declare const _default: import('react').MemoExoticComponent<({ data, active }: SingleTranscriptProps) => import("react/jsx-runtime").JSX.Element>;
18
+ export default _default;
@@ -0,0 +1,25 @@
1
+ export declare const storybookTranscription: {
2
+ timestamp_text: string;
3
+ segment_idx: number;
4
+ timestamp_cpl: number;
5
+ timestamp_cpm: number;
6
+ timestamp_cps: number;
7
+ timestamp_wpm: number;
8
+ timestamp_wps: number;
9
+ timestamp_end: string;
10
+ timestamp_start: string;
11
+ transcription_segment: number;
12
+ segments: {
13
+ _id: string;
14
+ segment_idx: number;
15
+ timestamp_text: string;
16
+ timestamp_start: string;
17
+ timestamp_end: string;
18
+ words: {
19
+ word_segment_idx: number;
20
+ timestamp_text: string;
21
+ timestamp_start: string;
22
+ timestamp_end: string;
23
+ }[];
24
+ }[];
25
+ }[];
@@ -0,0 +1,8 @@
1
+ interface IFileUpload {
2
+ videoFiles: File[];
3
+ setVideoFiles: (files: File[]) => void;
4
+ maxFiles?: number;
5
+ type?: 'video' | 'audio';
6
+ }
7
+ declare const FileUpload: ({ videoFiles, setVideoFiles, maxFiles, type, }: IFileUpload) => import("react/jsx-runtime").JSX.Element;
8
+ export default FileUpload;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const flexVariants: (props?: ({
4
- variant?: "startCentered" | "start" | "endCentered" | "betweenCentered" | "centered" | "centeredStart" | "centeredEnd" | null | undefined;
4
+ variant?: "start" | "startCentered" | "endCentered" | "betweenCentered" | "centered" | "centeredStart" | "centeredEnd" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  interface FlexProps extends React.AllHTMLAttributes<HTMLDivElement>, VariantProps<typeof flexVariants> {
7
7
  variant?: 'centered' | 'betweenCentered' | 'startCentered' | 'endCentered' | 'centeredStart' | 'centeredEnd' | 'start';
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  export declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "icon" | "default" | "sm" | "xs" | "lg" | "base" | null | undefined;
5
+ size?: "base" | "default" | "icon" | "sm" | "xs" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
@@ -1,6 +1,6 @@
1
1
  import * as ResizablePrimitive from "react-resizable-panels";
2
2
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLSpanElement | HTMLObjectElement | HTMLStyleElement | HTMLLinkElement | HTMLDataElement | HTMLFormElement | HTMLLabelElement | HTMLSlotElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLMenuElement | HTMLOptionElement | HTMLTableElement | HTMLBaseElement | HTMLAudioElement | HTMLVideoElement | HTMLAnchorElement | HTMLAreaElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement>, "id" | "onResize"> & {
3
+ declare const ResizablePanel: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLOListElement | HTMLElement | HTMLObjectElement | HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLParagraphElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
4
  className?: string | undefined;
5
5
  collapsedSize?: number | undefined;
6
6
  collapsible?: boolean | undefined;
@@ -0,0 +1,5 @@
1
+ import { IUpload, IUploadQueuePayload, IUploadQueueResponse } from '../lib/typings/IUpload';
2
+ export declare const useUploadService: () => {
3
+ getUploadQueue: (payload: IUploadQueuePayload) => Promise<IUploadQueueResponse>;
4
+ upload: ({ endpoint, formData, onUploadProgress, ...payload }: IUpload) => Promise<unknown>;
5
+ };
@@ -0,0 +1,15 @@
1
+ interface Props {
2
+ time: number;
3
+ isPlaying?: boolean;
4
+ playVideo?: boolean;
5
+ pauseVideo?: boolean;
6
+ }
7
+ /**
8
+ * Manages video playback time and state.
9
+ *
10
+ * @returns {Object} An object containing the jumpTime and handleMoveTime functions.
11
+ */
12
+ declare const useMoveTime: () => {
13
+ jumpTime: ({ time, playVideo, pauseVideo, }: Omit<Props, "isPlaying">) => void;
14
+ };
15
+ export default useMoveTime;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Provides helper functions for managing React Virtualized components.
3
+ *
4
+ * @returns {Object} An object containing the resetReactVirtualized function.
5
+ */
6
+ export declare const useReactVirtualizeHelpers: () => {
7
+ resetReactVirtualized: ({ rowIndex, }?: {
8
+ rowIndex?: number;
9
+ }) => void;
10
+ };