@foxglove/embed 0.1.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.
Files changed (40) hide show
  1. package/README.md +9 -0
  2. package/dist/cjs/FoxgloveViewer.d.ts +67 -0
  3. package/dist/cjs/FoxgloveViewer.d.ts.map +1 -0
  4. package/dist/cjs/FoxgloveViewer.js +246 -0
  5. package/dist/cjs/FoxgloveViewer.js.map +1 -0
  6. package/dist/cjs/commands.d.ts +32 -0
  7. package/dist/cjs/commands.d.ts.map +1 -0
  8. package/dist/cjs/commands.js +3 -0
  9. package/dist/cjs/commands.js.map +1 -0
  10. package/dist/cjs/index.d.ts +3 -0
  11. package/dist/cjs/index.d.ts.map +1 -0
  12. package/dist/cjs/index.js +7 -0
  13. package/dist/cjs/index.js.map +1 -0
  14. package/dist/cjs/types.d.ts +27 -0
  15. package/dist/cjs/types.d.ts.map +1 -0
  16. package/dist/cjs/types.js +3 -0
  17. package/dist/cjs/types.js.map +1 -0
  18. package/dist/esm/FoxgloveViewer.d.ts +67 -0
  19. package/dist/esm/FoxgloveViewer.d.ts.map +1 -0
  20. package/dist/esm/FoxgloveViewer.js +242 -0
  21. package/dist/esm/FoxgloveViewer.js.map +1 -0
  22. package/dist/esm/commands.d.ts +32 -0
  23. package/dist/esm/commands.d.ts.map +1 -0
  24. package/dist/esm/commands.js +2 -0
  25. package/dist/esm/commands.js.map +1 -0
  26. package/dist/esm/index.d.ts +3 -0
  27. package/dist/esm/index.d.ts.map +1 -0
  28. package/dist/esm/index.js +4 -0
  29. package/dist/esm/index.js.map +1 -0
  30. package/dist/esm/types.d.ts +27 -0
  31. package/dist/esm/types.d.ts.map +1 -0
  32. package/dist/esm/types.js +2 -0
  33. package/dist/esm/types.js.map +1 -0
  34. package/dist/tsconfig.cjs.tsbuildinfo +1 -0
  35. package/dist/tsconfig.tsbuildinfo +1 -0
  36. package/package.json +29 -0
  37. package/src/FoxgloveViewer.ts +357 -0
  38. package/src/commands.ts +44 -0
  39. package/src/index.ts +3 -0
  40. package/src/types.ts +33 -0
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # @foxglove/embed
2
+
3
+ This package provides the `FoxgloveViewer` class. This class creates and manages an iframe to embed [Foxglove](https://foxglove.dev/) in your application.
4
+
5
+ See https://docs.foxglove.dev/docs/embed/foxglove-embed
6
+
7
+ ## Stay in touch
8
+
9
+ Join us in [Discord](https://foxglove.dev/chat) to ask questions, share feedback, and stay up to date on what our team is working on.
@@ -0,0 +1,67 @@
1
+ import type { DataSource, OpaqueLayoutData, FoxgloveViewerEventMap } from "./types";
2
+ interface FoxgloveEventTarget extends EventTarget {
3
+ addEventListener<K extends keyof FoxgloveViewerEventMap>(type: K, listener: (ev: FoxgloveViewerEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
4
+ removeEventListener<K extends keyof FoxgloveViewerEventMap>(type: K, listener: (ev: FoxgloveViewerEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
5
+ }
6
+ /**
7
+ * Strongly typed EventTarget.
8
+ */
9
+ declare const TypedEventTarget: new () => FoxgloveEventTarget;
10
+ export type FoxgloveViewerOptions = {
11
+ /** The parent element to append the iframe to. This is required if `iframe` is not provided. */
12
+ parent: HTMLElement;
13
+ /** The URL where the Foxglove app is hosted. Defaults to `https://embed.foxglove.dev/`. */
14
+ src?: string;
15
+ /**
16
+ * The Foxglove organization the user should be signed into. Passing this parameter is
17
+ * recommended so the user can be prompted to switch to the correct org if necessary.
18
+ */
19
+ orgSlug: string | undefined;
20
+ /** The initial data source to set when the frame is ready. */
21
+ initialDataSource?: DataSource;
22
+ /** The initial layout to set when the frame is ready. */
23
+ initialLayout?: OpaqueLayoutData;
24
+ /**
25
+ * The initial extensions to install when the frame is ready.
26
+ * This parameter is not supported by all Foxglove versions and plans, so it may result in an `error` event.
27
+ * */
28
+ initialExtensions?: Array<string | File>;
29
+ /**
30
+ * If set, forces the frame to use a specific color scheme. When set to "auto" (the default), the
31
+ * system color scheme is used.
32
+ */
33
+ colorScheme?: "light" | "dark" | "auto";
34
+ };
35
+ /**
36
+ * A class that manages an iframe that contains the Foxglove app.
37
+ */
38
+ export declare class FoxgloveViewer extends TypedEventTarget {
39
+ #private;
40
+ constructor(options: FoxgloveViewerOptions);
41
+ /** Set the data source of the Foxglove app. */
42
+ setDataSource(dataSource: DataSource): void;
43
+ /**
44
+ * Set the layout of the embedded viewer. The layout data should be a JSON file that was exported
45
+ * from the Foxglove app.
46
+ */
47
+ setLayoutData(layout: OpaqueLayoutData): void;
48
+ /**
49
+ * Install a collection of extensions in the Foxglove app.
50
+ * `extensions` is an array of `.foxe` file handles and/or URLs to a `.foxe` files.
51
+ *
52
+ * This method is not supported by all Foxglove versions and plans, so it may result in an `error` event.
53
+ */
54
+ installExtensions(extensions: Array<string | File>): void;
55
+ /** Whether the frame is ready to receive commands. */
56
+ isReady(): boolean;
57
+ /** Destroy the frame. This will remove the iframe from the DOM and stop listening for messages. */
58
+ destroy(): void;
59
+ /** Whether the frame has been destroyed. */
60
+ isDestroyed(): boolean;
61
+ /**
62
+ * Change the color scheme used by the frame. When set to "auto", the system color scheme is used.
63
+ */
64
+ setColorScheme(colorScheme: "light" | "dark" | "auto"): void;
65
+ }
66
+ export {};
67
+ //# sourceMappingURL=FoxgloveViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FoxgloveViewer.d.ts","sourceRoot":"","sources":["../../src/FoxgloveViewer.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAEjB,UAAU,mBAAoB,SAAQ,WAAW;IAE/C,gBAAgB,CAAC,CAAC,SAAS,MAAM,sBAAsB,EACrD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,IAAI,EACjD,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IA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,GAAG,MAAM,GAAG,IAAI;CAyIpE"}
@@ -0,0 +1,246 @@
1
+ "use strict";
2
+ // foxglove-depcheck-used: tslib
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FoxgloveViewer = void 0;
5
+ /**
6
+ * Strongly typed EventTarget.
7
+ */
8
+ const TypedEventTarget = EventTarget;
9
+ const DEFAULT_SERVER = "https://embed.foxglove.dev/";
10
+ const SUPPORTED_CONNECTION_DATA_SOURCE_FILE_TYPES = [".bag", ".mcap"];
11
+ /**
12
+ * A class that manages an iframe that contains the Foxglove app.
13
+ */
14
+ class FoxgloveViewer extends TypedEventTarget {
15
+ /** The iframe element that contains the Foxglove app. */
16
+ #iframe;
17
+ /** The URL where the Foxglove app is hosted. */
18
+ #server;
19
+ #orgSlug;
20
+ /** Whether the frame is ready to receive commands. */
21
+ #isReady = false;
22
+ /** Latest commands that have been queued to be executed when the frame is ready. */
23
+ #latestCommands = {
24
+ dataSource: undefined,
25
+ layout: undefined,
26
+ extension: [],
27
+ };
28
+ /** Whether the frame has been destroyed. */
29
+ #isDestroyed = false;
30
+ constructor(options) {
31
+ super();
32
+ const { parent, src, orgSlug, initialDataSource, initialLayout, initialExtensions, colorScheme = "auto", } = options;
33
+ this.#orgSlug = orgSlug;
34
+ const srcUrl = src ?? DEFAULT_SERVER;
35
+ // Validate the server URL.
36
+ try {
37
+ this.#server = new URL(srcUrl);
38
+ }
39
+ catch {
40
+ throw new Error(`[FoxgloveViewer] Invalid server URL: ${srcUrl}`);
41
+ }
42
+ // Register event listener for messages from the iframe.
43
+ window.addEventListener("message", this.#handleMessage);
44
+ if (initialDataSource) {
45
+ this.setDataSource(initialDataSource);
46
+ }
47
+ if (initialLayout != undefined) {
48
+ this.setLayoutData(initialLayout);
49
+ }
50
+ if (initialExtensions) {
51
+ this.installExtensions(initialExtensions);
52
+ }
53
+ // Create the iframe element.
54
+ this.#iframe = document.createElement("iframe");
55
+ this.#iframe.src = srcUrl;
56
+ this.#iframe.title = "Foxglove";
57
+ this.#iframe.allow = "cross-origin-isolated";
58
+ this.#iframe.style.width = "100%";
59
+ this.#iframe.style.height = "100%";
60
+ this.#iframe.style.border = "none";
61
+ this.setColorScheme(colorScheme);
62
+ parent.appendChild(this.#iframe);
63
+ }
64
+ /** Set the data source of the Foxglove app. */
65
+ setDataSource(dataSource) {
66
+ if (dataSource.type === "live") {
67
+ const error = this.#validateLiveSourceUrl(dataSource.protocol, dataSource.url);
68
+ if (error) {
69
+ throw new Error(`[FoxgloveViewer] Error setting data source: ${error}`);
70
+ }
71
+ }
72
+ this.#queueCommand({
73
+ type: "set-data-source",
74
+ payload: dataSource,
75
+ });
76
+ }
77
+ /**
78
+ * Set the layout of the embedded viewer. The layout data should be a JSON file that was exported
79
+ * from the Foxglove app.
80
+ */
81
+ setLayoutData(layout) {
82
+ this.#queueCommand({
83
+ type: "set-layout",
84
+ payload: layout,
85
+ });
86
+ }
87
+ /**
88
+ * Install a collection of extensions in the Foxglove app.
89
+ * `extensions` is an array of `.foxe` file handles and/or URLs to a `.foxe` files.
90
+ *
91
+ * This method is not supported by all Foxglove versions and plans, so it may result in an `error` event.
92
+ */
93
+ installExtensions(extensions) {
94
+ const invalidExtension = extensions.find((ext) => this.#validateExtension(ext));
95
+ if (invalidExtension != undefined) {
96
+ throw new Error(`[FoxgloveViewer] Error installing extension: ${this.#validateExtension(invalidExtension)}`);
97
+ }
98
+ this.#queueCommand({
99
+ type: "install-extension",
100
+ payload: extensions,
101
+ });
102
+ }
103
+ /** Whether the frame is ready to receive commands. */
104
+ isReady() {
105
+ return this.#isReady;
106
+ }
107
+ /** Destroy the frame. This will remove the iframe from the DOM and stop listening for messages. */
108
+ destroy() {
109
+ this.#isDestroyed = true;
110
+ this.#iframe.remove();
111
+ window.removeEventListener("message", this.#handleMessage);
112
+ }
113
+ /** Whether the frame has been destroyed. */
114
+ isDestroyed() {
115
+ return this.#isDestroyed;
116
+ }
117
+ /**
118
+ * Change the color scheme used by the frame. When set to "auto", the system color scheme is used.
119
+ */
120
+ setColorScheme(colorScheme) {
121
+ this.#iframe.style.colorScheme = colorScheme === "auto" ? "normal" : colorScheme;
122
+ }
123
+ /**
124
+ * Queue a command to be executed when the frame is ready.
125
+ *
126
+ * Commands that are not `IframeHandshakeAckCommand` will be queued and executed when the frame is ready.
127
+ * `IframeHandshakeAckCommand` commands will be posted as a response to the `HandshakeRequest` event.
128
+ */
129
+ #queueCommand(command) {
130
+ if (command.type === "install-extension") {
131
+ this.#latestCommands.extension.push(command);
132
+ }
133
+ else if (command.type === "set-data-source") {
134
+ this.#latestCommands.dataSource = command;
135
+ }
136
+ else {
137
+ this.#latestCommands.layout = command;
138
+ }
139
+ if (this.#isReady) {
140
+ this.#postCommand(command);
141
+ }
142
+ }
143
+ /** Post a command message to the Foxglove app. */
144
+ #postCommand(message) {
145
+ if (this.#isDestroyed) {
146
+ console.warn("[FoxgloveViewer] Unable to post command. Frame has been destroyed.");
147
+ return;
148
+ }
149
+ assert(this.#iframe.contentWindow, "Invariant: iframe should be loaded.");
150
+ this.#iframe.contentWindow.postMessage(message, this.#server.href);
151
+ }
152
+ /** Validate a URL for a connection data source. */
153
+ #validateLiveSourceUrl(protocol, value) {
154
+ switch (protocol) {
155
+ case "foxglove-websocket":
156
+ case "rosbridge-websocket":
157
+ if (!value.startsWith("ws://") && !value.startsWith("wss://")) {
158
+ return "Invalid URL. The URL must start with ws:// or wss://.";
159
+ }
160
+ return undefined;
161
+ case "remote-file":
162
+ try {
163
+ const extension = value.split(".").pop();
164
+ if (!extension || extension.length === 0) {
165
+ return "Invalid URL. The URL must end with a filename and extension.";
166
+ }
167
+ if (!SUPPORTED_CONNECTION_DATA_SOURCE_FILE_TYPES.includes(extension)) {
168
+ const supportedExtensions = new Intl.ListFormat("en-US", { style: "long" }).format(SUPPORTED_CONNECTION_DATA_SOURCE_FILE_TYPES);
169
+ return `Invalid URL. Only ${supportedExtensions} files are supported.`;
170
+ }
171
+ return undefined;
172
+ }
173
+ catch (e) {
174
+ return "Invalid URL.";
175
+ }
176
+ }
177
+ }
178
+ /** Validate an extension. */
179
+ #validateExtension(extensionData) {
180
+ if (typeof extensionData === "string") {
181
+ const extension = extensionData.split(".").pop();
182
+ if (!extension || extension.length === 0) {
183
+ return "Invalid URL. The URL must end with a filename and extension.";
184
+ }
185
+ if (extension !== "foxe") {
186
+ return "Invalid extension. The extension must be a .foxe file.";
187
+ }
188
+ }
189
+ else {
190
+ const extension = extensionData.name.split(".").pop();
191
+ if (!extension || extension.length === 0 || extension !== "foxe") {
192
+ return "Invalid extension. The extension must be a .foxe file.";
193
+ }
194
+ }
195
+ return undefined;
196
+ }
197
+ /** Handle a message from the Foxglove app. */
198
+ #handleMessage = (message) => {
199
+ const originUrl = new URL(message.origin);
200
+ if (message.source !== this.#iframe.contentWindow || originUrl.href !== this.#server.href) {
201
+ // Ignore messages from other sources.
202
+ return;
203
+ }
204
+ if (this.#isDestroyed) {
205
+ console.warn("[FoxgloveViewer] Unable to handle message. Frame has been destroyed.");
206
+ return;
207
+ }
208
+ switch (message.data.type) {
209
+ case "foxglove-handshake-request": {
210
+ this.#isReady = true;
211
+ this.#postCommand({
212
+ type: "handshake-ack",
213
+ payload: {
214
+ orgSlug: this.#orgSlug,
215
+ initialDataSource: this.#latestCommands.dataSource?.payload,
216
+ initialLayout: this.#latestCommands.layout?.payload,
217
+ initialExtensions: this.#latestCommands.extension.flatMap((command) => command.payload),
218
+ },
219
+ });
220
+ break;
221
+ }
222
+ case "foxglove-handshake-complete": {
223
+ this.dispatchEvent(new Event("ready"));
224
+ break;
225
+ }
226
+ case "foxglove-error": {
227
+ this.dispatchEvent(new CustomEvent("error", {
228
+ detail: message.data.payload,
229
+ }));
230
+ break;
231
+ }
232
+ default: {
233
+ console.warn("[FoxgloveViewer] Unhandled message type:", message.data);
234
+ break;
235
+ }
236
+ }
237
+ };
238
+ }
239
+ exports.FoxgloveViewer = FoxgloveViewer;
240
+ function assert(condition, message = "no additional info provided") {
241
+ // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
242
+ if (!condition) {
243
+ throw new Error("Assertion Error: " + message);
244
+ }
245
+ }
246
+ //# sourceMappingURL=FoxgloveViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FoxgloveViewer.js","sourceRoot":"","sources":["../../src/FoxgloveViewer.ts"],"names":[],"mappings":";AAAA,gCAAgC;;;AAiChC;;GAEG;AACH,MAAM,gBAAgB,GAAG,WAAuD,CAAC;AAEjF,MAAM,cAAc,GAAG,6BAA6B,CAAC;AA4BrD,MAAM,2CAA2C,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAa,cAAe,SAAQ,gBAAgB;IAClD,yDAAyD;IACzD,OAAO,CAAoB;IAC3B,gDAAgD;IAChD,OAAO,CAAM;IACb,QAAQ,CAAqB;IAC7B,sDAAsD;IACtD,QAAQ,GAAG,KAAK,CAAC;IACjB,oFAAoF;IACpF,eAAe,GAIX;QACF,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,EAAE;KACd,CAAC;IACF,4CAA4C;IAC5C,YAAY,GAAG,KAAK,CAAC;IAErB,YAAmB,OAA8B;QAC/C,KAAK,EAAE,CAAC;QACR,MAAM,EACJ,MAAM,EACN,GAAG,EACH,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,WAAW,GAAG,MAAM,GACrB,GAAG,OAAO,CAAC;QAEZ,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAExB,MAAM,MAAM,GAAG,GAAG,IAAI,cAAc,CAAC;QAErC,2BAA2B;QAC3B,IAAI,CAAC;YACH,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,wCAAwC,MAAM,EAAE,CAAC,CAAC;QACpE,CAAC;QAED,wDAAwD;QACxD,MAAM,CAAC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AM,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO;iBAC7B,CAAC,CACH,CAAC;gBACF,MAAM;YACR,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACR,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;gBACvE,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC,CAAC;CACH;AAnRD,wCAmRC;AAED,SAAS,MAAM,CACb,SAAkB,EAClB,UAAkB,6BAA6B;IAE/C,yEAAyE;IACzE,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,OAAO,CAAC,CAAC;IACjD,CAAC;AACH,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { DataSource, OpaqueLayoutData } from "./types";
2
+ export type IframeSetDatasourceCommand = {
3
+ type: "set-data-source";
4
+ payload: DataSource;
5
+ };
6
+ export type IframeSetLayoutCommand = {
7
+ type: "set-layout";
8
+ payload: OpaqueLayoutData;
9
+ };
10
+ export type IframeInstallExtensionCommand = {
11
+ type: "install-extension";
12
+ payload: Array<string | File>;
13
+ };
14
+ export type IframeHandshakeAckCommand = {
15
+ type: "handshake-ack";
16
+ payload: {
17
+ orgSlug?: string;
18
+ initialDataSource?: DataSource;
19
+ initialLayout?: OpaqueLayoutData;
20
+ initialExtensions: Array<string | File>;
21
+ };
22
+ };
23
+ export type IframeCommand = IframeSetDatasourceCommand | IframeSetLayoutCommand | IframeInstallExtensionCommand | IframeHandshakeAckCommand;
24
+ export type IframeEvent = {
25
+ type: "foxglove-handshake-request";
26
+ } | {
27
+ type: "foxglove-handshake-complete";
28
+ } | {
29
+ type: "foxglove-error";
30
+ payload: string;
31
+ };
32
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,iBAAiB,CAAC,EAAE,UAAU,CAAC;QAC/B,aAAa,CAAC,EAAE,gBAAgB,CAAC;QACjC,iBAAiB,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;KACzC,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB,0BAA0B,GAC1B,sBAAsB,GACtB,6BAA6B,GAC7B,yBAAyB,CAAC;AAE9B,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,EAAE,4BAA4B,CAAC;CACpC,GACD;IACE,IAAI,EAAE,6BAA6B,CAAC;CACrC,GACD;IACE,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/commands.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from "./FoxgloveViewer";
2
+ export * from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // foxglove-depcheck-used: rimraf
5
+ tslib_1.__exportStar(require("./FoxgloveViewer"), exports);
6
+ tslib_1.__exportStar(require("./types"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,2DAAiC;AACjC,kDAAwB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * An opaque JSON object representing a Foxglove layout. The layout data should be a JSON file that
3
+ * was exported from the Foxglove app.
4
+ */
5
+ export type OpaqueLayoutData = unknown;
6
+ export type RecordingSource = {
7
+ type: "recording";
8
+ projectId: string;
9
+ recordingId: string;
10
+ };
11
+ export type LiveSourceProtocol = "foxglove-websocket" | "rosbridge-websocket" | "remote-file";
12
+ export type LiveSource = {
13
+ type: "live";
14
+ protocol: LiveSourceProtocol;
15
+ url: string;
16
+ };
17
+ export type FileSource = {
18
+ type: "file";
19
+ file: File;
20
+ };
21
+ export type DataSource = RecordingSource | LiveSource | FileSource;
22
+ export type FoxgloveViewerEventMap = {
23
+ ready: Event;
24
+ error: CustomEvent<string>;
25
+ };
26
+ export type FoxgloveViewerEventType = keyof FoxgloveViewerEventMap;
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,qBAAqB,GAAG,aAAa,CAAC;AAE9F,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,67 @@
1
+ import type { DataSource, OpaqueLayoutData, FoxgloveViewerEventMap } from "./types";
2
+ interface FoxgloveEventTarget extends EventTarget {
3
+ addEventListener<K extends keyof FoxgloveViewerEventMap>(type: K, listener: (ev: FoxgloveViewerEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
4
+ removeEventListener<K extends keyof FoxgloveViewerEventMap>(type: K, listener: (ev: FoxgloveViewerEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
5
+ }
6
+ /**
7
+ * Strongly typed EventTarget.
8
+ */
9
+ declare const TypedEventTarget: new () => FoxgloveEventTarget;
10
+ export type FoxgloveViewerOptions = {
11
+ /** The parent element to append the iframe to. This is required if `iframe` is not provided. */
12
+ parent: HTMLElement;
13
+ /** The URL where the Foxglove app is hosted. Defaults to `https://embed.foxglove.dev/`. */
14
+ src?: string;
15
+ /**
16
+ * The Foxglove organization the user should be signed into. Passing this parameter is
17
+ * recommended so the user can be prompted to switch to the correct org if necessary.
18
+ */
19
+ orgSlug: string | undefined;
20
+ /** The initial data source to set when the frame is ready. */
21
+ initialDataSource?: DataSource;
22
+ /** The initial layout to set when the frame is ready. */
23
+ initialLayout?: OpaqueLayoutData;
24
+ /**
25
+ * The initial extensions to install when the frame is ready.
26
+ * This parameter is not supported by all Foxglove versions and plans, so it may result in an `error` event.
27
+ * */
28
+ initialExtensions?: Array<string | File>;
29
+ /**
30
+ * If set, forces the frame to use a specific color scheme. When set to "auto" (the default), the
31
+ * system color scheme is used.
32
+ */
33
+ colorScheme?: "light" | "dark" | "auto";
34
+ };
35
+ /**
36
+ * A class that manages an iframe that contains the Foxglove app.
37
+ */
38
+ export declare class FoxgloveViewer extends TypedEventTarget {
39
+ #private;
40
+ constructor(options: FoxgloveViewerOptions);
41
+ /** Set the data source of the Foxglove app. */
42
+ setDataSource(dataSource: DataSource): void;
43
+ /**
44
+ * Set the layout of the embedded viewer. The layout data should be a JSON file that was exported
45
+ * from the Foxglove app.
46
+ */
47
+ setLayoutData(layout: OpaqueLayoutData): void;
48
+ /**
49
+ * Install a collection of extensions in the Foxglove app.
50
+ * `extensions` is an array of `.foxe` file handles and/or URLs to a `.foxe` files.
51
+ *
52
+ * This method is not supported by all Foxglove versions and plans, so it may result in an `error` event.
53
+ */
54
+ installExtensions(extensions: Array<string | File>): void;
55
+ /** Whether the frame is ready to receive commands. */
56
+ isReady(): boolean;
57
+ /** Destroy the frame. This will remove the iframe from the DOM and stop listening for messages. */
58
+ destroy(): void;
59
+ /** Whether the frame has been destroyed. */
60
+ isDestroyed(): boolean;
61
+ /**
62
+ * Change the color scheme used by the frame. When set to "auto", the system color scheme is used.
63
+ */
64
+ setColorScheme(colorScheme: "light" | "dark" | "auto"): void;
65
+ }
66
+ export {};
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