@yuku123/z-team-component 0.2.130 → 0.2.132

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 (49) hide show
  1. package/dist/{ChangeLogView-AY7dKChQ.js → ChangeLogView-SwacGpsw.js} +1 -1
  2. package/dist/{ComponentDoc-DTpTBK1V.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
  3. package/dist/{InvitationManagementPage-YzQVnNWz.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
  4. package/dist/{OnboardingPage-ClH-s7zs.js → OnboardingPage-DvNt71kX.js} +2 -2
  5. package/dist/{ScheduledTasks-DhcmGmhu.js → ScheduledTasks-COgb4MZJ.js} +6 -6
  6. package/dist/SystemShell-CSXcsiNp.js +752 -0
  7. package/dist/{admin-logs-2gdJxEwA.js → admin-logs-CExsxQ5h.js} +5 -5
  8. package/dist/{api-BHYf7Uyx.js → api-C9kTgVc2.js} +1 -1
  9. package/dist/{api---aB1ADx.js → api-DXw93E7c.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-BC4HmdFu.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
  11. package/dist/{index-CqOsWy6H.js → index-9rfSVSTh.js} +9 -9
  12. package/dist/{index-lucAUJAv.js → index-B2Dfbi8J.js} +2 -2
  13. package/dist/{index-Chzml7fB.js → index-B3uLo8-F.js} +3 -3
  14. package/dist/{index-CnIbuXF9.js → index-BNPq7yBg.js} +2 -2
  15. package/dist/{index--HSE1tzT.js → index-BTJ83JLl.js} +11 -11
  16. package/dist/{index-9coNts0T.js → index-BkzBYfhO.js} +8489 -8453
  17. package/dist/{index-BkbSCWQ7.js → index-BoY7L8C4.js} +42 -37
  18. package/dist/index-Bs9odXxd.js +1214 -0
  19. package/dist/{index-mwKbvNPB.js → index-CF3xDZ7q.js} +4 -4
  20. package/dist/{index-CnRAUDUi.js → index-COobH4Vi.js} +1 -1
  21. package/dist/{index-Opx4qrhX.js → index-CU6jFFl5.js} +3 -3
  22. package/dist/{index-DA0MCrVH.js → index-CXEYA7rt.js} +2 -2
  23. package/dist/{index-Zr09eAzk.js → index-CZCKpsry.js} +2 -2
  24. package/dist/{index-CnyMTIyv.js → index-Ceu-yckM.js} +70 -70
  25. package/dist/{index-baUMWaRm.js → index-Ci6_CBwE.js} +3 -3
  26. package/dist/{index-CTqU8nrB.js → index-CntZHojY.js} +2 -2
  27. package/dist/{index-DqiBrPAv.js → index-D2DFKRUf.js} +1 -1
  28. package/dist/{index-DfpB0BR9.js → index-DLK7DuCr.js} +3 -3
  29. package/dist/{index-Ci31buz9.js → index-DM6XeWFk.js} +4059 -4043
  30. package/dist/{index-fJnhCAB9.js → index-DMfYPIkB.js} +2 -2
  31. package/dist/{index-Ca08VoFz.js → index-DZ0fYNO9.js} +20 -20
  32. package/dist/{index-Cui8SX9p.js → index-D_J1ZCy8.js} +3 -3
  33. package/dist/{index-Ccvhn50s.js → index-DmV6xR7C.js} +9 -9
  34. package/dist/{index-CROBbbCB.js → index-ftuPuj0s.js} +9 -9
  35. package/dist/{index-DHubhPeT.js → index-mEgmHNRO.js} +1 -1
  36. package/dist/{index--L2wU6OV.js → index-t2nMJUPu.js} +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/{instance-ITIB5e5v.js → instance-DD3kbAUh.js} +1 -1
  39. package/dist/{menuPermission-Dw1EJWIf.js → menuPermission-v0881tid.js} +3 -3
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-DzRmAa6S.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
  42. package/dist/{sso-user-497FBkoQ.js → sso-user-CnVXqYR7.js} +1 -1
  43. package/dist/{training-B4IByvWW.js → training-BS23m-yy.js} +1 -1
  44. package/dist/useSidebarResize--Avuabb1.js +46 -0
  45. package/dist/{webide-DwQqqS-I.js → webide-BPJ1IpZq.js} +3 -3
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +6 -6
  48. package/dist/SystemShell-Cz7S4YnT.js +0 -718
  49. package/dist/index-4apTfQuo.js +0 -2213
@@ -1,48 +1,53 @@
1
1
  import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
- import h, { useMemo as d, useEffect as f } from "react";
2
+ import h, { useMemo as u, useEffect as f } from "react";
3
3
  import { useNavigate as y, useLocation as b } from "react-router-dom";
4
- import { appMeta as v, menuSections as N, menuItems as T, routes as L } from "@yuku123/z-cognition-component/pages";
5
- import { appMeta as k, menuItems as $, routes as A } from "@yuku123/z-cognition-kb-component/pages";
6
- const C = "_shell_9m078_6", H = "_sidebar_9m078_15", g = "_sidebarHeader_9m078_26", x = "_sidebarHeaderIcon_9m078_37", M = "_menuList_9m078_41", E = "_section_9m078_48", D = "_sectionTitle_9m078_52", S = "_sectionIcon_9m078_64", w = "_menuItemIcon_9m078_68", z = "_menuItem_9m078_68", R = "_menuItemActive_9m078_85", U = "_menuItemLabel_9m078_90", W = "_menuItemDesc_9m078_101", j = "_main_9m078_113", K = "_empty_9m078_122", O = "_emptyIcon_9m078_132", P = "_emptyText_9m078_136", e = {
7
- shell: C,
8
- sidebar: H,
9
- sidebarHeader: g,
10
- sidebarHeaderIcon: x,
11
- menuList: M,
12
- section: E,
13
- sectionTitle: D,
14
- sectionIcon: S,
15
- menuItemIcon: w,
16
- menuItem: z,
17
- menuItemActive: R,
18
- menuItemLabel: U,
19
- menuItemDesc: W,
20
- main: j,
21
- empty: K,
22
- emptyIcon: O,
23
- emptyText: P
4
+ import { appMeta as v, menuSections as N, menuItems as T, routes as $ } from "@yuku123/z-cognition-component/pages";
5
+ import { appMeta as L, menuItems as k, routes as A } from "@yuku123/z-cognition-kb-component/pages";
6
+ import { menuItems as C, routes as H } from "@yuku123/z-indexer-component/pages";
7
+ const g = "_shell_9m078_6", x = "_sidebar_9m078_15", M = "_sidebarHeader_9m078_26", E = "_sidebarHeaderIcon_9m078_37", D = "_menuList_9m078_41", S = "_section_9m078_48", w = "_sectionTitle_9m078_52", z = "_sectionIcon_9m078_64", R = "_menuItemIcon_9m078_68", U = "_menuItem_9m078_68", W = "_menuItemActive_9m078_85", j = "_menuItemLabel_9m078_90", K = "_menuItemDesc_9m078_101", O = "_main_9m078_113", P = "_empty_9m078_122", Z = "_emptyIcon_9m078_132", F = "_emptyText_9m078_136", e = {
8
+ shell: g,
9
+ sidebar: x,
10
+ sidebarHeader: M,
11
+ sidebarHeaderIcon: E,
12
+ menuList: D,
13
+ section: S,
14
+ sectionTitle: w,
15
+ sectionIcon: z,
16
+ menuItemIcon: R,
17
+ menuItem: U,
18
+ menuItemActive: W,
19
+ menuItemLabel: j,
20
+ menuItemDesc: K,
21
+ main: O,
22
+ empty: P,
23
+ emptyIcon: Z,
24
+ emptyText: F
24
25
  }, p = [
25
- { title: "知识管理", icon: "📚", items: $ },
26
+ { title: "知识管理", icon: "📚", items: k },
26
27
  ...N || [
27
28
  { title: "业务认知", icon: "🧠", items: T }
28
- ]
29
- ], u = [
29
+ ],
30
+ // 代码索引(2026-11-10 归纳):独立仓 z-indexer 代码索引中心前台四页,
31
+ // 与 admin「知识沉淀 → 知识认知 → 代码认知」同口径:前台查、后台管。
32
+ { title: "代码索引", icon: "🔍", items: C }
33
+ ], d = [
30
34
  ...A,
31
- ...L
32
- ], Z = "/z-kb/dashboard";
33
- function F(s) {
35
+ ...$,
36
+ ...H
37
+ ], q = "/z-kb/dashboard";
38
+ function B(s) {
34
39
  const n = s.replace(/[.+^${}()|[\]\\]/g, "\\$&");
35
40
  return new RegExp(
36
41
  `^${n.replace(/:[A-Za-z0-9_]+\*/g, "(?:/.*)?").replace(/:[A-Za-z0-9_]+/g, "[^/]+")}$`
37
42
  );
38
43
  }
39
- function q(s) {
40
- const n = u.find((t) => t.path === s);
44
+ function G(s) {
45
+ const n = d.find((t) => t.path === s);
41
46
  if (n != null && n.Component) return n.Component;
42
- for (const t of u)
47
+ for (const t of d)
43
48
  if (t.Component) {
44
49
  if (t.path.includes(":")) {
45
- if (F(t.path).test(s)) return t.Component;
50
+ if (B(t.path).test(s)) return t.Component;
46
51
  } else if (s.startsWith(t.path + "/"))
47
52
  return t.Component;
48
53
  }
@@ -54,21 +59,21 @@ function _(s) {
54
59
  if (s === t.key || s.startsWith(t.key + "/")) return t.key;
55
60
  return null;
56
61
  }
57
- function X() {
62
+ function ne() {
58
63
  var r, l;
59
- const s = y(), { pathname: n } = b(), t = d(() => _(n), [n]);
64
+ const s = y(), { pathname: n } = b(), t = u(() => _(n), [n]);
60
65
  f(() => {
61
66
  if (!_(n)) {
62
67
  const { search: i } = window.location;
63
- s(`${Z}${i || ""}`, { replace: !0 });
68
+ s(`${q}${i || ""}`, { replace: !0 });
64
69
  }
65
70
  }, [n, s]);
66
- const a = d(() => q(n), [n]);
71
+ const a = u(() => G(n), [n]);
67
72
  return /* @__PURE__ */ o("div", { className: e.shell, children: [
68
73
  /* @__PURE__ */ o("aside", { className: e.sidebar, children: [
69
74
  /* @__PURE__ */ o("div", { className: e.sidebarHeader, children: [
70
75
  /* @__PURE__ */ c("span", { className: e.sidebarHeaderIcon, children: "🧠" }),
71
- /* @__PURE__ */ c("span", { children: ((r = k) == null ? void 0 : r.title) ?? ((l = v) == null ? void 0 : l.title) ?? "知识工作台" })
76
+ /* @__PURE__ */ c("span", { children: ((r = L) == null ? void 0 : r.title) ?? ((l = v) == null ? void 0 : l.title) ?? "知识工作台" })
72
77
  ] }),
73
78
  /* @__PURE__ */ c("nav", { className: e.menuList, children: p.map((i) => /* @__PURE__ */ o("div", { className: e.section, children: [
74
79
  /* @__PURE__ */ o("div", { className: e.sectionTitle, children: [
@@ -102,5 +107,5 @@ function X() {
102
107
  ] });
103
108
  }
104
109
  export {
105
- X as default
110
+ ne as default
106
111
  };