@hyperframes/core 0.6.98 → 0.6.100
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/generated/runtime-inline.js +1 -1
- package/dist/generated/runtime-inline.js.map +1 -1
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +17 -17
- package/dist/hyperframe.runtime.mjs +17 -17
- package/dist/parsers/gsapParserAcorn.d.ts +32 -0
- package/dist/parsers/gsapParserAcorn.d.ts.map +1 -0
- package/dist/parsers/gsapParserAcorn.js +980 -0
- package/dist/parsers/gsapParserAcorn.js.map +1 -0
- package/dist/parsers/gsapSerialize.d.ts.map +1 -1
- package/dist/parsers/gsapSerialize.js +5 -3
- package/dist/parsers/gsapSerialize.js.map +1 -1
- package/dist/parsers/gsapWriterAcorn.d.ts +13 -0
- package/dist/parsers/gsapWriterAcorn.d.ts.map +1 -0
- package/dist/parsers/gsapWriterAcorn.js +384 -0
- package/dist/parsers/gsapWriterAcorn.js.map +1 -0
- package/dist/studio-api/routes/files.d.ts.map +1 -1
- package/dist/studio-api/routes/files.js +13 -8
- package/dist/studio-api/routes/files.js.map +1 -1
- package/package.json +12 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { GsapAnimation, GsapMethod, ParsedGsap } from "./gsapSerialize.js";
|
|
2
|
+
export interface TweenCallInfo {
|
|
3
|
+
node: any;
|
|
4
|
+
/** acorn-walk ancestor array at the call site (root→call, call is last). */
|
|
5
|
+
ancestors: any[];
|
|
6
|
+
method: GsapMethod;
|
|
7
|
+
selector: string;
|
|
8
|
+
varsArg: any;
|
|
9
|
+
fromArg?: any;
|
|
10
|
+
positionArg?: any;
|
|
11
|
+
}
|
|
12
|
+
export interface ParsedGsapAcornForWrite {
|
|
13
|
+
ast: any;
|
|
14
|
+
timelineVar: string;
|
|
15
|
+
hasTimeline: boolean;
|
|
16
|
+
located: Array<{
|
|
17
|
+
id: string;
|
|
18
|
+
call: TweenCallInfo;
|
|
19
|
+
animation: GsapAnimation;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Parse a GSAP script and return internal AST + call nodes for the write path.
|
|
24
|
+
* Consumed by gsapWriterAcorn.ts (magic-string offset-splice).
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseGsapScriptAcornForWrite(script: string): ParsedGsapAcornForWrite | null;
|
|
27
|
+
/**
|
|
28
|
+
* Browser-safe equivalent of `parseGsapScript` (gsapParser.ts).
|
|
29
|
+
* Uses acorn + acorn-walk instead of recast + @babel/parser.
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseGsapScriptAcorn(script: string): ParsedGsap;
|
|
32
|
+
//# sourceMappingURL=gsapParserAcorn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gsapParserAcorn.d.ts","sourceRoot":"","sources":["../../src/parsers/gsapParserAcorn.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAGV,aAAa,EAEb,UAAU,EAEV,UAAU,EACX,MAAM,oBAAoB,CAAC;AAmZ5B,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,GAAG,CAAC;IACV,4EAA4E;IAC5E,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB;AAumBD,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,GAAG,CAAC;IACT,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,aAAa,CAAC;QAAC,SAAS,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;CAC/E;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,GAAG,IAAI,CA0B3F;AAID;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CA4C/D"}
|