@usecrow/ui 0.1.51 → 0.1.52
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.cjs +17 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1982,7 +1982,6 @@ function WidgetHeader({
|
|
|
1982
1982
|
onNewChat,
|
|
1983
1983
|
onToggleHistory,
|
|
1984
1984
|
showMinimize = false,
|
|
1985
|
-
isMinimized = false,
|
|
1986
1985
|
onToggleMinimize
|
|
1987
1986
|
}) {
|
|
1988
1987
|
const { agentName, styles } = useWidgetStyleContext();
|
|
@@ -2004,7 +2003,7 @@ function WidgetHeader({
|
|
|
2004
2003
|
}
|
|
2005
2004
|
) }),
|
|
2006
2005
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "crow-flex crow-items-center crow-gap-1", children: [
|
|
2007
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2006
|
+
isVerifiedUser ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2008
2007
|
"button",
|
|
2009
2008
|
{
|
|
2010
2009
|
onClick: onNewChat,
|
|
@@ -2013,6 +2012,15 @@ function WidgetHeader({
|
|
|
2013
2012
|
title: "New Chat",
|
|
2014
2013
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { size: 18, className: "crow-text-gray-700" })
|
|
2015
2014
|
}
|
|
2015
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2016
|
+
"button",
|
|
2017
|
+
{
|
|
2018
|
+
onClick: onNewChat,
|
|
2019
|
+
className: "crow-p-1.5 hover:crow-bg-gray-200 crow-rounded crow-transition-colors",
|
|
2020
|
+
"aria-label": "Restart Chat",
|
|
2021
|
+
title: "Restart Chat",
|
|
2022
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { size: 16, className: "crow-text-gray-700" })
|
|
2023
|
+
}
|
|
2016
2024
|
),
|
|
2017
2025
|
isVerifiedUser && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2018
2026
|
"button",
|
|
@@ -2028,9 +2036,10 @@ function WidgetHeader({
|
|
|
2028
2036
|
"button",
|
|
2029
2037
|
{
|
|
2030
2038
|
onClick: onToggleMinimize,
|
|
2031
|
-
className: "crow-p-1 hover:crow-bg-gray-200 crow-rounded crow-transition-colors",
|
|
2032
|
-
"aria-label":
|
|
2033
|
-
|
|
2039
|
+
className: "crow-p-1.5 hover:crow-bg-gray-200 crow-rounded crow-transition-colors",
|
|
2040
|
+
"aria-label": "Close chat",
|
|
2041
|
+
title: "Close chat",
|
|
2042
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 18, className: "crow-text-gray-700" })
|
|
2034
2043
|
}
|
|
2035
2044
|
)
|
|
2036
2045
|
] })
|
|
@@ -3828,7 +3837,9 @@ function CrowWidget({
|
|
|
3828
3837
|
isVerifiedUser,
|
|
3829
3838
|
showConversationList,
|
|
3830
3839
|
onNewChat: handleNewChat,
|
|
3831
|
-
onToggleHistory: handleToggleHistory
|
|
3840
|
+
onToggleHistory: handleToggleHistory,
|
|
3841
|
+
showMinimize: variant === "floating",
|
|
3842
|
+
onToggleMinimize: () => setIsCollapsed(true)
|
|
3832
3843
|
}
|
|
3833
3844
|
),
|
|
3834
3845
|
/* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: showConversationList && isVerifiedUser && /* @__PURE__ */ jsxRuntime.jsx(
|