@voidzero-dev/vitepress-theme 4.3.0 → 4.4.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/config.js CHANGED
@@ -12,7 +12,6 @@ const aliases = {
12
12
  "src/composables/vitepress-default"
13
13
  ),
14
14
  "@vp-support": resolve(__dirname, "src/support/vitepress-default"),
15
- "@rive-app/canvas-lite": import.meta.resolve("@rive-app/canvas-lite"),
16
15
  };
17
16
 
18
17
  export function extendConfig(c) {
@@ -78,8 +77,10 @@ export function extendConfig(c) {
78
77
 
79
78
  const pkg = "@voidzero-dev/vitepress-theme";
80
79
 
81
- // inject optimize exclude
80
+ // inject optimize include / exclude
82
81
  v.optimizeDeps ??= {};
82
+ v.optimizeDeps.include ??= [];
83
+ v.optimizeDeps.include.push(`${pkg} > @rive-app/canvas-lite`);
83
84
  v.optimizeDeps.exclude ??= [];
84
85
  v.optimizeDeps.exclude.push(pkg);
85
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vitepress-theme",
3
- "version": "4.3.0",
3
+ "version": "4.4.1",
4
4
  "description": "Shared VitePress theme for VoidZero projects",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -197,8 +197,8 @@ onUnmounted(() => {
197
197
  <header
198
198
  class="wrapper px-6 py-5 flex items-center justify-between relative bg-white dark:bg-primary border-b border-stroke dark:border-nickel">
199
199
  <!-- Left side: Logo + Nav -->
200
- <div class="flex items-center gap-10">
201
- <a href="/" class="shrink-0">
200
+ <div class="flex gap-10 self-stretch">
201
+ <a href="/" class="flex items-center -mx-2 px-2">
202
202
  <slot name="nav-bar-title-before" />
203
203
  <img class="h-4 block dark:hidden" :src="logoDark" :alt="logoAlt" />
204
204
  <img class="h-4 hidden dark:block" :src="logoLight" :alt="logoAlt" />
@@ -1,7 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import * as rive from "@rive-app/canvas-lite"
3
+ import riveWasm from "@rive-app/canvas-lite/rive.wasm?url"
3
4
  import { ref, onMounted, onUnmounted, computed } from "vue"
4
5
 
6
+ rive.RuntimeLoader.setWasmUrl(riveWasm)
7
+
5
8
  interface Props {
6
9
  desktopSrc: string
7
10
  mobileSrc?: string
@@ -115,6 +115,7 @@ watch([() => searchIndexLoading.value, () => searchIndexError.value], ([loading,
115
115
  // Small delay to ensure DOM has updated with the search input
116
116
  nextTick(() => {
117
117
  activate()
118
+ focusSearchInput()
118
119
  })
119
120
  }
120
121
  }, { immediate: true })
package/src/env.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference types="vite/client" />
1
+ /// <reference types="vitepress/client" />
2
2
 
3
3
  // Asset module declarations
4
4
  declare module '*.riv' {
@@ -26,7 +26,7 @@
26
26
  --color-primary: #16171d;
27
27
  --color-beige: #F4F3EC;
28
28
  --color-nickel: #3B3440;
29
- --color-grey: #827A89;
29
+ --color-grey: #867e8e;
30
30
  --color-stroke: #E5E4E7;
31
31
  --color-midnight: #0C0912;
32
32
  --color-slate: #14121A;
@@ -235,11 +235,21 @@
235
235
  background-color: transparent;
236
236
  }
237
237
 
238
+ .vp-doc .custom-block .vp-code-group,
239
+ .vp-doc .custom-block [class*='vp-code-block'] {
240
+ margin-top: 8px;
241
+ }
242
+
238
243
  .vp-doc .custom-block .vp-code-group .tabs {
239
244
  margin: 0;
240
245
  border-radius: 8px 8px 0 0;
241
246
  }
242
247
 
248
+ .vp-doc .custom-block .vp-code-group div[class*='language-'],
249
+ .vp-doc .custom-block [class*='vp-code-block'] div[class*='language-'] {
250
+ margin-top: 0 !important;
251
+ }
252
+
243
253
  /**
244
254
  * Code
245
255
  * -------------------------------------------------------------------------- */
@@ -288,6 +298,7 @@
288
298
  .vp-doc div[class*='language-'],
289
299
  .vp-block {
290
300
  margin: 16px -24px;
301
+ border-radius: 0;
291
302
  }
292
303
 
293
304
  .vp-doc li div[class*='language-'] {
@@ -313,7 +313,7 @@
313
313
  --vp-z-index-sidebar: 60;
314
314
  }
315
315
 
316
- @media (min-width: 960px) {
316
+ @media (min-width: 1024px) {
317
317
  :root {
318
318
  --vp-z-index-sidebar: 25;
319
319
  }