@foxglove/embed 0.7.0 → 0.8.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/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types.ts +10 -0
package/dist/types.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type RecordingSource = {
|
|
|
9
9
|
type: "recording";
|
|
10
10
|
projectId: string;
|
|
11
11
|
recordingId: string;
|
|
12
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
13
|
+
autoplay?: boolean;
|
|
12
14
|
};
|
|
13
15
|
export type DeviceSource = {
|
|
14
16
|
type: "device";
|
|
@@ -18,6 +20,8 @@ export type DeviceSource = {
|
|
|
18
20
|
start: string;
|
|
19
21
|
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
20
22
|
end: string;
|
|
23
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
24
|
+
autoplay?: boolean;
|
|
21
25
|
} | {
|
|
22
26
|
type: "device";
|
|
23
27
|
/** The name of the device to connect to */
|
|
@@ -26,6 +30,8 @@ export type DeviceSource = {
|
|
|
26
30
|
start: string;
|
|
27
31
|
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
28
32
|
end: string;
|
|
33
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
34
|
+
autoplay?: boolean;
|
|
29
35
|
};
|
|
30
36
|
export type LiveSourceProtocol = "foxglove-websocket" | "rosbridge-websocket";
|
|
31
37
|
export type LiveSource = {
|
|
@@ -36,10 +42,14 @@ export type LiveSource = {
|
|
|
36
42
|
export type RemoteFileSource = {
|
|
37
43
|
type: "remote-file";
|
|
38
44
|
urls: string[];
|
|
45
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
46
|
+
autoplay?: boolean;
|
|
39
47
|
};
|
|
40
48
|
export type FileSource = {
|
|
41
49
|
type: "file";
|
|
42
50
|
file: File | File[];
|
|
51
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
52
|
+
autoplay?: boolean;
|
|
43
53
|
};
|
|
44
54
|
export type DataSource = RecordingSource | DeviceSource | LiveSource | FileSource | RemoteFileSource;
|
|
45
55
|
export type FoxgloveViewerEventMap = {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,cAAc,uBAAuB,CAAC;AAEtC;;;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;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,cAAc,uBAAuB,CAAC;AAEtC;;;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;IACpB,iGAAiG;IACjG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ,iGAA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,CAAC,EAAE,OAAO,CAAC;CACjB,GACD;IACE;;;SAGK;IACL,UAAU,EAAE,MAAM,CAAC;IACnB;;;SAGK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -12,6 +12,8 @@ export type RecordingSource = {
|
|
|
12
12
|
type: "recording";
|
|
13
13
|
projectId: string;
|
|
14
14
|
recordingId: string;
|
|
15
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
16
|
+
autoplay?: boolean;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export type DeviceSource =
|
|
@@ -23,6 +25,8 @@ export type DeviceSource =
|
|
|
23
25
|
start: string;
|
|
24
26
|
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
25
27
|
end: string;
|
|
28
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
29
|
+
autoplay?: boolean;
|
|
26
30
|
}
|
|
27
31
|
| {
|
|
28
32
|
type: "device";
|
|
@@ -32,6 +36,8 @@ export type DeviceSource =
|
|
|
32
36
|
start: string;
|
|
33
37
|
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
34
38
|
end: string;
|
|
39
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
40
|
+
autoplay?: boolean;
|
|
35
41
|
};
|
|
36
42
|
|
|
37
43
|
export type LiveSourceProtocol = "foxglove-websocket" | "rosbridge-websocket";
|
|
@@ -45,11 +51,15 @@ export type LiveSource = {
|
|
|
45
51
|
export type RemoteFileSource = {
|
|
46
52
|
type: "remote-file";
|
|
47
53
|
urls: string[];
|
|
54
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
55
|
+
autoplay?: boolean;
|
|
48
56
|
};
|
|
49
57
|
|
|
50
58
|
export type FileSource = {
|
|
51
59
|
type: "file";
|
|
52
60
|
file: File | File[];
|
|
61
|
+
/** If true, automatically starts playback when this data source is loaded. Defaults to false. */
|
|
62
|
+
autoplay?: boolean;
|
|
53
63
|
};
|
|
54
64
|
|
|
55
65
|
export type DataSource =
|