@flamingo-stack/openframe-frontend-core 0.0.760 → 0.0.761
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-EYVYPX5N.cjs → chunk-4EM7HIIM.cjs} +105 -105
- package/dist/{chunk-NC4QUV73.cjs → chunk-6M54EVOA.cjs} +9 -9
- package/dist/{chunk-PSLL4FAS.cjs → chunk-6T6O36LT.cjs} +15 -15
- package/dist/{chunk-GL5KJ4PK.cjs → chunk-B7AOUPBV.cjs} +11 -11
- package/dist/{chunk-ITO3JRVB.cjs → chunk-D252ICCO.cjs} +4 -4
- package/dist/{chunk-3LNKXYMI.cjs → chunk-EMSOBT6R.cjs} +4 -4
- package/dist/{chunk-D2HMQUK5.cjs → chunk-G6IK3HC5.cjs} +17 -17
- package/dist/{chunk-BDCEMTWU.cjs → chunk-GKRHGVB4.cjs} +68 -68
- package/dist/{chunk-QCXE7BSY.cjs → chunk-GLQBCQOF.cjs} +25 -25
- package/dist/{chunk-PIV4FVTR.cjs → chunk-H45OTVYI.cjs} +10 -10
- package/dist/{chunk-EMKGOU54.cjs → chunk-HQYWVNQL.cjs} +4 -4
- package/dist/{chunk-SULCTARW.cjs → chunk-LOM3S64Z.cjs} +3 -3
- package/dist/{chunk-4VRXTQVZ.cjs → chunk-NOFJH7MA.cjs} +6 -6
- package/dist/{chunk-UT4W73YG.cjs → chunk-OBXZDUC3.cjs} +43 -43
- package/dist/{chunk-QTYSYEHK.cjs → chunk-SUHPBFNU.cjs} +11 -6
- package/dist/{chunk-4ZMCKCXN.cjs → chunk-TIV74DVS.cjs} +36 -36
- package/dist/{chunk-EC7VXTJ3.cjs → chunk-VAZTFCVY.cjs} +7 -7
- package/dist/{cloud-tenants-2NMXXIA6.cjs → cloud-tenants-BDGV4N2T.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +9 -6
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/types/component.types.d.ts +10 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- 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 +56 -56
- package/dist/components/index.cjs +36 -36
- package/dist/components/meeting-scheduler/index.cjs +22 -22
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-5XZVTD7G.cjs → devices-Q5YHMXGV.cjs} +5 -5
- package/dist/{embeddable-chat-LTXUQWEK.cjs → embeddable-chat-ST5IR6VN.cjs} +66 -66
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-7QSJQB4P.cjs → knowledge-UJTJT36J.cjs} +5 -5
- package/dist/{logs-URLNW334.cjs → logs-WMNITBLM.cjs} +12 -12
- package/dist/{policies-NNW6PMAN.cjs → policies-TRXVBOH7.cjs} +8 -8
- package/dist/{scripts-WPYKAZYF.cjs → scripts-HECY7XDL.cjs} +9 -9
- package/dist/{software-update-KB6BIWUT.cjs → software-update-NNFLEMYD.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +19 -9
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/types/component.types.ts +10 -0
|
@@ -8,7 +8,7 @@ var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
|
|
|
8
8
|
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
12
12
|
require('./chunk-2ANICXS7.cjs');
|
|
13
13
|
require('./chunk-QU5K52OP.cjs');
|
|
14
14
|
require('./chunk-AXBVN5SW.cjs');
|
|
@@ -21,10 +21,10 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
22
|
require('./chunk-T4BBZ5ST.cjs');
|
|
23
23
|
require('./chunk-YUMFVQIN.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-6T6O36LT.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkSUHPBFNUcjs = require('./chunk-SUHPBFNU.cjs');
|
|
28
28
|
require('./chunk-F64VMOIB.cjs');
|
|
29
29
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
30
30
|
require('./chunk-LOFDIDSD.cjs');
|
|
@@ -1907,10 +1907,10 @@ function KnowledgeScreen(_props) {
|
|
|
1907
1907
|
const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
|
|
1908
1908
|
const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
|
|
1909
1909
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1910
|
-
|
|
1910
|
+
_chunk4EM7HIIMcjs.KnowledgeBaseArticleView,
|
|
1911
1911
|
{
|
|
1912
1912
|
...fixture.article,
|
|
1913
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSUHPBFNUcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
1914
1914
|
}
|
|
1915
1915
|
) });
|
|
1916
1916
|
}
|
|
@@ -16,7 +16,7 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
20
20
|
require('./chunk-2ANICXS7.cjs');
|
|
21
21
|
require('./chunk-QU5K52OP.cjs');
|
|
22
22
|
require('./chunk-AXBVN5SW.cjs');
|
|
@@ -31,8 +31,8 @@ require('./chunk-T4BBZ5ST.cjs');
|
|
|
31
31
|
require('./chunk-YUMFVQIN.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
35
|
-
require('./chunk-
|
|
34
|
+
var _chunk6T6O36LTcjs = require('./chunk-6T6O36LT.cjs');
|
|
35
|
+
require('./chunk-SUHPBFNU.cjs');
|
|
36
36
|
require('./chunk-F64VMOIB.cjs');
|
|
37
37
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
38
38
|
require('./chunk-LOFDIDSD.cjs');
|
|
@@ -1888,7 +1888,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
|
|
|
1888
1888
|
id: logId,
|
|
1889
1889
|
logId,
|
|
1890
1890
|
timestamp: displayTime(_chunkDKOLQPE7cjs.demoMinutesAgo.call(void 0, minutesAgo)),
|
|
1891
|
-
status: { label: severity, variant:
|
|
1891
|
+
status: { label: severity, variant: _chunk4EM7HIIMcjs.logSeverityVariant.call(void 0, severity) },
|
|
1892
1892
|
source: { name: toolType, toolType },
|
|
1893
1893
|
device: device2,
|
|
1894
1894
|
description: { title: summary }
|
|
@@ -1960,13 +1960,13 @@ var NO_FILTERS = {};
|
|
|
1960
1960
|
var ACTION_COLUMNS = ["copy", "quickView", "open"];
|
|
1961
1961
|
var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
|
|
1962
1962
|
var logHref = () => "#";
|
|
1963
|
-
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1963
|
+
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EM7HIIMcjs.LogCopyIconButton, {});
|
|
1964
1964
|
function LogsScreen({ compact = false }) {
|
|
1965
1965
|
const [dock, setDock] = _react.useState.call(void 0, null);
|
|
1966
1966
|
const selected = LOGS_FIXTURE_SELECTED;
|
|
1967
1967
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
|
|
1968
1968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1969
|
-
|
|
1969
|
+
_chunk4EM7HIIMcjs.LogsPageView,
|
|
1970
1970
|
{
|
|
1971
1971
|
showHeader: false,
|
|
1972
1972
|
className: "p-[var(--spacing-system-l)]",
|
|
@@ -1974,7 +1974,7 @@ function LogsScreen({ compact = false }) {
|
|
|
1974
1974
|
onSearchChange: noop,
|
|
1975
1975
|
onOpenFilters: noop,
|
|
1976
1976
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1977
|
-
|
|
1977
|
+
_chunk4EM7HIIMcjs.LogsTableView,
|
|
1978
1978
|
{
|
|
1979
1979
|
logs: LOGS_FIXTURE_ENTRIES,
|
|
1980
1980
|
facets: LOGS_FIXTURE_FACETS,
|
|
@@ -1988,8 +1988,8 @@ function LogsScreen({ compact = false }) {
|
|
|
1988
1988
|
)
|
|
1989
1989
|
}
|
|
1990
1990
|
) }),
|
|
1991
|
-
!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,
|
|
1992
|
-
|
|
1991
|
+
!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, _chunk4EM7HIIMcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1992
|
+
_chunk4EM7HIIMcjs.LogDrawer,
|
|
1993
1993
|
{
|
|
1994
1994
|
docked: true,
|
|
1995
1995
|
isOpen: true,
|
|
@@ -2001,12 +2001,12 @@ function LogsScreen({ compact = false }) {
|
|
|
2001
2001
|
{ label: "Log ID", value: selected.logId },
|
|
2002
2002
|
{
|
|
2003
2003
|
label: "Source",
|
|
2004
|
-
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2004
|
+
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EM7HIIMcjs.ToolBadge, { toolType: _chunk6T6O36LTcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2005
2005
|
},
|
|
2006
|
-
{ label: "Device", value:
|
|
2006
|
+
{ label: "Device", value: _chunk4EM7HIIMcjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2007
2007
|
],
|
|
2008
2008
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2009
|
-
|
|
2009
|
+
_chunk4EM7HIIMcjs.DeviceCard,
|
|
2010
2010
|
{
|
|
2011
2011
|
...LOGS_FIXTURE_DEVICE,
|
|
2012
2012
|
actions: {
|
|
@@ -10,7 +10,7 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
14
14
|
require('./chunk-2ANICXS7.cjs');
|
|
15
15
|
require('./chunk-QU5K52OP.cjs');
|
|
16
16
|
require('./chunk-AXBVN5SW.cjs');
|
|
@@ -23,8 +23,8 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('./chunk-T4BBZ5ST.cjs');
|
|
25
25
|
require('./chunk-YUMFVQIN.cjs');
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-6T6O36LT.cjs');
|
|
27
|
+
require('./chunk-SUHPBFNU.cjs');
|
|
28
28
|
require('./chunk-F64VMOIB.cjs');
|
|
29
29
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
30
30
|
require('./chunk-LOFDIDSD.cjs');
|
|
@@ -1893,14 +1893,14 @@ var POLICIES = [
|
|
|
1893
1893
|
policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
|
|
1894
1894
|
];
|
|
1895
1895
|
var POLICIES_FIXTURE = {
|
|
1896
|
-
summary:
|
|
1896
|
+
summary: _chunk4EM7HIIMcjs.computePolicySummary.call(void 0, POLICIES),
|
|
1897
1897
|
rows: POLICIES.map((item) => ({
|
|
1898
1898
|
id: item.id,
|
|
1899
1899
|
name: item.name,
|
|
1900
1900
|
description: item.description,
|
|
1901
1901
|
critical: item.critical,
|
|
1902
1902
|
severityLabel: item.critical ? "Critical" : "Low",
|
|
1903
|
-
status:
|
|
1903
|
+
status: _chunk4EM7HIIMcjs.getPolicyTableStatus.call(void 0, item),
|
|
1904
1904
|
actions: [
|
|
1905
1905
|
{ label: "Policy Details", onClick: noop },
|
|
1906
1906
|
{ label: "Delete Policy", onClick: noop }
|
|
@@ -1914,16 +1914,16 @@ var POLICIES_FIXTURE = {
|
|
|
1914
1914
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1915
1915
|
function PoliciesScreen({ compact = false }) {
|
|
1916
1916
|
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1917
|
-
|
|
1917
|
+
_chunk4EM7HIIMcjs.PoliciesTable,
|
|
1918
1918
|
{
|
|
1919
1919
|
rows: POLICIES_FIXTURE.rows,
|
|
1920
1920
|
rowAsLink: true,
|
|
1921
|
-
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1921
|
+
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EM7HIIMcjs.DataTable.RowCount, {}),
|
|
1922
1922
|
emptyMessage: "No policies found."
|
|
1923
1923
|
}
|
|
1924
1924
|
);
|
|
1925
1925
|
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: [
|
|
1926
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1926
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EM7HIIMcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1927
1927
|
table
|
|
1928
1928
|
] });
|
|
1929
1929
|
}
|
|
@@ -13,7 +13,7 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
17
17
|
require('./chunk-2ANICXS7.cjs');
|
|
18
18
|
require('./chunk-QU5K52OP.cjs');
|
|
19
19
|
|
|
@@ -28,8 +28,8 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
28
28
|
require('./chunk-MZ4KBSH7.cjs');
|
|
29
29
|
require('./chunk-T4BBZ5ST.cjs');
|
|
30
30
|
require('./chunk-YUMFVQIN.cjs');
|
|
31
|
-
require('./chunk-
|
|
32
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-6T6O36LT.cjs');
|
|
32
|
+
require('./chunk-SUHPBFNU.cjs');
|
|
33
33
|
require('./chunk-F64VMOIB.cjs');
|
|
34
34
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
35
35
|
require('./chunk-LOFDIDSD.cjs');
|
|
@@ -1997,8 +1997,8 @@ function buildScriptsFixture(cast) {
|
|
|
1997
1997
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1998
1998
|
var WIDE_HIDDEN_COLUMNS = ["result", "open"];
|
|
1999
1999
|
var COMPACT_COLUMNS = [
|
|
2000
|
-
{ ...
|
|
2001
|
-
|
|
2000
|
+
{ ..._chunk4EM7HIIMcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
2001
|
+
_chunk4EM7HIIMcjs.EXECUTION_COLUMNS.status
|
|
2002
2002
|
];
|
|
2003
2003
|
var COMPACT_ROWS = 4;
|
|
2004
2004
|
var TOKEN_CLASS = {
|
|
@@ -2057,7 +2057,7 @@ function ScriptCodePicture({ script }) {
|
|
|
2057
2057
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2058
2058
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
|
|
2059
2059
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2060
|
-
|
|
2060
|
+
_chunk4EM7HIIMcjs.ScriptShellBadge,
|
|
2061
2061
|
{
|
|
2062
2062
|
value: script.shellType,
|
|
2063
2063
|
className: "shrink-0 text-ods-text-secondary text-h6",
|
|
@@ -2081,7 +2081,7 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2081
2081
|
return (
|
|
2082
2082
|
// Four runs of the card's row height fill the frame; the padding is what is left round them.
|
|
2083
2083
|
/* @__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,
|
|
2084
|
-
|
|
2084
|
+
_chunk4EM7HIIMcjs.ScriptExecutionsTable,
|
|
2085
2085
|
{
|
|
2086
2086
|
rows: fixture.executions.slice(0, COMPACT_ROWS),
|
|
2087
2087
|
columns: COMPACT_COLUMNS,
|
|
@@ -2091,13 +2091,13 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2091
2091
|
) })
|
|
2092
2092
|
);
|
|
2093
2093
|
}
|
|
2094
|
-
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2094
|
+
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EM7HIIMcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
|
|
2095
2095
|
return (
|
|
2096
2096
|
// The frame's tighter padding and no header row: the output opened under a run needs the height.
|
|
2097
2097
|
/* @__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: [
|
|
2098
2098
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
|
|
2099
2099
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2100
|
-
|
|
2100
|
+
_chunk4EM7HIIMcjs.ScriptExecutionsTable,
|
|
2101
2101
|
{
|
|
2102
2102
|
rows: fixture.executions,
|
|
2103
2103
|
hideColumns: WIDE_HIDDEN_COLUMNS,
|
|
@@ -15,7 +15,7 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
19
19
|
require('./chunk-2ANICXS7.cjs');
|
|
20
20
|
require('./chunk-QU5K52OP.cjs');
|
|
21
21
|
|
|
@@ -30,8 +30,8 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
30
30
|
require('./chunk-MZ4KBSH7.cjs');
|
|
31
31
|
require('./chunk-T4BBZ5ST.cjs');
|
|
32
32
|
require('./chunk-YUMFVQIN.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-6T6O36LT.cjs');
|
|
34
|
+
require('./chunk-SUHPBFNU.cjs');
|
|
35
35
|
require('./chunk-F64VMOIB.cjs');
|
|
36
36
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
37
37
|
require('./chunk-LOFDIDSD.cjs');
|
|
@@ -1924,12 +1924,12 @@ function StaticPackageField({ value }) {
|
|
|
1924
1924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1925
1925
|
_chunkAXBVN5SWcjs.Autocomplete,
|
|
1926
1926
|
{
|
|
1927
|
-
label:
|
|
1927
|
+
label: _chunk4EM7HIIMcjs.PACKAGE_SEARCH_LABEL,
|
|
1928
1928
|
labelVariant: "large",
|
|
1929
1929
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1930
1930
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1931
1931
|
onChange: noop,
|
|
1932
|
-
placeholder:
|
|
1932
|
+
placeholder: _chunk4EM7HIIMcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1933
1933
|
}
|
|
1934
1934
|
);
|
|
1935
1935
|
}
|
|
@@ -1943,7 +1943,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1943
1943
|
[fixture.devices, fixture.selectedIds]
|
|
1944
1944
|
);
|
|
1945
1945
|
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,
|
|
1946
|
-
|
|
1946
|
+
_chunk4EM7HIIMcjs.SoftwareActionForm,
|
|
1947
1947
|
{
|
|
1948
1948
|
action: fixture.action,
|
|
1949
1949
|
showHeader: false,
|
|
@@ -1955,7 +1955,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1955
1955
|
initialValues: fixture.initialValues,
|
|
1956
1956
|
renderPackageSearch,
|
|
1957
1957
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1958
|
-
|
|
1958
|
+
_chunk4EM7HIIMcjs.DeviceSelector,
|
|
1959
1959
|
{
|
|
1960
1960
|
devices: selected,
|
|
1961
1961
|
loading: false,
|
package/package.json
CHANGED
|
@@ -102,6 +102,7 @@ const ChatMessageEnhanced = forwardRef<HTMLDivElement, ChatMessageEnhancedProps>
|
|
|
102
102
|
approvalVariant,
|
|
103
103
|
appearance: appearanceProp,
|
|
104
104
|
authorType: authorTypeProp,
|
|
105
|
+
selfAuthorType,
|
|
105
106
|
assistantIcon,
|
|
106
107
|
contextItems,
|
|
107
108
|
resolveContextIcon,
|
|
@@ -115,12 +116,19 @@ const ChatMessageEnhanced = forwardRef<HTMLDivElement, ChatMessageEnhancedProps>
|
|
|
115
116
|
},
|
|
116
117
|
ref,
|
|
117
118
|
) => {
|
|
118
|
-
|
|
119
|
+
// A `user` row is a PERSON (the end user, a technician, a system line); the
|
|
120
|
+
// agent's turns are `assistant`. Which person is the viewer is the thread's
|
|
121
|
+
// call (`selfAuthorType`): the viewer's own turns draw as the bubble on the
|
|
122
|
+
// right, another person's as an incoming reply.
|
|
123
|
+
const isHuman = role === 'user';
|
|
119
124
|
const isError = role === 'error';
|
|
120
125
|
const inheritedAppearance = useChatAppearance();
|
|
121
126
|
const appearance = appearanceProp ?? inheritedAppearance;
|
|
122
127
|
const isV2 = appearance === CHAT_APPEARANCE.V2;
|
|
123
|
-
const authorType = authorTypeProp ?? (
|
|
128
|
+
const authorType = authorTypeProp ?? (isHuman ? 'user' : assistantType === 'mingo' ? 'mingo' : 'fae');
|
|
129
|
+
const isOtherPerson =
|
|
130
|
+
isHuman && selfAuthorType !== undefined && authorType !== 'system' && authorType !== selfAuthorType;
|
|
131
|
+
const isUser = isHuman && !isOtherPerson;
|
|
124
132
|
|
|
125
133
|
// Inline-card rendering uses a HOST-PROVIDED `renderEntityCard` function
|
|
126
134
|
// (v6.1 §B.2.7 — DRY duplications #2). The OSS-lib stays data-agnostic:
|
|
@@ -524,18 +532,19 @@ const ChatMessageEnhanced = forwardRef<HTMLDivElement, ChatMessageEnhancedProps>
|
|
|
524
532
|
// its own short line above the message (on the right for the user), never
|
|
525
533
|
// beside it: a face in the row indents every line of the message by its
|
|
526
534
|
// width. The NAME is written only where it is the information itself: a
|
|
527
|
-
// system line and
|
|
528
|
-
// own turns as `admin` too; those
|
|
529
|
-
// Every face carries its name for
|
|
530
|
-
|
|
531
|
-
const
|
|
535
|
+
// system line and another person answering (a technician in the end
|
|
536
|
+
// user's thread). Mingo sends the admin's own turns as `admin` too; those
|
|
537
|
+
// are the user's words and draw as such. Every face carries its name for
|
|
538
|
+
// assistive tech and on hover.
|
|
539
|
+
const showName = isSystem || isOtherPerson || (authorType === 'admin' && !isUser);
|
|
540
|
+
const displayName = name || (isHuman ? 'User' : assistantType === 'mingo' ? 'Mingo' : 'Fae');
|
|
532
541
|
const faceBox = 'h-5 w-5 flex-shrink-0';
|
|
533
542
|
const face: ReactNode =
|
|
534
|
-
!showAvatar || isSystem ? null : !
|
|
543
|
+
!showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? (
|
|
535
544
|
<span title={displayName} className={cn('flex items-center justify-center', faceBox)}>
|
|
536
545
|
{assistantIcon}
|
|
537
546
|
</span>
|
|
538
|
-
) : !
|
|
547
|
+
) : !isHuman && !avatar && assistantType ? (
|
|
539
548
|
// An agent with no picture shows its packaged mark, never initials.
|
|
540
549
|
<span role="img" aria-label={displayName} title={displayName} className={cn('inline-flex', faceBox)}>
|
|
541
550
|
<AgentMark agent={assistantType} className="h-full w-full rounded-full" />
|
|
@@ -755,6 +764,7 @@ const MemoizedChatMessageEnhanced = memo(ChatMessageEnhanced, (prevProps, nextPr
|
|
|
755
764
|
prevProps.approvalVariant === nextProps.approvalVariant &&
|
|
756
765
|
prevProps.appearance === nextProps.appearance &&
|
|
757
766
|
prevProps.authorType === nextProps.authorType &&
|
|
767
|
+
prevProps.selfAuthorType === nextProps.selfAuthorType &&
|
|
758
768
|
prevProps.assistantIcon === nextProps.assistantIcon &&
|
|
759
769
|
prevProps.className === nextProps.className &&
|
|
760
770
|
// Reference equality — the host re-uses the same array instance per
|
|
@@ -140,6 +140,7 @@ const ChatMessageList = forwardRef<HTMLDivElement, ChatMessageListProps>(
|
|
|
140
140
|
contentClassName,
|
|
141
141
|
assistantType,
|
|
142
142
|
approvalVariant,
|
|
143
|
+
selfAuthorType,
|
|
143
144
|
appearance = CHAT_APPEARANCE.CLASSIC,
|
|
144
145
|
assistantIcon,
|
|
145
146
|
pendingApprovals,
|
|
@@ -1047,6 +1048,7 @@ const ChatMessageList = forwardRef<HTMLDivElement, ChatMessageListProps>(
|
|
|
1047
1048
|
assistantType={message.assistantType || assistantType}
|
|
1048
1049
|
approvalVariant={approvalVariant}
|
|
1049
1050
|
authorType={message.authorType}
|
|
1051
|
+
selfAuthorType={selfAuthorType}
|
|
1050
1052
|
assistantIcon={message.role !== 'user' ? assistantIcon : undefined}
|
|
1051
1053
|
contextItems={message.contextItems}
|
|
1052
1054
|
resolveContextIcon={resolveContextIcon}
|
|
@@ -138,6 +138,10 @@ export interface ChatMessageEnhancedProps extends Omit<HTMLAttributes<HTMLDivEle
|
|
|
138
138
|
name?: string;
|
|
139
139
|
assistantType?: AssistantType;
|
|
140
140
|
authorType?: AuthorType;
|
|
141
|
+
/** Whose words are the viewer's own, for a thread where two kinds of people
|
|
142
|
+
* write (`ChatMessageList.selfAuthorType`). Omit and every `user` turn is
|
|
143
|
+
* the viewer's own. */
|
|
144
|
+
selfAuthorType?: AuthorType;
|
|
141
145
|
/** Viewer variant for approval blocks in this message's segments.
|
|
142
146
|
* `'admin'` (default) = full command block; `'client'` = end-client
|
|
143
147
|
* (Fae desktop app) title-only card. Forwarded to
|
|
@@ -295,6 +299,12 @@ export interface ChatMessageListProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
295
299
|
* `'client'` ONLY on true end-client surfaces — admin views of a Fae
|
|
296
300
|
* dialog (tickets dialog client tab) keep the default. */
|
|
297
301
|
approvalVariant?: ApprovalBlockVariant;
|
|
302
|
+
/** The `authorType` whose turns are the viewer's own: a bubble on the right.
|
|
303
|
+
* Every other person's turn (a `user` row of another author type) reads as
|
|
304
|
+
* an incoming reply, with their face and name. Omit where every `user` row
|
|
305
|
+
* is the viewer's (Mingo: the admin's own turns arrive as `admin`); the Fae
|
|
306
|
+
* client passes `'user'`, so a technician (`admin`) answers from the left. */
|
|
307
|
+
selfAuthorType?: AuthorType;
|
|
298
308
|
/** Visual generation of the whole thread, blocks included. Default
|
|
299
309
|
* `classic`; the Fae client passes `v2`. See `ChatAppearance`. */
|
|
300
310
|
appearance?: ChatAppearance;
|