@osdk/react-components 0.56.0 → 0.57.0-main-9c5a7b17bd0a71c88bf2d3ed29847e6f87975bbf

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 (378) hide show
  1. package/AGENTS.md +19 -14
  2. package/CHANGELOG.md +55 -0
  3. package/README.md +3 -3
  4. package/action-form.d.ts +17 -0
  5. package/build/browser/pdf-viewer/BasePdfViewer.js +12 -8
  6. package/build/browser/pdf-viewer/BasePdfViewer.js.map +1 -1
  7. package/build/browser/pdf-viewer/PdfViewerApi.js.map +1 -1
  8. package/build/browser/pdf-viewer/PdfViewerContext.js +4 -0
  9. package/build/browser/pdf-viewer/PdfViewerContext.js.map +1 -1
  10. package/build/browser/pdf-viewer/components/PdfViewerContent.js +6 -2
  11. package/build/browser/pdf-viewer/components/PdfViewerContent.js.map +1 -1
  12. package/build/browser/pdf-viewer/hooks/usePdfViewerCore.js +10 -4
  13. package/build/browser/pdf-viewer/hooks/usePdfViewerCore.js.map +1 -1
  14. package/build/browser/pdf-viewer/hooks/usePdfViewerState.js +9 -1
  15. package/build/browser/pdf-viewer/hooks/usePdfViewerState.js.map +1 -1
  16. package/build/browser/public/action-form.js +21 -0
  17. package/build/browser/public/action-form.js.map +1 -0
  18. package/build/browser/public/document-viewer.js +22 -0
  19. package/build/browser/public/document-viewer.js.map +1 -0
  20. package/build/browser/public/email-viewer.js +23 -0
  21. package/build/browser/public/email-viewer.js.map +1 -0
  22. package/build/browser/public/experimental/action-form.js +60 -5
  23. package/build/browser/public/experimental/action-form.js.map +1 -1
  24. package/build/browser/public/experimental/document-viewer.js +11 -5
  25. package/build/browser/public/experimental/document-viewer.js.map +1 -1
  26. package/build/browser/public/experimental/email-viewer.js +15 -6
  27. package/build/browser/public/experimental/email-viewer.js.map +1 -1
  28. package/build/browser/public/experimental/filter-list.js +71 -14
  29. package/build/browser/public/experimental/filter-list.js.map +1 -1
  30. package/build/browser/public/experimental/image-viewer.js +11 -6
  31. package/build/browser/public/experimental/image-viewer.js.map +1 -1
  32. package/build/browser/public/experimental/markdown-renderer.js +11 -17
  33. package/build/browser/public/experimental/markdown-renderer.js.map +1 -1
  34. package/build/browser/public/experimental/object-table.js +152 -37
  35. package/build/browser/public/experimental/object-table.js.map +1 -1
  36. package/build/browser/public/experimental/pdf-viewer.js +134 -34
  37. package/build/browser/public/experimental/pdf-viewer.js.map +1 -1
  38. package/build/browser/public/experimental/spreadsheet-viewer.js +15 -6
  39. package/build/browser/public/experimental/spreadsheet-viewer.js.map +1 -1
  40. package/build/browser/public/experimental/tiff-renderer.js +11 -17
  41. package/build/browser/public/experimental/tiff-renderer.js.map +1 -1
  42. package/build/browser/public/experimental/video-viewer.js +11 -6
  43. package/build/browser/public/experimental/video-viewer.js.map +1 -1
  44. package/build/browser/public/experimental/xml-viewer.js +11 -6
  45. package/build/browser/public/experimental/xml-viewer.js.map +1 -1
  46. package/build/browser/public/filter-list.js +30 -0
  47. package/build/browser/public/filter-list.js.map +1 -0
  48. package/build/browser/public/image-viewer.js +23 -0
  49. package/build/browser/public/image-viewer.js.map +1 -0
  50. package/build/browser/public/markdown-viewer.js +24 -0
  51. package/build/browser/public/markdown-viewer.js.map +1 -0
  52. package/build/browser/public/object-table.js +65 -0
  53. package/build/browser/public/object-table.js.map +1 -0
  54. package/build/browser/public/pdf-viewer.js +50 -0
  55. package/build/browser/public/pdf-viewer.js.map +1 -0
  56. package/build/browser/public/spreadsheet-viewer.js +23 -0
  57. package/build/browser/public/spreadsheet-viewer.js.map +1 -0
  58. package/build/browser/public/tiff-viewer.js +24 -0
  59. package/build/browser/public/tiff-viewer.js.map +1 -0
  60. package/build/browser/public/video-viewer.js +23 -0
  61. package/build/browser/public/video-viewer.js.map +1 -0
  62. package/build/browser/public/xml-viewer.js +23 -0
  63. package/build/browser/public/xml-viewer.js.map +1 -0
  64. package/build/browser/util/UserAgent.js +1 -1
  65. package/build/browser/util/UserAgent.js.map +1 -1
  66. package/build/cjs/{PdfViewerApi-CQJlwPUl.d.cts → PdfViewerApi-CIpvxxUo.d.cts} +9 -1
  67. package/build/cjs/action-form-4OvVNZ6i.d.cts +791 -0
  68. package/build/cjs/chunk-36QJAKOY.cjs +13 -0
  69. package/build/cjs/chunk-36QJAKOY.cjs.map +1 -0
  70. package/build/cjs/{chunk-HVJTECCC.cjs → chunk-4KHF42ZL.cjs} +34 -15
  71. package/build/cjs/chunk-4KHF42ZL.cjs.map +1 -0
  72. package/build/cjs/chunk-5KVF4DSH.cjs +53 -0
  73. package/build/cjs/chunk-5KVF4DSH.cjs.map +1 -0
  74. package/build/cjs/{chunk-L2FCT7HW.cjs → chunk-6YNO7HDC.cjs} +4 -4
  75. package/build/cjs/{chunk-L2FCT7HW.cjs.map → chunk-6YNO7HDC.cjs.map} +1 -1
  76. package/build/cjs/{chunk-JHKAQXRZ.cjs → chunk-7IP4YOC6.cjs} +5 -5
  77. package/build/cjs/chunk-7IP4YOC6.cjs.map +1 -0
  78. package/build/cjs/chunk-A3GEXM7R.cjs +48 -0
  79. package/build/cjs/chunk-A3GEXM7R.cjs.map +1 -0
  80. package/build/cjs/chunk-AWSDHTVF.cjs +11 -0
  81. package/build/cjs/chunk-AWSDHTVF.cjs.map +1 -0
  82. package/build/cjs/chunk-BPRRM7TQ.cjs +12 -0
  83. package/build/cjs/chunk-BPRRM7TQ.cjs.map +1 -0
  84. package/build/cjs/chunk-DZLFOD3V.cjs +12 -0
  85. package/build/cjs/chunk-DZLFOD3V.cjs.map +1 -0
  86. package/build/cjs/{chunk-DJNKQI5C.cjs → chunk-GCAQEFD6.cjs} +35 -27
  87. package/build/cjs/chunk-GCAQEFD6.cjs.map +1 -0
  88. package/build/cjs/chunk-IBDBFMEQ.cjs +13 -0
  89. package/build/cjs/chunk-IBDBFMEQ.cjs.map +1 -0
  90. package/build/cjs/chunk-IFBNWYYC.cjs +11 -0
  91. package/build/cjs/chunk-IFBNWYYC.cjs.map +1 -0
  92. package/build/cjs/chunk-JCCZWVY3.cjs +13 -0
  93. package/build/cjs/chunk-JCCZWVY3.cjs.map +1 -0
  94. package/build/cjs/{chunk-BBXX42YT.cjs → chunk-L4PLQPV2.cjs} +12 -12
  95. package/build/cjs/chunk-L4PLQPV2.cjs.map +1 -0
  96. package/build/cjs/chunk-MDVEVGFJ.cjs +11 -0
  97. package/build/cjs/chunk-MDVEVGFJ.cjs.map +1 -0
  98. package/build/cjs/chunk-OJTBEZKG.cjs +11 -0
  99. package/build/cjs/chunk-OJTBEZKG.cjs.map +1 -0
  100. package/build/cjs/{chunk-ABT6IGXN.cjs → chunk-RPEXVMQG.cjs} +7 -7
  101. package/build/cjs/chunk-RPEXVMQG.cjs.map +1 -0
  102. package/build/cjs/{chunk-RDJK72SG.cjs → chunk-RZOLA2GI.cjs} +10 -10
  103. package/build/cjs/chunk-RZOLA2GI.cjs.map +1 -0
  104. package/build/cjs/{chunk-6RCVPIW5.cjs → chunk-U7FYMS5T.cjs} +3 -3
  105. package/build/cjs/chunk-U7FYMS5T.cjs.map +1 -0
  106. package/build/cjs/chunk-UAKUGVQW.cjs +17 -0
  107. package/build/cjs/chunk-UAKUGVQW.cjs.map +1 -0
  108. package/build/cjs/chunk-UQGEGHHQ.cjs +34 -0
  109. package/build/cjs/chunk-UQGEGHHQ.cjs.map +1 -0
  110. package/build/cjs/chunk-VLADVYGE.cjs +13 -0
  111. package/build/cjs/chunk-VLADVYGE.cjs.map +1 -0
  112. package/build/cjs/chunk-VYLMJUGV.cjs +17 -0
  113. package/build/cjs/chunk-VYLMJUGV.cjs.map +1 -0
  114. package/build/cjs/chunk-VZ2OSX6A.cjs +11 -0
  115. package/build/cjs/chunk-VZ2OSX6A.cjs.map +1 -0
  116. package/build/cjs/chunk-XE7JD6LH.cjs +13 -0
  117. package/build/cjs/chunk-XE7JD6LH.cjs.map +1 -0
  118. package/build/cjs/chunk-XQHT3TQO.cjs +11 -0
  119. package/build/cjs/chunk-XQHT3TQO.cjs.map +1 -0
  120. package/build/cjs/chunk-YE6XEEAZ.cjs +11 -0
  121. package/build/cjs/chunk-YE6XEEAZ.cjs.map +1 -0
  122. package/build/cjs/filter-list-CraygbR8.d.cts +976 -0
  123. package/build/cjs/public/action-form.cjs +27 -0
  124. package/build/cjs/public/action-form.cjs.map +1 -0
  125. package/build/cjs/public/action-form.css +1668 -0
  126. package/build/cjs/public/action-form.css.map +1 -0
  127. package/build/cjs/public/action-form.d.cts +3 -0
  128. package/build/cjs/public/document-viewer.cjs +28 -0
  129. package/build/cjs/public/document-viewer.cjs.map +1 -0
  130. package/build/cjs/public/document-viewer.css +914 -0
  131. package/build/cjs/public/document-viewer.css.map +1 -0
  132. package/build/cjs/public/document-viewer.d.cts +57 -0
  133. package/build/cjs/public/email-viewer.cjs +20 -0
  134. package/build/cjs/public/email-viewer.cjs.map +1 -0
  135. package/build/cjs/public/email-viewer.css +81 -0
  136. package/build/cjs/public/email-viewer.css.map +1 -0
  137. package/build/cjs/public/email-viewer.d.cts +37 -0
  138. package/build/cjs/public/experimental/action-form.cjs +7 -6
  139. package/build/cjs/public/experimental/action-form.d.cts +58 -787
  140. package/build/cjs/public/experimental/cbac-picker.cjs +12 -12
  141. package/build/cjs/public/experimental/document-viewer.cjs +10 -9
  142. package/build/cjs/public/experimental/document-viewer.d.cts +14 -53
  143. package/build/cjs/public/experimental/email-viewer.cjs +8 -7
  144. package/build/cjs/public/experimental/email-viewer.d.cts +14 -33
  145. package/build/cjs/public/experimental/filter-list.cjs +17 -16
  146. package/build/cjs/public/experimental/filter-list.d.cts +59 -973
  147. package/build/cjs/public/experimental/image-viewer.cjs +8 -7
  148. package/build/cjs/public/experimental/image-viewer.d.cts +11 -7
  149. package/build/cjs/public/experimental/markdown-renderer.cjs +11 -10
  150. package/build/cjs/public/experimental/markdown-renderer.d.cts +13 -20
  151. package/build/cjs/public/experimental/object-table.cjs +28 -27
  152. package/build/cjs/public/experimental/object-table.d.cts +148 -1228
  153. package/build/cjs/public/experimental/pdf-viewer.cjs +38 -37
  154. package/build/cjs/public/experimental/pdf-viewer.d.cts +115 -344
  155. package/build/cjs/public/experimental/spreadsheet-viewer.cjs +8 -7
  156. package/build/cjs/public/experimental/spreadsheet-viewer.d.cts +14 -30
  157. package/build/cjs/public/experimental/tiff-renderer.cjs +11 -10
  158. package/build/cjs/public/experimental/tiff-renderer.d.cts +14 -10
  159. package/build/cjs/public/experimental/video-viewer.cjs +8 -7
  160. package/build/cjs/public/experimental/video-viewer.d.cts +11 -7
  161. package/build/cjs/public/experimental/xml-viewer.cjs +8 -7
  162. package/build/cjs/public/experimental/xml-viewer.d.cts +11 -19
  163. package/build/cjs/public/experimental.cjs +221 -209
  164. package/build/cjs/public/experimental.d.cts +21 -9
  165. package/build/cjs/public/filter-list.cjs +71 -0
  166. package/build/cjs/public/filter-list.cjs.map +1 -0
  167. package/build/cjs/public/filter-list.css +2414 -0
  168. package/build/cjs/public/filter-list.css.map +1 -0
  169. package/build/cjs/public/filter-list.d.cts +3 -0
  170. package/build/cjs/public/image-viewer.cjs +20 -0
  171. package/build/cjs/public/image-viewer.cjs.map +1 -0
  172. package/build/cjs/public/image-viewer.css +30 -0
  173. package/build/cjs/public/image-viewer.css.map +1 -0
  174. package/build/cjs/public/image-viewer.d.cts +11 -0
  175. package/build/cjs/public/markdown-viewer.cjs +20 -0
  176. package/build/cjs/public/markdown-viewer.cjs.map +1 -0
  177. package/build/cjs/public/markdown-viewer.css +117 -0
  178. package/build/cjs/public/markdown-viewer.css.map +1 -0
  179. package/build/cjs/public/markdown-viewer.d.cts +21 -0
  180. package/build/cjs/public/object-table.cjs +101 -0
  181. package/build/cjs/public/object-table.cjs.map +1 -0
  182. package/build/cjs/public/object-table.css +2201 -0
  183. package/build/cjs/public/object-table.css.map +1 -0
  184. package/build/cjs/public/object-table.d.cts +1231 -0
  185. package/build/cjs/public/pdf-viewer.cjs +99 -0
  186. package/build/cjs/public/pdf-viewer.cjs.map +1 -0
  187. package/build/cjs/public/pdf-viewer.css +442 -0
  188. package/build/cjs/public/pdf-viewer.css.map +1 -0
  189. package/build/cjs/public/pdf-viewer.d.cts +360 -0
  190. package/build/cjs/public/primitives.cjs +1 -1
  191. package/build/cjs/public/spreadsheet-viewer.cjs +20 -0
  192. package/build/cjs/public/spreadsheet-viewer.cjs.map +1 -0
  193. package/build/cjs/public/spreadsheet-viewer.css +122 -0
  194. package/build/cjs/public/spreadsheet-viewer.css.map +1 -0
  195. package/build/cjs/public/spreadsheet-viewer.d.cts +34 -0
  196. package/build/cjs/public/tiff-viewer.cjs +20 -0
  197. package/build/cjs/public/tiff-viewer.cjs.map +1 -0
  198. package/build/cjs/public/tiff-viewer.css +23 -0
  199. package/build/cjs/public/tiff-viewer.css.map +1 -0
  200. package/build/cjs/public/tiff-viewer.d.cts +11 -0
  201. package/build/cjs/public/video-viewer.cjs +20 -0
  202. package/build/cjs/public/video-viewer.cjs.map +1 -0
  203. package/build/cjs/public/video-viewer.css +29 -0
  204. package/build/cjs/public/video-viewer.css.map +1 -0
  205. package/build/cjs/public/video-viewer.d.cts +11 -0
  206. package/build/cjs/public/xml-viewer.cjs +20 -0
  207. package/build/cjs/public/xml-viewer.cjs.map +1 -0
  208. package/build/cjs/public/xml-viewer.css +38 -0
  209. package/build/cjs/public/xml-viewer.css.map +1 -0
  210. package/build/cjs/public/xml-viewer.d.cts +22 -0
  211. package/build/esm/pdf-viewer/BasePdfViewer.js +12 -8
  212. package/build/esm/pdf-viewer/BasePdfViewer.js.map +1 -1
  213. package/build/esm/pdf-viewer/PdfViewerApi.js.map +1 -1
  214. package/build/esm/pdf-viewer/PdfViewerContext.js +4 -0
  215. package/build/esm/pdf-viewer/PdfViewerContext.js.map +1 -1
  216. package/build/esm/pdf-viewer/components/PdfViewerContent.js +6 -2
  217. package/build/esm/pdf-viewer/components/PdfViewerContent.js.map +1 -1
  218. package/build/esm/pdf-viewer/hooks/usePdfViewerCore.js +10 -4
  219. package/build/esm/pdf-viewer/hooks/usePdfViewerCore.js.map +1 -1
  220. package/build/esm/pdf-viewer/hooks/usePdfViewerState.js +9 -1
  221. package/build/esm/pdf-viewer/hooks/usePdfViewerState.js.map +1 -1
  222. package/build/esm/public/action-form.js +21 -0
  223. package/build/esm/public/action-form.js.map +1 -0
  224. package/build/esm/public/document-viewer.js +22 -0
  225. package/build/esm/public/document-viewer.js.map +1 -0
  226. package/build/esm/public/email-viewer.js +23 -0
  227. package/build/esm/public/email-viewer.js.map +1 -0
  228. package/build/esm/public/experimental/action-form.js +60 -5
  229. package/build/esm/public/experimental/action-form.js.map +1 -1
  230. package/build/esm/public/experimental/document-viewer.js +11 -5
  231. package/build/esm/public/experimental/document-viewer.js.map +1 -1
  232. package/build/esm/public/experimental/email-viewer.js +15 -6
  233. package/build/esm/public/experimental/email-viewer.js.map +1 -1
  234. package/build/esm/public/experimental/filter-list.js +71 -14
  235. package/build/esm/public/experimental/filter-list.js.map +1 -1
  236. package/build/esm/public/experimental/image-viewer.js +11 -6
  237. package/build/esm/public/experimental/image-viewer.js.map +1 -1
  238. package/build/esm/public/experimental/markdown-renderer.js +11 -17
  239. package/build/esm/public/experimental/markdown-renderer.js.map +1 -1
  240. package/build/esm/public/experimental/object-table.js +152 -37
  241. package/build/esm/public/experimental/object-table.js.map +1 -1
  242. package/build/esm/public/experimental/pdf-viewer.js +134 -34
  243. package/build/esm/public/experimental/pdf-viewer.js.map +1 -1
  244. package/build/esm/public/experimental/spreadsheet-viewer.js +15 -6
  245. package/build/esm/public/experimental/spreadsheet-viewer.js.map +1 -1
  246. package/build/esm/public/experimental/tiff-renderer.js +11 -17
  247. package/build/esm/public/experimental/tiff-renderer.js.map +1 -1
  248. package/build/esm/public/experimental/video-viewer.js +11 -6
  249. package/build/esm/public/experimental/video-viewer.js.map +1 -1
  250. package/build/esm/public/experimental/xml-viewer.js +11 -6
  251. package/build/esm/public/experimental/xml-viewer.js.map +1 -1
  252. package/build/esm/public/filter-list.js +30 -0
  253. package/build/esm/public/filter-list.js.map +1 -0
  254. package/build/esm/public/image-viewer.js +23 -0
  255. package/build/esm/public/image-viewer.js.map +1 -0
  256. package/build/esm/public/markdown-viewer.js +24 -0
  257. package/build/esm/public/markdown-viewer.js.map +1 -0
  258. package/build/esm/public/object-table.js +65 -0
  259. package/build/esm/public/object-table.js.map +1 -0
  260. package/build/esm/public/pdf-viewer.js +50 -0
  261. package/build/esm/public/pdf-viewer.js.map +1 -0
  262. package/build/esm/public/spreadsheet-viewer.js +23 -0
  263. package/build/esm/public/spreadsheet-viewer.js.map +1 -0
  264. package/build/esm/public/tiff-viewer.js +24 -0
  265. package/build/esm/public/tiff-viewer.js.map +1 -0
  266. package/build/esm/public/video-viewer.js +23 -0
  267. package/build/esm/public/video-viewer.js.map +1 -0
  268. package/build/esm/public/xml-viewer.js +23 -0
  269. package/build/esm/public/xml-viewer.js.map +1 -0
  270. package/build/esm/util/UserAgent.js +1 -1
  271. package/build/esm/util/UserAgent.js.map +1 -1
  272. package/build/types/pdf-viewer/PdfViewerApi.d.ts +9 -1
  273. package/build/types/pdf-viewer/PdfViewerApi.d.ts.map +1 -1
  274. package/build/types/pdf-viewer/components/PdfViewerContent.d.ts +5 -1
  275. package/build/types/pdf-viewer/components/PdfViewerContent.d.ts.map +1 -1
  276. package/build/types/pdf-viewer/hooks/usePdfViewerCore.d.ts +7 -1
  277. package/build/types/pdf-viewer/hooks/usePdfViewerCore.d.ts.map +1 -1
  278. package/build/types/pdf-viewer/hooks/usePdfViewerState.d.ts +3 -1
  279. package/build/types/pdf-viewer/hooks/usePdfViewerState.d.ts.map +1 -1
  280. package/build/types/public/action-form.d.ts +5 -0
  281. package/build/types/public/action-form.d.ts.map +1 -0
  282. package/build/types/public/document-viewer.d.ts +4 -0
  283. package/build/types/public/document-viewer.d.ts.map +1 -0
  284. package/build/types/public/email-viewer.d.ts +4 -0
  285. package/build/types/public/email-viewer.d.ts.map +1 -0
  286. package/build/types/public/experimental/action-form.d.ts +68 -5
  287. package/build/types/public/experimental/action-form.d.ts.map +1 -1
  288. package/build/types/public/experimental/document-viewer.d.ts +9 -4
  289. package/build/types/public/experimental/document-viewer.d.ts.map +1 -1
  290. package/build/types/public/experimental/email-viewer.d.ts +13 -4
  291. package/build/types/public/experimental/email-viewer.d.ts.map +1 -1
  292. package/build/types/public/experimental/filter-list.d.ts +63 -19
  293. package/build/types/public/experimental/filter-list.d.ts.map +1 -1
  294. package/build/types/public/experimental/image-viewer.d.ts +9 -4
  295. package/build/types/public/experimental/image-viewer.d.ts.map +1 -1
  296. package/build/types/public/experimental/markdown-renderer.d.ts +12 -9
  297. package/build/types/public/experimental/markdown-renderer.d.ts.map +1 -1
  298. package/build/types/public/experimental/object-table.d.ts +235 -29
  299. package/build/types/public/experimental/object-table.d.ts.map +1 -1
  300. package/build/types/public/experimental/pdf-viewer.d.ts +111 -25
  301. package/build/types/public/experimental/pdf-viewer.d.ts.map +1 -1
  302. package/build/types/public/experimental/spreadsheet-viewer.d.ts +13 -4
  303. package/build/types/public/experimental/spreadsheet-viewer.d.ts.map +1 -1
  304. package/build/types/public/experimental/tiff-renderer.d.ts +12 -9
  305. package/build/types/public/experimental/tiff-renderer.d.ts.map +1 -1
  306. package/build/types/public/experimental/video-viewer.d.ts +9 -4
  307. package/build/types/public/experimental/video-viewer.d.ts.map +1 -1
  308. package/build/types/public/experimental/xml-viewer.d.ts +9 -4
  309. package/build/types/public/experimental/xml-viewer.d.ts.map +1 -1
  310. package/build/types/public/filter-list.d.ts +19 -0
  311. package/build/types/public/filter-list.d.ts.map +1 -0
  312. package/build/types/public/image-viewer.d.ts +4 -0
  313. package/build/types/public/image-viewer.d.ts.map +1 -0
  314. package/build/types/public/markdown-viewer.d.ts +4 -0
  315. package/build/types/public/markdown-viewer.d.ts.map +1 -0
  316. package/build/types/public/object-table.d.ts +29 -0
  317. package/build/types/public/object-table.d.ts.map +1 -0
  318. package/build/types/public/pdf-viewer.d.ts +25 -0
  319. package/build/types/public/pdf-viewer.d.ts.map +1 -0
  320. package/build/types/public/spreadsheet-viewer.d.ts +4 -0
  321. package/build/types/public/spreadsheet-viewer.d.ts.map +1 -0
  322. package/build/types/public/tiff-viewer.d.ts +4 -0
  323. package/build/types/public/tiff-viewer.d.ts.map +1 -0
  324. package/build/types/public/video-viewer.d.ts +4 -0
  325. package/build/types/public/video-viewer.d.ts.map +1 -0
  326. package/build/types/public/xml-viewer.d.ts +4 -0
  327. package/build/types/public/xml-viewer.d.ts.map +1 -0
  328. package/docs/ActionForm.md +3 -3
  329. package/docs/ActionFormOverview.md +3 -3
  330. package/docs/DocumentViewer.md +3 -3
  331. package/docs/DocumentViewerOverview.md +8 -8
  332. package/docs/EmailViewer.md +3 -3
  333. package/docs/FilterList.md +6 -6
  334. package/docs/FilterListOverview.md +3 -3
  335. package/docs/GettingStarted.md +1 -1
  336. package/docs/ImageViewer.md +3 -3
  337. package/docs/MarkdownViewer.md +3 -3
  338. package/docs/ObjectTable.md +23 -23
  339. package/docs/ObjectTableOverview.md +3 -3
  340. package/docs/PdfViewer.md +16 -19
  341. package/docs/SpreadsheetViewer.md +3 -3
  342. package/docs/TiffViewer.md +3 -6
  343. package/docs/VideoViewer.md +3 -3
  344. package/docs/Welcome.md +2 -2
  345. package/docs/XmlViewer.md +3 -6
  346. package/document-viewer.d.ts +17 -0
  347. package/email-viewer.d.ts +17 -0
  348. package/filter-list.d.ts +17 -0
  349. package/image-viewer.d.ts +17 -0
  350. package/markdown-viewer.d.ts +17 -0
  351. package/object-table.d.ts +17 -0
  352. package/package.json +116 -8
  353. package/pdf-viewer.d.ts +17 -0
  354. package/spreadsheet-viewer.d.ts +17 -0
  355. package/tiff-viewer.d.ts +17 -0
  356. package/video-viewer.d.ts +17 -0
  357. package/xml-viewer.d.ts +17 -0
  358. package/build/cjs/chunk-2UJNMXVL.cjs +0 -15
  359. package/build/cjs/chunk-2UJNMXVL.cjs.map +0 -1
  360. package/build/cjs/chunk-4F5VJN66.cjs +0 -11
  361. package/build/cjs/chunk-4F5VJN66.cjs.map +0 -1
  362. package/build/cjs/chunk-6RCVPIW5.cjs.map +0 -1
  363. package/build/cjs/chunk-A5ZKDZH4.cjs +0 -11
  364. package/build/cjs/chunk-A5ZKDZH4.cjs.map +0 -1
  365. package/build/cjs/chunk-ABT6IGXN.cjs.map +0 -1
  366. package/build/cjs/chunk-BBXX42YT.cjs.map +0 -1
  367. package/build/cjs/chunk-CR5S7BJM.cjs +0 -11
  368. package/build/cjs/chunk-CR5S7BJM.cjs.map +0 -1
  369. package/build/cjs/chunk-DJNKQI5C.cjs.map +0 -1
  370. package/build/cjs/chunk-HVJTECCC.cjs.map +0 -1
  371. package/build/cjs/chunk-JDKKKXMF.cjs +0 -15
  372. package/build/cjs/chunk-JDKKKXMF.cjs.map +0 -1
  373. package/build/cjs/chunk-JHKAQXRZ.cjs.map +0 -1
  374. package/build/cjs/chunk-RDJK72SG.cjs.map +0 -1
  375. package/build/cjs/chunk-S4DLEUUJ.cjs +0 -11
  376. package/build/cjs/chunk-S4DLEUUJ.cjs.map +0 -1
  377. package/build/cjs/chunk-ULVTAKJF.cjs +0 -11
  378. package/build/cjs/chunk-ULVTAKJF.cjs.map +0 -1
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ var chunkRZOLA2GI_cjs = require('./chunk-RZOLA2GI.cjs');
4
+
5
+ // src/public/experimental/object-table.ts
6
+ var ObjectTable2 = chunkRZOLA2GI_cjs.ObjectTable;
7
+ var BaseTable2 = chunkRZOLA2GI_cjs.BaseTable;
8
+ var ColumnConfigDialog2 = chunkRZOLA2GI_cjs.ColumnConfigDialog;
9
+ var MultiColumnSortDialog2 = chunkRZOLA2GI_cjs.MultiColumnSortDialog;
10
+ var LoadingCell2 = chunkRZOLA2GI_cjs.LoadingCell;
11
+ var LoadingCellContent2 = chunkRZOLA2GI_cjs.LoadingCellContent;
12
+ var useFunctionColumnsData2 = chunkRZOLA2GI_cjs.useFunctionColumnsData;
13
+ var useObjectTableData2 = chunkRZOLA2GI_cjs.useObjectTableData;
14
+ var useColumnDefs2 = chunkRZOLA2GI_cjs.useColumnDefs;
15
+ var useSelectionColumn2 = chunkRZOLA2GI_cjs.useSelectionColumn;
16
+ var useColumnPinning2 = chunkRZOLA2GI_cjs.useColumnPinning;
17
+ var useColumnResize2 = chunkRZOLA2GI_cjs.useColumnResize;
18
+ var useColumnVisibility2 = chunkRZOLA2GI_cjs.useColumnVisibility;
19
+ var useFocusedRow2 = chunkRZOLA2GI_cjs.useFocusedRow;
20
+ var useLoadedObjectsChanged2 = chunkRZOLA2GI_cjs.useLoadedObjectsChanged;
21
+ var useRowSelection2 = chunkRZOLA2GI_cjs.useRowSelection;
22
+ var useTableSorting2 = chunkRZOLA2GI_cjs.useTableSorting;
23
+ var useEditableTable2 = chunkRZOLA2GI_cjs.useEditableTable;
24
+ var useObjectTableSnapshot2 = chunkRZOLA2GI_cjs.useObjectTableSnapshot;
25
+ var useCellContextMenu2 = chunkRZOLA2GI_cjs.useCellContextMenu;
26
+
27
+ exports.BaseTable = BaseTable2;
28
+ exports.ColumnConfigDialog = ColumnConfigDialog2;
29
+ exports.LoadingCell = LoadingCell2;
30
+ exports.LoadingCellContent = LoadingCellContent2;
31
+ exports.MultiColumnSortDialog = MultiColumnSortDialog2;
32
+ exports.ObjectTable = ObjectTable2;
33
+ exports.useCellContextMenu = useCellContextMenu2;
34
+ exports.useColumnDefs = useColumnDefs2;
35
+ exports.useColumnPinning = useColumnPinning2;
36
+ exports.useColumnResize = useColumnResize2;
37
+ exports.useColumnVisibility = useColumnVisibility2;
38
+ exports.useEditableTable = useEditableTable2;
39
+ exports.useFocusedRow = useFocusedRow2;
40
+ exports.useFunctionColumnsData = useFunctionColumnsData2;
41
+ exports.useLoadedObjectsChanged = useLoadedObjectsChanged2;
42
+ exports.useObjectTableData = useObjectTableData2;
43
+ exports.useObjectTableSnapshot = useObjectTableSnapshot2;
44
+ exports.useRowSelection = useRowSelection2;
45
+ exports.useSelectionColumn = useSelectionColumn2;
46
+ exports.useTableSorting = useTableSorting2;
47
+ //# sourceMappingURL=chunk-A3GEXM7R.cjs.map
48
+ //# sourceMappingURL=chunk-A3GEXM7R.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/experimental/object-table.ts"],"names":["ObjectTable","BaseTable","ColumnConfigDialog","MultiColumnSortDialog","LoadingCell","LoadingCellContent","useFunctionColumnsData","useObjectTableData","useColumnDefs","useSelectionColumn","useColumnPinning","useColumnResize","useColumnVisibility","useFocusedRow","useLoadedObjectsChanged","useRowSelection","useTableSorting","useEditableTable","useObjectTableSnapshot","useCellContextMenu"],"mappings":";;;;;AAmBO,IAAMA,YAAAA,GAAqBA;AAmC3B,IAAMC,UAAAA,GAAmBA;AAGzB,IAAMC,mBAAAA,GAA4BA;AAOlC,IAAMC,sBAAAA,GAA+BA;AAOrC,IAAMC,YAAAA,GAAqBA;AAG3B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,uBAAAA,GAAgCA;AAKtC,IAAMC,mBAAAA,GAA4BA;AAOlC,IAAMC,cAAAA,GAAuBA;AAK7B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,gBAAAA,GAAyBA;AAO/B,IAAMC,oBAAAA,GAA6BA;AAOnC,IAAMC,cAAAA,GAAuBA;AAO7B,IAAMC,wBAAAA,GAAiCA;AAKvC,IAAMC,gBAAAA,GAAyBA;AAS/B,IAAMC,gBAAAA,GAAyBA;AAO/B,IAAMC,iBAAAA,GAA0BA;AAKhC,IAAMC,uBAAAA,GAAgCA;AAKtC,IAAMC,mBAAAA,GAA4BA","file":"chunk-A3GEXM7R.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Stable from \"../object-table.js\";\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const ObjectTable = Stable.ObjectTable;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const BaseTable = Stable.BaseTable;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const ColumnConfigDialog = Stable.ColumnConfigDialog;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const MultiColumnSortDialog = Stable.MultiColumnSortDialog;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const LoadingCell = Stable.LoadingCell;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const LoadingCellContent = Stable.LoadingCellContent;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useFunctionColumnsData = Stable.useFunctionColumnsData;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useObjectTableData = Stable.useObjectTableData;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnDefs = Stable.useColumnDefs;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useSelectionColumn = Stable.useSelectionColumn;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnPinning = Stable.useColumnPinning;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnResize = Stable.useColumnResize;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnVisibility = Stable.useColumnVisibility;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useFocusedRow = Stable.useFocusedRow;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useLoadedObjectsChanged = Stable.useLoadedObjectsChanged;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useRowSelection = Stable.useRowSelection;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useTableSorting = Stable.useTableSorting;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useEditableTable = Stable.useEditableTable;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useObjectTableSnapshot = Stable.useObjectTableSnapshot;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useCellContextMenu = Stable.useCellContextMenu;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkDTYFQRFD_cjs = require('./chunk-DTYFQRFD.cjs');
4
+ var chunkU7FYMS5T_cjs = require('./chunk-U7FYMS5T.cjs');
5
+
6
+ // src/public/tiff-viewer.ts
7
+ var TiffViewer2 = chunkU7FYMS5T_cjs.withOsdkMetrics(chunkDTYFQRFD_cjs.TiffViewer, "TiffViewer");
8
+
9
+ exports.TiffViewer = TiffViewer2;
10
+ //# sourceMappingURL=chunk-AWSDHTVF.cjs.map
11
+ //# sourceMappingURL=chunk-AWSDHTVF.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/tiff-viewer.ts"],"names":["TiffViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,WAAAA,GAAaC,iCAAA,CAAgBD,4BAAA,EAAa,YAAY","file":"chunk-AWSDHTVF.cjs","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TiffViewer as _TiffViewer } from \"../images/tiff-viewer/TiffViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseTiffViewer\nexport { BaseTiffViewer } from \"../images/tiff-viewer/BaseTiffViewer.js\";\n// TiffViewer (Media wrapper)\nexport const TiffViewer = withOsdkMetrics(_TiffViewer, \"TiffViewer\");"]}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkRPEXVMQG_cjs = require('./chunk-RPEXVMQG.cjs');
4
+
5
+ // src/public/experimental/action-form.ts
6
+ var ActionForm2 = chunkRPEXVMQG_cjs.ActionForm;
7
+ var BaseForm2 = chunkRPEXVMQG_cjs.BaseForm;
8
+
9
+ exports.ActionForm = ActionForm2;
10
+ exports.BaseForm = BaseForm2;
11
+ //# sourceMappingURL=chunk-BPRRM7TQ.cjs.map
12
+ //# sourceMappingURL=chunk-BPRRM7TQ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/experimental/action-form.ts"],"names":["ActionForm","BaseForm"],"mappings":";;;;;AAmBO,IAAMA,WAAAA,GAAoBA;AAe1B,IAAMC,SAAAA,GAAkBA","file":"chunk-BPRRM7TQ.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Stable from \"../action-form.js\";\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\nexport const ActionForm = Stable.ActionForm;\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\nexport const BaseForm = Stable.BaseForm;\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */\n\n/** @deprecated Import from `@osdk/react-components/action-form` instead. */"]}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkL4PLQPV2_cjs = require('./chunk-L4PLQPV2.cjs');
4
+
5
+ // src/public/experimental/document-viewer.ts
6
+ var DocumentViewer2 = chunkL4PLQPV2_cjs.DocumentViewer;
7
+ var ViewerType2 = chunkL4PLQPV2_cjs.ViewerType;
8
+
9
+ exports.DocumentViewer = DocumentViewer2;
10
+ exports.ViewerType = ViewerType2;
11
+ //# sourceMappingURL=chunk-DZLFOD3V.cjs.map
12
+ //# sourceMappingURL=chunk-DZLFOD3V.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/experimental/document-viewer.ts"],"names":["DocumentViewer","ViewerType"],"mappings":";;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAK9B,IAAMC,WAAAA,GAAoBA","file":"chunk-DZLFOD3V.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Stable from \"../document-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\nexport const DocumentViewer = Stable.DocumentViewer;\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\nexport const ViewerType = Stable.ViewerType;\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkHVJTECCC_cjs = require('./chunk-HVJTECCC.cjs');
4
- var chunk6RCVPIW5_cjs = require('./chunk-6RCVPIW5.cjs');
3
+ var chunk4KHF42ZL_cjs = require('./chunk-4KHF42ZL.cjs');
4
+ var chunkU7FYMS5T_cjs = require('./chunk-U7FYMS5T.cjs');
5
5
  var icons = require('@blueprintjs/icons');
6
6
  var classnames = require('classnames');
7
7
  require('pdfjs-dist/web/pdf_viewer.css');
@@ -14,23 +14,27 @@ var React__default = /*#__PURE__*/_interopDefault(React);
14
14
 
15
15
  function PdfViewerContent({
16
16
  src,
17
- annotations = chunkHVJTECCC_cjs.EMPTY_ANNOTATION_ARRAY,
17
+ annotations = chunk4KHF42ZL_cjs.EMPTY_ANNOTATION_ARRAY,
18
18
  onAnnotationClick,
19
- initialPage = 1,
20
- initialScale = 1,
19
+ defaultPage,
20
+ initialPage,
21
+ defaultScale,
22
+ initialScale,
21
23
  onPageChange: onPageChangeProp,
22
24
  onScaleChange: onScaleChangeProp,
23
25
  formData,
24
26
  onFormChange,
25
27
  className
26
28
  }) {
27
- const viewer = chunkHVJTECCC_cjs.usePdfViewerCore({
29
+ const viewer = chunk4KHF42ZL_cjs.usePdfViewerCore({
28
30
  src,
31
+ defaultPage,
29
32
  initialPage,
33
+ defaultScale,
30
34
  initialScale
31
35
  });
32
- const annotationsByPage = chunkHVJTECCC_cjs.usePdfAnnotationsByPage(annotations);
33
- chunkHVJTECCC_cjs.usePdfFormFields({
36
+ const annotationsByPage = chunk4KHF42ZL_cjs.usePdfAnnotationsByPage(annotations);
37
+ chunk4KHF42ZL_cjs.usePdfFormFields({
34
38
  pdfViewerRef: viewer.pdfViewerRef,
35
39
  eventBusRef: viewer.eventBusRef,
36
40
  document: viewer.document,
@@ -57,48 +61,48 @@ function PdfViewerContent({
57
61
  React.useEffect(function clearInitialMount() {
58
62
  isInitialMountRef.current = false;
59
63
  }, []);
60
- const rootClassName = classnames__default.default(chunkHVJTECCC_cjs.BasePdfViewer_default.pdfViewer, className);
64
+ const rootClassName = classnames__default.default(chunk4KHF42ZL_cjs.BasePdfViewer_default.pdfViewer, className);
61
65
  if (viewer.loading) {
62
66
  return /* @__PURE__ */ React__default.default.createElement("div", {
63
67
  className: rootClassName
64
68
  }, /* @__PURE__ */ React__default.default.createElement("div", {
65
- className: chunkHVJTECCC_cjs.BasePdfViewer_default.loadingContainer
69
+ className: chunk4KHF42ZL_cjs.BasePdfViewer_default.loadingContainer
66
70
  }, /* @__PURE__ */ React__default.default.createElement(icons.Spin, {
67
- className: chunkHVJTECCC_cjs.BasePdfViewer_default.spinnerIcon
71
+ className: chunk4KHF42ZL_cjs.BasePdfViewer_default.spinnerIcon
68
72
  }), "Loading\u2026"));
69
73
  }
70
74
  if (viewer.error != null) {
71
75
  return /* @__PURE__ */ React__default.default.createElement("div", {
72
76
  className: rootClassName
73
77
  }, /* @__PURE__ */ React__default.default.createElement("div", {
74
- className: chunkHVJTECCC_cjs.BasePdfViewer_default.errorContainer
78
+ className: chunk4KHF42ZL_cjs.BasePdfViewer_default.errorContainer
75
79
  }, /* @__PURE__ */ React__default.default.createElement(icons.Error, {
76
- className: chunkHVJTECCC_cjs.BasePdfViewer_default.errorIcon
80
+ className: chunk4KHF42ZL_cjs.BasePdfViewer_default.errorIcon
77
81
  }), "Failed to load PDF: ", viewer.error.message));
78
82
  }
79
83
  if (viewer.document == null) {
80
84
  return /* @__PURE__ */ React__default.default.createElement("div", {
81
85
  className: rootClassName
82
86
  }, /* @__PURE__ */ React__default.default.createElement("div", {
83
- className: chunkHVJTECCC_cjs.BasePdfViewer_default.loadingContainer
87
+ className: chunk4KHF42ZL_cjs.BasePdfViewer_default.loadingContainer
84
88
  }, "No document"));
85
89
  }
86
90
  return /* @__PURE__ */ React__default.default.createElement("div", {
87
91
  className: rootClassName
88
92
  }, /* @__PURE__ */ React__default.default.createElement("div", {
89
- className: chunkHVJTECCC_cjs.BasePdfViewer_default.scrollContainerWrapper
93
+ className: chunk4KHF42ZL_cjs.BasePdfViewer_default.scrollContainerWrapper
90
94
  }, /* @__PURE__ */ React__default.default.createElement("div", {
91
95
  ref: viewer.containerRef,
92
- className: chunkHVJTECCC_cjs.BasePdfViewer_default.scrollContainer
96
+ className: chunk4KHF42ZL_cjs.BasePdfViewer_default.scrollContainer
93
97
  }, /* @__PURE__ */ React__default.default.createElement("div", {
94
98
  ref: viewer.viewerRef,
95
99
  className: "pdfViewer"
96
100
  }), viewer.portalTargets.map((target) => {
97
- const pageAnnotations = annotationsByPage[target.pageNumber] ?? chunkHVJTECCC_cjs.EMPTY_ANNOTATION_ARRAY;
101
+ const pageAnnotations = annotationsByPage[target.pageNumber] ?? chunk4KHF42ZL_cjs.EMPTY_ANNOTATION_ARRAY;
98
102
  if (pageAnnotations.length === 0) {
99
103
  return null;
100
104
  }
101
- return /* @__PURE__ */ React__default.default.createElement(chunkHVJTECCC_cjs.PdfAnnotationOverlay, {
105
+ return /* @__PURE__ */ React__default.default.createElement(chunk4KHF42ZL_cjs.PdfAnnotationOverlay, {
102
106
  key: target.pageNumber,
103
107
  target,
104
108
  annotations: pageAnnotations,
@@ -123,11 +127,15 @@ function usePdfViewerContext() {
123
127
  return ctx;
124
128
  }
125
129
  function usePdfViewerInstance(options) {
126
- const viewer = chunkHVJTECCC_cjs.usePdfViewerState({
130
+ const viewer = chunk4KHF42ZL_cjs.usePdfViewerState({
127
131
  src: options.src,
132
+ defaultPage: options.defaultPage,
128
133
  initialPage: options.initialPage,
134
+ defaultScale: options.defaultScale,
129
135
  initialScale: options.initialScale,
136
+ defaultAutoSize: options.defaultAutoSize,
130
137
  initialAutoSize: options.initialAutoSize,
138
+ defaultSidebarOpen: options.defaultSidebarOpen,
131
139
  initialSidebarOpen: options.initialSidebarOpen,
132
140
  sidebarMode: options.sidebarMode,
133
141
  onDownload: options.onDownload
@@ -135,7 +143,7 @@ function usePdfViewerInstance(options) {
135
143
  const {
136
144
  highlightModeActive,
137
145
  toggleHighlightMode
138
- } = chunkHVJTECCC_cjs.usePdfHighlightMode({
146
+ } = chunk4KHF42ZL_cjs.usePdfHighlightMode({
139
147
  pdfViewerRef: viewer.pdfViewerRef,
140
148
  document: viewer.document,
141
149
  enabled: options.enableHighlight ?? options.highlightEnabled ?? false,
@@ -145,7 +153,7 @@ function usePdfViewerInstance(options) {
145
153
  const {
146
154
  hasFormFields,
147
155
  submitFormData
148
- } = chunkHVJTECCC_cjs.usePdfFormFields({
156
+ } = chunk4KHF42ZL_cjs.usePdfFormFields({
149
157
  pdfViewerRef: viewer.pdfViewerRef,
150
158
  eventBusRef: viewer.eventBusRef,
151
159
  document: viewer.document,
@@ -153,8 +161,8 @@ function usePdfViewerInstance(options) {
153
161
  onFormSubmit: options.onFormSubmit,
154
162
  onFormChange: options.onFormChange
155
163
  });
156
- const annotations = options.annotations ?? chunkHVJTECCC_cjs.EMPTY_ANNOTATION_ARRAY;
157
- const annotationsByPage = chunkHVJTECCC_cjs.usePdfAnnotationsByPage(annotations);
164
+ const annotations = options.annotations ?? chunk4KHF42ZL_cjs.EMPTY_ANNOTATION_ARRAY;
165
+ const annotationsByPage = chunk4KHF42ZL_cjs.usePdfAnnotationsByPage(annotations);
158
166
  const highlightEnabled = options.enableHighlight ?? options.highlightEnabled ?? false;
159
167
  const enableDownload = options.enableDownload ?? false;
160
168
  const enableFormSave = options.onFormSubmit != null && hasFormFields;
@@ -178,13 +186,13 @@ function usePdfViewerInstance(options) {
178
186
  }), [viewer, highlightEnabled, highlightModeActive, toggleHighlightMode, hasFormFields, submitFormData, annotations, annotationsByPage, onAnnotationClick, enableDownload, enableFormSave, outlineIcons]);
179
187
  }
180
188
 
181
- // src/public/experimental/pdf-viewer.ts
182
- var PdfViewer2 = chunk6RCVPIW5_cjs.withOsdkMetrics(chunkHVJTECCC_cjs.PdfViewer, "PdfViewer");
189
+ // src/public/pdf-viewer.ts
190
+ var PdfViewer2 = chunkU7FYMS5T_cjs.withOsdkMetrics(chunk4KHF42ZL_cjs.PdfViewer, "PdfViewer");
183
191
 
184
192
  exports.PdfViewer = PdfViewer2;
185
193
  exports.PdfViewerContent = PdfViewerContent;
186
194
  exports.PdfViewerProvider = PdfViewerProvider;
187
195
  exports.usePdfViewerContext = usePdfViewerContext;
188
196
  exports.usePdfViewerInstance = usePdfViewerInstance;
189
- //# sourceMappingURL=chunk-DJNKQI5C.cjs.map
190
- //# sourceMappingURL=chunk-DJNKQI5C.cjs.map
197
+ //# sourceMappingURL=chunk-GCAQEFD6.cjs.map
198
+ //# sourceMappingURL=chunk-GCAQEFD6.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/pdf-viewer/components/PdfViewerContent.tsx","../../src/pdf-viewer/PdfViewerContext.tsx","../../src/public/pdf-viewer.ts"],"names":["EMPTY_ANNOTATION_ARRAY","usePdfViewerCore","usePdfAnnotationsByPage","usePdfFormFields","useRef","useEffect","classnames","BasePdfViewer_default","React","Spin","ErrorIcon","PdfAnnotationOverlay","useContext","usePdfViewerState","usePdfHighlightMode","useMemo","PdfViewer","withOsdkMetrics"],"mappings":";;;;;;;;;;;;;;AA0BO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,GAAA;AAAA,EACA,WAAA,GAAcA,wCAAA;AAAA,EACd,iBAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,YAAA;AAAA,EACA,YAAA,EAAc,gBAAA;AAAA,EACd,aAAA,EAAe,iBAAA;AAAA,EACf,QAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF,CAAA,EAAG;AACD,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AAA;AAChF,EAAA,MAAM,cAAA,GAAiB,QAAQ,cAAA,IAAkB,KAAA;AACjD,EAAA,MAAM,cAAA,GAAiB,OAAA,CAAQ,YAAA,IAAgB,IAAA,IAAQ,aAAA;AACvD,EAAA,MAAM;AAAA,IACJ,iBAAA;AAAA,IACA;AAAA,GACF,GAAI,OAAA;AACJ,EAAA,OAAOa,cAAQ,OAAO;AAAA,IACpB,GAAG,MAAA;AAAA,IACH,gBAAA;AAAA,IACA,mBAAA;AAAA,IACA,mBAAA;AAAA,IACA,aAAA;AAAA,IACA,cAAA;AAAA,IACA,WAAA;AAAA,IACA,iBAAA;AAAA,IACA,iBAAA;AAAA,IACA,cAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACF,CAAA,EAAI,CAAC,MAAA,EAAQ,gBAAA,EAAkB,qBAAqB,mBAAA,EAAqB,aAAA,EAAe,cAAA,EAAgB,WAAA,EAAa,iBAAA,EAAmB,iBAAA,EAAmB,cAAA,EAAgB,cAAA,EAAgB,YAAY,CAAC,CAAA;AAC1M;;;ACjEO,IAAMC,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-GCAQEFD6.cjs","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Error as ErrorIcon, Spin } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport \"pdfjs-dist/web/pdf_viewer.css\";\nimport React, { useEffect, useRef } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"../constants.js\";\nimport { usePdfAnnotationsByPage } from \"../hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"../hooks/usePdfFormFields.js\";\nimport { usePdfViewerCore } from \"../hooks/usePdfViewerCore.js\";\nimport { PdfAnnotationOverlay } from \"./PdfAnnotationOverlay.js\";\nimport styles from \"../BasePdfViewer.module.css\";\nexport function PdfViewerContent({\n src,\n annotations = EMPTY_ANNOTATION_ARRAY,\n onAnnotationClick,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale,\n onPageChange: onPageChangeProp,\n onScaleChange: onScaleChangeProp,\n formData,\n onFormChange,\n className\n}) {\n const viewer = usePdfViewerCore({\n src,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale\n });\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData,\n onFormChange\n });\n\n // Use refs for callbacks to avoid firing on initial mount\n const onPageChangeRef = useRef(onPageChangeProp);\n onPageChangeRef.current = onPageChangeProp;\n const onScaleChangeRef = useRef(onScaleChangeProp);\n onScaleChangeRef.current = onScaleChangeProp;\n const isInitialMountRef = useRef(true);\n useEffect(function notifyPageChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onPageChangeRef.current?.(viewer.currentPage);\n }, [viewer.currentPage]);\n useEffect(function notifyScaleChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onScaleChangeRef.current?.(viewer.scale);\n }, [viewer.scale]);\n useEffect(function clearInitialMount() {\n isInitialMountRef.current = false;\n }, []);\n const rootClassName = classnames(styles.pdfViewer, className);\n if (viewer.loading) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, /*#__PURE__*/React.createElement(Spin, {\n className: styles.spinnerIcon\n }), \"Loading\\u2026\"));\n }\n if (viewer.error != null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.errorContainer\n }, /*#__PURE__*/React.createElement(ErrorIcon, {\n className: styles.errorIcon\n }), \"Failed to load PDF: \", viewer.error.message));\n }\n if (viewer.document == null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, \"No document\"));\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.scrollContainerWrapper\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.containerRef,\n className: styles.scrollContainer\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.viewerRef,\n className: \"pdfViewer\"\n }), viewer.portalTargets.map(target => {\n const pageAnnotations = annotationsByPage[target.pageNumber] ?? EMPTY_ANNOTATION_ARRAY;\n if (pageAnnotations.length === 0) {\n return null;\n }\n return /*#__PURE__*/React.createElement(PdfAnnotationOverlay, {\n key: target.pageNumber,\n target: target,\n annotations: pageAnnotations,\n onAnnotationClick: onAnnotationClick\n });\n }))));\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { createContext, useContext, useMemo } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"./constants.js\";\nimport { usePdfAnnotationsByPage } from \"./hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"./hooks/usePdfFormFields.js\";\nimport { usePdfHighlightMode } from \"./hooks/usePdfHighlightMode.js\";\nimport { usePdfViewerState } from \"./hooks/usePdfViewerState.js\";\n\n/** The shape of the value provided by {@link PdfViewerProvider}. */\n\nconst PdfViewerContext = /*#__PURE__*/createContext(null);\n/** Provides {@link PdfViewerContextValue} to descendant components. */\nexport function PdfViewerProvider({\n value,\n children\n}) {\n return /*#__PURE__*/React.createElement(PdfViewerContext.Provider, {\n value: value\n }, children);\n}\n\n/**\n * Returns the nearest {@link PdfViewerContextValue} from a {@link PdfViewerProvider}.\n * Throws if called outside a provider.\n */\nexport function usePdfViewerContext() {\n const ctx = useContext(PdfViewerContext);\n if (ctx == null) {\n throw new Error(\"usePdfViewerContext must be used within a PdfViewerProvider\");\n }\n return ctx;\n}\n\n/**\n * Consumer-facing setup hook analogous to react-hook-form's `useForm()`.\n * Accepts viewer options and returns a {@link PdfViewerContextValue} suitable\n * for passing to {@link PdfViewerProvider}.\n */\nexport function usePdfViewerInstance(options) {\n const viewer = usePdfViewerState({\n src: options.src,\n defaultPage: options.defaultPage,\n initialPage: options.initialPage,\n defaultScale: options.defaultScale,\n initialScale: options.initialScale,\n defaultAutoSize: options.defaultAutoSize,\n initialAutoSize: options.initialAutoSize,\n defaultSidebarOpen: options.defaultSidebarOpen,\n initialSidebarOpen: options.initialSidebarOpen,\n sidebarMode: options.sidebarMode,\n onDownload: options.onDownload\n });\n const {\n highlightModeActive,\n toggleHighlightMode\n } = usePdfHighlightMode({\n pdfViewerRef: viewer.pdfViewerRef,\n document: viewer.document,\n enabled: options.enableHighlight ?? options.highlightEnabled ?? false,\n onTextHighlight: options.onTextHighlight,\n onHighlightDelete: options.onHighlightDelete\n });\n const {\n hasFormFields,\n submitFormData\n } = usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData: options.formData,\n onFormSubmit: options.onFormSubmit,\n onFormChange: options.onFormChange\n });\n const annotations = options.annotations ?? EMPTY_ANNOTATION_ARRAY;\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n\n // `highlightEnabled` is the deprecated spelling of `enableHighlight`.\n const highlightEnabled = options.enableHighlight ?? options.highlightEnabled ?? false;\n const enableDownload = options.enableDownload ?? false;\n const enableFormSave = options.onFormSubmit != null && hasFormFields;\n const {\n onAnnotationClick,\n outlineIcons\n } = options;\n return useMemo(() => ({\n ...viewer,\n highlightEnabled,\n highlightModeActive,\n toggleHighlightMode,\n hasFormFields,\n submitFormData,\n annotations,\n annotationsByPage,\n onAnnotationClick,\n enableDownload,\n enableFormSave,\n outlineIcons\n }), [viewer, highlightEnabled, highlightModeActive, toggleHighlightMode, hasFormFields, submitFormData, annotations, annotationsByPage, onAnnotationClick, enableDownload, enableFormSave, outlineIcons]);\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BasePdfViewer\nexport { BasePdfViewer } from \"../pdf-viewer/BasePdfViewer.js\";\n// PdfViewer building blocks\nexport { PdfViewerAnnotationLayer } from \"../pdf-viewer/components/PdfViewerAnnotationLayer.js\";\nexport { PdfViewerContent } from \"../pdf-viewer/components/PdfViewerContent.js\";\nexport { PdfViewerOutlineSidebar } from \"../pdf-viewer/components/PdfViewerOutlineSidebar.js\";\nexport { PdfViewerSearchBar } from \"../pdf-viewer/components/PdfViewerSearchBar.js\";\nexport { PdfViewerSidebar } from \"../pdf-viewer/components/PdfViewerSidebar.js\";\nexport { PdfViewerToolbar } from \"../pdf-viewer/components/PdfViewerToolbar.js\";\n\n// PdfViewer hooks — primitive\nexport { usePdfAnnotationPortals } from \"../pdf-viewer/hooks/usePdfAnnotationPortals.js\";\nexport { usePdfAnnotationsByPage } from \"../pdf-viewer/hooks/usePdfAnnotationsByPage.js\";\nexport { usePdfDocument } from \"../pdf-viewer/hooks/usePdfDocument.js\";\nexport { usePdfFormFields } from \"../pdf-viewer/hooks/usePdfFormFields.js\";\nexport { usePdfHighlightMode } from \"../pdf-viewer/hooks/usePdfHighlightMode.js\";\nexport { usePdfOutline } from \"../pdf-viewer/hooks/usePdfOutline.js\";\nexport { usePdfViewer } from \"../pdf-viewer/hooks/usePdfViewer.js\";\nexport { usePdfViewerSearch } from \"../pdf-viewer/hooks/usePdfViewerSearch.js\";\nexport { usePdfViewerSync } from \"../pdf-viewer/hooks/usePdfViewerSync.js\";\n\n// PdfViewer context\n\nexport { PdfViewerProvider, usePdfViewerContext, usePdfViewerInstance } from \"../pdf-viewer/PdfViewerContext.js\";\n\n// PdfViewer hooks — composition\nexport { usePdfViewerCore } from \"../pdf-viewer/hooks/usePdfViewerCore.js\";\nexport { usePdfViewerState } from \"../pdf-viewer/hooks/usePdfViewerState.js\";\n\n// PdfViewer (Media wrapper)\nimport { PdfViewer as _PdfViewer } from \"../pdf-viewer/PdfViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const PdfViewer = withOsdkMetrics(_PdfViewer, \"PdfViewer\");"]}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkXQHT3TQO_cjs = require('./chunk-XQHT3TQO.cjs');
4
+ var chunkVWHXC6MQ_cjs = require('./chunk-VWHXC6MQ.cjs');
5
+
6
+ // src/public/experimental/spreadsheet-viewer.ts
7
+ var BaseSpreadsheetViewer2 = chunkVWHXC6MQ_cjs.BaseSpreadsheetViewer;
8
+ var SpreadsheetViewer2 = chunkXQHT3TQO_cjs.SpreadsheetViewer;
9
+
10
+ exports.BaseSpreadsheetViewer = BaseSpreadsheetViewer2;
11
+ exports.SpreadsheetViewer = SpreadsheetViewer2;
12
+ //# sourceMappingURL=chunk-IBDBFMEQ.cjs.map
13
+ //# sourceMappingURL=chunk-IBDBFMEQ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/experimental/spreadsheet-viewer.ts"],"names":["BaseSpreadsheetViewer","SpreadsheetViewer"],"mappings":";;;;;;AAmBO,IAAMA,sBAAAA,GAA+BA;AAWrC,IAAMC,kBAAAA,GAA2BA","file":"chunk-IBDBFMEQ.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Stable from \"../spreadsheet-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/spreadsheet-viewer` instead. */\nexport const BaseSpreadsheetViewer = Stable.BaseSpreadsheetViewer;\n\n/** @deprecated Import from `@osdk/react-components/spreadsheet-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/spreadsheet-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/spreadsheet-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/spreadsheet-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/spreadsheet-viewer` instead. */\nexport const SpreadsheetViewer = Stable.SpreadsheetViewer;"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkKHMOMROL_cjs = require('./chunk-KHMOMROL.cjs');
4
+ var chunkU7FYMS5T_cjs = require('./chunk-U7FYMS5T.cjs');
5
+
6
+ // src/public/video-viewer.ts
7
+ var VideoViewer2 = chunkU7FYMS5T_cjs.withOsdkMetrics(chunkKHMOMROL_cjs.VideoViewer, "VideoViewer");
8
+
9
+ exports.VideoViewer = VideoViewer2;
10
+ //# sourceMappingURL=chunk-IFBNWYYC.cjs.map
11
+ //# sourceMappingURL=chunk-IFBNWYYC.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/video-viewer.ts"],"names":["VideoViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-IFBNWYYC.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BaseVideoViewer\nexport { BaseVideoViewer } from \"../video-viewer/BaseVideoViewer.js\";\n// VideoViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nimport { VideoViewer as _VideoViewer } from \"../video-viewer/VideoViewer.js\";\nexport const VideoViewer = withOsdkMetrics(_VideoViewer, \"VideoViewer\");"]}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkMDVEVGFJ_cjs = require('./chunk-MDVEVGFJ.cjs');
4
+ var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
5
+
6
+ // src/public/experimental/image-viewer.ts
7
+ var BaseImageViewer2 = chunkVOROB7KJ_cjs.BaseImageViewer;
8
+ var ImageViewer2 = chunkMDVEVGFJ_cjs.ImageViewer;
9
+
10
+ exports.BaseImageViewer = BaseImageViewer2;
11
+ exports.ImageViewer = ImageViewer2;
12
+ //# sourceMappingURL=chunk-JCCZWVY3.cjs.map
13
+ //# sourceMappingURL=chunk-JCCZWVY3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/experimental/image-viewer.ts"],"names":["BaseImageViewer","ImageViewer"],"mappings":";;;;;;AAmBO,IAAMA,gBAAAA,GAAyBA;AAO/B,IAAMC,YAAAA,GAAqBA","file":"chunk-JCCZWVY3.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Stable from \"../image-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const BaseImageViewer = Stable.BaseImageViewer;\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const ImageViewer = Stable.ImageViewer;"]}
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
+ var chunk4KHF42ZL_cjs = require('./chunk-4KHF42ZL.cjs');
4
+ var chunkVWHXC6MQ_cjs = require('./chunk-VWHXC6MQ.cjs');
5
+ var chunkDTYFQRFD_cjs = require('./chunk-DTYFQRFD.cjs');
3
6
  var chunkKHMOMROL_cjs = require('./chunk-KHMOMROL.cjs');
4
7
  var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
8
+ var chunkPA7IYPBX_cjs = require('./chunk-PA7IYPBX.cjs');
9
+ var chunkUCTQICPR_cjs = require('./chunk-UCTQICPR.cjs');
5
10
  var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
6
11
  var chunkKFV264XS_cjs = require('./chunk-KFV264XS.cjs');
7
- var chunkHVJTECCC_cjs = require('./chunk-HVJTECCC.cjs');
8
- var chunkVWHXC6MQ_cjs = require('./chunk-VWHXC6MQ.cjs');
9
- var chunkDTYFQRFD_cjs = require('./chunk-DTYFQRFD.cjs');
10
- var chunkUCTQICPR_cjs = require('./chunk-UCTQICPR.cjs');
11
- var chunkPA7IYPBX_cjs = require('./chunk-PA7IYPBX.cjs');
12
- var chunk6RCVPIW5_cjs = require('./chunk-6RCVPIW5.cjs');
12
+ var chunkU7FYMS5T_cjs = require('./chunk-U7FYMS5T.cjs');
13
13
  var icons = require('@blueprintjs/icons');
14
14
  var classnames = require('classnames');
15
15
  var React2 = require('react');
@@ -169,7 +169,7 @@ function TiffDocumentViewer({
169
169
  }), "Converting document\u2026"));
170
170
  }
171
171
  if (viewerType === ViewerType.Pdf && pdfData != null) {
172
- return /* @__PURE__ */ React2__default.default.createElement(chunkHVJTECCC_cjs.BasePdfViewer, _extends({
172
+ return /* @__PURE__ */ React2__default.default.createElement(chunk4KHF42ZL_cjs.BasePdfViewer, _extends({
173
173
  src: pdfData,
174
174
  className
175
175
  }, pdfViewerProps));
@@ -245,7 +245,7 @@ function DocumentViewer({
245
245
  const resolvedTiffViewerProps = tiffViewerProps ?? tiffRendererProps;
246
246
  switch (viewerType) {
247
247
  case ViewerType.Pdf:
248
- return /* @__PURE__ */ React2__default.default.createElement(chunkHVJTECCC_cjs.PdfViewer, _extends2({
248
+ return /* @__PURE__ */ React2__default.default.createElement(chunk4KHF42ZL_cjs.PdfViewer, _extends2({
249
249
  media,
250
250
  className: rootClassName
251
251
  }, pdfViewerProps));
@@ -306,10 +306,10 @@ function DocumentViewer({
306
306
  }
307
307
  }
308
308
 
309
- // src/public/experimental/document-viewer.ts
310
- var DocumentViewer2 = chunk6RCVPIW5_cjs.withOsdkMetrics(DocumentViewer, "DocumentViewer");
309
+ // src/public/document-viewer.ts
310
+ var DocumentViewer2 = chunkU7FYMS5T_cjs.withOsdkMetrics(DocumentViewer, "DocumentViewer");
311
311
 
312
312
  exports.DocumentViewer = DocumentViewer2;
313
313
  exports.ViewerType = ViewerType;
314
- //# sourceMappingURL=chunk-BBXX42YT.cjs.map
315
- //# sourceMappingURL=chunk-BBXX42YT.cjs.map
314
+ //# sourceMappingURL=chunk-L4PLQPV2.cjs.map
315
+ //# sourceMappingURL=chunk-L4PLQPV2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/document-viewer/DocumentViewerApi.ts","../../src/document-viewer/hooks/useTiffToPdf.ts","../../src/document-viewer/DocumentViewer.module.css","../../src/document-viewer/TiffDocumentViewer.tsx","../../src/document-viewer/DocumentViewer.tsx","../../src/public/document-viewer.ts"],"names":["ViewerType","useOsdkClient","useState","useRef","useEffect","UTIF","transformAndWait","React","Spin","BasePdfViewer","TiffViewer","_extends","useMemo","classnames","PdfViewer","ImageViewer","VideoViewer","MarkdownViewer","SpreadsheetViewer","EmailViewer","XmlViewer","DocumentIcon","assertUnreachable","DocumentViewer","withOsdkMetrics"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,IAAI,UAAA,6BAAoCA,WAAAA,EAAY;AACzD,EAAAA,WAAAA,CAAW,KAAK,CAAA,GAAI,KAAA;AACpB,EAAAA,WAAAA,CAAW,MAAM,CAAA,GAAI,MAAA;AACrB,EAAAA,WAAAA,CAAW,OAAO,CAAA,GAAI,OAAA;AACtB,EAAAA,WAAAA,CAAW,OAAO,CAAA,GAAI,OAAA;AACtB,EAAAA,WAAAA,CAAW,UAAU,CAAA,GAAI,UAAA;AACzB,EAAAA,WAAAA,CAAW,aAAa,CAAA,GAAI,aAAA;AAC5B,EAAAA,WAAAA,CAAW,OAAO,CAAA,GAAI,OAAA;AACtB,EAAAA,WAAAA,CAAW,KAAK,CAAA,GAAI,KAAA;AACpB,EAAAA,WAAAA,CAAW,aAAa,CAAA,GAAI,aAAA;AAC5B,EAAA,OAAOA,WAAAA;AACT,CAAA,EAAE,EAAE;ACJJ,IAAM,eAAA,GAAkB;AAAA,EACtB,YAAY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B,cAAA,EAAiB,gBAAgB","file":"chunk-L4PLQPV2.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport let ViewerType = /*#__PURE__*/function (ViewerType) {\n ViewerType[\"Pdf\"] = \"pdf\";\n ViewerType[\"Tiff\"] = \"tiff\";\n ViewerType[\"Image\"] = \"image\";\n ViewerType[\"Video\"] = \"video\";\n ViewerType[\"Markdown\"] = \"markdown\";\n ViewerType[\"Spreadsheet\"] = \"spreadsheet\";\n ViewerType[\"Email\"] = \"email\";\n ViewerType[\"Xml\"] = \"xml\";\n ViewerType[\"Unsupported\"] = \"unsupported\";\n return ViewerType;\n}({});","/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* cspell:words ifds */\n\nimport { transformAndWait } from \"@osdk/api/unstable\";\nimport { useOsdkClient } from \"@osdk/react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport * as UTIF from \"utif\";\nimport { ViewerType } from \"../DocumentViewerApi.js\";\nconst DISABLED_RESULT = {\n viewerType: ViewerType.Tiff,\n pdfData: undefined,\n loading: false,\n error: undefined\n};\n\n/**\n * Detects multi-page TIFFs and converts them to PDF via the MIO transform API.\n * Single-page TIFFs are left for the TiffViewer to handle.\n *\n * @param media - The OSDK Media object (must be a TIFF)\n * @param enabled - Whether to attempt multi-page detection and conversion\n */\nexport function useTiffToPdf(media, enabled) {\n const client = useOsdkClient();\n const [result, setResult] = useState(DISABLED_RESULT);\n const mediaRef = useRef(media);\n mediaRef.current = media;\n useEffect(() => {\n if (!enabled) {\n setResult(DISABLED_RESULT);\n return;\n }\n let cancelled = false;\n setResult({\n viewerType: ViewerType.Tiff,\n pdfData: undefined,\n loading: true,\n error: undefined\n });\n async function detectAndTransform() {\n const currentMedia = mediaRef.current;\n\n // Step 1: Fetch TIFF bytes and count pages\n const response = await currentMedia.fetchContents();\n const buffer = await response.arrayBuffer();\n if (cancelled) return;\n const ifds = UTIF.decode(buffer);\n const pageCount = ifds.length;\n if (pageCount <= 1) {\n // Single-page TIFF — use TiffViewer\n if (!cancelled) {\n setResult({\n viewerType: ViewerType.Tiff,\n pdfData: undefined,\n loading: false,\n error: undefined\n });\n }\n return;\n }\n\n // Step 2: Multi-page TIFF — convert to PDF via MIO transform\n const pdfResponse = await client(transformAndWait).transformAndWait({\n media: currentMedia,\n transformation: {\n $imageToDocument: {\n $operation: {\n $createPdf: {}\n }\n }\n }\n });\n if (cancelled) return;\n const pdfBuffer = await pdfResponse.arrayBuffer();\n if (!cancelled) {\n setResult({\n viewerType: ViewerType.Pdf,\n pdfData: pdfBuffer,\n loading: false,\n error: undefined\n });\n }\n }\n detectAndTransform().catch(err => {\n if (!cancelled) {\n // eslint-disable-next-line no-console\n console.warn(\"TIFF to PDF conversion failed, falling back to TIFF renderer:\", err);\n setResult({\n viewerType: ViewerType.Tiff,\n pdfData: undefined,\n loading: false,\n error: err instanceof Error ? err : new Error(String(err))\n });\n }\n });\n return () => {\n cancelled = true;\n };\n }, [media, enabled, client]);\n return result;\n}",".container {\n display: flex;\n width: 100%;\n height: 100%;\n background-color: var(--osdk-document-viewer-bg);\n border: var(--osdk-document-viewer-border);\n border-radius: var(--osdk-surface-border-radius);\n overflow: hidden;\n}\n\n.unsupportedContainer {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--osdk-surface-spacing);\n width: 100%;\n height: 100%;\n font-family: var(--osdk-typography-family-default);\n font-size: var(--osdk-typography-size-body-medium);\n color: var(--osdk-typography-color-muted);\n}\n\n.unsupportedIcon {\n flex-shrink: 0;\n}\n\n.loadingContainer {\n composes: loadingContainer from \"../shared/LoadingError.module.css\";\n width: 100%;\n}\n\n.spinnerIcon {\n composes: spinnerIcon from \"../shared/LoadingError.module.css\";\n}\n","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Spin } from \"@blueprintjs/icons\";\nimport React from \"react\";\nimport { TiffViewer } from \"../images/tiff-viewer/TiffViewer.js\";\nimport { BasePdfViewer } from \"../pdf-viewer/BasePdfViewer.js\";\nimport { ViewerType } from \"./DocumentViewerApi.js\";\nimport { useTiffToPdf } from \"./hooks/useTiffToPdf.js\";\nimport styles from \"./DocumentViewer.module.css\";\nexport function TiffDocumentViewer({\n media,\n className,\n enableTiffToPdf,\n tiffViewerProps,\n pdfViewerProps\n}) {\n const {\n viewerType,\n pdfData,\n loading\n } = useTiffToPdf(media, enableTiffToPdf);\n if (loading) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, /*#__PURE__*/React.createElement(Spin, {\n className: styles.spinnerIcon\n }), \"Converting document\\u2026\"));\n }\n if (viewerType === ViewerType.Pdf && pdfData != null) {\n return /*#__PURE__*/React.createElement(BasePdfViewer, _extends({\n src: pdfData,\n className: className\n }, pdfViewerProps));\n }\n return /*#__PURE__*/React.createElement(TiffViewer, _extends({\n media: media,\n className: className\n }, tiffViewerProps));\n}","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* cspell:words openxmlformats officedocument wordprocessingml spreadsheetml */\n\nimport { Document as DocumentIcon } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React, { useMemo } from \"react\";\nimport { EmailViewer } from \"../email-viewer/EmailViewer.js\";\nimport { ImageViewer } from \"../images/image-viewer/ImageViewer.js\";\nimport { TiffViewer } from \"../images/tiff-viewer/TiffViewer.js\";\nimport { MarkdownViewer } from \"../markdown-viewer/MarkdownViewer.js\";\nimport { PdfViewer } from \"../pdf-viewer/PdfViewer.js\";\nimport { assertUnreachable } from \"../shared/assertUnreachable.js\";\nimport { SpreadsheetViewer } from \"../spreadsheet-viewer/SpreadsheetViewer.js\";\nimport { VideoViewer } from \"../video-viewer/VideoViewer.js\";\nimport { XmlViewer } from \"../xml-viewer/XmlViewer.js\";\nimport { ViewerType } from \"./DocumentViewerApi.js\";\nimport { TiffDocumentViewer } from \"./TiffDocumentViewer.js\";\nimport styles from \"./DocumentViewer.module.css\";\nconst IMAGE_MIME_TYPES = new Set([\"image/png\", \"image/jpeg\", \"image/gif\", \"image/svg+xml\", \"image/webp\", \"image/bmp\"]);\nconst MARKDOWN_MIME_TYPES = new Set([\"text/markdown\", \"text/x-markdown\"]);\nconst XML_MIME_TYPES = new Set([\"application/xml\", \"text/xml\"]);\nfunction isTiffFile(mimeType, fileName) {\n if (mimeType === \"image/tiff\") {\n return true;\n }\n const lowered = fileName?.toLowerCase();\n return lowered?.endsWith(\".tif\") === true || lowered?.endsWith(\".tiff\") === true;\n}\nfunction getViewerType(mimeType, fileName) {\n if (mimeType === \"application/pdf\") {\n return ViewerType.Pdf;\n }\n if (isTiffFile(mimeType, fileName)) {\n return ViewerType.Tiff;\n }\n if (IMAGE_MIME_TYPES.has(mimeType)) {\n return ViewerType.Image;\n }\n if (mimeType.startsWith(\"video/\")) {\n return ViewerType.Video;\n }\n if (MARKDOWN_MIME_TYPES.has(mimeType)) {\n return ViewerType.Markdown;\n }\n if (mimeType === \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\") {\n return ViewerType.Spreadsheet;\n }\n if (mimeType === \"message/rfc822\") {\n return ViewerType.Email;\n }\n if (XML_MIME_TYPES.has(mimeType)) {\n return ViewerType.Xml;\n }\n return ViewerType.Unsupported;\n}\nexport function DocumentViewer({\n media,\n className,\n mimeTypeOverride,\n pdfViewerProps,\n imageViewerProps,\n videoViewerProps,\n tiffViewerProps,\n tiffRendererProps,\n fileName,\n enableTiffToPdf = false\n}) {\n const mimeType = mimeTypeOverride ?? media.getMediaReference().mimeType;\n const viewerType = useMemo(() => getViewerType(mimeType, fileName), [mimeType, fileName]);\n const rootClassName = classnames(styles.container, className);\n\n // `tiffRendererProps` is the deprecated name for `tiffViewerProps`. Coalescing\n // (rather than merging) keeps the alias behaving exactly like its replacement\n // and avoids creating a new object identity on every render.\n const resolvedTiffViewerProps = tiffViewerProps ?? tiffRendererProps;\n switch (viewerType) {\n case ViewerType.Pdf:\n return /*#__PURE__*/React.createElement(PdfViewer, _extends({\n media: media,\n className: rootClassName\n }, pdfViewerProps));\n case ViewerType.Tiff:\n if (enableTiffToPdf) {\n return /*#__PURE__*/React.createElement(TiffDocumentViewer, {\n media: media,\n className: rootClassName,\n enableTiffToPdf: enableTiffToPdf,\n tiffViewerProps: resolvedTiffViewerProps,\n pdfViewerProps: pdfViewerProps\n });\n }\n return /*#__PURE__*/React.createElement(TiffViewer, _extends({\n media: media,\n className: rootClassName\n }, resolvedTiffViewerProps));\n case ViewerType.Image:\n return /*#__PURE__*/React.createElement(ImageViewer, _extends({\n media: media,\n className: rootClassName\n }, imageViewerProps));\n case ViewerType.Video:\n return /*#__PURE__*/React.createElement(VideoViewer, _extends({\n media: media,\n className: rootClassName\n }, videoViewerProps));\n case ViewerType.Markdown:\n return /*#__PURE__*/React.createElement(MarkdownViewer, {\n media: media,\n className: rootClassName\n });\n case ViewerType.Spreadsheet:\n return /*#__PURE__*/React.createElement(SpreadsheetViewer, {\n media: media,\n className: rootClassName\n });\n case ViewerType.Email:\n return /*#__PURE__*/React.createElement(EmailViewer, {\n media: media,\n className: rootClassName\n });\n case ViewerType.Xml:\n return /*#__PURE__*/React.createElement(XmlViewer, {\n media: media,\n className: rootClassName\n });\n case ViewerType.Unsupported:\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.unsupportedContainer\n }, /*#__PURE__*/React.createElement(DocumentIcon, {\n className: styles.unsupportedIcon\n }), \"Unsupported file type: \", mimeType));\n default:\n assertUnreachable(viewerType);\n }\n}","/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// DocumentViewer\nimport { DocumentViewer as _DocumentViewer } from \"../document-viewer/DocumentViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const DocumentViewer = withOsdkMetrics(_DocumentViewer, \"DocumentViewer\");\nexport { ViewerType } from \"../document-viewer/DocumentViewerApi.js\";"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
4
+ var chunkU7FYMS5T_cjs = require('./chunk-U7FYMS5T.cjs');
5
+
6
+ // src/public/image-viewer.ts
7
+ var ImageViewer2 = chunkU7FYMS5T_cjs.withOsdkMetrics(chunkVOROB7KJ_cjs.ImageViewer, "ImageViewer");
8
+
9
+ exports.ImageViewer = ImageViewer2;
10
+ //# sourceMappingURL=chunk-MDVEVGFJ.cjs.map
11
+ //# sourceMappingURL=chunk-MDVEVGFJ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/image-viewer.ts"],"names":["ImageViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-MDVEVGFJ.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BaseImageViewer\nexport { BaseImageViewer } from \"../images/image-viewer/BaseImageViewer.js\";\n// ImageViewer (Media wrapper)\nimport { ImageViewer as _ImageViewer } from \"../images/image-viewer/ImageViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const ImageViewer = withOsdkMetrics(_ImageViewer, \"ImageViewer\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkKFV264XS_cjs = require('./chunk-KFV264XS.cjs');
4
+ var chunkU7FYMS5T_cjs = require('./chunk-U7FYMS5T.cjs');
5
+
6
+ // src/public/markdown-viewer.ts
7
+ var MarkdownViewer2 = chunkU7FYMS5T_cjs.withOsdkMetrics(chunkKFV264XS_cjs.MarkdownViewer, "MarkdownViewer");
8
+
9
+ exports.MarkdownViewer = MarkdownViewer2;
10
+ //# sourceMappingURL=chunk-OJTBEZKG.cjs.map
11
+ //# sourceMappingURL=chunk-OJTBEZKG.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/markdown-viewer.ts"],"names":["MarkdownViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,eAAAA,GAAiBC,iCAAA,CAAgBD,gCAAA,EAAiB,gBAAgB","file":"chunk-OJTBEZKG.cjs","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MarkdownViewer as _MarkdownViewer } from \"../markdown-viewer/MarkdownViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseMarkdownViewer\nexport { BaseMarkdownViewer } from \"../markdown-viewer/BaseMarkdownViewer.js\";\n// MarkdownViewer (Media wrapper)\nexport const MarkdownViewer = withOsdkMetrics(_MarkdownViewer, \"MarkdownViewer\");"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkWBLPQ375_cjs = require('./chunk-WBLPQ375.cjs');
4
3
  var chunkNSCCMDOJ_cjs = require('./chunk-NSCCMDOJ.cjs');
5
- var chunkJNSHIKCQ_cjs = require('./chunk-JNSHIKCQ.cjs');
6
4
  var chunkHNBSGCSZ_cjs = require('./chunk-HNBSGCSZ.cjs');
5
+ var chunkWBLPQ375_cjs = require('./chunk-WBLPQ375.cjs');
6
+ var chunkJNSHIKCQ_cjs = require('./chunk-JNSHIKCQ.cjs');
7
7
  var chunk7LXS66DW_cjs = require('./chunk-7LXS66DW.cjs');
8
8
  var chunkQP2LHBCZ_cjs = require('./chunk-QP2LHBCZ.cjs');
9
9
  var chunkUCTQICPR_cjs = require('./chunk-UCTQICPR.cjs');
10
- var chunk6RCVPIW5_cjs = require('./chunk-6RCVPIW5.cjs');
10
+ var chunkU7FYMS5T_cjs = require('./chunk-U7FYMS5T.cjs');
11
11
  var react = require('@osdk/react');
12
12
  var React17 = require('react');
13
13
  var icons = require('@blueprintjs/icons');
@@ -1854,10 +1854,10 @@ var ActionForm = chunkNSCCMDOJ_cjs.typedReactMemo(function ActionFormFn({
1854
1854
  });
1855
1855
  ActionForm.displayName = "ActionForm";
1856
1856
 
1857
- // src/public/experimental/action-form.ts
1858
- var ActionForm2 = chunk6RCVPIW5_cjs.withOsdkMetrics(ActionForm, "ActionForm");
1857
+ // src/public/action-form.ts
1858
+ var ActionForm2 = chunkU7FYMS5T_cjs.withOsdkMetrics(ActionForm, "ActionForm");
1859
1859
 
1860
1860
  exports.ActionForm = ActionForm2;
1861
1861
  exports.BaseForm = BaseForm;
1862
- //# sourceMappingURL=chunk-ABT6IGXN.cjs.map
1863
- //# sourceMappingURL=chunk-ABT6IGXN.cjs.map
1862
+ //# sourceMappingURL=chunk-RPEXVMQG.cjs.map
1863
+ //# sourceMappingURL=chunk-RPEXVMQG.cjs.map