@getartisanflow/alpineflow 0.2.3-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 (145) hide show
  1. package/README.md +1 -0
  2. package/dist/alpineflow-collab.esm.js.map +1 -1
  3. package/dist/alpineflow-collab.js.map +1 -1
  4. package/dist/alpineflow-schema.esm.js +785 -679
  5. package/dist/alpineflow-schema.esm.js.map +1 -1
  6. package/dist/alpineflow-workflow.esm.js.map +1 -1
  7. package/dist/alpineflow.bundle.esm.js +7007 -6869
  8. package/dist/alpineflow.bundle.esm.js.map +1 -1
  9. package/dist/alpineflow.esm.js +2 -2
  10. package/dist/alpineflow.js +1 -1
  11. package/dist/{index-B8jw3ALY.js → index-iNX5XDHl.js} +6086 -5948
  12. package/dist/index-iNX5XDHl.js.map +1 -0
  13. package/dist/locales/de.json +62 -0
  14. package/dist/locales/en.json +62 -0
  15. package/dist/types/lib/collab.d.ts +2 -2
  16. package/dist/types/lib/core.d.ts +2 -2
  17. package/dist/types/lib/dagre.d.ts +1 -1
  18. package/dist/types/lib/elk.d.ts +1 -1
  19. package/dist/types/lib/force.d.ts +1 -1
  20. package/dist/types/lib/hierarchy.d.ts +1 -1
  21. package/dist/types/lib/schema.d.ts +2 -2
  22. package/dist/types/lib/whiteboard.d.ts +1 -1
  23. package/dist/types/lib/workflow.d.ts +2 -2
  24. package/dist/types/src/animate/animator.d.ts +6 -6
  25. package/dist/types/src/animate/clamp-dimensions.d.ts +1 -1
  26. package/dist/types/src/animate/flow-group.d.ts +1 -1
  27. package/dist/types/src/animate/handle-registry.d.ts +1 -1
  28. package/dist/types/src/animate/index.d.ts +19 -19
  29. package/dist/types/src/animate/interpolators.d.ts +1 -1
  30. package/dist/types/src/animate/motion/decay.d.ts +1 -1
  31. package/dist/types/src/animate/motion/index.d.ts +7 -7
  32. package/dist/types/src/animate/motion/inertia.d.ts +1 -1
  33. package/dist/types/src/animate/motion/keyframes.d.ts +1 -1
  34. package/dist/types/src/animate/motion/presets.d.ts +1 -1
  35. package/dist/types/src/animate/motion/spring.d.ts +1 -1
  36. package/dist/types/src/animate/particle-renderers.d.ts +1 -1
  37. package/dist/types/src/animate/recording/event-cursor.d.ts +1 -1
  38. package/dist/types/src/animate/recording/index.d.ts +7 -7
  39. package/dist/types/src/animate/recording/recorder.d.ts +1 -1
  40. package/dist/types/src/animate/recording/recording.d.ts +1 -1
  41. package/dist/types/src/animate/recording/replay.d.ts +2 -2
  42. package/dist/types/src/animate/recording/thumbnail.d.ts +1 -1
  43. package/dist/types/src/animate/recording/types.d.ts +3 -3
  44. package/dist/types/src/animate/recording/virtual-engine.d.ts +1 -1
  45. package/dist/types/src/animate/timeline.d.ts +5 -5
  46. package/dist/types/src/animate/transaction.d.ts +1 -1
  47. package/dist/types/src/collab/awareness.d.ts +1 -1
  48. package/dist/types/src/collab/bridge.d.ts +2 -2
  49. package/dist/types/src/collab/directives/flow-cursors.d.ts +1 -1
  50. package/dist/types/src/collab/index.d.ts +9 -9
  51. package/dist/types/src/collab/providers/in-memory.d.ts +1 -1
  52. package/dist/types/src/collab/providers/reverb.d.ts +1 -1
  53. package/dist/types/src/collab/providers/websocket.d.ts +1 -1
  54. package/dist/types/src/collab/store.d.ts +2 -2
  55. package/dist/types/src/core/__fixtures__/nodes.d.ts +1 -1
  56. package/dist/types/src/core/announcer.d.ts +10 -3
  57. package/dist/types/src/core/child-layout.d.ts +1 -1
  58. package/dist/types/src/core/child-validation.d.ts +1 -1
  59. package/dist/types/src/core/clipboard.d.ts +1 -1
  60. package/dist/types/src/core/collapse.d.ts +1 -1
  61. package/dist/types/src/core/compute.d.ts +1 -1
  62. package/dist/types/src/core/connections.d.ts +1 -1
  63. package/dist/types/src/core/controls-panel.d.ts +3 -0
  64. package/dist/types/src/core/crossing-reduction.d.ts +2 -2
  65. package/dist/types/src/core/drag.d.ts +1 -1
  66. package/dist/types/src/core/edge-paths/avoidant.d.ts +3 -3
  67. package/dist/types/src/core/edge-paths/bezier.d.ts +2 -2
  68. package/dist/types/src/core/edge-paths/editable.d.ts +2 -2
  69. package/dist/types/src/core/edge-paths/index.d.ts +7 -7
  70. package/dist/types/src/core/edge-paths/orthogonal.d.ts +2 -2
  71. package/dist/types/src/core/edge-paths/smoothstep.d.ts +2 -2
  72. package/dist/types/src/core/edge-paths/straight.d.ts +1 -1
  73. package/dist/types/src/core/edge-paths/utils.d.ts +1 -1
  74. package/dist/types/src/core/edge-utils.d.ts +3 -3
  75. package/dist/types/src/core/endpoint-spread.d.ts +1 -1
  76. package/dist/types/src/core/export.d.ts +1 -1
  77. package/dist/types/src/core/floating-edge.d.ts +1 -1
  78. package/dist/types/src/core/geometry.d.ts +1 -1
  79. package/dist/types/src/core/gradients.d.ts +1 -1
  80. package/dist/types/src/core/graph.d.ts +1 -1
  81. package/dist/types/src/core/helper-lines.d.ts +1 -1
  82. package/dist/types/src/core/history.d.ts +1 -1
  83. package/dist/types/src/core/index.d.ts +17 -17
  84. package/dist/types/src/core/intersection.d.ts +1 -1
  85. package/dist/types/src/core/lasso-hit-test.d.ts +1 -1
  86. package/dist/types/src/core/lasso.d.ts +2 -2
  87. package/dist/types/src/core/layout/dagre.d.ts +1 -1
  88. package/dist/types/src/core/layout/elk.d.ts +1 -1
  89. package/dist/types/src/core/layout/force.d.ts +1 -1
  90. package/dist/types/src/core/layout/hierarchy.d.ts +1 -1
  91. package/dist/types/src/core/minimap.d.ts +1 -1
  92. package/dist/types/src/core/pan-zoom.d.ts +10 -4
  93. package/dist/types/src/core/proximity-connect.d.ts +1 -1
  94. package/dist/types/src/core/render-plan.d.ts +1 -1
  95. package/dist/types/src/core/resize.d.ts +1 -1
  96. package/dist/types/src/core/schema-geometry.d.ts +1 -1
  97. package/dist/types/src/core/selection-box.d.ts +1 -1
  98. package/dist/types/src/core/shapes.d.ts +1 -1
  99. package/dist/types/src/core/sub-flow.d.ts +1 -1
  100. package/dist/types/src/core/translations.d.ts +175 -0
  101. package/dist/types/src/core/types.d.ts +29 -11
  102. package/dist/types/src/index.d.ts +31 -30
  103. package/dist/types/src/plugin/connection-utils.d.ts +3 -3
  104. package/dist/types/src/plugin/data/__real-canvas-harness.d.ts +1 -1
  105. package/dist/types/src/plugin/data/__test-utils.d.ts +1 -1
  106. package/dist/types/src/plugin/data/canvas-animation.d.ts +13 -13
  107. package/dist/types/src/plugin/data/canvas-batch.d.ts +1 -1
  108. package/dist/types/src/plugin/data/canvas-collapse.d.ts +1 -1
  109. package/dist/types/src/plugin/data/canvas-compute.d.ts +2 -2
  110. package/dist/types/src/plugin/data/canvas-condense.d.ts +1 -1
  111. package/dist/types/src/plugin/data/canvas-config.d.ts +1 -1
  112. package/dist/types/src/plugin/data/canvas-context.d.ts +22 -22
  113. package/dist/types/src/plugin/data/canvas-dom.d.ts +2 -2
  114. package/dist/types/src/plugin/data/canvas-edges.d.ts +2 -2
  115. package/dist/types/src/plugin/data/canvas-history.d.ts +2 -2
  116. package/dist/types/src/plugin/data/canvas-layout.d.ts +4 -4
  117. package/dist/types/src/plugin/data/canvas-nodes.d.ts +2 -2
  118. package/dist/types/src/plugin/data/canvas-particles.d.ts +2 -2
  119. package/dist/types/src/plugin/data/canvas-rows.d.ts +2 -2
  120. package/dist/types/src/plugin/data/canvas-selection.d.ts +1 -1
  121. package/dist/types/src/plugin/data/canvas-validation.d.ts +2 -2
  122. package/dist/types/src/plugin/data/canvas-viewport.d.ts +4 -4
  123. package/dist/types/src/plugin/directives/flow-edge.d.ts +1 -1
  124. package/dist/types/src/plugin/directives/flow-handle-validate.d.ts +1 -1
  125. package/dist/types/src/plugin/directives/flow-handle.d.ts +2 -2
  126. package/dist/types/src/plugin/drag-validation.d.ts +1 -1
  127. package/dist/types/src/plugin/handle-index.d.ts +1 -1
  128. package/dist/types/src/schema/canvas-augmentation.test-d.d.ts +1 -1
  129. package/dist/types/src/schema/diff.d.ts +1 -1
  130. package/dist/types/src/schema/dot.d.ts +1 -1
  131. package/dist/types/src/schema/field-ops.d.ts +1 -1
  132. package/dist/types/src/schema/history.d.ts +1 -1
  133. package/dist/types/src/schema/index.d.ts +24 -24
  134. package/dist/types/src/schema/layout.d.ts +1 -1
  135. package/dist/types/src/schema/references.d.ts +1 -1
  136. package/dist/types/src/schema/serialization.d.ts +1 -1
  137. package/dist/types/src/schema/types.d.ts +1 -1
  138. package/dist/types/src/schema/validate.d.ts +1 -1
  139. package/dist/types/src/workflow/condition.d.ts +1 -1
  140. package/dist/types/src/workflow/index.d.ts +3 -3
  141. package/dist/types/src/workflow/replay.d.ts +1 -1
  142. package/dist/types/src/workflow/run.d.ts +1 -1
  143. package/dist/types/src/workflow/types.d.ts +3 -3
  144. package/package.json +5 -2
  145. package/dist/index-B8jw3ALY.js.map +0 -1
@@ -5,39 +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 { FlowHistory, type HistorySnapshot } from './core/history';
31
- export type { ResizeDirection, ResizeConstraints } from './core/resize';
32
- export type { ControlsPanelInstance } from './core/controls-panel';
33
- export type { SelectionBoxInstance } from './core/selection-box';
34
- export type { LassoInstance } from './core/lasso';
35
- export { pointInPolygon, polygonIntersectsAABB, getNodesInPolygon, getNodesFullyInPolygon } from './core/lasso-hit-test';
36
- export type { AutoPanInstance } from './core/auto-pan';
37
- export { getAutoPanDelta } from './core/auto-pan';
38
- export { computeRenderPlan, type RenderPlan, type RenderPlanConfig, type RenderPlanNode, type RenderPlanEdge } from './core/render-plan';
39
- export type { KeyboardShortcuts, KeyCode } from './core/keyboard-shortcuts';
40
- export { SHORTCUT_DEFAULTS, resolveShortcuts, matchesKey, matchesModifier } from './core/keyboard-shortcuts';
41
- export type { ChildValidation, ChildValidationResult, ChildValidationFailDetail } from './core/types';
42
- export { resolveChildValidation, validateChildAdd, validateChildRemove, computeValidationErrors } from './core/child-validation';
43
- 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
  *
@@ -350,12 +350,12 @@ export interface CanvasContext {
350
350
  _flushEdgeStyles(edgeIds: Set<string>): void;
351
351
  /** Push current viewport state to the DOM (transform, background, culling) */
352
352
  _flushViewport(): void;
353
- /** Recompute SVG paths, label positions, and gradients for affected edges */
354
353
  /**
355
354
  * Repaint one edge's gradient where nothing moved. False where it has no def yet, and the caller
356
355
  * falls back to the path refresh — see the implementation for why that is worth avoiding.
357
356
  */
358
357
  _restyleEdgeGradient(edgeId: string, gradient: EdgeGradient): boolean;
358
+ /** Recompute SVG paths, label positions, and gradients for affected edges */
359
359
  _refreshEdgePaths(movedNodeIds: Set<string>): void;
360
360
  /** Hydrate from a pre-rendered static diagram */
361
361
  _hydrateFromStatic(): void;
@@ -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
@@ -1,5 +1,5 @@
1
1
  import type { Alpine } from 'alpinejs';
2
- import type { Connection } from '../../core/types';
2
+ import type { Connection } from '../../core/types.js';
3
3
  /** Expando property name for the validator function on handle elements. */
4
4
  export declare const HANDLE_VALIDATE_KEY = "_flowHandleValidate";
5
5
  declare global {
@@ -1,6 +1,6 @@
1
1
  import type { Alpine } from 'alpinejs';
2
- import type { HandleType, FlowEdge, Connection } from '../../core/types';
3
- import { type HandleIndex } from '../handle-index';
2
+ import type { HandleType, FlowEdge, Connection } from '../../core/types.js';
3
+ import { type HandleIndex } from '../handle-index.js';
4
4
  /**
5
5
  * Run per-handle validators for a connection.
6
6
  * Looks up source and target handle elements by node ID and handle ID,
@@ -1,4 +1,4 @@
1
- import type { Connection, FlowEdge } from '../core/types';
1
+ import type { Connection, FlowEdge } from '../core/types.js';
2
2
  /**
3
3
  * Precomputed lookups for the drag-time validation chain, keyed so the
4
4
  * per-handle apply loop can answer each check with a single map/set read.
@@ -1,4 +1,4 @@
1
- import type { XYPosition } from '../core/types';
1
+ import type { XYPosition } from '../core/types.js';
2
2
  /** A single measured connection handle, captured once per drag gesture. */
3
3
  export interface HandleRecord {
4
4
  el: HTMLElement;
@@ -1,4 +1,4 @@
1
- import './index';
1
+ import './index.js';
2
2
  declare const _addedApplied: boolean;
3
3
  declare const _addedReason: string | undefined;
4
4
  declare const _renamedCascaded: string[];
@@ -1,4 +1,4 @@
1
- import type { DiffOptions, SchemaDiff, SchemaGraphJSON } from './types';
1
+ import type { DiffOptions, SchemaDiff, SchemaGraphJSON } from './types.js';
2
2
  /**
3
3
  * Compute a structured delta between two schema snapshots. Pure, deterministic,
4
4
  * tolerant of malformed input (missing `version`, null snapshots, nodes without
@@ -1,4 +1,4 @@
1
- import type { DotExportOptions } from './types';
1
+ import type { DotExportOptions } from './types.js';
2
2
  /**
3
3
  * Render `canvas.nodes` + `canvas.edges` as a graphviz DOT string.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { FlowSchemaField } from '../core/types';
1
+ import type { FlowSchemaField } from '../core/types.js';
2
2
  export interface AddFieldResult {
3
3
  applied: boolean;
4
4
  reason?: string;
@@ -1,4 +1,4 @@
1
- import type { SchemaHistoryHandle, SchemaHistoryOptions } from './types';
1
+ import type { SchemaHistoryHandle, SchemaHistoryOptions } from './types.js';
2
2
  /**
3
3
  * Attach a bounded undo/redo stack to a canvas. Returns a handle with
4
4
  * `undo()`, `redo()`, `batch(fn)`, `clear()`, and `dispose()`.
@@ -1,31 +1,31 @@
1
1
  import type { Alpine } from 'alpinejs';
2
- import { addField, renameField, removeField, reorderFields } from './field-ops';
3
- import type { AddFieldResult, RenameFieldOpResult, RemoveFieldOpResult, ReorderFieldsOpResult } from './field-ops';
4
- import { inferReferences } from './references';
5
- import { schemaToJSON, schemaFromJSON } from './serialization';
6
- import { validateSchema } from './validate';
7
- import { diffSchemas } from './diff';
8
- import { toDot } from './dot';
9
- import { schemaLayout } from './layout';
10
- import { attachSchemaHistory } from './history';
11
- import { registerNodeInspectorDirective } from './inspector/node-inspector';
12
- import { registerRowInspectorDirective } from './inspector/row-inspector';
13
- import { registerEdgeInspectorDirective } from './inspector/edge-inspector';
14
- import { registerSchemaReorderableDirective } from './reorderable';
15
- import { registerSchemaKeyboardNavDirective } from './keyboard-nav';
16
- import type { DotExportOptions, SchemaLayoutOptions, SchemaGraphJSON, SchemaValidationResult, SchemaDiff, DiffOptions, ReferenceSuggestion } from './types';
17
- import type { FlowSchemaField } from '../core/types';
18
- export * from './types';
19
- export * from './validate';
20
- export * from './diff';
21
- export * from './dot';
22
- export * from './layout';
23
- export * from './history';
2
+ import { addField, renameField, removeField, reorderFields } from './field-ops.js';
3
+ import type { AddFieldResult, RenameFieldOpResult, RemoveFieldOpResult, ReorderFieldsOpResult } from './field-ops.js';
4
+ import { inferReferences } from './references.js';
5
+ import { schemaToJSON, schemaFromJSON } from './serialization.js';
6
+ import { validateSchema } from './validate.js';
7
+ import { diffSchemas } from './diff.js';
8
+ import { toDot } from './dot.js';
9
+ import { schemaLayout } from './layout.js';
10
+ import { attachSchemaHistory } from './history.js';
11
+ import { registerNodeInspectorDirective } from './inspector/node-inspector.js';
12
+ import { registerRowInspectorDirective } from './inspector/row-inspector.js';
13
+ import { registerEdgeInspectorDirective } from './inspector/edge-inspector.js';
14
+ import { registerSchemaReorderableDirective } from './reorderable.js';
15
+ import { registerSchemaKeyboardNavDirective } from './keyboard-nav.js';
16
+ import type { DotExportOptions, SchemaLayoutOptions, SchemaGraphJSON, SchemaValidationResult, SchemaDiff, DiffOptions, ReferenceSuggestion } from './types.js';
17
+ import type { FlowSchemaField } from '../core/types.js';
18
+ export * from './types.js';
19
+ export * from './validate.js';
20
+ export * from './diff.js';
21
+ export * from './dot.js';
22
+ export * from './layout.js';
23
+ export * from './history.js';
24
24
  export { addField, renameField, removeField, reorderFields, inferReferences, schemaToJSON, schemaFromJSON, validateSchema, diffSchemas, toDot, schemaLayout, attachSchemaHistory };
25
25
  export { registerNodeInspectorDirective, registerRowInspectorDirective, registerEdgeInspectorDirective, registerSchemaReorderableDirective, registerSchemaKeyboardNavDirective };
26
- export type { AddFieldResult, RenameFieldOpResult, RemoveFieldOpResult, ReorderFieldsOpResult } from './field-ops';
26
+ export type { AddFieldResult, RenameFieldOpResult, RemoveFieldOpResult, ReorderFieldsOpResult } from './field-ops.js';
27
27
  export default function registerSchemaAddon(Alpine: Alpine): void;
28
- declare module '../plugin/data/canvas-context' {
28
+ declare module '../plugin/data/canvas-context.js' {
29
29
  interface CanvasContext {
30
30
  /** Append a field to a schema node. Rejects invalid/duplicate names silently. _(schema addon)_ */
31
31
  addField(nodeId: string, field: FlowSchemaField): AddFieldResult;
@@ -1,4 +1,4 @@
1
- import type { SchemaLayoutOptions } from './types';
1
+ import type { SchemaLayoutOptions } from './types.js';
2
2
  /**
3
3
  * Apply a schema-tuned layout to the canvas.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { ReferenceSuggestion } from './types';
1
+ import type { ReferenceSuggestion } from './types.js';
2
2
  interface NodeLike {
3
3
  id: string;
4
4
  data?: {
@@ -1,4 +1,4 @@
1
- import type { SchemaGraphJSON } from './types';
1
+ import type { SchemaGraphJSON } from './types.js';
2
2
  /**
3
3
  * Export schema graph as a stable JSON shape. Strips internal underscore-prefixed
4
4
  * flags and only keeps the documented public fields.
@@ -1,4 +1,4 @@
1
- import type { FlowSchemaField } from '../core/types';
1
+ import type { FlowSchemaField } from '../core/types.js';
2
2
  export interface AddFieldOptions {
3
3
  /** The field to append. Fails silently if the name already exists on the node. */
4
4
  field: FlowSchemaField;
@@ -1,4 +1,4 @@
1
- import type { SchemaValidationResult } from './types';
1
+ import type { SchemaValidationResult } from './types.js';
2
2
  /**
3
3
  * Inspect a canvas (nodes + edges) and produce a structured list of schema
4
4
  * issues. Pure — no mutation, no events, never throws.
@@ -1,3 +1,3 @@
1
- import type { FlowCondition } from './types';
1
+ import type { FlowCondition } from './types.js';
2
2
  /** Evaluate a single FlowCondition against a payload. */
3
3
  export declare function evaluateCondition(condition: FlowCondition, payload: Record<string, any>): boolean;
@@ -1,4 +1,4 @@
1
- export type { FlowRunHandlers, FlowRunOptions, FlowRunContext, FlowRunHandle, FlowRunLogEntry, FlowRunLogEntryType, FlowCondition, ReplayHandle, ReplayOptions, WorkflowRunState } from './types';
2
- export { validateWorkflow } from './validate';
3
- export type { WorkflowIssueCode, WorkflowValidationIssue, WorkflowValidationResult } from './validate';
1
+ export type { FlowRunHandlers, FlowRunOptions, FlowRunContext, FlowRunHandle, FlowRunLogEntry, FlowRunLogEntryType, FlowCondition, ReplayHandle, ReplayOptions, WorkflowRunState } from './types.js';
2
+ export { validateWorkflow } from './validate.js';
3
+ export type { WorkflowIssueCode, WorkflowValidationIssue, WorkflowValidationResult } from './validate.js';
4
4
  export default function AlpineFlowWorkflow(Alpine: any): void;
@@ -1,2 +1,2 @@
1
- import type { FlowRunLogEntry, ReplayOptions, ReplayHandle } from './types';
1
+ import type { FlowRunLogEntry, ReplayOptions, ReplayHandle } from './types.js';
2
2
  export declare function createReplayExecutor(canvas: any): (log: FlowRunLogEntry[], options?: ReplayOptions) => Promise<ReplayHandle>;
@@ -1,2 +1,2 @@
1
- import type { FlowRunHandlers, FlowRunOptions, FlowRunHandle } from './types';
1
+ import type { FlowRunHandlers, FlowRunOptions, FlowRunHandle } from './types.js';
2
2
  export declare function createRunExecutor(canvas: any): (startId: string, handlers?: FlowRunHandlers, options?: FlowRunOptions) => Promise<FlowRunHandle>;
@@ -1,4 +1,4 @@
1
- import type { FlowNode } from '../core/types';
1
+ import type { FlowNode } from '../core/types.js';
2
2
  export interface FlowRunHandlers {
3
3
  onEnter?: (node: FlowNode, context: FlowRunContext) => Promise<Record<string, any> | void> | Record<string, any> | void;
4
4
  onExit?: (node: FlowNode, context: FlowRunContext) => Promise<Record<string, any> | void> | Record<string, any> | void;
@@ -64,13 +64,13 @@ export interface ReplayHandle {
64
64
  readonly isPaused: boolean;
65
65
  readonly isStopped: boolean;
66
66
  }
67
- declare module '../core/types' {
67
+ declare module '../core/types.js' {
68
68
  interface FlowInstance {
69
69
  run(startId: string, handlers: FlowRunHandlers, options?: FlowRunOptions): Promise<FlowRunHandle>;
70
70
  replayExecution(log: FlowRunLogEntry[], options?: ReplayOptions): Promise<ReplayHandle>;
71
71
  executionLog: FlowRunLogEntry[];
72
72
  resetExecutionLog(): void;
73
- validateWorkflow(): import('./validate').WorkflowValidationResult;
73
+ validateWorkflow(): import('./validate.js').WorkflowValidationResult;
74
74
  readonly runState: WorkflowRunState;
75
75
  stopRun(): void;
76
76
  _currentRunHandle: FlowRunHandle | null;