@promptbook/wizard 0.102.0-1 → 0.102.0-2

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 CHANGED
@@ -36,7 +36,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
36
36
  * @generated
37
37
  * @see https://github.com/webgptorg/promptbook
38
38
  */
39
- const PROMPTBOOK_ENGINE_VERSION = '0.102.0-1';
39
+ const PROMPTBOOK_ENGINE_VERSION = '0.102.0-2';
40
40
  /**
41
41
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
42
42
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -41,6 +41,8 @@ import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageB
41
41
  import { renderMarkdown } from '../book-components/Chat/utils/renderMarkdown';
42
42
  import { isMarkdownContent } from '../book-components/Chat/utils/renderMarkdown';
43
43
  import { ArrowIcon } from '../book-components/icons/ArrowIcon';
44
+ import { AttachmentIcon } from '../book-components/icons/AttachmentIcon';
45
+ import { CloseIcon } from '../book-components/icons/CloseIcon';
44
46
  import { PauseIcon } from '../book-components/icons/PauseIcon';
45
47
  import { PlayIcon } from '../book-components/icons/PlayIcon';
46
48
  import { ResetIcon } from '../book-components/icons/ResetIcon';
@@ -89,6 +91,8 @@ export { parseMessageButtons };
89
91
  export { renderMarkdown };
90
92
  export { isMarkdownContent };
91
93
  export { ArrowIcon };
94
+ export { AttachmentIcon };
95
+ export { CloseIcon };
92
96
  export { PauseIcon };
93
97
  export { PlayIcon };
94
98
  export { ResetIcon };
@@ -154,6 +154,7 @@ import type { ApplicationRemoteServerOptions } from '../remote-server/types/Remo
154
154
  import type { ApplicationRemoteServerClientOptions } from '../remote-server/types/RemoteServerOptions';
155
155
  import type { LoginRequest } from '../remote-server/types/RemoteServerOptions';
156
156
  import type { LoginResponse } from '../remote-server/types/RemoteServerOptions';
157
+ import type { ServerInfo } from '../remote-server/ui/types';
157
158
  import type { Converter } from '../scrapers/_common/Converter';
158
159
  import type { ScraperAndConverterMetadata } from '../scrapers/_common/register/ScraperAndConverterMetadata';
159
160
  import type { ScraperConstructor } from '../scrapers/_common/register/ScraperConstructor';
@@ -485,6 +486,7 @@ export type { ApplicationRemoteServerOptions };
485
486
  export type { ApplicationRemoteServerClientOptions };
486
487
  export type { LoginRequest };
487
488
  export type { LoginResponse };
489
+ export type { ServerInfo };
488
490
  export type { Converter };
489
491
  export type { ScraperAndConverterMetadata };
490
492
  export type { ScraperConstructor };
@@ -145,7 +145,16 @@ export type ChatProps = {
145
145
  expectedAnswer: string | null;
146
146
  url: string;
147
147
  }): Promisable<void>;
148
+ /**
149
+ * Optional callback for handling file uploads
150
+ * When provided, enables file upload functionality via drag-and-drop and file button
151
+ * The callback should process the file and return text content to be inserted into the message
152
+ *
153
+ * @param file - The uploaded file
154
+ * @returns Promise or string with the text content to insert into the chat message
155
+ */
156
+ onFileUpload?(file: File): Promisable<string>;
148
157
  };
149
158
  /**
150
159
  * TODO: [☁️] Export component prop types only to `@promptbook/components` (not `@promptbook/types`)
151
- */
160
+ */
@@ -0,0 +1,11 @@
1
+ type AttachmentIconProps = {
2
+ size?: number;
3
+ color?: string;
4
+ };
5
+ /**
6
+ * @@@
7
+ *
8
+ * @public exported from `@promptbook/components`
9
+ */
10
+ export declare function AttachmentIcon({ size, color }: AttachmentIconProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ type CloseIconProps = {
2
+ size?: number;
3
+ color?: string;
4
+ };
5
+ /**
6
+ * @@@
7
+ *
8
+ * @public exported from `@promptbook/components`
9
+ */
10
+ export declare function CloseIcon({ size, color }: CloseIconProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { ServerInfo } from './types';
2
+ /**
3
+ * @@@
4
+ *
5
+ * @private internal utility of Remote Server
6
+ */
7
+ export declare function HtmlDoc({ info }: {
8
+ info: ServerInfo;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ /**
11
+ * Add Note: [💞] Ignore a discrepancy between file name and entity name
12
+ * <- TODO: !!! Maybe split into multiple files
13
+ */
@@ -0,0 +1,7 @@
1
+ import type { ServerInfo } from './types';
2
+ /**
3
+ * Render full HTML for the server index using React SSR without requiring TSX/JSX compiler flags.
4
+ *
5
+ * @private internal utility of Remote Server
6
+ */
7
+ export declare function renderServerIndexHtml(info: ServerInfo): string;
@@ -0,0 +1,16 @@
1
+ export type ServerInfo = {
2
+ bookLanguageVersion: string;
3
+ promptbookEngineVersion: string;
4
+ nodeVersion: string;
5
+ port: number | string | undefined;
6
+ startupDate: string;
7
+ isAnonymousModeAllowed: boolean;
8
+ isApplicationModeAllowed: boolean;
9
+ pipelines: ReadonlyArray<string>;
10
+ runningExecutions: number;
11
+ paths: ReadonlyArray<string>;
12
+ };
13
+ /**
14
+ * Add Note: [💞] Ignore a discrepancy between file name and entity name
15
+ * <- TODO: !!! Maybe split into multiple files
16
+ */
@@ -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.102.0-0`).
18
+ * It follows semantic versioning (e.g., `0.102.0-1`).
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.102.0-1",
3
+ "version": "0.102.0-2",
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.102.0-1"
98
+ "@promptbook/core": "0.102.0-2"
99
99
  },
100
100
  "dependencies": {
101
101
  "@ai-sdk/deepseek": "0.1.6",
package/umd/index.umd.js CHANGED
@@ -48,7 +48,7 @@
48
48
  * @generated
49
49
  * @see https://github.com/webgptorg/promptbook
50
50
  */
51
- const PROMPTBOOK_ENGINE_VERSION = '0.102.0-1';
51
+ const PROMPTBOOK_ENGINE_VERSION = '0.102.0-2';
52
52
  /**
53
53
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
54
54
  * Note: [💞] Ignore a discrepancy between file name and entity name