@osdk/react-components 0.8.0-main-19b791320004e4dd08af9a4e4d30e8fc1f7e721a → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -13
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-Z5MZGFLK.cjs → chunk-66353XCC.cjs} +4 -4
- package/build/cjs/{chunk-Z5MZGFLK.cjs.map → chunk-66353XCC.cjs.map} +1 -1
- package/build/cjs/{chunk-FHHML652.cjs → chunk-EFOD6VDT.cjs} +4 -4
- package/build/cjs/{chunk-FHHML652.cjs.map → chunk-EFOD6VDT.cjs.map} +1 -1
- package/build/cjs/{chunk-DVNYSNQS.cjs → chunk-WII3JKZ5.cjs} +4 -4
- package/build/cjs/{chunk-DVNYSNQS.cjs.map → chunk-WII3JKZ5.cjs.map} +1 -1
- package/build/cjs/{chunk-IG3UBZD2.cjs → chunk-WPIIXXRX.cjs} +3 -3
- package/build/cjs/chunk-WPIIXXRX.cjs.map +1 -0
- package/build/cjs/{chunk-6U6S3VI2.cjs → chunk-YLTIGE7W.cjs} +4 -4
- package/build/cjs/{chunk-6U6S3VI2.cjs.map → chunk-YLTIGE7W.cjs.map} +1 -1
- package/build/cjs/public/experimental/action-form.cjs +4 -4
- package/build/cjs/public/experimental/filter-list.cjs +6 -6
- package/build/cjs/public/experimental/object-table.cjs +8 -8
- package/build/cjs/public/experimental/pdf-viewer.cjs +24 -24
- package/build/cjs/public/experimental.cjs +39 -39
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/package.json +8 -8
- package/build/cjs/chunk-IG3UBZD2.cjs.map +0 -1
|
@@ -10,7 +10,7 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
10
10
|
// src/util/withOsdkMetrics.ts
|
|
11
11
|
|
|
12
12
|
// src/util/UserAgent.ts
|
|
13
|
-
var PACKAGE_USER_AGENT = `osdk-react-components/${"0.8.0
|
|
13
|
+
var PACKAGE_USER_AGENT = `osdk-react-components/${"0.8.0"}`;
|
|
14
14
|
function componentUserAgent(componentName) {
|
|
15
15
|
return `${PACKAGE_USER_AGENT}/${componentName}`;
|
|
16
16
|
}
|
|
@@ -26,5 +26,5 @@ function withOsdkMetrics(Component, name) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
exports.withOsdkMetrics = withOsdkMetrics;
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-WPIIXXRX.cjs.map
|
|
30
|
+
//# sourceMappingURL=chunk-WPIIXXRX.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/util/UserAgent.ts","../../src/util/withOsdkMetrics.ts"],"names":["useRegisterUserAgent","React"],"mappings":";;;;;;;;;;;;AAgBA,IAAM,kBAAA,GAAqB,yBAAyB,OAA2B,CAAA,CAAA;AACxE,SAAS,mBAAmB,aAAA,EAAe;AAChD,EAAA,OAAO,CAAA,EAAG,kBAAkB,CAAA,CAAA,EAAI,aAAa,CAAA,CAAA;AAC/C;;;ACKO,SAAS,eAAA,CAAgB,WAAW,IAAA,EAAM;AAC/C,EAAA,MAAM,UAAU,CAAA,KAAA,KAAS;AACvB,IAAAA,iCAAA,CAAqB,kBAAA,CAAmB,IAAI,CAAC,CAAA;AAC7C,IAAA,uBAAoBC,sBAAA,CAAM,aAAA,CAAc,SAAA,EAAW,KAAK,CAAA;AAAA,EAC1D,CAAA;AACA,EAAA,OAAA,CAAQ,WAAA,GAAc,mBAAmB,IAAI,CAAA,CAAA,CAAA;AAC7C,EAAA,OAAO,OAAA;AACT","file":"chunk-WPIIXXRX.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\nconst PACKAGE_USER_AGENT = `osdk-react-components/${process.env.PACKAGE_VERSION}`;\nexport function componentUserAgent(componentName) {\n return `${PACKAGE_USER_AGENT}/${componentName}`;\n}","/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useRegisterUserAgent } from \"@osdk/react/experimental\";\nimport React from \"react\";\nimport { componentUserAgent } from \"./UserAgent.js\";\n\n// `any` is required: FunctionComponent defaults to FunctionComponent<{}> which\n// rejects components with required props. A generic P parameter doesn't help\n// because TS can't infer both P and C simultaneously from a single argument.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function withOsdkMetrics(Component, name) {\n const Wrapped = props => {\n useRegisterUserAgent(componentUserAgent(name));\n return /*#__PURE__*/React.createElement(Component, props);\n };\n Wrapped.displayName = `withOsdkMetrics(${name})`;\n return Wrapped;\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWPIIXXRX_cjs = require('./chunk-WPIIXXRX.cjs');
|
|
4
4
|
var chunkQ2W6GYRK_cjs = require('./chunk-Q2W6GYRK.cjs');
|
|
5
5
|
var icons = require('@blueprintjs/icons');
|
|
6
6
|
var classnames = require('classnames');
|
|
@@ -2159,7 +2159,7 @@ function PdfViewer({
|
|
|
2159
2159
|
}
|
|
2160
2160
|
|
|
2161
2161
|
// src/public/experimental/pdf-viewer.ts
|
|
2162
|
-
var PdfViewer2 =
|
|
2162
|
+
var PdfViewer2 = chunkWPIIXXRX_cjs.withOsdkMetrics(PdfViewer, "PdfViewer");
|
|
2163
2163
|
|
|
2164
2164
|
exports.BasePdfViewer = BasePdfViewer;
|
|
2165
2165
|
exports.PdfViewer = PdfViewer2;
|
|
@@ -2183,5 +2183,5 @@ exports.usePdfViewerInstance = usePdfViewerInstance;
|
|
|
2183
2183
|
exports.usePdfViewerSearch = usePdfViewerSearch;
|
|
2184
2184
|
exports.usePdfViewerState = usePdfViewerState;
|
|
2185
2185
|
exports.usePdfViewerSync = usePdfViewerSync;
|
|
2186
|
-
//# sourceMappingURL=chunk-
|
|
2187
|
-
//# sourceMappingURL=chunk-
|
|
2186
|
+
//# sourceMappingURL=chunk-YLTIGE7W.cjs.map
|
|
2187
|
+
//# sourceMappingURL=chunk-YLTIGE7W.cjs.map
|