@dust-tt/sparkle 0.2.187 → 0.2.189
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/cjs/index.js
CHANGED
|
@@ -74829,7 +74829,10 @@ var MinimalVariantContent = function (_a) {
|
|
|
74829
74829
|
onActionClick === null || onActionClick === void 0 ? void 0 : onActionClick();
|
|
74830
74830
|
} }));
|
|
74831
74831
|
return (React.createElement(React.Fragment, null,
|
|
74832
|
-
React.createElement("div", { id: "assistant-container", className: "s-flex s-grow s-flex-col s-justify-start s-gap-2 s-overflow-hidden s-py-1", onClick:
|
|
74832
|
+
React.createElement("div", { id: "assistant-container", className: "s-flex s-grow s-flex-col s-justify-start s-gap-2 s-overflow-hidden s-py-1", onClick: function (e) {
|
|
74833
|
+
e.stopPropagation();
|
|
74834
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
74835
|
+
} },
|
|
74833
74836
|
React.createElement("div", { className: "s-flex s-flex-row s-justify-between s-gap-2 s-overflow-hidden" },
|
|
74834
74837
|
React.createElement("div", { id: "preview", className: "s-flex s-w-full s-min-w-0 s-flex-row s-items-center s-gap-2" },
|
|
74835
74838
|
React.createElement("div", { id: "avatar-column", className: "s-w-fit" },
|
|
@@ -75651,13 +75654,13 @@ function Citation(_a) {
|
|
|
75651
75654
|
? "s-z-50 s-h-5 s-w-5 s-rounded-full s-bg-slate-950/30"
|
|
75652
75655
|
: "") },
|
|
75653
75656
|
React.createElement(IconButton, { icon: SvgXCircle$1, variant: type === "image" ? "white" : "tertiary", onClick: onClose })))),
|
|
75654
|
-
React.createElement(
|
|
75655
|
-
React.createElement("div", { className: classNames("s-line-clamp-1 s-text-sm s-text-element-800", size === "sm" ? "s-font-bold" : "s-font-semibold") }, title)),
|
|
75657
|
+
React.createElement("div", { className: classNames("s-line-clamp-1 s-text-sm s-text-element-800", size === "sm" ? "s-font-bold" : "s-font-semibold") }, title),
|
|
75656
75658
|
description && (React.createElement("div", { className: "s-line-clamp-2 s-text-xs s-font-normal s-text-element-700" }, description))));
|
|
75657
|
-
return (React.createElement(
|
|
75658
|
-
|
|
75659
|
-
React.createElement(
|
|
75660
|
-
|
|
75659
|
+
return (React.createElement(Tooltip, { label: title, position: "above" },
|
|
75660
|
+
React.createElement(CardButton, __assign({ variant: "secondary", size: "sm", className: classNames("s-relative s-flex s-w-48 s-flex-none s-flex-col s-gap-1", sizing === "fluid" ? typeSizing[sizing] : typeSizing[sizing][size], size === "sm" ? "sm:s-w-64" : "", isBlinking ? "s-animate-[bgblink_500ms_3]" : "", type === "image" ? "s-min-h-20" : "") }, (href && { href: href, target: "_blank", rel: "noopener noreferrer" })),
|
|
75661
|
+
isLoading && (React.createElement("div", { className: "s-absolute s-inset-0 s-flex s-items-center s-justify-center" },
|
|
75662
|
+
React.createElement(Spinner, { size: "xs", variant: "color" }))),
|
|
75663
|
+
React.createElement("div", { className: isLoading ? "s-opacity-50" : "" }, cardContent))));
|
|
75661
75664
|
}
|
|
75662
75665
|
|
|
75663
75666
|
function ZoomableImageCitationWrapper(_a) {
|