@industry-theme/principal-view-panels 0.1.25 → 0.1.26

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PrincipalViewGraphPanel.d.ts","sourceRoot":"","sources":["../../src/panels/PrincipalViewGraphPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAsD/E;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8rCjE,CAAC"}
1
+ {"version":3,"file":"PrincipalViewGraphPanel.d.ts","sourceRoot":"","sources":["../../src/panels/PrincipalViewGraphPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAsD/E;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6rCjE,CAAC"}
@@ -53794,7 +53794,7 @@ const PrincipalViewGraphPanel = ({
53794
53794
  setState((prev) => ({ ...prev, hasUnsavedChanges: false }));
53795
53795
  }, [loadConfiguration]);
53796
53796
  const saveAllChanges = useCallback(async () => {
53797
- var _a2, _b2;
53797
+ var _a2;
53798
53798
  if (!state.canvas) return;
53799
53799
  const pendingChanges = (_a2 = graphRef.current) == null ? void 0 : _a2.getPendingChanges();
53800
53800
  const hasGraphChanges = (pendingChanges == null ? void 0 : pendingChanges.hasChanges) ?? false;
@@ -53824,9 +53824,9 @@ const PrincipalViewGraphPanel = ({
53824
53824
  ...prev,
53825
53825
  canvas: updatedCanvas,
53826
53826
  isSaving: false,
53827
- hasUnsavedChanges: false
53827
+ hasUnsavedChanges: false,
53828
+ layoutVersion: prev.layoutVersion + 1
53828
53829
  }));
53829
- (_b2 = graphRef.current) == null ? void 0 : _b2.resetEditState();
53830
53830
  } catch (error) {
53831
53831
  console.error("[PrincipalView] Error saving changes:", error);
53832
53832
  setState((prev) => ({