@logickernel/bridge 0.9.6 → 0.9.7

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.
@@ -757,6 +757,17 @@ function getIconComponent(icon) {
757
757
  }
758
758
  function NavMain({ items }) {
759
759
  const pathname = navigation.usePathname();
760
+ if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
761
+ console.log("[NavMain] Received items:", {
762
+ itemsCount: items.length,
763
+ items: items.map((item) => ({
764
+ title: item.title,
765
+ url: item.url,
766
+ icon: item.icon,
767
+ hasSubItems: !!(item.items && item.items.length > 0)
768
+ }))
769
+ });
770
+ }
760
771
  const groups = [];
761
772
  let currentGroup = {
762
773
  items: []
@@ -784,6 +795,16 @@ function NavMain({ items }) {
784
795
  if (currentGroup.items.length > 0 || currentGroup.label) {
785
796
  groups.push(currentGroup);
786
797
  }
798
+ if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
799
+ console.log("[NavMain] Groups:", {
800
+ groupsCount: groups.length,
801
+ groups: groups.map((group) => ({
802
+ hasLabel: !!group.label,
803
+ itemsCount: group.items.length,
804
+ items: group.items.map((item) => item.title)
805
+ }))
806
+ });
807
+ }
787
808
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxRuntime.jsxs(SidebarGroup, { children: [
788
809
  group.label && /* @__PURE__ */ jsxRuntime.jsxs(SidebarGroupLabel, { children: [
789
810
  group.label.icon && /* @__PURE__ */ jsxRuntime.jsx(group.label.icon, { className: "mr-2" }),