@rxdrag/website-lib-core 0.0.113 → 0.0.115

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.113",
3
+ "version": "0.0.115",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts"
@@ -24,9 +24,9 @@
24
24
  "@types/react-dom": "^19.1.0",
25
25
  "eslint": "^7.32.0",
26
26
  "typescript": "^5",
27
+ "@rxdrag/eslint-config-custom": "0.2.12",
27
28
  "@rxdrag/tsconfig": "0.2.0",
28
- "@rxdrag/slate-preview": "1.2.63",
29
- "@rxdrag/eslint-config-custom": "0.2.12"
29
+ "@rxdrag/slate-preview": "1.2.63"
30
30
  },
31
31
  "dependencies": {
32
32
  "@iconify/utils": "^3.0.2",
@@ -228,7 +228,7 @@ export const ReactVideoPlayer = forwardRef<
228
228
  classNames?.video
229
229
  )}
230
230
  playsInline
231
- controls={false}
231
+ controls={!designMode && hasStarted}
232
232
  disablePictureInPicture
233
233
  controlsList="nodownload noremoteplayback noplaybackrate"
234
234
  >
@@ -241,12 +241,13 @@ export const ReactVideoPlayer = forwardRef<
241
241
  {!isPlaying &&
242
242
  !isEnded &&
243
243
  !isLoading &&
244
- !hasStarted && (
244
+ (
245
245
  <button
246
246
  type="button"
247
247
  onClick={handlePlayClick}
248
248
  className={clsx(
249
- "absolute inset-0 flex items-center justify-center w-full h-full transition rounded-lg z-10",
249
+ "absolute inset-0 items-center justify-center w-full h-full transition rounded-lg z-10",
250
+ hasStarted ? "hidden md:flex" : "flex",
250
251
  classNames?.playButton
251
252
  )}
252
253
  >