@osdk/react-components 0.5.0 → 0.6.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/AGENTS.md +7 -1
- package/CHANGELOG.md +6 -0
- package/README.md +9 -3
- package/build/browser/util/UserAgent.js +1 -1
- package/build/cjs/{chunk-BVLPZ4A7.cjs → chunk-FF7DFNVC.cjs} +4 -4
- package/build/cjs/{chunk-BVLPZ4A7.cjs.map → chunk-FF7DFNVC.cjs.map} +1 -1
- package/build/cjs/{chunk-HYROJGPG.cjs → chunk-GDKDKZ4H.cjs} +4 -4
- package/build/cjs/{chunk-HYROJGPG.cjs.map → chunk-GDKDKZ4H.cjs.map} +1 -1
- package/build/cjs/{chunk-5DPIS4DA.cjs → chunk-HSA4UIKA.cjs} +4 -4
- package/build/cjs/{chunk-5DPIS4DA.cjs.map → chunk-HSA4UIKA.cjs.map} +1 -1
- package/build/cjs/{chunk-K2PC2T5C.cjs → chunk-IQZ6IABQ.cjs} +3 -3
- package/build/cjs/{chunk-K2PC2T5C.cjs.map → chunk-IQZ6IABQ.cjs.map} +1 -1
- package/build/cjs/{chunk-JXYROL4C.cjs → chunk-NFG6NXZN.cjs} +4 -4
- package/build/cjs/{chunk-JXYROL4C.cjs.map → chunk-NFG6NXZN.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 +6 -6
- package/build/cjs/public/experimental/pdf-viewer.cjs +24 -24
- package/build/cjs/public/experimental.cjs +37 -37
- package/build/esm/util/UserAgent.js +1 -1
- package/docs/FilterList.md +5 -4
- package/docs/MarkdownRenderer.md +2 -2
- package/docs/ObjectTable.md +18 -18
- package/docs/PdfViewer.md +10 -7
- package/docs/TiffViewer.md +2 -2
- package/package.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -4,7 +4,13 @@ Pre-built, Ontology-aware React components. Pass in OSDK entities and they handl
|
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Components are imported from their individual entry points under `@osdk/react-components/experimental/`:
|
|
8
|
+
|
|
9
|
+
- `@osdk/react-components/experimental/object-table` — ObjectTable, BaseTable, ColumnConfigDialog
|
|
10
|
+
- `@osdk/react-components/experimental/filter-list` — FilterList, BaseFilterList
|
|
11
|
+
- `@osdk/react-components/experimental/pdf-viewer` — PdfViewer, BasePdfViewer, and building blocks/hooks
|
|
12
|
+
- `@osdk/react-components/experimental/tiff-renderer` — TiffRenderer
|
|
13
|
+
- `@osdk/react-components/experimental/markdown-renderer` — MarkdownRenderer
|
|
8
14
|
|
|
9
15
|
| Component | Description |
|
|
10
16
|
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -197,12 +197,18 @@ src/
|
|
|
197
197
|
│ ├── utils/ # Helper utilities and types
|
|
198
198
|
│ └── components/ # Supporting React components
|
|
199
199
|
└── public/
|
|
200
|
-
└── experimental
|
|
200
|
+
└── experimental/ # Public API exports (one file per component)
|
|
201
|
+
├── object-table.ts
|
|
202
|
+
├── filter-list.ts
|
|
203
|
+
├── pdf-viewer.ts
|
|
204
|
+
├── markdown-renderer.ts
|
|
205
|
+
├── tiff-renderer.ts
|
|
206
|
+
└── action-form.ts
|
|
201
207
|
```
|
|
202
208
|
|
|
203
209
|
### Export Strategy
|
|
204
210
|
|
|
205
|
-
- **OSDK Components**: Exported through `experimental
|
|
211
|
+
- **OSDK Components**: Exported through individual entry points under `experimental/` (e.g., `experimental/object-table`, `experimental/filter-list`)
|
|
206
212
|
- **Base Components**: Select base components are exported for advanced use cases (e.g., `BaseTable`, `BaseFilterList`)
|
|
207
213
|
- **UI Primitives**: The `base-components/` folder contains internal UI primitives that are **NOT exported**
|
|
208
214
|
|
|
@@ -249,7 +255,7 @@ See the [CSS Variables Reference](./docs/CSSVariables.md) on how to apply custom
|
|
|
249
255
|
### Object Table
|
|
250
256
|
|
|
251
257
|
```ts
|
|
252
|
-
import { ObjectTable } from "@osdk/react-components/experimental";
|
|
258
|
+
import { ObjectTable } from "@osdk/react-components/experimental/object-table";
|
|
253
259
|
import { Employee } from "@your-osdk-package";
|
|
254
260
|
|
|
255
261
|
function EmployeeDirectory() {
|
|
@@ -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.6.0"}`;
|
|
18
18
|
export function componentUserAgent(componentName) {
|
|
19
19
|
return `${PACKAGE_USER_AGENT}/${componentName}`;
|
|
20
20
|
}
|
|
@@ -6,7 +6,7 @@ var chunkWO3AE3GP_cjs = require('./chunk-WO3AE3GP.cjs');
|
|
|
6
6
|
var chunkOHKKNZZS_cjs = require('./chunk-OHKKNZZS.cjs');
|
|
7
7
|
var chunkYQIMVHDC_cjs = require('./chunk-YQIMVHDC.cjs');
|
|
8
8
|
var chunk7LXS66DW_cjs = require('./chunk-7LXS66DW.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkIQZ6IABQ_cjs = require('./chunk-IQZ6IABQ.cjs');
|
|
10
10
|
var reactTable = require('@tanstack/react-table');
|
|
11
11
|
var React14 = require('react');
|
|
12
12
|
var react = require('@osdk/react');
|
|
@@ -2811,11 +2811,11 @@ function ObjectTable({
|
|
|
2811
2811
|
}
|
|
2812
2812
|
|
|
2813
2813
|
// src/public/experimental/object-table.ts
|
|
2814
|
-
var ObjectTable2 =
|
|
2814
|
+
var ObjectTable2 = chunkIQZ6IABQ_cjs.withOsdkMetrics(ObjectTable, "ObjectTable");
|
|
2815
2815
|
|
|
2816
2816
|
exports.BaseTable = BaseTable;
|
|
2817
2817
|
exports.ColumnConfigDialog = ColumnConfigDialog;
|
|
2818
2818
|
exports.MultiColumnSortDialog = MultiColumnSortDialog;
|
|
2819
2819
|
exports.ObjectTable = ObjectTable2;
|
|
2820
|
-
//# sourceMappingURL=chunk-
|
|
2821
|
-
//# sourceMappingURL=chunk-
|
|
2820
|
+
//# sourceMappingURL=chunk-FF7DFNVC.cjs.map
|
|
2821
|
+
//# sourceMappingURL=chunk-FF7DFNVC.cjs.map
|