@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
@@ -0,0 +1,62 @@
1
+ {
2
+ "controls.label": "Diagrammsteuerung",
3
+ "controls.zoomIn": "Vergrößern",
4
+ "controls.zoomOut": "Verkleinern",
5
+ "controls.fitView": "Ansicht einpassen",
6
+ "controls.toggleInteractive": "Interaktion umschalten",
7
+ "controls.lockInteractive": "Interaktion sperren",
8
+ "controls.unlockInteractive": "Interaktion entsperren",
9
+ "controls.resetPanels": "Bereiche zurücksetzen",
10
+ "controls.toggleFullscreen": "Vollbild umschalten",
11
+ "controls.enterFullscreen": "Vollbild öffnen",
12
+ "controls.exitFullscreen": "Vollbild verlassen",
13
+ "canvas.label": "Flussdiagramm",
14
+ "canvas.loading": "Wird geladen…",
15
+ "canvas.selectionMode": "Auswahlmodus — tippe mit zwei Fingern, um ihn zu verlassen",
16
+ "a11y.nodeLabel": "Knoten: :label",
17
+ "a11y.nodeId": "Knoten :id",
18
+ "a11y.edgeLabel": "Verbindung: :label",
19
+ "a11y.edgeEndpoints": "Verbindung von :source zu :target",
20
+ "a11y.sourceHandle": "Ausgang :id",
21
+ "a11y.targetHandle": "Eingang :id",
22
+ "a11y.addControlPoint": "Doppelklicken, um einen Kontrollpunkt hinzuzufügen",
23
+ "announce.nodeAdded": "Knoten hinzugefügt: :label",
24
+ "announce.nodesAdded_one": ":count Knoten hinzugefügt",
25
+ "announce.nodesAdded_other": ":count Knoten hinzugefügt",
26
+ "announce.nodeRemoved": "Knoten entfernt: :label",
27
+ "announce.nodesRemoved_one": ":count Knoten entfernt",
28
+ "announce.nodesRemoved_other": ":count Knoten entfernt",
29
+ "announce.connected": ":source mit :target verbunden",
30
+ "announce.connectionsAdded_one": ":count Verbindung hinzugefügt",
31
+ "announce.connectionsAdded_other": ":count Verbindungen hinzugefügt",
32
+ "announce.disconnected": "Verbindung von :source zu :target entfernt",
33
+ "announce.connectionsRemoved_one": ":count Verbindung entfernt",
34
+ "announce.connectionsRemoved_other": ":count Verbindungen entfernt",
35
+ "announce.selectionCleared": "Auswahl aufgehoben",
36
+ "announce.nodesSelected_one": ":count Knoten",
37
+ "announce.nodesSelected_other": ":count Knoten",
38
+ "announce.edgesSelected_one": ":count Verbindung",
39
+ "announce.edgesSelected_other": ":count Verbindungen",
40
+ "announce.selectionJoin": ":nodes und :edges",
41
+ "announce.selected": ":items ausgewählt",
42
+ "announce.viewportZoom": "Ansicht: Zoom :percent %",
43
+ "announce.viewFitted": "Ansicht an Inhalt angepasst",
44
+ "announce.node": "Knoten",
45
+ "announce.reparented": ":name nach :parent verschoben",
46
+ "announce.detached": ":name von :parent gelöst",
47
+ "workflow.condition": "Bedingung",
48
+ "workflow.customEvaluator": "[eigene Auswertungsfunktion]",
49
+ "workflow.wait": "Warten",
50
+ "schema.inspector.noNode": "Kein Knoten ausgewählt.",
51
+ "schema.inspector.noEdge": "Keine Verbindung ausgewählt.",
52
+ "schema.inspector.noRow": "Keine Zeile ausgewählt.",
53
+ "schema.inspector.missingRow": "Die ausgewählte Zeile existiert nicht mehr.",
54
+ "schema.inspector.label": "Beschriftung",
55
+ "schema.inspector.name": "Name",
56
+ "schema.inspector.type": "Typ",
57
+ "schema.inspector.required": "Erforderlich",
58
+ "schema.inspector.remove": "Entfernen",
59
+ "schema.inspector.delete": "Löschen",
60
+ "schema.inspector.add": "Hinzufügen",
61
+ "schema.inspector.fieldName": "Feldname"
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "controls.label": "Flow controls",
3
+ "controls.zoomIn": "Zoom in",
4
+ "controls.zoomOut": "Zoom out",
5
+ "controls.fitView": "Fit view",
6
+ "controls.toggleInteractive": "Toggle interactivity",
7
+ "controls.lockInteractive": "Lock interactivity",
8
+ "controls.unlockInteractive": "Unlock interactivity",
9
+ "controls.resetPanels": "Reset panels",
10
+ "controls.toggleFullscreen": "Toggle fullscreen",
11
+ "controls.enterFullscreen": "Enter fullscreen",
12
+ "controls.exitFullscreen": "Exit fullscreen",
13
+ "canvas.label": "Flow diagram",
14
+ "canvas.loading": "Loading…",
15
+ "canvas.selectionMode": "Selection Mode — tap with two fingers to exit",
16
+ "a11y.nodeLabel": "Node: :label",
17
+ "a11y.nodeId": "Node :id",
18
+ "a11y.edgeLabel": "Edge: :label",
19
+ "a11y.edgeEndpoints": "Edge from :source to :target",
20
+ "a11y.sourceHandle": "source handle :id",
21
+ "a11y.targetHandle": "target handle :id",
22
+ "a11y.addControlPoint": "Double-click to add control point",
23
+ "announce.nodeAdded": "Added node: :label",
24
+ "announce.nodesAdded_one": "Added :count node",
25
+ "announce.nodesAdded_other": "Added :count nodes",
26
+ "announce.nodeRemoved": "Removed node: :label",
27
+ "announce.nodesRemoved_one": "Removed :count node",
28
+ "announce.nodesRemoved_other": "Removed :count nodes",
29
+ "announce.connected": "Connected :source to :target",
30
+ "announce.connectionsAdded_one": "Added :count connection",
31
+ "announce.connectionsAdded_other": "Added :count connections",
32
+ "announce.disconnected": "Removed connection from :source to :target",
33
+ "announce.connectionsRemoved_one": "Removed :count connection",
34
+ "announce.connectionsRemoved_other": "Removed :count connections",
35
+ "announce.selectionCleared": "Selection cleared",
36
+ "announce.nodesSelected_one": ":count node",
37
+ "announce.nodesSelected_other": ":count nodes",
38
+ "announce.edgesSelected_one": ":count edge",
39
+ "announce.edgesSelected_other": ":count edges",
40
+ "announce.selectionJoin": ":nodes and :edges",
41
+ "announce.selected": ":items selected",
42
+ "announce.viewportZoom": "Viewport: zoom :percent%",
43
+ "announce.viewFitted": "Fitted view to content",
44
+ "announce.node": "node",
45
+ "announce.reparented": "Moved :name into :parent",
46
+ "announce.detached": "Detached :name from :parent",
47
+ "workflow.condition": "Condition",
48
+ "workflow.customEvaluator": "[custom evaluator]",
49
+ "workflow.wait": "Wait",
50
+ "schema.inspector.noNode": "No node selected.",
51
+ "schema.inspector.noEdge": "No edge selected.",
52
+ "schema.inspector.noRow": "No row selected.",
53
+ "schema.inspector.missingRow": "Selected row no longer exists.",
54
+ "schema.inspector.label": "label",
55
+ "schema.inspector.name": "name",
56
+ "schema.inspector.type": "type",
57
+ "schema.inspector.required": "required",
58
+ "schema.inspector.remove": "remove",
59
+ "schema.inspector.delete": "delete",
60
+ "schema.inspector.add": "add",
61
+ "schema.inspector.fieldName": "field name"
62
+ }
@@ -1,2 +1,2 @@
1
- export { default } from '../src/collab/index';
2
- export * from '../src/collab/index';
1
+ export { default } from '../src/collab/index.js';
2
+ export * from '../src/collab/index.js';
@@ -1,2 +1,2 @@
1
- export { default } from '../src/index';
2
- export * from '../src/index';
1
+ export { default } from '../src/index.js';
2
+ export * from '../src/index.js';
@@ -1 +1 @@
1
- export { default } from '../src/layout/dagre';
1
+ export { default } from '../src/layout/dagre.js';
@@ -1 +1 @@
1
- export { default } from '../src/layout/elk';
1
+ export { default } from '../src/layout/elk.js';
@@ -1 +1 @@
1
- export { default } from '../src/layout/force';
1
+ export { default } from '../src/layout/force.js';
@@ -1 +1 @@
1
- export { default } from '../src/layout/hierarchy';
1
+ export { default } from '../src/layout/hierarchy.js';
@@ -1,2 +1,2 @@
1
- export { default } from '../src/schema/index';
2
- export * from '../src/schema/index';
1
+ export { default } from '../src/schema/index.js';
2
+ export * from '../src/schema/index.js';
@@ -1 +1 @@
1
- export { default } from '../src/whiteboard/index';
1
+ export { default } from '../src/whiteboard/index.js';
@@ -1,2 +1,2 @@
1
- export { default } from '../src/workflow/index';
2
- export * from '../src/workflow/index';
1
+ export { default } from '../src/workflow/index.js';
2
+ export * from '../src/workflow/index.js';
@@ -1,9 +1,9 @@
1
- import { AnimationEngine } from './engine';
2
- import type { EasingName, EasingFn } from './easing';
3
- import type { StopOptions } from '../core/types';
4
- import { HandleRegistry } from './handle-registry';
5
- import { Transaction } from './transaction';
6
- import type { MotionConfig } from './motion';
1
+ import { AnimationEngine } from './engine.js';
2
+ import type { EasingName, EasingFn } from './easing.js';
3
+ import type { StopOptions } from '../core/types.js';
4
+ import { HandleRegistry } from './handle-registry.js';
5
+ import { Transaction } from './transaction.js';
6
+ import type { MotionConfig } from './motion/index.js';
7
7
  /** A single property to animate. */
8
8
  export interface PropertyEntry {
9
9
  key: string;
@@ -1,4 +1,4 @@
1
- import type { Dimensions } from '../core/types';
1
+ import type { Dimensions } from '../core/types.js';
2
2
  /**
3
3
  * Clamp observed dimensions to min/max bounds.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { AnimateTargets, AnimateOptions, FlowAnimationHandle, StopOptions, ParticleOptions, ParticleHandle, BurstOptions, ParticleBurstHandle, ConvergingOptions, ConvergingHandle } from '../core/types';
1
+ import type { AnimateTargets, AnimateOptions, FlowAnimationHandle, StopOptions, ParticleOptions, ParticleHandle, BurstOptions, ParticleBurstHandle, ConvergingOptions, ConvergingHandle } from '../core/types.js';
2
2
  export interface FlowGroupHost {
3
3
  animate(targets: AnimateTargets, options?: AnimateOptions): FlowAnimationHandle;
4
4
  update(targets: AnimateTargets, options?: AnimateOptions): FlowAnimationHandle;
@@ -1,4 +1,4 @@
1
- import type { StopOptions } from '../core/types';
1
+ import type { StopOptions } from '../core/types.js';
2
2
  export interface Taggable {
3
3
  _tags?: string[];
4
4
  stop(options?: StopOptions): void;
@@ -1,19 +1,19 @@
1
- export type { EasingName } from './easing';
2
- export type { StepContext, TimelineStep, TimelineEvent, TimelineState, TimelineCanvas, } from './timeline';
3
- export { resolveEasing } from './easing';
4
- export { lerpNumber, interpolateColor, parseStyle, interpolateStyle, lerpViewport } from './interpolators';
5
- export { drawInOffset, drawOutOffset, fadeOpacity, applyDrawTransition, cleanupDrawTransition, applyFadeTransition, cleanupFadeTransition, } from './edge-transitions';
6
- export type { PathFunction, OrbitConfig, WaveConfig, AlongConfig, PendulumConfig, DriftConfig } from './paths';
7
- export { svgPathToFunction, orbit, wave, along, pendulum, drift, stagger, _clearPathCache } from './paths';
8
- export { engine, AnimationEngine, type TickCallback, type EngineHandle } from './engine';
9
- export { FlowTimeline } from './timeline';
10
- export { Animator, type PropertyEntry, type AnimateInternalOptions, type AnimationHandle } from './animator';
11
- export { HandleRegistry, type Taggable } from './handle-registry';
12
- export { Transaction, type TransactionState } from './transaction';
13
- export { FlowGroup, type FlowGroupHost } from './flow-group';
14
- export { registerParticleRenderer, getParticleRenderer, hasParticleRenderer, circleRenderer, orbRenderer, beamRenderer, pulseRenderer, imageRenderer } from './particle-renderers';
15
- export type { ParticleRenderer, ParticleRenderState } from '../core/types';
16
- export { resolveMotion, stepSpring, SPRING_DEFAULTS } from './motion';
17
- export type { MotionConfig, SpringMotion, DecayMotion, InertiaMotion, KeyframesMotion, PhysicsState } from './motion';
18
- export { Recording, RECORDING_VERSION } from './recording';
19
- export type { CanvasSnapshot, RecordingEvent, RecordingEventType, InFlightAnimation, Checkpoint, RecordingData, } from './recording';
1
+ export type { EasingName } from './easing.js';
2
+ export type { StepContext, TimelineStep, TimelineEvent, TimelineState, TimelineCanvas, } from './timeline.js';
3
+ export { resolveEasing } from './easing.js';
4
+ export { lerpNumber, interpolateColor, parseStyle, interpolateStyle, lerpViewport } from './interpolators.js';
5
+ export { drawInOffset, drawOutOffset, fadeOpacity, applyDrawTransition, cleanupDrawTransition, applyFadeTransition, cleanupFadeTransition, } from './edge-transitions.js';
6
+ export type { PathFunction, OrbitConfig, WaveConfig, AlongConfig, PendulumConfig, DriftConfig } from './paths.js';
7
+ export { svgPathToFunction, orbit, wave, along, pendulum, drift, stagger, _clearPathCache } from './paths.js';
8
+ export { engine, AnimationEngine, type TickCallback, type EngineHandle } from './engine.js';
9
+ export { FlowTimeline } from './timeline.js';
10
+ export { Animator, type PropertyEntry, type AnimateInternalOptions, type AnimationHandle } from './animator.js';
11
+ export { HandleRegistry, type Taggable } from './handle-registry.js';
12
+ export { Transaction, type TransactionState } from './transaction.js';
13
+ export { FlowGroup, type FlowGroupHost } from './flow-group.js';
14
+ export { registerParticleRenderer, getParticleRenderer, hasParticleRenderer, circleRenderer, orbRenderer, beamRenderer, pulseRenderer, imageRenderer } from './particle-renderers.js';
15
+ export type { ParticleRenderer, ParticleRenderState } from '../core/types.js';
16
+ export { resolveMotion, stepSpring, SPRING_DEFAULTS } from './motion/index.js';
17
+ export type { MotionConfig, SpringMotion, DecayMotion, InertiaMotion, KeyframesMotion, PhysicsState } from './motion/index.js';
18
+ export { Recording, RECORDING_VERSION } from './recording/index.js';
19
+ export type { CanvasSnapshot, RecordingEvent, RecordingEventType, InFlightAnimation, Checkpoint, RecordingData, } from './recording/index.js';
@@ -1,4 +1,4 @@
1
- import type { Viewport } from '../core/types';
1
+ import type { Viewport } from '../core/types.js';
2
2
  /** Linear interpolation between two numbers. */
3
3
  export declare function lerpNumber(a: number, b: number, t: number): number;
4
4
  /** Interpolate between two CSS color strings using d3-interpolateRgb. */
@@ -1,4 +1,4 @@
1
- import type { DecayMotion, PhysicsState } from './types';
1
+ import type { DecayMotion, PhysicsState } from './types.js';
2
2
  export declare const DECAY_DEFAULTS: {
3
3
  power: number;
4
4
  timeConstant: number;
@@ -1,7 +1,7 @@
1
- export * from './types';
2
- export { stepSpring, SPRING_DEFAULTS } from './spring';
3
- export { stepDecay, DECAY_DEFAULTS } from './decay';
4
- export { stepInertia } from './inertia';
5
- export { stepKeyframes } from './keyframes';
6
- export { resolveMotion } from './presets';
7
- export { extractAxis } from './axis';
1
+ export * from './types.js';
2
+ export { stepSpring, SPRING_DEFAULTS } from './spring.js';
3
+ export { stepDecay, DECAY_DEFAULTS } from './decay.js';
4
+ export { stepInertia } from './inertia.js';
5
+ export { stepKeyframes } from './keyframes.js';
6
+ export { resolveMotion } from './presets.js';
7
+ export { extractAxis } from './axis.js';
@@ -1,2 +1,2 @@
1
- import type { InertiaMotion, PhysicsState } from './types';
1
+ import type { InertiaMotion, PhysicsState } from './types.js';
2
2
  export declare function stepInertia(state: PhysicsState, config: InertiaMotion, dt: number, key?: string): void;
@@ -1,3 +1,3 @@
1
- import type { KeyframesMotion, PhysicsState } from './types';
1
+ import type { KeyframesMotion, PhysicsState } from './types.js';
2
2
  export declare function stepKeyframes(state: PhysicsState, config: KeyframesMotion, progress: number, // 0-1 overall
3
3
  key: string): void;
@@ -1,2 +1,2 @@
1
- import type { MotionConfig } from './types';
1
+ import type { MotionConfig } from './types.js';
2
2
  export declare function resolveMotion(input: string | MotionConfig): MotionConfig | null;
@@ -1,4 +1,4 @@
1
- import type { SpringMotion, PhysicsState } from './types';
1
+ import type { SpringMotion, PhysicsState } from './types.js';
2
2
  export declare const SPRING_DEFAULTS: {
3
3
  stiffness: number;
4
4
  damping: number;
@@ -1,4 +1,4 @@
1
- import type { ParticleRenderer } from '../core/types';
1
+ import type { ParticleRenderer } from '../core/types.js';
2
2
  export declare function registerParticleRenderer(name: string, renderer: ParticleRenderer): void;
3
3
  export declare function getParticleRenderer(name: string): ParticleRenderer | undefined;
4
4
  export declare function hasParticleRenderer(name: string): boolean;
@@ -1,4 +1,4 @@
1
- import type { RecordingEvent } from './types';
1
+ import type { RecordingEvent } from './types.js';
2
2
  /**
3
3
  * Binary-search the first event index whose `t` is strictly greater than `t`.
4
4
  * Events are assumed to be sorted by `t` ascending (guaranteed by the Recorder).
@@ -1,7 +1,7 @@
1
- export * from './types';
2
- export { Recording } from './recording';
3
- export { VirtualEngine, REPLAY_DT } from './virtual-engine';
4
- export { Recorder, type RecorderCanvas, type RecordOptions } from './recorder';
5
- export { ReplayHandle, type ReplayOptions, type ReplayCanvas, type ReplayState, type ReplayDirection, } from './replay';
6
- export { registerThumbnailRenderer, getThumbnailRenderer, hasThumbnailRenderer, faithfulRenderer, outlineRenderer, activityRenderer, } from './thumbnail';
7
- export type { ThumbnailRenderer, ThumbnailRenderOptions } from './thumbnail';
1
+ export * from './types.js';
2
+ export { Recording } from './recording.js';
3
+ export { VirtualEngine, REPLAY_DT } from './virtual-engine.js';
4
+ export { Recorder, type RecorderCanvas, type RecordOptions } from './recorder.js';
5
+ export { ReplayHandle, type ReplayOptions, type ReplayCanvas, type ReplayState, type ReplayDirection, } from './replay.js';
6
+ export { registerThumbnailRenderer, getThumbnailRenderer, hasThumbnailRenderer, faithfulRenderer, outlineRenderer, activityRenderer, } from './thumbnail.js';
7
+ export type { ThumbnailRenderer, ThumbnailRenderOptions } from './thumbnail.js';
@@ -1,4 +1,4 @@
1
- import { Recording } from './recording';
1
+ import { Recording } from './recording.js';
2
2
  export interface RecordOptions {
3
3
  /** How often (in ms) to snapshot canvas state during recording. Default: 500ms. */
4
4
  checkpointInterval?: number;
@@ -1,4 +1,4 @@
1
- import type { RecordingData, RecordingEvent, Checkpoint, CanvasSnapshot } from './types';
1
+ import type { RecordingData, RecordingEvent, Checkpoint, CanvasSnapshot } from './types.js';
2
2
  export declare class Recording {
3
3
  readonly version: number;
4
4
  readonly duration: number;
@@ -1,5 +1,5 @@
1
- import type { RecordingEvent, CanvasSnapshot } from './types';
2
- import type { Recording } from './recording';
1
+ import type { RecordingEvent, CanvasSnapshot } from './types.js';
2
+ import type { Recording } from './recording.js';
3
3
  export interface ReplayOptions {
4
4
  /** Playback speed multiplier. Negative plays backward. Default 1.0. */
5
5
  speed?: number;
@@ -1,4 +1,4 @@
1
- import type { CanvasSnapshot, InFlightAnimation } from './types';
1
+ import type { CanvasSnapshot, InFlightAnimation } from './types.js';
2
2
  export interface ThumbnailRenderOptions {
3
3
  width: number;
4
4
  height: number;
@@ -1,6 +1,6 @@
1
- import type { FlowNode, FlowEdge, Viewport, AnimateTargets } from '../../core/types';
2
- import type { EasingName } from '../easing';
3
- import type { MotionConfig } from '../motion';
1
+ import type { FlowNode, FlowEdge, Viewport, AnimateTargets } from '../../core/types.js';
2
+ import type { EasingName } from '../easing.js';
3
+ import type { MotionConfig } from '../motion/index.js';
4
4
  export interface CanvasSnapshot {
5
5
  nodes: Record<string, Partial<FlowNode>>;
6
6
  edges: Record<string, Partial<FlowEdge>>;
@@ -1,4 +1,4 @@
1
- import type { CanvasSnapshot, RecordingEvent, Checkpoint } from './types';
1
+ import type { CanvasSnapshot, RecordingEvent, Checkpoint } from './types.js';
2
2
  /** Fixed virtual time step for deterministic replay (60 fps). */
3
3
  export declare const REPLAY_DT: number;
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { type EasingName } from './easing';
2
- import { AnimationEngine } from './engine';
3
- import { type PathFunction } from './paths';
4
- import type { FlowNode, FlowEdge, XYPosition, Dimensions, Viewport, AnimateTargets, AnimateOptions, FlowAnimationHandle } from '../core/types';
5
- import type { EdgeAnimationMode } from '../core/types';
1
+ import { type EasingName } from './easing.js';
2
+ import { AnimationEngine } from './engine.js';
3
+ import { type PathFunction } from './paths.js';
4
+ import type { FlowNode, FlowEdge, XYPosition, Dimensions, Viewport, AnimateTargets, AnimateOptions, FlowAnimationHandle } from '../core/types.js';
5
+ import type { EdgeAnimationMode } from '../core/types.js';
6
6
  export type StepContext<T extends Record<string, any> = Record<string, any>> = T & {
7
7
  stepIndex: number;
8
8
  stepId?: string;
@@ -1,4 +1,4 @@
1
- import type { AnimationHandle } from './animator';
1
+ import type { AnimationHandle } from './animator.js';
2
2
  export type TransactionState = 'active' | 'committed' | 'rolled-back';
3
3
  export declare class Transaction {
4
4
  private _handles;
@@ -1,5 +1,5 @@
1
1
  import type { Awareness } from 'y-protocols/awareness';
2
- import type { CollabUser, CollabAwarenessState, CollabInstance, CollabStatus } from './types';
2
+ import type { CollabUser, CollabAwarenessState, CollabInstance, CollabStatus } from './types.js';
3
3
  /**
4
4
  * CollabAwareness — Manages cursor positions, selections, and presence.
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import * as Y from 'yjs';
2
- import type { FlowNode, FlowEdge } from '../core/types';
3
- import type { CollabProvider } from './types';
2
+ import type { FlowNode, FlowEdge } from '../core/types.js';
3
+ import type { CollabProvider } from './types.js';
4
4
  interface ReactiveState {
5
5
  nodes: FlowNode[];
6
6
  edges: FlowEdge[];
@@ -1,5 +1,5 @@
1
1
  import type { Alpine } from 'alpinejs';
2
- import type { CollabAwarenessState } from '../types';
2
+ import type { CollabAwarenessState } from '../types.js';
3
3
  export declare const CURSOR_CLASS = "flow-collab-cursor";
4
4
  /**
5
5
  * Render remote user cursors into a container element.
@@ -1,8 +1,8 @@
1
1
  import type { Alpine } from 'alpinejs';
2
2
  import { Doc } from 'yjs';
3
3
  import { Awareness } from 'y-protocols/awareness';
4
- import { CollabBridge } from './bridge';
5
- import { CollabAwareness } from './awareness';
4
+ import { CollabBridge } from './bridge.js';
5
+ import { CollabAwareness } from './awareness.js';
6
6
  export interface CollabFactory {
7
7
  Doc: typeof Doc;
8
8
  Awareness: typeof Awareness;
@@ -10,10 +10,10 @@ export interface CollabFactory {
10
10
  CollabAwareness: typeof CollabAwareness;
11
11
  }
12
12
  export default function AlpineFlowCollab(Alpine: Alpine): void;
13
- export { CollabBridge } from './bridge';
14
- export { CollabAwareness } from './awareness';
15
- export { WebSocketProvider } from './providers/websocket';
16
- export { ReverbProvider } from './providers/reverb';
17
- export { InMemoryProvider, linkProviders } from './providers/in-memory';
18
- export { registerFlowCursorsDirective } from './directives/flow-cursors';
19
- export type { CollabProvider, CollabConfig, CollabInstance, CollabUser, CollabAwarenessState, CollabStatus, } from './types';
13
+ export { CollabBridge } from './bridge.js';
14
+ export { CollabAwareness } from './awareness.js';
15
+ export { WebSocketProvider } from './providers/websocket.js';
16
+ export { ReverbProvider } from './providers/reverb.js';
17
+ export { InMemoryProvider, linkProviders } from './providers/in-memory.js';
18
+ export { registerFlowCursorsDirective } from './directives/flow-cursors.js';
19
+ export type { CollabProvider, CollabConfig, CollabInstance, CollabUser, CollabAwarenessState, CollabStatus, } from './types.js';
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as Y from 'yjs';
9
9
  import { Awareness } from 'y-protocols/awareness';
10
- import type { CollabProvider, CollabStatus } from '../types';
10
+ import type { CollabProvider, CollabStatus } from '../types.js';
11
11
  interface InMemoryProviderConfig {
12
12
  roomId: string;
13
13
  }
@@ -1,7 +1,7 @@
1
1
  import { applyUpdate as yjsApplyUpdate, encodeStateAsUpdate, encodeStateVector } from 'yjs';
2
2
  import type { Doc as YDoc } from 'yjs';
3
3
  import type { Awareness } from 'y-protocols/awareness';
4
- import type { CollabProvider, CollabStatus, CollabUser } from '../types';
4
+ import type { CollabProvider, CollabStatus, CollabUser } from '../types.js';
5
5
  /** @internal Called by AlpineFlowCollab to share yjs function references. */
6
6
  export declare function setYjsFunctions(fns: {
7
7
  applyUpdate: typeof yjsApplyUpdate;
@@ -1,6 +1,6 @@
1
1
  import type { Doc as YDoc } from 'yjs';
2
2
  import type { Awareness } from 'y-protocols/awareness';
3
- import type { CollabProvider, CollabStatus, CollabUser } from '../types';
3
+ import type { CollabProvider, CollabStatus, CollabUser } from '../types.js';
4
4
  interface WebSocketProviderConfig {
5
5
  roomId: string;
6
6
  url: string;
@@ -11,8 +11,8 @@
11
11
  * when core loads from one bundle and the collab addon from another,
12
12
  * both must read/write the same WeakMap.
13
13
  */
14
- import type { CollabBridge } from './bridge';
15
- import type { CollabAwareness } from './awareness';
14
+ import type { CollabBridge } from './bridge.js';
15
+ import type { CollabAwareness } from './awareness.js';
16
16
  export interface CollabEntry {
17
17
  bridge: CollabBridge;
18
18
  awareness: CollabAwareness;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from '../types';
1
+ import type { FlowNode, FlowEdge } from '../types.js';
2
2
  export declare const nodeA: FlowNode;
3
3
  export declare const nodeB: FlowNode;
4
4
  export declare const nodeC: FlowNode;
@@ -4,17 +4,24 @@
4
4
  * Creates a visually-hidden div with aria-live="polite" that announces
5
5
  * flow diagram changes. Hooks into _emit() via handleEvent().
6
6
  */
7
- export type FormatAnnouncementFn = (event: string, detail: Record<string, any>) => string | null;
7
+ import { type Translator } from './translations.js';
8
+ /**
9
+ * Custom announcement formatter. Receives the canvas translator as third
10
+ * argument so it can localise its own strings or delegate to
11
+ * {@link defaultFormatAnnouncement} for events it does not handle.
12
+ */
13
+ export type FormatAnnouncementFn = (event: string, detail: Record<string, any>, t: Translator) => string | null;
8
14
  /**
9
15
  * Default event-to-announcement formatter.
10
16
  * Returns null for events that should not be announced.
11
17
  */
12
- export declare function defaultFormatAnnouncement(event: string, detail: Record<string, any>): string | null;
18
+ export declare function defaultFormatAnnouncement(event: string, detail: Record<string, any>, t?: Translator): string | null;
13
19
  export declare class FlowAnnouncer {
14
20
  private _el;
15
21
  private _clearTimer;
16
22
  private _formatMessage;
17
- constructor(container: HTMLElement, formatMessage?: FormatAnnouncementFn);
23
+ private _t;
24
+ constructor(container: HTMLElement, formatMessage?: FormatAnnouncementFn, t?: Translator);
18
25
  announce(message: string): void;
19
26
  handleEvent(event: string, detail: Record<string, any>): void;
20
27
  destroy(): void;
@@ -1,4 +1,4 @@
1
- import type { FlowNode, ChildLayout, XYPosition, Dimensions } from './types';
1
+ import type { FlowNode, ChildLayout, XYPosition, Dimensions } from './types.js';
2
2
  /** Result of a child layout computation. */
3
3
  export interface ChildLayoutResult {
4
4
  /** New positions for each child (relative to parent). */
@@ -1,4 +1,4 @@
1
- import type { FlowNode, ChildValidation, ChildValidationResult } from './types';
1
+ import type { FlowNode, ChildValidation, ChildValidationResult } from './types.js';
2
2
  /**
3
3
  * Resolve the effective ChildValidation rules for a parent node.
4
4
  * Shallow-merges type-registry defaults with per-node overrides.
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge } from './types';
1
+ import type { FlowNode, FlowEdge } from './types.js';
2
2
  /**
3
3
  * Copy selected nodes and their internal edges to the clipboard.
4
4
  * "Internal" means both source and target are in the selection.
@@ -1,4 +1,4 @@
1
- import type { FlowNode, FlowEdge, Dimensions, XYPosition } from './types';
1
+ import type { FlowNode, FlowEdge, Dimensions, XYPosition } from './types.js';
2
2
  /** Saved state needed to restore a node after expanding. */
3
3
  export interface CollapseState {
4
4
  targetPositions: Map<string, XYPosition>;
@@ -4,7 +4,7 @@
4
4
  * Nodes register compute functions by type. The engine runs in topological
5
5
  * order, routing outputs through edges via handle port names.
6
6
  */
7
- import type { FlowNode, FlowEdge } from './types';
7
+ import type { FlowNode, FlowEdge } from './types.js';
8
8
  export interface ComputeDefinition {
9
9
  /** Compute function. Receives gathered inputs (keyed by target handle name)
10
10
  * and the node's own data object. Returns outputs keyed by output port name. */
@@ -1,4 +1,4 @@
1
- import type { XYPosition, HandlePosition, Connection, ConnectionRules, FlowNode } from './types';
1
+ import type { XYPosition, HandlePosition, Connection, ConnectionRules, FlowNode } from './types.js';
2
2
  export interface HandleBounds {
3
3
  nodeId: string;
4
4
  handleId: string;
@@ -1,4 +1,7 @@
1
+ import { type Translator } from './translations.js';
1
2
  export interface ControlsPanelOptions {
3
+ /** Canvas translator for button titles. Defaults to English. */
4
+ t?: Translator;
2
5
  position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
3
6
  orientation: 'vertical' | 'horizontal';
4
7
  showZoom: boolean;