@blocklet/pages-kit 0.2.329 → 0.2.330

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.
@@ -127,8 +127,6 @@ export default function ThemeProvider({ children }) {
127
127
  primary: tempTheme.palette.primary,
128
128
  secondary: tempTheme.palette.secondary,
129
129
  text: tempTheme.palette.text,
130
- // @ts-ignore
131
- black: tempTheme.palette.black,
132
130
  background: {
133
131
  default: '#ffffff',
134
132
  },
@@ -41,11 +41,10 @@ function SimpleChatView() {
41
41
  if (running)
42
42
  scrollToBottom({ behavior: 'smooth' });
43
43
  }, [scrollToBottom, running]);
44
- const messages = useCurrentSessionState((s) => s === null || s === void 0 ? void 0 : s.messages);
45
44
  const sessionLoading = useCurrentSessionState((s) => s === null || s === void 0 ? void 0 : s.loading);
46
45
  const loading = useSessionState((s) => s === null || s === void 0 ? void 0 : s.loading) || sessionLoading;
47
46
  useHeaderMenu();
48
- return (_jsxs(SimpleLayout, { px: 0, children: [_jsx(SimpleHeader, { px: 4, sx: { color: hasBg ? 'white' : undefined } }), loading ? (_jsx(Box, { textAlign: "center", my: 10, children: _jsx(CircularProgress, { size: 24 }) })) : (_jsxs(_Fragment, { children: [_jsx(CurrentAgentProvider, { agentId: activeAgentId, children: _jsx(MessagesView, { className: "aigne-outputs aigne-simple-chat-outputs", flexGrow: (messages === null || messages === void 0 ? void 0 : messages.length) ? 1 : 0, pb: (messages === null || messages === void 0 ? void 0 : messages.length) ? 10 : 2, px: { xs: 2, sm: 3 } }) }), _jsx(CurrentAgentProvider, { agentId: activeAgentId, children: _jsx(InputsView, { className: "aigne-inputs aigne-simple-chat-inputs", sx: {
47
+ return (_jsxs(SimpleLayout, { px: 0, children: [_jsx(SimpleHeader, { px: 4, sx: { color: hasBg ? 'white' : undefined } }), loading ? (_jsx(Box, { textAlign: "center", my: 10, children: _jsx(CircularProgress, { size: 24 }) })) : (_jsxs(_Fragment, { children: [_jsx(CurrentAgentProvider, { agentId: activeAgentId, children: _jsx(MessagesView, { className: "aigne-outputs aigne-simple-chat-outputs", flexGrow: 1, pb: 10, px: { xs: 2, sm: 3 } }) }), _jsx(CurrentAgentProvider, { agentId: activeAgentId, children: _jsx(InputsView, { className: "aigne-inputs aigne-simple-chat-inputs", sx: {
49
48
  position: 'sticky',
50
49
  bottom: 0,
51
50
  py: 2,