vue-codemirror6 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,44 +5,44 @@
5
5
  [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/vue-codemirror6/file/README.md)
6
6
  [![npm version](https://img.shields.io/npm/v/vue-codemirror6.svg)](https://www.npmjs.com/package/vue-codemirror6)
7
7
  [![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/logue/vue-codemirror6)
8
+ [![Twitter Follow](https://img.shields.io/twitter/follow/logue256?style=plastic)](https://twitter.com/logue256)
8
9
 
9
- A component for using [CodeMirror6](https://codemirror.net/6/) with Vue. Unrelated to [surmon-china's vue-codemirror](https://github.com/surmon-china/vue-codemirror), it is for CodeMirror6.
10
+ A component for using [CodeMirror6](https://codemirror.net/6/) with Vue. This component works in both Vue2 and Vue3.
10
11
 
11
12
  ## Usage
12
13
 
13
14
  ```sh
14
- yarn add vue-codemirror6
15
+ yarn add vue-codemirror6 codemirror
15
16
  ```
16
17
 
17
- This component can handle bidirectional binding by `v-model` like a general Vue component.
18
-
19
- When using with Vue 2.6, [@vue/composition-api](https://www.npmjs.com/package/@vue/composition-api) is required separately.
18
+ For Vue 2.7 or below, [@vue/composition-api](https://www.npmjs.com/package/@vue/composition-api) is required separately.
20
19
 
21
20
  ```sh
22
21
  yarn add vue-codemirror6 @vue/composition-api
23
22
  ```
24
23
 
25
- For Vue 2.7 or later, import vue directly like Vue3.
26
-
27
- ### Props
28
-
29
- | Props | Type | Information |
30
- | ---------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31
- | basic | boolean | Use [basicSetup](https://codemirror.net/docs/ref/#codemirror.basicSetup). |
32
- | minimal | boolean | Use [miniSetup](https://codemirror.net/docs/ref/#codemirror.minimalSetup). If a `basic` prop is also specified, that setting will take precedence. |
33
- | dark | boolean | Toggle Darkmode. |
34
- | wrap | boolean | Line text wrapping. see [lineWrapping](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping). |
35
- | tab | boolean | Enables tab indentation. |
36
- | theme | { [selector: string]: StyleSpec } | Specify the theme. For example, if you use [@codemirror/theme-one-dark](https://github.com/codemirror/theme-one-dark), import `oneDark` and put it in this prop. |
37
- | readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
38
- | editable | boolean | When this is set to false, it is similar to `readonly`, except that the cursor is not displayed like the normal pre tag. |
39
- | lang | LanguageSupport | The language you want to have syntax highlighting. see <https://codemirror.net/6/#languages> |
40
- | phrases | Record&lt;string, string&gt; | Specify here if you want to make the displayed character string multilingual. see <https://codemirror.net/6/examples/translate/> |
41
- | extensions | Extension[] | Includes enhancements to extend CodeMirror. |
42
- | linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror / lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
43
- | lintGutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
24
+ This component can handle bidirectional binding by `v-model` like a general Vue component.
44
25
 
45
- Notice: `lang` and `linter` can also be set together in `extensions`. This is defined for usability compatibility with past CodeMirrors.
26
+ ## Props
27
+
28
+ | Props | Type | Information |
29
+ | ---------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
30
+ | basic | boolean | Use [basicSetup](https://codemirror.net/docs/ref/#codemirror.basicSetup). |
31
+ | minimal | boolean | Use [miniSetup](https://codemirror.net/docs/ref/#codemirror.minimalSetup). If a `basic` prop is also specified, that setting will take precedence. |
32
+ | dark | boolean | Toggle Darkmode. |
33
+ | wrap | boolean | Line text wrapping. see [lineWrapping](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping). |
34
+ | tab | boolean | Enables tab indentation. |
35
+ | theme | { [selector: string]: StyleSpec } | Specify the theme. For example, if you use [@codemirror/theme-one-dark](https://github.com/codemirror/theme-one-dark), import `oneDark` and put it in this prop. |
36
+ | readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
37
+ | editable | boolean | When this is set to false, it is similar to `readonly`, except that the cursor is not displayed like the normal pre tag. |
38
+ | lang | LanguageSupport | The language you want to have syntax highlighting. see <https://codemirror.net/6/#languages> |
39
+ | phrases | Record&lt;string, string&gt; | Specify here if you want to make the displayed character string multilingual. see <https://codemirror.net/6/examples/translate/> |
40
+ | extensions | Extension[] | Includes enhancements to extend CodeMirror. |
41
+ | linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
42
+ | lintGutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
43
+ | tag | string | HTML tags used in the component. (Default is `div` tag.) |
44
+
45
+ ⚠ Notice: `lang` and `linter` can also be set together in `extensions`. These are separated for compatibility with previous versions of CodeMirror settings and for typing props.
46
46
 
47
47
  ### Supported Languages
48
48
 
@@ -151,8 +151,8 @@ import { ref, defineComponent, type Ref } from 'vue';
151
151
  import CodeMirror from 'vue-codemirror6';
152
152
 
153
153
  // CodeMirror extensions
154
- import type { LanguageSupport } from '@codemirror/language';
155
154
  import { markdown as md } from '@codemirror/lang-markdown';
155
+ import type { LanguageSupport } from '@codemirror/language';
156
156
  import type { Extension } from '@codemirror/state';
157
157
  import type { ViewUpdate } from '@codemirror/view';
158
158
 
@@ -163,6 +163,7 @@ export default defineComponent({
163
163
  setup() {
164
164
  /**
165
165
  * Get Vuetify instance
166
+ *
166
167
  * @see {@link https://github.com/logue/vite-vue2-vuetify-ts-starter | vite-vue2-vuetify-ts-starter}
167
168
  */
168
169
  const vuetify = useVuetify();
@@ -192,12 +193,14 @@ export default defineComponent({
192
193
  const phrases: Ref<Record<string, string>> = ref({
193
194
  // @codemirror/view
194
195
  'Control character': '制御文字',
195
- // @codemirror/fold
196
+ // @codemirror/commands
197
+ 'Selection deleted': '選択を削除',
198
+ // @codemirror/language
196
199
  'Folded lines': '折り畳まれた行',
197
200
  'Unfolded lines': '折り畳める行',
198
201
  to: '行き先',
199
202
  'folded code': '折り畳まれたコード',
200
- unfold: '折り畳む解除',
203
+ unfold: '折り畳みを解除',
201
204
  'Fold line': '行を折り畳む',
202
205
  'Unfold line': '行の折り畳む解除',
203
206
  // @codemirror/search
@@ -209,12 +212,17 @@ export default defineComponent({
209
212
  previous: '▲',
210
213
  all: 'すべて',
211
214
  'match case': '一致条件',
215
+ 'by word': '全文検索',
212
216
  regexp: '正規表現',
213
217
  replace: '置き換え',
214
218
  'replace all': 'すべてを置き換え',
215
219
  close: '閉じる',
216
220
  'current match': '現在の一致',
221
+ 'replaced $ matches': '$ 件の一致を置き換え',
222
+ 'replaced match on line $': '$ 行の一致を置き換え',
217
223
  'on line': 'した行',
224
+ // @codemirror/autocomplete
225
+ Completions: '自動補完',
218
226
  // @codemirror/lint
219
227
  Diagnostics: 'エラー',
220
228
  'No diagnostics': 'エラーなし',
@@ -236,39 +244,44 @@ export default defineComponent({
236
244
 
237
245
  ## Events
238
246
 
239
- | Event | Description |
240
- | ------- | ---------------------------------------------------------------------------------- |
241
- | ready | When CodeMirror loaded. |
242
- | focus | When focus changed. |
243
- | update | When CodeMirror state changed |
244
- | changed | Value changed. (Please implement with `v-model` unless there is a special reason.) |
247
+ | Event | Description |
248
+ | ------- | ------------------------------------------------------------------------------------------------------------- |
249
+ | ready | When CodeMirror loaded. |
250
+ | focus | When focus changed. |
251
+ | update | When CodeMirror state changed. Returns [ViewUpdate](https://codemirror.net/docs/ref/#view.ViewUpdate) object. |
252
+ | changed | Value changed. (Please implement with `v-model` unless there is a special reason.) |
245
253
 
246
254
  ## Methods
247
255
 
248
- | Method | Description |
249
- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
250
- | selection | Get and set the [EditorSelection](https://codemirror.net/docs/ref/#state.EditorSelection) instance. |
251
- | cursor | Get and set the cursor location. |
252
- | state | Get and set [EditorState](https://codemirror.net/docs/ref/#state.EditorState). |
253
- | focus | Get and set focus. |
254
- | getRange(from?: number, to?: number) | Get the text between the given points in the editor. |
255
- | getLine(number: number) | Get the content of line. |
256
- | lineCount() | Get the number of lines in the editor. |
257
- | getCursor() | Retrieve one end of the primary selection. |
258
- | listSelections() | Retrieves a list of all current selections. |
259
- | getSelection() | Get the currently selected code. |
260
- | getSelections() | The length of the given array should be the same as the number of active selections. |
261
- | somethingSelected() | Return true if any text is selected. |
262
- | replaceRange(replacement: string \| Text, from: number, to: number) | Replace the part of the document between from and to with the given string. |
263
- | replaceSelection(replacement: string \| Text) | Replace the selection(s) with the given string. |
264
- | setCursor(position: number) | Set the cursor position. |
265
- | setSelection(anchor: number, head?: number) | Set a single selection range. |
266
- | setSelections(ranges: readonly SelectionRange[], primary?: number) | Sets a new set of selections. |
267
- | extendSelectionsBy(f: Function) | Applies the given function to all existing selections, and calls extendSelections on the result. |
256
+ | Method | Description |
257
+ | --------- | --------------------------------------------------------------------------------------------------- |
258
+ | selection | Get and set the [EditorSelection](https://codemirror.net/docs/ref/#state.EditorSelection) instance. |
259
+ | cursor | Get and set the [cursor](https://codemirror.net/docs/ref/#state.EditorSelection^cursor) location. |
260
+ | state | Get and set [EditorState](https://codemirror.net/docs/ref/#state.EditorState). |
261
+ | focus | Get and set [focus](https://codemirror.net/docs/ref/#view.EditorView.focus). |
262
+
263
+ The instructions below are compatible methods for those familiar with [codemirror5](https://codemirror.net/5/). Since the above method is usually sufficient, its active use is not recommended.
264
+
265
+ | Method | Description |
266
+ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
267
+ | getRange(from?: number, to?: number) | Get the text between the given points in the editor. |
268
+ | getLine(number: number) | Get the content of line. |
269
+ | lineCount() | Get the number of lines in the editor. |
270
+ | getCursor() | Retrieve one end of the primary selection. |
271
+ | listSelections() | Retrieves a list of all current selections. |
272
+ | getSelection() | Get the currently selected code. |
273
+ | getSelections() | The length of the given array should be the same as the number of active selections. |
274
+ | somethingSelected() | Return true if any text is selected. |
275
+ | replaceRange(replacement: string \| Text, from: number, to: number) | Replace the part of the document between from and to with the given string. |
276
+ | replaceSelection(replacement: string \| Text) | Replace the selection(s) with the given string. |
277
+ | setCursor(position: number) | Set the cursor position. |
278
+ | setSelection(anchor: number, head?: number) | Set a single selection range. |
279
+ | setSelections(ranges: readonly SelectionRange[], primary?: number) | Sets a new set of selections. |
280
+ | extendSelectionsBy(f: Function) | Applies the given function to all existing selections, and calls extendSelections on the result. |
268
281
 
269
282
  ## Recommendations
270
283
 
271
- Since CodeMirror has a relatively large capacity, when using vite, it is recommended to set it to output as a separate file using the [`manualChunks`](https://vitejs.dev/guide/build.html#chunking-strategy) option at build time as shown below.
284
+ Since CodeMirror has a relatively large capacity, when using [vite](https://vitejs.dev), it is recommended to set it to output as a separate file using the [`manualChunks`](https://vitejs.dev/guide/build.html#chunking-strategy) option at build time as shown below.
272
285
 
273
286
  ```ts
274
287
  const config: UserConfig = {
package/dist/Meta.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import type MetaInterface from '@/interfaces/MetaInterface';
2
+ declare const meta: MetaInterface;
3
+ export default meta;
4
+ //# sourceMappingURL=Meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../src/Meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAG5D,QAAA,MAAM,IAAI,EAAE,aAGX,CAAC;AACF,eAAe,IAAI,CAAC"}
@@ -141,9 +141,14 @@ declare const _default: import("vue-demi").DefineComponent<{
141
141
  type: BooleanConstructor;
142
142
  defalt: boolean;
143
143
  };
144
+ /** Using tag */
145
+ tag: {
146
+ type: StringConstructor;
147
+ default: string;
148
+ };
144
149
  }, {
145
150
  context: SetupContext<CodeMirrorEmitsOptions>;
146
- editor: Ref<Element | undefined>;
151
+ editor: Ref<HTMLElement | undefined>;
147
152
  cursor: Ref<number>;
148
153
  selection: Ref<EditorSelection>;
149
154
  state: Ref<EditorState>;
@@ -279,6 +284,11 @@ declare const _default: import("vue-demi").DefineComponent<{
279
284
  type: BooleanConstructor;
280
285
  defalt: boolean;
281
286
  };
287
+ /** Using tag */
288
+ tag: {
289
+ type: StringConstructor;
290
+ default: string;
291
+ };
282
292
  }>> & {
283
293
  [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
284
294
  }, {
@@ -298,6 +308,7 @@ declare const _default: import("vue-demi").DefineComponent<{
298
308
  lang: LanguageSupport;
299
309
  linter: LintSource;
300
310
  lintGutter: boolean;
311
+ tag: string;
301
312
  }>;
302
313
  export default _default;
303
314
  //# sourceMappingURL=CodeMirror.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CodeMirror.d.ts","sourceRoot":"","sources":["../../src/components/CodeMirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,GAAG,EACR,KAAK,YAAY,EAElB,MAAM,UAAU,CAAC;AAOlB,OAAO,EAAE,eAAe,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAKtD,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,IAAI,EAEL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAqB;AACrB,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,mBAAmB;IACnB,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;AAhIpB,wBAwbG"}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * h-demi - h function for Vue 2 and 3
3
+ *
4
+ * @see {@link https://github.com/vueuse/vue-demi/issues/65}
5
+ */
1
6
  import { type VNode } from 'vue-demi';
2
7
  interface Options {
3
8
  class?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"h-demi.d.ts","sourceRoot":"","sources":["../../src/helpers/h-demi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAEhE,UAAU,OAAO;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAWD,QAAA,MAAM,CAAC,SACC,MAAM,GAAG,OAAO,GAAG,EAAE,GAAG,CAAC,YACtB,OAAO,YACN,GAAG,KACZ,KAcF,CAAC;AAEF,QAAA,MAAM,IAAI,iBAAkB,GAAG,QACoC,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,CAAC,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"h-demi.d.ts","sourceRoot":"","sources":["../../src/helpers/h-demi.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsB,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAEhE,UAAU,OAAO;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAWD,QAAA,MAAM,CAAC,SACC,MAAM,GAAG,OAAO,GAAG,EAAE,GAAG,CAAC,YACtB,OAAO,YACN,GAAG,KACZ,KAcF,CAAC;AAEF,QAAA,MAAM,IAAI,iBAAkB,GAAG,QACoC,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,CAAC,IAAI,OAAO,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import CodeMirror from './components/CodeMirror';
2
+ import Meta from './Meta';
2
3
  declare const installCodeMirror: (app: any) => any;
3
- export { CodeMirror as default, installCodeMirror as install };
4
+ export { CodeMirror as default, installCodeMirror as install, Meta };
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAGjD,QAAA,MAAM,iBAAiB,QAAS,GAAG,QAA4C,CAAC;AAEhF,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAG1B,QAAA,MAAM,iBAAiB,QAAS,GAAG,QAA4C,CAAC;AAEhF,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,IAAI,EAAE,CAAC"}