vue-codemirror6 1.1.1 → 1.1.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/CHANGELOG.md +14 -0
- package/README.md +10 -9
- package/dist/Meta.d.ts +3 -3
- package/dist/Meta.js +6 -0
- package/dist/components/CodeMirror.d.ts +417 -438
- package/dist/components/CodeMirror.d.ts.map +1 -1
- package/dist/components/CodeMirror.js +494 -0
- package/dist/helpers/h-demi.d.ts +18 -18
- package/dist/helpers/h-demi.js +27 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +27 -13
- package/dist/index.iife.js +36 -18
- package/dist/index.js +11 -0
- package/dist/index.umd.js +38 -20
- package/dist/interfaces/MetaInterface.d.ts +7 -7
- package/dist/interfaces/MetaInterface.js +1 -0
- package/package.json +33 -39
- package/src/components/CodeMirror.ts +50 -27
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [1.1.2](https://github.com/logue/vue-codemirror6/compare/1.1.1...1.1.2)
|
|
8
|
+
|
|
9
|
+
- Minor fix. [`d1e3118`](https://github.com/logue/vue-codemirror6/commit/d1e3118ca2f2efe4d63f64e505d8a01a7c29a104)
|
|
10
|
+
- Update dependencies. [`d747a21`](https://github.com/logue/vue-codemirror6/commit/d747a21778b42ed12921dd468a91a910895925e8)
|
|
11
|
+
- Matched tsconfig to vue's standard settings as much as possible. [`59d16b1`](https://github.com/logue/vue-codemirror6/commit/59d16b1b1bfa27a0447da04404cf840f856adefd)
|
|
12
|
+
|
|
13
|
+
#### [1.1.1](https://github.com/logue/vue-codemirror6/compare/1.1.0...1.1.1)
|
|
14
|
+
|
|
15
|
+
> 7 November 2022
|
|
16
|
+
|
|
17
|
+
- Fixed Markdown demo. [`399f32c`](https://github.com/logue/vue-codemirror6/commit/399f32c95440b24c253110670d46811673cf38bd)
|
|
18
|
+
- Fix cross-binding not works. [`137765b`](https://github.com/logue/vue-codemirror6/commit/137765b23c0b27ba3c4784d0708ee7172c94083a)
|
|
19
|
+
- Fixed taking URL class from other than node when building docs. [`fbf1d56`](https://github.com/logue/vue-codemirror6/commit/fbf1d56296b4b739b7ff84107ec33eb3681a0398)
|
|
20
|
+
|
|
7
21
|
#### [1.1.0](https://github.com/logue/vue-codemirror6/compare/1.0.3...1.1.0)
|
|
8
22
|
|
|
9
23
|
> 31 October 2022
|
package/README.md
CHANGED
|
@@ -29,14 +29,15 @@ This component can handle bidirectional binding by `v-model` like a general Vue
|
|
|
29
29
|
|
|
30
30
|
| Props | Type | Information |
|
|
31
31
|
| -------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
32
|
+
| model-value | string \| Text | Text value. (Not `value`) |
|
|
32
33
|
| basic | boolean | Use [basicSetup](https://codemirror.net/docs/ref/#codemirror.basicSetup). |
|
|
33
34
|
| minimal | boolean | Use [miniSetup](https://codemirror.net/docs/ref/#codemirror.minimalSetup). If a `basic` prop is also specified, that setting will take precedence. |
|
|
34
35
|
| dark | boolean | Toggle Darkmode. |
|
|
35
|
-
| placeholder | string | Add placeholder text when blank
|
|
36
|
+
| placeholder | string | Add placeholder text (or HTML DOM) when blank |
|
|
36
37
|
| wrap | boolean | Line text wrapping. see [lineWrapping](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping). |
|
|
37
38
|
| tab | boolean | Enables tab indentation. |
|
|
38
39
|
| tab-size | number | Configures the tab size to use in this state. |
|
|
39
|
-
| line-separator | string | Set line break (separetor) char.
|
|
40
|
+
| line-separator | string | Set line break (separetor) char. (Default is `\n`.) |
|
|
40
41
|
| theme | { [selector: string]: StyleSpec } | Specify the theme. For example, if you use [@codemirror/theme-one-dark](https://github.com/codemirror/theme-one-dark), import `oneDark` and put it in this prop. |
|
|
41
42
|
| readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
|
|
42
43
|
| disabled | boolean | This is the reversed value of the CodeMirror editable. Similar to `readonly`, but setting this value to true disables dragging. |
|
|
@@ -251,13 +252,12 @@ export default defineComponent({
|
|
|
251
252
|
|
|
252
253
|
## Events
|
|
253
254
|
|
|
254
|
-
| Event
|
|
255
|
-
|
|
|
256
|
-
| ready
|
|
257
|
-
| focus
|
|
258
|
-
| update
|
|
259
|
-
|
|
|
260
|
-
| diagnosticCount | Returns the number of active lint diagnostics in the given state. (Only when `linter` prop is specified) |
|
|
255
|
+
| Event | Description |
|
|
256
|
+
| ------ | ------------------------------------------------------------------------------------------------------------- |
|
|
257
|
+
| ready | When CodeMirror loaded. |
|
|
258
|
+
| focus | When focus changed. |
|
|
259
|
+
| update | When CodeMirror state changed. Returns [ViewUpdate](https://codemirror.net/docs/ref/#view.ViewUpdate) object. |
|
|
260
|
+
| change | Value changed. Returns [EditorState](https://codemirror.net/docs/ref/#state.EditorState) |
|
|
261
261
|
|
|
262
262
|
## Methods
|
|
263
263
|
|
|
@@ -267,6 +267,7 @@ export default defineComponent({
|
|
|
267
267
|
| cursor | Get and set the [cursor](https://codemirror.net/docs/ref/#state.EditorSelection^cursor) location. |
|
|
268
268
|
| state | Get and set [EditorState](https://codemirror.net/docs/ref/#state.EditorState). |
|
|
269
269
|
| focus | Get and set [focus](https://codemirror.net/docs/ref/#view.EditorView.focus). |
|
|
270
|
+
| lint | Force run linter (Only if `linter` prop is specified) |
|
|
270
271
|
|
|
271
272
|
The instructions below are compatible methods for those familiar with [codemirror5](https://codemirror.net/5/). Since the above method is usually sufficient, its active use is not recommended.
|
|
272
273
|
|
package/dist/Meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type MetaInterface from '@/interfaces/MetaInterface';
|
|
2
|
-
declare const meta: MetaInterface;
|
|
3
|
-
export default meta;
|
|
1
|
+
import type MetaInterface from '@/interfaces/MetaInterface';
|
|
2
|
+
declare const meta: MetaInterface;
|
|
3
|
+
export default meta;
|
|
4
4
|
//# sourceMappingURL=Meta.d.ts.map
|