vue-codemirror6 0.0.5 → 0.3.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.
@@ -0,0 +1,98 @@
1
+ declare const _default: import("vue-demi").DefineComponent<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ theme: {
7
+ type: import("vue-demi").PropType<{
8
+ [selector: string]: import("style-mod").StyleSpec;
9
+ }>;
10
+ default: undefined;
11
+ };
12
+ dark: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ readonly: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ editable: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ extensions: {
25
+ type: import("vue-demi").PropType<import("@codemirror/state").Extension[]>;
26
+ default: undefined;
27
+ };
28
+ phrases: {
29
+ type: import("vue-demi").PropType<Record<string, string>>;
30
+ default: undefined;
31
+ };
32
+ lang: {
33
+ type: import("vue-demi").PropType<import("@codemirror/language").LanguageSupport>;
34
+ default: undefined;
35
+ };
36
+ linter: {
37
+ type: import("vue-demi").PropType<import("@codemirror/lint").Diagnostic[]>;
38
+ default: undefined;
39
+ };
40
+ }, {
41
+ context: import("vue-demi").SetupContext<import("vue-demi").EmitsOptions>;
42
+ editor: import("vue-demi").Ref<Element | undefined>;
43
+ }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, import("vue-demi").EmitsOptions, "update:modelValue" | "update", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
44
+ modelValue: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ theme: {
49
+ type: import("vue-demi").PropType<{
50
+ [selector: string]: import("style-mod").StyleSpec;
51
+ }>;
52
+ default: undefined;
53
+ };
54
+ dark: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ readonly: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ editable: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ extensions: {
67
+ type: import("vue-demi").PropType<import("@codemirror/state").Extension[]>;
68
+ default: undefined;
69
+ };
70
+ phrases: {
71
+ type: import("vue-demi").PropType<Record<string, string>>;
72
+ default: undefined;
73
+ };
74
+ lang: {
75
+ type: import("vue-demi").PropType<import("@codemirror/language").LanguageSupport>;
76
+ default: undefined;
77
+ };
78
+ linter: {
79
+ type: import("vue-demi").PropType<import("@codemirror/lint").Diagnostic[]>;
80
+ default: undefined;
81
+ };
82
+ }>>, {
83
+ modelValue: string;
84
+ theme: {
85
+ [selector: string]: import("style-mod").StyleSpec;
86
+ };
87
+ dark: boolean;
88
+ readonly: boolean;
89
+ editable: boolean;
90
+ extensions: import("@codemirror/state").Extension[];
91
+ phrases: Record<string, string>;
92
+ lang: import("@codemirror/language").LanguageSupport;
93
+ linter: import("@codemirror/lint").Diagnostic[];
94
+ }> | {
95
+ install: (app: any) => void;
96
+ };
97
+ export default _default;
98
+ //# sourceMappingURL=index.esm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.d.ts","sourceRoot":"","sources":["../src/index.esm.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAoBK"}
@@ -0,0 +1,9 @@
1
+ import type { ViewUpdate } from '@codemirror/view';
2
+ /** Emit Interface */
3
+ export default interface CodeMirrorEmitsInterface {
4
+ /** Model Update */
5
+ (e: 'update:modelValue', value: string): void;
6
+ /** CodeMirror ViewUpdate */
7
+ (e: 'update', value: ViewUpdate): void;
8
+ }
9
+ //# sourceMappingURL=CodeMirrorEmitsInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeMirrorEmitsInterface.d.ts","sourceRoot":"","sources":["../../src/interfaces/CodeMirrorEmitsInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,qBAAqB;AACrB,MAAM,CAAC,OAAO,WAAW,wBAAwB;IAC/C,mBAAmB;IACnB,CAAC,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,4BAA4B;IAC5B,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACxC"}
@@ -0,0 +1,56 @@
1
+ import type { LanguageSupport } from '@codemirror/language';
2
+ import type { Extension } from '@codemirror/state';
3
+ import type { Diagnostic } from '@codemirror/lint';
4
+ import type { StyleSpec } from 'style-mod';
5
+ /** Prop Interface */
6
+ export default interface CodeMirrorPropsInterface {
7
+ /** Model value */
8
+ modelValue: string;
9
+ /**
10
+ * Theme
11
+ *
12
+ * @see {@link https://codemirror.net/6/examples/styling/ | Example: Styling}
13
+ */
14
+ theme?: {
15
+ [selector: string]: StyleSpec;
16
+ };
17
+ /** Dark Mode */
18
+ dark?: boolean;
19
+ /**
20
+ * Readonly
21
+ *
22
+ * @see {@link https://codemirror.net/6/docs/ref/#state.EditorState%5EreadOnly | readOnly}
23
+ */
24
+ readonly?: boolean;
25
+ /**
26
+ * Editable
27
+ *
28
+ * @see {@link https://codemirror.net/6/docs/ref/#view.EditorView%5Eeditable | editable}
29
+ */
30
+ editable?: boolean;
31
+ /**
32
+ * Additional Extension
33
+ *
34
+ * @see {@link https://codemirror.net/6/docs/ref/#state.Extension | Extending Editor State}
35
+ */
36
+ extensions?: Extension[];
37
+ /**
38
+ * Language Phreses
39
+ *
40
+ * @see {@link https://codemirror.net/6/examples/translate/ | Example: Internationalization}
41
+ */
42
+ phrases?: Record<string, string>;
43
+ /**
44
+ * CodeMirror Language
45
+ *
46
+ * @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
47
+ */
48
+ lang?: LanguageSupport;
49
+ /**
50
+ * CodeMirror Linter
51
+ *
52
+ * @see {@link https://codemirror.net/6/docs/ref/#lint | @codemirror/lint}
53
+ */
54
+ linter?: Diagnostic[];
55
+ }
56
+ //# sourceMappingURL=CodeMirrorPropsInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeMirrorPropsInterface.d.ts","sourceRoot":"","sources":["../../src/interfaces/CodeMirrorPropsInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAqB;AACrB,MAAM,CAAC,OAAO,WAAW,wBAAwB;IAC/C,kBAAkB;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC1C,gBAAgB;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACvB"}