wacomm 1.4.1 → 1.4.2
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/TextSender.d.ts +2 -1
- package/dist/{index-DPkdxyEG.mjs → index-BcYXcObv.mjs} +13 -12
- package/dist/{index-CiK_hxKV.js → index-cr7BxNu9.js} +2 -2
- package/dist/{mapbox-gl-BjpeR0K2.js → mapbox-gl-1tZNSq1m.js} +1 -1
- package/dist/{mapbox-gl-C7lghogY.mjs → mapbox-gl-CkpcPFWI.mjs} +1 -1
- package/dist/wacomm.cjs.js +1 -1
- package/dist/wacomm.es.js +1 -1
- package/package.json +1 -1
package/dist/TextSender.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
interface TextSenderProps {
|
|
2
2
|
onClick: (text: string) => void;
|
|
3
|
+
placeholder?: string;
|
|
3
4
|
className?: string;
|
|
4
5
|
rows?: number;
|
|
5
6
|
}
|
|
6
|
-
export default function TextSender({ onClick, className, rows, }: TextSenderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function TextSender({ onClick, placeholder, className, rows, }: TextSenderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -14017,28 +14017,29 @@ function FN({
|
|
|
14017
14017
|
}
|
|
14018
14018
|
function VN({
|
|
14019
14019
|
onClick: e,
|
|
14020
|
-
|
|
14021
|
-
|
|
14020
|
+
placeholder: t = "Type your message...",
|
|
14021
|
+
className: o = "",
|
|
14022
|
+
rows: n = 2
|
|
14022
14023
|
}) {
|
|
14023
|
-
const [
|
|
14024
|
-
|
|
14024
|
+
const [r, s] = ot(""), i = () => {
|
|
14025
|
+
r.trim() && (e(r), s(""));
|
|
14025
14026
|
};
|
|
14026
|
-
return /* @__PURE__ */ T.jsxs("div", { className: `relative w-full ${
|
|
14027
|
+
return /* @__PURE__ */ T.jsxs("div", { className: `relative w-full ${o}`, children: [
|
|
14027
14028
|
/* @__PURE__ */ T.jsx(
|
|
14028
14029
|
"textarea",
|
|
14029
14030
|
{
|
|
14030
14031
|
className: "w-full border rounded px-2 py-1 pr-10",
|
|
14031
|
-
value:
|
|
14032
|
-
onChange: (
|
|
14033
|
-
rows:
|
|
14034
|
-
placeholder:
|
|
14032
|
+
value: r,
|
|
14033
|
+
onChange: (a) => s(a.target.value),
|
|
14034
|
+
rows: n,
|
|
14035
|
+
placeholder: t
|
|
14035
14036
|
}
|
|
14036
14037
|
),
|
|
14037
14038
|
/* @__PURE__ */ T.jsx("div", { className: "absolute right-2 top-1/2", children: /* @__PURE__ */ T.jsx(
|
|
14038
14039
|
DT,
|
|
14039
14040
|
{
|
|
14040
|
-
onClick:
|
|
14041
|
-
isHighlighted: !!
|
|
14041
|
+
onClick: i,
|
|
14042
|
+
isHighlighted: !!r.trim(),
|
|
14042
14043
|
className: "cursor-pointer"
|
|
14043
14044
|
}
|
|
14044
14045
|
) })
|
|
@@ -42050,7 +42051,7 @@ function eE(e) {
|
|
|
42050
42051
|
}, [r]), null;
|
|
42051
42052
|
}
|
|
42052
42053
|
const Uj = Cr(eE);
|
|
42053
|
-
const tE = import("./mapbox-gl-
|
|
42054
|
+
const tE = import("./mapbox-gl-CkpcPFWI.mjs").then((e) => e.m), oE = v.forwardRef(function(t, o) {
|
|
42054
42055
|
return HD(t, o, tE);
|
|
42055
42056
|
}), kb = UD;
|
|
42056
42057
|
const nE = _D;
|