@lv-x-software-house/x_view 1.2.5-dev.26 → 1.2.5-dev.27

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
@@ -2500,7 +2500,8 @@ var userActionHandlers = {
2500
2500
  nodes: sceneDataRef.current.nodes,
2501
2501
  links: sceneDataRef.current.links,
2502
2502
  quest_nodes: specificParentData.nodes,
2503
- quest_links: specificParentData.links
2503
+ quest_links: specificParentData.links,
2504
+ quest_counter: sceneDataRef.current.quest_counter || 1
2504
2505
  };
2505
2506
  } else {
2506
2507
  filenameToSave = `x_view_dbs/${ownerId}/${parentFileId}`;
@@ -2697,7 +2698,8 @@ var userActionHandlers = {
2697
2698
  nodes: sceneDataRef.current.nodes,
2698
2699
  links: sceneDataRef.current.links,
2699
2700
  quest_nodes: originalData.nodes,
2700
- quest_links: originalData.links
2701
+ quest_links: originalData.links,
2702
+ quest_counter: sceneDataRef.current.quest_counter || 1
2701
2703
  };
2702
2704
  } else {
2703
2705
  filenameToSave = `x_view_dbs/${ownerId}/${parentFileId}`;
@@ -2762,7 +2764,8 @@ var userActionHandlers = {
2762
2764
  nodes: newVisualNodes,
2763
2765
  links: newVisualLinks,
2764
2766
  quest_nodes: specificParentData.nodes,
2765
- quest_links: specificParentData.links
2767
+ quest_links: specificParentData.links,
2768
+ quest_counter: sceneDataRef.current.quest_counter || 1
2766
2769
  };
2767
2770
  } else {
2768
2771
  filenameToSave = `x_view_dbs/${ownerId}/${parentFileId}`;
@@ -2823,7 +2826,8 @@ var userActionHandlers = {
2823
2826
  nodes: sceneDataRef.current.nodes,
2824
2827
  links: sceneDataRef.current.links,
2825
2828
  quest_nodes: specificParentData.nodes,
2826
- quest_links: specificParentData.links
2829
+ quest_links: specificParentData.links,
2830
+ quest_counter: sceneDataRef.current.quest_counter || 1
2827
2831
  };
2828
2832
  await context.actions.save_view_data(context.sceneSaveUrl, viewFilePayload);
2829
2833
  } else {
@@ -2870,7 +2874,8 @@ var userActionHandlers = {
2870
2874
  nodes: sceneDataRef.current.nodes,
2871
2875
  links: sceneDataRef.current.links,
2872
2876
  quest_nodes: specificParentData.nodes,
2873
- quest_links: specificParentData.links
2877
+ quest_links: specificParentData.links,
2878
+ quest_counter: sceneDataRef.current.quest_counter || 1
2874
2879
  };
2875
2880
  await context.actions.save_view_data(context.sceneSaveUrl, viewFilePayload);
2876
2881
  } else {
@@ -8405,7 +8410,7 @@ function QuestReviewStackEditor({
8405
8410
  const [isAdding, setIsAdding] = (0, import_react16.useState)(false);
8406
8411
  const [searchQuery, setSearchQuery] = (0, import_react16.useState)("");
8407
8412
  const handleAddReviewer = (userId) => {
8408
- const newStack = [...reviewStack, { userId, status: "pending", mandatory: false }];
8413
+ const newStack = [...reviewStack, { userId, status: "pending", mandatory: true }];
8409
8414
  onChange(newStack);
8410
8415
  setIsAdding(false);
8411
8416
  setSearchQuery("");
@@ -8477,7 +8482,7 @@ function QuestReviewStackEditor({
8477
8482
  title: item.mandatory ? "Remover obrigatoriedade" : "Tornar obrigat\xF3rio",
8478
8483
  className: `p-1.5 rounded hover:bg-white/10 transition-colors ${item.mandatory ? "text-amber-400" : "text-slate-500"}`
8479
8484
  },
8480
- /* @__PURE__ */ import_react16.default.createElement(import_fi14.FiAlertCircle, { size: 14 })
8485
+ /* @__PURE__ */ import_react16.default.createElement(import_fi14.FiStar, { size: 14 })
8481
8486
  ), /* @__PURE__ */ import_react16.default.createElement(
8482
8487
  "button",
8483
8488
  {
@@ -13474,7 +13479,8 @@ function XViewScene({
13474
13479
  nodes: sceneDataRef2.current.nodes,
13475
13480
  links: sceneDataRef2.current.links,
13476
13481
  quest_nodes: specificParentData.nodes,
13477
- quest_links: specificParentData.links
13482
+ quest_links: specificParentData.links,
13483
+ quest_counter: sceneDataRef2.current.quest_counter || 1
13478
13484
  };
13479
13485
  await context.actions.save_view_data(sceneSaveUrl2, viewFilePayload);
13480
13486
  } else {
@@ -15082,7 +15088,8 @@ function XViewScene({
15082
15088
  nodes: currentNodes,
15083
15089
  links: currentLinks,
15084
15090
  quest_nodes: isView ? ((_b2 = parentDataRef.current[sceneConfigId]) == null ? void 0 : _b2.nodes) || [] : sceneDataRef.current.quest_nodes || [],
15085
- quest_links: isView ? ((_c2 = parentDataRef.current[sceneConfigId]) == null ? void 0 : _c2.links) || [] : sceneDataRef.current.quest_links || []
15091
+ quest_links: isView ? ((_c2 = parentDataRef.current[sceneConfigId]) == null ? void 0 : _c2.links) || [] : sceneDataRef.current.quest_links || [],
15092
+ quest_counter: sceneDataRef.current.quest_counter || 1
15086
15093
  };
15087
15094
  try {
15088
15095
  await save_view_data(sceneSaveUrl, sceneFileData);
package/dist/index.mjs CHANGED
@@ -2461,7 +2461,8 @@ var userActionHandlers = {
2461
2461
  nodes: sceneDataRef.current.nodes,
2462
2462
  links: sceneDataRef.current.links,
2463
2463
  quest_nodes: specificParentData.nodes,
2464
- quest_links: specificParentData.links
2464
+ quest_links: specificParentData.links,
2465
+ quest_counter: sceneDataRef.current.quest_counter || 1
2465
2466
  };
2466
2467
  } else {
2467
2468
  filenameToSave = `x_view_dbs/${ownerId}/${parentFileId}`;
@@ -2658,7 +2659,8 @@ var userActionHandlers = {
2658
2659
  nodes: sceneDataRef.current.nodes,
2659
2660
  links: sceneDataRef.current.links,
2660
2661
  quest_nodes: originalData.nodes,
2661
- quest_links: originalData.links
2662
+ quest_links: originalData.links,
2663
+ quest_counter: sceneDataRef.current.quest_counter || 1
2662
2664
  };
2663
2665
  } else {
2664
2666
  filenameToSave = `x_view_dbs/${ownerId}/${parentFileId}`;
@@ -2723,7 +2725,8 @@ var userActionHandlers = {
2723
2725
  nodes: newVisualNodes,
2724
2726
  links: newVisualLinks,
2725
2727
  quest_nodes: specificParentData.nodes,
2726
- quest_links: specificParentData.links
2728
+ quest_links: specificParentData.links,
2729
+ quest_counter: sceneDataRef.current.quest_counter || 1
2727
2730
  };
2728
2731
  } else {
2729
2732
  filenameToSave = `x_view_dbs/${ownerId}/${parentFileId}`;
@@ -2784,7 +2787,8 @@ var userActionHandlers = {
2784
2787
  nodes: sceneDataRef.current.nodes,
2785
2788
  links: sceneDataRef.current.links,
2786
2789
  quest_nodes: specificParentData.nodes,
2787
- quest_links: specificParentData.links
2790
+ quest_links: specificParentData.links,
2791
+ quest_counter: sceneDataRef.current.quest_counter || 1
2788
2792
  };
2789
2793
  await context.actions.save_view_data(context.sceneSaveUrl, viewFilePayload);
2790
2794
  } else {
@@ -2831,7 +2835,8 @@ var userActionHandlers = {
2831
2835
  nodes: sceneDataRef.current.nodes,
2832
2836
  links: sceneDataRef.current.links,
2833
2837
  quest_nodes: specificParentData.nodes,
2834
- quest_links: specificParentData.links
2838
+ quest_links: specificParentData.links,
2839
+ quest_counter: sceneDataRef.current.quest_counter || 1
2835
2840
  };
2836
2841
  await context.actions.save_view_data(context.sceneSaveUrl, viewFilePayload);
2837
2842
  } else {
@@ -8387,7 +8392,7 @@ import { FiPlus as FiPlus6, FiCheck as FiCheck9, FiEdit2 as FiEdit26, FiTarget,
8387
8392
 
8388
8393
  // src/components/QuestReviewStackEditor.jsx
8389
8394
  import React15, { useState as useState16 } from "react";
8390
- import { FiPlus as FiPlus5, FiX as FiX4, FiUser, FiSearch as FiSearch4, FiChevronUp, FiChevronDown as FiChevronDown5, FiAlertCircle } from "react-icons/fi";
8395
+ import { FiPlus as FiPlus5, FiX as FiX4, FiUser, FiSearch as FiSearch4, FiChevronUp, FiChevronDown as FiChevronDown5, FiStar } from "react-icons/fi";
8391
8396
  function QuestReviewStackEditor({
8392
8397
  reviewStack = [],
8393
8398
  onChange,
@@ -8397,7 +8402,7 @@ function QuestReviewStackEditor({
8397
8402
  const [isAdding, setIsAdding] = useState16(false);
8398
8403
  const [searchQuery, setSearchQuery] = useState16("");
8399
8404
  const handleAddReviewer = (userId) => {
8400
- const newStack = [...reviewStack, { userId, status: "pending", mandatory: false }];
8405
+ const newStack = [...reviewStack, { userId, status: "pending", mandatory: true }];
8401
8406
  onChange(newStack);
8402
8407
  setIsAdding(false);
8403
8408
  setSearchQuery("");
@@ -8469,7 +8474,7 @@ function QuestReviewStackEditor({
8469
8474
  title: item.mandatory ? "Remover obrigatoriedade" : "Tornar obrigat\xF3rio",
8470
8475
  className: `p-1.5 rounded hover:bg-white/10 transition-colors ${item.mandatory ? "text-amber-400" : "text-slate-500"}`
8471
8476
  },
8472
- /* @__PURE__ */ React15.createElement(FiAlertCircle, { size: 14 })
8477
+ /* @__PURE__ */ React15.createElement(FiStar, { size: 14 })
8473
8478
  ), /* @__PURE__ */ React15.createElement(
8474
8479
  "button",
8475
8480
  {
@@ -13479,7 +13484,8 @@ function XViewScene({
13479
13484
  nodes: sceneDataRef2.current.nodes,
13480
13485
  links: sceneDataRef2.current.links,
13481
13486
  quest_nodes: specificParentData.nodes,
13482
- quest_links: specificParentData.links
13487
+ quest_links: specificParentData.links,
13488
+ quest_counter: sceneDataRef2.current.quest_counter || 1
13483
13489
  };
13484
13490
  await context.actions.save_view_data(sceneSaveUrl2, viewFilePayload);
13485
13491
  } else {
@@ -15087,7 +15093,8 @@ function XViewScene({
15087
15093
  nodes: currentNodes,
15088
15094
  links: currentLinks,
15089
15095
  quest_nodes: isView ? ((_b2 = parentDataRef.current[sceneConfigId]) == null ? void 0 : _b2.nodes) || [] : sceneDataRef.current.quest_nodes || [],
15090
- quest_links: isView ? ((_c2 = parentDataRef.current[sceneConfigId]) == null ? void 0 : _c2.links) || [] : sceneDataRef.current.quest_links || []
15096
+ quest_links: isView ? ((_c2 = parentDataRef.current[sceneConfigId]) == null ? void 0 : _c2.links) || [] : sceneDataRef.current.quest_links || [],
15097
+ quest_counter: sceneDataRef.current.quest_counter || 1
15091
15098
  };
15092
15099
  try {
15093
15100
  await save_view_data(sceneSaveUrl, sceneFileData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv-x-software-house/x_view",
3
- "version": "1.2.5-dev.26",
3
+ "version": "1.2.5-dev.27",
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",