nuxt-monaco-editor 1.3.1 → 1.3.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/dist/module.d.mts CHANGED
@@ -11,4 +11,5 @@ interface ModuleOptions {
11
11
  }
12
12
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
13
13
 
14
- export { type ModuleOptions, type MonacoEditorLocale, _default as default };
14
+ export { _default as default };
15
+ export type { ModuleOptions, MonacoEditorLocale };
package/dist/module.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.1.0"
6
6
  },
7
- "version": "1.3.1",
7
+ "version": "1.3.2",
8
8
  "builder": {
9
- "@nuxt/module-builder": "0.8.4",
10
- "unbuild": "2.0.0"
9
+ "@nuxt/module-builder": "1.0.1",
10
+ "unbuild": "3.5.0"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -4,15 +4,6 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
4
4
  import fs from 'fs/promises';
5
5
  import { createRequire } from 'node:module';
6
6
 
7
-
8
-
9
- // -- Unbuild CommonJS Shims --
10
- import __cjs_url__ from 'url';
11
- import __cjs_path__ from 'path';
12
- import __cjs_mod__ from 'module';
13
- const __filename = __cjs_url__.fileURLToPath(import.meta.url);
14
- const __dirname = __cjs_path__.dirname(__filename);
15
- const require = __cjs_mod__.createRequire(import.meta.url);
16
7
  const runtimeDir = fileURLToPath(new URL("./runtime", import.meta.url));
17
8
  const { resolve } = createResolver(runtimeDir);
18
9
  const rewrittenMonacoFiles = /* @__PURE__ */ new Map();
@@ -22,7 +13,7 @@ const plugin = (options, nuxtOptions) => ({
22
13
  name: "vite-plugin-nuxt-monaco-editor",
23
14
  enforce: "pre",
24
15
  resolveId(src) {
25
- if (src.includes("monaco-editor/esm/vs/") && src.endsWith(".js?worker")) {
16
+ if (/monaco-editor\/esm\/vs\/.*\.worker\.js/.test(src)) {
26
17
  return resolveModule(
27
18
  src.replace("?worker", "").replace("__skip_vite", "").replace("node_modules", "").replace(nuxtOptions.app.baseURL, "/").replace(/\/\/+/g, "/").replace(/^\//, "")
28
19
  );
@@ -78,6 +69,7 @@ const getDefaults = (nuxt) => {
78
69
  }
79
70
  };
80
71
  };
72
+ const require = createRequire(import.meta.url);
81
73
  const module = defineNuxtModule({
82
74
  meta: {
83
75
  name: "nuxt-monaco-editor",
@@ -4,117 +4,81 @@
4
4
  </div>
5
5
  </template>
6
6
 
7
- <script lang="ts" setup>
8
- import type * as Monaco from 'monaco-editor'
9
- import { onBeforeUnmount, ref, shallowRef, watch } from 'vue'
10
- import { defu } from 'defu'
11
- import { useMonaco } from './composables'
12
-
13
- interface Props {
14
- /**
15
- * Programming Language (Not a locale for UI);
16
- * overrides `options.language`
17
- */
18
- lang?: string;
19
- /**
20
- * Options passed to the second argument of `monaco.editor.createDiffEditor`
21
- */
22
- options?: Monaco.editor.IStandaloneDiffEditorConstructionOptions;
23
- /**
24
- * The URI that identifies models
25
- */
26
- // eslint-disable-next-line vue/require-default-prop
27
- originalModelUri?: Monaco.Uri;
28
-
29
- /**
30
- * The URI that identifies models
31
- */
32
- // eslint-disable-next-line vue/require-default-prop
33
- modelUri?: Monaco.Uri;
34
-
35
- original?: string;
36
- modelValue?: string;
37
- }
38
-
39
- interface Emits {
40
- (event: 'update:modelValue', value: string): void
41
- (event: 'load', editor: Monaco.editor.IStandaloneDiffEditor): void
42
- }
43
-
44
- const props = withDefaults(defineProps<Props>(), {
45
- lang: () => 'plaintext',
46
- options: () => ({}),
47
- original: () => '',
48
- modelValue: () => ''
49
- })
50
- const emit = defineEmits<Emits>()
51
- const isLoading = ref(true)
52
-
53
- const editorElement = shallowRef<HTMLDivElement>()
54
- const monaco = useMonaco()!
55
-
56
- let editor: Monaco.editor.IStandaloneDiffEditor
57
- let originalModel: Monaco.editor.ITextModel
58
- let modifiedModel: Monaco.editor.ITextModel
59
-
60
- const editorRef = shallowRef<Monaco.editor.IStandaloneDiffEditor>()
61
- const defaultOptions: Monaco.editor.IStandaloneEditorConstructionOptions = {
7
+ <script setup>
8
+ import { onBeforeUnmount, ref, shallowRef, watch } from "vue";
9
+ import { defu } from "defu";
10
+ import { useMonaco } from "./composables";
11
+ const props = defineProps({
12
+ lang: { type: String, required: false, default: () => "plaintext" },
13
+ options: { type: null, required: false, default: () => ({}) },
14
+ originalModelUri: { type: null, required: false },
15
+ modelUri: { type: null, required: false },
16
+ original: { type: String, required: false, default: () => "" },
17
+ modelValue: { type: String, required: false, default: () => "" }
18
+ });
19
+ const emit = defineEmits(["update:modelValue", "load"]);
20
+ const isLoading = ref(true);
21
+ const editorElement = shallowRef();
22
+ const monaco = useMonaco();
23
+ let editor;
24
+ let originalModel;
25
+ let modifiedModel;
26
+ const editorRef = shallowRef();
27
+ const defaultOptions = {
62
28
  automaticLayout: true
63
- }
64
-
29
+ };
65
30
  watch(() => [props.original, props.modelValue], () => {
66
31
  if (originalModel.getValue() !== props.original || modifiedModel.getValue() !== props.modelValue) {
67
- originalModel.setValue(props.original)
68
- modifiedModel.setValue(props.modelValue)
32
+ originalModel.setValue(props.original);
33
+ modifiedModel.setValue(props.modelValue);
69
34
  }
70
- })
71
-
35
+ });
72
36
  watch(() => props.lang, () => {
73
- const originalValue = originalModel?.getValue() || props.original
74
- const modifiedValue = modifiedModel?.getValue() || props.modelValue
75
- if (originalModel) { originalModel.dispose() }
76
- if (modifiedModel) { modifiedModel.dispose() }
77
- originalModel = monaco.editor.createModel(originalValue, props.lang, props.originalModelUri)
78
- modifiedModel = monaco.editor.createModel(modifiedValue, props.lang, props.modelUri)
37
+ const originalValue = originalModel?.getValue() || props.original;
38
+ const modifiedValue = modifiedModel?.getValue() || props.modelValue;
39
+ if (originalModel) {
40
+ originalModel.dispose();
41
+ }
42
+ if (modifiedModel) {
43
+ modifiedModel.dispose();
44
+ }
45
+ originalModel = monaco.editor.createModel(originalValue, props.lang, props.originalModelUri);
46
+ modifiedModel = monaco.editor.createModel(modifiedValue, props.lang, props.modelUri);
79
47
  editor.setModel({
80
48
  original: originalModel,
81
49
  modified: modifiedModel
82
- })
83
- })
84
-
50
+ });
51
+ });
85
52
  watch(() => props.options, () => {
86
- editor?.updateOptions(defu(props.options, defaultOptions))
87
- })
88
-
53
+ editor?.updateOptions(defu(props.options, defaultOptions));
54
+ });
89
55
  defineExpose({
90
56
  /**
91
57
  * Monaco editor instance
92
58
  */
93
59
  $editor: editorRef
94
- })
95
-
60
+ });
96
61
  watch(editorElement, (newValue, oldValue) => {
97
- if (!editorElement.value || oldValue) { return }
98
- editor = monaco.editor.createDiffEditor(editorElement.value!, defu(props.options, defaultOptions))
99
- editorRef.value = editor
100
- originalModel = monaco.editor.createModel(props.original, props.lang, props.originalModelUri)
101
- modifiedModel = monaco.editor.createModel(props.modelValue, props.lang, props.modelUri)
62
+ if (!editorElement.value || oldValue) {
63
+ return;
64
+ }
65
+ editor = monaco.editor.createDiffEditor(editorElement.value, defu(props.options, defaultOptions));
66
+ editorRef.value = editor;
67
+ originalModel = monaco.editor.createModel(props.original, props.lang, props.originalModelUri);
68
+ modifiedModel = monaco.editor.createModel(props.modelValue, props.lang, props.modelUri);
102
69
  editor.setModel({
103
70
  original: originalModel,
104
71
  modified: modifiedModel
105
- })
106
-
72
+ });
107
73
  editor.onDidUpdateDiff(() => {
108
- emit('update:modelValue', editor.getModel()!.modified.getValue())
109
- })
110
-
111
- isLoading.value = false
112
- emit('load', editor)
113
- })
114
-
74
+ emit("update:modelValue", editor.getModel().modified.getValue());
75
+ });
76
+ isLoading.value = false;
77
+ emit("load", editor);
78
+ });
115
79
  onBeforeUnmount(() => {
116
- editor?.dispose()
117
- originalModel?.dispose()
118
- modifiedModel?.dispose()
119
- })
80
+ editor?.dispose();
81
+ originalModel?.dispose();
82
+ modifiedModel?.dispose();
83
+ });
120
84
  </script>
@@ -0,0 +1,50 @@
1
+ import type * as Monaco from 'monaco-editor';
2
+ interface Props {
3
+ /**
4
+ * Programming Language (Not a locale for UI);
5
+ * overrides `options.language`
6
+ */
7
+ lang?: string;
8
+ /**
9
+ * Options passed to the second argument of `monaco.editor.createDiffEditor`
10
+ */
11
+ options?: Monaco.editor.IStandaloneDiffEditorConstructionOptions;
12
+ /**
13
+ * The URI that identifies models
14
+ */
15
+ originalModelUri?: Monaco.Uri;
16
+ /**
17
+ * The URI that identifies models
18
+ */
19
+ modelUri?: Monaco.Uri;
20
+ original?: string;
21
+ modelValue?: string;
22
+ }
23
+ declare var __VLS_1: {};
24
+ type __VLS_Slots = {} & {
25
+ default?: (props: typeof __VLS_1) => any;
26
+ };
27
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
28
+ /**
29
+ * Monaco editor instance
30
+ */
31
+ $editor: import("vue").ShallowRef<Monaco.editor.IStandaloneDiffEditor | undefined, Monaco.editor.IStandaloneDiffEditor | undefined>;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
33
+ "update:modelValue": (value: string) => any;
34
+ load: (editor: Monaco.editor.IStandaloneDiffEditor) => any;
35
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
36
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
37
+ onLoad?: ((editor: Monaco.editor.IStandaloneDiffEditor) => any) | undefined;
38
+ }>, {
39
+ lang: string;
40
+ options: Monaco.editor.IStandaloneDiffEditorConstructionOptions;
41
+ original: string;
42
+ modelValue: string;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
45
+ export default _default;
46
+ type __VLS_WithSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -4,96 +4,65 @@
4
4
  </div>
5
5
  </template>
6
6
 
7
- <script lang="ts" setup>
8
- import * as Monaco from 'monaco-editor'
9
- import { computed, ref, shallowRef, watch, onBeforeUnmount } from 'vue'
10
- import { defu } from 'defu'
11
- import { useMonaco } from './composables'
12
-
13
- interface Props {
14
- /**
15
- * Programming Language (Not a locale for UI);
16
- * overrides `options.language`
17
- */
18
- lang?: string;
19
- /**
20
- * Options passed to the second argument of `monaco.editor.create`
21
- */
22
- options?: Monaco.editor.IStandaloneEditorConstructionOptions;
23
- /**
24
- * The URI that identifies models
25
- */
26
- // eslint-disable-next-line vue/require-default-prop
27
- modelUri?: Monaco.Uri;
28
-
29
- modelValue?: string;
30
- }
31
-
32
- interface Emits {
33
- (event: 'update:modelValue', value: string): void
34
- (event: 'load', editor: Monaco.editor.IStandaloneCodeEditor): void
35
- }
36
-
37
- const props = withDefaults(defineProps<Props>(), {
38
- lang: () => 'plaintext',
39
- options: () => ({}),
40
- modelValue: () => ''
41
- })
42
-
43
- const emit = defineEmits<Emits>()
44
- const isLoading = ref(true)
45
- const lang = computed(() => props.lang || props.options.language)
46
- const editorRef = shallowRef<Monaco.editor.IStandaloneCodeEditor>()
47
- const editorElement = ref<HTMLDivElement>()
48
- const monaco = useMonaco()!
49
- const defaultOptions: Monaco.editor.IStandaloneEditorConstructionOptions = {
7
+ <script setup>
8
+ import { computed, ref, shallowRef, watch, onBeforeUnmount } from "vue";
9
+ import { defu } from "defu";
10
+ import { useMonaco } from "./composables";
11
+ const props = defineProps({
12
+ lang: { type: String, required: false, default: () => "plaintext" },
13
+ options: { type: null, required: false, default: () => ({}) },
14
+ modelUri: { type: null, required: false },
15
+ modelValue: { type: String, required: false, default: () => "" }
16
+ });
17
+ const emit = defineEmits(["update:modelValue", "load"]);
18
+ const isLoading = ref(true);
19
+ const lang = computed(() => props.lang || props.options.language);
20
+ const editorRef = shallowRef();
21
+ const editorElement = ref();
22
+ const monaco = useMonaco();
23
+ const defaultOptions = {
50
24
  automaticLayout: true
51
- }
52
-
53
- let editor: Monaco.editor.IStandaloneCodeEditor
54
- let model: Monaco.editor.ITextModel
55
-
25
+ };
26
+ let editor;
27
+ let model;
56
28
  watch(() => props.modelValue, () => {
57
29
  if (editor?.getValue() !== props.modelValue) {
58
- editor?.setValue(props.modelValue)
30
+ editor?.setValue(props.modelValue);
59
31
  }
60
- })
61
-
32
+ });
62
33
  watch(() => [props.lang, props.modelUri], () => {
63
34
  if (model) {
64
- model.dispose()
35
+ model.dispose();
65
36
  }
66
- model = monaco.editor.createModel(props.modelValue, lang.value, props.modelUri)
67
- editor?.setModel(model)
68
- })
69
-
37
+ model = monaco.editor.createModel(props.modelValue, lang.value, props.modelUri);
38
+ editor?.setModel(model);
39
+ });
70
40
  watch(() => props.options, () => {
71
- editor?.updateOptions(defu(props.options, defaultOptions))
72
- })
73
-
41
+ editor?.updateOptions(defu(props.options, defaultOptions));
42
+ });
74
43
  watch(editorElement, (newValue, oldValue) => {
75
- if (!editorElement.value || oldValue) { return }
76
- editor = monaco.editor.create(editorElement.value!, defu(props.options, defaultOptions))
77
- model = monaco.editor.createModel(props.modelValue, lang.value, props.modelUri)
78
- editorRef.value = editor
79
- editor.layout()
80
- editor.setModel(model)
44
+ if (!editorElement.value || oldValue) {
45
+ return;
46
+ }
47
+ editor = monaco.editor.create(editorElement.value, defu(props.options, defaultOptions));
48
+ model = monaco.editor.createModel(props.modelValue, lang.value, props.modelUri);
49
+ editorRef.value = editor;
50
+ editor.layout();
51
+ editor.setModel(model);
81
52
  editor.onDidChangeModelContent(() => {
82
- emit('update:modelValue', editor.getValue())
83
- })
84
- isLoading.value = false
85
- emit('load', editor)
86
- })
87
-
53
+ emit("update:modelValue", editor.getValue());
54
+ });
55
+ isLoading.value = false;
56
+ emit("load", editor);
57
+ });
88
58
  defineExpose({
89
59
  /**
90
60
  * Monaco editor instance
91
61
  */
92
62
  $editor: editorRef
93
- })
94
-
63
+ });
95
64
  onBeforeUnmount(() => {
96
- editor?.dispose()
97
- model?.dispose()
98
- })
65
+ editor?.dispose();
66
+ model?.dispose();
67
+ });
99
68
  </script>
@@ -0,0 +1,44 @@
1
+ import type * as Monaco from 'monaco-editor';
2
+ interface Props {
3
+ /**
4
+ * Programming Language (Not a locale for UI);
5
+ * overrides `options.language`
6
+ */
7
+ lang?: string;
8
+ /**
9
+ * Options passed to the second argument of `monaco.editor.create`
10
+ */
11
+ options?: Monaco.editor.IStandaloneEditorConstructionOptions;
12
+ /**
13
+ * The URI that identifies models
14
+ */
15
+ modelUri?: Monaco.Uri;
16
+ modelValue?: string;
17
+ }
18
+ declare var __VLS_1: {};
19
+ type __VLS_Slots = {} & {
20
+ default?: (props: typeof __VLS_1) => any;
21
+ };
22
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
23
+ /**
24
+ * Monaco editor instance
25
+ */
26
+ $editor: import("vue").ShallowRef<Monaco.editor.IStandaloneCodeEditor | undefined, Monaco.editor.IStandaloneCodeEditor | undefined>;
27
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
28
+ "update:modelValue": (value: string) => any;
29
+ load: (editor: Monaco.editor.IStandaloneCodeEditor) => any;
30
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
32
+ onLoad?: ((editor: Monaco.editor.IStandaloneCodeEditor) => any) | undefined;
33
+ }>, {
34
+ lang: string;
35
+ options: Monaco.editor.IStandaloneEditorConstructionOptions;
36
+ modelValue: string;
37
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -1,3 +1,4 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import localeData from '__LOCALE_DATA_PATH__'
2
3
 
3
4
  export function _format (message, args) {
@@ -1,2 +1,2 @@
1
- declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
package/dist/types.d.mts CHANGED
@@ -1 +1,3 @@
1
- export { type ModuleOptions, type MonacoEditorLocale, default } from './module.js'
1
+ export { default } from './module.mjs'
2
+
3
+ export { type ModuleOptions, type MonacoEditorLocale } from './module.mjs'
package/package.json CHANGED
@@ -11,21 +11,19 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/e-chan1007/nuxt-monaco-editor.git"
13
13
  },
14
- "version": "1.3.1",
14
+ "version": "1.3.2",
15
15
  "type": "module",
16
16
  "license": "MIT",
17
17
  "exports": {
18
18
  ".": {
19
19
  "import": "./dist/module.mjs",
20
- "require": "./dist/module.cjs",
21
- "types": "./dist/types.d.ts"
20
+ "types": "./dist/types.d.mts"
22
21
  },
23
22
  "./dist/*": {
24
23
  "import": "./dist/*"
25
24
  }
26
25
  },
27
- "main": "./dist/module.cjs",
28
- "types": "./dist/types.d.ts",
26
+ "main": "./dist/module.mjs",
29
27
  "files": [
30
28
  "dist"
31
29
  ],
@@ -47,39 +45,43 @@
47
45
  "loc:build": "jiti scripts/build-loc.ts"
48
46
  },
49
47
  "dependencies": {
50
- "@nuxt/kit": "^3.13.2",
48
+ "@nuxt/kit": "^3.17.5",
51
49
  "defu": "^6.1.4",
52
- "vite-plugin-static-copy": "^2.0.0"
50
+ "vite-plugin-static-copy": "^3.0.2"
53
51
  },
54
52
  "devDependencies": {
55
- "@commitlint/cli": "^19.5.0",
56
- "@commitlint/config-conventional": "^19.5.0",
57
- "@nuxt/module-builder": "0.8.4",
58
- "@nuxt/test-utils": "3.11.0",
59
- "@nuxtjs/eslint-config-typescript": "^12.1.0",
53
+ "@commitlint/cli": "^19.8.1",
54
+ "@commitlint/config-conventional": "^19.8.1",
55
+ "@nuxt/eslint-config": "^1.4.1",
56
+ "@nuxt/module-builder": "1.0.1",
57
+ "@nuxt/test-utils": "3.19.1",
60
58
  "@vue/test-utils": "^2.4.6",
61
- "eslint": "^8.57.1",
62
- "execa": "^9.4.1",
63
- "happy-dom": "^15.7.4",
64
- "husky": "^9.1.6",
65
- "jiti": "^2.3.3",
66
- "monaco-editor": "^0.52.0",
67
- "nuxt": "^3.13.2",
68
- "nuxt-content-twoslash": "^0.1.1",
59
+ "eslint": "^9.29.0",
60
+ "execa": "^9.6.0",
61
+ "happy-dom": "^18.0.1",
62
+ "husky": "^9.1.7",
63
+ "jiti": "^2.4.2",
64
+ "monaco-editor": "^0.52.2",
65
+ "nuxt": "^3.17.5",
66
+ "nuxt-content-twoslash": "^0.1.2",
69
67
  "pinst": "^3.0.0",
70
- "playwright": "^1.48.1",
71
- "playwright-core": "^1.48.1",
68
+ "playwright": "^1.53.0",
69
+ "playwright-core": "^1.53.0",
72
70
  "remark-cli": "^12.0.1",
73
- "remark-lint": "^10.0.0",
74
- "remark-preset-lint-recommended": "^7.0.0",
75
- "shadcn-docs-nuxt": "^0.6.4",
71
+ "remark-lint": "^10.0.1",
72
+ "remark-preset-lint-recommended": "^7.0.1",
73
+ "shadcn-docs-nuxt": "^1.0.3",
76
74
  "standard-version": "^9.5.0",
77
- "typescript": "^5.6.3",
78
- "vitest": "^2.1.3"
75
+ "typescript": "^5.8.3",
76
+ "vitest": "^3.2.4",
77
+ "vue-tsc": "^2.2.10"
79
78
  },
80
79
  "peerDependencies": {
81
80
  "monaco-editor": "*"
82
81
  },
82
+ "resolutions": {
83
+ "@unhead/vue": "^2"
84
+ },
83
85
  "remarkConfig": {
84
86
  "plugins": [
85
87
  "remark-preset-lint-recommended",
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
-
3
- type MonacoEditorLocale = 'cs' | 'de' | 'es' | 'fr' | 'it' | 'ja' | 'ko' | 'pl' | 'pt-br' | 'qps-ploc' | 'ru' | 'tr' | 'zh-hans' | 'zh-hant' | 'en';
4
- interface ModuleOptions {
5
- locale?: MonacoEditorLocale;
6
- removeSourceMaps?: boolean;
7
- componentName?: {
8
- codeEditor?: string;
9
- diffEditor?: string;
10
- };
11
- }
12
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
13
-
14
- export { type ModuleOptions, type MonacoEditorLocale, _default as default };
package/dist/types.d.ts DELETED
@@ -1 +0,0 @@
1
- export { type ModuleOptions, type MonacoEditorLocale, default } from './module'