stream-monaco 0.0.19 → 0.0.21

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.
@@ -1,16 +1,35 @@
1
- import { __export, __reExport } from "./chunk-CHLpw0oG.js";
2
- import * as _monaco from "monaco-editor/esm/vs/editor/editor.api";
3
- import { Highlighter, SpecialTheme, ThemeInput } from "shiki";
4
1
  import * as monaco_editor0 from "monaco-editor";
5
- import * as monaco$1 from "monaco-editor";
2
+ import * as monaco from "monaco-editor";
3
+ import { Highlighter, SpecialTheme, ThemeInput } from "shiki";
6
4
 
7
5
  //#region src/type.d.ts
8
6
  type ShikiHighlighter = Highlighter | any;
9
- type MonacoEditorInstance = monaco$1.editor.IStandaloneCodeEditor;
10
- type MonacoDiffEditorInstance = monaco$1.editor.IStandaloneDiffEditor;
7
+ type MonacoEditorInstance = monaco.editor.IStandaloneCodeEditor;
8
+ type MonacoDiffEditorInstance = monaco.editor.IStandaloneDiffEditor;
11
9
  type MonacoTheme = 'andromeeda' | 'aurora-x' | 'ayu-dark' | 'catppuccin-frappe' | 'catppuccin-latte' | 'catppuccin-macchiato' | 'catppuccin-mocha' | 'dark-plus' | 'dracula' | 'dracula-soft' | 'everforest-dark' | 'everforest-light' | 'github-dark' | 'github-dark-default' | 'github-dark-dimmed' | 'github-dark-high-contrast' | 'github-light' | 'github-light-default' | 'github-light-high-contrast' | 'gruvbox-dark-hard' | 'gruvbox-dark-medium' | 'gruvbox-dark-soft' | 'gruvbox-light-hard' | 'gruvbox-light-medium' | 'gruvbox-light-soft' | 'houston' | 'kanagawa-dragon' | 'kanagawa-lotus' | 'kanagawa-wave' | 'laserwave' | 'light-plus' | 'material-theme' | 'material-theme-darker' | 'material-theme-lighter' | 'material-theme-ocean' | 'material-theme-palenight' | 'min-dark' | 'min-light' | 'monokai' | 'night-owl' | 'nord' | 'one-dark-pro' | 'one-light' | 'plastic' | 'poimandres' | 'red' | 'rose-pine' | 'rose-pine-dawn' | 'rose-pine-moon' | 'slack-dark' | 'slack-ochin' | 'snazzy-light' | 'solarized-dark' | 'solarized-light' | 'synthwave-84' | 'tokyo-night' | 'vesper' | 'vitesse-black' | 'vitesse-dark' | 'vitesse-light' | ThemeInput | string | SpecialTheme;
12
10
  type MonacoLanguage = 'abap' | 'actionscript-3' | 'ada' | 'angular-html' | 'angular-ts' | 'apache' | 'apex' | 'apl' | 'applescript' | 'ara' | 'asciidoc' | 'asm' | 'astro' | 'awk' | 'ballerina' | 'bat' | 'beancount' | 'berry' | 'bibtex' | 'bicep' | 'blade' | 'bsl' | 'c' | 'cadence' | 'cairo' | 'clarity' | 'clojure' | 'cmake' | 'cobol' | 'codeowners' | 'codeql' | 'coffee' | 'common-lisp' | 'coq' | 'cpp' | 'crystal' | 'csharp' | 'css' | 'csv' | 'cue' | 'cypher' | 'd' | 'dart' | 'dax' | 'desktop' | 'diff' | 'docker' | 'dotenv' | 'dream-maker' | 'edge' | 'elixir' | 'elm' | 'emacs-lisp' | 'erb' | 'erlang' | 'fennel' | 'fish' | 'fluent' | 'fortran-fixed-form' | 'fortran-free-form' | 'fsharp' | 'gdresource' | 'gdscript' | 'gdshader' | 'genie' | 'gherkin' | 'git-commit' | 'git-rebase' | 'gleam' | 'glimmer-js' | 'glimmer-ts' | 'glsl' | 'gnuplot' | 'go' | 'graphql' | 'groovy' | 'hack' | 'haml' | 'handlebars' | 'haskell' | 'haxe' | 'hcl' | 'hjson' | 'hlsl' | 'html' | 'html-derivative' | 'http' | 'hxml' | 'hy' | 'imba' | 'ini' | 'java' | 'javascript' | 'jinja' | 'jison' | 'json' | 'json5' | 'jsonc' | 'jsonl' | 'jsonnet' | 'jssm' | 'jsx' | 'julia' | 'kotlin' | 'kusto' | 'latex' | 'lean' | 'less' | 'liquid' | 'llvm' | 'log' | 'logo' | 'lua' | 'luau' | 'make' | 'markdown' | 'marko' | 'matlab' | 'mdc' | 'mdx' | 'mermaid' | 'mipsasm' | 'mojo' | 'move' | 'narrat' | 'nextflow' | 'nginx' | 'nim' | 'nix' | 'nushell' | 'objective-c' | 'objective-cpp' | 'ocaml' | 'pascal' | 'perl' | 'php' | 'plsql' | 'po' | 'polar' | 'postcss' | 'powerquery' | 'powershell' | 'prisma' | 'prolog' | 'proto' | 'pug' | 'puppet' | 'purescript' | 'python' | 'qml' | 'qmldir' | 'qss' | 'r' | 'racket' | 'raku' | 'razor' | 'reg' | 'regexp' | 'rel' | 'riscv' | 'rst' | 'ruby' | 'rust' | 'sas' | 'sass' | 'scala' | 'scheme' | 'scss' | 'sdbl' | 'shaderlab' | 'shellscript' | 'shellsession' | 'smalltalk' | 'solidity' | 'soy' | 'sparql' | 'splunk' | 'sql' | 'ssh-config' | 'stata' | 'stylus' | 'svelte' | 'swift' | 'system-verilog' | 'systemd' | 'talonscript' | 'tasl' | 'tcl' | 'templ' | 'terraform' | 'tex' | 'toml' | 'ts-tags' | 'tsv' | 'tsx' | 'turtle' | 'twig' | 'typescript' | 'typespec' | 'typst' | 'v' | 'vala' | 'vb' | 'verilog' | 'vhdl' | 'viml' | 'vue' | 'vue-html' | 'vyper' | 'wasm' | 'wenyan' | 'wgsl' | 'wikitext' | 'wit' | 'wolfram' | 'xml' | 'xsl' | 'yaml' | 'zenscript' | 'zig' | string;
13
- interface MonacoOptions extends monaco$1.editor.IStandaloneEditorConstructionOptions {
11
+ type DiffHideUnchangedRegions = boolean | NonNullable<monaco.editor.IDiffEditorConstructionOptions['hideUnchangedRegions']>;
12
+ type DiffLineStyle = 'background' | 'bar';
13
+ type DiffAppearance = 'auto' | 'light' | 'dark';
14
+ type DiffUnchangedRegionStyle = 'line-info' | 'line-info-basic' | 'metadata' | 'simple';
15
+ interface DiffModels {
16
+ original: monaco.editor.ITextModel | null;
17
+ modified: monaco.editor.ITextModel | null;
18
+ }
19
+ interface DiffModelPair {
20
+ original: monaco.editor.ITextModel;
21
+ modified: monaco.editor.ITextModel;
22
+ }
23
+ interface DiffModelTransitionOptions {
24
+ codeLanguage?: MonacoLanguage;
25
+ preserveViewState?: boolean;
26
+ }
27
+ interface DiffCodeValue {
28
+ original: string;
29
+ modified: string;
30
+ }
31
+ type MonacoCodeValue = string | DiffCodeValue | null;
32
+ interface MonacoOptions extends monaco.editor.IStandaloneEditorConstructionOptions, monaco.editor.IDiffEditorConstructionOptions {
14
33
  MAX_HEIGHT?: number | string;
15
34
  readOnly?: boolean;
16
35
  themes?: MonacoTheme[];
@@ -52,7 +71,36 @@ interface MonacoOptions extends monaco$1.editor.IStandaloneEditorConstructionOpt
52
71
  *
53
72
  * Default: `true`
54
73
  */
55
- diffHideUnchangedRegions?: boolean | NonNullable<monaco$1.editor.IDiffEditorConstructionOptions['hideUnchangedRegions']>;
74
+ diffHideUnchangedRegions?: DiffHideUnchangedRegions;
75
+ /**
76
+ * Controls how changed lines are visually emphasized in the diff editor.
77
+ * - `background`: richer filled blocks for added/removed lines
78
+ * - `bar`: subtler fill with stronger leading bars, closer to review UIs
79
+ *
80
+ * Default: `background`
81
+ */
82
+ diffLineStyle?: DiffLineStyle;
83
+ /**
84
+ * Controls the overall chrome appearance of the diff editor shell.
85
+ * - `auto`: infer light/dark appearance from the active Monaco theme
86
+ * - `light`: force light diff chrome
87
+ * - `dark`: force dark diff chrome
88
+ *
89
+ * Token colors still follow the active Monaco/Shiki theme.
90
+ *
91
+ * Default: `auto`
92
+ */
93
+ diffAppearance?: DiffAppearance;
94
+ /**
95
+ * Controls how collapsed unchanged regions are rendered in the diff editor.
96
+ * - `line-info`: line-info bars with line-number-width reveal buttons
97
+ * - `line-info-basic`: legacy line-info bars with full-width reveal rail
98
+ * - `metadata`: unified-diff-style hunk metadata such as `@@ -59,9 +59,11 @@`
99
+ * - `simple`: minimal gray placeholder bar without text
100
+ *
101
+ * Default: `line-info`
102
+ */
103
+ diffUnchangedRegionStyle?: DiffUnchangedRegionStyle;
56
104
  /**
57
105
  * Enable hover actions for each diff hunk split part (upper/lower):
58
106
  * local `revert` and `stage`.
@@ -68,7 +116,7 @@ interface MonacoOptions extends monaco$1.editor.IStandaloneEditorConstructionOpt
68
116
  * Optional interception callback for hunk hover actions.
69
117
  * Return `false` to prevent the built-in model edit behavior.
70
118
  */
71
- onDiffHunkAction?: (context: DiffHunkActionContext) => void | boolean;
119
+ onDiffHunkAction?: (context: DiffHunkActionContext) => void | boolean | Promise<void | boolean>;
72
120
  /**
73
121
  * Debounce time (ms) to coalesce multiple reveal requests into a single
74
122
  * reveal. Useful for streaming/append scenarios. Default: 75
@@ -116,7 +164,7 @@ interface MonacoOptions extends monaco$1.editor.IStandaloneEditorConstructionOpt
116
164
  * library will fall back to full `setValue` instead of attempting minimal edit.
117
165
  */
118
166
  minimalEditMaxChangeRatio?: number;
119
- onBeforeCreate?: (monaco: typeof monaco_editor0) => monaco$1.IDisposable[];
167
+ onBeforeCreate?: (monaco: typeof monaco_editor0) => monaco.IDisposable[];
120
168
  /**
121
169
  * Optional callback that is invoked after a theme change has been applied.
122
170
  * This callback will be awaited when possible so callers can track completion
@@ -134,9 +182,35 @@ type DiffHunkSide = 'upper' | 'lower';
134
182
  interface DiffHunkActionContext {
135
183
  action: DiffHunkActionKind;
136
184
  side: DiffHunkSide;
137
- lineChange: monaco$1.editor.ILineChange;
138
- originalModel: monaco$1.editor.ITextModel;
139
- modifiedModel: monaco$1.editor.ITextModel;
185
+ lineChange: monaco.editor.ILineChange;
186
+ originalModel: monaco.editor.ITextModel;
187
+ modifiedModel: monaco.editor.ITextModel;
188
+ }
189
+ interface UseMonacoReturn {
190
+ createEditor: (container: HTMLElement, code: string, language: string) => Promise<monaco.editor.IStandaloneCodeEditor>;
191
+ createDiffEditor: (container: HTMLElement, originalCode: string, modifiedCode: string, language: string) => Promise<monaco.editor.IStandaloneDiffEditor>;
192
+ cleanupEditor: () => void;
193
+ safeClean: () => void;
194
+ updateCode: (newCode: string, codeLanguage: string) => void;
195
+ appendCode: (appendText: string, codeLanguage?: string) => void;
196
+ updateDiff: (originalCode: string, modifiedCode: string, codeLanguage?: string) => void;
197
+ updateOriginal: (newCode: string, codeLanguage?: string) => void;
198
+ updateModified: (newCode: string, codeLanguage?: string) => void;
199
+ appendOriginal: (appendText: string, codeLanguage?: string) => void;
200
+ appendModified: (appendText: string, codeLanguage?: string) => void;
201
+ setDiffModels: (models: DiffModelPair, options?: DiffModelTransitionOptions) => Promise<void>;
202
+ setTheme: (theme: MonacoTheme, force?: boolean) => Promise<void>;
203
+ refreshDiffPresentation: () => void;
204
+ setLanguage: (language: MonacoLanguage) => void;
205
+ getCurrentTheme: () => string;
206
+ getEditor: () => typeof monaco.editor;
207
+ getEditorView: () => monaco.editor.IStandaloneCodeEditor | null;
208
+ getDiffEditorView: () => monaco.editor.IStandaloneDiffEditor | null;
209
+ getDiffModels: () => DiffModels;
210
+ getMonacoInstance: () => typeof monaco;
211
+ setUpdateThrottleMs: (ms: number) => void;
212
+ getUpdateThrottleMs: () => number;
213
+ getCode: () => MonacoCodeValue;
140
214
  }
141
215
  //#endregion
142
216
  //#region src/code.detect.d.ts
@@ -171,12 +245,6 @@ declare function detectLanguage(code: string, additionalLanguages?: LanguageDefi
171
245
  //#endregion
172
246
  //#region src/constant.d.ts
173
247
  declare const defaultRevealDebounceMs = 75;
174
- declare namespace monaco_shim_d_exports {
175
- export { monaco as default };
176
- }
177
- import * as import_monaco_editor_esm_vs_editor_editor_api from "monaco-editor/esm/vs/editor/editor.api";
178
- __reExport(monaco_shim_d_exports, import_monaco_editor_esm_vs_editor_editor_api);
179
- declare const monaco: typeof _monaco;
180
248
  //#endregion
181
249
  //#region src/utils/registerMonacoThemes.d.ts
182
250
  /**
@@ -237,7 +305,9 @@ declare function registerMonacoThemes(themes: (ThemeInput | string | SpecialThem
237
305
  * updateModified: (newCode: string, codeLanguage?: string) => void,
238
306
  * appendOriginal: (appendText: string, codeLanguage?: string) => void,
239
307
  * appendModified: (appendText: string, codeLanguage?: string) => void,
308
+ * setDiffModels: (models: DiffModelPair, options?: DiffModelTransitionOptions) => Promise<void>,
240
309
  * setTheme: (theme: MonacoTheme) => Promise<void>,
310
+ * refreshDiffPresentation: () => void,
241
311
  * setLanguage: (language: MonacoLanguage) => void,
242
312
  * getCurrentTheme: () => string,
243
313
  * getEditor: () => typeof monaco.editor,
@@ -257,7 +327,9 @@ declare function registerMonacoThemes(themes: (ThemeInput | string | SpecialThem
257
327
  * @property {Function} updateModified - 仅更新 Diff 的 modified 内容(增量更新)
258
328
  * @property {Function} appendOriginal - 在 Diff 的 original 末尾追加(显式流式场景)
259
329
  * @property {Function} appendModified - 在 Diff 的 modified 末尾追加(显式流式场景)
330
+ * @property {Function} setDiffModels - 切换为一对新的 Diff models;当内容未变化时自动走保留视图状态的无抖动路径
260
331
  * @property {Function} setTheme - 切换编辑器主题,返回 Promise,在主题应用完成时 resolve
332
+ * @property {Function} refreshDiffPresentation - 在不 remount 的情况下,重算 diff chrome / unchanged overlay 的表现层
261
333
  * @property {Function} setLanguage - 切换编辑器语言
262
334
  * @property {Function} getCurrentTheme - 获取当前主题名称
263
335
  * @property {Function} getEditor - 获取 Monaco 的静态 editor 对象(用于静态方法调用)
@@ -288,35 +360,6 @@ declare function registerMonacoThemes(themes: (ThemeInput | string | SpecialThem
288
360
  * setTheme('vitesse-light')
289
361
  * ```
290
362
  */
291
- declare function useMonaco(monacoOptions?: MonacoOptions): {
292
- createEditor: (container: HTMLElement, code: string, language: string) => Promise<monaco_shim_d_exports.editor.IStandaloneCodeEditor>;
293
- createDiffEditor: (container: HTMLElement, originalCode: string, modifiedCode: string, language: string) => Promise<monaco_shim_d_exports.editor.IStandaloneDiffEditor>;
294
- cleanupEditor: () => void;
295
- safeClean(): void;
296
- updateCode: (newCode: string, codeLanguage: string) => void;
297
- appendCode: (appendText: string, codeLanguage?: string) => void;
298
- updateDiff: (originalCode: string, modifiedCode: string, codeLanguage?: string) => void;
299
- updateOriginal: (newCode: string, codeLanguage?: string) => void;
300
- updateModified: (newCode: string, codeLanguage?: string) => void;
301
- appendOriginal: (appendText: string, codeLanguage?: string) => void;
302
- appendModified: (appendText: string, codeLanguage?: string) => void;
303
- setTheme: (theme: MonacoTheme, force?: boolean) => Promise<void>;
304
- setLanguage(language: MonacoLanguage): void;
305
- getCurrentTheme(): string;
306
- getEditor(): typeof monaco_shim_d_exports.editor;
307
- getEditorView(): monaco_shim_d_exports.editor.IStandaloneCodeEditor | null;
308
- getDiffEditorView(): monaco_shim_d_exports.editor.IStandaloneDiffEditor | null;
309
- getDiffModels(): {
310
- original: monaco_shim_d_exports.editor.ITextModel | null;
311
- modified: monaco_shim_d_exports.editor.ITextModel | null;
312
- };
313
- getMonacoInstance(): typeof monaco_shim_d_exports;
314
- setUpdateThrottleMs: (ms: number) => void;
315
- getUpdateThrottleMs: () => number;
316
- getCode(): string | {
317
- original: string;
318
- modified: string;
319
- } | null;
320
- };
363
+ declare function useMonaco(monacoOptions?: MonacoOptions): UseMonacoReturn;
321
364
  //#endregion
322
- export { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco };
365
+ export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco };
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-DMvZ1HUs.cjs');
1
+ const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-DAHEwJHs.cjs');
2
2
 
3
3
  //#region src/ensureMonacoWorkers.ts
4
4
  function ensureMonacoWorkers() {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-9QTN8hPV.cjs";
1
+ import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-DMJ2aLjO.cjs";
2
2
 
3
3
  //#region src/ensureMonacoWorkers.d.ts
4
4
  declare function ensureMonacoWorkers(): void;
@@ -6,4 +6,4 @@ declare function ensureMonacoWorkers(): void;
6
6
  //#region src/preloadMonacoWorkers.d.ts
7
7
  declare function preloadMonacoWorkers(): Promise<void>;
8
8
  //#endregion
9
- export { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkers, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
9
+ export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkers, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-D0lzInae.js";
1
+ import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-Bt_RWV_F.js";
2
2
 
3
3
  //#region src/ensureMonacoWorkers.d.ts
4
4
  declare function ensureMonacoWorkers(): void;
@@ -6,4 +6,4 @@ declare function ensureMonacoWorkers(): void;
6
6
  //#region src/preloadMonacoWorkers.d.ts
7
7
  declare function preloadMonacoWorkers(): Promise<void>;
8
8
  //#endregion
9
- export { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkers, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
9
+ export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkers, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, editorWorkerPath, getOrCreateHighlighter, registerMonacoThemes, uniqueWorkerPaths, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-DQ17-Bwz.js";
1
+ import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, editorWorkerPath, getOrCreateHighlighter, registerMonacoThemes, uniqueWorkerPaths, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-DutEnjwJ.js";
2
2
 
3
3
  //#region src/ensureMonacoWorkers.ts
4
4
  function ensureMonacoWorkers() {
@@ -1,4 +1,4 @@
1
- const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-DMvZ1HUs.cjs');
1
+ const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-DAHEwJHs.cjs');
2
2
  const monaco_editor_esm_vs_basic_languages_cpp_cpp = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/cpp/cpp"));
3
3
  const monaco_editor_esm_vs_basic_languages_javascript_javascript = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/javascript/javascript"));
4
4
  const monaco_editor_esm_vs_basic_languages_powershell_powershell = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/powershell/powershell"));
@@ -1,4 +1,4 @@
1
- import { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-9QTN8hPV.cjs";
1
+ import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-DMJ2aLjO.cjs";
2
2
 
3
3
  //#region src/ensureMonacoWorkers.legacy.d.ts
4
4
  declare function ensureMonacoWorkersLegacy(options?: {
@@ -8,4 +8,4 @@ declare function ensureMonacoWorkersLegacy(options?: {
8
8
  //#region src/preloadMonacoWorkers.legacy.d.ts
9
9
  declare function preloadMonacoWorkers(): Promise<void>;
10
10
  //#endregion
11
- export { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
11
+ export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
@@ -1,4 +1,4 @@
1
- import { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-D0lzInae.js";
1
+ import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-Bt_RWV_F.js";
2
2
  import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
3
3
  import "monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution";
4
4
  import "monaco-editor/esm/vs/basic-languages/python/python.contribution";
@@ -18,4 +18,4 @@ declare function ensureMonacoWorkersLegacy(options?: {
18
18
  //#region src/preloadMonacoWorkers.legacy.d.ts
19
19
  declare function preloadMonacoWorkers(): Promise<void>;
20
20
  //#endregion
21
- export { DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
21
+ export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
@@ -1,4 +1,4 @@
1
- import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, monaco_shim_exports, processedLanguage, registerMonacoThemes, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-DQ17-Bwz.js";
1
+ import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, monaco_shim_exports, processedLanguage, registerMonacoThemes, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-DutEnjwJ.js";
2
2
  import { conf, language } from "monaco-editor/esm/vs/basic-languages/cpp/cpp";
3
3
  import { conf as conf$1, language as language$1 } from "monaco-editor/esm/vs/basic-languages/javascript/javascript";
4
4
  import { conf as conf$2, language as language$2 } from "monaco-editor/esm/vs/basic-languages/powershell/powershell";