@homebound/beam 2.101.3 → 2.101.4

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.
@@ -8,7 +8,7 @@ export declare type GridTableXss = Xss<Margin>;
8
8
  export declare const ASC: "ASC";
9
9
  export declare const DESC: "DESC";
10
10
  export declare type Direction = "ASC" | "DESC";
11
- export declare const emptyCell: () => ReactNode;
11
+ export declare const emptyCell: GridCellContent;
12
12
  /** Tells GridTable we're running in Jest, which forces as=virtual to be as=div, to work in jsdom. */
13
13
  export declare function setRunningInJest(): void;
14
14
  /** Completely static look & feel, i.e. nothing that is based on row kinds/content. */
@@ -212,7 +212,7 @@ declare type GridRowKind<R extends Kinded, P extends R["kind"]> = DiscriminateUn
212
212
  * column being sorted, in which case we use the GridCellContent.value.
213
213
  */
214
214
  export declare type GridColumn<R extends Kinded, S = {}> = {
215
- [K in R["kind"]]: string | (DiscriminateUnion<R, "kind", K> extends {
215
+ [K in R["kind"]]: string | GridCellContent | (DiscriminateUnion<R, "kind", K> extends {
216
216
  data: infer D;
217
217
  } ? (data: D, row: GridRowKind<R, K>) => ReactNode | GridCellContent : (row: GridRowKind<R, K>) => ReactNode | GridCellContent);
218
218
  } & {
@@ -42,8 +42,7 @@ const tinycolor2_1 = __importDefault(require("tinycolor2"));
42
42
  const _1 = require(".");
43
43
  exports.ASC = "ASC";
44
44
  exports.DESC = "DESC";
45
- const emptyCell = () => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
46
- exports.emptyCell = emptyCell;
45
+ exports.emptyCell = { content: () => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0), value: "" };
47
46
  let runningInJest = false;
48
47
  /** Tells GridTable we're running in Jest, which forces as=virtual to be as=div, to work in jsdom. */
49
48
  function setRunningInJest() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.101.3",
3
+ "version": "2.101.4",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",