@blocklet/pages-kit 0.2.366 → 0.2.368

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 (34) hide show
  1. package/lib/cjs/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +1 -1
  2. package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/Community.js +6 -0
  3. package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/index.js +37 -10
  4. package/lib/cjs/builtin/async/ai-runtime/contexts/Identity.js +36 -0
  5. package/lib/cjs/builtin/async/ai-runtime/contexts/Runtime.js +45 -25
  6. package/lib/cjs/builtin/async/ai-runtime/index.js +6 -3
  7. package/lib/cjs/builtin/async/ai-runtime/locales/index.js +4 -0
  8. package/lib/cjs/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +1 -3
  9. package/lib/cjs/builtin/async/ai-runtime/runtime/Runtime/index.js +2 -4
  10. package/lib/cjs/builtin/async/ai-runtime/state/agent.js +3 -3
  11. package/lib/cjs/builtin/async/ai-runtime/state/runtime.js +2 -2
  12. package/lib/cjs/builtin/async/ai-runtime/state/session.js +3 -3
  13. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  14. package/lib/esm/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +2 -2
  15. package/lib/esm/builtin/async/ai-runtime/components/ShareActions/Community.js +4 -0
  16. package/lib/esm/builtin/async/ai-runtime/components/ShareActions/index.js +38 -11
  17. package/lib/esm/builtin/async/ai-runtime/contexts/Identity.js +28 -0
  18. package/lib/esm/builtin/async/ai-runtime/contexts/Runtime.js +19 -24
  19. package/lib/esm/builtin/async/ai-runtime/index.js +2 -0
  20. package/lib/esm/builtin/async/ai-runtime/locales/index.js +4 -0
  21. package/lib/esm/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +1 -3
  22. package/lib/esm/builtin/async/ai-runtime/runtime/Runtime/index.js +2 -4
  23. package/lib/esm/builtin/async/ai-runtime/state/agent.js +3 -3
  24. package/lib/esm/builtin/async/ai-runtime/state/runtime.js +2 -2
  25. package/lib/esm/builtin/async/ai-runtime/state/session.js +3 -3
  26. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  27. package/lib/types/builtin/async/ai-runtime/components/ShareActions/Community.d.ts +4 -0
  28. package/lib/types/builtin/async/ai-runtime/contexts/Identity.d.ts +16 -0
  29. package/lib/types/builtin/async/ai-runtime/contexts/Runtime.d.ts +4 -16
  30. package/lib/types/builtin/async/ai-runtime/index.d.ts +2 -0
  31. package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +4 -0
  32. package/lib/types/builtin/async/ai-runtime/state/session.d.ts +1 -2
  33. package/lib/types/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +7 -7
@@ -0,0 +1,4 @@
1
+ declare const CommunityIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
+ muiName: string;
3
+ };
4
+ export default CommunityIcon;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export interface IdentityContext {
3
+ aid: string;
4
+ working?: boolean;
5
+ blockletDid?: string;
6
+ }
7
+ export declare function useIdentityContext(): IdentityContext;
8
+ export default function IdentityProvider({ blockletDid, aid, working, children, }: {
9
+ blockletDid?: string;
10
+ aid: string;
11
+ working?: boolean;
12
+ children?: ReactNode;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function IdentityProviderFromUrl({ children }: {
15
+ children?: ReactNode;
16
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,4 @@
1
- import { ReactNode } from 'react';
2
- export interface RuntimeContext {
3
- aid: string;
4
- working?: boolean;
5
- blockletDid?: string;
6
- }
7
- export declare function useRuntimeContext(): RuntimeContext;
8
- export default function RuntimeProvider({ blockletDid, aid, working, children, }: {
9
- blockletDid?: string;
10
- aid: string;
11
- working?: boolean;
12
- children?: ReactNode;
13
- }): import("react/jsx-runtime").JSX.Element;
14
- export declare function RuntimeProviderFromUrl({ children }: {
15
- children?: ReactNode;
16
- }): import("react/jsx-runtime").JSX.Element;
1
+ import { ComponentProps } from 'react';
2
+ import IdentityProvider, { IdentityProviderFromUrl } from './Identity';
3
+ export default function RuntimeProvider({ ...props }: ComponentProps<typeof IdentityProvider>): import("react/jsx-runtime").JSX.Element;
4
+ export declare function RuntimeProviderFromUrl({ ...props }: ComponentProps<typeof IdentityProviderFromUrl>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,5 @@
1
+ export * from './contexts/Runtime';
2
+ export { default as RuntimeProvider } from './contexts/Runtime';
1
3
  export * from './contexts/ComponentPreferences';
2
4
  export { default as ComponentPreferencesProvider } from './contexts/ComponentPreferences';
3
5
  export * from './contexts/CurrentAgent';
@@ -10,6 +10,7 @@ export declare const translations: {
10
10
  shareToFacebook: string;
11
11
  shareToLinkedin: string;
12
12
  copyLink: string;
13
+ shareToCommunity: string;
13
14
  };
14
15
  photoWall: {
15
16
  dialog: {
@@ -100,6 +101,7 @@ export declare const translations: {
100
101
  };
101
102
  settings: string;
102
103
  setup: string;
104
+ docLink: string;
103
105
  };
104
106
  zh: {
105
107
  by: string;
@@ -112,6 +114,7 @@ export declare const translations: {
112
114
  shareToFacebook: string;
113
115
  shareToLinkedin: string;
114
116
  copyLink: string;
117
+ shareToCommunity: string;
115
118
  };
116
119
  photoWall: {
117
120
  dialog: {
@@ -202,5 +205,6 @@ export declare const translations: {
202
205
  };
203
206
  settings: string;
204
207
  setup: string;
208
+ docLink: string;
205
209
  };
206
210
  };
@@ -1,7 +1,6 @@
1
1
  import { Message } from '../api/message';
2
2
  import { Session } from '../api/session';
3
- export interface MessageItem extends Omit<Message, 'id'> {
4
- id?: string;
3
+ export interface MessageItem extends Message {
5
4
  loading?: boolean;
6
5
  }
7
6
  export interface SessionItemState {