@aintela/chat 0.11.0 → 0.11.1
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,7 @@
|
|
|
1
|
+
import { Options as SanitizeSchema } from 'rehype-sanitize';
|
|
2
|
+
import { defaultUrlTransform, Options as MarkdownOptions } from 'react-markdown';
|
|
3
|
+
export declare const markdownSanitizeSchema: SanitizeSchema;
|
|
4
|
+
/** rehype plugins for chat markdown: raw HTML parsed, THEN sanitized. Order matters — sanitize must run last. */
|
|
5
|
+
export declare const markdownRehypePlugins: NonNullable<MarkdownOptions['rehypePlugins']>;
|
|
6
|
+
/** URL transform for chat markdown — react-markdown's safe default. */
|
|
7
|
+
export declare const markdownUrlTransform: typeof defaultUrlTransform;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aintela/chat",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -80,7 +80,8 @@
|
|
|
80
80
|
"README.md"
|
|
81
81
|
],
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"json-schema-to-typescript": "^15.0.0"
|
|
83
|
+
"json-schema-to-typescript": "^15.0.0",
|
|
84
|
+
"rehype-sanitize": "^6.0.0"
|
|
84
85
|
},
|
|
85
86
|
"scripts": {
|
|
86
87
|
"build": "vite build",
|