@tak-ps/cloudtak 13.19.1 → 13.21.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.
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -3,7 +3,10 @@ import Subscription from '../../../../base/subscription.ts';
3
3
  type __VLS_Props = {
4
4
  log: DBSubscriptionLog;
5
5
  subscription: Subscription;
6
+ relevant?: string[];
6
7
  };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ relevant: string[];
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
11
  declare const _default: typeof __VLS_export;
9
12
  export default _default;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { ProfilePaging, ProfilePaging_Create } from '../../../../types.ts';
2
+ type PagingType = ProfilePaging_Create['type'];
3
+ type __VLS_Props = {
4
+ source: ProfilePaging | {
5
+ type: PagingType;
6
+ };
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ close: (...args: any[]) => void;
10
+ refresh: (...args: any[]) => void;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onClose?: ((...args: any[]) => any) | undefined;
13
+ onRefresh?: ((...args: any[]) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -7,7 +7,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ update: (...args: any[]) => void;
12
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
13
  mode: {
12
14
  type: StringConstructor;
13
15
  default: string;
@@ -16,7 +18,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
16
18
  type: BooleanConstructor;
17
19
  default: boolean;
18
20
  };
19
- }>> & Readonly<{}>, {
21
+ }>> & Readonly<{
22
+ onUpdate?: ((...args: any[]) => any) | undefined;
23
+ }>, {
20
24
  mode: string;
21
25
  forceCallsign: boolean;
22
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,28 @@
1
+ export type DisplayStyleMode = 'System Default' | 'Light' | 'Dark';
2
+ export type ResolvedThemeMode = 'light' | 'dark';
3
+ export declare const useAppStore: import("pinia").StoreDefinition<"cloudtak-app", {
4
+ tokenExpiry: number | null;
5
+ user: boolean;
6
+ isMobileDetected: boolean;
7
+ loginLogo: string | undefined;
8
+ loginName: string | undefined;
9
+ displayStyle: DisplayStyleMode;
10
+ resolvedTheme: ResolvedThemeMode;
11
+ loading: boolean;
12
+ loadingStage: string;
13
+ }, {}, {
14
+ setServerUrl(serverUrl: string): Promise<void>;
15
+ persistSession(opts: {
16
+ token: string;
17
+ username: string;
18
+ }): Promise<void>;
19
+ getUsername(): Promise<string | undefined>;
20
+ clearSession(): Promise<void>;
21
+ destroySession(): Promise<void>;
22
+ applyTheme(style?: string): void;
23
+ routeLogin(): void;
24
+ refreshLogin(): Promise<void>;
25
+ logout(): Promise<void>;
26
+ bootstrap(): Promise<boolean>;
27
+ teardown(): void;
28
+ }>;
@@ -4,7 +4,6 @@ import MenuManager from './modules/menu.ts';
4
4
  import BottomBarManager from './modules/bottombar.ts';
5
5
  import * as Comlink from 'comlink';
6
6
  import COT from '../base/cot.ts';
7
- import type { DatabaseType } from '../database.ts';
8
7
  import { LocationState } from '../base/events.ts';
9
8
  import Subscription from '../base/subscription.ts';
10
9
  import * as mapgl from 'maplibre-gl';
@@ -28,7 +27,6 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
28
27
  _boundOnDeviceOrientation?: (event: DeviceOrientationEvent) => void;
29
28
  _boundOnVisibilityChange?: () => Promise<void>;
30
29
  _removeBackgroundStateListener?: () => void;
31
- db: DatabaseType;
32
30
  channel: BroadcastChannel;
33
31
  toImport: Feature[];
34
32
  locked: Array<string>;
@@ -44,23 +42,22 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
44
42
  coordFormat: string;
45
43
  defaultPointType: string;
46
44
  manualLocationMode: boolean;
47
- isMobileDetected: boolean;
48
45
  isBackgrounded: boolean;
49
- tokenExpiry: number | null;
50
46
  lastUpdateCOTErrorSignature: string | null;
51
47
  toastOffset: {
52
48
  x: number;
53
49
  y: number;
54
50
  };
55
51
  timer: ReturnType<typeof setInterval> | null;
56
- _rawWorker: Worker;
57
- _workerReady: Promise<void>;
58
- worker: Comlink.Remote<Atlas>;
52
+ _rawWorker?: Worker;
53
+ _workerReady?: Promise<void>;
54
+ _worker?: Comlink.Remote<Atlas>;
59
55
  mission: Subscription | undefined;
60
56
  terrainEnabled: boolean;
61
57
  container?: HTMLElement;
62
58
  hasSnapping: boolean;
63
59
  hasNoChannels: boolean;
60
+ channelChange: boolean;
64
61
  isLoaded: boolean;
65
62
  isOpen: boolean;
66
63
  userOrientationMode: boolean;
@@ -88,8 +85,10 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
88
85
  icons: () => IconManager;
89
86
  menu: () => MenuManager;
90
87
  bottomBar: () => BottomBarManager;
91
- locationCallback: () => (position: Position) => void;
88
+ worker: () => Comlink.Remote<Atlas>;
92
89
  }, {
90
+ startLocationWatch: () => Promise<void>;
91
+ startWorker: () => void;
93
92
  destroy: () => Promise<void>;
94
93
  makeActiveMission: (mission?: Subscription) => Promise<void>;
95
94
  addTerrain: () => Promise<void>;
@@ -152,6 +152,9 @@ export type ProfileOverlay_Create = paths["/api/profile/overlay"]["post"]["reque
152
152
  export type ProfileOverlay_Update = paths["/api/profile/overlay/{:overlay}"]["patch"]["requestBody"]["content"]["application/json"];
153
153
  export type ProfileTokenList = paths["/api/profile/token"]["get"]["responses"]["200"]["content"]["application/json"];
154
154
  export type ProfileToken = ProfileTokenList["items"][0];
155
+ export type ProfilePagingList = paths["/api/profile/paging"]["get"]["responses"]["200"]["content"]["application/json"];
156
+ export type ProfilePaging = ProfilePagingList["items"][0];
157
+ export type ProfilePaging_Create = paths["/api/profile/paging"]["post"]["requestBody"]["content"]["application/json"];
155
158
  export type SearchReverse = paths["/api/search/reverse/{:longitude}/{:latitude}"]["get"]["responses"]["200"]["content"]["application/json"];
156
159
  export type SearchReverseSun = paths["/api/search/reverse/{:longitude}/{:latitude}/sun"]["get"]["responses"]["200"]["content"]["application/json"];
157
160
  export type SearchReverseMagnetic = paths["/api/search/reverse/{:longitude}/{:latitude}/magnetic"]["get"]["responses"]["200"]["content"]["application/json"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/cloudtak",
3
3
  "type": "module",
4
- "version": "13.19.1",
4
+ "version": "13.21.0",
5
5
  "types": "dist/types/plugin.d.ts",
6
6
  "files": [
7
7
  "dist/types"
@@ -1,33 +0,0 @@
1
- export default class Session {
2
- /**
3
- * Persist the server URL into the KV store (and Preferences on native).
4
- */
5
- static serverUrl(serverUrl: string): Promise<void>;
6
- /**
7
- * Persist login details for the authenticated user.
8
- */
9
- static login(opts: {
10
- token: string;
11
- username: string;
12
- }): Promise<void>;
13
- /**
14
- * Return the username of the existing session, if one is present.
15
- */
16
- static username(): Promise<string | undefined>;
17
- /**
18
- * Remove the active token from all stores. The Dexie database is left
19
- * intact so that a re-login (e.g. after an expired token) does not need to
20
- * resynchronize all data.
21
- */
22
- static clear(): Promise<void>;
23
- /**
24
- * Fully clear the session - removes the token and wipes the Dexie database.
25
- * Used on explicit sign-out or when a different user logs in.
26
- *
27
- * Dexie's `delete()`/`open()` is used (instead of
28
- * `indexedDB.deleteDatabase`) so the live connection is closed cleanly and
29
- * immediately reopened, leaving the database ready for subsequent reads and
30
- * writes instead of hanging on a blocked delete request.
31
- */
32
- static destroy(): Promise<void>;
33
- }