@spear-ai/spectral 1.3.33 → 1.3.34

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.
@@ -1,110 +1,146 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { Badge as t } from "../Badge.js";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { Badge as a } from "../Badge.js";
3
3
  import "../Icons/AnnotationsIcon.js";
4
4
  import "../Icons/CalendarIcon.js";
5
5
  import "../Icons/ClockIcon.js";
6
6
  import "../Icons/DashboardIcon.js";
7
- import { DeleteIcon as c } from "../Icons/DeleteIcon.js";
7
+ import { DeleteIcon as n } from "../Icons/DeleteIcon.js";
8
8
  import "../Icons/DurationIcon.js";
9
- import { EraserIcon as m } from "../Icons/EraserIcon.js";
9
+ import { EraserIcon as c } from "../Icons/EraserIcon.js";
10
10
  import "../Icons/GoToFirstIcon.js";
11
11
  import "../Icons/GoToLastIcon.js";
12
12
  import "../Icons/HarmonicCursorsIcon.js";
13
13
  import "../Icons/InfoIcon.js";
14
- import { LabelIcon as a } from "../Icons/LabelIcon.js";
15
- import { LassoIcon as h } from "../Icons/LassoIcon.js";
14
+ import { LabelIcon as m } from "../Icons/LabelIcon.js";
15
+ import { LassoIcon as g } from "../Icons/LassoIcon.js";
16
16
  import { LineToolIcon as p } from "../Icons/LineToolIcon.js";
17
17
  import "../Icons/LiveViewIcon.js";
18
18
  import "../Icons/LocationIcon.js";
19
19
  import "../Icons/LogoutIcon.js";
20
- import { MetadataIcon as f } from "../Icons/MetadataIcon.js";
21
- import { OntologyIcon as g } from "../Icons/OntologyIcon.js";
20
+ import { MetadataIcon as b } from "../Icons/MetadataIcon.js";
21
+ import { OntologyIcon as h } from "../Icons/OntologyIcon.js";
22
22
  import "../Icons/PanelIcon.js";
23
23
  import "../Icons/PlayIcon.js";
24
- import { PlusIcon as u } from "../Icons/PlusIcon.js";
24
+ import { PlusIcon as f } from "../Icons/PlusIcon.js";
25
25
  import "../Icons/ResetIcon.js";
26
26
  import { ScissorsIcon as v } from "../Icons/ScissorsIcon.js";
27
27
  import "../Icons/SettingsIcon.js";
28
28
  import "../Icons/TrashIcon.js";
29
- import { UndoIcon as b } from "../Icons/UndoIcon.js";
29
+ import { UndoIcon as u } from "../Icons/UndoIcon.js";
30
30
  import "../Icons/UserIcon.js";
31
+ import "../Icons/WarningIcon.js";
31
32
  import "../Icons/ZoomAllIcon.js";
32
33
  import "../Icons/ZoomXIcon.js";
33
34
  import "../Icons/ZoomYIcon.js";
34
35
  import { Toggle as d } from "../Toggle.js";
35
- import { ToggleGroup as n, ToggleGroupItem as s } from "../ToggleGroup.js";
36
- import { Tooltip as o, TooltipTrigger as r, TooltipContent as l } from "../Tooltip.js";
37
- const ie = () => /* @__PURE__ */ i("div", { className: "align-center flex gap-4", children: [
38
- /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ i(n, { type: "single", variant: "outline", children: [
39
- /* @__PURE__ */ i(o, { children: [
40
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "crosshairs", children: [
41
- /* @__PURE__ */ e(u, { size: 22 }),
42
- /* @__PURE__ */ e(t, { className: "ml-1", children: "C" })
36
+ import { ToggleGroup as s, ToggleGroupItem as l } from "../ToggleGroup.js";
37
+ import { Tooltip as i, TooltipTrigger as o, TooltipContent as t } from "../Tooltip.js";
38
+ const ie = () => /* @__PURE__ */ r("div", { className: "align-center flex gap-4", children: [
39
+ /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ r(s, { type: "single", variant: "outline", children: [
40
+ /* @__PURE__ */ r(i, { children: [
41
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(l, { value: "crosshairs", children: [
42
+ /* @__PURE__ */ e(f, { size: 22 }),
43
+ /* @__PURE__ */ e(a, { className: "ml-1", children: "C" })
43
44
  ] }) }),
44
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Crosshairs tool (C)" })
45
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Crosshairs tool (C)" })
45
46
  ] }),
46
- /* @__PURE__ */ i(o, { children: [
47
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "lasso", children: [
48
- /* @__PURE__ */ e(h, { size: 22 }),
49
- /* @__PURE__ */ e(t, { className: "ml-1", children: "L" })
47
+ /* @__PURE__ */ r(i, { children: [
48
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(l, { value: "lasso", children: [
49
+ /* @__PURE__ */ e(g, { size: 22 }),
50
+ /* @__PURE__ */ e(a, { className: "ml-1", children: "L" })
50
51
  ] }) }),
51
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Lasso tool (L)" })
52
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Lasso tool (L)" })
52
53
  ] }),
53
- /* @__PURE__ */ i(o, { children: [
54
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "points", children: [
54
+ /* @__PURE__ */ r(i, { children: [
55
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(l, { value: "points", children: [
55
56
  /* @__PURE__ */ e(p, { size: 22 }),
56
- /* @__PURE__ */ e(t, { className: "ml-1", children: "P" })
57
+ /* @__PURE__ */ e(a, { className: "ml-1", children: "P" })
57
58
  ] }) }),
58
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Points tool (P)" })
59
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Points tool (P)" })
59
60
  ] })
60
61
  ] }) }),
61
- /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ i(n, { type: "single", variant: "outline", children: [
62
- /* @__PURE__ */ i(o, { children: [
63
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "crosshairs", children: [
64
- /* @__PURE__ */ e(v, { size: 22 }),
65
- /* @__PURE__ */ e(t, { className: "ml-1", children: "⌘X" })
66
- ] }) }),
67
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Scissor tool (⌘X)" })
62
+ /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ r(s, { type: "single", variant: "outline", children: [
63
+ /* @__PURE__ */ r(i, { children: [
64
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(
65
+ l,
66
+ {
67
+ value: "crosshairs",
68
+ className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
69
+ children: [
70
+ /* @__PURE__ */ e(v, { size: 22 }),
71
+ /* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌘X" })
72
+ ]
73
+ }
74
+ ) }),
75
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Scissor tool (⌘X)" })
68
76
  ] }),
69
- /* @__PURE__ */ i(o, { children: [
70
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "lasso", children: [
71
- /* @__PURE__ */ e(a, { size: 22 }),
72
- /* @__PURE__ */ e(t, { className: "ml-1", children: "⌘T" })
73
- ] }) }),
74
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Label tool (⌘T)" })
77
+ /* @__PURE__ */ r(i, { children: [
78
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(
79
+ l,
80
+ {
81
+ value: "lasso",
82
+ className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
83
+ children: [
84
+ /* @__PURE__ */ e(m, { size: 22 }),
85
+ /* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌘T" })
86
+ ]
87
+ }
88
+ ) }),
89
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Label tool (⌘T)" })
75
90
  ] })
76
91
  ] }) }),
77
- /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ i(n, { type: "single", variant: "outline", children: [
78
- /* @__PURE__ */ i(o, { children: [
79
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "undo", children: [
80
- /* @__PURE__ */ e(b, { size: 22 }),
81
- /* @__PURE__ */ e(t, { className: "ml-1", children: "⌘X" })
82
- ] }) }),
83
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Undo last (⌘X)" })
92
+ /* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ r(s, { type: "single", variant: "outline", children: [
93
+ /* @__PURE__ */ r(i, { children: [
94
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(
95
+ l,
96
+ {
97
+ value: "undo",
98
+ className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
99
+ children: [
100
+ /* @__PURE__ */ e(u, { size: 22 }),
101
+ /* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌘X" })
102
+ ]
103
+ }
104
+ ) }),
105
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Undo last (⌘X)" })
84
106
  ] }),
85
- /* @__PURE__ */ i(o, { children: [
86
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "delete", children: [
87
- /* @__PURE__ */ e(c, { size: 22 }),
88
- /* @__PURE__ */ e(t, { className: "ml-1", children: "⌫" })
89
- ] }) }),
90
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Delete selected (⌫)" })
107
+ /* @__PURE__ */ r(i, { children: [
108
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(
109
+ l,
110
+ {
111
+ value: "delete",
112
+ className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
113
+ children: [
114
+ /* @__PURE__ */ e(n, { size: 22 }),
115
+ /* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌫" })
116
+ ]
117
+ }
118
+ ) }),
119
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Delete selected (⌫)" })
91
120
  ] }),
92
- /* @__PURE__ */ i(o, { children: [
93
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(s, { value: "clear", children: [
94
- /* @__PURE__ */ e(m, { size: 22 }),
95
- /* @__PURE__ */ e(t, { className: "ml-1", children: "⌘⇧A" })
96
- ] }) }),
97
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Clear (⌘⇧A)" })
121
+ /* @__PURE__ */ r(i, { children: [
122
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(
123
+ l,
124
+ {
125
+ value: "clear",
126
+ className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
127
+ children: [
128
+ /* @__PURE__ */ e(c, { size: 22 }),
129
+ /* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌘⇧A" })
130
+ ]
131
+ }
132
+ ) }),
133
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Clear (⌘⇧A)" })
98
134
  ] })
99
135
  ] }) }),
100
- /* @__PURE__ */ i("div", { className: "flex gap-4", children: [
101
- /* @__PURE__ */ i(o, { children: [
102
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(f, { size: 22 }) }) }),
103
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Metadata" })
136
+ /* @__PURE__ */ r("div", { className: "flex gap-4", children: [
137
+ /* @__PURE__ */ r(i, { children: [
138
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(d, { pressed: !1, children: /* @__PURE__ */ e(b, { size: 22 }) }) }),
139
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Metadata" })
104
140
  ] }),
105
- /* @__PURE__ */ i(o, { children: [
106
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(g, { size: 22 }) }) }),
107
- /* @__PURE__ */ e(l, { sideOffset: 8, side: "bottom", children: "Ontology" })
141
+ /* @__PURE__ */ r(i, { children: [
142
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(d, { pressed: !1, children: /* @__PURE__ */ e(h, { size: 22 }) }) }),
143
+ /* @__PURE__ */ e(t, { sideOffset: 8, side: "bottom", children: "Ontology" })
108
144
  ] })
109
145
  ] })
110
146
  ] });
@@ -28,10 +28,11 @@ import "../Icons/SettingsIcon.js";
28
28
  import "../Icons/TrashIcon.js";
29
29
  import "../Icons/UndoIcon.js";
30
30
  import "../Icons/UserIcon.js";
31
+ import "../Icons/WarningIcon.js";
31
32
  import "../Icons/ZoomAllIcon.js";
32
33
  import "../Icons/ZoomXIcon.js";
33
34
  import "../Icons/ZoomYIcon.js";
34
- const F = () => /* @__PURE__ */ e(r, { description: "Recording Details", title: "Sensor Metadata", trigger: /* @__PURE__ */ e(m, {}), children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
35
+ const G = () => /* @__PURE__ */ e(r, { description: "Recording Details", title: "Sensor Metadata", trigger: /* @__PURE__ */ e(m, {}), children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
35
36
  /* @__PURE__ */ t("div", { className: "bg-card-bg-secondary rounded-md px-4 py-5", children: [
36
37
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2 !text-sm font-semibold uppercase", children: [
37
38
  /* @__PURE__ */ e(s, { size: 16 }),
@@ -86,5 +87,5 @@ const F = () => /* @__PURE__ */ e(r, { description: "Recording Details", title:
86
87
  ] })
87
88
  ] }) });
88
89
  export {
89
- F as SensorMetadata
90
+ G as SensorMetadata
90
91
  };
@@ -7,7 +7,7 @@ import "../Icons/DashboardIcon.js";
7
7
  import "../Icons/DeleteIcon.js";
8
8
  import "../Icons/DurationIcon.js";
9
9
  import "../Icons/EraserIcon.js";
10
- import { GoToFirstIcon as w } from "../Icons/GoToFirstIcon.js";
10
+ import { GoToFirstIcon as y } from "../Icons/GoToFirstIcon.js";
11
11
  import { GoToLastIcon as N } from "../Icons/GoToLastIcon.js";
12
12
  import { HarmonicCursorsIcon as T } from "../Icons/HarmonicCursorsIcon.js";
13
13
  import "../Icons/InfoIcon.js";
@@ -28,6 +28,7 @@ import { SettingsIcon as O } from "../Icons/SettingsIcon.js";
28
28
  import "../Icons/TrashIcon.js";
29
29
  import "../Icons/UndoIcon.js";
30
30
  import "../Icons/UserIcon.js";
31
+ import "../Icons/WarningIcon.js";
31
32
  import { ZoomAllIcon as I } from "../Icons/ZoomAllIcon.js";
32
33
  import { ZoomXIcon as C } from "../Icons/ZoomXIcon.js";
33
34
  import { ZoomYIcon as k } from "../Icons/ZoomYIcon.js";
@@ -35,11 +36,11 @@ import { Popover as G, PopoverTrigger as V, PopoverContent as R } from "../Popov
35
36
  import { RadioGroup as S, RadioGroupItem as l } from "../RadioGroup.js";
36
37
  import { Switch as A } from "../Switch.js";
37
38
  import { Toggle as s } from "../Toggle.js";
38
- import { ToggleGroup as h, ToggleGroupItem as o } from "../ToggleGroup.js";
39
+ import { ToggleGroup as h, ToggleGroupItem as t } from "../ToggleGroup.js";
39
40
  import { Tooltip as a, TooltipTrigger as m, TooltipContent as n } from "../Tooltip.js";
40
41
  import { useState as c } from "react";
41
42
  const ye = () => {
42
- const [g, b] = c("green-black"), [f, d] = c(""), [v, p] = c(!1), [u, y] = c(!1);
43
+ const [g, b] = c("green-black"), [f, d] = c(""), [v, p] = c(!1), [u, w] = c(!1);
43
44
  return /* @__PURE__ */ r(G, { open: v, onOpenChange: p, children: [
44
45
  /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(s, { pressed: !1, children: /* @__PURE__ */ e(O, {}) }) }),
45
46
  /* @__PURE__ */ r(R, { side: "bottom", align: "end", children: [
@@ -51,20 +52,20 @@ const ye = () => {
51
52
  type: "single",
52
53
  layout: "expanded",
53
54
  value: f,
54
- onValueChange: (t) => {
55
- const i = typeof t == "string" ? t : "";
55
+ onValueChange: (o) => {
56
+ const i = typeof o == "string" ? o : "";
56
57
  d(i), i && p(!1);
57
58
  },
58
59
  children: [
59
- /* @__PURE__ */ r(o, { value: "zoom-all", children: [
60
+ /* @__PURE__ */ r(t, { value: "zoom-all", children: [
60
61
  /* @__PURE__ */ e(I, { size: 16 }),
61
62
  "All"
62
63
  ] }),
63
- /* @__PURE__ */ r(o, { value: "zoom-bearing", children: [
64
+ /* @__PURE__ */ r(t, { value: "zoom-bearing", children: [
64
65
  /* @__PURE__ */ e(C, { size: 16 }),
65
66
  "Bearing"
66
67
  ] }),
67
- /* @__PURE__ */ r(o, { value: "zoom-time", children: [
68
+ /* @__PURE__ */ r(t, { value: "zoom-time", children: [
68
69
  /* @__PURE__ */ e(k, { size: 16 }),
69
70
  "Time"
70
71
  ] })
@@ -95,8 +96,8 @@ const ye = () => {
95
96
  A,
96
97
  {
97
98
  checked: u,
98
- onChange: (t) => {
99
- y(t);
99
+ onChange: (o) => {
100
+ w(o);
100
101
  },
101
102
  labelText: "View Annotations",
102
103
  hideLabel: !0,
@@ -117,8 +118,8 @@ const ye = () => {
117
118
  orientation: "horizontal",
118
119
  className: "flex items-center gap-3",
119
120
  value: g,
120
- onValueChange: (t) => {
121
- b(typeof t == "string" ? t : "green-black");
121
+ onValueChange: (o) => {
122
+ b(typeof o == "string" ? o : "green-black");
122
123
  },
123
124
  variant: "unstyled",
124
125
  children: [
@@ -144,7 +145,7 @@ const ye = () => {
144
145
  ] }),
145
146
  /* @__PURE__ */ r("div", { className: "border-border-secondary mb-2 w-full border-t pt-4", children: [
146
147
  /* @__PURE__ */ e("p", { className: "text-md text-md mb-3 font-semibold", children: "View Options" }),
147
- /* @__PURE__ */ r(s, { pressed: !1, className: "active:bg-selected-primary mb-4 w-full", children: [
148
+ /* @__PURE__ */ r(s, { pressed: !1, className: "mb-4 w-full", children: [
148
149
  /* @__PURE__ */ e(x, { size: 18 }),
149
150
  "Realtime Stream"
150
151
  ] }),
@@ -153,26 +154,26 @@ const ye = () => {
153
154
  {
154
155
  type: "single",
155
156
  layout: "expanded",
156
- onValueChange: (t) => {
157
- d(typeof t == "string" ? t : "");
157
+ onValueChange: (o) => {
158
+ d(typeof o == "string" ? o : "");
158
159
  },
159
160
  children: [
160
161
  /* @__PURE__ */ r(
161
- o,
162
+ t,
162
163
  {
163
164
  value: "zoom-time",
164
- className: "active:bg-selected-primary data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
165
+ className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
165
166
  children: [
166
- /* @__PURE__ */ e(w, { size: 16 }),
167
+ /* @__PURE__ */ e(y, { size: 16 }),
167
168
  "Oldest Data"
168
169
  ]
169
170
  }
170
171
  ),
171
172
  /* @__PURE__ */ r(
172
- o,
173
+ t,
173
174
  {
174
175
  value: "zoom-bearing",
175
- className: "active:bg-selected-primary data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
176
+ className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
176
177
  children: [
177
178
  /* @__PURE__ */ e(N, { size: 16 }),
178
179
  "Newest Data"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spear-ai/spectral",
3
- "version": "1.3.33",
3
+ "version": "1.3.34",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "repository": {