@bendyline/squisq-react 2.12.0 → 2.12.2

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.
@@ -3342,6 +3342,7 @@ function DocPlayerContent({
3342
3342
  setCaptionMode(defaultMode);
3343
3343
  }, [defaultMode]);
3344
3344
  const captionsEnabled = captionMode !== "off";
3345
+ const captionClockRunning = renderMode || isPlaying || !isSlideshowMode && currentTime > 0;
3345
3346
  const activeCaptionStyle = captionMode === "social" ? "social" : "standard";
3346
3347
  const setCaptionsEnabled = useCallback6(
3347
3348
  (enabled) => {
@@ -3934,7 +3935,7 @@ function DocPlayerContent({
3934
3935
  {
3935
3936
  captions: doc.captions,
3936
3937
  currentTime,
3937
- enabled: captionsEnabled && (renderMode || isPlaying || currentTime > 0),
3938
+ enabled: captionsEnabled && captionClockRunning,
3938
3939
  fontSize: Math.min(34, Math.max(16, Math.round(captionViewport.height * 0.026))),
3939
3940
  captionStyle: activeCaptionStyle,
3940
3941
  captionPosition,
@@ -4040,7 +4041,7 @@ function DocPlayerContent({
4040
4041
  ] }),
4041
4042
  hasCaptions && (() => {
4042
4043
  const debugPhrase = getCaptionAtTime2(doc.captions, currentTime);
4043
- const debugEnabled = captionsEnabled && (isPlaying || currentTime > 0);
4044
+ const debugEnabled = captionsEnabled && captionClockRunning;
4044
4045
  return /* @__PURE__ */ jsxs7(Fragment5, { children: [
4045
4046
  /* @__PURE__ */ jsxs7("div", { children: [
4046
4047
  /* @__PURE__ */ jsx10("span", { style: { color: "#888" }, children: "captions:" }),
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  resolveDocPlayerAppearance,
17
17
  useBuildNavigation,
18
18
  useMediaClipDurations
19
- } from "./chunk-PBVIXOWS.js";
19
+ } from "./chunk-NZMF2G7M.js";
20
20
  import {
21
21
  PaginatedDocView
22
22
  } from "./chunk-UNZSCTBU.js";
@@ -12,7 +12,7 @@ import {
12
12
  MediaClipLayer,
13
13
  SocialCaptionOverlay,
14
14
  formatTime
15
- } from "../chunk-PBVIXOWS.js";
15
+ } from "../chunk-NZMF2G7M.js";
16
16
  import "../chunk-2K74UJ4T.js";
17
17
  import "../chunk-AA6NGEP7.js";
18
18
  import "../chunk-TT6ENR6T.js";