@yuku123/z-team-component 0.2.59 → 0.2.60

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 (52) hide show
  1. package/dist/{ChangeLogView-Cstbioyw.js → ChangeLogView-VRWVzP0r.js} +1 -1
  2. package/dist/{ComponentDoc-Bx6NAJlK.js → ComponentDoc-DjfucAFW.js} +1497 -1387
  3. package/dist/{InvitationManagementPage-Gkqisq4C.js → InvitationManagementPage-BQ_4HcPk.js} +1 -1
  4. package/dist/{OnboardingPage-C7C4PEjn.js → OnboardingPage-DM8emo6P.js} +2 -2
  5. package/dist/{ScheduledTasks-BQRcjBOd.js → ScheduledTasks-BYxdbsSa.js} +8 -8
  6. package/dist/SystemShell-BEdMWZ8d.js +670 -0
  7. package/dist/{admin-logs-B9KS6VJz.js → admin-logs-DCYof_u5.js} +2 -2
  8. package/dist/{api-Y-52Ejhz.js → api-Bz4pq8m7.js} +1 -1
  9. package/dist/{api-CALqShkO.js → api-DWt94BcM.js} +584 -572
  10. package/dist/{createWorkspaceWsHandler-DP30xvug.js → createWorkspaceWsHandler-3aHkBZE9.js} +4 -4
  11. package/dist/{index-4YxdJwFm.js → index-4LNRkvy6.js} +3 -3
  12. package/dist/{index-DfQCaS0z.js → index-BHUK6MwQ.js} +248 -244
  13. package/dist/{index-C2Wkg1b5.js → index-BIdcTXZW.js} +3 -3
  14. package/dist/index-BVEvns4M.js +2858 -0
  15. package/dist/{index-m8V5TniT.js → index-BVh0W8ck.js} +15861 -15586
  16. package/dist/{index-Bpn6x1So.js → index-C0rbeCoZ.js} +12 -12
  17. package/dist/{index-8gCovDDT.js → index-C6jp_1-U.js} +6 -6
  18. package/dist/index-CQSTQAPg.js +112 -0
  19. package/dist/{index-lftFkqfI.js → index-CTKf6h2u.js} +4 -4
  20. package/dist/{index-BvTYVEEv.js → index-Cf7WJqfM.js} +20 -16
  21. package/dist/{index-CO6WYRIS.js → index-Cip94Q-G.js} +3 -3
  22. package/dist/{index-DKeYG0Fu.js → index-CrIIInfs.js} +4 -4
  23. package/dist/{index-DJ0FV74Y.js → index-DbEvwIck.js} +3 -3
  24. package/dist/{index-CLWgeKwr.js → index-DtVBFjaJ.js} +2 -2
  25. package/dist/{index-CGWttFLb.js → index-Dvhocfyo.js} +4 -4
  26. package/dist/index-DyE5noq6.js +118 -0
  27. package/dist/{index-Gt21FARO.js → index-KqKj9E7y.js} +3 -3
  28. package/dist/{index-aw72ID7y.js → index-NPxrK-81.js} +1 -1
  29. package/dist/{index-CinRd7Nz.js → index-VY-pgcyl.js} +1 -1
  30. package/dist/{index-DJOyOVn_.js → index-VxO9i5r6.js} +1 -1
  31. package/dist/{index-63ovR-_x.js → index-_gGu4e-w.js} +1 -1
  32. package/dist/{index-C3B7CbHo.js → index-bsGAZKaU.js} +624 -613
  33. package/dist/{index-CN9NsUQ6.js → index-eGX5rkV8.js} +5 -5
  34. package/dist/{index-DET70T3j.js → index-i6Ejgpao.js} +1 -1
  35. package/dist/index-ncjLe3A0.js +93 -0
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-f3C-1qYl.js → instance-CbkHlDr4.js} +1 -1
  38. package/dist/menuPermission-BWqugXIc.js +60 -0
  39. package/dist/pages.js +1 -1
  40. package/dist/schedule-BRvmKoDG.js +587 -0
  41. package/dist/{send-default-agent-team-message-d_ECdczr.js → send-default-agent-team-message-8wnVWO7H.js} +1 -1
  42. package/dist/{sso-user-HcsSzg8P.js → sso-user-QZNVhjpR.js} +1 -1
  43. package/dist/{training-DnNQN0An.js → training-DYo1pvX7.js} +1 -1
  44. package/dist/{useAppStore-kRZEA5WZ.js → useAppStore-BGOxWep2.js} +6 -2
  45. package/dist/{webide-BcRzJX-h.js → webide-CWTbQs4I.js} +4 -4
  46. package/dist/z-team-component.css +2 -2
  47. package/package.json +1 -1
  48. package/dist/SystemShell-Df9PZzLO.js +0 -907
  49. package/dist/index-Bw9yypc4.js +0 -2841
  50. package/dist/index-C0EIMJI2.js +0 -112
  51. package/dist/index-DRrBkbr_.js +0 -100
  52. package/dist/schedule-DfkgwPdE.js +0 -497
@@ -6,10 +6,10 @@ import { useState as F, useRef as fp, useEffect as Y, useMemo as Wp, useCallback
6
6
  import Vp, { defaultUrlTransform as KA } from "react-markdown";
7
7
  import gp from "rehype-highlight";
8
8
  import Jp from "remark-gfm";
9
- import { ap as xa, aq as jA } from "./api-CALqShkO.js";
10
- import { u as Dp } from "./useAppStore-kRZEA5WZ.js";
11
- import { v as ia, w as oA, x as fA, y as lA, i as xA, z as iA, B as cA, E as TA, G as vA, H as up, I as Yp, J as mp, K as yp, M as Ip, N as FA, O as dA, Q as OA, V as XA } from "./index-DfQCaS0z.js";
12
- import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-DP30xvug.js";
9
+ import { ap as xa, aq as jA } from "./api-DWt94BcM.js";
10
+ import { u as Dp } from "./useAppStore-BGOxWep2.js";
11
+ import { v as ia, w as oA, x as fA, y as lA, i as xA, z as iA, B as cA, E as TA, G as vA, H as up, I as Yp, J as mp, K as yp, M as Ip, O as FA, Q as dA, V as OA, X as XA } from "./index-BHUK6MwQ.js";
12
+ import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-3aHkBZE9.js";
13
13
  import { h as r } from "./index.module-CAa-2T7m.js";
14
14
  const gA = "_editorView_as93v_7", JA = "_editorTopBar_as93v_16", bA = "_backBtn_as93v_25", MA = "_titleInput_as93v_39", sA = "_summaryBar_as93v_50", QA = "_summaryInput_as93v_55", hA = "_mdToolbar_as93v_67", YA = "_mdBtn_as93v_77", yA = "_mdSep_as93v_84", IA = "_editorBody_as93v_93", CA = "_tocPanel_as93v_100", ZA = "_tocHeader_as93v_108", EA = "_tocList_as93v_117", _A = "_tocItem_as93v_122", $A = "_tocEmpty_as93v_137", pt = "_textarea_as93v_144", at = "_half_as93v_160", At = "_preview_as93v_163", tt = "_markdown_as93v_173", et = "_videoEmbed_as93v_185", w = {
15
15
  editorView: gA,
@@ -1682,7 +1682,7 @@ const Rt = [
1682
1682
  draftDeleteBtn: T0,
1683
1683
  markdown: v0
1684
1684
  }, F0 = HA(
1685
- () => import("./index-DJ0FV74Y.js").then((a) => ({ default: a.MarketContent }))
1685
+ () => import("./index-DbEvwIck.js").then((a) => ({ default: a.MarketContent }))
1686
1686
  );
1687
1687
  function d0(a) {
1688
1688
  const n = [], x = a.split(`
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { C as r } from "./ChangeLogView-Cstbioyw.js";
2
+ import { C as r } from "./ChangeLogView-VRWVzP0r.js";
3
3
  function n() {
4
4
  return /* @__PURE__ */ e(r, { variant: "page" });
5
5
  }
@@ -0,0 +1,93 @@
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import v, { useState as d, useEffect as _, useMemo as h } from "react";
3
+ import { useLocation as N } from "react-router-dom";
4
+ import { g as b, s as g } from "./ComponentDoc-DjfucAFW.js";
5
+ import { i as K, P as x } from "./schedule-BRvmKoDG.js";
6
+ const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
7
+ banner: E,
8
+ dot: S,
9
+ text: f,
10
+ retry: A,
11
+ dismiss: F,
12
+ details: P,
13
+ method: k,
14
+ status: C,
15
+ statusNet: D,
16
+ url: $
17
+ }, B = () => {
18
+ const { pathname: i } = N(), [s, n] = d(b()), [l, m] = d(0);
19
+ _(() => g(n), []), _(() => {
20
+ m(0);
21
+ }, [i]);
22
+ const u = h(
23
+ () => s.filter((t) => t.route === i && t.at >= l),
24
+ [s, i, l]
25
+ ), p = h(() => {
26
+ const t = /* @__PURE__ */ new Map();
27
+ return u.forEach((r) => {
28
+ const o = t.get(r.status) ?? { status: r.status, count: 0, urls: [] };
29
+ o.count += 1, o.urls.includes(r.url) || o.urls.push(r.url), t.set(r.status, o);
30
+ }), [...t.values()].sort((r, o) => r.status - o.status);
31
+ }, [u]);
32
+ if (u.length === 0) return null;
33
+ const y = p.map((t) => `${t.status === 0 ? "网络错误" : t.status} ×${t.count}`).join(" · ");
34
+ return /* @__PURE__ */ c("div", { className: e.banner, role: "alert", "data-testid": "page-api-error-notice", children: [
35
+ /* @__PURE__ */ a("span", { className: e.dot }),
36
+ /* @__PURE__ */ c("span", { className: e.text, children: [
37
+ "本页有 ",
38
+ u.length,
39
+ " 个接口失败(",
40
+ y,
41
+ "),页面可能不完整。"
42
+ ] }),
43
+ /* @__PURE__ */ a("button", { type: "button", className: e.retry, onClick: () => location.reload(), children: "重试" }),
44
+ /* @__PURE__ */ c("details", { className: e.details, children: [
45
+ /* @__PURE__ */ a("summary", { children: "失败明细" }),
46
+ /* @__PURE__ */ a("ul", { children: u.map((t, r) => /* @__PURE__ */ c("li", { children: [
47
+ /* @__PURE__ */ a("span", { className: e.method, children: t.method }),
48
+ /* @__PURE__ */ a("span", { className: t.status === 0 ? e.statusNet : e.status, children: t.status === 0 ? "网络" : t.status }),
49
+ /* @__PURE__ */ a("span", { className: e.url, children: t.url })
50
+ ] }, `${t.at}-${r}`)) })
51
+ ] }),
52
+ /* @__PURE__ */ a(
53
+ "button",
54
+ {
55
+ type: "button",
56
+ className: e.dismiss,
57
+ title: "本页浏览期间不再显示",
58
+ onClick: () => m(Date.now() + 1),
59
+ children: "忽略"
60
+ }
61
+ )
62
+ ] });
63
+ };
64
+ class T extends v.Component {
65
+ constructor() {
66
+ super(...arguments), this.state = { error: null, resetKey: this.props.resetKey };
67
+ }
68
+ static getDerivedStateFromError(s) {
69
+ return { error: s };
70
+ }
71
+ static getDerivedStateFromProps(s, n) {
72
+ return n.error && s.resetKey !== n.resetKey ? { error: null, resetKey: s.resetKey } : s.resetKey !== n.resetKey ? { resetKey: s.resetKey } : null;
73
+ }
74
+ render() {
75
+ const { error: s } = this.state;
76
+ if (s) {
77
+ const n = K(s);
78
+ return /* @__PURE__ */ a(
79
+ x,
80
+ {
81
+ error: s,
82
+ retry: () => this.setState({ error: null }),
83
+ retryText: n ? "重试加载" : "重试渲染"
84
+ }
85
+ );
86
+ }
87
+ return this.props.children;
88
+ }
89
+ }
90
+ export {
91
+ B as P,
92
+ T as R
93
+ };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-Bx6NAJlK.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-DjfucAFW.js";
2
2
  import { h as m } from "./history-BlrA1eaW.js";
3
3
  export {
4
4
  e as ComponentDocPage,
@@ -1,4 +1,4 @@
1
- import { a as o, f as d, B as r, u as c } from "./api-CALqShkO.js";
1
+ import { a as o, f as d, B as r, u as c } from "./api-DWt94BcM.js";
2
2
  async function h(e, n = "") {
3
3
  const t = new URLSearchParams();
4
4
  n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
@@ -0,0 +1,60 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { Alert as h } from "antd";
3
+ import { u as d } from "./useAppStore-BGOxWep2.js";
4
+ import { h as g } from "./schedule-BRvmKoDG.js";
5
+ import { N as A } from "./index-BHUK6MwQ.js";
6
+ function P() {
7
+ return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
8
+ h,
9
+ {
10
+ type: "warning",
11
+ showIcon: !0,
12
+ "data-testid": "menu-permission-notice",
13
+ message: "权限校验失败",
14
+ description: "未能获取当前账号的权限点(4A 授权中心接口异常)。下方菜单为全量展示,可能包含无权访问的入口;进入受限页面会返回 403。请联系管理员确认账号权限绑定。",
15
+ style: { margin: "8px 12px" }
16
+ }
17
+ );
18
+ }
19
+ function m(e) {
20
+ const n = e.permission;
21
+ return n ? Array.isArray(n) ? n : [n] : [];
22
+ }
23
+ function S(e) {
24
+ return e ? e.is_global_admin ? !1 : !(e.permissions && e.permissions.length > 0) : !0;
25
+ }
26
+ function f(e, n) {
27
+ return n.length === 0 ? !0 : S(e) ? n.some((i) => A.includes(i)) : n.some((i) => g(e, i));
28
+ }
29
+ function c(e, n, i) {
30
+ const t = m(n), s = t.length > 0 ? t : i ? [i] : [];
31
+ return f(e, s);
32
+ }
33
+ function _(e, n) {
34
+ const i = [];
35
+ for (const t of e) {
36
+ const s = t.permission;
37
+ if (!f(n, m(t))) continue;
38
+ const o = t.items;
39
+ if (!Array.isArray(o)) {
40
+ i.push(t);
41
+ continue;
42
+ }
43
+ const u = o.filter((r) => c(n, r, s)).map(
44
+ (r) => r.children ? {
45
+ ...r,
46
+ children: r.children.filter(
47
+ (l) => c(n, l, r.permission ?? s)
48
+ )
49
+ } : r
50
+ ).filter((r) => !r.children || r.children.length > 0);
51
+ if (u.length === 0) continue;
52
+ const p = { ...t, items: u };
53
+ i.push(p);
54
+ }
55
+ return i;
56
+ }
57
+ export {
58
+ P as M,
59
+ _ as f
60
+ };
package/dist/pages.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createElement as e } from "react";
2
2
  import { ReadOutlined as t } from "@ant-design/icons";
3
- import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-Bx6NAJlK.js";
3
+ import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-DjfucAFW.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react-router-dom";
6
6
  import "antd";