From a7228ab5d173859f1a1e17b7fc7fb5878829fbf4 Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 19 Sep 2023 15:31:05 +0200 Subject: [PATCH 1/2] chore(svelte): add changelog --- packages/svelte/CHANGELOG.md | 71 ++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 packages/svelte/CHANGELOG.md diff --git a/packages/svelte/CHANGELOG.md b/packages/svelte/CHANGELOG.md new file mode 100644 index 00000000..1ad9f983 --- /dev/null +++ b/packages/svelte/CHANGELOG.md @@ -0,0 +1,71 @@ +## 0.0.19 + +- make it possible to change edge type dynamically +- fix hiden attribute for nodes and edges +- add `useUpdateNodeInternals` hook + +## 0.0.18 + +- add `nodesDraggable` prop +- minimap: add default background + +## 0.0.17 + +- export `useStore` to access internals + +## 0.0.16 + +- center edge label by default + +## 0.0.15 + +- fix wrongly displayed connectionline + +## 0.0.14 + +- export css correctly + +## 0.0.13 + +- from now on it's necessary to import the styles like `@xyflow/svelte/styles/style.css` or `@xyflow/svelte/styles/base.css`. This makes it easier to work with tailwind or overwrite styles with regular CSS. + +## 0.0.7 ... 0.0.12 + +- fix event handlers and rename from `on:node:click` to `on:nodeclick` +- add `panActivationKey` prop +- elevate nodes by default when selected +- use css vars internally and let users overwrite them + +## 0.0.6 + +- use svelte 4 + +## 0.0.5 + +this release fixes the path bug introduced in 0.0.4 + +## 0.0.4 + +this version is broken because of a wrong path in the package.json + +## 0.0.3 + +- add `snapGrid` prop +- add `onlyRenderVisibleElements` prop +- cleanup some exports and types + +## 0.0.2 + +- add `connectionRadius` + +## 0.0.1 + +Svelte Flow alpha is here 🔥 You can expect some changes until we reach 1.0.0 but we try to stick as close as possible to the React Flow API. There are no docs yet, but we are working on it! For now the easiest way is to use the autocomplete of your IDE, lookup the props in the SvelteFlow component or check out the React Flow docs. + +This very first release comes with lots of features already: + +- pass `nodes` and `edges` as writables +- draggable, selectable and deletable nodes +- support for custom `nodeTypes` and `edgeTypes` +- basic viewport settings like `fitView`, `minZoom` and `maxZoom` +- additional components: ``, `` & `` \ No newline at end of file From c0d5475b5d8a5117e93e471bd54916f2db95bbdc Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 19 Sep 2023 15:54:02 +0200 Subject: [PATCH 2/2] chore(svelte): update changelog --- packages/svelte/CHANGELOG.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/svelte/CHANGELOG.md b/packages/svelte/CHANGELOG.md index 1ad9f983..491aa21f 100644 --- a/packages/svelte/CHANGELOG.md +++ b/packages/svelte/CHANGELOG.md @@ -1,7 +1,17 @@ +## 0.0.20 + +- [breaking change] use same convention for all custom events: Always pass the original event if possible and additional data + - before: `on:nodeclick: CustomEvent` + - after: `on:nodeclick: CustomEvent<{event: MouseEvent, node: Node}>` +- fix `on:connectstart` and `on:connectend` handlers +- fix default styles for `` component +- fix `dragHandle` node option +- expose `style` prop for minimap + ## 0.0.19 - make it possible to change edge type dynamically -- fix hiden attribute for nodes and edges +- fix `hidden` option for nodes and edges - add `useUpdateNodeInternals` hook ## 0.0.18 @@ -27,7 +37,7 @@ ## 0.0.13 -- from now on it's necessary to import the styles like `@xyflow/svelte/styles/style.css` or `@xyflow/svelte/styles/base.css`. This makes it easier to work with tailwind or overwrite styles with regular CSS. +- [breaking change] from now on it's necessary to import the styles like `@xyflow/svelte/styles/style.css` or `@xyflow/svelte/styles/base.css`. This makes it easier to work with tailwind or overwrite styles with regular CSS. ## 0.0.7 ... 0.0.12