@vertesia/ui 1.0.0-dev.20260128.144200 → 1.0.0-dev.20260203.130115Z

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 (1560) hide show
  1. package/package.json +5 -5
  2. package/src/core/components/InputList.tsx +1 -1
  3. package/src/core/components/Overlay.tsx +1 -1
  4. package/src/core/components/SidePanel.tsx +25 -13
  5. package/src/core/components/index.ts +0 -8
  6. package/src/core/components/{Panel.tsx → shadcn/Panel.tsx} +1 -1
  7. package/src/core/components/{Badge.tsx → shadcn/badge.tsx} +3 -3
  8. package/src/core/components/shadcn/command.tsx +1 -1
  9. package/src/core/components/shadcn/index.ts +5 -3
  10. package/src/core/components/{ConfirmModal.tsx → shadcn/modal/ConfirmModal.tsx} +8 -8
  11. package/src/core/components/{DeleteModal.tsx → shadcn/modal/DeleteModal.tsx} +1 -1
  12. package/src/core/components/shadcn/{dialog.tsx → modal/dialog.tsx} +43 -32
  13. package/src/core/components/shadcn/modal/index.ts +3 -0
  14. package/src/core/components/shadcn/popover.tsx +4 -2
  15. package/src/core/components/shadcn/selectBox.tsx +14 -12
  16. package/src/core/components/shadcn/tabs.tsx +16 -7
  17. package/src/core/components/shadcn/tooltip.tsx +23 -17
  18. package/src/features/agent/chat/AskUserWidget.tsx +4 -3
  19. package/src/features/agent/chat/ModernAgentConversation.tsx +8 -8
  20. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +23 -32
  21. package/src/features/store/collections/CreateCollection.tsx +8 -8
  22. package/src/features/store/collections/EditCollectionView.tsx +1 -1
  23. package/src/features/store/objects/components/ContentOverview.tsx +8 -8
  24. package/src/features/store/objects/components/PropertiesEditorModal.tsx +0 -1
  25. package/src/features/store/objects/components/SelectDocumentModal.tsx +6 -6
  26. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +13 -13
  27. package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +8 -8
  28. package/src/features/store/objects/upload/DocumentUploadModal.tsx +25 -25
  29. package/src/features/store/types/ObjectSchemaEditor.tsx +28 -27
  30. package/src/features/store/types/SelectContentType.tsx +3 -3
  31. package/src/features/store/types/TableLayoutEditor.tsx +11 -17
  32. package/src/features/user/UserInfo.tsx +158 -10
  33. package/src/layout/AppLayout.tsx +16 -44
  34. package/src/layout/Sidebar.tsx +4 -3
  35. package/src/shell/apps/AppProjectSelector.tsx +2 -2
  36. package/src/shell/apps/StandaloneApp.tsx +3 -3
  37. package/src/shell/login/InviteAcceptModal.tsx +6 -6
  38. package/src/shell/login/SignInModal.tsx +1 -1
  39. package/src/shell/login/SignupForm.tsx +3 -3
  40. package/src/shell/login/UserInfo.tsx +5 -5
  41. package/src/widgets/json-view/JSONCode.tsx +1 -3
  42. package/src/widgets/json-view/JSONDisplay.tsx +1 -1
  43. package/src/widgets/monacoEditor/MonacoEditor.tsx +2 -17
  44. package/src/widgets/schema-editor/editor/PropertyEditor.tsx +5 -5
  45. package/lib/esm/core/components/Avatar.js +0 -31
  46. package/lib/esm/core/components/Avatar.js.map +0 -1
  47. package/lib/esm/core/components/Badge.js +0 -62
  48. package/lib/esm/core/components/Badge.js.map +0 -1
  49. package/lib/esm/core/components/Button.js +0 -32
  50. package/lib/esm/core/components/Button.js.map +0 -1
  51. package/lib/esm/core/components/Center.js +0 -6
  52. package/lib/esm/core/components/Center.js.map +0 -1
  53. package/lib/esm/core/components/ComboBox.js +0 -356
  54. package/lib/esm/core/components/ComboBox.js.map +0 -1
  55. package/lib/esm/core/components/ConfirmModal.js +0 -10
  56. package/lib/esm/core/components/ConfirmModal.js.map +0 -1
  57. package/lib/esm/core/components/DeleteModal.js +0 -28
  58. package/lib/esm/core/components/DeleteModal.js.map +0 -1
  59. package/lib/esm/core/components/Divider.js +0 -6
  60. package/lib/esm/core/components/Divider.js.map +0 -1
  61. package/lib/esm/core/components/Dropdown.js +0 -16
  62. package/lib/esm/core/components/Dropdown.js.map +0 -1
  63. package/lib/esm/core/components/DropdownList.js +0 -9
  64. package/lib/esm/core/components/DropdownList.js.map +0 -1
  65. package/lib/esm/core/components/EmptyCollection.js +0 -7
  66. package/lib/esm/core/components/EmptyCollection.js.map +0 -1
  67. package/lib/esm/core/components/FileUpload.js +0 -119
  68. package/lib/esm/core/components/FileUpload.js.map +0 -1
  69. package/lib/esm/core/components/FormItem.js +0 -9
  70. package/lib/esm/core/components/FormItem.js.map +0 -1
  71. package/lib/esm/core/components/InputList.js +0 -61
  72. package/lib/esm/core/components/InputList.js.map +0 -1
  73. package/lib/esm/core/components/Link.js +0 -13
  74. package/lib/esm/core/components/Link.js.map +0 -1
  75. package/lib/esm/core/components/MenuList.js +0 -20
  76. package/lib/esm/core/components/MenuList.js.map +0 -1
  77. package/lib/esm/core/components/MessageBox.js +0 -66
  78. package/lib/esm/core/components/MessageBox.js.map +0 -1
  79. package/lib/esm/core/components/Modal.js +0 -26
  80. package/lib/esm/core/components/Modal.js.map +0 -1
  81. package/lib/esm/core/components/NumberInput.js +0 -43
  82. package/lib/esm/core/components/NumberInput.js.map +0 -1
  83. package/lib/esm/core/components/Overlay.js +0 -57
  84. package/lib/esm/core/components/Overlay.js.map +0 -1
  85. package/lib/esm/core/components/Panel.js +0 -8
  86. package/lib/esm/core/components/Panel.js.map +0 -1
  87. package/lib/esm/core/components/Portal.js +0 -28
  88. package/lib/esm/core/components/Portal.js.map +0 -1
  89. package/lib/esm/core/components/RadioGroup.js +0 -34
  90. package/lib/esm/core/components/RadioGroup.js.map +0 -1
  91. package/lib/esm/core/components/SelectBox.js +0 -67
  92. package/lib/esm/core/components/SelectBox.js.map +0 -1
  93. package/lib/esm/core/components/SelectList.js +0 -52
  94. package/lib/esm/core/components/SelectList.js.map +0 -1
  95. package/lib/esm/core/components/SelectStack.js +0 -8
  96. package/lib/esm/core/components/SelectStack.js.map +0 -1
  97. package/lib/esm/core/components/SidePanel.js +0 -33
  98. package/lib/esm/core/components/SidePanel.js.map +0 -1
  99. package/lib/esm/core/components/Spinner.js +0 -18
  100. package/lib/esm/core/components/Spinner.js.map +0 -1
  101. package/lib/esm/core/components/Switch.js +0 -12
  102. package/lib/esm/core/components/Switch.js.map +0 -1
  103. package/lib/esm/core/components/TagsInput.js +0 -194
  104. package/lib/esm/core/components/TagsInput.js.map +0 -1
  105. package/lib/esm/core/components/index.js +0 -36
  106. package/lib/esm/core/components/index.js.map +0 -1
  107. package/lib/esm/core/components/libs/utils.js +0 -6
  108. package/lib/esm/core/components/libs/utils.js.map +0 -1
  109. package/lib/esm/core/components/libs/visuallyHidden.js +0 -16
  110. package/lib/esm/core/components/libs/visuallyHidden.js.map +0 -1
  111. package/lib/esm/core/components/popup/Popup.js +0 -60
  112. package/lib/esm/core/components/popup/Popup.js.map +0 -1
  113. package/lib/esm/core/components/popup/PopupController.js +0 -149
  114. package/lib/esm/core/components/popup/PopupController.js.map +0 -1
  115. package/lib/esm/core/components/popup/index.js +0 -4
  116. package/lib/esm/core/components/popup/index.js.map +0 -1
  117. package/lib/esm/core/components/popup/position.js +0 -221
  118. package/lib/esm/core/components/popup/position.js.map +0 -1
  119. package/lib/esm/core/components/popup/utils.js +0 -74
  120. package/lib/esm/core/components/popup/utils.js.map +0 -1
  121. package/lib/esm/core/components/shadcn/breadcrumb.js +0 -51
  122. package/lib/esm/core/components/shadcn/breadcrumb.js.map +0 -1
  123. package/lib/esm/core/components/shadcn/button.js +0 -76
  124. package/lib/esm/core/components/shadcn/button.js.map +0 -1
  125. package/lib/esm/core/components/shadcn/calendar.js +0 -13
  126. package/lib/esm/core/components/shadcn/calendar.js.map +0 -1
  127. package/lib/esm/core/components/shadcn/card.js +0 -17
  128. package/lib/esm/core/components/shadcn/card.js.map +0 -1
  129. package/lib/esm/core/components/shadcn/checkbox.js +0 -9
  130. package/lib/esm/core/components/shadcn/checkbox.js.map +0 -1
  131. package/lib/esm/core/components/shadcn/command.js +0 -29
  132. package/lib/esm/core/components/shadcn/command.js.map +0 -1
  133. package/lib/esm/core/components/shadcn/dialog.js +0 -74
  134. package/lib/esm/core/components/shadcn/dialog.js.map +0 -1
  135. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +0 -38
  136. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +0 -1
  137. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js +0 -23
  138. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js.map +0 -1
  139. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +0 -129
  140. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +0 -1
  141. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +0 -46
  142. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +0 -1
  143. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +0 -23
  144. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +0 -1
  145. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js +0 -28
  146. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js.map +0 -1
  147. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js +0 -5
  148. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js.map +0 -1
  149. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js +0 -98
  150. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js.map +0 -1
  151. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +0 -24
  152. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +0 -1
  153. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js +0 -21
  154. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js.map +0 -1
  155. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +0 -161
  156. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +0 -1
  157. package/lib/esm/core/components/shadcn/filters/filter-styles.js +0 -88
  158. package/lib/esm/core/components/shadcn/filters/filter-styles.js.map +0 -1
  159. package/lib/esm/core/components/shadcn/filters/filterBar.js +0 -242
  160. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +0 -1
  161. package/lib/esm/core/components/shadcn/filters/filters.js +0 -57
  162. package/lib/esm/core/components/shadcn/filters/filters.js.map +0 -1
  163. package/lib/esm/core/components/shadcn/filters/index.js +0 -6
  164. package/lib/esm/core/components/shadcn/filters/index.js.map +0 -1
  165. package/lib/esm/core/components/shadcn/filters/types.js +0 -10
  166. package/lib/esm/core/components/shadcn/filters/types.js.map +0 -1
  167. package/lib/esm/core/components/shadcn/heading.js +0 -17
  168. package/lib/esm/core/components/shadcn/heading.js.map +0 -1
  169. package/lib/esm/core/components/shadcn/index.js +0 -23
  170. package/lib/esm/core/components/shadcn/index.js.map +0 -1
  171. package/lib/esm/core/components/shadcn/input.js +0 -41
  172. package/lib/esm/core/components/shadcn/input.js.map +0 -1
  173. package/lib/esm/core/components/shadcn/label.js +0 -10
  174. package/lib/esm/core/components/shadcn/label.js.map +0 -1
  175. package/lib/esm/core/components/shadcn/popover.js +0 -50
  176. package/lib/esm/core/components/shadcn/popover.js.map +0 -1
  177. package/lib/esm/core/components/shadcn/resizeable.js +0 -15
  178. package/lib/esm/core/components/shadcn/resizeable.js.map +0 -1
  179. package/lib/esm/core/components/shadcn/selectBox.js +0 -152
  180. package/lib/esm/core/components/shadcn/selectBox.js.map +0 -1
  181. package/lib/esm/core/components/shadcn/separator.js +0 -8
  182. package/lib/esm/core/components/shadcn/separator.js.map +0 -1
  183. package/lib/esm/core/components/shadcn/tabs.js +0 -132
  184. package/lib/esm/core/components/shadcn/tabs.js.map +0 -1
  185. package/lib/esm/core/components/shadcn/text.js +0 -30
  186. package/lib/esm/core/components/shadcn/text.js.map +0 -1
  187. package/lib/esm/core/components/shadcn/textarea.js +0 -7
  188. package/lib/esm/core/components/shadcn/textarea.js.map +0 -1
  189. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js +0 -39
  190. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js.map +0 -1
  191. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +0 -13
  192. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +0 -1
  193. package/lib/esm/core/components/shadcn/tooltip.js +0 -14
  194. package/lib/esm/core/components/shadcn/tooltip.js.map +0 -1
  195. package/lib/esm/core/components/styles.js +0 -10
  196. package/lib/esm/core/components/styles.js.map +0 -1
  197. package/lib/esm/core/components/table/index.js +0 -24
  198. package/lib/esm/core/components/table/index.js.map +0 -1
  199. package/lib/esm/core/components/tabs/Tabs.js +0 -78
  200. package/lib/esm/core/components/tabs/Tabs.js.map +0 -1
  201. package/lib/esm/core/components/tabs/TabsContext.js +0 -7
  202. package/lib/esm/core/components/tabs/TabsContext.js.map +0 -1
  203. package/lib/esm/core/components/tabs/index.js +0 -3
  204. package/lib/esm/core/components/tabs/index.js.map +0 -1
  205. package/lib/esm/core/components/toast/NotificationPanel.js +0 -43
  206. package/lib/esm/core/components/toast/NotificationPanel.js.map +0 -1
  207. package/lib/esm/core/components/toast/ToastContext.js +0 -7
  208. package/lib/esm/core/components/toast/ToastContext.js.map +0 -1
  209. package/lib/esm/core/components/toast/ToastProps.js +0 -2
  210. package/lib/esm/core/components/toast/ToastProps.js.map +0 -1
  211. package/lib/esm/core/components/toast/ToastProvider.js +0 -13
  212. package/lib/esm/core/components/toast/ToastProvider.js.map +0 -1
  213. package/lib/esm/core/components/toast/index.js +0 -3
  214. package/lib/esm/core/components/toast/index.js.map +0 -1
  215. package/lib/esm/core/hooks/CompositeState.js +0 -256
  216. package/lib/esm/core/hooks/CompositeState.js.map +0 -1
  217. package/lib/esm/core/hooks/PortalContainerProvider.js +0 -44
  218. package/lib/esm/core/hooks/PortalContainerProvider.js.map +0 -1
  219. package/lib/esm/core/hooks/SharedState.js +0 -64
  220. package/lib/esm/core/hooks/SharedState.js.map +0 -1
  221. package/lib/esm/core/hooks/index.js +0 -16
  222. package/lib/esm/core/hooks/index.js.map +0 -1
  223. package/lib/esm/core/hooks/useClickOutside.js +0 -29
  224. package/lib/esm/core/hooks/useClickOutside.js.map +0 -1
  225. package/lib/esm/core/hooks/useCopyToClipboard.js +0 -23
  226. package/lib/esm/core/hooks/useCopyToClipboard.js.map +0 -1
  227. package/lib/esm/core/hooks/useDarkMode.js +0 -11
  228. package/lib/esm/core/hooks/useDarkMode.js.map +0 -1
  229. package/lib/esm/core/hooks/useDebounce.js +0 -14
  230. package/lib/esm/core/hooks/useDebounce.js.map +0 -1
  231. package/lib/esm/core/hooks/useEventSource.js +0 -31
  232. package/lib/esm/core/hooks/useEventSource.js.map +0 -1
  233. package/lib/esm/core/hooks/useFetch.js +0 -40
  234. package/lib/esm/core/hooks/useFetch.js.map +0 -1
  235. package/lib/esm/core/hooks/useFlag.js +0 -13
  236. package/lib/esm/core/hooks/useFlag.js.map +0 -1
  237. package/lib/esm/core/hooks/useIntersectionObserver.js +0 -34
  238. package/lib/esm/core/hooks/useIntersectionObserver.js.map +0 -1
  239. package/lib/esm/core/hooks/useIsFistRendering.js +0 -14
  240. package/lib/esm/core/hooks/useIsFistRendering.js.map +0 -1
  241. package/lib/esm/core/hooks/useSafeLayoutEffect.js +0 -4
  242. package/lib/esm/core/hooks/useSafeLayoutEffect.js.map +0 -1
  243. package/lib/esm/core/hooks/useScrollableSearch.js +0 -92
  244. package/lib/esm/core/hooks/useScrollableSearch.js.map +0 -1
  245. package/lib/esm/core/hooks/useSharedValue.js +0 -21
  246. package/lib/esm/core/hooks/useSharedValue.js.map +0 -1
  247. package/lib/esm/core/index.js +0 -4
  248. package/lib/esm/core/index.js.map +0 -1
  249. package/lib/esm/core/utils/cn.js +0 -6
  250. package/lib/esm/core/utils/cn.js.map +0 -1
  251. package/lib/esm/core/utils/index.js +0 -2
  252. package/lib/esm/core/utils/index.js.map +0 -1
  253. package/lib/esm/env/index.js +0 -75
  254. package/lib/esm/env/index.js.map +0 -1
  255. package/lib/esm/features/activity-doc/ActivityDoc.js +0 -71
  256. package/lib/esm/features/activity-doc/ActivityDoc.js.map +0 -1
  257. package/lib/esm/features/activity-doc/index.js +0 -2
  258. package/lib/esm/features/activity-doc/index.js.map +0 -1
  259. package/lib/esm/features/agent/PayloadBuilder.js +0 -291
  260. package/lib/esm/features/agent/PayloadBuilder.js.map +0 -1
  261. package/lib/esm/features/agent/chat/AgentChart.js +0 -246
  262. package/lib/esm/features/agent/chat/AgentChart.js.map +0 -1
  263. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +0 -243
  264. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +0 -1
  265. package/lib/esm/features/agent/chat/AskUserWidget.js +0 -113
  266. package/lib/esm/features/agent/chat/AskUserWidget.js.map +0 -1
  267. package/lib/esm/features/agent/chat/ImageLightbox.js +0 -33
  268. package/lib/esm/features/agent/chat/ImageLightbox.js.map +0 -1
  269. package/lib/esm/features/agent/chat/JumpingDots.js +0 -6
  270. package/lib/esm/features/agent/chat/JumpingDots.js.map +0 -1
  271. package/lib/esm/features/agent/chat/ModernAgentConversation.js +0 -953
  272. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +0 -1
  273. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +0 -372
  274. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +0 -1
  275. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +0 -88
  276. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +0 -1
  277. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +0 -64
  278. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +0 -1
  279. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +0 -29
  280. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +0 -1
  281. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +0 -95
  282. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +0 -1
  283. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +0 -197
  284. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +0 -1
  285. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +0 -252
  286. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +0 -1
  287. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +0 -20
  288. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +0 -1
  289. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +0 -63
  290. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +0 -1
  291. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +0 -23
  292. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +0 -1
  293. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +0 -52
  294. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +0 -1
  295. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +0 -82
  296. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +0 -1
  297. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +0 -13
  298. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +0 -1
  299. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +0 -201
  300. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +0 -1
  301. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +0 -374
  302. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +0 -1
  303. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +0 -105
  304. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +0 -1
  305. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +0 -415
  306. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +0 -1
  307. package/lib/esm/features/agent/chat/SkillWidgetProvider.js +0 -132
  308. package/lib/esm/features/agent/chat/SkillWidgetProvider.js.map +0 -1
  309. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +0 -266
  310. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +0 -1
  311. package/lib/esm/features/agent/chat/VegaLiteChart.js +0 -781
  312. package/lib/esm/features/agent/chat/VegaLiteChart.js.map +0 -1
  313. package/lib/esm/features/agent/chat/WaitingMessages.js +0 -60
  314. package/lib/esm/features/agent/chat/WaitingMessages.js.map +0 -1
  315. package/lib/esm/features/agent/chat/index.js +0 -17
  316. package/lib/esm/features/agent/chat/index.js.map +0 -1
  317. package/lib/esm/features/agent/chat/useArtifactUrlCache.js +0 -62
  318. package/lib/esm/features/agent/chat/useArtifactUrlCache.js.map +0 -1
  319. package/lib/esm/features/agent/createChartTool.js +0 -632
  320. package/lib/esm/features/agent/createChartTool.js.map +0 -1
  321. package/lib/esm/features/agent/examples.js +0 -295
  322. package/lib/esm/features/agent/examples.js.map +0 -1
  323. package/lib/esm/features/agent/index.js +0 -5
  324. package/lib/esm/features/agent/index.js.map +0 -1
  325. package/lib/esm/features/agent/visualization.js +0 -165
  326. package/lib/esm/features/agent/visualization.js.map +0 -1
  327. package/lib/esm/features/errors/PanelErrorBoundary.js +0 -11
  328. package/lib/esm/features/errors/PanelErrorBoundary.js.map +0 -1
  329. package/lib/esm/features/errors/RowErrorBoundary.js +0 -9
  330. package/lib/esm/features/errors/RowErrorBoundary.js.map +0 -1
  331. package/lib/esm/features/errors/VertesiaErrorBoundary.js +0 -15
  332. package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +0 -1
  333. package/lib/esm/features/errors/WidgetErrorBoundary.js +0 -11
  334. package/lib/esm/features/errors/WidgetErrorBoundary.js.map +0 -1
  335. package/lib/esm/features/errors/index.js +0 -5
  336. package/lib/esm/features/errors/index.js.map +0 -1
  337. package/lib/esm/features/facets/AgentRunnerFacetsNav.js +0 -86
  338. package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +0 -1
  339. package/lib/esm/features/facets/CollectionsFacetsNav.js +0 -89
  340. package/lib/esm/features/facets/CollectionsFacetsNav.js.map +0 -1
  341. package/lib/esm/features/facets/DocumentsFacetsNav.js +0 -147
  342. package/lib/esm/features/facets/DocumentsFacetsNav.js.map +0 -1
  343. package/lib/esm/features/facets/EnvironmentFacet.js +0 -39
  344. package/lib/esm/features/facets/EnvironmentFacet.js.map +0 -1
  345. package/lib/esm/features/facets/InteractionsFacetsNav.js +0 -88
  346. package/lib/esm/features/facets/InteractionsFacetsNav.js.map +0 -1
  347. package/lib/esm/features/facets/PromptsFacetsNav.js +0 -80
  348. package/lib/esm/features/facets/PromptsFacetsNav.js.map +0 -1
  349. package/lib/esm/features/facets/RunsFacetsNav.js +0 -157
  350. package/lib/esm/features/facets/RunsFacetsNav.js.map +0 -1
  351. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js +0 -119
  352. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js.map +0 -1
  353. package/lib/esm/features/facets/index.js +0 -16
  354. package/lib/esm/features/facets/index.js.map +0 -1
  355. package/lib/esm/features/facets/utils/SearchInterface.js +0 -2
  356. package/lib/esm/features/facets/utils/SearchInterface.js.map +0 -1
  357. package/lib/esm/features/facets/utils/StringFacet.js +0 -12
  358. package/lib/esm/features/facets/utils/StringFacet.js.map +0 -1
  359. package/lib/esm/features/facets/utils/StringListFacet.js +0 -11
  360. package/lib/esm/features/facets/utils/StringListFacet.js.map +0 -1
  361. package/lib/esm/features/facets/utils/TypeFacet.js +0 -42
  362. package/lib/esm/features/facets/utils/TypeFacet.js.map +0 -1
  363. package/lib/esm/features/facets/utils/VEnvironmentFacet.js +0 -25
  364. package/lib/esm/features/facets/utils/VEnvironmentFacet.js.map +0 -1
  365. package/lib/esm/features/facets/utils/VInteractionFacet.js +0 -45
  366. package/lib/esm/features/facets/utils/VInteractionFacet.js.map +0 -1
  367. package/lib/esm/features/facets/utils/VStringFacet.js +0 -20
  368. package/lib/esm/features/facets/utils/VStringFacet.js.map +0 -1
  369. package/lib/esm/features/facets/utils/VTypeFacet.js +0 -61
  370. package/lib/esm/features/facets/utils/VTypeFacet.js.map +0 -1
  371. package/lib/esm/features/facets/utils/VUserFacet.js +0 -31
  372. package/lib/esm/features/facets/utils/VUserFacet.js.map +0 -1
  373. package/lib/esm/features/facets/utils/utils.js +0 -7
  374. package/lib/esm/features/facets/utils/utils.js.map +0 -1
  375. package/lib/esm/features/index.js +0 -12
  376. package/lib/esm/features/index.js.map +0 -1
  377. package/lib/esm/features/layout/GenericPageNavHeader.js +0 -74
  378. package/lib/esm/features/layout/GenericPageNavHeader.js.map +0 -1
  379. package/lib/esm/features/layout/NotFoundView.js +0 -5
  380. package/lib/esm/features/layout/NotFoundView.js.map +0 -1
  381. package/lib/esm/features/layout/index.js +0 -3
  382. package/lib/esm/features/layout/index.js.map +0 -1
  383. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +0 -268
  384. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +0 -1
  385. package/lib/esm/features/magic-pdf/DownloadPopover.js +0 -28
  386. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +0 -1
  387. package/lib/esm/features/magic-pdf/ExtractedContentView.js +0 -77
  388. package/lib/esm/features/magic-pdf/ExtractedContentView.js.map +0 -1
  389. package/lib/esm/features/magic-pdf/MagicPdfProvider.js +0 -242
  390. package/lib/esm/features/magic-pdf/MagicPdfProvider.js.map +0 -1
  391. package/lib/esm/features/magic-pdf/MagicPdfView.js +0 -61
  392. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +0 -1
  393. package/lib/esm/features/magic-pdf/index.js +0 -2
  394. package/lib/esm/features/magic-pdf/index.js.map +0 -1
  395. package/lib/esm/features/magic-pdf/types.js +0 -2
  396. package/lib/esm/features/magic-pdf/types.js.map +0 -1
  397. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js +0 -261
  398. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js.map +0 -1
  399. package/lib/esm/features/pdf-viewer/PdfPageSlider.js +0 -276
  400. package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +0 -1
  401. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +0 -71
  402. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +0 -1
  403. package/lib/esm/features/pdf-viewer/index.js +0 -4
  404. package/lib/esm/features/pdf-viewer/index.js.map +0 -1
  405. package/lib/esm/features/permissions/SecureButton.js +0 -13
  406. package/lib/esm/features/permissions/SecureButton.js.map +0 -1
  407. package/lib/esm/features/permissions/SecureSidebarItem.js +0 -14
  408. package/lib/esm/features/permissions/SecureSidebarItem.js.map +0 -1
  409. package/lib/esm/features/permissions/UserPermissionsProvider.js +0 -87
  410. package/lib/esm/features/permissions/UserPermissionsProvider.js.map +0 -1
  411. package/lib/esm/features/permissions/helpers.js +0 -12
  412. package/lib/esm/features/permissions/helpers.js.map +0 -1
  413. package/lib/esm/features/permissions/index.js +0 -5
  414. package/lib/esm/features/permissions/index.js.map +0 -1
  415. package/lib/esm/features/store/collections/BrowseCollectionView.js +0 -40
  416. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +0 -1
  417. package/lib/esm/features/store/collections/CollectionsTable.js +0 -64
  418. package/lib/esm/features/store/collections/CollectionsTable.js.map +0 -1
  419. package/lib/esm/features/store/collections/CreateCollection.js +0 -87
  420. package/lib/esm/features/store/collections/CreateCollection.js.map +0 -1
  421. package/lib/esm/features/store/collections/EditCollectionView.js +0 -181
  422. package/lib/esm/features/store/collections/EditCollectionView.js.map +0 -1
  423. package/lib/esm/features/store/collections/SelectCollection.js +0 -119
  424. package/lib/esm/features/store/collections/SelectCollection.js.map +0 -1
  425. package/lib/esm/features/store/collections/SharedPropsEditor.js +0 -39
  426. package/lib/esm/features/store/collections/SharedPropsEditor.js.map +0 -1
  427. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +0 -35
  428. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +0 -1
  429. package/lib/esm/features/store/collections/index.js +0 -8
  430. package/lib/esm/features/store/collections/index.js.map +0 -1
  431. package/lib/esm/features/store/index.js +0 -4
  432. package/lib/esm/features/store/index.js.map +0 -1
  433. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +0 -147
  434. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +0 -1
  435. package/lib/esm/features/store/objects/DocumentSearchResults.js +0 -204
  436. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +0 -1
  437. package/lib/esm/features/store/objects/DocumentSelectionProvider.js +0 -81
  438. package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +0 -1
  439. package/lib/esm/features/store/objects/DocumentTable.js +0 -278
  440. package/lib/esm/features/store/objects/DocumentTable.js.map +0 -1
  441. package/lib/esm/features/store/objects/ExportPropertiesModal.js +0 -31
  442. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +0 -1
  443. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +0 -31
  444. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +0 -1
  445. package/lib/esm/features/store/objects/components/ContentOverview.js +0 -629
  446. package/lib/esm/features/store/objects/components/ContentOverview.js.map +0 -1
  447. package/lib/esm/features/store/objects/components/DocumentIcon.js +0 -33
  448. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +0 -1
  449. package/lib/esm/features/store/objects/components/DocumentInput.js +0 -51
  450. package/lib/esm/features/store/objects/components/DocumentInput.js.map +0 -1
  451. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +0 -157
  452. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +0 -1
  453. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +0 -53
  454. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +0 -1
  455. package/lib/esm/features/store/objects/components/SelectDocument.js +0 -55
  456. package/lib/esm/features/store/objects/components/SelectDocument.js.map +0 -1
  457. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +0 -7
  458. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +0 -1
  459. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +0 -90
  460. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +0 -1
  461. package/lib/esm/features/store/objects/components/index.js +0 -10
  462. package/lib/esm/features/store/objects/components/index.js.map +0 -1
  463. package/lib/esm/features/store/objects/components/useContentPanelHooks.js +0 -169
  464. package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +0 -1
  465. package/lib/esm/features/store/objects/components/useDownloadObject.js +0 -21
  466. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +0 -1
  467. package/lib/esm/features/store/objects/index.js +0 -11
  468. package/lib/esm/features/store/objects/index.js.map +0 -1
  469. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +0 -86
  470. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +0 -1
  471. package/lib/esm/features/store/objects/layout/documentLayout.js +0 -15
  472. package/lib/esm/features/store/objects/layout/documentLayout.js.map +0 -1
  473. package/lib/esm/features/store/objects/layout/index.js +0 -3
  474. package/lib/esm/features/store/objects/layout/index.js.map +0 -1
  475. package/lib/esm/features/store/objects/layout/renderers.js +0 -157
  476. package/lib/esm/features/store/objects/layout/renderers.js.map +0 -1
  477. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +0 -175
  478. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +0 -1
  479. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +0 -39
  480. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +0 -1
  481. package/lib/esm/features/store/objects/search/index.js +0 -3
  482. package/lib/esm/features/store/objects/search/index.js.map +0 -1
  483. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +0 -150
  484. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +0 -1
  485. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +0 -2
  486. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +0 -1
  487. package/lib/esm/features/store/objects/selection/SelectionActions.js +0 -69
  488. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +0 -1
  489. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +0 -81
  490. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +0 -1
  491. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +0 -53
  492. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +0 -1
  493. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +0 -30
  494. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +0 -1
  495. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +0 -84
  496. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +0 -1
  497. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +0 -106
  498. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +0 -1
  499. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +0 -64
  500. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +0 -1
  501. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +0 -72
  502. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +0 -1
  503. package/lib/esm/features/store/objects/selection/actions/index.js +0 -8
  504. package/lib/esm/features/store/objects/selection/actions/index.js.map +0 -1
  505. package/lib/esm/features/store/objects/selection/index.js +0 -5
  506. package/lib/esm/features/store/objects/selection/index.js.map +0 -1
  507. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +0 -519
  508. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +0 -1
  509. package/lib/esm/features/store/objects/upload/index.js +0 -4
  510. package/lib/esm/features/store/objects/upload/index.js.map +0 -1
  511. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +0 -195
  512. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +0 -1
  513. package/lib/esm/features/store/objects/upload/useUploadHandler.js +0 -230
  514. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +0 -1
  515. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +0 -81
  516. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +0 -1
  517. package/lib/esm/features/store/types/ContentObjectTypesTable.js +0 -11
  518. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +0 -1
  519. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +0 -26
  520. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +0 -1
  521. package/lib/esm/features/store/types/ObjectSchemaEditor.js +0 -101
  522. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +0 -1
  523. package/lib/esm/features/store/types/SelectContentType.js +0 -43
  524. package/lib/esm/features/store/types/SelectContentType.js.map +0 -1
  525. package/lib/esm/features/store/types/SelectContentTypeModal.js +0 -28
  526. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +0 -1
  527. package/lib/esm/features/store/types/TableLayoutEditor.js +0 -76
  528. package/lib/esm/features/store/types/TableLayoutEditor.js.map +0 -1
  529. package/lib/esm/features/store/types/index.js +0 -9
  530. package/lib/esm/features/store/types/index.js.map +0 -1
  531. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +0 -98
  532. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +0 -1
  533. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +0 -15
  534. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +0 -1
  535. package/lib/esm/features/store/types/search/index.js +0 -3
  536. package/lib/esm/features/store/types/search/index.js.map +0 -1
  537. package/lib/esm/features/user/UserAvatar.js +0 -18
  538. package/lib/esm/features/user/UserAvatar.js.map +0 -1
  539. package/lib/esm/features/user/UserInfo.js +0 -121
  540. package/lib/esm/features/user/UserInfo.js.map +0 -1
  541. package/lib/esm/features/user/index.js +0 -3
  542. package/lib/esm/features/user/index.js.map +0 -1
  543. package/lib/esm/features/utils/index.js +0 -6
  544. package/lib/esm/features/utils/index.js.map +0 -1
  545. package/lib/esm/features/utils/mimeType.js +0 -17
  546. package/lib/esm/features/utils/mimeType.js.map +0 -1
  547. package/lib/esm/features/utils/print.js +0 -181
  548. package/lib/esm/features/utils/print.js.map +0 -1
  549. package/lib/esm/features/utils/rendition.js +0 -67
  550. package/lib/esm/features/utils/rendition.js.map +0 -1
  551. package/lib/esm/features/utils/text.js +0 -10
  552. package/lib/esm/features/utils/text.js.map +0 -1
  553. package/lib/esm/features/utils/workflowStatus.js +0 -43
  554. package/lib/esm/features/utils/workflowStatus.js.map +0 -1
  555. package/lib/esm/layout/AppLayout.js +0 -46
  556. package/lib/esm/layout/AppLayout.js.map +0 -1
  557. package/lib/esm/layout/FullHeightLayout.js +0 -18
  558. package/lib/esm/layout/FullHeightLayout.js.map +0 -1
  559. package/lib/esm/layout/Navbar.js +0 -40
  560. package/lib/esm/layout/Navbar.js.map +0 -1
  561. package/lib/esm/layout/Sidebar.js +0 -45
  562. package/lib/esm/layout/Sidebar.js.map +0 -1
  563. package/lib/esm/layout/SidebarContext.js +0 -10
  564. package/lib/esm/layout/SidebarContext.js.map +0 -1
  565. package/lib/esm/layout/TitleBar.js +0 -5
  566. package/lib/esm/layout/TitleBar.js.map +0 -1
  567. package/lib/esm/layout/index.js +0 -7
  568. package/lib/esm/layout/index.js.map +0 -1
  569. package/lib/esm/router/FixLinks.js +0 -23
  570. package/lib/esm/router/FixLinks.js.map +0 -1
  571. package/lib/esm/router/HistoryNavigator.js +0 -192
  572. package/lib/esm/router/HistoryNavigator.js.map +0 -1
  573. package/lib/esm/router/Nav.js +0 -26
  574. package/lib/esm/router/Nav.js.map +0 -1
  575. package/lib/esm/router/NestedNavigationContext.js +0 -19
  576. package/lib/esm/router/NestedNavigationContext.js.map +0 -1
  577. package/lib/esm/router/NestedRouterProvider.js +0 -44
  578. package/lib/esm/router/NestedRouterProvider.js.map +0 -1
  579. package/lib/esm/router/PathMatcher.js +0 -159
  580. package/lib/esm/router/PathMatcher.js.map +0 -1
  581. package/lib/esm/router/PathWithParams.js +0 -34
  582. package/lib/esm/router/PathWithParams.js.map +0 -1
  583. package/lib/esm/router/Route404.js +0 -18
  584. package/lib/esm/router/Route404.js.map +0 -1
  585. package/lib/esm/router/RouteComponent.js +0 -32
  586. package/lib/esm/router/RouteComponent.js.map +0 -1
  587. package/lib/esm/router/Router.js +0 -161
  588. package/lib/esm/router/Router.js.map +0 -1
  589. package/lib/esm/router/RouterProvider.js +0 -41
  590. package/lib/esm/router/RouterProvider.js.map +0 -1
  591. package/lib/esm/router/index.js +0 -11
  592. package/lib/esm/router/index.js.map +0 -1
  593. package/lib/esm/router/path.js +0 -140
  594. package/lib/esm/router/path.js.map +0 -1
  595. package/lib/esm/session/TypeRegistry.js +0 -24
  596. package/lib/esm/session/TypeRegistry.js.map +0 -1
  597. package/lib/esm/session/UserSession.js +0 -192
  598. package/lib/esm/session/UserSession.js.map +0 -1
  599. package/lib/esm/session/UserSessionProvider.js +0 -179
  600. package/lib/esm/session/UserSessionProvider.js.map +0 -1
  601. package/lib/esm/session/auth/composable.js +0 -255
  602. package/lib/esm/session/auth/composable.js.map +0 -1
  603. package/lib/esm/session/auth/firebase.js +0 -158
  604. package/lib/esm/session/auth/firebase.js.map +0 -1
  605. package/lib/esm/session/auth/useAuthState.js +0 -46
  606. package/lib/esm/session/auth/useAuthState.js.map +0 -1
  607. package/lib/esm/session/auth/useCurrentTenant.js +0 -63
  608. package/lib/esm/session/auth/useCurrentTenant.js.map +0 -1
  609. package/lib/esm/session/constants.js +0 -3
  610. package/lib/esm/session/constants.js.map +0 -1
  611. package/lib/esm/session/index.js +0 -9
  612. package/lib/esm/session/index.js.map +0 -1
  613. package/lib/esm/session/useUXTracking.js +0 -29
  614. package/lib/esm/session/useUXTracking.js.map +0 -1
  615. package/lib/esm/shell/SplashScreen.js +0 -26
  616. package/lib/esm/shell/SplashScreen.js.map +0 -1
  617. package/lib/esm/shell/VertesiaShell.js +0 -10
  618. package/lib/esm/shell/VertesiaShell.js.map +0 -1
  619. package/lib/esm/shell/apps/AppInstallationProvider.js +0 -13
  620. package/lib/esm/shell/apps/AppInstallationProvider.js.map +0 -1
  621. package/lib/esm/shell/apps/AppProjectSelector.js +0 -36
  622. package/lib/esm/shell/apps/AppProjectSelector.js.map +0 -1
  623. package/lib/esm/shell/apps/StandaloneApp.js +0 -87
  624. package/lib/esm/shell/apps/StandaloneApp.js.map +0 -1
  625. package/lib/esm/shell/apps/index.js +0 -4
  626. package/lib/esm/shell/apps/index.js.map +0 -1
  627. package/lib/esm/shell/index.js +0 -8
  628. package/lib/esm/shell/index.js.map +0 -1
  629. package/lib/esm/shell/login/EnterpriseSigninButton.js +0 -84
  630. package/lib/esm/shell/login/EnterpriseSigninButton.js.map +0 -1
  631. package/lib/esm/shell/login/GitHubSignInButton.js +0 -24
  632. package/lib/esm/shell/login/GitHubSignInButton.js.map +0 -1
  633. package/lib/esm/shell/login/GoogleSignInButton.js +0 -25
  634. package/lib/esm/shell/login/GoogleSignInButton.js.map +0 -1
  635. package/lib/esm/shell/login/InviteAcceptModal.js +0 -62
  636. package/lib/esm/shell/login/InviteAcceptModal.js.map +0 -1
  637. package/lib/esm/shell/login/MicrosoftSigninButton.js +0 -19
  638. package/lib/esm/shell/login/MicrosoftSigninButton.js.map +0 -1
  639. package/lib/esm/shell/login/PreviewIcon.js +0 -23
  640. package/lib/esm/shell/login/PreviewIcon.js.map +0 -1
  641. package/lib/esm/shell/login/SignInModal.js +0 -9
  642. package/lib/esm/shell/login/SignInModal.js.map +0 -1
  643. package/lib/esm/shell/login/SigninScreen.js +0 -64
  644. package/lib/esm/shell/login/SigninScreen.js.map +0 -1
  645. package/lib/esm/shell/login/SignupForm.js +0 -91
  646. package/lib/esm/shell/login/SignupForm.js.map +0 -1
  647. package/lib/esm/shell/login/TerminalLogin.js +0 -208
  648. package/lib/esm/shell/login/TerminalLogin.js.map +0 -1
  649. package/lib/esm/shell/login/UserInfo.js +0 -41
  650. package/lib/esm/shell/login/UserInfo.js.map +0 -1
  651. package/lib/esm/shell/login/UserSessionMenu.js +0 -37
  652. package/lib/esm/shell/login/UserSessionMenu.js.map +0 -1
  653. package/lib/esm/shell/utils.js +0 -6
  654. package/lib/esm/shell/utils.js.map +0 -1
  655. package/lib/esm/widgets/Progress.js +0 -5
  656. package/lib/esm/widgets/Progress.js.map +0 -1
  657. package/lib/esm/widgets/SvgIcon.js +0 -36
  658. package/lib/esm/widgets/SvgIcon.js.map +0 -1
  659. package/lib/esm/widgets/form/Form.js +0 -100
  660. package/lib/esm/widgets/form/Form.js.map +0 -1
  661. package/lib/esm/widgets/form/FormContext.js +0 -31
  662. package/lib/esm/widgets/form/FormContext.js.map +0 -1
  663. package/lib/esm/widgets/form/ManagedObject.js +0 -287
  664. package/lib/esm/widgets/form/ManagedObject.js.map +0 -1
  665. package/lib/esm/widgets/form/fields.js +0 -12
  666. package/lib/esm/widgets/form/fields.js.map +0 -1
  667. package/lib/esm/widgets/form/index.js +0 -7
  668. package/lib/esm/widgets/form/index.js.map +0 -1
  669. package/lib/esm/widgets/form/inputs.js +0 -38
  670. package/lib/esm/widgets/form/inputs.js.map +0 -1
  671. package/lib/esm/widgets/form/schema.js +0 -199
  672. package/lib/esm/widgets/form/schema.js.map +0 -1
  673. package/lib/esm/widgets/index.js +0 -12
  674. package/lib/esm/widgets/index.js.map +0 -1
  675. package/lib/esm/widgets/json-view/JSONCode.js +0 -22
  676. package/lib/esm/widgets/json-view/JSONCode.js.map +0 -1
  677. package/lib/esm/widgets/json-view/JSONDisplay.js +0 -10
  678. package/lib/esm/widgets/json-view/JSONDisplay.js.map +0 -1
  679. package/lib/esm/widgets/json-view/JSONView.js +0 -106
  680. package/lib/esm/widgets/json-view/JSONView.js.map +0 -1
  681. package/lib/esm/widgets/json-view/index.js +0 -4
  682. package/lib/esm/widgets/json-view/index.js.map +0 -1
  683. package/lib/esm/widgets/json-view/types.js +0 -2
  684. package/lib/esm/widgets/json-view/types.js.map +0 -1
  685. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +0 -157
  686. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +0 -1
  687. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.js +0 -56
  688. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.js.map +0 -1
  689. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.test.js +0 -50
  690. package/lib/esm/widgets/markdown/CodeBlockPlaceholder.test.js.map +0 -1
  691. package/lib/esm/widgets/markdown/CodeBlockRendering.js +0 -38
  692. package/lib/esm/widgets/markdown/CodeBlockRendering.js.map +0 -1
  693. package/lib/esm/widgets/markdown/MarkdownImage.js +0 -41
  694. package/lib/esm/widgets/markdown/MarkdownImage.js.map +0 -1
  695. package/lib/esm/widgets/markdown/MarkdownLink.js +0 -46
  696. package/lib/esm/widgets/markdown/MarkdownLink.js.map +0 -1
  697. package/lib/esm/widgets/markdown/MarkdownRenderer.js +0 -126
  698. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +0 -1
  699. package/lib/esm/widgets/markdown/MermaidDiagram.js +0 -73
  700. package/lib/esm/widgets/markdown/MermaidDiagram.js.map +0 -1
  701. package/lib/esm/widgets/markdown/codeBlockHandlers.js +0 -330
  702. package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +0 -1
  703. package/lib/esm/widgets/markdown/codeBlockHandlers.test.js +0 -206
  704. package/lib/esm/widgets/markdown/codeBlockHandlers.test.js.map +0 -1
  705. package/lib/esm/widgets/markdown/index.js +0 -11
  706. package/lib/esm/widgets/markdown/index.js.map +0 -1
  707. package/lib/esm/widgets/markdown/useArtifactContent.js +0 -174
  708. package/lib/esm/widgets/markdown/useArtifactContent.js.map +0 -1
  709. package/lib/esm/widgets/markdown/useResolvedUrl.js +0 -175
  710. package/lib/esm/widgets/markdown/useResolvedUrl.js.map +0 -1
  711. package/lib/esm/widgets/monacoEditor/MonacoEditor.js +0 -140
  712. package/lib/esm/widgets/monacoEditor/MonacoEditor.js.map +0 -1
  713. package/lib/esm/widgets/monacoEditor/index.js +0 -2
  714. package/lib/esm/widgets/monacoEditor/index.js.map +0 -1
  715. package/lib/esm/widgets/popover/Popover.js +0 -73
  716. package/lib/esm/widgets/popover/Popover.js.map +0 -1
  717. package/lib/esm/widgets/popover/context.js +0 -7
  718. package/lib/esm/widgets/popover/context.js.map +0 -1
  719. package/lib/esm/widgets/popover/index.js +0 -3
  720. package/lib/esm/widgets/popover/index.js.map +0 -1
  721. package/lib/esm/widgets/popover/slots.js +0 -22
  722. package/lib/esm/widgets/popover/slots.js.map +0 -1
  723. package/lib/esm/widgets/properties/PropertiesView.js +0 -8
  724. package/lib/esm/widgets/properties/PropertiesView.js.map +0 -1
  725. package/lib/esm/widgets/properties/index.js +0 -2
  726. package/lib/esm/widgets/properties/index.js.map +0 -1
  727. package/lib/esm/widgets/schema-editor/ManagedSchema.js +0 -300
  728. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +0 -1
  729. package/lib/esm/widgets/schema-editor/editor/Editable.js +0 -110
  730. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +0 -1
  731. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js +0 -8
  732. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js.map +0 -1
  733. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +0 -81
  734. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +0 -1
  735. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +0 -7
  736. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +0 -1
  737. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js +0 -9
  738. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js.map +0 -1
  739. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +0 -84
  740. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +0 -1
  741. package/lib/esm/widgets/schema-editor/index.js +0 -7
  742. package/lib/esm/widgets/schema-editor/index.js.map +0 -1
  743. package/lib/esm/widgets/schema-editor/json-schema4-utils.js +0 -188
  744. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +0 -1
  745. package/lib/esm/widgets/schema-editor/type-signature.js +0 -30
  746. package/lib/esm/widgets/schema-editor/type-signature.js.map +0 -1
  747. package/lib/esm/widgets/upload/DropZone.js +0 -175
  748. package/lib/esm/widgets/upload/DropZone.js.map +0 -1
  749. package/lib/esm/widgets/upload/UploadResultCategory.js +0 -19
  750. package/lib/esm/widgets/upload/UploadResultCategory.js.map +0 -1
  751. package/lib/esm/widgets/upload/UploadSummary.js +0 -30
  752. package/lib/esm/widgets/upload/UploadSummary.js.map +0 -1
  753. package/lib/esm/widgets/upload/index.js +0 -4
  754. package/lib/esm/widgets/upload/index.js.map +0 -1
  755. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js +0 -11
  756. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js.map +0 -1
  757. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js +0 -8
  758. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js.map +0 -1
  759. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js +0 -11
  760. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js.map +0 -1
  761. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js +0 -11
  762. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js.map +0 -1
  763. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js +0 -9
  764. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js.map +0 -1
  765. package/lib/esm/widgets/xml-viewer/components/Elements/index.js +0 -36
  766. package/lib/esm/widgets/xml-viewer/components/Elements/index.js.map +0 -1
  767. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js +0 -5
  768. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js.map +0 -1
  769. package/lib/esm/widgets/xml-viewer/components/Tag/index.js +0 -13
  770. package/lib/esm/widgets/xml-viewer/components/Tag/index.js.map +0 -1
  771. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js +0 -13
  772. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js.map +0 -1
  773. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js +0 -39
  774. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +0 -1
  775. package/lib/esm/widgets/xml-viewer/components/types.js +0 -2
  776. package/lib/esm/widgets/xml-viewer/components/types.js.map +0 -1
  777. package/lib/esm/widgets/xml-viewer/constants/index.js +0 -27
  778. package/lib/esm/widgets/xml-viewer/constants/index.js.map +0 -1
  779. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js +0 -10
  780. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js.map +0 -1
  781. package/lib/esm/widgets/xml-viewer/helpers/index.js +0 -40
  782. package/lib/esm/widgets/xml-viewer/helpers/index.js.map +0 -1
  783. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js +0 -22
  784. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js.map +0 -1
  785. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js +0 -31
  786. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js.map +0 -1
  787. package/lib/esm/widgets/xml-viewer/index.js +0 -3
  788. package/lib/esm/widgets/xml-viewer/index.js.map +0 -1
  789. package/lib/esm/widgets/xml-viewer/types/index.js +0 -2
  790. package/lib/esm/widgets/xml-viewer/types/index.js.map +0 -1
  791. package/lib/tsconfig.tsbuildinfo +0 -1
  792. package/lib/types/core/components/Avatar.d.ts +0 -16
  793. package/lib/types/core/components/Avatar.d.ts.map +0 -1
  794. package/lib/types/core/components/Badge.d.ts +0 -21
  795. package/lib/types/core/components/Badge.d.ts.map +0 -1
  796. package/lib/types/core/components/Button.d.ts +0 -14
  797. package/lib/types/core/components/Button.d.ts.map +0 -1
  798. package/lib/types/core/components/Center.d.ts +0 -8
  799. package/lib/types/core/components/Center.d.ts.map +0 -1
  800. package/lib/types/core/components/ComboBox.d.ts +0 -124
  801. package/lib/types/core/components/ComboBox.d.ts.map +0 -1
  802. package/lib/types/core/components/ConfirmModal.d.ts +0 -11
  803. package/lib/types/core/components/ConfirmModal.d.ts.map +0 -1
  804. package/lib/types/core/components/DeleteModal.d.ts +0 -11
  805. package/lib/types/core/components/DeleteModal.d.ts.map +0 -1
  806. package/lib/types/core/components/Divider.d.ts +0 -6
  807. package/lib/types/core/components/Divider.d.ts.map +0 -1
  808. package/lib/types/core/components/Dropdown.d.ts +0 -15
  809. package/lib/types/core/components/Dropdown.d.ts.map +0 -1
  810. package/lib/types/core/components/DropdownList.d.ts +0 -13
  811. package/lib/types/core/components/DropdownList.d.ts.map +0 -1
  812. package/lib/types/core/components/EmptyCollection.d.ts +0 -9
  813. package/lib/types/core/components/EmptyCollection.d.ts.map +0 -1
  814. package/lib/types/core/components/FileUpload.d.ts +0 -29
  815. package/lib/types/core/components/FileUpload.d.ts.map +0 -1
  816. package/lib/types/core/components/FormItem.d.ts +0 -13
  817. package/lib/types/core/components/FormItem.d.ts.map +0 -1
  818. package/lib/types/core/components/InputList.d.ts +0 -12
  819. package/lib/types/core/components/InputList.d.ts.map +0 -1
  820. package/lib/types/core/components/Link.d.ts +0 -7
  821. package/lib/types/core/components/Link.d.ts.map +0 -1
  822. package/lib/types/core/components/MenuList.d.ts +0 -14
  823. package/lib/types/core/components/MenuList.d.ts.map +0 -1
  824. package/lib/types/core/components/MessageBox.d.ts +0 -36
  825. package/lib/types/core/components/MessageBox.d.ts.map +0 -1
  826. package/lib/types/core/components/Modal.d.ts +0 -30
  827. package/lib/types/core/components/Modal.d.ts.map +0 -1
  828. package/lib/types/core/components/NumberInput.d.ts +0 -16
  829. package/lib/types/core/components/NumberInput.d.ts.map +0 -1
  830. package/lib/types/core/components/Overlay.d.ts +0 -25
  831. package/lib/types/core/components/Overlay.d.ts.map +0 -1
  832. package/lib/types/core/components/Panel.d.ts +0 -11
  833. package/lib/types/core/components/Panel.d.ts.map +0 -1
  834. package/lib/types/core/components/Portal.d.ts +0 -6
  835. package/lib/types/core/components/Portal.d.ts.map +0 -1
  836. package/lib/types/core/components/RadioGroup.d.ts +0 -26
  837. package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
  838. package/lib/types/core/components/SelectBox.d.ts +0 -36
  839. package/lib/types/core/components/SelectBox.d.ts.map +0 -1
  840. package/lib/types/core/components/SelectList.d.ts +0 -19
  841. package/lib/types/core/components/SelectList.d.ts.map +0 -1
  842. package/lib/types/core/components/SelectStack.d.ts +0 -13
  843. package/lib/types/core/components/SelectStack.d.ts.map +0 -1
  844. package/lib/types/core/components/SidePanel.d.ts +0 -11
  845. package/lib/types/core/components/SidePanel.d.ts.map +0 -1
  846. package/lib/types/core/components/Spinner.d.ts +0 -7
  847. package/lib/types/core/components/Spinner.d.ts.map +0 -1
  848. package/lib/types/core/components/Switch.d.ts +0 -11
  849. package/lib/types/core/components/Switch.d.ts.map +0 -1
  850. package/lib/types/core/components/TagsInput.d.ts +0 -16
  851. package/lib/types/core/components/TagsInput.d.ts.map +0 -1
  852. package/lib/types/core/components/index.d.ts +0 -40
  853. package/lib/types/core/components/index.d.ts.map +0 -1
  854. package/lib/types/core/components/libs/utils.d.ts +0 -3
  855. package/lib/types/core/components/libs/utils.d.ts.map +0 -1
  856. package/lib/types/core/components/libs/visuallyHidden.d.ts +0 -7
  857. package/lib/types/core/components/libs/visuallyHidden.d.ts.map +0 -1
  858. package/lib/types/core/components/popup/Popup.d.ts +0 -26
  859. package/lib/types/core/components/popup/Popup.d.ts.map +0 -1
  860. package/lib/types/core/components/popup/PopupController.d.ts +0 -41
  861. package/lib/types/core/components/popup/PopupController.d.ts.map +0 -1
  862. package/lib/types/core/components/popup/index.d.ts +0 -4
  863. package/lib/types/core/components/popup/index.d.ts.map +0 -1
  864. package/lib/types/core/components/popup/position.d.ts +0 -59
  865. package/lib/types/core/components/popup/position.d.ts.map +0 -1
  866. package/lib/types/core/components/popup/utils.d.ts +0 -30
  867. package/lib/types/core/components/popup/utils.d.ts.map +0 -1
  868. package/lib/types/core/components/shadcn/breadcrumb.d.ts +0 -15
  869. package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +0 -1
  870. package/lib/types/core/components/shadcn/button.d.ts +0 -27
  871. package/lib/types/core/components/shadcn/button.d.ts.map +0 -1
  872. package/lib/types/core/components/shadcn/calendar.d.ts +0 -11
  873. package/lib/types/core/components/shadcn/calendar.d.ts.map +0 -1
  874. package/lib/types/core/components/shadcn/card.d.ts +0 -9
  875. package/lib/types/core/components/shadcn/card.d.ts.map +0 -1
  876. package/lib/types/core/components/shadcn/checkbox.d.ts +0 -5
  877. package/lib/types/core/components/shadcn/checkbox.d.ts.map +0 -1
  878. package/lib/types/core/components/shadcn/command.d.ts +0 -17
  879. package/lib/types/core/components/shadcn/command.d.ts.map +0 -1
  880. package/lib/types/core/components/shadcn/dialog.d.ts +0 -38
  881. package/lib/types/core/components/shadcn/dialog.d.ts.map +0 -1
  882. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +0 -9
  883. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts.map +0 -1
  884. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts +0 -7
  885. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts.map +0 -1
  886. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts +0 -6
  887. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +0 -1
  888. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts +0 -9
  889. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +0 -1
  890. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts +0 -6
  891. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts.map +0 -1
  892. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts +0 -6
  893. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts.map +0 -1
  894. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts +0 -5
  895. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts.map +0 -1
  896. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts +0 -12
  897. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts.map +0 -1
  898. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts +0 -11
  899. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts.map +0 -1
  900. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts +0 -13
  901. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts.map +0 -1
  902. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts +0 -14
  903. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +0 -1
  904. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts +0 -2
  905. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts.map +0 -1
  906. package/lib/types/core/components/shadcn/filters/filterBar.d.ts +0 -20
  907. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +0 -1
  908. package/lib/types/core/components/shadcn/filters/filters.d.ts +0 -10
  909. package/lib/types/core/components/shadcn/filters/filters.d.ts.map +0 -1
  910. package/lib/types/core/components/shadcn/filters/index.d.ts +0 -6
  911. package/lib/types/core/components/shadcn/filters/index.d.ts.map +0 -1
  912. package/lib/types/core/components/shadcn/filters/types.d.ts +0 -35
  913. package/lib/types/core/components/shadcn/filters/types.d.ts.map +0 -1
  914. package/lib/types/core/components/shadcn/heading.d.ts +0 -6
  915. package/lib/types/core/components/shadcn/heading.d.ts.map +0 -1
  916. package/lib/types/core/components/shadcn/index.d.ts +0 -23
  917. package/lib/types/core/components/shadcn/index.d.ts.map +0 -1
  918. package/lib/types/core/components/shadcn/input.d.ts +0 -17
  919. package/lib/types/core/components/shadcn/input.d.ts.map +0 -1
  920. package/lib/types/core/components/shadcn/label.d.ts +0 -10
  921. package/lib/types/core/components/shadcn/label.d.ts.map +0 -1
  922. package/lib/types/core/components/shadcn/popover.d.ts +0 -24
  923. package/lib/types/core/components/shadcn/popover.d.ts.map +0 -1
  924. package/lib/types/core/components/shadcn/resizeable.d.ts +0 -9
  925. package/lib/types/core/components/shadcn/resizeable.d.ts.map +0 -1
  926. package/lib/types/core/components/shadcn/selectBox.d.ts +0 -36
  927. package/lib/types/core/components/shadcn/selectBox.d.ts.map +0 -1
  928. package/lib/types/core/components/shadcn/separator.d.ts +0 -6
  929. package/lib/types/core/components/shadcn/separator.d.ts.map +0 -1
  930. package/lib/types/core/components/shadcn/tabs.d.ts +0 -36
  931. package/lib/types/core/components/shadcn/tabs.d.ts.map +0 -1
  932. package/lib/types/core/components/shadcn/text.d.ts +0 -11
  933. package/lib/types/core/components/shadcn/text.d.ts.map +0 -1
  934. package/lib/types/core/components/shadcn/textarea.d.ts +0 -4
  935. package/lib/types/core/components/shadcn/textarea.d.ts.map +0 -1
  936. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts +0 -15
  937. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts.map +0 -1
  938. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +0 -10
  939. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +0 -1
  940. package/lib/types/core/components/shadcn/tooltip.d.ts +0 -21
  941. package/lib/types/core/components/shadcn/tooltip.d.ts.map +0 -1
  942. package/lib/types/core/components/styles.d.ts +0 -7
  943. package/lib/types/core/components/styles.d.ts.map +0 -1
  944. package/lib/types/core/components/table/index.d.ts +0 -19
  945. package/lib/types/core/components/table/index.d.ts.map +0 -1
  946. package/lib/types/core/components/tabs/Tabs.d.ts +0 -25
  947. package/lib/types/core/components/tabs/Tabs.d.ts.map +0 -1
  948. package/lib/types/core/components/tabs/TabsContext.d.ts +0 -17
  949. package/lib/types/core/components/tabs/TabsContext.d.ts.map +0 -1
  950. package/lib/types/core/components/tabs/index.d.ts +0 -3
  951. package/lib/types/core/components/tabs/index.d.ts.map +0 -1
  952. package/lib/types/core/components/toast/NotificationPanel.d.ts +0 -8
  953. package/lib/types/core/components/toast/NotificationPanel.d.ts.map +0 -1
  954. package/lib/types/core/components/toast/ToastContext.d.ts +0 -6
  955. package/lib/types/core/components/toast/ToastContext.d.ts.map +0 -1
  956. package/lib/types/core/components/toast/ToastProps.d.ts +0 -7
  957. package/lib/types/core/components/toast/ToastProps.d.ts.map +0 -1
  958. package/lib/types/core/components/toast/ToastProvider.d.ts +0 -6
  959. package/lib/types/core/components/toast/ToastProvider.d.ts.map +0 -1
  960. package/lib/types/core/components/toast/index.d.ts +0 -3
  961. package/lib/types/core/components/toast/index.d.ts.map +0 -1
  962. package/lib/types/core/hooks/CompositeState.d.ts +0 -137
  963. package/lib/types/core/hooks/CompositeState.d.ts.map +0 -1
  964. package/lib/types/core/hooks/PortalContainerProvider.d.ts +0 -7
  965. package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +0 -1
  966. package/lib/types/core/hooks/SharedState.d.ts +0 -10
  967. package/lib/types/core/hooks/SharedState.d.ts.map +0 -1
  968. package/lib/types/core/hooks/index.d.ts +0 -16
  969. package/lib/types/core/hooks/index.d.ts.map +0 -1
  970. package/lib/types/core/hooks/useClickOutside.d.ts +0 -8
  971. package/lib/types/core/hooks/useClickOutside.d.ts.map +0 -1
  972. package/lib/types/core/hooks/useCopyToClipboard.d.ts +0 -5
  973. package/lib/types/core/hooks/useCopyToClipboard.d.ts.map +0 -1
  974. package/lib/types/core/hooks/useDarkMode.d.ts +0 -2
  975. package/lib/types/core/hooks/useDarkMode.d.ts.map +0 -1
  976. package/lib/types/core/hooks/useDebounce.d.ts +0 -2
  977. package/lib/types/core/hooks/useDebounce.d.ts.map +0 -1
  978. package/lib/types/core/hooks/useEventSource.d.ts +0 -2
  979. package/lib/types/core/hooks/useEventSource.d.ts.map +0 -1
  980. package/lib/types/core/hooks/useFetch.d.ts +0 -24
  981. package/lib/types/core/hooks/useFetch.d.ts.map +0 -1
  982. package/lib/types/core/hooks/useFlag.d.ts +0 -9
  983. package/lib/types/core/hooks/useFlag.d.ts.map +0 -1
  984. package/lib/types/core/hooks/useIntersectionObserver.d.ts +0 -14
  985. package/lib/types/core/hooks/useIntersectionObserver.d.ts.map +0 -1
  986. package/lib/types/core/hooks/useIsFistRendering.d.ts +0 -2
  987. package/lib/types/core/hooks/useIsFistRendering.d.ts.map +0 -1
  988. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts +0 -4
  989. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts.map +0 -1
  990. package/lib/types/core/hooks/useScrollableSearch.d.ts +0 -82
  991. package/lib/types/core/hooks/useScrollableSearch.d.ts.map +0 -1
  992. package/lib/types/core/hooks/useSharedValue.d.ts +0 -12
  993. package/lib/types/core/hooks/useSharedValue.d.ts.map +0 -1
  994. package/lib/types/core/index.d.ts +0 -4
  995. package/lib/types/core/index.d.ts.map +0 -1
  996. package/lib/types/core/utils/cn.d.ts +0 -3
  997. package/lib/types/core/utils/cn.d.ts.map +0 -1
  998. package/lib/types/core/utils/index.d.ts +0 -2
  999. package/lib/types/core/utils/index.d.ts.map +0 -1
  1000. package/lib/types/env/index.d.ts +0 -76
  1001. package/lib/types/env/index.d.ts.map +0 -1
  1002. package/lib/types/features/activity-doc/ActivityDoc.d.ts +0 -14
  1003. package/lib/types/features/activity-doc/ActivityDoc.d.ts.map +0 -1
  1004. package/lib/types/features/activity-doc/index.d.ts +0 -2
  1005. package/lib/types/features/activity-doc/index.d.ts.map +0 -1
  1006. package/lib/types/features/agent/PayloadBuilder.d.ts +0 -69
  1007. package/lib/types/features/agent/PayloadBuilder.d.ts.map +0 -1
  1008. package/lib/types/features/agent/chat/AgentChart.d.ts +0 -75
  1009. package/lib/types/features/agent/chat/AgentChart.d.ts.map +0 -1
  1010. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +0 -38
  1011. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts.map +0 -1
  1012. package/lib/types/features/agent/chat/AskUserWidget.d.ts +0 -84
  1013. package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +0 -1
  1014. package/lib/types/features/agent/chat/ImageLightbox.d.ts +0 -18
  1015. package/lib/types/features/agent/chat/ImageLightbox.d.ts.map +0 -1
  1016. package/lib/types/features/agent/chat/JumpingDots.d.ts +0 -7
  1017. package/lib/types/features/agent/chat/JumpingDots.d.ts.map +0 -1
  1018. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +0 -64
  1019. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +0 -1
  1020. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +0 -29
  1021. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +0 -1
  1022. package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts +0 -10
  1023. package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +0 -1
  1024. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +0 -27
  1025. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +0 -1
  1026. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +0 -11
  1027. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts.map +0 -1
  1028. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +0 -18
  1029. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +0 -1
  1030. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +0 -61
  1031. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +0 -1
  1032. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +0 -30
  1033. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +0 -1
  1034. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +0 -15
  1035. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts.map +0 -1
  1036. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +0 -9
  1037. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +0 -1
  1038. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +0 -11
  1039. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts.map +0 -1
  1040. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +0 -8
  1041. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts.map +0 -1
  1042. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +0 -10
  1043. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +0 -1
  1044. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +0 -8
  1045. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts.map +0 -1
  1046. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +0 -26
  1047. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +0 -1
  1048. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +0 -12
  1049. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +0 -1
  1050. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +0 -22
  1051. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +0 -1
  1052. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +0 -107
  1053. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +0 -1
  1054. package/lib/types/features/agent/chat/SkillWidgetProvider.d.ts +0 -11
  1055. package/lib/types/features/agent/chat/SkillWidgetProvider.d.ts.map +0 -1
  1056. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +0 -18
  1057. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +0 -1
  1058. package/lib/types/features/agent/chat/VegaLiteChart.d.ts +0 -18
  1059. package/lib/types/features/agent/chat/VegaLiteChart.d.ts.map +0 -1
  1060. package/lib/types/features/agent/chat/WaitingMessages.d.ts +0 -2
  1061. package/lib/types/features/agent/chat/WaitingMessages.d.ts.map +0 -1
  1062. package/lib/types/features/agent/chat/index.d.ts +0 -17
  1063. package/lib/types/features/agent/chat/index.d.ts.map +0 -1
  1064. package/lib/types/features/agent/chat/useArtifactUrlCache.d.ts +0 -28
  1065. package/lib/types/features/agent/chat/useArtifactUrlCache.d.ts.map +0 -1
  1066. package/lib/types/features/agent/createChartTool.d.ts +0 -178
  1067. package/lib/types/features/agent/createChartTool.d.ts.map +0 -1
  1068. package/lib/types/features/agent/examples.d.ts +0 -59
  1069. package/lib/types/features/agent/examples.d.ts.map +0 -1
  1070. package/lib/types/features/agent/index.d.ts +0 -5
  1071. package/lib/types/features/agent/index.d.ts.map +0 -1
  1072. package/lib/types/features/agent/visualization.d.ts +0 -95
  1073. package/lib/types/features/agent/visualization.d.ts.map +0 -1
  1074. package/lib/types/features/errors/PanelErrorBoundary.d.ts +0 -5
  1075. package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +0 -1
  1076. package/lib/types/features/errors/RowErrorBoundary.d.ts +0 -8
  1077. package/lib/types/features/errors/RowErrorBoundary.d.ts.map +0 -1
  1078. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +0 -12
  1079. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts.map +0 -1
  1080. package/lib/types/features/errors/WidgetErrorBoundary.d.ts +0 -5
  1081. package/lib/types/features/errors/WidgetErrorBoundary.d.ts.map +0 -1
  1082. package/lib/types/features/errors/index.d.ts +0 -5
  1083. package/lib/types/features/errors/index.d.ts.map +0 -1
  1084. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +0 -14
  1085. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +0 -1
  1086. package/lib/types/features/facets/CollectionsFacetsNav.d.ts +0 -14
  1087. package/lib/types/features/facets/CollectionsFacetsNav.d.ts.map +0 -1
  1088. package/lib/types/features/facets/DocumentsFacetsNav.d.ts +0 -17
  1089. package/lib/types/features/facets/DocumentsFacetsNav.d.ts.map +0 -1
  1090. package/lib/types/features/facets/EnvironmentFacet.d.ts +0 -10
  1091. package/lib/types/features/facets/EnvironmentFacet.d.ts.map +0 -1
  1092. package/lib/types/features/facets/InteractionsFacetsNav.d.ts +0 -14
  1093. package/lib/types/features/facets/InteractionsFacetsNav.d.ts.map +0 -1
  1094. package/lib/types/features/facets/PromptsFacetsNav.d.ts +0 -15
  1095. package/lib/types/features/facets/PromptsFacetsNav.d.ts.map +0 -1
  1096. package/lib/types/features/facets/RunsFacetsNav.d.ts +0 -20
  1097. package/lib/types/features/facets/RunsFacetsNav.d.ts.map +0 -1
  1098. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts +0 -14
  1099. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts.map +0 -1
  1100. package/lib/types/features/facets/index.d.ts +0 -16
  1101. package/lib/types/features/facets/index.d.ts.map +0 -1
  1102. package/lib/types/features/facets/utils/SearchInterface.d.ts +0 -14
  1103. package/lib/types/features/facets/utils/SearchInterface.d.ts.map +0 -1
  1104. package/lib/types/features/facets/utils/StringFacet.d.ts +0 -11
  1105. package/lib/types/features/facets/utils/StringFacet.d.ts.map +0 -1
  1106. package/lib/types/features/facets/utils/StringListFacet.d.ts +0 -11
  1107. package/lib/types/features/facets/utils/StringListFacet.d.ts.map +0 -1
  1108. package/lib/types/features/facets/utils/TypeFacet.d.ts +0 -16
  1109. package/lib/types/features/facets/utils/TypeFacet.d.ts.map +0 -1
  1110. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts +0 -12
  1111. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts.map +0 -1
  1112. package/lib/types/features/facets/utils/VInteractionFacet.d.ts +0 -15
  1113. package/lib/types/features/facets/utils/VInteractionFacet.d.ts.map +0 -1
  1114. package/lib/types/features/facets/utils/VStringFacet.d.ts +0 -21
  1115. package/lib/types/features/facets/utils/VStringFacet.d.ts.map +0 -1
  1116. package/lib/types/features/facets/utils/VTypeFacet.d.ts +0 -12
  1117. package/lib/types/features/facets/utils/VTypeFacet.d.ts.map +0 -1
  1118. package/lib/types/features/facets/utils/VUserFacet.d.ts +0 -11
  1119. package/lib/types/features/facets/utils/VUserFacet.d.ts.map +0 -1
  1120. package/lib/types/features/facets/utils/utils.d.ts +0 -4
  1121. package/lib/types/features/facets/utils/utils.d.ts.map +0 -1
  1122. package/lib/types/features/index.d.ts +0 -12
  1123. package/lib/types/features/index.d.ts.map +0 -1
  1124. package/lib/types/features/layout/GenericPageNavHeader.d.ts +0 -14
  1125. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +0 -1
  1126. package/lib/types/features/layout/NotFoundView.d.ts +0 -5
  1127. package/lib/types/features/layout/NotFoundView.d.ts.map +0 -1
  1128. package/lib/types/features/layout/index.d.ts +0 -3
  1129. package/lib/types/features/layout/index.d.ts.map +0 -1
  1130. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts +0 -13
  1131. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +0 -1
  1132. package/lib/types/features/magic-pdf/DownloadPopover.d.ts +0 -7
  1133. package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +0 -1
  1134. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts +0 -8
  1135. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts.map +0 -1
  1136. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts +0 -58
  1137. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts.map +0 -1
  1138. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +0 -7
  1139. package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +0 -1
  1140. package/lib/types/features/magic-pdf/index.d.ts +0 -2
  1141. package/lib/types/features/magic-pdf/index.d.ts.map +0 -1
  1142. package/lib/types/features/magic-pdf/types.d.ts +0 -2
  1143. package/lib/types/features/magic-pdf/types.d.ts.map +0 -1
  1144. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts +0 -83
  1145. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts.map +0 -1
  1146. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts +0 -29
  1147. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +0 -1
  1148. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts +0 -19
  1149. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +0 -1
  1150. package/lib/types/features/pdf-viewer/index.d.ts +0 -4
  1151. package/lib/types/features/pdf-viewer/index.d.ts.map +0 -1
  1152. package/lib/types/features/permissions/SecureButton.d.ts +0 -8
  1153. package/lib/types/features/permissions/SecureButton.d.ts.map +0 -1
  1154. package/lib/types/features/permissions/SecureSidebarItem.d.ts +0 -8
  1155. package/lib/types/features/permissions/SecureSidebarItem.d.ts.map +0 -1
  1156. package/lib/types/features/permissions/UserPermissionsProvider.d.ts +0 -21
  1157. package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +0 -1
  1158. package/lib/types/features/permissions/helpers.d.ts +0 -5
  1159. package/lib/types/features/permissions/helpers.d.ts.map +0 -1
  1160. package/lib/types/features/permissions/index.d.ts +0 -5
  1161. package/lib/types/features/permissions/index.d.ts.map +0 -1
  1162. package/lib/types/features/store/collections/BrowseCollectionView.d.ts +0 -7
  1163. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +0 -1
  1164. package/lib/types/features/store/collections/CollectionsTable.d.ts +0 -6
  1165. package/lib/types/features/store/collections/CollectionsTable.d.ts.map +0 -1
  1166. package/lib/types/features/store/collections/CreateCollection.d.ts +0 -13
  1167. package/lib/types/features/store/collections/CreateCollection.d.ts.map +0 -1
  1168. package/lib/types/features/store/collections/EditCollectionView.d.ts +0 -8
  1169. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +0 -1
  1170. package/lib/types/features/store/collections/SelectCollection.d.ts +0 -20
  1171. package/lib/types/features/store/collections/SelectCollection.d.ts.map +0 -1
  1172. package/lib/types/features/store/collections/SharedPropsEditor.d.ts +0 -7
  1173. package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +0 -1
  1174. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts +0 -7
  1175. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +0 -1
  1176. package/lib/types/features/store/collections/index.d.ts +0 -8
  1177. package/lib/types/features/store/collections/index.d.ts.map +0 -1
  1178. package/lib/types/features/store/index.d.ts +0 -4
  1179. package/lib/types/features/store/index.d.ts.map +0 -1
  1180. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +0 -8
  1181. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +0 -1
  1182. package/lib/types/features/store/objects/DocumentSearchResults.d.ts +0 -20
  1183. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +0 -1
  1184. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +0 -33
  1185. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts.map +0 -1
  1186. package/lib/types/features/store/objects/DocumentTable.d.ts +0 -25
  1187. package/lib/types/features/store/objects/DocumentTable.d.ts.map +0 -1
  1188. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +0 -12
  1189. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +0 -1
  1190. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +0 -9
  1191. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +0 -1
  1192. package/lib/types/features/store/objects/components/ContentOverview.d.ts +0 -9
  1193. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +0 -1
  1194. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +0 -18
  1195. package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +0 -1
  1196. package/lib/types/features/store/objects/components/DocumentInput.d.ts +0 -8
  1197. package/lib/types/features/store/objects/components/DocumentInput.d.ts.map +0 -1
  1198. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +0 -9
  1199. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +0 -1
  1200. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +0 -9
  1201. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +0 -1
  1202. package/lib/types/features/store/objects/components/SelectDocument.d.ts +0 -9
  1203. package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +0 -1
  1204. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +0 -9
  1205. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts.map +0 -1
  1206. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +0 -12
  1207. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +0 -1
  1208. package/lib/types/features/store/objects/components/index.d.ts +0 -10
  1209. package/lib/types/features/store/objects/components/index.d.ts.map +0 -1
  1210. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts +0 -30
  1211. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +0 -1
  1212. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +0 -4
  1213. package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +0 -1
  1214. package/lib/types/features/store/objects/index.d.ts +0 -11
  1215. package/lib/types/features/store/objects/index.d.ts.map +0 -1
  1216. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +0 -18
  1217. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +0 -1
  1218. package/lib/types/features/store/objects/layout/documentLayout.d.ts +0 -20
  1219. package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +0 -1
  1220. package/lib/types/features/store/objects/layout/index.d.ts +0 -3
  1221. package/lib/types/features/store/objects/layout/index.d.ts.map +0 -1
  1222. package/lib/types/features/store/objects/layout/renderers.d.ts +0 -3
  1223. package/lib/types/features/store/objects/layout/renderers.d.ts.map +0 -1
  1224. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +0 -52
  1225. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +0 -1
  1226. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +0 -14
  1227. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +0 -1
  1228. package/lib/types/features/store/objects/search/index.d.ts +0 -3
  1229. package/lib/types/features/store/objects/search/index.d.ts.map +0 -1
  1230. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +0 -26
  1231. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +0 -1
  1232. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +0 -28
  1233. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +0 -1
  1234. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +0 -6
  1235. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +0 -1
  1236. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +0 -4
  1237. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +0 -1
  1238. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +0 -4
  1239. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +0 -1
  1240. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +0 -16
  1241. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +0 -1
  1242. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +0 -5
  1243. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +0 -1
  1244. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +0 -4
  1245. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +0 -1
  1246. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +0 -4
  1247. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +0 -1
  1248. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +0 -4
  1249. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +0 -1
  1250. package/lib/types/features/store/objects/selection/actions/index.d.ts +0 -8
  1251. package/lib/types/features/store/objects/selection/actions/index.d.ts.map +0 -1
  1252. package/lib/types/features/store/objects/selection/index.d.ts +0 -5
  1253. package/lib/types/features/store/objects/selection/index.d.ts.map +0 -1
  1254. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +0 -39
  1255. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +0 -1
  1256. package/lib/types/features/store/objects/upload/index.d.ts +0 -4
  1257. package/lib/types/features/store/objects/upload/index.d.ts.map +0 -1
  1258. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +0 -30
  1259. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +0 -1
  1260. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +0 -50
  1261. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +0 -1
  1262. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +0 -6
  1263. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +0 -1
  1264. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +0 -8
  1265. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +0 -1
  1266. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +0 -15
  1267. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +0 -1
  1268. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +0 -8
  1269. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +0 -1
  1270. package/lib/types/features/store/types/SelectContentType.d.ts +0 -11
  1271. package/lib/types/features/store/types/SelectContentType.d.ts.map +0 -1
  1272. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +0 -33
  1273. package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +0 -1
  1274. package/lib/types/features/store/types/TableLayoutEditor.d.ts +0 -9
  1275. package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +0 -1
  1276. package/lib/types/features/store/types/index.d.ts +0 -9
  1277. package/lib/types/features/store/types/index.d.ts.map +0 -1
  1278. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +0 -36
  1279. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts.map +0 -1
  1280. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +0 -11
  1281. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts.map +0 -1
  1282. package/lib/types/features/store/types/search/index.d.ts +0 -3
  1283. package/lib/types/features/store/types/search/index.d.ts.map +0 -1
  1284. package/lib/types/features/user/UserAvatar.d.ts +0 -9
  1285. package/lib/types/features/user/UserAvatar.d.ts.map +0 -1
  1286. package/lib/types/features/user/UserInfo.d.ts +0 -48
  1287. package/lib/types/features/user/UserInfo.d.ts.map +0 -1
  1288. package/lib/types/features/user/index.d.ts +0 -3
  1289. package/lib/types/features/user/index.d.ts.map +0 -1
  1290. package/lib/types/features/utils/index.d.ts +0 -6
  1291. package/lib/types/features/utils/index.d.ts.map +0 -1
  1292. package/lib/types/features/utils/mimeType.d.ts +0 -6
  1293. package/lib/types/features/utils/mimeType.d.ts.map +0 -1
  1294. package/lib/types/features/utils/print.d.ts +0 -10
  1295. package/lib/types/features/utils/print.d.ts.map +0 -1
  1296. package/lib/types/features/utils/rendition.d.ts +0 -4
  1297. package/lib/types/features/utils/rendition.d.ts.map +0 -1
  1298. package/lib/types/features/utils/text.d.ts +0 -3
  1299. package/lib/types/features/utils/text.d.ts.map +0 -1
  1300. package/lib/types/features/utils/workflowStatus.d.ts +0 -10
  1301. package/lib/types/features/utils/workflowStatus.d.ts.map +0 -1
  1302. package/lib/types/layout/AppLayout.d.ts +0 -13
  1303. package/lib/types/layout/AppLayout.d.ts.map +0 -1
  1304. package/lib/types/layout/FullHeightLayout.d.ts +0 -27
  1305. package/lib/types/layout/FullHeightLayout.d.ts.map +0 -1
  1306. package/lib/types/layout/Navbar.d.ts +0 -33
  1307. package/lib/types/layout/Navbar.d.ts.map +0 -1
  1308. package/lib/types/layout/Sidebar.d.ts +0 -31
  1309. package/lib/types/layout/Sidebar.d.ts.map +0 -1
  1310. package/lib/types/layout/SidebarContext.d.ts +0 -9
  1311. package/lib/types/layout/SidebarContext.d.ts.map +0 -1
  1312. package/lib/types/layout/TitleBar.d.ts +0 -6
  1313. package/lib/types/layout/TitleBar.d.ts.map +0 -1
  1314. package/lib/types/layout/index.d.ts +0 -7
  1315. package/lib/types/layout/index.d.ts.map +0 -1
  1316. package/lib/types/router/FixLinks.d.ts +0 -7
  1317. package/lib/types/router/FixLinks.d.ts.map +0 -1
  1318. package/lib/types/router/HistoryNavigator.d.ts +0 -59
  1319. package/lib/types/router/HistoryNavigator.d.ts.map +0 -1
  1320. package/lib/types/router/Nav.d.ts +0 -30
  1321. package/lib/types/router/Nav.d.ts.map +0 -1
  1322. package/lib/types/router/NestedNavigationContext.d.ts +0 -9
  1323. package/lib/types/router/NestedNavigationContext.d.ts.map +0 -1
  1324. package/lib/types/router/NestedRouterProvider.d.ts +0 -14
  1325. package/lib/types/router/NestedRouterProvider.d.ts.map +0 -1
  1326. package/lib/types/router/PathMatcher.d.ts +0 -36
  1327. package/lib/types/router/PathMatcher.d.ts.map +0 -1
  1328. package/lib/types/router/PathWithParams.d.ts +0 -9
  1329. package/lib/types/router/PathWithParams.d.ts.map +0 -1
  1330. package/lib/types/router/Route404.d.ts +0 -4
  1331. package/lib/types/router/Route404.d.ts.map +0 -1
  1332. package/lib/types/router/RouteComponent.d.ts +0 -6
  1333. package/lib/types/router/RouteComponent.d.ts.map +0 -1
  1334. package/lib/types/router/Router.d.ts +0 -74
  1335. package/lib/types/router/Router.d.ts.map +0 -1
  1336. package/lib/types/router/RouterProvider.d.ts +0 -15
  1337. package/lib/types/router/RouterProvider.d.ts.map +0 -1
  1338. package/lib/types/router/index.d.ts +0 -11
  1339. package/lib/types/router/index.d.ts.map +0 -1
  1340. package/lib/types/router/path.d.ts +0 -8
  1341. package/lib/types/router/path.d.ts.map +0 -1
  1342. package/lib/types/session/TypeRegistry.d.ts +0 -10
  1343. package/lib/types/session/TypeRegistry.d.ts.map +0 -1
  1344. package/lib/types/session/UserSession.d.ts +0 -40
  1345. package/lib/types/session/UserSession.d.ts.map +0 -1
  1346. package/lib/types/session/UserSessionProvider.d.ts +0 -7
  1347. package/lib/types/session/UserSessionProvider.d.ts.map +0 -1
  1348. package/lib/types/session/auth/composable.d.ts +0 -26
  1349. package/lib/types/session/auth/composable.d.ts.map +0 -1
  1350. package/lib/types/session/auth/firebase.d.ts +0 -10
  1351. package/lib/types/session/auth/firebase.d.ts.map +0 -1
  1352. package/lib/types/session/auth/useAuthState.d.ts +0 -10
  1353. package/lib/types/session/auth/useAuthState.d.ts.map +0 -1
  1354. package/lib/types/session/auth/useCurrentTenant.d.ts +0 -15
  1355. package/lib/types/session/auth/useCurrentTenant.d.ts.map +0 -1
  1356. package/lib/types/session/constants.d.ts +0 -3
  1357. package/lib/types/session/constants.d.ts.map +0 -1
  1358. package/lib/types/session/index.d.ts +0 -9
  1359. package/lib/types/session/index.d.ts.map +0 -1
  1360. package/lib/types/session/useUXTracking.d.ts +0 -6
  1361. package/lib/types/session/useUXTracking.d.ts.map +0 -1
  1362. package/lib/types/shell/SplashScreen.d.ts +0 -7
  1363. package/lib/types/shell/SplashScreen.d.ts.map +0 -1
  1364. package/lib/types/shell/VertesiaShell.d.ts +0 -10
  1365. package/lib/types/shell/VertesiaShell.d.ts.map +0 -1
  1366. package/lib/types/shell/apps/AppInstallationProvider.d.ts +0 -12
  1367. package/lib/types/shell/apps/AppInstallationProvider.d.ts.map +0 -1
  1368. package/lib/types/shell/apps/AppProjectSelector.d.ts +0 -12
  1369. package/lib/types/shell/apps/AppProjectSelector.d.ts.map +0 -1
  1370. package/lib/types/shell/apps/StandaloneApp.d.ts +0 -23
  1371. package/lib/types/shell/apps/StandaloneApp.d.ts.map +0 -1
  1372. package/lib/types/shell/apps/index.d.ts +0 -4
  1373. package/lib/types/shell/apps/index.d.ts.map +0 -1
  1374. package/lib/types/shell/index.d.ts +0 -8
  1375. package/lib/types/shell/index.d.ts.map +0 -1
  1376. package/lib/types/shell/login/EnterpriseSigninButton.d.ts +0 -6
  1377. package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +0 -1
  1378. package/lib/types/shell/login/GitHubSignInButton.d.ts +0 -6
  1379. package/lib/types/shell/login/GitHubSignInButton.d.ts.map +0 -1
  1380. package/lib/types/shell/login/GoogleSignInButton.d.ts +0 -6
  1381. package/lib/types/shell/login/GoogleSignInButton.d.ts.map +0 -1
  1382. package/lib/types/shell/login/InviteAcceptModal.d.ts +0 -2
  1383. package/lib/types/shell/login/InviteAcceptModal.d.ts.map +0 -1
  1384. package/lib/types/shell/login/MicrosoftSigninButton.d.ts +0 -6
  1385. package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +0 -1
  1386. package/lib/types/shell/login/PreviewIcon.d.ts +0 -6
  1387. package/lib/types/shell/login/PreviewIcon.d.ts.map +0 -1
  1388. package/lib/types/shell/login/SignInModal.d.ts +0 -7
  1389. package/lib/types/shell/login/SignInModal.d.ts.map +0 -1
  1390. package/lib/types/shell/login/SigninScreen.d.ts +0 -9
  1391. package/lib/types/shell/login/SigninScreen.d.ts.map +0 -1
  1392. package/lib/types/shell/login/SignupForm.d.ts +0 -8
  1393. package/lib/types/shell/login/SignupForm.d.ts.map +0 -1
  1394. package/lib/types/shell/login/TerminalLogin.d.ts +0 -2
  1395. package/lib/types/shell/login/TerminalLogin.d.ts.map +0 -1
  1396. package/lib/types/shell/login/UserInfo.d.ts +0 -6
  1397. package/lib/types/shell/login/UserInfo.d.ts.map +0 -1
  1398. package/lib/types/shell/login/UserSessionMenu.d.ts +0 -9
  1399. package/lib/types/shell/login/UserSessionMenu.d.ts.map +0 -1
  1400. package/lib/types/shell/utils.d.ts +0 -2
  1401. package/lib/types/shell/utils.d.ts.map +0 -1
  1402. package/lib/types/widgets/Progress.d.ts +0 -6
  1403. package/lib/types/widgets/Progress.d.ts.map +0 -1
  1404. package/lib/types/widgets/SvgIcon.d.ts +0 -7
  1405. package/lib/types/widgets/SvgIcon.d.ts.map +0 -1
  1406. package/lib/types/widgets/form/Form.d.ts +0 -22
  1407. package/lib/types/widgets/form/Form.d.ts.map +0 -1
  1408. package/lib/types/widgets/form/FormContext.d.ts +0 -20
  1409. package/lib/types/widgets/form/FormContext.d.ts.map +0 -1
  1410. package/lib/types/widgets/form/ManagedObject.d.ts +0 -82
  1411. package/lib/types/widgets/form/ManagedObject.d.ts.map +0 -1
  1412. package/lib/types/widgets/form/fields.d.ts +0 -16
  1413. package/lib/types/widgets/form/fields.d.ts.map +0 -1
  1414. package/lib/types/widgets/form/index.d.ts +0 -7
  1415. package/lib/types/widgets/form/index.d.ts.map +0 -1
  1416. package/lib/types/widgets/form/inputs.d.ts +0 -8
  1417. package/lib/types/widgets/form/inputs.d.ts.map +0 -1
  1418. package/lib/types/widgets/form/schema.d.ts +0 -47
  1419. package/lib/types/widgets/form/schema.d.ts.map +0 -1
  1420. package/lib/types/widgets/index.d.ts +0 -12
  1421. package/lib/types/widgets/index.d.ts.map +0 -1
  1422. package/lib/types/widgets/json-view/JSONCode.d.ts +0 -5
  1423. package/lib/types/widgets/json-view/JSONCode.d.ts.map +0 -1
  1424. package/lib/types/widgets/json-view/JSONDisplay.d.ts +0 -8
  1425. package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +0 -1
  1426. package/lib/types/widgets/json-view/JSONView.d.ts +0 -7
  1427. package/lib/types/widgets/json-view/JSONView.d.ts.map +0 -1
  1428. package/lib/types/widgets/json-view/index.d.ts +0 -5
  1429. package/lib/types/widgets/json-view/index.d.ts.map +0 -1
  1430. package/lib/types/widgets/json-view/types.d.ts +0 -8
  1431. package/lib/types/widgets/json-view/types.d.ts.map +0 -1
  1432. package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts +0 -26
  1433. package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +0 -1
  1434. package/lib/types/widgets/markdown/CodeBlockPlaceholder.d.ts +0 -42
  1435. package/lib/types/widgets/markdown/CodeBlockPlaceholder.d.ts.map +0 -1
  1436. package/lib/types/widgets/markdown/CodeBlockPlaceholder.test.d.ts +0 -2
  1437. package/lib/types/widgets/markdown/CodeBlockPlaceholder.test.d.ts.map +0 -1
  1438. package/lib/types/widgets/markdown/CodeBlockRendering.d.ts +0 -23
  1439. package/lib/types/widgets/markdown/CodeBlockRendering.d.ts.map +0 -1
  1440. package/lib/types/widgets/markdown/MarkdownImage.d.ts +0 -16
  1441. package/lib/types/widgets/markdown/MarkdownImage.d.ts.map +0 -1
  1442. package/lib/types/widgets/markdown/MarkdownLink.d.ts +0 -17
  1443. package/lib/types/widgets/markdown/MarkdownLink.d.ts.map +0 -1
  1444. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts +0 -26
  1445. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +0 -1
  1446. package/lib/types/widgets/markdown/MermaidDiagram.d.ts +0 -23
  1447. package/lib/types/widgets/markdown/MermaidDiagram.d.ts.map +0 -1
  1448. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +0 -66
  1449. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +0 -1
  1450. package/lib/types/widgets/markdown/codeBlockHandlers.test.d.ts +0 -2
  1451. package/lib/types/widgets/markdown/codeBlockHandlers.test.d.ts.map +0 -1
  1452. package/lib/types/widgets/markdown/index.d.ts +0 -11
  1453. package/lib/types/widgets/markdown/index.d.ts.map +0 -1
  1454. package/lib/types/widgets/markdown/useArtifactContent.d.ts +0 -41
  1455. package/lib/types/widgets/markdown/useArtifactContent.d.ts.map +0 -1
  1456. package/lib/types/widgets/markdown/useResolvedUrl.d.ts +0 -38
  1457. package/lib/types/widgets/markdown/useResolvedUrl.d.ts.map +0 -1
  1458. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts +0 -41
  1459. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts.map +0 -1
  1460. package/lib/types/widgets/monacoEditor/index.d.ts +0 -3
  1461. package/lib/types/widgets/monacoEditor/index.d.ts.map +0 -1
  1462. package/lib/types/widgets/popover/Popover.d.ts +0 -38
  1463. package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
  1464. package/lib/types/widgets/popover/context.d.ts +0 -8
  1465. package/lib/types/widgets/popover/context.d.ts.map +0 -1
  1466. package/lib/types/widgets/popover/index.d.ts +0 -3
  1467. package/lib/types/widgets/popover/index.d.ts.map +0 -1
  1468. package/lib/types/widgets/popover/slots.d.ts +0 -5
  1469. package/lib/types/widgets/popover/slots.d.ts.map +0 -1
  1470. package/lib/types/widgets/properties/PropertiesView.d.ts +0 -11
  1471. package/lib/types/widgets/properties/PropertiesView.d.ts.map +0 -1
  1472. package/lib/types/widgets/properties/index.d.ts +0 -2
  1473. package/lib/types/widgets/properties/index.d.ts.map +0 -1
  1474. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +0 -75
  1475. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +0 -1
  1476. package/lib/types/widgets/schema-editor/editor/Editable.d.ts +0 -40
  1477. package/lib/types/widgets/schema-editor/editor/Editable.d.ts.map +0 -1
  1478. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +0 -8
  1479. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +0 -1
  1480. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts +0 -5
  1481. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +0 -1
  1482. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts +0 -4
  1483. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts.map +0 -1
  1484. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts +0 -3
  1485. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts.map +0 -1
  1486. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts +0 -9
  1487. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +0 -1
  1488. package/lib/types/widgets/schema-editor/index.d.ts +0 -7
  1489. package/lib/types/widgets/schema-editor/index.d.ts.map +0 -1
  1490. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts +0 -16
  1491. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts.map +0 -1
  1492. package/lib/types/widgets/schema-editor/type-signature.d.ts +0 -19
  1493. package/lib/types/widgets/schema-editor/type-signature.d.ts.map +0 -1
  1494. package/lib/types/widgets/upload/DropZone.d.ts +0 -41
  1495. package/lib/types/widgets/upload/DropZone.d.ts.map +0 -1
  1496. package/lib/types/widgets/upload/UploadResultCategory.d.ts +0 -26
  1497. package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +0 -1
  1498. package/lib/types/widgets/upload/UploadSummary.d.ts +0 -38
  1499. package/lib/types/widgets/upload/UploadSummary.d.ts.map +0 -1
  1500. package/lib/types/widgets/upload/index.d.ts +0 -4
  1501. package/lib/types/widgets/upload/index.d.ts.map +0 -1
  1502. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts +0 -6
  1503. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts.map +0 -1
  1504. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts +0 -8
  1505. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts.map +0 -1
  1506. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts +0 -5
  1507. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts.map +0 -1
  1508. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts +0 -9
  1509. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts.map +0 -1
  1510. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts +0 -8
  1511. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts.map +0 -1
  1512. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts +0 -8
  1513. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts.map +0 -1
  1514. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts +0 -2
  1515. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts.map +0 -1
  1516. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts +0 -13
  1517. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts.map +0 -1
  1518. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts +0 -8
  1519. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts.map +0 -1
  1520. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts +0 -3
  1521. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts.map +0 -1
  1522. package/lib/types/widgets/xml-viewer/components/types.d.ts +0 -104
  1523. package/lib/types/widgets/xml-viewer/components/types.d.ts.map +0 -1
  1524. package/lib/types/widgets/xml-viewer/constants/index.d.ts +0 -27
  1525. package/lib/types/widgets/xml-viewer/constants/index.d.ts.map +0 -1
  1526. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts +0 -4
  1527. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts.map +0 -1
  1528. package/lib/types/widgets/xml-viewer/helpers/index.d.ts +0 -13
  1529. package/lib/types/widgets/xml-viewer/helpers/index.d.ts.map +0 -1
  1530. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts +0 -15
  1531. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts.map +0 -1
  1532. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts +0 -10
  1533. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +0 -1
  1534. package/lib/types/widgets/xml-viewer/index.d.ts +0 -3
  1535. package/lib/types/widgets/xml-viewer/index.d.ts.map +0 -1
  1536. package/lib/types/widgets/xml-viewer/types/index.d.ts +0 -16
  1537. package/lib/types/widgets/xml-viewer/types/index.d.ts.map +0 -1
  1538. package/lib/vertesia-ui-core.js +0 -2
  1539. package/lib/vertesia-ui-core.js.map +0 -1
  1540. package/lib/vertesia-ui-env.js +0 -2
  1541. package/lib/vertesia-ui-env.js.map +0 -1
  1542. package/lib/vertesia-ui-features.js +0 -2
  1543. package/lib/vertesia-ui-features.js.map +0 -1
  1544. package/lib/vertesia-ui-layout.js +0 -2
  1545. package/lib/vertesia-ui-layout.js.map +0 -1
  1546. package/lib/vertesia-ui-router.js +0 -2
  1547. package/lib/vertesia-ui-router.js.map +0 -1
  1548. package/lib/vertesia-ui-session.js +0 -2
  1549. package/lib/vertesia-ui-session.js.map +0 -1
  1550. package/lib/vertesia-ui-shell.js +0 -2
  1551. package/lib/vertesia-ui-shell.js.map +0 -1
  1552. package/lib/vertesia-ui-widgets.js +0 -2
  1553. package/lib/vertesia-ui-widgets.js.map +0 -1
  1554. package/src/core/components/Button.tsx +0 -63
  1555. package/src/core/components/Modal.tsx +0 -144
  1556. package/src/core/components/SelectBox.tsx +0 -188
  1557. package/src/core/components/tabs/Tabs.tsx +0 -132
  1558. package/src/core/components/tabs/TabsContext.ts +0 -25
  1559. package/src/core/components/tabs/index.ts +0 -2
  1560. /package/src/core/components/{MessageBox.tsx → shadcn/MessageBox.tsx} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"vertesia-ui-shell.js","sources":["esm/shell/login/InviteAcceptModal.js","esm/shell/login/EnterpriseSigninButton.js","esm/shell/login/GitHubSignInButton.js","esm/shell/login/GoogleSignInButton.js","esm/shell/login/MicrosoftSigninButton.js","esm/shell/login/SignupForm.js","esm/shell/login/SigninScreen.js","esm/shell/login/TerminalLogin.js","esm/shell/login/SignInModal.js","esm/shell/login/UserInfo.js","esm/shell/login/UserSessionMenu.js","esm/shell/utils.js","esm/shell/SplashScreen.js","esm/shell/VertesiaShell.js","esm/shell/apps/AppInstallationProvider.js","esm/shell/apps/AppProjectSelector.js","esm/shell/apps/StandaloneApp.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button, VModal, VModalBody, VModalTitle } from \"@vertesia/ui/core\";\nimport { useEffect, useState } from \"react\";\nimport { useUserSession } from \"@vertesia/ui/session\";\nexport function InviteAcceptModal() {\n const session = useUserSession();\n const { client, account } = session;\n const [showModal, setShowModal] = useState(false);\n const [invites, setInvites] = useState([]);\n useEffect(() => {\n client.account.listInvites().then(invites => {\n if (invites.length > 0) {\n // Filter out legacy invites that do not have account data\n const notLegacyInvites = invites.filter(i => i.data.account);\n if (notLegacyInvites.length === 0) {\n console.log(\"No valid invites found, closing modal\");\n return;\n }\n // If we have valid invites, show the modal\n console.log(\"Found valid invites\", notLegacyInvites.length);\n setShowModal(true);\n setInvites(notLegacyInvites);\n }\n else {\n console.log(\"No invites found, closing modal\");\n setShowModal(false);\n }\n }).catch(err => {\n console.error(\"Error fetching invites\", err);\n });\n }, [account?.id]);\n const closeModal = () => setShowModal(false);\n const accept = async (invite) => {\n await client.account.acceptInvite(invite.id);\n await session.fetchAccounts();\n const remainingInvites = invites.filter(i => i.id !== invite.id);\n const notLegacyInvites = remainingInvites.filter(i => i.data.account);\n if (notLegacyInvites.length > 0) {\n setInvites(notLegacyInvites);\n }\n else {\n closeModal();\n }\n };\n const reject = async (invite) => {\n await client.account.rejectInvite(invite.id);\n const remainingInvites = invites.filter(i => i.id !== invite.id);\n setInvites(remainingInvites);\n if (remainingInvites.length === 0) {\n closeModal();\n }\n };\n const inviteList = invites.map(invite => {\n if (!invite.data.account) {\n console.warn(\"Invite has no account data\", invite);\n return null; // Skip rendering this invite\n }\n return (_jsxs(\"div\", { className: \"flex flex-row w-full justify-between border rounded-sm px-2 py-2 \", children: [_jsxs(\"div\", { className: \"flex flex-col\", children: [_jsx(\"div\", { className: \"w-full font-semibold\", children: invite.data.account.name ?? invite.data.account }), invite.data.project && _jsxs(\"div\", { className: \"w-full text-base\", children: [\"- \", invite.data.project.name] }), _jsxs(\"div\", { className: \"text-xs\", children: [\"Role: \", invite.data.role] }), invite.data.invited_by && _jsxs(\"div\", { className: \"text-xs\", children: [\"by \", invite.data.invited_by.name ?? invite.data.invited_by] })] }), _jsxs(\"div\", { className: \"flex flex-col gap-4\", children: [_jsx(Button, { size: 'xs', onClick: () => accept(invite), children: \"Accept\" }), \" \", _jsx(Button, { size: 'xs', variant: \"secondary\", onClick: () => reject(invite), children: \"Reject\" })] })] }, invite.id));\n });\n return (_jsx(\"div\", { children: _jsxs(VModal, { isOpen: showModal, onClose: closeModal, children: [_jsx(VModalTitle, { children: \"Review Invites\" }), _jsxs(VModalBody, { children: [_jsx(\"div\", { className: \"text-sm pb-4\", children: \"You have received the following invites to join other accounts. Please review and accept or declined them.\" }), inviteList] })] }) }));\n}\n//# sourceMappingURL=InviteAcceptModal.js.map","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button, Input, Spinner, useToast } from \"@vertesia/ui/core\";\nimport { Env } from \"@vertesia/ui/env\";\nimport { getFirebaseAuth, setFirebaseTenant, useUXTracking } from \"@vertesia/ui/session\";\nimport { GoogleAuthProvider, OAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { useState } from \"react\";\nfunction getProvider(redirectTo) {\n if (!Env.firebase) {\n throw new Error(\"Firebase configuration is not available in the environment\");\n }\n const providerType = Env.firebase.providerType;\n switch (providerType) {\n case \"oidc\":\n return new OAuthProvider(\"oidc.main\");\n case \"google\": {\n let redirectPath = redirectTo || window.location.pathname || '/';\n if (redirectPath[0] !== '/') {\n redirectPath = '/' + redirectPath;\n }\n const provider = new GoogleAuthProvider();\n provider.addScope('profile');\n provider.addScope('email');\n provider.setCustomParameters({\n prompt: 'select_account',\n redirect_uri: window.location.origin + redirectPath\n });\n return provider;\n }\n case \"microsoft\":\n return new OAuthProvider(\"microsoft.com\");\n case \"github\":\n return new OAuthProvider(\"github.com\");\n default:\n return new OAuthProvider(\"oidc.main\");\n }\n}\nexport default function EnterpriseSigninButton({ redirectTo }) {\n const [isLoading, setIsLoading] = useState(false);\n const { trackEvent } = useUXTracking();\n const [email, setEmail] = useState(\"\");\n const toast = useToast();\n const signIn = async () => {\n if (!email)\n return;\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n if (!emailRegex.test(email)) {\n toast({\n title: \"Invalid email address\",\n status: \"error\",\n duration: 5000,\n });\n return;\n }\n // Env.firebase.tenantEmail = email;\n setIsLoading(true);\n setFirebaseTenant(email).then((data) => {\n if (!data) {\n toast({\n title: \"Tenant not found\",\n status: \"error\",\n duration: 5000,\n });\n setIsLoading(false);\n return;\n }\n localStorage.setItem(\"tenantName\", data.name ?? \"\");\n const provider = getProvider(redirectTo);\n trackEvent(\"enterprise_signin\", {\n firebaseTenantName: data.name,\n });\n Env.logger.info('Enterprise single sign-in', {\n vertesia: {\n email: email,\n firebaseTenantName: data.name,\n firebaseTenantId: data.firebaseTenantId,\n },\n });\n signInWithRedirect(getFirebaseAuth(), provider);\n setIsLoading(false);\n });\n };\n return (_jsxs(_Fragment, { children: [_jsx(Input, { value: email, onChange: setEmail, placeholder: \"Enter your enterprise email\", type: \"email\" }), isLoading ? (_jsx(\"div\", { className: \"w-full flex justify-center\", children: _jsx(Spinner, {}) })) : (_jsx(Button, { variant: \"outline\", onClick: signIn, className: \"w-full mt-2 py-4 flex rounded-lg hover:shadow-sm transition duration-150 text-center\", children: _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with Enterprise SSO\" }) }))] }));\n}\n//# sourceMappingURL=EnterpriseSigninButton.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { GithubAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nimport { Button } from \"@vertesia/ui/core\";\nexport default function GitHubSignInButton({}) {\n const signIn = () => {\n localStorage.removeItem(\"tenantName\");\n //with github can only have one allowed redirect\n const baseUrl = \"https://dengenlabs.firebaseapp.com/__/auth/handler\";\n let redirectPath = baseUrl + window.location.pathname;\n if (redirectPath[0] !== \"/\") {\n redirectPath = \"/\" + redirectPath;\n }\n const provider = new GithubAuthProvider();\n provider.addScope(\"profile\");\n provider.addScope(\"email\");\n /*provider.setCustomParameters({\n redirect_uri: redirectPath,\n });*/\n signInWithRedirect(getFirebaseAuth(), provider);\n };\n return (_jsxs(Button, { variant: \"outline\", onClick: signIn, className: \"w-full py-5 flex rounded-lg hover:shadow-sm transition duration-150 text-center mb-2\", children: [_jsx(\"img\", { className: \"size-6 bg-white rounded-full\", src: \"https://www.svgrepo.com/show/503359/github.svg\", loading: \"lazy\", alt: \"github logo\" }), _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with GitHub\" })] }));\n}\n//# sourceMappingURL=GitHubSignInButton.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { GoogleAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nimport { Button } from \"@vertesia/ui/core\";\nexport default function GoogleSignInButton({ redirectTo }) {\n const signIn = () => {\n localStorage.removeItem(\"tenantName\");\n let redirectPath = redirectTo || window.location.pathname || '/';\n if (redirectPath[0] !== '/') {\n redirectPath = '/' + redirectPath;\n }\n const provider = new GoogleAuthProvider();\n provider.addScope('profile');\n provider.addScope('email');\n // always ask to select the google account\n //console.log('redirectPath', window.location.origin + redirectPath)\n provider.setCustomParameters({\n prompt: 'select_account',\n redirect_uri: window.location.origin + redirectPath\n });\n signInWithRedirect(getFirebaseAuth(), provider);\n };\n return (_jsxs(Button, { variant: \"outline\", onClick: signIn, className: \"w-full py-5 flex rounded-lg hover:shadow-sm transition duration-150 text-center mb-2\", children: [_jsx(\"img\", { className: \"size-6\", src: \"https://www.svgrepo.com/show/475656/google-color.svg\", loading: \"lazy\", alt: \"google logo\" }), _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with Google\" })] }));\n}\n//# sourceMappingURL=GoogleSignInButton.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { OAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nimport { Button } from \"@vertesia/ui/core\";\nexport default function MicrosoftSignInButton({ redirectTo }) {\n const signIn = () => {\n localStorage.removeItem(\"tenantName\");\n let redirectPath = redirectTo || window.location.pathname || '/';\n if (redirectPath[0] !== '/') {\n redirectPath = '/' + redirectPath;\n }\n const provider = new OAuthProvider('microsoft.com');\n provider.addScope('profile');\n provider.addScope('email');\n signInWithRedirect(getFirebaseAuth(), provider);\n };\n return (_jsxs(Button, { variant: \"outline\", onClick: signIn, className: \"w-full py-5 flex rounded-lg hover:shadow-sm transition duration-150 text-center\", children: [_jsx(\"img\", { className: \"size-6\", src: \"https://learn.microsoft.com/en-us/entra/identity-platform/media/howto-add-branding-in-apps/ms-symbollockup_mssymbol_19.svg\", loading: \"lazy\", alt: \"microsoft logo\" }), _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with Microsoft\" })] }));\n}\n//# sourceMappingURL=MicrosoftSigninButton.js.map","import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Button, Input, VSelectBox, SelectStack } from \"@vertesia/ui/core\";\nimport { useEffect, useState } from \"react\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nconst companySizeOptions = [\n { id: 1, label: \"1-10 employees\" },\n { id: 11, label: \"11-100 employees\" },\n { id: 101, label: \"101-1000 employees\" },\n { id: 1001, label: \"1001-5000 employees\" },\n { id: 5001, label: \"5000+ employees\" },\n];\nconst accountTypeOptions = [\n {\n id: \"personal\",\n label: \"Personal\",\n description: \"For personal use, or for a small team.\",\n },\n {\n id: \"company\",\n label: \"Company\",\n description: \"For a company or organization.\",\n },\n];\nconst projectMaturityOptions = [\n { id: \"testing\", label: \"Just Testing or Evaluating LLMs\" },\n { id: \"exploring\", label: \"Actively Exploring LLMs on a Project\" },\n { id: \"using\", label: \"Already Using LLMs in Production\" },\n { id: \"migrating\", label: \"Migrating to different LLMs\" },\n { id: \"other\", label: \"Other\" },\n];\nexport default function SignupForm({ onSignup, goBack }) {\n const [accountType, setAccountType] = useState(undefined);\n const [companySize, setCompanySize] = useState(undefined);\n const [companyName, setCompanyName] = useState(undefined);\n const [companyWebsite, setCompanyWebsite] = useState(undefined);\n const [projectMaturity, setProjectMaturity] = useState(undefined);\n const [fbUser, setFbUser] = useState(undefined);\n const [error, setError] = useState(undefined);\n const isCompany = accountType === \"company\";\n useEffect(() => {\n const user = getFirebaseAuth().currentUser;\n if (!user) {\n console.error('No user found');\n return;\n }\n setFbUser(user);\n }, [fbUser]);\n const isValid = () => {\n if (!accountType) {\n setError(\"Please select an account type\");\n return false;\n }\n if (isCompany && !companyName) {\n setError(\"Please enter an organization name\");\n return false;\n }\n if (isCompany && !companySize) {\n setError(\"Please select a company size\");\n return false;\n }\n return true;\n };\n const onSubmit = async () => {\n if (!isValid())\n return;\n if (!accountType)\n return;\n const signupData = {\n accountType: accountType,\n companyName: companyName,\n companySize: companySize?.id,\n companyWebsite: companyWebsite,\n maturity: projectMaturity,\n };\n window.localStorage.setItem(\"composableSignupData\", JSON.stringify(signupData));\n const fbToken = await getFirebaseAuth().currentUser?.getIdToken();\n console.log('Got firebase token', getFirebaseAuth(), fbToken);\n if (!fbToken) {\n console.error('No firebase token found');\n return;\n }\n onSignup(signupData, fbToken);\n };\n return (_jsxs(\"div\", { className: \"flex flex-col space-y-2\", children: [_jsxs(\"div\", { className: \"prose\", children: [_jsxs(\"p\", { className: \"prose text-sm text-muted pt-4\", children: [\"Welcome to Vertesia, \", fbUser?.displayName, \" (\", fbUser?.email, \"). Please tell us a little bit about yourself and you'll be on your way. No credit card is required.\"] }), error &&\n _jsx(\"div\", { className: \"text-destructive\", children: error })] }), _jsx(FormItem, { label: \"Account Type\", children: _jsx(SelectStack, { options: accountTypeOptions, selected: accountTypeOptions.find((option) => option.id === accountType), onSelect: (option) => setAccountType(option.id) }) }), isCompany &&\n _jsxs(_Fragment, { children: [_jsx(FormItem, { label: \"Company Size\", children: _jsx(VSelectBox, { className: \"w-full border border-accent bg-muted\", value: companySize, options: companySizeOptions, onChange: setCompanySize, optionLabel: (option) => option?.label, placeholder: 'Select Company Size' }) }), _jsx(FormItem, { label: \"Company Name\", children: _jsx(Input, { value: companyName, onChange: setCompanyName, type: \"text\", required: true }) }), _jsx(FormItem, { label: \"Company Website\", children: _jsx(Input, { value: companyWebsite, onChange: setCompanyWebsite, type: \"text\" }) })] }), _jsx(FormItem, { label: \"Project Maturity\", children: _jsx(VSelectBox, { className: \"w-full border border-accent bg-muted\", options: projectMaturityOptions, value: projectMaturityOptions.find((option) => option.id === projectMaturity), optionLabel: (option) => option?.label, placeholder: 'Select Project Maturity', onChange: (option) => setProjectMaturity(option?.id) }) }), _jsxs(\"div\", { className: \"pt-8 flex flex-col\", children: [_jsx(Button, { variant: \"primary\", onClick: onSubmit, size: \"xl\", children: _jsx(\"span\", { className: \"text-lg\", children: \"Sign Up\" }) }), _jsx(Button, { variant: \"ghost\", size: \"xl\", className: \"mt-4\", onClick: goBack, children: _jsx(\"span\", { className: \"\", children: \"Wrong account, go back\" }) })] })] }));\n}\nfunction FormItem({ label, children }) {\n return (_jsxs(\"div\", { className: \"flex flex-col space-y-2 pt-4\", children: [_jsx(\"div\", { className: \"text-sm text-muted\", children: label }), children] }));\n}\n//# sourceMappingURL=SignupForm.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Button, useSafeLayoutEffect } from \"@vertesia/ui/core\";\nimport { Env } from \"@vertesia/ui/env\";\nimport { UserNotFoundError, useUserSession, useUXTracking } from \"@vertesia/ui/session\";\nimport clsx from \"clsx\";\nimport { useEffect, useState } from \"react\";\nimport EnterpriseSigninButton from \"./EnterpriseSigninButton\";\nimport GitHubSignInButton from \"./GitHubSignInButton\";\nimport GoogleSignInButton from \"./GoogleSignInButton\";\nimport MicrosoftSignInButton from \"./MicrosoftSigninButton\";\nimport SignupForm from \"./SignupForm\";\nexport function SigninScreen({ allowedPrefix, isNested = false, lightLogo, darkLogo }) {\n const [allow, setAllow] = useState(false);\n useSafeLayoutEffect(() => {\n allowedPrefix && setAllow(window.location.href.startsWith(allowedPrefix));\n }, []);\n return allow ? null : _jsx(SigninScreenImpl, { isNested: isNested, lightLogo: lightLogo, darkLogo: darkLogo });\n}\nfunction SigninScreenImpl({ isNested = false, lightLogo, darkLogo }) {\n const { isLoading, user, authError } = useUserSession();\n return !isLoading && !user ? (_jsx(\"div\", { style: { zIndex: 999998 }, className: (isNested ? \"absolute\" : \"fixed\") + \"overflow-y-auto \", children: _jsxs(\"div\", { className: clsx(\"flex flex-col items-center justify-center py-14 px-4\"), children: [_jsx(StandardSigninPanel, { authError: authError, lightLogo: lightLogo, darkLogo: darkLogo }), _jsxs(\"div\", { className: \"flex gap-x-6 mt-10 justify-center text-muted\", children: [_jsx(\"a\", { href: \"https://vertesiahq.com/privacy\", className: \"text-sm\", children: \"Privacy Policy\" }), _jsx(\"a\", { href: \"https://vertesiahq.com/terms\", className: \"text-sm\", children: \"Terms of Service\" })] })] }) })) : null;\n}\nfunction StandardSigninPanel({ authError, darkLogo, lightLogo }) {\n const [signupData, setSignupData] = useState(undefined);\n const [collectSignupData, setCollectSignupData] = useState(false);\n const { signOut } = useUserSession();\n const { trackEvent } = useUXTracking();\n history.replaceState({}, '', '/');\n const goBack = () => {\n console.log(\"Going back, signing out\");\n setSignupData(undefined);\n setCollectSignupData(false);\n signOut();\n };\n const goToSignup = () => {\n setSignupData(undefined);\n setCollectSignupData(true);\n };\n useEffect(() => {\n if (authError instanceof UserNotFoundError) {\n console.log(\"User not found, redirecting to signup\");\n goToSignup();\n }\n }, [authError]);\n const onSignup = (data, fbToken) => {\n console.log(\"Got Signup data\", data);\n setSignupData(data);\n const payload = {\n signupData: data,\n firebaseToken: fbToken,\n };\n fetch(Env.endpoints.studio + \"/auth/signup\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify(payload),\n }).then((res) => {\n console.log(\"Signup successful\", payload, res);\n trackEvent(\"sign_up\");\n window.location.href = \"/\";\n });\n };\n return (_jsxs(_Fragment, { children: [lightLogo && _jsx(\"img\", { src: lightLogo, alt: 'logo', className: 'h-15 block dark:hidden' }), darkLogo && _jsx(\"img\", { src: darkLogo, alt: 'logo', className: 'h-15 hidden dark:block' }), signupData && (_jsxs(\"div\", { className: \"my-6\", children: [\"Need to make a change?\", \" \", _jsx(Button, { onClick: goToSignup, children: \" Go back\" })] })), _jsx(\"div\", { className: \"flex flex-col space-y-2\", children: collectSignupData && !localStorage.getItem('tenantName') ? (_jsx(SignupForm, { onSignup: onSignup, goBack: goBack })) : (_jsxs(\"div\", { className: \"flex flex-col\", children: [_jsx(\"div\", { className: \"my-4\", children: _jsx(\"h2\", { className: \"text-2xl font-bold text-center\", children: \"Log in or Sign up\" }) }), _jsxs(\"div\", { className: \"max-w-2xl text-center my-2 px-2\", children: [\"First time here? No problem, it's free to try!\", _jsx(\"br\", {}), \"We'll just ask you a couple of questions next and you'll be on your way.\"] }), _jsxs(\"div\", { className: \"flex items-center flex-col\", children: [_jsxs(\"div\", { className: \"py-4 w-70\", children: [_jsx(GoogleSignInButton, {}), _jsx(GitHubSignInButton, {}), _jsx(MicrosoftSignInButton, {})] }), _jsxs(\"div\", { className: \"flex items-center flex-row w-70 text-muted\", children: [_jsx(\"hr\", { className: \"w-full\" }), _jsx(\"div\", { className: \"px-2 text-xs\", children: \"OR\" }), _jsx(\"hr\", { className: \"w-full\" })] }), _jsx(\"div\", { className: \"py-4 w-70\", children: _jsx(EnterpriseSigninButton, {}) })] }), authError && !(authError instanceof UserNotFoundError) && (_jsx(\"div\", { className: \"text-center\", children: _jsxs(\"div\", { className: \"\", children: [\"Sorry, we have not been able to sign you in.\", _jsx(\"br\", {}), \"Please try again or contact\", _jsx(\"a\", { className: 'text-info mx-1', href: \"mailto:support@vertesiahq.com\", children: \"support@vertesiahq.com\" }), \"if it persists.\", _jsxs(\"pre\", { className: \"mt-2\", children: [\"Error: \", authError.message] })] }) }))] })) })] }));\n}\n//# sourceMappingURL=SigninScreen.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useState } from 'react';\nimport { Button, Center, ErrorBox, Input, SelectBox, Spinner, useFetch, useToast } from '@vertesia/ui/core';\nimport { Env } from \"@vertesia/ui/env\";\nimport { useLocation } from \"@vertesia/ui/router\";\nimport { fetchComposableTokenFromFirebaseToken, useUserSession } from '@vertesia/ui/session';\nconst LOOPBACK_HOSTS = new Set(['127.0.0.1', 'localhost']);\nfunction parseRedirectUri(rawRedirect) {\n if (!rawRedirect) {\n return null;\n }\n let decoded;\n try {\n decoded = decodeURIComponent(rawRedirect);\n }\n catch {\n return null;\n }\n let parsed;\n try {\n parsed = new URL(decoded);\n }\n catch {\n return null;\n }\n if (parsed.protocol !== 'http:') {\n return null;\n }\n if (!parsed.port) {\n return null;\n }\n if (parsed.username || parsed.password) {\n return null;\n }\n if (!LOOPBACK_HOSTS.has(parsed.hostname)) {\n return null;\n }\n return parsed.toString();\n}\nfunction getClientInfo(location) {\n const params = new URLSearchParams(location.search);\n const redirect = parseRedirectUri(params.get('redirect_uri'));\n const code = params.get('code');\n if (!redirect || !code) {\n return null;\n }\n const profile = params.get('profile') ?? \"default\";\n const project = params.get('project') ?? undefined;\n const account = params.get('account') ?? undefined;\n return { redirect, code, profile, project, account };\n}\nexport function TerminalLogin() {\n const [payload, setPayload] = useState();\n const [error, setError] = useState();\n const location = useLocation();\n const clientInfo = getClientInfo(location);\n const toast = useToast();\n const onAccept = async (data) => {\n if (!clientInfo)\n return;\n if (!data.profile) {\n toast({\n title: 'Profile is required',\n description: 'Please enter a profile name to save the client authorization',\n status: 'error',\n duration: 2000\n });\n return;\n }\n if (!data.account) {\n toast({\n title: 'Account is required',\n description: 'Please select an account to authorize the client to access the ComposablePrompts servers',\n status: 'error',\n duration: 2000\n });\n return;\n }\n if (!data.project) {\n toast({\n title: 'Project is required',\n description: 'Please select a project to authorize the client to access the ComposablePrompts servers',\n status: 'error',\n duration: 2000\n });\n return;\n }\n // expire in 1 day\n let payload;\n try {\n const token = await fetchComposableTokenFromFirebaseToken(data.account, data.project, 24 * 3600);\n if (token) {\n payload = {\n ...data,\n studio_server_url: Env.endpoints.studio,\n zeno_server_url: Env.endpoints.zeno,\n token,\n };\n await fetch(clientInfo.redirect, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload)\n });\n setPayload(payload);\n }\n else {\n toast({\n title: 'Failed to get composable token',\n status: 'error',\n duration: 5000\n });\n }\n }\n catch (err) {\n if (payload) {\n setError(err);\n setPayload(payload);\n }\n else {\n toast({\n title: 'Error authorizing client',\n description: err.message,\n status: 'error',\n duration: 5000\n });\n }\n }\n };\n const getPageContent = () => {\n if (!clientInfo) {\n return _jsx(ErrorBox, { title: 'Invalid request', children: \"This page should be called by a terminal client to authenticate against the ComposablePrompts servers\" });\n }\n return payload\n ? _jsx(AuthDoneScreen, { payload: payload, error: error })\n : _jsx(AuthAcceptScreen, { clientInfo: clientInfo, onAccept: onAccept });\n };\n const page = getPageContent();\n return (_jsx(\"div\", { className: \"w-full flex flex-col items-center gap-4 mt-24\", children: page }));\n}\nfunction AuthAcceptScreen({ onAccept, clientInfo }) {\n const { client, user } = useUserSession();\n const { data: allProjects, error } = useFetch(() => user ? client.projects.list() : Promise.resolve([]), [user]);\n if (error) {\n return _jsx(ErrorBox, { title: 'Error loading projects', children: error.message });\n }\n const getEnvironmentName = () => {\n if (Env.isLocalDev) {\n return \"Local Dev\";\n }\n else if (Env.isDev) {\n return \"Staging\";\n }\n return \"Production\";\n };\n const envName = getEnvironmentName();\n return user && allProjects ? (_jsxs(_Fragment, { children: [_jsxs(\"div\", { className: 'w-1/3', children: [_jsxs(\"div\", { className: \"mb-4 text-xl font-semibold text-info\", children: [\"Authorizing client on \", envName, \" environment.\"] }), _jsxs(\"div\", { className: 'mb-2 text-md text-muted-foreground', children: [_jsx(\"div\", { children: \"A client app wants authorization to access the composable prompt servers in your name.\" }), _jsxs(\"div\", { children: [\"The client app code is \", _jsx(\"b\", { className: \"text-foreground\", children: clientInfo.code }), \". You can check if the code is correct in the terminal.\"] })] }), _jsxs(\"div\", { className: 'mb-2 text-sm text-muted-foreground', children: [_jsx(\"div\", { children: \"You must choose the target account and project for the client to access.\" }), _jsx(\"div\", { children: \"Also, enter a profile name that will be used to save the authorization in your client configuration.\" })] })] }), _jsx(ProfileForm, { onAccept: onAccept, allProjects: allProjects, data: clientInfo })] })) : _jsx(Spinner, { size: 'lg' });\n}\nfunction AuthDoneScreen({ payload, error }) {\n const toast = useToast();\n const onCopy = () => {\n if (payload) {\n navigator.clipboard.writeText(JSON.stringify(payload));\n toast({\n title: 'Authentication Payload copied',\n description: error ? 'You can paste the authentication payload in the terminal to authenticate the client.' : 'You can close the page now.',\n status: 'success',\n duration: 5000\n });\n }\n };\n return (_jsxs(\"div\", { children: [error ?\n _jsxs(\"div\", { children: [_jsxs(ErrorBox, { title: 'Failed to send the authorization token to the cli tool', children: [\"This can happen due to security checks on Safari. The error is \\\"\", error.message, \"\\\"\"] }), _jsx(\"div\", { children: \"Don't worry, you can still authenticate the cli tool by pasting the authentication token in the terminal. You can close this page.\" })] })\n : _jsx(\"div\", { children: \"The client is authenticated. You can close this page.\" }), _jsx(Center, { className: \"mt-4\", children: _jsx(Button, { variant: 'secondary', onClick: onCopy, children: \"Copy the Authentication Payload\" }) })] }));\n}\nfunction ProfileForm({ allProjects, data, onAccept }) {\n const { accounts, account, project } = useUserSession();\n const [currentData, setCurrentData] = useState(() => ({\n profile: data.profile,\n account: data.account ?? account?.id,\n project: data.project ?? project?.id,\n }));\n const onChangeProfile = (value) => {\n setCurrentData({ ...currentData, profile: value });\n };\n const onChangeAccount = (value) => {\n setCurrentData({ ...currentData, account: value.id, project: undefined });\n };\n const onChangeProject = (value) => {\n setCurrentData({ ...currentData, project: value.id });\n };\n const projects = allProjects.filter(p => p.account === currentData.account);\n return (_jsxs(\"div\", { className: 'w-1/3', children: [_jsxs(\"div\", { className: \"mb-4 flex flex-col gap-2\", children: [_jsx(\"span\", { className: \"font-semibold text-muted-foreground\", children: \"Profile Name\" }), _jsx(Input, { type: 'text', value: currentData.profile, onChange: onChangeProfile })] }), _jsxs(\"div\", { className: \"mb-4 flex flex-col gap-2\", children: [_jsx(\"span\", { className: \"font-semibold text-muted-foreground\", children: \"Account\" }), _jsx(SelectAccount, { value: currentData.account, onChange: onChangeAccount, accounts: accounts || [] })] }), _jsxs(\"div\", { className: \"mb-4 flex flex-col gap-2\", children: [_jsx(\"span\", { className: \"font-semibold text-muted-foreground\", children: \"Project\" }), _jsx(SelectProject, { value: currentData.project, onChange: onChangeProject, projects: projects })] }), _jsxs(\"div\", { className: 'mb-4 text-sm text-attention', children: [_jsx(\"b\", { children: \"Note:\" }), \" If your browser asks for permission to access your local network, please allow it. This is required to send the authorization token back to the CLI tool. If not, you will need to copy/paste the token manually in your terminal.\"] }), _jsx(\"div\", { children: _jsx(Button, { size: 'xl', onClick: () => onAccept(currentData), children: \"Authorize Client\" }) })] }));\n}\nfunction SelectAccount({ value, accounts, onChange }) {\n const _onChange = (value) => {\n onChange(value);\n };\n return _jsx(SelectBox, { options: accounts, value: accounts?.find(a => a.id === value), onChange: _onChange, by: \"id\", optionLabel: (option) => option.name, placeholder: 'Select Account' });\n}\nfunction SelectProject({ value, projects, onChange }) {\n const _onChange = (value) => {\n onChange(value);\n };\n return (_jsx(SelectBox, { by: \"id\", value: projects.find(p => p.id === value), options: projects, optionLabel: (option) => option.name, placeholder: 'Select Project', onChange: _onChange }));\n}\n//# sourceMappingURL=TerminalLogin.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button, Modal, ModalBody, ModalFooter, ModalTitle } from \"@vertesia/ui/core\";\nimport GitHubSignInButton from \"./GitHubSignInButton\";\nimport GoogleSignInButton from \"./GoogleSignInButton\";\nimport MicrosoftSignInButton from \"./MicrosoftSigninButton\";\nexport default function SignInModal({ isOpen, onClose }) {\n return (_jsxs(Modal, { isOpen: isOpen, onClose: onClose, children: [_jsx(ModalTitle, { children: \"Sign In\" }), _jsxs(ModalBody, { className: \"flex justify-center\", children: [_jsx(GoogleSignInButton, {}), _jsx(GitHubSignInButton, {}), _jsx(MicrosoftSignInButton, {})] }), _jsx(ModalFooter, { justify: \"end\", children: _jsx(Button, { variant: \"ghost\", onClick: onClose, children: \"Cancel\" }) })] }));\n}\n//# sourceMappingURL=SignInModal.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { getTenantIdFromProject } from \"@vertesia/common\";\nimport { VTabs, VTabsBar, VTabsPanel, VTooltip } from \"@vertesia/ui/core\";\nimport { Env } from \"@vertesia/ui/env\";\nimport { useUserSession } from \"@vertesia/ui/session\";\n// Package version is now passed as prop from the consuming application\nimport { Check, CopyIcon } from \"lucide-react\";\nimport { useState } from \"react\";\nexport function InfoItems({ title, value }) {\n function copyToClipboard(value) {\n navigator.clipboard.writeText(value);\n setIsCopied(true);\n setTimeout(() => setIsCopied(false), 2000);\n }\n const [isCopied, setIsCopied] = useState(false);\n return (_jsxs(\"div\", { className: \"w-full flex justify-between items-center mb-1\", children: [_jsxs(\"div\", { className: \"flex flex-col w-[calc(100%-3rem)]\", children: [_jsx(\"div\", { className: 'text-sm px-2 dark:text-slate-200', children: title }), _jsx(VTooltip, { description: value, size: \"xs\", placement: \"left\", children: _jsxs(\"div\", { className: 'text-xs truncate text-muted w-full text-left px-2', children: [value, \" \"] }) })] }), isCopied ?\n _jsx(Check, { className: \"size-4 cursor-pointer text-success\" })\n :\n _jsx(CopyIcon, { className: \"size-4 cursor-pointer text-gray-400 dark:text-slate-400\", onClick: () => copyToClipboard(value) })] }));\n}\nexport default function InfoList() {\n const session = useUserSession();\n const { account, project, client, authToken } = session;\n const server = new URL(client.baseUrl).hostname;\n const store = new URL(client.store.baseUrl).hostname;\n const tenantId = project ? getTenantIdFromProject(project) : '';\n const tabs = [\n {\n name: 'user',\n label: 'User',\n content: _jsxs(\"div\", { className: \"space-y-1 p-2\", children: [_jsx(InfoItems, { title: \"Organization ID\", value: account?.id ?? 'Unknown' }), _jsx(InfoItems, { title: \"Project ID\", value: project?.id ?? 'Unknown' }), _jsx(InfoItems, { title: \"User ID\", value: authToken?.sub ?? 'Unknown' }), _jsx(InfoItems, { title: \"Organization Roles\", value: authToken?.account_roles?.join(',') ?? 'Unknown' }), _jsx(InfoItems, { title: \"Project Roles\", value: authToken?.project_roles?.join(',') ?? 'Unknown' })] })\n },\n {\n name: 'environment',\n label: 'Environment',\n content: _jsxs(\"div\", { className: \"space-y-1 p-2\", children: [_jsx(InfoItems, { title: \"Tenant ID\", value: tenantId }), _jsx(InfoItems, { title: \"Environment\", value: Env.type }), _jsx(InfoItems, { title: \"Server\", value: server }), _jsx(InfoItems, { title: \"Store\", value: store }), _jsx(InfoItems, { title: \"App Version\", value: Env.version }), _jsx(InfoItems, { title: \"SDK Version\", value: Env.sdkVersion || 'unknown' })] })\n }\n ];\n return (_jsx(\"div\", { className: \"w-full\", children: _jsxs(VTabs, { defaultValue: \"user\", tabs: tabs, fullWidth: true, updateHash: false, children: [_jsx(VTabsBar, {}), _jsx(VTabsPanel, {})] }) }));\n}\n//# sourceMappingURL=UserInfo.js.map","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Permission } from \"@vertesia/common\";\nimport { Avatar, Button, MenuList, ModeToggle, Spinner } from \"@vertesia/ui/core\";\nimport { useUserSession } from \"@vertesia/ui/session\";\nimport { Popover } from \"@vertesia/ui/widgets\";\nimport clsx from \"clsx\";\nimport { useState } from \"react\";\nimport SignInModal from \"./SignInModal\";\nimport InfoList from \"./UserInfo\";\nimport { useNavigate } from \"@vertesia/ui/router\";\nimport { useUserPermissions } from \"@vertesia/ui/features\";\nexport function UserSessionMenu({}) {\n const { user, isLoading } = useUserSession();\n const [showModal, setShowModal] = useState(false);\n if (isLoading) {\n return _jsx(Spinner, {});\n }\n else if (!user) {\n return _jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setShowModal(true), children: \"Sign In\" }), _jsx(SignInModal, { isOpen: showModal, onClose: () => setShowModal(false) })] });\n }\n else {\n return (_jsx(\"div\", { className: \"px-3\", children: _jsx(UserSessionPopup, { asMenuTrigger: true }) }));\n }\n}\nfunction UserSessionPopup({ className, asMenuTrigger = false }) {\n const session = useUserSession();\n const navigate = useNavigate();\n const perms = useUserPermissions();\n const { user } = session;\n if (!session || !user)\n return null;\n const isProjectManager = perms.hasPermission(Permission.project_admin);\n return (_jsxs(Popover, { strategy: 'fixed', placement: 'bottom-start', zIndex: 100, children: [_jsx(Popover.Trigger, { click: true, children: _jsx(\"div\", { className: clsx(className, \"flex items-center justify-start\", asMenuTrigger && \"cursor-pointer\"), children: _jsx(Avatar, { size: 'sm', color: 'bg-amber-500', shape: 'circle', \n /*src={picture} */\n name: user?.name }) }) }), _jsx(Popover.Content, { className: \"w-[280px] mx-2 my-1\", children: _jsx(\"div\", { className: \"bg-white dark:bg-slate-900 shadow-lg rounded-md ring-1 ring-gray-200 dark:ring-slate-700\", children: _jsxs(\"div\", { className: 'divide-y divide-gray-200 dark:divide-slate-700', children: [_jsxs(\"div\", { className: 'py-2 pl-2', children: [_jsx(\"p\", { className: \"px-4 dark:text-white mb-1\", children: user?.name ?? 'Unknown' }), _jsx(\"p\", { className: \"px-4 text-xs text-gray-500\", children: user?.email ?? '' })] }), _jsx(\"div\", { className: \"w-full p-1\", children: _jsx(InfoList, {}) }), _jsx(\"div\", { className: 'py-2 pl-2', children: _jsx(ModeToggle, {}) }), _jsx(\"div\", { className: 'py-2', children: _jsxs(MenuList, { children: [isProjectManager && (_jsx(MenuList.Item, { className: 'px-2', onClick: () => navigate('/settings', { replace: true }), children: \"Settings\" })), _jsx(MenuList.Item, { className: 'px-2', onClick: () => session.logout(), children: \"Sign out\" })] }) })] }) }) })] }));\n}\n//# sourceMappingURL=UserSessionMenu.js.map","export function isVertesiaEmail(email) {\n return email ? (email.endsWith('@vertesiahq.com') ||\n email.endsWith('@becomposable.com') ||\n email.endsWith('@composableprompts.com')) : false;\n}\n//# sourceMappingURL=utils.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Transition } from \"@headlessui/react\";\nimport { Fragment, useEffect, useState } from \"react\";\nimport { useUserSession } from \"@vertesia/ui/session\";\nexport function SplashScreen({ icon: Icon }) {\n const { isLoading } = useUserSession();\n const [show, setShow] = useState(true);\n useEffect(() => {\n if (!isLoading) {\n setShow(false);\n }\n // setTimeout(() => {\n // setShow(false)\n // }, 2000)\n }, [isLoading]);\n // 300 500 700 1000\n return (_jsx(Transition, { appear: true, show: show, as: Fragment, unmount: true, leave: \"transition ease-in duration-500\", leaveFrom: \"opacity-100\", leaveTo: \"opacity-0\", children: _jsx(\"div\", { style: { zIndex: 999999 }, className: 'fixed inset-x-0 inset-y-0', children: _jsx(\"div\", { className: \"flex w-full h-full items-center justify-center\", children: _jsx(\"div\", { className: \"animate-[spin_4s_linear_infinite]\", children: _jsx(\"div\", { className: 'animate-pulse rounded-full bg-transparent', children: Icon || _jsx(LoadingIcon, {}) }) }) }) }) }));\n}\nfunction LoadingIcon() {\n const stopColor1 = \"currentColor\";\n const stopColor2 = \"currentColor\";\n // const stopColor1 = \"#4F46E5\";\n // const stopColor2 = \"#4F46E5\";\n return (_jsxs(\"svg\", { className: \"w-8 h-8 text-indigo-600\", viewBox: \"0 0 50 50\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"defs\", { children: _jsxs(\"linearGradient\", { id: \"spinner-gradient\", x1: \"1\", y1: \"0\", x2: \"0\", y2: \"1\", children: [_jsx(\"stop\", { offset: \"0%\", stopColor: stopColor1, stopOpacity: \"1\" }), _jsx(\"stop\", { offset: \"100%\", stopColor: stopColor2, stopOpacity: \"0\" })] }) }), _jsx(\"circle\", { cx: \"25\", cy: \"25\", r: \"20\", stroke: \"url(#spinner-gradient)\", strokeWidth: \"5\", fill: \"none\", strokeLinecap: \"round\" })] }));\n}\n//# sourceMappingURL=SplashScreen.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { ThemeProvider, ToastProvider } from \"@vertesia/ui/core\";\nimport { UserPermissionProvider } from \"@vertesia/ui/features\";\nimport { UserSessionProvider } from \"@vertesia/ui/session\";\nimport { SplashScreen } from \"./SplashScreen\";\nimport { SigninScreen } from \"./login/SigninScreen\";\nexport function VertesiaShell({ children, lightLogo, darkLogo, loadingIcon }) {\n return (_jsx(ToastProvider, { children: _jsx(UserSessionProvider, { children: _jsxs(ThemeProvider, { defaultTheme: \"system\", storageKey: \"vite-ui-theme\", children: [_jsx(SplashScreen, { icon: loadingIcon }), _jsx(SigninScreen, { allowedPrefix: \"/shared/\", lightLogo: lightLogo, darkLogo: darkLogo }), _jsx(UserPermissionProvider, { children: children })] }) }) }));\n}\n//# sourceMappingURL=VertesiaShell.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, useContext } from \"react\";\nexport const AppInstallationContext = createContext(null);\nexport function AppInstallationProvider({ installation, children }) {\n return (_jsx(AppInstallationContext.Provider, { value: installation, children: children }));\n}\n/**\n * Get the current app installation obejct when called in an app context otheriwse returns null\n */\nexport function useAppInstallation() {\n return useContext(AppInstallationContext);\n}\n//# sourceMappingURL=AppInstallationProvider.js.map","import { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nimport { VSelectBox, useFetch } from \"@vertesia/ui/core\";\nimport { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY, useUserSession } from \"@vertesia/ui/session\";\nimport { useState } from \"react\";\nexport function AppProjectSelector({ app, onChange, placeholder }) {\n const { client, project } = useUserSession();\n const { data: projects, error } = useFetch(() => {\n return client.apps.getAppInstallationProjects(app);\n }, [app.id, app.name]);\n const _onChange = (project) => {\n if (onChange) {\n if (!onChange(project)) {\n // if onChange returns true then the defualt on change is called\n return;\n }\n }\n // default on change\n localStorage.setItem(LastSelectedAccountId_KEY, project.account);\n localStorage.setItem(LastSelectedProjectId_KEY + '-' + project.account, project.id);\n window.location.reload();\n };\n if (error) {\n return _jsxs(\"span\", { className: 'text-red-600', children: [\"Error: failed to fetch projects: \", error.message] });\n }\n return _jsx(SelectProject, { placeholder: placeholder, initialValue: project?.id, projects: projects || [], onChange: _onChange });\n}\nfunction SelectProject({ initialValue, projects, onChange, placeholder = \"Select Project\" }) {\n const [value, setValue] = useState();\n const _onChange = (value) => {\n setValue(value);\n onChange(value);\n };\n let actualValue = !value && initialValue ? projects.find(p => p.id === initialValue) : value;\n return (_jsx(VSelectBox, { by: \"id\", value: actualValue, options: projects, optionLabel: (option) => option.name, placeholder: placeholder, onChange: _onChange }));\n}\n//# sourceMappingURL=AppProjectSelector.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Center, useFetch, VSelectBox } from \"@vertesia/ui/core\";\nimport { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY, useUserSession } from \"@vertesia/ui/session\";\nimport { LockIcon } from \"lucide-react\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { AppInstallationProvider } from \"./AppInstallationProvider\";\nexport function StandaloneApp({ name, AccessDenied = AccessDeniedMessage, children }) {\n return name ? (_jsx(StandaloneAppImpl, { name: name, AccessDenied: AccessDenied, children: children })) : (_jsx(UnknownAppName, {}));\n}\nexport function StandaloneAppImpl({ name, AccessDenied = AccessDeniedMessage, children }) {\n const { authToken, client } = useUserSession();\n const [installation, setInstallation] = useState(null);\n const [state, setState] = useState(\"loading\");\n useEffect(() => {\n if (!authToken) {\n setState(\"loading\");\n }\n else {\n const isAppVisible = authToken.apps.includes(name);\n if (isAppVisible) {\n client.apps.getAppInstallationByName(name).then(inst => {\n if (!inst) {\n console.log(`App ${name} not found!`);\n setState(\"error\");\n }\n else {\n setState(\"loaded\");\n setInstallation(inst);\n }\n });\n }\n else {\n setState(\"error\");\n }\n }\n }, [name, authToken]);\n if (state === \"loading\") {\n return null;\n }\n else if (state === \"error\") {\n return _jsx(AccessDenied, { name: name });\n }\n else if (installation) {\n return _jsx(AppInstallationProvider, { installation: installation, children: children });\n }\n}\nfunction AccessDeniedMessage({ name }) {\n const { project, accounts, client } = useUserSession();\n const [selectedAccountId, setSelectedAccountId] = useState();\n // Fetch all projects where the app is installed across all organizations\n const { data: allProjects } = useFetch(() => {\n return client.apps.getAppInstallationProjects({ name });\n }, [name]);\n // Group projects by organization\n const { projectsByOrg, orgOptions } = useMemo(() => {\n if (!allProjects || !accounts)\n return { projectsByOrg: {}, orgOptions: [] };\n const grouped = {};\n for (const p of allProjects) {\n if (!grouped[p.account]) {\n grouped[p.account] = [];\n }\n grouped[p.account].push(p);\n }\n // Only show orgs that have projects with the app installed\n const orgsWithProjects = accounts.filter(a => grouped[a.id]?.length > 0);\n return { projectsByOrg: grouped, orgOptions: orgsWithProjects };\n }, [allProjects, accounts]);\n // Auto-select first org if not selected\n useEffect(() => {\n if (!selectedAccountId && orgOptions.length > 0) {\n setSelectedAccountId(orgOptions[0].id);\n }\n }, [orgOptions, selectedAccountId]);\n const onProjectChange = (selected) => {\n localStorage.setItem(LastSelectedAccountId_KEY, selected.account);\n localStorage.setItem(LastSelectedProjectId_KEY + '-' + selected.account, selected.id);\n window.location.reload();\n };\n const filteredProjects = selectedAccountId ? (projectsByOrg[selectedAccountId] || []) : [];\n const selectedOrg = orgOptions.find(a => a.id === selectedAccountId);\n return (_jsxs(Center, { className: \"pt-10 flex flex-col items-center text-center text-gray-700\", children: [_jsx(LockIcon, { className: \"w-10 h-10 mb-4 text-gray-500\" }), _jsx(\"div\", { className: \"text-xl font-semibold\", children: \"Access Denied\" }), _jsxs(\"div\", { className: \"mt-2 text-sm text-gray-500\", children: [\"You don't have permission to view the \", _jsx(\"span\", { className: \"font-semibold\", children: name }), \" app in project: \", _jsxs(\"span\", { className: \"font-semibold\", children: [\"\\u00AB\", project?.name, \"\\u00BB\"] }), \".\"] }), orgOptions.length === 0 && allProjects !== undefined && (_jsx(\"div\", { className: \"mt-4 text-sm text-gray-500\", children: \"This app is not installed in any project you have access to.\" })), orgOptions.length > 0 && (_jsxs(\"div\", { className: \"mt-4 flex flex-row gap-4 items-end\", children: [orgOptions.length > 1 && (_jsxs(\"div\", { children: [_jsx(\"div\", { className: \"text-sm text-gray-500 mb-2\", children: \"Organization\" }), _jsx(VSelectBox, { by: \"id\", value: selectedOrg, options: orgOptions, optionLabel: (option) => option.name, placeholder: \"Select Organization\", onChange: (org) => setSelectedAccountId(org.id) })] })), _jsxs(\"div\", { children: [orgOptions.length > 1 && _jsx(\"div\", { className: \"text-sm text-gray-500 mb-2\", children: \"Project\" }), _jsx(VSelectBox, { by: \"id\", value: undefined, options: filteredProjects, optionLabel: (option) => option.name, placeholder: \"Select Project\", onChange: onProjectChange })] })] }))] }));\n}\nfunction UnknownAppName() {\n return (_jsxs(Center, { className: \"pt-10 flex flex-col items-center text-center text-gray-700\", children: [_jsx(LockIcon, { className: \"w-10 h-10 mb-4 text-gray-500\" }), _jsx(\"div\", { className: \"text-xl font-semibold\", children: \"Application not registered\" }), _jsxs(\"div\", { className: \"mt-2 text-sm text-gray-500\", children: [\"Before starting to code a Vertesia application you must register an application manifest in Vertesia Studio then install it in one or more projects.\", _jsx(\"p\", {}), \"Then use the created app name as a parameter to \", _jsx(\"code\", { children: \"<StandaloneApp name=\\\"your-app-name\\\">\" }), \" in the \", _jsx(\"code\", { children: \"src/main.tsx\" }), \" file.\"] })] }));\n}\n//# sourceMappingURL=StandaloneApp.js.map"],"names":["InviteAcceptModal","session","useUserSession","client","account","showModal","setShowModal","useState","invites","setInvites","useEffect","listInvites","then","length","notLegacyInvites","filter","i","data","console","log","catch","err","error","id","closeModal","inviteList","map","invite","_jsxs","className","children","_jsx","name","project","role","invited_by","Button","size","onClick","async","acceptInvite","fetchAccounts","accept","variant","rejectInvite","remainingInvites","reject","warn","VModal","isOpen","onClose","VModalTitle","VModalBody","EnterpriseSigninButton","redirectTo","isLoading","setIsLoading","trackEvent","useUXTracking","email","setEmail","toast","useToast","_Fragment","Input","value","onChange","placeholder","type","Spinner","test","setFirebaseTenant","title","status","duration","localStorage","setItem","provider","Env","firebase","Error","providerType","OAuthProvider","redirectPath","window","location","pathname","GoogleAuthProvider","addScope","setCustomParameters","prompt","redirect_uri","origin","getProvider","firebaseTenantName","logger","info","vertesia","firebaseTenantId","signInWithRedirect","getFirebaseAuth","GitHubSignInButton","removeItem","GithubAuthProvider","src","loading","alt","GoogleSignInButton","MicrosoftSignInButton","companySizeOptions","label","accountTypeOptions","description","projectMaturityOptions","SignupForm","onSignup","goBack","accountType","setAccountType","undefined","companySize","setCompanySize","companyName","setCompanyName","companyWebsite","setCompanyWebsite","projectMaturity","setProjectMaturity","fbUser","setFbUser","setError","isCompany","user","currentUser","displayName","FormItem","SelectStack","options","selected","find","option","onSelect","VSelectBox","optionLabel","required","signupData","maturity","JSON","stringify","fbToken","getIdToken","SigninScreen","allowedPrefix","isNested","lightLogo","darkLogo","allow","setAllow","useSafeLayoutEffect","href","startsWith","SigninScreenImpl","authError","style","zIndex","clsx","StandardSigninPanel","setSignupData","collectSignupData","setCollectSignupData","signOut","history","replaceState","goToSignup","UserNotFoundError","getItem","payload","firebaseToken","fetch","endpoints","studio","method","headers","body","res","message","LOOPBACK_HOSTS","Set","getClientInfo","params","URLSearchParams","search","redirect","rawRedirect","decoded","parsed","decodeURIComponent","URL","protocol","port","username","password","has","hostname","toString","parseRedirectUri","get","code","profile","TerminalLogin","setPayload","clientInfo","useLocation","onAccept","token","fetchComposableTokenFromFirebaseToken","studio_server_url","zeno_server_url","zeno","page","AuthDoneScreen","AuthAcceptScreen","ErrorBox","allProjects","useFetch","projects","list","Promise","resolve","envName","isLocalDev","isDev","ProfileForm","Center","navigator","clipboard","writeText","accounts","currentData","setCurrentData","p","SelectAccount","SelectProject","SelectBox","a","by","SignInModal","Modal","ModalTitle","ModalBody","ModalFooter","justify","InfoItems","isCopied","setIsCopied","VTooltip","placement","Check","CopyIcon","setTimeout","copyToClipboard","InfoList","authToken","server","baseUrl","store","tenantId","getTenantIdFromProject","tabs","content","sub","account_roles","join","project_roles","version","sdkVersion","VTabs","defaultValue","fullWidth","updateHash","VTabsBar","VTabsPanel","UserSessionMenu","UserSessionPopup","asMenuTrigger","navigate","useNavigate","perms","useUserPermissions","isProjectManager","hasPermission","Permission","project_admin","Popover","strategy","Trigger","click","Avatar","color","shape","Content","ModeToggle","MenuList","Item","replace","logout","isVertesiaEmail","endsWith","SplashScreen","icon","Icon","show","setShow","Transition","appear","as","Fragment","unmount","leave","leaveFrom","leaveTo","LoadingIcon","viewBox","xmlns","x1","y1","x2","y2","offset","stopColor","stopOpacity","cx","cy","r","stroke","strokeWidth","fill","strokeLinecap","VertesiaShell","loadingIcon","ToastProvider","UserSessionProvider","ThemeProvider","defaultTheme","storageKey","UserPermissionProvider","AppInstallationContext","createContext","AppInstallationProvider","installation","Provider","useAppInstallation","useContext","AppProjectSelector","app","apps","getAppInstallationProjects","initialValue","LastSelectedAccountId_KEY","LastSelectedProjectId_KEY","reload","setValue","actualValue","StandaloneApp","AccessDenied","AccessDeniedMessage","StandaloneAppImpl","UnknownAppName","setInstallation","state","setState","includes","getAppInstallationByName","inst","selectedAccountId","setSelectedAccountId","projectsByOrg","orgOptions","useMemo","grouped","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,iEAAoE2V,EAAW5W,OAAS,GAAMe,EAAM,MAAO,CAAEC,UAAW,qCAAsCC,SAAU,CAAC2V,EAAW5W,OAAS,GAAMe,EAAM,MAAO,CAAEE,SAAU,CAACC,EAAK,MAAO,CAAEF,UAAW,6BAA8BC,SAAU,iBAAmBC,EAAK+G,EAAY,CAAEuG,GAAI,KAAMpL,MAAO8T,EAAatP,QAASgP,EAAY1O,YAAcH,GAAWA,EAAO5G,KAAMmC,YAAa,sBAAuBD,SAAW+T,GAAQV,EAAqBU,EAAI1W,SAAaK,EAAM,MAAO,CAAEE,SAAU,CAAC2V,EAAW5W,OAAS,GAAKkB,EAAK,MAAO,CAAEF,UAAW,6BAA8BC,SAAU,YAAcC,EAAK+G,EAAY,CAAEuG,GAAI,KAAMpL,WAAOsD,EAAWkB,QAASqP,EAAkB/O,YAAcH,GAAWA,EAAO5G,KAAMmC,YAAa,iBAAkBD,SAP94CwE,IACrB/D,aAAaC,QAAQ0R,EAA2B5N,EAAStI,SACzDuE,aAAaC,QAAQ2R,EAA4B,IAAM7N,EAAStI,QAASsI,EAASnH,IAClF6D,OAAOC,SAASmR,oBAKxB,CACA,SAASO,KACL,OAAQnV,EAAM6M,EAAQ,CAAE5M,UAAW,6DAA8DC,SAAU,CAACC,EAAKiW,GAAU,CAAEnW,UAAW,iCAAmCE,EAAK,MAAO,CAAEF,UAAW,wBAAyBC,SAAU,+BAAiCF,EAAM,MAAO,CAAEC,UAAW,6BAA8BC,SAAU,CAAC,uJAAwJC,EAAK,IAAK,CAAA,GAAK,mDAAoDA,EAAK,OAAQ,CAAED,SAAU,yCAA6C,WAAYC,EAAK,OAAQ,CAAED,SAAU,iBAAmB,cACxqB"}
@@ -1,2 +0,0 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import{Editor as a}from"@monaco-editor/react";import{useTheme as n,Styles as i,FormItem as s,Button as o,DotBadge as l,Table as c,VTooltip as d,VSelectBox as u,VModal as h,VModalTitle as m,ModalBody as p,ModalFooter as f,useFlag as g,useClickOutside as y,useToast as b}from"@vertesia/ui/core";import v from"debounce";import x,{clsx as w}from"clsx";import N,{useState as k,useRef as C,useEffect as S,useMemo as A,useCallback as j,createContext as O,useContext as I,memo as P,Component as L,useId as $,Children as E,isValidElement as R}from"react";import{Plus as F,Trash2 as T,Code as z,FileText as D,Table as V,Download as q,Link as K,Image as U,MessageSquare as M,GitBranch as _,BarChart3 as W,Loader2 as J,Check as B,Copy as H,Minimize2 as G,Maximize2 as Z,X,CheckCircle as Y,AlertCircle as Q,HelpCircle as ee,Send as te,Info as re,AlignLeft as ae,SquarePen as ne,ChevronDown as ie,ChevronRight as se,UploadIcon as oe,CheckCircleIcon as le,AlertCircleIcon as ce,XCircleIcon as de}from"lucide-react";import ue from"ajv";import he from"ajv-formats";import me,{defaultUrlTransform as pe}from"react-markdown";import fe from"remark-gfm";import{visit as ge,SKIP as ye}from"unist-util-visit";import{useUserSession as be}from"@vertesia/ui/session";import{toPng as ve}from"html-to-image";import*as xe from"@radix-ui/react-dialog";import we from"papaparse";import{VegaEmbed as Ne}from"react-vega";import{twMerge as ke}from"tailwind-merge";import{XAxis as Ce,YAxis as Se,CartesianGrid as Ae,Tooltip as je,Legend as Oe,ReferenceLine as Ie,ResponsiveContainer as Pe,ComposedChart as Le,AreaChart as $e,LineChart as Ee,BarChart as Re,Line as Fe,Area as Te,Bar as ze,PieChart as De,Pie as Ve,Cell as qe,ScatterChart as Ke,Scatter as Ue,RadarChart as Me,PolarGrid as _e,PolarAngleAxis as We,PolarRadiusAxis as Je,Radar as Be,RadialBarChart as He,RadialBar as Ge,FunnelChart as Ze,Funnel as Xe,LabelList as Ye,Treemap as Qe}from"recharts";import et from"mermaid";import{FusionFragmentProvider as tt,FusionFragmentHandler as rt}from"@vertesia/fusion-ux";import{offset as at,shift as nt,flip as it}from"@floating-ui/dom";import{useFloating as st,autoUpdate as ot,useDismiss as lt,useClick as ct,useHover as dt,useInteractions as ut,useTransitionStyles as ht,FloatingPortal as mt,FloatingFocusManager as pt,safePolygon as ft}from"@floating-ui/react";import{XMLParser as gt,XMLValidator as yt}from"fast-xml-parser";import{isNil as bt,omit as vt}from"lodash-es";class xt{VgetValue;VsetValue;constructor(e,t){this.VgetValue=e,this.VsetValue=t}getValue(){return this.VgetValue()}setValue(e){this.VsetValue(e||"")}}function wt({onChange:t,value:r="",className:i,editorRef:s,language:o="javascript",debounceTimeout:l=0,options:c={},beforeMount:d,onMount:u,defaultValue:h,minLines:m=10,maxLines:p}){const[f,g]=k(r),y=C(null),{theme:b}=n(),w=C(()=>f),N=C(e=>{g(e),y.current&&y.current.setValue(e)});S(()=>{w.current=()=>f},[f]),S(()=>(s&&(s.current=new xt(()=>w.current(),e=>N.current(e))),()=>{s&&(s.current=void 0)}),[s]);const O=A(()=>{if(t)return l>0?v(e=>t(e),l):t},[t,l]),I=j(e=>{const t=e||"";if(g(t),O){const e={docChanged:!0,state:{doc:{toString:()=>t,length:t.length}}};O(e)}},[O]),P=j((e,t)=>{y.current=e,N.current=t=>{g(t),e.setValue(t)},t.editor.defineTheme("errorLineTheme",{base:"dark"===b?"vs-dark":"vs",inherit:!0,rules:[],colors:{"editorError.background":"#ffebee","editorError.border":"#f44336"}}),t.editor.setTheme("errorLineTheme"),u?.(e,t)},[u,b]);S(()=>{r!==f&&(g(r),y.current&&y.current.setValue(r))},[r]);const L={fontSize:14,fontFamily:"monospace",minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",lineNumbers:"on",folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:3,automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,tabSize:2,insertSpaces:!0,glyphMargin:!0,renderValidationDecorations:"on",renderLineHighlight:"line",hover:{enabled:!0,delay:100},quickSuggestions:{other:!0,comments:!0,strings:!0},...c},$=19*(p||m)+20;return e("div",{className:x(i,"w-full"),style:{height:`${$}px`},children:e(a,{className:"h-full w-full",height:"100%",theme:"dark"===b?"vs-dark":"light",language:o,value:f,onChange:I,onMount:P,beforeMount:d,options:L,defaultValue:h||""})})}const Nt=O(void 0),kt=Nt.Provider;function Ct(){const e=I(Nt);if(!e)throw new Error("useFieldSet must be used within a Form or FieldSet element");return e}class St{object;components;disabled;constructor(e,t={},r=!1){this.object=e,this.components=t,this.disabled=r}}const At=O(void 0);function jt(){const e=I(At);if(!e)throw new Error("useForm must be used within a Form element");return e}const Ot=At.Provider,It=N.forwardRef(({object:t,type:r="text",onChange:a,...n},s)=>{const[o,l]=k(null!=t.value?String(t.value):""),[c,d]=k(t.schema.isBoolean&&!0===t.value);n.className?n.className=x(i.INPUT,n.className):n.className=i.INPUT;const u=e=>{n.disabled||(l(e.target.value),t.schema.isBoolean?(t.value=e.target.checked,d(t.value)):t.value=e.target.value,a&&a(e))};return"textarea"===r?e("textarea",{ref:s,...n,value:o,onChange:u}):e("input","checkbox"===r?{ref:s,...n,type:"checkbox",checked:c,onChange:u,className:"form-check-input"}:{ref:s,...n,type:r,value:o,onChange:u})});function Pt({object:t,components:r,onSubmit:a,children:n,onChange:i,disabled:s}){return t.observer=i,e(Ot,{value:new St(t,r||{},s??!1),children:e("form",{className:"w-full",onSubmit:e=>{e.stopPropagation(),e.preventDefault(),a&&a(t.value)},children:n})})}function Lt(){const t=jt();return e("div",{className:"flex flex-col gap-4 w-full",children:t.object.properties.map(Et)})}function $t({children:r,...a}){return t(Pt,{...a,children:[e(Lt,{}),r]})}function Et(t){return t.isList?e(Tt,{object:t},t.name):t.isObject?e(Ft,{object:t},t.name):e(Rt,{object:t},t.name)}function Rt({object:t,editor:r,inline:a=!1}){r||(r=t.schema.editor);const{components:n,disabled:i}=jt(),o=r&&n[r]||It,l=t.getInputType();"checkbox"===l&&(a=!0);const c=e=>{i||(t.schema.isBoolean?t.value=e.target.checked:t.schema.isNumber?t.value=parseFloat(e.target.value):t.value=e.target.value)};return t.isListItem?e(o,{object:t,type:l,onChange:c,disabled:i}):e(s,{label:t.title,required:t.schema.isRequired,description:t.schema.description,className:x("flex",a?"flex-row items-center":"flex-col"),children:e(o,{object:t,type:l,onChange:c,disabled:i})})}function Ft({object:r}){return t("div",{className:"flex flex-col gap-4 my-4 py-2 pl-4 border-l-4 border-l-solid border-l-slate-100 dark:border-l-slate-600",children:[!r.isListItem&&e("div",{className:"text-gray-900 dark:text-gray-200 font-semibold",children:r.title}),r.properties.map(Et)]})}function Tt({object:r}){const[a,n]=k(r.value||[]),{disabled:i}=jt();return t("div",{className:"flex flex-col gap-4 my-4 py-2 pl-4 border-l-4 border-l-solid border-l-slate-100 darK:border-l-slate-600",children:[!r.isListItem&&e("div",{className:"text-gray-900 dark:text-gray-200 font-semibold",children:r.title}),r.items.map((t,s)=>e(zt,{object:t,list:r,onDelete:()=>(e=>{i||(r.remove(e),n([...r.value]))})(s),disabled:i},`${s}-${a[s]??""}`)),e("div",{children:t(o,{variant:"secondary",onClick:()=>{i||(r.add(),n([...r.value]))},disabled:i,children:[e(F,{className:"size-6"})," Add"]})})]})}function zt({list:r,object:a,onDelete:n,disabled:i}){return t("div",{className:"flex gap-2 w-full",children:[e("div",{className:"flex-1",children:(s=a,l=r.schema.arraySchema.editor,s.isList?e(Tt,{object:s}):s.isObject?e(Ft,{object:s}):e(Rt,{object:s,editor:l}))}),e(o,{variant:"secondary",onClick:n,disabled:i,children:e(T,{className:"size-4"})})]});var s,l}class Dt{schema;properties={};_validator;constructor(e){this.schema=e||{type:"object",properties:{}},this.load()}get validator(){if(!this._validator){const e=new ue({allErrors:!0,strict:!1});he(e),this._validator=e.compile(this.schema)}return this._validator}load(){if(this.schema.properties){const e=this.schema.properties;Object.keys(e).forEach(t=>{this.loadProperty(t,e[t])})}}hasProperties(){return Object.keys(this.properties).length>0}get title(){return this.schema.title||this.schema.name}get description(){return this.schema.description}loadProperty(e,t){let r;return r="array"===t.type?new qt(this,e,t):new Vt(this,e,t),this.properties[e]=r,r}get type(){return this.schema.type}validate(e){return this.validator(e)?null:this.validator.errors||[]}addProperty(e,t,r=!1){"object"!==this.schema.type&&(this.schema.type="object"),this.schema.properties||(this.schema.properties={});const a="string"==typeof t?"object"===(n=t)?{type:"object",properties:{}}:"array"===n?{type:"array",items:{}}:{type:n}:t;var n;const i=this.loadProperty(e,a);return this.schema.properties[i.name]=i.schema,r&&(i.isRequired=!0),i}removeProperty(e){this.schema.properties&&(delete this.schema.properties[e],Array.isArray(this.schema.required)&&(this.schema.required=this.schema.required.filter(t=>t!==e))),delete this.properties[e]}getProperty(e){return this.properties[e]}get editor(){return this.schema.editor}}class Vt extends Dt{parent;name;constructor(e,t,r){if(super(r),this.parent=e,this.name=t,"array"===r.type)throw new Error("Array property must be instantiated using ArrayPropertySchema");"object"!==r.type||r.properties||(r.properties={})}get isMulti(){return!1}get isReadOnly(){return!!this.schema.readOnly}set isReadOnly(e){this.schema.readOnly=e}get defaultValue(){return this.schema.default}set defaultValue(e){this.schema.default=e}get enum(){return this.schema.enum}set enum(e){this.schema.enum=e}get isRequired(){const e=this.parent.schema.required;return!!e&&e.includes(this.name)}set isRequired(e){let t=Array.isArray(this.parent.schema.required)?this.parent.schema.required:[];t=e?t.concat(this.name):t.filter(e=>e!==this.name),this.parent.schema.required=t}get type(){return this.schema.type}set type(e){this.schema.type!==e&&(this.schema.type=e,"object"!==e&&(this.properties={},this.schema.properties=void 0))}remove(){this.parent.removeProperty(this.name)}get isBoolean(){return"boolean"===this.type}get isString(){return"string"===this.type}get isNumber(){return"number"===this.type||"integer"===this.type}get isObject(){return"object"===this.type}}class qt extends Vt{arraySchema;constructor(e,t,r){super(e,t,function(e){if("array"!==e.type)throw new Error("Expecting an array schema");if(e.items){if(Array.isArray(e.items))throw new Error("Tuple arrays are not supported")}else e.items={};return e.items}(r)),this.arraySchema=r}get isMulti(){return!0}}function Kt(e){return(e=e.replace(/_/g," ").replace(/([a-z0-9])&([A-Z])/g,"$1 $2"))[0].toUpperCase()+e.slice(1)}function Ut(e,t){if(t.editor)return t.editor;if(t.schema.format)return t.schema.format;switch(t.type){case"number":case"integer":return"number";case"boolean":return"checkbox";default:return"text"}}class Mt{parent;schema;name;observer;constructor(e,t,r){this.parent=e,this.schema=t,this.name=r}get isRoot(){return!this.parent}get root(){return this.parent?this.parent.root:this}get path(){return this.parent?this.parent.path.concat(this.name):[]}get isScalar(){return!1}get isListItem(){return!1}get isObject(){return!1}get isList(){return!1}get title(){return this.schema.title||Kt(this.name)}onChange(e){this.observer&&!1===this.observer(this)||this.parent&&this.parent.onChange(e)}}class _t extends Mt{constructor(e,t,r){super(e,t,r)}get isObject(){return!0}getProperty(e){const t=this.schema.properties[e];return t.isMulti?new Ht(this,t,this.getOrInitArrayProperty(e)):t.isObject?new Jt(this,t,t.name,this.getOrInitObjectProperty(e)):new Bt(this,t)}getOrInitObjectProperty(e){let t=this.value[e];return t||(this.value[e]=t={}),t}getOrInitArrayProperty(e){let t=this.value[e];return t||(this.value[e]=t=[]),t}setPropertyValue(e,t){return this.value[e]!==t&&(this.value[e]=t,!0)}getPropertyValue(e){return this.value[e]}get properties(){const e=[];for(const t of Object.values(this.schema.properties))t.isMulti?e.push(new Ht(this,t,this.getOrInitArrayProperty(t.name))):t.isObject?e.push(new Jt(this,t,t.name,this.getOrInitObjectProperty(t.name))):e.push(new Bt(this,t));return e}[Symbol.iterator](){return this.properties[Symbol.iterator]()}}class Wt extends _t{value;constructor(e,t={}){super(null,e instanceof Dt?e:new Dt(e),"#root"),this.value=t}}class Jt extends _t{value;constructor(e,t,r,a){super(e,t,r),this.value=a}}class Bt extends Mt{constructor(e,t){super(e,t,t.name),void 0===e.value[this.name]&&void 0!==t.defaultValue&&(e.value[this.name]=t.defaultValue)}get isScalar(){return!0}set value(e){this.parent.setPropertyValue(this.name,e)&&this.onChange(this)}get value(){return this.parent.getPropertyValue(this.name)}getInputType(){return Ut(this.name,this.schema)}}class Ht extends Mt{value;items=[];constructor(e,t,r){super(e,t,t.name),this.value=r;for(const e of this.value)this.add()}get isList(){return!0}newItem(e){return this.schema.isObject?new Gt(this,e):new Zt(this,e)}add(){const e=this.newItem(this.items.length);return this.items.push(e),e}remove(e){const t=this.value;if(e>=0&&e<this.items.length){this.items.splice(e,1);for(let e=0,t=this.items.length;e<t;e++){const t=this.items[e];t.index=e,t.name=String(e)}}Array.isArray(t)&&e>=0&&e<t.length&&(t.splice(e,1),this.onChange(this))}[Symbol.iterator](){return this.items[Symbol.iterator]()}item(e){if(e<0||e>=this.value.length)return;const t=this.value[e];return this.schema.isObject?new Jt(this,this.schema,String(e),t):new Zt(this,e)}trim(){for(;void 0===this.items[this.items.length-1];)this.items.pop()}}class Gt extends _t{index;key;constructor(e,t){super(e,e.schema,String(t)),this.index=t,void 0===e.value[t]&&(e.value[t]={}),this.key=this.name+"@"+Date.now()}get isListItem(){return!0}set value(e){this.parent.value[this.index]=e}get value(){return this.parent.value[this.index]}}class Zt extends Mt{index;key;constructor(e,t){super(e,e.schema,String(t)),this.index=t,void 0===e.value[t]&&void 0!==e.schema.defaultValue&&(e.value[t]=e.schema.defaultValue),this.key=this.name+"@"+Date.now()}get isScalar(){return!0}get isListItem(){return!0}set value(e){this.parent.value[this.index]=e}get value(){return this.parent.value[this.index]}getInputType(){return Ut(this.name,this.schema)}}function Xt({label:t,required:r,children:a}){return e(s,{label:t,required:r,children:a})}function Yt({children:t}){return e("p",{className:"mt-2 text-sm text-gray-500",children:t})}function Qt({children:t}){return e("p",{className:"mt-2 text-sm text-red-600",children:t})}function er({data:t,className:r}){const{theme:a}=n(),i=A(()=>{try{return JSON.stringify(t,null,2)}catch(e){return console.error("Failed to stringify JSON:",e),"{}"}},[t]);return e("div",{className:r,children:e(wt,{value:i,language:"json",theme:"dark"===a?"vs-dark":"vs",minLines:10,maxLines:50,options:{readOnly:!0,domReadOnly:!0}})})}function tr({value:t}){return e("div",{className:"flex flex-col gap-4",children:Object.entries(t).map(([t,r])=>e(nr,{name:t,value:r},t))})}function rr({name:t}){return e("div",{className:"text-md font-semibold",children:Kt(t)})}function ar({children:t,className:r}){return e("div",{className:x("flex flex-col gap-4 py-2 pl-4 border-l-4 border-l-solid border-l-slate-100 dark:border-l-slate-600",r),children:t})}function nr({name:r,value:a}){const n=lr(a);switch(n.type){case or.Inline:return t("div",{className:"w-full flex gap-2",children:[e(rr,{name:r+":"}),e("p",{children:n.value})]});case or.Paragraph:return t("div",{children:[e(rr,{name:r}),e("p",{children:n.value})]});case or.Prose:return t("div",{className:"prose dark:prose-invert",children:[e(rr,{name:r}),e("div",{className:"vprose dark:prose-invert",children:n.value})]});case or.Array:return e(ir,{name:r,value:a});case or.Object:return t("div",{children:[e(rr,{name:r}),e(ar,{className:"mt-2",children:Object.entries(a).map(([t,r])=>e(nr,{name:t,value:r},t))})]})}}function ir({name:r,value:a}){const n=a.join(" ").length,i=n/a.length,s="string"==typeof a[0]&&(n<80||n<400&&i<32),o=a.length>9;return t("div",s?{className:"flex gap-2 flex-wrap",children:[r&&e(rr,{name:r+":"}),a.map((t,r)=>e(l,{children:String(t)},r))]}:{children:[r&&e(rr,{name:r}),e("div",{className:"flex flex-col gap-2",children:a.map((t,r)=>e(sr,{index:r,value:t,useBullet:o},r))})]})}function sr({index:r,value:a,useBullet:n}){const i=n?e("span",{className:"text-xl",children:"•"}):t("span",{children:[r+1,"."]}),s=lr(a);let o;switch(s.type){case or.Object:o=e(ar,{children:Object.entries(a).map(([t,r])=>e(nr,{name:t,value:r},t))});break;case or.Array:o=e(ir,{value:a});break;case or.Prose:o=e("div",{className:"prose dark:prose-invert",children:s.value});break;default:o=e("div",{children:s.value})}return t("div",{className:"flex gap-4 hover:bg-slate-50 dark:hover:bg-slate-800 py-2 pr-2 pl-4",children:[e("div",{className:"font-semibold text-gray-600 dark:text-gray-400",children:i}),e("div",{children:o})]})}var or;function lr(e){if(null==e)return{value:"-",type:or.Inline};if(Array.isArray(e))return{value:e,type:or.Array};const t=typeof e;if("string"===t){const t=e.length;let r;return t<80?r=or.Inline:t>400?r=or.Prose:(r=or.Paragraph,e=e.replace(/(?:\n\n)+/g,"\n\n")),{type:r,value:e}}return"number"===t||"boolean"===t?{value:String(e),type:or.Inline}:{value:e,type:or.Object}}function cr({value:t,viewCode:r=!1}){return t?e("div",{className:"relative w-full",children:r?e(er,{data:t}):e(tr,{value:t})}):e("pre",{className:"whitespace-pre-wrap",children:"No Data to display"})}!function(e){e[e.Inline=0]="Inline",e[e.Paragraph=1]="Paragraph",e[e.Prose=2]="Prose",e[e.Array=3]="Array",e[e.Object=4]="Object"}(or||(or={}));class dr{components={};registerComponent(e,t){this.components[e]=t}getComponent(e){return this.components[e]}}const ur=O(null);function hr({components:t,children:a}){const n=A(()=>{const e=new dr;for(const[r,a]of Object.entries(t))e.registerComponent(r,a);return e},[t]);return e(r,{children:e(ur.Provider,{value:n,children:a})})}function mr(){return I(ur)}function pr(e){const t=I(ur);if(t)return t.getComponent(e)}const fr=O(null);function gr(){return I(fr)}function yr(e,t,r="inline"){return`artifact:${e}:${t}:${r}`}function br(e){return`file:${e}`}function vr(e){return e.startsWith("artifact:")?{scheme:"artifact",path:e.slice(9).trim()}:e.startsWith("image:")?{scheme:"image",path:e.slice(6).trim()}:e.startsWith("store:")?{scheme:"store",path:e.slice(6).trim()}:e.startsWith("document://")?{scheme:"document",path:e.slice(11).trim()}:e.startsWith("collection:")?{scheme:"collection",path:e.slice(11).trim()}:{scheme:"standard",path:e}}function xr(e,t){switch(e){case"store":case"document":return t?`/store/objects/${t}`:null;case"collection":return t?`/store/collections/${t}`:null;default:return null}}function wr({rawUrl:e,artifactRunId:t,disposition:r="inline"}){const{client:a}=be(),n=gr(),i=C(a);i.current=a;const s=C(n);s.current=n;const{scheme:o,path:l}=vr(e),c=xr(o,l),[d,u]=k(()=>{if(c)return{url:c,isLoading:!1,error:void 0};if("standard"===o)return{url:e,isLoading:!1,error:void 0};if(n&&("artifact"===o||"image"===o)){let e;e="artifact"===o&&t&&!l.startsWith("agents/")?yr(t,l,r):br(l);const a=n.getUrl(e);if(a)return{url:a,isLoading:!1,error:void 0}}return{url:void 0,isLoading:!0,error:void 0}}),[h,m]=k(0),p=j(async()=>{if(c||"standard"===o)return;if("artifact"!==o&&"image"!==o)return void u({url:void 0,isLoading:!1,error:`Unknown scheme: ${o}`});u(e=>({...e,isLoading:!0,error:void 0}));const e=i.current,a=s.current;try{let n;if("artifact"===o)if(t&&!l.startsWith("agents/")){const i=yr(t,l,r);if(a)n=await a.getOrFetch(i,async()=>(await e.files.getArtifactDownloadUrl(t,l,r)).url);else{n=(await e.files.getArtifactDownloadUrl(t,l,r)).url}}else{const t=br(l);if(a)n=await a.getOrFetch(t,async()=>(await e.files.getDownloadUrl(l)).url);else{n=(await e.files.getDownloadUrl(l)).url}}else{const t=br(l);if(a)n=await a.getOrFetch(t,async()=>(await e.files.getDownloadUrl(l)).url);else{n=(await e.files.getDownloadUrl(l)).url}}u({url:n,isLoading:!1,error:void 0})}catch(e){const t=e instanceof Error?e.message:"Failed to resolve URL";console.error("Failed to resolve URL:",l,e),u({url:void 0,isLoading:!1,error:t})}},[o,l,t,r,c]);S(()=>{if(d.url&&!d.error)return;let e=!1;return e||(async()=>{await p()})(),()=>{e=!0}},[p,h,d.url,d.error]);const f=j(()=>{u({url:void 0,isLoading:!0,error:void 0}),m(e=>e+1)},[]);return{url:d.url,isLoading:d.isLoading,error:d.error,scheme:o,retry:f}}const Nr={chart:{icon:W,label:"chart",defaultHeight:200},mermaid:{icon:_,label:"diagram",defaultHeight:150},proposal:{icon:M,label:"options",defaultHeight:100},code:{icon:z,label:"code",defaultHeight:80},image:{icon:U,label:"image",defaultHeight:150},link:{icon:K,label:"link",defaultHeight:24},expand:{icon:q,label:"content",defaultHeight:100},table:{icon:V,label:"table",defaultHeight:150},markdown:{icon:D,label:"content",defaultHeight:100},"fusion-fragment":{icon:z,label:"fragment",defaultHeight:150}};function kr({type:r,error:a,onRetry:n,message:i,height:s}){const o=Nr[r],l=s??o.defaultHeight,c="link"===r;if(a)return t("div",{className:"flex items-center gap-2 rounded border border-destructive/30 bg-destructive/5 text-destructive "+(c?"inline-flex px-2 py-1 text-sm":"p-4"),style:c?void 0:{minHeight:l},children:[t("span",{className:"text-destructive",children:["Failed to load ",o.label]}),n&&e("button",{onClick:n,className:"ml-2 rounded bg-destructive/10 px-2 py-1 text-xs hover:bg-destructive/20 transition-colors",children:"Retry"})]});const d=o.icon;return c?t("span",{className:"inline-flex items-center gap-1 text-muted animate-pulse",children:[e(d,{className:"h-3 w-3"}),e("span",{children:i||`Loading ${o.label}...`})]}):t("div",{className:"flex flex-col items-center justify-center gap-3 rounded border border-border bg-muted/30 animate-pulse",style:{minHeight:l},children:[e(d,{className:"h-8 w-8 text-muted"}),e("span",{className:"text-sm text-muted",children:i||`Loading ${o.label}...`}),e("div",{className:"flex gap-1",children:[...Array(3)].map((t,r)=>e("div",{className:"h-2 w-2 rounded-full bg-muted animate-bounce",style:{animationDelay:150*r+"ms"}},r))})]})}class Cr extends N.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`CodeBlock rendering error (${this.props.type}):`,e,t),this.props.onError?.(e)}handleRetry=()=>{this.setState({hasError:!1,error:void 0})};render(){if(this.state.hasError){const{type:r,fallbackCode:a}=this.props;return t("div",{className:"space-y-2",children:[e(kr,{type:r,error:this.state.error?.message||"Rendering failed",onRetry:this.handleRetry}),a&&t("details",{className:"text-sm",children:[e("summary",{className:"cursor-pointer text-muted hover:text-foreground",children:"Show raw content"}),e("pre",{className:"mt-2 overflow-x-auto rounded bg-muted/50 p-2 text-xs",children:e("code",{children:a})})]})]})}return this.props.children}}function Sr({node:t,href:r,children:a,className:n,artifactRunId:i,ExistingLink:s,...o}){const l=r||"",{scheme:c,path:d}=vr(l),u=xr(c,d);return u?"function"==typeof s?e(s,{node:t,href:u,...o,children:a}):e("a",{href:u,...o,className:n,target:"_blank",rel:"noopener noreferrer",children:a}):"standard"===c?"function"==typeof s?e(s,{node:t,href:r,...o,children:a}):e("a",{href:r,...o,className:n,target:"_blank",rel:"noopener noreferrer",children:a}):e(Ar,{rawHref:l,artifactRunId:i,className:n,rest:o,children:a})}function Ar({rawHref:t,artifactRunId:r,className:a,children:n,rest:i}){const{url:s,isLoading:o,error:l,retry:c}=wr({rawUrl:t,artifactRunId:r,disposition:"attachment"});return o?e("span",{className:"inline-flex items-center gap-1 text-muted",children:e(kr,{type:"link"})}):l?e("span",{className:"inline-flex items-center gap-1",children:e(kr,{type:"link",error:l,onRetry:c})}):e("a",{href:s||"#",...i,className:a,target:"_blank",rel:"noopener noreferrer",children:n})}function jr({node:t,src:r,alt:a,className:n,artifactRunId:i,ExistingImg:s,...o}){const l=r||"",{scheme:c}=vr(l);return"standard"===c?"function"==typeof s?e(s,{node:t,src:r,alt:a,...o}):e("img",{src:r,alt:a,className:n,...o}):e(Or,{rawSrc:l,alt:a,artifactRunId:i,className:n,rest:o})}function Or({rawSrc:t,alt:r,artifactRunId:a,className:n,rest:i}){const{url:s,isLoading:o,error:l,retry:c}=wr({rawUrl:t,artifactRunId:a,disposition:"inline"});return o?e(kr,{type:"image",message:r?`Loading ${r}...`:void 0}):l?e(kr,{type:"image",error:l,onRetry:c}):s?e("img",{src:s,alt:r,className:n,...i}):null}function Ir(...e){return ke(w(e))}function Pr({error:r,chartTitle:a}){return e("div",{className:"flex items-center justify-center h-full bg-red-50 dark:bg-red-950 rounded-md p-4",children:t("div",{className:"text-center",children:[t("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:["Cannot render ",a||"Vega-Lite"," chart"]}),e("p",{className:"text-xs text-red-500 dark:text-red-500 mt-1 max-w-xs truncate",children:r})]})})}function Lr({isOpen:r,onClose:a,title:n,description:i,children:s}){return e(xe.Root,{open:r,onOpenChange:e=>!e&&a(),children:t(xe.Portal,{children:[e(xe.Overlay,{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm transition-all duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),t(xe.Content,{className:"fixed inset-2 sm:inset-4 z-50 flex flex-col bg-white dark:bg-gray-900 rounded-xl shadow-2xl transition-all duration-300 ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-98 data-[state=open]:zoom-in-98 data-[state=closed]:slide-out-to-bottom-2 data-[state=open]:slide-in-from-bottom-2",onEscapeKeyDown:a,children:[e(xe.Close,{asChild:!0,children:e("button",{onClick:a,className:"absolute top-3 right-3 z-10 p-2 rounded-lg bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors duration-150 shadow-sm","aria-label":"Close fullscreen",children:e(X,{className:"w-5 h-5 text-gray-600 dark:text-gray-300"})})}),e("div",{className:"flex-1 overflow-auto p-4 sm:p-6 animate-in fade-in-0 duration-500 delay-150",children:s}),e("div",{className:"flex items-center justify-between px-4 sm:px-6 py-3 border-t border-gray-200 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-800/50 rounded-b-xl",children:t("div",{className:"flex flex-col",children:[e(xe.Title,{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:n||"Dashboard"}),i&&e(xe.Description,{className:"text-sm text-gray-500 dark:text-gray-400 mt-0.5",children:i})]})})]})]})})}const $r={categorical:["#6366f1","#8b5cf6","#ec4899","#f43f5e","#f97316","#eab308","#22c55e","#14b8a6","#06b6d4","#3b82f6"],blues:["#dbeafe","#93c5fd","#3b82f6","#1d4ed8","#1e3a8a"],purples:["#f3e8ff","#c4b5fd","#8b5cf6","#6d28d9","#4c1d95"],diverging:["#ef4444","#fca5a5","#fef3c7","#86efac","#22c55e"]};function Er(e,t){if(!e||!e.encoding)return!1;for(const r of t)for(const t of Object.values(e.encoding))if(t&&"object"==typeof t&&t.field===r)return!0;if(Array.isArray(e.layer))for(const r of e.layer)if(Er(r,t))return!0;return!1}function Rr(e,t){if(!e)return!1;const r=e=>{if(!e)return!1;const r=e.color?.field;return r&&t.includes(r)};if(r(e.encoding))return!0;if(Array.isArray(e.layer))for(const t of e.layer)if(r(t.encoding))return!0;return!1}function Fr(e,t=[]){const r=[];if(!e||"object"!=typeof e)return r;if(e.data&&"object"==typeof e.data){const a=e.data.url;"string"==typeof a&&a.startsWith("artifact:")&&r.push({path:[...t,"data"],artifactPath:a.replace(/^artifact:/,"").trim()})}const a=["layer","vconcat","hconcat","concat","spec","repeat","facet"];for(const n of a)if(n in e){const a=e[n];Array.isArray(a)?a.forEach((e,a)=>{r.push(...Fr(e,[...t,n,String(a)]))}):"object"==typeof a&&null!==a&&r.push(...Fr(a,[...t,n]))}return r}const Tr=P(function({spec:a,artifactRunId:n}){const{title:i,description:s,spec:o,options:l}=a,[c,d]=k(!1),[u,h]=k(!1),[m,p]=k(null),[f,g]=k(!1),y=C(null),b=C(null),v=C(null),{client:x}=be(),w=gr(),N=C(x);N.current=x;const O=C(w);O.current=w;const[I,P]=k(null),[L,$]=k(!1),[E,R]=k(null),F=l?.mode||"chart",T="dashboard"===F,z=l?.enableFullscreen??T,D=l?.height||function(e,t){if("chart"===t)return 280;let r=1;if(e.vconcat)r=Array.isArray(e.vconcat)?e.vconcat.length:1;else if(e.concat){const t=e.columns||2,a=Array.isArray(e.concat)?e.concat.length:1;r=Math.ceil(a/t)}else e.facet&&(r=2);return Math.max(500,280*r+40)}(o,F);S(()=>{const e=Fr(o);if(0===e.length)return P(o),$(!1),void R(null);let t=!1;$(!0),R(null);return(async()=>{const r=new Map,a=N.current,i=O.current;for(const s of e)try{const e=s.path.join(".");let t;if(n&&!s.artifactPath.startsWith("agents/")){const e=yr(n,s.artifactPath,"inline");if(i)t=await i.getOrFetch(e,async()=>(await a.files.getArtifactDownloadUrl(n,s.artifactPath,"inline")).url);else{t=(await a.files.getArtifactDownloadUrl(n,s.artifactPath,"inline")).url}}else{const e=br(s.artifactPath);if(i)t=await i.getOrFetch(e,async()=>(await a.files.getDownloadUrl(s.artifactPath)).url);else{t=(await a.files.getDownloadUrl(s.artifactPath)).url}}const o=await fetch(t);if(!o.ok)throw new Error(`Failed to fetch artifact data: ${o.statusText}`);let l;if(s.artifactPath.toLowerCase().endsWith(".csv")){const e=await o.text();l=we.parse(e,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}).data}else{const e=await o.json();l=Array.isArray(e)?e:[e]}r.set(e,l)}catch(e){return console.error(`Failed to resolve artifact: ${s.artifactPath}`,e),void(t||R(`Failed to load data from artifact: ${s.artifactPath}`))}if(!t){const e=function(e,t){const r=JSON.parse(JSON.stringify(e));for(const[e,a]of t){const t=e.split(".");let n=r;for(let e=0;e<t.length-1&&void 0!==n[t[e]];e++)n=n[t[e]];const i=t[t.length-1];n[i]&&"object"==typeof n[i]&&(delete n[i].url,n[i].values=a)}return r}(o,r);P(e),$(!1)}})(),()=>{t=!0}},[o,n]);const[V,K]=k(!1),U=C(!1);S(()=>{const e=()=>{const e=document.documentElement.classList.contains("dark");e!==U.current&&(U.current=e,K(e))};e();const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]);const[M,_]=k(0),W=C(0);S(()=>{if(!v.current)return;let e;const t=new ResizeObserver(t=>{clearTimeout(e),e=setTimeout(()=>{const e=t[0]?.contentRect.width;e&&e!==W.current&&(W.current=e,_(e))},100)});t.observe(v.current);const r=v.current.clientWidth;return W.current=r,_(r),()=>{clearTimeout(e),t.disconnect()}},[]);const X=A(()=>Fr(o).length>0,[o]),Y=A(()=>{if(X&&!I)return null;let e=I||o;return e?(l?.parameterValues&&(e=function(e,t){if(!t||0===Object.keys(t).length)return e;const r=JSON.parse(JSON.stringify(e)),a=e=>{for(const r of e)r&&"object"==typeof r&&r.name&&r.name in t&&(r.value=t[r.name])};Array.isArray(r.params)&&a(r.params);const n=e=>{if(Array.isArray(e))for(const t of e)if(t&&Array.isArray(t.params)&&a(t.params),t.vconcat&&n(t.vconcat),t.hconcat&&n(t.hconcat),t.concat&&n(t.concat),Array.isArray(t.layer))for(const e of t.layer)e&&Array.isArray(e.params)&&a(e.params)};if(r.vconcat&&n(r.vconcat),r.hconcat&&n(r.hconcat),r.concat&&n(r.concat),Array.isArray(r.layer))for(const e of r.layer)e&&Array.isArray(e.params)&&a(e.params);return r}(e,l.parameterValues)),function(e){const t=JSON.parse(JSON.stringify(e)),r=["vconcat","hconcat","concat"];if(!r.some(e=>Array.isArray(t[e])))return t;const a=[];if(Array.isArray(t.params))for(const e of t.params)e&&"object"==typeof e&&e.name&&e.select&&a.push({name:e.name,param:e});if(0===a.length)return t;for(const{name:e,param:n}of a){const a=n.select?.fields||[],i="legend"===n.select?.bind;let s=null;for(const e of r)if(Array.isArray(t[e])){s=t[e];break}if(!s||0===s.length)continue;let o=0;for(let e=0;e<s.length;e++){const t=s[e];if(Er(t,a)||i&&Rr(t,a)){o=e;break}}const l=s[o];l.params||(l.params=[]),l.params.push(n),t.params=t.params.filter(t=>t.name!==e)}return Array.isArray(t.params)&&0===t.params.length&&delete t.params,t}(e)):null},[I,o,X,l?.parameterValues]),Q=j((e,t)=>{if(!e||"object"!=typeof e)return e;if(e.hconcat&&Array.isArray(e.hconcat)){const r=e.hconcat.length,a=(e.spacing??10)*(r-1),n=Math.floor((t-a)/r);return{...e,hconcat:e.hconcat.map(e=>Q(e,n))}}if(e.vconcat&&Array.isArray(e.vconcat))return{...e,vconcat:e.vconcat.map(e=>Q(e,t))};if(e.concat&&Array.isArray(e.concat)){const r=e.columns??e.concat.length,a=(e.spacing??10)*(r-1),n=Math.floor((t-a)/r);return{...e,concat:e.concat.map(e=>Q(e,n))}}const r=e.width;return"container"===r||"number"==typeof r&&r>t?{...e,width:t}:e},[]),ee=j((e,t=!1)=>{if(!Y)return null;const r=function(e){const t={background:"transparent",view:{stroke:"transparent"},range:{category:$r.categorical,diverging:$r.diverging,heatmap:$r.purples,ramp:$r.blues},mark:{tooltip:!0},bar:{tooltip:!0,cornerRadiusTopLeft:4,cornerRadiusTopRight:4},line:{tooltip:!0,strokeWidth:2.5,strokeCap:"round"},point:{tooltip:!0,size:60,filled:!0},area:{tooltip:!0,fillOpacity:.7,line:!0},rect:{tooltip:!0,cornerRadius:2},arc:{tooltip:!0,cornerRadius:4},circle:{tooltip:!0,size:80}};return e?{...t,axis:{labelColor:"#a1a1aa",titleColor:"#e4e4e7",gridColor:"#3f3f46",domainColor:"#52525b",tickColor:"#52525b",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,titleFontWeight:500},legend:{labelColor:"#a1a1aa",titleColor:"#e4e4e7",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,symbolSize:100},title:{color:"#fafafa",font:"Inter, system-ui, sans-serif",fontSize:14,fontWeight:600}}:{...t,axis:{labelColor:"#71717a",titleColor:"#3f3f46",gridColor:"#e4e4e7",domainColor:"#d4d4d8",tickColor:"#d4d4d8",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,titleFontWeight:500},legend:{labelColor:"#71717a",titleColor:"#3f3f46",labelFont:"Inter, system-ui, sans-serif",titleFont:"Inter, system-ui, sans-serif",labelFontSize:11,titleFontSize:12,symbolSize:100},title:{color:"#18181b",font:"Inter, system-ui, sans-serif",fontSize:14,fontWeight:600}}}(V),a=t?"undefined"!=typeof window?Math.min(window.innerWidth-80,1400):1200:M>0?M-24:500,n="vconcat"in Y||"hconcat"in Y||"concat"in Y,s=n?{type:"pad",contains:"padding"}:{type:"fit",contains:"padding"};let o=Y;n&&a&&(o=Q(Y,a));const l=o.width,c=n?void 0:"container"===l?a:l??a,{width:d,...u}=o;return{$schema:"https://vega.github.io/schema/vega-lite/v6.json",...!n&&c?{width:c}:{},height:t?void 0:e,autosize:s,...n?o:u,...i&&!Y.title?{title:i}:{},config:{...r,...Y.config}}},[Y,i,V,M,Q]),te=j(async()=>{const e=f?b.current:y.current;if(e&&!u)try{(await e.toCanvas(2)).toBlob(async e=>{e&&(await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),h(!0),setTimeout(()=>h(!1),2e3))},"image/png")}catch(e){console.error("Failed to copy chart:",e)}},[u,f]),re=j(async()=>{const e=f?b.current:y.current;if(e&&!c){d(!0);try{const t=await e.toImageURL("png",2),r=document.createElement("a");r.download=`${i||"chart"}.png`,r.href=t,r.click()}catch(e){console.error("Failed to export chart:",e)}finally{d(!1)}}},[i,c,f]),ae=j(e=>{y.current=e,p(null)},[]),ne=j(e=>{b.current=e},[]),ie=j(e=>{console.error("Vega-Lite rendering error:",e),p(e instanceof Error?e.message:"Unknown error")},[]),se=j(()=>{g(e=>!e)},[]);S(()=>{p(null)},[o]);const oe=({className:r})=>t("div",{className:Ir("flex items-center gap-2",r),children:[t("button",{onClick:te,disabled:u,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 flex items-center gap-1",title:"Copy to clipboard",children:[e(u?B:H,{className:"w-3 h-3"}),u?"Copied":"Copy"]}),t("button",{onClick:re,disabled:c,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1",title:"Export as PNG",children:[e(q,{className:"w-3 h-3"}),c?"Exporting...":"Export"]}),z&&t("button",{onClick:se,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors flex items-center gap-1",title:f?"Exit fullscreen":"Fullscreen",children:[e(f?G:Z,{className:"w-3 h-3"}),f?"Exit":"Fullscreen"]})]});if(L||X&&!I)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||"Chart"})}),e("div",{className:"flex items-center justify-center bg-gray-50 dark:bg-gray-800 rounded",style:{width:"100%",height:D},children:t("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[e(J,{className:"w-5 h-5 animate-spin"}),e("span",{className:"text-sm",children:"Loading data from artifacts..."})]})})]})});if(E)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||"Chart"})}),e("div",{style:{width:"100%",height:D},children:e(Pr,{error:E,chartTitle:i})})]})});if(m)return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[e("div",{className:"flex items-center justify-between",children:e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||"Chart"})}),e("div",{style:{width:"100%",height:D},children:e(Pr,{error:m,chartTitle:i})})]})});const le=ee(D),ce=ee(0,!0);return le?("undefined"!=typeof window&&localStorage.getItem("DEBUG_VEGA_RENDERS")&&console.log("VegaLite rendering with spec:",{title:i,hasData:!!le.data?.values,dataLength:le.data?.values?.length}),t(r,{children:[e("div",{className:Ir("bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",T&&"border-2"),children:t("div",{className:"flex flex-col gap-2 p-3",children:[t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center gap-2",children:[e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:i||(T?"Dashboard":"Chart")}),T&&e("span",{className:"text-xs px-2 py-0.5 rounded-full bg-indigo-100 dark:bg-indigo-900 text-indigo-700 dark:text-indigo-300",children:"Interactive"})]}),e(oe,{})]}),s&&e("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s}),e("div",{ref:v,className:"bg-white dark:bg-gray-900 rounded overflow-hidden",style:{width:"100%",height:D,minWidth:0},children:e(Ne,{spec:le,onEmbed:e=>ae(e.view),onError:ie,options:{renderer:l?.renderer||"canvas",actions:!1}})})]})}),t(Lr,{isOpen:f,onClose:()=>g(!1),title:i||(T?"Dashboard":"Chart"),description:s,children:[e("div",{className:"w-full h-full min-h-[calc(100vh-200px)]",children:ce&&e(Ne,{spec:ce,onEmbed:e=>ne(e.view),onError:ie,options:{renderer:l?.renderer||"canvas",actions:!1}})}),e("div",{className:"absolute bottom-6 right-6",children:e(oe,{className:"bg-white dark:bg-gray-800 rounded-lg shadow-lg p-2 border border-gray-200 dark:border-gray-700"})})]})]})):null},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)&&e.artifactRunId===t.artifactRunId),zr=["#4f46e5","#06b6d4","#22c55e","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6"];class Dr extends L{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Chart rendering error (${this.props.chartType}):`,e,t)}render(){return this.state.hasError?e("div",{className:"flex items-center justify-center h-full bg-red-50 dark:bg-red-950 rounded-md p-4",children:t("div",{className:"text-center",children:[t("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:["Cannot render ",this.props.chartType," chart"]}),e("p",{className:"text-xs text-red-500 dark:text-red-500 mt-1 max-w-xs truncate",children:this.state.error?.message||"Unknown error"})]})}):this.props.children}}function Vr(e){if(!isFinite(e))return String(e);const t=Math.abs(e);return t>=1e9?(e/1e9).toFixed(1)+"B":t>=1e6?(e/1e6).toFixed(1)+"M":t>=1e3?(e/1e3).toFixed(1)+"K":e.toLocaleString()}const qr=P(function({spec:t,artifactRunId:r}){return function(e){return"vega-lite"===e.library}(t)?e(Tr,{spec:t,artifactRunId:r}):e(Ur,{spec:t})},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)&&e.artifactRunId===t.artifactRunId);function Kr(e){if(e.chart)return e.chart;const t={BarChart:"bar",LineChart:"line",AreaChart:"area",PieChart:"pie",ScatterChart:"scatter",RadarChart:"radar",FunnelChart:"funnel",Treemap:"treemap",ComposedChart:"composed",RadialBarChart:"radialBar"};return e.type&&t[e.type]?t[e.type]:"bar"}const Ur=P(function({spec:a}){const n={...a,chart:Kr(a),xKey:a.xKey||a.x_axis?.data_key||"name",series:a.series||a.bars?.map(e=>({key:e.data_key||e.dataKey,color:e.fill||e.color,label:e.name}))||a.lines?.map(e=>({key:e.data_key||e.dataKey,color:e.stroke||e.color,label:e.name}))||[]},{chart:i,title:s,description:o,data:l,xKey:c,series:d,yAxis:u,options:h,nameKey:m,valueKey:p,yKey:f,axisKey:g,dataKey:y}=n,[b,v]=k(!1),[x,w]=k(!1),N=C(null),S=j(async()=>{if(N.current&&!x)try{const e=await ve(N.current,{backgroundColor:"#ffffff",pixelRatio:2}),t=await fetch(e),r=await t.blob();await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),w(!0),setTimeout(()=>w(!1),2e3)}catch(e){console.error("Failed to copy chart:",e)}},[x]),A=j(async()=>{if(N.current&&!b){v(!0);try{const e=await ve(N.current,{backgroundColor:"#ffffff",pixelRatio:2}),t=document.createElement("a");t.download=`${s||"chart"}.png`,t.href=e,t.click()}catch(e){console.error("Failed to export chart:",e)}finally{v(!1)}}},[s,b]),O=d||[],I=l||[],P=t(r,{children:[e(Ce,{dataKey:c,tick:{fontSize:12}}),e(Se,{yAxisId:"left",tickFormatter:Vr,label:u?.left?.label?{value:u.left.label,angle:-90,position:"insideLeft"}:void 0}),O.some(e=>"right"===e.yAxisId)&&e(Se,{yAxisId:"right",orientation:"right",tickFormatter:Vr,label:u?.right?.label?{value:u.right.label,angle:-90,position:"insideRight"}:void 0})]}),L=t(r,{children:[e(Ae,{strokeDasharray:"3 3"}),e(je,{formatter:e=>"number"==typeof e?Vr(e):String(e)}),e(Oe,{}),h?.referenceZero&&e(Ie,{y:0,stroke:"#999",strokeDasharray:"3 3"})]}),$=()=>O.map((t,r)=>{const a=t.color||zr[r%zr.length],n=t.yAxisId||"left";return"line"===i?e(Fe,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:a,dot:t.dot??!1,yAxisId:n},t.key):"area"===i?e(Te,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:a,fill:a,fillOpacity:.3,stackId:h?.stacked?t.stackId||"stack":void 0,yAxisId:n},t.key):"bar"===i||"bar"===t.type?e(ze,{dataKey:t.key,name:t.label||t.key,fill:a,stackId:h?.stacked?t.stackId||"stack":void 0,yAxisId:n},t.key):"area"===t.type?e(Te,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:a,fill:a,fillOpacity:.3,stackId:h?.stacked?t.stackId||"stack":void 0,yAxisId:n},t.key):e(Fe,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:a,dot:t.dot??!1,yAxisId:n},t.key)});return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm my-5",children:t("div",{className:"flex flex-col gap-2 p-4",children:[t("div",{className:"flex items-center justify-between",children:[e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:s||"Chart"}),t("div",{className:"flex items-center gap-2 print:hidden chart-actions",children:[t("button",{onClick:S,disabled:x,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 flex items-center gap-1",title:"Copy to clipboard",children:[e(x?B:H,{className:"w-3 h-3"}),x?"Copied":"Copy"]}),t("button",{onClick:A,disabled:b,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1",title:"Export as PNG",children:[e(q,{className:"w-3 h-3"}),b?"Exporting...":"Export"]})]})]}),o&&e("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:o}),e("div",{ref:N,className:"bg-white dark:bg-gray-900 rounded",style:{width:"100%",height:280,minWidth:0},children:e(Dr,{chartType:i,children:e(Pe,{width:"100%",height:"100%",children:(()=>{switch(i){case"bar":return t(Re,{data:I,children:[P,L,$()]});case"line":return t(Ee,{data:I,children:[P,L,$()]});case"area":return t($e,{data:I,children:[P,L,$()]});case"composed":default:return t(Le,{data:I,children:[P,L,$()]});case"pie":return t(De,{children:[e(Ve,{data:I,dataKey:p||"value",nameKey:m||"name",cx:"50%",cy:"50%",innerRadius:h?.innerRadius||0,outerRadius:100,label:!1!==h?.showLabels,children:I.map((t,r)=>e(qe,{fill:zr[r%zr.length]},`cell-${r}`))}),e(je,{formatter:e=>"number"==typeof e?Vr(e):String(e)}),e(Oe,{})]});case"scatter":return(()=>{const r=c,a=f||"y";return t(Ke,{children:[e(Ae,{strokeDasharray:"3 3"}),e(Ce,{dataKey:r,name:r,tick:{fontSize:12}}),e(Se,{dataKey:a,name:a,tickFormatter:Vr}),e(je,{formatter:e=>"number"==typeof e?Vr(e):String(e)}),e(Oe,{}),O.length>0?O.map((t,r)=>e(Ue,{name:t.label||t.key,data:I,fill:t.color||zr[r%zr.length]},t.key)):e(Ue,{name:"Data",data:I,fill:zr[0]})]})})();case"radar":return(()=>{const r=g||c;return t(Me,{cx:"50%",cy:"50%",outerRadius:100,data:I,children:[e(_e,{}),e(We,{dataKey:r,tick:{fontSize:11}}),e(Je,{tickFormatter:Vr}),O.map((t,r)=>e(Be,{name:t.label||t.key,dataKey:t.key,stroke:t.color||zr[r%zr.length],fill:t.color||zr[r%zr.length],fillOpacity:.3},t.key)),e(je,{formatter:e=>"number"==typeof e?Vr(e):String(e)}),e(Oe,{})]})})();case"radialBar":return(()=>{const r=m||"name",a=p||"value",n=h?.startAngle??180,i=h?.endAngle??0;return t(He,{cx:"50%",cy:"50%",innerRadius:h?.innerRadius??30,outerRadius:100,barSize:15,data:I,startAngle:n,endAngle:i,children:[e(Ge,{label:{position:"insideStart",fill:"#fff",fontSize:11},background:!0,dataKey:a,children:I.map((t,r)=>e(qe,{fill:zr[r%zr.length]},`cell-${r}`))}),e(je,{formatter:e=>"number"==typeof e?Vr(e):String(e)}),e(Oe,{iconSize:10,layout:"vertical",verticalAlign:"middle",align:"right",formatter:(e,t)=>{const n=I.find(n=>n[r]===e||n[a]===t.payload?.value);return n?n[r]:e}})]})})();case"funnel":return(()=>{const r=m||"name",a=p||"value";return t(Ze,{children:[e(je,{formatter:e=>"number"==typeof e?Vr(e):String(e)}),t(Xe,{dataKey:a,data:I,isAnimationActive:!0,children:[I.map((t,r)=>e(qe,{fill:zr[r%zr.length]},`cell-${r}`)),!1!==h?.showLabels&&e(Ye,{position:"center",fill:"#fff",stroke:"none",dataKey:r})]})]})})();case"treemap":return e(Qe,{data:I,dataKey:y||p||"value",aspectRatio:4/3,stroke:"#fff",fill:"#4f46e5",content:({x:a,y:n,width:i,height:s,name:o,value:l,index:c})=>t("g",{children:[e("rect",{x:a,y:n,width:i,height:s,style:{fill:zr[c%zr.length],stroke:"#fff",strokeWidth:2}}),i>50&&s>30&&t(r,{children:[e("text",{x:a+i/2,y:n+s/2-7,textAnchor:"middle",fill:"#fff",fontSize:12,children:o}),e("text",{x:a+i/2,y:n+s/2+10,textAnchor:"middle",fill:"#fff",fontSize:11,children:Vr(l)})]})]})})}})()})})})]})})},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec));function Mr({code:t,className:r}){const a=C(null),[n,i]=k(null),[s,o]=k(null),l=$().replace(/:/g,"_");return S(()=>{let e=!1;return(async()=>{if(!t.trim())return i(null),void o(null);try{o(null);const r=`mermaid-${l}-${Date.now()}`,{svg:a}=await et.render(r,t.trim());e||i(a)}catch(t){if(!e){const e=t instanceof Error?t.message:"Failed to render mermaid diagram";o(e),i(null)}}})(),()=>{e=!0}},[t,l]),s?null:e("div",n?{ref:a,className:`my-4 overflow-x-auto ${r||""}`,dangerouslySetInnerHTML:{__html:n}}:{className:`my-4 p-4 bg-gray-50 dark:bg-gray-800 rounded-lg animate-pulse ${r||""}`,children:e("div",{className:"h-32 bg-gray-200 dark:bg-gray-700 rounded"})})}et.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"inherit",suppressErrorRendering:!0});const _r={default:{border:"border-l-attention",bg:"bg-amber-50 dark:bg-amber-900/20",icon:"text-attention"},warning:{border:"border-l-destructive",bg:"bg-red-50 dark:bg-red-900/20",icon:"text-destructive"},info:{border:"border-l-info",bg:"bg-blue-50 dark:bg-blue-900/20",icon:"text-info"},success:{border:"border-l-success",bg:"bg-green-50 dark:bg-green-900/20",icon:"text-success"}},Wr={default:ee,warning:Q,info:M,success:Y};function Jr({question:r,description:a,options:n,onSelect:i,onMultiSelect:s,onSubmit:l,allowFreeResponse:c=!1,multiSelect:d=!1,placeholder:u="Type your response...",isLoading:h=!1,icon:m,variant:p="default",hideIcon:f=!1,hideBorder:g=!1,className:y,cardClassName:b,headerClassName:v,iconClassName:x,questionClassName:w,descriptionClassName:k,optionsClassName:C,buttonClassName:S,inputContainerClassName:A,inputClassName:j,submitButtonClassName:O}){const[I,P]=N.useState(""),[L,$]=N.useState(new Set),E=N.useRef(null),R=_r[p],F=Wr[p],T=()=>{I.trim()&&l&&(l(I.trim()),P(""))},z=g?"":`border-l-4 ${R.border}`;return e("div",{className:`my-4 font-sans ${y||""}`,children:t("div",{className:`${z} ${R.bg} rounded-r-lg shadow-sm ${b||""}`,children:[e("div",{className:`px-4 py-3 ${v||""}`,children:t("div",{className:"flex items-start gap-3",children:[!f&&e("div",{className:`flex-shrink-0 mt-0.5 ${R.icon} ${x||""}`,children:m||e(F,{className:"size-5"})}),t("div",{className:"flex-1 min-w-0",children:[e("h4",{className:`text-sm font-semibold text-gray-900 dark:text-gray-100 ${w||""}`,children:r}),a&&e("p",{className:`mt-1 text-sm text-gray-600 dark:text-gray-400 ${k||""}`,children:a})]})]})}),n&&n.length>0&&e("div",{className:`px-4 pb-3 pt-1 ${C||""}`,children:d?t("div",{className:"space-y-2",children:[n.map(r=>t("label",{className:`flex items-start gap-3 px-4 py-3 rounded-lg cursor-pointer transition-colors\n ${L.has(r.id)?"bg-blue-50 dark:bg-blue-900/30 border border-blue-300 dark:border-blue-700":"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700"}\n ${h?"opacity-50 cursor-not-allowed":""}`,children:[e("input",{type:"checkbox",checked:L.has(r.id),onChange:()=>{return e=r.id,void $(t=>{const r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r});var e},disabled:h,className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700"}),t("div",{className:"flex-1 overflow-hidden",children:[t("div",{className:"flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-gray-100 break-words",children:[r.icon,e("span",{className:"break-words",children:r.label})]}),r.description&&e("div",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400 break-words whitespace-pre-wrap",children:r.description})]})]},r.id)),e("div",{className:"pt-2",children:t(o,{size:"sm",onClick:()=>{L.size>0&&s&&(s(Array.from(L)),$(new Set))},disabled:h||0===L.size,className:"flex items-center gap-2",children:[e(te,{className:"size-4"}),"Submit Selection",L.size>0?` (${L.size})`:""]})})]}):e("div",{className:"flex flex-col gap-2 w-full",children:n.map(r=>e("button",{onClick:()=>i?.(r.id),disabled:h,className:`w-full text-left px-4 py-3 rounded-lg border border-gray-200 dark:border-gray-700\n bg-white dark:bg-gray-800\n hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600\n focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1\n transition-colors\n ${h?"opacity-50 cursor-not-allowed":"cursor-pointer"}\n ${S||""}`,children:t("div",{className:"flex items-start gap-3",children:[r.icon&&e("span",{className:"flex-shrink-0 mt-0.5 text-gray-500 dark:text-gray-400",children:r.icon}),t("div",{className:"flex-1 overflow-hidden",children:[e("div",{className:"font-medium text-sm text-gray-900 dark:text-gray-100 break-words",children:r.label}),r.description&&e("div",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400 break-words whitespace-pre-wrap",children:r.description})]})]})},r.id))})}),c&&e("div",{className:`px-4 pb-3 pt-1 ${A||""}`,children:t("div",{className:"flex gap-2",children:[e("input",{ref:E,type:"text",value:I,onChange:e=>P(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),T())},placeholder:u,disabled:h,className:`flex-1 px-3 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-800 focus:ring-2 focus:ring-blue-500 focus:border-transparent ${j||""}`}),e(o,{size:"sm",onClick:T,disabled:h||!I.trim(),className:O,children:h?"...":"Send"})]})})]})})}function Br({runId:e,path:t,parseJson:r=!0}){const{client:a}=be(),n=gr(),i=C(a);i.current=a;const s=C(n);s.current=n;const[o,l]=k({data:void 0,rawContent:void 0,isLoading:!0,error:void 0,contentType:void 0}),[c,d]=k(0),u=j(async()=>{if(!e)return void l({data:void 0,rawContent:void 0,isLoading:!1,error:"No run ID provided",contentType:void 0});if(!t)return void l({data:void 0,rawContent:void 0,isLoading:!1,error:"No artifact path provided",contentType:void 0});l(e=>({...e,isLoading:!0,error:void 0}));const a=i.current,n=s.current,o=function(e){const t=e.split(".").pop()?.toLowerCase();switch(t){case"json":return"json";case"md":case"txt":case"csv":case"yaml":case"yml":default:return"text";case"png":case"jpg":case"jpeg":case"gif":case"webp":case"pdf":return"binary"}}(t);try{const i=yr(e,t,"inline");let s;if(n)s=await n.getOrFetch(i,async()=>(await a.files.getArtifactDownloadUrl(e,t,"inline")).url);else{s=(await a.files.getArtifactDownloadUrl(e,t,"inline")).url}const c=await fetch(s);if(!c.ok)throw new Error(`Failed to fetch artifact: ${c.status} ${c.statusText}`);if("binary"===o)return void l({data:s,rawContent:void 0,isLoading:!1,error:void 0,contentType:o});const d=await c.text();let u;if(r&&"json"===o)try{u=JSON.parse(d)}catch{u=d}else u=d;l({data:u,rawContent:d,isLoading:!1,error:void 0,contentType:o})}catch(e){const r=e instanceof Error?e.message:"Failed to fetch artifact";console.error("Failed to fetch artifact content:",t,e),l({data:void 0,rawContent:void 0,isLoading:!1,error:r,contentType:o})}},[e,t,r]);S(()=>{u()},[u,c]);const h=j(()=>{l({data:void 0,rawContent:void 0,isLoading:!0,error:void 0,contentType:void 0}),d(e=>e+1)},[]);return{data:o.data,rawContent:o.rawContent,isLoading:o.isLoading,error:o.error,contentType:o.contentType,retry:h}}function Hr({content:r}){const{headers:a,rows:n}=A(()=>{if(!Array.isArray(r)||0===r.length)return{headers:[],rows:[]};const e=r[0];if("object"!=typeof e||null===e)return{headers:[],rows:[]};const t=Object.keys(e),a=r.map(e=>t.map(t=>{const r=e[t];return null==r?"":"object"==typeof r?JSON.stringify(r):String(r)}));return{headers:t,rows:a}},[r]);return 0===a.length?e(kr,{type:"table",error:"No table data found"}):t("div",{className:"overflow-x-auto",children:[t("table",{className:"min-w-full text-sm border-collapse",children:[e("thead",{children:e("tr",{className:"border-b",children:a.map((t,r)=>e("th",{className:"px-3 py-2 text-left font-medium text-muted",children:t},r))})}),e("tbody",{children:n.slice(0,100).map((t,r)=>e("tr",{className:"border-b border-muted/20",children:t.map((t,r)=>e("td",{className:"px-3 py-2",children:t},r))},r))})]}),n.length>100&&t("div",{className:"text-sm text-muted py-2",children:["Showing 100 of ",n.length," rows"]})]})}function Gr({content:t,path:r}){const a=r.split(".").pop()?.toLowerCase()||"",n="string"==typeof t?t:JSON.stringify(t,null,2);return e("pre",{className:"overflow-x-auto p-3 bg-muted/10 rounded text-sm",children:e("code",{className:`language-${a}`,children:n})})}function Zr({content:t,path:r}){const a="string"==typeof t?t:"",n=r.split("/").pop()||"Artifact image";return e("img",{src:a,alt:n,className:"max-w-full h-auto rounded",loading:"lazy"})}function Xr({content:t,renderType:r,path:a,runId:n,contentType:i}){const s=A(()=>"auto"!==r?r:function(e,t,r){const a=t.split(".").pop()?.toLowerCase();if(["png","jpg","jpeg","gif","webp","svg"].includes(a||""))return"image";if("md"===a)return"markdown";if("csv"===a)return"table";if("json"===r&&"object"==typeof e&&null!==e){const t=e;if("string"==typeof t.$schema&&t.$schema.includes("vega"))return"vega-lite";if("vega-lite"===t.library&&"spec"in t)return"vega-lite";if(("chart"in t||"type"in t)&&"data"in t&&Array.isArray(t.data))return"chart";if("template"in t&&"data"in t)return"fusion-fragment";if(Array.isArray(e)&&e.length>0&&"object"==typeof e[0])return"table"}return"code"}(t,a,i),[t,a,i,r]);switch(s){case"chart":return e(Cr,{type:"chart",fallbackCode:JSON.stringify(t,null,2),children:e(qr,{spec:t,artifactRunId:n})});case"vega-lite":{const r="object"==typeof t&&null!==t&&"library"in t?t:{library:"vega-lite",spec:t};return e(Cr,{type:"chart",fallbackCode:JSON.stringify(t,null,2),children:e(Tr,{spec:r,artifactRunId:n})})}case"fusion-fragment":{const r=t;return console.log("[ArtifactContentRenderer] fusion-fragment:",{hasTemplate:!!r.template,hasData:!!r.data,runId:n,hasVegaLiteChart:!!Tr}),r.template&&r.data?e(Cr,{type:"fusion-fragment",fallbackCode:JSON.stringify(t,null,2),children:e(tt,{data:r.data,ChartComponent:Tr,artifactRunId:n,children:e(rt,{code:JSON.stringify(r.template),data:r.data})})}):e(Cr,{type:"fusion-fragment",fallbackCode:JSON.stringify(t,null,2),children:e(rt,{code:JSON.stringify(t)})})}case"table":return e(Cr,{type:"table",fallbackCode:JSON.stringify(t,null,2),children:e(Hr,{content:t})});case"markdown":{const r="string"==typeof t?t:String(t);return e(Cr,{type:"markdown",fallbackCode:r,children:e(pa,{artifactRunId:n,children:r})})}case"image":return e(Cr,{type:"image",fallbackCode:a,children:e(Zr,{content:t,path:a})});default:return e(Gr,{content:t,path:a})}}const Yr=N.createContext({});function Qr({children:t,artifactRunId:r,onProposalSelect:a,onProposalSubmit:n}){const i=A(()=>({artifactRunId:r,onProposalSelect:a,onProposalSubmit:n}),[r,a,n]);return e(Yr.Provider,{value:i,children:t})}function ea(){return N.useContext(Yr)}function ta(e){const t=e.trim();if(t.length<2)return!0;if(!t.startsWith("{"))return!1;try{return JSON.parse(t),!1}catch(e){const r=["unexpected end","unterminated string","expected","unexpected token"],a=(e instanceof Error?e.message:"").toLowerCase();if(r.some(e=>a.includes(e))){let e=0,r=0,a=!1,n=!1;for(const i of t)n?n=!1:"\\"!==i?'"'!==i?a||("{"===i?e++:"}"===i?e--:"["===i?r++:"]"===i&&r--):a=!a:n=!0;return e>0||r>0||a}return!1}}function ra(e){try{let t=e.trim();const r=t.indexOf("{"),a=t.lastIndexOf("}");return-1!==r&&a>r&&(t=t.slice(r,a+1)),JSON.parse(t)}catch{return null}}function aa({code:t}){const{artifactRunId:r}=ea(),a=A(()=>ta(t),[t]),n=A(()=>{if(a)return null;const e=ra(t);return e?{library:"vega-lite",spec:e}:null},[t,a]);return a?e(kr,{type:"chart",message:"Loading chart..."}):n?e(Cr,{type:"chart",fallbackCode:t,children:e(Tr,{spec:n,artifactRunId:r})}):e(kr,{type:"chart",error:"Invalid Vega-Lite specification"})}function na({code:t}){const{artifactRunId:r}=ea(),a=A(()=>ta(t),[t]),{chartSpec:n,isVegaLite:i}=A(()=>{if(a)return{chartSpec:null,isVegaLite:!1};const e=ra(t);if(!e)return{chartSpec:null,isVegaLite:!1};const r=function(e){const t="string"==typeof e.$schema&&e.$schema.includes("vega"),r="vega-lite"===e.library&&"spec"in e;return t||r?"vega-lite":("chart"in e||"type"in e||"recharts"===e.library)&&"data"in e&&Array.isArray(e.data)?"recharts":null}(e);return r?"vega-lite"===r?"vega-lite"===e.library&&"spec"in e?{chartSpec:e,isVegaLite:!0}:{chartSpec:{library:"vega-lite",spec:e},isVegaLite:!0}:{chartSpec:e,isVegaLite:!1}:{chartSpec:null,isVegaLite:!1}},[t,a]);return a?e(kr,{type:"chart",message:"Loading chart..."}):n?e(Cr,i?{type:"chart",fallbackCode:t,children:e(Tr,{spec:n,artifactRunId:r})}:{type:"chart",fallbackCode:t,children:e(qr,{spec:n,artifactRunId:r})}):e(kr,{type:"chart",error:"Invalid chart specification"})}function ia({code:t}){const r=t.trim();return r?e(Cr,{type:"mermaid",fallbackCode:t,children:e(Mr,{code:r})}):e(kr,{type:"mermaid",error:"Empty diagram"})}function sa({code:t}){const{onProposalSelect:r,onProposalSubmit:a}=ea(),n=A(()=>ta(t),[t]),i=A(()=>{if(n)return null;try{const e=t.trim(),n=JSON.parse(e);if(!n.options||!n.question&&!n.title)return null;const i={question:n.question||n.title||"",description:n.description,options:Array.isArray(n.options)?n.options.map(e=>({id:e.id||e.value||"",label:e.label||"",description:e.description})):void 0,allowFreeResponse:n.allowFreeResponse??n.multiple,variant:n.variant,onSelect:r,onSubmit:a};return i.question&&i.options?.length?i:null}catch{return null}},[t,r,a,n]);return n?e(kr,{type:"proposal",message:"Loading options..."}):i?e(Cr,{type:"proposal",fallbackCode:t,children:e(Jr,{...i})}):e(kr,{type:"proposal",error:"Invalid proposal specification"})}function oa({code:t,language:r}){const{artifactRunId:a}=ea(),n=t.trim(),i=A(()=>{if(!r?.includes(":"))return"auto";const e=r.split(":")[1];return["chart","vega-lite","table","markdown","fusion-fragment","code","image","auto"].includes(e)?e:"auto"},[r]),{data:s,isLoading:o,error:l,contentType:c}=Br({runId:a,path:n});return a?o?e(kr,{type:"expand",message:`Loading ${n}...`}):l?e(kr,{type:"expand",error:`Failed to load artifact: ${l}`}):void 0===s?e(kr,{type:"expand",error:"No content found in artifact"}):e(Xr,{content:s,renderType:i,path:n,runId:a,contentType:c}):e(kr,{type:"expand",error:"No artifact run ID available"})}function la(e){return e?.startsWith("expand")??!1}function ca(){return{chart:na,"vega-lite":aa,vegalite:aa,mermaid:ia,proposal:sa,askuser:sa}}const da=["artifact:","image:","store:","document:","document://","collection:"];function ua(e){return da.some(t=>e.startsWith(t))?e:pe(e)}function ha(){return e=>{ge(e,"html",(e,t,r)=>{if(e.value&&/<!--[\s\S]*?-->/.test(e.value)&&r&&"number"==typeof t&&r.children)return r.children.splice(t,1),[ye,t]})}}const ma=ca();function pa({children:t,components:r,remarkPlugins:a=[],removeComments:n=!0,artifactRunId:i,className:s,codeClassName:o,inlineCodeClassName:l,linkClassName:c,imageClassName:d,onProposalSelect:u,onProposalSubmit:h}){const m=mr(),p=N.useMemo(()=>{const e=[fe,...a];return n&&e.push(ha),e},[a,n]),f=N.useMemo(()=>{const t=r||{},a=t.code,n=t.a,s=t.img;return{...t,code:({node:t,className:r,children:n,...i})=>{const s=/language-([\w-]+)/.exec(r||""),c=!s,d=s?s[1]:"";if(!c&&d){if(m){const t=m.getComponent(d);if(t){const r=String(n||"").trim();return e(t,{code:r,language:d})}}if(la(d)){const t=String(n||"").trim();return e(oa,{code:t,language:d})}const t=ma[d];if(t){const r=String(n||"").trim();return e(t,{code:r,language:d})}}if("function"==typeof a)return e(a,{node:t,className:r,...i,children:n});return e("code",{...i,className:c?`px-1.5 py-0.5 rounded ${l||""}`:`text-muted ${o||""}`,children:n})},a:t=>{const{node:r,href:a,children:s,...o}=t;return e(Sr,{node:r,href:a,className:c,artifactRunId:i,ExistingLink:n,...o,children:s})},img:t=>{const{node:r,src:a,alt:n,...o}=t;return e(jr,{node:r,src:a,alt:n,className:d,artifactRunId:i,ExistingImg:s,...o})}}},[r,i,m,o,l,c,d]),g=e(Qr,{artifactRunId:i,onProposalSelect:u,onProposalSubmit:h,children:e(me,{remarkPlugins:p,components:f,urlTransform:ua,children:t})});return s?e("div",{className:s,children:g}):g}const fa=O(void 0);function ga(){return I(fa)}const ya=Symbol("__SLOT_NAME");function ba(e,t){const r=[];return E.forEach(e,e=>{!function(e,t,r){let a;R(e)&&(a=e.type[ya])?r[a]=e:t.push(e)}(e,r,t)}),r.length>1?r:r[0]}function va(e,t){t[ya]=e}function xa(e){return e?"boolean"==typeof e?{enabled:e}:e:{enabled:!1}}function wa(t){const r={};if(ba(t.children,r),!r.content)throw new Error("Popover must provide a content slot");const a=r.trigger?.props,n=r.content.props;return e(Na,{...t,trigger:a,content:n})}function Na({middleware:r,offset:a,trigger:n,dismiss:i=!0,content:s,placement:o,strategy:l,zIndex:c=40}){const[d,u]=k(!1),h=st({open:d,placement:o,strategy:l,onOpenChange:u,middleware:r||[at(a||4),nt(),it()],whileElementsMounted:ot}),{floatingStyles:m,refs:{setReference:p,setFloating:f},context:g}=h,y=lt(g,xa(i)),b=ct(g,xa(!(v=n)||v.hover||v.click?v?.click:{enabled:!0}));var v;const w=dt(g,xa(function(e){return!0===e?.hover?{enabled:!0,handleClose:ft({blockPointerEvents:!0}),restMs:0}:e?.hover}(n))),{getReferenceProps:N,getFloatingProps:C}=ut([y,b,w]),{isMounted:S,styles:A}=ht(g,s.transition);return t(fa.Provider,{value:{...h,close:()=>u(!1)},children:[n&&e("div",{className:x(n.className,"inline-block"),ref:p,...N(),children:n.children}),e(mt,{children:S&&e("div",{ref:f,style:{...m,zIndex:c},...C(),children:e(pt,{context:g,children:e("div",{className:x(s.className,"bg-popover rounded-md text-popover-foreground max-w-md"),style:A,children:s.children})})})})]})}function ka(e){return null}function Ca(e){return null}function Sa({percent:t}){return e("div",{className:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700",children:e("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:`${t}%`}})})}function Aa({className:r,properties:a}){return e(c,{className:r,children:e("tbody",{children:a.map(r=>t("tr",{children:[t("td",{className:"w-1/3 font-semibold gap-2",children:[e("span",{children:r.name}),r.description&&e(d,{description:r.description,placement:"top",children:e(re,{className:"size-3 ml-2 text-muted-foreground"})})]}),e("td",{className:"w-2/3",children:r.value??"undefined"})]},r.name))})})}var ja;function Oa(e,t){let r="any"===t.name?void 0:t.isNullable?[t.name,"null"]:t.name;if(t.isArray)if(e.type="array",e.properties=void 0,!e.items||Array.isArray(e.items))e.items={type:r,properties:t.isObject?{}:void 0};else{const a=e.items;a.type=r,t.isObject&&!a.properties&&(a.properties={})}else e.type=r,e.items=void 0,t.isObject?e.properties||(e.properties={}):e.properties=void 0}function Ia(e){let t,r=!1,a=!1;const n=e.type;if(Array.isArray(n))for(const e of n)"null"===e?r=!0:t||(t=e);else t=n;t||(t="any"),"array"===t&&(a=!0,t=function(e){if(!e)return"any";let t;t=Array.isArray(e)?Pa(e[0].type):Pa(e.type);"array"!==t&&"null"!==t||(t="any");return t}(e.items));let i=t;switch(e.editor){case"textarea":i="text";break;case"media":i="media";break;case"document":i="document"}return{isNullable:r,isArray:a,isObject:"object"===t,name:i}}function Pa(e){return e?Array.isArray(e)?e.find(e=>"null"!==e)||"any":e:"any"}va("trigger",ka),va("content",Ca),wa.Trigger=ka,wa.Content=Ca,function(e){e.string="string",e.number="number",e.integer="integer",e.boolean="boolean",e.object="object",e.any="any",e.text="text",e.media="media",e.document="document"}(ja||(ja={}));let La=0;class $a{source;onChange=()=>{};schema;root;constructor(e,t){this.schema=e?"string"==typeof e?JSON.parse(e):e:{title:t,type:"object",properties:{}},this.schema.properties||(this.schema.properties={}),this.root=new Ea("",this.schema,this),this.root.loadChildren()}get isEmpty(){return!this.root.children||0===this.root.children.length}get children(){return this.root.children}reload(){return this.root=new Ea("",this.schema,this),this.root.loadChildren(),this.onChange?.(this),this}withSource(e,t){return this.source={uri:t,name:e},this}withChangeListener(e){return this.onChange=e,this}replaceSchema(e){this.schema=e||{title:this.schema.title,type:"object",properties:{}},this.reload()}clone(){const e=new $a(this.schema);return e.source=this.source,this.onChange&&e.withChangeListener(this.onChange),e}}class Ea{schema;loader;parent;name;isRequired=!1;type;children;constructor(e,t,r,a){if(this.schema=t,this.loader=r,this.parent=a,this.name=e,this.type=Ia(t),this.parent){let t=this.parent._getPropertiesSchema().required;this.isRequired=!(!t||!Array.isArray(t))&&t.includes(e)}}get title(){return this.schema.title}set title(e){this.schema.title=e}get description(){return this.schema.description}set description(e){this.schema.description=e}get isParent(){return this.type.isObject}get isNew(){return!!this.schema.isNew}set isNew(e){e?this.schema.isNew=!0:delete this.schema.isNew}resetIsNew(){const e=this.isNew;return this.isNew=!1,e}getNameSignature(){return`${this.name}${this.isRequired?"":"?"}`}getTypeSignature(){return`${this.type.name}${this.type.isArray?"[]":""}${this.type.isNullable?"?":""}`}getSignature(){return`${this.getNameSignature()}: ${this.getTypeSignature()}`}reloadTree(){this.loader.reload()}loadChildren(){this.children=[],this.schema.items&&this.schema.items.properties?this._loadChildren(this.schema.items.properties):this.schema.properties&&this._loadChildren(this.schema.properties)}_loadChildren(e){for(const t of Object.keys(e)){const r=e[t],a=new Ea(t,r,this.loader,this);this.children.push(a),a.isParent&&a.loadChildren()}}_getPropertiesSchema(){return this.type.isArray&&this.type.isObject?this.schema.items:this.schema}findAvailableChildName(e){const t=this._getPropertiesSchema().properties||{};let r;do{r=e+ ++La}while(t[r]);return r}addChild(e,t,r=!1){if(!this.type.isObject)throw new Error("Cannot add child to a non object node");this.children||(this.children=[]);const a=function(e,t,r,a=!1){if("object"!==e.type)throw new Error("Cannot add property to a non-object schema");e.properties||(e.properties={});const n={};return Oa(n,r),e.properties[t]=n,a&&(Array.isArray(e.required)?function(e,t){e.includes(t)||e.push(t)}(e.required,t):e.required=[t]),n}(this._getPropertiesSchema(),e,t,r),n=new Ea(e,a,this.loader,this);return this.children.push(n),n}remove(){if(this.parent&&this.parent.type.isObject){return function(e,t){e.properties&&(delete e.properties[t],Array.isArray(e.required)&&(e.required=e.required.filter(e=>e!==t)))}(this.parent._getPropertiesSchema(),this.name),this.parent.children&&(this.parent.children=this.parent.children.filter(e=>e.name!==this.name)),!0}return!1}update(e){let t=!1;null!=e.name&&this.name!==e.name&&(this.parent&&function(e,t,r){if(e.properties){const a=e.properties,n={};for(const e of Object.keys(a)){const i=a[e];e===t?n[r]=i:n[e]=i}e.properties=n}e.required&&(e.required=e.required.map(e=>e===t?r:e))}(this.parent._getPropertiesSchema(),this.name,e.name),this.name=e.name,t=!0),null!=e.isRequired&&this.isRequired!==e.isRequired&&(this.parent&&function(e,t,r){if(Array.isArray(e.required)){const a=e.required.indexOf(t);r?a<0&&e.required.push(t):a>-1&&e.required.splice(a,1)}else r&&(e.required=[t])}(this.parent._getPropertiesSchema(),this.name,e.isRequired),this.isRequired=e.isRequired,t=!0);let r=e.type?.name;"any"===r&&(r=void 0);const a=r!==this.schema.type;return e.type&&(Oa(this.schema,e.type),this.type=e.type,this.type.isObject?this.children||(this.children=[]):this.children=void 0,t=!0),this.schema.editor&&null===e.editor?(this.schema.editor=void 0,t=!0):e.editor?(this.schema.editor=e.editor,t=!0):a&&(this.schema.editor=void 0,t=!0),e.description!==this.description&&(this.description=e.description,t=!0),t}getUpdateFromNameAndTypeSignature(e,t){let r=e.trim(),a=!0;r.endsWith("?")&&(r=r.substring(0,r.length-1).trim(),a=!1);const n=function(e){let t=!1,r=!1;(e=e.trim()).endsWith("?")&&(r=!0,e=e.substring(0,e.length-1).trim()),e.endsWith("[]")&&(t=!0,e=e.substring(0,e.length-2).trim());const a=ja[e];if(!a)throw new Error(`Unknown type "${e}"`);return{name:a,isArray:t,isNullable:r,isObject:a===ja.object}}(t);let i;return"text"===n.name?(n.name=ja.string,i="textarea"):"media"===n.name?(n.name=ja.any,i="media"):"document"===n.name?(n.name=ja.any,i="document"):i=null,{name:r,type:n,isRequired:a,editor:i}}updateFromNameAndTypeSignature(e,t){return this.update(this.getUpdateFromNameAndTypeSignature(e,t))}updateFromSignature(e){const t=(e=e.trim()).indexOf(":");if(t<0)throw new Error("Expecting a name and a type separated by a colon");const r=e.substring(0,t),a=e.substring(t+1);return this.updateFromNameAndTypeSignature(r,a)}}function Ra(e){return{name:e.getNameSignature(),type:e.getTypeSignature(),description:e.description}}const Fa=function(){const e=Object.values(ja),t=[...e];for(const r of e)t.push(r+"[]");return e.sort(),t}();function Ta({value:r,onChange:a,onCancel:n,onSave:i}){const[s,l]=k(!1);if(!r)return null;return t("div",{className:"flex items-center",children:[e("div",{className:"flex-1",children:e(za,{value:r.name,onChange:e=>{a({...r,name:e})},onCancel:n,onSave:i})}),e("div",{className:"px-1 font-semibold",children:":"}),e("div",{className:"flex-1",children:e(Da,{value:r.type,onChange:e=>{a({...r,type:e})},onCancel:n,onSave:i})}),t("div",{children:[e(o,{variant:"ghost",size:"xs",onClick:()=>l(!0),title:"Edit description",children:e(ae,{className:"size-4"})}),e(Va,{value:r.description,isOpen:s,onClose:e=>{void 0!==e&&"string"==typeof e&&a({...r,description:e},!0),l(!1)}})]})]})}function za({value:t,onChange:r,onCancel:a,onSave:n}){const s=C(null);S(()=>{s.current?.focus()},[]);return e("input",{onKeyUp:e=>{switch(e.key){case"Enter":n?.();break;case"Escape":a?.()}},ref:s,value:t,onChange:e=>{r(e.target.value)},className:i.INPUT_UNSTYLED,style:{fontSize:"inherit",width:"",display:"inline"}})}function Da({value:t,onChange:r,onCancel:a,onSave:n}){return e(u,{className:i.INPUT_UNSTYLED,options:Fa,value:t||"",onBlur:()=>{n?.()},onChange:r,onKeyDown:(e,t)=>{t||("Enter"===e.key?n?.():"Escape"===e.key&&a?.())},popupClass:"schema-type-suggest-popup z-90"})}function Va({value:r,isOpen:a,onClose:n}){return t(h,{isOpen:a,onClose:n,children:[e(m,{children:"Edit description"}),e(qa,{value:r,onSave:n})]})}function qa({value:a,onSave:n}){const i=C(null),[s,l]=k(a||"");return S(()=>{i.current&&i.current.focus()},[i.current]),t(r,{children:[e(p,{className:"h-max",children:e("textarea",{ref:i,className:"dark:bg-gray-800 w-full h-full dark:text-white",value:s,onChange:e=>l(e.target.value)})}),e(f,{children:e(o,{onClick:()=>n(s),children:"Save Changes"})})]})}function Ka({value:r}){return r?t("div",{className:"w-full flex items-baseline",children:[e("div",{children:r.name||""}),e("div",{className:"ml-2 text-sm text-muted",children:r.type||""})]}):null}function Ua(e){const[t,r]=k(new $a(e||{type:"object",properties:{}}).withChangeListener(e=>{r(e.clone())}));return t}const Ma="block text-sm sm:leading-6 rounded-md border-0 py-1.5 px-4",_a=`${Ma} hover:shadow-xs hover:ring-1 hover:ring-inset hover:ring-ring`,Wa=`${Ma} shadow-xs ring-1 ring-inset ring-ring`;function Ja({value:r,onChange:a,onDelete:n,outlineOnHover:i=!1,editOnClick:s=!0,placeholder:o,viewer:l,editor:c,skipClickOutside:d,isEditing:u=!1,readonly:h=!1,onValidate:m}){const{on:p,off:f,isOn:y}=g(u),[b,v]=k();return t("div",{className:"",children:[y&&!h?e(Ha,{value:r,onSave:e=>{if(m){const t=m(e);if(t)return void v(t);v(void 0)}a(e)&&f()},onCancel:f,editor:c,skipClickOutside:e=>!!d&&d(e)}):e(Ba,{value:r,onEdit:p,viewer:l,placeholder:o,outlineOnHover:i,editOnClick:s,onDelete:n,readonly:h}),b&&e("div",{className:"text-red-500 text-sm",children:b})]})}function Ba({viewer:r,value:a,onEdit:n,editOnClick:i,outlineOnHover:s,placeholder:l,onDelete:c,readonly:d}){const u="invisible group-hover:visible";return t("div",{tabIndex:0,onKeyUp:e=>{"Enter"===e.key&&n()},onClick:()=>{i&&n()},className:x("flex justify-start items-center group",s?_a:Ma,{"cursor-pointer":i}),children:[e(r,{value:a,placeholder:l}),t("div",{className:"ml-auto flex space-x-2",children:[!d&&c&&e(o,{variant:"ghost",size:"sm",className:u,onClick:c,children:e(T,{className:"size-4"})}),d?null:e(o,{variant:"ghost",size:"sm",className:u,onClick:n,children:e(ne,{className:"size-4"})})]})]})}function Ha({editor:t,value:r,onSave:a,onCancel:n,skipClickOutside:i}){const[s,o]=k(r),l=C(r),[c,d]=k(null),u=()=>{a(l.current)},h=y(u,i);return e("div",{ref:h,children:e("div",{className:Wa,children:e("div",{className:"w-full",onClick:e=>e.stopPropagation(),children:e(t,{value:s,onChange:(e,t=!1)=>{o(e),l.current=e,t&&(c&&clearTimeout(c),d(setTimeout(()=>{a(e)},500)))},onSave:u,onCancel:n})})})})}function Ga(e){const t=e.target;return!(!t.closest||!t.closest(".schema-type-suggest-popup"))}function Za({schema:r,readonly:a=!1}){return t("ul",{className:"",children:[r.children.map(e=>Xa(e,a)),a?null:e(rn,{parent:r.root})]})}function Xa(t,r){return t.isParent?e(Qa,{property:t,readonly:r},t.name):e(Ya,{node:t,readonly:r},t.name)}function Ya({node:t,readonly:r}){return e("li",{children:e(tn,{property:t,readonly:r})})}function Qa({property:r,readonly:a}){const[n,i]=k(!0);return t("li",{children:[t("div",{className:"flex items-center w-full",children:[e("button",{onClick:()=>i(!n),children:e(n?ie:se,{className:"size-4"})}),e("div",{className:"flex-1",children:e(tn,{property:r,readonly:a})})]}),n&&t("ul",{className:"ml-4 border-l border-gray-400 border-dashed",children:[(r.children||[]).map(e=>Xa(e,a)),a?null:e(rn,{parent:r})]})]})}function en(e){return e?/^[a-zA-Z0-9_]+[?]?$/.test(e)?void 0:"Only letters, numbers, underscores or question mark are allowed (a-zA-Z0-9_?)":"Name is required"}function tn({property:t,readonly:r}){const a=b(),n=t.resetIsNew(),i=Ra(t);return e(Ja,{value:i,onChange:e=>{try{e.description&&"string"!=typeof e.description&&(e.description=void 0);const r=t.getUpdateFromNameAndTypeSignature(e.name,e.type);t.update({...r,description:e.description})&&t.reloadTree()}catch(e){return a({status:"error",title:"Invalid property declaration",description:e.message,duration:9e3}),!1}return!0},onDelete:()=>{t.remove(),t.reloadTree()},editor:Ta,viewer:Ka,outlineOnHover:!0,isEditing:n,skipClickOutside:Ga,readonly:r,onValidate:e=>en(e.name)})}function rn({parent:r}){return t(o,{variant:"ghost",onClick:()=>{const e=r.findAvailableChildName("new_property_");r.addChild(e,{isObject:!1,isArray:!1,isNullable:!1,name:ja.string},!0).isNew=!0,r.reloadTree()},children:[e(F,{className:"size-4"}),"Add property"]})}function an({content:t,...r}){const a=C(null);return S(()=>{if(!a.current)return;const e=(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg");if(!e)return console.warn("SvgIcon: No <svg> element found in provided string"),void(a.current.innerHTML="");r&&Object.entries(r).forEach(([t,r])=>{if(null==r)return;const a="className"===t?"class":t;e.setAttribute(a,String(r))}),a.current.innerHTML="",a.current.appendChild(e)},[t,r]),e("span",{ref:a})}function nn(t){return r=>e(an,{content:t,...r})}function sn({onDrop:r,message:a,buttonLabel:n="Upload Files",allowFolders:i=!0,className:s=""}){const[l,c]=k(!1),d=C(null),u=e=>{if(e.target.files&&e.target.files.length>0){const t=Array.from(e.target.files);if(t.some(e=>e.webkitRelativePath&&e.webkitRelativePath.includes("/"))){const e=new Set(t.map(e=>e.webkitRelativePath?.split("/")[0]).filter(Boolean)).size,a=t.length,n=1===e?`Preparing to upload 1 folder with ${a} files...`:`Preparing to upload ${e} folders with ${a} files...`,i={count:t.length,message:n};r(t,i)}else{const e={count:t.length,message:`Preparing to upload ${t.length} file${1===t.length?"":"s"}...`};r(t,e)}}};return t("div",{className:`flex flex-col items-center justify-center py-12 border-2 rounded-lg transition-colors ${l?"border-color-primary bg-color-primary/10":"border-dashed border-color-border"} ${s}`,onDragOver:e=>{e.preventDefault(),e.dataTransfer.types.includes("Files")&&c(!0)},onDragLeave:e=>{e.preventDefault(),d.current&&!d.current.contains(e.relatedTarget)&&c(!1)},onDrop:async e=>{if(e.preventDefault(),c(!1),e.dataTransfer.items&&e.dataTransfer.items.length>0){const t=Array.from(e.dataTransfer.items),a=[],n=new Set,i=async e=>{if(e.isFile){const t=await new Promise(t=>{e.file(r=>{Object.defineProperty(r,"webkitRelativePath",{writable:!0,value:e.fullPath.substring(1)}),t(r)})});!t.name.startsWith(".")&&t.size>0&&a.push(t);const r=e.fullPath.substring(1).split("/").slice(0,-1).join("/");r&&n.add(r)}else if(e.isDirectory){const t=e.createReader(),r=await new Promise(e=>{t.readEntries(t=>{e(t)})});await Promise.all(r.map(i));const a=e.fullPath.substring(1);a&&n.add(a)}};try{if(await Promise.all(t.map(e=>{const t=e.webkitGetAsEntry?e.webkitGetAsEntry():e;return t?i(t):Promise.resolve()})),a.length>0){const e=new Set(Array.from(n).map(e=>e.split("/")[0]).filter(Boolean)).size,t=a.length;let i="";i=e>0?1===e?`Preparing to upload 1 folder with ${t} files...`:`Preparing to upload ${e} folders with ${t} files...`:`Preparing to upload ${t} file${1===t?"":"s"}...`,r(a,{count:a.length,message:i})}}catch(t){console.error("Error processing dropped files:",t);const a=Array.from(e.dataTransfer.files);a.length>0&&r(a)}}else if(e.dataTransfer.files&&e.dataTransfer.files.length>0){const t=Array.from(e.dataTransfer.files);r(t)}},children:[e(oe,{className:"h-12 w-12 mb-3 transition-colors "+(l?"text-primary":"text-muted/50")}),e("p",{className:"text-muted",children:a}),t("div",{className:"flex gap-2 justify-center mt-2",children:[e(o,{onClick:()=>{const e=document.createElement("input");e.type="file",e.multiple=!0,e.accept="*",e?.click(),e.onchange=e=>{u(e)}},children:n}),i&&e(o,{onClick:()=>{const e=document.createElement("input");e.type="file",e.multiple=!0,e.accept="*",e.webkitdirectory=!0,e?.click(),e.onchange=e=>{u(e)}},children:"Select Folder"})]})]})}function on({title:r,count:a,icon:n=e(le,{className:"h-4 w-4 text-green-500"}),items:i}){const[s,o]=k(!1);return t("div",{className:"border border-color-border rounded-md overflow-hidden",children:[t("div",{className:"flex items-center justify-between p-3 bg-color-muted/10 cursor-pointer",onClick:()=>o(!s),children:[t("div",{className:"flex items-center",children:[e("span",{className:"mr-2",children:n}),e("span",{className:"font-medium",children:r}),e("span",{className:"ml-2 px-2 py-0.5 bg-color-muted/20 rounded-full text-xs",children:a})]}),e("button",{className:"text-muted",children:e("svg",{className:"h-5 w-5 transition-transform "+(s?"transform rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&e("div",{className:"p-3 border-t border-color-border max-h-48 overflow-y-auto",children:i.length>0?e("ul",{className:"space-y-1",children:i.map((t,r)=>e("li",{className:"text-sm py-1 px-2 rounded hover:bg-color-muted/10",children:t},r))}):e("div",{className:"text-sm text-muted py-2",children:"No items to display"})})]})}function ln({files:r,className:a="",location:n,collection:i}){const s=r.filter(e=>"success"===e.status),o=r.filter(e=>"updated"===e.status),l=r.filter(e=>"skipped"===e.status),c=r.filter(e=>"failed"===e.status),d=s.length,u=o.length,h=l.length,m=c.length,p=r.length;return t("div",{className:`flex flex-col py-2 ${a}`,children:[t("div",{className:"flex items-center mb-4",children:[e("div",{className:"size-8 mr-4 rounded-full bg-success/10 flex items-center justify-center",children:e(le,{className:"size-4 text-success"})}),e("div",{children:t("p",{className:"text-muted",children:[p," file",1!==p?"s":""," processed",i?` in collection '${i}'`:"",n?` in folder '${n}'`:""]})})]}),t("div",{className:"space-y-3 mt-2",children:[d>0&&e(on,{title:"Successfully Uploaded",count:d,icon:e(le,{className:"h-4 w-4 text-green-500"}),items:s.map(e=>e.name)}),u>0&&e(on,{title:"Successfully Updated",count:u,icon:e(le,{className:"h-4 w-4 text-blue-500"}),items:o.map(e=>e.name)}),h>0&&e(on,{title:"Skipped (Already Existed)",count:h,icon:e(ce,{className:"h-4 w-4 text-amber-500"}),items:l.map(e=>e.name)}),m>0&&e(on,{title:"Failed to Upload",count:m,icon:e(de,{className:"h-4 w-4 text-red-500"}),items:c.map(e=>e.name)})]})]})}const cn="#text",dn="#comment",un="#cdata",hn="DECLARATION_TAG",mn={tagColor:"#d43900",textColor:"#333",attributeKeyColor:"#2a7ab0",attributeValueColor:"#008000",separatorColor:"#333",commentColor:"#aaa",cdataColor:"#1d781d",fontFamily:"monospace"},pn={attributeKeyColor:"#FFD700",attributeValueColor:"#FF4500",tagColor:"#87CEFA",textColor:"#00FF00",separatorColor:"#FFD700",commentColor:"#BEBEBE",cdataColor:"#33CC66",fontFamily:"monospace"},fn=O({theme:mn,collapsible:!1,indentSize:2}),gn=()=>I(fn),yn=new gt({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",allowBooleanAttributes:!0,commentPropName:dn,cdataPropName:un,parseTagValue:!1});function bn(r){const{indentation:a,children:n,isInline:i}=r,{theme:s}=gn();return t("div",{style:{color:s.cdataColor},children:[e("span",{children:`${a}<![CDATA[`}),n,e("span",{children:`${i?"":a}]]>`})]})}function vn(t){const{collapsible:r,theme:a}=gn(),{collapsed:n}=t;return r?e("span",{style:{position:"relative"},children:e("span",{style:{position:"absolute",right:"0",border:0,padding:0,background:"none"},children:e(xn,{fill:a.separatorColor,style:{transform:`rotate(${n?0:90}deg)`,transition:"transform 0.2s"}})})}):null}function xn({...t}){return e("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",...t,children:e("path",{d:"M9 17.898C9 18.972 10.2649 19.546 11.0731 18.8388L17.3838 13.3169C18.1806 12.6197 18.1806 11.3801 17.3838 10.6829L11.0731 5.16108C10.2649 4.45388 9 5.02785 9 6.1018V17.898Z"})})}function wn(e){const{collapsible:t,initialCollapsedDepth:r}=gn(),[a,n]=k(()=>!(bt(r)||!t)&&e>=r);return S(()=>{n(!(bt(r)||!t)&&e>=r)},[r,e,t]),{collapsed:a,buttonProps:t?{onClick:()=>n(e=>!e),role:"button",style:{cursor:"pointer"}}:{}}}function Nn(r){const{indentation:a,children:n,isInline:i,level:s}=r,{theme:o}=gn(),{collapsed:l,buttonProps:c}=wn(s);return t("div",{style:{color:o.commentColor},children:[t("span",{...c,children:[e("span",{children:a}),e(vn,{collapsed:l}),e("span",{children:"\x3c!-- "})]}),!l&&n,l&&"...",e("span",{children:`${i||l?" ":a}--\x3e`})]})}function kn(r){const{attributes:a}=r,{theme:n}=gn();return a?e("span",{children:Object.entries(a).map(([r,a])=>t("span",{children:[e("span",{style:{color:n.attributeKeyColor},children:` ${r}`}),e("span",{style:{color:n.separatorColor},children:"="}),e("span",{style:{color:n.attributeValueColor},children:`"${a}"`})]},`attribute-${r}`))}):null}function Cn(r){const{indentation:a,tagKey:n,attributes:i}=r,{theme:s}=gn();return t("div",{children:[e("span",{style:{color:s.separatorColor},children:`${a}<?`}),e("span",{style:{color:s.tagColor},children:`${n.slice(1)}`}),e(kn,{attributes:i}),e("span",{style:{color:s.separatorColor},children:"?>"})]})}function Sn(e){return"string"==typeof e&&e.includes("\n")}function An(e){const t=e[":@"],r=vt(e,":@"),[[a,n]]=Object.entries(r),i=function(e){switch(e){case cn:case un:case dn:return e;default:return e.startsWith("?")?hn:"TAG"}}(a);return{attributes:t,tagKey:a,subElements:n,type:i}}function jn(e){return!!e&&Object.keys(e).length>0}function On(a){const{indentation:n,tagKey:i,attributes:s,children:o,isInline:l,hasChildren:c,level:d}=a,{collapsed:u,buttonProps:h}=wn(d),{theme:m}=gn();return t("div",{children:[t("span",{...h,children:[e("span",{children:n}),e(vn,{collapsed:u}),e("span",{style:{color:m.separatorColor},children:"<"}),e("span",{style:{color:m.tagColor},children:`${i}`}),!u&&e(kn,{attributes:s}),u&&jn(s)&&" ...",e("span",{style:{color:m.separatorColor},children:c?">":" />"})]}),c&&t(r,{children:[!u&&o,u&&"...",e("span",{style:{color:m.separatorColor},children:`${l||u?"":n}</`}),e("span",{style:{color:m.tagColor},children:`${i}`}),e("span",{style:{color:m.separatorColor},children:">"})]})]})}function In(t){const{hasSiblings:r,text:a,indentation:n,isText:i}=t,{theme:s}=gn(),o=i?{color:s.textColor}:void 0;return Sn(a)||r?e("div",{style:o,children:a.split("\n").filter(e=>!!e.trim()).map((t,r)=>e("div",{children:`${n}${t.trim()}`},`${r}`))}):e("span",{style:o,children:a})}function Pn(t){const{elements:a,level:n=0,isText:i=!0}=t,{indentSize:s}=gn();return Array.isArray(a)&&0!==a.length?e(r,{children:a.map((t,r)=>{const{tagKey:o,attributes:l,subElements:c,type:d}=An(t),u=a.length>1,h=function(e,t){return new Array(t*e+1).join(" ")}(s,n),m=`${n}-${r}`,p=function(e){return"string"!=typeof e&&1===e.length&&cn in e[0]&&!Sn(e[0][cn])}(c);switch(d){case cn:return e(In,{text:c,indentation:h,hasSiblings:u,isText:i},m);case dn:return e(Nn,{isInline:p,indentation:h,level:n,children:e(Pn,{elements:c,level:n+1,isText:!1})},m);case un:return e(bn,{indentation:h,isInline:p,children:e(Pn,{elements:c,level:n+1,isText:!1})},m);case hn:return e(Cn,{indentation:h,tagKey:o,attributes:l},m);default:return e(On,{indentation:h,tagKey:o,attributes:l,isInline:p,hasChildren:c.length>0,level:n,children:e(Pn,{elements:c,level:n+1})},m)}})}):null}function Ln(){return e("div",{children:"Invalid XML!"})}function $n(t){const{theme:r,xml:a,collapsible:n=!1,indentSize:i=2,invalidXml:s,initalCollapsedDepth:o,initialCollapsedDepth:l}=t,[c,d]=k(()=>document.documentElement.classList.contains("dark"));S(()=>{const e=document.documentElement,t=new MutationObserver(()=>{d(e.classList.contains("dark"))});return t.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]);const u=A(()=>({...c?pn:mn,...r}),[c,r]),{json:h,valid:m}=function(e){return A(()=>{try{if(!yt.validate(e))throw new Error("Invalid XML!");const t=yn.parse(e);if("string"==typeof e&&e.trim().length>0&&0===t.length)throw new Error("Invalid XML!");return{json:t,valid:!0}}catch(e){return{json:null,valid:!1,errorMessage:`Fail to parse: ${e.message}`}}},[e])}(a),p=A(()=>({theme:u,collapsible:n,indentSize:i,initialCollapsedDepth:l??o}),[u,n,i,o,l]);return m?e(fn.Provider,{value:p,children:e("div",{className:"rxv-container",style:{whiteSpace:"pre-wrap",fontFamily:u.fontFamily,overflowWrap:"break-word"},children:e(Pn,{elements:h})})}):s||e(Ln,{})}export{qt as ArrayPropertySchema,Xr as ArtifactContentRenderer,na as ChartCodeBlockHandler,Cr as CodeBlockErrorBoundary,Qr as CodeBlockHandlerProvider,kr as CodeBlockPlaceholder,hr as CodeBlockRendererProvider,sn as DropZone,oa as ExpandCodeBlockHandler,kt as FieldSetContextProvider,Pt as Form,St as FormContext,Ot as FormContextProvider,Qt as FormError,Yt as FormHelper,Xt as FormLabel,$t as GeneratedForm,It as Input,er as JSONCode,cr as JSONDisplay,tr as JSONView,Gt as ManageObjectEntry,Ht as ManagedListProperty,Wt as ManagedObject,_t as ManagedObjectBase,Jt as ManagedObjectProperty,Bt as ManagedProperty,Zt as ManagedScalarEntry,$a as ManagedSchema,jr as MarkdownImage,Sr as MarkdownLink,pa as MarkdownRenderer,ia as MermaidCodeBlockHandler,Mr as MermaidDiagram,wt as MonacoEditor,Mt as Node,wa as Popover,fa as PopoverContext,Sa as Progress,Aa as PropertiesView,Ta as PropertyEditor,za as PropertyNameEditor,Vt as PropertySchema,Ka as PropertyViewer,sa as ProposalCodeBlockHandler,Rt as ScalarField,Dt as Schema,Za as SchemaEditor,Ea as SchemaNode,an as SvgIcon,on as UploadResultCategory,ln as UploadSummary,xt as VEditorApi,$n as XMLViewer,Kt as computeTitleFromName,ca as createDefaultCodeBlockHandlers,nn as createSvgIcon,Ra as getEditableSchemaProperty,la as isExpandLanguage,xr as mapSchemeToRoute,vr as parseUrlScheme,Br as useArtifactContent,pr as useCodeBlockComponent,ea as useCodeBlockContext,mr as useCodeBlockRendererRegistry,Ct as useFieldSet,jt as useForm,ga as usePopoverContext,wr as useResolvedUrl,Ua as useSchema,en as validatePropertyName};
2
- //# sourceMappingURL=vertesia-ui-widgets.js.map