@schmitech/chatbot-widget 0.4.11 → 0.4.13
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/README.md +1 -1
- package/dist/chatbot-widget.bundle.js +60 -67
- package/dist/chatbot-widget.css +1 -1
- package/dist/chatbot-widget.es.js +2030 -2242
- package/dist/chatbot-widget.umd.js +59 -66
- package/dist/shared/MarkdownComponents.d.ts +9 -2
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'katex/dist/katex.min.css';
|
|
3
|
+
import '../MarkdownStyles.css';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Enhanced markdown preprocessing that handles both currency and math notation
|
|
6
|
+
* without clobbering each other.
|
|
5
7
|
*/
|
|
6
8
|
export declare const preprocessMarkdown: (content: string) => string;
|
|
7
9
|
/**
|
|
@@ -11,8 +13,13 @@ export declare const MarkdownLink: React.FC<React.AnchorHTMLAttributes<HTMLAncho
|
|
|
11
13
|
export interface MarkdownRendererProps {
|
|
12
14
|
content: string;
|
|
13
15
|
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional flag to disable math rendering entirely if needed
|
|
18
|
+
*/
|
|
19
|
+
disableMath?: boolean;
|
|
14
20
|
}
|
|
15
21
|
/**
|
|
16
|
-
* Enhanced Markdown renderer with
|
|
22
|
+
* Enhanced Markdown renderer with robust currency and math handling
|
|
17
23
|
*/
|
|
18
24
|
export declare const MarkdownRenderer: React.FC<MarkdownRendererProps>;
|
|
25
|
+
export declare const containsMathNotation: (text: string) => boolean;
|