@publier/shell 4.1.1 → 4.2.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.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { g as docsShell, i as DocsShellOptions } from "./integration-B_QSCkLI.mjs";
1
+ import { g as docsShell, i as DocsShellOptions } from "./integration-BnK5Z5T8.mjs";
2
2
  import "astro/zod";
3
3
  //#region src/build/headers.d.ts
4
4
  /**
@@ -195,6 +195,8 @@ interface NavProduct {
195
195
  badge?: string;
196
196
  default?: boolean;
197
197
  }[];
198
+ /** Section links for this product. Omit to inherit variant tabs; [] hides them. */
199
+ tabs?: NavLink[];
198
200
  }
199
201
  interface NavVariant {
200
202
  /** Optional product selector and independent version lists. */
@@ -1,2 +1,2 @@
1
- import { _ as hoistMediaOutOfUtilitiesLayer, a as DocsSidebarMetaOverride, c as NavCta, d as NavPathRule, f as NavProduct, g as docsShell, h as SiteConfig, i as DocsShellOptions, l as NavItem, m as SidebarAnchorConfig, n as DocVersionConfig, o as LlmsConfig, p as NavVariant, r as DocsConfig, s as NavConfig, t as AnnouncementConfig, u as NavLink, v as publierCascadeHoistPlugin } from "./integration-B_QSCkLI.mjs";
1
+ import { _ as hoistMediaOutOfUtilitiesLayer, a as DocsSidebarMetaOverride, c as NavCta, d as NavPathRule, f as NavProduct, g as docsShell, h as SiteConfig, i as DocsShellOptions, l as NavItem, m as SidebarAnchorConfig, n as DocVersionConfig, o as LlmsConfig, p as NavVariant, r as DocsConfig, s as NavConfig, t as AnnouncementConfig, u as NavLink, v as publierCascadeHoistPlugin } from "./integration-BnK5Z5T8.mjs";
2
2
  export { AnnouncementConfig, DocVersionConfig, DocsConfig, DocsShellOptions, DocsSidebarMetaOverride, LlmsConfig, NavConfig, NavCta, NavItem, NavLink, NavPathRule, NavProduct, NavVariant, SidebarAnchorConfig, SiteConfig, docsShell, hoistMediaOutOfUtilitiesLayer, publierCascadeHoistPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@publier/shell",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Qwik + Astro docs layout for Publier sites.",
6
6
  "type": "module",
@@ -115,7 +115,7 @@
115
115
  "@github/details-menu-element": "^1.0.13",
116
116
  "@github/relative-time-element": "^5.3.1",
117
117
  "@github/tab-container-element": "^4.9.0",
118
- "@publier/native": "5.0.1",
118
+ "@publier/native": "6.0.0",
119
119
  "@tailwindcss/typography": "^0.5.20",
120
120
  "astro-pagefind": "^2.0.1",
121
121
  "daisyui": "^5.7.22",
@@ -667,39 +667,17 @@ header.alert[data-publier-banner] [data-publier-banner-dismiss] {
667
667
  scroll-margin-top: 5rem;
668
668
  }
669
669
 
670
- /* Documentation keeps product selection and section navigation in the header.
671
- * Keep the sidebar and anchor offsets in step with both header rows. */
672
- body:has([data-publier-docs-tabs]) {
673
- --publier-header-height: 7.125rem;
674
- }
670
+ /* Documentation uses one primary header row; selectors and sections sit beside the brand. */
675
671
  [data-publier-docs-header] .navbar-start {
676
672
  flex: 0 0 auto;
677
673
  width: auto;
678
674
  }
679
675
  [data-publier-docs-header] .navbar {
680
- gap: 0.75rem;
681
- }
682
- [data-publier-docs-tabs] {
683
- border-top: 1px solid var(--color-base-300);
684
- }
685
- [data-publier-docs-tabs] > div {
686
- display: flex;
687
- align-items: center;
688
676
  gap: 0.5rem;
689
- padding-inline: 2rem;
690
- min-height: 3rem;
691
677
  }
692
678
  [data-publier-docs-tabs] a.btn {
693
- border-radius: 0;
694
- height: 3rem;
695
- border-bottom: 2px solid transparent;
696
- background: transparent;
697
679
  white-space: nowrap;
698
680
  }
699
- [data-publier-docs-tabs] a[aria-current="page"] {
700
- border-bottom-color: var(--color-primary);
701
- color: var(--color-primary);
702
- }
703
681
  [data-publier-docs-sidebar],
704
682
  aside[aria-label="Table of contents"] {
705
683
  top: var(--publier-header-height, 4rem);
@@ -708,13 +686,3 @@ aside[aria-label="Table of contents"] {
708
686
  body:has([data-publier-docs-header]) :is(h2, h3, h4)[id] {
709
687
  scroll-margin-top: calc(var(--publier-header-height, 4rem) + 1rem);
710
688
  }
711
- @media (width < 64rem) {
712
- [data-publier-docs-tabs] > div {
713
- padding-inline: 1rem;
714
- gap: 0;
715
- overflow-x: auto;
716
- }
717
- [data-publier-docs-tabs] a.btn {
718
- padding-inline: 0.75rem;
719
- }
720
- }
@@ -52,6 +52,8 @@ declare module 'virtual:publier-nav-config' {
52
52
  href?: string;
53
53
  /** Omit for a product without versioned documentation. */
54
54
  versions?: { label: string; path: string; badge?: string; default?: boolean }[];
55
+ /** Section links for this product. Omit to inherit variant tabs; [] hides them. */
56
+ tabs?: NavLink[];
55
57
  }
56
58
 
57
59
  export interface NavVariant {