phirepass-widgets 0.0.30 → 0.0.32

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.
@@ -432,11 +432,13 @@ class Channel {
432
432
  * @param {number} sid
433
433
  * @param {number} cols
434
434
  * @param {number} rows
435
+ * @param {number} px_width
436
+ * @param {number} px_height
435
437
  */
436
- send_ssh_terminal_resize(node_id, sid, cols, rows) {
438
+ send_ssh_terminal_resize(node_id, sid, cols, rows, px_width, px_height) {
437
439
  const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
438
440
  const len0 = WASM_VECTOR_LEN;
439
- wasm.channel_send_ssh_terminal_resize(this.__wbg_ptr, ptr0, len0, sid, cols, rows);
441
+ wasm.channel_send_ssh_terminal_resize(this.__wbg_ptr, ptr0, len0, sid, cols, rows, px_width, px_height);
440
442
  }
441
443
  /**
442
444
  * @param {string} node_id
@@ -474,7 +476,7 @@ const ErrorType = Object.freeze({
474
476
  function __wbg_get_imports() {
475
477
  const import0 = {
476
478
  __proto__: null,
477
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
479
+ __wbg_Error_55538483de6e3abe: function(arg0, arg1) {
478
480
  const ret = Error(getStringFromWasm0(arg0, arg1));
479
481
  return addHeapObject(ret);
480
482
  },
@@ -485,14 +487,14 @@ function __wbg_get_imports() {
485
487
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
486
488
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
487
489
  },
488
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
490
+ __wbg___wbindgen_debug_string_d89627202d0155b7: function(arg0, arg1) {
489
491
  const ret = debugString(getObject(arg1));
490
492
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
491
493
  const len1 = WASM_VECTOR_LEN;
492
494
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
493
495
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
494
496
  },
495
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
497
+ __wbg___wbindgen_string_get_f1161390414f9b59: function(arg0, arg1) {
496
498
  const obj = getObject(arg1);
497
499
  const ret = typeof(obj) === 'string' ? obj : undefined;
498
500
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -500,36 +502,36 @@ function __wbg_get_imports() {
500
502
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
501
503
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
502
504
  },
503
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
505
+ __wbg___wbindgen_throw_5549492daedad139: function(arg0, arg1) {
504
506
  throw new Error(getStringFromWasm0(arg0, arg1));
505
507
  },
506
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
508
+ __wbg__wbg_cb_unref_fbe69bb076c16bad: function(arg0) {
507
509
  getObject(arg0)._wbg_cb_unref();
508
510
  },
509
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
510
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
511
+ __wbg_call_6ae20895a60069a2: function() { return handleError(function (arg0, arg1) {
512
+ const ret = getObject(arg0).call(getObject(arg1));
511
513
  return addHeapObject(ret);
512
514
  }, arguments); },
513
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
514
- const ret = getObject(arg0).call(getObject(arg1));
515
+ __wbg_call_8f5d7bb070283508: function() { return handleError(function (arg0, arg1, arg2) {
516
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
515
517
  return addHeapObject(ret);
516
518
  }, arguments); },
517
- __wbg_clearInterval_16e8cbbce92291d0: function(arg0) {
519
+ __wbg_clearInterval_26ba580547547579: function(arg0) {
518
520
  const ret = clearInterval(takeObject(arg0));
519
521
  return addHeapObject(ret);
520
522
  },
521
- __wbg_close_af26905c832a88cb: function() { return handleError(function (arg0) {
523
+ __wbg_close_1bf0654059764e94: function() { return handleError(function (arg0) {
522
524
  getObject(arg0).close();
523
525
  }, arguments); },
524
- __wbg_data_a3d9ff9cdd801002: function(arg0) {
526
+ __wbg_data_7de671a92a650aba: function(arg0) {
525
527
  const ret = getObject(arg0).data;
526
528
  return addHeapObject(ret);
527
529
  },
528
- __wbg_from_4bdf88943703fd48: function(arg0) {
530
+ __wbg_from_45cebbf5e49a6ac6: function(arg0) {
529
531
  const ret = Array.from(getObject(arg0));
530
532
  return addHeapObject(ret);
531
533
  },
532
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
534
+ __wbg_instanceof_ArrayBuffer_8d855993947fc3a2: function(arg0) {
533
535
  let result;
534
536
  try {
535
537
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -539,82 +541,82 @@ function __wbg_get_imports() {
539
541
  const ret = result;
540
542
  return ret;
541
543
  },
542
- __wbg_length_ea16607d7b61445b: function(arg0) {
544
+ __wbg_length_e6e1633fbea6cfa9: function(arg0) {
543
545
  const ret = getObject(arg0).length;
544
546
  return ret;
545
547
  },
546
- __wbg_new_5f486cdf45a04d78: function(arg0) {
548
+ __wbg_new_1d96678aaacca32e: function(arg0) {
547
549
  const ret = new Uint8Array(getObject(arg0));
548
550
  return addHeapObject(ret);
549
551
  },
550
- __wbg_new_a70fbab9066b301f: function() {
552
+ __wbg_new_4370be21fa2b2f80: function() {
551
553
  const ret = new Array();
552
554
  return addHeapObject(ret);
553
555
  },
554
- __wbg_new_ab79df5bd7c26067: function() {
556
+ __wbg_new_48e1d86cfd30c8e7: function() {
555
557
  const ret = new Object();
556
558
  return addHeapObject(ret);
557
559
  },
558
- __wbg_new_with_str_299114bdb2430303: function() { return handleError(function (arg0, arg1, arg2, arg3) {
560
+ __wbg_new_with_str_53b505a6bb7f12f6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
559
561
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
560
562
  return addHeapObject(ret);
561
563
  }, arguments); },
562
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
564
+ __wbg_prototypesetcall_3875d54d12ef2eec: function(arg0, arg1, arg2) {
563
565
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
564
566
  },
565
- __wbg_readyState_1f1e7f1bdf9f4d42: function(arg0) {
567
+ __wbg_readyState_a08d25cc57214030: function(arg0) {
566
568
  const ret = getObject(arg0).readyState;
567
569
  return ret;
568
570
  },
569
- __wbg_send_d31a693c975dea74: function() { return handleError(function (arg0, arg1, arg2) {
571
+ __wbg_send_da543a379e952bc6: function() { return handleError(function (arg0, arg1, arg2) {
570
572
  getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
571
573
  }, arguments); },
572
- __wbg_setInterval_84b64f01452a246e: function() { return handleError(function (arg0, arg1) {
574
+ __wbg_setInterval_cbf1c35c6a692d37: function() { return handleError(function (arg0, arg1) {
573
575
  const ret = setInterval(getObject(arg0), arg1);
574
576
  return addHeapObject(ret);
575
577
  }, arguments); },
576
- __wbg_set_282384002438957f: function(arg0, arg1, arg2) {
578
+ __wbg_set_4702dfa37c77f492: function(arg0, arg1, arg2) {
577
579
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
578
580
  },
579
581
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
580
582
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
581
583
  },
582
- __wbg_set_binaryType_3dcf8281ec100a8f: function(arg0, arg1) {
584
+ __wbg_set_binaryType_0675f0e51c055ca8: function(arg0, arg1) {
583
585
  getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
584
586
  },
585
- __wbg_set_onclose_8da801226bdd7a7b: function(arg0, arg1) {
587
+ __wbg_set_onclose_f791ef701be808a0: function(arg0, arg1) {
586
588
  getObject(arg0).onclose = getObject(arg1);
587
589
  },
588
- __wbg_set_onerror_901ca711f94a5bbb: function(arg0, arg1) {
590
+ __wbg_set_onerror_e23002e9224d353b: function(arg0, arg1) {
589
591
  getObject(arg0).onerror = getObject(arg1);
590
592
  },
591
- __wbg_set_onmessage_6f80ab771bf151aa: function(arg0, arg1) {
593
+ __wbg_set_onmessage_d2fe701a9ce80846: function(arg0, arg1) {
592
594
  getObject(arg0).onmessage = getObject(arg1);
593
595
  },
594
- __wbg_set_onopen_34e3e24cf9337ddd: function(arg0, arg1) {
596
+ __wbg_set_onopen_0556381d0db30cbb: function(arg0, arg1) {
595
597
  getObject(arg0).onopen = getObject(arg1);
596
598
  },
597
- __wbg_warn_0f89f670b3427683: function(arg0, arg1) {
599
+ __wbg_warn_7e545c047609d0b6: function(arg0, arg1) {
598
600
  console.warn(getStringFromWasm0(arg0, arg1));
599
601
  },
600
602
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
601
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
602
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_38);
603
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
604
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37);
603
605
  return addHeapObject(ret);
604
606
  },
605
607
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
606
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
607
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_38_1);
608
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
609
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37_1);
608
610
  return addHeapObject(ret);
609
611
  },
610
612
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
611
- // 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`.
612
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_38_2);
613
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
614
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37_2);
613
615
  return addHeapObject(ret);
614
616
  },
615
617
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
616
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
617
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_40);
618
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
619
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41);
618
620
  return addHeapObject(ret);
619
621
  },
620
622
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -651,20 +653,20 @@ function __wbg_get_imports() {
651
653
  };
652
654
  }
653
655
 
654
- function __wasm_bindgen_func_elem_40(arg0, arg1) {
655
- wasm.__wasm_bindgen_func_elem_40(arg0, arg1);
656
+ function __wasm_bindgen_func_elem_41(arg0, arg1) {
657
+ wasm.__wasm_bindgen_func_elem_41(arg0, arg1);
656
658
  }
657
659
 
658
- function __wasm_bindgen_func_elem_38(arg0, arg1, arg2) {
659
- wasm.__wasm_bindgen_func_elem_38(arg0, arg1, addHeapObject(arg2));
660
+ function __wasm_bindgen_func_elem_37(arg0, arg1, arg2) {
661
+ wasm.__wasm_bindgen_func_elem_37(arg0, arg1, addHeapObject(arg2));
660
662
  }
661
663
 
662
- function __wasm_bindgen_func_elem_38_1(arg0, arg1, arg2) {
663
- wasm.__wasm_bindgen_func_elem_38_1(arg0, arg1, addHeapObject(arg2));
664
+ function __wasm_bindgen_func_elem_37_1(arg0, arg1, arg2) {
665
+ wasm.__wasm_bindgen_func_elem_37_1(arg0, arg1, addHeapObject(arg2));
664
666
  }
665
667
 
666
- function __wasm_bindgen_func_elem_38_2(arg0, arg1, arg2) {
667
- wasm.__wasm_bindgen_func_elem_38_2(arg0, arg1, addHeapObject(arg2));
668
+ function __wasm_bindgen_func_elem_37_2(arg0, arg1, arg2) {
669
+ wasm.__wasm_bindgen_func_elem_37_2(arg0, arg1, addHeapObject(arg2));
668
670
  }
669
671
 
670
672
 
@@ -684,7 +686,7 @@ function addHeapObject(obj) {
684
686
 
685
687
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
686
688
  ? { register: () => {}, unregister: () => {} }
687
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
689
+ : new FinalizationRegistry(state => wasm.__wbindgen_export4(state.a, state.b));
688
690
 
689
691
  function debugString(val) {
690
692
  // primitive types
@@ -802,8 +804,8 @@ function isLikeNone(x) {
802
804
  return x === undefined || x === null;
803
805
  }
804
806
 
805
- function makeMutClosure(arg0, arg1, dtor, f) {
806
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
807
+ function makeMutClosure(arg0, arg1, f) {
808
+ const state = { a: arg0, b: arg1, cnt: 1 };
807
809
  const real = (...args) => {
808
810
 
809
811
  // First up with a closure we increment the internal reference
@@ -821,7 +823,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
821
823
  };
822
824
  real._wbg_cb_unref = () => {
823
825
  if (--state.cnt === 0) {
824
- state.dtor(state.a, state.b);
826
+ wasm.__wbindgen_export4(state.a, state.b);
825
827
  state.a = 0;
826
828
  CLOSURE_DTORS.unregister(state);
827
829
  }
@@ -978,7 +980,7 @@ async function __wbg_init(module_or_path) {
978
980
  return __wbg_finalize_init(instance);
979
981
  }
980
982
 
981
- const phirepassTerminalCss = () => `.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#FFF;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1 !important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px !important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity 100ms linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity 800ms linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:host{display:block;width:100%;height:100%}:host #ccc{width:inherit;height:inherit}:host #ccc .terminal{height:inherit}:host #ccc .terminal .xterm-scrollable-element{height:inherit}`;
983
+ const phirepassTerminalCss = () => `.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#FFF;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1 !important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px !important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity 100ms linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity 800ms linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:host{display:block;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}:host #ccc{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}`;
982
984
 
983
985
  var InputMode;
984
986
  (function (InputMode) {
@@ -1159,7 +1161,11 @@ const PhirepassTerminal = class {
1159
1161
  catch (e) {
1160
1162
  console.warn('WebGL addon not available or failed to load:', e);
1161
1163
  }
1162
- this.fitAddon.fit();
1164
+ if (typeof this.terminal.onResize === 'function') {
1165
+ this.terminal.onResize(() => {
1166
+ this.send_ssh_terminal_resize();
1167
+ });
1168
+ }
1163
1169
  }
1164
1170
  destroy_terminal() {
1165
1171
  if (this.terminal) {
@@ -1214,26 +1220,45 @@ const PhirepassTerminal = class {
1214
1220
  });
1215
1221
  }
1216
1222
  send_ssh_terminal_resize() {
1217
- if (!this.channel || !this.channel.is_connected() || !this.session_id) {
1218
- console.warn('Cannot send terminal resize: channel not connected or session_id missing');
1223
+ if (!this.containerEl) {
1224
+ console.warn('Cannot send terminal resize: container element not available');
1225
+ return;
1226
+ }
1227
+ if (!this.nodeId) {
1228
+ console.warn('Cannot send terminal resize: node_id is missing');
1219
1229
  return;
1220
1230
  }
1231
+ if (!this.session_id) {
1232
+ console.warn('Cannot send terminal resize: session_id is missing');
1233
+ return;
1234
+ }
1235
+ if (!this.channel) {
1236
+ console.warn('Cannot send terminal resize: channel is not initialized');
1237
+ return;
1238
+ }
1239
+ if (!this.channel.is_connected()) {
1240
+ console.warn('Cannot send terminal resize: channel not connected');
1241
+ return;
1242
+ }
1243
+ this.fitAddon.fit();
1221
1244
  const cols = this.terminal?.cols ?? 0;
1222
1245
  const rows = this.terminal?.rows ?? 0;
1246
+ const px_width = this.containerEl.clientWidth ?? 0;
1247
+ const px_height = this.containerEl.clientHeight ?? 0;
1223
1248
  if (cols <= 0 || rows <= 0) {
1224
1249
  console.warn('Cannot send terminal resize: invalid terminal dimensions (cols:', cols, 'rows:', rows, ') ');
1225
1250
  return;
1226
1251
  }
1227
1252
  try {
1228
- console.log(`Sending terminal resize: cols=${cols}, rows=${rows}`);
1229
- this.channel.send_ssh_terminal_resize(this.nodeId, this.session_id, cols, rows);
1253
+ console.log(`Sending terminal resize: cols=${cols}, rows=${rows}, px_width=${px_width}, px_height=${px_height}`);
1254
+ this.channel.send_ssh_terminal_resize(this.nodeId, this.session_id, cols, rows, px_width, px_height);
1230
1255
  }
1231
1256
  catch (err) {
1232
1257
  console.error('Failed to send terminal resize:', err);
1233
1258
  }
1234
1259
  }
1235
1260
  send_ssh_data(data) {
1236
- if (this.channel.is_connected() && this.session_id) {
1261
+ if (this.channel.is_connected() && !!this.session_id) {
1237
1262
  this.channel.send_ssh_tunnel_data(this.nodeId, this.session_id, data);
1238
1263
  }
1239
1264
  }
@@ -1290,6 +1315,7 @@ const PhirepassTerminal = class {
1290
1315
  handle_tunnel_opened(web) {
1291
1316
  this.session_id = web.sid;
1292
1317
  this.terminal.reset();
1318
+ this.fitAddon.fit();
1293
1319
  this.send_ssh_terminal_resize();
1294
1320
  }
1295
1321
  handle_tunnel_data(web) {
@@ -1329,7 +1355,7 @@ const PhirepassTerminal = class {
1329
1355
  this.send_ssh_terminal_resize();
1330
1356
  }, 100);
1331
1357
  });
1332
- this.resizeObserver.observe(this.el);
1358
+ this.resizeObserver.observe(this.containerEl ?? this.el);
1333
1359
  }
1334
1360
  handle_terminal_data(data) {
1335
1361
  switch (this.inputMode) {
@@ -1424,7 +1450,7 @@ const PhirepassTerminal = class {
1424
1450
  this.usernameBuffer = "";
1425
1451
  }
1426
1452
  render() {
1427
- return (index.h(index.Host, { key: '08f28ec9b5654617b4feb7473551cfd16fc88f4a' }, index.h("div", { key: '67eaf97da8ae94123fe3613a6129801fcc9cad5a', id: "ccc", ref: el => (this.containerEl = el) })));
1453
+ return (index.h(index.Host, { key: '71243a4c9c9468091e5ab830857f91b9b57812b0' }, index.h("div", { key: '0dd9ae1e44cbf78f8a6ede6604c35d7d441cea93', id: "ccc", ref: el => (this.containerEl = el) })));
1428
1454
  }
1429
1455
  static get watchers() { return {
1430
1456
  "nodeId": [{
@@ -289,17 +289,15 @@
289
289
  display: block;
290
290
  width: 100%;
291
291
  height: 100%;
292
+ min-width: 0;
293
+ min-height: 0;
294
+ overflow: hidden;
292
295
  }
293
296
 
294
297
  :host #ccc {
295
- width: inherit;
296
- height: inherit;
297
- }
298
-
299
- :host #ccc .terminal {
300
- height: inherit;
301
- }
302
-
303
- :host #ccc .terminal .xterm-scrollable-element {
304
- height: inherit;
298
+ width: 100%;
299
+ height: 100%;
300
+ min-width: 0;
301
+ min-height: 0;
302
+ overflow: hidden;
305
303
  }
@@ -183,7 +183,11 @@ export class PhirepassTerminal {
183
183
  catch (e) {
184
184
  console.warn('WebGL addon not available or failed to load:', e);
185
185
  }
186
- this.fitAddon.fit();
186
+ if (typeof this.terminal.onResize === 'function') {
187
+ this.terminal.onResize(() => {
188
+ this.send_ssh_terminal_resize();
189
+ });
190
+ }
187
191
  }
188
192
  destroy_terminal() {
189
193
  if (this.terminal) {
@@ -238,26 +242,45 @@ export class PhirepassTerminal {
238
242
  });
239
243
  }
240
244
  send_ssh_terminal_resize() {
241
- if (!this.channel || !this.channel.is_connected() || !this.session_id) {
242
- console.warn('Cannot send terminal resize: channel not connected or session_id missing');
245
+ if (!this.containerEl) {
246
+ console.warn('Cannot send terminal resize: container element not available');
247
+ return;
248
+ }
249
+ if (!this.nodeId) {
250
+ console.warn('Cannot send terminal resize: node_id is missing');
251
+ return;
252
+ }
253
+ if (!this.session_id) {
254
+ console.warn('Cannot send terminal resize: session_id is missing');
243
255
  return;
244
256
  }
257
+ if (!this.channel) {
258
+ console.warn('Cannot send terminal resize: channel is not initialized');
259
+ return;
260
+ }
261
+ if (!this.channel.is_connected()) {
262
+ console.warn('Cannot send terminal resize: channel not connected');
263
+ return;
264
+ }
265
+ this.fitAddon.fit();
245
266
  const cols = this.terminal?.cols ?? 0;
246
267
  const rows = this.terminal?.rows ?? 0;
268
+ const px_width = this.containerEl.clientWidth ?? 0;
269
+ const px_height = this.containerEl.clientHeight ?? 0;
247
270
  if (cols <= 0 || rows <= 0) {
248
271
  console.warn('Cannot send terminal resize: invalid terminal dimensions (cols:', cols, 'rows:', rows, ') ');
249
272
  return;
250
273
  }
251
274
  try {
252
- console.log(`Sending terminal resize: cols=${cols}, rows=${rows}`);
253
- this.channel.send_ssh_terminal_resize(this.nodeId, this.session_id, cols, rows);
275
+ console.log(`Sending terminal resize: cols=${cols}, rows=${rows}, px_width=${px_width}, px_height=${px_height}`);
276
+ this.channel.send_ssh_terminal_resize(this.nodeId, this.session_id, cols, rows, px_width, px_height);
254
277
  }
255
278
  catch (err) {
256
279
  console.error('Failed to send terminal resize:', err);
257
280
  }
258
281
  }
259
282
  send_ssh_data(data) {
260
- if (this.channel.is_connected() && this.session_id) {
283
+ if (this.channel.is_connected() && !!this.session_id) {
261
284
  this.channel.send_ssh_tunnel_data(this.nodeId, this.session_id, data);
262
285
  }
263
286
  }
@@ -314,6 +337,7 @@ export class PhirepassTerminal {
314
337
  handle_tunnel_opened(web) {
315
338
  this.session_id = web.sid;
316
339
  this.terminal.reset();
340
+ this.fitAddon.fit();
317
341
  this.send_ssh_terminal_resize();
318
342
  }
319
343
  handle_tunnel_data(web) {
@@ -353,7 +377,7 @@ export class PhirepassTerminal {
353
377
  this.send_ssh_terminal_resize();
354
378
  }, 100);
355
379
  });
356
- this.resizeObserver.observe(this.el);
380
+ this.resizeObserver.observe(this.containerEl ?? this.el);
357
381
  }
358
382
  handle_terminal_data(data) {
359
383
  switch (this.inputMode) {
@@ -448,7 +472,7 @@ export class PhirepassTerminal {
448
472
  this.usernameBuffer = "";
449
473
  }
450
474
  render() {
451
- return (h(Host, { key: '08f28ec9b5654617b4feb7473551cfd16fc88f4a' }, h("div", { key: '67eaf97da8ae94123fe3613a6129801fcc9cad5a', id: "ccc", ref: el => (this.containerEl = el) })));
475
+ return (h(Host, { key: '71243a4c9c9468091e5ab830857f91b9b57812b0' }, h("div", { key: '0dd9ae1e44cbf78f8a6ede6604c35d7d441cea93', id: "ccc", ref: el => (this.containerEl = el) })));
452
476
  }
453
477
  static get is() { return "phirepass-terminal"; }
454
478
  static get encapsulation() { return "shadow"; }