@editframe/elements 0.45.0 → 0.45.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.
@@ -1,15 +1,15 @@
1
1
  import { TemporalMixinInterface } from "./EFTemporal.js";
2
2
  import { EFTextSegment } from "./EFTextSegment.js";
3
- import * as lit4 from "lit";
3
+ import * as lit5 from "lit";
4
4
  import { LitElement, PropertyValueMap } from "lit";
5
- import * as lit_html4 from "lit-html";
5
+ import * as lit_html5 from "lit-html";
6
6
 
7
7
  //#region src/elements/EFText.d.ts
8
8
  type SplitMode = "line" | "word" | "char";
9
9
  declare const EFText_base: (new (...args: any[]) => TemporalMixinInterface) & typeof LitElement;
10
10
  declare class EFText extends EFText_base {
11
11
  #private;
12
- static styles: lit4.CSSResult[];
12
+ static styles: lit5.CSSResult[];
13
13
  split: SplitMode;
14
14
  private validateSplit;
15
15
  staggerMs?: number;
@@ -21,7 +21,7 @@ declare class EFText extends EFText_base {
21
21
  private _textContent;
22
22
  private _templateElement;
23
23
  private _segmentsReadyResolvers;
24
- render(): lit_html4.TemplateResult<1>;
24
+ render(): lit_html5.TemplateResult<1>;
25
25
  set textContent(value: string | null);
26
26
  get textContent(): string;
27
27
  /**
@@ -1,13 +1,13 @@
1
1
  import { TemporalMixinInterface } from "./EFTemporal.js";
2
- import * as lit5 from "lit";
2
+ import * as lit6 from "lit";
3
3
  import { LitElement } from "lit";
4
- import * as lit_html5 from "lit-html";
4
+ import * as lit_html6 from "lit-html";
5
5
 
6
6
  //#region src/elements/EFTextSegment.d.ts
7
7
  declare const EFTextSegment_base: (new (...args: any[]) => TemporalMixinInterface) & typeof LitElement;
8
8
  declare class EFTextSegment extends EFTextSegment_base {
9
- static styles: lit5.CSSResult[];
10
- render(): lit_html5.TemplateResult<1>;
9
+ static styles: lit6.CSSResult[];
10
+ render(): lit_html6.TemplateResult<1>;
11
11
  private setCSSVariables;
12
12
  protected firstUpdated(): void;
13
13
  protected updated(): void;
@@ -233,6 +233,10 @@ let EFTimegroup = class EFTimegroup$1 extends EFTargetable(EFTemporal(TWMixin(Li
233
233
  shouldAutoReady() {
234
234
  return false;
235
235
  }
236
+ #onCSSAnimationStart = (e) => {
237
+ const target = e.target;
238
+ for (const anim of target.getAnimations()) if (anim.playState === "running") anim.pause();
239
+ };
236
240
  #childReadyStateHandler = () => {
237
241
  this.#recomputeAggregateReadyState();
238
242
  };
@@ -745,6 +749,7 @@ let EFTimegroup = class EFTimegroup$1 extends EFTargetable(EFTemporal(TWMixin(Li
745
749
  connectedCallback() {
746
750
  super.connectedCallback();
747
751
  for (const svg of this.querySelectorAll("svg")) svg.pauseAnimations();
752
+ this.addEventListener("animationstart", this.#onCSSAnimationStart, { capture: true });
748
753
  if (this.canvasPreviewActive) return;
749
754
  this.updateComplete.then(() => {
750
755
  this.#runInitializer();
@@ -806,6 +811,7 @@ let EFTimegroup = class EFTimegroup$1 extends EFTargetable(EFTemporal(TWMixin(Li
806
811
  }
807
812
  disconnectedCallback() {
808
813
  super.disconnectedCallback();
814
+ this.removeEventListener("animationstart", this.#onCSSAnimationStart, { capture: true });
809
815
  if (this.canvasPreviewActive) return;
810
816
  this.#resizeObserver?.disconnect();
811
817
  this.#removePlaybackListener();