@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChevronDown, Check, ChevronRight, Circle, ChevronUp, ArrowUp, ArrowDown, Pencil, Trash2, Image, File, LoaderCircle, CircleAlert, RotateCcw, X, Paperclip, FileText, Mic, Send, Square, ShoppingBag, Code2, Search, Palette, Sparkles, ArrowLeft, Upload, ArrowUpRight, Plus, Pin, SquarePen, Blocks, MessageSquare, Bot, Settings, AlertCircle, RefreshCw, Loader2, Clock3, TerminalSquare, FileOutput, Download, ListFilter, Link2, ExternalLink, PanelRightClose, Wrench, BookOpen, CheckCircle2, XCircle, CircleStop, GitFork, PencilLine, Copy, FileCode2, Files, TestTube2, Globe2, Film, Presentation, FileImage, Music2, Ellipsis } from 'lucide-react';
|
|
2
2
|
import * as React5 from 'react';
|
|
3
|
-
import { useImperativeHandle, forwardRef,
|
|
3
|
+
import { useImperativeHandle, forwardRef, createContext, useRef, useState, useMemo, useEffect, useContext } from 'react';
|
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -3074,15 +3074,14 @@ var AgentWorkbenchMessageActions = forwardRef(function AgentWorkbenchMessageActi
|
|
|
3074
3074
|
return /* @__PURE__ */ jsx("div", { ...actionsProps, ref, className: cn2("flex min-w-0 items-center gap-1", className), children });
|
|
3075
3075
|
});
|
|
3076
3076
|
var AgentWorkbenchMessageAction = forwardRef(function AgentWorkbenchMessageAction2({ children, label, tooltip, className, disabled = false, type = "button", ...buttonProps }, ref) {
|
|
3077
|
-
|
|
3078
|
-
const button = /* @__PURE__ */ jsx(
|
|
3077
|
+
return /* @__PURE__ */ jsx(
|
|
3079
3078
|
"button",
|
|
3080
3079
|
{
|
|
3081
3080
|
...buttonProps,
|
|
3082
3081
|
ref,
|
|
3083
3082
|
type,
|
|
3084
3083
|
"aria-label": label,
|
|
3085
|
-
|
|
3084
|
+
title: tooltip,
|
|
3086
3085
|
disabled,
|
|
3087
3086
|
className: cn2(
|
|
3088
3087
|
"inline-flex size-8 shrink-0 items-center justify-center rounded-md border-0 bg-transparent text-muted-foreground shadow-none transition-colors",
|
|
@@ -3093,22 +3092,6 @@ var AgentWorkbenchMessageAction = forwardRef(function AgentWorkbenchMessageActio
|
|
|
3093
3092
|
children
|
|
3094
3093
|
}
|
|
3095
3094
|
);
|
|
3096
|
-
if (!tooltip) return button;
|
|
3097
|
-
return /* @__PURE__ */ jsxs("span", { className: "group/message-action relative inline-flex", children: [
|
|
3098
|
-
button,
|
|
3099
|
-
/* @__PURE__ */ jsx(
|
|
3100
|
-
"span",
|
|
3101
|
-
{
|
|
3102
|
-
id: tooltipId,
|
|
3103
|
-
role: "tooltip",
|
|
3104
|
-
className: cn2(
|
|
3105
|
-
"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",
|
|
3106
|
-
"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"
|
|
3107
|
-
),
|
|
3108
|
-
children: tooltip
|
|
3109
|
-
}
|
|
3110
|
-
)
|
|
3111
|
-
] });
|
|
3112
3095
|
});
|
|
3113
3096
|
function materializeMessages(events) {
|
|
3114
3097
|
const messages = /* @__PURE__ */ new Map();
|