@baishuyun/chat-sdk 0.1.0 → 0.1.1
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/CHANGELOG.md +6 -0
- package/dist/chat-sdk.js +10 -10
- package/dist/chat-sdk.js.map +1 -1
- package/dist/chat-sdk.umd.cjs +2 -2
- package/dist/chat-sdk.umd.cjs.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/hooks/use-frame-mode.d.ts +1 -1
- package/dist/hooks/use-plugin-component.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/biz-comp/multi-modal-input/index.tsx +1 -1
- package/src/components/bs-ui/fields-design-info-table.tsx +9 -9
package/CHANGELOG.md
CHANGED
package/dist/chat-sdk.js
CHANGED
|
@@ -45452,7 +45452,7 @@ function lne({
|
|
|
45452
45452
|
}, [E, n]);
|
|
45453
45453
|
const T = (V) => {
|
|
45454
45454
|
n(V.target.value);
|
|
45455
|
-
}, M = A.useRef(null), [j, I] = A.useState([]), F = A.useRef(/* @__PURE__ */ new Map()), { exec: z } = Eu("onBeforeMessageSend"), { exec: Z } = Eu("onAfterMessageSend"), $ = ((K = Ep()) == null ? void 0 : K.placeholder) || "Send a message...", G = ((Me = Ep()) == null ? void 0 : Me.acceptAttachmentMaxCount) || 5, Y = ((U = Ep()) == null ? void 0 : U.acceptAttachmentMaxSizeMb) ||
|
|
45455
|
+
}, M = A.useRef(null), [j, I] = A.useState([]), F = A.useRef(/* @__PURE__ */ new Map()), { exec: z } = Eu("onBeforeMessageSend"), { exec: Z } = Eu("onAfterMessageSend"), $ = ((K = Ep()) == null ? void 0 : K.placeholder) || "Send a message...", G = ((Me = Ep()) == null ? void 0 : Me.acceptAttachmentMaxCount) || 5, Y = ((U = Ep()) == null ? void 0 : U.acceptAttachmentMaxSizeMb) || 50, me = `上传附件(仅识别文字),最多${G}个,单个文件最大${Y}MB`, ce = A.useCallback(() => {
|
|
45456
45456
|
f([]), I([]), M.current && (M.current.value = "");
|
|
45457
45457
|
}, [f]), le = A.useCallback(() => {
|
|
45458
45458
|
const V = z({
|
|
@@ -47985,12 +47985,12 @@ function CA({
|
|
|
47985
47985
|
isSubFormChild: t = !1
|
|
47986
47986
|
}) {
|
|
47987
47987
|
return /* @__PURE__ */ b.jsxs("div", { className: "flex items-center w-full", children: [
|
|
47988
|
-
/* @__PURE__ */ b.jsxs("div", { className: Ie(Za, "w-20 shrink-0 min-h-[34px]
|
|
47988
|
+
/* @__PURE__ */ b.jsxs("div", { className: Ie(Za, "w-20 shrink-0 min-h-[34px]"), children: [
|
|
47989
47989
|
t && /* @__PURE__ */ b.jsx("span", { className: "inline-flex items-center justify-center shrink-0 w-5 h-5 opacity-0", children: /* @__PURE__ */ b.jsx(Ry, {}) }),
|
|
47990
47990
|
/* @__PURE__ */ b.jsx("span", { children: e.fieldName })
|
|
47991
47991
|
] }),
|
|
47992
|
-
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-[72px] shrink-0 min-h-[34px]
|
|
47993
|
-
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-9 shrink-0 min-h-[34px]
|
|
47992
|
+
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-[72px] shrink-0 min-h-[34px]"), children: e.type }),
|
|
47993
|
+
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-9 shrink-0 min-h-[34px]"), children: e.required ? "是" : "否" }),
|
|
47994
47994
|
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "flex-1 min-w-0 min-h-[34px]"), children: /* @__PURE__ */ b.jsx("span", { className: "break-words min-w-0", children: e.description }) })
|
|
47995
47995
|
] });
|
|
47996
47996
|
}
|
|
@@ -48013,8 +48013,8 @@ function Sre({
|
|
|
48013
48013
|
),
|
|
48014
48014
|
/* @__PURE__ */ b.jsx("span", { children: e.fieldName })
|
|
48015
48015
|
] }),
|
|
48016
|
-
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-[72px] shrink-0 min-h-[34px]
|
|
48017
|
-
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-9 shrink-0 min-h-[34px]
|
|
48016
|
+
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-[72px] shrink-0 min-h-[34px] "), children: e.type }),
|
|
48017
|
+
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-9 shrink-0 min-h-[34px]"), children: e.required ? "是" : "否" }),
|
|
48018
48018
|
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "flex-1 min-w-0 min-h-[34px]"), children: /* @__PURE__ */ b.jsx("span", { className: "break-words min-w-0", children: e.description }) })
|
|
48019
48019
|
] }),
|
|
48020
48020
|
n && t.map((u, f) => /* @__PURE__ */ b.jsx(CA, { field: u, isSubFormChild: !0 }, f))
|
|
@@ -48024,19 +48024,19 @@ function Ere({ fields: e }) {
|
|
|
48024
48024
|
const t = A.useMemo(() => wre(e), [e]);
|
|
48025
48025
|
return /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col items-start w-full bg-white rounded-[10px] overflow-hidden text-black my-[10px] border border-[#E0E0E0]", children: [
|
|
48026
48026
|
/* @__PURE__ */ b.jsxs("div", { className: "flex items-center w-full shrink-0 bg-[#E5E6EB] rounded-t-[10px] border-b border-[#E0E0E0]", children: [
|
|
48027
|
-
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-20 shrink-0 h-[34px] font-bold
|
|
48028
|
-
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-[72px] shrink-0 h-[34px] font-bold
|
|
48027
|
+
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-20 shrink-0 h-[34px] font-bold"), children: "名称" }),
|
|
48028
|
+
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "w-[72px] shrink-0 h-[34px] font-bold"), children: "类型" }),
|
|
48029
48029
|
/* @__PURE__ */ b.jsx(
|
|
48030
48030
|
"div",
|
|
48031
48031
|
{
|
|
48032
48032
|
className: Ie(
|
|
48033
48033
|
Za,
|
|
48034
|
-
"w-9 shrink-0 h-[34px] font-bold
|
|
48034
|
+
"w-9 shrink-0 h-[34px] font-bold justify-center"
|
|
48035
48035
|
),
|
|
48036
48036
|
children: "必填"
|
|
48037
48037
|
}
|
|
48038
48038
|
),
|
|
48039
|
-
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "flex-1 min-w-0 h-[34px] font-bold
|
|
48039
|
+
/* @__PURE__ */ b.jsx("div", { className: Ie(Za, "flex-1 min-w-0 h-[34px] font-bold"), children: "说明" })
|
|
48040
48040
|
] }),
|
|
48041
48041
|
/* @__PURE__ */ b.jsx("div", { className: "flex flex-col items-start w-full", children: t.map(
|
|
48042
48042
|
(n, o) => n.kind === "field" ? /* @__PURE__ */ b.jsx(CA, { field: n.field }, o) : /* @__PURE__ */ b.jsx(Sre, { parent: n.parent, children: n.children }, o)
|