vue-codemirror6 1.1.0 → 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 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
@@ -27,25 +27,28 @@ This component can handle bidirectional binding by `v-model` like a general Vue
27
27
 
28
28
  ## Props
29
29
 
30
- | Props | Type | Information |
31
- | ------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
32
- | basic | boolean | Use [basicSetup](https://codemirror.net/docs/ref/#codemirror.basicSetup). |
33
- | minimal | boolean | Use [miniSetup](https://codemirror.net/docs/ref/#codemirror.minimalSetup). If a `basic` prop is also specified, that setting will take precedence. |
34
- | dark | boolean | Toggle Darkmode. |
35
- | placeholder | string | Add placeholder text when blank |
36
- | wrap | boolean | Line text wrapping. see [lineWrapping](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping). |
37
- | tab | boolean | Enables tab indentation. |
38
- | 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. |
39
- | readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
40
- | disabled | boolean | This is the reversed value of the CodeMirror editable. Similar to `readonly`, but setting this value to true disables dragging. |
41
- | lang | LanguageSupport | The language you want to have syntax highlighting. see <https://codemirror.net/6/#languages> |
42
- | phrases | Record&lt;string, string&gt; | Specify here if you want to make the displayed character string multilingual. see <https://codemirror.net/6/examples/translate/> |
43
- | extensions | Extension[] | Includes enhancements to extend CodeMirror. |
44
- | linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
45
- | linterConfig | Object | see <https://codemirror.net/docs/ref/#lint.linter^config> |
46
- | gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
47
- | gutterConfig | Object | see <https://codemirror.net/docs/ref/#lint.lintGutter^config> |
48
- | tag | string | HTML tags used in the component. (Default is `div` tag.) |
30
+ | Props | Type | Information |
31
+ | -------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
32
+ | model-value | string \| Text | Text value. (Not `value`) |
33
+ | basic | boolean | Use [basicSetup](https://codemirror.net/docs/ref/#codemirror.basicSetup). |
34
+ | minimal | boolean | Use [miniSetup](https://codemirror.net/docs/ref/#codemirror.minimalSetup). If a `basic` prop is also specified, that setting will take precedence. |
35
+ | dark | boolean | Toggle Darkmode. |
36
+ | placeholder | string | Add placeholder text (or HTML DOM) when blank |
37
+ | wrap | boolean | Line text wrapping. see [lineWrapping](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping). |
38
+ | tab | boolean | Enables tab indentation. |
39
+ | tab-size | number | Configures the tab size to use in this state. |
40
+ | line-separator | string | Set line break (separetor) char. (Default is `\n`.) |
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. |
42
+ | readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
43
+ | disabled | boolean | This is the reversed value of the CodeMirror editable. Similar to `readonly`, but setting this value to true disables dragging. |
44
+ | lang | LanguageSupport | The language you want to have syntax highlighting. see <https://codemirror.net/6/#languages> |
45
+ | phrases | Record&lt;string, string&gt; | Specify here if you want to make the displayed character string multilingual. see <https://codemirror.net/6/examples/translate/> |
46
+ | extensions | Extension[] | Includes enhancements to extend CodeMirror. |
47
+ | linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
48
+ | linterConfig | Object | see <https://codemirror.net/docs/ref/#lint.linter^config> |
49
+ | gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
50
+ | gutterConfig | Object | see <https://codemirror.net/docs/ref/#lint.lintGutter^config> |
51
+ | tag | string | HTML tags used in the component. (Default is `div` tag.) |
49
52
 
50
53
  ⚠ Notice: `lang` and `linter` can also be set together in `extensions`. These are separated for compatibility with previous versions of CodeMirror settings and for typing props.
51
54
 
@@ -249,13 +252,12 @@ export default defineComponent({
249
252
 
250
253
  ## Events
251
254
 
252
- | Event | Description |
253
- | --------------- | ------------------------------------------------------------------------------------------------------------- |
254
- | ready | When CodeMirror loaded. |
255
- | focus | When focus changed. |
256
- | update | When CodeMirror state changed. Returns [ViewUpdate](https://codemirror.net/docs/ref/#view.ViewUpdate) object. |
257
- | changed | Value changed. (Please implement with `v-model` unless there is a special reason.) |
258
- | 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) |
259
261
 
260
262
  ## Methods
261
263
 
@@ -265,6 +267,7 @@ export default defineComponent({
265
267
  | cursor | Get and set the [cursor](https://codemirror.net/docs/ref/#state.EditorSelection^cursor) location. |
266
268
  | state | Get and set [EditorState](https://codemirror.net/docs/ref/#state.EditorState). |
267
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) |
268
271
 
269
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.
270
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
package/dist/Meta.js ADDED
@@ -0,0 +1,6 @@
1
+ // This file is auto-generated by the build system.
2
+ const meta = {
3
+ version: '1.1.2',
4
+ date: '2022-12-23T18:38:01.605Z',
5
+ };
6
+ export default meta;