@promptbook/ollama 0.103.0-20 → 0.103.0-21

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
@@ -18,7 +18,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
18
18
  * @generated
19
19
  * @see https://github.com/webgptorg/promptbook
20
20
  */
21
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-20';
21
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-21';
22
22
  /**
23
23
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
24
24
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -18,6 +18,7 @@ import type { SendMessageToLlmChatFunction } from '../book-components/Chat/hooks
18
18
  import { useSendMessageToLlmChat } from '../book-components/Chat/hooks/useSendMessageToLlmChat';
19
19
  import { LlmChat } from '../book-components/Chat/LlmChat/LlmChat';
20
20
  import type { LlmChatProps } from '../book-components/Chat/LlmChat/LlmChatProps';
21
+ import { MarkdownContent } from '../book-components/Chat/MarkdownContent/MarkdownContent';
21
22
  import { NORMAL_FLOW } from '../book-components/Chat/MockedChat/constants';
22
23
  import { FAST_FLOW } from '../book-components/Chat/MockedChat/constants';
23
24
  import { SLOW_FLOW } from '../book-components/Chat/MockedChat/constants';
@@ -41,8 +42,6 @@ import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
41
42
  import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
42
43
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
43
44
  import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
44
- import { renderMarkdown } from '../book-components/Chat/utils/renderMarkdown';
45
- import { isMarkdownContent } from '../book-components/Chat/utils/renderMarkdown';
46
45
  import { ArrowIcon } from '../book-components/icons/ArrowIcon';
47
46
  import { AttachmentIcon } from '../book-components/icons/AttachmentIcon';
48
47
  import { CloseIcon } from '../book-components/icons/CloseIcon';
@@ -73,6 +72,7 @@ export type { SendMessageToLlmChatFunction };
73
72
  export { useSendMessageToLlmChat };
74
73
  export { LlmChat };
75
74
  export type { LlmChatProps };
75
+ export { MarkdownContent };
76
76
  export { NORMAL_FLOW };
77
77
  export { FAST_FLOW };
78
78
  export { SLOW_FLOW };
@@ -96,8 +96,6 @@ export type { ChatMessage };
96
96
  export type { ChatParticipant };
97
97
  export type { MessageButton };
98
98
  export { parseMessageButtons };
99
- export { renderMarkdown };
100
- export { isMarkdownContent };
101
99
  export { ArrowIcon };
102
100
  export { AttachmentIcon };
103
101
  export { CloseIcon };
@@ -0,0 +1,12 @@
1
+ import type { string_markdown } from '../../../types/typeAliases';
2
+ /**
3
+ * Renders markdown content with support for code highlighting, math, and tables.
4
+ *
5
+ * @public exported from `@promptbook/components`
6
+ */
7
+ export declare function MarkdownContent({ content }: {
8
+ content: string_markdown;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ /**
11
+ * TODO: !!! Split into multiple files
12
+ */
@@ -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-19`).
18
+ * It follows semantic versioning (e.g., `0.103.0-20`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/ollama",
3
- "version": "0.103.0-20",
3
+ "version": "0.103.0-21",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -94,7 +94,7 @@
94
94
  "module": "./esm/index.es.js",
95
95
  "typings": "./esm/typings/src/_packages/ollama.index.d.ts",
96
96
  "peerDependencies": {
97
- "@promptbook/core": "0.103.0-20"
97
+ "@promptbook/core": "0.103.0-21"
98
98
  },
99
99
  "dependencies": {
100
100
  "bottleneck": "^2.19.5",
package/umd/index.umd.js CHANGED
@@ -25,7 +25,7 @@
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-20';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-21';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1,21 +0,0 @@
1
- import type { string_html, string_markdown } from '../../../types/typeAliases';
2
- /**
3
- * Convert markdown content to HTML for display in chat messages
4
- *
5
- * @param markdown - The markdown content to convert
6
- * @returns HTML string ready for rendering
7
- *
8
- * @public exported from `@promptbook/components`
9
- * <- TODO: [🧠] Maybe export from `@promptbook/markdown-utils`
10
- */
11
- export declare function renderMarkdown(markdown: string_markdown): string_html;
12
- /**
13
- * Check if content appears to be markdown (contains markdown syntax)
14
- *
15
- * @param content - Content to check
16
- * @returns true if content appears to contain markdown syntax
17
- *
18
- * @public exported from `@promptbook/components`
19
- * <- TODO: [🧠] Maybe export from `@promptbook/markdown-utils`
20
- */
21
- export declare function isMarkdownContent(content: string): boolean;