@tak-ps/cloudtak 13.78.0 → 13.78.2

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,12 +1,14 @@
1
1
  import type { Component } from 'vue';
2
- import type { VideoConnection, Attachment } from '../types.ts';
2
+ import type { VideoConnection, VideoLease, Attachment } from '../types.ts';
3
3
  export declare enum VideoStoreType {
4
4
  COT = "cot",
5
- CONNECTION = "connection"
5
+ CONNECTION = "connection",
6
+ LEASE = "lease"
6
7
  }
7
8
  export type PaneVideoConfig = {
8
9
  type: VideoStoreType;
9
- url: string;
10
+ url?: string;
11
+ lease?: number;
10
12
  };
11
13
  export type PaneAttachmentConfig = {
12
14
  attachment: Attachment;
@@ -38,5 +40,6 @@ export declare const useFloatStore: import("pinia").StoreDefinition<"float", {
38
40
  }): Pane;
39
41
  addAttachment(attachment: Attachment): void;
40
42
  addConnection(connection: VideoConnection): void;
43
+ addLease(lease: VideoLease): void;
41
44
  addCOT(uid: string): Promise<void>;
42
45
  }>;
@@ -166,6 +166,11 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
166
166
  * originating client's change is not echoed back to the API.
167
167
  */
168
168
  reconcileOverlays: () => Promise<void>;
169
+ /**
170
+ * Mark a mission subscription as unsubscribed when its overlay no
171
+ * longer exists, clearing the active mission if it was this one
172
+ */
173
+ unsubscribeOrphanedMission: (guid: string) => Promise<void>;
169
174
  reconcileOverlaysOnce: () => Promise<void>;
170
175
  updateIconRotation: (enabled: boolean) => void;
171
176
  updateDistanceUnit: (unit: string) => void;
@@ -17,5 +17,7 @@ export declare function addBackgroundStateListener(handler: (isBackgrounded: boo
17
17
  * suspended. Resolves immediately on web.
18
18
  */
19
19
  export declare function whenForegrounded(): Promise<void>;
20
+ export declare function addBackButtonListener(handler: () => void): Promise<() => void>;
21
+ export declare function minimizeApp(): Promise<void>;
20
22
  export declare function openExternalUrl(url: string | URL): Promise<void>;
21
23
  export declare function openSecondaryView(url: string | URL): Promise<void>;
@@ -77,8 +77,11 @@ export default class AtlasDatabase {
77
77
  * Return CoTs touching a given polygon
78
78
  *
79
79
  * @param poly - GeoJSON Polygon to test CoTs against
80
+ * @param opts.mission - If set, test features from the given Mission GUID instead of the CoT store
80
81
  */
81
- touching(poly: Polygon): Promise<Set<COT>>;
82
+ touching(poly: Polygon, opts?: {
83
+ mission?: string;
84
+ }): Promise<Set<COT>>;
82
85
  /**
83
86
  * Hydrate the in-memory store from the local Dexie feature database.
84
87
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/cloudtak",
3
3
  "type": "module",
4
- "version": "13.78.0",
4
+ "version": "13.78.2",
5
5
  "types": "dist/types/plugin.d.ts",
6
6
  "files": [
7
7
  "dist/types"
@@ -44,13 +44,13 @@
44
44
  "@capacitor/keyboard": "^8.0.3",
45
45
  "@capacitor/preferences": "^8.0.1",
46
46
  "@capacitor/status-bar": "^8.0.2",
47
- "@capawesome/capacitor-network": "0.1.3",
47
+ "@capawesome/capacitor-network": "0.1.4",
48
48
  "@capgo/background-geolocation": "^8.0.39",
49
49
  "@capgo/capacitor-compass": "^8.1.17",
50
50
  "@capgo/capacitor-updater": "^8.50.1",
51
51
  "@mapbox/tile-cover": "^3.0.2",
52
52
  "@scalar/api-reference": "^1.66.1",
53
- "@simplewebauthn/browser": "^13.3.0",
53
+ "@simplewebauthn/browser": "^14.0.0",
54
54
  "@tabler/core": "^1.4.0",
55
55
  "@tabler/icons-vue": "^3.0.0",
56
56
  "@tak-ps/node-cot": "^14.47.0",