@dxos/react-ui-gameboard 0.8.4-main.dedc0f3 → 0.8.4-main.e8ec1fe
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/dist/lib/browser/index.mjs +13 -39
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +13 -39
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Chessboard/Chessboard.d.ts +2 -2
- package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -1
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts +2 -3
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts.map +1 -1
- package/dist/types/src/components/Gameboard/Gameboard.d.ts +1 -1
- package/dist/types/src/components/Gameboard/Piece.d.ts +1 -1
- package/dist/types/src/components/Gameboard/Piece.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/components/Chessboard/Chessboard.stories.tsx +3 -5
- package/src/components/Chessboard/Chessboard.tsx +3 -4
- package/src/components/Gameboard/Piece.tsx +2 -3
|
@@ -8,7 +8,7 @@ export type ChessboardProps = ThemedClassName<PropsWithChildren<{
|
|
|
8
8
|
rows?: number;
|
|
9
9
|
cols?: number;
|
|
10
10
|
}>>;
|
|
11
|
-
export declare const Chessboard: React.
|
|
11
|
+
export declare const Chessboard: React.NamedExoticComponent<Omit<React.PropsWithChildren<{
|
|
12
12
|
orientation?: Player;
|
|
13
13
|
showLabels?: boolean;
|
|
14
14
|
debug?: boolean;
|
|
@@ -16,5 +16,5 @@ export declare const Chessboard: React.MemoExoticComponent<React.ForwardRefExoti
|
|
|
16
16
|
cols?: number;
|
|
17
17
|
}>, "className"> & {
|
|
18
18
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
19
|
-
} & React.RefAttributes<HTMLDivElement
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
//# sourceMappingURL=Chessboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chessboard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chessboard/Chessboard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA0D,MAAM,OAAO,CAAC;AAG9G,OAAO,EAAE,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"Chessboard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chessboard/Chessboard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA0D,MAAM,OAAO,CAAC;AAG9G,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AAIvE,OAAO,EAKL,KAAK,MAAM,EAIZ,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,eAAe,GAAG,eAAe,CAC3C,iBAAiB,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CACH,CAAC;AAuHF,eAAO,MAAM,UAAU;kBA7HL,MAAM;iBACP,OAAO;YACZ,OAAO;WACR,MAAM;WACN,MAAM;;;wCAyHkC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { type Player } from '../Gameboard';
|
|
@@ -8,7 +7,7 @@ type DefaultStoryProps = Pick<ChessboardProps, 'orientation' | 'showLabels' | 'd
|
|
|
8
7
|
};
|
|
9
8
|
declare const meta: {
|
|
10
9
|
title: string;
|
|
11
|
-
component: React.
|
|
10
|
+
component: React.NamedExoticComponent<Omit<React.PropsWithChildren<{
|
|
12
11
|
orientation?: Player;
|
|
13
12
|
showLabels?: boolean;
|
|
14
13
|
debug?: boolean;
|
|
@@ -16,7 +15,7 @@ declare const meta: {
|
|
|
16
15
|
cols?: number;
|
|
17
16
|
}>, "className"> & {
|
|
18
17
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
19
|
-
} & React.RefAttributes<HTMLDivElement
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
20
19
|
render: ({ orientation: _orientation, pgn, ...props }: DefaultStoryProps) => React.JSX.Element;
|
|
21
20
|
decorators: import("@storybook/react").Decorator[];
|
|
22
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chessboard.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chessboard/Chessboard.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Chessboard.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chessboard/Chessboard.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,OAAO,EAAiD,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAG1F,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IACvF,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AA6DF,QAAA,MAAM,IAAI;;;;;;;;;;;2DA3D0D,iBAAiB;;CAgElD,CAAC;AAEpC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,IAAI;;CAEhB,CAAC"}
|
|
@@ -30,7 +30,7 @@ export declare const Gameboard: {
|
|
|
30
30
|
}>, "className"> & {
|
|
31
31
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
32
32
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
Piece: React.MemoExoticComponent<({ classNames, Component, piece,
|
|
33
|
+
Piece: React.MemoExoticComponent<({ classNames, Component, piece, bounds, label, onClick }: PieceProps) => React.JSX.Element>;
|
|
34
34
|
Square: React.MemoExoticComponent<({ location, bounds, label, classNames }: SquareProps) => React.JSX.Element>;
|
|
35
35
|
};
|
|
36
36
|
export { useGameboardContext };
|
|
@@ -10,5 +10,5 @@ export type PieceProps = ThemedClassName<{
|
|
|
10
10
|
orientation?: Player;
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const Piece: React.MemoExoticComponent<({ classNames, Component, piece,
|
|
13
|
+
export declare const Piece: React.MemoExoticComponent<({ classNames, Component, piece, bounds, label, onClick }: PieceProps) => React.JSX.Element>;
|
|
14
14
|
//# sourceMappingURL=Piece.d.ts.map
|
|
@@ -1 +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,
|
|
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;AAEH,eAAO,MAAM,KAAK,uFAAmE,UAAU,uBA0G7F,CAAC"}
|