@yuku123/z-team-component 0.2.79 → 0.2.80

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/{menuPermission-BxQjHIDw.js → menuPermission-D9NGpBZP.js} +1 -1
  2. package/dist/pages.js +1 -1
  3. package/dist/z-team-component.css +1 -1
  4. package/package.json +1 -1
  5. package/dist/ChangeLogView-_bRZ55Yi.js +0 -542
  6. package/dist/ComponentDoc-DHEiUymG.js +0 -3998
  7. package/dist/InvitationManagementPage-DGCuTTur.js +0 -495
  8. package/dist/OnboardingPage-PAr43cEy.js +0 -393
  9. package/dist/ScheduledTasks-CcCa60Uk.js +0 -9407
  10. package/dist/SystemShell-Bj5MAgG4.js +0 -689
  11. package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
  12. package/dist/api-BWPNJBhU.js +0 -20
  13. package/dist/api-CIhVblfa.js +0 -2155
  14. package/dist/browser-jb_PFvU3.js +0 -1538
  15. package/dist/createWorkspaceWsHandler-BWP5S5X3.js +0 -12951
  16. package/dist/ctc-sso-DtJHC-2M.js +0 -117
  17. package/dist/echarts-B1OU1xr4.js +0 -16
  18. package/dist/history-BlrA1eaW.js +0 -41
  19. package/dist/index-A65wkmws.js +0 -93
  20. package/dist/index-B8owg7PF.js +0 -137
  21. package/dist/index-B_LJRFsK.js +0 -339
  22. package/dist/index-BgIheStI.js +0 -133
  23. package/dist/index-BohoJQPr.js +0 -7631
  24. package/dist/index-BydWNuk5.js +0 -1229
  25. package/dist/index-C2hWv17T.js +0 -2700
  26. package/dist/index-C5Nw82Bf.js +0 -574
  27. package/dist/index-C815hPWS.js +0 -430
  28. package/dist/index-CUVdeb8y.js +0 -638
  29. package/dist/index-CbMBEWCm.js +0 -9567
  30. package/dist/index-CijskN6t.js +0 -316
  31. package/dist/index-CjgVCc9p.js +0 -2916
  32. package/dist/index-Cug0PuCW.js +0 -914
  33. package/dist/index-Cvx6rrxD.js +0 -956
  34. package/dist/index-Cwr5Slv1.js +0 -480
  35. package/dist/index-CxFAICql.js +0 -42050
  36. package/dist/index-DBPoQ7Ii.js +0 -178
  37. package/dist/index-DDEXNsNv.js +0 -118
  38. package/dist/index-DK70mOTz.js +0 -143
  39. package/dist/index-DT80Pwa_.js +0 -5893
  40. package/dist/index-DWsfQMp8.js +0 -208
  41. package/dist/index-DhDdFRHC.js +0 -279
  42. package/dist/index-DhrqKHcn.js +0 -1143
  43. package/dist/index-Dm3wmB0K.js +0 -435
  44. package/dist/index-DzS6-D3M.js +0 -1640
  45. package/dist/index-F4Apy30c.js +0 -242
  46. package/dist/index-FvoWeGEy.js +0 -112
  47. package/dist/index-cdB5K3gx.js +0 -814
  48. package/dist/index-nU-V276i.js +0 -170
  49. package/dist/index-uF04Ucsi.js +0 -8
  50. package/dist/index.js +0 -10
  51. package/dist/index.module-CAa-2T7m.js +0 -72
  52. package/dist/index.module-UI0iz8K0.js +0 -42
@@ -1,170 +0,0 @@
1
- import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
- import { f as z, r as T } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as D, h as U, s as F } from "./sso-user-ZUKv4XMX.js";
4
- import { CheckCircleFilled as W } from "@ant-design/icons";
5
- import { Result as B, Button as H, Spin as G } from "antd";
6
- import J from "query-string";
7
- import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
8
- import { useLocation as Q } from "react-router-dom";
9
- import { h as b } from "./history-BlrA1eaW.js";
10
- import { d as V, e as X } from "./api-CIhVblfa.js";
11
- import { u as s } from "./useAppStore-BBr_Fwsz.js";
12
- import { b as Y } from "./mobile-client-O3yr9h6t.js";
13
- import { s as Z } from "./send-default-agent-team-message-CfVaEN2y.js";
14
- function de() {
15
- const h = Q(), f = J.parse(h.search), c = String(
16
- f.scenarioCode ?? f.scenario_code ?? ""
17
- ).trim(), a = String(
18
- f.projectName ?? f.project_name ?? ""
19
- ).trim(), i = String(f.input ?? "").trim(), _ = s((e) => e.expandProject), g = s((e) => e.updateCurrentUser), [j, I] = d(!1), [w, y] = d(""), [M, p] = d("正在登录…"), [k, $] = d([]), C = K(!1), u = O((e, t) => {
20
- $((o) => [...o, e]), p(t);
21
- }, []), n = R(() => c ? a ? "" : "缺少参数 projectName" : "缺少参数 scenarioCode", [a, c]);
22
- E(() => {
23
- if (n)
24
- return;
25
- let e = !1, t = 0;
26
- const o = 100;
27
- let S = !1, P = 0;
28
- const A = 3;
29
- return (() => {
30
- if (e)
31
- return;
32
- const v = async () => {
33
- if (e)
34
- return;
35
- let l = D();
36
- if ((!l || !U(l)) && !S) {
37
- S = !0;
38
- try {
39
- const m = await z();
40
- m.kind === "authenticated" ? l = m.user : m.kind === "unauthenticated" && (P += 1);
41
- } catch {
42
- } finally {
43
- S = !1;
44
- }
45
- }
46
- if (l && U(l)) {
47
- g(F(l));
48
- const m = s.getState().token;
49
- try {
50
- const L = await X(m);
51
- e || g(L);
52
- } catch {
53
- !e && m && (localStorage.removeItem("z_team_token"), s.setState({ token: "" }));
54
- } finally {
55
- e || I(!0);
56
- }
57
- return;
58
- }
59
- if (P >= A) {
60
- T();
61
- return;
62
- }
63
- if (t += 1, t >= o) {
64
- T();
65
- return;
66
- }
67
- window.setTimeout(() => void v(), 150);
68
- };
69
- v();
70
- })(), () => {
71
- e = !0;
72
- };
73
- }, [n, g]);
74
- const q = (e) => new Promise((t) => {
75
- window.setTimeout(t, e);
76
- });
77
- E(() => {
78
- if (n) {
79
- y(n);
80
- return;
81
- }
82
- !j || C.current || (C.current = !0, (async () => {
83
- try {
84
- const e = s.getState().token;
85
- p("正在按场景创建工程…");
86
- const t = await V(
87
- {
88
- name: a,
89
- description: "",
90
- workspace_path: a,
91
- scenario_code: c
92
- },
93
- e
94
- );
95
- u("工程已创建", "正在打开协作区…"), p("正在同步工程列表…"), await _(t);
96
- const o = s.getState();
97
- o.currentProject && await o.refreshProjectPanels(
98
- String(o.currentProject.id),
99
- o.projectSwitchSeq,
100
- !1
101
- ), u(
102
- "协作区已就绪",
103
- i ? "正在发送协作消息…" : "即将进入工作台…"
104
- ), i && (await Z(
105
- t.id,
106
- i,
107
- e,
108
- s.getState().members
109
- ), await s.getState().loadMessages(), u("协作消息已发送", "即将进入工作台…")), p("即将进入工作台…"), await q(2e3), b.replace(
110
- Y({
111
- projectId: t.id,
112
- search: h.search
113
- })
114
- );
115
- } catch (e) {
116
- const t = e instanceof Error ? e.message : String(e);
117
- y(t || "创建工程失败");
118
- }
119
- })());
120
- }, [
121
- u,
122
- j,
123
- _,
124
- i,
125
- h.search,
126
- n,
127
- a,
128
- c
129
- ]);
130
- const N = R(() => {
131
- if (n)
132
- return "";
133
- const e = [`场景 ${c}`, `工程 ${a}`];
134
- return i && e.push("含首条协作消息"), e.join(" · ");
135
- }, [i, n, a, c]);
136
- return w ? /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ r(
137
- B,
138
- {
139
- status: "error",
140
- title: "无法创建工程",
141
- subTitle: w,
142
- extra: /* @__PURE__ */ r(
143
- H,
144
- {
145
- type: "primary",
146
- onClick: () => b.replace("/workspace"),
147
- children: "返回工作台"
148
- }
149
- )
150
- }
151
- ) }) : /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ x("div", { className: "from-scenario-page__panel", children: [
152
- /* @__PURE__ */ r(G, { size: "large" }),
153
- /* @__PURE__ */ r("p", { className: "from-scenario-page__step", children: M }),
154
- N ? /* @__PURE__ */ r("p", { className: "from-scenario-page__hint", children: N }) : null,
155
- k.length > 0 ? /* @__PURE__ */ r("ul", { className: "from-scenario-page__done-list", children: k.filter((e) => e.trim().length > 0).map((e, t) => /* @__PURE__ */ x(
156
- "li",
157
- {
158
- className: "from-scenario-page__done-item",
159
- children: [
160
- /* @__PURE__ */ r(W, { className: "from-scenario-page__done-icon" }),
161
- /* @__PURE__ */ r("span", { children: e })
162
- ]
163
- },
164
- `${t}-${e}`
165
- )) }) : null
166
- ] }) });
167
- }
168
- export {
169
- de as default
170
- };
@@ -1,8 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { C as r } from "./ChangeLogView-_bRZ55Yi.js";
3
- function n() {
4
- return /* @__PURE__ */ e(r, { variant: "page" });
5
- }
6
- export {
7
- n as default
8
- };
package/dist/index.js DELETED
@@ -1,10 +0,0 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-DHEiUymG.js";
2
- import { h as m } from "./history-BlrA1eaW.js";
3
- export {
4
- e as ComponentDocPage,
5
- s as ProjectApp,
6
- a as SubscribeApp,
7
- r as ZTeamApp,
8
- m as history,
9
- i as isTokenExpired
10
- };
@@ -1,72 +0,0 @@
1
- const c = "_hub_1scx0_1", o = "_header_1scx0_9", t = "_backBtn_1scx0_19", n = "_title_1scx0_35", e = "_bodySplit_1scx0_42", _ = "_spinWrapper_1scx0_55", a = "_columnsLayout_1scx0_70", s = "_catNav_1scx0_78", r = "_catNavTitle_1scx0_89", v = "_catItem_1scx0_97", l = "_catItemActive_1scx0_116", m = "_columnGridWrap_1scx0_122", d = "_catTag_1scx0_131", x = "_columnGrid_1scx0_122", u = "_columnCard_1scx0_149", i = "_columnCover_1scx0_163", p = "_columnCoverPlaceholder_1scx0_176", I = "_columnInfo_1scx0_182", G = "_columnDesc_1scx0_191", T = "_columnMeta_1scx0_200", C = "_latestUpdate_1scx0_204", A = "_latestTime_1scx0_214", N = "_deleteIcon_1scx0_229", b = "_columnActionsBar_1scx0_238", h = "_actionBtn_1scx0_245", g = "_actionBtnDanger_1scx0_263", y = "_ownerTag_1scx0_272", B = "_coverGrid_1scx0_279", D = "_coverCell_1scx0_284", U = "_coverItem_1scx0_287", k = "_coverNone_1scx0_301", L = "_coverUpload_1scx0_311", M = "_coverUploadIcon_1scx0_319", S = "_coverUploadingMask_1scx0_322", w = "_coverItemSelected_1scx0_330", O = "_coverName_1scx0_334", P = "_splitLayout_1scx0_346", W = "_articleNav_1scx0_354", f = "_navColumnDesc_1scx0_365", E = "_navGroup_1scx0_378", R = "_navToolbar_1scx0_382", $ = "_navAddGroup_1scx0_386", j = "_navGroupOps_1scx0_406", q = "_navGroupTitle_1scx0_415", z = "_navGroupIcon_1scx0_428", F = "_navGroupName_1scx0_433", H = "_navGroupCount_1scx0_440", J = "_navChapter_1scx0_447", K = "_navItem_1scx0_451", Q = "_navItemActive_1scx0_464", V = "_navTitle_1scx0_468", X = "_navItemRead_1scx0_472", Y = "_navIndex_1scx0_475", Z = "_readDot_1scx0_492", cc = "_navOps_1scx0_499", oc = "_navEmpty_1scx0_509", tc = "_readerPane_1scx0_513", nc = "_readerContent_1scx0_528", ec = "_tocAside_1scx0_534", _c = "_tocTitle_1scx0_545", ac = "_tocList_1scx0_554", sc = "_tocItem_1scx0_559", rc = "_tocSub_1scx0_576", vc = "_tocItemActive_1scx0_579", lc = "_readerTitle_1scx0_592", mc = "_readerMeta_1scx0_599", dc = "_markdown_1scx0_611", xc = {
2
- hub: c,
3
- header: o,
4
- backBtn: t,
5
- title: n,
6
- bodySplit: e,
7
- spinWrapper: _,
8
- columnsLayout: a,
9
- catNav: s,
10
- catNavTitle: r,
11
- catItem: v,
12
- catItemActive: l,
13
- columnGridWrap: m,
14
- catTag: d,
15
- columnGrid: x,
16
- columnCard: u,
17
- columnCover: i,
18
- columnCoverPlaceholder: p,
19
- columnInfo: I,
20
- columnDesc: G,
21
- columnMeta: T,
22
- latestUpdate: C,
23
- latestTime: A,
24
- deleteIcon: N,
25
- columnActionsBar: b,
26
- actionBtn: h,
27
- actionBtnDanger: g,
28
- ownerTag: y,
29
- coverGrid: B,
30
- coverCell: D,
31
- coverItem: U,
32
- coverNone: k,
33
- coverUpload: L,
34
- coverUploadIcon: M,
35
- coverUploadingMask: S,
36
- coverItemSelected: w,
37
- coverName: O,
38
- splitLayout: P,
39
- articleNav: W,
40
- navColumnDesc: f,
41
- navGroup: E,
42
- navToolbar: R,
43
- navAddGroup: $,
44
- navGroupOps: j,
45
- navGroupTitle: q,
46
- navGroupIcon: z,
47
- navGroupName: F,
48
- navGroupCount: H,
49
- navChapter: J,
50
- navItem: K,
51
- navItemActive: Q,
52
- navTitle: V,
53
- navItemRead: X,
54
- navIndex: Y,
55
- readDot: Z,
56
- navOps: cc,
57
- navEmpty: oc,
58
- readerPane: tc,
59
- readerContent: nc,
60
- tocAside: ec,
61
- tocTitle: _c,
62
- tocList: ac,
63
- tocItem: sc,
64
- tocSub: rc,
65
- tocItemActive: vc,
66
- readerTitle: lc,
67
- readerMeta: mc,
68
- markdown: dc
69
- };
70
- export {
71
- xc as h
72
- };
@@ -1,42 +0,0 @@
1
- const t = "_scenarioPage_1rtig_1", e = "_toolbar_1rtig_11", i = "_toolbarLeft_1rtig_22", o = "_pageTitle_1rtig_30", r = "_statInline_1rtig_39", _ = "_statChip_1rtig_47", n = "_statDivider_1rtig_53", s = "_pageActions_1rtig_60", a = "_tableCard_1rtig_68", c = "_tableWrap_1rtig_76", l = "_codeTag_1rtig_136", g = "_nameCell_1rtig_146", d = "_defaultBadge_1rtig_166", m = "_descCell_1rtig_180", p = "_mutedCell_1rtig_186", I = "_actionGroup_1rtig_190", f = "_emptyState_1rtig_203", y = "_emptyIcon_1rtig_212", b = "_emptyTitle_1rtig_225", C = "_emptyHint_1rtig_232", T = "_loadingWrap_1rtig_240", w = "_scenarioDrawerWrap_1rtig_266", u = "_section_1rtig_275", D = "_formRow_1rtig_279", R = "_formLabel_1rtig_283", S = "_formHint_1rtig_291", W = "_formRowPair_1rtig_298", v = "_sectionDivider_1rtig_307", A = "_listItemRow_1rtig_323", B = "_listItemIndex_1rtig_339", H = "_listItemBody_1rtig_354", L = "_listItemActions_1rtig_367", P = "_inlineFields_1rtig_375", x = "_dirTree_1rtig_395", h = "_dirNode_1rtig_401", F = "_dirTreeScroll_1rtig_411", G = "_readmeSection_1rtig_417", N = {
2
- scenarioPage: t,
3
- toolbar: e,
4
- toolbarLeft: i,
5
- pageTitle: o,
6
- statInline: r,
7
- statChip: _,
8
- statDivider: n,
9
- pageActions: s,
10
- tableCard: a,
11
- tableWrap: c,
12
- codeTag: l,
13
- nameCell: g,
14
- defaultBadge: d,
15
- descCell: m,
16
- mutedCell: p,
17
- actionGroup: I,
18
- emptyState: f,
19
- emptyIcon: y,
20
- emptyTitle: b,
21
- emptyHint: C,
22
- loadingWrap: T,
23
- scenarioDrawerWrap: w,
24
- section: u,
25
- formRow: D,
26
- formLabel: R,
27
- formHint: S,
28
- formRowPair: W,
29
- sectionDivider: v,
30
- listItemRow: A,
31
- listItemIndex: B,
32
- listItemBody: H,
33
- listItemActions: L,
34
- inlineFields: P,
35
- dirTree: x,
36
- dirNode: h,
37
- dirTreeScroll: F,
38
- readmeSection: G
39
- };
40
- export {
41
- N as s
42
- };