@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.
- package/dist/alpineflow-collab.esm.js.map +1 -1
- package/dist/alpineflow-collab.js.map +1 -1
- package/dist/alpineflow-workflow.esm.js.map +1 -1
- package/dist/alpineflow.bundle.esm.js +2006 -1983
- package/dist/alpineflow.bundle.esm.js.map +1 -1
- package/dist/alpineflow.esm.js +2 -2
- package/dist/alpineflow.js +1 -1
- package/dist/{index-CvQXC8Md.js → index-iNX5XDHl.js} +1489 -1466
- package/dist/index-iNX5XDHl.js.map +1 -0
- package/dist/types/lib/collab.d.ts +2 -2
- package/dist/types/lib/core.d.ts +2 -2
- package/dist/types/lib/dagre.d.ts +1 -1
- package/dist/types/lib/elk.d.ts +1 -1
- package/dist/types/lib/force.d.ts +1 -1
- package/dist/types/lib/hierarchy.d.ts +1 -1
- package/dist/types/lib/schema.d.ts +2 -2
- package/dist/types/lib/whiteboard.d.ts +1 -1
- package/dist/types/lib/workflow.d.ts +2 -2
- package/dist/types/src/animate/animator.d.ts +6 -6
- package/dist/types/src/animate/clamp-dimensions.d.ts +1 -1
- package/dist/types/src/animate/flow-group.d.ts +1 -1
- package/dist/types/src/animate/handle-registry.d.ts +1 -1
- package/dist/types/src/animate/index.d.ts +19 -19
- package/dist/types/src/animate/interpolators.d.ts +1 -1
- package/dist/types/src/animate/motion/decay.d.ts +1 -1
- package/dist/types/src/animate/motion/index.d.ts +7 -7
- package/dist/types/src/animate/motion/inertia.d.ts +1 -1
- package/dist/types/src/animate/motion/keyframes.d.ts +1 -1
- package/dist/types/src/animate/motion/presets.d.ts +1 -1
- package/dist/types/src/animate/motion/spring.d.ts +1 -1
- package/dist/types/src/animate/particle-renderers.d.ts +1 -1
- package/dist/types/src/animate/recording/event-cursor.d.ts +1 -1
- package/dist/types/src/animate/recording/index.d.ts +7 -7
- package/dist/types/src/animate/recording/recorder.d.ts +1 -1
- package/dist/types/src/animate/recording/recording.d.ts +1 -1
- package/dist/types/src/animate/recording/replay.d.ts +2 -2
- package/dist/types/src/animate/recording/thumbnail.d.ts +1 -1
- package/dist/types/src/animate/recording/types.d.ts +3 -3
- package/dist/types/src/animate/recording/virtual-engine.d.ts +1 -1
- package/dist/types/src/animate/timeline.d.ts +5 -5
- package/dist/types/src/animate/transaction.d.ts +1 -1
- package/dist/types/src/collab/awareness.d.ts +1 -1
- package/dist/types/src/collab/bridge.d.ts +2 -2
- package/dist/types/src/collab/directives/flow-cursors.d.ts +1 -1
- package/dist/types/src/collab/index.d.ts +9 -9
- package/dist/types/src/collab/providers/in-memory.d.ts +1 -1
- package/dist/types/src/collab/providers/reverb.d.ts +1 -1
- package/dist/types/src/collab/providers/websocket.d.ts +1 -1
- package/dist/types/src/collab/store.d.ts +2 -2
- package/dist/types/src/core/__fixtures__/nodes.d.ts +1 -1
- package/dist/types/src/core/announcer.d.ts +1 -1
- package/dist/types/src/core/child-layout.d.ts +1 -1
- package/dist/types/src/core/child-validation.d.ts +1 -1
- package/dist/types/src/core/clipboard.d.ts +1 -1
- package/dist/types/src/core/collapse.d.ts +1 -1
- package/dist/types/src/core/compute.d.ts +1 -1
- package/dist/types/src/core/connections.d.ts +1 -1
- package/dist/types/src/core/controls-panel.d.ts +1 -1
- package/dist/types/src/core/crossing-reduction.d.ts +2 -2
- package/dist/types/src/core/drag.d.ts +1 -1
- package/dist/types/src/core/edge-paths/avoidant.d.ts +3 -3
- package/dist/types/src/core/edge-paths/bezier.d.ts +2 -2
- package/dist/types/src/core/edge-paths/editable.d.ts +2 -2
- package/dist/types/src/core/edge-paths/index.d.ts +7 -7
- package/dist/types/src/core/edge-paths/orthogonal.d.ts +2 -2
- package/dist/types/src/core/edge-paths/smoothstep.d.ts +2 -2
- package/dist/types/src/core/edge-paths/straight.d.ts +1 -1
- package/dist/types/src/core/edge-paths/utils.d.ts +1 -1
- package/dist/types/src/core/edge-utils.d.ts +3 -3
- package/dist/types/src/core/endpoint-spread.d.ts +1 -1
- package/dist/types/src/core/export.d.ts +1 -1
- package/dist/types/src/core/floating-edge.d.ts +1 -1
- package/dist/types/src/core/geometry.d.ts +1 -1
- package/dist/types/src/core/gradients.d.ts +1 -1
- package/dist/types/src/core/graph.d.ts +1 -1
- package/dist/types/src/core/helper-lines.d.ts +1 -1
- package/dist/types/src/core/history.d.ts +1 -1
- package/dist/types/src/core/index.d.ts +17 -17
- package/dist/types/src/core/intersection.d.ts +1 -1
- package/dist/types/src/core/lasso-hit-test.d.ts +1 -1
- package/dist/types/src/core/lasso.d.ts +2 -2
- package/dist/types/src/core/layout/dagre.d.ts +1 -1
- package/dist/types/src/core/layout/elk.d.ts +1 -1
- package/dist/types/src/core/layout/force.d.ts +1 -1
- package/dist/types/src/core/layout/hierarchy.d.ts +1 -1
- package/dist/types/src/core/minimap.d.ts +1 -1
- package/dist/types/src/core/pan-zoom.d.ts +10 -4
- package/dist/types/src/core/proximity-connect.d.ts +1 -1
- package/dist/types/src/core/render-plan.d.ts +1 -1
- package/dist/types/src/core/resize.d.ts +1 -1
- package/dist/types/src/core/schema-geometry.d.ts +1 -1
- package/dist/types/src/core/selection-box.d.ts +1 -1
- package/dist/types/src/core/shapes.d.ts +1 -1
- package/dist/types/src/core/sub-flow.d.ts +1 -1
- package/dist/types/src/core/types.d.ts +11 -11
- package/dist/types/src/index.d.ts +31 -31
- package/dist/types/src/plugin/connection-utils.d.ts +3 -3
- package/dist/types/src/plugin/data/__real-canvas-harness.d.ts +1 -1
- package/dist/types/src/plugin/data/__test-utils.d.ts +1 -1
- package/dist/types/src/plugin/data/canvas-animation.d.ts +13 -13
- package/dist/types/src/plugin/data/canvas-batch.d.ts +1 -1
- package/dist/types/src/plugin/data/canvas-collapse.d.ts +1 -1
- package/dist/types/src/plugin/data/canvas-compute.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-condense.d.ts +1 -1
- package/dist/types/src/plugin/data/canvas-config.d.ts +1 -1
- package/dist/types/src/plugin/data/canvas-context.d.ts +21 -21
- package/dist/types/src/plugin/data/canvas-dom.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-edges.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-history.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-layout.d.ts +4 -4
- package/dist/types/src/plugin/data/canvas-nodes.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-particles.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-rows.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-selection.d.ts +1 -1
- package/dist/types/src/plugin/data/canvas-validation.d.ts +2 -2
- package/dist/types/src/plugin/data/canvas-viewport.d.ts +4 -4
- package/dist/types/src/plugin/directives/flow-edge.d.ts +1 -1
- package/dist/types/src/plugin/directives/flow-handle-validate.d.ts +1 -1
- package/dist/types/src/plugin/directives/flow-handle.d.ts +2 -2
- package/dist/types/src/plugin/drag-validation.d.ts +1 -1
- package/dist/types/src/plugin/handle-index.d.ts +1 -1
- package/dist/types/src/schema/canvas-augmentation.test-d.d.ts +1 -1
- package/dist/types/src/schema/diff.d.ts +1 -1
- package/dist/types/src/schema/dot.d.ts +1 -1
- package/dist/types/src/schema/field-ops.d.ts +1 -1
- package/dist/types/src/schema/history.d.ts +1 -1
- package/dist/types/src/schema/index.d.ts +24 -24
- package/dist/types/src/schema/layout.d.ts +1 -1
- package/dist/types/src/schema/references.d.ts +1 -1
- package/dist/types/src/schema/serialization.d.ts +1 -1
- package/dist/types/src/schema/types.d.ts +1 -1
- package/dist/types/src/schema/validate.d.ts +1 -1
- package/dist/types/src/workflow/condition.d.ts +1 -1
- package/dist/types/src/workflow/index.d.ts +3 -3
- package/dist/types/src/workflow/replay.d.ts +1 -1
- package/dist/types/src/workflow/run.d.ts +1 -1
- package/dist/types/src/workflow/types.d.ts +3 -3
- package/package.json +3 -2
- package/dist/index-CvQXC8Md.js.map +0 -1
|
@@ -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';
|
package/dist/types/lib/core.d.ts
CHANGED
|
@@ -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';
|
package/dist/types/lib/elk.d.ts
CHANGED
|
@@ -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 { 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,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,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,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 { 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,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 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,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,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,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;
|
|
@@ -4,7 +4,7 @@
|
|
|
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
|
-
import { type Translator } from './translations';
|
|
7
|
+
import { type Translator } from './translations.js';
|
|
8
8
|
/**
|
|
9
9
|
* Custom announcement formatter. Receives the canvas translator as third
|
|
10
10
|
* argument so it can localise its own strings or delegate to
|
|
@@ -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, 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,5 +1,5 @@
|
|
|
1
|
-
import { type RoutePoint } from './edge-paths/orthogonal';
|
|
2
|
-
import type { Rect } from './types';
|
|
1
|
+
import { type RoutePoint } from './edge-paths/orthogonal.js';
|
|
2
|
+
import type { Rect } from './types.js';
|
|
3
3
|
export type CrossingReductionConfig = boolean | {
|
|
4
4
|
channelGap?: number;
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HandlePosition, Rect } from '../types';
|
|
2
|
-
import type { EdgePathResult } from './utils';
|
|
3
|
-
import { type RoutePoint } from './orthogonal';
|
|
1
|
+
import type { HandlePosition, Rect } from '../types.js';
|
|
2
|
+
import type { EdgePathResult } from './utils.js';
|
|
3
|
+
import { type RoutePoint } from './orthogonal.js';
|
|
4
4
|
export interface AvoidantPathParams {
|
|
5
5
|
sourceX: number;
|
|
6
6
|
sourceY: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HandlePosition } from '../types';
|
|
2
|
-
import { type EdgePathResult } from './utils';
|
|
1
|
+
import type { HandlePosition } from '../types.js';
|
|
2
|
+
import { type EdgePathResult } from './utils.js';
|
|
3
3
|
interface BezierPathParams {
|
|
4
4
|
sourceX: number;
|
|
5
5
|
sourceY: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HandlePosition } from '../types';
|
|
2
|
-
import { type EdgePathResult } from './utils';
|
|
1
|
+
import type { HandlePosition } from '../types.js';
|
|
2
|
+
import { type EdgePathResult } from './utils.js';
|
|
3
3
|
export type EditablePathStyle = 'linear' | 'step' | 'smoothstep' | 'catmull-rom' | 'bezier';
|
|
4
4
|
export interface EditablePathParams {
|
|
5
5
|
sourceX: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { getAvoidantPath, buildCatmullRomPath } from './avoidant';
|
|
2
|
-
export { getBezierPath, getSimpleBezierPath } from './bezier';
|
|
3
|
-
export { getOrthogonalPath } from './orthogonal';
|
|
4
|
-
export { getSmoothStepPath, getStepPath } from './smoothstep';
|
|
5
|
-
export { getStraightPath } from './straight';
|
|
6
|
-
export { getEditablePath, type EditablePathStyle } from './editable';
|
|
7
|
-
export { getEdgeCenter, type EdgePathResult } from './utils';
|
|
1
|
+
export { getAvoidantPath, buildCatmullRomPath } from './avoidant.js';
|
|
2
|
+
export { getBezierPath, getSimpleBezierPath } from './bezier.js';
|
|
3
|
+
export { getOrthogonalPath } from './orthogonal.js';
|
|
4
|
+
export { getSmoothStepPath, getStepPath } from './smoothstep.js';
|
|
5
|
+
export { getStraightPath } from './straight.js';
|
|
6
|
+
export { getEditablePath, type EditablePathStyle } from './editable.js';
|
|
7
|
+
export { getEdgeCenter, type EdgePathResult } from './utils.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HandlePosition, Rect } from '../types';
|
|
2
|
-
import { type EdgePathResult } from './utils';
|
|
1
|
+
import type { HandlePosition, Rect } from '../types.js';
|
|
2
|
+
import { type EdgePathResult } from './utils.js';
|
|
3
3
|
export declare const OBSTACLE_PADDING = 20;
|
|
4
4
|
export interface OrthogonalPathParams {
|
|
5
5
|
sourceX: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HandlePosition } from '../types';
|
|
2
|
-
import { type EdgePathResult } from './utils';
|
|
1
|
+
import type { HandlePosition } from '../types.js';
|
|
2
|
+
import { type EdgePathResult } from './utils.js';
|
|
3
3
|
interface SmoothStepPathParams {
|
|
4
4
|
sourceX: number;
|
|
5
5
|
sourceY: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FlowEdge, FlowNode, HandlePosition, Rect, ShapeDefinition } from './types';
|
|
2
|
-
import type { MarkerType, MarkerConfig } from './markers';
|
|
3
|
-
import type { EdgePathResult } from './edge-paths/utils';
|
|
1
|
+
import type { FlowEdge, FlowNode, HandlePosition, Rect, ShapeDefinition } from './types.js';
|
|
2
|
+
import type { MarkerType, MarkerConfig } from './markers.js';
|
|
3
|
+
import type { EdgePathResult } from './edge-paths/utils.js';
|
|
4
4
|
/**
|
|
5
5
|
* Compute the x,y coordinates where an edge connects to a node based on
|
|
6
6
|
* the handle's position (top/right/bottom/left + corners).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HandlePosition } from './types';
|
|
1
|
+
import type { HandlePosition } from './types.js';
|
|
2
2
|
/** Default px gap between adjacent lanes when spacing isn't specified. */
|
|
3
3
|
export declare const DEFAULT_SPREAD_SPACING = 5;
|
|
4
4
|
/** Resolve the desired lane spacing from the config value; null = disabled. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { XYPosition, FlowNode, HandlePosition } from './types';
|
|
1
|
+
import type { XYPosition, FlowNode, HandlePosition } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Compute the intersection point where a line from a node's center toward
|
|
4
4
|
* a target point crosses the node's rectangular boundary.
|