@osdk/react-components 0.63.0 → 0.64.0-amishshah-cw-cli-widgetset-git-branch-19e7b09923a80d8ba8bd6dfd2ddc2a23b5b74366
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.
- package/CHANGELOG.md +14 -0
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-ISMDSHOL.cjs → chunk-3OLKBSEH.cjs} +8 -8
- package/build/cjs/{chunk-ISMDSHOL.cjs.map → chunk-3OLKBSEH.cjs.map} +1 -1
- package/build/cjs/{chunk-E7E4CSRL.cjs → chunk-5Y4OCYYM.cjs} +4 -4
- package/build/cjs/{chunk-E7E4CSRL.cjs.map → chunk-5Y4OCYYM.cjs.map} +1 -1
- package/build/cjs/{chunk-VY6MOV7K.cjs → chunk-5ZED7AFP.cjs} +4 -4
- package/build/cjs/{chunk-VY6MOV7K.cjs.map → chunk-5ZED7AFP.cjs.map} +1 -1
- package/build/cjs/chunk-CHGT2QYN.cjs +11 -0
- package/build/cjs/{chunk-2EZKLRZS.cjs.map → chunk-CHGT2QYN.cjs.map} +1 -1
- package/build/cjs/{chunk-YSK5CFDI.cjs → chunk-E7KOSJGW.cjs} +4 -4
- package/build/cjs/{chunk-YSK5CFDI.cjs.map → chunk-E7KOSJGW.cjs.map} +1 -1
- package/build/cjs/chunk-G3PYMXF4.cjs +34 -0
- package/build/cjs/{chunk-BMMPJAQ7.cjs.map → chunk-G3PYMXF4.cjs.map} +1 -1
- package/build/cjs/{chunk-RB5VLKE6.cjs → chunk-GBYOLVEH.cjs} +4 -4
- package/build/cjs/{chunk-RB5VLKE6.cjs.map → chunk-GBYOLVEH.cjs.map} +1 -1
- package/build/cjs/{chunk-W3UGGPPB.cjs → chunk-GFLND4R4.cjs} +4 -4
- package/build/cjs/{chunk-W3UGGPPB.cjs.map → chunk-GFLND4R4.cjs.map} +1 -1
- package/build/cjs/{chunk-GMY2HZJF.cjs → chunk-GNOWMSNV.cjs} +5 -5
- package/build/cjs/{chunk-GMY2HZJF.cjs.map → chunk-GNOWMSNV.cjs.map} +1 -1
- package/build/cjs/{chunk-V7R4I6WN.cjs → chunk-H4UEOU3Y.cjs} +4 -4
- package/build/cjs/{chunk-V7R4I6WN.cjs.map → chunk-H4UEOU3Y.cjs.map} +1 -1
- package/build/cjs/{chunk-EQACFURW.cjs → chunk-H7FS43K5.cjs} +5 -5
- package/build/cjs/{chunk-EQACFURW.cjs.map → chunk-H7FS43K5.cjs.map} +1 -1
- package/build/cjs/chunk-IQD23EUQ.cjs +11 -0
- package/build/cjs/{chunk-VW3OQY7L.cjs.map → chunk-IQD23EUQ.cjs.map} +1 -1
- package/build/cjs/chunk-JEXEYQF5.cjs +11 -0
- package/build/cjs/{chunk-XXH6U2WX.cjs.map → chunk-JEXEYQF5.cjs.map} +1 -1
- package/build/cjs/chunk-LZCR5JND.cjs +11 -0
- package/build/cjs/{chunk-Q4RJ7NJI.cjs.map → chunk-LZCR5JND.cjs.map} +1 -1
- package/build/cjs/chunk-MUKGDXHS.cjs +48 -0
- package/build/cjs/{chunk-U5EZJZEI.cjs.map → chunk-MUKGDXHS.cjs.map} +1 -1
- package/build/cjs/chunk-NABSD4FL.cjs +12 -0
- package/build/cjs/{chunk-GTZ7TVBE.cjs.map → chunk-NABSD4FL.cjs.map} +1 -1
- package/build/cjs/{chunk-6ZZQHBHH.cjs → chunk-OURI4G26.cjs} +4 -4
- package/build/cjs/{chunk-6ZZQHBHH.cjs.map → chunk-OURI4G26.cjs.map} +1 -1
- package/build/cjs/{chunk-G2LOLDQD.cjs → chunk-S4NCYSNJ.cjs} +4 -4
- package/build/cjs/{chunk-G2LOLDQD.cjs.map → chunk-S4NCYSNJ.cjs.map} +1 -1
- package/build/cjs/{chunk-DYN7UYRB.cjs → chunk-TQURHITW.cjs} +4 -4
- package/build/cjs/{chunk-DYN7UYRB.cjs.map → chunk-TQURHITW.cjs.map} +1 -1
- package/build/cjs/chunk-UBUUF3MH.cjs +11 -0
- package/build/cjs/{chunk-TG4CDM7T.cjs.map → chunk-UBUUF3MH.cjs.map} +1 -1
- package/build/cjs/chunk-USY7VH7M.cjs +11 -0
- package/build/cjs/{chunk-ODT75FWK.cjs.map → chunk-USY7VH7M.cjs.map} +1 -1
- package/build/cjs/{chunk-S5COIIHK.cjs → chunk-VOCTF6GS.cjs} +4 -4
- package/build/cjs/{chunk-S5COIIHK.cjs.map → chunk-VOCTF6GS.cjs.map} +1 -1
- package/build/cjs/{chunk-2XN3LG7X.cjs → chunk-VRTN4POR.cjs} +4 -4
- package/build/cjs/{chunk-2XN3LG7X.cjs.map → chunk-VRTN4POR.cjs.map} +1 -1
- package/build/cjs/chunk-Z2KQ6WJI.cjs +12 -0
- package/build/cjs/{chunk-X45OPF2P.cjs.map → chunk-Z2KQ6WJI.cjs.map} +1 -1
- package/build/cjs/{chunk-IOEYWEIR.cjs → chunk-ZROMWJEI.cjs} +3 -3
- package/build/cjs/chunk-ZROMWJEI.cjs.map +1 -0
- package/build/cjs/{chunk-XO7OLW5A.cjs → chunk-ZTQGMIG4.cjs} +4 -4
- package/build/cjs/{chunk-XO7OLW5A.cjs.map → chunk-ZTQGMIG4.cjs.map} +1 -1
- package/build/cjs/public/action-form.cjs +4 -4
- package/build/cjs/public/document-viewer.cjs +4 -4
- package/build/cjs/public/email-viewer.cjs +3 -3
- package/build/cjs/public/experimental/action-form.cjs +5 -5
- package/build/cjs/public/experimental/cbac-picker.cjs +11 -11
- package/build/cjs/public/experimental/document-viewer.cjs +5 -5
- package/build/cjs/public/experimental/email-viewer.cjs +5 -5
- package/build/cjs/public/experimental/filter-list.cjs +16 -16
- package/build/cjs/public/experimental/image-viewer.cjs +5 -5
- package/build/cjs/public/experimental/markdown-renderer.cjs +7 -7
- package/build/cjs/public/experimental/object-table.cjs +23 -23
- package/build/cjs/public/experimental/pdf-viewer.cjs +25 -25
- package/build/cjs/public/experimental/spreadsheet-viewer.cjs +5 -5
- package/build/cjs/public/experimental/tiff-renderer.cjs +7 -7
- package/build/cjs/public/experimental/video-viewer.cjs +5 -5
- package/build/cjs/public/experimental/xml-viewer.cjs +5 -5
- package/build/cjs/public/experimental.cjs +112 -112
- package/build/cjs/public/filter-list.cjs +15 -15
- package/build/cjs/public/image-viewer.cjs +3 -3
- package/build/cjs/public/markdown-viewer.cjs +3 -3
- package/build/cjs/public/object-table.cjs +22 -22
- package/build/cjs/public/pdf-viewer.cjs +7 -7
- package/build/cjs/public/spreadsheet-viewer.cjs +3 -3
- package/build/cjs/public/tiff-viewer.cjs +3 -3
- package/build/cjs/public/video-viewer.cjs +3 -3
- package/build/cjs/public/xml-viewer.cjs +3 -3
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/package.json +9 -9
- package/build/cjs/chunk-2EZKLRZS.cjs +0 -11
- package/build/cjs/chunk-BMMPJAQ7.cjs +0 -34
- package/build/cjs/chunk-GTZ7TVBE.cjs +0 -12
- package/build/cjs/chunk-IOEYWEIR.cjs.map +0 -1
- package/build/cjs/chunk-ODT75FWK.cjs +0 -11
- package/build/cjs/chunk-Q4RJ7NJI.cjs +0 -11
- package/build/cjs/chunk-TG4CDM7T.cjs +0 -11
- package/build/cjs/chunk-U5EZJZEI.cjs +0 -48
- package/build/cjs/chunk-VW3OQY7L.cjs +0 -11
- package/build/cjs/chunk-X45OPF2P.cjs +0 -12
- package/build/cjs/chunk-XXH6U2WX.cjs +0 -11
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZTQGMIG4_cjs = require('./chunk-ZTQGMIG4.cjs');
|
|
4
|
+
|
|
5
|
+
// src/public/experimental/filter-list.ts
|
|
6
|
+
var BaseFilterList2 = chunkZTQGMIG4_cjs.BaseFilterList;
|
|
7
|
+
var FilterList2 = chunkZTQGMIG4_cjs.FilterList;
|
|
8
|
+
var deserializeFilterStates2 = chunkZTQGMIG4_cjs.deserializeFilterStates;
|
|
9
|
+
var serializeFilterStates2 = chunkZTQGMIG4_cjs.serializeFilterStates;
|
|
10
|
+
var FilterPopover2 = chunkZTQGMIG4_cjs.FilterPopover;
|
|
11
|
+
var FilterInput2 = chunkZTQGMIG4_cjs.FilterInput;
|
|
12
|
+
var useFilterListState2 = chunkZTQGMIG4_cjs.useFilterListState;
|
|
13
|
+
var filterHasActiveState2 = chunkZTQGMIG4_cjs.filterHasActiveState;
|
|
14
|
+
var NO_VALUE2 = chunkZTQGMIG4_cjs.NO_VALUE;
|
|
15
|
+
var getFilterKey2 = chunkZTQGMIG4_cjs.getFilterKey;
|
|
16
|
+
var getFilterLabel2 = chunkZTQGMIG4_cjs.getFilterLabel;
|
|
17
|
+
var summarizeFilterValue2 = chunkZTQGMIG4_cjs.summarizeFilterValue;
|
|
18
|
+
var narrowObjectSet2 = chunkZTQGMIG4_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-G3PYMXF4.cjs.map
|
|
34
|
+
//# sourceMappingURL=chunk-G3PYMXF4.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-
|
|
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-G3PYMXF4.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,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJEXEYQF5_cjs = require('./chunk-JEXEYQF5.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 =
|
|
8
|
+
var XmlViewer2 = chunkJEXEYQF5_cjs.XmlViewer;
|
|
9
9
|
|
|
10
10
|
exports.BaseXmlViewer = BaseXmlViewer2;
|
|
11
11
|
exports.XmlViewer = XmlViewer2;
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-GBYOLVEH.cjs.map
|
|
13
|
+
//# sourceMappingURL=chunk-GBYOLVEH.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-
|
|
1
|
+
{"version":3,"sources":["../../src/public/experimental/xml-viewer.ts"],"names":["BaseXmlViewer","XmlViewer"],"mappings":";;;;;;AAmBO,IAAMA,cAAAA,GAAuBA;AAO7B,IAAMC,UAAAA,GAAmBA","file":"chunk-GBYOLVEH.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,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCHGT2QYN_cjs = require('./chunk-CHGT2QYN.cjs');
|
|
4
4
|
var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/public/experimental/image-viewer.ts
|
|
7
7
|
var BaseImageViewer2 = chunkVOROB7KJ_cjs.BaseImageViewer;
|
|
8
|
-
var ImageViewer2 =
|
|
8
|
+
var ImageViewer2 = chunkCHGT2QYN_cjs.ImageViewer;
|
|
9
9
|
|
|
10
10
|
exports.BaseImageViewer = BaseImageViewer2;
|
|
11
11
|
exports.ImageViewer = ImageViewer2;
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-GFLND4R4.cjs.map
|
|
13
|
+
//# sourceMappingURL=chunk-GFLND4R4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/experimental/image-viewer.ts"],"names":["BaseImageViewer","ImageViewer"],"mappings":";;;;;;AAmBO,IAAMA,gBAAAA,GAAyBA;AAO/B,IAAMC,YAAAA,GAAqBA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/public/experimental/image-viewer.ts"],"names":["BaseImageViewer","ImageViewer"],"mappings":";;;;;;AAmBO,IAAMA,gBAAAA,GAAyBA;AAO/B,IAAMC,YAAAA,GAAqBA","file":"chunk-GFLND4R4.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Stable from \"../image-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const BaseImageViewer = Stable.BaseImageViewer;\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const ImageViewer = Stable.ImageViewer;"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLZCR5JND_cjs = require('./chunk-LZCR5JND.cjs');
|
|
4
4
|
var chunkKFV264XS_cjs = require('./chunk-KFV264XS.cjs');
|
|
5
5
|
|
|
6
6
|
// src/public/experimental/markdown-renderer.ts
|
|
7
7
|
var BaseMarkdownViewer2 = chunkKFV264XS_cjs.BaseMarkdownViewer;
|
|
8
|
-
var MarkdownViewer2 =
|
|
8
|
+
var MarkdownViewer2 = chunkLZCR5JND_cjs.MarkdownViewer;
|
|
9
9
|
var MarkdownRenderer = chunkKFV264XS_cjs.BaseMarkdownViewer;
|
|
10
|
-
var MarkdownViewerMedia =
|
|
10
|
+
var MarkdownViewerMedia = chunkLZCR5JND_cjs.MarkdownViewer;
|
|
11
11
|
|
|
12
12
|
exports.BaseMarkdownViewer = BaseMarkdownViewer2;
|
|
13
13
|
exports.MarkdownRenderer = MarkdownRenderer;
|
|
14
14
|
exports.MarkdownViewer = MarkdownViewer2;
|
|
15
15
|
exports.MarkdownViewerMedia = MarkdownViewerMedia;
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-GNOWMSNV.cjs.map
|
|
17
|
+
//# sourceMappingURL=chunk-GNOWMSNV.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/experimental/markdown-renderer.ts"],"names":["BaseMarkdownViewer","MarkdownViewer"],"mappings":";;;;;;AAmBO,IAAMA,mBAAAA,GAA4BA;AAOlC,IAAMC,eAAAA,GAAwBA;AAG9B,IAAM,gBAAA,GAA0BD;AAKhC,IAAM,mBAAA,GAA6BC","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/public/experimental/markdown-renderer.ts"],"names":["BaseMarkdownViewer","MarkdownViewer"],"mappings":";;;;;;AAmBO,IAAMA,mBAAAA,GAA4BA;AAOlC,IAAMC,eAAAA,GAAwBA;AAG9B,IAAM,gBAAA,GAA0BD;AAKhC,IAAM,mBAAA,GAA6BC","file":"chunk-GNOWMSNV.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 \"../markdown-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/markdown-viewer` instead. */\nexport const BaseMarkdownViewer = Stable.BaseMarkdownViewer;\n\n/** @deprecated Import from `@osdk/react-components/markdown-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/markdown-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/markdown-viewer` instead. */\nexport const MarkdownViewer = Stable.MarkdownViewer;\n\n/** @deprecated Use `BaseMarkdownViewer` instead. */\nexport const MarkdownRenderer = Stable.BaseMarkdownViewer;\n\n/** @deprecated Use `BaseMarkdownViewerProps` instead. */\n\n/** @deprecated Use `MarkdownViewer` instead. */\nexport const MarkdownViewerMedia = Stable.MarkdownViewer;"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4KHF42ZL_cjs = require('./chunk-4KHF42ZL.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkZROMWJEI_cjs = require('./chunk-ZROMWJEI.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 =
|
|
190
|
+
var PdfViewer2 = chunkZROMWJEI_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-
|
|
198
|
-
//# sourceMappingURL=chunk-
|
|
197
|
+
//# sourceMappingURL=chunk-H4UEOU3Y.cjs.map
|
|
198
|
+
//# sourceMappingURL=chunk-H4UEOU3Y.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;AAAA,IAC9B,GAAA;AAAA,IACA,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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-V7R4I6WN.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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G7D,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-H4UEOU3Y.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,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUBUUF3MH_cjs = require('./chunk-UBUUF3MH.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 =
|
|
8
|
+
var TiffViewer2 = chunkUBUUF3MH_cjs.TiffViewer;
|
|
9
9
|
var TiffRenderer = chunkDTYFQRFD_cjs.BaseTiffViewer;
|
|
10
|
-
var TiffViewerMedia =
|
|
10
|
+
var TiffViewerMedia = chunkUBUUF3MH_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-
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-H7FS43K5.cjs.map
|
|
17
|
+
//# sourceMappingURL=chunk-H7FS43K5.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-
|
|
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-H7FS43K5.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;"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKHMOMROL_cjs = require('./chunk-KHMOMROL.cjs');
|
|
4
|
+
var chunkZROMWJEI_cjs = require('./chunk-ZROMWJEI.cjs');
|
|
5
|
+
|
|
6
|
+
// src/public/video-viewer.ts
|
|
7
|
+
var VideoViewer2 = chunkZROMWJEI_cjs.withOsdkMetrics(chunkKHMOMROL_cjs.VideoViewer, "VideoViewer");
|
|
8
|
+
|
|
9
|
+
exports.VideoViewer = VideoViewer2;
|
|
10
|
+
//# sourceMappingURL=chunk-IQD23EUQ.cjs.map
|
|
11
|
+
//# sourceMappingURL=chunk-IQD23EUQ.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-
|
|
1
|
+
{"version":3,"sources":["../../src/public/video-viewer.ts"],"names":["VideoViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-IQD23EUQ.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BaseVideoViewer\nexport { BaseVideoViewer } from \"../video-viewer/BaseVideoViewer.js\";\n// VideoViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nimport { VideoViewer as _VideoViewer } from \"../video-viewer/VideoViewer.js\";\nexport const VideoViewer = withOsdkMetrics(_VideoViewer, \"VideoViewer\");"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
|
|
4
|
+
var chunkZROMWJEI_cjs = require('./chunk-ZROMWJEI.cjs');
|
|
5
|
+
|
|
6
|
+
// src/public/xml-viewer.ts
|
|
7
|
+
var XmlViewer2 = chunkZROMWJEI_cjs.withOsdkMetrics(chunkRVZE7LPI_cjs.XmlViewer, "XmlViewer");
|
|
8
|
+
|
|
9
|
+
exports.XmlViewer = XmlViewer2;
|
|
10
|
+
//# sourceMappingURL=chunk-JEXEYQF5.cjs.map
|
|
11
|
+
//# sourceMappingURL=chunk-JEXEYQF5.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-
|
|
1
|
+
{"version":3,"sources":["../../src/public/xml-viewer.ts"],"names":["XmlViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-JEXEYQF5.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 chunkKFV264XS_cjs = require('./chunk-KFV264XS.cjs');
|
|
4
|
+
var chunkZROMWJEI_cjs = require('./chunk-ZROMWJEI.cjs');
|
|
5
|
+
|
|
6
|
+
// src/public/markdown-viewer.ts
|
|
7
|
+
var MarkdownViewer2 = chunkZROMWJEI_cjs.withOsdkMetrics(chunkKFV264XS_cjs.MarkdownViewer, "MarkdownViewer");
|
|
8
|
+
|
|
9
|
+
exports.MarkdownViewer = MarkdownViewer2;
|
|
10
|
+
//# sourceMappingURL=chunk-LZCR5JND.cjs.map
|
|
11
|
+
//# sourceMappingURL=chunk-LZCR5JND.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/markdown-viewer.ts"],"names":["MarkdownViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,eAAAA,GAAiBC,iCAAA,CAAgBD,gCAAA,EAAiB,gBAAgB","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/public/markdown-viewer.ts"],"names":["MarkdownViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,eAAAA,GAAiBC,iCAAA,CAAgBD,gCAAA,EAAiB,gBAAgB","file":"chunk-LZCR5JND.cjs","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MarkdownViewer as _MarkdownViewer } from \"../markdown-viewer/MarkdownViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseMarkdownViewer\nexport { BaseMarkdownViewer } from \"../markdown-viewer/BaseMarkdownViewer.js\";\n// MarkdownViewer (Media wrapper)\nexport const MarkdownViewer = withOsdkMetrics(_MarkdownViewer, \"MarkdownViewer\");"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOURI4G26_cjs = require('./chunk-OURI4G26.cjs');
|
|
4
|
+
|
|
5
|
+
// src/public/experimental/object-table.ts
|
|
6
|
+
var ObjectTable2 = chunkOURI4G26_cjs.ObjectTable;
|
|
7
|
+
var BaseTable2 = chunkOURI4G26_cjs.BaseTable;
|
|
8
|
+
var ColumnConfigDialog2 = chunkOURI4G26_cjs.ColumnConfigDialog;
|
|
9
|
+
var MultiColumnSortDialog2 = chunkOURI4G26_cjs.MultiColumnSortDialog;
|
|
10
|
+
var LoadingCell2 = chunkOURI4G26_cjs.LoadingCell;
|
|
11
|
+
var LoadingCellContent2 = chunkOURI4G26_cjs.LoadingCellContent;
|
|
12
|
+
var useFunctionColumnsData2 = chunkOURI4G26_cjs.useFunctionColumnsData;
|
|
13
|
+
var useObjectTableData2 = chunkOURI4G26_cjs.useObjectTableData;
|
|
14
|
+
var useColumnDefs2 = chunkOURI4G26_cjs.useColumnDefs;
|
|
15
|
+
var useSelectionColumn2 = chunkOURI4G26_cjs.useSelectionColumn;
|
|
16
|
+
var useColumnPinning2 = chunkOURI4G26_cjs.useColumnPinning;
|
|
17
|
+
var useColumnResize2 = chunkOURI4G26_cjs.useColumnResize;
|
|
18
|
+
var useColumnVisibility2 = chunkOURI4G26_cjs.useColumnVisibility;
|
|
19
|
+
var useFocusedRow2 = chunkOURI4G26_cjs.useFocusedRow;
|
|
20
|
+
var useLoadedObjectsChanged2 = chunkOURI4G26_cjs.useLoadedObjectsChanged;
|
|
21
|
+
var useRowSelection2 = chunkOURI4G26_cjs.useRowSelection;
|
|
22
|
+
var useTableSorting2 = chunkOURI4G26_cjs.useTableSorting;
|
|
23
|
+
var useEditableTable2 = chunkOURI4G26_cjs.useEditableTable;
|
|
24
|
+
var useObjectTableSnapshot2 = chunkOURI4G26_cjs.useObjectTableSnapshot;
|
|
25
|
+
var useCellContextMenu2 = chunkOURI4G26_cjs.useCellContextMenu;
|
|
26
|
+
|
|
27
|
+
exports.BaseTable = BaseTable2;
|
|
28
|
+
exports.ColumnConfigDialog = ColumnConfigDialog2;
|
|
29
|
+
exports.LoadingCell = LoadingCell2;
|
|
30
|
+
exports.LoadingCellContent = LoadingCellContent2;
|
|
31
|
+
exports.MultiColumnSortDialog = MultiColumnSortDialog2;
|
|
32
|
+
exports.ObjectTable = ObjectTable2;
|
|
33
|
+
exports.useCellContextMenu = useCellContextMenu2;
|
|
34
|
+
exports.useColumnDefs = useColumnDefs2;
|
|
35
|
+
exports.useColumnPinning = useColumnPinning2;
|
|
36
|
+
exports.useColumnResize = useColumnResize2;
|
|
37
|
+
exports.useColumnVisibility = useColumnVisibility2;
|
|
38
|
+
exports.useEditableTable = useEditableTable2;
|
|
39
|
+
exports.useFocusedRow = useFocusedRow2;
|
|
40
|
+
exports.useFunctionColumnsData = useFunctionColumnsData2;
|
|
41
|
+
exports.useLoadedObjectsChanged = useLoadedObjectsChanged2;
|
|
42
|
+
exports.useObjectTableData = useObjectTableData2;
|
|
43
|
+
exports.useObjectTableSnapshot = useObjectTableSnapshot2;
|
|
44
|
+
exports.useRowSelection = useRowSelection2;
|
|
45
|
+
exports.useSelectionColumn = useSelectionColumn2;
|
|
46
|
+
exports.useTableSorting = useTableSorting2;
|
|
47
|
+
//# sourceMappingURL=chunk-MUKGDXHS.cjs.map
|
|
48
|
+
//# sourceMappingURL=chunk-MUKGDXHS.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/experimental/object-table.ts"],"names":["ObjectTable","BaseTable","ColumnConfigDialog","MultiColumnSortDialog","LoadingCell","LoadingCellContent","useFunctionColumnsData","useObjectTableData","useColumnDefs","useSelectionColumn","useColumnPinning","useColumnResize","useColumnVisibility","useFocusedRow","useLoadedObjectsChanged","useRowSelection","useTableSorting","useEditableTable","useObjectTableSnapshot","useCellContextMenu"],"mappings":";;;;;AAmBO,IAAMA,YAAAA,GAAqBA;AAmC3B,IAAMC,UAAAA,GAAmBA;AAGzB,IAAMC,mBAAAA,GAA4BA;AAOlC,IAAMC,sBAAAA,GAA+BA;AAOrC,IAAMC,YAAAA,GAAqBA;AAG3B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,uBAAAA,GAAgCA;AAKtC,IAAMC,mBAAAA,GAA4BA;AAOlC,IAAMC,cAAAA,GAAuBA;AAK7B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,gBAAAA,GAAyBA;AAO/B,IAAMC,oBAAAA,GAA6BA;AAOnC,IAAMC,cAAAA,GAAuBA;AAO7B,IAAMC,wBAAAA,GAAiCA;AAKvC,IAAMC,gBAAAA,GAAyBA;AAS/B,IAAMC,gBAAAA,GAAyBA;AAO/B,IAAMC,iBAAAA,GAA0BA;AAKhC,IAAMC,uBAAAA,GAAgCA;AAKtC,IAAMC,mBAAAA,GAA4BA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/public/experimental/object-table.ts"],"names":["ObjectTable","BaseTable","ColumnConfigDialog","MultiColumnSortDialog","LoadingCell","LoadingCellContent","useFunctionColumnsData","useObjectTableData","useColumnDefs","useSelectionColumn","useColumnPinning","useColumnResize","useColumnVisibility","useFocusedRow","useLoadedObjectsChanged","useRowSelection","useTableSorting","useEditableTable","useObjectTableSnapshot","useCellContextMenu"],"mappings":";;;;;AAmBO,IAAMA,YAAAA,GAAqBA;AAmC3B,IAAMC,UAAAA,GAAmBA;AAGzB,IAAMC,mBAAAA,GAA4BA;AAOlC,IAAMC,sBAAAA,GAA+BA;AAOrC,IAAMC,YAAAA,GAAqBA;AAG3B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,uBAAAA,GAAgCA;AAKtC,IAAMC,mBAAAA,GAA4BA;AAOlC,IAAMC,cAAAA,GAAuBA;AAK7B,IAAMC,mBAAAA,GAA4BA;AAKlC,IAAMC,iBAAAA,GAA0BA;AAOhC,IAAMC,gBAAAA,GAAyBA;AAO/B,IAAMC,oBAAAA,GAA6BA;AAOnC,IAAMC,cAAAA,GAAuBA;AAO7B,IAAMC,wBAAAA,GAAiCA;AAKvC,IAAMC,gBAAAA,GAAyBA;AAS/B,IAAMC,gBAAAA,GAAyBA;AAO/B,IAAMC,iBAAAA,GAA0BA;AAKhC,IAAMC,uBAAAA,GAAgCA;AAKtC,IAAMC,mBAAAA,GAA4BA","file":"chunk-MUKGDXHS.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Stable from \"../object-table.js\";\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const ObjectTable = Stable.ObjectTable;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const BaseTable = Stable.BaseTable;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const ColumnConfigDialog = Stable.ColumnConfigDialog;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const MultiColumnSortDialog = Stable.MultiColumnSortDialog;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const LoadingCell = Stable.LoadingCell;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const LoadingCellContent = Stable.LoadingCellContent;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useFunctionColumnsData = Stable.useFunctionColumnsData;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useObjectTableData = Stable.useObjectTableData;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnDefs = Stable.useColumnDefs;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useSelectionColumn = Stable.useSelectionColumn;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnPinning = Stable.useColumnPinning;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnResize = Stable.useColumnResize;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useColumnVisibility = Stable.useColumnVisibility;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useFocusedRow = Stable.useFocusedRow;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useLoadedObjectsChanged = Stable.useLoadedObjectsChanged;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useRowSelection = Stable.useRowSelection;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useTableSorting = Stable.useTableSorting;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useEditableTable = Stable.useEditableTable;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useObjectTableSnapshot = Stable.useObjectTableSnapshot;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\nexport const useCellContextMenu = Stable.useCellContextMenu;\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */\n\n/** @deprecated Import from `@osdk/react-components/object-table` instead. */"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkE7KOSJGW_cjs = require('./chunk-E7KOSJGW.cjs');
|
|
4
|
+
|
|
5
|
+
// src/public/experimental/action-form.ts
|
|
6
|
+
var ActionForm2 = chunkE7KOSJGW_cjs.ActionForm;
|
|
7
|
+
var BaseForm2 = chunkE7KOSJGW_cjs.BaseForm;
|
|
8
|
+
|
|
9
|
+
exports.ActionForm = ActionForm2;
|
|
10
|
+
exports.BaseForm = BaseForm2;
|
|
11
|
+
//# sourceMappingURL=chunk-NABSD4FL.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-NABSD4FL.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-
|
|
1
|
+
{"version":3,"sources":["../../src/public/experimental/action-form.ts"],"names":["ActionForm","BaseForm"],"mappings":";;;;;AAmBO,IAAMA,WAAAA,GAAoBA;AAe1B,IAAMC,SAAAA,GAAkBA","file":"chunk-NABSD4FL.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. */"]}
|
|
@@ -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
|
|
13
|
+
var chunkZROMWJEI_cjs = require('./chunk-ZROMWJEI.cjs');
|
|
14
14
|
var reactTable = require('@tanstack/react-table');
|
|
15
15
|
var React21 = require('react');
|
|
16
16
|
var react = require('@osdk/react');
|
|
@@ -3396,7 +3396,7 @@ function ObjectTable({
|
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
3398
|
// src/public/object-table.ts
|
|
3399
|
-
var ObjectTable2 =
|
|
3399
|
+
var ObjectTable2 = chunkZROMWJEI_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-
|
|
3422
|
-
//# sourceMappingURL=chunk-
|
|
3421
|
+
//# sourceMappingURL=chunk-OURI4G26.cjs.map
|
|
3422
|
+
//# sourceMappingURL=chunk-OURI4G26.cjs.map
|