react-os-shell 0.7.3 → 0.7.4

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
@@ -1402,7 +1402,7 @@ function WidgetManager({ open, onClose }) {
1402
1402
  }
1403
1403
 
1404
1404
  // src/version.ts
1405
- var VERSION = "0.7.3" ;
1405
+ var VERSION = "0.7.4" ;
1406
1406
  var APP_VERSION = VERSION;
1407
1407
 
1408
1408
  // src/changelog.ts
@@ -3523,6 +3523,7 @@ function StartMenu({
3523
3523
  const erpSections = navSections2.filter((item) => isSection(item) && erpLabels.has(item.label));
3524
3524
  const systemSections = navSections2.filter((item) => isSection(item) && systemLabels.has(item.label));
3525
3525
  const footerSections = navSections2.filter((item) => isSection(item) && footerLabels.has(item.label));
3526
+ const hasAppsGroup = topItems.length > 0 || systemSections.length > 0 || virtualSections.length > 0;
3526
3527
  const getVisibleItems = (section) => section.items.filter((item) => !item.perms || hasAnyPerm(item.perms));
3527
3528
  const matchTree = (it, sectionLabel) => {
3528
3529
  if (it.perms && !hasAnyPerm(it.perms)) return [];
@@ -3688,7 +3689,7 @@ function StartMenu({
3688
3689
  footerSections.map((s) => renderSection(s, false)),
3689
3690
  (footerSections.length > 0 || footerItems.length > 0) && /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 my-1.5 mx-2" }),
3690
3691
  erpSections.map((s) => renderSection(s, true)),
3691
- /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 my-1.5 mx-2" }),
3692
+ erpSections.length > 0 && hasAppsGroup && /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 my-1.5 mx-2" }),
3692
3693
  topItems.map((item) => /* @__PURE__ */ jsxs("div", { children: [
3693
3694
  /* @__PURE__ */ jsxs(
3694
3695
  "button",
@@ -3723,7 +3724,7 @@ function StartMenu({
3723
3724
  ] }, item.to)),
3724
3725
  systemSections.map((s) => renderSection(s, false)),
3725
3726
  virtualSections.map((v) => renderVirtualSection(v)),
3726
- /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 my-1.5 mx-2" }),
3727
+ hasAppsGroup && erpSections.length > 0 && /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 my-1.5 mx-2" }),
3727
3728
  erpSections.map((s) => renderSection(s, true)),
3728
3729
  (footerSections.length > 0 || footerItems.length > 0) && /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 my-1.5 mx-2" }),
3729
3730
  footerSections.map((s) => renderSection(s, false)),