@rxdrag/website-lib-core 0.0.111 → 0.0.112

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdrag/website-lib-core",
3
- "version": "0.0.111",
3
+ "version": "0.0.112",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts"
@@ -25,8 +25,8 @@
25
25
  "eslint": "^7.32.0",
26
26
  "typescript": "^5",
27
27
  "@rxdrag/eslint-config-custom": "0.2.12",
28
- "@rxdrag/tsconfig": "0.2.0",
29
- "@rxdrag/slate-preview": "1.2.63"
28
+ "@rxdrag/slate-preview": "1.2.63",
29
+ "@rxdrag/tsconfig": "0.2.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "@iconify/utils": "^3.0.2",
@@ -34,6 +34,7 @@ export const ReactVideoPlayer = forwardRef<
34
34
  media: Media;
35
35
  posterUrl?: string;
36
36
  eagerLoad?: boolean;
37
+ showOverlayAfterStarted?: boolean;
37
38
  classNames?: VideoPlayerClassNames;
38
39
  callToAction?: string;
39
40
  onToggleSelect?: (id: ID) => void;
@@ -46,6 +47,7 @@ export const ReactVideoPlayer = forwardRef<
46
47
  onToggleSelect,
47
48
  posterUrl,
48
49
  eagerLoad,
50
+ showOverlayAfterStarted = true,
49
51
  classNames,
50
52
  callToAction,
51
53
  designMode,
@@ -236,7 +238,10 @@ export const ReactVideoPlayer = forwardRef<
236
238
  Your browser does not support video playback.
237
239
  </video>
238
240
 
239
- {!isPlaying && !isEnded && !isLoading && (
241
+ {!isPlaying &&
242
+ !isEnded &&
243
+ !isLoading &&
244
+ (!hasStarted || showOverlayAfterStarted) && (
240
245
  <button
241
246
  type="button"
242
247
  onClick={handlePlayClick}