@slidev/types 0.33.1 → 0.34.0
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/dist/index.d.ts +12 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Router } from 'vue-router';
|
|
|
7
7
|
import mermaid from 'mermaid';
|
|
8
8
|
import { KatexOptions } from 'katex';
|
|
9
9
|
import { WindiCssOptions } from 'vite-plugin-windicss';
|
|
10
|
+
import { VitePluginConfig } from 'unocss/vite';
|
|
10
11
|
|
|
11
12
|
interface SlidevConfig {
|
|
12
13
|
title: string;
|
|
@@ -157,6 +158,14 @@ interface SlidevConfig {
|
|
|
157
158
|
* @default false
|
|
158
159
|
*/
|
|
159
160
|
remote?: string | boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Engine for atomic CSS
|
|
163
|
+
*
|
|
164
|
+
* UnoCSS support is currently experimental.
|
|
165
|
+
*
|
|
166
|
+
* @default 'windicss'
|
|
167
|
+
*/
|
|
168
|
+
css?: 'windicss' | 'unocss';
|
|
160
169
|
}
|
|
161
170
|
interface FontOptions {
|
|
162
171
|
/**
|
|
@@ -337,16 +346,18 @@ interface ShortcutOptions {
|
|
|
337
346
|
declare type ShikiSetup = (shiki: typeof Shiki) => Awaitable<ShikiOptions | undefined>;
|
|
338
347
|
declare type KatexSetup = () => Awaitable<Partial<KatexOptions> | undefined>;
|
|
339
348
|
declare type WindiSetup = () => Awaitable<Partial<WindiCssOptions> | undefined>;
|
|
349
|
+
declare type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
|
|
340
350
|
declare type MonacoSetup = (m: typeof monaco) => Awaitable<MonacoSetupReturn>;
|
|
341
351
|
declare type AppSetup = (context: AppContext) => Awaitable<void>;
|
|
342
352
|
declare type MermaidSetup = () => Partial<MermaidOptions> | undefined;
|
|
343
353
|
declare type ShortcutsSetup = (nav: NavOperations) => Array<ShortcutOptions>;
|
|
344
354
|
declare function defineShikiSetup(fn: ShikiSetup): ShikiSetup;
|
|
345
355
|
declare function defineWindiSetup(fn: WindiSetup): WindiSetup;
|
|
356
|
+
declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
|
|
346
357
|
declare function defineMonacoSetup(fn: MonacoSetup): MonacoSetup;
|
|
347
358
|
declare function defineAppSetup(fn: AppSetup): AppSetup;
|
|
348
359
|
declare function defineMermaidSetup(fn: MermaidSetup): MermaidSetup;
|
|
349
360
|
declare function defineKatexSetup(fn: KatexSetup): KatexSetup;
|
|
350
361
|
declare function defineShortcutsSetup(fn: ShortcutsSetup): ShortcutsSetup;
|
|
351
362
|
|
|
352
|
-
export { AppContext, AppSetup, DrawingsOptions, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, RenderContext, ResolvedDrawingsOptions, ResolvedFontOptions, ShikiDarkModeThemes, ShikiOptions, ShikiSetup, ShortcutOptions, ShortcutsSetup, SlideInfo, SlideInfoBase, SlideInfoExtended, SlideInfoWithPath, SlidevConfig, SlidevFeatureFlags, SlidevMarkdown, SlidevThemeConfig, SlidevThemeMeta, WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, defineShikiSetup, defineShortcutsSetup, defineWindiSetup };
|
|
363
|
+
export { AppContext, AppSetup, DrawingsOptions, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, RenderContext, ResolvedDrawingsOptions, ResolvedFontOptions, ShikiDarkModeThemes, ShikiOptions, ShikiSetup, ShortcutOptions, ShortcutsSetup, SlideInfo, SlideInfoBase, SlideInfoExtended, SlideInfoWithPath, SlidevConfig, SlidevFeatureFlags, SlidevMarkdown, SlidevThemeConfig, SlidevThemeMeta, UnoSetup, WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup, defineWindiSetup };
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,9 @@ function defineShikiSetup(fn) {
|
|
|
5
5
|
function defineWindiSetup(fn) {
|
|
6
6
|
return fn;
|
|
7
7
|
}
|
|
8
|
+
function defineUnoSetup(fn) {
|
|
9
|
+
return fn;
|
|
10
|
+
}
|
|
8
11
|
function defineMonacoSetup(fn) {
|
|
9
12
|
return fn;
|
|
10
13
|
}
|
|
@@ -28,4 +31,5 @@ function defineShortcutsSetup(fn) {
|
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
|
|
35
|
+
exports.defineAppSetup = defineAppSetup; exports.defineKatexSetup = defineKatexSetup; exports.defineMermaidSetup = defineMermaidSetup; exports.defineMonacoSetup = defineMonacoSetup; exports.defineShikiSetup = defineShikiSetup; exports.defineShortcutsSetup = defineShortcutsSetup; exports.defineUnoSetup = defineUnoSetup; exports.defineWindiSetup = defineWindiSetup;
|
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,9 @@ function defineShikiSetup(fn) {
|
|
|
5
5
|
function defineWindiSetup(fn) {
|
|
6
6
|
return fn;
|
|
7
7
|
}
|
|
8
|
+
function defineUnoSetup(fn) {
|
|
9
|
+
return fn;
|
|
10
|
+
}
|
|
8
11
|
function defineMonacoSetup(fn) {
|
|
9
12
|
return fn;
|
|
10
13
|
}
|
|
@@ -27,5 +30,6 @@ export {
|
|
|
27
30
|
defineMonacoSetup,
|
|
28
31
|
defineShikiSetup,
|
|
29
32
|
defineShortcutsSetup,
|
|
33
|
+
defineUnoSetup,
|
|
30
34
|
defineWindiSetup
|
|
31
35
|
};
|