@schmitech/chatbot-widget 0.5.0 → 0.5.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schmitech/chatbot-widget",
3
3
  "private": false,
4
- "version": "0.5.0",
4
+ "version": "0.5.2",
5
5
  "type": "module",
6
6
  "main": "./dist/chatbot-widget.umd.js",
7
7
  "module": "./dist/chatbot-widget.es.js",
@@ -27,16 +27,12 @@
27
27
  "preview": "vite preview"
28
28
  },
29
29
  "dependencies": {
30
- "@schmitech/chatbot-api": "^0.5.2",
30
+ "@schmitech/chatbot-api": "^0.5.3",
31
+ "@schmitech/markdown-renderer": "^0.1.2",
31
32
  "clsx": "^2.1.0",
32
- "katex": "^0.16.22",
33
33
  "lucide-react": "^0.344.0",
34
34
  "react": "^18.3.1",
35
35
  "react-dom": "^18.3.1",
36
- "react-markdown": "^10.1.0",
37
- "rehype-katex": "^7.0.1",
38
- "remark-gfm": "^4.0.1",
39
- "remark-math": "^6.0.0",
40
36
  "zustand": "^5.0.8"
41
37
  },
42
38
  "devDependencies": {
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import 'katex/dist/katex.min.css';
3
- import 'katex/dist/contrib/mhchem.js';
4
- import '../MarkdownStyles.css';
5
- /**
6
- * Enhanced markdown preprocessing that handles both currency and math notation
7
- * without clobbering each other.
8
- */
9
- export declare const preprocessMarkdown: (content: string) => string;
10
- /**
11
- * Custom link component for ReactMarkdown that opens links in new tabs
12
- */
13
- export declare const MarkdownLink: React.FC<React.AnchorHTMLAttributes<HTMLAnchorElement>>;
14
- export interface MarkdownRendererProps {
15
- content: string;
16
- className?: string;
17
- /**
18
- * Optional flag to disable math rendering entirely if needed
19
- */
20
- disableMath?: boolean;
21
- }
22
- /**
23
- * Enhanced Markdown renderer with robust currency and math handling
24
- */
25
- export declare const MarkdownRenderer: React.FC<MarkdownRendererProps>;
26
- export declare const containsMathNotation: (text: string) => boolean;