@lv-x-software-house/x_view 1.2.1-dev.8 → 1.2.1

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
@@ -9086,6 +9086,9 @@ function XViewScene({
9086
9086
  }
9087
9087
  if (viewParams && session && status === "authenticated") {
9088
9088
  verifyPermission();
9089
+ } else if (status === "unauthenticated") {
9090
+ setPermissionStatus("denied");
9091
+ setIsLoading(false);
9089
9092
  }
9090
9093
  }, [viewParams, session, status, check_user_permission]);
9091
9094
  const sceneConfigId = (0, import_react23.useMemo)(() => (viewParams == null ? void 0 : viewParams.id) || null, [viewParams]);
@@ -9713,6 +9716,9 @@ function XViewScene({
9713
9716
  sceneResponse.data.scene.nodes = [targetNode];
9714
9717
  sceneResponse.data.scene.links = [];
9715
9718
  }
9719
+ } else if (focusAncestryId) {
9720
+ sceneResponse.data.scene.nodes = [];
9721
+ sceneResponse.data.scene.links = [];
9716
9722
  }
9717
9723
  sceneDataRef.current = sceneResponse.data.scene;
9718
9724
  parentDataRef.current = sceneResponse.data.parent;
@@ -9751,8 +9757,10 @@ function XViewScene({
9751
9757
  get_ancestry_board_action,
9752
9758
  isInitialized,
9753
9759
  permissionStatus,
9754
- focusNodeId
9755
- // <-- ADICIONADO O focusNodeId NAS DEPENDÊNCIAS
9760
+ focusNodeId,
9761
+ // <-- MANTIDO
9762
+ focusAncestryId
9763
+ // <-- ADICIONADO O focusAncestryId NAS DEPENDÊNCIAS
9756
9764
  ]);
9757
9765
  const isNodeInView = (0, import_react23.useCallback)((id) => {
9758
9766
  const key = String(id);
package/dist/index.mjs CHANGED
@@ -9085,6 +9085,9 @@ function XViewScene({
9085
9085
  }
9086
9086
  if (viewParams && session && status === "authenticated") {
9087
9087
  verifyPermission();
9088
+ } else if (status === "unauthenticated") {
9089
+ setPermissionStatus("denied");
9090
+ setIsLoading(false);
9088
9091
  }
9089
9092
  }, [viewParams, session, status, check_user_permission]);
9090
9093
  const sceneConfigId = useMemo12(() => (viewParams == null ? void 0 : viewParams.id) || null, [viewParams]);
@@ -9712,6 +9715,9 @@ function XViewScene({
9712
9715
  sceneResponse.data.scene.nodes = [targetNode];
9713
9716
  sceneResponse.data.scene.links = [];
9714
9717
  }
9718
+ } else if (focusAncestryId) {
9719
+ sceneResponse.data.scene.nodes = [];
9720
+ sceneResponse.data.scene.links = [];
9715
9721
  }
9716
9722
  sceneDataRef.current = sceneResponse.data.scene;
9717
9723
  parentDataRef.current = sceneResponse.data.parent;
@@ -9750,8 +9756,10 @@ function XViewScene({
9750
9756
  get_ancestry_board_action,
9751
9757
  isInitialized,
9752
9758
  permissionStatus,
9753
- focusNodeId
9754
- // <-- ADICIONADO O focusNodeId NAS DEPENDÊNCIAS
9759
+ focusNodeId,
9760
+ // <-- MANTIDO
9761
+ focusAncestryId
9762
+ // <-- ADICIONADO O focusAncestryId NAS DEPENDÊNCIAS
9755
9763
  ]);
9756
9764
  const isNodeInView = useCallback3((id) => {
9757
9765
  const key = String(id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv-x-software-house/x_view",
3
- "version": "1.2.1-dev.8",
3
+ "version": "1.2.1",
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",