vue-codemirror6 1.1.1 → 1.1.3

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,28 @@ 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.3](https://github.com/logue/vue-codemirror6/compare/1.1.2...1.1.3)
8
+
9
+ - Bump json5 from 1.0.1 to 1.0.2 [`#10`](https://github.com/logue/vue-codemirror6/pull/10)
10
+ - Consolidated demo code generation settings into a single vite.config.ts [`7fe3ad2`](https://github.com/logue/vue-codemirror6/commit/7fe3ad25676eb34844b7bfe64b5dc73f30211a5b)
11
+ - Update dependencies. [`75b984e`](https://github.com/logue/vue-codemirror6/commit/75b984e38c13114ce30b853fba64493c55368be3)
12
+
13
+ #### [1.1.2](https://github.com/logue/vue-codemirror6/compare/1.1.1...1.1.2)
14
+
15
+ > 24 December 2022
16
+
17
+ - Update CHANGELOG.md. [`72efba5`](https://github.com/logue/vue-codemirror6/commit/72efba5e9e272da2dcb3bd941079ee415d1b4c53)
18
+ - Minor fix. [`d1e3118`](https://github.com/logue/vue-codemirror6/commit/d1e3118ca2f2efe4d63f64e505d8a01a7c29a104)
19
+ - Update dependencies. [`d747a21`](https://github.com/logue/vue-codemirror6/commit/d747a21778b42ed12921dd468a91a910895925e8)
20
+
21
+ #### [1.1.1](https://github.com/logue/vue-codemirror6/compare/1.1.0...1.1.1)
22
+
23
+ > 7 November 2022
24
+
25
+ - Fixed Markdown demo. [`399f32c`](https://github.com/logue/vue-codemirror6/commit/399f32c95440b24c253110670d46811673cf38bd)
26
+ - Fix cross-binding not works. [`137765b`](https://github.com/logue/vue-codemirror6/commit/137765b23c0b27ba3c4784d0708ee7172c94083a)
27
+ - Fixed taking URL class from other than node when building docs. [`fbf1d56`](https://github.com/logue/vue-codemirror6/commit/fbf1d56296b4b739b7ff84107ec33eb3681a0398)
28
+
7
29
  #### [1.1.0](https://github.com/logue/vue-codemirror6/compare/1.0.3...1.1.0)
8
30
 
9
31
  > 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 | Description |
255
- | --------------- | ------------------------------------------------------------------------------------------------------------- |
256
- | ready | When CodeMirror loaded. |
257
- | focus | When focus changed. |
258
- | update | When CodeMirror state changed. Returns [ViewUpdate](https://codemirror.net/docs/ref/#view.ViewUpdate) object. |
259
- | changed | Value changed. (Please implement with `v-model` unless there is a special reason.) |
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
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.3',
4
+ date: '2023-01-09T00:45:11.835Z',
5
+ };
6
+ export default meta;