@hyperframes/parsers 0.7.78 → 0.7.80

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.
@@ -80,10 +80,23 @@ interface GsapPercentageKeyframe {
80
80
  properties: Record<string, number | string>;
81
81
  ease?: string;
82
82
  }
83
+ /**
84
+ * A keyframe that still knows which tween emitted it, and where inside that
85
+ * tween it sat. Merging several tweens onto one timeline row drops that
86
+ * provenance unless it rides along on the keyframe, and an editor needs it to
87
+ * route an edit back to the animation the user actually clicked. Required, not
88
+ * optional: a keyframe that reaches a merge without it cannot be attributed at
89
+ * all, and silently treating that as "no collision" is how an edit lands on the
90
+ * wrong tween.
91
+ */
92
+ interface SourcedGsapPercentageKeyframe extends GsapPercentageKeyframe {
93
+ animationId: string;
94
+ tweenPercentage: number;
95
+ }
83
96
  type GsapKeyframeFormat = "percentage" | "object-array" | "simple-array";
84
- interface GsapKeyframesData {
97
+ interface GsapKeyframesData<K extends GsapPercentageKeyframe = GsapPercentageKeyframe> {
85
98
  format: GsapKeyframeFormat;
86
- keyframes: GsapPercentageKeyframe[];
99
+ keyframes: K[];
87
100
  ease?: string;
88
101
  easeEach?: string;
89
102
  }
@@ -165,4 +178,4 @@ declare function gsapAnimationsToKeyframes(animations: GsapAnimation[], elementS
165
178
  skipBaseSet?: boolean;
166
179
  }): Keyframe[];
167
180
 
168
- export { type ArcPathConfig as A, type GsapAnimation as G, type KeyframeEditability as K, type MotionPathShape as M, type ParsedGsap as P, type SplitAnimationsOptions as S, type ArcPathSegment as a, type GsapKeyframesData as b, type GsapMethod as c, type GsapPercentageKeyframe as d, type GsapProvenance as e, type GsapProvenanceKind as f, type SplitAnimationsResult as g, editabilityForProvenance as h, getAnimationsForElementId as i, gsapAnimationsToKeyframes as j, keyframesToGsapAnimations as k, buildArcPath as l, type GsapKeyframeFormat as m, serializeGsapAnimations as s, validateCompositionGsap as v };
181
+ export { type ArcPathConfig as A, type GsapAnimation as G, type KeyframeEditability as K, type MotionPathShape as M, type ParsedGsap as P, type SourcedGsapPercentageKeyframe as S, type ArcPathSegment as a, type GsapKeyframesData as b, type GsapMethod as c, type GsapPercentageKeyframe as d, type GsapProvenance as e, type GsapProvenanceKind as f, type SplitAnimationsOptions as g, type SplitAnimationsResult as h, editabilityForProvenance as i, getAnimationsForElementId as j, gsapAnimationsToKeyframes as k, keyframesToGsapAnimations as l, buildArcPath as m, type GsapKeyframeFormat as n, serializeGsapAnimations as s, validateCompositionGsap as v };
@@ -1,4 +1,4 @@
1
- import { G as GsapAnimation, A as ArcPathConfig, S as SplitAnimationsOptions, g as SplitAnimationsResult, a as ArcPathSegment } from './gsapSerialize-cLD37cjI.js';
1
+ import { G as GsapAnimation, A as ArcPathConfig, g as SplitAnimationsOptions, h as SplitAnimationsResult, a as ArcPathSegment } from './gsapSerialize-DQW1kZ2G.js';
2
2
  import './types-ewozML_N.js';
3
3
  import './gsapConstants.js';
4
4