@flanksource/clicky-ui 0.3.1 → 0.3.3

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 (382) hide show
  1. package/dist/comments/CommentAuthor.cjs +58 -0
  2. package/dist/comments/CommentAuthor.cjs.map +1 -0
  3. package/dist/comments/CommentAuthor.d.ts +17 -0
  4. package/dist/comments/CommentAuthor.d.ts.map +1 -0
  5. package/dist/comments/CommentAuthor.js +58 -0
  6. package/dist/comments/CommentAuthor.js.map +1 -0
  7. package/dist/comments/CommentCard.cjs +343 -0
  8. package/dist/comments/CommentCard.cjs.map +1 -0
  9. package/dist/comments/CommentCard.d.ts +27 -0
  10. package/dist/comments/CommentCard.d.ts.map +1 -0
  11. package/dist/comments/CommentCard.js +343 -0
  12. package/dist/comments/CommentCard.js.map +1 -0
  13. package/dist/comments/CommentComposer.cjs +207 -0
  14. package/dist/comments/CommentComposer.cjs.map +1 -0
  15. package/dist/comments/CommentComposer.d.ts +23 -0
  16. package/dist/comments/CommentComposer.d.ts.map +1 -0
  17. package/dist/comments/CommentComposer.js +207 -0
  18. package/dist/comments/CommentComposer.js.map +1 -0
  19. package/dist/comments/CommentFilterBar.cjs +145 -0
  20. package/dist/comments/CommentFilterBar.cjs.map +1 -0
  21. package/dist/comments/CommentFilterBar.d.ts +15 -0
  22. package/dist/comments/CommentFilterBar.d.ts.map +1 -0
  23. package/dist/comments/CommentFilterBar.js +145 -0
  24. package/dist/comments/CommentFilterBar.js.map +1 -0
  25. package/dist/comments/CommentMarkdown.cjs +156 -0
  26. package/dist/comments/CommentMarkdown.cjs.map +1 -0
  27. package/dist/comments/CommentMarkdown.d.ts +13 -0
  28. package/dist/comments/CommentMarkdown.d.ts.map +1 -0
  29. package/dist/comments/CommentMarkdown.js +156 -0
  30. package/dist/comments/CommentMarkdown.js.map +1 -0
  31. package/dist/comments/CommentProgress.cjs +86 -0
  32. package/dist/comments/CommentProgress.cjs.map +1 -0
  33. package/dist/comments/CommentProgress.d.ts +16 -0
  34. package/dist/comments/CommentProgress.d.ts.map +1 -0
  35. package/dist/comments/CommentProgress.js +86 -0
  36. package/dist/comments/CommentProgress.js.map +1 -0
  37. package/dist/comments/CommentProvider.cjs +99 -0
  38. package/dist/comments/CommentProvider.cjs.map +1 -0
  39. package/dist/comments/CommentProvider.d.ts +19 -0
  40. package/dist/comments/CommentProvider.d.ts.map +1 -0
  41. package/dist/comments/CommentProvider.js +99 -0
  42. package/dist/comments/CommentProvider.js.map +1 -0
  43. package/dist/comments/CommentSidePanel.cjs +219 -0
  44. package/dist/comments/CommentSidePanel.cjs.map +1 -0
  45. package/dist/comments/CommentSidePanel.d.ts +16 -0
  46. package/dist/comments/CommentSidePanel.d.ts.map +1 -0
  47. package/dist/comments/CommentSidePanel.js +219 -0
  48. package/dist/comments/CommentSidePanel.js.map +1 -0
  49. package/dist/comments/CommentThread.cjs +57 -0
  50. package/dist/comments/CommentThread.cjs.map +1 -0
  51. package/dist/comments/CommentThread.d.ts +24 -0
  52. package/dist/comments/CommentThread.d.ts.map +1 -0
  53. package/dist/comments/CommentThread.js +57 -0
  54. package/dist/comments/CommentThread.js.map +1 -0
  55. package/dist/comments/CommentThreadList.cjs +124 -0
  56. package/dist/comments/CommentThreadList.cjs.map +1 -0
  57. package/dist/comments/CommentThreadList.d.ts +25 -0
  58. package/dist/comments/CommentThreadList.d.ts.map +1 -0
  59. package/dist/comments/CommentThreadList.js +124 -0
  60. package/dist/comments/CommentThreadList.js.map +1 -0
  61. package/dist/comments/GroupedComments.cjs +74 -0
  62. package/dist/comments/GroupedComments.cjs.map +1 -0
  63. package/dist/comments/GroupedComments.d.ts +18 -0
  64. package/dist/comments/GroupedComments.d.ts.map +1 -0
  65. package/dist/comments/GroupedComments.js +74 -0
  66. package/dist/comments/GroupedComments.js.map +1 -0
  67. package/dist/comments/MentionTextarea.cjs +253 -0
  68. package/dist/comments/MentionTextarea.cjs.map +1 -0
  69. package/dist/comments/MentionTextarea.d.ts +28 -0
  70. package/dist/comments/MentionTextarea.d.ts.map +1 -0
  71. package/dist/comments/MentionTextarea.js +253 -0
  72. package/dist/comments/MentionTextarea.js.map +1 -0
  73. package/dist/comments/comment-context.cjs +33 -0
  74. package/dist/comments/comment-context.cjs.map +1 -0
  75. package/dist/comments/comment-context.d.ts +32 -0
  76. package/dist/comments/comment-context.d.ts.map +1 -0
  77. package/dist/comments/comment-context.js +33 -0
  78. package/dist/comments/comment-context.js.map +1 -0
  79. package/dist/comments/comment-fixtures.d.ts +11 -0
  80. package/dist/comments/comment-fixtures.d.ts.map +1 -0
  81. package/dist/comments/comment-types.cjs +19 -0
  82. package/dist/comments/comment-types.cjs.map +1 -0
  83. package/dist/comments/comment-types.d.ts +170 -0
  84. package/dist/comments/comment-types.d.ts.map +1 -0
  85. package/dist/comments/comment-types.js +19 -0
  86. package/dist/comments/comment-types.js.map +1 -0
  87. package/dist/comments/comment-utils.cjs +216 -0
  88. package/dist/comments/comment-utils.cjs.map +1 -0
  89. package/dist/comments/comment-utils.d.ts +59 -0
  90. package/dist/comments/comment-utils.d.ts.map +1 -0
  91. package/dist/comments/comment-utils.js +216 -0
  92. package/dist/comments/comment-utils.js.map +1 -0
  93. package/dist/comments.cjs +57 -0
  94. package/dist/comments.cjs.map +1 -0
  95. package/dist/comments.d.ts +16 -0
  96. package/dist/comments.d.ts.map +1 -0
  97. package/dist/comments.js +57 -0
  98. package/dist/comments.js.map +1 -0
  99. package/dist/components/FilterBar.cjs +13 -3
  100. package/dist/components/FilterBar.cjs.map +1 -1
  101. package/dist/components/FilterBar.js +13 -3
  102. package/dist/components/FilterBar.js.map +1 -1
  103. package/dist/components/JsonSchemaForm.cjs +20 -6
  104. package/dist/components/JsonSchemaForm.cjs.map +1 -1
  105. package/dist/components/JsonSchemaForm.d.ts +1 -1
  106. package/dist/components/JsonSchemaForm.d.ts.map +1 -1
  107. package/dist/components/JsonSchemaForm.js +22 -8
  108. package/dist/components/JsonSchemaForm.js.map +1 -1
  109. package/dist/components/NamespacePicker.cjs +52 -0
  110. package/dist/components/NamespacePicker.cjs.map +1 -0
  111. package/dist/components/NamespacePicker.d.ts +17 -0
  112. package/dist/components/NamespacePicker.d.ts.map +1 -0
  113. package/dist/components/NamespacePicker.js +52 -0
  114. package/dist/components/NamespacePicker.js.map +1 -0
  115. package/dist/components/form-lookup-context.cjs +36 -0
  116. package/dist/components/form-lookup-context.cjs.map +1 -0
  117. package/dist/components/form-lookup-context.d.ts +9 -0
  118. package/dist/components/form-lookup-context.d.ts.map +1 -0
  119. package/dist/components/form-lookup-context.js +36 -0
  120. package/dist/components/form-lookup-context.js.map +1 -0
  121. package/dist/components/json-schema-form-discriminator.cjs +67 -0
  122. package/dist/components/json-schema-form-discriminator.cjs.map +1 -0
  123. package/dist/components/json-schema-form-discriminator.d.ts +10 -0
  124. package/dist/components/json-schema-form-discriminator.d.ts.map +1 -0
  125. package/dist/components/json-schema-form-discriminator.js +67 -0
  126. package/dist/components/json-schema-form-discriminator.js.map +1 -0
  127. package/dist/components/json-schema-form-fields.cjs +66 -1
  128. package/dist/components/json-schema-form-fields.cjs.map +1 -1
  129. package/dist/components/json-schema-form-fields.d.ts +7 -0
  130. package/dist/components/json-schema-form-fields.d.ts.map +1 -1
  131. package/dist/components/json-schema-form-fields.js +66 -1
  132. package/dist/components/json-schema-form-fields.js.map +1 -1
  133. package/dist/components/json-schema-form-grid.cjs +92 -0
  134. package/dist/components/json-schema-form-grid.cjs.map +1 -0
  135. package/dist/components/json-schema-form-grid.d.ts +9 -0
  136. package/dist/components/json-schema-form-grid.d.ts.map +1 -0
  137. package/dist/components/json-schema-form-grid.js +92 -0
  138. package/dist/components/json-schema-form-grid.js.map +1 -0
  139. package/dist/components/json-schema-form-render.cjs +20 -3
  140. package/dist/components/json-schema-form-render.cjs.map +1 -1
  141. package/dist/components/json-schema-form-render.d.ts.map +1 -1
  142. package/dist/components/json-schema-form-render.js +22 -5
  143. package/dist/components/json-schema-form-render.js.map +1 -1
  144. package/dist/components/json-schema-form-resolve.cjs +24 -2
  145. package/dist/components/json-schema-form-resolve.cjs.map +1 -1
  146. package/dist/components/json-schema-form-resolve.d.ts.map +1 -1
  147. package/dist/components/json-schema-form-resolve.js +24 -2
  148. package/dist/components/json-schema-form-resolve.js.map +1 -1
  149. package/dist/components/json-schema-form-types.d.ts +37 -2
  150. package/dist/components/json-schema-form-types.d.ts.map +1 -1
  151. package/dist/components/json-schema-form-utils.cjs +8 -0
  152. package/dist/components/json-schema-form-utils.cjs.map +1 -1
  153. package/dist/components/json-schema-form-utils.d.ts +1 -0
  154. package/dist/components/json-schema-form-utils.d.ts.map +1 -1
  155. package/dist/components/json-schema-form-utils.js +8 -0
  156. package/dist/components/json-schema-form-utils.js.map +1 -1
  157. package/dist/components/workload-picker-utils.cjs.map +1 -1
  158. package/dist/components/workload-picker-utils.d.ts +11 -1
  159. package/dist/components/workload-picker-utils.d.ts.map +1 -1
  160. package/dist/components/workload-picker-utils.js.map +1 -1
  161. package/dist/components.cjs +6 -0
  162. package/dist/components.cjs.map +1 -1
  163. package/dist/components.d.ts +4 -2
  164. package/dist/components.d.ts.map +1 -1
  165. package/dist/components.js +6 -0
  166. package/dist/components.js.map +1 -1
  167. package/dist/data/Clicky.cjs +225 -60
  168. package/dist/data/Clicky.cjs.map +1 -1
  169. package/dist/data/Clicky.d.ts +7 -1
  170. package/dist/data/Clicky.d.ts.map +1 -1
  171. package/dist/data/Clicky.fixtures.d.ts +3 -1
  172. package/dist/data/Clicky.fixtures.d.ts.map +1 -1
  173. package/dist/data/Clicky.js +226 -61
  174. package/dist/data/Clicky.js.map +1 -1
  175. package/dist/data/ExecutionTree.cjs +68 -0
  176. package/dist/data/ExecutionTree.cjs.map +1 -0
  177. package/dist/data/ExecutionTree.d.ts +40 -0
  178. package/dist/data/ExecutionTree.d.ts.map +1 -0
  179. package/dist/data/ExecutionTree.js +68 -0
  180. package/dist/data/ExecutionTree.js.map +1 -0
  181. package/dist/data/GaugeHoverCard.cjs +35 -0
  182. package/dist/data/GaugeHoverCard.cjs.map +1 -0
  183. package/dist/data/GaugeHoverCard.d.ts +25 -0
  184. package/dist/data/GaugeHoverCard.d.ts.map +1 -0
  185. package/dist/data/GaugeHoverCard.js +35 -0
  186. package/dist/data/GaugeHoverCard.js.map +1 -0
  187. package/dist/data/MarkdownEditor.cjs +616 -0
  188. package/dist/data/MarkdownEditor.cjs.map +1 -0
  189. package/dist/data/MarkdownEditor.d.ts +61 -0
  190. package/dist/data/MarkdownEditor.d.ts.map +1 -0
  191. package/dist/data/MarkdownEditor.js +616 -0
  192. package/dist/data/MarkdownEditor.js.map +1 -0
  193. package/dist/data/MarkdownEditor.model.cjs +27 -0
  194. package/dist/data/MarkdownEditor.model.cjs.map +1 -0
  195. package/dist/data/MarkdownEditor.model.d.ts +38 -0
  196. package/dist/data/MarkdownEditor.model.d.ts.map +1 -0
  197. package/dist/data/MarkdownEditor.model.js +27 -0
  198. package/dist/data/MarkdownEditor.model.js.map +1 -0
  199. package/dist/data/ObjectGraph.cjs +44 -0
  200. package/dist/data/ObjectGraph.cjs.map +1 -0
  201. package/dist/data/ObjectGraph.d.ts +39 -0
  202. package/dist/data/ObjectGraph.d.ts.map +1 -0
  203. package/dist/data/ObjectGraph.js +44 -0
  204. package/dist/data/ObjectGraph.js.map +1 -0
  205. package/dist/data/SchemaViewer.cjs +152 -0
  206. package/dist/data/SchemaViewer.cjs.map +1 -0
  207. package/dist/data/SchemaViewer.d.ts +27 -0
  208. package/dist/data/SchemaViewer.d.ts.map +1 -0
  209. package/dist/data/SchemaViewer.js +152 -0
  210. package/dist/data/SchemaViewer.js.map +1 -0
  211. package/dist/data/TimeseriesCoreBars.cjs +51 -12
  212. package/dist/data/TimeseriesCoreBars.cjs.map +1 -1
  213. package/dist/data/TimeseriesCoreBars.d.ts +32 -5
  214. package/dist/data/TimeseriesCoreBars.d.ts.map +1 -1
  215. package/dist/data/TimeseriesCoreBars.js +51 -12
  216. package/dist/data/TimeseriesCoreBars.js.map +1 -1
  217. package/dist/data/TimeseriesCoreBars.model.cjs +5 -5
  218. package/dist/data/TimeseriesCoreBars.model.cjs.map +1 -1
  219. package/dist/data/TimeseriesCoreBars.model.d.ts +4 -4
  220. package/dist/data/TimeseriesCoreBars.model.d.ts.map +1 -1
  221. package/dist/data/TimeseriesCoreBars.model.js +5 -5
  222. package/dist/data/TimeseriesCoreBars.model.js.map +1 -1
  223. package/dist/data/TimeseriesGauge.cjs +103 -65
  224. package/dist/data/TimeseriesGauge.cjs.map +1 -1
  225. package/dist/data/TimeseriesGauge.d.ts +10 -1
  226. package/dist/data/TimeseriesGauge.d.ts.map +1 -1
  227. package/dist/data/TimeseriesGauge.js +104 -66
  228. package/dist/data/TimeseriesGauge.js.map +1 -1
  229. package/dist/data/WorkloadCard.cjs +4 -4
  230. package/dist/data/WorkloadCard.cjs.map +1 -1
  231. package/dist/data/WorkloadCard.d.ts +3 -2
  232. package/dist/data/WorkloadCard.d.ts.map +1 -1
  233. package/dist/data/WorkloadCard.js +4 -4
  234. package/dist/data/WorkloadCard.js.map +1 -1
  235. package/dist/data/ai/ChatWindow.cjs +11 -19
  236. package/dist/data/ai/ChatWindow.cjs.map +1 -1
  237. package/dist/data/ai/ChatWindow.d.ts +1 -7
  238. package/dist/data/ai/ChatWindow.d.ts.map +1 -1
  239. package/dist/data/ai/ChatWindow.js +11 -19
  240. package/dist/data/ai/ChatWindow.js.map +1 -1
  241. package/dist/data/ai/ChatWindowRequestBody.cjs +20 -0
  242. package/dist/data/ai/ChatWindowRequestBody.cjs.map +1 -0
  243. package/dist/data/ai/ChatWindowRequestBody.d.ts +9 -0
  244. package/dist/data/ai/ChatWindowRequestBody.d.ts.map +1 -0
  245. package/dist/data/ai/ChatWindowRequestBody.js +20 -0
  246. package/dist/data/ai/ChatWindowRequestBody.js.map +1 -0
  247. package/dist/data/chat/Chat.cjs +12 -0
  248. package/dist/data/chat/Chat.cjs.map +1 -1
  249. package/dist/data/chat/Chat.d.ts +8 -1
  250. package/dist/data/chat/Chat.d.ts.map +1 -1
  251. package/dist/data/chat/Chat.js +12 -0
  252. package/dist/data/chat/Chat.js.map +1 -1
  253. package/dist/data/gauge-stats.cjs +19 -0
  254. package/dist/data/gauge-stats.cjs.map +1 -0
  255. package/dist/data/gauge-stats.d.ts +15 -0
  256. package/dist/data/gauge-stats.d.ts.map +1 -0
  257. package/dist/data/gauge-stats.js +19 -0
  258. package/dist/data/gauge-stats.js.map +1 -0
  259. package/dist/data/schema-viewer-model.cjs +436 -0
  260. package/dist/data/schema-viewer-model.cjs.map +1 -0
  261. package/dist/data/schema-viewer-model.d.ts +64 -0
  262. package/dist/data/schema-viewer-model.d.ts.map +1 -0
  263. package/dist/data/schema-viewer-model.js +436 -0
  264. package/dist/data/schema-viewer-model.js.map +1 -0
  265. package/dist/data/version-info.cjs +2 -2
  266. package/dist/data/version-info.js +2 -2
  267. package/dist/data.cjs +23 -0
  268. package/dist/data.cjs.map +1 -1
  269. package/dist/data.d.ts +11 -3
  270. package/dist/data.d.ts.map +1 -1
  271. package/dist/data.js +23 -0
  272. package/dist/data.js.map +1 -1
  273. package/dist/index.cjs +87 -2
  274. package/dist/index.cjs.map +1 -1
  275. package/dist/index.d.ts +1 -0
  276. package/dist/index.d.ts.map +1 -1
  277. package/dist/index.js +87 -2
  278. package/dist/index.js.map +1 -1
  279. package/dist/rpc/EntityExplorerApp.cjs +102 -143
  280. package/dist/rpc/EntityExplorerApp.cjs.map +1 -1
  281. package/dist/rpc/EntityExplorerApp.d.ts +34 -1
  282. package/dist/rpc/EntityExplorerApp.d.ts.map +1 -1
  283. package/dist/rpc/EntityExplorerApp.js +105 -146
  284. package/dist/rpc/EntityExplorerApp.js.map +1 -1
  285. package/dist/rpc/OperationActionBar.cjs +135 -0
  286. package/dist/rpc/OperationActionBar.cjs.map +1 -0
  287. package/dist/rpc/OperationActionBar.d.ts +20 -0
  288. package/dist/rpc/OperationActionBar.d.ts.map +1 -0
  289. package/dist/rpc/OperationActionBar.js +135 -0
  290. package/dist/rpc/OperationActionBar.js.map +1 -0
  291. package/dist/rpc/OperationCatalog.cjs +79 -116
  292. package/dist/rpc/OperationCatalog.cjs.map +1 -1
  293. package/dist/rpc/OperationCatalog.d.ts +8 -1
  294. package/dist/rpc/OperationCatalog.d.ts.map +1 -1
  295. package/dist/rpc/OperationCatalog.js +80 -117
  296. package/dist/rpc/OperationCatalog.js.map +1 -1
  297. package/dist/rpc/OperationCommandPage.cjs +134 -223
  298. package/dist/rpc/OperationCommandPage.cjs.map +1 -1
  299. package/dist/rpc/OperationCommandPage.d.ts +1 -1
  300. package/dist/rpc/OperationCommandPage.d.ts.map +1 -1
  301. package/dist/rpc/OperationCommandPage.js +135 -224
  302. package/dist/rpc/OperationCommandPage.js.map +1 -1
  303. package/dist/rpc/OperationEntityPage.cjs +49 -100
  304. package/dist/rpc/OperationEntityPage.cjs.map +1 -1
  305. package/dist/rpc/OperationEntityPage.d.ts +6 -1
  306. package/dist/rpc/OperationEntityPage.d.ts.map +1 -1
  307. package/dist/rpc/OperationEntityPage.js +50 -101
  308. package/dist/rpc/OperationEntityPage.js.map +1 -1
  309. package/dist/rpc/OperationResultView.cjs +43 -0
  310. package/dist/rpc/OperationResultView.cjs.map +1 -0
  311. package/dist/rpc/OperationResultView.d.ts +30 -0
  312. package/dist/rpc/OperationResultView.d.ts.map +1 -0
  313. package/dist/rpc/OperationResultView.js +43 -0
  314. package/dist/rpc/OperationResultView.js.map +1 -0
  315. package/dist/rpc/SchemaActionForm.cjs +102 -0
  316. package/dist/rpc/SchemaActionForm.cjs.map +1 -0
  317. package/dist/rpc/SchemaActionForm.d.ts +23 -0
  318. package/dist/rpc/SchemaActionForm.d.ts.map +1 -0
  319. package/dist/rpc/SchemaActionForm.js +102 -0
  320. package/dist/rpc/SchemaActionForm.js.map +1 -0
  321. package/dist/rpc/accept-options.cjs.map +1 -1
  322. package/dist/rpc/accept-options.d.ts +0 -1
  323. package/dist/rpc/accept-options.d.ts.map +1 -1
  324. package/dist/rpc/accept-options.js.map +1 -1
  325. package/dist/rpc/apiClient.cjs +34 -2
  326. package/dist/rpc/apiClient.cjs.map +1 -1
  327. package/dist/rpc/apiClient.d.ts +4 -1
  328. package/dist/rpc/apiClient.d.ts.map +1 -1
  329. package/dist/rpc/apiClient.js +34 -2
  330. package/dist/rpc/apiClient.js.map +1 -1
  331. package/dist/rpc/clickyMetadata.cjs +4 -4
  332. package/dist/rpc/clickyMetadata.cjs.map +1 -1
  333. package/dist/rpc/clickyMetadata.d.ts +0 -1
  334. package/dist/rpc/clickyMetadata.d.ts.map +1 -1
  335. package/dist/rpc/clickyMetadata.js +4 -4
  336. package/dist/rpc/clickyMetadata.js.map +1 -1
  337. package/dist/rpc/formMetadata.cjs +1 -0
  338. package/dist/rpc/formMetadata.cjs.map +1 -1
  339. package/dist/rpc/formMetadata.d.ts +6 -1
  340. package/dist/rpc/formMetadata.d.ts.map +1 -1
  341. package/dist/rpc/formMetadata.js +1 -0
  342. package/dist/rpc/formMetadata.js.map +1 -1
  343. package/dist/rpc/rowNavigation.cjs +86 -0
  344. package/dist/rpc/rowNavigation.cjs.map +1 -0
  345. package/dist/rpc/rowNavigation.d.ts +14 -0
  346. package/dist/rpc/rowNavigation.d.ts.map +1 -0
  347. package/dist/rpc/rowNavigation.js +86 -0
  348. package/dist/rpc/rowNavigation.js.map +1 -0
  349. package/dist/rpc/schemaActionPath.cjs +22 -0
  350. package/dist/rpc/schemaActionPath.cjs.map +1 -0
  351. package/dist/rpc/schemaActionPath.d.ts +4 -0
  352. package/dist/rpc/schemaActionPath.d.ts.map +1 -0
  353. package/dist/rpc/schemaActionPath.js +22 -0
  354. package/dist/rpc/schemaActionPath.js.map +1 -0
  355. package/dist/rpc/surfaceIconMap.cjs +35 -0
  356. package/dist/rpc/surfaceIconMap.cjs.map +1 -0
  357. package/dist/rpc/surfaceIconMap.d.ts +3 -0
  358. package/dist/rpc/surfaceIconMap.d.ts.map +1 -0
  359. package/dist/rpc/surfaceIconMap.js +35 -0
  360. package/dist/rpc/surfaceIconMap.js.map +1 -0
  361. package/dist/rpc/types.cjs.map +1 -1
  362. package/dist/rpc/types.d.ts +2 -0
  363. package/dist/rpc/types.d.ts.map +1 -1
  364. package/dist/rpc/types.js.map +1 -1
  365. package/dist/rpc/useOperations.cjs.map +1 -1
  366. package/dist/rpc/useOperations.d.ts +4 -1
  367. package/dist/rpc/useOperations.d.ts.map +1 -1
  368. package/dist/rpc/useOperations.js.map +1 -1
  369. package/dist/rpc.cjs +4 -2
  370. package/dist/rpc.cjs.map +1 -1
  371. package/dist/rpc.d.ts +7 -6
  372. package/dist/rpc.d.ts.map +1 -1
  373. package/dist/rpc.js +4 -2
  374. package/dist/rpc.js.map +1 -1
  375. package/dist/styles.css +1 -1
  376. package/package.json +6 -1
  377. package/dist/rpc/AcceptPicker.cjs +0 -137
  378. package/dist/rpc/AcceptPicker.cjs.map +0 -1
  379. package/dist/rpc/AcceptPicker.d.ts +0 -12
  380. package/dist/rpc/AcceptPicker.d.ts.map +0 -1
  381. package/dist/rpc/AcceptPicker.js +0 -137
  382. package/dist/rpc/AcceptPicker.js.map +0 -1
package/dist/index.js CHANGED
@@ -33,12 +33,14 @@ import { Field } from "./components/Field.js";
33
33
  import { useForm } from "./components/use-form.js";
34
34
  import { TreePickerField } from "./components/TreePickerField.js";
35
35
  import { WorkloadPicker } from "./components/WorkloadPicker.js";
36
+ import { NamespacePicker } from "./components/NamespacePicker.js";
36
37
  import { kindForValue, loadedWorkloads, parseWorkloadKey, workloadKey } from "./components/workload-picker-utils.js";
37
38
  import { SecretKeySelector } from "./components/SecretKeySelector.js";
38
39
  import { ThemeSwitcher } from "./components/theme-switcher.js";
39
40
  import { DensitySwitcher } from "./components/density-switcher.js";
40
41
  import { IconMenuPicker } from "./components/icon-menu-picker.js";
41
42
  import { JsonSchemaForm } from "./components/JsonSchemaForm.js";
43
+ import { FormLookupProvider, resolveLookupScope, useLookupFetcher } from "./components/form-lookup-context.js";
42
44
  import { DEFAULT_FORM_SIZE } from "./components/json-schema-form-size.js";
43
45
  import { DEFAULT_PREFERENCES_STORAGE_KEY, readPreferences, writePreferences } from "./components/json-schema-form-preferences.js";
44
46
  import { effectiveProperties, isOpenStringMap, matchesIf, resolveControl } from "./components/json-schema-form-resolve.js";
@@ -77,6 +79,8 @@ import { Icon, LabelIcon } from "./data/Icon.js";
77
79
  import { setFallbackIconProvider } from "./data/icon-fallback.js";
78
80
  import { JsonView } from "./data/JsonView.js";
79
81
  import { KeyValueList } from "./data/KeyValueList.js";
82
+ import { SchemaFieldMetaPanel, SchemaViewer, SchemaViewerRow } from "./data/SchemaViewer.js";
83
+ import { buildSchemaTree, buildSchemaViewerTree, buildStepBranchTree, hasHoverMeta } from "./data/schema-viewer-model.js";
80
84
  import { Properties } from "./data/Properties.js";
81
85
  import { formatPropertyLabel } from "./data/properties-utils.js";
82
86
  import { LogViewer } from "./data/LogViewer.js";
@@ -84,6 +88,8 @@ import { LogsTable } from "./data/LogsTable.js";
84
88
  import { normalizeLogsTableRows } from "./data/logs-normalize.js";
85
89
  import { MatrixTable } from "./data/MatrixTable.js";
86
90
  import { Markdown } from "./data/Markdown.js";
91
+ import { MarkdownEditor } from "./data/MarkdownEditor.js";
92
+ import { MARKDOWN_EDITOR_PREVIEW_FORMATS, buildMarkdownPreviewUrl, clickyFormatForMarkdownPreview } from "./data/MarkdownEditor.model.js";
87
93
  import { MethodBadge } from "./data/MethodBadge.js";
88
94
  import { ProgressBar } from "./data/ProgressBar.js";
89
95
  import { SignedDeltaBar } from "./data/SignedDeltaBar.js";
@@ -94,6 +100,8 @@ import { mergeSeries, resolveBreakdown, resolveSeries } from "./data/TimeseriesP
94
100
  import { assignAxes, latestOf } from "./data/TimeseriesPanel.axes.js";
95
101
  import { TimeseriesGauge } from "./data/TimeseriesGauge.js";
96
102
  import { TimeseriesCoreBars } from "./data/TimeseriesCoreBars.js";
103
+ import { GaugeHoverCard } from "./data/GaugeHoverCard.js";
104
+ import { seriesStats } from "./data/gauge-stats.js";
97
105
  import { WorkloadCard } from "./data/WorkloadCard.js";
98
106
  import { formatReplicaCounts, workloadKindLabel, workloadStatusLabel, workloadStatusTone } from "./data/WorkloadCard.model.js";
99
107
  import { deriveCoreBars } from "./data/TimeseriesCoreBars.model.js";
@@ -102,6 +110,8 @@ import { segment } from "./data/status-breakdown-utils.js";
102
110
  import { Version } from "./data/Version.js";
103
111
  import { getVersionInfo } from "./data/version-info.js";
104
112
  import { Tree } from "./data/Tree.js";
113
+ import { ObjectGraph } from "./data/ObjectGraph.js";
114
+ import { ExecutionTree } from "./data/ExecutionTree.js";
105
115
  import { TreeNode } from "./data/TreeNode.js";
106
116
  import { TreeGroupHeader } from "./data/TreeGroupHeader.js";
107
117
  import { Timeline } from "./data/Timeline.js";
@@ -122,11 +132,26 @@ import { parseJavaStackTrace } from "./data/diagnostics/stacktrace-parse.js";
122
132
  import { CopyBadge, ErrorDetails, PrettyStackTrace } from "./data/diagnostics/ErrorDetails.js";
123
133
  import { compactStackPath, isApplicationStackFrame, normalizeErrorDiagnostics, parseDiagnosticsStackTrace, parseInlineJsonContextValue } from "./data/diagnostics/error-diagnostics.js";
124
134
  import { HarPanel } from "./data/har/HarPanel.js";
135
+ import { DEFAULT_CHECKLIST_CYCLE, DEFAULT_COMMENT_STATUSES, DOCUMENT_ANCHOR } from "./comments/comment-types.js";
136
+ import { applyCommentFilters, authorDisplayName, buildReplyMap, buildThreadListHandlers, commentCountForPrefix, defaultStatusValue, deriveAnchorCounts, deriveAnchorMeta, emptyCommentFilters, getRoots, groupByFacet, hasActiveFilters, isUnresolved, matchMentionsInBody, nextChecklistStatus, resolveFacetOption, resolveStatusConfig, sortReplies, toneToBadgeTone, truncatePlain } from "./comments/comment-utils.js";
137
+ import { CommentMarkdown } from "./comments/CommentMarkdown.js";
138
+ import { CommentAuthorAvatar } from "./comments/CommentAuthor.js";
139
+ import { MentionTextarea } from "./comments/MentionTextarea.js";
140
+ import { CommentCard } from "./comments/CommentCard.js";
141
+ import { CommentComposer } from "./comments/CommentComposer.js";
142
+ import { CommentThreadList } from "./comments/CommentThreadList.js";
143
+ import { CommentThread } from "./comments/CommentThread.js";
144
+ import { CommentProvider } from "./comments/CommentProvider.js";
145
+ import { dottedAnchorResolver, exactAnchorResolver, useCommentContext, useCommentContextOptional } from "./comments/comment-context.js";
146
+ import { CommentSidePanel } from "./comments/CommentSidePanel.js";
147
+ import { GroupedComments } from "./comments/GroupedComments.js";
148
+ import { CommentFilterBar } from "./comments/CommentFilterBar.js";
149
+ import { CommentProgress } from "./comments/CommentProgress.js";
125
150
  import { Clicky, ClickyNodeView, ClickyTable } from "./data/Clicky.js";
126
151
  import { OperationCatalog } from "./rpc/OperationCatalog.js";
127
152
  import { EntityExplorerApp } from "./rpc/EntityExplorerApp.js";
128
- import { AcceptPicker } from "./rpc/AcceptPicker.js";
129
153
  import { ACCEPT_OPTIONS, VIEW_OPTIONS } from "./rpc/accept-options.js";
154
+ import { SchemaActionForm } from "./rpc/SchemaActionForm.js";
130
155
  import { CommandForm } from "./rpc/CommandForm.js";
131
156
  import { normalizeParameters, pathParamNames, submitValue } from "./rpc/command-form-utils.js";
132
157
  import { CommandOutput } from "./rpc/CommandOutput.js";
@@ -135,6 +160,7 @@ import { InlineError } from "./rpc/InlineError.js";
135
160
  import { OperationActionDialog } from "./rpc/OperationActionDialog.js";
136
161
  import { OperationEntityPage } from "./rpc/OperationEntityPage.js";
137
162
  import { OperationCommandPage } from "./rpc/OperationCommandPage.js";
163
+ import { OperationResultView } from "./rpc/OperationResultView.js";
138
164
  import { EndpointList } from "./rpc/EndpointList.js";
139
165
  import { useOpenAPI, useOperationById, useOperations } from "./rpc/useOperations.js";
140
166
  import { OperationsApiClientError, createOperationsApiClient } from "./rpc/apiClient.js";
@@ -428,7 +454,6 @@ import { isLeaf } from "./data/cache-browser/types.js";
428
454
  export {
429
455
  ACCEPT_OPTIONS,
430
456
  AVATAR_PALETTE,
431
- AcceptPicker,
432
457
  AnsiHtml,
433
458
  AppLayout,
434
459
  AppShell,
@@ -452,9 +477,22 @@ export {
452
477
  Combobox,
453
478
  CommandForm,
454
479
  CommandOutput,
480
+ CommentAuthorAvatar,
481
+ CommentCard,
482
+ CommentComposer,
483
+ CommentFilterBar,
484
+ CommentMarkdown,
485
+ CommentProgress,
486
+ CommentProvider,
487
+ CommentSidePanel,
488
+ CommentThread,
489
+ CommentThreadList,
455
490
  CopyBadge,
491
+ DEFAULT_CHECKLIST_CYCLE,
492
+ DEFAULT_COMMENT_STATUSES,
456
493
  DEFAULT_FORM_SIZE,
457
494
  DEFAULT_PREFERENCES_STORAGE_KEY,
495
+ DOCUMENT_ANCHOR,
458
496
  DataTable,
459
497
  DateField,
460
498
  DatePicker,
@@ -469,15 +507,19 @@ export {
469
507
  EndpointList,
470
508
  EntityExplorerApp,
471
509
  ErrorDetails,
510
+ ExecutionTree,
472
511
  Field,
473
512
  FilterBar,
474
513
  FilterForm,
475
514
  FilterPill,
476
515
  FilterPillGroup,
477
516
  FilterSeparator,
517
+ FormLookupProvider,
478
518
  FormatOptionsDropdown,
479
519
  FrameSourceWindow,
480
520
  Gauge,
521
+ GaugeHoverCard,
522
+ GroupedComments,
481
523
  HarPanel,
482
524
  HoverCard,
483
525
  Icon,
@@ -494,15 +536,21 @@ export {
494
536
  LoadingDots,
495
537
  LogViewer,
496
538
  LogsTable,
539
+ MARKDOWN_EDITOR_PREVIEW_FORMATS,
497
540
  Markdown,
541
+ MarkdownEditor,
498
542
  MatrixTable,
543
+ MentionTextarea,
499
544
  MethodBadge,
500
545
  Modal,
501
546
  MultiSelect,
547
+ NamespacePicker,
548
+ ObjectGraph,
502
549
  OperationActionDialog,
503
550
  OperationCatalog,
504
551
  OperationCommandPage,
505
552
  OperationEntityPage,
553
+ OperationResultView,
506
554
  OperationsApiClientError,
507
555
  Panel,
508
556
  PrettyStackTrace,
@@ -513,6 +561,10 @@ export {
513
561
  RouterProvider,
514
562
  SIZE_TOKENS,
515
563
  STATUS_TOKEN_GROUPS,
564
+ SchemaActionForm,
565
+ SchemaFieldMetaPanel,
566
+ SchemaViewer,
567
+ SchemaViewerRow,
516
568
  SearchInput,
517
569
  SecretKeySelector,
518
570
  Section,
@@ -1053,18 +1105,28 @@ export {
1053
1105
  WorkloadPicker,
1054
1106
  allGroupsTerminal,
1055
1107
  annotateRoutePaths,
1108
+ applyCommentFilters,
1056
1109
  applyFilterExtensions,
1057
1110
  assignAxes,
1111
+ authorDisplayName,
1058
1112
  badgeVariants,
1059
1113
  bucketTasks,
1060
1114
  buildCommandHref,
1115
+ buildMarkdownPreviewUrl,
1116
+ buildReplyMap,
1117
+ buildSchemaTree,
1118
+ buildSchemaViewerTree,
1119
+ buildStepBranchTree,
1120
+ buildThreadListHandlers,
1061
1121
  buttonVariants,
1062
1122
  cacheQueryKeys,
1063
1123
  changeIconAliases,
1064
1124
  chooseTimestampFormat,
1125
+ clickyFormatForMarkdownPreview,
1065
1126
  cn,
1066
1127
  collapseSingleChildChains,
1067
1128
  collectFrameworks,
1129
+ commentCountForPrefix,
1068
1130
  compactStackPath,
1069
1131
  countGoroutinesByState,
1070
1132
  countProcesses,
@@ -1076,11 +1138,17 @@ export {
1076
1138
  createTestRunnerRegistry,
1077
1139
  cycleFilterState,
1078
1140
  decodeFilterState,
1141
+ defaultStatusValue,
1142
+ deriveAnchorCounts,
1143
+ deriveAnchorMeta,
1079
1144
  deriveCoreBars,
1080
1145
  detectDumpFormat,
1146
+ dottedAnchorResolver,
1081
1147
  effectiveProperties,
1148
+ emptyCommentFilters,
1082
1149
  emptyTestFilters,
1083
1150
  encodeFilterState,
1151
+ exactAnchorResolver,
1084
1152
  filterOperationsByDomain,
1085
1153
  filterTests,
1086
1154
  findDetailEndpoint,
@@ -1105,8 +1173,12 @@ export {
1105
1173
  frameworkIcon,
1106
1174
  getChangeIcon,
1107
1175
  getClickySurfaces,
1176
+ getRoots,
1108
1177
  getVersionInfo,
1178
+ groupByFacet,
1179
+ hasActiveFilters,
1109
1180
  hasFailed,
1181
+ hasHoverMeta,
1110
1182
  hasPending,
1111
1183
  humanizeName,
1112
1184
  inferColumns,
@@ -1115,15 +1187,18 @@ export {
1115
1187
  isOpenStringMap,
1116
1188
  isPositionalParam,
1117
1189
  isTerminalStatus,
1190
+ isUnresolved,
1118
1191
  kindForValue,
1119
1192
  latestOf,
1120
1193
  loadedWorkloads,
1121
1194
  logLevelColor,
1122
1195
  makeSurfaceDefinition,
1196
+ matchMentionsInBody,
1123
1197
  matchesFilterState,
1124
1198
  matchesIf,
1125
1199
  mergeSeries,
1126
1200
  modeToFormat,
1201
+ nextChecklistStatus,
1127
1202
  normalizeErrorDiagnostics,
1128
1203
  normalizeLogsTableRows,
1129
1204
  normalizeParameters,
@@ -1149,11 +1224,16 @@ export {
1149
1224
  rehydrateRefs,
1150
1225
  resolveBreakdown,
1151
1226
  resolveControl,
1227
+ resolveFacetOption,
1228
+ resolveLookupScope,
1152
1229
  resolveSeries,
1153
1230
  resolveSize,
1231
+ resolveStatusConfig,
1154
1232
  segment,
1233
+ seriesStats,
1155
1234
  setFallbackIconProvider,
1156
1235
  slugify,
1236
+ sortReplies,
1157
1237
  splitTagToken,
1158
1238
  statusIconFor,
1159
1239
  statusToneFor,
@@ -1168,12 +1248,17 @@ export {
1168
1248
  taskStatusIcon,
1169
1249
  templateValuePre,
1170
1250
  testStatus,
1251
+ toneToBadgeTone,
1171
1252
  totalDuration,
1253
+ truncatePlain,
1172
1254
  useBrowserRouter,
1255
+ useCommentContext,
1256
+ useCommentContextOptional,
1173
1257
  useDensity,
1174
1258
  useDensityValue,
1175
1259
  useForm,
1176
1260
  useHistoryRoute,
1261
+ useLookupFetcher,
1177
1262
  useMemoryRouter,
1178
1263
  useModalStack,
1179
1264
  useOpenAPI,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,47 +3,30 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const themeSwitcher = require("../components/theme-switcher.cjs");
6
+ const AppShell = require("../layout/AppShell.cjs");
6
7
  const clickyMetadata = require("./clickyMetadata.cjs");
7
8
  const commandHref = require("./commandHref.cjs");
8
9
  const router = require("./router.cjs");
9
10
  const OperationCatalog = require("./OperationCatalog.cjs");
10
11
  const OperationCommandPage = require("./OperationCommandPage.cjs");
11
12
  const OperationEntityPage = require("./OperationEntityPage.cjs");
13
+ const surfaceIconMap = require("./surfaceIconMap.cjs");
12
14
  const useOperations = require("./useOperations.cjs");
13
- const SURFACE_GROUP_STATE_KEY = "clicky-ui:sidebar:groupCollapsed";
15
+ const SIDEBAR_COLLAPSED_KEY = "clicky-ui:sidebar:collapsed";
14
16
  function EntityExplorerApp({
15
17
  client,
16
18
  basePath = "",
17
19
  showApiExplorer = true,
18
- surfaceIcons
20
+ formExtensions,
21
+ formActions,
22
+ resultRenderer
19
23
  }) {
24
+ const formPre = formExtensions == null ? void 0 : formExtensions.pre;
25
+ const formPost = formExtensions == null ? void 0 : formExtensions.post;
20
26
  const { pathname, renderLink, navigate } = router.useRouter();
21
- const { operations, spec } = useOperations.useOperations(client);
27
+ const { spec } = useOperations.useOperations(client);
22
28
  const surfaces = react.useMemo(() => clickyMetadata.getClickySurfaces(spec), [spec]);
23
29
  const surfaceGroups = react.useMemo(() => groupSurfacesByParent(surfaces), [surfaces]);
24
- const listHrefBySurface = react.useMemo(() => {
25
- const out = {};
26
- for (const surface of surfaces) {
27
- const listOp = clickyMetadata.findSurfaceListOperation(operations, surface.key);
28
- if (!(listOp == null ? void 0 : listOp.operation.operationId)) continue;
29
- const href = commandHref.buildCommandHref(basePath, {
30
- operation: listOp,
31
- request: { command: listOp.operation.operationId, autoRun: true }
32
- });
33
- if (href) out[surface.key] = href;
34
- }
35
- return out;
36
- }, [basePath, operations, surfaces]);
37
- const [collapsedGroups, setCollapsedGroups] = react.useState(
38
- () => readCollapsedGroups()
39
- );
40
- const toggleGroup = react.useCallback((parent) => {
41
- setCollapsedGroups((prev) => {
42
- const next = { ...prev, [parent]: !prev[parent] };
43
- writeCollapsedGroups(next);
44
- return next;
45
- });
46
- }, []);
47
30
  const defaultSurface = react.useMemo(
48
31
  () => surfaces.find((surface) => !surface.admin) ?? surfaces[0],
49
32
  [surfaces]
@@ -75,104 +58,104 @@ function EntityExplorerApp({
75
58
  }),
76
59
  []
77
60
  );
61
+ const navSections = react.useMemo(() => {
62
+ const sections = surfaceGroups.map((group) => ({
63
+ label: group.label,
64
+ items: group.surfaces.map((surface) => {
65
+ const icon = surfaceIconMap.resolveSurfaceIcon(surface.icon);
66
+ return {
67
+ key: surface.key,
68
+ label: surface.title,
69
+ ...icon ? { icon } : {},
70
+ active: isSurfaceRouteActive(resolvedRoute, surface.key),
71
+ to: commandHref.withBasePath(basePath, `/${surface.key}`)
72
+ };
73
+ })
74
+ }));
75
+ if (showApiExplorer) {
76
+ sections.push({
77
+ items: [
78
+ {
79
+ key: explorerDefinition.key,
80
+ label: explorerDefinition.title,
81
+ active: resolvedRoute.kind === "explorer" || resolvedRoute.kind === "command",
82
+ to: commandHref.withBasePath(basePath, "/explorer")
83
+ }
84
+ ]
85
+ });
86
+ }
87
+ return sections;
88
+ }, [surfaceGroups, basePath, resolvedRoute, showApiExplorer, explorerDefinition]);
78
89
  react.useEffect(() => {
79
90
  if (defaultSurface == null || relativePath !== "/") return;
80
91
  navigate(commandHref.withBasePath(basePath, `/${defaultSurface.key}`), { replace: true });
81
92
  }, [basePath, defaultSurface, relativePath, navigate]);
82
- const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full", children: [
83
- /* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "flex w-64 shrink-0 flex-col border-r border-border bg-muted/30 p-4", children: [
84
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
85
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-semibold", children: (spec == null ? void 0 : spec.info.title) ?? "Clicky Explorer" }),
86
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground", children: "Metadata-driven entity explorer" })
93
+ const content = /* @__PURE__ */ jsxRuntime.jsx(
94
+ AppShell.AppShell,
95
+ {
96
+ brand: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
97
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-sm font-semibold", children: (spec == null ? void 0 : spec.info.title) ?? "Clicky Explorer" }),
98
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-xs text-sidebar-foreground/60", children: "Metadata-driven entity explorer" })
87
99
  ] }),
88
- /* @__PURE__ */ jsxRuntime.jsxs("nav", { className: "flex flex-col gap-2", children: [
89
- surfaceGroups.map((group) => {
90
- const collapsed = collapsedGroups[group.parent] ?? false;
91
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
92
- /* @__PURE__ */ jsxRuntime.jsxs(
93
- "button",
94
- {
95
- type: "button",
96
- onClick: () => toggleGroup(group.parent),
97
- "aria-expanded": !collapsed,
98
- className: "flex items-center gap-2 rounded-md px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground transition-colors hover:bg-accent/40",
99
- children: [
100
- (surfaceIcons == null ? void 0 : surfaceIcons[group.parent]) != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-4 w-4 items-center justify-center text-current", children: surfaceIcons[group.parent] }),
101
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-left", children: group.label }),
102
- /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: "text-[0.65rem] opacity-60", children: collapsed ? "▸" : "▾" })
103
- ]
104
- }
105
- ),
106
- !collapsed && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ml-2 mt-1 flex flex-col gap-1 border-l border-border/60 pl-2", children: group.surfaces.map(
107
- (surface) => renderLink({
108
- key: surface.key,
109
- to: listHrefBySurface[surface.key] ?? commandHref.withBasePath(basePath, `/${surface.key}`),
110
- className: navLinkClassName(
111
- isSurfaceRouteActive(resolvedRoute, surface.key)
112
- ),
113
- children: surface.title
114
- })
115
- ) })
116
- ] }, group.parent);
117
- }),
118
- showApiExplorer && renderLink({
119
- key: explorerDefinition.key,
120
- to: commandHref.withBasePath(basePath, "/explorer"),
121
- className: navLinkClassName(
122
- resolvedRoute.kind === "explorer" || resolvedRoute.kind === "command"
123
- ),
124
- children: explorerDefinition.title
125
- })
126
- ] }),
127
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto pt-4", children: /* @__PURE__ */ jsxRuntime.jsx(themeSwitcher.ThemeSwitcher, {}) })
128
- ] }),
129
- /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-auto p-6", children: resolvedRoute.kind === "surface" ? resolvedRoute.surface ? /* @__PURE__ */ jsxRuntime.jsx(
130
- OperationCatalog.OperationCatalog,
131
- {
132
- definition: clickyMetadata.makeSurfaceDefinition(resolvedRoute.surface),
133
- entities: [resolvedRoute.surface.entity],
134
- client,
135
- renderLink,
136
- surfaceKey: resolvedRoute.surface.key,
137
- commandRuntime
138
- }
139
- ) : /* @__PURE__ */ jsxRuntime.jsx(UnknownSurface, { surfaceKey: resolvedRoute.surfaceKey }) : resolvedRoute.kind === "entity" ? resolvedRoute.surface ? /* @__PURE__ */ jsxRuntime.jsx(
140
- OperationEntityPage.OperationEntityPage,
141
- {
142
- definition: clickyMetadata.makeSurfaceDefinition(resolvedRoute.surface),
143
- entities: [resolvedRoute.surface.entity],
144
- client,
145
- renderLink,
146
- surfaceKey: resolvedRoute.surface.key,
147
- backHref: commandHref.withBasePath(basePath, `/${resolvedRoute.surface.key}`),
148
- backLabel: `Back to ${resolvedRoute.surface.title}`,
149
- commandRuntime,
150
- ...resolvedRoute.id ? { id: resolvedRoute.id } : {}
151
- }
152
- ) : /* @__PURE__ */ jsxRuntime.jsx(UnknownSurface, { surfaceKey: resolvedRoute.surfaceKey }) : resolvedRoute.kind === "command" ? /* @__PURE__ */ jsxRuntime.jsx(
153
- OperationCommandPage.OperationCommandPage,
154
- {
155
- client,
156
- backHref: commandHref.withBasePath(basePath, "/explorer"),
157
- backLabel: "Back to API Explorer",
158
- renderLink,
159
- commandRuntime,
160
- initialValues: commandInitialValues,
161
- autoRun: true,
162
- ...resolvedRoute.operationId ? { operationId: resolvedRoute.operationId } : {}
163
- }
164
- ) : resolvedRoute.kind === "explorer" ? /* @__PURE__ */ jsxRuntime.jsx(
165
- OperationCatalog.OperationCatalog,
166
- {
167
- definition: explorerDefinition,
168
- entities: [],
169
- allOperations: true,
170
- client,
171
- renderLink,
172
- commandRuntime
173
- }
174
- ) : defaultSurface == null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading surfaces…" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Redirecting…" }) })
175
- ] });
100
+ navSections,
101
+ sidebarFooter: /* @__PURE__ */ jsxRuntime.jsx(themeSwitcher.ThemeSwitcher, {}),
102
+ collapsedStorageKey: SIDEBAR_COLLAPSED_KEY,
103
+ contentClassName: "p-6",
104
+ children: resolvedRoute.kind === "surface" ? resolvedRoute.surface ? /* @__PURE__ */ jsxRuntime.jsx(
105
+ OperationCatalog.OperationCatalog,
106
+ {
107
+ definition: clickyMetadata.makeSurfaceDefinition(resolvedRoute.surface),
108
+ entities: [resolvedRoute.surface.entity],
109
+ client,
110
+ renderLink,
111
+ surfaceKey: resolvedRoute.surface.key,
112
+ commandRuntime,
113
+ ...formPre ? { formPre } : {},
114
+ ...formPost ? { formPost } : {},
115
+ ...formActions ? { formActions } : {},
116
+ ...resultRenderer ? { resultRenderer } : {}
117
+ }
118
+ ) : /* @__PURE__ */ jsxRuntime.jsx(UnknownSurface, { surfaceKey: resolvedRoute.surfaceKey }) : resolvedRoute.kind === "entity" ? resolvedRoute.surface ? /* @__PURE__ */ jsxRuntime.jsx(
119
+ OperationEntityPage.OperationEntityPage,
120
+ {
121
+ definition: clickyMetadata.makeSurfaceDefinition(resolvedRoute.surface),
122
+ entities: [resolvedRoute.surface.entity],
123
+ client,
124
+ renderLink,
125
+ surfaceKey: resolvedRoute.surface.key,
126
+ backHref: commandHref.withBasePath(basePath, `/${resolvedRoute.surface.key}`),
127
+ backLabel: `Back to ${resolvedRoute.surface.title}`,
128
+ commandRuntime,
129
+ ...formPre ? { formPre } : {},
130
+ ...formPost ? { formPost } : {},
131
+ ...formActions ? { formActions } : {},
132
+ ...resolvedRoute.id ? { id: resolvedRoute.id } : {}
133
+ }
134
+ ) : /* @__PURE__ */ jsxRuntime.jsx(UnknownSurface, { surfaceKey: resolvedRoute.surfaceKey }) : resolvedRoute.kind === "command" ? /* @__PURE__ */ jsxRuntime.jsx(
135
+ OperationCommandPage.OperationCommandPage,
136
+ {
137
+ client,
138
+ backHref: commandHref.withBasePath(basePath, "/explorer"),
139
+ backLabel: "Back to API Explorer",
140
+ renderLink,
141
+ commandRuntime,
142
+ initialValues: commandInitialValues,
143
+ autoRun: true,
144
+ ...resolvedRoute.operationId ? { operationId: resolvedRoute.operationId } : {}
145
+ }
146
+ ) : resolvedRoute.kind === "explorer" ? /* @__PURE__ */ jsxRuntime.jsx(
147
+ OperationCatalog.OperationCatalog,
148
+ {
149
+ definition: explorerDefinition,
150
+ entities: [],
151
+ allOperations: true,
152
+ client,
153
+ renderLink,
154
+ commandRuntime
155
+ }
156
+ ) : defaultSurface == null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading surfaces…" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Redirecting…" })
157
+ }
158
+ );
176
159
  return content;
177
160
  }
178
161
  function parseExplorerRoute(pathname) {
@@ -207,12 +190,6 @@ function resolveRouteSurface(route, surfaces) {
207
190
  function isSurfaceRouteActive(route, surfaceKey) {
208
191
  return route.kind === "surface" && route.surfaceKey === surfaceKey || route.kind === "entity" && route.surfaceKey === surfaceKey;
209
192
  }
210
- function navLinkClassName(active) {
211
- return [
212
- "rounded-md px-2 py-1.5 text-sm transition-colors",
213
- active ? "bg-accent text-accent-foreground" : "text-foreground hover:bg-accent"
214
- ].join(" ");
215
- }
216
193
  function stripBasePath(pathname, basePath) {
217
194
  const base = commandHref.trimTrailingSlash(basePath);
218
195
  if (!base || base === "/") {
@@ -254,24 +231,6 @@ function titleCase(value) {
254
231
  if (!value) return value;
255
232
  return value.charAt(0).toUpperCase() + value.slice(1);
256
233
  }
257
- function readCollapsedGroups() {
258
- if (typeof window === "undefined") return {};
259
- try {
260
- const raw = window.localStorage.getItem(SURFACE_GROUP_STATE_KEY);
261
- if (!raw) return {};
262
- const parsed = JSON.parse(raw);
263
- return parsed && typeof parsed === "object" ? parsed : {};
264
- } catch {
265
- return {};
266
- }
267
- }
268
- function writeCollapsedGroups(state) {
269
- if (typeof window === "undefined") return;
270
- try {
271
- window.localStorage.setItem(SURFACE_GROUP_STATE_KEY, JSON.stringify(state));
272
- } catch {
273
- }
274
- }
275
234
  function readCommandQueryParams() {
276
235
  if (typeof window === "undefined") {
277
236
  return { initialValues: {}, autoRun: false };