vue-codemirror6 1.5.1 → 1.5.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,308 +4,322 @@ 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.5.0](https://github.com/logue/vue-codemirror6/compare/1.4.3...1.5.0)
7
+ #### [1.5.2](https://github.com/logue/vue-codemirror6.git/compare/1.5.1...1.5.2)
8
8
 
9
- - Add AI instructions. [`75fecba`](https://github.com/logue/vue-codemirror6/commit/75fecba1d79bbd308864dbbfb5884026c1c20be6)
10
- - Fixed warnings output during the build process. [`4721a8d`](https://github.com/logue/vue-codemirror6/commit/4721a8d94faf0a32c5a7b2459f989e361acb0a27)
11
- - Update Dependencies. [`c8c3d2a`](https://github.com/logue/vue-codemirror6/commit/c8c3d2a23ef8eecc6ab28d42d53bdc7f457ceac5)
9
+ - Add AGENT.md. [`5514bf3`](https://github.com/logue/vue-codemirror6.git/commit/5514bf3664c4d1f5fdab926449780079362bc03b)
10
+ - Vulnerability response [`461d0b1`](https://github.com/logue/vue-codemirror6.git/commit/461d0b1e82c49088ffb0775310f01b2fb63b991c)
11
+ - Update dependencies. [`c8ef924`](https://github.com/logue/vue-codemirror6.git/commit/c8ef9247ec878390640c050c7e499ef508091354)
12
12
 
13
- #### [1.4.3](https://github.com/logue/vue-codemirror6/compare/1.4.2...1.4.3)
13
+ #### [1.5.1](https://github.com/logue/vue-codemirror6.gitcompare/1.5.0...1.5.1)
14
+
15
+ > 3 April 2026
16
+
17
+ - Fixed index.d.ts path. [`eed7df2`](https://github.com/logue/vue-codemirror6.git/commit/eed7df2e5dfc2310415e4b6c9e1f1a9cb3e32b3f)
18
+
19
+ #### [1.5.0](https://github.com/logue/vue-codemirror6.git/compare/1.4.3...1.5.0)
20
+
21
+ > 30 March 2026
22
+
23
+ - Add AI instructions. [`75fecba`](https://github.com/logue/vue-codemirror6.git/commit/75fecba1d79bbd308864dbbfb5884026c1c20be6)
24
+ - Fixed warnings output during the build process. [`4721a8d`](https://github.com/logue/vue-codemirror6.git/commit/4721a8d94faf0a32c5a7b2459f989e361acb0a27)
25
+ - Update Dependencies. [`c8c3d2a`](https://github.com/logue/vue-codemirror6.git/commit/c8c3d2a23ef8eecc6ab28d42d53bdc7f457ceac5)
26
+
27
+ #### [1.4.3](https://github.com/logue/vue-codemirror6.git/compare/1.4.2...1.4.3)
14
28
 
15
29
  > 5 March 2026
16
30
 
17
- - Replace eslint-plugin-import to eslint-plugin-x. [`e46491a`](https://github.com/logue/vue-codemirror6/commit/e46491a24270f8ea392a3354bbecbaf7092f8ef9)
18
- - Add Japanese Readme. [`e279cc0`](https://github.com/logue/vue-codemirror6/commit/e279cc0e1b23bba6c1dd690fb6a963b82e8508f6)
19
- - Update ChangeLog/ [`8648633`](https://github.com/logue/vue-codemirror6/commit/86486330c50af4c4c13eeabcc3b6a498ab8a65d1)
31
+ - Replace eslint-plugin-import to eslint-plugin-x. [`e46491a`](https://github.com/logue/vue-codemirror6.git/commit/e46491a24270f8ea392a3354bbecbaf7092f8ef9)
32
+ - Add Japanese Readme. [`e279cc0`](https://github.com/logue/vue-codemirror6.git/commit/e279cc0e1b23bba6c1dd690fb6a963b82e8508f6)
33
+ - Update ChangeLog/ [`8648633`](https://github.com/logue/vue-codemirror6.git/commit/86486330c50af4c4c13eeabcc3b6a498ab8a65d1)
20
34
 
21
- #### [1.4.2](https://github.com/logue/vue-codemirror6/compare/1.4.0...1.4.2)
35
+ #### [1.4.2](https://github.com/logue/vue-codemirror6.git/compare/1.4.0...1.4.2)
22
36
 
23
37
  > 17 February 2026
24
38
 
25
- - Move the contents of Codemirror.ts to index.ts. [`d9a624b`](https://github.com/logue/vue-codemirror6/commit/d9a624bbe61034b2a5abe553b0e362818ea8e91b)
26
- - Fixed dark mode in demo program. [`dd54015`](https://github.com/logue/vue-codemirror6/commit/dd54015c8ebb11cf24dd8d5b38e1e35e00ed56b5)
27
- - Add oxilint. [`abb115e`](https://github.com/logue/vue-codemirror6/commit/abb115edd0bcafd641c4a7b35af566bdb1630334)
39
+ - Move the contents of Codemirror.ts to index.ts. [`d9a624b`](https://github.com/logue/vue-codemirror6.git/commit/d9a624bbe61034b2a5abe553b0e362818ea8e91b)
40
+ - Fixed dark mode in demo program. [`dd54015`](https://github.com/logue/vue-codemirror6.git/commit/dd54015c8ebb11cf24dd8d5b38e1e35e00ed56b5)
41
+ - Add oxilint. [`abb115e`](https://github.com/logue/vue-codemirror6.git/commit/abb115edd0bcafd641c4a7b35af566bdb1630334)
28
42
 
29
- #### [1.4.0](https://github.com/logue/vue-codemirror6/compare/1.3.13...1.4.0)
43
+ #### [1.4.0](https://github.com/logue/vue-codemirror6.gi/compare/1.3.13...1.4.0)
30
44
 
31
45
  > 17 October 2025
32
46
 
33
- - fix: full example link [`#58`](https://github.com/logue/vue-codemirror6/pull/58)
34
- - Update dependencies. [`985f36f`](https://github.com/logue/vue-codemirror6/commit/985f36f23c4fc1b562b53b664deb7ff1eec79989)
35
- - Reviewed dependencies. Moved them to peerDependencies and relaxed the version requirements. [`1ffab22`](https://github.com/logue/vue-codemirror6/commit/1ffab224a4274e142449e74abc71a988f6ad8d1c)
36
- - Update vue, codemirror. [`bfbd153`](https://github.com/logue/vue-codemirror6/commit/bfbd153eeec6c718b95bb719117ad5a02dcf6a37)
47
+ - fix: full example link [`#58`](https://github.com/logue/vue-codemirror6.git/pull/58)
48
+ - Update dependencies. [`985f36f`](https://github.com/logue/vue-codemirror6.git/commit/985f36f23c4fc1b562b53b664deb7ff1eec79989)
49
+ - Reviewed dependencies. Moved them to peerDependencies and relaxed the version requirements. [`1ffab22`](https://github.com/logue/vue-codemirror6.git/commit/1ffab224a4274e142449e74abc71a988f6ad8d1c)
50
+ - Update vue, codemirror. [`bfbd153`](https://github.com/logue/vue-codemirror6.git/commit/bfbd153eeec6c718b95bb719117ad5a02dcf6a37)
37
51
 
38
- #### [1.3.13](https://github.com/logue/vue-codemirror6/compare/1.3.8...1.3.13)
52
+ #### [1.3.13](https://github.com/logue/vue-codemirror6.git/compare/1.3.8...1.3.13)
39
53
 
40
54
  > 31 March 2025
41
55
 
42
- - Rewrite to eslint.config.ts [`841f686`](https://github.com/logue/vue-codemirror6/commit/841f686ebab5f542a5b7bc1569660ce58a21af65)
43
- - Fixed types path. [`2b86b2c`](https://github.com/logue/vue-codemirror6/commit/2b86b2c4da906f4591e13221e5c41e52b8792523)
44
- - Update @codemirror/language, @codemirror/lint, @codemirror/state, @codemirror/view. [`916fa98`](https://github.com/logue/vue-codemirror6/commit/916fa9899e7c3806199f53bddb210d3cba9e7517)
56
+ - Rewrite to eslint.config.ts [`841f686`](https://github.com/logue/vue-codemirror6.git/commit/841f686ebab5f542a5b7bc1569660ce58a21af65)
57
+ - Fixed types path. [`2b86b2c`](https://github.com/logue/vue-codemirror6.git/commit/2b86b2c4da906f4591e13221e5c41e52b8792523)
58
+ - Update @codemirror/language, @codemirror/lint, @codemirror/state, @codemirror/view. [`916fa98`](https://github.com/logue/vue-codemirror6.git/commit/916fa9899e7c3806199f53bddb210d3cba9e7517)
45
59
 
46
- #### [1.3.8](https://github.com/logue/vue-codemirror6/compare/1.1.16...1.3.8)
60
+ #### [1.3.8](https://github.com/logue/vue-codemirror6.git/compare/1.1.16...1.3.8)
47
61
 
48
62
  > 22 November 2024
49
63
 
50
- - Fix sample code syntax error [`#47`](https://github.com/logue/vue-codemirror6/pull/47)
51
- - chore: demo docs [`#43`](https://github.com/logue/vue-codemirror6/pull/43)
52
- - fix: editor not update content when `modelValue` change and selection is out of range [`#44`](https://github.com/logue/vue-codemirror6/pull/44)
53
- - chore: props and readme doc [`#31`](https://github.com/logue/vue-codemirror6/pull/31)
54
- - Reduce unnecessary updates [`#22`](https://github.com/logue/vue-codemirror6/pull/22)
55
- - fix: coalescing-operator [`#20`](https://github.com/logue/vue-codemirror6/pull/20)
56
- - Migrate to pnpm. [`6d83aec`](https://github.com/logue/vue-codemirror6/commit/6d83aec625d50228cbfb248bc5811b6f83975219)
57
- - Update dependencies. [`992f209`](https://github.com/logue/vue-codemirror6/commit/992f209c5e4c269b72be119f693b0d0376d529bb)
58
- - Update dependencies. [`b839a33`](https://github.com/logue/vue-codemirror6/commit/b839a33569fadf3a9bb5e2a8f972c377fc1fce88)
64
+ - Fix sample code syntax error [`#47`](https://github.com/logue/vue-codemirror6.git/pull/47)
65
+ - chore: demo docs [`#43`](https://github.com/logue/vue-codemirror6.git/pull/43)
66
+ - fix: editor not update content when `modelValue` change and selection is out of range [`#44`](https://github.com/logue/vue-codemirror6.git/pull/44)
67
+ - chore: props and readme doc [`#31`](https://github.com/logue/vue-codemirror6.git/pull/31)
68
+ - Reduce unnecessary updates [`#22`](https://github.com/logue/vue-codemirror6.git/pull/22)
69
+ - fix: coalescing-operator [`#20`](https://github.com/logue/vue-codemirror6.git/pull/20)
70
+ - Migrate to pnpm. [`6d83aec`](https://github.com/logue/vue-codemirror6.git/commit/6d83aec625d50228cbfb248bc5811b6f83975219)
71
+ - Update dependencies. [`992f209`](https://github.com/logue/vue-codemirror6.git/commit/992f209c5e4c269b72be119f693b0d0376d529bb)
72
+ - Update dependencies. [`b839a33`](https://github.com/logue/vue-codemirror6.git/commit/b839a33569fadf3a9bb5e2a8f972c377fc1fce88)
59
73
 
60
- #### [1.1.16](https://github.com/logue/vue-codemirror6/compare/1.1.13...1.1.16)
74
+ #### [1.1.16](https://github.com/logue/vue-codemirror6.git/compare/1.1.13...1.1.16)
61
75
 
62
76
  > 18 March 2023
63
77
 
64
- - Expose `view`. #16 [`daf3e6b`](https://github.com/logue/vue-codemirror6/commit/daf3e6b17a161a5c0c5a35ea2442d85421f05d82)
65
- - Fixed Maximum call stack size exceeded error. [`f10eaae`](https://github.com/logue/vue-codemirror6/commit/f10eaaea9145bc1d7a6605ab3cb8a82c0ca12df6)
66
- - Partially fixed the problem that the values defined in props disappeared under certain conditions. [`1cc4468`](https://github.com/logue/vue-codemirror6/commit/1cc4468e35e39ee8eaae1b2f007e3425a757217f)
78
+ - Expose `view`. #16 [`daf3e6b`](https://github.com/logue/vue-codemirror6.git/commit/daf3e6b17a161a5c0c5a35ea2442d85421f05d82)
79
+ - Fixed Maximum call stack size exceeded error. [`f10eaae`](https://github.com/logue/vue-codemirror6.git/commit/f10eaaea9145bc1d7a6605ab3cb8a82c0ca12df6)
80
+ - Partially fixed the problem that the values defined in props disappeared under certain conditions. [`1cc4468`](https://github.com/logue/vue-codemirror6.git/commit/1cc4468e35e39ee8eaae1b2f007e3425a757217f)
67
81
 
68
- #### [1.1.13](https://github.com/logue/vue-codemirror6/compare/1.1.12...1.1.13)
82
+ #### [1.1.13](https://github.com/logue/vue-codemirror6.git/compare/1.1.12...1.1.13)
69
83
 
70
84
  > 13 March 2023
71
85
 
72
- - Changed minimum Vue version requirement to 2.7.14. [`5b8b255`](https://github.com/logue/vue-codemirror6/commit/5b8b2558967f9fb6f6d9e83a0181afa50f182b98)
73
- - Add allow-multiple-selections prop. [`ced91ed`](https://github.com/logue/vue-codemirror6/commit/ced91edab8fc25f8f1299341489f6bbbdace9ce8)
74
- - Update CHANGELOG.md [`51d30e2`](https://github.com/logue/vue-codemirror6/commit/51d30e2f6370847ef888ab2b39ff6e1c8e3ec851)
86
+ - Changed minimum Vue version requirement to 2.7.14. [`5b8b255`](https://github.com/logue/vue-codemirror6.git/commit/5b8b2558967f9fb6f6d9e83a0181afa50f182b98)
87
+ - Add allow-multiple-selections prop. [`ced91ed`](https://github.com/logue/vue-codemirror6.git/commit/ced91edab8fc25f8f1299341489f6bbbdace9ce8)
88
+ - Update CHANGELOG.md [`51d30e2`](https://github.com/logue/vue-codemirror6.git/commit/51d30e2f6370847ef888ab2b39ff6e1c8e3ec851)
75
89
 
76
- #### [1.1.12](https://github.com/logue/vue-codemirror6/compare/1.1.11...1.1.12)
90
+ #### [1.1.12](https://github.com/logue/vue-codemirror6.git/compare/1.1.11...1.1.12)
77
91
 
78
92
  > 10 March 2023
79
93
 
80
- - chore(CODEOWNERS): CODEOWNERS.com Bot, at your service! [`#14`](https://github.com/logue/vue-codemirror6/pull/14)
81
- - Update demo code. (Replaced @codemirror/html to @codemirror/vue.) [`8da1a8a`](https://github.com/logue/vue-codemirror6/commit/8da1a8a4e37d713cc78281ce9c304c42a06940dc)
82
- - Changed implementation to generate \*.d.ts with vite-plugin-dts. [`1caaa20`](https://github.com/logue/vue-codemirror6/commit/1caaa20b1423a3d252a6c770a630fb60e2e3440d)
83
- - Update README.md. [`f8dd493`](https://github.com/logue/vue-codemirror6/commit/f8dd4934a7b9cc089cd830473db5250d28b3389b)
94
+ - chore(CODEOWNERS): CODEOWNERS.com Bot, at your service! [`#14`](https://github.com/logue/vue-codemirror6.git/pull/14)
95
+ - Update demo code. (Replaced @codemirror/html to @codemirror/vue.) [`8da1a8a`](https://github.com/logue/vue-codemirror6.git/commit/8da1a8a4e37d713cc78281ce9c304c42a06940dc)
96
+ - Changed implementation to generate \*.d.ts with vite-plugin-dts. [`1caaa20`](https://github.com/logue/vue-codemirror6.git/commit/1caaa20b1423a3d252a6c770a630fb60e2e3440d)
97
+ - Update README.md. [`f8dd493`](https://github.com/logue/vue-codemirror6.git/commit/f8dd4934a7b9cc089cd830473db5250d28b3389b)
84
98
 
85
- #### [1.1.11](https://github.com/logue/vue-codemirror6/compare/1.1.3...1.1.11)
99
+ #### [1.1.11](https://github.com/logue/vue-codemirror6.git/compare/1.1.3...1.1.11)
86
100
 
87
101
  > 4 February 2023
88
102
 
89
- - [SECURITY FIX] CWE-1333: Inefficient Regular Expression Complexity #13 [`fc63a9f`](https://github.com/logue/vue-codemirror6/commit/fc63a9f14b5307089e9551157b011072971b112f)
90
- - Fix for #11 [`c634b55`](https://github.com/logue/vue-codemirror6/commit/c634b555ffff93bb30da2f501ec366289fc86ec1)
91
- - Add forceReconfigure() function. [`bbfa8ad`](https://github.com/logue/vue-codemirror6/commit/bbfa8adb5bd5cdb56a53bd69337a4e0313e52033)
103
+ - [SECURITY FIX] CWE-1333: Inefficient Regular Expression Complexity #13 [`fc63a9f`](https://github.com/logue/vue-codemirror6.git/commit/fc63a9f14b5307089e9551157b011072971b112f)
104
+ - Fix for #11 [`c634b55`](https://github.com/logue/vue-codemirror6.git/commit/c634b555ffff93bb30da2f501ec366289fc86ec1)
105
+ - Add forceReconfigure() function. [`bbfa8ad`](https://github.com/logue/vue-codemirror6.git/commit/bbfa8adb5bd5cdb56a53bd69337a4e0313e52033)
92
106
 
93
- #### [1.1.3](https://github.com/logue/vue-codemirror6/compare/1.1.2...1.1.3)
107
+ #### [1.1.3](https://github.com/logue/vue-codemirror6.git/compare/1.1.2...1.1.3)
94
108
 
95
109
  > 9 January 2023
96
110
 
97
- - Bump json5 from 1.0.1 to 1.0.2 [`#10`](https://github.com/logue/vue-codemirror6/pull/10)
98
- - Consolidated demo code generation settings into a single vite.config.ts [`7fe3ad2`](https://github.com/logue/vue-codemirror6/commit/7fe3ad25676eb34844b7bfe64b5dc73f30211a5b)
99
- - Update dependencies. [`75b984e`](https://github.com/logue/vue-codemirror6/commit/75b984e38c13114ce30b853fba64493c55368be3)
111
+ - Bump json5 from 1.0.1 to 1.0.2 [`#10`](https://github.com/logue/vue-codemirror6.git/pull/10)
112
+ - Consolidated demo code generation settings into a single vite.config.ts [`7fe3ad2`](https://github.com/logue/vue-codemirror6.git/commit/7fe3ad25676eb34844b7bfe64b5dc73f30211a5b)
113
+ - Update dependencies. [`75b984e`](https://github.com/logue/vue-codemirror6.git/commit/75b984e38c13114ce30b853fba64493c55368be3)
100
114
 
101
- #### [1.1.2](https://github.com/logue/vue-codemirror6/compare/1.1.1...1.1.2)
115
+ #### [1.1.2](https://github.com/logue/vue-codemirror6.git/compare/1.1.1...1.1.2)
102
116
 
103
117
  > 24 December 2022
104
118
 
105
- - Update CHANGELOG.md. [`72efba5`](https://github.com/logue/vue-codemirror6/commit/72efba5e9e272da2dcb3bd941079ee415d1b4c53)
106
- - Minor fix. [`d1e3118`](https://github.com/logue/vue-codemirror6/commit/d1e3118ca2f2efe4d63f64e505d8a01a7c29a104)
107
- - Update dependencies. [`d747a21`](https://github.com/logue/vue-codemirror6/commit/d747a21778b42ed12921dd468a91a910895925e8)
119
+ - Update CHANGELOG.md. [`72efba5`](https://github.com/logue/vue-codemirror6.git/commit/72efba5e9e272da2dcb3bd941079ee415d1b4c53)
120
+ - Minor fix. [`d1e3118`](https://github.com/logue/vue-codemirror6.git/commit/d1e3118ca2f2efe4d63f64e505d8a01a7c29a104)
121
+ - Update dependencies. [`d747a21`](https://github.com/logue/vue-codemirror6.git/commit/d747a21778b42ed12921dd468a91a910895925e8)
108
122
 
109
- #### [1.1.1](https://github.com/logue/vue-codemirror6/compare/1.1.0...1.1.1)
123
+ #### [1.1.1](https://github.com/logue/vue-codemirror6.git/compare/1.1.0...1.1.1)
110
124
 
111
125
  > 7 November 2022
112
126
 
113
- - Fixed Markdown demo. [`399f32c`](https://github.com/logue/vue-codemirror6/commit/399f32c95440b24c253110670d46811673cf38bd)
114
- - Fix cross-binding not works. [`137765b`](https://github.com/logue/vue-codemirror6/commit/137765b23c0b27ba3c4784d0708ee7172c94083a)
115
- - Fixed taking URL class from other than node when building docs. [`fbf1d56`](https://github.com/logue/vue-codemirror6/commit/fbf1d56296b4b739b7ff84107ec33eb3681a0398)
127
+ - Fixed Markdown demo. [`399f32c`](https://github.com/logue/vue-codemirror6.git/commit/399f32c95440b24c253110670d46811673cf38bd)
128
+ - Fix cross-binding not works. [`137765b`](https://github.com/logue/vue-codemirror6.git/commit/137765b23c0b27ba3c4784d0708ee7172c94083a)
129
+ - Fixed taking URL class from other than node when building docs. [`fbf1d56`](https://github.com/logue/vue-codemirror6.git/commit/fbf1d56296b4b739b7ff84107ec33eb3681a0398)
116
130
 
117
- #### [1.1.0](https://github.com/logue/vue-codemirror6/compare/1.0.3...1.1.0)
131
+ #### [1.1.0](https://github.com/logue/vue-codemirror6.git/compare/1.0.3...1.1.0)
118
132
 
119
133
  > 31 October 2022
120
134
 
121
- - Rewrite the demo code with Vue3 setup. [`fdc7e3c`](https://github.com/logue/vue-codemirror6/commit/fdc7e3c172ff8f1710a74459b1ed7da70420b732)
122
- - Fixed wrong typing of computed value. [`9b5a572`](https://github.com/logue/vue-codemirror6/commit/9b5a572c5a18bfd3cf9cd5f4c0b0866efab9e893)
123
- - Add CHANGELOG.md. [`1de388f`](https://github.com/logue/vue-codemirror6/commit/1de388f5126a6afeaec250adefc82bc709251bbd)
135
+ - Rewrite the demo code with Vue3 setup. [`fdc7e3c`](https://github.com/logue/vue-codemirror6.git/commit/fdc7e3c172ff8f1710a74459b1ed7da70420b732)
136
+ - Fixed wrong typing of computed value. [`9b5a572`](https://github.com/logue/vue-codemirror6.git/commit/9b5a572c5a18bfd3cf9cd5f4c0b0866efab9e893)
137
+ - Add CHANGELOG.md. [`1de388f`](https://github.com/logue/vue-codemirror6.git/commit/1de388f5126a6afeaec250adefc82bc709251bbd)
124
138
 
125
- #### [1.0.3](https://github.com/logue/vue-codemirror6/compare/1.0.2...1.0.3)
139
+ #### [1.0.3](https://github.com/logue/vue-codemirror6.git/compare/1.0.2...1.0.3)
126
140
 
127
141
  > 12 October 2022
128
142
 
129
- - Update dependencies. [`7f096da`](https://github.com/logue/vue-codemirror6/commit/7f096da24bfc50c9f2932cac6ad023d3982281bf)
130
- - Update demo code. [`ac33441`](https://github.com/logue/vue-codemirror6/commit/ac33441c2886664c11a91b5b838db74220f0b565)
131
- - Fixed vite.config.docs.ts. [`b13628a`](https://github.com/logue/vue-codemirror6/commit/b13628aeaa29df6c525b899776ae7706cdf800bc)
143
+ - Update dependencies. [`7f096da`](https://github.com/logue/vue-codemirror6.git/commit/7f096da24bfc50c9f2932cac6ad023d3982281bf)
144
+ - Update demo code. [`ac33441`](https://github.com/logue/vue-codemirror6.git/commit/ac33441c2886664c11a91b5b838db74220f0b565)
145
+ - Fixed vite.config.docs.ts. [`b13628a`](https://github.com/logue/vue-codemirror6.git/commit/b13628aeaa29df6c525b899776ae7706cdf800bc)
132
146
 
133
- #### [1.0.2](https://github.com/logue/vue-codemirror6/compare/1.0.1...1.0.2)
147
+ #### [1.0.2](https://github.com/logue/vue-codemirror6.git/compare/1.0.1...1.0.2)
134
148
 
135
149
  > 15 September 2022
136
150
 
137
- - Enabled to specify HTML tags used in components. [`9b9eecd`](https://github.com/logue/vue-codemirror6/commit/9b9eecdb4da434295bf176c4c17d832871aba927)
151
+ - Enabled to specify HTML tags used in components. [`9b9eecd`](https://github.com/logue/vue-codemirror6.git/commit/9b9eecdb4da434295bf176c4c17d832871aba927)
138
152
 
139
- #### [1.0.1](https://github.com/logue/vue-codemirror6/compare/1.0.0...1.0.1)
153
+ #### [1.0.1](https://github.com/logue/vue-codemirror6.git/compare/1.0.0...1.0.1)
140
154
 
141
155
  > 8 September 2022
142
156
 
143
- - Update dependencies. [`f3631d0`](https://github.com/logue/vue-codemirror6/commit/f3631d0c3c00a07ba8e69916116db1d611397fb9)
144
- - Disable drop console. [`e27b9ef`](https://github.com/logue/vue-codemirror6/commit/e27b9efea75180b3c6031c8e3a06c2bd5cee228b)
157
+ - Update dependencies. [`f3631d0`](https://github.com/logue/vue-codemirror6.git/commit/f3631d0c3c00a07ba8e69916116db1d611397fb9)
158
+ - Disable drop console. [`e27b9ef`](https://github.com/logue/vue-codemirror6.git/commit/e27b9efea75180b3c6031c8e3a06c2bd5cee228b)
145
159
 
146
- ### [1.0.0](https://github.com/logue/vue-codemirror6/compare/0.6.8...1.0.0)
160
+ ### [1.0.0](https://github.com/logue/vue-codemirror6.git/compare/0.6.8...1.0.0)
147
161
 
148
162
  > 20 August 2022
149
163
 
150
- - Fixed editable and readonly toggle. [`97ac1bf`](https://github.com/logue/vue-codemirror6/commit/97ac1bf8b24775daefb58af91c318771ea355c8d)
151
- - 1.0 [`4493c74`](https://github.com/logue/vue-codemirror6/commit/4493c744d38002fbca943f43b14985a3ae2c592c)
164
+ - Fixed editable and readonly toggle. [`97ac1bf`](https://github.com/logue/vue-codemirror6.git/commit/97ac1bf8b24775daefb58af91c318771ea355c8d)
165
+ - 1.0 [`4493c74`](https://github.com/logue/vue-codemirror6.git/commit/4493c744d38002fbca943f43b14985a3ae2c592c)
152
166
 
153
- #### [0.6.8](https://github.com/logue/vue-codemirror6/compare/0.6.5...0.6.8)
167
+ #### [0.6.8](https://github.com/logue/vue-codemirror6.git/compare/0.6.5...0.6.8)
154
168
 
155
169
  > 1 August 2022
156
170
 
157
- - Unify props monitoring process. [`15b8a17`](https://github.com/logue/vue-codemirror6/commit/15b8a171cec652a03800fc9b53c9f3c5b78f74bf)
158
- - Fixed an error around linter. [`b2fe3db`](https://github.com/logue/vue-codemirror6/commit/b2fe3dba9f6edd3167edeeff08f34139e444ecd7)
159
- - Fixed dispatch may be executed multiple times when the value of prop is changed. [`2e19316`](https://github.com/logue/vue-codemirror6/commit/2e193168876e7e0da06695e68176433fd328c0b7)
171
+ - Unify props monitoring process. [`15b8a17`](https://github.com/logue/vue-codemirror6.git/commit/15b8a171cec652a03800fc9b53c9f3c5b78f74bf)
172
+ - Fixed an error around linter. [`b2fe3db`](https://github.com/logue/vue-codemirror6.git/commit/b2fe3dba9f6edd3167edeeff08f34139e444ecd7)
173
+ - Fixed dispatch may be executed multiple times when the value of prop is changed. [`2e19316`](https://github.com/logue/vue-codemirror6.git/commit/2e193168876e7e0da06695e68176433fd328c0b7)
160
174
 
161
- #### [0.6.5](https://github.com/logue/vue-codemirror6/compare/0.6.4...0.6.5)
175
+ #### [0.6.5](https://github.com/logue/vue-codemirror6.git/compare/0.6.4...0.6.5)
162
176
 
163
177
  > 4 July 2022
164
178
 
165
- - Remove banner from source code. [`043e0ed`](https://github.com/logue/vue-codemirror6/commit/043e0ed0769c0b3bf52777e0d64199e713377418)
166
- - Delete unnecessary cursor movement processing and assignment processing. [`c89fd00`](https://github.com/logue/vue-codemirror6/commit/c89fd0020e241dca2d8292511a2b55ffbece5a82)
179
+ - Remove banner from source code. [`043e0ed`](https://github.com/logue/vue-codemirror6.git/commit/043e0ed0769c0b3bf52777e0d64199e713377418)
180
+ - Delete unnecessary cursor movement processing and assignment processing. [`c89fd00`](https://github.com/logue/vue-codemirror6.git/commit/c89fd0020e241dca2d8292511a2b55ffbece5a82)
167
181
 
168
- #### [0.6.4](https://github.com/logue/vue-codemirror6/compare/0.6.0...0.6.4)
182
+ #### [0.6.4](https://github.com/logue/vue-codemirror6.git/compare/0.6.0...0.6.4)
169
183
 
170
184
  > 28 June 2022
171
185
 
172
- - Fixed a bug that the cursor may move to a strange place when inputting. [`9977976`](https://github.com/logue/vue-codemirror6/commit/9977976678fda8a268a5c998f6bb95bdf0b86a1e)
173
- - Changed the logic when assigning text values to CodeMirror. [`313e701`](https://github.com/logue/vue-codemirror6/commit/313e70196573f9365519a7558cbc0f05c193a000)
174
- - Fixed the problem that the definition file was omitted because the binary output by analyze was given to npm. [`503a52e`](https://github.com/logue/vue-codemirror6/commit/503a52ef7c5077241b72909ee27afb262b52312e)
186
+ - Fixed a bug that the cursor may move to a strange place when inputting. [`9977976`](https://github.com/logue/vue-codemirror6.git/commit/9977976678fda8a268a5c998f6bb95bdf0b86a1e)
187
+ - Changed the logic when assigning text values to CodeMirror. [`313e701`](https://github.com/logue/vue-codemirror6.git/commit/313e70196573f9365519a7558cbc0f05c193a000)
188
+ - Fixed the problem that the definition file was omitted because the binary output by analyze was given to npm. [`503a52e`](https://github.com/logue/vue-codemirror6.git/commit/503a52ef7c5077241b72909ee27afb262b52312e)
175
189
 
176
- #### [0.6.0](https://github.com/logue/vue-codemirror6/compare/0.5.5...0.6.0)
190
+ #### [0.6.0](https://github.com/logue/vue-codemirror6.git/compare/0.5.5...0.6.0)
177
191
 
178
192
  > 9 June 2022
179
193
 
180
- - Added minimal prop. [`d454d25`](https://github.com/logue/vue-codemirror6/commit/d454d257c1fd04b765f5fdb555b240395fe030b5)
181
- - Migrate to CodeMirror 6.0.0. [`50cb696`](https://github.com/logue/vue-codemirror6/commit/50cb696dcc3af61d77a7e74ef37041d20bfb71fc)
182
- - Add methods jsdoc and manual. [`44975eb`](https://github.com/logue/vue-codemirror6/commit/44975ebedf76d1179ab2c1835e9f16b8e583a64a)
194
+ - Added minimal prop. [`d454d25`](https://github.com/logue/vue-codemirror6.git/commit/d454d257c1fd04b765f5fdb555b240395fe030b5)
195
+ - Migrate to CodeMirror 6.0.0. [`50cb696`](https://github.com/logue/vue-codemirror6.git/commit/50cb696dcc3af61d77a7e74ef37041d20bfb71fc)
196
+ - Add methods jsdoc and manual. [`44975eb`](https://github.com/logue/vue-codemirror6.git/commit/44975ebedf76d1179ab2c1835e9f16b8e583a64a)
183
197
 
184
- #### [0.5.5](https://github.com/logue/vue-codemirror6/compare/0.5.4...0.5.5)
198
+ #### [0.5.5](https://github.com/logue/vue-codemirror6.git/compare/0.5.4...0.5.5)
185
199
 
186
200
  > 8 June 2022
187
201
 
188
- - Urgent release. [`7db9007`](https://github.com/logue/vue-codemirror6/commit/7db9007886b5daeea94f7986d256291911b7a55c)
202
+ - Urgent release. [`7db9007`](https://github.com/logue/vue-codemirror6.git/commit/7db9007886b5daeea94f7986d256291911b7a55c)
189
203
 
190
- #### [0.5.4](https://github.com/logue/vue-codemirror6/compare/0.5.3...0.5.4)
204
+ #### [0.5.4](https://github.com/logue/vue-codemirror6.git/compare/0.5.3...0.5.4)
191
205
 
192
206
  > 31 May 2022
193
207
 
194
- - Fixed a bug that the cursor goes to a strange place when inputting. [`81af5b2`](https://github.com/logue/vue-codemirror6/commit/81af5b2e950cd972bfe540621fb75a6a8e18d544)
208
+ - Fixed a bug that the cursor goes to a strange place when inputting. [`81af5b2`](https://github.com/logue/vue-codemirror6.git/commit/81af5b2e950cd972bfe540621fb75a6a8e18d544)
195
209
 
196
- #### [0.5.3](https://github.com/logue/vue-codemirror6/compare/0.5.2...0.5.3)
210
+ #### [0.5.3](https://github.com/logue/vue-codemirror6.git/compare/0.5.2...0.5.3)
197
211
 
198
212
  > 31 May 2022
199
213
 
200
- - Fixed an issue where parent-to-child binding did not work properly. [`d355f2c`](https://github.com/logue/vue-codemirror6/commit/d355f2c7de4437360fdbf021029506d6cce4adba)
201
- - Changed the implementation to call the extension directly with a function. [`98d338f`](https://github.com/logue/vue-codemirror6/commit/98d338f05a48922529f15f9d706f9614447ff1cb)
202
- - The initial value of linter is set to simple undefined. [`6cec8b0`](https://github.com/logue/vue-codemirror6/commit/6cec8b000ce18a44a4077c375285a45df2993931)
214
+ - Fixed an issue where parent-to-child binding did not work properly. [`d355f2c`](https://github.com/logue/vue-codemirror6.git/commit/d355f2c7de4437360fdbf021029506d6cce4adba)
215
+ - Changed the implementation to call the extension directly with a function. [`98d338f`](https://github.com/logue/vue-codemirror6.git/commit/98d338f05a48922529f15f9d706f9614447ff1cb)
216
+ - The initial value of linter is set to simple undefined. [`6cec8b0`](https://github.com/logue/vue-codemirror6.git/commit/6cec8b000ce18a44a4077c375285a45df2993931)
203
217
 
204
- #### [0.5.2](https://github.com/logue/vue-codemirror6/compare/0.5.1...0.5.2)
218
+ #### [0.5.2](https://github.com/logue/vue-codemirror6.git/compare/0.5.1...0.5.2)
205
219
 
206
220
  > 30 May 2022
207
221
 
208
- - Simplify extension processing. [`cd875ff`](https://github.com/logue/vue-codemirror6/commit/cd875ffdeffa072c6abb5b4e3964298bd490b582)
209
- - Since lintGutter is displayed even for components for which linter is not specified, lintGutter is made an option. [`ab16cbb`](https://github.com/logue/vue-codemirror6/commit/ab16cbb1472a5b29c572279a303a4baa593f4eb3)
210
- - Fixed innerText is undefined error. [`6466784`](https://github.com/logue/vue-codemirror6/commit/64667849779d0511a472cf8d116ecef8e51f1db8)
222
+ - Simplify extension processing. [`cd875ff`](https://github.com/logue/vue-codemirror6.git/commit/cd875ffdeffa072c6abb5b4e3964298bd490b582)
223
+ - Since lintGutter is displayed even for components for which linter is not specified, lintGutter is made an option. [`ab16cbb`](https://github.com/logue/vue-codemirror6.git/commit/ab16cbb1472a5b29c572279a303a4baa593f4eb3)
224
+ - Fixed innerText is undefined error. [`6466784`](https://github.com/logue/vue-codemirror6.git/commit/64667849779d0511a472cf8d116ecef8e51f1db8)
211
225
 
212
- #### [0.5.1](https://github.com/logue/vue-codemirror6/compare/0.5.0...0.5.1)
226
+ #### [0.5.1](https://github.com/logue/vue-codemirror6.git/compare/0.5.0...0.5.1)
213
227
 
214
228
  > 28 May 2022
215
229
 
216
- - Fixed linter bug. [`03013b4`](https://github.com/logue/vue-codemirror6/commit/03013b44ce89ba455acafaceac68b2084fe364cf)
230
+ - Fixed linter bug. [`03013b4`](https://github.com/logue/vue-codemirror6.git/commit/03013b44ce89ba455acafaceac68b2084fe364cf)
217
231
 
218
- #### [0.5.0](https://github.com/logue/vue-codemirror6/compare/0.3.7...0.5.0)
232
+ #### [0.5.0](https://github.com/logue/vue-codemirror6.git/compare/0.3.7...0.5.0)
219
233
 
220
234
  > 27 May 2022
221
235
 
222
- - The output program is compatible with both Vue2 and Vue3.☺ [`7571423`](https://github.com/logue/vue-codemirror6/commit/7571423b0b4f6150300b184b3fc765cb3bf2e21b)
236
+ - The output program is compatible with both Vue2 and Vue3.☺ [`7571423`](https://github.com/logue/vue-codemirror6.git/commit/7571423b0b4f6150300b184b3fc765cb3bf2e21b)
223
237
 
224
- #### [0.3.7](https://github.com/logue/vue-codemirror6/compare/0.3.6...0.3.7)
238
+ #### [0.3.7](https://github.com/logue/vue-codemirror6.git/compare/0.3.6...0.3.7)
225
239
 
226
240
  > 26 May 2022
227
241
 
228
- - Change the formatting settings. [`42188a5`](https://github.com/logue/vue-codemirror6/commit/42188a5de4ddf1163789cdc2fbd255ed19487fad)
229
- - Update documents. [`5a78106`](https://github.com/logue/vue-codemirror6/commit/5a7810681c786020afdac8f5d8da8d15f8ad802c)
230
- - Update docs. [`15d7f8e`](https://github.com/logue/vue-codemirror6/commit/15d7f8e7e1edda995420485160cb9cfd4980fe74)
242
+ - Change the formatting settings. [`42188a5`](https://github.com/logue/vue-codemirror6.git/commit/42188a5de4ddf1163789cdc2fbd255ed19487fad)
243
+ - Update documents. [`5a78106`](https://github.com/logue/vue-codemirror6.git/commit/5a7810681c786020afdac8f5d8da8d15f8ad802c)
244
+ - Update docs. [`15d7f8e`](https://github.com/logue/vue-codemirror6.git/commit/15d7f8e7e1edda995420485160cb9cfd4980fe74)
231
245
 
232
- #### [0.3.6](https://github.com/logue/vue-codemirror6/compare/0.3.2...0.3.6)
246
+ #### [0.3.6](https://github.com/logue/vue-codemirror6.git/compare/0.3.2...0.3.6)
233
247
 
234
248
  > 19 May 2022
235
249
 
236
- - Rename serve.vue to DemoPage.vue. [`3ba582b`](https://github.com/logue/vue-codemirror6/commit/3ba582b6fa24259b49d1f123b79db185ab7e077a)
237
- - Fixed an issue where CodeMirror may not work properly during initial display. [`8092b64`](https://github.com/logue/vue-codemirror6/commit/8092b64039e9a3340624ca4e347151609c933a12)
238
- - Add basic and tab props. [`54eace6`](https://github.com/logue/vue-codemirror6/commit/54eace641678967163fdf93d051181f701167e0e)
250
+ - Rename serve.vue to DemoPage.vue. [`3ba582b`](https://github.com/logue/vue-codemirror6.git/commit/3ba582b6fa24259b49d1f123b79db185ab7e077a)
251
+ - Fixed an issue where CodeMirror may not work properly during initial display. [`8092b64`](https://github.com/logue/vue-codemirror6.git/commit/8092b64039e9a3340624ca4e347151609c933a12)
252
+ - Add basic and tab props. [`54eace6`](https://github.com/logue/vue-codemirror6.git/commit/54eace641678967163fdf93d051181f701167e0e)
239
253
 
240
- #### [0.3.2](https://github.com/logue/vue-codemirror6/compare/0.3.0...0.3.2)
254
+ #### [0.3.2](https://github.com/logue/vue-codemirror6.git/compare/0.3.0...0.3.2)
241
255
 
242
256
  > 6 April 2022
243
257
 
244
- - When building with vue3, it doesn't work with vue2, so build with vue2. [`87be702`](https://github.com/logue/vue-codemirror6/commit/87be702b278df9cf0f5b26bb8307f7a6d592fd73)
245
- - Rewrite the wrapper part. [`1e77661`](https://github.com/logue/vue-codemirror6/commit/1e776619bb5f711a789bbe758d10142725de39aa)
246
- - Update sample. [`f7ed0a5`](https://github.com/logue/vue-codemirror6/commit/f7ed0a507175b6c0d79cf6be55fbd317c5c999b6)
258
+ - When building with vue3, it doesn't work with vue2, so build with vue2. [`87be702`](https://github.com/logue/vue-codemirror6.git/commit/87be702b278df9cf0f5b26bb8307f7a6d592fd73)
259
+ - Rewrite the wrapper part. [`1e77661`](https://github.com/logue/vue-codemirror6.git/commit/1e776619bb5f711a789bbe758d10142725de39aa)
260
+ - Update sample. [`f7ed0a5`](https://github.com/logue/vue-codemirror6.git/commit/f7ed0a507175b6c0d79cf6be55fbd317c5c999b6)
247
261
 
248
- #### [0.3.0](https://github.com/logue/vue-codemirror6/compare/0.1.7...0.3.0)
262
+ #### [0.3.0](https://github.com/logue/vue-codemirror6.git/compare/0.1.7...0.3.0)
249
263
 
250
264
  > 29 March 2022
251
265
 
252
- #### [0.1.7](https://github.com/logue/vue-codemirror6/compare/0.1.6...0.1.7)
266
+ #### [0.1.7](https://github.com/logue/vue-codemirror6.git/compare/0.1.6...0.1.7)
253
267
 
254
268
  > 26 May 2022
255
269
 
256
- - Change Lint settings. [`89558c1`](https://github.com/logue/vue-codemirror6/commit/89558c1ad3a11bc5bd4ee55a11d6bd58022c99eb)
270
+ - Change Lint settings. [`89558c1`](https://github.com/logue/vue-codemirror6.git/commit/89558c1ad3a11bc5bd4ee55a11d6bd58022c99eb)
257
271
 
258
- #### [0.1.6](https://github.com/logue/vue-codemirror6/compare/0.1.2...0.1.6)
272
+ #### [0.1.6](https://github.com/logue/vue-codemirror6.git/compare/0.1.2...0.1.6)
259
273
 
260
274
  > 19 May 2022
261
275
 
262
- - Follow changes in the master branch [`d7a9e3f`](https://github.com/logue/vue-codemirror6/commit/d7a9e3f9cfd7580bb78c29f96e1f2c84d77d5801)
263
- - Follow Vue3 version. [`1867c6c`](https://github.com/logue/vue-codemirror6/commit/1867c6c18fdc10f331e1dace37c5773242069150)
264
- - Since past values may be included, nextTick processing was added to onMouted. [`dac2bdd`](https://github.com/logue/vue-codemirror6/commit/dac2bdd1ea935141ed25b93c9882f6ecc871099e)
276
+ - Follow changes in the master branch [`d7a9e3f`](https://github.com/logue/vue-codemirror6.git/commit/d7a9e3f9cfd7580bb78c29f96e1f2c84d77d5801)
277
+ - Follow Vue3 version. [`1867c6c`](https://github.com/logue/vue-codemirror6.git/commit/1867c6c18fdc10f331e1dace37c5773242069150)
278
+ - Since past values may be included, nextTick processing was added to onMouted. [`dac2bdd`](https://github.com/logue/vue-codemirror6.git/commit/dac2bdd1ea935141ed25b93c9882f6ecc871099e)
265
279
 
266
- #### [0.1.2](https://github.com/logue/vue-codemirror6/compare/0.1.0...0.1.2)
280
+ #### [0.1.2](https://github.com/logue/vue-codemirror6.git/compare/0.1.0...0.1.2)
267
281
 
268
282
  > 6 April 2022
269
283
 
270
- - Squashed commit of the following: [`db4abdd`](https://github.com/logue/vue-codemirror6/commit/db4abdddda262a7fa4f69f028b423d13442cec68)
271
- - When building with vue3, it doesn't work with vue2, so build with vue2. [`87be702`](https://github.com/logue/vue-codemirror6/commit/87be702b278df9cf0f5b26bb8307f7a6d592fd73)
272
- - Rewrite the wrapper part. [`1e77661`](https://github.com/logue/vue-codemirror6/commit/1e776619bb5f711a789bbe758d10142725de39aa)
284
+ - Squashed commit of the following: [`db4abdd`](https://github.com/logue/vue-codemirror6.git/commit/db4abdddda262a7fa4f69f028b423d13442cec68)
285
+ - When building with vue3, it doesn't work with vue2, so build with vue2. [`87be702`](https://github.com/logue/vue-codemirror6.git/commit/87be702b278df9cf0f5b26bb8307f7a6d592fd73)
286
+ - Rewrite the wrapper part. [`1e77661`](https://github.com/logue/vue-codemirror6.git/commit/1e776619bb5f711a789bbe758d10142725de39aa)
273
287
 
274
- #### [0.1.0](https://github.com/logue/vue-codemirror6/compare/0.0.6...0.1.0)
288
+ #### [0.1.0](https://github.com/logue/vue-codemirror6.git/compare/0.0.6...0.1.0)
275
289
 
276
290
  > 18 March 2022
277
291
 
278
- - Update Samples. (run `yarn run dev`) [`f658c65`](https://github.com/logue/vue-codemirror6/commit/f658c654f2910a133914f2fa0fdc8206dadb7232)
279
- - Fixed IME probrem. [`7a42e63`](https://github.com/logue/vue-codemirror6/commit/7a42e63f75748039ebb082732fe46cd7967f32d7)
292
+ - Update Samples. (run `yarn run dev`) [`f658c65`](https://github.com/logue/vue-codemirror6.git/commit/f658c654f2910a133914f2fa0fdc8206dadb7232)
293
+ - Fixed IME probrem. [`7a42e63`](https://github.com/logue/vue-codemirror6.git/commit/7a42e63f75748039ebb082732fe46cd7967f32d7)
280
294
 
281
- #### [0.0.6](https://github.com/logue/vue-codemirror6/compare/0.0.5...0.0.6)
295
+ #### [0.0.6](https://github.com/logue/vue-codemirror6.git/compare/0.0.5...0.0.6)
282
296
 
283
297
  > 17 March 2022
284
298
 
285
- - Fixed d.ts file destination. [`2cd9cdf`](https://github.com/logue/vue-codemirror6/commit/2cd9cdf3f0658d62ae434600e4e8cda14c407a47)
299
+ - Fixed d.ts file destination. [`2cd9cdf`](https://github.com/logue/vue-codemirror6.git/commit/2cd9cdf3f0658d62ae434600e4e8cda14c407a47)
286
300
 
287
- #### [0.0.5](https://github.com/logue/vue-codemirror6/compare/0.0.4...0.0.5)
301
+ #### [0.0.5](https://github.com/logue/vue-codemirror6.git/compare/0.0.4...0.0.5)
288
302
 
289
303
  > 17 March 2022
290
304
 
291
- - Fixed a bug that the cursor position may be at the top when entering a key. [`e7f5407`](https://github.com/logue/vue-codemirror6/commit/e7f5407c76185cc805c10fc0366c5e6dff5f44f6)
305
+ - Fixed a bug that the cursor position may be at the top when entering a key. [`e7f5407`](https://github.com/logue/vue-codemirror6.git/commit/e7f5407c76185cc805c10fc0366c5e6dff5f44f6)
292
306
 
293
- #### [0.0.4](https://github.com/logue/vue-codemirror6/compare/0.0.2...0.0.4)
307
+ #### [0.0.4](https://github.com/logue/vue-codemirror6.git/compare/0.0.2...0.0.4)
294
308
 
295
309
  > 16 February 2022
296
310
 
297
- - Update demo code. [`599fa5f`](https://github.com/logue/vue-codemirror6/commit/599fa5f4d87cc7783c98f56a9436a314b368fb64)
298
- - Removed code that depends on other libraries from the output code. [`7d9e383`](https://github.com/logue/vue-codemirror6/commit/7d9e383c17f31ed8721f94711e7cd1dc595f9e07)
299
- - Add demo code. [`3e06ef7`](https://github.com/logue/vue-codemirror6/commit/3e06ef70f5ed30fce5a6cb72add2b41fea2745fe)
311
+ - Update demo code. [`599fa5f`](https://github.com/logue/vue-codemirror6.git/commit/599fa5f4d87cc7783c98f56a9436a314b368fb64)
312
+ - Removed code that depends on other libraries from the output code. [`7d9e383`](https://github.com/logue/vue-codemirror6.git/commit/7d9e383c17f31ed8721f94711e7cd1dc595f9e07)
313
+ - Add demo code. [`3e06ef7`](https://github.com/logue/vue-codemirror6.git/commit/3e06ef70f5ed30fce5a6cb72add2b41fea2745fe)
300
314
 
301
- #### [0.0.2](https://github.com/logue/vue-codemirror6/compare/0.0.1...0.0.2)
315
+ #### [0.0.2](https://github.com/logue/vue-codemirror6.git/compare/0.0.1...0.0.2)
302
316
 
303
317
  > 14 February 2022
304
318
 
305
- - Update package.json. Fixed typing settings. [`12ead23`](https://github.com/logue/vue-codemirror6/commit/12ead23c53c0a5ebc5a68c3bee7b192b587efafc)
319
+ - Update package.json. Fixed typing settings. [`12ead23`](https://github.com/logue/vue-codemirror6.git/commit/12ead23c53c0a5ebc5a68c3bee7b192b587efafc)
306
320
 
307
321
  #### 0.0.1
308
322
 
309
323
  > 10 February 2022
310
324
 
311
- - Initial commit. [`b410884`](https://github.com/logue/vue-codemirror6/commit/b41088482f82615e9380e6231a59a39387d172a2)
325
+ - Initial commit. [`b410884`](https://github.com/logue/vue-codemirror6.git/commit/b41088482f82615e9380e6231a59a39387d172a2)
package/dist/index.cjs.js CHANGED
@@ -5,9 +5,9 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.5.1
8
+ * @version 1.5.2
9
9
  * @see {@link https://github.com/logue/vue-codemirror6}
10
10
  */
11
11
 
12
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require(`@codemirror/commands`),t=require(`@codemirror/language`),n=require(`@codemirror/lint`),r=require(`@codemirror/state`),i=require(`@codemirror/view`),a=require(`codemirror`),o=require(`vue-demi`);var s={version:`1.5.1`,date:`2026-04-03T05:31:33.377Z`},c=e=>e?Object.entries(e).reduce((e,[t,n])=>(t=t.charAt(0).toUpperCase()+t.slice(1),t=`on${t}`,{...e,[t]:n}),{}):{};function l(e,t={},n){if(o.isVue2)return(0,o.h)(e,t,n);let{props:r,domProps:i,on:a,...s}=t,l=a?c(a):{};return(0,o.h)(e,{...s,...r,...i,...l},n)}var u=e=>typeof e==`function`?e():e,d=(0,o.defineComponent)({name:`CodeMirror`,model:{prop:`modelValue`,event:`update:modelValue`},props:{modelValue:{type:String,default:``},theme:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},indentUnit:{type:String,default:void 0},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,default:!1},gutterConfig:{type:Object,default:void 0},tag:{type:String,default:`div`},scrollIntoView:{type:Boolean,default:!0},preserveScrollPosition:{type:Boolean,default:!1},keymap:{type:Array,default:()=>[]}},emits:{"update:modelValue":(e=``)=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(s,c){let l=(0,o.ref)(),u=(0,o.ref)(s.modelValue),d=(0,o.shallowRef)(void 0),f=(0,o.computed)({get:()=>d.value?.hasFocus??!1,set:e=>{e&&d.value&&d.value.focus()}}),p=(0,o.computed)({get:()=>d.value?.state.selection,set:e=>{d.value&&e&&d.value.dispatch({selection:e})}}),m=(0,o.computed)({get:()=>d.value?.state.selection.main.head??0,set:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})}}),h=(0,o.computed)({get:()=>d.value?.state.toJSON(),set:e=>{d.value&&e&&d.value.setState(r.EditorState.fromJSON(e))}}),g=(0,o.ref)(0),_=(0,o.ref)(0),v=(0,o.computed)(()=>{let o=new r.Compartment,l=new r.Compartment;if(s.basic&&s.minimal)throw Error(`[Vue CodeMirror] Both basic and minimal cannot be specified.`);let u=[];return s.keymap&&s.keymap.length>0&&(u=s.keymap),s.tab&&u.push(e.indentWithTab),[s.basic&&!s.minimal?a.basicSetup:void 0,s.minimal&&!s.basic?a.minimalSetup:void 0,i.EditorView.updateListener.of(e=>{d.value&&(c.emit(`focus`,d.value.hasFocus),g.value=d.value.state.doc?.length,!(e.changes.empty||!e.docChanged)&&(s.linter&&(s.forceLinting&&(0,n.forceLinting)(d.value),_.value=s.linter(d.value).length),c.emit(`update`,e)))}),i.EditorView.theme(s.theme,{dark:s.dark}),s.wrap?i.EditorView.lineWrapping:void 0,s.indentUnit?t.indentUnit.of(s.indentUnit):void 0,r.EditorState.allowMultipleSelections.of(s.allowMultipleSelections),s.tabSize?l.of(r.EditorState.tabSize.of(s.tabSize)):void 0,s.phrases?r.EditorState.phrases.of(s.phrases):void 0,r.EditorState.readOnly.of(s.readonly),i.EditorView.editable.of(!s.disabled),s.lineSeparator?r.EditorState.lineSeparator.of(s.lineSeparator):void 0,s.lang?o.of(s.lang):void 0,s.linter?(0,n.linter)(s.linter,s.linterConfig):void 0,s.linter&&s.gutter?(0,n.lintGutter)(s.gutterConfig):void 0,s.placeholder?(0,i.placeholder)(s.placeholder):void 0,u.length>0?i.keymap.of(u):void 0,...s.extensions].filter(e=>!!e)});(0,o.watch)(v,e=>d.value?.dispatch({effects:r.StateEffect.reconfigure.of(e)}),{immediate:!0}),(0,o.watch)(()=>s.modelValue,async e=>{if(!d.value||d.value.composing||d.value.state.doc.toJSON().join(s.lineSeparator??`
13
- `)===e)return;let t=!d.value.state.selection.ranges.every(t=>t.anchor<e.length&&t.head<e.length),n={from:0,to:d.value.state.doc.length,insert:e},r=s.preserveScrollPosition?d.value.scrollSnapshot().map(d.value.state.changes(n)):void 0;d.value.dispatch({changes:n,selection:t?{anchor:0,head:0}:d.value.state.selection,scrollIntoView:s.scrollIntoView,effects:r?[r]:void 0})},{immediate:!0}),(0,o.onMounted)(async()=>{if(globalThis.window===void 0||!l.value)return;let e=u.value;l.value.childNodes[0]&&(u.value!==``&&console.warn("[CodeMirror.vue] The <code-mirror> tag contains child elements that overwrite the `v-model` values."),e=l.value.childNodes[0].innerText.trim()),d.value=new i.EditorView({parent:l.value,state:r.EditorState.create({doc:e,extensions:v.value}),dispatch:e=>{d.value&&(d.value.update([e]),!(e.changes.empty||!e.docChanged)&&(c.emit(`update:modelValue`,e.state.doc.toString()),c.emit(`change`,e.state)))}}),await(0,o.nextTick)(),c.emit(`ready`,{view:d.value,state:d.value.state,container:l.value})}),(0,o.onUnmounted)(()=>{d.value&&(d.value.destroy(),c.emit(`destroy`))});let y={editor:l,view:d,cursor:m,selection:p,focus:f,length:g,json:h,diagnosticCount:_,dom:d.value?.contentDOM,lint:()=>{!s.linter||!d.value||(s.forceLinting&&(0,n.forceLinting)(d.value),_.value=(0,n.diagnosticCount)(d.value.state))},forceReconfigure:()=>{d.value?.dispatch({effects:r.StateEffect.reconfigure.of([])}),d.value?.dispatch({effects:r.StateEffect.appendConfig.of(v.value)})},getRange:(e,t)=>d.value?.state.sliceDoc(e,t),getLine:e=>d.value?.state.doc.line(e+1).text,lineCount:()=>d.value?.state.doc.lines??0,getCursor:()=>d.value?.state.selection.main.head??0,listSelections:()=>d.value?.state.selection.ranges??[],getSelection:()=>d.value?d.value.state.sliceDoc(d.value.state.selection.main.from,d.value.state.selection.main.to):``,getSelections:()=>{let e=d.value?.state;return e?e.selection.ranges.map(t=>e.sliceDoc(t.from,t.to)):[]},somethingSelected:()=>d.value?.state.selection.ranges.some(e=>!e.empty)??!1,replaceRange:(e,t,n)=>{d.value&&d.value.dispatch({changes:{from:t,to:n,insert:e}})},replaceSelection:e=>{d.value&&d.value.dispatch(d.value.state.replaceSelection(e))},setCursor:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})},setSelection:(e,t)=>{d.value&&d.value.dispatch({selection:{anchor:e,head:t}})},setSelections:(e,t)=>{d.value&&d.value.dispatch({selection:r.EditorSelection.create(e,t)})},extendSelectionsBy:e=>{d.value&&p.value&&d.value.dispatch({selection:r.EditorSelection.create(p.value.ranges.map(t=>t.extend(e(t))))})}};return c.expose(y),y},render(){return l(this.$props.tag,{ref:`editor`,class:`vue-codemirror`},this.$slots.default?l(`aside`,{style:`display: none;`,"aria-hidden":`true`},u(this.$slots.default)):void 0)}}),f=e=>e.component(`CodeMirror`,d);exports.Meta=s,exports.default=d,exports.install=f;
12
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require(`@codemirror/commands`),t=require(`@codemirror/language`),n=require(`@codemirror/lint`),r=require(`@codemirror/state`),i=require(`@codemirror/view`),a=require(`codemirror`),o=require(`vue-demi`);var s={version:`1.5.2`,date:`2026-05-01T12:27:43.027Z`},c=e=>e?Object.entries(e).reduce((e,[t,n])=>(t=t.charAt(0).toUpperCase()+t.slice(1),t=`on${t}`,{...e,[t]:n}),{}):{};function l(e,t={},n){if(o.isVue2)return(0,o.h)(e,t,n);let{props:r,domProps:i,on:a,...s}=t,l=a?c(a):{};return(0,o.h)(e,{...s,...r,...i,...l},n)}var u=e=>typeof e==`function`?e():e??[],d=(0,o.defineComponent)({name:`CodeMirror`,model:{prop:`modelValue`,event:`update:modelValue`},props:{modelValue:{type:String,default:``},theme:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},indentUnit:{type:String,default:void 0},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,default:!1},gutterConfig:{type:Object,default:void 0},tag:{type:String,default:`div`},scrollIntoView:{type:Boolean,default:!0},preserveScrollPosition:{type:Boolean,default:!1},keymap:{type:Array,default:()=>[]}},emits:{"update:modelValue":(e=``)=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(s,c){let l=(0,o.ref)(),u=(0,o.ref)(s.modelValue),d=(0,o.shallowRef)(void 0),f=(0,o.computed)({get:()=>d.value?.hasFocus??!1,set:e=>{e&&d.value&&d.value.focus()}}),p=(0,o.computed)({get:()=>d.value?.state.selection,set:e=>{d.value&&e&&d.value.dispatch({selection:e})}}),m=(0,o.computed)({get:()=>d.value?.state.selection.main.head??0,set:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})}}),h=(0,o.computed)({get:()=>d.value?.state.toJSON(),set:e=>{d.value&&e&&d.value.setState(r.EditorState.fromJSON(e))}}),g=(0,o.ref)(0),_=(0,o.ref)(0),v=(0,o.computed)(()=>{let o=new r.Compartment,l=new r.Compartment;if(s.basic&&s.minimal)throw Error(`[Vue CodeMirror] Both basic and minimal cannot be specified.`);let u=[];return s.keymap&&s.keymap.length>0&&(u=s.keymap),s.tab&&u.push(e.indentWithTab),[s.basic&&!s.minimal?a.basicSetup:void 0,s.minimal&&!s.basic?a.minimalSetup:void 0,i.EditorView.updateListener.of(e=>{d.value&&(c.emit(`focus`,d.value.hasFocus),g.value=d.value.state.doc?.length,!(e.changes.empty||!e.docChanged)&&(s.linter&&(s.forceLinting&&(0,n.forceLinting)(d.value),_.value=s.linter(d.value).length),c.emit(`update`,e)))}),i.EditorView.theme(s.theme,{dark:s.dark}),s.wrap?i.EditorView.lineWrapping:void 0,s.indentUnit?t.indentUnit.of(s.indentUnit):void 0,r.EditorState.allowMultipleSelections.of(s.allowMultipleSelections),s.tabSize?l.of(r.EditorState.tabSize.of(s.tabSize)):void 0,s.phrases?r.EditorState.phrases.of(s.phrases):void 0,r.EditorState.readOnly.of(s.readonly),i.EditorView.editable.of(!s.disabled),s.lineSeparator?r.EditorState.lineSeparator.of(s.lineSeparator):void 0,s.lang?o.of(s.lang):void 0,s.linter?(0,n.linter)(s.linter,s.linterConfig):void 0,s.linter&&s.gutter?(0,n.lintGutter)(s.gutterConfig):void 0,s.placeholder?(0,i.placeholder)(s.placeholder):void 0,u.length>0?i.keymap.of(u):void 0,...s.extensions].filter(e=>!!e)});(0,o.watch)(v,e=>d.value?.dispatch({effects:r.StateEffect.reconfigure.of(e)}),{immediate:!0}),(0,o.watch)(()=>s.modelValue,async e=>{if(!d.value||d.value.composing||d.value.state.doc.toJSON().join(s.lineSeparator??`
13
+ `)===e)return;let t=!d.value.state.selection.ranges.every(t=>t.anchor<e.length&&t.head<e.length),n={from:0,to:d.value.state.doc.length,insert:e},r=s.preserveScrollPosition?d.value.scrollSnapshot().map(d.value.state.changes(n)):void 0;d.value.dispatch({changes:n,selection:t?{anchor:0,head:0}:d.value.state.selection,scrollIntoView:s.scrollIntoView,effects:r?[r]:void 0})},{immediate:!0}),(0,o.onMounted)(async()=>{if(globalThis.window===void 0||!l.value)return;let e=u.value;l.value.childNodes[0]&&(u.value!==``&&console.warn("[CodeMirror.vue] The <code-mirror> tag contains child elements that overwrite the `v-model` values."),e=l.value.childNodes[0].innerText.trim()),d.value=new i.EditorView({parent:l.value,state:r.EditorState.create({doc:e,extensions:v.value}),dispatch:e=>{d.value&&(d.value.update([e]),!(e.changes.empty||!e.docChanged)&&(c.emit(`update:modelValue`,e.state.doc.toString()),c.emit(`change`,e.state)))}}),await(0,o.nextTick)(),c.emit(`ready`,{view:d.value,state:d.value.state,container:l.value})}),(0,o.onUnmounted)(()=>{d.value&&(d.value.destroy(),c.emit(`destroy`))});let y={editor:l,view:d,cursor:m,selection:p,focus:f,length:g,json:h,diagnosticCount:_,dom:d.value?.contentDOM,lint:()=>{!s.linter||!d.value||(s.forceLinting&&(0,n.forceLinting)(d.value),_.value=(0,n.diagnosticCount)(d.value.state))},forceReconfigure:()=>{d.value?.dispatch({effects:r.StateEffect.reconfigure.of([])}),d.value?.dispatch({effects:r.StateEffect.appendConfig.of(v.value)})},getRange:(e,t)=>d.value?.state.sliceDoc(e,t),getLine:e=>d.value?.state.doc.line(e+1).text,lineCount:()=>d.value?.state.doc.lines??0,getCursor:()=>d.value?.state.selection.main.head??0,listSelections:()=>d.value?.state.selection.ranges??[],getSelection:()=>d.value?d.value.state.sliceDoc(d.value.state.selection.main.from,d.value.state.selection.main.to):``,getSelections:()=>{let e=d.value?.state;return e?e.selection.ranges.map(t=>e.sliceDoc(t.from,t.to)):[]},somethingSelected:()=>d.value?.state.selection.ranges.some(e=>!e.empty)??!1,replaceRange:(e,t,n)=>{d.value&&d.value.dispatch({changes:{from:t,to:n,insert:e}})},replaceSelection:e=>{d.value&&d.value.dispatch(d.value.state.replaceSelection(e))},setCursor:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})},setSelection:(e,t)=>{d.value&&d.value.dispatch({selection:{anchor:e,head:t}})},setSelections:(e,t)=>{d.value&&d.value.dispatch({selection:r.EditorSelection.create(e,t)})},extendSelectionsBy:e=>{d.value&&p.value&&d.value.dispatch({selection:r.EditorSelection.create(p.value.ranges.map(t=>t.extend(e(t))))})}};return c.expose(y),y},render(){return l(this.$props.tag,{ref:`editor`,class:`vue-codemirror`},this.$slots.default?l(`aside`,{style:`display: none;`,"aria-hidden":`true`},u(this.$slots.default)):void 0)}}),f=e=>{e.component(`CodeMirror`,d)};exports.Meta=s,exports.default=d,exports.install=f;
package/dist/index.d.ts CHANGED
@@ -2,9 +2,8 @@ import { LanguageSupport } from '@codemirror/language';
2
2
  import { LintSource } from '@codemirror/lint';
3
3
  import { EditorSelection, EditorState, Extension, SelectionRange, StateField, Text } from '@codemirror/state';
4
4
  import { EditorView, KeyBinding, ViewUpdate } from '@codemirror/view';
5
- import { PropType, Ref, ShallowRef, WritableComputedRef } from 'vue-demi';
5
+ import { App, PropType, Ref, ShallowRef, WritableComputedRef } from 'vue-demi';
6
6
  import { StyleSpec } from 'style-mod';
7
- import { default as Meta } from './src/Meta';
8
7
  /** CodeMirror Component */
9
8
  declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
9
  /** Model value */
@@ -304,7 +303,7 @@ declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPro
304
303
  selection: WritableComputedRef<EditorSelection | undefined, EditorSelection | undefined>;
305
304
  focus: WritableComputedRef<boolean, boolean>;
306
305
  length: Ref<number, number>;
307
- json: WritableComputedRef<Record<string, StateField<any>> | undefined, Record<string, StateField<any>> | undefined>;
306
+ json: WritableComputedRef<Record<string, StateField<unknown>> | undefined, Record<string, StateField<unknown>> | undefined>;
308
307
  diagnosticCount: Ref<number, number>;
309
308
  dom: HTMLElement | undefined;
310
309
  lint: () => void;
@@ -322,7 +321,7 @@ declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPro
322
321
  setCursor: (position: number) => void;
323
322
  setSelection: (anchor: number, head?: number) => void;
324
323
  setSelections: (ranges: readonly SelectionRange[], primary?: number) => void;
325
- extendSelectionsBy: (f: any) => void;
324
+ extendSelectionsBy: (f: (range: SelectionRange) => number) => void;
326
325
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
327
326
  /** Model Update */
328
327
  'update:modelValue': (_value?: string | Text) => true;
@@ -670,5 +669,36 @@ declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPro
670
669
  preserveScrollPosition: boolean;
671
670
  keymap: KeyBinding[];
672
671
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
673
- declare const installCodeMirror: (app: any) => void;
674
- export { CodeMirror as default, installCodeMirror as install, Meta };
672
+ declare const installCodeMirror: (app: App) => void;
673
+ /** Public API exposed from the CodeMirror component instance.
674
+ * Note: Vue 3 auto-unwraps refs on the component instance proxy,
675
+ * so reactive refs appear as their underlying value types here.
676
+ */
677
+ export type CodeMirrorExposed = {
678
+ editor: HTMLElement | undefined;
679
+ view: EditorView | undefined;
680
+ cursor: number;
681
+ selection: EditorSelection | undefined;
682
+ focus: boolean;
683
+ length: number;
684
+ json: Record<string, StateField<unknown>> | undefined;
685
+ diagnosticCount: number;
686
+ dom: Element | undefined;
687
+ lint: () => void;
688
+ forceReconfigure: () => void;
689
+ getRange: (from?: number, to?: number) => string | undefined;
690
+ getLine: (number: number) => string | undefined;
691
+ lineCount: () => number;
692
+ getCursor: () => number;
693
+ listSelections: () => readonly SelectionRange[];
694
+ getSelection: () => string;
695
+ getSelections: () => string[];
696
+ somethingSelected: () => boolean;
697
+ replaceRange: (replacement: string | Text, from: number, to: number) => void;
698
+ replaceSelection: (replacement: string | Text) => void;
699
+ setCursor: (position: number) => void;
700
+ setSelection: (anchor: number, head?: number) => void;
701
+ setSelections: (ranges: readonly SelectionRange[], primary?: number) => void;
702
+ extendSelectionsBy: (f: (range: SelectionRange) => number) => void;
703
+ };
704
+ export { CodeMirror as default, installCodeMirror as install };
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.5.1
8
+ * @version 1.5.2
9
9
  * @see {@link https://github.com/logue/vue-codemirror6}
10
10
  */
11
11
 
@@ -18,8 +18,8 @@ import { basicSetup as p, minimalSetup as m } from "codemirror";
18
18
  import { computed as h, defineComponent as g, h as _, isVue2 as v, nextTick as y, onMounted as b, onUnmounted as x, ref as S, shallowRef as C, watch as w } from "vue-demi";
19
19
  //#region src/Meta.ts
20
20
  var T = {
21
- version: "1.5.1",
22
- date: "2026-04-03T05:31:33.377Z"
21
+ version: "1.5.2",
22
+ date: "2026-05-01T12:27:43.027Z"
23
23
  }, E = (e) => e ? Object.entries(e).reduce((e, [t, n]) => (t = t.charAt(0).toUpperCase() + t.slice(1), t = `on${t}`, {
24
24
  ...e,
25
25
  [t]: n
@@ -34,7 +34,7 @@ function D(e, t = {}, n) {
34
34
  ...s
35
35
  }, n);
36
36
  }
37
- var O = (e) => typeof e == "function" ? e() : e, k = g({
37
+ var O = (e) => typeof e == "function" ? e() : e ?? [], k = g({
38
38
  name: "CodeMirror",
39
39
  model: {
40
40
  prop: "modelValue",
@@ -302,6 +302,8 @@ var O = (e) => typeof e == "function" ? e() : e, k = g({
302
302
  "aria-hidden": "true"
303
303
  }, O(this.$slots.default)) : void 0);
304
304
  }
305
- }), A = (e) => e.component("CodeMirror", k);
305
+ }), A = (e) => {
306
+ e.component("CodeMirror", k);
307
+ };
306
308
  //#endregion
307
309
  export { T as Meta, k as default, A as install };
@@ -5,9 +5,9 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.5.1
8
+ * @version 1.5.2
9
9
  * @see {@link https://github.com/logue/vue-codemirror6}
10
10
  */
11
11
 
12
- var CodeMirror=(function(e,t,n,r,i,a,o,s){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var c={version:`1.5.1`,date:`2026-04-03T05:31:33.377Z`},l=e=>e?Object.entries(e).reduce((e,[t,n])=>(t=t.charAt(0).toUpperCase()+t.slice(1),t=`on${t}`,{...e,[t]:n}),{}):{};function u(e,t={},n){if(s.isVue2)return(0,s.h)(e,t,n);let{props:r,domProps:i,on:a,...o}=t,c=a?l(a):{};return(0,s.h)(e,{...o,...r,...i,...c},n)}var d=e=>typeof e==`function`?e():e,f=(0,s.defineComponent)({name:`CodeMirror`,model:{prop:`modelValue`,event:`update:modelValue`},props:{modelValue:{type:String,default:``},theme:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},indentUnit:{type:String,default:void 0},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,default:!1},gutterConfig:{type:Object,default:void 0},tag:{type:String,default:`div`},scrollIntoView:{type:Boolean,default:!0},preserveScrollPosition:{type:Boolean,default:!1},keymap:{type:Array,default:()=>[]}},emits:{"update:modelValue":(e=``)=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,c){let l=(0,s.ref)(),u=(0,s.ref)(e.modelValue),d=(0,s.shallowRef)(void 0),f=(0,s.computed)({get:()=>d.value?.hasFocus??!1,set:e=>{e&&d.value&&d.value.focus()}}),p=(0,s.computed)({get:()=>d.value?.state.selection,set:e=>{d.value&&e&&d.value.dispatch({selection:e})}}),m=(0,s.computed)({get:()=>d.value?.state.selection.main.head??0,set:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})}}),h=(0,s.computed)({get:()=>d.value?.state.toJSON(),set:e=>{d.value&&e&&d.value.setState(i.EditorState.fromJSON(e))}}),g=(0,s.ref)(0),_=(0,s.ref)(0),v=(0,s.computed)(()=>{let s=new i.Compartment,l=new i.Compartment;if(e.basic&&e.minimal)throw Error(`[Vue CodeMirror] Both basic and minimal cannot be specified.`);let u=[];return e.keymap&&e.keymap.length>0&&(u=e.keymap),e.tab&&u.push(t.indentWithTab),[e.basic&&!e.minimal?o.basicSetup:void 0,e.minimal&&!e.basic?o.minimalSetup:void 0,a.EditorView.updateListener.of(t=>{d.value&&(c.emit(`focus`,d.value.hasFocus),g.value=d.value.state.doc?.length,!(t.changes.empty||!t.docChanged)&&(e.linter&&(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=e.linter(d.value).length),c.emit(`update`,t)))}),a.EditorView.theme(e.theme,{dark:e.dark}),e.wrap?a.EditorView.lineWrapping:void 0,e.indentUnit?n.indentUnit.of(e.indentUnit):void 0,i.EditorState.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?l.of(i.EditorState.tabSize.of(e.tabSize)):void 0,e.phrases?i.EditorState.phrases.of(e.phrases):void 0,i.EditorState.readOnly.of(e.readonly),a.EditorView.editable.of(!e.disabled),e.lineSeparator?i.EditorState.lineSeparator.of(e.lineSeparator):void 0,e.lang?s.of(e.lang):void 0,e.linter?(0,r.linter)(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?(0,r.lintGutter)(e.gutterConfig):void 0,e.placeholder?(0,a.placeholder)(e.placeholder):void 0,u.length>0?a.keymap.of(u):void 0,...e.extensions].filter(e=>!!e)});(0,s.watch)(v,e=>d.value?.dispatch({effects:i.StateEffect.reconfigure.of(e)}),{immediate:!0}),(0,s.watch)(()=>e.modelValue,async t=>{if(!d.value||d.value.composing||d.value.state.doc.toJSON().join(e.lineSeparator??`
13
- `)===t)return;let n=!d.value.state.selection.ranges.every(e=>e.anchor<t.length&&e.head<t.length),r={from:0,to:d.value.state.doc.length,insert:t},i=e.preserveScrollPosition?d.value.scrollSnapshot().map(d.value.state.changes(r)):void 0;d.value.dispatch({changes:r,selection:n?{anchor:0,head:0}:d.value.state.selection,scrollIntoView:e.scrollIntoView,effects:i?[i]:void 0})},{immediate:!0}),(0,s.onMounted)(async()=>{if(globalThis.window===void 0||!l.value)return;let e=u.value;l.value.childNodes[0]&&(u.value!==``&&console.warn("[CodeMirror.vue] The <code-mirror> tag contains child elements that overwrite the `v-model` values."),e=l.value.childNodes[0].innerText.trim()),d.value=new a.EditorView({parent:l.value,state:i.EditorState.create({doc:e,extensions:v.value}),dispatch:e=>{d.value&&(d.value.update([e]),!(e.changes.empty||!e.docChanged)&&(c.emit(`update:modelValue`,e.state.doc.toString()),c.emit(`change`,e.state)))}}),await(0,s.nextTick)(),c.emit(`ready`,{view:d.value,state:d.value.state,container:l.value})}),(0,s.onUnmounted)(()=>{d.value&&(d.value.destroy(),c.emit(`destroy`))});let y={editor:l,view:d,cursor:m,selection:p,focus:f,length:g,json:h,diagnosticCount:_,dom:d.value?.contentDOM,lint:()=>{!e.linter||!d.value||(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=(0,r.diagnosticCount)(d.value.state))},forceReconfigure:()=>{d.value?.dispatch({effects:i.StateEffect.reconfigure.of([])}),d.value?.dispatch({effects:i.StateEffect.appendConfig.of(v.value)})},getRange:(e,t)=>d.value?.state.sliceDoc(e,t),getLine:e=>d.value?.state.doc.line(e+1).text,lineCount:()=>d.value?.state.doc.lines??0,getCursor:()=>d.value?.state.selection.main.head??0,listSelections:()=>d.value?.state.selection.ranges??[],getSelection:()=>d.value?d.value.state.sliceDoc(d.value.state.selection.main.from,d.value.state.selection.main.to):``,getSelections:()=>{let e=d.value?.state;return e?e.selection.ranges.map(t=>e.sliceDoc(t.from,t.to)):[]},somethingSelected:()=>d.value?.state.selection.ranges.some(e=>!e.empty)??!1,replaceRange:(e,t,n)=>{d.value&&d.value.dispatch({changes:{from:t,to:n,insert:e}})},replaceSelection:e=>{d.value&&d.value.dispatch(d.value.state.replaceSelection(e))},setCursor:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})},setSelection:(e,t)=>{d.value&&d.value.dispatch({selection:{anchor:e,head:t}})},setSelections:(e,t)=>{d.value&&d.value.dispatch({selection:i.EditorSelection.create(e,t)})},extendSelectionsBy:e=>{d.value&&p.value&&d.value.dispatch({selection:i.EditorSelection.create(p.value.ranges.map(t=>t.extend(e(t))))})}};return c.expose(y),y},render(){return u(this.$props.tag,{ref:`editor`,class:`vue-codemirror`},this.$slots.default?u(`aside`,{style:`display: none;`,"aria-hidden":`true`},d(this.$slots.default)):void 0)}});return e.Meta=c,e.default=f,e.install=e=>e.component(`CodeMirror`,f),e})({},commands,language,lint,state,view,codemirror,VueDemi);
12
+ var CodeMirror=(function(e,t,n,r,i,a,o,s){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var c={version:`1.5.2`,date:`2026-05-01T12:27:43.027Z`},l=e=>e?Object.entries(e).reduce((e,[t,n])=>(t=t.charAt(0).toUpperCase()+t.slice(1),t=`on${t}`,{...e,[t]:n}),{}):{};function u(e,t={},n){if(s.isVue2)return(0,s.h)(e,t,n);let{props:r,domProps:i,on:a,...o}=t,c=a?l(a):{};return(0,s.h)(e,{...o,...r,...i,...c},n)}var d=e=>typeof e==`function`?e():e??[],f=(0,s.defineComponent)({name:`CodeMirror`,model:{prop:`modelValue`,event:`update:modelValue`},props:{modelValue:{type:String,default:``},theme:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},indentUnit:{type:String,default:void 0},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,default:!1},gutterConfig:{type:Object,default:void 0},tag:{type:String,default:`div`},scrollIntoView:{type:Boolean,default:!0},preserveScrollPosition:{type:Boolean,default:!1},keymap:{type:Array,default:()=>[]}},emits:{"update:modelValue":(e=``)=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,c){let l=(0,s.ref)(),u=(0,s.ref)(e.modelValue),d=(0,s.shallowRef)(void 0),f=(0,s.computed)({get:()=>d.value?.hasFocus??!1,set:e=>{e&&d.value&&d.value.focus()}}),p=(0,s.computed)({get:()=>d.value?.state.selection,set:e=>{d.value&&e&&d.value.dispatch({selection:e})}}),m=(0,s.computed)({get:()=>d.value?.state.selection.main.head??0,set:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})}}),h=(0,s.computed)({get:()=>d.value?.state.toJSON(),set:e=>{d.value&&e&&d.value.setState(i.EditorState.fromJSON(e))}}),g=(0,s.ref)(0),_=(0,s.ref)(0),v=(0,s.computed)(()=>{let s=new i.Compartment,l=new i.Compartment;if(e.basic&&e.minimal)throw Error(`[Vue CodeMirror] Both basic and minimal cannot be specified.`);let u=[];return e.keymap&&e.keymap.length>0&&(u=e.keymap),e.tab&&u.push(t.indentWithTab),[e.basic&&!e.minimal?o.basicSetup:void 0,e.minimal&&!e.basic?o.minimalSetup:void 0,a.EditorView.updateListener.of(t=>{d.value&&(c.emit(`focus`,d.value.hasFocus),g.value=d.value.state.doc?.length,!(t.changes.empty||!t.docChanged)&&(e.linter&&(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=e.linter(d.value).length),c.emit(`update`,t)))}),a.EditorView.theme(e.theme,{dark:e.dark}),e.wrap?a.EditorView.lineWrapping:void 0,e.indentUnit?n.indentUnit.of(e.indentUnit):void 0,i.EditorState.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?l.of(i.EditorState.tabSize.of(e.tabSize)):void 0,e.phrases?i.EditorState.phrases.of(e.phrases):void 0,i.EditorState.readOnly.of(e.readonly),a.EditorView.editable.of(!e.disabled),e.lineSeparator?i.EditorState.lineSeparator.of(e.lineSeparator):void 0,e.lang?s.of(e.lang):void 0,e.linter?(0,r.linter)(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?(0,r.lintGutter)(e.gutterConfig):void 0,e.placeholder?(0,a.placeholder)(e.placeholder):void 0,u.length>0?a.keymap.of(u):void 0,...e.extensions].filter(e=>!!e)});(0,s.watch)(v,e=>d.value?.dispatch({effects:i.StateEffect.reconfigure.of(e)}),{immediate:!0}),(0,s.watch)(()=>e.modelValue,async t=>{if(!d.value||d.value.composing||d.value.state.doc.toJSON().join(e.lineSeparator??`
13
+ `)===t)return;let n=!d.value.state.selection.ranges.every(e=>e.anchor<t.length&&e.head<t.length),r={from:0,to:d.value.state.doc.length,insert:t},i=e.preserveScrollPosition?d.value.scrollSnapshot().map(d.value.state.changes(r)):void 0;d.value.dispatch({changes:r,selection:n?{anchor:0,head:0}:d.value.state.selection,scrollIntoView:e.scrollIntoView,effects:i?[i]:void 0})},{immediate:!0}),(0,s.onMounted)(async()=>{if(globalThis.window===void 0||!l.value)return;let e=u.value;l.value.childNodes[0]&&(u.value!==``&&console.warn("[CodeMirror.vue] The <code-mirror> tag contains child elements that overwrite the `v-model` values."),e=l.value.childNodes[0].innerText.trim()),d.value=new a.EditorView({parent:l.value,state:i.EditorState.create({doc:e,extensions:v.value}),dispatch:e=>{d.value&&(d.value.update([e]),!(e.changes.empty||!e.docChanged)&&(c.emit(`update:modelValue`,e.state.doc.toString()),c.emit(`change`,e.state)))}}),await(0,s.nextTick)(),c.emit(`ready`,{view:d.value,state:d.value.state,container:l.value})}),(0,s.onUnmounted)(()=>{d.value&&(d.value.destroy(),c.emit(`destroy`))});let y={editor:l,view:d,cursor:m,selection:p,focus:f,length:g,json:h,diagnosticCount:_,dom:d.value?.contentDOM,lint:()=>{!e.linter||!d.value||(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=(0,r.diagnosticCount)(d.value.state))},forceReconfigure:()=>{d.value?.dispatch({effects:i.StateEffect.reconfigure.of([])}),d.value?.dispatch({effects:i.StateEffect.appendConfig.of(v.value)})},getRange:(e,t)=>d.value?.state.sliceDoc(e,t),getLine:e=>d.value?.state.doc.line(e+1).text,lineCount:()=>d.value?.state.doc.lines??0,getCursor:()=>d.value?.state.selection.main.head??0,listSelections:()=>d.value?.state.selection.ranges??[],getSelection:()=>d.value?d.value.state.sliceDoc(d.value.state.selection.main.from,d.value.state.selection.main.to):``,getSelections:()=>{let e=d.value?.state;return e?e.selection.ranges.map(t=>e.sliceDoc(t.from,t.to)):[]},somethingSelected:()=>d.value?.state.selection.ranges.some(e=>!e.empty)??!1,replaceRange:(e,t,n)=>{d.value&&d.value.dispatch({changes:{from:t,to:n,insert:e}})},replaceSelection:e=>{d.value&&d.value.dispatch(d.value.state.replaceSelection(e))},setCursor:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})},setSelection:(e,t)=>{d.value&&d.value.dispatch({selection:{anchor:e,head:t}})},setSelections:(e,t)=>{d.value&&d.value.dispatch({selection:i.EditorSelection.create(e,t)})},extendSelectionsBy:e=>{d.value&&p.value&&d.value.dispatch({selection:i.EditorSelection.create(p.value.ranges.map(t=>t.extend(e(t))))})}};return c.expose(y),y},render(){return u(this.$props.tag,{ref:`editor`,class:`vue-codemirror`},this.$slots.default?u(`aside`,{style:`display: none;`,"aria-hidden":`true`},d(this.$slots.default)):void 0)}});return e.Meta=c,e.default=f,e.install=e=>{e.component(`CodeMirror`,f)},e})({},commands,language,lint,state,view,codemirror,VueDemi);
package/dist/index.umd.js CHANGED
@@ -5,9 +5,9 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.5.1
8
+ * @version 1.5.2
9
9
  * @see {@link https://github.com/logue/vue-codemirror6}
10
10
  */
11
11
 
12
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`@codemirror/commands`),require(`@codemirror/language`),require(`@codemirror/lint`),require(`@codemirror/state`),require(`@codemirror/view`),require(`codemirror`),require(`vue-demi`)):typeof define==`function`&&define.amd?define([`exports`,`@codemirror/commands`,`@codemirror/language`,`@codemirror/lint`,`@codemirror/state`,`@codemirror/view`,`codemirror`,`vue-demi`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.CodeMirror={},e.commands,e.language,e.lint,e.state,e.view,e.codemirror,e.VueDemi))})(this,function(e,t,n,r,i,a,o,s){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var c={version:`1.5.1`,date:`2026-04-03T05:31:33.377Z`},l=e=>e?Object.entries(e).reduce((e,[t,n])=>(t=t.charAt(0).toUpperCase()+t.slice(1),t=`on${t}`,{...e,[t]:n}),{}):{};function u(e,t={},n){if(s.isVue2)return(0,s.h)(e,t,n);let{props:r,domProps:i,on:a,...o}=t,c=a?l(a):{};return(0,s.h)(e,{...o,...r,...i,...c},n)}var d=e=>typeof e==`function`?e():e,f=(0,s.defineComponent)({name:`CodeMirror`,model:{prop:`modelValue`,event:`update:modelValue`},props:{modelValue:{type:String,default:``},theme:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},indentUnit:{type:String,default:void 0},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,default:!1},gutterConfig:{type:Object,default:void 0},tag:{type:String,default:`div`},scrollIntoView:{type:Boolean,default:!0},preserveScrollPosition:{type:Boolean,default:!1},keymap:{type:Array,default:()=>[]}},emits:{"update:modelValue":(e=``)=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,c){let l=(0,s.ref)(),u=(0,s.ref)(e.modelValue),d=(0,s.shallowRef)(void 0),f=(0,s.computed)({get:()=>d.value?.hasFocus??!1,set:e=>{e&&d.value&&d.value.focus()}}),p=(0,s.computed)({get:()=>d.value?.state.selection,set:e=>{d.value&&e&&d.value.dispatch({selection:e})}}),m=(0,s.computed)({get:()=>d.value?.state.selection.main.head??0,set:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})}}),h=(0,s.computed)({get:()=>d.value?.state.toJSON(),set:e=>{d.value&&e&&d.value.setState(i.EditorState.fromJSON(e))}}),g=(0,s.ref)(0),_=(0,s.ref)(0),v=(0,s.computed)(()=>{let s=new i.Compartment,l=new i.Compartment;if(e.basic&&e.minimal)throw Error(`[Vue CodeMirror] Both basic and minimal cannot be specified.`);let u=[];return e.keymap&&e.keymap.length>0&&(u=e.keymap),e.tab&&u.push(t.indentWithTab),[e.basic&&!e.minimal?o.basicSetup:void 0,e.minimal&&!e.basic?o.minimalSetup:void 0,a.EditorView.updateListener.of(t=>{d.value&&(c.emit(`focus`,d.value.hasFocus),g.value=d.value.state.doc?.length,!(t.changes.empty||!t.docChanged)&&(e.linter&&(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=e.linter(d.value).length),c.emit(`update`,t)))}),a.EditorView.theme(e.theme,{dark:e.dark}),e.wrap?a.EditorView.lineWrapping:void 0,e.indentUnit?n.indentUnit.of(e.indentUnit):void 0,i.EditorState.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?l.of(i.EditorState.tabSize.of(e.tabSize)):void 0,e.phrases?i.EditorState.phrases.of(e.phrases):void 0,i.EditorState.readOnly.of(e.readonly),a.EditorView.editable.of(!e.disabled),e.lineSeparator?i.EditorState.lineSeparator.of(e.lineSeparator):void 0,e.lang?s.of(e.lang):void 0,e.linter?(0,r.linter)(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?(0,r.lintGutter)(e.gutterConfig):void 0,e.placeholder?(0,a.placeholder)(e.placeholder):void 0,u.length>0?a.keymap.of(u):void 0,...e.extensions].filter(e=>!!e)});(0,s.watch)(v,e=>d.value?.dispatch({effects:i.StateEffect.reconfigure.of(e)}),{immediate:!0}),(0,s.watch)(()=>e.modelValue,async t=>{if(!d.value||d.value.composing||d.value.state.doc.toJSON().join(e.lineSeparator??`
13
- `)===t)return;let n=!d.value.state.selection.ranges.every(e=>e.anchor<t.length&&e.head<t.length),r={from:0,to:d.value.state.doc.length,insert:t},i=e.preserveScrollPosition?d.value.scrollSnapshot().map(d.value.state.changes(r)):void 0;d.value.dispatch({changes:r,selection:n?{anchor:0,head:0}:d.value.state.selection,scrollIntoView:e.scrollIntoView,effects:i?[i]:void 0})},{immediate:!0}),(0,s.onMounted)(async()=>{if(globalThis.window===void 0||!l.value)return;let e=u.value;l.value.childNodes[0]&&(u.value!==``&&console.warn("[CodeMirror.vue] The <code-mirror> tag contains child elements that overwrite the `v-model` values."),e=l.value.childNodes[0].innerText.trim()),d.value=new a.EditorView({parent:l.value,state:i.EditorState.create({doc:e,extensions:v.value}),dispatch:e=>{d.value&&(d.value.update([e]),!(e.changes.empty||!e.docChanged)&&(c.emit(`update:modelValue`,e.state.doc.toString()),c.emit(`change`,e.state)))}}),await(0,s.nextTick)(),c.emit(`ready`,{view:d.value,state:d.value.state,container:l.value})}),(0,s.onUnmounted)(()=>{d.value&&(d.value.destroy(),c.emit(`destroy`))});let y={editor:l,view:d,cursor:m,selection:p,focus:f,length:g,json:h,diagnosticCount:_,dom:d.value?.contentDOM,lint:()=>{!e.linter||!d.value||(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=(0,r.diagnosticCount)(d.value.state))},forceReconfigure:()=>{d.value?.dispatch({effects:i.StateEffect.reconfigure.of([])}),d.value?.dispatch({effects:i.StateEffect.appendConfig.of(v.value)})},getRange:(e,t)=>d.value?.state.sliceDoc(e,t),getLine:e=>d.value?.state.doc.line(e+1).text,lineCount:()=>d.value?.state.doc.lines??0,getCursor:()=>d.value?.state.selection.main.head??0,listSelections:()=>d.value?.state.selection.ranges??[],getSelection:()=>d.value?d.value.state.sliceDoc(d.value.state.selection.main.from,d.value.state.selection.main.to):``,getSelections:()=>{let e=d.value?.state;return e?e.selection.ranges.map(t=>e.sliceDoc(t.from,t.to)):[]},somethingSelected:()=>d.value?.state.selection.ranges.some(e=>!e.empty)??!1,replaceRange:(e,t,n)=>{d.value&&d.value.dispatch({changes:{from:t,to:n,insert:e}})},replaceSelection:e=>{d.value&&d.value.dispatch(d.value.state.replaceSelection(e))},setCursor:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})},setSelection:(e,t)=>{d.value&&d.value.dispatch({selection:{anchor:e,head:t}})},setSelections:(e,t)=>{d.value&&d.value.dispatch({selection:i.EditorSelection.create(e,t)})},extendSelectionsBy:e=>{d.value&&p.value&&d.value.dispatch({selection:i.EditorSelection.create(p.value.ranges.map(t=>t.extend(e(t))))})}};return c.expose(y),y},render(){return u(this.$props.tag,{ref:`editor`,class:`vue-codemirror`},this.$slots.default?u(`aside`,{style:`display: none;`,"aria-hidden":`true`},d(this.$slots.default)):void 0)}});e.Meta=c,e.default=f,e.install=e=>e.component(`CodeMirror`,f)});
12
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`@codemirror/commands`),require(`@codemirror/language`),require(`@codemirror/lint`),require(`@codemirror/state`),require(`@codemirror/view`),require(`codemirror`),require(`vue-demi`)):typeof define==`function`&&define.amd?define([`exports`,`@codemirror/commands`,`@codemirror/language`,`@codemirror/lint`,`@codemirror/state`,`@codemirror/view`,`codemirror`,`vue-demi`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.CodeMirror={},e.commands,e.language,e.lint,e.state,e.view,e.codemirror,e.VueDemi))})(this,function(e,t,n,r,i,a,o,s){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var c={version:`1.5.2`,date:`2026-05-01T12:27:43.027Z`},l=e=>e?Object.entries(e).reduce((e,[t,n])=>(t=t.charAt(0).toUpperCase()+t.slice(1),t=`on${t}`,{...e,[t]:n}),{}):{};function u(e,t={},n){if(s.isVue2)return(0,s.h)(e,t,n);let{props:r,domProps:i,on:a,...o}=t,c=a?l(a):{};return(0,s.h)(e,{...o,...r,...i,...c},n)}var d=e=>typeof e==`function`?e():e??[],f=(0,s.defineComponent)({name:`CodeMirror`,model:{prop:`modelValue`,event:`update:modelValue`},props:{modelValue:{type:String,default:``},theme:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},indentUnit:{type:String,default:void 0},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,default:!1},gutterConfig:{type:Object,default:void 0},tag:{type:String,default:`div`},scrollIntoView:{type:Boolean,default:!0},preserveScrollPosition:{type:Boolean,default:!1},keymap:{type:Array,default:()=>[]}},emits:{"update:modelValue":(e=``)=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,c){let l=(0,s.ref)(),u=(0,s.ref)(e.modelValue),d=(0,s.shallowRef)(void 0),f=(0,s.computed)({get:()=>d.value?.hasFocus??!1,set:e=>{e&&d.value&&d.value.focus()}}),p=(0,s.computed)({get:()=>d.value?.state.selection,set:e=>{d.value&&e&&d.value.dispatch({selection:e})}}),m=(0,s.computed)({get:()=>d.value?.state.selection.main.head??0,set:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})}}),h=(0,s.computed)({get:()=>d.value?.state.toJSON(),set:e=>{d.value&&e&&d.value.setState(i.EditorState.fromJSON(e))}}),g=(0,s.ref)(0),_=(0,s.ref)(0),v=(0,s.computed)(()=>{let s=new i.Compartment,l=new i.Compartment;if(e.basic&&e.minimal)throw Error(`[Vue CodeMirror] Both basic and minimal cannot be specified.`);let u=[];return e.keymap&&e.keymap.length>0&&(u=e.keymap),e.tab&&u.push(t.indentWithTab),[e.basic&&!e.minimal?o.basicSetup:void 0,e.minimal&&!e.basic?o.minimalSetup:void 0,a.EditorView.updateListener.of(t=>{d.value&&(c.emit(`focus`,d.value.hasFocus),g.value=d.value.state.doc?.length,!(t.changes.empty||!t.docChanged)&&(e.linter&&(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=e.linter(d.value).length),c.emit(`update`,t)))}),a.EditorView.theme(e.theme,{dark:e.dark}),e.wrap?a.EditorView.lineWrapping:void 0,e.indentUnit?n.indentUnit.of(e.indentUnit):void 0,i.EditorState.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?l.of(i.EditorState.tabSize.of(e.tabSize)):void 0,e.phrases?i.EditorState.phrases.of(e.phrases):void 0,i.EditorState.readOnly.of(e.readonly),a.EditorView.editable.of(!e.disabled),e.lineSeparator?i.EditorState.lineSeparator.of(e.lineSeparator):void 0,e.lang?s.of(e.lang):void 0,e.linter?(0,r.linter)(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?(0,r.lintGutter)(e.gutterConfig):void 0,e.placeholder?(0,a.placeholder)(e.placeholder):void 0,u.length>0?a.keymap.of(u):void 0,...e.extensions].filter(e=>!!e)});(0,s.watch)(v,e=>d.value?.dispatch({effects:i.StateEffect.reconfigure.of(e)}),{immediate:!0}),(0,s.watch)(()=>e.modelValue,async t=>{if(!d.value||d.value.composing||d.value.state.doc.toJSON().join(e.lineSeparator??`
13
+ `)===t)return;let n=!d.value.state.selection.ranges.every(e=>e.anchor<t.length&&e.head<t.length),r={from:0,to:d.value.state.doc.length,insert:t},i=e.preserveScrollPosition?d.value.scrollSnapshot().map(d.value.state.changes(r)):void 0;d.value.dispatch({changes:r,selection:n?{anchor:0,head:0}:d.value.state.selection,scrollIntoView:e.scrollIntoView,effects:i?[i]:void 0})},{immediate:!0}),(0,s.onMounted)(async()=>{if(globalThis.window===void 0||!l.value)return;let e=u.value;l.value.childNodes[0]&&(u.value!==``&&console.warn("[CodeMirror.vue] The <code-mirror> tag contains child elements that overwrite the `v-model` values."),e=l.value.childNodes[0].innerText.trim()),d.value=new a.EditorView({parent:l.value,state:i.EditorState.create({doc:e,extensions:v.value}),dispatch:e=>{d.value&&(d.value.update([e]),!(e.changes.empty||!e.docChanged)&&(c.emit(`update:modelValue`,e.state.doc.toString()),c.emit(`change`,e.state)))}}),await(0,s.nextTick)(),c.emit(`ready`,{view:d.value,state:d.value.state,container:l.value})}),(0,s.onUnmounted)(()=>{d.value&&(d.value.destroy(),c.emit(`destroy`))});let y={editor:l,view:d,cursor:m,selection:p,focus:f,length:g,json:h,diagnosticCount:_,dom:d.value?.contentDOM,lint:()=>{!e.linter||!d.value||(e.forceLinting&&(0,r.forceLinting)(d.value),_.value=(0,r.diagnosticCount)(d.value.state))},forceReconfigure:()=>{d.value?.dispatch({effects:i.StateEffect.reconfigure.of([])}),d.value?.dispatch({effects:i.StateEffect.appendConfig.of(v.value)})},getRange:(e,t)=>d.value?.state.sliceDoc(e,t),getLine:e=>d.value?.state.doc.line(e+1).text,lineCount:()=>d.value?.state.doc.lines??0,getCursor:()=>d.value?.state.selection.main.head??0,listSelections:()=>d.value?.state.selection.ranges??[],getSelection:()=>d.value?d.value.state.sliceDoc(d.value.state.selection.main.from,d.value.state.selection.main.to):``,getSelections:()=>{let e=d.value?.state;return e?e.selection.ranges.map(t=>e.sliceDoc(t.from,t.to)):[]},somethingSelected:()=>d.value?.state.selection.ranges.some(e=>!e.empty)??!1,replaceRange:(e,t,n)=>{d.value&&d.value.dispatch({changes:{from:t,to:n,insert:e}})},replaceSelection:e=>{d.value&&d.value.dispatch(d.value.state.replaceSelection(e))},setCursor:e=>{d.value&&d.value.dispatch({selection:{anchor:e}})},setSelection:(e,t)=>{d.value&&d.value.dispatch({selection:{anchor:e,head:t}})},setSelections:(e,t)=>{d.value&&d.value.dispatch({selection:i.EditorSelection.create(e,t)})},extendSelectionsBy:e=>{d.value&&p.value&&d.value.dispatch({selection:i.EditorSelection.create(p.value.ranges.map(t=>t.extend(e(t))))})}};return c.expose(y),y},render(){return u(this.$props.tag,{ref:`editor`,class:`vue-codemirror`},this.$slots.default?u(`aside`,{style:`display: none;`,"aria-hidden":`true`},d(this.$slots.default)):void 0)}});e.Meta=c,e.default=f,e.install=e=>{e.component(`CodeMirror`,f)}});
@@ -1,3 +1,3 @@
1
- import { default as MetaInterface } from '../interfaces/MetaInterface';
1
+ import { default as MetaInterface } from './interfaces/MetaInterface';
2
2
  declare const meta: MetaInterface;
3
3
  export default meta;
@@ -1,4 +1,4 @@
1
- import { Slots, VNode, VNodeProps } from 'vue-demi';
1
+ import { Component, VNode, VNodeProps } from 'vue-demi';
2
2
  interface Options extends VNodeProps {
3
3
  class?: string;
4
4
  domProps?: VNodeProps;
@@ -10,6 +10,6 @@ interface Options extends VNodeProps {
10
10
  /**
11
11
  * hDemi function.
12
12
  */
13
- export default function h(type: string | Record<any, any>, options?: Options, chidren?: any): VNode;
14
- export declare const slot: (defaultSlots: any) => Slots;
13
+ export default function h(type: string | Component, options?: Options, children?: VNode | VNode[] | null): VNode;
14
+ export declare const slot: (defaultSlots: (() => VNode[]) | VNode[] | undefined) => VNode[];
15
15
  export {};
@@ -2,9 +2,9 @@ import { LanguageSupport } from '@codemirror/language';
2
2
  import { LintSource } from '@codemirror/lint';
3
3
  import { EditorSelection, EditorState, Extension, SelectionRange, StateField, Text } from '@codemirror/state';
4
4
  import { EditorView, KeyBinding, ViewUpdate } from '@codemirror/view';
5
- import { PropType, Ref, ShallowRef, WritableComputedRef } from 'vue-demi';
5
+ import { App, PropType, Ref, ShallowRef, WritableComputedRef } from 'vue-demi';
6
6
  import { StyleSpec } from 'style-mod';
7
- import { default as Meta } from '../Meta';
7
+ import { default as Meta } from './Meta';
8
8
  /** CodeMirror Component */
9
9
  declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
10
  /** Model value */
@@ -304,7 +304,7 @@ declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPro
304
304
  selection: WritableComputedRef<EditorSelection | undefined, EditorSelection | undefined>;
305
305
  focus: WritableComputedRef<boolean, boolean>;
306
306
  length: Ref<number, number>;
307
- json: WritableComputedRef<Record<string, StateField<any>> | undefined, Record<string, StateField<any>> | undefined>;
307
+ json: WritableComputedRef<Record<string, StateField<unknown>> | undefined, Record<string, StateField<unknown>> | undefined>;
308
308
  diagnosticCount: Ref<number, number>;
309
309
  dom: HTMLElement | undefined;
310
310
  lint: () => void;
@@ -322,7 +322,7 @@ declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPro
322
322
  setCursor: (position: number) => void;
323
323
  setSelection: (anchor: number, head?: number) => void;
324
324
  setSelections: (ranges: readonly SelectionRange[], primary?: number) => void;
325
- extendSelectionsBy: (f: any) => void;
325
+ extendSelectionsBy: (f: (range: SelectionRange) => number) => void;
326
326
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
327
327
  /** Model Update */
328
328
  'update:modelValue': (_value?: string | Text) => true;
@@ -670,5 +670,36 @@ declare const CodeMirror: import('vue').DefineComponent<import('vue').ExtractPro
670
670
  preserveScrollPosition: boolean;
671
671
  keymap: KeyBinding[];
672
672
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
673
- declare const installCodeMirror: (app: any) => void;
673
+ declare const installCodeMirror: (app: App) => void;
674
+ /** Public API exposed from the CodeMirror component instance.
675
+ * Note: Vue 3 auto-unwraps refs on the component instance proxy,
676
+ * so reactive refs appear as their underlying value types here.
677
+ */
678
+ export type CodeMirrorExposed = {
679
+ editor: HTMLElement | undefined;
680
+ view: EditorView | undefined;
681
+ cursor: number;
682
+ selection: EditorSelection | undefined;
683
+ focus: boolean;
684
+ length: number;
685
+ json: Record<string, StateField<unknown>> | undefined;
686
+ diagnosticCount: number;
687
+ dom: Element | undefined;
688
+ lint: () => void;
689
+ forceReconfigure: () => void;
690
+ getRange: (from?: number, to?: number) => string | undefined;
691
+ getLine: (number: number) => string | undefined;
692
+ lineCount: () => number;
693
+ getCursor: () => number;
694
+ listSelections: () => readonly SelectionRange[];
695
+ getSelection: () => string;
696
+ getSelections: () => string[];
697
+ somethingSelected: () => boolean;
698
+ replaceRange: (replacement: string | Text, from: number, to: number) => void;
699
+ replaceSelection: (replacement: string | Text) => void;
700
+ setCursor: (position: number) => void;
701
+ setSelection: (anchor: number, head?: number) => void;
702
+ setSelections: (ranges: readonly SelectionRange[], primary?: number) => void;
703
+ extendSelectionsBy: (f: (range: SelectionRange) => number) => void;
704
+ };
674
705
  export { CodeMirror as default, installCodeMirror as install, Meta };
@@ -1,7 +1,8 @@
1
1
  /** Build information meta data */
2
- export default interface MetaInterface {
2
+ type MetaInterface = {
3
3
  /** Version */
4
4
  version: string;
5
5
  /** Build date */
6
6
  date: string;
7
- }
7
+ };
8
+ export default MetaInterface;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "vue-codemirror6",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "license": "MIT",
6
6
  "description": "CodeMirror6 Component for vue2 and vue3.",
7
7
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  "node": "^20.19.0 || >=22.12.0",
61
61
  "pnpm": ">=10.3.0"
62
62
  },
63
- "packageManager": "pnpm@10.33.0",
63
+ "packageManager": "pnpm@10.33.2",
64
64
  "scripts": {
65
65
  "dev": "vite",
66
66
  "clean": "rimraf node_modules/.vite",
@@ -106,54 +106,57 @@
106
106
  "@codemirror/lang-vue": "^0.1.3",
107
107
  "@codemirror/language": "^6.12.3",
108
108
  "@codemirror/lint": "^6.9.5",
109
- "@codemirror/search": "^6.6.0",
109
+ "@codemirror/search": "^6.7.0",
110
110
  "@codemirror/state": "^6.6.0",
111
- "@codemirror/view": "^6.41.0",
111
+ "@codemirror/view": "^6.41.1",
112
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
113
+ "@eslint/markdown": "^8.0.1",
112
114
  "@tsconfig/node-lts": "^24.0.0",
113
- "@types/node": "^25.5.0",
114
- "@vitejs/plugin-vue": "^6.0.5",
115
- "@vitest/ui": "^4.1.2",
116
- "@vue/compiler-sfc": "^3.5.31",
115
+ "@types/node": "^25.6.0",
116
+ "@vitejs/plugin-vue": "^6.0.6",
117
+ "@vitest/eslint-plugin": "^1.6.16",
118
+ "@vitest/ui": "^4.1.5",
119
+ "@vue/compiler-sfc": "^3.5.33",
117
120
  "@vue/eslint-config-prettier": "^10.2.0",
118
121
  "@vue/eslint-config-typescript": "^14.7.0",
119
- "@vue/test-utils": "^2.4.6",
122
+ "@vue/test-utils": "^2.4.10",
120
123
  "@vue/tsconfig": "^0.9.1",
121
- "@vueuse/core": "^14.2.1",
124
+ "@vueuse/core": "^14.3.0",
122
125
  "bootstrap": "^5.3.8",
123
126
  "codemirror": "^6.0.2",
124
- "eslint": "^10.1.0",
127
+ "eslint": "^10.2.1",
125
128
  "eslint-import-resolver-custom-alias": "^1.3.2",
126
129
  "eslint-import-resolver-typescript": "^4.4.4",
127
- "eslint-linter-browserify": "^10.1.0",
130
+ "eslint-linter-browserify": "^10.2.1",
128
131
  "eslint-plugin-import-x": "^4.16.2",
129
- "eslint-plugin-oxlint": "^1.58.0",
130
- "eslint-plugin-playwright": "^2.10.1",
132
+ "eslint-plugin-oxlint": "^1.62.0",
133
+ "eslint-plugin-playwright": "^2.10.2",
131
134
  "eslint-plugin-security": "^4.0.0",
132
- "eslint-plugin-vue": "^10.8.0",
135
+ "eslint-plugin-vue": "^10.9.0",
133
136
  "eslint-plugin-vuejs-accessibility": "^2.5.0",
134
- "happy-dom": "^20.8.9",
137
+ "happy-dom": "^20.9.0",
135
138
  "husky": "^9.1.7",
136
139
  "jiti": "^2.6.1",
137
140
  "lint-staged": "^16.4.0",
138
141
  "npm-run-all2": "^8.0.4",
139
- "oxlint": "^1.58.0",
140
- "prettier": "^3.8.1",
142
+ "oxlint": "^1.62.0",
143
+ "prettier": "^3.8.3",
141
144
  "rimraf": "^6.1.3",
142
145
  "rollup-plugin-visualizer": "^7.0.1",
143
146
  "sass-embedded": "^1.99.0",
144
147
  "style-mod": "^4.1.3",
145
148
  "supports-color": "^10.2.2",
146
- "typescript": "^6.0.2",
147
- "typescript-eslint": "^8.58.0",
148
- "vite": "^8.0.3",
149
+ "typescript": "^6.0.3",
150
+ "typescript-eslint": "^8.59.1",
151
+ "vite": "^8.0.10",
149
152
  "vite-plugin-banner": "^0.8.1",
150
- "vite-plugin-checker": "^0.12.0",
151
- "vite-plugin-dts": "^4.5.4",
152
- "vitest": "^4.1.2",
153
- "vue": "^3.5.31",
153
+ "vite-plugin-checker": "^0.13.0",
154
+ "vite-plugin-dts": "^5.0.0",
155
+ "vitest": "^4.1.5",
156
+ "vue": "^3.5.33",
154
157
  "vue-eslint-parser": "^10.4.0",
155
158
  "vue-markdown-wasm": "^1.0.1",
156
- "vue-tsc": "^3.2.6"
159
+ "vue-tsc": "^3.2.7"
157
160
  },
158
161
  "husky": {
159
162
  "hooks": {
@@ -165,6 +168,6 @@
165
168
  "*": "prettier -w -u"
166
169
  },
167
170
  "resolutions": {
168
- "js-yaml": ">=4.1.1"
171
+ "lodash": ">=4.18.1"
169
172
  }
170
173
  }