@monaco-neovim-wasm/wasm-async 0.1.6

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @monaco-neovim-wasm/wasm-async
2
+
3
+ Batteries-included package: ships asyncify `nvim.wasm` + `nvim-runtime.tar.gz` and re-exports `@monaco-neovim-wasm/lib` with defaults wired for postMessage input (no COOP/COEP).
package/index.d.ts ADDED
@@ -0,0 +1,32 @@
1
+ import type { editor as MonacoEditor } from "monaco-editor";
2
+ import type { MonacoNeovimOptions } from "@monaco-neovim-wasm/lib";
3
+
4
+ export {
5
+ MonacoNeovimClient,
6
+ NeovimWasmSession,
7
+ isSharedArrayBufferAvailable,
8
+ defaultWorkerUrl,
9
+ defaultWorkerUrlAsyncify,
10
+ } from "@monaco-neovim-wasm/lib";
11
+ export type {
12
+ MonacoNeovimOptions,
13
+ StatusEmitter,
14
+ PopupMenuItem,
15
+ ClipboardAdapter,
16
+ FileSystemAdapter,
17
+ HostCommand,
18
+ } from "@monaco-neovim-wasm/lib";
19
+ export type {
20
+ NeovimWasmSessionInit,
21
+ NeovimWasmSessionHandlers,
22
+ NeovimWasmSessionStartOptions,
23
+ NeovimWasmInputMode,
24
+ } from "@monaco-neovim-wasm/lib";
25
+
26
+ export declare const defaultWasmPath: string;
27
+ export declare const defaultRuntimePath: string;
28
+
29
+ export declare function createMonacoNeovim(
30
+ editor: MonacoEditor.IStandaloneCodeEditor,
31
+ options?: MonacoNeovimOptions,
32
+ ): import("@monaco-neovim-wasm/lib").MonacoNeovimClient;
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ import { createMonacoNeovim as createMonacoNeovimBase, defaultWorkerUrlAsyncify } from "@monaco-neovim-wasm/lib";
2
+
3
+ export {
4
+ MonacoNeovimClient,
5
+ NeovimWasmSession,
6
+ isSharedArrayBufferAvailable,
7
+ defaultWorkerUrl,
8
+ defaultWorkerUrlAsyncify,
9
+ } from "@monaco-neovim-wasm/lib";
10
+
11
+ export const defaultWasmPath = new URL("./nvim-asyncify.wasm", import.meta.url).toString();
12
+ export const defaultRuntimePath = new URL("./nvim-runtime.tar.gz", import.meta.url).toString();
13
+
14
+ export function createMonacoNeovim(editor, options = {}) {
15
+ return createMonacoNeovimBase(editor, {
16
+ ...options,
17
+ inputMode: options.inputMode ?? "message",
18
+ workerUrl: options.workerUrl ?? defaultWorkerUrlAsyncify,
19
+ wasmPath: options.wasmPath ?? defaultWasmPath,
20
+ runtimePath: options.runtimePath ?? defaultRuntimePath,
21
+ });
22
+ }
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@monaco-neovim-wasm/wasm-async",
3
+ "version": "0.1.6",
4
+ "private": false,
5
+ "type": "module",
6
+ "description": "Batteries-included package: @monaco-neovim-wasm/lib + asyncify nvim.wasm + runtime (postMessage input; no COOP/COEP).",
7
+ "dependencies": {
8
+ "@monaco-neovim-wasm/lib": "0.1.6"
9
+ },
10
+ "peerDependencies": {
11
+ "monaco-editor": "^0.44.0"
12
+ },
13
+ "main": "./index.js",
14
+ "types": "./index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./index.d.ts",
18
+ "default": "./index.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "index.js",
23
+ "index.d.ts",
24
+ "nvim-asyncify.wasm",
25
+ "nvim-runtime.tar.gz",
26
+ "README.md",
27
+ "package.json"
28
+ ]
29
+ }