@vertesia/ui 0.56.0 → 0.58.0

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 (708) hide show
  1. package/lib/esm/core/components/Avatar.js +31 -0
  2. package/lib/esm/core/components/Avatar.js.map +1 -0
  3. package/lib/esm/core/components/Badge.js +62 -0
  4. package/lib/esm/core/components/Badge.js.map +1 -0
  5. package/lib/esm/core/components/Button.js +32 -0
  6. package/lib/esm/core/components/Button.js.map +1 -0
  7. package/lib/esm/core/components/Center.js +6 -0
  8. package/lib/esm/core/components/Center.js.map +1 -0
  9. package/lib/esm/core/components/ComboBox.js +356 -0
  10. package/lib/esm/core/components/ComboBox.js.map +1 -0
  11. package/lib/esm/core/components/ConfirmModal.js +10 -0
  12. package/lib/esm/core/components/ConfirmModal.js.map +1 -0
  13. package/lib/esm/core/components/DeleteModal.js +28 -0
  14. package/lib/esm/core/components/DeleteModal.js.map +1 -0
  15. package/lib/esm/core/components/Divider.js +6 -0
  16. package/lib/esm/core/components/Divider.js.map +1 -0
  17. package/lib/esm/core/components/Dropdown.js +16 -0
  18. package/lib/esm/core/components/Dropdown.js.map +1 -0
  19. package/lib/esm/core/components/DropdownList.js +9 -0
  20. package/lib/esm/core/components/DropdownList.js.map +1 -0
  21. package/lib/esm/core/components/EmptyCollection.js +7 -0
  22. package/lib/esm/core/components/EmptyCollection.js.map +1 -0
  23. package/lib/esm/core/components/FileUpload.js +119 -0
  24. package/lib/esm/core/components/FileUpload.js.map +1 -0
  25. package/lib/esm/core/components/Input.js +16 -0
  26. package/lib/esm/core/components/Input.js.map +1 -0
  27. package/lib/esm/core/components/InputList.js +42 -0
  28. package/lib/esm/core/components/InputList.js.map +1 -0
  29. package/lib/esm/core/components/Link.js +13 -0
  30. package/lib/esm/core/components/Link.js.map +1 -0
  31. package/lib/esm/core/components/MenuList.js +23 -0
  32. package/lib/esm/core/components/MenuList.js.map +1 -0
  33. package/lib/esm/core/components/MessageBox.js +66 -0
  34. package/lib/esm/core/components/MessageBox.js.map +1 -0
  35. package/lib/esm/core/components/Modal.js +26 -0
  36. package/lib/esm/core/components/Modal.js.map +1 -0
  37. package/lib/esm/core/components/NumberInput.js +43 -0
  38. package/lib/esm/core/components/NumberInput.js.map +1 -0
  39. package/lib/esm/core/components/Portal.js +28 -0
  40. package/lib/esm/core/components/Portal.js.map +1 -0
  41. package/lib/esm/core/components/RadioGroup.js +34 -0
  42. package/lib/esm/core/components/RadioGroup.js.map +1 -0
  43. package/lib/esm/core/components/SelectBox.js +67 -0
  44. package/lib/esm/core/components/SelectBox.js.map +1 -0
  45. package/lib/esm/core/components/SelectList.js +47 -0
  46. package/lib/esm/core/components/SelectList.js.map +1 -0
  47. package/lib/esm/core/components/SelectStack.js +8 -0
  48. package/lib/esm/core/components/SelectStack.js.map +1 -0
  49. package/lib/esm/core/components/SidePanel.js +33 -0
  50. package/lib/esm/core/components/SidePanel.js.map +1 -0
  51. package/lib/esm/core/components/Spinner.js +18 -0
  52. package/lib/esm/core/components/Spinner.js.map +1 -0
  53. package/lib/esm/core/components/Switch.js +12 -0
  54. package/lib/esm/core/components/Switch.js.map +1 -0
  55. package/lib/esm/core/components/Textarea.js +15 -0
  56. package/lib/esm/core/components/Textarea.js.map +1 -0
  57. package/lib/esm/core/components/index.js +34 -0
  58. package/lib/esm/core/components/index.js.map +1 -0
  59. package/lib/esm/core/components/libs/utils.js +6 -0
  60. package/lib/esm/core/components/libs/utils.js.map +1 -0
  61. package/lib/esm/core/components/libs/visuallyHidden.js +16 -0
  62. package/lib/esm/core/components/libs/visuallyHidden.js.map +1 -0
  63. package/lib/esm/core/components/popup/Popup.js +60 -0
  64. package/lib/esm/core/components/popup/Popup.js.map +1 -0
  65. package/lib/esm/core/components/popup/PopupController.js +149 -0
  66. package/lib/esm/core/components/popup/PopupController.js.map +1 -0
  67. package/lib/esm/core/components/popup/index.js +4 -0
  68. package/lib/esm/core/components/popup/index.js.map +1 -0
  69. package/lib/esm/core/components/popup/position.js +221 -0
  70. package/lib/esm/core/components/popup/position.js.map +1 -0
  71. package/lib/esm/core/components/popup/utils.js +74 -0
  72. package/lib/esm/core/components/popup/utils.js.map +1 -0
  73. package/lib/esm/core/components/shadcn/breadcrumb.js +30 -0
  74. package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -0
  75. package/lib/esm/core/components/shadcn/button.js +45 -0
  76. package/lib/esm/core/components/shadcn/button.js.map +1 -0
  77. package/lib/esm/core/components/shadcn/calendar.js +46 -0
  78. package/lib/esm/core/components/shadcn/calendar.js.map +1 -0
  79. package/lib/esm/core/components/shadcn/card.js +17 -0
  80. package/lib/esm/core/components/shadcn/card.js.map +1 -0
  81. package/lib/esm/core/components/shadcn/checkbox.js +10 -0
  82. package/lib/esm/core/components/shadcn/checkbox.js.map +1 -0
  83. package/lib/esm/core/components/shadcn/command.js +30 -0
  84. package/lib/esm/core/components/shadcn/command.js.map +1 -0
  85. package/lib/esm/core/components/shadcn/dialog.js +61 -0
  86. package/lib/esm/core/components/shadcn/dialog.js.map +1 -0
  87. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js +23 -0
  88. package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js.map +1 -0
  89. package/lib/esm/core/components/shadcn/filters/comboBox.js +82 -0
  90. package/lib/esm/core/components/shadcn/filters/comboBox.js.map +1 -0
  91. package/lib/esm/core/components/shadcn/filters/dateFilter.js +31 -0
  92. package/lib/esm/core/components/shadcn/filters/dateFilter.js.map +1 -0
  93. package/lib/esm/core/components/shadcn/filters/filterBar.js +140 -0
  94. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -0
  95. package/lib/esm/core/components/shadcn/filters/filters.js +42 -0
  96. package/lib/esm/core/components/shadcn/filters/filters.js.map +1 -0
  97. package/lib/esm/core/components/shadcn/filters/index.js +6 -0
  98. package/lib/esm/core/components/shadcn/filters/index.js.map +1 -0
  99. package/lib/esm/core/components/shadcn/filters/selectFilter.js +58 -0
  100. package/lib/esm/core/components/shadcn/filters/selectFilter.js.map +1 -0
  101. package/lib/esm/core/components/shadcn/filters/textFilter.js +20 -0
  102. package/lib/esm/core/components/shadcn/filters/textFilter.js.map +1 -0
  103. package/lib/esm/core/components/shadcn/filters/types.js +10 -0
  104. package/lib/esm/core/components/shadcn/filters/types.js.map +1 -0
  105. package/lib/esm/core/components/shadcn/heading.js +17 -0
  106. package/lib/esm/core/components/shadcn/heading.js.map +1 -0
  107. package/lib/esm/core/components/shadcn/index.js +22 -0
  108. package/lib/esm/core/components/shadcn/index.js.map +1 -0
  109. package/lib/esm/core/components/shadcn/input.js +38 -0
  110. package/lib/esm/core/components/shadcn/input.js.map +1 -0
  111. package/lib/esm/core/components/shadcn/label.js +11 -0
  112. package/lib/esm/core/components/shadcn/label.js.map +1 -0
  113. package/lib/esm/core/components/shadcn/popover.js +50 -0
  114. package/lib/esm/core/components/shadcn/popover.js.map +1 -0
  115. package/lib/esm/core/components/shadcn/selectBox.js +62 -0
  116. package/lib/esm/core/components/shadcn/selectBox.js.map +1 -0
  117. package/lib/esm/core/components/shadcn/separator.js +8 -0
  118. package/lib/esm/core/components/shadcn/separator.js.map +1 -0
  119. package/lib/esm/core/components/shadcn/tabs.js +77 -0
  120. package/lib/esm/core/components/shadcn/tabs.js.map +1 -0
  121. package/lib/esm/core/components/shadcn/text.js +30 -0
  122. package/lib/esm/core/components/shadcn/text.js.map +1 -0
  123. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js +38 -0
  124. package/lib/esm/core/components/shadcn/theme/ThemeProvider.js.map +1 -0
  125. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +13 -0
  126. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -0
  127. package/lib/esm/core/components/shadcn/tooltip.js +14 -0
  128. package/lib/esm/core/components/shadcn/tooltip.js.map +1 -0
  129. package/lib/esm/core/components/styles.js +10 -0
  130. package/lib/esm/core/components/styles.js.map +1 -0
  131. package/lib/esm/core/components/table/index.js +20 -0
  132. package/lib/esm/core/components/table/index.js.map +1 -0
  133. package/lib/esm/core/components/tabs/Tabs.js +78 -0
  134. package/lib/esm/core/components/tabs/Tabs.js.map +1 -0
  135. package/lib/esm/core/components/tabs/TabsContext.js +7 -0
  136. package/lib/esm/core/components/tabs/TabsContext.js.map +1 -0
  137. package/lib/esm/core/components/tabs/index.js +3 -0
  138. package/lib/esm/core/components/tabs/index.js.map +1 -0
  139. package/lib/esm/core/components/toast/NotificationPanel.js +37 -0
  140. package/lib/esm/core/components/toast/NotificationPanel.js.map +1 -0
  141. package/lib/esm/core/components/toast/ToastContext.js +7 -0
  142. package/lib/esm/core/components/toast/ToastContext.js.map +1 -0
  143. package/lib/esm/core/components/toast/ToastProps.js +2 -0
  144. package/lib/esm/core/components/toast/ToastProps.js.map +1 -0
  145. package/lib/esm/core/components/toast/ToastProvider.js +13 -0
  146. package/lib/esm/core/components/toast/ToastProvider.js.map +1 -0
  147. package/lib/esm/core/components/toast/index.js +3 -0
  148. package/lib/esm/core/components/toast/index.js.map +1 -0
  149. package/lib/esm/core/hooks/CompositeState.js +118 -0
  150. package/lib/esm/core/hooks/CompositeState.js.map +1 -0
  151. package/lib/esm/core/hooks/SharedState.js +64 -0
  152. package/lib/esm/core/hooks/SharedState.js.map +1 -0
  153. package/lib/esm/core/hooks/index.js +14 -0
  154. package/lib/esm/core/hooks/index.js.map +1 -0
  155. package/lib/esm/core/hooks/useClickOutside.js +29 -0
  156. package/lib/esm/core/hooks/useClickOutside.js.map +1 -0
  157. package/lib/esm/core/hooks/useCopyToClipboard.js +23 -0
  158. package/lib/esm/core/hooks/useCopyToClipboard.js.map +1 -0
  159. package/lib/esm/core/hooks/useDarkMode.js +11 -0
  160. package/lib/esm/core/hooks/useDarkMode.js.map +1 -0
  161. package/lib/esm/core/hooks/useDebounce.js +14 -0
  162. package/lib/esm/core/hooks/useDebounce.js.map +1 -0
  163. package/lib/esm/core/hooks/useEventSource.js +31 -0
  164. package/lib/esm/core/hooks/useEventSource.js.map +1 -0
  165. package/lib/esm/core/hooks/useFetch.js +40 -0
  166. package/lib/esm/core/hooks/useFetch.js.map +1 -0
  167. package/lib/esm/core/hooks/useFlag.js +13 -0
  168. package/lib/esm/core/hooks/useFlag.js.map +1 -0
  169. package/lib/esm/core/hooks/useIntersectionObserver.js +34 -0
  170. package/lib/esm/core/hooks/useIntersectionObserver.js.map +1 -0
  171. package/lib/esm/core/hooks/useIsFistRendering.js +14 -0
  172. package/lib/esm/core/hooks/useIsFistRendering.js.map +1 -0
  173. package/lib/esm/core/hooks/useSafeLayoutEffect.js +4 -0
  174. package/lib/esm/core/hooks/useSafeLayoutEffect.js.map +1 -0
  175. package/lib/esm/core/hooks/useSharedValue.js +21 -0
  176. package/lib/esm/core/hooks/useSharedValue.js.map +1 -0
  177. package/lib/esm/core/index.js +3 -0
  178. package/lib/esm/core/index.js.map +1 -0
  179. package/lib/esm/env/index.js +69 -0
  180. package/lib/esm/env/index.js.map +1 -0
  181. package/lib/esm/features/activity-doc/ActivityDoc.js +71 -0
  182. package/lib/esm/features/activity-doc/ActivityDoc.js.map +1 -0
  183. package/lib/esm/features/activity-doc/index.js +2 -0
  184. package/lib/esm/features/activity-doc/index.js.map +1 -0
  185. package/lib/esm/features/index.js +2 -2
  186. package/lib/esm/features/index.js.map +1 -1
  187. package/lib/esm/features/permissions/SecureButton.js +13 -0
  188. package/lib/esm/features/permissions/SecureButton.js.map +1 -0
  189. package/lib/esm/features/permissions/SecureSidebarItem.js +14 -0
  190. package/lib/esm/features/permissions/SecureSidebarItem.js.map +1 -0
  191. package/lib/esm/features/permissions/UserPermissionsProvider.js +86 -0
  192. package/lib/esm/features/permissions/UserPermissionsProvider.js.map +1 -0
  193. package/lib/esm/features/permissions/helpers.js +12 -0
  194. package/lib/esm/features/permissions/helpers.js.map +1 -0
  195. package/lib/esm/features/permissions/index.js +5 -0
  196. package/lib/esm/features/permissions/index.js.map +1 -0
  197. package/lib/esm/layout/AppLayout.js +46 -0
  198. package/lib/esm/layout/AppLayout.js.map +1 -0
  199. package/lib/esm/layout/FullHeightLayout.js +20 -0
  200. package/lib/esm/layout/FullHeightLayout.js.map +1 -0
  201. package/lib/esm/layout/Navbar.js +40 -0
  202. package/lib/esm/layout/Navbar.js.map +1 -0
  203. package/lib/esm/layout/Sidebar.js +35 -0
  204. package/lib/esm/layout/Sidebar.js.map +1 -0
  205. package/lib/esm/layout/SidebarContext.js +10 -0
  206. package/lib/esm/layout/SidebarContext.js.map +1 -0
  207. package/lib/esm/layout/TitleBar.js +5 -0
  208. package/lib/esm/layout/TitleBar.js.map +1 -0
  209. package/lib/esm/layout/index.js +7 -0
  210. package/lib/esm/layout/index.js.map +1 -0
  211. package/lib/esm/router/FixLinks.js +23 -0
  212. package/lib/esm/router/FixLinks.js.map +1 -0
  213. package/lib/esm/router/HistoryNavigator.js +149 -0
  214. package/lib/esm/router/HistoryNavigator.js.map +1 -0
  215. package/lib/esm/router/Nav.js +26 -0
  216. package/lib/esm/router/Nav.js.map +1 -0
  217. package/lib/esm/router/NestedNavigationContext.js +19 -0
  218. package/lib/esm/router/NestedNavigationContext.js.map +1 -0
  219. package/lib/esm/router/NestedRouterProvider.js +44 -0
  220. package/lib/esm/router/NestedRouterProvider.js.map +1 -0
  221. package/lib/esm/router/PathMatcher.js +159 -0
  222. package/lib/esm/router/PathMatcher.js.map +1 -0
  223. package/lib/esm/router/PathWithParams.js +34 -0
  224. package/lib/esm/router/PathWithParams.js.map +1 -0
  225. package/lib/esm/router/Route404.js +18 -0
  226. package/lib/esm/router/Route404.js.map +1 -0
  227. package/lib/esm/router/RouteComponent.js +32 -0
  228. package/lib/esm/router/RouteComponent.js.map +1 -0
  229. package/lib/esm/router/Router.js +161 -0
  230. package/lib/esm/router/Router.js.map +1 -0
  231. package/lib/esm/router/RouterProvider.js +41 -0
  232. package/lib/esm/router/RouterProvider.js.map +1 -0
  233. package/lib/esm/router/index.js +10 -5
  234. package/lib/esm/router/index.js.map +1 -1
  235. package/lib/esm/router/path.js +137 -0
  236. package/lib/esm/router/path.js.map +1 -0
  237. package/lib/esm/session/TypeRegistry.js +24 -0
  238. package/lib/esm/session/TypeRegistry.js.map +1 -0
  239. package/lib/esm/session/UserSession.js +191 -0
  240. package/lib/esm/session/UserSession.js.map +1 -0
  241. package/lib/esm/session/UserSessionProvider.js +161 -0
  242. package/lib/esm/session/UserSessionProvider.js.map +1 -0
  243. package/lib/esm/session/auth/composable.js +162 -0
  244. package/lib/esm/session/auth/composable.js.map +1 -0
  245. package/lib/esm/session/auth/firebase.js +151 -0
  246. package/lib/esm/session/auth/firebase.js.map +1 -0
  247. package/lib/esm/session/auth/useAuthState.js +49 -0
  248. package/lib/esm/session/auth/useAuthState.js.map +1 -0
  249. package/lib/esm/session/index.js +6 -2
  250. package/lib/esm/session/index.js.map +1 -1
  251. package/lib/esm/session/useUXTracking.js +29 -0
  252. package/lib/esm/session/useUXTracking.js.map +1 -0
  253. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js +103 -0
  254. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js.map +1 -0
  255. package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js +33 -0
  256. package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js.map +1 -0
  257. package/lib/esm/widgets/codemirror/index.js +2 -0
  258. package/lib/esm/widgets/codemirror/index.js.map +1 -0
  259. package/lib/esm/widgets/form/Form.js +102 -0
  260. package/lib/esm/widgets/form/Form.js.map +1 -0
  261. package/lib/esm/widgets/form/FormContext.js +29 -0
  262. package/lib/esm/widgets/form/FormContext.js.map +1 -0
  263. package/lib/esm/widgets/form/ManagedObject.js +283 -0
  264. package/lib/esm/widgets/form/ManagedObject.js.map +1 -0
  265. package/lib/esm/widgets/form/fields.js +11 -0
  266. package/lib/esm/widgets/form/fields.js.map +1 -0
  267. package/lib/esm/widgets/form/index.js +7 -0
  268. package/lib/esm/widgets/form/index.js.map +1 -0
  269. package/lib/esm/widgets/form/inputs.js +36 -0
  270. package/lib/esm/widgets/form/inputs.js.map +1 -0
  271. package/lib/esm/widgets/form/schema.js +191 -0
  272. package/lib/esm/widgets/form/schema.js.map +1 -0
  273. package/lib/esm/widgets/index.js +6 -0
  274. package/lib/esm/widgets/index.js.map +1 -0
  275. package/lib/esm/widgets/json-view/JSONCode.js +157 -0
  276. package/lib/esm/widgets/json-view/JSONCode.js.map +1 -0
  277. package/lib/esm/widgets/json-view/JSONDisplay.js +10 -0
  278. package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -0
  279. package/lib/esm/widgets/json-view/JSONView.js +106 -0
  280. package/lib/esm/widgets/json-view/JSONView.js.map +1 -0
  281. package/lib/esm/widgets/json-view/index.js +4 -0
  282. package/lib/esm/widgets/json-view/index.js.map +1 -0
  283. package/lib/esm/widgets/json-view/types.js +2 -0
  284. package/lib/esm/widgets/json-view/types.js.map +1 -0
  285. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js +50 -0
  286. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js.map +1 -0
  287. package/lib/esm/widgets/schema-editor/ManagedSchema.js +303 -0
  288. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -0
  289. package/lib/esm/widgets/schema-editor/editor/Editable.js +111 -0
  290. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +1 -0
  291. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js +8 -0
  292. package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js.map +1 -0
  293. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +81 -0
  294. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -0
  295. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +7 -0
  296. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +1 -0
  297. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js +9 -0
  298. package/lib/esm/widgets/schema-editor/editor/SchemaContext.js.map +1 -0
  299. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +84 -0
  300. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -0
  301. package/lib/esm/widgets/schema-editor/index.js +8 -0
  302. package/lib/esm/widgets/schema-editor/index.js.map +1 -0
  303. package/lib/esm/widgets/schema-editor/json-schema4-utils.js +188 -0
  304. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +1 -0
  305. package/lib/esm/widgets/schema-editor/type-signature.js +30 -0
  306. package/lib/esm/widgets/schema-editor/type-signature.js.map +1 -0
  307. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js +11 -0
  308. package/lib/esm/widgets/xml-viewer/components/Attributes/index.js.map +1 -0
  309. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js +8 -0
  310. package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js.map +1 -0
  311. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js +11 -0
  312. package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js.map +1 -0
  313. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js +11 -0
  314. package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js.map +1 -0
  315. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js +9 -0
  316. package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js.map +1 -0
  317. package/lib/esm/widgets/xml-viewer/components/Elements/index.js +36 -0
  318. package/lib/esm/widgets/xml-viewer/components/Elements/index.js.map +1 -0
  319. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js +5 -0
  320. package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js.map +1 -0
  321. package/lib/esm/widgets/xml-viewer/components/Tag/index.js +13 -0
  322. package/lib/esm/widgets/xml-viewer/components/Tag/index.js.map +1 -0
  323. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js +13 -0
  324. package/lib/esm/widgets/xml-viewer/components/TextElement/index.js.map +1 -0
  325. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js +30 -0
  326. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +1 -0
  327. package/lib/esm/widgets/xml-viewer/components/types.js +2 -0
  328. package/lib/esm/widgets/xml-viewer/components/types.js.map +1 -0
  329. package/lib/esm/widgets/xml-viewer/constants/index.js +17 -0
  330. package/lib/esm/widgets/xml-viewer/constants/index.js.map +1 -0
  331. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js +10 -0
  332. package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js.map +1 -0
  333. package/lib/esm/widgets/xml-viewer/helpers/index.js +40 -0
  334. package/lib/esm/widgets/xml-viewer/helpers/index.js.map +1 -0
  335. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js +22 -0
  336. package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js.map +1 -0
  337. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js +31 -0
  338. package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js.map +1 -0
  339. package/lib/esm/widgets/xml-viewer/index.js +3 -0
  340. package/lib/esm/widgets/xml-viewer/index.js.map +1 -0
  341. package/lib/esm/widgets/xml-viewer/types/index.js +2 -0
  342. package/lib/esm/widgets/xml-viewer/types/index.js.map +1 -0
  343. package/lib/tsconfig.tsbuildinfo +1 -1
  344. package/lib/types/core/components/Avatar.d.ts +15 -0
  345. package/lib/types/core/components/Badge.d.ts +20 -0
  346. package/lib/types/core/components/Button.d.ts +13 -0
  347. package/lib/types/core/components/Center.d.ts +7 -0
  348. package/lib/types/core/components/ComboBox.d.ts +123 -0
  349. package/lib/types/core/components/ConfirmModal.d.ts +10 -0
  350. package/lib/types/core/components/DeleteModal.d.ts +10 -0
  351. package/lib/types/core/components/Divider.d.ts +5 -0
  352. package/lib/types/core/components/Dropdown.d.ts +14 -0
  353. package/lib/types/core/components/DropdownList.d.ts +12 -0
  354. package/lib/types/core/components/EmptyCollection.d.ts +8 -0
  355. package/lib/types/core/components/FileUpload.d.ts +28 -0
  356. package/lib/types/core/components/Input.d.ts +8 -0
  357. package/lib/types/core/components/InputList.d.ts +10 -0
  358. package/lib/types/core/components/Link.d.ts +6 -0
  359. package/lib/types/core/components/MenuList.d.ts +13 -0
  360. package/lib/types/core/components/MessageBox.d.ts +35 -0
  361. package/lib/types/core/components/Modal.d.ts +29 -0
  362. package/lib/types/core/components/NumberInput.d.ts +15 -0
  363. package/lib/types/core/components/Portal.d.ts +5 -0
  364. package/lib/types/core/components/RadioGroup.d.ts +25 -0
  365. package/lib/types/core/components/SelectBox.d.ts +35 -0
  366. package/lib/types/core/components/SelectList.d.ts +17 -0
  367. package/lib/types/core/components/SelectStack.d.ts +12 -0
  368. package/lib/types/core/components/SidePanel.d.ts +8 -0
  369. package/lib/types/core/components/Spinner.d.ts +6 -0
  370. package/lib/types/core/components/Switch.d.ts +9 -0
  371. package/lib/types/core/components/Textarea.d.ts +7 -0
  372. package/lib/types/core/components/index.d.ts +37 -0
  373. package/lib/types/core/components/libs/utils.d.ts +2 -0
  374. package/lib/types/core/components/libs/visuallyHidden.d.ts +6 -0
  375. package/lib/types/core/components/popup/Popup.d.ts +25 -0
  376. package/lib/types/core/components/popup/PopupController.d.ts +40 -0
  377. package/lib/types/core/components/popup/index.d.ts +3 -0
  378. package/lib/types/core/components/popup/position.d.ts +58 -0
  379. package/lib/types/core/components/popup/utils.d.ts +29 -0
  380. package/lib/types/core/components/shadcn/breadcrumb.d.ts +13 -0
  381. package/lib/types/core/components/shadcn/button.d.ts +15 -0
  382. package/lib/types/core/components/shadcn/calendar.d.ts +10 -0
  383. package/lib/types/core/components/shadcn/card.d.ts +8 -0
  384. package/lib/types/core/components/shadcn/checkbox.d.ts +4 -0
  385. package/lib/types/core/components/shadcn/command.d.ts +80 -0
  386. package/lib/types/core/components/shadcn/dialog.d.ts +34 -0
  387. package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts +6 -0
  388. package/lib/types/core/components/shadcn/filters/comboBox.d.ts +17 -0
  389. package/lib/types/core/components/shadcn/filters/dateFilter.d.ts +14 -0
  390. package/lib/types/core/components/shadcn/filters/filterBar.d.ts +9 -0
  391. package/lib/types/core/components/shadcn/filters/filters.d.ts +9 -0
  392. package/lib/types/core/components/shadcn/filters/index.d.ts +5 -0
  393. package/lib/types/core/components/shadcn/filters/selectFilter.d.ts +11 -0
  394. package/lib/types/core/components/shadcn/filters/textFilter.d.ts +12 -0
  395. package/lib/types/core/components/shadcn/filters/types.d.ts +26 -0
  396. package/lib/types/core/components/shadcn/heading.d.ts +5 -0
  397. package/lib/types/core/components/shadcn/index.d.ts +21 -0
  398. package/lib/types/core/components/shadcn/input.d.ts +16 -0
  399. package/lib/types/core/components/shadcn/label.d.ts +7 -0
  400. package/lib/types/core/components/shadcn/popover.d.ts +16 -0
  401. package/lib/types/core/components/shadcn/selectBox.d.ts +21 -0
  402. package/lib/types/core/components/shadcn/separator.d.ts +4 -0
  403. package/lib/types/core/components/shadcn/tabs.d.ts +26 -0
  404. package/lib/types/core/components/shadcn/text.d.ts +10 -0
  405. package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts +13 -0
  406. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +9 -0
  407. package/lib/types/core/components/shadcn/tooltip.d.ts +19 -0
  408. package/lib/types/core/components/styles.d.ts +6 -0
  409. package/lib/types/core/components/table/index.d.ts +13 -0
  410. package/lib/types/core/components/tabs/Tabs.d.ts +24 -0
  411. package/lib/types/core/components/tabs/TabsContext.d.ts +16 -0
  412. package/lib/types/core/components/tabs/index.d.ts +2 -0
  413. package/lib/types/core/components/toast/NotificationPanel.d.ts +7 -0
  414. package/lib/types/core/components/toast/ToastContext.d.ts +5 -0
  415. package/lib/types/core/components/toast/ToastProps.d.ts +6 -0
  416. package/lib/types/core/components/toast/ToastProvider.d.ts +5 -0
  417. package/lib/types/core/components/toast/index.d.ts +2 -0
  418. package/lib/types/core/hooks/CompositeState.d.ts +27 -0
  419. package/lib/types/core/hooks/SharedState.d.ts +9 -0
  420. package/lib/types/core/hooks/index.d.ts +13 -0
  421. package/lib/types/core/hooks/useClickOutside.d.ts +7 -0
  422. package/lib/types/core/hooks/useCopyToClipboard.d.ts +4 -0
  423. package/lib/types/core/hooks/useDarkMode.d.ts +1 -0
  424. package/lib/types/core/hooks/useDebounce.d.ts +1 -0
  425. package/lib/types/core/hooks/useEventSource.d.ts +1 -0
  426. package/lib/types/core/hooks/useFetch.d.ts +23 -0
  427. package/lib/types/core/hooks/useFlag.d.ts +8 -0
  428. package/lib/types/core/hooks/useIntersectionObserver.d.ts +13 -0
  429. package/lib/types/core/hooks/useIsFistRendering.d.ts +1 -0
  430. package/lib/types/core/hooks/useSafeLayoutEffect.d.ts +3 -0
  431. package/lib/types/core/hooks/useSharedValue.d.ts +11 -0
  432. package/lib/types/core/index.d.ts +2 -0
  433. package/lib/types/env/index.d.ts +70 -0
  434. package/lib/types/features/activity-doc/ActivityDoc.d.ts +13 -0
  435. package/lib/types/features/activity-doc/index.d.ts +1 -0
  436. package/lib/types/features/index.d.ts +2 -0
  437. package/lib/types/features/permissions/SecureButton.d.ts +7 -0
  438. package/lib/types/features/permissions/SecureSidebarItem.d.ts +7 -0
  439. package/lib/types/features/permissions/UserPermissionsProvider.d.ts +19 -0
  440. package/lib/types/features/permissions/helpers.d.ts +4 -0
  441. package/lib/types/features/permissions/index.d.ts +4 -0
  442. package/lib/types/layout/AppLayout.d.ts +12 -0
  443. package/lib/types/layout/FullHeightLayout.d.ts +26 -0
  444. package/lib/types/layout/Navbar.d.ts +32 -0
  445. package/lib/types/layout/Sidebar.d.ts +29 -0
  446. package/lib/types/layout/SidebarContext.d.ts +8 -0
  447. package/lib/types/layout/TitleBar.d.ts +5 -0
  448. package/lib/types/layout/index.d.ts +6 -0
  449. package/lib/types/router/FixLinks.d.ts +6 -0
  450. package/lib/types/router/HistoryNavigator.d.ts +55 -0
  451. package/lib/types/router/Nav.d.ts +28 -0
  452. package/lib/types/router/NestedNavigationContext.d.ts +8 -0
  453. package/lib/types/router/NestedRouterProvider.d.ts +13 -0
  454. package/lib/types/router/PathMatcher.d.ts +35 -0
  455. package/lib/types/router/PathWithParams.d.ts +8 -0
  456. package/lib/types/router/Route404.d.ts +3 -0
  457. package/lib/types/router/RouteComponent.d.ts +5 -0
  458. package/lib/types/router/Router.d.ts +73 -0
  459. package/lib/types/router/RouterProvider.d.ts +14 -0
  460. package/lib/types/router/index.d.ts +10 -4
  461. package/lib/types/router/path.d.ts +7 -0
  462. package/lib/types/session/TypeRegistry.d.ts +9 -0
  463. package/lib/types/session/UserSession.d.ts +39 -0
  464. package/lib/types/session/UserSessionProvider.d.ts +6 -0
  465. package/lib/types/session/auth/composable.d.ts +25 -0
  466. package/lib/types/session/auth/firebase.d.ts +9 -0
  467. package/lib/types/session/auth/useAuthState.d.ts +9 -0
  468. package/lib/types/session/index.d.ts +6 -0
  469. package/lib/types/session/useUXTracking.d.ts +5 -0
  470. package/lib/types/widgets/codemirror/CodeMirrorEditor.d.ts +22 -0
  471. package/lib/types/widgets/codemirror/CodemirrorStateSingleton.d.ts +14 -0
  472. package/lib/types/widgets/codemirror/index.d.ts +1 -0
  473. package/lib/types/widgets/form/Form.d.ts +20 -0
  474. package/lib/types/widgets/form/FormContext.d.ts +16 -0
  475. package/lib/types/widgets/form/ManagedObject.d.ts +81 -0
  476. package/lib/types/widgets/form/fields.d.ts +15 -0
  477. package/lib/types/widgets/form/index.d.ts +6 -0
  478. package/lib/types/widgets/form/inputs.d.ts +7 -0
  479. package/lib/types/widgets/form/schema.d.ts +45 -0
  480. package/lib/types/widgets/index.d.ts +5 -0
  481. package/lib/types/widgets/json-view/JSONCode.d.ts +21 -0
  482. package/lib/types/widgets/json-view/JSONDisplay.d.ts +7 -0
  483. package/lib/types/widgets/json-view/JSONView.d.ts +6 -0
  484. package/lib/types/widgets/json-view/index.d.ts +4 -0
  485. package/lib/types/widgets/json-view/types.d.ts +7 -0
  486. package/lib/types/widgets/schema-editor/JSONSchemaEditorModal.d.ts +9 -0
  487. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +74 -0
  488. package/lib/types/widgets/schema-editor/editor/Editable.d.ts +39 -0
  489. package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +7 -0
  490. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts +4 -0
  491. package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts +3 -0
  492. package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts +2 -0
  493. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts +8 -0
  494. package/lib/types/widgets/schema-editor/index.d.ts +7 -0
  495. package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts +15 -0
  496. package/lib/types/widgets/schema-editor/type-signature.d.ts +18 -0
  497. package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts +5 -0
  498. package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts +7 -0
  499. package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts +4 -0
  500. package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts +8 -0
  501. package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts +7 -0
  502. package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts +7 -0
  503. package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts +1 -0
  504. package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts +12 -0
  505. package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts +7 -0
  506. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts +2 -0
  507. package/lib/types/widgets/xml-viewer/components/types.d.ts +103 -0
  508. package/lib/types/widgets/xml-viewer/constants/index.d.ts +16 -0
  509. package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts +3 -0
  510. package/lib/types/widgets/xml-viewer/helpers/index.d.ts +12 -0
  511. package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts +14 -0
  512. package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts +9 -0
  513. package/lib/types/widgets/xml-viewer/index.d.ts +2 -0
  514. package/lib/types/widgets/xml-viewer/types/index.d.ts +15 -0
  515. package/lib/vertesia-ui-core.js +2 -0
  516. package/lib/vertesia-ui-core.js.map +1 -0
  517. package/lib/vertesia-ui-env.js +2 -0
  518. package/lib/vertesia-ui-env.js.map +1 -0
  519. package/lib/vertesia-ui-features.js +1 -1
  520. package/lib/vertesia-ui-features.js.map +1 -1
  521. package/lib/vertesia-ui-layout.js +2 -0
  522. package/lib/vertesia-ui-layout.js.map +1 -0
  523. package/lib/vertesia-ui-router.js +1 -1
  524. package/lib/vertesia-ui-router.js.map +1 -1
  525. package/lib/vertesia-ui-session.js +1 -1
  526. package/lib/vertesia-ui-session.js.map +1 -1
  527. package/lib/vertesia-ui-widgets.js +2 -0
  528. package/lib/vertesia-ui-widgets.js.map +1 -0
  529. package/package.json +80 -19
  530. package/src/code/index.ts +1 -1
  531. package/src/core/components/Avatar.tsx +67 -0
  532. package/src/core/components/Badge.tsx +114 -0
  533. package/src/core/components/Button.tsx +63 -0
  534. package/src/core/components/Center.tsx +12 -0
  535. package/src/core/components/ComboBox.tsx +488 -0
  536. package/src/core/components/ConfirmModal.tsx +51 -0
  537. package/src/core/components/DeleteModal.tsx +45 -0
  538. package/src/core/components/Divider.tsx +11 -0
  539. package/src/core/components/Dropdown.tsx +63 -0
  540. package/src/core/components/DropdownList.tsx +72 -0
  541. package/src/core/components/EmptyCollection.tsx +39 -0
  542. package/src/core/components/FileUpload.tsx +196 -0
  543. package/src/core/components/Input.tsx +43 -0
  544. package/src/core/components/InputList.tsx +75 -0
  545. package/src/core/components/Link.tsx +16 -0
  546. package/src/core/components/MenuList.tsx +44 -0
  547. package/src/core/components/MessageBox.tsx +96 -0
  548. package/src/core/components/Modal.tsx +144 -0
  549. package/src/core/components/NumberInput.tsx +64 -0
  550. package/src/core/components/Portal.tsx +33 -0
  551. package/src/core/components/RadioGroup.tsx +100 -0
  552. package/src/core/components/SelectBox.tsx +188 -0
  553. package/src/core/components/SelectList.tsx +85 -0
  554. package/src/core/components/SelectStack.tsx +63 -0
  555. package/src/core/components/SidePanel.tsx +104 -0
  556. package/src/core/components/Spinner.tsx +33 -0
  557. package/src/core/components/Switch.tsx +29 -0
  558. package/src/core/components/Textarea.tsx +25 -0
  559. package/src/core/components/index.ts +39 -0
  560. package/src/core/components/libs/utils.tsx +6 -0
  561. package/src/core/components/libs/visuallyHidden.tsx +25 -0
  562. package/src/core/components/popup/Popup.tsx +94 -0
  563. package/src/core/components/popup/PopupController.ts +182 -0
  564. package/src/core/components/popup/index.ts +3 -0
  565. package/src/core/components/popup/position.ts +277 -0
  566. package/src/core/components/popup/utils.ts +82 -0
  567. package/src/core/components/shadcn/breadcrumb.tsx +174 -0
  568. package/src/core/components/shadcn/button.tsx +95 -0
  569. package/src/core/components/shadcn/calendar.tsx +87 -0
  570. package/src/core/components/shadcn/card.tsx +76 -0
  571. package/src/core/components/shadcn/checkbox.tsx +30 -0
  572. package/src/core/components/shadcn/command.tsx +155 -0
  573. package/src/core/components/shadcn/dialog.tsx +230 -0
  574. package/src/core/components/shadcn/filters/animateChangeInHeight.tsx +41 -0
  575. package/src/core/components/shadcn/filters/comboBox.tsx +251 -0
  576. package/src/core/components/shadcn/filters/dateFilter.tsx +65 -0
  577. package/src/core/components/shadcn/filters/filterBar.tsx +262 -0
  578. package/src/core/components/shadcn/filters/filters.tsx +110 -0
  579. package/src/core/components/shadcn/filters/index.ts +5 -0
  580. package/src/core/components/shadcn/filters/selectFilter.tsx +91 -0
  581. package/src/core/components/shadcn/filters/textFilter.tsx +59 -0
  582. package/src/core/components/shadcn/filters/types.ts +29 -0
  583. package/src/core/components/shadcn/heading.tsx +23 -0
  584. package/src/core/components/shadcn/index.ts +22 -0
  585. package/src/core/components/shadcn/input.tsx +89 -0
  586. package/src/core/components/shadcn/label.tsx +31 -0
  587. package/src/core/components/shadcn/popover.tsx +115 -0
  588. package/src/core/components/shadcn/selectBox.tsx +186 -0
  589. package/src/core/components/shadcn/separator.tsx +29 -0
  590. package/src/core/components/shadcn/tabs.tsx +218 -0
  591. package/src/core/components/shadcn/text.tsx +33 -0
  592. package/src/core/components/shadcn/theme/ThemeProvider.tsx +73 -0
  593. package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +35 -0
  594. package/src/core/components/shadcn/tooltip.tsx +57 -0
  595. package/src/core/components/styles.ts +11 -0
  596. package/src/core/components/table/index.tsx +49 -0
  597. package/src/core/components/tabs/Tabs.tsx +132 -0
  598. package/src/core/components/tabs/TabsContext.ts +25 -0
  599. package/src/core/components/tabs/index.ts +2 -0
  600. package/src/core/components/toast/NotificationPanel.tsx +91 -0
  601. package/src/core/components/toast/ToastContext.ts +12 -0
  602. package/src/core/components/toast/ToastProps.ts +6 -0
  603. package/src/core/components/toast/ToastProvider.tsx +26 -0
  604. package/src/core/components/toast/index.ts +2 -0
  605. package/src/core/hooks/CompositeState.tsx +142 -0
  606. package/src/core/hooks/SharedState.tsx +69 -0
  607. package/src/core/hooks/index.ts +13 -0
  608. package/src/core/hooks/useClickOutside.tsx +29 -0
  609. package/src/core/hooks/useCopyToClipboard.tsx +28 -0
  610. package/src/core/hooks/useDarkMode.ts +11 -0
  611. package/src/core/hooks/useDebounce.tsx +15 -0
  612. package/src/core/hooks/useEventSource.ts +35 -0
  613. package/src/core/hooks/useFetch.ts +51 -0
  614. package/src/core/hooks/useFlag.tsx +13 -0
  615. package/src/core/hooks/useIntersectionObserver.tsx +40 -0
  616. package/src/core/hooks/useIsFistRendering.ts +17 -0
  617. package/src/core/hooks/useSafeLayoutEffect.ts +5 -0
  618. package/src/core/hooks/useSharedValue.ts +22 -0
  619. package/src/core/index.ts +2 -0
  620. package/src/env/index.ts +116 -0
  621. package/src/features/activity-doc/ActivityDoc.tsx +199 -0
  622. package/src/features/activity-doc/index.ts +1 -0
  623. package/src/features/index.ts +2 -1
  624. package/src/features/permissions/SecureButton.tsx +18 -0
  625. package/src/features/permissions/SecureSidebarItem.tsx +19 -0
  626. package/src/features/permissions/UserPermissionsProvider.tsx +102 -0
  627. package/src/features/permissions/helpers.ts +16 -0
  628. package/src/features/permissions/index.ts +4 -0
  629. package/src/layout/AppLayout.tsx +132 -0
  630. package/src/layout/FullHeightLayout.tsx +74 -0
  631. package/src/layout/Navbar.tsx +127 -0
  632. package/src/layout/Sidebar.tsx +129 -0
  633. package/src/layout/SidebarContext.ts +17 -0
  634. package/src/layout/TitleBar.tsx +7 -0
  635. package/src/layout/index.ts +6 -0
  636. package/src/router/FixLinks.tsx +28 -0
  637. package/src/router/HistoryNavigator.ts +178 -0
  638. package/src/router/Nav.tsx +55 -0
  639. package/src/router/NestedNavigationContext.tsx +32 -0
  640. package/src/router/NestedRouterProvider.tsx +64 -0
  641. package/src/router/PathMatcher.ts +166 -0
  642. package/src/router/PathWithParams.ts +34 -0
  643. package/src/router/Route404.tsx +18 -0
  644. package/src/router/RouteComponent.tsx +41 -0
  645. package/src/router/Router.tsx +216 -0
  646. package/src/router/RouterProvider.tsx +55 -0
  647. package/src/router/index.ts +10 -8
  648. package/src/router/path.ts +151 -0
  649. package/src/session/TypeRegistry.ts +27 -0
  650. package/src/session/UserSession.ts +227 -0
  651. package/src/session/UserSessionProvider.tsx +170 -0
  652. package/src/session/auth/composable.ts +190 -0
  653. package/src/session/auth/firebase.ts +160 -0
  654. package/src/session/auth/useAuthState.ts +61 -0
  655. package/src/session/index.ts +6 -1
  656. package/src/session/useUXTracking.tsx +38 -0
  657. package/src/widgets/codemirror/CodeMirrorEditor.tsx +121 -0
  658. package/src/widgets/codemirror/CodemirrorStateSingleton.tsx +39 -0
  659. package/src/widgets/codemirror/index.ts +2 -0
  660. package/src/widgets/form/Form.tsx +194 -0
  661. package/src/widgets/form/FormContext.ts +38 -0
  662. package/src/widgets/form/ManagedObject.ts +332 -0
  663. package/src/widgets/form/fields.tsx +34 -0
  664. package/src/widgets/form/index.ts +6 -0
  665. package/src/widgets/form/inputs.tsx +44 -0
  666. package/src/widgets/form/schema.ts +215 -0
  667. package/src/widgets/index.ts +5 -0
  668. package/src/widgets/json-view/JSONCode.tsx +176 -0
  669. package/src/widgets/json-view/JSONDisplay.tsx +24 -0
  670. package/src/widgets/json-view/JSONView.tsx +183 -0
  671. package/src/widgets/json-view/index.ts +4 -0
  672. package/src/widgets/json-view/types.ts +5 -0
  673. package/src/widgets/schema-editor/JSONSchemaEditorModal.tsx +68 -0
  674. package/src/widgets/schema-editor/ManagedSchema.ts +340 -0
  675. package/src/widgets/schema-editor/editor/Editable.tsx +252 -0
  676. package/src/widgets/schema-editor/editor/EditableSchemaProperty.tsx +15 -0
  677. package/src/widgets/schema-editor/editor/PropertyEditor.tsx +150 -0
  678. package/src/widgets/schema-editor/editor/PropertyViewer.tsx +15 -0
  679. package/src/widgets/schema-editor/editor/SchemaContext.tsx +9 -0
  680. package/src/widgets/schema-editor/editor/SchemaEditor.test.ts +48 -0
  681. package/src/widgets/schema-editor/editor/SchemaEditor.tsx +161 -0
  682. package/src/widgets/schema-editor/index.ts +7 -0
  683. package/src/widgets/schema-editor/json-schema4-utils.ts +187 -0
  684. package/src/widgets/schema-editor/type-signature.ts +39 -0
  685. package/src/widgets/xml-viewer/components/Attributes/index.tsx +27 -0
  686. package/src/widgets/xml-viewer/components/CDataTag/index.tsx +21 -0
  687. package/src/widgets/xml-viewer/components/CollapseIcon/index.tsx +32 -0
  688. package/src/widgets/xml-viewer/components/CommentTag/index.tsx +30 -0
  689. package/src/widgets/xml-viewer/components/DeclarationTag/index.tsx +23 -0
  690. package/src/widgets/xml-viewer/components/Elements/index.tsx +83 -0
  691. package/src/widgets/xml-viewer/components/InvalidXml/index.tsx +3 -0
  692. package/src/widgets/xml-viewer/components/Tag/index.tsx +47 -0
  693. package/src/widgets/xml-viewer/components/TextElement/index.tsx +28 -0
  694. package/src/widgets/xml-viewer/components/XMLViewer.tsx +53 -0
  695. package/src/widgets/xml-viewer/components/types.ts +104 -0
  696. package/src/widgets/xml-viewer/constants/index.ts +17 -0
  697. package/src/widgets/xml-viewer/context/xml-viewer-context.ts +12 -0
  698. package/src/widgets/xml-viewer/helpers/index.ts +56 -0
  699. package/src/widgets/xml-viewer/hooks/useCollapsible.ts +28 -0
  700. package/src/widgets/xml-viewer/hooks/useXMLViewer.ts +34 -0
  701. package/src/widgets/xml-viewer/index.ts +2 -0
  702. package/src/widgets/xml-viewer/types/index.ts +21 -0
  703. package/lib/esm/components/index.js +0 -3
  704. package/lib/esm/components/index.js.map +0 -1
  705. package/lib/types/components/index.d.ts +0 -0
  706. package/lib/vertesia-ui-components.js +0 -2
  707. package/lib/vertesia-ui-components.js.map +0 -1
  708. package/src/components/index.ts +0 -1
@@ -0,0 +1,161 @@
1
+ import { createContext, useContext, useEffect } from "react";
2
+ import { HistoryNavigator } from "./HistoryNavigator";
3
+ import { PathMatcher } from "./PathMatcher";
4
+ import { isRootPath, joinPath } from "./path";
5
+ export class BaseRouter {
6
+ // the path to use when navigating to the root of the router
7
+ index;
8
+ matcher = new PathMatcher();
9
+ constructor(routes, index) {
10
+ this.index = index;
11
+ for (const route of routes) {
12
+ this.matcher.addPath(route.path, route);
13
+ }
14
+ }
15
+ match(path) {
16
+ const useIndex = isRootPath(path) && this.index;
17
+ return this.matcher.match(useIndex ? this.index : path);
18
+ }
19
+ }
20
+ export class Router extends BaseRouter {
21
+ prompt;
22
+ observer;
23
+ navigator = new HistoryNavigator();
24
+ constructor(routes, updateState) {
25
+ super(routes);
26
+ this.navigator.addListener((event) => {
27
+ if (event.isCancelable && this.prompt && !!this.prompt.when) {
28
+ if (!window.confirm(this.prompt.message))
29
+ return;
30
+ }
31
+ if (this.observer) {
32
+ this.observer(event);
33
+ }
34
+ // only process afterChange events
35
+ if (event.name === "afterChange") {
36
+ const match = this.match(event.location.pathname);
37
+ if (match && match.value) {
38
+ updateState({
39
+ ...match,
40
+ state: event.state,
41
+ });
42
+ }
43
+ else {
44
+ updateState(null);
45
+ }
46
+ }
47
+ });
48
+ }
49
+ getTopRouter() {
50
+ return this;
51
+ }
52
+ /**
53
+ * Subsequent navigations will preserve the given params in the query string.
54
+ * Use null to clear the sticky params.
55
+ * @param params
56
+ */
57
+ setStickyParams(params) {
58
+ this.navigator.stickyParams = params != null ? params : undefined;
59
+ }
60
+ withObserver(observer) {
61
+ this.observer = observer;
62
+ return this;
63
+ }
64
+ start() {
65
+ this.navigator.start();
66
+ // initialize with the current location
67
+ this.navigator.firePageLoad();
68
+ }
69
+ stop() {
70
+ this.navigator.stop();
71
+ }
72
+ navigate(path, options) {
73
+ this.navigator.navigate(path, options);
74
+ }
75
+ }
76
+ export class NestedRouter extends BaseRouter {
77
+ parent;
78
+ basePath;
79
+ constructor(parent, basePath, routes) {
80
+ super(routes);
81
+ this.parent = parent;
82
+ this.basePath = basePath;
83
+ }
84
+ getTopRouter() {
85
+ if (this.parent instanceof Router) {
86
+ return this.parent;
87
+ }
88
+ else {
89
+ return this.parent.getTopRouter();
90
+ }
91
+ }
92
+ navigate(path, options) {
93
+ // base path is nested by default in a NestedRouter unless explicitly set to false by caller
94
+ const isBasePathNested = options?.isBasePathNested ?? true;
95
+ let basePath;
96
+ if (isBasePathNested) {
97
+ const childBasePath = options?.basePath;
98
+ // e.g. "/store" + "/objects/123" => "/store/objects/123"
99
+ basePath = childBasePath ? joinPath(this.basePath, childBasePath) : this.basePath;
100
+ }
101
+ else {
102
+ // e.g. "/store" + "/studio" => "/studio"
103
+ basePath = options?.basePath ?? this.basePath;
104
+ }
105
+ this.parent.navigate(path, {
106
+ ...options,
107
+ basePath,
108
+ });
109
+ }
110
+ }
111
+ const ReactRouterContext = createContext(undefined);
112
+ export { ReactRouterContext };
113
+ export function useRouterContext() {
114
+ const ctx = useContext(ReactRouterContext);
115
+ if (!ctx) {
116
+ throw new Error("useRouter must be used within a RouterProvider");
117
+ }
118
+ return ctx;
119
+ }
120
+ export function useNavigate() {
121
+ const { navigate } = useRouterContext();
122
+ return navigate;
123
+ }
124
+ export function useParams(arg) {
125
+ const { params } = useRouterContext();
126
+ if (arg) {
127
+ return params[arg];
128
+ }
129
+ else {
130
+ return params;
131
+ }
132
+ }
133
+ export function useLocation() {
134
+ const { location } = useRouterContext();
135
+ return location;
136
+ }
137
+ export function useNavigationPrompt(prompt) {
138
+ const { router } = useRouterContext();
139
+ useEffect(() => {
140
+ router.getTopRouter().prompt = prompt;
141
+ return () => {
142
+ router.getTopRouter().prompt = undefined;
143
+ };
144
+ }, []);
145
+ useEffect(() => {
146
+ if (prompt.when) {
147
+ const doBlock = prompt.when;
148
+ const listener = function (ev) {
149
+ if (doBlock) {
150
+ ev.preventDefault();
151
+ ev.returnValue = "";
152
+ }
153
+ };
154
+ window.addEventListener("beforeunload", listener);
155
+ return () => {
156
+ window.removeEventListener("beforeunload", listener);
157
+ };
158
+ }
159
+ }, [prompt.when]);
160
+ }
161
+ //# sourceMappingURL=Router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Router.js","sourceRoot":"","sources":["../../../src/router/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAwC,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAa,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAsB9C,MAAM,OAAgB,UAAU;IAC5B,4DAA4D;IAC5D,KAAK,CAAU;IACf,OAAO,GAAuB,IAAI,WAAW,EAAE,CAAC;IAChD,YAAY,MAAe,EAAE,KAAc;QACvC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC5C,CAAC;IACL,CAAC;IAID,KAAK,CAAC,IAAY;QACd,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,IA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AAM,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACtC,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACtC,OAAO,GAAG,EAAE;YACR,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC;QAC7C,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YACd,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC;YAC5B,MAAM,QAAQ,GAAG,UAAU,EAAS;gBAChC,IAAI,OAAO,EAAE,CAAC;oBACV,EAAE,CAAC,cAAc,EAAE,CAAC;oBACnB,EAAU,CAAC,WAAW,GAAG,EAAE,CAAC;gBACjC,CAAC;YACL,CAAC,CAAC;YACF,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;YAClD,OAAO,GAAG,EAAE;gBACR,MAAM,CAAC,mBAAmB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;YACzD,CAAC,CAAC;QACN,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACtB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useSafeLayoutEffect } from "@vertesia/ui/core";
3
+ //import { useSafeLayoutEffect } from "../core";
4
+ import { useMemo, useState } from "react";
5
+ import { RouteComponent } from "./RouteComponent";
6
+ import { ReactRouterContext, Router } from "./Router";
7
+ import { createRoute404 } from "./Route404";
8
+ export function RouterProvider({ routes, index, onChange, children }) {
9
+ const [state, setState] = useState(undefined);
10
+ const router = useMemo(() => {
11
+ if (typeof window === 'undefined')
12
+ return null;
13
+ const router = new Router(routes, (match) => {
14
+ if (match === null) {
15
+ match = createRoute404();
16
+ }
17
+ setState({
18
+ location: window.location,
19
+ route: match.value,
20
+ params: match.params,
21
+ state: match.state,
22
+ router: router,
23
+ matchedRoutePath: '/' + match.matchedSegments.join('/'),
24
+ remainingPath: match.remainingSegments ? '/' + match.remainingSegments.join('/') : undefined,
25
+ navigate: (to, options) => {
26
+ return router.navigate(to, options);
27
+ }
28
+ });
29
+ }).withObserver(onChange);
30
+ router.index = index;
31
+ return router;
32
+ }, []);
33
+ useSafeLayoutEffect(() => {
34
+ router && router.start();
35
+ return () => {
36
+ router && router.stop();
37
+ };
38
+ }, []);
39
+ return state && (_jsx(ReactRouterContext.Provider, { value: state, children: children ? children : _jsx(RouteComponent, {}) }));
40
+ }
41
+ //# sourceMappingURL=RouterProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterProvider.js","sourceRoot":"","sources":["../../../src/router/RouterProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,gDAAgD;AAChD,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAS,MAAM,EAAiB,MAAM,UAAU,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAa5C,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAuB;IACrF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAA4B,SAAS,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE;QACxB,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO,IAAI,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YACxC,IAAI,KAAK,KAAK,IAAI,EAAE,C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xx() {
4
- console.log('xxx');
5
- }
1
+ export * from "./FixLinks.js";
2
+ export * from "./HistoryNavigator.js";
3
+ export * from "./Nav.js";
4
+ export * from "./NestedNavigationContext.js";
5
+ export * from "./NestedRouterProvider.js";
6
+ export * as Path from "./path.js";
7
+ export * from "./PathMatcher.js";
8
+ export * from "./RouteComponent.js";
9
+ export * from "./Router.js";
10
+ export * from "./RouterProvider.js";
6
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/router/index.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAI3B,MAAM,UAAU,GAAG;IACf,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/router/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA;AACxB,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,137 @@
1
+ export function isRootPath(path) {
2
+ return path === '/' || path === '';
3
+ }
4
+ export function joinPath(path1, path2) {
5
+ if (path1.endsWith('/') && path2.startsWith('/')) {
6
+ path2 = path1 + path2.substring(1);
7
+ }
8
+ else if (path1.endsWith('/')) {
9
+ path2 = path1 + path2;
10
+ }
11
+ else if (path2.startsWith('/')) {
12
+ path2 = path1 + path2;
13
+ }
14
+ else {
15
+ path2 = path1 + '/' + path2;
16
+ }
17
+ return path2;
18
+ }
19
+ export function getPathSegments(path) {
20
+ if (path === '' || path === '/') {
21
+ return [];
22
+ }
23
+ let s = 0, e = path.length;
24
+ if (path.startsWith('./')) {
25
+ s = 2;
26
+ }
27
+ else if (path.startsWith('/')) {
28
+ s = 1;
29
+ }
30
+ if (path.endsWith('/')) {
31
+ e = path.length - 1;
32
+ }
33
+ return (s > 0 || e < path.length ? path.substring(s, e) : path).split('/');
34
+ }
35
+ export function toSegments(path) {
36
+ if (typeof path === 'string') {
37
+ return getPathSegments(path);
38
+ }
39
+ else if (Array.isArray(path)) {
40
+ return path;
41
+ }
42
+ else {
43
+ throw new Error(`Unsupported path object: ${path}`);
44
+ }
45
+ }
46
+ // export class Path {
47
+ // static parse(path: string, abs = false) {
48
+ // if (abs !== undefined) {
49
+ // abs = path.startsWith('/');
50
+ // }
51
+ // return new Path(getPathSegments(path), abs);
52
+ // }
53
+ // constructor(public segments: string[], public isAbsolute = false) {
54
+ // }
55
+ // getParameters() {
56
+ // const out = [];
57
+ // for (const segment of this.segments) {
58
+ // if (segment[0] === ':') {
59
+ // out.push(segment.substring(1));
60
+ // }
61
+ // }
62
+ // if (this.segments[this.segments.length - 1] === '*') {
63
+ // out.push('_');
64
+ // }
65
+ // return out;
66
+ // }
67
+ // resolveParameters(path: string) {
68
+ // const params: PathMatchParams = {};
69
+ // const resolvedSegments = getPathSegments(path);
70
+ // if (resolvedSegments.length < this.segments.length) {
71
+ // return null;
72
+ // }
73
+ // const segments = this.segments;
74
+ // for (let i = 0, l = segments.length; i < l; i++) {
75
+ // const seg = segments[i];
76
+ // if (seg[0] === ':') {
77
+ // params[seg.substring(1)] = resolvedSegments[i];
78
+ // }
79
+ // }
80
+ // if (resolvedSegments.length - this.segments.length) {
81
+ // params._ = resolvedSegments.slice(this.segments.length);
82
+ // }
83
+ // return params;
84
+ // }
85
+ // match(path: string | string[] | Path) {
86
+ // const segments = toSegments(path);
87
+ // if (segments.length < this.segments.length) {
88
+ // return false;
89
+ // }
90
+ // let params: PathMatchParams | undefined;
91
+ // const mySegments = this.segments;
92
+ // for (let i = 0, l = mySegments.length; i < l; i++) {
93
+ // const segment = mySegments[i];
94
+ // if (segment === ':') {
95
+ // if (!params) params = {};
96
+ // params[segment.substring(1)] = segment;
97
+ // } else if (segment !== segments[i]) {
98
+ // if (i === l - 1 && segment === '*') {
99
+ // if (!params) params = {};
100
+ // params._ = segments.slice(i);
101
+ // return params;
102
+ // }
103
+ // return false;
104
+ // }
105
+ // }
106
+ // return params ? params : false;
107
+ // }
108
+ // join(path: Path | string | string[]) {
109
+ // const segments = toSegments(path);
110
+ // return new Path(this.segments.concat(segments), this.isAbsolute);
111
+ // }
112
+ // getRelativePath(path: Path | string | string[], asAbsolute: boolean = false) {
113
+ // const segments = toSegments(path);
114
+ // const extraSegmentsCount = segments.length - this.segments.length;
115
+ // if (extraSegmentsCount <= 0) {
116
+ // return null;
117
+ // }
118
+ // return new Path(segments.slice(this.segments.length), asAbsolute);
119
+ // }
120
+ // prependSegments(segments: string[]) {
121
+ // this.segments = segments.concat(this.segments);
122
+ // }
123
+ // appendSegments(segments: string[]) {
124
+ // this.segments = this.segments.concat(segments);
125
+ // }
126
+ // toAbsolutePath() {
127
+ // return '/' + this.segments.join('/');
128
+ // }
129
+ // toRelativePath() {
130
+ // return this.segments.join('/');
131
+ // }
132
+ // toString() {
133
+ // const path = this.segments.join('/');
134
+ // return this.isAbsolute ? '/' + path : path;
135
+ // }
136
+ // }
137
+ //# sourceMappingURL=path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.js","sourceRoot":"","sources":["../../../src/router/path.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,UAAU,CAAC,IAAY;IACnC,OAAO,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAa,EAAE,KAAa;IACjD,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,KAAK,GAAG,KAAK,GAAG,KAAK,CA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C,6EAA6E;AAC7E,yCAAyC;AACzC,2BAA2B;AAC3B,YAAY;AACZ,6EAA6E;AAC7E,QAAQ;AAER,4CAA4C;AAC5C,0DAA0D;AAC1D,QAAQ;AAER,2CAA2C;AAC3C,0DAA0D;AAC1D,QAAQ;AAER,yBAAyB;AACzB,gDAAgD;AAChD,QAAQ;AAER,yBAAyB;AACzB,0CAA0C;AAC1C,QAAQ;AAER,mBAAmB;AACnB,gDAAgD;AAChD,sDAAsD;AACtD,QAAQ;AAER,IAAI"}
@@ -0,0 +1,24 @@
1
+ export class TypeRegistry {
2
+ types;
3
+ map = {};
4
+ constructor(types) {
5
+ this.types = types;
6
+ //sort types
7
+ types.sort((a, b) => a.name.localeCompare(b.name));
8
+ for (const type of types) {
9
+ this.map[type.id] = type;
10
+ }
11
+ }
12
+ getType(id) {
13
+ return this.map[id];
14
+ }
15
+ getTypeLayout(id) {
16
+ const type = this.map[id];
17
+ return type ? type.table_layout : undefined;
18
+ }
19
+ getTypeName(id) {
20
+ const type = this.map[id];
21
+ return type ? type.name : undefined;
22
+ }
23
+ }
24
+ //# sourceMappingURL=TypeRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeRegistry.js","sourceRoot":"","sources":["../../../src/session/TypeRegistry.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,YAAY;IAEF;IADnB,GAAG,GAA0C,EAAE,CAAC;IAChD,YAAmB,KAA8B;QAA9B,UAAK,GAAL,KAAK,CAAyB;QAC7C,YAAY;QACZ,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;QAClD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;QAC7B,CAAC;IACL,CAAC;IAED,OAAO,CAAC,EAAU;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC;IAED,aAAa,CAAC,EAAU;QACpB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;IAChD,CAAC;IAED,WAAW,CAAC,EAAU;QAClB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACxC,CAAC;CAEJ"}
@@ -0,0 +1,191 @@
1
+ import { jwtDecode } from 'jwt-decode';
2
+ import { createContext, useContext } from 'react';
3
+ import { VertesiaClient } from '@vertesia/client';
4
+ import { Env } from '@vertesia/ui/env';
5
+ import { getComposableToken } from './auth/composable';
6
+ import { getFirebaseAuth } from './auth/firebase';
7
+ import { TypeRegistry } from './TypeRegistry';
8
+ export const LastSelectedAccountId_KEY = 'composableai.lastSelectedAccountId';
9
+ export const LastSelectedProjectId_KEY = 'composableai.lastSelectedProjectId';
10
+ class UserSession {
11
+ isLoading = true;
12
+ client;
13
+ authError;
14
+ authToken;
15
+ typeRegistry;
16
+ setSession;
17
+ lastSelectedAccount;
18
+ lastSelectedProject;
19
+ onboardingComplete;
20
+ constructor(client, setSession) {
21
+ if (client) {
22
+ this.client = client;
23
+ }
24
+ else {
25
+ this.client = new VertesiaClient({
26
+ serverUrl: Env.endpoints.studio,
27
+ storeUrl: Env.endpoints.zeno,
28
+ });
29
+ }
30
+ if (setSession) {
31
+ this.setSession = setSession;
32
+ }
33
+ this.logout = this.logout.bind(this);
34
+ }
35
+ get store() {
36
+ return this.client.store;
37
+ }
38
+ get user() {
39
+ return this.authToken;
40
+ }
41
+ get account() {
42
+ return this.authToken?.account;
43
+ }
44
+ get project() {
45
+ return this.authToken?.project;
46
+ }
47
+ get accounts() {
48
+ return this.authToken?.accounts;
49
+ }
50
+ get authCallback() {
51
+ return this.rawAuthToken.then(token => `Bearer ${token}`);
52
+ }
53
+ get rawAuthToken() {
54
+ return getComposableToken().then(res => {
55
+ const token = res?.rawToken;
56
+ if (!token) {
57
+ throw new Error('No token available');
58
+ }
59
+ this.authToken = jwtDecode(token);
60
+ return token;
61
+ });
62
+ }
63
+ signOut() {
64
+ this.logout();
65
+ }
66
+ getAccount() {
67
+ return this.authToken?.account;
68
+ }
69
+ async login(token) {
70
+ this.authError = undefined;
71
+ this.isLoading = false;
72
+ this.client.withAuthCallback(() => this.authCallback);
73
+ this.authToken = jwtDecode(token);
74
+ console.log(`Logging in as ${this.authToken?.name} with account ${this.authToken?.account.name} (${this.authToken?.account.id}, and project ${this.authToken?.project?.name} (${this.authToken?.project?.id})`);
75
+ //store selected account in local storage
76
+ localStorage.setItem(LastSelectedAccountId_KEY, this.authToken.account.id);
77
+ localStorage.setItem(LastSelectedProjectId_KEY + '-' + this.authToken.account.id, this.authToken.project?.id ?? '');
78
+ // notify the host app of the login
79
+ Env.onLogin?.(this.authToken);
80
+ // Independent async calls
81
+ await Promise.all([
82
+ this._loadTypes(),
83
+ this.fetchOnboardingStatus(),
84
+ ]);
85
+ return Promise.resolve();
86
+ }
87
+ isLoggedIn() {
88
+ return !!this.authToken;
89
+ }
90
+ logout() {
91
+ console.log('Logging out');
92
+ if (this.authToken) {
93
+ getFirebaseAuth().signOut();
94
+ }
95
+ this.authError = undefined;
96
+ this.isLoading = false;
97
+ this.authToken = undefined;
98
+ this.typeRegistry = undefined;
99
+ this.setSession = undefined;
100
+ this.client.withAuthCallback(undefined);
101
+ }
102
+ async switchAccount(targetAccountId) {
103
+ localStorage.setItem(LastSelectedAccountId_KEY, targetAccountId);
104
+ if (this) {
105
+ if (this.account && this.project) {
106
+ localStorage.setItem(LastSelectedProjectId_KEY + '-' + this.account.id, this.project.id);
107
+ }
108
+ else if (this.account) {
109
+ localStorage.removeItem(LastSelectedProjectId_KEY + '-' + this.account.id);
110
+ }
111
+ }
112
+ window.location.replace('/?a=' + targetAccountId);
113
+ }
114
+ async switchProject(targetProjectId) {
115
+ if (this.account) {
116
+ localStorage.setItem(LastSelectedProjectId_KEY + '-' + this.account.id, targetProjectId);
117
+ }
118
+ window.location.replace('/?a=' + this.account?.id + '&p=' + targetProjectId);
119
+ }
120
+ async _loadTypes() {
121
+ if (this.project) {
122
+ return this.store.types.list({}, { layout: true }).then(types => this.typeRegistry = new TypeRegistry(types)).catch(err => {
123
+ console.error('Failed to fetch object types', err);
124
+ throw err;
125
+ });
126
+ }
127
+ else {
128
+ console.log('No project selected');
129
+ }
130
+ }
131
+ async reloadTypes() {
132
+ return this._loadTypes().then(() => {
133
+ this.setSession?.(this.clone());
134
+ });
135
+ }
136
+ async fetchAccounts() {
137
+ return this.client.accounts.list().then(accounts => {
138
+ if (!this.authToken) {
139
+ throw new Error('No token available');
140
+ }
141
+ this.authToken.accounts = accounts;
142
+ this.setSession?.(this.clone());
143
+ }).catch(err => {
144
+ console.error('Failed to fetch accounts', err);
145
+ throw err;
146
+ });
147
+ }
148
+ async fetchOnboardingStatus() {
149
+ if (this.onboardingComplete) {
150
+ console.log('Onboarding already completed');
151
+ return false;
152
+ }
153
+ const previousStatus = this.onboardingComplete;
154
+ try {
155
+ const onboarding = await this.client.account.onboardingProgress();
156
+ this.onboardingComplete = Object.values(onboarding).every(value => value === true);
157
+ if (previousStatus !== this.onboardingComplete) {
158
+ return true;
159
+ }
160
+ this.setSession?.(this.clone());
161
+ }
162
+ catch (error) {
163
+ console.error('Error fetching onboarding status:', error);
164
+ this.onboardingComplete = false;
165
+ this.setSession?.(this.clone());
166
+ }
167
+ return false;
168
+ }
169
+ clone() {
170
+ const session = new UserSession(this.client);
171
+ session.isLoading = this.isLoading;
172
+ session.authError = this.authError;
173
+ session.authToken = this.authToken;
174
+ session.setSession = this.setSession;
175
+ session.lastSelectedAccount = this.lastSelectedAccount;
176
+ session.switchAccount = this.switchAccount;
177
+ session.typeRegistry = this.typeRegistry;
178
+ session.onboardingComplete = this.onboardingComplete;
179
+ return session;
180
+ }
181
+ }
182
+ const UserSessionContext = createContext(undefined);
183
+ export function useUserSession() {
184
+ const session = useContext(UserSessionContext);
185
+ if (!session) {
186
+ throw new Error('useUserSession must be used within a UserSessionProvider');
187
+ }
188
+ return session;
189
+ }
190
+ export { UserSession, UserSessionContext };
191
+ //# sourceMappingURL=UserSession.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSession.js","sourceRoot":"","sources":["../../../src/session/UserSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,oCAAoC,CAAC;AAC9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,oCAAoC,CAAC;AAG9E,MAAM,WAAW;IAEb,SAAS,GAAG,IAAI,CAAC;IACjB,MAAM,CAAiB;IACvB,SAAS,CAAS;IAClB,SAAS,CAAoB;IAC7B,YAAY,CAAgB;IAC5B,UAAU,CAAkC;IAC5C,mBAAmB,CAAiB;IACpC,mBAAmB,CAAiB;IACpC,kBAAkB,CAAW;IAE7B,YAAY,MAAuB,EAAE,UAA2C;QAE5E,IAAI,MAAM,EAAE,CAAC;YACT,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACzB,CAAC;aAAM,CAAC;YACJ,IAAI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