@morlay/ui-conversation-manager 0.1.5 → 0.1.7

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.
@@ -9,7 +9,6 @@ import type {} from "@deepseek-ai/dsh-client-ui-sidebar/client";
9
9
  import type {} from "@deepseek-ai/dsh-client-ui-session/client";
10
10
  import type {} from "@deepseek-ai/dsh-client-ui-workspace/client";
11
11
  import type {} from "@deepseek-ai/dsh-api-session-controller/client";
12
- import { apply as installUiPrimitives } from "@morlay/dsh-client-ui-primitives/client";
13
12
  import { ConversationManagerController } from "./controller.ts";
14
13
  import { ConversationManagerPage } from "./ConversationManagerPage.tsx";
15
14
  import { ConversationManagerIcon } from "./ConversationManagerIcon.tsx";
@@ -41,7 +40,6 @@ export const inject = ["slots", "locale", "uiWorkspace", "sessions"];
41
40
 
42
41
  export function apply(ctx: ClientContext): void {
43
42
  // 基础面随本包 inline(不再是装配行):装上它提供的字典、字段槽与按行配置页;多份副本只装一次。
44
- installUiPrimitives(ctx);
45
43
  ctx.effect(() => ctx.locale.register(NS, { zh, en }), "ui-conversation-manager: dictionaries");
46
44
  const t = ctx.locale.bind(NS);
47
45
  // ctx.sessions 的类型被别的 client 半的声明占住(SessionStore),按既有做法从服务面取。
@@ -11,8 +11,12 @@ export const zh = {
11
11
  archived: "已归档",
12
12
  subagent: "子代理",
13
13
  showSubagents: "显示子代理会话",
14
+ clearSearch: "清空搜索",
15
+ "filter.view": "视图",
16
+ "filter.subagents": "会话筛选",
14
17
  "view.sessions": "会话",
15
18
  "view.usage": "统计",
19
+ "usage.dimension": "用量维度",
16
20
  "usage.overview": "总览",
17
21
  "usage.all": "全部会话",
18
22
  "usage.range": "时间范围",
@@ -92,8 +96,12 @@ export const en = {
92
96
  archived: "Archived",
93
97
  subagent: "Subagent",
94
98
  showSubagents: "Show subagent sessions",
99
+ clearSearch: "Clear search",
100
+ "filter.view": "View",
101
+ "filter.subagents": "Session filter",
95
102
  "view.sessions": "Sessions",
96
103
  "view.usage": "Usage",
104
+ "usage.dimension": "Usage dimension",
97
105
  "usage.overview": "Overview",
98
106
  "usage.all": "All sessions",
99
107
  "usage.range": "Time range",
@@ -0,0 +1,6 @@
1
+ // 本包 client 半的页面框架是上游那套 CSS Modules(`ConversationManagerPage.module.css`):bundler 解析得动,
2
+ // TS 需要这份 ambient 声明把它定成「有一个 class 映射的模块」。
3
+ declare module "*.module.css" {
4
+ const classes: Readonly<Record<string, string>>;
5
+ export default classes;
6
+ }
package/dist/index.d.cts DELETED
@@ -1,3 +0,0 @@
1
- //#region src/index.d.ts
2
- export declare function apply(): void;
3
- //#endregion