@axiom-lattice/react-sdk 4.2.1 → 4.2.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AgentDetailView
3
- } from "./chunk-GAR3NRH5.mjs";
3
+ } from "./chunk-OZQ4CZWU.mjs";
4
4
  import {
5
5
  ProjectScopeProvider_default
6
6
  } from "./chunk-R65ETB3L.mjs";
@@ -157,4 +157,4 @@ var AgentDetailSideApp = ({ data }) => {
157
157
  export {
158
158
  AgentDetailSideApp
159
159
  };
160
- //# sourceMappingURL=AgentDetailSideApp-KHGPPCTW.mjs.map
160
+ //# sourceMappingURL=AgentDetailSideApp-XVFNLPKO.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AgentGovernanceWorkbench
3
- } from "./chunk-PB2L6UII.mjs";
4
- import "./chunk-GAR3NRH5.mjs";
3
+ } from "./chunk-IY3DOVI3.mjs";
4
+ import "./chunk-OZQ4CZWU.mjs";
5
5
  import "./chunk-R65ETB3L.mjs";
6
6
  import "./chunk-BGJ4TPAL.mjs";
7
7
  import "./chunk-7QQKL657.mjs";
@@ -17,4 +17,4 @@ import "./chunk-SH6YXSHR.mjs";
17
17
  export {
18
18
  AgentGovernanceWorkbench
19
19
  };
20
- //# sourceMappingURL=AgentGovernanceWorkbench-S2P5SJ4W.mjs.map
20
+ //# sourceMappingURL=AgentGovernanceWorkbench-GP4IYPVR.mjs.map
@@ -11,7 +11,7 @@ import {
11
11
  shortHash,
12
12
  startLearningRound,
13
13
  statusHex
14
- } from "./chunk-GAR3NRH5.mjs";
14
+ } from "./chunk-OZQ4CZWU.mjs";
15
15
  import {
16
16
  ProjectScopeProvider_default,
17
17
  TrainingContextCard
@@ -1833,4 +1833,4 @@ export {
1833
1833
  CreateAssistantModal_default,
1834
1834
  AgentGovernanceWorkbench
1835
1835
  };
1836
- //# sourceMappingURL=chunk-PB2L6UII.mjs.map
1836
+ //# sourceMappingURL=chunk-IY3DOVI3.mjs.map
@@ -3477,9 +3477,14 @@ var MAX_UPLOAD_MB = 50;
3477
3477
  var useStyles6 = createStyles7(({ token, css }) => ({
3478
3478
  root: css`
3479
3479
  flex-shrink: 0;
3480
- border-top: 1px solid ${token.colorBorderSecondary};
3481
3480
  background: ${token.colorBgContainer};
3482
3481
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
3482
+
3483
+ @media (max-width: 768px) {
3484
+ /* Nearly full-bleed on phones: the Sender already brings its own inner
3485
+ padding, so extra host padding just wastes scarce width. */
3486
+ padding: 4px 6px max(6px, env(safe-area-inset-bottom));
3487
+ }
3483
3488
  `,
3484
3489
  reply: css`
3485
3490
  display: flex;
@@ -3734,6 +3739,7 @@ var ProjectRoomComposer = ({
3734
3739
  onKeyDown: handleSuggestionKeyDown,
3735
3740
  placeholder: "Message the room",
3736
3741
  autoSize: isMobile ? { minRows: 1, maxRows: 1 } : { minRows: 2, maxRows: 8 },
3742
+ styles: isMobile ? { content: { paddingInlineStart: 8, paddingInlineEnd: 8 } } : void 0,
3737
3743
  suffix: isMobile ? void 0 : false,
3738
3744
  prefix: isMobile ? attachButton : void 0,
3739
3745
  footer: isMobile ? void 0 : (actionNode) => /* @__PURE__ */ jsxs9(Flex, { justify: "space-between", align: "center", style: { padding: "8px 0 0" }, children: [
@@ -5916,7 +5922,7 @@ var useStyles13 = createStyles15(({ token, css }) => ({
5916
5922
  overflow: hidden;
5917
5923
  `
5918
5924
  }));
5919
- var RoomsPage = ({ workspaceId, openRoom, onRoomOpened }) => {
5925
+ var RoomsPage = ({ workspaceId, openRoom, onRoomOpened, onChatOpenChange }) => {
5920
5926
  const { styles } = useStyles13();
5921
5927
  const isMobile = useMediaQuery("(max-width: 768px)");
5922
5928
  const [selectedRoom, setSelectedRoom] = useState20(null);
@@ -5930,6 +5936,10 @@ var RoomsPage = ({ workspaceId, openRoom, onRoomOpened }) => {
5930
5936
  void refreshRooms();
5931
5937
  onRoomOpened?.();
5932
5938
  }, [openRoom, onRoomOpened, refreshRooms]);
5939
+ useEffect16(() => {
5940
+ onChatOpenChange?.(selectedRoom !== null);
5941
+ return () => onChatOpenChange?.(false);
5942
+ }, [selectedRoom, onChatOpenChange]);
5933
5943
  const roomMenu = /* @__PURE__ */ jsx28("div", { className: styles.menuList, children: /* @__PURE__ */ jsx28(
5934
5944
  RoomList,
5935
5945
  {
@@ -6702,16 +6712,22 @@ var CoSpaceContainer = ({ workspaceId: workspaceIdProp }) => {
6702
6712
  const [activeTab, setActiveTab] = useState23("rooms");
6703
6713
  const [pendingRoom, setPendingRoom] = useState23(null);
6704
6714
  const [meOpen, setMeOpen] = useState23(false);
6715
+ const [roomChatOpen, setRoomChatOpen] = useState23(false);
6705
6716
  const handleNavigateToRoom = useCallback18((room) => {
6706
6717
  setPendingRoom(room);
6707
6718
  setActiveTab("rooms");
6708
6719
  }, []);
6720
+ const selectTab = useCallback18((tab) => {
6721
+ setActiveTab(tab);
6722
+ setRoomChatOpen(false);
6723
+ }, []);
6709
6724
  const page = activeTab === "rooms" ? /* @__PURE__ */ jsx32("div", { className: styles.page, children: /* @__PURE__ */ jsx32(
6710
6725
  RoomsPage,
6711
6726
  {
6712
6727
  workspaceId,
6713
6728
  openRoom: pendingRoom,
6714
- onRoomOpened: () => setPendingRoom(null)
6729
+ onRoomOpened: () => setPendingRoom(null),
6730
+ onChatOpenChange: setRoomChatOpen
6715
6731
  }
6716
6732
  ) }) : /* @__PURE__ */ jsx32("div", { className: styles.page, children: /* @__PURE__ */ jsx32(OrgsPage, { workspaceId, onNavigateToRoom: handleNavigateToRoom }) });
6717
6733
  if (isMobile) {
@@ -6719,13 +6735,13 @@ var CoSpaceContainer = ({ workspaceId: workspaceIdProp }) => {
6719
6735
  /* @__PURE__ */ jsx32(RoomConnectionBanner, {}),
6720
6736
  /* @__PURE__ */ jsx32("div", { className: styles.inner, children: /* @__PURE__ */ jsxs24("div", { className: styles.mobileRoot, children: [
6721
6737
  /* @__PURE__ */ jsx32("div", { className: styles.mobilePage, children: page }),
6722
- /* @__PURE__ */ jsxs24("nav", { className: styles.tabBar, "aria-label": "CoSpace navigation", children: [
6738
+ !roomChatOpen && /* @__PURE__ */ jsxs24("nav", { className: styles.tabBar, "aria-label": "CoSpace navigation", children: [
6723
6739
  /* @__PURE__ */ jsxs24(
6724
6740
  "button",
6725
6741
  {
6726
6742
  type: "button",
6727
6743
  className: `${styles.tabButton} ${activeTab === "rooms" ? "active" : ""}`,
6728
- onClick: () => setActiveTab("rooms"),
6744
+ onClick: () => selectTab("rooms"),
6729
6745
  "aria-pressed": activeTab === "rooms",
6730
6746
  children: [
6731
6747
  /* @__PURE__ */ jsx32(MessageSquare5, { size: 20 }),
@@ -6738,7 +6754,7 @@ var CoSpaceContainer = ({ workspaceId: workspaceIdProp }) => {
6738
6754
  {
6739
6755
  type: "button",
6740
6756
  className: `${styles.tabButton} ${activeTab === "orgs" ? "active" : ""}`,
6741
- onClick: () => setActiveTab("orgs"),
6757
+ onClick: () => selectTab("orgs"),
6742
6758
  "aria-pressed": activeTab === "orgs",
6743
6759
  children: [
6744
6760
  /* @__PURE__ */ jsx32(Building23, { size: 20 }),
@@ -18330,7 +18346,7 @@ var DEFAULT_WORKSPACE_MENU_ITEMS = [
18330
18346
  ];
18331
18347
  var PanelSuspenseFallback = () => /* @__PURE__ */ jsx78("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", minHeight: 120 }, children: /* @__PURE__ */ jsx78(Spin16, {}) });
18332
18348
  var AgentGovernanceWorkbench = lazy3(
18333
- () => import("./AgentGovernanceWorkbench-S2P5SJ4W.mjs").then((m) => ({ default: m.AgentGovernanceWorkbench }))
18349
+ () => import("./AgentGovernanceWorkbench-GP4IYPVR.mjs").then((m) => ({ default: m.AgentGovernanceWorkbench }))
18334
18350
  );
18335
18351
  var TopologyRuntimeView = lazy3(
18336
18352
  () => import("./TopologyRuntimeView-J2QQF3FO.mjs").then((m) => ({ default: m.TopologyRuntimeView }))
@@ -18342,7 +18358,7 @@ var TasksSideApp2 = lazy3(
18342
18358
  () => import("./TasksSideApp-ISKFSZLV.mjs").then((m) => ({ default: m.TasksSideApp }))
18343
18359
  );
18344
18360
  var AgentDetailSideApp = lazy3(
18345
- () => import("./AgentDetailSideApp-KHGPPCTW.mjs").then((m) => ({ default: m.AgentDetailSideApp }))
18361
+ () => import("./AgentDetailSideApp-XVFNLPKO.mjs").then((m) => ({ default: m.AgentDetailSideApp }))
18346
18362
  );
18347
18363
  var createWrapper = (Component2) => {
18348
18364
  return () => /* @__PURE__ */ jsx78(Suspense3, { fallback: /* @__PURE__ */ jsx78(PanelSuspenseFallback, {}), children: /* @__PURE__ */ jsx78(Component2, { ...{} }) });
@@ -28797,4 +28813,4 @@ export {
28797
28813
  WorkspaceResourceUIContext,
28798
28814
  LatticeChat
28799
28815
  };
28800
- //# sourceMappingURL=chunk-GAR3NRH5.mjs.map
28816
+ //# sourceMappingURL=chunk-OZQ4CZWU.mjs.map