@deot/docs-markdown 1.0.1
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/README.md +145 -0
- package/dist/index.cjs +827 -0
- package/dist/index.d.ts +77 -0
- package/dist/index.js +798 -0
- package/dist/index.style.css +1 -0
- package/package.json +36 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import type { Language } from '@deot/docs-locale';
|
|
5
|
+
import type { PlaygroundFiles } from '@deot/docs-playground';
|
|
6
|
+
import type { PlaygroundOptions } from '@deot/docs-playground';
|
|
7
|
+
import type { PlaygroundPreviewOptions } from '@deot/docs-playground';
|
|
8
|
+
import type { PlaygroundView } from '@deot/docs-playground';
|
|
9
|
+
import type { PlaygroundViewport } from '@deot/docs-playground';
|
|
10
|
+
import { PublicProps } from 'vue';
|
|
11
|
+
|
|
12
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
change: (value: string) => any;
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
15
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onChange?: ((value: string) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
indicator: MarkdownIndicatorConfig;
|
|
20
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
|
|
22
|
+
declare type __VLS_Props = {
|
|
23
|
+
indicator?: MarkdownIndicatorConfig;
|
|
24
|
+
locale?: Language;
|
|
25
|
+
modelValue?: string;
|
|
26
|
+
value?: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export declare const Markdown: typeof __VLS_export;
|
|
30
|
+
|
|
31
|
+
export declare type MarkdownIndicatorConfig = boolean | MarkdownIndicatorOptions;
|
|
32
|
+
|
|
33
|
+
export declare interface MarkdownIndicatorOptions {
|
|
34
|
+
draggable?: boolean;
|
|
35
|
+
height?: number | string;
|
|
36
|
+
preview?: boolean;
|
|
37
|
+
position?: 'left' | 'right';
|
|
38
|
+
top?: number | string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare interface MarkdownPlaygroundConfig {
|
|
42
|
+
entry?: string;
|
|
43
|
+
views?: PlaygroundView[];
|
|
44
|
+
viewport?: PlaygroundViewport;
|
|
45
|
+
viewportOptions?: PlaygroundViewport[];
|
|
46
|
+
styleless?: boolean;
|
|
47
|
+
options?: PlaygroundOptions;
|
|
48
|
+
previewOptions?: PlaygroundPreviewOptions;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare interface MarkdownPlaygroundFilesMount {
|
|
52
|
+
files: PlaygroundFiles;
|
|
53
|
+
entry?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare interface MarkdownPlaygroundModelMount {
|
|
57
|
+
modelValue?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare type MarkdownPlaygroundMountProps = MarkdownPlaygroundFilesMount | MarkdownPlaygroundModelMount;
|
|
61
|
+
|
|
62
|
+
export declare interface MarkdownSearchDocument {
|
|
63
|
+
title: string;
|
|
64
|
+
text: string;
|
|
65
|
+
sections: MarkdownSearchSection[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare interface MarkdownSearchSection {
|
|
69
|
+
title: string;
|
|
70
|
+
anchor: string;
|
|
71
|
+
level: number;
|
|
72
|
+
text: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export declare const parseMarkdownSearchSections: (content: string) => MarkdownSearchDocument;
|
|
76
|
+
|
|
77
|
+
export { }
|