@hyperframes/core 0.8.159 → 0.8.161
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 +121 -0
- package/dist/audioAnalysis.js +466 -0
- package/dist/audioAnalysisLadder.d.ts +52 -0
- package/dist/audioAnalysisLadder.js +78 -0
- package/dist/audioCarve.js +1 -36
- package/dist/audioResample.d.ts +2 -0
- package/dist/audioResample.js +37 -0
- package/dist/audioRhythm.d.ts +48 -0
- package/dist/audioRhythm.js +407 -0
- package/dist/audioSections.d.ts +21 -0
- package/dist/audioSections.js +117 -0
- package/dist/audioSnap.d.ts +18 -0
- package/dist/audioSnap.js +41 -0
- 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/fft.d.ts +2 -0
- package/dist/fft.js +36 -0
- 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/generated/runtime-inline.js +1 -1
- package/dist/generators/hyperframes.d.ts +1 -1
- package/dist/hyperframe.runtime.iife.js +55 -55
- 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/media.d.ts +1 -0
- package/dist/runtime/media.js +35 -0
- 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 +9 -6
package/dist/figma/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export type * from "./types";
|
|
2
|
-
export { createFigmaClient, FigmaClientError } from "./client";
|
|
3
|
-
export type { FigmaClient, FigmaClientErrorCode, FigmaClientOptions, FigmaFetch, FigmaFileVersion, FigmaNodeDocument, FigmaStyleMeta, FigmaVariablePayload, FigmaVariablesResult, RenderedNode, RenderNodeOptions, } from "./client";
|
|
4
|
-
export { parseFigmaRef } from "./parseFigmaRef";
|
|
5
|
-
export { MAX_FREEZE_BYTES, exceedsFreezeCap, freezeBytes, freezeUrl, freezeLocalFile, } from "./freeze";
|
|
6
|
-
export { mediaDir, manifestPath, typeDirPath, updateRecord, isFigmaManifestRecord, readManifest, appendRecord, findAllByFigmaNode, findByFigmaNode, nextId, } from "./manifest";
|
|
7
|
-
export { regenerateIndex } from "./mediaIndex";
|
|
8
|
-
export { buildAssetSnippet } from "./assetSnippet";
|
|
9
|
-
export { sanitizeSvg } from "./sanitizeSvg";
|
|
10
|
-
export { appendBinding, upsertBindings, findBindingByFigmaId, readBindings, readLibraryMap, recordLibraryFile, } from "./bindings";
|
|
11
|
-
export type { FigmaBindingRecord } from "./bindings";
|
|
12
|
-
export { figmaColorToCss } from "./color";
|
|
13
|
-
export { resolveBindings } from "./resolveBindings";
|
|
14
|
-
export type { BindingSite, ResolvedBindingSite, ResolveBindingsResult } from "./resolveBindings";
|
|
15
|
-
export { nodeToHtml, slugify } from "./nodeToHtml";
|
|
16
|
-
export type { NodeToHtmlResult, RasterizeRequest } from "./nodeToHtml";
|
|
17
|
-
export { tokensToVariables } from "./tokensToVariables";
|
|
18
|
-
export type { CompositionVariableEntry, FigmaTokenSidecarEntry, FigmaTokensSidecar, TokenSource, TokensToVariablesResult, } from "./tokensToVariables";
|
|
19
|
-
export { mapEase } from "./motionEase";
|
|
20
|
-
export { motionContextToDocs, type MotionContextResponse, type MotionContextNode, type MotionContextToDocsOptions, } from "./motionContextToDocs";
|
|
21
|
-
export { motionToGsap } from "./motionToGsap";
|
|
22
|
-
export { emitTimelineScript } from "./emitTimelineScript";
|
|
1
|
+
export type * from "./types.js";
|
|
2
|
+
export { createFigmaClient, FigmaClientError } from "./client.js";
|
|
3
|
+
export type { FigmaClient, FigmaClientErrorCode, FigmaClientOptions, FigmaFetch, FigmaFileVersion, FigmaNodeDocument, FigmaStyleMeta, FigmaVariablePayload, FigmaVariablesResult, RenderedNode, RenderNodeOptions, } from "./client.js";
|
|
4
|
+
export { parseFigmaRef } from "./parseFigmaRef.js";
|
|
5
|
+
export { MAX_FREEZE_BYTES, exceedsFreezeCap, freezeBytes, freezeUrl, freezeLocalFile, } from "./freeze.js";
|
|
6
|
+
export { mediaDir, manifestPath, typeDirPath, updateRecord, isFigmaManifestRecord, readManifest, appendRecord, findAllByFigmaNode, findByFigmaNode, nextId, } from "./manifest.js";
|
|
7
|
+
export { regenerateIndex } from "./mediaIndex.js";
|
|
8
|
+
export { buildAssetSnippet } from "./assetSnippet.js";
|
|
9
|
+
export { sanitizeSvg } from "./sanitizeSvg.js";
|
|
10
|
+
export { appendBinding, upsertBindings, findBindingByFigmaId, readBindings, readLibraryMap, recordLibraryFile, } from "./bindings.js";
|
|
11
|
+
export type { FigmaBindingRecord } from "./bindings.js";
|
|
12
|
+
export { figmaColorToCss } from "./color.js";
|
|
13
|
+
export { resolveBindings } from "./resolveBindings.js";
|
|
14
|
+
export type { BindingSite, ResolvedBindingSite, ResolveBindingsResult } from "./resolveBindings.js";
|
|
15
|
+
export { nodeToHtml, slugify } from "./nodeToHtml.js";
|
|
16
|
+
export type { NodeToHtmlResult, RasterizeRequest } from "./nodeToHtml.js";
|
|
17
|
+
export { tokensToVariables } from "./tokensToVariables.js";
|
|
18
|
+
export type { CompositionVariableEntry, FigmaTokenSidecarEntry, FigmaTokensSidecar, TokenSource, TokensToVariablesResult, } from "./tokensToVariables.js";
|
|
19
|
+
export { mapEase } from "./motionEase.js";
|
|
20
|
+
export { motionContextToDocs, type MotionContextResponse, type MotionContextNode, type MotionContextToDocsOptions, } from "./motionContextToDocs.js";
|
|
21
|
+
export { motionToGsap } from "./motionToGsap.js";
|
|
22
|
+
export { emitTimelineScript } from "./emitTimelineScript.js";
|
package/dist/figma/manifest.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FigmaManifestRecord } from "./types";
|
|
1
|
+
import type { FigmaManifestRecord } from "./types.js";
|
|
2
2
|
export declare function mediaDir(projectDir: string): string;
|
|
3
3
|
export declare function manifestPath(projectDir: string): string;
|
|
4
4
|
export declare function typeDirPath(projectDir: string, type: FigmaManifestRecord["type"]): string;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* Verification is still mandatory: render and compare against
|
|
21
21
|
* `export_video` ground truth with skills/figma/scripts/verify-motion.mjs.
|
|
22
22
|
*/
|
|
23
|
-
import type { MotionDoc } from "./types";
|
|
23
|
+
import type { MotionDoc } from "./types.js";
|
|
24
24
|
export interface MotionContextNode {
|
|
25
25
|
nodeId: string;
|
|
26
26
|
nodeName: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { MappedEase, MotionEase } from "./types";
|
|
1
|
+
import type { MappedEase, MotionEase } from "./types.js";
|
|
2
2
|
export declare function mapEase(ease: MotionEase): MappedEase;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { MotionDoc, TimelineSpec } from "./types";
|
|
1
|
+
import type { MotionDoc, TimelineSpec } from "./types.js";
|
|
2
2
|
export declare function motionToGsap(doc: MotionDoc): TimelineSpec;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* - visible:false nodes and fills are skipped — figma's own renderer
|
|
19
19
|
* semantics, not ours.
|
|
20
20
|
*/
|
|
21
|
-
import type { FigmaNodeDocument } from "./client";
|
|
22
|
-
import type { ResolveBindingsResult } from "./resolveBindings";
|
|
21
|
+
import type { FigmaNodeDocument } from "./client.js";
|
|
22
|
+
import type { ResolveBindingsResult } from "./resolveBindings.js";
|
|
23
23
|
export interface RasterizeRequest {
|
|
24
24
|
nodeId: string;
|
|
25
25
|
name: string;
|
|
@@ -29,7 +29,7 @@ export interface NodeToHtmlResult {
|
|
|
29
29
|
html: string;
|
|
30
30
|
rasterize: RasterizeRequest[];
|
|
31
31
|
}
|
|
32
|
-
export { slugify } from "../tokenSlug";
|
|
32
|
+
export { slugify } from "../tokenSlug.js";
|
|
33
33
|
export interface NodeToHtmlOptions {
|
|
34
34
|
/** override for the ROOT element's slug/id — variant frames are often all
|
|
35
35
|
* named "Platform=Desktop", so the caller's --name must reach the DOM id,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FigmaRef } from "./types";
|
|
1
|
+
import type { FigmaRef } from "./types.js";
|
|
2
2
|
export declare function parseFigmaRef(input: string): FigmaRef;
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* and arrays of alias objects both count; unknown shapes are ignored rather
|
|
13
13
|
* than guessed at.
|
|
14
14
|
*/
|
|
15
|
-
import type { FigmaBindingRecord } from "./bindings";
|
|
16
|
-
import type { FigmaNodeDocument } from "./client";
|
|
15
|
+
import type { FigmaBindingRecord } from "./bindings.js";
|
|
16
|
+
import type { FigmaNodeDocument } from "./client.js";
|
|
17
17
|
export interface BindingSite {
|
|
18
18
|
nodeId: string;
|
|
19
19
|
/** boundVariables property ("fills") or style slot prefixed "style:" ("style:text") */
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* value (cycle-safe) but the binding records the semantic id the designer
|
|
7
7
|
* bound, so a swapped primitive doesn't orphan the link.
|
|
8
8
|
*/
|
|
9
|
-
import type { FigmaVariablesResult } from "./client";
|
|
10
|
-
import type { FigmaBindingRecord } from "./bindings";
|
|
9
|
+
import type { FigmaVariablesResult } from "./client.js";
|
|
10
|
+
import type { FigmaBindingRecord } from "./bindings.js";
|
|
11
11
|
/** data-composition-variables entry (runtime getVariables contract). */
|
|
12
12
|
export interface CompositionVariableEntry {
|
|
13
13
|
id: string;
|