@blocklet/pages-kit 0.2.329 → 0.2.331

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.
@@ -108,12 +108,14 @@ export default function ThemeProvider({ children }) {
108
108
  },
109
109
  };
110
110
  const tempTheme = createTheme({
111
- typography: Object.assign({ fontFamily: bodyFontFamily }, Object.fromEntries(new Array(5).fill(0).map((_, index) => [
111
+ typography: Object.assign(Object.assign({ fontFamily: bodyFontFamily }, Object.fromEntries(new Array(5).fill(0).map((_, index) => [
112
112
  `h${index + 1}`,
113
113
  {
114
114
  fontFamily: headingFontFamily,
115
115
  },
116
- ]))),
116
+ ]))), { button: {
117
+ textTransform: 'none',
118
+ } }),
117
119
  palette: {
118
120
  primary,
119
121
  secondary: {
@@ -127,8 +129,6 @@ export default function ThemeProvider({ children }) {
127
129
  primary: tempTheme.palette.primary,
128
130
  secondary: tempTheme.palette.secondary,
129
131
  text: tempTheme.palette.text,
130
- // @ts-ignore
131
- black: tempTheme.palette.black,
132
132
  background: {
133
133
  default: '#ffffff',
134
134
  },
@@ -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,