@getartisanflow/alpineflow 0.2.4-alpha → 0.2.5-alpha

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.
Files changed (139) hide show
  1. package/dist/alpineflow-collab.esm.js.map +1 -1
  2. package/dist/alpineflow-collab.js.map +1 -1
  3. package/dist/alpineflow-workflow.esm.js.map +1 -1
  4. package/dist/alpineflow.bundle.esm.js +2006 -1983
  5. package/dist/alpineflow.bundle.esm.js.map +1 -1
  6. package/dist/alpineflow.esm.js +2 -2
  7. package/dist/alpineflow.js +1 -1
  8. package/dist/{index-CvQXC8Md.js → index-iNX5XDHl.js} +1489 -1466
  9. package/dist/index-iNX5XDHl.js.map +1 -0
  10. package/dist/types/lib/collab.d.ts +2 -2
  11. package/dist/types/lib/core.d.ts +2 -2
  12. package/dist/types/lib/dagre.d.ts +1 -1
  13. package/dist/types/lib/elk.d.ts +1 -1
  14. package/dist/types/lib/force.d.ts +1 -1
  15. package/dist/types/lib/hierarchy.d.ts +1 -1
  16. package/dist/types/lib/schema.d.ts +2 -2
  17. package/dist/types/lib/whiteboard.d.ts +1 -1
  18. package/dist/types/lib/workflow.d.ts +2 -2
  19. package/dist/types/src/animate/animator.d.ts +6 -6
  20. package/dist/types/src/animate/clamp-dimensions.d.ts +1 -1
  21. package/dist/types/src/animate/flow-group.d.ts +1 -1
  22. package/dist/types/src/animate/handle-registry.d.ts +1 -1
  23. package/dist/types/src/animate/index.d.ts +19 -19
  24. package/dist/types/src/animate/interpolators.d.ts +1 -1
  25. package/dist/types/src/animate/motion/decay.d.ts +1 -1
  26. package/dist/types/src/animate/motion/index.d.ts +7 -7
  27. package/dist/types/src/animate/motion/inertia.d.ts +1 -1
  28. package/dist/types/src/animate/motion/keyframes.d.ts +1 -1
  29. package/dist/types/src/animate/motion/presets.d.ts +1 -1
  30. package/dist/types/src/animate/motion/spring.d.ts +1 -1
  31. package/dist/types/src/animate/particle-renderers.d.ts +1 -1
  32. package/dist/types/src/animate/recording/event-cursor.d.ts +1 -1
  33. package/dist/types/src/animate/recording/index.d.ts +7 -7
  34. package/dist/types/src/animate/recording/recorder.d.ts +1 -1
  35. package/dist/types/src/animate/recording/recording.d.ts +1 -1
  36. package/dist/types/src/animate/recording/replay.d.ts +2 -2
  37. package/dist/types/src/animate/recording/thumbnail.d.ts +1 -1
  38. package/dist/types/src/animate/recording/types.d.ts +3 -3
  39. package/dist/types/src/animate/recording/virtual-engine.d.ts +1 -1
  40. package/dist/types/src/animate/timeline.d.ts +5 -5
  41. package/dist/types/src/animate/transaction.d.ts +1 -1
  42. package/dist/types/src/collab/awareness.d.ts +1 -1
  43. package/dist/types/src/collab/bridge.d.ts +2 -2
  44. package/dist/types/src/collab/directives/flow-cursors.d.ts +1 -1
  45. package/dist/types/src/collab/index.d.ts +9 -9
  46. package/dist/types/src/collab/providers/in-memory.d.ts +1 -1
  47. package/dist/types/src/collab/providers/reverb.d.ts +1 -1
  48. package/dist/types/src/collab/providers/websocket.d.ts +1 -1
  49. package/dist/types/src/collab/store.d.ts +2 -2
  50. package/dist/types/src/core/__fixtures__/nodes.d.ts +1 -1
  51. package/dist/types/src/core/announcer.d.ts +1 -1
  52. package/dist/types/src/core/child-layout.d.ts +1 -1
  53. package/dist/types/src/core/child-validation.d.ts +1 -1
  54. package/dist/types/src/core/clipboard.d.ts +1 -1
  55. package/dist/types/src/core/collapse.d.ts +1 -1
  56. package/dist/types/src/core/compute.d.ts +1 -1
  57. package/dist/types/src/core/connections.d.ts +1 -1
  58. package/dist/types/src/core/controls-panel.d.ts +1 -1
  59. package/dist/types/src/core/crossing-reduction.d.ts +2 -2
  60. package/dist/types/src/core/drag.d.ts +1 -1
  61. package/dist/types/src/core/edge-paths/avoidant.d.ts +3 -3
  62. package/dist/types/src/core/edge-paths/bezier.d.ts +2 -2
  63. package/dist/types/src/core/edge-paths/editable.d.ts +2 -2
  64. package/dist/types/src/core/edge-paths/index.d.ts +7 -7
  65. package/dist/types/src/core/edge-paths/orthogonal.d.ts +2 -2
  66. package/dist/types/src/core/edge-paths/smoothstep.d.ts +2 -2
  67. package/dist/types/src/core/edge-paths/straight.d.ts +1 -1
  68. package/dist/types/src/core/edge-paths/utils.d.ts +1 -1
  69. package/dist/types/src/core/edge-utils.d.ts +3 -3
  70. package/dist/types/src/core/endpoint-spread.d.ts +1 -1
  71. package/dist/types/src/core/export.d.ts +1 -1
  72. package/dist/types/src/core/floating-edge.d.ts +1 -1
  73. package/dist/types/src/core/geometry.d.ts +1 -1
  74. package/dist/types/src/core/gradients.d.ts +1 -1
  75. package/dist/types/src/core/graph.d.ts +1 -1
  76. package/dist/types/src/core/helper-lines.d.ts +1 -1
  77. package/dist/types/src/core/history.d.ts +1 -1
  78. package/dist/types/src/core/index.d.ts +17 -17
  79. package/dist/types/src/core/intersection.d.ts +1 -1
  80. package/dist/types/src/core/lasso-hit-test.d.ts +1 -1
  81. package/dist/types/src/core/lasso.d.ts +2 -2
  82. package/dist/types/src/core/layout/dagre.d.ts +1 -1
  83. package/dist/types/src/core/layout/elk.d.ts +1 -1
  84. package/dist/types/src/core/layout/force.d.ts +1 -1
  85. package/dist/types/src/core/layout/hierarchy.d.ts +1 -1
  86. package/dist/types/src/core/minimap.d.ts +1 -1
  87. package/dist/types/src/core/pan-zoom.d.ts +10 -4
  88. package/dist/types/src/core/proximity-connect.d.ts +1 -1
  89. package/dist/types/src/core/render-plan.d.ts +1 -1
  90. package/dist/types/src/core/resize.d.ts +1 -1
  91. package/dist/types/src/core/schema-geometry.d.ts +1 -1
  92. package/dist/types/src/core/selection-box.d.ts +1 -1
  93. package/dist/types/src/core/shapes.d.ts +1 -1
  94. package/dist/types/src/core/sub-flow.d.ts +1 -1
  95. package/dist/types/src/core/types.d.ts +11 -11
  96. package/dist/types/src/index.d.ts +31 -31
  97. package/dist/types/src/plugin/connection-utils.d.ts +3 -3
  98. package/dist/types/src/plugin/data/__real-canvas-harness.d.ts +1 -1
  99. package/dist/types/src/plugin/data/__test-utils.d.ts +1 -1
  100. package/dist/types/src/plugin/data/canvas-animation.d.ts +13 -13
  101. package/dist/types/src/plugin/data/canvas-batch.d.ts +1 -1
  102. package/dist/types/src/plugin/data/canvas-collapse.d.ts +1 -1
  103. package/dist/types/src/plugin/data/canvas-compute.d.ts +2 -2
  104. package/dist/types/src/plugin/data/canvas-condense.d.ts +1 -1
  105. package/dist/types/src/plugin/data/canvas-config.d.ts +1 -1
  106. package/dist/types/src/plugin/data/canvas-context.d.ts +21 -21
  107. package/dist/types/src/plugin/data/canvas-dom.d.ts +2 -2
  108. package/dist/types/src/plugin/data/canvas-edges.d.ts +2 -2
  109. package/dist/types/src/plugin/data/canvas-history.d.ts +2 -2
  110. package/dist/types/src/plugin/data/canvas-layout.d.ts +4 -4
  111. package/dist/types/src/plugin/data/canvas-nodes.d.ts +2 -2
  112. package/dist/types/src/plugin/data/canvas-particles.d.ts +2 -2
  113. package/dist/types/src/plugin/data/canvas-rows.d.ts +2 -2
  114. package/dist/types/src/plugin/data/canvas-selection.d.ts +1 -1
  115. package/dist/types/src/plugin/data/canvas-validation.d.ts +2 -2
  116. package/dist/types/src/plugin/data/canvas-viewport.d.ts +4 -4
  117. package/dist/types/src/plugin/directives/flow-edge.d.ts +1 -1
  118. package/dist/types/src/plugin/directives/flow-handle-validate.d.ts +1 -1
  119. package/dist/types/src/plugin/directives/flow-handle.d.ts +2 -2
  120. package/dist/types/src/plugin/drag-validation.d.ts +1 -1
  121. package/dist/types/src/plugin/handle-index.d.ts +1 -1
  122. package/dist/types/src/schema/canvas-augmentation.test-d.d.ts +1 -1
  123. package/dist/types/src/schema/diff.d.ts +1 -1
  124. package/dist/types/src/schema/dot.d.ts +1 -1
  125. package/dist/types/src/schema/field-ops.d.ts +1 -1
  126. package/dist/types/src/schema/history.d.ts +1 -1
  127. package/dist/types/src/schema/index.d.ts +24 -24
  128. package/dist/types/src/schema/layout.d.ts +1 -1
  129. package/dist/types/src/schema/references.d.ts +1 -1
  130. package/dist/types/src/schema/serialization.d.ts +1 -1
  131. package/dist/types/src/schema/types.d.ts +1 -1
  132. package/dist/types/src/schema/validate.d.ts +1 -1
  133. package/dist/types/src/workflow/condition.d.ts +1 -1
  134. package/dist/types/src/workflow/index.d.ts +3 -3
  135. package/dist/types/src/workflow/replay.d.ts +1 -1
  136. package/dist/types/src/workflow/run.d.ts +1 -1
  137. package/dist/types/src/workflow/types.d.ts +3 -3
  138. package/package.json +3 -2
  139. package/dist/index-CvQXC8Md.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from './types';
1
+ import type { FlowNode, FlowEdge } from './types.js';
2
2
  /**
3
3
  * Get all edges connected to a node (incoming and outgoing).
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { FlowNode } from './types';
1
+ import type { FlowNode } from './types.js';
2
2
  export interface NodeBox {
3
3
  id: string;
4
4
  x: number;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from './types';
1
+ import type { FlowNode, FlowEdge } from './types.js';
2
2
  export interface HistorySnapshot {
3
3
  nodes: FlowNode[];
4
4
  edges: FlowEdge[];
@@ -1,17 +1,17 @@
1
- export type { XYPosition, Viewport, Rect, Dimensions, CoordinateExtent, FlowNode, FlowEdge, EdgeType, HandleType, HandlePosition, HandleConfig, Connection, PendingConnection, FlowEvents, FlowCanvasConfig, FlowInstance, SchemaNodeDecorator, SchemaRowDecorator, SchemaNodeDecoratorContext, SchemaRowDecoratorContext, SchemaRowSlots, SchemaClassValue, SchemaRowClassResolver, SchemaNodeClassResolver, SchemaRowClassContext, SchemaNodeClassContext, SchemaRowClassMap, SchemaNodeClassMap, } from './types';
2
- export { isNode, isEdge } from './types';
3
- export { getBezierPath, getSimpleBezierPath, getSmoothStepPath, getStepPath, getStraightPath, getEdgeCenter, type EdgePathResult, } from './edge-paths';
4
- export { createPanZoom, type PanZoomOptions, type PanZoomInstance } from './pan-zoom';
5
- export { createDrag, type DragOptions, type DragInstance } from './drag';
6
- export { isPointInHandle, findClosestHandle, isValidConnection, type HandleBounds } from './connections';
7
- export { getConnectedEdges, getConnectedEdgesForNodes, getOutgoers, getIncomers, areNodesConnected, wouldCreateCycle, } from './graph';
8
- export { screenToFlowPosition, flowToScreenPosition, getNodesBounds, getViewportForBounds, } from './geometry';
9
- export { computeResize, DEFAULT_RESIZE_CONSTRAINTS, type ResizeDirection, type ResizeConstraints, type ResizeResult, } from './resize';
10
- export { getNodeIntersection, getEdgePosition, getFloatingEdgeParams, getSimpleFloatingPosition, } from './floating-edge';
11
- export { buildNodeMap, getAbsolutePosition, toAbsoluteNode, toAbsoluteNodes, getDescendantIds, sortNodesTopological, computeZIndex, clampToExtent, clampToParent, expandParentToFitChild, } from './sub-flow';
12
- export { FlowHistory, type HistorySnapshot } from './history';
13
- export { getNodeRect, rectsIntersect, getIntersectingNodes, isNodeIntersecting, clampToAvoidOverlap, } from './intersection';
14
- export { createColorMode } from './color-mode';
15
- export type { ColorMode, ColorModeHandle } from './color-mode';
16
- export { debug, setDebugEnabled, isDebugEnabled } from './debug';
17
- export { normalizeMarker, getMarkerId, getMarkerSvg, registerMarker, type MarkerType, type MarkerConfig, type CustomMarkerRenderer, } from './markers';
1
+ export type { XYPosition, Viewport, Rect, Dimensions, CoordinateExtent, FlowNode, FlowEdge, EdgeType, HandleType, HandlePosition, HandleConfig, Connection, PendingConnection, FlowEvents, FlowCanvasConfig, FlowInstance, SchemaNodeDecorator, SchemaRowDecorator, SchemaNodeDecoratorContext, SchemaRowDecoratorContext, SchemaRowSlots, SchemaClassValue, SchemaRowClassResolver, SchemaNodeClassResolver, SchemaRowClassContext, SchemaNodeClassContext, SchemaRowClassMap, SchemaNodeClassMap, } from './types.js';
2
+ export { isNode, isEdge } from './types.js';
3
+ export { getBezierPath, getSimpleBezierPath, getSmoothStepPath, getStepPath, getStraightPath, getEdgeCenter, type EdgePathResult, } from './edge-paths/index.js';
4
+ export { createPanZoom, type PanZoomOptions, type PanZoomInstance } from './pan-zoom.js';
5
+ export { createDrag, type DragOptions, type DragInstance } from './drag.js';
6
+ export { isPointInHandle, findClosestHandle, isValidConnection, type HandleBounds } from './connections.js';
7
+ export { getConnectedEdges, getConnectedEdgesForNodes, getOutgoers, getIncomers, areNodesConnected, wouldCreateCycle, } from './graph.js';
8
+ export { screenToFlowPosition, flowToScreenPosition, getNodesBounds, getViewportForBounds, } from './geometry.js';
9
+ export { computeResize, DEFAULT_RESIZE_CONSTRAINTS, type ResizeDirection, type ResizeConstraints, type ResizeResult, } from './resize.js';
10
+ export { getNodeIntersection, getEdgePosition, getFloatingEdgeParams, getSimpleFloatingPosition, } from './floating-edge.js';
11
+ export { buildNodeMap, getAbsolutePosition, toAbsoluteNode, toAbsoluteNodes, getDescendantIds, sortNodesTopological, computeZIndex, clampToExtent, clampToParent, expandParentToFitChild, } from './sub-flow.js';
12
+ export { FlowHistory, type HistorySnapshot } from './history.js';
13
+ export { getNodeRect, rectsIntersect, getIntersectingNodes, isNodeIntersecting, clampToAvoidOverlap, } from './intersection.js';
14
+ export { createColorMode } from './color-mode.js';
15
+ export type { ColorMode, ColorModeHandle } from './color-mode.js';
16
+ export { debug, setDebugEnabled, isDebugEnabled } from './debug.js';
17
+ export { normalizeMarker, getMarkerId, getMarkerSvg, registerMarker, type MarkerType, type MarkerConfig, type CustomMarkerRenderer, } from './markers.js';
@@ -1,4 +1,4 @@
1
- import type { FlowNode, Rect } from './types';
1
+ import type { FlowNode, Rect } from './types.js';
2
2
  /** Get the bounding rect of a node (uses measured or default dimensions). */
3
3
  export declare function getNodeRect(node: FlowNode, globalOrigin?: [number, number]): Rect;
4
4
  /** AABB overlap test between two rectangles. */
@@ -1,4 +1,4 @@
1
- import type { FlowNode, Rect } from './types';
1
+ import type { FlowNode, Rect } from './types.js';
2
2
  export interface Point {
3
3
  x: number;
4
4
  y: number;
@@ -1,5 +1,5 @@
1
- import type { Viewport } from './types';
2
- import type { Point } from './lasso-hit-test';
1
+ import type { Viewport } from './types.js';
2
+ import type { Point } from './lasso-hit-test.js';
3
3
  export interface LassoInstance {
4
4
  start(containerX: number, containerY: number, mode?: 'partial' | 'full'): void;
5
5
  update(containerX: number, containerY: number): void;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from '../types';
1
+ import type { FlowNode, FlowEdge } from '../types.js';
2
2
  export type DagreDirection = 'TB' | 'LR' | 'BT' | 'RL';
3
3
  export interface DagreLayoutOptions {
4
4
  direction?: DagreDirection;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from '../types';
1
+ import type { FlowNode, FlowEdge } from '../types.js';
2
2
  export type ElkAlgorithm = 'layered' | 'force' | 'mrtree' | 'radial' | 'stress' | 'rectpacking';
3
3
  export type ElkDirection = 'DOWN' | 'RIGHT' | 'UP' | 'LEFT';
4
4
  export interface ElkLayoutOptions {
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from '../types';
1
+ import type { FlowNode, FlowEdge } from '../types.js';
2
2
  export interface ForceLayoutOptions {
3
3
  strength?: number;
4
4
  distance?: number;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from '../types';
1
+ import type { FlowNode, FlowEdge } from '../types.js';
2
2
  export type HierarchyLayoutType = 'tree' | 'cluster';
3
3
  export type HierarchyDirection = 'TB' | 'LR';
4
4
  export interface HierarchyLayoutOptions {
@@ -1,4 +1,4 @@
1
- import type { FlowNode, Viewport, FlowCanvasConfig } from './types';
1
+ import type { FlowNode, Viewport, FlowCanvasConfig } from './types.js';
2
2
  export declare const MINIMAP_DEFAULT_WIDTH = 200;
3
3
  export declare const MINIMAP_DEFAULT_HEIGHT = 150;
4
4
  export interface MiniMapState {
@@ -1,6 +1,5 @@
1
- import { type ZoomTransform } from 'd3-zoom';
2
1
  import 'd3-transition';
3
- import type { Viewport } from './types';
2
+ import type { Viewport } from './types.js';
4
3
  export interface PanZoomOptions {
5
4
  /** Called whenever the viewport transform changes */
6
5
  onTransformChange: (viewport: Viewport) => void;
@@ -81,8 +80,15 @@ export interface PanZoomInstance {
81
80
  setViewport(viewport: Partial<Viewport>, options?: {
82
81
  duration?: number;
83
82
  }): void;
84
- /** Get current d3 transform */
85
- getTransform(): ZoomTransform;
83
+ /**
84
+ * Get the current d3 transform (translate `x`/`y`, scale `k`). Typed
85
+ * structurally so the published declarations don't depend on d3-zoom's types.
86
+ */
87
+ getTransform(): {
88
+ x: number;
89
+ y: number;
90
+ k: number;
91
+ };
86
92
  /** Update options at runtime (e.g. toggle pannable/zoomable) */
87
93
  update(options: Partial<PanZoomOptions>): void;
88
94
  /** Clean up d3 listeners */
@@ -1,4 +1,4 @@
1
- import type { XYPosition } from './types';
1
+ import type { XYPosition } from './types.js';
2
2
  interface NodeCenter {
3
3
  id: string;
4
4
  center: XYPosition;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge, Rect, Viewport } from './types';
1
+ import type { FlowNode, FlowEdge, Rect, Viewport } from './types.js';
2
2
  /** A single node in the render plan output. */
3
3
  export interface RenderPlanNode {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import type { XYPosition, Dimensions } from './types';
1
+ import type { XYPosition, Dimensions } from './types.js';
2
2
  /** Which edge or corner is being dragged */
3
3
  export type ResizeDirection = 'top-left' | 'top' | 'top-right' | 'left' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
4
4
  /** Min/max size constraints for resizable nodes */
@@ -1,4 +1,4 @@
1
- import type { XYPosition, SchemaMetrics } from './types';
1
+ import type { XYPosition, SchemaMetrics } from './types.js';
2
2
  /** Resolved center of a schema field row's handle, in flow space. */
3
3
  export interface SchemaHandlePoint {
4
4
  x: number;
@@ -1,4 +1,4 @@
1
- import type { Rect, Viewport } from './types';
1
+ import type { Rect, Viewport } from './types.js';
2
2
  export interface SelectionBoxInstance {
3
3
  /** Start a new selection at a position relative to the container */
4
4
  start(containerX: number, containerY: number, mode?: 'partial' | 'full'): void;
@@ -1,4 +1,4 @@
1
- import type { HandlePosition, ShapeDefinition } from './types';
1
+ import type { HandlePosition, ShapeDefinition } from './types.js';
2
2
  /** Rectangular fallback — same as the default getHandleCoords logic. */
3
3
  declare function rectPerimeter(w: number, h: number, position: HandlePosition): {
4
4
  x: number;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, XYPosition, Dimensions, CoordinateExtent } from './types';
1
+ import type { FlowNode, XYPosition, Dimensions, CoordinateExtent } from './types.js';
2
2
  /**
3
3
  * Build a Map<string, FlowNode> for O(1) lookups by node ID.
4
4
  */
@@ -1,12 +1,12 @@
1
- import type { FlowTranslations, TranslationKey, Translator } from './translations';
2
- import type { EasingName } from '../animate/easing';
3
- import type { PathFunction } from '../animate/paths';
4
- import type { CollabConfig, CollabInstance } from '../collab/types';
5
- import type { FlowGroup } from '../animate/flow-group';
6
- import type { Transaction } from '../animate/transaction';
7
- import type { MotionConfig } from '../animate/motion/types';
8
- import type { Recording, RecordOptions, ReplayOptions, ReplayHandle } from '../animate/recording';
9
- import type { CanvasContext } from '../plugin/data/canvas-context';
1
+ import type { FlowTranslations, TranslationKey, Translator } from './translations.js';
2
+ import type { EasingName } from '../animate/easing.js';
3
+ import type { PathFunction } from '../animate/paths.js';
4
+ import type { CollabConfig, CollabInstance } from '../collab/types.js';
5
+ import type { FlowGroup } from '../animate/flow-group.js';
6
+ import type { Transaction } from '../animate/transaction.js';
7
+ import type { MotionConfig } from '../animate/motion/types.js';
8
+ import type { Recording, RecordOptions, ReplayOptions, ReplayHandle } from '../animate/recording/index.js';
9
+ import type { CanvasContext } from '../plugin/data/canvas-context.js';
10
10
  /** 2D coordinate */
11
11
  export interface XYPosition {
12
12
  x: number;
@@ -208,7 +208,7 @@ export interface ChildValidationFailDetail {
208
208
  export type EdgeType = 'bezier' | 'smoothstep' | 'straight' | 'floating' | 'orthogonal' | 'avoidant' | 'editable';
209
209
  /** Edge animation mode */
210
210
  export type EdgeAnimationMode = 'none' | 'dash' | 'pulse' | 'dot';
211
- import type { MarkerType, MarkerConfig } from './markers';
211
+ import type { MarkerType, MarkerConfig } from './markers.js';
212
212
  /** Two-color linear gradient for edge strokes. */
213
213
  export interface EdgeGradient {
214
214
  from: string;
@@ -1303,7 +1303,7 @@ export interface FlowCanvasConfig {
1303
1303
  * 'auto' = re-propagate on node/edge changes (debounced). */
1304
1304
  computeMode?: 'auto' | 'manual';
1305
1305
  /** Customize keyboard shortcuts. Omit a key for default, set to null to disable. */
1306
- keyboardShortcuts?: import('./keyboard-shortcuts').KeyboardShortcuts;
1306
+ keyboardShortcuts?: import('./keyboard-shortcuts.js').KeyboardShortcuts;
1307
1307
  /** Selection containment mode. 'partial' selects on any overlap (default), 'full' requires entire node inside box. */
1308
1308
  selectionMode?: 'partial' | 'full';
1309
1309
  /** Start selection box on plain left-click drag (no modifier needed). Pair with panOnDrag: [2] for whiteboard UX. Default: false */
@@ -5,40 +5,40 @@ import type { Alpine } from 'alpinejs';
5
5
  * @example
6
6
  * ```ts
7
7
  * import Alpine from 'alpinejs';
8
- * import AlpineFlow from 'alpinejs-flow';
8
+ * import AlpineFlow from '@getartisanflow/alpineflow';
9
9
  *
10
10
  * Alpine.plugin(AlpineFlow);
11
11
  * Alpine.start();
12
12
  * ```
13
13
  */
14
14
  export default function AlpineFlow(Alpine: Alpine): void;
15
- export type { FlowNode, FlowEdge, Viewport, XYPosition, CoordinateExtent, FlowCanvasConfig, FlowInstance, Connection, ConnectionLineProps, HandlePosition, HandleType, EdgeType, SchemaNodeDecorator, SchemaRowDecorator, SchemaNodeDecoratorContext, SchemaRowDecoratorContext, SchemaRowSlots, SchemaClassValue, SchemaRowClassResolver, SchemaNodeClassResolver, SchemaRowClassContext, SchemaNodeClassContext, SchemaRowClassMap, SchemaNodeClassMap, } from './core/types';
16
- export type { MarkerType, MarkerConfig, CustomMarkerRenderer } from './core/markers';
17
- export { registerMarker } from './core/markers';
18
- export { getBezierPath, getSimpleBezierPath, getSmoothStepPath, getStepPath, getStraightPath, } from './core/edge-paths';
19
- export { getNodesBounds, getViewportForBounds, getNodesInRect, getNodesFullyInRect } from './core/geometry';
20
- export { getConnectedEdges, getOutgoers, getIncomers, areNodesConnected } from './core/graph';
21
- export { ComputeEngine, type ComputeDefinition } from './core/compute';
22
- export { getNodeIntersection, getEdgePosition, getFloatingEdgeParams, getSimpleFloatingPosition, } from './core/floating-edge';
23
- export type { DagreDirection, DagreLayoutOptions } from './core/layout/dagre';
24
- export type { ForceLayoutOptions } from './core/layout/force';
25
- export type { ElkAlgorithm, ElkDirection, ElkLayoutOptions } from './core/layout/elk';
26
- export type { HierarchyLayoutType, HierarchyDirection, HierarchyLayoutOptions } from './core/layout/hierarchy';
27
- export { buildNodeMap, getAbsolutePosition, toAbsoluteNode, toAbsoluteNodes, getDescendantIds, sortNodesTopological, computeZIndex, clampToExtent, clampToParent, expandParentToFitChild, } from './core/sub-flow';
28
- export type { PathFunction, OrbitConfig, WaveConfig, AlongConfig, PendulumConfig, DriftConfig } from './animate/paths';
29
- export { orbit, wave, along, pendulum, drift, stagger } from './animate/paths';
30
- export type { FlowTranslations, TranslationKey, Translator } from './core/translations';
31
- export { FlowHistory, type HistorySnapshot } from './core/history';
32
- export type { ResizeDirection, ResizeConstraints } from './core/resize';
33
- export type { ControlsPanelInstance } from './core/controls-panel';
34
- export type { SelectionBoxInstance } from './core/selection-box';
35
- export type { LassoInstance } from './core/lasso';
36
- export { pointInPolygon, polygonIntersectsAABB, getNodesInPolygon, getNodesFullyInPolygon } from './core/lasso-hit-test';
37
- export type { AutoPanInstance } from './core/auto-pan';
38
- export { getAutoPanDelta } from './core/auto-pan';
39
- export { computeRenderPlan, type RenderPlan, type RenderPlanConfig, type RenderPlanNode, type RenderPlanEdge } from './core/render-plan';
40
- export type { KeyboardShortcuts, KeyCode } from './core/keyboard-shortcuts';
41
- export { SHORTCUT_DEFAULTS, resolveShortcuts, matchesKey, matchesModifier } from './core/keyboard-shortcuts';
42
- export type { ChildValidation, ChildValidationResult, ChildValidationFailDetail } from './core/types';
43
- export { resolveChildValidation, validateChildAdd, validateChildRemove, computeValidationErrors } from './core/child-validation';
44
- export { isDraggable, isDeletable, isConnectable, isSelectable, isResizable } from './core/node-flags';
15
+ export type { FlowNode, FlowEdge, Viewport, XYPosition, CoordinateExtent, FlowCanvasConfig, FlowInstance, Connection, ConnectionLineProps, HandlePosition, HandleType, EdgeType, SchemaNodeDecorator, SchemaRowDecorator, SchemaNodeDecoratorContext, SchemaRowDecoratorContext, SchemaRowSlots, SchemaClassValue, SchemaRowClassResolver, SchemaNodeClassResolver, SchemaRowClassContext, SchemaNodeClassContext, SchemaRowClassMap, SchemaNodeClassMap, } from './core/types.js';
16
+ export type { MarkerType, MarkerConfig, CustomMarkerRenderer } from './core/markers.js';
17
+ export { registerMarker } from './core/markers.js';
18
+ export { getBezierPath, getSimpleBezierPath, getSmoothStepPath, getStepPath, getStraightPath, } from './core/edge-paths/index.js';
19
+ export { getNodesBounds, getViewportForBounds, getNodesInRect, getNodesFullyInRect } from './core/geometry.js';
20
+ export { getConnectedEdges, getOutgoers, getIncomers, areNodesConnected } from './core/graph.js';
21
+ export { ComputeEngine, type ComputeDefinition } from './core/compute.js';
22
+ export { getNodeIntersection, getEdgePosition, getFloatingEdgeParams, getSimpleFloatingPosition, } from './core/floating-edge.js';
23
+ export type { DagreDirection, DagreLayoutOptions } from './core/layout/dagre.js';
24
+ export type { ForceLayoutOptions } from './core/layout/force.js';
25
+ export type { ElkAlgorithm, ElkDirection, ElkLayoutOptions } from './core/layout/elk.js';
26
+ export type { HierarchyLayoutType, HierarchyDirection, HierarchyLayoutOptions } from './core/layout/hierarchy.js';
27
+ export { buildNodeMap, getAbsolutePosition, toAbsoluteNode, toAbsoluteNodes, getDescendantIds, sortNodesTopological, computeZIndex, clampToExtent, clampToParent, expandParentToFitChild, } from './core/sub-flow.js';
28
+ export type { PathFunction, OrbitConfig, WaveConfig, AlongConfig, PendulumConfig, DriftConfig } from './animate/paths.js';
29
+ export { orbit, wave, along, pendulum, drift, stagger } from './animate/paths.js';
30
+ export type { FlowTranslations, TranslationKey, Translator } from './core/translations.js';
31
+ export { FlowHistory, type HistorySnapshot } from './core/history.js';
32
+ export type { ResizeDirection, ResizeConstraints } from './core/resize.js';
33
+ export type { ControlsPanelInstance } from './core/controls-panel.js';
34
+ export type { SelectionBoxInstance } from './core/selection-box.js';
35
+ export type { LassoInstance } from './core/lasso.js';
36
+ export { pointInPolygon, polygonIntersectsAABB, getNodesInPolygon, getNodesFullyInPolygon } from './core/lasso-hit-test.js';
37
+ export type { AutoPanInstance } from './core/auto-pan.js';
38
+ export { getAutoPanDelta } from './core/auto-pan.js';
39
+ export { computeRenderPlan, type RenderPlan, type RenderPlanConfig, type RenderPlanNode, type RenderPlanEdge } from './core/render-plan.js';
40
+ export type { KeyboardShortcuts, KeyCode } from './core/keyboard-shortcuts.js';
41
+ export { SHORTCUT_DEFAULTS, resolveShortcuts, matchesKey, matchesModifier } from './core/keyboard-shortcuts.js';
42
+ export type { ChildValidation, ChildValidationResult, ChildValidationFailDetail } from './core/types.js';
43
+ export { resolveChildValidation, validateChildAdd, validateChildRemove, computeValidationErrors } from './core/child-validation.js';
44
+ export { isDraggable, isDeletable, isConnectable, isSelectable, isResizable } from './core/node-flags.js';
@@ -1,6 +1,6 @@
1
- import type { XYPosition, ConnectionLineProps, FlowCanvasConfig } from '../core/types';
2
- import type { HandleIndex } from './handle-index';
3
- import { type AutoPanInstance } from '../core/auto-pan';
1
+ import type { XYPosition, ConnectionLineProps, FlowCanvasConfig } from '../core/types.js';
2
+ import type { HandleIndex } from './handle-index.js';
3
+ import { type AutoPanInstance } from '../core/auto-pan.js';
4
4
  /**
5
5
  * Updatable connection line instance returned by `createConnectionLine()`.
6
6
  * Supports preset path types (straight, bezier, smoothstep, step) and a
@@ -1,3 +1,3 @@
1
- import type { FlowCanvasConfig } from '../../core/types';
1
+ import type { FlowCanvasConfig } from '../../core/types.js';
2
2
  /** Construct a real flowCanvas() data object for unit tests (no Alpine mount). */
3
3
  export declare function realCanvas(config?: FlowCanvasConfig): any;
@@ -1,4 +1,4 @@
1
- import type { CanvasContext } from './canvas-context';
1
+ import type { CanvasContext } from './canvas-context.js';
2
2
  /**
3
3
  * Create a mock CanvasContext with sensible defaults for unit tests.
4
4
  *
@@ -1,11 +1,11 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { XYPosition, AnimateTargets, AnimateOptions, FlowAnimationHandle, FollowOptions, ParticleHandle, StopOptions } from '../../core/types';
3
- import { FlowTimeline } from '../../animate/timeline';
4
- import { FlowGroup } from '../../animate/flow-group';
5
- import type { Transaction } from '../../animate/transaction';
6
- import type { ParticleRenderer } from '../../core/types';
7
- import { ReplayHandle, type RecordOptions, type ReplayOptions } from '../../animate/recording';
8
- import type { Recording } from '../../animate/recording';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { XYPosition, AnimateTargets, AnimateOptions, FlowAnimationHandle, FollowOptions, ParticleHandle, StopOptions } from '../../core/types.js';
3
+ import { FlowTimeline } from '../../animate/timeline.js';
4
+ import { FlowGroup } from '../../animate/flow-group.js';
5
+ import type { Transaction } from '../../animate/transaction.js';
6
+ import type { ParticleRenderer } from '../../core/types.js';
7
+ import { ReplayHandle, type RecordOptions, type ReplayOptions } from '../../animate/recording/index.js';
8
+ import type { Recording } from '../../animate/recording/index.js';
9
9
  export declare function createAnimationMixin(ctx: CanvasContext): {
10
10
  /**
11
11
  * Synchronize the `_animationLocked` flag from active timelines and
@@ -126,10 +126,10 @@ export declare function createAnimationMixin(ctx: CanvasContext): {
126
126
  */
127
127
  registerParticleRenderer(name: string, renderer: ParticleRenderer): void;
128
128
  _tickParticles: (elapsed: number) => boolean;
129
- sendParticle: (edgeId: string, options?: import("../../core/types").ParticleOptions) => ParticleHandle | undefined;
130
- sendParticleAlongPath: (svgPath: string, options?: import("../../core/types").ParticleOptions) => ParticleHandle | undefined;
131
- sendParticleBetween: (sourceNodeId: string, targetNodeId: string, options?: import("../../core/types").ParticleOptions) => ParticleHandle | undefined;
132
- sendParticleBurst: (edgeId: string, options: import("../../core/types").BurstOptions) => import("../../core/types").ParticleBurstHandle;
133
- sendConverging: (sourceEdgeIds: string[], options: import("../../core/types").ConvergingOptions) => import("../../core/types").ConvergingHandle;
129
+ sendParticle: (edgeId: string, options?: import("../../core/types.js").ParticleOptions) => ParticleHandle | undefined;
130
+ sendParticleAlongPath: (svgPath: string, options?: import("../../core/types.js").ParticleOptions) => ParticleHandle | undefined;
131
+ sendParticleBetween: (sourceNodeId: string, targetNodeId: string, options?: import("../../core/types.js").ParticleOptions) => ParticleHandle | undefined;
132
+ sendParticleBurst: (edgeId: string, options: import("../../core/types.js").BurstOptions) => import("../../core/types.js").ParticleBurstHandle;
133
+ sendConverging: (sourceEdgeIds: string[], options: import("../../core/types.js").ConvergingOptions) => import("../../core/types.js").ConvergingHandle;
134
134
  destroyParticles: () => void;
135
135
  };
@@ -1,4 +1,4 @@
1
- import type { LayoutDedup } from './canvas-layout-dedup';
1
+ import type { LayoutDedup } from './canvas-layout-dedup.js';
2
2
  /**
3
3
  * Returns a `batch(fn)` function that suspends layout reconciliation
4
4
  * during `fn` and runs it once after. Nested batches join the outermost —
@@ -1,4 +1,4 @@
1
- import type { CanvasContext } from './canvas-context';
1
+ import type { CanvasContext } from './canvas-context.js';
2
2
  export declare function createCollapseMixin(ctx: CanvasContext): {
3
3
  /**
4
4
  * Collapse a node — hide its descendants/outgoers and optionally animate.
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { ComputeDefinition } from '../../core/compute';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { ComputeDefinition } from '../../core/compute.js';
3
3
  export declare function createComputeMixin(ctx: CanvasContext): {
4
4
  registerCompute(nodeType: string, definition: ComputeDefinition): void;
5
5
  compute(startNodeId?: string): Map<string, Record<string, any>>;
@@ -1,4 +1,4 @@
1
- import type { CanvasContext } from './canvas-context';
1
+ import type { CanvasContext } from './canvas-context.js';
2
2
  export declare function createCondenseMixin(ctx: CanvasContext): {
3
3
  /**
4
4
  * Condense a node — switch to summary view hiding internal rows.
@@ -1,4 +1,4 @@
1
- import type { CanvasContext } from './canvas-context';
1
+ import type { CanvasContext } from './canvas-context.js';
2
2
  export declare function createConfigMixin(ctx: CanvasContext): {
3
3
  _applyConfigPatch(changes: Record<string, any>): void;
4
4
  };
@@ -1,22 +1,22 @@
1
- import type { FlowNode, FlowEdge, EdgeGradient, Viewport, XYPosition, Dimensions, FlowCanvasConfig, PendingReconnection, PendingKeyboardConnect, AnimateTargets, AnimateOptions, FlowAnimationHandle, FollowOptions, BurstOptions, ParticleBurstHandle, ConvergingOptions, ConvergingHandle, ParticleHandle, ParticleOptions, ParticleRenderer, PatchableConfig, ChildValidation, RowFilter, FlowNodeRunState, ShapeDefinition, ToImageOptions, StopOptions, SchemaMetrics, EndpointSpreadGrouping, ChangeOrigin } from '../../core/types';
2
- import type { FlowGroup } from '../../animate/flow-group';
3
- import type { Transaction } from '../../animate/transaction';
4
- import type { Recording, RecordOptions, ReplayOptions, ReplayHandle } from '../../animate/recording';
5
- import type { FlowHistory } from '../../core/history';
6
- import type { FlowTimeline } from '../../animate/timeline';
7
- import type { Animator } from '../../animate/animator';
8
- import type { EngineHandle } from '../../animate/engine';
9
- import type { PanZoomInstance } from '../../core/pan-zoom';
10
- import type { MiniMapInstance } from '../../core/minimap';
11
- import type { ControlsPanelInstance } from '../../core/controls-panel';
12
- import type { SelectionBoxInstance } from '../../core/selection-box';
13
- import type { LassoInstance } from '../../core/lasso';
14
- import type { ColorModeHandle } from '../../core/color-mode';
15
- import type { FlowAnnouncer } from '../../core/announcer';
16
- import type { ComputeEngine } from '../../core/compute';
17
- import type { CollapseState } from '../../core/collapse';
18
- import type { KeyboardShortcuts } from '../../core/keyboard-shortcuts';
19
- import type { SpatialGrid } from '../../core/geometry';
1
+ import type { FlowNode, FlowEdge, EdgeGradient, Viewport, XYPosition, Dimensions, FlowCanvasConfig, PendingReconnection, PendingKeyboardConnect, AnimateTargets, AnimateOptions, FlowAnimationHandle, FollowOptions, BurstOptions, ParticleBurstHandle, ConvergingOptions, ConvergingHandle, ParticleHandle, ParticleOptions, ParticleRenderer, PatchableConfig, ChildValidation, RowFilter, FlowNodeRunState, ShapeDefinition, ToImageOptions, StopOptions, SchemaMetrics, EndpointSpreadGrouping, ChangeOrigin } from '../../core/types.js';
2
+ import type { FlowGroup } from '../../animate/flow-group.js';
3
+ import type { Transaction } from '../../animate/transaction.js';
4
+ import type { Recording, RecordOptions, ReplayOptions, ReplayHandle } from '../../animate/recording/index.js';
5
+ import type { FlowHistory } from '../../core/history.js';
6
+ import type { FlowTimeline } from '../../animate/timeline.js';
7
+ import type { Animator } from '../../animate/animator.js';
8
+ import type { EngineHandle } from '../../animate/engine.js';
9
+ import type { PanZoomInstance } from '../../core/pan-zoom.js';
10
+ import type { MiniMapInstance } from '../../core/minimap.js';
11
+ import type { ControlsPanelInstance } from '../../core/controls-panel.js';
12
+ import type { SelectionBoxInstance } from '../../core/selection-box.js';
13
+ import type { LassoInstance } from '../../core/lasso.js';
14
+ import type { ColorModeHandle } from '../../core/color-mode.js';
15
+ import type { FlowAnnouncer } from '../../core/announcer.js';
16
+ import type { ComputeEngine } from '../../core/compute.js';
17
+ import type { CollapseState } from '../../core/collapse.js';
18
+ import type { KeyboardShortcuts } from '../../core/keyboard-shortcuts.js';
19
+ import type { SpatialGrid } from '../../core/geometry.js';
20
20
  export interface ActiveParticle {
21
21
  element: SVGElement;
22
22
  renderer: ParticleRenderer;
@@ -236,7 +236,7 @@ export interface CanvasContext {
236
236
  /** Whether this canvas was hydrated from a pre-rendered static diagram */
237
237
  _hydratedFromStatic: boolean;
238
238
  /** Frame-aligned layout dedup — created in _initChildLayout, disposed in destroy(). */
239
- _layoutDedup: import('./canvas-layout-dedup').LayoutDedup | null;
239
+ _layoutDedup: import('./canvas-layout-dedup.js').LayoutDedup | null;
240
240
  /** Single ResizeObserver instance shared across all node elements. Created in _initChildLayout, disconnected in destroy(). */
241
241
  _resizeObserver: ResizeObserver | null;
242
242
  /** Cleanup functions for per-node childLayout watchers, keyed by node id. */
@@ -249,7 +249,7 @@ export interface CanvasContext {
249
249
  * No-op when the node has no childLayout.
250
250
  * Stores cleanup fns in _childLayoutCleanups for later disposal.
251
251
  */
252
- _installChildLayoutWatchers(node: import('../../core/types').FlowNode): void;
252
+ _installChildLayoutWatchers(node: import('../../core/types.js').FlowNode): void;
253
253
  /**
254
254
  * Stop and remove childLayout watchers for the given node id.
255
255
  *
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { EdgeGradient } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { EdgeGradient } from '../../core/types.js';
3
3
  export declare function createDomMixin(ctx: CanvasContext, Alpine: any): {
4
4
  /** Write node positions directly to DOM elements (bypassing Alpine effects). */
5
5
  _flushNodePositions(nodeIds: Set<string>): void;
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { FlowEdge, ChangeOrigin } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { FlowEdge, ChangeOrigin } from '../../core/types.js';
3
3
  export declare function createEdgesMixin(ctx: CanvasContext): {
4
4
  /**
5
5
  * Add one or more edges to the canvas.
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { FlowNode, FlowEdge, Viewport } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { FlowNode, FlowEdge, Viewport } from '../../core/types.js';
3
3
  export declare function createHistoryMixin(ctx: CanvasContext): {
4
4
  /**
5
5
  * Serialize the current canvas state (nodes, edges, viewport) as a
@@ -1,7 +1,7 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { FlowNode, Dimensions } from '../../core/types';
3
- import type { ElkAlgorithm, ElkDirection } from '../../core/layout/elk';
4
- import type { HierarchyLayoutType, HierarchyDirection } from '../../core/layout/hierarchy';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { FlowNode, Dimensions } from '../../core/types.js';
3
+ import type { ElkAlgorithm, ElkDirection } from '../../core/layout/elk.js';
4
+ import type { HierarchyLayoutType, HierarchyDirection } from '../../core/layout/hierarchy.js';
5
5
  export declare function createLayoutMixin(ctx: CanvasContext): {
6
6
  /**
7
7
  * Debounced trigger for automatic layout.
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { FlowNode, FlowEdge, FlowNodeRunState, ChangeOrigin } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { FlowNode, FlowEdge, FlowNodeRunState, ChangeOrigin } from '../../core/types.js';
3
3
  export declare function createNodesMixin(ctx: CanvasContext): {
4
4
  /**
5
5
  * Add one or more nodes to the canvas.
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { BurstOptions, ConvergingHandle, ConvergingOptions, ParticleBurstHandle, ParticleHandle, ParticleOptions } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { BurstOptions, ConvergingHandle, ConvergingOptions, ParticleBurstHandle, ParticleHandle, ParticleOptions } from '../../core/types.js';
3
3
  /**
4
4
  * Resolve final particle duration in ms from options, path length, and fallback.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { RowFilter } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { RowFilter } from '../../core/types.js';
3
3
  export declare function createRowsMixin(ctx: CanvasContext): {
4
4
  selectRow(rowId: string): void;
5
5
  deselectRow(rowId: string): void;
@@ -1,4 +1,4 @@
1
- import type { CanvasContext } from './canvas-context';
1
+ import type { CanvasContext } from './canvas-context.js';
2
2
  export declare function createSelectionMixin(ctx: CanvasContext): {
3
3
  /**
4
4
  * Clear all node, edge, and row selections.
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { ChildValidation } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { ChildValidation } from '../../core/types.js';
3
3
  export declare function createValidationMixin(ctx: CanvasContext): {
4
4
  _getChildValidation(parentId: string): ChildValidation | undefined;
5
5
  _recomputeChildValidation(): void;
@@ -1,5 +1,5 @@
1
- import type { CanvasContext } from './canvas-context';
2
- import type { Viewport, XYPosition } from '../../core/types';
1
+ import type { CanvasContext } from './canvas-context.js';
2
+ import type { Viewport, XYPosition } from '../../core/types.js';
3
3
  export declare function createViewportMixin(ctx: CanvasContext): {
4
4
  /**
5
5
  * Convert screen coordinates (e.g. from a pointer event) to flow
@@ -95,13 +95,13 @@ export declare function createViewportMixin(ctx: CanvasContext): {
95
95
  duration?: number;
96
96
  }): void;
97
97
  /**
98
- * Zoom in by `ZOOM_STEP_FACTOR`, clamped to `maxZoom`.
98
+ * Zoom in by `ZOOM_STEP_FACTOR` about the container centre, clamped to `maxZoom`.
99
99
  */
100
100
  zoomIn(options?: {
101
101
  duration?: number;
102
102
  }): void;
103
103
  /**
104
- * Zoom out by `ZOOM_STEP_FACTOR`, clamped to `minZoom`.
104
+ * Zoom out by `ZOOM_STEP_FACTOR` about the container centre, clamped to `minZoom`.
105
105
  */
106
106
  zoomOut(options?: {
107
107
  duration?: number;
@@ -1,5 +1,5 @@
1
1
  import type { Alpine } from 'alpinejs';
2
- import type { FlowEdge, FlowNode, HandlePosition, HandleType, Connection, XYPosition } from '../../core/types';
2
+ import type { FlowEdge, FlowNode, HandlePosition, HandleType, Connection, XYPosition } from '../../core/types.js';
3
3
  /**
4
4
  * Resolve a drop target for an edge-body reconnect drag and route it through
5
5
  * `applyReconnectValidation` so the async `connectValidator` gates the mutation