@brillout/docpress 0.16.13 → 0.16.15

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/ExternalLinks.tsx CHANGED
@@ -100,6 +100,8 @@ function LinkIcon({
100
100
  style,
101
101
  iconSizeBoost = 0,
102
102
  }: { className: string; icon: string; href: string; style?: any; iconSizeBoost?: number }) {
103
+ const height = 18 + iconSizeBoost
104
+
103
105
  return (
104
106
  <>
105
107
  <a
@@ -107,7 +109,7 @@ function LinkIcon({
107
109
  href={href}
108
110
  style={{ padding: 3, display: 'inline-flex', lineHeight: 0, height: '100%', alignItems: 'center' }}
109
111
  >
110
- <img className={className} src={icon} height={18 + iconSizeBoost} style={style} />
112
+ <img className={className} src={icon} height={height} style={{ ...style, height }} />
111
113
  </a>
112
114
  </>
113
115
  )
package/Layout.tsx CHANGED
@@ -604,7 +604,7 @@ function NavHeadLogo({ isNavLeft }: { isNavLeft?: true }) {
604
604
  if (!pageContext.globalContext.config.docpress.pressKit) return // no /press page
605
605
  if (window.location.pathname === '/press') return
606
606
  ev.preventDefault()
607
- // @ts-expect-error Will be fixed in the next Vike version — remove this @ts-expect-error then.
607
+ // @ts-ignore TODO/now Will be fixed in the next Vike version — remove this @ts-expect-error then.
608
608
  navigate('/press#logo')
609
609
  }
610
610
  }
@@ -18,7 +18,7 @@ import { parseMarkdownMini } from './parseMarkdownMini.js'
18
18
  import './global.d.ts'
19
19
  /*/
20
20
  // The only purpose of `FakeExport` is to be able to use `import type`
21
- // @ts-expect-error
21
+ // @ts-ignore
22
22
  import type { FakeExport } from './global.js'
23
23
  //*/
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.16.13",
3
+ "version": "0.16.15",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
@@ -68,7 +68,8 @@
68
68
  "@types/react": "^19.2.2",
69
69
  "@types/react-dom": "^19.2.2",
70
70
  "mdast-util-directive": "^3.1.0",
71
- "mdast-util-mdx-jsx": "^3.2.0"
71
+ "mdast-util-mdx-jsx": "^3.2.0",
72
+ "vike": "^0.4.250"
72
73
  },
73
74
  "repository": "https://github.com/brillout/docpress",
74
75
  "license": "MIT",