Skip to content

Commit c0b6eb7

Browse files
committed
chore: update deps
1 parent 458c1f9 commit c0b6eb7

File tree

191 files changed

+2114
-2011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+2114
-2011
lines changed

cypress/e2e/examples/basic.spec.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ context('Basic', () => {
6565

6666
cy.get('body')
6767
.type('{DownArrow}')
68-
.url().should('eq', `${BASE}/6`)
68+
.url()
69+
.should('eq', `${BASE}/6`)
6970

7071
cy.rightArrow()
7172

@@ -75,7 +76,8 @@ context('Basic', () => {
7576

7677
cy.get('body')
7778
.type('{RightArrow}{RightArrow}{RightArrow}{RightArrow}{RightArrow}{RightArrow}')
78-
.url().should('eq', `${BASE}/7`)
79+
.url()
80+
.should('eq', `${BASE}/7`)
7981

8082
cy.get('body')
8183
.type('{LeftArrow}')

cypress/e2e/examples/smoke.spec.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ context('Smoke test', () => {
33
while (1) {
44
let oldUrl, newUrl
55
cy.get('body')
6-
.url().then(url => (oldUrl = url))
6+
.url()
7+
.then(url => (oldUrl = url))
78
.type(`{RightArrow}`)
89
.wait(1000)
9-
.url().then(url => (newUrl = url))
10+
.url()
11+
.then(url => (newUrl = url))
1012
if (oldUrl === newUrl)
1113
break
1214
}

demo/composable-vue/components/Connections.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { computed, ref, watch } from 'vue'
32
import { autoResetRef } from '@vueuse/core'
3+
import { computed, ref, watch } from 'vue'
44
55
const a = ref(2)
66
const b = ref(4)

demo/composable-vue/slides.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ title.value = 'Hello World'
466466
### Binding an Existing Ref
467467

468468
```ts {monaco}
469-
import { computed, ref } from 'vue'
470469
import { useTitle } from '@vueuse/core'
470+
import { computed, ref } from 'vue'
471471

472472
const name = ref('Hello')
473473
const title = computed(() => {
@@ -495,8 +495,8 @@ Take a look at `useTitle`'s implementation
495495
<v-clicks>
496496

497497
```ts {monaco}
498-
import { ref, watch } from 'vue'
499498
import type { MaybeRef } from '@vueuse/core'
499+
import { ref, watch } from 'vue'
500500

501501
export function useTitle(
502502
newTitle: MaybeRef<string | null | undefined>,
@@ -1069,8 +1069,8 @@ layout: center
10691069
Composition API support for Vue 2.<br><carbon-logo-github class="inline-block"/> [vuejs/composition-api](https://github.com/vuejs/composition-api)
10701070

10711071
```ts
1072-
import Vue from 'vue'
10731072
import VueCompositionAPI from '@vue/composition-api'
1073+
import Vue from 'vue'
10741074

10751075
Vue.use(VueCompositionAPI)
10761076
```

docs/.vitepress/config.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { fileURLToPath } from 'node:url'
21
import type { DefaultTheme } from 'vitepress'
3-
import { defineConfig } from 'vitepress'
2+
import { fileURLToPath } from 'node:url'
43
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
4+
import { defineConfig } from 'vitepress'
55
import { version } from '../package.json'
6-
import { getSidebarObject } from './sidebar-gen'
7-
import { Advanced, BuiltIn, Guides, Resources } from './pages'
86
import Customizations from './customizations'
7+
import { Advanced, BuiltIn, Guides, Resources } from './pages'
8+
import { getSidebarObject } from './sidebar-gen'
99

1010
const slidebars: DefaultTheme.SidebarItem[] = [
1111
{
@@ -132,6 +132,7 @@ export default defineConfig({
132132
'/custom/': slidebars,
133133
'/builtin/': slidebars,
134134
'/resources/': slidebars,
135+
// eslint-disable-next-line antfu/no-top-level-await
135136
...await getSidebarObject(),
136137
'/features/': [],
137138
'/': slidebars,

docs/.vitepress/sidebar-gen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { fileURLToPath } from 'node:url'
1+
import type { DefaultTheme } from 'vitepress'
22
import { join } from 'node:path'
3+
import { fileURLToPath } from 'node:url'
34
import fg from 'fast-glob'
4-
import type { DefaultTheme } from 'vitepress'
55
import graymatter from 'gray-matter'
66

77
const root = fileURLToPath(new URL('../../', import.meta.url))

docs/.vitepress/theme/components/Demo.vue

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<script setup lang="ts">
2-
import { onMounted, ref, watch } from 'vue'
3-
import TypeIt from 'typeit'
4-
import Markdown from 'markdown-it'
52
import type { SlidevMarkdown } from '@slidev/types'
3+
import Center from '@slidev/client/layouts/center.vue'
4+
import Default from '@slidev/client/layouts/default.vue'
65
import { parseSync } from '@slidev/parser'
76
import Cover from '@slidev/theme-default/layouts/cover.vue'
8-
import Default from '@slidev/client/layouts/default.vue'
9-
import Center from '@slidev/client/layouts/center.vue'
7+
import Markdown from 'markdown-it'
8+
import TypeIt from 'typeit'
9+
import { onMounted, ref, watch } from 'vue'
10+
import DemoEditor from './DemoEditor.vue'
11+
import DemoSlide from './DemoSlide.vue'
1012
import SlideContainer from './SlideContainer.vue'
13+
1114
import '@slidev/client/styles/layouts-base.css'
1215
import '@slidev/theme-default/styles/layouts.css'
1316
14-
import DemoEditor from './DemoEditor.vue'
15-
import DemoSlide from './DemoSlide.vue'
16-
1717
const page = ref(0)
1818
const paused = ref(false)
1919
const completed = ref(false)

docs/.vitepress/theme/components/FeatureTag.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { computed } from 'vue'
32
import { useData, withBase } from 'vitepress'
3+
import { computed } from 'vue'
44
55
const props = defineProps<{
66
tag: string

docs/.vitepress/theme/components/FeaturesAnimationInner.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import { computed, ref } from 'vue'
3-
import { withBase } from 'vitepress'
42
import type { Feature } from '../../../features/index.data'
3+
import { withBase } from 'vitepress'
4+
import { computed, ref } from 'vue'
55
import { data as features } from '../../../features/index.data'
66
77
const rows = 6

docs/.vitepress/theme/components/FeaturesOverview.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { withBase } from 'vitepress'
32
import type { Feature } from '../../../features/index.data'
3+
import { withBase } from 'vitepress'
44
55
defineProps<{
66
features: Feature[]

docs/.vitepress/theme/components/Layout.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import DefaultTheme from 'vitepress/theme'
32
import { Dropdown } from 'floating-vue'
43
import { useRoute } from 'vitepress'
54
import VPMenuLink from 'vitepress/dist/client/theme-default/components/VPMenuLink.vue'
5+
import DefaultTheme from 'vitepress/theme'
66
import FeatureTag from './FeatureTag.vue'
77
88
const { Layout } = DefaultTheme

docs/.vitepress/theme/components/LinkInline.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { withBase } from 'vitepress'
32
import { Tooltip } from 'floating-vue'
3+
import { withBase } from 'vitepress'
44
import { computed } from 'vue'
55
import { resolveLink } from '../../utils'
66

docs/.vitepress/theme/components/ThemeInfo.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue'
3-
import { isClient, useIntervalFn } from '@vueuse/core'
42
import type { ThemeInfo } from '../../themes'
3+
import { isClient, useIntervalFn } from '@vueuse/core'
4+
import { ref } from 'vue'
55
66
const props = defineProps<{
77
theme: ThemeInfo

docs/.vitepress/theme/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Theme from 'vitepress/theme'
21
import type { EnhanceAppContext } from 'vitepress'
32
import TwoSlash from '@shikijs/vitepress-twoslash/client'
3+
import Theme from 'vitepress/theme'
44
import Layout from './components/Layout.vue'
55

66
import '@shikijs/vitepress-twoslash/style.css'

docs/custom/config-context-menu.md

+17-25
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,32 @@
1-
# Configure Context Menu
2-
3-
<Environment type="client" />
4-
5-
Customize the context menu items in Slidev.
6-
7-
Create `./setup/context-menu.ts` with the following content:
8-
9-
<!-- eslint-disable import/first -->
10-
11-
```ts twoslash
1+
import { useNav } from '@slidev/client'
2+
/_ eslint-disable import/first _/
123
// ---cut---
134
import { defineContextMenuSetup } from '@slidev/types'
14-
import { useNav } from '@slidev/client'
155
import { computed } from 'vue'
166
// ---cut-start---
177
// @ts-expect-error missing types
188
// ---cut-end---
199
import Icon3DCursor from '~icons/carbon/3d-cursor'
2010

2111
export default defineContextMenuSetup((items) => {
22-
const { isPresenter } = useNav()
23-
return computed(() => [
24-
...items.value,
25-
{
26-
small: false,
27-
icon: Icon3DCursor, // if `small` is `true`, only the icon is shown
28-
label: 'Custom Menu Item', // or a Vue component
29-
action() {
30-
alert('Custom Menu Item Clicked!')
31-
},
32-
disabled: isPresenter.value,
33-
},
34-
])
12+
const { isPresenter } = useNav()
13+
return computed(() => [
14+
...items.value,
15+
{
16+
small: false,
17+
icon: Icon3DCursor, // if `small` is `true`, only the icon is shown
18+
label: 'Custom Menu Item', // or a Vue component
19+
action() {
20+
alert('Custom Menu Item Clicked!')
21+
},
22+
disabled: isPresenter.value,
23+
},
24+
])
3525
})
26+
3627
```
3728
3829
This will append a new menu item to the context menu.
3930
4031
To disable context menu globally, set `contextMenu` to `false` in the frontmatter. `contextMenu` can also be set to `dev` or `build` to only enable the context menu in development or build mode.
32+
```

docs/custom/config-vite.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ See the [type declarations](https://github.com/slidevjs/slidev/blob/main/package
5151
It is not allowed to re-add plugins that has been used internally be Slidev. For example, instead of
5252

5353
```ts twoslash
54-
import { defineConfig } from 'vite'
5554
import Vue from '@vitejs/plugin-vue'
55+
import { defineConfig } from 'vite'
5656

5757
export default defineConfig({
5858
plugins: [

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "0.49.29",
55
"private": true,
6-
"packageManager": "pnpm@9.9.0",
6+
"packageManager": "pnpm@9.11.0",
77
"scripts": {
88
"dev": "vitepress",
99
"build": "vitepress build",

docs/vite.config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { defineConfig } from 'vite'
2-
import Icons from 'unplugin-icons/vite'
1+
import UnoCSS from 'unocss/vite'
32
import IconsResolver from 'unplugin-icons/resolver'
3+
import Icons from 'unplugin-icons/vite'
44
import Components from 'unplugin-vue-components/vite'
5+
import { defineConfig } from 'vite'
56
import Inspect from 'vite-plugin-inspect'
6-
import UnoCSS from 'unocss/vite'
77

88
export default defineConfig({
99
optimizeDeps: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"version": "0.49.29",
44
"private": true,
5-
"packageManager": "pnpm@9.9.0",
5+
"packageManager": "pnpm@9.11.0",
66
"engines": {
77
"node": ">=18.0.0"
88
},

packages/client/builtin/Arrow.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Simple Arrow
99
-->
1010

1111
<script setup lang="ts">
12-
import { ref } from 'vue'
1312
import { onClickOutside } from '@vueuse/core'
13+
import { ref } from 'vue'
1414
import { makeId } from '../logic/utils'
1515

1616
defineProps<{

packages/client/builtin/CodeBlockWrapper.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Learn more: https://sli.dev/guide/syntax.html#line-highlighting
1212
-->
1313

1414
<script setup lang="ts">
15+
import type { PropType } from 'vue'
1516
import { useClipboard } from '@vueuse/core'
1617
import { computed, onMounted, onUnmounted, ref, watchEffect } from 'vue'
17-
import type { PropType } from 'vue'
18-
import { configs } from '../env'
19-
import { makeId, updateCodeHighlightRange } from '../logic/utils'
2018
import { CLASS_VCLICK_HIDDEN, CLICKS_MAX } from '../constants'
2119
import { useSlideContext } from '../context'
20+
import { configs } from '../env'
21+
import { makeId, updateCodeHighlightRange } from '../logic/utils'
2222

2323
const props = defineProps({
2424
ranges: {

packages/client/builtin/KaTexBlockWrapper.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Learn more: https://sli.dev/guide/syntax.html#latex-line-highlighting
2020
-->
2121

2222
<script setup lang="ts">
23-
import { computed, onMounted, onUnmounted, ref, watchEffect } from 'vue'
2423
import type { PropType } from 'vue'
2524
import { parseRangeString } from '@slidev/parser'
25+
import { computed, onMounted, onUnmounted, ref, watchEffect } from 'vue'
2626
import { CLASS_VCLICK_HIDDEN, CLASS_VCLICK_TARGET, CLICKS_MAX } from '../constants'
27-
import { makeId } from '../logic/utils'
2827
import { useSlideContext } from '../context'
28+
import { makeId } from '../logic/utils'
2929

3030
const props = defineProps({
3131
ranges: {

packages/client/builtin/Mermaid.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ pie
1414

1515
<script setup lang="ts">
1616
import { getCurrentInstance, ref, watch, watchEffect } from 'vue'
17-
import { renderMermaid } from '../modules/mermaid'
1817
import ShadowRoot from '../internals/ShadowRoot.vue'
1918
import { isDark } from '../logic/dark'
19+
import { renderMermaid } from '../modules/mermaid'
2020

2121
const props = defineProps<{
2222
codeLz: string

packages/client/builtin/Monaco.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Learn more: https://sli.dev/guide/syntax.html#monaco-editor
1212
-->
1313

1414
<script setup lang="ts">
15+
import type { RawAtValue } from '@slidev/types'
16+
import type * as monaco from 'monaco-editor'
1517
import { debounce } from '@antfu/utils'
18+
import { whenever } from '@vueuse/core'
1619
import lz from 'lz-string'
17-
import type * as monaco from 'monaco-editor'
1820
import { computed, defineAsyncComponent, nextTick, onMounted, ref } from 'vue'
19-
import type { RawAtValue } from '@slidev/types'
20-
import { whenever } from '@vueuse/core'
21-
import { makeId } from '../logic/utils'
22-
import { useSlideContext } from '../context'
2321
import { useNav } from '../composables/useNav'
22+
import { useSlideContext } from '../context'
23+
import { makeId } from '../logic/utils'
2424

2525
const props = withDefaults(defineProps<{
2626
codeLz: string

packages/client/builtin/RenderWhen.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
22
import type { RenderContext } from '@slidev/types'
3-
import { computed, ref } from 'vue'
43
import { useElementVisibility } from '@vueuse/core'
5-
import { useSlideContext } from '../context'
4+
import { computed, ref } from 'vue'
65
import { useNav } from '../composables/useNav'
6+
import { useSlideContext } from '../context'
77
88
type Context = 'main' | 'visible' | 'print' | RenderContext
99

0 commit comments

Comments
 (0)