@michengai/dsh-codex-ui 0.2.66 → 0.2.67

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 (2) hide show
  1. package/dist/client.js +6 -6
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -1487,7 +1487,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1487
1487
  };
1488
1488
  const renderGroup = (workspace, zone) => {
1489
1489
  const expandKey = zone === "pinned" ? `pin:${workspace.workspaceId}` : String(workspace.workspaceId);
1490
- const isExpanded = expanded[expandKey] ?? zone !== "pinned";
1490
+ const isExpanded = expanded[expandKey] ?? true;
1491
1491
  const shownIds = workspace.visibleIds.filter((id) => !pinSectionSessions.includes(id));
1492
1492
  const menuOpen = menu?.type === "workspace" && menu.id === workspace.workspaceId;
1493
1493
  const menuAt = menuOpen && menu.x !== void 0 && menu.y !== void 0 ? {
@@ -1575,7 +1575,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1575
1575
  setPinSlot(void 0);
1576
1576
  },
1577
1577
  onClick: () => {
1578
- if (zone !== "pinned") toggleGroup(expandKey, true);
1578
+ toggleGroup(expandKey, true);
1579
1579
  },
1580
1580
  onContextMenu: (event) => {
1581
1581
  event.preventDefault();
@@ -1604,7 +1604,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1604
1604
  onKeyDown: (event) => {
1605
1605
  if (event.key === "Enter" || event.key === " ") {
1606
1606
  event.preventDefault();
1607
- if (zone !== "pinned") toggleGroup(expandKey, true);
1607
+ toggleGroup(expandKey, true);
1608
1608
  }
1609
1609
  },
1610
1610
  children: [
@@ -1627,7 +1627,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1627
1627
  top: box.top
1628
1628
  }, { immediate: true });
1629
1629
  },
1630
- children: zone !== "pinned" && isExpanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpenOutline16, { size: 16 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderClose16, { size: 16 })
1630
+ children: isExpanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpenOutline16, { size: 16 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderClose16, { size: 16 })
1631
1631
  }),
1632
1632
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1633
1633
  className: "dcu-wb-project-title",
@@ -1697,11 +1697,11 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1697
1697
  })
1698
1698
  ]
1699
1699
  }),
1700
- zone !== "pinned" && isExpanded && shownIds.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1700
+ isExpanded && shownIds.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1701
1701
  className: "dcu-wb-nochat",
1702
1702
  children: t("workspace.noChat")
1703
1703
  }),
1704
- zone !== "pinned" && isExpanded && shownIds.map((id) => {
1704
+ isExpanded && shownIds.map((id) => {
1705
1705
  const session = sessions.byId[id];
1706
1706
  if (session === void 0) return null;
1707
1707
  const path = session.cwd ?? workspace.path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "0.2.66",
3
+ "version": "0.2.67",
4
4
  "description": "以 Codex 风格重构 DSH Web 侧栏的独立客户端插件",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {