phirepass-widgets 0.0.99 → 0.0.100

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.
Files changed (35) hide show
  1. package/dist/cjs/{index-W8Ah6QS2.js → index-CbZdPuPQ.js} +3 -4
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/phirepass-rdp.cjs.entry.js +89 -10
  4. package/dist/cjs/phirepass-sftp-client.cjs.entry.js +2 -2
  5. package/dist/cjs/phirepass-terminal.cjs.entry.js +2 -2
  6. package/dist/cjs/phirepass-widgets.cjs.js +3 -3
  7. package/dist/cjs/{protocol-Da4CPy8u.js → protocol-B45sQiET.js} +9 -15
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/phirepass-rdp/phirepass-rdp.js +142 -9
  10. package/dist/collection/phirepass-channel_bg.wasm +0 -0
  11. package/dist/components/index.js +1 -1
  12. package/dist/components/p-DFhjP92A.js +1 -0
  13. package/dist/components/phirepass-rdp.js +1 -1
  14. package/dist/components/phirepass-sftp-client.js +1 -1
  15. package/dist/components/phirepass-terminal.js +1 -1
  16. package/dist/esm/{index-DRwCfim8.js → index-AP5XjS35.js} +3 -4
  17. package/dist/esm/loader.js +3 -3
  18. package/dist/esm/phirepass-rdp.entry.js +89 -10
  19. package/dist/esm/phirepass-sftp-client.entry.js +2 -2
  20. package/dist/esm/phirepass-terminal.entry.js +2 -2
  21. package/dist/esm/phirepass-widgets.js +4 -4
  22. package/dist/esm/{protocol-D0bkJ9BS.js → protocol-DFhjP92A.js} +8 -14
  23. package/dist/phirepass-widgets/{p-9d393c3d.entry.js → p-0e9afedb.entry.js} +1 -1
  24. package/dist/phirepass-widgets/{p-DRwCfim8.js → p-AP5XjS35.js} +1 -1
  25. package/dist/phirepass-widgets/p-DFhjP92A.js +1 -0
  26. package/dist/phirepass-widgets/{p-def42e4b.entry.js → p-c4a31b26.entry.js} +1 -1
  27. package/dist/phirepass-widgets/p-ee09d805.entry.js +1 -0
  28. package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
  29. package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
  30. package/dist/types/components/phirepass-rdp/phirepass-rdp.d.ts +34 -3
  31. package/dist/types/components.d.ts +21 -2
  32. package/package.json +3 -3
  33. package/dist/components/p-D0bkJ9BS.js +0 -1
  34. package/dist/phirepass-widgets/p-D0bkJ9BS.js +0 -1
  35. package/dist/phirepass-widgets/p-c165bb58.entry.js +0 -1
@@ -4,7 +4,7 @@ const NAMESPACE = 'phirepass-widgets';
4
4
  const BUILD = /* phirepass-widgets */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.44.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.44.2 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
10
 
@@ -1195,8 +1195,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1195
1195
  }
1196
1196
  }
1197
1197
  };
1198
-
1199
- // src/runtime/proxy-component.ts
1200
1198
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1201
1199
  var _a, _b;
1202
1200
  const prototype = Cstr.prototype;
@@ -1329,7 +1327,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1329
1327
  return;
1330
1328
  }
1331
1329
  const propFlags = members.find(([m]) => m === propName);
1332
- const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1330
+ const propMemberFlags = propFlags ? propFlags[1][0] : 0;
1331
+ const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
1333
1332
  const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1334
1333
  if (isBooleanTarget) {
1335
1334
  newValue = newValue === null || newValue === "false" ? false : true;
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-W8Ah6QS2.js');
3
+ var index = require('./index-CbZdPuPQ.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
9
+ return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-W8Ah6QS2.js');
4
- var protocol = require('./protocol-Da4CPy8u.js');
3
+ var index = require('./index-CbZdPuPQ.js');
4
+ var protocol = require('./protocol-B45sQiET.js');
5
5
 
6
6
  /**
7
7
  * RDP's display-control PDU describes a monitor in whole, even pixels within
@@ -269,9 +269,11 @@ const PhirepassRdp = class {
269
269
  * the widget is resized, so the desktop is rendered at native size rather
270
270
  * than scaled.
271
271
  *
272
- * The host has the last word: this needs the display-control channel, and a
273
- * host that does not offer it simply keeps the resolution it started with —
274
- * which `scale` then fits into the widget, as before.
272
+ * Turning this on is what registers the display-control extension, since
273
+ * the channel it opens is negotiated at connect time and never afterwards.
274
+ * The host still has the last word: one that does not offer the channel
275
+ * keeps the resolution it started with, which `scale` then fits into the
276
+ * widget, as before.
275
277
  */
276
278
  dynamicResize = true;
277
279
  /**
@@ -284,6 +286,16 @@ const PhirepassRdp = class {
284
286
  * desktop has focus.
285
287
  */
286
288
  captureKeyboard = true;
289
+ /**
290
+ * Share the clipboard with the remote host in both directions.
291
+ *
292
+ * On is the client's own default and needs nothing from us, so this exists
293
+ * to turn it **off**: a deployment that treats copy-out as exfiltration can
294
+ * take the clipboard away without giving up the session. Clipboard access
295
+ * additionally needs a secure context — over plain HTTP the browser refuses
296
+ * it whatever this says, and the client's warning is logged.
297
+ */
298
+ clipboard = true;
287
299
  onNodeIdChange(newValue, _oldValue) {
288
300
  this.reset_session_state();
289
301
  if (this.channel && this.channel.is_connected()) {
@@ -363,6 +375,39 @@ const PhirepassRdp = class {
363
375
  async focusDesktop() {
364
376
  this.focus_desktop();
365
377
  }
378
+ /**
379
+ * Sends Ctrl+Alt+Del to the remote host.
380
+ *
381
+ * The host has to be told, because pressing it never reaches us: Ctrl+Alt+Del
382
+ * is a secure attention sequence the operating system takes before any
383
+ * browser sees it, and `captureKeyboard` cannot claim it either. Yet it is
384
+ * how a Windows session is unlocked and how the login screen is reached, so
385
+ * without this a locked desktop is a dead end.
386
+ *
387
+ * Answers whether it was sent — there is no session to send it to until the
388
+ * client has connected.
389
+ */
390
+ async sendCtrlAltDel() {
391
+ if (!this.userInteraction) {
392
+ return false;
393
+ }
394
+ this.userInteraction.ctrlAltDel();
395
+ this.focus_desktop();
396
+ return true;
397
+ }
398
+ /**
399
+ * Sends the Meta (Windows/Command) key to the remote host, which opens the
400
+ * Start menu. Outside fullscreen the browser and the desktop environment
401
+ * take this key first, so like Ctrl+Alt+Del it has to be sendable directly.
402
+ */
403
+ async sendMetaKey() {
404
+ if (!this.userInteraction) {
405
+ return false;
406
+ }
407
+ this.userInteraction.metaKey();
408
+ this.focus_desktop();
409
+ return true;
410
+ }
366
411
  try_connect() {
367
412
  if (this.connected || !this.domReady || !this.runtimeReady) {
368
413
  return;
@@ -484,9 +529,25 @@ const PhirepassRdp = class {
484
529
  element.scale = this.scale;
485
530
  element.flexcenter = true;
486
531
  element.verbose = false;
532
+ // Extensions are how the client is configured, and neither
533
+ // `iron-remote-desktop` nor its RDP backend registers one on the app's
534
+ // behalf — both packages only expose the factories.
535
+ const extensions = [backend.enableCredssp(true)];
536
+ // The DisplayControl virtual channel is negotiated at connect time and
537
+ // never afterwards: it is how the client tells the host it can accept a
538
+ // resolution change at all. A client that did not ask for it fails
539
+ // every `resize()` with "Display Control Virtual Channel is not
540
+ // available", which reaches the widget as a host that silently refuses
541
+ // to resize — making the viewport sync, the initial desktop
542
+ // measurement and the `dynamicResize` prop all look like a host
543
+ // limitation. Asked for only when `dynamicResize` is on, so a caller
544
+ // that turned it off does not advertise a channel it will never use.
545
+ if (this.dynamicResize) {
546
+ extensions.push(backend.displayControl(true));
547
+ }
487
548
  element.addEventListener('ready', (event) => {
488
549
  const detail = event.detail;
489
- void this.start_session(detail.irgUserInteraction, web.ticket, backend.enableCredssp(true));
550
+ void this.start_session(detail.irgUserInteraction, web.ticket, extensions);
490
551
  });
491
552
  this.ironEl = element;
492
553
  this.mount_client(element);
@@ -507,16 +568,34 @@ const PhirepassRdp = class {
507
568
  mount_client(element) {
508
569
  this.el.appendChild(element);
509
570
  }
510
- async start_session(userInteraction, ticket, credssp) {
571
+ async start_session(userInteraction, ticket, extensions) {
511
572
  this.userInteraction = userInteraction;
573
+ // Both clipboard switches are on by default inside the client, and its
574
+ // element wires the browser side up on its own — so this only ever
575
+ // turns the clipboard off. It has to happen before `connect`, because
576
+ // that is when the client decides whether to register the clipboard
577
+ // callbacks with its backend at all.
578
+ if (!this.clipboard) {
579
+ userInteraction.setEnableClipboard(false);
580
+ }
581
+ // Clipboard problems are reported this way and no other: an insecure
582
+ // context, a browser too old for the async clipboard API, a read the
583
+ // user never granted. Without a callback the client's own warning is
584
+ // dropped, and a clipboard that does nothing looks identical to one
585
+ // that was never asked for.
586
+ userInteraction.onWarningCallback((warning) => {
587
+ console.warn('The remote desktop client reported a problem:', warning);
588
+ });
512
589
  const builder = userInteraction
513
590
  .configBuilder()
514
591
  .withUsername(this.credentials?.username ?? '')
515
592
  .withPassword(this.credentials?.password ?? '')
516
593
  .withDestination(this.destination ?? this.nodeId)
517
594
  .withProxyAddress(`${this.create_web_socket_endpoint()}/api/web/rdp/${this.nodeId}`)
518
- .withAuthToken(ticket)
519
- .withExtension(credssp);
595
+ .withAuthToken(ticket);
596
+ for (const extension of extensions) {
597
+ builder.withExtension(extension);
598
+ }
520
599
  // Asking for the widget's size up front saves the remote host a
521
600
  // resolution change immediately after logon — but only when the widget
522
601
  // has been laid out. An unmeasurable widget asks for nothing and lets
@@ -653,7 +732,7 @@ const PhirepassRdp = class {
653
732
  this.request_tunnel();
654
733
  }
655
734
  render() {
656
- return (index.h(index.Host, { key: '892fd55fb84abf180866dd7af4e44adc9c23f338' }, index.h("div", { key: 'fd6ac08295b6ce9e3bd3932abea271c9c6fc8a00', class: "screen", ref: (el) => (this.containerEl = el) }, index.h("slot", { key: 'b9240f804177898f29598b0c7ec7b4f4d2e8d6c6' })), this.credentialsPrompt && (index.h("form", { key: '49ce099f575a30c0bb326a64de74d30cf599418f', class: "prompt", onSubmit: (event) => this.submit_credentials(event) }, index.h("label", { key: '1a12eb01993f858bbbc2498cc8d896b1dd1dbf88', htmlFor: "rdp-username" }, "Username"), index.h("input", { key: '1530953f30c68d5fe6b3a438bfa91603c18d3de8', id: "rdp-username", type: "text", autocomplete: "off", autofocus: true, onInput: (event) => (this.usernameBuffer = event.target.value) }), index.h("label", { key: '5066a95159ce5237ad4bb70fe4ef4860853b128a', htmlFor: "rdp-password" }, "Password"), index.h("input", { key: '841ace9bfe01ae5bf55829782a047538344ee189', id: "rdp-password", type: "password", autocomplete: "off", onInput: (event) => (this.passwordBuffer = event.target.value) }), index.h("button", { key: '977d63f9c0e0d25b3e710f2c650d22f2382d01c6', type: "submit" }, "Connect"))), this.statusMessage && !this.credentialsPrompt && (index.h("div", { key: '7cf443d2a6fab96cfc87590e145e53325321b5d9', class: "status" }, this.statusMessage))));
735
+ return (index.h(index.Host, { key: '9eb8ba7d53d4c9489df71a9da5bae59f348b3d8a' }, index.h("div", { key: '2172cf49625768c585cb5a976f5164d0348e8426', class: "screen", ref: (el) => (this.containerEl = el) }, index.h("slot", { key: '46f7cffae68155552bb5262c94d8fa308dbcb5df' })), this.credentialsPrompt && (index.h("form", { key: '02da607149cf5d444389888bc4dc1422f7ed44bd', class: "prompt", onSubmit: (event) => this.submit_credentials(event) }, index.h("label", { key: '5e560dd128da72280e0711c545335ec3624a7934', htmlFor: "rdp-username" }, "Username"), index.h("input", { key: '3969f84697c0112cb3a7eeab0a2f8238cff7cff5', id: "rdp-username", type: "text", autocomplete: "off", autofocus: true, onInput: (event) => (this.usernameBuffer = event.target.value) }), index.h("label", { key: 'fec51856a4523c8713938cee20b0e0025ff32795', htmlFor: "rdp-password" }, "Password"), index.h("input", { key: 'e4dff2271b1eb7576bff701540f2566d0bbb897d', id: "rdp-password", type: "password", autocomplete: "off", onInput: (event) => (this.passwordBuffer = event.target.value) }), index.h("button", { key: 'b59d8a69c27e065831d815c9f5a7c8a3432594f6', type: "submit" }, "Connect"))), this.statusMessage && !this.credentialsPrompt && (index.h("div", { key: '7439841369456b3d057a3c389cabeca6affa6f98', class: "status" }, this.statusMessage))));
657
736
  }
658
737
  static get watchers() { return {
659
738
  "nodeId": [{
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-W8Ah6QS2.js');
4
- var protocol = require('./protocol-Da4CPy8u.js');
3
+ var index = require('./index-CbZdPuPQ.js');
4
+ var protocol = require('./protocol-B45sQiET.js');
5
5
 
6
6
  const phirepassSftpClientLogoSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIgogICAgc3Ryb2tlPSJyZ2IoNDYsIDE4NCwgMTM4KSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiCiAgICBjbGFzcz0ibHVjaWRlIGx1Y2lkZS10ZXJtaW5hbCB3LTMuNSBoLTMuNSB0ZXh0LXByaW1hcnkiPgogICAgPHBvbHlsaW5lIHBvaW50cz0iNCAxNyAxMCAxMSA0IDUiPjwvcG9seWxpbmU+CiAgICA8bGluZSB4MT0iMTIiIHgyPSIyMCIgeTE9IjE5IiB5Mj0iMTkiPjwvbGluZT4KPC9zdmc+Cg==';
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-W8Ah6QS2.js');
4
- var protocol = require('./protocol-Da4CPy8u.js');
3
+ var index = require('./index-CbZdPuPQ.js');
4
+ var protocol = require('./protocol-B45sQiET.js');
5
5
 
6
6
  /**
7
7
  * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-W8Ah6QS2.js');
3
+ var index = require('./index-CbZdPuPQ.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.44.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
22
+ return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -37,11 +37,10 @@ class Channel {
37
37
  * @param {number} port
38
38
  * @param {string | null} [username]
39
39
  * @param {string | null} [password]
40
- * @param {string | null} [visibility]
41
40
  * @param {string | null} [scheme]
42
41
  * @param {number | null} [msg_id]
43
42
  */
44
- create_service(node_id, kind, name, host, port, username, password, visibility, scheme, msg_id) {
43
+ create_service(node_id, kind, name, host, port, username, password, scheme, msg_id) {
45
44
  const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
46
45
  const len0 = WASM_VECTOR_LEN;
47
46
  const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -54,11 +53,9 @@ class Channel {
54
53
  var len4 = WASM_VECTOR_LEN;
55
54
  var ptr5 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
56
55
  var len5 = WASM_VECTOR_LEN;
57
- var ptr6 = isLikeNone(visibility) ? 0 : passStringToWasm0(visibility, wasm.__wbindgen_export, wasm.__wbindgen_export2);
56
+ var ptr6 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
58
57
  var len6 = WASM_VECTOR_LEN;
59
- var ptr7 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
60
- var len7 = WASM_VECTOR_LEN;
61
- wasm.channel_create_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, port, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
58
+ wasm.channel_create_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, port, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
62
59
  }
63
60
  /**
64
61
  * @param {string} node_id
@@ -356,11 +353,10 @@ class Channel {
356
353
  * @param {number} port
357
354
  * @param {string | null} [username]
358
355
  * @param {string | null} [password]
359
- * @param {string | null} [visibility]
360
356
  * @param {string | null} [scheme]
361
357
  * @param {number | null} [msg_id]
362
358
  */
363
- update_service(node_id, service_id, kind, name, host, port, username, password, visibility, scheme, msg_id) {
359
+ update_service(node_id, service_id, kind, name, host, port, username, password, scheme, msg_id) {
364
360
  const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
365
361
  const len0 = WASM_VECTOR_LEN;
366
362
  const ptr1 = passStringToWasm0(service_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -375,11 +371,9 @@ class Channel {
375
371
  var len5 = WASM_VECTOR_LEN;
376
372
  var ptr6 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
377
373
  var len6 = WASM_VECTOR_LEN;
378
- var ptr7 = isLikeNone(visibility) ? 0 : passStringToWasm0(visibility, wasm.__wbindgen_export, wasm.__wbindgen_export2);
374
+ var ptr7 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
379
375
  var len7 = WASM_VECTOR_LEN;
380
- var ptr8 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
381
- var len8 = WASM_VECTOR_LEN;
382
- wasm.channel_update_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, port, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
376
+ wasm.channel_update_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, port, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
383
377
  }
384
378
  }
385
379
  if (Symbol.dispose) Channel.prototype[Symbol.dispose] = Channel.prototype.free;
@@ -463,7 +457,7 @@ function __wbg_get_imports() {
463
457
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
464
458
  return addHeapObject(ret);
465
459
  }, arguments); },
466
- __wbg_info_7e9309004ad01bb5: function(arg0, arg1) {
460
+ __wbg_info_c401af4c728dfc5d: function(arg0, arg1) {
467
461
  console.info(getStringFromWasm0(arg0, arg1));
468
462
  },
469
463
  __wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
@@ -535,7 +529,7 @@ function __wbg_get_imports() {
535
529
  __wbg_set_onopen_b28699f3431204cf: function(arg0, arg1) {
536
530
  getObject(arg0).onopen = getObject(arg1);
537
531
  },
538
- __wbg_warn_306c7f564a257385: function(arg0, arg1) {
532
+ __wbg_warn_68977fa8f7b50381: function(arg0, arg1) {
539
533
  console.warn(getStringFromWasm0(arg0, arg1));
540
534
  },
541
535
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
@@ -909,7 +903,7 @@ async function __wbg_init(module_or_path) {
909
903
  }
910
904
 
911
905
  if (module_or_path === undefined) {
912
- module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-Da4CPy8u.js', document.baseURI).href)));
906
+ module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-B45sQiET.js', document.baseURI).href)));
913
907
  }
914
908
  const imports = __wbg_get_imports();
915
909
 
@@ -7,7 +7,7 @@
7
7
  "mixins": [],
8
8
  "compiler": {
9
9
  "name": "@stencil/core",
10
- "version": "4.44.1",
10
+ "version": "4.44.2",
11
11
  "typescriptVersion": "5.8.3"
12
12
  },
13
13
  "collections": [],
@@ -64,9 +64,11 @@ export class PhirepassRdp {
64
64
  * the widget is resized, so the desktop is rendered at native size rather
65
65
  * than scaled.
66
66
  *
67
- * The host has the last word: this needs the display-control channel, and a
68
- * host that does not offer it simply keeps the resolution it started with —
69
- * which `scale` then fits into the widget, as before.
67
+ * Turning this on is what registers the display-control extension, since
68
+ * the channel it opens is negotiated at connect time and never afterwards.
69
+ * The host still has the last word: one that does not offer the channel
70
+ * keeps the resolution it started with, which `scale` then fits into the
71
+ * widget, as before.
70
72
  */
71
73
  dynamicResize = true;
72
74
  /**
@@ -79,6 +81,16 @@ export class PhirepassRdp {
79
81
  * desktop has focus.
80
82
  */
81
83
  captureKeyboard = true;
84
+ /**
85
+ * Share the clipboard with the remote host in both directions.
86
+ *
87
+ * On is the client's own default and needs nothing from us, so this exists
88
+ * to turn it **off**: a deployment that treats copy-out as exfiltration can
89
+ * take the clipboard away without giving up the session. Clipboard access
90
+ * additionally needs a secure context — over plain HTTP the browser refuses
91
+ * it whatever this says, and the client's warning is logged.
92
+ */
93
+ clipboard = true;
82
94
  onNodeIdChange(newValue, _oldValue) {
83
95
  this.reset_session_state();
84
96
  if (this.channel && this.channel.is_connected()) {
@@ -158,6 +170,39 @@ export class PhirepassRdp {
158
170
  async focusDesktop() {
159
171
  this.focus_desktop();
160
172
  }
173
+ /**
174
+ * Sends Ctrl+Alt+Del to the remote host.
175
+ *
176
+ * The host has to be told, because pressing it never reaches us: Ctrl+Alt+Del
177
+ * is a secure attention sequence the operating system takes before any
178
+ * browser sees it, and `captureKeyboard` cannot claim it either. Yet it is
179
+ * how a Windows session is unlocked and how the login screen is reached, so
180
+ * without this a locked desktop is a dead end.
181
+ *
182
+ * Answers whether it was sent — there is no session to send it to until the
183
+ * client has connected.
184
+ */
185
+ async sendCtrlAltDel() {
186
+ if (!this.userInteraction) {
187
+ return false;
188
+ }
189
+ this.userInteraction.ctrlAltDel();
190
+ this.focus_desktop();
191
+ return true;
192
+ }
193
+ /**
194
+ * Sends the Meta (Windows/Command) key to the remote host, which opens the
195
+ * Start menu. Outside fullscreen the browser and the desktop environment
196
+ * take this key first, so like Ctrl+Alt+Del it has to be sendable directly.
197
+ */
198
+ async sendMetaKey() {
199
+ if (!this.userInteraction) {
200
+ return false;
201
+ }
202
+ this.userInteraction.metaKey();
203
+ this.focus_desktop();
204
+ return true;
205
+ }
161
206
  try_connect() {
162
207
  if (this.connected || !this.domReady || !this.runtimeReady) {
163
208
  return;
@@ -279,9 +324,25 @@ export class PhirepassRdp {
279
324
  element.scale = this.scale;
280
325
  element.flexcenter = true;
281
326
  element.verbose = false;
327
+ // Extensions are how the client is configured, and neither
328
+ // `iron-remote-desktop` nor its RDP backend registers one on the app's
329
+ // behalf — both packages only expose the factories.
330
+ const extensions = [backend.enableCredssp(true)];
331
+ // The DisplayControl virtual channel is negotiated at connect time and
332
+ // never afterwards: it is how the client tells the host it can accept a
333
+ // resolution change at all. A client that did not ask for it fails
334
+ // every `resize()` with "Display Control Virtual Channel is not
335
+ // available", which reaches the widget as a host that silently refuses
336
+ // to resize — making the viewport sync, the initial desktop
337
+ // measurement and the `dynamicResize` prop all look like a host
338
+ // limitation. Asked for only when `dynamicResize` is on, so a caller
339
+ // that turned it off does not advertise a channel it will never use.
340
+ if (this.dynamicResize) {
341
+ extensions.push(backend.displayControl(true));
342
+ }
282
343
  element.addEventListener('ready', (event) => {
283
344
  const detail = event.detail;
284
- void this.start_session(detail.irgUserInteraction, web.ticket, backend.enableCredssp(true));
345
+ void this.start_session(detail.irgUserInteraction, web.ticket, extensions);
285
346
  });
286
347
  this.ironEl = element;
287
348
  this.mount_client(element);
@@ -302,16 +363,34 @@ export class PhirepassRdp {
302
363
  mount_client(element) {
303
364
  this.el.appendChild(element);
304
365
  }
305
- async start_session(userInteraction, ticket, credssp) {
366
+ async start_session(userInteraction, ticket, extensions) {
306
367
  this.userInteraction = userInteraction;
368
+ // Both clipboard switches are on by default inside the client, and its
369
+ // element wires the browser side up on its own — so this only ever
370
+ // turns the clipboard off. It has to happen before `connect`, because
371
+ // that is when the client decides whether to register the clipboard
372
+ // callbacks with its backend at all.
373
+ if (!this.clipboard) {
374
+ userInteraction.setEnableClipboard(false);
375
+ }
376
+ // Clipboard problems are reported this way and no other: an insecure
377
+ // context, a browser too old for the async clipboard API, a read the
378
+ // user never granted. Without a callback the client's own warning is
379
+ // dropped, and a clipboard that does nothing looks identical to one
380
+ // that was never asked for.
381
+ userInteraction.onWarningCallback((warning) => {
382
+ console.warn('The remote desktop client reported a problem:', warning);
383
+ });
307
384
  const builder = userInteraction
308
385
  .configBuilder()
309
386
  .withUsername(this.credentials?.username ?? '')
310
387
  .withPassword(this.credentials?.password ?? '')
311
388
  .withDestination(this.destination ?? this.nodeId)
312
389
  .withProxyAddress(`${this.create_web_socket_endpoint()}/api/web/rdp/${this.nodeId}`)
313
- .withAuthToken(ticket)
314
- .withExtension(credssp);
390
+ .withAuthToken(ticket);
391
+ for (const extension of extensions) {
392
+ builder.withExtension(extension);
393
+ }
315
394
  // Asking for the widget's size up front saves the remote host a
316
395
  // resolution change immediately after logon — but only when the widget
317
396
  // has been laid out. An unmeasurable widget asks for nothing and lets
@@ -448,7 +527,7 @@ export class PhirepassRdp {
448
527
  this.request_tunnel();
449
528
  }
450
529
  render() {
451
- return (h(Host, { key: '892fd55fb84abf180866dd7af4e44adc9c23f338' }, h("div", { key: 'fd6ac08295b6ce9e3bd3932abea271c9c6fc8a00', class: "screen", ref: (el) => (this.containerEl = el) }, h("slot", { key: 'b9240f804177898f29598b0c7ec7b4f4d2e8d6c6' })), this.credentialsPrompt && (h("form", { key: '49ce099f575a30c0bb326a64de74d30cf599418f', class: "prompt", onSubmit: (event) => this.submit_credentials(event) }, h("label", { key: '1a12eb01993f858bbbc2498cc8d896b1dd1dbf88', htmlFor: "rdp-username" }, "Username"), h("input", { key: '1530953f30c68d5fe6b3a438bfa91603c18d3de8', id: "rdp-username", type: "text", autocomplete: "off", autofocus: true, onInput: (event) => (this.usernameBuffer = event.target.value) }), h("label", { key: '5066a95159ce5237ad4bb70fe4ef4860853b128a', htmlFor: "rdp-password" }, "Password"), h("input", { key: '841ace9bfe01ae5bf55829782a047538344ee189', id: "rdp-password", type: "password", autocomplete: "off", onInput: (event) => (this.passwordBuffer = event.target.value) }), h("button", { key: '977d63f9c0e0d25b3e710f2c650d22f2382d01c6', type: "submit" }, "Connect"))), this.statusMessage && !this.credentialsPrompt && (h("div", { key: '7cf443d2a6fab96cfc87590e145e53325321b5d9', class: "status" }, this.statusMessage))));
530
+ return (h(Host, { key: '9eb8ba7d53d4c9489df71a9da5bae59f348b3d8a' }, h("div", { key: '2172cf49625768c585cb5a976f5164d0348e8426', class: "screen", ref: (el) => (this.containerEl = el) }, h("slot", { key: '46f7cffae68155552bb5262c94d8fa308dbcb5df' })), this.credentialsPrompt && (h("form", { key: '02da607149cf5d444389888bc4dc1422f7ed44bd', class: "prompt", onSubmit: (event) => this.submit_credentials(event) }, h("label", { key: '5e560dd128da72280e0711c545335ec3624a7934', htmlFor: "rdp-username" }, "Username"), h("input", { key: '3969f84697c0112cb3a7eeab0a2f8238cff7cff5', id: "rdp-username", type: "text", autocomplete: "off", autofocus: true, onInput: (event) => (this.usernameBuffer = event.target.value) }), h("label", { key: 'fec51856a4523c8713938cee20b0e0025ff32795', htmlFor: "rdp-password" }, "Password"), h("input", { key: 'e4dff2271b1eb7576bff701540f2566d0bbb897d', id: "rdp-password", type: "password", autocomplete: "off", onInput: (event) => (this.passwordBuffer = event.target.value) }), h("button", { key: 'b59d8a69c27e065831d815c9f5a7c8a3432594f6', type: "submit" }, "Connect"))), this.statusMessage && !this.credentialsPrompt && (h("div", { key: '7439841369456b3d057a3c389cabeca6affa6f98', class: "status" }, this.statusMessage))));
452
531
  }
453
532
  static get is() { return "phirepass-rdp"; }
454
533
  static get encapsulation() { return "shadow"; }
@@ -690,7 +769,7 @@ export class PhirepassRdp {
690
769
  "optional": false,
691
770
  "docs": {
692
771
  "tags": [],
693
- "text": "Ask the remote host to change its resolution to match the widget whenever\nthe widget is resized, so the desktop is rendered at native size rather\nthan scaled.\n\nThe host has the last word: this needs the display-control channel, and a\nhost that does not offer it simply keeps the resolution it started with \u2014\nwhich `scale` then fits into the widget, as before."
772
+ "text": "Ask the remote host to change its resolution to match the widget whenever\nthe widget is resized, so the desktop is rendered at native size rather\nthan scaled.\n\nTurning this on is what registers the display-control extension, since\nthe channel it opens is negotiated at connect time and never afterwards.\nThe host still has the last word: one that does not offer the channel\nkeeps the resolution it started with, which `scale` then fits into the\nwidget, as before."
694
773
  },
695
774
  "getter": false,
696
775
  "setter": false,
@@ -718,6 +797,26 @@ export class PhirepassRdp {
718
797
  "attribute": "capture-keyboard",
719
798
  "defaultValue": "true"
720
799
  },
800
+ "clipboard": {
801
+ "type": "boolean",
802
+ "mutable": false,
803
+ "complexType": {
804
+ "original": "boolean",
805
+ "resolved": "boolean",
806
+ "references": {}
807
+ },
808
+ "required": false,
809
+ "optional": false,
810
+ "docs": {
811
+ "tags": [],
812
+ "text": "Share the clipboard with the remote host in both directions.\n\nOn is the client's own default and needs nothing from us, so this exists\nto turn it **off**: a deployment that treats copy-out as exfiltration can\ntake the clipboard away without giving up the session. Clipboard access\nadditionally needs a secure context \u2014 over plain HTTP the browser refuses\nit whatever this says, and the client's warning is logged."
813
+ },
814
+ "getter": false,
815
+ "setter": false,
816
+ "reflect": false,
817
+ "attribute": "clipboard",
818
+ "defaultValue": "true"
819
+ },
721
820
  "serverId": {
722
821
  "type": "string",
723
822
  "mutable": false,
@@ -822,6 +921,40 @@ export class PhirepassRdp {
822
921
  "text": "Directs keystrokes at the remote desktop without waiting for a click.",
823
922
  "tags": []
824
923
  }
924
+ },
925
+ "sendCtrlAltDel": {
926
+ "complexType": {
927
+ "signature": "() => Promise<boolean>",
928
+ "parameters": [],
929
+ "references": {
930
+ "Promise": {
931
+ "location": "global",
932
+ "id": "global::Promise"
933
+ }
934
+ },
935
+ "return": "Promise<boolean>"
936
+ },
937
+ "docs": {
938
+ "text": "Sends Ctrl+Alt+Del to the remote host.\n\nThe host has to be told, because pressing it never reaches us: Ctrl+Alt+Del\nis a secure attention sequence the operating system takes before any\nbrowser sees it, and `captureKeyboard` cannot claim it either. Yet it is\nhow a Windows session is unlocked and how the login screen is reached, so\nwithout this a locked desktop is a dead end.\n\nAnswers whether it was sent \u2014 there is no session to send it to until the\nclient has connected.",
939
+ "tags": []
940
+ }
941
+ },
942
+ "sendMetaKey": {
943
+ "complexType": {
944
+ "signature": "() => Promise<boolean>",
945
+ "parameters": [],
946
+ "references": {
947
+ "Promise": {
948
+ "location": "global",
949
+ "id": "global::Promise"
950
+ }
951
+ },
952
+ "return": "Promise<boolean>"
953
+ },
954
+ "docs": {
955
+ "text": "Sends the Meta (Windows/Command) key to the remote host, which opens the\nStart menu. Outside fullscreen the browser and the desktop environment\ntake this key first, so like Ctrl+Alt+Del it has to be sendable directly.",
956
+ "tags": []
957
+ }
825
958
  }
826
959
  };
827
960
  }