@geekapps/silo-elements-nextjs 0.1.23 → 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/VideoPlayer.js +5 -5
- package/dist/VideoPlayer.js.map +1 -1
- 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/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -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/dist/index.js
CHANGED
|
@@ -1921,7 +1921,7 @@ function Video({
|
|
|
1921
1921
|
"div",
|
|
1922
1922
|
{
|
|
1923
1923
|
className: `pointer-events-none absolute inset-0 z-10 grid place-items-center transition ${isPlaying ? "opacity-0" : "opacity-100"}`,
|
|
1924
|
-
children: /* @__PURE__ */ jsx("span", { className: "grid size-
|
|
1924
|
+
children: /* @__PURE__ */ jsx("span", { className: "grid size-10 place-items-center rounded-full bg-white/15 text-white backdrop-blur-xl ring-1 ring-white/20 @sm:size-14 @lg:size-16", children: /* @__PURE__ */ jsx(Play, { className: "ml-0.5 size-4 @sm:size-6 @lg:size-7" }) })
|
|
1925
1925
|
}
|
|
1926
1926
|
),
|
|
1927
1927
|
isLoading && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 z-20 grid place-items-center bg-black/10", children: /* @__PURE__ */ jsx("div", { className: "size-9 animate-spin rounded-full border-2 border-white/25 border-t-white" }) }),
|
|
@@ -2121,7 +2121,7 @@ function Video({
|
|
|
2121
2121
|
onClick: () => seekRelative(-10),
|
|
2122
2122
|
className: "grid size-6 place-items-center text-white transition hover:scale-105 hover:text-white/80 @sm:size-8",
|
|
2123
2123
|
"aria-label": "Rewind 10 seconds",
|
|
2124
|
-
children: /* @__PURE__ */ jsx(Rewind, { className: "size-
|
|
2124
|
+
children: /* @__PURE__ */ jsx(Rewind, { className: "size-4 @sm:size-6" })
|
|
2125
2125
|
}
|
|
2126
2126
|
),
|
|
2127
2127
|
/* @__PURE__ */ jsx(
|
|
@@ -2131,7 +2131,7 @@ function Video({
|
|
|
2131
2131
|
onClick: togglePlay,
|
|
2132
2132
|
className: "grid size-6 place-items-center text-white transition hover:scale-105 hover:text-white/80 @sm:size-8",
|
|
2133
2133
|
"aria-label": isPlaying ? "Pause" : "Play",
|
|
2134
|
-
children: isPlaying ? /* @__PURE__ */ jsx(Pause, { className: "size-
|
|
2134
|
+
children: isPlaying ? /* @__PURE__ */ jsx(Pause, { className: "size-4 @sm:size-6" }) : /* @__PURE__ */ jsx(Play, { className: "size-4 @sm:size-6" })
|
|
2135
2135
|
}
|
|
2136
2136
|
),
|
|
2137
2137
|
/* @__PURE__ */ jsx(
|
|
@@ -2141,7 +2141,7 @@ function Video({
|
|
|
2141
2141
|
onClick: () => seekRelative(10),
|
|
2142
2142
|
className: "grid size-6 place-items-center text-white transition hover:scale-105 hover:text-white/80 @sm:size-8",
|
|
2143
2143
|
"aria-label": "Forward 10 seconds",
|
|
2144
|
-
children: /* @__PURE__ */ jsx(FastForward, { className: "size-
|
|
2144
|
+
children: /* @__PURE__ */ jsx(FastForward, { className: "size-4 @sm:size-6" })
|
|
2145
2145
|
}
|
|
2146
2146
|
),
|
|
2147
2147
|
/* @__PURE__ */ jsxs("div", { className: "hidden items-center gap-1 text-xs font-semibold text-white/75 @sm:flex @sm:gap-2 @sm:text-sm", children: [
|
|
@@ -2223,7 +2223,7 @@ function Video({
|
|
|
2223
2223
|
{
|
|
2224
2224
|
className: "pointer-events-none absolute inset-0 z-50 grid place-items-center",
|
|
2225
2225
|
style: { opacity: clickIcon ? 1 : 0, transition: clickIcon ? "opacity 0.08s ease-in" : "opacity 0.45s ease-out" },
|
|
2226
|
-
children: /* @__PURE__ */ jsx("span", { className: "grid size-
|
|
2226
|
+
children: /* @__PURE__ */ jsx("span", { className: "grid size-10 place-items-center rounded-full bg-black/40 text-white backdrop-blur-sm ring-1 ring-white/20 @sm:size-14 @lg:size-16", children: clickIcon === "pause" ? /* @__PURE__ */ jsx(Pause, { className: "size-4 @sm:size-6 @lg:size-7" }) : /* @__PURE__ */ jsx(Play, { className: "ml-0.5 size-4 @sm:size-6 @lg:size-7" }) })
|
|
2227
2227
|
}
|
|
2228
2228
|
),
|
|
2229
2229
|
activeCue && /* @__PURE__ */ jsx(
|