@hanzo/ui 8.27.7 → 8.27.8
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/agents/ChannelMembers.cjs +8 -0
- package/dist/agents/ChannelMembers.d.ts +17 -0
- package/dist/agents/ChannelMembers.d.ts.map +1 -0
- package/dist/agents/ChannelMembers.js +5 -0
- package/dist/agents/ChannelMembers.js.map +1 -0
- package/dist/agents/ChannelNotes.cjs +15 -0
- package/dist/agents/ChannelNotes.d.ts +11 -0
- package/dist/agents/ChannelNotes.d.ts.map +1 -0
- package/dist/agents/ChannelNotes.js +12 -0
- package/dist/agents/ChannelNotes.js.map +1 -0
- package/dist/agents/DiffViewer.cjs +47 -0
- package/dist/agents/DiffViewer.d.ts +10 -0
- package/dist/agents/DiffViewer.d.ts.map +1 -0
- package/dist/agents/DiffViewer.js +44 -0
- package/dist/agents/DiffViewer.js.map +1 -0
- package/dist/agents/LiveVoiceCall.cjs +62 -0
- package/dist/agents/LiveVoiceCall.d.ts +17 -0
- package/dist/agents/LiveVoiceCall.d.ts.map +1 -0
- package/dist/agents/LiveVoiceCall.js +59 -0
- package/dist/agents/LiveVoiceCall.js.map +1 -0
- package/dist/agents/MCPHub.cjs +14 -0
- package/dist/agents/MCPHub.d.ts +24 -0
- package/dist/agents/MCPHub.d.ts.map +1 -0
- package/dist/agents/MCPHub.js +11 -0
- package/dist/agents/MCPHub.js.map +1 -0
- package/dist/agents/ShortcutsSheet.cjs +24 -0
- package/dist/agents/ShortcutsSheet.d.ts +14 -0
- package/dist/agents/ShortcutsSheet.d.ts.map +1 -0
- package/dist/agents/ShortcutsSheet.js +21 -0
- package/dist/agents/ShortcutsSheet.js.map +1 -0
- package/dist/agents/SwarmBar.cjs +19 -0
- package/dist/agents/SwarmBar.d.ts +20 -0
- package/dist/agents/SwarmBar.d.ts.map +1 -0
- package/dist/agents/SwarmBar.js +16 -0
- package/dist/agents/SwarmBar.js.map +1 -0
- package/dist/agents/ThemeCustomizer.cjs +20 -0
- package/dist/agents/ThemeCustomizer.d.ts +13 -0
- package/dist/agents/ThemeCustomizer.d.ts.map +1 -0
- package/dist/agents/ThemeCustomizer.js +17 -0
- package/dist/agents/ThemeCustomizer.js.map +1 -0
- package/dist/agents/index.cjs +17 -1
- package/dist/agents/index.d.ts +8 -0
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +8 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/gallery.html +1 -1
- package/dist/gui-config.d.ts +30 -0
- package/dist/gui-config.d.ts.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.node.cjs +5 -1
- package/dist/index.node.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelMembers = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ChannelMembers = ({ members, onInvite, onDirectMessage, className = '', }) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col gap-3 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Channel Members Roster", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-base", children: "\uD83D\uDC65" }), (0, jsx_runtime_1.jsxs)("h3", { className: "text-xs font-semibold text-white uppercase tracking-wider", children: ["Members (", members.length, ")"] })] }), onInvite && ((0, jsx_runtime_1.jsx)("button", { onClick: onInvite, className: "px-2.5 py-1 text-xs font-medium text-neutral-300 hover:text-white bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg transition-all", children: "+ Invite" }))] }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-1.5 max-h-56 overflow-y-auto pr-1", children: members.map((m) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between p-2 rounded-xl bg-white/5 hover:bg-white/10 transition-colors", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2.5", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-7 h-7 rounded-full bg-neutral-800 flex items-center justify-center text-xs font-semibold text-neutral-300 border border-white/10", children: m.avatar || m.name.slice(0, 2).toUpperCase() }), m.online && ((0, jsx_runtime_1.jsx)("span", { className: "absolute bottom-0 right-0 w-2 h-2 rounded-full bg-emerald-400 border border-neutral-900" }))] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [(0, jsx_runtime_1.jsxs)("span", { className: "text-xs font-medium text-white flex items-center gap-1.5", children: [m.name, m.isAgent && ((0, jsx_runtime_1.jsx)("span", { className: "px-1.5 py-0.2 rounded text-[9px] bg-indigo-500/20 text-indigo-300 font-bold border border-indigo-500/30", children: "AGENT" }))] }), (0, jsx_runtime_1.jsx)("span", { className: "text-[10px] text-neutral-400", children: m.role })] })] }), onDirectMessage && !m.isAgent && ((0, jsx_runtime_1.jsx)("button", { onClick: () => onDirectMessage(m.id), className: "px-2 py-0.5 text-[11px] text-neutral-400 hover:text-white bg-white/5 rounded-md transition-colors", children: "DM" }))] }, m.id))) })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.ChannelMembers = ChannelMembers;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ChannelMember {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
role: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
isAgent?: boolean;
|
|
8
|
+
online?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ChannelMembersProps {
|
|
11
|
+
members: ChannelMember[];
|
|
12
|
+
onInvite?: () => void;
|
|
13
|
+
onDirectMessage?: (memberId: string) => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const ChannelMembers: React.FC<ChannelMembersProps>;
|
|
17
|
+
//# sourceMappingURL=ChannelMembers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelMembers.d.ts","sourceRoot":"","sources":["../../src/agents/ChannelMembers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqExD,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const ChannelMembers = ({ members, onInvite, onDirectMessage, className = '', }) => {
|
|
3
|
+
return (_jsxs("div", { className: `flex flex-col gap-3 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Channel Members Roster", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-base", children: "\uD83D\uDC65" }), _jsxs("h3", { className: "text-xs font-semibold text-white uppercase tracking-wider", children: ["Members (", members.length, ")"] })] }), onInvite && (_jsx("button", { onClick: onInvite, className: "px-2.5 py-1 text-xs font-medium text-neutral-300 hover:text-white bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg transition-all", children: "+ Invite" }))] }), _jsx("div", { className: "flex flex-col gap-1.5 max-h-56 overflow-y-auto pr-1", children: members.map((m) => (_jsxs("div", { className: "flex items-center justify-between p-2 rounded-xl bg-white/5 hover:bg-white/10 transition-colors", children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [_jsxs("div", { className: "relative", children: [_jsx("div", { className: "w-7 h-7 rounded-full bg-neutral-800 flex items-center justify-center text-xs font-semibold text-neutral-300 border border-white/10", children: m.avatar || m.name.slice(0, 2).toUpperCase() }), m.online && (_jsx("span", { className: "absolute bottom-0 right-0 w-2 h-2 rounded-full bg-emerald-400 border border-neutral-900" }))] }), _jsxs("div", { className: "flex flex-col", children: [_jsxs("span", { className: "text-xs font-medium text-white flex items-center gap-1.5", children: [m.name, m.isAgent && (_jsx("span", { className: "px-1.5 py-0.2 rounded text-[9px] bg-indigo-500/20 text-indigo-300 font-bold border border-indigo-500/30", children: "AGENT" }))] }), _jsx("span", { className: "text-[10px] text-neutral-400", children: m.role })] })] }), onDirectMessage && !m.isAgent && (_jsx("button", { onClick: () => onDirectMessage(m.id), className: "px-2 py-0.5 text-[11px] text-neutral-400 hover:text-white bg-white/5 rounded-md transition-colors", children: "DM" }))] }, m.id))) })] }));
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=ChannelMembers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelMembers.js","sourceRoot":"","sources":["../../src/agents/ChannelMembers.tsx"],"names":[],"mappings":";AAkBA,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC5D,OAAO,EACP,QAAQ,EACR,eAAe,EACf,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,OAAO,CACL,eACE,SA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0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelNotes = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const ChannelNotes = ({ channelName, notes, onSaveNotes, onExtractActionItems, isLiveNoteTakerActive = false, className = '', }) => {
|
|
7
|
+
const [content, setContent] = (0, react_1.useState)(notes);
|
|
8
|
+
const [isEditing, setIsEditing] = (0, react_1.useState)(false);
|
|
9
|
+
const handleSave = () => {
|
|
10
|
+
onSaveNotes(content);
|
|
11
|
+
setIsEditing(false);
|
|
12
|
+
};
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col gap-3 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Channel Collaborative Notes", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-base", children: "\uD83D\uDCDD" }), (0, jsx_runtime_1.jsxs)("h3", { className: "text-xs font-semibold text-white uppercase tracking-wider", children: ["Notes \u00B7 #", channelName] }), isLiveNoteTakerActive && ((0, jsx_runtime_1.jsxs)("span", { className: "flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] bg-emerald-500/20 text-emerald-300 font-medium border border-emerald-500/30", children: [(0, jsx_runtime_1.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse" }), "AI Note Taker"] }))] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-1.5", children: [onExtractActionItems && ((0, jsx_runtime_1.jsx)("button", { onClick: () => onExtractActionItems(content), className: "px-2.5 py-1 text-xs font-medium text-purple-300 bg-purple-500/10 hover:bg-purple-500/20 border border-purple-500/30 rounded-lg transition-all", title: "Extract tasks and action items from notes", children: "\u2728 Extract Tasks" })), isEditing ? ((0, jsx_runtime_1.jsx)("button", { onClick: handleSave, className: "px-2.5 py-1 text-xs font-semibold text-white bg-indigo-600 hover:bg-indigo-500 rounded-lg transition-all", children: "Save" })) : ((0, jsx_runtime_1.jsx)("button", { onClick: () => setIsEditing(true), className: "px-2.5 py-1 text-xs font-medium text-neutral-300 hover:text-white bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg transition-all", children: "Edit" }))] })] }), isEditing ? ((0, jsx_runtime_1.jsx)("textarea", { value: content, onChange: (e) => setContent(e.target.value), placeholder: "Write shared channel notes, meeting agenda, or AI summaries...", rows: 6, className: "w-full p-3 bg-neutral-950/80 border border-white/10 rounded-xl text-xs text-neutral-200 font-mono focus:outline-none focus:border-indigo-500 resize-y" })) : ((0, jsx_runtime_1.jsx)("div", { className: "p-3 bg-neutral-950/40 border border-white/5 rounded-xl text-xs text-neutral-300 whitespace-pre-wrap font-mono max-h-60 overflow-y-auto leading-relaxed", children: content || (0, jsx_runtime_1.jsx)("span", { className: "text-neutral-500 italic", children: "No notes recorded yet for this channel." }) }))] }));
|
|
14
|
+
};
|
|
15
|
+
exports.ChannelNotes = ChannelNotes;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ChannelNotesProps {
|
|
3
|
+
channelName: string;
|
|
4
|
+
notes: string;
|
|
5
|
+
onSaveNotes: (notes: string) => void;
|
|
6
|
+
onExtractActionItems?: (notes: string) => void;
|
|
7
|
+
isLiveNoteTakerActive?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ChannelNotes: React.FC<ChannelNotesProps>;
|
|
11
|
+
//# sourceMappingURL=ChannelNotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelNotes.d.ts","sourceRoot":"","sources":["../../src/agents/ChannelNotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+EpD,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
export const ChannelNotes = ({ channelName, notes, onSaveNotes, onExtractActionItems, isLiveNoteTakerActive = false, className = '', }) => {
|
|
4
|
+
const [content, setContent] = useState(notes);
|
|
5
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
6
|
+
const handleSave = () => {
|
|
7
|
+
onSaveNotes(content);
|
|
8
|
+
setIsEditing(false);
|
|
9
|
+
};
|
|
10
|
+
return (_jsxs("div", { className: `flex flex-col gap-3 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Channel Collaborative Notes", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-base", children: "\uD83D\uDCDD" }), _jsxs("h3", { className: "text-xs font-semibold text-white uppercase tracking-wider", children: ["Notes \u00B7 #", channelName] }), isLiveNoteTakerActive && (_jsxs("span", { className: "flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] bg-emerald-500/20 text-emerald-300 font-medium border border-emerald-500/30", children: [_jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse" }), "AI Note Taker"] }))] }), _jsxs("div", { className: "flex items-center gap-1.5", children: [onExtractActionItems && (_jsx("button", { onClick: () => onExtractActionItems(content), className: "px-2.5 py-1 text-xs font-medium text-purple-300 bg-purple-500/10 hover:bg-purple-500/20 border border-purple-500/30 rounded-lg transition-all", title: "Extract tasks and action items from notes", children: "\u2728 Extract Tasks" })), isEditing ? (_jsx("button", { onClick: handleSave, className: "px-2.5 py-1 text-xs font-semibold text-white bg-indigo-600 hover:bg-indigo-500 rounded-lg transition-all", children: "Save" })) : (_jsx("button", { onClick: () => setIsEditing(true), className: "px-2.5 py-1 text-xs font-medium text-neutral-300 hover:text-white bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg transition-all", children: "Edit" }))] })] }), isEditing ? (_jsx("textarea", { value: content, onChange: (e) => setContent(e.target.value), placeholder: "Write shared channel notes, meeting agenda, or AI summaries...", rows: 6, className: "w-full p-3 bg-neutral-950/80 border border-white/10 rounded-xl text-xs text-neutral-200 font-mono focus:outline-none focus:border-indigo-500 resize-y" })) : (_jsx("div", { className: "p-3 bg-neutral-950/40 border border-white/5 rounded-xl text-xs text-neutral-300 whitespace-pre-wrap font-mono max-h-60 overflow-y-auto leading-relaxed", children: content || _jsx("span", { className: "text-neutral-500 italic", children: "No notes recorded yet for this channel." }) }))] }));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=ChannelNotes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelNotes.js","sourceRoot":"","sources":["../../src/agents/ChannelNotes.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAWvC,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,WAAW,EACX,KAAK,EACL,WAAW,EACX,oBAAoB,EACpB,qBAAqB,GAAG,KAAK,EAC7B,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7C,MAAM,CAAC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AC,wJAAwJ,YACpK,OAAO,IAAI,eAAM,SAAS,EAAC,yBAAyB,wDAA+C,GAChG,CACP,IACG,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiffViewer = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
function computeDiff(original, modified) {
|
|
7
|
+
const origLines = original.split('\n');
|
|
8
|
+
const modLines = modified.split('\n');
|
|
9
|
+
const lines = [];
|
|
10
|
+
let i = 0;
|
|
11
|
+
let j = 0;
|
|
12
|
+
while (i < origLines.length || j < modLines.length) {
|
|
13
|
+
if (i < origLines.length && j < modLines.length) {
|
|
14
|
+
if (origLines[i] === modLines[j]) {
|
|
15
|
+
lines.push({ type: 'same', content: origLines[i], oldNum: i + 1, newNum: j + 1 });
|
|
16
|
+
i++;
|
|
17
|
+
j++;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
lines.push({ type: 'remove', content: origLines[i], oldNum: i + 1 });
|
|
21
|
+
i++;
|
|
22
|
+
lines.push({ type: 'add', content: modLines[j], newNum: j + 1 });
|
|
23
|
+
j++;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else if (i < origLines.length) {
|
|
27
|
+
lines.push({ type: 'remove', content: origLines[i], oldNum: i + 1 });
|
|
28
|
+
i++;
|
|
29
|
+
}
|
|
30
|
+
else if (j < modLines.length) {
|
|
31
|
+
lines.push({ type: 'add', content: modLines[j], newNum: j + 1 });
|
|
32
|
+
j++;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return lines;
|
|
36
|
+
}
|
|
37
|
+
const DiffViewer = ({ originalCode, modifiedCode, filename, className = '', }) => {
|
|
38
|
+
const diffLines = (0, react_1.useMemo)(() => computeDiff(originalCode, modifiedCode), [originalCode, modifiedCode]);
|
|
39
|
+
const additions = diffLines.filter((l) => l.type === 'add').length;
|
|
40
|
+
const deletions = diffLines.filter((l) => l.type === 'remove').length;
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col border border-white/10 rounded-xl overflow-hidden bg-neutral-950/80 font-mono text-xs ${className}`, children: [filename && ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between px-3 py-2 bg-neutral-900/80 border-b border-white/10", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-300 font-semibold", children: filename }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsxs)("span", { className: "text-emerald-400 font-semibold", children: ["+", additions] }), (0, jsx_runtime_1.jsxs)("span", { className: "text-rose-400 font-semibold", children: ["-", deletions] })] })] })), (0, jsx_runtime_1.jsx)("div", { className: "overflow-x-auto divide-y divide-white/5 py-1", children: diffLines.map((line, idx) => ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-stretch px-2 py-0.5 leading-5 select-text ${line.type === 'add'
|
|
42
|
+
? 'bg-emerald-950/40 text-emerald-300'
|
|
43
|
+
: line.type === 'remove'
|
|
44
|
+
? 'bg-rose-950/40 text-rose-300'
|
|
45
|
+
: 'text-neutral-400 hover:bg-white/5'}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "w-8 text-right pr-2 text-neutral-600 select-none shrink-0 font-mono", children: line.oldNum || '' }), (0, jsx_runtime_1.jsx)("div", { className: "w-8 text-right pr-2 text-neutral-600 select-none shrink-0 font-mono", children: line.newNum || '' }), (0, jsx_runtime_1.jsx)("div", { className: "w-4 text-center select-none shrink-0", children: line.type === 'add' ? '+' : line.type === 'remove' ? '-' : ' ' }), (0, jsx_runtime_1.jsx)("pre", { className: "flex-1 overflow-x-auto whitespace-pre font-mono pl-1", children: line.content || ' ' })] }, idx))) })] }));
|
|
46
|
+
};
|
|
47
|
+
exports.DiffViewer = DiffViewer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DiffViewerProps {
|
|
3
|
+
originalCode: string;
|
|
4
|
+
modifiedCode: string;
|
|
5
|
+
filename?: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DiffViewer: React.FC<DiffViewerProps>;
|
|
10
|
+
//# sourceMappingURL=DiffViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiffViewer.d.ts","sourceRoot":"","sources":["../../src/agents/DiffViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAyCD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoDhD,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
function computeDiff(original, modified) {
|
|
4
|
+
const origLines = original.split('\n');
|
|
5
|
+
const modLines = modified.split('\n');
|
|
6
|
+
const lines = [];
|
|
7
|
+
let i = 0;
|
|
8
|
+
let j = 0;
|
|
9
|
+
while (i < origLines.length || j < modLines.length) {
|
|
10
|
+
if (i < origLines.length && j < modLines.length) {
|
|
11
|
+
if (origLines[i] === modLines[j]) {
|
|
12
|
+
lines.push({ type: 'same', content: origLines[i], oldNum: i + 1, newNum: j + 1 });
|
|
13
|
+
i++;
|
|
14
|
+
j++;
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
lines.push({ type: 'remove', content: origLines[i], oldNum: i + 1 });
|
|
18
|
+
i++;
|
|
19
|
+
lines.push({ type: 'add', content: modLines[j], newNum: j + 1 });
|
|
20
|
+
j++;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else if (i < origLines.length) {
|
|
24
|
+
lines.push({ type: 'remove', content: origLines[i], oldNum: i + 1 });
|
|
25
|
+
i++;
|
|
26
|
+
}
|
|
27
|
+
else if (j < modLines.length) {
|
|
28
|
+
lines.push({ type: 'add', content: modLines[j], newNum: j + 1 });
|
|
29
|
+
j++;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return lines;
|
|
33
|
+
}
|
|
34
|
+
export const DiffViewer = ({ originalCode, modifiedCode, filename, className = '', }) => {
|
|
35
|
+
const diffLines = useMemo(() => computeDiff(originalCode, modifiedCode), [originalCode, modifiedCode]);
|
|
36
|
+
const additions = diffLines.filter((l) => l.type === 'add').length;
|
|
37
|
+
const deletions = diffLines.filter((l) => l.type === 'remove').length;
|
|
38
|
+
return (_jsxs("div", { className: `flex flex-col border border-white/10 rounded-xl overflow-hidden bg-neutral-950/80 font-mono text-xs ${className}`, children: [filename && (_jsxs("div", { className: "flex items-center justify-between px-3 py-2 bg-neutral-900/80 border-b border-white/10", children: [_jsx("span", { className: "text-neutral-300 font-semibold", children: filename }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("span", { className: "text-emerald-400 font-semibold", children: ["+", additions] }), _jsxs("span", { className: "text-rose-400 font-semibold", children: ["-", deletions] })] })] })), _jsx("div", { className: "overflow-x-auto divide-y divide-white/5 py-1", children: diffLines.map((line, idx) => (_jsxs("div", { className: `flex items-stretch px-2 py-0.5 leading-5 select-text ${line.type === 'add'
|
|
39
|
+
? 'bg-emerald-950/40 text-emerald-300'
|
|
40
|
+
: line.type === 'remove'
|
|
41
|
+
? 'bg-rose-950/40 text-rose-300'
|
|
42
|
+
: 'text-neutral-400 hover:bg-white/5'}`, children: [_jsx("div", { className: "w-8 text-right pr-2 text-neutral-600 select-none shrink-0 font-mono", children: line.oldNum || '' }), _jsx("div", { className: "w-8 text-right pr-2 text-neutral-600 select-none shrink-0 font-mono", children: line.newNum || '' }), _jsx("div", { className: "w-4 text-center select-none shrink-0", children: line.type === 'add' ? '+' : line.type === 'remove' ? '-' : ' ' }), _jsx("pre", { className: "flex-1 overflow-x-auto whitespace-pre font-mono pl-1", children: line.content || ' ' })] }, idx))) })] }));
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=DiffViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiffViewer.js","sourceRoot":"","sources":["../../src/agents/DiffViewer.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAiBtC,SAAS,WAAW,CAAC,QAAgB,EAAE,QAAgB;IACrD,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACtC,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACrC,MAAM,KAAK,GAAe,EAAE,CAAA;IAE5B,IAAI,CAAC,GAAG,CAAC,CAAA;IACT,IAAI,CAAC,GAAG,CAAC,CAAA;IAET,OAAO,CAAC,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;QACnD,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;YAChD,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;gBACjC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;gBACjF,CAAC,EAAE,CAAA;gBACH,CAAC,EAAE,CAAA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OAAO,IAAI,GAAG,GAChB,KApBD,GAAG,CAqBJ,CACP,CAAC,GACE,IACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveVoiceCall = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const LiveVoiceCall = ({ active, muted, title = 'Duplex Voice Session', statusText = 'Connected · 24kHz Opus', transcripts = [], onToggleMute, onEndCall, className = '', }) => {
|
|
7
|
+
const canvasRef = (0, react_1.useRef)(null);
|
|
8
|
+
const animFrameRef = (0, react_1.useRef)(null);
|
|
9
|
+
(0, react_1.useEffect)(() => {
|
|
10
|
+
if (!active)
|
|
11
|
+
return;
|
|
12
|
+
const canvas = canvasRef.current;
|
|
13
|
+
if (!canvas)
|
|
14
|
+
return;
|
|
15
|
+
const ctx = canvas.getContext('2d');
|
|
16
|
+
if (!ctx)
|
|
17
|
+
return;
|
|
18
|
+
let phase = 0;
|
|
19
|
+
const render = () => {
|
|
20
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
21
|
+
const width = canvas.width;
|
|
22
|
+
const height = canvas.height;
|
|
23
|
+
const centerY = height / 2;
|
|
24
|
+
const bars = 36;
|
|
25
|
+
const barWidth = width / bars - 2;
|
|
26
|
+
for (let i = 0; i < bars; i++) {
|
|
27
|
+
const amplitude = muted
|
|
28
|
+
? 4
|
|
29
|
+
: Math.sin(phase + i * 0.3) * 18 + Math.cos(phase * 1.5 + i * 0.2) * 12 + 22;
|
|
30
|
+
const barHeight = Math.max(4, Math.abs(amplitude));
|
|
31
|
+
const gradient = ctx.createLinearGradient(0, centerY - barHeight, 0, centerY + barHeight);
|
|
32
|
+
if (muted) {
|
|
33
|
+
gradient.addColorStop(0, '#71717a');
|
|
34
|
+
gradient.addColorStop(1, '#3f3f46');
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
gradient.addColorStop(0, '#818cf8');
|
|
38
|
+
gradient.addColorStop(0.5, '#c084fc');
|
|
39
|
+
gradient.addColorStop(1, '#38bdf8');
|
|
40
|
+
}
|
|
41
|
+
ctx.fillStyle = gradient;
|
|
42
|
+
ctx.beginPath();
|
|
43
|
+
ctx.roundRect(i * (barWidth + 2), centerY - barHeight / 2, barWidth, barHeight, 4);
|
|
44
|
+
ctx.fill();
|
|
45
|
+
}
|
|
46
|
+
phase += muted ? 0.02 : 0.08;
|
|
47
|
+
animFrameRef.current = requestAnimationFrame(render);
|
|
48
|
+
};
|
|
49
|
+
render();
|
|
50
|
+
return () => {
|
|
51
|
+
if (animFrameRef.current) {
|
|
52
|
+
cancelAnimationFrame(animFrameRef.current);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}, [active, muted]);
|
|
56
|
+
if (!active)
|
|
57
|
+
return null;
|
|
58
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col gap-4 p-5 bg-neutral-900/80 backdrop-blur-xl border border-white/15 rounded-2xl shadow-2xl ${className}`, role: "dialog", "aria-label": "Live Voice Call", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "w-2.5 h-2.5 rounded-full bg-emerald-400 animate-pulse" }), (0, jsx_runtime_1.jsx)("h3", { className: "text-sm font-semibold text-white", children: title })] }), (0, jsx_runtime_1.jsx)("span", { className: "text-xs text-neutral-400 font-mono", children: statusText })] }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center p-4 bg-neutral-950/60 rounded-xl border border-white/5", children: (0, jsx_runtime_1.jsx)("canvas", { ref: canvasRef, width: 380, height: 70, className: "w-full h-[70px]" }) }), transcripts.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 max-h-40 overflow-y-auto pr-1", children: transcripts.map((t, idx) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-0.5 text-xs", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between text-[11px] text-neutral-500", children: [(0, jsx_runtime_1.jsx)("span", { className: "font-semibold text-neutral-300", children: t.speaker }), (0, jsx_runtime_1.jsx)("span", { children: t.time })] }), (0, jsx_runtime_1.jsx)("p", { className: "text-neutral-200 bg-white/5 p-2 rounded-lg", children: t.text })] }, idx))) })), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-center gap-3 pt-2", children: [(0, jsx_runtime_1.jsx)("button", { onClick: onToggleMute, className: `flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-semibold transition-all border ${muted
|
|
59
|
+
? 'bg-rose-500/20 text-rose-300 border-rose-500/40 hover:bg-rose-500/30'
|
|
60
|
+
: 'bg-white/10 text-white border-white/20 hover:bg-white/15'}`, children: (0, jsx_runtime_1.jsx)("span", { children: muted ? '🔇 Unmute' : '🎙️ Mute' }) }), (0, jsx_runtime_1.jsx)("button", { onClick: onEndCall, className: "flex items-center gap-2 px-4 py-2 bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold rounded-xl transition-all shadow-lg shadow-rose-600/30", children: (0, jsx_runtime_1.jsx)("span", { children: "\uD83D\uDCDE Leave Call" }) })] })] }));
|
|
61
|
+
};
|
|
62
|
+
exports.LiveVoiceCall = LiveVoiceCall;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LiveVoiceCallProps {
|
|
3
|
+
active: boolean;
|
|
4
|
+
muted: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
statusText?: string;
|
|
7
|
+
transcripts?: {
|
|
8
|
+
speaker: string;
|
|
9
|
+
text: string;
|
|
10
|
+
time: string;
|
|
11
|
+
}[];
|
|
12
|
+
onToggleMute: () => void;
|
|
13
|
+
onEndCall: () => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const LiveVoiceCall: React.FC<LiveVoiceCallProps>;
|
|
17
|
+
//# sourceMappingURL=LiveVoiceCall.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveVoiceCall.d.ts","sourceRoot":"","sources":["../../src/agents/LiveVoiceCall.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC/D,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0HtD,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
export const LiveVoiceCall = ({ active, muted, title = 'Duplex Voice Session', statusText = 'Connected · 24kHz Opus', transcripts = [], onToggleMute, onEndCall, className = '', }) => {
|
|
4
|
+
const canvasRef = useRef(null);
|
|
5
|
+
const animFrameRef = useRef(null);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
if (!active)
|
|
8
|
+
return;
|
|
9
|
+
const canvas = canvasRef.current;
|
|
10
|
+
if (!canvas)
|
|
11
|
+
return;
|
|
12
|
+
const ctx = canvas.getContext('2d');
|
|
13
|
+
if (!ctx)
|
|
14
|
+
return;
|
|
15
|
+
let phase = 0;
|
|
16
|
+
const render = () => {
|
|
17
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
18
|
+
const width = canvas.width;
|
|
19
|
+
const height = canvas.height;
|
|
20
|
+
const centerY = height / 2;
|
|
21
|
+
const bars = 36;
|
|
22
|
+
const barWidth = width / bars - 2;
|
|
23
|
+
for (let i = 0; i < bars; i++) {
|
|
24
|
+
const amplitude = muted
|
|
25
|
+
? 4
|
|
26
|
+
: Math.sin(phase + i * 0.3) * 18 + Math.cos(phase * 1.5 + i * 0.2) * 12 + 22;
|
|
27
|
+
const barHeight = Math.max(4, Math.abs(amplitude));
|
|
28
|
+
const gradient = ctx.createLinearGradient(0, centerY - barHeight, 0, centerY + barHeight);
|
|
29
|
+
if (muted) {
|
|
30
|
+
gradient.addColorStop(0, '#71717a');
|
|
31
|
+
gradient.addColorStop(1, '#3f3f46');
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
gradient.addColorStop(0, '#818cf8');
|
|
35
|
+
gradient.addColorStop(0.5, '#c084fc');
|
|
36
|
+
gradient.addColorStop(1, '#38bdf8');
|
|
37
|
+
}
|
|
38
|
+
ctx.fillStyle = gradient;
|
|
39
|
+
ctx.beginPath();
|
|
40
|
+
ctx.roundRect(i * (barWidth + 2), centerY - barHeight / 2, barWidth, barHeight, 4);
|
|
41
|
+
ctx.fill();
|
|
42
|
+
}
|
|
43
|
+
phase += muted ? 0.02 : 0.08;
|
|
44
|
+
animFrameRef.current = requestAnimationFrame(render);
|
|
45
|
+
};
|
|
46
|
+
render();
|
|
47
|
+
return () => {
|
|
48
|
+
if (animFrameRef.current) {
|
|
49
|
+
cancelAnimationFrame(animFrameRef.current);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}, [active, muted]);
|
|
53
|
+
if (!active)
|
|
54
|
+
return null;
|
|
55
|
+
return (_jsxs("div", { className: `flex flex-col gap-4 p-5 bg-neutral-900/80 backdrop-blur-xl border border-white/15 rounded-2xl shadow-2xl ${className}`, role: "dialog", "aria-label": "Live Voice Call", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "w-2.5 h-2.5 rounded-full bg-emerald-400 animate-pulse" }), _jsx("h3", { className: "text-sm font-semibold text-white", children: title })] }), _jsx("span", { className: "text-xs text-neutral-400 font-mono", children: statusText })] }), _jsx("div", { className: "flex items-center justify-center p-4 bg-neutral-950/60 rounded-xl border border-white/5", children: _jsx("canvas", { ref: canvasRef, width: 380, height: 70, className: "w-full h-[70px]" }) }), transcripts.length > 0 && (_jsx("div", { className: "flex flex-col gap-2 max-h-40 overflow-y-auto pr-1", children: transcripts.map((t, idx) => (_jsxs("div", { className: "flex flex-col gap-0.5 text-xs", children: [_jsxs("div", { className: "flex items-center justify-between text-[11px] text-neutral-500", children: [_jsx("span", { className: "font-semibold text-neutral-300", children: t.speaker }), _jsx("span", { children: t.time })] }), _jsx("p", { className: "text-neutral-200 bg-white/5 p-2 rounded-lg", children: t.text })] }, idx))) })), _jsxs("div", { className: "flex items-center justify-center gap-3 pt-2", children: [_jsx("button", { onClick: onToggleMute, className: `flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-semibold transition-all border ${muted
|
|
56
|
+
? 'bg-rose-500/20 text-rose-300 border-rose-500/40 hover:bg-rose-500/30'
|
|
57
|
+
: 'bg-white/10 text-white border-white/20 hover:bg-white/15'}`, children: _jsx("span", { children: muted ? '🔇 Unmute' : '🎙️ Mute' }) }), _jsx("button", { onClick: onEndCall, className: "flex items-center gap-2 px-4 py-2 bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold rounded-xl transition-all shadow-lg shadow-rose-600/30", children: _jsx("span", { children: "\uD83D\uDCDE Leave Call" }) })] })] }));
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=LiveVoiceCall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveVoiceCall.js","sourceRoot":"","sources":["../../src/agents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C,6CAA6C,aAC1D,iBACE,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,4FACT,KAAK;4BACH,CAAC,CAAC,sEAAsE;4BACxE,CAAC,CAAC,0DACN,EAAE,YAEF,yBAAO,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,GAAQ,GACxC,EAET,iBACE,OAAO,EAAE,SAAS,EAClB,SAAS,EAAC,yJAAyJ,YAEnK,qDAA0B,GACnB,IACL,IACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MCPHub = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const MCPHub = ({ servers, onToggleTool, onReconnect, onAddServer, className = '', }) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col gap-3 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Model Context Protocol Hub", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-lg", children: "\uD83D\uDD0C" }), (0, jsx_runtime_1.jsx)("h3", { className: "text-sm font-semibold text-white", children: "Model Context Protocol (MCP)" }), (0, jsx_runtime_1.jsxs)("span", { className: "px-1.5 py-0.5 rounded-full text-[10px] bg-white/10 text-neutral-300 font-mono", children: [servers.length, " servers"] })] }), onAddServer && ((0, jsx_runtime_1.jsx)("button", { onClick: onAddServer, className: "px-2.5 py-1 text-xs font-medium text-indigo-300 bg-indigo-500/10 hover:bg-indigo-500/20 border border-indigo-500/30 rounded-lg transition-all", children: "+ Add Server" }))] }), (0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-3", children: servers.map((server) => ((0, jsx_runtime_1.jsxs)("div", { className: "p-3 bg-white/5 border border-white/10 rounded-xl flex flex-col gap-2.5", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: `w-2 h-2 rounded-full ${server.status === 'connected'
|
|
7
|
+
? 'bg-emerald-400 shadow-sm shadow-emerald-400/50'
|
|
8
|
+
: server.status === 'connecting'
|
|
9
|
+
? 'bg-amber-400 animate-pulse'
|
|
10
|
+
: 'bg-rose-400'}` }), (0, jsx_runtime_1.jsx)("span", { className: "text-xs font-semibold text-white", children: server.name }), (0, jsx_runtime_1.jsx)("span", { className: "text-[10px] text-neutral-400 font-mono uppercase bg-white/5 px-1 py-0.5 rounded", children: server.transport })] }), (0, jsx_runtime_1.jsx)("button", { onClick: () => onReconnect(server.id), className: "text-[11px] text-neutral-400 hover:text-white transition-colors", title: "Reconnect server", children: "\u21BB" })] }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap gap-1.5", children: server.tools.map((tool) => ((0, jsx_runtime_1.jsx)("button", { onClick: () => onToggleTool(server.id, tool.name, !tool.enabled), className: `px-2 py-0.5 rounded text-[11px] font-mono transition-all border ${tool.enabled
|
|
11
|
+
? 'bg-emerald-500/15 text-emerald-300 border-emerald-500/30'
|
|
12
|
+
: 'bg-white/5 text-neutral-500 border-white/5 line-through opacity-60'}`, title: tool.description, children: tool.name }, tool.name))) })] }, server.id))) })] }));
|
|
13
|
+
};
|
|
14
|
+
exports.MCPHub = MCPHub;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MCPServerInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
status: 'connected' | 'connecting' | 'disconnected' | 'error';
|
|
6
|
+
transport: 'sse' | 'stdio' | 'websocket';
|
|
7
|
+
endpoint?: string;
|
|
8
|
+
toolsCount: number;
|
|
9
|
+
resourcesCount: number;
|
|
10
|
+
tools: {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export interface MCPHubProps {
|
|
17
|
+
servers: MCPServerInfo[];
|
|
18
|
+
onToggleTool: (serverId: string, toolName: string, enabled: boolean) => void;
|
|
19
|
+
onReconnect: (serverId: string) => void;
|
|
20
|
+
onAddServer?: () => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const MCPHub: React.FC<MCPHubProps>;
|
|
24
|
+
//# sourceMappingURL=MCPHub.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MCPHub.d.ts","sourceRoot":"","sources":["../../src/agents/MCPHub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,OAAO,CAAA;IAC7D,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,WAAW,CAAA;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CACjE;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5E,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkFxC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const MCPHub = ({ servers, onToggleTool, onReconnect, onAddServer, className = '', }) => {
|
|
3
|
+
return (_jsxs("div", { className: `flex flex-col gap-3 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Model Context Protocol Hub", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-lg", children: "\uD83D\uDD0C" }), _jsx("h3", { className: "text-sm font-semibold text-white", children: "Model Context Protocol (MCP)" }), _jsxs("span", { className: "px-1.5 py-0.5 rounded-full text-[10px] bg-white/10 text-neutral-300 font-mono", children: [servers.length, " servers"] })] }), onAddServer && (_jsx("button", { onClick: onAddServer, className: "px-2.5 py-1 text-xs font-medium text-indigo-300 bg-indigo-500/10 hover:bg-indigo-500/20 border border-indigo-500/30 rounded-lg transition-all", children: "+ Add Server" }))] }), _jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-3", children: servers.map((server) => (_jsxs("div", { className: "p-3 bg-white/5 border border-white/10 rounded-xl flex flex-col gap-2.5", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: `w-2 h-2 rounded-full ${server.status === 'connected'
|
|
4
|
+
? 'bg-emerald-400 shadow-sm shadow-emerald-400/50'
|
|
5
|
+
: server.status === 'connecting'
|
|
6
|
+
? 'bg-amber-400 animate-pulse'
|
|
7
|
+
: 'bg-rose-400'}` }), _jsx("span", { className: "text-xs font-semibold text-white", children: server.name }), _jsx("span", { className: "text-[10px] text-neutral-400 font-mono uppercase bg-white/5 px-1 py-0.5 rounded", children: server.transport })] }), _jsx("button", { onClick: () => onReconnect(server.id), className: "text-[11px] text-neutral-400 hover:text-white transition-colors", title: "Reconnect server", children: "\u21BB" })] }), _jsx("div", { className: "flex flex-wrap gap-1.5", children: server.tools.map((tool) => (_jsx("button", { onClick: () => onToggleTool(server.id, tool.name, !tool.enabled), className: `px-2 py-0.5 rounded text-[11px] font-mono transition-all border ${tool.enabled
|
|
8
|
+
? 'bg-emerald-500/15 text-emerald-300 border-emerald-500/30'
|
|
9
|
+
: 'bg-white/5 text-neutral-500 border-white/5 line-through opacity-60'}`, title: tool.description, children: tool.name }, tool.name))) })] }, server.id))) })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=MCPHub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MCPHub.js","sourceRoot":"","sources":["../../src/agents/MCPHub.tsx"],"names":[],"mappings":";AAqBA,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAC5C,OAAO,EACP,YAAY,EACZ,WAAW,EACX,WAAW,EACX,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,OAAO,CACL,eACE,SAAS,EAAE,iGAAiG,SAAS,EAAE,gBAC5G,4BAA4B,aAEvC,eAAK,SAAS,EAAC,mCAAmC,aAChD,eAAK,SAAS,EAAC,yBAAyB,aACtC,eAAM,SAAS,EAAC,SAAS,6BAAU,EACnC,aAAI,SAAS,EAAC,kCAAkC,6CAAkC,EAClF,gBAAM,SAAS,EAAC,+EAA+E,aAC5F,OAAO,CAAC,MAAM,gBACV,IACH,EACL,WAAW,IAAI,CACd,iBACE,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,+IAA+I,6BAGlJ,CACV,IACG,EAEN,cAAK,SAAS,EAAC,uCAAuC,YACnD,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,eAEE,SAAS,EAAC,wEAAwE,aAElF,eAAK,SAAS,EAAC,mCAAmC,aAChD,eAAK,SAAS,EAAC,yBAAyB,aACtC,eACE,SAAS,EAAE,wBACT,MAAM,CAAC,MAAM,KAAK,WAAW;gDAC3B,CAAC,CAAC,gDAAgD;gDAClD,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,YAAY;oDAChC,CAAC,CAAC,4BAA4B;oDAC9B,CAAC,CAAC,aACN,EAAE,GACF,EACF,eAAM,SAAS,EAAC,kCAAkC,YAAE,MAAM,CAAC,IAAI,GAAQ,EACvE,eAAM,SAAS,EAAC,iFAAiF,YAC9F,MAAM,CAAC,SAAS,GACZ,IACH,EACN,iBACE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,EACrC,SAAS,EAAC,iEAAiE,EAC3E,KAAK,EAAC,kBAAkB,uBAGjB,IACL,EAEN,cAAK,SAAS,EAAC,wBAAwB,YACpC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC1B,iBAEE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAChE,SAAS,EAAE,mEACT,IAAI,CAAC,OAAO;oCACV,CAAC,CAAC,0DAA0D;oCAC5D,CAAC,CAAC,oEACN,EAAE,EACF,KAAK,EAAE,IAAI,CAAC,WAAW,YAEtB,IAAI,CAAC,IAAI,IATL,IAAI,CAAC,IAAI,CAUP,CACV,CAAC,GACE,KA3CD,MAAM,CAAC,EAAE,CA4CV,CACP,CAAC,GACE,IACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShortcutsSheet = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const DEFAULT_SHORTCUTS = [
|
|
6
|
+
{ keys: ['⌘', 'K'], label: 'Open Omni Search / Command Palette', category: 'Navigation' },
|
|
7
|
+
{ keys: ['⌘', 'B'], label: 'Toggle Explorer Sidebar', category: 'Workspace' },
|
|
8
|
+
{ keys: ['⌘', 'J'], label: 'Toggle Far-Right Intelligence Dock', category: 'Workspace' },
|
|
9
|
+
{ keys: ['⌘', '/'], label: 'Show Keyboard Shortcuts Cheat Sheet', category: 'Workspace' },
|
|
10
|
+
{ keys: ['⌘', 'Enter'], label: 'Submit Prompt / Message', category: 'Chat' },
|
|
11
|
+
{ keys: ['⌘', 'E'], label: 'Export Markdown Transcript', category: 'Chat' },
|
|
12
|
+
{ keys: ['⌘', 'D'], label: 'Toggle Code Diff Inspector', category: 'Editing' },
|
|
13
|
+
{ keys: ['⌘', 'M'], label: 'Toggle Duplex Voice Mic Mute', category: 'Chat' },
|
|
14
|
+
];
|
|
15
|
+
const ShortcutsSheet = ({ isOpen, onClose, customShortcuts, className = '', }) => {
|
|
16
|
+
if (!isOpen)
|
|
17
|
+
return null;
|
|
18
|
+
const list = customShortcuts || DEFAULT_SHORTCUTS;
|
|
19
|
+
const categories = Array.from(new Set(list.map((s) => s.category)));
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-md ${className}`, role: "dialog", "aria-modal": "true", "aria-label": "Keyboard Shortcuts", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-full max-w-lg bg-neutral-900 border border-white/15 rounded-2xl shadow-2xl p-6 gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between border-b border-white/10 pb-3", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-lg", children: "\u2328\uFE0F" }), (0, jsx_runtime_1.jsx)("h2", { className: "text-sm font-semibold text-white", children: "Keyboard Shortcuts" })] }), (0, jsx_runtime_1.jsx)("button", { onClick: onClose, className: "text-neutral-400 hover:text-white text-xs px-2 py-1 rounded bg-white/5", children: "Esc" })] }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-4 max-h-96 overflow-y-auto pr-1", children: categories.map((cat) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [(0, jsx_runtime_1.jsx)("h3", { className: "text-[11px] font-semibold text-neutral-400 uppercase tracking-wider", children: cat }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-1.5", children: list
|
|
21
|
+
.filter((s) => s.category === cat)
|
|
22
|
+
.map((s, idx) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between py-1 px-2 rounded-lg bg-white/5 text-xs text-neutral-200", children: [(0, jsx_runtime_1.jsx)("span", { children: s.label }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center gap-1", children: s.keys.map((k, kidx) => ((0, jsx_runtime_1.jsx)("kbd", { className: "px-2 py-0.5 rounded bg-neutral-800 border border-white/10 text-[11px] font-mono text-neutral-300 font-semibold shadow-sm", children: k }, kidx))) })] }, idx))) })] }, cat))) })] }) }));
|
|
23
|
+
};
|
|
24
|
+
exports.ShortcutsSheet = ShortcutsSheet;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ShortcutItem {
|
|
3
|
+
keys: string[];
|
|
4
|
+
label: string;
|
|
5
|
+
category: 'Workspace' | 'Navigation' | 'Chat' | 'Editing';
|
|
6
|
+
}
|
|
7
|
+
export interface ShortcutsSheetProps {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
customShortcuts?: ShortcutItem[];
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const ShortcutsSheet: React.FC<ShortcutsSheetProps>;
|
|
14
|
+
//# sourceMappingURL=ShortcutsSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShortcutsSheet.d.ts","sourceRoot":"","sources":["../../src/agents/ShortcutsSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,WAAW,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,CAAA;CAC1D;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,eAAe,CAAC,EAAE,YAAY,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAaD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkExD,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const DEFAULT_SHORTCUTS = [
|
|
3
|
+
{ keys: ['⌘', 'K'], label: 'Open Omni Search / Command Palette', category: 'Navigation' },
|
|
4
|
+
{ keys: ['⌘', 'B'], label: 'Toggle Explorer Sidebar', category: 'Workspace' },
|
|
5
|
+
{ keys: ['⌘', 'J'], label: 'Toggle Far-Right Intelligence Dock', category: 'Workspace' },
|
|
6
|
+
{ keys: ['⌘', '/'], label: 'Show Keyboard Shortcuts Cheat Sheet', category: 'Workspace' },
|
|
7
|
+
{ keys: ['⌘', 'Enter'], label: 'Submit Prompt / Message', category: 'Chat' },
|
|
8
|
+
{ keys: ['⌘', 'E'], label: 'Export Markdown Transcript', category: 'Chat' },
|
|
9
|
+
{ keys: ['⌘', 'D'], label: 'Toggle Code Diff Inspector', category: 'Editing' },
|
|
10
|
+
{ keys: ['⌘', 'M'], label: 'Toggle Duplex Voice Mic Mute', category: 'Chat' },
|
|
11
|
+
];
|
|
12
|
+
export const ShortcutsSheet = ({ isOpen, onClose, customShortcuts, className = '', }) => {
|
|
13
|
+
if (!isOpen)
|
|
14
|
+
return null;
|
|
15
|
+
const list = customShortcuts || DEFAULT_SHORTCUTS;
|
|
16
|
+
const categories = Array.from(new Set(list.map((s) => s.category)));
|
|
17
|
+
return (_jsx("div", { className: `fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-md ${className}`, role: "dialog", "aria-modal": "true", "aria-label": "Keyboard Shortcuts", children: _jsxs("div", { className: "flex flex-col w-full max-w-lg bg-neutral-900 border border-white/15 rounded-2xl shadow-2xl p-6 gap-4", children: [_jsxs("div", { className: "flex items-center justify-between border-b border-white/10 pb-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-lg", children: "\u2328\uFE0F" }), _jsx("h2", { className: "text-sm font-semibold text-white", children: "Keyboard Shortcuts" })] }), _jsx("button", { onClick: onClose, className: "text-neutral-400 hover:text-white text-xs px-2 py-1 rounded bg-white/5", children: "Esc" })] }), _jsx("div", { className: "flex flex-col gap-4 max-h-96 overflow-y-auto pr-1", children: categories.map((cat) => (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("h3", { className: "text-[11px] font-semibold text-neutral-400 uppercase tracking-wider", children: cat }), _jsx("div", { className: "flex flex-col gap-1.5", children: list
|
|
18
|
+
.filter((s) => s.category === cat)
|
|
19
|
+
.map((s, idx) => (_jsxs("div", { className: "flex items-center justify-between py-1 px-2 rounded-lg bg-white/5 text-xs text-neutral-200", children: [_jsx("span", { children: s.label }), _jsx("div", { className: "flex items-center gap-1", children: s.keys.map((k, kidx) => (_jsx("kbd", { className: "px-2 py-0.5 rounded bg-neutral-800 border border-white/10 text-[11px] font-mono text-neutral-300 font-semibold shadow-sm", children: k }, kidx))) })] }, idx))) })] }, cat))) })] }) }));
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ShortcutsSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SwarmBar = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SwarmBar = ({ agents, activeAgentId, swarmMode, onSelectAgent, onToggleSwarm, className = '', }) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-center justify-between gap-2 px-3 py-2 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-xl ${className}`, role: "toolbar", "aria-label": "Swarm & Agents Bar", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex items-center gap-1.5 overflow-x-auto no-scrollbar", children: agents.map((agent) => {
|
|
7
|
+
const isActive = agent.id === activeAgentId;
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("button", { onClick: () => onSelectAgent(agent.id), className: `flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-medium transition-all ${isActive
|
|
9
|
+
? 'bg-white/15 text-white shadow-sm border border-white/20'
|
|
10
|
+
: 'text-neutral-400 hover:text-neutral-200 hover:bg-white/5'}`, title: `${agent.name} — ${agent.role}`, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-sm", children: agent.icon }), (0, jsx_runtime_1.jsx)("span", { children: agent.name }), (0, jsx_runtime_1.jsx)("span", { className: `w-1.5 h-1.5 rounded-full ${agent.status === 'working'
|
|
11
|
+
? 'bg-amber-400 animate-pulse'
|
|
12
|
+
: agent.status === 'ready'
|
|
13
|
+
? 'bg-emerald-400'
|
|
14
|
+
: 'bg-neutral-500'}` })] }, agent.id));
|
|
15
|
+
}) }), (0, jsx_runtime_1.jsxs)("button", { onClick: () => onToggleSwarm(!swarmMode), className: `flex items-center gap-1.5 px-3 py-1 rounded-lg text-xs font-semibold transition-all border shrink-0 ${swarmMode
|
|
16
|
+
? 'bg-indigo-600/30 text-indigo-300 border-indigo-500/40 shadow-sm shadow-indigo-500/20'
|
|
17
|
+
: 'bg-white/5 text-neutral-400 border-white/10 hover:text-white'}`, title: "Swarm Mode coordinates multi-agent task execution", children: [(0, jsx_runtime_1.jsx)("span", { children: "\u26A1 Swarm" }), (0, jsx_runtime_1.jsx)("span", { className: `px-1 py-0.2 rounded text-[10px] ${swarmMode ? 'bg-indigo-500 text-white font-bold' : 'bg-neutral-800 text-neutral-400'}`, children: swarmMode ? 'ON' : 'OFF' })] })] }));
|
|
18
|
+
};
|
|
19
|
+
exports.SwarmBar = SwarmBar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AgentDescriptor {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
role: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
color: string;
|
|
8
|
+
status: 'idle' | 'working' | 'ready';
|
|
9
|
+
capabilities: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface SwarmBarProps {
|
|
12
|
+
agents: AgentDescriptor[];
|
|
13
|
+
activeAgentId: string;
|
|
14
|
+
swarmMode: boolean;
|
|
15
|
+
onSelectAgent: (id: string) => void;
|
|
16
|
+
onToggleSwarm: (enabled: boolean) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const SwarmBar: React.FC<SwarmBarProps>;
|
|
20
|
+
//# sourceMappingURL=SwarmBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwarmBar.d.ts","sourceRoot":"","sources":["../../src/agents/SwarmBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IACpC,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgE5C,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const SwarmBar = ({ agents, activeAgentId, swarmMode, onSelectAgent, onToggleSwarm, className = '', }) => {
|
|
3
|
+
return (_jsxs("div", { className: `flex items-center justify-between gap-2 px-3 py-2 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-xl ${className}`, role: "toolbar", "aria-label": "Swarm & Agents Bar", children: [_jsx("div", { className: "flex items-center gap-1.5 overflow-x-auto no-scrollbar", children: agents.map((agent) => {
|
|
4
|
+
const isActive = agent.id === activeAgentId;
|
|
5
|
+
return (_jsxs("button", { onClick: () => onSelectAgent(agent.id), className: `flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-medium transition-all ${isActive
|
|
6
|
+
? 'bg-white/15 text-white shadow-sm border border-white/20'
|
|
7
|
+
: 'text-neutral-400 hover:text-neutral-200 hover:bg-white/5'}`, title: `${agent.name} — ${agent.role}`, children: [_jsx("span", { className: "text-sm", children: agent.icon }), _jsx("span", { children: agent.name }), _jsx("span", { className: `w-1.5 h-1.5 rounded-full ${agent.status === 'working'
|
|
8
|
+
? 'bg-amber-400 animate-pulse'
|
|
9
|
+
: agent.status === 'ready'
|
|
10
|
+
? 'bg-emerald-400'
|
|
11
|
+
: 'bg-neutral-500'}` })] }, agent.id));
|
|
12
|
+
}) }), _jsxs("button", { onClick: () => onToggleSwarm(!swarmMode), className: `flex items-center gap-1.5 px-3 py-1 rounded-lg text-xs font-semibold transition-all border shrink-0 ${swarmMode
|
|
13
|
+
? 'bg-indigo-600/30 text-indigo-300 border-indigo-500/40 shadow-sm shadow-indigo-500/20'
|
|
14
|
+
: 'bg-white/5 text-neutral-400 border-white/10 hover:text-white'}`, title: "Swarm Mode coordinates multi-agent task execution", children: [_jsx("span", { children: "\u26A1 Swarm" }), _jsx("span", { className: `px-1 py-0.2 rounded text-[10px] ${swarmMode ? 'bg-indigo-500 text-white font-bold' : 'bg-neutral-800 text-neutral-400'}`, children: swarmMode ? 'ON' : 'OFF' })] })] }));
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=SwarmBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwarmBar.js","sourceRoot":"","sources":["../../src/agents/SwarmBar.tsx"],"names":[],"mappings":";AAqBA,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,aAAa,EACb,SAAS,EACT,aAAa,EACb,aAAa,EACb,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,OAAO,CACL,eACE,SAAS,EAAE,0HAA0H,SAAS,EAAE,EAChJ,IAAI,EAAC,SAAS,gBACH,oBAAoB,aAE/B,cAAK,SAAS,EAAC,wDAAwD,YACpE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;oBACpB,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE,KAAK,aAAa,CAAA;oBAC3C,OAAO,CACL,kBAEE,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,EACtC,SAAS,EAAE,uFACT,QAAQ;4BACN,CAAC,CAAC,yDAAyD;4BAC3D,CAAC,CAAC,0DACN,EAAE,EACF,KAAK,EAAE,GAAG,KAAK,CAAC,IAAI,MAAM,KAAK,CAAC,IAAI,EAAE,aAEtC,eAAM,SAAS,EAAC,SAAS,YAAE,KAAK,CAAC,IAAI,GAAQ,EAC7C,yBAAO,KAAK,CAAC,IAAI,GAAQ,EACzB,eACE,SAAS,EAAE,4BACT,KAAK,CAAC,MAAM,KAAK,SAAS;oCACxB,CAAC,CAAC,4BAA4B;oCAC9B,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,OAAO;wCAC1B,CAAC,CAAC,gBAAgB;wCAClB,CAAC,CAAC,gBACN,EAAE,GACF,KAnBG,KAAK,CAAC,EAAE,CAoBN,CACV,CAAA;gBACH,CAAC,CAAC,GACE,EAEN,kBACE,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,EACxC,SAAS,EAAE,uGACT,SAAS;oBACP,CAAC,CAAC,sFAAsF;oBACxF,CAAC,CAAC,8DACN,EAAE,EACF,KAAK,EAAC,mDAAmD,aAEzD,0CAAoB,EACpB,eACE,SAAS,EAAE,mCACT,SAAS,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,iCACrD,EAAE,YAED,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GACpB,IACA,IACL,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemeCustomizer = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ACCENTS = [
|
|
6
|
+
{ name: 'Indigo', value: '#6366f1' },
|
|
7
|
+
{ name: 'Cyan', value: '#06b6d4' },
|
|
8
|
+
{ name: 'Emerald', value: '#10b981' },
|
|
9
|
+
{ name: 'Amber', value: '#f59e0b' },
|
|
10
|
+
{ name: 'Rose', value: '#f43f5e' },
|
|
11
|
+
{ name: 'Purple', value: '#a855f7' },
|
|
12
|
+
];
|
|
13
|
+
const ThemeCustomizer = ({ config, onChange, className = '', }) => {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col gap-4 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Liquid Glass Theme Customizer", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-base", children: "\uD83C\uDFA8" }), (0, jsx_runtime_1.jsx)("h3", { className: "text-xs font-semibold text-white uppercase tracking-wider", children: "Appearance & Liquid Glass" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [(0, jsx_runtime_1.jsx)("label", { className: "text-xs text-neutral-400 font-medium", children: "Accent Palette" }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center gap-2", children: ACCENTS.map((accent) => ((0, jsx_runtime_1.jsx)("button", { onClick: () => onChange({ ...config, accentColor: accent.value }), className: `w-6 h-6 rounded-full transition-transform ${config.accentColor === accent.value
|
|
15
|
+
? 'ring-2 ring-white ring-offset-2 ring-offset-neutral-900 scale-110'
|
|
16
|
+
: 'hover:scale-105 opacity-80 hover:opacity-100'}`, style: { backgroundColor: accent.value }, title: accent.name }, accent.value))) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [(0, jsx_runtime_1.jsx)("label", { className: "text-xs text-neutral-400 font-medium", children: "Glassmorphism Intensity" }), (0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-4 gap-1.5", children: ['low', 'medium', 'high', 'ultra'].map((level) => ((0, jsx_runtime_1.jsx)("button", { onClick: () => onChange({ ...config, blurLevel: level }), className: `py-1 rounded-lg text-xs font-medium capitalize transition-all border ${config.blurLevel === level
|
|
17
|
+
? 'bg-white/20 text-white border-white/30 font-semibold'
|
|
18
|
+
: 'bg-white/5 text-neutral-400 border-white/10 hover:text-white'}`, children: level }, level))) })] })] }));
|
|
19
|
+
};
|
|
20
|
+
exports.ThemeCustomizer = ThemeCustomizer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ThemeConfig {
|
|
3
|
+
blurLevel: 'low' | 'medium' | 'high' | 'ultra';
|
|
4
|
+
accentColor: string;
|
|
5
|
+
mode: 'dark' | 'light' | 'system';
|
|
6
|
+
}
|
|
7
|
+
export interface ThemeCustomizerProps {
|
|
8
|
+
config: ThemeConfig;
|
|
9
|
+
onChange: (config: ThemeConfig) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ThemeCustomizer: React.FC<ThemeCustomizerProps>;
|
|
13
|
+
//# sourceMappingURL=ThemeCustomizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeCustomizer.d.ts","sourceRoot":"","sources":["../../src/agents/ThemeCustomizer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IAC9C,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAWD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwD1D,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const ACCENTS = [
|
|
3
|
+
{ name: 'Indigo', value: '#6366f1' },
|
|
4
|
+
{ name: 'Cyan', value: '#06b6d4' },
|
|
5
|
+
{ name: 'Emerald', value: '#10b981' },
|
|
6
|
+
{ name: 'Amber', value: '#f59e0b' },
|
|
7
|
+
{ name: 'Rose', value: '#f43f5e' },
|
|
8
|
+
{ name: 'Purple', value: '#a855f7' },
|
|
9
|
+
];
|
|
10
|
+
export const ThemeCustomizer = ({ config, onChange, className = '', }) => {
|
|
11
|
+
return (_jsxs("div", { className: `flex flex-col gap-4 p-4 bg-neutral-900/60 backdrop-blur-md border border-white/10 rounded-2xl ${className}`, "aria-label": "Liquid Glass Theme Customizer", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-base", children: "\uD83C\uDFA8" }), _jsx("h3", { className: "text-xs font-semibold text-white uppercase tracking-wider", children: "Appearance & Liquid Glass" })] }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("label", { className: "text-xs text-neutral-400 font-medium", children: "Accent Palette" }), _jsx("div", { className: "flex items-center gap-2", children: ACCENTS.map((accent) => (_jsx("button", { onClick: () => onChange({ ...config, accentColor: accent.value }), className: `w-6 h-6 rounded-full transition-transform ${config.accentColor === accent.value
|
|
12
|
+
? 'ring-2 ring-white ring-offset-2 ring-offset-neutral-900 scale-110'
|
|
13
|
+
: 'hover:scale-105 opacity-80 hover:opacity-100'}`, style: { backgroundColor: accent.value }, title: accent.name }, accent.value))) })] }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("label", { className: "text-xs text-neutral-400 font-medium", children: "Glassmorphism Intensity" }), _jsx("div", { className: "grid grid-cols-4 gap-1.5", children: ['low', 'medium', 'high', 'ultra'].map((level) => (_jsx("button", { onClick: () => onChange({ ...config, blurLevel: level }), className: `py-1 rounded-lg text-xs font-medium capitalize transition-all border ${config.blurLevel === level
|
|
14
|
+
? 'bg-white/20 text-white border-white/30 font-semibold'
|
|
15
|
+
: 'bg-white/5 text-neutral-400 border-white/10 hover:text-white'}`, children: level }, level))) })] })] }));
|
|
16
|
+
};
|
|
17
|
+
//# sourceMapping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C,8CACN,EAAE,EACF,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,EACxC,KAAK,EAAE,MAAM,CAAC,IAAI,IARb,MAAM,CAAC,KAAK,CASjB,CACH,CAAC,GACE,IACF,EAEN,eAAK,SAAS,EAAC,qBAAqB,aAClC,gBAAO,SAAS,EAAC,sCAAsC,wCAAgC,EACvF,cAAK,SAAS,EAAC,0BAA0B,YACrC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC5D,iBAEE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EACxD,SAAS,EAAE,wEACT,MAAM,CAAC,SAAS,KAAK,KAAK;gCACxB,CAAC,CAAC,sDAAsD;gCACxD,CAAC,CAAC,8DACN,EAAE,YAED,KAAK,IARD,KAAK,CASH,CACV,CAAC,GACE,IACF,IACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
package/dist/agents/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemLine = exports.Pane = exports.OrgRail = exports.ChannelHeader = exports.ArtifactCard = exports.steps = exports.ProgressBlock = exports.Screen = exports.Steer = exports.MemberRow = exports.fold = exports.Transcript = exports.nest = exports.RunRow = exports.AgentBoard = void 0;
|
|
3
|
+
exports.ShortcutsSheet = exports.ThemeCustomizer = exports.ChannelMembers = exports.ChannelNotes = exports.LiveVoiceCall = exports.DiffViewer = exports.MCPHub = exports.SwarmBar = exports.SystemLine = exports.Pane = exports.OrgRail = exports.ChannelHeader = exports.ArtifactCard = exports.steps = exports.ProgressBlock = exports.Screen = exports.Steer = exports.MemberRow = exports.fold = exports.Transcript = exports.nest = exports.RunRow = exports.AgentBoard = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @hanzo/ui/agents — the agents working view, on @hanzo/gui primitives.
|
|
6
6
|
*
|
|
@@ -43,3 +43,19 @@ Object.defineProperty(exports, "ChannelHeader", { enumerable: true, get: functio
|
|
|
43
43
|
Object.defineProperty(exports, "OrgRail", { enumerable: true, get: function () { return Pane_1.OrgRail; } });
|
|
44
44
|
Object.defineProperty(exports, "Pane", { enumerable: true, get: function () { return Pane_1.Pane; } });
|
|
45
45
|
Object.defineProperty(exports, "SystemLine", { enumerable: true, get: function () { return Pane_1.SystemLine; } });
|
|
46
|
+
var SwarmBar_1 = require("./SwarmBar.cjs");
|
|
47
|
+
Object.defineProperty(exports, "SwarmBar", { enumerable: true, get: function () { return SwarmBar_1.SwarmBar; } });
|
|
48
|
+
var MCPHub_1 = require("./MCPHub.cjs");
|
|
49
|
+
Object.defineProperty(exports, "MCPHub", { enumerable: true, get: function () { return MCPHub_1.MCPHub; } });
|
|
50
|
+
var DiffViewer_1 = require("./DiffViewer.cjs");
|
|
51
|
+
Object.defineProperty(exports, "DiffViewer", { enumerable: true, get: function () { return DiffViewer_1.DiffViewer; } });
|
|
52
|
+
var LiveVoiceCall_1 = require("./LiveVoiceCall.cjs");
|
|
53
|
+
Object.defineProperty(exports, "LiveVoiceCall", { enumerable: true, get: function () { return LiveVoiceCall_1.LiveVoiceCall; } });
|
|
54
|
+
var ChannelNotes_1 = require("./ChannelNotes.cjs");
|
|
55
|
+
Object.defineProperty(exports, "ChannelNotes", { enumerable: true, get: function () { return ChannelNotes_1.ChannelNotes; } });
|
|
56
|
+
var ChannelMembers_1 = require("./ChannelMembers.cjs");
|
|
57
|
+
Object.defineProperty(exports, "ChannelMembers", { enumerable: true, get: function () { return ChannelMembers_1.ChannelMembers; } });
|
|
58
|
+
var ThemeCustomizer_1 = require("./ThemeCustomizer.cjs");
|
|
59
|
+
Object.defineProperty(exports, "ThemeCustomizer", { enumerable: true, get: function () { return ThemeCustomizer_1.ThemeCustomizer; } });
|
|
60
|
+
var ShortcutsSheet_1 = require("./ShortcutsSheet.cjs");
|
|
61
|
+
Object.defineProperty(exports, "ShortcutsSheet", { enumerable: true, get: function () { return ShortcutsSheet_1.ShortcutsSheet; } });
|
package/dist/agents/index.d.ts
CHANGED
|
@@ -25,4 +25,12 @@ export { MemberRow, Steer, type Command, type MemberKind, type MemberRowProps, t
|
|
|
25
25
|
export { Screen, type ScreenKind, type ScreenProps, type Ticket } from './Screen.js';
|
|
26
26
|
export { ProgressBlock, steps, type Event, type ProgressBlockProps, type Step, type StepKind, } from './Progress.js';
|
|
27
27
|
export { ArtifactCard, ChannelHeader, OrgRail, Pane, SystemLine, type ArtifactCardProps, type ArtifactKind, type ChannelHeaderProps, type Org, type OrgRailProps, type PaneProps, type PaneTab, type SystemLineProps, } from './Pane.js';
|
|
28
|
+
export { SwarmBar, type AgentDescriptor, type SwarmBarProps, } from './SwarmBar.js';
|
|
29
|
+
export { MCPHub, type MCPServerInfo, type MCPHubProps, } from './MCPHub.js';
|
|
30
|
+
export { DiffViewer, type DiffViewerProps, } from './DiffViewer.js';
|
|
31
|
+
export { LiveVoiceCall, type LiveVoiceCallProps, } from './LiveVoiceCall.js';
|
|
32
|
+
export { ChannelNotes, type ChannelNotesProps, } from './ChannelNotes.js';
|
|
33
|
+
export { ChannelMembers, type ChannelMember, type ChannelMembersProps, } from './ChannelMembers.js';
|
|
34
|
+
export { ThemeCustomizer, type ThemeConfig, type ThemeCustomizerProps, } from './ThemeCustomizer.js';
|
|
35
|
+
export { ShortcutsSheet, type ShortcutItem, type ShortcutsSheetProps, } from './ShortcutsSheet.js';
|
|
28
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,KAAK,eAA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} from './Steer.js';
|
|
|
25
25
|
export { Screen } from './Screen.js';
|
|
26
26
|
export { ProgressBlock, steps, } from './Progress.js';
|
|
27
27
|
export { ArtifactCard, ChannelHeader, OrgRail, Pane, SystemLine, } from './Pane.js';
|
|
28
|
+
export { SwarmBar, } from './SwarmBar.js';
|
|
29
|
+
export { MCPHub, } from './MCPHub.js';
|
|
30
|
+
export { DiffViewer, } from './DiffViewer.js';
|
|
31
|
+
export { LiveVoiceCall, } from './LiveVoiceCall.js';
|
|
32
|
+
export { ChannelNotes, } from './ChannelNotes.js';
|
|
33
|
+
export { ChannelMembers, } from './ChannelMembers.js';
|
|
34
|
+
export { ThemeCustomizer, } from './ThemeCustomizer.js';
|
|
35
|
+
export { ShortcutsSheet, } from './ShortcutsSheet.js';
|
|
28
36
|
//# sourceMappingURL=index.js.map
|
package/dist/agents/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,UAAU,EACV,MAAM,EACN,IAAI,GAKL,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,UAAU,EAAE,IAAI,EAA+C,MAAM,cAAc,CAAA;AAE5F,OAAO,EACL,SAAS,EACT,KAAK,GAKN,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,MAAM,EAAkD,MAAM,UAAU,CAAA;AAEjF,OAAO,EACL,aAAa,EACb,KAAK,GAKN,MAAM,YAAY,CAAA;AAEnB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,OAAO,EACP,IAAI,EACJ,UAAU,GASX,MAAM,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,UAAU,EACV,MAAM,EACN,IAAI,GAKL,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,UAAU,EAAE,IAAI,EAA+C,MAAM,cAAc,CAAA;AAE5F,OAAO,EACL,SAAS,EACT,KAAK,GAKN,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,MAAM,EAAkD,MAAM,UAAU,CAAA;AAEjF,OAAO,EACL,aAAa,EACb,KAAK,GAKN,MAAM,YAAY,CAAA;AAEnB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,OAAO,EACP,IAAI,EACJ,UAAU,GASX,MAAM,QAAQ,CAAA;AAEf,OAAO,EACL,QAAQ,GAGT,MAAM,YAAY,CAAA;AAEnB,OAAO,EACL,MAAM,GAGP,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,UAAU,GAEX,MAAM,cAAc,CAAA;AAErB,OAAO,EACL,aAAa,GAEd,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,YAAY,GAEb,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EACL,cAAc,GAGf,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,eAAe,GAGhB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,cAAc,GAGf,MAAM,kBAAkB,CAAA"}
|
package/dist/gallery.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en" class="t_dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@hanzo/ui 8.27.
|
|
1
|
+
<!doctype html><html lang="en" class="t_dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@hanzo/ui 8.27.8</title><style>/* @hanzo/ui — generated by scripts/gen-css.mjs. Do not edit. */
|
|
2
2
|
:root { --hanzo-ui-styles: 1; }
|
|
3
3
|
/* Hanzo Design System — the entry point. Import THIS one file.
|
|
4
4
|
*
|
package/dist/gui-config.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { defaultConfig } from '@hanzogui/config/v5';
|
|
2
|
+
import { createGui } from '@hanzo/gui';
|
|
1
3
|
/**
|
|
2
4
|
* THE SURFACE LADDER — three more rungs read the token instead of shadowing it,
|
|
3
5
|
* for the reason the edge already does.
|
|
@@ -1825,4 +1827,32 @@ export declare const monochrome: import("@hanzogui/web").GuiInternalConfig<{
|
|
|
1825
1827
|
shouldAddPrefersColorThemes: boolean;
|
|
1826
1828
|
}, string>;
|
|
1827
1829
|
export type Conf = typeof config;
|
|
1830
|
+
/**
|
|
1831
|
+
* The registration ships with the package, so a host laying out with @hanzo/gui
|
|
1832
|
+
* stacks under <Hanzo> types its shorthands against this config.
|
|
1833
|
+
*
|
|
1834
|
+
* It is derived from `defaultConfig`, not from `config` above: this file imports
|
|
1835
|
+
* @hanzo/gui, whose types read the augmentation, and naming the real config
|
|
1836
|
+
* would close that cycle and collapse every style prop to `any`. Whatever
|
|
1837
|
+
* `config` adds on top of `defaultConfig` is therefore restated here, the
|
|
1838
|
+
* `mono` font and the twelve ramp names, and a new addition belongs beside them.
|
|
1839
|
+
*/
|
|
1840
|
+
type Base = ReturnType<typeof createGui<typeof defaultConfig>>;
|
|
1841
|
+
type Ramp = Record<'sunken' | 'panel' | 'hover' | 'edge' | 'raised' | 'rim' | 'bound' | 'dim' | 'faint' | 'soft' | 'quiet' | 'ink', Base['themes']['dark']['color12']>;
|
|
1842
|
+
type Registered = Omit<Base, 'fonts' | 'themes'> & {
|
|
1843
|
+
fonts: Base['fonts'] & {
|
|
1844
|
+
mono: Base['fonts']['body'];
|
|
1845
|
+
};
|
|
1846
|
+
themes: {
|
|
1847
|
+
[K in keyof Base['themes']]: Base['themes'][K] & Ramp;
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
declare module '@hanzogui/web' {
|
|
1851
|
+
interface GuiCustomConfig extends Registered {
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
declare module '@hanzogui/core' {
|
|
1855
|
+
interface GuiCustomConfig extends Registered {
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1828
1858
|
//# sourceMappingURL=gui-config.d.ts.map
|
package/dist/gui-config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gui-config.d.ts","sourceRoot":"","sources":["../src/gui-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gui-config.d.ts","sourceRoot":"","sources":["../src/gui-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EAAE,SAAS,EAAuB,MAAM,YAAY,CAAA;AAgU3D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH;;;GAGG;AACH,QAAA,MAAM,OAAO,YACX,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EACnD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CACvC,CAAA;AAEV,KAAK,KAAK,GAAG,MAAM,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAA;AA2SrD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAled,CAAC;oBACD,CAAC;oBACD,CAAC;oBACD,CAAC;oBACD,CAAC;oBACD,EAAE;oBACF,EAAE;oBACF,EAAE;oBACF,EAAE;oBACF,EAAE;qBACD,IAAI;qBACJ,IAAI;qBACJ,IAAI;uBACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAClC,CAAA;AAED,KAAK,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IACjD,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG;QAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;KAAE,CAAA;IACtD,MAAM,EAAE;SAAG,CAAC,IAAI,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;KAAE,CAAA;CAClE,CAAA;AAED,OAAO,QAAQ,eAAe,CAAC;IAC7B,UAAU,eAAgB,SAAQ,UAAU;KAAG;CAChD;AAED,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,eAAgB,SAAQ,UAAU;KAAG;CAChD"}
|
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ exports.DropdownMenuSubContent = exports.DropdownMenuSub = exports.DropdownMenuS
|
|
|
4
4
|
exports.TabsContent = exports.Tabs = exports.Switch = exports.Strong = exports.Spinner = exports.Span = exports.Spacer = exports.Slider = exports.SizableText = exports.Separator = exports.Band = exports.ScrollView = exports.Screen = exports.Paragraph = exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = exports.ScrollBar = exports.ScrollArea = exports.ResizablePanelGroup = exports.ResizablePanel = exports.ResizableHandle = exports.Progress = exports.PopoverTrigger = exports.PopoverContent = exports.PopoverClose = exports.PopoverAnchor = exports.Popover = exports.Label = exports.Input = exports.Image = exports.Heading = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Fill = exports.Glass = exports.Em = exports.DropdownMenuTrigger = exports.DropdownMenuSubTrigger = void 0;
|
|
5
5
|
exports.BreadcrumbEllipsis = exports.Breadcrumb = exports.SheetTrigger = exports.SheetTitle = exports.SheetPortal = exports.SheetOverlay = exports.SheetHeader = exports.SheetFooter = exports.SheetDescription = exports.SheetContent = exports.SheetClose = exports.Sheet = exports.StepIndicator = exports.NavItems = exports.MediaStack = exports.Skeleton = exports.CarouselNext = exports.CarouselPrevious = exports.CarouselItem = exports.CarouselContent = exports.Carousel = exports.useFormField = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormLabel = exports.FormItem = exports.FormField = exports.Form = exports.useLink = exports.YouTubeEmbed = exports.VideoPlayer = exports.MDXLink = exports.LinkElement = exports.Link = exports.ApplyTypography = exports.toast = exports.ZStack = exports.YStack = exports.XStack = exports.View = exports.TooltipTrigger = exports.TooltipProvider = exports.TooltipContent = exports.Tooltip = exports.Text = exports.Toaster = exports.Textarea = exports.TabsTrigger = exports.TabsList = void 0;
|
|
6
6
|
exports.HoverCard = exports.ContextMenuTrigger = exports.ContextMenuSubTrigger = exports.ContextMenuSubContent = exports.ContextMenuSub = exports.ContextMenuShortcut = exports.ContextMenuSeparator = exports.ContextMenuRadioItem = exports.ContextMenuRadioGroup = exports.ContextMenuPortal = exports.ContextMenuLabel = exports.ContextMenuItem = exports.ContextMenuGroup = exports.ContextMenuContent = exports.ContextMenuCheckboxItem = exports.ContextMenu = exports.AlertDialogTrigger = exports.AlertDialogTitle = exports.AlertDialogPortal = exports.AlertDialogOverlay = exports.AlertDialogHeader = exports.AlertDialogFooter = exports.AlertDialogDescription = exports.AlertDialogContent = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialog = exports.AccordionTrigger = exports.AccordionItem = exports.AccordionContent = exports.Accordion = exports.DrawerTrigger = exports.DrawerHandle = exports.DrawerContent = exports.Drawer = exports.NavigationMenuTrigger = exports.NavigationMenuList = exports.NavigationMenuLink = exports.NavigationMenuItem = exports.NavigationMenuContent = exports.NavigationMenu = exports.InputOTPSlot = exports.InputOTPSeparator = exports.InputOTPGroup = exports.InputOTP = exports.BreadcrumbSeparator = exports.BreadcrumbPage = exports.BreadcrumbList = exports.BreadcrumbLink = exports.BreadcrumbItem = void 0;
|
|
7
|
-
exports.fit = exports.navigationMenuTriggerStyle = exports.badgeVariants = exports.buttonVariants = exports.css = exports.sx = exports.Box = exports.tw = exports.variants = exports.capitalize = exports.cn = exports.Slot = exports.Hanzo = exports.Anchor = exports.ToggleGroupItem = exports.ToggleGroup = exports.RadioGroupItem = exports.RadioGroup = exports.HoverCardTrigger = exports.HoverCardContent = void 0;
|
|
7
|
+
exports.config = exports.fit = exports.navigationMenuTriggerStyle = exports.badgeVariants = exports.buttonVariants = exports.css = exports.sx = exports.Box = exports.tw = exports.variants = exports.capitalize = exports.cn = exports.Slot = exports.Hanzo = exports.Anchor = exports.ToggleGroupItem = exports.ToggleGroup = exports.RadioGroupItem = exports.RadioGroup = exports.HoverCardTrigger = exports.HoverCardContent = void 0;
|
|
8
8
|
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/design.
|
|
9
9
|
//
|
|
10
10
|
// ONE substrate: every component renders through @hanzo/gui primitives, so the
|
|
@@ -296,3 +296,7 @@ Object.defineProperty(exports, "buttonVariants", { enumerable: true, get: functi
|
|
|
296
296
|
Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return style_1.badgeVariants; } });
|
|
297
297
|
Object.defineProperty(exports, "navigationMenuTriggerStyle", { enumerable: true, get: function () { return style_1.navigationMenuTriggerStyle; } });
|
|
298
298
|
Object.defineProperty(exports, "fit", { enumerable: true, get: function () { return style_1.fit; } });
|
|
299
|
+
// The config the components are styled against, for a host that lays out with
|
|
300
|
+
// @hanzo/gui stacks of its own.
|
|
301
|
+
var gui_config_1 = require("./gui-config.cjs");
|
|
302
|
+
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return gui_config_1.config; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export { Box, type BoxProps } from './box.js';
|
|
|
9
9
|
export { sx } from './sx.js';
|
|
10
10
|
export { css } from './css.js';
|
|
11
11
|
export { buttonVariants, badgeVariants, navigationMenuTriggerStyle, fit } from './style.js';
|
|
12
|
+
export { config, type Conf } from './gui-config.js';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmCA,OAAO,EACL,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EACjF,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EACpF,WAAW,EACX,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAC1F,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EACjF,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EACxF,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,wBAAwB,EAChF,mBAAmB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAC3E,kBAAkB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,qBAAqB,EACxF,oBAAoB,EAAE,eAAe,EAAE,sBAAsB,EAAE,sBAAsB,EACrF,mBAAmB,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EACnF,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAC3C,cAAc,EACd,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,mBA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'./css.js';
|
|
71
71
|
export { buttonVariants, badgeVariants, navigationMenuTriggerStyle, fit } from './style.js';
|
|
72
|
+
// The config the components are styled against, for a host that lays out with
|
|
73
|
+
// @hanzo/gui stacks of its own.
|
|
74
|
+
export { config } from './gui-config.js';
|
|
72
75
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,4EAA4E;AAC5E,+EAA+E;AAC/E,EAAE;AACF,qGAAqG;AACrG,yGAAyG;AACzG,6GAA6G;AAC7G,4GAA4G;AAC5G,4GAA4G;AAC5G,mHAAmH;AACnH,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,gEAAgE;AAChE,yBAAyB;AACzB,EAAE;AACF,6EAA6E;AAC7E,mFAAmF;AACnF,mFAAmF;AACnF,EAAE;AACF,+EAA+E;AAC/E,mFAAmF;AACnF,wBAAwB;AACxB,EAAE;AACF,mFAAmF;AACnF,EAAE;AACF,oFAAoF;AACpF,mFAAmF;AACnF,gFAAgF;AAChF,kFAAkF;AAClF,oFAAoF;AACpF,kEAAkE;AAClE,OAAO,EACL,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EACjF,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EACpF,WAAW,EACX,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAC1F,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EACjF,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,E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ropdownMenuSubContent = exports.DropdownMenuSub = exports.DropdownMenuS
|
|
|
4
4
|
exports.TabsContent = exports.Tabs = exports.Switch = exports.Strong = exports.Spinner = exports.Span = exports.Spacer = exports.Slider = exports.SizableText = exports.Separator = exports.Band = exports.ScrollView = exports.Screen = exports.Paragraph = exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = exports.ScrollBar = exports.ScrollArea = exports.ResizablePanelGroup = exports.ResizablePanel = exports.ResizableHandle = exports.Progress = exports.PopoverTrigger = exports.PopoverContent = exports.PopoverClose = exports.PopoverAnchor = exports.Popover = exports.Label = exports.Input = exports.Image = exports.Heading = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Fill = exports.Glass = exports.Em = exports.DropdownMenuTrigger = exports.DropdownMenuSubTrigger = void 0;
|
|
5
5
|
exports.BreadcrumbEllipsis = exports.Breadcrumb = exports.SheetTrigger = exports.SheetTitle = exports.SheetPortal = exports.SheetOverlay = exports.SheetHeader = exports.SheetFooter = exports.SheetDescription = exports.SheetContent = exports.SheetClose = exports.Sheet = exports.StepIndicator = exports.NavItems = exports.MediaStack = exports.Skeleton = exports.CarouselNext = exports.CarouselPrevious = exports.CarouselItem = exports.CarouselContent = exports.Carousel = exports.useFormField = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormLabel = exports.FormItem = exports.FormField = exports.Form = exports.useLink = exports.YouTubeEmbed = exports.VideoPlayer = exports.MDXLink = exports.LinkElement = exports.Link = exports.ApplyTypography = exports.toast = exports.ZStack = exports.YStack = exports.XStack = exports.View = exports.TooltipTrigger = exports.TooltipProvider = exports.TooltipContent = exports.Tooltip = exports.Text = exports.Toaster = exports.Textarea = exports.TabsTrigger = exports.TabsList = void 0;
|
|
6
6
|
exports.HoverCard = exports.ContextMenuTrigger = exports.ContextMenuSubTrigger = exports.ContextMenuSubContent = exports.ContextMenuSub = exports.ContextMenuShortcut = exports.ContextMenuSeparator = exports.ContextMenuRadioItem = exports.ContextMenuRadioGroup = exports.ContextMenuPortal = exports.ContextMenuLabel = exports.ContextMenuItem = exports.ContextMenuGroup = exports.ContextMenuContent = exports.ContextMenuCheckboxItem = exports.ContextMenu = exports.AlertDialogTrigger = exports.AlertDialogTitle = exports.AlertDialogPortal = exports.AlertDialogOverlay = exports.AlertDialogHeader = exports.AlertDialogFooter = exports.AlertDialogDescription = exports.AlertDialogContent = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialog = exports.AccordionTrigger = exports.AccordionItem = exports.AccordionContent = exports.Accordion = exports.DrawerTrigger = exports.DrawerHandle = exports.DrawerContent = exports.Drawer = exports.NavigationMenuTrigger = exports.NavigationMenuList = exports.NavigationMenuLink = exports.NavigationMenuItem = exports.NavigationMenuContent = exports.NavigationMenu = exports.InputOTPSlot = exports.InputOTPSeparator = exports.InputOTPGroup = exports.InputOTP = exports.BreadcrumbSeparator = exports.BreadcrumbPage = exports.BreadcrumbList = exports.BreadcrumbLink = exports.BreadcrumbItem = void 0;
|
|
7
|
-
exports.fit = exports.navigationMenuTriggerStyle = exports.badgeVariants = exports.buttonVariants = exports.css = exports.sx = exports.Box = exports.tw = exports.variants = exports.capitalize = exports.cn = exports.Slot = exports.Hanzo = exports.Anchor = exports.ToggleGroupItem = exports.ToggleGroup = exports.RadioGroupItem = exports.RadioGroup = exports.HoverCardTrigger = exports.HoverCardContent = void 0;
|
|
7
|
+
exports.config = exports.fit = exports.navigationMenuTriggerStyle = exports.badgeVariants = exports.buttonVariants = exports.css = exports.sx = exports.Box = exports.tw = exports.variants = exports.capitalize = exports.cn = exports.Slot = exports.Hanzo = exports.Anchor = exports.ToggleGroupItem = exports.ToggleGroup = exports.RadioGroupItem = exports.RadioGroup = exports.HoverCardTrigger = exports.HoverCardContent = void 0;
|
|
8
8
|
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/design.
|
|
9
9
|
//
|
|
10
10
|
// ONE substrate: every component renders through @hanzo/gui primitives, so the
|
|
@@ -296,3 +296,7 @@ Object.defineProperty(exports, "buttonVariants", { enumerable: true, get: functi
|
|
|
296
296
|
Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return style_1.badgeVariants; } });
|
|
297
297
|
Object.defineProperty(exports, "navigationMenuTriggerStyle", { enumerable: true, get: function () { return style_1.navigationMenuTriggerStyle; } });
|
|
298
298
|
Object.defineProperty(exports, "fit", { enumerable: true, get: function () { return style_1.fit; } });
|
|
299
|
+
// The config the components are styled against, for a host that lays out with
|
|
300
|
+
// @hanzo/gui stacks of its own.
|
|
301
|
+
var gui_config_1 = require("./gui-config.cjs");
|
|
302
|
+
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return gui_config_1.config; } });
|
package/dist/index.node.js
CHANGED
|
@@ -69,4 +69,7 @@ export { Box } from './box.js';
|
|
|
69
69
|
export { sx } from './sx.js';
|
|
70
70
|
export { css } from './css.js';
|
|
71
71
|
export { buttonVariants, badgeVariants, navigationMenuTriggerStyle, fit } from './style.js';
|
|
72
|
+
// The config the components are styled against, for a host that lays out with
|
|
73
|
+
// @hanzo/gui stacks of its own.
|
|
74
|
+
export { config } from './gui-config.js';
|
|
72
75
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "8.27.
|
|
3
|
+
"version": "8.27.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Hanzo UI — the one canonical Hanzo component library, on @hanzo/gui + @hanzo/design. ONE substrate: every component renders through @hanzo/gui primitives, so the same import works on web, native (expo) and desktop (Tauri). Self-contained (theme.css), presentational, host-agnostic, clean-room.",
|
|
6
6
|
"exports": {
|