@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.
- package/dist/{chunk-XYS7HMP4.js → chunk-EMSYAEWP.js} +33 -17
- package/dist/{chunk-EKD6JMJN.js → chunk-R5XTAWQH.js} +1 -1
- package/dist/{chunk-M2HEFJZP.js → chunk-ZIMG7EQV.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/layers/index.js +1 -1
- package/dist/page/index.js +2 -2
- package/dist/player/index.js +3 -3
- package/dist/squisq-player.full.global.js +2 -2
- package/dist/squisq-player.global.js +2 -2
- package/dist/standalone-source.js +1 -1
- package/package.json +2 -2
|
@@ -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(
|
|
547
|
-
"
|
|
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
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
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, "-");
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
formatTime,
|
|
13
13
|
resolveDocPlayerAppearance,
|
|
14
14
|
useMediaClipDurations
|
|
15
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
36
|
+
} from "./chunk-EMSYAEWP.js";
|
|
37
37
|
import {
|
|
38
38
|
useModalDialog
|
|
39
39
|
} from "./chunk-65POMKHR.js";
|
package/dist/layers/index.js
CHANGED
package/dist/page/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
PageSectionView,
|
|
5
5
|
PageViewContext,
|
|
6
6
|
usePageView
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
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";
|
package/dist/player/index.js
CHANGED
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
MediaClipLayer,
|
|
11
11
|
SocialCaptionOverlay,
|
|
12
12
|
formatTime
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-R5XTAWQH.js";
|
|
14
14
|
import {
|
|
15
15
|
BlockRenderer
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
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 {
|