@slidev/client 0.48.0-beta.25 → 0.48.0-beta.26
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/composables/useDarkMode.ts +9 -0
- package/context.ts +5 -0
- package/index.ts +12 -0
- package/package.json +5 -3
package/context.ts
CHANGED
|
@@ -41,6 +41,9 @@ export function useSlideContext() {
|
|
|
41
41
|
|
|
42
42
|
export type SlideContext = ReturnType<typeof useSlideContext>
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
44
47
|
export function provideFrontmatter(frontmatter: Record<string, any>) {
|
|
45
48
|
provideLocal(injectionFrontmatter, frontmatter)
|
|
46
49
|
|
|
@@ -63,6 +66,8 @@ export function provideFrontmatter(frontmatter: Record<string, any>) {
|
|
|
63
66
|
/**
|
|
64
67
|
* Convert frontmatter options to props for v-bind
|
|
65
68
|
* It removes known options fields, and expose an extra `frontmatter` field that contains full frontmatter
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
66
71
|
*/
|
|
67
72
|
export function frontmatterToProps(frontmatter: Record<string, any>, pageNo: number) {
|
|
68
73
|
return {
|
package/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is the public APIs that you might use in your app.
|
|
3
|
+
*
|
|
4
|
+
* The other files despite they are accessable, are not meant to be used directly, breaking changes might happen.
|
|
5
|
+
*/
|
|
6
|
+
export { useSlideContext } from './context'
|
|
7
|
+
export { useNav } from './composables/useNav'
|
|
8
|
+
export { useDrawings } from './composables/useDrawings'
|
|
9
|
+
export { useDarkMode } from './composables/useDarkMode'
|
|
10
|
+
|
|
11
|
+
export * from './layoutHelper'
|
|
12
|
+
export * from './env'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.48.0-beta.
|
|
4
|
+
"version": "0.48.0-beta.26",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
15
15
|
"exports": {
|
|
16
|
+
".": "./index.ts",
|
|
16
17
|
"./package.json": "./package.json",
|
|
17
18
|
"./constants": "./constants.ts",
|
|
18
19
|
"./context": "./context.ts",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"./utils": "./utils.ts",
|
|
23
24
|
"./*": "./*"
|
|
24
25
|
},
|
|
26
|
+
"main": "./public.ts",
|
|
25
27
|
"engines": {
|
|
26
28
|
"node": ">=18.0.0"
|
|
27
29
|
},
|
|
@@ -58,8 +60,8 @@
|
|
|
58
60
|
"vue": "^3.4.21",
|
|
59
61
|
"vue-demi": "^0.14.7",
|
|
60
62
|
"vue-router": "^4.3.0",
|
|
61
|
-
"@slidev/
|
|
62
|
-
"@slidev/
|
|
63
|
+
"@slidev/types": "0.48.0-beta.26",
|
|
64
|
+
"@slidev/parser": "0.48.0-beta.26"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
67
|
"vite": "^5.1.5"
|