@vertesia/ui 0.80.0-dev-20251118 → 0.80.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 (311) hide show
  1. package/README.md +105 -0
  2. package/lib/esm/core/components/MenuList.js +2 -5
  3. package/lib/esm/core/components/MenuList.js.map +1 -1
  4. package/lib/esm/core/components/MessageBox.js +1 -1
  5. package/lib/esm/core/components/MessageBox.js.map +1 -1
  6. package/lib/esm/core/components/TagsInput.js +194 -0
  7. package/lib/esm/core/components/TagsInput.js.map +1 -0
  8. package/lib/esm/core/components/index.js +2 -1
  9. package/lib/esm/core/components/index.js.map +1 -1
  10. package/lib/esm/core/components/shadcn/dialog.js +16 -2
  11. package/lib/esm/core/components/shadcn/dialog.js.map +1 -1
  12. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js +6 -9
  13. package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js.map +1 -1
  14. package/lib/esm/core/components/shadcn/filters/filterBar.js +1 -1
  15. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
  16. package/lib/esm/core/components/shadcn/popover.js +1 -1
  17. package/lib/esm/core/components/shadcn/popover.js.map +1 -1
  18. package/lib/esm/core/components/shadcn/selectBox.js +23 -5
  19. package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
  20. package/lib/esm/core/components/shadcn/tabs.js +3 -3
  21. package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
  22. package/lib/esm/env/index.js +4 -1
  23. package/lib/esm/env/index.js.map +1 -1
  24. package/lib/esm/features/agent/chat/AgentChart.js +184 -0
  25. package/lib/esm/features/agent/chat/AgentChart.js.map +1 -0
  26. package/lib/esm/features/agent/chat/ModernAgentConversation.js +87 -10
  27. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
  28. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +6 -2
  29. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
  30. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +4 -4
  31. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
  32. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +4 -1
  33. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
  34. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +12 -4
  35. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
  36. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +60 -56
  37. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
  38. package/lib/esm/features/agent/chat/index.js +1 -0
  39. package/lib/esm/features/agent/chat/index.js.map +1 -1
  40. package/lib/esm/features/agent/createChartTool.js +354 -0
  41. package/lib/esm/features/agent/createChartTool.js.map +1 -0
  42. package/lib/esm/features/agent/examples.js +295 -0
  43. package/lib/esm/features/agent/examples.js.map +1 -0
  44. package/lib/esm/features/agent/index.js +2 -0
  45. package/lib/esm/features/agent/index.js.map +1 -1
  46. package/lib/esm/features/agent/visualization.js +165 -0
  47. package/lib/esm/features/agent/visualization.js.map +1 -0
  48. package/lib/esm/features/facets/CollectionsFacetsNav.js +5 -1
  49. package/lib/esm/features/facets/CollectionsFacetsNav.js.map +1 -1
  50. package/lib/esm/features/index.js +1 -0
  51. package/lib/esm/features/index.js.map +1 -1
  52. package/lib/esm/features/layout/GenericPageNavHeader.js +14 -4
  53. package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -1
  54. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +268 -0
  55. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +1 -0
  56. package/lib/esm/features/magic-pdf/DownloadPopover.js +11 -11
  57. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -1
  58. package/lib/esm/features/magic-pdf/ExtractedContentView.js +77 -0
  59. package/lib/esm/features/magic-pdf/ExtractedContentView.js.map +1 -0
  60. package/lib/esm/features/magic-pdf/MagicPdfProvider.js +242 -0
  61. package/lib/esm/features/magic-pdf/MagicPdfProvider.js.map +1 -0
  62. package/lib/esm/features/magic-pdf/MagicPdfView.js +41 -47
  63. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -1
  64. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js +261 -0
  65. package/lib/esm/features/pdf-viewer/PdfPageRenderer.js.map +1 -0
  66. package/lib/esm/features/pdf-viewer/PdfPageSlider.js +276 -0
  67. package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +1 -0
  68. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +71 -0
  69. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +1 -0
  70. package/lib/esm/features/pdf-viewer/index.js +4 -0
  71. package/lib/esm/features/pdf-viewer/index.js.map +1 -0
  72. package/lib/esm/features/store/collections/EditCollectionView.js +19 -10
  73. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
  74. package/lib/esm/features/store/collections/SelectCollection.js +104 -39
  75. package/lib/esm/features/store/collections/SelectCollection.js.map +1 -1
  76. package/lib/esm/features/store/collections/SharedPropsEditor.js +39 -0
  77. package/lib/esm/features/store/collections/SharedPropsEditor.js.map +1 -0
  78. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +35 -0
  79. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +1 -0
  80. package/lib/esm/features/store/collections/index.js +2 -0
  81. package/lib/esm/features/store/collections/index.js.map +1 -1
  82. package/lib/esm/features/store/objects/DocumentSearchResults.js +0 -7
  83. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
  84. package/lib/esm/features/store/objects/components/ContentOverview.js +273 -83
  85. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
  86. package/lib/esm/features/store/objects/components/useContentPanelHooks.js +153 -0
  87. package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +1 -0
  88. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +3 -3
  89. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +1 -1
  90. package/lib/esm/features/store/objects/layout/renderers.js +13 -0
  91. package/lib/esm/features/store/objects/layout/renderers.js.map +1 -1
  92. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +10 -9
  93. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
  94. package/lib/esm/features/utils/index.js +2 -0
  95. package/lib/esm/features/utils/index.js.map +1 -1
  96. package/lib/esm/features/utils/mimeType.js +8 -0
  97. package/lib/esm/features/utils/mimeType.js.map +1 -1
  98. package/lib/esm/features/utils/print.js +181 -0
  99. package/lib/esm/features/utils/print.js.map +1 -0
  100. package/lib/esm/features/utils/workflowStatus.js +43 -0
  101. package/lib/esm/features/utils/workflowStatus.js.map +1 -0
  102. package/lib/esm/router/HistoryNavigator.js +22 -2
  103. package/lib/esm/router/HistoryNavigator.js.map +1 -1
  104. package/lib/esm/session/UserSessionProvider.js +2 -2
  105. package/lib/esm/session/UserSessionProvider.js.map +1 -1
  106. package/lib/esm/shell/apps/AppProjectSelector.js +2 -2
  107. package/lib/esm/shell/apps/AppProjectSelector.js.map +1 -1
  108. package/lib/esm/shell/login/UserInfo.js +2 -1
  109. package/lib/esm/shell/login/UserInfo.js.map +1 -1
  110. package/lib/esm/shell/login/UserSessionMenu.js +7 -1
  111. package/lib/esm/shell/login/UserSessionMenu.js.map +1 -1
  112. package/lib/esm/widgets/form/Form.js +6 -2
  113. package/lib/esm/widgets/form/Form.js.map +1 -1
  114. package/lib/esm/widgets/markdown/MarkdownRenderer.js +226 -4
  115. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
  116. package/lib/esm/widgets/schema-editor/ManagedSchema.js +0 -3
  117. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
  118. package/lib/esm/widgets/schema-editor/json-schema4-utils.js +1 -1
  119. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +1 -1
  120. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js +18 -9
  121. package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +1 -1
  122. package/lib/esm/widgets/xml-viewer/constants/index.js +10 -0
  123. package/lib/esm/widgets/xml-viewer/constants/index.js.map +1 -1
  124. package/lib/tsconfig.tsbuildinfo +1 -1
  125. package/lib/types/core/components/MessageBox.d.ts.map +1 -1
  126. package/lib/types/core/components/TagsInput.d.ts +16 -0
  127. package/lib/types/core/components/TagsInput.d.ts.map +1 -0
  128. package/lib/types/core/components/index.d.ts +2 -1
  129. package/lib/types/core/components/index.d.ts.map +1 -1
  130. package/lib/types/core/components/shadcn/dialog.d.ts +2 -1
  131. package/lib/types/core/components/shadcn/dialog.d.ts.map +1 -1
  132. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
  133. package/lib/types/core/components/shadcn/popover.d.ts +7 -0
  134. package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
  135. package/lib/types/core/components/shadcn/selectBox.d.ts +5 -1
  136. package/lib/types/core/components/shadcn/selectBox.d.ts.map +1 -1
  137. package/lib/types/core/components/shadcn/tabs.d.ts +3 -1
  138. package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
  139. package/lib/types/env/index.d.ts +2 -0
  140. package/lib/types/env/index.d.ts.map +1 -1
  141. package/lib/types/features/agent/chat/AgentChart.d.ts +48 -0
  142. package/lib/types/features/agent/chat/AgentChart.d.ts.map +1 -0
  143. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
  144. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +3 -2
  145. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
  146. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +2 -1
  147. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
  148. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +4 -2
  149. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -1
  150. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +2 -4
  151. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
  152. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
  153. package/lib/types/features/agent/chat/index.d.ts +1 -0
  154. package/lib/types/features/agent/chat/index.d.ts.map +1 -1
  155. package/lib/types/features/agent/createChartTool.d.ts +178 -0
  156. package/lib/types/features/agent/createChartTool.d.ts.map +1 -0
  157. package/lib/types/features/agent/examples.d.ts +59 -0
  158. package/lib/types/features/agent/examples.d.ts.map +1 -0
  159. package/lib/types/features/agent/index.d.ts +2 -0
  160. package/lib/types/features/agent/index.d.ts.map +1 -1
  161. package/lib/types/features/agent/visualization.d.ts +95 -0
  162. package/lib/types/features/agent/visualization.d.ts.map +1 -0
  163. package/lib/types/features/facets/CollectionsFacetsNav.d.ts.map +1 -1
  164. package/lib/types/features/index.d.ts +1 -0
  165. package/lib/types/features/index.d.ts.map +1 -1
  166. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -1
  167. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts +13 -0
  168. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -0
  169. package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +1 -1
  170. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts +8 -0
  171. package/lib/types/features/magic-pdf/ExtractedContentView.d.ts.map +1 -0
  172. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts +58 -0
  173. package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts.map +1 -0
  174. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +1 -1
  175. package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +1 -1
  176. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts +83 -0
  177. package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts.map +1 -0
  178. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts +29 -0
  179. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -0
  180. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts +19 -0
  181. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -0
  182. package/lib/types/features/pdf-viewer/index.d.ts +4 -0
  183. package/lib/types/features/pdf-viewer/index.d.ts.map +1 -0
  184. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
  185. package/lib/types/features/store/collections/SelectCollection.d.ts +2 -1
  186. package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -1
  187. package/lib/types/features/store/collections/SharedPropsEditor.d.ts +7 -0
  188. package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +1 -0
  189. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts +7 -0
  190. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -0
  191. package/lib/types/features/store/collections/index.d.ts +2 -0
  192. package/lib/types/features/store/collections/index.d.ts.map +1 -1
  193. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
  194. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
  195. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts +30 -0
  196. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -0
  197. package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -1
  198. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
  199. package/lib/types/features/utils/index.d.ts +2 -0
  200. package/lib/types/features/utils/index.d.ts.map +1 -1
  201. package/lib/types/features/utils/mimeType.d.ts +1 -0
  202. package/lib/types/features/utils/mimeType.d.ts.map +1 -1
  203. package/lib/types/features/utils/print.d.ts +10 -0
  204. package/lib/types/features/utils/print.d.ts.map +1 -0
  205. package/lib/types/features/utils/workflowStatus.d.ts +10 -0
  206. package/lib/types/features/utils/workflowStatus.d.ts.map +1 -0
  207. package/lib/types/router/HistoryNavigator.d.ts +3 -0
  208. package/lib/types/router/HistoryNavigator.d.ts.map +1 -1
  209. package/lib/types/shell/login/UserInfo.d.ts.map +1 -1
  210. package/lib/types/shell/login/UserSessionMenu.d.ts.map +1 -1
  211. package/lib/types/widgets/form/Form.d.ts.map +1 -1
  212. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts +5 -1
  213. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
  214. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
  215. package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts.map +1 -1
  216. package/lib/types/widgets/xml-viewer/constants/index.d.ts +10 -0
  217. package/lib/types/widgets/xml-viewer/constants/index.d.ts.map +1 -1
  218. package/lib/vertesia-ui-core.js +1 -1
  219. package/lib/vertesia-ui-core.js.map +1 -1
  220. package/lib/vertesia-ui-env.js +1 -1
  221. package/lib/vertesia-ui-env.js.map +1 -1
  222. package/lib/vertesia-ui-features.js +1 -1
  223. package/lib/vertesia-ui-features.js.map +1 -1
  224. package/lib/vertesia-ui-layout.js +1 -1
  225. package/lib/vertesia-ui-layout.js.map +1 -1
  226. package/lib/vertesia-ui-router.js +1 -1
  227. package/lib/vertesia-ui-router.js.map +1 -1
  228. package/lib/vertesia-ui-session.js +1 -1
  229. package/lib/vertesia-ui-session.js.map +1 -1
  230. package/lib/vertesia-ui-shell.js +1 -1
  231. package/lib/vertesia-ui-shell.js.map +1 -1
  232. package/lib/vertesia-ui-widgets.js +1 -1
  233. package/lib/vertesia-ui-widgets.js.map +1 -1
  234. package/package.json +173 -170
  235. package/src/core/components/MenuList.tsx +3 -6
  236. package/src/core/components/MessageBox.tsx +7 -2
  237. package/src/core/components/SelectBox.tsx +1 -1
  238. package/src/core/components/shadcn/dialog.tsx +19 -1
  239. package/src/core/components/shadcn/filters/filter/SelectFilter.tsx +31 -31
  240. package/src/core/components/shadcn/filters/filterBar.tsx +1 -0
  241. package/src/core/components/shadcn/selectBox.tsx +32 -6
  242. package/src/core/components/shadcn/tabs.tsx +3 -2
  243. package/src/env/index.ts +6 -1
  244. package/src/features/agent/CHART_INSTRUCTIONS.md +228 -0
  245. package/src/features/agent/chat/AgentChart.tsx +601 -0
  246. package/src/features/agent/chat/ModernAgentConversation.tsx +123 -11
  247. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +8 -2
  248. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +12 -2
  249. package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +6 -1
  250. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +15 -10
  251. package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +122 -87
  252. package/src/features/agent/chat/index.ts +1 -0
  253. package/src/features/agent/createChartTool.ts +364 -0
  254. package/src/features/agent/examples.ts +321 -0
  255. package/src/features/agent/index.ts +2 -0
  256. package/src/features/agent/visualization.ts +227 -0
  257. package/src/features/facets/CollectionsFacetsNav.tsx +5 -1
  258. package/src/features/index.ts +1 -0
  259. package/src/features/layout/GenericPageNavHeader.tsx +15 -4
  260. package/src/features/magic-pdf/AnnotatedImageSlider.tsx +482 -0
  261. package/src/features/magic-pdf/DownloadPopover.tsx +45 -40
  262. package/src/features/magic-pdf/ExtractedContentView.tsx +132 -0
  263. package/src/features/magic-pdf/MagicPdfProvider.tsx +297 -0
  264. package/src/features/magic-pdf/MagicPdfView.tsx +184 -91
  265. package/src/features/pdf-viewer/PdfPageRenderer.tsx +612 -0
  266. package/src/features/pdf-viewer/PdfPageSlider.tsx +473 -0
  267. package/src/features/pdf-viewer/SimplePdfViewer.tsx +142 -0
  268. package/src/features/pdf-viewer/index.ts +3 -0
  269. package/src/features/store/collections/EditCollectionView.tsx +3 -5
  270. package/src/features/store/collections/SharedPropsEditor.tsx +1 -2
  271. package/src/features/store/objects/DocumentSearchResults.tsx +0 -7
  272. package/src/features/store/objects/components/ContentOverview.tsx +677 -210
  273. package/src/features/store/objects/components/useContentPanelHooks.ts +169 -0
  274. package/src/features/store/objects/layout/DocumentTableColumn.tsx +3 -3
  275. package/src/features/store/objects/layout/knowledge.md +1 -0
  276. package/src/features/store/objects/layout/renderers.tsx +25 -0
  277. package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +1 -3
  278. package/src/features/utils/index.ts +3 -1
  279. package/src/features/utils/mimeType.ts +10 -1
  280. package/src/features/utils/print.ts +189 -0
  281. package/src/features/utils/workflowStatus.ts +44 -0
  282. package/src/router/HistoryNavigator.ts +30 -2
  283. package/src/session/UserSessionProvider.tsx +2 -2
  284. package/src/shell/login/UserInfo.tsx +2 -0
  285. package/src/shell/login/UserSessionMenu.tsx +12 -1
  286. package/src/widgets/form/Form.tsx +8 -3
  287. package/src/widgets/markdown/MarkdownRenderer.tsx +350 -6
  288. package/src/widgets/schema-editor/ManagedSchema.ts +0 -3
  289. package/src/widgets/schema-editor/json-schema4-utils.ts +1 -1
  290. package/src/widgets/xml-viewer/components/XMLViewer.tsx +22 -10
  291. package/src/widgets/xml-viewer/constants/index.ts +11 -0
  292. package/lib/esm/features/magic-pdf/PageSlider.js +0 -70
  293. package/lib/esm/features/magic-pdf/PageSlider.js.map +0 -1
  294. package/lib/esm/features/magic-pdf/PdfPageProvider.js +0 -188
  295. package/lib/esm/features/magic-pdf/PdfPageProvider.js.map +0 -1
  296. package/lib/esm/features/magic-pdf/TextPageView.js +0 -62
  297. package/lib/esm/features/magic-pdf/TextPageView.js.map +0 -1
  298. package/lib/esm/features/magic-pdf/useResizeOnDrag.js +0 -34
  299. package/lib/esm/features/magic-pdf/useResizeOnDrag.js.map +0 -1
  300. package/lib/types/features/magic-pdf/PageSlider.d.ts +0 -9
  301. package/lib/types/features/magic-pdf/PageSlider.d.ts.map +0 -1
  302. package/lib/types/features/magic-pdf/PdfPageProvider.d.ts +0 -39
  303. package/lib/types/features/magic-pdf/PdfPageProvider.d.ts.map +0 -1
  304. package/lib/types/features/magic-pdf/TextPageView.d.ts +0 -8
  305. package/lib/types/features/magic-pdf/TextPageView.d.ts.map +0 -1
  306. package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts +0 -9
  307. package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts.map +0 -1
  308. package/src/features/magic-pdf/PageSlider.tsx +0 -142
  309. package/src/features/magic-pdf/PdfPageProvider.tsx +0 -310
  310. package/src/features/magic-pdf/TextPageView.tsx +0 -91
  311. package/src/features/magic-pdf/useResizeOnDrag.ts +0 -42
@@ -0,0 +1 @@
1
+ {"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/examples.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH;;GAEG;AACH,eAAO,MAAM,uBAAuB,yvBA+BnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,4sCAiDpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,q3CAiDxC,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,WAcpC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,WAavC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,WAc9C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,WAYjC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,WAa/B;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,QAwBzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,yOAY/B,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM;;;;;;;;IAoB/C"}
@@ -1,3 +1,5 @@
1
1
  export * from "./chat";
2
2
  export * from "./PayloadBuilder";
3
+ export * from "./visualization";
4
+ export * from "./createChartTool";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Visualization helpers for tools to emit chart specs that the UI can render.
3
+ *
4
+ * Format: ChartSpec v1 rendered by AgentChart component
5
+ */
6
+ import type { AgentChartSpec } from './chat/AgentChart';
7
+ export type ChartSpecV1 = AgentChartSpec;
8
+ /**
9
+ * Build a side-by-side bar chart comparing two scenarios across numeric metrics.
10
+ */
11
+ export declare function buildScenarioComparisonBarChart(params: {
12
+ title?: string;
13
+ leftLabel: string;
14
+ rightLabel: string;
15
+ metrics: Array<{
16
+ label: string;
17
+ left: number;
18
+ right: number;
19
+ }>;
20
+ description?: string;
21
+ collapseInitially?: boolean;
22
+ }): ChartSpecV1;
23
+ /**
24
+ * Build a delta percentage bar chart to visualize changes between scenarios.
25
+ */
26
+ export declare function buildScenarioDeltaPercentChart(params: {
27
+ title?: string;
28
+ metrics: Array<{
29
+ label: string;
30
+ left: number;
31
+ right: number;
32
+ }>;
33
+ description?: string;
34
+ collapseInitially?: boolean;
35
+ }): ChartSpecV1;
36
+ /**
37
+ * Helper to wrap a chart spec in a markdown code fence the UI will render.
38
+ */
39
+ export declare function toChartMarkdown(spec: ChartSpecV1): string;
40
+ /**
41
+ * Build a cashflow composed chart (Calls/Distributions bars + Net Cashflow line)
42
+ */
43
+ export declare function buildCashflowComposedChart(params: {
44
+ title?: string;
45
+ description?: string;
46
+ rows: Array<{
47
+ period: string;
48
+ calls: number;
49
+ distributions: number;
50
+ netCashflow?: number;
51
+ }>;
52
+ collapseInitially?: boolean;
53
+ }): ChartSpecV1;
54
+ /**
55
+ * Build a multi-line performance chart (TVPI/DPI/RVPI)
56
+ */
57
+ export declare function buildPerformanceLineChart(params: {
58
+ title?: string;
59
+ description?: string;
60
+ rows: Array<{
61
+ period: string;
62
+ tvpi?: number;
63
+ dpi?: number;
64
+ rvpi?: number;
65
+ }>;
66
+ collapseInitially?: boolean;
67
+ }): ChartSpecV1;
68
+ /**
69
+ * Build a TVPI-only overlay chart (two series, e.g., left vs right scenario)
70
+ */
71
+ export declare function buildTvpiOverlayChart(params: {
72
+ title?: string;
73
+ description?: string;
74
+ rows: Array<{
75
+ period: string;
76
+ tvpi_left?: number;
77
+ tvpi_right?: number;
78
+ }>;
79
+ leftLabel: string;
80
+ rightLabel: string;
81
+ collapseInitially?: boolean;
82
+ }): ChartSpecV1;
83
+ /**
84
+ * Build a NAV over time line chart (single line, right or left axis)
85
+ */
86
+ export declare function buildNavLineChart(params: {
87
+ title?: string;
88
+ description?: string;
89
+ rows: Array<{
90
+ period: string;
91
+ nav: number;
92
+ }>;
93
+ collapseInitially?: boolean;
94
+ }): ChartSpecV1;
95
+ //# sourceMappingURL=visualization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visualization.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/visualization.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AAEzC;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAC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UAmCnC;AAGD,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,yBAAyB,2CAwBjF"}
1
+ {"version":3,"file":"CollectionsFacetsNav.d.ts","sourceRoot":"","sources":["../../../../src/features/facets/CollectionsFacetsNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAqD,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,UAAU,yBAAyB;IAC/B,MAAM,EAAE;QACJ,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;KACnB,CAAC;IACF,MAAM,EAAE,eAAe,CAAC;CAC3B;AAGD,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,yBAAyB,CAAC,QAAQ,CAAC,GAAG,WAAW,EAAE,CAsCrG;AAGD,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,eAAe,IACvD,YAAY,UAAU,EAAE,UAmCnC;AAGD,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,yBAAyB,2CAwBjF"}
@@ -4,6 +4,7 @@ export * from "./errors/index.js";
4
4
  export * from "./facets/index.js";
5
5
  export * from "./layout/index.js";
6
6
  export * from "./magic-pdf/index.js";
7
+ export * from "./pdf-viewer/index.js";
7
8
  export * from "./permissions/index.js";
8
9
  export * from "./store/index.js";
9
10
  export * from "./user/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericPageNavHeader.d.ts","sourceRoot":"","sources":["../../../../src/features/layout/GenericPageNavHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOhD,UAAU,yBAAyB;IAC/B,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,YAAY,EAAE,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,SAAiB,EAAE,qBAA4B,EAAE,EAAE,yBAAyB,2CA2FjL"}
1
+ {"version":3,"file":"GenericPageNavHeader.d.ts","sourceRoot":"","sources":["../../../../src/features/layout/GenericPageNavHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOhD,UAAU,yBAAyB;IAC/B,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,YAAY,EAAE,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,SAAiB,EAAE,qBAA4B,EAAE,EAAE,yBAAyB,2CAsGjL"}
@@ -0,0 +1,13 @@
1
+ interface AnnotatedImageSliderProps {
2
+ currentPage: number;
3
+ onChange: (pageNumber: number) => void;
4
+ className?: string;
5
+ }
6
+ /**
7
+ * Image-based page slider that displays annotated/instrumented page images.
8
+ * Progressively loads images starting from current page and radiating outward.
9
+ * Loads first image immediately to determine aspect ratio for stable layout.
10
+ */
11
+ export declare function AnnotatedImageSlider({ className, currentPage, onChange }: AnnotatedImageSliderProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=AnnotatedImageSlider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotatedImageSlider.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-pdf/AnnotatedImageSlider.tsx"],"names":[],"mappings":"AAgCA,UAAU,yBAAyB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,yBAAyB,2CAqQnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"DownloadPopover.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-pdf/DownloadPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,kBAAkB,CAAC;AAMnE,UAAU,oBAAoB;IAC1B,MAAM,EAAE,aAAa,CAAC;CACzB;AACD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,2CAuD/D"}
1
+ {"version":3,"file":"DownloadPopover.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-pdf/DownloadPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,kBAAkB,CAAC;AAOnE,UAAU,oBAAoB;IAC1B,MAAM,EAAE,aAAa,CAAC;CACzB;AACD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,2CA2D/D"}
@@ -0,0 +1,8 @@
1
+ import { ViewType } from "./types";
2
+ interface ExtractedContentViewProps {
3
+ pageNumber: number;
4
+ viewType: ViewType;
5
+ }
6
+ export declare function ExtractedContentView({ viewType, pageNumber }: ExtractedContentViewProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=ExtractedContentView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtractedContentView.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-pdf/ExtractedContentView.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAWnC,UAAU,yBAAyB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;CACtB;AACD,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,yBAAyB,2CASvF"}
@@ -0,0 +1,58 @@
1
+ import { VertesiaClient } from "@vertesia/client";
2
+ import { ContentObject } from "@vertesia/common";
3
+ import React from "react";
4
+ export declare enum ImageType {
5
+ original = "original",
6
+ instrumented = "instrumented"
7
+ }
8
+ interface MagicPdfContextValue {
9
+ count: number;
10
+ layoutProvider: PageLayoutProvider;
11
+ markdownProvider: PageMarkdownProvider;
12
+ imageProvider: PageImageProvider;
13
+ xml: string;
14
+ xmlPages: string[];
15
+ pdfUrl: string;
16
+ pdfUrlLoading: boolean;
17
+ }
18
+ /** Provider for lazy-loading page images on demand */
19
+ export declare class PageImageProvider {
20
+ private client;
21
+ private objectId;
22
+ totalPages: number;
23
+ private cache;
24
+ private pending;
25
+ constructor(client: VertesiaClient, objectId: string, totalPages: number);
26
+ private getCacheKey;
27
+ /** Get the URL for a specific page and image type, fetching lazily if needed */
28
+ getPageImageUrl(page: number, type: ImageType): Promise<string>;
29
+ private fetchImageUrl;
30
+ private getImagePath;
31
+ }
32
+ declare class PageLayoutProvider {
33
+ private client;
34
+ private objectId;
35
+ totalPages: number;
36
+ private cache;
37
+ private pending;
38
+ constructor(client: VertesiaClient, objectId: string, totalPages: number);
39
+ getPageLayout(page: number): Promise<string>;
40
+ private fetchPageLayout;
41
+ }
42
+ declare class PageMarkdownProvider {
43
+ totalPages: number;
44
+ private pages;
45
+ constructor(totalPages: number);
46
+ initFromContent(markdownContent: string): void;
47
+ loadUrls(_vertesia: VertesiaClient, _objectId: string): Promise<void>;
48
+ getPageMarkdown(page: number): Promise<string>;
49
+ }
50
+ interface MagicPdfProviderProps {
51
+ object: ContentObject;
52
+ children: React.ReactNode;
53
+ }
54
+ export declare function MagicPdfProvider({ children, object }: MagicPdfProviderProps): import("react/jsx-runtime").JSX.Element;
55
+ export declare function getResourceUrl(vertesia: VertesiaClient, objectId: string, name: string): Promise<string>;
56
+ export declare function useMagicPdfContext(): MagicPdfContextValue;
57
+ export {};
58
+ //# sourceMappingURL=MagicPdfProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":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vB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;YAsBpC,eAAe;CAShC;AAED,cAAM,oBAAoB;IAGH,UAAU,EAAE,MAAM;IAFrC,OAAO,CAAC,KAAK,CAAgB;gBAEV,UAAU,EAAE,MAAM;IAIrC,eAAe,CAAC,eAAe,EAAE,MAAM;IAKjC,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM;IAIrD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAOvD;AAiDD,UAAU,qBAAqB;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AACD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,qBAAqB,2CAwD3E;AAED,wBAAgB,cAAc,CAC1B,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,CAIjB;AAED,wBAAgB,kBAAkB,yBAQjC"}
@@ -2,6 +2,6 @@ interface MagicPdfViewProps {
2
2
  objectId: string;
3
3
  onClose?: () => void;
4
4
  }
5
- export declare function MagicPdfView({ objectId, onClose }: MagicPdfViewProps): import("react/jsx-runtime").JSX.Element | "Loading...";
5
+ export declare function MagicPdfView({ objectId, onClose }: MagicPdfViewProps): import("react/jsx-runtime").JSX.Element;
6
6
  export {};
7
7
  //# sourceMappingURL=MagicPdfView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MagicPdfView.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-pdf/MagicPdfView.tsx"],"names":[],"mappings":"AAaA,UAAU,iBAAiB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AACD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,iBAAiB,0DAiBpE"}
1
+ {"version":3,"file":"MagicPdfView.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-pdf/MagicPdfView.tsx"],"names":[],"mappings":"AAwDA,UAAU,iBAAiB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AACD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,iBAAiB,2CAoDpE"}
@@ -0,0 +1,83 @@
1
+ interface PdfPageRendererProps {
2
+ pdfUrl: string;
3
+ pageNumber: number;
4
+ width?: number;
5
+ className?: string;
6
+ renderTextLayer?: boolean;
7
+ renderAnnotationLayer?: boolean;
8
+ onLoadSuccess?: (numPages: number) => void;
9
+ onError?: (error: Error) => void;
10
+ }
11
+ export declare function PdfPageRenderer({ pdfUrl, pageNumber, width, className, renderTextLayer, renderAnnotationLayer, onLoadSuccess, onError }: PdfPageRendererProps): import("react/jsx-runtime").JSX.Element;
12
+ interface PageDimensions {
13
+ width: number;
14
+ height: number;
15
+ aspectRatio: number;
16
+ }
17
+ interface SharedPdfContextValue {
18
+ pdfUrl: string;
19
+ numPages: number;
20
+ loading: boolean;
21
+ error: Error | null;
22
+ pageDimensions: PageDimensions | null;
23
+ }
24
+ interface SharedPdfProviderProps {
25
+ pdfUrl: string;
26
+ urlLoading?: boolean;
27
+ children: (renderPage: (pageNumber: number, width?: number) => React.ReactNode) => React.ReactNode;
28
+ onLoadSuccess?: (numPages: number) => void;
29
+ }
30
+ /**
31
+ * Provider that loads a PDF once using a single Document component.
32
+ * Children receive a renderPage function to render pages inside the Document.
33
+ */
34
+ export declare function SharedPdfProvider({ pdfUrl, urlLoading, children, onLoadSuccess }: SharedPdfProviderProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare function useSharedPdf(): SharedPdfContextValue | null;
36
+ interface SimplePdfPageProps {
37
+ pageNumber: number;
38
+ width?: number;
39
+ className?: string;
40
+ }
41
+ /**
42
+ * Simple wrapper for a PDF page that adds styling.
43
+ * Must be used inside SharedPdfProvider's children render function.
44
+ */
45
+ export declare function SimplePdfPage({ pageNumber, width, className }: SimplePdfPageProps): import("react/jsx-runtime").JSX.Element;
46
+ interface PdfThumbnailListProps {
47
+ pdfUrl: string;
48
+ urlLoading?: boolean;
49
+ pageCount: number;
50
+ currentPage: number;
51
+ thumbnailWidth?: number;
52
+ onPageSelect: (pageNumber: number) => void;
53
+ renderThumbnail: (props: {
54
+ pageNumber: number;
55
+ isSelected: boolean;
56
+ pageElement: React.ReactNode;
57
+ onSelect: () => void;
58
+ }) => React.ReactNode;
59
+ /** Optional ref to the scroll container. If not provided, will search for scrollable ancestor. */
60
+ scrollContainerRef?: React.RefObject<HTMLElement | null>;
61
+ /** Callback when aspect ratio is determined from the PDF. Useful for synchronizing placeholder sizing. */
62
+ onAspectRatioChange?: (aspectRatio: number) => void;
63
+ /** Callback when item height is calculated. Useful for scroll position calculations. */
64
+ onItemHeightChange?: (itemHeight: number) => void;
65
+ /** Custom function to calculate item height. Receives placeholder height and should return total item height. */
66
+ calculateItemHeight?: (placeholderHeight: number) => number;
67
+ /** Callback when actual page count is determined from the PDF. Useful when initial count is estimated. */
68
+ onPageCountChange?: (pageCount: number) => void;
69
+ }
70
+ export declare function PdfThumbnailList({ pdfUrl, urlLoading, pageCount, currentPage, thumbnailWidth, onPageSelect, renderThumbnail, scrollContainerRef, onAspectRatioChange, onItemHeightChange, calculateItemHeight, onPageCountChange }: PdfThumbnailListProps): import("react/jsx-runtime").JSX.Element;
71
+ interface PdfDocumentRendererProps {
72
+ pdfUrl: string;
73
+ pageNumber: number;
74
+ width?: number;
75
+ height?: number;
76
+ className?: string;
77
+ renderTextLayer?: boolean;
78
+ renderAnnotationLayer?: boolean;
79
+ onPageChange?: (pageNumber: number, totalPages: number) => void;
80
+ }
81
+ export declare function PdfDocumentRenderer({ pdfUrl, pageNumber, width, height, className, renderTextLayer, renderAnnotationLayer, onPageChange }: PdfDocumentRendererProps): import("react/jsx-runtime").JSX.Element;
82
+ export {};
83
+ //# sourceMappingURL=PdfPageRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfPageRenderer.d.ts","sourceRoot":"","sources":["../../../../src/features/pdf-viewer/PdfPageRenderer.tsx"],"names":[],"mappings":"AAqBA,UAAU,oBAAoB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACpC;AAED,wBAAgB,eAAe,CAAC,EAC5B,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,eAAuB,EACvB,qBAA6B,EAC7B,aAAa,EACb,OAAO,EACV,EAAE,oBAAoB,2CA4CtB;AAGD,UAAU,cAAc;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACvB;AASD,UAAU,qBAAqB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;CACzC;AAID,UAAU,sBAAsB;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,KAAK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IACjH,mBAAmB,CAAC,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5D,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AA4GD,wBAAgB,gBAAgB,CAAC,EAC7B,MAAM,EACN,UAAkB,EAClB,SAAS,EACT,WAAW,EACX,cAAc,EACd,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACpB,EAAE,qBAAqB,2CAoJvB;AAED,UAAU,wBAAwB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACnE;AAED,wBAAgB,mBAAmB,CAAC,EAChC,MAAM,EACN,UAAU,EACV,KAAK,EACL,MAAM,EACN,SAAS,EACT,eAAuB,EACvB,qBAA6B,EAC7B,YAAY,EACf,EAAE,wBAAwB,2CAmD1B"}
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from "react";
2
+ interface PdfPageSliderProps {
3
+ /** URL to the PDF file */
4
+ pdfUrl: string;
5
+ /** Whether the PDF URL is still loading */
6
+ pdfUrlLoading?: boolean;
7
+ /** Total number of pages in the PDF (initial estimate, will be updated when PDF loads) */
8
+ pageCount: number;
9
+ /** Currently selected page number (1-indexed) */
10
+ currentPage: number;
11
+ /** Callback when page selection changes */
12
+ onChange: (pageNumber: number) => void;
13
+ /** Callback when actual page count is determined from the PDF */
14
+ onPageCountChange?: (pageCount: number) => void;
15
+ /** Additional CSS class names */
16
+ className?: string;
17
+ /** Compact mode reduces padding and navigation bar heights */
18
+ compact?: boolean;
19
+ /** Extra content to render in the header (e.g., fullscreen button) */
20
+ headerExtra?: ReactNode;
21
+ }
22
+ /**
23
+ * Standalone PDF thumbnail slider component.
24
+ * Displays a vertical list of PDF page thumbnails with navigation controls.
25
+ * Does not depend on any context - all data is passed via props.
26
+ */
27
+ export declare function PdfPageSlider({ pdfUrl, pdfUrlLoading, pageCount, currentPage, onChange, onPageCountChange, className, compact, headerExtra }: PdfPageSliderProps): import("react/jsx-runtime").JSX.Element;
28
+ export {};
29
+ //# sourceMappingURL=PdfPageSlider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfPageSlider.d.ts","sourceRoot":"","sources":["../../../../src/features/pdf-viewer/PdfPageSlider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAA2D,MAAM,OAAO,CAAC;AAU3F,UAAU,kBAAkB;IACxB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0FAA0F;IAC1F,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC1B,MAAM,EACN,aAAqB,EACrB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,OAAe,EACf,WAAW,EACd,EAAE,kBAAkB,2CAqTpB"}
@@ -0,0 +1,19 @@
1
+ import { ContentObject } from "@vertesia/common";
2
+ interface SimplePdfViewerProps {
3
+ /** The content object containing the PDF (optional if url or source is provided) */
4
+ object?: ContentObject;
5
+ /** Direct signed URL to the PDF (ready to use, no resolution needed) */
6
+ url?: string;
7
+ /** Storage source path that needs to be resolved to a download URL */
8
+ source?: string;
9
+ /** Additional CSS class names */
10
+ className?: string;
11
+ }
12
+ /**
13
+ * A standalone PDF viewer component that displays PDF thumbnails with navigation.
14
+ * Fetches the PDF URL from the content object and displays it using PdfThumbnailSlider.
15
+ * Does not depend on any magic-pdf context.
16
+ */
17
+ export declare function SimplePdfViewer({ object, url, source, className }: SimplePdfViewerProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=SimplePdfViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimplePdfViewer.d.ts","sourceRoot":"","sources":["../../../../src/features/pdf-viewer/SimplePdfViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOjD,UAAU,oBAAoB;IAC1B,oFAAoF;IACpF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,oBAAoB,2CAsHvF"}
@@ -0,0 +1,4 @@
1
+ export * from './PdfPageRenderer';
2
+ export * from './PdfPageSlider';
3
+ export * from './SimplePdfViewer';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/pdf-viewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditCollectionView.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/EditCollectionView.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAA2B,MAAM,kBAAkB,CAAC;AAgBvE,UAAU,uBAAuB;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,uBAAuB,2CA6LlF"}
1
+ {"version":3,"file":"EditCollectionView.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/EditCollectionView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA6C,MAAM,kBAAkB,CAAC;AAqBzF,UAAU,uBAAuB;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,uBAAuB,2CAsMlF"}
@@ -10,10 +10,11 @@ interface SelectCollectionProps {
10
10
  onChange: (collectionId: string | string[] | undefined, collection?: CollectionItem | CollectionItem[]) => void;
11
11
  disabled?: boolean;
12
12
  placeholder?: string;
13
+ searchPlaceholder?: string;
13
14
  filterOut?: string[];
14
15
  allowDynamic?: boolean;
15
16
  multiple?: boolean;
16
17
  }
17
- export declare function SelectCollection({ onChange, value, disabled, placeholder, filterOut, allowDynamic, multiple }: SelectCollectionProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function SelectCollection({ onChange, value, disabled, placeholder, searchPlaceholder, filterOut, allowDynamic, multiple }: SelectCollectionProps): import("react/jsx-runtime").JSX.Element;
18
19
  export {};
19
20
  //# sourceMappingURL=SelectCollection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectCollection.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/SelectCollection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD;;;;;GAKG;AACH,UAAU,qBAAqB;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAAE,UAAU,CAAC,EAAE,cAAc,GAAG,cAAc,EAAE,KAAK,IAAI,CAAC;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAgB,EAAE,WAAmC,EAAE,SAAS,EAAE,YAAmB,EAAE,QAAgB,EAAE,EAAE,qBAAqB,2CA6EnL"}
1
+ {"version":3,"file":"SelectCollection.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/SelectCollection.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQlD;;;;;GAKG;AACH,UAAU,qBAAqB;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAAE,UAAU,CAAC,EAAE,cAAc,GAAG,cAAc,EAAE,KAAK,IAAI,CAAC;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAgB,EAAE,WAAmC,EAAE,iBAAwC,EAAE,SAAS,EAAE,YAAmB,EAAE,QAAgB,EAAE,EAAE,qBAAqB,2CA0M7N"}
@@ -0,0 +1,7 @@
1
+ import { Collection } from "@vertesia/common";
2
+ interface SharedPropsEditorProps {
3
+ collection: Collection;
4
+ }
5
+ export declare function SharedPropsEditor({ collection }: SharedPropsEditorProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=SharedPropsEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedPropsEditor.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/SharedPropsEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAC;AAKjE,UAAU,sBAAsB;IAC5B,UAAU,EAAE,UAAU,CAAC;CAC1B;AACD,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE,sBAAsB,2CAmDvE"}
@@ -0,0 +1,7 @@
1
+ import { Collection } from "@vertesia/common";
2
+ interface SyncMemberHeadsToggleProps {
3
+ collection: Collection;
4
+ }
5
+ export declare function SyncMemberHeadsToggle({ collection }: SyncMemberHeadsToggleProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=SyncMemberHeadsToggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncMemberHeadsToggle.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/SyncMemberHeadsToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAK9C,UAAU,0BAA0B;IAChC,UAAU,EAAE,UAAU,CAAC;CAC1B;AACD,wBAAgB,qBAAqB,CAAC,EAAE,UAAU,EAAE,EAAE,0BAA0B,2CAuC/E"}
@@ -3,4 +3,6 @@ export * from "./CollectionsTable";
3
3
  export * from "./EditCollectionView";
4
4
  export * from "./CreateCollection";
5
5
  export * from "./SelectCollection";
6
+ export * from "./SharedPropsEditor";
7
+ export * from "./SyncMemberHeadsToggle";
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSearchResults.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/objects/DocumentSearchResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAwD,MAAM,kBAAkB,CAAC;AAqCtG,UAAU,sCAAsC;IAC5C,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD;AACD,wBAAgB,iCAAiC,CAAC,EAAE,YAA8B,EAAE,MAAM,EAAE,EAAE,sCAAsC,2CAqCnI;AAED,UAAU,0BAA0B;IAChC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9F;AACD,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAkB,EAAE,WAAkB,EAAE,EAAE,0BAA0B,2CAoL7H"}
1
+ {"version":3,"file":"DocumentSearchResults.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/objects/DocumentSearchResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAwD,MAAM,kBAAkB,CAAC;AAgCtG,UAAU,sCAAsC;IAC5C,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD;AACD,wBAAgB,iCAAiC,CAAC,EAAE,YAA8B,EAAE,MAAM,EAAE,EAAE,sCAAsC,2CAqCnI;AAED,UAAU,0BAA0B;IAChC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9F;AACD,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAkB,EAAE,WAAkB,EAAE,EAAE,0BAA0B,2CAkL7H"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentOverview.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/ContentOverview.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAiB,aAAa,EAA8D,MAAM,kBAAkB,CAAC;AAc5H,UAAU,oBAAoB;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACpC;AACD,wBAAgB,eAAe,CAAC,EAC5B,MAAM,EACN,QAAQ,EACR,OAAO,GACV,EAAE,oBAAoB,2CAyCtB"}
1
+ {"version":3,"file":"ContentOverview.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/ContentOverview.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAiB,aAAa,EAAiM,MAAM,kBAAkB,CAAC;AAsJ/P,UAAU,oBAAoB;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACpC;AACD,wBAAgB,eAAe,CAAC,EAC5B,MAAM,EACN,QAAQ,EACR,OAAO,GACV,EAAE,oBAAoB,2CAyCtB"}
@@ -0,0 +1,30 @@
1
+ import { DocAnalyzerProgress, DocProcessorOutputFormat, WorkflowExecutionStatus } from "@vertesia/common";
2
+ /**
3
+ * Hook for managing object text loading and cropping.
4
+ */
5
+ export declare function useObjectText(objectId: string, initialText?: string, loadOnMount?: boolean): {
6
+ fullText: string | undefined;
7
+ displayText: string | undefined;
8
+ isLoading: boolean;
9
+ isCropped: boolean;
10
+ loadText: () => void;
11
+ };
12
+ /**
13
+ * Hook for polling PDF/document processing status.
14
+ */
15
+ export declare function usePdfProcessingStatus(objectId: string, shouldPoll: boolean): {
16
+ progress: DocAnalyzerProgress | undefined;
17
+ status: WorkflowExecutionStatus | undefined;
18
+ outputFormat: DocProcessorOutputFormat | undefined;
19
+ isComplete: boolean;
20
+ };
21
+ /**
22
+ * Hook for managing Office document to PDF conversion.
23
+ */
24
+ export declare function useOfficePdfConversion(objectId: string, enabled: boolean): {
25
+ pdfUrl: string | undefined;
26
+ isConverting: boolean;
27
+ error: string | undefined;
28
+ triggerConversion: () => Promise<void>;
29
+ };
30
+ //# sourceMappingURL=useContentPanelHooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useContentPanelHooks.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useContentPanelHooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAA2B,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAKnI;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,WAAW,UAAQ;;;;;;EAkDxF;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO;;;;;EAkD3E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;;;;;EAgDxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/layout/renderers.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAoJ3I,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/layout/renderers.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CA6K3I,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSmartFileUploadProcessing.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/upload/useSmartFileUploadProcessing.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,oBAAY,gBAAgB;IACxB,MAAM,WAAW,CAAE,8BAA8B;IACjD,IAAI,SAAS,CAAE,+CAA+C;IAC9D,MAAM,WAAW;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AA0ED;;;;GAIG;AACH,wBAAgB,4BAA4B;qCAY7B,IAAI,EAAE,mBACI,MAAM,GAAG,IAAI,wBACR,MAAM,KAC7B,OAAO,CAAC,gBAAgB,EAAE,CAAC;EAwHjC"}
1
+ {"version":3,"file":"useSmartFileUploadProcessing.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/upload/useSmartFileUploadProcessing.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,oBAAY,gBAAgB;IACxB,MAAM,WAAW,CAAE,8BAA8B;IACjD,IAAI,SAAS,CAAE,+CAA+C;IAC9D,MAAM,WAAW;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AA0ED;;;;GAIG;AACH,wBAAgB,4BAA4B;qCAY7B,IAAI,EAAE,mBACI,MAAM,GAAG,IAAI,wBACR,MAAM,KAC7B,OAAO,CAAC,gBAAgB,EAAE,CAAC;EAyHjC"}
@@ -1,4 +1,6 @@
1
1
  export * from "./text.js";
2
2
  export * from "./mimeType.js";
3
3
  export * from "./rendition.js";
4
+ export * from "./print.js";
5
+ export * from "./workflowStatus.js";
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
@@ -2,4 +2,5 @@ export declare const isCsv: (type: string) => boolean;
2
2
  export declare const isImage: (type: string) => boolean;
3
3
  export declare const isPdf: (type: string) => boolean;
4
4
  export declare const isVideo: (type: string) => boolean;
5
+ export declare const isPreviewableAsPdf: (type: string) => boolean;
5
6
  //# sourceMappingURL=mimeType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mimeType.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/mimeType.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,YAAqD,CAAA;AACvF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,YAAiE,CAAA;AACrG,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,YAAqD,CAAA;AACvF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,YAAiE,CAAA"}
1
+ {"version":3,"file":"mimeType.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/mimeType.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,YAAqD,CAAA;AACvF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,YAAiE,CAAA;AACrG,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,YAAqD,CAAA;AACvF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,YAAiE,CAAA;AACrG,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,YAA4C,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Opens the browser print dialog with the content of a given HTML element.
3
+ * Uses a hidden iframe to avoid opening a new window.
4
+ *
5
+ * @param sourceElement - The HTML element whose content to print
6
+ * @param title - The document title for the printed page
7
+ * @returns true if print dialog was opened successfully, false otherwise
8
+ */
9
+ export declare function printElementToPdf(sourceElement: HTMLElement, title: string): boolean;
10
+ //# sourceMappingURL=print.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/print.ts"],"names":[],"mappings":"AAqIA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CA+CpF"}
@@ -0,0 +1,10 @@
1
+ import { WorkflowExecutionStatus } from "@vertesia/common";
2
+ /**
3
+ * Get the semantic color class for a workflow execution status.
4
+ */
5
+ export declare function getWorkflowStatusColor(status?: WorkflowExecutionStatus): string;
6
+ /**
7
+ * Get a human-readable name for a workflow execution status.
8
+ */
9
+ export declare function getWorkflowStatusName(status?: WorkflowExecutionStatus): string;
10
+ //# sourceMappingURL=workflowStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowStatus.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/workflowStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,MAAM,CAc/E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,MAAM,CAmB9E"}