@yuku123/z-team-component 0.2.52 → 0.2.54

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 (58) hide show
  1. package/dist/{ChangeLogView-nPAmM1X0.js → ChangeLogView-Cstbioyw.js} +137 -137
  2. package/dist/{ComponentDoc-Cky9jCGu.js → ComponentDoc-yvIrAz9-.js} +506 -461
  3. package/dist/{InvitationManagementPage-BsbaIGvB.js → InvitationManagementPage-CIouC3Fn.js} +1 -1
  4. package/dist/{OnboardingPage-CHVgeBiO.js → OnboardingPage-DScwVCi-.js} +2 -2
  5. package/dist/ScheduledTasks-Dd2lJrBF.js +9449 -0
  6. package/dist/{SystemShell-4OiqvM11.js → SystemShell-DtvyWy0u.js} +1 -1
  7. package/dist/{admin-logs-D6HtRcK6.js → admin-logs-B9KS6VJz.js} +2 -2
  8. package/dist/{api-C78tCfne.js → api-CALqShkO.js} +288 -270
  9. package/dist/{api-BT968Uwc.js → api-CdVRdA0g.js} +1 -1
  10. package/dist/createWorkspaceWsHandler-CL5-4wFp.js +13037 -0
  11. package/dist/{index-BX1Wd9x9.js → index-4YxdJwFm.js} +3 -3
  12. package/dist/index-7Pe_xBrh.js +582 -0
  13. package/dist/{index-DFY3lzq0.js → index-C2Wkg1b5.js} +3 -3
  14. package/dist/{index-CdlfWFvS.js → index-C3B7CbHo.js} +610 -529
  15. package/dist/{index-BkX0I2aB.js → index-C6S3MIu4.js} +56 -56
  16. package/dist/{index-BAY37t4f.js → index-CGWttFLb.js} +41 -35
  17. package/dist/{index-LwKUkzKI.js → index-CKS65_Dw.js} +3 -3
  18. package/dist/{index-Bdu31aRV.js → index-CLWgeKwr.js} +2 -2
  19. package/dist/{index-DxFZKDq-.js → index-C_2o9qgM.js} +6 -6
  20. package/dist/index-CgQH7-9F.js +130 -0
  21. package/dist/{index-B_C7H9WL.js → index-D6V-4vNa.js} +5 -5
  22. package/dist/index-DC5lxCN8.js +474 -0
  23. package/dist/{index-D9AqC2O-.js → index-DET70T3j.js} +1 -1
  24. package/dist/index-DEx5rtXv.js +242 -0
  25. package/dist/{index-DpcrvKsK.js → index-DJOyOVn_.js} +87 -74
  26. package/dist/{index-qK6pyAGy.js → index-DKeYG0Fu.js} +4 -4
  27. package/dist/index-DLQoecEe.js +1143 -0
  28. package/dist/{index-CR3sbzOU.js → index-DLyAy3cr.js} +7 -7
  29. package/dist/index-DOygBsXO.js +2826 -0
  30. package/dist/index-DRrBkbr_.js +100 -0
  31. package/dist/index-DWsfQMp8.js +208 -0
  32. package/dist/index-Pk7OkJrk.js +1133 -0
  33. package/dist/index-TDZM-Zv3.js +9287 -0
  34. package/dist/index-WIsi8fln.js +339 -0
  35. package/dist/{index-BAK7UDvY.js → index-aw72ID7y.js} +1 -1
  36. package/dist/{index-ClA0896K.js → index-lftFkqfI.js} +4 -4
  37. package/dist/{index-JMzBzwiO.js → index-usrA11ZG.js} +618 -617
  38. package/dist/index.js +1 -1
  39. package/dist/{instance-D5dhjbgg.js → instance-f3C-1qYl.js} +3 -3
  40. package/dist/pages.js +1 -1
  41. package/dist/schedule-DfkgwPdE.js +497 -0
  42. package/dist/{send-default-agent-team-message-C882sJLV.js → send-default-agent-team-message-d_ECdczr.js} +1 -1
  43. package/dist/{sso-user-Bi9_l9yi.js → sso-user-HcsSzg8P.js} +1 -1
  44. package/dist/{training-Ba09KItE.js → training-DnNQN0An.js} +1 -1
  45. package/dist/{useAppStore-ibJyVIAX.js → useAppStore-kRZEA5WZ.js} +19 -19
  46. package/dist/webide-DPjFYxLl.js +7845 -0
  47. package/dist/z-team-component.css +2 -2
  48. package/package.json +1 -1
  49. package/dist/SmartWorkbench.module-xRRmpTTw.js +0 -85
  50. package/dist/createWorkspaceWsHandler-mq-UTF2O.js +0 -13028
  51. package/dist/index-7nSly-MA.js +0 -405
  52. package/dist/index-B11_fFjX.js +0 -1182
  53. package/dist/index-B3-0eXYQ.js +0 -844
  54. package/dist/index-Cp3DAwNx.js +0 -13862
  55. package/dist/index-NaBR2aQE.js +0 -6685
  56. package/dist/index-UsGqMo11.js +0 -848
  57. package/dist/schedule-C-4ksDPw.js +0 -239
  58. package/dist/webide-RsFP9pHM.js +0 -8087
@@ -0,0 +1,100 @@
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { useState as f, useMemo as p } from "react";
3
+ import { useNavigate as y, useLocation as L } from "react-router-dom";
4
+ import { DownOutlined as N, RightOutlined as x } from "@ant-design/icons";
5
+ const v = "_shell_92w2c_7", A = "_sidebar_92w2c_15", k = "_menuList_92w2c_37", W = "_menuGroup_92w2c_43", $ = "_menuGroupHeader_92w2c_47", E = "_menuGroupIcon_92w2c_65", H = "_menuGroupLabel_92w2c_70", T = "_menuGroupArrow_92w2c_74", g = "_menuSubList_92w2c_80", C = "_menuSubItem_92w2c_86", j = "_menuSubItemActive_92w2c_103", z = "_menuSubItemIcon_92w2c_110", R = "_menuSubItemLabel_92w2c_115", Z = "_menuSubItemWrap_92w2c_119", D = "_main_92w2c_123", K = "_empty_92w2c_130", M = "_emptyIcon_92w2c_140", O = "_emptyText_92w2c_145", e = {
6
+ shell: v,
7
+ sidebar: A,
8
+ menuList: k,
9
+ menuGroup: W,
10
+ menuGroupHeader: $,
11
+ menuGroupIcon: E,
12
+ menuGroupLabel: H,
13
+ menuGroupArrow: T,
14
+ menuSubList: g,
15
+ menuSubItem: C,
16
+ menuSubItemActive: j,
17
+ menuSubItemIcon: z,
18
+ menuSubItemLabel: R,
19
+ menuSubItemWrap: Z,
20
+ main: D,
21
+ empty: K,
22
+ emptyIcon: M,
23
+ emptyText: O
24
+ };
25
+ function q(m, o) {
26
+ for (const u of m)
27
+ if (u.path === o) return u.element;
28
+ for (const u of m)
29
+ if (u.path.includes("*") || u.path.includes(":")) {
30
+ const l = "^" + u.path.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
31
+ if (new RegExp(l).test(o)) return u.element;
32
+ }
33
+ return null;
34
+ }
35
+ function B({ text: m }) {
36
+ return /* @__PURE__ */ a("div", { className: e.empty, children: [
37
+ /* @__PURE__ */ t("div", { className: e.emptyIcon, children: "⚙️" }),
38
+ /* @__PURE__ */ t("div", { className: e.emptyText, children: m })
39
+ ] });
40
+ }
41
+ function U({
42
+ groups: m,
43
+ routes: o,
44
+ mode: u,
45
+ emptyText: l,
46
+ activePathOverride: i,
47
+ menuOnly: _ = !1
48
+ }) {
49
+ const d = y(), { pathname: r } = L(), [b, h] = f(
50
+ new Set(m.map((n) => n.title))
51
+ ), I = p(() => {
52
+ const n = i ?? r;
53
+ for (const s of m)
54
+ for (const c of s.items)
55
+ if (c.path === n) return c.key;
56
+ return null;
57
+ }, [m, i, r]), S = (n) => {
58
+ h((s) => {
59
+ const c = new Set(s);
60
+ return c.has(n) ? c.delete(n) : c.add(n), c;
61
+ });
62
+ }, w = (n) => {
63
+ d(`${n.path}?mode=${u}`);
64
+ }, G = p(() => q(o, r), [o, r]);
65
+ return /* @__PURE__ */ a("div", { className: e.shell, children: [
66
+ /* @__PURE__ */ t("aside", { className: e.sidebar, children: /* @__PURE__ */ t("nav", { className: e.menuList, children: m.map((n) => {
67
+ const s = b.has(n.title);
68
+ return /* @__PURE__ */ a("div", { className: e.menuGroup, children: [
69
+ /* @__PURE__ */ a(
70
+ "div",
71
+ {
72
+ className: e.menuGroupHeader,
73
+ onClick: () => S(n.title),
74
+ children: [
75
+ /* @__PURE__ */ t("span", { className: e.menuGroupIcon, children: n.icon }),
76
+ /* @__PURE__ */ t("span", { className: e.menuGroupLabel, children: n.title }),
77
+ /* @__PURE__ */ t("span", { className: e.menuGroupArrow, children: s ? /* @__PURE__ */ t(N, {}) : /* @__PURE__ */ t(x, {}) })
78
+ ]
79
+ }
80
+ ),
81
+ s && /* @__PURE__ */ t("ul", { className: e.menuSubList, children: n.items.map((c) => /* @__PURE__ */ a(
82
+ "li",
83
+ {
84
+ className: `${e.menuSubItemWrap} ${e.menuSubItem} ${I === c.key ? e.menuSubItemActive : ""}`,
85
+ onClick: () => w(c),
86
+ children: [
87
+ /* @__PURE__ */ t("span", { className: e.menuSubItemIcon, children: c.icon }),
88
+ /* @__PURE__ */ t("span", { className: e.menuSubItemLabel, children: c.label })
89
+ ]
90
+ },
91
+ c.key
92
+ )) })
93
+ ] }, n.title);
94
+ }) }) }),
95
+ _ ? null : /* @__PURE__ */ t("main", { className: e.main, children: G ?? /* @__PURE__ */ t(B, { text: l }) })
96
+ ] });
97
+ }
98
+ export {
99
+ U as W
100
+ };
@@ -0,0 +1,208 @@
1
+ import { jsx as l, jsxs as f } from "react/jsx-runtime";
2
+ const d = typeof window < "u" && window.ZTEAM_DOWNLOAD_BASE || "", S = `${d}/latest-mac.json`, L = `${d}/latest-android.json`;
3
+ function T(a) {
4
+ return !a || a <= 0 ? "" : a < 1024 * 1024 ? `${(a / 1024).toFixed(0)} KB` : `${(a / (1024 * 1024)).toFixed(1)} MB`;
5
+ }
6
+ function A(a) {
7
+ if (!a) return "";
8
+ try {
9
+ const r = new Date(a);
10
+ return Number.isNaN(r.getTime()) ? a : `${r.getFullYear()}-${String(r.getMonth() + 1).padStart(
11
+ 2,
12
+ "0"
13
+ )}-${String(r.getDate()).padStart(2, "0")}`;
14
+ } catch {
15
+ return a;
16
+ }
17
+ }
18
+ async function E(a) {
19
+ if (!a) return null;
20
+ try {
21
+ const r = await fetch(a, {
22
+ headers: { Accept: "application/json" }
23
+ });
24
+ if (!r.ok) return null;
25
+ const t = await r.text();
26
+ if (!t.trim().startsWith("{")) return null;
27
+ const e = JSON.parse(t);
28
+ return !e || !e.version || !e.downloadUrl ? null : {
29
+ version: e.version,
30
+ arch: e.arch || "",
31
+ downloadUrl: e.downloadUrl,
32
+ fileName: e.fileName || "",
33
+ fileSize: Number(e.fileSize) || 0,
34
+ changelog: e.changelog || "",
35
+ releaseType: e.releaseType || "stable",
36
+ releaseTime: e.releaseTime || "",
37
+ ...e.windows ? {
38
+ windows: w(e.windows)
39
+ } : {}
40
+ };
41
+ } catch {
42
+ return null;
43
+ }
44
+ }
45
+ function w(a) {
46
+ return {
47
+ version: a.version || "",
48
+ arch: a.arch || "",
49
+ downloadUrl: a.downloadUrl || "",
50
+ fileName: a.fileName || "",
51
+ fileSize: Number(a.fileSize) || 0,
52
+ changelog: a.changelog || "",
53
+ releaseType: a.releaseType || "stable",
54
+ releaseTime: a.releaseTime || ""
55
+ };
56
+ }
57
+ function H(a, r) {
58
+ var t;
59
+ return a ? r === "windows" ? (t = a.windows) != null && t.downloadUrl ? a.windows : null : a.downloadUrl ? a : null : null;
60
+ }
61
+ const v = {
62
+ message: [
63
+ "M21 11.5a8.4 8.4 0 0 1-9 8.4 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.2a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 8.5-8.4h.5a8.5 8.5 0 0 1 8 8z"
64
+ ],
65
+ network: [
66
+ "M18 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
67
+ "M6 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
68
+ "M18 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
69
+ "M8.6 13.5l6.8 4",
70
+ "M15.4 6.5l-6.8 4"
71
+ ],
72
+ branch: [
73
+ "M6 3v12",
74
+ "M18 9a9 9 0 0 1-9 9"
75
+ ],
76
+ shield: [
77
+ "M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.5 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z",
78
+ "m9 12 2 2 4-4"
79
+ ],
80
+ swap: ["M8 3 4 7l4 4", "M4 7h16", "m16 21 4-4-4-4", "M20 17H4"],
81
+ users: [
82
+ "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
83
+ "M22 21v-2a4 4 0 0 0-3-3.9",
84
+ "M16 3.1a4 4 0 0 1 0 7.8"
85
+ ],
86
+ book: [
87
+ "M12 7v14",
88
+ "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"
89
+ ],
90
+ layers: [
91
+ "M12.8 2.2a2 2 0 0 0-1.6 0L2.6 6.1a1 1 0 0 0 0 1.8l8.6 3.9a2 2 0 0 0 1.6 0l8.6-3.9a1 1 0 0 0 0-1.8z",
92
+ "m22 12.5-9.2 4.2a2 2 0 0 1-1.6 0L2 12.5",
93
+ "m22 17.5-9.2 4.2a2 2 0 0 1-1.6 0L2 17.5"
94
+ ],
95
+ laptop: [
96
+ "M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v9H4z",
97
+ "M2 17h20l-1.5 1.8a1 1 0 0 1-1.3.4H4.8a1 1 0 0 1-1.3-.4z"
98
+ ],
99
+ phone: [
100
+ "M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",
101
+ "M11 18h2"
102
+ ],
103
+ globe: [
104
+ "M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z",
105
+ "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
106
+ "M2 12h20"
107
+ ],
108
+ terminal: ["m4 17 6-6-6-6", "M12 19h8"],
109
+ bot: [
110
+ "M5 9h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2z",
111
+ "M12 9V5.5",
112
+ "M2.5 12v4",
113
+ "M21.5 12v4",
114
+ "M9.5 13h.01",
115
+ "M14.5 13h.01",
116
+ "M10 16.5h4"
117
+ ],
118
+ zap: ["M13 2 4 14h7l-1 8 9-12h-7z"],
119
+ server: [
120
+ "M4 4h16a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",
121
+ "M4 14h16a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",
122
+ "M7 7h.01",
123
+ "M7 17h.01"
124
+ ],
125
+ wrench: ["M14.7 6.3a4 4 0 0 0 5 5l-9 9a2.8 2.8 0 0 1-4-4z"],
126
+ search: ["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16z", "m21 21-4.3-4.3"],
127
+ download: ["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", "m7 10 5 5 5-5", "M12 15V3"],
128
+ check: ["M20 6 9 17l-5-5"],
129
+ arrow: ["M5 12h14", "m12 5 7 7-7 7"],
130
+ external: ["M15 3h6v6", "M10 14 21 3", "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],
131
+ sparkle: ["M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z"]
132
+ }, m = {
133
+ windows: [
134
+ "M3 5.6 10 4.3v7.3H3z",
135
+ "M11 4.05 21 2.5v9.1H11z",
136
+ "M3 12.6h7v7.3l-7-1.3z",
137
+ "M11 12.6h10v9.1l-10-1.5z"
138
+ ]
139
+ }, z = {
140
+ branch: [
141
+ [18, 6, 3],
142
+ [6, 18, 3]
143
+ ]
144
+ }, g = {
145
+ bot: [[12, 3.6, 1.15]]
146
+ };
147
+ function N({
148
+ name: a,
149
+ size: r = 20,
150
+ strokeWidth: t = 1.7,
151
+ className: e,
152
+ style: u
153
+ }) {
154
+ const i = m[a], h = v[a], s = z[a], M = g[a];
155
+ return !i && !h ? /* @__PURE__ */ l(
156
+ "svg",
157
+ {
158
+ viewBox: "0 0 24 24",
159
+ width: r,
160
+ height: r,
161
+ className: e,
162
+ style: u,
163
+ "aria-hidden": "true",
164
+ children: /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "3", fill: "currentColor" })
165
+ }
166
+ ) : /* @__PURE__ */ f(
167
+ "svg",
168
+ {
169
+ viewBox: "0 0 24 24",
170
+ width: r,
171
+ height: r,
172
+ className: e,
173
+ style: u,
174
+ fill: "none",
175
+ stroke: "currentColor",
176
+ strokeWidth: t,
177
+ strokeLinecap: "round",
178
+ strokeLinejoin: "round",
179
+ "aria-hidden": "true",
180
+ focusable: "false",
181
+ children: [
182
+ i == null ? void 0 : i.map((n) => /* @__PURE__ */ l("path", { d: n, fill: "currentColor", stroke: "none" }, n)),
183
+ h == null ? void 0 : h.map((n) => /* @__PURE__ */ l("path", { d: n }, n)),
184
+ s == null ? void 0 : s.map(([n, o, c]) => /* @__PURE__ */ l("circle", { cx: n, cy: o, r: c }, `${n}-${o}`)),
185
+ M == null ? void 0 : M.map(([n, o, c]) => /* @__PURE__ */ l(
186
+ "circle",
187
+ {
188
+ cx: n,
189
+ cy: o,
190
+ r: c,
191
+ fill: "currentColor",
192
+ stroke: "none"
193
+ },
194
+ `f-${n}-${o}`
195
+ ))
196
+ ]
197
+ }
198
+ );
199
+ }
200
+ export {
201
+ L as A,
202
+ N as L,
203
+ S as M,
204
+ T as a,
205
+ A as b,
206
+ E as f,
207
+ H as p
208
+ };