@slidev/client 0.40.13 → 0.40.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/env.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { SlidevConfig } from '@slidev/types'
2
2
  import { computed } from 'vue'
3
3
  import { objectMap } from '@antfu/utils'
4
+
4
5
  // @ts-expect-error missing types
5
6
  import _configs from '/@slidev/configs'
6
7
 
@@ -29,7 +29,9 @@ document.body.appendChild(styleObject)
29
29
  function lang() {
30
30
  switch (props.lang) {
31
31
  case 'ts':
32
+ case 'tsx':
32
33
  return 'typescript'
34
+ case 'jsx':
33
35
  case 'js':
34
36
  return 'javascript'
35
37
  default:
@@ -107,6 +107,7 @@ watch(activeElement, () => {
107
107
  id="slidev-goto-dialog"
108
108
  ref="container"
109
109
  class="fixed right-5 transition-all"
110
+ w-90
110
111
  :class="showGotoDialog ? 'top-5' : '-top-20'"
111
112
  >
112
113
  <div
@@ -8,6 +8,7 @@ import { configs } from '../env'
8
8
  import Settings from './Settings.vue'
9
9
  import MenuButton from './MenuButton.vue'
10
10
  import VerticalDivider from './VerticalDivider.vue'
11
+
11
12
  // @ts-expect-error virtual module
12
13
  import CustomNavControls from '/@slidev/custom-nav-controls'
13
14
 
@@ -8,8 +8,10 @@ import { configs, slideHeight, slideWidth } from '../env'
8
8
  import { getSlideClass } from '../utils'
9
9
  import type { SlidevContextNav } from '../modules/context'
10
10
  import SlideWrapper from './SlideWrapper'
11
+
11
12
  // @ts-expect-error virtual module
12
13
  import GlobalTop from '/@slidev/global-components/top'
14
+
13
15
  // @ts-expect-error virtual module
14
16
  import GlobalBottom from '/@slidev/global-components/bottom'
15
17
 
@@ -3,8 +3,10 @@ import { computed, shallowRef, watch } from 'vue'
3
3
  import { clicks, currentRoute, isPresenter, nextRoute, rawRoutes, transition } from '../logic/nav'
4
4
  import { getSlideClass } from '../utils'
5
5
  import SlideWrapper from './SlideWrapper'
6
+
6
7
  // @ts-expect-error virtual module
7
8
  import GlobalTop from '/@slidev/global-components/top'
9
+
8
10
  // @ts-expect-error virtual module
9
11
  import GlobalBottom from '/@slidev/global-components/bottom'
10
12
  import PresenterMouse from './PresenterMouse.vue'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
- "version": "0.40.13",
3
+ "version": "0.40.15",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@antfu/utils": "^0.7.2",
19
- "@unocss/reset": "^0.51.4",
19
+ "@unocss/reset": "^0.51.5",
20
20
  "@vueuse/core": "^10.0.2",
21
21
  "@vueuse/head": "^1.1.26",
22
22
  "@vueuse/math": "^10.0.2",
@@ -35,16 +35,16 @@
35
35
  "prettier": "^2.8.7",
36
36
  "recordrtc": "^5.6.2",
37
37
  "resolve": "^1.22.2",
38
- "unocss": "^0.51.4",
38
+ "unocss": "^0.51.5",
39
39
  "vite-plugin-windicss": "^1.8.10",
40
40
  "vue": "^3.2.47",
41
41
  "vue-router": "^4.1.6",
42
42
  "vue-starport": "^0.3.0",
43
43
  "windicss": "^3.5.6",
44
- "@slidev/parser": "0.40.13",
45
- "@slidev/types": "0.40.13"
44
+ "@slidev/parser": "0.40.15",
45
+ "@slidev/types": "0.40.15"
46
46
  },
47
47
  "devDependencies": {
48
- "vite": "^4.2.2"
48
+ "vite": "^4.3.0"
49
49
  }
50
50
  }
package/routes.ts CHANGED
@@ -3,8 +3,10 @@ import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router
3
3
  import type { TransitionGroupProps } from 'vue'
4
4
  import Play from './internals/Play.vue'
5
5
  import Print from './internals/Print.vue'
6
+
6
7
  // @ts-expect-error missing types
7
8
  import _rawRoutes from '/@slidev/routes'
9
+
8
10
  // @ts-expect-error missing types
9
11
  import _configs from '/@slidev/configs'
10
12