@vertesia/ui 0.81.0 → 0.81.2-dev.20260204.135023Z

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 (1499) hide show
  1. package/package.json +6 -10
  2. package/src/core/components/InputList.tsx +1 -1
  3. package/src/core/components/Overlay.tsx +1 -1
  4. package/src/core/components/SidePanel.tsx +25 -13
  5. package/src/core/components/index.ts +0 -8
  6. package/src/core/components/{Panel.tsx → shadcn/Panel.tsx} +1 -1
  7. package/src/core/components/{Badge.tsx → shadcn/badge.tsx} +1 -1
  8. package/src/core/components/shadcn/calendar.tsx +2 -2
  9. package/src/core/components/shadcn/command.tsx +1 -1
  10. package/src/core/components/shadcn/filters/index.ts +1 -1
  11. package/src/core/components/shadcn/index.ts +5 -3
  12. package/src/core/components/{ConfirmModal.tsx → shadcn/modal/ConfirmModal.tsx} +8 -8
  13. package/src/core/components/{DeleteModal.tsx → shadcn/modal/DeleteModal.tsx} +1 -1
  14. package/src/core/components/shadcn/{dialog.tsx → modal/dialog.tsx} +41 -32
  15. package/src/core/components/shadcn/modal/index.ts +3 -0
  16. package/src/core/components/shadcn/popover.tsx +4 -2
  17. package/src/core/components/shadcn/selectBox.tsx +14 -12
  18. package/src/core/components/shadcn/tabs.tsx +16 -7
  19. package/src/core/components/shadcn/tooltip.tsx +20 -16
  20. package/src/features/agent/PayloadBuilder.tsx +28 -0
  21. package/src/features/agent/chat/ModernAgentConversation.tsx +13 -111
  22. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +1 -1
  23. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +7 -7
  24. package/src/features/facets/AgentRunnerFacetsNav.tsx +125 -0
  25. package/src/features/facets/index.ts +1 -0
  26. package/src/features/store/collections/CreateCollection.tsx +9 -9
  27. package/src/features/store/collections/EditCollectionView.tsx +11 -9
  28. package/src/features/store/objects/components/ContentOverview.tsx +8 -8
  29. package/src/features/store/objects/components/PropertiesEditorModal.tsx +35 -51
  30. package/src/features/store/objects/components/SelectDocumentModal.tsx +6 -6
  31. package/src/features/store/objects/components/useContentPanelHooks.ts +3 -3
  32. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +13 -13
  33. package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +8 -8
  34. package/src/features/store/objects/upload/DocumentUploadModal.tsx +25 -25
  35. package/src/features/store/types/ObjectSchemaEditor.tsx +30 -27
  36. package/src/features/store/types/SelectContentType.tsx +3 -3
  37. package/src/features/store/types/TableLayoutEditor.tsx +13 -17
  38. package/src/layout/AppLayout.tsx +16 -44
  39. package/src/layout/Sidebar.tsx +1 -1
  40. package/src/session/auth/auth-flow.md +1094 -0
  41. package/src/session/index.ts +1 -0
  42. package/src/shell/apps/AppProjectSelector.tsx +2 -2
  43. package/src/shell/login/InviteAcceptModal.tsx +6 -6
  44. package/src/shell/login/SignInModal.tsx +1 -1
  45. package/src/shell/login/SignupForm.tsx +3 -3
  46. package/src/shell/login/UserInfo.tsx +5 -5
  47. package/src/widgets/index.ts +1 -1
  48. package/src/widgets/json-view/JSONCode.tsx +28 -172
  49. package/src/widgets/json-view/JSONDisplay.tsx +1 -1
  50. package/src/widgets/{codemirror → monacoEditor}/MonacoEditor.tsx +16 -11
  51. package/src/widgets/monacoEditor/index.ts +3 -0
  52. package/src/widgets/schema-editor/editor/PropertyEditor.tsx +5 -5
  53. package/lib/esm/core/components/Avatar.js +0 -31
  54. package/lib/esm/core/components/Avatar.js.map +0 -1
  55. package/lib/esm/core/components/Badge.js +0 -62
  56. package/lib/esm/core/components/Badge.js.map +0 -1
  57. package/lib/esm/core/components/Button.js +0 -32
  58. package/lib/esm/core/components/Button.js.map +0 -1
  59. package/lib/esm/core/components/Center.js +0 -6
  60. package/lib/esm/core/components/Center.js.map +0 -1
  61. package/lib/esm/core/components/ComboBox.js +0 -356
  62. package/lib/esm/core/components/ComboBox.js.map +0 -1
  63. package/lib/esm/core/components/ConfirmModal.js +0 -10
  64. package/lib/esm/core/components/ConfirmModal.js.map +0 -1
  65. package/lib/esm/core/components/DeleteModal.js +0 -28
  66. package/lib/esm/core/components/DeleteModal.js.map +0 -1
  67. package/lib/esm/core/components/Divider.js +0 -6
  68. package/lib/esm/core/components/Divider.js.map +0 -1
  69. package/lib/esm/core/components/Dropdown.js +0 -16
  70. package/lib/esm/core/components/Dropdown.js.map +0 -1
  71. package/lib/esm/core/components/DropdownList.js +0 -9
  72. package/lib/esm/core/components/DropdownList.js.map +0 -1
  73. package/lib/esm/core/components/EmptyCollection.js +0 -7
  74. package/lib/esm/core/components/EmptyCollection.js.map +0 -1
  75. package/lib/esm/core/components/FileUpload.js +0 -119
  76. package/lib/esm/core/components/FileUpload.js.map +0 -1
  77. package/lib/esm/core/components/FormItem.js +0 -9
  78. package/lib/esm/core/components/FormItem.js.map +0 -1
  79. package/lib/esm/core/components/InputList.js +0 -61
  80. package/lib/esm/core/components/InputList.js.map +0 -1
  81. package/lib/esm/core/components/Link.js +0 -13
  82. package/lib/esm/core/components/Link.js.map +0 -1
  83. package/lib/esm/core/components/MenuList.js +0 -20
  84. package/lib/esm/core/components/MenuList.js.map +0 -1
  85. package/lib/esm/core/components/MessageBox.js +0 -66
  86. package/lib/esm/core/components/MessageBox.js.map +0 -1
  87. package/lib/esm/core/components/Modal.js +0 -26
  88. package/lib/esm/core/components/Modal.js.map +0 -1
  89. package/lib/esm/core/components/NumberInput.js +0 -43
  90. package/lib/esm/core/components/NumberInput.js.map +0 -1
  91. package/lib/esm/core/components/Overlay.js +0 -57
  92. package/lib/esm/core/components/Overlay.js.map +0 -1
  93. package/lib/esm/core/components/Panel.js +0 -8
  94. package/lib/esm/core/components/Panel.js.map +0 -1
  95. package/lib/esm/core/components/Portal.js +0 -28
  96. package/lib/esm/core/components/Portal.js.map +0 -1
  97. package/lib/esm/core/components/RadioGroup.js +0 -34
  98. package/lib/esm/core/components/RadioGroup.js.map +0 -1
  99. package/lib/esm/core/components/SelectBox.js +0 -67
  100. package/lib/esm/core/components/SelectBox.js.map +0 -1
  101. package/lib/esm/core/components/SelectList.js +0 -52
  102. package/lib/esm/core/components/SelectList.js.map +0 -1
  103. package/lib/esm/core/components/SelectStack.js +0 -8
  104. package/lib/esm/core/components/SelectStack.js.map +0 -1
  105. package/lib/esm/core/components/SidePanel.js +0 -33
  106. package/lib/esm/core/components/SidePanel.js.map +0 -1
  107. package/lib/esm/core/components/Spinner.js +0 -18
  108. package/lib/esm/core/components/Spinner.js.map +0 -1
  109. package/lib/esm/core/components/Switch.js +0 -12
  110. package/lib/esm/core/components/Switch.js.map +0 -1
  111. package/lib/esm/core/components/TagsInput.js +0 -194
  112. package/lib/esm/core/components/TagsInput.js.map +0 -1
  113. package/lib/esm/core/components/index.js +0 -36
  114. package/lib/esm/core/components/index.js.map +0 -1
  115. package/lib/esm/core/components/libs/utils.js +0 -6
  116. package/lib/esm/core/components/libs/utils.js.map +0 -1
  117. package/lib/esm/core/components/libs/visuallyHidden.js +0 -16
  118. package/lib/esm/core/components/libs/visuallyHidden.js.map +0 -1
  119. package/lib/esm/core/components/popup/Popup.js +0 -60
  120. package/lib/esm/core/components/popup/Popup.js.map +0 -1
  121. package/lib/esm/core/components/popup/PopupController.js +0 -149
  122. package/lib/esm/core/components/popup/PopupController.js.map +0 -1
  123. package/lib/esm/core/components/popup/index.js +0 -4
  124. package/lib/esm/core/components/popup/index.js.map +0 -1
  125. package/lib/esm/core/components/popup/position.js +0 -221
  126. package/lib/esm/core/components/popup/position.js.map +0 -1
  127. package/lib/esm/core/components/popup/utils.js +0 -74
  128. package/lib/esm/core/components/popup/utils.js.map +0 -1
  129. package/lib/esm/core/components/shadcn/breadcrumb.js +0 -51
  130. package/lib/esm/core/components/shadcn/breadcrumb.js.map +0 -1
  131. package/lib/esm/core/components/shadcn/button.js +0 -76
  132. package/lib/esm/core/components/shadcn/button.js.map +0 -1
  133. package/lib/esm/core/components/shadcn/calendar.js +0 -13
  134. package/lib/esm/core/components/shadcn/calendar.js.map +0 -1
  135. package/lib/esm/core/components/shadcn/card.js +0 -17
  136. package/lib/esm/core/components/shadcn/card.js.map +0 -1
  137. package/lib/esm/core/components/shadcn/checkbox.js +0 -9
  138. package/lib/esm/core/components/shadcn/checkbox.js.map +0 -1
  139. package/lib/esm/core/components/shadcn/command.js +0 -29
  140. package/lib/esm/core/components/shadcn/command.js.map +0 -1
  141. package/lib/esm/core/components/shadcn/dialog.js +0 -74
  142. package/lib/esm/core/components/shadcn/dialog.js.map +0 -1
  143. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +0 -38
  144. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +0 -1
  145. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js +0 -23
  146. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js.map +0 -1
  147. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +0 -129
  148. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +0 -1
  149. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +0 -46
  150. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +0 -1
  151. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +0 -23
  152. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +0 -1
  153. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js +0 -28
  154. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js.map +0 -1
  155. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js +0 -5
  156. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js.map +0 -1
  157. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js +0 -98
  158. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js.map +0 -1
  159. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +0 -24
  160. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +0 -1
  161. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js +0 -21
  162. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js.map +0 -1
  163. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +0 -161
  164. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +0 -1
  165. package/lib/esm/core/components/shadcn/filters/filter-styles.js +0 -88
  166. package/lib/esm/core/components/shadcn/filters/filter-styles.js.map +0 -1
  167. package/lib/esm/core/components/shadcn/filters/filterBar.js +0 -242
  168. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +0 -1
  169. package/lib/esm/core/components/shadcn/filters/filters.js +0 -57
  170. package/lib/esm/core/components/shadcn/filters/filters.js.map +0 -1
  171. package/lib/esm/core/components/shadcn/filters/index.js +0 -6
  172. package/lib/esm/core/components/shadcn/filters/index.js.map +0 -1
  173. package/lib/esm/core/components/shadcn/filters/types.js +0 -10
  174. package/lib/esm/core/components/shadcn/filters/types.js.map +0 -1
  175. package/lib/esm/core/components/shadcn/heading.js +0 -17
  176. package/lib/esm/core/components/shadcn/heading.js.map +0 -1
  177. package/lib/esm/core/components/shadcn/index.js +0 -23
  178. package/lib/esm/core/components/shadcn/index.js.map +0 -1
  179. package/lib/esm/core/components/shadcn/input.js +0 -41
  180. package/lib/esm/core/components/shadcn/input.js.map +0 -1
  181. package/lib/esm/core/components/shadcn/label.js +0 -10
  182. package/lib/esm/core/components/shadcn/label.js.map +0 -1
  183. package/lib/esm/core/components/shadcn/popover.js +0 -50
  184. package/lib/esm/core/components/shadcn/popover.js.map +0 -1
  185. package/lib/esm/core/components/shadcn/resizeable.js +0 -15
  186. package/lib/esm/core/components/shadcn/resizeable.js.map +0 -1
  187. package/lib/esm/core/components/shadcn/selectBox.js +0 -152
  188. package/lib/esm/core/components/shadcn/selectBox.js.map +0 -1
  189. package/lib/esm/core/components/shadcn/separator.js +0 -8
  190. package/lib/esm/core/components/shadcn/separator.js.map +0 -1
  191. package/lib/esm/core/components/shadcn/tabs.js +0 -132
  192. package/lib/esm/core/components/shadcn/tabs.js.map +0 -1
  193. package/lib/esm/core/components/shadcn/text.js +0 -30
  194. package/lib/esm/core/components/shadcn/text.js.map +0 -1
  195. package/lib/esm/core/components/shadcn/textarea.js +0 -7
  196. package/lib/esm/core/components/shadcn/textarea.js.map +0 -1
  197. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js +0 -39
  198. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js.map +0 -1
  199. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +0 -13
  200. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +0 -1
  201. package/lib/esm/core/components/shadcn/tooltip.js +0 -14
  202. package/lib/esm/core/components/shadcn/tooltip.js.map +0 -1
  203. package/lib/esm/core/components/styles.js +0 -10
  204. package/lib/esm/core/components/styles.js.map +0 -1
  205. package/lib/esm/core/components/table/index.js +0 -24
  206. package/lib/esm/core/components/table/index.js.map +0 -1
  207. package/lib/esm/core/components/tabs/Tabs.js +0 -78
  208. package/lib/esm/core/components/tabs/Tabs.js.map +0 -1
  209. package/lib/esm/core/components/tabs/TabsContext.js +0 -7
  210. package/lib/esm/core/components/tabs/TabsContext.js.map +0 -1
  211. package/lib/esm/core/components/tabs/index.js +0 -3
  212. package/lib/esm/core/components/tabs/index.js.map +0 -1
  213. package/lib/esm/core/components/toast/NotificationPanel.js +0 -43
  214. package/lib/esm/core/components/toast/NotificationPanel.js.map +0 -1
  215. package/lib/esm/core/components/toast/ToastContext.js +0 -7
  216. package/lib/esm/core/components/toast/ToastContext.js.map +0 -1
  217. package/lib/esm/core/components/toast/ToastProps.js +0 -2
  218. package/lib/esm/core/components/toast/ToastProps.js.map +0 -1
  219. package/lib/esm/core/components/toast/ToastProvider.js +0 -13
  220. package/lib/esm/core/components/toast/ToastProvider.js.map +0 -1
  221. package/lib/esm/core/components/toast/index.js +0 -3
  222. package/lib/esm/core/components/toast/index.js.map +0 -1
  223. package/lib/esm/core/hooks/CompositeState.js +0 -256
  224. package/lib/esm/core/hooks/CompositeState.js.map +0 -1
  225. package/lib/esm/core/hooks/PortalContainerProvider.js +0 -42
  226. package/lib/esm/core/hooks/PortalContainerProvider.js.map +0 -1
  227. package/lib/esm/core/hooks/SharedState.js +0 -64
  228. package/lib/esm/core/hooks/SharedState.js.map +0 -1
  229. package/lib/esm/core/hooks/index.js +0 -16
  230. package/lib/esm/core/hooks/index.js.map +0 -1
  231. package/lib/esm/core/hooks/useClickOutside.js +0 -29
  232. package/lib/esm/core/hooks/useClickOutside.js.map +0 -1
  233. package/lib/esm/core/hooks/useCopyToClipboard.js +0 -23
  234. package/lib/esm/core/hooks/useCopyToClipboard.js.map +0 -1
  235. package/lib/esm/core/hooks/useDarkMode.js +0 -11
  236. package/lib/esm/core/hooks/useDarkMode.js.map +0 -1
  237. package/lib/esm/core/hooks/useDebounce.js +0 -14
  238. package/lib/esm/core/hooks/useDebounce.js.map +0 -1
  239. package/lib/esm/core/hooks/useEventSource.js +0 -31
  240. package/lib/esm/core/hooks/useEventSource.js.map +0 -1
  241. package/lib/esm/core/hooks/useFetch.js +0 -40
  242. package/lib/esm/core/hooks/useFetch.js.map +0 -1
  243. package/lib/esm/core/hooks/useFlag.js +0 -13
  244. package/lib/esm/core/hooks/useFlag.js.map +0 -1
  245. package/lib/esm/core/hooks/useIntersectionObserver.js +0 -34
  246. package/lib/esm/core/hooks/useIntersectionObserver.js.map +0 -1
  247. package/lib/esm/core/hooks/useIsFistRendering.js +0 -14
  248. package/lib/esm/core/hooks/useIsFistRendering.js.map +0 -1
  249. package/lib/esm/core/hooks/useSafeLayoutEffect.js +0 -4
  250. package/lib/esm/core/hooks/useSafeLayoutEffect.js.map +0 -1
  251. package/lib/esm/core/hooks/useScrollableSearch.js +0 -92
  252. package/lib/esm/core/hooks/useScrollableSearch.js.map +0 -1
  253. package/lib/esm/core/hooks/useSharedValue.js +0 -21
  254. package/lib/esm/core/hooks/useSharedValue.js.map +0 -1
  255. package/lib/esm/core/index.js +0 -4
  256. package/lib/esm/core/index.js.map +0 -1
  257. package/lib/esm/core/utils/cn.js +0 -6
  258. package/lib/esm/core/utils/cn.js.map +0 -1
  259. package/lib/esm/core/utils/index.js +0 -2
  260. package/lib/esm/core/utils/index.js.map +0 -1
  261. package/lib/esm/env/index.js +0 -75
  262. package/lib/esm/env/index.js.map +0 -1
  263. package/lib/esm/features/activity-doc/ActivityDoc.js +0 -71
  264. package/lib/esm/features/activity-doc/ActivityDoc.js.map +0 -1
  265. package/lib/esm/features/activity-doc/index.js +0 -2
  266. package/lib/esm/features/activity-doc/index.js.map +0 -1
  267. package/lib/esm/features/agent/PayloadBuilder.js +0 -266
  268. package/lib/esm/features/agent/PayloadBuilder.js.map +0 -1
  269. package/lib/esm/features/agent/chat/AgentChart.js +0 -184
  270. package/lib/esm/features/agent/chat/AgentChart.js.map +0 -1
  271. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +0 -207
  272. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +0 -1
  273. package/lib/esm/features/agent/chat/JumpingDots.js +0 -6
  274. package/lib/esm/features/agent/chat/JumpingDots.js.map +0 -1
  275. package/lib/esm/features/agent/chat/ModernAgentConversation.js +0 -490
  276. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +0 -1
  277. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +0 -133
  278. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +0 -1
  279. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +0 -62
  280. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +0 -1
  281. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +0 -29
  282. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +0 -1
  283. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +0 -95
  284. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +0 -1
  285. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +0 -54
  286. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +0 -1
  287. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +0 -368
  288. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +0 -1
  289. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +0 -20
  290. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +0 -1
  291. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +0 -63
  292. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +0 -1
  293. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +0 -23
  294. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +0 -1
  295. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +0 -52
  296. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +0 -1
  297. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +0 -82
  298. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +0 -1
  299. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +0 -13
  300. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +0 -1
  301. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +0 -105
  302. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +0 -1
  303. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +0 -160
  304. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +0 -1
  305. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +0 -266
  306. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +0 -1
  307. package/lib/esm/features/agent/chat/WaitingMessages.js +0 -60
  308. package/lib/esm/features/agent/chat/WaitingMessages.js.map +0 -1
  309. package/lib/esm/features/agent/chat/index.js +0 -6
  310. package/lib/esm/features/agent/chat/index.js.map +0 -1
  311. package/lib/esm/features/agent/createChartTool.js +0 -354
  312. package/lib/esm/features/agent/createChartTool.js.map +0 -1
  313. package/lib/esm/features/agent/examples.js +0 -295
  314. package/lib/esm/features/agent/examples.js.map +0 -1
  315. package/lib/esm/features/agent/index.js +0 -5
  316. package/lib/esm/features/agent/index.js.map +0 -1
  317. package/lib/esm/features/agent/visualization.js +0 -165
  318. package/lib/esm/features/agent/visualization.js.map +0 -1
  319. package/lib/esm/features/errors/PanelErrorBoundary.js +0 -11
  320. package/lib/esm/features/errors/PanelErrorBoundary.js.map +0 -1
  321. package/lib/esm/features/errors/RowErrorBoundary.js +0 -9
  322. package/lib/esm/features/errors/RowErrorBoundary.js.map +0 -1
  323. package/lib/esm/features/errors/VertesiaErrorBoundary.js +0 -15
  324. package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +0 -1
  325. package/lib/esm/features/errors/WidgetErrorBoundary.js +0 -11
  326. package/lib/esm/features/errors/WidgetErrorBoundary.js.map +0 -1
  327. package/lib/esm/features/errors/index.js +0 -5
  328. package/lib/esm/features/errors/index.js.map +0 -1
  329. package/lib/esm/features/facets/CollectionsFacetsNav.js +0 -89
  330. package/lib/esm/features/facets/CollectionsFacetsNav.js.map +0 -1
  331. package/lib/esm/features/facets/DocumentsFacetsNav.js +0 -147
  332. package/lib/esm/features/facets/DocumentsFacetsNav.js.map +0 -1
  333. package/lib/esm/features/facets/EnvironmentFacet.js +0 -39
  334. package/lib/esm/features/facets/EnvironmentFacet.js.map +0 -1
  335. package/lib/esm/features/facets/InteractionsFacetsNav.js +0 -88
  336. package/lib/esm/features/facets/InteractionsFacetsNav.js.map +0 -1
  337. package/lib/esm/features/facets/PromptsFacetsNav.js +0 -80
  338. package/lib/esm/features/facets/PromptsFacetsNav.js.map +0 -1
  339. package/lib/esm/features/facets/RunsFacetsNav.js +0 -157
  340. package/lib/esm/features/facets/RunsFacetsNav.js.map +0 -1
  341. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js +0 -100
  342. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js.map +0 -1
  343. package/lib/esm/features/facets/index.js +0 -15
  344. package/lib/esm/features/facets/index.js.map +0 -1
  345. package/lib/esm/features/facets/utils/SearchInterface.js +0 -2
  346. package/lib/esm/features/facets/utils/SearchInterface.js.map +0 -1
  347. package/lib/esm/features/facets/utils/StringFacet.js +0 -12
  348. package/lib/esm/features/facets/utils/StringFacet.js.map +0 -1
  349. package/lib/esm/features/facets/utils/StringListFacet.js +0 -11
  350. package/lib/esm/features/facets/utils/StringListFacet.js.map +0 -1
  351. package/lib/esm/features/facets/utils/TypeFacet.js +0 -42
  352. package/lib/esm/features/facets/utils/TypeFacet.js.map +0 -1
  353. package/lib/esm/features/facets/utils/VEnvironmentFacet.js +0 -25
  354. package/lib/esm/features/facets/utils/VEnvironmentFacet.js.map +0 -1
  355. package/lib/esm/features/facets/utils/VInteractionFacet.js +0 -45
  356. package/lib/esm/features/facets/utils/VInteractionFacet.js.map +0 -1
  357. package/lib/esm/features/facets/utils/VStringFacet.js +0 -20
  358. package/lib/esm/features/facets/utils/VStringFacet.js.map +0 -1
  359. package/lib/esm/features/facets/utils/VTypeFacet.js +0 -61
  360. package/lib/esm/features/facets/utils/VTypeFacet.js.map +0 -1
  361. package/lib/esm/features/facets/utils/VUserFacet.js +0 -31
  362. package/lib/esm/features/facets/utils/VUserFacet.js.map +0 -1
  363. package/lib/esm/features/facets/utils/utils.js +0 -7
  364. package/lib/esm/features/facets/utils/utils.js.map +0 -1
  365. package/lib/esm/features/index.js +0 -12
  366. package/lib/esm/features/index.js.map +0 -1
  367. package/lib/esm/features/layout/GenericPageNavHeader.js +0 -74
  368. package/lib/esm/features/layout/GenericPageNavHeader.js.map +0 -1
  369. package/lib/esm/features/layout/NotFoundView.js +0 -5
  370. package/lib/esm/features/layout/NotFoundView.js.map +0 -1
  371. package/lib/esm/features/layout/index.js +0 -3
  372. package/lib/esm/features/layout/index.js.map +0 -1
  373. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +0 -268
  374. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +0 -1
  375. package/lib/esm/features/magic-pdf/DownloadPopover.js +0 -28
  376. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +0 -1
  377. package/lib/esm/features/magic-pdf/ExtractedContentView.js +0 -77
  378. package/lib/esm/features/magic-pdf/ExtractedContentView.js.map +0 -1
  379. package/lib/esm/features/magic-pdf/MagicPdfProvider.js +0 -242
  380. package/lib/esm/features/magic-pdf/MagicPdfProvider.js.map +0 -1
  381. package/lib/esm/features/magic-pdf/MagicPdfView.js +0 -61
  382. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +0 -1
  383. package/lib/esm/features/magic-pdf/index.js +0 -2
  384. package/lib/esm/features/magic-pdf/index.js.map +0 -1
  385. package/lib/esm/features/magic-pdf/types.js +0 -2
  386. package/lib/esm/features/magic-pdf/types.js.map +0 -1
  387. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js +0 -261
  388. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js.map +0 -1
  389. package/lib/esm/features/pdf-viewer/PdfPageSlider.js +0 -276
  390. package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +0 -1
  391. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +0 -71
  392. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +0 -1
  393. package/lib/esm/features/pdf-viewer/index.js +0 -4
  394. package/lib/esm/features/pdf-viewer/index.js.map +0 -1
  395. package/lib/esm/features/permissions/SecureButton.js +0 -13
  396. package/lib/esm/features/permissions/SecureButton.js.map +0 -1
  397. package/lib/esm/features/permissions/SecureSidebarItem.js +0 -14
  398. package/lib/esm/features/permissions/SecureSidebarItem.js.map +0 -1
  399. package/lib/esm/features/permissions/UserPermissionsProvider.js +0 -87
  400. package/lib/esm/features/permissions/UserPermissionsProvider.js.map +0 -1
  401. package/lib/esm/features/permissions/helpers.js +0 -12
  402. package/lib/esm/features/permissions/helpers.js.map +0 -1
  403. package/lib/esm/features/permissions/index.js +0 -5
  404. package/lib/esm/features/permissions/index.js.map +0 -1
  405. package/lib/esm/features/store/collections/BrowseCollectionView.js +0 -40
  406. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +0 -1
  407. package/lib/esm/features/store/collections/CollectionsTable.js +0 -64
  408. package/lib/esm/features/store/collections/CollectionsTable.js.map +0 -1
  409. package/lib/esm/features/store/collections/CreateCollection.js +0 -87
  410. package/lib/esm/features/store/collections/CreateCollection.js.map +0 -1
  411. package/lib/esm/features/store/collections/EditCollectionView.js +0 -183
  412. package/lib/esm/features/store/collections/EditCollectionView.js.map +0 -1
  413. package/lib/esm/features/store/collections/SelectCollection.js +0 -119
  414. package/lib/esm/features/store/collections/SelectCollection.js.map +0 -1
  415. package/lib/esm/features/store/collections/SharedPropsEditor.js +0 -39
  416. package/lib/esm/features/store/collections/SharedPropsEditor.js.map +0 -1
  417. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +0 -35
  418. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +0 -1
  419. package/lib/esm/features/store/collections/index.js +0 -8
  420. package/lib/esm/features/store/collections/index.js.map +0 -1
  421. package/lib/esm/features/store/index.js +0 -4
  422. package/lib/esm/features/store/index.js.map +0 -1
  423. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +0 -147
  424. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +0 -1
  425. package/lib/esm/features/store/objects/DocumentSearchResults.js +0 -204
  426. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +0 -1
  427. package/lib/esm/features/store/objects/DocumentSelectionProvider.js +0 -81
  428. package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +0 -1
  429. package/lib/esm/features/store/objects/DocumentTable.js +0 -278
  430. package/lib/esm/features/store/objects/DocumentTable.js.map +0 -1
  431. package/lib/esm/features/store/objects/ExportPropertiesModal.js +0 -31
  432. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +0 -1
  433. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +0 -31
  434. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +0 -1
  435. package/lib/esm/features/store/objects/components/ContentOverview.js +0 -520
  436. package/lib/esm/features/store/objects/components/ContentOverview.js.map +0 -1
  437. package/lib/esm/features/store/objects/components/DocumentIcon.js +0 -33
  438. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +0 -1
  439. package/lib/esm/features/store/objects/components/DocumentInput.js +0 -51
  440. package/lib/esm/features/store/objects/components/DocumentInput.js.map +0 -1
  441. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +0 -171
  442. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +0 -1
  443. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +0 -53
  444. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +0 -1
  445. package/lib/esm/features/store/objects/components/SelectDocument.js +0 -55
  446. package/lib/esm/features/store/objects/components/SelectDocument.js.map +0 -1
  447. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +0 -7
  448. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +0 -1
  449. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +0 -90
  450. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +0 -1
  451. package/lib/esm/features/store/objects/components/index.js +0 -10
  452. package/lib/esm/features/store/objects/components/index.js.map +0 -1
  453. package/lib/esm/features/store/objects/components/useContentPanelHooks.js +0 -153
  454. package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +0 -1
  455. package/lib/esm/features/store/objects/components/useDownloadObject.js +0 -21
  456. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +0 -1
  457. package/lib/esm/features/store/objects/index.js +0 -11
  458. package/lib/esm/features/store/objects/index.js.map +0 -1
  459. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +0 -86
  460. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +0 -1
  461. package/lib/esm/features/store/objects/layout/documentLayout.js +0 -15
  462. package/lib/esm/features/store/objects/layout/documentLayout.js.map +0 -1
  463. package/lib/esm/features/store/objects/layout/index.js +0 -3
  464. package/lib/esm/features/store/objects/layout/index.js.map +0 -1
  465. package/lib/esm/features/store/objects/layout/renderers.js +0 -157
  466. package/lib/esm/features/store/objects/layout/renderers.js.map +0 -1
  467. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +0 -175
  468. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +0 -1
  469. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +0 -39
  470. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +0 -1
  471. package/lib/esm/features/store/objects/search/index.js +0 -3
  472. package/lib/esm/features/store/objects/search/index.js.map +0 -1
  473. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +0 -150
  474. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +0 -1
  475. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +0 -2
  476. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +0 -1
  477. package/lib/esm/features/store/objects/selection/SelectionActions.js +0 -69
  478. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +0 -1
  479. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +0 -81
  480. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +0 -1
  481. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +0 -53
  482. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +0 -1
  483. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +0 -30
  484. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +0 -1
  485. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +0 -84
  486. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +0 -1
  487. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +0 -106
  488. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +0 -1
  489. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +0 -64
  490. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +0 -1
  491. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +0 -72
  492. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +0 -1
  493. package/lib/esm/features/store/objects/selection/actions/index.js +0 -8
  494. package/lib/esm/features/store/objects/selection/actions/index.js.map +0 -1
  495. package/lib/esm/features/store/objects/selection/index.js +0 -5
  496. package/lib/esm/features/store/objects/selection/index.js.map +0 -1
  497. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +0 -519
  498. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +0 -1
  499. package/lib/esm/features/store/objects/upload/index.js +0 -4
  500. package/lib/esm/features/store/objects/upload/index.js.map +0 -1
  501. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +0 -195
  502. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +0 -1
  503. package/lib/esm/features/store/objects/upload/useUploadHandler.js +0 -230
  504. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +0 -1
  505. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +0 -81
  506. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +0 -1
  507. package/lib/esm/features/store/types/ContentObjectTypesTable.js +0 -11
  508. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +0 -1
  509. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +0 -26
  510. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +0 -1
  511. package/lib/esm/features/store/types/ObjectSchemaEditor.js +0 -103
  512. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +0 -1
  513. package/lib/esm/features/store/types/SelectContentType.js +0 -43
  514. package/lib/esm/features/store/types/SelectContentType.js.map +0 -1
  515. package/lib/esm/features/store/types/SelectContentTypeModal.js +0 -28
  516. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +0 -1
  517. package/lib/esm/features/store/types/TableLayoutEditor.js +0 -78
  518. package/lib/esm/features/store/types/TableLayoutEditor.js.map +0 -1
  519. package/lib/esm/features/store/types/index.js +0 -9
  520. package/lib/esm/features/store/types/index.js.map +0 -1
  521. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +0 -98
  522. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +0 -1
  523. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +0 -15
  524. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +0 -1
  525. package/lib/esm/features/store/types/search/index.js +0 -3
  526. package/lib/esm/features/store/types/search/index.js.map +0 -1
  527. package/lib/esm/features/user/UserAvatar.js +0 -18
  528. package/lib/esm/features/user/UserAvatar.js.map +0 -1
  529. package/lib/esm/features/user/UserInfo.js +0 -121
  530. package/lib/esm/features/user/UserInfo.js.map +0 -1
  531. package/lib/esm/features/user/index.js +0 -3
  532. package/lib/esm/features/user/index.js.map +0 -1
  533. package/lib/esm/features/utils/index.js +0 -6
  534. package/lib/esm/features/utils/index.js.map +0 -1
  535. package/lib/esm/features/utils/mimeType.js +0 -17
  536. package/lib/esm/features/utils/mimeType.js.map +0 -1
  537. package/lib/esm/features/utils/print.js +0 -181
  538. package/lib/esm/features/utils/print.js.map +0 -1
  539. package/lib/esm/features/utils/rendition.js +0 -67
  540. package/lib/esm/features/utils/rendition.js.map +0 -1
  541. package/lib/esm/features/utils/text.js +0 -10
  542. package/lib/esm/features/utils/text.js.map +0 -1
  543. package/lib/esm/features/utils/workflowStatus.js +0 -43
  544. package/lib/esm/features/utils/workflowStatus.js.map +0 -1
  545. package/lib/esm/layout/AppLayout.js +0 -46
  546. package/lib/esm/layout/AppLayout.js.map +0 -1
  547. package/lib/esm/layout/FullHeightLayout.js +0 -18
  548. package/lib/esm/layout/FullHeightLayout.js.map +0 -1
  549. package/lib/esm/layout/Navbar.js +0 -40
  550. package/lib/esm/layout/Navbar.js.map +0 -1
  551. package/lib/esm/layout/Sidebar.js +0 -45
  552. package/lib/esm/layout/Sidebar.js.map +0 -1
  553. package/lib/esm/layout/SidebarContext.js +0 -10
  554. package/lib/esm/layout/SidebarContext.js.map +0 -1
  555. package/lib/esm/layout/TitleBar.js +0 -5
  556. package/lib/esm/layout/TitleBar.js.map +0 -1
  557. package/lib/esm/layout/index.js +0 -7
  558. package/lib/esm/layout/index.js.map +0 -1
  559. package/lib/esm/router/FixLinks.js +0 -23
  560. package/lib/esm/router/FixLinks.js.map +0 -1
  561. package/lib/esm/router/HistoryNavigator.js +0 -192
  562. package/lib/esm/router/HistoryNavigator.js.map +0 -1
  563. package/lib/esm/router/Nav.js +0 -26
  564. package/lib/esm/router/Nav.js.map +0 -1
  565. package/lib/esm/router/NestedNavigationContext.js +0 -19
  566. package/lib/esm/router/NestedNavigationContext.js.map +0 -1
  567. package/lib/esm/router/NestedRouterProvider.js +0 -44
  568. package/lib/esm/router/NestedRouterProvider.js.map +0 -1
  569. package/lib/esm/router/PathMatcher.js +0 -159
  570. package/lib/esm/router/PathMatcher.js.map +0 -1
  571. package/lib/esm/router/PathWithParams.js +0 -34
  572. package/lib/esm/router/PathWithParams.js.map +0 -1
  573. package/lib/esm/router/Route404.js +0 -18
  574. package/lib/esm/router/Route404.js.map +0 -1
  575. package/lib/esm/router/RouteComponent.js +0 -32
  576. package/lib/esm/router/RouteComponent.js.map +0 -1
  577. package/lib/esm/router/Router.js +0 -161
  578. package/lib/esm/router/Router.js.map +0 -1
  579. package/lib/esm/router/RouterProvider.js +0 -41
  580. package/lib/esm/router/RouterProvider.js.map +0 -1
  581. package/lib/esm/router/index.js +0 -11
  582. package/lib/esm/router/index.js.map +0 -1
  583. package/lib/esm/router/path.js +0 -140
  584. package/lib/esm/router/path.js.map +0 -1
  585. package/lib/esm/session/TypeRegistry.js +0 -24
  586. package/lib/esm/session/TypeRegistry.js.map +0 -1
  587. package/lib/esm/session/UserSession.js +0 -192
  588. package/lib/esm/session/UserSession.js.map +0 -1
  589. package/lib/esm/session/UserSessionProvider.js +0 -179
  590. package/lib/esm/session/UserSessionProvider.js.map +0 -1
  591. package/lib/esm/session/auth/composable.js +0 -255
  592. package/lib/esm/session/auth/composable.js.map +0 -1
  593. package/lib/esm/session/auth/firebase.js +0 -158
  594. package/lib/esm/session/auth/firebase.js.map +0 -1
  595. package/lib/esm/session/auth/useAuthState.js +0 -46
  596. package/lib/esm/session/auth/useAuthState.js.map +0 -1
  597. package/lib/esm/session/auth/useCurrentTenant.js +0 -63
  598. package/lib/esm/session/auth/useCurrentTenant.js.map +0 -1
  599. package/lib/esm/session/constants.js +0 -3
  600. package/lib/esm/session/constants.js.map +0 -1
  601. package/lib/esm/session/index.js +0 -8
  602. package/lib/esm/session/index.js.map +0 -1
  603. package/lib/esm/session/useUXTracking.js +0 -29
  604. package/lib/esm/session/useUXTracking.js.map +0 -1
  605. package/lib/esm/shell/SplashScreen.js +0 -26
  606. package/lib/esm/shell/SplashScreen.js.map +0 -1
  607. package/lib/esm/shell/VertesiaShell.js +0 -10
  608. package/lib/esm/shell/VertesiaShell.js.map +0 -1
  609. package/lib/esm/shell/apps/AppInstallationProvider.js +0 -13
  610. package/lib/esm/shell/apps/AppInstallationProvider.js.map +0 -1
  611. package/lib/esm/shell/apps/AppProjectSelector.js +0 -36
  612. package/lib/esm/shell/apps/AppProjectSelector.js.map +0 -1
  613. package/lib/esm/shell/apps/StandaloneApp.js +0 -60
  614. package/lib/esm/shell/apps/StandaloneApp.js.map +0 -1
  615. package/lib/esm/shell/apps/index.js +0 -4
  616. package/lib/esm/shell/apps/index.js.map +0 -1
  617. package/lib/esm/shell/index.js +0 -8
  618. package/lib/esm/shell/index.js.map +0 -1
  619. package/lib/esm/shell/login/EnterpriseSigninButton.js +0 -84
  620. package/lib/esm/shell/login/EnterpriseSigninButton.js.map +0 -1
  621. package/lib/esm/shell/login/GitHubSignInButton.js +0 -24
  622. package/lib/esm/shell/login/GitHubSignInButton.js.map +0 -1
  623. package/lib/esm/shell/login/GoogleSignInButton.js +0 -25
  624. package/lib/esm/shell/login/GoogleSignInButton.js.map +0 -1
  625. package/lib/esm/shell/login/InviteAcceptModal.js +0 -62
  626. package/lib/esm/shell/login/InviteAcceptModal.js.map +0 -1
  627. package/lib/esm/shell/login/MicrosoftSigninButton.js +0 -19
  628. package/lib/esm/shell/login/MicrosoftSigninButton.js.map +0 -1
  629. package/lib/esm/shell/login/PreviewIcon.js +0 -23
  630. package/lib/esm/shell/login/PreviewIcon.js.map +0 -1
  631. package/lib/esm/shell/login/SignInModal.js +0 -9
  632. package/lib/esm/shell/login/SignInModal.js.map +0 -1
  633. package/lib/esm/shell/login/SigninScreen.js +0 -64
  634. package/lib/esm/shell/login/SigninScreen.js.map +0 -1
  635. package/lib/esm/shell/login/SignupForm.js +0 -91
  636. package/lib/esm/shell/login/SignupForm.js.map +0 -1
  637. package/lib/esm/shell/login/TerminalLogin.js +0 -179
  638. package/lib/esm/shell/login/TerminalLogin.js.map +0 -1
  639. package/lib/esm/shell/login/UserInfo.js +0 -41
  640. package/lib/esm/shell/login/UserInfo.js.map +0 -1
  641. package/lib/esm/shell/login/UserSessionMenu.js +0 -37
  642. package/lib/esm/shell/login/UserSessionMenu.js.map +0 -1
  643. package/lib/esm/shell/utils.js +0 -6
  644. package/lib/esm/shell/utils.js.map +0 -1
  645. package/lib/esm/widgets/Progress.js +0 -5
  646. package/lib/esm/widgets/Progress.js.map +0 -1
  647. package/lib/esm/widgets/SvgIcon.js +0 -36
  648. package/lib/esm/widgets/SvgIcon.js.map +0 -1
  649. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js +0 -103
  650. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js.map +0 -1
  651. package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js +0 -33
  652. package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js.map +0 -1
  653. package/lib/esm/widgets/codemirror/MonacoEditor.js +0 -128
  654. package/lib/esm/widgets/codemirror/MonacoEditor.js.map +0 -1
  655. package/lib/esm/widgets/codemirror/index.js +0 -3
  656. package/lib/esm/widgets/codemirror/index.js.map +0 -1
  657. package/lib/esm/widgets/form/Form.js +0 -100
  658. package/lib/esm/widgets/form/Form.js.map +0 -1
  659. package/lib/esm/widgets/form/FormContext.js +0 -31
  660. package/lib/esm/widgets/form/FormContext.js.map +0 -1
  661. package/lib/esm/widgets/form/ManagedObject.js +0 -287
  662. package/lib/esm/widgets/form/ManagedObject.js.map +0 -1
  663. package/lib/esm/widgets/form/fields.js +0 -12
  664. package/lib/esm/widgets/form/fields.js.map +0 -1
  665. package/lib/esm/widgets/form/index.js +0 -7
  666. package/lib/esm/widgets/form/index.js.map +0 -1
  667. package/lib/esm/widgets/form/inputs.js +0 -38
  668. package/lib/esm/widgets/form/inputs.js.map +0 -1
  669. package/lib/esm/widgets/form/schema.js +0 -197
  670. package/lib/esm/widgets/form/schema.js.map +0 -1
  671. package/lib/esm/widgets/index.js +0 -12
  672. package/lib/esm/widgets/index.js.map +0 -1
  673. package/lib/esm/widgets/json-view/JSONCode.js +0 -157
  674. package/lib/esm/widgets/json-view/JSONCode.js.map +0 -1
  675. package/lib/esm/widgets/json-view/JSONDisplay.js +0 -10
  676. package/lib/esm/widgets/json-view/JSONDisplay.js.map +0 -1
  677. package/lib/esm/widgets/json-view/JSONView.js +0 -106
  678. package/lib/esm/widgets/json-view/JSONView.js.map +0 -1
  679. package/lib/esm/widgets/json-view/index.js +0 -4
  680. package/lib/esm/widgets/json-view/index.js.map +0 -1
  681. package/lib/esm/widgets/json-view/types.js +0 -2
  682. package/lib/esm/widgets/json-view/types.js.map +0 -1
  683. package/lib/esm/widgets/markdown/MarkdownRenderer.js +0 -246
  684. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +0 -1
  685. package/lib/esm/widgets/markdown/index.js +0 -2
  686. package/lib/esm/widgets/markdown/index.js.map +0 -1
  687. package/lib/esm/widgets/popover/Popover.js +0 -73
  688. package/lib/esm/widgets/popover/Popover.js.map +0 -1
  689. package/lib/esm/widgets/popover/context.js +0 -7
  690. package/lib/esm/widgets/popover/context.js.map +0 -1
  691. package/lib/esm/widgets/popover/index.js +0 -3
  692. package/lib/esm/widgets/popover/index.js.map +0 -1
  693. package/lib/esm/widgets/popover/slots.js +0 -22
  694. package/lib/esm/widgets/popover/slots.js.map +0 -1
  695. package/lib/esm/widgets/properties/PropertiesView.js +0 -8
  696. package/lib/esm/widgets/properties/PropertiesView.js.map +0 -1
  697. package/lib/esm/widgets/properties/index.js +0 -2
  698. package/lib/esm/widgets/properties/index.js.map +0 -1
  699. package/lib/esm/widgets/schema-editor/ManagedSchema.js +0 -300
  700. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +0 -1
  701. package/lib/esm/widgets/schema-editor/editor/Editable.js +0 -110
  702. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +0 -1
  703. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js +0 -8
  704. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js.map +0 -1
  705. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +0 -81
  706. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +0 -1
  707. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +0 -7
  708. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +0 -1
  709. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js +0 -9
  710. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js.map +0 -1
  711. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +0 -84
  712. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +0 -1
  713. package/lib/esm/widgets/schema-editor/index.js +0 -7
  714. package/lib/esm/widgets/schema-editor/index.js.map +0 -1
  715. package/lib/esm/widgets/schema-editor/json-schema4-utils.js +0 -188
  716. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +0 -1
  717. package/lib/esm/widgets/schema-editor/type-signature.js +0 -30
  718. package/lib/esm/widgets/schema-editor/type-signature.js.map +0 -1
  719. package/lib/esm/widgets/upload/DropZone.js +0 -175
  720. package/lib/esm/widgets/upload/DropZone.js.map +0 -1
  721. package/lib/esm/widgets/upload/UploadResultCategory.js +0 -19
  722. package/lib/esm/widgets/upload/UploadResultCategory.js.map +0 -1
  723. package/lib/esm/widgets/upload/UploadSummary.js +0 -30
  724. package/lib/esm/widgets/upload/UploadSummary.js.map +0 -1
  725. package/lib/esm/widgets/upload/index.js +0 -4
  726. package/lib/esm/widgets/upload/index.js.map +0 -1
  727. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js +0 -11
  728. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js.map +0 -1
  729. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js +0 -8
  730. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js.map +0 -1
  731. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js +0 -11
  732. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js.map +0 -1
  733. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js +0 -11
  734. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js.map +0 -1
  735. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js +0 -9
  736. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js.map +0 -1
  737. package/lib/esm/widgets/xml-viewer/components/Elements/index.js +0 -36
  738. package/lib/esm/widgets/xml-viewer/components/Elements/index.js.map +0 -1
  739. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js +0 -5
  740. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js.map +0 -1
  741. package/lib/esm/widgets/xml-viewer/components/Tag/index.js +0 -13
  742. package/lib/esm/widgets/xml-viewer/components/Tag/index.js.map +0 -1
  743. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js +0 -13
  744. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js.map +0 -1
  745. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js +0 -39
  746. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +0 -1
  747. package/lib/esm/widgets/xml-viewer/components/types.js +0 -2
  748. package/lib/esm/widgets/xml-viewer/components/types.js.map +0 -1
  749. package/lib/esm/widgets/xml-viewer/constants/index.js +0 -27
  750. package/lib/esm/widgets/xml-viewer/constants/index.js.map +0 -1
  751. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js +0 -10
  752. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js.map +0 -1
  753. package/lib/esm/widgets/xml-viewer/helpers/index.js +0 -40
  754. package/lib/esm/widgets/xml-viewer/helpers/index.js.map +0 -1
  755. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js +0 -22
  756. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js.map +0 -1
  757. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js +0 -31
  758. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js.map +0 -1
  759. package/lib/esm/widgets/xml-viewer/index.js +0 -3
  760. package/lib/esm/widgets/xml-viewer/index.js.map +0 -1
  761. package/lib/esm/widgets/xml-viewer/types/index.js +0 -2
  762. package/lib/esm/widgets/xml-viewer/types/index.js.map +0 -1
  763. package/lib/tsconfig.tsbuildinfo +0 -1
  764. package/lib/types/core/components/Avatar.d.ts +0 -16
  765. package/lib/types/core/components/Avatar.d.ts.map +0 -1
  766. package/lib/types/core/components/Badge.d.ts +0 -21
  767. package/lib/types/core/components/Badge.d.ts.map +0 -1
  768. package/lib/types/core/components/Button.d.ts +0 -14
  769. package/lib/types/core/components/Button.d.ts.map +0 -1
  770. package/lib/types/core/components/Center.d.ts +0 -8
  771. package/lib/types/core/components/Center.d.ts.map +0 -1
  772. package/lib/types/core/components/ComboBox.d.ts +0 -124
  773. package/lib/types/core/components/ComboBox.d.ts.map +0 -1
  774. package/lib/types/core/components/ConfirmModal.d.ts +0 -11
  775. package/lib/types/core/components/ConfirmModal.d.ts.map +0 -1
  776. package/lib/types/core/components/DeleteModal.d.ts +0 -11
  777. package/lib/types/core/components/DeleteModal.d.ts.map +0 -1
  778. package/lib/types/core/components/Divider.d.ts +0 -6
  779. package/lib/types/core/components/Divider.d.ts.map +0 -1
  780. package/lib/types/core/components/Dropdown.d.ts +0 -15
  781. package/lib/types/core/components/Dropdown.d.ts.map +0 -1
  782. package/lib/types/core/components/DropdownList.d.ts +0 -13
  783. package/lib/types/core/components/DropdownList.d.ts.map +0 -1
  784. package/lib/types/core/components/EmptyCollection.d.ts +0 -9
  785. package/lib/types/core/components/EmptyCollection.d.ts.map +0 -1
  786. package/lib/types/core/components/FileUpload.d.ts +0 -29
  787. package/lib/types/core/components/FileUpload.d.ts.map +0 -1
  788. package/lib/types/core/components/FormItem.d.ts +0 -13
  789. package/lib/types/core/components/FormItem.d.ts.map +0 -1
  790. package/lib/types/core/components/InputList.d.ts +0 -12
  791. package/lib/types/core/components/InputList.d.ts.map +0 -1
  792. package/lib/types/core/components/Link.d.ts +0 -7
  793. package/lib/types/core/components/Link.d.ts.map +0 -1
  794. package/lib/types/core/components/MenuList.d.ts +0 -14
  795. package/lib/types/core/components/MenuList.d.ts.map +0 -1
  796. package/lib/types/core/components/MessageBox.d.ts +0 -36
  797. package/lib/types/core/components/MessageBox.d.ts.map +0 -1
  798. package/lib/types/core/components/Modal.d.ts +0 -30
  799. package/lib/types/core/components/Modal.d.ts.map +0 -1
  800. package/lib/types/core/components/NumberInput.d.ts +0 -16
  801. package/lib/types/core/components/NumberInput.d.ts.map +0 -1
  802. package/lib/types/core/components/Overlay.d.ts +0 -25
  803. package/lib/types/core/components/Overlay.d.ts.map +0 -1
  804. package/lib/types/core/components/Panel.d.ts +0 -11
  805. package/lib/types/core/components/Panel.d.ts.map +0 -1
  806. package/lib/types/core/components/Portal.d.ts +0 -6
  807. package/lib/types/core/components/Portal.d.ts.map +0 -1
  808. package/lib/types/core/components/RadioGroup.d.ts +0 -26
  809. package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
  810. package/lib/types/core/components/SelectBox.d.ts +0 -36
  811. package/lib/types/core/components/SelectBox.d.ts.map +0 -1
  812. package/lib/types/core/components/SelectList.d.ts +0 -19
  813. package/lib/types/core/components/SelectList.d.ts.map +0 -1
  814. package/lib/types/core/components/SelectStack.d.ts +0 -13
  815. package/lib/types/core/components/SelectStack.d.ts.map +0 -1
  816. package/lib/types/core/components/SidePanel.d.ts +0 -11
  817. package/lib/types/core/components/SidePanel.d.ts.map +0 -1
  818. package/lib/types/core/components/Spinner.d.ts +0 -7
  819. package/lib/types/core/components/Spinner.d.ts.map +0 -1
  820. package/lib/types/core/components/Switch.d.ts +0 -11
  821. package/lib/types/core/components/Switch.d.ts.map +0 -1
  822. package/lib/types/core/components/TagsInput.d.ts +0 -16
  823. package/lib/types/core/components/TagsInput.d.ts.map +0 -1
  824. package/lib/types/core/components/index.d.ts +0 -40
  825. package/lib/types/core/components/index.d.ts.map +0 -1
  826. package/lib/types/core/components/libs/utils.d.ts +0 -3
  827. package/lib/types/core/components/libs/utils.d.ts.map +0 -1
  828. package/lib/types/core/components/libs/visuallyHidden.d.ts +0 -7
  829. package/lib/types/core/components/libs/visuallyHidden.d.ts.map +0 -1
  830. package/lib/types/core/components/popup/Popup.d.ts +0 -26
  831. package/lib/types/core/components/popup/Popup.d.ts.map +0 -1
  832. package/lib/types/core/components/popup/PopupController.d.ts +0 -41
  833. package/lib/types/core/components/popup/PopupController.d.ts.map +0 -1
  834. package/lib/types/core/components/popup/index.d.ts +0 -4
  835. package/lib/types/core/components/popup/index.d.ts.map +0 -1
  836. package/lib/types/core/components/popup/position.d.ts +0 -59
  837. package/lib/types/core/components/popup/position.d.ts.map +0 -1
  838. package/lib/types/core/components/popup/utils.d.ts +0 -30
  839. package/lib/types/core/components/popup/utils.d.ts.map +0 -1
  840. package/lib/types/core/components/shadcn/breadcrumb.d.ts +0 -15
  841. package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +0 -1
  842. package/lib/types/core/components/shadcn/button.d.ts +0 -27
  843. package/lib/types/core/components/shadcn/button.d.ts.map +0 -1
  844. package/lib/types/core/components/shadcn/calendar.d.ts +0 -11
  845. package/lib/types/core/components/shadcn/calendar.d.ts.map +0 -1
  846. package/lib/types/core/components/shadcn/card.d.ts +0 -9
  847. package/lib/types/core/components/shadcn/card.d.ts.map +0 -1
  848. package/lib/types/core/components/shadcn/checkbox.d.ts +0 -5
  849. package/lib/types/core/components/shadcn/checkbox.d.ts.map +0 -1
  850. package/lib/types/core/components/shadcn/command.d.ts +0 -17
  851. package/lib/types/core/components/shadcn/command.d.ts.map +0 -1
  852. package/lib/types/core/components/shadcn/dialog.d.ts +0 -38
  853. package/lib/types/core/components/shadcn/dialog.d.ts.map +0 -1
  854. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +0 -9
  855. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts.map +0 -1
  856. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts +0 -7
  857. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts.map +0 -1
  858. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts +0 -6
  859. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +0 -1
  860. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts +0 -9
  861. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +0 -1
  862. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts +0 -6
  863. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts.map +0 -1
  864. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts +0 -6
  865. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts.map +0 -1
  866. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts +0 -5
  867. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts.map +0 -1
  868. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts +0 -12
  869. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts.map +0 -1
  870. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts +0 -11
  871. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts.map +0 -1
  872. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts +0 -13
  873. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts.map +0 -1
  874. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts +0 -14
  875. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +0 -1
  876. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts +0 -2
  877. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts.map +0 -1
  878. package/lib/types/core/components/shadcn/filters/filterBar.d.ts +0 -20
  879. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +0 -1
  880. package/lib/types/core/components/shadcn/filters/filters.d.ts +0 -10
  881. package/lib/types/core/components/shadcn/filters/filters.d.ts.map +0 -1
  882. package/lib/types/core/components/shadcn/filters/index.d.ts +0 -6
  883. package/lib/types/core/components/shadcn/filters/index.d.ts.map +0 -1
  884. package/lib/types/core/components/shadcn/filters/types.d.ts +0 -35
  885. package/lib/types/core/components/shadcn/filters/types.d.ts.map +0 -1
  886. package/lib/types/core/components/shadcn/heading.d.ts +0 -6
  887. package/lib/types/core/components/shadcn/heading.d.ts.map +0 -1
  888. package/lib/types/core/components/shadcn/index.d.ts +0 -23
  889. package/lib/types/core/components/shadcn/index.d.ts.map +0 -1
  890. package/lib/types/core/components/shadcn/input.d.ts +0 -17
  891. package/lib/types/core/components/shadcn/input.d.ts.map +0 -1
  892. package/lib/types/core/components/shadcn/label.d.ts +0 -8
  893. package/lib/types/core/components/shadcn/label.d.ts.map +0 -1
  894. package/lib/types/core/components/shadcn/popover.d.ts +0 -24
  895. package/lib/types/core/components/shadcn/popover.d.ts.map +0 -1
  896. package/lib/types/core/components/shadcn/resizeable.d.ts +0 -9
  897. package/lib/types/core/components/shadcn/resizeable.d.ts.map +0 -1
  898. package/lib/types/core/components/shadcn/selectBox.d.ts +0 -36
  899. package/lib/types/core/components/shadcn/selectBox.d.ts.map +0 -1
  900. package/lib/types/core/components/shadcn/separator.d.ts +0 -5
  901. package/lib/types/core/components/shadcn/separator.d.ts.map +0 -1
  902. package/lib/types/core/components/shadcn/tabs.d.ts +0 -33
  903. package/lib/types/core/components/shadcn/tabs.d.ts.map +0 -1
  904. package/lib/types/core/components/shadcn/text.d.ts +0 -11
  905. package/lib/types/core/components/shadcn/text.d.ts.map +0 -1
  906. package/lib/types/core/components/shadcn/textarea.d.ts +0 -4
  907. package/lib/types/core/components/shadcn/textarea.d.ts.map +0 -1
  908. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts +0 -15
  909. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts.map +0 -1
  910. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +0 -10
  911. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +0 -1
  912. package/lib/types/core/components/shadcn/tooltip.d.ts +0 -20
  913. package/lib/types/core/components/shadcn/tooltip.d.ts.map +0 -1
  914. package/lib/types/core/components/styles.d.ts +0 -7
  915. package/lib/types/core/components/styles.d.ts.map +0 -1
  916. package/lib/types/core/components/table/index.d.ts +0 -19
  917. package/lib/types/core/components/table/index.d.ts.map +0 -1
  918. package/lib/types/core/components/tabs/Tabs.d.ts +0 -25
  919. package/lib/types/core/components/tabs/Tabs.d.ts.map +0 -1
  920. package/lib/types/core/components/tabs/TabsContext.d.ts +0 -17
  921. package/lib/types/core/components/tabs/TabsContext.d.ts.map +0 -1
  922. package/lib/types/core/components/tabs/index.d.ts +0 -3
  923. package/lib/types/core/components/tabs/index.d.ts.map +0 -1
  924. package/lib/types/core/components/toast/NotificationPanel.d.ts +0 -8
  925. package/lib/types/core/components/toast/NotificationPanel.d.ts.map +0 -1
  926. package/lib/types/core/components/toast/ToastContext.d.ts +0 -6
  927. package/lib/types/core/components/toast/ToastContext.d.ts.map +0 -1
  928. package/lib/types/core/components/toast/ToastProps.d.ts +0 -7
  929. package/lib/types/core/components/toast/ToastProps.d.ts.map +0 -1
  930. package/lib/types/core/components/toast/ToastProvider.d.ts +0 -6
  931. package/lib/types/core/components/toast/ToastProvider.d.ts.map +0 -1
  932. package/lib/types/core/components/toast/index.d.ts +0 -3
  933. package/lib/types/core/components/toast/index.d.ts.map +0 -1
  934. package/lib/types/core/hooks/CompositeState.d.ts +0 -137
  935. package/lib/types/core/hooks/CompositeState.d.ts.map +0 -1
  936. package/lib/types/core/hooks/PortalContainerProvider.d.ts +0 -7
  937. package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +0 -1
  938. package/lib/types/core/hooks/SharedState.d.ts +0 -10
  939. package/lib/types/core/hooks/SharedState.d.ts.map +0 -1
  940. package/lib/types/core/hooks/index.d.ts +0 -16
  941. package/lib/types/core/hooks/index.d.ts.map +0 -1
  942. package/lib/types/core/hooks/useClickOutside.d.ts +0 -8
  943. package/lib/types/core/hooks/useClickOutside.d.ts.map +0 -1
  944. package/lib/types/core/hooks/useCopyToClipboard.d.ts +0 -5
  945. package/lib/types/core/hooks/useCopyToClipboard.d.ts.map +0 -1
  946. package/lib/types/core/hooks/useDarkMode.d.ts +0 -2
  947. package/lib/types/core/hooks/useDarkMode.d.ts.map +0 -1
  948. package/lib/types/core/hooks/useDebounce.d.ts +0 -2
  949. package/lib/types/core/hooks/useDebounce.d.ts.map +0 -1
  950. package/lib/types/core/hooks/useEventSource.d.ts +0 -2
  951. package/lib/types/core/hooks/useEventSource.d.ts.map +0 -1
  952. package/lib/types/core/hooks/useFetch.d.ts +0 -24
  953. package/lib/types/core/hooks/useFetch.d.ts.map +0 -1
  954. package/lib/types/core/hooks/useFlag.d.ts +0 -9
  955. package/lib/types/core/hooks/useFlag.d.ts.map +0 -1
  956. package/lib/types/core/hooks/useIntersectionObserver.d.ts +0 -14
  957. package/lib/types/core/hooks/useIntersectionObserver.d.ts.map +0 -1
  958. package/lib/types/core/hooks/useIsFistRendering.d.ts +0 -2
  959. package/lib/types/core/hooks/useIsFistRendering.d.ts.map +0 -1
  960. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts +0 -4
  961. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts.map +0 -1
  962. package/lib/types/core/hooks/useScrollableSearch.d.ts +0 -82
  963. package/lib/types/core/hooks/useScrollableSearch.d.ts.map +0 -1
  964. package/lib/types/core/hooks/useSharedValue.d.ts +0 -12
  965. package/lib/types/core/hooks/useSharedValue.d.ts.map +0 -1
  966. package/lib/types/core/index.d.ts +0 -4
  967. package/lib/types/core/index.d.ts.map +0 -1
  968. package/lib/types/core/utils/cn.d.ts +0 -3
  969. package/lib/types/core/utils/cn.d.ts.map +0 -1
  970. package/lib/types/core/utils/index.d.ts +0 -2
  971. package/lib/types/core/utils/index.d.ts.map +0 -1
  972. package/lib/types/env/index.d.ts +0 -76
  973. package/lib/types/env/index.d.ts.map +0 -1
  974. package/lib/types/features/activity-doc/ActivityDoc.d.ts +0 -14
  975. package/lib/types/features/activity-doc/ActivityDoc.d.ts.map +0 -1
  976. package/lib/types/features/activity-doc/index.d.ts +0 -2
  977. package/lib/types/features/activity-doc/index.d.ts.map +0 -1
  978. package/lib/types/features/agent/PayloadBuilder.d.ts +0 -65
  979. package/lib/types/features/agent/PayloadBuilder.d.ts.map +0 -1
  980. package/lib/types/features/agent/chat/AgentChart.d.ts +0 -48
  981. package/lib/types/features/agent/chat/AgentChart.d.ts.map +0 -1
  982. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +0 -38
  983. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts.map +0 -1
  984. package/lib/types/features/agent/chat/JumpingDots.d.ts +0 -7
  985. package/lib/types/features/agent/chat/JumpingDots.d.ts.map +0 -1
  986. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +0 -25
  987. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +0 -1
  988. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +0 -23
  989. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +0 -1
  990. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +0 -20
  991. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +0 -1
  992. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +0 -11
  993. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts.map +0 -1
  994. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +0 -18
  995. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +0 -1
  996. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +0 -11
  997. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +0 -1
  998. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +0 -8
  999. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +0 -1
  1000. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +0 -10
  1001. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts.map +0 -1
  1002. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +0 -9
  1003. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +0 -1
  1004. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +0 -11
  1005. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts.map +0 -1
  1006. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +0 -8
  1007. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts.map +0 -1
  1008. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +0 -10
  1009. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +0 -1
  1010. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +0 -8
  1011. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts.map +0 -1
  1012. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +0 -22
  1013. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +0 -1
  1014. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +0 -25
  1015. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +0 -1
  1016. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +0 -18
  1017. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +0 -1
  1018. package/lib/types/features/agent/chat/WaitingMessages.d.ts +0 -2
  1019. package/lib/types/features/agent/chat/WaitingMessages.d.ts.map +0 -1
  1020. package/lib/types/features/agent/chat/index.d.ts +0 -6
  1021. package/lib/types/features/agent/chat/index.d.ts.map +0 -1
  1022. package/lib/types/features/agent/createChartTool.d.ts +0 -178
  1023. package/lib/types/features/agent/createChartTool.d.ts.map +0 -1
  1024. package/lib/types/features/agent/examples.d.ts +0 -59
  1025. package/lib/types/features/agent/examples.d.ts.map +0 -1
  1026. package/lib/types/features/agent/index.d.ts +0 -5
  1027. package/lib/types/features/agent/index.d.ts.map +0 -1
  1028. package/lib/types/features/agent/visualization.d.ts +0 -95
  1029. package/lib/types/features/agent/visualization.d.ts.map +0 -1
  1030. package/lib/types/features/errors/PanelErrorBoundary.d.ts +0 -5
  1031. package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +0 -1
  1032. package/lib/types/features/errors/RowErrorBoundary.d.ts +0 -8
  1033. package/lib/types/features/errors/RowErrorBoundary.d.ts.map +0 -1
  1034. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +0 -12
  1035. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts.map +0 -1
  1036. package/lib/types/features/errors/WidgetErrorBoundary.d.ts +0 -5
  1037. package/lib/types/features/errors/WidgetErrorBoundary.d.ts.map +0 -1
  1038. package/lib/types/features/errors/index.d.ts +0 -5
  1039. package/lib/types/features/errors/index.d.ts.map +0 -1
  1040. package/lib/types/features/facets/CollectionsFacetsNav.d.ts +0 -14
  1041. package/lib/types/features/facets/CollectionsFacetsNav.d.ts.map +0 -1
  1042. package/lib/types/features/facets/DocumentsFacetsNav.d.ts +0 -17
  1043. package/lib/types/features/facets/DocumentsFacetsNav.d.ts.map +0 -1
  1044. package/lib/types/features/facets/EnvironmentFacet.d.ts +0 -10
  1045. package/lib/types/features/facets/EnvironmentFacet.d.ts.map +0 -1
  1046. package/lib/types/features/facets/InteractionsFacetsNav.d.ts +0 -14
  1047. package/lib/types/features/facets/InteractionsFacetsNav.d.ts.map +0 -1
  1048. package/lib/types/features/facets/PromptsFacetsNav.d.ts +0 -15
  1049. package/lib/types/features/facets/PromptsFacetsNav.d.ts.map +0 -1
  1050. package/lib/types/features/facets/RunsFacetsNav.d.ts +0 -20
  1051. package/lib/types/features/facets/RunsFacetsNav.d.ts.map +0 -1
  1052. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts +0 -14
  1053. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts.map +0 -1
  1054. package/lib/types/features/facets/index.d.ts +0 -15
  1055. package/lib/types/features/facets/index.d.ts.map +0 -1
  1056. package/lib/types/features/facets/utils/SearchInterface.d.ts +0 -14
  1057. package/lib/types/features/facets/utils/SearchInterface.d.ts.map +0 -1
  1058. package/lib/types/features/facets/utils/StringFacet.d.ts +0 -11
  1059. package/lib/types/features/facets/utils/StringFacet.d.ts.map +0 -1
  1060. package/lib/types/features/facets/utils/StringListFacet.d.ts +0 -11
  1061. package/lib/types/features/facets/utils/StringListFacet.d.ts.map +0 -1
  1062. package/lib/types/features/facets/utils/TypeFacet.d.ts +0 -16
  1063. package/lib/types/features/facets/utils/TypeFacet.d.ts.map +0 -1
  1064. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts +0 -12
  1065. package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts.map +0 -1
  1066. package/lib/types/features/facets/utils/VInteractionFacet.d.ts +0 -15
  1067. package/lib/types/features/facets/utils/VInteractionFacet.d.ts.map +0 -1
  1068. package/lib/types/features/facets/utils/VStringFacet.d.ts +0 -21
  1069. package/lib/types/features/facets/utils/VStringFacet.d.ts.map +0 -1
  1070. package/lib/types/features/facets/utils/VTypeFacet.d.ts +0 -12
  1071. package/lib/types/features/facets/utils/VTypeFacet.d.ts.map +0 -1
  1072. package/lib/types/features/facets/utils/VUserFacet.d.ts +0 -11
  1073. package/lib/types/features/facets/utils/VUserFacet.d.ts.map +0 -1
  1074. package/lib/types/features/facets/utils/utils.d.ts +0 -4
  1075. package/lib/types/features/facets/utils/utils.d.ts.map +0 -1
  1076. package/lib/types/features/index.d.ts +0 -12
  1077. package/lib/types/features/index.d.ts.map +0 -1
  1078. package/lib/types/features/layout/GenericPageNavHeader.d.ts +0 -14
  1079. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +0 -1
  1080. package/lib/types/features/layout/NotFoundView.d.ts +0 -5
  1081. package/lib/types/features/layout/NotFoundView.d.ts.map +0 -1
  1082. package/lib/types/features/layout/index.d.ts +0 -3
  1083. package/lib/types/features/layout/index.d.ts.map +0 -1
  1084. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts +0 -13
  1085. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +0 -1
  1086. package/lib/types/features/magic-pdf/DownloadPopover.d.ts +0 -7
  1087. package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +0 -1
  1088. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts +0 -8
  1089. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts.map +0 -1
  1090. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts +0 -58
  1091. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts.map +0 -1
  1092. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +0 -7
  1093. package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +0 -1
  1094. package/lib/types/features/magic-pdf/index.d.ts +0 -2
  1095. package/lib/types/features/magic-pdf/index.d.ts.map +0 -1
  1096. package/lib/types/features/magic-pdf/types.d.ts +0 -2
  1097. package/lib/types/features/magic-pdf/types.d.ts.map +0 -1
  1098. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts +0 -83
  1099. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts.map +0 -1
  1100. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts +0 -29
  1101. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +0 -1
  1102. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts +0 -19
  1103. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +0 -1
  1104. package/lib/types/features/pdf-viewer/index.d.ts +0 -4
  1105. package/lib/types/features/pdf-viewer/index.d.ts.map +0 -1
  1106. package/lib/types/features/permissions/SecureButton.d.ts +0 -8
  1107. package/lib/types/features/permissions/SecureButton.d.ts.map +0 -1
  1108. package/lib/types/features/permissions/SecureSidebarItem.d.ts +0 -8
  1109. package/lib/types/features/permissions/SecureSidebarItem.d.ts.map +0 -1
  1110. package/lib/types/features/permissions/UserPermissionsProvider.d.ts +0 -21
  1111. package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +0 -1
  1112. package/lib/types/features/permissions/helpers.d.ts +0 -5
  1113. package/lib/types/features/permissions/helpers.d.ts.map +0 -1
  1114. package/lib/types/features/permissions/index.d.ts +0 -5
  1115. package/lib/types/features/permissions/index.d.ts.map +0 -1
  1116. package/lib/types/features/store/collections/BrowseCollectionView.d.ts +0 -7
  1117. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +0 -1
  1118. package/lib/types/features/store/collections/CollectionsTable.d.ts +0 -6
  1119. package/lib/types/features/store/collections/CollectionsTable.d.ts.map +0 -1
  1120. package/lib/types/features/store/collections/CreateCollection.d.ts +0 -13
  1121. package/lib/types/features/store/collections/CreateCollection.d.ts.map +0 -1
  1122. package/lib/types/features/store/collections/EditCollectionView.d.ts +0 -8
  1123. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +0 -1
  1124. package/lib/types/features/store/collections/SelectCollection.d.ts +0 -20
  1125. package/lib/types/features/store/collections/SelectCollection.d.ts.map +0 -1
  1126. package/lib/types/features/store/collections/SharedPropsEditor.d.ts +0 -7
  1127. package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +0 -1
  1128. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts +0 -7
  1129. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +0 -1
  1130. package/lib/types/features/store/collections/index.d.ts +0 -8
  1131. package/lib/types/features/store/collections/index.d.ts.map +0 -1
  1132. package/lib/types/features/store/index.d.ts +0 -4
  1133. package/lib/types/features/store/index.d.ts.map +0 -1
  1134. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +0 -8
  1135. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +0 -1
  1136. package/lib/types/features/store/objects/DocumentSearchResults.d.ts +0 -20
  1137. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +0 -1
  1138. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +0 -33
  1139. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts.map +0 -1
  1140. package/lib/types/features/store/objects/DocumentTable.d.ts +0 -25
  1141. package/lib/types/features/store/objects/DocumentTable.d.ts.map +0 -1
  1142. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +0 -12
  1143. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +0 -1
  1144. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +0 -9
  1145. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +0 -1
  1146. package/lib/types/features/store/objects/components/ContentOverview.d.ts +0 -9
  1147. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +0 -1
  1148. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +0 -18
  1149. package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +0 -1
  1150. package/lib/types/features/store/objects/components/DocumentInput.d.ts +0 -8
  1151. package/lib/types/features/store/objects/components/DocumentInput.d.ts.map +0 -1
  1152. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +0 -9
  1153. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +0 -1
  1154. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +0 -9
  1155. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +0 -1
  1156. package/lib/types/features/store/objects/components/SelectDocument.d.ts +0 -9
  1157. package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +0 -1
  1158. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +0 -9
  1159. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts.map +0 -1
  1160. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +0 -12
  1161. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +0 -1
  1162. package/lib/types/features/store/objects/components/index.d.ts +0 -10
  1163. package/lib/types/features/store/objects/components/index.d.ts.map +0 -1
  1164. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts +0 -30
  1165. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +0 -1
  1166. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +0 -4
  1167. package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +0 -1
  1168. package/lib/types/features/store/objects/index.d.ts +0 -11
  1169. package/lib/types/features/store/objects/index.d.ts.map +0 -1
  1170. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +0 -18
  1171. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +0 -1
  1172. package/lib/types/features/store/objects/layout/documentLayout.d.ts +0 -20
  1173. package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +0 -1
  1174. package/lib/types/features/store/objects/layout/index.d.ts +0 -3
  1175. package/lib/types/features/store/objects/layout/index.d.ts.map +0 -1
  1176. package/lib/types/features/store/objects/layout/renderers.d.ts +0 -3
  1177. package/lib/types/features/store/objects/layout/renderers.d.ts.map +0 -1
  1178. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +0 -52
  1179. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +0 -1
  1180. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +0 -14
  1181. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +0 -1
  1182. package/lib/types/features/store/objects/search/index.d.ts +0 -3
  1183. package/lib/types/features/store/objects/search/index.d.ts.map +0 -1
  1184. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +0 -26
  1185. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +0 -1
  1186. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +0 -28
  1187. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +0 -1
  1188. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +0 -6
  1189. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +0 -1
  1190. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +0 -4
  1191. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +0 -1
  1192. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +0 -4
  1193. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +0 -1
  1194. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +0 -16
  1195. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +0 -1
  1196. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +0 -5
  1197. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +0 -1
  1198. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +0 -4
  1199. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +0 -1
  1200. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +0 -4
  1201. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +0 -1
  1202. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +0 -4
  1203. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +0 -1
  1204. package/lib/types/features/store/objects/selection/actions/index.d.ts +0 -8
  1205. package/lib/types/features/store/objects/selection/actions/index.d.ts.map +0 -1
  1206. package/lib/types/features/store/objects/selection/index.d.ts +0 -5
  1207. package/lib/types/features/store/objects/selection/index.d.ts.map +0 -1
  1208. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +0 -39
  1209. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +0 -1
  1210. package/lib/types/features/store/objects/upload/index.d.ts +0 -4
  1211. package/lib/types/features/store/objects/upload/index.d.ts.map +0 -1
  1212. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +0 -30
  1213. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +0 -1
  1214. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +0 -50
  1215. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +0 -1
  1216. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +0 -6
  1217. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +0 -1
  1218. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +0 -8
  1219. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +0 -1
  1220. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +0 -15
  1221. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +0 -1
  1222. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +0 -8
  1223. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +0 -1
  1224. package/lib/types/features/store/types/SelectContentType.d.ts +0 -11
  1225. package/lib/types/features/store/types/SelectContentType.d.ts.map +0 -1
  1226. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +0 -33
  1227. package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +0 -1
  1228. package/lib/types/features/store/types/TableLayoutEditor.d.ts +0 -9
  1229. package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +0 -1
  1230. package/lib/types/features/store/types/index.d.ts +0 -9
  1231. package/lib/types/features/store/types/index.d.ts.map +0 -1
  1232. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +0 -36
  1233. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts.map +0 -1
  1234. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +0 -11
  1235. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts.map +0 -1
  1236. package/lib/types/features/store/types/search/index.d.ts +0 -3
  1237. package/lib/types/features/store/types/search/index.d.ts.map +0 -1
  1238. package/lib/types/features/user/UserAvatar.d.ts +0 -9
  1239. package/lib/types/features/user/UserAvatar.d.ts.map +0 -1
  1240. package/lib/types/features/user/UserInfo.d.ts +0 -48
  1241. package/lib/types/features/user/UserInfo.d.ts.map +0 -1
  1242. package/lib/types/features/user/index.d.ts +0 -3
  1243. package/lib/types/features/user/index.d.ts.map +0 -1
  1244. package/lib/types/features/utils/index.d.ts +0 -6
  1245. package/lib/types/features/utils/index.d.ts.map +0 -1
  1246. package/lib/types/features/utils/mimeType.d.ts +0 -6
  1247. package/lib/types/features/utils/mimeType.d.ts.map +0 -1
  1248. package/lib/types/features/utils/print.d.ts +0 -10
  1249. package/lib/types/features/utils/print.d.ts.map +0 -1
  1250. package/lib/types/features/utils/rendition.d.ts +0 -4
  1251. package/lib/types/features/utils/rendition.d.ts.map +0 -1
  1252. package/lib/types/features/utils/text.d.ts +0 -3
  1253. package/lib/types/features/utils/text.d.ts.map +0 -1
  1254. package/lib/types/features/utils/workflowStatus.d.ts +0 -10
  1255. package/lib/types/features/utils/workflowStatus.d.ts.map +0 -1
  1256. package/lib/types/layout/AppLayout.d.ts +0 -13
  1257. package/lib/types/layout/AppLayout.d.ts.map +0 -1
  1258. package/lib/types/layout/FullHeightLayout.d.ts +0 -27
  1259. package/lib/types/layout/FullHeightLayout.d.ts.map +0 -1
  1260. package/lib/types/layout/Navbar.d.ts +0 -33
  1261. package/lib/types/layout/Navbar.d.ts.map +0 -1
  1262. package/lib/types/layout/Sidebar.d.ts +0 -31
  1263. package/lib/types/layout/Sidebar.d.ts.map +0 -1
  1264. package/lib/types/layout/SidebarContext.d.ts +0 -9
  1265. package/lib/types/layout/SidebarContext.d.ts.map +0 -1
  1266. package/lib/types/layout/TitleBar.d.ts +0 -6
  1267. package/lib/types/layout/TitleBar.d.ts.map +0 -1
  1268. package/lib/types/layout/index.d.ts +0 -7
  1269. package/lib/types/layout/index.d.ts.map +0 -1
  1270. package/lib/types/router/FixLinks.d.ts +0 -7
  1271. package/lib/types/router/FixLinks.d.ts.map +0 -1
  1272. package/lib/types/router/HistoryNavigator.d.ts +0 -59
  1273. package/lib/types/router/HistoryNavigator.d.ts.map +0 -1
  1274. package/lib/types/router/Nav.d.ts +0 -30
  1275. package/lib/types/router/Nav.d.ts.map +0 -1
  1276. package/lib/types/router/NestedNavigationContext.d.ts +0 -9
  1277. package/lib/types/router/NestedNavigationContext.d.ts.map +0 -1
  1278. package/lib/types/router/NestedRouterProvider.d.ts +0 -14
  1279. package/lib/types/router/NestedRouterProvider.d.ts.map +0 -1
  1280. package/lib/types/router/PathMatcher.d.ts +0 -36
  1281. package/lib/types/router/PathMatcher.d.ts.map +0 -1
  1282. package/lib/types/router/PathWithParams.d.ts +0 -9
  1283. package/lib/types/router/PathWithParams.d.ts.map +0 -1
  1284. package/lib/types/router/Route404.d.ts +0 -4
  1285. package/lib/types/router/Route404.d.ts.map +0 -1
  1286. package/lib/types/router/RouteComponent.d.ts +0 -6
  1287. package/lib/types/router/RouteComponent.d.ts.map +0 -1
  1288. package/lib/types/router/Router.d.ts +0 -74
  1289. package/lib/types/router/Router.d.ts.map +0 -1
  1290. package/lib/types/router/RouterProvider.d.ts +0 -15
  1291. package/lib/types/router/RouterProvider.d.ts.map +0 -1
  1292. package/lib/types/router/index.d.ts +0 -11
  1293. package/lib/types/router/index.d.ts.map +0 -1
  1294. package/lib/types/router/path.d.ts +0 -8
  1295. package/lib/types/router/path.d.ts.map +0 -1
  1296. package/lib/types/session/TypeRegistry.d.ts +0 -10
  1297. package/lib/types/session/TypeRegistry.d.ts.map +0 -1
  1298. package/lib/types/session/UserSession.d.ts +0 -40
  1299. package/lib/types/session/UserSession.d.ts.map +0 -1
  1300. package/lib/types/session/UserSessionProvider.d.ts +0 -7
  1301. package/lib/types/session/UserSessionProvider.d.ts.map +0 -1
  1302. package/lib/types/session/auth/composable.d.ts +0 -26
  1303. package/lib/types/session/auth/composable.d.ts.map +0 -1
  1304. package/lib/types/session/auth/firebase.d.ts +0 -10
  1305. package/lib/types/session/auth/firebase.d.ts.map +0 -1
  1306. package/lib/types/session/auth/useAuthState.d.ts +0 -10
  1307. package/lib/types/session/auth/useAuthState.d.ts.map +0 -1
  1308. package/lib/types/session/auth/useCurrentTenant.d.ts +0 -15
  1309. package/lib/types/session/auth/useCurrentTenant.d.ts.map +0 -1
  1310. package/lib/types/session/constants.d.ts +0 -3
  1311. package/lib/types/session/constants.d.ts.map +0 -1
  1312. package/lib/types/session/index.d.ts +0 -8
  1313. package/lib/types/session/index.d.ts.map +0 -1
  1314. package/lib/types/session/useUXTracking.d.ts +0 -6
  1315. package/lib/types/session/useUXTracking.d.ts.map +0 -1
  1316. package/lib/types/shell/SplashScreen.d.ts +0 -7
  1317. package/lib/types/shell/SplashScreen.d.ts.map +0 -1
  1318. package/lib/types/shell/VertesiaShell.d.ts +0 -10
  1319. package/lib/types/shell/VertesiaShell.d.ts.map +0 -1
  1320. package/lib/types/shell/apps/AppInstallationProvider.d.ts +0 -12
  1321. package/lib/types/shell/apps/AppInstallationProvider.d.ts.map +0 -1
  1322. package/lib/types/shell/apps/AppProjectSelector.d.ts +0 -12
  1323. package/lib/types/shell/apps/AppProjectSelector.d.ts.map +0 -1
  1324. package/lib/types/shell/apps/StandaloneApp.d.ts +0 -23
  1325. package/lib/types/shell/apps/StandaloneApp.d.ts.map +0 -1
  1326. package/lib/types/shell/apps/index.d.ts +0 -4
  1327. package/lib/types/shell/apps/index.d.ts.map +0 -1
  1328. package/lib/types/shell/index.d.ts +0 -8
  1329. package/lib/types/shell/index.d.ts.map +0 -1
  1330. package/lib/types/shell/login/EnterpriseSigninButton.d.ts +0 -6
  1331. package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +0 -1
  1332. package/lib/types/shell/login/GitHubSignInButton.d.ts +0 -6
  1333. package/lib/types/shell/login/GitHubSignInButton.d.ts.map +0 -1
  1334. package/lib/types/shell/login/GoogleSignInButton.d.ts +0 -6
  1335. package/lib/types/shell/login/GoogleSignInButton.d.ts.map +0 -1
  1336. package/lib/types/shell/login/InviteAcceptModal.d.ts +0 -2
  1337. package/lib/types/shell/login/InviteAcceptModal.d.ts.map +0 -1
  1338. package/lib/types/shell/login/MicrosoftSigninButton.d.ts +0 -6
  1339. package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +0 -1
  1340. package/lib/types/shell/login/PreviewIcon.d.ts +0 -6
  1341. package/lib/types/shell/login/PreviewIcon.d.ts.map +0 -1
  1342. package/lib/types/shell/login/SignInModal.d.ts +0 -7
  1343. package/lib/types/shell/login/SignInModal.d.ts.map +0 -1
  1344. package/lib/types/shell/login/SigninScreen.d.ts +0 -9
  1345. package/lib/types/shell/login/SigninScreen.d.ts.map +0 -1
  1346. package/lib/types/shell/login/SignupForm.d.ts +0 -8
  1347. package/lib/types/shell/login/SignupForm.d.ts.map +0 -1
  1348. package/lib/types/shell/login/TerminalLogin.d.ts +0 -2
  1349. package/lib/types/shell/login/TerminalLogin.d.ts.map +0 -1
  1350. package/lib/types/shell/login/UserInfo.d.ts +0 -6
  1351. package/lib/types/shell/login/UserInfo.d.ts.map +0 -1
  1352. package/lib/types/shell/login/UserSessionMenu.d.ts +0 -9
  1353. package/lib/types/shell/login/UserSessionMenu.d.ts.map +0 -1
  1354. package/lib/types/shell/utils.d.ts +0 -2
  1355. package/lib/types/shell/utils.d.ts.map +0 -1
  1356. package/lib/types/widgets/Progress.d.ts +0 -6
  1357. package/lib/types/widgets/Progress.d.ts.map +0 -1
  1358. package/lib/types/widgets/SvgIcon.d.ts +0 -7
  1359. package/lib/types/widgets/SvgIcon.d.ts.map +0 -1
  1360. package/lib/types/widgets/codemirror/CodeMirrorEditor.d.ts +0 -24
  1361. package/lib/types/widgets/codemirror/CodeMirrorEditor.d.ts.map +0 -1
  1362. package/lib/types/widgets/codemirror/CodemirrorStateSingleton.d.ts +0 -15
  1363. package/lib/types/widgets/codemirror/CodemirrorStateSingleton.d.ts.map +0 -1
  1364. package/lib/types/widgets/codemirror/MonacoEditor.d.ts +0 -38
  1365. package/lib/types/widgets/codemirror/MonacoEditor.d.ts.map +0 -1
  1366. package/lib/types/widgets/codemirror/index.d.ts +0 -5
  1367. package/lib/types/widgets/codemirror/index.d.ts.map +0 -1
  1368. package/lib/types/widgets/form/Form.d.ts +0 -22
  1369. package/lib/types/widgets/form/Form.d.ts.map +0 -1
  1370. package/lib/types/widgets/form/FormContext.d.ts +0 -20
  1371. package/lib/types/widgets/form/FormContext.d.ts.map +0 -1
  1372. package/lib/types/widgets/form/ManagedObject.d.ts +0 -82
  1373. package/lib/types/widgets/form/ManagedObject.d.ts.map +0 -1
  1374. package/lib/types/widgets/form/fields.d.ts +0 -16
  1375. package/lib/types/widgets/form/fields.d.ts.map +0 -1
  1376. package/lib/types/widgets/form/index.d.ts +0 -7
  1377. package/lib/types/widgets/form/index.d.ts.map +0 -1
  1378. package/lib/types/widgets/form/inputs.d.ts +0 -8
  1379. package/lib/types/widgets/form/inputs.d.ts.map +0 -1
  1380. package/lib/types/widgets/form/schema.d.ts +0 -47
  1381. package/lib/types/widgets/form/schema.d.ts.map +0 -1
  1382. package/lib/types/widgets/index.d.ts +0 -12
  1383. package/lib/types/widgets/index.d.ts.map +0 -1
  1384. package/lib/types/widgets/json-view/JSONCode.d.ts +0 -22
  1385. package/lib/types/widgets/json-view/JSONCode.d.ts.map +0 -1
  1386. package/lib/types/widgets/json-view/JSONDisplay.d.ts +0 -8
  1387. package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +0 -1
  1388. package/lib/types/widgets/json-view/JSONView.d.ts +0 -7
  1389. package/lib/types/widgets/json-view/JSONView.d.ts.map +0 -1
  1390. package/lib/types/widgets/json-view/index.d.ts +0 -5
  1391. package/lib/types/widgets/json-view/index.d.ts.map +0 -1
  1392. package/lib/types/widgets/json-view/types.d.ts +0 -8
  1393. package/lib/types/widgets/json-view/types.d.ts.map +0 -1
  1394. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts +0 -13
  1395. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +0 -1
  1396. package/lib/types/widgets/markdown/index.d.ts +0 -2
  1397. package/lib/types/widgets/markdown/index.d.ts.map +0 -1
  1398. package/lib/types/widgets/popover/Popover.d.ts +0 -38
  1399. package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
  1400. package/lib/types/widgets/popover/context.d.ts +0 -8
  1401. package/lib/types/widgets/popover/context.d.ts.map +0 -1
  1402. package/lib/types/widgets/popover/index.d.ts +0 -3
  1403. package/lib/types/widgets/popover/index.d.ts.map +0 -1
  1404. package/lib/types/widgets/popover/slots.d.ts +0 -5
  1405. package/lib/types/widgets/popover/slots.d.ts.map +0 -1
  1406. package/lib/types/widgets/properties/PropertiesView.d.ts +0 -11
  1407. package/lib/types/widgets/properties/PropertiesView.d.ts.map +0 -1
  1408. package/lib/types/widgets/properties/index.d.ts +0 -2
  1409. package/lib/types/widgets/properties/index.d.ts.map +0 -1
  1410. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +0 -75
  1411. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +0 -1
  1412. package/lib/types/widgets/schema-editor/editor/Editable.d.ts +0 -40
  1413. package/lib/types/widgets/schema-editor/editor/Editable.d.ts.map +0 -1
  1414. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +0 -8
  1415. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +0 -1
  1416. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts +0 -5
  1417. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +0 -1
  1418. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts +0 -4
  1419. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts.map +0 -1
  1420. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts +0 -3
  1421. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts.map +0 -1
  1422. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts +0 -9
  1423. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +0 -1
  1424. package/lib/types/widgets/schema-editor/index.d.ts +0 -7
  1425. package/lib/types/widgets/schema-editor/index.d.ts.map +0 -1
  1426. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts +0 -16
  1427. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts.map +0 -1
  1428. package/lib/types/widgets/schema-editor/type-signature.d.ts +0 -19
  1429. package/lib/types/widgets/schema-editor/type-signature.d.ts.map +0 -1
  1430. package/lib/types/widgets/upload/DropZone.d.ts +0 -41
  1431. package/lib/types/widgets/upload/DropZone.d.ts.map +0 -1
  1432. package/lib/types/widgets/upload/UploadResultCategory.d.ts +0 -26
  1433. package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +0 -1
  1434. package/lib/types/widgets/upload/UploadSummary.d.ts +0 -38
  1435. package/lib/types/widgets/upload/UploadSummary.d.ts.map +0 -1
  1436. package/lib/types/widgets/upload/index.d.ts +0 -4
  1437. package/lib/types/widgets/upload/index.d.ts.map +0 -1
  1438. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts +0 -6
  1439. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts.map +0 -1
  1440. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts +0 -8
  1441. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts.map +0 -1
  1442. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts +0 -5
  1443. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts.map +0 -1
  1444. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts +0 -9
  1445. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts.map +0 -1
  1446. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts +0 -8
  1447. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts.map +0 -1
  1448. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts +0 -8
  1449. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts.map +0 -1
  1450. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts +0 -2
  1451. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts.map +0 -1
  1452. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts +0 -13
  1453. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts.map +0 -1
  1454. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts +0 -8
  1455. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts.map +0 -1
  1456. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts +0 -3
  1457. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts.map +0 -1
  1458. package/lib/types/widgets/xml-viewer/components/types.d.ts +0 -104
  1459. package/lib/types/widgets/xml-viewer/components/types.d.ts.map +0 -1
  1460. package/lib/types/widgets/xml-viewer/constants/index.d.ts +0 -27
  1461. package/lib/types/widgets/xml-viewer/constants/index.d.ts.map +0 -1
  1462. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts +0 -4
  1463. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts.map +0 -1
  1464. package/lib/types/widgets/xml-viewer/helpers/index.d.ts +0 -13
  1465. package/lib/types/widgets/xml-viewer/helpers/index.d.ts.map +0 -1
  1466. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts +0 -15
  1467. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts.map +0 -1
  1468. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts +0 -10
  1469. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +0 -1
  1470. package/lib/types/widgets/xml-viewer/index.d.ts +0 -3
  1471. package/lib/types/widgets/xml-viewer/index.d.ts.map +0 -1
  1472. package/lib/types/widgets/xml-viewer/types/index.d.ts +0 -16
  1473. package/lib/types/widgets/xml-viewer/types/index.d.ts.map +0 -1
  1474. package/lib/vertesia-ui-core.js +0 -2
  1475. package/lib/vertesia-ui-core.js.map +0 -1
  1476. package/lib/vertesia-ui-env.js +0 -2
  1477. package/lib/vertesia-ui-env.js.map +0 -1
  1478. package/lib/vertesia-ui-features.js +0 -2
  1479. package/lib/vertesia-ui-features.js.map +0 -1
  1480. package/lib/vertesia-ui-layout.js +0 -2
  1481. package/lib/vertesia-ui-layout.js.map +0 -1
  1482. package/lib/vertesia-ui-router.js +0 -2
  1483. package/lib/vertesia-ui-router.js.map +0 -1
  1484. package/lib/vertesia-ui-session.js +0 -2
  1485. package/lib/vertesia-ui-session.js.map +0 -1
  1486. package/lib/vertesia-ui-shell.js +0 -2
  1487. package/lib/vertesia-ui-shell.js.map +0 -1
  1488. package/lib/vertesia-ui-widgets.js +0 -2
  1489. package/lib/vertesia-ui-widgets.js.map +0 -1
  1490. package/src/core/components/Button.tsx +0 -63
  1491. package/src/core/components/Modal.tsx +0 -144
  1492. package/src/core/components/SelectBox.tsx +0 -188
  1493. package/src/core/components/tabs/Tabs.tsx +0 -132
  1494. package/src/core/components/tabs/TabsContext.ts +0 -25
  1495. package/src/core/components/tabs/index.ts +0 -2
  1496. package/src/widgets/codemirror/CodeMirrorEditor.tsx +0 -122
  1497. package/src/widgets/codemirror/CodemirrorStateSingleton.tsx +0 -39
  1498. package/src/widgets/codemirror/index.ts +0 -6
  1499. /package/src/core/components/{MessageBox.tsx → shadcn/MessageBox.tsx} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"vertesia-ui-widgets.js","sources":["esm/widgets/codemirror/CodemirrorStateSingleton.js","esm/widgets/codemirror/CodeMirrorEditor.js","esm/widgets/codemirror/MonacoEditor.js","esm/widgets/form/FormContext.js","esm/widgets/form/inputs.js","esm/widgets/form/Form.js","esm/widgets/form/schema.js","esm/widgets/form/ManagedObject.js","esm/widgets/form/fields.js","esm/widgets/json-view/JSONCode.js","esm/widgets/json-view/JSONView.js","esm/widgets/json-view/JSONDisplay.js","esm/features/agent/chat/AgentChart.js","esm/widgets/markdown/MarkdownRenderer.js","esm/widgets/popover/context.js","esm/widgets/popover/slots.js","esm/widgets/popover/Popover.js","esm/widgets/Progress.js","esm/widgets/properties/PropertiesView.js","esm/widgets/schema-editor/type-signature.js","esm/widgets/schema-editor/json-schema4-utils.js","esm/widgets/schema-editor/ManagedSchema.js","esm/widgets/schema-editor/editor/EditableSchemaProperty.js","esm/widgets/schema-editor/editor/PropertyEditor.js","esm/widgets/schema-editor/editor/PropertyViewer.js","esm/widgets/schema-editor/editor/SchemaContext.js","esm/widgets/schema-editor/editor/Editable.js","esm/widgets/schema-editor/editor/SchemaEditor.js","esm/widgets/SvgIcon.js","esm/widgets/upload/DropZone.js","esm/widgets/upload/UploadResultCategory.js","esm/widgets/upload/UploadSummary.js","esm/widgets/xml-viewer/constants/index.js","esm/widgets/xml-viewer/context/xml-viewer-context.js","esm/widgets/xml-viewer/hooks/useXMLViewer.js","esm/widgets/xml-viewer/components/CDataTag/index.js","esm/widgets/xml-viewer/components/CollapseIcon/index.js","esm/widgets/xml-viewer/hooks/useCollapsible.js","esm/widgets/xml-viewer/components/CommentTag/index.js","esm/widgets/xml-viewer/components/Attributes/index.js","esm/widgets/xml-viewer/components/DeclarationTag/index.js","esm/widgets/xml-viewer/helpers/index.js","esm/widgets/xml-viewer/components/Tag/index.js","esm/widgets/xml-viewer/components/TextElement/index.js","esm/widgets/xml-viewer/components/Elements/index.js","esm/widgets/xml-viewer/components/InvalidXml/index.js","esm/widgets/xml-viewer/components/XMLViewer.js"],"sourcesContent":["import { EditorState, Text } from '@codemirror/state';\nlet stateInstance = null;\n/**\n * Returns a shared instance of CodeMirror's EditorState.\n * If the instance doesn't exist, it creates one with the given initial content.\n *\n * @param initialDoc - The initial content for the editor, either as a `string` or `Text`.\n * @param extensions - Optional extensions to be applied to the editor.\n * @returns The shared EditorState instance.\n**/\nexport const getSharedEditorState = (initialDoc = \"\", extensions = []) => {\n const doc = typeof initialDoc === \"string\" ? Text.of(initialDoc.split(\"\\n\")) : initialDoc;\n if (!stateInstance) {\n stateInstance = EditorState.create({\n doc,\n extensions,\n });\n }\n else if (stateInstance.doc.toString() !== doc.toString()) {\n stateInstance = EditorState.create({\n doc,\n extensions,\n });\n }\n return stateInstance;\n};\n/**\n * Resets the singleton instance (useful for testing or reinitializing).\n**/\nexport const resetSharedEditorState = () => {\n stateInstance = null;\n};\n//# sourceMappingURL=CodemirrorStateSingleton.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport debounce from 'debounce';\nimport { useEffect, useMemo, useRef } from 'react';\nimport { EditorView } from '@codemirror/view';\nimport { useSafeLayoutEffect } from '@vertesia/ui/core';\nimport { getSharedEditorState } from './CodemirrorStateSingleton';\nexport class EditorApi {\n editor;\n constructor(editor) {\n this.editor = editor;\n }\n setValue(value) {\n this.editor.dispatch({\n changes: {\n from: 0,\n to: this.editor.state.doc.length,\n insert: value || \"\",\n },\n });\n }\n getValue() {\n return this.editor.state.doc.toString();\n }\n}\nconst customTheme = EditorView.theme({\n \"&\": { fontSize: \"14px\", fontFamily: \"monospace\" },\n \".cm-content\": { fontFamily: \"inherit\" },\n \".cm-scroller\": { fontFamily: \"inherit\" },\n \".cm-gutters\": { backgroundColor: \"transparent\", color: \"#ddd\" },\n \".cm-focused\": { outline: \"none\" },\n \".cm-cursor\": {\n borderLeft: \"2px solid #808080\",\n borderLeftColor: \"#808080\",\n animation: \"blink 1.2s step-start infinite\"\n },\n \"@keyframes blink\": { \"50%\": { opacity: 0 } }\n});\nconst baseExtensions = [\n customTheme,\n EditorView.lineWrapping,\n];\nfunction updateListenerExtension(cb) {\n return EditorView.updateListener.of((update) => {\n if (update.docChanged) {\n cb(update);\n }\n });\n}\n;\n/**\n * The className is only used on the first rendering - the editor class will not be updated if the property changes\n**/\nexport function CodeMirrorEditor({ onChange, value, className, editorRef, extensions, debounceTimeout = 0 }) {\n const ref = useRef(null);\n // the onChange property may change so we need to store it in a\n // reference to be able to update it when it changes without\n // re-registering the listener on codemirror since codemirror can only register\n // listeners at creation\n const onChangeRef = useRef(undefined);\n useEffect(() => {\n if (onChange) {\n onChangeRef.current = debounceTimeout > 0\n ? debounce(onChange, debounceTimeout)\n : onChange;\n return () => {\n // WE MUST NOT CANCEL THE DEBOUNCE even if we unset the onChange impl\n // otherwise some updates will never happens\n onChangeRef.current = undefined;\n };\n }\n }, [onChange, debounceTimeout]);\n const component = useMemo(() => _jsx(\"div\", { ref: ref, className: className }), [className]);\n useSafeLayoutEffect(() => {\n if (ref.current) {\n let actualExtensions = [...baseExtensions, updateListenerExtension((update) => {\n onChangeRef.current?.(update);\n })];\n if (Array.isArray(extensions)) {\n actualExtensions = actualExtensions.concat(extensions);\n }\n else if (extensions) {\n actualExtensions.push(extensions);\n }\n const sharedState = getSharedEditorState(value, actualExtensions);\n const editor = new EditorView({\n state: sharedState,\n parent: ref.current,\n });\n const api = new EditorApi(editor);\n if (editorRef) {\n editorRef.current = api;\n }\n return () => {\n editor.destroy();\n if (editorRef) {\n editorRef.current = undefined;\n }\n };\n }\n }, [component, extensions]);\n return component;\n}\n//# sourceMappingURL=CodeMirrorEditor.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Editor } from '@monaco-editor/react';\nimport { useTheme } from '@vertesia/ui/core';\nimport debounce from 'debounce';\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nexport class VEditorApi {\n VgetValue;\n VsetValue;\n constructor(VgetValue, VsetValue) {\n this.VgetValue = VgetValue;\n this.VsetValue = VsetValue;\n }\n getValue() {\n return this.VgetValue();\n }\n setValue(value) {\n this.VsetValue(value || '');\n }\n}\nexport function MonacoEditor({ onChange, value = '', className, editorRef, language = 'javascript', debounceTimeout = 0, options = {}, beforeMount, onMount, defaultValue }) {\n const [editorValue, setEditorValue] = useState(value);\n const editorInstanceRef = useRef(null);\n const { theme } = useTheme();\n const getValueRef = useRef(() => editorValue);\n const setValueRef = useRef((newValue) => {\n setEditorValue(newValue);\n if (editorInstanceRef.current) {\n editorInstanceRef.current.setValue(newValue);\n }\n });\n useEffect(() => {\n getValueRef.current = () => editorValue;\n }, [editorValue]);\n useEffect(() => {\n if (editorRef) {\n editorRef.current = new VEditorApi(() => getValueRef.current(), (value) => setValueRef.current(value));\n }\n return () => {\n if (editorRef) {\n editorRef.current = undefined;\n }\n };\n }, [editorRef]);\n const debouncedOnChange = useMemo(() => {\n if (!onChange)\n return undefined;\n if (debounceTimeout > 0) {\n return debounce((update) => onChange(update), debounceTimeout);\n }\n else {\n return onChange;\n }\n }, [onChange, debounceTimeout]);\n const handleEditorChange = useCallback((newValue) => {\n const actualValue = newValue || '';\n setEditorValue(actualValue);\n if (debouncedOnChange) {\n const update = {\n docChanged: true,\n state: {\n doc: {\n toString: () => actualValue,\n length: actualValue.length\n }\n }\n };\n // Using type assertion through unknown to avoid complex type mocking\n debouncedOnChange(update);\n }\n }, [debouncedOnChange]);\n const handleEditorDidMount = useCallback((editor, monacoInstance) => {\n editorInstanceRef.current = editor;\n // Update the setValue ref to use the actual editor instance\n setValueRef.current = (newValue) => {\n setEditorValue(newValue);\n editor.setValue(newValue);\n };\n // Set up custom theme for better error line highlighting\n monacoInstance.editor.defineTheme('errorLineTheme', {\n base: theme === 'dark' ? 'vs-dark' : 'vs',\n inherit: true,\n rules: [],\n colors: {\n 'editorError.background': '#ffebee',\n 'editorError.border': '#f44336',\n },\n });\n monacoInstance.editor.setTheme('errorLineTheme');\n // Call custom onMount if provided\n onMount?.(editor);\n }, [language, onMount, theme]);\n // Update editor value when prop changes\n useEffect(() => {\n if (value !== editorValue) {\n setEditorValue(value);\n if (editorInstanceRef.current) {\n editorInstanceRef.current.setValue(value);\n }\n }\n }, [value]);\n const defaultOptions = {\n fontSize: 14,\n fontFamily: 'monospace',\n minimap: { enabled: false },\n scrollBeyondLastLine: false,\n wordWrap: 'on',\n lineNumbers: 'on',\n folding: false,\n lineDecorationsWidth: 0,\n lineNumbersMinChars: 3,\n automaticLayout: true,\n glyphMargin: true, // Enable better error reporting\n renderValidationDecorations: 'on', // Show error squiggles\n renderLineHighlight: 'line', // Highlight entire line for errors\n hover: {\n enabled: true,\n delay: 100\n }, // Enable hover for error messages\n quickSuggestions: {\n other: true,\n comments: true,\n strings: true\n }, // Show problems panel information\n ...options\n };\n return (_jsx(\"div\", { className: className, children: _jsx(Editor, { height: \"100%\", theme: theme === 'dark' ? 'vs-dark' : 'light', language: language, value: editorValue, onChange: handleEditorChange, onMount: handleEditorDidMount, beforeMount: beforeMount, options: defaultOptions, defaultValue: defaultValue || '' }) }));\n}\n//# sourceMappingURL=MonacoEditor.js.map","import { createContext, useContext } from \"react\";\nconst FieldSetContext = createContext(undefined);\nconst FieldSetContextProvider = FieldSetContext.Provider;\nexport function useFieldSet() {\n const ctx = useContext(FieldSetContext);\n if (!ctx) {\n throw new Error('useFieldSet must be used within a Form or FieldSet element');\n }\n return ctx;\n}\nexport class FormContext {\n object;\n components;\n disabled;\n constructor(object, components = {}, disabled = false) {\n this.object = object;\n this.components = components;\n this.disabled = disabled;\n }\n}\nconst _FormContext = createContext(undefined);\nexport function useForm() {\n const ctx = useContext(_FormContext);\n if (!ctx) {\n throw new Error('useForm must be used within a Form element');\n }\n return ctx;\n}\nconst FormContextProvider = _FormContext.Provider;\nexport { FieldSetContextProvider, FormContextProvider };\n//# sourceMappingURL=FormContext.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport clsx from \"clsx\";\nimport React, { useState } from \"react\";\nimport { Styles } from \"@vertesia/ui/core\";\nconst Input = React.forwardRef(({ object, type = 'text', onChange, ...props }, ref) => {\n const [actualValue, setValue] = useState(object.value != null ? String(object.value) : '');\n const [booleanValue, setBooleanValue] = useState(object.schema.isBoolean && object.value === true);\n if (props.className) {\n props.className = clsx(Styles.INPUT, props.className);\n }\n else {\n props.className = Styles.INPUT;\n }\n const _onChange = (ev) => {\n if (props.disabled)\n return;\n setValue(ev.target.value);\n if (object.schema.isBoolean) {\n object.value = ev.target.checked;\n setBooleanValue(object.value);\n }\n else {\n object.value = ev.target.value;\n }\n onChange && onChange(ev);\n };\n if (type === 'textarea') {\n return (_jsx(\"textarea\", { ref: ref, ...props, value: actualValue, onChange: _onChange }));\n }\n else if (type === 'checkbox') {\n return (_jsx(\"input\", { ref: ref, ...props, type: \"checkbox\", checked: booleanValue, onChange: _onChange, className: \"form-check-input\" }));\n }\n else {\n return (_jsx(\"input\", { ref: ref, ...props, type: type, value: actualValue, onChange: _onChange }));\n }\n});\nexport { Input };\n//# sourceMappingURL=inputs.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button, FormItem } from \"@vertesia/ui/core\";\nimport clsx from \"clsx\";\nimport { Plus, Trash2 } from \"lucide-react\";\nimport { useState } from \"react\";\nimport { FormContext, FormContextProvider, useForm } from \"./FormContext.js\";\nimport { Input } from \"./inputs.js\";\nexport function Form({ object, components, onSubmit, children, onChange, disabled }) {\n const _onSubmit = (evt) => {\n evt.stopPropagation();\n evt.preventDefault();\n onSubmit && onSubmit(object.value);\n };\n object.observer = onChange;\n return (_jsx(FormContextProvider, { value: new FormContext(object, components || {}, disabled ?? false), children: _jsx(\"form\", { className: \"w-full\", onSubmit: _onSubmit, children: children }) }));\n}\nfunction GeneratedFormFields() {\n const ctx = useForm();\n return (_jsx(\"div\", { className: 'flex flex-col gap-4 w-full', children: ctx.object.properties.map(renderProperty) }));\n}\nexport function GeneratedForm({ children, ...props }) {\n return (_jsxs(Form, { ...props, children: [_jsx(GeneratedFormFields, {}), children] }));\n}\nfunction renderProperty(prop) {\n if (prop.isList) {\n return _jsx(ListField, { object: prop }, prop.name);\n }\n else if (prop.isObject) {\n return _jsx(CompositeField, { object: prop }, prop.name);\n }\n else {\n return _jsx(ScalarField, { object: prop }, prop.name);\n }\n}\nfunction renderItemProperty(prop, editor) {\n if (prop.isList) {\n return _jsx(ListField, { object: prop });\n }\n else if (prop.isObject) {\n return _jsx(CompositeField, { object: prop });\n }\n else {\n return _jsx(ScalarField, { object: prop, editor: editor });\n }\n}\nexport function ScalarField({ object, editor, inline = false }) {\n if (!editor) {\n editor = object.schema.editor;\n }\n const { components, disabled } = useForm();\n const Component = (editor && components[editor]) || Input;\n const inputType = object.getInputType();\n if (inputType === 'checkbox') {\n inline = true;\n }\n const handleOnChange = (event) => {\n if (disabled)\n return;\n if (object.schema.isBoolean) {\n object.value = event.target.checked;\n }\n else if (object.schema.isNumber) {\n object.value = parseFloat(event.target.value);\n }\n else {\n object.value = event.target.value;\n }\n };\n if (object.isListItem) {\n // List items don't need the FormItem wrapper (no label, description, etc.)\n return _jsx(Component, { object: object, type: inputType, onChange: handleOnChange, disabled: disabled });\n }\n return (_jsx(FormItem, { label: object.title, required: object.schema.isRequired, description: object.schema.description, className: clsx('flex', inline ? 'flex-row items-center' : 'flex-col'), children: _jsx(Component, { object: object, type: inputType, onChange: handleOnChange, disabled: disabled }) }));\n}\nfunction CompositeField({ object }) {\n return (_jsxs(\"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: [!object.isListItem && _jsx(\"div\", { className: 'text-gray-900 dark:text-gray-200 font-semibold', children: object.title }), object.properties.map(renderProperty)] }));\n}\nfunction ListField({ object }) {\n const [value, setValue] = useState(object.value || []);\n const { disabled } = useForm();\n const addItem = () => {\n if (disabled)\n return;\n object.add();\n setValue([...object.value]);\n };\n const deleteItem = (index) => {\n if (disabled)\n return;\n object.remove(index);\n setValue([...object.value]);\n };\n return (_jsxs(\"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: [!object.isListItem && _jsx(\"div\", { className: 'text-gray-900 dark:text-gray-200 font-semibold', children: object.title }), object.items.map((item, index) => {\n return _jsx(ListItem, { object: item, list: object, onDelete: () => deleteItem(index), disabled: disabled }, `${index}-${value[index] ?? ''}`);\n }), _jsx(\"div\", { children: _jsxs(Button, { variant: 'secondary', onClick: addItem, disabled: disabled, children: [_jsx(Plus, { className: \"size-6\" }), \" Add\"] }) })] }));\n}\nfunction ListItem({ list, object, onDelete, disabled }) {\n return (_jsxs(\"div\", { className: 'flex gap-2 w-full', children: [_jsx(\"div\", { className: \"flex-1\", children: renderItemProperty(object, list.schema.arraySchema.editor) }), _jsx(Button, { variant: 'secondary', onClick: onDelete, disabled: disabled, children: _jsx(Trash2, { className: 'size-4' }) })] }));\n}\n//# sourceMappingURL=Form.js.map","import Ajv from \"ajv\";\nfunction createSchemaFromType(type) {\n if (type === 'object') {\n return { type: 'object', properties: {} };\n }\n else if (type === 'array') {\n return { type: 'array', items: {} };\n }\n else {\n return { type };\n }\n}\nexport class Schema {\n schema;\n properties = {};\n _validator;\n constructor(schema) {\n this.schema = schema || { type: 'object', properties: {} };\n this.load();\n }\n get validator() {\n if (!this._validator) {\n const ajv = new Ajv({ allErrors: true, strict: false });\n this._validator = ajv.compile(this.schema);\n }\n return this._validator;\n }\n load() {\n if (this.schema.properties) {\n const properties = this.schema.properties;\n Object.keys(properties).forEach(name => {\n this.loadProperty(name, properties[name]);\n });\n }\n }\n hasProperties() {\n return Object.keys(this.properties).length > 0;\n }\n get title() {\n return this.schema.title || this.schema.name;\n }\n get description() {\n return this.schema.description;\n }\n loadProperty(name, propertySchema) {\n let property;\n if (propertySchema.type === 'array') {\n property = new ArrayPropertySchema(this, name, propertySchema);\n }\n else {\n property = new PropertySchema(this, name, propertySchema);\n }\n this.properties[name] = property;\n return property;\n }\n get type() {\n return this.schema.type;\n }\n validate(value) {\n if (!this.validator(value)) {\n return this.validator.errors || [];\n }\n else {\n return null;\n }\n }\n addProperty(name, typeOrSchema, isRequired = false) {\n if (this.schema.type !== 'object') {\n this.schema.type = 'object';\n }\n if (!this.schema.properties) {\n this.schema.properties = {};\n }\n const propertySchema = typeof typeOrSchema === 'string' ? createSchemaFromType(typeOrSchema) : typeOrSchema;\n const property = this.loadProperty(name, propertySchema);\n this.schema.properties[property.name] = property.schema;\n if (isRequired) {\n property.isRequired = true;\n }\n return property;\n }\n removeProperty(name) {\n if (this.schema.properties) {\n delete this.schema.properties[name];\n if (Array.isArray(this.schema.required)) {\n this.schema.required = this.schema.required.filter(x => x !== name);\n }\n }\n delete this.properties[name];\n }\n getProperty(name) {\n return this.properties[name];\n }\n get editor() {\n return this.schema.editor;\n }\n}\nexport class PropertySchema extends Schema {\n parent;\n name;\n constructor(parent, name, schema) {\n super(schema);\n this.parent = parent;\n this.name = name;\n if (schema.type === 'array') {\n throw new Error(\"Array property must be instantiated using ArrayPropertySchema\");\n }\n if (schema.type === 'object' && !schema.properties) {\n schema.properties = {};\n }\n }\n get isMulti() {\n return false;\n }\n get isReadOnly() {\n return !!this.schema.readOnly;\n }\n set isReadOnly(value) {\n this.schema.readOnly = value;\n }\n get defaultValue() {\n return this.schema.default;\n }\n set defaultValue(value) {\n this.schema.default = value;\n }\n get enum() {\n return this.schema.enum;\n }\n set enum(values) {\n this.schema.enum = values;\n }\n get isRequired() {\n const required = this.parent.schema.required;\n return required ? required.includes(this.name) : false;\n }\n set isRequired(value) {\n let required = Array.isArray(this.parent.schema.required) ? this.parent.schema.required : [];\n if (value) {\n required = required.concat(this.name);\n }\n else {\n required = required.filter(x => x !== this.name);\n }\n this.parent.schema.required = required;\n }\n get type() {\n return this.schema.type;\n }\n set type(value) {\n if (this.schema.type !== value) {\n this.schema.type = value;\n if (value !== 'object') { // remove sub properties\n this.properties = {};\n this.schema.properties = undefined;\n }\n }\n }\n remove() {\n this.parent.removeProperty(this.name);\n }\n get isBoolean() {\n return this.type === 'boolean';\n }\n get isString() {\n return this.type === 'string';\n }\n get isNumber() {\n return this.type === 'number' || this.type === 'integer';\n }\n get isObject() {\n return this.type === 'object';\n }\n}\nfunction getArrayElementType(schema) {\n if (schema.type !== 'array') {\n throw new Error('Expecting an array schema');\n }\n if (!schema.items) {\n schema.items = {};\n }\n else if (Array.isArray(schema.items)) {\n throw new Error('Tuple arrays are not supported');\n }\n return schema.items;\n}\nexport class ArrayPropertySchema extends PropertySchema {\n arraySchema;\n constructor(parent, name, schema) {\n super(parent, name, getArrayElementType(schema));\n this.arraySchema = schema;\n }\n get isMulti() {\n return true;\n }\n}\n//# sourceMappingURL=schema.js.map","import { Schema } from \"./schema.js\";\nexport function computeTitleFromName(name) {\n name = name.replace(/_/g, ' ').replace(/([a-z0-9])&([A-Z])/g, \"$1 $2\");\n return name[0].toUpperCase() + name.slice(1);\n}\nfunction getInputType(_name, schema) {\n if (schema.editor) {\n return schema.editor;\n }\n // Check format as fallback (e.g., \"document\", \"media\", \"date\", etc.)\n if (schema.schema.format) {\n return schema.schema.format;\n }\n switch (schema.type) {\n case 'number':\n case 'integer':\n return 'number';\n case 'boolean':\n return 'checkbox';\n case 'string':\n return \"text\";\n default:\n return 'text';\n }\n}\nexport class Node {\n parent;\n schema;\n name;\n // change observer\n observer; // return false to stop bubbling\n constructor(parent, schema, name) {\n this.parent = parent;\n this.schema = schema;\n this.name = name;\n }\n get isRoot() {\n return !this.parent;\n }\n get root() {\n return this.parent ? this.parent.root : this;\n }\n get path() {\n return this.parent ? this.parent.path.concat(this.name) : [];\n }\n get isScalar() {\n return false;\n }\n get isListItem() {\n return false;\n }\n get isObject() {\n return false;\n }\n get isList() {\n return false;\n }\n get title() {\n return this.schema.title || computeTitleFromName(this.name);\n }\n onChange(node) {\n if (this.observer) {\n if (this.observer(this) === false) {\n return;\n }\n ;\n }\n this.parent && this.parent.onChange(node);\n }\n}\nexport class ManagedObjectBase extends Node {\n constructor(parent, schema, name) {\n super(parent, schema, name);\n }\n get isObject() {\n return true;\n }\n getProperty(name) {\n const schema = this.schema.properties[name];\n if (schema.isMulti) {\n return new ManagedListProperty(this, schema, this.getOrInitArrayProperty(name));\n }\n else if (schema.isObject) {\n return new ManagedObjectProperty(this, schema, schema.name, this.getOrInitObjectProperty(name));\n }\n else {\n return new ManagedProperty(this, schema);\n }\n }\n getOrInitObjectProperty(name) {\n let value = this.value[name];\n if (!value) {\n this.value[name] = value = {};\n }\n return value;\n }\n getOrInitArrayProperty(name) {\n let value = this.value[name];\n if (!value) {\n this.value[name] = value = [];\n }\n return value;\n }\n setPropertyValue(name, value) {\n if (this.value[name] !== value) {\n this.value[name] = value;\n return true;\n }\n return false;\n }\n getPropertyValue(name) {\n return this.value[name];\n }\n get properties() {\n const out = [];\n for (const schema of Object.values(this.schema.properties)) {\n if (schema.isMulti) {\n out.push(new ManagedListProperty(this, schema, this.getOrInitArrayProperty(schema.name)));\n }\n else if (schema.isObject) {\n out.push(new ManagedObjectProperty(this, schema, schema.name, this.getOrInitObjectProperty(schema.name)));\n }\n else {\n out.push(new ManagedProperty(this, schema));\n }\n }\n return out;\n }\n [Symbol.iterator]() {\n return this.properties[Symbol.iterator]();\n }\n}\nexport class ManagedObject extends ManagedObjectBase {\n value;\n constructor(schema, value = {}) {\n super(null, schema instanceof Schema ? schema : new Schema(schema), '#root');\n this.value = value;\n }\n}\nexport class ManagedObjectProperty extends ManagedObjectBase {\n value;\n constructor(parent, schema, name, value) {\n super(parent, schema, name);\n this.value = value;\n }\n}\nexport class ManagedProperty extends Node {\n constructor(parent, schema) {\n super(parent, schema, schema.name);\n if (parent.value[this.name] === undefined && schema.defaultValue !== undefined) {\n parent.value[this.name] = schema.defaultValue;\n }\n }\n get isScalar() {\n return true;\n }\n set value(value) {\n const changed = this.parent.setPropertyValue(this.name, value);\n if (changed) {\n this.onChange(this);\n }\n }\n get value() {\n return this.parent.getPropertyValue(this.name);\n }\n getInputType() {\n return getInputType(this.name, this.schema);\n }\n}\nexport class ManagedListProperty extends Node {\n value;\n items = [];\n constructor(parent, schema, value) {\n super(parent, schema, schema.name);\n this.value = value;\n for (const _v of this.value) {\n this.add();\n }\n }\n get isList() {\n return true;\n }\n newItem(index) {\n if (this.schema.isObject) {\n return new ManageObjectEntry(this, index);\n }\n else {\n return new ManagedScalarEntry(this, index);\n }\n }\n add() {\n const item = this.newItem(this.items.length);\n this.items.push(item);\n return item;\n }\n //TODO change is fired even if the removed item is transient\n // how to mark an item as transient (an added item not yet set by the user)\n remove(index) {\n const value = this.value;\n if (index >= 0 && index < this.items.length) {\n this.items.splice(index, 1);\n // update indexes\n for (let i = 0, l = this.items.length; i < l; i++) {\n const item = this.items[i];\n item.index = i;\n item.name = String(i);\n }\n }\n if (Array.isArray(value) && index >= 0 && index < value.length) {\n value.splice(index, 1);\n // TODO trigger onChange only if this item isn't transient\n this.onChange(this);\n }\n }\n [Symbol.iterator]() {\n return this.items[Symbol.iterator]();\n }\n item(index) {\n if (index < 0 || index >= this.value.length) {\n return undefined;\n }\n const item = this.value[index];\n if (this.schema.isObject) {\n return new ManagedObjectProperty(this, this.schema, String(index), item);\n }\n else {\n return new ManagedScalarEntry(this, index);\n }\n }\n /**\n * remove undefined items from the end of the list if any\n */\n trim() {\n while (this.items[this.items.length - 1] === undefined) {\n this.items.pop();\n }\n }\n}\nexport class ManageObjectEntry extends ManagedObjectBase {\n index;\n key;\n constructor(parent, index) {\n super(parent, parent.schema, String(index));\n this.index = index;\n if (parent.value[index] === undefined) {\n parent.value[index] = {};\n }\n this.key = this.name + '@' + Date.now();\n }\n get isListItem() {\n return true;\n }\n set value(value) {\n this.parent.value[this.index] = value;\n }\n get value() {\n return this.parent.value[this.index];\n }\n}\nexport class ManagedScalarEntry extends Node {\n index;\n key;\n constructor(parent, index) {\n super(parent, parent.schema, String(index));\n this.index = index;\n if (parent.value[index] === undefined && parent.schema.defaultValue !== undefined) {\n parent.value[index] = parent.schema.defaultValue;\n }\n this.key = this.name + '@' + Date.now();\n }\n get isScalar() {\n return true;\n }\n get isListItem() {\n return true;\n }\n set value(value) {\n this.parent.value[this.index] = value;\n }\n get value() {\n return this.parent.value[this.index];\n }\n getInputType() {\n return getInputType(this.name, this.schema);\n }\n}\n//# sourceMappingURL=ManagedObject.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { FormItem } from \"@vertesia/ui/core\";\nexport function FormLabel({ label, required, children }) {\n return (_jsx(FormItem, { label: label, required: required, children: children }));\n}\nexport function FormHelper({ children }) {\n return (_jsx(\"p\", { className: \"mt-2 text-sm text-gray-500\", children: children }));\n}\nexport function FormError({ children }) {\n return (_jsx(\"p\", { className: \"mt-2 text-sm text-red-600\", children: children }));\n}\n//# sourceMappingURL=fields.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ObjectWalker } from \"@vertesia/json\";\nimport { useEffect, useState } from \"react\";\nconst st_code = \"bg-gray-100 dark:bg-slate-800 whitespace-pre-wrap p-4 rounded-lg font-mono\";\nconst st_punct = \"text-pink-500 dark:text-pink-400\";\nconst st_symbol = \"text-purple-500 dark:text-purple-400\";\nconst st_number = \"text-green-500 dark:text-green-400\";\nconst st_string = \"text-orange-500 dark:text-orange-400\";\nconst st_key = \"text-blue-500 dark:text-blue-400\";\nconst defaultClassMap = {\n code: st_code,\n comma: st_punct,\n assign: st_punct,\n startObject: st_punct,\n endObject: st_punct,\n startArray: st_punct,\n endArray: st_punct,\n boolean: st_symbol,\n null: st_symbol,\n key: st_key,\n index: st_key,\n string: st_string,\n number: st_number,\n};\nclass Block {\n renderer;\n parent;\n key;\n indent;\n result = [];\n constructor(renderer, parent, key, indent) {\n this.renderer = renderer;\n this.parent = parent;\n this.key = key;\n this.indent = indent;\n }\n get classMap() {\n return this.renderer.classMap;\n }\n writeKey(key) {\n const type = typeof key;\n if (type === 'string') {\n if (this.result.length > 0) {\n this.result.push(`<span class='${this.classMap.comma}'>,\\n</span>`);\n }\n this.indent && this.result.push(this.indent);\n this.result.push(`<span class=\"${this.classMap.key}\">\"${key}\"</span><span class='${this.classMap.assign}'>: </span>`);\n }\n else if (type === 'number') {\n if (this.result.length > 0) {\n this.result.push(`<span class='${this.classMap.comma}'>,\\n</span>`);\n }\n this.indent && this.result.push(this.indent);\n }\n }\n pushValue(key, value) {\n this.writeKey(key);\n if (value === null) {\n this.result.push(`<span class='${this.classMap.null}'>null</span>`);\n }\n else if (value instanceof Block) {\n this.result.push(value.renderStart() + value.renderValue() + value.renderEnd());\n }\n else {\n let valueClass;\n const type = typeof value;\n if (type === 'string') {\n value = `\"${value}\"`;\n value = value.replace(/&/g, \"&amp;\")\n .replace(/</g, \"&lt;\")\n .replace(/>/g, \"&gt;\");\n valueClass = this.classMap.string;\n }\n else if (type === 'number') {\n valueClass = this.classMap.number;\n }\n else if (type === 'boolean') {\n valueClass = this.classMap.boolean;\n }\n this.result.push(`<span class='${valueClass}'>${value}</span>`);\n }\n }\n renderValue() {\n return this.result.join('');\n }\n}\nclass ObjectBlock extends Block {\n constructor(renderer, parent, key, indent) {\n super(renderer, parent, key, indent);\n }\n renderStart() {\n return `<span class='${this.classMap.startObject}'>{\\n</span>`;\n }\n renderEnd() {\n const NL = this.result.length > 0 ? '\\n' : '';\n return `<span class='${this.classMap.endObject}'>${NL}${this.parent?.indent || ''}}</span>`;\n }\n}\nclass ArrayBlock extends Block {\n constructor(renderer, parent, key, indent) {\n super(renderer, parent, key, indent);\n }\n renderStart() {\n return `<span class='${this.classMap.startArray}'>[\\n</span>`;\n }\n renderEnd() {\n const NL = this.result.length > 0 ? '\\n' : '';\n return `<span class='${this.classMap.endArray}'>${NL}${this.parent?.indent || ''}]</span>`;\n }\n}\nclass JsonRenderer {\n classMap;\n tab;\n stack = [];\n block = new ObjectBlock(this, undefined, '', '');\n constructor(classMap = defaultClassMap, tab = ' ') {\n this.classMap = classMap;\n this.tab = tab;\n }\n onStartObject(key) {\n const nested = new ObjectBlock(this, this.block, key, this.block.indent + this.tab);\n this.stack.push(this.block);\n this.block = nested;\n }\n onEndObject() {\n const currentBlock = this.block;\n this.block = this.stack.pop();\n this.block.pushValue(currentBlock.key, currentBlock);\n }\n onStartIteration(key) {\n const nested = new ArrayBlock(this, this.block, key, this.block.indent + this.tab);\n this.stack.push(this.block);\n this.block = nested;\n }\n onEndIteration() {\n const currentBlock = this.block;\n this.block = this.stack.pop();\n this.block.pushValue(currentBlock.key, currentBlock);\n }\n onValue(key, value) {\n this.block.pushValue(key, value);\n }\n}\nfunction renderJson(json, classMap, className) {\n const renderer = new JsonRenderer(classMap);\n new ObjectWalker().walk(json, renderer);\n const out = renderer.block.renderValue();\n return _jsx(\"div\", { className: className, dangerouslySetInnerHTML: { __html: `<div class='${renderer.classMap.code}' style='overflow-x: scroll'>${out}</div>` } });\n}\nexport function JSONCode({ data, className, classMap }) {\n const [element, setElement] = useState();\n useEffect(() => {\n setElement(renderJson(data, classMap, className));\n }, [data]);\n return element;\n}\n//# sourceMappingURL=JSONCode.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { DotBadge } from \"@vertesia/ui/core\";\nimport clsx from \"clsx\";\nimport { computeTitleFromName } from \"../form/ManagedObject.js\";\nexport function JSONView({ value }) {\n return _jsx(\"div\", { className: \"flex flex-col gap-4\", children: Object.entries(value).map(([key, value]) => _jsx(PropertyElement, { name: key, value: value }, key)) });\n}\nfunction PropertyTitle({ name }) {\n return (_jsx(\"div\", { className: 'text-md font-semibold', children: computeTitleFromName(name) }));\n}\nfunction BlockElement({ children, className }) {\n return (_jsx(\"div\", { className: clsx('flex flex-col gap-4 py-2 pl-4 border-l-4 border-l-solid border-l-slate-100 dark:border-l-slate-600', className), children: children }));\n}\nfunction PropertyElement({ name, value }) {\n const info = getValueInfo(value);\n switch (info.type) {\n case ValueType.Inline:\n return (_jsxs(\"div\", { className: 'w-full flex gap-2', children: [_jsx(PropertyTitle, { name: name + ':' }), _jsx(\"p\", { children: info.value })] }));\n case ValueType.Paragraph:\n return (_jsxs(\"div\", { children: [_jsx(PropertyTitle, { name: name }), _jsx(\"p\", { children: info.value })] }));\n case ValueType.Prose:\n return (_jsxs(\"div\", { className: \"prose dark:prose-invert\", children: [_jsx(PropertyTitle, { name: name }), _jsx(\"div\", { className: 'vprose dark:prose-invert', children: info.value })] }));\n case ValueType.Array:\n return (_jsx(ArrayProperty, { name: name, value: value }));\n case ValueType.Object:\n return (_jsxs(\"div\", { children: [_jsx(PropertyTitle, { name: name }), _jsx(BlockElement, { className: 'mt-2', children: Object.entries(value).map(([key, value]) => _jsx(PropertyElement, { name: key, value: value }, key)) })] }));\n }\n}\nfunction ArrayProperty({ name, value }) {\n const inlineLength = value.join(' ').length;\n const itemMediumLength = inlineLength / value.length;\n const isInline = (typeof value[0] === 'string') && (inlineLength < 80 || inlineLength < 400 && itemMediumLength < 32);\n const useBullet = value.length > 9;\n return isInline ? (_jsxs(\"div\", { className: 'flex gap-2 flex-wrap', children: [name && _jsx(PropertyTitle, { name: name + ':' }), value.map((item, index) => _jsx(DotBadge, { children: String(item) }, index))] })) : (_jsxs(\"div\", { children: [name && _jsx(PropertyTitle, { name: name }), _jsx(\"div\", { className: 'flex flex-col gap-2', children: value.map((value, index) => _jsx(ItemProperty, { index: index, value: value, useBullet: useBullet }, index)) })] }));\n}\nfunction ItemProperty({ index, value, useBullet }) {\n const bullet = useBullet ? _jsx(\"span\", { className: 'text-xl', children: \"\\u2022\" }) : _jsxs(\"span\", { children: [index + 1, \".\"] });\n const info = getValueInfo(value);\n let content;\n switch (info.type) {\n case ValueType.Object:\n content = _jsx(BlockElement, { children: Object.entries(value).map(([key, value]) => _jsx(PropertyElement, { name: key, value: value }, key)) });\n break;\n case ValueType.Array:\n content = _jsx(ArrayProperty, { value: value });\n break;\n case ValueType.Prose:\n content = _jsx(\"div\", { className: \"prose dark:prose-invert\", children: info.value });\n break;\n default:\n content = _jsx(\"div\", { children: info.value });\n break;\n }\n return (_jsxs(\"div\", { className: 'flex gap-4 hover:bg-slate-50 dark:hover:bg-slate-800 py-2 pr-2 pl-4', children: [_jsx(\"div\", { className: 'font-semibold text-gray-600 dark:text-gray-400', children: bullet }), _jsx(\"div\", { children: content })] }));\n}\nvar ValueType;\n(function (ValueType) {\n ValueType[ValueType[\"Inline\"] = 0] = \"Inline\";\n ValueType[ValueType[\"Paragraph\"] = 1] = \"Paragraph\";\n ValueType[ValueType[\"Prose\"] = 2] = \"Prose\";\n ValueType[ValueType[\"Array\"] = 3] = \"Array\";\n ValueType[ValueType[\"Object\"] = 4] = \"Object\";\n})(ValueType || (ValueType = {}));\nfunction getValueInfo(value) {\n if (value == null) {\n return {\n value: '-',\n type: ValueType.Inline\n };\n }\n if (Array.isArray(value)) {\n return {\n value,\n type: ValueType.Array\n };\n }\n const type = typeof value;\n if (type === 'string') {\n const len = value.length;\n let type;\n if (len < 80) {\n type = ValueType.Inline;\n }\n else if (len > 400) {\n type = ValueType.Prose;\n }\n else {\n type = ValueType.Paragraph;\n value = value.replace(/(?:\\n\\n)+/g, '\\n\\n');\n }\n return { type, value };\n }\n else if (type === 'number' || type === 'boolean') {\n return {\n value: String(value),\n type: ValueType.Inline\n };\n }\n else {\n return {\n value,\n type: ValueType.Object\n };\n }\n}\n//# sourceMappingURL=JSONView.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { JSONCode } from './JSONCode.js';\nimport { JSONView } from './JSONView.js';\nexport function JSONDisplay({ value, viewCode = false }) {\n if (!value) {\n return (_jsx(\"pre\", { className: \"whitespace-pre-wrap\", children: \"No Data to display\" }));\n }\n return (_jsx(\"div\", { className: 'relative w-full', children: viewCode ? _jsx(JSONCode, { data: value }) : _jsx(JSONView, { value: value }) }));\n}\n//# sourceMappingURL=JSONDisplay.js.map","import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Component, memo, useState, useRef, useCallback } from 'react';\nimport { toPng } from 'html-to-image';\nimport { Download, Copy, Check } from 'lucide-react';\nimport { ResponsiveContainer, BarChart, LineChart, ComposedChart, AreaChart, PieChart, ScatterChart, RadarChart, RadialBarChart, FunnelChart, Treemap, Bar, Line, Area, Pie, Cell, Scatter, Radar, RadialBar, Funnel, LabelList, PolarGrid, PolarAngleAxis, PolarRadiusAxis, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ReferenceLine, } from 'recharts';\n// Default color palette for charts\nconst COLORS = ['#4f46e5', '#06b6d4', '#22c55e', '#f59e0b', '#ef4444', '#8b5cf6', '#ec4899', '#14b8a6'];\nclass ChartErrorBoundary extends Component {\n constructor(props) {\n super(props);\n this.state = { hasError: false, error: null };\n }\n static getDerivedStateFromError(error) {\n return { hasError: true, error };\n }\n componentDidCatch(error, errorInfo) {\n console.error(`Chart rendering error (${this.props.chartType}):`, error, errorInfo);\n }\n render() {\n if (this.state.hasError) {\n return (_jsx(\"div\", { className: \"flex items-center justify-center h-full bg-red-50 dark:bg-red-950 rounded-md p-4\", children: _jsxs(\"div\", { className: \"text-center\", children: [_jsxs(\"p\", { className: \"text-sm font-medium text-red-600 dark:text-red-400\", children: [\"Cannot render \", this.props.chartType, \" chart\"] }), _jsx(\"p\", { className: \"text-xs text-red-500 dark:text-red-500 mt-1 max-w-xs truncate\", children: this.state.error?.message || 'Unknown error' })] }) }));\n }\n return this.props.children;\n }\n}\nfunction formatNumber(n) {\n if (!isFinite(n))\n return String(n);\n const abs = Math.abs(n);\n if (abs >= 1_000_000_000)\n return (n / 1_000_000_000).toFixed(1) + 'B';\n if (abs >= 1_000_000)\n return (n / 1_000_000).toFixed(1) + 'M';\n if (abs >= 1_000)\n return (n / 1_000).toFixed(1) + 'K';\n return n.toLocaleString();\n}\n// Memoized chart component to prevent unnecessary re-renders\nexport const AgentChart = memo(function AgentChart({ spec }) {\n const { chart, title, description, data, xKey, series, yAxis, options, nameKey, valueKey, yKey, zKey: _zKey, axisKey, dataKey, } = spec;\n const [isExporting, setIsExporting] = useState(false);\n const [isCopied, setIsCopied] = useState(false);\n const chartRef = useRef(null);\n const handleCopy = useCallback(async () => {\n if (!chartRef.current || isCopied)\n return;\n try {\n const dataUrl = await toPng(chartRef.current, {\n backgroundColor: '#ffffff',\n pixelRatio: 2,\n });\n const response = await fetch(dataUrl);\n const blob = await response.blob();\n await navigator.clipboard.write([\n new ClipboardItem({ 'image/png': blob })\n ]);\n setIsCopied(true);\n setTimeout(() => setIsCopied(false), 2000);\n }\n catch (err) {\n console.error('Failed to copy chart:', err);\n }\n }, [isCopied]);\n const handleExport = useCallback(async () => {\n if (!chartRef.current || isExporting)\n return;\n setIsExporting(true);\n try {\n const dataUrl = await toPng(chartRef.current, {\n backgroundColor: '#ffffff',\n pixelRatio: 2,\n });\n const link = document.createElement('a');\n link.download = `${title || 'chart'}.png`;\n link.href = dataUrl;\n link.click();\n }\n catch (err) {\n console.error('Failed to export chart:', err);\n }\n finally {\n setIsExporting(false);\n }\n }, [title, isExporting]);\n // Safe arrays - default to empty array if undefined\n const safeSeries = series || [];\n const safeData = data || [];\n const commonAxes = (_jsxs(_Fragment, { children: [_jsx(XAxis, { dataKey: xKey, tick: { fontSize: 12 } }), _jsx(YAxis, { yAxisId: \"left\", tickFormatter: formatNumber, label: yAxis?.left?.label ? { value: yAxis.left.label, angle: -90, position: 'insideLeft' } : undefined }), safeSeries.some((s) => s.yAxisId === 'right') && (_jsx(YAxis, { yAxisId: \"right\", orientation: \"right\", tickFormatter: formatNumber, label: yAxis?.right?.label ? { value: yAxis.right.label, angle: -90, position: 'insideRight' } : undefined }))] }));\n const commonOverlays = (_jsxs(_Fragment, { children: [_jsx(CartesianGrid, { strokeDasharray: \"3 3\" }), _jsx(Tooltip, { formatter: (value) => (typeof value === 'number' ? formatNumber(value) : String(value)) }), _jsx(Legend, {}), options?.referenceZero && _jsx(ReferenceLine, { y: 0, stroke: \"#999\", strokeDasharray: \"3 3\" })] }));\n const renderSeries = () => safeSeries.map((s, idx) => {\n const color = s.color || COLORS[idx % COLORS.length];\n const yAxisId = s.yAxisId || 'left';\n if (chart === 'line') {\n return (_jsx(Line, { type: \"monotone\", dataKey: s.key, name: s.label || s.key, stroke: color, dot: s.dot ?? false, yAxisId: yAxisId }, s.key));\n }\n if (chart === 'area') {\n return (_jsx(Area, { type: \"monotone\", dataKey: s.key, name: s.label || s.key, stroke: color, fill: color, fillOpacity: 0.3, stackId: options?.stacked ? (s.stackId || 'stack') : undefined, yAxisId: yAxisId }, s.key));\n }\n if (chart === 'bar' || s.type === 'bar') {\n return (_jsx(Bar, { dataKey: s.key, name: s.label || s.key, fill: color, stackId: options?.stacked ? (s.stackId || 'stack') : undefined, yAxisId: yAxisId }, s.key));\n }\n if (s.type === 'area') {\n return (_jsx(Area, { type: \"monotone\", dataKey: s.key, name: s.label || s.key, stroke: color, fill: color, fillOpacity: 0.3, stackId: options?.stacked ? (s.stackId || 'stack') : undefined, yAxisId: yAxisId }, s.key));\n }\n // default to line in composed\n return (_jsx(Line, { type: \"monotone\", dataKey: s.key, name: s.label || s.key, stroke: color, dot: s.dot ?? false, yAxisId: yAxisId }, s.key));\n });\n // Render Pie Chart\n const renderPieChart = () => {\n const nKey = nameKey || 'name';\n const vKey = valueKey || 'value';\n const innerRadius = options?.innerRadius || 0;\n return (_jsxs(PieChart, { children: [_jsx(Pie, { data: safeData, dataKey: vKey, nameKey: nKey, cx: \"50%\", cy: \"50%\", innerRadius: innerRadius, outerRadius: 100, label: options?.showLabels !== false, children: safeData.map((_, index) => (_jsx(Cell, { fill: COLORS[index % COLORS.length] }, `cell-${index}`))) }), _jsx(Tooltip, { formatter: (value) => (typeof value === 'number' ? formatNumber(value) : String(value)) }), _jsx(Legend, {})] }));\n };\n // Render Scatter Chart\n const renderScatterChart = () => {\n const xDataKey = xKey;\n const yDataKey = yKey || 'y';\n return (_jsxs(ScatterChart, { children: [_jsx(CartesianGrid, { strokeDasharray: \"3 3\" }), _jsx(XAxis, { dataKey: xDataKey, name: xDataKey, tick: { fontSize: 12 } }), _jsx(YAxis, { dataKey: yDataKey, name: yDataKey, tickFormatter: formatNumber }), _jsx(Tooltip, { formatter: (value) => (typeof value === 'number' ? formatNumber(value) : String(value)) }), _jsx(Legend, {}), safeSeries.length > 0 ? (safeSeries.map((s, idx) => (_jsx(Scatter, { name: s.label || s.key, data: safeData, fill: s.color || COLORS[idx % COLORS.length] }, s.key)))) : (_jsx(Scatter, { name: \"Data\", data: safeData, fill: COLORS[0] }))] }));\n };\n // Render Radar Chart\n const renderRadarChart = () => {\n const aKey = axisKey || xKey || 'axis';\n return (_jsxs(RadarChart, { cx: \"50%\", cy: \"50%\", outerRadius: 100, data: safeData, children: [_jsx(PolarGrid, {}), _jsx(PolarAngleAxis, { dataKey: aKey, tick: { fontSize: 11 } }), _jsx(PolarRadiusAxis, { tickFormatter: formatNumber }), safeSeries.map((s, idx) => (_jsx(Radar, { name: s.label || s.key, dataKey: s.key, stroke: s.color || COLORS[idx % COLORS.length], fill: s.color || COLORS[idx % COLORS.length], fillOpacity: 0.3 }, s.key))), _jsx(Tooltip, { formatter: (value) => (typeof value === 'number' ? formatNumber(value) : String(value)) }), _jsx(Legend, {})] }));\n };\n // Render RadialBar Chart\n const renderRadialBarChart = () => {\n const nKey = nameKey || 'name';\n const vKey = valueKey || 'value';\n const startAngle = options?.startAngle ?? 180;\n const endAngle = options?.endAngle ?? 0;\n const innerRadius = options?.innerRadius ?? 30;\n return (_jsxs(RadialBarChart, { cx: \"50%\", cy: \"50%\", innerRadius: innerRadius, outerRadius: 100, barSize: 15, data: safeData, startAngle: startAngle, endAngle: endAngle, children: [_jsx(RadialBar, { label: { position: 'insideStart', fill: '#fff', fontSize: 11 }, background: true, dataKey: vKey, children: safeData.map((_, index) => (_jsx(Cell, { fill: COLORS[index % COLORS.length] }, `cell-${index}`))) }), _jsx(Tooltip, { formatter: (value) => (typeof value === 'number' ? formatNumber(value) : String(value)) }), _jsx(Legend, { iconSize: 10, layout: \"vertical\", verticalAlign: \"middle\", align: \"right\", formatter: (value, entry) => {\n const item = safeData.find((d) => d[nKey] === value || d[vKey] === entry.payload?.value);\n return item ? item[nKey] : value;\n } })] }));\n };\n // Render Funnel Chart\n const renderFunnelChart = () => {\n const nKey = nameKey || 'name';\n const vKey = valueKey || 'value';\n return (_jsxs(FunnelChart, { children: [_jsx(Tooltip, { formatter: (value) => (typeof value === 'number' ? formatNumber(value) : String(value)) }), _jsxs(Funnel, { dataKey: vKey, data: safeData, isAnimationActive: true, children: [safeData.map((_, index) => (_jsx(Cell, { fill: COLORS[index % COLORS.length] }, `cell-${index}`))), options?.showLabels !== false && (_jsx(LabelList, { position: \"center\", fill: \"#fff\", stroke: \"none\", dataKey: nKey }))] })] }));\n };\n // Render Treemap\n const renderTreemap = () => {\n const dKey = dataKey || valueKey || 'value';\n return (_jsx(Treemap, { data: safeData, dataKey: dKey, aspectRatio: 4 / 3, stroke: \"#fff\", fill: \"#4f46e5\", content: ({ x, y, width, height, name, value, index }) => {\n const fill = COLORS[index % COLORS.length];\n return (_jsxs(\"g\", { children: [_jsx(\"rect\", { x: x, y: y, width: width, height: height, style: { fill, stroke: '#fff', strokeWidth: 2 } }), width > 50 && height > 30 && (_jsxs(_Fragment, { children: [_jsx(\"text\", { x: x + width / 2, y: y + height / 2 - 7, textAnchor: \"middle\", fill: \"#fff\", fontSize: 12, children: name }), _jsx(\"text\", { x: x + width / 2, y: y + height / 2 + 10, textAnchor: \"middle\", fill: \"#fff\", fontSize: 11, children: formatNumber(value) })] }))] }));\n } }));\n };\n // Render chart based on type\n const renderChart = () => {\n switch (chart) {\n case 'bar':\n return (_jsxs(BarChart, { data: safeData, children: [commonAxes, commonOverlays, renderSeries()] }));\n case 'line':\n return (_jsxs(LineChart, { data: safeData, children: [commonAxes, commonOverlays, renderSeries()] }));\n case 'area':\n return (_jsxs(AreaChart, { data: safeData, children: [commonAxes, commonOverlays, renderSeries()] }));\n case 'composed':\n return (_jsxs(ComposedChart, { data: safeData, children: [commonAxes, commonOverlays, renderSeries()] }));\n case 'pie':\n return renderPieChart();\n case 'scatter':\n return renderScatterChart();\n case 'radar':\n return renderRadarChart();\n case 'radialBar':\n return renderRadialBarChart();\n case 'funnel':\n return renderFunnelChart();\n case 'treemap':\n return renderTreemap();\n default:\n return (_jsxs(ComposedChart, { data: safeData, children: [commonAxes, commonOverlays, renderSeries()] }));\n }\n };\n return (_jsx(\"div\", { className: \"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm\", children: _jsxs(\"div\", { className: \"flex flex-col gap-2 p-3\", children: [_jsxs(\"div\", { className: \"flex items-center justify-between\", children: [_jsx(\"span\", { className: \"font-medium text-sm text-gray-900 dark:text-gray-100\", children: title || 'Chart' }), _jsxs(\"div\", { className: \"flex items-center gap-2 print:hidden chart-actions\", children: [_jsxs(\"button\", { onClick: handleCopy, disabled: isCopied, 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: [isCopied ? _jsx(Check, { className: \"w-3 h-3\" }) : _jsx(Copy, { className: \"w-3 h-3\" }), isCopied ? 'Copied' : 'Copy'] }), _jsxs(\"button\", { onClick: handleExport, disabled: isExporting, 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: [_jsx(Download, { className: \"w-3 h-3\" }), isExporting ? 'Exporting...' : 'Export'] })] })] }), description && (_jsx(\"span\", { className: \"text-xs text-gray-500 dark:text-gray-400\", children: description })), _jsx(\"div\", { ref: chartRef, className: \"bg-white dark:bg-gray-900 rounded\", style: { width: '100%', height: 280, minWidth: 0 }, children: _jsx(ChartErrorBoundary, { chartType: chart, children: _jsx(ResponsiveContainer, { width: \"100%\", height: \"100%\", children: renderChart() }) }) })] }) }));\n}, (prevProps, nextProps) => {\n // Deep compare the spec to prevent re-renders when data hasn't changed\n return JSON.stringify(prevProps.spec) === JSON.stringify(nextProps.spec);\n});\n//# sourceMappingURL=AgentChart.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport Markdown, { defaultUrlTransform } from \"react-markdown\";\nimport remarkGfm from \"remark-gfm\";\nimport { visit, SKIP } from \"unist-util-visit\";\nimport { AgentChart } from \"../../features/agent/chat/AgentChart\";\nimport { useUserSession } from \"@vertesia/ui/session\";\n// Custom URL schemes that we handle in our components\nconst ALLOWED_CUSTOM_SCHEMES = [\n 'artifact:',\n 'image:',\n 'store:',\n 'document:',\n 'document://',\n 'collection:',\n];\n/**\n * Custom URL transform that allows our custom schemes while using\n * the default transform for standard URLs (which sanitizes unsafe schemes).\n */\nfunction customUrlTransform(url) {\n // Allow our custom schemes - they're handled by our custom components\n if (ALLOWED_CUSTOM_SCHEMES.some(scheme => url.startsWith(scheme))) {\n return url;\n }\n // Fall back to default sanitization for other URLs\n return defaultUrlTransform(url);\n}\nfunction remarkRemoveComments() {\n return (tree) => {\n visit(tree, 'html', (node, index, parent) => {\n if (node.value && /<!--[\\s\\S]*?-->/.test(node.value)) {\n if (parent && typeof index === 'number' && parent.children) {\n parent.children.splice(index, 1);\n return [SKIP, index];\n }\n }\n });\n };\n}\nexport function MarkdownRenderer({ children, components, remarkPlugins = [], removeComments = true, artifactRunId, }) {\n const { client } = useUserSession();\n const plugins = [remarkGfm, ...remarkPlugins];\n if (removeComments) {\n plugins.push(remarkRemoveComments);\n }\n const componentsWithCharts = React.useMemo(() => {\n const baseComponents = components || {};\n const ExistingCode = baseComponents.code;\n const ExistingLink = baseComponents.a;\n const ExistingImg = baseComponents.img;\n const CodeComponent = ({ node, className, children, ...props }) => {\n const match = /language-(\\w+)/.exec(className || \"\");\n const isInline = !match;\n const language = match ? match[1] : \"\";\n if (!isInline && (language === \"chart\" || className?.includes(\"language-chart\"))) {\n try {\n const raw = String(children || \"\").trim();\n const spec = JSON.parse(raw);\n if (spec && spec.chart && Array.isArray(spec.data)) {\n return _jsx(AgentChart, { spec: spec });\n }\n }\n catch (e) {\n console.warn(\"Failed to parse chart spec:\", e);\n }\n }\n if (typeof ExistingCode === \"function\") {\n return _jsx(ExistingCode, { node: node, className: className, ...props, children: children });\n }\n return (_jsx(\"code\", { ...props, className: isInline\n ? \"px-1.5 py-0.5 rounded\"\n : \"text-muted\", children: children }));\n };\n const LinkComponent = (props) => {\n const { node, href, children, ...rest } = props;\n const rawHref = href || \"\";\n const isArtifactLink = rawHref.startsWith(\"artifact:\");\n const artifactPath = isArtifactLink ? rawHref.replace(/^artifact:/, \"\").trim() : \"\";\n const isImageLink = rawHref.startsWith(\"image:\");\n const imagePath = isImageLink ? rawHref.replace(/^image:/, \"\").trim() : \"\";\n const [resolvedHref, setResolvedHref] = React.useState(undefined);\n React.useEffect(() => {\n let cancelled = false;\n const resolve = async () => {\n if (!isArtifactLink && !isImageLink) {\n setResolvedHref(undefined);\n return;\n }\n try {\n if (isArtifactLink) {\n // If we have a run id and the path looks like a shorthand (e.g. out/...), use artifact API.\n if (artifactRunId && !artifactPath.startsWith(\"agents/\")) {\n const { url } = await client.files.getArtifactDownloadUrl(artifactRunId, artifactPath, \"attachment\");\n if (!cancelled) {\n setResolvedHref(url);\n }\n }\n else {\n // Otherwise, treat it as a direct file path.\n const { url } = await client.files.getDownloadUrl(artifactPath);\n if (!cancelled) {\n setResolvedHref(url);\n }\n }\n }\n else if (isImageLink) {\n // image:<path> is treated as a direct file path resolved via files API\n const { url } = await client.files.getDownloadUrl(imagePath);\n if (!cancelled) {\n setResolvedHref(url);\n }\n }\n }\n catch (err) {\n const contextPath = isArtifactLink ? artifactPath : imagePath;\n console.error(\"Failed to resolve link in MarkdownRenderer:\", contextPath, err);\n if (!cancelled) {\n setResolvedHref(undefined);\n }\n }\n };\n resolve();\n return () => {\n cancelled = true;\n };\n }, [isArtifactLink, artifactPath, isImageLink, imagePath, artifactRunId, client]);\n // Handle document://<id> links by mapping them to /store/objects/<id>\n if (rawHref.startsWith(\"document://\")) {\n const id = rawHref.replace(/^document:\\/\\//, \"\").trim();\n const mappedHref = id ? `/store/objects/${id}` : rawHref;\n if (typeof ExistingLink === \"function\") {\n return _jsx(ExistingLink, { node: node, href: mappedHref, ...rest, children: children });\n }\n return (_jsx(\"a\", { href: mappedHref, ...rest, target: \"_blank\", rel: \"noopener noreferrer\", children: children }));\n }\n // Handle store:<id> links by mapping them to /store/objects/<id>\n if (rawHref.startsWith(\"store:\")) {\n const id = rawHref.replace(/^store:/, \"\").trim();\n const mappedHref = id ? `/store/objects/${id}` : rawHref;\n if (typeof ExistingLink === \"function\") {\n return _jsx(ExistingLink, { node: node, href: mappedHref, ...rest, children: children });\n }\n return (_jsx(\"a\", { href: mappedHref, ...rest, target: \"_blank\", rel: \"noopener noreferrer\", children: children }));\n }\n // Handle collection:<id> links by mapping them to /store/collections/<id>\n if (rawHref.startsWith(\"collection:\")) {\n const id = rawHref.replace(/^collection:/, \"\").trim();\n const mappedHref = id ? `/store/collections/${id}` : rawHref;\n if (typeof ExistingLink === \"function\") {\n return _jsx(ExistingLink, { node: node, href: mappedHref, ...rest, children: children });\n }\n return (_jsx(\"a\", { href: mappedHref, ...rest, target: \"_blank\", rel: \"noopener noreferrer\", children: children }));\n }\n // Defer to existing link component if provided and not an artifact: URL\n if (!isArtifactLink && !isImageLink && typeof ExistingLink === \"function\") {\n return _jsx(ExistingLink, { node: node, href: href, ...rest, children: children });\n }\n // Handle artifact: links generically by resolving to a signed URL when possible.\n if (isArtifactLink) {\n const finalHref = resolvedHref || \"#\";\n return (_jsx(\"a\", { href: finalHref, ...rest, target: \"_blank\", rel: \"noopener noreferrer\", children: children }));\n }\n // Handle image: links by resolving to a signed URL when possible.\n if (isImageLink) {\n const finalHref = resolvedHref || \"#\";\n return (_jsx(\"a\", { href: finalHref, ...rest, target: \"_blank\", rel: \"noopener noreferrer\", children: children }));\n }\n // Default link behavior\n return (_jsx(\"a\", { href: href, ...rest, target: \"_blank\", rel: \"noopener noreferrer\", children: children }));\n };\n const ImageComponent = (props) => {\n const { node, src, alt, ...rest } = props;\n const rawSrc = src || \"\";\n const isArtifactRef = rawSrc.startsWith(\"artifact:\");\n const isImageRef = rawSrc.startsWith(\"image:\");\n const isArtifactOrImageRef = isArtifactRef || isImageRef;\n const path = isArtifactOrImageRef ? rawSrc.replace(/^artifact:/, \"\").replace(/^image:/, \"\").trim() : \"\";\n const [resolvedSrc, setResolvedSrc] = React.useState(undefined);\n React.useEffect(() => {\n let cancelled = false;\n const resolve = async () => {\n if (!isArtifactOrImageRef) {\n setResolvedSrc(undefined);\n return;\n }\n try {\n if (isArtifactRef) {\n // Allow shorthand artifact paths when we have a run id\n if (artifactRunId && !path.startsWith(\"agents/\")) {\n const { url } = await client.files.getArtifactDownloadUrl(artifactRunId, path, \"inline\");\n if (!cancelled) {\n setResolvedSrc(url);\n }\n }\n else {\n const { url } = await client.files.getDownloadUrl(path);\n if (!cancelled) {\n setResolvedSrc(url);\n }\n }\n }\n else if (isImageRef) {\n // image:<path> is always resolved via files API\n const { url } = await client.files.getDownloadUrl(path);\n if (!cancelled) {\n setResolvedSrc(url);\n }\n }\n }\n catch (err) {\n console.error(\"Failed to resolve image link in MarkdownRenderer:\", path, err);\n if (!cancelled) {\n setResolvedSrc(undefined);\n }\n }\n };\n resolve();\n return () => {\n cancelled = true;\n };\n }, [isArtifactOrImageRef, path, artifactRunId, client]);\n // If a custom img component was passed and this is not an artifact:/image: URL, delegate.\n if (!isArtifactOrImageRef && typeof ExistingImg === \"function\") {\n return _jsx(ExistingImg, { node: node, src: src, alt: alt, ...rest });\n }\n if (isArtifactOrImageRef) {\n if (!resolvedSrc) {\n // Render nothing or a minimal placeholder until resolved\n return null;\n }\n return (_jsx(\"img\", { src: resolvedSrc, alt: alt, ...rest }));\n }\n // Default image behavior\n return (_jsx(\"img\", { src: src, alt: alt, ...rest }));\n };\n return {\n ...baseComponents,\n code: CodeComponent,\n a: LinkComponent,\n img: ImageComponent,\n };\n }, [components, client, artifactRunId]);\n return (_jsx(Markdown, { remarkPlugins: plugins, components: componentsWithCharts, urlTransform: customUrlTransform, children: children }));\n}\n//# sourceMappingURL=MarkdownRenderer.js.map","import { createContext, useContext } from \"react\";\nconst PopoverContext = createContext(undefined);\nexport function usePopoverContext() {\n return useContext(PopoverContext);\n}\nexport { PopoverContext };\n//# sourceMappingURL=context.js.map","import { Children, isValidElement } from \"react\";\nconst __SLOT_NAME = Symbol('__SLOT_NAME');\nexport function processOneSlot(child, out, slots) {\n let slotName;\n if (isValidElement(child) && (slotName = child.type[__SLOT_NAME])) {\n slots[slotName] = child;\n }\n else {\n out.push(child);\n }\n}\nexport function processSlots(children, slots) {\n const out = [];\n Children.forEach(children, child => {\n processOneSlot(child, out, slots);\n });\n return out.length > 1 ? out : out[0];\n}\nexport function defineSlot(name, component) {\n component[__SLOT_NAME] = name;\n}\n//# sourceMappingURL=slots.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { flip, offset, shift } from \"@floating-ui/dom\";\nimport { FloatingFocusManager, FloatingPortal, autoUpdate, safePolygon, useClick, useDismiss, useFloating, useHover, useInteractions, useTransitionStyles } from \"@floating-ui/react\";\nimport clsx from \"clsx\";\nimport { useState } from \"react\";\nimport { PopoverContext } from \"./context\";\nimport { defineSlot, processSlots } from \"./slots\";\nfunction computeElementProps(value) {\n if (!value)\n return { enabled: false };\n return (typeof value === 'boolean' ? { enabled: value } : value);\n}\nfunction getHoverProps(props) {\n return props?.hover === true ? {\n enabled: true,\n handleClose: safePolygon({ blockPointerEvents: true }),\n restMs: 0,\n } : props?.hover;\n}\nfunction getClickProps(props) {\n return props && !props.hover && !props.click ? {\n enabled: true,\n } : props?.click;\n}\n/**\n * The component is instantiated when all interactions are known\n * @param param0\n * @returns\n */\nexport function Popover(props) {\n const slots = {};\n processSlots(props.children, slots);\n if (!slots.content) {\n throw new Error('Popover must provide a content slot');\n }\n const triggerProps = slots.trigger?.props;\n const contentProps = slots.content.props;\n // wait for the trigger to be defined\n return _jsx(ResolvedPopover, { ...props, trigger: triggerProps, content: contentProps });\n}\nfunction ResolvedPopover({ middleware, offset: defaultOffset, trigger, dismiss = true, content, placement, strategy, zIndex = 40 }) {\n const [isOpen, setIsOpen] = useState(false);\n const floating = useFloating({\n open: isOpen,\n placement,\n strategy,\n onOpenChange: setIsOpen,\n middleware: middleware || [offset(defaultOffset || 4), shift(), flip()],\n whileElementsMounted: autoUpdate // stick to the anchor when resizing / scrolling\n });\n const { floatingStyles, refs: { setReference, setFloating }, context, } = floating;\n const dismissInteraction = useDismiss(context, computeElementProps(dismiss));\n const clickInteraction = useClick(context, computeElementProps(getClickProps(trigger)));\n const hoverInteraction = useHover(context, computeElementProps(getHoverProps(trigger)));\n const { getReferenceProps, getFloatingProps, } = useInteractions([dismissInteraction, clickInteraction, hoverInteraction]);\n const { isMounted, styles: transitionStyles } = useTransitionStyles(context, content.transition);\n return (_jsxs(PopoverContext.Provider, { value: {\n ...floating,\n close: () => setIsOpen(false)\n }, children: [trigger &&\n _jsx(\"div\", { className: clsx(trigger.className, \"inline-block\"), ref: setReference, ...getReferenceProps(), children: trigger.children }), _jsx(FloatingPortal, { children: isMounted && (_jsx(\"div\", { ref: setFloating, style: { ...floatingStyles, zIndex: zIndex }, ...getFloatingProps(), children: _jsx(FloatingFocusManager, { context: context, children: _jsx(\"div\", { className: clsx(content.className, \"bg-popover rounded-md text-popover-foreground max-w-md\"), style: transitionStyles, children: content.children }) }) })) })] }));\n}\nfunction PopoverTrigger(_props) {\n return null;\n}\ndefineSlot('trigger', PopoverTrigger);\nfunction PopoverContent(_props) {\n return null;\n}\ndefineSlot('content', PopoverContent);\nPopover.Trigger = PopoverTrigger;\nPopover.Content = PopoverContent;\n//# sourceMappingURL=Popover.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Progress({ percent }) {\n return (_jsx(\"div\", { className: \"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700\", children: _jsx(\"div\", { className: \"bg-blue-600 h-2.5 rounded-full\", style: { width: `${percent}%` } }) }));\n}\n//# sourceMappingURL=Progress.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Table, VTooltip } from \"@vertesia/ui/core\";\nimport { Info } from \"lucide-react\";\nexport function PropertiesView({ className, properties }) {\n return (_jsx(Table, { className: className, children: _jsx(\"tbody\", { children: properties.map((property) => (_jsxs(\"tr\", { children: [_jsxs(\"td\", { className: 'w-1/3 font-semibold gap-2', children: [_jsx(\"span\", { children: property.name }), property.description &&\n _jsx(VTooltip, { description: property.description, placement: \"top\", children: _jsx(Info, { className: \"size-3 ml-2 text-muted-foreground\" }) })] }), _jsx(\"td\", { className: 'w-2/3', children: property.value ?? 'undefined' })] }, property.name))) }) }));\n}\n//# sourceMappingURL=PropertiesView.js.map","export var TypeNames;\n(function (TypeNames) {\n TypeNames[\"string\"] = \"string\";\n TypeNames[\"number\"] = \"number\";\n TypeNames[\"integer\"] = \"integer\";\n TypeNames[\"boolean\"] = \"boolean\";\n TypeNames[\"object\"] = \"object\";\n TypeNames[\"any\"] = \"any\";\n TypeNames[\"text\"] = \"text\";\n TypeNames[\"media\"] = \"media\";\n TypeNames[\"document\"] = \"document\";\n})(TypeNames || (TypeNames = {}));\nexport function parseTypeSignature(text) {\n text = text.trim();\n let isArray = false, isNullable = false;\n if (text.endsWith('?')) {\n isNullable = true;\n text = text.substring(0, text.length - 1).trim();\n }\n if (text.endsWith('[]')) {\n isArray = true;\n text = text.substring(0, text.length - 2).trim();\n }\n const name = TypeNames[text];\n if (!name) {\n throw new Error(`Unknown type \"${text}\"`);\n }\n return { name, isArray, isNullable, isObject: name === TypeNames.object };\n}\n//# sourceMappingURL=type-signature.js.map","export function setPropertyName(schema, name, newName) {\n if (schema.properties) {\n const properties = schema.properties;\n const newProperties = {};\n for (const key of Object.keys(properties)) {\n const value = properties[key];\n if (key === name) {\n newProperties[newName] = value;\n }\n else {\n newProperties[key] = value;\n }\n }\n schema.properties = newProperties;\n }\n if (schema.required) {\n schema.required = schema.required.map(x => x === name ? newName : x);\n }\n}\nexport function setRequireProperty(schema, name, isRequired) {\n if (Array.isArray(schema.required)) {\n const index = schema.required.indexOf(name);\n if (isRequired) {\n if (index < 0) {\n schema.required.push(name);\n }\n }\n else {\n if (index > -1) {\n schema.required.splice(index, 1);\n }\n }\n }\n else if (isRequired) {\n schema.required = [name];\n }\n}\nexport function setPropertyType(schema, type) {\n const isAny = type.name === \"any\";\n let typeObj = isAny ?\n undefined\n : (type.isNullable ?\n [type.name, \"null\"]\n : type.name);\n if (type.isArray) {\n schema.type = \"array\";\n schema.properties = undefined;\n if (!schema.items || Array.isArray(schema.items)) {\n schema.items = {\n type: typeObj,\n properties: type.isObject ? {} : undefined\n };\n }\n else {\n const items = schema.items;\n items.type = typeObj;\n if (type.isObject && !items.properties) {\n items.properties = {};\n }\n }\n }\n else {\n schema.type = typeObj;\n schema.items = undefined;\n if (type.isObject) {\n if (!schema.properties) {\n schema.properties = {};\n }\n }\n else {\n schema.properties = undefined;\n }\n }\n}\nexport function removeProperty(schema, name) {\n if (schema.properties) {\n delete schema.properties[name];\n if (Array.isArray(schema.required)) {\n schema.required = schema.required.filter(x => x !== name);\n }\n }\n}\n/**\n * Create a new property in the schema\n * @param schema\n * @param name\n * @param type\n * @param isRequired\n */\nexport function addProperty(schema, name, type, isRequired = false) {\n if (schema.type !== \"object\") {\n throw new Error(\"Cannot add property to a non-object schema\");\n }\n if (!schema.properties) {\n schema.properties = {};\n }\n const newSchema = {};\n setPropertyType(newSchema, type);\n schema.properties[name] = newSchema;\n if (isRequired) {\n if (Array.isArray(schema.required)) {\n addRequired(schema.required, name);\n }\n else {\n schema.required = [name];\n }\n }\n return newSchema;\n}\nexport function getTypeSignature(schema) {\n let isNullable = false, isArray = false;\n let typeName;\n const type = schema.type;\n if (Array.isArray(type)) {\n for (const t of type) {\n if (t === \"null\") {\n isNullable = true;\n }\n else if (!typeName) {\n typeName = t;\n }\n }\n }\n else {\n typeName = type;\n }\n if (!typeName) {\n typeName = \"any\";\n }\n if (typeName === 'array') {\n isArray = true;\n typeName = getItemTypeName(schema.items);\n }\n let displayTypeName = typeName;\n switch (schema.editor) {\n case 'textarea': {\n displayTypeName = 'text';\n break;\n }\n case 'media': {\n displayTypeName = 'media';\n break;\n }\n case 'document': {\n displayTypeName = 'document';\n break;\n }\n }\n return {\n isNullable,\n isArray,\n isObject: typeName === \"object\",\n name: displayTypeName\n };\n}\n// TODO we don't support array of arrays\n// for array of multiple type we get the first type\nfunction getItemTypeName(schema) {\n if (!schema) {\n return \"any\";\n }\n let name;\n if (Array.isArray(schema)) {\n name = getFirstNotNullType(schema[0].type);\n }\n else {\n name = getFirstNotNullType(schema.type);\n }\n if (name === \"array\" || name === \"null\") {\n name = \"any\";\n }\n return name;\n}\nfunction getFirstNotNullType(type) {\n if (!type) {\n return \"any\";\n }\n if (Array.isArray(type)) {\n return type.find(x => x !== \"null\") || \"any\";\n }\n return type;\n}\nfunction addRequired(required, name) {\n if (!required.includes(name)) {\n required.push(name);\n }\n}\n//# sourceMappingURL=json-schema4-utils.js.map","import { TypeNames, parseTypeSignature } from \"./type-signature.js\";\nimport { addProperty, getTypeSignature, removeProperty, setPropertyName, setPropertyType, setRequireProperty } from \"./json-schema4-utils.js\";\nlet new_prop_name_cnt = 0;\nexport class ManagedSchema {\n // the schema source contains information about where the schema was loaded\n // the uri serves to retrieve the schema and for now only store:ID URIs are supported\n source;\n onChange = () => { };\n schema;\n root;\n constructor(schema, title) {\n if (!schema) {\n this.schema = {\n title: title,\n type: \"object\",\n properties: {},\n };\n }\n else if (typeof schema === 'string') {\n this.schema = JSON.parse(schema);\n }\n else {\n this.schema = schema;\n }\n if (!this.schema.properties) {\n this.schema.properties = {};\n }\n this.root = new SchemaNode(\"\", this.schema, this);\n this.root.loadChildren();\n }\n get isEmpty() {\n return !this.root.children || this.root.children.length === 0;\n }\n get children() {\n return this.root.children;\n }\n reload() {\n this.root = new SchemaNode(\"\", this.schema, this);\n this.root.loadChildren();\n this.onChange?.(this);\n return this;\n }\n withSource(name, uri) {\n this.source = {\n uri,\n name\n };\n return this;\n }\n withChangeListener(cb) {\n this.onChange = cb;\n return this;\n }\n replaceSchema(schema) {\n if (!schema) {\n this.schema = {\n title: this.schema.title,\n type: \"object\",\n properties: {},\n };\n }\n else {\n this.schema = schema;\n }\n this.reload();\n }\n clone() {\n const clone = new ManagedSchema(this.schema);\n clone.source = this.source;\n if (this.onChange) {\n clone.withChangeListener(this.onChange);\n }\n return clone;\n }\n}\nexport class SchemaNode {\n schema;\n loader;\n parent;\n name;\n isRequired = false;\n type;\n children;\n constructor(name, schema, loader, parent) {\n this.schema = schema;\n this.loader = loader;\n this.parent = parent;\n this.name = name;\n this.type = getTypeSignature(schema);\n if (this.parent) {\n let required = this.parent._getPropertiesSchema().required;\n this.isRequired = required && Array.isArray(required) ? required.includes(name) : false;\n }\n }\n get title() {\n return this.schema.title;\n }\n set title(value) {\n this.schema.title = value;\n }\n get description() {\n return this.schema.description;\n }\n set description(value) {\n this.schema.description = value;\n }\n get isParent() {\n return this.type.isObject;\n }\n // the isNew is a hack to preserve the open state in UI after a node is created and the tree reloaded\n get isNew() {\n return !!this.schema.isNew;\n }\n set isNew(value) {\n if (value) {\n this.schema.isNew = true;\n }\n else {\n delete this.schema.isNew;\n }\n }\n resetIsNew() {\n const isNew = this.isNew;\n this.isNew = false;\n return isNew;\n }\n // end hack\n getNameSignature() {\n return `${this.name}${this.isRequired ? '' : '?'}`;\n }\n getTypeSignature() {\n return `${this.type.name}${this.type.isArray ? '[]' : ''}${this.type.isNullable ? '?' : ''}`;\n }\n getSignature() {\n return `${this.getNameSignature()}: ${this.getTypeSignature()}`;\n }\n reloadTree() {\n this.loader.reload();\n }\n loadChildren() {\n this.children = [];\n if (this.schema.items && this.schema.items.properties) {\n this._loadChildren(this.schema.items.properties);\n }\n else if (this.schema.properties) {\n this._loadChildren(this.schema.properties);\n }\n }\n _loadChildren(properties) {\n for (const name of Object.keys(properties)) {\n const childSchema = properties[name];\n const child = new SchemaNode(name, childSchema, this.loader, this);\n this.children.push(child);\n if (child.isParent) {\n child.loadChildren();\n }\n }\n }\n _getPropertiesSchema() {\n if (this.type.isArray && this.type.isObject) {\n return this.schema.items;\n }\n else {\n return this.schema;\n }\n }\n findAvailableChildName(prefix) {\n const properties = this._getPropertiesSchema().properties || {};\n let name;\n do {\n name = prefix + (++new_prop_name_cnt);\n } while (properties[name]);\n return name;\n }\n /**\n * Add a new child node\n */\n addChild(name, type, isRequired = false) {\n if (!this.type.isObject) {\n throw new Error(\"Cannot add child to a non object node\");\n }\n if (!this.children) {\n this.children = [];\n }\n let schema = this._getPropertiesSchema();\n const childSchema = addProperty(schema, name, type, isRequired);\n const child = new SchemaNode(name, childSchema, this.loader, this);\n this.children.push(child);\n return child;\n }\n /**\n * Remove this node\n */\n remove() {\n if (this.parent && this.parent.type.isObject) {\n const schema = this.parent._getPropertiesSchema();\n removeProperty(schema, this.name);\n if (this.parent.children) {\n this.parent.children = this.parent.children.filter(c => c.name !== this.name);\n }\n return true;\n }\n return false;\n }\n update(data) {\n let updated = false;\n if (data.name != null && this.name !== data.name) {\n if (this.parent) {\n setPropertyName(this.parent._getPropertiesSchema(), this.name, data.name);\n }\n this.name = data.name;\n updated = true;\n }\n if (data.isRequired != null && this.isRequired !== data.isRequired) {\n if (this.parent) {\n setRequireProperty(this.parent._getPropertiesSchema(), this.name, data.isRequired);\n }\n this.isRequired = data.isRequired;\n updated = true;\n }\n let actualType = data.type?.name;\n if (actualType === \"any\") {\n actualType = undefined;\n }\n const typeChanged = actualType !== this.schema.type;\n if (data.type) {\n setPropertyType(this.schema, data.type);\n this.type = data.type;\n if (this.type.isObject) {\n if (!this.children) {\n this.children = [];\n }\n }\n else {\n this.children = undefined;\n }\n updated = true;\n }\n // update editor field\n if (this.schema.editor && data.editor === null) {\n // explicitly set to null => delete current editor\n this.schema.editor = undefined;\n updated = true;\n }\n else if (data.editor) { // a new editor is set\n this.schema.editor = data.editor;\n updated = true;\n }\n else if (typeChanged) {\n // preserve editor only if the type didn't change\n this.schema.editor = undefined;\n updated = true;\n }\n if (data.description !== this.description) {\n this.description = data.description;\n updated = true;\n }\n return updated;\n }\n getUpdateFromNameAndTypeSignature(nameSig, typeSig) {\n let name = nameSig.trim();\n let isRequired = true;\n if (name.endsWith('?')) {\n name = name.substring(0, name.length - 1).trim();\n isRequired = false;\n }\n const type = parseTypeSignature(typeSig);\n let editor;\n if (type.name === 'text') {\n type.name = TypeNames.string;\n editor = 'textarea';\n }\n else if (type.name === 'media') {\n type.name = TypeNames.any;\n editor = 'media';\n }\n else if (type.name === 'document') {\n type.name = TypeNames.any;\n editor = 'document';\n }\n else {\n editor = null; // remove custom editor\n }\n return { name, type, isRequired, editor };\n }\n updateFromNameAndTypeSignature(nameSig, typeSig) {\n return this.update(this.getUpdateFromNameAndTypeSignature(nameSig, typeSig));\n }\n updateFromSignature(text) {\n text = text.trim();\n const index = text.indexOf(':');\n if (index < 0) {\n throw new Error(\"Expecting a name and a type separated by a colon\");\n }\n const nameSig = text.substring(0, index);\n const typeSig = text.substring(index + 1);\n return this.updateFromNameAndTypeSignature(nameSig, typeSig);\n }\n}\n//# sourceMappingURL=ManagedSchema.js.map","export function getEditableSchemaProperty(schema) {\n return {\n name: schema.getNameSignature(),\n type: schema.getTypeSignature(),\n description: schema.description\n };\n}\n//# sourceMappingURL=EditableSchemaProperty.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useEffect, useRef, useState } from 'react';\nimport { AlignLeft } from 'lucide-react';\nimport { Button, VModal, ModalBody, ModalFooter, VModalTitle, Styles, VSelectBox } from '@vertesia/ui/core';\nimport { TypeNames } from '../type-signature.js';\nfunction makeTypeOptions() {\n const types = Object.values(TypeNames);\n const options = [...types];\n for (const type of types) {\n options.push(type + '[]');\n }\n types.sort();\n return options;\n}\nconst TYPE_OPTIONS = makeTypeOptions();\nexport function PropertyEditor({ value, onChange, onCancel, onSave }) {\n const [isModalOpen, setModalOpen] = useState(false);\n if (!value)\n return null;\n const onNameChange = (text) => {\n onChange({ ...value, name: text });\n };\n const onTypeChange = (text) => {\n onChange({ ...value, type: text });\n };\n const onDescriptionChange = (text) => {\n if (text !== undefined && typeof text === 'string') {\n onChange({ ...value, description: text }, true);\n }\n setModalOpen(false);\n };\n return (_jsxs(\"div\", { className: \"flex items-center\", children: [_jsx(\"div\", { className: \"flex-1\", children: _jsx(PropertyNameEditor, { value: value.name, onChange: onNameChange, onCancel: onCancel, onSave: onSave }) }), _jsx(\"div\", { className: \"px-1 font-semibold\", children: \":\" }), _jsx(\"div\", { className: \"flex-1\", children: _jsx(PropertyTypeEditor, { value: value.type, onChange: onTypeChange, onCancel: onCancel, onSave: onSave }) }), _jsxs(\"div\", { children: [_jsx(Button, { variant: \"ghost\", size: \"xs\", onClick: () => setModalOpen(true), title: \"Edit description\", children: _jsx(AlignLeft, { className: \"size-4\" }) }), _jsx(EditDescriptionModal, { value: value.description, isOpen: isModalOpen, onClose: onDescriptionChange })] })] }));\n}\nexport function PropertyNameEditor({ value, onChange, onCancel, onSave }) {\n const ref = useRef(null);\n useEffect(() => {\n ref.current?.focus();\n }, []);\n const onKeyUp = (e) => {\n switch (e.key) {\n case \"Enter\":\n onSave?.();\n break;\n case \"Escape\":\n onCancel?.();\n break;\n }\n };\n const _onChange = (e) => {\n onChange(e.target.value);\n };\n return (_jsx(\"input\", { onKeyUp: onKeyUp, ref: ref, value: value, onChange: _onChange, className: Styles.INPUT_UNSTYLED, style: { fontSize: \"inherit\", width: \"\", display: \"inline\" } }));\n}\nfunction PropertyTypeEditor({ value, onChange, onCancel, onSave }) {\n const onBlur = () => {\n onSave?.();\n };\n const onKeyDown = (e, isOpen) => {\n if (!isOpen) {\n if (e.key === 'Enter') {\n onSave?.();\n }\n else if (e.key === 'Escape') {\n onCancel?.();\n }\n }\n };\n return (_jsx(VSelectBox, { className: Styles.INPUT_UNSTYLED, options: TYPE_OPTIONS, value: value || '', onBlur: onBlur, onChange: onChange, onKeyDown: onKeyDown, popupClass: \"schema-type-suggest-popup z-90\" }));\n}\nfunction EditDescriptionModal({ value, isOpen, onClose }) {\n return (_jsxs(VModal, { isOpen: isOpen, onClose: onClose, children: [_jsx(VModalTitle, { children: \"Edit description\" }), _jsx(EditDescriptionModalForm, { value: value, onSave: onClose })] }));\n}\nfunction EditDescriptionModalForm({ value, onSave }) {\n const ref = useRef(null);\n const [currentValue, setCurrentValue] = useState(value || '');\n useEffect(() => {\n ref.current && ref.current.focus();\n }, [ref.current]);\n return (_jsxs(_Fragment, { children: [_jsx(ModalBody, { className: \"h-max\", children: _jsx(\"textarea\", { ref: ref, className: \"dark:bg-gray-800 w-full h-full dark:text-white\", value: currentValue, onChange: (e) => setCurrentValue(e.target.value) }) }), _jsx(ModalFooter, { children: _jsx(Button, { onClick: () => onSave(currentValue), children: \"Save Changes\" }) })] }));\n}\n//# sourceMappingURL=PropertyEditor.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function PropertyViewer({ value }) {\n if (!value)\n return null;\n return (_jsxs(\"div\", { className: 'w-full flex items-baseline', children: [_jsx(\"div\", { children: value.name || '' }), _jsx(\"div\", { className: 'ml-2 text-sm text-muted', children: value.type || '' })] }));\n}\n//# sourceMappingURL=PropertyViewer.js.map","import { useState } from \"react\";\nimport { ManagedSchema } from \"../ManagedSchema.js\";\nexport function useSchema(jsonSchema) {\n const [schema, setSchema] = useState(new ManagedSchema(jsonSchema || { type: \"object\", properties: {} }).withChangeListener((schema) => {\n setSchema(schema.clone());\n }));\n return schema;\n}\n//# sourceMappingURL=SchemaContext.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport clsx from 'clsx';\nimport { useEffect, useRef, useState } from 'react';\nimport { SquarePen, Trash2 } from 'lucide-react';\nimport { Button, Styles, useClickOutside, useFlag } from '@vertesia/ui/core';\nconst VIEW_BOX = \"block text-sm sm:leading-6 rounded-md border-0 py-1.5 px-4\";\nconst VIEW_BOX_HOVER = `${VIEW_BOX} hover:shadow-xs hover:ring-1 hover:ring-inset hover:ring-ring`;\nconst EDIT_BOX = `${VIEW_BOX} shadow-xs ring-1 ring-inset ring-ring`;\nexport function Editable({ value, onChange, onDelete, outlineOnHover = false, editOnClick = true, placeholder, viewer, editor, skipClickOutside, isEditing = false, readonly = false, onValidate, }) {\n const { on, off, isOn } = useFlag(isEditing);\n const [validationError, setValidationError] = useState();\n const _onChange = (value) => {\n if (onValidate) {\n const err = onValidate(value);\n if (err) {\n setValidationError(err);\n return; // don't save\n }\n else {\n setValidationError(undefined);\n }\n }\n if (onChange(value)) {\n off();\n }\n };\n const _skipClickOutside = (e) => {\n if (skipClickOutside) {\n return skipClickOutside(e);\n }\n return false;\n };\n return (_jsxs(\"div\", { className: \"\", children: [isOn && !readonly ?\n _jsx(DataEdit, { value: value, onSave: _onChange, onCancel: off, editor: editor, skipClickOutside: _skipClickOutside })\n : _jsx(DataView, { value: value, onEdit: on, viewer: viewer, placeholder: placeholder, outlineOnHover: outlineOnHover, editOnClick: editOnClick, onDelete: onDelete, readonly: readonly }), validationError &&\n _jsx(\"div\", { className: \"text-red-500 text-sm\", children: validationError })] }));\n}\nfunction DataView({ viewer: Viewer, value, onEdit, editOnClick, outlineOnHover, placeholder, onDelete, readonly }) {\n const onClick = () => {\n editOnClick && onEdit();\n };\n const onKeyUp = (e) => {\n if (e.key === \"Enter\") {\n onEdit();\n }\n };\n const btnStyle = 'invisible group-hover:visible';\n return (_jsxs(\"div\", { tabIndex: 0, onKeyUp: onKeyUp, onClick: onClick, className: clsx(\"flex justify-start items-center group\", outlineOnHover ? VIEW_BOX_HOVER : VIEW_BOX, { 'cursor-pointer': editOnClick }), children: [_jsx(Viewer, { value: value, placeholder: placeholder }), _jsxs(\"div\", { className: 'ml-auto flex space-x-2', children: [!readonly && onDelete &&\n _jsx(Button, { variant: \"ghost\", size: \"sm\", className: btnStyle, onClick: onDelete, children: _jsx(Trash2, { className: \"size-4\" }) }), !readonly ?\n _jsx(Button, { variant: \"ghost\", size: \"sm\", className: btnStyle, onClick: onEdit, children: _jsx(SquarePen, { className: \"size-4\" }) })\n : null] })] }));\n}\nfunction DataEdit({ editor: Editor, value, onSave, onCancel, skipClickOutside }) {\n const [actualValue, setActualValue] = useState(value);\n const latestValue = useRef(value);\n const [debounceTimer, setDebounceTimer] = useState(null);\n const handleSave = () => {\n onSave(latestValue.current);\n };\n const ref = useClickOutside(handleSave, skipClickOutside);\n const _onChange = (value, autoSave = false) => {\n setActualValue(value);\n latestValue.current = value;\n if (autoSave) {\n if (debounceTimer) {\n clearTimeout(debounceTimer);\n }\n setDebounceTimer(setTimeout(() => { onSave(value); }, 500));\n }\n };\n return (_jsx(\"div\", { ref: ref, children: _jsx(\"div\", { className: EDIT_BOX, children: _jsx(\"div\", { className: \"w-full\", onClick: (e) => e.stopPropagation(), children: _jsx(Editor, { value: actualValue, onChange: _onChange, onSave: handleSave, onCancel: onCancel }) }) }) }));\n}\nexport function TextDataViewer({ value, placeholder }) {\n if (!value) {\n return (_jsx(\"span\", { className: 'text-gray-400', children: placeholder || 'Missing value' }));\n }\n else {\n return (_jsx(\"span\", { children: value == null ? '' : value.toString() }));\n }\n}\nexport function TextDataEditor({ value, onChange, onCancel, onSave }) {\n const ref = useRef(null);\n useEffect(() => {\n ref.current?.focus();\n }, []);\n const onKeyUp = (e) => {\n switch (e.key) {\n case \"Enter\":\n onSave?.();\n break;\n case \"Escape\":\n onCancel?.();\n break;\n }\n };\n const _onChange = (e) => {\n onChange(e.target.value);\n };\n return (_jsx(\"input\", { onKeyUp: onKeyUp, ref: ref, value: value, onChange: _onChange, className: Styles.INPUT_UNSTYLED, style: { fontSize: \"inherit\" } }));\n}\nexport function EditableText(props) {\n if (!props.viewer) {\n props.viewer = TextDataViewer;\n }\n if (!props.editor) {\n props.editor = TextDataEditor;\n }\n return (_jsx(Editable, { ...props }));\n}\n//# sourceMappingURL=Editable.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState } from 'react';\nimport { ChevronDown, ChevronRight, Plus } from 'lucide-react';\nimport { Button, useToast } from '@vertesia/ui/core';\nimport { TypeNames } from '../type-signature.js';\nimport { Editable } from './Editable.js';\nimport { getEditableSchemaProperty } from './EditableSchemaProperty.js';\nimport { PropertyEditor } from './PropertyEditor.js';\nimport { PropertyViewer } from './PropertyViewer.js';\n// do not exit edit mode when user is clicking inside the type suggestion popup\nfunction skipClickOutside(e) {\n const target = e.target;\n return !!(target.closest && target.closest('.schema-type-suggest-popup'));\n}\n;\nexport function SchemaEditor({ schema, readonly = false }) {\n return (_jsxs(\"ul\", { className: \"\", children: [schema.children.map(prop => {\n return renderProperty(prop, readonly);\n }), !readonly ? _jsx(AddPropertyButton, { parent: schema.root }) : null] }));\n}\nfunction renderProperty(node, readonly) {\n return (node.isParent ?\n _jsx(ParentItem, { property: node, readonly: readonly }, node.name)\n :\n _jsx(SimpleItem, { node: node, readonly: readonly }, node.name));\n}\nfunction SimpleItem({ node, readonly }) {\n return (_jsx(\"li\", { children: _jsx(PropertyTitleBar, { property: node, readonly: readonly }) }));\n}\nfunction ParentItem({ property, readonly }) {\n const [isOpen, setOpen] = useState(true);\n const Icon = isOpen ? ChevronDown : ChevronRight;\n return (_jsxs(\"li\", { children: [_jsxs(\"div\", { className: 'flex items-center w-full', children: [_jsx(\"button\", { onClick: () => setOpen(!isOpen), children: _jsx(Icon, { className: \"size-4\" }) }), _jsx(\"div\", { className: 'flex-1', children: _jsx(PropertyTitleBar, { property: property, readonly: readonly }) })] }), isOpen &&\n _jsxs(\"ul\", { className: \"ml-4 border-l border-gray-400 border-dashed\", children: [(property.children || []).map(prop => renderProperty(prop, readonly)), !readonly ? _jsx(AddPropertyButton, { parent: property }) : null] })] }));\n}\nexport function validatePropertyName(propertyName) {\n if (!propertyName) {\n return 'Name is required';\n }\n if (/^[a-zA-Z0-9_]+[?]?$/.test(propertyName)) {\n return undefined; // valid\n }\n return 'Only letters, numbers, underscores or question mark are allowed (a-zA-Z0-9_?)';\n}\nfunction PropertyTitleBar({ property, readonly }) {\n const toast = useToast();\n const onChange = (value) => {\n try {\n if (value.description && typeof value.description !== 'string') {\n value.description = undefined;\n }\n const update = property.getUpdateFromNameAndTypeSignature(value.name, value.type);\n if (property.update({ ...update, description: value.description })) {\n property.reloadTree();\n }\n }\n catch (err) {\n toast({\n status: 'error',\n title: 'Invalid property declaration',\n description: err.message,\n duration: 9000\n });\n return false;\n }\n return true;\n };\n const isNew = property.resetIsNew();\n const editableProp = getEditableSchemaProperty(property);\n return (_jsx(Editable, { value: editableProp, onChange: onChange, onDelete: () => {\n property.remove();\n property.reloadTree();\n }, editor: PropertyEditor, viewer: PropertyViewer, outlineOnHover: true, isEditing: isNew, skipClickOutside: skipClickOutside, readonly: readonly, onValidate: (property) => validatePropertyName(property.name) }));\n}\nfunction AddPropertyButton({ parent }) {\n const add = () => {\n const name = parent.findAvailableChildName(\"new_property_\");\n const child = parent.addChild(name, { isObject: false, isArray: false, isNullable: false, name: TypeNames.string }, true);\n child.isNew = true;\n parent.reloadTree();\n };\n return (_jsxs(Button, { variant: \"ghost\", onClick: add, children: [_jsx(Plus, { className: 'size-4' }), \"Add property\"] }));\n}\n//# sourceMappingURL=SchemaEditor.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useRef } from \"react\";\nexport function SvgIcon({ content, ...props }) {\n const containerRef = useRef(null);\n useEffect(() => {\n if (!containerRef.current)\n return;\n // Parse the SVG string\n const parser = new DOMParser();\n const doc = parser.parseFromString(content, 'image/svg+xml');\n const svgEl = doc.querySelector('svg');\n if (!svgEl) {\n console.warn('SvgIcon: No <svg> element found in provided string');\n containerRef.current.innerHTML = '';\n return;\n }\n // Apply all passed props to the SVG element\n props && Object.entries(props).forEach(([key, value]) => {\n if (value == null)\n return;\n const attrName = key === 'className' ? 'class' : key;\n svgEl.setAttribute(attrName, String(value));\n });\n // Clear and append the new SVG\n containerRef.current.innerHTML = '';\n containerRef.current.appendChild(svgEl);\n }, [content, props]);\n return _jsx(\"span\", { ref: containerRef });\n}\nexport function createSvgIcon(content) {\n const IconComponent = (props) => {\n return _jsx(SvgIcon, { content: content, ...props });\n };\n return IconComponent;\n}\n//# sourceMappingURL=SvgIcon.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState, useRef } from \"react\";\nimport { UploadIcon } from \"lucide-react\";\nimport { Button } from \"@vertesia/ui/core\";\n/**\n * A reusable drop zone component for file uploads\n *\n * @example\n * <DropZone\n * onDrop={handleFileSelect}\n * message=\"Drag and drop files here\"\n * buttonLabel=\"Select Files\"\n * />\n */\nexport function DropZone({ onDrop, message, buttonLabel = \"Upload Files\", allowFolders = true, className = \"\" }) {\n const [isDragging, setIsDragging] = useState(false);\n const dropZoneRef = useRef(null);\n const handleDragOver = (e) => {\n e.preventDefault();\n if (e.dataTransfer.types.includes('Files')) {\n setIsDragging(true);\n }\n };\n const handleDragLeave = (e) => {\n e.preventDefault();\n // Only set dragging to false if leaving the container (not entering a child)\n if (dropZoneRef.current && !dropZoneRef.current.contains(e.relatedTarget)) {\n setIsDragging(false);\n }\n };\n const handleDrop = async (e) => {\n e.preventDefault();\n setIsDragging(false);\n if (e.dataTransfer.items && e.dataTransfer.items.length > 0) {\n // Handle folders using the DataTransferItemList API which supports directory reading\n const items = Array.from(e.dataTransfer.items);\n const files = [];\n const folders = new Set();\n const processEntry = async (entry) => {\n if (entry.isFile) {\n // Get file\n const file = await new Promise((resolve) => {\n entry.file((file) => {\n // Store full path in the file object for location use\n Object.defineProperty(file, \"webkitRelativePath\", {\n writable: true,\n value: entry.fullPath.substring(1), // Remove leading slash\n });\n resolve(file);\n });\n });\n // Skip hidden files\n if (!file.name.startsWith(\".\") && file.size > 0) {\n files.push(file);\n }\n // Add folder path to tracking\n const folderPath = entry.fullPath.substring(1).split(\"/\").slice(0, -1).join(\"/\");\n if (folderPath) {\n folders.add(folderPath);\n }\n }\n else if (entry.isDirectory) {\n // Get folder reader\n const reader = entry.createReader();\n const entries = await new Promise((resolve) => {\n reader.readEntries((entries) => {\n resolve(entries);\n });\n });\n // Process all entries\n await Promise.all(entries.map(processEntry));\n // Add this folder to tracking\n const folderPath = entry.fullPath.substring(1);\n if (folderPath) {\n folders.add(folderPath);\n }\n }\n };\n try {\n // Process all dropped items\n await Promise.all(items.map((item) => {\n const entry = item.webkitGetAsEntry ? item.webkitGetAsEntry() : item;\n if (entry) {\n return processEntry(entry);\n }\n return Promise.resolve();\n }));\n if (files.length > 0) {\n const topLevelFolders = new Set(Array.from(folders)\n .map((path) => path.split(\"/\")[0])\n .filter(Boolean));\n const folderCount = topLevelFolders.size;\n const fileCount = files.length;\n let message = \"\";\n if (folderCount > 0) {\n message =\n folderCount === 1\n ? `Preparing to upload 1 folder with ${fileCount} files...`\n : `Preparing to upload ${folderCount} folders with ${fileCount} files...`;\n }\n else {\n message = `Preparing to upload ${fileCount} file${fileCount === 1 ? \"\" : \"s\"}...`;\n }\n onDrop(files, { count: files.length, message });\n }\n }\n catch (error) {\n console.error(\"Error processing dropped files:\", error);\n // Fallback to simple file array if folder processing fails\n const fileArray = Array.from(e.dataTransfer.files);\n if (fileArray.length > 0) {\n onDrop(fileArray);\n }\n }\n }\n else if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {\n // Fallback for browsers that don't support items API\n const fileArray = Array.from(e.dataTransfer.files);\n onDrop(fileArray);\n }\n };\n const handleChange = (e) => {\n if (e.target.files && e.target.files.length > 0) {\n const fileArray = Array.from(e.target.files);\n // Check if there are directories (with webkitRelativePath)\n const hasDirectories = fileArray.some((file) => file.webkitRelativePath && file.webkitRelativePath.includes(\"/\"));\n if (hasDirectories) {\n // Count the unique top-level directories\n const topLevelDirs = new Set(fileArray.map((file) => file.webkitRelativePath?.split(\"/\")[0]).filter(Boolean));\n const folderCount = topLevelDirs.size;\n const fileCount = fileArray.length;\n // Create custom message with folder info\n const formattedMessage = folderCount === 1\n ? `Preparing to upload 1 folder with ${fileCount} files...`\n : `Preparing to upload ${folderCount} folders with ${fileCount} files...`;\n const customMessage = {\n count: fileArray.length,\n message: formattedMessage,\n };\n onDrop(fileArray, customMessage);\n }\n else {\n // Regular file upload\n const feedback = {\n count: fileArray.length,\n message: `Preparing to upload ${fileArray.length} file${fileArray.length === 1 ? \"\" : \"s\"}...`,\n };\n onDrop(fileArray, feedback);\n }\n }\n };\n const selectFile = () => {\n const fileInput = document.createElement(\"input\");\n fileInput.type = \"file\";\n fileInput.multiple = true;\n fileInput.accept = \"*\";\n fileInput?.click();\n fileInput.onchange = (event) => {\n handleChange(event);\n };\n };\n const selectFolder = () => {\n const folderInput = document.createElement(\"input\");\n folderInput.type = \"file\";\n folderInput.multiple = true;\n folderInput.accept = \"*\";\n folderInput.webkitdirectory = true; // webkitdirectory is not standard but widely supported\n folderInput?.click();\n folderInput.onchange = (event) => {\n handleChange(event);\n };\n };\n return (_jsxs(\"div\", { className: `flex flex-col items-center justify-center py-12 border-2 rounded-lg transition-colors ${isDragging ? \"border-color-primary bg-color-primary/10\" : \"border-dashed border-color-border\"} ${className}`, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, children: [_jsx(UploadIcon, { className: `h-12 w-12 mb-3 transition-colors ${isDragging ? \"text-primary\" : \"text-muted/50\"}` }), _jsx(\"p\", { className: \"text-muted\", children: message }), _jsxs(\"div\", { className: \"flex gap-2 justify-center mt-2\", children: [_jsx(Button, { onClick: selectFile, children: buttonLabel }), allowFolders && (_jsx(Button, { onClick: selectFolder, children: \"Select Folder\" }))] })] }));\n}\n//# sourceMappingURL=DropZone.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { CheckCircleIcon } from \"lucide-react\";\nimport { useState } from \"react\";\n/**\n * Displays a collapsible category of upload results\n *\n * @example\n * <UploadResultCategory\n * title=\"Successfully Uploaded\"\n * count={3}\n * icon={<CheckCircleIcon className=\"h-4 w-4 text-green-500\" />}\n * items={[\"document1.pdf\", \"document2.pdf\", \"document3.pdf\"]}\n * />\n */\nexport function UploadResultCategory({ title, count, icon = _jsx(CheckCircleIcon, { className: \"h-4 w-4 text-green-500\" }), items }) {\n const [isExpanded, setIsExpanded] = useState(false);\n return (_jsxs(\"div\", { className: \"border border-color-border rounded-md overflow-hidden\", children: [_jsxs(\"div\", { className: \"flex items-center justify-between p-3 bg-color-muted/10 cursor-pointer\", onClick: () => setIsExpanded(!isExpanded), children: [_jsxs(\"div\", { className: \"flex items-center\", children: [_jsx(\"span\", { className: \"mr-2\", children: icon }), _jsx(\"span\", { className: \"font-medium\", children: title }), _jsx(\"span\", { className: \"ml-2 px-2 py-0.5 bg-color-muted/20 rounded-full text-xs\", children: count })] }), _jsx(\"button\", { className: \"text-muted\", children: _jsx(\"svg\", { className: `h-5 w-5 transition-transform ${isExpanded ? 'transform rotate-180' : ''}`, fill: \"none\", viewBox: \"0 0 24 24\", stroke: \"currentColor\", children: _jsx(\"path\", { strokeLinecap: \"round\", strokeLinejoin: \"round\", strokeWidth: 2, d: \"M19 9l-7 7-7-7\" }) }) })] }), isExpanded && (_jsx(\"div\", { className: \"p-3 border-t border-color-border max-h-48 overflow-y-auto\", children: items.length > 0 ? (_jsx(\"ul\", { className: \"space-y-1\", children: items.map((item, index) => (_jsx(\"li\", { className: \"text-sm py-1 px-2 rounded hover:bg-color-muted/10\", children: item }, index))) })) : (_jsx(\"div\", { className: \"text-sm text-muted py-2\", children: \"No items to display\" })) }))] }));\n}\n//# sourceMappingURL=UploadResultCategory.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { CheckCircleIcon, AlertCircleIcon, XCircleIcon } from \"lucide-react\";\nimport { UploadResultCategory } from \"./UploadResultCategory\";\n/**\n * Displays a summary of upload results with collapsible categories\n *\n * @example\n * <UploadSummary\n * files={[\n * { name: \"document1.pdf\", status: \"success\" },\n * { name: \"document2.pdf\", status: \"skipped\" }\n * ]}\n * location=\"/reports/2023\"\n * />\n */\nexport function UploadSummary({ files, className = \"\", location, collection }) {\n // Group files by status\n const successFiles = files.filter(f => f.status === 'success');\n const updatedFiles = files.filter(f => f.status === 'updated');\n const skippedFiles = files.filter(f => f.status === 'skipped');\n const failedFiles = files.filter(f => f.status === 'failed');\n // Calculate counts\n const successCount = successFiles.length;\n const updatedCount = updatedFiles.length;\n const skippedCount = skippedFiles.length;\n const failedCount = failedFiles.length;\n const totalCount = files.length;\n return (_jsxs(\"div\", { className: `flex flex-col py-2 ${className}`, children: [_jsxs(\"div\", { className: \"flex items-center mb-4\", children: [_jsx(\"div\", { className: \"size-8 mr-4 rounded-full bg-success/10 flex items-center justify-center\", children: _jsx(CheckCircleIcon, { className: \"size-4 text-success\" }) }), _jsx(\"div\", { children: _jsxs(\"p\", { className: \"text-muted\", children: [totalCount, \" file\", totalCount !== 1 ? \"s\" : \"\", \" processed\", collection ? ` in collection '${collection}'` : \"\", location ? ` in folder '${location}'` : \"\"] }) })] }), _jsxs(\"div\", { className: \"space-y-3 mt-2\", children: [successCount > 0 && (_jsx(UploadResultCategory, { title: \"Successfully Uploaded\", count: successCount, icon: _jsx(CheckCircleIcon, { className: \"h-4 w-4 text-green-500\" }), items: successFiles.map(f => f.name) })), updatedCount > 0 && (_jsx(UploadResultCategory, { title: \"Successfully Updated\", count: updatedCount, icon: _jsx(CheckCircleIcon, { className: \"h-4 w-4 text-blue-500\" }), items: updatedFiles.map(f => f.name) })), skippedCount > 0 && (_jsx(UploadResultCategory, { title: \"Skipped (Already Existed)\", count: skippedCount, icon: _jsx(AlertCircleIcon, { className: \"h-4 w-4 text-amber-500\" }), items: skippedFiles.map(f => f.name) })), failedCount > 0 && (_jsx(UploadResultCategory, { title: \"Failed to Upload\", count: failedCount, icon: _jsx(XCircleIcon, { className: \"h-4 w-4 text-red-500\" }), items: failedFiles.map(f => f.name) }))] })] }));\n}\n//# sourceMappingURL=UploadSummary.js.map","export const ATTRIBUTE_GROUP_KEY = ':@';\nexport const ATTRIBUTE_TEXT = '#text';\nexport const ATTRIBUTE_COMMENT = '#comment';\nexport const ATTRIBUTE_CDATA = '#cdata';\nexport const DECLARATION_TAG = 'DECLARATION_TAG';\nexport const TAG = 'TAG';\nexport const defaultTheme = {\n tagColor: '#d43900',\n textColor: '#333',\n attributeKeyColor: '#2a7ab0',\n attributeValueColor: '#008000',\n separatorColor: '#333',\n commentColor: '#aaa',\n cdataColor: '#1d781d',\n fontFamily: 'monospace',\n};\nexport const darkTheme = {\n attributeKeyColor: '#FFD700',\n attributeValueColor: '#FF4500',\n tagColor: '#87CEFA',\n textColor: '#00FF00',\n separatorColor: '#FFD700',\n commentColor: '#BEBEBE',\n cdataColor: '#33CC66',\n fontFamily: 'monospace',\n};\n//# sourceMappingURL=index.js.map","import { createContext, useContext } from 'react';\nimport { defaultTheme } from '../constants';\nconst defaultState = {\n theme: defaultTheme,\n collapsible: false,\n indentSize: 2,\n};\nexport const XMLViewerContext = createContext(defaultState);\nexport const useXMLViewerContext = () => useContext(XMLViewerContext);\n//# sourceMappingURL=xml-viewer-context.js.map","import { XMLParser, XMLValidator } from 'fast-xml-parser';\nimport { useMemo } from 'react';\nimport { ATTRIBUTE_CDATA, ATTRIBUTE_COMMENT } from '../constants';\nconst parser = new XMLParser({\n preserveOrder: true,\n ignoreAttributes: false,\n attributeNamePrefix: '',\n allowBooleanAttributes: true,\n commentPropName: ATTRIBUTE_COMMENT,\n cdataPropName: ATTRIBUTE_CDATA,\n parseTagValue: false,\n});\nexport default function useXMLViewer(xml) {\n return useMemo(() => {\n try {\n if (!XMLValidator.validate(xml)) {\n throw new Error('Invalid XML!');\n }\n const json = parser.parse(xml);\n if (typeof xml === 'string' && xml.trim().length > 0 && json.length === 0) {\n throw new Error('Invalid XML!');\n }\n return { json, valid: true };\n }\n catch (e) {\n const error = e;\n return { json: null, valid: false, errorMessage: `Fail to parse: ${error.message}` };\n }\n }, [xml]);\n}\n//# sourceMappingURL=useXMLViewer.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nexport function CDataTag(props) {\n const { indentation, children, isInline } = props;\n const { theme } = useXMLViewerContext();\n return (_jsxs(\"div\", { style: { color: theme.cdataColor }, children: [_jsx(\"span\", { children: `${indentation}<![CDATA[` }), children, _jsx(\"span\", { children: `${isInline ? '' : indentation}]]>` })] }));\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nexport function CollapseIcon(props) {\n const { collapsible, theme } = useXMLViewerContext();\n const { collapsed } = props;\n return collapsible ? (_jsx(\"span\", { style: { position: 'relative' }, children: _jsx(\"span\", { style: { position: 'absolute', right: '0', border: 0, padding: 0, background: 'none' }, children: _jsx(Caret, { fill: theme.separatorColor, style: { transform: `rotate(${collapsed ? 0 : 90}deg)`, transition: 'transform 0.2s' } }) }) })) : null;\n}\nfunction Caret({ ...attrs }) {\n return (_jsx(\"svg\", { width: \"16px\", height: \"16px\", viewBox: \"0 0 24 24\", ...attrs, children: _jsx(\"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\" }) }));\n}\n//# sourceMappingURL=index.js.map","import { isNil } from 'lodash-es';\nimport { useEffect, useState } from 'react';\nimport { useXMLViewerContext } from '../context/xml-viewer-context';\nexport function useCollapsible(level) {\n const { collapsible, initialCollapsedDepth } = useXMLViewerContext();\n const [collapsed, setCollapsed] = useState(() => isNil(initialCollapsedDepth) || !collapsible ? false : level >= initialCollapsedDepth);\n const toggleCollapsed = () => setCollapsed((currentCollapsed) => !currentCollapsed);\n useEffect(() => {\n setCollapsed(isNil(initialCollapsedDepth) || !collapsible ? false : level >= initialCollapsedDepth);\n }, [initialCollapsedDepth, level, collapsible]);\n return {\n collapsed,\n buttonProps: !collapsible\n ? {}\n : {\n onClick: toggleCollapsed,\n role: 'button',\n style: { cursor: 'pointer' },\n },\n };\n}\n//# sourceMappingURL=useCollapsible.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { CollapseIcon } from '../../components/CollapseIcon';\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nimport { useCollapsible } from '../../hooks/useCollapsible';\nexport function CommentTag(props) {\n const { indentation, children, isInline, level } = props;\n const { theme } = useXMLViewerContext();\n const { collapsed, buttonProps } = useCollapsible(level);\n return (_jsxs(\"div\", { style: { color: theme.commentColor }, children: [_jsxs(\"span\", { ...buttonProps, children: [_jsx(\"span\", { children: indentation }), _jsx(CollapseIcon, { collapsed: collapsed }), _jsx(\"span\", { children: '<!-- ' })] }), !collapsed && children, collapsed && '...', _jsx(\"span\", { children: `${isInline || collapsed ? ' ' : indentation}-->` })] }));\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nexport function Attributes(props) {\n const { attributes } = props;\n const { theme } = useXMLViewerContext();\n if (!attributes) {\n return null;\n }\n return (_jsx(\"span\", { children: Object.entries(attributes).map(([key, value]) => (_jsxs(\"span\", { children: [_jsx(\"span\", { style: { color: theme.attributeKeyColor }, children: ` ${key}` }), _jsx(\"span\", { style: { color: theme.separatorColor }, children: \"=\" }), _jsx(\"span\", { style: { color: theme.attributeValueColor }, children: `\"${value}\"` })] }, `attribute-${key}`))) }));\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Attributes } from '../../components/Attributes';\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nexport function DeclarationTag(props) {\n const { indentation, tagKey, attributes } = props;\n const { theme } = useXMLViewerContext();\n return (_jsxs(\"div\", { children: [_jsx(\"span\", { style: { color: theme.separatorColor }, children: `${indentation}<?` }), _jsx(\"span\", { style: { color: theme.tagColor }, children: `${tagKey.slice(1)}` }), _jsx(Attributes, { attributes: attributes }), _jsx(\"span\", { style: { color: theme.separatorColor }, children: '?>' })] }));\n}\n//# sourceMappingURL=index.js.map","import { omit } from 'lodash-es';\nimport { ATTRIBUTE_CDATA, ATTRIBUTE_COMMENT, ATTRIBUTE_GROUP_KEY, ATTRIBUTE_TEXT, DECLARATION_TAG, TAG, } from '../constants';\nexport function getIndentationString(size, level) {\n return new Array(level * size + 1).join(' ');\n}\nexport function hasBreakLines(elements) {\n return typeof elements === 'string' && elements.includes('\\n');\n}\nexport function isInlineTextElement(elements) {\n if (typeof elements === 'string') {\n return false;\n }\n return (elements.length === 1 &&\n ATTRIBUTE_TEXT in elements[0] &&\n !hasBreakLines(elements[0][ATTRIBUTE_TEXT]));\n}\nexport function getTagType(tagKey) {\n switch (tagKey) {\n case ATTRIBUTE_TEXT:\n case ATTRIBUTE_CDATA:\n case ATTRIBUTE_COMMENT:\n return tagKey;\n default:\n return tagKey.startsWith('?') ? DECLARATION_TAG : TAG;\n }\n}\nexport function getTagProps(element) {\n const attributes = element[ATTRIBUTE_GROUP_KEY];\n const elementWithoutAttributes = omit(element, ATTRIBUTE_GROUP_KEY);\n const [[tagKey, subElements]] = Object.entries(elementWithoutAttributes);\n const type = getTagType(tagKey);\n return { attributes, tagKey, subElements, type };\n}\nexport function hasAttributes(attributes) {\n if (!attributes) {\n return false;\n }\n return Object.keys(attributes).length > 0;\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Attributes } from '../../components/Attributes';\nimport { CollapseIcon } from '../../components/CollapseIcon';\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nimport { hasAttributes } from '../../helpers';\nimport { useCollapsible } from '../../hooks/useCollapsible';\nexport function Tag(props) {\n const { indentation, tagKey, attributes, children, isInline, hasChildren, level } = props;\n const { collapsed, buttonProps } = useCollapsible(level);\n const { theme } = useXMLViewerContext();\n return (_jsxs(\"div\", { children: [_jsxs(\"span\", { ...buttonProps, children: [_jsx(\"span\", { children: indentation }), _jsx(CollapseIcon, { collapsed: collapsed }), _jsx(\"span\", { style: { color: theme.separatorColor }, children: '<' }), _jsx(\"span\", { style: { color: theme.tagColor }, children: `${tagKey}` }), !collapsed && _jsx(Attributes, { attributes: attributes }), collapsed && hasAttributes(attributes) && ' ...', _jsx(\"span\", { style: { color: theme.separatorColor }, children: !hasChildren ? ' />' : '>' })] }), hasChildren && (_jsxs(_Fragment, { children: [!collapsed && children, collapsed && '...', _jsx(\"span\", { style: { color: theme.separatorColor }, children: `${isInline || collapsed ? '' : indentation}</` }), _jsx(\"span\", { style: { color: theme.tagColor }, children: `${tagKey}` }), _jsx(\"span\", { style: { color: theme.separatorColor }, children: '>' })] }))] }));\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nimport { hasBreakLines } from '../../helpers';\nexport function TextElement(props) {\n const { hasSiblings, text, indentation, isText } = props;\n const { theme } = useXMLViewerContext();\n const style = isText ? { color: theme.textColor } : undefined;\n return hasBreakLines(text) || hasSiblings ? (_jsx(\"div\", { style: style, children: text\n .split('\\n')\n .filter((element) => !!element.trim())\n .map((line, index) => (_jsx(\"div\", { children: `${indentation}${line.trim()}` }, `${index}`))) })) : (_jsx(\"span\", { style: style, children: text }));\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { CDataTag } from '../../components/CDataTag';\nimport { CommentTag } from '../../components/CommentTag';\nimport { DeclarationTag } from '../../components/DeclarationTag';\nimport { Tag } from '../../components/Tag';\nimport { TextElement } from '../../components/TextElement';\nimport { ATTRIBUTE_CDATA, ATTRIBUTE_COMMENT, ATTRIBUTE_TEXT, DECLARATION_TAG } from '../../constants';\nimport { useXMLViewerContext } from '../../context/xml-viewer-context';\nimport { getIndentationString, getTagProps, isInlineTextElement } from '../../helpers';\nexport function Elements(props) {\n const { elements, level = 0, isText = true } = props;\n const { indentSize } = useXMLViewerContext();\n if (!Array.isArray(elements) || elements.length === 0) {\n return null;\n }\n return (_jsx(_Fragment, { children: elements.map((element, index) => {\n const { tagKey, attributes, subElements, type } = getTagProps(element);\n const hasSiblings = elements.length > 1;\n const indentation = getIndentationString(indentSize, level);\n const key = `${level}-${index}`;\n const isInline = isInlineTextElement(subElements);\n switch (type) {\n case ATTRIBUTE_TEXT:\n return (_jsx(TextElement, { text: subElements, indentation: indentation, hasSiblings: hasSiblings, isText: isText }, key));\n case ATTRIBUTE_COMMENT:\n return (_jsx(CommentTag, { isInline: isInline, indentation: indentation, level: level, children: _jsx(Elements, { elements: subElements, level: level + 1, isText: false }) }, key));\n case ATTRIBUTE_CDATA:\n return (_jsx(CDataTag, { indentation: indentation, isInline: isInline, children: _jsx(Elements, { elements: subElements, level: level + 1, isText: false }) }, key));\n case DECLARATION_TAG:\n return (_jsx(DeclarationTag, { indentation: indentation, tagKey: tagKey, attributes: attributes }, key));\n default:\n return (_jsx(Tag, { indentation: indentation, tagKey: tagKey, attributes: attributes, isInline: isInline, hasChildren: subElements.length > 0, level: level, children: _jsx(Elements, { elements: subElements, level: level + 1 }) }, key));\n }\n }) }));\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function InvalidXml() {\n return _jsx(\"div\", { children: \"Invalid XML!\" });\n}\n//# sourceMappingURL=index.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useMemo, useState } from 'react';\nimport { darkTheme, defaultTheme } from '../constants';\nimport { XMLViewerContext } from '../context/xml-viewer-context';\nimport useXMLViewer from '../hooks/useXMLViewer';\nimport { Elements } from './Elements';\nimport { InvalidXml } from './InvalidXml';\nexport function XMLViewer(props) {\n const { theme: customTheme, xml, collapsible = false, indentSize = 2, invalidXml, initalCollapsedDepth, initialCollapsedDepth, } = props;\n // Detect dark mode from document root class (set by ThemeProvider)\n const [isDarkMode, setIsDarkMode] = useState(() => {\n return document.documentElement.classList.contains('dark');\n });\n useEffect(() => {\n const root = document.documentElement;\n const observer = new MutationObserver(() => {\n setIsDarkMode(root.classList.contains('dark'));\n });\n observer.observe(root, { attributes: true, attributeFilter: ['class'] });\n return () => observer.disconnect();\n }, []);\n // Compute theme based on dark mode, then apply custom overrides\n const theme = useMemo(() => {\n const baseTheme = isDarkMode ? darkTheme : defaultTheme;\n return { ...baseTheme, ...customTheme };\n }, [isDarkMode, customTheme]);\n const { json, valid } = useXMLViewer(xml);\n const context = useMemo(() => ({\n theme,\n collapsible,\n indentSize,\n initialCollapsedDepth: initialCollapsedDepth ?? initalCollapsedDepth,\n }), [theme, collapsible, indentSize, initalCollapsedDepth, initialCollapsedDepth]);\n if (!valid) {\n return invalidXml ? invalidXml : _jsx(InvalidXml, {});\n }\n return (_jsx(XMLViewerContext.Provider, { value: context, children: _jsx(\"div\", { className: \"rxv-container\", style: { whiteSpace: 'pre-wrap', fontFamily: theme.fontFamily, overflowWrap: 'break-word' }, children: _jsx(Elements, { elements: json }) }) }));\n}\n//# sourceMappingURL=XMLViewer.js.map"],"names":["stateInstance","EditorApi","editor","constructor","this","setValue","value","dispatch","changes","from","to","state","doc","length","insert","getValue","toString","baseExtensions","EditorView","theme","fontSize","fontFamily","backgroundColor","color","outline","borderLeft","borderLeftColor","animation","opacity","lineWrapping","CodeMirrorEditor","onChange","className","editorRef","extensions","debounceTimeout","ref","useRef","onChangeRef","undefined","useEffect","current","debounce","component","useMemo","_jsx","useSafeLayoutEffect","actualExtensions","cb","update","updateListener","of","docChanged","Array","isArray","concat","push","sharedState","initialDoc","Text","split","EditorState","create","getSharedEditorState","parent","api","destroy","VEditorApi","VgetValue","VsetValue","MonacoEditor","language","options","beforeMount","onMount","defaultValue","editorValue","setEditorValue","useState","editorInstanceRef","useTheme","getValueRef","setValueRef","newValue","debouncedOnChange","handleEditorChange","useCallback","actualValue","handleEditorDidMount","monacoInstance","defineTheme","base","inherit","rules","colors","setTheme","defaultOptions","minimap","enabled","scrollBeyondLastLine","wordWrap","lineNumbers","folding","lineDecorationsWidth","lineNumbersMinChars","automaticLayout","glyphMargin","renderValidationDecorations","renderLineHighlight","hover","delay","quickSuggestions","other","comments","strings","children","Editor","height","FieldSetContext","createContext","FieldSetContextProvider","Provider","useFieldSet","ctx","useContext","Error","FormContext","object","components","disabled","_FormContext","useForm","FormContextProvider","Input","React","forwardRef","type","props","String","booleanValue","setBooleanValue","schema","isBoolean","clsx","Styles","INPUT","_onChange","ev","target","checked","Form","onSubmit","observer","evt","stopPropagation","preventDefault","GeneratedFormFields","properties","map","renderProperty","GeneratedForm","_jsxs","prop","isList","ListField","name","isObject","CompositeField","ScalarField","inline","Component","inputType","getInputType","handleOnChange","event","isNumber","parseFloat","isListItem","FormItem","label","title","required","isRequired","description","items","item","index","ListItem","list","onDelete","remove","deleteItem","Button","variant","onClick","add","Plus","arraySchema","Trash2","Schema","_validator","load","validator","ajv","Ajv","allErrors","strict","compile","Object","keys","forEach","loadProperty","hasProperties","propertySchema","property","ArrayPropertySchema","PropertySchema","validate","errors","addProperty","typeOrSchema","removeProperty","filter","x","getProperty","super","isMulti","isReadOnly","readOnly","default","enum","values","includes","isString","getArrayElementType","computeTitleFromName","replace","toUpperCase","slice","_name","format","Node","isRoot","root","path","isScalar","node","ManagedObjectBase","ManagedListProperty","getOrInitArrayProperty","ManagedObjectProperty","getOrInitObjectProperty","ManagedProperty","setPropertyValue","getPropertyValue","out","Symbol","iterator","ManagedObject","_v","newItem","ManageObjectEntry","ManagedScalarEntry","splice","i","l","trim","pop","key","Date","now","FormLabel","FormHelper","FormError","st_punct","st_symbol","st_key","defaultClassMap","code","comma","assign","startObject","endObject","startArray","endArray","boolean","null","string","number","Block","renderer","indent","result","classMap","writeKey","pushValue","renderStart","renderValue","renderEnd","valueClass","join","ObjectBlock","NL","ArrayBlock","JsonRenderer","tab","stack","block","onStartObject","nested","onEndObject","currentBlock","onStartIteration","onEndIteration","onValue","JSONCode","data","element","setElement","json","ObjectWalker","walk","dangerouslySetInnerHTML","__html","renderJson","JSONView","entries","PropertyElement","PropertyTitle","BlockElement","info","getValueInfo","ValueType","Inline","Paragraph","Prose","ArrayProperty","inlineLength","itemMediumLength","isInline","useBullet","DotBadge","ItemProperty","bullet","content","len","JSONDisplay","viewCode","COLORS","ChartErrorBoundary","hasError","error","getDerivedStateFromError","componentDidCatch","errorInfo","console","chartType","render","message","formatNumber","n","isFinite","abs","Math","toFixed","toLocaleString","AgentChart","memo","spec","chart","xKey","series","yAxis","nameKey","valueKey","yKey","zKey","_zKey","axisKey","dataKey","isExporting","setIsExporting","isCopied","setIsCopied","chartRef","handleCopy","async","dataUrl","toPng","pixelRatio","response","fetch","blob","navigator","clipboard","write","ClipboardItem","setTimeout","err","handleExport","link","document","createElement","download","href","click","safeSeries","safeData","commonAxes","_Fragment","XAxis","tick","YAxis","yAxisId","tickFormatter","left","angle","position","some","s","orientation","right","commonOverlays","CartesianGrid","strokeDasharray","Tooltip","formatter","Legend","referenceZero","ReferenceLine","y","stroke","renderSeries","idx","Line","dot","Area","fill","fillOpacity","stackId","stacked","Bar","Check","Copy","Download","style","width","minWidth","ResponsiveContainer","BarChart","LineChart","AreaChart","ComposedChart","PieChart","Pie","cx","cy","innerRadius","outerRadius","showLabels","_","Cell","xDataKey","yDataKey","ScatterChart","Scatter","renderScatterChart","aKey","RadarChart","PolarGrid","PolarAngleAxis","PolarRadiusAxis","Radar","renderRadarChart","nKey","vKey","startAngle","endAngle","RadialBarChart","barSize","RadialBar","background","iconSize","layout","verticalAlign","align","entry","find","d","payload","renderRadialBarChart","FunnelChart","Funnel","isAnimationActive","LabelList","renderFunnelChart","Treemap","aspectRatio","strokeWidth","textAnchor","renderChart","prevProps","nextProps","JSON","stringify","ALLOWED_CUSTOM_SCHEMES","customUrlTransform","url","scheme","startsWith","defaultUrlTransform","remarkRemoveComments","tree","visit","test","SKIP","MarkdownRenderer","remarkPlugins","removeComments","artifactRunId","client","useUserSession","plugins","remarkGfm","componentsWithCharts","baseComponents","ExistingCode","ExistingLink","a","ExistingImg","img","match","exec","raw","parse","e","warn","rest","rawHref","isArtifactLink","artifactPath","isImageLink","imagePath","resolvedHref","setResolvedHref","cancelled","files","getArtifactDownloadUrl","getDownloadUrl","contextPath","resolve","id","mappedHref","rel","src","alt","rawSrc","isArtifactRef","isImageRef","isArtifactOrImageRef","resolvedSrc","setResolvedSrc","Markdown","urlTransform","PopoverContext","usePopoverContext","__SLOT_NAME","processSlots","slots","Children","child","slotName","isValidElement","processOneSlot","defineSlot","computeElementProps","Popover","triggerProps","trigger","contentProps","ResolvedPopover","middleware","offset","defaultOffset","dismiss","placement","strategy","zIndex","isOpen","setIsOpen","floating","useFloating","open","onOpenChange","shift","flip","whileElementsMounted","autoUpdate","floatingStyles","refs","setReference","setFloating","context","dismissInteraction","useDismiss","clickInteraction","useClick","hoverInteraction","useHover","handleClose","safePolygon","blockPointerEvents","restMs","getHoverProps","getReferenceProps","getFloatingProps","useInteractions","isMounted","styles","transitionStyles","useTransitionStyles","transition","close","FloatingPortal","FloatingFocusManager","PopoverTrigger","_props","PopoverContent","Progress","percent","PropertiesView","Table","VTooltip","Info","TypeNames","setPropertyType","typeObj","isNullable","getTypeSignature","typeName","t","getFirstNotNullType","getItemTypeName","displayTypeName","Trigger","Content","new_prop_name_cnt","ManagedSchema","source","SchemaNode","loadChildren","isEmpty","reload","withSource","uri","withChangeListener","replaceSchema","clone","loader","_getPropertiesSchema","isParent","isNew","resetIsNew","getNameSignature","getSignature","reloadTree","_loadChildren","childSchema","findAvailableChildName","prefix","addChild","newSchema","addRequired","c","updated","newName","newProperties","setPropertyName","indexOf","setRequireProperty","actualType","typeChanged","getUpdateFromNameAndTypeSignature","nameSig","typeSig","endsWith","substring","text","parseTypeSignature","any","updateFromNameAndTypeSignature","updateFromSignature","getEditableSchemaProperty","TYPE_OPTIONS","types","sort","makeTypeOptions","PropertyEditor","onCancel","onSave","isModalOpen","setModalOpen","PropertyNameEditor","PropertyTypeEditor","size","AlignLeft","EditDescriptionModal","onClose","focus","onKeyUp","INPUT_UNSTYLED","display","VSelectBox","onBlur","onKeyDown","popupClass","VModal","VModalTitle","EditDescriptionModalForm","currentValue","setCurrentValue","ModalBody","ModalFooter","PropertyViewer","useSchema","jsonSchema","setSchema","VIEW_BOX","VIEW_BOX_HOVER","EDIT_BOX","Editable","outlineOnHover","editOnClick","placeholder","viewer","skipClickOutside","isEditing","readonly","onValidate","on","off","isOn","useFlag","validationError","setValidationError","DataEdit","DataView","onEdit","Viewer","btnStyle","tabIndex","SquarePen","setActualValue","latestValue","debounceTimer","setDebounceTimer","handleSave","useClickOutside","autoSave","clearTimeout","closest","SchemaEditor","AddPropertyButton","ParentItem","SimpleItem","PropertyTitleBar","setOpen","ChevronDown","ChevronRight","validatePropertyName","propertyName","toast","useToast","editableProp","status","duration","SvgIcon","containerRef","svgEl","DOMParser","parseFromString","querySelector","innerHTML","attrName","setAttribute","appendChild","createSvgIcon","DropZone","onDrop","buttonLabel","allowFolders","isDragging","setIsDragging","dropZoneRef","handleChange","fileArray","file","webkitRelativePath","folderCount","Set","Boolean","fileCount","formattedMessage","customMessage","count","feedback","onDragOver","dataTransfer","onDragLeave","contains","relatedTarget","folders","processEntry","isFile","Promise","defineProperty","writable","fullPath","folderPath","isDirectory","reader","createReader","readEntries","all","webkitGetAsEntry","UploadIcon","fileInput","multiple","accept","onchange","folderInput","webkitdirectory","UploadResultCategory","icon","CheckCircleIcon","isExpanded","setIsExpanded","viewBox","strokeLinecap","strokeLinejoin","UploadSummary","location","collection","successFiles","f","updatedFiles","skippedFiles","failedFiles","successCount","updatedCount","skippedCount","failedCount","totalCount","AlertCircleIcon","XCircleIcon","ATTRIBUTE_TEXT","ATTRIBUTE_COMMENT","ATTRIBUTE_CDATA","DECLARATION_TAG","defaultTheme","tagColor","textColor","attributeKeyColor","attributeValueColor","separatorColor","commentColor","cdataColor","darkTheme","XMLViewerContext","collapsible","indentSize","useXMLViewerContext","parser","XMLParser","preserveOrder","ignoreAttributes","attributeNamePrefix","allowBooleanAttributes","commentPropName","cdataPropName","parseTagValue","CDataTag","indentation","CollapseIcon","collapsed","border","padding","Caret","transform","attrs","useCollapsible","level","initialCollapsedDepth","setCollapsed","isNil","buttonProps","currentCollapsed","role","cursor","CommentTag","Attributes","attributes","DeclarationTag","tagKey","hasBreakLines","elements","getTagProps","elementWithoutAttributes","omit","subElements","getTagType","hasAttributes","Tag","hasChildren","TextElement","hasSiblings","isText","line","Elements","getIndentationString","isInlineTextElement","InvalidXml","XMLViewer","customTheme","xml","invalidXml","initalCollapsedDepth","isDarkMode","setIsDarkMode","documentElement","classList","MutationObserver","observe","attributeFilter","disconnect","valid","XMLValidator","errorMessage","useXMLViewer","whiteSpace","overflowWrap"],"mappings":"+lEACA,IAAIA,GAAgB,KCKb,MAAMC,GACTC,OACA,WAAAC,CAAYD,GACRE,KAAKF,OAASA,CAClB,CACA,QAAAG,CAASC,GACLF,KAAKF,OAAOK,SAAS,CACjBC,Q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