@collabdt/plugin-kit 0.6.0 → 0.8.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 +57 -0
- package/dist/types/data.d.ts +16 -1
- package/dist/types/sdkModules.d.ts +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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.8.0] - 2026-10-02
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- **`PluginViewerName` and `ViewerNames` say `'plugins'` instead of `'extensions'`**, matching `@collabdt/core`.
|
|
15
|
+
|
|
16
|
+
### Migration
|
|
17
|
+
- Replace `ViewerNames.extensions` or `'extensions'` with `ViewerNames.plugins` / `'plugins'`.
|
|
18
|
+
|
|
19
|
+
## [0.7.0] - 2026-09-26
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- **`PluginFile` carries a file's placement:** `fileTransformX` / `Y` / `Z` (metres),
|
|
23
|
+
`fileRotationX` / `Y` / `Z` (radians), `fileScale` (uniform) and `fileSourceUp` (`'y' | 'z'`).
|
|
24
|
+
|
|
25
|
+
### Deprecated
|
|
26
|
+
- **`PluginFile.x`, `y` and `z`.** Core no longer writes them, so for any file uploaded or moved
|
|
27
|
+
since `@collabdt/core` switched to the transform columns they are `null` or stale. Read
|
|
28
|
+
`fileTransformX` / `Y` / `Z` instead; the old fields will be removed in a later release.
|
|
29
|
+
|
|
30
|
+
## [0.6.0] - 2026-09-14
|
|
31
|
+
|
|
32
|
+
### Removed
|
|
33
|
+
- **The `./types/pointcloud` subpath export, in full.** Core no longer ships a standalone
|
|
34
|
+
Potree point-cloud viewer — the BIM viewer renders point clouds through `potree-core` — so
|
|
35
|
+
there is no host surface for a plugin to register against. Gone with it: the
|
|
36
|
+
`pointcloud.tools` capability, and `pointcloud` from `PluginViewerTarget` and
|
|
37
|
+
`PluginViewerName`.
|
|
38
|
+
- `dist/types/pointcloud.d.ts` from the shipped ambient types, so a scaffolded plugin no
|
|
39
|
+
longer declares a module that resolves to nothing.
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
- **`CapabilityRegistry` and `PluginContext` lose their third type parameter**, which was the
|
|
43
|
+
point-cloud tool props. Both now read `<MapProps, BimProps, Legend>`.
|
|
44
|
+
- `viewer.tabs` and `viewer.legends` carry a `viewers` list of `'map' | 'bim'`. Omitting the
|
|
45
|
+
field still means every viewer, which is now two rather than three.
|
|
46
|
+
|
|
47
|
+
### Migration
|
|
48
|
+
- Drop any `import … from '@collabdt/plugin-kit/types/pointcloud'`. There is no replacement:
|
|
49
|
+
a plugin that targeted the point-cloud viewer has no surface to move to.
|
|
50
|
+
- `PluginContext<MapToolProps, BimToolProps, PointCloudToolProps, LegendRegistration>` becomes
|
|
51
|
+
`PluginContext<MapToolProps, BimToolProps, LegendRegistration>` — the order is map, BIM,
|
|
52
|
+
legend, and trailing parameters you do not use can still be left off. The same applies to
|
|
53
|
+
`CapabilityRegistry`. `PointCloudPluginContext` is gone.
|
|
54
|
+
- A capability registered as `pointcloud.tools` is no longer a valid target and will not
|
|
55
|
+
typecheck. Remove it.
|
|
56
|
+
- A `viewers: ['pointcloud']` list on a tab or legend no longer typechecks. Narrow it to
|
|
57
|
+
`['map']` or `['bim']`, or drop the field to appear in both.
|
package/dist/types/data.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Mirrors core's `ViewerNames`, as the union the records carry. */
|
|
2
|
-
type PluginViewerName = 'auth' | 'map' | 'bim' | 'buildings' | 'sites' | 'files' | 'land' | 'infrastructure' | '
|
|
2
|
+
type PluginViewerName = 'auth' | 'map' | 'bim' | 'buildings' | 'sites' | 'files' | 'land' | 'infrastructure' | 'plugins' | 'settings' | 'users';
|
|
3
3
|
interface PluginBuilding {
|
|
4
4
|
id: number;
|
|
5
5
|
buildingName?: string;
|
|
@@ -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.
|
|
3
|
+
"version": "0.8.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
|
+
}
|