Merge branch 'main' of github.com:xyflow/xyflow

This commit is contained in:
moklick
2024-09-12 11:32:09 +02:00
5 changed files with 33 additions and 4 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@xyflow/react': patch '@xyflow/react': patch
--- ---
minimap: use latest node dimensions Fix Minimap only displaying nodes when providing onNodesChange
+1 -1
View File
@@ -4,4 +4,4 @@
'@xyflow/system': patch '@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.
+1 -1
View File
@@ -2,4 +2,4 @@
'@xyflow/svelte': patch '@xyflow/svelte': patch
--- ---
Added ability to set global nodeExtent Add nodeExtent prop to <SvelteFlow >. You can now restrict nodes from leaving a specified extent.
+1 -1
View File
@@ -4,4 +4,4 @@
'@xyflow/system': patch '@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.
@@ -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<<EOF'
echo '${{ toJson(github.event.release) }}' | jq '{"body", "tag_name"}'
echo EOF
} >> "$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 }}