@janiscommerce/ui-web 1.12.0 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.0.0] - 2026-07-02
11
+
12
+ ### Changed
13
+
14
+ - **BREAKING** `DiagramCanvas` `onNodeClick` now receives `{ id, type, data }` (was `(id, data)`) and `onEdgeClick` now receives `{ id, data }` (was `(id, data)`)
15
+ - **BREAKING** `DiagramCanvas` `onReconnect` now receives `{ id, source, target, sourceHandle, targetHandle }` (was `(id, { source, target })`), preserving the connection handles
16
+ - `DiagramCanvas` `onBeforeDelete` now receives sanitized domain objects `{ nodes: [{ id, type, data }], edges: [{ id, data }] }` instead of raw React Flow objects
17
+
18
+ ### Added
19
+
20
+ - `DiagramCanvas` `onBeforeDelete` can now return `{ nodes, edges }` to delete only a subset of the selection (selective deletion), in addition to `true`/`false`
21
+ - `DiagramCanvas` `config.fitViewOnMount` (default `true`) to fit the whole diagram into view on mount without animation
22
+
10
23
  ## [1.12.0] - 2026-06-26
11
24
 
12
25
  ### Changed