reachat 2.1.0-alpha.5 → 2.1.0-alpha.7

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.
@@ -344,6 +344,7 @@
344
344
  allowedFiles,
345
345
  placeholder,
346
346
  defaultValue,
347
+ className,
347
348
  message,
348
349
  sendIcon = /* @__PURE__ */ jsxRuntime.jsx(SvgSend, {}),
349
350
  stopIcon = /* @__PURE__ */ jsxRuntime.jsx(SvgStop, {}),
@@ -385,6 +386,9 @@
385
386
  setValue: (value) => {
386
387
  setInternalMessage(value);
387
388
  onMessageChange?.(value);
389
+ },
390
+ getValue: () => {
391
+ return internalMessage;
388
392
  }
389
393
  }));
390
394
  const handleKeyPress = (e) => {
@@ -406,7 +410,7 @@
406
410
  },
407
411
  [onMessageChange]
408
412
  );
409
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: reablocks.cn(theme.input.base), children: [
413
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: reablocks.cn(theme.input.base, className), children: [
410
414
  /* @__PURE__ */ jsxRuntime.jsx(
411
415
  reablocks.Textarea,
412
416
  {