@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.830
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/build/export-map.json +1 -1
- package/dist/{chunk-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
- package/dist/{chunk-MFYSV7DE.cjs → chunk-56EP4QM2.cjs} +24 -24
- package/dist/{chunk-IHRMX3X6.cjs → chunk-5KSPG3TV.cjs} +357 -357
- package/dist/{chunk-UO6F6LLI.cjs → chunk-5LED4QHZ.cjs} +508 -451
- package/dist/{chunk-IMDYB77M.cjs → chunk-CAGQAMJ6.cjs} +21 -21
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-D2LXFMZI.cjs} +22 -22
- package/dist/{chunk-LNXRTVOY.cjs → chunk-DUGOOTER.cjs} +11 -11
- package/dist/{chunk-R3PKAIX3.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-THPAGFT6.cjs → chunk-HYCMMECU.cjs} +44 -44
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-M75723HD.cjs} +8 -8
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-HMC2IWV4.cjs → chunk-RRPID7Z7.cjs} +6 -6
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-SAW7V7CU.cjs} +13 -13
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-DWSU35QQ.cjs → chunk-ULF4ZOUM.cjs} +57 -57
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-WCCE4WF3.cjs} +50 -50
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-PRZAEPGG.cjs → chunk-WZYBUJJG.cjs} +41 -41
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-4KQQPXPM.cjs} +9 -9
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +9 -5
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/contact/index.cjs +10 -10
- package/dist/components/docs/index.cjs +13 -13
- package/dist/components/embeds/index.cjs +10 -10
- package/dist/components/faq/index.cjs +11 -11
- package/dist/components/features/index.cjs +9 -9
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +47 -43
- package/dist/components/meeting-scheduler/index.cjs +41 -41
- package/dist/components/navigation/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +13 -9
- package/dist/{devices-AW6BERJF.cjs → devices-H6C4NMIY.cjs} +10 -10
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-KUESE7P6.cjs} +104 -97
- package/dist/index.cjs +17 -13
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-O6IBO5Y5.cjs} +10 -10
- package/dist/{logs-CYA7H4KM.cjs → logs-Y2UCF24Z.cjs} +16 -16
- package/dist/{policies-M6QSFL5G.cjs → policies-J6O3RLJT.cjs} +13 -13
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-Y46ECDDP.cjs → scripts-N67MM4T2.cjs} +16 -16
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-HB7F6KNG.cjs} +13 -13
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/ui/actions-menu.tsx +35 -1
|
@@ -8,10 +8,10 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
8
8
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
11
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
12
|
+
require('./chunk-2BGLALP5.cjs');
|
|
13
|
+
require('./chunk-WWDNLMB7.cjs');
|
|
14
|
+
require('./chunk-X425BGXS.cjs');
|
|
15
15
|
require('./chunk-HQQE74RO.cjs');
|
|
16
16
|
require('./chunk-DEY6XXGO.cjs');
|
|
17
17
|
require('./chunk-AY6XJOIN.cjs');
|
|
@@ -19,14 +19,14 @@ require('./chunk-APOMNC7H.cjs');
|
|
|
19
19
|
require('./chunk-24I6RFVU.cjs');
|
|
20
20
|
require('./chunk-MZ4KBSH7.cjs');
|
|
21
21
|
require('./chunk-5SZ4ILU3.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-56EP4QM2.cjs');
|
|
23
23
|
require('./chunk-OT6P57ZS.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
27
27
|
require('./chunk-IBD2FPSX.cjs');
|
|
28
|
-
require('./chunk-
|
|
29
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-QTLWU6FY.cjs');
|
|
29
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
30
30
|
require('./chunk-6CZVQ72C.cjs');
|
|
31
31
|
require('./chunk-46547WQW.cjs');
|
|
32
32
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1908,10 +1908,10 @@ function KnowledgeScreen(_props) {
|
|
|
1908
1908
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1909
1909
|
const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
|
|
1910
1910
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
-
|
|
1911
|
+
_chunk5KSPG3TVcjs.KnowledgeBaseArticleView,
|
|
1912
1912
|
{
|
|
1913
1913
|
...fixture.article,
|
|
1914
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1914
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
1915
1915
|
}
|
|
1916
1916
|
) });
|
|
1917
1917
|
}
|
|
@@ -15,10 +15,10 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
18
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
19
|
+
require('./chunk-2BGLALP5.cjs');
|
|
20
|
+
require('./chunk-WWDNLMB7.cjs');
|
|
21
|
+
require('./chunk-X425BGXS.cjs');
|
|
22
22
|
require('./chunk-HQQE74RO.cjs');
|
|
23
23
|
require('./chunk-DEY6XXGO.cjs');
|
|
24
24
|
require('./chunk-AY6XJOIN.cjs');
|
|
@@ -28,14 +28,14 @@ require('./chunk-MZ4KBSH7.cjs');
|
|
|
28
28
|
require('./chunk-5SZ4ILU3.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk56EP4QM2cjs = require('./chunk-56EP4QM2.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
35
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-5LED4QHZ.cjs');
|
|
36
36
|
require('./chunk-IBD2FPSX.cjs');
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
37
|
+
require('./chunk-QTLWU6FY.cjs');
|
|
38
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
39
39
|
require('./chunk-6CZVQ72C.cjs');
|
|
40
40
|
require('./chunk-46547WQW.cjs');
|
|
41
41
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1890,7 +1890,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
|
|
|
1890
1890
|
id: logId,
|
|
1891
1891
|
logId,
|
|
1892
1892
|
timestamp: displayTime(_chunkFDZOE5TLcjs.demoMinutesAgo.call(void 0, minutesAgo)),
|
|
1893
|
-
status: { label: severity, variant:
|
|
1893
|
+
status: { label: severity, variant: _chunk5KSPG3TVcjs.logSeverityVariant.call(void 0, severity) },
|
|
1894
1894
|
source: { name: toolType, toolType },
|
|
1895
1895
|
device: device2,
|
|
1896
1896
|
description: { title: summary }
|
|
@@ -1962,13 +1962,13 @@ var NO_FILTERS = {};
|
|
|
1962
1962
|
var ACTION_COLUMNS = ["copy", "quickView", "open"];
|
|
1963
1963
|
var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
|
|
1964
1964
|
var logHref = () => "#";
|
|
1965
|
-
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1965
|
+
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.LogCopyIconButton, {});
|
|
1966
1966
|
function LogsScreen({ compact = false }) {
|
|
1967
1967
|
const [dock, setDock] = _react.useState.call(void 0, null);
|
|
1968
1968
|
const selected = LOGS_FIXTURE_SELECTED;
|
|
1969
1969
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
|
|
1970
1970
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1971
|
-
|
|
1971
|
+
_chunk5KSPG3TVcjs.LogsPageView,
|
|
1972
1972
|
{
|
|
1973
1973
|
showHeader: false,
|
|
1974
1974
|
className: "p-[var(--spacing-system-l)]",
|
|
@@ -1976,7 +1976,7 @@ function LogsScreen({ compact = false }) {
|
|
|
1976
1976
|
onSearchChange: noop,
|
|
1977
1977
|
onOpenFilters: noop,
|
|
1978
1978
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1979
|
-
|
|
1979
|
+
_chunk5KSPG3TVcjs.LogsTableView,
|
|
1980
1980
|
{
|
|
1981
1981
|
logs: LOGS_FIXTURE_ENTRIES,
|
|
1982
1982
|
facets: LOGS_FIXTURE_FACETS,
|
|
@@ -1991,7 +1991,7 @@ function LogsScreen({ compact = false }) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
) }),
|
|
1993
1993
|
!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, _chunkOT6P57ZScjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1994
|
-
|
|
1994
|
+
_chunk5KSPG3TVcjs.LogDrawer,
|
|
1995
1995
|
{
|
|
1996
1996
|
docked: true,
|
|
1997
1997
|
isOpen: true,
|
|
@@ -2003,12 +2003,12 @@ function LogsScreen({ compact = false }) {
|
|
|
2003
2003
|
{ label: "Log ID", value: selected.logId },
|
|
2004
2004
|
{
|
|
2005
2005
|
label: "Source",
|
|
2006
|
-
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2006
|
+
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.ToolBadge, { toolType: _chunk56EP4QM2cjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2007
2007
|
},
|
|
2008
|
-
{ label: "Device", value:
|
|
2008
|
+
{ label: "Device", value: _chunk5KSPG3TVcjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2009
2009
|
],
|
|
2010
2010
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2011
|
-
|
|
2011
|
+
_chunk5KSPG3TVcjs.DeviceCard,
|
|
2012
2012
|
{
|
|
2013
2013
|
...LOGS_FIXTURE_DEVICE,
|
|
2014
2014
|
actions: {
|
|
@@ -10,10 +10,10 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
13
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
14
|
+
require('./chunk-2BGLALP5.cjs');
|
|
15
|
+
require('./chunk-WWDNLMB7.cjs');
|
|
16
|
+
require('./chunk-X425BGXS.cjs');
|
|
17
17
|
require('./chunk-HQQE74RO.cjs');
|
|
18
18
|
require('./chunk-DEY6XXGO.cjs');
|
|
19
19
|
require('./chunk-AY6XJOIN.cjs');
|
|
@@ -21,12 +21,12 @@ require('./chunk-APOMNC7H.cjs');
|
|
|
21
21
|
require('./chunk-24I6RFVU.cjs');
|
|
22
22
|
require('./chunk-MZ4KBSH7.cjs');
|
|
23
23
|
require('./chunk-5SZ4ILU3.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-56EP4QM2.cjs');
|
|
25
25
|
require('./chunk-OT6P57ZS.cjs');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-5LED4QHZ.cjs');
|
|
27
27
|
require('./chunk-IBD2FPSX.cjs');
|
|
28
|
-
require('./chunk-
|
|
29
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-QTLWU6FY.cjs');
|
|
29
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
30
30
|
require('./chunk-6CZVQ72C.cjs');
|
|
31
31
|
require('./chunk-46547WQW.cjs');
|
|
32
32
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1894,14 +1894,14 @@ var POLICIES = [
|
|
|
1894
1894
|
policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
|
|
1895
1895
|
];
|
|
1896
1896
|
var POLICIES_FIXTURE = {
|
|
1897
|
-
summary:
|
|
1897
|
+
summary: _chunk5KSPG3TVcjs.computePolicySummary.call(void 0, POLICIES),
|
|
1898
1898
|
rows: POLICIES.map((item) => ({
|
|
1899
1899
|
id: item.id,
|
|
1900
1900
|
name: item.name,
|
|
1901
1901
|
description: item.description,
|
|
1902
1902
|
critical: item.critical,
|
|
1903
1903
|
severityLabel: item.critical ? "Critical" : "Low",
|
|
1904
|
-
status:
|
|
1904
|
+
status: _chunk5KSPG3TVcjs.getPolicyTableStatus.call(void 0, item),
|
|
1905
1905
|
actions: [
|
|
1906
1906
|
{ label: "Policy Details", onClick: noop },
|
|
1907
1907
|
{ label: "Delete Policy", onClick: noop }
|
|
@@ -1915,16 +1915,16 @@ var POLICIES_FIXTURE = {
|
|
|
1915
1915
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1916
1916
|
function PoliciesScreen({ compact = false }) {
|
|
1917
1917
|
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1918
|
-
|
|
1918
|
+
_chunk5KSPG3TVcjs.PoliciesTable,
|
|
1919
1919
|
{
|
|
1920
1920
|
rows: POLICIES_FIXTURE.rows,
|
|
1921
1921
|
rowAsLink: true,
|
|
1922
|
-
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1922
|
+
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.DataTable.RowCount, {}),
|
|
1923
1923
|
emptyMessage: "No policies found."
|
|
1924
1924
|
}
|
|
1925
1925
|
);
|
|
1926
1926
|
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: [
|
|
1927
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1927
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1928
1928
|
table
|
|
1929
1929
|
] });
|
|
1930
1930
|
}
|
|
@@ -11,10 +11,10 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2BGLALP5cjs = require('./chunk-2BGLALP5.cjs');
|
|
15
15
|
require('./chunk-OT6P57ZS.cjs');
|
|
16
16
|
require('./chunk-IBD2FPSX.cjs');
|
|
17
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
18
18
|
require('./chunk-46547WQW.cjs');
|
|
19
19
|
require('./chunk-LNUFH4E2.cjs');
|
|
20
20
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1922,7 +1922,7 @@ function TaskbarApp({ icon, active = false }) {
|
|
|
1922
1922
|
);
|
|
1923
1923
|
}
|
|
1924
1924
|
function RemoteDesktopPicture({ desktop }) {
|
|
1925
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${
|
|
1925
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${_chunk2BGLALP5cjs.DEVICE_WALLPAPER_CLASS}`, children: [
|
|
1926
1926
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative min-h-0 flex-1", children: [
|
|
1927
1927
|
/* @__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: [
|
|
1928
1928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesktopShortcut, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYHH5EIOcjs.TrashIcon, { className: "h-5 w-5" }), label: "Recycle Bin" }),
|
|
@@ -1986,7 +1986,7 @@ function RemoteSessionScreen({ compact = false }) {
|
|
|
1986
1986
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col bg-ods-bg", children: [
|
|
1987
1987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[var(--spacing-system-l)] flex-shrink-0" }),
|
|
1988
1988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1989
|
-
|
|
1989
|
+
_chunk2BGLALP5cjs.RemoteDesktopView,
|
|
1990
1990
|
{
|
|
1991
1991
|
...fixture.view,
|
|
1992
1992
|
onEnterFullscreen: noop,
|
|
@@ -1997,7 +1997,7 @@ function RemoteSessionScreen({ compact = false }) {
|
|
|
1997
1997
|
screen: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteDesktopPicture, { desktop: fixture.desktop }),
|
|
1998
1998
|
chat: compact ? null : (
|
|
1999
1999
|
// The side column needs the room of the wide layout; a narrow frame keeps the screen alone.
|
|
2000
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2000
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.RemoteDesktopChatPanel, { ...fixture.chat, sending: false, onSend: keepDraft, variant: "side" }) })
|
|
2001
2001
|
)
|
|
2002
2002
|
}
|
|
2003
2003
|
) })
|
|
@@ -13,12 +13,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
19
|
+
var _chunk2BGLALP5cjs = require('./chunk-2BGLALP5.cjs');
|
|
20
|
+
require('./chunk-WWDNLMB7.cjs');
|
|
21
|
+
require('./chunk-X425BGXS.cjs');
|
|
22
22
|
require('./chunk-HQQE74RO.cjs');
|
|
23
23
|
require('./chunk-DEY6XXGO.cjs');
|
|
24
24
|
require('./chunk-AY6XJOIN.cjs');
|
|
@@ -26,12 +26,12 @@ require('./chunk-APOMNC7H.cjs');
|
|
|
26
26
|
require('./chunk-24I6RFVU.cjs');
|
|
27
27
|
require('./chunk-MZ4KBSH7.cjs');
|
|
28
28
|
require('./chunk-5SZ4ILU3.cjs');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-56EP4QM2.cjs');
|
|
30
30
|
require('./chunk-OT6P57ZS.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-5LED4QHZ.cjs');
|
|
32
32
|
require('./chunk-IBD2FPSX.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-QTLWU6FY.cjs');
|
|
34
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
35
35
|
require('./chunk-6CZVQ72C.cjs');
|
|
36
36
|
require('./chunk-46547WQW.cjs');
|
|
37
37
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1998,8 +1998,8 @@ function buildScriptsFixture(cast) {
|
|
|
1998
1998
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1999
1999
|
var WIDE_HIDDEN_COLUMNS = ["result", "open"];
|
|
2000
2000
|
var COMPACT_COLUMNS = [
|
|
2001
|
-
{ ...
|
|
2002
|
-
|
|
2001
|
+
{ ..._chunk5KSPG3TVcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
2002
|
+
_chunk5KSPG3TVcjs.EXECUTION_COLUMNS.status
|
|
2003
2003
|
];
|
|
2004
2004
|
var COMPACT_ROWS = 4;
|
|
2005
2005
|
var TOKEN_CLASS = {
|
|
@@ -2049,16 +2049,16 @@ function ScriptCodePicture({ script }) {
|
|
|
2049
2049
|
children: [
|
|
2050
2050
|
/* @__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: [
|
|
2051
2051
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h4", children: script.name }),
|
|
2053
2053
|
/* @__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: [
|
|
2054
2054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPKKRHUMcjs.TimerIcon, { className: "size-4 text-ods-text-secondary" }),
|
|
2055
2055
|
`${schedule.repeat} ${schedule.time} \xB7 ${schedule.deviceCount} devices`
|
|
2056
2056
|
] })
|
|
2057
2057
|
] }),
|
|
2058
2058
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2059
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2059
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
|
|
2060
2060
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2061
|
-
|
|
2061
|
+
_chunk5KSPG3TVcjs.ScriptShellBadge,
|
|
2062
2062
|
{
|
|
2063
2063
|
value: script.shellType,
|
|
2064
2064
|
className: "shrink-0 text-ods-text-secondary text-h6",
|
|
@@ -2082,7 +2082,7 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2082
2082
|
return (
|
|
2083
2083
|
// Four runs of the card's row height fill the frame; the padding is what is left round them.
|
|
2084
2084
|
/* @__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,
|
|
2085
|
-
|
|
2085
|
+
_chunk5KSPG3TVcjs.ScriptExecutionsTable,
|
|
2086
2086
|
{
|
|
2087
2087
|
rows: fixture.executions.slice(0, COMPACT_ROWS),
|
|
2088
2088
|
columns: COMPACT_COLUMNS,
|
|
@@ -2092,13 +2092,13 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2092
2092
|
) })
|
|
2093
2093
|
);
|
|
2094
2094
|
}
|
|
2095
|
-
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2095
|
+
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
|
|
2096
2096
|
return (
|
|
2097
2097
|
// The frame's tighter padding and no header row: the output opened under a run needs the height.
|
|
2098
2098
|
/* @__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: [
|
|
2099
2099
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
|
|
2100
2100
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2101
|
-
|
|
2101
|
+
_chunk5KSPG3TVcjs.ScriptExecutionsTable,
|
|
2102
2102
|
{
|
|
2103
2103
|
rows: fixture.executions,
|
|
2104
2104
|
hideColumns: WIDE_HIDDEN_COLUMNS,
|
|
@@ -15,12 +15,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
21
|
+
var _chunk2BGLALP5cjs = require('./chunk-2BGLALP5.cjs');
|
|
22
|
+
require('./chunk-WWDNLMB7.cjs');
|
|
23
|
+
require('./chunk-X425BGXS.cjs');
|
|
24
24
|
require('./chunk-HQQE74RO.cjs');
|
|
25
25
|
require('./chunk-DEY6XXGO.cjs');
|
|
26
26
|
require('./chunk-AY6XJOIN.cjs');
|
|
@@ -28,12 +28,12 @@ require('./chunk-APOMNC7H.cjs');
|
|
|
28
28
|
require('./chunk-24I6RFVU.cjs');
|
|
29
29
|
require('./chunk-MZ4KBSH7.cjs');
|
|
30
30
|
require('./chunk-5SZ4ILU3.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-56EP4QM2.cjs');
|
|
32
32
|
require('./chunk-OT6P57ZS.cjs');
|
|
33
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-5LED4QHZ.cjs');
|
|
34
34
|
require('./chunk-IBD2FPSX.cjs');
|
|
35
|
-
require('./chunk-
|
|
36
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-QTLWU6FY.cjs');
|
|
36
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
37
37
|
require('./chunk-6CZVQ72C.cjs');
|
|
38
38
|
require('./chunk-46547WQW.cjs');
|
|
39
39
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1923,14 +1923,14 @@ var noop = () => {
|
|
|
1923
1923
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
1924
1924
|
function StaticPackageField({ value }) {
|
|
1925
1925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1926
|
-
|
|
1926
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
1927
1927
|
{
|
|
1928
|
-
label:
|
|
1928
|
+
label: _chunk5KSPG3TVcjs.PACKAGE_SEARCH_LABEL,
|
|
1929
1929
|
labelVariant: "large",
|
|
1930
1930
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1931
1931
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1932
1932
|
onChange: noop,
|
|
1933
|
-
placeholder:
|
|
1933
|
+
placeholder: _chunk5KSPG3TVcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1934
1934
|
}
|
|
1935
1935
|
);
|
|
1936
1936
|
}
|
|
@@ -1944,7 +1944,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1944
1944
|
[fixture.devices, fixture.selectedIds]
|
|
1945
1945
|
);
|
|
1946
1946
|
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,
|
|
1947
|
-
|
|
1947
|
+
_chunk5KSPG3TVcjs.SoftwareActionForm,
|
|
1948
1948
|
{
|
|
1949
1949
|
action: fixture.action,
|
|
1950
1950
|
showHeader: false,
|
|
@@ -1956,7 +1956,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1956
1956
|
initialValues: fixture.initialValues,
|
|
1957
1957
|
renderPackageSearch,
|
|
1958
1958
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1959
|
-
|
|
1959
|
+
_chunk5KSPG3TVcjs.DeviceSelector,
|
|
1960
1960
|
{
|
|
1961
1961
|
devices: selected,
|
|
1962
1962
|
loading: false,
|
|
@@ -10,10 +10,10 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkWWDNLMB7cjs = require('./chunk-WWDNLMB7.cjs');
|
|
14
14
|
require('./chunk-APOMNC7H.cjs');
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-QTLWU6FY.cjs');
|
|
16
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
17
17
|
require('./chunk-46547WQW.cjs');
|
|
18
18
|
require('./chunk-LNUFH4E2.cjs');
|
|
19
19
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1841,7 +1841,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1841
1841
|
const dana = assignee(cast.person("dana"));
|
|
1842
1842
|
const alex = assignee(cast.person("alex"));
|
|
1843
1843
|
return [
|
|
1844
|
-
|
|
1844
|
+
_chunkWWDNLMB7cjs.columnFromTicketStatus.call(void 0, "ACTIVE", [
|
|
1845
1845
|
ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
|
|
1846
1846
|
ticketNumber: "1051",
|
|
1847
1847
|
agent: "fae",
|
|
@@ -1859,7 +1859,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1859
1859
|
tags: ["onboarding"]
|
|
1860
1860
|
})
|
|
1861
1861
|
]),
|
|
1862
|
-
|
|
1862
|
+
_chunkWWDNLMB7cjs.columnFromTicketStatus.call(void 0, "TECH_REQUIRED", [
|
|
1863
1863
|
ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
|
|
1864
1864
|
ticketNumber: "1049",
|
|
1865
1865
|
agent: "fae",
|
|
@@ -1883,7 +1883,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1883
1883
|
escalatedByUser: true
|
|
1884
1884
|
})
|
|
1885
1885
|
]),
|
|
1886
|
-
|
|
1886
|
+
_chunkWWDNLMB7cjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
|
|
1887
1887
|
ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
|
|
1888
1888
|
ticketNumber: "1046",
|
|
1889
1889
|
organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
|
|
@@ -1892,7 +1892,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1892
1892
|
activity: { kind: "waiting-external" }
|
|
1893
1893
|
})
|
|
1894
1894
|
]),
|
|
1895
|
-
|
|
1895
|
+
_chunkWWDNLMB7cjs.columnFromTicketStatus.call(void 0,
|
|
1896
1896
|
"RESOLVED",
|
|
1897
1897
|
[
|
|
1898
1898
|
ticket("tk-1048", "Slow laptop", "RESOLVED", {
|
|
@@ -1928,7 +1928,7 @@ function TicketsBoardScreen({ compact = false }) {
|
|
|
1928
1928
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1929
1929
|
const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
|
|
1930
1930
|
const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
|
|
1931
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1931
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWDNLMB7cjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
1934
|
|
package/package.json
CHANGED
|
@@ -399,13 +399,10 @@ export interface EmbeddableChatProps {
|
|
|
399
399
|
* extra `quickActions` chips.
|
|
400
400
|
* Each field falls back to the built-in OpenFrame defaults, so the kit
|
|
401
401
|
* stays platform-agnostic. `onStartGuideChat` and `hasExistingChats` are
|
|
402
|
-
* wired internally and are NOT overridable here.
|
|
403
|
-
*
|
|
402
|
+
* wired internally and are NOT overridable here. A quick action's click is wired internally too: it puts the
|
|
403
|
+
* action's prompt into the composer to edit and send, then calls the action's own `onClick` (e.g. analytics).
|
|
404
404
|
*/
|
|
405
|
-
mingoWelcome?: Omit<
|
|
406
|
-
MingoWelcomeProps,
|
|
407
|
-
'onStartGuideChat' | 'hasExistingChats' | 'onQuickActionHover' | 'onQuickActionHoverEnd'
|
|
408
|
-
>;
|
|
405
|
+
mingoWelcome?: Omit<MingoWelcomeProps, 'onStartGuideChat' | 'hasExistingChats'>;
|
|
409
406
|
|
|
410
407
|
/**
|
|
411
408
|
* The host's conversation page size: how many dialogs one page of the list
|
|
@@ -1271,11 +1268,20 @@ function EmbeddableChatInner({
|
|
|
1271
1268
|
|
|
1272
1269
|
// Imperative handle to the chat input.
|
|
1273
1270
|
const chatInputRef = useRef<ChatInputRef | null>(null);
|
|
1274
|
-
//
|
|
1275
|
-
//
|
|
1276
|
-
//
|
|
1277
|
-
// draft
|
|
1278
|
-
const
|
|
1271
|
+
// A quick action (a starter) puts its prompt into the composer to edit and send, the way support prompts that
|
|
1272
|
+
// start a conversation work (AWS Cloudscape, "support prompts"): nothing is sent on the click. It never loses what
|
|
1273
|
+
// the user typed: an empty composer, or one holding only the prompt a quick action put there, takes the new prompt;
|
|
1274
|
+
// a draft of the user's own keeps its text and gets the prompt after it.
|
|
1275
|
+
const insertedPromptRef = useRef<string | null>(null);
|
|
1276
|
+
const insertQuickAction = useCallback((prompt: string) => {
|
|
1277
|
+
const input = chatInputRef.current;
|
|
1278
|
+
if (!input) return;
|
|
1279
|
+
const draft = input.getValue().trim();
|
|
1280
|
+
const next = draft === '' || draft === insertedPromptRef.current ? prompt : `${draft}\n\n${prompt}`;
|
|
1281
|
+
insertedPromptRef.current = next;
|
|
1282
|
+
input.setValue(next);
|
|
1283
|
+
input.focus();
|
|
1284
|
+
}, []);
|
|
1279
1285
|
|
|
1280
1286
|
// The slash-command registry (Guide onboarding cards) is loaded via
|
|
1281
1287
|
// react-query below, after `activeMode` is resolved — gated on Guide mode and
|
|
@@ -2117,16 +2123,6 @@ function EmbeddableChatInner({
|
|
|
2117
2123
|
// Guide-mode empty state (no open conversation) — drives the "Mingo Guide"
|
|
2118
2124
|
// header, the guide banner, and the GuideWelcome content branch.
|
|
2119
2125
|
const isGuideEmpty = !hasConversation && activeMode === 'guide';
|
|
2120
|
-
// Quick-action chips exist in BOTH empty states (Guide onboarding + Mingo
|
|
2121
|
-
// welcome). If the chip row goes away (a message is sent, or the mode
|
|
2122
|
-
// switches) while a chip is still hovered, drop the in-flight preview so it
|
|
2123
|
-
// can't leak into the next composer state.
|
|
2124
|
-
const isQuickActionEmpty = !hasConversation && (activeMode === 'guide' || activeMode === 'mingo');
|
|
2125
|
-
// Dropped while rendering, not from an effect: the composer reads
|
|
2126
|
-
// `quickActionPreview` in THIS render, so an effect committed one frame with
|
|
2127
|
-
// the hovered chip's prompt still ghosted into a composer whose chip row had
|
|
2128
|
-
// already gone. Guarded, so the extra render pass takes the early exit.
|
|
2129
|
-
if (!isQuickActionEmpty && quickActionPreview !== null) setQuickActionPreview(null);
|
|
2130
2126
|
// The guide-empty back-chevron returns to Mingo — only offer it when Mingo
|
|
2131
2127
|
// mode actually exists to return to (guide is normally entered from Mingo).
|
|
2132
2128
|
const guideCanReturnToMingo = isGuideEmpty && hasMingoMode;
|
|
@@ -2876,15 +2872,15 @@ function EmbeddableChatInner({
|
|
|
2876
2872
|
// the new-user compose surface: greeting + grid + promo +
|
|
2877
2873
|
// primary Guide chip.
|
|
2878
2874
|
hasExistingChats={false}
|
|
2879
|
-
//
|
|
2880
|
-
//
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2875
|
+
// A quick action puts its prompt into the composer to edit and send (`insertQuickAction`), then runs
|
|
2876
|
+
// the host's own click. Wired after the `{...mingoWelcome}` spread so nothing is sent from here.
|
|
2877
|
+
quickActions={mingoWelcome?.quickActions?.map(action => ({
|
|
2878
|
+
...action,
|
|
2879
|
+
onClick: () => {
|
|
2880
|
+
insertQuickAction(action.prompt ?? action.label);
|
|
2881
|
+
action.onClick?.();
|
|
2882
|
+
},
|
|
2883
|
+
}))}
|
|
2888
2884
|
/>
|
|
2889
2885
|
) : (
|
|
2890
2886
|
/* Figma node 7532:328214 — Guide-mode empty state: greeting
|
|
@@ -2922,20 +2918,8 @@ function EmbeddableChatInner({
|
|
|
2922
2918
|
? guideSuggestedActions
|
|
2923
2919
|
: (guideWelcome?.quickActions ?? guideSuggestedActions)
|
|
2924
2920
|
}
|
|
2925
|
-
//
|
|
2926
|
-
onQuickAction={action =>
|
|
2927
|
-
setQuickActionPreview(null);
|
|
2928
|
-
handleSend(action.prompt ?? action.label);
|
|
2929
|
-
}}
|
|
2930
|
-
// Hover/focus PREVIEWS the action's full prompt as ghost text
|
|
2931
|
-
// in the empty composer (the chip label is short; this reveals
|
|
2932
|
-
// what will be sent). Declarative + non-destructive — see
|
|
2933
|
-
// `quickActionPreview` / `ChatInput.previewText`.
|
|
2934
|
-
onQuickActionHover={action => setQuickActionPreview(action.prompt ?? action.label)}
|
|
2935
|
-
onQuickActionHoverEnd={() => setQuickActionPreview(null)}
|
|
2936
|
-
// In agent mode a built-in agent (fae/mingo) caps the wall at
|
|
2937
|
-
// 2 rows; host/guide mode (no active agent) keeps the default.
|
|
2938
|
-
agentSlug={activeAgentSlug}
|
|
2921
|
+
// A quick action puts its prompt into the composer to edit and send.
|
|
2922
|
+
onQuickAction={action => insertQuickAction(action.prompt ?? action.label)}
|
|
2939
2923
|
>
|
|
2940
2924
|
{/* Figma node 7363:205938 — single-column slash-command
|
|
2941
2925
|
list. No own scroll (GuideWelcome's region scrolls); the
|
|
@@ -3009,7 +2993,7 @@ function EmbeddableChatInner({
|
|
|
3009
2993
|
}
|
|
3010
2994
|
autoFocus={previewMode ? false : autoFocusInput}
|
|
3011
2995
|
slashCommands={slashCommandsProp}
|
|
3012
|
-
previewText={
|
|
2996
|
+
previewText={composerPreviewText ?? undefined}
|
|
3013
2997
|
safeAreaBottom={safeAreaBottom}
|
|
3014
2998
|
edgeLight={composerEdgeLight}
|
|
3015
2999
|
showAttachmentButton={attachmentsEnabled && activeMode === 'guide'}
|