@axiom-lattice/react-sdk 4.6.0 → 4.6.2

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 (53) hide show
  1. package/dist/{AgentDetailSideApp-ELEFRZ2O.mjs → AgentDetailSideApp-4LEF6MS5.mjs} +6 -6
  2. package/dist/{AgentGovernanceWorkbench-OOX5GHQY.mjs → AgentGovernanceWorkbench-2DXFFSY4.mjs} +7 -7
  3. package/dist/{MessageGraph-JNBZSO4X.mjs → MessageGraph-AOTQBN3S.mjs} +2 -2
  4. package/dist/{ReactChart-GGSBKURI.mjs → ReactChart-HPD5TQOE.mjs} +2 -2
  5. package/dist/{TasksSideApp-D7XP7COS.mjs → TasksSideApp-TSMN3OAM.mjs} +3 -3
  6. package/dist/{TeamWorkspace-SD2DCORK.mjs → TeamWorkspace-JVO6SBQH.mjs} +2 -2
  7. package/dist/{TopologyRuntimeView-Y5Z3L7YX.mjs → TopologyRuntimeView-GHOPKUAU.mjs} +3 -3
  8. package/dist/{WorkflowAutomationView-PPWLL3AJ.mjs → WorkflowAutomationView-OLFR3AZH.mjs} +5 -5
  9. package/dist/{chunk-7MJ3BGSG.mjs → chunk-4QPBMVJD.mjs} +2 -2
  10. package/dist/{chunk-JIWJES6S.mjs → chunk-D3657YM2.mjs} +2 -2
  11. package/dist/{chunk-755SGMOG.mjs → chunk-ERYKIL3X.mjs} +4 -4
  12. package/dist/{chunk-6XIW545I.mjs → chunk-JWVMQZ6G.mjs} +4 -4
  13. package/dist/{chunk-XJHIABMU.mjs → chunk-PS5OPS6W.mjs} +5 -5
  14. package/dist/{chunk-EUL6QTIV.mjs → chunk-Z6XUZLP7.mjs} +76 -63
  15. package/dist/chunk-Z6XUZLP7.mjs.map +1 -0
  16. package/dist/{chunk-AB6R34HR.mjs → chunk-ZGGVWYV4.mjs} +2 -2
  17. package/dist/{embed-page-AgentDetailSideApp-7NYLPLAX.js → embed-page-AgentDetailSideApp-NTLAFO5C.js} +1 -1
  18. package/dist/{embed-page-AgentGovernanceWorkbench-LNGNSI7X.js → embed-page-AgentGovernanceWorkbench-QPVBOMLH.js} +1 -1
  19. package/dist/{embed-page-MessageGraph-E6DZDT65.js → embed-page-MessageGraph-JAJGMYKH.js} +1 -1
  20. package/dist/{embed-page-ReactChart-3VE7F5VJ.js → embed-page-ReactChart-WUG6TEAZ.js} +1 -1
  21. package/dist/{embed-page-SkillFlow-XMMHEHQL.js → embed-page-SkillFlow-TSBZ4V2P.js} +1 -1
  22. package/dist/{embed-page-TasksSideApp-QM5TZ7EG.js → embed-page-TasksSideApp-TJI22YGD.js} +1 -1
  23. package/dist/{embed-page-TeamWorkspace-E7RFY3ZY.js → embed-page-TeamWorkspace-OJJLN5VI.js} +1 -1
  24. package/dist/{embed-page-TopologyRuntimeView-DLPDUB7Z.js → embed-page-TopologyRuntimeView-ZFU4N6TV.js} +1 -1
  25. package/dist/{embed-page-WorkflowAutomationView-FKSVOHHB.js → embed-page-WorkflowAutomationView-ALXV7VQQ.js} +1 -1
  26. package/dist/{embed-page-chunk-I7PWCKAG.js → embed-page-chunk-DZQBVJ7Z.js} +1 -1
  27. package/dist/{embed-page-chunk-WWTU55RX.js → embed-page-chunk-IPIJ2SG6.js} +1 -1
  28. package/dist/{embed-page-chunk-KN7D66KL.js → embed-page-chunk-N22EGQAJ.js} +1 -1
  29. package/dist/{embed-page-chunk-EXCJ42IB.js → embed-page-chunk-O72XBKQH.js} +2 -2
  30. package/dist/{embed-page-chunk-U276WBDI.js → embed-page-chunk-QMVIL4BJ.js} +190 -185
  31. package/dist/{embed-page-chunk-H6TK3FAR.js → embed-page-chunk-UT3WYBZH.js} +1 -1
  32. package/dist/embed-page-chunk-YPNSOZYW.js +8 -0
  33. package/dist/embed-page.js +1 -1
  34. package/dist/index.js +65 -52
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +7 -7
  37. package/package.json +3 -3
  38. package/dist/chunk-EUL6QTIV.mjs.map +0 -1
  39. package/dist/embed-page-chunk-HEMNMC4X.js +0 -7
  40. /package/dist/{AgentDetailSideApp-ELEFRZ2O.mjs.map → AgentDetailSideApp-4LEF6MS5.mjs.map} +0 -0
  41. /package/dist/{AgentGovernanceWorkbench-OOX5GHQY.mjs.map → AgentGovernanceWorkbench-2DXFFSY4.mjs.map} +0 -0
  42. /package/dist/{MessageGraph-JNBZSO4X.mjs.map → MessageGraph-AOTQBN3S.mjs.map} +0 -0
  43. /package/dist/{ReactChart-GGSBKURI.mjs.map → ReactChart-HPD5TQOE.mjs.map} +0 -0
  44. /package/dist/{TasksSideApp-D7XP7COS.mjs.map → TasksSideApp-TSMN3OAM.mjs.map} +0 -0
  45. /package/dist/{TeamWorkspace-SD2DCORK.mjs.map → TeamWorkspace-JVO6SBQH.mjs.map} +0 -0
  46. /package/dist/{TopologyRuntimeView-Y5Z3L7YX.mjs.map → TopologyRuntimeView-GHOPKUAU.mjs.map} +0 -0
  47. /package/dist/{WorkflowAutomationView-PPWLL3AJ.mjs.map → WorkflowAutomationView-OLFR3AZH.mjs.map} +0 -0
  48. /package/dist/{chunk-7MJ3BGSG.mjs.map → chunk-4QPBMVJD.mjs.map} +0 -0
  49. /package/dist/{chunk-JIWJES6S.mjs.map → chunk-D3657YM2.mjs.map} +0 -0
  50. /package/dist/{chunk-755SGMOG.mjs.map → chunk-ERYKIL3X.mjs.map} +0 -0
  51. /package/dist/{chunk-6XIW545I.mjs.map → chunk-JWVMQZ6G.mjs.map} +0 -0
  52. /package/dist/{chunk-XJHIABMU.mjs.map → chunk-PS5OPS6W.mjs.map} +0 -0
  53. /package/dist/{chunk-AB6R34HR.mjs.map → chunk-ZGGVWYV4.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{b as f}from"./embed-page-chunk-EXCJ42IB.js";import"./embed-page-chunk-U276WBDI.js";import"./embed-page-chunk-HEMNMC4X.js";import{a as b}from"./embed-page-chunk-MB65DZAX.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-5JDQ456X.js";import"./embed-page-chunk-Z7USDLHI.js";import{a as g}from"./embed-page-chunk-O4QK5LWZ.js";import"./embed-page-chunk-4BKXE5ON.js";import"./embed-page-chunk-IX4WLWCY.js";import"./embed-page-chunk-EUOOO2LS.js";import{b as U,e as s}from"./embed-page-chunk-6Y3UYJ6Z.js";var h=U(d=>{"use strict";var E=g();d.createRoot=E.createRoot,d.hydrateRoot=E.hydrateRoot;var ee});var T=s(h()),k=s(g());var y="axiom-web-app-embed";var x=["axiom:hello","axiom:identity","axiom:send","axiom:config"];function w(e,t){return{source:y,version:1,type:e,payload:t}}var N=6,z=40,B=500;function H(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=e,n=Object.keys(t);return n.length!==2||!n.includes("label")||!n.includes("text")?!1:typeof t.label=="string"&&t.label.length>=1&&t.label.length<=z&&typeof t.text=="string"&&t.text.length>=1&&t.text.length<=B}function Q(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(t.length>=N)break;H(n)&&t.push({label:n.label,text:n.text})}return t}function _(e){if(typeof e!="object"||e===null)return null;let t=e,n={};if(typeof t.welcome=="string"&&t.welcome.length>0&&(n.welcome=t.welcome),Array.isArray(t.quicks)){let r=Q(t.quicks);(r.length>0||t.quicks.length===0)&&(n.quicks=r)}return n.welcome===void 0&&n.quicks===void 0?null:n}function R(e,t){if(typeof e!="object"||e===null)return null;let n=e;return n.source!==y||n.version!==1||typeof n.type!="string"||!t.includes(n.type)?null:{type:n.type,payload:n.payload}}var p=s(b()),P=/^[A-Za-z0-9._:@-]{1,128}$/,q="Open this chat from the host page embed to start chatting.",v="axiom-embed-root",C="axiom-embed-style",A=32768,G=`
1
+ import{b as f}from"./embed-page-chunk-O72XBKQH.js";import"./embed-page-chunk-QMVIL4BJ.js";import"./embed-page-chunk-YPNSOZYW.js";import{a as b}from"./embed-page-chunk-MB65DZAX.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-5JDQ456X.js";import"./embed-page-chunk-Z7USDLHI.js";import{a as g}from"./embed-page-chunk-O4QK5LWZ.js";import"./embed-page-chunk-4BKXE5ON.js";import"./embed-page-chunk-IX4WLWCY.js";import"./embed-page-chunk-EUOOO2LS.js";import{b as U,e as s}from"./embed-page-chunk-6Y3UYJ6Z.js";var h=U(d=>{"use strict";var E=g();d.createRoot=E.createRoot,d.hydrateRoot=E.hydrateRoot;var ee});var T=s(h()),k=s(g());var y="axiom-web-app-embed";var x=["axiom:hello","axiom:identity","axiom:send","axiom:config"];function w(e,t){return{source:y,version:1,type:e,payload:t}}var N=6,z=40,B=500;function H(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=e,n=Object.keys(t);return n.length!==2||!n.includes("label")||!n.includes("text")?!1:typeof t.label=="string"&&t.label.length>=1&&t.label.length<=z&&typeof t.text=="string"&&t.text.length>=1&&t.text.length<=B}function Q(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(t.length>=N)break;H(n)&&t.push({label:n.label,text:n.text})}return t}function _(e){if(typeof e!="object"||e===null)return null;let t=e,n={};if(typeof t.welcome=="string"&&t.welcome.length>0&&(n.welcome=t.welcome),Array.isArray(t.quicks)){let r=Q(t.quicks);(r.length>0||t.quicks.length===0)&&(n.quicks=r)}return n.welcome===void 0&&n.quicks===void 0?null:n}function R(e,t){if(typeof e!="object"||e===null)return null;let n=e;return n.source!==y||n.version!==1||typeof n.type!="string"||!t.includes(n.type)?null:{type:n.type,payload:n.payload}}var p=s(b()),P=/^[A-Za-z0-9._:@-]{1,128}$/,q="Open this chat from the host page embed to start chatting.",v="axiom-embed-root",C="axiom-embed-style",A=32768,G=`
2
2
  html, body, #${v} { height: 100%; margin: 0; }
3
3
  .axiom-embed-fill { height: 100% !important; min-height: 0 !important; }
4
4
  .axiom-embed-card { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: #64748b; padding: 24px; box-sizing: border-box; text-align: center; }
package/dist/index.js CHANGED
@@ -88011,8 +88011,8 @@ function threadIdFromExecutionResultId(eventKey) {
88011
88011
  if (typeof eventKey !== "string") return void 0;
88012
88012
  const prefix = "execution-result:";
88013
88013
  if (!eventKey.startsWith(prefix)) return void 0;
88014
- const suffix = eventKey.slice(prefix.length).trim();
88015
- return suffix.length > 0 ? suffix : void 0;
88014
+ const threadId = eventKey.slice(prefix.length).trim().split(":")[0]?.trim();
88015
+ return threadId && threadId.length > 0 ? threadId : void 0;
88016
88016
  }
88017
88017
  async function resolveExecutionThreadId(client, taskId, response, contextThreadId) {
88018
88018
  const execution = parseTaskExecution(response);
@@ -88484,7 +88484,10 @@ ${JSON.stringify(
88484
88484
  }, []);
88485
88485
  const items3 = (0, import_react87.useMemo)(
88486
88486
  () => deferredMessages.map((message49, index3) => ({
88487
- key: message49.id,
88487
+ // Some locally-constructed threads (e.g. the Architect copilot) can
88488
+ // carry messages without a server id; fall back to the index so
88489
+ // Bubble.List always receives a key and does not warn.
88490
+ key: message49.id || `message-${index3}`,
88488
88491
  role: message49.role,
88489
88492
  typing: false,
88490
88493
  content: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
@@ -104574,6 +104577,7 @@ var init_TaskCommentComposer = __esm({
104574
104577
  value: content,
104575
104578
  header: senderHeader,
104576
104579
  prefix: attachButton,
104580
+ suffix: (_actionNode, { components }) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(components.SendButton, { "aria-label": "Send comment" }),
104577
104581
  onChange: setContent,
104578
104582
  onSubmit: (next) => void submit(next),
104579
104583
  placeholder: "Add a comment\u2026",
@@ -109330,6 +109334,10 @@ var init_SideAppViewBrowser = __esm({
109330
109334
  display: flex;
109331
109335
  flex-direction: column;
109332
109336
  align-items: center;
109337
+ // The wrapper spans the full width only to center the pill. Keep it
109338
+ // transparent to pointer events so the empty top band never intercepts
109339
+ // clicks on the content beneath; the visible pill/header opt back in.
109340
+ pointer-events: none;
109333
109341
  `,
109334
109342
  compactPill: css`
109335
109343
  display: flex;
@@ -109348,6 +109356,7 @@ var init_SideAppViewBrowser = __esm({
109348
109356
  cursor: default;
109349
109357
  transition: all 0.2s ease;
109350
109358
  margin-top: 0;
109359
+ pointer-events: auto;
109351
109360
 
109352
109361
  &:hover {
109353
109362
  color: ${token.colorText};
@@ -109373,6 +109382,7 @@ var init_SideAppViewBrowser = __esm({
109373
109382
  padding: 4px 8px;
109374
109383
  gap: 4px;
109375
109384
  width: 100%;
109385
+ pointer-events: auto;
109376
109386
  animation: floatIn 0.2s ease;
109377
109387
  transition: background 0.2s ease;
109378
109388
 
@@ -109585,61 +109595,64 @@ var init_SideAppViewBrowser = __esm({
109585
109595
  [openApp]
109586
109596
  );
109587
109597
  return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: styles.container, children: [
109588
- compact && items3.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109598
+ compact && items3.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.compactWrapper, children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109589
109599
  "div",
109590
109600
  {
109591
- className: styles.compactWrapper,
109601
+ className: `${styles.floatingHeader} ${autoPeek ? styles.floatingHeaderPeek : ""} ${isLeaving ? styles.floatingHeaderLeaving : ""}`,
109602
+ style: { width: "fit-content", maxWidth: "100%" },
109592
109603
  onMouseEnter: handleMouseEnter,
109593
109604
  onMouseLeave: handleMouseLeave,
109594
- children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109595
- "div",
109596
- {
109597
- className: `${styles.floatingHeader} ${autoPeek ? styles.floatingHeaderPeek : ""} ${isLeaving ? styles.floatingHeaderLeaving : ""}`,
109598
- onAnimationEnd: handleFloatingAnimationEnd,
109599
- children: [
109600
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.floatingTabsStrip, children: items3.map((item) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: item.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109601
- "div",
109602
- {
109603
- "data-tab-key": item.key,
109604
- className: `${styles.tab} ${item.key === activeKey ? "active" : ""}`,
109605
- onClick: () => switchTab(item.key),
109606
- onMouseEnter: () => setHoveredTab(item.key),
109607
- onMouseLeave: () => setHoveredTab(null),
109608
- children: [
109609
- getTabIcon(item.componentKey),
109610
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("span", { className: styles.tabLabel, children: item.label }),
109611
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109612
- "span",
109613
- {
109614
- className: `${styles.closeIndicator} ${hoveredTab === item.key || item.key === activeKey ? "always-visible" : ""}`,
109615
- onClick: (e8) => {
109616
- e8.stopPropagation();
109617
- remove2(item.key);
109618
- },
109619
- children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, { style: { fontSize: 10 } })
109620
- }
109621
- )
109622
- ]
109623
- }
109624
- ) }, item.key)) }),
109625
- items3.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109626
- import_antd114.Dropdown,
109627
- {
109628
- menu: { items: dropdownItems },
109629
- placement: "bottomRight",
109630
- trigger: ["click"],
109631
- children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, title: "All tabs", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.MoreOutlined, {}) })
109632
- }
109633
- ),
109634
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: "Close", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, onClick: closeApp, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, {}) }) })
109635
- ]
109636
- }
109637
- ) : activeItem && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: styles.compactPill, children: [
109605
+ onAnimationEnd: handleFloatingAnimationEnd,
109606
+ children: [
109607
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.floatingTabsStrip, children: items3.map((item) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: item.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109608
+ "div",
109609
+ {
109610
+ "data-tab-key": item.key,
109611
+ className: `${styles.tab} ${item.key === activeKey ? "active" : ""}`,
109612
+ onClick: () => switchTab(item.key),
109613
+ onMouseEnter: () => setHoveredTab(item.key),
109614
+ onMouseLeave: () => setHoveredTab(null),
109615
+ children: [
109616
+ getTabIcon(item.componentKey),
109617
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("span", { className: styles.tabLabel, children: item.label }),
109618
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109619
+ "span",
109620
+ {
109621
+ className: `${styles.closeIndicator} ${hoveredTab === item.key || item.key === activeKey ? "always-visible" : ""}`,
109622
+ onClick: (e8) => {
109623
+ e8.stopPropagation();
109624
+ remove2(item.key);
109625
+ },
109626
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, { style: { fontSize: 10 } })
109627
+ }
109628
+ )
109629
+ ]
109630
+ }
109631
+ ) }, item.key)) }),
109632
+ items3.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109633
+ import_antd114.Dropdown,
109634
+ {
109635
+ menu: { items: dropdownItems },
109636
+ placement: "bottomRight",
109637
+ trigger: ["click"],
109638
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, title: "All tabs", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.MoreOutlined, {}) })
109639
+ }
109640
+ ),
109641
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: "Close", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, onClick: closeApp, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, {}) }) })
109642
+ ]
109643
+ }
109644
+ ) : activeItem && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109645
+ "div",
109646
+ {
109647
+ className: styles.compactPill,
109648
+ onMouseEnter: handleMouseEnter,
109649
+ onMouseLeave: handleMouseLeave,
109650
+ children: [
109638
109651
  getTabIcon(activeItem.componentKey),
109639
109652
  /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("span", { className: styles.compactPillLabel, children: activeItem.label })
109640
- ] })
109653
+ ]
109641
109654
  }
109642
- ),
109655
+ ) }),
109643
109656
  !compact && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: styles.header, children: [
109644
109657
  /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.tabsStrip, children: items3.map((item) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: item.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109645
109658
  "div",
@@ -142642,7 +142655,7 @@ var init_WorkspaceResourceManager = __esm({
142642
142655
  )
142643
142656
  }
142644
142657
  ),
142645
- main: /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(SideAppViewBrowser, { region: "content", showCloseButton: false }),
142658
+ main: /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(SideAppViewBrowser, { region: "content", compact: false, showCloseButton: false }),
142646
142659
  mainStyle: { padding: 0 }
142647
142660
  }
142648
142661
  ),