@promptbook/templates 0.103.0-16 → 0.103.0-17

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.
@@ -0,0 +1,10 @@
1
+ import { string_book } from './string_book';
2
+ /**
3
+ * A function that adds padding to the book content
4
+ *
5
+ * @private utility function
6
+ */
7
+ export declare function padBookContent(content: string_book): string_book;
8
+ /**
9
+ * TODO: [🧠] Maybe export
10
+ */
@@ -51,6 +51,17 @@ export type BookEditorProps = {
51
51
  * @default false
52
52
  */
53
53
  readonly isReadonly?: boolean;
54
+ /**
55
+ * Optional translations for the component
56
+ */
57
+ readonly translations?: {
58
+ /**
59
+ * Message to show when trying to edit a readonly editor
60
+ *
61
+ * @default "You cannot edit this book"
62
+ */
63
+ readonly readonlyMessage?: string;
64
+ };
54
65
  /**
55
66
  * If true, shows the download button in the action bar.
56
67
  * By default, the download button is shown.
@@ -53,6 +53,7 @@ export declare const PROMPTBOOK_COLOR: import("./utils/take/interfaces/ITakeChai
53
53
  */
54
54
  export declare const PROMPTBOOK_SYNTAX_COLORS: {
55
55
  readonly TITLE: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
56
+ readonly LINE: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
56
57
  readonly COMMITMENT: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
57
58
  readonly PARAMETER: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
58
59
  };
@@ -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.103.0-15`).
18
+ * It follows semantic versioning (e.g., `0.103.0-16`).
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.103.0-16",
3
+ "version": "0.103.0-17",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
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.103.0-16"
98
+ "@promptbook/core": "0.103.0-17"
99
99
  },
100
100
  "dependencies": {
101
101
  "spacetrim": "0.11.59"