@flamingo-stack/openframe-frontend-core 0.0.771 → 0.0.773
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/{chunk-ZYGC2A7G.cjs → chunk-2A56MLLL.cjs} +2 -2
- package/dist/{chunk-UG263H4A.cjs → chunk-3FREBLAJ.cjs} +27 -27
- package/dist/{chunk-WT5XF66W.cjs → chunk-42YLIZFD.cjs} +12 -12
- package/dist/{chunk-SETDVBMW.cjs → chunk-6LLF2QCS.cjs} +37 -37
- package/dist/{chunk-4AF5E6E5.cjs → chunk-7J4YWDT6.cjs} +3 -3
- package/dist/{chunk-ALNP25TX.cjs → chunk-7P2QXBWE.cjs} +261 -261
- package/dist/{chunk-JPOIEEFO.cjs → chunk-BMFU2CUL.cjs} +6 -6
- package/dist/{chunk-YI3CDGKM.cjs → chunk-BPAYT72L.cjs} +1 -1
- package/dist/{chunk-GX3JUXYX.cjs → chunk-HEEK42BL.cjs} +46 -46
- package/dist/{chunk-TGPHB7PC.cjs → chunk-I4ZVMNHO.cjs} +3 -3
- package/dist/{chunk-REFL3YNE.cjs → chunk-KDMWXXLE.cjs} +3 -3
- package/dist/{chunk-62P4Q4Q3.cjs → chunk-MT5Z2LSV.cjs} +43 -43
- package/dist/{chunk-L5QJZBZK.cjs → chunk-NPCFVTA2.cjs} +15 -15
- package/dist/{chunk-FT5NPAZY.cjs → chunk-NRFNZ35Z.cjs} +11 -11
- package/dist/{chunk-HFNWBNLE.cjs → chunk-SE76YGR3.cjs} +2 -2
- package/dist/{chunk-2LTJ4457.cjs → chunk-V3W56L2D.cjs} +13 -5
- package/dist/{chunk-4DMYDHCD.cjs → chunk-VW2QQKQ6.cjs} +18 -18
- package/dist/{chunk-NQ4WRB3Y.cjs → chunk-YSKX42LW.cjs} +2 -2
- package/dist/{cloud-tenants-XRXWTUGP.cjs → cloud-tenants-EE5ULFOK.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.js +7 -17
- package/dist/components/chat/hooks/use-what-to-ask.d.ts +2 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +64 -64
- package/dist/components/index.cjs +35 -35
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +14 -14
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/select.d.ts +11 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +13 -5
- package/dist/{devices-L4ER34X7.cjs → devices-EBGGHEGR.cjs} +5 -5
- package/dist/{embeddable-chat-CEAP424I.cjs → embeddable-chat-HCT4QV35.cjs} +7 -17
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-PZYA65GL.cjs → knowledge-5ZSMKKTL.cjs} +4 -4
- package/dist/{logs-GYTZWHDP.cjs → logs-GUV3BMGC.cjs} +12 -12
- package/dist/{policies-OIK7NWJ7.cjs → policies-HPMTDOAS.cjs} +8 -8
- package/dist/{remote-session-3HFVODOT.cjs → remote-session-TC3BZDBZ.cjs} +4 -4
- package/dist/{scripts-K4L3STNZ.cjs → scripts-QYYKCIUW.cjs} +11 -11
- package/dist/{software-update-RWV2RI5C.cjs → software-update-NC2KZKEI.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +15 -28
- package/src/components/chat/hooks/use-what-to-ask.ts +2 -2
- package/src/components/ui/select.tsx +28 -7
|
@@ -8,10 +8,10 @@ var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
|
|
|
8
8
|
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk7P2QXBWEcjs = require('./chunk-7P2QXBWE.cjs');
|
|
12
12
|
require('./chunk-LJT2KRE2.cjs');
|
|
13
13
|
require('./chunk-RB7VLVMD.cjs');
|
|
14
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-V3W56L2D.cjs');
|
|
15
15
|
require('./chunk-HQQE74RO.cjs');
|
|
16
16
|
require('./chunk-DEY6XXGO.cjs');
|
|
17
17
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -21,7 +21,7 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
22
|
require('./chunk-KSCEAIBS.cjs');
|
|
23
23
|
require('./chunk-C42WIUH6.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-BPAYT72L.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkILZEXCJHcjs = require('./chunk-ILZEXCJH.cjs');
|
|
@@ -1903,7 +1903,7 @@ function KnowledgeScreen(_props) {
|
|
|
1903
1903
|
const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
|
|
1904
1904
|
const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
|
|
1905
1905
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
-
|
|
1906
|
+
_chunk7P2QXBWEcjs.KnowledgeBaseArticleView,
|
|
1907
1907
|
{
|
|
1908
1908
|
...fixture.article,
|
|
1909
1909
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILZEXCJHcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
@@ -16,10 +16,10 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk7P2QXBWEcjs = require('./chunk-7P2QXBWE.cjs');
|
|
20
20
|
require('./chunk-LJT2KRE2.cjs');
|
|
21
21
|
require('./chunk-RB7VLVMD.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-V3W56L2D.cjs');
|
|
23
23
|
require('./chunk-HQQE74RO.cjs');
|
|
24
24
|
require('./chunk-DEY6XXGO.cjs');
|
|
25
25
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -31,7 +31,7 @@ require('./chunk-KSCEAIBS.cjs');
|
|
|
31
31
|
require('./chunk-C42WIUH6.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkBPAYT72Lcjs = require('./chunk-BPAYT72L.cjs');
|
|
35
35
|
require('./chunk-ILZEXCJH.cjs');
|
|
36
36
|
require('./chunk-EHJE3UWZ.cjs');
|
|
37
37
|
require('./chunk-RNLRS4ID.cjs');
|
|
@@ -1884,7 +1884,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
|
|
|
1884
1884
|
id: logId,
|
|
1885
1885
|
logId,
|
|
1886
1886
|
timestamp: displayTime(_chunkDKOLQPE7cjs.demoMinutesAgo.call(void 0, minutesAgo)),
|
|
1887
|
-
status: { label: severity, variant:
|
|
1887
|
+
status: { label: severity, variant: _chunk7P2QXBWEcjs.logSeverityVariant.call(void 0, severity) },
|
|
1888
1888
|
source: { name: toolType, toolType },
|
|
1889
1889
|
device: device2,
|
|
1890
1890
|
description: { title: summary }
|
|
@@ -1956,13 +1956,13 @@ var NO_FILTERS = {};
|
|
|
1956
1956
|
var ACTION_COLUMNS = ["copy", "quickView", "open"];
|
|
1957
1957
|
var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
|
|
1958
1958
|
var logHref = () => "#";
|
|
1959
|
-
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1959
|
+
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7P2QXBWEcjs.LogCopyIconButton, {});
|
|
1960
1960
|
function LogsScreen({ compact = false }) {
|
|
1961
1961
|
const [dock, setDock] = _react.useState.call(void 0, null);
|
|
1962
1962
|
const selected = LOGS_FIXTURE_SELECTED;
|
|
1963
1963
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
|
|
1964
1964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1965
|
-
|
|
1965
|
+
_chunk7P2QXBWEcjs.LogsPageView,
|
|
1966
1966
|
{
|
|
1967
1967
|
showHeader: false,
|
|
1968
1968
|
className: "p-[var(--spacing-system-l)]",
|
|
@@ -1970,7 +1970,7 @@ function LogsScreen({ compact = false }) {
|
|
|
1970
1970
|
onSearchChange: noop,
|
|
1971
1971
|
onOpenFilters: noop,
|
|
1972
1972
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1973
|
-
|
|
1973
|
+
_chunk7P2QXBWEcjs.LogsTableView,
|
|
1974
1974
|
{
|
|
1975
1975
|
logs: LOGS_FIXTURE_ENTRIES,
|
|
1976
1976
|
facets: LOGS_FIXTURE_FACETS,
|
|
@@ -1984,8 +1984,8 @@ function LogsScreen({ compact = false }) {
|
|
|
1984
1984
|
)
|
|
1985
1985
|
}
|
|
1986
1986
|
) }),
|
|
1987
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1988
|
-
|
|
1987
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7P2QXBWEcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1988
|
+
_chunk7P2QXBWEcjs.LogDrawer,
|
|
1989
1989
|
{
|
|
1990
1990
|
docked: true,
|
|
1991
1991
|
isOpen: true,
|
|
@@ -1997,12 +1997,12 @@ function LogsScreen({ compact = false }) {
|
|
|
1997
1997
|
{ label: "Log ID", value: selected.logId },
|
|
1998
1998
|
{
|
|
1999
1999
|
label: "Source",
|
|
2000
|
-
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2000
|
+
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7P2QXBWEcjs.ToolBadge, { toolType: _chunkBPAYT72Lcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2001
2001
|
},
|
|
2002
|
-
{ label: "Device", value:
|
|
2002
|
+
{ label: "Device", value: _chunk7P2QXBWEcjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2003
2003
|
],
|
|
2004
2004
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2005
|
-
|
|
2005
|
+
_chunk7P2QXBWEcjs.DeviceCard,
|
|
2006
2006
|
{
|
|
2007
2007
|
...LOGS_FIXTURE_DEVICE,
|
|
2008
2008
|
actions: {
|
|
@@ -10,10 +10,10 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7P2QXBWEcjs = require('./chunk-7P2QXBWE.cjs');
|
|
14
14
|
require('./chunk-LJT2KRE2.cjs');
|
|
15
15
|
require('./chunk-RB7VLVMD.cjs');
|
|
16
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-V3W56L2D.cjs');
|
|
17
17
|
require('./chunk-HQQE74RO.cjs');
|
|
18
18
|
require('./chunk-DEY6XXGO.cjs');
|
|
19
19
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -23,7 +23,7 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('./chunk-KSCEAIBS.cjs');
|
|
25
25
|
require('./chunk-C42WIUH6.cjs');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-BPAYT72L.cjs');
|
|
27
27
|
require('./chunk-ILZEXCJH.cjs');
|
|
28
28
|
require('./chunk-EHJE3UWZ.cjs');
|
|
29
29
|
require('./chunk-RNLRS4ID.cjs');
|
|
@@ -1889,14 +1889,14 @@ var POLICIES = [
|
|
|
1889
1889
|
policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
|
|
1890
1890
|
];
|
|
1891
1891
|
var POLICIES_FIXTURE = {
|
|
1892
|
-
summary:
|
|
1892
|
+
summary: _chunk7P2QXBWEcjs.computePolicySummary.call(void 0, POLICIES),
|
|
1893
1893
|
rows: POLICIES.map((item) => ({
|
|
1894
1894
|
id: item.id,
|
|
1895
1895
|
name: item.name,
|
|
1896
1896
|
description: item.description,
|
|
1897
1897
|
critical: item.critical,
|
|
1898
1898
|
severityLabel: item.critical ? "Critical" : "Low",
|
|
1899
|
-
status:
|
|
1899
|
+
status: _chunk7P2QXBWEcjs.getPolicyTableStatus.call(void 0, item),
|
|
1900
1900
|
actions: [
|
|
1901
1901
|
{ label: "Policy Details", onClick: noop },
|
|
1902
1902
|
{ label: "Delete Policy", onClick: noop }
|
|
@@ -1910,16 +1910,16 @@ var POLICIES_FIXTURE = {
|
|
|
1910
1910
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1911
1911
|
function PoliciesScreen({ compact = false }) {
|
|
1912
1912
|
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
-
|
|
1913
|
+
_chunk7P2QXBWEcjs.PoliciesTable,
|
|
1914
1914
|
{
|
|
1915
1915
|
rows: POLICIES_FIXTURE.rows,
|
|
1916
1916
|
rowAsLink: true,
|
|
1917
|
-
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1917
|
+
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7P2QXBWEcjs.DataTable.RowCount, {}),
|
|
1918
1918
|
emptyMessage: "No policies found."
|
|
1919
1919
|
}
|
|
1920
1920
|
);
|
|
1921
1921
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col gap-[var(--spacing-system-l)] bg-ods-bg p-[var(--spacing-system-l)]", children: [
|
|
1922
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1922
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7P2QXBWEcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1923
1923
|
table
|
|
1924
1924
|
] });
|
|
1925
1925
|
}
|
|
@@ -11,7 +11,7 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
15
15
|
require('./chunk-A6P6DHEZ.cjs');
|
|
16
16
|
require('./chunk-5QP3K2CE.cjs');
|
|
17
17
|
require('./chunk-LELS4XMX.cjs');
|
|
@@ -1918,7 +1918,7 @@ function TaskbarApp({ icon, active = false }) {
|
|
|
1918
1918
|
);
|
|
1919
1919
|
}
|
|
1920
1920
|
function RemoteDesktopPicture({ desktop }) {
|
|
1921
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${
|
|
1921
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${_chunkV3W56L2Dcjs.DEVICE_WALLPAPER_CLASS}`, children: [
|
|
1922
1922
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative min-h-0 flex-1", children: [
|
|
1923
1923
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "absolute left-[var(--spacing-system-sf)] top-[var(--spacing-system-sf)] hidden flex-col gap-[var(--spacing-system-sf)] content-md:flex", children: [
|
|
1924
1924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesktopShortcut, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYHH5EIOcjs.TrashIcon, { className: "h-5 w-5" }), label: "Recycle Bin" }),
|
|
@@ -1982,7 +1982,7 @@ function RemoteSessionScreen({ compact = false }) {
|
|
|
1982
1982
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col bg-ods-bg", children: [
|
|
1983
1983
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[var(--spacing-system-l)] flex-shrink-0" }),
|
|
1984
1984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1985
|
-
|
|
1985
|
+
_chunkV3W56L2Dcjs.RemoteDesktopView,
|
|
1986
1986
|
{
|
|
1987
1987
|
...fixture.view,
|
|
1988
1988
|
onEnterFullscreen: noop,
|
|
@@ -1993,7 +1993,7 @@ function RemoteSessionScreen({ compact = false }) {
|
|
|
1993
1993
|
screen: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteDesktopPicture, { desktop: fixture.desktop }),
|
|
1994
1994
|
chat: compact ? null : (
|
|
1995
1995
|
// The side column needs the room of the wide layout; a narrow frame keeps the screen alone.
|
|
1996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1996
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV3W56L2Dcjs.RemoteDesktopChatPanel, { ...fixture.chat, sending: false, onSend: keepDraft, variant: "side" }) })
|
|
1997
1997
|
)
|
|
1998
1998
|
}
|
|
1999
1999
|
) })
|
|
@@ -13,12 +13,12 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk7P2QXBWEcjs = require('./chunk-7P2QXBWE.cjs');
|
|
17
17
|
require('./chunk-LJT2KRE2.cjs');
|
|
18
18
|
require('./chunk-RB7VLVMD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
22
22
|
require('./chunk-HQQE74RO.cjs');
|
|
23
23
|
require('./chunk-DEY6XXGO.cjs');
|
|
24
24
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -28,7 +28,7 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
28
28
|
require('./chunk-MZ4KBSH7.cjs');
|
|
29
29
|
require('./chunk-KSCEAIBS.cjs');
|
|
30
30
|
require('./chunk-C42WIUH6.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-BPAYT72L.cjs');
|
|
32
32
|
require('./chunk-ILZEXCJH.cjs');
|
|
33
33
|
require('./chunk-EHJE3UWZ.cjs');
|
|
34
34
|
require('./chunk-RNLRS4ID.cjs');
|
|
@@ -1993,8 +1993,8 @@ function buildScriptsFixture(cast) {
|
|
|
1993
1993
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1994
1994
|
var WIDE_HIDDEN_COLUMNS = ["result", "open"];
|
|
1995
1995
|
var COMPACT_COLUMNS = [
|
|
1996
|
-
{ ...
|
|
1997
|
-
|
|
1996
|
+
{ ..._chunk7P2QXBWEcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
1997
|
+
_chunk7P2QXBWEcjs.EXECUTION_COLUMNS.status
|
|
1998
1998
|
];
|
|
1999
1999
|
var COMPACT_ROWS = 4;
|
|
2000
2000
|
var TOKEN_CLASS = {
|
|
@@ -2044,16 +2044,16 @@ function ScriptCodePicture({ script }) {
|
|
|
2044
2044
|
children: [
|
|
2045
2045
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)] border-b border-ods-border p-[var(--spacing-system-m)]", children: [
|
|
2046
2046
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2047
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2047
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV3W56L2Dcjs.TruncateText, { variant: "h4", children: script.name }),
|
|
2048
2048
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h6", children: [
|
|
2049
2049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPKKRHUMcjs.TimerIcon, { className: "size-4 text-ods-text-secondary" }),
|
|
2050
2050
|
`${schedule.repeat} ${schedule.time} \xB7 ${schedule.deviceCount} devices`
|
|
2051
2051
|
] })
|
|
2052
2052
|
] }),
|
|
2053
2053
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2054
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2054
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV3W56L2Dcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
|
|
2055
2055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2056
|
-
|
|
2056
|
+
_chunk7P2QXBWEcjs.ScriptShellBadge,
|
|
2057
2057
|
{
|
|
2058
2058
|
value: script.shellType,
|
|
2059
2059
|
className: "shrink-0 text-ods-text-secondary text-h6",
|
|
@@ -2077,7 +2077,7 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2077
2077
|
return (
|
|
2078
2078
|
// Four runs of the card's row height fill the frame; the padding is what is left round them.
|
|
2079
2079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-hidden bg-ods-bg p-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2080
|
-
|
|
2080
|
+
_chunk7P2QXBWEcjs.ScriptExecutionsTable,
|
|
2081
2081
|
{
|
|
2082
2082
|
rows: fixture.executions.slice(0, COMPACT_ROWS),
|
|
2083
2083
|
columns: COMPACT_COLUMNS,
|
|
@@ -2087,13 +2087,13 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2087
2087
|
) })
|
|
2088
2088
|
);
|
|
2089
2089
|
}
|
|
2090
|
-
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2090
|
+
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7P2QXBWEcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
|
|
2091
2091
|
return (
|
|
2092
2092
|
// The frame's tighter padding and no header row: the output opened under a run needs the height.
|
|
2093
2093
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full gap-[var(--spacing-system-m)] overflow-hidden bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
2094
2094
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
|
|
2095
2095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2096
|
-
|
|
2096
|
+
_chunk7P2QXBWEcjs.ScriptExecutionsTable,
|
|
2097
2097
|
{
|
|
2098
2098
|
rows: fixture.executions,
|
|
2099
2099
|
hideColumns: WIDE_HIDDEN_COLUMNS,
|
|
@@ -15,12 +15,12 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk7P2QXBWEcjs = require('./chunk-7P2QXBWE.cjs');
|
|
19
19
|
require('./chunk-LJT2KRE2.cjs');
|
|
20
20
|
require('./chunk-RB7VLVMD.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
24
24
|
require('./chunk-HQQE74RO.cjs');
|
|
25
25
|
require('./chunk-DEY6XXGO.cjs');
|
|
26
26
|
require('./chunk-XVFM6SJA.cjs');
|
|
@@ -30,7 +30,7 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
30
30
|
require('./chunk-MZ4KBSH7.cjs');
|
|
31
31
|
require('./chunk-KSCEAIBS.cjs');
|
|
32
32
|
require('./chunk-C42WIUH6.cjs');
|
|
33
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-BPAYT72L.cjs');
|
|
34
34
|
require('./chunk-ILZEXCJH.cjs');
|
|
35
35
|
require('./chunk-EHJE3UWZ.cjs');
|
|
36
36
|
require('./chunk-RNLRS4ID.cjs');
|
|
@@ -1918,14 +1918,14 @@ var noop = () => {
|
|
|
1918
1918
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
1919
1919
|
function StaticPackageField({ value }) {
|
|
1920
1920
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1921
|
-
|
|
1921
|
+
_chunkV3W56L2Dcjs.Autocomplete,
|
|
1922
1922
|
{
|
|
1923
|
-
label:
|
|
1923
|
+
label: _chunk7P2QXBWEcjs.PACKAGE_SEARCH_LABEL,
|
|
1924
1924
|
labelVariant: "large",
|
|
1925
1925
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1926
1926
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1927
1927
|
onChange: noop,
|
|
1928
|
-
placeholder:
|
|
1928
|
+
placeholder: _chunk7P2QXBWEcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1929
1929
|
}
|
|
1930
1930
|
);
|
|
1931
1931
|
}
|
|
@@ -1939,7 +1939,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1939
1939
|
[fixture.devices, fixture.selectedIds]
|
|
1940
1940
|
);
|
|
1941
1941
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1942
|
-
|
|
1942
|
+
_chunk7P2QXBWEcjs.SoftwareActionForm,
|
|
1943
1943
|
{
|
|
1944
1944
|
action: fixture.action,
|
|
1945
1945
|
showHeader: false,
|
|
@@ -1951,7 +1951,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1951
1951
|
initialValues: fixture.initialValues,
|
|
1952
1952
|
renderPackageSearch,
|
|
1953
1953
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1954
|
-
|
|
1954
|
+
_chunk7P2QXBWEcjs.DeviceSelector,
|
|
1955
1955
|
{
|
|
1956
1956
|
devices: selected,
|
|
1957
1957
|
loading: false,
|
package/package.json
CHANGED
|
@@ -500,9 +500,9 @@ export interface EmbeddableChatProps {
|
|
|
500
500
|
onWhatToAsk?: () => void;
|
|
501
501
|
/**
|
|
502
502
|
* v2: the "What to ask?" exchange the list's entry shows (when no
|
|
503
|
-
* `onWhatToAsk` takes it over):
|
|
504
|
-
*
|
|
505
|
-
* chip sends its prompt in that chat, like a quick action.
|
|
503
|
+
* `onWhatToAsk` takes it over): every click opens a new chat holding it,
|
|
504
|
+
* never the open conversation. Local - never sent, never stored. Picking a
|
|
505
|
+
* chip sends its prompt in that new chat, like a quick action.
|
|
506
506
|
*
|
|
507
507
|
* A function is called on each click and the exchange appears, whole, once
|
|
508
508
|
* its promise settles (prompts built from live data, e.g. the workspace's
|
|
@@ -2315,30 +2315,20 @@ function EmbeddableChatInner({
|
|
|
2315
2315
|
(pendingApprovals?.length ?? 0) > 0 ||
|
|
2316
2316
|
awaitsDecision(hostMessages);
|
|
2317
2317
|
|
|
2318
|
-
// "What to ask Mingo?" with `whatToAsk`:
|
|
2319
|
-
//
|
|
2320
|
-
//
|
|
2321
|
-
//
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
const showWhatToAsk = (content: WhatToAskContent, newChat = false) => {
|
|
2326
|
-
if (!newChat && activeDialogId && hasConversation && !isViewingArchived && !isMessagesLoading && !isChatBlocked) {
|
|
2327
|
-
whatToAsk.ask('current', content);
|
|
2328
|
-
return;
|
|
2329
|
-
}
|
|
2330
|
-
const isUnsentNewChat = activeDialogId == null && hostMessages.length === 0 && !isViewingArchived;
|
|
2331
|
-
if (!isUnsentNewChat) {
|
|
2332
|
-
whatToAsk.clearDraft();
|
|
2333
|
-
resetToNewChat();
|
|
2334
|
-
}
|
|
2318
|
+
// "What to ask Mingo?" with `whatToAsk`: every click opens a new chat with
|
|
2319
|
+
// the exchange - never the open conversation, whatever its state, and not
|
|
2320
|
+
// the new chat already holding one (its exchange is dropped for a fresh
|
|
2321
|
+
// one). The prompts always start a conversation of their own.
|
|
2322
|
+
const showWhatToAsk = (content: WhatToAskContent) => {
|
|
2323
|
+
whatToAsk.clearDraft();
|
|
2324
|
+
resetToNewChat();
|
|
2335
2325
|
setComposeOpen(true);
|
|
2336
2326
|
whatToAsk.ask('draft', content);
|
|
2337
2327
|
};
|
|
2338
2328
|
|
|
2339
2329
|
// A "What to ask?" chip: its prompt goes out on its own, like a quick action
|
|
2340
2330
|
// (whatever is staged in the composer stays staged), into the chat the chip
|
|
2341
|
-
// sits in - not while that chat is blocked.
|
|
2331
|
+
// sits in - not while that chat is blocked. The first send from the new chat
|
|
2342
2332
|
// creates the dialog the exchange moves to.
|
|
2343
2333
|
useEffect(() => {
|
|
2344
2334
|
sendPromptRef.current = text => {
|
|
@@ -2356,16 +2346,16 @@ function EmbeddableChatInner({
|
|
|
2356
2346
|
showWhatToAskRef.current = showWhatToAsk;
|
|
2357
2347
|
});
|
|
2358
2348
|
const whatToAskPendingRef = useRef(false);
|
|
2359
|
-
const requestWhatToAsk = (
|
|
2349
|
+
const requestWhatToAsk = () => {
|
|
2360
2350
|
if (!whatToAskContent) return;
|
|
2361
2351
|
if (typeof whatToAskContent !== 'function') {
|
|
2362
|
-
showWhatToAsk(whatToAskContent
|
|
2352
|
+
showWhatToAsk(whatToAskContent);
|
|
2363
2353
|
return;
|
|
2364
2354
|
}
|
|
2365
2355
|
if (whatToAskPendingRef.current) return;
|
|
2366
2356
|
whatToAskPendingRef.current = true;
|
|
2367
2357
|
whatToAskContent()
|
|
2368
|
-
.then(content => showWhatToAskRef.current(content
|
|
2358
|
+
.then(content => showWhatToAskRef.current(content))
|
|
2369
2359
|
.catch((err: unknown) => console.error('[EmbeddableChat] whatToAsk failed:', err))
|
|
2370
2360
|
.finally(() => {
|
|
2371
2361
|
whatToAskPendingRef.current = false;
|
|
@@ -2542,11 +2532,8 @@ function EmbeddableChatInner({
|
|
|
2542
2532
|
onOpenArchive: headerOnOpenArchive && (archiveOpen ? closeArchive : headerOnOpenArchive),
|
|
2543
2533
|
archiveActive: archiveOpen,
|
|
2544
2534
|
// The suggestions a new chat opens on, unless the host has a surface of its own.
|
|
2545
|
-
// From the archive list no chat is on screen, even though the one open
|
|
2546
|
-
// before it is still the active dialog: that click opens a new chat.
|
|
2547
2535
|
onWhatToAsk: () => {
|
|
2548
|
-
|
|
2549
|
-
leaveArchiveThen(onWhatToAsk ?? (whatToAskContent ? () => requestWhatToAsk(fromArchive) : handleNewChat))();
|
|
2536
|
+
leaveArchiveThen(onWhatToAsk ?? (whatToAskContent ? requestWhatToAsk : handleNewChat))();
|
|
2550
2537
|
},
|
|
2551
2538
|
statusOf: dialogStatusOf,
|
|
2552
2539
|
onRequestRename: mingoCaps.canRename ? setRenameTarget : undefined,
|
|
@@ -165,8 +165,8 @@ function exchangeMessages(
|
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Whether the thread waits on the user before it can go on: an approval or an
|
|
168
|
-
* escalation offer nobody has answered. "What to ask?"
|
|
169
|
-
*
|
|
168
|
+
* escalation offer nobody has answered. A "What to ask?" chip does not send
|
|
169
|
+
* then: the conversation cannot take a message.
|
|
170
170
|
*/
|
|
171
171
|
export function awaitsDecision(messages: readonly Message[]): boolean {
|
|
172
172
|
return messages.some(
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
4
|
import { ChevronDown, ChevronUp } from 'lucide-react';
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ComponentRef, type ElementRef, forwardRef } from 'react';
|
|
5
|
+
import { type ComponentPropsWithoutRef, type ComponentRef, type ElementRef, forwardRef, type ReactNode } from 'react';
|
|
6
6
|
import { cn } from '../../utils/cn';
|
|
7
7
|
import { Chevron02DownIcon } from '../icons-v2-generated/arrows/chevron-02-down-icon';
|
|
8
8
|
import { CheckIcon } from '../icons-v2-generated/signs-and-symbols/check-icon';
|
|
@@ -154,14 +154,26 @@ SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
|
154
154
|
|
|
155
155
|
const SelectItem = forwardRef<
|
|
156
156
|
ComponentRef<typeof SelectPrimitive.Item>,
|
|
157
|
-
ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
|
|
158
|
-
|
|
157
|
+
ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {
|
|
158
|
+
/**
|
|
159
|
+
* A second, secondary-coloured line under the label. The row grows to
|
|
160
|
+
* fit it and both lines wrap, so a sentence longer than the list is read
|
|
161
|
+
* in full instead of being clipped at the edge. It sits outside
|
|
162
|
+
* `ItemText`, so the closed trigger mirrors the label alone and typeahead
|
|
163
|
+
* matches the label alone.
|
|
164
|
+
*/
|
|
165
|
+
description?: ReactNode;
|
|
166
|
+
}
|
|
167
|
+
>(({ className, children, description, ...props }, ref) => (
|
|
159
168
|
<SelectPrimitive.Item
|
|
160
169
|
ref={ref}
|
|
161
170
|
className={cn(
|
|
162
|
-
'flex
|
|
171
|
+
'flex w-full cursor-pointer select-none items-center justify-between gap-2 border-b border-ods-border px-4 last:border-b-0',
|
|
163
172
|
// Typography - match trigger
|
|
164
|
-
'
|
|
173
|
+
'text-h4',
|
|
174
|
+
description == null
|
|
175
|
+
? 'h-11 whitespace-nowrap md:h-12'
|
|
176
|
+
: 'min-h-11 whitespace-normal py-[var(--spacing-system-xs)] md:min-h-12',
|
|
165
177
|
// Hover state with visible background change
|
|
166
178
|
'outline-none hover:bg-ods-bg-hover data-[highlighted]:bg-ods-bg-surface',
|
|
167
179
|
'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
@@ -170,8 +182,17 @@ const SelectItem = forwardRef<
|
|
|
170
182
|
)}
|
|
171
183
|
{...props}
|
|
172
184
|
>
|
|
173
|
-
|
|
174
|
-
|
|
185
|
+
{description == null ? (
|
|
186
|
+
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
187
|
+
) : (
|
|
188
|
+
// min-w-0 lets the column shrink below its longest line, which is what
|
|
189
|
+
// makes the lines wrap instead of pushing past the list's edge.
|
|
190
|
+
<span className="flex min-w-0 flex-col text-left">
|
|
191
|
+
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
192
|
+
<span className="text-ods-text-secondary text-h6">{description}</span>
|
|
193
|
+
</span>
|
|
194
|
+
)}
|
|
195
|
+
<SelectPrimitive.ItemIndicator className="shrink-0">
|
|
175
196
|
<CheckIcon className="text-ods-accent" size={20} />
|
|
176
197
|
</SelectPrimitive.ItemIndicator>
|
|
177
198
|
</SelectPrimitive.Item>
|