@ethlete/core 5.0.0-next.66 → 5.0.0-next.67

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ethlete/core
2
2
 
3
+ ## 5.0.0-next.67
4
+
5
+ ### Patch Changes
6
+
7
+ - Keep `et-animation-leave-to` on an `AnimatedLifecycleDirective` host after its leave finishes, until the next `enter()`. An element removed a frame after its leave no longer flashes back to full opacity first.
8
+
3
9
  ## 5.0.0-next.66
4
10
 
5
11
  ### Minor Changes
@@ -5061,7 +5061,7 @@ class AnimatedLifecycleDirective {
5061
5061
  }
5062
5062
  const isInterrupting = currentState === 'leaving';
5063
5063
  this.updateState('entering');
5064
- this.removeClass(ANIMATION_CLASSES.leaveDone);
5064
+ this.removeClasses(ANIMATION_CLASSES.leaveDone, ANIMATION_CLASSES.leaveTo);
5065
5065
  const previousCancel$ = this.cancelCurrentAnimation$;
5066
5066
  this.cancelCurrentAnimation$ = new Subject();
5067
5067
  const transitionId = `enter-${++this.transitionIdCounter}`;
@@ -5157,7 +5157,7 @@ class AnimatedLifecycleDirective {
5157
5157
  transitionId,
5158
5158
  onComplete: () => {
5159
5159
  this.updateState('left');
5160
- this.removeClasses(ANIMATION_CLASSES.leaveActive, ANIMATION_CLASSES.leaveTo);
5160
+ this.removeClass(ANIMATION_CLASSES.leaveActive);
5161
5161
  this.addClass(ANIMATION_CLASSES.leaveDone);
5162
5162
  },
5163
5163
  cancelSignal: this.cancelCurrentAnimation$,
@@ -5172,7 +5172,7 @@ class AnimatedLifecycleDirective {
5172
5172
  transitionId,
5173
5173
  onComplete: () => {
5174
5174
  this.updateState('left');
5175
- this.removeClasses(ANIMATION_CLASSES.leaveActive, ANIMATION_CLASSES.leaveTo);
5175
+ this.removeClass(ANIMATION_CLASSES.leaveActive);
5176
5176
  this.addClass(ANIMATION_CLASSES.leaveDone);
5177
5177
  },
5178
5178
  cancelSignal: this.cancelCurrentAnimation$,
@@ -10867,7 +10867,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
10867
10867
 
10868
10868
  // Generated from package.json by tools/scripts/generate-version.js - do not edit.
10869
10869
  /** The version of `@ethlete/core` this build was cut from. */
10870
- const CORE_VERSION = '5.0.0-next.66';
10870
+ const CORE_VERSION = '5.0.0-next.67';
10871
10871
 
10872
10872
  /**
10873
10873
  * Generated bundle index. Do not edit.