nuxt-monaco-editor 1.1.0 → 1.1.1
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
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.1](https://github.com/e-chan1007/nuxt-monaco-editor/compare/v1.1.0...v1.1.1) (2022-12-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* adjust timings of emitting `load` event ([c7b7796](https://github.com/e-chan1007/nuxt-monaco-editor/commit/c7b7796ec88be107a1d13a0a6c48473b4e858ebf))
|
|
11
|
+
|
|
5
12
|
## [1.1.0](https://github.com/e-chan1007/nuxt-monaco-editor/compare/v1.0.6...v1.1.0) (2022-11-18)
|
|
6
13
|
|
|
7
14
|
|
package/dist/module.json
CHANGED
|
@@ -18,7 +18,7 @@ interface Props {
|
|
|
18
18
|
/**
|
|
19
19
|
* Options passed to the second argument of `monaco.editor.createDiffEditor`
|
|
20
20
|
*/
|
|
21
|
-
options?: Monaco.editor.IStandaloneDiffEditorConstructionOptions
|
|
21
|
+
options?: Monaco.editor.IStandaloneDiffEditorConstructionOptions;
|
|
22
22
|
original?: string;
|
|
23
23
|
modelValue?: string;
|
|
24
24
|
}
|
|
@@ -77,7 +77,6 @@ defineExpose({
|
|
|
77
77
|
onMounted(() => {
|
|
78
78
|
editor = monaco.editor.createDiffEditor(editorElement.value!, props.options)
|
|
79
79
|
editorRef.value = editor
|
|
80
|
-
emit('load', editor)
|
|
81
80
|
originalModel = monaco.editor.createModel(props.original, props.lang)
|
|
82
81
|
modifiedModel = monaco.editor.createModel(props.modelValue, props.lang)
|
|
83
82
|
editor.setModel({
|
|
@@ -90,5 +89,6 @@ onMounted(() => {
|
|
|
90
89
|
})
|
|
91
90
|
|
|
92
91
|
isLoading.value = false
|
|
92
|
+
emit('load', editor)
|
|
93
93
|
})
|
|
94
94
|
</script>
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script lang="ts" setup>
|
|
8
|
-
import { computed } from '@vue/reactivity'
|
|
9
8
|
import type * as Monaco from 'monaco-editor'
|
|
10
|
-
import { onMounted, ref, watch } from 'vue'
|
|
9
|
+
import { computed, onMounted, ref, watch } from 'vue'
|
|
11
10
|
import { useMonaco } from './composables'
|
|
12
11
|
|
|
13
12
|
interface Props {
|
|
@@ -19,7 +18,7 @@ interface Props {
|
|
|
19
18
|
/**
|
|
20
19
|
* Options passed to the second argument of `monaco.editor.create`
|
|
21
20
|
*/
|
|
22
|
-
options?: Monaco.editor.IStandaloneEditorConstructionOptions
|
|
21
|
+
options?: Monaco.editor.IStandaloneEditorConstructionOptions;
|
|
23
22
|
modelValue?: string;
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -69,14 +68,12 @@ defineExpose({
|
|
|
69
68
|
onMounted(() => {
|
|
70
69
|
editor = monaco.editor.create(editorElement.value!, props.options)
|
|
71
70
|
editorRef.value = editor
|
|
72
|
-
emit('load', editor)
|
|
73
71
|
model = monaco.editor.createModel(props.modelValue, lang.value)
|
|
74
72
|
editor.setModel(model)
|
|
75
|
-
|
|
76
73
|
editor.onDidChangeModelContent(() => {
|
|
77
74
|
emit('update:modelValue', editor.getValue())
|
|
78
75
|
})
|
|
79
|
-
|
|
80
76
|
isLoading.value = false
|
|
77
|
+
emit('load', editor)
|
|
81
78
|
})
|
|
82
79
|
</script>
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/e-chan1007/nuxt-monaco-editor.git"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.1.
|
|
14
|
+
"version": "1.1.1",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"exports": {
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
"vite-plugin-static-copy": "^0.12.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@commitlint/cli": "^17.
|
|
49
|
-
"@commitlint/config-conventional": "^17.
|
|
48
|
+
"@commitlint/cli": "^17.3.0",
|
|
49
|
+
"@commitlint/config-conventional": "^17.3.0",
|
|
50
50
|
"@nuxt/module-builder": "latest",
|
|
51
51
|
"@nuxt/test-utils-edge": "latest",
|
|
52
|
-
"@nuxtjs/eslint-config-typescript": "^
|
|
53
|
-
"eslint": "^8.
|
|
52
|
+
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
|
53
|
+
"eslint": "^8.29.0",
|
|
54
54
|
"husky": "^8.0.2",
|
|
55
55
|
"monaco-editor": "^0.34.1",
|
|
56
56
|
"nuxt": "3.0.0",
|
|
57
57
|
"pinst": "^3.0.0",
|
|
58
|
-
"playwright": "^1.28.
|
|
58
|
+
"playwright": "^1.28.1",
|
|
59
59
|
"remark-cli": "^11.0.0",
|
|
60
60
|
"remark-lint": "^9.1.1",
|
|
61
61
|
"remark-preset-lint-recommended": "^6.1.2",
|
|
62
62
|
"standard-version": "^9.5.0",
|
|
63
|
-
"vitest": "^0.25.
|
|
63
|
+
"vitest": "^0.25.6",
|
|
64
64
|
"vuepress": "2.0.0-beta.50"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|