@yuku123/z-team-component 0.2.129 → 0.2.131

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 (50) hide show
  1. package/dist/{ChangeLogView-prUA0IUb.js → ChangeLogView-SwacGpsw.js} +1 -1
  2. package/dist/{ComponentDoc-C2CX0Xw2.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
  3. package/dist/{InvitationManagementPage-BcubClbW.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
  4. package/dist/{OnboardingPage-Cxqhhaqv.js → OnboardingPage-DvNt71kX.js} +2 -2
  5. package/dist/{ScheduledTasks-CjElzdMF.js → ScheduledTasks-COgb4MZJ.js} +6 -6
  6. package/dist/SystemShell-CSXcsiNp.js +752 -0
  7. package/dist/{admin-logs-D6ikiSH_.js → admin-logs-CExsxQ5h.js} +5 -5
  8. package/dist/{api-DOwJiPuB.js → api-C9kTgVc2.js} +1 -1
  9. package/dist/{api-BZgWlYlv.js → api-DXw93E7c.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-CZJ76AhW.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
  11. package/dist/{index-T81OuZsl.js → index-9rfSVSTh.js} +9 -9
  12. package/dist/{index-DBXtiyyO.js → index-B2Dfbi8J.js} +2 -2
  13. package/dist/{index-CINjd8dS.js → index-B3uLo8-F.js} +3 -3
  14. package/dist/{index-D0tpYkvs.js → index-BNPq7yBg.js} +2 -2
  15. package/dist/{index-D6Hmcvfk.js → index-BTJ83JLl.js} +11 -11
  16. package/dist/{index-DpBh6ZiS.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-Mn6ZX7eg.js → index-CF3xDZ7q.js} +4 -4
  20. package/dist/{index-C9qwuEjl.js → index-COobH4Vi.js} +1 -1
  21. package/dist/{index-Bmst20j8.js → index-CU6jFFl5.js} +3 -3
  22. package/dist/{index-CnT2Lzj_.js → index-CXEYA7rt.js} +2 -2
  23. package/dist/{index-CivLA2Ck.js → index-CZCKpsry.js} +2 -2
  24. package/dist/{index-BGv75VC-.js → index-Ceu-yckM.js} +70 -70
  25. package/dist/{index-3az2HcZV.js → index-Ci6_CBwE.js} +3 -3
  26. package/dist/{index-Cb4Q2j9G.js → index-CntZHojY.js} +2 -2
  27. package/dist/{index-Dmqq-TZg.js → index-D2DFKRUf.js} +1 -1
  28. package/dist/{index-DoTLYXzl.js → index-DLK7DuCr.js} +3 -3
  29. package/dist/{index-S7dnw51f.js → index-DM6XeWFk.js} +4060 -4044
  30. package/dist/{index-BoJfKCna.js → index-DMfYPIkB.js} +2 -2
  31. package/dist/{index-B7TlMXsI.js → index-DZ0fYNO9.js} +20 -20
  32. package/dist/index-D_J1ZCy8.js +1299 -0
  33. package/dist/{index-ClxrFdMY.js → index-DmV6xR7C.js} +9 -9
  34. package/dist/{index-DqQmFDgG.js → index-ftuPuj0s.js} +9 -9
  35. package/dist/{index-DUCQ-vg5.js → index-mEgmHNRO.js} +1 -1
  36. package/dist/{index-xkMK0DD6.js → index-t2nMJUPu.js} +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/{instance-DOYjT4ym.js → instance-DD3kbAUh.js} +1 -1
  39. package/dist/{menuPermission-CpTIhKPL.js → menuPermission-v0881tid.js} +3 -3
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-Bys3ZsLG.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
  42. package/dist/{sso-user-CFA43hkh.js → sso-user-CnVXqYR7.js} +1 -1
  43. package/dist/{training-BYJejDfy.js → training-BS23m-yy.js} +1 -1
  44. package/dist/useSidebarResize--Avuabb1.js +46 -0
  45. package/dist/{webide-pyfurtu3.js → webide-BPJ1IpZq.js} +3 -3
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/SystemShell-Cx-v4Hpj.js +0 -718
  49. package/dist/index-BpwFkwbQ.js +0 -2213
  50. package/dist/index-IvhRfboz.js +0 -1248
@@ -1,16 +1,16 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as ne, h as X, s as oe } from "./sso-user-CFA43hkh.js";
2
+ import { f as ie, r as q } from "./ctc-sso-DtJHC-2M.js";
3
+ import { r as ne, h as X, s as oe } from "./sso-user-CnVXqYR7.js";
4
4
  import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
5
5
  import { message as P, Result as de, Button as D, Spin as G, Input as ue, Image as fe } from "antd";
6
6
  import pe from "query-string";
7
7
  import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
8
8
  import { useLocation as ge } from "react-router-dom";
9
9
  import { h as W } from "./history-BlrA1eaW.js";
10
- import { u as c, o as he, j as be, k as _e } from "./ComponentDoc-C2CX0Xw2.js";
10
+ import { u as c, z as he, j as be, k as _e } from "./ComponentDoc-Dh5YhLCI.js";
11
11
  /* empty css */
12
12
  import { b as ye } from "./mobile-client-O3yr9h6t.js";
13
- import { a as ve, s as we } from "./send-default-agent-team-message-Bys3ZsLG.js";
13
+ import { a as ve, s as we } from "./send-default-agent-team-message-Cug0T_7J.js";
14
14
  const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
15
15
  function ke(a) {
16
16
  return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
@@ -91,11 +91,11 @@ function Xe() {
91
91
  return;
92
92
  }
93
93
  if (s >= v) {
94
- z();
94
+ q();
95
95
  return;
96
96
  }
97
97
  if (r += 1, r >= n) {
98
- z();
98
+ q();
99
99
  return;
100
100
  }
101
101
  window.setTimeout(() => void u(), 150);
@@ -228,7 +228,7 @@ function Xe() {
228
228
  `${r}-${e}`
229
229
  )) }) : null
230
230
  ] }) }) }) });
231
- const q = !!_.trim();
231
+ const z = !!_.trim();
232
232
  return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t("div", { className: "build-by-form-page__shell", children: /* @__PURE__ */ l("div", { className: "build-by-form-page__panel", children: [
233
233
  /* @__PURE__ */ l("div", { className: "build-by-form-page__header", children: [
234
234
  /* @__PURE__ */ t("div", { className: "build-by-form-page__icon", "aria-hidden": !0, children: /* @__PURE__ */ t(ce, {}) }),
@@ -254,7 +254,7 @@ function Xe() {
254
254
  value: _,
255
255
  onChange: (e) => Z(e.target.value),
256
256
  onKeyDown: (e) => {
257
- (e.metaKey || e.ctrlKey) && e.key === "Enter" && q && (e.preventDefault(), $());
257
+ (e.metaKey || e.ctrlKey) && e.key === "Enter" && z && (e.preventDefault(), $());
258
258
  },
259
259
  placeholder: "请尽量描述清楚现象、期望结果或相关背景…(可在输入框内 Ctrl+V 粘贴图片)",
260
260
  autoSize: { minRows: 6, maxRows: 14 },
@@ -303,7 +303,7 @@ function Xe() {
303
303
  block: !0,
304
304
  size: "large",
305
305
  className: "build-by-form-page__submit",
306
- disabled: !q,
306
+ disabled: !z,
307
307
  onClick: $,
308
308
  children: "确认并开始"
309
309
  }
@@ -1,7 +1,7 @@
1
- import { a as h, f as _, B as N, v as A, t as g } from "./ComponentDoc-C2CX0Xw2.js";
1
+ import { a as h, f as _, B as N, D as A, t as g } from "./ComponentDoc-Dh5YhLCI.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 L } from "react";
4
- function $(t) {
3
+ import { useMemo as S, useState as C, useEffect as G, Component as D } from "react";
4
+ function L(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: $(t.parentId) ? "" : g(t.parentId),
68
+ parentId: L(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 B(t) {
78
+ function $(t) {
79
79
  const e = t ?? {};
80
80
  return {
81
81
  id: g(e.id),
@@ -92,7 +92,7 @@ function B(t) {
92
92
  function O(t) {
93
93
  const e = t ?? {}, n = Array.isArray(e.memberDetails) ? e.memberDetails : [];
94
94
  return {
95
- ...B(e),
95
+ ...$(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 D = {
128
+ const B = {
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 = D[e];
153
+ const n = B[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 L {
288
+ class st extends D {
289
289
  constructor(e) {
290
290
  super(e), this.state = { hasError: !1, error: null };
291
291
  }
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { CopyOutlined as re, ReloadOutlined as Ae, PlusOutlined as Be, DeleteOutlined as qe, ClearOutlined as Ge, CloseOutlined as Je, SendOutlined as We, RobotOutlined as xe, CloudServerOutlined as Qe, MessageOutlined as Ve, KeyOutlined as Ye, ApiOutlined as Xe, ToolOutlined as Ze, BarChartOutlined as et } from "@ant-design/icons";
3
3
  import { useState as f, useEffect as Z, useCallback as F, useRef as pe, useMemo as Ie, Suspense as tt, lazy as at } from "react";
4
4
  import { Table as _e, Tooltip as ae, Tabs as Me, Input as fe, Button as z, Modal as ke, Drawer as be, Spin as ne, Statistic as K, message as J, Tag as Y, Select as nt, Checkbox as ot } from "antd";
5
- import { u as Pe } from "./ComponentDoc-C2CX0Xw2.js";
5
+ import { u as Pe } from "./ComponentDoc-Dh5YhLCI.js";
6
6
  import { AgentAppList as st, McpPage as lt, SkillMarket as rt } from "@yuku123/z-agent-component";
7
7
  const de = "ft_gateway_default_ak", Ee = "system-default", ee = "", ye = "";
8
8
  function te(a = {}) {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as N, useRef as _, useEffect as r, useCallback as h } from "react";
3
3
  import { h as o } from "./history-BlrA1eaW.js";
4
- import { C as A } from "./ChangeLogView-prUA0IUb.js";
4
+ import { C as A } from "./ChangeLogView-SwacGpsw.js";
5
5
  const T = "_docs_3auja_12", p = "_bgLayer_3auja_59", v = "_bgGrid_3auja_70", y = "_navbar_3auja_87", f = "_navLeft_3auja_103", z = "_navBack_3auja_110", j = "_navBrand_3auja_132", C = "_navLogo_3auja_139", k = "_navTitle_3auja_154", L = "_navLink_3auja_164", I = "_layout_3auja_191", B = "_sidebar_3auja_202", S = "_sidebarInner_3auja_213", O = "_sidebarTitle_3auja_217", q = "_tocItem_3auja_227", P = "_tocActive_3auja_249", E = "_tocNum_3auja_260", D = "_content_3auja_275", G = "_section_3auja_285", K = "_secTitle_3auja_290", w = "_subTitle_3auja_301", M = "_lead_3auja_309", x = "_list_3auja_329", R = "_olist_3auja_360", Z = "_archLayer_3auja_397", F = "_archHead_3auja_412", W = "_archNum_3auja_420", H = "_archHeadText_3auja_432", Q = "_archLabel_3auja_439", U = "_archEn_3auja_446", V = "_archTagline_3auja_453", $ = "_callout_3auja_487", J = "_calloutBlue_3auja_488", Y = "_calloutGreen_3auja_489", X = "_calloutRed_3auja_490", ee = "_inlineCode_3auja_531", le = "_codeBlock_3auja_544", ne = "_tableWrap_3auja_560", ce = "_table_3auja_560", ae = "_tableKey_3auja_602", ie = "_tableIcon_3auja_607", te = "_statusDot_3auja_613", se = "_tone_pending_3auja_622", de = "_tone_running_3auja_626", re = "_tone_suspended_3auja_631", he = "_tone_done_3auja_636", oe = "_tone_failed_3auja_641", me = "_tone_cancelled_3auja_646", ge = "_markGood_3auja_652", ue = "_markBad_3auja_653", be = "_faqList_3auja_667", Ne = "_faqItem_3auja_673", _e = "_faqQ_3auja_687", Ae = "_faqA_3auja_694", Te = "_changelogEmbed_3auja_701", pe = "_changelogTip_3auja_709", ve = "_changelogLink_3auja_715", ye = "_docFooter_3auja_727", fe = "_backBtn_3auja_738", ze = "_docFooterText_3auja_761", l = {
6
6
  docs: T,
7
7
  bgLayer: p,
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-C2CX0Xw2.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-Dh5YhLCI.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 l, B as r, b as c } from "./ComponentDoc-C2CX0Xw2.js";
1
+ import { a as o, f as l, B as r, b as c } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  async function I(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));
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { Alert as h } from "antd";
3
- import { u as d } from "./ComponentDoc-C2CX0Xw2.js";
4
- import { h as g } from "./index-DqQmFDgG.js";
5
- import { N as A } from "./index-S7dnw51f.js";
3
+ import { u as d } from "./ComponentDoc-Dh5YhLCI.js";
4
+ import { h as g } from "./index-ftuPuj0s.js";
5
+ import { N as A } from "./index-DM6XeWFk.js";
6
6
  function P() {
7
7
  return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
8
8
  h,
package/dist/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-C2CX0Xw2.js";
1
+ import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  import { createElement as e } from "react";
3
3
  import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
4
4
  import "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { s as l } from "./ComponentDoc-C2CX0Xw2.js";
1
+ import { s as l } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  function m(o) {
3
3
  const n = o.filter((t) => t.member_type === "AGENT");
4
4
  return n.find((t) => t.is_default === !0) ?? n[0] ?? null;
@@ -1,4 +1,4 @@
1
- import { t as l } from "./ComponentDoc-C2CX0Xw2.js";
1
+ import { t as l } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  const d = "USER_INFO";
3
3
  function s() {
4
4
  try {
@@ -1,4 +1,4 @@
1
- import { a as g, f, B as y, b as m } from "./ComponentDoc-C2CX0Xw2.js";
1
+ import { a as g, f, B as y, b as m } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  function t(n, a = "") {
3
3
  const i = new URLSearchParams();
4
4
  Object.entries(n).forEach(([u, o]) => {
@@ -0,0 +1,46 @@
1
+ import { useCallback as m, useState as v, useRef as f, useEffect as b } from "react";
2
+ function E(n, r, o = 176, c = 480) {
3
+ const i = m(
4
+ (t) => {
5
+ const e = window.innerWidth > 0 ? Math.floor(window.innerWidth / 2) : c, l = Math.max(o, Math.min(c, e));
6
+ return Math.min(Math.max(o, Math.round(t)), l);
7
+ },
8
+ [o, c]
9
+ ), [s, h] = v(() => {
10
+ try {
11
+ const t = Number(localStorage.getItem(n));
12
+ if (Number.isFinite(t) && t > 0) return i(t);
13
+ } catch {
14
+ }
15
+ return r;
16
+ }), [u, p] = v(!1), a = f(s);
17
+ a.current = s;
18
+ const d = f(null), g = m((t) => {
19
+ t.preventDefault(), d.current = { startX: t.clientX, startW: a.current }, p(!0);
20
+ }, []), S = m(() => {
21
+ h(r);
22
+ try {
23
+ localStorage.setItem(n, String(r));
24
+ } catch {
25
+ }
26
+ }, [r, n]);
27
+ return b(() => {
28
+ if (!u) return;
29
+ const t = (l) => {
30
+ const w = d.current;
31
+ w && h(i(w.startW + l.clientX - w.startX));
32
+ }, e = () => {
33
+ d.current = null, p(!1);
34
+ try {
35
+ localStorage.setItem(n, String(a.current));
36
+ } catch {
37
+ }
38
+ };
39
+ return window.addEventListener("pointermove", t), window.addEventListener("pointerup", e), window.addEventListener("pointercancel", e), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
40
+ window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", e), window.removeEventListener("pointercancel", e), document.body.style.cursor = "", document.body.style.userSelect = "";
41
+ };
42
+ }, [u, i, n]), { width: s, dragging: u, onHandlePointerDown: g, resetWidth: S };
43
+ }
44
+ export {
45
+ E as u
46
+ };
@@ -6,9 +6,9 @@ import ur from "react-markdown";
6
6
  import mr from "rehype-highlight";
7
7
  import fr from "remark-gfm";
8
8
  import { h as pr } from "./history-BlrA1eaW.js";
9
- import { a as w, f as _, B as v, b as C, u as ea, n as yt, aa as hr, t as et, e as yr, ac as gr, ad as On, ae as _r, af as ta } from "./ComponentDoc-C2CX0Xw2.js";
10
- import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-D6ikiSH_.js";
11
- import { a as xr, f as Lr, c as Ar } from "./index-DqQmFDgG.js";
9
+ import { a as w, f as _, B as v, b as C, u as ea, n as yt, a5 as hr, t as et, e as yr, a7 as gr, a8 as On, a9 as _r, aa as ta } from "./ComponentDoc-Dh5YhLCI.js";
10
+ import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-CExsxQ5h.js";
11
+ import { a as xr, f as Lr, c as Ar } from "./index-ftuPuj0s.js";
12
12
  import { findTodosLinkedToNote as Dr, buildTodoProjectContext as Rr, linkedTodoChipLabel as Or } from "@yuku123/z-task-component";
13
13
  import Ne from "dayjs";
14
14
  import "./echarts-B1OU1xr4.js";