@collabdt/plugin-kit 0.6.0 → 0.7.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/CHANGELOG.md ADDED
@@ -0,0 +1,49 @@
1
+ # Changelog — @collabdt/plugin-kit
2
+
3
+ All notable changes to this package will be documented in this file.
4
+
5
+ The format is based on Keep a Changelog, and this package adheres to Semantic Versioning.
6
+ It versions and publishes independently of `@collabdt/core`; the core changelog is at the
7
+ repository root.
8
+
9
+ ## [Unreleased]
10
+
11
+ ## [0.7.0] - 2026-09-26
12
+
13
+ ### Added
14
+ - **`PluginFile` carries a file's placement:** `fileTransformX` / `Y` / `Z` (metres),
15
+ `fileRotationX` / `Y` / `Z` (radians), `fileScale` (uniform) and `fileSourceUp` (`'y' | 'z'`).
16
+
17
+ ### Deprecated
18
+ - **`PluginFile.x`, `y` and `z`.** Core no longer writes them, so for any file uploaded or moved
19
+ since `@collabdt/core` switched to the transform columns they are `null` or stale. Read
20
+ `fileTransformX` / `Y` / `Z` instead; the old fields will be removed in a later release.
21
+
22
+ ## [0.6.0] - 2026-09-14
23
+
24
+ ### Removed
25
+ - **The `./types/pointcloud` subpath export, in full.** Core no longer ships a standalone
26
+ Potree point-cloud viewer — the BIM viewer renders point clouds through `potree-core` — so
27
+ there is no host surface for a plugin to register against. Gone with it: the
28
+ `pointcloud.tools` capability, and `pointcloud` from `PluginViewerTarget` and
29
+ `PluginViewerName`.
30
+ - `dist/types/pointcloud.d.ts` from the shipped ambient types, so a scaffolded plugin no
31
+ longer declares a module that resolves to nothing.
32
+
33
+ ### Changed
34
+ - **`CapabilityRegistry` and `PluginContext` lose their third type parameter**, which was the
35
+ point-cloud tool props. Both now read `<MapProps, BimProps, Legend>`.
36
+ - `viewer.tabs` and `viewer.legends` carry a `viewers` list of `'map' | 'bim'`. Omitting the
37
+ field still means every viewer, which is now two rather than three.
38
+
39
+ ### Migration
40
+ - Drop any `import … from '@collabdt/plugin-kit/types/pointcloud'`. There is no replacement:
41
+ a plugin that targeted the point-cloud viewer has no surface to move to.
42
+ - `PluginContext<MapToolProps, BimToolProps, PointCloudToolProps, LegendRegistration>` becomes
43
+ `PluginContext<MapToolProps, BimToolProps, LegendRegistration>` — the order is map, BIM,
44
+ legend, and trailing parameters you do not use can still be left off. The same applies to
45
+ `CapabilityRegistry`. `PointCloudPluginContext` is gone.
46
+ - A capability registered as `pointcloud.tools` is no longer a valid target and will not
47
+ typecheck. Remove it.
48
+ - A `viewers: ['pointcloud']` list on a tab or legend no longer typechecks. Narrow it to
49
+ `['map']` or `['bim']`, or drop the field to appear in both.
@@ -70,12 +70,27 @@ interface PluginFile {
70
70
  uploadedAt: string;
71
71
  description?: string | null;
72
72
  tag?: string | null;
73
+ /** @deprecated Use `fileTransformX`; no longer written, so it is stale or null. */
73
74
  x?: number | null;
75
+ /** @deprecated Use `fileTransformY`. */
74
76
  y?: number | null;
77
+ /** @deprecated Use `fileTransformZ`. */
75
78
  z?: number | null;
76
79
  lat?: number | null;
77
80
  lng?: number | null;
78
81
  elevation?: number | null;
82
+ /** Scene-local position in the BIM viewer, metres. */
83
+ fileTransformX?: number | null;
84
+ fileTransformY?: number | null;
85
+ fileTransformZ?: number | null;
86
+ /** Rotation in the BIM viewer, radians, XYZ Euler. */
87
+ fileRotationX?: number | null;
88
+ fileRotationY?: number | null;
89
+ fileRotationZ?: number | null;
90
+ /** Uniform scale, never per axis. */
91
+ fileScale?: number | null;
92
+ /** Up axis of the source data. */
93
+ fileSourceUp?: 'y' | 'z' | null;
79
94
  isVisible?: boolean;
80
95
  fileOrganizationId: number;
81
96
  }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@collabdt/plugin-kit",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Build preset and types for authoring CDT plugins.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
7
7
  "files": [
8
- "dist"
8
+ "dist",
9
+ "CHANGELOG.md"
9
10
  ],
10
11
  "main": "./dist/index.js",
11
12
  "types": "./dist/index.d.ts",
@@ -65,4 +66,4 @@
65
66
  "typescript": "^5.9.3",
66
67
  "vitest": "^4.1.8"
67
68
  }
68
- }
69
+ }