zyjj-web-sdk 1.1.7 → 1.1.9

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 (24) hide show
  1. package/lib/{APlayer.min-DzHWoEvx.js → APlayer.min-Cg2T8DXW.js} +1 -1
  2. package/lib/{DPlayer.min-BSjMKfwC.js → DPlayer.min-DdAOgLH5.js} +1 -1
  3. package/lib/{ElementTypeAlert-CvoOLqP1.js → ElementTypeAlert-DZLyGDGE.js} +1 -1
  4. package/lib/{ElementTypeAudio-Dl8eO6Fb.js → ElementTypeAudio-BVHqdQC7.js} +3 -3
  5. package/lib/{ElementTypeImage-Cp4Xw8Db.js → ElementTypeImage-B3Wy6Jbx.js} +2 -2
  6. package/lib/{ElementTypeImageList-DP0Rjbdf.js → ElementTypeImageList-D2nRMBMt.js} +2 -2
  7. package/lib/{ElementTypeInput-DFkJGBGe.js → ElementTypeInput-D-Tw7n0p.js} +1 -1
  8. package/lib/{ElementTypeNumber-4B9M26Rq.js → ElementTypeNumber-ConM6_gm.js} +1 -1
  9. package/lib/{ElementTypeSelect-_Knpij9M.js → ElementTypeSelect-By15sM-I.js} +1 -1
  10. package/lib/{ElementTypeText-DvAsOufc.js → ElementTypeText-ey4N53eD.js} +3 -3
  11. package/lib/{ElementTypeTextArea-y_fkclYf.js → ElementTypeTextArea-D6OlVaqS.js} +1 -1
  12. package/lib/ElementTypeUpload-CDXiYiR6.js +64 -0
  13. package/lib/{ElementTypeVideo-Y1glzf4A.js → ElementTypeVideo-DliLlsIe.js} +3 -3
  14. package/lib/{common-Dt4BHxCR.js → common-BQmu-Gsx.js} +1 -1
  15. package/lib/{index-CCOAg2q8.js → index-7P3iPeRL.js} +96 -95
  16. package/lib/{index-Bz8xGFkc.js → index-CZYavw8P.js} +2 -2
  17. package/lib/index.d.ts +1 -1
  18. package/lib/index.js +1 -1
  19. package/lib/index.umd.cjs +3 -3
  20. package/lib/tool/utils.d.ts +2 -2
  21. package/lib/types/new-local-task.d.ts +2 -1
  22. package/lib/types/tool-task.d.ts +3 -2
  23. package/package.json +1 -1
  24. package/lib/ElementTypeUpload-CknB0Sic.js +0 -64
@@ -1,4 +1,4 @@
1
- import { g as E } from "./index-CCOAg2q8.js";
1
+ import { g as E } from "./index-7P3iPeRL.js";
2
2
  function S(T, L) {
3
3
  for (var f = 0; f < L.length; f++) {
4
4
  const h = L[f];
@@ -1,4 +1,4 @@
1
- import { g as So, c as Io } from "./index-CCOAg2q8.js";
1
+ import { g as So, c as Io } from "./index-7P3iPeRL.js";
2
2
  function Lo(pe, Ze) {
3
3
  for (var J = 0; J < Ze.length; J++) {
4
4
  const U = Ze[J];
@@ -1,4 +1,4 @@
1
- import { j as r } from "./index-CCOAg2q8.js";
1
+ import { j as r } from "./index-7P3iPeRL.js";
2
2
  import { Alert as o } from "@arco-design/web-react";
3
3
  function p(t) {
4
4
  var e, n;
@@ -1,5 +1,5 @@
1
- import { j as r } from "./index-CCOAg2q8.js";
2
- import { a as o } from "./common-Dt4BHxCR.js";
1
+ import { j as r } from "./index-7P3iPeRL.js";
2
+ import { a as o } from "./common-BQmu-Gsx.js";
3
3
  import { useState as s, useCallback as f } from "react";
4
4
  import { Space as m } from "@arco-design/web-react";
5
5
  function j(e) {
@@ -7,7 +7,7 @@ function j(e) {
7
7
  if (!i || !e.value)
8
8
  return;
9
9
  let t = {};
10
- typeof e.value == "string" ? (a(e.value), t.url = e.value, t.name = e.value.split("/").pop()) : (t = e.value, a(t.url)), import("./APlayer.min-DzHWoEvx.js").then((l) => l.A).then((l) => {
10
+ typeof e.value == "string" ? (a(e.value), t.url = e.value, t.name = e.value.split("/").pop()) : (t = e.value, a(t.url)), import("./APlayer.min-Cg2T8DXW.js").then((l) => l.A).then((l) => {
11
11
  new l.default({
12
12
  container: i,
13
13
  loop: "none",
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index-CCOAg2q8.js";
1
+ import { j as e } from "./index-7P3iPeRL.js";
2
2
  import { Space as m } from "@arco-design/web-react";
3
- import { I as t } from "./common-Dt4BHxCR.js";
3
+ import { I as t } from "./common-BQmu-Gsx.js";
4
4
  function i(r) {
5
5
  return r.value ? e.jsx(m, { children: e.jsx(t, { src: r.value }) }) : e.jsx(e.Fragment, {});
6
6
  }
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index-CCOAg2q8.js";
1
+ import { j as e } from "./index-7P3iPeRL.js";
2
2
  import { Image as o, Grid as t } from "@arco-design/web-react";
3
- import { I as n } from "./common-Dt4BHxCR.js";
3
+ import { I as n } from "./common-BQmu-Gsx.js";
4
4
  function u(r) {
5
5
  var i;
6
6
  return r.value ? e.jsx(o.PreviewGroup, { infinite: !0, children: e.jsx(t, { cols: 4, colGap: 5, rowGap: 5, children: (i = r.value) == null ? void 0 : i.map((m, a) => e.jsx(t.GridItem, { children: e.jsx(n, { src: m }) }, a)) }) }) : e.jsx(e.Fragment, {});
@@ -1,4 +1,4 @@
1
- import { j as a } from "./index-CCOAg2q8.js";
1
+ import { j as a } from "./index-7P3iPeRL.js";
2
2
  import { Input as n } from "@arco-design/web-react";
3
3
  function r(e) {
4
4
  var t;
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-CCOAg2q8.js";
1
+ import { j as n } from "./index-7P3iPeRL.js";
2
2
  import { InputNumber as u } from "@arco-design/web-react";
3
3
  function r(t) {
4
4
  var e, a, m;
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-CCOAg2q8.js";
1
+ import { j as n } from "./index-7P3iPeRL.js";
2
2
  import { Select as l } from "@arco-design/web-react";
3
3
  function i(e) {
4
4
  var a;
@@ -1,7 +1,7 @@
1
- import { j as A } from "./index-CCOAg2q8.js";
1
+ import { j as A } from "./index-7P3iPeRL.js";
2
2
  import z, { useContext as Ce, useState as ae, useEffect as et } from "react";
3
3
  import { Space as tt, Input as nt } from "@arco-design/web-react";
4
- import { S as rt, C as it } from "./common-Dt4BHxCR.js";
4
+ import { S as rt, C as it } from "./common-BQmu-Gsx.js";
5
5
  import { I as ve, _ as Ae, a as De } from "./context-tmjHwBoF.js";
6
6
  function ue(e, n) {
7
7
  var t = Object.keys(e);
@@ -2243,7 +2243,7 @@ function _r(e) {
2243
2243
  function Mr(e) {
2244
2244
  const [n, t] = ae(!1), [i, l] = ae();
2245
2245
  return et(() => {
2246
- import("./index-Bz8xGFkc.js").then((o) => {
2246
+ import("./index-CZYavw8P.js").then((o) => {
2247
2247
  l(A.jsx(o.default, { remarkPlugins: [yt, _r], children: e.value }));
2248
2248
  });
2249
2249
  }, [e.value]), A.jsxs("div", { className: "zyjj-lab-markdown", style: { position: "relative" }, children: [e.value ? A.jsxs(tt, { style: { position: "absolute", right: 0, margin: 5, zIndex: 99 }, children: [A.jsx(rt, { noSuccess: !0, onClick: async () => t((o) => !o), icon: n ? A.jsx(X, {}) : A.jsx(Y, {}), tip: n ? "预览" : "编辑" }), A.jsx(it, { value: e.value })] }) : A.jsx(A.Fragment, {}), n ? A.jsx(nt.TextArea, { style: { borderRadius: 5, padding: 10 }, autoSize: !0, value: e.value, onChange: e.onChange }) : A.jsx("div", { style: { padding: 10 }, children: i })] });
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-CCOAg2q8.js";
1
+ import { j as n } from "./index-7P3iPeRL.js";
2
2
  import { Input as r } from "@arco-design/web-react";
3
3
  function m(e) {
4
4
  var a, t;
@@ -0,0 +1,64 @@
1
+ import { j as a, F as x } from "./index-7P3iPeRL.js";
2
+ import l, { useContext as O, useState as j, useEffect as g } from "react";
3
+ import { Upload as b, Button as y, Message as h } from "@arco-design/web-react";
4
+ import { I as C, _ as w, a as _ } from "./context-tmjHwBoF.js";
5
+ function m(o, n) {
6
+ var e = Object.keys(o);
7
+ if (Object.getOwnPropertySymbols) {
8
+ var t = Object.getOwnPropertySymbols(o);
9
+ n && (t = t.filter(function(r) {
10
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
11
+ })), e.push.apply(e, t);
12
+ }
13
+ return e;
14
+ }
15
+ function d(o) {
16
+ for (var n = 1; n < arguments.length; n++) {
17
+ var e = arguments[n] != null ? arguments[n] : {};
18
+ n % 2 ? m(Object(e), !0).forEach(function(t) {
19
+ _(o, t, e[t]);
20
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(e)) : m(Object(e)).forEach(function(t) {
21
+ Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(e, t));
22
+ });
23
+ }
24
+ return o;
25
+ }
26
+ function P(o, n) {
27
+ var e = O(C), t = e.prefixCls, r = t === void 0 ? "arco" : t, i = o.spin, c = o.className, s = d(d({
28
+ "aria-hidden": !0,
29
+ focusable: !1,
30
+ ref: n
31
+ }, o), {}, {
32
+ className: "".concat(c ? c + " " : "").concat(r, "-icon ").concat(r, "-icon-upload")
33
+ });
34
+ return i && (s.className = "".concat(s.className, " ").concat(r, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ l.createElement("svg", w({
35
+ fill: "none",
36
+ stroke: "currentColor",
37
+ strokeWidth: "4",
38
+ viewBox: "0 0 48 48"
39
+ }, s), /* @__PURE__ */ l.createElement("path", {
40
+ d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"
41
+ }));
42
+ }
43
+ var p = /* @__PURE__ */ l.forwardRef(P);
44
+ p.defaultProps = {
45
+ isIcon: !0
46
+ };
47
+ p.displayName = "IconUpload";
48
+ function F(o) {
49
+ const { value: n, data: e, onChange: t } = o, r = (e == null ? void 0 : e.max_size) || 10 * 1024 * 1024, [i, c] = j([]), s = (u) => {
50
+ console.log("custom upload", u);
51
+ const { onSuccess: v, file: f } = u;
52
+ if (f.size > r) {
53
+ h.warning(`文件大小超过 ${r / 1024 / 1024}M, 请重新上传!`), c([]);
54
+ return;
55
+ }
56
+ t && t(x(f, e == null ? void 0 : e.object_url, e == null ? void 0 : e.cloud_source)), v();
57
+ };
58
+ return g(() => {
59
+ c(n ? [{ uid: n.uid, name: n.name }] : []);
60
+ }, [n]), a.jsx(b, { accept: e == null ? void 0 : e.accept, fileList: i, onChange: c, onRemove: () => t(void 0), limit: 1, customRequest: s, children: a.jsx(y, { type: "outline", icon: a.jsx(p, {}), children: "点击上传" }) });
61
+ }
62
+ export {
63
+ F as default
64
+ };
@@ -1,11 +1,11 @@
1
- import { j as t } from "./index-CCOAg2q8.js";
2
- import { a as n } from "./common-Dt4BHxCR.js";
1
+ import { j as t } from "./index-7P3iPeRL.js";
2
+ import { a as n } from "./common-BQmu-Gsx.js";
3
3
  import { Space as l } from "@arco-design/web-react";
4
4
  import { useCallback as s } from "react";
5
5
  function v(e) {
6
6
  var i;
7
7
  const a = s((o) => {
8
- !o || !e.value || import("./DPlayer.min-BSjMKfwC.js").then((r) => r.D).then((r) => {
8
+ !o || !e.value || import("./DPlayer.min-DdAOgLH5.js").then((r) => r.D).then((r) => {
9
9
  var u;
10
10
  new r.default({ container: o, screenshot: !0, video: { url: (u = e.value) == null ? void 0 : u.url } });
11
11
  });
@@ -1,4 +1,4 @@
1
- import { j as a, d as W } from "./index-CCOAg2q8.js";
1
+ import { j as a, d as W } from "./index-7P3iPeRL.js";
2
2
  import i, { useContext as f, useState as O, useEffect as F } from "react";
3
3
  import { Tooltip as H, Space as z, Image as T } from "@arco-design/web-react";
4
4
  import { I as p, _ as u, a as d } from "./context-tmjHwBoF.js";