@omnidotdev/terminal 0.3.0 → 0.3.1

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.
@@ -11,8 +11,8 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
11
11
  export interface InitOutput {
12
12
  readonly memory: WebAssembly.Memory;
13
13
  readonly create_terminal: (a: number, b: number, c: number, d: number, e: number) => void;
14
- readonly __wasm_bindgen_func_elem_624: (a: number, b: number) => void;
15
- readonly __wasm_bindgen_func_elem_2191: (a: number, b: number, c: number, d: number) => void;
14
+ readonly __wasm_bindgen_func_elem_626: (a: number, b: number) => void;
15
+ readonly __wasm_bindgen_func_elem_2197: (a: number, b: number, c: number, d: number) => void;
16
16
  readonly __wasm_bindgen_func_elem_627: (a: number, b: number, c: number) => void;
17
17
  readonly __wasm_bindgen_func_elem_627_2: (a: number, b: number, c: number) => void;
18
18
  readonly __wasm_bindgen_func_elem_627_3: (a: number, b: number, c: number) => void;
@@ -22,7 +22,7 @@ export interface InitOutput {
22
22
  readonly __wasm_bindgen_func_elem_627_7: (a: number, b: number, c: number) => void;
23
23
  readonly __wasm_bindgen_func_elem_627_8: (a: number, b: number, c: number) => void;
24
24
  readonly __wasm_bindgen_func_elem_627_9: (a: number, b: number, c: number) => void;
25
- readonly __wasm_bindgen_func_elem_625: (a: number, b: number) => void;
25
+ readonly __wasm_bindgen_func_elem_643: (a: number, b: number) => void;
26
26
  readonly __wbindgen_export: (a: number, b: number) => number;
27
27
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
28
28
  readonly __wbindgen_export3: (a: number) => void;
@@ -250,6 +250,14 @@ function __wbg_get_imports() {
250
250
  const ret = getObject(arg0).clientWidth;
251
251
  return ret;
252
252
  },
253
+ __wbg_clientX_51eb1976d50e9aa7: function(arg0) {
254
+ const ret = getObject(arg0).clientX;
255
+ return ret;
256
+ },
257
+ __wbg_clientY_bf90b5a826653c23: function(arg0) {
258
+ const ret = getObject(arg0).clientY;
259
+ return ret;
260
+ },
253
261
  __wbg_clipboardData_643239fa2d14590e: function(arg0) {
254
262
  const ret = getObject(arg0).clipboardData;
255
263
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -2096,58 +2104,58 @@ function __wbg_get_imports() {
2096
2104
  getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
2097
2105
  }, arguments); },
2098
2106
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2099
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [Externref], shim_idx: 324, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2100
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_2191);
2107
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [Externref], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2108
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627);
2101
2109
  return addHeapObject(ret);
2102
2110
  },
2103
2111
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
2104
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [Externref], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2105
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627);
2112
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [Externref], shim_idx: 323, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2113
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_2197);
2106
2114
  return addHeapObject(ret);
2107
2115
  },
2108
2116
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2109
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2110
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_2);
2117
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2118
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_2);
2111
2119
  return addHeapObject(ret);
2112
2120
  },
2113
2121
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2114
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("ClipboardEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2115
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_3);
2122
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("ClipboardEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2123
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_3);
2116
2124
  return addHeapObject(ret);
2117
2125
  },
2118
2126
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
2119
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("CompositionEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2120
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_4);
2127
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("CompositionEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2128
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_4);
2121
2129
  return addHeapObject(ret);
2122
2130
  },
2123
2131
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
2124
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("InputEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2125
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_5);
2132
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("InputEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2133
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_5);
2126
2134
  return addHeapObject(ret);
2127
2135
  },
2128
2136
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
2129
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2130
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_6);
2137
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2138
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_6);
2131
2139
  return addHeapObject(ret);
2132
2140
  },
2133
2141
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2134
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2135
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_7);
2142
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2143
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_7);
2136
2144
  return addHeapObject(ret);
2137
2145
  },
2138
2146
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
2139
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2140
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_8);
2147
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2148
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_8);
2141
2149
  return addHeapObject(ret);
2142
2150
  },
2143
2151
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
2144
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2145
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_627_9);
2152
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2153
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_627_9);
2146
2154
  return addHeapObject(ret);
2147
2155
  },
2148
2156
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
2149
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2150
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_624, __wasm_bindgen_func_elem_625);
2157
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 11, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2158
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_626, __wasm_bindgen_func_elem_643);
2151
2159
  return addHeapObject(ret);
2152
2160
  },
2153
2161
  __wbindgen_cast_000000000000000c: function(arg0) {
@@ -2209,8 +2217,8 @@ function __wbg_get_imports() {
2209
2217
  };
2210
2218
  }
2211
2219
 
2212
- function __wasm_bindgen_func_elem_625(arg0, arg1) {
2213
- wasm.__wasm_bindgen_func_elem_625(arg0, arg1);
2220
+ function __wasm_bindgen_func_elem_643(arg0, arg1) {
2221
+ wasm.__wasm_bindgen_func_elem_643(arg0, arg1);
2214
2222
  }
2215
2223
 
2216
2224
  function __wasm_bindgen_func_elem_627(arg0, arg1, arg2) {
@@ -2249,10 +2257,10 @@ function __wasm_bindgen_func_elem_627_9(arg0, arg1, arg2) {
2249
2257
  wasm.__wasm_bindgen_func_elem_627_9(arg0, arg1, addHeapObject(arg2));
2250
2258
  }
2251
2259
 
2252
- function __wasm_bindgen_func_elem_2191(arg0, arg1, arg2) {
2260
+ function __wasm_bindgen_func_elem_2197(arg0, arg1, arg2) {
2253
2261
  try {
2254
2262
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2255
- wasm.__wasm_bindgen_func_elem_2191(retptr, arg0, arg1, addHeapObject(arg2));
2263
+ wasm.__wasm_bindgen_func_elem_2197(retptr, arg0, arg1, addHeapObject(arg2));
2256
2264
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2257
2265
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2258
2266
  if (r1) {
Binary file
@@ -2,8 +2,8 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const create_terminal: (a: number, b: number, c: number, d: number, e: number) => void;
5
- export const __wasm_bindgen_func_elem_624: (a: number, b: number) => void;
6
- export const __wasm_bindgen_func_elem_2191: (a: number, b: number, c: number, d: number) => void;
5
+ export const __wasm_bindgen_func_elem_626: (a: number, b: number) => void;
6
+ export const __wasm_bindgen_func_elem_2197: (a: number, b: number, c: number, d: number) => void;
7
7
  export const __wasm_bindgen_func_elem_627: (a: number, b: number, c: number) => void;
8
8
  export const __wasm_bindgen_func_elem_627_2: (a: number, b: number, c: number) => void;
9
9
  export const __wasm_bindgen_func_elem_627_3: (a: number, b: number, c: number) => void;
@@ -13,7 +13,7 @@ export const __wasm_bindgen_func_elem_627_6: (a: number, b: number, c: number) =
13
13
  export const __wasm_bindgen_func_elem_627_7: (a: number, b: number, c: number) => void;
14
14
  export const __wasm_bindgen_func_elem_627_8: (a: number, b: number, c: number) => void;
15
15
  export const __wasm_bindgen_func_elem_627_9: (a: number, b: number, c: number) => void;
16
- export const __wasm_bindgen_func_elem_625: (a: number, b: number) => void;
16
+ export const __wasm_bindgen_func_elem_643: (a: number, b: number) => void;
17
17
  export const __wbindgen_export: (a: number, b: number) => number;
18
18
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
19
19
  export const __wbindgen_export3: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnidotdev/terminal",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Embeddable WebGPU terminal component powered by WASM",
6
6
  "main": "./build/index.js",