@bendyline/squisq-react 2.4.1 → 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.
@@ -543,25 +543,41 @@ function RichTextLayer({ layer, viewport, blockTime }) {
543
543
  };
544
544
  const cls = `squisq-rich-text-${cssId(layer.id)}`;
545
545
  const scopedCss = `.${cls}{margin:0}.${cls} p{margin:0 0 .4em}.${cls} h1,.${cls} h2,.${cls} h3,.${cls} h4,.${cls} h5,.${cls} h6{margin:0 0 .3em;line-height:1.2}.${cls} ul,.${cls} ol{margin:0 0 .4em;padding-left:1.2em;list-style-position:inside}.${cls} li{margin:0}.${cls} li>p{display:inline;margin:0}.${cls} *:first-child{margin-top:0}.${cls} *:last-child{margin-bottom:0}.${cls} a{color:inherit;text-decoration:underline}`;
546
- return /* @__PURE__ */ jsx3("g", { className: `block-layer block-layer--text ${animStyle.className}`, "data-layer-id": layer.id, children: /* @__PURE__ */ jsx3("foreignObject", { x: boxX, y: boxY, width: boxWidth, height: boxHeight, children: /* @__PURE__ */ jsxs2(
547
- "div",
546
+ return /* @__PURE__ */ jsx3("g", { className: `block-layer block-layer--text ${animStyle.className}`, "data-layer-id": layer.id, children: /* @__PURE__ */ jsx3(
547
+ "foreignObject",
548
548
  {
549
- ...{ xmlns: "http://www.w3.org/1999/xhtml" },
550
- style: boxStyle,
551
- children: [
552
- /* @__PURE__ */ jsx3("style", { children: scopedCss }),
553
- /* @__PURE__ */ jsx3(
554
- "div",
555
- {
556
- className: cls,
557
- "aria-label": content.text,
558
- style: { width: "100%", whiteSpace: "pre-wrap", wordBreak: "break-word" },
559
- dangerouslySetInnerHTML: { __html: safeHtml }
560
- }
561
- )
562
- ]
549
+ x: boxX,
550
+ y: boxY,
551
+ width: boxWidth,
552
+ height: boxHeight,
553
+ color: style.color,
554
+ style: { color: style.color },
555
+ children: /* @__PURE__ */ jsxs2(
556
+ "div",
557
+ {
558
+ ...{ xmlns: "http://www.w3.org/1999/xhtml" },
559
+ style: boxStyle,
560
+ children: [
561
+ /* @__PURE__ */ jsx3("style", { children: scopedCss }),
562
+ /* @__PURE__ */ jsx3(
563
+ "div",
564
+ {
565
+ className: cls,
566
+ "aria-label": content.text,
567
+ style: {
568
+ width: "100%",
569
+ color: style.color,
570
+ whiteSpace: "pre-wrap",
571
+ wordBreak: "break-word"
572
+ },
573
+ dangerouslySetInnerHTML: { __html: safeHtml }
574
+ }
575
+ )
576
+ ]
577
+ }
578
+ )
563
579
  }
564
- ) }) });
580
+ ) });
565
581
  }
566
582
  function cssId(id) {
567
583
  return id.replace(/[^a-zA-Z0-9_-]/g, "-");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlockRenderer,
3
3
  LinearDocView
4
- } from "./chunk-M2HEFJZP.js";
4
+ } from "./chunk-ZIMG7EQV.js";
5
5
  import {
6
6
  useAudioSync,
7
7
  useDocPlayback,
@@ -9,7 +9,7 @@ import {
9
9
  TreeLayer,
10
10
  VideoLayer,
11
11
  getTransitionClass
12
- } from "./chunk-XYS7HMP4.js";
12
+ } from "./chunk-EMSYAEWP.js";
13
13
  import {
14
14
  useAutoSurface
15
15
  } from "./chunk-TT6ENR6T.js";
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  formatTime,
13
13
  resolveDocPlayerAppearance,
14
14
  useMediaClipDurations
15
- } from "./chunk-EKD6JMJN.js";
15
+ } from "./chunk-R5XTAWQH.js";
16
16
  import {
17
17
  BlockRenderer,
18
18
  CanvasSection,
@@ -20,7 +20,7 @@ import {
20
20
  PageSectionView,
21
21
  PageViewContext,
22
22
  usePageView
23
- } from "./chunk-M2HEFJZP.js";
23
+ } from "./chunk-ZIMG7EQV.js";
24
24
  import {
25
25
  ImageLayer,
26
26
  MapLayer,
@@ -33,7 +33,7 @@ import {
33
33
  VideoLayer,
34
34
  getAnimationStyle,
35
35
  getTransitionClass
36
- } from "./chunk-XYS7HMP4.js";
36
+ } from "./chunk-EMSYAEWP.js";
37
37
  import {
38
38
  useModalDialog
39
39
  } from "./chunk-65POMKHR.js";
@@ -8,7 +8,7 @@ import {
8
8
  TextLayer,
9
9
  TreeLayer,
10
10
  VideoLayer
11
- } from "../chunk-XYS7HMP4.js";
11
+ } from "../chunk-EMSYAEWP.js";
12
12
  import "../chunk-WLUZTUNZ.js";
13
13
  import "../chunk-LR3AIGDD.js";
14
14
  export {
@@ -4,8 +4,8 @@ import {
4
4
  PageSectionView,
5
5
  PageViewContext,
6
6
  usePageView
7
- } from "../chunk-M2HEFJZP.js";
8
- import "../chunk-XYS7HMP4.js";
7
+ } from "../chunk-ZIMG7EQV.js";
8
+ import "../chunk-EMSYAEWP.js";
9
9
  import "../chunk-TT6ENR6T.js";
10
10
  import "../chunk-D7KN4CRG.js";
11
11
  import "../chunk-WLUZTUNZ.js";
@@ -10,11 +10,11 @@ import {
10
10
  MediaClipLayer,
11
11
  SocialCaptionOverlay,
12
12
  formatTime
13
- } from "../chunk-EKD6JMJN.js";
13
+ } from "../chunk-R5XTAWQH.js";
14
14
  import {
15
15
  BlockRenderer
16
- } from "../chunk-M2HEFJZP.js";
17
- import "../chunk-XYS7HMP4.js";
16
+ } from "../chunk-ZIMG7EQV.js";
17
+ import "../chunk-EMSYAEWP.js";
18
18
  import "../chunk-BOZJ655L.js";
19
19
  import "../chunk-TT6ENR6T.js";
20
20
  import {