@dxos/react-ui-gameboard 0.8.3 → 0.8.4-main.1068cf700f

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.
Files changed (76) hide show
  1. package/dist/lib/browser/index.mjs +764 -825
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +764 -825
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/components/Chessboard/Chessboard.d.ts +20 -0
  8. package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -0
  9. package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts +30 -0
  10. package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts.map +1 -0
  11. package/dist/types/src/components/Chessboard/chess.d.ts +60 -0
  12. package/dist/types/src/components/Chessboard/chess.d.ts.map +1 -0
  13. package/dist/types/src/components/Chessboard/chess.test.d.ts +2 -0
  14. package/dist/types/src/components/Chessboard/chess.test.d.ts.map +1 -0
  15. package/dist/types/src/components/Chessboard/index.d.ts.map +1 -0
  16. package/dist/types/src/components/Gameboard/Gameboard.d.ts +38 -0
  17. package/dist/types/src/components/Gameboard/Gameboard.d.ts.map +1 -0
  18. package/dist/types/src/{Board → components/Gameboard}/Piece.d.ts +3 -2
  19. package/dist/types/src/components/Gameboard/Piece.d.ts.map +1 -0
  20. package/dist/types/src/components/Gameboard/Square.d.ts.map +1 -0
  21. package/dist/types/src/components/Gameboard/index.d.ts +4 -0
  22. package/dist/types/src/components/Gameboard/index.d.ts.map +1 -0
  23. package/dist/types/src/{Board → components/Gameboard}/types.d.ts +4 -3
  24. package/dist/types/src/components/Gameboard/types.d.ts.map +1 -0
  25. package/dist/types/src/components/Gameboard/util.d.ts.map +1 -0
  26. package/dist/types/src/components/index.d.ts +3 -0
  27. package/dist/types/src/components/index.d.ts.map +1 -0
  28. package/dist/types/src/index.d.ts +1 -2
  29. package/dist/types/src/index.d.ts.map +1 -1
  30. package/dist/types/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +32 -24
  32. package/src/components/Chessboard/Chessboard.stories.tsx +113 -0
  33. package/src/components/Chessboard/Chessboard.tsx +206 -0
  34. package/src/components/Chessboard/chess.test.ts +19 -0
  35. package/src/components/Chessboard/chess.ts +325 -0
  36. package/src/components/Gameboard/Gameboard.tsx +145 -0
  37. package/src/{Board → components/Gameboard}/Piece.tsx +27 -23
  38. package/src/{Board → components/Gameboard}/Square.tsx +8 -6
  39. package/src/components/Gameboard/index.ts +8 -0
  40. package/src/{Board → components/Gameboard}/types.ts +5 -3
  41. package/src/components/index.ts +6 -0
  42. package/src/index.ts +1 -2
  43. package/dist/lib/node/index.cjs +0 -1039
  44. package/dist/lib/node/index.cjs.map +0 -7
  45. package/dist/lib/node/meta.json +0 -1
  46. package/dist/types/src/Board/Board.d.ts +0 -15
  47. package/dist/types/src/Board/Board.d.ts.map +0 -1
  48. package/dist/types/src/Board/Container.d.ts +0 -14
  49. package/dist/types/src/Board/Container.d.ts.map +0 -1
  50. package/dist/types/src/Board/Piece.d.ts.map +0 -1
  51. package/dist/types/src/Board/Square.d.ts.map +0 -1
  52. package/dist/types/src/Board/context.d.ts +0 -10
  53. package/dist/types/src/Board/context.d.ts.map +0 -1
  54. package/dist/types/src/Board/index.d.ts +0 -8
  55. package/dist/types/src/Board/index.d.ts.map +0 -1
  56. package/dist/types/src/Board/types.d.ts.map +0 -1
  57. package/dist/types/src/Board/util.d.ts.map +0 -1
  58. package/dist/types/src/Chessboard/Chessboard.d.ts +0 -14
  59. package/dist/types/src/Chessboard/Chessboard.d.ts.map +0 -1
  60. package/dist/types/src/Chessboard/Chessboard.stories.d.ts +0 -16
  61. package/dist/types/src/Chessboard/Chessboard.stories.d.ts.map +0 -1
  62. package/dist/types/src/Chessboard/chess.d.ts +0 -40
  63. package/dist/types/src/Chessboard/chess.d.ts.map +0 -1
  64. package/dist/types/src/Chessboard/index.d.ts.map +0 -1
  65. package/src/Board/Board.tsx +0 -86
  66. package/src/Board/Container.tsx +0 -25
  67. package/src/Board/context.ts +0 -22
  68. package/src/Board/index.ts +0 -12
  69. package/src/Chessboard/Chessboard.stories.tsx +0 -108
  70. package/src/Chessboard/Chessboard.tsx +0 -190
  71. package/src/Chessboard/chess.ts +0 -213
  72. /package/dist/types/src/{Chessboard → components/Chessboard}/index.d.ts +0 -0
  73. /package/dist/types/src/{Board → components/Gameboard}/Square.d.ts +0 -0
  74. /package/dist/types/src/{Board → components/Gameboard}/util.d.ts +0 -0
  75. /package/src/{Chessboard → components/Chessboard}/index.ts +0 -0
  76. /package/src/{Board → components/Gameboard}/util.ts +0 -0
@@ -0,0 +1,60 @@
1
+ import { Atom, type Registry } from '@effect-atom/atom-react';
2
+ import { Chess as ChessJS } from 'chess.js';
3
+ import { type FC, type SVGProps } from 'react';
4
+ import { type GameboardModel, type Location, type Move, type PieceMap, type Player } from '../Gameboard';
5
+ export type ChessPiece = 'BK' | 'BQ' | 'BR' | 'BB' | 'BN' | 'BP' | 'WK' | 'WQ' | 'WR' | 'WB' | 'WN' | 'WP';
6
+ export declare const ChessPieces: Record<ChessPiece, FC<SVGProps<SVGSVGElement>>>;
7
+ export declare const posToLocation: (pos: string) => Location;
8
+ export declare const locationToPos: ([row, col]: Location) => string;
9
+ export declare const getRawPgn: (pgn: string) => string;
10
+ export declare const boardStyles: {
11
+ black: string;
12
+ white: string;
13
+ promotion: string;
14
+ };
15
+ export declare const getSquareColor: ([row, col]: Location) => string;
16
+ export declare const createChess: (pgn?: string) => ChessJS;
17
+ /**
18
+ * Chess model.
19
+ */
20
+ export declare class ChessModel implements GameboardModel<ChessPiece> {
21
+ private readonly _registry;
22
+ private readonly _chess;
23
+ private readonly _pieces;
24
+ private readonly _moveIndex;
25
+ constructor(_registry: Registry.Registry, pgn?: string);
26
+ get readonly(): boolean;
27
+ get turn(): Player;
28
+ get game(): ChessJS;
29
+ get pieces(): Atom.Atom<PieceMap<ChessPiece>>;
30
+ get moveIndex(): Atom.Atom<number>;
31
+ get fen(): string;
32
+ /**
33
+ * PGN with headers.
34
+ *
35
+ * [Event "?"]
36
+ * [Site "?"]
37
+ * [Date "2025.08.05"]
38
+ * [Round "?"]
39
+ * [White "?"]
40
+ * [Black "?"]
41
+ * [Result "*"]
42
+ */
43
+ get pgn(): string;
44
+ setMoveIndex(index: number): void;
45
+ update(pgn?: string): void;
46
+ isValidMove(move: Move): boolean;
47
+ canPromote(move: Move): boolean;
48
+ makeMove(move: Move): boolean;
49
+ makeRandomMove(): boolean;
50
+ /**
51
+ * Update pieces preserving identity.
52
+ */
53
+ private _updateBoard;
54
+ }
55
+ /**
56
+ * Starting from a new game, assign piece IDs based on their starting position.
57
+ * Then iterate through the history of the provided game and update the piece map.
58
+ */
59
+ export declare const createPieceMap: (chess: ChessJS) => PieceMap<ChessPiece>;
60
+ //# sourceMappingURL=chess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chess.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chessboard/chess.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAM/C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,QAAQ,EAEb,KAAK,MAAM,EAEZ,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3G,eAAO,MAAM,WAAW,EAAE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AAI,GAAG,OAAO;IAM/B,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAU7B,cAAc,IAAI,OAAO;IAazB;;OAEG;IACH,OAAO,CAAC,YAAY;CAIrB;AA+BD;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,KAAG,QAAQ,CAAC,UAAU,CAgBlE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chess.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chess.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chessboard/chess.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chessboard/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AAExB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,38 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { type ThemedClassName } from '@dxos/react-ui';
3
+ import { type PieceProps } from './Piece';
4
+ import { type SquareProps } from './Square';
5
+ import { type GameboardModel, type Move, type PieceRecord } from './types';
6
+ export type GameboardContextValue<M extends GameboardModel<any>> = {
7
+ model: M;
8
+ dragging?: boolean;
9
+ promoting?: PieceRecord;
10
+ onPromotion: (move: Move) => void;
11
+ };
12
+ declare const useGameboardContext: <M extends GameboardModel<any>>(consumerName: string) => GameboardContextValue<M>;
13
+ type GameboardRootProps<M extends GameboardModel<any>> = PropsWithChildren<{
14
+ model?: M;
15
+ moveNumber?: number;
16
+ onDrop?: (move: Move) => boolean;
17
+ }>;
18
+ type GameboardContentProps = ThemedClassName<PropsWithChildren<{
19
+ grow?: boolean;
20
+ contain?: boolean;
21
+ }>>;
22
+ export declare const Gameboard: {
23
+ Root: {
24
+ <M extends GameboardModel<any>>({ children, model, moveNumber, onDrop, }: GameboardRootProps<M>): React.JSX.Element;
25
+ displayName: string;
26
+ };
27
+ Content: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
28
+ grow?: boolean;
29
+ contain?: boolean;
30
+ }>, "className"> & {
31
+ classNames?: import("@dxos/ui-types").ClassNameValue;
32
+ } & React.RefAttributes<HTMLDivElement>>;
33
+ Piece: React.MemoExoticComponent<({ classNames, Component, piece, bounds, label, onClick }: PieceProps) => React.JSX.Element>;
34
+ Square: React.MemoExoticComponent<({ location, bounds, label, classNames }: SquareProps) => React.JSX.Element>;
35
+ };
36
+ export { useGameboardContext };
37
+ export type { GameboardRootProps, GameboardContentProps, PieceProps as GameboardPieceProps, SquareProps as GameboardSquareProps, };
38
+ //# sourceMappingURL=Gameboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gameboard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Gameboard/Gameboard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAgD,MAAM,OAAO,CAAC;AAGpG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAAuB,MAAM,SAAS,CAAC;AAEhG,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,IAAI;IACjE,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACnC,CAAC;AAIF,QAAA,MAAM,mBAAmB,GAAI,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EAAE,cAAc,MAAM,KAAG,qBAAqB,CAAC,CAAC,CAEzG,CAAC;AAMF,KAAK,kBAAkB,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,IAAI,iBAAiB,CAAC;IACzE,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CAClC,CAAC,CAAC;AAuEH,KAAK,qBAAqB,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAAC;AAsBvG,eAAO,MAAM,SAAS;;SAxFC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,4CAKjD,kBAAkB,CAAC,CAAC,CAAC;;;;eA6DgD,OAAO;kBAAY,OAAO;;;;;;CA2BjG,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,IAAI,mBAAmB,EACjC,WAAW,IAAI,oBAAoB,GACpC,CAAC"}
@@ -3,11 +3,12 @@ import { type ThemedClassName } from '@dxos/react-ui';
3
3
  import { type PieceRecord, type Player } from './types';
4
4
  import { type DOMRectBounds } from './util';
5
5
  export type PieceProps = ThemedClassName<{
6
+ Component: FC<SVGProps<SVGSVGElement>>;
6
7
  piece: PieceRecord;
7
8
  bounds: DOMRectBounds;
8
9
  label?: string;
9
10
  orientation?: Player;
10
- Component: FC<SVGProps<SVGSVGElement>>;
11
+ onClick?: () => void;
11
12
  }>;
12
- export declare const Piece: React.MemoExoticComponent<({ classNames, piece, orientation, bounds, label, Component }: PieceProps) => React.JSX.Element>;
13
+ export declare const Piece: React.MemoExoticComponent<({ classNames, Component, piece, bounds, label, onClick }: PieceProps) => React.JSX.Element>;
13
14
  //# sourceMappingURL=Piece.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Piece.d.ts","sourceRoot":"","sources":["../../../../../src/components/Gameboard/Piece.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,QAAQ,EAAqC,MAAM,OAAO,CAAC;AAKzF,OAAO,EAAE,KAAK,eAAe,EAAiB,MAAM,gBAAgB,CAAC;AAIrE,OAAO,EAAiB,KAAK,WAAW,EAAE,KAAK,MAAM,EAA+B,MAAM,SAAS,CAAC;AACpG,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC;IACvC,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IACvC,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC,CAAC;AAIH,eAAO,MAAM,KAAK,uFAAmE,UAAU,uBA0G7F,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Square.d.ts","sourceRoot":"","sources":["../../../../../src/components/Gameboard/Square.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EAAE,KAAK,QAAQ,EAAW,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAI5C,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;IACxC,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAIH,eAAO,MAAM,MAAM,sEAAkD,WAAW,uBA+C9E,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './types';
2
+ export * from './util';
3
+ export * from './Gameboard';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Gameboard/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AAEvB,cAAc,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ReadonlySignal } from '@preact/signals-core';
1
+ import { type Atom } from '@effect-atom/atom-react';
2
2
  export type Player = 'black' | 'white';
3
3
  export type Location = [number, number];
4
4
  export type PieceType = string;
@@ -26,9 +26,10 @@ export declare const isEqualLocation: (l1: Location, l2: Location) => boolean;
26
26
  /**
27
27
  * Generic board model.
28
28
  */
29
- export interface BoardModel<T extends PieceType = PieceType> {
29
+ export interface GameboardModel<T extends PieceType = PieceType> {
30
+ readonly: boolean;
30
31
  turn: Player;
31
- pieces: ReadonlySignal<PieceMap<T>>;
32
+ pieces: Atom.Atom<PieceMap<T>>;
32
33
  isValidMove: (move: Move) => boolean;
33
34
  canPromote?: (move: Move) => boolean;
34
35
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Gameboard/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAExC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM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AW,WAAW,EAAE,SAAS,WAAW,KAAG,aAShF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './Gameboard';
2
+ export * from './Chessboard';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
@@ -1,3 +1,2 @@
1
- export * from './Board';
2
- export * from './Chessboard';
1
+ export * from './components';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}