@brillout/docpress 0.15.0 → 0.15.1

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/Layout.tsx CHANGED
@@ -18,7 +18,6 @@ import { autoScrollNav_SSR } from './autoScrollNav'
18
18
  import { SearchLink } from './docsearch/SearchLink'
19
19
  import { navigate } from 'vike/client/router'
20
20
  import { css } from './utils/css'
21
- import { PassThrough } from './utils/PassTrough'
22
21
  import { Style } from './utils/Style'
23
22
  import { cls } from './utils/cls'
24
23
  import { iconBooks } from './icons'
@@ -282,7 +281,7 @@ const menuLinkStyle: React.CSSProperties = {
282
281
  function NavHead({ isNavLeft }: { isNavLeft?: true }) {
283
282
  const pageContext = usePageContext()
284
283
  const { isLandingPage } = pageContext.conf
285
- const { navMaxWidth, name } = pageContext.globalContext.config.docpress
284
+ const { navMaxWidth, name, algolia } = pageContext.globalContext.config.docpress
286
285
 
287
286
  const navSecondaryContent = (
288
287
  <div
@@ -351,7 +350,7 @@ function NavHead({ isNavLeft }: { isNavLeft?: true }) {
351
350
  >
352
351
  <NavLogo className="grow-half" />
353
352
  {!isNavLeft && <div className="desktop-grow" />}
354
- <SearchLink className="grow-half" style={menuLinkStyle} />
353
+ {algolia && <SearchLink className="grow-half" style={menuLinkStyle} />}
355
354
  <MenuToggleMain className="grow-full" style={menuLinkStyle} />
356
355
  {navSecondaryContent}
357
356
  </div>
@@ -24,8 +24,8 @@ type Config = {
24
24
  i18n?: true;
25
25
  pressKit?: true;
26
26
  docsDir?: string;
27
- globalNote?: React.ReactNode;
28
27
  topNavigation?: React.ReactNode;
28
+ globalNote?: React.ReactNode;
29
29
  navMaxWidth?: number;
30
30
  navLogoSize?: number;
31
31
  navLogoStyle?: React.CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
package/types/Config.ts CHANGED
@@ -31,8 +31,8 @@ type Config = {
31
31
  pressKit?: true
32
32
  docsDir?: string
33
33
 
34
- globalNote?: React.ReactNode
35
34
  topNavigation?: React.ReactNode
35
+ globalNote?: React.ReactNode
36
36
  navMaxWidth?: number
37
37
  navLogoSize?: number
38
38
  navLogoStyle?: React.CSSProperties