@squeed/flow-sdk 2.0.32 → 2.0.34
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/README.md +7 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1622 -1610
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -463,6 +463,12 @@ the source tree. Edit this single JSON source to keep the guide current.
|
|
|
463
463
|
|
|
464
464
|
## Callbacks
|
|
465
465
|
|
|
466
|
+
`isNodeVisible(id, edges, edgeMode)` exposes the same edge-mode visibility rule
|
|
467
|
+
used by Canvas. Pass edge data, not `{ data }` wrappers. In property-edge mode,
|
|
468
|
+
`root` is hidden unless it has a property connection; other modes retain it.
|
|
469
|
+
Hosts measuring embedded content can filter with this predicate before waiting
|
|
470
|
+
for node boxes. It does not report measurement readiness or connection isolation.
|
|
471
|
+
|
|
466
472
|
### All Icon-Label Views
|
|
467
473
|
|
|
468
474
|
Inside a diagram, `useNodeViewActions()` (or `useFlowDiagramContext()`) exposes
|
|
@@ -1078,7 +1084,7 @@ not edit saved data: completion strictly parses the final JSON before committing
|
|
|
1078
1084
|
and failure or disconnect restores the saved document. The renderer stays in
|
|
1079
1085
|
the host; this does not enable executable JSX or create a per-chunk MCP command.
|
|
1080
1086
|
|
|
1081
|
-
With `config.editable: true`,
|
|
1087
|
+
With `config.editable: true`, click the content body to edit the original Markdown source. In Collision mode, including filled and embedded Grids, hold Shift when clicking; ordinary clicks retain their selection behavior. Shift is only required to enter the editor. Enter inserts a new line; Ctrl/Cmd+Enter or clicking away saves, and Escape cancels. Read-only mode still prevents editing. Internal JSON refreshes preserve focused editors and unsaved drafts; initial loading and explicit host loading still block interaction. Source whitespace is preserved. The node grows vertically as text is added; label editors grow horizontally within their width limit. Both keep their starting size as a minimum and omit input focus outlines. Clearing the body keeps an empty, editable content view; use `setNodeProp(json, address, "$content", undefined)` to remove the content property. Content nodes use the same minimum width as their object-property rows, and the right-aligned table/article button switches views without changing the document.
|
|
1082
1088
|
|
|
1083
1089
|
The node animation toggle supports single and multiple selections. The SVG stroke follows the measured node border without changing layout or intercepting input. Text, array, object/content, and compound nodes support it, including outlined or transparent nodes. It uses the explicit border color or theme accent. Reduced-motion preferences pause the movement; graphs over 200 nodes suppress the trace in performance mode. `readOnly` prevents editing/toggling but still renders configured animation; `selectionToolbar.hide: ["animation"]` hides the toggle.
|
|
1084
1090
|
|