@hyperframes/inspector 0.8.183 → 0.8.184

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.
@@ -1,7 +1,11 @@
1
- export declare function scopeCssToComposition(css: string, compositionId: string, scopeSelectorOverride?: string, authoredRootId?: string | null, options?: {
1
+ type ScopeOptions = {
2
2
  compoundAuthoredRoot?: boolean;
3
3
  scopeRootSelectors?: boolean;
4
- }): string;
4
+ };
5
+ export declare function scopeCssToComposition(css: string, compositionId: string, scopeSelectorOverride?: string, authoredRootId?: string | null, options?: ScopeOptions): string;
6
+ /** `scopeCssToComposition` for sheets mounted many times: each sheet is scoped once around a
7
+ * placeholder scope, which each mount's own scope then replaces. */
8
+ export declare function createCompositionCssScoper(): typeof scopeCssToComposition;
5
9
  /** Drops repeats of an identical `@font-face` across the given style texts, keeping the last copy:
6
10
  * the last matching rule is the one the browser uses, so a rule in between never gains precedence. */
7
11
  export declare const dedupeFontFaceRules: (styleTexts: string[]) => string[];
@@ -30,3 +34,4 @@ export declare function wrapInlineScriptWithErrorBoundary(source: string, errorL
30
34
  * table goes through `jsonScriptLiteral` — see there for why.
31
35
  */
32
36
  export declare function buildVariablesByCompScript(variablesByComp: Record<string, Record<string, unknown>>): string | null;
37
+ export {};
@@ -55,6 +55,7 @@ export interface BundleOptions {
55
55
  sceneParts?: boolean;
56
56
  /** Warn when the compiled HTML breaks the HyperFrames contract (default true). */
57
57
  staticGuard?: boolean;
58
+ /** Called once per build for each project file the build reads or looks for. */
58
59
  onRead?: (filePath: string) => void;
59
60
  }
60
61
  export declare function bundleToSingleHtml(projectDir: string, options?: BundleOptions): Promise<string>;
@@ -261,6 +261,7 @@ export type RuntimeTimelineLike = {
261
261
  seek: (timeSeconds?: number, suppressEvents?: boolean) => unknown;
262
262
  totalTime?: (timeSeconds?: number, suppressEvents?: boolean) => unknown;
263
263
  totalDuration?: () => number;
264
+ shiftChildren?: (amount: number) => unknown;
264
265
  progress?: (value?: number, suppressEvents?: boolean) => unknown;
265
266
  time: () => number;
266
267
  duration: () => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.8.183",
3
+ "version": "0.8.184",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -43,8 +43,8 @@
43
43
  "htmlparser2": "^10.1.0",
44
44
  "postcss": "^8.5.8",
45
45
  "puppeteer-core": "^25.8.0",
46
- "@hyperframes/parsers": "0.8.183",
47
- "@hyperframes/core": "0.8.183"
46
+ "@hyperframes/parsers": "0.8.184",
47
+ "@hyperframes/core": "0.8.184"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",