reqct-gamehub-module 0.1.1 → 0.1.2

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/index.js CHANGED
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(index_exports);
35
35
 
36
36
  // src/components/GameHubNode/GameHubNode.js
37
37
  var import_react7 = __toESM(require("react"));
38
- var import_reactflow = require("reactflow");
38
+ var import_react8 = require("@xyflow/react");
39
39
 
40
40
  // src/games/Snake/SnakeGame.js
41
41
  var import_react = __toESM(require("react"));
@@ -2730,7 +2730,7 @@ var GameHubNode = (0, import_react7.memo)(({ id, data, selected, overlayMode = f
2730
2730
  }
2731
2731
  const subtitleText = view === "menu" ? menuTab === "stats" ? "\u041B\u0438\u0434\u0435\u0440\u0431\u043E\u0440\u0434\u044B: \u0442\u043E\u043F-10 \u043F\u043E \u0438\u0433\u0440\u0430\u043C" : "\u0412\u044B\u0431\u0435\u0440\u0438 \u0438\u0433\u0440\u0443" : `\u0422\u0435\u043A\u0443\u0449\u0430\u044F: ${active?.title || ""} \u2022 \u0421\u0447\u0451\u0442: ${currentScore}${currentGameStat ? ` \u2022 Best: ${currentGameStat.best} \u2022 Last: ${currentGameStat.last} \u2022 Plays: ${currentGameStat.plays}` : ""}`;
2732
2732
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: `gamehub-node ${selected ? "selected" : ""}`, children: [
2733
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_reactflow.Handle, { type: "target", position: import_reactflow.Position.Top }),
2733
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react8.Handle, { type: "target", position: import_react8.Position.Top }),
2734
2734
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "gamehub-drag-handle", children: [
2735
2735
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "gamehub-title", children: data?.label ?? "\u{1F3AE} \u0418\u0433\u0440\u043E\u0432\u043E\u0439 \u0445\u0430\u0431" }),
2736
2736
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "gamehub-subtitle", children: subtitleText })
@@ -2870,7 +2870,7 @@ var GameHubNode = (0, import_react7.memo)(({ id, data, selected, overlayMode = f
2870
2870
  ] }),
2871
2871
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "gamehub-game-wrap nodrag", children: active?.component })
2872
2872
  ] }) }),
2873
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_reactflow.Handle, { type: "source", position: import_reactflow.Position.Bottom })
2873
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react8.Handle, { type: "source", position: import_react8.Position.Bottom })
2874
2874
  ] });
2875
2875
  });
2876
2876
  var GameHubNode_default = GameHubNode;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/components/GameHubNode/GameHubNode.js
2
2
  import React7, { memo, useMemo, useState as useState7, useEffect as useEffect7 } from "react";
3
- import { Handle, Position } from "reactflow";
3
+ import { Handle, Position } from "@xyflow/react";
4
4
 
5
5
  // src/games/Snake/SnakeGame.js
6
6
  import React, { useState, useEffect, useCallback } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reqct-gamehub-module",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "GameHubNode for React Flow with mini-games + leaderboard UI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,14 +21,14 @@
21
21
  "peerDependencies": {
22
22
  "react": ">=18",
23
23
  "react-dom": ">=18",
24
- "reactflow": ">=11"
24
+ "@xyflow/react": ">=12"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsup": "^8.5.1",
28
28
  "typescript": "^5.4.5"
29
29
  },
30
30
  "scripts": {
31
- "build": "tsup src/index.js --format cjs,esm --dts --external react --external react-dom --external reactflow --loader .js=jsx && node scripts/copy-css.mjs",
31
+ "build": "tsup src/index.js --format cjs,esm --dts --external react --external react-dom --external @xyflow/react --loader .js=jsx && node scripts/copy-css.mjs",
32
32
  "clean": "rimraf dist",
33
33
  "pack": "npm pack"
34
34
  },