@blocklet/pages-kit 0.2.324 → 0.2.326

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 (30) hide show
  1. package/lib/cjs/builtin/async/ai-runtime/components/{MarkdownRenderer.js → MarkdownRenderer/index.js} +6 -12
  2. package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/index.js +1 -1
  3. package/lib/cjs/builtin/async/ai-runtime/components/SocialShare.js +5 -2
  4. package/lib/cjs/builtin/async/ai-runtime/constants.js +5 -1
  5. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +24 -9
  6. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +1 -2
  7. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +20 -7
  8. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +4 -1
  9. package/lib/cjs/builtin/async/ai-runtime/state/runtime.js +8 -6
  10. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  11. package/lib/esm/builtin/async/ai-runtime/components/{MarkdownRenderer.js → MarkdownRenderer/index.js} +6 -12
  12. package/lib/esm/builtin/async/ai-runtime/components/ShareActions/index.js +1 -1
  13. package/lib/esm/builtin/async/ai-runtime/components/SocialShare.js +5 -2
  14. package/lib/esm/builtin/async/ai-runtime/constants.js +4 -0
  15. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +22 -9
  16. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +1 -2
  17. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +22 -9
  18. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +4 -1
  19. package/lib/esm/builtin/async/ai-runtime/state/runtime.js +8 -6
  20. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  21. package/lib/types/builtin/async/ai-runtime/constants.d.ts +1 -0
  22. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.d.ts +4 -0
  23. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.d.ts +3 -1
  24. package/lib/types/builtin/session.d.ts +1 -0
  25. package/lib/types/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +3 -3
  27. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.js +0 -20
  28. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.js +0 -14
  29. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.d.ts +0 -1
  30. /package/lib/types/builtin/async/ai-runtime/components/{MarkdownRenderer.d.ts → MarkdownRenderer/index.d.ts} +0 -0
@@ -9,6 +9,7 @@ export declare const SUGGESTED_QUESTIONS_VIEW_ID = "6u8m11ss7fvu8t7i";
9
9
  export declare const REFERENCED_LINKS_VIEW_ID = "baqmaoccdntqwayc";
10
10
  export declare const SHARE_VIEW_ID = "jfq3df9z8lkk9not";
11
11
  export declare const IMAGES_VIEW_ID = "txirtdgx8h2bmo7s";
12
+ export declare const OPENING_QUESTIONS_VIEW_ID = "vgsgsvnhud0cq37v";
12
13
  export declare const DEFAULT_OUTPUT_COMPONENTS: {
13
14
  [name: string]: {
14
15
  componentId: string;
@@ -1,6 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { BoxProps } from '@mui/material';
2
3
  import { MessageItem } from '../../state/session';
3
4
  declare const MessageView: import("react").MemoExoticComponent<({ message }: {
4
5
  message: MessageItem;
5
6
  }) => import("react/jsx-runtime").JSX.Element | null>;
6
7
  export default MessageView;
8
+ export declare function MessageBodyContainer({ messageRole, ...props }: {
9
+ messageRole?: 'assistant' | 'user';
10
+ } & BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const OpeningMessageView: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
2
+ declare const OpeningMessageView: import("react").MemoExoticComponent<({ isMessagesEmpty }: {
3
+ isMessagesEmpty?: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element | null>;
3
5
  export default OpeningMessageView;
@@ -8,4 +8,5 @@ export declare function useSessionContext(): {
8
8
  loading?: boolean;
9
9
  login: (cb?: () => void) => any;
10
10
  };
11
+ events: any;
11
12
  };