@burdenoff/microfe-bigconsole 2026.1121.4 → 2026.1122.1
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/bigconsole/components/kpi-change/KpiChangeDialog.d.ts +8 -0
- package/dist/bigconsole/components/kpi-change/KpiChangeDialog.js +28 -0
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.d.ts +10 -0
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +241 -0
- package/dist/bigconsole/components/kpi-change/index.d.ts +3 -0
- package/dist/bigconsole/components/kpi-change/kpiChangeModel.d.ts +114 -0
- package/dist/bigconsole/components/kpi-change/kpiChangeModel.js +89 -0
- package/dist/bigconsole/components/preview/AiPreviewContent.js +2 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +4 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.js +90 -75
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +6 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +325 -306
- package/dist/bigconsole/hooks/index.d.ts +1 -0
- package/dist/bigconsole/hooks/index.js +1 -0
- package/dist/bigconsole/hooks/useKpiChange.d.ts +14 -0
- package/dist/bigconsole/hooks/useKpiChange.js +60 -0
- package/dist/generated/wspace-operations.d.ts +294 -0
- package/dist/generated/wspace-operations.js +616 -78
- package/package.json +1 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { WidgetMenu as e } from "./WidgetMenu.js";
|
|
2
2
|
import { memo as t } from "react";
|
|
3
|
-
import { MessageSquare as n, Sparkles as r } from "lucide-react";
|
|
4
|
-
import { jsx as
|
|
3
|
+
import { MessageSquare as n, Sparkles as r, TrendingUp as i } from "lucide-react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
// src/bigconsole/components/widgets/WidgetHeader.tsx
|
|
6
|
-
var
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
var s = t(function({ previewOnly: t = !1, widget: s, definition: l, isSelected: u, isEditMode: d, isLoading: f, isSampleData: p, timeUntilRefresh: m, hasDrilldown: h, onRefresh: g, onExportCSV: _, onExportPNG: v, onSpotOutliers: y, onDrilldown: b, onToggleComments: x, commentsOpen: S, commentCount: C = 0, onExplain: w, explainOpen: T, onReconcile: E, onWhyDidItMove: D, whyDidItMoveOpen: O }) {
|
|
7
|
+
return /* @__PURE__ */ o("div", {
|
|
8
8
|
className: `
|
|
9
9
|
flex min-w-0 items-center justify-between gap-1
|
|
10
10
|
px-3 py-2 sm:px-4
|
|
11
11
|
border-b border-[var(--color-border-subtle)]
|
|
12
|
-
${
|
|
12
|
+
${u && d ? "bg-action-primary-bg/5" : "bg-bg-surface"}
|
|
13
13
|
`,
|
|
14
|
-
children: [/* @__PURE__ */
|
|
14
|
+
children: [/* @__PURE__ */ o("div", {
|
|
15
15
|
className: `
|
|
16
16
|
widget-drag-handle
|
|
17
17
|
flex items-center gap-2 min-w-0 flex-1
|
|
18
|
-
${
|
|
18
|
+
${d ? "cursor-move" : ""}
|
|
19
19
|
`,
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ a("div", {
|
|
22
22
|
className: `
|
|
23
23
|
flex-shrink-0 h-icon-md w-icon-md
|
|
24
24
|
text-text-secondary
|
|
25
|
-
${
|
|
25
|
+
${f ? "animate-pulse" : ""}
|
|
26
26
|
`,
|
|
27
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ a(c, { name: l.icon })
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ a("h3", {
|
|
30
30
|
className: "\n truncate text-sm font-semibold leading-tight tracking-tight\n text-text-primary\n ",
|
|
31
|
-
title:
|
|
32
|
-
children:
|
|
31
|
+
title: s.title,
|
|
32
|
+
children: s.title
|
|
33
33
|
}),
|
|
34
|
-
|
|
34
|
+
p && /* @__PURE__ */ a("span", {
|
|
35
35
|
className: "\n flex-shrink-0\n px-1.5 py-0.5\n rounded\n text-[10px] font-medium uppercase tracking-wide\n bg-status-info-bg-subtle text-status-info-text\n ",
|
|
36
36
|
title: "Example values supplied with this widget. Connect a data source to see your own data.",
|
|
37
37
|
children: "Sample data"
|
|
38
38
|
}),
|
|
39
|
-
|
|
39
|
+
h && /* @__PURE__ */ o("span", {
|
|
40
40
|
className: "\n flex-shrink-0 inline-flex items-center gap-0.5\n px-1.5 py-0.5 rounded-md\n bg-action-primary-bg/10 text-action-primary-text\n text-[10px] font-medium\n ",
|
|
41
41
|
title: "Click data to drill down",
|
|
42
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ a("svg", {
|
|
43
43
|
className: "w-2.5 h-2.5",
|
|
44
44
|
fill: "none",
|
|
45
45
|
stroke: "currentColor",
|
|
46
46
|
viewBox: "0 0 24 24",
|
|
47
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ a("path", {
|
|
48
48
|
strokeLinecap: "round",
|
|
49
49
|
strokeLinejoin: "round",
|
|
50
50
|
strokeWidth: 2.5,
|
|
@@ -52,28 +52,28 @@ var o = t(function({ previewOnly: t = !1, widget: o, definition: c, isSelected:
|
|
|
52
52
|
})
|
|
53
53
|
}), "Drilldown"]
|
|
54
54
|
}),
|
|
55
|
-
|
|
55
|
+
m && !d && /* @__PURE__ */ a("span", {
|
|
56
56
|
className: "\n flex-shrink-0 text-xs\n text-text-secondary\n tabular-nums\n ",
|
|
57
57
|
title: "Time until next refresh",
|
|
58
|
-
children:
|
|
58
|
+
children: m
|
|
59
59
|
})
|
|
60
60
|
]
|
|
61
|
-
}), /* @__PURE__ */
|
|
61
|
+
}), /* @__PURE__ */ o("div", {
|
|
62
62
|
className: "flex min-w-0 shrink items-center gap-0.5",
|
|
63
63
|
children: [
|
|
64
|
-
|
|
64
|
+
b && !d && /* @__PURE__ */ a("button", {
|
|
65
65
|
type: "button",
|
|
66
66
|
onClick: (e) => {
|
|
67
|
-
e.stopPropagation(),
|
|
67
|
+
e.stopPropagation(), b();
|
|
68
68
|
},
|
|
69
69
|
className: "\n p-1.5 rounded-md\n text-text-secondary\n hover:text-text-primary\n hover:bg-bg-sunken\n transition-colors\n ",
|
|
70
70
|
title: "Drill down to details",
|
|
71
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ a("svg", {
|
|
72
72
|
className: "w-4 h-4",
|
|
73
73
|
fill: "none",
|
|
74
74
|
stroke: "currentColor",
|
|
75
75
|
viewBox: "0 0 24 24",
|
|
76
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ a("path", {
|
|
77
77
|
strokeLinecap: "round",
|
|
78
78
|
strokeLinejoin: "round",
|
|
79
79
|
strokeWidth: 2,
|
|
@@ -81,12 +81,12 @@ var o = t(function({ previewOnly: t = !1, widget: o, definition: c, isSelected:
|
|
|
81
81
|
})
|
|
82
82
|
})
|
|
83
83
|
}),
|
|
84
|
-
|
|
84
|
+
g && /* @__PURE__ */ a("button", {
|
|
85
85
|
type: "button",
|
|
86
86
|
onClick: (e) => {
|
|
87
|
-
e.stopPropagation(),
|
|
87
|
+
e.stopPropagation(), g();
|
|
88
88
|
},
|
|
89
|
-
disabled:
|
|
89
|
+
disabled: f,
|
|
90
90
|
className: `
|
|
91
91
|
p-1.5 rounded-md
|
|
92
92
|
text-text-secondary
|
|
@@ -94,15 +94,15 @@ var o = t(function({ previewOnly: t = !1, widget: o, definition: c, isSelected:
|
|
|
94
94
|
hover:bg-bg-sunken
|
|
95
95
|
transition-colors
|
|
96
96
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
97
|
-
${
|
|
97
|
+
${f ? "animate-spin" : ""}
|
|
98
98
|
`,
|
|
99
99
|
title: "Refresh data",
|
|
100
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ a("svg", {
|
|
101
101
|
className: "w-4 h-4",
|
|
102
102
|
fill: "none",
|
|
103
103
|
stroke: "currentColor",
|
|
104
104
|
viewBox: "0 0 24 24",
|
|
105
|
-
children: /* @__PURE__ */
|
|
105
|
+
children: /* @__PURE__ */ a("path", {
|
|
106
106
|
strokeLinecap: "round",
|
|
107
107
|
strokeLinejoin: "round",
|
|
108
108
|
strokeWidth: 2,
|
|
@@ -110,187 +110,202 @@ var o = t(function({ previewOnly: t = !1, widget: o, definition: c, isSelected:
|
|
|
110
110
|
})
|
|
111
111
|
})
|
|
112
112
|
}),
|
|
113
|
-
|
|
113
|
+
x && /* @__PURE__ */ o("button", {
|
|
114
114
|
type: "button",
|
|
115
115
|
onClick: (e) => {
|
|
116
|
-
e.stopPropagation(),
|
|
116
|
+
e.stopPropagation(), x();
|
|
117
117
|
},
|
|
118
118
|
"aria-label": "Toggle comments",
|
|
119
|
-
"aria-pressed":
|
|
119
|
+
"aria-pressed": S,
|
|
120
120
|
className: `
|
|
121
121
|
relative p-1.5 rounded-md
|
|
122
122
|
transition-colors
|
|
123
|
-
${
|
|
123
|
+
${S ? "text-action-primary-text bg-action-primary-bg/10" : "text-text-secondary hover:text-text-primary hover:bg-bg-sunken"}
|
|
124
124
|
`,
|
|
125
125
|
title: "Comments",
|
|
126
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ a(n, { className: "w-4 h-4" }), C > 0 && /* @__PURE__ */ a("span", {
|
|
127
127
|
className: "absolute -top-0.5 -right-0.5 min-w-[14px] h-[14px] px-0.5 rounded-full bg-action-primary-bg text-action-primary-text text-[9px] font-semibold leading-[14px] text-center tabular-nums",
|
|
128
|
-
children:
|
|
128
|
+
children: C > 99 ? "99+" : C
|
|
129
129
|
})]
|
|
130
130
|
}),
|
|
131
|
-
|
|
131
|
+
w && !d && /* @__PURE__ */ a("button", {
|
|
132
132
|
type: "button",
|
|
133
133
|
onClick: (e) => {
|
|
134
|
-
e.stopPropagation(),
|
|
134
|
+
e.stopPropagation(), w();
|
|
135
135
|
},
|
|
136
136
|
"aria-label": "Explain this widget",
|
|
137
|
-
"aria-pressed":
|
|
137
|
+
"aria-pressed": T,
|
|
138
138
|
className: `
|
|
139
139
|
p-1.5 rounded-md
|
|
140
140
|
transition-colors
|
|
141
|
-
${
|
|
141
|
+
${T ? "text-action-primary-text bg-action-primary-bg/10" : "text-text-secondary hover:text-text-primary hover:bg-bg-sunken"}
|
|
142
142
|
`,
|
|
143
143
|
title: "Explain this widget",
|
|
144
|
-
children: /* @__PURE__ */
|
|
144
|
+
children: /* @__PURE__ */ a(r, { className: "w-4 h-4" })
|
|
145
|
+
}),
|
|
146
|
+
D && !d && /* @__PURE__ */ a("button", {
|
|
147
|
+
type: "button",
|
|
148
|
+
onClick: (e) => {
|
|
149
|
+
e.stopPropagation(), D();
|
|
150
|
+
},
|
|
151
|
+
"aria-label": "Why did it move?",
|
|
152
|
+
"aria-haspopup": "dialog",
|
|
153
|
+
className: `
|
|
154
|
+
p-1.5 rounded-md
|
|
155
|
+
transition-colors
|
|
156
|
+
${O ? "text-action-primary-text bg-action-primary-bg/10" : "text-text-secondary hover:text-text-primary hover:bg-bg-sunken"}
|
|
157
|
+
`,
|
|
158
|
+
title: "Why did it move?",
|
|
159
|
+
children: /* @__PURE__ */ a(i, { className: "w-4 h-4" })
|
|
145
160
|
}),
|
|
146
|
-
!t && /* @__PURE__ */
|
|
161
|
+
!t && /* @__PURE__ */ a("div", {
|
|
147
162
|
className: "block",
|
|
148
|
-
children: /* @__PURE__ */
|
|
149
|
-
widget:
|
|
150
|
-
isEditMode:
|
|
151
|
-
onRefresh:
|
|
152
|
-
onExportCSV:
|
|
153
|
-
onExportPNG:
|
|
154
|
-
onSpotOutliers:
|
|
155
|
-
onReconcile:
|
|
163
|
+
children: /* @__PURE__ */ a(e, {
|
|
164
|
+
widget: s,
|
|
165
|
+
isEditMode: d,
|
|
166
|
+
onRefresh: g,
|
|
167
|
+
onExportCSV: _,
|
|
168
|
+
onExportPNG: v,
|
|
169
|
+
onSpotOutliers: y,
|
|
170
|
+
onReconcile: d ? void 0 : E
|
|
156
171
|
})
|
|
157
172
|
})
|
|
158
173
|
]
|
|
159
174
|
})]
|
|
160
175
|
});
|
|
161
|
-
}),
|
|
176
|
+
}), c = ({ name: e, className: t = "" }) => {
|
|
162
177
|
let n = {
|
|
163
|
-
TrendingUp: /* @__PURE__ */
|
|
178
|
+
TrendingUp: /* @__PURE__ */ a("svg", {
|
|
164
179
|
fill: "none",
|
|
165
180
|
stroke: "currentColor",
|
|
166
181
|
viewBox: "0 0 24 24",
|
|
167
182
|
className: t,
|
|
168
|
-
children: /* @__PURE__ */
|
|
183
|
+
children: /* @__PURE__ */ a("path", {
|
|
169
184
|
strokeLinecap: "round",
|
|
170
185
|
strokeLinejoin: "round",
|
|
171
186
|
strokeWidth: 2,
|
|
172
187
|
d: "M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"
|
|
173
188
|
})
|
|
174
189
|
}),
|
|
175
|
-
BarChart3: /* @__PURE__ */
|
|
190
|
+
BarChart3: /* @__PURE__ */ a("svg", {
|
|
176
191
|
fill: "none",
|
|
177
192
|
stroke: "currentColor",
|
|
178
193
|
viewBox: "0 0 24 24",
|
|
179
194
|
className: t,
|
|
180
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ a("path", {
|
|
181
196
|
strokeLinecap: "round",
|
|
182
197
|
strokeLinejoin: "round",
|
|
183
198
|
strokeWidth: 2,
|
|
184
199
|
d: "M18 20V10M12 20V4M6 20v-6"
|
|
185
200
|
})
|
|
186
201
|
}),
|
|
187
|
-
LineChart: /* @__PURE__ */
|
|
202
|
+
LineChart: /* @__PURE__ */ a("svg", {
|
|
188
203
|
fill: "none",
|
|
189
204
|
stroke: "currentColor",
|
|
190
205
|
viewBox: "0 0 24 24",
|
|
191
206
|
className: t,
|
|
192
|
-
children: /* @__PURE__ */
|
|
207
|
+
children: /* @__PURE__ */ a("path", {
|
|
193
208
|
strokeLinecap: "round",
|
|
194
209
|
strokeLinejoin: "round",
|
|
195
210
|
strokeWidth: 2,
|
|
196
211
|
d: "M7 20l4-16m2 16l4-16M6 9h14M4 15h14"
|
|
197
212
|
})
|
|
198
213
|
}),
|
|
199
|
-
Table: /* @__PURE__ */
|
|
214
|
+
Table: /* @__PURE__ */ a("svg", {
|
|
200
215
|
fill: "none",
|
|
201
216
|
stroke: "currentColor",
|
|
202
217
|
viewBox: "0 0 24 24",
|
|
203
218
|
className: t,
|
|
204
|
-
children: /* @__PURE__ */
|
|
219
|
+
children: /* @__PURE__ */ a("path", {
|
|
205
220
|
strokeLinecap: "round",
|
|
206
221
|
strokeLinejoin: "round",
|
|
207
222
|
strokeWidth: 2,
|
|
208
223
|
d: "M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"
|
|
209
224
|
})
|
|
210
225
|
}),
|
|
211
|
-
Gauge: /* @__PURE__ */
|
|
226
|
+
Gauge: /* @__PURE__ */ a("svg", {
|
|
212
227
|
fill: "none",
|
|
213
228
|
stroke: "currentColor",
|
|
214
229
|
viewBox: "0 0 24 24",
|
|
215
230
|
className: t,
|
|
216
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ a("path", {
|
|
217
232
|
strokeLinecap: "round",
|
|
218
233
|
strokeLinejoin: "round",
|
|
219
234
|
strokeWidth: 2,
|
|
220
235
|
d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
221
236
|
})
|
|
222
237
|
}),
|
|
223
|
-
Activity: /* @__PURE__ */
|
|
238
|
+
Activity: /* @__PURE__ */ a("svg", {
|
|
224
239
|
fill: "none",
|
|
225
240
|
stroke: "currentColor",
|
|
226
241
|
viewBox: "0 0 24 24",
|
|
227
242
|
className: t,
|
|
228
|
-
children: /* @__PURE__ */
|
|
243
|
+
children: /* @__PURE__ */ a("path", {
|
|
229
244
|
strokeLinecap: "round",
|
|
230
245
|
strokeLinejoin: "round",
|
|
231
246
|
strokeWidth: 2,
|
|
232
247
|
d: "M22 12h-4l-3 9L9 3l-3 9H2"
|
|
233
248
|
})
|
|
234
249
|
}),
|
|
235
|
-
List: /* @__PURE__ */
|
|
250
|
+
List: /* @__PURE__ */ a("svg", {
|
|
236
251
|
fill: "none",
|
|
237
252
|
stroke: "currentColor",
|
|
238
253
|
viewBox: "0 0 24 24",
|
|
239
254
|
className: t,
|
|
240
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ a("path", {
|
|
241
256
|
strokeLinecap: "round",
|
|
242
257
|
strokeLinejoin: "round",
|
|
243
258
|
strokeWidth: 2,
|
|
244
259
|
d: "M4 6h16M4 10h16M4 14h16M4 18h16"
|
|
245
260
|
})
|
|
246
261
|
}),
|
|
247
|
-
PieChart: /* @__PURE__ */
|
|
262
|
+
PieChart: /* @__PURE__ */ o("svg", {
|
|
248
263
|
fill: "none",
|
|
249
264
|
stroke: "currentColor",
|
|
250
265
|
viewBox: "0 0 24 24",
|
|
251
266
|
className: t,
|
|
252
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ a("path", {
|
|
253
268
|
strokeLinecap: "round",
|
|
254
269
|
strokeLinejoin: "round",
|
|
255
270
|
strokeWidth: 2,
|
|
256
271
|
d: "M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
|
|
257
|
-
}), /* @__PURE__ */
|
|
272
|
+
}), /* @__PURE__ */ a("path", {
|
|
258
273
|
strokeLinecap: "round",
|
|
259
274
|
strokeLinejoin: "round",
|
|
260
275
|
strokeWidth: 2,
|
|
261
276
|
d: "M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"
|
|
262
277
|
})]
|
|
263
278
|
}),
|
|
264
|
-
BarChart: /* @__PURE__ */
|
|
279
|
+
BarChart: /* @__PURE__ */ a("svg", {
|
|
265
280
|
fill: "none",
|
|
266
281
|
stroke: "currentColor",
|
|
267
282
|
viewBox: "0 0 24 24",
|
|
268
283
|
className: t,
|
|
269
|
-
children: /* @__PURE__ */
|
|
284
|
+
children: /* @__PURE__ */ a("path", {
|
|
270
285
|
strokeLinecap: "round",
|
|
271
286
|
strokeLinejoin: "round",
|
|
272
287
|
strokeWidth: 2,
|
|
273
288
|
d: "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"
|
|
274
289
|
})
|
|
275
290
|
}),
|
|
276
|
-
AreaChart: /* @__PURE__ */
|
|
291
|
+
AreaChart: /* @__PURE__ */ a("svg", {
|
|
277
292
|
fill: "none",
|
|
278
293
|
stroke: "currentColor",
|
|
279
294
|
viewBox: "0 0 24 24",
|
|
280
295
|
className: t,
|
|
281
|
-
children: /* @__PURE__ */
|
|
296
|
+
children: /* @__PURE__ */ a("path", {
|
|
282
297
|
strokeLinecap: "round",
|
|
283
298
|
strokeLinejoin: "round",
|
|
284
299
|
strokeWidth: 2,
|
|
285
300
|
d: "M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4v16"
|
|
286
301
|
})
|
|
287
302
|
})
|
|
288
|
-
}, r = /* @__PURE__ */
|
|
303
|
+
}, r = /* @__PURE__ */ a("svg", {
|
|
289
304
|
fill: "none",
|
|
290
305
|
stroke: "currentColor",
|
|
291
306
|
viewBox: "0 0 24 24",
|
|
292
307
|
className: t,
|
|
293
|
-
children: /* @__PURE__ */
|
|
308
|
+
children: /* @__PURE__ */ a("path", {
|
|
294
309
|
strokeLinecap: "round",
|
|
295
310
|
strokeLinejoin: "round",
|
|
296
311
|
strokeWidth: 2,
|
|
@@ -299,4 +314,4 @@ var o = t(function({ previewOnly: t = !1, widget: o, definition: c, isSelected:
|
|
|
299
314
|
});
|
|
300
315
|
return n[e] || r;
|
|
301
316
|
};
|
|
302
|
-
export {
|
|
317
|
+
export { s as WidgetHeader, s as default };
|
|
@@ -4,6 +4,12 @@ import { WidgetAction, ActionContext, ActionResult } from '../../renderers/types
|
|
|
4
4
|
export interface WidgetWrapperProps {
|
|
5
5
|
/** Gallery previews have no persisted widget to comment on or edit. */
|
|
6
6
|
previewOnly?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The card is shown for observation only (the assistant's preview): it still
|
|
9
|
+
* loads its data, but it does not offer actions that spend the workspace's
|
|
10
|
+
* command quota, such as "Why did it move?".
|
|
11
|
+
*/
|
|
12
|
+
observeOnly?: boolean;
|
|
7
13
|
/** The widget data */
|
|
8
14
|
widget: Widget;
|
|
9
15
|
/** Widget content to render */
|