v13.27.0
Minor Release v13.27.0
Common Canvas
#2513 Allow individual nodes to be resizable
Previously, Common Canvas could be configured to allow all nodes to be resizable or no nodes to be resizable by changing the boolean value for the config property enableResizableNodes.
In this release, nodes can individually switched to be resizable. To specify this, the application can return the following in the layoutHandler callback for the node in question:
layoutHandler(node) {
if (node.op === "prompt_node") {
return {
nodeResizable: true
};
}
return {};
}
An example of this can be seen in the Prompt sample application in the test harness.
Common Properties
#2535 Custom shouldFilterItem callback
A new optional callback handler has been added for Common Properties called filterItemsHandler().
It is used for filtering a dropdown list when shouldFilterItem is true. This function takes in the current input and an item and passes back whether or not the item should be filtered.
filterItemsHandler(data, list) {
return list?.item?.label?.toLowerCase().startsWith(list?.inputValue?.toLowerCase());
}Issues Resolved
- #2510 Export Action for Command Stack and document getFocusObject for… by @tomlyn in #2520
- #2508 Accessibility violations in disabled tables by @caritaou in #2509
- #2516 Fix accessibility violation in disabled toolbar by @caritaou in #2517
- #2513 Allow individual nodes to be resizeabe by @tomlyn in #2522
- #2503 Accessibility violation in controls with blank label by @srikant-ch5 in #2526
- #2527 Accessibility Violations in canvas palette search by @srikant-ch5 in #2528
- #2529 Fix unit tests due to new tanstack virtual v3.13.7 by @caritaou in #2530
- #2531 canvasController.selectAll() causes canvas DOM element focus by @tomlyn in #2532
- #2521 Fixed bug - Visible condition is not working properly inside subpanel for complex type by @nmgokhale in #2523
- #2536 TS declarations sometimes incorrectly make pipelineId mandatory… by @tomlyn in #2538
- #2533 Palette search results shows a scrollbar when 'Show scroll bars' is set to 'Always' on the Mac by @srikant-ch5 in #2534
- #2535 Custom shouldFilterItem callback by @caritaou in #2537
- #2539 Text in suggestion dropdown list for expression builder in node property window has no contrast in Dark mode by @srikant-ch5 in #2540
- #2541 Improve error message when customControls are forgotten by @nmgokhale in #2544
- #2547 Automate TypeScript declarations for Common Properties by @nmgokhale in #2548
- #2549 Fix documentation for ClassName methods of the canvas controller by @tomlyn in #2550
- #2542 Add support for Suggestion Node by @tomlyn in #2543
- #2545 Clicking the tooltip of an action button in the toolbar triggers the action by @srikant-ch5 in #2546
- #2551 Typescript definitions for getUpstreamNodes and getDownstreamNo… by @tomlyn in #2552
Full Changelog: v13.26.0...v13.27.0