nuxt-monaco-editor 1.1.0 → 1.1.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
@@ -2,6 +2,15 @@
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.2](https://github.com/e-chan1007/nuxt-monaco-editor/compare/v1.1.1...v1.1.2) (2023-01-16)
6
+
7
+ ### [1.1.1](https://github.com/e-chan1007/nuxt-monaco-editor/compare/v1.1.0...v1.1.1) (2022-12-09)
8
+
9
+
10
+ ### Features
11
+
12
+ * adjust timings of emitting `load` event ([c7b7796](https://github.com/e-chan1007/nuxt-monaco-editor/commit/c7b7796ec88be107a1d13a0a6c48473b4e858ebf))
13
+
5
14
  ## [1.1.0](https://github.com/e-chan1007/nuxt-monaco-editor/compare/v1.0.6...v1.1.0) (2022-11-18)
6
15
 
7
16
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 e_chan1007
3
+ Copyright (c) 2022-2023 e_chan1007
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.1.0"
7
+ "version": "1.1.2"
8
8
  }
@@ -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.0",
14
+ "version": "1.1.2",
15
15
  "type": "module",
16
16
  "license": "MIT",
17
17
  "exports": {
@@ -30,38 +30,39 @@
30
30
  "_postinstall": "husky install",
31
31
  "build": "nuxt-module-build",
32
32
  "lint": "eslint --ext .js,.cjs,.mjs,.ts,.cts,.mts,.vue . && remark . -q",
33
- "test": "nuxi test",
33
+ "test": "nuxt test",
34
34
  "prepack": "pinst --disable && nuxt-module-build",
35
35
  "release": "standard-version",
36
- "dev": "nuxi dev playground",
37
- "dev:build": "nuxi build playground",
38
- "dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
39
- "docs:dev": "vuepress dev docs --port 3000",
40
- "docs:build": "vuepress build docs",
41
- "docs:serve": "vuepress serve docs --port 3000"
36
+ "dev": "nuxt dev playground",
37
+ "dev:build": "nuxt build playground",
38
+ "dev:prepare": "nuxt-module-build --stub && nuxt prepare playground",
39
+ "docs:dev": "nuxt dev docs",
40
+ "docs:generate": "nuxt generate docs",
41
+ "docs:prepare": "nuxt prepare docs",
42
+ "docs:preview": "nuxt preview docs"
42
43
  },
43
44
  "dependencies": {
44
45
  "@nuxt/kit": "^3.0.0",
45
- "vite-plugin-static-copy": "^0.12.0"
46
+ "vite-plugin-static-copy": "^0.13.0"
46
47
  },
47
48
  "devDependencies": {
48
- "@commitlint/cli": "^17.2.0",
49
- "@commitlint/config-conventional": "^17.2.0",
49
+ "@commitlint/cli": "^17.4.2",
50
+ "@commitlint/config-conventional": "^17.4.2",
51
+ "@nuxt-themes/docus": "^1.4.5",
50
52
  "@nuxt/module-builder": "latest",
51
53
  "@nuxt/test-utils-edge": "latest",
52
- "@nuxtjs/eslint-config-typescript": "^11.0.0",
53
- "eslint": "^8.27.0",
54
- "husky": "^8.0.2",
54
+ "@nuxtjs/eslint-config-typescript": "^12.0.0",
55
+ "eslint": "^8.32.0",
56
+ "husky": "^8.0.3",
55
57
  "monaco-editor": "^0.34.1",
56
58
  "nuxt": "3.0.0",
57
59
  "pinst": "^3.0.0",
58
- "playwright": "^1.28.0",
60
+ "playwright": "^1.29.2",
59
61
  "remark-cli": "^11.0.0",
60
62
  "remark-lint": "^9.1.1",
61
63
  "remark-preset-lint-recommended": "^6.1.2",
62
64
  "standard-version": "^9.5.0",
63
- "vitest": "^0.25.2",
64
- "vuepress": "2.0.0-beta.50"
65
+ "vitest": "^0.27.1"
65
66
  },
66
67
  "peerDependencies": {
67
68
  "monaco-editor": "*"