@flamingo-stack/openframe-frontend-core 0.0.813 → 0.0.814

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.
Files changed (74) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-GTOT4ZQV.cjs → chunk-2H7XPKKT.cjs} +2 -2
  3. package/dist/{chunk-5RBL7A2Y.cjs → chunk-7ERD34HQ.cjs} +539 -291
  4. package/dist/{chunk-JFA3VHXC.cjs → chunk-AYMKG55T.cjs} +19 -19
  5. package/dist/{chunk-7BJ22OH2.cjs → chunk-CVPHODOE.cjs} +32 -32
  6. package/dist/{chunk-PXR27MXW.cjs → chunk-D23VVC3K.cjs} +11 -11
  7. package/dist/{chunk-TOBROYSJ.cjs → chunk-E5VF3IXO.cjs} +4 -4
  8. package/dist/{chunk-EJQRX6S5.cjs → chunk-G2B6EA4J.cjs} +39 -39
  9. package/dist/{chunk-XWCZSEW7.cjs → chunk-G5CCYMCU.cjs} +3 -3
  10. package/dist/{chunk-MUH7X7ZA.cjs → chunk-IBYT5I7K.cjs} +3 -3
  11. package/dist/{chunk-MBU45QUB.cjs → chunk-IDEOLXY6.cjs} +109 -142
  12. package/dist/{chunk-FTGXZHLO.cjs → chunk-ILV243HM.cjs} +7 -7
  13. package/dist/{chunk-5V3CNLCB.cjs → chunk-KINBPFAC.cjs} +18 -18
  14. package/dist/{chunk-WKODIG3L.cjs → chunk-KNGULKOU.cjs} +10 -10
  15. package/dist/{chunk-2WD7XGWA.cjs → chunk-LUR2ED43.cjs} +4 -4
  16. package/dist/{chunk-GNGXHIBC.cjs → chunk-M6VLEXN3.cjs} +48 -48
  17. package/dist/{chunk-G2AN67DP.cjs → chunk-UTRRECPV.cjs} +53 -53
  18. package/dist/{chunk-5M5JVVSL.cjs → chunk-WJPEDREU.cjs} +6 -6
  19. package/dist/{chunk-OGHG6REG.cjs → chunk-ZNZ6453J.cjs} +9 -9
  20. package/dist/{cloud-tenants-ODZVCP5X.cjs → cloud-tenants-JSH6AQMZ.cjs} +4 -4
  21. package/dist/components/case-studies/index.cjs +16 -16
  22. package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
  23. package/dist/components/chat/chat-message-enhanced.js +8 -1
  24. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  25. package/dist/components/chat/embeddable-chat.js +34 -2
  26. package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts +93 -0
  27. package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -0
  28. package/dist/components/chat/entity-cards/chat-card-disclosure.js +126 -0
  29. package/dist/components/chat/entity-cards/dispatch.d.ts +5 -0
  30. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  31. package/dist/components/chat/entity-cards/dispatch.js +82 -55
  32. package/dist/components/chat/entity-cards/index.d.ts +1 -0
  33. package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
  34. package/dist/components/chat/entity-cards/index.js +14 -0
  35. package/dist/components/chat/index.cjs +19 -3
  36. package/dist/components/chat/index.d.ts +1 -0
  37. package/dist/components/chat/index.d.ts.map +1 -1
  38. package/dist/components/chat/index.js +3 -0
  39. package/dist/components/chat/inline-app-link-chip.d.ts +35 -0
  40. package/dist/components/chat/inline-app-link-chip.d.ts.map +1 -0
  41. package/dist/components/chat/inline-app-link-chip.js +37 -0
  42. package/dist/components/chat/source-action-button.d.ts +15 -1
  43. package/dist/components/chat/source-action-button.d.ts.map +1 -1
  44. package/dist/components/chat/source-action-button.js +40 -2
  45. package/dist/components/contact/index.cjs +5 -5
  46. package/dist/components/docs/index.cjs +8 -8
  47. package/dist/components/embeds/index.cjs +5 -5
  48. package/dist/components/faq/index.cjs +6 -6
  49. package/dist/components/features/index.cjs +4 -4
  50. package/dist/components/help-center-pages/index.cjs +61 -61
  51. package/dist/components/index.cjs +56 -40
  52. package/dist/components/meeting-scheduler/index.cjs +29 -29
  53. package/dist/components/navigation/index.cjs +7 -7
  54. package/dist/components/onboarding-guides/index.cjs +6 -6
  55. package/dist/components/product-demo/index.cjs +13 -13
  56. package/dist/components/tickets/index.cjs +9 -9
  57. package/dist/components/ui/index.cjs +22 -6
  58. package/dist/{devices-GWBR7MJD.cjs → devices-OCEOO6OW.cjs} +5 -5
  59. package/dist/{embeddable-chat-4RLUXHDH.cjs → embeddable-chat-YRKMPFDY.cjs} +95 -62
  60. package/dist/index.cjs +26 -10
  61. package/dist/{knowledge-ZNRITHW5.cjs → knowledge-3GEE4LPY.cjs} +5 -5
  62. package/dist/{logs-QN5H5JT6.cjs → logs-7GGUZSDB.cjs} +12 -12
  63. package/dist/{policies-SCUYEYGJ.cjs → policies-S74WTNL4.cjs} +8 -8
  64. package/dist/{scripts-BP7UTAG5.cjs → scripts-G4QAT4NZ.cjs} +9 -9
  65. package/dist/{software-update-O4BQJCJ4.cjs → software-update-IYHJABLP.cjs} +7 -7
  66. package/package.json +1 -1
  67. package/src/components/chat/chat-message-enhanced.tsx +24 -1
  68. package/src/components/chat/embeddable-chat.tsx +61 -1
  69. package/src/components/chat/entity-cards/chat-card-disclosure.tsx +233 -0
  70. package/src/components/chat/entity-cards/dispatch.tsx +104 -63
  71. package/src/components/chat/entity-cards/index.ts +9 -0
  72. package/src/components/chat/index.ts +1 -0
  73. package/src/components/chat/inline-app-link-chip.tsx +79 -0
  74. 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 _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
11
+ var _chunkIDEOLXY6cjs = require('./chunk-IDEOLXY6.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-5V3CNLCB.cjs');
23
+ require('./chunk-KINBPFAC.cjs');
24
24
 
25
25
 
26
- var _chunk5RBL7A2Ycjs = require('./chunk-5RBL7A2Y.cjs');
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
- _chunkMBU45QUBcjs.KnowledgeBaseArticleView,
1908
+ _chunkIDEOLXY6cjs.KnowledgeBaseArticleView,
1909
1909
  {
1910
1910
  ...fixture.article,
1911
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5RBL7A2Ycjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
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 _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
19
+ var _chunkIDEOLXY6cjs = require('./chunk-IDEOLXY6.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 _chunk5V3CNLCBcjs = require('./chunk-5V3CNLCB.cjs');
34
- require('./chunk-5RBL7A2Y.cjs');
33
+ var _chunkKINBPFACcjs = require('./chunk-KINBPFAC.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: _chunkMBU45QUBcjs.logSeverityVariant.call(void 0, severity) },
1889
+ status: { label: severity, variant: _chunkIDEOLXY6cjs.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, _chunkMBU45QUBcjs.LogCopyIconButton, {});
1961
+ var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.LogsPageView,
1967
+ _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.LogsTableView,
1975
+ _chunkIDEOLXY6cjs.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, _chunkMBU45QUBcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
- _chunkMBU45QUBcjs.LogDrawer,
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, _chunkIDEOLXY6cjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
+ _chunkIDEOLXY6cjs.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, _chunkMBU45QUBcjs.ToolBadge, { toolType: _chunk5V3CNLCBcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2002
+ value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.ToolBadge, { toolType: _chunkKINBPFACcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2003
2003
  },
2004
- { label: "Device", value: _chunkMBU45QUBcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2004
+ { label: "Device", value: _chunkIDEOLXY6cjs.logSourceLabels.call(void 0, selected.device).deviceName }
2005
2005
  ],
2006
2006
  deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2007
- _chunkMBU45QUBcjs.DeviceCard,
2007
+ _chunkIDEOLXY6cjs.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 _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
13
+ var _chunkIDEOLXY6cjs = require('./chunk-IDEOLXY6.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-5V3CNLCB.cjs');
26
- require('./chunk-5RBL7A2Y.cjs');
25
+ require('./chunk-KINBPFAC.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: _chunkMBU45QUBcjs.computePolicySummary.call(void 0, POLICIES),
1894
+ summary: _chunkIDEOLXY6cjs.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: _chunkMBU45QUBcjs.getPolicyTableStatus.call(void 0, item),
1901
+ status: _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.PoliciesTable,
1915
+ _chunkIDEOLXY6cjs.PoliciesTable,
1916
1916
  {
1917
1917
  rows: POLICIES_FIXTURE.rows,
1918
1918
  rowAsLink: true,
1919
- rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMBU45QUBcjs.DataTable.RowCount, {}),
1919
+ rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.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, _chunkMBU45QUBcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1924
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.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 _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
16
+ var _chunkIDEOLXY6cjs = require('./chunk-IDEOLXY6.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-5V3CNLCB.cjs');
31
- require('./chunk-5RBL7A2Y.cjs');
30
+ require('./chunk-KINBPFAC.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
- { ..._chunkMBU45QUBcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
- _chunkMBU45QUBcjs.EXECUTION_COLUMNS.status
1998
+ { ..._chunkIDEOLXY6cjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
+ _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.ScriptShellBadge,
2058
+ _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.ScriptExecutionsTable,
2082
+ _chunkIDEOLXY6cjs.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, _chunkMBU45QUBcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2092
+ const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.ScriptExecutionsTable,
2098
+ _chunkIDEOLXY6cjs.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 _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
18
+ var _chunkIDEOLXY6cjs = require('./chunk-IDEOLXY6.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-5V3CNLCB.cjs');
33
- require('./chunk-5RBL7A2Y.cjs');
32
+ require('./chunk-KINBPFAC.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: _chunkMBU45QUBcjs.PACKAGE_SEARCH_LABEL,
1925
+ label: _chunkIDEOLXY6cjs.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: _chunkMBU45QUBcjs.PACKAGE_SEARCH_PLACEHOLDER
1930
+ placeholder: _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.SoftwareActionForm,
1944
+ _chunkIDEOLXY6cjs.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
- _chunkMBU45QUBcjs.DeviceSelector,
1956
+ _chunkIDEOLXY6cjs.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.813",
3
+ "version": "0.0.814",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -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';
@@ -705,6 +707,29 @@ function dispatchSlashCommandAction(
705
707
  * 2. Ask: small `MessageSquare` icon-button on the right → fires
706
708
  * `onDiscuss(ref)` to drill into THIS row via `entityIdFilter`.
707
709
  */
710
+ /** A no-break space: one line of the chip's text, so a bar that holds it is exactly one text line tall. */
711
+ const ONE_TEXT_LINE = '\u00a0';
712
+
713
+ /** How many chips the strip's loading form draws: the count real answers' strips showed (measured). On a phone,
714
+ * where a strip holds one chip a row, it draws one. */
715
+ const SOURCE_CHIP_SKELETON_COUNT = 2;
716
+
717
+ /**
718
+ * A source chip's loading form, built like the chip (`wrapChip` around `chipBody`): the chip's frame, its icon,
719
+ * its title as a bar one text line tall (so the chip is the loaded chip's height), and the Ask slot beside it.
720
+ */
721
+ function SourceChipSkeleton({ className }: { className?: string }) {
722
+ return (
723
+ <span aria-hidden className={cn('pointer-events-none inline-flex shrink-0 items-center', className)}>
724
+ <span className={chatChipClass({ tone: 'secondary' })}>
725
+ <span className={cn(SKELETON_SURFACE_CLASS, 'inline-block h-3.5 w-3.5 rounded-sm')} />
726
+ <span className={cn(SKELETON_SURFACE_CLASS, 'w-28 rounded-sm')}>{ONE_TEXT_LINE}</span>
727
+ </span>
728
+ <span className={cn(SKELETON_SURFACE_CLASS, '-mr-1 ml-1 inline-block h-5 w-5 rounded-sm')} />
729
+ </span>
730
+ );
731
+ }
732
+
708
733
  function SourceChip({
709
734
  src,
710
735
  baseRoute,
@@ -903,6 +928,7 @@ function SourceChips({
903
928
  chipBasePlatform,
904
929
  onClose,
905
930
  onDiscuss,
931
+ loading,
906
932
  }: {
907
933
  cited: ChatSource[];
908
934
  uncited: ChatSource[];
@@ -910,9 +936,29 @@ function SourceChips({
910
936
  chipBasePlatform?: string;
911
937
  onClose: () => void;
912
938
  onDiscuss?: (ref: ChatRef) => void;
939
+ /** The answer is still being written: the strip's frame, heading and a row of chips in their loading form, so
940
+ * the strip does not appear under the answer when it finishes. */
941
+ loading?: boolean;
913
942
  }) {
914
943
  const [expanded, setExpanded] = useState(false);
915
944
 
945
+ if (loading) {
946
+ return (
947
+ <div aria-hidden className="mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2">
948
+ <span className="uppercase text-ods-text-muted text-h6">
949
+ <TextHold>Sources</TextHold>
950
+ </span>
951
+ {/* One row at every width: a chip that does not fit is cut, never wrapped (a strip's chips fit one row in
952
+ the answers measured, and a wrapped skeleton shrinks when the answer ends). */}
953
+ <div className="flex flex-nowrap gap-1.5 overflow-hidden">
954
+ {Array.from({ length: SOURCE_CHIP_SKELETON_COUNT }, (_, i) => (
955
+ <SourceChipSkeleton key={i} className={i > 0 ? 'max-md:hidden' : undefined} />
956
+ ))}
957
+ </div>
958
+ </div>
959
+ );
960
+ }
961
+
916
962
  if (cited.length === 0) {
917
963
  const fallback = uncited.slice(0, FALLBACK_TOP_RETRIEVED);
918
964
  if (fallback.length === 0) return null;
@@ -2062,7 +2108,21 @@ function EmbeddableChatInner({
2062
2108
  // the THREAD, so testing it alone pulls the strips off every earlier
2063
2109
  // answer too — a reader scrolled up watches finished citations blink out
2064
2110
  // for the duration of an unrelated turn.
2065
- if (chatLoading && index === messages.length - 1) return null;
2111
+ // Its strip is drawn in its loading form meanwhile, so the strip is already there when the answer ends.
2112
+ if (chatLoading && index === messages.length - 1) {
2113
+ return (
2114
+ <div className="pb-2">
2115
+ <SourceChips
2116
+ loading
2117
+ cited={[]}
2118
+ uncited={[]}
2119
+ baseRoute={resolvedBaseRoute}
2120
+ chipBasePlatform={chipBasePlatform}
2121
+ onClose={handleNavigationClose}
2122
+ />
2123
+ </div>
2124
+ );
2125
+ }
2066
2126
  const { cited, uncited } = splitCitedSources(message.sources, flattenAssistantContent(message.content));
2067
2127
  if (cited.length === 0 && uncited.length === 0) return null;
2068
2128
  return (