@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuku123/z-team-component",
3
- "version": "0.2.135",
3
+ "version": "0.2.137",
4
4
  "description": "z-team 团队工作台组件层(lead 005 §8.7:403 文件整体接管,含 pages/workspace/ 系统模式集成 shell)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,139 +0,0 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
- import q, { useMemo as h, useState as N, useEffect as I } from "react";
3
- import { DownOutlined as v, RightOutlined as H } from "@ant-design/icons";
4
- import { useNavigate as A, useLocation as $ } from "react-router-dom";
5
- import { menuSections as L, menuItems as O, appMeta as g, routes as w } from "@yuku123/z-cognition-component/pages";
6
- import { menuItems as P, appMeta as C, routes as T } from "@yuku123/z-cognition-kb-component/pages";
7
- import { menuItems as E, routes as M } from "@yuku123/z-cognition-indexer-component/pages";
8
- const R = "_shell_k84qx_6", z = "_sidebar_k84qx_15", U = "_sidebarHeader_k84qx_26", W = "_sidebarHeaderIcon_k84qx_37", j = "_menuList_k84qx_41", D = "_menuGroup_k84qx_48", K = "_menuGroupHeader_k84qx_53", Z = "_menuGroupHeaderOpen_k84qx_72", F = "_menuGroupHeaderActive_k84qx_83", B = "_menuGroupIcon_k84qx_87", J = "_menuGroupLabel_k84qx_96", Q = "_menuGroupArrow_k84qx_101", V = "_menuSubList_k84qx_107", X = "_menuSubItem_k84qx_114", Y = "_menuItemOnPath_k84qx_147", ee = "_menuSubItemPill_k84qx_168", ne = "_menuSubItemActive_k84qx_184", te = "_menuSubItemIcon_k84qx_194", se = "_main_k84qx_210", oe = "_empty_k84qx_219", me = "_emptyIcon_k84qx_229", re = "_emptyText_k84qx_233", e = {
9
- shell: R,
10
- sidebar: z,
11
- sidebarHeader: U,
12
- sidebarHeaderIcon: W,
13
- menuList: j,
14
- menuGroup: D,
15
- menuGroupHeader: K,
16
- menuGroupHeaderOpen: Z,
17
- menuGroupHeaderActive: F,
18
- menuGroupIcon: B,
19
- menuGroupLabel: J,
20
- menuGroupArrow: Q,
21
- menuSubList: V,
22
- menuSubItem: X,
23
- menuItemOnPath: Y,
24
- menuSubItemPill: ee,
25
- menuSubItemActive: ne,
26
- menuSubItemIcon: te,
27
- main: se,
28
- empty: oe,
29
- emptyIcon: me,
30
- emptyText: re
31
- }, i = [
32
- { title: "知识管理", icon: "📚", items: P },
33
- ...L || [
34
- { title: "业务认知", icon: "🧠", items: O }
35
- ],
36
- // 代码索引(2026-11-10 归纳):z-cognition 代码索引板块(原独立仓 z-indexer,收购后
37
- // npm 包随之改名 @yuku123/z-cognition-indexer-component)前台四页,
38
- // 与 admin「知识沉淀 → 知识认知 → 代码认知」同口径:前台查、后台管。
39
- { title: "代码索引", icon: "🔍", items: E }
40
- ], b = [
41
- ...T,
42
- ...w,
43
- ...M
44
- ], ue = "/z-kb/dashboard";
45
- function ae(m) {
46
- const o = m.replace(/[.+^${}()|[\]\\]/g, "\\$&");
47
- return new RegExp(
48
- `^${o.replace(/:[A-Za-z0-9_]+\*/g, "(?:/.*)?").replace(/:[A-Za-z0-9_]+/g, "[^/]+")}$`
49
- );
50
- }
51
- function ce(m) {
52
- const o = b.find((n) => n.path === m);
53
- if (o != null && o.Component) return o.Component;
54
- for (const n of b)
55
- if (n.Component) {
56
- if (n.path.includes(":")) {
57
- if (ae(n.path).test(m)) return n.Component;
58
- } else if (m.startsWith(n.path + "/"))
59
- return n.Component;
60
- }
61
- return null;
62
- }
63
- function k(m) {
64
- for (const o of i)
65
- for (const n of o.items)
66
- if (m === n.key || m.startsWith(n.key + "/")) return n.key;
67
- return null;
68
- }
69
- function be() {
70
- var p, _;
71
- const m = A(), { pathname: o } = $(), n = h(() => k(o), [o]), [x, l] = N(/* @__PURE__ */ new Set());
72
- I(() => {
73
- n && i.forEach((s) => {
74
- s.items.some((r) => r.key === n) && l(
75
- (r) => r.has(s.title) ? r : new Set(r).add(s.title)
76
- );
77
- });
78
- }, [n]);
79
- const f = (s) => {
80
- l((r) => {
81
- const u = new Set(r);
82
- return u.has(s) ? u.delete(s) : u.add(s), u;
83
- });
84
- };
85
- I(() => {
86
- if (!k(o)) {
87
- const { search: s } = window.location;
88
- m(`${ue}${s || ""}`, { replace: !0 });
89
- }
90
- }, [o, m]);
91
- const d = h(() => ce(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__ */ t("span", { className: e.sidebarHeaderIcon, children: "🧠" }),
96
- /* @__PURE__ */ t("span", { children: ((p = C) == null ? void 0 : p.title) ?? ((_ = g) == null ? void 0 : _.title) ?? "知识工作台" })
97
- ] }),
98
- /* @__PURE__ */ t("nav", { className: e.menuList, children: i.map((s) => {
99
- const r = x.has(s.title), u = n ? s.items.findIndex((a) => a.key === n) : -1;
100
- return /* @__PURE__ */ c("div", { className: e.menuGroup, children: [
101
- /* @__PURE__ */ c(
102
- "div",
103
- {
104
- className: `${e.menuGroupHeader} ${r ? e.menuGroupHeaderOpen : ""} ${u >= 0 ? e.menuGroupHeaderActive : ""}`,
105
- onClick: () => f(s.title),
106
- children: [
107
- /* @__PURE__ */ t("span", { className: e.menuGroupIcon, children: s.icon }),
108
- /* @__PURE__ */ t("span", { className: e.menuGroupLabel, children: s.title }),
109
- /* @__PURE__ */ t("span", { className: e.menuGroupArrow, children: r ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(H, {}) })
110
- ]
111
- }
112
- ),
113
- r && /* @__PURE__ */ t("ul", { className: e.menuSubList, children: s.items.map((a, S) => {
114
- const G = u >= 0 && S <= u, y = n === a.key;
115
- return /* @__PURE__ */ t(
116
- "li",
117
- {
118
- className: `${e.menuSubItem} ${G ? e.menuItemOnPath : ""} ${y ? e.menuSubItemActive : ""}`,
119
- onClick: () => m(a.key),
120
- children: /* @__PURE__ */ c("div", { className: e.menuSubItemPill, children: [
121
- a.icon ? /* @__PURE__ */ t("span", { className: e.menuSubItemIcon, children: a.icon }) : null,
122
- /* @__PURE__ */ t("span", { children: a.label })
123
- ] })
124
- },
125
- a.key
126
- );
127
- }) })
128
- ] }, s.title);
129
- }) })
130
- ] }),
131
- /* @__PURE__ */ t("main", { className: e.main, children: d ? /* @__PURE__ */ t(q.Suspense, { fallback: /* @__PURE__ */ t("div", { className: e.emptyText, children: "加载中…" }), children: /* @__PURE__ */ t(d, {}) }) : /* @__PURE__ */ c("div", { className: e.empty, children: [
132
- /* @__PURE__ */ t("div", { className: e.emptyIcon, children: "🧠" }),
133
- /* @__PURE__ */ t("div", { className: e.emptyText, children: "请从左侧选择认知模块" })
134
- ] }) })
135
- ] });
136
- }
137
- export {
138
- be as default
139
- };