@coldsmirk/inkstone-monaco 0.14.0 → 0.15.0

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/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { HighlighterCore } from "@coldsmirk/inkstone-core";
2
2
  import * as monacoEditor from "monaco-editor";
3
3
  import { editor } from "monaco-editor";
4
-
5
4
  //#region src/host.d.ts
6
5
  /**
7
6
  * Supported UI locales for Monaco's built-in chrome (context menu, find widget, command
@@ -65,7 +64,7 @@ interface SwallowedKeybindings {
65
64
  * The keybindings `disableFind` / `disableCommandPalette` swallow: the find/replace widget's
66
65
  * entries (Ctrl/Cmd+F to find; Ctrl+H and Cmd+Alt+F, the per-platform replace bindings) and
67
66
  * the command palette's F1 — Monaco never binds Ctrl+Shift+P (a VS Code binding). Sourced
68
- * from monaco-editor 0.55.1 (`findController.js`, `standaloneCommandsQuickAccess.js`).
67
+ * from monaco-editor 0.56.0 (`findController.js`, `standaloneCommandsQuickAccess.js`).
69
68
  *
70
69
  * Both replace chords are swallowed on every platform rather than branching: `CtrlCmd` already
71
70
  * resolves per platform, and the off-platform chord (Ctrl+Alt+F on Windows, Cmd+H on macOS, where
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ async function applyZhCnCatalog() {
34
34
  const previousMessages = host._VSCODE_NLS_MESSAGES;
35
35
  const previousOwner = registry.owner;
36
36
  const owner = {};
37
- const catalogModule = await import("monaco-editor/esm/nls.messages.zh-cn.js");
37
+ const catalogModule = await import("monaco-editor/nls/lang/zh-cn.js");
38
38
  let catalog = registry.catalogs.get(catalogModule);
39
39
  if (!catalog) {
40
40
  catalog = {
@@ -1,3 +1,3 @@
1
1
  // Worker entry: the CSS language worker (also serves scss/less). See editor.worker.js for
2
2
  // why this indirection exists.
3
- import "monaco-editor/esm/vs/language/css/css.worker.js";
3
+ import "monaco-editor/language/css/css.worker.js";
@@ -2,4 +2,4 @@
2
2
  // this package, so the host can reference it with `new URL("./workers/…", import.meta.url)`
3
3
  // — the only worker form bundlers resolve inside a published dependency (Vite's `?worker`
4
4
  // suffix fails to load from node_modules).
5
- import "monaco-editor/esm/vs/editor/editor.worker.js";
5
+ import "monaco-editor/editor/editor.worker.js";
@@ -1,3 +1,3 @@
1
1
  // Worker entry: the HTML language worker (also serves handlebars/razor). See editor.worker.js
2
2
  // for why this indirection exists.
3
- import "monaco-editor/esm/vs/language/html/html.worker.js";
3
+ import "monaco-editor/language/html/html.worker.js";
@@ -1,2 +1,2 @@
1
1
  // Worker entry: the JSON language worker. See editor.worker.js for why this indirection exists.
2
- import "monaco-editor/esm/vs/language/json/json.worker.js";
2
+ import "monaco-editor/language/json/json.worker.js";
@@ -1,3 +1,3 @@
1
1
  // Worker entry: the TypeScript worker, which also serves JavaScript IntelliSense.
2
2
  // See editor.worker.js for why this indirection exists.
3
- import "monaco-editor/esm/vs/language/typescript/ts.worker.js";
3
+ import "monaco-editor/language/typescript/ts.worker.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coldsmirk/inkstone-monaco",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Framework-agnostic Monaco assembly: lazy offline host (all language workers bundled, no CDN), opt-in Simplified-Chinese UI via monaco's official NLS catalog, a streaming editor controller for AI-typed content, and the shared Shiki highlighting bridge.",
5
5
  "keywords": [
6
6
  "monaco",
@@ -35,14 +35,14 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@shikijs/monaco": "^4.3.1",
39
- "@coldsmirk/inkstone-core": "^0.14.0"
38
+ "@shikijs/monaco": "^4.4.3",
39
+ "@coldsmirk/inkstone-core": "^0.15.0"
40
40
  },
41
41
  "devDependencies": {
42
- "monaco-editor": "^0.55.1"
42
+ "monaco-editor": "^0.56.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "monaco-editor": "^0.55.1"
45
+ "monaco-editor": "^0.56.0"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=24"