@foxglove/extension 2.51.0 → 2.52.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/package.json +1 -1
- package/src/experimental.ts +6 -0
package/package.json
CHANGED
package/src/experimental.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { Immutable } from "./immutable";
|
|
3
3
|
import type {
|
|
4
4
|
ExtensionContext as BaseExtensionContext,
|
|
5
|
+
MessageEvent as BaseMessageEvent,
|
|
5
6
|
PanelExtensionContext as BasePanelExtensionContext,
|
|
6
7
|
RenderState as BaseRenderState,
|
|
7
8
|
} from "./stable";
|
|
@@ -28,6 +29,11 @@ export namespace Experimental {
|
|
|
28
29
|
|
|
29
30
|
export type DataSourceMap = ReadonlyMap<DataSourceId, Immutable<DataSourceInfo>>;
|
|
30
31
|
|
|
32
|
+
export type MessageEvent = BaseMessageEvent & {
|
|
33
|
+
/** The data source that the message stems from. */
|
|
34
|
+
dataSourceId?: DataSourceId;
|
|
35
|
+
};
|
|
36
|
+
|
|
31
37
|
/**
|
|
32
38
|
* This type represents the arguments you pass to {@link ExtensionContext.registerDataLoader}
|
|
33
39
|
* when you want to register a data loader.
|