@adatechnology/conversations-ui 0.1.0-rc.14 → 0.1.0-rc.15
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/index.js +5 -4
- package/package.json +1 -1
- package/src/RichMessageComposer.tsx +5 -4
package/dist/index.js
CHANGED
|
@@ -319,15 +319,16 @@ var RichMessageComposer = forwardRef(function RichMessageComposer2({
|
|
|
319
319
|
return /* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col", className), children: [
|
|
320
320
|
attachmentsPreview,
|
|
321
321
|
quickReplies?.length ? (
|
|
322
|
-
/* Uma linha
|
|
323
|
-
|
|
324
|
-
|
|
322
|
+
/* Uma linha só, rolando na horizontal. Deixar quebrar em várias linhas faz a barra crescer
|
|
323
|
+
conforme o número de respostas rápidas e empurrar a conversa para cima — o composer
|
|
324
|
+
precisa ter altura previsível, independente de quantos atalhos o host configurou. */
|
|
325
|
+
/* @__PURE__ */ jsx2("div", { className: "mb-2 flex flex-nowrap gap-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: quickReplies.map((quickReply) => /* @__PURE__ */ jsx2(
|
|
325
326
|
"button",
|
|
326
327
|
{
|
|
327
328
|
type: "button",
|
|
328
329
|
title: quickReply.tooltip,
|
|
329
330
|
onClick: () => replaceContent(quickReply.text),
|
|
330
|
-
className: "whitespace-nowrap rounded-full border border-gray-200 bg-white px-2 py-1 text-xs text-gray-600 transition-colors hover:border-teal-200 hover:bg-teal-50 hover:text-teal-700 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:border-teal-800 dark:hover:bg-teal-950/40 dark:hover:text-teal-400",
|
|
331
|
+
className: "flex-shrink-0 whitespace-nowrap rounded-full border border-gray-200 bg-white px-2 py-1 text-xs text-gray-600 transition-colors hover:border-teal-200 hover:bg-teal-50 hover:text-teal-700 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:border-teal-800 dark:hover:bg-teal-950/40 dark:hover:text-teal-400",
|
|
331
332
|
children: quickReply.label
|
|
332
333
|
},
|
|
333
334
|
quickReply.id
|
package/package.json
CHANGED
|
@@ -246,16 +246,17 @@ export const RichMessageComposer = forwardRef<RichMessageComposerHandle, RichMes
|
|
|
246
246
|
{attachmentsPreview}
|
|
247
247
|
|
|
248
248
|
{quickReplies?.length ? (
|
|
249
|
-
/* Uma linha
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
/* Uma linha só, rolando na horizontal. Deixar quebrar em várias linhas faz a barra crescer
|
|
250
|
+
conforme o número de respostas rápidas e empurrar a conversa para cima — o composer
|
|
251
|
+
precisa ter altura previsível, independente de quantos atalhos o host configurou. */
|
|
252
|
+
<div className="mb-2 flex flex-nowrap gap-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
|
|
252
253
|
{quickReplies.map((quickReply) => (
|
|
253
254
|
<button
|
|
254
255
|
key={quickReply.id}
|
|
255
256
|
type="button"
|
|
256
257
|
title={quickReply.tooltip}
|
|
257
258
|
onClick={() => replaceContent(quickReply.text)}
|
|
258
|
-
className="whitespace-nowrap rounded-full border border-gray-200 bg-white px-2 py-1 text-xs text-gray-600 transition-colors hover:border-teal-200 hover:bg-teal-50 hover:text-teal-700 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:border-teal-800 dark:hover:bg-teal-950/40 dark:hover:text-teal-400"
|
|
259
|
+
className="flex-shrink-0 whitespace-nowrap rounded-full border border-gray-200 bg-white px-2 py-1 text-xs text-gray-600 transition-colors hover:border-teal-200 hover:bg-teal-50 hover:text-teal-700 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:border-teal-800 dark:hover:bg-teal-950/40 dark:hover:text-teal-400"
|
|
259
260
|
>
|
|
260
261
|
{quickReply.label}
|
|
261
262
|
</button>
|