@promptbook/remote-server 0.102.0-0 → 0.102.0-1
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/esm/index.es.js +107 -39
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +34 -22
- package/esm/typings/src/_packages/types.index.d.ts +8 -8
- package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +2 -2
- package/esm/typings/src/book-components/{AvatarProfile/AvatarProfile → Chat/MockedChat}/MockedChat.d.ts +25 -8
- package/esm/typings/src/book-components/Chat/MockedChat/constants.d.ts +42 -0
- package/esm/typings/src/book-components/Chat/save/savePlugins.d.ts +105 -0
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +6 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +107 -39
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/index.d.ts +0 -3
- package/esm/typings/src/book-components/Chat/utils/savePlugins.d.ts +0 -55
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { ChatMessage } from '../types/ChatMessage';
|
|
2
|
-
/**
|
|
3
|
-
* Supported chat export formats
|
|
4
|
-
* @public exported from `@promptbook/components`
|
|
5
|
-
*/
|
|
6
|
-
export type ChatSaveFormat = 'json' | 'txt' | 'md' | 'html';
|
|
7
|
-
/**
|
|
8
|
-
* Plugin contract for chat export formats
|
|
9
|
-
* @public exported from `@promptbook/components`
|
|
10
|
-
*/
|
|
11
|
-
export type ChatSavePlugin = {
|
|
12
|
-
format: ChatSaveFormat;
|
|
13
|
-
label: string;
|
|
14
|
-
getContent: (messages: ChatMessage[]) => string;
|
|
15
|
-
mimeType: string;
|
|
16
|
-
fileExtension: string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* JSON export plugin (full metadata)
|
|
20
|
-
*
|
|
21
|
-
* @public exported from `@promptbook/components`
|
|
22
|
-
*/
|
|
23
|
-
export declare const jsonSavePlugin: ChatSavePlugin;
|
|
24
|
-
/**
|
|
25
|
-
* Plain text export plugin (messages only)
|
|
26
|
-
*
|
|
27
|
-
* @public exported from `@promptbook/components`
|
|
28
|
-
*/
|
|
29
|
-
export declare const txtSavePlugin: ChatSavePlugin;
|
|
30
|
-
/**
|
|
31
|
-
* Markdown export plugin (formatted)
|
|
32
|
-
*
|
|
33
|
-
* @public exported from `@promptbook/components`
|
|
34
|
-
*/
|
|
35
|
-
export declare const mdSavePlugin: ChatSavePlugin;
|
|
36
|
-
/**
|
|
37
|
-
* HTML export plugin (formatted)
|
|
38
|
-
* @public exported from `@promptbook/components`
|
|
39
|
-
*/
|
|
40
|
-
export declare const htmlSavePlugin: ChatSavePlugin;
|
|
41
|
-
/**
|
|
42
|
-
* Registry of all built-in chat save plugins
|
|
43
|
-
*
|
|
44
|
-
* @public exported from `@promptbook/components`
|
|
45
|
-
*/
|
|
46
|
-
export declare const chatSavePlugins: ChatSavePlugin[];
|
|
47
|
-
/**
|
|
48
|
-
* Returns enabled chat save plugins filtered by formats (or all when omitted)
|
|
49
|
-
*
|
|
50
|
-
* @public exported from `@promptbook/components`
|
|
51
|
-
*/
|
|
52
|
-
export declare function getChatSavePlugins(formats?: ChatSaveFormat[]): ChatSavePlugin[];
|
|
53
|
-
/**
|
|
54
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
55
|
-
*/
|