@blocklet/pages-kit 0.2.366 → 0.2.367
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.
- package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/Community.js +6 -0
- package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/index.js +37 -10
- package/lib/cjs/builtin/async/ai-runtime/contexts/Identity.js +36 -0
- package/lib/cjs/builtin/async/ai-runtime/contexts/Runtime.js +45 -25
- package/lib/cjs/builtin/async/ai-runtime/index.js +6 -3
- package/lib/cjs/builtin/async/ai-runtime/locales/index.js +2 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +1 -3
- package/lib/cjs/builtin/async/ai-runtime/runtime/Runtime/index.js +2 -4
- package/lib/cjs/builtin/async/ai-runtime/state/agent.js +3 -3
- package/lib/cjs/builtin/async/ai-runtime/state/runtime.js +2 -2
- package/lib/cjs/builtin/async/ai-runtime/state/session.js +3 -3
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/builtin/async/ai-runtime/components/ShareActions/Community.js +4 -0
- package/lib/esm/builtin/async/ai-runtime/components/ShareActions/index.js +38 -11
- package/lib/esm/builtin/async/ai-runtime/contexts/Identity.js +28 -0
- package/lib/esm/builtin/async/ai-runtime/contexts/Runtime.js +19 -24
- package/lib/esm/builtin/async/ai-runtime/index.js +2 -0
- package/lib/esm/builtin/async/ai-runtime/locales/index.js +2 -0
- package/lib/esm/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +1 -3
- package/lib/esm/builtin/async/ai-runtime/runtime/Runtime/index.js +2 -4
- package/lib/esm/builtin/async/ai-runtime/state/agent.js +3 -3
- package/lib/esm/builtin/async/ai-runtime/state/runtime.js +2 -2
- package/lib/esm/builtin/async/ai-runtime/state/session.js +3 -3
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/builtin/async/ai-runtime/components/ShareActions/Community.d.ts +4 -0
- package/lib/types/builtin/async/ai-runtime/contexts/Identity.d.ts +16 -0
- package/lib/types/builtin/async/ai-runtime/contexts/Runtime.d.ts +4 -16
- package/lib/types/builtin/async/ai-runtime/index.d.ts +2 -0
- package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +2 -0
- package/lib/types/builtin/async/ai-runtime/state/session.d.ts +1 -2
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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: {
|
|
@@ -112,6 +113,7 @@ export declare const translations: {
|
|
|
112
113
|
shareToFacebook: string;
|
|
113
114
|
shareToLinkedin: string;
|
|
114
115
|
copyLink: string;
|
|
116
|
+
shareToCommunity: string;
|
|
115
117
|
};
|
|
116
118
|
photoWall: {
|
|
117
119
|
dialog: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Message } from '../api/message';
|
|
2
2
|
import { Session } from '../api/session';
|
|
3
|
-
export interface MessageItem extends
|
|
4
|
-
id?: string;
|
|
3
|
+
export interface MessageItem extends Message {
|
|
5
4
|
loading?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export interface SessionItemState {
|