diff --git a/.changeset/block-palette-adding.md b/.changeset/block-palette-adding.md deleted file mode 100644 index 536aef9..0000000 --- a/.changeset/block-palette-adding.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"struktolab": minor ---- - -Rework adding nodes in the editor. - -- A block palette under the toolbar: drag a block into the diagram, or pick it and then pick the place. Works the same with mouse, pen, finger and keyboard. -- While placing or moving, the diagram opens a gap with a "+" block at every place the block can go, so targets are big, never overlap, and sit exactly where the node will land. This also fixes nodes that could not be added at the end of an if/else branch. -- Empty branches, cases, loop bodies and the end of the diagram show a "+" block at all times; an if/else with two empty branches gets a body to click into. -- A new node opens its text editor right away; on touch, tapping a selected node again edits it. -- Every node gets a "+" button to insert after it; a do-while's buttons sit in its footer so they are reachable, and a switch's "+ Case" button no longer overlaps them. -- Moving a node out of a body no longer leaves a duplicate slot behind. diff --git a/packages/struktolab/CHANGELOG.md b/packages/struktolab/CHANGELOG.md index f163c98..f48ca33 100644 --- a/packages/struktolab/CHANGELOG.md +++ b/packages/struktolab/CHANGELOG.md @@ -1,5 +1,18 @@ # struktolab +## 0.7.0 + +### Minor Changes + +- 21daee0: Rework adding nodes in the editor. + + - A block palette under the toolbar: drag a block into the diagram, or pick it and then pick the place. Works the same with mouse, pen, finger and keyboard. + - While placing or moving, the diagram opens a gap with a "+" block at every place the block can go, so targets are big, never overlap, and sit exactly where the node will land. This also fixes nodes that could not be added at the end of an if/else branch. + - Empty branches, cases, loop bodies and the end of the diagram show a "+" block at all times; an if/else with two empty branches gets a body to click into. + - A new node opens its text editor right away; on touch, tapping a selected node again edits it. + - Every node gets a "+" button to insert after it; a do-while's buttons sit in its footer so they are reachable, and a switch's "+ Case" button no longer overlaps them. + - Moving a node out of a body no longer leaves a duplicate slot behind. + ## 0.6.3 ### Patch Changes diff --git a/packages/struktolab/package.json b/packages/struktolab/package.json index c0c63b6..56b8c91 100644 --- a/packages/struktolab/package.json +++ b/packages/struktolab/package.json @@ -1,6 +1,6 @@ { "name": "struktolab", - "version": "0.6.3", + "version": "0.7.0", "description": "A web-based structogram (Nassi-Shneiderman diagram) editor and renderer with code generation", "type": "module", "main": "dist/editor/struktolab-editor.umd.js", diff --git a/platforms/vscode/CHANGELOG.md b/platforms/vscode/CHANGELOG.md index e041064..0a33b2a 100644 --- a/platforms/vscode/CHANGELOG.md +++ b/platforms/vscode/CHANGELOG.md @@ -1,5 +1,12 @@ # struktolab-studio +## 0.5.4 + +### Patch Changes + +- Updated dependencies [21daee0] + - struktolab@0.7.0 + ## 0.5.3 ### Patch Changes diff --git a/platforms/vscode/package.json b/platforms/vscode/package.json index b69d53c..88bdf73 100644 --- a/platforms/vscode/package.json +++ b/platforms/vscode/package.json @@ -2,7 +2,7 @@ "name": "struktolab-studio", "displayName": "StruktoLab Studio", "description": "Visual editor for .struktolab files — Nassi-Shneiderman structograms", - "version": "0.5.3", + "version": "0.5.4", "publisher": "openpatch", "author": "Mike Barkmin", "license": "MIT", diff --git a/platforms/web/CHANGELOG.md b/platforms/web/CHANGELOG.md index a1e77f1..9fb8375 100644 --- a/platforms/web/CHANGELOG.md +++ b/platforms/web/CHANGELOG.md @@ -1,5 +1,12 @@ # web +## 0.5.4 + +### Patch Changes + +- Updated dependencies [21daee0] + - struktolab@0.7.0 + ## 0.5.3 ### Patch Changes diff --git a/platforms/web/package.json b/platforms/web/package.json index a58b22e..fec3a11 100644 --- a/platforms/web/package.json +++ b/platforms/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "0.5.3", + "version": "0.5.4", "description": "The StruktoLab web app, served at struktolab.openpatch.org", "private": true, "type": "module",