@flamingo-stack/openframe-frontend-core 0.0.813 → 0.0.815
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/README.md +26 -5
- package/dist/build/export-map.json +1 -1
- package/dist/build/next-styles.cjs +170 -0
- package/dist/build/next-styles.d.ts +21 -0
- package/dist/build/style-sources.cjs +262 -0
- package/dist/build/style-sources.d.ts +12 -0
- package/dist/{chunk-OGHG6REG.cjs → chunk-3E4FIJAM.cjs} +9 -9
- package/dist/{chunk-G2AN67DP.cjs → chunk-3ELDGEM2.cjs} +53 -53
- package/dist/{chunk-FTGXZHLO.cjs → chunk-53JJLHJM.cjs} +7 -7
- package/dist/{chunk-GNGXHIBC.cjs → chunk-5TUR7O7H.cjs} +48 -48
- package/dist/{chunk-5M5JVVSL.cjs → chunk-633NTKO2.cjs} +6 -6
- package/dist/{chunk-5RBL7A2Y.cjs → chunk-7ERD34HQ.cjs} +539 -291
- package/dist/{chunk-GTOT4ZQV.cjs → chunk-7NYWHEQM.cjs} +2 -2
- package/dist/{chunk-PXR27MXW.cjs → chunk-EB7YAUER.cjs} +11 -11
- package/dist/{chunk-TOBROYSJ.cjs → chunk-EJCUAADF.cjs} +4 -4
- package/dist/{chunk-MBU45QUB.cjs → chunk-FUEK43FL.cjs} +109 -142
- package/dist/{chunk-JFA3VHXC.cjs → chunk-JH65CEO4.cjs} +19 -19
- package/dist/{chunk-2WD7XGWA.cjs → chunk-JOOZTRXQ.cjs} +4 -4
- package/dist/{chunk-MUH7X7ZA.cjs → chunk-L7W4455K.cjs} +3 -3
- package/dist/{chunk-XWCZSEW7.cjs → chunk-O6VWD2SB.cjs} +3 -3
- package/dist/{chunk-WKODIG3L.cjs → chunk-RYJJHSHV.cjs} +10 -10
- package/dist/{chunk-7BJ22OH2.cjs → chunk-SWBLTIN4.cjs} +32 -32
- package/dist/{chunk-5V3CNLCB.cjs → chunk-VDXI26G7.cjs} +22 -18
- package/dist/{chunk-EJQRX6S5.cjs → chunk-ZAWHRYJZ.cjs} +39 -39
- package/dist/{cloud-tenants-ODZVCP5X.cjs → cloud-tenants-SRTX2FZC.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -1
- package/dist/components/chat/embeddable-chat.d.ts +6 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +34 -2
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts +93 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +126 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts +5 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +82 -55
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +14 -0
- package/dist/components/chat/index.cjs +19 -3
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +7 -0
- package/dist/components/chat/inline-app-link-chip.d.ts +35 -0
- package/dist/components/chat/inline-app-link-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-app-link-chip.js +37 -0
- package/dist/components/chat/source-action-button.d.ts +15 -1
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +40 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +61 -61
- package/dist/components/index.cjs +56 -40
- 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 +22 -6
- package/dist/{devices-GWBR7MJD.cjs → devices-DL4YU64N.cjs} +5 -5
- package/dist/{embeddable-chat-4RLUXHDH.cjs → embeddable-chat-YRKMPFDY.cjs} +95 -62
- package/dist/index.cjs +26 -10
- package/dist/{knowledge-ZNRITHW5.cjs → knowledge-VQW5JL2Z.cjs} +5 -5
- package/dist/{logs-QN5H5JT6.cjs → logs-IY3WBLMW.cjs} +12 -12
- package/dist/{policies-SCUYEYGJ.cjs → policies-IXWTWMJO.cjs} +8 -8
- package/dist/{scripts-BP7UTAG5.cjs → scripts-D5CLO5EG.cjs} +9 -9
- package/dist/{software-update-O4BQJCJ4.cjs → software-update-ULNP6CKJ.cjs} +7 -7
- package/package.json +17 -2
- package/src/components/chat/chat-message-enhanced.tsx +24 -1
- package/src/components/chat/embeddable-chat.tsx +67 -1
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +233 -0
- package/src/components/chat/entity-cards/dispatch.tsx +104 -63
- package/src/components/chat/entity-cards/index.ts +9 -0
- package/src/components/chat/index.ts +7 -1
- package/src/components/chat/inline-app-link-chip.tsx +79 -0
- package/src/components/chat/source-action-button.tsx +53 -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 _chunkFUEK43FLcjs = require('./chunk-FUEK43FL.cjs');
|
|
12
12
|
require('./chunk-467T3LCG.cjs');
|
|
13
13
|
require('./chunk-EHANO6UE.cjs');
|
|
14
14
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -20,10 +20,10 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
20
20
|
require('./chunk-7Z536SPR.cjs');
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
22
|
require('./chunk-5SZ4ILU3.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-VDXI26G7.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk7ERD34HQcjs = require('./chunk-7ERD34HQ.cjs');
|
|
27
27
|
require('./chunk-OBQ5WUNG.cjs');
|
|
28
28
|
require('./chunk-6CZVQ72C.cjs');
|
|
29
29
|
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
|
+
_chunkFUEK43FLcjs.KnowledgeBaseArticleView,
|
|
1909
1909
|
{
|
|
1910
1910
|
...fixture.article,
|
|
1911
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.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 _chunkFUEK43FLcjs = require('./chunk-FUEK43FL.cjs');
|
|
20
20
|
require('./chunk-467T3LCG.cjs');
|
|
21
21
|
require('./chunk-EHANO6UE.cjs');
|
|
22
22
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -30,8 +30,8 @@ require('./chunk-MZ4KBSH7.cjs');
|
|
|
30
30
|
require('./chunk-5SZ4ILU3.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
34
|
-
require('./chunk-
|
|
33
|
+
var _chunkVDXI26G7cjs = require('./chunk-VDXI26G7.cjs');
|
|
34
|
+
require('./chunk-7ERD34HQ.cjs');
|
|
35
35
|
require('./chunk-OBQ5WUNG.cjs');
|
|
36
36
|
require('./chunk-6CZVQ72C.cjs');
|
|
37
37
|
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: _chunkFUEK43FLcjs.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, _chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.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, _chunkFUEK43FLcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1990
|
+
_chunkFUEK43FLcjs.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, _chunkFUEK43FLcjs.ToolBadge, { toolType: _chunkVDXI26G7cjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
|
|
2003
2003
|
},
|
|
2004
|
-
{ label: "Device", value:
|
|
2004
|
+
{ label: "Device", value: _chunkFUEK43FLcjs.logSourceLabels.call(void 0, selected.device).deviceName }
|
|
2005
2005
|
],
|
|
2006
2006
|
deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2007
|
-
|
|
2007
|
+
_chunkFUEK43FLcjs.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 _chunkFUEK43FLcjs = require('./chunk-FUEK43FL.cjs');
|
|
14
14
|
require('./chunk-467T3LCG.cjs');
|
|
15
15
|
require('./chunk-EHANO6UE.cjs');
|
|
16
16
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -22,8 +22,8 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
22
22
|
require('./chunk-7Z536SPR.cjs');
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('./chunk-5SZ4ILU3.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-VDXI26G7.cjs');
|
|
26
|
+
require('./chunk-7ERD34HQ.cjs');
|
|
27
27
|
require('./chunk-OBQ5WUNG.cjs');
|
|
28
28
|
require('./chunk-6CZVQ72C.cjs');
|
|
29
29
|
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: _chunkFUEK43FLcjs.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: _chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.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, _chunkFUEK43FLcjs.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, _chunkFUEK43FLcjs.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 _chunkFUEK43FLcjs = require('./chunk-FUEK43FL.cjs');
|
|
17
17
|
require('./chunk-467T3LCG.cjs');
|
|
18
18
|
require('./chunk-EHANO6UE.cjs');
|
|
19
19
|
|
|
@@ -27,8 +27,8 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
27
27
|
require('./chunk-7Z536SPR.cjs');
|
|
28
28
|
require('./chunk-MZ4KBSH7.cjs');
|
|
29
29
|
require('./chunk-5SZ4ILU3.cjs');
|
|
30
|
-
require('./chunk-
|
|
31
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-VDXI26G7.cjs');
|
|
31
|
+
require('./chunk-7ERD34HQ.cjs');
|
|
32
32
|
require('./chunk-OBQ5WUNG.cjs');
|
|
33
33
|
require('./chunk-6CZVQ72C.cjs');
|
|
34
34
|
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
|
+
{ ..._chunkFUEK43FLcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
|
|
1999
|
+
_chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.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, _chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.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 _chunkFUEK43FLcjs = require('./chunk-FUEK43FL.cjs');
|
|
19
19
|
require('./chunk-467T3LCG.cjs');
|
|
20
20
|
require('./chunk-EHANO6UE.cjs');
|
|
21
21
|
|
|
@@ -29,8 +29,8 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
29
29
|
require('./chunk-7Z536SPR.cjs');
|
|
30
30
|
require('./chunk-MZ4KBSH7.cjs');
|
|
31
31
|
require('./chunk-5SZ4ILU3.cjs');
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-VDXI26G7.cjs');
|
|
33
|
+
require('./chunk-7ERD34HQ.cjs');
|
|
34
34
|
require('./chunk-OBQ5WUNG.cjs');
|
|
35
35
|
require('./chunk-6CZVQ72C.cjs');
|
|
36
36
|
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: _chunkFUEK43FLcjs.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: _chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.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
|
+
_chunkFUEK43FLcjs.DeviceSelector,
|
|
1957
1957
|
{
|
|
1958
1958
|
devices: selected,
|
|
1959
1959
|
loading: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flamingo-stack/openframe-frontend-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.815",
|
|
4
4
|
"description": "Shared design system and components for all Flamingo platforms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"module": "./dist/index.mjs",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
|
+
"bin": {
|
|
13
|
+
"next-styles": "./dist/build/next-styles.cjs"
|
|
14
|
+
},
|
|
12
15
|
"files": [
|
|
13
16
|
"dist",
|
|
14
17
|
"src",
|
|
@@ -28,6 +31,18 @@
|
|
|
28
31
|
"require": "./dist/build/optimize-imports-loader.cjs",
|
|
29
32
|
"default": "./dist/build/optimize-imports-loader.cjs"
|
|
30
33
|
},
|
|
34
|
+
"./style-sources": {
|
|
35
|
+
"types": "./dist/build/style-sources.d.ts",
|
|
36
|
+
"import": "./dist/build/style-sources.cjs",
|
|
37
|
+
"require": "./dist/build/style-sources.cjs",
|
|
38
|
+
"default": "./dist/build/style-sources.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./next-styles": {
|
|
41
|
+
"types": "./dist/build/next-styles.d.ts",
|
|
42
|
+
"import": "./dist/build/next-styles.cjs",
|
|
43
|
+
"require": "./dist/build/next-styles.cjs",
|
|
44
|
+
"default": "./dist/build/next-styles.cjs"
|
|
45
|
+
},
|
|
31
46
|
"./dist/*.js": {
|
|
32
47
|
"import": "./dist/*.js",
|
|
33
48
|
"default": "./dist/*.js"
|
|
@@ -478,6 +493,7 @@
|
|
|
478
493
|
"clsx": "^2.1.1",
|
|
479
494
|
"cmdk": "^1.0.4",
|
|
480
495
|
"date-fns": "^3.6.0",
|
|
496
|
+
"esbuild": "^0.28.2",
|
|
481
497
|
"eslint-config-next": "^16.3.0",
|
|
482
498
|
"eslint-config-prettier": "^10.1.8",
|
|
483
499
|
"eslint-import-resolver-typescript": "^3.10.1",
|
|
@@ -540,7 +556,6 @@
|
|
|
540
556
|
"@types/node": "^24.10.4",
|
|
541
557
|
"@vitest/ui": "^4.0.16",
|
|
542
558
|
"autoprefixer": "^10.4.23",
|
|
543
|
-
"esbuild": "^0.28.2",
|
|
544
559
|
"eslint": "^9.39.0",
|
|
545
560
|
"husky": "9.1.7",
|
|
546
561
|
"jsdom": "^27.4.0",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { forwardRef, memo, type ReactNode, useEffect, useMemo, useRef } from 'react';
|
|
4
4
|
import { createCardMarkerScanner } from '../../chat-protocol/card-marker';
|
|
5
|
+
import { useChatRuntime } from '../../contexts/chat-runtime-context';
|
|
5
6
|
import Link from '../../embed-shims/next-link';
|
|
6
7
|
import { cn } from '../../utils/cn';
|
|
7
8
|
import { isToday } from '../../utils/date-utils';
|
|
@@ -30,6 +31,7 @@ import { ContextCompactionDisplay } from './context-compaction-display';
|
|
|
30
31
|
import { BlockCard, type BlockCardProps } from './entity-cards/block-card';
|
|
31
32
|
import { ErrorMessageDisplay } from './error-message-display';
|
|
32
33
|
import { EscalationOfferMessage } from './escalation-offer-message';
|
|
34
|
+
import { InlineAppLinkChip } from './inline-app-link-chip';
|
|
33
35
|
import { remarkCardLinks } from './remark-card-links';
|
|
34
36
|
import { remarkMentionChips } from './remark-mention-chips';
|
|
35
37
|
import { remarkStripCitations } from './remark-strip-citations';
|
|
@@ -41,6 +43,7 @@ import { TicketEventMessage } from './ticket-event-message';
|
|
|
41
43
|
import { ToolExecutionDisplay } from './tool-execution-display';
|
|
42
44
|
import type { AskSegment, MessageSegment, MessageContent, ChatMessageEnhancedProps } from './types';
|
|
43
45
|
import { CHAT_APPEARANCE } from './types/chat.types';
|
|
46
|
+
import { computeIsNewTab } from './utils/nav-anchor-props';
|
|
44
47
|
|
|
45
48
|
/** Inline `@marker:id` mention token in the message body (sibling of the
|
|
46
49
|
* `[card://]` grammar) — used to filter out items rendered inline from the
|
|
@@ -406,6 +409,9 @@ const ChatMessageEnhanced = forwardRef<HTMLDivElement, ChatMessageEnhancedProps>
|
|
|
406
409
|
const renderingPlanRef = useRef(renderingPlan);
|
|
407
410
|
renderingPlanRef.current = renderingPlan;
|
|
408
411
|
|
|
412
|
+
// The runtime decides whether a link stays in this app (`computeIsNewTab`); null outside a chat runtime, where
|
|
413
|
+
// every link stays a plain link.
|
|
414
|
+
const chatRuntime = useChatRuntime();
|
|
409
415
|
const cardComponentOverrides = useMemo(() => {
|
|
410
416
|
if (!hasMarkerSupport && !hasMentionSupport) return undefined;
|
|
411
417
|
return {
|
|
@@ -463,6 +469,23 @@ const ChatMessageEnhanced = forwardRef<HTMLDivElement, ChatMessageEnhancedProps>
|
|
|
463
469
|
// flamingo hero-demo with mock content), fall back to a plain
|
|
464
470
|
// `<a href>`. No cross-origin sniffing here — the OSS-lib does
|
|
465
471
|
// not own routing decisions; the host does.
|
|
472
|
+
// A link that stays in this app is drawn as an inline box, the skin of the host's entity mentions, still
|
|
473
|
+
// routed through the host's `NavLinkAnchor`. Whether it stays is the runtime's ONE new-tab rule
|
|
474
|
+
// (`computeIsNewTab`, the decision the chat's cards and source chips make): a link it keeps in this window
|
|
475
|
+
// is a place in the app; one it sends to a new tab (another site, a hub page from an embedded chat, a
|
|
476
|
+
// `mailto:`) stays a plain link.
|
|
477
|
+
if (
|
|
478
|
+
typeof href === 'string' &&
|
|
479
|
+
!href.startsWith('#') &&
|
|
480
|
+
chatRuntime &&
|
|
481
|
+
!computeIsNewTab(chatRuntime, href, null)
|
|
482
|
+
) {
|
|
483
|
+
return (
|
|
484
|
+
<InlineAppLinkChip href={href} anchor={NavLinkAnchor}>
|
|
485
|
+
{children}
|
|
486
|
+
</InlineAppLinkChip>
|
|
487
|
+
);
|
|
488
|
+
}
|
|
466
489
|
if (typeof href === 'string' && NavLinkAnchor && !href.startsWith('#')) {
|
|
467
490
|
return (
|
|
468
491
|
<NavLinkAnchor href={href} className={linkClassName} {...rest}>
|
|
@@ -481,7 +504,7 @@ const ChatMessageEnhanced = forwardRef<HTMLDivElement, ChatMessageEnhancedProps>
|
|
|
481
504
|
// streaming turn (booleans + host-stable fn/component identities, both
|
|
482
505
|
// enforced by this file's `memo` comparator). The rendering plan is
|
|
483
506
|
// read through a ref above precisely so it does NOT appear here.
|
|
484
|
-
}, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor]);
|
|
507
|
+
}, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor, chatRuntime]);
|
|
485
508
|
|
|
486
509
|
/**
|
|
487
510
|
* Body of a markdown-bearing segment (`text` / `guide`).
|
|
@@ -64,8 +64,10 @@ import { ActionsMenuDropdown, type ActionsMenuItem } from '../ui/actions-menu';
|
|
|
64
64
|
import { Button } from '../ui/button';
|
|
65
65
|
import { Drawer, DrawerContent } from '../ui/drawer';
|
|
66
66
|
import { HoverDropdown, type HoverDropdownItem } from '../ui/hover-dropdown';
|
|
67
|
+
import { TextHold } from '../ui/layout-hold';
|
|
67
68
|
import { LoadingItems } from '../ui/loading-scope';
|
|
68
69
|
import { CollisionBoundaryContext, PortalContainerContext } from '../ui/portal-container';
|
|
70
|
+
import { SKELETON_SURFACE_CLASS } from '../ui/skeleton-surface';
|
|
69
71
|
import { SquareAvatar } from '../ui/square-avatar';
|
|
70
72
|
import { ChatAppearanceContext } from './chat-appearance-context';
|
|
71
73
|
import { ChatArchivePage } from './chat-archive-page';
|
|
@@ -192,6 +194,12 @@ export interface EmbeddableChatProps {
|
|
|
192
194
|
defaultOpen?: boolean;
|
|
193
195
|
/** Render the built-in floating "Ask AI" trigger. Defaults to `true`. */
|
|
194
196
|
showInternalTrigger?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Loads the host's stylesheet for the chat, called once when the chat's module starts loading.
|
|
199
|
+
* A host whose page stylesheet leaves the chat's classes out (`firstPaint` in `style-sources`)
|
|
200
|
+
* passes its full stylesheet here, e.g. `() => import('./full-styles')`.
|
|
201
|
+
*/
|
|
202
|
+
loadStyles?: () => unknown;
|
|
195
203
|
/**
|
|
196
204
|
* Non-interactive display mode. When `true`, the whole panel becomes a
|
|
197
205
|
* static visual — every hover state and click is blocked (via
|
|
@@ -705,6 +713,29 @@ function dispatchSlashCommandAction(
|
|
|
705
713
|
* 2. Ask: small `MessageSquare` icon-button on the right → fires
|
|
706
714
|
* `onDiscuss(ref)` to drill into THIS row via `entityIdFilter`.
|
|
707
715
|
*/
|
|
716
|
+
/** A no-break space: one line of the chip's text, so a bar that holds it is exactly one text line tall. */
|
|
717
|
+
const ONE_TEXT_LINE = '\u00a0';
|
|
718
|
+
|
|
719
|
+
/** How many chips the strip's loading form draws: the count real answers' strips showed (measured). On a phone,
|
|
720
|
+
* where a strip holds one chip a row, it draws one. */
|
|
721
|
+
const SOURCE_CHIP_SKELETON_COUNT = 2;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* A source chip's loading form, built like the chip (`wrapChip` around `chipBody`): the chip's frame, its icon,
|
|
725
|
+
* its title as a bar one text line tall (so the chip is the loaded chip's height), and the Ask slot beside it.
|
|
726
|
+
*/
|
|
727
|
+
function SourceChipSkeleton({ className }: { className?: string }) {
|
|
728
|
+
return (
|
|
729
|
+
<span aria-hidden className={cn('pointer-events-none inline-flex shrink-0 items-center', className)}>
|
|
730
|
+
<span className={chatChipClass({ tone: 'secondary' })}>
|
|
731
|
+
<span className={cn(SKELETON_SURFACE_CLASS, 'inline-block h-3.5 w-3.5 rounded-sm')} />
|
|
732
|
+
<span className={cn(SKELETON_SURFACE_CLASS, 'w-28 rounded-sm')}>{ONE_TEXT_LINE}</span>
|
|
733
|
+
</span>
|
|
734
|
+
<span className={cn(SKELETON_SURFACE_CLASS, '-mr-1 ml-1 inline-block h-5 w-5 rounded-sm')} />
|
|
735
|
+
</span>
|
|
736
|
+
);
|
|
737
|
+
}
|
|
738
|
+
|
|
708
739
|
function SourceChip({
|
|
709
740
|
src,
|
|
710
741
|
baseRoute,
|
|
@@ -903,6 +934,7 @@ function SourceChips({
|
|
|
903
934
|
chipBasePlatform,
|
|
904
935
|
onClose,
|
|
905
936
|
onDiscuss,
|
|
937
|
+
loading,
|
|
906
938
|
}: {
|
|
907
939
|
cited: ChatSource[];
|
|
908
940
|
uncited: ChatSource[];
|
|
@@ -910,9 +942,29 @@ function SourceChips({
|
|
|
910
942
|
chipBasePlatform?: string;
|
|
911
943
|
onClose: () => void;
|
|
912
944
|
onDiscuss?: (ref: ChatRef) => void;
|
|
945
|
+
/** The answer is still being written: the strip's frame, heading and a row of chips in their loading form, so
|
|
946
|
+
* the strip does not appear under the answer when it finishes. */
|
|
947
|
+
loading?: boolean;
|
|
913
948
|
}) {
|
|
914
949
|
const [expanded, setExpanded] = useState(false);
|
|
915
950
|
|
|
951
|
+
if (loading) {
|
|
952
|
+
return (
|
|
953
|
+
<div aria-hidden className="mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2">
|
|
954
|
+
<span className="uppercase text-ods-text-muted text-h6">
|
|
955
|
+
<TextHold>Sources</TextHold>
|
|
956
|
+
</span>
|
|
957
|
+
{/* One row at every width: a chip that does not fit is cut, never wrapped (a strip's chips fit one row in
|
|
958
|
+
the answers measured, and a wrapped skeleton shrinks when the answer ends). */}
|
|
959
|
+
<div className="flex flex-nowrap gap-1.5 overflow-hidden">
|
|
960
|
+
{Array.from({ length: SOURCE_CHIP_SKELETON_COUNT }, (_, i) => (
|
|
961
|
+
<SourceChipSkeleton key={i} className={i > 0 ? 'max-md:hidden' : undefined} />
|
|
962
|
+
))}
|
|
963
|
+
</div>
|
|
964
|
+
</div>
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
|
|
916
968
|
if (cited.length === 0) {
|
|
917
969
|
const fallback = uncited.slice(0, FALLBACK_TOP_RETRIEVED);
|
|
918
970
|
if (fallback.length === 0) return null;
|
|
@@ -2062,7 +2114,21 @@ function EmbeddableChatInner({
|
|
|
2062
2114
|
// the THREAD, so testing it alone pulls the strips off every earlier
|
|
2063
2115
|
// answer too — a reader scrolled up watches finished citations blink out
|
|
2064
2116
|
// for the duration of an unrelated turn.
|
|
2065
|
-
|
|
2117
|
+
// Its strip is drawn in its loading form meanwhile, so the strip is already there when the answer ends.
|
|
2118
|
+
if (chatLoading && index === messages.length - 1) {
|
|
2119
|
+
return (
|
|
2120
|
+
<div className="pb-2">
|
|
2121
|
+
<SourceChips
|
|
2122
|
+
loading
|
|
2123
|
+
cited={[]}
|
|
2124
|
+
uncited={[]}
|
|
2125
|
+
baseRoute={resolvedBaseRoute}
|
|
2126
|
+
chipBasePlatform={chipBasePlatform}
|
|
2127
|
+
onClose={handleNavigationClose}
|
|
2128
|
+
/>
|
|
2129
|
+
</div>
|
|
2130
|
+
);
|
|
2131
|
+
}
|
|
2066
2132
|
const { cited, uncited } = splitCitedSources(message.sources, flattenAssistantContent(message.content));
|
|
2067
2133
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
2068
2134
|
return (
|