@hyperframes/core 0.8.160 → 0.8.162
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/gsap.d.ts +1 -1
- package/dist/adapters/index.d.ts +3 -3
- package/dist/audioAnalysis.d.ts +7 -5
- package/dist/audioAnalysis.js +1 -1
- package/dist/audioResample.d.ts +2 -0
- package/dist/audioResample.js +37 -0
- package/dist/audioRhythm.d.ts +7 -9
- package/dist/audioRhythm.js +145 -49
- package/dist/audioSections.d.ts +3 -3
- package/dist/audioSections.js +14 -6
- package/dist/beats/beatDetection.d.ts +6 -8
- package/dist/beats/beatDetection.js +25 -217
- package/dist/colorGrading.d.ts +3 -3
- package/dist/compiler/htmlBundler.d.ts +2 -2
- package/dist/compiler/index.d.ts +19 -19
- package/dist/compiler/inlineSubCompositions.d.ts +4 -4
- package/dist/compiler/svgIdNamespacing.d.ts +1 -1
- package/dist/figma/assetSnippet.d.ts +1 -1
- package/dist/figma/client.d.ts +1 -1
- package/dist/figma/emitTimelineScript.d.ts +1 -1
- package/dist/figma/index.d.ts +22 -22
- package/dist/figma/manifest.d.ts +1 -1
- package/dist/figma/motionContextToDocs.d.ts +1 -1
- package/dist/figma/motionEase.d.ts +1 -1
- package/dist/figma/motionToGsap.d.ts +1 -1
- package/dist/figma/nodeDocument.d.ts +1 -1
- package/dist/figma/nodeToHtml.d.ts +3 -3
- package/dist/figma/parseFigmaRef.d.ts +1 -1
- package/dist/figma/resolveBindings.d.ts +2 -2
- package/dist/figma/tokensToVariables.d.ts +2 -2
- package/dist/generators/hyperframes.d.ts +1 -1
- package/dist/index.d.ts +37 -37
- package/dist/inline-scripts/hyperframe.d.ts +1 -1
- package/dist/projects.d.ts +1 -1
- package/dist/runtime/bridge.d.ts +2 -2
- package/dist/runtime/clipTree.d.ts +1 -1
- package/dist/runtime/compositionLength.d.ts +2 -2
- package/dist/runtime/mediaVolumeEnvelope.d.ts +1 -1
- package/dist/runtime/playbackRate.d.ts +1 -1
- package/dist/runtime/startResolver.d.ts +3 -3
- package/dist/runtime/state.d.ts +3 -3
- package/dist/runtime/timeline.d.ts +2 -2
- package/dist/runtime/timelineDuration.d.ts +1 -1
- package/dist/runtime/types.d.ts +2 -2
- package/dist/runtime/validateVariables.d.ts +1 -1
- package/dist/templates/base.d.ts +1 -1
- package/dist/vfx/refs/displacementMap.d.ts +1 -1
- package/dist/vfx/refs/fractalNoise.d.ts +1 -1
- package/dist/vfx/refs/lumaMatte.d.ts +1 -1
- package/dist/vfx/refs/noise.d.ts +1 -1
- package/dist/vfx/refs/waveWarp.d.ts +1 -1
- package/package.json +5 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HYPERFRAME_BRIDGE_SOURCES, HYPERFRAME_RUNTIME_GLOBALS } from "./runtimeContract";
|
|
1
|
+
import { HYPERFRAME_BRIDGE_SOURCES, HYPERFRAME_RUNTIME_GLOBALS } from "./runtimeContract.js";
|
|
2
2
|
export declare const HYPERFRAME_RUNTIME_ARTIFACTS: {
|
|
3
3
|
readonly iife: "hyperframe.runtime.iife.js";
|
|
4
4
|
readonly esm: "hyperframe.runtime.mjs";
|
package/dist/projects.d.ts
CHANGED
package/dist/runtime/bridge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HfColorGradingTarget } from "../colorGrading";
|
|
2
|
-
import type { RuntimeOutboundMessage } from "./types";
|
|
1
|
+
import type { HfColorGradingTarget } from "../colorGrading.js";
|
|
2
|
+
import type { RuntimeOutboundMessage } from "./types.js";
|
|
3
3
|
type BridgeDeps = {
|
|
4
4
|
onPlay: () => void;
|
|
5
5
|
onPause: () => void;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* (id/parentId/children) plus the backing element. Add fields (label, kind,
|
|
10
10
|
* absolute start) when a caller needs them.
|
|
11
11
|
*/
|
|
12
|
-
import type { RuntimeTimelineLike } from "./types";
|
|
12
|
+
import type { RuntimeTimelineLike } from "./types.js";
|
|
13
13
|
export interface ClipNode {
|
|
14
14
|
readonly id: string;
|
|
15
15
|
readonly element: Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CompositionDurationResult } from "@hyperframes/parsers/composition-duration";
|
|
2
|
-
import { findRootCompositionElement } from "./compositionDimension";
|
|
3
|
-
import { createRuntimeStartTimeResolver } from "./startResolver";
|
|
2
|
+
import { findRootCompositionElement } from "./compositionDimension.js";
|
|
3
|
+
import { createRuntimeStartTimeResolver } from "./startResolver.js";
|
|
4
4
|
export { findRootCompositionElement };
|
|
5
5
|
export declare const LOOP_INFLATED_TIMELINE_SECONDS = 7200;
|
|
6
6
|
/** One frame at 60 fps: a timeline, floor or fallback this short or shorter is no length at all. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clampPlaybackRate } from "@hyperframes/parsers/media-duration";
|
|
2
|
-
import { type RateSpec } from "../speedRamp";
|
|
2
|
+
import { type RateSpec } from "../speedRamp.js";
|
|
3
3
|
export declare const normalizePlaybackRate: typeof clampPlaybackRate;
|
|
4
4
|
/** Parse a literal numeric timing attribute without accepting trailing units or garbage. */
|
|
5
5
|
export declare function parseStrictFiniteTimingNumber(raw: string | null | undefined): number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RuntimeTimelineLike } from "./types";
|
|
2
|
-
import { type HostSlot } from "../mediaTiming";
|
|
1
|
+
import type { RuntimeTimelineLike } from "./types.js";
|
|
2
|
+
import { type HostSlot } from "../mediaTiming.js";
|
|
3
3
|
export declare function createRuntimeStartTimeResolver(params: {
|
|
4
4
|
timelineRegistry?: Record<string, Pick<RuntimeTimelineLike, "duration"> | undefined>;
|
|
5
5
|
includeAuthoredTimingAttrs?: boolean;
|
|
@@ -18,4 +18,4 @@ export declare function createRuntimeStartTimeResolver(params: {
|
|
|
18
18
|
resolveHostSlotsForElement: (element: Element) => HostSlot[];
|
|
19
19
|
isRootGlobalMediaStartForElement: (element: Element) => boolean;
|
|
20
20
|
};
|
|
21
|
-
export type { RuntimeTimelineLike } from "./types";
|
|
21
|
+
export type { RuntimeTimelineLike } from "./types.js";
|
package/dist/runtime/state.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RuntimeDeterministicAdapter, RuntimeTimelineLike } from "./types";
|
|
2
|
-
import type { RuntimeMediaClip } from "./media";
|
|
3
|
-
import type { TransportClock } from "./clock";
|
|
1
|
+
import type { RuntimeDeterministicAdapter, RuntimeTimelineLike } from "./types.js";
|
|
2
|
+
import type { RuntimeMediaClip } from "./media.js";
|
|
3
|
+
import type { TransportClock } from "./clock.js";
|
|
4
4
|
export type RuntimeState = {
|
|
5
5
|
capturedTimeline: RuntimeTimelineLike | null;
|
|
6
6
|
isPlaying: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RuntimeTimelineMessage, RuntimeTimelineLike } from "./types";
|
|
2
|
-
import { createRuntimeStartTimeResolver } from "./startResolver";
|
|
1
|
+
import type { RuntimeTimelineMessage, RuntimeTimelineLike } from "./types.js";
|
|
2
|
+
import { createRuntimeStartTimeResolver } from "./startResolver.js";
|
|
3
3
|
export declare function isRuntimeElementVisibleAt(rawNode: HTMLElement, options: {
|
|
4
4
|
currentTime: number;
|
|
5
5
|
compositionDuration: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RuntimeTimelineLike } from "./types";
|
|
1
|
+
import type { RuntimeTimelineLike } from "./types.js";
|
|
2
2
|
/** A registered timeline's finite duration(); a partial, throwing or non-numeric entry reads as null. */
|
|
3
3
|
export declare function readTimelineDurationSeconds(timeline: Pick<RuntimeTimelineLike, "duration"> | null | undefined): number | null;
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HfColorGradingTarget } from "../colorGrading";
|
|
2
|
-
import type { RuntimeAnalyticsEvent } from "./analytics";
|
|
1
|
+
import type { HfColorGradingTarget } from "../colorGrading.js";
|
|
2
|
+
import type { RuntimeAnalyticsEvent } from "./analytics.js";
|
|
3
3
|
export type RuntimeJson = string | number | boolean | null | RuntimeJson[] | {
|
|
4
4
|
[key: string]: RuntimeJson;
|
|
5
5
|
};
|
package/dist/templates/base.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type CanvasResolution } from "../core.types";
|
|
1
|
+
import { type CanvasResolution } from "../core.types.js";
|
|
2
2
|
export declare function generateBaseHtml(resolution?: CanvasResolution): string;
|
|
3
3
|
export declare function getStageStyles(resolution?: CanvasResolution): string;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* rather than being implied. Its values are **premultiplied**, matching the
|
|
11
11
|
* capture texture the runtime uploads.
|
|
12
12
|
*/
|
|
13
|
-
import { type HfVfxParamValues } from "../../vfx";
|
|
13
|
+
import { type HfVfxParamValues } from "../../vfx.js";
|
|
14
14
|
export interface MapTexel {
|
|
15
15
|
r: number;
|
|
16
16
|
g: number;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* shader samples fragment centres, so a caller comparing against pixel
|
|
11
11
|
* `(i, j)` should pass `(i + 0.5, j + 0.5)`.
|
|
12
12
|
*/
|
|
13
|
-
import { type HfVfxParamValues } from "../../vfx";
|
|
13
|
+
import { type HfVfxParamValues } from "../../vfx.js";
|
|
14
14
|
/**
|
|
15
15
|
* The shader's `hfHashUnit`. `Math.imul` + `>>> 0` reproduce GLSL's 32-bit
|
|
16
16
|
* `uint` wrap-around exactly; without them JS would carry the products into
|
package/dist/vfx/refs/noise.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* the entirety of what the kernel computes, and the add-and-clip around it is
|
|
9
9
|
* two lines a caller can apply itself.
|
|
10
10
|
*/
|
|
11
|
-
import { type HfVfxParamValues } from "../../vfx";
|
|
11
|
+
import { type HfVfxParamValues } from "../../vfx.js";
|
|
12
12
|
/** The hash's 15-bit output byte for one channel index `a`. */
|
|
13
13
|
export declare function noiseByteRef(a: number, y: number, seed: number): number;
|
|
14
14
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Coordinates are device pixels with y measured from the bottom — the shader's
|
|
8
8
|
* `v_uv * u_size`, and the order `gl.readPixels` returns rows in.
|
|
9
9
|
*/
|
|
10
|
-
import { type HfVfxParamValues } from "../../vfx";
|
|
10
|
+
import { type HfVfxParamValues } from "../../vfx.js";
|
|
11
11
|
/** Where the kernel reads from to paint `(x, y)`, in the same pixel space. */
|
|
12
12
|
export declare function waveWarpSampleRef(p: {
|
|
13
13
|
x: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.162",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -374,13 +374,12 @@
|
|
|
374
374
|
"dependencies": {
|
|
375
375
|
"@chenglou/pretext": "^0.0.5",
|
|
376
376
|
"acorn": "^8.17.0",
|
|
377
|
-
"bpm-detective": "^2.0.5",
|
|
378
377
|
"linkedom": "^0.18.12",
|
|
379
378
|
"postcss": "^8.5.8",
|
|
380
379
|
"wawoff2": "^2.0.1",
|
|
381
|
-
"@hyperframes/lint": "0.8.
|
|
382
|
-
"@hyperframes/studio-server": "0.8.
|
|
383
|
-
"@hyperframes/parsers": "0.8.
|
|
380
|
+
"@hyperframes/lint": "0.8.162",
|
|
381
|
+
"@hyperframes/studio-server": "0.8.162",
|
|
382
|
+
"@hyperframes/parsers": "0.8.162"
|
|
384
383
|
},
|
|
385
384
|
"devDependencies": {
|
|
386
385
|
"@fontsource/archivo-black": "^5.2.8",
|
|
@@ -414,7 +413,7 @@
|
|
|
414
413
|
"esbuild": "^0.25.12"
|
|
415
414
|
},
|
|
416
415
|
"scripts": {
|
|
417
|
-
"build": "bun run build:fonts && bun run build:svg-selector-aliases && bun run build:hyperframes-runtime && bun run build:position-edits-render && bun run build:audio-fx-runtime && tsc &&
|
|
416
|
+
"build": "bun run build:fonts && bun run build:svg-selector-aliases && bun run build:hyperframes-runtime && bun run build:position-edits-render && bun run build:audio-fx-runtime && tsc && node ../../scripts/rewrite-relative-import-extensions.mjs dist",
|
|
418
417
|
"build:fonts": "node scripts/build-fonts.mjs",
|
|
419
418
|
"test": "bun run check:position-edits-render && bun run check:svg-selector-aliases && bun run build:audio-fx-runtime && vitest run",
|
|
420
419
|
"test:watch": "vitest",
|