@promptbook/editable 0.101.0-3 → 0.101.0-5

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
@@ -17,7 +17,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
17
17
  * @generated
18
18
  * @see https://github.com/webgptorg/promptbook
19
19
  */
20
- const PROMPTBOOK_ENGINE_VERSION = '0.101.0-3';
20
+ const PROMPTBOOK_ENGINE_VERSION = '0.101.0-5';
21
21
  /**
22
22
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
23
23
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -27,10 +27,18 @@ export type BookEditorProps = {
27
27
  * Callback function to handle changes in the book content.
28
28
  */
29
29
  onChange?(value: string_book): void;
30
+ /**
31
+ * returns the URL of the uploaded file on CDN or storage
32
+ */
33
+ onFileUpload?(file: File): Promise<string>;
30
34
  /**
31
35
  * If true, logs verbose debug info to the console and shows additional visual cues
32
36
  */
33
37
  readonly isVerbose?: boolean;
38
+ /**
39
+ * If true, disables border radius making the editor have sharp corners
40
+ */
41
+ readonly isBorderRadiusDisabled?: boolean;
34
42
  };
35
43
  /**
36
44
  * Renders a book editor
@@ -7,7 +7,9 @@ export type BookEditorInnerProps = {
7
7
  fontClassName?: string;
8
8
  value?: string_book;
9
9
  onChange?(value: string_book): void;
10
+ onFileUpload?(file: File): Promise<string>;
10
11
  isVerbose?: boolean;
12
+ isBorderRadiusDisabled?: boolean;
11
13
  };
12
14
  /**
13
15
  * @private util of `<BookEditor />`
@@ -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-2`).
18
+ * It follows semantic versioning (e.g., `0.101.0-4`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/editable",
3
- "version": "0.101.0-3",
3
+ "version": "0.101.0-5",
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/editable.index.d.ts",
97
97
  "peerDependencies": {
98
- "@promptbook/core": "0.101.0-3"
98
+ "@promptbook/core": "0.101.0-5"
99
99
  },
100
100
  "dependencies": {
101
101
  "crypto-js": "4.2.0",
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.101.0-3';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.101.0-5';
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