@osdk/react-components 0.67.0 → 0.68.0-main-c8041889cc33bc30f6ba1fe5501f931d250f989e
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/AGENTS.md +4 -0
- package/CHANGELOG.md +14 -0
- package/README.md +1 -0
- package/build/browser/public/experimental/workshop-module.js +21 -0
- package/build/browser/public/experimental/workshop-module.js.map +1 -0
- package/build/browser/styles.css +9 -0
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/browser/workshop-module/BaseWorkshopModule.js +35 -0
- package/build/browser/workshop-module/BaseWorkshopModule.js.map +1 -0
- package/build/browser/workshop-module/BaseWorkshopModule.module.css +6 -0
- package/build/browser/workshop-module/BaseWorkshopModule.module.css.js +6 -0
- package/build/browser/workshop-module/WorkshopModule.js +28 -0
- package/build/browser/workshop-module/WorkshopModule.js.map +1 -0
- package/build/browser/workshop-module/WorkshopModuleApi.js +2 -0
- package/build/browser/workshop-module/WorkshopModuleApi.js.map +1 -0
- package/build/browser/workshop-module/getWorkshopModuleUrl.js +30 -0
- package/build/browser/workshop-module/getWorkshopModuleUrl.js.map +1 -0
- package/build/cjs/{chunk-62TDTOSI.cjs → chunk-24W2HVQB.cjs} +2 -2
- package/build/cjs/{chunk-62TDTOSI.cjs.map → chunk-24W2HVQB.cjs.map} +1 -1
- package/build/cjs/{chunk-QZXF2R7Y.cjs → chunk-4NGHZ56X.cjs} +4 -4
- package/build/cjs/{chunk-QZXF2R7Y.cjs.map → chunk-4NGHZ56X.cjs.map} +1 -1
- package/build/cjs/chunk-5ERBPFVF.cjs +11 -0
- package/build/cjs/{chunk-R7OMZVSD.cjs.map → chunk-5ERBPFVF.cjs.map} +1 -1
- package/build/cjs/chunk-6CFNVXGY.cjs +12 -0
- package/build/cjs/{chunk-XBIDMNU3.cjs.map → chunk-6CFNVXGY.cjs.map} +1 -1
- package/build/cjs/chunk-7D73Q2NB.cjs +11 -0
- package/build/cjs/{chunk-UNB5WSKF.cjs.map → chunk-7D73Q2NB.cjs.map} +1 -1
- package/build/cjs/{chunk-C7MVNJCL.cjs → chunk-7GKKVTGQ.cjs} +4 -4
- package/build/cjs/{chunk-C7MVNJCL.cjs.map → chunk-7GKKVTGQ.cjs.map} +1 -1
- package/build/cjs/{chunk-ROTAE5KE.cjs → chunk-7KYY6TUA.cjs} +5 -5
- package/build/cjs/{chunk-ROTAE5KE.cjs.map → chunk-7KYY6TUA.cjs.map} +1 -1
- package/build/cjs/chunk-C5ZSHLYJ.cjs +11 -0
- package/build/cjs/{chunk-PH4KSD6G.cjs.map → chunk-C5ZSHLYJ.cjs.map} +1 -1
- package/build/cjs/chunk-CYRRU72T.cjs +11 -0
- package/build/cjs/{chunk-25KCCJN5.cjs.map → chunk-CYRRU72T.cjs.map} +1 -1
- package/build/cjs/chunk-DD2EKVQA.cjs +34 -0
- package/build/cjs/{chunk-VV2UVLFE.cjs.map → chunk-DD2EKVQA.cjs.map} +1 -1
- package/build/cjs/chunk-DLGH5G4M.cjs +12 -0
- package/build/cjs/{chunk-IMPQOR35.cjs.map → chunk-DLGH5G4M.cjs.map} +1 -1
- package/build/cjs/{chunk-NZGG24BM.cjs → chunk-E5GW32ZG.cjs} +4 -4
- package/build/cjs/{chunk-NZGG24BM.cjs.map → chunk-E5GW32ZG.cjs.map} +1 -1
- package/build/cjs/{chunk-QK76XGOF.cjs → chunk-E6MEVMVB.cjs} +8 -8
- package/build/cjs/{chunk-QK76XGOF.cjs.map → chunk-E6MEVMVB.cjs.map} +1 -1
- package/build/cjs/{chunk-TON5EEYH.cjs → chunk-IHJMDM4G.cjs} +5 -5
- package/build/cjs/{chunk-TON5EEYH.cjs.map → chunk-IHJMDM4G.cjs.map} +1 -1
- package/build/cjs/{chunk-7RKTNJLO.cjs → chunk-JDOJZGDO.cjs} +32 -32
- package/build/cjs/{chunk-7RKTNJLO.cjs.map → chunk-JDOJZGDO.cjs.map} +1 -1
- package/build/cjs/chunk-JJ7LSVCF.cjs +48 -0
- package/build/cjs/{chunk-DFULAPAD.cjs.map → chunk-JJ7LSVCF.cjs.map} +1 -1
- package/build/cjs/{chunk-LICMASXX.cjs → chunk-LFIKQCW6.cjs} +4 -4
- package/build/cjs/{chunk-LICMASXX.cjs.map → chunk-LFIKQCW6.cjs.map} +1 -1
- package/build/cjs/{chunk-OQKUMCWG.cjs → chunk-MPIV4LMO.cjs} +38 -38
- package/build/cjs/{chunk-OQKUMCWG.cjs.map → chunk-MPIV4LMO.cjs.map} +1 -1
- package/build/cjs/{chunk-563DKG4Y.cjs → chunk-RQAY53BB.cjs} +4 -4
- package/build/cjs/{chunk-563DKG4Y.cjs.map → chunk-RQAY53BB.cjs.map} +1 -1
- package/build/cjs/{chunk-LZTR5GS5.cjs → chunk-U3XXKFLW.cjs} +3 -3
- package/build/cjs/chunk-U3XXKFLW.cjs.map +1 -0
- package/build/cjs/{chunk-5MO4EEKT.cjs → chunk-V74YVZZ2.cjs} +4 -4
- package/build/cjs/{chunk-5MO4EEKT.cjs.map → chunk-V74YVZZ2.cjs.map} +1 -1
- package/build/cjs/chunk-W2EF2VYF.cjs +11 -0
- package/build/cjs/{chunk-GIUBOBJW.cjs.map → chunk-W2EF2VYF.cjs.map} +1 -1
- package/build/cjs/chunk-WHOYCBI3.cjs +11 -0
- package/build/cjs/{chunk-VX53UNI5.cjs.map → chunk-WHOYCBI3.cjs.map} +1 -1
- package/build/cjs/{chunk-ZK4Z6LBE.cjs → chunk-WWHNLXTX.cjs} +11 -11
- package/build/cjs/{chunk-ZK4Z6LBE.cjs.map → chunk-WWHNLXTX.cjs.map} +1 -1
- package/build/cjs/{chunk-N7PDSA27.cjs → chunk-XQBCAAKF.cjs} +4 -4
- package/build/cjs/{chunk-N7PDSA27.cjs.map → chunk-XQBCAAKF.cjs.map} +1 -1
- package/build/cjs/{chunk-3J2Z75WV.cjs → chunk-YDWP7XAP.cjs} +4 -4
- package/build/cjs/{chunk-3J2Z75WV.cjs.map → chunk-YDWP7XAP.cjs.map} +1 -1
- package/build/cjs/{chunk-KPRLMFE4.cjs → chunk-YOXMIC5M.cjs} +17 -17
- package/build/cjs/{chunk-KPRLMFE4.cjs.map → chunk-YOXMIC5M.cjs.map} +1 -1
- package/build/cjs/{chunk-HWBP3XW3.cjs → chunk-YX5BXZ3O.cjs} +4 -4
- package/build/cjs/{chunk-HWBP3XW3.cjs.map → chunk-YX5BXZ3O.cjs.map} +1 -1
- package/build/cjs/public/action-form.cjs +6 -6
- 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 +7 -7
- 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 +17 -17
- 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 +25 -25
- 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/workshop-module.cjs +72 -0
- package/build/cjs/public/experimental/workshop-module.cjs.map +1 -0
- package/build/cjs/public/experimental/workshop-module.css +8 -0
- package/build/cjs/public/experimental/workshop-module.css.map +1 -0
- package/build/cjs/public/experimental/workshop-module.d.cts +30 -0
- package/build/cjs/public/experimental/xml-viewer.cjs +5 -5
- package/build/cjs/public/experimental.cjs +114 -114
- package/build/cjs/public/filter-list.cjs +16 -16
- 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 +24 -24
- 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/public/experimental/workshop-module.js +21 -0
- package/build/esm/public/experimental/workshop-module.js.map +1 -0
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/esm/workshop-module/BaseWorkshopModule.js +35 -0
- package/build/esm/workshop-module/BaseWorkshopModule.js.map +1 -0
- package/build/esm/workshop-module/BaseWorkshopModule.module.css +6 -0
- package/build/esm/workshop-module/WorkshopModule.js +28 -0
- package/build/esm/workshop-module/WorkshopModule.js.map +1 -0
- package/build/esm/workshop-module/WorkshopModuleApi.js +2 -0
- package/build/esm/workshop-module/WorkshopModuleApi.js.map +1 -0
- package/build/esm/workshop-module/getWorkshopModuleUrl.js +30 -0
- package/build/esm/workshop-module/getWorkshopModuleUrl.js.map +1 -0
- package/build/types/public/experimental/workshop-module.d.ts +4 -0
- package/build/types/public/experimental/workshop-module.d.ts.map +1 -0
- package/build/types/workshop-module/BaseWorkshopModule.d.ts +3 -0
- package/build/types/workshop-module/BaseWorkshopModule.d.ts.map +1 -0
- package/build/types/workshop-module/WorkshopModule.d.ts +3 -0
- package/build/types/workshop-module/WorkshopModule.d.ts.map +1 -0
- package/build/types/workshop-module/WorkshopModuleApi.d.ts +21 -0
- package/build/types/workshop-module/WorkshopModuleApi.d.ts.map +1 -0
- package/build/types/workshop-module/getWorkshopModuleUrl.d.ts +2 -0
- package/build/types/workshop-module/getWorkshopModuleUrl.d.ts.map +1 -0
- package/docs/WorkshopModule.md +73 -0
- package/package.json +20 -9
- package/build/cjs/chunk-25KCCJN5.cjs +0 -11
- package/build/cjs/chunk-DFULAPAD.cjs +0 -48
- package/build/cjs/chunk-GIUBOBJW.cjs +0 -11
- package/build/cjs/chunk-IMPQOR35.cjs +0 -12
- package/build/cjs/chunk-LZTR5GS5.cjs.map +0 -1
- package/build/cjs/chunk-PH4KSD6G.cjs +0 -11
- package/build/cjs/chunk-R7OMZVSD.cjs +0 -11
- package/build/cjs/chunk-UNB5WSKF.cjs +0 -11
- package/build/cjs/chunk-VV2UVLFE.cjs +0 -34
- package/build/cjs/chunk-VX53UNI5.cjs +0 -11
- package/build/cjs/chunk-XBIDMNU3.cjs +0 -12
package/AGENTS.md
CHANGED
|
@@ -56,6 +56,7 @@ Components not yet promoted remain under `experimental/`:
|
|
|
56
56
|
- `@osdk/react-components/experimental/aip-agent-chat` — AipAgentChat, BaseAipAgentChat
|
|
57
57
|
- `@osdk/react-components/experimental/cbac-picker` — CbacPicker
|
|
58
58
|
- `@osdk/react-components/experimental/theme` — OsdkThemeProvider
|
|
59
|
+
- `@osdk/react-components/experimental/workshop-module` — WorkshopModule, BaseWorkshopModule
|
|
59
60
|
|
|
60
61
|
| Component | Description |
|
|
61
62
|
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -77,6 +78,8 @@ Components not yet promoted remain under `experimental/`:
|
|
|
77
78
|
| **DocumentViewer** | Unified media viewer that auto-detects file type (PDF, TIFF, image, video, spreadsheet, email, markdown, XML) and renders the appropriate viewer. |
|
|
78
79
|
| **EmailViewer** | Email viewer — parses and renders `.eml` files with headers, HTML body (sandboxed iframe), and plain text fallback. |
|
|
79
80
|
| **SpreadsheetViewer** | Spreadsheet viewer — parses and renders `.xlsx` spreadsheets with sheet tabs and column/row headers. |
|
|
81
|
+
| **WorkshopModule** | Embeds a Workshop module by RID and version using the Foundry URL from OsdkProvider. |
|
|
82
|
+
| **BaseWorkshopModule** | Embeds a Workshop module with an explicit Foundry URL. |
|
|
80
83
|
| **ImageViewer** | Image viewer — renders images (PNG, JPEG, GIF, SVG, WebP, BMP) with object-fit contain. |
|
|
81
84
|
| **VideoViewer** | Video viewer — renders video with native browser controls. |
|
|
82
85
|
| **XmlViewer** | XML viewer — renders XML content with syntax preservation. |
|
|
@@ -93,6 +96,7 @@ Components not yet promoted remain under `experimental/`:
|
|
|
93
96
|
Before using any component, read the relevant doc from this package:
|
|
94
97
|
|
|
95
98
|
- **Setup & installation**: Read [README.md](./README.md) for provider, CSS layers, and peer dependencies
|
|
99
|
+
- **WorkshopModule**: Read [docs/WorkshopModule.md](./docs/WorkshopModule.md) for embedding a Workshop module by RID and version.
|
|
96
100
|
- **ObjectTable**: Read [docs/ObjectTable.md](./docs/ObjectTable.md) for props, column definitions, examples, theming, troubleshooting, and hooks to build custom tables
|
|
97
101
|
- **ActionForm**: Read [docs/ActionForm.md](./docs/ActionForm.md) for generated fields, title behavior, custom field definitions, switch fields, and date/time behavior
|
|
98
102
|
- **PdfViewer**: Read [docs/PdfViewer.md](./docs/PdfViewer.md) for props, annotations, building blocks, hooks, examples, and theming
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @osdk/react-components
|
|
2
2
|
|
|
3
|
+
## 0.68.0-main-c8041889cc33bc30f6ba1fe5501f931d250f989e
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c804188: Add an experimental WorkshopModule component to embed the latest or published version of a Workshop module by RID.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [af66ef0]
|
|
12
|
+
- @osdk/client@2.85.1-main-c8041889cc33bc30f6ba1fe5501f931d250f989e
|
|
13
|
+
- @osdk/aip-core@0.13.0
|
|
14
|
+
- @osdk/api@2.85.1-main-c8041889cc33bc30f6ba1fe5501f931d250f989e
|
|
15
|
+
- @osdk/react@2.85.1-main-c8041889cc33bc30f6ba1fe5501f931d250f989e
|
|
16
|
+
|
|
3
17
|
## 0.67.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -136,6 +136,7 @@ The components that this package will provide are:
|
|
|
136
136
|
| `DocumentViewer` | Unified media viewer that auto-detects file type and renders the appropriate viewer | [Guide](https://github.com/palantir/osdk-ts/blob/main/packages/react-components/docs/DocumentViewer.md) |
|
|
137
137
|
| `EmailViewer` | Parses and renders EML files with headers and sandboxed HTML body | [Guide](https://github.com/palantir/osdk-ts/blob/main/packages/react-components/docs/EmailViewer.md) |
|
|
138
138
|
| `SpreadsheetViewer` | Renders spreadsheets (.xlsx) with sheet tabs and column/row headers | [Guide](https://github.com/palantir/osdk-ts/blob/main/packages/react-components/docs/SpreadsheetViewer.md) |
|
|
139
|
+
| `WorkshopModule` | Embeds a Workshop module by RID and version (experimental). | [Guide](https://github.com/palantir/osdk-ts/blob/main/packages/react-components/docs/WorkshopModule.md) |
|
|
139
140
|
| `ImageViewer` | Renders images (PNG, JPEG, GIF, SVG, WebP, BMP) | [Guide](https://github.com/palantir/osdk-ts/blob/main/packages/react-components/docs/ImageViewer.md) |
|
|
140
141
|
| `VideoViewer` | Renders video with native browser controls | [Guide](https://github.com/palantir/osdk-ts/blob/main/packages/react-components/docs/VideoViewer.md) |
|
|
141
142
|
| `XmlViewer` | Renders XML content with syntax preservation | [Guide](https://github.com/palantir/osdk-ts/blob/main/packages/react-components/docs/XmlViewer.md) |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { withOsdkMetrics } from "../../util/withOsdkMetrics.js";
|
|
18
|
+
import { WorkshopModule as _WorkshopModule } from "../../workshop-module/WorkshopModule.js";
|
|
19
|
+
export { BaseWorkshopModule } from "../../workshop-module/BaseWorkshopModule.js";
|
|
20
|
+
export const WorkshopModule = withOsdkMetrics(_WorkshopModule, "WorkshopModule");
|
|
21
|
+
//# sourceMappingURL=workshop-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workshop-module.js","names":["withOsdkMetrics","WorkshopModule","_WorkshopModule","BaseWorkshopModule"],"sources":["workshop-module.ts"],"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 { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nimport { WorkshopModule as _WorkshopModule } from \"../../workshop-module/WorkshopModule.js\";\n\nexport { BaseWorkshopModule } from \"../../workshop-module/BaseWorkshopModule.js\";\nexport type {\n BaseWorkshopModuleProps,\n WorkshopModuleProps,\n} from \"../../workshop-module/WorkshopModuleApi.js\";\n\nexport const WorkshopModule: typeof _WorkshopModule = withOsdkMetrics(\n _WorkshopModule,\n \"WorkshopModule\",\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,cAAc,IAAIC,eAAe,QAAQ,yCAAyC;AAE3F,SAASC,kBAAkB,QAAQ,6CAA6C;AAMhF,OAAO,MAAMF,cAAsC,GAAGD,eAAe,CACnEE,eAAe,EACf,gBACF,CAAC","ignoreList":[]}
|
package/build/browser/styles.css
CHANGED
|
@@ -11578,6 +11578,15 @@
|
|
|
11578
11578
|
}
|
|
11579
11579
|
|
|
11580
11580
|
|
|
11581
|
+
/* workshop-module/BaseWorkshopModule.module.css */
|
|
11582
|
+
.BaseWorkshopModule-module__iframe___rCE34uaJ {
|
|
11583
|
+
display: block;
|
|
11584
|
+
width: 100%;
|
|
11585
|
+
height: 100%;
|
|
11586
|
+
border: 0;
|
|
11587
|
+
}
|
|
11588
|
+
|
|
11589
|
+
|
|
11581
11590
|
/* xml-viewer/BaseXmlViewer.module.css */
|
|
11582
11591
|
.LoadingError-module__loadingContainer___bPqIqyjp {
|
|
11583
11592
|
display: flex;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
const PACKAGE_USER_AGENT = `osdk-react-components/${"0.
|
|
17
|
+
const PACKAGE_USER_AGENT = `osdk-react-components/${"0.68.0-main-c8041889cc33bc30f6ba1fe5501f931d250f989e"}`;
|
|
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 = `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,GAAG,
|
|
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 = `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,GAAG,iFAAsD;AAEjF,OAAO,SAASC,kBAAkBA,CAACC,aAAqB,EAAU;EAChE,OAAO,GAAGF,kBAAkB,IAAIE,aAAa,EAAE;AACjD","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import classnames from "classnames";
|
|
18
|
+
import React from "react";
|
|
19
|
+
import { getWorkshopModuleUrl } from "./getWorkshopModuleUrl.js";
|
|
20
|
+
import styles from "./BaseWorkshopModule.module.css.js";
|
|
21
|
+
export function BaseWorkshopModule({
|
|
22
|
+
title = "Workshop module",
|
|
23
|
+
className,
|
|
24
|
+
style,
|
|
25
|
+
...props
|
|
26
|
+
}) {
|
|
27
|
+
const src = getWorkshopModuleUrl(props);
|
|
28
|
+
return /*#__PURE__*/React.createElement("iframe", {
|
|
29
|
+
src: src,
|
|
30
|
+
title: title,
|
|
31
|
+
className: classnames(styles.iframe, className),
|
|
32
|
+
style: style
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=BaseWorkshopModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseWorkshopModule.js","names":["classnames","React","getWorkshopModuleUrl","styles","BaseWorkshopModule","title","className","style","props","src","createElement","iframe"],"sources":["BaseWorkshopModule.tsx"],"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 classnames from \"classnames\";\nimport React from \"react\";\n\nimport { getWorkshopModuleUrl } from \"./getWorkshopModuleUrl.js\";\nimport type { BaseWorkshopModuleProps } from \"./WorkshopModuleApi.js\";\n\nimport styles from \"./BaseWorkshopModule.module.css\";\n\nexport function BaseWorkshopModule({\n title = \"Workshop module\",\n className,\n style,\n ...props\n}: BaseWorkshopModuleProps): React.ReactElement {\n const src = getWorkshopModuleUrl(props);\n\n return (\n <iframe\n src={src}\n title={title}\n className={classnames(styles.iframe, className)}\n style={style}\n />\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB,QAAQ,2BAA2B;AAGhE,OAAOC,MAAM,MAAM,iCAAiC;AAEpD,OAAO,SAASC,kBAAkBA,CAAC;EACjCC,KAAK,GAAG,iBAAiB;EACzBC,SAAS;EACTC,KAAK;EACL,GAAGC;AACoB,CAAC,EAAsB;EAC9C,MAAMC,GAAG,GAAGP,oBAAoB,CAACM,KAAK,CAAC;EAEvC,oBACEP,KAAA,CAAAS,aAAA;IACED,GAAG,EAAEA,GAAI;IACTJ,KAAK,EAAEA,KAAM;IACbC,SAAS,EAAEN,UAAU,CAACG,MAAM,CAACQ,MAAM,EAAEL,SAAS,CAAE;IAChDC,KAAK,EAAEA;EAAM,CACd,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2026 Palantir Technologies, Inc. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { useOsdkClient } from "@osdk/react";
|
|
19
|
+
import { symbolClientContext } from "@osdk/shared.client";
|
|
20
|
+
import React from "react";
|
|
21
|
+
import { BaseWorkshopModule } from "./BaseWorkshopModule.js";
|
|
22
|
+
export function WorkshopModule(props) {
|
|
23
|
+
const client = useOsdkClient();
|
|
24
|
+
return /*#__PURE__*/React.createElement(BaseWorkshopModule, _extends({}, props, {
|
|
25
|
+
foundryUrl: client[symbolClientContext].baseUrl
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=WorkshopModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkshopModule.js","names":["useOsdkClient","symbolClientContext","React","BaseWorkshopModule","WorkshopModule","props","client","createElement","_extends","foundryUrl","baseUrl"],"sources":["WorkshopModule.tsx"],"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 { useOsdkClient } from \"@osdk/react\";\nimport { symbolClientContext } from \"@osdk/shared.client\";\nimport React from \"react\";\n\nimport { BaseWorkshopModule } from \"./BaseWorkshopModule.js\";\nimport type { WorkshopModuleProps } from \"./WorkshopModuleApi.js\";\n\nexport function WorkshopModule(props: WorkshopModuleProps): React.ReactElement {\n const client = useOsdkClient();\n\n return (\n <BaseWorkshopModule\n {...props}\n foundryUrl={client[symbolClientContext].baseUrl}\n />\n );\n}\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,aAAa;AAC3C,SAASC,mBAAmB,QAAQ,qBAAqB;AACzD,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,kBAAkB,QAAQ,yBAAyB;AAG5D,OAAO,SAASC,cAAcA,CAACC,KAA0B,EAAsB;EAC7E,MAAMC,MAAM,GAAGN,aAAa,CAAC,CAAC;EAE9B,oBACEE,KAAA,CAAAK,aAAA,CAACJ,kBAAkB,EAAAK,QAAA,KACbH,KAAK;IACTI,UAAU,EAAEH,MAAM,CAACL,mBAAmB,CAAC,CAACS;EAAQ,EACjD,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkshopModuleApi.js","names":[],"sources":["WorkshopModuleApi.ts"],"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 type { CSSProperties } from \"react\";\n\nexport interface WorkshopModuleProps {\n /** RID of the Workshop module to render. */\n moduleRid: string;\n\n /** Module version: `latest` for the latest saved version, or `published` for the published version (falling back to the latest saved version if none is published).\n * @default \"published\" */\n moduleVersion?: \"latest\" | \"published\";\n\n /** Accessible title for the iframe.\n * @default \"Workshop module\" */\n title?: string;\n\n /** Additional CSS class name for the iframe.\n * @default undefined */\n className?: string;\n\n /** Inline styles for the iframe. By default, it fills its container.\n * @default undefined */\n style?: CSSProperties;\n}\n\nexport interface BaseWorkshopModuleProps extends WorkshopModuleProps {\n /** HTTP or HTTPS Foundry base URL, for example `https://example.palantirfoundry.com`. */\n foundryUrl: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import invariant from "tiny-invariant";
|
|
18
|
+
export function getWorkshopModuleUrl({
|
|
19
|
+
foundryUrl,
|
|
20
|
+
moduleRid,
|
|
21
|
+
moduleVersion = "published"
|
|
22
|
+
}) {
|
|
23
|
+
// Workshop URLs historically use "latest" for published and "dev" for latest saved.
|
|
24
|
+
const version = moduleVersion === "published" ? "latest" : "dev";
|
|
25
|
+
const url = new URL(`/workspace/module/view/${version}/${encodeURIComponent(moduleRid)}`, foundryUrl);
|
|
26
|
+
!(url.protocol === "https:" || url.protocol === "http:") ? process.env.NODE_ENV !== "production" ? invariant(false, "Foundry URL must use http or https.") : invariant(false) : void 0;
|
|
27
|
+
url.searchParams.set("embedded", "true");
|
|
28
|
+
return url.href;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=getWorkshopModuleUrl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWorkshopModuleUrl.js","names":["invariant","getWorkshopModuleUrl","foundryUrl","moduleRid","moduleVersion","version","url","URL","encodeURIComponent","protocol","process","env","NODE_ENV","searchParams","set","href"],"sources":["getWorkshopModuleUrl.ts"],"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 invariant from \"tiny-invariant\";\n\nimport type { BaseWorkshopModuleProps } from \"./WorkshopModuleApi.js\";\n\nexport function getWorkshopModuleUrl({\n foundryUrl,\n moduleRid,\n moduleVersion = \"published\",\n}: Pick<\n BaseWorkshopModuleProps,\n \"foundryUrl\" | \"moduleRid\" | \"moduleVersion\"\n>): string {\n // Workshop URLs historically use \"latest\" for published and \"dev\" for latest saved.\n const version = moduleVersion === \"published\" ? \"latest\" : \"dev\";\n const url = new URL(\n `/workspace/module/view/${version}/${encodeURIComponent(moduleRid)}`,\n foundryUrl,\n );\n invariant(\n url.protocol === \"https:\" || url.protocol === \"http:\",\n \"Foundry URL must use http or https.\",\n );\n url.searchParams.set(\"embedded\", \"true\");\n\n return url.href;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,SAAS,MAAM,gBAAgB;AAItC,OAAO,SAASC,oBAAoBA,CAAC;EACnCC,UAAU;EACVC,SAAS;EACTC,aAAa,GAAG;AAIlB,CAAC,EAAU;EACT;EACA,MAAMC,OAAO,GAAGD,aAAa,KAAK,WAAW,GAAG,QAAQ,GAAG,KAAK;EAChE,MAAME,GAAG,GAAG,IAAIC,GAAG,CACjB,0BAA0BF,OAAO,IAAIG,kBAAkB,CAACL,SAAS,CAAC,EAAE,EACpED,UACF,CAAC;EACD,EACEI,GAAG,CAACG,QAAQ,KAAK,QAAQ,IAAIH,GAAG,CAACG,QAAQ,KAAK,OAAO,IAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBADvDZ,SAAS,QAEP,qCAAqC,IAFvCA,SAAS;EAITM,GAAG,CAACO,YAAY,CAACC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC;EAExC,OAAOR,GAAG,CAACS,IAAI;AACjB","ignoreList":[]}
|
|
@@ -972,5 +972,5 @@ exports.EMPTY_RANGE = EMPTY_RANGE;
|
|
|
972
972
|
exports.PortalDismissLayer = PortalDismissLayer;
|
|
973
973
|
exports.Select = Select;
|
|
974
974
|
exports.Select_default = Select_default;
|
|
975
|
-
//# sourceMappingURL=chunk-
|
|
976
|
-
//# sourceMappingURL=chunk-
|
|
975
|
+
//# sourceMappingURL=chunk-24W2HVQB.cjs.map
|
|
976
|
+
//# sourceMappingURL=chunk-24W2HVQB.cjs.map
|