@collabdt/plugin-kit 0.9.0 → 0.11.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,33 @@ 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
+ ## [0.11.0] - 2026-10-09
12
+
13
+ ### Added
14
+ - `BimToolProps.floorplan` (`PluginFloorplan`, `FloorplanStorey`, `PlanPoint`, `SketchKind`, `PlanOverlayShape`,
15
+ `PlanOverlayOptions`, `PlanFootprint`): storeys, opening plans, projecting their lines (`generateLines`,
16
+ `hasLines`), drawing (`drawShape`) and reshaping (`editShape`, `finishEditingShape`, `isEditingShape`) outlines,
17
+ fitting the view to one (`frame`), reading IFCSPACE floor outlines (`getSpaceFootprints`), and per-plugin
18
+ overlays (`setOverlay` with `onShapeClick` and `replacesSpaces`, `clearOverlay`). `cancelDrawing()` ends a
19
+ drawing or a shape edit.
20
+ - `BimToolProps.modelPlacement` (`PluginModelPlacement`, `ModelPlacementWatcher`, `ModelPlacementChange`), to keep
21
+ world-coordinate data on a model the user moves or turns.
22
+ - `BimToolProps.buildingId` and `BimToolProps.appearance` (`PluginBimAppearance`, `BimAppearanceGroup`,
23
+ `BimAppearance`).
24
+ - `DataPageTable` and `DataPageCustom`: a `data.pages` registration may pass its own `component` instead of
25
+ `useRows` / `columns`.
26
+ - `@collabdt/core/plugins-sdk/charts` in `PLUGIN_EXTERNALS` and its ambient declarations, with `ChartConfig` and
27
+ the chart prop types under `@collabdt/plugin-kit/types/charts`.
28
+ - `ConfirmDialog` (`ConfirmDialogProps`) in the `@collabdt/core/plugins-sdk/components` declarations and `toast` in
29
+ the `@collabdt/core/plugins-sdk/ui` ones.
30
+ - `apply()` and `remove()` on `PluginDatasetState` in the `@collabdt/core/plugins-sdk/data` declarations.
31
+ They need a platform running `@collabdt/core` with the same addition.
32
+
33
+ ### Changed
34
+ - `DataPageRegistration` is now `DataPageTable | DataPageCustom`.
35
+
9
36
  ## [0.9.0] - 2026-10-03
10
37
 
11
38
  ### 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. Applying it is the user's choice; `usePluginDataset(id)` reports it.
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;
@@ -87,15 +87,27 @@ interface DataPageRows<Row> {
87
87
  /** From the hook, not the registration, so it can close over `usePluginDialogs`. */
88
88
  onRowClick?: (row: Row) => void;
89
89
  }
90
- interface DataPageRegistration<Row = Record<string, unknown>> {
90
+ interface DataPageBase {
91
91
  id: string;
92
92
  titleKey: string;
93
93
  icon: string;
94
+ }
95
+ /** Core renders a searchable table from the plugin's rows and columns. */
96
+ interface DataPageTable<Row = Record<string, unknown>> extends DataPageBase {
94
97
  useRows: () => DataPageRows<Row>;
95
98
  columns: DataPageColumn<Row>[];
99
+ /** Column keys the search box filters on. Omit to search every column. */
96
100
  searchKeys?: string[];
97
101
  emptyKey?: string;
102
+ component?: never;
103
+ }
104
+ /** Core keeps the page frame and title; the plugin renders everything below them. */
105
+ interface DataPageCustom extends DataPageBase {
106
+ component: React.ComponentType;
107
+ useRows?: never;
108
+ columns?: never;
98
109
  }
110
+ type DataPageRegistration<Row = Record<string, unknown>> = DataPageTable<Row> | DataPageCustom;
99
111
  /** The viewers that host a tab or a legend. Core spells them exactly this way. */
100
112
  type PluginViewerTarget = 'map' | 'bim';
101
113
  interface ViewerTabRegistration {
@@ -130,4 +142,4 @@ interface PluginContext<MapProps = unknown, BimProps = unknown, Legend = unknown
130
142
  config: Record<string, unknown>;
131
143
  }
132
144
 
133
- 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 DatasetRegistration as c, type DialogRegistration as d, PLUGIN_HOST_API as e, type PluginCapability as f, type PluginDatasetSource as g, type PluginFeatureCollection as h, type PluginManifest as i, type PluginNode as j, type PluginViewerTarget as k, type ToolbarToolProps as l, type ViewerTabRegistration as m };
145
+ 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 DataPageCustom as a, type DataPageRegistration as b, type DataPageRows as c, type DataPageTable as d, type DatasetRegistration as e, type DialogRegistration as f, PLUGIN_HOST_API as g, type PluginCapability as h, type PluginDatasetSource as i, type PluginFeatureCollection as j, type PluginManifest as k, type PluginNode as l, type PluginViewerTarget as m, type ToolbarToolProps as n, type ViewerTabRegistration as o };
package/dist/index.js CHANGED
@@ -10,7 +10,8 @@ var PLUGIN_EXTERNALS = [
10
10
  "@collabdt/core/plugins-sdk/data",
11
11
  "@collabdt/core/plugins-sdk/state",
12
12
  "@collabdt/core/plugins-sdk/ui",
13
- "@collabdt/core/plugins-sdk/components"
13
+ "@collabdt/core/plugins-sdk/components",
14
+ "@collabdt/core/plugins-sdk/charts"
14
15
  ];
15
16
  var KNOWN_FORBIDDEN = [
16
17
  "three",
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./sdkModules.d.ts" />
2
- import { C as CapabilityRegistry, P as PluginContext } from '../base-BgsLG-7Z.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-BgsLG-7Z.js';
2
+ import { C as CapabilityRegistry, P as PluginContext } from '../base-DqrDbWmp.js';
3
+ export { D as DataPageColumn, a as DataPageCustom, b as DataPageRegistration, c as DataPageRows, d as DataPageTable, e as DatasetRegistration, f as DialogRegistration, M as MapLayerRegistration, g as PLUGIN_HOST_API, h as PluginCapability, i as PluginDatasetSource, j as PluginFeatureCollection, k as PluginManifest, l as PluginNode, m as PluginViewerTarget, T as ToolbarRegistration, n as ToolbarToolProps, V as VALID_CAPABILITIES, o as ViewerTabRegistration } from '../base-DqrDbWmp.js';
4
4
  import * as OBC from '@thatopen/components';
5
5
  import 'react';
6
6
 
@@ -31,10 +31,125 @@ interface BimToolProps {
31
31
  getItemsOfCategory: (category: string) => Promise<ModelIdMap>;
32
32
  /** Attributes for the given elements. Omit `attributes` for the default set. */
33
33
  getProperties: (items: ModelIdMap, attributes?: string[]) => Promise<BimItemProperties[]>;
34
+ /** The building whose models are open, or null before one is chosen. */
35
+ buildingId: number | null;
36
+ /** Storeys, plan sketching and plan overlays, scoped to this plugin. */
37
+ floorplan: PluginFloorplan;
38
+ /** Element colours, scoped to this plugin. */
39
+ appearance: PluginBimAppearance;
40
+ /** Lets data kept in world coordinates follow a model the user moves or turns. */
41
+ modelPlacement: PluginModelPlacement;
42
+ }
43
+ /** A confirmed move or turn of a model, for data a plugin keeps in world plan coordinates on it. */
44
+ interface ModelPlacementChange {
45
+ modelId: string;
46
+ /** True when the model turned, not only moved. */
47
+ rotated: boolean;
48
+ mapPoint: (point: PlanPoint) => PlanPoint;
49
+ /** Metres the model rose; negative when it dropped. */
50
+ elevationChange: number;
51
+ }
52
+ /** What a plugin tells core about the data it keeps on a model, so a move or turn can carry it along. */
53
+ interface ModelPlacementWatcher {
54
+ /** Shown before the model turns; null when none of the plugin's data sits on it. */
55
+ turnWarning: (modelId: string) => string | null;
56
+ onPlacementChanged: (change: ModelPlacementChange) => void | Promise<void>;
57
+ }
58
+ interface PluginModelPlacement {
59
+ /** Follows every confirmed move and turn until the returned function is called. */
60
+ watch: (watcher: ModelPlacementWatcher) => () => void;
61
+ }
62
+ interface BimAppearance {
63
+ /** `0xRRGGBB`. Omit to keep each element's own colour. */
64
+ color?: number;
65
+ /** `0`–`1`. Omit to leave elements opaque. */
66
+ opacity?: number;
67
+ }
68
+ interface BimAppearanceGroup {
69
+ items: ModelIdMap;
70
+ appearance: BimAppearance;
71
+ }
72
+ interface PluginBimAppearance {
73
+ setAppearance: (groups: readonly BimAppearanceGroup[]) => void;
74
+ clearAppearance: () => void;
75
+ }
76
+ /** A point on a horizontal plan, in world metres: `x` east, `z` south. */
77
+ interface PlanPoint {
78
+ x: number;
79
+ z: number;
80
+ }
81
+ type SketchKind = 'rectangle' | 'polygon';
82
+ interface FloorplanStorey {
83
+ id: string;
84
+ name: string;
85
+ /** World height of the storey, in metres. */
86
+ elevation: number;
87
+ modelId: string;
88
+ }
89
+ /** One filled, optionally outlined and labelled polygon drawn on the open plan. */
90
+ interface PlanOverlayShape {
91
+ id: string;
92
+ points: readonly PlanPoint[];
93
+ /** `0xRRGGBB`. */
94
+ fill: number;
95
+ /** `0`–`1`, default 0.45. */
96
+ opacity?: number;
97
+ stroke?: number;
98
+ label?: string;
99
+ }
100
+ interface PlanOverlayOptions {
101
+ /** Makes the shapes clickable: hovering one brightens it and shows a pointer. */
102
+ onShapeClick?: (shapeId: string) => void;
103
+ /** IFC spaces these shapes stand in for; the plan hides their own room fill, X and tag while the overlay is set, even with no shapes. */
104
+ replacesSpaces?: ModelIdMap;
105
+ }
106
+ /** An element's floor outline in world plan coordinates, read from its lowest flat face. */
107
+ interface PlanFootprint {
108
+ modelId: string;
109
+ localId: number;
110
+ outline: PlanPoint[];
111
+ /** Square metres. */
112
+ area: number;
113
+ centroid: PlanPoint;
114
+ /** World height of the footprint, for matching it to a storey. */
115
+ elevation: number;
116
+ }
117
+ /** The BIM floorplan as a plugin sees it. Coordinates are world metres on the horizontal plane. */
118
+ interface PluginFloorplan {
119
+ /** False in a viewer without floorplans; every method is then a no-op. */
120
+ available: boolean;
121
+ storeys: FloorplanStorey[];
122
+ active: FloorplanStorey | null;
123
+ isDrawing: boolean;
124
+ /** True while `editShape` is waiting for the user to finish reshaping an outline. */
125
+ isEditingShape: boolean;
126
+ /** True once the open storey's vector lines exist; sketches snap to their corners. */
127
+ hasLines: boolean;
128
+ activate: (storeyId: string) => Promise<void>;
129
+ deactivate: () => Promise<void>;
130
+ /** Projects the open storey's vector lines. Slow on large models, so it is a separate step. */
131
+ generateLines: () => Promise<void>;
132
+ /** Fits the open plan's view to an outline, such as a space's, with some margin around it. */
133
+ frame: (points: readonly PlanPoint[]) => Promise<void>;
134
+ /** Resolves with the drawn outline, or null when cancelled or no plan is open. */
135
+ drawShape: (kind: SketchKind) => Promise<PlanPoint[] | null>;
136
+ /**
137
+ * Lets the user drag the outline's corners and edges; Ctrl+click adds a corner, Delete removes one.
138
+ * Resolves with the new outline on Enter or `finishEditingShape`, or null when cancelled.
139
+ */
140
+ editShape: (points: readonly PlanPoint[]) => Promise<PlanPoint[] | null>;
141
+ finishEditingShape: () => void;
142
+ /** Cancels a drawing or a shape edit in progress. */
143
+ cancelDrawing: () => void;
144
+ /** Replaces this plugin's shapes on the open plan. They follow whichever storey is open. */
145
+ setOverlay: (shapes: readonly PlanOverlayShape[], options?: PlanOverlayOptions) => void;
146
+ clearOverlay: () => void;
147
+ /** Floor outlines of elements such as IFCSPACEs, for drawing them with `setOverlay`. */
148
+ getSpaceFootprints: (items: ModelIdMap) => Promise<PlanFootprint[]>;
34
149
  }
35
150
  /** `CapabilityRegistry` with the BIM surface bound. */
36
151
  type BimCapabilityRegistry = CapabilityRegistry<unknown, BimToolProps>;
37
152
  /** The `activate()` context for a plugin that contributes to the BIM toolbar. */
38
153
  type BimPluginContext = PluginContext<unknown, BimToolProps>;
39
154
 
40
- export { type BimCapabilityRegistry, type BimItemProperties, type BimPluginContext, type BimToolProps, CapabilityRegistry, type ModelIdMap, PluginContext };
155
+ export { type BimAppearance, type BimAppearanceGroup, type BimCapabilityRegistry, type BimItemProperties, type BimPluginContext, type BimToolProps, CapabilityRegistry, type FloorplanStorey, type ModelIdMap, type ModelPlacementChange, type ModelPlacementWatcher, type PlanFootprint, type PlanOverlayOptions, type PlanOverlayShape, type PlanPoint, type PluginBimAppearance, PluginContext, type PluginFloorplan, type PluginModelPlacement, type SketchKind };
@@ -0,0 +1,27 @@
1
+ import * as React from 'react';
2
+
3
+ /** Series styling keyed by data key, as the shadcn chart wrapper reads it. */
4
+ type ChartConfig = Record<string, {
5
+ label?: React.ReactNode;
6
+ icon?: React.ComponentType;
7
+ } & ({
8
+ color?: string;
9
+ theme?: never;
10
+ } | {
11
+ color?: never;
12
+ theme: {
13
+ light: string;
14
+ dark: string;
15
+ };
16
+ })>;
17
+ interface ChartContainerProps extends React.ComponentPropsWithoutRef<'div'> {
18
+ config: ChartConfig;
19
+ children: React.ReactNode;
20
+ }
21
+ type ChartContainerComponent = React.ComponentType<ChartContainerProps>;
22
+ /** A Recharts component, typed by what a plugin may pass rather than by Recharts' own declarations. */
23
+ type RechartsComponent = React.ComponentType<Record<string, unknown> & {
24
+ children?: React.ReactNode;
25
+ }>;
26
+
27
+ export type { ChartConfig, ChartContainerComponent, ChartContainerProps, RechartsComponent };
File without changes
@@ -22,6 +22,23 @@ type SeparatorComponent = React.ForwardRefExoticComponent<SeparatorProps & React
22
22
  /** Every part of Card is a plain div that forwards its ref. */
23
23
  type CardProps = React.HTMLAttributes<HTMLDivElement>;
24
24
  type CardComponent = React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
25
+ interface ConfirmDialogProps {
26
+ isOpen: boolean;
27
+ /** Shows a spinner on the confirm button and disables it. */
28
+ isDeleting?: boolean;
29
+ onOpenChange: (open: boolean) => void;
30
+ handleConfirm: (e: React.MouseEvent) => void | Promise<void>;
31
+ itemName?: string;
32
+ dataType?: string;
33
+ /** Copy for a question that is not a delete. Each falls back to the delete wording. */
34
+ title?: string;
35
+ description?: React.ReactNode;
36
+ confirmLabel?: string;
37
+ cancelLabel?: string;
38
+ /** 'destructive' paints the confirm red; a question that destroys nothing passes 'default'. */
39
+ tone?: 'destructive' | 'default';
40
+ }
41
+ type ConfirmDialogComponent = (props: ConfirmDialogProps) => React.ReactElement;
25
42
  interface DialogProps {
26
43
  open?: boolean;
27
44
  defaultOpen?: boolean;
@@ -50,4 +67,4 @@ interface DialogDescriptionProps extends React.HTMLAttributes<HTMLParagraphEleme
50
67
  }
51
68
  type DialogDescriptionComponent = React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
52
69
 
53
- export type { BadgeComponent, BadgeProps, ButtonComponent, ButtonProps, CardComponent, CardProps, DialogComponent, DialogContentComponent, DialogContentProps, DialogDescriptionComponent, DialogDescriptionProps, DialogProps, DialogSectionComponent, DialogSectionProps, DialogTitleComponent, DialogTitleProps, DialogTriggerComponent, DialogTriggerProps, InputComponent, InputProps, SeparatorComponent, SeparatorProps };
70
+ export type { BadgeComponent, BadgeProps, ButtonComponent, ButtonProps, CardComponent, CardProps, ConfirmDialogComponent, ConfirmDialogProps, DialogComponent, DialogContentComponent, DialogContentProps, DialogDescriptionComponent, DialogDescriptionProps, DialogProps, DialogSectionComponent, DialogSectionProps, DialogTitleComponent, DialogTitleProps, DialogTriggerComponent, DialogTriggerProps, InputComponent, InputProps, SeparatorComponent, SeparatorProps };
@@ -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-BgsLG-7Z.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-BgsLG-7Z.js';
2
+ import { C as CapabilityRegistry, m as PluginViewerTarget, l as PluginNode, P as PluginContext } from '../base-DqrDbWmp.js';
3
+ export { D as DataPageColumn, a as DataPageCustom, b as DataPageRegistration, c as DataPageRows, d as DataPageTable, e as DatasetRegistration, f as DialogRegistration, M as MapLayerRegistration, g as PLUGIN_HOST_API, h as PluginCapability, i as PluginDatasetSource, j as PluginFeatureCollection, k as PluginManifest, T as ToolbarRegistration, n as ToolbarToolProps, V as VALID_CAPABILITIES, o as ViewerTabRegistration } from '../base-DqrDbWmp.js';
4
4
  import 'react';
5
5
 
6
6
  interface LegendRow {
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./sdkModules.d.ts" />
2
- import { C as CapabilityRegistry, P as PluginContext } from '../base-BgsLG-7Z.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-BgsLG-7Z.js';
2
+ import { C as CapabilityRegistry, P as PluginContext } from '../base-DqrDbWmp.js';
3
+ export { D as DataPageColumn, a as DataPageCustom, b as DataPageRegistration, c as DataPageRows, d as DataPageTable, e as DatasetRegistration, f as DialogRegistration, M as MapLayerRegistration, g as PLUGIN_HOST_API, h as PluginCapability, i as PluginDatasetSource, j as PluginFeatureCollection, k as PluginManifest, l as PluginNode, m as PluginViewerTarget, T as ToolbarRegistration, n as ToolbarToolProps, V as VALID_CAPABILITIES, o as ViewerTabRegistration } from '../base-DqrDbWmp.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
 
@@ -199,6 +203,13 @@ declare module '@collabdt/core/plugins-sdk/ui' {
199
203
 
200
204
  /** Opens and closes this plugin's `ui.dialogs` contributions from any of its surfaces. */
201
205
  export function usePluginDialogs(): PluginDialogs
206
+
207
+ /** The host's toasts, so a plugin's confirmations look like core's own. */
208
+ export const toast: {
209
+ success: (message: string) => void
210
+ error: (message: string) => void
211
+ info: (message: string) => void
212
+ }
202
213
  }
203
214
 
204
215
  declare module '@collabdt/core/plugins-sdk/components' {
@@ -220,6 +231,9 @@ declare module '@collabdt/core/plugins-sdk/components' {
220
231
  export type SeparatorProps = import('./components').SeparatorProps
221
232
  export const Separator: import('./components').SeparatorComponent
222
233
 
234
+ export type ConfirmDialogProps = import('./components').ConfirmDialogProps
235
+ export const ConfirmDialog: import('./components').ConfirmDialogComponent
236
+
223
237
  export const Card: import('./components').CardComponent
224
238
  export const CardHeader: import('./components').CardComponent
225
239
  export const CardTitle: import('./components').CardComponent
@@ -246,3 +260,27 @@ declare module '@collabdt/core/plugins-sdk/components' {
246
260
  export type DialogDescriptionProps = import('./components').DialogDescriptionProps
247
261
  export const DialogDescription: import('./components').DialogDescriptionComponent
248
262
  }
263
+
264
+ declare module '@collabdt/core/plugins-sdk/charts' {
265
+ // Loaded on first import, so the host's Recharts never reaches a page that draws no plugin chart.
266
+ export type ChartConfig = import('./charts').ChartConfig
267
+ export const ChartContainer: import('./charts').ChartContainerComponent
268
+ export const ChartTooltip: import('./charts').RechartsComponent
269
+ export const ChartTooltipContent: import('./charts').RechartsComponent
270
+ export const ChartLegend: import('./charts').RechartsComponent
271
+ export const ChartLegendContent: import('./charts').RechartsComponent
272
+
273
+ export const Area: import('./charts').RechartsComponent
274
+ export const AreaChart: import('./charts').RechartsComponent
275
+ export const Bar: import('./charts').RechartsComponent
276
+ export const BarChart: import('./charts').RechartsComponent
277
+ export const CartesianGrid: import('./charts').RechartsComponent
278
+ export const Cell: import('./charts').RechartsComponent
279
+ export const Line: import('./charts').RechartsComponent
280
+ export const LineChart: import('./charts').RechartsComponent
281
+ export const Pie: import('./charts').RechartsComponent
282
+ export const PieChart: import('./charts').RechartsComponent
283
+ export const ResponsiveContainer: import('./charts').RechartsComponent
284
+ export const XAxis: import('./charts').RechartsComponent
285
+ export const YAxis: import('./charts').RechartsComponent
286
+ }
@@ -1,5 +1,5 @@
1
- import { C as CapabilityRegistry, P as PluginContext } from '../base-BgsLG-7Z.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-BgsLG-7Z.js';
1
+ import { C as CapabilityRegistry, P as PluginContext } from '../base-DqrDbWmp.js';
2
+ export { D as DataPageColumn, a as DataPageCustom, b as DataPageRegistration, c as DataPageRows, d as DataPageTable, e as DatasetRegistration, f as DialogRegistration, M as MapLayerRegistration, g as PLUGIN_HOST_API, h as PluginCapability, i as PluginDatasetSource, j as PluginFeatureCollection, k as PluginManifest, l as PluginNode, m as PluginViewerTarget, T as ToolbarRegistration, n as ToolbarToolProps, V as VALID_CAPABILITIES, o as ViewerTabRegistration } from '../base-DqrDbWmp.js';
3
3
  import 'react';
4
4
 
5
5
  /** `CapabilityRegistry` for the surfaces that bind no viewer props. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collabdt/plugin-kit",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Build preset and types for authoring CDT plugins.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
@@ -19,6 +19,10 @@
19
19
  "types": "./dist/types/components.d.ts",
20
20
  "default": "./dist/types/components.js"
21
21
  },
22
+ "./types/charts": {
23
+ "types": "./dist/types/charts.d.ts",
24
+ "default": "./dist/types/charts.js"
25
+ },
22
26
  "./types/data": {
23
27
  "types": "./dist/types/data.d.ts",
24
28
  "default": "./dist/types/data.js"