@tangle-network/sandbox-ui 0.24.2 → 0.25.0

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.
@@ -1629,7 +1629,15 @@ function SidebarLayoutInner({
1629
1629
  showLabel: railLabels
1630
1630
  },
1631
1631
  item.id
1632
- ) : /* @__PURE__ */ jsx14(RailButton, { icon: item.icon, label: item.label, badge: item.badge, isActive: activeId === item.id, showLabel: railLabels, asChild: true, children: /* @__PURE__ */ jsx14(Link, { href: item.href, to: item.href, onClick: handleNavClick }) }, item.id)
1632
+ ) : /* @__PURE__ */ jsx14(RailButton, { icon: item.icon, label: item.label, badge: item.badge, isActive: activeId === item.id, showLabel: railLabels, asChild: true, children: /* @__PURE__ */ jsx14(
1633
+ Link,
1634
+ {
1635
+ href: item.href,
1636
+ to: item.href,
1637
+ onClick: handleNavClick,
1638
+ ...item.prefetch !== void 0 ? { prefetch: item.prefetch } : {}
1639
+ }
1640
+ ) }, item.id)
1633
1641
  ) }),
1634
1642
  (railFooter !== void 0 || hasProfile) && /* @__PURE__ */ jsxs13(SidebarRailFooter, { className: cn("border-t border-border pt-2", railLabels && "items-stretch px-2"), children: [
1635
1643
  railFooter,
@@ -544,6 +544,12 @@ interface SidebarLayoutNavItem {
544
544
  /** Render this item as the panel toggle instead of a link. */
545
545
  togglesPanel?: boolean;
546
546
  badge?: number;
547
+ /**
548
+ * React Router prefetch behavior for this link, forwarded to the underlying
549
+ * `<Link prefetch>`. Omit to preserve the router's default (no prefetch).
550
+ * Ignored for panel-toggle items and for `LinkComponent`s that don't support it.
551
+ */
552
+ prefetch?: "none" | "intent" | "render" | "viewport";
547
553
  }
548
554
  interface SidebarLayoutProps {
549
555
  children: React.ReactNode;
package/dist/dashboard.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  canAdminSandbox,
48
48
  parseInsufficientBalance,
49
49
  useSidebar
50
- } from "./chunk-76TCOY2R.js";
50
+ } from "./chunk-LDETDX7W.js";
51
51
  import {
52
52
  BillingDashboard,
53
53
  InfoPanel,
package/dist/index.js CHANGED
@@ -189,7 +189,7 @@ import {
189
189
  canAdminSandbox,
190
190
  parseInsufficientBalance,
191
191
  useSidebar
192
- } from "./chunk-76TCOY2R.js";
192
+ } from "./chunk-LDETDX7W.js";
193
193
  import {
194
194
  BillingDashboard,
195
195
  InfoPanel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.24.2",
3
+ "version": "0.25.0",
4
4
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
5
5
  "repository": {
6
6
  "type": "git",