softbuilders-react-video-player 1.2.14 → 1.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/dist/components/BigPlayButton/index.d.ts +4 -1
  2. package/dist/components/BigPlayButton/index.js +4 -2
  3. package/dist/components/BigPlayButton/index.js.map +1 -1
  4. package/dist/components/BigPlayButton/index.tsx +18 -3
  5. package/dist/components/ControlBar/index.d.ts +2 -1
  6. package/dist/components/ControlBar/index.js +16 -12
  7. package/dist/components/ControlBar/index.js.map +1 -1
  8. package/dist/components/ControlBar/index.tsx +58 -46
  9. package/dist/components/QualityMenu/index.d.ts +2 -1
  10. package/dist/components/QualityMenu/index.js +6 -6
  11. package/dist/components/QualityMenu/index.js.map +1 -1
  12. package/dist/components/QualityMenu/index.tsx +13 -5
  13. package/dist/components/Slider/index.js +1 -1
  14. package/dist/components/Slider/index.js.map +1 -1
  15. package/dist/components/Slider/index.tsx +36 -36
  16. package/dist/components/SoftBuildersVideoPlayer/index.d.ts +2 -0
  17. package/dist/components/SoftBuildersVideoPlayer/index.js +2 -2
  18. package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
  19. package/dist/components/SoftBuildersVideoPlayer/index.tsx +6 -0
  20. package/dist/components/SubtitleMenu/index.d.ts +2 -1
  21. package/dist/components/SubtitleMenu/index.js +2 -2
  22. package/dist/components/SubtitleMenu/index.js.map +1 -1
  23. package/dist/components/SubtitleMenu/index.tsx +6 -2
  24. package/dist/components/TimeSlider/index.js.map +1 -1
  25. package/dist/components/TimeSlider/index.tsx +0 -1
  26. package/dist/components/VideoPlayerComponent/index.d.ts +2 -0
  27. package/dist/components/VideoPlayerComponent/index.js +35 -20
  28. package/dist/components/VideoPlayerComponent/index.js.map +1 -1
  29. package/dist/components/VideoPlayerComponent/index.tsx +76 -41
  30. package/dist/components/VolumeSlider/index.d.ts +2 -1
  31. package/dist/components/VolumeSlider/index.js +29 -8
  32. package/dist/components/VolumeSlider/index.js.map +1 -1
  33. package/dist/components/VolumeSlider/index.tsx +57 -15
  34. package/dist/components/icons/SubIcon.js +1 -1
  35. package/dist/components/icons/SubIcon.js.map +1 -1
  36. package/dist/components/icons/SubIcon.tsx +27 -28
  37. package/dist/components/icons/VolumeHigh.d.ts +3 -0
  38. package/dist/components/icons/VolumeHigh.js +4 -0
  39. package/dist/components/icons/VolumeHigh.js.map +1 -0
  40. package/dist/components/icons/VolumeHigh.tsx +15 -0
  41. package/dist/components/icons/VolumeHighIcon.d.ts +3 -0
  42. package/dist/components/icons/VolumeHighIcon.js +4 -0
  43. package/dist/components/icons/VolumeHighIcon.js.map +1 -0
  44. package/dist/components/icons/VolumeHighIcon.tsx +16 -0
  45. package/dist/components/icons/VolumeIconHigh.d.ts +3 -0
  46. package/dist/components/icons/VolumeIconHigh.js +4 -0
  47. package/dist/components/icons/VolumeIconHigh.js.map +1 -0
  48. package/dist/components/icons/VolumeIconHigh.tsx +16 -0
  49. package/dist/components/icons/VolumeIconLow copy.d.ts +3 -0
  50. package/dist/components/icons/VolumeIconLow copy.js +4 -0
  51. package/dist/components/icons/VolumeIconLow copy.js.map +1 -0
  52. package/dist/components/icons/VolumeIconLow copy.tsx +17 -0
  53. package/dist/components/icons/VolumeLow.d.ts +3 -0
  54. package/dist/components/icons/VolumeLow.js +4 -0
  55. package/dist/components/icons/VolumeLow.js.map +1 -0
  56. package/dist/components/icons/VolumeLow.tsx +14 -0
  57. package/dist/components/icons/VolumeLowIcon.d.ts +3 -0
  58. package/dist/components/icons/VolumeLowIcon.js +4 -0
  59. package/dist/components/icons/VolumeLowIcon.js.map +1 -0
  60. package/dist/components/icons/VolumeLowIcon.tsx +15 -0
  61. package/dist/components/icons/VolumeMute.d.ts +3 -0
  62. package/dist/components/icons/VolumeMute.js +10 -0
  63. package/dist/components/icons/VolumeMute.js.map +1 -0
  64. package/dist/components/icons/VolumeMute.tsx +25 -0
  65. package/dist/components/icons/VolumeVLow.d.ts +3 -0
  66. package/dist/components/icons/VolumeVLow.js +4 -0
  67. package/dist/components/icons/VolumeVLow.js.map +1 -0
  68. package/dist/components/icons/VolumeVLow.tsx +14 -0
  69. package/dist/components/icons/index.d.ts +4 -0
  70. package/dist/components/icons/index.js +4 -0
  71. package/dist/components/icons/index.js.map +1 -1
  72. package/dist/components/icons/index.ts +19 -15
  73. package/dist/index.css +17 -2
  74. package/dist/index.d.mts +4 -1
  75. package/dist/index.mjs +370 -262
  76. package/dist/styles/tailwind.css +17 -2
  77. package/dist/types.d.ts +2 -1
  78. package/package.json +2 -1
@@ -602,6 +602,10 @@ video {
602
602
  .sb-grid {
603
603
  display: grid;
604
604
  }
605
+ .\!sb-h-fit {
606
+ height: -moz-fit-content !important;
607
+ height: fit-content !important;
608
+ }
605
609
  .sb-h-1 {
606
610
  height: 0.25rem;
607
611
  }
@@ -626,6 +630,10 @@ video {
626
630
  .sb-h-\[3px\] {
627
631
  height: 3px;
628
632
  }
633
+ .sb-h-fit {
634
+ height: -moz-fit-content;
635
+ height: fit-content;
636
+ }
629
637
  .sb-h-full {
630
638
  height: 100%;
631
639
  }
@@ -659,6 +667,10 @@ video {
659
667
  .sb-w-\[90px\] {
660
668
  width: 90px;
661
669
  }
670
+ .sb-w-fit {
671
+ width: -moz-fit-content;
672
+ width: fit-content;
673
+ }
662
674
  .sb-w-full {
663
675
  width: 100%;
664
676
  }
@@ -725,8 +737,8 @@ video {
725
737
  .sb-items-center {
726
738
  align-items: center;
727
739
  }
728
- .\!sb-justify-start {
729
- justify-content: flex-start !important;
740
+ .sb-justify-start {
741
+ justify-content: flex-start;
730
742
  }
731
743
  .sb-justify-center {
732
744
  justify-content: center;
@@ -804,6 +816,9 @@ video {
804
816
  .sb-bg-opacity-70 {
805
817
  --tw-bg-opacity: 0.7;
806
818
  }
819
+ .sb-p-1 {
820
+ padding: 0.25rem;
821
+ }
807
822
  .sb-p-2 {
808
823
  padding: 0.5rem;
809
824
  }
package/dist/types.d.ts CHANGED
@@ -21,11 +21,12 @@ export type SoftBuildersVideoPlayerOptions = {
21
21
  sources: SoftBuildersVideoPlayerSource[];
22
22
  tracks?: SoftBuildersVideoPlayerTrack[];
23
23
  width?: number;
24
- height?: number;
25
24
  childRef?: React.Ref<HTMLDivElement>;
26
25
  disableNote?: boolean;
27
26
  bottomRedBar?: boolean;
28
27
  noteButtonClick?: (e: any) => void;
28
+ isTrailer?: boolean;
29
+ height?: number;
29
30
  };
30
31
  export interface SoftBuildersVideoPlayerNote {
31
32
  time: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbuilders-react-video-player",
3
3
  "description": "Standalone video player component",
4
- "version": "1.2.14",
4
+ "version": "1.2.16",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -33,6 +33,7 @@
33
33
  "@svgr/cli": "^8.1.0",
34
34
  "@svgr/webpack": "^8.1.0",
35
35
  "@swc/core": "^1.7.26",
36
+ "@types/lodash": "^4.17.13",
36
37
  "@types/react": "^18.3.5",
37
38
  "@types/react-dom": "^18.3.0",
38
39
  "@types/uuid": "^10.0.0",