@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.
@@ -728,6 +728,17 @@ function getIconComponent(icon) {
728
728
  }
729
729
  function NavMain({ items }) {
730
730
  const pathname = usePathname();
731
+ if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
732
+ console.log("[NavMain] Received items:", {
733
+ itemsCount: items.length,
734
+ items: items.map((item) => ({
735
+ title: item.title,
736
+ url: item.url,
737
+ icon: item.icon,
738
+ hasSubItems: !!(item.items && item.items.length > 0)
739
+ }))
740
+ });
741
+ }
731
742
  const groups = [];
732
743
  let currentGroup = {
733
744
  items: []
@@ -755,6 +766,16 @@ function NavMain({ items }) {
755
766
  if (currentGroup.items.length > 0 || currentGroup.label) {
756
767
  groups.push(currentGroup);
757
768
  }
769
+ if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
770
+ console.log("[NavMain] Groups:", {
771
+ groupsCount: groups.length,
772
+ groups: groups.map((group) => ({
773
+ hasLabel: !!group.label,
774
+ itemsCount: group.items.length,
775
+ items: group.items.map((item) => item.title)
776
+ }))
777
+ });
778
+ }
758
779
  return /* @__PURE__ */ jsx(Fragment, { children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs(SidebarGroup, { children: [
759
780
  group.label && /* @__PURE__ */ jsxs(SidebarGroupLabel, { children: [
760
781
  group.label.icon && /* @__PURE__ */ jsx(group.label.icon, { className: "mr-2" }),