@foxglove/embed 0.1.6 → 0.1.7
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/cjs/types.d.ts +18 -1
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/types.d.ts +18 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types.ts +21 -1
package/dist/cjs/types.d.ts
CHANGED
|
@@ -8,6 +8,23 @@ export type RecordingSource = {
|
|
|
8
8
|
projectId: string;
|
|
9
9
|
recordingId: string;
|
|
10
10
|
};
|
|
11
|
+
export type DeviceSource = {
|
|
12
|
+
type: "device";
|
|
13
|
+
/** The ID of the device to connect to */
|
|
14
|
+
deviceId: string;
|
|
15
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
16
|
+
start: string;
|
|
17
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
18
|
+
end: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "device";
|
|
21
|
+
/** The name of the device to connect to */
|
|
22
|
+
deviceName: string;
|
|
23
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
24
|
+
start: string;
|
|
25
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
26
|
+
end: string;
|
|
27
|
+
};
|
|
11
28
|
export type LiveSourceProtocol = "foxglove-websocket" | "rosbridge-websocket" | "remote-file";
|
|
12
29
|
export type LiveSource = {
|
|
13
30
|
type: "live";
|
|
@@ -18,7 +35,7 @@ export type FileSource = {
|
|
|
18
35
|
type: "file";
|
|
19
36
|
file: File | File[];
|
|
20
37
|
};
|
|
21
|
-
export type DataSource = RecordingSource | LiveSource | FileSource;
|
|
38
|
+
export type DataSource = RecordingSource | DeviceSource | LiveSource | FileSource;
|
|
22
39
|
export type FoxgloveViewerEventMap = {
|
|
23
40
|
ready: Event;
|
|
24
41
|
error: CustomEvent<string>;
|
package/dist/cjs/types.d.ts.map
CHANGED
|
@@ -1 +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,GAAG,IAAI,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;
|
|
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,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;CACb,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEN,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,GAAG,IAAI,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC;AAElF,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;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;SAGK;IACL,UAAU,EAAE,MAAM,CAAC;IACnB;;;;SAIK;IACL,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,0FAA0F;IAC1F,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -8,6 +8,23 @@ export type RecordingSource = {
|
|
|
8
8
|
projectId: string;
|
|
9
9
|
recordingId: string;
|
|
10
10
|
};
|
|
11
|
+
export type DeviceSource = {
|
|
12
|
+
type: "device";
|
|
13
|
+
/** The ID of the device to connect to */
|
|
14
|
+
deviceId: string;
|
|
15
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
16
|
+
start: string;
|
|
17
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
18
|
+
end: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "device";
|
|
21
|
+
/** The name of the device to connect to */
|
|
22
|
+
deviceName: string;
|
|
23
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
24
|
+
start: string;
|
|
25
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
26
|
+
end: string;
|
|
27
|
+
};
|
|
11
28
|
export type LiveSourceProtocol = "foxglove-websocket" | "rosbridge-websocket" | "remote-file";
|
|
12
29
|
export type LiveSource = {
|
|
13
30
|
type: "live";
|
|
@@ -18,7 +35,7 @@ export type FileSource = {
|
|
|
18
35
|
type: "file";
|
|
19
36
|
file: File | File[];
|
|
20
37
|
};
|
|
21
|
-
export type DataSource = RecordingSource | LiveSource | FileSource;
|
|
38
|
+
export type DataSource = RecordingSource | DeviceSource | LiveSource | FileSource;
|
|
22
39
|
export type FoxgloveViewerEventMap = {
|
|
23
40
|
ready: Event;
|
|
24
41
|
error: CustomEvent<string>;
|
package/dist/esm/types.d.ts.map
CHANGED
|
@@ -1 +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,EAA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Y,GAAG,UAAU,GAAG,UAAU,CAAC;AAElF,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;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;SAGK;IACL,UAAU,EAAE,MAAM,CAAC;IACnB;;;;SAIK;IACL,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,0FAA0F;IAC1F,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -10,6 +10,26 @@ export type RecordingSource = {
|
|
|
10
10
|
recordingId: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
export type DeviceSource =
|
|
14
|
+
| {
|
|
15
|
+
type: "device";
|
|
16
|
+
/** The ID of the device to connect to */
|
|
17
|
+
deviceId: string;
|
|
18
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
19
|
+
start: string;
|
|
20
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
21
|
+
end: string;
|
|
22
|
+
}
|
|
23
|
+
| {
|
|
24
|
+
type: "device";
|
|
25
|
+
/** The name of the device to connect to */
|
|
26
|
+
deviceName: string;
|
|
27
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
28
|
+
start: string;
|
|
29
|
+
/** A string compatible with ISO8601/RFC3339 (e.g. "2025-01-01T00:00:00Z") */
|
|
30
|
+
end: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
13
33
|
export type LiveSourceProtocol = "foxglove-websocket" | "rosbridge-websocket" | "remote-file";
|
|
14
34
|
|
|
15
35
|
export type LiveSource = {
|
|
@@ -23,7 +43,7 @@ export type FileSource = {
|
|
|
23
43
|
file: File | File[];
|
|
24
44
|
};
|
|
25
45
|
|
|
26
|
-
export type DataSource = RecordingSource | LiveSource | FileSource;
|
|
46
|
+
export type DataSource = RecordingSource | DeviceSource | LiveSource | FileSource;
|
|
27
47
|
|
|
28
48
|
export type FoxgloveViewerEventMap = {
|
|
29
49
|
ready: Event;
|