@guolao/vue-monaco-editor
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "@guolao/vue-monaco-editor", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Monaco Editor for Vue 2&3 - use the monaco-editor in any Vue application without needing to use webpack (or rollup/vite) configuration files / plugins", | ||
@@ -55,3 +55,3 @@ "author": { | ||
"esbuild": "^0.17.11", | ||
"monaco-editor": "^0.41.0", | ||
"monaco-editor": "^0.38.0", | ||
"rimraf": "^4.1.2", | ||
@@ -68,3 +68,3 @@ "rollup": "^3.17.2", | ||
"@vue/composition-api": "^1.7.1", | ||
"monaco-editor": "^0.41.0", | ||
"monaco-editor": "^0.38.0", | ||
"vue": "^2.6.14 || >=3.0.0" | ||
@@ -77,3 +77,3 @@ }, | ||
}, | ||
"gitHead": "4189c9682aa00361bd28cf076d0f39d86d63e090" | ||
"gitHead": "4277ebff198addaa46ccfa80f2e13aa8e6787d77" | ||
} |
@@ -40,4 +40,4 @@ # monaco-vue | ||
paths: { | ||
// The default CDN config | ||
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.0/min/vs' | ||
// The recommended CDN config | ||
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.38.0/min/vs' | ||
}, | ||
@@ -51,3 +51,3 @@ }) | ||
```ts | ||
```vue | ||
<template> | ||
@@ -127,9 +127,9 @@ <vue-monaco-editor | ||
| --- | --- | --- | --- | --- | | ||
| value | `string` | | value of the current model, can use `v-model:value` | `v-model:value` | | ||
| language | `string` | | all language of the current model | languages supported by `monaco-editor`, [view here](https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages) | | ||
| path | `string` | | path to the current model | | | ||
| defaultValue | `string` | | default value of the current model | | | ||
| defaultLanguage | `string` | | default language of the current model | languages supported by `monaco-editor` [view here](https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages) | | ||
| defaultPath | `string` | | default path of the current model | `monaco.editor.createModel(..., ..., monaco.Uri.parse(defaultPath))` | | ||
| value | `string` | | value of the current model, can use `v-model:value` | `v-model:value` | | ||
| language | `string` | | language of the current model | languages supported by `monaco-editor` [view here](https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages) | | ||
| path | `string` | | path to the current model | | | ||
| theme | `light` \| `vs-dark` | `light` | theme of the `monaco-editor` | `monaco.editor.defineTheme(...)` | | ||
| theme | `vs` \| `vs-dark` | `vs` | the theme for the monaco editor. | | | ||
| line | `number` | | number of lines to jump to | | | ||
@@ -154,3 +154,2 @@ | options | `object` | `{}` | [IStandaloneEditorConstructionOptions](https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneEditorConstructionOptions.html) | | | ||
| modified | `string` | | The modified source value (right editor) | | ||
| language | `string` | | Language for the both models - original and modified | | ||
| language | `string` | | Language for the both models - original and modified (all languages that are [supported](https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages) by monaco-editor) | | ||
@@ -163,8 +162,8 @@ | originalLanguage | `string` | | This prop gives you the opportunity to specify the language of the original source separately, otherwise, it will get the value of the language property. | | ||
| options | `object` | `{}` | [IStandaloneDiffEditorConstructionOptions](https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneDiffEditorConstructionOptions.html) | | ||
| width | `number` \| `string` | `100%` | container width | | ||
| height | `number` \| `string` | `100%` | container height | | ||
| className | `string` | | container class name | | ||
| onBeforeMount | `(monaco: Monaco) => void` | | execute before the editor instance is created | | ||
| onMount | `(editor: monaco.editor.IStandaloneDiffEditor, monaco: Monaco) => void` | | execute after the editor instance has been created | | ||
| `#default` | `slot` | `'loading...'` | loading status | | ||
| width | `number` \| `string` | `100%` | Container width | | ||
| height | `number` \| `string` | `100%` | Container height | | ||
| className | `string` | | Container class name | | ||
| onBeforeMount | `(monaco: Monaco) => void` | | Execute before the editor instance is created | | ||
| onMount | `(editor: monaco.editor.IStandaloneDiffEditor, monaco: Monaco) => void` | | Execute after the editor instance has been created | | ||
| `#default` | `slot` | `'loading...'` | Loading status | | ||
@@ -217,4 +216,4 @@ ## Hooks | ||
paths: { | ||
// The default CDN config | ||
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs' | ||
// The recommended CDN config | ||
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.38.0/min/vs' | ||
}, | ||
@@ -230,3 +229,3 @@ }) | ||
paths: { | ||
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs' | ||
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.38.0/min/vs' | ||
}, | ||
@@ -233,0 +232,0 @@ }) |
90798
308