@hackersheet/next-document-content-kifu 0.1.0-alpha.13 → 0.1.0-alpha.15
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/cjs/index.js +22 -3
- package/dist/esm/components/shogi-player/index.mjs +1 -1
- package/dist/esm/components/shogi-player/shogi-player.mjs +4 -4
- package/dist/esm/index.mjs +6 -1
- package/package.json +5 -5
- package/dist/cjs/components/index.d.ts +0 -4
- package/dist/cjs/components/index.js +0 -41
- package/dist/esm/components/index.d.mts +0 -4
- package/dist/esm/components/index.mjs +0 -6
package/dist/cjs/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
6
12
|
var __copyProps = (to, from, except, desc) => {
|
|
7
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,12 +17,25 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
17
|
}
|
|
12
18
|
return to;
|
|
13
19
|
};
|
|
14
|
-
var
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
15
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
29
|
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
|
+
Kifu: () => import_kifu.default,
|
|
32
|
+
KifuTo: () => import_kifu_to.default
|
|
33
|
+
});
|
|
17
34
|
module.exports = __toCommonJS(index_exports);
|
|
18
|
-
|
|
35
|
+
var import_kifu = __toESM(require("./components/kifu/kifu"));
|
|
36
|
+
var import_kifu_to = __toESM(require("./components/kifu-to/kifu-to"));
|
|
19
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20
38
|
0 && (module.exports = {
|
|
21
|
-
|
|
39
|
+
Kifu,
|
|
40
|
+
KifuTo
|
|
22
41
|
});
|
|
@@ -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/dist/esm/index.mjs
CHANGED
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.15",
|
|
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",
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var components_exports = {};
|
|
30
|
-
__export(components_exports, {
|
|
31
|
-
Kifu: () => import_kifu.default,
|
|
32
|
-
KifuTo: () => import_kifu_to.default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(components_exports);
|
|
35
|
-
var import_kifu = __toESM(require("./kifu/kifu"));
|
|
36
|
-
var import_kifu_to = __toESM(require("./kifu-to/kifu-to"));
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
Kifu,
|
|
40
|
-
KifuTo
|
|
41
|
-
});
|