@mindlogic-ai/logician-ui 3.1.0-alpha.9 → 3.2.0-alpha.0

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.
Files changed (396) hide show
  1. package/dist/components/Icon/_constants/iconList.d.ts +1 -1
  2. package/dist/components/Icon/_constants/iconList.d.ts.map +1 -1
  3. package/dist/components/Icon/_constants/iconList.js +18 -0
  4. package/dist/components/Icon/_constants/iconList.js.map +1 -1
  5. package/dist/components/Icon/_constants/iconList.mjs +20 -2
  6. package/dist/components/Icon/_constants/iconList.mjs.map +1 -1
  7. package/dist/components/Icon/index.d.ts +2 -1
  8. package/dist/components/Icon/index.d.ts.map +1 -1
  9. package/dist/components/Icon/index.js +20 -1
  10. package/dist/components/Icon/index.js.map +1 -1
  11. package/dist/components/Icon/index.mjs +4 -2
  12. package/dist/components/Icon/index.mjs.map +1 -1
  13. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  14. package/dist/components/SegmentedControl/SegmentedControl.js +20 -4
  15. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
  16. package/dist/components/SegmentedControl/SegmentedControl.mjs +20 -4
  17. package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  18. package/dist/components/Workflow/Workflow.d.ts +3 -0
  19. package/dist/components/Workflow/Workflow.d.ts.map +1 -0
  20. package/dist/components/Workflow/Workflow.js +109 -0
  21. package/dist/components/Workflow/Workflow.js.map +1 -0
  22. package/dist/components/Workflow/Workflow.mjs +107 -0
  23. package/dist/components/Workflow/Workflow.mjs.map +1 -0
  24. package/dist/components/Workflow/Workflow.translations.json.js +164 -0
  25. package/dist/components/Workflow/Workflow.translations.json.js.map +1 -0
  26. package/dist/components/Workflow/Workflow.translations.json.mjs +138 -0
  27. package/dist/components/Workflow/Workflow.translations.json.mjs.map +1 -0
  28. package/dist/components/Workflow/Workflow.types.d.ts +435 -0
  29. package/dist/components/Workflow/Workflow.types.d.ts.map +1 -0
  30. package/dist/components/Workflow/Workflow.types.js +19 -0
  31. package/dist/components/Workflow/Workflow.types.js.map +1 -0
  32. package/dist/components/Workflow/Workflow.types.mjs +16 -0
  33. package/dist/components/Workflow/Workflow.types.mjs.map +1 -0
  34. package/dist/components/Workflow/WorkflowContext/WorkflowContext.d.ts +10 -0
  35. package/dist/components/Workflow/WorkflowContext/WorkflowContext.d.ts.map +1 -0
  36. package/dist/components/Workflow/WorkflowContext/WorkflowContext.js +163 -0
  37. package/dist/components/Workflow/WorkflowContext/WorkflowContext.js.map +1 -0
  38. package/dist/components/Workflow/WorkflowContext/WorkflowContext.mjs +159 -0
  39. package/dist/components/Workflow/WorkflowContext/WorkflowContext.mjs.map +1 -0
  40. package/dist/components/Workflow/WorkflowContext/WorkflowContext.types.d.ts +117 -0
  41. package/dist/components/Workflow/WorkflowContext/WorkflowContext.types.d.ts.map +1 -0
  42. package/dist/components/Workflow/WorkflowContext/index.d.ts +3 -0
  43. package/dist/components/Workflow/WorkflowContext/index.d.ts.map +1 -0
  44. package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.d.ts +19 -0
  45. package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.d.ts.map +1 -0
  46. package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js +44 -0
  47. package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js.map +1 -0
  48. package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs +42 -0
  49. package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs.map +1 -0
  50. package/dist/components/Workflow/canvas/Canvas/Canvas.d.ts +10 -0
  51. package/dist/components/Workflow/canvas/Canvas/Canvas.d.ts.map +1 -0
  52. package/dist/components/Workflow/canvas/Canvas/Canvas.js +531 -0
  53. package/dist/components/Workflow/canvas/Canvas/Canvas.js.map +1 -0
  54. package/dist/components/Workflow/canvas/Canvas/Canvas.mjs +529 -0
  55. package/dist/components/Workflow/canvas/Canvas/Canvas.mjs.map +1 -0
  56. package/dist/components/Workflow/canvas/Canvas/Canvas.styles.d.ts +53 -0
  57. package/dist/components/Workflow/canvas/Canvas/Canvas.styles.d.ts.map +1 -0
  58. package/dist/components/Workflow/canvas/Canvas/Canvas.styles.js +96 -0
  59. package/dist/components/Workflow/canvas/Canvas/Canvas.styles.js.map +1 -0
  60. package/dist/components/Workflow/canvas/Canvas/Canvas.styles.mjs +93 -0
  61. package/dist/components/Workflow/canvas/Canvas/Canvas.styles.mjs.map +1 -0
  62. package/dist/components/Workflow/canvas/Canvas/CanvasControls.d.ts +27 -0
  63. package/dist/components/Workflow/canvas/Canvas/CanvasControls.d.ts.map +1 -0
  64. package/dist/components/Workflow/canvas/Canvas/CanvasControls.js +70 -0
  65. package/dist/components/Workflow/canvas/Canvas/CanvasControls.js.map +1 -0
  66. package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs +68 -0
  67. package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs.map +1 -0
  68. package/dist/components/Workflow/canvas/Canvas/LabeledEdge.d.ts +10 -0
  69. package/dist/components/Workflow/canvas/Canvas/LabeledEdge.d.ts.map +1 -0
  70. package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js +106 -0
  71. package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js.map +1 -0
  72. package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs +104 -0
  73. package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs.map +1 -0
  74. package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.d.ts +13 -0
  75. package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.d.ts.map +1 -0
  76. package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.js +18 -0
  77. package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.js.map +1 -0
  78. package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.mjs +16 -0
  79. package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.mjs.map +1 -0
  80. package/dist/components/Workflow/canvas/Canvas/index.d.ts +2 -0
  81. package/dist/components/Workflow/canvas/Canvas/index.d.ts.map +1 -0
  82. package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.d.ts +30 -0
  83. package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.d.ts.map +1 -0
  84. package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js +34 -0
  85. package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js.map +1 -0
  86. package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs +32 -0
  87. package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs.map +1 -0
  88. package/dist/components/Workflow/canvas/CollapsibleSection/index.d.ts +2 -0
  89. package/dist/components/Workflow/canvas/CollapsibleSection/index.d.ts.map +1 -0
  90. package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.d.ts +37 -0
  91. package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.d.ts.map +1 -0
  92. package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js +33 -0
  93. package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js.map +1 -0
  94. package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs +31 -0
  95. package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs.map +1 -0
  96. package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.d.ts +16 -0
  97. package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.d.ts.map +1 -0
  98. package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js +54 -0
  99. package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js.map +1 -0
  100. package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs +52 -0
  101. package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs.map +1 -0
  102. package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.d.ts +27 -0
  103. package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.d.ts.map +1 -0
  104. package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js +178 -0
  105. package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js.map +1 -0
  106. package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs +176 -0
  107. package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs.map +1 -0
  108. package/dist/components/Workflow/canvas/DrawerShell/index.d.ts +3 -0
  109. package/dist/components/Workflow/canvas/DrawerShell/index.d.ts.map +1 -0
  110. package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.d.ts +12 -0
  111. package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.d.ts.map +1 -0
  112. package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.js +68 -0
  113. package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.js.map +1 -0
  114. package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.mjs +66 -0
  115. package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.mjs.map +1 -0
  116. package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.d.ts +19 -0
  117. package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.d.ts.map +1 -0
  118. package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.js +35 -0
  119. package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.js.map +1 -0
  120. package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.mjs +32 -0
  121. package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.mjs.map +1 -0
  122. package/dist/components/Workflow/canvas/EdgeInspector/index.d.ts +3 -0
  123. package/dist/components/Workflow/canvas/EdgeInspector/index.d.ts.map +1 -0
  124. package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.d.ts +54 -0
  125. package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.d.ts.map +1 -0
  126. package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js +56 -0
  127. package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js.map +1 -0
  128. package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs +54 -0
  129. package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs.map +1 -0
  130. package/dist/components/Workflow/canvas/FieldWrapper/index.d.ts +3 -0
  131. package/dist/components/Workflow/canvas/FieldWrapper/index.d.ts.map +1 -0
  132. package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.d.ts +16 -0
  133. package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.d.ts.map +1 -0
  134. package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.js +25 -0
  135. package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.js.map +1 -0
  136. package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.mjs +22 -0
  137. package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.mjs.map +1 -0
  138. package/dist/components/Workflow/canvas/FloatingCard/index.d.ts +2 -0
  139. package/dist/components/Workflow/canvas/FloatingCard/index.d.ts.map +1 -0
  140. package/dist/components/Workflow/canvas/GenericNode/GenericNode.d.ts +14 -0
  141. package/dist/components/Workflow/canvas/GenericNode/GenericNode.d.ts.map +1 -0
  142. package/dist/components/Workflow/canvas/GenericNode/GenericNode.js +61 -0
  143. package/dist/components/Workflow/canvas/GenericNode/GenericNode.js.map +1 -0
  144. package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs +59 -0
  145. package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs.map +1 -0
  146. package/dist/components/Workflow/canvas/GenericNode/GenericNode.types.d.ts +11 -0
  147. package/dist/components/Workflow/canvas/GenericNode/GenericNode.types.d.ts.map +1 -0
  148. package/dist/components/Workflow/canvas/GenericNode/index.d.ts +3 -0
  149. package/dist/components/Workflow/canvas/GenericNode/index.d.ts.map +1 -0
  150. package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.d.ts +15 -0
  151. package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.d.ts.map +1 -0
  152. package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js +145 -0
  153. package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js.map +1 -0
  154. package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs +143 -0
  155. package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs.map +1 -0
  156. package/dist/components/Workflow/canvas/GraphErrorBanner/index.d.ts +2 -0
  157. package/dist/components/Workflow/canvas/GraphErrorBanner/index.d.ts.map +1 -0
  158. package/dist/components/Workflow/canvas/IconTile/IconTile.d.ts +10 -0
  159. package/dist/components/Workflow/canvas/IconTile/IconTile.d.ts.map +1 -0
  160. package/dist/components/Workflow/canvas/IconTile/IconTile.js +21 -0
  161. package/dist/components/Workflow/canvas/IconTile/IconTile.js.map +1 -0
  162. package/dist/components/Workflow/canvas/IconTile/IconTile.mjs +19 -0
  163. package/dist/components/Workflow/canvas/IconTile/IconTile.mjs.map +1 -0
  164. package/dist/components/Workflow/canvas/IconTile/IconTile.styles.d.ts +18 -0
  165. package/dist/components/Workflow/canvas/IconTile/IconTile.styles.d.ts.map +1 -0
  166. package/dist/components/Workflow/canvas/IconTile/IconTile.styles.js +40 -0
  167. package/dist/components/Workflow/canvas/IconTile/IconTile.styles.js.map +1 -0
  168. package/dist/components/Workflow/canvas/IconTile/IconTile.styles.mjs +37 -0
  169. package/dist/components/Workflow/canvas/IconTile/IconTile.styles.mjs.map +1 -0
  170. package/dist/components/Workflow/canvas/IconTile/IconTile.types.d.ts +15 -0
  171. package/dist/components/Workflow/canvas/IconTile/IconTile.types.d.ts.map +1 -0
  172. package/dist/components/Workflow/canvas/IconTile/index.d.ts +4 -0
  173. package/dist/components/Workflow/canvas/IconTile/index.d.ts.map +1 -0
  174. package/dist/components/Workflow/canvas/IssueList/IssueList.d.ts +24 -0
  175. package/dist/components/Workflow/canvas/IssueList/IssueList.d.ts.map +1 -0
  176. package/dist/components/Workflow/canvas/IssueList/IssueList.js +34 -0
  177. package/dist/components/Workflow/canvas/IssueList/IssueList.js.map +1 -0
  178. package/dist/components/Workflow/canvas/IssueList/IssueList.mjs +32 -0
  179. package/dist/components/Workflow/canvas/IssueList/IssueList.mjs.map +1 -0
  180. package/dist/components/Workflow/canvas/IssueList/index.d.ts +2 -0
  181. package/dist/components/Workflow/canvas/IssueList/index.d.ts.map +1 -0
  182. package/dist/components/Workflow/canvas/NodePalette/NodePalette.d.ts +9 -0
  183. package/dist/components/Workflow/canvas/NodePalette/NodePalette.d.ts.map +1 -0
  184. package/dist/components/Workflow/canvas/NodePalette/NodePalette.js +94 -0
  185. package/dist/components/Workflow/canvas/NodePalette/NodePalette.js.map +1 -0
  186. package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs +92 -0
  187. package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs.map +1 -0
  188. package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.d.ts +7 -0
  189. package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.d.ts.map +1 -0
  190. package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.js +13 -0
  191. package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.js.map +1 -0
  192. package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.mjs +10 -0
  193. package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.mjs.map +1 -0
  194. package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.d.ts +10 -0
  195. package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.d.ts.map +1 -0
  196. package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js +28 -0
  197. package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js.map +1 -0
  198. package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs +26 -0
  199. package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs.map +1 -0
  200. package/dist/components/Workflow/canvas/NodePalette/index.d.ts +4 -0
  201. package/dist/components/Workflow/canvas/NodePalette/index.d.ts.map +1 -0
  202. package/dist/components/Workflow/canvas/NodeShell/NodeShell.d.ts +3 -0
  203. package/dist/components/Workflow/canvas/NodeShell/NodeShell.d.ts.map +1 -0
  204. package/dist/components/Workflow/canvas/NodeShell/NodeShell.js +137 -0
  205. package/dist/components/Workflow/canvas/NodeShell/NodeShell.js.map +1 -0
  206. package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs +135 -0
  207. package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs.map +1 -0
  208. package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.d.ts +66 -0
  209. package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.d.ts.map +1 -0
  210. package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.js +87 -0
  211. package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.js.map +1 -0
  212. package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.mjs +77 -0
  213. package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.mjs.map +1 -0
  214. package/dist/components/Workflow/canvas/NodeShell/NodeShell.types.d.ts +35 -0
  215. package/dist/components/Workflow/canvas/NodeShell/NodeShell.types.d.ts.map +1 -0
  216. package/dist/components/Workflow/canvas/NodeShell/index.d.ts +4 -0
  217. package/dist/components/Workflow/canvas/NodeShell/index.d.ts.map +1 -0
  218. package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.d.ts +15 -0
  219. package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.d.ts.map +1 -0
  220. package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.js +14 -0
  221. package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.js.map +1 -0
  222. package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.mjs +12 -0
  223. package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.mjs.map +1 -0
  224. package/dist/components/Workflow/canvas/SeverityDot/index.d.ts +2 -0
  225. package/dist/components/Workflow/canvas/SeverityDot/index.d.ts.map +1 -0
  226. package/dist/components/Workflow/canvas/issueSeverity.d.ts +23 -0
  227. package/dist/components/Workflow/canvas/issueSeverity.d.ts.map +1 -0
  228. package/dist/components/Workflow/canvas/issueSeverity.js +51 -0
  229. package/dist/components/Workflow/canvas/issueSeverity.js.map +1 -0
  230. package/dist/components/Workflow/canvas/issueSeverity.mjs +47 -0
  231. package/dist/components/Workflow/canvas/issueSeverity.mjs.map +1 -0
  232. package/dist/components/Workflow/canvas/useFieldFocusRequest.d.ts +14 -0
  233. package/dist/components/Workflow/canvas/useFieldFocusRequest.d.ts.map +1 -0
  234. package/dist/components/Workflow/canvas/useFieldFocusRequest.js +48 -0
  235. package/dist/components/Workflow/canvas/useFieldFocusRequest.js.map +1 -0
  236. package/dist/components/Workflow/canvas/useFieldFocusRequest.mjs +46 -0
  237. package/dist/components/Workflow/canvas/useFieldFocusRequest.mjs.map +1 -0
  238. package/dist/components/Workflow/canvas/workflowLabelProps.d.ts +12 -0
  239. package/dist/components/Workflow/canvas/workflowLabelProps.d.ts.map +1 -0
  240. package/dist/components/Workflow/canvas/workflowLabelProps.js +17 -0
  241. package/dist/components/Workflow/canvas/workflowLabelProps.js.map +1 -0
  242. package/dist/components/Workflow/canvas/workflowLabelProps.mjs +15 -0
  243. package/dist/components/Workflow/canvas/workflowLabelProps.mjs.map +1 -0
  244. package/dist/components/Workflow/connectionRules.d.ts +59 -0
  245. package/dist/components/Workflow/connectionRules.d.ts.map +1 -0
  246. package/dist/components/Workflow/connectionRules.js +150 -0
  247. package/dist/components/Workflow/connectionRules.js.map +1 -0
  248. package/dist/components/Workflow/connectionRules.mjs +145 -0
  249. package/dist/components/Workflow/connectionRules.mjs.map +1 -0
  250. package/dist/components/Workflow/createNode.d.ts +27 -0
  251. package/dist/components/Workflow/createNode.d.ts.map +1 -0
  252. package/dist/components/Workflow/createNode.js +66 -0
  253. package/dist/components/Workflow/createNode.js.map +1 -0
  254. package/dist/components/Workflow/createNode.mjs +62 -0
  255. package/dist/components/Workflow/createNode.mjs.map +1 -0
  256. package/dist/components/Workflow/graphHistory.d.ts +23 -0
  257. package/dist/components/Workflow/graphHistory.d.ts.map +1 -0
  258. package/dist/components/Workflow/graphHistory.js +73 -0
  259. package/dist/components/Workflow/graphHistory.js.map +1 -0
  260. package/dist/components/Workflow/graphHistory.mjs +70 -0
  261. package/dist/components/Workflow/graphHistory.mjs.map +1 -0
  262. package/dist/components/Workflow/graphObserver.d.ts +13 -0
  263. package/dist/components/Workflow/graphObserver.d.ts.map +1 -0
  264. package/dist/components/Workflow/graphObserver.js +11 -0
  265. package/dist/components/Workflow/graphObserver.js.map +1 -0
  266. package/dist/components/Workflow/graphObserver.mjs +8 -0
  267. package/dist/components/Workflow/graphObserver.mjs.map +1 -0
  268. package/dist/components/Workflow/graphReducer.d.ts +75 -0
  269. package/dist/components/Workflow/graphReducer.d.ts.map +1 -0
  270. package/dist/components/Workflow/graphReducer.js +122 -0
  271. package/dist/components/Workflow/graphReducer.js.map +1 -0
  272. package/dist/components/Workflow/graphReducer.mjs +119 -0
  273. package/dist/components/Workflow/graphReducer.mjs.map +1 -0
  274. package/dist/components/Workflow/index.d.ts +22 -0
  275. package/dist/components/Workflow/index.d.ts.map +1 -0
  276. package/dist/components/Workflow/layout/autoLayout.d.ts +49 -0
  277. package/dist/components/Workflow/layout/autoLayout.d.ts.map +1 -0
  278. package/dist/components/Workflow/layout/autoLayout.js +149 -0
  279. package/dist/components/Workflow/layout/autoLayout.js.map +1 -0
  280. package/dist/components/Workflow/layout/autoLayout.mjs +146 -0
  281. package/dist/components/Workflow/layout/autoLayout.mjs.map +1 -0
  282. package/dist/components/Workflow/stories/toyNodeTypes.d.ts +40 -0
  283. package/dist/components/Workflow/stories/toyNodeTypes.d.ts.map +1 -0
  284. package/dist/components/Workflow/useWorkflowIssueMessage.d.ts +15 -0
  285. package/dist/components/Workflow/useWorkflowIssueMessage.d.ts.map +1 -0
  286. package/dist/components/Workflow/useWorkflowIssueMessage.js +45 -0
  287. package/dist/components/Workflow/useWorkflowIssueMessage.js.map +1 -0
  288. package/dist/components/Workflow/useWorkflowIssueMessage.mjs +43 -0
  289. package/dist/components/Workflow/useWorkflowIssueMessage.mjs.map +1 -0
  290. package/dist/components/Workflow/useWorkflowKeyboard.d.ts +10 -0
  291. package/dist/components/Workflow/useWorkflowKeyboard.d.ts.map +1 -0
  292. package/dist/components/Workflow/useWorkflowKeyboard.js +116 -0
  293. package/dist/components/Workflow/useWorkflowKeyboard.js.map +1 -0
  294. package/dist/components/Workflow/useWorkflowKeyboard.mjs +114 -0
  295. package/dist/components/Workflow/useWorkflowKeyboard.mjs.map +1 -0
  296. package/dist/icons.js +17 -0
  297. package/dist/icons.js.map +1 -1
  298. package/dist/icons.mjs +1 -1
  299. package/dist/index.d.ts +1 -0
  300. package/dist/index.d.ts.map +1 -1
  301. package/dist/index.js +38 -0
  302. package/dist/index.js.map +1 -1
  303. package/dist/index.mjs +14 -0
  304. package/dist/index.mjs.map +1 -1
  305. package/dist/test-support/setup.d.ts +5 -0
  306. package/dist/test-support/setup.d.ts.map +1 -0
  307. package/dist/theme/colors.d.ts +196 -44
  308. package/dist/theme/colors.d.ts.map +1 -1
  309. package/dist/theme/colors.js +184 -22
  310. package/dist/theme/colors.js.map +1 -1
  311. package/dist/theme/colors.mjs +184 -22
  312. package/dist/theme/colors.mjs.map +1 -1
  313. package/dist/theme/global.d.ts.map +1 -1
  314. package/dist/theme/global.js +30 -2
  315. package/dist/theme/global.js.map +1 -1
  316. package/dist/theme/global.mjs +30 -2
  317. package/dist/theme/global.mjs.map +1 -1
  318. package/package.json +10 -2
  319. package/src/components/Icon/_constants/iconList.ts +35 -0
  320. package/src/components/Icon/index.tsx +20 -0
  321. package/src/components/SegmentedControl/SegmentedControl.tsx +21 -4
  322. package/src/components/Workflow/README.md +362 -0
  323. package/src/components/Workflow/Workflow.translations.json +112 -0
  324. package/src/components/Workflow/Workflow.tsx +189 -0
  325. package/src/components/Workflow/Workflow.types.ts +496 -0
  326. package/src/components/Workflow/WorkflowContext/WorkflowContext.tsx +215 -0
  327. package/src/components/Workflow/WorkflowContext/WorkflowContext.types.ts +122 -0
  328. package/src/components/Workflow/WorkflowContext/index.ts +10 -0
  329. package/src/components/Workflow/WorkflowContext/workflowSelection.test.tsx +93 -0
  330. package/src/components/Workflow/canvas/Canvas/BranchLabelBadge.tsx +69 -0
  331. package/src/components/Workflow/canvas/Canvas/Canvas.styles.ts +91 -0
  332. package/src/components/Workflow/canvas/Canvas/Canvas.tsx +773 -0
  333. package/src/components/Workflow/canvas/Canvas/CanvasControls.tsx +178 -0
  334. package/src/components/Workflow/canvas/Canvas/LabeledEdge.tsx +198 -0
  335. package/src/components/Workflow/canvas/Canvas/edgeLabelVariant.test.ts +26 -0
  336. package/src/components/Workflow/canvas/Canvas/edgeLabelVariant.ts +23 -0
  337. package/src/components/Workflow/canvas/Canvas/index.ts +1 -0
  338. package/src/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.tsx +96 -0
  339. package/src/components/Workflow/canvas/CollapsibleSection/index.ts +4 -0
  340. package/src/components/Workflow/canvas/DrawerShell/DrawerHeader.tsx +104 -0
  341. package/src/components/Workflow/canvas/DrawerShell/DrawerIssues.tsx +115 -0
  342. package/src/components/Workflow/canvas/DrawerShell/DrawerShell.tsx +408 -0
  343. package/src/components/Workflow/canvas/DrawerShell/index.ts +2 -0
  344. package/src/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.tsx +135 -0
  345. package/src/components/Workflow/canvas/EdgeInspector/endpointTitle.ts +38 -0
  346. package/src/components/Workflow/canvas/EdgeInspector/index.ts +2 -0
  347. package/src/components/Workflow/canvas/FieldWrapper/FieldWrapper.tsx +118 -0
  348. package/src/components/Workflow/canvas/FieldWrapper/index.ts +6 -0
  349. package/src/components/Workflow/canvas/FloatingCard/FloatingCard.tsx +37 -0
  350. package/src/components/Workflow/canvas/FloatingCard/index.ts +1 -0
  351. package/src/components/Workflow/canvas/GenericNode/GenericNode.tsx +114 -0
  352. package/src/components/Workflow/canvas/GenericNode/GenericNode.types.ts +10 -0
  353. package/src/components/Workflow/canvas/GenericNode/index.ts +5 -0
  354. package/src/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.tsx +284 -0
  355. package/src/components/Workflow/canvas/GraphErrorBanner/index.ts +1 -0
  356. package/src/components/Workflow/canvas/IconTile/IconTile.styles.ts +40 -0
  357. package/src/components/Workflow/canvas/IconTile/IconTile.tsx +36 -0
  358. package/src/components/Workflow/canvas/IconTile/IconTile.types.ts +13 -0
  359. package/src/components/Workflow/canvas/IconTile/index.ts +7 -0
  360. package/src/components/Workflow/canvas/IssueList/IssueList.tsx +84 -0
  361. package/src/components/Workflow/canvas/IssueList/index.ts +1 -0
  362. package/src/components/Workflow/canvas/NodePalette/NodePalette.styles.ts +7 -0
  363. package/src/components/Workflow/canvas/NodePalette/NodePalette.tsx +180 -0
  364. package/src/components/Workflow/canvas/NodePalette/NodePaletteToggle.tsx +39 -0
  365. package/src/components/Workflow/canvas/NodePalette/index.ts +3 -0
  366. package/src/components/Workflow/canvas/NodeShell/NodeShell.styles.ts +84 -0
  367. package/src/components/Workflow/canvas/NodeShell/NodeShell.tsx +321 -0
  368. package/src/components/Workflow/canvas/NodeShell/NodeShell.types.ts +45 -0
  369. package/src/components/Workflow/canvas/NodeShell/index.ts +8 -0
  370. package/src/components/Workflow/canvas/SeverityDot/SeverityDot.tsx +33 -0
  371. package/src/components/Workflow/canvas/SeverityDot/index.ts +1 -0
  372. package/src/components/Workflow/canvas/issueSeverity.ts +48 -0
  373. package/src/components/Workflow/canvas/useFieldFocusRequest.ts +54 -0
  374. package/src/components/Workflow/canvas/workflowLabelProps.ts +11 -0
  375. package/src/components/Workflow/connectionRules.test.ts +326 -0
  376. package/src/components/Workflow/connectionRules.ts +190 -0
  377. package/src/components/Workflow/createNode.test.ts +61 -0
  378. package/src/components/Workflow/createNode.ts +67 -0
  379. package/src/components/Workflow/graphHistory.test.ts +178 -0
  380. package/src/components/Workflow/graphHistory.ts +91 -0
  381. package/src/components/Workflow/graphObserver.ts +21 -0
  382. package/src/components/Workflow/graphReducer.test.ts +314 -0
  383. package/src/components/Workflow/graphReducer.ts +196 -0
  384. package/src/components/Workflow/index.ts +74 -0
  385. package/src/components/Workflow/layout/autoLayout.test.ts +170 -0
  386. package/src/components/Workflow/layout/autoLayout.ts +200 -0
  387. package/src/components/Workflow/stories/Workflow.stories.tsx +111 -0
  388. package/src/components/Workflow/stories/toyNodeTypes.tsx +146 -0
  389. package/src/components/Workflow/useWorkflowIssueMessage.test.ts +101 -0
  390. package/src/components/Workflow/useWorkflowIssueMessage.ts +49 -0
  391. package/src/components/Workflow/useWorkflowKeyboard.ts +126 -0
  392. package/src/index.ts +1 -0
  393. package/src/test-support/setup.ts +11 -0
  394. package/src/theme/SemanticTokens.mdx +61 -7
  395. package/src/theme/colors.ts +216 -26
  396. package/src/theme/global.ts +31 -2
@@ -0,0 +1,135 @@
1
+ "use client";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { Stack, HStack, Box } from '@chakra-ui/react';
4
+ import { Handle, Position } from '@xyflow/react';
5
+ import { Card } from '../../../Card/Card.mjs';
6
+ import { Chip } from '../../../Chip/Chip.mjs';
7
+ import { StickyNote, AlertTriangle } from '../../../Icon/index.mjs';
8
+ import '../../../Typography/H1.mjs';
9
+ import '../../../Typography/H2.mjs';
10
+ import '../../../Typography/H3.mjs';
11
+ import '../../../Typography/H4.mjs';
12
+ import '../../../Typography/H5.mjs';
13
+ import '../../../Typography/Link.mjs';
14
+ import { Subtext } from '../../../Typography/Subtext.mjs';
15
+ import '../../../Typography/Subtitle.mjs';
16
+ import '../../../Typography/Text.mjs';
17
+ import { BranchLabelBadge } from '../Canvas/BranchLabelBadge.mjs';
18
+ import { getEdgeLabelVariant } from '../Canvas/edgeLabelVariant.mjs';
19
+ import { IconTile } from '../IconTile/IconTile.mjs';
20
+ import { getCategoryTokens } from '../IconTile/IconTile.styles.mjs';
21
+ import { MAX_META_CHIPS, CARD_WIDTH, getPortTop, PORT_STYLE, NODE_MIN_HEIGHT, PORT_GAP, PORT_EDGE_PAD, metaChipToneStyles, metaChipStyles } from './NodeShell.styles.mjs';
22
+
23
+ /**
24
+ * Compact pill for the canvas node's meta row. Wraps logician-ui Chip
25
+ * and overrides its chunky default padding/radius via `metaChipStyles`.
26
+ * Tone tints the chip (e.g. an unknown model on an Agent node).
27
+ */
28
+ function MetaChip({ children, tone = 'default', }) {
29
+ return (jsx(Chip, { ...metaChipStyles, ...metaChipToneStyles[tone], children: children }));
30
+ }
31
+ function normalizeChip(spec) {
32
+ return typeof spec === 'string'
33
+ ? { text: spec, tone: 'default' }
34
+ : { text: spec.text, tone: spec.tone ?? 'default' };
35
+ }
36
+ /**
37
+ * Ring + body-border treatment per state. Notes keep their warm border in
38
+ * all states but still surface the primary ring when selected so the active
39
+ * annotation is visible.
40
+ *
41
+ * Precedence for the ring color: running > error > selected > warning.
42
+ * The default-case border is `slate.300`.
43
+ */
44
+ function getRingChrome(category, selected, hasError, hasWarning, runState, noteBorder) {
45
+ if (category === 'note') {
46
+ if (selected) {
47
+ return {
48
+ borderColor: noteBorder,
49
+ outline: '3px solid',
50
+ outlineColor: 'primary.lighter',
51
+ };
52
+ }
53
+ return { borderColor: noteBorder };
54
+ }
55
+ if (runState === 'running') {
56
+ return {
57
+ borderColor: 'primary.main',
58
+ outline: '3px solid',
59
+ outlineColor: 'primary.lighter',
60
+ };
61
+ }
62
+ if (hasError) {
63
+ return {
64
+ borderColor: 'danger.main',
65
+ outline: '3px solid',
66
+ outlineColor: 'danger.lighter',
67
+ };
68
+ }
69
+ if (selected) {
70
+ return {
71
+ borderColor: 'primary.main',
72
+ outline: '3px solid',
73
+ outlineColor: 'primary.lighter',
74
+ };
75
+ }
76
+ if (hasWarning)
77
+ return { borderColor: 'warning.main' };
78
+ return { borderColor: 'slate.300' };
79
+ }
80
+ /**
81
+ * Header glyph independently selected from the ring. Error wins over
82
+ * warning wins over running's status dot — so an error inside a running
83
+ * node still surfaces the alert, instead of being hidden by the green
84
+ * dot.
85
+ */
86
+ function getHeaderBadge(hasError, hasWarning, runState) {
87
+ if (hasError) {
88
+ return (jsx(Box, { color: "danger.main", display: "flex", alignItems: "center", children: jsx(AlertTriangle, { boxSize: "xs" }) }));
89
+ }
90
+ if (hasWarning) {
91
+ return (jsx(Box, { color: "warning.dark", display: "flex", alignItems: "center", children: jsx(AlertTriangle, { boxSize: "xs" }) }));
92
+ }
93
+ if (runState === 'running') {
94
+ return (jsx(Box, { boxSize: "2.5", borderRadius: "full", bg: "success.main", outline: "3px solid", outlineColor: "success.lighter" }));
95
+ }
96
+ return null;
97
+ }
98
+ function NodeShell({ label, instanceTitle, metaChips, category, icon, selected, runState, issues, inputs, outputs, connectedOutputIds, categoryTokens, customBody, }) {
99
+ const hasError = issues.some((i) => i.severity === 'error');
100
+ const hasWarning = !hasError && issues.some((i) => i.severity === 'warning');
101
+ const tokens = getCategoryTokens(category, categoryTokens);
102
+ const ring = getRingChrome(category, selected, hasError, hasWarning, runState, tokens.border);
103
+ const badge = getHeaderBadge(hasError, hasWarning, runState);
104
+ const isNote = category === 'note';
105
+ const chips = (metaChips ?? []).slice(0, MAX_META_CHIPS).map(normalizeChip);
106
+ const overflowChip = metaChips && metaChips.length > MAX_META_CHIPS
107
+ ? `+${metaChips.length - MAX_META_CHIPS}`
108
+ : null;
109
+ // Grow the card so ports stay evenly spread without crowding: the busiest
110
+ // side drives the height — the inter-port gaps plus a tight top/bottom edge
111
+ // pad — floored at NODE_MIN_HEIGHT. Notes carry no ports and size to their
112
+ // text, so they opt out.
113
+ const portCount = Math.max(inputs.length, outputs.length);
114
+ const minHeight = isNote
115
+ ? undefined
116
+ : `${Math.max(NODE_MIN_HEIGHT, PORT_GAP * Math.max(portCount - 1, 0) + PORT_EDGE_PAD * 2)}px`;
117
+ return (jsxs(Card, { width: CARD_WIDTH, minHeight: minHeight, p: 0, borderRadius: "lg", borderColor: ring.borderColor, outline: ring.outline, outlineColor: ring.outlineColor, boxShadow: "sm", bg: isNote ? tokens.bg : 'bg.surface', position: "relative",
118
+ // Center the body within the port-driven min-height so a content-light
119
+ // node (e.g. Start) sits mid-card rather than pinned to the top edge.
120
+ display: "flex", flexDirection: "column", justifyContent: "center", children: [isNote ? (jsxs(Stack, { gap: 1, px: 3, py: 2, children: [jsxs(HStack, { gap: 1, color: "warning.dark", fontWeight: "bold", letterSpacing: "wider", textTransform: "uppercase", children: [jsx(StickyNote, { boxSize: "xs" }), jsx(Subtext, { color: "warning.dark", fontWeight: "bold", children: "Note" })] }), customBody ?? (jsx(Subtext, { color: "slate.1200", lineHeight: 1.45, children: instanceTitle ?? label }))] })) : ((customBody ?? (jsxs(Stack, { gap: 0, children: [jsxs(HStack, { gap: 2, px: 3, pt: 2, pb: chips.length || overflowChip ? 1 : 2, children: [jsx(IconTile, { category: category, icon: icon, tokens: categoryTokens }), jsxs(Stack, { gap: 0, flex: 1, minWidth: 0, children: [jsx(Subtext, { fontWeight: "semibold", color: "slate.1200", lineClamp: 1, children: label }), instanceTitle ? (jsx(Subtext, { color: "slate.900", lineClamp: 1, children: instanceTitle })) : null] }), badge] }), chips.length || overflowChip ? (jsxs(HStack, { px: 3, pb: 2, gap: 1, flexWrap: "wrap", children: [chips.map((chip) => (jsx(MetaChip, { tone: chip.tone, children: chip.text }, chip.text))), overflowChip ? jsx(MetaChip, { children: overflowChip }) : null] })) : null] })))), inputs.map((h, i) => (jsx(Handle, { id: h.id, type: "target", position: Position.Left, style: {
121
+ ...PORT_STYLE,
122
+ top: getPortTop(i, inputs.length),
123
+ } }, `in-${h.id}`))), outputs.map((h, i) => (jsx(Handle, { id: h.id, type: "source", position: Position.Right, style: {
124
+ ...PORT_STYLE,
125
+ top: getPortTop(i, outputs.length),
126
+ }, children: h.label && !connectedOutputIds?.has(h.id) ? (
127
+ // Same badge as the connected edge carries (see BranchLabelBadge),
128
+ // so disconnecting/connecting reads as the chip relocating rather
129
+ // than restyling. `pointerEvents="none"` keeps the handle draggable
130
+ // through the label.
131
+ jsx(Box, { position: "absolute", left: "14px", top: "50%", transform: "translateY(-50%)", whiteSpace: "nowrap", pointerEvents: "none", children: jsx(BranchLabelBadge, { variant: getEdgeLabelVariant(h.id), children: h.label }) })) : null }, `out-${h.id}`)))] }));
132
+ }
133
+
134
+ export { NodeShell };
135
+ //# sourceMappingURL=NodeShell.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeShell.mjs","sources":["../../../../../src/components/Workflow/canvas/NodeShell/NodeShell.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiCA;;;;AAIG;AACH,SAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,IAAI,GAAG,SAAS,GAIjB,EAAA;AACC,IAAA,QACEA,GAAA,CAAC,IAAI,EAAA,EAAA,GAAK,cAAc,EAAA,GAAM,kBAAkB,CAAC,IAAI,CAAC,EAAA,QAAA,EACnD,QAAQ,EAAA,CACJ;AAEX;AAEA,SAAS,aAAa,CAAC,IAAkB,EAAA;IAIvC,OAAO,OAAO,IAAI,KAAK;UACnB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS;AAC/B,UAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,SAAS,EAAE;AACvD;AAEA;;;;;;;AAOG;AACH,SAAS,aAAa,CACpB,QAAsB,EACtB,QAAiB,EACjB,QAAiB,EACjB,UAAmB,EACnB,QAAkB,EAClB,UAAkB,EAAA;AAElB,IAAA,IAAI,QAAQ,KAAK,MAAM,EAAE;QACvB,IAAI,QAAQ,EAAE;YACZ,OAAO;AACL,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,OAAO,EAAE,WAAW;AACpB,gBAAA,YAAY,EAAE,iBAAiB;aAChC;QACH;AACA,QAAA,OAAO,EAAE,WAAW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1BH,CAAA,IAAA,EAAO,CAAC,CAAC,EAAE,CAAA,CAAE,CA2BX,CACV,CAAC,CAAA,EAAA,CACG;AAEX;;;;"}
@@ -0,0 +1,66 @@
1
+ import type { PortStyle } from './NodeShell.types';
2
+ export declare const CARD_WIDTH = "174px";
3
+ /**
4
+ * Floor height (px) for a canvas node so a content-light node (e.g. Start,
5
+ * whose header is just an icon + label) doesn't render as a cramped sliver.
6
+ * Composed into a px string at the call site — a raw number would be read as
7
+ * a Chakra spacing token, not pixels.
8
+ */
9
+ export declare const NODE_MIN_HEIGHT = 64;
10
+ /**
11
+ * Vertical gap (px) between adjacent ports. Ports are stacked symmetrically
12
+ * around the card's vertical centre (see `portTop` in NodeShell), so a node
13
+ * with `n` ports reserves `PORT_GAP * (n - 1)` between the first and last —
14
+ * enough that a many-branch node's exits (Classify, If/Else) don't squish
15
+ * together or collide their labels.
16
+ */
17
+ export declare const PORT_GAP = 28;
18
+ /**
19
+ * Padding (px) above the first port and below the last. Kept deliberately
20
+ * tighter than `PORT_GAP` so a busy node (e.g. Classify with many categories)
21
+ * doesn't grow taller than it needs to — the old percentage spread forced this
22
+ * edge gap to equal the inter-port gap, which read as too much dead space.
23
+ */
24
+ export declare const PORT_EDGE_PAD = 14;
25
+ /**
26
+ * Vertical offset for the `i`-th of `count` ports, expressed relative to the
27
+ * card's centre. Stacking them around the middle (rather than spreading them
28
+ * across the full height) keeps a single port dead-centre and lets the top /
29
+ * bottom edge padding shrink to `PORT_EDGE_PAD` independently of `PORT_GAP`,
30
+ * so a busy node isn't padded out taller than it needs to be.
31
+ */
32
+ export declare function getPortTop(index: number, count: number): string;
33
+ /** Cap on the meta-chip row so a node with many badges can't grow unboundedly. */
34
+ export declare const MAX_META_CHIPS = 4;
35
+ export declare const PORT_STYLE: PortStyle;
36
+ /**
37
+ * Compact pill styling for the canvas node's meta row. Overrides logician-ui
38
+ * Chip's chunky defaults so a row of badges fits on a 174px-wide card,
39
+ * but the font size stays on the `sm` theme token — no sub-`sm` sizes
40
+ * in the editor.
41
+ */
42
+ export declare const metaChipStyles: {
43
+ variant: "soft";
44
+ colorPalette: "neutral";
45
+ fontWeight: string;
46
+ px: number;
47
+ py: number;
48
+ borderRadius: string;
49
+ };
50
+ /**
51
+ * Per-tone color overrides applied on top of `metaChipStyles`. `default`
52
+ * is empty so the base styles win; `danger`/`warning` tint the chip when
53
+ * a sub-value (e.g. an unknown model) is invalid.
54
+ */
55
+ export declare const metaChipToneStyles: {
56
+ readonly default: {};
57
+ readonly danger: {
58
+ readonly bg: "danger.lightest";
59
+ readonly color: "danger.dark";
60
+ };
61
+ readonly warning: {
62
+ readonly bg: "warning.lightest";
63
+ readonly color: "warning.dark";
64
+ };
65
+ };
66
+ //# sourceMappingURL=NodeShell.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeShell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workflow/canvas/NodeShell/NodeShell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,UAAU,UAAU,CAAC;AAElC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,aAAa,KAAK,CAAC;AAEhC;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,kFAAkF;AAClF,eAAO,MAAM,cAAc,IAAI,CAAC;AAUhC,eAAO,MAAM,UAAU,EAAE,SAKxB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;;CAO1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;CAIrB,CAAC"}
@@ -0,0 +1,87 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ const CARD_WIDTH = '174px';
5
+ /**
6
+ * Floor height (px) for a canvas node so a content-light node (e.g. Start,
7
+ * whose header is just an icon + label) doesn't render as a cramped sliver.
8
+ * Composed into a px string at the call site — a raw number would be read as
9
+ * a Chakra spacing token, not pixels.
10
+ */
11
+ const NODE_MIN_HEIGHT = 64;
12
+ /**
13
+ * Vertical gap (px) between adjacent ports. Ports are stacked symmetrically
14
+ * around the card's vertical centre (see `portTop` in NodeShell), so a node
15
+ * with `n` ports reserves `PORT_GAP * (n - 1)` between the first and last —
16
+ * enough that a many-branch node's exits (Classify, If/Else) don't squish
17
+ * together or collide their labels.
18
+ */
19
+ const PORT_GAP = 28;
20
+ /**
21
+ * Padding (px) above the first port and below the last. Kept deliberately
22
+ * tighter than `PORT_GAP` so a busy node (e.g. Classify with many categories)
23
+ * doesn't grow taller than it needs to — the old percentage spread forced this
24
+ * edge gap to equal the inter-port gap, which read as too much dead space.
25
+ */
26
+ const PORT_EDGE_PAD = 14;
27
+ /**
28
+ * Vertical offset for the `i`-th of `count` ports, expressed relative to the
29
+ * card's centre. Stacking them around the middle (rather than spreading them
30
+ * across the full height) keeps a single port dead-centre and lets the top /
31
+ * bottom edge padding shrink to `PORT_EDGE_PAD` independently of `PORT_GAP`,
32
+ * so a busy node isn't padded out taller than it needs to be.
33
+ */
34
+ function getPortTop(index, count) {
35
+ const offset = (index - (count - 1) / 2) * PORT_GAP;
36
+ return `calc(50% + ${offset}px)`;
37
+ }
38
+ /** Cap on the meta-chip row so a node with many badges can't grow unboundedly. */
39
+ const MAX_META_CHIPS = 4;
40
+ /**
41
+ * React Flow `<Handle>` takes inline SVG-style props rather than Chakra
42
+ * tokens, so port colors are spelled as CSS vars from the theme.
43
+ */
44
+ function colorVar(token) {
45
+ return `var(--chakra-colors-${token.replace(/\./g, '-')})`;
46
+ }
47
+ const PORT_STYLE = {
48
+ width: 8,
49
+ height: 8,
50
+ background: colorVar('bg.surface'),
51
+ border: `1.5px solid ${colorVar('slate.700')}`,
52
+ };
53
+ /**
54
+ * Compact pill styling for the canvas node's meta row. Overrides logician-ui
55
+ * Chip's chunky defaults so a row of badges fits on a 174px-wide card,
56
+ * but the font size stays on the `sm` theme token — no sub-`sm` sizes
57
+ * in the editor.
58
+ */
59
+ const metaChipStyles = {
60
+ variant: 'soft',
61
+ colorPalette: 'neutral',
62
+ fontWeight: 'medium',
63
+ px: 2,
64
+ py: 0.5,
65
+ borderRadius: 'sm',
66
+ };
67
+ /**
68
+ * Per-tone color overrides applied on top of `metaChipStyles`. `default`
69
+ * is empty so the base styles win; `danger`/`warning` tint the chip when
70
+ * a sub-value (e.g. an unknown model) is invalid.
71
+ */
72
+ const metaChipToneStyles = {
73
+ default: {},
74
+ danger: { bg: 'danger.lightest', color: 'danger.dark' },
75
+ warning: { bg: 'warning.lightest', color: 'warning.dark' },
76
+ };
77
+
78
+ exports.CARD_WIDTH = CARD_WIDTH;
79
+ exports.MAX_META_CHIPS = MAX_META_CHIPS;
80
+ exports.NODE_MIN_HEIGHT = NODE_MIN_HEIGHT;
81
+ exports.PORT_EDGE_PAD = PORT_EDGE_PAD;
82
+ exports.PORT_GAP = PORT_GAP;
83
+ exports.PORT_STYLE = PORT_STYLE;
84
+ exports.getPortTop = getPortTop;
85
+ exports.metaChipStyles = metaChipStyles;
86
+ exports.metaChipToneStyles = metaChipToneStyles;
87
+ //# sourceMappingURL=NodeShell.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeShell.styles.js","sources":["../../../../../src/components/Workflow/canvas/NodeShell/NodeShell.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAEO,MAAM,UAAU,GAAG;AAE1B;;;;;AAKG;AACI,MAAM,eAAe,GAAG;AAE/B;;;;;;AAMG;AACI,MAAM,QAAQ,GAAG;AAExB;;;;;AAKG;AACI,MAAM,aAAa,GAAG;AAE7B;;;;;;AAMG;AACG,SAAU,UAAU,CAAC,KAAa,EAAE,KAAa,EAAA;AACrD,IAAA,MAAM,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,QAAQ;IACnD,OAAO,CAAA,WAAA,EAAc,MAAM,CAAA,GAAA,CAAK;AAClC;AAEA;AACO,MAAM,cAAc,GAAG;AAE9B;;;AAGG;AACH,SAAS,QAAQ,CAAC,KAAa,EAAA;IAC7B,OAAO,CAAA,oBAAA,EAAuB,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA,CAAA,CAAG;AAC5D;AAEO,MAAM,UAAU,GAAc;AACnC,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC;AAClC,IAAA,MAAM,EAAE,CAAA,YAAA,EAAe,QAAQ,CAAC,WAAW,CAAC,CAAA,CAAE;;AAGhD;;;;;AAKG;AACI,MAAM,cAAc,GAAG;AAC5B,IAAA,OAAO,EAAE,MAAe;AACxB,IAAA,YAAY,EAAE,SAAkB;AAChC,IAAA,UAAU,EAAE,QAAQ;AACpB,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,GAAG;AACP,IAAA,YAAY,EAAE,IAAI;;AAGpB;;;;AAIG;AACI,MAAM,kBAAkB,GAAG;AAChC,IAAA,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAAE;IACvD,OAAO,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,EAAE;;;;;;;;;;;;;"}
@@ -0,0 +1,77 @@
1
+ "use client";
2
+ const CARD_WIDTH = '174px';
3
+ /**
4
+ * Floor height (px) for a canvas node so a content-light node (e.g. Start,
5
+ * whose header is just an icon + label) doesn't render as a cramped sliver.
6
+ * Composed into a px string at the call site — a raw number would be read as
7
+ * a Chakra spacing token, not pixels.
8
+ */
9
+ const NODE_MIN_HEIGHT = 64;
10
+ /**
11
+ * Vertical gap (px) between adjacent ports. Ports are stacked symmetrically
12
+ * around the card's vertical centre (see `portTop` in NodeShell), so a node
13
+ * with `n` ports reserves `PORT_GAP * (n - 1)` between the first and last —
14
+ * enough that a many-branch node's exits (Classify, If/Else) don't squish
15
+ * together or collide their labels.
16
+ */
17
+ const PORT_GAP = 28;
18
+ /**
19
+ * Padding (px) above the first port and below the last. Kept deliberately
20
+ * tighter than `PORT_GAP` so a busy node (e.g. Classify with many categories)
21
+ * doesn't grow taller than it needs to — the old percentage spread forced this
22
+ * edge gap to equal the inter-port gap, which read as too much dead space.
23
+ */
24
+ const PORT_EDGE_PAD = 14;
25
+ /**
26
+ * Vertical offset for the `i`-th of `count` ports, expressed relative to the
27
+ * card's centre. Stacking them around the middle (rather than spreading them
28
+ * across the full height) keeps a single port dead-centre and lets the top /
29
+ * bottom edge padding shrink to `PORT_EDGE_PAD` independently of `PORT_GAP`,
30
+ * so a busy node isn't padded out taller than it needs to be.
31
+ */
32
+ function getPortTop(index, count) {
33
+ const offset = (index - (count - 1) / 2) * PORT_GAP;
34
+ return `calc(50% + ${offset}px)`;
35
+ }
36
+ /** Cap on the meta-chip row so a node with many badges can't grow unboundedly. */
37
+ const MAX_META_CHIPS = 4;
38
+ /**
39
+ * React Flow `<Handle>` takes inline SVG-style props rather than Chakra
40
+ * tokens, so port colors are spelled as CSS vars from the theme.
41
+ */
42
+ function colorVar(token) {
43
+ return `var(--chakra-colors-${token.replace(/\./g, '-')})`;
44
+ }
45
+ const PORT_STYLE = {
46
+ width: 8,
47
+ height: 8,
48
+ background: colorVar('bg.surface'),
49
+ border: `1.5px solid ${colorVar('slate.700')}`,
50
+ };
51
+ /**
52
+ * Compact pill styling for the canvas node's meta row. Overrides logician-ui
53
+ * Chip's chunky defaults so a row of badges fits on a 174px-wide card,
54
+ * but the font size stays on the `sm` theme token — no sub-`sm` sizes
55
+ * in the editor.
56
+ */
57
+ const metaChipStyles = {
58
+ variant: 'soft',
59
+ colorPalette: 'neutral',
60
+ fontWeight: 'medium',
61
+ px: 2,
62
+ py: 0.5,
63
+ borderRadius: 'sm',
64
+ };
65
+ /**
66
+ * Per-tone color overrides applied on top of `metaChipStyles`. `default`
67
+ * is empty so the base styles win; `danger`/`warning` tint the chip when
68
+ * a sub-value (e.g. an unknown model) is invalid.
69
+ */
70
+ const metaChipToneStyles = {
71
+ default: {},
72
+ danger: { bg: 'danger.lightest', color: 'danger.dark' },
73
+ warning: { bg: 'warning.lightest', color: 'warning.dark' },
74
+ };
75
+
76
+ export { CARD_WIDTH, MAX_META_CHIPS, NODE_MIN_HEIGHT, PORT_EDGE_PAD, PORT_GAP, PORT_STYLE, getPortTop, metaChipStyles, metaChipToneStyles };
77
+ //# sourceMappingURL=NodeShell.styles.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeShell.styles.mjs","sources":["../../../../../src/components/Workflow/canvas/NodeShell/NodeShell.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";AAEO,MAAM,UAAU,GAAG;AAE1B;;;;;AAKG;AACI,MAAM,eAAe,GAAG;AAE/B;;;;;;AAMG;AACI,MAAM,QAAQ,GAAG;AAExB;;;;;AAKG;AACI,MAAM,aAAa,GAAG;AAE7B;;;;;;AAMG;AACG,SAAU,UAAU,CAAC,KAAa,EAAE,KAAa,EAAA;AACrD,IAAA,MAAM,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,QAAQ;IACnD,OAAO,CAAA,WAAA,EAAc,MAAM,CAAA,GAAA,CAAK;AAClC;AAEA;AACO,MAAM,cAAc,GAAG;AAE9B;;;AAGG;AACH,SAAS,QAAQ,CAAC,KAAa,EAAA;IAC7B,OAAO,CAAA,oBAAA,EAAuB,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA,CAAA,CAAG;AAC5D;AAEO,MAAM,UAAU,GAAc;AACnC,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC;AAClC,IAAA,MAAM,EAAE,CAAA,YAAA,EAAe,QAAQ,CAAC,WAAW,CAAC,CAAA,CAAE;;AAGhD;;;;;AAKG;AACI,MAAM,cAAc,GAAG;AAC5B,IAAA,OAAO,EAAE,MAAe;AACxB,IAAA,YAAY,EAAE,SAAkB;AAChC,IAAA,UAAU,EAAE,QAAQ;AACpB,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,EAAE,EAAE,GAAG;AACP,IAAA,YAAY,EAAE,IAAI;;AAGpB;;;;AAIG;AACI,MAAM,kBAAkB,GAAG;AAChC,IAAA,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAAE;IACvD,OAAO,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,EAAE;;;;;"}
@@ -0,0 +1,35 @@
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ import { type CreatedIcon } from '@/components/Icon';
3
+ import type { HandleDef, Issue, MetaChipSpec, NodeCategory, RunState } from '../../Workflow.types';
4
+ import type { CategoryTokenMap } from '../IconTile';
5
+ export type NodeShellProps = {
6
+ label: string;
7
+ instanceTitle?: string;
8
+ metaChips?: ReadonlyArray<MetaChipSpec>;
9
+ category: NodeCategory;
10
+ icon: CreatedIcon;
11
+ selected: boolean;
12
+ runState: RunState;
13
+ issues: Issue[];
14
+ inputs: HandleDef[];
15
+ outputs: HandleDef[];
16
+ /**
17
+ * Output handle ids that already have an edge connected. A connected exit's
18
+ * name is carried by the edge's label badge, so the node suppresses its own
19
+ * handle label there to avoid showing the branch name twice (once on the
20
+ * exit, once on the edge). Unconnected exits keep their label so the author
21
+ * can still tell the branches apart.
22
+ */
23
+ connectedOutputIds?: ReadonlySet<string>;
24
+ /** Optional override for the category → token map. */
25
+ categoryTokens?: CategoryTokenMap;
26
+ /** Escape-hatch body. If provided, replaces the standard header+meta layout. */
27
+ customBody?: ReactNode;
28
+ };
29
+ export type RingChrome = {
30
+ borderColor: string;
31
+ outline?: string;
32
+ outlineColor?: string;
33
+ };
34
+ export type PortStyle = CSSProperties;
35
+ //# sourceMappingURL=NodeShell.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeShell.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workflow/canvas/NodeShell/NodeShell.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EACV,SAAS,EACT,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,QAAQ,EACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,sDAAsD;IACtD,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,gFAAgF;IAChF,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { NodeShell } from './NodeShell';
2
+ export { CARD_WIDTH, MAX_META_CHIPS, metaChipStyles, PORT_STYLE, } from './NodeShell.styles';
3
+ export type { NodeShellProps, PortStyle, RingChrome } from './NodeShell.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workflow/canvas/NodeShell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type BoxProps } from '@chakra-ui/react';
2
+ import type { IssueSeverity } from '../../Workflow.types';
3
+ interface SeverityDotProps extends BoxProps {
4
+ severity: IssueSeverity;
5
+ /**
6
+ * Shade of the severity colour. `dark` reads better as a small marker on a
7
+ * tinted callout background; `main` suits a header dot on white. Defaults to
8
+ * `main`.
9
+ */
10
+ tone?: 'main' | 'dark';
11
+ }
12
+ /** Small round severity marker shared by the issue callout and the issue list. */
13
+ export declare function SeverityDot({ severity, tone, ...rest }: SeverityDotProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=SeverityDot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeverityDot.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workflow/canvas/SeverityDot/SeverityDot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,UAAU,gBAAiB,SAAQ,QAAQ;IACzC,QAAQ,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,IAAa,EACb,GAAG,IAAI,EACR,EAAE,gBAAgB,2CAUlB"}
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var react = require('@chakra-ui/react');
6
+ var issueSeverity = require('../issueSeverity.js');
7
+
8
+ /** Small round severity marker shared by the issue callout and the issue list. */
9
+ function SeverityDot({ severity, tone = 'main', ...rest }) {
10
+ return (jsxRuntime.jsx(react.Box, { boxSize: "1.5", borderRadius: "full", flexShrink: 0, bg: issueSeverity.severityColorToken(severity, tone), ...rest }));
11
+ }
12
+
13
+ exports.SeverityDot = SeverityDot;
14
+ //# sourceMappingURL=SeverityDot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeverityDot.js","sources":["../../../../../src/components/Workflow/canvas/SeverityDot/SeverityDot.tsx"],"sourcesContent":[null],"names":["_jsx","Box","severityColorToken"],"mappings":";;;;;;;AAiBA;AACM,SAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,IAAI,GAAG,MAAM,EACb,GAAG,IAAI,EACU,EAAA;AACjB,IAAA,QACEA,cAAA,CAACC,SAAG,EAAA,EACF,OAAO,EAAC,KAAK,EACb,YAAY,EAAC,MAAM,EACnB,UAAU,EAAE,CAAC,EACb,EAAE,EAAEC,gCAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAA,GAClC,IAAI,EAAA,CACR;AAEN;;;;"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { Box } from '@chakra-ui/react';
4
+ import { severityColorToken } from '../issueSeverity.mjs';
5
+
6
+ /** Small round severity marker shared by the issue callout and the issue list. */
7
+ function SeverityDot({ severity, tone = 'main', ...rest }) {
8
+ return (jsx(Box, { boxSize: "1.5", borderRadius: "full", flexShrink: 0, bg: severityColorToken(severity, tone), ...rest }));
9
+ }
10
+
11
+ export { SeverityDot };
12
+ //# sourceMappingURL=SeverityDot.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeverityDot.mjs","sources":["../../../../../src/components/Workflow/canvas/SeverityDot/SeverityDot.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;AAiBA;AACM,SAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,IAAI,GAAG,MAAM,EACb,GAAG,IAAI,EACU,EAAA;AACjB,IAAA,QACEA,GAAA,CAAC,GAAG,EAAA,EACF,OAAO,EAAC,KAAK,EACb,YAAY,EAAC,MAAM,EACnB,UAAU,EAAE,CAAC,EACb,EAAE,EAAE,kBAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAA,GAClC,IAAI,EAAA,CACR;AAEN;;;;"}
@@ -0,0 +1,2 @@
1
+ export { SeverityDot } from './SeverityDot';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workflow/canvas/SeverityDot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { Issue, IssueSeverity } from '../Workflow.types';
2
+ /**
3
+ * The single issue a one-slot surface should represent: highest severity
4
+ * wins, first-listed breaks ties. Shared by every "tint by worst issue"
5
+ * consumer (field borders, the header title editor) so precedence can't
6
+ * drift between surfaces.
7
+ */
8
+ export declare const pickPrimaryIssue: (issues: Issue[]) => Issue | null;
9
+ /**
10
+ * Semantic color token for an issue severity — shared across issue list UIs.
11
+ * `tone` selects the shade: the default `'main'` for text/icons, or `'dark'`
12
+ * where `.main` is too light to read (e.g. the small list-bullet markers in
13
+ * drawer issue callouts, which need extra contrast against the tinted bg).
14
+ */
15
+ export declare const severityColorToken: (severity: IssueSeverity, tone?: "main" | "dark") => string;
16
+ /**
17
+ * Tinted callout styling (bg / border / text) for an issue severity. Reuses the
18
+ * `Toast` component's golden-ratio combo — the documented WCAG AA pairing — so
19
+ * the boxed inspector callouts stay in lockstep with it instead of restating
20
+ * the tokens. `IssueSeverity` is a subset of the toast statuses.
21
+ */
22
+ export declare const severityCalloutStyle: (severity: IssueSeverity) => import("@chakra-ui/react").BoxProps;
23
+ //# sourceMappingURL=issueSeverity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issueSeverity.d.ts","sourceRoot":"","sources":["../../../../src/components/Workflow/canvas/issueSeverity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAO9D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,KAAK,EAAE,KAAG,KAAK,GAAG,IAY1D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,aAAa,EACvB,OAAM,MAAM,GAAG,MAAe,KAC7B,MAAuE,CAAC;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,aAAa,wCACrC,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ require('react/jsx-runtime');
5
+ require('@chakra-ui/react');
6
+ var Toast_styles = require('../../Toast/Toast.styles.js');
7
+ require('../../Icon/index.js');
8
+ require('../../Toast/Toaster.js');
9
+ require('react');
10
+
11
+ const SEVERITY_PRECEDENCE = {
12
+ error: 2,
13
+ warning: 1,
14
+ };
15
+ /**
16
+ * The single issue a one-slot surface should represent: highest severity
17
+ * wins, first-listed breaks ties. Shared by every "tint by worst issue"
18
+ * consumer (field borders, the header title editor) so precedence can't
19
+ * drift between surfaces.
20
+ */
21
+ const pickPrimaryIssue = (issues) => {
22
+ if (issues.length === 0)
23
+ return null;
24
+ let primary = issues[0];
25
+ for (let i = 1; i < issues.length; i += 1) {
26
+ if (SEVERITY_PRECEDENCE[issues[i].severity] >
27
+ SEVERITY_PRECEDENCE[primary.severity]) {
28
+ primary = issues[i];
29
+ }
30
+ }
31
+ return primary;
32
+ };
33
+ /**
34
+ * Semantic color token for an issue severity — shared across issue list UIs.
35
+ * `tone` selects the shade: the default `'main'` for text/icons, or `'dark'`
36
+ * where `.main` is too light to read (e.g. the small list-bullet markers in
37
+ * drawer issue callouts, which need extra contrast against the tinted bg).
38
+ */
39
+ const severityColorToken = (severity, tone = 'main') => (severity === 'error' ? `danger.${tone}` : `warning.${tone}`);
40
+ /**
41
+ * Tinted callout styling (bg / border / text) for an issue severity. Reuses the
42
+ * `Toast` component's golden-ratio combo — the documented WCAG AA pairing — so
43
+ * the boxed inspector callouts stay in lockstep with it instead of restating
44
+ * the tokens. `IssueSeverity` is a subset of the toast statuses.
45
+ */
46
+ const severityCalloutStyle = (severity) => Toast_styles.toastStyles[severity];
47
+
48
+ exports.pickPrimaryIssue = pickPrimaryIssue;
49
+ exports.severityCalloutStyle = severityCalloutStyle;
50
+ exports.severityColorToken = severityColorToken;
51
+ //# sourceMappingURL=issueSeverity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issueSeverity.js","sources":["../../../../src/components/Workflow/canvas/issueSeverity.ts"],"sourcesContent":[null],"names":["toastStyles"],"mappings":";;;;;;;;;;AAIA,MAAM,mBAAmB,GAAkC;AACzD,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,OAAO,EAAE,CAAC;CACX;AAED;;;;;AAKG;AACI,MAAM,gBAAgB,GAAG,CAAC,MAAe,KAAkB;AAChE,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,IAAI;AACpC,IAAA,IAAI,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;AACvB,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACzC,IACE,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AACvC,YAAA,mBAAmB,CAAC,OAAO,CAAC,QAAQ,CAAC,EACrC;AACA,YAAA,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;QACrB;IACF;AACA,IAAA,OAAO,OAAO;AAChB;AAEA;;;;;AAKG;AACI,MAAM,kBAAkB,GAAG,CAChC,QAAuB,EACvB,IAAA,GAAwB,MAAM,MAClB,QAAQ,KAAK,OAAO,GAAG,CAAA,OAAA,EAAU,IAAI,CAAA,CAAE,GAAG,CAAA,QAAA,EAAW,IAAI,CAAA,CAAE;AAEzE;;;;;AAKG;AACI,MAAM,oBAAoB,GAAG,CAAC,QAAuB,KAC1DA,wBAAW,CAAC,QAAQ;;;;;;"}