@yuku123/z-team-component 0.2.140 → 0.2.141

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 (56) hide show
  1. package/dist/{AdminModuleContent-DDB35gOh.js → AdminModuleContent-FFU5MUjw.js} +10526 -10697
  2. package/dist/{ChangeLogView-AKOZ6Ski.js → ChangeLogView-C5v5uT8L.js} +1 -1
  3. package/dist/{ComponentDoc-SiXXhka1.js → ComponentDoc-DnZq0_Rk.js} +1318 -1313
  4. package/dist/{InvitationManagementPage-CRbABOKe.js → InvitationManagementPage-dEBNe9_s.js} +1 -1
  5. package/dist/{OnboardingPage-BNJopRYO.js → OnboardingPage-BW8WhBg5.js} +2 -2
  6. package/dist/ScheduledTasks-BaZ0_klE.js +12024 -0
  7. package/dist/SystemShell-I7vWo1XG.js +858 -0
  8. package/dist/{admin-logs-B3IxooG2.js → admin-logs-BDPC3Q_Y.js} +5 -5
  9. package/dist/{api-DmBlT5MH.js → api-BJ5jPWNm.js} +1 -1
  10. package/dist/{api-DW8nsucC.js → api-U9U4zzq_.js} +1 -1
  11. package/dist/createWorkspaceWsHandler-B6TdD0Oz.js +11757 -0
  12. package/dist/{index-DCAO83Wb.js → index-BGZV4U3S.js} +1325 -1187
  13. package/dist/{index-Hv2KDG7i.js → index-BPEfgkzE.js} +3 -3
  14. package/dist/{index-VmRWH4U5.js → index-BXaJSMd0.js} +9 -9
  15. package/dist/{index-C1nr0UeB.js → index-Bfw6OE5L.js} +19 -20
  16. package/dist/index-BlDMnzJF.js +18 -0
  17. package/dist/{index-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
  18. package/dist/{index-C7DSDopw.js → index-BwhK44Dc.js} +26 -27
  19. package/dist/{index-l9KH8r7F.js → index-CP5raaOW.js} +780 -792
  20. package/dist/{index-CvHMXrAD.js → index-CPpqideA.js} +1 -1
  21. package/dist/{index-C24QsGsG.js → index-CToJEufJ.js} +1 -1
  22. package/dist/{index-CJ7dJejJ.js → index-CVgvlDAT.js} +17 -17
  23. package/dist/{index-BSqUODiN.js → index-CmzTSdmD.js} +30 -31
  24. package/dist/{index-BV64kKse.js → index-CsNtBWH-.js} +2 -2
  25. package/dist/index-DIv1OJ_2.js +1840 -0
  26. package/dist/{index-Du95tdVf.js → index-DKUg7Evq.js} +28 -29
  27. package/dist/{index-DULYXalY.js → index-DSXVCDf7.js} +9 -9
  28. package/dist/{index-CXjen4Gx.js → index-Dd5RE_0a.js} +342 -389
  29. package/dist/index-DuZrrpXt.js +1298 -0
  30. package/dist/{index-D-G4mbxH.js → index-Gn0zdd5m.js} +2 -2
  31. package/dist/index-WWGxF0UX.js +136 -0
  32. package/dist/{index-DHrMSEVJ.js → index-XTNGZnrF.js} +1 -1
  33. package/dist/{index-D7thpI99.js → index-XgaiU13i.js} +1 -1
  34. package/dist/{index-DjbLq5lI.js → index-d6RIzlsj.js} +2 -2
  35. package/dist/{index-DDOfdrn4.js → index-kjli87DO.js} +3895 -3964
  36. package/dist/{index-D440bEgm.js → index-mDjl3m2W.js} +198 -192
  37. package/dist/{index-CEoS_jEa.js → index-skl-gjj4.js} +6 -6
  38. package/dist/index.js +1 -1
  39. package/dist/instance-D_EP8AQm.js +116 -0
  40. package/dist/{menuPermission-DxknHmt8.js → menuPermission-Bhnols4v.js} +3 -3
  41. package/dist/pages.js +1 -1
  42. package/dist/{send-default-agent-team-message-DYytBtLc.js → send-default-agent-team-message-0RB1pYex.js} +1 -1
  43. package/dist/{training-CKYPSkUP.js → training-B1eRX8g1.js} +1 -1
  44. package/dist/{webide-JAalC_Wr.js → webide-C4ThGZzY.js} +1161 -1317
  45. package/dist/z-team-component.css +1 -1
  46. package/package.json +4 -4
  47. package/dist/ScheduledTasks-Cn_CEZ-B.js +0 -12006
  48. package/dist/SystemShell-B8Tyluzu.js +0 -893
  49. package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
  50. package/dist/createWorkspaceWsHandler-5MHgQGfJ.js +0 -12902
  51. package/dist/index-BT4oQJby.js +0 -228
  52. package/dist/index-DrDFy5jN.js +0 -139
  53. package/dist/index-DvslXAjT.js +0 -1323
  54. package/dist/index-NIu3OKHi.js +0 -1868
  55. package/dist/instance-B4SrJ-BY.js +0 -186
  56. package/dist/sso-user-DN6kSAc0.js +0 -43
@@ -1,49 +1,48 @@
1
1
  import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
2
  import { f as z, r as v } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as L, h as N, s as T } from "./sso-user-DN6kSAc0.js";
4
- import { CheckCircleFilled as q } from "@ant-design/icons";
5
- import { Spin as R } from "antd";
6
- import W from "query-string";
7
- import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
8
- import { useLocation as F } from "react-router-dom";
9
- import { h as H } from "./history-BlrA1eaW.js";
10
- import { u as m, g as Y, k as B } from "./ComponentDoc-SiXXhka1.js";
3
+ import { u as m, g as L, r as T, k as N, l as q, m as R } from "./ComponentDoc-DnZq0_Rk.js";
4
+ import { CheckCircleFilled as W } from "@ant-design/icons";
5
+ import { Spin as A } from "antd";
6
+ import F from "query-string";
7
+ import { useMemo as P, useState as p, useCallback as H, useEffect as U } from "react";
8
+ import { useLocation as Y } from "react-router-dom";
9
+ import { h as B } from "./history-BlrA1eaW.js";
11
10
  /* empty css */
12
11
  import { b as G } from "./mobile-client-O3yr9h6t.js";
13
- function oe() {
14
- const i = F(), g = W.parse(i.search), S = P(
12
+ function se() {
13
+ const i = Y(), g = F.parse(i.search), S = P(
15
14
  () => String(g.name ?? "WebIDE 在线咨询").trim(),
16
15
  [i.search]
17
16
  ), _ = P(
18
17
  () => String(g.source ?? "z-team-webide").trim(),
19
18
  [i.search]
20
- ), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [k, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: $ } = m(), f = A((e, o) => {
21
- M((a) => [...a, e]), y(o);
19
+ ), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [k, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: $ } = m(), f = H((e, n) => {
20
+ M((a) => [...a, e]), y(n);
22
21
  }, []);
23
22
  return U(() => {
24
- let e = !1, o = 0;
23
+ let e = !1, n = 0;
25
24
  const a = 100;
26
- let r = !1, n = 0;
25
+ let r = !1, o = 0;
27
26
  const h = 3;
28
27
  return (() => {
29
28
  if (e) return;
30
29
  const l = async () => {
31
30
  if (e) return;
32
- let t = L();
31
+ let t = T();
33
32
  if ((!t || !N(t)) && !r) {
34
33
  r = !0;
35
34
  try {
36
35
  const c = await z();
37
- c.kind === "authenticated" ? t = c.user : c.kind === "unauthenticated" && (n += 1);
36
+ c.kind === "authenticated" ? t = c.user : c.kind === "unauthenticated" && (o += 1);
38
37
  } catch {
39
38
  } finally {
40
39
  r = !1;
41
40
  }
42
41
  }
43
42
  if (t && N(t)) {
44
- u(T(t));
43
+ u(q(t));
45
44
  const c = m.getState().token;
46
- B().then((D) => {
45
+ R().then((D) => {
47
46
  e || u(D);
48
47
  }).catch(() => {
49
48
  !e && c && (localStorage.removeItem("z_team_token"), m.setState({ token: "" }));
@@ -52,11 +51,11 @@ function oe() {
52
51
  });
53
52
  return;
54
53
  }
55
- if (n >= h) {
54
+ if (o >= h) {
56
55
  v();
57
56
  return;
58
57
  }
59
- if (o += 1, o >= a) {
58
+ if (n += 1, n >= a) {
60
59
  v();
61
60
  return;
62
61
  }
@@ -71,11 +70,11 @@ function oe() {
71
70
  let e = !1;
72
71
  return (async () => {
73
72
  try {
74
- const a = m.getState(), r = /* @__PURE__ */ new Date(), n = (c) => String(c).padStart(2, "0"), h = `${r.getFullYear()}-${n(r.getMonth() + 1)}-${n(
73
+ const a = m.getState(), r = /* @__PURE__ */ new Date(), o = (c) => String(c).padStart(2, "0"), h = `${r.getFullYear()}-${o(r.getMonth() + 1)}-${o(
75
74
  r.getDate()
76
- )} ${n(r.getHours())}:${n(r.getMinutes())}`, j = `${S} - ${d.display_name || d.username} - ${h}`;
75
+ )} ${o(r.getHours())}:${o(r.getMinutes())}`, j = `${S} - ${d.display_name || d.username} - ${h}`;
77
76
  y("正在创建咨询群组…");
78
- const l = await Y(
77
+ const l = await L(
79
78
  {
80
79
  name: j,
81
80
  description: `${_} 发起的在线咨询`,
@@ -91,7 +90,7 @@ function oe() {
91
90
  t.projectSwitchSeq,
92
91
  !1
93
92
  ), e) return;
94
- f("工作区已就绪", "即将进入工作台…"), H.replace(
93
+ f("工作区已就绪", "即将进入工作台…"), B.replace(
95
94
  G({
96
95
  projectId: l.id,
97
96
  search: i.search
@@ -112,21 +111,21 @@ function oe() {
112
111
  f,
113
112
  i.search
114
113
  ]), k ? /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--error", children: /* @__PURE__ */ s("p", { children: k }) }) : /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--loading", children: /* @__PURE__ */ C("div", { className: "embed-chat-page__panel", children: [
115
- /* @__PURE__ */ s(R, { size: "large" }),
114
+ /* @__PURE__ */ s(A, { size: "large" }),
116
115
  /* @__PURE__ */ s("p", { className: "embed-chat-page__step", children: I }),
117
- w.length > 0 ? /* @__PURE__ */ s("ul", { className: "embed-chat-page__done-list", children: w.filter((e) => e.trim().length > 0).map((e, o) => /* @__PURE__ */ C(
116
+ w.length > 0 ? /* @__PURE__ */ s("ul", { className: "embed-chat-page__done-list", children: w.filter((e) => e.trim().length > 0).map((e, n) => /* @__PURE__ */ C(
118
117
  "li",
119
118
  {
120
119
  className: "embed-chat-page__done-item",
121
120
  children: [
122
- /* @__PURE__ */ s(q, { className: "embed-chat-page__done-icon" }),
121
+ /* @__PURE__ */ s(W, { className: "embed-chat-page__done-icon" }),
123
122
  /* @__PURE__ */ s("span", { children: e })
124
123
  ]
125
124
  },
126
- `${o}-${e}`
125
+ `${n}-${e}`
127
126
  )) }) : null
128
127
  ] }) });
129
128
  }
130
129
  export {
131
- oe as default
130
+ se as default
132
131
  };
@@ -1,7 +1,7 @@
1
- import { a as h, f as _, B as N, D as A, t as g } from "./ComponentDoc-SiXXhka1.js";
1
+ import { a as h, f as _, B as N, G as A, t as g } from "./ComponentDoc-DnZq0_Rk.js";
2
2
  import { jsx as p, jsxs as I } from "react/jsx-runtime";
3
- import { useMemo as S, useState as C, useEffect as G, Component as D } from "react";
4
- function L(t) {
3
+ import { useMemo as S, useState as C, useEffect as G, Component as L } from "react";
4
+ function $(t) {
5
5
  if (t == null) return !0;
6
6
  const e = String(t).trim();
7
7
  return e === "" || e === "0";
@@ -65,7 +65,7 @@ function b(t) {
65
65
  projectTitle: t.projectTitle == null || !String(t.projectTitle).trim() ? null : String(t.projectTitle),
66
66
  tags: e(t.tags),
67
67
  links: n(t.links),
68
- parentId: L(t.parentId) ? "" : g(t.parentId),
68
+ parentId: $(t.parentId) ? "" : g(t.parentId),
69
69
  sortOrder: t.sortOrder == null ? 0 : Number(t.sortOrder),
70
70
  completedAt: t.completedAt == null ? null : String(t.completedAt),
71
71
  completedBy: t.completedBy == null ? null : String(t.completedBy),
@@ -75,7 +75,7 @@ function b(t) {
75
75
  agentSessionId: t.agentSessionId == null ? null : g(t.agentSessionId)
76
76
  };
77
77
  }
78
- function $(t) {
78
+ function B(t) {
79
79
  const e = t ?? {};
80
80
  return {
81
81
  id: g(e.id),
@@ -92,7 +92,7 @@ function $(t) {
92
92
  function O(t) {
93
93
  const e = t ?? {}, n = Array.isArray(e.memberDetails) ? e.memberDetails : [];
94
94
  return {
95
- ...$(e),
95
+ ...B(e),
96
96
  openCount: e.openCount == null ? 0 : Number(e.openCount),
97
97
  memberDetails: n.map((r) => {
98
98
  const c = r ?? {}, l = String(c.userId ?? "").trim();
@@ -125,7 +125,7 @@ async function rt(t, e = "") {
125
125
  }), c = await A(r, "新建事项失败");
126
126
  return b(c);
127
127
  }
128
- const B = {
128
+ const D = {
129
129
  RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
130
130
  EVALUATION_VIEW: ["EVALUATION_MANAGE"],
131
131
  COLLABORATION_VIEW: [
@@ -150,7 +150,7 @@ function it(t, e) {
150
150
  var r;
151
151
  if (!t) return !1;
152
152
  if (t.is_global_admin || (r = t.permissions) != null && r.includes(e)) return !0;
153
- const n = B[e];
153
+ const n = D[e];
154
154
  return !!(n != null && n.some((c) => {
155
155
  var l;
156
156
  return (l = t.permissions) == null ? void 0 : l.includes(c);
@@ -285,7 +285,7 @@ const X = ({
285
285
  }
286
286
  );
287
287
  };
288
- class st extends D {
288
+ class st extends L {
289
289
  constructor(e) {
290
290
  super(e), this.state = { hasError: !1, error: null };
291
291
  }