@yuku123/z-team-component 0.2.135 → 0.2.137

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 (46) hide show
  1. package/dist/{AdminModuleContent-DHCn4OpR.js → AdminModuleContent-B1YxyaNI.js} +6202 -6211
  2. package/dist/{ChangeLogView-Cc5cYmcz.js → ChangeLogView-BKQfeeag.js} +1 -1
  3. package/dist/{ComponentDoc-BAUII4UZ.js → ComponentDoc-DHTIWtcE.js} +994 -1006
  4. package/dist/{InvitationManagementPage-BgY1jxQB.js → InvitationManagementPage-DgVqNUvK.js} +63 -73
  5. package/dist/{OnboardingPage-CckzpaI0.js → OnboardingPage-DiBVtw23.js} +2 -2
  6. package/dist/{ScheduledTasks-DZSEnuIF.js → ScheduledTasks-DuR4sg4k.js} +6 -6
  7. package/dist/{SystemShell-DCRIL4Rh.js → SystemShell-DoMowhBn.js} +265 -262
  8. package/dist/{admin-logs-DEawvNOd.js → admin-logs-BZasxvF5.js} +1 -1
  9. package/dist/{api-B-nnjGsa.js → api-BhdcdwWj.js} +1 -1
  10. package/dist/{api--xHkMnrY.js → api-CELjpxxS.js} +1 -1
  11. package/dist/{createWorkspaceWsHandler-y6pRWLoa.js → createWorkspaceWsHandler-SY-wVjjh.js} +3 -3
  12. package/dist/{index-CMLlvrEW.js → index-B0xiWAhM.js} +3688 -3664
  13. package/dist/{index-LnUf9Vil.js → index-B2iHgJnx.js} +6 -6
  14. package/dist/{index-BIffImVM.js → index-B3K7b3Bf.js} +146 -146
  15. package/dist/{index-DxXcTAH4.js → index-B6Nj2_Zo.js} +1 -1
  16. package/dist/{index-C7ng_cdZ.js → index-BB7G9ZN4.js} +1 -1
  17. package/dist/{index-C09THX8u.js → index-BDZOz1cm.js} +2 -2
  18. package/dist/{index-DtgTLML8.js → index-BHBuOhK5.js} +3 -3
  19. package/dist/{index-XWWknPNw.js → index-Btpel9AF.js} +2 -2
  20. package/dist/{index-Do3pyigD.js → index-Bwe4EN63.js} +1 -1
  21. package/dist/{index-DePIQVt9.js → index-CV3kkXgP.js} +3 -3
  22. package/dist/{index-COn912sj.js → index-C_OjaGAs.js} +3 -3
  23. package/dist/{index-4R_QcR8P.js → index-Cd3a7nol.js} +2 -2
  24. package/dist/{index-C4cx5Qxu.js → index-CtFdsOsR.js} +2 -2
  25. package/dist/{index-H7hP7Fmj.js → index-Cxvua23F.js} +2 -2
  26. package/dist/{index-DlBN-ou4.js → index-D3YkA5j4.js} +5 -5
  27. package/dist/{index-B2ztJXV3.js → index-D9NoVz2x.js} +2 -2
  28. package/dist/{index-frmk-zNf.js → index-DOdAlZfA.js} +5 -5
  29. package/dist/{index-C9LqX4Lg.js → index-DSH-wcoD.js} +1 -1
  30. package/dist/{index-CcHrWE4P.js → index-DkF5EnSi.js} +2 -2
  31. package/dist/{index-ztXjGIJk.js → index-DlxfYOdw.js} +1 -1
  32. package/dist/{index-BDUHHaoY.js → index-DpiQW5SO.js} +130 -128
  33. package/dist/index-DrDFy5jN.js +139 -0
  34. package/dist/{index-DWrEAa8-.js → index-NfGgVmob.js} +507 -509
  35. package/dist/{index-CzS_q6Tn.js → index-X-n1B8fi.js} +3 -3
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-DL4u5k9c.js → instance-BOFjc82M.js} +1 -1
  38. package/dist/{menuPermission-CA_atlfk.js → menuPermission-Dfwf-EJP.js} +3 -3
  39. package/dist/pages.js +1 -1
  40. package/dist/{send-default-agent-team-message-BfBVm9AO.js → send-default-agent-team-message-CvPaOp3a.js} +1 -1
  41. package/dist/{sso-user-Dr8_-Sxd.js → sso-user-CAWQupk5.js} +1 -1
  42. package/dist/{training-CcGUA5KC.js → training-BYjqU8sn.js} +1 -1
  43. package/dist/{webide-C2JfQ-Je.js → webide-CDZpzRfx.js} +3 -3
  44. package/dist/z-team-component.css +1 -1
  45. package/package.json +1 -1
  46. package/dist/index-Cxoup7V8.js +0 -139
@@ -0,0 +1,139 @@
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
+ };