@collabdt/plugin-kit 0.9.0 → 0.10.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
CHANGED
|
@@ -6,6 +6,12 @@ The format is based on Keep a Changelog, and this package adheres to Semantic Ve
|
|
|
6
6
|
It versions and publishes independently of `@collabdt/core`; the core changelog is at the
|
|
7
7
|
repository root.
|
|
8
8
|
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `apply()` and `remove()` on `PluginDatasetState` in the `@collabdt/core/plugins-sdk/data` declarations.
|
|
13
|
+
They need a platform running `@collabdt/core` with the same addition.
|
|
14
|
+
|
|
9
15
|
## [0.9.0] - 2026-10-03
|
|
10
16
|
|
|
11
17
|
### Added
|
|
@@ -64,7 +64,7 @@ type PluginDatasetSource = {
|
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* A dataset listed in the Datasets menu: under Live Data when `live`, otherwise under
|
|
67
|
-
* Organizational.
|
|
67
|
+
* Organizational. `usePluginDataset(id)` reports whether it is applied and can apply or remove it.
|
|
68
68
|
*/
|
|
69
69
|
interface DatasetRegistration {
|
|
70
70
|
id: string;
|
package/dist/types/bim.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./sdkModules.d.ts" />
|
|
2
|
-
import { C as CapabilityRegistry, P as PluginContext } from '../base-
|
|
3
|
-
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, j as PluginNode, k as PluginViewerTarget, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-
|
|
2
|
+
import { C as CapabilityRegistry, P as PluginContext } from '../base-BafRl1jG.js';
|
|
3
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, j as PluginNode, k as PluginViewerTarget, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-BafRl1jG.js';
|
|
4
4
|
import * as OBC from '@thatopen/components';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
package/dist/types/legend.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./sdkModules.d.ts" />
|
|
2
|
-
import { C as CapabilityRegistry, k as PluginViewerTarget, j as PluginNode, P as PluginContext } from '../base-
|
|
3
|
-
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-
|
|
2
|
+
import { C as CapabilityRegistry, k as PluginViewerTarget, j as PluginNode, P as PluginContext } from '../base-BafRl1jG.js';
|
|
3
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-BafRl1jG.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
interface LegendRow {
|
package/dist/types/map.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./sdkModules.d.ts" />
|
|
2
|
-
import { C as CapabilityRegistry, P as PluginContext } from '../base-
|
|
3
|
-
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, j as PluginNode, k as PluginViewerTarget, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-
|
|
2
|
+
import { C as CapabilityRegistry, P as PluginContext } from '../base-BafRl1jG.js';
|
|
3
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, j as PluginNode, k as PluginViewerTarget, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-BafRl1jG.js';
|
|
4
4
|
import { Map } from 'maplibre-gl';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
@@ -172,9 +172,13 @@ declare module '@collabdt/core/plugins-sdk/data' {
|
|
|
172
172
|
applied: boolean
|
|
173
173
|
/** Applied and not hidden with its eye toggle: draw it only when this is true. */
|
|
174
174
|
visible: boolean
|
|
175
|
+
/** What ticking it in the Datasets menu does: adds it to the map, or shows it again if hidden. */
|
|
176
|
+
apply: () => void
|
|
177
|
+
/** What unticking it in the Datasets menu does: takes it off the map. */
|
|
178
|
+
remove: () => void
|
|
175
179
|
}
|
|
176
180
|
|
|
177
|
-
/** Whether one of this plugin's `map.datasets`, by its registration id, is on the map. */
|
|
181
|
+
/** Whether one of this plugin's `map.datasets`, by its registration id, is on the map, and the menu's actions for it. */
|
|
178
182
|
export function usePluginDataset(id: string): PluginDatasetState
|
|
179
183
|
}
|
|
180
184
|
|
package/dist/types/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CapabilityRegistry, P as PluginContext } from '../base-
|
|
2
|
-
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, j as PluginNode, k as PluginViewerTarget, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-
|
|
1
|
+
import { C as CapabilityRegistry, P as PluginContext } from '../base-BafRl1jG.js';
|
|
2
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DatasetRegistration, d as DialogRegistration, M as MapLayerRegistration, e as PLUGIN_HOST_API, f as PluginCapability, g as PluginDatasetSource, h as PluginFeatureCollection, i as PluginManifest, j as PluginNode, k as PluginViewerTarget, T as ToolbarRegistration, l as ToolbarToolProps, V as VALID_CAPABILITIES, m as ViewerTabRegistration } from '../base-BafRl1jG.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/** `CapabilityRegistry` for the surfaces that bind no viewer props. */
|