@lv-x-software-house/x_view 1.2.6-dev.80 → 1.2.6-dev.82

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
@@ -11981,7 +11981,7 @@ function QuestDetailsPanel({
11981
11981
  handleRenderQuestAbstractionTree,
11982
11982
  style = {}
11983
11983
  }) {
11984
- var _a, _b;
11984
+ var _a, _b, _c, _d, _e, _f;
11985
11985
  const initialRawTitle = (node == null ? void 0 : node.raw_title) || (((_a = node == null ? void 0 : node.name) == null ? void 0 : _a.includes(" - \xBB ")) ? node.name.split(" - \xBB ")[1] : node == null ? void 0 : node.name) || "";
11986
11986
  const [rawTitle, setRawTitle] = (0, import_react22.useState)(initialRawTitle);
11987
11987
  const prefixParts = ((node == null ? void 0 : node.name) || "").split(" - \xBB ");
@@ -13076,7 +13076,7 @@ ${noteText}` : noteText : entry.notes,
13076
13076
  handleRenderQuestTree(node);
13077
13077
  }
13078
13078
  },
13079
- className: "flex-1 flex items-center justify-center gap-2 px-2 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 text-[11px] font-medium rounded-lg border border-white/5 hover:border-white/10 transition-colors"
13079
+ className: `flex-1 flex items-center justify-center gap-2 px-2 py-1.5 text-[11px] font-medium rounded-lg border transition-colors ${((_d = (_c = node == null ? void 0 : node.quest_tree) == null ? void 0 : _c.children) == null ? void 0 : _d.length) > 0 ? "bg-indigo-500/10 hover:bg-indigo-500/30 text-indigo-400 border-indigo-500/20" : "bg-slate-800 hover:bg-slate-700 text-slate-400 border-white/5"}`
13080
13080
  },
13081
13081
  "Renderizar Horizontal"
13082
13082
  ), /* @__PURE__ */ import_react22.default.createElement(
@@ -13088,7 +13088,7 @@ ${noteText}` : noteText : entry.notes,
13088
13088
  handleRenderQuestAbstractionTree(node);
13089
13089
  }
13090
13090
  },
13091
- className: "flex-1 flex items-center justify-center gap-2 px-2 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 text-[11px] font-medium rounded-lg border border-white/5 hover:border-white/10 transition-colors"
13091
+ className: `flex-1 flex items-center justify-center gap-2 px-2 py-1.5 text-[11px] font-medium rounded-lg border transition-colors ${((_f = (_e = node == null ? void 0 : node.quest_abstraction_tree) == null ? void 0 : _e.children) == null ? void 0 : _f.length) > 0 ? "bg-indigo-500/10 hover:bg-indigo-500/30 text-indigo-400 border-indigo-500/20" : "bg-slate-800 hover:bg-slate-700 text-slate-400 border-white/5"}`
13092
13092
  },
13093
13093
  "Renderizar Vertical"
13094
13094
  )))), /* @__PURE__ */ import_react22.default.createElement("div", { className: "pt-2 border-t border-white/5 space-y-3" }, /* @__PURE__ */ import_react22.default.createElement("div", { className: "flex items-center justify-between" }, /* @__PURE__ */ import_react22.default.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ import_react22.default.createElement(import_fi20.FiLink, { className: "text-indigo-400", size: 14 }), /* @__PURE__ */ import_react22.default.createElement("h3", { className: "text-[11px] uppercase font-bold text-slate-500 tracking-wider" }, "Depend\xEAncias (Quest Chain)"))), /* @__PURE__ */ import_react22.default.createElement("div", { className: `relative w-full bg-slate-900/60 p-2 min-h-[42px] flex flex-wrap gap-2 rounded-xl border border-white/10 ${canEdit ? "focus-within:ring-2 focus-within:ring-indigo-400/40" : ""} transition-all` }, dependencyIds.map((depId) => {
@@ -18086,6 +18086,14 @@ function XViewScene({
18086
18086
  if (nodeMesh) {
18087
18087
  nodeMesh.userData.questData = updatedNodeData;
18088
18088
  }
18089
+ if (detailsNode && String(detailsNode.id) === String(questNodeId)) {
18090
+ setDetailsNode((prev) => ({
18091
+ ...prev,
18092
+ quest_tree: formattedTree,
18093
+ quest_abstraction_tree: formattedAbstractionTree
18094
+ }));
18095
+ }
18096
+ setSceneVersion((v) => v + 1);
18089
18097
  }
18090
18098
  }
18091
18099
  }
@@ -18108,7 +18116,7 @@ function XViewScene({
18108
18116
  abstraction_tree: questNode.quest_abstraction_tree,
18109
18117
  _forceUpdate: true
18110
18118
  };
18111
- handleRenderAbstractionTree(treePayload, questNode.id);
18119
+ handleRenderAbstractionTree(treePayload);
18112
18120
  };
18113
18121
  const handleCloseQuestTree = () => {
18114
18122
  setQuestTreeMode2({
package/dist/index.mjs CHANGED
@@ -12020,7 +12020,7 @@ function QuestDetailsPanel({
12020
12020
  handleRenderQuestAbstractionTree,
12021
12021
  style = {}
12022
12022
  }) {
12023
- var _a, _b;
12023
+ var _a, _b, _c, _d, _e, _f;
12024
12024
  const initialRawTitle = (node == null ? void 0 : node.raw_title) || (((_a = node == null ? void 0 : node.name) == null ? void 0 : _a.includes(" - \xBB ")) ? node.name.split(" - \xBB ")[1] : node == null ? void 0 : node.name) || "";
12025
12025
  const [rawTitle, setRawTitle] = useState20(initialRawTitle);
12026
12026
  const prefixParts = ((node == null ? void 0 : node.name) || "").split(" - \xBB ");
@@ -13115,7 +13115,7 @@ ${noteText}` : noteText : entry.notes,
13115
13115
  handleRenderQuestTree(node);
13116
13116
  }
13117
13117
  },
13118
- className: "flex-1 flex items-center justify-center gap-2 px-2 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 text-[11px] font-medium rounded-lg border border-white/5 hover:border-white/10 transition-colors"
13118
+ className: `flex-1 flex items-center justify-center gap-2 px-2 py-1.5 text-[11px] font-medium rounded-lg border transition-colors ${((_d = (_c = node == null ? void 0 : node.quest_tree) == null ? void 0 : _c.children) == null ? void 0 : _d.length) > 0 ? "bg-indigo-500/10 hover:bg-indigo-500/30 text-indigo-400 border-indigo-500/20" : "bg-slate-800 hover:bg-slate-700 text-slate-400 border-white/5"}`
13119
13119
  },
13120
13120
  "Renderizar Horizontal"
13121
13121
  ), /* @__PURE__ */ React21.createElement(
@@ -13127,7 +13127,7 @@ ${noteText}` : noteText : entry.notes,
13127
13127
  handleRenderQuestAbstractionTree(node);
13128
13128
  }
13129
13129
  },
13130
- className: "flex-1 flex items-center justify-center gap-2 px-2 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 text-[11px] font-medium rounded-lg border border-white/5 hover:border-white/10 transition-colors"
13130
+ className: `flex-1 flex items-center justify-center gap-2 px-2 py-1.5 text-[11px] font-medium rounded-lg border transition-colors ${((_f = (_e = node == null ? void 0 : node.quest_abstraction_tree) == null ? void 0 : _e.children) == null ? void 0 : _f.length) > 0 ? "bg-indigo-500/10 hover:bg-indigo-500/30 text-indigo-400 border-indigo-500/20" : "bg-slate-800 hover:bg-slate-700 text-slate-400 border-white/5"}`
13131
13131
  },
13132
13132
  "Renderizar Vertical"
13133
13133
  )))), /* @__PURE__ */ React21.createElement("div", { className: "pt-2 border-t border-white/5 space-y-3" }, /* @__PURE__ */ React21.createElement("div", { className: "flex items-center justify-between" }, /* @__PURE__ */ React21.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React21.createElement(FiLink7, { className: "text-indigo-400", size: 14 }), /* @__PURE__ */ React21.createElement("h3", { className: "text-[11px] uppercase font-bold text-slate-500 tracking-wider" }, "Depend\xEAncias (Quest Chain)"))), /* @__PURE__ */ React21.createElement("div", { className: `relative w-full bg-slate-900/60 p-2 min-h-[42px] flex flex-wrap gap-2 rounded-xl border border-white/10 ${canEdit ? "focus-within:ring-2 focus-within:ring-indigo-400/40" : ""} transition-all` }, dependencyIds.map((depId) => {
@@ -18150,6 +18150,14 @@ function XViewScene({
18150
18150
  if (nodeMesh) {
18151
18151
  nodeMesh.userData.questData = updatedNodeData;
18152
18152
  }
18153
+ if (detailsNode && String(detailsNode.id) === String(questNodeId)) {
18154
+ setDetailsNode((prev) => ({
18155
+ ...prev,
18156
+ quest_tree: formattedTree,
18157
+ quest_abstraction_tree: formattedAbstractionTree
18158
+ }));
18159
+ }
18160
+ setSceneVersion((v) => v + 1);
18153
18161
  }
18154
18162
  }
18155
18163
  }
@@ -18172,7 +18180,7 @@ function XViewScene({
18172
18180
  abstraction_tree: questNode.quest_abstraction_tree,
18173
18181
  _forceUpdate: true
18174
18182
  };
18175
- handleRenderAbstractionTree(treePayload, questNode.id);
18183
+ handleRenderAbstractionTree(treePayload);
18176
18184
  };
18177
18185
  const handleCloseQuestTree = () => {
18178
18186
  setQuestTreeMode2({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv-x-software-house/x_view",
3
- "version": "1.2.6-dev.80",
3
+ "version": "1.2.6-dev.82",
4
4
  "description": "Pacote privado contendo os componentes e lógica de renderização 3D do X View.",
5
5
  "author": "iv.x - Engenharia de Software - ivxsoftwarehouse@gmail.com",
6
6
  "license": "UNLICENSED",