@vertesia/ui 0.76.0 → 0.78.0-dev-9372725

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 (1410) hide show
  1. package/package.json +170 -164
  2. package/src/core/components/SelectList.tsx +11 -1
  3. package/src/core/components/SidePanel.tsx +15 -12
  4. package/src/core/components/shadcn/filters/filterBar.tsx +46 -20
  5. package/src/core/components/shadcn/index.ts +1 -0
  6. package/src/core/components/shadcn/resizeable.tsx +54 -0
  7. package/src/core/components/shadcn/tabs.tsx +16 -6
  8. package/src/core/components/table/index.tsx +1 -1
  9. package/src/core/hooks/PortalContainerProvider.tsx +56 -0
  10. package/src/core/hooks/index.ts +1 -0
  11. package/src/env/index.ts +2 -1
  12. package/src/features/facets/CollectionsFacetsNav.tsx +94 -0
  13. package/src/features/facets/DocumentsFacetsNav.tsx +22 -11
  14. package/src/features/facets/EnvironmentFacet.tsx +1 -1
  15. package/src/features/facets/InteractionsFacetsNav.tsx +111 -0
  16. package/src/features/facets/PromptsFacetsNav.tsx +110 -0
  17. package/src/features/facets/RunsFacetsNav.tsx +40 -9
  18. package/src/features/facets/WorkflowExecutionsFacetsNav.tsx +10 -8
  19. package/src/features/facets/index.ts +11 -9
  20. package/{lib/types/features/facets/VFacetsNav.d.ts → src/features/facets/utils/SearchInterface.tsx} +0 -8
  21. package/src/features/facets/{VTypeFacet.tsx → utils/VTypeFacet.tsx} +6 -3
  22. package/src/features/facets/{VUserFacet.tsx → utils/VUserFacet.tsx} +1 -1
  23. package/src/features/store/collections/EditCollectionView.tsx +14 -1
  24. package/src/features/store/collections/SelectCollection.tsx +160 -31
  25. package/src/features/store/objects/DocumentSearchResults.tsx +75 -39
  26. package/src/features/store/objects/components/ContentOverview.tsx +432 -261
  27. package/src/features/store/objects/components/DocumentIcon.tsx +37 -2
  28. package/src/features/store/objects/layout/documentLayout.tsx +3 -7
  29. package/src/features/store/objects/search/DocumentSearchContext.ts +8 -3
  30. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +15 -8
  31. package/src/features/store/objects/upload/DocumentUploadModal.tsx +5 -6
  32. package/src/features/store/types/ObjectSchemaEditor.tsx +1 -1
  33. package/src/features/user/UserInfo.tsx +68 -3
  34. package/src/session/UserSession.ts +1 -0
  35. package/src/session/UserSessionProvider.tsx +1 -1
  36. package/src/session/auth/composable.ts +71 -70
  37. package/src/shell/apps/AppProjectSelector.tsx +19 -8
  38. package/src/shell/apps/index.ts +1 -1
  39. package/src/shell/login/UserInfo.tsx +1 -1
  40. package/src/widgets/schema-editor/index.ts +0 -1
  41. package/lib/esm/core/components/Avatar.js +0 -31
  42. package/lib/esm/core/components/Avatar.js.map +0 -1
  43. package/lib/esm/core/components/Badge.js +0 -62
  44. package/lib/esm/core/components/Badge.js.map +0 -1
  45. package/lib/esm/core/components/Button.js +0 -32
  46. package/lib/esm/core/components/Button.js.map +0 -1
  47. package/lib/esm/core/components/Center.js +0 -6
  48. package/lib/esm/core/components/Center.js.map +0 -1
  49. package/lib/esm/core/components/ComboBox.js +0 -356
  50. package/lib/esm/core/components/ComboBox.js.map +0 -1
  51. package/lib/esm/core/components/ConfirmModal.js +0 -10
  52. package/lib/esm/core/components/ConfirmModal.js.map +0 -1
  53. package/lib/esm/core/components/DeleteModal.js +0 -28
  54. package/lib/esm/core/components/DeleteModal.js.map +0 -1
  55. package/lib/esm/core/components/Divider.js +0 -6
  56. package/lib/esm/core/components/Divider.js.map +0 -1
  57. package/lib/esm/core/components/Dropdown.js +0 -16
  58. package/lib/esm/core/components/Dropdown.js.map +0 -1
  59. package/lib/esm/core/components/DropdownList.js +0 -9
  60. package/lib/esm/core/components/DropdownList.js.map +0 -1
  61. package/lib/esm/core/components/EmptyCollection.js +0 -7
  62. package/lib/esm/core/components/EmptyCollection.js.map +0 -1
  63. package/lib/esm/core/components/FileUpload.js +0 -119
  64. package/lib/esm/core/components/FileUpload.js.map +0 -1
  65. package/lib/esm/core/components/FormItem.js +0 -9
  66. package/lib/esm/core/components/FormItem.js.map +0 -1
  67. package/lib/esm/core/components/InputList.js +0 -43
  68. package/lib/esm/core/components/InputList.js.map +0 -1
  69. package/lib/esm/core/components/Link.js +0 -13
  70. package/lib/esm/core/components/Link.js.map +0 -1
  71. package/lib/esm/core/components/MenuList.js +0 -23
  72. package/lib/esm/core/components/MenuList.js.map +0 -1
  73. package/lib/esm/core/components/MessageBox.js +0 -66
  74. package/lib/esm/core/components/MessageBox.js.map +0 -1
  75. package/lib/esm/core/components/Modal.js +0 -26
  76. package/lib/esm/core/components/Modal.js.map +0 -1
  77. package/lib/esm/core/components/NumberInput.js +0 -43
  78. package/lib/esm/core/components/NumberInput.js.map +0 -1
  79. package/lib/esm/core/components/Overlay.js +0 -57
  80. package/lib/esm/core/components/Overlay.js.map +0 -1
  81. package/lib/esm/core/components/Portal.js +0 -28
  82. package/lib/esm/core/components/Portal.js.map +0 -1
  83. package/lib/esm/core/components/RadioGroup.js +0 -34
  84. package/lib/esm/core/components/RadioGroup.js.map +0 -1
  85. package/lib/esm/core/components/SelectBox.js +0 -67
  86. package/lib/esm/core/components/SelectBox.js.map +0 -1
  87. package/lib/esm/core/components/SelectList.js +0 -47
  88. package/lib/esm/core/components/SelectList.js.map +0 -1
  89. package/lib/esm/core/components/SelectStack.js +0 -8
  90. package/lib/esm/core/components/SelectStack.js.map +0 -1
  91. package/lib/esm/core/components/SidePanel.js +0 -33
  92. package/lib/esm/core/components/SidePanel.js.map +0 -1
  93. package/lib/esm/core/components/Spinner.js +0 -18
  94. package/lib/esm/core/components/Spinner.js.map +0 -1
  95. package/lib/esm/core/components/Switch.js +0 -12
  96. package/lib/esm/core/components/Switch.js.map +0 -1
  97. package/lib/esm/core/components/Textarea.js +0 -15
  98. package/lib/esm/core/components/Textarea.js.map +0 -1
  99. package/lib/esm/core/components/index.js +0 -35
  100. package/lib/esm/core/components/index.js.map +0 -1
  101. package/lib/esm/core/components/libs/utils.js +0 -6
  102. package/lib/esm/core/components/libs/utils.js.map +0 -1
  103. package/lib/esm/core/components/libs/visuallyHidden.js +0 -16
  104. package/lib/esm/core/components/libs/visuallyHidden.js.map +0 -1
  105. package/lib/esm/core/components/popup/Popup.js +0 -60
  106. package/lib/esm/core/components/popup/Popup.js.map +0 -1
  107. package/lib/esm/core/components/popup/PopupController.js +0 -149
  108. package/lib/esm/core/components/popup/PopupController.js.map +0 -1
  109. package/lib/esm/core/components/popup/index.js +0 -4
  110. package/lib/esm/core/components/popup/index.js.map +0 -1
  111. package/lib/esm/core/components/popup/position.js +0 -221
  112. package/lib/esm/core/components/popup/position.js.map +0 -1
  113. package/lib/esm/core/components/popup/utils.js +0 -74
  114. package/lib/esm/core/components/popup/utils.js.map +0 -1
  115. package/lib/esm/core/components/shadcn/breadcrumb.js +0 -30
  116. package/lib/esm/core/components/shadcn/breadcrumb.js.map +0 -1
  117. package/lib/esm/core/components/shadcn/button.js +0 -75
  118. package/lib/esm/core/components/shadcn/button.js.map +0 -1
  119. package/lib/esm/core/components/shadcn/calendar.js +0 -13
  120. package/lib/esm/core/components/shadcn/calendar.js.map +0 -1
  121. package/lib/esm/core/components/shadcn/card.js +0 -17
  122. package/lib/esm/core/components/shadcn/card.js.map +0 -1
  123. package/lib/esm/core/components/shadcn/checkbox.js +0 -9
  124. package/lib/esm/core/components/shadcn/checkbox.js.map +0 -1
  125. package/lib/esm/core/components/shadcn/command.js +0 -29
  126. package/lib/esm/core/components/shadcn/command.js.map +0 -1
  127. package/lib/esm/core/components/shadcn/dialog.js +0 -60
  128. package/lib/esm/core/components/shadcn/dialog.js.map +0 -1
  129. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +0 -38
  130. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +0 -1
  131. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js +0 -23
  132. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js.map +0 -1
  133. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +0 -129
  134. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +0 -1
  135. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +0 -46
  136. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +0 -1
  137. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +0 -23
  138. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +0 -1
  139. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js +0 -28
  140. package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js.map +0 -1
  141. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js +0 -5
  142. package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js.map +0 -1
  143. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js +0 -101
  144. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js.map +0 -1
  145. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +0 -24
  146. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +0 -1
  147. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js +0 -21
  148. package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js.map +0 -1
  149. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +0 -161
  150. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +0 -1
  151. package/lib/esm/core/components/shadcn/filters/filter-styles.js +0 -88
  152. package/lib/esm/core/components/shadcn/filters/filter-styles.js.map +0 -1
  153. package/lib/esm/core/components/shadcn/filters/filterBar.js +0 -215
  154. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +0 -1
  155. package/lib/esm/core/components/shadcn/filters/filters.js +0 -57
  156. package/lib/esm/core/components/shadcn/filters/filters.js.map +0 -1
  157. package/lib/esm/core/components/shadcn/filters/index.js +0 -6
  158. package/lib/esm/core/components/shadcn/filters/index.js.map +0 -1
  159. package/lib/esm/core/components/shadcn/filters/types.js +0 -10
  160. package/lib/esm/core/components/shadcn/filters/types.js.map +0 -1
  161. package/lib/esm/core/components/shadcn/heading.js +0 -17
  162. package/lib/esm/core/components/shadcn/heading.js.map +0 -1
  163. package/lib/esm/core/components/shadcn/index.js +0 -22
  164. package/lib/esm/core/components/shadcn/index.js.map +0 -1
  165. package/lib/esm/core/components/shadcn/input.js +0 -38
  166. package/lib/esm/core/components/shadcn/input.js.map +0 -1
  167. package/lib/esm/core/components/shadcn/label.js +0 -10
  168. package/lib/esm/core/components/shadcn/label.js.map +0 -1
  169. package/lib/esm/core/components/shadcn/popover.js +0 -50
  170. package/lib/esm/core/components/shadcn/popover.js.map +0 -1
  171. package/lib/esm/core/components/shadcn/selectBox.js +0 -128
  172. package/lib/esm/core/components/shadcn/selectBox.js.map +0 -1
  173. package/lib/esm/core/components/shadcn/separator.js +0 -8
  174. package/lib/esm/core/components/shadcn/separator.js.map +0 -1
  175. package/lib/esm/core/components/shadcn/tabs.js +0 -120
  176. package/lib/esm/core/components/shadcn/tabs.js.map +0 -1
  177. package/lib/esm/core/components/shadcn/text.js +0 -30
  178. package/lib/esm/core/components/shadcn/text.js.map +0 -1
  179. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js +0 -39
  180. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js.map +0 -1
  181. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +0 -13
  182. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +0 -1
  183. package/lib/esm/core/components/shadcn/tooltip.js +0 -14
  184. package/lib/esm/core/components/shadcn/tooltip.js.map +0 -1
  185. package/lib/esm/core/components/styles.js +0 -10
  186. package/lib/esm/core/components/styles.js.map +0 -1
  187. package/lib/esm/core/components/table/index.js +0 -23
  188. package/lib/esm/core/components/table/index.js.map +0 -1
  189. package/lib/esm/core/components/tabs/Tabs.js +0 -78
  190. package/lib/esm/core/components/tabs/Tabs.js.map +0 -1
  191. package/lib/esm/core/components/tabs/TabsContext.js +0 -7
  192. package/lib/esm/core/components/tabs/TabsContext.js.map +0 -1
  193. package/lib/esm/core/components/tabs/index.js +0 -3
  194. package/lib/esm/core/components/tabs/index.js.map +0 -1
  195. package/lib/esm/core/components/toast/NotificationPanel.js +0 -43
  196. package/lib/esm/core/components/toast/NotificationPanel.js.map +0 -1
  197. package/lib/esm/core/components/toast/ToastContext.js +0 -7
  198. package/lib/esm/core/components/toast/ToastContext.js.map +0 -1
  199. package/lib/esm/core/components/toast/ToastProps.js +0 -2
  200. package/lib/esm/core/components/toast/ToastProps.js.map +0 -1
  201. package/lib/esm/core/components/toast/ToastProvider.js +0 -13
  202. package/lib/esm/core/components/toast/ToastProvider.js.map +0 -1
  203. package/lib/esm/core/components/toast/index.js +0 -3
  204. package/lib/esm/core/components/toast/index.js.map +0 -1
  205. package/lib/esm/core/hooks/CompositeState.js +0 -118
  206. package/lib/esm/core/hooks/CompositeState.js.map +0 -1
  207. package/lib/esm/core/hooks/SharedState.js +0 -64
  208. package/lib/esm/core/hooks/SharedState.js.map +0 -1
  209. package/lib/esm/core/hooks/index.js +0 -14
  210. package/lib/esm/core/hooks/index.js.map +0 -1
  211. package/lib/esm/core/hooks/useClickOutside.js +0 -29
  212. package/lib/esm/core/hooks/useClickOutside.js.map +0 -1
  213. package/lib/esm/core/hooks/useCopyToClipboard.js +0 -23
  214. package/lib/esm/core/hooks/useCopyToClipboard.js.map +0 -1
  215. package/lib/esm/core/hooks/useDarkMode.js +0 -11
  216. package/lib/esm/core/hooks/useDarkMode.js.map +0 -1
  217. package/lib/esm/core/hooks/useDebounce.js +0 -14
  218. package/lib/esm/core/hooks/useDebounce.js.map +0 -1
  219. package/lib/esm/core/hooks/useEventSource.js +0 -31
  220. package/lib/esm/core/hooks/useEventSource.js.map +0 -1
  221. package/lib/esm/core/hooks/useFetch.js +0 -40
  222. package/lib/esm/core/hooks/useFetch.js.map +0 -1
  223. package/lib/esm/core/hooks/useFlag.js +0 -13
  224. package/lib/esm/core/hooks/useFlag.js.map +0 -1
  225. package/lib/esm/core/hooks/useIntersectionObserver.js +0 -34
  226. package/lib/esm/core/hooks/useIntersectionObserver.js.map +0 -1
  227. package/lib/esm/core/hooks/useIsFistRendering.js +0 -14
  228. package/lib/esm/core/hooks/useIsFistRendering.js.map +0 -1
  229. package/lib/esm/core/hooks/useSafeLayoutEffect.js +0 -4
  230. package/lib/esm/core/hooks/useSafeLayoutEffect.js.map +0 -1
  231. package/lib/esm/core/hooks/useSharedValue.js +0 -21
  232. package/lib/esm/core/hooks/useSharedValue.js.map +0 -1
  233. package/lib/esm/core/index.js +0 -4
  234. package/lib/esm/core/index.js.map +0 -1
  235. package/lib/esm/core/utils/cn.js +0 -6
  236. package/lib/esm/core/utils/cn.js.map +0 -1
  237. package/lib/esm/core/utils/index.js +0 -2
  238. package/lib/esm/core/utils/index.js.map +0 -1
  239. package/lib/esm/env/index.js +0 -72
  240. package/lib/esm/env/index.js.map +0 -1
  241. package/lib/esm/features/activity-doc/ActivityDoc.js +0 -71
  242. package/lib/esm/features/activity-doc/ActivityDoc.js.map +0 -1
  243. package/lib/esm/features/activity-doc/index.js +0 -2
  244. package/lib/esm/features/activity-doc/index.js.map +0 -1
  245. package/lib/esm/features/agent/PayloadBuilder.js +0 -241
  246. package/lib/esm/features/agent/PayloadBuilder.js.map +0 -1
  247. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +0 -207
  248. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +0 -1
  249. package/lib/esm/features/agent/chat/JumpingDots.js +0 -6
  250. package/lib/esm/features/agent/chat/JumpingDots.js.map +0 -1
  251. package/lib/esm/features/agent/chat/ModernAgentConversation.js +0 -415
  252. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +0 -1
  253. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +0 -130
  254. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +0 -1
  255. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +0 -62
  256. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +0 -1
  257. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +0 -29
  258. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +0 -1
  259. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +0 -97
  260. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +0 -1
  261. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +0 -46
  262. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +0 -1
  263. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +0 -364
  264. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +0 -1
  265. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +0 -20
  266. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +0 -1
  267. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +0 -62
  268. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +0 -1
  269. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +0 -23
  270. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +0 -1
  271. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +0 -52
  272. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +0 -1
  273. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +0 -82
  274. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +0 -1
  275. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +0 -13
  276. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +0 -1
  277. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +0 -105
  278. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +0 -1
  279. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +0 -160
  280. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +0 -1
  281. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +0 -266
  282. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +0 -1
  283. package/lib/esm/features/agent/chat/WaitingMessages.js +0 -60
  284. package/lib/esm/features/agent/chat/WaitingMessages.js.map +0 -1
  285. package/lib/esm/features/agent/chat/index.js +0 -5
  286. package/lib/esm/features/agent/chat/index.js.map +0 -1
  287. package/lib/esm/features/agent/index.js +0 -3
  288. package/lib/esm/features/agent/index.js.map +0 -1
  289. package/lib/esm/features/errors/PanelErrorBoundary.js +0 -11
  290. package/lib/esm/features/errors/PanelErrorBoundary.js.map +0 -1
  291. package/lib/esm/features/errors/RowErrorBoundary.js +0 -9
  292. package/lib/esm/features/errors/RowErrorBoundary.js.map +0 -1
  293. package/lib/esm/features/errors/VertesiaErrorBoundary.js +0 -15
  294. package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +0 -1
  295. package/lib/esm/features/errors/WidgetErrorBoundary.js +0 -11
  296. package/lib/esm/features/errors/WidgetErrorBoundary.js.map +0 -1
  297. package/lib/esm/features/errors/index.js +0 -5
  298. package/lib/esm/features/errors/index.js.map +0 -1
  299. package/lib/esm/features/facets/DocumentsFacetsNav.js +0 -135
  300. package/lib/esm/features/facets/DocumentsFacetsNav.js.map +0 -1
  301. package/lib/esm/features/facets/EnvironmentFacet.js +0 -39
  302. package/lib/esm/features/facets/EnvironmentFacet.js.map +0 -1
  303. package/lib/esm/features/facets/FacetsNav.js +0 -8
  304. package/lib/esm/features/facets/FacetsNav.js.map +0 -1
  305. package/lib/esm/features/facets/RunsFacetsNav.js +0 -135
  306. package/lib/esm/features/facets/RunsFacetsNav.js.map +0 -1
  307. package/lib/esm/features/facets/StringFacet.js +0 -12
  308. package/lib/esm/features/facets/StringFacet.js.map +0 -1
  309. package/lib/esm/features/facets/StringListFacet.js +0 -11
  310. package/lib/esm/features/facets/StringListFacet.js.map +0 -1
  311. package/lib/esm/features/facets/TypeFacet.js +0 -42
  312. package/lib/esm/features/facets/TypeFacet.js.map +0 -1
  313. package/lib/esm/features/facets/VEnvironmentFacet.js +0 -24
  314. package/lib/esm/features/facets/VEnvironmentFacet.js.map +0 -1
  315. package/lib/esm/features/facets/VFacetsNav.js +0 -48
  316. package/lib/esm/features/facets/VFacetsNav.js.map +0 -1
  317. package/lib/esm/features/facets/VInteractionFacet.js +0 -45
  318. package/lib/esm/features/facets/VInteractionFacet.js.map +0 -1
  319. package/lib/esm/features/facets/VStringFacet.js +0 -20
  320. package/lib/esm/features/facets/VStringFacet.js.map +0 -1
  321. package/lib/esm/features/facets/VTypeFacet.js +0 -56
  322. package/lib/esm/features/facets/VTypeFacet.js.map +0 -1
  323. package/lib/esm/features/facets/VUserFacet.js +0 -31
  324. package/lib/esm/features/facets/VUserFacet.js.map +0 -1
  325. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js +0 -98
  326. package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js.map +0 -1
  327. package/lib/esm/features/facets/index.js +0 -13
  328. package/lib/esm/features/facets/index.js.map +0 -1
  329. package/lib/esm/features/facets/utils.js +0 -7
  330. package/lib/esm/features/facets/utils.js.map +0 -1
  331. package/lib/esm/features/index.js +0 -11
  332. package/lib/esm/features/index.js.map +0 -1
  333. package/lib/esm/features/layout/GenericPageNavHeader.js +0 -11
  334. package/lib/esm/features/layout/GenericPageNavHeader.js.map +0 -1
  335. package/lib/esm/features/layout/NotFoundView.js +0 -5
  336. package/lib/esm/features/layout/NotFoundView.js.map +0 -1
  337. package/lib/esm/features/layout/index.js +0 -3
  338. package/lib/esm/features/layout/index.js.map +0 -1
  339. package/lib/esm/features/magic-pdf/DownloadPopover.js +0 -28
  340. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +0 -1
  341. package/lib/esm/features/magic-pdf/MagicPdfView.js +0 -67
  342. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +0 -1
  343. package/lib/esm/features/magic-pdf/PageSlider.js +0 -70
  344. package/lib/esm/features/magic-pdf/PageSlider.js.map +0 -1
  345. package/lib/esm/features/magic-pdf/PdfPageProvider.js +0 -188
  346. package/lib/esm/features/magic-pdf/PdfPageProvider.js.map +0 -1
  347. package/lib/esm/features/magic-pdf/TextPageView.js +0 -62
  348. package/lib/esm/features/magic-pdf/TextPageView.js.map +0 -1
  349. package/lib/esm/features/magic-pdf/index.js +0 -2
  350. package/lib/esm/features/magic-pdf/index.js.map +0 -1
  351. package/lib/esm/features/magic-pdf/types.js +0 -2
  352. package/lib/esm/features/magic-pdf/types.js.map +0 -1
  353. package/lib/esm/features/magic-pdf/useResizeOnDrag.js +0 -34
  354. package/lib/esm/features/magic-pdf/useResizeOnDrag.js.map +0 -1
  355. package/lib/esm/features/permissions/SecureButton.js +0 -13
  356. package/lib/esm/features/permissions/SecureButton.js.map +0 -1
  357. package/lib/esm/features/permissions/SecureSidebarItem.js +0 -14
  358. package/lib/esm/features/permissions/SecureSidebarItem.js.map +0 -1
  359. package/lib/esm/features/permissions/UserPermissionsProvider.js +0 -87
  360. package/lib/esm/features/permissions/UserPermissionsProvider.js.map +0 -1
  361. package/lib/esm/features/permissions/helpers.js +0 -12
  362. package/lib/esm/features/permissions/helpers.js.map +0 -1
  363. package/lib/esm/features/permissions/index.js +0 -5
  364. package/lib/esm/features/permissions/index.js.map +0 -1
  365. package/lib/esm/features/store/collections/BrowseCollectionView.js +0 -37
  366. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +0 -1
  367. package/lib/esm/features/store/collections/CollectionsTable.js +0 -64
  368. package/lib/esm/features/store/collections/CollectionsTable.js.map +0 -1
  369. package/lib/esm/features/store/collections/CreateCollection.js +0 -87
  370. package/lib/esm/features/store/collections/CreateCollection.js.map +0 -1
  371. package/lib/esm/features/store/collections/EditCollectionView.js +0 -162
  372. package/lib/esm/features/store/collections/EditCollectionView.js.map +0 -1
  373. package/lib/esm/features/store/collections/SelectCollection.js +0 -24
  374. package/lib/esm/features/store/collections/SelectCollection.js.map +0 -1
  375. package/lib/esm/features/store/collections/index.js +0 -6
  376. package/lib/esm/features/store/collections/index.js.map +0 -1
  377. package/lib/esm/features/store/index.js +0 -4
  378. package/lib/esm/features/store/index.js.map +0 -1
  379. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +0 -147
  380. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +0 -1
  381. package/lib/esm/features/store/objects/DocumentSearchResults.js +0 -159
  382. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +0 -1
  383. package/lib/esm/features/store/objects/DocumentSelectionProvider.js +0 -81
  384. package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +0 -1
  385. package/lib/esm/features/store/objects/DocumentTable.js +0 -278
  386. package/lib/esm/features/store/objects/DocumentTable.js.map +0 -1
  387. package/lib/esm/features/store/objects/ExportPropertiesModal.js +0 -31
  388. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +0 -1
  389. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +0 -31
  390. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +0 -1
  391. package/lib/esm/features/store/objects/components/ContentOverview.js +0 -192
  392. package/lib/esm/features/store/objects/components/ContentOverview.js.map +0 -1
  393. package/lib/esm/features/store/objects/components/DocumentIcon.js +0 -25
  394. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +0 -1
  395. package/lib/esm/features/store/objects/components/DocumentInput.js +0 -51
  396. package/lib/esm/features/store/objects/components/DocumentInput.js.map +0 -1
  397. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +0 -171
  398. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +0 -1
  399. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +0 -44
  400. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +0 -1
  401. package/lib/esm/features/store/objects/components/SelectDocument.js +0 -45
  402. package/lib/esm/features/store/objects/components/SelectDocument.js.map +0 -1
  403. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +0 -7
  404. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +0 -1
  405. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +0 -90
  406. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +0 -1
  407. package/lib/esm/features/store/objects/components/index.js +0 -10
  408. package/lib/esm/features/store/objects/components/index.js.map +0 -1
  409. package/lib/esm/features/store/objects/components/useDownloadObject.js +0 -21
  410. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +0 -1
  411. package/lib/esm/features/store/objects/index.js +0 -11
  412. package/lib/esm/features/store/objects/index.js.map +0 -1
  413. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +0 -74
  414. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +0 -1
  415. package/lib/esm/features/store/objects/layout/documentLayout.js +0 -16
  416. package/lib/esm/features/store/objects/layout/documentLayout.js.map +0 -1
  417. package/lib/esm/features/store/objects/layout/index.js +0 -3
  418. package/lib/esm/features/store/objects/layout/index.js.map +0 -1
  419. package/lib/esm/features/store/objects/layout/renderers.js +0 -128
  420. package/lib/esm/features/store/objects/layout/renderers.js.map +0 -1
  421. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +0 -168
  422. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +0 -1
  423. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +0 -39
  424. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +0 -1
  425. package/lib/esm/features/store/objects/search/index.js +0 -3
  426. package/lib/esm/features/store/objects/search/index.js.map +0 -1
  427. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +0 -149
  428. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +0 -1
  429. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +0 -2
  430. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +0 -1
  431. package/lib/esm/features/store/objects/selection/SelectionActions.js +0 -75
  432. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +0 -1
  433. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +0 -73
  434. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +0 -1
  435. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +0 -53
  436. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +0 -1
  437. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +0 -30
  438. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +0 -1
  439. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +0 -66
  440. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +0 -1
  441. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +0 -106
  442. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +0 -1
  443. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +0 -64
  444. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +0 -1
  445. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +0 -72
  446. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +0 -1
  447. package/lib/esm/features/store/objects/selection/actions/index.js +0 -8
  448. package/lib/esm/features/store/objects/selection/actions/index.js.map +0 -1
  449. package/lib/esm/features/store/objects/selection/index.js +0 -5
  450. package/lib/esm/features/store/objects/selection/index.js.map +0 -1
  451. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +0 -511
  452. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +0 -1
  453. package/lib/esm/features/store/objects/upload/index.js +0 -4
  454. package/lib/esm/features/store/objects/upload/index.js.map +0 -1
  455. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +0 -194
  456. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +0 -1
  457. package/lib/esm/features/store/objects/upload/useUploadHandler.js +0 -230
  458. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +0 -1
  459. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +0 -81
  460. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +0 -1
  461. package/lib/esm/features/store/types/ContentObjectTypesTable.js +0 -11
  462. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +0 -1
  463. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +0 -26
  464. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +0 -1
  465. package/lib/esm/features/store/types/ObjectSchemaEditor.js +0 -103
  466. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +0 -1
  467. package/lib/esm/features/store/types/SelectContentType.js +0 -43
  468. package/lib/esm/features/store/types/SelectContentType.js.map +0 -1
  469. package/lib/esm/features/store/types/SelectContentTypeModal.js +0 -28
  470. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +0 -1
  471. package/lib/esm/features/store/types/TableLayoutEditor.js +0 -78
  472. package/lib/esm/features/store/types/TableLayoutEditor.js.map +0 -1
  473. package/lib/esm/features/store/types/index.js +0 -9
  474. package/lib/esm/features/store/types/index.js.map +0 -1
  475. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +0 -98
  476. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +0 -1
  477. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +0 -15
  478. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +0 -1
  479. package/lib/esm/features/store/types/search/index.js +0 -3
  480. package/lib/esm/features/store/types/search/index.js.map +0 -1
  481. package/lib/esm/features/user/UserAvatar.js +0 -18
  482. package/lib/esm/features/user/UserAvatar.js.map +0 -1
  483. package/lib/esm/features/user/UserInfo.js +0 -87
  484. package/lib/esm/features/user/UserInfo.js.map +0 -1
  485. package/lib/esm/features/user/index.js +0 -3
  486. package/lib/esm/features/user/index.js.map +0 -1
  487. package/lib/esm/features/utils/index.js +0 -4
  488. package/lib/esm/features/utils/index.js.map +0 -1
  489. package/lib/esm/features/utils/mimeType.js +0 -9
  490. package/lib/esm/features/utils/mimeType.js.map +0 -1
  491. package/lib/esm/features/utils/rendition.js +0 -67
  492. package/lib/esm/features/utils/rendition.js.map +0 -1
  493. package/lib/esm/features/utils/text.js +0 -10
  494. package/lib/esm/features/utils/text.js.map +0 -1
  495. package/lib/esm/layout/AppLayout.js +0 -46
  496. package/lib/esm/layout/AppLayout.js.map +0 -1
  497. package/lib/esm/layout/FullHeightLayout.js +0 -18
  498. package/lib/esm/layout/FullHeightLayout.js.map +0 -1
  499. package/lib/esm/layout/Navbar.js +0 -40
  500. package/lib/esm/layout/Navbar.js.map +0 -1
  501. package/lib/esm/layout/Sidebar.js +0 -45
  502. package/lib/esm/layout/Sidebar.js.map +0 -1
  503. package/lib/esm/layout/SidebarContext.js +0 -10
  504. package/lib/esm/layout/SidebarContext.js.map +0 -1
  505. package/lib/esm/layout/TitleBar.js +0 -5
  506. package/lib/esm/layout/TitleBar.js.map +0 -1
  507. package/lib/esm/layout/index.js +0 -7
  508. package/lib/esm/layout/index.js.map +0 -1
  509. package/lib/esm/router/FixLinks.js +0 -23
  510. package/lib/esm/router/FixLinks.js.map +0 -1
  511. package/lib/esm/router/HistoryNavigator.js +0 -149
  512. package/lib/esm/router/HistoryNavigator.js.map +0 -1
  513. package/lib/esm/router/Nav.js +0 -26
  514. package/lib/esm/router/Nav.js.map +0 -1
  515. package/lib/esm/router/NestedNavigationContext.js +0 -19
  516. package/lib/esm/router/NestedNavigationContext.js.map +0 -1
  517. package/lib/esm/router/NestedRouterProvider.js +0 -44
  518. package/lib/esm/router/NestedRouterProvider.js.map +0 -1
  519. package/lib/esm/router/PathMatcher.js +0 -159
  520. package/lib/esm/router/PathMatcher.js.map +0 -1
  521. package/lib/esm/router/PathWithParams.js +0 -34
  522. package/lib/esm/router/PathWithParams.js.map +0 -1
  523. package/lib/esm/router/Route404.js +0 -18
  524. package/lib/esm/router/Route404.js.map +0 -1
  525. package/lib/esm/router/RouteComponent.js +0 -32
  526. package/lib/esm/router/RouteComponent.js.map +0 -1
  527. package/lib/esm/router/Router.js +0 -161
  528. package/lib/esm/router/Router.js.map +0 -1
  529. package/lib/esm/router/RouterProvider.js +0 -41
  530. package/lib/esm/router/RouterProvider.js.map +0 -1
  531. package/lib/esm/router/index.js +0 -11
  532. package/lib/esm/router/index.js.map +0 -1
  533. package/lib/esm/router/path.js +0 -140
  534. package/lib/esm/router/path.js.map +0 -1
  535. package/lib/esm/session/TypeRegistry.js +0 -24
  536. package/lib/esm/session/TypeRegistry.js.map +0 -1
  537. package/lib/esm/session/UserSession.js +0 -191
  538. package/lib/esm/session/UserSession.js.map +0 -1
  539. package/lib/esm/session/UserSessionProvider.js +0 -164
  540. package/lib/esm/session/UserSessionProvider.js.map +0 -1
  541. package/lib/esm/session/auth/composable.js +0 -162
  542. package/lib/esm/session/auth/composable.js.map +0 -1
  543. package/lib/esm/session/auth/firebase.js +0 -158
  544. package/lib/esm/session/auth/firebase.js.map +0 -1
  545. package/lib/esm/session/auth/useAuthState.js +0 -46
  546. package/lib/esm/session/auth/useAuthState.js.map +0 -1
  547. package/lib/esm/session/auth/useCurrentTenant.js +0 -63
  548. package/lib/esm/session/auth/useCurrentTenant.js.map +0 -1
  549. package/lib/esm/session/constants.js +0 -3
  550. package/lib/esm/session/constants.js.map +0 -1
  551. package/lib/esm/session/index.js +0 -8
  552. package/lib/esm/session/index.js.map +0 -1
  553. package/lib/esm/session/useUXTracking.js +0 -29
  554. package/lib/esm/session/useUXTracking.js.map +0 -1
  555. package/lib/esm/shell/SplashScreen.js +0 -26
  556. package/lib/esm/shell/SplashScreen.js.map +0 -1
  557. package/lib/esm/shell/VertesiaShell.js +0 -10
  558. package/lib/esm/shell/VertesiaShell.js.map +0 -1
  559. package/lib/esm/shell/apps/AppInstallationProvider.js +0 -13
  560. package/lib/esm/shell/apps/AppInstallationProvider.js.map +0 -1
  561. package/lib/esm/shell/apps/AppProjectSelector.js +0 -25
  562. package/lib/esm/shell/apps/AppProjectSelector.js.map +0 -1
  563. package/lib/esm/shell/apps/StandaloneApp.js +0 -60
  564. package/lib/esm/shell/apps/StandaloneApp.js.map +0 -1
  565. package/lib/esm/shell/apps/index.js +0 -4
  566. package/lib/esm/shell/apps/index.js.map +0 -1
  567. package/lib/esm/shell/index.js +0 -8
  568. package/lib/esm/shell/index.js.map +0 -1
  569. package/lib/esm/shell/login/EnterpriseSigninButton.js +0 -84
  570. package/lib/esm/shell/login/EnterpriseSigninButton.js.map +0 -1
  571. package/lib/esm/shell/login/GitHubSignInButton.js +0 -24
  572. package/lib/esm/shell/login/GitHubSignInButton.js.map +0 -1
  573. package/lib/esm/shell/login/GoogleSignInButton.js +0 -25
  574. package/lib/esm/shell/login/GoogleSignInButton.js.map +0 -1
  575. package/lib/esm/shell/login/InviteAcceptModal.js +0 -62
  576. package/lib/esm/shell/login/InviteAcceptModal.js.map +0 -1
  577. package/lib/esm/shell/login/MicrosoftSigninButton.js +0 -19
  578. package/lib/esm/shell/login/MicrosoftSigninButton.js.map +0 -1
  579. package/lib/esm/shell/login/PreviewIcon.js +0 -23
  580. package/lib/esm/shell/login/PreviewIcon.js.map +0 -1
  581. package/lib/esm/shell/login/SignInModal.js +0 -9
  582. package/lib/esm/shell/login/SignInModal.js.map +0 -1
  583. package/lib/esm/shell/login/SigninScreen.js +0 -64
  584. package/lib/esm/shell/login/SigninScreen.js.map +0 -1
  585. package/lib/esm/shell/login/SignupForm.js +0 -91
  586. package/lib/esm/shell/login/SignupForm.js.map +0 -1
  587. package/lib/esm/shell/login/TerminalLogin.js +0 -179
  588. package/lib/esm/shell/login/TerminalLogin.js.map +0 -1
  589. package/lib/esm/shell/login/UserInfo.js +0 -40
  590. package/lib/esm/shell/login/UserInfo.js.map +0 -1
  591. package/lib/esm/shell/login/UserSessionMenu.js +0 -31
  592. package/lib/esm/shell/login/UserSessionMenu.js.map +0 -1
  593. package/lib/esm/shell/utils.js +0 -6
  594. package/lib/esm/shell/utils.js.map +0 -1
  595. package/lib/esm/widgets/Progress.js +0 -5
  596. package/lib/esm/widgets/Progress.js.map +0 -1
  597. package/lib/esm/widgets/SvgIcon.js +0 -36
  598. package/lib/esm/widgets/SvgIcon.js.map +0 -1
  599. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js +0 -103
  600. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js.map +0 -1
  601. package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js +0 -33
  602. package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js.map +0 -1
  603. package/lib/esm/widgets/codemirror/index.js +0 -2
  604. package/lib/esm/widgets/codemirror/index.js.map +0 -1
  605. package/lib/esm/widgets/form/Form.js +0 -102
  606. package/lib/esm/widgets/form/Form.js.map +0 -1
  607. package/lib/esm/widgets/form/FormContext.js +0 -29
  608. package/lib/esm/widgets/form/FormContext.js.map +0 -1
  609. package/lib/esm/widgets/form/ManagedObject.js +0 -283
  610. package/lib/esm/widgets/form/ManagedObject.js.map +0 -1
  611. package/lib/esm/widgets/form/fields.js +0 -11
  612. package/lib/esm/widgets/form/fields.js.map +0 -1
  613. package/lib/esm/widgets/form/index.js +0 -7
  614. package/lib/esm/widgets/form/index.js.map +0 -1
  615. package/lib/esm/widgets/form/inputs.js +0 -36
  616. package/lib/esm/widgets/form/inputs.js.map +0 -1
  617. package/lib/esm/widgets/form/schema.js +0 -197
  618. package/lib/esm/widgets/form/schema.js.map +0 -1
  619. package/lib/esm/widgets/index.js +0 -12
  620. package/lib/esm/widgets/index.js.map +0 -1
  621. package/lib/esm/widgets/json-view/JSONCode.js +0 -157
  622. package/lib/esm/widgets/json-view/JSONCode.js.map +0 -1
  623. package/lib/esm/widgets/json-view/JSONDisplay.js +0 -10
  624. package/lib/esm/widgets/json-view/JSONDisplay.js.map +0 -1
  625. package/lib/esm/widgets/json-view/JSONView.js +0 -106
  626. package/lib/esm/widgets/json-view/JSONView.js.map +0 -1
  627. package/lib/esm/widgets/json-view/index.js +0 -4
  628. package/lib/esm/widgets/json-view/index.js.map +0 -1
  629. package/lib/esm/widgets/json-view/types.js +0 -2
  630. package/lib/esm/widgets/json-view/types.js.map +0 -1
  631. package/lib/esm/widgets/markdown/MarkdownRenderer.js +0 -24
  632. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +0 -1
  633. package/lib/esm/widgets/markdown/index.js +0 -2
  634. package/lib/esm/widgets/markdown/index.js.map +0 -1
  635. package/lib/esm/widgets/popover/Popover.js +0 -73
  636. package/lib/esm/widgets/popover/Popover.js.map +0 -1
  637. package/lib/esm/widgets/popover/context.js +0 -7
  638. package/lib/esm/widgets/popover/context.js.map +0 -1
  639. package/lib/esm/widgets/popover/index.js +0 -3
  640. package/lib/esm/widgets/popover/index.js.map +0 -1
  641. package/lib/esm/widgets/popover/slots.js +0 -22
  642. package/lib/esm/widgets/popover/slots.js.map +0 -1
  643. package/lib/esm/widgets/properties/PropertiesView.js +0 -8
  644. package/lib/esm/widgets/properties/PropertiesView.js.map +0 -1
  645. package/lib/esm/widgets/properties/index.js +0 -2
  646. package/lib/esm/widgets/properties/index.js.map +0 -1
  647. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js +0 -49
  648. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js.map +0 -1
  649. package/lib/esm/widgets/schema-editor/ManagedSchema.js +0 -303
  650. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +0 -1
  651. package/lib/esm/widgets/schema-editor/editor/Editable.js +0 -110
  652. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +0 -1
  653. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js +0 -8
  654. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js.map +0 -1
  655. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +0 -81
  656. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +0 -1
  657. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +0 -7
  658. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +0 -1
  659. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js +0 -9
  660. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js.map +0 -1
  661. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +0 -84
  662. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +0 -1
  663. package/lib/esm/widgets/schema-editor/index.js +0 -8
  664. package/lib/esm/widgets/schema-editor/index.js.map +0 -1
  665. package/lib/esm/widgets/schema-editor/json-schema4-utils.js +0 -188
  666. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +0 -1
  667. package/lib/esm/widgets/schema-editor/type-signature.js +0 -30
  668. package/lib/esm/widgets/schema-editor/type-signature.js.map +0 -1
  669. package/lib/esm/widgets/upload/DropZone.js +0 -162
  670. package/lib/esm/widgets/upload/DropZone.js.map +0 -1
  671. package/lib/esm/widgets/upload/UploadResultCategory.js +0 -19
  672. package/lib/esm/widgets/upload/UploadResultCategory.js.map +0 -1
  673. package/lib/esm/widgets/upload/UploadSummary.js +0 -30
  674. package/lib/esm/widgets/upload/UploadSummary.js.map +0 -1
  675. package/lib/esm/widgets/upload/index.js +0 -4
  676. package/lib/esm/widgets/upload/index.js.map +0 -1
  677. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js +0 -11
  678. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js.map +0 -1
  679. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js +0 -8
  680. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js.map +0 -1
  681. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js +0 -11
  682. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js.map +0 -1
  683. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js +0 -11
  684. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js.map +0 -1
  685. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js +0 -9
  686. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js.map +0 -1
  687. package/lib/esm/widgets/xml-viewer/components/Elements/index.js +0 -36
  688. package/lib/esm/widgets/xml-viewer/components/Elements/index.js.map +0 -1
  689. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js +0 -5
  690. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js.map +0 -1
  691. package/lib/esm/widgets/xml-viewer/components/Tag/index.js +0 -13
  692. package/lib/esm/widgets/xml-viewer/components/Tag/index.js.map +0 -1
  693. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js +0 -13
  694. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js.map +0 -1
  695. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js +0 -30
  696. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +0 -1
  697. package/lib/esm/widgets/xml-viewer/components/types.js +0 -2
  698. package/lib/esm/widgets/xml-viewer/components/types.js.map +0 -1
  699. package/lib/esm/widgets/xml-viewer/constants/index.js +0 -17
  700. package/lib/esm/widgets/xml-viewer/constants/index.js.map +0 -1
  701. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js +0 -10
  702. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js.map +0 -1
  703. package/lib/esm/widgets/xml-viewer/helpers/index.js +0 -40
  704. package/lib/esm/widgets/xml-viewer/helpers/index.js.map +0 -1
  705. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js +0 -22
  706. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js.map +0 -1
  707. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js +0 -31
  708. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js.map +0 -1
  709. package/lib/esm/widgets/xml-viewer/index.js +0 -3
  710. package/lib/esm/widgets/xml-viewer/index.js.map +0 -1
  711. package/lib/esm/widgets/xml-viewer/types/index.js +0 -2
  712. package/lib/esm/widgets/xml-viewer/types/index.js.map +0 -1
  713. package/lib/tsconfig.tsbuildinfo +0 -1
  714. package/lib/types/core/components/Avatar.d.ts +0 -16
  715. package/lib/types/core/components/Avatar.d.ts.map +0 -1
  716. package/lib/types/core/components/Badge.d.ts +0 -21
  717. package/lib/types/core/components/Badge.d.ts.map +0 -1
  718. package/lib/types/core/components/Button.d.ts +0 -14
  719. package/lib/types/core/components/Button.d.ts.map +0 -1
  720. package/lib/types/core/components/Center.d.ts +0 -8
  721. package/lib/types/core/components/Center.d.ts.map +0 -1
  722. package/lib/types/core/components/ComboBox.d.ts +0 -124
  723. package/lib/types/core/components/ComboBox.d.ts.map +0 -1
  724. package/lib/types/core/components/ConfirmModal.d.ts +0 -11
  725. package/lib/types/core/components/ConfirmModal.d.ts.map +0 -1
  726. package/lib/types/core/components/DeleteModal.d.ts +0 -11
  727. package/lib/types/core/components/DeleteModal.d.ts.map +0 -1
  728. package/lib/types/core/components/Divider.d.ts +0 -6
  729. package/lib/types/core/components/Divider.d.ts.map +0 -1
  730. package/lib/types/core/components/Dropdown.d.ts +0 -15
  731. package/lib/types/core/components/Dropdown.d.ts.map +0 -1
  732. package/lib/types/core/components/DropdownList.d.ts +0 -13
  733. package/lib/types/core/components/DropdownList.d.ts.map +0 -1
  734. package/lib/types/core/components/EmptyCollection.d.ts +0 -9
  735. package/lib/types/core/components/EmptyCollection.d.ts.map +0 -1
  736. package/lib/types/core/components/FileUpload.d.ts +0 -29
  737. package/lib/types/core/components/FileUpload.d.ts.map +0 -1
  738. package/lib/types/core/components/FormItem.d.ts +0 -13
  739. package/lib/types/core/components/FormItem.d.ts.map +0 -1
  740. package/lib/types/core/components/InputList.d.ts +0 -12
  741. package/lib/types/core/components/InputList.d.ts.map +0 -1
  742. package/lib/types/core/components/Link.d.ts +0 -7
  743. package/lib/types/core/components/Link.d.ts.map +0 -1
  744. package/lib/types/core/components/MenuList.d.ts +0 -14
  745. package/lib/types/core/components/MenuList.d.ts.map +0 -1
  746. package/lib/types/core/components/MessageBox.d.ts +0 -36
  747. package/lib/types/core/components/MessageBox.d.ts.map +0 -1
  748. package/lib/types/core/components/Modal.d.ts +0 -30
  749. package/lib/types/core/components/Modal.d.ts.map +0 -1
  750. package/lib/types/core/components/NumberInput.d.ts +0 -16
  751. package/lib/types/core/components/NumberInput.d.ts.map +0 -1
  752. package/lib/types/core/components/Overlay.d.ts +0 -25
  753. package/lib/types/core/components/Overlay.d.ts.map +0 -1
  754. package/lib/types/core/components/Portal.d.ts +0 -6
  755. package/lib/types/core/components/Portal.d.ts.map +0 -1
  756. package/lib/types/core/components/RadioGroup.d.ts +0 -26
  757. package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
  758. package/lib/types/core/components/SelectBox.d.ts +0 -36
  759. package/lib/types/core/components/SelectBox.d.ts.map +0 -1
  760. package/lib/types/core/components/SelectList.d.ts +0 -18
  761. package/lib/types/core/components/SelectList.d.ts.map +0 -1
  762. package/lib/types/core/components/SelectStack.d.ts +0 -13
  763. package/lib/types/core/components/SelectStack.d.ts.map +0 -1
  764. package/lib/types/core/components/SidePanel.d.ts +0 -11
  765. package/lib/types/core/components/SidePanel.d.ts.map +0 -1
  766. package/lib/types/core/components/Spinner.d.ts +0 -7
  767. package/lib/types/core/components/Spinner.d.ts.map +0 -1
  768. package/lib/types/core/components/Switch.d.ts +0 -11
  769. package/lib/types/core/components/Switch.d.ts.map +0 -1
  770. package/lib/types/core/components/Textarea.d.ts +0 -8
  771. package/lib/types/core/components/Textarea.d.ts.map +0 -1
  772. package/lib/types/core/components/index.d.ts +0 -39
  773. package/lib/types/core/components/index.d.ts.map +0 -1
  774. package/lib/types/core/components/libs/utils.d.ts +0 -3
  775. package/lib/types/core/components/libs/utils.d.ts.map +0 -1
  776. package/lib/types/core/components/libs/visuallyHidden.d.ts +0 -7
  777. package/lib/types/core/components/libs/visuallyHidden.d.ts.map +0 -1
  778. package/lib/types/core/components/popup/Popup.d.ts +0 -26
  779. package/lib/types/core/components/popup/Popup.d.ts.map +0 -1
  780. package/lib/types/core/components/popup/PopupController.d.ts +0 -41
  781. package/lib/types/core/components/popup/PopupController.d.ts.map +0 -1
  782. package/lib/types/core/components/popup/index.d.ts +0 -4
  783. package/lib/types/core/components/popup/index.d.ts.map +0 -1
  784. package/lib/types/core/components/popup/position.d.ts +0 -59
  785. package/lib/types/core/components/popup/position.d.ts.map +0 -1
  786. package/lib/types/core/components/popup/utils.d.ts +0 -30
  787. package/lib/types/core/components/popup/utils.d.ts.map +0 -1
  788. package/lib/types/core/components/shadcn/breadcrumb.d.ts +0 -14
  789. package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +0 -1
  790. package/lib/types/core/components/shadcn/button.d.ts +0 -27
  791. package/lib/types/core/components/shadcn/button.d.ts.map +0 -1
  792. package/lib/types/core/components/shadcn/calendar.d.ts +0 -11
  793. package/lib/types/core/components/shadcn/calendar.d.ts.map +0 -1
  794. package/lib/types/core/components/shadcn/card.d.ts +0 -9
  795. package/lib/types/core/components/shadcn/card.d.ts.map +0 -1
  796. package/lib/types/core/components/shadcn/checkbox.d.ts +0 -5
  797. package/lib/types/core/components/shadcn/checkbox.d.ts.map +0 -1
  798. package/lib/types/core/components/shadcn/command.d.ts +0 -17
  799. package/lib/types/core/components/shadcn/command.d.ts.map +0 -1
  800. package/lib/types/core/components/shadcn/dialog.d.ts +0 -36
  801. package/lib/types/core/components/shadcn/dialog.d.ts.map +0 -1
  802. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +0 -9
  803. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts.map +0 -1
  804. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts +0 -7
  805. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts.map +0 -1
  806. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts +0 -6
  807. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +0 -1
  808. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts +0 -9
  809. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +0 -1
  810. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts +0 -6
  811. package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts.map +0 -1
  812. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts +0 -6
  813. package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts.map +0 -1
  814. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts +0 -5
  815. package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts.map +0 -1
  816. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts +0 -12
  817. package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts.map +0 -1
  818. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts +0 -11
  819. package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts.map +0 -1
  820. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts +0 -13
  821. package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts.map +0 -1
  822. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts +0 -14
  823. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +0 -1
  824. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts +0 -2
  825. package/lib/types/core/components/shadcn/filters/filter-styles.d.ts.map +0 -1
  826. package/lib/types/core/components/shadcn/filters/filterBar.d.ts +0 -20
  827. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +0 -1
  828. package/lib/types/core/components/shadcn/filters/filters.d.ts +0 -10
  829. package/lib/types/core/components/shadcn/filters/filters.d.ts.map +0 -1
  830. package/lib/types/core/components/shadcn/filters/index.d.ts +0 -6
  831. package/lib/types/core/components/shadcn/filters/index.d.ts.map +0 -1
  832. package/lib/types/core/components/shadcn/filters/types.d.ts +0 -35
  833. package/lib/types/core/components/shadcn/filters/types.d.ts.map +0 -1
  834. package/lib/types/core/components/shadcn/heading.d.ts +0 -6
  835. package/lib/types/core/components/shadcn/heading.d.ts.map +0 -1
  836. package/lib/types/core/components/shadcn/index.d.ts +0 -22
  837. package/lib/types/core/components/shadcn/index.d.ts.map +0 -1
  838. package/lib/types/core/components/shadcn/input.d.ts +0 -17
  839. package/lib/types/core/components/shadcn/input.d.ts.map +0 -1
  840. package/lib/types/core/components/shadcn/label.d.ts +0 -8
  841. package/lib/types/core/components/shadcn/label.d.ts.map +0 -1
  842. package/lib/types/core/components/shadcn/popover.d.ts +0 -17
  843. package/lib/types/core/components/shadcn/popover.d.ts.map +0 -1
  844. package/lib/types/core/components/shadcn/selectBox.d.ts +0 -31
  845. package/lib/types/core/components/shadcn/selectBox.d.ts.map +0 -1
  846. package/lib/types/core/components/shadcn/separator.d.ts +0 -5
  847. package/lib/types/core/components/shadcn/separator.d.ts.map +0 -1
  848. package/lib/types/core/components/shadcn/tabs.d.ts +0 -30
  849. package/lib/types/core/components/shadcn/tabs.d.ts.map +0 -1
  850. package/lib/types/core/components/shadcn/text.d.ts +0 -11
  851. package/lib/types/core/components/shadcn/text.d.ts.map +0 -1
  852. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts +0 -15
  853. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts.map +0 -1
  854. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +0 -10
  855. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +0 -1
  856. package/lib/types/core/components/shadcn/tooltip.d.ts +0 -20
  857. package/lib/types/core/components/shadcn/tooltip.d.ts.map +0 -1
  858. package/lib/types/core/components/styles.d.ts +0 -7
  859. package/lib/types/core/components/styles.d.ts.map +0 -1
  860. package/lib/types/core/components/table/index.d.ts +0 -15
  861. package/lib/types/core/components/table/index.d.ts.map +0 -1
  862. package/lib/types/core/components/tabs/Tabs.d.ts +0 -25
  863. package/lib/types/core/components/tabs/Tabs.d.ts.map +0 -1
  864. package/lib/types/core/components/tabs/TabsContext.d.ts +0 -17
  865. package/lib/types/core/components/tabs/TabsContext.d.ts.map +0 -1
  866. package/lib/types/core/components/tabs/index.d.ts +0 -3
  867. package/lib/types/core/components/tabs/index.d.ts.map +0 -1
  868. package/lib/types/core/components/toast/NotificationPanel.d.ts +0 -8
  869. package/lib/types/core/components/toast/NotificationPanel.d.ts.map +0 -1
  870. package/lib/types/core/components/toast/ToastContext.d.ts +0 -6
  871. package/lib/types/core/components/toast/ToastContext.d.ts.map +0 -1
  872. package/lib/types/core/components/toast/ToastProps.d.ts +0 -7
  873. package/lib/types/core/components/toast/ToastProps.d.ts.map +0 -1
  874. package/lib/types/core/components/toast/ToastProvider.d.ts +0 -6
  875. package/lib/types/core/components/toast/ToastProvider.d.ts.map +0 -1
  876. package/lib/types/core/components/toast/index.d.ts +0 -3
  877. package/lib/types/core/components/toast/index.d.ts.map +0 -1
  878. package/lib/types/core/hooks/CompositeState.d.ts +0 -28
  879. package/lib/types/core/hooks/CompositeState.d.ts.map +0 -1
  880. package/lib/types/core/hooks/SharedState.d.ts +0 -10
  881. package/lib/types/core/hooks/SharedState.d.ts.map +0 -1
  882. package/lib/types/core/hooks/index.d.ts +0 -14
  883. package/lib/types/core/hooks/index.d.ts.map +0 -1
  884. package/lib/types/core/hooks/useClickOutside.d.ts +0 -8
  885. package/lib/types/core/hooks/useClickOutside.d.ts.map +0 -1
  886. package/lib/types/core/hooks/useCopyToClipboard.d.ts +0 -5
  887. package/lib/types/core/hooks/useCopyToClipboard.d.ts.map +0 -1
  888. package/lib/types/core/hooks/useDarkMode.d.ts +0 -2
  889. package/lib/types/core/hooks/useDarkMode.d.ts.map +0 -1
  890. package/lib/types/core/hooks/useDebounce.d.ts +0 -2
  891. package/lib/types/core/hooks/useDebounce.d.ts.map +0 -1
  892. package/lib/types/core/hooks/useEventSource.d.ts +0 -2
  893. package/lib/types/core/hooks/useEventSource.d.ts.map +0 -1
  894. package/lib/types/core/hooks/useFetch.d.ts +0 -24
  895. package/lib/types/core/hooks/useFetch.d.ts.map +0 -1
  896. package/lib/types/core/hooks/useFlag.d.ts +0 -9
  897. package/lib/types/core/hooks/useFlag.d.ts.map +0 -1
  898. package/lib/types/core/hooks/useIntersectionObserver.d.ts +0 -14
  899. package/lib/types/core/hooks/useIntersectionObserver.d.ts.map +0 -1
  900. package/lib/types/core/hooks/useIsFistRendering.d.ts +0 -2
  901. package/lib/types/core/hooks/useIsFistRendering.d.ts.map +0 -1
  902. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts +0 -4
  903. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts.map +0 -1
  904. package/lib/types/core/hooks/useSharedValue.d.ts +0 -12
  905. package/lib/types/core/hooks/useSharedValue.d.ts.map +0 -1
  906. package/lib/types/core/index.d.ts +0 -4
  907. package/lib/types/core/index.d.ts.map +0 -1
  908. package/lib/types/core/utils/cn.d.ts +0 -3
  909. package/lib/types/core/utils/cn.d.ts.map +0 -1
  910. package/lib/types/core/utils/index.d.ts +0 -2
  911. package/lib/types/core/utils/index.d.ts.map +0 -1
  912. package/lib/types/env/index.d.ts +0 -72
  913. package/lib/types/env/index.d.ts.map +0 -1
  914. package/lib/types/features/activity-doc/ActivityDoc.d.ts +0 -14
  915. package/lib/types/features/activity-doc/ActivityDoc.d.ts.map +0 -1
  916. package/lib/types/features/activity-doc/index.d.ts +0 -2
  917. package/lib/types/features/activity-doc/index.d.ts.map +0 -1
  918. package/lib/types/features/agent/PayloadBuilder.d.ts +0 -73
  919. package/lib/types/features/agent/PayloadBuilder.d.ts.map +0 -1
  920. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +0 -38
  921. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts.map +0 -1
  922. package/lib/types/features/agent/chat/JumpingDots.d.ts +0 -7
  923. package/lib/types/features/agent/chat/JumpingDots.d.ts.map +0 -1
  924. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +0 -25
  925. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +0 -1
  926. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +0 -22
  927. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +0 -1
  928. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +0 -19
  929. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +0 -1
  930. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +0 -11
  931. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts.map +0 -1
  932. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +0 -16
  933. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +0 -1
  934. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +0 -13
  935. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +0 -1
  936. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +0 -8
  937. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +0 -1
  938. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +0 -10
  939. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts.map +0 -1
  940. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +0 -9
  941. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +0 -1
  942. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +0 -11
  943. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts.map +0 -1
  944. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +0 -8
  945. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts.map +0 -1
  946. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +0 -10
  947. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +0 -1
  948. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +0 -8
  949. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts.map +0 -1
  950. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +0 -22
  951. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +0 -1
  952. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +0 -25
  953. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +0 -1
  954. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +0 -18
  955. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +0 -1
  956. package/lib/types/features/agent/chat/WaitingMessages.d.ts +0 -2
  957. package/lib/types/features/agent/chat/WaitingMessages.d.ts.map +0 -1
  958. package/lib/types/features/agent/chat/index.d.ts +0 -5
  959. package/lib/types/features/agent/chat/index.d.ts.map +0 -1
  960. package/lib/types/features/agent/index.d.ts +0 -3
  961. package/lib/types/features/agent/index.d.ts.map +0 -1
  962. package/lib/types/features/errors/PanelErrorBoundary.d.ts +0 -5
  963. package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +0 -1
  964. package/lib/types/features/errors/RowErrorBoundary.d.ts +0 -8
  965. package/lib/types/features/errors/RowErrorBoundary.d.ts.map +0 -1
  966. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +0 -12
  967. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts.map +0 -1
  968. package/lib/types/features/errors/WidgetErrorBoundary.d.ts +0 -5
  969. package/lib/types/features/errors/WidgetErrorBoundary.d.ts.map +0 -1
  970. package/lib/types/features/errors/index.d.ts +0 -5
  971. package/lib/types/features/errors/index.d.ts.map +0 -1
  972. package/lib/types/features/facets/DocumentsFacetsNav.d.ts +0 -17
  973. package/lib/types/features/facets/DocumentsFacetsNav.d.ts.map +0 -1
  974. package/lib/types/features/facets/EnvironmentFacet.d.ts +0 -10
  975. package/lib/types/features/facets/EnvironmentFacet.d.ts.map +0 -1
  976. package/lib/types/features/facets/FacetsNav.d.ts +0 -7
  977. package/lib/types/features/facets/FacetsNav.d.ts.map +0 -1
  978. package/lib/types/features/facets/RunsFacetsNav.d.ts +0 -20
  979. package/lib/types/features/facets/RunsFacetsNav.d.ts.map +0 -1
  980. package/lib/types/features/facets/StringFacet.d.ts +0 -11
  981. package/lib/types/features/facets/StringFacet.d.ts.map +0 -1
  982. package/lib/types/features/facets/StringListFacet.d.ts +0 -11
  983. package/lib/types/features/facets/StringListFacet.d.ts.map +0 -1
  984. package/lib/types/features/facets/TypeFacet.d.ts +0 -16
  985. package/lib/types/features/facets/TypeFacet.d.ts.map +0 -1
  986. package/lib/types/features/facets/VEnvironmentFacet.d.ts +0 -12
  987. package/lib/types/features/facets/VEnvironmentFacet.d.ts.map +0 -1
  988. package/lib/types/features/facets/VFacetsNav.d.ts.map +0 -1
  989. package/lib/types/features/facets/VInteractionFacet.d.ts +0 -15
  990. package/lib/types/features/facets/VInteractionFacet.d.ts.map +0 -1
  991. package/lib/types/features/facets/VStringFacet.d.ts +0 -21
  992. package/lib/types/features/facets/VStringFacet.d.ts.map +0 -1
  993. package/lib/types/features/facets/VTypeFacet.d.ts +0 -11
  994. package/lib/types/features/facets/VTypeFacet.d.ts.map +0 -1
  995. package/lib/types/features/facets/VUserFacet.d.ts +0 -11
  996. package/lib/types/features/facets/VUserFacet.d.ts.map +0 -1
  997. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts +0 -14
  998. package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts.map +0 -1
  999. package/lib/types/features/facets/index.d.ts +0 -13
  1000. package/lib/types/features/facets/index.d.ts.map +0 -1
  1001. package/lib/types/features/facets/utils.d.ts +0 -4
  1002. package/lib/types/features/facets/utils.d.ts.map +0 -1
  1003. package/lib/types/features/index.d.ts +0 -11
  1004. package/lib/types/features/index.d.ts.map +0 -1
  1005. package/lib/types/features/layout/GenericPageNavHeader.d.ts +0 -13
  1006. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +0 -1
  1007. package/lib/types/features/layout/NotFoundView.d.ts +0 -5
  1008. package/lib/types/features/layout/NotFoundView.d.ts.map +0 -1
  1009. package/lib/types/features/layout/index.d.ts +0 -3
  1010. package/lib/types/features/layout/index.d.ts.map +0 -1
  1011. package/lib/types/features/magic-pdf/DownloadPopover.d.ts +0 -7
  1012. package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +0 -1
  1013. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +0 -7
  1014. package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +0 -1
  1015. package/lib/types/features/magic-pdf/PageSlider.d.ts +0 -9
  1016. package/lib/types/features/magic-pdf/PageSlider.d.ts.map +0 -1
  1017. package/lib/types/features/magic-pdf/PdfPageProvider.d.ts +0 -39
  1018. package/lib/types/features/magic-pdf/PdfPageProvider.d.ts.map +0 -1
  1019. package/lib/types/features/magic-pdf/TextPageView.d.ts +0 -8
  1020. package/lib/types/features/magic-pdf/TextPageView.d.ts.map +0 -1
  1021. package/lib/types/features/magic-pdf/index.d.ts +0 -2
  1022. package/lib/types/features/magic-pdf/index.d.ts.map +0 -1
  1023. package/lib/types/features/magic-pdf/types.d.ts +0 -2
  1024. package/lib/types/features/magic-pdf/types.d.ts.map +0 -1
  1025. package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts +0 -9
  1026. package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts.map +0 -1
  1027. package/lib/types/features/permissions/SecureButton.d.ts +0 -8
  1028. package/lib/types/features/permissions/SecureButton.d.ts.map +0 -1
  1029. package/lib/types/features/permissions/SecureSidebarItem.d.ts +0 -8
  1030. package/lib/types/features/permissions/SecureSidebarItem.d.ts.map +0 -1
  1031. package/lib/types/features/permissions/UserPermissionsProvider.d.ts +0 -21
  1032. package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +0 -1
  1033. package/lib/types/features/permissions/helpers.d.ts +0 -5
  1034. package/lib/types/features/permissions/helpers.d.ts.map +0 -1
  1035. package/lib/types/features/permissions/index.d.ts +0 -5
  1036. package/lib/types/features/permissions/index.d.ts.map +0 -1
  1037. package/lib/types/features/store/collections/BrowseCollectionView.d.ts +0 -7
  1038. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +0 -1
  1039. package/lib/types/features/store/collections/CollectionsTable.d.ts +0 -6
  1040. package/lib/types/features/store/collections/CollectionsTable.d.ts.map +0 -1
  1041. package/lib/types/features/store/collections/CreateCollection.d.ts +0 -13
  1042. package/lib/types/features/store/collections/CreateCollection.d.ts.map +0 -1
  1043. package/lib/types/features/store/collections/EditCollectionView.d.ts +0 -8
  1044. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +0 -1
  1045. package/lib/types/features/store/collections/SelectCollection.d.ts +0 -15
  1046. package/lib/types/features/store/collections/SelectCollection.d.ts.map +0 -1
  1047. package/lib/types/features/store/collections/index.d.ts +0 -6
  1048. package/lib/types/features/store/collections/index.d.ts.map +0 -1
  1049. package/lib/types/features/store/index.d.ts +0 -4
  1050. package/lib/types/features/store/index.d.ts.map +0 -1
  1051. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +0 -8
  1052. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +0 -1
  1053. package/lib/types/features/store/objects/DocumentSearchResults.d.ts +0 -20
  1054. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +0 -1
  1055. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +0 -33
  1056. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts.map +0 -1
  1057. package/lib/types/features/store/objects/DocumentTable.d.ts +0 -21
  1058. package/lib/types/features/store/objects/DocumentTable.d.ts.map +0 -1
  1059. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +0 -12
  1060. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +0 -1
  1061. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +0 -9
  1062. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +0 -1
  1063. package/lib/types/features/store/objects/components/ContentOverview.d.ts +0 -9
  1064. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +0 -1
  1065. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +0 -12
  1066. package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +0 -1
  1067. package/lib/types/features/store/objects/components/DocumentInput.d.ts +0 -8
  1068. package/lib/types/features/store/objects/components/DocumentInput.d.ts.map +0 -1
  1069. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +0 -9
  1070. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +0 -1
  1071. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +0 -9
  1072. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +0 -1
  1073. package/lib/types/features/store/objects/components/SelectDocument.d.ts +0 -9
  1074. package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +0 -1
  1075. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +0 -9
  1076. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts.map +0 -1
  1077. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +0 -12
  1078. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +0 -1
  1079. package/lib/types/features/store/objects/components/index.d.ts +0 -10
  1080. package/lib/types/features/store/objects/components/index.d.ts.map +0 -1
  1081. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +0 -4
  1082. package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +0 -1
  1083. package/lib/types/features/store/objects/index.d.ts +0 -11
  1084. package/lib/types/features/store/objects/index.d.ts.map +0 -1
  1085. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +0 -17
  1086. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +0 -1
  1087. package/lib/types/features/store/objects/layout/documentLayout.d.ts +0 -18
  1088. package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +0 -1
  1089. package/lib/types/features/store/objects/layout/index.d.ts +0 -3
  1090. package/lib/types/features/store/objects/layout/index.d.ts.map +0 -1
  1091. package/lib/types/features/store/objects/layout/renderers.d.ts +0 -3
  1092. package/lib/types/features/store/objects/layout/renderers.d.ts.map +0 -1
  1093. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +0 -53
  1094. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +0 -1
  1095. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +0 -14
  1096. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +0 -1
  1097. package/lib/types/features/store/objects/search/index.d.ts +0 -3
  1098. package/lib/types/features/store/objects/search/index.d.ts.map +0 -1
  1099. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +0 -26
  1100. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +0 -1
  1101. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +0 -28
  1102. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +0 -1
  1103. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +0 -5
  1104. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +0 -1
  1105. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +0 -4
  1106. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +0 -1
  1107. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +0 -4
  1108. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +0 -1
  1109. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +0 -16
  1110. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +0 -1
  1111. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +0 -4
  1112. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +0 -1
  1113. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +0 -4
  1114. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +0 -1
  1115. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +0 -4
  1116. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +0 -1
  1117. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +0 -4
  1118. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +0 -1
  1119. package/lib/types/features/store/objects/selection/actions/index.d.ts +0 -8
  1120. package/lib/types/features/store/objects/selection/actions/index.d.ts.map +0 -1
  1121. package/lib/types/features/store/objects/selection/index.d.ts +0 -5
  1122. package/lib/types/features/store/objects/selection/index.d.ts.map +0 -1
  1123. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +0 -38
  1124. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +0 -1
  1125. package/lib/types/features/store/objects/upload/index.d.ts +0 -4
  1126. package/lib/types/features/store/objects/upload/index.d.ts.map +0 -1
  1127. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +0 -30
  1128. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +0 -1
  1129. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +0 -50
  1130. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +0 -1
  1131. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +0 -6
  1132. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +0 -1
  1133. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +0 -8
  1134. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +0 -1
  1135. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +0 -15
  1136. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +0 -1
  1137. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +0 -8
  1138. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +0 -1
  1139. package/lib/types/features/store/types/SelectContentType.d.ts +0 -11
  1140. package/lib/types/features/store/types/SelectContentType.d.ts.map +0 -1
  1141. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +0 -33
  1142. package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +0 -1
  1143. package/lib/types/features/store/types/TableLayoutEditor.d.ts +0 -9
  1144. package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +0 -1
  1145. package/lib/types/features/store/types/index.d.ts +0 -9
  1146. package/lib/types/features/store/types/index.d.ts.map +0 -1
  1147. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +0 -36
  1148. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts.map +0 -1
  1149. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +0 -11
  1150. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts.map +0 -1
  1151. package/lib/types/features/store/types/search/index.d.ts +0 -3
  1152. package/lib/types/features/store/types/search/index.d.ts.map +0 -1
  1153. package/lib/types/features/user/UserAvatar.d.ts +0 -9
  1154. package/lib/types/features/user/UserAvatar.d.ts.map +0 -1
  1155. package/lib/types/features/user/UserInfo.d.ts +0 -37
  1156. package/lib/types/features/user/UserInfo.d.ts.map +0 -1
  1157. package/lib/types/features/user/index.d.ts +0 -3
  1158. package/lib/types/features/user/index.d.ts.map +0 -1
  1159. package/lib/types/features/utils/index.d.ts +0 -4
  1160. package/lib/types/features/utils/index.d.ts.map +0 -1
  1161. package/lib/types/features/utils/mimeType.d.ts +0 -5
  1162. package/lib/types/features/utils/mimeType.d.ts.map +0 -1
  1163. package/lib/types/features/utils/rendition.d.ts +0 -4
  1164. package/lib/types/features/utils/rendition.d.ts.map +0 -1
  1165. package/lib/types/features/utils/text.d.ts +0 -3
  1166. package/lib/types/features/utils/text.d.ts.map +0 -1
  1167. package/lib/types/layout/AppLayout.d.ts +0 -13
  1168. package/lib/types/layout/AppLayout.d.ts.map +0 -1
  1169. package/lib/types/layout/FullHeightLayout.d.ts +0 -27
  1170. package/lib/types/layout/FullHeightLayout.d.ts.map +0 -1
  1171. package/lib/types/layout/Navbar.d.ts +0 -33
  1172. package/lib/types/layout/Navbar.d.ts.map +0 -1
  1173. package/lib/types/layout/Sidebar.d.ts +0 -31
  1174. package/lib/types/layout/Sidebar.d.ts.map +0 -1
  1175. package/lib/types/layout/SidebarContext.d.ts +0 -9
  1176. package/lib/types/layout/SidebarContext.d.ts.map +0 -1
  1177. package/lib/types/layout/TitleBar.d.ts +0 -6
  1178. package/lib/types/layout/TitleBar.d.ts.map +0 -1
  1179. package/lib/types/layout/index.d.ts +0 -7
  1180. package/lib/types/layout/index.d.ts.map +0 -1
  1181. package/lib/types/router/FixLinks.d.ts +0 -7
  1182. package/lib/types/router/FixLinks.d.ts.map +0 -1
  1183. package/lib/types/router/HistoryNavigator.d.ts +0 -56
  1184. package/lib/types/router/HistoryNavigator.d.ts.map +0 -1
  1185. package/lib/types/router/Nav.d.ts +0 -29
  1186. package/lib/types/router/Nav.d.ts.map +0 -1
  1187. package/lib/types/router/NestedNavigationContext.d.ts +0 -9
  1188. package/lib/types/router/NestedNavigationContext.d.ts.map +0 -1
  1189. package/lib/types/router/NestedRouterProvider.d.ts +0 -14
  1190. package/lib/types/router/NestedRouterProvider.d.ts.map +0 -1
  1191. package/lib/types/router/PathMatcher.d.ts +0 -36
  1192. package/lib/types/router/PathMatcher.d.ts.map +0 -1
  1193. package/lib/types/router/PathWithParams.d.ts +0 -9
  1194. package/lib/types/router/PathWithParams.d.ts.map +0 -1
  1195. package/lib/types/router/Route404.d.ts +0 -4
  1196. package/lib/types/router/Route404.d.ts.map +0 -1
  1197. package/lib/types/router/RouteComponent.d.ts +0 -6
  1198. package/lib/types/router/RouteComponent.d.ts.map +0 -1
  1199. package/lib/types/router/Router.d.ts +0 -74
  1200. package/lib/types/router/Router.d.ts.map +0 -1
  1201. package/lib/types/router/RouterProvider.d.ts +0 -15
  1202. package/lib/types/router/RouterProvider.d.ts.map +0 -1
  1203. package/lib/types/router/index.d.ts +0 -11
  1204. package/lib/types/router/index.d.ts.map +0 -1
  1205. package/lib/types/router/path.d.ts +0 -8
  1206. package/lib/types/router/path.d.ts.map +0 -1
  1207. package/lib/types/session/TypeRegistry.d.ts +0 -10
  1208. package/lib/types/session/TypeRegistry.d.ts.map +0 -1
  1209. package/lib/types/session/UserSession.d.ts +0 -40
  1210. package/lib/types/session/UserSession.d.ts.map +0 -1
  1211. package/lib/types/session/UserSessionProvider.d.ts +0 -7
  1212. package/lib/types/session/UserSessionProvider.d.ts.map +0 -1
  1213. package/lib/types/session/auth/composable.d.ts +0 -26
  1214. package/lib/types/session/auth/composable.d.ts.map +0 -1
  1215. package/lib/types/session/auth/firebase.d.ts +0 -10
  1216. package/lib/types/session/auth/firebase.d.ts.map +0 -1
  1217. package/lib/types/session/auth/useAuthState.d.ts +0 -10
  1218. package/lib/types/session/auth/useAuthState.d.ts.map +0 -1
  1219. package/lib/types/session/auth/useCurrentTenant.d.ts +0 -15
  1220. package/lib/types/session/auth/useCurrentTenant.d.ts.map +0 -1
  1221. package/lib/types/session/constants.d.ts +0 -3
  1222. package/lib/types/session/constants.d.ts.map +0 -1
  1223. package/lib/types/session/index.d.ts +0 -8
  1224. package/lib/types/session/index.d.ts.map +0 -1
  1225. package/lib/types/session/useUXTracking.d.ts +0 -6
  1226. package/lib/types/session/useUXTracking.d.ts.map +0 -1
  1227. package/lib/types/shell/SplashScreen.d.ts +0 -7
  1228. package/lib/types/shell/SplashScreen.d.ts.map +0 -1
  1229. package/lib/types/shell/VertesiaShell.d.ts +0 -10
  1230. package/lib/types/shell/VertesiaShell.d.ts.map +0 -1
  1231. package/lib/types/shell/apps/AppInstallationProvider.d.ts +0 -12
  1232. package/lib/types/shell/apps/AppInstallationProvider.d.ts.map +0 -1
  1233. package/lib/types/shell/apps/AppProjectSelector.d.ts +0 -12
  1234. package/lib/types/shell/apps/AppProjectSelector.d.ts.map +0 -1
  1235. package/lib/types/shell/apps/StandaloneApp.d.ts +0 -23
  1236. package/lib/types/shell/apps/StandaloneApp.d.ts.map +0 -1
  1237. package/lib/types/shell/apps/index.d.ts +0 -4
  1238. package/lib/types/shell/apps/index.d.ts.map +0 -1
  1239. package/lib/types/shell/index.d.ts +0 -8
  1240. package/lib/types/shell/index.d.ts.map +0 -1
  1241. package/lib/types/shell/login/EnterpriseSigninButton.d.ts +0 -6
  1242. package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +0 -1
  1243. package/lib/types/shell/login/GitHubSignInButton.d.ts +0 -6
  1244. package/lib/types/shell/login/GitHubSignInButton.d.ts.map +0 -1
  1245. package/lib/types/shell/login/GoogleSignInButton.d.ts +0 -6
  1246. package/lib/types/shell/login/GoogleSignInButton.d.ts.map +0 -1
  1247. package/lib/types/shell/login/InviteAcceptModal.d.ts +0 -2
  1248. package/lib/types/shell/login/InviteAcceptModal.d.ts.map +0 -1
  1249. package/lib/types/shell/login/MicrosoftSigninButton.d.ts +0 -6
  1250. package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +0 -1
  1251. package/lib/types/shell/login/PreviewIcon.d.ts +0 -6
  1252. package/lib/types/shell/login/PreviewIcon.d.ts.map +0 -1
  1253. package/lib/types/shell/login/SignInModal.d.ts +0 -7
  1254. package/lib/types/shell/login/SignInModal.d.ts.map +0 -1
  1255. package/lib/types/shell/login/SigninScreen.d.ts +0 -9
  1256. package/lib/types/shell/login/SigninScreen.d.ts.map +0 -1
  1257. package/lib/types/shell/login/SignupForm.d.ts +0 -8
  1258. package/lib/types/shell/login/SignupForm.d.ts.map +0 -1
  1259. package/lib/types/shell/login/TerminalLogin.d.ts +0 -2
  1260. package/lib/types/shell/login/TerminalLogin.d.ts.map +0 -1
  1261. package/lib/types/shell/login/UserInfo.d.ts +0 -6
  1262. package/lib/types/shell/login/UserInfo.d.ts.map +0 -1
  1263. package/lib/types/shell/login/UserSessionMenu.d.ts +0 -9
  1264. package/lib/types/shell/login/UserSessionMenu.d.ts.map +0 -1
  1265. package/lib/types/shell/utils.d.ts +0 -2
  1266. package/lib/types/shell/utils.d.ts.map +0 -1
  1267. package/lib/types/widgets/Progress.d.ts +0 -6
  1268. package/lib/types/widgets/Progress.d.ts.map +0 -1
  1269. package/lib/types/widgets/SvgIcon.d.ts +0 -7
  1270. package/lib/types/widgets/SvgIcon.d.ts.map +0 -1
  1271. package/lib/types/widgets/codemirror/CodeMirrorEditor.d.ts +0 -23
  1272. package/lib/types/widgets/codemirror/CodeMirrorEditor.d.ts.map +0 -1
  1273. package/lib/types/widgets/codemirror/CodemirrorStateSingleton.d.ts +0 -15
  1274. package/lib/types/widgets/codemirror/CodemirrorStateSingleton.d.ts.map +0 -1
  1275. package/lib/types/widgets/codemirror/index.d.ts +0 -2
  1276. package/lib/types/widgets/codemirror/index.d.ts.map +0 -1
  1277. package/lib/types/widgets/form/Form.d.ts +0 -21
  1278. package/lib/types/widgets/form/Form.d.ts.map +0 -1
  1279. package/lib/types/widgets/form/FormContext.d.ts +0 -17
  1280. package/lib/types/widgets/form/FormContext.d.ts.map +0 -1
  1281. package/lib/types/widgets/form/ManagedObject.d.ts +0 -82
  1282. package/lib/types/widgets/form/ManagedObject.d.ts.map +0 -1
  1283. package/lib/types/widgets/form/fields.d.ts +0 -16
  1284. package/lib/types/widgets/form/fields.d.ts.map +0 -1
  1285. package/lib/types/widgets/form/index.d.ts +0 -7
  1286. package/lib/types/widgets/form/index.d.ts.map +0 -1
  1287. package/lib/types/widgets/form/inputs.d.ts +0 -8
  1288. package/lib/types/widgets/form/inputs.d.ts.map +0 -1
  1289. package/lib/types/widgets/form/schema.d.ts +0 -47
  1290. package/lib/types/widgets/form/schema.d.ts.map +0 -1
  1291. package/lib/types/widgets/index.d.ts +0 -12
  1292. package/lib/types/widgets/index.d.ts.map +0 -1
  1293. package/lib/types/widgets/json-view/JSONCode.d.ts +0 -22
  1294. package/lib/types/widgets/json-view/JSONCode.d.ts.map +0 -1
  1295. package/lib/types/widgets/json-view/JSONDisplay.d.ts +0 -8
  1296. package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +0 -1
  1297. package/lib/types/widgets/json-view/JSONView.d.ts +0 -7
  1298. package/lib/types/widgets/json-view/JSONView.d.ts.map +0 -1
  1299. package/lib/types/widgets/json-view/index.d.ts +0 -5
  1300. package/lib/types/widgets/json-view/index.d.ts.map +0 -1
  1301. package/lib/types/widgets/json-view/types.d.ts +0 -8
  1302. package/lib/types/widgets/json-view/types.d.ts.map +0 -1
  1303. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts +0 -9
  1304. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +0 -1
  1305. package/lib/types/widgets/markdown/index.d.ts +0 -2
  1306. package/lib/types/widgets/markdown/index.d.ts.map +0 -1
  1307. package/lib/types/widgets/popover/Popover.d.ts +0 -38
  1308. package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
  1309. package/lib/types/widgets/popover/context.d.ts +0 -8
  1310. package/lib/types/widgets/popover/context.d.ts.map +0 -1
  1311. package/lib/types/widgets/popover/index.d.ts +0 -3
  1312. package/lib/types/widgets/popover/index.d.ts.map +0 -1
  1313. package/lib/types/widgets/popover/slots.d.ts +0 -5
  1314. package/lib/types/widgets/popover/slots.d.ts.map +0 -1
  1315. package/lib/types/widgets/properties/PropertiesView.d.ts +0 -11
  1316. package/lib/types/widgets/properties/PropertiesView.d.ts.map +0 -1
  1317. package/lib/types/widgets/properties/index.d.ts +0 -2
  1318. package/lib/types/widgets/properties/index.d.ts.map +0 -1
  1319. package/lib/types/widgets/schema-editor/JSONSchemaEditorModal.d.ts +0 -10
  1320. package/lib/types/widgets/schema-editor/JSONSchemaEditorModal.d.ts.map +0 -1
  1321. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +0 -75
  1322. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +0 -1
  1323. package/lib/types/widgets/schema-editor/editor/Editable.d.ts +0 -40
  1324. package/lib/types/widgets/schema-editor/editor/Editable.d.ts.map +0 -1
  1325. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +0 -8
  1326. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +0 -1
  1327. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts +0 -5
  1328. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +0 -1
  1329. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts +0 -4
  1330. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts.map +0 -1
  1331. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts +0 -3
  1332. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts.map +0 -1
  1333. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts +0 -9
  1334. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +0 -1
  1335. package/lib/types/widgets/schema-editor/index.d.ts +0 -8
  1336. package/lib/types/widgets/schema-editor/index.d.ts.map +0 -1
  1337. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts +0 -16
  1338. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts.map +0 -1
  1339. package/lib/types/widgets/schema-editor/type-signature.d.ts +0 -19
  1340. package/lib/types/widgets/schema-editor/type-signature.d.ts.map +0 -1
  1341. package/lib/types/widgets/upload/DropZone.d.ts +0 -41
  1342. package/lib/types/widgets/upload/DropZone.d.ts.map +0 -1
  1343. package/lib/types/widgets/upload/UploadResultCategory.d.ts +0 -26
  1344. package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +0 -1
  1345. package/lib/types/widgets/upload/UploadSummary.d.ts +0 -38
  1346. package/lib/types/widgets/upload/UploadSummary.d.ts.map +0 -1
  1347. package/lib/types/widgets/upload/index.d.ts +0 -4
  1348. package/lib/types/widgets/upload/index.d.ts.map +0 -1
  1349. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts +0 -6
  1350. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts.map +0 -1
  1351. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts +0 -8
  1352. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts.map +0 -1
  1353. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts +0 -5
  1354. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts.map +0 -1
  1355. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts +0 -9
  1356. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts.map +0 -1
  1357. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts +0 -8
  1358. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts.map +0 -1
  1359. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts +0 -8
  1360. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts.map +0 -1
  1361. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts +0 -2
  1362. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts.map +0 -1
  1363. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts +0 -13
  1364. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts.map +0 -1
  1365. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts +0 -8
  1366. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts.map +0 -1
  1367. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts +0 -3
  1368. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts.map +0 -1
  1369. package/lib/types/widgets/xml-viewer/components/types.d.ts +0 -104
  1370. package/lib/types/widgets/xml-viewer/components/types.d.ts.map +0 -1
  1371. package/lib/types/widgets/xml-viewer/constants/index.d.ts +0 -17
  1372. package/lib/types/widgets/xml-viewer/constants/index.d.ts.map +0 -1
  1373. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts +0 -4
  1374. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts.map +0 -1
  1375. package/lib/types/widgets/xml-viewer/helpers/index.d.ts +0 -13
  1376. package/lib/types/widgets/xml-viewer/helpers/index.d.ts.map +0 -1
  1377. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts +0 -15
  1378. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts.map +0 -1
  1379. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts +0 -10
  1380. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +0 -1
  1381. package/lib/types/widgets/xml-viewer/index.d.ts +0 -3
  1382. package/lib/types/widgets/xml-viewer/index.d.ts.map +0 -1
  1383. package/lib/types/widgets/xml-viewer/types/index.d.ts +0 -16
  1384. package/lib/types/widgets/xml-viewer/types/index.d.ts.map +0 -1
  1385. package/lib/vertesia-ui-core.js +0 -2
  1386. package/lib/vertesia-ui-core.js.map +0 -1
  1387. package/lib/vertesia-ui-env.js +0 -2
  1388. package/lib/vertesia-ui-env.js.map +0 -1
  1389. package/lib/vertesia-ui-features.js +0 -2
  1390. package/lib/vertesia-ui-features.js.map +0 -1
  1391. package/lib/vertesia-ui-layout.js +0 -2
  1392. package/lib/vertesia-ui-layout.js.map +0 -1
  1393. package/lib/vertesia-ui-router.js +0 -2
  1394. package/lib/vertesia-ui-router.js.map +0 -1
  1395. package/lib/vertesia-ui-session.js +0 -2
  1396. package/lib/vertesia-ui-session.js.map +0 -1
  1397. package/lib/vertesia-ui-shell.js +0 -2
  1398. package/lib/vertesia-ui-shell.js.map +0 -1
  1399. package/lib/vertesia-ui-widgets.js +0 -2
  1400. package/lib/vertesia-ui-widgets.js.map +0 -1
  1401. package/src/features/facets/FacetsNav.tsx +0 -19
  1402. package/src/features/facets/VFacetsNav.tsx +0 -81
  1403. package/src/widgets/schema-editor/JSONSchemaEditorModal.tsx +0 -67
  1404. /package/src/features/facets/{StringFacet.tsx → utils/StringFacet.tsx} +0 -0
  1405. /package/src/features/facets/{StringListFacet.tsx → utils/StringListFacet.tsx} +0 -0
  1406. /package/src/features/facets/{TypeFacet.tsx → utils/TypeFacet.tsx} +0 -0
  1407. /package/src/features/facets/{VEnvironmentFacet.tsx → utils/VEnvironmentFacet.tsx} +0 -0
  1408. /package/src/features/facets/{VInteractionFacet.tsx → utils/VInteractionFacet.tsx} +0 -0
  1409. /package/src/features/facets/{VStringFacet.tsx → utils/VStringFacet.tsx} +0 -0
  1410. /package/src/features/facets/{utils.tsx → utils/utils.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/form/FormContext.js","esm/widgets/form/fields.js","esm/widgets/form/inputs.js","esm/widgets/form/Form.js","esm/widgets/form/schema.js","esm/widgets/form/ManagedObject.js","esm/widgets/json-view/JSONCode.js","esm/widgets/json-view/JSONView.js","esm/widgets/json-view/JSONDisplay.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/JSONSchemaEditorModal.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 { 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}\nclass FormContext {\n object;\n components;\n constructor(object, components = {}) {\n this.object = object;\n this.components = components;\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, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function FormLabel({ htmlFor, required, children }) {\n return (_jsxs(\"label\", { htmlFor: htmlFor, className: \"block text-sm font-medium leading-6 text-gray-900 dark:text-gray-200\", children: [children, required && _jsx(\"sup\", { className: \"text-red-600\", 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 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 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 { Plus, Trash2 } from \"lucide-react\";\nimport { Button } from \"@vertesia/ui/core\";\nimport clsx from \"clsx\";\nimport { useState } from \"react\";\nimport { FormContextProvider, useForm } from \"./FormContext.js\";\nimport { FormLabel, FormHelper } from \"./fields.js\";\nimport { Input } from \"./inputs.js\";\nexport function Form({ object, components, onSubmit, children, onChange }) {\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: {\n object,\n components: components || {}\n }, 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}\n// interface FieldSetProps {\n// name: string;\n// children?: ReactNode | ReactNode[];\n// }\n// export function FieldSet({ name, children }: FieldSetProps) {\n// const ctx = useForm();\n// const newCtx = {\n// ...ctx,\n// object: ctx.object.getProperty(name) as ManagedObjectProperty\n// }\n// return (\n// <FormContextProvider value={newCtx}>\n// {children}\n// </FormContextProvider>\n// )\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 } = 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 const { value } = event.target;\n object.value = object.schema.isNumber ? parseFloat(value) : value;\n };\n return (_jsxs(\"div\", { className: \"\", children: [_jsxs(\"div\", { className: clsx('flex gap-2', inline ? 'flex-row items-center' : 'flex-col'), children: [!object.isListItem && _jsx(FormLabel, { required: object.schema.isRequired, children: object.title }), _jsx(Component, { object: object, type: inputType, onChange: handleOnChange })] }), object.schema.description && _jsx(FormHelper, { children: object.schema.description })] }));\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 addItem = () => {\n object.add();\n setValue([...object.value]);\n };\n const deleteItem = (index) => {\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) }, `${index}-${value[index] ?? ''}`);\n }), _jsx(\"div\", { children: _jsxs(Button, { variant: 'secondary', onClick: addItem, children: [_jsx(Plus, { className: \"size-6\" }), \" Add\"] }) })] }));\n}\nfunction ListItem({ list, object, onDelete }) {\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, 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 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 { 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 { jsx as _jsx } from \"react/jsx-runtime\";\nimport Markdown from \"react-markdown\";\nimport remarkGfm from \"remark-gfm\";\nimport { visit, SKIP } from 'unist-util-visit';\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 }) {\n const plugins = [remarkGfm, ...remarkPlugins];\n if (removeComments) {\n plugins.push(remarkRemoveComments);\n }\n return (_jsx(Markdown, { remarkPlugins: plugins, components: components, 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","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { json } from \"@codemirror/lang-json\";\nimport { CodeMirrorEditor } from \"../codemirror\";\nimport { Button, VModal, VModalBody, VModalFooter, VModalTitle, useToast } from \"@vertesia/ui/core\";\nimport { basicSetup } from \"codemirror\";\nimport { useMemo, useRef } from \"react\";\nimport { JSONCode } from '../json-view';\nfunction contentToJSON(content) {\n if (!content)\n return undefined;\n content = content.trim();\n if (!content)\n return undefined;\n return JSON.parse(content);\n}\nfunction jsonToContent(json) {\n if (!json)\n return '';\n return JSON.stringify(json, null, 2);\n}\nconst extensions = [basicSetup, json()];\nexport function JSONSchemaEditorModal({ schema, isOpen, onClose, readonly = false }) {\n const editorRef = useRef(undefined);\n const toast = useToast();\n const value = useMemo(() => {\n return jsonToContent(schema.schema);\n }, [schema]);\n const onSaveChanges = () => {\n if (editorRef.current) {\n const value = editorRef.current.getValue();\n try {\n const newSchema = contentToJSON(value);\n schema.replaceSchema(newSchema);\n onClose();\n }\n catch (err) {\n toast({\n status: 'error',\n title: 'Invalid JSON Schema',\n description: err.message,\n duration: 5000\n });\n }\n }\n };\n return (_jsxs(VModal, { onClose: onClose, isOpen: !!isOpen, className: 'min-w-[60vw]', children: [_jsx(VModalTitle, { children: \"JSON Schema Editor\" }), _jsx(VModalBody, { children: !readonly ? _jsx(CodeMirrorEditor, { value: value, extensions: extensions, editorRef: editorRef })\n : _jsx(JSONCode, { data: schema.schema || {} }) }), _jsx(VModalFooter, { children: !readonly ? _jsx(Button, { onClick: onSaveChanges, children: \"Save changes\" }) : null })] }));\n}\n//# sourceMappingURL=JSONSchemaEditorModal.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 || schema.format) {\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 this.schema.format = undefined;\n updated = true;\n }\n else if (data.editor) { // a new editor is set\n this.schema.editor = data.editor;\n this.schema.format = 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 this.schema.format = 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 inputRef = useRef(null);\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 openFileSelector = () => {\n if (inputRef.current) {\n inputRef.current.click();\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-color-muted-foreground\", children: message }), _jsxs(\"div\", { className: \"mt-4 text-center\", children: [_jsxs(\"div\", { className: \"text-sm text-muted mb-2\", children: [\"Drag and drop files\", allowFolders ? \" or folders\" : \"\", \" here, or\"] }), _jsxs(Button, { onClick: openFileSelector, children: [_jsx(UploadIcon, { className: \"h-4 w-4 mr-2\" }), buttonLabel] }), _jsx(\"input\", { type: \"file\", ref: inputRef, onChange: handleChange, multiple: true, \n // @ts-expect-error: webkitdirectory is a non-standard attribute\n webkitdirectory: allowFolders ? \"\" : undefined, directory: allowFolders ? \"\" : undefined, className: \"hidden\" })] })] }));\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};\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 { isEqual } from 'lodash-es';\nimport { useEffect, useMemo, useState } from 'react';\nimport { 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 const [theme, setTheme] = useState(() => ({ ...defaultTheme, ...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 useEffect(() => {\n setTheme((currentTheme) => {\n const nextTheme = { ...defaultTheme, ...customTheme };\n return isEqual(nextTheme, currentTheme) ? currentTheme : nextTheme;\n });\n }, [customTheme]);\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","FieldSetContext","createContext","FieldSetContextProvider","Provider","useFieldSet","ctx","useContext","Error","_FormContext","useForm","FormContextProvider","FormLabel","htmlFor","required","children","_jsxs","FormHelper","FormError","Input","React","forwardRef","object","type","props","actualValue","useState","String","booleanValue","setBooleanValue","schema","isBoolean","clsx","Styles","INPUT","_onChange","ev","target","checked","Form","components","onSubmit","observer","evt","stopPropagation","preventDefault","GeneratedFormFields","properties","map","renderProperty","GeneratedForm","prop","isList","ListField","name","isObject","CompositeField","ScalarField","inline","Component","inputType","getInputType","isListItem","isRequired","title","event","isNumber","parseFloat","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","defaultValue","default","enum","values","includes","isString","getArrayElementType","computeTitleFromName","replace","toUpperCase","slice","_name","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","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","remarkRemoveComments","tree","visit","test","SKIP","MarkdownRenderer","remarkPlugins","removeComments","plugins","remarkGfm","Markdown","PopoverContext","usePopoverContext","__SLOT_NAME","processSlots","slots","Children","child","slotName","isValidElement","processOneSlot","defineSlot","computeElementProps","enabled","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","hover","click","hoverInteraction","useHover","handleClose","safePolygon","blockPointerEvents","restMs","getHoverProps","getReferenceProps","getFloatingProps","useInteractions","isMounted","styles","transitionStyles","useTransitionStyles","transition","close","FloatingPortal","style","FloatingFocusManager","PopoverTrigger","_props","PopoverContent","Progress","percent","width","PropertiesView","Table","VTooltip","Info","Trigger","Content","basicSetup","JSONSchemaEditorModal","onClose","readonly","toast","useToast","JSON","stringify","jsonToContent","VModal","VModalTitle","VModalBody","VModalFooter","newSchema","parse","contentToJSON","replaceSchema","err","status","message","duration","TypeNames","setPropertyType","typeObj","isNullable","getTypeSignature","typeName","t","getFirstNotNullType","getItemTypeName","displayTypeName","format","find","new_prop_name_cnt","ManagedSchema","source","SchemaNode","loadChildren","isEmpty","reload","withSource","uri","withChangeListener","clone","loader","_getPropertiesSchema","isParent","isNew","resetIsNew","getNameSignature","getSignature","reloadTree","_loadChildren","childSchema","findAvailableChildName","prefix","addChild","addRequired","c","updated","newName","newProperties","setPropertyName","indexOf","setRequireProperty","actualType","typeChanged","getUpdateFromNameAndTypeSignature","nameSig","typeSig","endsWith","substring","text","parseTypeSignature","any","updateFromNameAndTypeSignature","updateFromSignature","getEditableSchemaProperty","TYPE_OPTIONS","types","options","sort","makeTypeOptions","PropertyEditor","onCancel","onSave","isModalOpen","setModalOpen","PropertyNameEditor","PropertyTypeEditor","size","AlignLeft","EditDescriptionModal","focus","onKeyUp","e","INPUT_UNSTYLED","display","VSelectBox","onBlur","onKeyDown","popupClass","EditDescriptionModalForm","currentValue","setCurrentValue","_Fragment","ModalBody","ModalFooter","PropertyViewer","useSchema","jsonSchema","setSchema","VIEW_BOX","VIEW_BOX_HOVER","EDIT_BOX","Editable","outlineOnHover","editOnClick","placeholder","viewer","skipClickOutside","isEditing","onValidate","on","off","isOn","useFlag","validationError","setValidationError","DataEdit","DataView","onEdit","Viewer","btnStyle","tabIndex","SquarePen","Editor","setActualValue","latestValue","debounceTimer","setDebounceTimer","handleSave","useClickOutside","autoSave","clearTimeout","setTimeout","closest","SchemaEditor","AddPropertyButton","ParentItem","SimpleItem","PropertyTitleBar","setOpen","ChevronDown","ChevronRight","validatePropertyName","propertyName","editableProp","SvgIcon","containerRef","svgEl","DOMParser","parseFromString","querySelector","console","warn","innerHTML","attrName","setAttribute","appendChild","createSvgIcon","DropZone","onDrop","buttonLabel","allowFolders","isDragging","setIsDragging","inputRef","dropZoneRef","onDragOver","dataTransfer","onDragLeave","contains","relatedTarget","async","files","folders","Set","processEntry","entry","isFile","file","Promise","resolve","defineProperty","writable","fullPath","startsWith","folderPath","isDirectory","reader","createReader","readEntries","all","webkitGetAsEntry","folderCount","Boolean","fileCount","count","error","fileArray","UploadIcon","some","webkitRelativePath","formattedMessage","customMessage","feedback","multiple","webkitdirectory","directory","UploadResultCategory","icon","CheckCircleIcon","isExpanded","setIsExpanded","fill","viewBox","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","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","XMLViewerContext","collapsible","indentSize","useXMLViewerContext","parser","XMLParser","preserveOrder","ignoreAttributes","attributeNamePrefix","allowBooleanAttributes","commentPropName","cdataPropName","parseTagValue","CDataTag","indentation","CollapseIcon","collapsed","position","right","border","padding","background","Caret","transform","attrs","height","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","setTheme","valid","XMLValidator","errorMessage","useXMLViewer","currentTheme","nextTheme","isEqual","whiteSpace","overflowWrap"],"mappings":"k+CACA,IAAIA,GAAgB,KCKb,MAAMC,GACTC,OACA,WAAAC,CAAYD,GACRE,KAAKF,OAASA,CACtB,CACI,QAAAG,CAASC,GACLF,KAAKF,OAAOK,SAAS,CACjBC,QAAS,CACLC,KAAM,EACNC,GAAIN,KAAKF,OAAOS,MAAMC,IAAIC,OAC1BC,OAAQR,GAAS,KAGjC,CACI,QAAAS,GACI,OAAOX,KAAKF,OAAOS,MAAMC,IAAII,UACrC,EAEA,MAaMC,GAAiB,CAbHC,EAAWC,MAAM,CACjC,IAAK,CAAEC,SAAU,OAAQC,WAAY,aACrC,cAAe,CAAEA,WAAY,WAC7B,eAAgB,CAAEA,WAAY,WAC9B,cAAe,CAAEC,gBAAiB,cAAeC,MAAO,QACxD,cAAe,CAAEC,QAAS,QAC1B,aAAc,CACVC,WAAY,oBACZC,gBAAiB,UACjBC,UAA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AAIwb,MAAEA,GZCH,SAAsBJ,GACjC,OAAOnpB,GAAQ,KACX,IACI,IAAKwpB,GAAa5hB,SAASuhB,GACvB,MAAM,IAAIrnB,MAAM,gBAEpB,MAAMiM,EAAO4X,GAAOzP,MAAMiT,GAC1B,GAAmB,iBAARA,GAAoBA,EAAIte,OAAO5M,OAAS,GAAqB,IAAhB8P,EAAK9P,OACzD,MAAM,IAAI6D,MAAM,gBAEpB,MAAO,CAAEiM,OAAMwb,OAAO,EAClC,CACQ,MAAOpO,GAEH,MAAO,CAAEpN,KAAM,KAAMwb,OAAO,EAAOE,aAAc,kBADnCtO,EAC2D5E,UACrF,IACO,CAAC4S,GACR,CYlB4BO,CAAaP,GAC/BrW,EAAU9S,GAAQ,KAAO,CAC3BzB,QACAinB,cACAC,aACA0B,sBAAuBA,GAAyBkC,KAChD,CAAC9qB,EAAOinB,EAAaC,EAAY4D,EAAsBlC,IAO3D,OANAvnB,GAAU,KACN0pB,GAAUK,IACN,MAAMC,EAAY,IAAK7E,MAAiBmE,GACxC,OAAOW,GAAQD,EAAWD,GAAgBA,EAAeC,OAE9D,CAACV,IACCK,EAGGtpB,EAAKslB,GAAiB7jB,SAAU,CAAEhE,MAAOoV,EAASzQ,SAAUpC,EAAK,MAAO,CAAEb,UAAW,gBAAiBkV,MAAO,CAAEwV,WAAY,WAAYrrB,WAAYF,EAAME,WAAYsrB,aAAc,cAAgB1nB,SAAUpC,EAAK4oB,GAAU,CAAEb,SAAUja,QAFrOqb,GAA0BnpB,EAAK+oB,GAAY,CAAA,EAG1D"}
@@ -1,19 +0,0 @@
1
- import { StringFacet } from './StringFacet';
2
- import { StringListFacet } from './StringListFacet';
3
- import { TypeFacet } from './TypeFacet';
4
-
5
- interface FacetsNavProps {
6
- facets: any;
7
- search: any;
8
- }
9
- export function FacetsNav({ facets, search }: FacetsNavProps) {
10
- return (
11
- <div className='flex items-center gap-x-4 w-full'>
12
- {facets.role && <StringFacet search={search} className="flex-1" name="role" buckets={facets.role || []} placeholder="Filter by Role" />}
13
- {facets.type && <TypeFacet search={search} className="flex-1" buckets={facets.type || []} />}
14
- {facets.status && <StringFacet search={search} className="flex-1" name="status" buckets={facets.status || []} placeholder="Filter by Status" />}
15
- {facets.location && <StringFacet search={search} className="flex-1" name="location" buckets={facets.location || []} placeholder="Filter by Location" />}
16
- {facets.tags && <StringListFacet search={search} className="flex-1" name='tags' buckets={facets.tags || []} placeholder="Filter by Tags" />}
17
- </div>
18
- )
19
- }
@@ -1,81 +0,0 @@
1
- import { Filter as BaseFilter, FilterProvider, FilterBtn, FilterBar, FilterClear, FilterGroup } from '@vertesia/ui/core';
2
- import { useState } from 'react';
3
-
4
- export interface SearchInterface {
5
- getFilterValue(name: string): any;
6
- setFilterValue(name: string, value: any): void;
7
- clearFilters(autoSearch?: boolean, applyDefaults?: boolean): void;
8
- search(): Promise<boolean | undefined>;
9
- readonly isRunning: boolean;
10
- query: Record<string, any>;
11
- }
12
-
13
- interface FacetsNavProps {
14
- facets: any;
15
- search: SearchInterface;
16
- textSearch?: string;
17
- }
18
- export function VFacetsNav({ search, textSearch = '' }: FacetsNavProps) {
19
- const [filters, setFilters] = useState<BaseFilter[]>([]);
20
- const customFilterGroups: FilterGroup[] = [];
21
-
22
- if (textSearch) {
23
- customFilterGroups.push({
24
- placeholder: textSearch,
25
- name: 'name',
26
- type: 'text',
27
- options: [],
28
- });
29
- }
30
-
31
- const handleFilterChange: React.Dispatch<React.SetStateAction<BaseFilter[]>> = (value) => {
32
-
33
- const newFilters = typeof value === 'function' ? value(filters) : value;
34
- if (newFilters.length === 0) {
35
- search.clearFilters();
36
- setFilters([]);
37
- return;
38
- }
39
- setFilters(newFilters);
40
-
41
- // Reset the actual query before reapplying filters. Otherwise the removed filters remain.
42
- search.clearFilters(false);
43
-
44
- newFilters.forEach(filter => {
45
- if (filter.value && filter.value.length > 0) {
46
- const filterName = filter.name.toLowerCase();
47
- const filterValue = filter.type === 'stringList'
48
- ? filter.value.map(v => typeof v === 'string' ? v : v.value)
49
- : Array.isArray(filter.value) && filter.value[0] && typeof filter.value[0] === 'object'
50
- ? filter.value[0].value
51
- : filter.value;
52
-
53
- switch (filterName) {
54
- case 'name':
55
- search.query.search_term = filterValue;
56
- search.query.name = filterValue;
57
- break;
58
- default:
59
- search.query[filterName] = filterValue;
60
- break;
61
- }
62
- }
63
- });
64
-
65
- search.search();
66
- };
67
-
68
- return (
69
- <FilterProvider
70
- filterGroups={customFilterGroups}
71
- filters={filters}
72
- setFilters={handleFilterChange}
73
- >
74
- <div className="flex gap-2 items-center">
75
- <FilterBtn />
76
- <FilterBar />
77
- <FilterClear />
78
- </div>
79
- </FilterProvider>
80
- )
81
- }
@@ -1,67 +0,0 @@
1
- import { json } from "@codemirror/lang-json";
2
- import { CodeMirrorEditor, EditorApi } from "../codemirror";
3
- import { Button, VModal, VModalBody, VModalFooter, VModalTitle, useToast } from "@vertesia/ui/core";
4
- import { basicSetup } from "codemirror";
5
- import { useMemo, useRef } from "react";
6
- import { ManagedSchema } from "./ManagedSchema.js";
7
- import { JSONCode } from '../json-view';
8
-
9
- function contentToJSON(content: string | undefined | null) {
10
- if (!content) return undefined;
11
- content = content.trim();
12
- if (!content) return undefined;
13
- return JSON.parse(content);
14
- }
15
-
16
- function jsonToContent(json: any | undefined | null) {
17
- if (!json) return '';
18
- return JSON.stringify(json, null, 2);
19
- }
20
-
21
- const extensions = [basicSetup, json()]
22
-
23
- interface JSONSchemaEditorModalProps {
24
- schema: ManagedSchema;
25
- isOpen?: boolean;
26
- onClose: () => void;
27
- readonly?: boolean;
28
- }
29
- export function JSONSchemaEditorModal({ schema, isOpen, onClose, readonly = false }: JSONSchemaEditorModalProps) {
30
- const editorRef = useRef<EditorApi | undefined>(undefined);
31
- const toast = useToast();
32
-
33
- const value = useMemo(() => {
34
- return jsonToContent(schema.schema);
35
- }, [schema])
36
-
37
- const onSaveChanges = () => {
38
- if (editorRef.current) {
39
- const value = editorRef.current.getValue();
40
- try {
41
- const newSchema = contentToJSON(value);
42
- schema.replaceSchema(newSchema);
43
- onClose();
44
- } catch (err: any) {
45
- toast({
46
- status: 'error',
47
- title: 'Invalid JSON Schema',
48
- description: err.message,
49
- duration: 5000
50
- })
51
- }
52
- }
53
- }
54
-
55
- return (
56
- <VModal onClose={onClose} isOpen={!!isOpen} className='min-w-[60vw]'>
57
- <VModalTitle>JSON Schema Editor</VModalTitle>
58
- <VModalBody>
59
- {!readonly ? <CodeMirrorEditor value={value} extensions={extensions} editorRef={editorRef} />
60
- : <JSONCode data={schema.schema || {}} />}
61
- </VModalBody>
62
- <VModalFooter>
63
- {!readonly ? <Button onClick={onSaveChanges}>Save changes</Button> : null}
64
- </VModalFooter>
65
- </VModal>
66
- )
67
- }