@osdk/react-components 0.65.0-main-9f97981b0138f67ea08d91ffdbde9fa1529840e8 → 0.65.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 (95) hide show
  1. package/CHANGELOG.md +2 -11
  2. package/build/browser/util/UserAgent.js +1 -1
  3. package/build/browser/util/UserAgent.js.map +1 -1
  4. package/build/cjs/{chunk-PHLIT5ZO.cjs → chunk-2VD4PNPT.cjs} +4 -4
  5. package/build/cjs/{chunk-PHLIT5ZO.cjs.map → chunk-2VD4PNPT.cjs.map} +1 -1
  6. package/build/cjs/{chunk-SFNWP5A2.cjs → chunk-2XYRBWPU.cjs} +3 -3
  7. package/build/cjs/chunk-2XYRBWPU.cjs.map +1 -0
  8. package/build/cjs/{chunk-KQFEZUTS.cjs → chunk-3TBUVKCI.cjs} +4 -4
  9. package/build/cjs/{chunk-KQFEZUTS.cjs.map → chunk-3TBUVKCI.cjs.map} +1 -1
  10. package/build/cjs/chunk-46ODV2LJ.cjs +12 -0
  11. package/build/cjs/{chunk-S4TQ4D2Y.cjs.map → chunk-46ODV2LJ.cjs.map} +1 -1
  12. package/build/cjs/chunk-5COMY4KJ.cjs +11 -0
  13. package/build/cjs/{chunk-4S7BKRKY.cjs.map → chunk-5COMY4KJ.cjs.map} +1 -1
  14. package/build/cjs/chunk-5E2RRXX4.cjs +11 -0
  15. package/build/cjs/{chunk-3S7BR5R7.cjs.map → chunk-5E2RRXX4.cjs.map} +1 -1
  16. package/build/cjs/chunk-5IHU4VOR.cjs +11 -0
  17. package/build/cjs/{chunk-2WFC7JKR.cjs.map → chunk-5IHU4VOR.cjs.map} +1 -1
  18. package/build/cjs/chunk-6PT4TBFZ.cjs +48 -0
  19. package/build/cjs/{chunk-BTFNKXH7.cjs.map → chunk-6PT4TBFZ.cjs.map} +1 -1
  20. package/build/cjs/{chunk-O5ZNTQN2.cjs → chunk-7GIIDP2V.cjs} +4 -4
  21. package/build/cjs/{chunk-O5ZNTQN2.cjs.map → chunk-7GIIDP2V.cjs.map} +1 -1
  22. package/build/cjs/chunk-AIO5OUMA.cjs +11 -0
  23. package/build/cjs/{chunk-C4EFSC3C.cjs.map → chunk-AIO5OUMA.cjs.map} +1 -1
  24. package/build/cjs/chunk-AZIVYMPB.cjs +11 -0
  25. package/build/cjs/{chunk-HVU62JAN.cjs.map → chunk-AZIVYMPB.cjs.map} +1 -1
  26. package/build/cjs/{chunk-CKF7H7QO.cjs → chunk-ILMGORRG.cjs} +4 -4
  27. package/build/cjs/{chunk-CKF7H7QO.cjs.map → chunk-ILMGORRG.cjs.map} +1 -1
  28. package/build/cjs/{chunk-5NOADDRO.cjs → chunk-JO65CALK.cjs} +5 -5
  29. package/build/cjs/{chunk-5NOADDRO.cjs.map → chunk-JO65CALK.cjs.map} +1 -1
  30. package/build/cjs/{chunk-EUDUFRX7.cjs → chunk-L4RMM2K2.cjs} +4 -4
  31. package/build/cjs/{chunk-EUDUFRX7.cjs.map → chunk-L4RMM2K2.cjs.map} +1 -1
  32. package/build/cjs/{chunk-YPVZK4FC.cjs → chunk-MUDX3FOC.cjs} +4 -4
  33. package/build/cjs/{chunk-YPVZK4FC.cjs.map → chunk-MUDX3FOC.cjs.map} +1 -1
  34. package/build/cjs/chunk-P2OJLDK2.cjs +11 -0
  35. package/build/cjs/{chunk-CA7IT6W3.cjs.map → chunk-P2OJLDK2.cjs.map} +1 -1
  36. package/build/cjs/{chunk-XAYEF5ZZ.cjs → chunk-PB2RGLU5.cjs} +4 -4
  37. package/build/cjs/{chunk-XAYEF5ZZ.cjs.map → chunk-PB2RGLU5.cjs.map} +1 -1
  38. package/build/cjs/{chunk-JF46MYWO.cjs → chunk-PJA5LABO.cjs} +4 -4
  39. package/build/cjs/{chunk-JF46MYWO.cjs.map → chunk-PJA5LABO.cjs.map} +1 -1
  40. package/build/cjs/{chunk-PYLA6VLV.cjs → chunk-R7QHOSM7.cjs} +4 -4
  41. package/build/cjs/{chunk-PYLA6VLV.cjs.map → chunk-R7QHOSM7.cjs.map} +1 -1
  42. package/build/cjs/chunk-SCOROMY4.cjs +12 -0
  43. package/build/cjs/{chunk-DWBUWDXZ.cjs.map → chunk-SCOROMY4.cjs.map} +1 -1
  44. package/build/cjs/{chunk-C3NXFQEY.cjs → chunk-SWNSKM3S.cjs} +4 -4
  45. package/build/cjs/{chunk-C3NXFQEY.cjs.map → chunk-SWNSKM3S.cjs.map} +1 -1
  46. package/build/cjs/{chunk-R4TB6WYR.cjs → chunk-TISC77YX.cjs} +4 -4
  47. package/build/cjs/{chunk-R4TB6WYR.cjs.map → chunk-TISC77YX.cjs.map} +1 -1
  48. package/build/cjs/chunk-U7OKFDY7.cjs +34 -0
  49. package/build/cjs/{chunk-43B5QRZX.cjs.map → chunk-U7OKFDY7.cjs.map} +1 -1
  50. package/build/cjs/{chunk-SCWFVUNY.cjs → chunk-UWBFLVJ7.cjs} +5 -5
  51. package/build/cjs/{chunk-SCWFVUNY.cjs.map → chunk-UWBFLVJ7.cjs.map} +1 -1
  52. package/build/cjs/{chunk-YWWODO6N.cjs → chunk-VVFG23N6.cjs} +8 -8
  53. package/build/cjs/{chunk-YWWODO6N.cjs.map → chunk-VVFG23N6.cjs.map} +1 -1
  54. package/build/cjs/{chunk-NEQCT6XU.cjs → chunk-YMPKN6FP.cjs} +4 -4
  55. package/build/cjs/{chunk-NEQCT6XU.cjs.map → chunk-YMPKN6FP.cjs.map} +1 -1
  56. package/build/cjs/public/action-form.cjs +4 -4
  57. package/build/cjs/public/document-viewer.cjs +4 -4
  58. package/build/cjs/public/email-viewer.cjs +3 -3
  59. package/build/cjs/public/experimental/action-form.cjs +5 -5
  60. package/build/cjs/public/experimental/cbac-picker.cjs +11 -11
  61. package/build/cjs/public/experimental/document-viewer.cjs +5 -5
  62. package/build/cjs/public/experimental/email-viewer.cjs +5 -5
  63. package/build/cjs/public/experimental/filter-list.cjs +16 -16
  64. package/build/cjs/public/experimental/image-viewer.cjs +5 -5
  65. package/build/cjs/public/experimental/markdown-renderer.cjs +7 -7
  66. package/build/cjs/public/experimental/object-table.cjs +23 -23
  67. package/build/cjs/public/experimental/pdf-viewer.cjs +25 -25
  68. package/build/cjs/public/experimental/spreadsheet-viewer.cjs +5 -5
  69. package/build/cjs/public/experimental/tiff-renderer.cjs +7 -7
  70. package/build/cjs/public/experimental/video-viewer.cjs +5 -5
  71. package/build/cjs/public/experimental/xml-viewer.cjs +5 -5
  72. package/build/cjs/public/experimental.cjs +112 -112
  73. package/build/cjs/public/filter-list.cjs +15 -15
  74. package/build/cjs/public/image-viewer.cjs +3 -3
  75. package/build/cjs/public/markdown-viewer.cjs +3 -3
  76. package/build/cjs/public/object-table.cjs +22 -22
  77. package/build/cjs/public/pdf-viewer.cjs +7 -7
  78. package/build/cjs/public/spreadsheet-viewer.cjs +3 -3
  79. package/build/cjs/public/tiff-viewer.cjs +3 -3
  80. package/build/cjs/public/video-viewer.cjs +3 -3
  81. package/build/cjs/public/xml-viewer.cjs +3 -3
  82. package/build/esm/util/UserAgent.js +1 -1
  83. package/build/esm/util/UserAgent.js.map +1 -1
  84. package/package.json +8 -8
  85. package/build/cjs/chunk-2WFC7JKR.cjs +0 -11
  86. package/build/cjs/chunk-3S7BR5R7.cjs +0 -11
  87. package/build/cjs/chunk-43B5QRZX.cjs +0 -34
  88. package/build/cjs/chunk-4S7BKRKY.cjs +0 -11
  89. package/build/cjs/chunk-BTFNKXH7.cjs +0 -48
  90. package/build/cjs/chunk-C4EFSC3C.cjs +0 -11
  91. package/build/cjs/chunk-CA7IT6W3.cjs +0 -11
  92. package/build/cjs/chunk-DWBUWDXZ.cjs +0 -12
  93. package/build/cjs/chunk-HVU62JAN.cjs +0 -11
  94. package/build/cjs/chunk-S4TQ4D2Y.cjs +0 -12
  95. package/build/cjs/chunk-SFNWP5A2.cjs.map +0 -1
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkKHMOMROL_cjs = require('./chunk-KHMOMROL.cjs');
4
+ var chunk2XYRBWPU_cjs = require('./chunk-2XYRBWPU.cjs');
5
+
6
+ // src/public/video-viewer.ts
7
+ var VideoViewer2 = chunk2XYRBWPU_cjs.withOsdkMetrics(chunkKHMOMROL_cjs.VideoViewer, "VideoViewer");
8
+
9
+ exports.VideoViewer = VideoViewer2;
10
+ //# sourceMappingURL=chunk-P2OJLDK2.cjs.map
11
+ //# sourceMappingURL=chunk-P2OJLDK2.cjs.map
@@ -1 +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-CA7IT6W3.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\");"]}
1
+ {"version":3,"sources":["../../src/public/video-viewer.ts"],"names":["VideoViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-P2OJLDK2.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\");"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunk2WFC7JKR_cjs = require('./chunk-2WFC7JKR.cjs');
3
+ var chunk5IHU4VOR_cjs = require('./chunk-5IHU4VOR.cjs');
4
4
  var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
5
5
 
6
6
  // src/public/experimental/xml-viewer.ts
7
7
  var BaseXmlViewer2 = chunkRVZE7LPI_cjs.BaseXmlViewer;
8
- var XmlViewer2 = chunk2WFC7JKR_cjs.XmlViewer;
8
+ var XmlViewer2 = chunk5IHU4VOR_cjs.XmlViewer;
9
9
 
10
10
  exports.BaseXmlViewer = BaseXmlViewer2;
11
11
  exports.XmlViewer = XmlViewer2;
12
- //# sourceMappingURL=chunk-XAYEF5ZZ.cjs.map
13
- //# sourceMappingURL=chunk-XAYEF5ZZ.cjs.map
12
+ //# sourceMappingURL=chunk-PB2RGLU5.cjs.map
13
+ //# sourceMappingURL=chunk-PB2RGLU5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/xml-viewer.ts"],"names":["BaseXmlViewer","XmlViewer"],"mappings":";;;;;;AAmBO,IAAMA,cAAAA,GAAuBA;AAO7B,IAAMC,UAAAA,GAAmBA","file":"chunk-XAYEF5ZZ.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 \"../xml-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const BaseXmlViewer = Stable.BaseXmlViewer;\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const XmlViewer = Stable.XmlViewer;"]}
1
+ {"version":3,"sources":["../../src/public/experimental/xml-viewer.ts"],"names":["BaseXmlViewer","XmlViewer"],"mappings":";;;;;;AAmBO,IAAMA,cAAAA,GAAuBA;AAO7B,IAAMC,UAAAA,GAAmBA","file":"chunk-PB2RGLU5.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 \"../xml-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const BaseXmlViewer = Stable.BaseXmlViewer;\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const XmlViewer = Stable.XmlViewer;"]}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkVWHXC6MQ_cjs = require('./chunk-VWHXC6MQ.cjs');
4
- var chunkSFNWP5A2_cjs = require('./chunk-SFNWP5A2.cjs');
4
+ var chunk2XYRBWPU_cjs = require('./chunk-2XYRBWPU.cjs');
5
5
 
6
6
  // src/public/spreadsheet-viewer.ts
7
- var SpreadsheetViewer2 = chunkSFNWP5A2_cjs.withOsdkMetrics(chunkVWHXC6MQ_cjs.SpreadsheetViewer, "SpreadsheetViewer");
7
+ var SpreadsheetViewer2 = chunk2XYRBWPU_cjs.withOsdkMetrics(chunkVWHXC6MQ_cjs.SpreadsheetViewer, "SpreadsheetViewer");
8
8
 
9
9
  exports.SpreadsheetViewer = SpreadsheetViewer2;
10
- //# sourceMappingURL=chunk-JF46MYWO.cjs.map
11
- //# sourceMappingURL=chunk-JF46MYWO.cjs.map
10
+ //# sourceMappingURL=chunk-PJA5LABO.cjs.map
11
+ //# sourceMappingURL=chunk-PJA5LABO.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/spreadsheet-viewer.ts"],"names":["SpreadsheetViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,kBAAAA,GAAoBC,iCAAA,CAAgBD,mCAAA,EAAoB,mBAAmB","file":"chunk-JF46MYWO.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// BaseSpreadsheetViewer\nexport { BaseSpreadsheetViewer } from \"../spreadsheet-viewer/BaseSpreadsheetViewer.js\";\n// SpreadsheetViewer (Media wrapper)\nimport { SpreadsheetViewer as _SpreadsheetViewer } from \"../spreadsheet-viewer/SpreadsheetViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const SpreadsheetViewer = withOsdkMetrics(_SpreadsheetViewer, \"SpreadsheetViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/spreadsheet-viewer.ts"],"names":["SpreadsheetViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,kBAAAA,GAAoBC,iCAAA,CAAgBD,mCAAA,EAAoB,mBAAmB","file":"chunk-PJA5LABO.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// BaseSpreadsheetViewer\nexport { BaseSpreadsheetViewer } from \"../spreadsheet-viewer/BaseSpreadsheetViewer.js\";\n// SpreadsheetViewer (Media wrapper)\nimport { SpreadsheetViewer as _SpreadsheetViewer } from \"../spreadsheet-viewer/SpreadsheetViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const SpreadsheetViewer = withOsdkMetrics(_SpreadsheetViewer, \"SpreadsheetViewer\");"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkJF46MYWO_cjs = require('./chunk-JF46MYWO.cjs');
3
+ var chunkPJA5LABO_cjs = require('./chunk-PJA5LABO.cjs');
4
4
  var chunkVWHXC6MQ_cjs = require('./chunk-VWHXC6MQ.cjs');
5
5
 
6
6
  // src/public/experimental/spreadsheet-viewer.ts
7
7
  var BaseSpreadsheetViewer2 = chunkVWHXC6MQ_cjs.BaseSpreadsheetViewer;
8
- var SpreadsheetViewer2 = chunkJF46MYWO_cjs.SpreadsheetViewer;
8
+ var SpreadsheetViewer2 = chunkPJA5LABO_cjs.SpreadsheetViewer;
9
9
 
10
10
  exports.BaseSpreadsheetViewer = BaseSpreadsheetViewer2;
11
11
  exports.SpreadsheetViewer = SpreadsheetViewer2;
12
- //# sourceMappingURL=chunk-PYLA6VLV.cjs.map
13
- //# sourceMappingURL=chunk-PYLA6VLV.cjs.map
12
+ //# sourceMappingURL=chunk-R7QHOSM7.cjs.map
13
+ //# sourceMappingURL=chunk-R7QHOSM7.cjs.map
@@ -1 +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-PYLA6VLV.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;"]}
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-R7QHOSM7.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,12 @@
1
+ 'use strict';
2
+
3
+ var chunkL4RMM2K2_cjs = require('./chunk-L4RMM2K2.cjs');
4
+
5
+ // src/public/experimental/action-form.ts
6
+ var ActionForm2 = chunkL4RMM2K2_cjs.ActionForm;
7
+ var BaseForm2 = chunkL4RMM2K2_cjs.BaseForm;
8
+
9
+ exports.ActionForm = ActionForm2;
10
+ exports.BaseForm = BaseForm2;
11
+ //# sourceMappingURL=chunk-SCOROMY4.cjs.map
12
+ //# sourceMappingURL=chunk-SCOROMY4.cjs.map
@@ -1 +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-DWBUWDXZ.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. */"]}
1
+ {"version":3,"sources":["../../src/public/experimental/action-form.ts"],"names":["ActionForm","BaseForm"],"mappings":";;;;;AAmBO,IAAMA,WAAAA,GAAoBA;AAe1B,IAAMC,SAAAA,GAAkBA","file":"chunk-SCOROMY4.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. */"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk4KHF42ZL_cjs = require('./chunk-4KHF42ZL.cjs');
4
- var chunkSFNWP5A2_cjs = require('./chunk-SFNWP5A2.cjs');
4
+ var chunk2XYRBWPU_cjs = require('./chunk-2XYRBWPU.cjs');
5
5
  var icons = require('@blueprintjs/icons');
6
6
  var classnames = require('classnames');
7
7
  require('pdfjs-dist/web/pdf_viewer.css');
@@ -187,12 +187,12 @@ function usePdfViewerInstance(options) {
187
187
  }
188
188
 
189
189
  // src/public/pdf-viewer.ts
190
- var PdfViewer2 = chunkSFNWP5A2_cjs.withOsdkMetrics(chunk4KHF42ZL_cjs.PdfViewer, "PdfViewer");
190
+ var PdfViewer2 = chunk2XYRBWPU_cjs.withOsdkMetrics(chunk4KHF42ZL_cjs.PdfViewer, "PdfViewer");
191
191
 
192
192
  exports.PdfViewer = PdfViewer2;
193
193
  exports.PdfViewerContent = PdfViewerContent;
194
194
  exports.PdfViewerProvider = PdfViewerProvider;
195
195
  exports.usePdfViewerContext = usePdfViewerContext;
196
196
  exports.usePdfViewerInstance = usePdfViewerInstance;
197
- //# sourceMappingURL=chunk-C3NXFQEY.cjs.map
198
- //# sourceMappingURL=chunk-C3NXFQEY.cjs.map
197
+ //# sourceMappingURL=chunk-SWNSKM3S.cjs.map
198
+ //# sourceMappingURL=chunk-SWNSKM3S.cjs.map
@@ -1 +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,EAAA,MAAM,SAASC,kCAAA,CAAiB;AAA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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-C3NXFQEY.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\");"]}
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,EAA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AwB,WAAW,CAAA;AAG7D,EAAA,MAAM,gBAAA,GAAmB,OAAA,CAAQ,eAAA,IAAmB,OAAA,CAAQ,gBAAA,IAAoB,KAAA;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-SWNSKM3S.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\");"]}
@@ -9,7 +9,7 @@ var chunkPA7IYPBX_cjs = require('./chunk-PA7IYPBX.cjs');
9
9
  var chunkUCTQICPR_cjs = require('./chunk-UCTQICPR.cjs');
10
10
  var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
11
11
  var chunkKFV264XS_cjs = require('./chunk-KFV264XS.cjs');
12
- var chunkSFNWP5A2_cjs = require('./chunk-SFNWP5A2.cjs');
12
+ var chunk2XYRBWPU_cjs = require('./chunk-2XYRBWPU.cjs');
13
13
  var icons = require('@blueprintjs/icons');
14
14
  var classnames = require('classnames');
15
15
  var React2 = require('react');
@@ -307,9 +307,9 @@ function DocumentViewer({
307
307
  }
308
308
 
309
309
  // src/public/document-viewer.ts
310
- var DocumentViewer2 = chunkSFNWP5A2_cjs.withOsdkMetrics(DocumentViewer, "DocumentViewer");
310
+ var DocumentViewer2 = chunk2XYRBWPU_cjs.withOsdkMetrics(DocumentViewer, "DocumentViewer");
311
311
 
312
312
  exports.DocumentViewer = DocumentViewer2;
313
313
  exports.ViewerType = ViewerType;
314
- //# sourceMappingURL=chunk-R4TB6WYR.cjs.map
315
- //# sourceMappingURL=chunk-R4TB6WYR.cjs.map
314
+ //# sourceMappingURL=chunk-TISC77YX.cjs.map
315
+ //# sourceMappingURL=chunk-TISC77YX.cjs.map
@@ -1 +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,aA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AA,CAAO;AAAA,OACpB,kBAAgBA,uBAAAA,CAAM,aAAA,CAAcc,cAAA,EAAc;AAAA,QAChD,WAAW,sBAAA,CAAO;AAAA,OACnB,CAAA,EAAG,yBAAA,EAA2B,QAAQ,CAAC,CAAA;AAAA,IAC1C;AACE,MAAAC,mCAAA,CAAkB,UAAU,CAAA;AAAA;AAElC;;;ACrIO,IAAMC,eAAAA,GAAiBC,iCAAA,CAAgB,cAAA,EAAiB,gBAAgB","file":"chunk-R4TB6WYR.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\";"]}
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,CAA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A,uBAAoBb,uBAAAA,CAAM,aAAA,CAAc,KAAA,EAAO;AAAA,QAC7C,SAAA,EAAW;AAAA,OACb,kBAAgBA,uBAAAA,CAAM,aAAA,CAAc,KAAA,EAAO;AAAA,QACzC,WAAW,sBAAA,CAAO;AAAA,OACpB,kBAAgBA,uBAAAA,CAAM,aAAA,CAAcc,cAAA,EAAc;AAAA,QAChD,WAAW,sBAAA,CAAO;AAAA,OACnB,CAAA,EAAG,yBAAA,EAA2B,QAAQ,CAAC,CAAA;AAAA,IAC1C;AACE,MAAAC,mCAAA,CAAkB,UAAU,CAAA;AAAA;AAElC;;;ACrIO,IAAMC,eAAAA,GAAiBC,iCAAA,CAAgB,cAAA,EAAiB,gBAAgB","file":"chunk-TISC77YX.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,34 @@
1
+ 'use strict';
2
+
3
+ var chunkILMGORRG_cjs = require('./chunk-ILMGORRG.cjs');
4
+
5
+ // src/public/experimental/filter-list.ts
6
+ var BaseFilterList2 = chunkILMGORRG_cjs.BaseFilterList;
7
+ var FilterList2 = chunkILMGORRG_cjs.FilterList;
8
+ var deserializeFilterStates2 = chunkILMGORRG_cjs.deserializeFilterStates;
9
+ var serializeFilterStates2 = chunkILMGORRG_cjs.serializeFilterStates;
10
+ var FilterPopover2 = chunkILMGORRG_cjs.FilterPopover;
11
+ var FilterInput2 = chunkILMGORRG_cjs.FilterInput;
12
+ var useFilterListState2 = chunkILMGORRG_cjs.useFilterListState;
13
+ var filterHasActiveState2 = chunkILMGORRG_cjs.filterHasActiveState;
14
+ var NO_VALUE2 = chunkILMGORRG_cjs.NO_VALUE;
15
+ var getFilterKey2 = chunkILMGORRG_cjs.getFilterKey;
16
+ var getFilterLabel2 = chunkILMGORRG_cjs.getFilterLabel;
17
+ var summarizeFilterValue2 = chunkILMGORRG_cjs.summarizeFilterValue;
18
+ var narrowObjectSet2 = chunkILMGORRG_cjs.narrowObjectSet;
19
+
20
+ exports.BaseFilterList = BaseFilterList2;
21
+ exports.FilterInput = FilterInput2;
22
+ exports.FilterList = FilterList2;
23
+ exports.FilterPopover = FilterPopover2;
24
+ exports.NO_VALUE = NO_VALUE2;
25
+ exports.deserializeFilterStates = deserializeFilterStates2;
26
+ exports.filterHasActiveState = filterHasActiveState2;
27
+ exports.getFilterKey = getFilterKey2;
28
+ exports.getFilterLabel = getFilterLabel2;
29
+ exports.narrowObjectSet = narrowObjectSet2;
30
+ exports.serializeFilterStates = serializeFilterStates2;
31
+ exports.summarizeFilterValue = summarizeFilterValue2;
32
+ exports.useFilterListState = useFilterListState2;
33
+ //# sourceMappingURL=chunk-U7OKFDY7.cjs.map
34
+ //# sourceMappingURL=chunk-U7OKFDY7.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/filter-list.ts"],"names":["BaseFilterList","FilterList","deserializeFilterStates","serializeFilterStates","FilterPopover","FilterInput","useFilterListState","filterHasActiveState","NO_VALUE","getFilterKey","getFilterLabel","summarizeFilterValue","narrowObjectSet"],"mappings":";;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAO9B,IAAMC,WAAAA,GAAoBA;AAyB1B,IAAMC,wBAAAA,GAAiCA;AAGvC,IAAMC,sBAAAA,GAA+BA;AAGrC,IAAMC,cAAAA,GAAuBA;AAK7B,IAAMC,YAAAA,GAAqBA;AAK3B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,qBAAAA,GAA8BA;AAGpC,IAAMC,SAAAA,GAAkBA;AAGxB,IAAMC,aAAAA,GAAsBA;AAG5B,IAAMC,eAAAA,GAAwBA;AAG9B,IAAMC,qBAAAA,GAA8BA;AAKpC,IAAMC,gBAAAA,GAAyBA","file":"chunk-43B5QRZX.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 \"../filter-list.js\";\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const BaseFilterList = Stable.BaseFilterList;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const FilterList = Stable.FilterList;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const deserializeFilterStates = Stable.deserializeFilterStates;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const serializeFilterStates = Stable.serializeFilterStates;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const FilterPopover = Stable.FilterPopover;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const FilterInput = Stable.FilterInput;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const useFilterListState = Stable.useFilterListState;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const filterHasActiveState = Stable.filterHasActiveState;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const NO_VALUE = Stable.NO_VALUE;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const getFilterKey = Stable.getFilterKey;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const getFilterLabel = Stable.getFilterLabel;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const summarizeFilterValue = Stable.summarizeFilterValue;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const narrowObjectSet = Stable.narrowObjectSet;"]}
1
+ {"version":3,"sources":["../../src/public/experimental/filter-list.ts"],"names":["BaseFilterList","FilterList","deserializeFilterStates","serializeFilterStates","FilterPopover","FilterInput","useFilterListState","filterHasActiveState","NO_VALUE","getFilterKey","getFilterLabel","summarizeFilterValue","narrowObjectSet"],"mappings":";;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAO9B,IAAMC,WAAAA,GAAoBA;AAyB1B,IAAMC,wBAAAA,GAAiCA;AAGvC,IAAMC,sBAAAA,GAA+BA;AAGrC,IAAMC,cAAAA,GAAuBA;AAK7B,IAAMC,YAAAA,GAAqBA;AAK3B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,qBAAAA,GAA8BA;AAGpC,IAAMC,SAAAA,GAAkBA;AAGxB,IAAMC,aAAAA,GAAsBA;AAG5B,IAAMC,eAAAA,GAAwBA;AAG9B,IAAMC,qBAAAA,GAA8BA;AAKpC,IAAMC,gBAAAA,GAAyBA","file":"chunk-U7OKFDY7.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 \"../filter-list.js\";\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const BaseFilterList = Stable.BaseFilterList;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const FilterList = Stable.FilterList;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const deserializeFilterStates = Stable.deserializeFilterStates;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const serializeFilterStates = Stable.serializeFilterStates;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const FilterPopover = Stable.FilterPopover;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const FilterInput = Stable.FilterInput;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const useFilterListState = Stable.useFilterListState;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const filterHasActiveState = Stable.filterHasActiveState;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const NO_VALUE = Stable.NO_VALUE;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const getFilterKey = Stable.getFilterKey;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const getFilterLabel = Stable.getFilterLabel;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const summarizeFilterValue = Stable.summarizeFilterValue;\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\n\n/** @deprecated Import from `@osdk/react-components/filter-list` instead. */\nexport const narrowObjectSet = Stable.narrowObjectSet;"]}
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunk4S7BKRKY_cjs = require('./chunk-4S7BKRKY.cjs');
3
+ var chunk5COMY4KJ_cjs = require('./chunk-5COMY4KJ.cjs');
4
4
  var chunkDTYFQRFD_cjs = require('./chunk-DTYFQRFD.cjs');
5
5
 
6
6
  // src/public/experimental/tiff-renderer.ts
7
7
  var BaseTiffViewer2 = chunkDTYFQRFD_cjs.BaseTiffViewer;
8
- var TiffViewer2 = chunk4S7BKRKY_cjs.TiffViewer;
8
+ var TiffViewer2 = chunk5COMY4KJ_cjs.TiffViewer;
9
9
  var TiffRenderer = chunkDTYFQRFD_cjs.BaseTiffViewer;
10
- var TiffViewerMedia = chunk4S7BKRKY_cjs.TiffViewer;
10
+ var TiffViewerMedia = chunk5COMY4KJ_cjs.TiffViewer;
11
11
 
12
12
  exports.BaseTiffViewer = BaseTiffViewer2;
13
13
  exports.TiffRenderer = TiffRenderer;
14
14
  exports.TiffViewer = TiffViewer2;
15
15
  exports.TiffViewerMedia = TiffViewerMedia;
16
- //# sourceMappingURL=chunk-SCWFVUNY.cjs.map
17
- //# sourceMappingURL=chunk-SCWFVUNY.cjs.map
16
+ //# sourceMappingURL=chunk-UWBFLVJ7.cjs.map
17
+ //# sourceMappingURL=chunk-UWBFLVJ7.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/tiff-renderer.ts"],"names":["BaseTiffViewer","TiffViewer"],"mappings":";;;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAO9B,IAAMC,WAAAA,GAAoBA;AAG1B,IAAM,YAAA,GAAsBD;AAK5B,IAAM,eAAA,GAAyBC","file":"chunk-SCWFVUNY.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 \"../tiff-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const BaseTiffViewer = Stable.BaseTiffViewer;\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const TiffViewer = Stable.TiffViewer;\n\n/** @deprecated Use `BaseTiffViewer` instead. */\nexport const TiffRenderer = Stable.BaseTiffViewer;\n\n/** @deprecated Use `BaseTiffViewerProps` instead. */\n\n/** @deprecated Use `TiffViewer` instead. */\nexport const TiffViewerMedia = Stable.TiffViewer;"]}
1
+ {"version":3,"sources":["../../src/public/experimental/tiff-renderer.ts"],"names":["BaseTiffViewer","TiffViewer"],"mappings":";;;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAO9B,IAAMC,WAAAA,GAAoBA;AAG1B,IAAM,YAAA,GAAsBD;AAK5B,IAAM,eAAA,GAAyBC","file":"chunk-UWBFLVJ7.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 \"../tiff-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const BaseTiffViewer = Stable.BaseTiffViewer;\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const TiffViewer = Stable.TiffViewer;\n\n/** @deprecated Use `BaseTiffViewer` instead. */\nexport const TiffRenderer = Stable.BaseTiffViewer;\n\n/** @deprecated Use `BaseTiffViewerProps` instead. */\n\n/** @deprecated Use `TiffViewer` instead. */\nexport const TiffViewerMedia = Stable.TiffViewer;"]}
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkC3NXFQEY_cjs = require('./chunk-C3NXFQEY.cjs');
3
+ var chunkSWNSKM3S_cjs = require('./chunk-SWNSKM3S.cjs');
4
4
  var chunk4KHF42ZL_cjs = require('./chunk-4KHF42ZL.cjs');
5
5
 
6
6
  // src/public/experimental/pdf-viewer.ts
7
7
  var BasePdfViewer2 = chunk4KHF42ZL_cjs.BasePdfViewer;
8
8
  var PdfViewerAnnotationLayer2 = chunk4KHF42ZL_cjs.PdfViewerAnnotationLayer;
9
- var PdfViewerContent2 = chunkC3NXFQEY_cjs.PdfViewerContent;
9
+ var PdfViewerContent2 = chunkSWNSKM3S_cjs.PdfViewerContent;
10
10
  var PdfViewerOutlineSidebar2 = chunk4KHF42ZL_cjs.PdfViewerOutlineSidebar;
11
11
  var PdfViewerSearchBar2 = chunk4KHF42ZL_cjs.PdfViewerSearchBar;
12
12
  var PdfViewerSidebar2 = chunk4KHF42ZL_cjs.PdfViewerSidebar;
@@ -20,12 +20,12 @@ var usePdfOutline2 = chunk4KHF42ZL_cjs.usePdfOutline;
20
20
  var usePdfViewer2 = chunk4KHF42ZL_cjs.usePdfViewer;
21
21
  var usePdfViewerSearch2 = chunk4KHF42ZL_cjs.usePdfViewerSearch;
22
22
  var usePdfViewerSync2 = chunk4KHF42ZL_cjs.usePdfViewerSync;
23
- var PdfViewerProvider2 = chunkC3NXFQEY_cjs.PdfViewerProvider;
24
- var usePdfViewerContext2 = chunkC3NXFQEY_cjs.usePdfViewerContext;
25
- var usePdfViewerInstance2 = chunkC3NXFQEY_cjs.usePdfViewerInstance;
23
+ var PdfViewerProvider2 = chunkSWNSKM3S_cjs.PdfViewerProvider;
24
+ var usePdfViewerContext2 = chunkSWNSKM3S_cjs.usePdfViewerContext;
25
+ var usePdfViewerInstance2 = chunkSWNSKM3S_cjs.usePdfViewerInstance;
26
26
  var usePdfViewerCore2 = chunk4KHF42ZL_cjs.usePdfViewerCore;
27
27
  var usePdfViewerState2 = chunk4KHF42ZL_cjs.usePdfViewerState;
28
- var PdfViewer2 = chunkC3NXFQEY_cjs.PdfViewer;
28
+ var PdfViewer2 = chunkSWNSKM3S_cjs.PdfViewer;
29
29
 
30
30
  exports.BasePdfViewer = BasePdfViewer2;
31
31
  exports.PdfViewer = PdfViewer2;
@@ -49,5 +49,5 @@ exports.usePdfViewerInstance = usePdfViewerInstance2;
49
49
  exports.usePdfViewerSearch = usePdfViewerSearch2;
50
50
  exports.usePdfViewerState = usePdfViewerState2;
51
51
  exports.usePdfViewerSync = usePdfViewerSync2;
52
- //# sourceMappingURL=chunk-YWWODO6N.cjs.map
53
- //# sourceMappingURL=chunk-YWWODO6N.cjs.map
52
+ //# sourceMappingURL=chunk-VVFG23N6.cjs.map
53
+ //# sourceMappingURL=chunk-VVFG23N6.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/pdf-viewer.ts"],"names":["BasePdfViewer","PdfViewerAnnotationLayer","PdfViewerContent","PdfViewerOutlineSidebar","PdfViewerSearchBar","PdfViewerSidebar","PdfViewerToolbar","usePdfAnnotationPortals","usePdfAnnotationsByPage","usePdfDocument","usePdfFormFields","usePdfHighlightMode","usePdfOutline","usePdfViewer","usePdfViewerSearch","usePdfViewerSync","PdfViewerProvider","usePdfViewerContext","usePdfViewerInstance","usePdfViewerCore","usePdfViewerState","PdfViewer"],"mappings":";;;;;;AAmBO,IAAMA,cAAAA,GAAuBA;AAyB7B,IAAMC,yBAAAA,GAAkCA;AAKxC,IAAMC,iBAAAA,GAA0BA;AAKhC,IAAMC,wBAAAA,GAAiCA;AAKvC,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,iBAAAA,GAA0BA;AAKhC,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,wBAAAA,GAAiCA;AAGvC,IAAMC,wBAAAA,GAAiCA;AAGvC,IAAMC,eAAAA,GAAwBA;AAG9B,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,oBAAAA,GAA6BA;AAOnC,IAAMC,cAAAA,GAAuBA;AAG7B,IAAMC,aAAAA,GAAsBA;AAK5B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,iBAAAA,GAA0BA;AAWhC,IAAMC,kBAAAA,GAA2BA;AAGjC,IAAMC,oBAAAA,GAA6BA;AAGnC,IAAMC,qBAAAA,GAA8BA;AAGpC,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,kBAAAA,GAA2BA;AAOjC,IAAMC,UAAAA,GAAmBA","file":"chunk-YWWODO6N.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 \"../pdf-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const BasePdfViewer = Stable.BasePdfViewer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerAnnotationLayer = Stable.PdfViewerAnnotationLayer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerContent = Stable.PdfViewerContent;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerOutlineSidebar = Stable.PdfViewerOutlineSidebar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerSearchBar = Stable.PdfViewerSearchBar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerSidebar = Stable.PdfViewerSidebar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerToolbar = Stable.PdfViewerToolbar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfAnnotationPortals = Stable.usePdfAnnotationPortals;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfAnnotationsByPage = Stable.usePdfAnnotationsByPage;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfDocument = Stable.usePdfDocument;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfFormFields = Stable.usePdfFormFields;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfHighlightMode = Stable.usePdfHighlightMode;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfOutline = Stable.usePdfOutline;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewer = Stable.usePdfViewer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerSearch = Stable.usePdfViewerSearch;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerSync = Stable.usePdfViewerSync;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerProvider = Stable.PdfViewerProvider;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerContext = Stable.usePdfViewerContext;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerInstance = Stable.usePdfViewerInstance;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerCore = Stable.usePdfViewerCore;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerState = Stable.usePdfViewerState;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewer = Stable.PdfViewer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */"]}
1
+ {"version":3,"sources":["../../src/public/experimental/pdf-viewer.ts"],"names":["BasePdfViewer","PdfViewerAnnotationLayer","PdfViewerContent","PdfViewerOutlineSidebar","PdfViewerSearchBar","PdfViewerSidebar","PdfViewerToolbar","usePdfAnnotationPortals","usePdfAnnotationsByPage","usePdfDocument","usePdfFormFields","usePdfHighlightMode","usePdfOutline","usePdfViewer","usePdfViewerSearch","usePdfViewerSync","PdfViewerProvider","usePdfViewerContext","usePdfViewerInstance","usePdfViewerCore","usePdfViewerState","PdfViewer"],"mappings":";;;;;;AAmBO,IAAMA,cAAAA,GAAuBA;AAyB7B,IAAMC,yBAAAA,GAAkCA;AAKxC,IAAMC,iBAAAA,GAA0BA;AAKhC,IAAMC,wBAAAA,GAAiCA;AAKvC,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,iBAAAA,GAA0BA;AAKhC,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,wBAAAA,GAAiCA;AAGvC,IAAMC,wBAAAA,GAAiCA;AAGvC,IAAMC,eAAAA,GAAwBA;AAG9B,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,oBAAAA,GAA6BA;AAOnC,IAAMC,cAAAA,GAAuBA;AAG7B,IAAMC,aAAAA,GAAsBA;AAK5B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,iBAAAA,GAA0BA;AAWhC,IAAMC,kBAAAA,GAA2BA;AAGjC,IAAMC,oBAAAA,GAA6BA;AAGnC,IAAMC,qBAAAA,GAA8BA;AAGpC,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,kBAAAA,GAA2BA;AAOjC,IAAMC,UAAAA,GAAmBA","file":"chunk-VVFG23N6.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 \"../pdf-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const BasePdfViewer = Stable.BasePdfViewer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerAnnotationLayer = Stable.PdfViewerAnnotationLayer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerContent = Stable.PdfViewerContent;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerOutlineSidebar = Stable.PdfViewerOutlineSidebar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerSearchBar = Stable.PdfViewerSearchBar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerSidebar = Stable.PdfViewerSidebar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerToolbar = Stable.PdfViewerToolbar;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfAnnotationPortals = Stable.usePdfAnnotationPortals;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfAnnotationsByPage = Stable.usePdfAnnotationsByPage;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfDocument = Stable.usePdfDocument;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfFormFields = Stable.usePdfFormFields;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfHighlightMode = Stable.usePdfHighlightMode;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfOutline = Stable.usePdfOutline;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewer = Stable.usePdfViewer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerSearch = Stable.usePdfViewerSearch;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerSync = Stable.usePdfViewerSync;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewerProvider = Stable.PdfViewerProvider;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerContext = Stable.usePdfViewerContext;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerInstance = Stable.usePdfViewerInstance;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerCore = Stable.usePdfViewerCore;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const usePdfViewerState = Stable.usePdfViewerState;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */\nexport const PdfViewer = Stable.PdfViewer;\n\n/** @deprecated Import from `@osdk/react-components/pdf-viewer` instead. */"]}