visualfries 0.1.108 → 0.1.109

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.
@@ -24,7 +24,6 @@ export class AnimationHook {
24
24
  #currentId = undefined;
25
25
  #componentTimeline = undefined;
26
26
  #animationsBuilt = false;
27
- #lastAnimationDataHash = undefined; // Track animationData changes
28
27
  timeline;
29
28
  splitTextCache;
30
29
  types = Object.keys(this.#handlers);
@@ -143,18 +142,6 @@ export class AnimationHook {
143
142
  if (this.#context.isActive && this.#currentId !== this.#context.contextData.id) {
144
143
  await this.#handleRefresh();
145
144
  }
146
- // Check if animationData has changed (e.g., SubtitlesHook just set wordStartTimes)
147
- // This fixes the issue where animations are built before animationData is available
148
- if (this.#context.isActive && this.#animationsBuilt) {
149
- const animationData = this.#context.resources.get('animationData');
150
- const currentHash = animationData?.wordStartTimes?.length?.toString() ?? '';
151
- if (currentHash !== this.#lastAnimationDataHash && currentHash !== '') {
152
- // animationData changed (became available) - need to rebuild animations
153
- this.#lastAnimationDataHash = currentHash;
154
- await this.#handleRefresh();
155
- return;
156
- }
157
- }
158
145
  // Setup if component becomes active and animations aren't set up
159
146
  if (this.#context.isActive) {
160
147
  // && !this.#controls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visualfries",
3
- "version": "0.1.108",
3
+ "version": "0.1.109",
4
4
  "license": "MIT",
5
5
  "author": "ContentFries",
6
6
  "repository": {