@hyperframes/parsers 0.8.106 → 0.8.108
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/dist/gsapConstants.d.ts +2 -14
- package/dist/gsapConstants.js +6 -1
- package/dist/gsapConstants.js.map +1 -1
- package/dist/gsapParser.d.ts +4 -5
- package/dist/gsapParser.js +5 -1
- package/dist/gsapParser.js.map +1 -1
- package/dist/gsapParserAcorn.d.ts +2 -3
- package/dist/gsapParserAcorn.js.map +1 -1
- package/dist/gsapParserExports.d.ts +1 -2
- package/dist/gsapParserExports.js.map +1 -1
- package/dist/{gsapSerialize-D92cSJOu.d.ts → gsapSerialize-35P5QhSR.d.ts} +18 -2
- package/dist/gsapWriterAcorn.d.ts +2 -3
- package/dist/gsapWriterAcorn.js +5 -1
- package/dist/gsapWriterAcorn.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { C as CompositionVariable, T as TimelineElement, a as CanvasResolution, K as Keyframe, S as StageZoomKeyframe, V as ValidationResult } from './types-Y0NXTiVo.js';
|
|
2
2
|
export { A as AddElementData, b as Asset, B as BooleanVariable, c as CANVAS_DIMENSIONS, d as COMPOSITION_VARIABLE_TYPES, e as ColorVariable, f as CompositionAPI, g as CompositionAsset, h as CompositionSpec, i as CompositionVariableBase, j as CompositionVariableType, D as DEFAULT_DURATIONS, E as ElementKeyframes, k as EnumVariable, F as FontVariable, I as ImageVariable, l as KeyframeProperties, M as MediaElementType, m as MediaFile, N as NumberVariable, P as PlayerAPI, R as ResolvedResolutionFlag, n as StageZoom, o as StringVariable, p as TIMELINE_COLORS, q as TimelineCompositionElement, r as TimelineElementBase, s as TimelineElementType, t as TimelineMediaElement, u as TimelineTextElement, v as VALID_CANVAS_RESOLUTIONS, W as WaveformData, w as getDefaultStageZoom, x as isAspectAgnosticResolutionAlias, y as isCompositionElement, z as isMediaElement, G as isTextElement, H as normalizeResolutionFlag, J as resolveResolutionFlagPair } from './types-Y0NXTiVo.js';
|
|
3
|
-
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,
|
|
3
|
+
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 PROPERTY_GROUPS, g as ParsedGsap, h as PropertyGroupName, S as SUPPORTED_EASES, i as SUPPORTED_PROPS, j as SourcedGsapPercentageKeyframe, k as SplitAnimationsOptions, l as SplitAnimationsResult, m as classifyPropertyGroup, n as classifyTweenPropertyGroup, o as editabilityForProvenance, p as getAnimationsForElementId, q as gsapAnimationsToKeyframes, r as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-35P5QhSR.js';
|
|
4
4
|
export { isStudioHoldSet } from './gsapParser.js';
|
|
5
|
-
export { PROPERTY_GROUPS, PropertyGroupName, SUPPORTED_EASES, SUPPORTED_PROPS, classifyPropertyGroup, classifyTweenPropertyGroup } from './gsapConstants.js';
|
|
6
5
|
export { SPRING_PRESETS, SpringPreset, generateSpringEaseData } from './springEase.js';
|
|
7
6
|
export { parseGsapScriptAcorn as parseGsapScript } from './gsapParserAcorn.js';
|
|
8
7
|
export { EXCLUDED_TAGS, ensureHfIds, isCompositionTemplate, mintHfId, walkCompositionDescendants } from './hfIds.js';
|
package/dist/index.js
CHANGED
|
@@ -3164,11 +3164,13 @@ function updateElementInHtml(html, elementId, updates) {
|
|
|
3164
3164
|
el.removeAttribute("data-volume");
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
|
-
if ("hasAudio" in updates) {
|
|
3167
|
+
if (el.tagName.toLowerCase() === "video" && "hasAudio" in updates) {
|
|
3168
3168
|
if (updates.hasAudio === true) {
|
|
3169
3169
|
el.setAttribute("data-has-audio", "true");
|
|
3170
|
-
|
|
3170
|
+
el.removeAttribute("muted");
|
|
3171
|
+
} else if (updates.hasAudio === false) {
|
|
3171
3172
|
el.removeAttribute("data-has-audio");
|
|
3173
|
+
el.setAttribute("muted", "");
|
|
3172
3174
|
}
|
|
3173
3175
|
}
|
|
3174
3176
|
if (!doc.documentElement) {
|
|
@@ -3202,12 +3204,10 @@ function addElementToHtml(html, element) {
|
|
|
3202
3204
|
case "video": {
|
|
3203
3205
|
const mediaEl = element;
|
|
3204
3206
|
newEl = doc.createElement("video");
|
|
3205
|
-
newEl.setAttribute("muted", "");
|
|
3206
3207
|
newEl.setAttribute("playsinline", "");
|
|
3207
3208
|
applyMediaAttrs(newEl, mediaEl);
|
|
3208
|
-
if (mediaEl.hasAudio)
|
|
3209
|
-
|
|
3210
|
-
}
|
|
3209
|
+
if (mediaEl.hasAudio) newEl.setAttribute("data-has-audio", "true");
|
|
3210
|
+
else newEl.setAttribute("muted", "");
|
|
3211
3211
|
break;
|
|
3212
3212
|
}
|
|
3213
3213
|
case "image": {
|