@osdk/react-components 0.10.0 → 0.10.1-main-0e628555dfb8561c3f82d5eae6e4a1a149c35126
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 +61 -0
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-5DE6S6TS.cjs → chunk-2PMRJCTK.cjs} +3 -3
- package/build/cjs/chunk-2PMRJCTK.cjs.map +1 -0
- package/build/cjs/{chunk-QQXIHLYS.cjs → chunk-IVSQZJQ2.cjs} +4 -4
- package/build/cjs/{chunk-QQXIHLYS.cjs.map → chunk-IVSQZJQ2.cjs.map} +1 -1
- package/build/cjs/{chunk-PHMG5MOF.cjs → chunk-QJEC26ZT.cjs} +4 -4
- package/build/cjs/{chunk-PHMG5MOF.cjs.map → chunk-QJEC26ZT.cjs.map} +1 -1
- package/build/cjs/{chunk-Y6KKCW7D.cjs → chunk-V5ZWF42S.cjs} +4 -4
- package/build/cjs/{chunk-Y6KKCW7D.cjs.map → chunk-V5ZWF42S.cjs.map} +1 -1
- package/build/cjs/{chunk-NFFWKDF6.cjs → chunk-ZXM5NY6C.cjs} +4 -4
- package/build/cjs/{chunk-NFFWKDF6.cjs.map → chunk-ZXM5NY6C.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-5DE6S6TS.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# @osdk/react-components
|
|
2
2
|
|
|
3
|
+
## 0.10.1-main-0e628555dfb8561c3f82d5eae6e4a1a149c35126
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 82c7210: update @osdk/react peer dependency range to ^2.8.0 to track its alignment with the @osdk/client fixed group
|
|
8
|
+
- 203331e: GA: promote modern hooks from `@osdk/react/experimental` to the main entry, rename `@osdk/react/experimental/admin` → `@osdk/react/platform-apis`, consolidate to a single `OsdkProvider`. Promote `ObservableClient` and supporting types out of `@osdk/client/unstable-do-not-use` to a new stable `@osdk/client/observable` entry so the GA hooks no longer depend on a "do not use" entry point. The previous import paths and symbol names are kept as `@deprecated` shims so 0.x consumers can upgrade without code changes.
|
|
9
|
+
|
|
10
|
+
#### `@osdk/client` (minor)
|
|
11
|
+
- new stable entry point `@osdk/client/observable` exposes `createObservableClient`, `ObservableClient` (and its `CacheEntry`, `CacheSnapshot`, `CanonicalizedOptions`, `CanonicalizeOptionsInput`, `Observer`, `ObserveLinks`, `ObserveAggregationArgs`, `ObserveFunctionCallbackArgs`, `ObserveFunctionOptions`, `ObserveObjectCallbackArgs`, `ObserveObjectsCallbackArgs`, `ObserveObjectSetArgs`, `Unsubscribable` types), and the supporting `ActionSignatureFromDef`, `QueryParameterType`, `QueryReturnType` types
|
|
12
|
+
- these symbols are still re-exported from `@osdk/client/unstable-do-not-use` as `@deprecated` shims; new code should import from `@osdk/client/observable`
|
|
13
|
+
|
|
14
|
+
#### `@osdk/react` (minor)
|
|
15
|
+
- `OsdkProvider`, `useOsdkObjects`, `useOsdkObject`, `useOsdkAction`, `useLinks`, `useObjectSet`, `useOsdkAggregation`, `useOsdkFunction`, `useOsdkFunctions`, `useStableObjectSet`, `useRegisterUserAgent`, `useDebouncedCallback`, devtools registry re-exports are now exported directly from `@osdk/react`
|
|
16
|
+
- admin / CBAC platform hooks (`useFoundryUser`, `useCurrentFoundryUser`, `useFoundryUsersList`, `useMarkings`, `useMarkingCategories`, `useUserViewMarkings`, `useCbacBanner`, `useCbacMarkingRestrictions`) now live at `@osdk/react/platform-apis` and still require the optional `@osdk/foundry.admin` + `@osdk/foundry.core` peers
|
|
17
|
+
- the previous `OsdkProvider2` is now just `OsdkProvider`. The legacy `OsdkProvider` body is gone, but `useOsdkClient` and `useOsdkMetadata` keep working since the new provider supplies the same `client` shape
|
|
18
|
+
- `<OsdkProvider>` no longer accepts an `observableClient` prop. The provider always derives its `ObservableClient` from `client` so the two cannot diverge. Tests that need to stub the observable layer should import `TestOsdkProvider` from `@osdk/react/testing`. `OsdkProvider2` (the deprecated alias) inherits this — it also no longer accepts `observableClient`
|
|
19
|
+
- `useOsdkClient2` is unified into `useOsdkClient`; the unified hook now reads from the modern context (same `client` shape)
|
|
20
|
+
- `peerDependencies` on `@osdk/api` and `@osdk/client` resolve to `^2.15.0` so `@osdk/react@2.15` cannot install against a `@osdk/client` that lacks the new `./observable` entry
|
|
21
|
+
|
|
22
|
+
#### `@osdk/react-components` (patch)
|
|
23
|
+
- update internal imports for `@osdk/react` GA — `@osdk/react/experimental` → `@osdk/react` and `@osdk/react/experimental/admin` → `@osdk/react/platform-apis`
|
|
24
|
+
- update `QueryParameterType` import from `@osdk/client/unstable-do-not-use` → `@osdk/client/observable`
|
|
25
|
+
- bump `@osdk/react` peer range to `^2.15.0`
|
|
26
|
+
|
|
27
|
+
#### `@osdk/react-devtools` (patch)
|
|
28
|
+
- update observable-related imports from `@osdk/client/unstable-do-not-use` → `@osdk/client/observable`
|
|
29
|
+
|
|
30
|
+
#### `@osdk/cbac-components` (patch)
|
|
31
|
+
- update internal imports for `@osdk/react` GA — `@osdk/react/experimental` → `@osdk/react` and `@osdk/react/experimental/admin` → `@osdk/react/platform-apis`
|
|
32
|
+
|
|
33
|
+
#### Compatibility shims
|
|
34
|
+
|
|
35
|
+
These keep working in `@osdk/react@2.15` and `@osdk/client@2.15`, marked `@deprecated` so editors surface a strikethrough:
|
|
36
|
+
- `import { ... } from "@osdk/react/experimental"` re-exports everything now exported from `@osdk/react`, plus `OsdkProvider as OsdkProvider2` and `useOsdkClient as useOsdkClient2`
|
|
37
|
+
- `import { ... } from "@osdk/react/experimental/admin"` re-exports everything now exported from `@osdk/react/platform-apis`
|
|
38
|
+
- `import { createObservableClient, ObservableClient, ... } from "@osdk/client/unstable-do-not-use"` re-exports the symbols now in `@osdk/client/observable`
|
|
39
|
+
- `import { ... } from "@osdk/react/experimental/aip"` is unchanged — AIP is still in beta
|
|
40
|
+
|
|
41
|
+
These shims will be removed in a future major.
|
|
42
|
+
|
|
43
|
+
#### Migration
|
|
44
|
+
|
|
45
|
+
For consumers upgrading from `@osdk/react@0.x`:
|
|
46
|
+
- `import { ... } from "@osdk/react/experimental"` → `import { ... } from "@osdk/react"`
|
|
47
|
+
- `import { ... } from "@osdk/react/experimental/admin"` → `import { ... } from "@osdk/react/platform-apis"` (still requires the optional `@osdk/foundry.admin` + `@osdk/foundry.core` peers)
|
|
48
|
+
- `<OsdkProvider2 ...>` → `<OsdkProvider ...>` (the modern provider takes the bare name)
|
|
49
|
+
- if you were passing `observableClient={...}` to `<OsdkProvider>` or `<OsdkProvider2>` (in tests), import `TestOsdkProvider` from `@osdk/react/testing` and use that instead — production code does not need to change
|
|
50
|
+
- `useOsdkClient2()` → `useOsdkClient()` (the unified hook reads from the modern context — same `client` shape, no API change at the call site)
|
|
51
|
+
- bump `@osdk/client` and `@osdk/api` to `^2.15.0` to satisfy the new peer ranges
|
|
52
|
+
|
|
53
|
+
For consumers reaching directly into `@osdk/client/unstable-do-not-use` for observable APIs:
|
|
54
|
+
- `import { createObservableClient, ObservableClient, ... } from "@osdk/client/unstable-do-not-use"` → `import { ... } from "@osdk/client/observable"`
|
|
55
|
+
- the symbols moved: `createObservableClient`, `ObservableClient`, `CacheEntry`, `CacheSnapshot`, `CanonicalizedOptions`, `CanonicalizeOptionsInput`, `Observer`, `ObserveLinks`, `ObserveAggregationArgs`, `ObserveFunctionCallbackArgs`, `ObserveFunctionOptions`, `ObserveObjectCallbackArgs`, `ObserveObjectsCallbackArgs`, `ObserveObjectSetArgs`, `Unsubscribable`, `ActionSignatureFromDef`, `QueryParameterType`, `QueryReturnType`
|
|
56
|
+
|
|
57
|
+
- Updated dependencies [3889ff8]
|
|
58
|
+
- Updated dependencies [7a92156]
|
|
59
|
+
- Updated dependencies [203331e]
|
|
60
|
+
- @osdk/react@3.0.0-main-0e628555dfb8561c3f82d5eae6e4a1a149c35126
|
|
61
|
+
- @osdk/client@3.0.0-main-0e628555dfb8561c3f82d5eae6e4a1a149c35126
|
|
62
|
+
- @osdk/api@3.0.0-main-0e628555dfb8561c3f82d5eae6e4a1a149c35126
|
|
63
|
+
|
|
3
64
|
## 0.10.0
|
|
4
65
|
|
|
5
66
|
### Minor Changes
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
const PACKAGE_USER_AGENT = `osdk-react-components/${"0.10.
|
|
17
|
+
const PACKAGE_USER_AGENT = `osdk-react-components/${"0.10.1-main-0e628555dfb8561c3f82d5eae6e4a1a149c35126"}`;
|
|
18
18
|
export function componentUserAgent(componentName) {
|
|
19
19
|
return `${PACKAGE_USER_AGENT}/${componentName}`;
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserAgent.js","names":["PACKAGE_USER_AGENT","componentUserAgent","componentName"],"sources":["UserAgent.ts"],"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 =\n `osdk-react-components/${process.env.PACKAGE_VERSION}`;\n\nexport function componentUserAgent(componentName: string): string {\n return `${PACKAGE_USER_AGENT}/${componentName}`;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,kBAAkB,GACtB,
|
|
1
|
+
{"version":3,"file":"UserAgent.js","names":["PACKAGE_USER_AGENT","componentUserAgent","componentName"],"sources":["UserAgent.ts"],"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 =\n `osdk-react-components/${process.env.PACKAGE_VERSION}`;\n\nexport function componentUserAgent(componentName: string): string {\n return `${PACKAGE_USER_AGENT}/${componentName}`;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,kBAAkB,GACtB,iFAAsD;AAExD,OAAO,SAASC,kBAAkBA,CAACC,aAAqB,EAAU;EAChE,OAAO,GAAGF,kBAAkB,IAAIE,aAAa,EAAE;AACjD","ignoreList":[]}
|
|
@@ -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.10.
|
|
13
|
+
var PACKAGE_USER_AGENT = `osdk-react-components/${"0.10.1-main-0e628555dfb8561c3f82d5eae6e4a1a149c35126"}`;
|
|
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-2PMRJCTK.cjs.map
|
|
30
|
+
//# sourceMappingURL=chunk-2PMRJCTK.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,sDAA2B,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,0BAAA,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-2PMRJCTK.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\";\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}"]}
|
|
@@ -6,7 +6,7 @@ var chunkY5ULR6PM_cjs = require('./chunk-Y5ULR6PM.cjs');
|
|
|
6
6
|
var chunkOHKKNZZS_cjs = require('./chunk-OHKKNZZS.cjs');
|
|
7
7
|
var chunkXBXC6VAS_cjs = require('./chunk-XBXC6VAS.cjs');
|
|
8
8
|
var chunk7LXS66DW_cjs = require('./chunk-7LXS66DW.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunk2PMRJCTK_cjs = require('./chunk-2PMRJCTK.cjs');
|
|
10
10
|
var reactTable = require('@tanstack/react-table');
|
|
11
11
|
var React14 = require('react');
|
|
12
12
|
var react = require('@osdk/react');
|
|
@@ -2793,7 +2793,7 @@ function ObjectTable({
|
|
|
2793
2793
|
}
|
|
2794
2794
|
|
|
2795
2795
|
// src/public/experimental/object-table.ts
|
|
2796
|
-
var ObjectTable2 =
|
|
2796
|
+
var ObjectTable2 = chunk2PMRJCTK_cjs.withOsdkMetrics(ObjectTable, "ObjectTable");
|
|
2797
2797
|
|
|
2798
2798
|
exports.BaseTable = BaseTable;
|
|
2799
2799
|
exports.ColumnConfigDialog = ColumnConfigDialog;
|
|
@@ -2801,5 +2801,5 @@ exports.LoadingCell = LoadingCell;
|
|
|
2801
2801
|
exports.LoadingCellContent = LoadingCellContent;
|
|
2802
2802
|
exports.MultiColumnSortDialog = MultiColumnSortDialog;
|
|
2803
2803
|
exports.ObjectTable = ObjectTable2;
|
|
2804
|
-
//# sourceMappingURL=chunk-
|
|
2805
|
-
//# sourceMappingURL=chunk-
|
|
2804
|
+
//# sourceMappingURL=chunk-IVSQZJQ2.cjs.map
|
|
2805
|
+
//# sourceMappingURL=chunk-IVSQZJQ2.cjs.map
|