@osdk/react-components 0.61.0 → 0.61.1-main-cb903afe8d2c85db2c36af0c2d0bd8605ba808fe

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 (100) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/browser/object-table/Table.js +1 -1
  3. package/build/browser/object-table/Table.js.map +1 -1
  4. package/build/browser/util/UserAgent.js +1 -1
  5. package/build/browser/util/UserAgent.js.map +1 -1
  6. package/build/cjs/{chunk-N6FIHXUT.cjs → chunk-37AY5JER.cjs} +5 -5
  7. package/build/cjs/{chunk-N6FIHXUT.cjs.map → chunk-37AY5JER.cjs.map} +1 -1
  8. package/build/cjs/{chunk-NUK5FOSF.cjs → chunk-3MQXIA4N.cjs} +4 -4
  9. package/build/cjs/{chunk-NUK5FOSF.cjs.map → chunk-3MQXIA4N.cjs.map} +1 -1
  10. package/build/cjs/chunk-56W3THMZ.cjs +11 -0
  11. package/build/cjs/{chunk-ROVEY2XZ.cjs.map → chunk-56W3THMZ.cjs.map} +1 -1
  12. package/build/cjs/chunk-5766NPOV.cjs +12 -0
  13. package/build/cjs/{chunk-57GL4OIU.cjs.map → chunk-5766NPOV.cjs.map} +1 -1
  14. package/build/cjs/chunk-62R6FPCN.cjs +11 -0
  15. package/build/cjs/{chunk-LNOI7H2O.cjs.map → chunk-62R6FPCN.cjs.map} +1 -1
  16. package/build/cjs/{chunk-7R2QPKDB.cjs → chunk-6GBISSP2.cjs} +4 -4
  17. package/build/cjs/{chunk-7R2QPKDB.cjs.map → chunk-6GBISSP2.cjs.map} +1 -1
  18. package/build/cjs/chunk-6V2DNZY7.cjs +11 -0
  19. package/build/cjs/{chunk-ACHOHMXA.cjs.map → chunk-6V2DNZY7.cjs.map} +1 -1
  20. package/build/cjs/{chunk-3CGO6BJA.cjs → chunk-74CEPTWM.cjs} +8 -8
  21. package/build/cjs/{chunk-3CGO6BJA.cjs.map → chunk-74CEPTWM.cjs.map} +1 -1
  22. package/build/cjs/{chunk-HMCDTUEW.cjs → chunk-7LQNKCCZ.cjs} +4 -4
  23. package/build/cjs/{chunk-HMCDTUEW.cjs.map → chunk-7LQNKCCZ.cjs.map} +1 -1
  24. package/build/cjs/chunk-7NWS5PA4.cjs +48 -0
  25. package/build/cjs/{chunk-WL56Z5NS.cjs.map → chunk-7NWS5PA4.cjs.map} +1 -1
  26. package/build/cjs/{chunk-3SBGGTFL.cjs → chunk-7TCBI5F3.cjs} +4 -4
  27. package/build/cjs/{chunk-3SBGGTFL.cjs.map → chunk-7TCBI5F3.cjs.map} +1 -1
  28. package/build/cjs/{chunk-NBECY2US.cjs → chunk-C3MJP7G2.cjs} +3 -3
  29. package/build/cjs/chunk-C3MJP7G2.cjs.map +1 -0
  30. package/build/cjs/chunk-DPNDWWGI.cjs +12 -0
  31. package/build/cjs/{chunk-MWNYJFG6.cjs.map → chunk-DPNDWWGI.cjs.map} +1 -1
  32. package/build/cjs/{chunk-NTBCTN2U.cjs → chunk-EOFGPLJM.cjs} +4 -4
  33. package/build/cjs/{chunk-NTBCTN2U.cjs.map → chunk-EOFGPLJM.cjs.map} +1 -1
  34. package/build/cjs/{chunk-YHMDFD5J.cjs → chunk-F5RWMLTV.cjs} +4 -4
  35. package/build/cjs/{chunk-YHMDFD5J.cjs.map → chunk-F5RWMLTV.cjs.map} +1 -1
  36. package/build/cjs/chunk-I2LJSSJI.cjs +34 -0
  37. package/build/cjs/{chunk-BOUML6UZ.cjs.map → chunk-I2LJSSJI.cjs.map} +1 -1
  38. package/build/cjs/chunk-K5GL4D7M.cjs +11 -0
  39. package/build/cjs/{chunk-K4EZHHG5.cjs.map → chunk-K5GL4D7M.cjs.map} +1 -1
  40. package/build/cjs/chunk-MECBYTRO.cjs +11 -0
  41. package/build/cjs/{chunk-2L52ISL4.cjs.map → chunk-MECBYTRO.cjs.map} +1 -1
  42. package/build/cjs/chunk-ONUGZ6J7.cjs +11 -0
  43. package/build/cjs/{chunk-L4LPGT2S.cjs.map → chunk-ONUGZ6J7.cjs.map} +1 -1
  44. package/build/cjs/{chunk-CHPLIOOB.cjs → chunk-P2U2QKKL.cjs} +5 -5
  45. package/build/cjs/chunk-P2U2QKKL.cjs.map +1 -0
  46. package/build/cjs/{chunk-DTRPRRNF.cjs → chunk-P4BY4YMR.cjs} +4 -4
  47. package/build/cjs/{chunk-DTRPRRNF.cjs.map → chunk-P4BY4YMR.cjs.map} +1 -1
  48. package/build/cjs/{chunk-IZ74MWVK.cjs → chunk-RKPLZQ2P.cjs} +4 -4
  49. package/build/cjs/{chunk-IZ74MWVK.cjs.map → chunk-RKPLZQ2P.cjs.map} +1 -1
  50. package/build/cjs/{chunk-DIFKL7BU.cjs → chunk-SEYZDKCF.cjs} +4 -4
  51. package/build/cjs/{chunk-DIFKL7BU.cjs.map → chunk-SEYZDKCF.cjs.map} +1 -1
  52. package/build/cjs/{chunk-QCVVEZ4E.cjs → chunk-U3CKHYDY.cjs} +5 -5
  53. package/build/cjs/{chunk-QCVVEZ4E.cjs.map → chunk-U3CKHYDY.cjs.map} +1 -1
  54. package/build/cjs/{chunk-4N5G4SGE.cjs → chunk-UDFUUQ4J.cjs} +4 -4
  55. package/build/cjs/{chunk-4N5G4SGE.cjs.map → chunk-UDFUUQ4J.cjs.map} +1 -1
  56. package/build/cjs/{chunk-RJXOGQTP.cjs → chunk-XTULLQD3.cjs} +4 -4
  57. package/build/cjs/{chunk-RJXOGQTP.cjs.map → chunk-XTULLQD3.cjs.map} +1 -1
  58. package/build/cjs/public/action-form.cjs +4 -4
  59. package/build/cjs/public/document-viewer.cjs +4 -4
  60. package/build/cjs/public/email-viewer.cjs +3 -3
  61. package/build/cjs/public/experimental/action-form.cjs +5 -5
  62. package/build/cjs/public/experimental/cbac-picker.cjs +11 -11
  63. package/build/cjs/public/experimental/document-viewer.cjs +5 -5
  64. package/build/cjs/public/experimental/email-viewer.cjs +5 -5
  65. package/build/cjs/public/experimental/filter-list.cjs +16 -16
  66. package/build/cjs/public/experimental/image-viewer.cjs +5 -5
  67. package/build/cjs/public/experimental/markdown-renderer.cjs +7 -7
  68. package/build/cjs/public/experimental/object-table.cjs +23 -23
  69. package/build/cjs/public/experimental/pdf-viewer.cjs +25 -25
  70. package/build/cjs/public/experimental/spreadsheet-viewer.cjs +5 -5
  71. package/build/cjs/public/experimental/tiff-renderer.cjs +7 -7
  72. package/build/cjs/public/experimental/video-viewer.cjs +5 -5
  73. package/build/cjs/public/experimental/xml-viewer.cjs +5 -5
  74. package/build/cjs/public/experimental.cjs +112 -112
  75. package/build/cjs/public/filter-list.cjs +15 -15
  76. package/build/cjs/public/image-viewer.cjs +3 -3
  77. package/build/cjs/public/markdown-viewer.cjs +3 -3
  78. package/build/cjs/public/object-table.cjs +22 -22
  79. package/build/cjs/public/pdf-viewer.cjs +7 -7
  80. package/build/cjs/public/spreadsheet-viewer.cjs +3 -3
  81. package/build/cjs/public/tiff-viewer.cjs +3 -3
  82. package/build/cjs/public/video-viewer.cjs +3 -3
  83. package/build/cjs/public/xml-viewer.cjs +3 -3
  84. package/build/esm/object-table/Table.js +1 -1
  85. package/build/esm/object-table/Table.js.map +1 -1
  86. package/build/esm/util/UserAgent.js +1 -1
  87. package/build/esm/util/UserAgent.js.map +1 -1
  88. package/package.json +8 -8
  89. package/build/cjs/chunk-2L52ISL4.cjs +0 -11
  90. package/build/cjs/chunk-57GL4OIU.cjs +0 -12
  91. package/build/cjs/chunk-ACHOHMXA.cjs +0 -11
  92. package/build/cjs/chunk-BOUML6UZ.cjs +0 -34
  93. package/build/cjs/chunk-CHPLIOOB.cjs.map +0 -1
  94. package/build/cjs/chunk-K4EZHHG5.cjs +0 -11
  95. package/build/cjs/chunk-L4LPGT2S.cjs +0 -11
  96. package/build/cjs/chunk-LNOI7H2O.cjs +0 -11
  97. package/build/cjs/chunk-MWNYJFG6.cjs +0 -12
  98. package/build/cjs/chunk-NBECY2US.cjs.map +0 -1
  99. package/build/cjs/chunk-ROVEY2XZ.cjs +0 -11
  100. package/build/cjs/chunk-WL56Z5NS.cjs +0 -48
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk4KHF42ZL_cjs = require('./chunk-4KHF42ZL.cjs');
4
- var chunkNBECY2US_cjs = require('./chunk-NBECY2US.cjs');
4
+ var chunkC3MJP7G2_cjs = require('./chunk-C3MJP7G2.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 = chunkNBECY2US_cjs.withOsdkMetrics(chunk4KHF42ZL_cjs.PdfViewer, "PdfViewer");
190
+ var PdfViewer2 = chunkC3MJP7G2_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-YHMDFD5J.cjs.map
198
- //# sourceMappingURL=chunk-YHMDFD5J.cjs.map
197
+ //# sourceMappingURL=chunk-F5RWMLTV.cjs.map
198
+ //# sourceMappingURL=chunk-F5RWMLTV.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,gB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AAc,OAAA,CAAQ,YAAA;AAAA,IACtB,cAAc,OAAA,CAAQ;AAAA,GACvB,CAAA;AACD,EAAA,MAAM,WAAA,GAAc,QAAQ,WAAA,IAAeH,wCAAA;AAC3C,EAAA,MAAM,iBAAA,GAAoBE,0CAAwB,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-YHMDFD5J.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,EAAc,gBAAA;AAAA,EACd,aAAA,EAAe,iBAAA;AAAA,EACf,QAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF,CAAA,EAAG;AACD,EAAA,MAAM,SAASC,kCAAA,CAAiB;AAAA,IAC9B,GAAA;AAAA,IACA,WAAA;AAAA,IACA,WAAA;AAAA,IACA,YAAA;AAAA,IACA;AAAA,GACD,CAAA;AACD,EAAA,MAAM,iBAAA,GAAoBC,0CAAwB,WAAW,CAAA;AAC7D,EAAAC,kCAAA,CAAiB;AAAA,IACf,cAAc,MAAA,CAAO,YAAA;AAAA,IACrB,aAAa,MAAA,CAAO,WAAA;AAAA,IACpB,UAAU,MAAA,CAAO,QAAA;AAAA,IACjB,QAAA;AAAA,IACA;AAAA,GACD,CAAA;AAGD,EAAA,MAAM,eAAA,GAAkBC,aAAO,gBAAgB,CAAA;AAC/C,EAAA,eAAA,CAAgB,OAAA,GAAU,gBAAA;AAC1B,EAAA,MAAM,gBAAA,GAAmBA,aAAO,iBAAiB,CAAA;AACjD,EAAA,gBAAA,CAAiB,OAAA,GAAU,iBAAA;AAC3B,EAAA,MAAM,iBAAA,GAAoBA,aAAO,IAAI,CAAA;AACrC,EAAAC,eAAA,CAAU,SAAS,gBAAA,GAAmB;AACpC,IAAA,IAAI,kBAAkB,OAAA,EAAS;AAC7B,MAAA;AAAA,IACF;AACA,IAAA,eAAA,CAAgB,OAAA,GAAU,OAAO,WAAW,CAAA;AAAA,EAC9C,CAAA,EAAG,CAAC,MAAA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,MAAA,CAAO,YAAA;AAAA,IACrB,aAAa,MAAA,CAAO,WAAA;AAAA,IACpB,UAAU,MAAA,CAAO,QAAA;AAAA,IACjB,UAAU,OAAA,CAAQ,QAAA;AAAA,IAClB,cAAc,OAAA,CAAQ,YAAA;AAAA,IACtB,cAAc,OAAA,CAAQ;AAAA,GACvB,CAAA;AACD,EAAA,MAAM,WAAA,GAAc,QAAQ,WAAA,IAAeH,wCAAA;AAC3C,EAAA,MAAM,iBAAA,GAAoBE,0CAAwB,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-F5RWMLTV.cjs","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Error as ErrorIcon, Spin } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport \"pdfjs-dist/web/pdf_viewer.css\";\nimport React, { useEffect, useRef } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"../constants.js\";\nimport { usePdfAnnotationsByPage } from \"../hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"../hooks/usePdfFormFields.js\";\nimport { usePdfViewerCore } from \"../hooks/usePdfViewerCore.js\";\nimport { PdfAnnotationOverlay } from \"./PdfAnnotationOverlay.js\";\nimport styles from \"../BasePdfViewer.module.css\";\nexport function PdfViewerContent({\n src,\n annotations = EMPTY_ANNOTATION_ARRAY,\n onAnnotationClick,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale,\n onPageChange: onPageChangeProp,\n onScaleChange: onScaleChangeProp,\n formData,\n onFormChange,\n className\n}) {\n const viewer = usePdfViewerCore({\n src,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale\n });\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData,\n onFormChange\n });\n\n // Use refs for callbacks to avoid firing on initial mount\n const onPageChangeRef = useRef(onPageChangeProp);\n onPageChangeRef.current = onPageChangeProp;\n const onScaleChangeRef = useRef(onScaleChangeProp);\n onScaleChangeRef.current = onScaleChangeProp;\n const isInitialMountRef = useRef(true);\n useEffect(function notifyPageChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onPageChangeRef.current?.(viewer.currentPage);\n }, [viewer.currentPage]);\n useEffect(function notifyScaleChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onScaleChangeRef.current?.(viewer.scale);\n }, [viewer.scale]);\n useEffect(function clearInitialMount() {\n isInitialMountRef.current = false;\n }, []);\n const rootClassName = classnames(styles.pdfViewer, className);\n if (viewer.loading) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, /*#__PURE__*/React.createElement(Spin, {\n className: styles.spinnerIcon\n }), \"Loading\\u2026\"));\n }\n if (viewer.error != null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.errorContainer\n }, /*#__PURE__*/React.createElement(ErrorIcon, {\n className: styles.errorIcon\n }), \"Failed to load PDF: \", viewer.error.message));\n }\n if (viewer.document == null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, \"No document\"));\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.scrollContainerWrapper\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.containerRef,\n className: styles.scrollContainer\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.viewerRef,\n className: \"pdfViewer\"\n }), viewer.portalTargets.map(target => {\n const pageAnnotations = annotationsByPage[target.pageNumber] ?? EMPTY_ANNOTATION_ARRAY;\n if (pageAnnotations.length === 0) {\n return null;\n }\n return /*#__PURE__*/React.createElement(PdfAnnotationOverlay, {\n key: target.pageNumber,\n target: target,\n annotations: pageAnnotations,\n onAnnotationClick: onAnnotationClick\n });\n }))));\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { createContext, useContext, useMemo } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"./constants.js\";\nimport { usePdfAnnotationsByPage } from \"./hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"./hooks/usePdfFormFields.js\";\nimport { usePdfHighlightMode } from \"./hooks/usePdfHighlightMode.js\";\nimport { usePdfViewerState } from \"./hooks/usePdfViewerState.js\";\n\n/** The shape of the value provided by {@link PdfViewerProvider}. */\n\nconst PdfViewerContext = /*#__PURE__*/createContext(null);\n/** Provides {@link PdfViewerContextValue} to descendant components. */\nexport function PdfViewerProvider({\n value,\n children\n}) {\n return /*#__PURE__*/React.createElement(PdfViewerContext.Provider, {\n value: value\n }, children);\n}\n\n/**\n * Returns the nearest {@link PdfViewerContextValue} from a {@link PdfViewerProvider}.\n * Throws if called outside a provider.\n */\nexport function usePdfViewerContext() {\n const ctx = useContext(PdfViewerContext);\n if (ctx == null) {\n throw new Error(\"usePdfViewerContext must be used within a PdfViewerProvider\");\n }\n return ctx;\n}\n\n/**\n * Consumer-facing setup hook analogous to react-hook-form's `useForm()`.\n * Accepts viewer options and returns a {@link PdfViewerContextValue} suitable\n * for passing to {@link PdfViewerProvider}.\n */\nexport function usePdfViewerInstance(options) {\n const viewer = usePdfViewerState({\n src: options.src,\n defaultPage: options.defaultPage,\n initialPage: options.initialPage,\n defaultScale: options.defaultScale,\n initialScale: options.initialScale,\n defaultAutoSize: options.defaultAutoSize,\n initialAutoSize: options.initialAutoSize,\n defaultSidebarOpen: options.defaultSidebarOpen,\n initialSidebarOpen: options.initialSidebarOpen,\n sidebarMode: options.sidebarMode,\n onDownload: options.onDownload\n });\n const {\n highlightModeActive,\n toggleHighlightMode\n } = usePdfHighlightMode({\n pdfViewerRef: viewer.pdfViewerRef,\n document: viewer.document,\n enabled: options.enableHighlight ?? options.highlightEnabled ?? false,\n onTextHighlight: options.onTextHighlight,\n onHighlightDelete: options.onHighlightDelete\n });\n const {\n hasFormFields,\n submitFormData\n } = usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData: options.formData,\n onFormSubmit: options.onFormSubmit,\n onFormChange: options.onFormChange\n });\n const annotations = options.annotations ?? EMPTY_ANNOTATION_ARRAY;\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n\n // `highlightEnabled` is the deprecated spelling of `enableHighlight`.\n const highlightEnabled = options.enableHighlight ?? options.highlightEnabled ?? false;\n const enableDownload = options.enableDownload ?? false;\n const enableFormSave = options.onFormSubmit != null && hasFormFields;\n const {\n onAnnotationClick,\n outlineIcons\n } = options;\n return useMemo(() => ({\n ...viewer,\n highlightEnabled,\n highlightModeActive,\n toggleHighlightMode,\n hasFormFields,\n submitFormData,\n annotations,\n annotationsByPage,\n onAnnotationClick,\n enableDownload,\n enableFormSave,\n outlineIcons\n }), [viewer, highlightEnabled, highlightModeActive, toggleHighlightMode, hasFormFields, submitFormData, annotations, annotationsByPage, onAnnotationClick, enableDownload, enableFormSave, outlineIcons]);\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BasePdfViewer\nexport { BasePdfViewer } from \"../pdf-viewer/BasePdfViewer.js\";\n// PdfViewer building blocks\nexport { PdfViewerAnnotationLayer } from \"../pdf-viewer/components/PdfViewerAnnotationLayer.js\";\nexport { PdfViewerContent } from \"../pdf-viewer/components/PdfViewerContent.js\";\nexport { PdfViewerOutlineSidebar } from \"../pdf-viewer/components/PdfViewerOutlineSidebar.js\";\nexport { PdfViewerSearchBar } from \"../pdf-viewer/components/PdfViewerSearchBar.js\";\nexport { PdfViewerSidebar } from \"../pdf-viewer/components/PdfViewerSidebar.js\";\nexport { PdfViewerToolbar } from \"../pdf-viewer/components/PdfViewerToolbar.js\";\n\n// PdfViewer hooks — primitive\nexport { usePdfAnnotationPortals } from \"../pdf-viewer/hooks/usePdfAnnotationPortals.js\";\nexport { usePdfAnnotationsByPage } from \"../pdf-viewer/hooks/usePdfAnnotationsByPage.js\";\nexport { usePdfDocument } from \"../pdf-viewer/hooks/usePdfDocument.js\";\nexport { usePdfFormFields } from \"../pdf-viewer/hooks/usePdfFormFields.js\";\nexport { usePdfHighlightMode } from \"../pdf-viewer/hooks/usePdfHighlightMode.js\";\nexport { usePdfOutline } from \"../pdf-viewer/hooks/usePdfOutline.js\";\nexport { usePdfViewer } from \"../pdf-viewer/hooks/usePdfViewer.js\";\nexport { usePdfViewerSearch } from \"../pdf-viewer/hooks/usePdfViewerSearch.js\";\nexport { usePdfViewerSync } from \"../pdf-viewer/hooks/usePdfViewerSync.js\";\n\n// PdfViewer context\n\nexport { PdfViewerProvider, usePdfViewerContext, usePdfViewerInstance } from \"../pdf-viewer/PdfViewerContext.js\";\n\n// PdfViewer hooks — composition\nexport { usePdfViewerCore } from \"../pdf-viewer/hooks/usePdfViewerCore.js\";\nexport { usePdfViewerState } from \"../pdf-viewer/hooks/usePdfViewerState.js\";\n\n// PdfViewer (Media wrapper)\nimport { PdfViewer as _PdfViewer } from \"../pdf-viewer/PdfViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const PdfViewer = withOsdkMetrics(_PdfViewer, \"PdfViewer\");"]}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var chunkEOFGPLJM_cjs = require('./chunk-EOFGPLJM.cjs');
4
+
5
+ // src/public/experimental/filter-list.ts
6
+ var BaseFilterList2 = chunkEOFGPLJM_cjs.BaseFilterList;
7
+ var FilterList2 = chunkEOFGPLJM_cjs.FilterList;
8
+ var deserializeFilterStates2 = chunkEOFGPLJM_cjs.deserializeFilterStates;
9
+ var serializeFilterStates2 = chunkEOFGPLJM_cjs.serializeFilterStates;
10
+ var FilterPopover2 = chunkEOFGPLJM_cjs.FilterPopover;
11
+ var FilterInput2 = chunkEOFGPLJM_cjs.FilterInput;
12
+ var useFilterListState2 = chunkEOFGPLJM_cjs.useFilterListState;
13
+ var filterHasActiveState2 = chunkEOFGPLJM_cjs.filterHasActiveState;
14
+ var NO_VALUE2 = chunkEOFGPLJM_cjs.NO_VALUE;
15
+ var getFilterKey2 = chunkEOFGPLJM_cjs.getFilterKey;
16
+ var getFilterLabel2 = chunkEOFGPLJM_cjs.getFilterLabel;
17
+ var summarizeFilterValue2 = chunkEOFGPLJM_cjs.summarizeFilterValue;
18
+ var narrowObjectSet2 = chunkEOFGPLJM_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-I2LJSSJI.cjs.map
34
+ //# sourceMappingURL=chunk-I2LJSSJI.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-BOUML6UZ.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-I2LJSSJI.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;"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkDTYFQRFD_cjs = require('./chunk-DTYFQRFD.cjs');
4
+ var chunkC3MJP7G2_cjs = require('./chunk-C3MJP7G2.cjs');
5
+
6
+ // src/public/tiff-viewer.ts
7
+ var TiffViewer2 = chunkC3MJP7G2_cjs.withOsdkMetrics(chunkDTYFQRFD_cjs.TiffViewer, "TiffViewer");
8
+
9
+ exports.TiffViewer = TiffViewer2;
10
+ //# sourceMappingURL=chunk-K5GL4D7M.cjs.map
11
+ //# sourceMappingURL=chunk-K5GL4D7M.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/tiff-viewer.ts"],"names":["TiffViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,WAAAA,GAAaC,iCAAA,CAAgBD,4BAAA,EAAa,YAAY","file":"chunk-K4EZHHG5.cjs","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TiffViewer as _TiffViewer } from \"../images/tiff-viewer/TiffViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseTiffViewer\nexport { BaseTiffViewer } from \"../images/tiff-viewer/BaseTiffViewer.js\";\n// TiffViewer (Media wrapper)\nexport const TiffViewer = withOsdkMetrics(_TiffViewer, \"TiffViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/tiff-viewer.ts"],"names":["TiffViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,WAAAA,GAAaC,iCAAA,CAAgBD,4BAAA,EAAa,YAAY","file":"chunk-K5GL4D7M.cjs","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TiffViewer as _TiffViewer } from \"../images/tiff-viewer/TiffViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseTiffViewer\nexport { BaseTiffViewer } from \"../images/tiff-viewer/BaseTiffViewer.js\";\n// TiffViewer (Media wrapper)\nexport const TiffViewer = withOsdkMetrics(_TiffViewer, \"TiffViewer\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
4
+ var chunkC3MJP7G2_cjs = require('./chunk-C3MJP7G2.cjs');
5
+
6
+ // src/public/xml-viewer.ts
7
+ var XmlViewer2 = chunkC3MJP7G2_cjs.withOsdkMetrics(chunkRVZE7LPI_cjs.XmlViewer, "XmlViewer");
8
+
9
+ exports.XmlViewer = XmlViewer2;
10
+ //# sourceMappingURL=chunk-MECBYTRO.cjs.map
11
+ //# sourceMappingURL=chunk-MECBYTRO.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/xml-viewer.ts"],"names":["XmlViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-2L52ISL4.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// BaseXmlViewer\nexport { BaseXmlViewer } from \"../xml-viewer/BaseXmlViewer.js\";\n// XmlViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nimport { XmlViewer as _XmlViewer } from \"../xml-viewer/XmlViewer.js\";\nexport const XmlViewer = withOsdkMetrics(_XmlViewer, \"XmlViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/xml-viewer.ts"],"names":["XmlViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-MECBYTRO.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// BaseXmlViewer\nexport { BaseXmlViewer } from \"../xml-viewer/BaseXmlViewer.js\";\n// XmlViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nimport { XmlViewer as _XmlViewer } from \"../xml-viewer/XmlViewer.js\";\nexport const XmlViewer = withOsdkMetrics(_XmlViewer, \"XmlViewer\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
4
+ var chunkC3MJP7G2_cjs = require('./chunk-C3MJP7G2.cjs');
5
+
6
+ // src/public/image-viewer.ts
7
+ var ImageViewer2 = chunkC3MJP7G2_cjs.withOsdkMetrics(chunkVOROB7KJ_cjs.ImageViewer, "ImageViewer");
8
+
9
+ exports.ImageViewer = ImageViewer2;
10
+ //# sourceMappingURL=chunk-ONUGZ6J7.cjs.map
11
+ //# sourceMappingURL=chunk-ONUGZ6J7.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/image-viewer.ts"],"names":["ImageViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-L4LPGT2S.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BaseImageViewer\nexport { BaseImageViewer } from \"../images/image-viewer/BaseImageViewer.js\";\n// ImageViewer (Media wrapper)\nimport { ImageViewer as _ImageViewer } from \"../images/image-viewer/ImageViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const ImageViewer = withOsdkMetrics(_ImageViewer, \"ImageViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/image-viewer.ts"],"names":["ImageViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-ONUGZ6J7.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BaseImageViewer\nexport { BaseImageViewer } from \"../images/image-viewer/BaseImageViewer.js\";\n// ImageViewer (Media wrapper)\nimport { ImageViewer as _ImageViewer } from \"../images/image-viewer/ImageViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const ImageViewer = withOsdkMetrics(_ImageViewer, \"ImageViewer\");"]}
@@ -10,7 +10,7 @@ var chunk62TDTOSI_cjs = require('./chunk-62TDTOSI.cjs');
10
10
  var chunkYE4F6HIR_cjs = require('./chunk-YE4F6HIR.cjs');
11
11
  var chunk7LXS66DW_cjs = require('./chunk-7LXS66DW.cjs');
12
12
  var chunkQP2LHBCZ_cjs = require('./chunk-QP2LHBCZ.cjs');
13
- var chunkNBECY2US_cjs = require('./chunk-NBECY2US.cjs');
13
+ var chunkC3MJP7G2_cjs = require('./chunk-C3MJP7G2.cjs');
14
14
  var reactTable = require('@tanstack/react-table');
15
15
  var React21 = require('react');
16
16
  var react = require('@osdk/react');
@@ -3155,7 +3155,7 @@ function BaseTableInner({
3155
3155
  setFocusedRowId,
3156
3156
  isInEditMode: editableConfig?.editModeState.isActive,
3157
3157
  getRowAttributes
3158
- }))), !hasData && error == null && (renderEmptyState != null ? renderEmptyState() : /* @__PURE__ */ React21__namespace.default.createElement(NonIdealState, {
3158
+ }))), !hasData && !isLoading && error == null && (renderEmptyState != null ? renderEmptyState() : /* @__PURE__ */ React21__namespace.default.createElement(NonIdealState, {
3159
3159
  message: "No Data"
3160
3160
  })), error != null && /* @__PURE__ */ React21__namespace.default.createElement(NonIdealState, {
3161
3161
  message: `Error Loading Data: ${error.message}`
@@ -3396,7 +3396,7 @@ function ObjectTable({
3396
3396
  }
3397
3397
 
3398
3398
  // src/public/object-table.ts
3399
- var ObjectTable2 = chunkNBECY2US_cjs.withOsdkMetrics(ObjectTable, "ObjectTable");
3399
+ var ObjectTable2 = chunkC3MJP7G2_cjs.withOsdkMetrics(ObjectTable, "ObjectTable");
3400
3400
 
3401
3401
  exports.BaseTable = BaseTable;
3402
3402
  exports.ColumnConfigDialog = ColumnConfigDialog;
@@ -3418,5 +3418,5 @@ exports.useObjectTableSnapshot = useObjectTableSnapshot;
3418
3418
  exports.useRowSelection = useRowSelection;
3419
3419
  exports.useSelectionColumn = useSelectionColumn;
3420
3420
  exports.useTableSorting = useTableSorting;
3421
- //# sourceMappingURL=chunk-CHPLIOOB.cjs.map
3422
- //# sourceMappingURL=chunk-CHPLIOOB.cjs.map
3421
+ //# sourceMappingURL=chunk-P2U2QKKL.cjs.map
3422
+ //# sourceMappingURL=chunk-P2U2QKKL.cjs.map