@hyperframes/core 0.6.53 → 0.6.54
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/compiler/htmlBundler.js +1 -1
- package/dist/compiler/htmlBundler.js.map +1 -1
- package/dist/compiler/staticGuard.d.ts +1 -1
- package/dist/compiler/staticGuard.d.ts.map +1 -1
- package/dist/compiler/staticGuard.js +2 -2
- package/dist/compiler/staticGuard.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lint/hyperframeLinter.d.ts +1 -1
- package/dist/lint/hyperframeLinter.d.ts.map +1 -1
- package/dist/lint/hyperframeLinter.js +2 -2
- package/dist/lint/hyperframeLinter.js.map +1 -1
- package/dist/lint/rules/gsap.d.ts +3 -2
- package/dist/lint/rules/gsap.d.ts.map +1 -1
- package/dist/lint/rules/gsap.js +20 -8
- package/dist/lint/rules/gsap.js.map +1 -1
- package/dist/lint/types.d.ts +1 -1
- package/dist/lint/types.d.ts.map +1 -1
- package/dist/parsers/gsapConstants.d.ts +9 -0
- package/dist/parsers/gsapConstants.d.ts.map +1 -0
- package/dist/parsers/gsapConstants.js +47 -0
- package/dist/parsers/gsapConstants.js.map +1 -0
- package/dist/parsers/gsapParser.d.ts +3 -37
- package/dist/parsers/gsapParser.d.ts.map +1 -1
- package/dist/parsers/gsapParser.js +315 -368
- package/dist/parsers/gsapParser.js.map +1 -1
- package/dist/parsers/gsapSerialize.d.ts +51 -0
- package/dist/parsers/gsapSerialize.d.ts.map +1 -0
- package/dist/parsers/gsapSerialize.js +218 -0
- package/dist/parsers/gsapSerialize.js.map +1 -0
- package/dist/parsers/htmlParser.d.ts.map +1 -1
- package/dist/parsers/htmlParser.js +1 -80
- package/dist/parsers/htmlParser.js.map +1 -1
- package/dist/studio-api/helpers/sourceMutation.d.ts.map +1 -1
- package/dist/studio-api/helpers/sourceMutation.js +8 -5
- package/dist/studio-api/helpers/sourceMutation.js.map +1 -1
- package/dist/studio-api/routes/files.d.ts.map +1 -1
- package/dist/studio-api/routes/files.js +132 -0
- package/dist/studio-api/routes/files.js.map +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gsapConstants.d.ts","sourceRoot":"","sources":["../../src/parsers/gsapConstants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,eAAe,UAY3B,CAAC;AAEF,eAAO,MAAM,eAAe,UA0B3B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GSAP property and ease constants.
|
|
3
|
+
*
|
|
4
|
+
* Extracted into a standalone module so browser code can import them
|
|
5
|
+
* without pulling in gsapParser (which depends on recast / @babel/parser).
|
|
6
|
+
*/
|
|
7
|
+
export const SUPPORTED_PROPS = [
|
|
8
|
+
"opacity",
|
|
9
|
+
"visibility",
|
|
10
|
+
"x",
|
|
11
|
+
"y",
|
|
12
|
+
"scale",
|
|
13
|
+
"scaleX",
|
|
14
|
+
"scaleY",
|
|
15
|
+
"rotation",
|
|
16
|
+
"autoAlpha",
|
|
17
|
+
"width",
|
|
18
|
+
"height",
|
|
19
|
+
];
|
|
20
|
+
export const SUPPORTED_EASES = [
|
|
21
|
+
"none",
|
|
22
|
+
"power1.in",
|
|
23
|
+
"power1.out",
|
|
24
|
+
"power1.inOut",
|
|
25
|
+
"power2.in",
|
|
26
|
+
"power2.out",
|
|
27
|
+
"power2.inOut",
|
|
28
|
+
"power3.in",
|
|
29
|
+
"power3.out",
|
|
30
|
+
"power3.inOut",
|
|
31
|
+
"power4.in",
|
|
32
|
+
"power4.out",
|
|
33
|
+
"power4.inOut",
|
|
34
|
+
"back.in",
|
|
35
|
+
"back.out",
|
|
36
|
+
"back.inOut",
|
|
37
|
+
"elastic.in",
|
|
38
|
+
"elastic.out",
|
|
39
|
+
"elastic.inOut",
|
|
40
|
+
"bounce.in",
|
|
41
|
+
"bounce.out",
|
|
42
|
+
"bounce.inOut",
|
|
43
|
+
"expo.in",
|
|
44
|
+
"expo.out",
|
|
45
|
+
"expo.inOut",
|
|
46
|
+
];
|
|
47
|
+
//# sourceMappingURL=gsapConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gsapConstants.js","sourceRoot":"","sources":["../../src/parsers/gsapConstants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS;IACT,YAAY;IACZ,GAAG;IACH,GAAG;IACH,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,WAAW;IACX,OAAO;IACP,QAAQ;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM;IACN,WAAW;IACX,YAAY;IACZ,cAAc;IACd,WAAW;IACX,YAAY;IACZ,cAAc;IACd,WAAW;IACX,YAAY;IACZ,cAAc;IACd,WAAW;IACX,YAAY;IACZ,cAAc;IACd,SAAS;IACT,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,eAAe;IACf,WAAW;IACX,YAAY;IACZ,cAAc;IACd,SAAS;IACT,UAAU;IACV,YAAY;CACb,CAAC"}
|
|
@@ -1,45 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
4
|
-
id: string;
|
|
5
|
-
targetSelector: string;
|
|
6
|
-
method: GsapMethod;
|
|
7
|
-
position: number;
|
|
8
|
-
properties: Record<string, number | string>;
|
|
9
|
-
fromProperties?: Record<string, number | string>;
|
|
10
|
-
duration?: number;
|
|
11
|
-
ease?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ParsedGsap {
|
|
14
|
-
animations: GsapAnimation[];
|
|
15
|
-
timelineVar: string;
|
|
16
|
-
preamble: string;
|
|
17
|
-
postamble: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const SUPPORTED_PROPS: string[];
|
|
20
|
-
export declare const SUPPORTED_EASES: string[];
|
|
1
|
+
import { type GsapAnimation, type ParsedGsap } from "./gsapSerialize";
|
|
2
|
+
export type { GsapAnimation, GsapMethod, ParsedGsap } from "./gsapSerialize";
|
|
3
|
+
export { serializeGsapAnimations, getAnimationsForElement, validateCompositionGsap, keyframesToGsapAnimations, gsapAnimationsToKeyframes, SUPPORTED_PROPS, SUPPORTED_EASES, } from "./gsapSerialize";
|
|
21
4
|
export declare function parseGsapScript(script: string): ParsedGsap;
|
|
22
|
-
export declare function serializeGsapAnimations(animations: GsapAnimation[], timelineVar?: string, options?: {
|
|
23
|
-
includeMediaSync?: boolean;
|
|
24
|
-
}): string;
|
|
25
5
|
export declare function updateAnimationInScript(script: string, animationId: string, updates: Partial<GsapAnimation>): string;
|
|
26
6
|
export declare function addAnimationToScript(script: string, animation: Omit<GsapAnimation, "id">): {
|
|
27
7
|
script: string;
|
|
28
8
|
id: string;
|
|
29
9
|
};
|
|
30
10
|
export declare function removeAnimationFromScript(script: string, animationId: string): string;
|
|
31
|
-
export declare function getAnimationsForElement(animations: GsapAnimation[], elementId: string): GsapAnimation[];
|
|
32
|
-
export declare function validateCompositionGsap(script: string): ValidationResult;
|
|
33
|
-
export declare function keyframesToGsapAnimations(elementId: string, keyframes: Keyframe[], elementStartTime: number, base?: {
|
|
34
|
-
x?: number;
|
|
35
|
-
y?: number;
|
|
36
|
-
scale?: number;
|
|
37
|
-
}): GsapAnimation[];
|
|
38
|
-
export declare function gsapAnimationsToKeyframes(animations: GsapAnimation[], elementStartTime: number, options?: {
|
|
39
|
-
baseX?: number;
|
|
40
|
-
baseY?: number;
|
|
41
|
-
baseScale?: number;
|
|
42
|
-
clampTimeToZero?: boolean;
|
|
43
|
-
skipBaseSet?: boolean;
|
|
44
|
-
}): Keyframe[];
|
|
45
11
|
//# sourceMappingURL=gsapParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gsapParser.d.ts","sourceRoot":"","sources":["../../src/parsers/gsapParser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gsapParser.d.ts","sourceRoot":"","sources":["../../src/parsers/gsapParser.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,UAAU,EAEhB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,eAAe,EACf,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAoUzB,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAmC1D;AAOD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAC9B,MAAM,CAUR;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GACnC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAahC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAQrF"}
|