@geekapps/silo-elements-nextjs 0.1.24 → 0.2.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.
- package/dist/FileUploader.d.ts +2 -2
- package/dist/ImageUploader.d.ts +2 -2
- package/dist/MediaUploader.d.ts +2 -2
- package/dist/VideoPlayer.d.ts +2 -3
- package/dist/VideoUploader.d.ts +2 -2
- package/dist/components/DropZone.d.ts +2 -2
- package/dist/components/ProgressBar.d.ts +2 -2
- package/dist/index.d.ts +9 -9
- package/package.json +2 -2
package/dist/FileUploader.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { FileUploaderProps } from './types.js';
|
|
3
3
|
import '@geekapps/silo-nextjs';
|
|
4
4
|
|
|
5
|
-
declare function FileUploader({ bucket, visibility, onUpload, onBatchUpload, onError, className, style, disabled, maxSize, accept, multiple, allowRename, showImageOptions, showVideoOptions, image, video, theme, renderIcon, renderProgress, renderSuccess, renderError, children, }: FileUploaderProps):
|
|
5
|
+
declare function FileUploader({ bucket, visibility, onUpload, onBatchUpload, onError, className, style, disabled, maxSize, accept, multiple, allowRename, showImageOptions, showVideoOptions, image, video, theme, renderIcon, renderProgress, renderSuccess, renderError, children, }: FileUploaderProps): react.JSX.Element;
|
|
6
6
|
|
|
7
7
|
export { FileUploader };
|
package/dist/ImageUploader.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { ImageUploaderProps } from './types.js';
|
|
3
3
|
import '@geekapps/silo-nextjs';
|
|
4
4
|
|
|
5
|
-
declare function ImageUploader({ bucket, expiresIn, visibility, onUpload, onError, className, style, disabled, maxSize, accept, showPreview, showImageOptions, image, theme, renderIcon, renderProgress, renderSuccess, renderError, children, }: ImageUploaderProps):
|
|
5
|
+
declare function ImageUploader({ bucket, expiresIn, visibility, onUpload, onError, className, style, disabled, maxSize, accept, showPreview, showImageOptions, image, theme, renderIcon, renderProgress, renderSuccess, renderError, children, }: ImageUploaderProps): react.JSX.Element;
|
|
6
6
|
|
|
7
7
|
export { ImageUploader };
|
package/dist/MediaUploader.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { MediaUploaderProps } from './types.js';
|
|
3
3
|
import '@geekapps/silo-nextjs';
|
|
4
4
|
|
|
5
|
-
declare function MediaUploader({ tabs, defaultTab, imageProps, videoProps, fileProps, className, style, theme, onUpload, onBatchUpload, onError, ...shared }: MediaUploaderProps):
|
|
5
|
+
declare function MediaUploader({ tabs, defaultTab, imageProps, videoProps, fileProps, className, style, theme, onUpload, onBatchUpload, onError, ...shared }: MediaUploaderProps): react.JSX.Element;
|
|
6
6
|
|
|
7
7
|
export { MediaUploader };
|
package/dist/VideoPlayer.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import react__default, { ReactNode } from 'react';
|
|
3
2
|
|
|
4
3
|
type VideoSourceType = "dash" | "hls" | "file";
|
|
5
4
|
type SourceProps = {
|
|
@@ -53,7 +52,7 @@ declare function Subtitles(_props: SubtitlesProps): null;
|
|
|
53
52
|
declare function Subtitle(_props: SubtitleProps): null;
|
|
54
53
|
declare function Storyboard(_props: StoryboardProps): null;
|
|
55
54
|
declare function StoryboardFrame(_props: StoryboardFrameProps): null;
|
|
56
|
-
declare function Video({ title, description, poster, children, className, autoHideControls, defaultVolume, maxHeight, }: VideoProps):
|
|
55
|
+
declare function Video({ title, description, poster, children, className, autoHideControls, defaultVolume, maxHeight, }: VideoProps): react__default.JSX.Element;
|
|
57
56
|
declare const VideoPlayer: typeof Video;
|
|
58
57
|
|
|
59
58
|
export { Source, type SourceProps, Sources, type SourcesProps, Storyboard, StoryboardFrame, type StoryboardFrameProps, type StoryboardProps, Subtitle, type SubtitleProps, Subtitles, type SubtitlesProps, Video, VideoPlayer, type VideoSourceType };
|
package/dist/VideoUploader.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { VideoUploaderProps } from './types.js';
|
|
3
3
|
import '@geekapps/silo-nextjs';
|
|
4
4
|
|
|
5
|
-
declare function VideoUploader({ bucket, expiresIn, visibility, onUpload, onError, className, style, disabled, maxSize, accept, showPreview, showVideoOptions, video, theme, renderIcon, renderProgress, renderSuccess, renderError, children, }: VideoUploaderProps):
|
|
5
|
+
declare function VideoUploader({ bucket, expiresIn, visibility, onUpload, onError, className, style, disabled, maxSize, accept, showPreview, showVideoOptions, video, theme, renderIcon, renderProgress, renderSuccess, renderError, children, }: VideoUploaderProps): react.JSX.Element;
|
|
6
6
|
|
|
7
7
|
export { VideoUploader };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { SiloTheme } from '../types.js';
|
|
4
4
|
import '@geekapps/silo-nextjs';
|
|
@@ -15,6 +15,6 @@ interface DropZoneProps {
|
|
|
15
15
|
theme?: SiloTheme;
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
}
|
|
18
|
-
declare function DropZone({ accept, multiple, disabled, maxSize, onFiles, onError, className, style, theme, children, }: DropZoneProps):
|
|
18
|
+
declare function DropZone({ accept, multiple, disabled, maxSize, onFiles, onError, className, style, theme, children, }: DropZoneProps): react.JSX.Element;
|
|
19
19
|
|
|
20
20
|
export { DropZone };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
|
|
4
4
|
interface ProgressBarProps {
|
|
@@ -6,6 +6,6 @@ interface ProgressBarProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
}
|
|
9
|
-
declare function ProgressBar({ progress, className, style }: ProgressBarProps):
|
|
9
|
+
declare function ProgressBar({ progress, className, style }: ProgressBarProps): react.JSX.Element;
|
|
10
10
|
|
|
11
11
|
export { ProgressBar };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { MediaUploader } from './MediaUploader.js';
|
|
|
5
5
|
export { Source, SourceProps, Sources, SourcesProps, Storyboard, StoryboardFrame, StoryboardFrameProps, StoryboardProps, Subtitle, SubtitleProps, Subtitles, SubtitlesProps, Video, VideoPlayer, VideoSourceType } from './VideoPlayer.js';
|
|
6
6
|
export { DropZone } from './components/DropZone.js';
|
|
7
7
|
export { ProgressBar } from './components/ProgressBar.js';
|
|
8
|
-
import * as
|
|
8
|
+
import * as react from 'react';
|
|
9
9
|
import { CSSProperties, ReactNode } from 'react';
|
|
10
10
|
import { ImageUploadOptions, VideoUploadOptions } from '@geekapps/silo-nextjs';
|
|
11
11
|
export { BatchFileState, BatchUploadOptions, BatchUploadState, FileUploadStatus, ImageUploadOptions, MultipartUploadState, SiloProvider, VideoUploadOptions, useBatchUpload, useFileStatus, useMultipartUpload, useSignedUrl, useSiloClient } from '@geekapps/silo-nextjs';
|
|
@@ -17,14 +17,14 @@ interface ImageOptionsProps {
|
|
|
17
17
|
onChange: (opts: ImageUploadOptions) => void;
|
|
18
18
|
style?: CSSProperties;
|
|
19
19
|
}
|
|
20
|
-
declare function ImageOptions({ value, onChange, style }: ImageOptionsProps):
|
|
20
|
+
declare function ImageOptions({ value, onChange, style }: ImageOptionsProps): react.JSX.Element;
|
|
21
21
|
|
|
22
22
|
interface VideoOptionsProps {
|
|
23
23
|
value: VideoUploadOptions;
|
|
24
24
|
onChange: (opts: VideoUploadOptions) => void;
|
|
25
25
|
style?: CSSProperties;
|
|
26
26
|
}
|
|
27
|
-
declare function VideoOptions({ value, onChange, style }: VideoOptionsProps):
|
|
27
|
+
declare function VideoOptions({ value, onChange, style }: VideoOptionsProps): react.JSX.Element;
|
|
28
28
|
|
|
29
29
|
interface AvatarProps {
|
|
30
30
|
/** Silo file key for the avatar image */
|
|
@@ -41,7 +41,7 @@ interface AvatarProps {
|
|
|
41
41
|
style?: CSSProperties;
|
|
42
42
|
alt?: string;
|
|
43
43
|
}
|
|
44
|
-
declare function Avatar({ fileKey, bucket, initials, size, shape, className, style, alt, }: AvatarProps):
|
|
44
|
+
declare function Avatar({ fileKey, bucket, initials, size, shape, className, style, alt, }: AvatarProps): react.JSX.Element;
|
|
45
45
|
|
|
46
46
|
interface ThumbnailProps {
|
|
47
47
|
/** Silo file key */
|
|
@@ -64,7 +64,7 @@ interface ThumbnailProps {
|
|
|
64
64
|
style?: CSSProperties;
|
|
65
65
|
alt?: string;
|
|
66
66
|
}
|
|
67
|
-
declare function Thumbnail({ fileKey, bucket, mimeType, width, height, fit, borderRadius, placeholder, className, style, alt, }: ThumbnailProps):
|
|
67
|
+
declare function Thumbnail({ fileKey, bucket, mimeType, width, height, fit, borderRadius, placeholder, className, style, alt, }: ThumbnailProps): react.JSX.Element;
|
|
68
68
|
|
|
69
69
|
interface BackgroundProps {
|
|
70
70
|
/** Silo file key for the background image */
|
|
@@ -81,7 +81,7 @@ interface BackgroundProps {
|
|
|
81
81
|
className?: string;
|
|
82
82
|
style?: CSSProperties;
|
|
83
83
|
}
|
|
84
|
-
declare function Background({ fileKey, bucket, size, position, overlay, children, className, style, }: BackgroundProps):
|
|
84
|
+
declare function Background({ fileKey, bucket, size, position, overlay, children, className, style, }: BackgroundProps): react.JSX.Element;
|
|
85
85
|
|
|
86
86
|
interface FileIconProps {
|
|
87
87
|
/** MIME type of the file */
|
|
@@ -99,7 +99,7 @@ interface FileIconProps {
|
|
|
99
99
|
className?: string;
|
|
100
100
|
style?: CSSProperties;
|
|
101
101
|
}
|
|
102
|
-
declare function FileIcon({ mimeType, name, size, iconSize, showName, showSize, className, style, }: FileIconProps):
|
|
102
|
+
declare function FileIcon({ mimeType, name, size, iconSize, showName, showSize, className, style, }: FileIconProps): react.JSX.Element;
|
|
103
103
|
|
|
104
104
|
interface FileCardProps {
|
|
105
105
|
fileId: string;
|
|
@@ -113,7 +113,7 @@ interface FileCardProps {
|
|
|
113
113
|
className?: string;
|
|
114
114
|
style?: CSSProperties;
|
|
115
115
|
}
|
|
116
|
-
declare function FileCard({ fileId, pollInterval, actions, onPreview, onCopyUrl, onDelete, className, style, }: FileCardProps):
|
|
116
|
+
declare function FileCard({ fileId, pollInterval, actions, onPreview, onCopyUrl, onDelete, className, style, }: FileCardProps): react.JSX.Element | null;
|
|
117
117
|
|
|
118
118
|
interface FilePreviewProps {
|
|
119
119
|
fileId: string | null;
|
|
@@ -121,6 +121,6 @@ interface FilePreviewProps {
|
|
|
121
121
|
/** Poll interval while processing (ms, default: 3000) */
|
|
122
122
|
pollInterval?: number;
|
|
123
123
|
}
|
|
124
|
-
declare function FilePreview({ fileId, onClose, pollInterval }: FilePreviewProps):
|
|
124
|
+
declare function FilePreview({ fileId, onClose, pollInterval }: FilePreviewProps): react.JSX.Element | null;
|
|
125
125
|
|
|
126
126
|
export { Avatar, type AvatarProps, Background, type BackgroundProps, FileCard, type FileCardProps, FileIcon, type FileIconProps, FilePreview, type FilePreviewProps, ImageOptions, Thumbnail, type ThumbnailProps, VideoOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekapps/silo-elements-nextjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"description": "Silo UI elements — beautiful, customizable upload components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"tsup": "^8.5.1",
|
|
45
45
|
"typescript": "^5.9.3"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|