@slidev/client 0.43.14 → 0.43.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.
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { useHead } from '@vueuse/head'
2
+ import { useHead } from '@unhead/vue'
3
3
  import { computed, ref, watch } from 'vue'
4
4
  import { useLocalStorage } from '@vueuse/core'
5
5
  import { configs } from '../env'
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { useHead } from '@vueuse/head'
2
+ import { useHead } from '@unhead/vue'
3
3
  import { computed, onMounted, reactive, ref, shallowRef, watch } from 'vue'
4
4
  import { useMouse, useWindowFocus } from '@vueuse/core'
5
5
  import { clicks, clicksTotal, currentPage, currentRoute, hasNext, nextRoute, total, useSwipeControls } from '../logic/nav'
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue'
3
3
  import { useStyleTag } from '@vueuse/core'
4
- import { useHead } from '@vueuse/head'
4
+ import { useHead } from '@unhead/vue'
5
5
  import { configs, themeVars } from '../env'
6
6
  import { rawRoutes, total } from '../logic/nav'
7
7
  import NoteDisplay from './NoteDisplay.vue'
@@ -11,9 +11,6 @@ This shows on the left
11
11
  ::right::
12
12
  # Right
13
13
  This shows on the right
14
- ::bottom::
15
- # Bottom
16
- This shows at bottom, below left and right
17
14
  ```
18
15
  -->
19
16
 
@@ -39,9 +36,6 @@ const props = defineProps({
39
36
  <div class="col-right" :class="props.class">
40
37
  <slot name="right" />
41
38
  </div>
42
- <div class="col-bottom" :class="props.class">
43
- <slot name="bottom" />
44
- </div>
45
39
  </div>
46
40
  </template>
47
41
 
@@ -52,8 +46,7 @@ const props = defineProps({
52
46
  grid-template-rows: repeat(2, 1fr);
53
47
  }
54
48
 
55
- .col-header,
56
- .col-bottom { grid-column: -1/1; }
57
- .col-left,
58
- .col-right { grid-column: span 2; }
49
+ .col-header { grid-area: 1 / 1 / 2 / 3; }
50
+ .col-left { grid-area: 2 / 1 / 3 / 2; }
51
+ .col-right { grid-area: 2 / 2 / 3 / 3; }
59
52
  </style>
package/main.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createApp } from 'vue'
2
- import { createHead } from '@vueuse/head'
2
+ import { createHead } from '@unhead/vue'
3
3
  import App from './App.vue'
4
4
  import setupMain from './setup/main'
5
5
  import { router } from './routes'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
- "version": "0.43.14",
3
+ "version": "0.43.15",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@antfu/utils": "^0.7.6",
23
- "@unocss/reset": "^0.57.2",
23
+ "@unhead/vue": "^1.8.3",
24
+ "@unocss/reset": "^0.57.3",
24
25
  "@vueuse/core": "^10.5.0",
25
- "@vueuse/head": "^2.0.0",
26
26
  "@vueuse/math": "^10.5.0",
27
27
  "@vueuse/motion": "^2.0.0",
28
28
  "codemirror": "^5.65.5",
@@ -39,14 +39,14 @@
39
39
  "prettier": "^3.0.3",
40
40
  "recordrtc": "^5.6.2",
41
41
  "resolve": "^1.22.8",
42
- "unocss": "^0.57.2",
42
+ "unocss": "^0.57.3",
43
43
  "vite-plugin-windicss": "^1.9.1",
44
44
  "vue": "^3.3.8",
45
45
  "vue-router": "^4.2.5",
46
46
  "vue-starport": "^0.4.0",
47
47
  "windicss": "^3.5.6",
48
- "@slidev/parser": "0.43.14",
49
- "@slidev/types": "0.43.14"
48
+ "@slidev/parser": "0.43.15",
49
+ "@slidev/types": "0.43.15"
50
50
  },
51
51
  "devDependencies": {
52
52
  "vite": "^4.5.0"
package/setup/root.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /* __imports__ */
2
2
  import { watch } from 'vue'
3
- import { useHead } from '@vueuse/head'
3
+ import { useHead } from '@unhead/vue'
4
4
  import { nanoid } from 'nanoid'
5
5
  import { configs } from '../env'
6
6
  import { initSharedState, onPatch, patch } from '../state/shared'