@dxos/react-ui-gameboard 0.8.4-main.a4bbb77 → 0.8.4-main.ae835ea

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-gameboard",
3
- "version": "0.8.4-main.a4bbb77",
3
+ "version": "0.8.4-main.ae835ea",
4
4
  "description": "Game board.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -31,30 +31,30 @@
31
31
  "@radix-ui/react-context": "1.1.1",
32
32
  "chess.js": "^1.4.0",
33
33
  "react-resize-detector": "^11.0.1",
34
- "@dxos/debug": "0.8.4-main.a4bbb77",
35
- "@dxos/invariant": "0.8.4-main.a4bbb77",
36
- "@dxos/log": "0.8.4-main.a4bbb77",
37
- "@dxos/node-std": "0.8.4-main.a4bbb77",
38
- "@dxos/util": "0.8.4-main.a4bbb77"
34
+ "@dxos/debug": "0.8.4-main.ae835ea",
35
+ "@dxos/invariant": "0.8.4-main.ae835ea",
36
+ "@dxos/node-std": "0.8.4-main.ae835ea",
37
+ "@dxos/util": "0.8.4-main.ae835ea",
38
+ "@dxos/log": "0.8.4-main.ae835ea"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@svgr/cli": "^8.1.0",
42
42
  "@types/lodash.defaultsdeep": "^4.6.6",
43
- "@types/react": "~19.2.0",
44
- "@types/react-dom": "~19.2.0",
43
+ "@types/react": "~19.2.2",
44
+ "@types/react-dom": "~19.2.2",
45
45
  "lodash.defaultsdeep": "^4.6.1",
46
46
  "react": "~19.2.0",
47
47
  "react-dom": "~19.2.0",
48
48
  "vite": "7.1.9",
49
- "@dxos/react-ui": "0.8.4-main.a4bbb77",
50
- "@dxos/react-ui-theme": "0.8.4-main.a4bbb77",
51
- "@dxos/storybook-utils": "0.8.4-main.a4bbb77"
49
+ "@dxos/react-ui": "0.8.4-main.ae835ea",
50
+ "@dxos/react-ui-theme": "0.8.4-main.ae835ea",
51
+ "@dxos/storybook-utils": "0.8.4-main.ae835ea"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^19.0.0",
55
55
  "react-dom": "^19.0.0",
56
- "@dxos/react-ui": "0.8.4-main.a4bbb77",
57
- "@dxos/react-ui-theme": "0.8.4-main.a4bbb77"
56
+ "@dxos/react-ui": "0.8.4-main.ae835ea",
57
+ "@dxos/react-ui-theme": "0.8.4-main.ae835ea"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"
@@ -6,7 +6,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
7
7
 
8
8
  import { Button, Toolbar } from '@dxos/react-ui';
9
- import { withTheme } from '@dxos/react-ui/testing';
9
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
10
10
 
11
11
  import { Gameboard, type GameboardRootProps, type Move, type Player } from '../Gameboard';
12
12
 
@@ -80,10 +80,7 @@ const meta = {
80
80
  title: 'ui/react-ui-gameboard/Chessboard',
81
81
  component: Chessboard,
82
82
  render: DefaultStory,
83
- decorators: [withTheme],
84
- parameters: {
85
- layout: 'column',
86
- },
83
+ decorators: [withTheme, withLayout({ container: 'column' })],
87
84
  } satisfies Meta<typeof Chessboard>;
88
85
 
89
86
  export default meta;
@@ -7,7 +7,7 @@ import { useResizeDetector } from 'react-resize-detector';
7
7
 
8
8
  import { type ThemedClassName, useForwardedRef } from '@dxos/react-ui';
9
9
  import { mx } from '@dxos/react-ui-theme';
10
- import { isTruthy } from '@dxos/util';
10
+ import { isNonNullable } from '@dxos/util';
11
11
 
12
12
  import {
13
13
  type DOMRectBounds,
@@ -93,7 +93,7 @@ const ChessboardComponent = forwardRef<HTMLDivElement, ChessboardProps>(
93
93
  const bounds = grid[locationToString(piece.location)];
94
94
  return { piece, bounds };
95
95
  })
96
- .filter(isTruthy);
96
+ .filter(isNonNullable);
97
97
  }, [grid, model?.pieces.value, promoting]);
98
98
 
99
99
  return (