@slidev/client 0.36.11 → 0.37.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.
@@ -111,7 +111,7 @@ onMounted(() => {
111
111
  current
112
112
  </div>
113
113
  </div>
114
- <div class="relative grid-section next flex flex-col p-2 lg:p-4">
114
+ <div class="relative grid-section next flex flex-col p-2 lg:p-4" :style="themeVars">
115
115
  <SlideContainer
116
116
  v-if="nextSlide"
117
117
  key="next"
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { useVModel } from '@vueuse/core'
3
3
  import { computed, watchEffect } from 'vue'
4
+ import { themeVars } from '../env'
4
5
  import { breakpoints, windowSize } from '../state'
5
6
  import { currentPage, go as goSlide, rawRoutes } from '../logic/nav'
6
7
  import { currentOverviewPage, overviewRowCount } from '../logic/overview'
@@ -72,6 +73,7 @@ watchEffect(() => {
72
73
  <div
73
74
  class="inline-block border border-gray-400 rounded border-opacity-50 overflow-hidden bg-main hover:border-$slidev-theme-primary"
74
75
  :class="{ 'border-$slidev-theme-primary': focus(idx + 1) }"
76
+ :style="themeVars"
75
77
  @click="go(+route.path)"
76
78
  >
77
79
  <SlideContainer
@@ -1,4 +1,4 @@
1
- // @ts-expect-error missing types
1
+ /* eslint-disable import/default */
2
2
  import mermaid from 'mermaid/dist/mermaid'
3
3
  import { customAlphabet } from 'nanoid'
4
4
  import { decode } from 'js-base64'
@@ -24,7 +24,8 @@ export function renderMermaid(encoded: string, options: any) {
24
24
  })
25
25
  const code = decode(encoded)
26
26
  const id = nanoid()
27
- const svg = mermaid.render(id, code)
27
+ // @ts-expect-error type mistake
28
+ const svg = mermaid.render(id, code) as string
28
29
  cache.set(key, svg)
29
30
  return svg
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
- "version": "0.36.11",
3
+ "version": "0.37.1",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@antfu/utils": "^0.6.3",
19
- "@slidev/parser": "0.36.11",
20
- "@slidev/types": "0.36.11",
19
+ "@slidev/parser": "0.37.1",
20
+ "@slidev/types": "0.37.1",
21
21
  "@unocss/reset": "^0.46.3",
22
22
  "@vueuse/core": "^9.5.0",
23
23
  "@vueuse/head": "^0.9.8",