@foxglove/embed-react 0.2.3 → 0.3.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 (35) hide show
  1. package/dist/{cjs/FoxgloveViewer.d.ts → FoxgloveViewer.d.ts} +4 -1
  2. package/dist/FoxgloveViewer.d.ts.map +1 -0
  3. package/dist/{esm/FoxgloveViewer.js → FoxgloveViewer.js} +1 -1
  4. package/dist/FoxgloveViewer.js.map +1 -0
  5. package/dist/index.d.ts +2 -0
  6. package/dist/{cjs/index.d.ts.map → index.d.ts.map} +1 -1
  7. package/dist/index.js +2 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/useShouldNotChangeOften.d.ts.map +1 -0
  10. package/dist/{cjs/useShouldNotChangeOften.js.map → useShouldNotChangeOften.js.map} +1 -1
  11. package/package.json +12 -9
  12. package/src/FoxgloveViewer.tsx +5 -4
  13. package/src/index.ts +1 -1
  14. package/dist/cjs/FoxgloveViewer.d.ts.map +0 -1
  15. package/dist/cjs/FoxgloveViewer.js +0 -103
  16. package/dist/cjs/FoxgloveViewer.js.map +0 -1
  17. package/dist/cjs/index.d.ts +0 -2
  18. package/dist/cjs/index.js +0 -5
  19. package/dist/cjs/index.js.map +0 -1
  20. package/dist/cjs/tsconfig.build.cjs.tsbuildinfo +0 -1
  21. package/dist/cjs/useShouldNotChangeOften.d.ts.map +0 -1
  22. package/dist/cjs/useShouldNotChangeOften.js +0 -22
  23. package/dist/esm/FoxgloveViewer.d.ts +0 -57
  24. package/dist/esm/FoxgloveViewer.d.ts.map +0 -1
  25. package/dist/esm/FoxgloveViewer.js.map +0 -1
  26. package/dist/esm/index.d.ts +0 -2
  27. package/dist/esm/index.d.ts.map +0 -1
  28. package/dist/esm/index.js +0 -2
  29. package/dist/esm/index.js.map +0 -1
  30. package/dist/esm/tsconfig.build.tsbuildinfo +0 -1
  31. package/dist/esm/useShouldNotChangeOften.d.ts +0 -3
  32. package/dist/esm/useShouldNotChangeOften.d.ts.map +0 -1
  33. package/dist/esm/useShouldNotChangeOften.js.map +0 -1
  34. /package/dist/{cjs/useShouldNotChangeOften.d.ts → useShouldNotChangeOften.d.ts} +0 -0
  35. /package/dist/{esm/useShouldNotChangeOften.js → useShouldNotChangeOften.js} +0 -0
@@ -23,7 +23,10 @@ type Props = {
23
23
  * This property is not supported by all Foxglove versions and plans, so it may result in an `onError` callback.
24
24
  */
25
25
  extensions?: Array<string | File>;
26
- /** The color scheme to use in the Foxglove app. "auto" will use the system color scheme. */
26
+ /**
27
+ * The color scheme to use in the Foxglove app. When set to "auto", the color scheme is inherited
28
+ * from the containing page.
29
+ */
27
30
  colorScheme?: "light" | "dark" | "auto";
28
31
  /** The style to apply to the container. */
29
32
  style?: React.CSSProperties;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FoxgloveViewer.d.ts","sourceRoot":"","sources":["../src/FoxgloveViewer.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAIzB,KAAK,KAAK,GAAG;IACX,2FAA2F;IAC3F,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACxC,2CAA2C;IAC3C,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;SAGK;IACL,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACxC;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2GA8H1B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
3
3
  import { FoxgloveViewer as FoxgloveViewerClass, } from "@foxglove/embed";
4
- import { useShouldNotChangeOften } from "./useShouldNotChangeOften";
4
+ import { useShouldNotChangeOften } from "./useShouldNotChangeOften.js";
5
5
  /**
6
6
  * A component that renders an iframe with the Foxglove app.
7
7
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FoxgloveViewer.js","sourceRoot":"","sources":["../src/FoxgloveViewer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,EAEL,cAAc,IAAI,mBAAmB,GAGtC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAsDvE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CACtC,SAAS,cAAc,CAAC,KAAK,EAAE,GAAG;IAChC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GACzF,KAAK,CAAC;IAER,gDAAgD;IAChD,MAAM,IAAI,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,MAAM,EA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AS,IAAI,KAAK,CAAC,OAAO,IAAI,SAAS,EAAE,CAAC;YACtD,OAAO;QACT,CAAC;QAED,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC,OAAO,IAAI,SAAS,EAAE,CAAC;YAC1D,OAAO;QACT,CAAC;QAED,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,WAAW,IAAI,SAAS,IAAI,KAAK,CAAC,OAAO,IAAI,SAAS,EAAE,CAAC;YAC3D,OAAO;QACT,CAAC;QAED,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC5C,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,mBAAmB,CACjB,GAAG,EACH,GAA4B,EAAE,CAAC,CAAC;QAC9B,KAAK,CAAC,SAAS;YACb,OAAO,MAAM,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;KACF,CAAC,EACF,EAAE,CACH,CAAC;IAEF,OAAO,cAAK,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;AAChE,CAAC,CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./FoxgloveViewer.tsx";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./FoxgloveViewer.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useShouldNotChangeOften.d.ts","sourceRoot":"","sources":["../src/useShouldNotChangeOften.ts"],"names":[],"mappings":"AAKA,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,CAexE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useShouldNotChangeOften.js","sourceRoot":"","sources":["../../src/useShouldNotChangeOften.ts"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,0DAA0D;;AAK1D,0DAeC;AAlBD,iCAA+B;AAE/B,+DAA+D;AAC/D,SAAgB,uBAAuB,CAAI,KAAQ,EAAE,IAAgB;IACnE,MAAM,IAAI,GAAG,IAAA,cAAM,EAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAS,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5C,IACE,KAAK,KAAK,IAAI,CAAC,OAAO;QACtB,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;QACjC,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,GAAG,EACnC,CAAC;QACD,IAAI,EAAE,CAAC;IACT,CAAC;IACD,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACrB,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9B,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"useShouldNotChangeOften.js","sourceRoot":"","sources":["../src/useShouldNotChangeOften.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,0DAA0D;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,+DAA+D;AAC/D,MAAM,UAAU,uBAAuB,CAAI,KAAQ,EAAE,IAAgB;IACnE,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,MAAM,CAAS,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5C,IACE,KAAK,KAAK,IAAI,CAAC,OAAO;QACtB,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;QACjC,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,GAAG,EACnC,CAAC;QACD,IAAI,EAAE,CAAC;IACT,CAAC;IACD,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACrB,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9B,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@foxglove/embed-react",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
+ "type": "module",
5
6
  "author": {
6
7
  "name": "Foxglove Technologies",
7
8
  "email": "support@foxglove.dev"
@@ -14,28 +15,30 @@
14
15
  "react"
15
16
  ],
16
17
  "homepage": "https://foxglove.dev/",
17
- "module": "dist/esm/index.js",
18
- "main": "dist/cjs/index.js",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js"
22
+ }
23
+ },
19
24
  "files": [
20
25
  "dist",
21
26
  "src"
22
27
  ],
23
28
  "scripts": {
29
+ "build": "tsc -b",
24
30
  "clean": "rimraf dist",
25
- "prepack": "yarn build",
26
- "build": "yarn workspace @foxglove/embed build && tsc -b tsconfig.build.json tsconfig.build.cjs.json"
31
+ "prepack": "yarn build"
27
32
  },
28
33
  "dependencies": {
29
- "@foxglove/embed": "0.2.3",
30
- "tslib": "2.8.1"
34
+ "@foxglove/embed": "0.3.0"
31
35
  },
32
36
  "peerDependencies": {
33
37
  "react": ">=18",
34
38
  "react-dom": ">=18"
35
39
  },
36
40
  "devDependencies": {
37
- "@foxglove/tsconfig": "2.0.0",
38
41
  "@types/react": "18.3.5",
39
- "typescript": "5.9.2"
42
+ "typescript": "5.9.3"
40
43
  }
41
44
  }
@@ -1,5 +1,3 @@
1
- // foxglove-depcheck-used: tslib
2
-
3
1
  import type { ReactNode } from "react";
4
2
  import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
5
3
 
@@ -10,7 +8,7 @@ import {
10
8
  type SelectLayoutParams,
11
9
  } from "@foxglove/embed";
12
10
 
13
- import { useShouldNotChangeOften } from "./useShouldNotChangeOften";
11
+ import { useShouldNotChangeOften } from "./useShouldNotChangeOften.ts";
14
12
 
15
13
  type Props = {
16
14
  /** The URL where the Foxglove app is hosted. Defaults to `https://embed.foxglove.dev/`. */
@@ -36,7 +34,10 @@ type Props = {
36
34
  * This property is not supported by all Foxglove versions and plans, so it may result in an `onError` callback.
37
35
  */
38
36
  extensions?: Array<string | File>;
39
- /** The color scheme to use in the Foxglove app. "auto" will use the system color scheme. */
37
+ /**
38
+ * The color scheme to use in the Foxglove app. When set to "auto", the color scheme is inherited
39
+ * from the containing page.
40
+ */
40
41
  colorScheme?: "light" | "dark" | "auto";
41
42
  /** The style to apply to the container. */
42
43
  style?: React.CSSProperties;
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * from "./FoxgloveViewer";
1
+ export * from "./FoxgloveViewer.tsx";
@@ -1 +0,0 @@
1
- {"version":3,"file":"FoxgloveViewer.d.ts","sourceRoot":"","sources":["../../src/FoxgloveViewer.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAIzB,KAAK,KAAK,GAAG;IACX,2FAA2F;IAC3F,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,4FAA4F;IAC5F,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACxC,2CAA2C;IAC3C,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;SAGK;IACL,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACxC;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2GA8H1B,CAAC"}
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FoxgloveViewer = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const embed_1 = require("@foxglove/embed");
7
- const useShouldNotChangeOften_1 = require("./useShouldNotChangeOften");
8
- /**
9
- * A component that renders an iframe with the Foxglove app.
10
- *
11
- * This component is a wrapper around the `FoxgloveViewer` class that provides a more
12
- * convenient API for embedding the Foxglove app in a React application.
13
- */
14
- exports.FoxgloveViewer = (0, react_1.forwardRef)(function FoxgloveViewer(props, ref) {
15
- const { src, orgSlug, className, style, data, layoutData, layout, extensions, colorScheme } = props;
16
- // eslint-disable-next-line no-restricted-syntax
17
- const elem = (0, react_1.useRef)(null);
18
- const frame = (0, react_1.useRef)();
19
- // Store the callbacks in refs to avoid re-rendering the component when the callbacks change.
20
- const onReady = (0, react_1.useRef)(props.onReady ?? undefined);
21
- const onError = (0, react_1.useRef)(props.onError ?? undefined);
22
- (0, useShouldNotChangeOften_1.useShouldNotChangeOften)(data, () => {
23
- console.warn(`[FoxgloveViewer] "data" is changing too frequently. This may cause performance issues, consider memoizing this value.`);
24
- });
25
- (0, useShouldNotChangeOften_1.useShouldNotChangeOften)(layoutData, () => {
26
- console.warn(`[FoxgloveViewer] "layoutData" is changing too frequently. This may cause performance issues, consider memoizing this value.`);
27
- });
28
- (0, useShouldNotChangeOften_1.useShouldNotChangeOften)(layout, () => {
29
- console.warn(`[FoxgloveViewer] "layout" is changing too frequently. This may cause performance issues, consider memoizing this value.`);
30
- });
31
- (0, useShouldNotChangeOften_1.useShouldNotChangeOften)(extensions, () => {
32
- console.warn(`[FoxgloveViewer] "extensions" is changing too frequently. This may cause performance issues, consider memoizing this value.`);
33
- });
34
- // Update onReady and onError refs when the props change.
35
- (0, react_1.useEffect)(() => {
36
- onReady.current = props.onReady;
37
- }, [props.onReady]);
38
- (0, react_1.useEffect)(() => {
39
- onError.current = props.onError;
40
- }, [props.onError]);
41
- (0, react_1.useEffect)(() => {
42
- if (!elem.current) {
43
- return;
44
- }
45
- const handleReady = () => {
46
- onReady.current?.();
47
- };
48
- const handleError = (errorMsg) => {
49
- onError.current?.(errorMsg.detail);
50
- };
51
- frame.current = new embed_1.FoxgloveViewer({
52
- parent: elem.current,
53
- src,
54
- orgSlug,
55
- embeddedViewer: "React",
56
- });
57
- frame.current.addEventListener("ready", handleReady);
58
- frame.current.addEventListener("error", handleError);
59
- return () => {
60
- frame.current?.removeEventListener("ready", handleReady);
61
- frame.current?.removeEventListener("error", handleError);
62
- frame.current?.destroy();
63
- };
64
- }, [src, orgSlug]);
65
- (0, react_1.useEffect)(() => {
66
- if (data == undefined || frame.current == undefined) {
67
- return;
68
- }
69
- frame.current.setDataSource(data);
70
- }, [data]);
71
- (0, react_1.useEffect)(() => {
72
- // Favor layout over layoutData.
73
- if (layout || layoutData == undefined || frame.current == undefined) {
74
- return;
75
- }
76
- frame.current.setLayoutData(layoutData);
77
- }, [layoutData, layout]);
78
- (0, react_1.useEffect)(() => {
79
- if (layout == undefined || frame.current == undefined) {
80
- return;
81
- }
82
- frame.current.selectLayout(layout);
83
- }, [layout]);
84
- (0, react_1.useEffect)(() => {
85
- if (extensions == undefined || frame.current == undefined) {
86
- return;
87
- }
88
- frame.current.installExtensions(extensions);
89
- }, [extensions]);
90
- (0, react_1.useEffect)(() => {
91
- if (colorScheme == undefined || frame.current == undefined) {
92
- return;
93
- }
94
- frame.current.setColorScheme(colorScheme);
95
- }, [colorScheme]);
96
- (0, react_1.useImperativeHandle)(ref, () => ({
97
- async getLayout() {
98
- return await frame.current?.getLayout();
99
- },
100
- }), []);
101
- return (0, jsx_runtime_1.jsx)("div", { ref: elem, style: style, className: className });
102
- });
103
- //# sourceMappingURL=FoxgloveViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FoxgloveViewer.js","sourceRoot":"","sources":["../../src/FoxgloveViewer.tsx"],"names":[],"mappings":";;;;AAGA,iCAA2E;AAE3E,2CAKyB;AAEzB,uEAAoE;AAmDpE;;;;;GAKG;AACU,QAAA,cAAc,GAAG,IAAA,kBAAU,EACtC,SAAS,cAAc,CAAC,KAAK,EAAE,GAAG;IAChC,MAAM,EAAE,GAAG,EAAE,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,KAAK,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;AAChE,CAAC,CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./FoxgloveViewer";
2
- //# sourceMappingURL=index.d.ts.map
package/dist/cjs/index.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./FoxgloveViewer"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
@@ -1 +0,0 @@
1
- {"root":["../../src/FoxgloveViewer.tsx","../../src/index.ts","../../src/useShouldNotChangeOften.ts"],"version":"5.9.2"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useShouldNotChangeOften.d.ts","sourceRoot":"","sources":["../../src/useShouldNotChangeOften.ts"],"names":[],"mappings":"AAKA,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,CAexE"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- // This file is copied from @foxglove/viz/hooks/useShouldNotChangeOften.ts
3
- // We copy the file to avoid depending on the viz package.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.useShouldNotChangeOften = useShouldNotChangeOften;
6
- const react_1 = require("react");
7
- /** Call _warn_ if a given value changes twice within 200 ms */
8
- function useShouldNotChangeOften(value, warn) {
9
- const prev = (0, react_1.useRef)(value);
10
- const prevPrev = (0, react_1.useRef)(value);
11
- const lastTime = (0, react_1.useRef)(Date.now());
12
- if (value !== prev.current &&
13
- prev.current !== prevPrev.current &&
14
- Date.now() - lastTime.current < 200) {
15
- warn();
16
- }
17
- prevPrev.current = prev.current;
18
- prev.current = value;
19
- lastTime.current = Date.now();
20
- return value;
21
- }
22
- //# sourceMappingURL=useShouldNotChangeOften.js.map
@@ -1,57 +0,0 @@
1
- import { type DataSource, type OpaqueLayoutData, type SelectLayoutParams } from "@foxglove/embed";
2
- type Props = {
3
- /** The URL where the Foxglove app is hosted. Defaults to `https://embed.foxglove.dev/`. */
4
- src?: string;
5
- /**
6
- * The Foxglove organization the user should be signed into. Passing this parameter is
7
- * recommended so the user can be prompted to switch to the correct org if necessary.
8
- */
9
- orgSlug?: string;
10
- /** The data source to visualize in the Foxglove app. */
11
- data?: DataSource;
12
- /**
13
- * The layout to use in the Foxglove app.
14
- *
15
- * @deprecated Use `layout` instead
16
- */
17
- layoutData?: OpaqueLayoutData;
18
- /** The layout to use in the Foxglove app. */
19
- layout?: SelectLayoutParams;
20
- /**
21
- * The extensions to install in the Foxglove app.
22
- *
23
- * This property is not supported by all Foxglove versions and plans, so it may result in an `onError` callback.
24
- */
25
- extensions?: Array<string | File>;
26
- /** The color scheme to use in the Foxglove app. "auto" will use the system color scheme. */
27
- colorScheme?: "light" | "dark" | "auto";
28
- /** The style to apply to the container. */
29
- style?: React.CSSProperties;
30
- /** The class name to apply to the container. */
31
- className?: string;
32
- /** A callback function that is called when the Foxglove app is ready. */
33
- onReady?: () => void;
34
- /**
35
- * A callback function that is called when the Foxglove app encounters an error when trying to
36
- * update the data source, layout, or extensions.
37
- * */
38
- onError?: (errorMsg: string) => void;
39
- };
40
- export interface FoxgloveViewerInterface {
41
- /**
42
- * Retrieve the currently configured layout from the embedded viewer.
43
- *
44
- * @returns A Promise that resolves with an opaque JavaScript object representing the current
45
- * layout. This can be used as the `opaqueLayout` property of `SelectLayoutParams`.
46
- */
47
- getLayout(): Promise<OpaqueLayoutData>;
48
- }
49
- /**
50
- * A component that renders an iframe with the Foxglove app.
51
- *
52
- * This component is a wrapper around the `FoxgloveViewer` class that provides a more
53
- * convenient API for embedding the Foxglove app in a React application.
54
- */
55
- export declare const FoxgloveViewer: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<FoxgloveViewerInterface>>;
56
- export {};
57
- //# sourceMappingURL=FoxgloveViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FoxgloveViewer.d.ts","sourceRoot":"","sources":["../../src/FoxgloveViewer.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAIzB,KAAK,KAAK,GAAG;IACX,2FAA2F;IAC3F,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,4FAA4F;IAC5F,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACxC,2CAA2C;IAC3C,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;SAGK;IACL,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACxC;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2GA8H1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FoxgloveViewer.js","sourceRoot":"","sources":["../../src/FoxgloveViewer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EA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EAAE,CAAC,CAAC;QAC9B,KAAK,CAAC,SAAS;YACb,OAAO,MAAM,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;KACF,CAAC,EACF,EAAE,CACH,CAAC;IAEF,OAAO,cAAK,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;AAChE,CAAC,CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./FoxgloveViewer";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
package/dist/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./FoxgloveViewer";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"root":["../../src/FoxgloveViewer.tsx","../../src/index.ts","../../src/useShouldNotChangeOften.ts"],"version":"5.9.2"}
@@ -1,3 +0,0 @@
1
- /** Call _warn_ if a given value changes twice within 200 ms */
2
- export declare function useShouldNotChangeOften<T>(value: T, warn: () => void): T;
3
- //# sourceMappingURL=useShouldNotChangeOften.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useShouldNotChangeOften.d.ts","sourceRoot":"","sources":["../../src/useShouldNotChangeOften.ts"],"names":[],"mappings":"AAKA,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,CAexE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useShouldNotChangeOften.js","sourceRoot":"","sources":["../../src/useShouldNotChangeOften.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,0DAA0D;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,+DAA+D;AAC/D,MAAM,UAAU,uBAAuB,CAAI,KAAQ,EAAE,IAAgB;IACnE,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,MAAM,CAAS,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5C,IACE,KAAK,KAAK,IAAI,CAAC,OAAO;QACtB,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;QACjC,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,GAAG,EACnC,CAAC;QACD,IAAI,EAAE,CAAC;IACT,CAAC;IACD,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACrB,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9B,OAAO,KAAK,CAAC;AACf,CAAC"}