@promptbook/node 0.101.0-19 → 0.101.0-20
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/_packages/components.index.d.ts +4 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/MockedChat.d.ts +14 -3
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +6 -0
- package/esm/typings/src/book-components/icons/PauseIcon.d.ts +8 -0
- package/esm/typings/src/book-components/icons/PlayIcon.d.ts +8 -0
- 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
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
28
28
|
* @generated
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
30
30
|
*/
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-20';
|
32
32
|
/**
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -27,6 +27,8 @@ import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageB
|
|
27
27
|
import { renderMarkdown } from '../book-components/Chat/utils/renderMarkdown';
|
28
28
|
import { isMarkdownContent } from '../book-components/Chat/utils/renderMarkdown';
|
29
29
|
import { ArrowIcon } from '../book-components/icons/ArrowIcon';
|
30
|
+
import { PauseIcon } from '../book-components/icons/PauseIcon';
|
31
|
+
import { PlayIcon } from '../book-components/icons/PlayIcon';
|
30
32
|
import { ResetIcon } from '../book-components/icons/ResetIcon';
|
31
33
|
import { SendIcon } from '../book-components/icons/SendIcon';
|
32
34
|
import { TemplateIcon } from '../book-components/icons/TemplateIcon';
|
@@ -59,6 +61,8 @@ export { parseMessageButtons };
|
|
59
61
|
export { renderMarkdown };
|
60
62
|
export { isMarkdownContent };
|
61
63
|
export { ArrowIcon };
|
64
|
+
export { PauseIcon };
|
65
|
+
export { PlayIcon };
|
62
66
|
export { ResetIcon };
|
63
67
|
export { SendIcon };
|
64
68
|
export { TemplateIcon };
|
@@ -33,15 +33,26 @@ export type MockedChatDelayConfig = {
|
|
33
33
|
*/
|
34
34
|
export type MockedChatProps = Omit<ChatProps, 'onReset' | /*'onMessage' | */ 'onUseTemplate' | 'isVoiceRecognitionButtonShown'> & {
|
35
35
|
/**
|
36
|
-
* Whether
|
36
|
+
* Whether the chat can be reset via the "New chat" button.
|
37
37
|
*
|
38
|
-
*
|
38
|
+
* When true (default), the reset button is shown and clicking it restarts the simulated flow.
|
39
|
+
* When false, the reset button is hidden (read-only simulation without manual restart).
|
40
|
+
*
|
41
|
+
* @default true
|
39
42
|
*/
|
40
|
-
|
43
|
+
isResettable?: boolean;
|
41
44
|
/**
|
42
45
|
* Optional delays configuration for emulating typing behavior
|
43
46
|
*/
|
44
47
|
delayConfig?: MockedChatDelayConfig;
|
48
|
+
/**
|
49
|
+
* When true, shows Pause/Resume control and allows pausing the simulated flow.
|
50
|
+
* Pausing finishes the currently typing message first (transitions via PAUSING state),
|
51
|
+
* then prevents new messages from starting until resumed.
|
52
|
+
*
|
53
|
+
* @default true
|
54
|
+
*/
|
55
|
+
isPausable?: boolean;
|
45
56
|
};
|
46
57
|
/**
|
47
58
|
* MockedChat component that shows the same chat as Chat but emulates ongoing discussion
|
@@ -66,6 +66,12 @@ export type ChatProps = {
|
|
66
66
|
* If not provided, the chat bar will not be rendered
|
67
67
|
*/
|
68
68
|
readonly children?: ReactNode;
|
69
|
+
/**
|
70
|
+
* Extra action buttons/elements rendered in the actions toolbar
|
71
|
+
* (next to reset / template buttons). Keeps consumers DRY when
|
72
|
+
* adding feature–specific controls (e.g. Pause / Resume in MockedChat).
|
73
|
+
*/
|
74
|
+
readonly extraActions?: ReactNode;
|
69
75
|
/**
|
70
76
|
* Optional CSS class name which will be added to root <div/> element
|
71
77
|
*/
|
@@ -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.101.0-
|
18
|
+
* It follows semantic versioning (e.g., `0.101.0-19`).
|
19
19
|
*
|
20
20
|
* @generated
|
21
21
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@promptbook/node",
|
3
|
-
"version": "0.101.0-
|
3
|
+
"version": "0.101.0-20",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -93,7 +93,7 @@
|
|
93
93
|
"module": "./esm/index.es.js",
|
94
94
|
"typings": "./esm/typings/src/_packages/node.index.d.ts",
|
95
95
|
"peerDependencies": {
|
96
|
-
"@promptbook/core": "0.101.0-
|
96
|
+
"@promptbook/core": "0.101.0-20"
|
97
97
|
},
|
98
98
|
"dependencies": {
|
99
99
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
@@ -45,7 +45,7 @@
|
|
45
45
|
* @generated
|
46
46
|
* @see https://github.com/webgptorg/promptbook
|
47
47
|
*/
|
48
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
48
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-20';
|
49
49
|
/**
|
50
50
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
51
51
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|