@hyperframes/core 0.6.9 → 0.6.10
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/lottieReadiness.d.ts +10 -0
- package/dist/lottieReadiness.d.ts.map +1 -0
- package/dist/lottieReadiness.js +19 -0
- package/dist/lottieReadiness.js.map +1 -0
- package/dist/studio-api/helpers/subComposition.d.ts +11 -0
- package/dist/studio-api/helpers/subComposition.d.ts.map +1 -1
- package/dist/studio-api/helpers/subComposition.js +101 -14
- package/dist/studio-api/helpers/subComposition.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a registered Lottie animation has finished loading its JSON source.
|
|
3
|
+
*
|
|
4
|
+
* Handles both supported player shapes:
|
|
5
|
+
* - `lottie-web` exposes a boolean `isLoaded` property on `AnimationItem`.
|
|
6
|
+
* - `@dotlottie/player-component` doesn't have `isLoaded`; readiness is
|
|
7
|
+
* inferred from `totalFrames > 0` after manifest/animation JSON parsing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isLottieAnimationLoaded(anim: unknown): boolean;
|
|
10
|
+
//# sourceMappingURL=lottieReadiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lottieReadiness.d.ts","sourceRoot":"","sources":["../src/lottieReadiness.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAM9D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a registered Lottie animation has finished loading its JSON source.
|
|
3
|
+
*
|
|
4
|
+
* Handles both supported player shapes:
|
|
5
|
+
* - `lottie-web` exposes a boolean `isLoaded` property on `AnimationItem`.
|
|
6
|
+
* - `@dotlottie/player-component` doesn't have `isLoaded`; readiness is
|
|
7
|
+
* inferred from `totalFrames > 0` after manifest/animation JSON parsing.
|
|
8
|
+
*/
|
|
9
|
+
export function isLottieAnimationLoaded(anim) {
|
|
10
|
+
if (typeof anim !== "object" || anim === null)
|
|
11
|
+
return true;
|
|
12
|
+
const maybe = anim;
|
|
13
|
+
if (maybe.isLoaded === true)
|
|
14
|
+
return true;
|
|
15
|
+
if (typeof maybe.totalFrames === "number" && maybe.totalFrames > 0)
|
|
16
|
+
return true;
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=lottieReadiness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lottieReadiness.js","sourceRoot":"","sources":["../src/lottieReadiness.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAa;IACnD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC3D,MAAM,KAAK,GAAG,IAAoD,CAAC;IACnE,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACzC,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ,IAAI,KAAK,CAAC,WAAW,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAChF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
* Uses the project's own index.html `<head>` so all dependencies (GSAP, fonts,
|
|
5
5
|
* Lottie, reset styles, runtime) are preserved — instead of building a minimal
|
|
6
6
|
* page from scratch that would miss important scripts/styles.
|
|
7
|
+
*
|
|
8
|
+
* Three dispatch modes, tried in order:
|
|
9
|
+
* 1. `<template>` wrapper → extract template content (existing compositions)
|
|
10
|
+
* 2. Full HTML document → parse and extract head/body separately (registry blocks)
|
|
11
|
+
* 3. Raw fragment → wrap in a minimal document
|
|
12
|
+
*
|
|
13
|
+
* For full-doc mode, the composition's own `<head>` content (styles, scripts,
|
|
14
|
+
* links, meta) is appended AFTER the project's index.html head. When both
|
|
15
|
+
* declare the same dependency (e.g. GSAP CDN), the composition's copy wins
|
|
16
|
+
* by last-write-wins script execution order — this is intentional so the
|
|
17
|
+
* composition can pin a specific version.
|
|
7
18
|
*/
|
|
8
19
|
export declare function buildSubCompositionHtml(projectDir: string, compPath: string, runtimeUrl: string, baseHref?: string): string | null;
|
|
9
20
|
//# sourceMappingURL=subComposition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subComposition.d.ts","sourceRoot":"","sources":["../../../src/studio-api/helpers/subComposition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subComposition.d.ts","sourceRoot":"","sources":["../../../src/studio-api/helpers/subComposition.ts"],"names":[],"mappings":"AA8FA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CAgFf"}
|
|
@@ -2,32 +2,112 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { parseHTML } from "linkedom";
|
|
4
4
|
import { rewriteAssetPaths, rewriteCssAssetUrls, rewriteInlineStyleAssetUrls, } from "../../compiler/rewriteSubCompPaths.js";
|
|
5
|
+
/**
|
|
6
|
+
* Detect whether `html` is a full document (has `<html>`, `<head>`, or
|
|
7
|
+
* `<!doctype`), as opposed to a `<template>`-wrapped fragment.
|
|
8
|
+
* Anchored to start-of-string (ignoring leading whitespace) so stray
|
|
9
|
+
* occurrences inside script/template content don't false-positive.
|
|
10
|
+
*/
|
|
11
|
+
function isFullHtmlDocument(html) {
|
|
12
|
+
return /^\s*(?:<!doctype\s|<html[\s>])/i.test(html);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Rewrite relative asset paths in a parsed DOM tree. Shared across all
|
|
16
|
+
* three dispatch branches (template, full-doc, fragment) to avoid drift.
|
|
17
|
+
*/
|
|
18
|
+
function rewriteRelativePaths(root, compPath) {
|
|
19
|
+
rewriteAssetPaths(root.querySelectorAll("[src], [href]"), compPath, (el, attr) => el.getAttribute(attr), (el, attr, value) => el.setAttribute(attr, value));
|
|
20
|
+
rewriteInlineStyleAssetUrls(root.querySelectorAll("[style]"), compPath, (el) => el.getAttribute("style"), (el, value) => el.setAttribute("style", value));
|
|
21
|
+
for (const styleEl of root.querySelectorAll("style")) {
|
|
22
|
+
styleEl.textContent = rewriteCssAssetUrls(styleEl.textContent || "", compPath);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Parse a full HTML document and extract its head elements and body
|
|
27
|
+
* content separately, so they can be reassembled into a clean standalone
|
|
28
|
+
* page without nesting `<html>` inside `<body>`.
|
|
29
|
+
*
|
|
30
|
+
* Extracts the full innerHTML of `<head>` — this preserves `<style>`,
|
|
31
|
+
* `<script>`, `<link>`, `<meta>`, and any other head-level tags the
|
|
32
|
+
* composition declares. Dropping `<link rel="stylesheet">` or `<meta>`
|
|
33
|
+
* would cause silent rendering failures for compositions that ship with
|
|
34
|
+
* external CSS or viewport-dependent meta.
|
|
35
|
+
*
|
|
36
|
+
* `<html>` and `<body>` attributes (lang, class, data-*) are extracted
|
|
37
|
+
* so callers can forward them to the assembled page.
|
|
38
|
+
*/
|
|
39
|
+
function extractFullDocumentParts(rawHtml, compPath) {
|
|
40
|
+
const { document: doc } = parseHTML(rawHtml);
|
|
41
|
+
const rewriteTargets = [doc.head, doc.body].filter(Boolean);
|
|
42
|
+
for (const target of rewriteTargets) {
|
|
43
|
+
rewriteRelativePaths(target, compPath);
|
|
44
|
+
}
|
|
45
|
+
const headContent = doc.head?.innerHTML ?? "";
|
|
46
|
+
const bodyContent = doc.body?.innerHTML ?? "";
|
|
47
|
+
const htmlEl = doc.documentElement;
|
|
48
|
+
const htmlAttrs = extractElementAttrs(htmlEl);
|
|
49
|
+
const bodyAttrs = doc.body ? extractElementAttrs(doc.body) : "";
|
|
50
|
+
return { headContent, bodyContent, htmlAttrs, bodyAttrs };
|
|
51
|
+
}
|
|
52
|
+
function extractElementAttrs(el) {
|
|
53
|
+
const parts = [];
|
|
54
|
+
for (let i = 0; i < el.attributes.length; i++) {
|
|
55
|
+
const attr = el.attributes[i];
|
|
56
|
+
if (attr.value === "") {
|
|
57
|
+
parts.push(attr.name);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
parts.push(`${attr.name}="${attr.value}"`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return parts.join(" ");
|
|
64
|
+
}
|
|
5
65
|
/**
|
|
6
66
|
* Build a standalone HTML page for a sub-composition.
|
|
7
67
|
*
|
|
8
68
|
* Uses the project's own index.html `<head>` so all dependencies (GSAP, fonts,
|
|
9
69
|
* Lottie, reset styles, runtime) are preserved — instead of building a minimal
|
|
10
70
|
* page from scratch that would miss important scripts/styles.
|
|
71
|
+
*
|
|
72
|
+
* Three dispatch modes, tried in order:
|
|
73
|
+
* 1. `<template>` wrapper → extract template content (existing compositions)
|
|
74
|
+
* 2. Full HTML document → parse and extract head/body separately (registry blocks)
|
|
75
|
+
* 3. Raw fragment → wrap in a minimal document
|
|
76
|
+
*
|
|
77
|
+
* For full-doc mode, the composition's own `<head>` content (styles, scripts,
|
|
78
|
+
* links, meta) is appended AFTER the project's index.html head. When both
|
|
79
|
+
* declare the same dependency (e.g. GSAP CDN), the composition's copy wins
|
|
80
|
+
* by last-write-wins script execution order — this is intentional so the
|
|
81
|
+
* composition can pin a specific version.
|
|
11
82
|
*/
|
|
12
83
|
export function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHref) {
|
|
13
84
|
const compFile = join(projectDir, compPath);
|
|
14
85
|
if (!existsSync(compFile))
|
|
15
86
|
return null;
|
|
16
87
|
const rawComp = readFileSync(compFile, "utf-8");
|
|
17
|
-
|
|
88
|
+
let compHeadContent = "";
|
|
89
|
+
let rewrittenContent;
|
|
90
|
+
let htmlAttrs = "";
|
|
91
|
+
let bodyAttrs = "";
|
|
18
92
|
const templateMatch = rawComp.match(/<template[^>]*>([\s\S]*)<\/template>/i);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
93
|
+
if (templateMatch) {
|
|
94
|
+
const content = templateMatch[1];
|
|
95
|
+
const { document: contentDoc } = parseHTML(`<!DOCTYPE html><html><head></head><body>${content}</body></html>`);
|
|
96
|
+
rewriteRelativePaths(contentDoc, compPath);
|
|
97
|
+
rewrittenContent = contentDoc.body.innerHTML || content;
|
|
98
|
+
}
|
|
99
|
+
else if (isFullHtmlDocument(rawComp)) {
|
|
100
|
+
const parts = extractFullDocumentParts(rawComp, compPath);
|
|
101
|
+
compHeadContent = parts.headContent;
|
|
102
|
+
rewrittenContent = parts.bodyContent;
|
|
103
|
+
htmlAttrs = parts.htmlAttrs;
|
|
104
|
+
bodyAttrs = parts.bodyAttrs;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
const { document: contentDoc } = parseHTML(`<!DOCTYPE html><html><head></head><body>${rawComp}</body></html>`);
|
|
108
|
+
rewriteRelativePaths(contentDoc, compPath);
|
|
109
|
+
rewrittenContent = contentDoc.body.innerHTML || rawComp;
|
|
29
110
|
}
|
|
30
|
-
const rewrittenContent = contentDoc.body.innerHTML || content;
|
|
31
111
|
// Use the project's index.html <head> to preserve all dependencies
|
|
32
112
|
const indexPath = join(projectDir, "index.html");
|
|
33
113
|
let headContent = "";
|
|
@@ -40,6 +120,11 @@ export function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHr
|
|
|
40
120
|
if (baseHref && !headContent.includes("<base")) {
|
|
41
121
|
headContent = `<base href="${baseHref}">\n${headContent}`;
|
|
42
122
|
}
|
|
123
|
+
// Append the sub-composition's own <head> content so its CSS, scripts,
|
|
124
|
+
// links, and meta tags are preserved. Placed after the project head so
|
|
125
|
+
// the composition's deps take precedence (last-write-wins for scripts).
|
|
126
|
+
if (compHeadContent)
|
|
127
|
+
headContent += `\n${compHeadContent}`;
|
|
43
128
|
// Ensure runtime is present (might differ from the one in index.html)
|
|
44
129
|
if (!headContent.includes("hyperframe.runtime") &&
|
|
45
130
|
!headContent.includes("hyperframes-preview-runtime")) {
|
|
@@ -49,12 +134,14 @@ export function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHr
|
|
|
49
134
|
if (!headContent.includes("gsap")) {
|
|
50
135
|
headContent += `\n<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>`;
|
|
51
136
|
}
|
|
137
|
+
const htmlOpen = htmlAttrs ? `<html ${htmlAttrs}>` : "<html>";
|
|
138
|
+
const bodyOpen = bodyAttrs ? `<body ${bodyAttrs}>` : "<body>";
|
|
52
139
|
return `<!DOCTYPE html>
|
|
53
|
-
|
|
140
|
+
${htmlOpen}
|
|
54
141
|
<head>
|
|
55
142
|
${headContent}
|
|
56
143
|
</head>
|
|
57
|
-
|
|
144
|
+
${bodyOpen}
|
|
58
145
|
<script>window.__timelines=window.__timelines||{};</script>
|
|
59
146
|
${rewrittenContent}
|
|
60
147
|
</body>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subComposition.js","sourceRoot":"","sources":["../../../src/studio-api/helpers/subComposition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,uCAAuC,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"subComposition.js","sourceRoot":"","sources":["../../../src/studio-api/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C;IAClG,CAAC;IAED,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,SAAS,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC9D,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,SAAS,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;IAE9D,OAAO;EACP,QAAQ;;EAER,WAAW;;EAEX,QAAQ;;EAER,gBAAgB;;QAEV,CAAC;AACT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"./runtime": "./dist/hyperframe.runtime.iife.js",
|
|
33
33
|
"./runtime/lottie-readiness": {
|
|
34
|
-
"import": "./dist/
|
|
35
|
-
"types": "./dist/
|
|
34
|
+
"import": "./dist/lottieReadiness.js",
|
|
35
|
+
"types": "./dist/lottieReadiness.d.ts"
|
|
36
36
|
},
|
|
37
37
|
"./studio-api": {
|
|
38
38
|
"import": "./dist/studio-api/index.js",
|