@hyperframes/parsers 0.8.33 → 0.8.35

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,5 +1,5 @@
1
- import { G as GsapAnimation, P as ParsedGsap, A as ArcPathConfig, a as ArcPathSegment } from './gsapSerialize-DQW1kZ2G.js';
2
- export { n as GsapKeyframeFormat, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-DQW1kZ2G.js';
1
+ import { G as GsapAnimation, P as ParsedGsap, A as ArcPathConfig, a as ArcPathSegment } from './gsapSerialize-CqTuNW95.js';
2
+ export { n as GsapKeyframeFormat, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-CqTuNW95.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';
5
5
  import './types-ewozML_N.js';
@@ -131,7 +131,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
131
131
  return aNum - bNum;
132
132
  });
133
133
  const lines = sorted.map((anim) => {
134
- const selector = `"${anim.targetSelector}"`;
134
+ const selector = JSON.stringify(anim.targetSelector);
135
135
  const props = { ...anim.properties };
136
136
  if (anim.duration !== void 0) props.duration = anim.duration;
137
137
  if (anim.ease) props.ease = anim.ease;
@@ -144,7 +144,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
144
144
  propsStr = propsStr.slice(0, -2) + `, ${extrasStr} }`;
145
145
  }
146
146
  }
147
- const posStr = typeof anim.position === "string" ? `"${anim.position}"` : anim.position;
147
+ const posStr = JSON.stringify(anim.position);
148
148
  switch (anim.method) {
149
149
  case "set":
150
150
  return anim.global ? ` gsap.set(${selector}, ${propsStr});` : ` ${timelineVar}.set(${selector}, ${propsStr}, ${posStr});`;