@vertigis/viewer-spec 58.15.0 → 58.16.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.
@@ -1,4 +1,6 @@
1
1
  import type { Command } from "../Command.js";
2
+ import type { Event } from "../Event.js";
3
+ import { EventRegistry } from "../EventRegistry.js";
2
4
  import type { Operation } from "../Operation.js";
3
5
  import { OperationRegistry } from "../OperationRegistry.js";
4
6
  /** The status of a connection to a network host. */
@@ -10,6 +12,23 @@ export interface HostAndPortArgs {
10
12
  /** The port number to connect to. Must be an integer. */
11
13
  port: number;
12
14
  }
15
+ export declare class NetworkEvents extends EventRegistry {
16
+ protected readonly _prefix = "network";
17
+ /**
18
+ * Raised when the user has blocked the app from making web requests. Mobile
19
+ * only.
20
+ *
21
+ * @mobileOnly
22
+ */
23
+ get webRequestsDisabled(): Event;
24
+ /**
25
+ * Raised when the user has allowed the app to make web requests. Mobile
26
+ * only.
27
+ *
28
+ * @mobileOnly
29
+ */
30
+ get webRequestsEnabled(): Event;
31
+ }
13
32
  export declare class NetworkOperations extends OperationRegistry {
14
33
  protected readonly _prefix = "network";
15
34
  /**
@@ -1 +1 @@
1
- import{OperationRegistry as e}from"../OperationRegistry.js";export class NetworkOperations extends e{_prefix="network";get disableWebRequests(){return this._get("disable-web-requests")}get enableWebRequests(){return this._get("enable-web-requests")}get areWebRequestsDisabled(){return this._get("are-web-requests-disabled")}get hasConnection(){return this._get("has-connection")}get getStatus(){return this._get("get-status")}get canReachHost(){return this._get("can-reach-host")}get canReachUrl(){return this._get("can-reach-url")}}
1
+ import{EventRegistry as e}from"../EventRegistry.js";import{OperationRegistry as t}from"../OperationRegistry.js";export class NetworkEvents extends e{_prefix="network";get webRequestsDisabled(){return this._get("web-requests-disabled")}get webRequestsEnabled(){return this._get("web-requests-enabled")}}export class NetworkOperations extends t{_prefix="network";get disableWebRequests(){return this._get("disable-web-requests")}get enableWebRequests(){return this._get("enable-web-requests")}get areWebRequestsDisabled(){return this._get("are-web-requests-disabled")}get hasConnection(){return this._get("has-connection")}get getStatus(){return this._get("get-status")}get canReachHost(){return this._get("can-reach-host")}get canReachUrl(){return this._get("can-reach-url")}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "58.15.0",
3
+ "version": "58.16.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export declare const version = "58.15.0";
4
+ export declare const version = "58.16.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export const version = "58.15.0";
4
+ export const version = "58.16.0";