panel-reactflow 0.6.0b0__tar.gz → 0.6.0b1__tar.gz
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.
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/PKG-INFO +1 -1
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/define-nodes-edges.md +12 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/releases.md +1 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/pixi.lock +616 -665
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/pixi.toml +2 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/base.py +26 -4
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/dist/panel-reactflow.bundle.js +1 -1
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/models/reactflow.jsx +3 -1
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_connectable_handles.py +19 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/ui/test_ui.py +89 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.copier-answers.yml +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.gitattributes +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.github/CODEOWNERS +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.github/dependabot.yml +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.github/workflows/build.yml +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.github/workflows/docs.yml +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.github/workflows/test.yml +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.gitignore +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.pre-commit-config.yaml +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/.prettierrc +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/LICENSE.txt +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/MANIFEST.in +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/README.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/logo.svg +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/declare-types.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/define-editors-edge.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/define-editors-node.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/define-nodes-edges.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/embed-views-in-nodes.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/advanced.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/custom_editor.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/edge_editors.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/node_edge_instances.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/schema_types.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/simple.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/threejs_viewer.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/examples/threejs_viewer_instances.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/quickstart.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/react-to-events.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/assets/screenshots/style-nodes-edges.png +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/advanced.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/custom-editor.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/edge-editors.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/index.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/node-edge-instances.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/schema-types.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/simple.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/threejs-viewer-instances.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/examples/threejs-viewer.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/context-menu.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/control-handle-connectivity.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/declare-types.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/define-editors.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/embed-views-in-nodes.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/react-to-events.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/recover-from-errors.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/style-nodes-edges.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/how-to/validate-connections.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/index.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/quickstart.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/docs/reference/panel_reactflow.md +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/advanced.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/connection_validation.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/context_menu.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/custom_editor.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/drop_from_menu.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/edge_editors.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/edge_types_comparison.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/node_edge_instances.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/port_value_inspection.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/schema_types.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/simple.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/smart_edges_example.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/threejs_viewer.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/examples/threejs_viewer_instances.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/hatch_build.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/pyproject.toml +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/__init__.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/__version.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/dist/css/reactflow.css +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/dist/icons/gear.svg +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/dist/panel-reactflow.bundle.css +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/py.typed +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/src/panel_reactflow/schema.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/__init__.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/conftest.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_api.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_connectable_integration.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_core.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_error_recovery.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_schema.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_structural_sync.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/test_validation.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/ui/__init__.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/ui/test_context_menu.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/ui/test_error_recovery.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/ui/test_frontend_robustness.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/tests/ui/test_value_popup.py +0 -0
- {panel_reactflow-0.6.0b0 → panel_reactflow-0.6.0b1}/zensical.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: panel-reactflow
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.0b1
|
|
4
4
|
Summary: A Panel wrapper for the Reactflow JS library.
|
|
5
5
|
Project-URL: Homepage, https://github.com/panel-extensions/panel-reactflow
|
|
6
6
|
Project-URL: Source, https://github.com/panel-extensions/panel-reactflow
|
|
@@ -373,6 +373,18 @@ flow = ReactFlow(nodes=nodes, edges=edges, node_types=node_types)
|
|
|
373
373
|
|
|
374
374
|
Without `sourceHandle` and `targetHandle`, edges connect to the default (first) handle on each node.
|
|
375
375
|
|
|
376
|
+
Handles are spread evenly down each edge of a node. When a node's view lays
|
|
377
|
+
out its ports at other heights, e.g. one row per port below a header, give a
|
|
378
|
+
handle dict a `top` to place its centre: a number is in px from the node's
|
|
379
|
+
top, a string is any CSS length such as `"25%"`.
|
|
380
|
+
|
|
381
|
+
```python
|
|
382
|
+
NodeType(
|
|
383
|
+
type="consumer",
|
|
384
|
+
inputs=[{"id": "data", "top": 52}, {"id": "config", "top": 76}],
|
|
385
|
+
)
|
|
386
|
+
```
|
|
387
|
+
|
|
376
388
|
---
|
|
377
389
|
|
|
378
390
|
## Update data vs. presentation
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- **Drop size limit**: the new `max_drop_size` parameter (10 MB by default) caps the bytes sent for one drop so a large drop cannot exceed the websocket message limit and disconnect the session. Files over the limit or that cannot be read are listed in the drop event's `rejected` entries ([#88](https://github.com/panel-extensions/panel-reactflow/pull/88)).
|
|
15
15
|
- **Batch graph edits**: `add_nodes()` and `add_edges()` add many nodes or edges in a single update, validating all of them first, and emit one `node_added`/`edge_added` event per item ([#89](https://github.com/panel-extensions/panel-reactflow/pull/89)).
|
|
16
16
|
- **Faster structural updates**: adding, removing and assigning nodes and edges no longer re-renders every embedded view and editor, and node and edge editors are built only when shown (toolbar editors on first open, side panel and edge editors on selection) ([#89](https://github.com/panel-extensions/panel-reactflow/pull/89)).
|
|
17
|
+
- **Handle positions**: an input or output handle dict accepts a `top`, in px for a number or as a CSS length for a string, to line a handle up with a port drawn by the node's view instead of spreading the handles evenly over the node's height ([#92](https://github.com/panel-extensions/panel-reactflow/pull/92)).
|
|
17
18
|
|
|
18
19
|
### Behavior changes
|
|
19
20
|
|