@hyperframes/parsers 0.8.33 → 0.8.34

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,4 +1,4 @@
1
- export { A as ArcPathConfig, a as ArcPathSegment, G as GsapAnimation, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, e as GsapProvenance, f as GsapProvenanceKind, K as KeyframeEditability, P as ParsedGsap, S as SourcedGsapPercentageKeyframe, g as SplitAnimationsOptions, h as SplitAnimationsResult, i as editabilityForProvenance, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-DQW1kZ2G.js';
1
+ export { A as ArcPathConfig, a as ArcPathSegment, G as GsapAnimation, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, e as GsapProvenance, f as GsapProvenanceKind, K as KeyframeEditability, P as ParsedGsap, S as SourcedGsapPercentageKeyframe, g as SplitAnimationsOptions, h as SplitAnimationsResult, i as editabilityForProvenance, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-CqTuNW95.js';
2
2
  export { isStudioHoldSet } from './gsapParser.js';
3
3
  export { PROPERTY_GROUPS, PropertyGroupName, SUPPORTED_EASES, SUPPORTED_PROPS, classifyPropertyGroup, classifyTweenPropertyGroup } from './gsapConstants.js';
4
4
  export { SPRING_PRESETS, SpringPreset, generateSpringEaseData } from './springEase.js';
@@ -136,7 +136,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
136
136
  return aNum - bNum;
137
137
  });
138
138
  const lines = sorted.map((anim) => {
139
- const selector = `"${anim.targetSelector}"`;
139
+ const selector = JSON.stringify(anim.targetSelector);
140
140
  const props = { ...anim.properties };
141
141
  if (anim.duration !== void 0) props.duration = anim.duration;
142
142
  if (anim.ease) props.ease = anim.ease;
@@ -149,7 +149,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
149
149
  propsStr = propsStr.slice(0, -2) + `, ${extrasStr} }`;
150
150
  }
151
151
  }
152
- const posStr = typeof anim.position === "string" ? `"${anim.position}"` : anim.position;
152
+ const posStr = JSON.stringify(anim.position);
153
153
  switch (anim.method) {
154
154
  case "set":
155
155
  return anim.global ? ` gsap.set(${selector}, ${propsStr});` : ` ${timelineVar}.set(${selector}, ${propsStr}, ${posStr});`;