@kernelift/markdown 1.0.1 → 1.0.2

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 CHANGED
@@ -3,16 +3,14 @@ import { ComponentProvideOptions } from 'vue';
3
3
  import { default as default_2 } from 'markdown-it';
4
4
  import { DefineComponent } from 'vue';
5
5
  import { Options as MarkdownItOptions } from 'markdown-it';
6
- import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
7
6
  import { PublicProps } from 'vue';
8
7
  import { ShallowRef } from 'vue';
9
- import { WritableComputedRef } from 'vue';
10
8
 
11
9
  declare type __VLS_Props = {
12
- modelValue?: string;
13
- options?: EditorOptions;
14
- forceOptions?: monaco.editor.IStandaloneEditorConstructionOptions;
15
- actions?: EditorAction[];
10
+ modelValue: string;
11
+ plugins?: Array<any>;
12
+ options?: MarkdownItOptions;
13
+ messager?: any;
16
14
  };
17
15
 
18
16
  declare type __VLS_Props_2 = {
@@ -24,50 +22,14 @@ declare type __VLS_Props_2 = {
24
22
 
25
23
  declare type __VLS_PublicProps = {
26
24
  modelValue?: string;
27
- } & __VLS_Props_2;
28
-
29
- export declare interface EditorAction {
30
- id: string;
31
- label: string;
32
- groupId: string;
33
- handler: () => void;
34
- }
25
+ } & __VLS_Props;
35
26
 
36
- export declare interface EditorOptions {
37
- readonly?: boolean;
38
- language?: string;
39
- theme?: string;
40
- minimap?: boolean;
41
- scrollbarSize?: number;
42
- wordWrap?: 'off' | 'on' | 'wordWrapColumn' | 'bounded' | undefined;
43
- automaticLayout?: boolean;
44
- autoIndent?: 'none' | 'keep' | 'brackets' | 'advanced' | 'full' | undefined;
45
- selectOnLineNumbers?: boolean;
46
- roundedSelection?: boolean;
47
- readOnly?: boolean;
48
- cursorStyle?: 'line' | 'block' | 'underline' | 'line-thin' | 'block-outline' | 'underline-thin' | undefined;
49
- glyphMargin?: boolean;
50
- useTabStops?: boolean;
51
- fontSize?: number;
52
- [key: string]: any;
53
- }
27
+ declare type __VLS_PublicProps_2 = {
28
+ modelValue?: string;
29
+ } & __VLS_Props_2;
54
30
 
55
31
  export { MarkdownItOptions }
56
32
 
57
- export declare const MdEditor: DefineComponent<__VLS_Props, {
58
- monacoEditor: ShallowRef<monaco.editor.IStandaloneCodeEditor | undefined, monaco.editor.IStandaloneCodeEditor | undefined>;
59
- textValue: WritableComputedRef<string, string>;
60
- execMethods: (fn: (editor: monaco.editor.IStandaloneCodeEditor) => void) => void;
61
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
62
- "update:modelValue": (...args: any[]) => void;
63
- editorScroll: (...args: any[]) => void;
64
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
65
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
- onEditorScroll?: ((...args: any[]) => any) | undefined;
67
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
68
- containerRef: HTMLDivElement;
69
- }, HTMLDivElement>;
70
-
71
33
  export declare const MdRender: DefineComponent<__VLS_PublicProps, {
72
34
  renderInstance: ShallowRef<default_2 | undefined, default_2 | undefined>;
73
35
  execMethods: (fn: (renderInstance: default_2) => void) => void;
@@ -76,8 +38,23 @@ execMethods: (fn: (renderInstance: default_2) => void) => void;
76
38
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
77
39
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
78
40
  }>, {
41
+ plugins: Array<any>;
79
42
  options: MarkdownItOptions;
43
+ messager: any;
44
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
45
+ containerRef: HTMLDivElement;
46
+ }, HTMLElement>;
47
+
48
+ export declare const MdRenderSimple: DefineComponent<__VLS_PublicProps_2, {
49
+ renderInstance: ShallowRef<default_2 | undefined, default_2 | undefined>;
50
+ execMethods: (fn: (renderInstance: default_2) => void) => void;
51
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
52
+ "update:modelValue": (value: string) => any;
53
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
54
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
+ }>, {
80
56
  plugins: Array<any>;
57
+ options: MarkdownItOptions;
81
58
  messager: any;
82
59
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
83
60
  containerRef: HTMLDivElement;