@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,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 { 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 { 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
|
-
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;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "@getartisanflow/alpineflow",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5-alpha",
|
|
5
5
|
"description": "Interactive flowchart and node-graph engine for Alpine.js — drag-and-drop nodes, edges, animations, collaboration, and layout algorithms.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"alpinejs",
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
"dist/"
|
|
85
85
|
],
|
|
86
86
|
"scripts": {
|
|
87
|
-
"build": "vite build &&
|
|
87
|
+
"build": "vite build && npm run build:types && npm run build:locales && npm run build:css && npm run build:bundle && npm run build:addons",
|
|
88
|
+
"build:types": "tsc && node scripts/fix-dts-extensions.mjs",
|
|
88
89
|
"build:locales": "mkdir -p dist/locales && cp locales/*.json dist/locales/",
|
|
89
90
|
"build:css": "cp css/structural.css dist/alpineflow.css && cp css/theme-default.css dist/alpineflow-theme.css",
|
|
90
91
|
"build:bundle": "vite build --config vite.bundle.config.ts",
|