@lv-x-software-house/x_view 1.3.7 → 1.3.8
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 +8 -66
- package/dist/index.mjs +8 -66
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2208,7 +2208,6 @@ var userActionHandlers = {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
});
|
|
2210
2210
|
if (updates.length > 0) {
|
|
2211
|
-
console.log(`[syncQuestTemplateFlags] Sincronizando ${updates.length} quests...`);
|
|
2212
2211
|
for (const quest of updates) {
|
|
2213
2212
|
const idx = sceneDataRef.current.quest_nodes.findIndex((q) => String(q.id) === String(quest.id));
|
|
2214
2213
|
if (idx !== -1) sceneDataRef.current.quest_nodes[idx] = quest;
|
|
@@ -2550,7 +2549,7 @@ var userActionHandlers = {
|
|
|
2550
2549
|
if (actions.delete_file && nodeData) {
|
|
2551
2550
|
const urls = extractFileUrlsFromProperties(nodeData);
|
|
2552
2551
|
if (urls.length > 0) {
|
|
2553
|
-
Promise.all(urls.map((url) => actions.delete_file(url))).
|
|
2552
|
+
Promise.all(urls.map((url) => actions.delete_file(url))).catch(
|
|
2554
2553
|
(err) => console.error("Erro ao deletar arquivos do node:", err)
|
|
2555
2554
|
);
|
|
2556
2555
|
}
|
|
@@ -2961,7 +2960,6 @@ var userActionHandlers = {
|
|
|
2961
2960
|
}
|
|
2962
2961
|
if (foundProcess && foundTreeContext) {
|
|
2963
2962
|
if (foundTreeContext.nodeRef.is_choice) {
|
|
2964
|
-
console.log("N\xF3 de escolha detectado. Aguardando sele\xE7\xE3o manual.");
|
|
2965
2963
|
keepOpen = true;
|
|
2966
2964
|
if (context.setters.setDetailsNode) {
|
|
2967
2965
|
context.setters.setDetailsNode({ ...nodeToSave, _scrollToChoice: true });
|
|
@@ -8370,7 +8368,6 @@ function DescriptionDisplay({
|
|
|
8370
8368
|
mentionCount++;
|
|
8371
8369
|
}
|
|
8372
8370
|
});
|
|
8373
|
-
console.log("[DescriptionDisplay] flatNavigation computed:", navItems.length, "items", navItems);
|
|
8374
8371
|
return navItems;
|
|
8375
8372
|
}, [sections]);
|
|
8376
8373
|
const [currentStepIndex, setCurrentStepIndex] = (0, import_react7.useState)(0);
|
|
@@ -8417,24 +8414,14 @@ function DescriptionDisplay({
|
|
|
8417
8414
|
const handleKeyDown = (e) => {
|
|
8418
8415
|
if (e.target.tagName === "INPUT" || e.target.tagName === "TEXTAREA") return;
|
|
8419
8416
|
const currentItem = flatNavigation[currentStepIndex];
|
|
8420
|
-
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(e.key)) {
|
|
8421
|
-
console.log(`[DescriptionDisplay] Key pressed: ${e.key}`, {
|
|
8422
|
-
currentStepIndex,
|
|
8423
|
-
flatNavigationLength: flatNavigation.length,
|
|
8424
|
-
currentItem,
|
|
8425
|
-
currentBranchDirection
|
|
8426
|
-
});
|
|
8427
|
-
}
|
|
8428
8417
|
if (e.key === "ArrowRight") {
|
|
8429
8418
|
e.preventDefault();
|
|
8430
8419
|
e.stopPropagation();
|
|
8431
8420
|
if (currentStepIndex === 0 && currentBranchDirection === "left") {
|
|
8432
|
-
console.log("[DescriptionDisplay] ArrowRight: Navigating back from left branch");
|
|
8433
8421
|
if (onBranchNav) onBranchNav(null, "back");
|
|
8434
8422
|
return;
|
|
8435
8423
|
}
|
|
8436
8424
|
if (currentItem && currentItem.type === "mention" && onBranchNav) {
|
|
8437
|
-
console.log("[DescriptionDisplay] ArrowRight: Opening right branch for node", currentItem.nodeId);
|
|
8438
8425
|
onBranchNav(currentItem.nodeId, "open", "right");
|
|
8439
8426
|
return;
|
|
8440
8427
|
}
|
|
@@ -8443,12 +8430,10 @@ function DescriptionDisplay({
|
|
|
8443
8430
|
e.preventDefault();
|
|
8444
8431
|
e.stopPropagation();
|
|
8445
8432
|
if (currentStepIndex === 0 && currentBranchDirection === "right") {
|
|
8446
|
-
console.log("[DescriptionDisplay] ArrowLeft: Navigating back from right branch");
|
|
8447
8433
|
if (onBranchNav) onBranchNav(null, "back");
|
|
8448
8434
|
return;
|
|
8449
8435
|
}
|
|
8450
8436
|
if (currentItem && currentItem.type === "mention" && onBranchNav) {
|
|
8451
|
-
console.log("[DescriptionDisplay] ArrowLeft: Opening left branch for node", currentItem.nodeId);
|
|
8452
8437
|
onBranchNav(currentItem.nodeId, "open", "left");
|
|
8453
8438
|
return;
|
|
8454
8439
|
}
|
|
@@ -8456,29 +8441,16 @@ function DescriptionDisplay({
|
|
|
8456
8441
|
if (e.key === "ArrowDown") {
|
|
8457
8442
|
e.preventDefault();
|
|
8458
8443
|
if (flatNavigation.length > 1) {
|
|
8459
|
-
setCurrentStepIndex((prev) =>
|
|
8460
|
-
const next = Math.min(prev + 1, flatNavigation.length - 1);
|
|
8461
|
-
console.log(`[DescriptionDisplay] ArrowDown: ${prev} -> ${next}`);
|
|
8462
|
-
return next;
|
|
8463
|
-
});
|
|
8444
|
+
setCurrentStepIndex((prev) => Math.min(prev + 1, flatNavigation.length - 1));
|
|
8464
8445
|
}
|
|
8465
8446
|
}
|
|
8466
8447
|
if (e.key === "ArrowUp") {
|
|
8467
8448
|
e.preventDefault();
|
|
8468
8449
|
if (flatNavigation.length > 1) {
|
|
8469
|
-
setCurrentStepIndex((prev) =>
|
|
8470
|
-
const next = Math.max(prev - 1, 0);
|
|
8471
|
-
console.log(`[DescriptionDisplay] ArrowUp: ${prev} -> ${next}`);
|
|
8472
|
-
return next;
|
|
8473
|
-
});
|
|
8450
|
+
setCurrentStepIndex((prev) => Math.max(prev - 1, 0));
|
|
8474
8451
|
}
|
|
8475
8452
|
}
|
|
8476
8453
|
};
|
|
8477
|
-
console.log("[DescriptionDisplay] Attaching keydown listener", {
|
|
8478
|
-
flatNavigationLength: flatNavigation.length,
|
|
8479
|
-
currentStepIndex,
|
|
8480
|
-
currentBranchDirection
|
|
8481
|
-
});
|
|
8482
8454
|
window.addEventListener("keydown", handleKeyDown);
|
|
8483
8455
|
return () => {
|
|
8484
8456
|
window.removeEventListener("keydown", handleKeyDown);
|
|
@@ -11846,7 +11818,6 @@ function InSceneCreationForm({
|
|
|
11846
11818
|
if (typeInput.trim() === "") {
|
|
11847
11819
|
result = validExistingTypes.filter((t) => !types.includes(t));
|
|
11848
11820
|
} else {
|
|
11849
|
-
console.log("InSceneCreationForm: Filtrando tipos com input:", typeInput);
|
|
11850
11821
|
try {
|
|
11851
11822
|
const lowercasedInput = typeInput.toLowerCase();
|
|
11852
11823
|
result = validExistingTypes.filter((t) => {
|
|
@@ -13829,7 +13800,6 @@ function NodeDetailsPanel({
|
|
|
13829
13800
|
if (typeInput.trim() === "") {
|
|
13830
13801
|
setFilteredTypes(validExistingTypes.filter((t) => !types.includes(t)));
|
|
13831
13802
|
} else {
|
|
13832
|
-
console.log("NodeDetailsPanel: Filtrando tipos com input:", typeInput);
|
|
13833
13803
|
try {
|
|
13834
13804
|
const lowercasedInput = typeInput.toLowerCase();
|
|
13835
13805
|
setFilteredTypes(
|
|
@@ -14768,7 +14738,6 @@ function QuestDetailsPanel({
|
|
|
14768
14738
|
if (typeInput.trim() === "") {
|
|
14769
14739
|
setFilteredTypes(validExistingTypes.filter((t) => !types.includes(t)));
|
|
14770
14740
|
} else {
|
|
14771
|
-
console.log("QuestDetailsPanel: Filtrando tipos com input:", typeInput);
|
|
14772
14741
|
try {
|
|
14773
14742
|
const lowercasedInput = typeInput.toLowerCase();
|
|
14774
14743
|
setFilteredTypes(
|
|
@@ -19976,7 +19945,6 @@ function XViewScene({
|
|
|
19976
19945
|
const type = viewParams == null ? void 0 : viewParams.type;
|
|
19977
19946
|
const tab = type === "database" ? "datasets" : "views";
|
|
19978
19947
|
const targetUrl = `/dashboard/xview?tab=${tab}`;
|
|
19979
|
-
console.log("X-View: Navegando para o Dashboard", { type, tab, targetUrl });
|
|
19980
19948
|
try {
|
|
19981
19949
|
router.push(targetUrl);
|
|
19982
19950
|
} catch (e) {
|
|
@@ -20599,18 +20567,6 @@ function XViewScene({
|
|
|
20599
20567
|
};
|
|
20600
20568
|
parentDataRef.current = sceneResponse.data.parent;
|
|
20601
20569
|
ancestryDataRef.current = sceneResponse.data.ancestry;
|
|
20602
|
-
console.log(
|
|
20603
|
-
"Console de sceneResponse.data.scene:",
|
|
20604
|
-
sceneDataRef.current
|
|
20605
|
-
);
|
|
20606
|
-
console.log(
|
|
20607
|
-
"Console de sceneResponse.data.parent:",
|
|
20608
|
-
parentDataRef.current
|
|
20609
|
-
);
|
|
20610
|
-
console.log(
|
|
20611
|
-
"Console de sceneResponse.data.ancestry:",
|
|
20612
|
-
ancestryDataRef.current
|
|
20613
|
-
);
|
|
20614
20570
|
setNodeCounter(sceneResponse.data.node_counter || 0);
|
|
20615
20571
|
if (sceneResponse.data.node_limit !== void 0) {
|
|
20616
20572
|
setNodeLimit(sceneResponse.data.node_limit);
|
|
@@ -22991,11 +22947,6 @@ function XViewScene({
|
|
|
22991
22947
|
}
|
|
22992
22948
|
});
|
|
22993
22949
|
}
|
|
22994
|
-
console.log("[handleRenderAncestry] Start", {
|
|
22995
|
-
ancestryId: ancestryObject.ancestry_id,
|
|
22996
|
-
allowedSectionIds: allowedSectionIds ? Array.from(allowedSectionIds) : null,
|
|
22997
|
-
activeSectionIdForFocus
|
|
22998
|
-
});
|
|
22999
22950
|
const { ancestryGroup, nodeObjects, renderer, renderedAncestries } = stateRef.current;
|
|
23000
22951
|
const currentRenderLimit = stateRef.current.maxAncestryRenderIndex || 0;
|
|
23001
22952
|
const isFullRenderRequest = !normalizedAllowedIds;
|
|
@@ -23293,11 +23244,6 @@ function XViewScene({
|
|
|
23293
23244
|
let currentAnchorPosition = currentAnchorMesh.userData.id ? targetPositionsCache.get(String(currentAnchorMesh.userData.id)) || currentAnchorMesh.position : currentAnchorMesh.position;
|
|
23294
23245
|
for (const section of sections) {
|
|
23295
23246
|
const deveRenderizar = checkShouldRender(section);
|
|
23296
|
-
console.log("[handleRenderAncestry] Section check:", {
|
|
23297
|
-
id: section.id,
|
|
23298
|
-
numericId: section.section_numeric_id,
|
|
23299
|
-
deveRenderizar
|
|
23300
|
-
});
|
|
23301
23247
|
if (deveRenderizar) {
|
|
23302
23248
|
const sectionNodes = section.children || [];
|
|
23303
23249
|
if (sectionNodes.length > 0) {
|
|
@@ -24160,15 +24106,9 @@ function XViewScene({
|
|
|
24160
24106
|
}, []);
|
|
24161
24107
|
const handleSaveAncestry = (0, import_react37.useCallback)(
|
|
24162
24108
|
async (ancestryName, ancestryDescription, ancestrySections, keepOpen = false, treeOverride = null, ancestryCustomProps = {}) => {
|
|
24163
|
-
var _a2
|
|
24109
|
+
var _a2;
|
|
24164
24110
|
const treeToUse = treeOverride || ancestryMode.tree;
|
|
24165
24111
|
const { isEditMode, currentAncestryId } = ancestryMode;
|
|
24166
|
-
console.log("[handleSaveAncestry] received:", {
|
|
24167
|
-
name: ancestryName,
|
|
24168
|
-
descLength: ancestryDescription == null ? void 0 : ancestryDescription.length,
|
|
24169
|
-
sectionsCount: ancestrySections == null ? void 0 : ancestrySections.length,
|
|
24170
|
-
treeRoot: (_a2 = treeToUse.node) == null ? void 0 : _a2.id
|
|
24171
|
-
});
|
|
24172
24112
|
if (!treeToUse || !treeToUse.node) {
|
|
24173
24113
|
alert(
|
|
24174
24114
|
"Erro: A estrutura da ancestralidade \xE9 inv\xE1lida (Node raiz ausente)."
|
|
@@ -24373,7 +24313,7 @@ function XViewScene({
|
|
|
24373
24313
|
currentAncestryId: ancestryObjectToSave.ancestry_id
|
|
24374
24314
|
}));
|
|
24375
24315
|
}
|
|
24376
|
-
if (readingMode.isActive && ((
|
|
24316
|
+
if (readingMode.isActive && ((_a2 = readingMode.ancestry) == null ? void 0 : _a2.ancestry_id) === ancestryObjectToSave.ancestry_id) {
|
|
24377
24317
|
setReadingMode((prev) => ({
|
|
24378
24318
|
...prev,
|
|
24379
24319
|
ancestry: ancestryObjectToSave
|
|
@@ -25822,7 +25762,9 @@ function XViewScene({
|
|
|
25822
25762
|
const res = await onUpgrade();
|
|
25823
25763
|
if (res.success) {
|
|
25824
25764
|
setNodeLimit(-1);
|
|
25825
|
-
alert(
|
|
25765
|
+
alert(
|
|
25766
|
+
"Upgrade realizado com sucesso! Sua conta agora \xE9 Premium."
|
|
25767
|
+
);
|
|
25826
25768
|
} else {
|
|
25827
25769
|
alert("Erro ao realizar upgrade: " + res.error);
|
|
25828
25770
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2169,7 +2169,6 @@ var userActionHandlers = {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
});
|
|
2171
2171
|
if (updates.length > 0) {
|
|
2172
|
-
console.log(`[syncQuestTemplateFlags] Sincronizando ${updates.length} quests...`);
|
|
2173
2172
|
for (const quest of updates) {
|
|
2174
2173
|
const idx = sceneDataRef.current.quest_nodes.findIndex((q) => String(q.id) === String(quest.id));
|
|
2175
2174
|
if (idx !== -1) sceneDataRef.current.quest_nodes[idx] = quest;
|
|
@@ -2511,7 +2510,7 @@ var userActionHandlers = {
|
|
|
2511
2510
|
if (actions.delete_file && nodeData) {
|
|
2512
2511
|
const urls = extractFileUrlsFromProperties(nodeData);
|
|
2513
2512
|
if (urls.length > 0) {
|
|
2514
|
-
Promise.all(urls.map((url) => actions.delete_file(url))).
|
|
2513
|
+
Promise.all(urls.map((url) => actions.delete_file(url))).catch(
|
|
2515
2514
|
(err) => console.error("Erro ao deletar arquivos do node:", err)
|
|
2516
2515
|
);
|
|
2517
2516
|
}
|
|
@@ -2922,7 +2921,6 @@ var userActionHandlers = {
|
|
|
2922
2921
|
}
|
|
2923
2922
|
if (foundProcess && foundTreeContext) {
|
|
2924
2923
|
if (foundTreeContext.nodeRef.is_choice) {
|
|
2925
|
-
console.log("N\xF3 de escolha detectado. Aguardando sele\xE7\xE3o manual.");
|
|
2926
2924
|
keepOpen = true;
|
|
2927
2925
|
if (context.setters.setDetailsNode) {
|
|
2928
2926
|
context.setters.setDetailsNode({ ...nodeToSave, _scrollToChoice: true });
|
|
@@ -8341,7 +8339,6 @@ function DescriptionDisplay({
|
|
|
8341
8339
|
mentionCount++;
|
|
8342
8340
|
}
|
|
8343
8341
|
});
|
|
8344
|
-
console.log("[DescriptionDisplay] flatNavigation computed:", navItems.length, "items", navItems);
|
|
8345
8342
|
return navItems;
|
|
8346
8343
|
}, [sections]);
|
|
8347
8344
|
const [currentStepIndex, setCurrentStepIndex] = useState7(0);
|
|
@@ -8388,24 +8385,14 @@ function DescriptionDisplay({
|
|
|
8388
8385
|
const handleKeyDown = (e) => {
|
|
8389
8386
|
if (e.target.tagName === "INPUT" || e.target.tagName === "TEXTAREA") return;
|
|
8390
8387
|
const currentItem = flatNavigation[currentStepIndex];
|
|
8391
|
-
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(e.key)) {
|
|
8392
|
-
console.log(`[DescriptionDisplay] Key pressed: ${e.key}`, {
|
|
8393
|
-
currentStepIndex,
|
|
8394
|
-
flatNavigationLength: flatNavigation.length,
|
|
8395
|
-
currentItem,
|
|
8396
|
-
currentBranchDirection
|
|
8397
|
-
});
|
|
8398
|
-
}
|
|
8399
8388
|
if (e.key === "ArrowRight") {
|
|
8400
8389
|
e.preventDefault();
|
|
8401
8390
|
e.stopPropagation();
|
|
8402
8391
|
if (currentStepIndex === 0 && currentBranchDirection === "left") {
|
|
8403
|
-
console.log("[DescriptionDisplay] ArrowRight: Navigating back from left branch");
|
|
8404
8392
|
if (onBranchNav) onBranchNav(null, "back");
|
|
8405
8393
|
return;
|
|
8406
8394
|
}
|
|
8407
8395
|
if (currentItem && currentItem.type === "mention" && onBranchNav) {
|
|
8408
|
-
console.log("[DescriptionDisplay] ArrowRight: Opening right branch for node", currentItem.nodeId);
|
|
8409
8396
|
onBranchNav(currentItem.nodeId, "open", "right");
|
|
8410
8397
|
return;
|
|
8411
8398
|
}
|
|
@@ -8414,12 +8401,10 @@ function DescriptionDisplay({
|
|
|
8414
8401
|
e.preventDefault();
|
|
8415
8402
|
e.stopPropagation();
|
|
8416
8403
|
if (currentStepIndex === 0 && currentBranchDirection === "right") {
|
|
8417
|
-
console.log("[DescriptionDisplay] ArrowLeft: Navigating back from right branch");
|
|
8418
8404
|
if (onBranchNav) onBranchNav(null, "back");
|
|
8419
8405
|
return;
|
|
8420
8406
|
}
|
|
8421
8407
|
if (currentItem && currentItem.type === "mention" && onBranchNav) {
|
|
8422
|
-
console.log("[DescriptionDisplay] ArrowLeft: Opening left branch for node", currentItem.nodeId);
|
|
8423
8408
|
onBranchNav(currentItem.nodeId, "open", "left");
|
|
8424
8409
|
return;
|
|
8425
8410
|
}
|
|
@@ -8427,29 +8412,16 @@ function DescriptionDisplay({
|
|
|
8427
8412
|
if (e.key === "ArrowDown") {
|
|
8428
8413
|
e.preventDefault();
|
|
8429
8414
|
if (flatNavigation.length > 1) {
|
|
8430
|
-
setCurrentStepIndex((prev) =>
|
|
8431
|
-
const next = Math.min(prev + 1, flatNavigation.length - 1);
|
|
8432
|
-
console.log(`[DescriptionDisplay] ArrowDown: ${prev} -> ${next}`);
|
|
8433
|
-
return next;
|
|
8434
|
-
});
|
|
8415
|
+
setCurrentStepIndex((prev) => Math.min(prev + 1, flatNavigation.length - 1));
|
|
8435
8416
|
}
|
|
8436
8417
|
}
|
|
8437
8418
|
if (e.key === "ArrowUp") {
|
|
8438
8419
|
e.preventDefault();
|
|
8439
8420
|
if (flatNavigation.length > 1) {
|
|
8440
|
-
setCurrentStepIndex((prev) =>
|
|
8441
|
-
const next = Math.max(prev - 1, 0);
|
|
8442
|
-
console.log(`[DescriptionDisplay] ArrowUp: ${prev} -> ${next}`);
|
|
8443
|
-
return next;
|
|
8444
|
-
});
|
|
8421
|
+
setCurrentStepIndex((prev) => Math.max(prev - 1, 0));
|
|
8445
8422
|
}
|
|
8446
8423
|
}
|
|
8447
8424
|
};
|
|
8448
|
-
console.log("[DescriptionDisplay] Attaching keydown listener", {
|
|
8449
|
-
flatNavigationLength: flatNavigation.length,
|
|
8450
|
-
currentStepIndex,
|
|
8451
|
-
currentBranchDirection
|
|
8452
|
-
});
|
|
8453
8425
|
window.addEventListener("keydown", handleKeyDown);
|
|
8454
8426
|
return () => {
|
|
8455
8427
|
window.removeEventListener("keydown", handleKeyDown);
|
|
@@ -11868,7 +11840,6 @@ function InSceneCreationForm({
|
|
|
11868
11840
|
if (typeInput.trim() === "") {
|
|
11869
11841
|
result = validExistingTypes.filter((t) => !types.includes(t));
|
|
11870
11842
|
} else {
|
|
11871
|
-
console.log("InSceneCreationForm: Filtrando tipos com input:", typeInput);
|
|
11872
11843
|
try {
|
|
11873
11844
|
const lowercasedInput = typeInput.toLowerCase();
|
|
11874
11845
|
result = validExistingTypes.filter((t) => {
|
|
@@ -13871,7 +13842,6 @@ function NodeDetailsPanel({
|
|
|
13871
13842
|
if (typeInput.trim() === "") {
|
|
13872
13843
|
setFilteredTypes(validExistingTypes.filter((t) => !types.includes(t)));
|
|
13873
13844
|
} else {
|
|
13874
|
-
console.log("NodeDetailsPanel: Filtrando tipos com input:", typeInput);
|
|
13875
13845
|
try {
|
|
13876
13846
|
const lowercasedInput = typeInput.toLowerCase();
|
|
13877
13847
|
setFilteredTypes(
|
|
@@ -14839,7 +14809,6 @@ function QuestDetailsPanel({
|
|
|
14839
14809
|
if (typeInput.trim() === "") {
|
|
14840
14810
|
setFilteredTypes(validExistingTypes.filter((t) => !types.includes(t)));
|
|
14841
14811
|
} else {
|
|
14842
|
-
console.log("QuestDetailsPanel: Filtrando tipos com input:", typeInput);
|
|
14843
14812
|
try {
|
|
14844
14813
|
const lowercasedInput = typeInput.toLowerCase();
|
|
14845
14814
|
setFilteredTypes(
|
|
@@ -20078,7 +20047,6 @@ function XViewScene({
|
|
|
20078
20047
|
const type = viewParams == null ? void 0 : viewParams.type;
|
|
20079
20048
|
const tab = type === "database" ? "datasets" : "views";
|
|
20080
20049
|
const targetUrl = `/dashboard/xview?tab=${tab}`;
|
|
20081
|
-
console.log("X-View: Navegando para o Dashboard", { type, tab, targetUrl });
|
|
20082
20050
|
try {
|
|
20083
20051
|
router.push(targetUrl);
|
|
20084
20052
|
} catch (e) {
|
|
@@ -20701,18 +20669,6 @@ function XViewScene({
|
|
|
20701
20669
|
};
|
|
20702
20670
|
parentDataRef.current = sceneResponse.data.parent;
|
|
20703
20671
|
ancestryDataRef.current = sceneResponse.data.ancestry;
|
|
20704
|
-
console.log(
|
|
20705
|
-
"Console de sceneResponse.data.scene:",
|
|
20706
|
-
sceneDataRef.current
|
|
20707
|
-
);
|
|
20708
|
-
console.log(
|
|
20709
|
-
"Console de sceneResponse.data.parent:",
|
|
20710
|
-
parentDataRef.current
|
|
20711
|
-
);
|
|
20712
|
-
console.log(
|
|
20713
|
-
"Console de sceneResponse.data.ancestry:",
|
|
20714
|
-
ancestryDataRef.current
|
|
20715
|
-
);
|
|
20716
20672
|
setNodeCounter(sceneResponse.data.node_counter || 0);
|
|
20717
20673
|
if (sceneResponse.data.node_limit !== void 0) {
|
|
20718
20674
|
setNodeLimit(sceneResponse.data.node_limit);
|
|
@@ -23093,11 +23049,6 @@ function XViewScene({
|
|
|
23093
23049
|
}
|
|
23094
23050
|
});
|
|
23095
23051
|
}
|
|
23096
|
-
console.log("[handleRenderAncestry] Start", {
|
|
23097
|
-
ancestryId: ancestryObject.ancestry_id,
|
|
23098
|
-
allowedSectionIds: allowedSectionIds ? Array.from(allowedSectionIds) : null,
|
|
23099
|
-
activeSectionIdForFocus
|
|
23100
|
-
});
|
|
23101
23052
|
const { ancestryGroup, nodeObjects, renderer, renderedAncestries } = stateRef.current;
|
|
23102
23053
|
const currentRenderLimit = stateRef.current.maxAncestryRenderIndex || 0;
|
|
23103
23054
|
const isFullRenderRequest = !normalizedAllowedIds;
|
|
@@ -23395,11 +23346,6 @@ function XViewScene({
|
|
|
23395
23346
|
let currentAnchorPosition = currentAnchorMesh.userData.id ? targetPositionsCache.get(String(currentAnchorMesh.userData.id)) || currentAnchorMesh.position : currentAnchorMesh.position;
|
|
23396
23347
|
for (const section of sections) {
|
|
23397
23348
|
const deveRenderizar = checkShouldRender(section);
|
|
23398
|
-
console.log("[handleRenderAncestry] Section check:", {
|
|
23399
|
-
id: section.id,
|
|
23400
|
-
numericId: section.section_numeric_id,
|
|
23401
|
-
deveRenderizar
|
|
23402
|
-
});
|
|
23403
23349
|
if (deveRenderizar) {
|
|
23404
23350
|
const sectionNodes = section.children || [];
|
|
23405
23351
|
if (sectionNodes.length > 0) {
|
|
@@ -24262,15 +24208,9 @@ function XViewScene({
|
|
|
24262
24208
|
}, []);
|
|
24263
24209
|
const handleSaveAncestry = useCallback8(
|
|
24264
24210
|
async (ancestryName, ancestryDescription, ancestrySections, keepOpen = false, treeOverride = null, ancestryCustomProps = {}) => {
|
|
24265
|
-
var _a2
|
|
24211
|
+
var _a2;
|
|
24266
24212
|
const treeToUse = treeOverride || ancestryMode.tree;
|
|
24267
24213
|
const { isEditMode, currentAncestryId } = ancestryMode;
|
|
24268
|
-
console.log("[handleSaveAncestry] received:", {
|
|
24269
|
-
name: ancestryName,
|
|
24270
|
-
descLength: ancestryDescription == null ? void 0 : ancestryDescription.length,
|
|
24271
|
-
sectionsCount: ancestrySections == null ? void 0 : ancestrySections.length,
|
|
24272
|
-
treeRoot: (_a2 = treeToUse.node) == null ? void 0 : _a2.id
|
|
24273
|
-
});
|
|
24274
24214
|
if (!treeToUse || !treeToUse.node) {
|
|
24275
24215
|
alert(
|
|
24276
24216
|
"Erro: A estrutura da ancestralidade \xE9 inv\xE1lida (Node raiz ausente)."
|
|
@@ -24475,7 +24415,7 @@ function XViewScene({
|
|
|
24475
24415
|
currentAncestryId: ancestryObjectToSave.ancestry_id
|
|
24476
24416
|
}));
|
|
24477
24417
|
}
|
|
24478
|
-
if (readingMode.isActive && ((
|
|
24418
|
+
if (readingMode.isActive && ((_a2 = readingMode.ancestry) == null ? void 0 : _a2.ancestry_id) === ancestryObjectToSave.ancestry_id) {
|
|
24479
24419
|
setReadingMode((prev) => ({
|
|
24480
24420
|
...prev,
|
|
24481
24421
|
ancestry: ancestryObjectToSave
|
|
@@ -25924,7 +25864,9 @@ function XViewScene({
|
|
|
25924
25864
|
const res = await onUpgrade();
|
|
25925
25865
|
if (res.success) {
|
|
25926
25866
|
setNodeLimit(-1);
|
|
25927
|
-
alert(
|
|
25867
|
+
alert(
|
|
25868
|
+
"Upgrade realizado com sucesso! Sua conta agora \xE9 Premium."
|
|
25869
|
+
);
|
|
25928
25870
|
} else {
|
|
25929
25871
|
alert("Erro ao realizar upgrade: " + res.error);
|
|
25930
25872
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lv-x-software-house/x_view",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
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",
|