web: bump @types/guacamole-common-js from 1.3.2 to 1.5.2 in /web (#8030)

* web: bump @types/guacamole-common-js from 1.3.2 to 1.5.2 in /web

Bumps [@types/guacamole-common-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/guacamole-common-js) from 1.3.2 to 1.5.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/guacamole-common-js)

---
updated-dependencies:
- dependency-name: "@types/guacamole-common-js"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
dependabot[bot] 2024-01-01 21:26:43 +01:00 committed by GitHub
parent 7337f48d0a
commit d711713785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 12 deletions

8
web/package-lock.json generated
View File

@ -74,7 +74,7 @@
"@types/chart.js": "^2.9.41", "@types/chart.js": "^2.9.41",
"@types/codemirror": "5.60.15", "@types/codemirror": "5.60.15",
"@types/grecaptcha": "^3.0.7", "@types/grecaptcha": "^3.0.7",
"@types/guacamole-common-js": "1.3.2", "@types/guacamole-common-js": "1.5.2",
"@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0", "@typescript-eslint/parser": "^6.16.0",
"babel-plugin-macros": "^3.1.0", "babel-plugin-macros": "^3.1.0",
@ -7370,9 +7370,9 @@
"dev": true "dev": true
}, },
"node_modules/@types/guacamole-common-js": { "node_modules/@types/guacamole-common-js": {
"version": "1.3.2", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/@types/guacamole-common-js/-/guacamole-common-js-1.3.2.tgz", "resolved": "https://registry.npmjs.org/@types/guacamole-common-js/-/guacamole-common-js-1.5.2.tgz",
"integrity": "sha512-217AvsdGfuoqrXLWjrZOjO1CRzY0PNCG07NQf+cW6gYZhExCpjwDrpIbi5pFrmskPZB3T8n1CZLEoYW7rTERNQ==", "integrity": "sha512-S01txydRyBscHyV8giYNdrfU7dzwUkLb8prQPP68/YCpY/gMtcL9e7BXGpQttj4XpelSUVkA++TjllalZ0AHjg==",
"dev": true "dev": true
}, },
"node_modules/@types/http-errors": { "node_modules/@types/http-errors": {

View File

@ -98,7 +98,7 @@
"@types/chart.js": "^2.9.41", "@types/chart.js": "^2.9.41",
"@types/codemirror": "5.60.15", "@types/codemirror": "5.60.15",
"@types/grecaptcha": "^3.0.7", "@types/grecaptcha": "^3.0.7",
"@types/guacamole-common-js": "1.3.2", "@types/guacamole-common-js": "1.5.2",
"@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0", "@typescript-eslint/parser": "^6.16.0",
"babel-plugin-macros": "^3.1.0", "babel-plugin-macros": "^3.1.0",

View File

@ -238,13 +238,15 @@ export class RacInterface extends Interface {
this.client.sendMouseState(mouseState); this.client.sendMouseState(mouseState);
}; };
mouse.onmouseup = mouse.onmousedown = (mouseState) => { // @ts-ignore
mouse.onEach(["mouseup", "mousedown"], (ev: Guacamole.Mouse.Event) => {
this.container?.focus(); this.container?.focus();
handler(mouseState); handler(ev.state);
}; });
mouse.onmousemove = (mouseState) => { // @ts-ignore
handler(mouseState, true); mouse.on("mousemove", (ev: Guacamole.Mouse.Event) => {
}; handler(ev.state, true);
});
} }
initAudioInput(): void { initAudioInput(): void {
@ -298,7 +300,7 @@ export class RacInterface extends Interface {
if (!this.client) { if (!this.client) {
return; return;
} }
const stream = this.client.createClipboardStream("text/plain", "clipboard"); const stream = this.client.createClipboardStream("text/plain");
const writer = new Guacamole.StringWriter(stream); const writer = new Guacamole.StringWriter(stream);
writer.sendText(value); writer.sendText(value);
writer.sendEnd(); writer.sendEnd();