@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.js CHANGED
@@ -15191,6 +15191,7 @@ var init_SettingsMenu = __esm({
15191
15191
  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
15192
15192
  ${isFullscreen ? "bottom-20 right-4" : "bottom-16 right-4"}
15193
15193
  `,
15194
+ onClick: (e) => e.stopPropagation(),
15194
15195
  children: menuLevel === "main" ? (
15195
15196
  // Main Menu
15196
15197
  /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "p-2", children: [
@@ -15452,6 +15453,7 @@ var init_DockPanel = __esm({
15452
15453
  border-l border-white/20 shadow-2xl flex flex-col z-20
15453
15454
  ${containerWidth < 768 ? "w-full" : containerWidth < 1024 ? "w-[50%]" : "w-[30%]"}
15454
15455
  `,
15456
+ onClick: (e) => e.stopPropagation(),
15455
15457
  style: {
15456
15458
  height: showControls ? `calc(100% - ${containerWidth < 640 ? "60px" : "80px"})` : "100%"
15457
15459
  },
@@ -15809,6 +15811,7 @@ var init_PopupOverlay = __esm({
15809
15811
  activePopup,
15810
15812
  ((_g = activePopupStyles.overlay) == null ? void 0 : _g.padding) || "12px"
15811
15813
  )),
15814
+ onClick: (e) => e.stopPropagation(),
15812
15815
  children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
15813
15816
  motion.div,
15814
15817
  __spreadProps(__spreadValues({}, getPopupAnimationConfig(activePopup)), {
@@ -18124,6 +18127,7 @@ var ErrorDisplay = (0, import_react28.memo)(function ErrorDisplay2({
18124
18127
  animate: { opacity: 1 },
18125
18128
  exit: { opacity: 0 },
18126
18129
  className: "absolute inset-0 flex items-center justify-center z-30 bg-black/90",
18130
+ onClick: (e) => e.stopPropagation(),
18127
18131
  children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "text-center px-6 max-w-md", children: [
18128
18132
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
18129
18133
  "div",
@@ -18258,7 +18262,10 @@ var PosterOverlay = (0, import_react30.memo)(function PosterOverlay2({
18258
18262
  transition: { duration: 0.3 },
18259
18263
  className: "absolute inset-0 z-50 cursor-pointer",
18260
18264
  style: { backgroundColor: "black" },
18261
- onClick: onPlay,
18265
+ onClick: (e) => {
18266
+ e.stopPropagation();
18267
+ onPlay();
18268
+ },
18262
18269
  children: [
18263
18270
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18264
18271
  "img",
@@ -19572,6 +19579,7 @@ function ControlBar({
19572
19579
  exit: { opacity: 0, y: 20 },
19573
19580
  transition: { duration: 0.25, ease: "easeOut" },
19574
19581
  className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/95 via-black/70 to-transparent backdrop-blur-md",
19582
+ onClick: (e) => e.stopPropagation(),
19575
19583
  style: {
19576
19584
  padding: containerWidth < 400 ? "8px" : containerWidth < 640 ? "12px" : "16px"
19577
19585
  },
@@ -20122,6 +20130,7 @@ var PasswordDialog = (0, import_react35.memo)(function PasswordDialog2({
20122
20130
  animate: { scale: 1, opacity: 1 },
20123
20131
  exit: { scale: 0.9, opacity: 0 },
20124
20132
  className: "w-full max-w-sm mx-4",
20133
+ onClick: (e) => e.stopPropagation(),
20125
20134
  children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "bg-gray-900/95 backdrop-blur-md rounded-xl shadow-2xl border border-white/10 p-6", children: [
20126
20135
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "text-center mb-6", children: [
20127
20136
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
@@ -22029,7 +22038,7 @@ function UpNextOverlay({
22029
22038
  const maxSeconds = 10;
22030
22039
  const percentage = Math.max(0, Math.min(100, displaySeconds / maxSeconds * 100));
22031
22040
  const strokeDasharray = `${percentage} 100`;
22032
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute right-6 bottom-[80px] z-[60] animate-in fade-in slide-in-from-bottom-4 duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("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: [
22041
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("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__ */ (0, import_jsx_runtime25.jsxs)("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: [
22033
22042
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("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: [
22034
22043
  thumbnailUrl ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("img", { src: thumbnailUrl, alt: nextVideoTitle, className: "w-full h-full object-cover opacity-60 group-hover:opacity-40 transition-opacity" }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute inset-0 bg-white/5 group-hover:bg-white/10 transition-colors" }),
22035
22044
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("svg", { className: "absolute inset-0 w-full h-full -rotate-90 pointer-events-none", viewBox: "0 0 36 36", children: [
@@ -26331,7 +26340,8 @@ function SimpleVideoPlayer({
26331
26340
  if (!showControls) {
26332
26341
  viewDispatch(viewActions.setShowControls(true));
26333
26342
  }
26334
- }, [showControls]);
26343
+ togglePlay();
26344
+ }, [showControls, togglePlay]);
26335
26345
  useKeyboardShortcuts({
26336
26346
  containerRef,
26337
26347
  togglePlay,