@aintela/chat 0.2.48 → 0.2.49
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.js
CHANGED
|
@@ -9108,7 +9108,8 @@ const ka = /* @__PURE__ */ n(({ message: e, showSubAgents: r, onGoing: i, contai
|
|
|
9108
9108
|
position: "relative",
|
|
9109
9109
|
paddingBottom: 12,
|
|
9110
9110
|
// Indent the body under the persona label (avatar + gap) so text starts after the avatar.
|
|
9111
|
-
|
|
9111
|
+
// Hosts can collapse it (phone widths: --aia-persona-indent: 0px) — those are precious pixels.
|
|
9112
|
+
paddingLeft: x ? `var(--aia-persona-indent, ${Qs}px)` : void 0,
|
|
9112
9113
|
color: _ ? A.palette.text.disabled : A.palette.text.primary
|
|
9113
9114
|
},
|
|
9114
9115
|
"data-interaction-question": e.interactionQuestion,
|
|
@@ -9455,7 +9456,7 @@ const lh = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9455
9456
|
`);
|
|
9456
9457
|
return x = x && h.length > 0, A = A && _.length > 0, /* @__PURE__ */ T(ne, { children: [
|
|
9457
9458
|
(u = e.interactionQuestion) != null && u.trim() ? /* @__PURE__ */ t(Xs, { tone: "light", isUser: !0, message: e }) : null,
|
|
9458
|
-
/* @__PURE__ */ t(O, { sx: { pl: I && ((E = e.interactionQuestion) != null && E.trim()) ?
|
|
9459
|
+
/* @__PURE__ */ t(O, { sx: { pl: I && ((E = e.interactionQuestion) != null && E.trim()) ? `var(--aia-persona-indent, ${Qs}px)` : 0 }, children: k.length > 0 ? k.map((c) => /* @__PURE__ */ t(
|
|
9459
9460
|
Nn,
|
|
9460
9461
|
{
|
|
9461
9462
|
part: c,
|
|
@@ -10065,12 +10066,12 @@ function Ca() {
|
|
|
10065
10066
|
};
|
|
10066
10067
|
}
|
|
10067
10068
|
n(Ca, "useParkedAskUser");
|
|
10068
|
-
const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
10069
|
-
var
|
|
10070
|
-
const
|
|
10069
|
+
const rl = /* @__PURE__ */ n(({ promptHeight: e, eyebrowLabel: r = "pergunta do agente" }) => {
|
|
10070
|
+
var S, x, A;
|
|
10071
|
+
const i = at(), [d, f] = J(!1), { parked: s, toRender: y, currentMessage: b, turnOpen: I, cancel: k } = Ca(), D = (S = s == null ? void 0 : s.functionDetails) == null ? void 0 : S.id;
|
|
10071
10072
|
return re(() => {
|
|
10072
|
-
|
|
10073
|
-
}, [
|
|
10073
|
+
f(!1);
|
|
10074
|
+
}, [D]), /* @__PURE__ */ t(us, { direction: "up", in: !!s, mountOnEnter: !0, unmountOnExit: !0, appear: !0, children: /* @__PURE__ */ T(
|
|
10074
10075
|
O,
|
|
10075
10076
|
{
|
|
10076
10077
|
sx: {
|
|
@@ -10085,36 +10086,59 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10085
10086
|
maxHeight: "60vh",
|
|
10086
10087
|
overflow: "hidden",
|
|
10087
10088
|
// clip to the rounded top; inner area owns the scroll
|
|
10088
|
-
backgroundColor: Ke((
|
|
10089
|
+
backgroundColor: Ke((x = i.palette) == null ? void 0 : x.background.default, 0.8),
|
|
10089
10090
|
backdropFilter: "blur(2px)",
|
|
10090
|
-
border: `1px solid ${
|
|
10091
|
-
borderTopLeftRadius:
|
|
10092
|
-
borderTopRightRadius:
|
|
10091
|
+
border: `1px solid ${i.palette.primary.dark}`,
|
|
10092
|
+
borderTopLeftRadius: 16,
|
|
10093
|
+
borderTopRightRadius: 16,
|
|
10093
10094
|
boxShadow: "0 -8px 24px rgba(0,0,0,0.35)"
|
|
10094
10095
|
},
|
|
10095
10096
|
children: [
|
|
10096
|
-
|
|
10097
|
+
y && /* @__PURE__ */ T(O, { sx: { flex: "1 1 auto", position: "relative", minHeight: 0, maxHeight: d ? 80 : 400, transition: "max-height 0.5s ease", overflowY: d ? "clip" : "auto", px: 1.5, pt: 1, pb: 1.25 }, children: [
|
|
10097
10098
|
/* @__PURE__ */ t(O, { sx: { position: "absolute", left: "45%", width: 36, height: 4, borderRadius: 2, top: 5, bgcolor: "divider", mb: 1 } }),
|
|
10098
10099
|
/* @__PURE__ */ T(Ie, { sx: { position: "absolute", m: 0, p: 0, right: "1.5%", top: 5 }, gap: 1, direction: "row", children: [
|
|
10099
|
-
/* @__PURE__ */ t(Ut, { onClick: /* @__PURE__ */ n(() =>
|
|
10100
|
-
/* @__PURE__ */ t(Ut, { onClick:
|
|
10100
|
+
/* @__PURE__ */ t(Ut, { onClick: /* @__PURE__ */ n(() => f(!d), "onClick"), type: "button", sx: { p: 0, color: i.palette.border.soft }, children: /* @__PURE__ */ t(Gd, { sx: { rotate: d ? "-90deg" : "90deg", fontSize: "20px" } }) }),
|
|
10101
|
+
/* @__PURE__ */ t(Ut, { onClick: k, type: "button", sx: { p: 0, color: i.palette.border.soft }, children: /* @__PURE__ */ t(rs, { sx: { fontSize: "18px" } }) })
|
|
10101
10102
|
] }),
|
|
10102
|
-
|
|
10103
|
+
r && ((A = y == null ? void 0 : y.functionDetails) == null ? void 0 : A.name) && /* @__PURE__ */ T(
|
|
10104
|
+
O,
|
|
10105
|
+
{
|
|
10106
|
+
sx: {
|
|
10107
|
+
fontFamily: i.typography.fontFamilyMono,
|
|
10108
|
+
fontSize: 9.5,
|
|
10109
|
+
letterSpacing: "0.14em",
|
|
10110
|
+
textTransform: "uppercase",
|
|
10111
|
+
color: i.palette.text.disabled,
|
|
10112
|
+
pt: 1.25,
|
|
10113
|
+
pb: 0.75,
|
|
10114
|
+
pr: 9,
|
|
10115
|
+
whiteSpace: "nowrap",
|
|
10116
|
+
overflow: "hidden",
|
|
10117
|
+
textOverflow: "ellipsis"
|
|
10118
|
+
},
|
|
10119
|
+
children: [
|
|
10120
|
+
r,
|
|
10121
|
+
" · ",
|
|
10122
|
+
y.functionDetails.name
|
|
10123
|
+
]
|
|
10124
|
+
}
|
|
10125
|
+
),
|
|
10126
|
+
/* @__PURE__ */ t(Br, { part: y, message: b ?? void 0, onGoing: I, embedded: !0 })
|
|
10103
10127
|
] }),
|
|
10104
|
-
|
|
10128
|
+
I && /* @__PURE__ */ t(
|
|
10105
10129
|
sa,
|
|
10106
10130
|
{
|
|
10107
10131
|
variant: "indeterminate",
|
|
10108
10132
|
sx: {
|
|
10109
10133
|
height: 2,
|
|
10110
10134
|
flexShrink: 0,
|
|
10111
|
-
backgroundColor: Ke(
|
|
10135
|
+
backgroundColor: Ke(i.palette.primary.dark, 0.15),
|
|
10112
10136
|
"& .MuiLinearProgress-bar1": {
|
|
10113
|
-
backgroundColor:
|
|
10137
|
+
backgroundColor: i.palette.primary.main,
|
|
10114
10138
|
opacity: 0.5
|
|
10115
10139
|
},
|
|
10116
10140
|
"& .MuiLinearProgress-bar2": {
|
|
10117
|
-
backgroundColor:
|
|
10141
|
+
backgroundColor: i.palette.primary.dark,
|
|
10118
10142
|
opacity: 0.8
|
|
10119
10143
|
}
|
|
10120
10144
|
}
|