@hyperstream/videoplayer 0.1.7 → 0.1.8

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/index.mjs CHANGED
@@ -15177,6 +15177,7 @@ var init_SettingsMenu = __esm({
15177
15177
  absolute z-30 w-56 max-h-80 overflow-y-auto bg-black/90 border border-white/20 backdrop-blur-sm rounded-lg shadow-2xl
15178
15178
  ${isFullscreen ? "bottom-20 right-4" : "bottom-16 right-4"}
15179
15179
  `,
15180
+ onClick: (e) => e.stopPropagation(),
15180
15181
  children: menuLevel === "main" ? (
15181
15182
  // Main Menu
15182
15183
  /* @__PURE__ */ jsxs11("div", { className: "p-2", children: [
@@ -15438,6 +15439,7 @@ var init_DockPanel = __esm({
15438
15439
  border-l border-white/20 shadow-2xl flex flex-col z-20
15439
15440
  ${containerWidth < 768 ? "w-full" : containerWidth < 1024 ? "w-[50%]" : "w-[30%]"}
15440
15441
  `,
15442
+ onClick: (e) => e.stopPropagation(),
15441
15443
  style: {
15442
15444
  height: showControls ? `calc(100% - ${containerWidth < 640 ? "60px" : "80px"})` : "100%"
15443
15445
  },
@@ -15795,6 +15797,7 @@ var init_PopupOverlay = __esm({
15795
15797
  activePopup,
15796
15798
  ((_g = activePopupStyles.overlay) == null ? void 0 : _g.padding) || "12px"
15797
15799
  )),
15800
+ onClick: (e) => e.stopPropagation(),
15798
15801
  children: /* @__PURE__ */ jsxs13(
15799
15802
  motion.div,
15800
15803
  __spreadProps(__spreadValues({}, getPopupAnimationConfig(activePopup)), {
@@ -18109,6 +18112,7 @@ var ErrorDisplay = memo3(function ErrorDisplay2({
18109
18112
  animate: { opacity: 1 },
18110
18113
  exit: { opacity: 0 },
18111
18114
  className: "absolute inset-0 flex items-center justify-center z-30 bg-black/90",
18115
+ onClick: (e) => e.stopPropagation(),
18112
18116
  children: /* @__PURE__ */ jsxs3("div", { className: "text-center px-6 max-w-md", children: [
18113
18117
  /* @__PURE__ */ jsx9(
18114
18118
  "div",
@@ -18243,7 +18247,10 @@ var PosterOverlay = memo4(function PosterOverlay2({
18243
18247
  transition: { duration: 0.3 },
18244
18248
  className: "absolute inset-0 z-50 cursor-pointer",
18245
18249
  style: { backgroundColor: "black" },
18246
- onClick: onPlay,
18250
+ onClick: (e) => {
18251
+ e.stopPropagation();
18252
+ onPlay();
18253
+ },
18247
18254
  children: [
18248
18255
  /* @__PURE__ */ jsx11(
18249
18256
  "img",
@@ -19563,6 +19570,7 @@ function ControlBar({
19563
19570
  exit: { opacity: 0, y: 20 },
19564
19571
  transition: { duration: 0.25, ease: "easeOut" },
19565
19572
  className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/95 via-black/70 to-transparent backdrop-blur-md",
19573
+ onClick: (e) => e.stopPropagation(),
19566
19574
  style: {
19567
19575
  padding: containerWidth < 400 ? "8px" : containerWidth < 640 ? "12px" : "16px"
19568
19576
  },
@@ -20113,6 +20121,7 @@ var PasswordDialog = memo6(function PasswordDialog2({
20113
20121
  animate: { scale: 1, opacity: 1 },
20114
20122
  exit: { scale: 0.9, opacity: 0 },
20115
20123
  className: "w-full max-w-sm mx-4",
20124
+ onClick: (e) => e.stopPropagation(),
20116
20125
  children: /* @__PURE__ */ jsxs9("div", { className: "bg-gray-900/95 backdrop-blur-md rounded-xl shadow-2xl border border-white/10 p-6", children: [
20117
20126
  /* @__PURE__ */ jsxs9("div", { className: "text-center mb-6", children: [
20118
20127
  /* @__PURE__ */ jsx23(
@@ -22020,7 +22029,7 @@ function UpNextOverlay({
22020
22029
  const maxSeconds = 10;
22021
22030
  const percentage = Math.max(0, Math.min(100, displaySeconds / maxSeconds * 100));
22022
22031
  const strokeDasharray = `${percentage} 100`;
22023
- return /* @__PURE__ */ jsx25("div", { className: "absolute right-6 bottom-[80px] z-[60] animate-in fade-in slide-in-from-bottom-4 duration-300", children: /* @__PURE__ */ jsxs10("div", { className: "bg-black/80 backdrop-blur-md border border-white/10 rounded-xl p-4 shadow-2xl flex items-center gap-4 w-[320px] transition-all hover:bg-black/90", children: [
22032
+ return /* @__PURE__ */ jsx25("div", { className: "absolute right-6 bottom-[80px] z-[60] animate-in fade-in slide-in-from-bottom-4 duration-300", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxs10("div", { className: "bg-black/80 backdrop-blur-md border border-white/10 rounded-xl p-4 shadow-2xl flex items-center gap-4 w-[320px] transition-all hover:bg-black/90", children: [
22024
22033
  /* @__PURE__ */ jsxs10("div", { className: "relative w-16 h-16 shrink-0 flex items-center justify-center rounded-lg bg-white/5 overflow-hidden group cursor-pointer", onClick: onPlayNext, children: [
22025
22034
  thumbnailUrl ? /* @__PURE__ */ jsx25("img", { src: thumbnailUrl, alt: nextVideoTitle, className: "w-full h-full object-cover opacity-60 group-hover:opacity-40 transition-opacity" }) : /* @__PURE__ */ jsx25("div", { className: "absolute inset-0 bg-white/5 group-hover:bg-white/10 transition-colors" }),
22026
22035
  /* @__PURE__ */ jsxs10("svg", { className: "absolute inset-0 w-full h-full -rotate-90 pointer-events-none", viewBox: "0 0 36 36", children: [
@@ -26322,7 +26331,8 @@ function SimpleVideoPlayer({
26322
26331
  if (!showControls) {
26323
26332
  viewDispatch(viewActions.setShowControls(true));
26324
26333
  }
26325
- }, [showControls]);
26334
+ togglePlay();
26335
+ }, [showControls, togglePlay]);
26326
26336
  useKeyboardShortcuts({
26327
26337
  containerRef,
26328
26338
  togglePlay,