@bendyline/squisq-editor-react 2.4.0 → 2.4.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.
@@ -0,0 +1,16 @@
1
+ import {
2
+ NarrationStage,
3
+ useNarrationStage
4
+ } from "./chunk-PDCKJCOS.js";
5
+
6
+ // src/teleprompter/TeleprompterView.tsx
7
+ import { jsx } from "react/jsx-runtime";
8
+ function TeleprompterView(props) {
9
+ const { doc, theme, presentationTarget = null, recording = null } = props;
10
+ const stage = useNarrationStage({ doc, recording });
11
+ return /* @__PURE__ */ jsx(NarrationStage, { stage, theme, presentationTarget });
12
+ }
13
+
14
+ export {
15
+ TeleprompterView
16
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  markdownToTiptap,
3
3
  tiptapToMarkdown
4
- } from "./chunk-MM3M2KUV.js";
4
+ } from "./chunk-WLJ623UZ.js";
5
5
 
6
6
  // src/jsonEditor/JsonEditorContext.tsx
7
7
  import { createContext, useContext, useEffect, useMemo } from "react";
@@ -725,6 +725,9 @@ function serializeMediaTag(tag, attrs) {
725
725
  const poster = tag === "video" ? /\bposter="([^"]*)"/i.exec(attrs)?.[1] : void 0;
726
726
  const placement = tag === "video" ? /\bdata-squisq-video-placement="([^"]*)"/i.exec(attrs)?.[1] : void 0;
727
727
  const lockToBlock = tag === "video" ? /\bdata-squisq-video-lock-to-block="([^"]*)"/i.exec(attrs)?.[1] : void 0;
728
+ const pipSize = tag === "video" ? /\bdata-squisq-video-pip-size="([^"]*)"/i.exec(attrs)?.[1] : void 0;
729
+ const pipShape = tag === "video" ? /\bdata-squisq-video-pip-shape="([^"]*)"/i.exec(attrs)?.[1] : void 0;
730
+ const pipPosition = tag === "video" ? /\bdata-squisq-video-pip-position="([^"]*)"/i.exec(attrs)?.[1] : void 0;
728
731
  const startAt = tag === "video" ? /\bdata-squisq-video-start-at="([^"]*)"/i.exec(attrs)?.[1] : void 0;
729
732
  const clipStart = tag === "video" ? /\bdata-squisq-video-clip-start="([^"]*)"/i.exec(attrs)?.[1] : void 0;
730
733
  const clipEnd = tag === "video" ? /\bdata-squisq-video-clip-end="([^"]*)"/i.exec(attrs)?.[1] : void 0;
@@ -737,6 +740,15 @@ function serializeMediaTag(tag, attrs) {
737
740
  parts.push(` data-squisq-video-placement="${placement}"`);
738
741
  }
739
742
  if (lockToBlock === "false") parts.push(' data-squisq-video-lock-to-block="false"');
743
+ if (pipSize === "small" || pipSize === "large") {
744
+ parts.push(` data-squisq-video-pip-size="${pipSize}"`);
745
+ }
746
+ if (pipShape === "square" || pipShape === "wide") {
747
+ parts.push(` data-squisq-video-pip-shape="${pipShape}"`);
748
+ }
749
+ if (pipPosition === "top-left" || pipPosition === "top-right" || pipPosition === "bottom-left" || pipPosition === "bottom-right") {
750
+ parts.push(` data-squisq-video-pip-position="${pipPosition}"`);
751
+ }
740
752
  if (startAt != null) parts.push(` data-squisq-video-start-at="${startAt}"`);
741
753
  if (clipStart != null) parts.push(` data-squisq-video-clip-start="${clipStart}"`);
742
754
  if (clipEnd != null) parts.push(` data-squisq-video-clip-end="${clipEnd}"`);