@lastbrain/ai-ui-react 1.0.71 → 1.0.72
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.
|
@@ -252,7 +252,7 @@ export function AiStatusButton({ status, loading = false, className = "", size =
|
|
|
252
252
|
const tooltipNode = showTooltip && canPortal
|
|
253
253
|
? createPortal(_jsx("div", { ref: tooltipRef, className: "ai-popover ai-tooltip ai-status-tooltip", style: tooltipStyle, onMouseEnter: () => setShowTooltip(true), onMouseLeave: closeTooltip, children: lbStatus === "ready" && user ? (_jsx(_Fragment, { children: _jsxs("div", { className: "ai-popover-body", children: [_jsx("div", { className: "ai-popover-header", children: "API Status" }), _jsx("div", { className: "ai-popover-section ai-popover-section--first", children: _jsxs("div", { className: "ai-popover-row", children: [_jsx("span", { className: "ai-popover-label", children: "User" }), _jsx("span", { className: "ai-popover-value ai-truncate max-w-[200px]", children: user.email })] }) }), _jsxs("div", { className: "ai-popover-section", children: [_jsxs("div", { className: "ai-popover-row", children: [_jsx("span", { className: "ai-popover-label", children: "API Key" }), _jsxs("div", { className: "ai-row", children: [lbIsLoadingStatus ? (_jsx("div", { className: "ai-kv-skeleton w-[110px]" })) : (_jsx("span", { className: "ai-popover-value", children: effectiveStatus?.apiKey?.name ||
|
|
254
254
|
effectiveStatus?.api_key?.name ||
|
|
255
|
-
"Unknown" })), switchApiKey ? (_jsx("button", { type: "button", className: "ai-icon-btn", onClick: (e) => {
|
|
255
|
+
"Unknown" })), switchApiKey && !isApiKeyAuthMode ? (_jsx("button", { type: "button", className: "ai-icon-btn", onClick: (e) => {
|
|
256
256
|
e.stopPropagation();
|
|
257
257
|
setShowTooltip(false);
|
|
258
258
|
setShowApiKeySelector(true);
|
package/package.json
CHANGED