@hackersheet/next-document-content-kifu 0.1.0-alpha.13 → 0.1.0-alpha.14
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { JKFPlayer } from "json-kifu-format";
|
|
3
3
|
import React, { useCallback, useEffect, useState } from "react";
|
|
4
|
-
import Button from "./button";
|
|
5
|
-
import { MovesArea } from "./moves-area";
|
|
6
|
-
import ShogiBoardCanvas from "./shogi-board-canvas";
|
|
7
|
-
import ShogiHandsCanvas from "./shogi-hands-canvas";
|
|
4
|
+
import Button from "./button.mjs";
|
|
5
|
+
import { MovesArea } from "./moves-area.mjs";
|
|
6
|
+
import ShogiBoardCanvas from "./shogi-board-canvas.mjs";
|
|
7
|
+
import ShogiHandsCanvas from "./shogi-hands-canvas.mjs";
|
|
8
8
|
function ShogiPlayer(props) {
|
|
9
9
|
const [player] = useState(JKFPlayer.parse(props.kifuText.trim()));
|
|
10
10
|
const [pieces, setPieces] = useState(player.shogi.board);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackersheet/next-document-content-kifu",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.14",
|
|
4
4
|
"description": "Hacker Sheet document content kifu components for Next.js",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"author": "",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
+
"types": "./dist/esm/index.d.ts",
|
|
15
16
|
"require": "./dist/cjs/index.js",
|
|
16
|
-
"import": "./dist/esm/index.mjs"
|
|
17
|
-
"types": "./dist/esm/index.d.ts"
|
|
17
|
+
"import": "./dist/esm/index.mjs"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"json-kifu-format": "^5.4.1",
|
|
28
28
|
"shogi.js": "^5.4.1",
|
|
29
|
-
"@hackersheet/
|
|
30
|
-
"@hackersheet/
|
|
29
|
+
"@hackersheet/core": "0.1.0-alpha.11",
|
|
30
|
+
"@hackersheet/react-document-content": "0.1.0-alpha.13"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/react": "^19.2.0",
|