gantri-components 2.147.0 → 2.149.0
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/file-uploader/components/file-uploader-thumbnail-variant/components/thumbnail-render/thumbnail-render.types.d.ts +1 -1
- package/dist/components/file-uploader/components/file-uploader-thumbnail-variant/file-uploader-thumbnail-variant.types.d.ts +1 -1
- package/dist/components/file-uploader/file-uploader.types.d.ts +2 -0
- package/dist/components/video/video.styles.d.ts +1 -0
- package/dist/components/video/video.types.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OptionalValues } from '../../../../../../types/common';
|
|
2
2
|
import { DeleteFile, FileUploaderProps } from '../../../../file-uploader.types';
|
|
3
|
-
export type ThumbnailRenderProps = OptionalValues<Required<Pick<FileUploaderProps, '
|
|
3
|
+
export type ThumbnailRenderProps = OptionalValues<Required<Pick<FileUploaderProps, 'enableCopyUrl' | 'fileUrl' | 'handleRecoverFile' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'onClick' | 'SortableDragHandleWrapper' | 'thumbnailSize' | 'transformThumbnailSrc'>>> & {
|
|
4
4
|
deleteFile: DeleteFile;
|
|
5
5
|
handleOpenFileSelect: () => void;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileUploaderProps, DeleteFile } from '../../file-uploader.types';
|
|
2
2
|
import { OptionalValues } from '../../../../types/common';
|
|
3
|
-
export type FileUploaderThumbnailVariantProps = OptionalValues<Required<Pick<FileUploaderProps, '
|
|
3
|
+
export type FileUploaderThumbnailVariantProps = OptionalValues<Required<Pick<FileUploaderProps, 'disabledDescription' | 'enableCopyUrl' | 'fileUrl' | 'handleRecoverFile' | 'isActive' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'onClick' | 'processing' | 'SortableDragHandleWrapper' | 'thumbnailSize' | 'transformThumbnailSrc'>>> & {
|
|
4
4
|
deleteFile: DeleteFile;
|
|
5
5
|
handleOpenFileSelect: () => void;
|
|
6
6
|
isDraggingOver: boolean;
|
|
@@ -12,6 +12,8 @@ export type FileUploaderProps = {
|
|
|
12
12
|
fileUrl: string;
|
|
13
13
|
/** This function should delete the record from the database, ***then*** delete the file. */
|
|
14
14
|
handleDeleteFile: HandleDeleteFile;
|
|
15
|
+
/** Provides a method for potential file recovery. */
|
|
16
|
+
handleRecoverFile?: (fileUrl: string) => Promise<void>;
|
|
15
17
|
inputName?: string;
|
|
16
18
|
isActive?: boolean;
|
|
17
19
|
isDisabled?: boolean;
|
|
@@ -16,3 +16,4 @@ export interface StyledVideoContainerProps {
|
|
|
16
16
|
}
|
|
17
17
|
export declare const StyledVideoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledVideoContainerProps>> & string;
|
|
18
18
|
export declare const StyledPoster: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
+
export declare const StyledControlsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -11,6 +11,7 @@ export interface VideoProps extends Partial<VideoDefaultProps>, Omit<VideoHTMLAt
|
|
|
11
11
|
className?: string;
|
|
12
12
|
containerAspectRatio?: ResolutionAwareProp<AspectRatio>;
|
|
13
13
|
containerClassName?: string;
|
|
14
|
+
controls?: boolean;
|
|
14
15
|
fallbackColor?: Optional<Color>;
|
|
15
16
|
height?: Optional<ResolutionAwareProp<ImageDimension>>;
|
|
16
17
|
immediateAvailable?: boolean;
|
|
@@ -22,6 +23,7 @@ export interface VideoProps extends Partial<VideoDefaultProps>, Omit<VideoHTMLAt
|
|
|
22
23
|
objectPosition?: Optional<ResolutionAwareProp<Property.ObjectPosition>>;
|
|
23
24
|
observerMargin?: string;
|
|
24
25
|
onLoad?: ReactEventHandler<HTMLVideoElement>;
|
|
26
|
+
onOpenFullscreen?: (videoUrl: string) => void;
|
|
25
27
|
src: ResolutionAwareProp<string>;
|
|
26
28
|
style?: CSSProperties;
|
|
27
29
|
transformations?: VideoTransformations;
|