@types/novnc__novnc 1.5.0 → 1.7.0

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.
novnc__novnc/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for @novnc/novnc (https://github.com/novn
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/novnc__novnc.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 29 Jul 2024 19:07:13 GMT
11
+ * Last updated: Tue, 24 Nov 2026 18:03:44 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
novnc__novnc/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
2
- declare module "@novnc/novnc/lib/rfb" {
2
+ declare module "@novnc/novnc" {
3
3
  /**
4
4
  * An `object` specifying the credentials to provide to the server when authenticating.
5
5
  */
6
6
  interface NoVncCredentials {
7
7
  /** The user that authenticates */
8
- username: string;
8
+ username?: string;
9
9
  /** Password for the user */
10
- password: string;
10
+ password?: string;
11
11
  /** Target machine or session */
12
- target: string;
12
+ target?: string;
13
13
  }
14
14
 
15
15
  /**
@@ -102,6 +102,12 @@ declare module "@novnc/novnc/lib/rfb" {
102
102
  * value of `capabilities`.
103
103
  */
104
104
  capabilities: CustomEvent<{ capabilities: NoVncClient["capabilities"] }>;
105
+
106
+ /**
107
+ * The `clippingviewport` event is fired whenever `clippingViewport` changes between true and false.
108
+ * The `detail` property is a `boolean` with the new value of `clippingViewport`.
109
+ */
110
+ clippingviewport: CustomEvent<NoVncClient["clippingViewport"]>;
105
111
  }
106
112
 
107
113
  type NoVncEventType = keyof NoVncEvents;
@@ -218,6 +224,12 @@ declare module "@novnc/novnc/lib/rfb" {
218
224
  power: boolean;
219
225
  };
220
226
 
227
+ /**
228
+ * Is a `boolean` indicating if the remote session is currently being clipped to its container.
229
+ * Only relevant if `clipViewport` is enabled.
230
+ */
231
+ readonly clippingViewport: boolean;
232
+
221
233
  /**
222
234
  * Disconnect from the server.
223
235
  */
@@ -309,7 +321,7 @@ declare module "@novnc/novnc/lib/rfb" {
309
321
  }
310
322
 
311
323
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
312
- declare module "@novnc/novnc/lib/util/browser" {
324
+ declare module "@novnc/novnc/core/util/browser" {
313
325
  let isTouchDevice: boolean;
314
326
  let dragThreshold: number;
315
327
 
@@ -324,7 +336,7 @@ declare module "@novnc/novnc/lib/util/browser" {
324
336
  }
325
337
 
326
338
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
327
- declare module "@novnc/novnc/lib/input/util" {
339
+ declare module "@novnc/novnc/core/input/util" {
328
340
  interface KeyboardEventBase {
329
341
  char?: string;
330
342
  charCode?: number;
novnc__novnc/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/novnc__novnc",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "TypeScript definitions for @novnc/novnc",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/novnc__novnc",
6
6
  "license": "MIT",
@@ -16,6 +16,7 @@
16
16
  "url": "https://github.com/ovcharik"
17
17
  }
18
18
  ],
19
+ "type": "module",
19
20
  "main": "",
20
21
  "types": "index.d.ts",
21
22
  "repository": {
@@ -25,6 +26,7 @@
25
26
  },
26
27
  "scripts": {},
27
28
  "dependencies": {},
28
- "typesPublisherContentHash": "0b81569f169859f4dd6e5f6a9a591c82e3d21934e974860ef287d90b7412c309",
29
- "typeScriptVersion": "4.8"
29
+ "peerDependencies": {},
30
+ "typesPublisherContentHash": "a0b6c0e7bfa6e6b1786f7f4af5313974513ef1f62c23c2cb60881c9449fcc2c2",
31
+ "typeScriptVersion": "5.6"
30
32
  }