@homebound/beam 2.102.1 → 2.102.2

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.
@@ -81,7 +81,7 @@ exports.setGridTableDefaults = setGridTableDefaults;
81
81
  */
82
82
  function GridTable(props) {
83
83
  var _a;
84
- const { id = "grid-table", as = "div", columns, rows, style = defaults.style, rowStyles, stickyHeader = defaults.stickyHeader, stickyOffset = "0", xss, sorting, filter, filterMaxRows, fallbackMessage = "No rows found.", infoMessage, setRowCount, observeRows, persistCollapse, api, } = props;
84
+ const { id = "gridTable", as = "div", columns, rows, style = defaults.style, rowStyles, stickyHeader = defaults.stickyHeader, stickyOffset = "0", xss, sorting, filter, filterMaxRows, fallbackMessage = "No rows found.", infoMessage, setRowCount, observeRows, persistCollapse, api, } = props;
85
85
  const [collapsedIds, collapseAllContext, collapseRowContext] = useToggleIds(rows, persistCollapse);
86
86
  // We only use this in as=virtual mode, but keep this here for rowLookup to use
87
87
  const virtuosoRef = (0, react_1.useRef)(null);
package/dist/utils/rtl.js CHANGED
@@ -34,7 +34,7 @@ function render(component, wrapperOrOpts, ...otherWrappers) {
34
34
  }
35
35
  exports.render = render;
36
36
  function cell(r, row, column) {
37
- return cellOf(r, "grid-table", row, column);
37
+ return cellOf(r, "gridTable", row, column);
38
38
  }
39
39
  exports.cell = cell;
40
40
  function cellOf(r, tableTestId, rowNum, column) {
@@ -47,7 +47,7 @@ function cellAnd(r, row, column, testId) {
47
47
  fail(`Element not found ${(0, react_1.prettyDOM)(cell(r, row, column))}`));
48
48
  }
49
49
  exports.cellAnd = cellAnd;
50
- function row(r, row, tableTestId = "grid-table") {
50
+ function row(r, row, tableTestId = "gridTable") {
51
51
  const nonChromeRows = Array.from(r.getByTestId(tableTestId).childNodes).filter((node) => !("chrome" in node.dataset));
52
52
  return nonChromeRows[row];
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.102.1",
3
+ "version": "2.102.2",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "format": "prettier --loglevel warn --write \"**/*.{ts,tsx,css,md}\""
34
34
  },
35
35
  "dependencies": {
36
- "@homebound/form-state": "2.4.1",
36
+ "@homebound/form-state": "2.5.0",
37
37
  "@internationalized/number": "^3.0.3",
38
38
  "@react-aria/utils": "^3.9.0",
39
39
  "@react-hook/resize-observer": "^1.2.2",