@hyperframes/core 0.6.118 → 0.6.120
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/adapters/index.js +1 -1
- package/dist/compiler/htmlBundler.js +9 -9
- package/dist/compiler/htmlCompiler.js +1 -1
- package/dist/compiler/index.js +9 -9
- package/dist/compiler/inlineSubCompositions.js +3 -3
- package/dist/compiler/staticGuard.js +1 -1
- package/dist/generated/runtime-inline.js +1 -1
- package/dist/generated/runtime-inline.js.map +1 -1
- package/dist/generators/hyperframes.js +3 -3
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +10 -10
- package/dist/hyperframe.runtime.mjs +10 -10
- package/dist/index.js +24 -24
- package/dist/inline-scripts/hyperframe.js +2 -2
- package/dist/lint/context.js +1 -1
- package/dist/lint/hyperframeLinter.js +11 -11
- package/dist/lint/index.js +1 -1
- package/dist/lint/rules/adapters.js +1 -1
- package/dist/lint/rules/composition.js +2 -2
- package/dist/lint/rules/core.js +1 -1
- package/dist/lint/rules/fonts.js +2 -2
- package/dist/lint/rules/gsap.js +1 -1
- package/dist/lint/rules/media.js +1 -1
- package/dist/lint/rules/slideshow.js +3 -3
- package/dist/lint/rules/textures.js +1 -1
- package/dist/parsers/gsapParser.js +5 -5
- package/dist/parsers/gsapSerialize.js +1 -1
- package/dist/parsers/htmlParser.js +2 -2
- package/dist/runtime/types.d.ts +2 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/slideshow/index.js +2 -2
- package/dist/studio-api/helpers/sourceMutation.js +1 -1
- package/dist/studio-api/routes/fonts.js +1 -1
- package/dist/templates/base.js +1 -1
- package/package.json +2 -2
package/dist/adapters/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createGSAPFrameAdapter } from "./gsap";
|
|
1
|
+
export { createGSAPFrameAdapter } from "./gsap.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,17 +2,17 @@ import { readFileSync, existsSync } from "fs";
|
|
|
2
2
|
import { join, resolve, relative, dirname, isAbsolute, sep } from "path";
|
|
3
3
|
import { CSS_URL_RE, isNonRelativeUrl } from "./assetPaths.js";
|
|
4
4
|
import { transformSync } from "esbuild";
|
|
5
|
-
import { compileHtml } from "./htmlCompiler";
|
|
6
|
-
import { RUNTIME_BOOTSTRAP_ATTR, parseHTMLContent, stripEmbeddedRuntimeScripts, } from "./htmlDocument";
|
|
5
|
+
import { compileHtml } from "./htmlCompiler.js";
|
|
6
|
+
import { RUNTIME_BOOTSTRAP_ATTR, parseHTMLContent, stripEmbeddedRuntimeScripts, } from "./htmlDocument.js";
|
|
7
7
|
// rewriteSubCompPaths functions are used by inlineSubCompositions (shared module)
|
|
8
|
-
import { scopeCssToComposition, wrapInlineScriptWithErrorBoundary, wrapScopedCompositionScript, } from "./compositionScoping";
|
|
9
|
-
import { validateHyperframeHtmlContract } from "./staticGuard";
|
|
10
|
-
import { getHyperframeRuntimeScript } from "../generated/runtime-inline";
|
|
11
|
-
import { readDeclaredDefaults } from "../runtime/getVariables";
|
|
12
|
-
import { inlineSubCompositions } from "./inlineSubCompositions";
|
|
13
|
-
import { queryByAttr } from "../utils/cssSelector";
|
|
8
|
+
import { scopeCssToComposition, wrapInlineScriptWithErrorBoundary, wrapScopedCompositionScript, } from "./compositionScoping.js";
|
|
9
|
+
import { validateHyperframeHtmlContract } from "./staticGuard.js";
|
|
10
|
+
import { getHyperframeRuntimeScript } from "../generated/runtime-inline.js";
|
|
11
|
+
import { readDeclaredDefaults } from "../runtime/getVariables.js";
|
|
12
|
+
import { inlineSubCompositions } from "./inlineSubCompositions.js";
|
|
13
|
+
import { queryByAttr } from "../utils/cssSelector.js";
|
|
14
14
|
import { isSafePath, resolveWithinProject } from "../safePath.js";
|
|
15
|
-
import { HF_COLOR_GRADING_ATTR } from "../colorGrading";
|
|
15
|
+
import { HF_COLOR_GRADING_ATTR } from "../colorGrading.js";
|
|
16
16
|
const DEFAULT_RUNTIME_SCRIPT_URL = "";
|
|
17
17
|
function getRuntimeScriptUrl() {
|
|
18
18
|
const configured = (process.env.HYPERFRAME_RUNTIME_URL || "").trim();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolve } from "path";
|
|
2
|
-
import { compileTimingAttrs, injectDurations, extractResolvedMedia, clampDurations, shouldClampMediaDuration, } from "./timingCompiler";
|
|
2
|
+
import { compileTimingAttrs, injectDurations, extractResolvedMedia, clampDurations, shouldClampMediaDuration, } from "./timingCompiler.js";
|
|
3
3
|
function resolveMediaSrc(src, projectDir) {
|
|
4
4
|
return src.startsWith("http://") || src.startsWith("https://") ? src : resolve(projectDir, src);
|
|
5
5
|
}
|
package/dist/compiler/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// Timing resolver — shared pure resolver for word-anchored elastic timing (WS-C).
|
|
2
2
|
// Consumed by both preview (sdk) and render (timingCompiler) paths.
|
|
3
|
-
export { resolveTimings, } from "./timingResolver";
|
|
3
|
+
export { resolveTimings, } from "./timingResolver.js";
|
|
4
4
|
// Timing compiler (browser-safe)
|
|
5
|
-
export { compileTimingAttrs, injectDurations, extractResolvedMedia, clampDurations, shouldClampMediaDuration, } from "./timingCompiler";
|
|
5
|
+
export { compileTimingAttrs, injectDurations, extractResolvedMedia, clampDurations, shouldClampMediaDuration, } from "./timingCompiler.js";
|
|
6
6
|
// HTML compiler (Node.js — requires fs)
|
|
7
|
-
export { compileHtml } from "./htmlCompiler";
|
|
7
|
+
export { compileHtml } from "./htmlCompiler.js";
|
|
8
8
|
// HTML bundler (Node.js — requires fs, linkedom, esbuild)
|
|
9
|
-
export { bundleToSingleHtml, prepareFlattenedInnerRoot, FLATTENED_INNER_ROOT_STRIP_ATTRS, } from "./htmlBundler";
|
|
10
|
-
export { RUNTIME_BOOTSTRAP_ATTR, injectScriptsAtHeadStart, injectScriptsIntoHtml, parseHTMLContent, stripEmbeddedRuntimeScripts, } from "./htmlDocument";
|
|
9
|
+
export { bundleToSingleHtml, prepareFlattenedInnerRoot, FLATTENED_INNER_ROOT_STRIP_ATTRS, } from "./htmlBundler.js";
|
|
10
|
+
export { RUNTIME_BOOTSTRAP_ATTR, injectScriptsAtHeadStart, injectScriptsIntoHtml, parseHTMLContent, stripEmbeddedRuntimeScripts, } from "./htmlDocument.js";
|
|
11
11
|
// Static guard
|
|
12
|
-
export { validateHyperframeHtmlContract, } from "./staticGuard";
|
|
12
|
+
export { validateHyperframeHtmlContract, } from "./staticGuard.js";
|
|
13
13
|
// Composition isolation helpers
|
|
14
|
-
export { scopeCssToComposition, wrapScopedCompositionScript } from "./compositionScoping";
|
|
14
|
+
export { scopeCssToComposition, wrapScopedCompositionScript } from "./compositionScoping.js";
|
|
15
15
|
// Sub-composition inlining (shared between bundler and producer)
|
|
16
|
-
export { inlineSubCompositions, } from "./inlineSubCompositions";
|
|
16
|
+
export { inlineSubCompositions, } from "./inlineSubCompositions.js";
|
|
17
17
|
// Asset-path primitives (shared across core, producer, CLI)
|
|
18
|
-
export { CSS_URL_RE, PATH_ATTRS, isNonRelativeUrl, isPathInside } from "./assetPaths";
|
|
18
|
+
export { CSS_URL_RE, PATH_ATTRS, isNonRelativeUrl, isPathInside } from "./assetPaths.js";
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* divergence that previously caused bugs (e.g. producer not setting
|
|
8
8
|
* `data-composition-file`).
|
|
9
9
|
*/
|
|
10
|
-
import { rewriteAssetPaths, rewriteCssAssetUrls, rewriteInlineStyleAssetUrls, } from "./rewriteSubCompPaths";
|
|
11
|
-
import { queryByAttr } from "../utils/cssSelector";
|
|
12
|
-
import { scopeCssToComposition, wrapInlineScriptWithErrorBoundary, wrapScopedCompositionScript, } from "./compositionScoping";
|
|
10
|
+
import { rewriteAssetPaths, rewriteCssAssetUrls, rewriteInlineStyleAssetUrls, } from "./rewriteSubCompPaths.js";
|
|
11
|
+
import { queryByAttr } from "../utils/cssSelector.js";
|
|
12
|
+
import { scopeCssToComposition, wrapInlineScriptWithErrorBoundary, wrapScopedCompositionScript, } from "./compositionScoping.js";
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
// Default helpers
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lintHyperframeHtml } from "../lint/hyperframeLinter";
|
|
1
|
+
import { lintHyperframeHtml } from "../lint/hyperframeLinter.js";
|
|
2
2
|
export async function validateHyperframeHtmlContract(html) {
|
|
3
3
|
const result = await lintHyperframeHtml(html);
|
|
4
4
|
const missingKeys = result.findings
|