@factorialco/agent-chat 0.1.2 → 0.2.0
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/components/ui/Markdown.d.ts.map +1 -1
- package/dist/index.cjs.js +24 -24
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +7 -3
- package/package.json +1 -1
- package/tailwind.config.js +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { ChatInterface } from './components/ChatInterface';
|
|
|
2
2
|
export { BreathingLoader } from './components/BreathingLoader';
|
|
3
3
|
export { TypewriterMessage } from './components/TypewriterMessage';
|
|
4
4
|
export { Button } from './components/ui/Button';
|
|
5
|
+
export { Markdown } from './components/ui/Markdown';
|
|
5
6
|
export { useTypewriter } from './hooks/useTypewriter';
|
|
6
7
|
export type { Message, ChatInterfaceProps, BreathingLoaderProps, TypewriterMessageProps, ButtonProps, MarkdownProps, } from './types';
|
|
7
8
|
export { cn } from './utils/cn';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGlE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGlE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAGnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAGrD,YAAY,EACV,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,WAAW,EACX,aAAa,GACd,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -43849,8 +43849,11 @@ function TS({ children: e, className: t }) {
|
|
|
43849
43849
|
customStyle: {
|
|
43850
43850
|
margin: 0,
|
|
43851
43851
|
borderRadius: "0.375rem",
|
|
43852
|
-
fontSize: "0.875rem"
|
|
43852
|
+
fontSize: "0.875rem",
|
|
43853
|
+
overflow: "auto",
|
|
43854
|
+
maxWidth: "100%"
|
|
43853
43855
|
},
|
|
43856
|
+
wrapLongLines: !0,
|
|
43854
43857
|
...o,
|
|
43855
43858
|
children: String(a).replace(/\n$/, "")
|
|
43856
43859
|
}
|
|
@@ -43987,7 +43990,7 @@ const HM = ({ content: e, agentName: t, onComplete: n, onChange: r }) => {
|
|
|
43987
43990
|
onComplete: n,
|
|
43988
43991
|
onChange: r
|
|
43989
43992
|
});
|
|
43990
|
-
return /* @__PURE__ */ K.jsx("div", { className: "flex w-full gap-3 rounded-lg bg-muted p-4", children: /* @__PURE__ */ K.jsxs("div", { className: "flex-1", children: [
|
|
43993
|
+
return /* @__PURE__ */ K.jsx("div", { className: "flex w-full gap-3 rounded-lg bg-muted p-4", children: /* @__PURE__ */ K.jsxs("div", { className: "flex-1 w-inherit", children: [
|
|
43991
43994
|
/* @__PURE__ */ K.jsx("div", { className: "text-sm font-semibold", children: t }),
|
|
43992
43995
|
/* @__PURE__ */ K.jsx("div", { className: "mt-1 text-sm break-words", children: /* @__PURE__ */ K.jsx(TS, { children: a }) })
|
|
43993
43996
|
] }) });
|
|
@@ -44079,7 +44082,7 @@ const HM = ({ content: e, agentName: t, onComplete: n, onChange: r }) => {
|
|
|
44079
44082
|
C.role === "assistant" ? "bg-muted" : "ml-auto w-1/2 bg-primary text-primary-foreground"
|
|
44080
44083
|
),
|
|
44081
44084
|
children: /* @__PURE__ */ K.jsxs("div", { className: Ve(
|
|
44082
|
-
"flex-1",
|
|
44085
|
+
"flex-1 w-inherit",
|
|
44083
44086
|
C.role === "user" && "text-left"
|
|
44084
44087
|
), children: [
|
|
44085
44088
|
/* @__PURE__ */ K.jsx("div", { className: "text-sm font-semibold", children: C.role === "assistant" ? n : "You" }),
|
|
@@ -44112,6 +44115,7 @@ export {
|
|
|
44112
44115
|
UM as BreathingLoader,
|
|
44113
44116
|
Mh as Button,
|
|
44114
44117
|
VM as ChatInterface,
|
|
44118
|
+
TS as Markdown,
|
|
44115
44119
|
HM as TypewriterMessage,
|
|
44116
44120
|
Ve as cn,
|
|
44117
44121
|
qM as useTypewriter
|
package/package.json
CHANGED
package/tailwind.config.js
CHANGED
|
@@ -45,10 +45,12 @@ module.exports = {
|
|
|
45
45
|
md: "calc(var(--radius) - 2px)",
|
|
46
46
|
sm: "calc(var(--radius) - 4px)",
|
|
47
47
|
},
|
|
48
|
+
width: {
|
|
49
|
+
inherit: 'inherit',
|
|
50
|
+
},
|
|
48
51
|
},
|
|
49
52
|
},
|
|
50
53
|
plugins: [],
|
|
51
|
-
// Para Tailwind v4, agregar esta configuración
|
|
52
54
|
future: {
|
|
53
55
|
hoverOnlyWhenSupported: true,
|
|
54
56
|
},
|