zyjj-web-sdk 1.0.18 → 1.0.20
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/lib/{APlayer.min-DKs1kk9I.js → APlayer.min-9ukXWHtq.js} +1 -1
- package/lib/{DPlayer.min-B6rWXKfD.js → DPlayer.min-Cl9WiJp7.js} +1 -1
- package/lib/components/lab/ElementTypeTextArea.d.ts +1 -1
- package/lib/{index-BbfvENaA.js → index-DYCuXcu7.js} +1 -1
- package/lib/{index-CuQoywID.js → index-DtMxRUqJ.js} +9 -9
- package/lib/index.js +1 -1
- package/lib/index.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ElementTypeProps } from "./common.tsx";
|
|
2
2
|
import { TextAreaData } from "../../types/tool-task.ts";
|
|
3
|
-
export default function
|
|
3
|
+
export default function ElementTypeTextArea(props: ElementTypeProps<string, TextAreaData>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -58061,7 +58061,7 @@ function R2e(e) {
|
|
|
58061
58061
|
}
|
|
58062
58062
|
function M2e(e) {
|
|
58063
58063
|
var n, t;
|
|
58064
|
-
return z.jsx(Dr.TextArea, { value: e.value, onChange: e.onChange,
|
|
58064
|
+
return z.jsx(Dr.TextArea, { value: e.value, onChange: e.onChange, rows: 10, maxLength: (n = e.data) == null ? void 0 : n.max_len, showWordLimit: !0, placeholder: (t = e.data) == null ? void 0 : t.placeholder });
|
|
58065
58065
|
}
|
|
58066
58066
|
const Nf = (e) => {
|
|
58067
58067
|
const [n, t] = Ve(e.icon), [r, o] = Ve(e.tip), [a, s] = Ve(!1);
|
|
@@ -58310,10 +58310,10 @@ function eOe() {
|
|
|
58310
58310
|
function D6(e) {
|
|
58311
58311
|
const [n, t] = Ve(!1), [r, o] = Ve();
|
|
58312
58312
|
return lt(() => {
|
|
58313
|
-
import("./index-
|
|
58313
|
+
import("./index-DYCuXcu7.js").then((a) => {
|
|
58314
58314
|
o(z.jsx(a.default, { remarkPlugins: [eOe], children: e.value }));
|
|
58315
58315
|
});
|
|
58316
|
-
}, [e.value]), z.jsxs("div", {
|
|
58316
|
+
}, [e.value]), z.jsxs("div", { style: { position: "relative" }, children: [e.value ? z.jsxs(Yr, { style: { position: "absolute", right: 0, margin: 5, zIndex: 99 }, children: [z.jsx(Nf, { noSuccess: !0, onClick: async () => t((a) => !a), icon: n ? z.jsx(Yu, {}) : z.jsx(Q0, {}), tip: n ? "预览" : "编辑" }), z.jsx($2e, { value: e.value })] }) : z.jsx(z.Fragment, {}), n ? z.jsx(Dr.TextArea, { style: { borderRadius: 5, padding: 10 }, autoSize: !0, value: e.value, onChange: e.onChange }) : z.jsx("div", { style: { padding: 10 }, children: r })] });
|
|
58317
58317
|
}
|
|
58318
58318
|
function tOe(e) {
|
|
58319
58319
|
const { value: n, data: t, onChange: r } = e, o = (t == null ? void 0 : t.max_size) || 10 * 1024 * 1024, [a, s] = Ve([]), i = (c) => {
|
|
@@ -58338,7 +58338,7 @@ function rOe(e) {
|
|
|
58338
58338
|
if (!o || !e.value)
|
|
58339
58339
|
return;
|
|
58340
58340
|
let a = {};
|
|
58341
|
-
typeof e.value == "string" ? (t(e.value), a.url = e.value, a.name = e.value.split("/").pop()) : (a = e.value, t(a.url)), import("./APlayer.min-
|
|
58341
|
+
typeof e.value == "string" ? (t(e.value), a.url = e.value, a.name = e.value.split("/").pop()) : (a = e.value, t(a.url)), import("./APlayer.min-9ukXWHtq.js").then((s) => s.A).then((s) => {
|
|
58342
58342
|
new s.default({
|
|
58343
58343
|
container: o,
|
|
58344
58344
|
loop: "none",
|
|
@@ -58347,14 +58347,14 @@ function rOe(e) {
|
|
|
58347
58347
|
});
|
|
58348
58348
|
});
|
|
58349
58349
|
}, [e.value]);
|
|
58350
|
-
return z.jsxs(Yr, { direction: "vertical",
|
|
58350
|
+
return z.jsxs(Yr, { direction: "vertical", children: [z.jsx("div", { style: { width: "99%", borderRadius: 5 }, ref: r }), z.jsx(X9, { link: n })] });
|
|
58351
58351
|
}
|
|
58352
58352
|
function nOe(e) {
|
|
58353
58353
|
var n;
|
|
58354
|
-
return z.jsx(gf.PreviewGroup, { infinite: !0, children: z.jsx(bn, { cols: 4, colGap: 5, rowGap: 5,
|
|
58354
|
+
return e.value ? z.jsx(gf.PreviewGroup, { infinite: !0, children: z.jsx(bn, { cols: 4, colGap: 5, rowGap: 5, children: (n = e.value) == null ? void 0 : n.map((t, r) => z.jsx(bn.GridItem, { children: z.jsx(J9, { src: t }) }, r)) }) }) : z.jsx(z.Fragment, {});
|
|
58355
58355
|
}
|
|
58356
58356
|
function oOe(e) {
|
|
58357
|
-
return z.jsx(Yr, {
|
|
58357
|
+
return e.value ? z.jsx(Yr, { children: z.jsx(J9, { src: e.value }) }) : z.jsx(z.Fragment, {});
|
|
58358
58358
|
}
|
|
58359
58359
|
function iOe(e) {
|
|
58360
58360
|
var n, t;
|
|
@@ -58363,12 +58363,12 @@ function iOe(e) {
|
|
|
58363
58363
|
function aOe(e) {
|
|
58364
58364
|
var t;
|
|
58365
58365
|
const n = Xt((r) => {
|
|
58366
|
-
!r || !e.value || import("./DPlayer.min-
|
|
58366
|
+
!r || !e.value || import("./DPlayer.min-Cl9WiJp7.js").then((o) => o.D).then((o) => {
|
|
58367
58367
|
var a;
|
|
58368
58368
|
new o.default({ container: r, screenshot: !0, video: { url: (a = e.value) == null ? void 0 : a.url } });
|
|
58369
58369
|
});
|
|
58370
58370
|
}, [e.value]);
|
|
58371
|
-
return z.jsxs(Yr, { direction: "vertical",
|
|
58371
|
+
return z.jsxs(Yr, { direction: "vertical", children: [z.jsx("div", { style: { width: "100%", borderRadius: 5 }, ref: n }), z.jsx(X9, { link: (t = e.value) == null ? void 0 : t.url })] });
|
|
58372
58372
|
}
|
|
58373
58373
|
function DOe(e) {
|
|
58374
58374
|
const { tp: n, isInput: t, data: r, value: o, onChange: a } = e;
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as o, E as t, L as r, M as i, P as l, e as n, S as L, d as T, T as b, a as g, b as m, U as E } from "./index-
|
|
1
|
+
import { A as e, C as o, E as t, L as r, M as i, P as l, e as n, S as L, d as T, T as b, a as g, b as m, U as E } from "./index-DtMxRUqJ.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Api,
|
|
4
4
|
o as ConcatButton,
|