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