@bendyline/squisq-react 2.12.30 → 2.12.31
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-CFJRBRRG.js → chunk-ARBI4PTE.js} +31 -1
- package/dist/{chunk-4ZSAQ266.js → chunk-FHYMC4S6.js} +2 -2
- package/dist/{chunk-6IQ72M4Y.js → chunk-GIRDBU3E.js} +1 -1
- package/dist/{chunk-TWWZJWV4.js → chunk-MLONAXXN.js} +1 -1
- package/dist/{chunk-RVTMYNVX.js → chunk-ZZ5ZY5JD.js} +1 -1
- package/dist/index.js +5 -5
- package/dist/json-view/index.js +2 -2
- package/dist/markdown/index.js +1 -1
- package/dist/page/index.js +3 -3
- package/dist/player/index.js +3 -3
- package/dist/squisq-player.full.global.js +390 -389
- package/dist/squisq-player.global.js +88 -87
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/package.json +2 -2
|
@@ -95,6 +95,23 @@ var IFRAME_STYLE = {
|
|
|
95
95
|
height: "100%",
|
|
96
96
|
border: 0
|
|
97
97
|
};
|
|
98
|
+
var LINK_CARD_STYLE = {
|
|
99
|
+
...IFRAME_STYLE,
|
|
100
|
+
display: "flex",
|
|
101
|
+
alignItems: "center",
|
|
102
|
+
justifyContent: "center",
|
|
103
|
+
backgroundColor: "#000",
|
|
104
|
+
backgroundPosition: "center",
|
|
105
|
+
backgroundSize: "cover",
|
|
106
|
+
backgroundRepeat: "no-repeat",
|
|
107
|
+
color: "#fff",
|
|
108
|
+
font: "600 1rem/1.3 system-ui, sans-serif",
|
|
109
|
+
textDecoration: "none",
|
|
110
|
+
textShadow: "0 1px 3px rgba(0, 0, 0, 0.9)"
|
|
111
|
+
};
|
|
112
|
+
function playerRefusedHere(embed) {
|
|
113
|
+
return embed.provider === "youtube" && typeof window !== "undefined" && window.location?.protocol === "file:";
|
|
114
|
+
}
|
|
98
115
|
function VideoEmbedFrame({
|
|
99
116
|
embed,
|
|
100
117
|
title,
|
|
@@ -106,6 +123,7 @@ function VideoEmbedFrame({
|
|
|
106
123
|
const portrait = embed.aspectRatio < 1;
|
|
107
124
|
const caption = showCaption && !inline ? title?.trim() : "";
|
|
108
125
|
const Root = inline ? "span" : "figure";
|
|
126
|
+
const linkInstead = playerRefusedHere(embed);
|
|
109
127
|
return /* @__PURE__ */ jsxs(
|
|
110
128
|
Root,
|
|
111
129
|
{
|
|
@@ -118,7 +136,19 @@ function VideoEmbedFrame({
|
|
|
118
136
|
{
|
|
119
137
|
className: "squisq-video-embed-frame",
|
|
120
138
|
style: { position: "relative", display: "block", aspectRatio: String(embed.aspectRatio) },
|
|
121
|
-
children: /* @__PURE__ */ jsx3(
|
|
139
|
+
children: linkInstead ? /* @__PURE__ */ jsx3(
|
|
140
|
+
"a",
|
|
141
|
+
{
|
|
142
|
+
href: embed.watchUrl,
|
|
143
|
+
target: "_blank",
|
|
144
|
+
rel: "noopener noreferrer",
|
|
145
|
+
style: {
|
|
146
|
+
...LINK_CARD_STYLE,
|
|
147
|
+
...embed.thumbnailUrl ? { backgroundImage: `url(${JSON.stringify(embed.thumbnailUrl)})` } : {}
|
|
148
|
+
},
|
|
149
|
+
children: `\u25B6\uFE0E Watch ${caption ? `\u201C${caption}\u201D ` : ""}on ${embed.providerName}`
|
|
150
|
+
}
|
|
151
|
+
) : /* @__PURE__ */ jsx3(
|
|
122
152
|
"iframe",
|
|
123
153
|
{
|
|
124
154
|
src: attrs.src,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LinearDocView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MLONAXXN.js";
|
|
4
4
|
import {
|
|
5
5
|
useAudioSync,
|
|
6
6
|
useDocPlayback,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-TT6ENR6T.js";
|
|
13
13
|
import {
|
|
14
14
|
MarkdownRenderer
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ARBI4PTE.js";
|
|
16
16
|
import {
|
|
17
17
|
BlockRenderer
|
|
18
18
|
} from "./chunk-TCBV3WXF.js";
|
package/dist/index.js
CHANGED
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
useBuildNavigation,
|
|
21
21
|
useMediaClipDurations,
|
|
22
22
|
useVideoDurations
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FHYMC4S6.js";
|
|
24
24
|
import {
|
|
25
25
|
PaginatedDocView
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GIRDBU3E.js";
|
|
27
27
|
import {
|
|
28
28
|
CanvasSection,
|
|
29
29
|
LinearDocView,
|
|
30
30
|
PageSectionView,
|
|
31
31
|
PageViewContext,
|
|
32
32
|
usePageView
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MLONAXXN.js";
|
|
34
34
|
import {
|
|
35
35
|
useModalDialog
|
|
36
36
|
} from "./chunk-JP457U6N.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
JsonView,
|
|
45
45
|
createJsonFormFenceRenderer
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ZZ5ZY5JD.js";
|
|
47
47
|
import {
|
|
48
48
|
useAutoSurface
|
|
49
49
|
} from "./chunk-TT6ENR6T.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
VideoEmbedFrame,
|
|
58
58
|
useAnimatedImage,
|
|
59
59
|
useFenceRenderers
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ARBI4PTE.js";
|
|
61
61
|
import {
|
|
62
62
|
BlockRenderer
|
|
63
63
|
} from "./chunk-TCBV3WXF.js";
|
package/dist/json-view/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonView,
|
|
3
3
|
createJsonFormFenceRenderer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZZ5ZY5JD.js";
|
|
5
5
|
import "../chunk-TT6ENR6T.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ARBI4PTE.js";
|
|
7
7
|
import "../chunk-FXAKS6KU.js";
|
|
8
8
|
import "../chunk-ZKMBIWAA.js";
|
|
9
9
|
export {
|
package/dist/markdown/index.js
CHANGED
package/dist/page/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaginatedDocView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GIRDBU3E.js";
|
|
4
4
|
import {
|
|
5
5
|
CanvasSection,
|
|
6
6
|
LinearDocView,
|
|
7
7
|
PageSectionView,
|
|
8
8
|
PageViewContext,
|
|
9
9
|
usePageView
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-MLONAXXN.js";
|
|
11
11
|
import "../chunk-TT6ENR6T.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-ARBI4PTE.js";
|
|
13
13
|
import "../chunk-TCBV3WXF.js";
|
|
14
14
|
import "../chunk-755MBX5E.js";
|
|
15
15
|
import "../chunk-FXAKS6KU.js";
|
package/dist/player/index.js
CHANGED
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
MediaClipLayer,
|
|
13
13
|
SocialCaptionOverlay,
|
|
14
14
|
formatTime
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-FHYMC4S6.js";
|
|
16
|
+
import "../chunk-MLONAXXN.js";
|
|
17
17
|
import "../chunk-MNY6M5QG.js";
|
|
18
18
|
import "../chunk-TT6ENR6T.js";
|
|
19
19
|
import {
|
|
20
20
|
InlineAudioPlayer,
|
|
21
21
|
InlineVideoPlayer
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-ARBI4PTE.js";
|
|
23
23
|
import {
|
|
24
24
|
BlockRenderer
|
|
25
25
|
} from "../chunk-TCBV3WXF.js";
|