@hyperframes/core 0.8.117 → 0.8.118
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/gsapCdn.d.ts +4 -0
- package/dist/gsapCdn.d.ts.map +1 -0
- package/dist/gsapCdn.js +10 -0
- package/dist/gsapCdn.js.map +1 -0
- package/dist/templates/constants.d.ts +1 -1
- package/dist/templates/constants.d.ts.map +1 -1
- package/dist/templates/constants.js +2 -1
- package/dist/templates/constants.js.map +1 -1
- package/package.json +8 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function gsapCdnDist(gsapVersion?: string): string;
|
|
2
|
+
/** MotionPathPlugin at the composition's own gsap version; a skew registers with a GSAP warning. */
|
|
3
|
+
export declare function motionPathPluginUrl(gsapVersion?: string): string;
|
|
4
|
+
//# sourceMappingURL=gsapCdn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gsapCdn.d.ts","sourceRoot":"","sources":["../src/gsapCdn.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhE"}
|
package/dist/gsapCdn.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const GSAP_CDN_VERSION = "3.15.0";
|
|
2
|
+
export function gsapCdnDist(gsapVersion) {
|
|
3
|
+
const version = gsapVersion && /^\d+(\.\d+)*$/.test(gsapVersion) ? gsapVersion : GSAP_CDN_VERSION;
|
|
4
|
+
return `https://cdn.jsdelivr.net/npm/gsap@${version}/dist/`;
|
|
5
|
+
}
|
|
6
|
+
/** MotionPathPlugin at the composition's own gsap version; a skew registers with a GSAP warning. */
|
|
7
|
+
export function motionPathPluginUrl(gsapVersion) {
|
|
8
|
+
return `${gsapCdnDist(gsapVersion)}MotionPathPlugin.min.js`;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=gsapCdn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gsapCdn.js","sourceRoot":"","sources":["../src/gsapCdn.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAElC,MAAM,UAAU,WAAW,CAAC,WAAoB;IAC9C,MAAM,OAAO,GAAG,WAAW,IAAI,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAClG,OAAO,qCAAqC,OAAO,QAAQ,CAAC;AAC9D,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,mBAAmB,CAAC,WAAoB;IACtD,OAAO,GAAG,WAAW,CAAC,WAAW,CAAC,yBAAyB,CAAC;AAC9D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const GSAP_CDN
|
|
1
|
+
export declare const GSAP_CDN: string;
|
|
2
2
|
export declare const BASE_STYLES = "* { margin: 0; padding: 0; box-sizing: border-box; }\nhtml, body { width: 100%; height: 100%; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }";
|
|
3
3
|
export declare const ELEMENT_BASE_STYLES = "position: absolute; visibility: hidden;";
|
|
4
4
|
export declare const MEDIA_STYLES = "width: 100%; height: 100%; object-fit: contain;";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/templates/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/templates/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAgC,CAAC;AAEtD,eAAO,MAAM,WAAW,qMACmH,CAAC;AAE5I,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,eAAO,MAAM,YAAY,oDAAoD,CAAC;AAE9E,eAAO,MAAM,WAAW,4NAA0N,CAAC;AAEnP,eAAO,MAAM,qBAAqB,yDAAyD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { gsapCdnDist } from "../gsapCdn.js";
|
|
2
|
+
export const GSAP_CDN = `${gsapCdnDist()}gsap.min.js`;
|
|
2
3
|
export const BASE_STYLES = `* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
3
4
|
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }`;
|
|
4
5
|
export const ELEMENT_BASE_STYLES = `position: absolute; visibility: hidden;`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/templates/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/templates/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,WAAW,EAAE,aAAa,CAAC;AAEtD,MAAM,CAAC,MAAM,WAAW,GAAG;2IACgH,CAAC;AAE5I,MAAM,CAAC,MAAM,mBAAmB,GAAG,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,iDAAiD,CAAC;AAE9E,MAAM,CAAC,MAAM,WAAW,GAAG,uNAAuN,CAAC;AAEnP,MAAM,CAAC,MAAM,qBAAqB,GAAG,sDAAsD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.118",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -70,6 +70,10 @@
|
|
|
70
70
|
"import": "./dist/studioPreviewMark.js",
|
|
71
71
|
"types": "./dist/studioPreviewMark.d.ts"
|
|
72
72
|
},
|
|
73
|
+
"./gsap-cdn": {
|
|
74
|
+
"import": "./dist/gsapCdn.js",
|
|
75
|
+
"types": "./dist/gsapCdn.d.ts"
|
|
76
|
+
},
|
|
73
77
|
"./media-timing": {
|
|
74
78
|
"import": "./dist/mediaTiming.js",
|
|
75
79
|
"types": "./dist/mediaTiming.d.ts"
|
|
@@ -342,9 +346,9 @@
|
|
|
342
346
|
"bpm-detective": "^2.0.5",
|
|
343
347
|
"linkedom": "^0.18.12",
|
|
344
348
|
"postcss": "^8.5.8",
|
|
345
|
-
"@hyperframes/lint": "0.8.
|
|
346
|
-
"@hyperframes/
|
|
347
|
-
"@hyperframes/
|
|
349
|
+
"@hyperframes/lint": "0.8.118",
|
|
350
|
+
"@hyperframes/studio-server": "0.8.118",
|
|
351
|
+
"@hyperframes/parsers": "0.8.118"
|
|
348
352
|
},
|
|
349
353
|
"devDependencies": {
|
|
350
354
|
"@types/jsdom": "^28.0.0",
|