@fluidgrids/fe-sdk 0.0.0-stage → 2026.1203.8

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 (323) hide show
  1. package/README.md +564 -2
  2. package/dist/ActivityOptionsFields-C2u-hY2U.js +142 -0
  3. package/dist/AiStudioPage-B_hNTj-_.js +1137 -0
  4. package/dist/ApprovalInboxPage-ClITra3n.js +1312 -0
  5. package/dist/ChoiceSelect-LkK-uS9J.js +65 -0
  6. package/dist/ConfirmActionDialog-DHWTDRbp.js +31 -0
  7. package/dist/ConnectionFormDialog-C0kDgcrZ.js +153 -0
  8. package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
  9. package/dist/DataSinkDashboardPage-b4ezeqa6.js +278 -0
  10. package/dist/DataTablesPage-C1d9YGHz.js +5575 -0
  11. package/dist/DateTimeField-B1qR4ruo.js +51 -0
  12. package/dist/Disclosure-BNKij7-v.js +45 -0
  13. package/dist/ElementLibraryPage-8jNO6YmE.js +2256 -0
  14. package/dist/ElementLibrarySequenceDocument-B-W8SPzn.js +3979 -0
  15. package/dist/EnsureThemeProvider-BvlNjAd0.js +24 -0
  16. package/dist/EntityTagBadge-1OlP6p0c.js +25 -0
  17. package/dist/EntityTagPicker-BBrU5cE0.js +137 -0
  18. package/dist/ExecuteStepDocument-B4j1mdRT.js +189 -0
  19. package/dist/ExecutionDetailDocument-D6QuM-kp.js +875 -0
  20. package/dist/ExecutionDetailPage-D4CBtFdo.js +12217 -0
  21. package/dist/ExecutionDetailPage-DvQ667OE.d.ts +10 -0
  22. package/dist/ExecutionStatusBadge-BsDVor9t.js +221 -0
  23. package/dist/ExecutionsListDocument-Dan7ZiqB.js +459 -0
  24. package/dist/ExecutionsListPage-B3XT8ITL.js +4307 -0
  25. package/dist/FailureTriagePanel-DOJMaJ0n.js +1285 -0
  26. package/dist/FileDownloadUrlDocument-CVOYKcL5.js +92 -0
  27. package/dist/FluidGridsDocsLink-bX0Hnhxr.js +66 -0
  28. package/dist/FluidGridsMark-CE2blT7K.js +74 -0
  29. package/dist/HeldLoadRegion-BtTxbvOW.js +34 -0
  30. package/dist/HistoryPage-BLoRpJ1R.d.ts +6 -0
  31. package/dist/HistoryPage-BSBISXoj.js +2835 -0
  32. package/dist/Icon-BtQ0HXLh.js +160 -0
  33. package/dist/InsightsPage-D7ybj8N9.js +11245 -0
  34. package/dist/IsolationSetting-vy911E8b.js +1153 -0
  35. package/dist/LibraryParts-DOeNgR8A.js +413 -0
  36. package/dist/ManagedAiPolicyAuthority-BxwJ3ptd.js +40 -0
  37. package/dist/ManagedAiPolicyAuthority-DM3t3wNr.d.ts +18 -0
  38. package/dist/ManagedAiPolicyAuthorityContext-CNkxIOZ1.js +10 -0
  39. package/dist/McpTriggerServers-BCPCAOWB.js +459 -0
  40. package/dist/MissingNodesInstallModal-rO_SEDrC.js +224 -0
  41. package/dist/NavigationV2Provider-DCDt35eG.js +17 -0
  42. package/dist/NodeSchemaIntrospectionDocument-C1vAIcHd.js +95 -0
  43. package/dist/NodesPage-DEbnz9iU.d.ts +6 -0
  44. package/dist/NodesPage-O7KeeKtd.js +653 -0
  45. package/dist/OfflineIcon-TwMKYWjA.js +207 -0
  46. package/dist/OpenTemplateAsCodeButton-BhWJWIF3.js +94 -0
  47. package/dist/PaidTemplateConfirm-_G3ag6S4.js +28 -0
  48. package/dist/PublishCustomNodeAction-CIySbK4c.js +134 -0
  49. package/dist/RecordTaskDialog-BkpCDvhR.js +2078 -0
  50. package/dist/RunActionsMenu-DodOgIQm.js +59 -0
  51. package/dist/RunnerStatusPill-C1v967iq.js +24 -0
  52. package/dist/RunnersPage-dB0RSdY_.js +1929 -0
  53. package/dist/SandboxRuntimeExhaustedNotice-BFOIF93C.js +120 -0
  54. package/dist/SchedulesPage-DPWr1yvf.js +1607 -0
  55. package/dist/SearchBox-BGtYjvfs.js +49 -0
  56. package/dist/SequenceEditor-CFiHeHkR.js +497 -0
  57. package/dist/SettingsPage-0CQBNPZV.js +8695 -0
  58. package/dist/StewardPages-DAJhepen.js +47 -0
  59. package/dist/StewardRunImportPanel-Kva2DO0u.js +2844 -0
  60. package/dist/StoreTemplateCardCompact-CHn5kP7A.js +2166 -0
  61. package/dist/TagFilterSelect-CyA8QrS7.js +42 -0
  62. package/dist/TaskQueuesPage-DdnDCyat.js +3571 -0
  63. package/dist/TechnicalDetails-B0Oi4aZw.js +19 -0
  64. package/dist/TemplateConfigurationModal-CdvCYJLM.js +332 -0
  65. package/dist/TemplateDetailPanel-CbiKciuB.js +222 -0
  66. package/dist/TemplatePreview-cx7-NOeG.js +868 -0
  67. package/dist/TemplatesPage-BG3H-6v6.d.ts +10 -0
  68. package/dist/TemplatesPage-BVQpGYIV.js +3251 -0
  69. package/dist/TerminateExecutionDocument-B_HKNVrN.js +581 -0
  70. package/dist/TranslationBridge-Bd4aJKMs.d.ts +11 -0
  71. package/dist/TranslationBridge-Da-TPgQm.js +68 -0
  72. package/dist/TriggerWorkflowDocument-D9Km2Vv2.js +460 -0
  73. package/dist/UiSequencePickerSequenceDocument-BSYnSDV7.js +607 -0
  74. package/dist/UiStepScreenshot-Qh4QMyUp.js +146 -0
  75. package/dist/UsageTimeSeriesDocument-DcInx9-z.js +177 -0
  76. package/dist/VariablesPage-ChfGuW22.js +2243 -0
  77. package/dist/VersionDiffDialog-Bd2AeUwf.js +1702 -0
  78. package/dist/VersionLifecycleBar-BBeWVtz-.js +143 -0
  79. package/dist/WebhookDeliveriesPage-D66bua0j.js +1563 -0
  80. package/dist/WorkflowBuilder-B6wQD1TK.js +539 -0
  81. package/dist/WorkflowBuilder-DR4ku8Tr.js +1611 -0
  82. package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
  83. package/dist/WorkflowEmbed-BXfFGy0i.js +708 -0
  84. package/dist/WorkflowEmbed-Cbqe1s1z.d.ts +6 -0
  85. package/dist/WorkflowPinnedDataDocument-BODT5omd.js +782 -0
  86. package/dist/WorkflowProposalCard-BruukdeF.js +96 -0
  87. package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
  88. package/dist/WorkflowSearchRedirect-C7zJ2MKH.js +40 -0
  89. package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
  90. package/dist/WorkflowSettingsDrawer-gazs97WR.js +196 -0
  91. package/dist/WorkflowShareDialog-e8jJtLjU.js +469 -0
  92. package/dist/WorkflowVersionsDocument-DRVOp8Uj.js +3213 -0
  93. package/dist/WorkflowsList--hR2_8gf.js +4593 -0
  94. package/dist/WorkflowsList-CcNDQge5.d.ts +6 -0
  95. package/dist/WorkflowsListPageDocument-CnzcQm_o.js +934 -0
  96. package/dist/addonCatalog-CbZS4deh.js +58 -0
  97. package/dist/addonCatalog-sjlonAmR.d.ts +15 -0
  98. package/dist/addons.d.ts +3 -0
  99. package/dist/addons.js +4 -0
  100. package/dist/agent-form-Bfvm32j1.js +83 -0
  101. package/dist/agent-tools.d.ts +3 -0
  102. package/dist/agent-tools.js +5 -0
  103. package/dist/agentTools-CyL7DLOF.js +320 -0
  104. package/dist/ai-usage-BrxDgvdR.js +240 -0
  105. package/dist/aiCreditsBridge-BuE92tKo.js +49 -0
  106. package/dist/api-BKq-nIOZ.js +2286 -0
  107. package/dist/api-Ol7I8NxE.js +8289 -0
  108. package/dist/apollo-type-policies.d.ts +11 -0
  109. package/dist/apollo-type-policies.js +64 -0
  110. package/dist/askAboutBridge-ByYsQams.js +106 -0
  111. package/dist/askQuestions-Cmx7VnMm.js +742 -0
  112. package/dist/assert-rules-lfYEMc99.js +318 -0
  113. package/dist/assistant.d.ts +94 -0
  114. package/dist/assistant.js +99 -0
  115. package/dist/attach-node-helpers-HDKQOtrD.js +32 -0
  116. package/dist/badge-CXfPhoMH.js +26 -0
  117. package/dist/basil.generated-BK-EHbwN.js +10 -0
  118. package/dist/browser-steps-DMpS5TyB.js +533 -0
  119. package/dist/builderTimings-pvGnK1m-.js +510 -0
  120. package/dist/button-DG7y_FVJ.js +48 -0
  121. package/dist/canvasNoteTools-BxuP_AYO.js +137 -0
  122. package/dist/card-Bomy_1UG.js +44 -0
  123. package/dist/catalogGrid-BOrfMgi-.js +41 -0
  124. package/dist/channel-CPyQ1NR1.js +212 -0
  125. package/dist/chips-CvNrYJZa.js +27 -0
  126. package/dist/client-holder-C0M5Cfwl.js +68 -0
  127. package/dist/cn-QqidFIgr.js +10 -0
  128. package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
  129. package/dist/code-editor-field-x_JrY8KR.js +113 -0
  130. package/dist/codec-client-DPuD6mw7.js +515 -0
  131. package/dist/conditionBuilder-DwfEF0Q-.js +1144 -0
  132. package/dist/config-DO68jw5k.js +322 -0
  133. package/dist/constants-DgbVc24O.d.ts +296 -0
  134. package/dist/constants-DlRnHBfQ.js +217 -0
  135. package/dist/convert-browser-action-pfecelF7.js +347 -0
  136. package/dist/convert-dialog-B_o22NiJ.js +382 -0
  137. package/dist/create-workflow-first-Azg3JUdX.js +120 -0
  138. package/dist/definition-canvas-Bsda-rDT.js +31 -0
  139. package/dist/dialog-BVd152GS.js +94 -0
  140. package/dist/durable-nodes-BXyYCLxT.js +91 -0
  141. package/dist/duration-CDb7-mT_.js +33 -0
  142. package/dist/edge-mapper-wEAdGVU2.js +4477 -0
  143. package/dist/element-library-DkSlg_VE.js +727 -0
  144. package/dist/entities-I_0kio3q.js +38 -0
  145. package/dist/error-advice-QLr5NCm7.js +65 -0
  146. package/dist/errors-ClKb5sEt.js +188 -0
  147. package/dist/executions.d.ts +3 -0
  148. package/dist/executions.js +5 -0
  149. package/dist/feature-flags-B2qetXKd.js +385 -0
  150. package/dist/field-label-DPZRmE_B.js +153 -0
  151. package/dist/firstWorkflow-C_h0KMB2.js +133 -0
  152. package/dist/flags.d.ts +3 -0
  153. package/dist/flags.js +4 -0
  154. package/dist/flow-builder-DIvLOhz0.js +28038 -0
  155. package/dist/flow-store-holder-CUN7Terz.js +52 -0
  156. package/dist/fluent.generated-CA_e6-4l.js +14 -0
  157. package/dist/fluidgridsEvents-bbEQbwU6.js +175 -0
  158. package/dist/fluidgridsTheme-DUhvOgoy.js +297 -0
  159. package/dist/global-client-BQPuFrFa.js +433 -0
  160. package/dist/global-operations-BG6YgxrM.js +136 -0
  161. package/dist/graphql-types-UTYtujY9.js +21358 -0
  162. package/dist/history.d.ts +3 -0
  163. package/dist/history.js +4 -0
  164. package/dist/index-AoJAa5vU.d.ts +164958 -0
  165. package/dist/index-DEMT3iAM.d.ts +120 -0
  166. package/dist/index-ROZzNGyY.d.ts +76 -0
  167. package/dist/index.d.ts +20 -0
  168. package/dist/index.js +8123 -0
  169. package/dist/ion.generated-mbajjcAg.js +10 -0
  170. package/dist/label-Lzb8ZXf_.js +29 -0
  171. package/dist/labels-rXd9gYQz.js +1236 -0
  172. package/dist/liveCanvas-D5ytXDp8.js +103 -0
  173. package/dist/logos.generated-X6_0kjVR.js +21 -0
  174. package/dist/logs-panel-Cw0DkG0l.js +468 -0
  175. package/dist/lucide.generated-B6NVd3GT.js +29 -0
  176. package/dist/marksStore-a9oIMMot.js +175 -0
  177. package/dist/mcp-trigger-D0nRdvq5.js +307 -0
  178. package/dist/mdi.generated-D1BV74d6.js +292 -0
  179. package/dist/menus-CU3hDGYl.js +160 -0
  180. package/dist/mynaui.generated-DMWr5cXz.js +66 -0
  181. package/dist/navigation-v2.d.ts +3 -0
  182. package/dist/navigation-v2.js +5 -0
  183. package/dist/node-detail-view-Cgm5H1P-.js +1372 -0
  184. package/dist/node-editor-tab-body-CZ0fVuVP.js +187 -0
  185. package/dist/node-operation-selection-CdV3KI_V.js +3534 -0
  186. package/dist/node-registry-refresh-s3okf83X.js +27 -0
  187. package/dist/node-role-TMbnkmeP.js +132 -0
  188. package/dist/node-type-icon-BZa8n4iG.js +33 -0
  189. package/dist/nodes.d.ts +3 -0
  190. package/dist/nodes.js +4 -0
  191. package/dist/notesKey-5EaREBGA.js +12 -0
  192. package/dist/observability.d.ts +3 -0
  193. package/dist/observability.js +5 -0
  194. package/dist/offset-pages-zghoClB3.js +55 -0
  195. package/dist/operations-BBmT9ToP.js +663 -0
  196. package/dist/operations-WxRJWeqO.js +3133 -0
  197. package/dist/output-files-Ba8bu5lv.js +196 -0
  198. package/dist/page-operation-DrWuhd6Y.js +129 -0
  199. package/dist/page-twins.d.ts +13 -0
  200. package/dist/page-twins.js +186 -0
  201. package/dist/pageControlSpecs-DZJ9K37m.js +134 -0
  202. package/dist/pageControlsBridge-0pX9s-3k.js +54 -0
  203. package/dist/pageControlsBridge-DAuT3w7L.d.ts +36 -0
  204. package/dist/panels-PfBBAToE.js +346 -0
  205. package/dist/parts-B7fBcw-B.js +346 -0
  206. package/dist/popover-Dms9Vz3j.js +3389 -0
  207. package/dist/preloadable-lazy-Pp47mqQ9.js +65 -0
  208. package/dist/proactive.d.ts +66 -0
  209. package/dist/proactive.js +237 -0
  210. package/dist/quick-config-panel-DFd77xho.js +451 -0
  211. package/dist/quota-DeA_CJ2e.js +175 -0
  212. package/dist/quota.d.ts +3 -0
  213. package/dist/quota.js +4 -0
  214. package/dist/read-only-context-Dt9N9SIG.js +18 -0
  215. package/dist/relative-time-Dxt8ZIIu.js +55 -0
  216. package/dist/results-CwK_yDxK.js +325 -0
  217. package/dist/rolldown-runtime-hDbaFkMy.js +18 -0
  218. package/dist/route-data.d.ts +12 -0
  219. package/dist/route-data.js +69 -0
  220. package/dist/route-match-C-0_EnAt.d.ts +5 -0
  221. package/dist/route-match-DMkUICYV.js +41 -0
  222. package/dist/route-preload-C4DlGoCd.js +120 -0
  223. package/dist/run-display-UjLAoYqQ.js +81 -0
  224. package/dist/run-history-arGiHzGU.js +285 -0
  225. package/dist/run-list-links-DJn4Mf1T.js +98 -0
  226. package/dist/run-mode-USmM0-Uo.js +82 -0
  227. package/dist/run-parity-CWXqEJqM.js +144 -0
  228. package/dist/runsQuota-B6SyTbne.js +100 -0
  229. package/dist/runsQuota-DsniKiSg.d.ts +20 -0
  230. package/dist/safe-expression-Cw7-SCsm.js +1251 -0
  231. package/dist/save-status-store-C7nEYpfb.js +631 -0
  232. package/dist/schedule-panel-B4GYXzXQ.js +13774 -0
  233. package/dist/schedule-rules-ggVKRkBH.js +358 -0
  234. package/dist/secrets-Re_wSiE3.js +153 -0
  235. package/dist/settings.d.ts +4 -0
  236. package/dist/settings.js +6 -0
  237. package/dist/shared-DAWGGMSM.js +177 -0
  238. package/dist/sidebar-node-editor-6eSSgCzc.js +178 -0
  239. package/dist/solar.generated-CGYuUQAC.js +10 -0
  240. package/dist/stableTabbedDialog-BBhrfXGe.js +20 -0
  241. package/dist/start-url-CT6Yz96K.js +24 -0
  242. package/dist/status-CessxGpm.js +55 -0
  243. package/dist/store-icon-OctYp5zP.js +155 -0
  244. package/dist/styles-WGmTnZ2n.js +26 -0
  245. package/dist/styles.css +139 -0
  246. package/dist/svg-spinners.generated-CIPT7IhM.js +10 -0
  247. package/dist/template-code-CzN6JWNV.js +191 -0
  248. package/dist/template-graph-DLF9dygU.js +20 -0
  249. package/dist/template-preview-DcIIKOOL.js +32 -0
  250. package/dist/template-price-CdUHZRMF.js +40 -0
  251. package/dist/templates.d.ts +3 -0
  252. package/dist/templates.js +5 -0
  253. package/dist/theme-provider-CntfC4_i.js +23 -0
  254. package/dist/transient-DgZfhDfN.js +57 -0
  255. package/dist/typed-calls-C5tO03wq.js +26 -0
  256. package/dist/ui-script-By74Guk3.js +1094 -0
  257. package/dist/ui-script-editor-CqPu2bCN.js +2447 -0
  258. package/dist/ui-step-fix-8uM2_Hft.js +67 -0
  259. package/dist/ui-step-fix-store-CcO1FdRx.js +19 -0
  260. package/dist/ui-step-run-context-o7bLE6KP.js +46 -0
  261. package/dist/ui-target-editor-D2JhB_lD.js +673 -0
  262. package/dist/uiMarkTools-CSznnO1i.js +1054 -0
  263. package/dist/upgradePrompt-BAFBKKW5.js +72 -0
  264. package/dist/use-bare-node-registry-O6mKJO_n.js +11498 -0
  265. package/dist/use-browser-available-hj8wc3Kb.js +241 -0
  266. package/dist/use-edge-mapper-schemas-Bonofxow.js +496 -0
  267. package/dist/use-extension-bridge-B9ZreOkQ.js +608 -0
  268. package/dist/use-mobile-BTqCUjzS.js +27 -0
  269. package/dist/use-sdk-query-C697xZVv.js +116 -0
  270. package/dist/use-workflow-code-editor-CFoRFrZ5.js +753 -0
  271. package/dist/useActionParam-B2tU2BlY.js +85 -0
  272. package/dist/useAgentTokenStream-Bko_J0d0.js +4217 -0
  273. package/dist/useBrowserClients-3v95-gSh.js +103 -0
  274. package/dist/useCodeWorkflowInsights-w0tz9Ap_.js +600 -0
  275. package/dist/useConnections-DsgEJs05.js +439 -0
  276. package/dist/useDebouncedValue-BFekcv6n.js +18 -0
  277. package/dist/useDurableParity-8fnMZmBc.js +1787 -0
  278. package/dist/useEntityTags-D0spL6Ut.js +460 -0
  279. package/dist/useExecutions-2u5nGJJk.js +681 -0
  280. package/dist/useFluidGridsAnalytics-VM8lAi2x.js +238 -0
  281. package/dist/useGlobalStoreClient-BTdhkA2I.js +24 -0
  282. package/dist/useHumanRequests-zlYDp3l1.js +221 -0
  283. package/dist/useNavigationV2-C2WeqN7d.js +29 -0
  284. package/dist/useNavigationV2-DANUmg12.d.ts +9 -0
  285. package/dist/useObservability-BRlQ0tOA.js +285 -0
  286. package/dist/useRequestedProposal-B7uPXfZB.js +51 -0
  287. package/dist/useRunHistory-CXCMUPyf.js +2759 -0
  288. package/dist/useRunLive-D0JvVZT2.js +1060 -0
  289. package/dist/useRunnerList-Dbi59i1K.js +446 -0
  290. package/dist/useRunners-URUc5quU.js +173 -0
  291. package/dist/useRunsPage-DG656UCK.js +2709 -0
  292. package/dist/useVariables-BIelxcWr.js +463 -0
  293. package/dist/useVersionHistoryData-CTjqVw7l.js +292 -0
  294. package/dist/useWorkflowCodeExport-pqxyLHD1.js +522 -0
  295. package/dist/useWorkflowListExport-hcZNvTaB.js +232 -0
  296. package/dist/useWorkflowOrganization-CpBbOrs7.js +1772 -0
  297. package/dist/useWorkflowProposal-BH0VdNMA.js +3280 -0
  298. package/dist/useWorkflows-Cvg-Z_IE.js +1606 -0
  299. package/dist/utils-fvBb5qOD.js +89 -0
  300. package/dist/webhook-deliveries-AvQujaZy.js +99 -0
  301. package/dist/workflow-builder-CJygVkVv.d.ts +2 -0
  302. package/dist/workflow-builder.d.ts +3 -0
  303. package/dist/workflow-builder.js +8 -0
  304. package/dist/workflow-code-transfer-Bsy0JKAZ.js +323 -0
  305. package/dist/workflow-embed.d.ts +3 -0
  306. package/dist/workflow-embed.js +4 -0
  307. package/dist/workflow-git-sync--K9ZsPDC.js +263 -0
  308. package/dist/workflow-host.d.ts +6 -0
  309. package/dist/workflow-host.js +11 -0
  310. package/dist/workflow-pages-D-7ByLTB.d.ts +68 -0
  311. package/dist/workflow-pages.d.ts +3 -0
  312. package/dist/workflow-pages.js +115 -0
  313. package/dist/workflow-preview-canvas-CO8yzdE3.js +848 -0
  314. package/dist/workflow-preview.d.ts +65 -0
  315. package/dist/workflow-preview.js +4 -0
  316. package/dist/workflow-route.d.ts +33 -0
  317. package/dist/workflow-route.js +4 -0
  318. package/dist/workflow-save-state-D0l-DkLf.js +767 -0
  319. package/dist/workflow-transfer-CQnQC-ke.js +104 -0
  320. package/dist/workflowRouteData-BkfVOc-O.js +169 -0
  321. package/dist/workflows-list.d.ts +10 -0
  322. package/dist/workflows-list.js +5 -0
  323. package/package.json +320 -4
@@ -0,0 +1,653 @@
1
+ "use client";
2
+ import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
3
+ import { t as OfflineIcon } from "./OfflineIcon-TwMKYWjA.js";
4
+ import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
5
+ import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
6
+ import { n as CATALOG_GRID_COLUMNS } from "./catalogGrid-BOrfMgi-.js";
7
+ import { t as cn } from "./cn-QqidFIgr.js";
8
+ import { t as PublishCustomNodeAction } from "./PublishCustomNodeAction-CIySbK4c.js";
9
+ import { n as getFluidGridsClient } from "./client-holder-C0M5Cfwl.js";
10
+ import { s as throwIfResultError, t as describeOperationError } from "./errors-ClKb5sEt.js";
11
+ import { t as retryTransient } from "./transient-DgZfhDfN.js";
12
+ import { t as NodeTypeIcon } from "./node-type-icon-BZa8n4iG.js";
13
+ import { memo, startTransition, useCallback, useDeferredValue, useEffect, useMemo, useRef, useState } from "react";
14
+ import { useNavigate } from "react-router";
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ import { Badge, Card, CardHeader, EmptyState, Input, Skeleton, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@burdenoff/fe-libs/ui";
17
+ import { gql } from "@apollo/client";
18
+ import { Button as Button$1 } from "@burdenoff/fe-libs/button";
19
+
20
+ // src/modules/nodes/hooks/useNodeCatalog.ts
21
+ /**
22
+ * The Nodes page's data in ONE request (BOFF-11851): the available nodes the
23
+ * page lists, and how many nodes are deprecated or disabled, for the stat
24
+ * cards. The page used to send three separate 200-row queries (one per
25
+ * status) just to count the other two; the counts now come from the server's
26
+ * `pagination.total`, so they stay right past 200 nodes as well.
27
+ *
28
+ * The first read may come from the cache (as before); Refresh always asks the
29
+ * server (with a cache-first read it re-showed the cached list). Failures are
30
+ * reported in plain words instead of being lost under `errorPolicy: 'all'`.
31
+ */
32
+ /** How many available nodes the page lists (unchanged). */
33
+ const NODE_CATALOG_LIMIT = 200;
34
+ const NODE_CATALOG = gql`
35
+ query NodeCatalog($limit: Int!) {
36
+ available: nodeEndpointConfigs(
37
+ status: AVAILABLE
38
+ pagination: { limit: $limit }
39
+ ) {
40
+ configs {
41
+ id
42
+ nodeType
43
+ nodeVersion
44
+ name
45
+ description
46
+ icon
47
+ favicon
48
+ status
49
+ keywords
50
+ kind
51
+ }
52
+ pagination {
53
+ total
54
+ }
55
+ }
56
+ deprecated: nodeEndpointConfigs(
57
+ status: DEPRECATED
58
+ pagination: { limit: 1 }
59
+ ) {
60
+ pagination {
61
+ total
62
+ }
63
+ }
64
+ disabled: nodeEndpointConfigs(status: DISABLED, pagination: { limit: 1 }) {
65
+ pagination {
66
+ total
67
+ }
68
+ }
69
+ }
70
+ `;
71
+ const EMPTY = {
72
+ nodes: [],
73
+ counts: {
74
+ available: 0,
75
+ deprecated: 0,
76
+ disabled: 0
77
+ }
78
+ };
79
+ async function fetchNodeCatalog(fresh) {
80
+ const data = (await retryTransient(async () => throwIfResultError(await getFluidGridsClient().query({
81
+ query: NODE_CATALOG,
82
+ variables: { limit: 200 },
83
+ fetchPolicy: fresh ? "network-only" : "cache-first"
84
+ })))).data;
85
+ if (!data) return EMPTY;
86
+ const nodes = data.available.configs ?? [];
87
+ return {
88
+ nodes,
89
+ counts: {
90
+ available: data.available.pagination?.total ?? nodes.length,
91
+ deprecated: data.deprecated.pagination?.total ?? 0,
92
+ disabled: data.disabled.pagination?.total ?? 0
93
+ }
94
+ };
95
+ }
96
+ function useNodeCatalog() {
97
+ const [state, setState] = useState(EMPTY);
98
+ const [loading, setLoading] = useState(true);
99
+ const [error, setError] = useState(null);
100
+ const latest = useRef(0);
101
+ const load = useCallback(async (fresh) => {
102
+ const request = ++latest.current;
103
+ setLoading(true);
104
+ setError(null);
105
+ let next = null;
106
+ let failure = null;
107
+ try {
108
+ next = await fetchNodeCatalog(fresh);
109
+ } catch (cause) {
110
+ failure = describeOperationError(cause, "Could not load the nodes");
111
+ }
112
+ if (request !== latest.current) return;
113
+ if (next) setState(next);
114
+ setError(failure);
115
+ setLoading(false);
116
+ }, []);
117
+ useEffect(() => {
118
+ load(false);
119
+ }, [load]);
120
+ const refetch = useCallback(() => load(true), [load]);
121
+ return {
122
+ ...state,
123
+ loading,
124
+ error,
125
+ refetch
126
+ };
127
+ }
128
+
129
+ // src/modules/nodes/utils/node-category.ts
130
+ const KEYWORD_RULES = [
131
+ {
132
+ category: "ai-ml",
133
+ words: ["ai", "ml"],
134
+ stems: [
135
+ "llm",
136
+ "model",
137
+ "openai",
138
+ "gpt"
139
+ ]
140
+ },
141
+ {
142
+ category: "integration",
143
+ words: ["api", "apis"],
144
+ stems: [
145
+ "integrat",
146
+ "http",
147
+ "webhook",
148
+ "oauth",
149
+ "openapi"
150
+ ]
151
+ },
152
+ {
153
+ category: "data",
154
+ stems: [
155
+ "data",
156
+ "transform",
157
+ "filter",
158
+ "aggregate"
159
+ ]
160
+ },
161
+ {
162
+ category: "communication",
163
+ stems: [
164
+ "email",
165
+ "slack",
166
+ "notification",
167
+ "sms",
168
+ "message"
169
+ ]
170
+ },
171
+ {
172
+ category: "logic",
173
+ words: ["if"],
174
+ stems: [
175
+ "switch",
176
+ "loop",
177
+ "merge",
178
+ "logic",
179
+ "condition"
180
+ ]
181
+ }
182
+ ];
183
+ /** Where a node goes when no keyword matches (today's default). */
184
+ const DEFAULT_NODE_CATEGORY = "integration";
185
+ /** Lower-case words of the text; "aiAgent" and "ai-agent" both give "ai". */
186
+ function wordsOf(text) {
187
+ return new Set(text.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean));
188
+ }
189
+ function inferNodeCategory(node) {
190
+ const raw = [
191
+ node.name,
192
+ node.nodeType,
193
+ ...node.keywords ?? [],
194
+ ...node.kind ?? []
195
+ ].join(" ");
196
+ const text = raw.toLowerCase();
197
+ const words = wordsOf(raw);
198
+ for (const rule of KEYWORD_RULES) if (rule.words?.some((word) => words.has(word)) || rule.stems.some((stem) => text.includes(stem))) return rule.category;
199
+ return DEFAULT_NODE_CATEGORY;
200
+ }
201
+
202
+ // src/modules/nodes/utils/catalog-filter.ts
203
+ /** Everything the search matches, lowercased once per catalogue load. */
204
+ function searchHaystack(node) {
205
+ return [
206
+ node.name,
207
+ node.nodeType,
208
+ node.description ?? "",
209
+ ...node.keywords ?? []
210
+ ].join("\n").toLowerCase();
211
+ }
212
+ /**
213
+ * The items that match the category and the search words. A query matches
214
+ * when it appears in the name, type, description or a keyword, as before.
215
+ */
216
+ function filterCatalog(items, category, search) {
217
+ let result = items;
218
+ if (category !== "all") result = result.filter((item) => item.category === category);
219
+ const query = search.trim().toLowerCase();
220
+ if (query) result = query.includes("\n") ? [] : result.filter((item) => item.haystack.includes(query));
221
+ return result;
222
+ }
223
+
224
+ // src/modules/nodes/utils/node-labels.ts
225
+ function nodeCategoryLabel(tr, category) {
226
+ switch (category) {
227
+ case "all": return tr("fluidgrids.nodes.categories.all", "All");
228
+ case "integration": return tr("fluidgrids.nodes.categories.integration", "Integration");
229
+ case "data": return tr("fluidgrids.nodes.categories.data", "Data");
230
+ case "logic": return tr("fluidgrids.nodes.categories.logic", "Logic");
231
+ case "ai-ml": return tr("fluidgrids.nodes.categories.aiMl", "AI/ML");
232
+ case "communication": return tr("fluidgrids.nodes.categories.communication", "Communication");
233
+ }
234
+ }
235
+ function nodeStatusLabel(tr, status) {
236
+ switch (status) {
237
+ case "AVAILABLE": return tr("fluidgrids.nodes.status.available", "Available");
238
+ case "DEPRECATED": return tr("fluidgrids.nodes.status.deprecated", "Deprecated");
239
+ case "DISABLED": return tr("fluidgrids.nodes.status.disabled", "Disabled");
240
+ }
241
+ }
242
+
243
+ // src/modules/nodes/pages/NodesPage.tsx
244
+ var NodesPage_exports = /* @__PURE__ */ __exportAll({ NodesPage: () => NodesPage });
245
+ const NODE_CATEGORIES = [
246
+ {
247
+ value: "all",
248
+ icon: "mdi:view-grid"
249
+ },
250
+ {
251
+ value: "integration",
252
+ icon: "mdi:connection"
253
+ },
254
+ {
255
+ value: "data",
256
+ icon: "mdi:database"
257
+ },
258
+ {
259
+ value: "logic",
260
+ icon: "mdi:code-braces"
261
+ },
262
+ {
263
+ value: "ai-ml",
264
+ icon: "mdi:brain"
265
+ },
266
+ {
267
+ value: "communication",
268
+ icon: "mdi:message-text"
269
+ }
270
+ ];
271
+ const STATUS_STYLES = {
272
+ AVAILABLE: {
273
+ className: "bg-status-success-bg-subtle text-status-success-text border-status-success-border",
274
+ icon: "mdi:check-circle"
275
+ },
276
+ DEPRECATED: {
277
+ className: "bg-status-warning-bg-subtle text-status-warning-text border-status-warning-border",
278
+ icon: "mdi:alert"
279
+ },
280
+ DISABLED: {
281
+ className: "bg-bg-sunken text-text-muted border-border-strong",
282
+ icon: "mdi:close-circle"
283
+ }
284
+ };
285
+ /** Today's columns, kept for the apps without Navigation v2. */
286
+ const FIXED_GRID_COLUMNS = "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4";
287
+ /**
288
+ * The card grid. Navigation v2 keeps these columns below 1800 px and adds
289
+ * columns on bigger screens (W2).
290
+ */
291
+ function nodeGridClass(v2) {
292
+ return cn("grid gap-4", v2 ? CATALOG_GRID_COLUMNS : FIXED_GRID_COLUMNS);
293
+ }
294
+ function isNodeStatus(value) {
295
+ return Object.hasOwn(STATUS_STYLES, value);
296
+ }
297
+ const CATEGORY_COLORS = {
298
+ integration: "bg-chart-3/10 text-chart-3 border-chart-3/30",
299
+ data: "bg-status-info-bg-subtle text-status-info-text border-status-info-border",
300
+ logic: "bg-status-info-bg-subtle text-status-info-text border-status-info-border",
301
+ "ai-ml": "bg-status-warning-bg-subtle text-status-warning-text border-status-warning-border",
302
+ communication: "bg-status-error-bg-subtle text-status-error-text border-status-error-border"
303
+ };
304
+ /**
305
+ * Draws more of the grid when its end comes near the viewport. Without
306
+ * IntersectionObserver (old browsers, tests) the whole list is drawn.
307
+ */
308
+ function useGridWindow(total, resetKey) {
309
+ const [shown, setShown] = useState(48);
310
+ const [observed, setObserved] = useState(null);
311
+ const supported = typeof IntersectionObserver !== "undefined";
312
+ const [windowKey, setWindowKey] = useState(resetKey);
313
+ if (windowKey !== resetKey) {
314
+ setWindowKey(resetKey);
315
+ setShown(48);
316
+ }
317
+ useEffect(() => {
318
+ if (!observed || !supported) return;
319
+ const observer = new IntersectionObserver((entries) => {
320
+ if (entries.some((entry) => entry.isIntersecting)) startTransition(() => setShown((count) => Math.min(count + 48, total)));
321
+ }, { rootMargin: "800px 0px" });
322
+ observer.observe(observed);
323
+ return () => observer.disconnect();
324
+ }, [
325
+ observed,
326
+ supported,
327
+ total,
328
+ shown
329
+ ]);
330
+ return {
331
+ limit: supported ? Math.min(shown, total) : total,
332
+ sentinel: setObserved
333
+ };
334
+ }
335
+ function NodesSkeleton({ v2 }) {
336
+ return /* @__PURE__ */ jsx("div", {
337
+ className: nodeGridClass(v2),
338
+ "data-testid": "nodes-grid-skeleton",
339
+ children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-44 rounded-lg bg-card-foreground/10" }, i))
340
+ });
341
+ }
342
+ function NodesEmptyState({ hasFilters, searching }) {
343
+ const tr = useTr();
344
+ return /* @__PURE__ */ jsx(EmptyState, {
345
+ kind: searching ? "no-results" : hasFilters ? "filtered" : "first-use",
346
+ illustration: "workflows",
347
+ size: "page",
348
+ icon: /* @__PURE__ */ jsx(OfflineIcon, {
349
+ icon: "mdi:puzzle-outline",
350
+ width: 40,
351
+ className: "text-text-secondary"
352
+ }),
353
+ title: hasFilters ? tr("fluidgrids.nodes.nodesPage.emptyTitleFiltered", "No matching nodes") : tr("fluidgrids.nodes.nodesPage.emptyTitle", "No nodes registered"),
354
+ description: hasFilters ? tr("fluidgrids.nodes.nodesPage.emptyHintFiltered", "Try adjusting your search or category filter.") : tr("fluidgrids.nodes.nodesPage.emptyHint", "Node endpoint configurations will appear here once registered.")
355
+ });
356
+ }
357
+ function ErrorState({ message, onRetry }) {
358
+ const tr = useTr();
359
+ return /* @__PURE__ */ jsxs("div", {
360
+ className: "p-4 bg-[var(--color-status-error-bg-subtle)] border border-[var(--color-status-error-border)] rounded-lg",
361
+ children: [
362
+ /* @__PURE__ */ jsxs("div", {
363
+ className: "flex items-center gap-2 text-[var(--color-status-error-text)]",
364
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
365
+ icon: "mdi:alert-circle",
366
+ width: 20
367
+ }), /* @__PURE__ */ jsx("span", {
368
+ className: "font-medium",
369
+ children: tr("fluidgrids.nodes.nodesPage.errorHeading", "Error loading nodes")
370
+ })]
371
+ }),
372
+ /* @__PURE__ */ jsx("p", {
373
+ className: "mt-1 text-sm text-[var(--color-status-error-text)]",
374
+ children: message
375
+ }),
376
+ /* @__PURE__ */ jsx(Button$1, {
377
+ variant: "outline",
378
+ size: "sm",
379
+ onClick: onRetry,
380
+ className: "mt-3 border-[var(--color-status-error-border)] text-[var(--color-status-error-text)] hover:bg-[var(--color-status-error-bg-subtle)]",
381
+ children: tr("fluidgrids.nodes.nodesPage.errorRetry", "Retry")
382
+ })
383
+ ]
384
+ });
385
+ }
386
+ const NodeCard = memo(function NodeCard({ node, category, v2 }) {
387
+ const tr = useTr();
388
+ const statusKind = isNodeStatus(node.status) ? node.status : "AVAILABLE";
389
+ const status = STATUS_STYLES[statusKind];
390
+ const catColor = CATEGORY_COLORS[category] ?? "bg-bg-sunken text-text-muted border-border-strong";
391
+ const catLabel = nodeCategoryLabel(tr, category);
392
+ return /* @__PURE__ */ jsxs(Card, {
393
+ className: "border border-border-default bg-surface hover:border-border-strong transition-all duration-200 flex flex-col [content-visibility:auto] [contain-intrinsic-size:auto_176px]",
394
+ children: [/* @__PURE__ */ jsxs(CardHeader, {
395
+ className: "flex-1 pb-3",
396
+ children: [
397
+ /* @__PURE__ */ jsxs("div", {
398
+ className: "flex items-start justify-between gap-2 mb-3",
399
+ children: [/* @__PURE__ */ jsx("div", {
400
+ className: "rounded-lg bg-surface-sunken p-2",
401
+ children: /* @__PURE__ */ jsx(NodeTypeIcon, {
402
+ icon: node.icon ?? node.favicon,
403
+ fallbackIcon: "mdi:puzzle",
404
+ offline: true,
405
+ className: "size-[22px] text-text-primary"
406
+ })
407
+ }), /* @__PURE__ */ jsxs(Badge, {
408
+ variant: "outline",
409
+ className: status.className,
410
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
411
+ icon: status.icon,
412
+ width: 12,
413
+ className: "mr-1"
414
+ }), nodeStatusLabel(tr, statusKind)]
415
+ })]
416
+ }),
417
+ /* @__PURE__ */ jsx("h3", {
418
+ className: "font-semibold text-text-primary text-sm leading-tight mb-1 line-clamp-1",
419
+ children: node.name
420
+ }),
421
+ /* @__PURE__ */ jsx("p", {
422
+ className: "text-xs text-text-secondary line-clamp-2 min-h-[2rem]",
423
+ children: node.description ?? tr("fluidgrids.nodes.nodeCard.noDescription", "No description available.")
424
+ })
425
+ ]
426
+ }), /* @__PURE__ */ jsx("div", {
427
+ className: "px-6 pb-4 pt-0",
428
+ children: /* @__PURE__ */ jsxs("div", {
429
+ className: "flex items-center justify-between gap-2",
430
+ children: [/* @__PURE__ */ jsxs("div", {
431
+ className: "flex items-center gap-2",
432
+ children: [/* @__PURE__ */ jsx(Badge, {
433
+ variant: "outline",
434
+ className: catColor,
435
+ children: catLabel
436
+ }), /* @__PURE__ */ jsxs("span", {
437
+ className: "text-xs text-text-secondary",
438
+ children: ["v", node.nodeVersion]
439
+ })]
440
+ }), !v2 && /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
441
+ asChild: true,
442
+ children: /* @__PURE__ */ jsx("button", {
443
+ type: "button",
444
+ "aria-label": tr("fluidgrids.nodes.nodeCard.configureTooltip", "Configure node"),
445
+ className: "p-1.5 rounded hover:bg-surface-sunken text-text-secondary hover:text-text-primary transition-colors",
446
+ children: /* @__PURE__ */ jsx(OfflineIcon, {
447
+ icon: "mdi:cog",
448
+ width: 16
449
+ })
450
+ })
451
+ }), /* @__PURE__ */ jsx(TooltipContent, { children: tr("fluidgrids.nodes.nodeCard.configureTooltip", "Configure node") })] })]
452
+ })
453
+ })]
454
+ });
455
+ });
456
+ function NodesPage() {
457
+ const tr = useTr();
458
+ const v2 = useNavigationV2();
459
+ const navigate = useNavigate();
460
+ const [search, setSearch] = useState("");
461
+ const [activeCategory, setActiveCategory] = useState("all");
462
+ const { nodes, counts, loading, error, refetch } = useNodeCatalog();
463
+ const categorizedNodes = useMemo(() => {
464
+ return nodes.map((n) => ({
465
+ node: n,
466
+ category: inferNodeCategory(n),
467
+ haystack: searchHaystack(n)
468
+ }));
469
+ }, [nodes]);
470
+ const deferredSearch = useDeferredValue(search);
471
+ const filtered = useMemo(() => filterCatalog(categorizedNodes, activeCategory, deferredSearch), [
472
+ categorizedNodes,
473
+ activeCategory,
474
+ deferredSearch
475
+ ]);
476
+ const { limit: shownCount, sentinel } = useGridWindow(filtered.length, `${activeCategory}\n${deferredSearch}`);
477
+ const stats = {
478
+ total: counts.available + counts.deprecated + counts.disabled,
479
+ active: counts.available,
480
+ deprecated: counts.deprecated
481
+ };
482
+ const categoryCounts = useMemo(() => {
483
+ const counts = { all: categorizedNodes.length };
484
+ for (const item of categorizedNodes) counts[item.category] = (counts[item.category] ?? 0) + 1;
485
+ return counts;
486
+ }, [categorizedNodes]);
487
+ return /* @__PURE__ */ jsxs("div", {
488
+ className: "p-4 sm:p-6 bg-surface-canvas min-h-screen",
489
+ children: [
490
+ /* @__PURE__ */ jsxs("div", {
491
+ className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6",
492
+ "data-tour": "fluidgrids-nodes-header",
493
+ children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h1", {
494
+ className: "text-2xl sm:text-3xl font-bold text-text-primary",
495
+ children: tr("fluidgrids.nodes.nodesPage.title", "Node Catalog")
496
+ }), /* @__PURE__ */ jsx("p", {
497
+ className: "text-text-secondary mt-1",
498
+ children: tr("fluidgrids.nodes.nodesPage.subtitle", "Browse and manage available workflow nodes")
499
+ })] }), /* @__PURE__ */ jsxs("div", {
500
+ className: "flex flex-wrap items-center gap-3",
501
+ children: [
502
+ /* @__PURE__ */ jsx(PublishCustomNodeAction, {}),
503
+ /* @__PURE__ */ jsxs(Button$1, {
504
+ variant: "outline",
505
+ onClick: () => void refetch(),
506
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
507
+ icon: "mdi:refresh",
508
+ className: "mr-2",
509
+ width: 16
510
+ }), tr("fluidgrids.nodes.nodesPage.refreshButton", "Refresh")]
511
+ }),
512
+ /* @__PURE__ */ jsxs(Button$1, {
513
+ variant: "outline",
514
+ onClick: () => navigate("../list"),
515
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
516
+ icon: "mdi:arrow-left",
517
+ className: "mr-2",
518
+ width: 16
519
+ }), tr("fluidgrids.nodes.nodesPage.backToWorkflowsButton", "Back to Workflows")]
520
+ })
521
+ ]
522
+ })]
523
+ }),
524
+ /* @__PURE__ */ jsxs("div", {
525
+ className: "grid grid-cols-3 gap-3 mb-6",
526
+ "data-tour": "fluidgrids-nodes-stats",
527
+ children: [
528
+ /* @__PURE__ */ jsxs("div", {
529
+ className: "p-3 rounded-lg bg-surface border border-border-default",
530
+ children: [/* @__PURE__ */ jsxs("div", {
531
+ className: "flex items-center gap-2",
532
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
533
+ icon: "mdi:puzzle",
534
+ width: 18,
535
+ className: "text-text-secondary"
536
+ }), /* @__PURE__ */ jsx("p", {
537
+ className: "text-xs text-text-secondary",
538
+ children: tr("fluidgrids.nodes.nodesPage.statTotal", "Total Nodes")
539
+ })]
540
+ }), /* @__PURE__ */ jsx("p", {
541
+ className: "text-xl font-bold text-text-primary mt-1",
542
+ children: loading ? "—" : stats.total
543
+ })]
544
+ }),
545
+ /* @__PURE__ */ jsxs("div", {
546
+ className: "p-3 rounded-lg bg-surface border border-border-default",
547
+ children: [/* @__PURE__ */ jsxs("div", {
548
+ className: "flex items-center gap-2",
549
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
550
+ icon: "mdi:check-circle",
551
+ width: 18,
552
+ className: "text-status-success-text"
553
+ }), /* @__PURE__ */ jsx("p", {
554
+ className: "text-xs text-text-secondary",
555
+ children: tr("fluidgrids.nodes.nodesPage.statActive", "Active")
556
+ })]
557
+ }), /* @__PURE__ */ jsx("p", {
558
+ className: "text-xl font-bold text-status-success-text mt-1",
559
+ children: loading ? "—" : stats.active
560
+ })]
561
+ }),
562
+ /* @__PURE__ */ jsxs("div", {
563
+ className: "p-3 rounded-lg bg-surface border border-border-default",
564
+ children: [/* @__PURE__ */ jsxs("div", {
565
+ className: "flex items-center gap-2",
566
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
567
+ icon: "mdi:alert",
568
+ width: 18,
569
+ className: "text-status-warning-text"
570
+ }), /* @__PURE__ */ jsx("p", {
571
+ className: "text-xs text-text-secondary",
572
+ children: tr("fluidgrids.nodes.nodesPage.statDeprecated", "Deprecated")
573
+ })]
574
+ }), /* @__PURE__ */ jsx("p", {
575
+ className: "text-xl font-bold text-status-warning-text mt-1",
576
+ children: loading ? "—" : stats.deprecated
577
+ })]
578
+ })
579
+ ]
580
+ }),
581
+ /* @__PURE__ */ jsxs("div", {
582
+ className: "relative max-w-md mb-6",
583
+ "data-tour": "fluidgrids-nodes-search",
584
+ children: [/* @__PURE__ */ jsx(OfflineIcon, {
585
+ icon: "mdi:magnify",
586
+ width: 18,
587
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
588
+ }), /* @__PURE__ */ jsx(Input, {
589
+ placeholder: tr("fluidgrids.nodes.nodesPage.searchPlaceholder", "Search nodes by name, type, or keyword..."),
590
+ "aria-label": tr("fluidgrids.nodes.nodesPage.searchPlaceholder", "Search nodes by name, type, or keyword..."),
591
+ value: search,
592
+ onChange: (e) => setSearch(e.target.value),
593
+ className: "pl-10 bg-surface border-border-default"
594
+ })]
595
+ }),
596
+ /* @__PURE__ */ jsx("div", {
597
+ className: "flex flex-wrap gap-2 mb-6",
598
+ "data-tour": "fluidgrids-nodes-categories",
599
+ children: NODE_CATEGORIES.map((cat) => {
600
+ const count = categoryCounts[cat.value] ?? 0;
601
+ const isActive = activeCategory === cat.value;
602
+ return /* @__PURE__ */ jsxs("button", {
603
+ type: "button",
604
+ "aria-pressed": isActive,
605
+ onClick: () => startTransition(() => setActiveCategory(cat.value)),
606
+ className: `inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${isActive ? "bg-surface-sunken text-text-primary border border-border-strong" : "bg-surface text-text-secondary border border-border-default hover:text-text-primary hover:border-border-strong"}`,
607
+ children: [
608
+ /* @__PURE__ */ jsx(OfflineIcon, {
609
+ icon: cat.icon,
610
+ width: 16
611
+ }),
612
+ nodeCategoryLabel(tr, cat.value),
613
+ /* @__PURE__ */ jsxs("span", {
614
+ className: `ml-0.5 text-xs ${isActive ? "text-text-primary" : "text-text-secondary"}`,
615
+ children: [
616
+ "(",
617
+ count,
618
+ ")"
619
+ ]
620
+ })
621
+ ]
622
+ }, cat.value);
623
+ })
624
+ }),
625
+ error && /* @__PURE__ */ jsx("div", {
626
+ className: "mb-6",
627
+ children: /* @__PURE__ */ jsx(ErrorState, {
628
+ message: error,
629
+ onRetry: () => void refetch()
630
+ })
631
+ }),
632
+ loading ? /* @__PURE__ */ jsx(NodesSkeleton, { v2 }) : filtered.length === 0 ? /* @__PURE__ */ jsx(NodesEmptyState, {
633
+ hasFilters: deferredSearch.trim().length > 0 || activeCategory !== "all",
634
+ searching: deferredSearch.trim().length > 0
635
+ }) : /* @__PURE__ */ jsxs(TooltipProvider, { children: [/* @__PURE__ */ jsx("div", {
636
+ className: nodeGridClass(v2),
637
+ "data-testid": "nodes-grid",
638
+ children: filtered.slice(0, shownCount).map(({ node, category }) => /* @__PURE__ */ jsx(NodeCard, {
639
+ node,
640
+ category,
641
+ v2
642
+ }, node.id))
643
+ }), shownCount < filtered.length && /* @__PURE__ */ jsx("div", {
644
+ ref: sentinel,
645
+ "aria-hidden": "true",
646
+ className: "h-px",
647
+ "data-testid": "nodes-grid-more"
648
+ })] })
649
+ ]
650
+ });
651
+ }
652
+
653
+ export { NodesPage_exports as n, NodesPage as t };