@omnidotdev/terminal 0.1.1 → 0.1.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.
@@ -11,11 +11,9 @@ 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_360: (a: number, b: number, c: number) => void;
15
- readonly __wasm_bindgen_func_elem_359: (a: number, b: number) => void;
16
- readonly __wasm_bindgen_func_elem_369: (a: number, b: number) => void;
17
- readonly __wasm_bindgen_func_elem_2737: (a: number, b: number, c: number) => void;
18
- readonly __wasm_bindgen_func_elem_2736: (a: number, b: number) => void;
14
+ readonly __wasm_bindgen_func_elem_363: (a: number, b: number, c: number) => void;
15
+ readonly __wasm_bindgen_func_elem_360: (a: number, b: number) => void;
16
+ readonly __wasm_bindgen_func_elem_361: (a: number, b: number) => void;
19
17
  readonly __wbindgen_export: (a: number, b: number) => number;
20
18
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
21
19
  readonly __wbindgen_export3: (a: number) => void;
@@ -84,11 +84,6 @@ function dropObject(idx) {
84
84
  heap_next = idx;
85
85
  }
86
86
 
87
- function getArrayU32FromWasm0(ptr, len) {
88
- ptr = ptr >>> 0;
89
- return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
90
- }
91
-
92
87
  function getArrayU8FromWasm0(ptr, len) {
93
88
  ptr = ptr >>> 0;
94
89
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -107,14 +102,6 @@ function getStringFromWasm0(ptr, len) {
107
102
  return decodeText(ptr, len);
108
103
  }
109
104
 
110
- let cachedUint32ArrayMemory0 = null;
111
- function getUint32ArrayMemory0() {
112
- if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
113
- cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
114
- }
115
- return cachedUint32ArrayMemory0;
116
- }
117
-
118
105
  let cachedUint8ArrayMemory0 = null;
119
106
  function getUint8ArrayMemory0() {
120
107
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -242,16 +229,12 @@ if (!('encodeInto' in cachedTextEncoder)) {
242
229
 
243
230
  let WASM_VECTOR_LEN = 0;
244
231
 
245
- function __wasm_bindgen_func_elem_360(arg0, arg1, arg2) {
246
- wasm.__wasm_bindgen_func_elem_360(arg0, arg1, addHeapObject(arg2));
232
+ function __wasm_bindgen_func_elem_363(arg0, arg1, arg2) {
233
+ wasm.__wasm_bindgen_func_elem_363(arg0, arg1, addHeapObject(arg2));
247
234
  }
248
235
 
249
- function __wasm_bindgen_func_elem_369(arg0, arg1) {
250
- wasm.__wasm_bindgen_func_elem_369(arg0, arg1);
251
- }
252
-
253
- function __wasm_bindgen_func_elem_2737(arg0, arg1, arg2) {
254
- wasm.__wasm_bindgen_func_elem_2737(arg0, arg1, addHeapObject(arg2));
236
+ function __wasm_bindgen_func_elem_361(arg0, arg1) {
237
+ wasm.__wasm_bindgen_func_elem_361(arg0, arg1);
255
238
  }
256
239
 
257
240
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -949,9 +932,6 @@ function __wbg_get_imports() {
949
932
  imports.wbg.__wbg_setBindGroup_bf7233e51ee0fd56 = function(arg0, arg1, arg2) {
950
933
  getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
951
934
  };
952
- imports.wbg.__wbg_setBindGroup_c532d9e80c3b863a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
953
- getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
954
- }, arguments) };
955
935
  imports.wbg.__wbg_setIndexBuffer_d6851b016152211a = function(arg0, arg1, arg2, arg3, arg4) {
956
936
  getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
957
937
  };
@@ -1239,9 +1219,6 @@ function __wbg_get_imports() {
1239
1219
  imports.wbg.__wbg_set_label_dc8df9969898889c = function(arg0, arg1, arg2) {
1240
1220
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1241
1221
  };
1242
- imports.wbg.__wbg_set_label_e3709fe3e82429b5 = function(arg0, arg1, arg2) {
1243
- getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1244
- };
1245
1222
  imports.wbg.__wbg_set_label_fb5d28b3ba7af11f = function(arg0, arg1, arg2) {
1246
1223
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1247
1224
  };
@@ -1578,44 +1555,49 @@ function __wbg_get_imports() {
1578
1555
  imports.wbg.__wbg_writeTexture_0466bf7d7d35e04e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1579
1556
  getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
1580
1557
  }, arguments) };
1581
- imports.wbg.__wbindgen_cast_187d9bf61ed157ff = function(arg0, arg1) {
1582
- // 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`.
1583
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1558
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1559
+ // Cast intrinsic for `Ref(String) -> Externref`.
1560
+ const ret = getStringFromWasm0(arg0, arg1);
1584
1561
  return addHeapObject(ret);
1585
1562
  };
1586
- imports.wbg.__wbindgen_cast_1d60ba84c0e612df = function(arg0, arg1) {
1587
- // 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`.
1588
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1563
+ imports.wbg.__wbindgen_cast_32cb1b8a0491499d = function(arg0, arg1) {
1564
+ // 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`.
1565
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1589
1566
  return addHeapObject(ret);
1590
1567
  };
1591
- imports.wbg.__wbindgen_cast_20a522f3e8c4c240 = function(arg0, arg1) {
1592
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 11, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1593
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_369);
1568
+ imports.wbg.__wbindgen_cast_7fcd1d93b4983df7 = function(arg0, arg1) {
1569
+ // 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`.
1570
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1594
1571
  return addHeapObject(ret);
1595
1572
  };
1596
- imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1597
- // Cast intrinsic for `Ref(String) -> Externref`.
1598
- const ret = getStringFromWasm0(arg0, arg1);
1573
+ imports.wbg.__wbindgen_cast_8aaeb857af704dc7 = function(arg0, arg1) {
1574
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [Externref], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1575
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1576
+ return addHeapObject(ret);
1577
+ };
1578
+ imports.wbg.__wbindgen_cast_9296745c6ca989b2 = function(arg0, arg1) {
1579
+ // 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`.
1580
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1599
1581
  return addHeapObject(ret);
1600
1582
  };
1601
- imports.wbg.__wbindgen_cast_46d6ccd6e2a13afa = function(arg0, arg1) {
1602
- // 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`.
1603
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1583
+ imports.wbg.__wbindgen_cast_a4cd16a5524358a3 = function(arg0, arg1) {
1584
+ // 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`.
1585
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1604
1586
  return addHeapObject(ret);
1605
1587
  };
1606
- imports.wbg.__wbindgen_cast_56a336ee13022c01 = function(arg0, arg1) {
1607
- // 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`.
1608
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1588
+ imports.wbg.__wbindgen_cast_aaa93aae03c115ab = function(arg0, arg1) {
1589
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1590
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_361);
1609
1591
  return addHeapObject(ret);
1610
1592
  };
1611
- imports.wbg.__wbindgen_cast_5f4bddbc92058ea9 = function(arg0, arg1) {
1612
- // 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`.
1613
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1593
+ imports.wbg.__wbindgen_cast_b0c35f99a334d315 = function(arg0, arg1) {
1594
+ // 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`.
1595
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1614
1596
  return addHeapObject(ret);
1615
1597
  };
1616
- imports.wbg.__wbindgen_cast_8d0a0c1360e48ed2 = function(arg0, arg1) {
1617
- // 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`.
1618
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1598
+ imports.wbg.__wbindgen_cast_c7bd0d6cfb94687d = function(arg0, arg1) {
1599
+ // 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`.
1600
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1619
1601
  return addHeapObject(ret);
1620
1602
  };
1621
1603
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -1623,24 +1605,19 @@ function __wbg_get_imports() {
1623
1605
  const ret = getArrayU8FromWasm0(arg0, arg1);
1624
1606
  return addHeapObject(ret);
1625
1607
  };
1608
+ imports.wbg.__wbindgen_cast_d01695cb5f652e0e = function(arg0, arg1) {
1609
+ // 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`.
1610
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1611
+ return addHeapObject(ret);
1612
+ };
1626
1613
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1627
1614
  // Cast intrinsic for `F64 -> Externref`.
1628
1615
  const ret = arg0;
1629
1616
  return addHeapObject(ret);
1630
1617
  };
1631
- imports.wbg.__wbindgen_cast_ed6979b760f73a7b = function(arg0, arg1) {
1632
- // 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`.
1633
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1634
- return addHeapObject(ret);
1635
- };
1636
- imports.wbg.__wbindgen_cast_edc3ef780a25528f = function(arg0, arg1) {
1637
- // 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`.
1638
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
1639
- return addHeapObject(ret);
1640
- };
1641
- imports.wbg.__wbindgen_cast_fd859e22cb76cfab = function(arg0, arg1) {
1642
- // Cast intrinsic for `Closure(Closure { dtor_idx: 613, function: Function { arguments: [Externref], shim_idx: 614, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1643
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2736, __wasm_bindgen_func_elem_2737);
1618
+ imports.wbg.__wbindgen_cast_dd0517a126ce8ca8 = function(arg0, arg1) {
1619
+ // 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`.
1620
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_363);
1644
1621
  return addHeapObject(ret);
1645
1622
  };
1646
1623
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
@@ -1658,7 +1635,6 @@ function __wbg_finalize_init(instance, module) {
1658
1635
  wasm = instance.exports;
1659
1636
  __wbg_init.__wbindgen_wasm_module = module;
1660
1637
  cachedDataViewMemory0 = null;
1661
- cachedUint32ArrayMemory0 = null;
1662
1638
  cachedUint8ArrayMemory0 = null;
1663
1639
 
1664
1640
 
Binary file
@@ -2,11 +2,9 @@
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_360: (a: number, b: number, c: number) => void;
6
- export const __wasm_bindgen_func_elem_359: (a: number, b: number) => void;
7
- export const __wasm_bindgen_func_elem_369: (a: number, b: number) => void;
8
- export const __wasm_bindgen_func_elem_2737: (a: number, b: number, c: number) => void;
9
- export const __wasm_bindgen_func_elem_2736: (a: number, b: number) => void;
5
+ export const __wasm_bindgen_func_elem_363: (a: number, b: number, c: number) => void;
6
+ export const __wasm_bindgen_func_elem_360: (a: number, b: number) => void;
7
+ export const __wasm_bindgen_func_elem_361: (a: number, b: number) => void;
10
8
  export const __wbindgen_export: (a: number, b: number) => number;
11
9
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
12
10
  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.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Embeddable WebGPU terminal component powered by WASM",
6
6
  "main": "./build/index.js",