@osdk/react-components 0.14.0-main-082e4e623222d9b72e376c2d562644f3e48f539e → 0.14.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 +5 -12
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-Q35MRXEI.cjs → chunk-2ZHJ6SVE.cjs} +4 -4
- package/build/cjs/{chunk-Q35MRXEI.cjs.map → chunk-2ZHJ6SVE.cjs.map} +1 -1
- package/build/cjs/{chunk-R455COZ6.cjs → chunk-65BHVKDS.cjs} +3 -3
- package/build/cjs/chunk-65BHVKDS.cjs.map +1 -0
- package/build/cjs/{chunk-AOAHV6YU.cjs → chunk-EB32R5BL.cjs} +4 -4
- package/build/cjs/{chunk-AOAHV6YU.cjs.map → chunk-EB32R5BL.cjs.map} +1 -1
- package/build/cjs/{chunk-6QS7PKLG.cjs → chunk-MYDHKZHW.cjs} +4 -4
- package/build/cjs/{chunk-6QS7PKLG.cjs.map → chunk-MYDHKZHW.cjs.map} +1 -1
- package/build/cjs/{chunk-H7TP4CET.cjs → chunk-XEYMYI4E.cjs} +4 -4
- package/build/cjs/{chunk-H7TP4CET.cjs.map → chunk-XEYMYI4E.cjs.map} +1 -1
- package/build/cjs/public/experimental/action-form.cjs +4 -4
- package/build/cjs/public/experimental/filter-list.cjs +13 -13
- 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 +46 -46
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/package.json +7 -7
- package/build/cjs/chunk-R455COZ6.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
# @osdk/react-components
|
|
2
2
|
|
|
3
|
-
## 0.14.0
|
|
3
|
+
## 0.14.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- 69ebc43: Fix function-backed columns and lists with derived properties rendering stale values after an action edits a related object. ObjectTable's `useFunctionColumnsData` now passes the page's row PKs as `dependsOnObjects` to the underlying `useOsdkFunctions`, and function `ColumnDefinition` locators now accept an optional `dependsOn: string[]` for declaring linked object types the function reads server-side. Lists whose `withProperties` traverse linked types now also revalidate when an action edits one of those linked types. The action invalidation path fans out per-type invalidation in a single walk while the optimistic layer is still on top, so fresh values land in truth before the optimistic layer drops.
|
|
8
8
|
- 48d5ed2: Add `AipAgentChat` component — an OSDK-aware chat surface that wraps `useChat` from `@osdk/react/experimental/aip` against a Foundry LMS model. Importing the component is sufficient; consumers do not need to import `useChat` or `foundryModel` themselves. Also exports `BaseAipAgentChat` for advanced use with consumer-managed chat state.
|
|
9
|
+
- 19159ce: Add contrib skill
|
|
10
|
+
- d6a3194: Show selected filter values with count 0 when they are absent from aggregation results
|
|
9
11
|
- 082e4e6: Expose `FilterPopover`, `FilterInput`, and `useFilterListState` as composable primitives so consumers can build custom FilterList layouts (e.g. inline horizontal toolbars). Also exports `getFilterKey`, `getFilterLabel`, `summarizeFilterValue`, and `filterHasActiveState` helpers. See the `Experimental/FilterList/Recipes/Horizontal toolbar` story for a worked example. Also adds a pointer-hover highlight to non-disabled `Combobox` items (matches the existing `[data-highlighted]` keyboard-focus treatment).
|
|
12
|
+
- 85dde6e: Dedupe empty/null aggregation rows across all FilterList property filters. `usePropertyAggregation` now collapses any combination of `null`, `undefined`, and `""` buckets returned by the backend into a single "No value" row, so dropdown, multi-select, and text-tag filters no longer show two or more "No value" entries when the underlying aggregation produces multiple empty groupings. Whitespace-only strings remain as their literal value, matching Workshop. The behavior previously lived in `ListogramInput` only; lifting it into the hook covers every consumer. Adds a shared `dedupeEmptyAggregationRows` helper exported from `utils/filterValues.ts` for downstream reuse.
|
|
13
|
+
- 5165618: Fix layout flash in FilterList multi-select and single-select inputs during sibling-aggregation refetch. Previously, when a listogram checkbox toggled and triggered a refetch in sibling filters, MULTI_SELECT and SINGLE_SELECT inputs briefly stacked "Loading options..." and "Updating..." above the combobox, pushing the panel layout down and snapping back when the fetch completed. Both inputs now use the same useStableData pattern already used by ListogramInput and RangeInput: the last non-loading values are preserved across refetch so the combobox stays mounted with its prior options and chips, with no inline loading hint. The "Loading options..." empty-state still shows on genuine first load; "No options available" still shows when the aggregation resolves to empty.
|
|
10
14
|
- 082e4e6: Date input fields are now shared across action-form, filter-list, and object-table. The new `shared/calendar/` module exports `DatePicker` and `DateRangePicker` (extracted from action-form's `DatetimePickerField` / `DateRangeInputField`). Filter-list date filters render the shared popover calendar instead of native `<input type="date">` so every viewer sees the same `YYYY-MM-DD` regardless of browser locale. Date-range histograms now render as SVG with axis grid lines, count labels above each bar, locale-aware short month tick labels (e.g. `Jan`/`Feb` in English, localized in other browser locales) for monthly buckets and `yyyy` for yearly, plus a period subtitle. New `formatDate` callback on date filter definitions overrides the displayed string everywhere — picker idle text, histogram tooltip, period subtitle, x-tick labels, and chip text — without affecting the underlying ISO value. New `clickToFilter` flag on `DATE_RANGE` and `NUMBER_RANGE` filters enables clicking or dragging across histogram bars to set the range; drag-to-select uses pointer events with `setPointerCapture` for touch support and `pointercancel` cleanup. The previously plumbed-but-unused `parseDate` callback was removed; the shared pickers own input parsing.
|
|
11
15
|
|
|
12
16
|
Visual polish from review feedback: the "No value" label now has its own `--osdk-filter-no-value-font-size` CSS variable so the inline empty row in a histogram and the trailing row from `NullValueWrapper` render at the same size in all contexts; the listogram empty row also matches the null-wrapper's checkbox-to-label gap. Listogram bucket counts and null-row counts now use compact number formatting (`1.2K`, `1.5M`) with the full count exposed via `title` for a11y. Filter-list inputs and `FilterPopover` triggers were bumped to body-medium to match the rest of the codebase, and `RangeInput`'s outer Clear button and `ContainsTextInput`'s inline clear-X no longer cause layout shift when toggled (always rendered with `visibility: hidden` when inactive). `DateRangePicker` now exposes a `modal` prop (mirroring `DatePicker`) so callers can nest it inside another popover without the dismiss layer swallowing outer clicks.
|
|
13
17
|
|
|
14
|
-
### Patch Changes
|
|
15
|
-
|
|
16
|
-
- 19159ce: Add contrib skill
|
|
17
|
-
- d6a3194: Show selected filter values with count 0 when they are absent from aggregation results
|
|
18
|
-
- 85dde6e: Dedupe empty/null aggregation rows across all FilterList property filters. `usePropertyAggregation` now collapses any combination of `null`, `undefined`, and `""` buckets returned by the backend into a single "No value" row, so dropdown, multi-select, and text-tag filters no longer show two or more "No value" entries when the underlying aggregation produces multiple empty groupings. Whitespace-only strings remain as their literal value, matching Workshop. The behavior previously lived in `ListogramInput` only; lifting it into the hook covers every consumer. Adds a shared `dedupeEmptyAggregationRows` helper exported from `utils/filterValues.ts` for downstream reuse.
|
|
19
|
-
- 5165618: Fix layout flash in FilterList multi-select and single-select inputs during sibling-aggregation refetch. Previously, when a listogram checkbox toggled and triggered a refetch in sibling filters, MULTI_SELECT and SINGLE_SELECT inputs briefly stacked "Loading options..." and "Updating..." above the combobox, pushing the panel layout down and snapping back when the fetch completed. Both inputs now use the same useStableData pattern already used by ListogramInput and RangeInput: the last non-loading values are preserved across refetch so the combobox stays mounted with its prior options and chips, with no inline loading hint. The "Loading options..." empty-state still shows on genuine first load; "No options available" still shows when the aggregation resolves to empty.
|
|
20
18
|
- f45ab11: Fix filter list dropdown positioning: flip above trigger when near container bottom, hide when anchor scrolls out of view
|
|
21
19
|
- 662a0c7: Pin form footer in height-constrained containers so fields scroll independently
|
|
22
20
|
- 6344e8b: Strip time to local midnight in DatetimePickerField onChange when showTime is false
|
|
@@ -24,11 +22,6 @@
|
|
|
24
22
|
- 3943b67: Fix boolean properties rendering as empty in ObjectTable
|
|
25
23
|
- bcf9078: Add auto-size (fit to width) toggle to PDF viewer toolbar
|
|
26
24
|
- 81314f2: Fix dropdown field triggering validation when popover opens
|
|
27
|
-
- Updated dependencies [69ebc43]
|
|
28
|
-
- Updated dependencies [85a248d]
|
|
29
|
-
- @osdk/client@2.17.1-main-082e4e623222d9b72e376c2d562644f3e48f539e
|
|
30
|
-
- @osdk/api@2.17.1-main-082e4e623222d9b72e376c2d562644f3e48f539e
|
|
31
|
-
- @osdk/react@2.17.1-main-082e4e623222d9b72e376c2d562644f3e48f539e
|
|
32
25
|
|
|
33
26
|
## 0.13.0
|
|
34
27
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
const PACKAGE_USER_AGENT = `osdk-react-components/${"0.14.0
|
|
17
|
+
const PACKAGE_USER_AGENT = `osdk-react-components/${"0.14.0"}`;
|
|
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,mCAAsD;AAExD,OAAO,SAASC,kBAAkBA,CAACC,aAAqB,EAAU;EAChE,OAAO,GAAGF,kBAAkB,IAAIE,aAAa,EAAE;AACjD","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkX337DNCW_cjs = require('./chunk-X337DNCW.cjs');
|
|
4
4
|
var chunkEWLPXTKT_cjs = require('./chunk-EWLPXTKT.cjs');
|
|
5
5
|
var chunkZ4JDLERD_cjs = require('./chunk-Z4JDLERD.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk65BHVKDS_cjs = require('./chunk-65BHVKDS.cjs');
|
|
7
7
|
var chunkJBRNNWYC_cjs = require('./chunk-JBRNNWYC.cjs');
|
|
8
8
|
var chunk7LXS66DW_cjs = require('./chunk-7LXS66DW.cjs');
|
|
9
9
|
var button = require('@base-ui/react/button');
|
|
@@ -5055,7 +5055,7 @@ function summarizeFilterValue(definition, state) {
|
|
|
5055
5055
|
}
|
|
5056
5056
|
|
|
5057
5057
|
// src/public/experimental/filter-list.ts
|
|
5058
|
-
var FilterList2 =
|
|
5058
|
+
var FilterList2 = chunk65BHVKDS_cjs.withOsdkMetrics(FilterList, "FilterList");
|
|
5059
5059
|
|
|
5060
5060
|
exports.BaseFilterList = BaseFilterList;
|
|
5061
5061
|
exports.FilterInput = FilterInput;
|
|
@@ -5068,5 +5068,5 @@ exports.getFilterLabel = getFilterLabel;
|
|
|
5068
5068
|
exports.serializeFilterStates = serializeFilterStates;
|
|
5069
5069
|
exports.summarizeFilterValue = summarizeFilterValue;
|
|
5070
5070
|
exports.useFilterListState = useFilterListState;
|
|
5071
|
-
//# sourceMappingURL=chunk-
|
|
5072
|
-
//# sourceMappingURL=chunk-
|
|
5071
|
+
//# sourceMappingURL=chunk-2ZHJ6SVE.cjs.map
|
|
5072
|
+
//# sourceMappingURL=chunk-2ZHJ6SVE.cjs.map
|