@vertesia/ui 0.82.0 → 0.82.2

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 (1423) hide show
  1. package/lib/esm/core/components/Avatar.js +31 -0
  2. package/lib/esm/core/components/Avatar.js.map +1 -0
  3. package/lib/esm/core/components/Center.js +6 -0
  4. package/lib/esm/core/components/Center.js.map +1 -0
  5. package/lib/esm/core/components/ComboBox.js +356 -0
  6. package/lib/esm/core/components/ComboBox.js.map +1 -0
  7. package/lib/esm/core/components/Divider.js +6 -0
  8. package/lib/esm/core/components/Divider.js.map +1 -0
  9. package/lib/esm/core/components/Dropdown.js +16 -0
  10. package/lib/esm/core/components/Dropdown.js.map +1 -0
  11. package/lib/esm/core/components/DropdownList.js +9 -0
  12. package/lib/esm/core/components/DropdownList.js.map +1 -0
  13. package/lib/esm/core/components/EmptyCollection.js +7 -0
  14. package/lib/esm/core/components/EmptyCollection.js.map +1 -0
  15. package/lib/esm/core/components/FileUpload.js +119 -0
  16. package/lib/esm/core/components/FileUpload.js.map +1 -0
  17. package/lib/esm/core/components/FormItem.js +9 -0
  18. package/lib/esm/core/components/FormItem.js.map +1 -0
  19. package/lib/esm/core/components/InputList.js +61 -0
  20. package/lib/esm/core/components/InputList.js.map +1 -0
  21. package/lib/esm/core/components/Link.js +13 -0
  22. package/lib/esm/core/components/Link.js.map +1 -0
  23. package/lib/esm/core/components/MenuList.js +20 -0
  24. package/lib/esm/core/components/MenuList.js.map +1 -0
  25. package/lib/esm/core/components/NumberInput.js +43 -0
  26. package/lib/esm/core/components/NumberInput.js.map +1 -0
  27. package/lib/esm/core/components/Overlay.js +57 -0
  28. package/lib/esm/core/components/Overlay.js.map +1 -0
  29. package/lib/esm/core/components/Portal.js +28 -0
  30. package/lib/esm/core/components/Portal.js.map +1 -0
  31. package/lib/esm/core/components/RadioGroup.js +34 -0
  32. package/lib/esm/core/components/RadioGroup.js.map +1 -0
  33. package/lib/esm/core/components/SelectList.js +52 -0
  34. package/lib/esm/core/components/SelectList.js.map +1 -0
  35. package/lib/esm/core/components/SelectStack.js +8 -0
  36. package/lib/esm/core/components/SelectStack.js.map +1 -0
  37. package/lib/esm/core/components/SidePanel.js +39 -0
  38. package/lib/esm/core/components/SidePanel.js.map +1 -0
  39. package/lib/esm/core/components/Spinner.js +18 -0
  40. package/lib/esm/core/components/Spinner.js.map +1 -0
  41. package/lib/esm/core/components/Switch.js +12 -0
  42. package/lib/esm/core/components/Switch.js.map +1 -0
  43. package/lib/esm/core/components/TagsInput.js +194 -0
  44. package/lib/esm/core/components/TagsInput.js.map +1 -0
  45. package/lib/esm/core/components/index.js +28 -0
  46. package/lib/esm/core/components/index.js.map +1 -0
  47. package/lib/esm/core/components/libs/utils.js +6 -0
  48. package/lib/esm/core/components/libs/utils.js.map +1 -0
  49. package/lib/esm/core/components/libs/visuallyHidden.js +16 -0
  50. package/lib/esm/core/components/libs/visuallyHidden.js.map +1 -0
  51. package/lib/esm/core/components/popup/Popup.js +60 -0
  52. package/lib/esm/core/components/popup/Popup.js.map +1 -0
  53. package/lib/esm/core/components/popup/PopupController.js +149 -0
  54. package/lib/esm/core/components/popup/PopupController.js.map +1 -0
  55. package/lib/esm/core/components/popup/index.js +4 -0
  56. package/lib/esm/core/components/popup/index.js.map +1 -0
  57. package/lib/esm/core/components/popup/position.js +221 -0
  58. package/lib/esm/core/components/popup/position.js.map +1 -0
  59. package/lib/esm/core/components/popup/utils.js +74 -0
  60. package/lib/esm/core/components/popup/utils.js.map +1 -0
  61. package/lib/esm/core/components/shadcn/MessageBox.js +66 -0
  62. package/lib/esm/core/components/shadcn/MessageBox.js.map +1 -0
  63. package/lib/esm/core/components/shadcn/Panel.js +8 -0
  64. package/lib/esm/core/components/shadcn/Panel.js.map +1 -0
  65. package/lib/esm/core/components/shadcn/badge.js +62 -0
  66. package/lib/esm/core/components/shadcn/badge.js.map +1 -0
  67. package/lib/esm/core/components/shadcn/breadcrumb.js +51 -0
  68. package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -0
  69. package/lib/esm/core/components/shadcn/button.js +76 -0
  70. package/lib/esm/core/components/shadcn/button.js.map +1 -0
  71. package/lib/esm/core/components/shadcn/calendar.js +13 -0
  72. package/lib/esm/core/components/shadcn/calendar.js.map +1 -0
  73. package/lib/esm/core/components/shadcn/card.js +17 -0
  74. package/lib/esm/core/components/shadcn/card.js.map +1 -0
  75. package/lib/esm/core/components/shadcn/checkbox.js +9 -0
  76. package/lib/esm/core/components/shadcn/checkbox.js.map +1 -0
  77. package/lib/esm/core/components/shadcn/command.js +29 -0
  78. package/lib/esm/core/components/shadcn/command.js.map +1 -0
  79. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +38 -0
  80. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +1 -0
  81. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js +23 -0
  82. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js.map +1 -0
  83. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +129 -0
  84. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +1 -0
  85. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +46 -0
  86. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +1 -0
  87. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +23 -0
  88. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +1 -0
  89. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js +28 -0
  90. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js.map +1 -0
  91. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js +5 -0
  92. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js.map +1 -0
  93. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js +98 -0
  94. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js.map +1 -0
  95. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +24 -0
  96. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +1 -0
  97. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js +21 -0
  98. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js.map +1 -0
  99. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +161 -0
  100. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +1 -0
  101. package/lib/esm/core/components/shadcn/filters/filter-styles.js +88 -0
  102. package/lib/esm/core/components/shadcn/filters/filter-styles.js.map +1 -0
  103. package/lib/esm/core/components/shadcn/filters/filterBar.js +242 -0
  104. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -0
  105. package/lib/esm/core/components/shadcn/filters/filters.js +57 -0
  106. package/lib/esm/core/components/shadcn/filters/filters.js.map +1 -0
  107. package/lib/esm/core/components/shadcn/filters/index.js +6 -0
  108. package/lib/esm/core/components/shadcn/filters/index.js.map +1 -0
  109. package/lib/esm/core/components/shadcn/filters/types.js +10 -0
  110. package/lib/esm/core/components/shadcn/filters/types.js.map +1 -0
  111. package/lib/esm/core/components/shadcn/heading.js +17 -0
  112. package/lib/esm/core/components/shadcn/heading.js.map +1 -0
  113. package/lib/esm/core/components/shadcn/index.js +25 -0
  114. package/lib/esm/core/components/shadcn/index.js.map +1 -0
  115. package/lib/esm/core/components/shadcn/input.js +41 -0
  116. package/lib/esm/core/components/shadcn/input.js.map +1 -0
  117. package/lib/esm/core/components/shadcn/label.js +10 -0
  118. package/lib/esm/core/components/shadcn/label.js.map +1 -0
  119. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +10 -0
  120. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -0
  121. package/lib/esm/core/components/shadcn/modal/DeleteModal.js +28 -0
  122. package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -0
  123. package/lib/esm/core/components/shadcn/modal/dialog.js +78 -0
  124. package/lib/esm/core/components/shadcn/modal/dialog.js.map +1 -0
  125. package/lib/esm/core/components/shadcn/modal/index.js +4 -0
  126. package/lib/esm/core/components/shadcn/modal/index.js.map +1 -0
  127. package/lib/esm/core/components/shadcn/popover.js +52 -0
  128. package/lib/esm/core/components/shadcn/popover.js.map +1 -0
  129. package/lib/esm/core/components/shadcn/resizeable.js +15 -0
  130. package/lib/esm/core/components/shadcn/resizeable.js.map +1 -0
  131. package/lib/esm/core/components/shadcn/selectBox.js +152 -0
  132. package/lib/esm/core/components/shadcn/selectBox.js.map +1 -0
  133. package/lib/esm/core/components/shadcn/separator.js +8 -0
  134. package/lib/esm/core/components/shadcn/separator.js.map +1 -0
  135. package/lib/esm/core/components/shadcn/tabs.js +132 -0
  136. package/lib/esm/core/components/shadcn/tabs.js.map +1 -0
  137. package/lib/esm/core/components/shadcn/text.js +30 -0
  138. package/lib/esm/core/components/shadcn/text.js.map +1 -0
  139. package/lib/esm/core/components/shadcn/textarea.js +7 -0
  140. package/lib/esm/core/components/shadcn/textarea.js.map +1 -0
  141. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js +39 -0
  142. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js.map +1 -0
  143. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +13 -0
  144. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -0
  145. package/lib/esm/core/components/shadcn/tooltip.js +18 -0
  146. package/lib/esm/core/components/shadcn/tooltip.js.map +1 -0
  147. package/lib/esm/core/components/styles.js +10 -0
  148. package/lib/esm/core/components/styles.js.map +1 -0
  149. package/lib/esm/core/components/table/index.js +24 -0
  150. package/lib/esm/core/components/table/index.js.map +1 -0
  151. package/lib/esm/core/components/toast/NotificationPanel.js +43 -0
  152. package/lib/esm/core/components/toast/NotificationPanel.js.map +1 -0
  153. package/lib/esm/core/components/toast/ToastContext.js +7 -0
  154. package/lib/esm/core/components/toast/ToastContext.js.map +1 -0
  155. package/lib/esm/core/components/toast/ToastProps.js +2 -0
  156. package/lib/esm/core/components/toast/ToastProps.js.map +1 -0
  157. package/lib/esm/core/components/toast/ToastProvider.js +13 -0
  158. package/lib/esm/core/components/toast/ToastProvider.js.map +1 -0
  159. package/lib/esm/core/components/toast/index.js +3 -0
  160. package/lib/esm/core/components/toast/index.js.map +1 -0
  161. package/lib/esm/core/hooks/CompositeState.js +256 -0
  162. package/lib/esm/core/hooks/CompositeState.js.map +1 -0
  163. package/lib/esm/core/hooks/PortalContainerProvider.js +42 -0
  164. package/lib/esm/core/hooks/PortalContainerProvider.js.map +1 -0
  165. package/lib/esm/core/hooks/SharedState.js +64 -0
  166. package/lib/esm/core/hooks/SharedState.js.map +1 -0
  167. package/lib/esm/core/hooks/index.js +16 -0
  168. package/lib/esm/core/hooks/index.js.map +1 -0
  169. package/lib/esm/core/hooks/useClickOutside.js +29 -0
  170. package/lib/esm/core/hooks/useClickOutside.js.map +1 -0
  171. package/lib/esm/core/hooks/useCopyToClipboard.js +23 -0
  172. package/lib/esm/core/hooks/useCopyToClipboard.js.map +1 -0
  173. package/lib/esm/core/hooks/useDarkMode.js +11 -0
  174. package/lib/esm/core/hooks/useDarkMode.js.map +1 -0
  175. package/lib/esm/core/hooks/useDebounce.js +14 -0
  176. package/lib/esm/core/hooks/useDebounce.js.map +1 -0
  177. package/lib/esm/core/hooks/useEventSource.js +31 -0
  178. package/lib/esm/core/hooks/useEventSource.js.map +1 -0
  179. package/lib/esm/core/hooks/useFetch.js +40 -0
  180. package/lib/esm/core/hooks/useFetch.js.map +1 -0
  181. package/lib/esm/core/hooks/useFlag.js +13 -0
  182. package/lib/esm/core/hooks/useFlag.js.map +1 -0
  183. package/lib/esm/core/hooks/useIntersectionObserver.js +34 -0
  184. package/lib/esm/core/hooks/useIntersectionObserver.js.map +1 -0
  185. package/lib/esm/core/hooks/useIsFistRendering.js +14 -0
  186. package/lib/esm/core/hooks/useIsFistRendering.js.map +1 -0
  187. package/lib/esm/core/hooks/useSafeLayoutEffect.js +4 -0
  188. package/lib/esm/core/hooks/useSafeLayoutEffect.js.map +1 -0
  189. package/lib/esm/core/hooks/useScrollableSearch.js +92 -0
  190. package/lib/esm/core/hooks/useScrollableSearch.js.map +1 -0
  191. package/lib/esm/core/hooks/useSharedValue.js +21 -0
  192. package/lib/esm/core/hooks/useSharedValue.js.map +1 -0
  193. package/lib/esm/core/index.js +4 -0
  194. package/lib/esm/core/index.js.map +1 -0
  195. package/lib/esm/core/utils/cn.js +6 -0
  196. package/lib/esm/core/utils/cn.js.map +1 -0
  197. package/lib/esm/core/utils/index.js +2 -0
  198. package/lib/esm/core/utils/index.js.map +1 -0
  199. package/lib/esm/env/index.js +75 -0
  200. package/lib/esm/env/index.js.map +1 -0
  201. package/lib/esm/features/activity-doc/ActivityDoc.js +71 -0
  202. package/lib/esm/features/activity-doc/ActivityDoc.js.map +1 -0
  203. package/lib/esm/features/activity-doc/index.js +2 -0
  204. package/lib/esm/features/activity-doc/index.js.map +1 -0
  205. package/lib/esm/features/agent/PayloadBuilder.js +288 -0
  206. package/lib/esm/features/agent/PayloadBuilder.js.map +1 -0
  207. package/lib/esm/features/agent/chat/AgentChart.js +184 -0
  208. package/lib/esm/features/agent/chat/AgentChart.js.map +1 -0
  209. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +207 -0
  210. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +1 -0
  211. package/lib/esm/features/agent/chat/JumpingDots.js +6 -0
  212. package/lib/esm/features/agent/chat/JumpingDots.js.map +1 -0
  213. package/lib/esm/features/agent/chat/ModernAgentConversation.js +434 -0
  214. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -0
  215. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +133 -0
  216. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -0
  217. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +62 -0
  218. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -0
  219. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +29 -0
  220. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +1 -0
  221. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +95 -0
  222. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -0
  223. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +54 -0
  224. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -0
  225. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +368 -0
  226. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -0
  227. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +20 -0
  228. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +1 -0
  229. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +63 -0
  230. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -0
  231. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +23 -0
  232. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +1 -0
  233. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +52 -0
  234. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +1 -0
  235. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +82 -0
  236. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -0
  237. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +13 -0
  238. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +1 -0
  239. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +105 -0
  240. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -0
  241. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +160 -0
  242. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -0
  243. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +266 -0
  244. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -0
  245. package/lib/esm/features/agent/chat/WaitingMessages.js +60 -0
  246. package/lib/esm/features/agent/chat/WaitingMessages.js.map +1 -0
  247. package/lib/esm/features/agent/chat/index.js +6 -0
  248. package/lib/esm/features/agent/chat/index.js.map +1 -0
  249. package/lib/esm/features/agent/createChartTool.js +354 -0
  250. package/lib/esm/features/agent/createChartTool.js.map +1 -0
  251. package/lib/esm/features/agent/examples.js +295 -0
  252. package/lib/esm/features/agent/examples.js.map +1 -0
  253. package/lib/esm/features/agent/index.js +5 -0
  254. package/lib/esm/features/agent/index.js.map +1 -0
  255. package/lib/esm/features/agent/visualization.js +165 -0
  256. package/lib/esm/features/agent/visualization.js.map +1 -0
  257. package/lib/esm/features/errors/PanelErrorBoundary.js +11 -0
  258. package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -0
  259. package/lib/esm/features/errors/RowErrorBoundary.js +9 -0
  260. package/lib/esm/features/errors/RowErrorBoundary.js.map +1 -0
  261. package/lib/esm/features/errors/VertesiaErrorBoundary.js +15 -0
  262. package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +1 -0
  263. package/lib/esm/features/errors/WidgetErrorBoundary.js +11 -0
  264. package/lib/esm/features/errors/WidgetErrorBoundary.js.map +1 -0
  265. package/lib/esm/features/errors/index.js +5 -0
  266. package/lib/esm/features/errors/index.js.map +1 -0
  267. package/lib/esm/features/facets/AgentRunnerFacetsNav.js +86 -0
  268. package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +1 -0
  269. package/lib/esm/features/facets/CollectionsFacetsNav.js +89 -0
  270. package/lib/esm/features/facets/CollectionsFacetsNav.js.map +1 -0
  271. package/lib/esm/features/facets/DocumentsFacetsNav.js +147 -0
  272. package/lib/esm/features/facets/DocumentsFacetsNav.js.map +1 -0
  273. package/lib/esm/features/facets/EnvironmentFacet.js +39 -0
  274. package/lib/esm/features/facets/EnvironmentFacet.js.map +1 -0
  275. package/lib/esm/features/facets/InteractionsFacetsNav.js +88 -0
  276. package/lib/esm/features/facets/InteractionsFacetsNav.js.map +1 -0
  277. package/lib/esm/features/facets/PromptsFacetsNav.js +80 -0
  278. package/lib/esm/features/facets/PromptsFacetsNav.js.map +1 -0
  279. package/lib/esm/features/facets/RunsFacetsNav.js +157 -0
  280. package/lib/esm/features/facets/RunsFacetsNav.js.map +1 -0
  281. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js +100 -0
  282. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js.map +1 -0
  283. package/lib/esm/features/facets/index.js +16 -0
  284. package/lib/esm/features/facets/index.js.map +1 -0
  285. package/lib/esm/features/facets/utils/SearchInterface.js +2 -0
  286. package/lib/esm/features/facets/utils/SearchInterface.js.map +1 -0
  287. package/lib/esm/features/facets/utils/StringFacet.js +12 -0
  288. package/lib/esm/features/facets/utils/StringFacet.js.map +1 -0
  289. package/lib/esm/features/facets/utils/StringListFacet.js +11 -0
  290. package/lib/esm/features/facets/utils/StringListFacet.js.map +1 -0
  291. package/lib/esm/features/facets/utils/TypeFacet.js +42 -0
  292. package/lib/esm/features/facets/utils/TypeFacet.js.map +1 -0
  293. package/lib/esm/features/facets/utils/VEnvironmentFacet.js +25 -0
  294. package/lib/esm/features/facets/utils/VEnvironmentFacet.js.map +1 -0
  295. package/lib/esm/features/facets/utils/VInteractionFacet.js +45 -0
  296. package/lib/esm/features/facets/utils/VInteractionFacet.js.map +1 -0
  297. package/lib/esm/features/facets/utils/VStringFacet.js +20 -0
  298. package/lib/esm/features/facets/utils/VStringFacet.js.map +1 -0
  299. package/lib/esm/features/facets/utils/VTypeFacet.js +61 -0
  300. package/lib/esm/features/facets/utils/VTypeFacet.js.map +1 -0
  301. package/lib/esm/features/facets/utils/VUserFacet.js +31 -0
  302. package/lib/esm/features/facets/utils/VUserFacet.js.map +1 -0
  303. package/lib/esm/features/facets/utils/utils.js +7 -0
  304. package/lib/esm/features/facets/utils/utils.js.map +1 -0
  305. package/lib/esm/features/index.js +12 -0
  306. package/lib/esm/features/index.js.map +1 -0
  307. package/lib/esm/features/layout/GenericPageNavHeader.js +74 -0
  308. package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -0
  309. package/lib/esm/features/layout/NotFoundView.js +5 -0
  310. package/lib/esm/features/layout/NotFoundView.js.map +1 -0
  311. package/lib/esm/features/layout/index.js +3 -0
  312. package/lib/esm/features/layout/index.js.map +1 -0
  313. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +268 -0
  314. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +1 -0
  315. package/lib/esm/features/magic-pdf/DownloadPopover.js +28 -0
  316. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -0
  317. package/lib/esm/features/magic-pdf/ExtractedContentView.js +77 -0
  318. package/lib/esm/features/magic-pdf/ExtractedContentView.js.map +1 -0
  319. package/lib/esm/features/magic-pdf/MagicPdfProvider.js +242 -0
  320. package/lib/esm/features/magic-pdf/MagicPdfProvider.js.map +1 -0
  321. package/lib/esm/features/magic-pdf/MagicPdfView.js +61 -0
  322. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -0
  323. package/lib/esm/features/magic-pdf/index.js +2 -0
  324. package/lib/esm/features/magic-pdf/index.js.map +1 -0
  325. package/lib/esm/features/magic-pdf/types.js +2 -0
  326. package/lib/esm/features/magic-pdf/types.js.map +1 -0
  327. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js +261 -0
  328. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js.map +1 -0
  329. package/lib/esm/features/pdf-viewer/PdfPageSlider.js +276 -0
  330. package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +1 -0
  331. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +71 -0
  332. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +1 -0
  333. package/lib/esm/features/pdf-viewer/index.js +4 -0
  334. package/lib/esm/features/pdf-viewer/index.js.map +1 -0
  335. package/lib/esm/features/permissions/SecureButton.js +13 -0
  336. package/lib/esm/features/permissions/SecureButton.js.map +1 -0
  337. package/lib/esm/features/permissions/SecureSidebarItem.js +14 -0
  338. package/lib/esm/features/permissions/SecureSidebarItem.js.map +1 -0
  339. package/lib/esm/features/permissions/UserPermissionsProvider.js +87 -0
  340. package/lib/esm/features/permissions/UserPermissionsProvider.js.map +1 -0
  341. package/lib/esm/features/permissions/helpers.js +12 -0
  342. package/lib/esm/features/permissions/helpers.js.map +1 -0
  343. package/lib/esm/features/permissions/index.js +5 -0
  344. package/lib/esm/features/permissions/index.js.map +1 -0
  345. package/lib/esm/features/store/collections/BrowseCollectionView.js +37 -0
  346. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -0
  347. package/lib/esm/features/store/collections/CollectionsTable.js +64 -0
  348. package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -0
  349. package/lib/esm/features/store/collections/CreateCollection.js +87 -0
  350. package/lib/esm/features/store/collections/CreateCollection.js.map +1 -0
  351. package/lib/esm/features/store/collections/EditCollectionView.js +181 -0
  352. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -0
  353. package/lib/esm/features/store/collections/SelectCollection.js +119 -0
  354. package/lib/esm/features/store/collections/SelectCollection.js.map +1 -0
  355. package/lib/esm/features/store/collections/SharedPropsEditor.js +39 -0
  356. package/lib/esm/features/store/collections/SharedPropsEditor.js.map +1 -0
  357. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +35 -0
  358. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +1 -0
  359. package/lib/esm/features/store/collections/index.js +8 -0
  360. package/lib/esm/features/store/collections/index.js.map +1 -0
  361. package/lib/esm/features/store/index.js +4 -0
  362. package/lib/esm/features/store/index.js.map +1 -0
  363. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +147 -0
  364. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -0
  365. package/lib/esm/features/store/objects/DocumentSearchResults.js +204 -0
  366. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -0
  367. package/lib/esm/features/store/objects/DocumentSelectionProvider.js +81 -0
  368. package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +1 -0
  369. package/lib/esm/features/store/objects/DocumentTable.js +278 -0
  370. package/lib/esm/features/store/objects/DocumentTable.js.map +1 -0
  371. package/lib/esm/features/store/objects/ExportPropertiesModal.js +31 -0
  372. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -0
  373. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +31 -0
  374. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -0
  375. package/lib/esm/features/store/objects/components/ContentOverview.js +520 -0
  376. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -0
  377. package/lib/esm/features/store/objects/components/DocumentIcon.js +33 -0
  378. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -0
  379. package/lib/esm/features/store/objects/components/DocumentInput.js +51 -0
  380. package/lib/esm/features/store/objects/components/DocumentInput.js.map +1 -0
  381. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +157 -0
  382. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -0
  383. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +53 -0
  384. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -0
  385. package/lib/esm/features/store/objects/components/SelectDocument.js +55 -0
  386. package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -0
  387. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +7 -0
  388. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +1 -0
  389. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +90 -0
  390. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -0
  391. package/lib/esm/features/store/objects/components/index.js +10 -0
  392. package/lib/esm/features/store/objects/components/index.js.map +1 -0
  393. package/lib/esm/features/store/objects/components/useContentPanelHooks.js +153 -0
  394. package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +1 -0
  395. package/lib/esm/features/store/objects/components/useDownloadObject.js +21 -0
  396. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +1 -0
  397. package/lib/esm/features/store/objects/index.js +11 -0
  398. package/lib/esm/features/store/objects/index.js.map +1 -0
  399. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +86 -0
  400. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +1 -0
  401. package/lib/esm/features/store/objects/layout/documentLayout.js +15 -0
  402. package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -0
  403. package/lib/esm/features/store/objects/layout/index.js +3 -0
  404. package/lib/esm/features/store/objects/layout/index.js.map +1 -0
  405. package/lib/esm/features/store/objects/layout/renderers.js +157 -0
  406. package/lib/esm/features/store/objects/layout/renderers.js.map +1 -0
  407. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +174 -0
  408. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -0
  409. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +39 -0
  410. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -0
  411. package/lib/esm/features/store/objects/search/index.js +3 -0
  412. package/lib/esm/features/store/objects/search/index.js.map +1 -0
  413. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +150 -0
  414. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -0
  415. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +2 -0
  416. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +1 -0
  417. package/lib/esm/features/store/objects/selection/SelectionActions.js +66 -0
  418. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -0
  419. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +81 -0
  420. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -0
  421. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +53 -0
  422. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -0
  423. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +30 -0
  424. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -0
  425. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +84 -0
  426. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -0
  427. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +106 -0
  428. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -0
  429. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +64 -0
  430. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -0
  431. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +72 -0
  432. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -0
  433. package/lib/esm/features/store/objects/selection/actions/index.js +8 -0
  434. package/lib/esm/features/store/objects/selection/actions/index.js.map +1 -0
  435. package/lib/esm/features/store/objects/selection/index.js +5 -0
  436. package/lib/esm/features/store/objects/selection/index.js.map +1 -0
  437. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +519 -0
  438. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -0
  439. package/lib/esm/features/store/objects/upload/index.js +4 -0
  440. package/lib/esm/features/store/objects/upload/index.js.map +1 -0
  441. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +195 -0
  442. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -0
  443. package/lib/esm/features/store/objects/upload/useUploadHandler.js +230 -0
  444. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -0
  445. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +81 -0
  446. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -0
  447. package/lib/esm/features/store/types/ContentObjectTypesTable.js +11 -0
  448. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -0
  449. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +26 -0
  450. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -0
  451. package/lib/esm/features/store/types/ObjectSchemaEditor.js +102 -0
  452. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -0
  453. package/lib/esm/features/store/types/SelectContentType.js +43 -0
  454. package/lib/esm/features/store/types/SelectContentType.js.map +1 -0
  455. package/lib/esm/features/store/types/SelectContentTypeModal.js +29 -0
  456. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -0
  457. package/lib/esm/features/store/types/TableLayoutEditor.js +76 -0
  458. package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -0
  459. package/lib/esm/features/store/types/index.js +9 -0
  460. package/lib/esm/features/store/types/index.js.map +1 -0
  461. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +98 -0
  462. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +1 -0
  463. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +15 -0
  464. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +1 -0
  465. package/lib/esm/features/store/types/search/index.js +3 -0
  466. package/lib/esm/features/store/types/search/index.js.map +1 -0
  467. package/lib/esm/features/user/UserAvatar.js +18 -0
  468. package/lib/esm/features/user/UserAvatar.js.map +1 -0
  469. package/lib/esm/features/user/UserInfo.js +121 -0
  470. package/lib/esm/features/user/UserInfo.js.map +1 -0
  471. package/lib/esm/features/user/index.js +3 -0
  472. package/lib/esm/features/user/index.js.map +1 -0
  473. package/lib/esm/features/utils/index.js +6 -0
  474. package/lib/esm/features/utils/index.js.map +1 -0
  475. package/lib/esm/features/utils/mimeType.js +17 -0
  476. package/lib/esm/features/utils/mimeType.js.map +1 -0
  477. package/lib/esm/features/utils/print.js +181 -0
  478. package/lib/esm/features/utils/print.js.map +1 -0
  479. package/lib/esm/features/utils/rendition.js +67 -0
  480. package/lib/esm/features/utils/rendition.js.map +1 -0
  481. package/lib/esm/features/utils/text.js +10 -0
  482. package/lib/esm/features/utils/text.js.map +1 -0
  483. package/lib/esm/features/utils/workflowStatus.js +43 -0
  484. package/lib/esm/features/utils/workflowStatus.js.map +1 -0
  485. package/lib/esm/layout/AppLayout.js +45 -0
  486. package/lib/esm/layout/AppLayout.js.map +1 -0
  487. package/lib/esm/layout/FullHeightLayout.js +18 -0
  488. package/lib/esm/layout/FullHeightLayout.js.map +1 -0
  489. package/lib/esm/layout/Navbar.js +40 -0
  490. package/lib/esm/layout/Navbar.js.map +1 -0
  491. package/lib/esm/layout/Sidebar.js +45 -0
  492. package/lib/esm/layout/Sidebar.js.map +1 -0
  493. package/lib/esm/layout/SidebarContext.js +10 -0
  494. package/lib/esm/layout/SidebarContext.js.map +1 -0
  495. package/lib/esm/layout/TitleBar.js +5 -0
  496. package/lib/esm/layout/TitleBar.js.map +1 -0
  497. package/lib/esm/layout/index.js +7 -0
  498. package/lib/esm/layout/index.js.map +1 -0
  499. package/lib/esm/router/FixLinks.js +23 -0
  500. package/lib/esm/router/FixLinks.js.map +1 -0
  501. package/lib/esm/router/HistoryNavigator.js +192 -0
  502. package/lib/esm/router/HistoryNavigator.js.map +1 -0
  503. package/lib/esm/router/Nav.js +26 -0
  504. package/lib/esm/router/Nav.js.map +1 -0
  505. package/lib/esm/router/NestedNavigationContext.js +19 -0
  506. package/lib/esm/router/NestedNavigationContext.js.map +1 -0
  507. package/lib/esm/router/NestedRouterProvider.js +44 -0
  508. package/lib/esm/router/NestedRouterProvider.js.map +1 -0
  509. package/lib/esm/router/PathMatcher.js +159 -0
  510. package/lib/esm/router/PathMatcher.js.map +1 -0
  511. package/lib/esm/router/PathWithParams.js +34 -0
  512. package/lib/esm/router/PathWithParams.js.map +1 -0
  513. package/lib/esm/router/Route404.js +18 -0
  514. package/lib/esm/router/Route404.js.map +1 -0
  515. package/lib/esm/router/RouteComponent.js +32 -0
  516. package/lib/esm/router/RouteComponent.js.map +1 -0
  517. package/lib/esm/router/Router.js +161 -0
  518. package/lib/esm/router/Router.js.map +1 -0
  519. package/lib/esm/router/RouterProvider.js +41 -0
  520. package/lib/esm/router/RouterProvider.js.map +1 -0
  521. package/lib/esm/router/index.js +11 -0
  522. package/lib/esm/router/index.js.map +1 -0
  523. package/lib/esm/router/path.js +140 -0
  524. package/lib/esm/router/path.js.map +1 -0
  525. package/lib/esm/session/TypeRegistry.js +24 -0
  526. package/lib/esm/session/TypeRegistry.js.map +1 -0
  527. package/lib/esm/session/UserSession.js +192 -0
  528. package/lib/esm/session/UserSession.js.map +1 -0
  529. package/lib/esm/session/UserSessionProvider.js +179 -0
  530. package/lib/esm/session/UserSessionProvider.js.map +1 -0
  531. package/lib/esm/session/auth/composable.js +255 -0
  532. package/lib/esm/session/auth/composable.js.map +1 -0
  533. package/lib/esm/session/auth/firebase.js +158 -0
  534. package/lib/esm/session/auth/firebase.js.map +1 -0
  535. package/lib/esm/session/auth/useAuthState.js +46 -0
  536. package/lib/esm/session/auth/useAuthState.js.map +1 -0
  537. package/lib/esm/session/auth/useCurrentTenant.js +63 -0
  538. package/lib/esm/session/auth/useCurrentTenant.js.map +1 -0
  539. package/lib/esm/session/constants.js +3 -0
  540. package/lib/esm/session/constants.js.map +1 -0
  541. package/lib/esm/session/index.js +9 -0
  542. package/lib/esm/session/index.js.map +1 -0
  543. package/lib/esm/session/useUXTracking.js +29 -0
  544. package/lib/esm/session/useUXTracking.js.map +1 -0
  545. package/lib/esm/shell/SplashScreen.js +26 -0
  546. package/lib/esm/shell/SplashScreen.js.map +1 -0
  547. package/lib/esm/shell/VertesiaShell.js +10 -0
  548. package/lib/esm/shell/VertesiaShell.js.map +1 -0
  549. package/lib/esm/shell/apps/AppInstallationProvider.js +13 -0
  550. package/lib/esm/shell/apps/AppInstallationProvider.js.map +1 -0
  551. package/lib/esm/shell/apps/AppProjectSelector.js +36 -0
  552. package/lib/esm/shell/apps/AppProjectSelector.js.map +1 -0
  553. package/lib/esm/shell/apps/StandaloneApp.js +60 -0
  554. package/lib/esm/shell/apps/StandaloneApp.js.map +1 -0
  555. package/lib/esm/shell/apps/index.js +4 -0
  556. package/lib/esm/shell/apps/index.js.map +1 -0
  557. package/lib/esm/shell/index.js +8 -0
  558. package/lib/esm/shell/index.js.map +1 -0
  559. package/lib/esm/shell/login/EnterpriseSigninButton.js +84 -0
  560. package/lib/esm/shell/login/EnterpriseSigninButton.js.map +1 -0
  561. package/lib/esm/shell/login/GitHubSignInButton.js +24 -0
  562. package/lib/esm/shell/login/GitHubSignInButton.js.map +1 -0
  563. package/lib/esm/shell/login/GoogleSignInButton.js +25 -0
  564. package/lib/esm/shell/login/GoogleSignInButton.js.map +1 -0
  565. package/lib/esm/shell/login/InviteAcceptModal.js +62 -0
  566. package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -0
  567. package/lib/esm/shell/login/MicrosoftSigninButton.js +19 -0
  568. package/lib/esm/shell/login/MicrosoftSigninButton.js.map +1 -0
  569. package/lib/esm/shell/login/PreviewIcon.js +23 -0
  570. package/lib/esm/shell/login/PreviewIcon.js.map +1 -0
  571. package/lib/esm/shell/login/SignInModal.js +9 -0
  572. package/lib/esm/shell/login/SignInModal.js.map +1 -0
  573. package/lib/esm/shell/login/SigninScreen.js +64 -0
  574. package/lib/esm/shell/login/SigninScreen.js.map +1 -0
  575. package/lib/esm/shell/login/SignupForm.js +91 -0
  576. package/lib/esm/shell/login/SignupForm.js.map +1 -0
  577. package/lib/esm/shell/login/TerminalLogin.js +179 -0
  578. package/lib/esm/shell/login/TerminalLogin.js.map +1 -0
  579. package/lib/esm/shell/login/UserInfo.js +41 -0
  580. package/lib/esm/shell/login/UserInfo.js.map +1 -0
  581. package/lib/esm/shell/login/UserSessionMenu.js +37 -0
  582. package/lib/esm/shell/login/UserSessionMenu.js.map +1 -0
  583. package/lib/esm/shell/utils.js +6 -0
  584. package/lib/esm/shell/utils.js.map +1 -0
  585. package/lib/esm/widgets/Progress.js +5 -0
  586. package/lib/esm/widgets/Progress.js.map +1 -0
  587. package/lib/esm/widgets/SvgIcon.js +36 -0
  588. package/lib/esm/widgets/SvgIcon.js.map +1 -0
  589. package/lib/esm/widgets/form/Form.js +100 -0
  590. package/lib/esm/widgets/form/Form.js.map +1 -0
  591. package/lib/esm/widgets/form/FormContext.js +31 -0
  592. package/lib/esm/widgets/form/FormContext.js.map +1 -0
  593. package/lib/esm/widgets/form/ManagedObject.js +287 -0
  594. package/lib/esm/widgets/form/ManagedObject.js.map +1 -0
  595. package/lib/esm/widgets/form/fields.js +12 -0
  596. package/lib/esm/widgets/form/fields.js.map +1 -0
  597. package/lib/esm/widgets/form/index.js +7 -0
  598. package/lib/esm/widgets/form/index.js.map +1 -0
  599. package/lib/esm/widgets/form/inputs.js +38 -0
  600. package/lib/esm/widgets/form/inputs.js.map +1 -0
  601. package/lib/esm/widgets/form/schema.js +197 -0
  602. package/lib/esm/widgets/form/schema.js.map +1 -0
  603. package/lib/esm/widgets/index.js +12 -0
  604. package/lib/esm/widgets/index.js.map +1 -0
  605. package/lib/esm/widgets/json-view/JSONCode.js +22 -0
  606. package/lib/esm/widgets/json-view/JSONCode.js.map +1 -0
  607. package/lib/esm/widgets/json-view/JSONDisplay.js +10 -0
  608. package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -0
  609. package/lib/esm/widgets/json-view/JSONView.js +106 -0
  610. package/lib/esm/widgets/json-view/JSONView.js.map +1 -0
  611. package/lib/esm/widgets/json-view/index.js +4 -0
  612. package/lib/esm/widgets/json-view/index.js.map +1 -0
  613. package/lib/esm/widgets/json-view/types.js +2 -0
  614. package/lib/esm/widgets/json-view/types.js.map +1 -0
  615. package/lib/esm/widgets/markdown/MarkdownRenderer.js +246 -0
  616. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -0
  617. package/lib/esm/widgets/markdown/index.js +2 -0
  618. package/lib/esm/widgets/markdown/index.js.map +1 -0
  619. package/lib/esm/widgets/monacoEditor/MonacoEditor.js +133 -0
  620. package/lib/esm/widgets/monacoEditor/MonacoEditor.js.map +1 -0
  621. package/lib/esm/widgets/monacoEditor/index.js +2 -0
  622. package/lib/esm/widgets/monacoEditor/index.js.map +1 -0
  623. package/lib/esm/widgets/popover/Popover.js +73 -0
  624. package/lib/esm/widgets/popover/Popover.js.map +1 -0
  625. package/lib/esm/widgets/popover/context.js +7 -0
  626. package/lib/esm/widgets/popover/context.js.map +1 -0
  627. package/lib/esm/widgets/popover/index.js +3 -0
  628. package/lib/esm/widgets/popover/index.js.map +1 -0
  629. package/lib/esm/widgets/popover/slots.js +22 -0
  630. package/lib/esm/widgets/popover/slots.js.map +1 -0
  631. package/lib/esm/widgets/properties/PropertiesView.js +8 -0
  632. package/lib/esm/widgets/properties/PropertiesView.js.map +1 -0
  633. package/lib/esm/widgets/properties/index.js +2 -0
  634. package/lib/esm/widgets/properties/index.js.map +1 -0
  635. package/lib/esm/widgets/schema-editor/ManagedSchema.js +300 -0
  636. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -0
  637. package/lib/esm/widgets/schema-editor/editor/Editable.js +110 -0
  638. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +1 -0
  639. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js +8 -0
  640. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js.map +1 -0
  641. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +81 -0
  642. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -0
  643. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +7 -0
  644. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +1 -0
  645. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js +9 -0
  646. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js.map +1 -0
  647. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +84 -0
  648. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -0
  649. package/lib/esm/widgets/schema-editor/index.js +7 -0
  650. package/lib/esm/widgets/schema-editor/index.js.map +1 -0
  651. package/lib/esm/widgets/schema-editor/json-schema4-utils.js +188 -0
  652. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +1 -0
  653. package/lib/esm/widgets/schema-editor/type-signature.js +30 -0
  654. package/lib/esm/widgets/schema-editor/type-signature.js.map +1 -0
  655. package/lib/esm/widgets/upload/DropZone.js +175 -0
  656. package/lib/esm/widgets/upload/DropZone.js.map +1 -0
  657. package/lib/esm/widgets/upload/UploadResultCategory.js +19 -0
  658. package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -0
  659. package/lib/esm/widgets/upload/UploadSummary.js +30 -0
  660. package/lib/esm/widgets/upload/UploadSummary.js.map +1 -0
  661. package/lib/esm/widgets/upload/index.js +4 -0
  662. package/lib/esm/widgets/upload/index.js.map +1 -0
  663. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js +11 -0
  664. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js.map +1 -0
  665. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js +8 -0
  666. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js.map +1 -0
  667. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js +11 -0
  668. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js.map +1 -0
  669. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js +11 -0
  670. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js.map +1 -0
  671. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js +9 -0
  672. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js.map +1 -0
  673. package/lib/esm/widgets/xml-viewer/components/Elements/index.js +36 -0
  674. package/lib/esm/widgets/xml-viewer/components/Elements/index.js.map +1 -0
  675. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js +5 -0
  676. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js.map +1 -0
  677. package/lib/esm/widgets/xml-viewer/components/Tag/index.js +13 -0
  678. package/lib/esm/widgets/xml-viewer/components/Tag/index.js.map +1 -0
  679. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js +13 -0
  680. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js.map +1 -0
  681. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js +39 -0
  682. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +1 -0
  683. package/lib/esm/widgets/xml-viewer/components/types.js +2 -0
  684. package/lib/esm/widgets/xml-viewer/components/types.js.map +1 -0
  685. package/lib/esm/widgets/xml-viewer/constants/index.js +27 -0
  686. package/lib/esm/widgets/xml-viewer/constants/index.js.map +1 -0
  687. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js +10 -0
  688. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js.map +1 -0
  689. package/lib/esm/widgets/xml-viewer/helpers/index.js +40 -0
  690. package/lib/esm/widgets/xml-viewer/helpers/index.js.map +1 -0
  691. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js +22 -0
  692. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js.map +1 -0
  693. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js +31 -0
  694. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js.map +1 -0
  695. package/lib/esm/widgets/xml-viewer/index.js +3 -0
  696. package/lib/esm/widgets/xml-viewer/index.js.map +1 -0
  697. package/lib/esm/widgets/xml-viewer/types/index.js +2 -0
  698. package/lib/esm/widgets/xml-viewer/types/index.js.map +1 -0
  699. package/lib/tsconfig.tsbuildinfo +1 -0
  700. package/lib/types/core/components/Avatar.d.ts +16 -0
  701. package/lib/types/core/components/Avatar.d.ts.map +1 -0
  702. package/lib/types/core/components/Center.d.ts +8 -0
  703. package/lib/types/core/components/Center.d.ts.map +1 -0
  704. package/lib/types/core/components/ComboBox.d.ts +124 -0
  705. package/lib/types/core/components/ComboBox.d.ts.map +1 -0
  706. package/lib/types/core/components/Divider.d.ts +6 -0
  707. package/lib/types/core/components/Divider.d.ts.map +1 -0
  708. package/lib/types/core/components/Dropdown.d.ts +15 -0
  709. package/lib/types/core/components/Dropdown.d.ts.map +1 -0
  710. package/lib/types/core/components/DropdownList.d.ts +13 -0
  711. package/lib/types/core/components/DropdownList.d.ts.map +1 -0
  712. package/lib/types/core/components/EmptyCollection.d.ts +9 -0
  713. package/lib/types/core/components/EmptyCollection.d.ts.map +1 -0
  714. package/lib/types/core/components/FileUpload.d.ts +29 -0
  715. package/lib/types/core/components/FileUpload.d.ts.map +1 -0
  716. package/lib/types/core/components/FormItem.d.ts +13 -0
  717. package/lib/types/core/components/FormItem.d.ts.map +1 -0
  718. package/lib/types/core/components/InputList.d.ts +12 -0
  719. package/lib/types/core/components/InputList.d.ts.map +1 -0
  720. package/lib/types/core/components/Link.d.ts +7 -0
  721. package/lib/types/core/components/Link.d.ts.map +1 -0
  722. package/lib/types/core/components/MenuList.d.ts +14 -0
  723. package/lib/types/core/components/MenuList.d.ts.map +1 -0
  724. package/lib/types/core/components/NumberInput.d.ts +16 -0
  725. package/lib/types/core/components/NumberInput.d.ts.map +1 -0
  726. package/lib/types/core/components/Overlay.d.ts +25 -0
  727. package/lib/types/core/components/Overlay.d.ts.map +1 -0
  728. package/lib/types/core/components/Portal.d.ts +6 -0
  729. package/lib/types/core/components/Portal.d.ts.map +1 -0
  730. package/lib/types/core/components/RadioGroup.d.ts +26 -0
  731. package/lib/types/core/components/RadioGroup.d.ts.map +1 -0
  732. package/lib/types/core/components/SelectList.d.ts +19 -0
  733. package/lib/types/core/components/SelectList.d.ts.map +1 -0
  734. package/lib/types/core/components/SelectStack.d.ts +13 -0
  735. package/lib/types/core/components/SelectStack.d.ts.map +1 -0
  736. package/lib/types/core/components/SidePanel.d.ts +14 -0
  737. package/lib/types/core/components/SidePanel.d.ts.map +1 -0
  738. package/lib/types/core/components/Spinner.d.ts +7 -0
  739. package/lib/types/core/components/Spinner.d.ts.map +1 -0
  740. package/lib/types/core/components/Switch.d.ts +11 -0
  741. package/lib/types/core/components/Switch.d.ts.map +1 -0
  742. package/lib/types/core/components/TagsInput.d.ts +16 -0
  743. package/lib/types/core/components/TagsInput.d.ts.map +1 -0
  744. package/lib/types/core/components/index.d.ts +32 -0
  745. package/lib/types/core/components/index.d.ts.map +1 -0
  746. package/lib/types/core/components/libs/utils.d.ts +3 -0
  747. package/lib/types/core/components/libs/utils.d.ts.map +1 -0
  748. package/lib/types/core/components/libs/visuallyHidden.d.ts +7 -0
  749. package/lib/types/core/components/libs/visuallyHidden.d.ts.map +1 -0
  750. package/lib/types/core/components/popup/Popup.d.ts +26 -0
  751. package/lib/types/core/components/popup/Popup.d.ts.map +1 -0
  752. package/lib/types/core/components/popup/PopupController.d.ts +41 -0
  753. package/lib/types/core/components/popup/PopupController.d.ts.map +1 -0
  754. package/lib/types/core/components/popup/index.d.ts +4 -0
  755. package/lib/types/core/components/popup/index.d.ts.map +1 -0
  756. package/lib/types/core/components/popup/position.d.ts +59 -0
  757. package/lib/types/core/components/popup/position.d.ts.map +1 -0
  758. package/lib/types/core/components/popup/utils.d.ts +30 -0
  759. package/lib/types/core/components/popup/utils.d.ts.map +1 -0
  760. package/lib/types/core/components/shadcn/MessageBox.d.ts +36 -0
  761. package/lib/types/core/components/shadcn/MessageBox.d.ts.map +1 -0
  762. package/lib/types/core/components/shadcn/Panel.d.ts +11 -0
  763. package/lib/types/core/components/shadcn/Panel.d.ts.map +1 -0
  764. package/lib/types/core/components/shadcn/badge.d.ts +21 -0
  765. package/lib/types/core/components/shadcn/badge.d.ts.map +1 -0
  766. package/lib/types/core/components/shadcn/breadcrumb.d.ts +15 -0
  767. package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +1 -0
  768. package/lib/types/core/components/shadcn/button.d.ts +27 -0
  769. package/lib/types/core/components/shadcn/button.d.ts.map +1 -0
  770. package/lib/types/core/components/shadcn/calendar.d.ts +11 -0
  771. package/lib/types/core/components/shadcn/calendar.d.ts.map +1 -0
  772. package/lib/types/core/components/shadcn/card.d.ts +9 -0
  773. package/lib/types/core/components/shadcn/card.d.ts.map +1 -0
  774. package/lib/types/core/components/shadcn/checkbox.d.ts +5 -0
  775. package/lib/types/core/components/shadcn/checkbox.d.ts.map +1 -0
  776. package/lib/types/core/components/shadcn/command.d.ts +17 -0
  777. package/lib/types/core/components/shadcn/command.d.ts.map +1 -0
  778. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +9 -0
  779. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts.map +1 -0
  780. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts +7 -0
  781. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts.map +1 -0
  782. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts +6 -0
  783. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +1 -0
  784. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts +9 -0
  785. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +1 -0
  786. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts +6 -0
  787. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts.map +1 -0
  788. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts +6 -0
  789. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts.map +1 -0
  790. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts +5 -0
  791. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts.map +1 -0
  792. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts +12 -0
  793. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts.map +1 -0
  794. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts +11 -0
  795. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts.map +1 -0
  796. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts +13 -0
  797. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts.map +1 -0
  798. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts +14 -0
  799. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +1 -0
  800. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts +2 -0
  801. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts.map +1 -0
  802. package/lib/types/core/components/shadcn/filters/filterBar.d.ts +20 -0
  803. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -0
  804. package/lib/types/core/components/shadcn/filters/filters.d.ts +10 -0
  805. package/lib/types/core/components/shadcn/filters/filters.d.ts.map +1 -0
  806. package/lib/types/core/components/shadcn/filters/index.d.ts +6 -0
  807. package/lib/types/core/components/shadcn/filters/index.d.ts.map +1 -0
  808. package/lib/types/core/components/shadcn/filters/types.d.ts +35 -0
  809. package/lib/types/core/components/shadcn/filters/types.d.ts.map +1 -0
  810. package/lib/types/core/components/shadcn/heading.d.ts +6 -0
  811. package/lib/types/core/components/shadcn/heading.d.ts.map +1 -0
  812. package/lib/types/core/components/shadcn/index.d.ts +25 -0
  813. package/lib/types/core/components/shadcn/index.d.ts.map +1 -0
  814. package/lib/types/core/components/shadcn/input.d.ts +17 -0
  815. package/lib/types/core/components/shadcn/input.d.ts.map +1 -0
  816. package/lib/types/core/components/shadcn/label.d.ts +8 -0
  817. package/lib/types/core/components/shadcn/label.d.ts.map +1 -0
  818. package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts +11 -0
  819. package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -0
  820. package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts +11 -0
  821. package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -0
  822. package/lib/types/core/components/shadcn/modal/dialog.d.ts +39 -0
  823. package/lib/types/core/components/shadcn/modal/dialog.d.ts.map +1 -0
  824. package/lib/types/core/components/shadcn/modal/index.d.ts +4 -0
  825. package/lib/types/core/components/shadcn/modal/index.d.ts.map +1 -0
  826. package/lib/types/core/components/shadcn/popover.d.ts +24 -0
  827. package/lib/types/core/components/shadcn/popover.d.ts.map +1 -0
  828. package/lib/types/core/components/shadcn/resizeable.d.ts +9 -0
  829. package/lib/types/core/components/shadcn/resizeable.d.ts.map +1 -0
  830. package/lib/types/core/components/shadcn/selectBox.d.ts +39 -0
  831. package/lib/types/core/components/shadcn/selectBox.d.ts.map +1 -0
  832. package/lib/types/core/components/shadcn/separator.d.ts +5 -0
  833. package/lib/types/core/components/shadcn/separator.d.ts.map +1 -0
  834. package/lib/types/core/components/shadcn/tabs.d.ts +41 -0
  835. package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -0
  836. package/lib/types/core/components/shadcn/text.d.ts +11 -0
  837. package/lib/types/core/components/shadcn/text.d.ts.map +1 -0
  838. package/lib/types/core/components/shadcn/textarea.d.ts +4 -0
  839. package/lib/types/core/components/shadcn/textarea.d.ts.map +1 -0
  840. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts +15 -0
  841. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts.map +1 -0
  842. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +10 -0
  843. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +1 -0
  844. package/lib/types/core/components/shadcn/tooltip.d.ts +20 -0
  845. package/lib/types/core/components/shadcn/tooltip.d.ts.map +1 -0
  846. package/lib/types/core/components/styles.d.ts +7 -0
  847. package/lib/types/core/components/styles.d.ts.map +1 -0
  848. package/lib/types/core/components/table/index.d.ts +19 -0
  849. package/lib/types/core/components/table/index.d.ts.map +1 -0
  850. package/lib/types/core/components/toast/NotificationPanel.d.ts +8 -0
  851. package/lib/types/core/components/toast/NotificationPanel.d.ts.map +1 -0
  852. package/lib/types/core/components/toast/ToastContext.d.ts +6 -0
  853. package/lib/types/core/components/toast/ToastContext.d.ts.map +1 -0
  854. package/lib/types/core/components/toast/ToastProps.d.ts +7 -0
  855. package/lib/types/core/components/toast/ToastProps.d.ts.map +1 -0
  856. package/lib/types/core/components/toast/ToastProvider.d.ts +6 -0
  857. package/lib/types/core/components/toast/ToastProvider.d.ts.map +1 -0
  858. package/lib/types/core/components/toast/index.d.ts +3 -0
  859. package/lib/types/core/components/toast/index.d.ts.map +1 -0
  860. package/lib/types/core/hooks/CompositeState.d.ts +137 -0
  861. package/lib/types/core/hooks/CompositeState.d.ts.map +1 -0
  862. package/lib/types/core/hooks/PortalContainerProvider.d.ts +7 -0
  863. package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +1 -0
  864. package/lib/types/core/hooks/SharedState.d.ts +10 -0
  865. package/lib/types/core/hooks/SharedState.d.ts.map +1 -0
  866. package/lib/types/core/hooks/index.d.ts +16 -0
  867. package/lib/types/core/hooks/index.d.ts.map +1 -0
  868. package/lib/types/core/hooks/useClickOutside.d.ts +8 -0
  869. package/lib/types/core/hooks/useClickOutside.d.ts.map +1 -0
  870. package/lib/types/core/hooks/useCopyToClipboard.d.ts +5 -0
  871. package/lib/types/core/hooks/useCopyToClipboard.d.ts.map +1 -0
  872. package/lib/types/core/hooks/useDarkMode.d.ts +2 -0
  873. package/lib/types/core/hooks/useDarkMode.d.ts.map +1 -0
  874. package/lib/types/core/hooks/useDebounce.d.ts +2 -0
  875. package/lib/types/core/hooks/useDebounce.d.ts.map +1 -0
  876. package/lib/types/core/hooks/useEventSource.d.ts +2 -0
  877. package/lib/types/core/hooks/useEventSource.d.ts.map +1 -0
  878. package/lib/types/core/hooks/useFetch.d.ts +24 -0
  879. package/lib/types/core/hooks/useFetch.d.ts.map +1 -0
  880. package/lib/types/core/hooks/useFlag.d.ts +9 -0
  881. package/lib/types/core/hooks/useFlag.d.ts.map +1 -0
  882. package/lib/types/core/hooks/useIntersectionObserver.d.ts +14 -0
  883. package/lib/types/core/hooks/useIntersectionObserver.d.ts.map +1 -0
  884. package/lib/types/core/hooks/useIsFistRendering.d.ts +2 -0
  885. package/lib/types/core/hooks/useIsFistRendering.d.ts.map +1 -0
  886. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts +4 -0
  887. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts.map +1 -0
  888. package/lib/types/core/hooks/useScrollableSearch.d.ts +82 -0
  889. package/lib/types/core/hooks/useScrollableSearch.d.ts.map +1 -0
  890. package/lib/types/core/hooks/useSharedValue.d.ts +12 -0
  891. package/lib/types/core/hooks/useSharedValue.d.ts.map +1 -0
  892. package/lib/types/core/index.d.ts +4 -0
  893. package/lib/types/core/index.d.ts.map +1 -0
  894. package/lib/types/core/utils/cn.d.ts +3 -0
  895. package/lib/types/core/utils/cn.d.ts.map +1 -0
  896. package/lib/types/core/utils/index.d.ts +2 -0
  897. package/lib/types/core/utils/index.d.ts.map +1 -0
  898. package/lib/types/env/index.d.ts +76 -0
  899. package/lib/types/env/index.d.ts.map +1 -0
  900. package/lib/types/features/activity-doc/ActivityDoc.d.ts +14 -0
  901. package/lib/types/features/activity-doc/ActivityDoc.d.ts.map +1 -0
  902. package/lib/types/features/activity-doc/index.d.ts +2 -0
  903. package/lib/types/features/activity-doc/index.d.ts.map +1 -0
  904. package/lib/types/features/agent/PayloadBuilder.d.ts +66 -0
  905. package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -0
  906. package/lib/types/features/agent/chat/AgentChart.d.ts +48 -0
  907. package/lib/types/features/agent/chat/AgentChart.d.ts.map +1 -0
  908. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +38 -0
  909. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts.map +1 -0
  910. package/lib/types/features/agent/chat/JumpingDots.d.ts +7 -0
  911. package/lib/types/features/agent/chat/JumpingDots.d.ts.map +1 -0
  912. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +25 -0
  913. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -0
  914. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +23 -0
  915. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -0
  916. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +20 -0
  917. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -0
  918. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +11 -0
  919. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts.map +1 -0
  920. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +18 -0
  921. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -0
  922. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +11 -0
  923. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -0
  924. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +8 -0
  925. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -0
  926. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +10 -0
  927. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts.map +1 -0
  928. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +9 -0
  929. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -0
  930. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +11 -0
  931. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts.map +1 -0
  932. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +8 -0
  933. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts.map +1 -0
  934. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +10 -0
  935. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +1 -0
  936. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +8 -0
  937. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts.map +1 -0
  938. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +22 -0
  939. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -0
  940. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +25 -0
  941. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -0
  942. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +18 -0
  943. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +1 -0
  944. package/lib/types/features/agent/chat/WaitingMessages.d.ts +2 -0
  945. package/lib/types/features/agent/chat/WaitingMessages.d.ts.map +1 -0
  946. package/lib/types/features/agent/chat/index.d.ts +6 -0
  947. package/lib/types/features/agent/chat/index.d.ts.map +1 -0
  948. package/lib/types/features/agent/createChartTool.d.ts +178 -0
  949. package/lib/types/features/agent/createChartTool.d.ts.map +1 -0
  950. package/lib/types/features/agent/examples.d.ts +59 -0
  951. package/lib/types/features/agent/examples.d.ts.map +1 -0
  952. package/lib/types/features/agent/index.d.ts +5 -0
  953. package/lib/types/features/agent/index.d.ts.map +1 -0
  954. package/lib/types/features/agent/visualization.d.ts +95 -0
  955. package/lib/types/features/agent/visualization.d.ts.map +1 -0
  956. package/lib/types/features/errors/PanelErrorBoundary.d.ts +5 -0
  957. package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +1 -0
  958. package/lib/types/features/errors/RowErrorBoundary.d.ts +8 -0
  959. package/lib/types/features/errors/RowErrorBoundary.d.ts.map +1 -0
  960. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +12 -0
  961. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts.map +1 -0
  962. package/lib/types/features/errors/WidgetErrorBoundary.d.ts +5 -0
  963. package/lib/types/features/errors/WidgetErrorBoundary.d.ts.map +1 -0
  964. package/lib/types/features/errors/index.d.ts +5 -0
  965. package/lib/types/features/errors/index.d.ts.map +1 -0
  966. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +14 -0
  967. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +1 -0
  968. package/lib/types/features/facets/CollectionsFacetsNav.d.ts +14 -0
  969. package/lib/types/features/facets/CollectionsFacetsNav.d.ts.map +1 -0
  970. package/lib/types/features/facets/DocumentsFacetsNav.d.ts +17 -0
  971. package/lib/types/features/facets/DocumentsFacetsNav.d.ts.map +1 -0
  972. package/lib/types/features/facets/EnvironmentFacet.d.ts +10 -0
  973. package/lib/types/features/facets/EnvironmentFacet.d.ts.map +1 -0
  974. package/lib/types/features/facets/InteractionsFacetsNav.d.ts +14 -0
  975. package/lib/types/features/facets/InteractionsFacetsNav.d.ts.map +1 -0
  976. package/lib/types/features/facets/PromptsFacetsNav.d.ts +15 -0
  977. package/lib/types/features/facets/PromptsFacetsNav.d.ts.map +1 -0
  978. package/lib/types/features/facets/RunsFacetsNav.d.ts +20 -0
  979. package/lib/types/features/facets/RunsFacetsNav.d.ts.map +1 -0
  980. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts +14 -0
  981. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts.map +1 -0
  982. package/lib/types/features/facets/index.d.ts +16 -0
  983. package/lib/types/features/facets/index.d.ts.map +1 -0
  984. package/lib/types/features/facets/utils/SearchInterface.d.ts +14 -0
  985. package/lib/types/features/facets/utils/SearchInterface.d.ts.map +1 -0
  986. package/lib/types/features/facets/utils/StringFacet.d.ts +11 -0
  987. package/lib/types/features/facets/utils/StringFacet.d.ts.map +1 -0
  988. package/lib/types/features/facets/utils/StringListFacet.d.ts +11 -0
  989. package/lib/types/features/facets/utils/StringListFacet.d.ts.map +1 -0
  990. package/lib/types/features/facets/utils/TypeFacet.d.ts +16 -0
  991. package/lib/types/features/facets/utils/TypeFacet.d.ts.map +1 -0
  992. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts +12 -0
  993. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts.map +1 -0
  994. package/lib/types/features/facets/utils/VInteractionFacet.d.ts +15 -0
  995. package/lib/types/features/facets/utils/VInteractionFacet.d.ts.map +1 -0
  996. package/lib/types/features/facets/utils/VStringFacet.d.ts +21 -0
  997. package/lib/types/features/facets/utils/VStringFacet.d.ts.map +1 -0
  998. package/lib/types/features/facets/utils/VTypeFacet.d.ts +12 -0
  999. package/lib/types/features/facets/utils/VTypeFacet.d.ts.map +1 -0
  1000. package/lib/types/features/facets/utils/VUserFacet.d.ts +11 -0
  1001. package/lib/types/features/facets/utils/VUserFacet.d.ts.map +1 -0
  1002. package/lib/types/features/facets/utils/utils.d.ts +4 -0
  1003. package/lib/types/features/facets/utils/utils.d.ts.map +1 -0
  1004. package/lib/types/features/index.d.ts +12 -0
  1005. package/lib/types/features/index.d.ts.map +1 -0
  1006. package/lib/types/features/layout/GenericPageNavHeader.d.ts +14 -0
  1007. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -0
  1008. package/lib/types/features/layout/NotFoundView.d.ts +5 -0
  1009. package/lib/types/features/layout/NotFoundView.d.ts.map +1 -0
  1010. package/lib/types/features/layout/index.d.ts +3 -0
  1011. package/lib/types/features/layout/index.d.ts.map +1 -0
  1012. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts +13 -0
  1013. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -0
  1014. package/lib/types/features/magic-pdf/DownloadPopover.d.ts +7 -0
  1015. package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +1 -0
  1016. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts +8 -0
  1017. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts.map +1 -0
  1018. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts +58 -0
  1019. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts.map +1 -0
  1020. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +7 -0
  1021. package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +1 -0
  1022. package/lib/types/features/magic-pdf/index.d.ts +2 -0
  1023. package/lib/types/features/magic-pdf/index.d.ts.map +1 -0
  1024. package/lib/types/features/magic-pdf/types.d.ts +2 -0
  1025. package/lib/types/features/magic-pdf/types.d.ts.map +1 -0
  1026. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts +83 -0
  1027. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts.map +1 -0
  1028. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts +29 -0
  1029. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -0
  1030. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts +19 -0
  1031. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -0
  1032. package/lib/types/features/pdf-viewer/index.d.ts +4 -0
  1033. package/lib/types/features/pdf-viewer/index.d.ts.map +1 -0
  1034. package/lib/types/features/permissions/SecureButton.d.ts +8 -0
  1035. package/lib/types/features/permissions/SecureButton.d.ts.map +1 -0
  1036. package/lib/types/features/permissions/SecureSidebarItem.d.ts +8 -0
  1037. package/lib/types/features/permissions/SecureSidebarItem.d.ts.map +1 -0
  1038. package/lib/types/features/permissions/UserPermissionsProvider.d.ts +21 -0
  1039. package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +1 -0
  1040. package/lib/types/features/permissions/helpers.d.ts +5 -0
  1041. package/lib/types/features/permissions/helpers.d.ts.map +1 -0
  1042. package/lib/types/features/permissions/index.d.ts +5 -0
  1043. package/lib/types/features/permissions/index.d.ts.map +1 -0
  1044. package/lib/types/features/store/collections/BrowseCollectionView.d.ts +7 -0
  1045. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -0
  1046. package/lib/types/features/store/collections/CollectionsTable.d.ts +6 -0
  1047. package/lib/types/features/store/collections/CollectionsTable.d.ts.map +1 -0
  1048. package/lib/types/features/store/collections/CreateCollection.d.ts +13 -0
  1049. package/lib/types/features/store/collections/CreateCollection.d.ts.map +1 -0
  1050. package/lib/types/features/store/collections/EditCollectionView.d.ts +8 -0
  1051. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -0
  1052. package/lib/types/features/store/collections/SelectCollection.d.ts +20 -0
  1053. package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -0
  1054. package/lib/types/features/store/collections/SharedPropsEditor.d.ts +7 -0
  1055. package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +1 -0
  1056. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts +7 -0
  1057. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -0
  1058. package/lib/types/features/store/collections/index.d.ts +8 -0
  1059. package/lib/types/features/store/collections/index.d.ts.map +1 -0
  1060. package/lib/types/features/store/index.d.ts +4 -0
  1061. package/lib/types/features/store/index.d.ts.map +1 -0
  1062. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +8 -0
  1063. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +1 -0
  1064. package/lib/types/features/store/objects/DocumentSearchResults.d.ts +20 -0
  1065. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -0
  1066. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +33 -0
  1067. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts.map +1 -0
  1068. package/lib/types/features/store/objects/DocumentTable.d.ts +25 -0
  1069. package/lib/types/features/store/objects/DocumentTable.d.ts.map +1 -0
  1070. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +12 -0
  1071. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -0
  1072. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +9 -0
  1073. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +1 -0
  1074. package/lib/types/features/store/objects/components/ContentOverview.d.ts +9 -0
  1075. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -0
  1076. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +18 -0
  1077. package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +1 -0
  1078. package/lib/types/features/store/objects/components/DocumentInput.d.ts +8 -0
  1079. package/lib/types/features/store/objects/components/DocumentInput.d.ts.map +1 -0
  1080. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +9 -0
  1081. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -0
  1082. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +9 -0
  1083. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +1 -0
  1084. package/lib/types/features/store/objects/components/SelectDocument.d.ts +9 -0
  1085. package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +1 -0
  1086. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +9 -0
  1087. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts.map +1 -0
  1088. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +12 -0
  1089. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +1 -0
  1090. package/lib/types/features/store/objects/components/index.d.ts +10 -0
  1091. package/lib/types/features/store/objects/components/index.d.ts.map +1 -0
  1092. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts +30 -0
  1093. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -0
  1094. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +4 -0
  1095. package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +1 -0
  1096. package/lib/types/features/store/objects/index.d.ts +11 -0
  1097. package/lib/types/features/store/objects/index.d.ts.map +1 -0
  1098. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +18 -0
  1099. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +1 -0
  1100. package/lib/types/features/store/objects/layout/documentLayout.d.ts +20 -0
  1101. package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +1 -0
  1102. package/lib/types/features/store/objects/layout/index.d.ts +3 -0
  1103. package/lib/types/features/store/objects/layout/index.d.ts.map +1 -0
  1104. package/lib/types/features/store/objects/layout/renderers.d.ts +3 -0
  1105. package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -0
  1106. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +52 -0
  1107. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -0
  1108. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +14 -0
  1109. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +1 -0
  1110. package/lib/types/features/store/objects/search/index.d.ts +3 -0
  1111. package/lib/types/features/store/objects/search/index.d.ts.map +1 -0
  1112. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +26 -0
  1113. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -0
  1114. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +28 -0
  1115. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -0
  1116. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +6 -0
  1117. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -0
  1118. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +4 -0
  1119. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +1 -0
  1120. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +4 -0
  1121. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -0
  1122. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +16 -0
  1123. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +1 -0
  1124. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +5 -0
  1125. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +1 -0
  1126. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +4 -0
  1127. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -0
  1128. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +4 -0
  1129. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +1 -0
  1130. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +4 -0
  1131. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +1 -0
  1132. package/lib/types/features/store/objects/selection/actions/index.d.ts +8 -0
  1133. package/lib/types/features/store/objects/selection/actions/index.d.ts.map +1 -0
  1134. package/lib/types/features/store/objects/selection/index.d.ts +5 -0
  1135. package/lib/types/features/store/objects/selection/index.d.ts.map +1 -0
  1136. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +39 -0
  1137. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -0
  1138. package/lib/types/features/store/objects/upload/index.d.ts +4 -0
  1139. package/lib/types/features/store/objects/upload/index.d.ts.map +1 -0
  1140. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +30 -0
  1141. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -0
  1142. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +50 -0
  1143. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +1 -0
  1144. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +6 -0
  1145. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +1 -0
  1146. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +8 -0
  1147. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +1 -0
  1148. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +15 -0
  1149. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +1 -0
  1150. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +8 -0
  1151. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -0
  1152. package/lib/types/features/store/types/SelectContentType.d.ts +11 -0
  1153. package/lib/types/features/store/types/SelectContentType.d.ts.map +1 -0
  1154. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +33 -0
  1155. package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -0
  1156. package/lib/types/features/store/types/TableLayoutEditor.d.ts +9 -0
  1157. package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -0
  1158. package/lib/types/features/store/types/index.d.ts +9 -0
  1159. package/lib/types/features/store/types/index.d.ts.map +1 -0
  1160. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +36 -0
  1161. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts.map +1 -0
  1162. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +11 -0
  1163. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts.map +1 -0
  1164. package/lib/types/features/store/types/search/index.d.ts +3 -0
  1165. package/lib/types/features/store/types/search/index.d.ts.map +1 -0
  1166. package/lib/types/features/user/UserAvatar.d.ts +9 -0
  1167. package/lib/types/features/user/UserAvatar.d.ts.map +1 -0
  1168. package/lib/types/features/user/UserInfo.d.ts +48 -0
  1169. package/lib/types/features/user/UserInfo.d.ts.map +1 -0
  1170. package/lib/types/features/user/index.d.ts +3 -0
  1171. package/lib/types/features/user/index.d.ts.map +1 -0
  1172. package/lib/types/features/utils/index.d.ts +6 -0
  1173. package/lib/types/features/utils/index.d.ts.map +1 -0
  1174. package/lib/types/features/utils/mimeType.d.ts +6 -0
  1175. package/lib/types/features/utils/mimeType.d.ts.map +1 -0
  1176. package/lib/types/features/utils/print.d.ts +10 -0
  1177. package/lib/types/features/utils/print.d.ts.map +1 -0
  1178. package/lib/types/features/utils/rendition.d.ts +4 -0
  1179. package/lib/types/features/utils/rendition.d.ts.map +1 -0
  1180. package/lib/types/features/utils/text.d.ts +3 -0
  1181. package/lib/types/features/utils/text.d.ts.map +1 -0
  1182. package/lib/types/features/utils/workflowStatus.d.ts +10 -0
  1183. package/lib/types/features/utils/workflowStatus.d.ts.map +1 -0
  1184. package/lib/types/layout/AppLayout.d.ts +13 -0
  1185. package/lib/types/layout/AppLayout.d.ts.map +1 -0
  1186. package/lib/types/layout/FullHeightLayout.d.ts +27 -0
  1187. package/lib/types/layout/FullHeightLayout.d.ts.map +1 -0
  1188. package/lib/types/layout/Navbar.d.ts +33 -0
  1189. package/lib/types/layout/Navbar.d.ts.map +1 -0
  1190. package/lib/types/layout/Sidebar.d.ts +31 -0
  1191. package/lib/types/layout/Sidebar.d.ts.map +1 -0
  1192. package/lib/types/layout/SidebarContext.d.ts +9 -0
  1193. package/lib/types/layout/SidebarContext.d.ts.map +1 -0
  1194. package/lib/types/layout/TitleBar.d.ts +6 -0
  1195. package/lib/types/layout/TitleBar.d.ts.map +1 -0
  1196. package/lib/types/layout/index.d.ts +7 -0
  1197. package/lib/types/layout/index.d.ts.map +1 -0
  1198. package/lib/types/router/FixLinks.d.ts +7 -0
  1199. package/lib/types/router/FixLinks.d.ts.map +1 -0
  1200. package/lib/types/router/HistoryNavigator.d.ts +59 -0
  1201. package/lib/types/router/HistoryNavigator.d.ts.map +1 -0
  1202. package/lib/types/router/Nav.d.ts +30 -0
  1203. package/lib/types/router/Nav.d.ts.map +1 -0
  1204. package/lib/types/router/NestedNavigationContext.d.ts +9 -0
  1205. package/lib/types/router/NestedNavigationContext.d.ts.map +1 -0
  1206. package/lib/types/router/NestedRouterProvider.d.ts +14 -0
  1207. package/lib/types/router/NestedRouterProvider.d.ts.map +1 -0
  1208. package/lib/types/router/PathMatcher.d.ts +36 -0
  1209. package/lib/types/router/PathMatcher.d.ts.map +1 -0
  1210. package/lib/types/router/PathWithParams.d.ts +9 -0
  1211. package/lib/types/router/PathWithParams.d.ts.map +1 -0
  1212. package/lib/types/router/Route404.d.ts +4 -0
  1213. package/lib/types/router/Route404.d.ts.map +1 -0
  1214. package/lib/types/router/RouteComponent.d.ts +6 -0
  1215. package/lib/types/router/RouteComponent.d.ts.map +1 -0
  1216. package/lib/types/router/Router.d.ts +74 -0
  1217. package/lib/types/router/Router.d.ts.map +1 -0
  1218. package/lib/types/router/RouterProvider.d.ts +15 -0
  1219. package/lib/types/router/RouterProvider.d.ts.map +1 -0
  1220. package/lib/types/router/index.d.ts +11 -0
  1221. package/lib/types/router/index.d.ts.map +1 -0
  1222. package/lib/types/router/path.d.ts +8 -0
  1223. package/lib/types/router/path.d.ts.map +1 -0
  1224. package/lib/types/session/TypeRegistry.d.ts +10 -0
  1225. package/lib/types/session/TypeRegistry.d.ts.map +1 -0
  1226. package/lib/types/session/UserSession.d.ts +40 -0
  1227. package/lib/types/session/UserSession.d.ts.map +1 -0
  1228. package/lib/types/session/UserSessionProvider.d.ts +7 -0
  1229. package/lib/types/session/UserSessionProvider.d.ts.map +1 -0
  1230. package/lib/types/session/auth/composable.d.ts +26 -0
  1231. package/lib/types/session/auth/composable.d.ts.map +1 -0
  1232. package/lib/types/session/auth/firebase.d.ts +10 -0
  1233. package/lib/types/session/auth/firebase.d.ts.map +1 -0
  1234. package/lib/types/session/auth/useAuthState.d.ts +10 -0
  1235. package/lib/types/session/auth/useAuthState.d.ts.map +1 -0
  1236. package/lib/types/session/auth/useCurrentTenant.d.ts +15 -0
  1237. package/lib/types/session/auth/useCurrentTenant.d.ts.map +1 -0
  1238. package/lib/types/session/constants.d.ts +3 -0
  1239. package/lib/types/session/constants.d.ts.map +1 -0
  1240. package/lib/types/session/index.d.ts +9 -0
  1241. package/lib/types/session/index.d.ts.map +1 -0
  1242. package/lib/types/session/useUXTracking.d.ts +6 -0
  1243. package/lib/types/session/useUXTracking.d.ts.map +1 -0
  1244. package/lib/types/shell/SplashScreen.d.ts +7 -0
  1245. package/lib/types/shell/SplashScreen.d.ts.map +1 -0
  1246. package/lib/types/shell/VertesiaShell.d.ts +10 -0
  1247. package/lib/types/shell/VertesiaShell.d.ts.map +1 -0
  1248. package/lib/types/shell/apps/AppInstallationProvider.d.ts +12 -0
  1249. package/lib/types/shell/apps/AppInstallationProvider.d.ts.map +1 -0
  1250. package/lib/types/shell/apps/AppProjectSelector.d.ts +12 -0
  1251. package/lib/types/shell/apps/AppProjectSelector.d.ts.map +1 -0
  1252. package/lib/types/shell/apps/StandaloneApp.d.ts +23 -0
  1253. package/lib/types/shell/apps/StandaloneApp.d.ts.map +1 -0
  1254. package/lib/types/shell/apps/index.d.ts +4 -0
  1255. package/lib/types/shell/apps/index.d.ts.map +1 -0
  1256. package/lib/types/shell/index.d.ts +8 -0
  1257. package/lib/types/shell/index.d.ts.map +1 -0
  1258. package/lib/types/shell/login/EnterpriseSigninButton.d.ts +6 -0
  1259. package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +1 -0
  1260. package/lib/types/shell/login/GitHubSignInButton.d.ts +6 -0
  1261. package/lib/types/shell/login/GitHubSignInButton.d.ts.map +1 -0
  1262. package/lib/types/shell/login/GoogleSignInButton.d.ts +6 -0
  1263. package/lib/types/shell/login/GoogleSignInButton.d.ts.map +1 -0
  1264. package/lib/types/shell/login/InviteAcceptModal.d.ts +2 -0
  1265. package/lib/types/shell/login/InviteAcceptModal.d.ts.map +1 -0
  1266. package/lib/types/shell/login/MicrosoftSigninButton.d.ts +6 -0
  1267. package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +1 -0
  1268. package/lib/types/shell/login/PreviewIcon.d.ts +6 -0
  1269. package/lib/types/shell/login/PreviewIcon.d.ts.map +1 -0
  1270. package/lib/types/shell/login/SignInModal.d.ts +7 -0
  1271. package/lib/types/shell/login/SignInModal.d.ts.map +1 -0
  1272. package/lib/types/shell/login/SigninScreen.d.ts +9 -0
  1273. package/lib/types/shell/login/SigninScreen.d.ts.map +1 -0
  1274. package/lib/types/shell/login/SignupForm.d.ts +8 -0
  1275. package/lib/types/shell/login/SignupForm.d.ts.map +1 -0
  1276. package/lib/types/shell/login/TerminalLogin.d.ts +2 -0
  1277. package/lib/types/shell/login/TerminalLogin.d.ts.map +1 -0
  1278. package/lib/types/shell/login/UserInfo.d.ts +6 -0
  1279. package/lib/types/shell/login/UserInfo.d.ts.map +1 -0
  1280. package/lib/types/shell/login/UserSessionMenu.d.ts +9 -0
  1281. package/lib/types/shell/login/UserSessionMenu.d.ts.map +1 -0
  1282. package/lib/types/shell/utils.d.ts +2 -0
  1283. package/lib/types/shell/utils.d.ts.map +1 -0
  1284. package/lib/types/widgets/Progress.d.ts +6 -0
  1285. package/lib/types/widgets/Progress.d.ts.map +1 -0
  1286. package/lib/types/widgets/SvgIcon.d.ts +7 -0
  1287. package/lib/types/widgets/SvgIcon.d.ts.map +1 -0
  1288. package/lib/types/widgets/form/Form.d.ts +22 -0
  1289. package/lib/types/widgets/form/Form.d.ts.map +1 -0
  1290. package/lib/types/widgets/form/FormContext.d.ts +20 -0
  1291. package/lib/types/widgets/form/FormContext.d.ts.map +1 -0
  1292. package/lib/types/widgets/form/ManagedObject.d.ts +82 -0
  1293. package/lib/types/widgets/form/ManagedObject.d.ts.map +1 -0
  1294. package/lib/types/widgets/form/fields.d.ts +16 -0
  1295. package/lib/types/widgets/form/fields.d.ts.map +1 -0
  1296. package/lib/types/widgets/form/index.d.ts +7 -0
  1297. package/lib/types/widgets/form/index.d.ts.map +1 -0
  1298. package/lib/types/widgets/form/inputs.d.ts +8 -0
  1299. package/lib/types/widgets/form/inputs.d.ts.map +1 -0
  1300. package/lib/types/widgets/form/schema.d.ts +47 -0
  1301. package/lib/types/widgets/form/schema.d.ts.map +1 -0
  1302. package/lib/types/widgets/index.d.ts +12 -0
  1303. package/lib/types/widgets/index.d.ts.map +1 -0
  1304. package/lib/types/widgets/json-view/JSONCode.d.ts +5 -0
  1305. package/lib/types/widgets/json-view/JSONCode.d.ts.map +1 -0
  1306. package/lib/types/widgets/json-view/JSONDisplay.d.ts +8 -0
  1307. package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +1 -0
  1308. package/lib/types/widgets/json-view/JSONView.d.ts +7 -0
  1309. package/lib/types/widgets/json-view/JSONView.d.ts.map +1 -0
  1310. package/lib/types/widgets/json-view/index.d.ts +5 -0
  1311. package/lib/types/widgets/json-view/index.d.ts.map +1 -0
  1312. package/lib/types/widgets/json-view/types.d.ts +8 -0
  1313. package/lib/types/widgets/json-view/types.d.ts.map +1 -0
  1314. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts +13 -0
  1315. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -0
  1316. package/lib/types/widgets/markdown/index.d.ts +2 -0
  1317. package/lib/types/widgets/markdown/index.d.ts.map +1 -0
  1318. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts +39 -0
  1319. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts.map +1 -0
  1320. package/lib/types/widgets/monacoEditor/index.d.ts +3 -0
  1321. package/lib/types/widgets/monacoEditor/index.d.ts.map +1 -0
  1322. package/lib/types/widgets/popover/Popover.d.ts +38 -0
  1323. package/lib/types/widgets/popover/Popover.d.ts.map +1 -0
  1324. package/lib/types/widgets/popover/context.d.ts +8 -0
  1325. package/lib/types/widgets/popover/context.d.ts.map +1 -0
  1326. package/lib/types/widgets/popover/index.d.ts +3 -0
  1327. package/lib/types/widgets/popover/index.d.ts.map +1 -0
  1328. package/lib/types/widgets/popover/slots.d.ts +5 -0
  1329. package/lib/types/widgets/popover/slots.d.ts.map +1 -0
  1330. package/lib/types/widgets/properties/PropertiesView.d.ts +11 -0
  1331. package/lib/types/widgets/properties/PropertiesView.d.ts.map +1 -0
  1332. package/lib/types/widgets/properties/index.d.ts +2 -0
  1333. package/lib/types/widgets/properties/index.d.ts.map +1 -0
  1334. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +75 -0
  1335. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -0
  1336. package/lib/types/widgets/schema-editor/editor/Editable.d.ts +40 -0
  1337. package/lib/types/widgets/schema-editor/editor/Editable.d.ts.map +1 -0
  1338. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +8 -0
  1339. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +1 -0
  1340. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts +5 -0
  1341. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +1 -0
  1342. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts +4 -0
  1343. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts.map +1 -0
  1344. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts +3 -0
  1345. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts.map +1 -0
  1346. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts +9 -0
  1347. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -0
  1348. package/lib/types/widgets/schema-editor/index.d.ts +7 -0
  1349. package/lib/types/widgets/schema-editor/index.d.ts.map +1 -0
  1350. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts +16 -0
  1351. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts.map +1 -0
  1352. package/lib/types/widgets/schema-editor/type-signature.d.ts +19 -0
  1353. package/lib/types/widgets/schema-editor/type-signature.d.ts.map +1 -0
  1354. package/lib/types/widgets/upload/DropZone.d.ts +41 -0
  1355. package/lib/types/widgets/upload/DropZone.d.ts.map +1 -0
  1356. package/lib/types/widgets/upload/UploadResultCategory.d.ts +26 -0
  1357. package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +1 -0
  1358. package/lib/types/widgets/upload/UploadSummary.d.ts +38 -0
  1359. package/lib/types/widgets/upload/UploadSummary.d.ts.map +1 -0
  1360. package/lib/types/widgets/upload/index.d.ts +4 -0
  1361. package/lib/types/widgets/upload/index.d.ts.map +1 -0
  1362. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts +6 -0
  1363. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts.map +1 -0
  1364. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts +8 -0
  1365. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts.map +1 -0
  1366. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts +5 -0
  1367. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts.map +1 -0
  1368. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts +9 -0
  1369. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts.map +1 -0
  1370. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts +8 -0
  1371. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts.map +1 -0
  1372. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts +8 -0
  1373. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts.map +1 -0
  1374. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts +2 -0
  1375. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts.map +1 -0
  1376. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts +13 -0
  1377. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts.map +1 -0
  1378. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts +8 -0
  1379. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts.map +1 -0
  1380. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts +3 -0
  1381. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts.map +1 -0
  1382. package/lib/types/widgets/xml-viewer/components/types.d.ts +104 -0
  1383. package/lib/types/widgets/xml-viewer/components/types.d.ts.map +1 -0
  1384. package/lib/types/widgets/xml-viewer/constants/index.d.ts +27 -0
  1385. package/lib/types/widgets/xml-viewer/constants/index.d.ts.map +1 -0
  1386. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts +4 -0
  1387. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts.map +1 -0
  1388. package/lib/types/widgets/xml-viewer/helpers/index.d.ts +13 -0
  1389. package/lib/types/widgets/xml-viewer/helpers/index.d.ts.map +1 -0
  1390. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts +15 -0
  1391. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts.map +1 -0
  1392. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts +10 -0
  1393. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +1 -0
  1394. package/lib/types/widgets/xml-viewer/index.d.ts +3 -0
  1395. package/lib/types/widgets/xml-viewer/index.d.ts.map +1 -0
  1396. package/lib/types/widgets/xml-viewer/types/index.d.ts +16 -0
  1397. package/lib/types/widgets/xml-viewer/types/index.d.ts.map +1 -0
  1398. package/lib/vertesia-ui-core.js +2 -0
  1399. package/lib/vertesia-ui-core.js.map +1 -0
  1400. package/lib/vertesia-ui-env.js +2 -0
  1401. package/lib/vertesia-ui-env.js.map +1 -0
  1402. package/lib/vertesia-ui-features.js +2 -0
  1403. package/lib/vertesia-ui-features.js.map +1 -0
  1404. package/lib/vertesia-ui-layout.js +2 -0
  1405. package/lib/vertesia-ui-layout.js.map +1 -0
  1406. package/lib/vertesia-ui-router.js +2 -0
  1407. package/lib/vertesia-ui-router.js.map +1 -0
  1408. package/lib/vertesia-ui-session.js +2 -0
  1409. package/lib/vertesia-ui-session.js.map +1 -0
  1410. package/lib/vertesia-ui-shell.js +2 -0
  1411. package/lib/vertesia-ui-shell.js.map +1 -0
  1412. package/lib/vertesia-ui-widgets.js +2 -0
  1413. package/lib/vertesia-ui-widgets.js.map +1 -0
  1414. package/package.json +4 -4
  1415. package/src/features/store/collections/BrowseCollectionView.tsx +0 -3
  1416. package/src/features/store/objects/DocumentSearchResults.tsx +0 -4
  1417. package/src/features/store/objects/ExportPropertiesModal.tsx +9 -7
  1418. package/src/features/store/objects/components/VectorSearchWidget.tsx +2 -2
  1419. package/src/features/store/objects/search/DocumentSearchContext.ts +1 -2
  1420. package/src/features/store/objects/selection/SelectionActions.tsx +0 -4
  1421. package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +2 -6
  1422. package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +1 -3
  1423. package/src/features/store/types/SelectContentTypeModal.tsx +17 -30
@@ -0,0 +1 @@
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, Modal, ModalBody, ModalTitle } 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(Modal, { isOpen: showModal, onClose: closeModal, children: [_jsx(ModalTitle, { children: \"Review Invites\" }), _jsxs(ModalBody, { 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, SelectBox, 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(SelectBox, { 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(SelectBox, { 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';\nfunction getClientInfo(location) {\n const params = new URLSearchParams(location.search);\n let redirect = params.get('redirect_uri');\n const code = params.get('code');\n if (!redirect || !code) {\n return null;\n }\n redirect = decodeURI(redirect);\n if (!redirect.startsWith('http://127.0.0.1:') && !redirect.startsWith('http://localhost:')) {\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-gray-800\", children: [\"Authorizing client on \", envName, \" environment.\"] }), _jsxs(\"div\", { className: 'mb-2 text-md text-gray-800', 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\", { children: clientInfo.code }), \". You can check if the code is correct in the terminal.\"] })] }), _jsxs(\"div\", { className: 'mb-2 text-sm text-gray-600', 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-gray-600\", 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-gray-600\", 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-gray-600\", children: \"Project\" }), _jsx(SelectProject, { value: currentData.project, onChange: onChangeProject, projects: projects })] }), _jsx(\"div\", { className: \"pt-2\", 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, { align: \"right\", 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 { Tabs, TabsBar, TabsPanel, 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(Tabs, { defaultValue: \"user\", tabs: tabs, fullWidth: true, updateHash: false, children: [_jsx(TabsBar, {}), _jsx(TabsPanel, {})] }) }));\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 { SelectBox, 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(SelectBox, { 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 } from \"@vertesia/ui/core\";\nimport { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY, useUserSession } from \"@vertesia/ui/session\";\nimport { LockIcon } from \"lucide-react\";\nimport { useEffect, useState } from \"react\";\nimport { AppInstallationProvider } from \"./AppInstallationProvider\";\nimport { AppProjectSelector } from \"./AppProjectSelector\";\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 } = useUserSession();\n const onChange = (project) => {\n localStorage.setItem(LastSelectedAccountId_KEY, project.account);\n localStorage.setItem(LastSelectedProjectId_KEY + '-' + project.account, project.id);\n window.location.reload();\n };\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\"] }), \".\"] }), _jsx(\"div\", { className: \"mt-4\", children: _jsx(AppProjectSelector, { app: { name }, onChange: onChange }) })] }));\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","Modal","isOpen","onClose","ModalTitle","ModalBody","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","SelectBox","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","TerminalLogin","setPayload","clientInfo","params","URLSearchParams","search","redirect","get","code","decodeURI","profile","getClientInfo","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","a","by","SignInModal","ModalFooter","align","InfoItems","isCopied","setIsCopied","VTooltip","placement","Check","CopyIcon","setTimeout","copyToClipboard","InfoList","authToken","server","URL","baseUrl","hostname","store","tenantId","getTenantIdFromProject","tabs","content","sub","account_roles","join","project_roles","version","sdkVersion","Tabs","defaultValue","fullWidth","updateHash","TabsBar","TabsPanel","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","LockIcon"],"mappings":"u1CAIO,SAASA,KACZ,MAAMC,EAAUC,KACVC,OAAEA,EAAMC,QAAEA,GAAYH,GACrBI,EAAWC,GAAgBC,GAAS,IACpCC,EAASC,GAAcF,EAAS,IACvCG,EAAU,KACNP,EAAO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U,EAAM+L,EAAQ,CAAE9L,UAAW,6DAA8DC,SAAU,CAACC,EAAKuU,EAAU,CAAEzU,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"}
@@ -0,0 +1,2 @@
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import{Editor as n}from"@monaco-editor/react";import{useTheme as i,Styles as a,FormItem as s,Button as o,DotBadge as l,Table as c,VTooltip as d,SelectBox as h,Modal as u,ModalTitle as m,ModalBody as p,ModalFooter as f,useFlag as g,useClickOutside as y,useToast as v}from"@vertesia/ui/core";import b from"debounce";import x from"clsx";import w,{useState as k,useRef as N,useEffect as C,useMemo as S,useCallback as A,createContext as j,useContext as O,memo as P,Component as E,Children as I,isValidElement as T}from"react";import{Plus as $,Trash2 as F,Check as D,Copy as q,Download as R,Info as L,AlignLeft as z,SquarePen as K,ChevronDown as V,ChevronRight as _,UploadIcon as M,CheckCircleIcon as U,AlertCircleIcon as W,XCircleIcon as B}from"lucide-react";import H from"ajv";import J,{defaultUrlTransform as G}from"react-markdown";import Z from"remark-gfm";import{visit as X,SKIP as Y}from"unist-util-visit";import{toPng as Q}from"html-to-image";import{XAxis as ee,YAxis as te,CartesianGrid as re,Tooltip as ne,Legend as ie,ReferenceLine as ae,ResponsiveContainer as se,ComposedChart as oe,AreaChart as le,LineChart as ce,BarChart as de,Line as he,Area as ue,Bar as me,PieChart as pe,Pie as fe,Cell as ge,ScatterChart as ye,Scatter as ve,RadarChart as be,PolarGrid as xe,PolarAngleAxis as we,PolarRadiusAxis as ke,Radar as Ne,RadialBarChart as Ce,RadialBar as Se,FunnelChart as Ae,Funnel as je,LabelList as Oe,Treemap as Pe}from"recharts";import{useUserSession as Ee}from"@vertesia/ui/session";import{offset as Ie,shift as Te,flip as $e}from"@floating-ui/dom";import{useFloating as Fe,autoUpdate as De,useDismiss as qe,useClick as Re,useHover as Le,useInteractions as ze,useTransitionStyles as Ke,FloatingPortal as Ve,FloatingFocusManager as _e,safePolygon as Me}from"@floating-ui/react";import{XMLParser as Ue,XMLValidator as We}from"fast-xml-parser";import{isNil as Be,omit as He}from"lodash-es";class Je{VgetValue;VsetValue;constructor(e,t){this.VgetValue=e,this.VsetValue=t}getValue(){return this.VgetValue()}setValue(e){this.VsetValue(e||"")}}function Ge({onChange:t,value:r="",className:a,editorRef:s,language:o="javascript",debounceTimeout:l=0,options:c={},beforeMount:d,onMount:h,defaultValue:u}){const[m,p]=k(r),f=N(null),{theme:g}=i(),y=N(()=>m),v=N(e=>{p(e),f.current&&f.current.setValue(e)});C(()=>{y.current=()=>m},[m]),C(()=>(s&&(s.current=new Je(()=>y.current(),e=>v.current(e))),()=>{s&&(s.current=void 0)}),[s]);const w=S(()=>{if(t)return l>0?b(e=>t(e),l):t},[t,l]),j=A(e=>{const t=e||"";if(p(t),w){const e={docChanged:!0,state:{doc:{toString:()=>t,length:t.length}}};w(e)}},[w]),O=A((e,t)=>{f.current=e,v.current=t=>{p(t),e.setValue(t)},t.editor.defineTheme("errorLineTheme",{base:"dark"===g?"vs-dark":"vs",inherit:!0,rules:[],colors:{"editorError.background":"#ffebee","editorError.border":"#f44336"}}),t.editor.setTheme("errorLineTheme"),h?.(e,t)},[h,g]);C(()=>{r!==m&&(p(r),f.current&&f.current.setValue(r))},[r]);const P={fontSize:14,fontFamily:"monospace",minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",lineNumbers:"on",folding:!1,lineDecorationsWidth:10,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};return e("div",{className:x(a,"w-full h-full!"),children:e(n,{className:"h-full w-full",height:"100%",theme:"dark"===g?"vs-dark":"light",language:o,value:m,onChange:j,onMount:O,beforeMount:d,options:P,defaultValue:u||""})})}const Ze=j(void 0),Xe=Ze.Provider;function Ye(){const e=O(Ze);if(!e)throw new Error("useFieldSet must be used within a Form or FieldSet element");return e}class Qe{object;components;disabled;constructor(e,t={},r=!1){this.object=e,this.components=t,this.disabled=r}}const et=j(void 0);function tt(){const e=O(et);if(!e)throw new Error("useForm must be used within a Form element");return e}const rt=et.Provider,nt=w.forwardRef(({object:t,type:r="text",onChange:n,...i},s)=>{const[o,l]=k(null!=t.value?String(t.value):""),[c,d]=k(t.schema.isBoolean&&!0===t.value);i.className?i.className=x(a.INPUT,i.className):i.className=a.INPUT;const h=e=>{i.disabled||(l(e.target.value),t.schema.isBoolean?(t.value=e.target.checked,d(t.value)):t.value=e.target.value,n&&n(e))};return"textarea"===r?e("textarea",{ref:s,...i,value:o,onChange:h}):e("input","checkbox"===r?{ref:s,...i,type:"checkbox",checked:c,onChange:h,className:"form-check-input"}:{ref:s,...i,type:r,value:o,onChange:h})});function it({object:t,components:r,onSubmit:n,children:i,onChange:a,disabled:s}){return t.observer=a,e(rt,{value:new Qe(t,r||{},s??!1),children:e("form",{className:"w-full",onSubmit:e=>{e.stopPropagation(),e.preventDefault(),n&&n(t.value)},children:i})})}function at(){const t=tt();return e("div",{className:"flex flex-col gap-4 w-full",children:t.object.properties.map(ot)})}function st({children:r,...n}){return t(it,{...n,children:[e(at,{}),r]})}function ot(t){return t.isList?e(dt,{object:t},t.name):t.isObject?e(ct,{object:t},t.name):e(lt,{object:t},t.name)}function lt({object:t,editor:r,inline:n=!1}){r||(r=t.schema.editor);const{components:i,disabled:a}=tt(),o=r&&i[r]||nt,l=t.getInputType();"checkbox"===l&&(n=!0);const c=e=>{a||(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:a}):e(s,{label:t.title,required:t.schema.isRequired,description:t.schema.description,className:x("flex",n?"flex-row items-center":"flex-col"),children:e(o,{object:t,type:l,onChange:c,disabled:a})})}function ct({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(ot)]})}function dt({object:r}){const[n,i]=k(r.value||[]),{disabled:a}=tt();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(ht,{object:t,list:r,onDelete:()=>(e=>{a||(r.remove(e),i([...r.value]))})(s),disabled:a},`${s}-${n[s]??""}`)),e("div",{children:t(o,{variant:"secondary",onClick:()=>{a||(r.add(),i([...r.value]))},disabled:a,children:[e($,{className:"size-6"})," Add"]})})]})}function ht({list:r,object:n,onDelete:i,disabled:a}){return t("div",{className:"flex gap-2 w-full",children:[e("div",{className:"flex-1",children:(s=n,l=r.schema.arraySchema.editor,s.isList?e(dt,{object:s}):s.isObject?e(ct,{object:s}):e(lt,{object:s,editor:l}))}),e(o,{variant:"secondary",onClick:i,disabled:a,children:e(F,{className:"size-4"})})]});var s,l}class ut{schema;properties={};_validator;constructor(e){this.schema=e||{type:"object",properties:{}},this.load()}get validator(){if(!this._validator){const e=new H({allErrors:!0,strict:!1});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 pt(this,e,t):new mt(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 n="string"==typeof t?"object"===(i=t)?{type:"object",properties:{}}:"array"===i?{type:"array",items:{}}:{type:i}:t;var i;const a=this.loadProperty(e,n);return this.schema.properties[a.name]=a.schema,r&&(a.isRequired=!0),a}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 mt extends ut{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 pt extends mt{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 ft(e){return(e=e.replace(/_/g," ").replace(/([a-z0-9])&([A-Z])/g,"$1 $2"))[0].toUpperCase()+e.slice(1)}function gt(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 yt{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||ft(this.name)}onChange(e){this.observer&&!1===this.observer(this)||this.parent&&this.parent.onChange(e)}}class vt extends yt{constructor(e,t,r){super(e,t,r)}get isObject(){return!0}getProperty(e){const t=this.schema.properties[e];return t.isMulti?new kt(this,t,this.getOrInitArrayProperty(e)):t.isObject?new xt(this,t,t.name,this.getOrInitObjectProperty(e)):new wt(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 kt(this,t,this.getOrInitArrayProperty(t.name))):t.isObject?e.push(new xt(this,t,t.name,this.getOrInitObjectProperty(t.name))):e.push(new wt(this,t));return e}[Symbol.iterator](){return this.properties[Symbol.iterator]()}}class bt extends vt{value;constructor(e,t={}){super(null,e instanceof ut?e:new ut(e),"#root"),this.value=t}}class xt extends vt{value;constructor(e,t,r,n){super(e,t,r),this.value=n}}class wt extends yt{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 gt(this.name,this.schema)}}class kt extends yt{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 Nt(this,e):new Ct(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 xt(this,this.schema,String(e),t):new Ct(this,e)}trim(){for(;void 0===this.items[this.items.length-1];)this.items.pop()}}class Nt extends vt{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 Ct extends yt{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 gt(this.name,this.schema)}}function St({label:t,required:r,children:n}){return e(s,{label:t,required:r,children:n})}function At({children:t}){return e("p",{className:"mt-2 text-sm text-gray-500",children:t})}function jt({children:t}){return e("p",{className:"mt-2 text-sm text-red-600",children:t})}function Ot({data:t,className:r}){const{theme:n}=i(),a=S(()=>{try{return JSON.stringify(t,null,2)}catch(e){return console.error("Failed to stringify JSON:",e),"{}"}},[t]);return e("div",{className:`h-full ${r||""}`,children:e(Ge,{value:a,language:"json",theme:"dark"===n?"vs-dark":"vs",options:{readOnly:!0,domReadOnly:!0}})})}function Pt({value:t}){return e("div",{className:"flex flex-col gap-4",children:Object.entries(t).map(([t,r])=>e(Tt,{name:t,value:r},t))})}function Et({name:t}){return e("div",{className:"text-md font-semibold",children:ft(t)})}function It({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 Tt({name:r,value:n}){const i=qt(n);switch(i.type){case Dt.Inline:return t("div",{className:"w-full flex gap-2",children:[e(Et,{name:r+":"}),e("p",{children:i.value})]});case Dt.Paragraph:return t("div",{children:[e(Et,{name:r}),e("p",{children:i.value})]});case Dt.Prose:return t("div",{className:"prose dark:prose-invert",children:[e(Et,{name:r}),e("div",{className:"vprose dark:prose-invert",children:i.value})]});case Dt.Array:return e($t,{name:r,value:n});case Dt.Object:return t("div",{children:[e(Et,{name:r}),e(It,{className:"mt-2",children:Object.entries(n).map(([t,r])=>e(Tt,{name:t,value:r},t))})]})}}function $t({name:r,value:n}){const i=n.join(" ").length,a=i/n.length,s="string"==typeof n[0]&&(i<80||i<400&&a<32),o=n.length>9;return t("div",s?{className:"flex gap-2 flex-wrap",children:[r&&e(Et,{name:r+":"}),n.map((t,r)=>e(l,{children:String(t)},r))]}:{children:[r&&e(Et,{name:r}),e("div",{className:"flex flex-col gap-2",children:n.map((t,r)=>e(Ft,{index:r,value:t,useBullet:o},r))})]})}function Ft({index:r,value:n,useBullet:i}){const a=i?e("span",{className:"text-xl",children:"•"}):t("span",{children:[r+1,"."]}),s=qt(n);let o;switch(s.type){case Dt.Object:o=e(It,{children:Object.entries(n).map(([t,r])=>e(Tt,{name:t,value:r},t))});break;case Dt.Array:o=e($t,{value:n});break;case Dt.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:a}),e("div",{children:o})]})}var Dt;function qt(e){if(null==e)return{value:"-",type:Dt.Inline};if(Array.isArray(e))return{value:e,type:Dt.Array};const t=typeof e;if("string"===t){const t=e.length;let r;return t<80?r=Dt.Inline:t>400?r=Dt.Prose:(r=Dt.Paragraph,e=e.replace(/(?:\n\n)+/g,"\n\n")),{type:r,value:e}}return"number"===t||"boolean"===t?{value:String(e),type:Dt.Inline}:{value:e,type:Dt.Object}}function Rt({value:t,viewCode:r=!1}){return t?e("div",{className:"relative w-full h-full",children:r?e(Ot,{data:t}):e(Pt,{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"}(Dt||(Dt={}));const Lt=["#4f46e5","#06b6d4","#22c55e","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6"];class zt extends E{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 Kt(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 Vt=P(function({spec:n}){const{chart:i,title:a,description:s,data:o,xKey:l,series:c,yAxis:d,options:h,nameKey:u,valueKey:m,yKey:p,zKey:f,axisKey:g,dataKey:y}=n,[v,b]=k(!1),[x,w]=k(!1),C=N(null),S=A(async()=>{if(C.current&&!x)try{const e=await Q(C.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]),j=A(async()=>{if(C.current&&!v){b(!0);try{const e=await Q(C.current,{backgroundColor:"#ffffff",pixelRatio:2}),t=document.createElement("a");t.download=`${a||"chart"}.png`,t.href=e,t.click()}catch(e){console.error("Failed to export chart:",e)}finally{b(!1)}}},[a,v]),O=c||[],P=o||[],E=t(r,{children:[e(ee,{dataKey:l,tick:{fontSize:12}}),e(te,{yAxisId:"left",tickFormatter:Kt,label:d?.left?.label?{value:d.left.label,angle:-90,position:"insideLeft"}:void 0}),O.some(e=>"right"===e.yAxisId)&&e(te,{yAxisId:"right",orientation:"right",tickFormatter:Kt,label:d?.right?.label?{value:d.right.label,angle:-90,position:"insideRight"}:void 0})]}),I=t(r,{children:[e(re,{strokeDasharray:"3 3"}),e(ne,{formatter:e=>"number"==typeof e?Kt(e):String(e)}),e(ie,{}),h?.referenceZero&&e(ae,{y:0,stroke:"#999",strokeDasharray:"3 3"})]}),T=()=>O.map((t,r)=>{const n=t.color||Lt[r%Lt.length],a=t.yAxisId||"left";return"line"===i?e(he,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,dot:t.dot??!1,yAxisId:a},t.key):"area"===i?e(ue,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,fill:n,fillOpacity:.3,stackId:h?.stacked?t.stackId||"stack":void 0,yAxisId:a},t.key):"bar"===i||"bar"===t.type?e(me,{dataKey:t.key,name:t.label||t.key,fill:n,stackId:h?.stacked?t.stackId||"stack":void 0,yAxisId:a},t.key):"area"===t.type?e(ue,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,fill:n,fillOpacity:.3,stackId:h?.stacked?t.stackId||"stack":void 0,yAxisId:a},t.key):e(he,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,dot:t.dot??!1,yAxisId:a},t.key)});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:[t("div",{className:"flex items-center justify-between",children:[e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:a||"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?D:q,{className:"w-3 h-3"}),x?"Copied":"Copy"]}),t("button",{onClick:j,disabled:v,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(R,{className:"w-3 h-3"}),v?"Exporting...":"Export"]})]})]}),s&&e("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s}),e("div",{ref:C,className:"bg-white dark:bg-gray-900 rounded",style:{width:"100%",height:280,minWidth:0},children:e(zt,{chartType:i,children:e(se,{width:"100%",height:"100%",children:(()=>{switch(i){case"bar":return t(de,{data:P,children:[E,I,T()]});case"line":return t(ce,{data:P,children:[E,I,T()]});case"area":return t(le,{data:P,children:[E,I,T()]});case"composed":default:return t(oe,{data:P,children:[E,I,T()]});case"pie":return t(pe,{children:[e(fe,{data:P,dataKey:m||"value",nameKey:u||"name",cx:"50%",cy:"50%",innerRadius:h?.innerRadius||0,outerRadius:100,label:!1!==h?.showLabels,children:P.map((t,r)=>e(ge,{fill:Lt[r%Lt.length]},`cell-${r}`))}),e(ne,{formatter:e=>"number"==typeof e?Kt(e):String(e)}),e(ie,{})]});case"scatter":return(()=>{const r=l,n=p||"y";return t(ye,{children:[e(re,{strokeDasharray:"3 3"}),e(ee,{dataKey:r,name:r,tick:{fontSize:12}}),e(te,{dataKey:n,name:n,tickFormatter:Kt}),e(ne,{formatter:e=>"number"==typeof e?Kt(e):String(e)}),e(ie,{}),O.length>0?O.map((t,r)=>e(ve,{name:t.label||t.key,data:P,fill:t.color||Lt[r%Lt.length]},t.key)):e(ve,{name:"Data",data:P,fill:Lt[0]})]})})();case"radar":return(()=>{const r=g||l||"axis";return t(be,{cx:"50%",cy:"50%",outerRadius:100,data:P,children:[e(xe,{}),e(we,{dataKey:r,tick:{fontSize:11}}),e(ke,{tickFormatter:Kt}),O.map((t,r)=>e(Ne,{name:t.label||t.key,dataKey:t.key,stroke:t.color||Lt[r%Lt.length],fill:t.color||Lt[r%Lt.length],fillOpacity:.3},t.key)),e(ne,{formatter:e=>"number"==typeof e?Kt(e):String(e)}),e(ie,{})]})})();case"radialBar":return(()=>{const r=u||"name",n=m||"value",i=h?.startAngle??180,a=h?.endAngle??0;return t(Ce,{cx:"50%",cy:"50%",innerRadius:h?.innerRadius??30,outerRadius:100,barSize:15,data:P,startAngle:i,endAngle:a,children:[e(Se,{label:{position:"insideStart",fill:"#fff",fontSize:11},background:!0,dataKey:n,children:P.map((t,r)=>e(ge,{fill:Lt[r%Lt.length]},`cell-${r}`))}),e(ne,{formatter:e=>"number"==typeof e?Kt(e):String(e)}),e(ie,{iconSize:10,layout:"vertical",verticalAlign:"middle",align:"right",formatter:(e,t)=>{const i=P.find(i=>i[r]===e||i[n]===t.payload?.value);return i?i[r]:e}})]})})();case"funnel":return(()=>{const r=u||"name",n=m||"value";return t(Ae,{children:[e(ne,{formatter:e=>"number"==typeof e?Kt(e):String(e)}),t(je,{dataKey:n,data:P,isAnimationActive:!0,children:[P.map((t,r)=>e(ge,{fill:Lt[r%Lt.length]},`cell-${r}`)),!1!==h?.showLabels&&e(Oe,{position:"center",fill:"#fff",stroke:"none",dataKey:r})]})]})})();case"treemap":return e(Pe,{data:P,dataKey:y||m||"value",aspectRatio:4/3,stroke:"#fff",fill:"#4f46e5",content:({x:n,y:i,width:a,height:s,name:o,value:l,index:c})=>t("g",{children:[e("rect",{x:n,y:i,width:a,height:s,style:{fill:Lt[c%Lt.length],stroke:"#fff",strokeWidth:2}}),a>50&&s>30&&t(r,{children:[e("text",{x:n+a/2,y:i+s/2-7,textAnchor:"middle",fill:"#fff",fontSize:12,children:o}),e("text",{x:n+a/2,y:i+s/2+10,textAnchor:"middle",fill:"#fff",fontSize:11,children:Kt(l)})]})]})})}})()})})})]})})},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)),_t=["artifact:","image:","store:","document:","document://","collection:"];function Mt(e){return _t.some(t=>e.startsWith(t))?e:G(e)}function Ut(){return e=>{X(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),[Y,t]})}}function Wt({children:t,components:r,remarkPlugins:n=[],removeComments:i=!0,artifactRunId:a}){const{client:s}=Ee(),o=[Z,...n];i&&o.push(Ut);const l=w.useMemo(()=>{const t=r||{},n=t.code,i=t.a,o=t.img;return{...t,code:({node:t,className:r,children:i,...a})=>{const s=/language-(\w+)/.exec(r||""),o=!s,l=s?s[1]:"";if(!o&&("chart"===l||r?.includes("language-chart")))try{const t=String(i||"").trim(),r=JSON.parse(t);if(r&&r.chart&&Array.isArray(r.data))return e(Vt,{spec:r})}catch(e){console.warn("Failed to parse chart spec:",e)}return"function"==typeof n?e(n,{node:t,className:r,...a,children:i}):e("code",{...a,className:o?"px-1.5 py-0.5 rounded":"text-muted",children:i})},a:t=>{const{node:r,href:n,children:o,...l}=t,c=n||"",d=c.startsWith("artifact:"),h=d?c.replace(/^artifact:/,"").trim():"",u=c.startsWith("image:"),m=u?c.replace(/^image:/,"").trim():"",[p,f]=w.useState(void 0);if(w.useEffect(()=>{let e=!1;return(async()=>{if(d||u)try{if(d)if(a&&!h.startsWith("agents/")){const{url:t}=await s.files.getArtifactDownloadUrl(a,h,"attachment");e||f(t)}else{const{url:t}=await s.files.getDownloadUrl(h);e||f(t)}else if(u){const{url:t}=await s.files.getDownloadUrl(m);e||f(t)}}catch(t){const r=d?h:m;console.error("Failed to resolve link in MarkdownRenderer:",r,t),e||f(void 0)}else f(void 0)})(),()=>{e=!0}},[d,h,u,m,a,s]),c.startsWith("document://")){const t=c.replace(/^document:\/\//,"").trim(),n=t?`/store/objects/${t}`:c;return"function"==typeof i?e(i,{node:r,href:n,...l,children:o}):e("a",{href:n,...l,target:"_blank",rel:"noopener noreferrer",children:o})}if(c.startsWith("store:")){const t=c.replace(/^store:/,"").trim(),n=t?`/store/objects/${t}`:c;return"function"==typeof i?e(i,{node:r,href:n,...l,children:o}):e("a",{href:n,...l,target:"_blank",rel:"noopener noreferrer",children:o})}if(c.startsWith("collection:")){const t=c.replace(/^collection:/,"").trim(),n=t?`/store/collections/${t}`:c;return"function"==typeof i?e(i,{node:r,href:n,...l,children:o}):e("a",{href:n,...l,target:"_blank",rel:"noopener noreferrer",children:o})}if(!d&&!u&&"function"==typeof i)return e(i,{node:r,href:n,...l,children:o});if(d){return e("a",{href:p||"#",...l,target:"_blank",rel:"noopener noreferrer",children:o})}if(u){return e("a",{href:p||"#",...l,target:"_blank",rel:"noopener noreferrer",children:o})}return e("a",{href:n,...l,target:"_blank",rel:"noopener noreferrer",children:o})},img:t=>{const{node:r,src:n,alt:i,...l}=t,c=n||"",d=c.startsWith("artifact:"),h=c.startsWith("image:"),u=d||h,m=u?c.replace(/^artifact:/,"").replace(/^image:/,"").trim():"",[p,f]=w.useState(void 0);return w.useEffect(()=>{let e=!1;return(async()=>{if(u)try{if(d)if(a&&!m.startsWith("agents/")){const{url:t}=await s.files.getArtifactDownloadUrl(a,m,"inline");e||f(t)}else{const{url:t}=await s.files.getDownloadUrl(m);e||f(t)}else if(h){const{url:t}=await s.files.getDownloadUrl(m);e||f(t)}}catch(t){console.error("Failed to resolve image link in MarkdownRenderer:",m,t),e||f(void 0)}else f(void 0)})(),()=>{e=!0}},[u,m,a,s]),u||"function"!=typeof o?u?p?e("img",{src:p,alt:i,...l}):null:e("img",{src:n,alt:i,...l}):e(o,{node:r,src:n,alt:i,...l})}}},[r,s,a]);return e(J,{remarkPlugins:o,components:l,urlTransform:Mt,children:t})}const Bt=j(void 0);function Ht(){return O(Bt)}const Jt=Symbol("__SLOT_NAME");function Gt(e,t){const r=[];return I.forEach(e,e=>{!function(e,t,r){let n;T(e)&&(n=e.type[Jt])?r[n]=e:t.push(e)}(e,r,t)}),r.length>1?r:r[0]}function Zt(e,t){t[Jt]=e}function Xt(e){return e?"boolean"==typeof e?{enabled:e}:e:{enabled:!1}}function Yt(t){const r={};if(Gt(t.children,r),!r.content)throw new Error("Popover must provide a content slot");const n=r.trigger?.props,i=r.content.props;return e(Qt,{...t,trigger:n,content:i})}function Qt({middleware:r,offset:n,trigger:i,dismiss:a=!0,content:s,placement:o,strategy:l,zIndex:c=40}){const[d,h]=k(!1),u=Fe({open:d,placement:o,strategy:l,onOpenChange:h,middleware:r||[Ie(n||4),Te(),$e()],whileElementsMounted:De}),{floatingStyles:m,refs:{setReference:p,setFloating:f},context:g}=u,y=qe(g,Xt(a)),v=Re(g,Xt(!(b=i)||b.hover||b.click?b?.click:{enabled:!0}));var b;const w=Le(g,Xt(function(e){return!0===e?.hover?{enabled:!0,handleClose:Me({blockPointerEvents:!0}),restMs:0}:e?.hover}(i))),{getReferenceProps:N,getFloatingProps:C}=ze([y,v,w]),{isMounted:S,styles:A}=Ke(g,s.transition);return t(Bt.Provider,{value:{...u,close:()=>h(!1)},children:[i&&e("div",{className:x(i.className,"inline-block"),ref:p,...N(),children:i.children}),e(Ve,{children:S&&e("div",{ref:f,style:{...m,zIndex:c},...C(),children:e(_e,{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 er(e){return null}function tr(e){return null}function rr({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 nr({className:r,properties:n}){return e(c,{className:r,children:e("tbody",{children:n.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(L,{className:"size-3 ml-2 text-muted-foreground"})})]}),e("td",{className:"w-2/3",children:r.value??"undefined"})]},r.name))})})}var ir;function ar(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 n=e.items;n.type=r,t.isObject&&!n.properties&&(n.properties={})}else e.type=r,e.items=void 0,t.isObject?e.properties||(e.properties={}):e.properties=void 0}function sr(e){let t,r=!1,n=!1;const i=e.type;if(Array.isArray(i))for(const e of i)"null"===e?r=!0:t||(t=e);else t=i;t||(t="any"),"array"===t&&(n=!0,t=function(e){if(!e)return"any";let t;t=Array.isArray(e)?or(e[0].type):or(e.type);"array"!==t&&"null"!==t||(t="any");return t}(e.items));let a=t;switch(e.editor){case"textarea":a="text";break;case"media":a="media";break;case"document":a="document"}return{isNullable:r,isArray:n,isObject:"object"===t,name:a}}function or(e){return e?Array.isArray(e)?e.find(e=>"null"!==e)||"any":e:"any"}Zt("trigger",er),Zt("content",tr),Yt.Trigger=er,Yt.Content=tr,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"}(ir||(ir={}));let lr=0;class cr{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 dr("",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 dr("",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 cr(this.schema);return e.source=this.source,this.onChange&&e.withChangeListener(this.onChange),e}}class dr{schema;loader;parent;name;isRequired=!1;type;children;constructor(e,t,r,n){if(this.schema=t,this.loader=r,this.parent=n,this.name=e,this.type=sr(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],n=new dr(t,r,this.loader,this);this.children.push(n),n.isParent&&n.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+ ++lr}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 n=function(e,t,r,n=!1){if("object"!==e.type)throw new Error("Cannot add property to a non-object schema");e.properties||(e.properties={});const i={};return ar(i,r),e.properties[t]=i,n&&(Array.isArray(e.required)?function(e,t){e.includes(t)||e.push(t)}(e.required,t):e.required=[t]),i}(this._getPropertiesSchema(),e,t,r),i=new dr(e,n,this.loader,this);return this.children.push(i),i}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 n=e.properties,i={};for(const e of Object.keys(n)){const a=n[e];e===t?i[r]=a:i[e]=a}e.properties=i}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 n=e.required.indexOf(t);r?n<0&&e.required.push(t):n>-1&&e.required.splice(n,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 n=r!==this.schema.type;return e.type&&(ar(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):n&&(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(),n=!0;r.endsWith("?")&&(r=r.substring(0,r.length-1).trim(),n=!1);const i=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 n=ir[e];if(!n)throw new Error(`Unknown type "${e}"`);return{name:n,isArray:t,isNullable:r,isObject:n===ir.object}}(t);let a;return"text"===i.name?(i.name=ir.string,a="textarea"):"media"===i.name?(i.name=ir.any,a="media"):"document"===i.name?(i.name=ir.any,a="document"):a=null,{name:r,type:i,isRequired:n,editor:a}}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),n=e.substring(t+1);return this.updateFromNameAndTypeSignature(r,n)}}function hr(e){return{name:e.getNameSignature(),type:e.getTypeSignature(),description:e.description}}const ur=function(){const e=Object.values(ir),t=[...e];for(const r of e)t.push(r+"[]");return e.sort(),t}();function mr({value:r,onChange:n,onCancel:i,onSave:a}){const[s,l]=k(!1);if(!r)return null;return t("div",{className:"flex items-center",children:[e("div",{className:"flex-1",children:e(pr,{value:r.name,onChange:e=>{n({...r,name:e})},onCancel:i,onSave:a})}),e("div",{className:"px-1 font-semibold",children:":"}),e("div",{className:"flex-1",children:e(fr,{value:r.type,onChange:e=>{n({...r,type:e})},onCancel:i,onSave:a})}),t("div",{children:[e(o,{variant:"ghost",size:"xs",onClick:()=>l(!0),title:"Edit description",children:e(z,{className:"size-4"})}),e(gr,{value:r.description,isOpen:s,onClose:e=>{void 0!==e&&"string"==typeof e&&n({...r,description:e},!0),l(!1)}})]})]})}function pr({value:t,onChange:r,onCancel:n,onSave:i}){const s=N(null);C(()=>{s.current?.focus()},[]);return e("input",{onKeyUp:e=>{switch(e.key){case"Enter":i?.();break;case"Escape":n?.()}},ref:s,value:t,onChange:e=>{r(e.target.value)},className:a.INPUT_UNSTYLED,style:{fontSize:"inherit",width:"",display:"inline"}})}function fr({value:t,onChange:r,onCancel:n,onSave:i}){return e(h,{className:a.INPUT_UNSTYLED,options:ur,value:t||"",onBlur:()=>{i?.()},onChange:r,onKeyDown:(e,t)=>{t||("Enter"===e.key?i?.():"Escape"===e.key&&n?.())},popupClass:"schema-type-suggest-popup z-90"})}function gr({value:r,isOpen:n,onClose:i}){return t(u,{isOpen:n,onClose:i,children:[e(m,{children:"Edit description"}),e(yr,{value:r,onSave:i})]})}function yr({value:n,onSave:i}){const a=N(null),[s,l]=k(n||"");return C(()=>{a.current&&a.current.focus()},[a.current]),t(r,{children:[e(p,{className:"h-max",children:e("textarea",{ref:a,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:()=>i(s),children:"Save Changes"})})]})}function vr({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 br(e){const[t,r]=k(new cr(e||{type:"object",properties:{}}).withChangeListener(e=>{r(e.clone())}));return t}const xr="block text-sm sm:leading-6 rounded-md border-0 py-1.5 px-4",wr=`${xr} hover:shadow-xs hover:ring-1 hover:ring-inset hover:ring-ring`,kr=`${xr} shadow-xs ring-1 ring-inset ring-ring`;function Nr({value:r,onChange:n,onDelete:i,outlineOnHover:a=!1,editOnClick:s=!0,placeholder:o,viewer:l,editor:c,skipClickOutside:d,isEditing:h=!1,readonly:u=!1,onValidate:m}){const{on:p,off:f,isOn:y}=g(h),[v,b]=k();return t("div",{className:"",children:[y&&!u?e(Sr,{value:r,onSave:e=>{if(m){const t=m(e);if(t)return void b(t);b(void 0)}n(e)&&f()},onCancel:f,editor:c,skipClickOutside:e=>!!d&&d(e)}):e(Cr,{value:r,onEdit:p,viewer:l,placeholder:o,outlineOnHover:a,editOnClick:s,onDelete:i,readonly:u}),v&&e("div",{className:"text-red-500 text-sm",children:v})]})}function Cr({viewer:r,value:n,onEdit:i,editOnClick:a,outlineOnHover:s,placeholder:l,onDelete:c,readonly:d}){const h="invisible group-hover:visible";return t("div",{tabIndex:0,onKeyUp:e=>{"Enter"===e.key&&i()},onClick:()=>{a&&i()},className:x("flex justify-start items-center group",s?wr:xr,{"cursor-pointer":a}),children:[e(r,{value:n,placeholder:l}),t("div",{className:"ml-auto flex space-x-2",children:[!d&&c&&e(o,{variant:"ghost",size:"sm",className:h,onClick:c,children:e(F,{className:"size-4"})}),d?null:e(o,{variant:"ghost",size:"sm",className:h,onClick:i,children:e(K,{className:"size-4"})})]})]})}function Sr({editor:t,value:r,onSave:n,onCancel:i,skipClickOutside:a}){const[s,o]=k(r),l=N(r),[c,d]=k(null),h=()=>{n(l.current)},u=y(h,a);return e("div",{ref:u,children:e("div",{className:kr,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(()=>{n(e)},500)))},onSave:h,onCancel:i})})})})}function Ar(e){const t=e.target;return!(!t.closest||!t.closest(".schema-type-suggest-popup"))}function jr({schema:r,readonly:n=!1}){return t("ul",{className:"",children:[r.children.map(e=>Or(e,n)),n?null:e($r,{parent:r.root})]})}function Or(t,r){return t.isParent?e(Er,{property:t,readonly:r},t.name):e(Pr,{node:t,readonly:r},t.name)}function Pr({node:t,readonly:r}){return e("li",{children:e(Tr,{property:t,readonly:r})})}function Er({property:r,readonly:n}){const[i,a]=k(!0);return t("li",{children:[t("div",{className:"flex items-center w-full",children:[e("button",{onClick:()=>a(!i),children:e(i?V:_,{className:"size-4"})}),e("div",{className:"flex-1",children:e(Tr,{property:r,readonly:n})})]}),i&&t("ul",{className:"ml-4 border-l border-gray-400 border-dashed",children:[(r.children||[]).map(e=>Or(e,n)),n?null:e($r,{parent:r})]})]})}function Ir(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 Tr({property:t,readonly:r}){const n=v(),i=t.resetIsNew(),a=hr(t);return e(Nr,{value:a,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 n({status:"error",title:"Invalid property declaration",description:e.message,duration:9e3}),!1}return!0},onDelete:()=>{t.remove(),t.reloadTree()},editor:mr,viewer:vr,outlineOnHover:!0,isEditing:i,skipClickOutside:Ar,readonly:r,onValidate:e=>Ir(e.name)})}function $r({parent:r}){return t(o,{variant:"ghost",onClick:()=>{const e=r.findAvailableChildName("new_property_");r.addChild(e,{isObject:!1,isArray:!1,isNullable:!1,name:ir.string},!0).isNew=!0,r.reloadTree()},children:[e($,{className:"size-4"}),"Add property"]})}function Fr({content:t,...r}){const n=N(null);return C(()=>{if(!n.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(n.current.innerHTML="");r&&Object.entries(r).forEach(([t,r])=>{if(null==r)return;const n="className"===t?"class":t;e.setAttribute(n,String(r))}),n.current.innerHTML="",n.current.appendChild(e)},[t,r]),e("span",{ref:n})}function Dr(t){return r=>e(Fr,{content:t,...r})}function qr({onDrop:r,message:n,buttonLabel:i="Upload Files",allowFolders:a=!0,className:s=""}){const[l,c]=k(!1),d=N(null),h=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,n=t.length,i=1===e?`Preparing to upload 1 folder with ${n} files...`:`Preparing to upload ${e} folders with ${n} files...`,a={count:t.length,message:i};r(t,a)}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),n=[],i=new Set,a=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&&n.push(t);const r=e.fullPath.substring(1).split("/").slice(0,-1).join("/");r&&i.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(a));const n=e.fullPath.substring(1);n&&i.add(n)}};try{if(await Promise.all(t.map(e=>{const t=e.webkitGetAsEntry?e.webkitGetAsEntry():e;return t?a(t):Promise.resolve()})),n.length>0){const e=new Set(Array.from(i).map(e=>e.split("/")[0]).filter(Boolean)).size,t=n.length;let a="";a=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(n,{count:n.length,message:a})}}catch(t){console.error("Error processing dropped files:",t);const n=Array.from(e.dataTransfer.files);n.length>0&&r(n)}}else if(e.dataTransfer.files&&e.dataTransfer.files.length>0){const t=Array.from(e.dataTransfer.files);r(t)}},children:[e(M,{className:"h-12 w-12 mb-3 transition-colors "+(l?"text-primary":"text-muted/50")}),e("p",{className:"text-muted",children:n}),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=>{h(e)}},children:i}),a&&e(o,{onClick:()=>{const e=document.createElement("input");e.type="file",e.multiple=!0,e.accept="*",e.webkitdirectory=!0,e?.click(),e.onchange=e=>{h(e)}},children:"Select Folder"})]})]})}function Rr({title:r,count:n,icon:i=e(U,{className:"h-4 w-4 text-green-500"}),items:a}){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:i}),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:n})]}),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:a.length>0?e("ul",{className:"space-y-1",children:a.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 Lr({files:r,className:n="",location:i,collection:a}){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,h=o.length,u=l.length,m=c.length,p=r.length;return t("div",{className:`flex flex-col py-2 ${n}`,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(U,{className:"size-4 text-success"})}),e("div",{children:t("p",{className:"text-muted",children:[p," file",1!==p?"s":""," processed",a?` in collection '${a}'`:"",i?` in folder '${i}'`:""]})})]}),t("div",{className:"space-y-3 mt-2",children:[d>0&&e(Rr,{title:"Successfully Uploaded",count:d,icon:e(U,{className:"h-4 w-4 text-green-500"}),items:s.map(e=>e.name)}),h>0&&e(Rr,{title:"Successfully Updated",count:h,icon:e(U,{className:"h-4 w-4 text-blue-500"}),items:o.map(e=>e.name)}),u>0&&e(Rr,{title:"Skipped (Already Existed)",count:u,icon:e(W,{className:"h-4 w-4 text-amber-500"}),items:l.map(e=>e.name)}),m>0&&e(Rr,{title:"Failed to Upload",count:m,icon:e(B,{className:"h-4 w-4 text-red-500"}),items:c.map(e=>e.name)})]})]})}const zr="#text",Kr="#comment",Vr="#cdata",_r="DECLARATION_TAG",Mr={tagColor:"#d43900",textColor:"#333",attributeKeyColor:"#2a7ab0",attributeValueColor:"#008000",separatorColor:"#333",commentColor:"#aaa",cdataColor:"#1d781d",fontFamily:"monospace"},Ur={attributeKeyColor:"#FFD700",attributeValueColor:"#FF4500",tagColor:"#87CEFA",textColor:"#00FF00",separatorColor:"#FFD700",commentColor:"#BEBEBE",cdataColor:"#33CC66",fontFamily:"monospace"},Wr=j({theme:Mr,collapsible:!1,indentSize:2}),Br=()=>O(Wr),Hr=new Ue({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",allowBooleanAttributes:!0,commentPropName:Kr,cdataPropName:Vr,parseTagValue:!1});function Jr(r){const{indentation:n,children:i,isInline:a}=r,{theme:s}=Br();return t("div",{style:{color:s.cdataColor},children:[e("span",{children:`${n}<![CDATA[`}),i,e("span",{children:`${a?"":n}]]>`})]})}function Gr(t){const{collapsible:r,theme:n}=Br(),{collapsed:i}=t;return r?e("span",{style:{position:"relative"},children:e("span",{style:{position:"absolute",right:"0",border:0,padding:0,background:"none"},children:e(Zr,{fill:n.separatorColor,style:{transform:`rotate(${i?0:90}deg)`,transition:"transform 0.2s"}})})}):null}function Zr({...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 Xr(e){const{collapsible:t,initialCollapsedDepth:r}=Br(),[n,i]=k(()=>!(Be(r)||!t)&&e>=r);return C(()=>{i(!(Be(r)||!t)&&e>=r)},[r,e,t]),{collapsed:n,buttonProps:t?{onClick:()=>i(e=>!e),role:"button",style:{cursor:"pointer"}}:{}}}function Yr(r){const{indentation:n,children:i,isInline:a,level:s}=r,{theme:o}=Br(),{collapsed:l,buttonProps:c}=Xr(s);return t("div",{style:{color:o.commentColor},children:[t("span",{...c,children:[e("span",{children:n}),e(Gr,{collapsed:l}),e("span",{children:"\x3c!-- "})]}),!l&&i,l&&"...",e("span",{children:`${a||l?" ":n}--\x3e`})]})}function Qr(r){const{attributes:n}=r,{theme:i}=Br();return n?e("span",{children:Object.entries(n).map(([r,n])=>t("span",{children:[e("span",{style:{color:i.attributeKeyColor},children:` ${r}`}),e("span",{style:{color:i.separatorColor},children:"="}),e("span",{style:{color:i.attributeValueColor},children:`"${n}"`})]},`attribute-${r}`))}):null}function en(r){const{indentation:n,tagKey:i,attributes:a}=r,{theme:s}=Br();return t("div",{children:[e("span",{style:{color:s.separatorColor},children:`${n}<?`}),e("span",{style:{color:s.tagColor},children:`${i.slice(1)}`}),e(Qr,{attributes:a}),e("span",{style:{color:s.separatorColor},children:"?>"})]})}function tn(e){return"string"==typeof e&&e.includes("\n")}function rn(e){const t=e[":@"],r=He(e,":@"),[[n,i]]=Object.entries(r),a=function(e){switch(e){case zr:case Vr:case Kr:return e;default:return e.startsWith("?")?_r:"TAG"}}(n);return{attributes:t,tagKey:n,subElements:i,type:a}}function nn(e){return!!e&&Object.keys(e).length>0}function an(n){const{indentation:i,tagKey:a,attributes:s,children:o,isInline:l,hasChildren:c,level:d}=n,{collapsed:h,buttonProps:u}=Xr(d),{theme:m}=Br();return t("div",{children:[t("span",{...u,children:[e("span",{children:i}),e(Gr,{collapsed:h}),e("span",{style:{color:m.separatorColor},children:"<"}),e("span",{style:{color:m.tagColor},children:`${a}`}),!h&&e(Qr,{attributes:s}),h&&nn(s)&&" ...",e("span",{style:{color:m.separatorColor},children:c?">":" />"})]}),c&&t(r,{children:[!h&&o,h&&"...",e("span",{style:{color:m.separatorColor},children:`${l||h?"":i}</`}),e("span",{style:{color:m.tagColor},children:`${a}`}),e("span",{style:{color:m.separatorColor},children:">"})]})]})}function sn(t){const{hasSiblings:r,text:n,indentation:i,isText:a}=t,{theme:s}=Br(),o=a?{color:s.textColor}:void 0;return tn(n)||r?e("div",{style:o,children:n.split("\n").filter(e=>!!e.trim()).map((t,r)=>e("div",{children:`${i}${t.trim()}`},`${r}`))}):e("span",{style:o,children:n})}function on(t){const{elements:n,level:i=0,isText:a=!0}=t,{indentSize:s}=Br();return Array.isArray(n)&&0!==n.length?e(r,{children:n.map((t,r)=>{const{tagKey:o,attributes:l,subElements:c,type:d}=rn(t),h=n.length>1,u=function(e,t){return new Array(t*e+1).join(" ")}(s,i),m=`${i}-${r}`,p=function(e){return"string"!=typeof e&&1===e.length&&zr in e[0]&&!tn(e[0][zr])}(c);switch(d){case zr:return e(sn,{text:c,indentation:u,hasSiblings:h,isText:a},m);case Kr:return e(Yr,{isInline:p,indentation:u,level:i,children:e(on,{elements:c,level:i+1,isText:!1})},m);case Vr:return e(Jr,{indentation:u,isInline:p,children:e(on,{elements:c,level:i+1,isText:!1})},m);case _r:return e(en,{indentation:u,tagKey:o,attributes:l},m);default:return e(an,{indentation:u,tagKey:o,attributes:l,isInline:p,hasChildren:c.length>0,level:i,children:e(on,{elements:c,level:i+1})},m)}})}):null}function ln(){return e("div",{children:"Invalid XML!"})}function cn(t){const{theme:r,xml:n,collapsible:i=!1,indentSize:a=2,invalidXml:s,initalCollapsedDepth:o,initialCollapsedDepth:l}=t,[c,d]=k(()=>document.documentElement.classList.contains("dark"));C(()=>{const e=document.documentElement,t=new MutationObserver(()=>{d(e.classList.contains("dark"))});return t.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]);const h=S(()=>({...c?Ur:Mr,...r}),[c,r]),{json:u,valid:m}=function(e){return S(()=>{try{if(!We.validate(e))throw new Error("Invalid XML!");const t=Hr.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])}(n),p=S(()=>({theme:h,collapsible:i,indentSize:a,initialCollapsedDepth:l??o}),[h,i,a,o,l]);return m?e(Wr.Provider,{value:p,children:e("div",{className:"rxv-container",style:{whiteSpace:"pre-wrap",fontFamily:h.fontFamily,overflowWrap:"break-word"},children:e(on,{elements:u})})}):s||e(ln,{})}export{pt as ArrayPropertySchema,qr as DropZone,Xe as FieldSetContextProvider,it as Form,Qe as FormContext,rt as FormContextProvider,jt as FormError,At as FormHelper,St as FormLabel,st as GeneratedForm,nt as Input,Ot as JSONCode,Rt as JSONDisplay,Pt as JSONView,Nt as ManageObjectEntry,kt as ManagedListProperty,bt as ManagedObject,vt as ManagedObjectBase,xt as ManagedObjectProperty,wt as ManagedProperty,Ct as ManagedScalarEntry,cr as ManagedSchema,Wt as MarkdownRenderer,Ge as MonacoEditor,yt as Node,Yt as Popover,Bt as PopoverContext,rr as Progress,nr as PropertiesView,mr as PropertyEditor,pr as PropertyNameEditor,mt as PropertySchema,vr as PropertyViewer,lt as ScalarField,ut as Schema,jr as SchemaEditor,dr as SchemaNode,Fr as SvgIcon,Rr as UploadResultCategory,Lr as UploadSummary,Je as VEditorApi,cn as XMLViewer,ft as computeTitleFromName,Dr as createSvgIcon,hr as getEditableSchemaProperty,Ye as useFieldSet,tt as useForm,Ht as usePopoverContext,br as useSchema,Ir as validatePropertyName};
2
+ //# sourceMappingURL=vertesia-ui-widgets.js.map