bloom-player 2.14.2 → 2.14.4
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/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.14.
|
|
6
|
+
"version": "2.14.4",
|
|
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,
|
|
@@ -242,7 +242,7 @@ const prepareOrderSentenceActivity = (page: HTMLElement) => {
|
|
|
242
242
|
Array.from(page.getElementsByClassName("drag-item-order-sentence")).forEach(
|
|
243
243
|
(elt: HTMLElement) => {
|
|
244
244
|
const contentElt = elt.getElementsByClassName(
|
|
245
|
-
"bloom-content1",
|
|
245
|
+
"bloom-content1 bloom-visibility-code-on",
|
|
246
246
|
)[0] as HTMLElement;
|
|
247
247
|
const content = contentElt?.textContent?.trim();
|
|
248
248
|
if (!content) return;
|
|
@@ -925,6 +925,10 @@ function startDragWordInSentence(e: PointerEvent) {
|
|
|
925
925
|
draggableReposition.style.position = "absolute";
|
|
926
926
|
draggableReposition.style.left = wordBeingRepositioned.offsetLeft + "px";
|
|
927
927
|
draggableReposition.style.top = wordBeingRepositioned.offsetTop + "px";
|
|
928
|
+
draggableReposition.setAttribute(
|
|
929
|
+
"lang",
|
|
930
|
+
wordBeingRepositioned.getAttribute("lang")!,
|
|
931
|
+
);
|
|
928
932
|
// We don't want it to show while we're dragging the clone. We need something to take up the space,
|
|
929
933
|
// though, until we decide it has moved. We could mess with its own properties, but then we have
|
|
930
934
|
// to put everything back. Also, we want to move it in the paragraph, and if we move the thing
|