@inf-monkeys-tech/monkeys-design 1.0.73 → 1.0.74
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/agent-workbench/index.d.mts +1 -1
- package/dist/components/agent-workbench/index.d.ts +1 -1
- package/dist/components/agent-workbench/index.js +2 -19
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +3 -20
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ interface AgentWorkbenchMessageActionsProps extends HTMLAttributes<HTMLDivElemen
|
|
|
130
130
|
}
|
|
131
131
|
interface AgentWorkbenchMessageActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
132
132
|
label: string;
|
|
133
|
-
tooltip?:
|
|
133
|
+
tooltip?: string;
|
|
134
134
|
}
|
|
135
135
|
declare const AgentWorkbenchMessage: React.ForwardRefExoticComponent<AgentWorkbenchMessageProps & React.RefAttributes<HTMLDivElement>>;
|
|
136
136
|
declare const AgentWorkbenchMessageContent: React.ForwardRefExoticComponent<AgentWorkbenchMessageContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -130,7 +130,7 @@ interface AgentWorkbenchMessageActionsProps extends HTMLAttributes<HTMLDivElemen
|
|
|
130
130
|
}
|
|
131
131
|
interface AgentWorkbenchMessageActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
132
132
|
label: string;
|
|
133
|
-
tooltip?:
|
|
133
|
+
tooltip?: string;
|
|
134
134
|
}
|
|
135
135
|
declare const AgentWorkbenchMessage: React.ForwardRefExoticComponent<AgentWorkbenchMessageProps & React.RefAttributes<HTMLDivElement>>;
|
|
136
136
|
declare const AgentWorkbenchMessageContent: React.ForwardRefExoticComponent<AgentWorkbenchMessageContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3105,15 +3105,14 @@ var AgentWorkbenchMessageActions = React5.forwardRef(function AgentWorkbenchMess
|
|
|
3105
3105
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...actionsProps, ref, className: cn2("flex min-w-0 items-center gap-1", className), children });
|
|
3106
3106
|
});
|
|
3107
3107
|
var AgentWorkbenchMessageAction = React5.forwardRef(function AgentWorkbenchMessageAction2({ children, label, tooltip, className, disabled = false, type = "button", ...buttonProps }, ref) {
|
|
3108
|
-
|
|
3109
|
-
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3108
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3110
3109
|
"button",
|
|
3111
3110
|
{
|
|
3112
3111
|
...buttonProps,
|
|
3113
3112
|
ref,
|
|
3114
3113
|
type,
|
|
3115
3114
|
"aria-label": label,
|
|
3116
|
-
|
|
3115
|
+
title: tooltip,
|
|
3117
3116
|
disabled,
|
|
3118
3117
|
className: cn2(
|
|
3119
3118
|
"inline-flex size-8 shrink-0 items-center justify-center rounded-md border-0 bg-transparent text-muted-foreground shadow-none transition-colors",
|
|
@@ -3124,22 +3123,6 @@ var AgentWorkbenchMessageAction = React5.forwardRef(function AgentWorkbenchMessa
|
|
|
3124
3123
|
children
|
|
3125
3124
|
}
|
|
3126
3125
|
);
|
|
3127
|
-
if (!tooltip) return button;
|
|
3128
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "group/message-action relative inline-flex", children: [
|
|
3129
|
-
button,
|
|
3130
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3131
|
-
"span",
|
|
3132
|
-
{
|
|
3133
|
-
id: tooltipId,
|
|
3134
|
-
role: "tooltip",
|
|
3135
|
-
className: cn2(
|
|
3136
|
-
"pointer-events-none absolute bottom-full left-1/2 z-50 mb-2 -translate-x-1/2 whitespace-nowrap rounded-md border border-border bg-popover px-2 py-1 text-xs text-popover-foreground shadow-md",
|
|
3137
|
-
"invisible opacity-0 transition-opacity group-hover/message-action:visible group-hover/message-action:opacity-100 group-focus-within/message-action:visible group-focus-within/message-action:opacity-100"
|
|
3138
|
-
),
|
|
3139
|
-
children: tooltip
|
|
3140
|
-
}
|
|
3141
|
-
)
|
|
3142
|
-
] });
|
|
3143
3126
|
});
|
|
3144
3127
|
function materializeMessages(events) {
|
|
3145
3128
|
const messages = /* @__PURE__ */ new Map();
|