@promptbook/wizard 0.100.0-46 → 0.100.0-47
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 +1 -1
- package/esm/typings/src/book-components/Chat/interfaces/ChatParticipant.d.ts +19 -1
- package/esm/typings/src/book-components/Chat/utils/exportChatHistory.d.ts +2 -4
- package/esm/typings/src/book-components/Chat/utils/generatePdfContent.d.ts +2 -4
- package/esm/typings/src/book-components/Chat/utils/messagesToHtml.d.ts +2 -4
- package/esm/typings/src/book-components/Chat/utils/messagesToMarkdown.d.ts +2 -4
- package/esm/typings/src/book-components/Chat/utils/messagesToText.d.ts +2 -4
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
package/esm/index.es.js
CHANGED
@@ -39,7 +39,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
39
39
|
* @generated
|
40
40
|
* @see https://github.com/webgptorg/promptbook
|
41
41
|
*/
|
42
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
42
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-47';
|
43
43
|
/**
|
44
44
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
45
45
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { string_name } from '../../../types/typeAliases';
|
2
|
+
import type { string_person_fullname } from '../../../types/typeAliases';
|
2
3
|
import type { string_url_image } from '../../../types/typeAliases';
|
3
4
|
/**
|
4
5
|
* A participant in the chat
|
@@ -6,7 +7,24 @@ import type { string_url_image } from '../../../types/typeAliases';
|
|
6
7
|
* @public exported from `@promptbook/components`
|
7
8
|
*/
|
8
9
|
export type ChatParticipant = {
|
10
|
+
/**
|
11
|
+
* Identifies the participant by their name, same as `message.from`
|
12
|
+
*/
|
9
13
|
name: string_name;
|
10
|
-
|
14
|
+
/**
|
15
|
+
* Full name of the participant
|
16
|
+
*/
|
17
|
+
fullname: string_person_fullname;
|
18
|
+
/**
|
19
|
+
* Am I the participant? (i.e. is this the user)
|
20
|
+
*/
|
21
|
+
isMe?: boolean;
|
22
|
+
/**
|
23
|
+
* Profile picture
|
24
|
+
*/
|
25
|
+
avatarSrc?: string_url_image;
|
26
|
+
/**
|
27
|
+
* Color associated with the participant
|
28
|
+
*/
|
11
29
|
color: string;
|
12
30
|
};
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
import type { ChatParticipant } from '../interfaces/ChatParticipant';
|
2
3
|
import type { ExportFormat } from './ExportFormat';
|
3
4
|
/**
|
4
5
|
* Exports chat messages in the specified format
|
5
6
|
*
|
6
7
|
* @private utility of `<Chat/>` component
|
7
8
|
*/
|
8
|
-
export declare function exportChatHistory(messages: ChatMessage[], format: ExportFormat, headerMarkdown?: string, participants?:
|
9
|
-
name: string;
|
10
|
-
avatarUrl?: string;
|
11
|
-
}>): Promise<void>;
|
9
|
+
export declare function exportChatHistory(messages: ChatMessage[], format: ExportFormat, headerMarkdown?: string, participants?: ReadonlyArray<ChatParticipant>): Promise<void>;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
import type { ChatParticipant } from '../interfaces/ChatParticipant';
|
2
3
|
/**
|
3
4
|
* Generates PDF content using HTML and triggers print dialog
|
4
5
|
*
|
5
6
|
* @private utility of `<Chat/>` component
|
6
7
|
*/
|
7
|
-
export declare function generatePdfContent(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?:
|
8
|
-
name: string;
|
9
|
-
avatarUrl?: string;
|
10
|
-
}>): void;
|
8
|
+
export declare function generatePdfContent(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?: ReadonlyArray<ChatParticipant>): void;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
import type { ChatParticipant } from '../interfaces/ChatParticipant';
|
2
3
|
/**
|
3
4
|
* Converts chat messages to HTML format
|
4
5
|
*
|
5
6
|
* @private utility of `<Chat/>` component
|
6
7
|
*/
|
7
|
-
export declare function messagesToHtml(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?:
|
8
|
-
name: string;
|
9
|
-
avatarUrl?: string;
|
10
|
-
}>): string;
|
8
|
+
export declare function messagesToHtml(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?: ReadonlyArray<ChatParticipant>): string;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
import type { ChatParticipant } from '../interfaces/ChatParticipant';
|
2
3
|
/**
|
3
4
|
* Converts chat messages to Markdown format
|
4
5
|
*
|
5
6
|
* @private utility of `<Chat/>` component
|
6
7
|
*/
|
7
|
-
export declare function messagesToMarkdown(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?:
|
8
|
-
name: string;
|
9
|
-
avatarUrl?: string;
|
10
|
-
}>): string;
|
8
|
+
export declare function messagesToMarkdown(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?: ReadonlyArray<ChatParticipant>): string;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
import type { ChatParticipant } from '../interfaces/ChatParticipant';
|
2
3
|
/**
|
3
4
|
* Converts chat messages to plain text format
|
4
5
|
*
|
5
6
|
* @private utility of `<Chat/>` component
|
6
7
|
*/
|
7
|
-
export declare function messagesToText(messages: ChatMessage[], shareUrl: string, headerMarkdown?: string, participants?:
|
8
|
-
name: string;
|
9
|
-
avatarUrl?: string;
|
10
|
-
}>): string;
|
8
|
+
export declare function messagesToText(messages: ChatMessage[], shareUrl: string, headerMarkdown?: string, participants?: ReadonlyArray<ChatParticipant>): string;
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
16
16
|
/**
|
17
17
|
* Represents the version string of the Promptbook engine.
|
18
|
-
* It follows semantic versioning (e.g., `0.100.0-
|
18
|
+
* It follows semantic versioning (e.g., `0.100.0-46`).
|
19
19
|
*
|
20
20
|
* @generated
|
21
21
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@promptbook/wizard",
|
3
|
-
"version": "0.100.0-
|
3
|
+
"version": "0.100.0-47",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"module": "./esm/index.es.js",
|
96
96
|
"typings": "./esm/typings/src/_packages/wizard.index.d.ts",
|
97
97
|
"peerDependencies": {
|
98
|
-
"@promptbook/core": "0.100.0-
|
98
|
+
"@promptbook/core": "0.100.0-47"
|
99
99
|
},
|
100
100
|
"dependencies": {
|
101
101
|
"@ai-sdk/deepseek": "0.1.6",
|
package/umd/index.umd.js
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
* @generated
|
51
51
|
* @see https://github.com/webgptorg/promptbook
|
52
52
|
*/
|
53
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
53
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-47';
|
54
54
|
/**
|
55
55
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
56
56
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|