@lv-x-software-house/x_view 1.2.6-dev.56 → 1.2.6-dev.58
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 +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3436,6 +3436,13 @@ function ContextMenu({
|
|
|
3436
3436
|
document.addEventListener("mousedown", handleClickOutside);
|
|
3437
3437
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
3438
3438
|
}, [data.visible, onClose]);
|
|
3439
|
+
const visibleLinkIds = (0, import_react2.useMemo)(() => {
|
|
3440
|
+
var _a2;
|
|
3441
|
+
return /* @__PURE__ */ new Set([
|
|
3442
|
+
...((_a2 = sceneData == null ? void 0 : sceneData.links) == null ? void 0 : _a2.map((link) => String(link.id))) ?? [],
|
|
3443
|
+
...renderedLinkIds.map((id) => String(id))
|
|
3444
|
+
]);
|
|
3445
|
+
}, [sceneData == null ? void 0 : sceneData.links, renderedLinkIds]);
|
|
3439
3446
|
if (!data.visible) return null;
|
|
3440
3447
|
const swallow = (e) => e.stopPropagation();
|
|
3441
3448
|
const baseButtonClass = "w-full flex items-center gap-2.5 px-2 py-1.5 text-left text-sm rounded-md hover:bg-indigo-500/20 text-slate-200 hover:text-white transition-colors duration-150 truncate";
|
|
@@ -3452,13 +3459,6 @@ function ContextMenu({
|
|
|
3452
3459
|
}
|
|
3453
3460
|
return -Infinity;
|
|
3454
3461
|
};
|
|
3455
|
-
const visibleLinkIds = (0, import_react2.useMemo)(() => {
|
|
3456
|
-
var _a2;
|
|
3457
|
-
return /* @__PURE__ */ new Set([
|
|
3458
|
-
...((_a2 = sceneData == null ? void 0 : sceneData.links) == null ? void 0 : _a2.map((link) => String(link.id))) ?? [],
|
|
3459
|
-
...renderedLinkIds.map((id) => String(id))
|
|
3460
|
-
]);
|
|
3461
|
-
}, [sceneData == null ? void 0 : sceneData.links, renderedLinkIds]);
|
|
3462
3462
|
const allParentLinks = Object.values(parentData).flatMap((fileData) => fileData.links || []);
|
|
3463
3463
|
const nodeMap = new Map(allParentNodes.map((node) => [String(node.id), node]));
|
|
3464
3464
|
const connections = allParentLinks.filter((link) => {
|
package/dist/index.mjs
CHANGED
|
@@ -3397,6 +3397,13 @@ function ContextMenu({
|
|
|
3397
3397
|
document.addEventListener("mousedown", handleClickOutside);
|
|
3398
3398
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
3399
3399
|
}, [data.visible, onClose]);
|
|
3400
|
+
const visibleLinkIds = useMemo(() => {
|
|
3401
|
+
var _a2;
|
|
3402
|
+
return /* @__PURE__ */ new Set([
|
|
3403
|
+
...((_a2 = sceneData == null ? void 0 : sceneData.links) == null ? void 0 : _a2.map((link) => String(link.id))) ?? [],
|
|
3404
|
+
...renderedLinkIds.map((id) => String(id))
|
|
3405
|
+
]);
|
|
3406
|
+
}, [sceneData == null ? void 0 : sceneData.links, renderedLinkIds]);
|
|
3400
3407
|
if (!data.visible) return null;
|
|
3401
3408
|
const swallow = (e) => e.stopPropagation();
|
|
3402
3409
|
const baseButtonClass = "w-full flex items-center gap-2.5 px-2 py-1.5 text-left text-sm rounded-md hover:bg-indigo-500/20 text-slate-200 hover:text-white transition-colors duration-150 truncate";
|
|
@@ -3413,13 +3420,6 @@ function ContextMenu({
|
|
|
3413
3420
|
}
|
|
3414
3421
|
return -Infinity;
|
|
3415
3422
|
};
|
|
3416
|
-
const visibleLinkIds = useMemo(() => {
|
|
3417
|
-
var _a2;
|
|
3418
|
-
return /* @__PURE__ */ new Set([
|
|
3419
|
-
...((_a2 = sceneData == null ? void 0 : sceneData.links) == null ? void 0 : _a2.map((link) => String(link.id))) ?? [],
|
|
3420
|
-
...renderedLinkIds.map((id) => String(id))
|
|
3421
|
-
]);
|
|
3422
|
-
}, [sceneData == null ? void 0 : sceneData.links, renderedLinkIds]);
|
|
3423
3423
|
const allParentLinks = Object.values(parentData).flatMap((fileData) => fileData.links || []);
|
|
3424
3424
|
const nodeMap = new Map(allParentNodes.map((node) => [String(node.id), node]));
|
|
3425
3425
|
const connections = allParentLinks.filter((link) => {
|
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.
|
|
3
|
+
"version": "1.2.6-dev.58",
|
|
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",
|