@glissade/core 0.11.0 → 0.12.0-pre.0

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,4 +1,7 @@
1
- import { H as Key, N as Timeline, S as isEditableNodeId, Tt as ValueTypeId, a as SidecarOrphan, lt as EaseSpec, r as SidecarDoc, w as targetNodeId } from "./sidecar.js";
1
+ import { J as EaseSpec, T as ValueTypeId, t as Key } from "./track.js";
2
+ import { a as isEditableNodeId, s as targetNodeId } from "./targetRef.js";
3
+ import { l as Timeline } from "./timeline.js";
4
+ import { a as SidecarOrphan, r as SidecarDoc } from "./sidecar.js";
2
5
 
3
6
  //#region src/timelinePatch.d.ts
4
7
 
@@ -1,4 +1,5 @@
1
- import { a as hashKeys, h as targetNodeId, l as normalizeEditedKeys, n as assignKeyIds, p as isEditableNodeId } from "./sidecar.js";
1
+ import { a as targetNodeId, r as isEditableNodeId } from "./targetRef.js";
2
+ import { a as hashKeys, l as normalizeEditedKeys, n as assignKeyIds } from "./sidecar.js";
2
3
  //#region src/timelinePatch.ts
3
4
  /** Unambiguous composite map key (no control-char separators). */
4
5
  function refKey(timelineId, name) {
@@ -0,0 +1,33 @@
1
+ //#region src/targetRef.d.ts
2
+ /**
3
+ * Target references (DESIGN.md §2.6): the builder accepts either a canonical
4
+ * target string ('circle/opacity') or a property signal that carries its own
5
+ * path — attached by the scene package at node construction via TARGET_PATH.
6
+ */
7
+ declare const TARGET_PATH: unique symbol;
8
+ interface TargetCarrier {
9
+ [TARGET_PATH]?: string;
10
+ }
11
+ /**
12
+ * A target string, or any object carrying TARGET_PATH (property signals of
13
+ * id-bearing nodes). Typed as `object` because signals are callables and the
14
+ * symbol prop is attached dynamically; resolution is checked at build time.
15
+ */
16
+ type TweenTarget = string | object;
17
+ declare class UnresolvableTargetError extends Error {
18
+ constructor(message?: string);
19
+ }
20
+ /** The node-id portion of a canonical `nodeId/prop.path` target. */
21
+ declare function targetNodeId(target: string): string;
22
+ /**
23
+ * The single editable-host rule (§6.4 sub-decision, the 0.9 locked predicate):
24
+ * only a node with an EXPLICIT, non-structural id can host an editable or
25
+ * editor-created track. Structural fallback ids (`~Type.ordinal`, §6.5) are
26
+ * inspection-only and reorder-fragile, so they are never editable nor valid
27
+ * track targets. Lives here (the addressing module) so the builder guard, the
28
+ * scene, and the studio host all share ONE definition.
29
+ */
30
+ declare function isEditableNodeId(id: string | undefined | null): id is string;
31
+ declare function resolveTweenTarget(target: TweenTarget): string;
32
+ //#endregion
33
+ export { isEditableNodeId as a, UnresolvableTargetError as i, TargetCarrier as n, resolveTweenTarget as o, TweenTarget as r, targetNodeId as s, TARGET_PATH as t };