@tak-ps/cloudtak 12.104.1 → 12.104.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.
package/README.md CHANGED
@@ -29,6 +29,17 @@ With the server running locally on port 5001, run the following
29
29
  npm run typegen
30
30
  ```
31
31
 
32
+ ### Generate Plugin API docs
33
+
34
+ Generate TypeDoc output for the exported plugin API in `plugin.ts` with:
35
+
36
+ ```
37
+ npm run doc
38
+ ```
39
+
40
+ The generated HTML documentation is written to `dist/typedoc/`.
41
+ On tagged releases, the release workflow also deploys this output to GitHub Pages.
42
+
32
43
  ### Customize configuration
33
44
 
34
45
  See [Configuration Reference](https://cli.vuejs.org/config/).
@@ -2,13 +2,33 @@ import type { App } from 'vue';
2
2
  import type { Component } from 'vue';
3
3
  import type { Router, RouteRecordRaw } from 'vue-router';
4
4
  import type { Pinia } from 'pinia';
5
- import { type PaneConfig } from './src/stores/float.ts';
6
5
  import type { MenuItemConfig } from './src/stores/modules/menu.ts';
7
6
  import { type DBFeature } from './src/base/database.ts';
8
7
  import { type Observable } from 'rxjs';
9
8
  import mapgl from 'maplibre-gl';
10
9
  export type { MenuItemConfig };
11
10
  export type { DBFeature };
11
+ /**
12
+ * Configuration stored with a floating pane created by the plugin API
13
+ */
14
+ export type FloatingPaneConfig = Record<string, unknown> & {
15
+ _component: Component;
16
+ _actions?: Component;
17
+ _props: Record<string, unknown>;
18
+ };
19
+ /**
20
+ * Public representation of a floating pane managed through the plugin API
21
+ */
22
+ export interface FloatingPane {
23
+ uid: string;
24
+ name?: string;
25
+ component: Component;
26
+ config: FloatingPaneConfig;
27
+ height: number;
28
+ width: number;
29
+ x: number;
30
+ y: number;
31
+ }
12
32
  export interface PluginInstance {
13
33
  /**
14
34
  * Called after `install` if the server has the plugin enabled by default
@@ -141,7 +161,7 @@ export declare class PluginAPI {
141
161
  width?: number;
142
162
  x?: number;
143
163
  y?: number;
144
- }) => import("./src/stores/float.ts").Pane<PaneConfig>;
164
+ }) => FloatingPane;
145
165
  /**
146
166
  * Remove a floating pane
147
167
  * @param uid The unique identifier of the pane to remove
@@ -3,11 +3,11 @@ type __VLS_Props = {
3
3
  subscription: Subscription;
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- layer: (...args: any[]) => void;
7
6
  cancel: (...args: any[]) => void;
7
+ layer: (...args: any[]) => void;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onLayer?: ((...args: any[]) => any) | undefined;
10
9
  onCancel?: ((...args: any[]) => any) | undefined;
10
+ onLayer?: ((...args: any[]) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  export default _default;
@@ -5,11 +5,11 @@ type __VLS_Props = {
5
5
  layer: MissionLayer;
6
6
  };
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- layer: (...args: any[]) => void;
9
8
  cancel: (...args: any[]) => void;
9
+ layer: (...args: any[]) => void;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onLayer?: ((...args: any[]) => any) | undefined;
12
11
  onCancel?: ((...args: any[]) => any) | undefined;
12
+ onLayer?: ((...args: any[]) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/cloudtak",
3
3
  "type": "module",
4
- "version": "12.104.1",
4
+ "version": "12.104.2",
5
5
  "types": "dist/types/plugin.d.ts",
6
6
  "files": [
7
7
  "dist/types"
@@ -19,6 +19,7 @@
19
19
  "typegen": "openapi-typescript http://localhost:5001/api/swagger --output src/derived-types.d.ts",
20
20
  "check": "vue-tsc",
21
21
  "build:types": "vue-tsc -p tsconfig.build.json",
22
+ "doc": "typedoc --options typedoc.json",
22
23
  "build": "vite build",
23
24
  "lint": "eslint --config eslint.config.js ./src/ ./public/ ./plugins/",
24
25
  "test": "exit 0"
@@ -99,6 +100,7 @@
99
100
  "jsdom": "^28.0.0",
100
101
  "openapi-typescript": "^7.0.0",
101
102
  "sass-embedded": "^1.86.0",
103
+ "typedoc": "^0.28.1",
102
104
  "typescript": "^5.7.0",
103
105
  "typescript-eslint": "^8.20.0",
104
106
  "vite": "8.0.0",