@fragiola/flow 0.0.0 → 0.1.0

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 (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +18 -5
  3. package/package.json +2 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # @fragiola/flow
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#72](https://github.com/fragiola/flow/pull/72) [`e3abda6`](https://github.com/fragiola/flow/commit/e3abda6bbb1422de6c06f9fad041d8c3cc6613c3) Thanks [@maurodesouza](https://github.com/maurodesouza)! - The framework-free core of Fragiola Flow, headless node-based editors and diagrams: the version 1
8
+ document (nodes, edges, handles) and its JSON Schema with `validateFlow` and
9
+ `FlowValidationError`; `createFlowModel`, a typed model whose every change is a command (`node.*`,
10
+ `edge.*`, `batch`) behind the five verbs `run`, `can`, `check`, `get` and `is`, with middleware
11
+ for connection rules; the engine that binds a flow to the DOM (the viewport with pan, zoom,
12
+ `fit-view` and `center-on`, node and handle measurement, edge paths for `bezier`,
13
+ `simplebezier`, `smoothstep`, `step` and `straight`, Pointer Events gestures for mouse, touch and
14
+ pen, z-order, the part attributes); and the opt-in features, each on its own entry:
15
+ `selection()`, `drag()`, `connection()`, `reconnection()`, `resize()`, `subflows()`,
16
+ `keyboard()` and `minimap()`. Zero runtime dependencies, no CSS.
package/README.md CHANGED
@@ -5,9 +5,22 @@ with its JSON Schema, a typed model whose every change is a command (`run`, `can
5
5
  `is`), opt-in features and the engine that binds a flow to the DOM (viewport, measurement, handles,
6
6
  edge paths, gestures). Zero runtime dependencies, no CSS.
7
7
 
8
- Not usable yet: version `0.0.0`, nothing is published. The model is in (`createFlowModel`,
9
- `validateFlow`, the commands, the features on their subpaths: `@fragiola/flow/selection`,
10
- `/subflows`, `/drag`, `/resize`, `/connection`, `/reconnection`, `/keyboard`, `/minimap`); the
11
- engine comes next.
8
+ The opt-in features are on their own entries: `@fragiola/flow/selection`, `/subflows`, `/drag`,
9
+ `/resize`, `/connection`, `/reconnection`, `/keyboard`, `/minimap`.
12
10
 
13
- Documentation: **<https://fragiola.com/flow>** (coming soon). ESM only.
11
+ An app installs its framework's package instead, which re-exports all of this:
12
+ [`@fragiola/flow-react`](https://www.npmjs.com/package/@fragiola/flow-react),
13
+ [`@fragiola/flow-vue`](https://www.npmjs.com/package/@fragiola/flow-vue),
14
+ [`@fragiola/flow-svelte`](https://www.npmjs.com/package/@fragiola/flow-svelte) or
15
+ [`@fragiola/flow-angular`](https://www.npmjs.com/package/@fragiola/flow-angular).
16
+ Install the core alone for Node, tests or another framework:
17
+
18
+ ```sh
19
+ pnpm add @fragiola/flow
20
+ ```
21
+
22
+ Documentation: **<https://fragiola.com/flow>**. ESM only.
23
+
24
+ ## Licence
25
+
26
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragiola/flow",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "Headless node-based editors and diagrams core: the flow document and its JSON Schema, a typed model with commands, opt-in features (selection, sub-flows, drag, resize, connection, reconnection, keyboard, minimap), and the engine that binds a flow to the DOM.",
5
5
  "keywords": [
6
6
  "flow",
@@ -77,6 +77,7 @@
77
77
  "files": [
78
78
  "dist",
79
79
  "README.md",
80
+ "CHANGELOG.md",
80
81
  "LICENSE"
81
82
  ],
82
83
  "devDependencies": {