@squeed/flow-sdk 2.0.3 → 2.0.5
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 +16 -4
- package/dist/index.cjs +16 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +6065 -5980
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -220,6 +220,11 @@ These ports work in Auto and Properties modes. Omitting
|
|
|
220
220
|
|
|
221
221
|
Built-in views accept the same declarations in `data.config.ports` or JSON
|
|
222
222
|
`$ports`, for example `[{ "id": "prompt", "role": "target", "side": "top" }]`.
|
|
223
|
+
An optional `label` changes a port's display text without changing its `id`:
|
|
224
|
+
`{ "id": "output:resource", "label": "output", "role": "source", "side": "right" }`.
|
|
225
|
+
The same `label` prop is supported by `FlowPort`. Workflow interfaces can declare
|
|
226
|
+
it with `/** @port output resource "output" */`; the optional label is a quoted
|
|
227
|
+
JSON string. Connections continue to use `sourceProperty: "output:resource"`.
|
|
223
228
|
Connections identify these ports using `sourceProperty` and `targetProperty`.
|
|
224
229
|
Read-only mode and disabled edge handles continue to prevent dragging.
|
|
225
230
|
|
|
@@ -355,15 +360,22 @@ Inside a diagram, `useNodeViewActions()` (or `useFlowDiagramContext()`) exposes
|
|
|
355
360
|
`allNodesIconLabel` and `setAllNodesIconLabel(boolean)`. The bulk action reuses
|
|
356
361
|
`setNodeViewMode(id, "icon-label")` for objects/arrays and `onNodeCollapse` for
|
|
357
362
|
parents. Disable it to restore default object views and reopen parents. Dots use
|
|
358
|
-
the same per-node actions and remain interactive; there is no global view lock
|
|
359
|
-
|
|
363
|
+
the same per-node actions and remain interactive; there is no global view lock.
|
|
364
|
+
`allNodesIconLabel` reflects the current node modes.
|
|
365
|
+
|
|
366
|
+
In `FlowDiagram`, enabling the bulk action also suspends `forms.structured`:
|
|
367
|
+
generated detail nodes and structured form lists disappear without changing the
|
|
368
|
+
workflow data. Disabling it restores the configured `forms.structured` setting
|
|
369
|
+
and the generated nodes' default views. An initially false or omitted setting
|
|
370
|
+
stays disabled. Individual node-view actions do not change this setting.
|
|
360
371
|
|
|
361
372
|
`NodeViewMode` supports `"default"`, `"properties"` and `"icon-label"`; controlled
|
|
362
373
|
consumers continue using `config.nodeViewModes` and `onNodeViewModeChange`.
|
|
363
374
|
Parent changes follow the host's existing collapse persistence behavior. The
|
|
364
375
|
name `collapsed` remains reserved for child-collapse behavior, not object view
|
|
365
|
-
modes. `onAllNodesIconLabelChange` reports bulk actions.
|
|
366
|
-
|
|
376
|
+
modes. `onAllNodesIconLabelChange` reports bulk actions. The bottom toolbar exposes
|
|
377
|
+
**Collapse all** immediately after **Compact layout**; SDK Test also exposes
|
|
378
|
+
the action as **All icon labels** under Visibility and fits the resulting layout.
|
|
367
379
|
|
|
368
380
|
### Reusable Nodes From Property Draws
|
|
369
381
|
|