@dxos/react-ui-gameboard 0.8.1-staging.391c573 → 0.8.1-staging.97aedb1
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.
|
@@ -5,10 +5,10 @@ import { type ChessboardProps } from './Chessboard';
|
|
|
5
5
|
type RenderProps = Pick<ChessboardProps, 'orientation' | 'showLabels' | 'debug'> & {
|
|
6
6
|
fen: string;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
9
|
-
declare const meta: Meta<typeof
|
|
8
|
+
declare const DefaultStory: ({ fen, orientation: _orientation, ...props }: RenderProps) => React.JSX.Element;
|
|
9
|
+
declare const meta: Meta<typeof DefaultStory>;
|
|
10
10
|
export default meta;
|
|
11
|
-
type Story = StoryObj<typeof
|
|
11
|
+
type Story = StoryObj<typeof DefaultStory>;
|
|
12
12
|
export declare const Default: Story;
|
|
13
13
|
export declare const Promotion: Story;
|
|
14
14
|
export declare const Debug: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chessboard.stories.d.ts","sourceRoot":"","sources":["../../../../src/Chessboard/Chessboard.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAIhE,KAAK,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IACjF,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"Chessboard.stories.d.ts","sourceRoot":"","sources":["../../../../src/Chessboard/Chessboard.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAIhE,KAAK,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IACjF,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,QAAA,MAAM,YAAY,iDAAkD,WAAW,sBA6B9E,CAAC;AA2BF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAKnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-gameboard",
|
|
3
|
-
"version": "0.8.1-staging.
|
|
3
|
+
"version": "0.8.1-staging.97aedb1",
|
|
4
4
|
"description": "Game board.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"@preact/signals-core": "^1.6.0",
|
|
26
26
|
"chess.js": "^1.0.0",
|
|
27
27
|
"react-resize-detector": "^11.0.1",
|
|
28
|
-
"@dxos/debug": "0.8.1-staging.
|
|
29
|
-
"@dxos/invariant": "0.8.1-staging.
|
|
30
|
-
"@dxos/log": "0.8.1-staging.
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/
|
|
28
|
+
"@dxos/debug": "0.8.1-staging.97aedb1",
|
|
29
|
+
"@dxos/invariant": "0.8.1-staging.97aedb1",
|
|
30
|
+
"@dxos/log": "0.8.1-staging.97aedb1",
|
|
31
|
+
"@dxos/util": "0.8.1-staging.97aedb1",
|
|
32
|
+
"@dxos/node-std": "0.8.1-staging.97aedb1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@svgr/cli": "^8.1.0",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"react": "~18.2.0",
|
|
41
41
|
"react-dom": "~18.2.0",
|
|
42
42
|
"vite": "5.4.7",
|
|
43
|
-
"@dxos/react-ui": "0.8.1-staging.
|
|
44
|
-
"@dxos/react-ui-theme": "0.8.1-staging.
|
|
45
|
-
"@dxos/storybook-utils": "0.8.1-staging.
|
|
43
|
+
"@dxos/react-ui": "0.8.1-staging.97aedb1",
|
|
44
|
+
"@dxos/react-ui-theme": "0.8.1-staging.97aedb1",
|
|
45
|
+
"@dxos/storybook-utils": "0.8.1-staging.97aedb1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "~18.2.0",
|
|
49
49
|
"react-dom": "~18.2.0",
|
|
50
|
-
"@dxos/react-ui
|
|
51
|
-
"@dxos/react-ui": "0.8.1-staging.
|
|
50
|
+
"@dxos/react-ui": "0.8.1-staging.97aedb1",
|
|
51
|
+
"@dxos/react-ui-theme": "0.8.1-staging.97aedb1"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
@@ -19,7 +19,7 @@ type RenderProps = Pick<ChessboardProps, 'orientation' | 'showLabels' | 'debug'>
|
|
|
19
19
|
fen: string;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const DefaultStory = ({ fen, orientation: _orientation, ...props }: RenderProps) => {
|
|
23
23
|
const model = useMemo(() => new ChessModel(fen), [fen]);
|
|
24
24
|
const [orientation, setOrientation] = useState<Player | undefined>(_orientation);
|
|
25
25
|
|
|
@@ -75,16 +75,16 @@ const Grid = (props: RenderProps) => {
|
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const meta: Meta<typeof
|
|
78
|
+
const meta: Meta<typeof DefaultStory> = {
|
|
79
79
|
title: 'ui/react-ui-gameboard/Chessboard',
|
|
80
80
|
component: Chessboard,
|
|
81
|
-
render:
|
|
81
|
+
render: DefaultStory,
|
|
82
82
|
decorators: [withTheme, withLayout({ fullscreen: true, classNames: '' })],
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
export default meta;
|
|
86
86
|
|
|
87
|
-
type Story = StoryObj<typeof
|
|
87
|
+
type Story = StoryObj<typeof DefaultStory>;
|
|
88
88
|
|
|
89
89
|
export const Default: Story = {};
|
|
90
90
|
|