@blocklet/pages-kit 0.2.326 → 0.2.328

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.
Files changed (36) hide show
  1. package/lib/cjs/builtin/async/ai-runtime/components/Header/SimpleHeader.js +1 -1
  2. package/lib/cjs/builtin/async/ai-runtime/components/ThemeProvider.js +47 -29
  3. package/lib/cjs/builtin/async/ai-runtime/components/UserInfo.js +4 -6
  4. package/lib/cjs/builtin/async/ai-runtime/locales/index.js +10 -4
  5. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +6 -4
  6. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +3 -2
  7. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +4 -1
  8. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Page.js +15 -6
  9. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +74 -19
  10. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.js +25 -0
  11. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +8 -3
  12. package/lib/cjs/components/CustomComponentRenderer/index.js +3 -2
  13. package/lib/cjs/components/CustomComponentRenderer/state.js +1 -1
  14. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  15. package/lib/esm/builtin/async/ai-runtime/components/Header/SimpleHeader.js +1 -1
  16. package/lib/esm/builtin/async/ai-runtime/components/ThemeProvider.js +48 -30
  17. package/lib/esm/builtin/async/ai-runtime/components/UserInfo.js +4 -6
  18. package/lib/esm/builtin/async/ai-runtime/locales/index.js +10 -4
  19. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +6 -4
  20. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +3 -2
  21. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +5 -2
  22. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Page.js +15 -6
  23. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +73 -18
  24. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.js +23 -0
  25. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +8 -3
  26. package/lib/esm/components/CustomComponentRenderer/index.js +3 -2
  27. package/lib/esm/components/CustomComponentRenderer/state.js +1 -1
  28. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  29. package/lib/types/builtin/async/ai-runtime/api/agent.d.ts +9 -1
  30. package/lib/types/builtin/async/ai-runtime/components/UserInfo.d.ts +2 -1
  31. package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +6 -0
  32. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.d.ts +2 -1
  33. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.d.ts +3 -0
  34. package/lib/types/components/CustomComponentRenderer/index.d.ts +1 -0
  35. package/lib/types/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +6 -6
@@ -21,7 +21,15 @@ export interface Agent {
21
21
  createdBy: string;
22
22
  createdAt: string;
23
23
  updatedAt: string;
24
- primaryColor?: string;
24
+ appearance?: {
25
+ primaryColor?: string;
26
+ typography?: {
27
+ fontFamily?: string;
28
+ heading?: {
29
+ fontFamily?: string;
30
+ };
31
+ };
32
+ };
25
33
  };
26
34
  }
27
35
  export declare function getAgent({ aid, working }: {
@@ -1,6 +1,6 @@
1
1
  import { StackProps, TypographyProps } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
- export default function UserInfo({ avatar, showDID, did, name, time, children, reverse, ...restProps }: StackProps & {
3
+ export default function UserInfo({ avatar, showDID, did, name, time, children, reverse, UserNameProps, ...restProps }: StackProps & {
4
4
  avatar?: string;
5
5
  showDID?: boolean;
6
6
  did?: string;
@@ -8,6 +8,7 @@ export default function UserInfo({ avatar, showDID, did, name, time, children, r
8
8
  time?: string;
9
9
  children?: ReactNode;
10
10
  reverse?: boolean;
11
+ UserNameProps?: TypographyProps;
11
12
  } & StackProps): import("react/jsx-runtime").JSX.Element;
12
13
  export declare function UserName({ children, sx, ...restProps }: TypographyProps & {
13
14
  children: ReactNode;
@@ -94,6 +94,9 @@ export declare const translations: {
94
94
  codePreviewTip: string;
95
95
  hideSlider: string;
96
96
  showSlider: string;
97
+ retryTip: string;
98
+ retry: string;
99
+ errorCodeTip: string;
97
100
  };
98
101
  };
99
102
  zh: {
@@ -191,6 +194,9 @@ export declare const translations: {
191
194
  codePreviewTip: string;
192
195
  hideSlider: string;
193
196
  showSlider: string;
197
+ retryTip: string;
198
+ retry: string;
199
+ errorCodeTip: string;
194
200
  };
195
201
  };
196
202
  };
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from '@mui/material';
3
3
  import { MessageItem } from '../../../state/session';
4
- export default function CodePreview({ componentId, code, propertiesValue, ...restProps }: {
4
+ export default function CodePreview({ componentId, code, propertiesValue, message, ...restProps }: {
5
5
  componentId?: string;
6
6
  code: string | undefined;
7
7
  propertiesValue?: any;
8
+ message?: MessageItem | undefined;
8
9
  } & BoxProps): import("react/jsx-runtime").JSX.Element | null;
9
10
  export declare const CodePreviewMemo: import("react").MemoExoticComponent<typeof CodePreview>;
10
11
  export declare function CodeRenderByMessage({ zoom, message, minHeight, sx, propertiesValueMap, }: {
@@ -0,0 +1,3 @@
1
+ import { TooltipProps } from '@mui/material';
2
+ declare const TransparentTooltip: import("@emotion/styled").StyledComponent<TooltipProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
+ export default TransparentTooltip;
@@ -23,5 +23,6 @@ export interface CustomComponentRendererProps {
23
23
  [key: string]: any;
24
24
  };
25
25
  dev?: CustomComponentRendererDevProps;
26
+ fallbackRender?: any;
26
27
  }
27
28
  export default function CustomComponentRenderer({ dev, ...props }: CustomComponentRendererProps): import("react/jsx-runtime").JSX.Element;