@hyperframes/core 0.8.161 → 0.8.163

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.
@@ -59,9 +59,11 @@ export declare function isCanvasElement(value: unknown): value is HTMLCanvasElem
59
59
  export declare function isStyleElement(value: unknown): value is HTMLStyleElement;
60
60
  /** `<link>`, from any realm. Mirrors `instanceof HTMLLinkElement`. */
61
61
  export declare function isLinkElement(value: unknown): value is HTMLLinkElement;
62
+ /** HTML or SVG: TypeScript narrows an `Element` by `HTMLElement | SVGElement` to `HTMLElement` alone. */
63
+ export type StylableElement = Element & ElementCSSInlineStyle;
62
64
  /**
63
65
  * An element that carries a CSS `style` map: HTML **or** SVG. Position edits and
64
66
  * transform writes apply to both (authored SVG `<text>`/shapes honour the CSS
65
67
  * `translate` longhand exactly as HTML does).
66
68
  */
67
- export declare function isStylableElement(value: unknown): value is HTMLElement | SVGElement;
69
+ export declare function isStylableElement(value: unknown): value is StylableElement;
@@ -19,16 +19,10 @@
19
19
  * first parse still folds the edit (the fold guard then skips re-apply and
20
20
  * emits position_edit_fold_skipped instead of double-applying).
21
21
  */
22
+ import { type StylableElement } from "./domRealm.js";
22
23
  export declare const EDIT_BASE_X_ATTR = "data-hf-edit-base-x";
23
24
  export declare const EDIT_BASE_Y_ATTR = "data-hf-edit-base-y";
24
25
  export declare const EDIT_ORIGINAL_TRANSLATE_ATTR = "data-hf-edit-original-translate";
25
- /**
26
- * Elements a position edit can apply to: HTML elements AND SVG graphics (authored `<text>` labels,
27
- * shapes, groups). Both expose `.style` and honor the CSS `translate` longhand in modern Chrome, so
28
- * the same delta→translate compose logic works for either. (SVG was previously excluded by an
29
- * `instanceof HTMLElement`-only guard, which silently dropped every move on an SVG element.)
30
- */
31
- type StylableElement = HTMLElement | SVGElement;
32
26
  /** Compose the edit delta with the element's pre-edit translate value. */
33
27
  export declare const composeTranslate: (original: string, x: string, y: string) => string;
34
28
  /** The element's effective translate: inline if set, computed otherwise ("" = none). */
@@ -70,4 +64,3 @@ export declare function applyPositionEdits(doc: Document, opts?: {
70
64
  }): number;
71
65
  /** Reapply SDK position edits after every render seek, including late-bound seeks. */
72
66
  export declare function installPositionEditsSeekReapply(win: Window & typeof globalThis): void;
73
- export {};
@@ -1,6 +1,6 @@
1
1
  import type { RuntimeTimelineMessage, RuntimeTimelineLike } from "./types.js";
2
2
  import { createRuntimeStartTimeResolver } from "./startResolver.js";
3
- export declare function isRuntimeElementVisibleAt(rawNode: HTMLElement, options: {
3
+ export declare function isRuntimeElementVisibleAt(rawNode: Element, options: {
4
4
  currentTime: number;
5
5
  compositionDuration: number;
6
6
  canonicalFps: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/core",
3
- "version": "0.8.161",
3
+ "version": "0.8.163",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -377,9 +377,9 @@
377
377
  "linkedom": "^0.18.12",
378
378
  "postcss": "^8.5.8",
379
379
  "wawoff2": "^2.0.1",
380
- "@hyperframes/lint": "0.8.161",
381
- "@hyperframes/studio-server": "0.8.161",
382
- "@hyperframes/parsers": "0.8.161"
380
+ "@hyperframes/studio-server": "0.8.163",
381
+ "@hyperframes/lint": "0.8.163",
382
+ "@hyperframes/parsers": "0.8.163"
383
383
  },
384
384
  "devDependencies": {
385
385
  "@fontsource/archivo-black": "^5.2.8",