@promptbook/node 0.100.0-37 → 0.100.0-39

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.
@@ -3,20 +3,24 @@ export interface BookEditorProps {
3
3
  /**
4
4
  * Additional CSS classes to apply to the editor container.
5
5
  */
6
- className?: string;
6
+ readonly className?: string;
7
7
  /**
8
8
  * CSS className for a font (e.g. from next/font) to style the editor text.
9
9
  * If omitted, defaults to system serif fonts.
10
10
  */
11
- fontClassName?: string;
11
+ readonly fontClassName?: string;
12
12
  /**
13
13
  * The book which is being edited.
14
14
  */
15
- value?: string_book;
15
+ readonly value?: string_book;
16
16
  /**
17
17
  * Callback function to handle changes in the book content.
18
18
  */
19
- onChange?: (value: string_book) => void;
19
+ onChange?(value: string_book): void;
20
+ /**
21
+ * If true, logs verbose debug info to the console and shows additional visual cues
22
+ */
23
+ readonly isVerbose?: boolean;
20
24
  }
21
25
  /**
22
26
  * Renders a book editor
@@ -0,0 +1,7 @@
1
+ import type { string_css_class } from '../../../types/typeAliases';
2
+ /**
3
+ * Utility function for joining multiple truthy class names into one string
4
+ *
5
+ * @private within the `@promptbook/components`
6
+ */
7
+ export declare function classNames(...classes: Array<string_css_class | undefined | false | null>): string_css_class;
@@ -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-36`).
18
+ * It follows semantic versioning (e.g., `0.100.0-38`).
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.100.0-37",
3
+ "version": "0.100.0-39",
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.100.0-37"
96
+ "@promptbook/core": "0.100.0-39"
97
97
  },
98
98
  "dependencies": {
99
99
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -46,7 +46,7 @@
46
46
  * @generated
47
47
  * @see https://github.com/webgptorg/promptbook
48
48
  */
49
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-37';
49
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-39';
50
50
  /**
51
51
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
52
52
  * Note: [💞] Ignore a discrepancy between file name and entity name