sevago-library 1.3.11 → 1.3.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # sevago-library
2
2
 
3
+ ## 1.3.12
4
+
5
+ ### Patch Changes
6
+
7
+ - refactor: simplify app retrieval logic in SystemMonitorSidebarPart
8
+
3
9
  ## 1.3.11
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -78289,9 +78289,12 @@ const SystemMonitorSidebarPart = ({
78289
78289
  isLongSubDomain = false
78290
78290
  }) => {
78291
78291
  const [open2, setOpen] = React.useState(false);
78292
- const app = React.useMemo(() => {
78293
- return Object.values(APP_OBJ).find((e) => window.location.href.startsWith(e.path[env])) || APP_OBJ.MASTER_DATA;
78294
- }, [window.location.href]);
78292
+ const app = Object.values(APP_OBJ).find(
78293
+ (appInfo) => Object.values(appInfo.path).some((path) => {
78294
+ const normalizedPath = path == null ? void 0 : path.trim();
78295
+ return normalizedPath && window.location.href.startsWith(normalizedPath);
78296
+ })
78297
+ ) ?? APP_OBJ.MASTER_DATA;
78295
78298
  return /* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { children: [
78296
78299
  /* @__PURE__ */ jsxRuntime.jsx(ImageElement, { url: ICONS.iconApps, onClick: () => setOpen(true), sizeType: "SQUARE" }),
78297
78300
  /* @__PURE__ */ jsxRuntime.jsx(