From b8e1ac4fc0fa24ba44328bae35f7ee2b5c997dfd Mon Sep 17 00:00:00 2001 From: peterkogo Date: Thu, 12 Sep 2024 11:18:17 +0200 Subject: [PATCH 1/3] Improve wording on changesets --- .changeset/calm-spiders-confess.md | 2 +- .changeset/dull-bags-know.md | 2 +- .changeset/rude-rockets-hope.md | 2 +- .changeset/twenty-ads-breathe.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.changeset/calm-spiders-confess.md b/.changeset/calm-spiders-confess.md index c0e4994f..967cb004 100644 --- a/.changeset/calm-spiders-confess.md +++ b/.changeset/calm-spiders-confess.md @@ -2,4 +2,4 @@ '@xyflow/react': patch --- -minimap: use latest node dimensions +Fix Minimap only displaying nodes when providing onNodesChange diff --git a/.changeset/dull-bags-know.md b/.changeset/dull-bags-know.md index aedfe7e2..07484632 100644 --- a/.changeset/dull-bags-know.md +++ b/.changeset/dull-bags-know.md @@ -4,4 +4,4 @@ '@xyflow/system': patch --- -Add util function getNodesBounds for useReactFlow/useSvelteFlow hook +Add getNodesBounds to useReactFlow/useSvelteFlow hook as the new recommended way of determining node bounds. diff --git a/.changeset/rude-rockets-hope.md b/.changeset/rude-rockets-hope.md index d3099e49..60daf8fb 100644 --- a/.changeset/rude-rockets-hope.md +++ b/.changeset/rude-rockets-hope.md @@ -2,4 +2,4 @@ '@xyflow/svelte': patch --- -Added ability to set global nodeExtent +Add nodeExtent prop to . You can now restrict nodes from leaving a specified extent. diff --git a/.changeset/twenty-ads-breathe.md b/.changeset/twenty-ads-breathe.md index f63a3add..a6d563c1 100644 --- a/.changeset/twenty-ads-breathe.md +++ b/.changeset/twenty-ads-breathe.md @@ -4,4 +4,4 @@ '@xyflow/system': patch --- -Fix extent on nodes not working properly +Improve handling of global and individual nodeExtents. Nodes will never render outside of specified extents. From 5ae97ce39a55c1a664e6e8b4b4e9da273c9d58f1 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Thu, 12 Sep 2024 11:22:38 +0200 Subject: [PATCH 2/3] Fix typo on changeset --- .changeset/rude-rockets-hope.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/rude-rockets-hope.md b/.changeset/rude-rockets-hope.md index 60daf8fb..1a8ebbad 100644 --- a/.changeset/rude-rockets-hope.md +++ b/.changeset/rude-rockets-hope.md @@ -2,4 +2,4 @@ '@xyflow/svelte': patch --- -Add nodeExtent prop to . You can now restrict nodes from leaving a specified extent. +Add nodeExtent prop to <SvelteFlow >. You can now restrict nodes from leaving a specified extent. From fab8da2e56837db75219f07afc5ea4379736df53 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Thu, 12 Sep 2024 11:25:20 +0200 Subject: [PATCH 3/3] add release dispatcher for web repo --- .github/workflows/dispatchWebsiteUpdate.yaml | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/dispatchWebsiteUpdate.yaml diff --git a/.github/workflows/dispatchWebsiteUpdate.yaml b/.github/workflows/dispatchWebsiteUpdate.yaml new file mode 100644 index 00000000..6acc97ac --- /dev/null +++ b/.github/workflows/dispatchWebsiteUpdate.yaml @@ -0,0 +1,29 @@ +name: Dispatch Website Update +run-name: Dispatch Website Update for ${{ github.event.release.tag_name }} + +on: + release: + types: [published] + +jobs: + dispatch_website_update: + if: ${{ contains(github.event.release.tag_name, 'svelte') || contains(github.event.release.tag_name, 'react') }} + runs-on: ubuntu-latest + steps: + # Github Actions is not able to escape JSON strings with certain characters in them + # which release bodies have plenty of. This step uses jq to extract the body and tag_name + # and escape them so they can be used in the next step to create a JSON for the client-payload + - name: Strip and escape JSON + run: | + { + echo 'ESCAPED_PAYLOAD<> "$GITHUB_ENV" + - name: Dispatch Website Update + uses: peter-evans/repository-dispatch@v3 + with: + repository: xyflow/web + token: ${{ secrets.PAT }} + event-type: library-release + client-payload: ${{ env.ESCAPED_PAYLOAD }}