@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.
- package/dist/{chunk-5JMHFAVW.js → chunk-PDCKJCOS.js} +1200 -868
- package/dist/{chunk-VNUGP7NG.js → chunk-PEI5EBEN.js} +3 -1
- package/dist/chunk-PKGBWNUQ.js +1925 -0
- package/dist/chunk-V6Z7GG55.js +16 -0
- package/dist/{chunk-IIWECJ26.js → chunk-WDX6UDL5.js} +1 -1
- package/dist/{chunk-MM3M2KUV.js → chunk-WLJ623UZ.js} +12 -0
- package/dist/{chunk-UPEGQYF4.js → chunk-XOMQK4JA.js} +8191 -7148
- package/dist/index.d.ts +128 -76
- package/dist/index.js +30 -20
- package/dist/json-editor/index.js +2 -2
- package/dist/recorder/index.d.ts +7 -407
- package/dist/recorder/index.js +3 -3
- package/dist/recorder-C0Tkyu5W.d.ts +508 -0
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +5 -5
- package/dist/{shell-9Kxzxjbn.d.ts → shell-CU4GpGuq.d.ts} +25 -1
- package/dist/styles/index.css +377 -19
- package/dist/teleprompter/index.d.ts +57 -246
- package/dist/teleprompter/index.js +12 -3
- package/dist/useNarrationStage-Bqo18PBw.d.ts +313 -0
- package/package.json +5 -5
- package/dist/chunk-5Q4JN4I5.js +0 -132
- package/dist/chunk-F4NBECWR.js +0 -983
|
@@ -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
|
+
};
|
|
@@ -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}"`);
|