@flamingo-stack/openframe-frontend-core 0.0.832 → 0.0.833
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-DAQMCWCK.cjs → chunk-4OP2VVPV.cjs} +3 -3
- package/dist/{chunk-HDLY6OMQ.cjs → chunk-AZRDKZNG.cjs} +4 -4
- package/dist/{chunk-CP46CVUC.cjs → chunk-DAOVWHCN.cjs} +42 -42
- package/dist/{chunk-ZJ5K6XHW.cjs → chunk-DQ6JYOHD.cjs} +3 -3
- package/dist/{chunk-VBGBKRDO.cjs → chunk-EQB3NSY6.cjs} +76 -76
- package/dist/{chunk-QHBKZJ6A.cjs → chunk-HBFYEBXN.cjs} +2 -2
- package/dist/{chunk-SRHHLDBP.cjs → chunk-I7QIIZAI.cjs} +10 -10
- package/dist/{chunk-P5DWAVWK.cjs → chunk-IUHV55D7.cjs} +5 -5
- package/dist/{chunk-EYSIQORA.cjs → chunk-LQDPAMXK.cjs} +1 -1
- package/dist/{chunk-7WQD3R5J.cjs → chunk-M5PGFNJG.cjs} +41 -41
- package/dist/{chunk-UGM3YDCK.cjs → chunk-SFJXIHFR.cjs} +9 -9
- package/dist/{chunk-X7VQM5TU.cjs → chunk-UFF4TRZH.cjs} +3 -3
- package/dist/{chunk-7COZUANC.cjs → chunk-UQ52NWTB.cjs} +32 -32
- package/dist/{chunk-OGPAVRNF.cjs → chunk-VMFBLMP6.cjs} +2 -2
- package/dist/{chunk-X76TZ5YR.cjs → chunk-WAMDWVYC.cjs} +11 -11
- package/dist/{chunk-R6QZHOJB.cjs → chunk-XXHCM2XS.cjs} +32 -32
- package/dist/{cloud-tenants-E2AC4WEJ.cjs → cloud-tenants-THCHEWBM.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +12 -12
- package/dist/components/chat/embeddable-chat.d.ts +2 -2
- package/dist/components/chat/embeddable-chat.js +2 -14
- package/dist/components/chat/guide-welcome.d.ts +2 -2
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/mingo-quick-action-wall.d.ts +1 -2
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.d.ts +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/help-center-pages/index.cjs +55 -55
- package/dist/components/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.cjs +26 -26
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.cjs +4 -4
- package/dist/components/product-demo/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/ui/index.cjs +3 -3
- package/dist/{devices-CAYUGD2N.cjs → devices-MPRDMXXU.cjs} +4 -4
- package/dist/{embeddable-chat-FYHMR66R.cjs → embeddable-chat-TRGESG7U.cjs} +2 -14
- package/dist/index.cjs +7 -7
- package/dist/{knowledge-OI4OPEVL.cjs → knowledge-TFTDHYGR.cjs} +3 -3
- package/dist/{logs-B3XV2NHV.cjs → logs-CSSJG4F7.cjs} +10 -10
- package/dist/{policies-ZB4Z42DV.cjs → policies-ELFYUN5P.cjs} +7 -7
- package/dist/{scripts-I4DNUOQC.cjs → scripts-37L6FIKG.cjs} +8 -8
- package/dist/{software-update-AWH4WXOH.cjs → software-update-BSA4NLHO.cjs} +6 -6
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +7 -21
- package/src/components/chat/guide-welcome.tsx +2 -2
- package/src/components/chat/mingo-quick-action-wall.tsx +1 -2
- package/src/components/chat/mingo-welcome.tsx +1 -1
|
@@ -8,7 +8,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
8
8
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
12
12
|
require('./chunk-FNNDGOR3.cjs');
|
|
13
13
|
require('./chunk-SWMUW3RR.cjs');
|
|
14
14
|
require('./chunk-VQG2A7GA.cjs');
|
|
@@ -19,7 +19,7 @@ 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-LQDPAMXK.cjs');
|
|
23
23
|
require('./chunk-OT6P57ZS.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
@@ -1908,7 +1908,7 @@ 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
|
+
_chunkEQB3NSY6cjs.KnowledgeBaseArticleView,
|
|
1912
1912
|
{
|
|
1913
1913
|
...fixture.article,
|
|
1914
1914
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
19
19
|
require('./chunk-FNNDGOR3.cjs');
|
|
20
20
|
require('./chunk-SWMUW3RR.cjs');
|
|
21
21
|
require('./chunk-VQG2A7GA.cjs');
|
|
@@ -28,7 +28,7 @@ require('./chunk-MZ4KBSH7.cjs');
|
|
|
28
28
|
require('./chunk-5SZ4ILU3.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkLQDPAMXKcjs = require('./chunk-LQDPAMXK.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.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: _chunkEQB3NSY6cjs.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, _chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.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, _chunkEQB3NSY6cjs.ToolBadge, { toolType: _chunkLQDPAMXKcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2007
2007
|
},
|
|
2008
|
-
{ label: "Device", value:
|
|
2008
|
+
{ label: "Device", value: _chunkEQB3NSY6cjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2009
2009
|
],
|
|
2010
2010
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2011
|
-
|
|
2011
|
+
_chunkEQB3NSY6cjs.DeviceCard,
|
|
2012
2012
|
{
|
|
2013
2013
|
...LOGS_FIXTURE_DEVICE,
|
|
2014
2014
|
actions: {
|
|
@@ -10,7 +10,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
14
14
|
require('./chunk-FNNDGOR3.cjs');
|
|
15
15
|
require('./chunk-SWMUW3RR.cjs');
|
|
16
16
|
require('./chunk-VQG2A7GA.cjs');
|
|
@@ -21,7 +21,7 @@ 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-LQDPAMXK.cjs');
|
|
25
25
|
require('./chunk-OT6P57ZS.cjs');
|
|
26
26
|
require('./chunk-D6ZSRGH2.cjs');
|
|
27
27
|
require('./chunk-4JHO2NVI.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: _chunkEQB3NSY6cjs.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: _chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.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, _chunkEQB3NSY6cjs.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, _chunkEQB3NSY6cjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1928
1928
|
table
|
|
1929
1929
|
] });
|
|
1930
1930
|
}
|
|
@@ -13,7 +13,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
@@ -26,7 +26,7 @@ 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-LQDPAMXK.cjs');
|
|
30
30
|
require('./chunk-OT6P57ZS.cjs');
|
|
31
31
|
require('./chunk-D6ZSRGH2.cjs');
|
|
32
32
|
require('./chunk-4JHO2NVI.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
|
+
{ ..._chunkEQB3NSY6cjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
2002
|
+
_chunkEQB3NSY6cjs.EXECUTION_COLUMNS.status
|
|
2003
2003
|
];
|
|
2004
2004
|
var COMPACT_ROWS = 4;
|
|
2005
2005
|
var TOKEN_CLASS = {
|
|
@@ -2058,7 +2058,7 @@ function ScriptCodePicture({ script }) {
|
|
|
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
2059
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFNNDGOR3cjs.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
|
+
_chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.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, _chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.ScriptExecutionsTable,
|
|
2102
2102
|
{
|
|
2103
2103
|
rows: fixture.executions,
|
|
2104
2104
|
hideColumns: WIDE_HIDDEN_COLUMNS,
|
|
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
@@ -28,7 +28,7 @@ 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-LQDPAMXK.cjs');
|
|
32
32
|
require('./chunk-OT6P57ZS.cjs');
|
|
33
33
|
require('./chunk-D6ZSRGH2.cjs');
|
|
34
34
|
require('./chunk-4JHO2NVI.cjs');
|
|
@@ -1925,12 +1925,12 @@ function StaticPackageField({ value }) {
|
|
|
1925
1925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1926
1926
|
_chunkFNNDGOR3cjs.Autocomplete,
|
|
1927
1927
|
{
|
|
1928
|
-
label:
|
|
1928
|
+
label: _chunkEQB3NSY6cjs.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: _chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.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
|
+
_chunkEQB3NSY6cjs.DeviceSelector,
|
|
1960
1960
|
{
|
|
1961
1961
|
devices: selected,
|
|
1962
1962
|
loading: false,
|
package/package.json
CHANGED
|
@@ -399,8 +399,8 @@ 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. A quick action's click is wired internally too: it
|
|
403
|
-
* action's prompt
|
|
402
|
+
* wired internally and are NOT overridable here. A quick action's click is wired internally too: it sends the
|
|
403
|
+
* action's prompt at once, then calls the action's own `onClick` (e.g. analytics).
|
|
404
404
|
*/
|
|
405
405
|
mingoWelcome?: Omit<MingoWelcomeProps, 'onStartGuideChat' | 'hasExistingChats'>;
|
|
406
406
|
|
|
@@ -1268,20 +1268,6 @@ function EmbeddableChatInner({
|
|
|
1268
1268
|
|
|
1269
1269
|
// Imperative handle to the chat input.
|
|
1270
1270
|
const chatInputRef = useRef<ChatInputRef | null>(null);
|
|
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
|
-
}, []);
|
|
1285
1271
|
|
|
1286
1272
|
// The slash-command registry (Guide onboarding cards) is loaded via
|
|
1287
1273
|
// react-query below, after `activeMode` is resolved — gated on Guide mode and
|
|
@@ -2872,12 +2858,12 @@ function EmbeddableChatInner({
|
|
|
2872
2858
|
// the new-user compose surface: greeting + grid + promo +
|
|
2873
2859
|
// primary Guide chip.
|
|
2874
2860
|
hasExistingChats={false}
|
|
2875
|
-
// A quick action
|
|
2876
|
-
//
|
|
2861
|
+
// A quick action sends its prompt at once, then runs the host's own click. Wired after the
|
|
2862
|
+
// `{...mingoWelcome}` spread so the chat, not the host, sends it.
|
|
2877
2863
|
quickActions={mingoWelcome?.quickActions?.map(action => ({
|
|
2878
2864
|
...action,
|
|
2879
2865
|
onClick: () => {
|
|
2880
|
-
|
|
2866
|
+
handleSend(action.prompt ?? action.label);
|
|
2881
2867
|
action.onClick?.();
|
|
2882
2868
|
},
|
|
2883
2869
|
}))}
|
|
@@ -2918,8 +2904,8 @@ function EmbeddableChatInner({
|
|
|
2918
2904
|
? guideSuggestedActions
|
|
2919
2905
|
: (guideWelcome?.quickActions ?? guideSuggestedActions)
|
|
2920
2906
|
}
|
|
2921
|
-
// A quick action
|
|
2922
|
-
onQuickAction={action =>
|
|
2907
|
+
// A quick action sends its prompt at once.
|
|
2908
|
+
onQuickAction={action => handleSend(action.prompt ?? action.label)}
|
|
2923
2909
|
>
|
|
2924
2910
|
{/* Figma node 7363:205938 — single-column slash-command
|
|
2925
2911
|
list. No own scroll (GuideWelcome's region scrolls); the
|
|
@@ -20,7 +20,7 @@ export interface GuideQuickAction {
|
|
|
20
20
|
id: string;
|
|
21
21
|
/** Chip label. */
|
|
22
22
|
label: string;
|
|
23
|
-
/** Prompt text
|
|
23
|
+
/** Prompt text sent on click. Defaults to `label`. */
|
|
24
24
|
prompt?: string;
|
|
25
25
|
/** Optional library-glyph name (resolved via the onboarding-icon registry). */
|
|
26
26
|
iconName?: string | null;
|
|
@@ -50,7 +50,7 @@ export interface GuideWelcomeProps {
|
|
|
50
50
|
/** Quick-action chips — caller-provided; there are no built-in defaults, so
|
|
51
51
|
* the set is omitted entirely unless the host supplies actions. The first
|
|
52
52
|
* ones fill the set's slots and the rest open from its "More" slot; a click
|
|
53
|
-
* hands the action to `onQuickAction` (the chat
|
|
53
|
+
* hands the action to `onQuickAction` (the chat sends its `prompt`). */
|
|
54
54
|
quickActions?: ReadonlyArray<GuideQuickAction>;
|
|
55
55
|
/** The host is still reading the chips (e.g. the quick actions of the page's
|
|
56
56
|
* topic): with none to show yet the wall draws its own loading form. A
|
|
@@ -51,8 +51,7 @@ export interface QuickActionSetProps {
|
|
|
51
51
|
* whole). Loading draws the same slots, each the chip's own loading form. So the set is the same box loading,
|
|
52
52
|
* loaded, with 1 action or 40, and opening "More" moves nothing.
|
|
53
53
|
*
|
|
54
|
-
* A click on a chip, or on a row of the "More" menu, calls its `onSelect` (the chat
|
|
55
|
-
* composer to edit and send).
|
|
54
|
+
* A click on a chip, or on a row of the "More" menu, calls its `onSelect` (the chat sends the action's prompt).
|
|
56
55
|
*/
|
|
57
56
|
export function QuickActionSet({
|
|
58
57
|
chips,
|
|
@@ -33,7 +33,7 @@ export interface MingoQuickAction {
|
|
|
33
33
|
/** `'primary'` = accent (yellow) chip, `'outline'` = bordered chip. */
|
|
34
34
|
variant?: 'primary' | 'outline';
|
|
35
35
|
onClick?: () => void;
|
|
36
|
-
/** The full prompt the action asks: in `EmbeddableChat` a click
|
|
36
|
+
/** The full prompt the action asks: in `EmbeddableChat` a click sends it. The
|
|
37
37
|
* chip `label` is short. Omitted → falls back to `label`. */
|
|
38
38
|
prompt?: string;
|
|
39
39
|
}
|