@yuku123/z-cognition-component 2.0.4 → 2.0.5
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.
- package/dist-lib/{BaseInput-rxw05EpT.js → BaseInput-BYGhTvYI.js} +16 -16
- package/dist-lib/{ClockCircleOutlined-DqK04lTb.js → ClockCircleOutlined-DACEazDR.js} +2 -2
- package/dist-lib/{Collapse-D9XOithE.js → Collapse-CZbXdmBX.js} +98 -98
- package/dist-lib/{DeleteOutlined-DnGmqa7C.js → DeleteOutlined-CtmAIIV3.js} +4 -4
- package/dist-lib/{EllipsisOutlined-VzQrhleP.js → EllipsisOutlined-pgnttbec.js} +73 -73
- package/dist-lib/{EyeOutlined-CIFgRd6d.js → EyeOutlined-WKo_SfEi.js} +4 -4
- package/dist-lib/{LeftOutlined-Be44-JWT.js → LeftOutlined-B79bB1ZG.js} +1 -1
- package/dist-lib/{Pagination-BuFXTevS.js → Pagination-CFhUxTf8.js} +32 -32
- package/dist-lib/{RotateRightOutlined-CYlCNRvD.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
- package/dist-lib/{Table-D1RvQXGM.js → Table-BF9fhMoT.js} +120 -120
- package/dist-lib/{accessAk-DlxcvD0O.js → accessAk-BKnWRdnG.js} +1 -1
- package/dist-lib/{agents-CabJdV6W.js → agents-B5wsLzS-.js} +6 -6
- package/dist-lib/{ai-DZ6fqUyK.js → ai-CccmxFWN.js} +1 -1
- package/dist-lib/{ai-chat-share-CYSU7UlK.js → ai-chat-share-BjZFvUph.js} +4 -4
- package/dist-lib/{ak-manage-MTp2UyyK.js → ak-manage-DD_F6560.js} +12 -12
- package/dist-lib/{approval-F9OYS1Ov.js → approval-a4d4zlUd.js} +3 -3
- package/dist-lib/{approvals-DDEl02-L.js → approvals-DnwdMEU5.js} +2 -2
- package/dist-lib/{assistant-CcC1rvys.js → assistant-BA6oeNSC.js} +5 -5
- package/dist-lib/{assistant-history-fmy8IsJL.js → assistant-history-Dfykk2a4.js} +5 -5
- package/dist-lib/{assistant-summary-kuK5-mku.js → assistant-summary-BkmSqskU.js} +1 -1
- package/dist-lib/{audit-C0GYByqU.js → audit-ZZhtw95x.js} +1 -1
- package/dist-lib/{bios-_axkM_DR.js → bios-CSjjJ5Bc.js} +11 -11
- package/dist-lib/{callSuper-CuPJalb0.js → callSuper-Bk-mj4By.js} +1 -1
- package/dist-lib/{category-BPLw60Ia.js → category-9CorlqP4.js} +1 -1
- package/dist-lib/{causal-CcWolsb5.js → causal-CYR-CTQK.js} +5 -5
- package/dist-lib/{changelog-BQdmpq5H.js → changelog-BcZ6KQ3C.js} +2 -2
- package/dist-lib/{changelog-DC6nlUDh.js → changelog-Bqm52V9T.js} +1 -1
- package/dist-lib/{chat-panel-CgpP4Xf5.js → chat-panel-Ctr_CdZu.js} +3 -3
- package/dist-lib/{code-space-CZ3CzVcA.js → code-space-DG83npvh.js} +9 -9
- package/dist-lib/{colors-BsFEfaVs.js → colors-DJzrNkCt.js} +1 -1
- package/dist-lib/{community-ESJc4qtl.js → community-CXEbdg7X.js} +1 -1
- package/dist-lib/{community-D9mD_Tq1.js → community-Cmx4qRHG.js} +3 -3
- package/dist-lib/{community-material-page-Ct5uMwhv.js → community-material-page-jguoD9kV.js} +7 -7
- package/dist-lib/{connections-DrxmCfe3.js → connections-DJAsz2Hb.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-3K1vcDqi.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
- package/dist-lib/{detail-kPAVlzm3.js → detail-BWBtDkWH.js} +4 -4
- package/dist-lib/{detail-DXOJf57e.js → detail-CLqCbf3i.js} +2 -2
- package/dist-lib/{detail-lGslEB8s.js → detail-DKLwIzyI.js} +14 -14
- package/dist-lib/{development-aLXXcLcF.js → development-DG37KZEV.js} +9 -9
- package/dist-lib/{downloads-DFOEFvX6.js → downloads-Cg8PCqDp.js} +1 -1
- package/dist-lib/{edit-BbtVK23D.js → edit-Cfv83zho.js} +77 -77
- package/dist-lib/{editor-DbLQFOUf.js → editor-BriqrlTB.js} +5 -5
- package/dist-lib/{editor-page-B_H0fRAI.js → editor-page-p2TQlJtq.js} +13 -13
- package/dist-lib/{embed-BUaR8PAn.js → embed-CoEyJMJx.js} +2235 -2219
- package/dist-lib/embed.css +1 -1
- package/dist-lib/{evaluation-8Tx-3UQh.js → evaluation-C6CAwoWp.js} +2 -2
- package/dist-lib/{execution-Dz5dBEFl.js → execution-BMkglxKG.js} +9 -9
- package/dist-lib/{graph-DacHEbKr.js → graph-DkaHV2AX.js} +5 -5
- package/dist-lib/{index-CS6H40rM.js → index-B21fkm-c.js} +21 -21
- package/dist-lib/{index-jHh-ITBK.js → index-B2Hx9Q2V.js} +40 -40
- package/dist-lib/{index-Ddx6XQu5.js → index-BMVRmc79.js} +2 -2
- package/dist-lib/{index-QkktEus5.js → index-BQnPPCKW.js} +9 -9
- package/dist-lib/{index-CjFA5T3K.js → index-BRyPjc2E.js} +1 -1
- package/dist-lib/{index-Bt9F-2Fl.js → index-BeejupFS.js} +64 -64
- package/dist-lib/{index-DTgboCiF.js → index-BelOhXK9.js} +10 -10
- package/dist-lib/{index-BWmgE7bB.js → index-Bqkx1OMz.js} +50 -50
- package/dist-lib/{index-CSoMwNHq.js → index-Bqpk0cSp.js} +54 -54
- package/dist-lib/{index-B6G8CZ1v.js → index-BqvwZwaa.js} +109 -109
- package/dist-lib/{index-keRQ37lH.js → index-BwkQzFNo.js} +4 -4
- package/dist-lib/{index-BU2GXuww.js → index-By7lJ7OM.js} +2 -2
- package/dist-lib/{index-IB3GOib9.js → index-C0bjp6yU.js} +23 -23
- package/dist-lib/{index-yPMzsLHL.js → index-C8VIE0cr.js} +4 -4
- package/dist-lib/{index-Di2bQwQn.js → index-CAk-RbBL.js} +2 -2
- package/dist-lib/{index-D23tZfhi.js → index-CFMm6EBU.js} +1 -1
- package/dist-lib/{index-DR9LGJpi.js → index-CkrD_v5E.js} +14 -14
- package/dist-lib/{index-DlqhOJnd.js → index-Ct0MiSE7.js} +79 -79
- package/dist-lib/{index-BDWjubAD.js → index-D1vltZIy.js} +58 -58
- package/dist-lib/{index-BMv3kGDG.js → index-DQ1YCU_6.js} +31 -31
- package/dist-lib/{index-GQGXGr9M.js → index-DQL0rlRD.js} +1 -1
- package/dist-lib/{index-BOB3j3H_.js → index-Dfpj76EP.js} +1 -1
- package/dist-lib/{index-BI-rknta.js → index-DljgNXFS.js} +29 -29
- package/dist-lib/{index-CdNxm2We.js → index-DrC19OH2.js} +14 -14
- package/dist-lib/{index-Be_iqVpx.js → index-DvdRKgvN.js} +68 -68
- package/dist-lib/{index-Bi7O9pQv.js → index-EoyTsMVR.js} +182 -182
- package/dist-lib/{index-fVCVIu8I.js → index-MN71_qSy.js} +2 -2
- package/dist-lib/{index-Bf8IQq4A.js → index-MrasjwT1.js} +18 -18
- package/dist-lib/{index-Pcxp_AYe.js → index-TVyOVj_f.js} +75 -75
- package/dist-lib/{index-BtW_nQBU.js → index-cWJDD_7e.js} +2 -2
- package/dist-lib/{index-BLGPH51v.js → index-fSzyAUm4.js} +10 -10
- package/dist-lib/{index-n6hK1r_G.js → index-gSQpnDVD.js} +3 -3
- package/dist-lib/{index-D7nLwQye.js → index-jfZsBNfr.js} +274 -274
- package/dist-lib/{index-qYfXuLnZ.js → index-lpiHPbbx.js} +2 -2
- package/dist-lib/{index-BuGHtvxH.js → index-ly9q05gX.js} +8 -8
- package/dist-lib/{index-CDxeB8C4.js → index-mANVYpNc.js} +16 -16
- package/dist-lib/{index-CNBwau86.js → index-o4EXX17N.js} +73 -73
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-Bu-gFb6c.js → json-field-BqyYVncd.js} +2 -2
- package/dist-lib/{kb-form-modal-DsXpXfNT.js → kb-form-modal-B9_s7HKJ.js} +2 -2
- package/dist-lib/{kbTeam-D8hsAHI5.js → kbTeam-D_xeQOnk.js} +1 -1
- package/dist-lib/{knowledge-base-D2XMD7iI.js → knowledge-base-BIlYHNX_.js} +6 -6
- package/dist-lib/{knowledge-hub-BoBR8-j-.js → knowledge-hub-DS9jz2ml.js} +4 -4
- package/dist-lib/{login-B4C374Y_.js → login-81vYOi7C.js} +6 -6
- package/dist-lib/{markdown-lite-ROKlyMXg.js → markdown-lite-C0TxiY46.js} +35 -35
- package/dist-lib/{material-CqtPqoZj.js → material-0d6ENLyU.js} +1 -1
- package/dist-lib/{material-draft-markdown-BKlKt3pc.js → material-draft-markdown-BqqPZtbw.js} +2 -2
- package/dist-lib/{material-original-preview-pzANkVK5.js → material-original-preview-BDeVDdfb.js} +5 -5
- package/dist-lib/{material-workspace-model-BUpogooV.js → material-workspace-model-DPaWrRpo.js} +1 -1
- package/dist-lib/{member-CCTFfLDC.js → member-Dc8Fi9Yt.js} +1 -1
- package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
- package/dist-lib/{memory-spaces-CZGIBlz2.js → memory-spaces-BJp4AIUb.js} +19 -19
- package/dist-lib/{message-Rz7LvGMk.js → message-C6yBkCNm.js} +1 -1
- package/dist-lib/{message-Chq3cAdy.js → message-DPeo_cTR.js} +3 -3
- package/dist-lib/{messages-DciGawgR.js → messages-DdfLmuQI.js} +2 -2
- package/dist-lib/{meta-BWgVxZgd.js → meta-CBLO5qXw.js} +2 -2
- package/dist-lib/{metrics-iWreq4IL.js → metrics-7ptCjiKn.js} +2 -2
- package/dist-lib/{mobile-CNrK04Ak.js → mobile-DC0hcQji.js} +2 -2
- package/dist-lib/{monitor-BpUJZCht.js → monitor-DX1u-yHi.js} +3 -3
- package/dist-lib/{monitor-CaTKbDI1.js → monitor-DoWMKmYn.js} +3 -3
- package/dist-lib/{my-access-ZH5CWVGF.js → my-access-64Rn1HXY.js} +3 -3
- package/dist-lib/{my-permissions-edhi0lav.js → my-permissions-DKjDBIjY.js} +4 -4
- package/dist-lib/{navigation-2WdPUP2T.js → navigation-B_vBrx_f.js} +1 -1
- package/dist-lib/{new-Dq6mvU2w.js → new-D3Q8_hzT.js} +5 -5
- package/dist-lib/{ontology-BX6X1X2J.js → ontology-Ct7a7W50.js} +5 -5
- package/dist-lib/{ontology-dataprep-BjMnFRBG.js → ontology-dataprep-DhZWKCnw.js} +1 -1
- package/dist-lib/{ontology-domains-B7AuwW8S.js → ontology-domains-BG6ZPWXm.js} +57 -57
- package/dist-lib/{ontology-extract-wbvBwGZO.js → ontology-extract-53pAcKaP.js} +22 -22
- package/dist-lib/{ontology-extract-FpJ6K8z6.js → ontology-extract-D9RViy3r.js} +1 -1
- package/dist-lib/{ontology-flow-Cgi8Fk-i.js → ontology-flow-Dx_5Dv1S.js} +3 -3
- package/dist-lib/{ontology-flow-CJsIvS35.js → ontology-flow-cbGY8kOV.js} +6 -6
- package/dist-lib/{ontology-modeling-CeDS1-FE.js → ontology-modeling-9beSFK8t.js} +2 -2
- package/dist-lib/{ontology-modeling-C_6GvHBT.js → ontology-modeling-BkFq7sU1.js} +33 -33
- package/dist-lib/{ontology-scenarios-4Ar7Y8Kt.js → ontology-scenarios-ANZMjyMB.js} +11 -11
- package/dist-lib/{ontology-scenarios-BaYN82pv.js → ontology-scenarios-BC1UBvtT.js} +85 -85
- package/dist-lib/{ontology-task-config-CDt7NdIq.js → ontology-task-config-dDFRrWtJ.js} +1 -1
- package/dist-lib/{ontology-terms-CxTp2Dcq.js → ontology-terms-B9H9VcuR.js} +18 -18
- package/dist-lib/{ontology-terms-CnFarWZX.js → ontology-terms-BcXCuUsy.js} +1 -1
- package/dist-lib/{permission-CNqwhyF3.js → permission-pETAJZl6.js} +2 -2
- package/dist-lib/{preset-CfByvcqu.js → preset-5F2VcdUE.js} +3 -3
- package/dist-lib/{progress-ImhDvynO.js → progress-COKT887h.js} +31 -31
- package/dist-lib/{quota-B38BWyPo.js → quota-BzWY9oeV.js} +2 -2
- package/dist-lib/{row-DeVE0t_N.js → row-BFBgIphS.js} +2 -2
- package/dist-lib/{runs-ILSUwEOv.js → runs-7LWS6iAN.js} +6 -6
- package/dist-lib/{save-blob-C5BbV45B.js → save-blob-D_q2LunT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-7v1SRE7V.js → scenario-mapping-preview-CDg3_f0U.js} +17 -17
- package/dist-lib/{scenario-simple-form-mFm6f2ho.js → scenario-simple-form--KSAzRS6.js} +9 -9
- package/dist-lib/{schedule-DzB9rZrm.js → schedule-BDrhhUsA.js} +2 -2
- package/dist-lib/{script-CKdVDsYh.js → script-CtLQ-RSy.js} +14 -14
- package/dist-lib/{settings-CaihqQtz.js → settings--NTE0Hux.js} +8 -8
- package/dist-lib/{shared-B51Q5536.js → shared-BJA7rkgy.js} +1 -1
- package/dist-lib/{shared-utils-Ck5sql2m.js → shared-utils-E5RBBDWx.js} +2 -2
- package/dist-lib/{skills-By3A0Dc1.js → skills-IziqBZOm.js} +5 -5
- package/dist-lib/{source-selection-sIKyG7xR.js → source-selection-WsUOEBKN.js} +1 -1
- package/dist-lib/{sources-DvIMColY.js → sources-D7ViKZtA.js} +12 -12
- package/dist-lib/{style-BHQZmWlH.js → style-B7phAB4-.js} +4 -4
- package/dist-lib/{task-config-CoPFj_FN.js → task-config-BhVD-uNg.js} +3 -3
- package/dist-lib/{tech-BJgEEFrT.js → tech-C2bOwBWk.js} +1 -1
- package/dist-lib/{templates-CODaf2QI.js → templates-Bh3ryZxt.js} +6 -6
- package/dist-lib/{tenant-login-DmN4qfah.js → tenant-login-D3193dIQ.js} +24 -24
- package/dist-lib/{tools-CyRz1Ofg.js → tools-DCLdtvbE.js} +56 -56
- package/dist-lib/{use-current-tenant-otPCQ3X8.js → use-current-tenant-KGbU5HpT.js} +1 -1
- package/dist-lib/{use-domain-access-BuD99GTw.js → use-domain-access-CcPd_gzX.js} +1 -1
- package/dist-lib/{use-g6-graph-C5h9frJM.js → use-g6-graph-CPKL_pXo.js} +1 -1
- package/dist-lib/{use-graph-layers-Cbd3Jggb.js → use-graph-layers-Bi90s60B.js} +9 -9
- package/dist-lib/{useBreakpoint-B8dF3ifo.js → useBreakpoint-SG_cMfLJ.js} +6 -6
- package/dist-lib/{useForm-BZkiMeaN.js → useForm-Cp45oXOc.js} +13 -13
- package/dist-lib/{version-control-panel-HdMlbpbO.js → version-control-panel-Db_RP6gX.js} +1 -1
- package/dist-lib/{version-management-BYoxw4GV.js → version-management-DuCdU_fJ.js} +2 -2
- package/dist-lib/{welcome-CMNXQf8J.js → welcome-DLcdZGtl.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/memory-reorganization-CBTDCRhV.js +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import { u as Ie, a as ze, q as Se, I as n, U as Ae, j as Le } from "./embed-
|
|
3
|
-
import { M as He } from "./markdown-lite-
|
|
2
|
+
import { u as Ie, a as ze, q as Se, I as n, U as Ae, j as Le } from "./embed-CoEyJMJx.js";
|
|
3
|
+
import { M as He } from "./markdown-lite-C0TxiY46.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { useRef as w, useState as i, useEffect as C, useCallback as ee } from "react";
|
|
6
|
-
import { u as Ke, a as xe, d as I, t as ae, s as Te, b as te, c as Re, C as Oe } from "./assistant-history-
|
|
7
|
-
import { l as se, a as ne, d as De, r as Me } from "./ai-
|
|
6
|
+
import { u as Ke, a as xe, d as I, t as ae, s as Te, b as te, c as Re, C as Oe } from "./assistant-history-Dfykk2a4.js";
|
|
7
|
+
import { l as se, a as ne, d as De, r as Me } from "./ai-CccmxFWN.js";
|
|
8
8
|
import { u as qe } from "./use-split-width-SsLqbGjr.js";
|
|
9
9
|
const M = "kb_hub_assistant", Ee = [
|
|
10
10
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a, jsxs as u, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useEffect as g } from "react";
|
|
3
|
-
import { r as h, s as b, a as w, L } from "./navigation-
|
|
4
|
-
import {
|
|
5
|
-
import { A as
|
|
3
|
+
import { r as h, s as b, a as w, L } from "./navigation-B_vBrx_f.js";
|
|
4
|
+
import { ay as v, Z as x, di as S, B as y, S as C } from "./embed-CoEyJMJx.js";
|
|
5
|
+
import { A as U } from "./index-C0bjp6yU.js";
|
|
6
6
|
function P() {
|
|
7
7
|
const r = v(), [t, o] = c("probing"), [d, l] = c(), [p, f] = c(0), s = h(r.search, r.state), i = new URLSearchParams(r.search).get("apex") === "1";
|
|
8
8
|
return g(() => {
|
|
@@ -22,12 +22,12 @@ function P() {
|
|
|
22
22
|
window.location.assign(`${w().loginUrl}?redirect=${encodeURIComponent(e)}`);
|
|
23
23
|
}
|
|
24
24
|
}, [t, i, s]), t === "unauthenticated" && !i ? /* @__PURE__ */ a(S, { to: `/login/tenant${r.search}`, state: r.state, replace: !0 }) : /* @__PURE__ */ a(L, { children: t === "error" ? /* @__PURE__ */ u(m, { children: [
|
|
25
|
-
/* @__PURE__ */ a(
|
|
26
|
-
/* @__PURE__ */ a(
|
|
25
|
+
/* @__PURE__ */ a(U, { className: "future-brain-tenant-login-alert", type: "error", showIcon: !0, message: d || "登录状态校验失败" }),
|
|
26
|
+
/* @__PURE__ */ a(y, { size: "large", block: !0, onClick: () => {
|
|
27
27
|
o("probing"), l(void 0), f((e) => e + 1);
|
|
28
28
|
}, children: "重试" })
|
|
29
29
|
] }) : /* @__PURE__ */ u("div", { className: "future-brain-login-pending", role: "status", children: [
|
|
30
|
-
/* @__PURE__ */ a(
|
|
30
|
+
/* @__PURE__ */ a(C, { size: "large" }),
|
|
31
31
|
/* @__PURE__ */ a("span", { children: t === "probing" ? "正在校验登录状态…" : "正在跳转…" })
|
|
32
32
|
] }) });
|
|
33
33
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as I, jsxs as st } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import Ce, { useContext as qe, useRef as ye, useState as pe, useEffect as Ne, useMemo as tt, Fragment as Nt } from "react";
|
|
4
|
-
import { a5 as oe,
|
|
5
|
-
import { R as Ht } from "./EyeOutlined-
|
|
4
|
+
import { a5 as oe, bn as ce, az as Rt, cH as Et, bj as P, bI as He, bl as W, by as Ot, am as Mt, cI as $t, bk as Re, b4 as ie, cJ as Pt, as as Tt, bi as lt, bm as Ve, b3 as ze, a6 as _t, a7 as nt, bL as be, cK as kt, cL as Lt, cd as zt, af as At, ac as ct, aG as jt, a8 as Dt, aM as ut, cn as dt, ce as ke, ah as Yt, aj as Xt, b5 as Wt, I as Zt } from "./embed-CoEyJMJx.js";
|
|
5
|
+
import { R as Ht } from "./EyeOutlined-WKo_SfEi.js";
|
|
6
6
|
import { a as Se } from "./addEventListener-Dkqq5HCC.js";
|
|
7
|
-
import { a as
|
|
8
|
-
import { R as
|
|
7
|
+
import { a as Fe, R as Be } from "./LeftOutlined-B79bB1ZG.js";
|
|
8
|
+
import { R as Vt } from "./RotateRightOutlined-TrlUrEUZ.js";
|
|
9
9
|
function ft() {
|
|
10
10
|
var t = document.documentElement.clientWidth, e = window.innerHeight || document.documentElement.clientHeight;
|
|
11
11
|
return {
|
|
@@ -13,7 +13,7 @@ function ft() {
|
|
|
13
13
|
height: e
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ft(t) {
|
|
17
17
|
var e = t.getBoundingClientRect(), n = document.documentElement;
|
|
18
18
|
return {
|
|
19
19
|
left: e.left + (window.pageXOffset || n.scrollLeft) - (n.clientLeft || document.body.clientLeft || 0),
|
|
@@ -21,7 +21,7 @@ function Vt(t) {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
var Ee = /* @__PURE__ */ d.createContext(null), Bt = function(e) {
|
|
24
|
-
var n = e.visible, o = e.maskTransitionName, r = e.getContainer, a = e.prefixCls, s = e.rootClassName, l = e.icons, i = e.countRender, f = e.showSwitch, u = e.showProgress, c = e.current, g = e.transform, h = e.count, w = e.scale, m = e.minScale, p = e.maxScale, b = e.closeIcon, N = e.onActive, O = e.onClose, M = e.onZoomIn, v = e.onZoomOut, y = e.onRotateRight, x = e.onRotateLeft, C = e.onFlipX, R = e.onFlipY, E = e.onReset, S = e.toolbarRender, $ = e.zIndex, _ = e.image, T = qe(Ee), j = l.rotateLeft, Y = l.rotateRight, H = l.zoomIn, B = l.zoomOut, Q = l.close,
|
|
24
|
+
var n = e.visible, o = e.maskTransitionName, r = e.getContainer, a = e.prefixCls, s = e.rootClassName, l = e.icons, i = e.countRender, f = e.showSwitch, u = e.showProgress, c = e.current, g = e.transform, h = e.count, w = e.scale, m = e.minScale, p = e.maxScale, b = e.closeIcon, N = e.onActive, O = e.onClose, M = e.onZoomIn, v = e.onZoomOut, y = e.onRotateRight, x = e.onRotateLeft, C = e.onFlipX, R = e.onFlipY, E = e.onReset, S = e.toolbarRender, $ = e.zIndex, _ = e.image, T = qe(Ee), j = l.rotateLeft, Y = l.rotateRight, H = l.zoomIn, B = l.zoomOut, Q = l.close, F = l.left, U = l.right, J = l.flipX, G = l.flipY, se = "".concat(a, "-operations-operation");
|
|
25
25
|
d.useEffect(function() {
|
|
26
26
|
var L = function(A) {
|
|
27
27
|
A.keyCode === He.ESC && O();
|
|
@@ -33,14 +33,14 @@ var Ee = /* @__PURE__ */ d.createContext(null), Bt = function(e) {
|
|
|
33
33
|
var ee = function(z, A) {
|
|
34
34
|
z.preventDefault(), z.stopPropagation(), N(A);
|
|
35
35
|
}, D = d.useCallback(function(L) {
|
|
36
|
-
var z = L.type, A = L.disabled,
|
|
36
|
+
var z = L.type, A = L.disabled, V = L.onClick, X = L.icon;
|
|
37
37
|
return /* @__PURE__ */ d.createElement("div", {
|
|
38
38
|
key: z,
|
|
39
39
|
className: oe(se, "".concat(a, "-operations-operation-").concat(z), ce({}, "".concat(a, "-operations-operation-disabled"), !!A)),
|
|
40
|
-
onClick:
|
|
40
|
+
onClick: V
|
|
41
41
|
}, X);
|
|
42
42
|
}, [se, a]), le = f ? D({
|
|
43
|
-
icon:
|
|
43
|
+
icon: F,
|
|
44
44
|
onClick: function(z) {
|
|
45
45
|
return ee(z, -1);
|
|
46
46
|
},
|
|
@@ -103,7 +103,7 @@ var Ee = /* @__PURE__ */ d.createContext(null), Bt = function(e) {
|
|
|
103
103
|
onClick: function(X) {
|
|
104
104
|
return ee(X, -1);
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, F), /* @__PURE__ */ d.createElement("div", {
|
|
107
107
|
className: oe("".concat(a, "-switch-right"), ce({}, "".concat(a, "-switch-right-disabled"), c === h - 1)),
|
|
108
108
|
onClick: function(X) {
|
|
109
109
|
return ee(X, 1);
|
|
@@ -171,14 +171,14 @@ function Ut(t, e, n, o) {
|
|
|
171
171
|
}, g = function(w, m, p, b, N) {
|
|
172
172
|
var O = t.current, M = O.width, v = O.height, y = O.offsetWidth, x = O.offsetHeight, C = O.offsetLeft, R = O.offsetTop, E = w, S = i.scale * w;
|
|
173
173
|
S > n ? (S = n, E = n / i.scale) : S < e && (S = N ? S : e, E = S / i.scale);
|
|
174
|
-
var $ = p ?? innerWidth / 2, _ = b ?? innerHeight / 2, T = E - 1, j = T * M * 0.5, Y = T * v * 0.5, H = T * ($ - i.x - C), B = T * (_ - i.y - R), Q = i.x - (H - j),
|
|
174
|
+
var $ = p ?? innerWidth / 2, _ = b ?? innerHeight / 2, T = E - 1, j = T * M * 0.5, Y = T * v * 0.5, H = T * ($ - i.x - C), B = T * (_ - i.y - R), Q = i.x - (H - j), F = i.y - (B - Y);
|
|
175
175
|
if (w < 1 && S === 1) {
|
|
176
176
|
var U = y * S, J = x * S, G = ft(), se = G.width, ee = G.height;
|
|
177
|
-
U <= se && J <= ee && (Q = 0,
|
|
177
|
+
U <= se && J <= ee && (Q = 0, F = 0);
|
|
178
178
|
}
|
|
179
179
|
c({
|
|
180
180
|
x: Q,
|
|
181
|
-
y:
|
|
181
|
+
y: F,
|
|
182
182
|
scale: S
|
|
183
183
|
}, m);
|
|
184
184
|
};
|
|
@@ -409,7 +409,7 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
|
|
|
409
409
|
}
|
|
410
410
|
}, a, f));
|
|
411
411
|
}, gt = function(e) {
|
|
412
|
-
var n = e.prefixCls, o = e.src, r = e.alt, a = e.imageInfo, s = e.fallback, l = e.movable, i = l === void 0 ? !0 : l, f = e.onClose, u = e.visible, c = e.icons, g = c === void 0 ? {} : c, h = e.rootClassName, w = e.closeIcon, m = e.getContainer, p = e.current, b = p === void 0 ? 0 : p, N = e.count, O = N === void 0 ? 1 : N, M = e.countRender, v = e.scaleStep, y = v === void 0 ? 0.5 : v, x = e.minScale, C = x === void 0 ? 1 : x, R = e.maxScale, E = R === void 0 ? 50 : R, S = e.transitionName, $ = S === void 0 ? "zoom" : S, _ = e.maskTransitionName, T = _ === void 0 ? "fade" : _, j = e.imageRender, Y = e.imgCommonProps, H = e.toolbarRender, B = e.onTransform, Q = e.onChange,
|
|
412
|
+
var n = e.prefixCls, o = e.src, r = e.alt, a = e.imageInfo, s = e.fallback, l = e.movable, i = l === void 0 ? !0 : l, f = e.onClose, u = e.visible, c = e.icons, g = c === void 0 ? {} : c, h = e.rootClassName, w = e.closeIcon, m = e.getContainer, p = e.current, b = p === void 0 ? 0 : p, N = e.count, O = N === void 0 ? 1 : N, M = e.countRender, v = e.scaleStep, y = v === void 0 ? 0.5 : v, x = e.minScale, C = x === void 0 ? 1 : x, R = e.maxScale, E = R === void 0 ? 50 : R, S = e.transitionName, $ = S === void 0 ? "zoom" : S, _ = e.maskTransitionName, T = _ === void 0 ? "fade" : _, j = e.imageRender, Y = e.imgCommonProps, H = e.toolbarRender, B = e.onTransform, Q = e.onChange, F = Re(e, tn), U = ye(), J = qe(Ee), G = J && O > 1, se = J && O >= 1, ee = pe(!0), D = W(ee, 2), le = D[0], te = D[1], K = Ut(U, C, E, B), k = K.transform, re = K.resetTransform, Z = K.updateTransform, q = K.dispatchZoomChange, ae = Kt(U, i, u, y, k, Z, q), ue = ae.isMoving, L = ae.onMouseDown, z = ae.onWheel, A = Jt(U, i, u, C, k, Z, q), V = A.isTouching, X = A.onTouchStart, me = A.onTouchMove, we = A.onTouchEnd, de = k.rotate, fe = k.scale, De = oe(ce({}, "".concat(n, "-moving"), ue));
|
|
413
413
|
Ne(function() {
|
|
414
414
|
le || te(!0);
|
|
415
415
|
}, [le]);
|
|
@@ -463,7 +463,7 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
|
|
|
463
463
|
alt: r,
|
|
464
464
|
style: {
|
|
465
465
|
transform: "translate3d(".concat(k.x, "px, ").concat(k.y, "px, 0) scale3d(").concat(k.flipX ? "-" : "").concat(fe, ", ").concat(k.flipY ? "-" : "").concat(fe, ", 1) rotate(").concat(de, "deg)"),
|
|
466
|
-
transitionDuration: (!le ||
|
|
466
|
+
transitionDuration: (!le || V) && "0s"
|
|
467
467
|
},
|
|
468
468
|
fallback: s,
|
|
469
469
|
src: o,
|
|
@@ -491,7 +491,7 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
|
|
|
491
491
|
},
|
|
492
492
|
rootClassName: h,
|
|
493
493
|
getContainer: m
|
|
494
|
-
},
|
|
494
|
+
}, F, {
|
|
495
495
|
afterClose: Ye
|
|
496
496
|
}), /* @__PURE__ */ Ce.createElement("div", {
|
|
497
497
|
className: "".concat(n, "-img-wrapper")
|
|
@@ -527,7 +527,7 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
|
|
|
527
527
|
onFlipY: $e,
|
|
528
528
|
onClose: f,
|
|
529
529
|
onReset: xt,
|
|
530
|
-
zIndex:
|
|
530
|
+
zIndex: F.zIndex !== void 0 ? F.zIndex + 1 : void 0,
|
|
531
531
|
image: et
|
|
532
532
|
}));
|
|
533
533
|
}, Ue = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"];
|
|
@@ -566,16 +566,16 @@ function on(t) {
|
|
|
566
566
|
return [s, a, !!t];
|
|
567
567
|
}
|
|
568
568
|
var rn = ["visible", "onVisibleChange", "getContainer", "current", "movable", "minScale", "maxScale", "countRender", "closeIcon", "onChange", "onTransform", "toolbarRender", "imageRender"], an = ["src"], sn = function(e) {
|
|
569
|
-
var n, o = e.previewPrefixCls, r = o === void 0 ? "rc-image-preview" : o, a = e.children, s = e.icons, l = s === void 0 ? {} : s, i = e.items, f = e.preview, u = e.fallback, c = lt(f) === "object" ? f : {}, g = c.visible, h = c.onVisibleChange, w = c.getContainer, m = c.current, p = c.movable, b = c.minScale, N = c.maxScale, O = c.countRender, M = c.closeIcon, v = c.onChange, y = c.onTransform, x = c.toolbarRender, C = c.imageRender, R = Re(c, rn), E = on(i), S = W(E, 3), $ = S[0], _ = S[1], T = S[2], j =
|
|
569
|
+
var n, o = e.previewPrefixCls, r = o === void 0 ? "rc-image-preview" : o, a = e.children, s = e.icons, l = s === void 0 ? {} : s, i = e.items, f = e.preview, u = e.fallback, c = lt(f) === "object" ? f : {}, g = c.visible, h = c.onVisibleChange, w = c.getContainer, m = c.current, p = c.movable, b = c.minScale, N = c.maxScale, O = c.countRender, M = c.closeIcon, v = c.onChange, y = c.onTransform, x = c.toolbarRender, C = c.imageRender, R = Re(c, rn), E = on(i), S = W(E, 3), $ = S[0], _ = S[1], T = S[2], j = Ve(0, {
|
|
570
570
|
value: m
|
|
571
|
-
}), Y = W(j, 2), H = Y[0], B = Y[1], Q = pe(!1),
|
|
571
|
+
}), Y = W(j, 2), H = Y[0], B = Y[1], Q = pe(!1), F = W(Q, 2), U = F[0], J = F[1], G = ((n = $[H]) === null || n === void 0 ? void 0 : n.data) || {}, se = G.src, ee = Re(G, an), D = Ve(!!g, {
|
|
572
572
|
value: g,
|
|
573
|
-
onChange: function(
|
|
574
|
-
h == null || h(
|
|
573
|
+
onChange: function(V, X) {
|
|
574
|
+
h == null || h(V, X, H);
|
|
575
575
|
}
|
|
576
|
-
}), le = W(D, 2), te = le[0], K = le[1], k = pe(null), re = W(k, 2), Z = re[0], q = re[1], ae = d.useCallback(function(A,
|
|
576
|
+
}), le = W(D, 2), te = le[0], K = le[1], k = pe(null), re = W(k, 2), Z = re[0], q = re[1], ae = d.useCallback(function(A, V, X, me) {
|
|
577
577
|
var we = T ? $.findIndex(function(de) {
|
|
578
|
-
return de.data.src ===
|
|
578
|
+
return de.data.src === V;
|
|
579
579
|
}) : $.findIndex(function(de) {
|
|
580
580
|
return de.id === A;
|
|
581
581
|
});
|
|
@@ -587,8 +587,8 @@ var rn = ["visible", "onVisibleChange", "getContainer", "current", "movable", "m
|
|
|
587
587
|
d.useEffect(function() {
|
|
588
588
|
te ? U || B(0) : J(!1);
|
|
589
589
|
}, [te]);
|
|
590
|
-
var ue = function(
|
|
591
|
-
B(
|
|
590
|
+
var ue = function(V, X) {
|
|
591
|
+
B(V), v == null || v(V, X);
|
|
592
592
|
}, L = function() {
|
|
593
593
|
K(!1), q(null);
|
|
594
594
|
}, z = d.useMemo(function() {
|
|
@@ -638,15 +638,15 @@ function ln(t, e) {
|
|
|
638
638
|
}, [t, e]), r;
|
|
639
639
|
}
|
|
640
640
|
var cn = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "placeholder", "fallback", "width", "height", "style", "preview", "className", "onClick", "onError", "wrapperClassName", "wrapperStyle", "rootClassName"], un = ["src", "visible", "onVisibleChange", "getContainer", "mask", "maskClassName", "movable", "icons", "scaleStep", "minScale", "maxScale", "imageRender", "toolbarRender"], Ae = function(e) {
|
|
641
|
-
var n = e.src, o = e.alt, r = e.onPreviewClose, a = e.prefixCls, s = a === void 0 ? "rc-image" : a, l = e.previewPrefixCls, i = l === void 0 ? "".concat(s, "-preview") : l, f = e.placeholder, u = e.fallback, c = e.width, g = e.height, h = e.style, w = e.preview, m = w === void 0 ? !0 : w, p = e.className, b = e.onClick, N = e.onError, O = e.wrapperClassName, M = e.wrapperStyle, v = e.rootClassName, y = Re(e, cn), x = f && f !== !0, C = lt(m) === "object" ? m : {}, R = C.src, E = C.visible, S = E === void 0 ? void 0 : E, $ = C.onVisibleChange, _ = $ === void 0 ? r : $, T = C.getContainer, j = T === void 0 ? void 0 : T, Y = C.mask, H = C.maskClassName, B = C.movable, Q = C.icons,
|
|
641
|
+
var n = e.src, o = e.alt, r = e.onPreviewClose, a = e.prefixCls, s = a === void 0 ? "rc-image" : a, l = e.previewPrefixCls, i = l === void 0 ? "".concat(s, "-preview") : l, f = e.placeholder, u = e.fallback, c = e.width, g = e.height, h = e.style, w = e.preview, m = w === void 0 ? !0 : w, p = e.className, b = e.onClick, N = e.onError, O = e.wrapperClassName, M = e.wrapperStyle, v = e.rootClassName, y = Re(e, cn), x = f && f !== !0, C = lt(m) === "object" ? m : {}, R = C.src, E = C.visible, S = E === void 0 ? void 0 : E, $ = C.onVisibleChange, _ = $ === void 0 ? r : $, T = C.getContainer, j = T === void 0 ? void 0 : T, Y = C.mask, H = C.maskClassName, B = C.movable, Q = C.icons, F = C.scaleStep, U = C.minScale, J = C.maxScale, G = C.imageRender, se = C.toolbarRender, ee = Re(C, un), D = R ?? n, le = Ve(!!S, {
|
|
642
642
|
value: S,
|
|
643
643
|
onChange: _
|
|
644
644
|
}), te = W(le, 2), K = te[0], k = te[1], re = vt({
|
|
645
645
|
src: n,
|
|
646
646
|
isCustomPlaceholder: x,
|
|
647
647
|
fallback: u
|
|
648
|
-
}), Z = W(re, 3), q = Z[0], ae = Z[1], ue = Z[2], L = pe(null), z = W(L, 2), A = z[0],
|
|
649
|
-
k(!1),
|
|
648
|
+
}), Z = W(re, 3), q = Z[0], ae = Z[1], ue = Z[2], L = pe(null), z = W(L, 2), A = z[0], V = z[1], X = qe(Ee), me = !!m, we = function() {
|
|
649
|
+
k(!1), V(null);
|
|
650
650
|
}, de = oe(s, O, v, ce({}, "".concat(s, "-error"), ue === "error")), fe = tt(function() {
|
|
651
651
|
var ve = {};
|
|
652
652
|
return Ue.forEach(function(ge) {
|
|
@@ -659,8 +659,8 @@ var cn = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "plac
|
|
|
659
659
|
src: D
|
|
660
660
|
});
|
|
661
661
|
}, [D, fe]), Ye = ln(me, De), Xe = function(ge) {
|
|
662
|
-
var Oe =
|
|
663
|
-
X ? X.onPreview(Ye, D, Me, $e) : (
|
|
662
|
+
var Oe = Ft(ge.target), Me = Oe.left, $e = Oe.top;
|
|
663
|
+
X ? X.onPreview(Ye, D, Me, $e) : (V({
|
|
664
664
|
x: Me,
|
|
665
665
|
y: $e
|
|
666
666
|
}), k(!0)), b == null || b(ge);
|
|
@@ -706,7 +706,7 @@ var cn = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "plac
|
|
|
706
706
|
getContainer: j,
|
|
707
707
|
icons: Q,
|
|
708
708
|
movable: B,
|
|
709
|
-
scaleStep:
|
|
709
|
+
scaleStep: F,
|
|
710
710
|
minScale: U,
|
|
711
711
|
maxScale: J,
|
|
712
712
|
rootClassName: v,
|
|
@@ -1047,12 +1047,12 @@ var Rn = function(t, e) {
|
|
|
1047
1047
|
};
|
|
1048
1048
|
const bt = {
|
|
1049
1049
|
rotateLeft: /* @__PURE__ */ d.createElement(ht, null),
|
|
1050
|
-
rotateRight: /* @__PURE__ */ d.createElement(
|
|
1050
|
+
rotateRight: /* @__PURE__ */ d.createElement(Vt, null),
|
|
1051
1051
|
zoomIn: /* @__PURE__ */ d.createElement(pt, null),
|
|
1052
1052
|
zoomOut: /* @__PURE__ */ d.createElement(wt, null),
|
|
1053
1053
|
close: /* @__PURE__ */ d.createElement(jt, null),
|
|
1054
1054
|
left: /* @__PURE__ */ d.createElement(Be, null),
|
|
1055
|
-
right: /* @__PURE__ */ d.createElement(
|
|
1055
|
+
right: /* @__PURE__ */ d.createElement(Fe, null),
|
|
1056
1056
|
flipX: /* @__PURE__ */ d.createElement(Ge, null),
|
|
1057
1057
|
flipY: /* @__PURE__ */ d.createElement(Ge, {
|
|
1058
1058
|
rotate: 90
|
|
@@ -1066,8 +1066,8 @@ const bt = {
|
|
|
1066
1066
|
getPrefixCls: r,
|
|
1067
1067
|
direction: a
|
|
1068
1068
|
} = d.useContext(Dt), s = r("image", e), l = `${s}-preview`, i = r(), f = ut(s), [u, c, g] = Ct(s, f), [h] = dt("ImagePreview", typeof n == "object" ? n.zIndex : void 0), w = d.useMemo(() => Object.assign(Object.assign({}, bt), {
|
|
1069
|
-
left: a === "rtl" ? /* @__PURE__ */ d.createElement(
|
|
1070
|
-
right: a === "rtl" ? /* @__PURE__ */ d.createElement(Be, null) : /* @__PURE__ */ d.createElement(
|
|
1069
|
+
left: a === "rtl" ? /* @__PURE__ */ d.createElement(Fe, null) : /* @__PURE__ */ d.createElement(Be, null),
|
|
1070
|
+
right: a === "rtl" ? /* @__PURE__ */ d.createElement(Be, null) : /* @__PURE__ */ d.createElement(Fe, null)
|
|
1071
1071
|
}), [a]), m = d.useMemo(() => {
|
|
1072
1072
|
var p;
|
|
1073
1073
|
if (n === !1)
|
package/dist-lib/{material-draft-markdown-BKlKt3pc.js → material-draft-markdown-BqqPZtbw.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b, useCallback as A, useMemo as ee, useEffect as W, createContext as O, useContext as H, useRef as $ } from "react";
|
|
3
|
-
import { m as ne } from "./material-
|
|
4
|
-
import { I as m } from "./embed-
|
|
3
|
+
import { m as ne } from "./material-0d6ENLyU.js";
|
|
4
|
+
import { I as m } from "./embed-CoEyJMJx.js";
|
|
5
5
|
import { createPortal as te } from "react-dom";
|
|
6
6
|
import { b as D } from "./format-CWI99NCN.js";
|
|
7
7
|
const B = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
|
package/dist-lib/{material-original-preview-pzANkVK5.js → material-original-preview-BDeVDdfb.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as c, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as o, useEffect as F, Suspense as w, lazy as h } from "react";
|
|
3
|
-
import { I as x } from "./embed-
|
|
4
|
-
import { j as V } from "./material-
|
|
5
|
-
import { r as H } from "./material-workspace-model-
|
|
6
|
-
import { M as L } from "./material-draft-markdown-
|
|
3
|
+
import { I as x } from "./embed-CoEyJMJx.js";
|
|
4
|
+
import { j as V } from "./material-0d6ENLyU.js";
|
|
5
|
+
import { r as H } from "./material-workspace-model-DPaWrRpo.js";
|
|
6
|
+
import { M as L } from "./material-draft-markdown-BqqPZtbw.js";
|
|
7
7
|
import { createPortal as W } from "react-dom";
|
|
8
|
-
import { S as X } from "./index-
|
|
8
|
+
import { S as X } from "./index-B2Hx9Q2V.js";
|
|
9
9
|
const y = [
|
|
10
10
|
{ key: "original", label: "原件" },
|
|
11
11
|
{ key: "draft", label: "解析稿" },
|