it-data-nexus-ui-library 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/NexusChat/ChatComponents/MessageList.mjs +1 -1
- package/dist/components/NexusChat/ChatComponents/SuggestedPrompts.mjs +1 -1
- package/dist/components/NexusChat/ChatHistory.mjs +1 -1
- package/dist/components/NexusChat/ChatHistoryAgentItem.mjs +1 -0
- package/dist/components/NexusChat/ChatHistoryButtonBase.mjs +1 -1
- package/dist/components/NexusChat/ChatHistoryHeader.mjs +1 -1
- package/dist/components/NexusChat/NexusChatDialog.mjs +1 -1
- package/dist/generated/version.mjs +1 -1
- package/dist/index.d.ts +31 -10
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useRef as r,useEffect as o}from"react";import{Box as n}from"../../_Primitives/Box.mjs";import i from"./MessageBubble.mjs";import c from"./StreamingBubble.mjs";import l from"./TypingIndicator.mjs";import{latestTraceLabel as s}from"./latestTraceLabel.mjs";const m=({messages:m,isTyping:a,streamingText:u,liveTraceEvents:g,highlightQuery:h,onAbort:p,showActivity:f=!1,compact:b=!1,markdownComponents:d,onFeedback:x})=>{const y=r(null),v=r(null),T=r(!1),j=r(m.length),w=r(!1),A=()=>{const t=v.current;t&&(w.current=!0,t.scrollTop=t.scrollHeight,requestAnimationFrame(()=>{w.current=!1}))};o(()=>{const t=m[m.length-1];m.length>j.current&&"user"===t?.role&&(T.current=!1,A()),j.current=m.length},[m]),o(()=>{T.current||A()},[a,u]);const k=(u||"").trim().length>0,H=a&&(k||f),B=a&&!H;return t(n,{ref:v,onScroll:()=>{w.current||(T.current=!(()=>{const t=v.current;return!t||t.scrollHeight-t.scrollTop-t.clientHeight<80})())},sx:{flex:1,minHeight:0,overflowY:"auto",display:"flex",flexDirection:"column",gap:1.5,px:2,py:1.5},children:[m.filter(t=>"user"===t.role||t.content).map(t=>e(i,{message:t,highlightQuery:h,showActivity:f,compact:b,markdownComponents:d,onFeedback:x},t.id)),H&&e(c,{text:u||"",traceEvents:g||[],highlightQuery:h,onAbort:p,showActivity:f,compact:b}),B&&e(l,{traceLabel:g&&g.length>0?s(g):void 0}),e(n,{ref:y})]})};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{Stack as e}from"../../_Primitives/Stack.mjs";import{Chip as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{Stack as e}from"../../_Primitives/Stack.mjs";import{Chip as o}from"../../_Primitives/Chip.mjs";const i=({prompts:i,onSelect:t})=>r(e,{direction:"row",spacing:1,sx:{flexWrap:"wrap",gap:1,justifyContent:"center",alignItems:"center"},children:i.map(e=>r(o,{label:e,onClick:()=>t(e),size:"medium",sx:{backgroundColor:"background.default",border:1,borderColor:"divider",cursor:"pointer",color:"text.primary"}},e))});export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import{useState as i,useCallback as r}from"react";import n from"@mui/icons-material/ChevronRight";import{H4 as s,Caption as l}from"../Typography.mjs";import{Box as a}from"../_Primitives/Box.mjs";import{Stack as c}from"../_Primitives/Stack.mjs";import{Divider as h}from"../_Primitives/Divider.mjs";import{IconButton as d}from"../Buttons/IconButton.mjs";import{ChatHistoryHeader as m}from"./ChatHistoryHeader.mjs";import{ChatHistoryButtonBase as x}from"./ChatHistoryButtonBase.mjs";import{ChatHistoryAgentItem as p}from"./ChatHistoryAgentItem.mjs";import{filterChatHistoryConversations as g}from"./ChatHistorySearch.mjs";const f=({conversations:f,activeConversationId:C,onSelectConversation:v,onDeleteConversation:y,onNewConversation:u,onClose:b,onSearchChange:S,agents:w,activeAgentId:j,onSelectAgent:k,title:A="Chat history",agentsLabel:H="Agents",sectionLabel:T="Chats",emptyText:D="No conversations yet",newChatTitle:B="New chat",deleteConversationTitle:I="Delete conversation",searchPlaceholder:N="Search conversations",searchDebounceMs:P=300,width:M=288,sx:L,formatMessageCount:_=e=>`${e} messages`,isCollapsed:R=!1,onToggleCollapse:W,collapsedWidth:$=40})=>{const[z,E]=i(""),Q=r(e=>{E(e),S?.(e)},[S]),Y=g(f,z),q=w&&w.length>0;return e(a,{sx:{width:R?$:M,minWidth:R?$:0,flexShrink:0,borderRight:1,borderColor:"divider",overflow:"hidden",transition:"width 0.2s ease, min-width 0.2s ease",display:"flex",flexDirection:"column"},children:R?e(c,{sx:{justifyContent:"center",alignItems:"center",py:2,borderBottom:1,borderColor:"divider",flexShrink:0},children:e(d,{onClick:W,title:"Expand history",ariaLabel:"expand-history",sx:{width:36,height:36},children:e(n,{sx:{fontSize:18}})})}):t(c,{direction:"column",sx:[{flex:1,minHeight:0},...Array.isArray(L)?L:L?[L]:[]],children:[e(m,{newChatTitle:B,onNewConversation:u,onClose:b,onToggleCollapse:W,onSearchChange:Q,searchPlaceholder:N,searchDebounceMs:P}),t(c,{direction:"column",sx:{flex:1,minHeight:0},children:[q&&t(o,{children:[t(c,{sx:{flexShrink:0,px:1.5,pt:1,pb:.5},children:[e(s,{sx:{color:"text.secondary",py:.5},children:H}),w.map(t=>e(p,{agent:t,isActive:t.id===j,onSelect:k??(()=>{})},t.id))]}),e(h,{sx:{flexShrink:0}})]}),t(c,{direction:"column",sx:{flex:1,minHeight:0},children:[q&&t(c,{direction:"row",sx:{alignItems:"center",px:1.5,pt:1,pb:.5,flexShrink:0},children:[e(s,{sx:{flex:1,color:"text.secondary"},children:T}),z&&Y.length>0&&t(l,{sx:{color:"text.disabled"},children:[Y.length," ",1===Y.length?"result":"results"]})]}),e(a,{component:"nav","aria-label":A,sx:{flex:1,overflowY:"auto",px:1,pt:1,pb:1},children:0===Y.length?e(l,{sx:{display:"block",px:.5,py:2,color:"text.disabled"},children:z?`No results for "${z}"`:D}):Y.map(t=>e(x,{conversation:t,isActive:t.id===C,highlightQuery:z,onSelectConversation:v,onDeleteConversation:y,deleteConversationTitle:I,formatMessageCount:_},t.id))})]})]})]})})};export{f as ChatHistory};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as r,jsx as o}from"react/jsx-runtime";import{ButtonBase as e}from"../Buttons/ButtonBase.mjs";import{Avatar as t}from"../Avatar.mjs";import{Body1 as s}from"../Typography.mjs";import i from"../../assets/images/nexus-logo-node.svg.mjs";const n=({agent:n,isActive:a,onSelect:l})=>r(e,{onClick:()=>l(n.id),sx:{display:"flex",alignItems:"center",width:"100%",borderRadius:1,border:"1px solid",borderColor:a?"primary.main":"transparent",backgroundColor:a?"action.selected":"transparent",textAlign:"left",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"action.hover"}},children:[o(t,{size:"sm",sx:{backgroundColor:"transparent"},children:o("img",{src:i,alt:"",style:{width:"50%",height:"50%"}})}),o(s,{sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",mb:0},children:n.name})]});export{n as ChatHistoryAgentItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import t from"@mui/icons-material/ChatBubbleOutlined";import o from"@mui/icons-material/DeleteForeverOutlined";import{Tooltip as i}from"@mui/material";import{Body1 as n,Caption as a}from"../Typography.mjs";import{GhostButton as s}from"../Buttons/GhostButton.mjs";import{Box as l}from"../_Primitives/Box.mjs";import{IconButton as m}from"../Buttons/IconButton.mjs";import{colours as p}from"../../theme/tokens.mjs";const d=(e,t)=>{const o=t?.trim();if(!o)return e;const i=new RegExp(`(${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(o)})`,"ig");return e.split(i).map((e,t)=>{if(!e)return null;return e.toLowerCase()===o.toLowerCase()?r(l,{component:"mark",sx:{backgroundColor:e=>"dark"===e.palette.mode?"rgba(255, 214, 10, 0.35)":"rgba(255, 214, 10, 0.45)",color:"inherit",borderRadius:.5,px:.25,py:0},children:e},`${e}-${t}`):e})},c=({conversation:c,isActive:u,highlightQuery:b,onSelectConversation:h,onDeleteConversation:g,deleteConversationTitle:x,formatMessageCount:f,showMessageCount:v=!1,sx:y})=>{const C=(e=>"number"==typeof e.messageCount?e.messageCount:Array.isArray(e.messages)?e.messages.length:0)(c);return e(l,{sx:[{position:"relative",mb:.5,"&:hover .delete-button":{visibility:"visible"}},...Array.isArray(y)?y:y?[y]:[]],children:[r(i,{title:c.agentName??"",placement:"right",disableInteractive:!0,children:r("span",{children:e(s,{onClick:()=>h(c.id),sx:{width:"100%",display:"flex",alignItems:"center",gap:1.25,borderRadius:1,px:1.5,py:.75,pr:4.5,backgroundColor:u?e=>e.palette.background.paper:"transparent",backgroundImage:"none",opacity:1,border:"1px solid",borderColor:u?p.primaryGreenActive:"transparent","&:hover":{backgroundColor:u?e=>e.palette.background.paper:"action.hover",backgroundImage:"none"},"&:focus-visible":{boxShadow:e=>`0 0 0 2px ${e.palette.primary.main}`}},children:[r(t,{sx:{fontSize:14,color:u?p.primaryGreenActive:"text.disabled"}}),e(l,{sx:{flex:1,minWidth:0},children:[r(n,{component:"span",sx:{display:"block",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:u?"text.primary":"text.secondary"},children:d(c.title,b)}),v&&r(a,{noWrap:!0,sx:{display:"block"},children:f(C)})]})]})})}),r(l,{sx:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)"},children:r(m,{className:"delete-button",title:x,ariaLabel:x,onClick:e=>{e.stopPropagation(),g&&Promise.resolve(g(c.id))},disabled:!g,sx:{visibility:"hidden"},children:r(o,{sx:{fontSize:14,color:u?"error.main":"text.disabled"}})})})]})};export{c as ChatHistoryButtonBase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as o,jsx as t}from"react/jsx-runtime";import e from"@mui/icons-material/Add";import r from"@mui/icons-material/ChevronLeft";import i from"@mui/icons-material/Search";import{InputAdornment as n}from"@mui/material";import{useState as l,useEffect as s}from"react";import{Stack as a}from"../_Primitives/Stack.mjs";import{TextField as m}from"../_Primitives/TextField.mjs";import{IconButton as c}from"../Buttons/IconButton.mjs";import{PrimaryButton as d}from"../Buttons/PrimaryButton.mjs";const h=({newChatTitle:h,onNewConversation:p,onClose:u,onToggleCollapse:f,onSearchChange:C,searchPlaceholder:x="Search conversations",searchDebounceMs:v=300})=>{const[S,b]=l("");s(()=>{if(!C)return;const o=window.setTimeout(()=>{C(S)},v);return()=>window.clearTimeout(o)},[C,v,S]);return o(a,{direction:"column",spacing:1.5,sx:{px:1.5,py:1.5,borderBottom:1,borderColor:"divider",flexShrink:0},children:[(f||u)&&o(a,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:.5},children:[f&&t(c,{onClick:f,title:"Collapse history",ariaLabel:"collapse-history",children:t(r,{sx:{fontSize:18}})}),u&&t(c,{onClick:u,title:"Close history",ariaLabel:"close-history",children:t(r,{sx:{fontSize:16}})})]}),t(d,{fullWidth:!0,startIcon:t(e,{}),onClick:p,disabled:!p,children:h}),t(m,{fullWidth:!0,size:"small",value:S,onChange:o=>b(o.target.value),placeholder:x,slotProps:{htmlInput:{"aria-label":"Search conversations"},input:{startAdornment:t(n,{position:"start",children:t(i,{sx:{fontSize:16,color:"text.disabled"}})})}}})]})};export{h as ChatHistoryHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as o,jsx as e,Fragment as t}from"react/jsx-runtime";import{useState as i}from"react";import{useTheme as n,useMediaQuery as r,Popover as s}from"@mui/material";import l from"@mui/icons-material/CloseFullscreen";import a from"@mui/icons-material/GridView";import m from"@mui/icons-material/History";import{AgentChatWindow as p}from"./AgentChatWindow.mjs";import{ChatHistory as c}from"./ChatHistory.mjs";import{Dialog as d}from"../_Primitives/Dialog.mjs";import{Box as h}from"../_Primitives/Box.mjs";import{Stack as C}from"../_Primitives/Stack.mjs";import{IconButton as g}from"../Buttons/IconButton.mjs";import{AiChip as u}from"../AiChip.mjs";import{H1 as f,H2 as v}from"../Typography.mjs";import"@mui/icons-material/Check";import"@mui/icons-material/ContentCopy";import"@mui/icons-material/Download";import"@mui/material/styles";import"../../theme/tokens.mjs";import"./ChatComponents/ChatAvatar.mjs";import{chatWindowMarkdownComponents as x}from"./ChatComponents/MarkdownContent.mjs";import"@mui/icons-material/ExpandMore";import"@mui/icons-material/ExpandLess";import"@mui/icons-material/CheckCircle";import"@mui/icons-material/OpenInNew";import"../Code.mjs";import"@mui/icons-material/ThumbUp";import"@mui/icons-material/ThumbDown";import w from"./ChatComponents/SuggestedPrompts.mjs";import S from"./ChatComponents/MessageList.mjs";function y({open:y,onClose:b,title:j="Ask Nexus",subtitle:A="Ready to help",placeholder:k,suggestedPrompts:I=[],showAiChip:T=!0,isTyping:z,messages:P,streamingText:D,liveTraceEvents:E,showActivity:O=!1,onSend:U,onStop:L,followUpPrompts:N,followUpLabel:B="Suggested follow-ups:",topOffset:M,conversations:_,activeConversationId:F,onSelectConversation:H,onDeleteConversation:W,onNewConversation:X,agents:$,activeAgentId:G,onSelectAgent:R}){const V=n(),q=r(V.breakpoints.down("md")),[J,K]=i(!1),[Q,Y]=i(!1),[Z,oo]=i(null),eo=P.length>0||z,to=void 0!==_,io=M?`calc(100vh - ${M}px)`:"100vh",no=o(C,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[T&&e(u,{}),to&&q&&e(g,{title:"Chat history",size:"small",onClick:()=>K(o=>!o),children:e(m,{sx:{fontSize:18}})}),e(g,{title:"Close full view",size:"small",onClick:b,children:e(l,{sx:{fontSize:16}})})]}),ro=eo?e(S,{messages:P,isTyping:z,streamingText:D,liveTraceEvents:E,showActivity:O,markdownComponents:x}):o(C,{direction:"column",sx:{gap:4,alignItems:"center"},children:[e(f,{children:j}),e(v,{sx:{color:"text.secondary"},children:A})]}),so=!eo&&I.length>0?o(t,{children:[e(g,{title:"Open prompt gallery",ariaLabel:"Open prompt gallery",size:"small",sx:{color:"text.jades"},onClick:o=>oo(o.currentTarget),children:e(a,{sx:{fontSize:18}})}),e(s,{open:Boolean(Z),anchorEl:Z,onClose:()=>oo(null),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:e(h,{sx:{p:2,maxWidth:360},children:e(w,{prompts:I,onSelect:o=>{oo(null),U(o)}})})})]}):void 0;return o(d,{open:y,fullScreen:!0,onClose:b,sx:M?{top:`${M}px`}:void 0,children:[o(h,{sx:{display:"flex",height:io,overflow:"hidden"},children:[to&&e(h,{sx:{display:{xs:"none",md:"flex"},flexShrink:0},children:e(c,{conversations:_,activeConversationId:F??null,onSelectConversation:H??(()=>{}),onDeleteConversation:W,onNewConversation:X,agents:$,activeAgentId:G,onSelectAgent:R,isCollapsed:Q,onToggleCollapse:()=>Y(o=>!o)})}),e(p,{title:j,subtitle:A,showAiChip:!1,headerActions:no,isEmpty:!eo,body:ro,followUpPrompts:N,onSelectFollowUp:U,followUpLabel:B,onSend:U,isStreaming:z,onStop:L,inputPlaceholder:k,inputActions:so})]}),to&&q&&o(t,{children:[J&&e(h,{onClick:()=>K(!1),sx:{position:"absolute",inset:0,zIndex:9,bgcolor:"rgba(0,0,0,0.45)"}}),e(h,{sx:{position:"absolute",top:0,left:0,bottom:0,width:288,zIndex:10,bgcolor:"background.paper",boxShadow:4,display:"flex",flexDirection:"column",overflow:"hidden",transform:J?"translateX(0)":"translateX(-100%)",transition:"transform 0.25s ease"},children:e(c,{conversations:_,activeConversationId:F??null,onSelectConversation:o=>{H?.(o),K(!1)},onDeleteConversation:W,onNewConversation:X?()=>{X(),K(!1)}:void 0,agents:$,activeAgentId:G,onSelectAgent:R,onClose:()=>K(!1)})})]})]})}export{y as NexusChatDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.5.
|
|
1
|
+
const o="2.5.1";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -165,6 +165,12 @@ interface ChatHistoryConversation {
|
|
|
165
165
|
title: string;
|
|
166
166
|
messages?: unknown[];
|
|
167
167
|
messageCount?: number;
|
|
168
|
+
/** When provided, shown as a tooltip on hover — useful for identifying the agent that ran the conversation. */
|
|
169
|
+
agentName?: string;
|
|
170
|
+
}
|
|
171
|
+
interface ChatHistoryAgent {
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
168
174
|
}
|
|
169
175
|
interface ChatHistoryProps {
|
|
170
176
|
conversations: ChatHistoryConversation[];
|
|
@@ -174,7 +180,14 @@ interface ChatHistoryProps {
|
|
|
174
180
|
onNewConversation?: () => void;
|
|
175
181
|
onClose?: () => void;
|
|
176
182
|
onSearchChange?: (query: string) => void;
|
|
183
|
+
agents?: ChatHistoryAgent[];
|
|
184
|
+
activeAgentId?: string | null;
|
|
185
|
+
onSelectAgent?: (id: string) => void;
|
|
186
|
+
/** aria-label for the nav element. Defaults to "Chat history". */
|
|
177
187
|
title?: string;
|
|
188
|
+
agentsLabel?: string;
|
|
189
|
+
/** Label shown above conversations. Only rendered when agents are also present. */
|
|
190
|
+
sectionLabel?: string;
|
|
178
191
|
emptyText?: string;
|
|
179
192
|
newChatTitle?: string;
|
|
180
193
|
deleteConversationTitle?: string;
|
|
@@ -203,9 +216,7 @@ interface NexusChatDialogProps {
|
|
|
203
216
|
showActivity?: boolean;
|
|
204
217
|
onSend: (message: string) => void;
|
|
205
218
|
onStop?: () => void;
|
|
206
|
-
/**
|
|
207
|
-
background?: React.ReactNode;
|
|
208
|
-
/** Prompt chips shown in a paper strip directly above the input during an active conversation */
|
|
219
|
+
/** Prompt chips shown directly above the input during an active conversation */
|
|
209
220
|
followUpPrompts?: string[];
|
|
210
221
|
/** Label shown above the follow-up chips. Defaults to "Suggested follow-ups:" */
|
|
211
222
|
followUpLabel?: string;
|
|
@@ -218,8 +229,11 @@ interface NexusChatDialogProps {
|
|
|
218
229
|
onSelectConversation?: (id: string) => void;
|
|
219
230
|
onDeleteConversation?: (id: string) => void | Promise<boolean>;
|
|
220
231
|
onNewConversation?: () => void;
|
|
232
|
+
agents?: ChatHistoryAgent[];
|
|
233
|
+
activeAgentId?: string | null;
|
|
234
|
+
onSelectAgent?: (id: string) => void;
|
|
221
235
|
}
|
|
222
|
-
declare function NexusChatDialog({ open, onClose, title, subtitle, placeholder, suggestedPrompts, showAiChip, isTyping, messages, streamingText, liveTraceEvents, showActivity, onSend, onStop,
|
|
236
|
+
declare function NexusChatDialog({ open, onClose, title, subtitle, placeholder, suggestedPrompts, showAiChip, isTyping, messages, streamingText, liveTraceEvents, showActivity, onSend, onStop, followUpPrompts, followUpLabel, topOffset, conversations, activeConversationId, onSelectConversation, onDeleteConversation, onNewConversation, agents, activeAgentId, onSelectAgent, }: NexusChatDialogProps): react.JSX.Element;
|
|
223
237
|
|
|
224
238
|
interface FABButtonProps {
|
|
225
239
|
onOpen: () => void;
|
|
@@ -277,10 +291,9 @@ interface ChatInputProps {
|
|
|
277
291
|
}
|
|
278
292
|
declare const ChatInput: ({ onSend, disabled, placeholder, maxRows, sendButtonTitle, isStreaming, onStop, stopButtonTitle, actions, value: controlledValue, onChange, inputRef, label, }: ChatInputProps) => react.JSX.Element;
|
|
279
293
|
|
|
280
|
-
declare const ChatHistory: ({ conversations, activeConversationId, onSelectConversation, onDeleteConversation, onNewConversation, onClose, onSearchChange, title, emptyText, newChatTitle, deleteConversationTitle, searchPlaceholder, searchDebounceMs, width, sx, formatMessageCount, isCollapsed, onToggleCollapse, collapsedWidth, }: ChatHistoryProps) => react.JSX.Element;
|
|
294
|
+
declare const ChatHistory: ({ conversations, activeConversationId, onSelectConversation, onDeleteConversation, onNewConversation, onClose, onSearchChange, agents, activeAgentId, onSelectAgent, title, agentsLabel, sectionLabel, emptyText, newChatTitle, deleteConversationTitle, searchPlaceholder, searchDebounceMs, width, sx, formatMessageCount, isCollapsed, onToggleCollapse, collapsedWidth, }: ChatHistoryProps) => react.JSX.Element;
|
|
281
295
|
|
|
282
296
|
interface ChatHistoryHeaderProps {
|
|
283
|
-
title: string;
|
|
284
297
|
newChatTitle: string;
|
|
285
298
|
onNewConversation?: () => void;
|
|
286
299
|
onClose?: () => void;
|
|
@@ -289,7 +302,7 @@ interface ChatHistoryHeaderProps {
|
|
|
289
302
|
searchPlaceholder?: string;
|
|
290
303
|
searchDebounceMs?: number;
|
|
291
304
|
}
|
|
292
|
-
declare const ChatHistoryHeader: ({
|
|
305
|
+
declare const ChatHistoryHeader: ({ newChatTitle, onNewConversation, onClose, onToggleCollapse, onSearchChange, searchPlaceholder, searchDebounceMs, }: ChatHistoryHeaderProps) => react.JSX.Element;
|
|
293
306
|
|
|
294
307
|
interface ChatHistoryButtonBaseProps {
|
|
295
308
|
conversation: ChatHistoryConversation;
|
|
@@ -304,6 +317,13 @@ interface ChatHistoryButtonBaseProps {
|
|
|
304
317
|
}
|
|
305
318
|
declare const ChatHistoryButtonBase: ({ conversation, isActive, highlightQuery, onSelectConversation, onDeleteConversation, deleteConversationTitle, formatMessageCount, showMessageCount, sx, }: ChatHistoryButtonBaseProps) => react.JSX.Element;
|
|
306
319
|
|
|
320
|
+
interface ChatHistoryAgentItemProps {
|
|
321
|
+
agent: ChatHistoryAgent;
|
|
322
|
+
isActive: boolean;
|
|
323
|
+
onSelect: (id: string) => void;
|
|
324
|
+
}
|
|
325
|
+
declare const ChatHistoryAgentItem: ({ agent, isActive, onSelect, }: ChatHistoryAgentItemProps) => react.JSX.Element;
|
|
326
|
+
|
|
307
327
|
declare const chatHistoryMatchesQuery: (conversation: ChatHistoryConversation, query: string) => boolean;
|
|
308
328
|
declare const filterChatHistoryConversations: <TConversation extends ChatHistoryConversation>(conversations: TConversation[], query: string) => TConversation[];
|
|
309
329
|
|
|
@@ -386,8 +406,9 @@ interface MessageListProps {
|
|
|
386
406
|
showActivity?: boolean;
|
|
387
407
|
compact?: boolean;
|
|
388
408
|
markdownComponents?: Partial<Components>;
|
|
409
|
+
onFeedback?: (messageId: string, rating: "positive" | "negative", comment?: string) => void;
|
|
389
410
|
}
|
|
390
|
-
declare const MessageList: ({ messages, isTyping, streamingText, liveTraceEvents, highlightQuery, onAbort, showActivity, compact, markdownComponents, }: MessageListProps) => react.JSX.Element;
|
|
411
|
+
declare const MessageList: ({ messages, isTyping, streamingText, liveTraceEvents, highlightQuery, onAbort, showActivity, compact, markdownComponents, onFeedback, }: MessageListProps) => react.JSX.Element;
|
|
391
412
|
|
|
392
413
|
interface EmptyStateProps {
|
|
393
414
|
title: string;
|
|
@@ -1353,5 +1374,5 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
|
|
|
1353
1374
|
declare const leftPipe: SxProps<Theme>;
|
|
1354
1375
|
declare const expandableText: (isExpanded: boolean) => SxProps<Theme>;
|
|
1355
1376
|
|
|
1356
|
-
export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AgentChatWindow, AgentChatWindowHeader, AiButton, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, Breadcrumbs, ButtonBase, Caption, Card, ChatAvatar, ChatHistory, ChatHistoryButtonBase, ChatHistoryHeader, ChatInput, ChatWindowBody, Checkbox, CheckboxGroup, Chip, CircularProgress, Code, Collapse, Container, CopyableTableContainer, DateRangeFilter, DateRangePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, EmptyState, FABButton, FaviconLinks, FormControlLabel, FormGroup, GhostButton, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageBubble, MessageFeedbackBar, MessageList, MetricCard, MetricStat, MetricValue, MuiAppThemeProvider, NexusBarChart, NexusChatDialog, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, NexusPieChart, NexusScatterChart, NexusiFrame, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SageLogoSvg, SearchInput, SecondaryButton, SecondaryButtonLink, SegmentedControl, Select, SelectableList, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Span, Stack, StatusBadge, StatusChip, StreamingBubble, SuggestedPrompts, Switch, Tab, Table, TableBody, TableCell, TableHead, TableRow, Tabs, TextField, ThemeModeContext, ThemeModeProvider, ThemeToggle, Tooltip, TypingIndicator, chatHistoryMatchesQuery, chatWindowMarkdownComponents, colours, createSageTheme, expandableText, filterChatHistoryConversations, fontSageHeadline, fontSageText, fontSageUI, formatDate, formatSurnameFirstname, getFaviconUrls, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, latestTraceLabel, leftPipe, ragColorForDelta, useThemeMode, useTokens };
|
|
1357
|
-
export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, CardProps, CardTrend, ChartAsyncProps, ChatAvatarProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, CodeBlock, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, EmptyStateProps, FABButtonProps, FileArtifact, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusBarChartProps, NexusChatDialogProps, NexusChatWidgetProps, NexusLineChartProps, NexusPieChartProps, NexusScatterChartProps, NexusiFrameProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SelectableListItem, SelectableListProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SourceCitationsProps, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, TooltipProps, TraceEvent, TypingIndicatorProps };
|
|
1377
|
+
export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AgentChatWindow, AgentChatWindowHeader, AiButton, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, Breadcrumbs, ButtonBase, Caption, Card, ChatAvatar, ChatHistory, ChatHistoryAgentItem, ChatHistoryButtonBase, ChatHistoryHeader, ChatInput, ChatWindowBody, Checkbox, CheckboxGroup, Chip, CircularProgress, Code, Collapse, Container, CopyableTableContainer, DateRangeFilter, DateRangePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, EmptyState, FABButton, FaviconLinks, FormControlLabel, FormGroup, GhostButton, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageBubble, MessageFeedbackBar, MessageList, MetricCard, MetricStat, MetricValue, MuiAppThemeProvider, NexusBarChart, NexusChatDialog, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, NexusPieChart, NexusScatterChart, NexusiFrame, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SageLogoSvg, SearchInput, SecondaryButton, SecondaryButtonLink, SegmentedControl, Select, SelectableList, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Span, Stack, StatusBadge, StatusChip, StreamingBubble, SuggestedPrompts, Switch, Tab, Table, TableBody, TableCell, TableHead, TableRow, Tabs, TextField, ThemeModeContext, ThemeModeProvider, ThemeToggle, Tooltip, TypingIndicator, chatHistoryMatchesQuery, chatWindowMarkdownComponents, colours, createSageTheme, expandableText, filterChatHistoryConversations, fontSageHeadline, fontSageText, fontSageUI, formatDate, formatSurnameFirstname, getFaviconUrls, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, latestTraceLabel, leftPipe, ragColorForDelta, useThemeMode, useTokens };
|
|
1378
|
+
export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, CardProps, CardTrend, ChartAsyncProps, ChatAvatarProps, ChatHistoryAgent, ChatHistoryAgentItemProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, CodeBlock, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, EmptyStateProps, FABButtonProps, FileArtifact, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusBarChartProps, NexusChatDialogProps, NexusChatWidgetProps, NexusLineChartProps, NexusPieChartProps, NexusScatterChartProps, NexusiFrameProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SelectableListItem, SelectableListProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SourceCitationsProps, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, TooltipProps, TraceEvent, TypingIndicatorProps };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/_Primitives/Alert.mjs";export{NexusChatWidget}from"./components/NexusChat/NexusChatWidget.mjs";export{NexusChatDialog}from"./components/NexusChat/NexusChatDialog.mjs";export{FABButton}from"./components/NexusChat/FABButton.mjs";export{AgentChatWindow}from"./components/NexusChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/NexusChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/NexusChat/ChatInput.mjs";export{ChatHistory}from"./components/NexusChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/NexusChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/NexusChat/ChatHistoryButtonBase.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/NexusChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/NexusChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/NexusChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/NexusChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/NexusChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/NexusChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/NexusChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/NexusChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/NexusChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/NexusChat/ChatComponents/latestTraceLabel.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/_Primitives/Container.mjs";export{Grid}from"./components/_Primitives/Grid.mjs";export{Link}from"./components/_Primitives/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{SegmentedControl}from"./components/SegmentedControl.mjs";export{Breadcrumbs}from"./components/Breadcrumbs.mjs";export{Switch}from"./components/_Primitives/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,ChatWindowBody,H1,H2,H3,H4,MetricValue,Span}from"./components/Typography.mjs";export{MetricStat}from"./components/MetricStat.mjs";export{MetricCard}from"./components/MetricCard.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/Buttons/AiButton.mjs";export{AiChip}from"./components/AiChip.mjs";export{AiCard}from"./components/AiCard.mjs";export{AiGlassCard}from"./components/AiGlassCard.mjs";export{AiPaper}from"./components/AiPaper.mjs";export{AiGlassPaper}from"./components/AiGlassPaper.mjs";export{Box}from"./components/_Primitives/Box.mjs";export{CircularProgress}from"./components/_Primitives/CircularProgress.mjs";export{Collapse}from"./components/_Primitives/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/Buttons/ButtonBase.mjs";export{GhostButton}from"./components/Buttons/GhostButton.mjs";export{SelectableList}from"./components/Buttons/SelectableList.mjs";export{Card}from"./components/Card.mjs";export{Checkbox}from"./components/FormControls/Checkbox.mjs";export{FormControlLabel}from"./components/FormControls/FormControlLabel.mjs";export{FormGroup}from"./components/FormControls/FormGroup.mjs";export{CheckboxGroup}from"./components/FormControls/CheckboxGroup.mjs";export{Chip}from"./components/_Primitives/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/_Primitives/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{Table,TableBody,TableCell,TableHead,TableRow}from"./components/_Primitives/Table.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{PaperAsync}from"./components/PaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/Buttons/IconButton.mjs";export{Avatar}from"./components/Avatar.mjs";export{LoadingSpinnerNexus}from"./components/LoadingSpinnerNexus.mjs";export{LocationMultiSelect}from"./components/LocationMultiSelect.mjs";export{LogoOptions}from"./components/LogoOptions/index.mjs";export{NexusHome}from"./components/NexusHome.mjs";export{default as NexusLogo}from"./components/NexusLogo.mjs";export{SageLogoSvg}from"./components/LogoOptions/SageLogo.mjs";export{Paper}from"./components/_Primitives/Paper.mjs";export{PrimaryButton}from"./components/Buttons/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/Buttons/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/Buttons/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{ragColorForDelta}from"./components/ragColorForDelta.mjs";export{SecondaryButtonLink}from"./components/Buttons/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBlade/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBlade/SideBladeNavListItem.mjs";export{Skeleton}from"./components/_Primitives/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/_Primitives/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/_Primitives/Tab.mjs";export{Tabs}from"./components/_Primitives/Tabs.mjs";export{TextField}from"./components/_Primitives/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusiFrame}from"./components/NexusiFrame.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.mjs";export{NexusScatterChart}from"./components/Charts/NexusScatterChart.mjs";export{default as nexusLogoNode}from"./assets/images/nexus-logo-node.svg.mjs";export{default as nexusLogoFavicon}from"./assets/images/nexus-logo-favicon.svg.mjs";export{default as nexusLogoIco}from"./assets/images/favicon.ico.mjs";export{getFaviconUrls}from"./assets/images/urls.mjs";export{FaviconLinks}from"./components/FaviconLinks.mjs";export{createSageTheme}from"./theme/sageTheme.mjs";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.mjs";export{useTokens}from"./theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./theme/MuiAppThemeProvider.mjs";export{ThemeModeContext,ThemeModeProvider,useThemeMode}from"./theme/ThemeContext.mjs";export{AlertTitle,MenuItem,alpha,useMediaQuery,useTheme}from"@mui/material";export{formatSurnameFirstname}from"./utils/nameFormats.mjs";export{formatDate,getFiscalPeriod}from"./utils/dateFormats.mjs";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";export{ChartsReferenceLine}from"./node_modules/@mui/x-charts/ChartsReferenceLine/ChartsReferenceLine.mjs";
|
|
1
|
+
export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/_Primitives/Alert.mjs";export{NexusChatWidget}from"./components/NexusChat/NexusChatWidget.mjs";export{NexusChatDialog}from"./components/NexusChat/NexusChatDialog.mjs";export{FABButton}from"./components/NexusChat/FABButton.mjs";export{AgentChatWindow}from"./components/NexusChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/NexusChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/NexusChat/ChatInput.mjs";export{ChatHistory}from"./components/NexusChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/NexusChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/NexusChat/ChatHistoryButtonBase.mjs";export{ChatHistoryAgentItem}from"./components/NexusChat/ChatHistoryAgentItem.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/NexusChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/NexusChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/NexusChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/NexusChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/NexusChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/NexusChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/NexusChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/NexusChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/NexusChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/NexusChat/ChatComponents/latestTraceLabel.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/_Primitives/Container.mjs";export{Grid}from"./components/_Primitives/Grid.mjs";export{Link}from"./components/_Primitives/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{SegmentedControl}from"./components/SegmentedControl.mjs";export{Breadcrumbs}from"./components/Breadcrumbs.mjs";export{Switch}from"./components/_Primitives/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,ChatWindowBody,H1,H2,H3,H4,MetricValue,Span}from"./components/Typography.mjs";export{MetricStat}from"./components/MetricStat.mjs";export{MetricCard}from"./components/MetricCard.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/Buttons/AiButton.mjs";export{AiChip}from"./components/AiChip.mjs";export{AiCard}from"./components/AiCard.mjs";export{AiGlassCard}from"./components/AiGlassCard.mjs";export{AiPaper}from"./components/AiPaper.mjs";export{AiGlassPaper}from"./components/AiGlassPaper.mjs";export{Box}from"./components/_Primitives/Box.mjs";export{CircularProgress}from"./components/_Primitives/CircularProgress.mjs";export{Collapse}from"./components/_Primitives/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/Buttons/ButtonBase.mjs";export{GhostButton}from"./components/Buttons/GhostButton.mjs";export{SelectableList}from"./components/Buttons/SelectableList.mjs";export{Card}from"./components/Card.mjs";export{Checkbox}from"./components/FormControls/Checkbox.mjs";export{FormControlLabel}from"./components/FormControls/FormControlLabel.mjs";export{FormGroup}from"./components/FormControls/FormGroup.mjs";export{CheckboxGroup}from"./components/FormControls/CheckboxGroup.mjs";export{Chip}from"./components/_Primitives/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/_Primitives/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{Table,TableBody,TableCell,TableHead,TableRow}from"./components/_Primitives/Table.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{PaperAsync}from"./components/PaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/Buttons/IconButton.mjs";export{Avatar}from"./components/Avatar.mjs";export{LoadingSpinnerNexus}from"./components/LoadingSpinnerNexus.mjs";export{LocationMultiSelect}from"./components/LocationMultiSelect.mjs";export{LogoOptions}from"./components/LogoOptions/index.mjs";export{NexusHome}from"./components/NexusHome.mjs";export{default as NexusLogo}from"./components/NexusLogo.mjs";export{SageLogoSvg}from"./components/LogoOptions/SageLogo.mjs";export{Paper}from"./components/_Primitives/Paper.mjs";export{PrimaryButton}from"./components/Buttons/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/Buttons/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/Buttons/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{ragColorForDelta}from"./components/ragColorForDelta.mjs";export{SecondaryButtonLink}from"./components/Buttons/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBlade/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBlade/SideBladeNavListItem.mjs";export{Skeleton}from"./components/_Primitives/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/_Primitives/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/_Primitives/Tab.mjs";export{Tabs}from"./components/_Primitives/Tabs.mjs";export{TextField}from"./components/_Primitives/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusiFrame}from"./components/NexusiFrame.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.mjs";export{NexusScatterChart}from"./components/Charts/NexusScatterChart.mjs";export{default as nexusLogoNode}from"./assets/images/nexus-logo-node.svg.mjs";export{default as nexusLogoFavicon}from"./assets/images/nexus-logo-favicon.svg.mjs";export{default as nexusLogoIco}from"./assets/images/favicon.ico.mjs";export{getFaviconUrls}from"./assets/images/urls.mjs";export{FaviconLinks}from"./components/FaviconLinks.mjs";export{createSageTheme}from"./theme/sageTheme.mjs";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.mjs";export{useTokens}from"./theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./theme/MuiAppThemeProvider.mjs";export{ThemeModeContext,ThemeModeProvider,useThemeMode}from"./theme/ThemeContext.mjs";export{AlertTitle,MenuItem,alpha,useMediaQuery,useTheme}from"@mui/material";export{formatSurnameFirstname}from"./utils/nameFormats.mjs";export{formatDate,getFiscalPeriod}from"./utils/dateFormats.mjs";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";export{ChartsReferenceLine}from"./node_modules/@mui/x-charts/ChartsReferenceLine/ChartsReferenceLine.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "it-data-nexus-ui-library",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Nexus core components",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "emsmart-sage",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@chromatic-com/storybook": "^5.
|
|
74
|
+
"@chromatic-com/storybook": "^5.3.0",
|
|
75
75
|
"@emotion/react": "^11.14.0",
|
|
76
76
|
"@emotion/styled": "^11.14.1",
|
|
77
77
|
"@eslint/js": "9.39.4",
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
"@rollup/plugin-terser": "^1.0.0",
|
|
88
88
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
89
89
|
"@rollup/plugin-url": "^8.0.2",
|
|
90
|
-
"@storybook/addon-a11y": "^10.
|
|
91
|
-
"@storybook/addon-docs": "^10.
|
|
92
|
-
"@storybook/addon-vitest": "^10.
|
|
93
|
-
"@storybook/react-vite": "^10.
|
|
90
|
+
"@storybook/addon-a11y": "^10.5.10",
|
|
91
|
+
"@storybook/addon-docs": "^10.5.10",
|
|
92
|
+
"@storybook/addon-vitest": "^10.5.10",
|
|
93
|
+
"@storybook/react-vite": "^10.5.10",
|
|
94
94
|
"@types/node": "^25.6.0",
|
|
95
95
|
"@types/react": "^19.2.14",
|
|
96
96
|
"@types/rollup-plugin-peer-deps-external": "^2.2.6",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
113
113
|
"rollup-plugin-postcss": "^4.0.2",
|
|
114
114
|
"sharp": "^0.34.5",
|
|
115
|
-
"storybook": "^10.
|
|
115
|
+
"storybook": "^10.5.10",
|
|
116
116
|
"tslib": "^2.8.1",
|
|
117
117
|
"typescript": "^6.0.2",
|
|
118
118
|
"typescript-eslint": "8.58.2",
|