@flamingo-stack/openframe-frontend-core 0.0.817 → 0.0.818
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-7KBHLP4E.cjs → chunk-4XASD2TL.cjs} +16 -16
- package/dist/{chunk-EX7M3VQC.cjs → chunk-5AIOYEXW.cjs} +47 -47
- package/dist/{chunk-UFBVOBYR.cjs → chunk-5VRSUEC5.cjs} +10 -10
- package/dist/{chunk-BL2J5RJK.cjs → chunk-6QT5K5I5.cjs} +6 -6
- package/dist/{chunk-ZP4JMX7G.cjs → chunk-AE22KOW3.cjs} +53 -53
- package/dist/{chunk-F2LVBRHC.cjs → chunk-BD42NMCT.cjs} +4 -4
- package/dist/{chunk-C2OUXL3Q.cjs → chunk-DGAX5WG2.cjs} +2 -2
- package/dist/{chunk-MAHJY2PO.cjs → chunk-DL4HWYIB.cjs} +3 -3
- package/dist/{chunk-24M2JYM5.cjs → chunk-IQCHV7Z2.cjs} +238 -282
- package/dist/{chunk-4ROR52OW.cjs → chunk-JTBJB4JF.cjs} +9 -9
- package/dist/{chunk-JMOCM2SW.cjs → chunk-NEXMK6OP.cjs} +4 -4
- package/dist/{chunk-6F4YGHGM.cjs → chunk-NWIEZUM7.cjs} +19 -19
- package/dist/{chunk-5TSYOIIZ.cjs → chunk-U2THWP25.cjs} +32 -32
- package/dist/{chunk-RDHF3F5R.cjs → chunk-VGZXB3SY.cjs} +3 -3
- package/dist/{chunk-TKEYWSDZ.cjs → chunk-VRXDTRIY.cjs} +39 -39
- package/dist/{chunk-P7JQGOX4.cjs → chunk-YHPUD4PM.cjs} +11 -11
- package/dist/{chunk-IOFIHVVW.cjs → chunk-YMPPE322.cjs} +107 -107
- package/dist/{chunk-DSBRWP5M.cjs → chunk-ZWAVMZIF.cjs} +7 -7
- package/dist/{cloud-tenants-NMAXIJLL.cjs → cloud-tenants-V6EV4OGK.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/embeddable-chat.d.ts +0 -8
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +10 -67
- package/dist/components/chat/entity-cards/dispatch.d.ts +3 -10
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -23
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/types/entities/data-room-doc.d.ts +0 -12
- package/dist/components/chat/types/entities/data-room-doc.d.ts.map +1 -1
- package/dist/components/chat/utils/source-row-cta.d.ts +9 -48
- package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
- package/dist/components/chat/utils/source-row-cta.js +7 -32
- 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 +61 -61
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/contexts/chat-runtime-context.d.ts +3 -14
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-QBKWVHE6.cjs → devices-6KZAJAAS.cjs} +5 -5
- package/dist/{embeddable-chat-WNPCPMDL.cjs → embeddable-chat-5IHA5SUZ.cjs} +69 -126
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-FSAYWM25.cjs → knowledge-I7FDQQYJ.cjs} +5 -5
- package/dist/{logs-OZX4SYHG.cjs → logs-Q7PAVJUG.cjs} +12 -12
- package/dist/{policies-LPCUCTLX.cjs → policies-C3DW5CHS.cjs} +8 -8
- package/dist/{scripts-ZNFZSONW.cjs → scripts-BET663HD.cjs} +9 -9
- package/dist/{software-update-BRYOVQVY.cjs → software-update-W7ZQXEPK.cjs} +7 -7
- package/dist/utils/source-grouping.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +10 -74
- package/src/components/chat/entity-cards/data-room-doc-card.tsx +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +6 -31
- package/src/components/chat/types/entities/data-room-doc.ts +0 -12
- package/src/components/chat/utils/source-row-cta.ts +21 -102
- package/src/contexts/chat-runtime-context.tsx +3 -11
- package/src/utils/source-grouping.ts +2 -2
|
@@ -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 _chunkYMPPE322cjs = require('./chunk-YMPPE322.cjs');
|
|
12
12
|
require('./chunk-467T3LCG.cjs');
|
|
13
13
|
require('./chunk-EHANO6UE.cjs');
|
|
14
14
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -21,10 +21,10 @@ require('./chunk-7Z536SPR.cjs');
|
|
|
21
21
|
require('./chunk-7DNL734S.cjs');
|
|
22
22
|
require('./chunk-MZ4KBSH7.cjs');
|
|
23
23
|
require('./chunk-5SZ4ILU3.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-4XASD2TL.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkIQCHV7Z2cjs = require('./chunk-IQCHV7Z2.cjs');
|
|
28
28
|
require('./chunk-OBQ5WUNG.cjs');
|
|
29
29
|
require('./chunk-6CZVQ72C.cjs');
|
|
30
30
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1905,10 +1905,10 @@ function KnowledgeScreen(_props) {
|
|
|
1905
1905
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1906
1906
|
const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
|
|
1907
1907
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1908
|
-
|
|
1908
|
+
_chunkYMPPE322cjs.KnowledgeBaseArticleView,
|
|
1909
1909
|
{
|
|
1910
1910
|
...fixture.article,
|
|
1911
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
|
|
1912
1912
|
}
|
|
1913
1913
|
) });
|
|
1914
1914
|
}
|
|
@@ -16,7 +16,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkYMPPE322cjs = require('./chunk-YMPPE322.cjs');
|
|
20
20
|
require('./chunk-467T3LCG.cjs');
|
|
21
21
|
require('./chunk-EHANO6UE.cjs');
|
|
22
22
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -31,8 +31,8 @@ require('./chunk-MZ4KBSH7.cjs');
|
|
|
31
31
|
require('./chunk-5SZ4ILU3.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
35
|
-
require('./chunk-
|
|
34
|
+
var _chunk4XASD2TLcjs = require('./chunk-4XASD2TL.cjs');
|
|
35
|
+
require('./chunk-IQCHV7Z2.cjs');
|
|
36
36
|
require('./chunk-OBQ5WUNG.cjs');
|
|
37
37
|
require('./chunk-6CZVQ72C.cjs');
|
|
38
38
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1886,7 +1886,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
|
|
|
1886
1886
|
id: logId,
|
|
1887
1887
|
logId,
|
|
1888
1888
|
timestamp: displayTime(_chunkFDZOE5TLcjs.demoMinutesAgo.call(void 0, minutesAgo)),
|
|
1889
|
-
status: { label: severity, variant:
|
|
1889
|
+
status: { label: severity, variant: _chunkYMPPE322cjs.logSeverityVariant.call(void 0, severity) },
|
|
1890
1890
|
source: { name: toolType, toolType },
|
|
1891
1891
|
device: device2,
|
|
1892
1892
|
description: { title: summary }
|
|
@@ -1958,13 +1958,13 @@ var NO_FILTERS = {};
|
|
|
1958
1958
|
var ACTION_COLUMNS = ["copy", "quickView", "open"];
|
|
1959
1959
|
var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
|
|
1960
1960
|
var logHref = () => "#";
|
|
1961
|
-
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1961
|
+
var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYMPPE322cjs.LogCopyIconButton, {});
|
|
1962
1962
|
function LogsScreen({ compact = false }) {
|
|
1963
1963
|
const [dock, setDock] = _react.useState.call(void 0, null);
|
|
1964
1964
|
const selected = LOGS_FIXTURE_SELECTED;
|
|
1965
1965
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
|
|
1966
1966
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1967
|
-
|
|
1967
|
+
_chunkYMPPE322cjs.LogsPageView,
|
|
1968
1968
|
{
|
|
1969
1969
|
showHeader: false,
|
|
1970
1970
|
className: "p-[var(--spacing-system-l)]",
|
|
@@ -1972,7 +1972,7 @@ function LogsScreen({ compact = false }) {
|
|
|
1972
1972
|
onSearchChange: noop,
|
|
1973
1973
|
onOpenFilters: noop,
|
|
1974
1974
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1975
|
-
|
|
1975
|
+
_chunkYMPPE322cjs.LogsTableView,
|
|
1976
1976
|
{
|
|
1977
1977
|
logs: LOGS_FIXTURE_ENTRIES,
|
|
1978
1978
|
facets: LOGS_FIXTURE_FACETS,
|
|
@@ -1986,8 +1986,8 @@ function LogsScreen({ compact = false }) {
|
|
|
1986
1986
|
)
|
|
1987
1987
|
}
|
|
1988
1988
|
) }),
|
|
1989
|
-
!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,
|
|
1990
|
-
|
|
1989
|
+
!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, _chunkYMPPE322cjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1990
|
+
_chunkYMPPE322cjs.LogDrawer,
|
|
1991
1991
|
{
|
|
1992
1992
|
docked: true,
|
|
1993
1993
|
isOpen: true,
|
|
@@ -1999,12 +1999,12 @@ function LogsScreen({ compact = false }) {
|
|
|
1999
1999
|
{ label: "Log ID", value: selected.logId },
|
|
2000
2000
|
{
|
|
2001
2001
|
label: "Source",
|
|
2002
|
-
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2002
|
+
value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYMPPE322cjs.ToolBadge, { toolType: _chunk4XASD2TLcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2003
2003
|
},
|
|
2004
|
-
{ label: "Device", value:
|
|
2004
|
+
{ label: "Device", value: _chunkYMPPE322cjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2005
2005
|
],
|
|
2006
2006
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2007
|
-
|
|
2007
|
+
_chunkYMPPE322cjs.DeviceCard,
|
|
2008
2008
|
{
|
|
2009
2009
|
...LOGS_FIXTURE_DEVICE,
|
|
2010
2010
|
actions: {
|
|
@@ -10,7 +10,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYMPPE322cjs = require('./chunk-YMPPE322.cjs');
|
|
14
14
|
require('./chunk-467T3LCG.cjs');
|
|
15
15
|
require('./chunk-EHANO6UE.cjs');
|
|
16
16
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -23,8 +23,8 @@ require('./chunk-7Z536SPR.cjs');
|
|
|
23
23
|
require('./chunk-7DNL734S.cjs');
|
|
24
24
|
require('./chunk-MZ4KBSH7.cjs');
|
|
25
25
|
require('./chunk-5SZ4ILU3.cjs');
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-4XASD2TL.cjs');
|
|
27
|
+
require('./chunk-IQCHV7Z2.cjs');
|
|
28
28
|
require('./chunk-OBQ5WUNG.cjs');
|
|
29
29
|
require('./chunk-6CZVQ72C.cjs');
|
|
30
30
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1891,14 +1891,14 @@ var POLICIES = [
|
|
|
1891
1891
|
policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
|
|
1892
1892
|
];
|
|
1893
1893
|
var POLICIES_FIXTURE = {
|
|
1894
|
-
summary:
|
|
1894
|
+
summary: _chunkYMPPE322cjs.computePolicySummary.call(void 0, POLICIES),
|
|
1895
1895
|
rows: POLICIES.map((item) => ({
|
|
1896
1896
|
id: item.id,
|
|
1897
1897
|
name: item.name,
|
|
1898
1898
|
description: item.description,
|
|
1899
1899
|
critical: item.critical,
|
|
1900
1900
|
severityLabel: item.critical ? "Critical" : "Low",
|
|
1901
|
-
status:
|
|
1901
|
+
status: _chunkYMPPE322cjs.getPolicyTableStatus.call(void 0, item),
|
|
1902
1902
|
actions: [
|
|
1903
1903
|
{ label: "Policy Details", onClick: noop },
|
|
1904
1904
|
{ label: "Delete Policy", onClick: noop }
|
|
@@ -1912,16 +1912,16 @@ var POLICIES_FIXTURE = {
|
|
|
1912
1912
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1913
1913
|
function PoliciesScreen({ compact = false }) {
|
|
1914
1914
|
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1915
|
-
|
|
1915
|
+
_chunkYMPPE322cjs.PoliciesTable,
|
|
1916
1916
|
{
|
|
1917
1917
|
rows: POLICIES_FIXTURE.rows,
|
|
1918
1918
|
rowAsLink: true,
|
|
1919
|
-
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1919
|
+
rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYMPPE322cjs.DataTable.RowCount, {}),
|
|
1920
1920
|
emptyMessage: "No policies found."
|
|
1921
1921
|
}
|
|
1922
1922
|
);
|
|
1923
1923
|
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: [
|
|
1924
|
-
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1924
|
+
!compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYMPPE322cjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
|
|
1925
1925
|
table
|
|
1926
1926
|
] });
|
|
1927
1927
|
}
|
|
@@ -13,7 +13,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkYMPPE322cjs = require('./chunk-YMPPE322.cjs');
|
|
17
17
|
require('./chunk-467T3LCG.cjs');
|
|
18
18
|
require('./chunk-EHANO6UE.cjs');
|
|
19
19
|
|
|
@@ -28,8 +28,8 @@ require('./chunk-7Z536SPR.cjs');
|
|
|
28
28
|
require('./chunk-7DNL734S.cjs');
|
|
29
29
|
require('./chunk-MZ4KBSH7.cjs');
|
|
30
30
|
require('./chunk-5SZ4ILU3.cjs');
|
|
31
|
-
require('./chunk-
|
|
32
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-4XASD2TL.cjs');
|
|
32
|
+
require('./chunk-IQCHV7Z2.cjs');
|
|
33
33
|
require('./chunk-OBQ5WUNG.cjs');
|
|
34
34
|
require('./chunk-6CZVQ72C.cjs');
|
|
35
35
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1995,8 +1995,8 @@ function buildScriptsFixture(cast) {
|
|
|
1995
1995
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1996
1996
|
var WIDE_HIDDEN_COLUMNS = ["result", "open"];
|
|
1997
1997
|
var COMPACT_COLUMNS = [
|
|
1998
|
-
{ ...
|
|
1999
|
-
|
|
1998
|
+
{ ..._chunkYMPPE322cjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
1999
|
+
_chunkYMPPE322cjs.EXECUTION_COLUMNS.status
|
|
2000
2000
|
];
|
|
2001
2001
|
var COMPACT_ROWS = 4;
|
|
2002
2002
|
var TOKEN_CLASS = {
|
|
@@ -2055,7 +2055,7 @@ function ScriptCodePicture({ script }) {
|
|
|
2055
2055
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
|
|
2056
2056
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
|
|
2057
2057
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2058
|
-
|
|
2058
|
+
_chunkYMPPE322cjs.ScriptShellBadge,
|
|
2059
2059
|
{
|
|
2060
2060
|
value: script.shellType,
|
|
2061
2061
|
className: "shrink-0 text-ods-text-secondary text-h6",
|
|
@@ -2079,7 +2079,7 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2079
2079
|
return (
|
|
2080
2080
|
// Four runs of the card's row height fill the frame; the padding is what is left round them.
|
|
2081
2081
|
/* @__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,
|
|
2082
|
-
|
|
2082
|
+
_chunkYMPPE322cjs.ScriptExecutionsTable,
|
|
2083
2083
|
{
|
|
2084
2084
|
rows: fixture.executions.slice(0, COMPACT_ROWS),
|
|
2085
2085
|
columns: COMPACT_COLUMNS,
|
|
@@ -2089,13 +2089,13 @@ function ScriptsScreen({ compact = false }) {
|
|
|
2089
2089
|
) })
|
|
2090
2090
|
);
|
|
2091
2091
|
}
|
|
2092
|
-
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2092
|
+
const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYMPPE322cjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
|
|
2093
2093
|
return (
|
|
2094
2094
|
// The frame's tighter padding and no header row: the output opened under a run needs the height.
|
|
2095
2095
|
/* @__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: [
|
|
2096
2096
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
|
|
2097
2097
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2098
|
-
|
|
2098
|
+
_chunkYMPPE322cjs.ScriptExecutionsTable,
|
|
2099
2099
|
{
|
|
2100
2100
|
rows: fixture.executions,
|
|
2101
2101
|
hideColumns: WIDE_HIDDEN_COLUMNS,
|
|
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkYMPPE322cjs = require('./chunk-YMPPE322.cjs');
|
|
19
19
|
require('./chunk-467T3LCG.cjs');
|
|
20
20
|
require('./chunk-EHANO6UE.cjs');
|
|
21
21
|
|
|
@@ -30,8 +30,8 @@ require('./chunk-7Z536SPR.cjs');
|
|
|
30
30
|
require('./chunk-7DNL734S.cjs');
|
|
31
31
|
require('./chunk-MZ4KBSH7.cjs');
|
|
32
32
|
require('./chunk-5SZ4ILU3.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-4XASD2TL.cjs');
|
|
34
|
+
require('./chunk-IQCHV7Z2.cjs');
|
|
35
35
|
require('./chunk-OBQ5WUNG.cjs');
|
|
36
36
|
require('./chunk-6CZVQ72C.cjs');
|
|
37
37
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1922,12 +1922,12 @@ function StaticPackageField({ value }) {
|
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1923
1923
|
_chunkIJCSQFLDcjs.Autocomplete,
|
|
1924
1924
|
{
|
|
1925
|
-
label:
|
|
1925
|
+
label: _chunkYMPPE322cjs.PACKAGE_SEARCH_LABEL,
|
|
1926
1926
|
labelVariant: "large",
|
|
1927
1927
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1928
1928
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1929
1929
|
onChange: noop,
|
|
1930
|
-
placeholder:
|
|
1930
|
+
placeholder: _chunkYMPPE322cjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1931
1931
|
}
|
|
1932
1932
|
);
|
|
1933
1933
|
}
|
|
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1941
1941
|
[fixture.devices, fixture.selectedIds]
|
|
1942
1942
|
);
|
|
1943
1943
|
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,
|
|
1944
|
-
|
|
1944
|
+
_chunkYMPPE322cjs.SoftwareActionForm,
|
|
1945
1945
|
{
|
|
1946
1946
|
action: fixture.action,
|
|
1947
1947
|
showHeader: false,
|
|
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1953
1953
|
initialValues: fixture.initialValues,
|
|
1954
1954
|
renderPackageSearch,
|
|
1955
1955
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1956
|
-
|
|
1956
|
+
_chunkYMPPE322cjs.DeviceSelector,
|
|
1957
1957
|
{
|
|
1958
1958
|
devices: selected,
|
|
1959
1959
|
loading: false,
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
import type { ChatSource } from '../components/chat/types/message.types';
|
|
25
25
|
/**
|
|
26
26
|
* Doc-table documentTypes: whole documents with their own viewer (markdown =
|
|
27
|
-
* product docs, data_room_doc = data room). They carry an in-app `path
|
|
28
|
-
*
|
|
27
|
+
* product docs, data_room_doc = data room). They carry an in-app `path` (handed
|
|
28
|
+
* to the host's composer as the slug), and a server never folds them
|
|
29
29
|
* into one citation (`groupsByTable`); the strip still draws them as one chip
|
|
30
30
|
* per table. The hub's per-source contract test pins this list to its
|
|
31
31
|
* doc-table configs.
|
package/package.json
CHANGED
|
@@ -164,14 +164,6 @@ const drawerDefaultWidthWithoutRail = (viewportWidth: number) => drawerDefaultWi
|
|
|
164
164
|
// =============================================================================
|
|
165
165
|
|
|
166
166
|
export interface EmbeddableChatProps {
|
|
167
|
-
/** Base route for in-app doc chip nav (e.g. `/knowledge-base`). When
|
|
168
|
-
* omitted, defaults are derived from `runtime.source`. */
|
|
169
|
-
baseRoute?: string;
|
|
170
|
-
/** When the embedder doesn't host a `[...path]` route to render markdown
|
|
171
|
-
* chips against, set this to a platform that does. Chips with
|
|
172
|
-
* `externalUrl: null` resolve to `getPlatformUrl(chipBasePlatform) +
|
|
173
|
-
* '/knowledge-base/' + path` and open in a new tab. */
|
|
174
|
-
chipBasePlatform?: string;
|
|
175
167
|
/** How many source chips the strip under an answer draws while the answer is written (default 1). `0` draws no
|
|
176
168
|
* strip until the answer ends: for a host whose answers rarely cite sources, where a strip that appears and then
|
|
177
169
|
* goes away would move the thread. */
|
|
@@ -738,13 +730,11 @@ function SourceChipSkeleton(props: { 'data-loading-item'?: boolean }) {
|
|
|
738
730
|
|
|
739
731
|
function SourceChip(props: {
|
|
740
732
|
src: ChatSource;
|
|
741
|
-
baseRoute: string;
|
|
742
|
-
chipBasePlatform?: string;
|
|
743
733
|
onDiscuss?: (ref: ChatRef) => void;
|
|
744
734
|
/** The strip's list-item marker, carried by the chip's frame like its loading form's. */
|
|
745
735
|
'data-loading-item'?: boolean;
|
|
746
736
|
}) {
|
|
747
|
-
const { src,
|
|
737
|
+
const { src, onDiscuss } = props;
|
|
748
738
|
const marks = loadingItemProps(props);
|
|
749
739
|
const runtime = useRequiredChatRuntime();
|
|
750
740
|
// Single CTA resolver — same icon, same href chain, same ChatRef
|
|
@@ -759,7 +749,7 @@ function SourceChip(props: {
|
|
|
759
749
|
targetPlatform: src.targetPlatform ?? null,
|
|
760
750
|
path: src.path,
|
|
761
751
|
},
|
|
762
|
-
sourceRowCtxFromRuntime(runtime
|
|
752
|
+
sourceRowCtxFromRuntime(runtime),
|
|
763
753
|
);
|
|
764
754
|
const Icon = cta.icon;
|
|
765
755
|
const icon = <Icon className="h-3.5 w-3.5" />;
|
|
@@ -778,7 +768,7 @@ function SourceChip(props: {
|
|
|
778
768
|
targetPlatform: item.targetPlatform ?? null,
|
|
779
769
|
path: item.path,
|
|
780
770
|
},
|
|
781
|
-
sourceRowCtxFromRuntime(runtime
|
|
771
|
+
sourceRowCtxFromRuntime(runtime),
|
|
782
772
|
);
|
|
783
773
|
const ItemIcon = itemCta.icon;
|
|
784
774
|
// Read out of the CTA before the `onClick` closure below is built: a
|
|
@@ -886,16 +876,12 @@ function SourceChip(props: {
|
|
|
886
876
|
function SourceChips({
|
|
887
877
|
cited,
|
|
888
878
|
uncited,
|
|
889
|
-
baseRoute,
|
|
890
|
-
chipBasePlatform,
|
|
891
879
|
onDiscuss,
|
|
892
880
|
loading,
|
|
893
881
|
skeletonCount,
|
|
894
882
|
}: {
|
|
895
883
|
cited: ChatSource[];
|
|
896
884
|
uncited: ChatSource[];
|
|
897
|
-
baseRoute: string;
|
|
898
|
-
chipBasePlatform?: string;
|
|
899
885
|
onDiscuss?: (ref: ChatRef) => void;
|
|
900
886
|
/** The answer is still being written: the strip's frame, heading and a row of chips in their loading form, so
|
|
901
887
|
* the strip does not appear under the answer when it finishes. */
|
|
@@ -928,14 +914,7 @@ function SourceChips({
|
|
|
928
914
|
<span className="uppercase text-ods-text-muted text-h6">Top retrieved sources</span>
|
|
929
915
|
<div className="flex flex-wrap gap-1.5">
|
|
930
916
|
{fallback.map(src => (
|
|
931
|
-
<SourceChip
|
|
932
|
-
data-loading-item
|
|
933
|
-
key={src.index}
|
|
934
|
-
src={src}
|
|
935
|
-
baseRoute={baseRoute}
|
|
936
|
-
chipBasePlatform={chipBasePlatform}
|
|
937
|
-
onDiscuss={onDiscuss}
|
|
938
|
-
/>
|
|
917
|
+
<SourceChip data-loading-item key={src.index} src={src} onDiscuss={onDiscuss} />
|
|
939
918
|
))}
|
|
940
919
|
</div>
|
|
941
920
|
</div>
|
|
@@ -950,26 +929,10 @@ function SourceChips({
|
|
|
950
929
|
<span className="uppercase text-ods-text-muted text-h6">Sources</span>
|
|
951
930
|
<div className={`flex flex-wrap gap-1.5 ${expanded ? 'max-h-[200px] overflow-y-auto overscroll-contain' : ''}`}>
|
|
952
931
|
{cited.map(src => (
|
|
953
|
-
<SourceChip
|
|
954
|
-
data-loading-item
|
|
955
|
-
key={src.index}
|
|
956
|
-
src={src}
|
|
957
|
-
baseRoute={baseRoute}
|
|
958
|
-
chipBasePlatform={chipBasePlatform}
|
|
959
|
-
onDiscuss={onDiscuss}
|
|
960
|
-
/>
|
|
932
|
+
<SourceChip data-loading-item key={src.index} src={src} onDiscuss={onDiscuss} />
|
|
961
933
|
))}
|
|
962
934
|
{expanded &&
|
|
963
|
-
uncited.map(src =>
|
|
964
|
-
<SourceChip
|
|
965
|
-
data-loading-item
|
|
966
|
-
key={src.index}
|
|
967
|
-
src={src}
|
|
968
|
-
baseRoute={baseRoute}
|
|
969
|
-
chipBasePlatform={chipBasePlatform}
|
|
970
|
-
onDiscuss={onDiscuss}
|
|
971
|
-
/>
|
|
972
|
-
))}
|
|
935
|
+
uncited.map(src => <SourceChip data-loading-item key={src.index} src={src} onDiscuss={onDiscuss} />)}
|
|
973
936
|
{hasOverflow && (
|
|
974
937
|
<Button
|
|
975
938
|
variant="link"
|
|
@@ -1037,8 +1000,6 @@ export const EmbeddableChat = React.forwardRef<EmbeddableChatHandle, EmbeddableC
|
|
|
1037
1000
|
EmbeddableChat.displayName = 'EmbeddableChat';
|
|
1038
1001
|
|
|
1039
1002
|
function EmbeddableChatInner({
|
|
1040
|
-
baseRoute,
|
|
1041
|
-
chipBasePlatform,
|
|
1042
1003
|
sourceSkeletonCount = SOURCE_CHIP_SKELETON_COUNT,
|
|
1043
1004
|
enabledRagTableIds = null,
|
|
1044
1005
|
emptyStateGreeting = null,
|
|
@@ -1618,15 +1579,6 @@ function EmbeddableChatInner({
|
|
|
1618
1579
|
// forwards it verbatim to the message list and calls it from the `mention://`
|
|
1619
1580
|
// override; the host returns a self-fetching chip.
|
|
1620
1581
|
|
|
1621
|
-
// Resolve base route. Hub default mapping: flamingo → /knowledge-base,
|
|
1622
|
-
// anything else → /data-room. Embedders override per platform. An embedder that
|
|
1623
|
-
// doesn't host an in-app doc viewer should NOT pass an empty baseRoute (that just
|
|
1624
|
-
// falls back to the platform default here) — instead it sets a truthy baseRoute +
|
|
1625
|
-
// `chipBasePlatform` so doc chips with no externalUrl resolve cross-platform to that
|
|
1626
|
-
// platform's public knowledge hub (`getPlatformUrl(chipBasePlatform)/knowledge-base/…`),
|
|
1627
|
-
// exactly like the hub's openframe config (baseRoute:'/', chipBasePlatform:'openframe').
|
|
1628
|
-
const resolvedBaseRoute = baseRoute || (source === 'flamingo' ? '/knowledge-base' : '/data-room');
|
|
1629
|
-
|
|
1630
1582
|
const handleClose = useCallback(() => setIsOpen(false), [setIsOpen]);
|
|
1631
1583
|
// What the header close controls call; absent on a panel that cannot close.
|
|
1632
1584
|
const closeControl = closable ? handleClose : undefined;
|
|
@@ -1670,11 +1622,9 @@ function EmbeddableChatInner({
|
|
|
1670
1622
|
renderChatInlineEntityCard(reference, {
|
|
1671
1623
|
onDiscuss: askAbout,
|
|
1672
1624
|
onDisplay: displayRef,
|
|
1673
|
-
baseRoute: resolvedBaseRoute,
|
|
1674
|
-
chipBasePlatform,
|
|
1675
1625
|
extras,
|
|
1676
1626
|
}),
|
|
1677
|
-
[askAbout, displayRef,
|
|
1627
|
+
[askAbout, displayRef, extras],
|
|
1678
1628
|
);
|
|
1679
1629
|
|
|
1680
1630
|
// Stable assistant-icon element. `<ChatMessageList>` forwards this prop to
|
|
@@ -2075,14 +2025,7 @@ function EmbeddableChatInner({
|
|
|
2075
2025
|
if (sourceSkeletonCount <= 0) return null;
|
|
2076
2026
|
return (
|
|
2077
2027
|
<div className="pb-2">
|
|
2078
|
-
<SourceChips
|
|
2079
|
-
loading
|
|
2080
|
-
skeletonCount={sourceSkeletonCount}
|
|
2081
|
-
cited={[]}
|
|
2082
|
-
uncited={[]}
|
|
2083
|
-
baseRoute={resolvedBaseRoute}
|
|
2084
|
-
chipBasePlatform={chipBasePlatform}
|
|
2085
|
-
/>
|
|
2028
|
+
<SourceChips loading skeletonCount={sourceSkeletonCount} cited={[]} uncited={[]} />
|
|
2086
2029
|
</div>
|
|
2087
2030
|
);
|
|
2088
2031
|
}
|
|
@@ -2090,18 +2033,11 @@ function EmbeddableChatInner({
|
|
|
2090
2033
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
2091
2034
|
return (
|
|
2092
2035
|
<div className="pb-2">
|
|
2093
|
-
<SourceChips
|
|
2094
|
-
cited={cited}
|
|
2095
|
-
uncited={uncited}
|
|
2096
|
-
baseRoute={resolvedBaseRoute}
|
|
2097
|
-
chipBasePlatform={chipBasePlatform}
|
|
2098
|
-
onDiscuss={askAbout}
|
|
2099
|
-
skeletonCount={sourceSkeletonCount}
|
|
2100
|
-
/>
|
|
2036
|
+
<SourceChips cited={cited} uncited={uncited} onDiscuss={askAbout} skeletonCount={sourceSkeletonCount} />
|
|
2101
2037
|
</div>
|
|
2102
2038
|
);
|
|
2103
2039
|
},
|
|
2104
|
-
[chatLoading, messages.length,
|
|
2040
|
+
[chatLoading, messages.length, askAbout, sourceSkeletonCount],
|
|
2105
2041
|
);
|
|
2106
2042
|
|
|
2107
2043
|
// Host node for in-panel Radix portals (see the body wrapper below).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Renders `[card://data_room_doc:<id>]` and `[card://markdown:<id>]` markers
|
|
12
12
|
* — both use this card because their viewer surface is structurally
|
|
13
|
-
* identical;
|
|
13
|
+
* identical; where each one's viewer lives is the host composer's decision.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
import { ExternalLink } from 'lucide-react';
|
|
@@ -241,8 +241,6 @@ export interface ChatCardDispatchExtras {
|
|
|
241
241
|
|
|
242
242
|
/** Per-card render options threaded through from the chat shell. */
|
|
243
243
|
export interface ChatCardRenderOptions {
|
|
244
|
-
baseRoute?: string;
|
|
245
|
-
chipBasePlatform?: string;
|
|
246
244
|
/** Host-supplied builders for cards whose derived props live in hub
|
|
247
245
|
* land (programs + product_release). When omitted, these card types
|
|
248
246
|
* render `null` and the shell falls back to title text. */
|
|
@@ -2011,8 +2009,6 @@ interface ChatCardLoaderProps {
|
|
|
2011
2009
|
chatRef: ChatRef;
|
|
2012
2010
|
onDiscuss?: (ref: ChatRef) => void;
|
|
2013
2011
|
onDisplay?: (ref: ChatRef) => void;
|
|
2014
|
-
baseRoute?: string;
|
|
2015
|
-
chipBasePlatform?: string;
|
|
2016
2012
|
extras?: ChatCardDispatchExtras;
|
|
2017
2013
|
}
|
|
2018
2014
|
|
|
@@ -2049,9 +2045,8 @@ function CardWithDisclosure({
|
|
|
2049
2045
|
* SINGLE URL-RESOLUTION POINT — same code path source chips already
|
|
2050
2046
|
* had. Before render dispatch:
|
|
2051
2047
|
* - Pass the ref through `resolveSourceRowCTA` to compute the
|
|
2052
|
-
* canonical `{href, targetPlatform}`
|
|
2053
|
-
*
|
|
2054
|
-
* awareness).
|
|
2048
|
+
* canonical `{href, targetPlatform}` through the host's composer
|
|
2049
|
+
* (`composeContentUrl`), the one address rule.
|
|
2055
2050
|
* - Pre-resolve href against `runtime.navigation.defaultContentOrigin`
|
|
2056
2051
|
* in embed mode (so modifier-click + copy-link land on the hub).
|
|
2057
2052
|
* - Re-attach the resolved values onto the ref so EVERY downstream
|
|
@@ -2062,14 +2057,7 @@ function CardWithDisclosure({
|
|
|
2062
2057
|
*
|
|
2063
2058
|
* Eliminates the entire "chip works, inline card doesn't" class of bug.
|
|
2064
2059
|
*/
|
|
2065
|
-
export function ChatCardLoader({
|
|
2066
|
-
chatRef,
|
|
2067
|
-
onDiscuss,
|
|
2068
|
-
onDisplay,
|
|
2069
|
-
baseRoute,
|
|
2070
|
-
chipBasePlatform,
|
|
2071
|
-
extras,
|
|
2072
|
-
}: ChatCardLoaderProps) {
|
|
2060
|
+
export function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }: ChatCardLoaderProps) {
|
|
2073
2061
|
const runtime = useRequiredChatRuntime();
|
|
2074
2062
|
const entry = CHAT_CARD_REGISTRY[chatRef.type];
|
|
2075
2063
|
// Hook order MUST be stable across renders — call the data hook
|
|
@@ -2092,7 +2080,7 @@ export function ChatCardLoader({
|
|
|
2092
2080
|
chatRef,
|
|
2093
2081
|
item: fetchEntry ? item : undefined,
|
|
2094
2082
|
entry: fetchEntry,
|
|
2095
|
-
ctx: sourceRowCtxFromRuntime(runtime
|
|
2083
|
+
ctx: sourceRowCtxFromRuntime(runtime),
|
|
2096
2084
|
composeContentUrl: runtime.composeContentUrl,
|
|
2097
2085
|
resolveHref: href => navLinkTarget(runtime, href).href,
|
|
2098
2086
|
});
|
|
@@ -2143,8 +2131,6 @@ export function ChatCardLoader({
|
|
|
2143
2131
|
: undefined;
|
|
2144
2132
|
|
|
2145
2133
|
const renderOpts: ChatCardRenderOptions = {
|
|
2146
|
-
baseRoute,
|
|
2147
|
-
chipBasePlatform,
|
|
2148
2134
|
extras,
|
|
2149
2135
|
isNewTab,
|
|
2150
2136
|
discuss,
|
|
@@ -2265,23 +2251,12 @@ export function renderChatInlineEntityCard(
|
|
|
2265
2251
|
options: {
|
|
2266
2252
|
onDiscuss?: (ref: ChatRef) => void;
|
|
2267
2253
|
onDisplay?: (ref: ChatRef) => void;
|
|
2268
|
-
baseRoute?: string;
|
|
2269
|
-
chipBasePlatform?: string;
|
|
2270
2254
|
extras?: ChatCardDispatchExtras;
|
|
2271
2255
|
} = {},
|
|
2272
2256
|
): React.ReactNode {
|
|
2273
|
-
const { onDiscuss, onDisplay,
|
|
2257
|
+
const { onDiscuss, onDisplay, extras } = options;
|
|
2274
2258
|
|
|
2275
|
-
const loader =
|
|
2276
|
-
<ChatCardLoader
|
|
2277
|
-
chatRef={chatRef}
|
|
2278
|
-
onDiscuss={onDiscuss}
|
|
2279
|
-
onDisplay={onDisplay}
|
|
2280
|
-
baseRoute={baseRoute}
|
|
2281
|
-
chipBasePlatform={chipBasePlatform}
|
|
2282
|
-
extras={extras}
|
|
2283
|
-
/>
|
|
2284
|
-
);
|
|
2259
|
+
const loader = <ChatCardLoader chatRef={chatRef} onDiscuss={onDiscuss} onDisplay={onDisplay} extras={extras} />;
|
|
2285
2260
|
|
|
2286
2261
|
// Embedded videos are SELF-DESCRIBING: the marker id alone recovers the
|
|
2287
2262
|
// playable URL (`decodeVideoMarkerId`), so the player renders on ANY
|
|
@@ -22,16 +22,4 @@ export interface DataRoomDocCardItem {
|
|
|
22
22
|
* the badge label via `SOURCE_LABELS_BY_TABLE`. Falls back to "Data room"
|
|
23
23
|
* when missing. */
|
|
24
24
|
sourceRepo?: string | null;
|
|
25
|
-
/** Chat shell's base route (e.g. `/data-room`, `/knowledge-base`). Threaded
|
|
26
|
-
* from `renderChatInlineEntityCard` → `renderCompactEntityCard` →
|
|
27
|
-
* `DataRoomDocChatCard` so the shared `resolveSourceRowCTA` helper can
|
|
28
|
-
* compose the destination URL identically to the SourceChip path. */
|
|
29
|
-
baseRoute?: string;
|
|
30
|
-
/** Cross-platform target for the card click (e.g. `'flamingo'` to open the
|
|
31
|
-
* link on www.flamingo.cx). When set, the resolver composes an absolute
|
|
32
|
-
* cross-origin URL; the click handler routes through a plain `<a>` so the
|
|
33
|
-
* link opens in a new tab. Without this, product-hub clicks on
|
|
34
|
-
* `/knowledge-base/<path>` get redirected to `/` by the middleware
|
|
35
|
-
* because the route is not in the platform's `allowedRoutes`. */
|
|
36
|
-
chipBasePlatform?: string;
|
|
37
25
|
}
|