bloom-player 2.14.1 → 2.14.3

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.1",
6
+ "version": "2.14.3",
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;
@@ -12,6 +12,3 @@ export * from "./dragActivityRuntime";
12
12
 
13
13
  // Re-export from scrolling.ts
14
14
  export * from "./scrolling";
15
-
16
- //Re-export from animation.ts
17
- export * from "./animation"
@@ -1,49 +0,0 @@
1
- export declare class Animation {
2
- static pageHasAnimation(page: HTMLDivElement): boolean;
3
- static getAnimationCanvas(page: HTMLElement): HTMLElement | null;
4
- static getAnimatableCanvas(page: HTMLElement): HTMLElement;
5
- private animationEngine;
6
- PlayAnimations: boolean;
7
- private currentPage;
8
- private lastDurationPage;
9
- private static wrapperClassName;
10
- private animationDuration;
11
- constructor();
12
- HandlePageBeforeVisible(page: HTMLElement): void;
13
- HandlePageVisible(page: HTMLElement): void;
14
- HandlePageDurationAvailable(page: HTMLElement, duration: number): void;
15
- resumeAnimation(): void;
16
- PauseAnimation(): void;
17
- PauseOnFirstFrame(): void;
18
- private setupAnimation;
19
- private createAndPlayAnimation;
20
- private applyCanvasAspectRatioToAnimationWrapper;
21
- private placeAnimationWrapper;
22
- private placeCanvasByScale;
23
- private adjustAnimationWrapper;
24
- private getAnimationWrapper;
25
- private removeAnimationWrappers;
26
- shouldAnimate(page: HTMLElement): boolean;
27
- }
28
- export declare class TransformBasedAnimator {
29
- private initialScale;
30
- private finalScale;
31
- private initialLeft;
32
- private finalLeft;
33
- private initialTop;
34
- private finalTop;
35
- private canvasToAnimate;
36
- private lastFrameTime;
37
- private totalElapsedTime;
38
- private duration;
39
- private paused;
40
- constructor(initialRect: string, finalRect: string, duration: number, canvasToAnimate: HTMLElement);
41
- private getScaleAndPosition;
42
- private easingFunction;
43
- private advanceAnimation;
44
- pause(): void;
45
- resume(): void;
46
- startAnimation(): void;
47
- endAnimation(): void;
48
- showInitialState(): void;
49
- }