@collabdt/plugin-kit 0.3.0 → 0.4.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.
|
@@ -54,13 +54,15 @@ interface DataPageRegistration<Row = Record<string, unknown>> {
|
|
|
54
54
|
searchKeys?: string[];
|
|
55
55
|
emptyKey?: string;
|
|
56
56
|
}
|
|
57
|
+
/** The viewers that host a tab or a legend. Core spells them exactly this way. */
|
|
58
|
+
type PluginViewerTarget = 'map' | 'bim' | 'pointcloud';
|
|
57
59
|
interface ViewerTabRegistration {
|
|
58
60
|
id: string;
|
|
59
61
|
labelKey: string;
|
|
60
62
|
icon: string;
|
|
61
63
|
component: React.ComponentType;
|
|
62
|
-
/**
|
|
63
|
-
viewers?:
|
|
64
|
+
/** Which viewers this tab appears in. Omit for all of them. */
|
|
65
|
+
viewers?: PluginViewerTarget[];
|
|
64
66
|
}
|
|
65
67
|
interface DialogRegistration<P = Record<string, unknown>> {
|
|
66
68
|
id: string;
|
|
@@ -86,4 +88,4 @@ interface PluginContext<MapProps = unknown, BimProps = unknown, PointCloudProps
|
|
|
86
88
|
config: Record<string, unknown>;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
export { type CapabilityRegistry as C, type DataPageColumn as D, type MapLayerRegistration as M, type PluginContext as P, type ToolbarRegistration as T, VALID_CAPABILITIES as V, type DataPageRegistration as a, type DataPageRows as b, type DialogRegistration as c, PLUGIN_HOST_API as d, type PluginCapability as e, type PluginManifest as f, type
|
|
91
|
+
export { type CapabilityRegistry as C, type DataPageColumn as D, type MapLayerRegistration as M, type PluginContext as P, type ToolbarRegistration as T, VALID_CAPABILITIES as V, type DataPageRegistration as a, type DataPageRows as b, type DialogRegistration as c, PLUGIN_HOST_API as d, type PluginCapability as e, type PluginManifest as f, type PluginViewerTarget as g, type ToolbarToolProps as h, type ViewerTabRegistration as i };
|
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 DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, T as ToolbarRegistration,
|
|
2
|
+
import { C as CapabilityRegistry, P as PluginContext } from '../base-ClPlfxgA.js';
|
|
3
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, g as PluginViewerTarget, T as ToolbarRegistration, h as ToolbarToolProps, V as VALID_CAPABILITIES, i as ViewerTabRegistration } from '../base-ClPlfxgA.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, P as PluginContext } from '../base-
|
|
3
|
-
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, T as ToolbarRegistration,
|
|
2
|
+
import { C as CapabilityRegistry, g as PluginViewerTarget, P as PluginContext } from '../base-ClPlfxgA.js';
|
|
3
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, T as ToolbarRegistration, h as ToolbarToolProps, V as VALID_CAPABILITIES, i as ViewerTabRegistration } from '../base-ClPlfxgA.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
interface LegendRow {
|
|
@@ -11,8 +11,8 @@ interface LegendRow {
|
|
|
11
11
|
interface LegendRegistration {
|
|
12
12
|
id: string;
|
|
13
13
|
title: string;
|
|
14
|
-
/**
|
|
15
|
-
viewers?:
|
|
14
|
+
/** Which viewers this legend appears in. Omit for all of them. */
|
|
15
|
+
viewers?: PluginViewerTarget[];
|
|
16
16
|
useLegend: () => {
|
|
17
17
|
/** False omits the section entirely, which is what a legend with nothing to say should do. */
|
|
18
18
|
active: boolean;
|
|
@@ -27,4 +27,4 @@ type LegendCapabilityRegistry = CapabilityRegistry<unknown, unknown, unknown, Le
|
|
|
27
27
|
/** The `activate()` context for a plugin that contributes a map legend. */
|
|
28
28
|
type LegendPluginContext = PluginContext<unknown, unknown, unknown, LegendRegistration>;
|
|
29
29
|
|
|
30
|
-
export { CapabilityRegistry, type LegendCapabilityRegistry, type LegendPluginContext, type LegendRegistration, type LegendRow, PluginContext };
|
|
30
|
+
export { CapabilityRegistry, type LegendCapabilityRegistry, type LegendPluginContext, type LegendRegistration, type LegendRow, PluginContext, PluginViewerTarget };
|
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 DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, T as ToolbarRegistration,
|
|
2
|
+
import { C as CapabilityRegistry, P as PluginContext } from '../base-ClPlfxgA.js';
|
|
3
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, g as PluginViewerTarget, T as ToolbarRegistration, h as ToolbarToolProps, V as VALID_CAPABILITIES, i as ViewerTabRegistration } from '../base-ClPlfxgA.js';
|
|
4
4
|
import { Map } from 'maplibre-gl';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
@@ -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 DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, T as ToolbarRegistration,
|
|
2
|
+
import { C as CapabilityRegistry, P as PluginContext } from '../base-ClPlfxgA.js';
|
|
3
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, g as PluginViewerTarget, T as ToolbarRegistration, h as ToolbarToolProps, V as VALID_CAPABILITIES, i as ViewerTabRegistration } from '../base-ClPlfxgA.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
interface PointCloudToolProps {
|
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 DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, T as ToolbarRegistration,
|
|
1
|
+
import { C as CapabilityRegistry, P as PluginContext } from '../base-ClPlfxgA.js';
|
|
2
|
+
export { D as DataPageColumn, a as DataPageRegistration, b as DataPageRows, c as DialogRegistration, M as MapLayerRegistration, d as PLUGIN_HOST_API, e as PluginCapability, f as PluginManifest, g as PluginViewerTarget, T as ToolbarRegistration, h as ToolbarToolProps, V as VALID_CAPABILITIES, i as ViewerTabRegistration } from '../base-ClPlfxgA.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/** `CapabilityRegistry` for the surfaces that bind no viewer props. */
|