bloom-player 2.9.5 → 2.9.6
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/bloomplayer.htm
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<head>
|
|
8
8
|
<meta charset="UTF-8" />
|
|
9
9
|
<!-- At build time, we replace this with the actual css file -->
|
|
10
|
-
<link rel="stylesheet" href="bloomPlayer-
|
|
10
|
+
<link rel="stylesheet" href="bloomPlayer-fhe-RLAT.css">
|
|
11
11
|
</head>
|
|
12
12
|
|
|
13
13
|
<!-- About the background-color here... the bloomPlayer.js will set the background color
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<!-- At build time, we replace the target of this script tag to point at the
|
|
20
20
|
the bloom player bundle with the cache-busting hash in its name. -->
|
|
21
|
-
<script src="bloomPlayer.
|
|
21
|
+
<script src="bloomPlayer.y_DYVj0Z.js"></script>
|
|
22
22
|
</body>
|
|
23
23
|
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A library for displaying Bloom books in iframes or WebViews",
|
|
4
4
|
"author": "SIL Global",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "2.9.
|
|
6
|
+
"version": "2.9.6",
|
|
7
7
|
"private": false,
|
|
8
8
|
"// sideeffects might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working": "",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -114,6 +114,11 @@ export function prepareActivity(
|
|
|
114
114
|
);
|
|
115
115
|
|
|
116
116
|
// Hide image titles, which might give too much away, or distract.
|
|
117
|
+
Array.from(document.getElementsByClassName("bloom-canvas")).forEach(
|
|
118
|
+
(container) => {
|
|
119
|
+
(container as HTMLElement).title = "";
|
|
120
|
+
},
|
|
121
|
+
);
|
|
117
122
|
Array.from(document.getElementsByClassName("bloom-imageContainer")).forEach(
|
|
118
123
|
(container) => {
|
|
119
124
|
(container as HTMLElement).title = "";
|
|
@@ -1078,9 +1083,13 @@ export function copyContentToTarget(draggable: HTMLElement) {
|
|
|
1078
1083
|
Array.from(throwAway.querySelectorAll("[tabindex]")).forEach((e) => {
|
|
1079
1084
|
e.removeAttribute("tabindex");
|
|
1080
1085
|
});
|
|
1081
|
-
|
|
1082
|
-
"bloom-
|
|
1086
|
+
let imageContainer = throwAway.getElementsByClassName(
|
|
1087
|
+
"bloom-canvas",
|
|
1083
1088
|
)[0] as HTMLElement;
|
|
1089
|
+
if (!imageContainer)
|
|
1090
|
+
imageContainer = throwAway.getElementsByClassName(
|
|
1091
|
+
"bloom-imageContainer",
|
|
1092
|
+
)[0] as HTMLElement;
|
|
1084
1093
|
if (imageContainer) {
|
|
1085
1094
|
// We need another layer to manage clipping and centering. The one we were going to
|
|
1086
1095
|
// throw away becomes the wrapper, and we add a new throwAway outside it
|
|
@@ -1182,6 +1191,7 @@ export function setupWordChooserSlider(page: HTMLElement) {
|
|
|
1182
1191
|
// // I'm not finding anything that works that way, and the code below finds a full URL
|
|
1183
1192
|
// sliderImgSrc = img.getAttribute("src")!;
|
|
1184
1193
|
// } else {
|
|
1194
|
+
// WOULD THIS NEED ADJUSTING FOR .bloom-canvas IF THIS CODE WERE RESURRECTED?
|
|
1185
1195
|
// // In bloom-player, for a forgotten and possibly obsolete reason, we use a background image
|
|
1186
1196
|
// // on the container. (I vaguely recall it may be important when animating the main image.)
|
|
1187
1197
|
// const imgContainer = imgTop.getElementsByClassName(
|