@schmitech/chatbot-widget 0.4.12 → 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.
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  import 'katex/dist/katex.min.css';
3
3
  import '../MarkdownStyles.css';
4
4
  /**
5
- * Simplified markdown preprocessing that only handles essential conversions
5
+ * Enhanced markdown preprocessing that handles both currency and math notation
6
+ * without clobbering each other.
6
7
  */
7
8
  export declare const preprocessMarkdown: (content: string) => string;
8
9
  /**
@@ -12,8 +13,13 @@ export declare const MarkdownLink: React.FC<React.AnchorHTMLAttributes<HTMLAncho
12
13
  export interface MarkdownRendererProps {
13
14
  content: string;
14
15
  className?: string;
16
+ /**
17
+ * Optional flag to disable math rendering entirely if needed
18
+ */
19
+ disableMath?: boolean;
15
20
  }
16
21
  /**
17
- * Enhanced Markdown renderer with CSS-based styling
22
+ * Enhanced Markdown renderer with robust currency and math handling
18
23
  */
19
24
  export declare const MarkdownRenderer: React.FC<MarkdownRendererProps>;
25
+ export declare const containsMathNotation: (text: string) => boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schmitech/chatbot-widget",
3
3
  "private": false,
4
- "version": "0.4.12",
4
+ "version": "0.4.13",
5
5
  "type": "module",
6
6
  "main": "./dist/chatbot-widget.umd.js",
7
7
  "module": "./dist/chatbot-widget.es.js",