@yuku123/z-team-component 0.2.151 → 0.2.153

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 (50) hide show
  1. package/dist/{AdminModuleContent-CxcZ6lo5.js → AdminModuleContent-yd1xEt4A.js} +6 -6
  2. package/dist/{ChangeLogView-B91pCpdT.js → ChangeLogView-CPPgoiXC.js} +1 -1
  3. package/dist/{ComponentDoc-cfot01Mt.js → ComponentDoc-Bng-IOBv.js} +3 -3
  4. package/dist/{InvitationManagementPage-Bbkdpzps.js → InvitationManagementPage-BUpB1n9L.js} +1 -1
  5. package/dist/{OnboardingPage-LC1Ht1Rn.js → OnboardingPage-BVKHvh0f.js} +2 -2
  6. package/dist/{ScheduledTasks-BcaOM5OA.js → ScheduledTasks-CenbKV35.js} +9 -9
  7. package/dist/{SettingsModal-C2bwZ9ru.js → SettingsModal-Dx30goZf.js} +4 -4
  8. package/dist/{SystemShell-ZevSFEQN.js → SystemShell-BaTcSmgO.js} +245 -270
  9. package/dist/{admin-logs-B1K4av1A.js → admin-logs-BJ0p_Y98.js} +1 -1
  10. package/dist/{api-Dq3FCOLf.js → api-CrTnCUbc.js} +1 -1
  11. package/dist/{api-C6tulmw3.js → api-mm1i-Bg5.js} +1 -1
  12. package/dist/{browser-DkF2REvf.js → browser-8nSqEL-u.js} +1 -1
  13. package/dist/{createWorkspaceWsHandler-Bn7O2Nsp.js → createWorkspaceWsHandler-Cl-NwiB7.js} +3 -3
  14. package/dist/{index-DM3ABunf.js → index--ezvzfG5.js} +1 -1
  15. package/dist/{index-BtYuCKRa.js → index-1GADWw76.js} +1 -1
  16. package/dist/{index-Cepgb2JT.js → index-B00xFKxN.js} +2 -2
  17. package/dist/{index-Dbb8qAvr.js → index-B3HDIA_G.js} +2 -2
  18. package/dist/{index-DsiVsS16.js → index-BDnSrc3Z.js} +1 -1
  19. package/dist/{index-DLX2R48m.js → index-BOWxZEYC.js} +3 -3
  20. package/dist/{index-CYQV1ZNd.js → index-BVHkQM3U.js} +2 -2
  21. package/dist/{index-D9PwpEzb.js → index-BedO6qL8.js} +2 -2
  22. package/dist/index-By4HUB2n.js +12 -0
  23. package/dist/{index-Bl_TsLY7.js → index-C7yL4A7N.js} +2 -2
  24. package/dist/{index-BrY5TVwN.js → index-CBCABQny.js} +8 -8
  25. package/dist/{index-Bq2fUt1G.js → index-CDnbYbXv.js} +1 -1
  26. package/dist/{index-U5tHYFYM.js → index-CHQA8790.js} +2 -2
  27. package/dist/{index-ClL1cAfT.js → index-CMJlDq1J.js} +4 -4
  28. package/dist/{index-Drtz61k9.js → index-CSfw3cvZ.js} +2 -2
  29. package/dist/{index-Dzjs7Prp.js → index-CbI16as5.js} +2 -2
  30. package/dist/{index-CxPgkh7p.js → index-CcluZKUo.js} +2 -2
  31. package/dist/{index-33yA36JK.js → index-CiC3PiuM.js} +4 -4
  32. package/dist/{index-DF2Y_KuM.js → index-D-7y8XLP.js} +1 -1
  33. package/dist/{index-smJ2gsQz.js → index-D4Xh-jPV.js} +4 -4
  34. package/dist/{index-DoiP0bRW.js → index-DeC6rscu.js} +1 -1
  35. package/dist/{index-BZgnnSZn.js → index-DnHxIAhE.js} +1 -1
  36. package/dist/{index-CN-sRlNh.js → index-Dq9RddMQ.js} +3 -3
  37. package/dist/{index-B4UHttS3.js → index-QQlXi-oD.js} +3 -3
  38. package/dist/{index-Cy_j3HP-.js → index-enfaLDhZ.js} +3 -3
  39. package/dist/{index-DWdLZ6X9.js → index-nnom4yTx.js} +6 -6
  40. package/dist/index.js +1 -1
  41. package/dist/{instance-S3vRPLcU.js → instance-DPtrmdge.js} +1 -1
  42. package/dist/{menuPermission-NPnVI7da.js → menuPermission-X5_Z23Je.js} +3 -3
  43. package/dist/pages.js +1 -1
  44. package/dist/{send-default-agent-team-message-C6RiVe4R.js → send-default-agent-team-message-BMdvJ1Fn.js} +1 -1
  45. package/dist/{spark-md5-JwiDleOF.js → spark-md5-4AfJVhXT.js} +1 -1
  46. package/dist/{training-Cbl29Z3J.js → training-S7avCvk3.js} +1 -1
  47. package/dist/{webide-8-vQB1yG.js → webide-B876ythA.js} +3 -3
  48. package/dist/z-team-component.css +1 -1
  49. package/package.json +2 -1
  50. package/dist/index-DrDFy5jN.js +0 -139
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuku123/z-team-component",
3
- "version": "0.2.151",
3
+ "version": "0.2.153",
4
4
  "description": "z-team 团队工作台组件层(lead 005 §8.7:403 文件整体接管,含 pages/workspace/ 系统模式集成 shell)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -64,6 +64,7 @@
64
64
  "@yuku123/z-cognition-component": "^1.0.4",
65
65
  "@yuku123/z-cognition-indexer-component": "^0.1.0",
66
66
  "@yuku123/z-cognition-kb-component": "^0.1.6",
67
+ "@yuku123/z-cognition-portal": "^0.1.0",
67
68
  "@yuku123/z-config-component": "^0.1.0",
68
69
  "@yuku123/z-ctc-component": "^1.0.25",
69
70
  "@yuku123/z-frontend-common": "^1.6.0",
@@ -1,139 +0,0 @@
1
- import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
- import N, { useMemo as h, useState as v, useEffect as I } from "react";
3
- import { BulbOutlined as x, DownOutlined as H, RightOutlined as A, AppstoreOutlined as $, BookOutlined as L, CodeOutlined as O } from "@ant-design/icons";
4
- import { useNavigate as g, useLocation as w } from "react-router-dom";
5
- import { menuSections as C, menuItems as P, appMeta as T, routes as E } from "@yuku123/z-cognition-component/pages";
6
- import { menuItems as M, appMeta as R, routes as z } from "@yuku123/z-cognition-kb-component/pages";
7
- import { menuItems as U, routes as W } from "@yuku123/z-cognition-indexer-component/pages";
8
- const j = "_shell_k84qx_6", B = "_sidebar_k84qx_15", D = "_sidebarHeader_k84qx_26", K = "_sidebarHeaderIcon_k84qx_37", Z = "_menuList_k84qx_41", F = "_menuGroup_k84qx_48", J = "_menuGroupHeader_k84qx_53", Q = "_menuGroupHeaderOpen_k84qx_72", V = "_menuGroupHeaderActive_k84qx_83", X = "_menuGroupIcon_k84qx_87", Y = "_menuGroupLabel_k84qx_96", ee = "_menuGroupArrow_k84qx_101", ne = "_menuSubList_k84qx_107", te = "_menuSubItem_k84qx_114", se = "_menuItemOnPath_k84qx_147", oe = "_menuSubItemPill_k84qx_168", ue = "_menuSubItemActive_k84qx_184", me = "_menuSubItemIcon_k84qx_194", re = "_main_k84qx_210", ae = "_empty_k84qx_219", ce = "_emptyIcon_k84qx_229", ie = "_emptyText_k84qx_233", e = {
9
- shell: j,
10
- sidebar: B,
11
- sidebarHeader: D,
12
- sidebarHeaderIcon: K,
13
- menuList: Z,
14
- menuGroup: F,
15
- menuGroupHeader: J,
16
- menuGroupHeaderOpen: Q,
17
- menuGroupHeaderActive: V,
18
- menuGroupIcon: X,
19
- menuGroupLabel: Y,
20
- menuGroupArrow: ee,
21
- menuSubList: ne,
22
- menuSubItem: te,
23
- menuItemOnPath: se,
24
- menuSubItemPill: oe,
25
- menuSubItemActive: ue,
26
- menuSubItemIcon: me,
27
- main: re,
28
- empty: ae,
29
- emptyIcon: ce,
30
- emptyText: ie
31
- }, i = [
32
- { title: "知识管理", icon: /* @__PURE__ */ n(L, {}), items: M },
33
- ...C || [
34
- { title: "业务认知", icon: /* @__PURE__ */ n(x, {}), items: P }
35
- ],
36
- // 代码索引(2026-11-10 归纳):z-cognition 代码索引板块(原独立仓 z-indexer,收购后
37
- // npm 包随之改名 @yuku123/z-cognition-indexer-component)前台四页,
38
- // 与 admin「知识沉淀 → 知识认知 → 代码认知」同口径:前台查、后台管。
39
- { title: "代码索引", icon: /* @__PURE__ */ n(O, {}), items: U }
40
- ], b = [
41
- ...z,
42
- ...E,
43
- ...W
44
- ], le = "/z-kb/dashboard";
45
- function de(u) {
46
- const o = u.replace(/[.+^${}()|[\]\\]/g, "\\$&");
47
- return new RegExp(
48
- `^${o.replace(/:[A-Za-z0-9_]+\*/g, "(?:/.*)?").replace(/:[A-Za-z0-9_]+/g, "[^/]+")}$`
49
- );
50
- }
51
- function pe(u) {
52
- const o = b.find((t) => t.path === u);
53
- if (o != null && o.Component) return o.Component;
54
- for (const t of b)
55
- if (t.Component) {
56
- if (t.path.includes(":")) {
57
- if (de(t.path).test(u)) return t.Component;
58
- } else if (u.startsWith(t.path + "/"))
59
- return t.Component;
60
- }
61
- return null;
62
- }
63
- function k(u) {
64
- for (const o of i)
65
- for (const t of o.items)
66
- if (u === t.key || u.startsWith(t.key + "/")) return t.key;
67
- return null;
68
- }
69
- function Se() {
70
- var p, _;
71
- const u = g(), { pathname: o } = w(), t = h(() => k(o), [o]), [f, l] = v(/* @__PURE__ */ new Set());
72
- I(() => {
73
- t && i.forEach((s) => {
74
- s.items.some((m) => m.key === t) && l(
75
- (m) => m.has(s.title) ? m : new Set(m).add(s.title)
76
- );
77
- });
78
- }, [t]);
79
- const S = (s) => {
80
- l((m) => {
81
- const r = new Set(m);
82
- return r.has(s) ? r.delete(s) : r.add(s), r;
83
- });
84
- };
85
- I(() => {
86
- if (!k(o)) {
87
- const { search: s } = window.location;
88
- u(`${le}${s || ""}`, { replace: !0 });
89
- }
90
- }, [o, u]);
91
- const d = h(() => pe(o), [o]);
92
- return /* @__PURE__ */ c("div", { className: e.shell, children: [
93
- /* @__PURE__ */ c("aside", { className: e.sidebar, children: [
94
- /* @__PURE__ */ c("div", { className: e.sidebarHeader, children: [
95
- /* @__PURE__ */ n("span", { className: e.sidebarHeaderIcon, children: /* @__PURE__ */ n(x, {}) }),
96
- /* @__PURE__ */ n("span", { children: ((p = R) == null ? void 0 : p.title) ?? ((_ = T) == null ? void 0 : _.title) ?? "知识工作台" })
97
- ] }),
98
- /* @__PURE__ */ n("nav", { className: e.menuList, children: i.map((s) => {
99
- const m = f.has(s.title), r = t ? s.items.findIndex((a) => a.key === t) : -1;
100
- return /* @__PURE__ */ c("div", { className: e.menuGroup, children: [
101
- /* @__PURE__ */ c(
102
- "div",
103
- {
104
- className: `${e.menuGroupHeader} ${m ? e.menuGroupHeaderOpen : ""} ${r >= 0 ? e.menuGroupHeaderActive : ""}`,
105
- onClick: () => S(s.title),
106
- children: [
107
- /* @__PURE__ */ n("span", { className: e.menuGroupIcon, children: s.icon }),
108
- /* @__PURE__ */ n("span", { className: e.menuGroupLabel, children: s.title }),
109
- /* @__PURE__ */ n("span", { className: e.menuGroupArrow, children: m ? /* @__PURE__ */ n(H, {}) : /* @__PURE__ */ n(A, {}) })
110
- ]
111
- }
112
- ),
113
- m && /* @__PURE__ */ n("ul", { className: e.menuSubList, children: s.items.map((a, G) => {
114
- const y = r >= 0 && G <= r, q = t === a.key;
115
- return /* @__PURE__ */ n(
116
- "li",
117
- {
118
- className: `${e.menuSubItem} ${y ? e.menuItemOnPath : ""} ${q ? e.menuSubItemActive : ""}`,
119
- onClick: () => u(a.key),
120
- children: /* @__PURE__ */ c("div", { className: e.menuSubItemPill, children: [
121
- a.icon ? /* @__PURE__ */ n("span", { className: e.menuSubItemIcon, children: a.icon }) : null,
122
- /* @__PURE__ */ n("span", { children: a.label })
123
- ] })
124
- },
125
- a.key
126
- );
127
- }) })
128
- ] }, s.title);
129
- }) })
130
- ] }),
131
- /* @__PURE__ */ n("main", { className: e.main, children: d ? /* @__PURE__ */ n(N.Suspense, { fallback: /* @__PURE__ */ n("div", { className: e.emptyText, children: "加载中…" }), children: /* @__PURE__ */ n(d, {}) }) : /* @__PURE__ */ c("div", { className: e.empty, children: [
132
- /* @__PURE__ */ n("div", { className: e.emptyIcon, children: /* @__PURE__ */ n($, {}) }),
133
- /* @__PURE__ */ n("div", { className: e.emptyText, children: "请从左侧选择认知模块" })
134
- ] }) })
135
- ] });
136
- }
137
- export {
138
- Se as default
139
- };