Skip to content

Commit dca8203

Browse files
committed
[BUILD]: Make build for version 6.4.0
1 parent 4267153 commit dca8203

File tree

13 files changed

+67
-12
lines changed

13 files changed

+67
-12
lines changed

build/components/file-item/components/FileItem/FileItemProps.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@ export interface FileItemProps extends PaperProps {
3131
/**
3232
* A function of what to do when close button is pressed or clicked
3333
*/
34-
onDelete?: (imageUrl: number | string | undefined) => void;
34+
onDelete?: (fileId: number | string | undefined) => void;
3535
/**
36-
* A function of what to do when "see" button is pressed or clicked
36+
* A function that return a file object when "see" button is pressed or clicked
3737
*/
3838
onSee?: (imageUrl: string) => void;
39+
/**
40+
* A function that return a file object when "play" button is presssed or clicked
41+
*/
42+
onWatch?: (videoUrl: File) => void;
3943
/**
4044
* Whether to see as grid or inline (horizontal list)
4145
*/

build/components/file-item/components/FileItemMainLayer/FileItemMainLayer.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ export interface FileItemMainLayerProps {
44
showInfo: boolean;
55
onOpenInfo: Function;
66
onOpenImage: Function | undefined;
7+
onOpenVideo: Function | undefined;
78
onDelete: Function | undefined;
89
fileName: string;
910
info: boolean;
1011
valid: boolean;
1112
isImage: boolean;
13+
isVideo: boolean;
1214
uploadStatus?: undefined | "uploading" | "success" | "error";
1315
sizeFormatted: string;
1416
/**
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { FC } from "react";
2+
import { PlayIconProps } from "./PlayIconProps";
3+
declare const PlayIcon: FC<PlayIconProps>;
4+
export default PlayIcon;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { IconProps } from "../IconProps/IconProps";
2+
export interface PlayIconProps extends IconProps {
3+
}

build/components/icons/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ export { default as UploadError } from "./UploadError/UploadError";
2020
export * from "./UploadError/UploadError";
2121
export { default as Clean } from "./Clean/Clean";
2222
export * from "./Clean/Clean";
23+
export { default as PlayIcon } from "./Play/PlayIcon";
24+
export * from "./Play/PlayIcon";
2325
export { default as UploadingProcess } from "./UploadingProcess/UploadingProcess";
2426
export * from "./UploadingProcess/UploadingProcess";
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
export interface FullScreenPreviewProps {
2+
/**
3+
* image source in string format
4+
*/
25
imgSource?: string;
6+
/**
7+
* boolean value. Whether to open the preview or not
8+
*/
39
openImage?: boolean;
10+
/**
11+
* handler for on Close operation
12+
*/
413
onClose?: Function;
514
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { FC } from "react";
2+
import { VideoPreviewProps } from "./VideoPreviewProps";
3+
import "./VideoPreview.scss";
4+
declare const VideoPreview: FC<VideoPreviewProps>;
5+
export default VideoPreview;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { OverridableProps } from "@unlimited-react-components/kernel";
2+
export interface VideoPreviewProps extends OverridableProps {
3+
/**
4+
* video source in string format or File object
5+
* FileItemComponent returns this value in onWatch handler
6+
*/
7+
videoSrc: File | string;
8+
/**
9+
* boolean value. Whether to open the preview or not
10+
*/
11+
openVideo?: boolean;
12+
/**
13+
* handler for on Close operation
14+
*/
15+
onClose?: Function;
16+
/**
17+
* boolean value. Whether to play automatically the video or not.
18+
*/
19+
autoplay?: boolean;
20+
/**
21+
* boolean value. Whether to display the controls in the video player or not.
22+
*/
23+
controls?: boolean;
24+
}

build/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ export { default as FileItemContainer } from "./components/file-item/components/
2121
export * from "./components/file-item/components/FileItemContainer/FileItemContainer";
2222
export { default as FullScreenPreview } from "./components/image-preview/FullScreenPreview";
2323
export * from "./components/image-preview/FullScreenPreview";
24+
export { default as VideoPreview } from "./components/video-preview/VideoPreview";
25+
export * from "./components/video-preview/VideoPreview";
2426
export { default as InputButton } from "./components/input-button/InputButton";
2527
export * from "./components/input-button/InputButton";

build/index.es.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)