@react-chess-tools/react-chess-game 1.0.2 → 1.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @react-chess-tools/react-chess-game
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 1c4f876: docs: update README files
8
+ - e678d58: chore: update dependencies
9
+ - Updated dependencies [1c4f876]
10
+ - Updated dependencies [e678d58]
11
+ - @react-chess-tools/react-chess-clock@1.0.2
12
+
3
13
  ## 1.0.2
4
14
 
5
15
  ### Patch Changes
package/README.md CHANGED
@@ -313,14 +313,13 @@ A button to start, pause, and resume the clock.
313
313
  A button that resets the clock.
314
314
 
315
315
  ```tsx
316
- <ChessGame.Clock.Reset>Reset</ChessGame.Clock.Reset>;
316
+ // Reset with same time control
317
+ <ChessGame.Clock.Reset>Reset</ChessGame.Clock.Reset>
317
318
 
318
- {
319
- /* Reset with new time control */
320
- }
319
+ // Reset with new time control
321
320
  <ChessGame.Clock.Reset timeControl="10+5">
322
321
  Change to 10+5
323
- </ChessGame.Clock.Reset>;
322
+ </ChessGame.Clock.Reset>
324
323
  ```
325
324
 
326
325
  **Props:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-chess-tools/react-chess-game",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "react-chess-game is a React component bridging chess.js with react-chessboard to offer a full-featured, ready-to-integrate chess board experience.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -40,7 +40,7 @@
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
42
  "@radix-ui/react-slot": "^1.2.4",
43
- "@react-chess-tools/react-chess-clock": "^1.0.1",
43
+ "@react-chess-tools/react-chess-clock": "^1.0.2",
44
44
  "chess.js": "^1.4.0",
45
45
  "lodash": "^4.17.21",
46
46
  "react-chessboard": "^5.8.6"
@@ -1,4 +1,4 @@
1
- import type { Meta } from "@storybook/react";
1
+ import type { Meta } from "@storybook/react-vite";
2
2
 
3
3
  import React from "react";
4
4
  import { ChessGame } from "./index";
@@ -1,4 +1,4 @@
1
- import type { Meta } from "@storybook/react";
1
+ import type { Meta } from "@storybook/react-vite";
2
2
  import React, { useState } from "react";
3
3
  import { ChessGame } from "./index";
4
4
  import { defaultGameTheme, themes } from "../../theme";
@@ -1,4 +1,4 @@
1
- import type { Meta } from "@storybook/react";
1
+ import type { Meta } from "@storybook/react-vite";
2
2
  import React from "react";
3
3
  import { ChessGame } from "./index";
4
4
  import { themes } from "../../theme";
@@ -1,5 +1,5 @@
1
1
  {/* Theming.mdx */}
2
- import { Meta, ColorPalette, ColorItem } from '@storybook/blocks';
2
+ import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs/blocks';
3
3
 
4
4
  <Meta title="react-chess-game/Theming" />
5
5