@flamingo-stack/openframe-frontend-core 0.0.819 → 0.0.821

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 (63) hide show
  1. package/dist/{chunk-2T3HXLZD.cjs → chunk-2WHKEYDX.cjs} +55 -55
  2. package/dist/{chunk-K5IICQNF.cjs → chunk-2YUWBIZM.cjs} +46 -46
  3. package/dist/{chunk-MYIOOA4E.cjs → chunk-3SE34JVB.cjs} +2 -2
  4. package/dist/{chunk-2S6BUXYD.cjs → chunk-7DIWYZPQ.cjs} +3 -3
  5. package/dist/{chunk-I453QCEF.cjs → chunk-7QGK76LC.cjs} +131 -131
  6. package/dist/{chunk-WPHCVXES.cjs → chunk-BY2PLXYC.cjs} +13 -13
  7. package/dist/{chunk-2JFR6XVT.cjs → chunk-CA7X6CCJ.cjs} +32 -32
  8. package/dist/{chunk-CEXPWDT4.cjs → chunk-FTD3CZAS.cjs} +4 -4
  9. package/dist/{chunk-UDLDXVY4.cjs → chunk-GBILLSRM.cjs} +4 -4
  10. package/dist/{chunk-S2ZA4TMJ.cjs → chunk-GQHXJGA2.cjs} +11 -11
  11. package/dist/{chunk-A36XVWIQ.cjs → chunk-IS6BQSL6.cjs} +39 -39
  12. package/dist/{chunk-TDQRDQVU.cjs → chunk-LQF5F7LF.cjs} +4 -4
  13. package/dist/{chunk-IVQT5R6M.cjs → chunk-LWOXKF5P.cjs} +30 -30
  14. package/dist/{chunk-VSKR26MV.cjs → chunk-N2XHQVWX.cjs} +6 -6
  15. package/dist/{chunk-U3OICGCV.cjs → chunk-OEKVCVOS.cjs} +63 -63
  16. package/dist/{chunk-Q6QQSCUC.cjs → chunk-P2ZIQ72J.cjs} +13 -13
  17. package/dist/{chunk-IM366HS6.cjs → chunk-QCRJVO6Y.cjs} +78 -7
  18. package/dist/{chunk-7IQU54VE.cjs → chunk-QFNQSZ4H.cjs} +32 -97
  19. package/dist/{chunk-JOXJDNHN.cjs → chunk-RRLJ5PNL.cjs} +3 -3
  20. package/dist/{chunk-2W3W3ZV6.cjs → chunk-V26M75GV.cjs} +14 -14
  21. package/dist/{chunk-LUID2IB3.cjs → chunk-XEIZL3I3.cjs} +2 -2
  22. package/dist/{chunk-OTGYA5F7.cjs → chunk-YCE7A63X.cjs} +33 -33
  23. package/dist/{cloud-tenants-P5XJ5DPJ.cjs → cloud-tenants-M34P47GS.cjs} +6 -6
  24. package/dist/components/case-studies/index.cjs +20 -20
  25. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  26. package/dist/components/chat/embeddable-chat.js +5 -6
  27. package/dist/components/chat/index.cjs +5 -5
  28. package/dist/components/chat/utils/cited-sources.d.ts +9 -0
  29. package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
  30. package/dist/components/chat/utils/cited-sources.js +5 -0
  31. package/dist/components/contact/index.cjs +7 -7
  32. package/dist/components/docs/index.cjs +10 -10
  33. package/dist/components/embeds/index.cjs +7 -7
  34. package/dist/components/faq/index.cjs +8 -8
  35. package/dist/components/features/index.cjs +6 -6
  36. package/dist/components/help-center-pages/index.cjs +80 -80
  37. package/dist/components/index.cjs +48 -48
  38. package/dist/components/meeting-scheduler/index.cjs +31 -31
  39. package/dist/components/navigation/index.cjs +9 -9
  40. package/dist/components/onboarding-guides/index.cjs +9 -9
  41. package/dist/components/product-demo/index.cjs +15 -15
  42. package/dist/components/related-content/index.cjs +4 -4
  43. package/dist/components/tickets/index.cjs +11 -11
  44. package/dist/components/ui/index.cjs +6 -6
  45. package/dist/contexts/chat-runtime-context.d.ts +4 -3
  46. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  47. package/dist/{devices-BSIWSRZG.cjs → devices-SWFK4CPO.cjs} +7 -7
  48. package/dist/{embeddable-chat-5L2PKTW3.cjs → embeddable-chat-J6CKPKKM.cjs} +74 -71
  49. package/dist/index.cjs +17 -17
  50. package/dist/{knowledge-2F3IPK73.cjs → knowledge-N5FDIA33.cjs} +7 -7
  51. package/dist/{logs-U3OCJ2OC.cjs → logs-OEK7GMEB.cjs} +14 -14
  52. package/dist/{policies-L3KHKE2G.cjs → policies-Q7AS5AL6.cjs} +10 -10
  53. package/dist/{scripts-U4SLB5YC.cjs → scripts-3XWEDB2A.cjs} +11 -11
  54. package/dist/{software-update-QALYFCIO.cjs → software-update-6FOBLAOF.cjs} +9 -9
  55. package/dist/utils/image-proxy.d.ts +3 -2
  56. package/dist/utils/image-proxy.d.ts.map +1 -1
  57. package/dist/utils/image-proxy.js +11 -4
  58. package/dist/utils/index.cjs +68 -62
  59. package/package.json +1 -1
  60. package/src/components/chat/embeddable-chat.tsx +7 -8
  61. package/src/components/chat/utils/cited-sources.ts +10 -0
  62. package/src/contexts/chat-runtime-context.tsx +4 -3
  63. package/src/utils/image-proxy.ts +17 -6
@@ -8,7 +8,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
8
8
  var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
9
9
 
10
10
 
11
- var _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
11
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.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-7IQU54VE.cjs');
24
+ require('./chunk-QFNQSZ4H.cjs');
25
25
 
26
26
 
27
- var _chunkOTGYA5F7cjs = require('./chunk-OTGYA5F7.cjs');
27
+ var _chunkYCE7A63Xcjs = require('./chunk-YCE7A63X.cjs');
28
28
  require('./chunk-OBQ5WUNG.cjs');
29
29
  require('./chunk-6CZVQ72C.cjs');
30
30
  require('./chunk-ZRDVFADQ.cjs');
@@ -1824,8 +1824,8 @@ require('./chunk-JKX2C3I2.cjs');
1824
1824
  require('./chunk-WWUSFOJ7.cjs');
1825
1825
  require('./chunk-SKI6NKOE.cjs');
1826
1826
  require('./chunk-EWPR7662.cjs');
1827
- require('./chunk-UDLDXVY4.cjs');
1828
- require('./chunk-IM366HS6.cjs');
1827
+ require('./chunk-GBILLSRM.cjs');
1828
+ require('./chunk-QCRJVO6Y.cjs');
1829
1829
  require('./chunk-UEULXVW2.cjs');
1830
1830
  require('./chunk-QQT23JJ7.cjs');
1831
1831
  require('./chunk-USUVHAQ7.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
- _chunkI453QCEFcjs.KnowledgeBaseArticleView,
1908
+ _chunk7QGK76LCcjs.KnowledgeBaseArticleView,
1909
1909
  {
1910
1910
  ...fixture.article,
1911
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
1911
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.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 _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
19
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.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 _chunk7IQU54VEcjs = require('./chunk-7IQU54VE.cjs');
35
- require('./chunk-OTGYA5F7.cjs');
34
+ var _chunkQFNQSZ4Hcjs = require('./chunk-QFNQSZ4H.cjs');
35
+ require('./chunk-YCE7A63X.cjs');
36
36
  require('./chunk-OBQ5WUNG.cjs');
37
37
  require('./chunk-6CZVQ72C.cjs');
38
38
  require('./chunk-ZRDVFADQ.cjs');
@@ -1832,8 +1832,8 @@ require('./chunk-JKX2C3I2.cjs');
1832
1832
  require('./chunk-WWUSFOJ7.cjs');
1833
1833
  require('./chunk-SKI6NKOE.cjs');
1834
1834
  require('./chunk-EWPR7662.cjs');
1835
- require('./chunk-UDLDXVY4.cjs');
1836
- require('./chunk-IM366HS6.cjs');
1835
+ require('./chunk-GBILLSRM.cjs');
1836
+ require('./chunk-QCRJVO6Y.cjs');
1837
1837
  require('./chunk-UEULXVW2.cjs');
1838
1838
  require('./chunk-QQT23JJ7.cjs');
1839
1839
  require('./chunk-USUVHAQ7.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: _chunkI453QCEFcjs.logSeverityVariant.call(void 0, severity) },
1889
+ status: { label: severity, variant: _chunk7QGK76LCcjs.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, _chunkI453QCEFcjs.LogCopyIconButton, {});
1961
+ var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.LogsPageView,
1967
+ _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.LogsTableView,
1975
+ _chunk7QGK76LCcjs.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, _chunkI453QCEFcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
- _chunkI453QCEFcjs.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, _chunk7QGK76LCcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
+ _chunk7QGK76LCcjs.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, _chunkI453QCEFcjs.ToolBadge, { toolType: _chunk7IQU54VEcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2002
+ value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.ToolBadge, { toolType: _chunkQFNQSZ4Hcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2003
2003
  },
2004
- { label: "Device", value: _chunkI453QCEFcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2004
+ { label: "Device", value: _chunk7QGK76LCcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2005
2005
  ],
2006
2006
  deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2007
- _chunkI453QCEFcjs.DeviceCard,
2007
+ _chunk7QGK76LCcjs.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 _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
13
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.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-7IQU54VE.cjs');
27
- require('./chunk-OTGYA5F7.cjs');
26
+ require('./chunk-QFNQSZ4H.cjs');
27
+ require('./chunk-YCE7A63X.cjs');
28
28
  require('./chunk-OBQ5WUNG.cjs');
29
29
  require('./chunk-6CZVQ72C.cjs');
30
30
  require('./chunk-ZRDVFADQ.cjs');
@@ -1824,8 +1824,8 @@ require('./chunk-JKX2C3I2.cjs');
1824
1824
  require('./chunk-WWUSFOJ7.cjs');
1825
1825
  require('./chunk-SKI6NKOE.cjs');
1826
1826
  require('./chunk-EWPR7662.cjs');
1827
- require('./chunk-UDLDXVY4.cjs');
1828
- require('./chunk-IM366HS6.cjs');
1827
+ require('./chunk-GBILLSRM.cjs');
1828
+ require('./chunk-QCRJVO6Y.cjs');
1829
1829
  require('./chunk-UEULXVW2.cjs');
1830
1830
  require('./chunk-QQT23JJ7.cjs');
1831
1831
  require('./chunk-USUVHAQ7.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: _chunkI453QCEFcjs.computePolicySummary.call(void 0, POLICIES),
1894
+ summary: _chunk7QGK76LCcjs.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: _chunkI453QCEFcjs.getPolicyTableStatus.call(void 0, item),
1901
+ status: _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.PoliciesTable,
1915
+ _chunk7QGK76LCcjs.PoliciesTable,
1916
1916
  {
1917
1917
  rows: POLICIES_FIXTURE.rows,
1918
1918
  rowAsLink: true,
1919
- rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI453QCEFcjs.DataTable.RowCount, {}),
1919
+ rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.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, _chunkI453QCEFcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1924
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.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 _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
16
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.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-7IQU54VE.cjs');
32
- require('./chunk-OTGYA5F7.cjs');
31
+ require('./chunk-QFNQSZ4H.cjs');
32
+ require('./chunk-YCE7A63X.cjs');
33
33
  require('./chunk-OBQ5WUNG.cjs');
34
34
  require('./chunk-6CZVQ72C.cjs');
35
35
  require('./chunk-ZRDVFADQ.cjs');
@@ -1831,8 +1831,8 @@ require('./chunk-JKX2C3I2.cjs');
1831
1831
  require('./chunk-WWUSFOJ7.cjs');
1832
1832
  require('./chunk-SKI6NKOE.cjs');
1833
1833
  require('./chunk-EWPR7662.cjs');
1834
- require('./chunk-UDLDXVY4.cjs');
1835
- require('./chunk-IM366HS6.cjs');
1834
+ require('./chunk-GBILLSRM.cjs');
1835
+ require('./chunk-QCRJVO6Y.cjs');
1836
1836
  require('./chunk-UEULXVW2.cjs');
1837
1837
  require('./chunk-QQT23JJ7.cjs');
1838
1838
  require('./chunk-USUVHAQ7.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
- { ..._chunkI453QCEFcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
- _chunkI453QCEFcjs.EXECUTION_COLUMNS.status
1998
+ { ..._chunk7QGK76LCcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
+ _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.ScriptShellBadge,
2058
+ _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.ScriptExecutionsTable,
2082
+ _chunk7QGK76LCcjs.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, _chunkI453QCEFcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2092
+ const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.ScriptExecutionsTable,
2098
+ _chunk7QGK76LCcjs.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 _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
18
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.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-7IQU54VE.cjs');
34
- require('./chunk-OTGYA5F7.cjs');
33
+ require('./chunk-QFNQSZ4H.cjs');
34
+ require('./chunk-YCE7A63X.cjs');
35
35
  require('./chunk-OBQ5WUNG.cjs');
36
36
  require('./chunk-6CZVQ72C.cjs');
37
37
  require('./chunk-ZRDVFADQ.cjs');
@@ -1831,8 +1831,8 @@ require('./chunk-JKX2C3I2.cjs');
1831
1831
  require('./chunk-WWUSFOJ7.cjs');
1832
1832
  require('./chunk-SKI6NKOE.cjs');
1833
1833
  require('./chunk-EWPR7662.cjs');
1834
- require('./chunk-UDLDXVY4.cjs');
1835
- require('./chunk-IM366HS6.cjs');
1834
+ require('./chunk-GBILLSRM.cjs');
1835
+ require('./chunk-QCRJVO6Y.cjs');
1836
1836
  require('./chunk-UEULXVW2.cjs');
1837
1837
  require('./chunk-QQT23JJ7.cjs');
1838
1838
  require('./chunk-USUVHAQ7.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: _chunkI453QCEFcjs.PACKAGE_SEARCH_LABEL,
1925
+ label: _chunk7QGK76LCcjs.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: _chunkI453QCEFcjs.PACKAGE_SEARCH_PLACEHOLDER
1930
+ placeholder: _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.SoftwareActionForm,
1944
+ _chunk7QGK76LCcjs.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
- _chunkI453QCEFcjs.DeviceSelector,
1956
+ _chunk7QGK76LCcjs.DeviceSelector,
1957
1957
  {
1958
1958
  devices: selected,
1959
1959
  loading: false,
@@ -20,8 +20,9 @@ export type GetProxiedImageUrlOptions = {
20
20
  /**
21
21
  * Domains that should bypass the proxy (e.g. own-CDN hosts whose
22
22
  * `Content-Type` is reliable and that already serve CORS-permitting
23
- * headers). Matched as `imageUrl.includes(domain)` so subdomains
24
- * inherit. Default: `[]`.
23
+ * headers). Matched against the URL's host, exact or a subdomain of it
24
+ * (`hostMatches`), so a domain named anywhere else in the URL does not
25
+ * count. A `host:port` entry matches that port. Default: `[]`.
25
26
  */
26
27
  skipDomains?: string[];
27
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"image-proxy.d.ts","sourceRoot":"","sources":["../../src/utils/image-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,MAAM,GAAG,IAAI,CAsC9G;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAM7D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAKvF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAS3E"}
1
+ {"version":3,"file":"image-proxy.d.ts","sourceRoot":"","sources":["../../src/utils/image-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAWF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,MAAM,GAAG,IAAI,CAqC9G;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAM7D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAKvF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAS3E"}
@@ -1,3 +1,11 @@
1
+ import { hostMatches } from "./social-platforms.js";
2
+ function urlHost(url) {
3
+ try {
4
+ return new URL(url).host;
5
+ } catch {
6
+ return null;
7
+ }
8
+ }
1
9
  function getProxiedImageUrl(imageUrl, options) {
2
10
  if (!imageUrl) return null;
3
11
  const proxyPrefix = options?.proxyPrefix;
@@ -15,10 +23,9 @@ function getProxiedImageUrl(imageUrl, options) {
15
23
  if (!proxyPrefix) {
16
24
  return imageUrl;
17
25
  }
18
- for (const domain of skipDomains) {
19
- if (imageUrl.includes(domain)) {
20
- return imageUrl;
21
- }
26
+ const host = urlHost(imageUrl);
27
+ if (skipDomains.some((domain) => hostMatches(host, domain))) {
28
+ return imageUrl;
22
29
  }
23
30
  return `${proxyPrefix}?url=${encodeURIComponent(imageUrl)}`;
24
31
  }
@@ -82837,7 +82837,72 @@ function withWalkthroughOpenParam(url) {
82837
82837
  return `${url}${url.includes("?") ? "&" : "?"}${WALKTHROUGH_OPEN_QUERY_PARAM}=1`;
82838
82838
  }
82839
82839
 
82840
+ // src/utils/social-platforms.ts
82841
+ var SOCIAL_PLATFORM_ALIASES = {
82842
+ x: "twitter",
82843
+ mail: "email",
82844
+ web: "website",
82845
+ url: "website",
82846
+ yt: "youtube",
82847
+ ig: "instagram",
82848
+ fb: "facebook",
82849
+ generic: "website"
82850
+ };
82851
+ function normalizeSocialPlatform(platform) {
82852
+ if (!platform) return null;
82853
+ const key = platform.toLowerCase().trim();
82854
+ if (!key) return null;
82855
+ return SOCIAL_PLATFORM_ALIASES[key] ?? key;
82856
+ }
82857
+ function hostMatches(hostname, domain) {
82858
+ if (!hostname) return false;
82859
+ const host = hostname.toLowerCase().replace(/^www\./, "");
82860
+ const bare = domain.toLowerCase().replace(/^www\./, "");
82861
+ return host === bare || host.endsWith(`.${bare}`);
82862
+ }
82863
+ var SOCIAL_PLATFORM_ALT_HOSTS = {
82864
+ twitter: ["x.com"],
82865
+ youtube: ["youtu.be"],
82866
+ discord: ["discord.gg"],
82867
+ telegram: ["telegram.org"],
82868
+ facebook: ["fb.com"]
82869
+ };
82870
+ function hostOf2(value) {
82871
+ if (!value) return null;
82872
+ try {
82873
+ return new URL(value.includes("://") ? value : `https://${value}`).hostname;
82874
+ } catch {
82875
+ return null;
82876
+ }
82877
+ }
82878
+ function socialPlatformHosts(platform) {
82879
+ const primary = hostOf2(platform.urlPattern) ?? hostOf2(platform.baseUrl);
82880
+ return [...primary ? [primary] : [], ...SOCIAL_PLATFORM_ALT_HOSTS[platform.name] ?? []];
82881
+ }
82882
+ function classifySocialHost(url, platforms) {
82883
+ const hostname = hostOf2(url);
82884
+ if (!hostname) return null;
82885
+ for (const platform of platforms) {
82886
+ if (socialPlatformHosts(platform).some((domain) => hostMatches(hostname, domain))) {
82887
+ return platform.name;
82888
+ }
82889
+ }
82890
+ return "website";
82891
+ }
82892
+ function pickSocialLink(links, platform) {
82893
+ const target = normalizeSocialPlatform(platform);
82894
+ if (!target || !links) return void 0;
82895
+ return links.find((link) => normalizeSocialPlatform(link.platform) === target);
82896
+ }
82897
+
82840
82898
  // src/utils/image-proxy.ts
82899
+ function urlHost(url) {
82900
+ try {
82901
+ return new URL(url).host;
82902
+ } catch {
82903
+ return null;
82904
+ }
82905
+ }
82841
82906
  function getProxiedImageUrl(imageUrl, options) {
82842
82907
  if (!imageUrl) return null;
82843
82908
  const proxyPrefix = options?.proxyPrefix;
@@ -82855,10 +82920,9 @@ function getProxiedImageUrl(imageUrl, options) {
82855
82920
  if (!proxyPrefix) {
82856
82921
  return imageUrl;
82857
82922
  }
82858
- for (const domain of skipDomains) {
82859
- if (imageUrl.includes(domain)) {
82860
- return imageUrl;
82861
- }
82923
+ const host = urlHost(imageUrl);
82924
+ if (skipDomains.some((domain) => hostMatches(host, domain))) {
82925
+ return imageUrl;
82862
82926
  }
82863
82927
  return `${proxyPrefix}?url=${encodeURIComponent(imageUrl)}`;
82864
82928
  }
@@ -86010,64 +86074,6 @@ function toCsv(rows, columns) {
86010
86074
  return [header, ...body].join("\n");
86011
86075
  }
86012
86076
 
86013
- // src/utils/social-platforms.ts
86014
- var SOCIAL_PLATFORM_ALIASES = {
86015
- x: "twitter",
86016
- mail: "email",
86017
- web: "website",
86018
- url: "website",
86019
- yt: "youtube",
86020
- ig: "instagram",
86021
- fb: "facebook",
86022
- generic: "website"
86023
- };
86024
- function normalizeSocialPlatform(platform) {
86025
- if (!platform) return null;
86026
- const key = platform.toLowerCase().trim();
86027
- if (!key) return null;
86028
- return SOCIAL_PLATFORM_ALIASES[key] ?? key;
86029
- }
86030
- function hostMatches(hostname, domain) {
86031
- if (!hostname) return false;
86032
- const host = hostname.toLowerCase().replace(/^www\./, "");
86033
- const bare = domain.toLowerCase().replace(/^www\./, "");
86034
- return host === bare || host.endsWith(`.${bare}`);
86035
- }
86036
- var SOCIAL_PLATFORM_ALT_HOSTS = {
86037
- twitter: ["x.com"],
86038
- youtube: ["youtu.be"],
86039
- discord: ["discord.gg"],
86040
- telegram: ["telegram.org"],
86041
- facebook: ["fb.com"]
86042
- };
86043
- function hostOf2(value) {
86044
- if (!value) return null;
86045
- try {
86046
- return new URL(value.includes("://") ? value : `https://${value}`).hostname;
86047
- } catch {
86048
- return null;
86049
- }
86050
- }
86051
- function socialPlatformHosts(platform) {
86052
- const primary = hostOf2(platform.urlPattern) ?? hostOf2(platform.baseUrl);
86053
- return [...primary ? [primary] : [], ...SOCIAL_PLATFORM_ALT_HOSTS[platform.name] ?? []];
86054
- }
86055
- function classifySocialHost(url, platforms) {
86056
- const hostname = hostOf2(url);
86057
- if (!hostname) return null;
86058
- for (const platform of platforms) {
86059
- if (socialPlatformHosts(platform).some((domain) => hostMatches(hostname, domain))) {
86060
- return platform.name;
86061
- }
86062
- }
86063
- return "website";
86064
- }
86065
- function pickSocialLink(links, platform) {
86066
- const target = normalizeSocialPlatform(platform);
86067
- if (!target || !links) return void 0;
86068
- return links.find((link) => normalizeSocialPlatform(link.platform) === target);
86069
- }
86070
-
86071
86077
  // src/utils/badge-palette.ts
86072
86078
  var BADGE_PALETTE = [
86073
86079
  "cyan",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.819",
3
+ "version": "0.0.821",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -114,7 +114,7 @@ import type {
114
114
  import { ASK_AI_OPEN_EVENT, ASK_AI_OPEN_WITH_REF_EVENT, chatListensForAskAiOpens } from './utils/ask-ai-events';
115
115
  import { formatChatAttachmentMarkdownForBubble } from './utils/chat-attachment-markdown';
116
116
  import { chatChipClass } from './utils/chip-styles';
117
- import { FALLBACK_TOP_RETRIEVED, splitCitedSources } from './utils/cited-sources';
117
+ import { FALLBACK_TOP_RETRIEVED, groupedRowLabels, splitCitedSources } from './utils/cited-sources';
118
118
  import { flattenAssistantContent } from './utils/flatten-assistant-content';
119
119
  import { mapHostMessage, pruneTimestampCache } from './utils/host-message';
120
120
  import { resolveIcon } from './utils/icon-library';
@@ -757,7 +757,11 @@ function SourceChip(props: {
757
757
 
758
758
  // Grouped source — hover/click reveals a dropdown with Open + Ask per row.
759
759
  if (src.items && src.items.length > 0) {
760
- const dropdownItems: HoverDropdownItem[] = src.items.map(item => {
760
+ // A server-grouped chip answers to one number; a client-built one answers
761
+ // to every number its rows were cited by.
762
+ const itemIndices = src.items.flatMap(item => (item.index === undefined ? [] : [item.index]));
763
+ const rowLabels = groupedRowLabels(src.items);
764
+ const dropdownItems: HoverDropdownItem[] = src.items.map((item, i) => {
761
765
  const itemCta = resolveSourceRowCTA(
762
766
  {
763
767
  sourceRepo: src.sourceRepo,
@@ -777,9 +781,7 @@ function SourceChip(props: {
777
781
  // value is what keeps the handler assertion-free.
778
782
  const itemChatRef = itemCta.chatRef;
779
783
  return {
780
- // A client-built group keeps each row's own citation number, so the
781
- // `[3]` in the answer is findable inside the dropdown.
782
- label: item.index === undefined ? item.name : `[${item.index}] ${item.name}`,
784
+ label: rowLabels[i],
783
785
  icon: <ItemIcon className="h-3.5 w-3.5" />,
784
786
  href: itemCta.href ?? undefined,
785
787
  targetPlatform: itemCta.targetPlatform,
@@ -795,9 +797,6 @@ function SourceChip(props: {
795
797
  };
796
798
  });
797
799
 
798
- // A server-grouped chip answers to one number; a client-built one answers
799
- // to every number its rows were cited by.
800
- const itemIndices = src.items.flatMap(item => (item.index === undefined ? [] : [item.index]));
801
800
  const groupIndices = itemIndices.length > 0 ? formatCitationIndices(itemIndices) : `${src.index}`;
802
801
 
803
802
  return (
@@ -116,3 +116,13 @@ function splitByCards(sources: ChatSource[], cards: CardReference[]): CitedSourc
116
116
  const uncited = records.filter(record => !cited.includes(record));
117
117
  return { cited: groupSourcesByTable(cited), uncited: groupSourcesByTable(uncited) };
118
118
  }
119
+
120
+ /**
121
+ * A grouped chip's dropdown row label. A row prints its citation number only to tell rows of different citations
122
+ * apart (a client-built group of several numbers); when every row was cited by the same number, the chip already
123
+ * shows it and each row printing it again is noise.
124
+ */
125
+ export function groupedRowLabels(items: ReadonlyArray<{ name: string; index?: number }>): string[] {
126
+ const numbers = new Set(items.flatMap(item => (item.index === undefined ? [] : [item.index])));
127
+ return items.map(item => (numbers.size > 1 && item.index !== undefined ? `[${item.index}] ${item.name}` : item.name));
128
+ }
@@ -155,9 +155,10 @@ export interface ChatRuntime {
155
155
  * directly cross-origin (CORS-permitting). */
156
156
  imageProxyUrlPrefix?: string;
157
157
  /** Optional list of hostnames that should bypass the image proxy
158
- * (rendered direct). Hub uses ['openmsp.ai']; embedders typically
159
- * leave it unset. Matches the `skipDomains` parameter of
160
- * `getProxiedImageUrl`. */
158
+ * (rendered direct), each matching its exact host and its subdomains.
159
+ * Hub uses ['openmsp.ai', <its Supabase project host>]; an embedder
160
+ * that shows the hub's content lists the same project host. Matches
161
+ * the `skipDomains` parameter of `getProxiedImageUrl`. */
161
162
  imageProxySkipDomains?: string[];
162
163
  /** Optional base URL for the branded og-placeholder image route — the
163
164
  * DEFAULT cover-image fallback for entity cards with no image. The lib