@promptbook/wizard 0.100.0-23 → 0.100.0-25

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
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
38
38
  * @generated
39
39
  * @see https://github.com/webgptorg/promptbook
40
40
  */
41
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-23';
41
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-25';
42
42
  /**
43
43
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
44
44
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -0,0 +1,4 @@
1
+ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
+ import { BookEditor } from '../book-components/BookEditor/BookEditor';
3
+ export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
4
+ export { BookEditor };
@@ -11,6 +11,7 @@ import type { KnowledgeChunk } from '../book-2.0/commitments/KNOWLEDGE/types';
11
11
  import type { KnowledgeBase } from '../book-2.0/commitments/KNOWLEDGE/types';
12
12
  import type { RetrievalResult } from '../book-2.0/commitments/KNOWLEDGE/types';
13
13
  import type { RAGConfig } from '../book-2.0/commitments/KNOWLEDGE/types';
14
+ import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
14
15
  import type { PipelineCollection } from '../collection/PipelineCollection';
15
16
  import type { Command } from '../commands/_common/types/Command';
16
17
  import type { CommandParser } from '../commands/_common/types/CommandParser';
@@ -329,6 +330,7 @@ export type { KnowledgeChunk };
329
330
  export type { KnowledgeBase };
330
331
  export type { RetrievalResult };
331
332
  export type { RAGConfig };
333
+ export type { BookEditorProps };
332
334
  export type { PipelineCollection };
333
335
  export type { Command };
334
336
  export type { CommandParser };
@@ -0,0 +1,28 @@
1
+ import type { string_book } from '../../book-2.0/agent-source/string_book';
2
+ export interface BookEditorProps {
3
+ /**
4
+ * Additional CSS classes to apply to the editor container.
5
+ */
6
+ className?: string;
7
+ /**
8
+ * CSS className for a font (e.g. from next/font) to style the editor text.
9
+ * If omitted, defaults to system serif fonts.
10
+ */
11
+ fontClassName?: string;
12
+ /**
13
+ * The book which is being edited.
14
+ */
15
+ value?: string_book;
16
+ /**
17
+ * Callback function to handle changes in the book content.
18
+ */
19
+ onChange?: (value: string_book) => void;
20
+ }
21
+ /**
22
+ * Renders a book editor
23
+ *
24
+ * 🔥 LIVE COMPONENT TEST: This component is being served live from the playground server!
25
+ *
26
+ * @public exported from `@promptbook/components`
27
+ */
28
+ export declare function BookEditor(props: BookEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -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-22`).
18
+ * It follows semantic versioning (e.g., `0.100.0-24`).
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-23",
3
+ "version": "0.100.0-25",
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-23"
98
+ "@promptbook/core": "0.100.0-25"
99
99
  },
100
100
  "dependencies": {
101
101
  "@ai-sdk/deepseek": "0.1.6",
package/umd/index.umd.js CHANGED
@@ -49,7 +49,7 @@
49
49
  * @generated
50
50
  * @see https://github.com/webgptorg/promptbook
51
51
  */
52
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-23';
52
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-25';
53
53
  /**
54
54
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
55
55
  * Note: [💞] Ignore a discrepancy between file name and entity name