@promptbook/templates 0.100.0-38 → 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-37`).
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/templates",
3
- "version": "0.100.0-38",
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,
@@ -95,7 +95,7 @@
95
95
  "module": "./esm/index.es.js",
96
96
  "typings": "./esm/typings/src/_packages/templates.index.d.ts",
97
97
  "peerDependencies": {
98
- "@promptbook/core": "0.100.0-38"
98
+ "@promptbook/core": "0.100.0-39"
99
99
  },
100
100
  "dependencies": {
101
101
  "prettier": "2.8.1",
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-38';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-39';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1584,7 +1584,7 @@
1584
1584
  "preparations": [
1585
1585
  {
1586
1586
  "id": 1,
1587
- "promptbookVersion": "0.100.0-37",
1587
+ "promptbookVersion": "0.100.0-38",
1588
1588
  "usage": {
1589
1589
  "price": {
1590
1590
  "value": 0.038721
@@ -2155,7 +2155,7 @@
2155
2155
  "preparations": [
2156
2156
  {
2157
2157
  "id": 1,
2158
- "promptbookVersion": "0.100.0-37",
2158
+ "promptbookVersion": "0.100.0-38",
2159
2159
  "usage": {
2160
2160
  "price": {
2161
2161
  "value": 0.038721
@@ -2861,7 +2861,7 @@
2861
2861
  "preparations": [
2862
2862
  {
2863
2863
  "id": 1,
2864
- "promptbookVersion": "0.100.0-37",
2864
+ "promptbookVersion": "0.100.0-38",
2865
2865
  "usage": {
2866
2866
  "price": {
2867
2867
  "value": 0.037893
@@ -3009,7 +3009,7 @@
3009
3009
  "preparations": [
3010
3010
  {
3011
3011
  "id": 1,
3012
- "promptbookVersion": "0.100.0-37",
3012
+ "promptbookVersion": "0.100.0-38",
3013
3013
  "usage": {
3014
3014
  "price": {
3015
3015
  "value": 0.036888000000000004
@@ -3105,7 +3105,7 @@
3105
3105
  "preparations": [
3106
3106
  {
3107
3107
  "id": 1,
3108
- "promptbookVersion": "0.100.0-37",
3108
+ "promptbookVersion": "0.100.0-38",
3109
3109
  "usage": {
3110
3110
  "price": {
3111
3111
  "value": 0
@@ -3254,7 +3254,7 @@
3254
3254
  "preparations": [
3255
3255
  {
3256
3256
  "id": 1,
3257
- "promptbookVersion": "0.100.0-37",
3257
+ "promptbookVersion": "0.100.0-38",
3258
3258
  "usage": {
3259
3259
  "price": {
3260
3260
  "value": 0.03864
@@ -3410,7 +3410,7 @@
3410
3410
  "preparations": [
3411
3411
  {
3412
3412
  "id": 1,
3413
- "promptbookVersion": "0.100.0-37",
3413
+ "promptbookVersion": "0.100.0-38",
3414
3414
  "usage": {
3415
3415
  "price": {
3416
3416
  "value": 0.038625
@@ -3743,7 +3743,7 @@
3743
3743
  "preparations": [
3744
3744
  {
3745
3745
  "id": 1,
3746
- "promptbookVersion": "0.100.0-37",
3746
+ "promptbookVersion": "0.100.0-38",
3747
3747
  "usage": {
3748
3748
  "price": {
3749
3749
  "value": 0.039078
@@ -3890,7 +3890,7 @@
3890
3890
  "preparations": [
3891
3891
  {
3892
3892
  "id": 1,
3893
- "promptbookVersion": "0.100.0-37",
3893
+ "promptbookVersion": "0.100.0-38",
3894
3894
  "usage": {
3895
3895
  "price": {
3896
3896
  "value": 0.037365