@geekapps/silo-elements-nextjs 0.2.45 → 0.2.46
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/VideoPlayer.js +5 -0
- package/dist/VideoPlayer.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { ProgressBar } from './components/ProgressBar.js';
|
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { CSSProperties, ReactNode } from 'react';
|
|
10
10
|
import { ImageUploadOptions, VideoUploadOptions } from '@geekapps/silo-nextjs';
|
|
11
|
-
export { BatchFileState, BatchUploadOptions, BatchUploadState, FileUploadStatus, ImageUploadOptions, MultipartUploadState, SiloProvider, VideoUploadOptions, useBatchUpload, useFileStatus, useMultipartUpload, useSignedUrl
|
|
11
|
+
export { BatchFileState, BatchUploadOptions, BatchUploadState, FileUploadStatus, ImageUploadOptions, MultipartUploadState, SiloProvider, VideoUploadOptions, useBatchUpload, useFileStatus, useMultipartUpload, useSignedUrl } from '@geekapps/silo-nextjs';
|
|
12
12
|
export { defaultTheme, resolveTheme } from './utils/theme.js';
|
|
13
13
|
export { BaseUploaderProps, FileUploaderProps, ImageUploaderProps, MediaUploaderProps, SiloTheme, VideoPlayerControls, VideoPlayerProps, VideoUploaderProps } from './types.js';
|
|
14
14
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
|
2
2
|
import { useMultipartUpload, useBatchUpload, useSignedUrl, useFileStatus } from '@geekapps/silo-nextjs';
|
|
3
|
-
export { SiloProvider, useBatchUpload, useFileStatus, useMultipartUpload, useSignedUrl
|
|
3
|
+
export { SiloProvider, useBatchUpload, useFileStatus, useMultipartUpload, useSignedUrl } from '@geekapps/silo-nextjs';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import gsap from 'gsap';
|
|
6
6
|
import { Pause, Play, VolumeX, Volume2, Captions as Captions$1, Settings, Minimize, Maximize } from 'lucide-react';
|
|
@@ -1309,6 +1309,11 @@ function Video({
|
|
|
1309
1309
|
setSubtitleMode(initialSubtitleMode);
|
|
1310
1310
|
}
|
|
1311
1311
|
}, [subtitleMode, captions, initialSubtitleMode]);
|
|
1312
|
+
useEffect(() => {
|
|
1313
|
+
if (subtitleMode === "off" && initialSubtitleMode !== "off") {
|
|
1314
|
+
setSubtitleMode(initialSubtitleMode);
|
|
1315
|
+
}
|
|
1316
|
+
}, [initialSubtitleMode]);
|
|
1312
1317
|
useEffect(() => {
|
|
1313
1318
|
const video = videoRef.current;
|
|
1314
1319
|
if (!video) return;
|