@cocoar/vue-script-editor 1.16.0 → 1.17.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -83,7 +83,7 @@ var x = {
83
83
  function T() {
84
84
  if (w) return;
85
85
  w = !0;
86
- let e = f.languages.typescript.ScriptTarget.ES2020, t = f.languages.typescript.typescriptDefaults, n = f.languages.typescript.javascriptDefaults, r = f.languages.typescript.ScriptTarget, i = {
86
+ let e = f.typescript.ScriptTarget.ES2020, t = f.typescript.typescriptDefaults, n = f.typescript.javascriptDefaults, r = f.typescript.ScriptTarget, i = {
87
87
  target: r.ES2024 ?? r.ES2023 ?? r.ES2022 ?? r.ES2021 ?? r.ES2020 ?? e,
88
88
  lib: [...C],
89
89
  allowNonTsExtensions: !0
@@ -160,7 +160,7 @@ function F(e, t) {
160
160
  }
161
161
  function I(e, t) {
162
162
  if (!t || e !== "typescript" && e !== "javascript") return;
163
- let n = e === "javascript" ? f.languages.typescript.javascriptDefaults : f.languages.typescript.typescriptDefaults, r = typeof n.getDiagnosticsOptions == "function" ? n.getDiagnosticsOptions() : {}, i = new Set(r.diagnosticCodesToIgnore ?? []);
163
+ let n = e === "javascript" ? f.typescript.javascriptDefaults : f.typescript.typescriptDefaults, r = typeof n.getDiagnosticsOptions == "function" ? n.getDiagnosticsOptions() : {}, i = new Set(r.diagnosticCodesToIgnore ?? []);
164
164
  for (let e of S) i.add(e);
165
165
  n.setDiagnosticsOptions({
166
166
  ...r,
@@ -286,7 +286,7 @@ function L(e) {
286
286
  e.libs().length > 0 && !r && (r = !0, console.warn("[coar-script-editor] extraLibs has entries but language is 'json' — extraLibs are ignored for JSON. Use monaco.languages.json.jsonDefaults.setDiagnosticsOptions for JSON schema configuration."));
287
287
  return;
288
288
  }
289
- let a = i === "javascript" ? f.languages.typescript.javascriptDefaults : f.languages.typescript.typescriptDefaults;
289
+ let a = i === "javascript" ? f.typescript.javascriptDefaults : f.typescript.typescriptDefaults;
290
290
  for (let r of e.libs()) !r.filePath.startsWith("file:///") && !n.has(r.filePath) && (n.add(r.filePath), console.warn(`[coar-script-editor] extraLib filePath '${r.filePath}' does not start with 'file:///' — Monaco will register it but IntelliSense may not pick it up. Prefix with 'file:///' for reliable resolution.`)), t.push(a.addExtraLib(r.content, r.filePath));
291
291
  }
292
292
  d([() => e.language(), () => e.libs()], () => i(), { immediate: !0 }), o(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocoar/vue-script-editor",
3
- "version": "1.16.0",
3
+ "version": "1.17.0-beta.3",
4
4
  "description": "Monaco-based script editor component for Vue 3 with Cocoar Design System styling",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -38,7 +38,8 @@
38
38
  "scripts": {
39
39
  "build": "vite build",
40
40
  "test": "vitest run",
41
- "lint": "eslint src/"
41
+ "lint": "eslint src/",
42
+ "typecheck": "vue-tsc --noEmit"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "monaco-editor": "^0.55.1",