@tak-ps/cloudtak 12.133.0 → 12.134.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.
- package/dist/types/src/base/capacitor.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/util/CopyButton.vue.d.ts +2 -2
- package/dist/types/src/components/CloudTAK/util/CopyField.vue.d.ts +2 -2
- package/dist/types/src/components/CloudTAK/util/ShareToMission.vue.d.ts +1 -1
- package/dist/types/src/stores/map.d.ts +4 -2
- package/dist/types/src/stores/modules/icons.d.ts +4 -0
- package/package.json +13 -4
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CallbackID, Position, PositionOptions } from '@capacitor/geolocation';
|
|
2
|
+
export declare function isNativePlatform(): boolean;
|
|
3
|
+
export declare function supportsServiceWorker(): boolean;
|
|
4
|
+
export declare function supportsLocationRequests(): boolean;
|
|
5
|
+
export declare function resolveRuntimeUrl(url: string | URL): URL;
|
|
6
|
+
export declare function openExternalUrl(url: string | URL): Promise<void>;
|
|
7
|
+
export declare function openSecondaryView(url: string | URL): Promise<void>;
|
|
8
|
+
export declare function writeClipboardText(value: string): Promise<void>;
|
|
9
|
+
export declare function checkNativeLocationPermission(): Promise<PermissionState | 'prompt' | 'unknown'>;
|
|
10
|
+
export declare function requestNativeLocationPermission(): Promise<PermissionState | 'prompt' | 'unknown'>;
|
|
11
|
+
export declare function getCurrentLocation(options?: PositionOptions): Promise<Position>;
|
|
12
|
+
export declare function watchLocation(options: PositionOptions, callback: (position: Position | null, err?: unknown) => void): Promise<CallbackID>;
|
|
13
|
+
export declare function clearLocationWatch(id: CallbackID): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
text: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
size: {
|
|
@@ -13,7 +13,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
13
13
|
};
|
|
14
14
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
text: {
|
|
16
|
-
type: (
|
|
16
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
@@ -12,7 +12,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
modelValue: {
|
|
15
|
-
type: (
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
18
|
rows: {
|
|
@@ -61,7 +61,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
63
|
modelValue: {
|
|
64
|
-
type: (
|
|
64
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
65
65
|
required: true;
|
|
66
66
|
};
|
|
67
67
|
rows: {
|
|
@@ -42,12 +42,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
42
42
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
43
43
|
}>, {
|
|
44
44
|
feats: Feature[];
|
|
45
|
-
action: string;
|
|
46
45
|
assets: {
|
|
47
46
|
type: "profile";
|
|
48
47
|
id: string;
|
|
49
48
|
name: string;
|
|
50
49
|
}[];
|
|
50
|
+
action: string;
|
|
51
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
52
52
|
declare const _default: typeof __VLS_export;
|
|
53
53
|
export default _default;
|
|
@@ -12,6 +12,7 @@ import mapgl from 'maplibre-gl';
|
|
|
12
12
|
import type Atlas from '../workers/atlas.ts';
|
|
13
13
|
import type { Basemap, APIList, Feature, ConfigMap } from '../types.ts';
|
|
14
14
|
import type { LngLat, Point, MapGeoJSONFeature } from 'maplibre-gl';
|
|
15
|
+
import type { CallbackID } from '@capacitor/geolocation';
|
|
15
16
|
export type TAKNotification = {
|
|
16
17
|
type: string;
|
|
17
18
|
name: string;
|
|
@@ -46,7 +47,7 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
|
|
|
46
47
|
defaultPointType: string;
|
|
47
48
|
manualLocationMode: boolean;
|
|
48
49
|
isMobileDetected: boolean;
|
|
49
|
-
gpsWatchId:
|
|
50
|
+
gpsWatchId: CallbackID | null;
|
|
50
51
|
tokenExpiry: number | null;
|
|
51
52
|
lastUpdateCOTErrorSignature: string | null;
|
|
52
53
|
toastOffset: {
|
|
@@ -118,7 +119,8 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
|
|
|
118
119
|
reload: boolean;
|
|
119
120
|
}) => Promise<Subscription | null>;
|
|
120
121
|
init: (container: HTMLElement) => Promise<void>;
|
|
121
|
-
|
|
122
|
+
stopGPSWatch: () => Promise<void>;
|
|
123
|
+
startGPSWatch: () => Promise<void>;
|
|
122
124
|
initOverlays: () => Promise<void>;
|
|
123
125
|
updateIconRotation: (enabled: boolean) => void;
|
|
124
126
|
updateDistanceUnit: (unit: string) => void;
|
|
@@ -10,6 +10,7 @@ export default class IconManager {
|
|
|
10
10
|
private loggedErrors;
|
|
11
11
|
private inflightImage;
|
|
12
12
|
private fallbackBitmap;
|
|
13
|
+
private requestedIconsetImageIds;
|
|
13
14
|
constructor(map: MapLibreMap, worker: Comlink.Remote<Atlas>);
|
|
14
15
|
private logWarnOnce;
|
|
15
16
|
private logErrorOnce;
|
|
@@ -62,6 +63,9 @@ export default class IconManager {
|
|
|
62
63
|
* MapLibre. Falls back to a generic point icon when the icon isn't cached.
|
|
63
64
|
*/
|
|
64
65
|
private loadIconsetImage;
|
|
66
|
+
private reloadIconsetImages;
|
|
67
|
+
private reloadRequestedIconsetImage;
|
|
68
|
+
private removeRequestedImagesForIconset;
|
|
65
69
|
private getFallbackBitmap;
|
|
66
70
|
/**
|
|
67
71
|
* Get or create a colored version of an icon
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tak-ps/cloudtak",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "12.
|
|
4
|
+
"version": "12.134.0",
|
|
5
5
|
"types": "dist/types/plugin.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/types"
|
|
@@ -29,8 +29,16 @@
|
|
|
29
29
|
"url": "git+https://github.com/dfpc-coe/CloudTAK.git"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"@capacitor/app": "8.1.0",
|
|
33
|
+
"@capacitor/browser": "^8.0.1",
|
|
34
|
+
"@capacitor/clipboard": "^8.0.1",
|
|
35
|
+
"@capacitor/core": "8.3.1",
|
|
36
|
+
"@capacitor/geolocation": "^8.1.0",
|
|
37
|
+
"@capacitor/haptics": "8.0.2",
|
|
38
|
+
"@capacitor/ios": "8.3.1",
|
|
39
|
+
"@capacitor/keyboard": "8.0.3",
|
|
40
|
+
"@capacitor/status-bar": "8.0.2",
|
|
32
41
|
"@mapbox/tile-cover": "^3.0.2",
|
|
33
|
-
"@react-hookz/deep-equal": "^3.0.3",
|
|
34
42
|
"@simplewebauthn/browser": "^13.3.0",
|
|
35
43
|
"@tabler/core": "^1.4.0",
|
|
36
44
|
"@tabler/icons-vue": "^3.0.0",
|
|
@@ -52,6 +60,7 @@
|
|
|
52
60
|
"@turf/meta": "^7.2.0",
|
|
53
61
|
"@turf/nearest-point-on-line": "^7.3.4",
|
|
54
62
|
"@turf/point-on-feature": "^7.0.0",
|
|
63
|
+
"@ver0/deep-equal": "^2.0.1",
|
|
55
64
|
"@vueuse/core": "^14.0.0",
|
|
56
65
|
"autosize": "^6.0.1",
|
|
57
66
|
"comlink": "^4.4.2",
|
|
@@ -67,7 +76,6 @@
|
|
|
67
76
|
"jsonata": "^2.0.4",
|
|
68
77
|
"maplibre-gl": "5.24.0",
|
|
69
78
|
"milsymbol": "^3.0.2",
|
|
70
|
-
"moment": "^2.29.3",
|
|
71
79
|
"openapi-fetch": "^0.17.0",
|
|
72
80
|
"phone": "^3.1.59",
|
|
73
81
|
"pinia": "^3.0.0",
|
|
@@ -86,6 +94,7 @@
|
|
|
86
94
|
"yaml": "^2.8.2"
|
|
87
95
|
},
|
|
88
96
|
"devDependencies": {
|
|
97
|
+
"@capacitor/cli": "8.3.1",
|
|
89
98
|
"@eslint/js": "^10.0.0",
|
|
90
99
|
"@testing-library/vue": "^8.1.0",
|
|
91
100
|
"@types/mapbox__tile-cover": "^3.0.4",
|
|
@@ -112,4 +121,4 @@
|
|
|
112
121
|
"> 1%",
|
|
113
122
|
"last 2 versions"
|
|
114
123
|
]
|
|
115
|
-
}
|
|
124
|
+
}
|