app-tutor-ai-consumer 1.27.3 → 1.27.4
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.27.4](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.27.3...v1.27.4) (2025-08-14)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- add markdown list config ([6203615](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/62036154cf708089aa5986403879f42e5eb25089))
|
|
6
|
+
- messages list spacing ([af43357](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/af43357496b6bd38ebd8dd5c1fea1090656b383c))
|
|
7
|
+
|
|
1
8
|
## [1.27.3](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.27.2...v1.27.3) (2025-08-14)
|
|
2
9
|
|
|
3
10
|
### Performance Improvements
|
package/package.json
CHANGED
|
@@ -9,6 +9,8 @@ import { URLutils } from '../../utils'
|
|
|
9
9
|
|
|
10
10
|
import MdCodeBlock from './components/md-code-block'
|
|
11
11
|
|
|
12
|
+
import styles from './styles.module.css'
|
|
13
|
+
|
|
12
14
|
const mdComponents: Partial<Components> = {
|
|
13
15
|
h1({ children, ...props }) {
|
|
14
16
|
return (
|
|
@@ -77,7 +79,7 @@ const mdComponents: Partial<Components> = {
|
|
|
77
79
|
)
|
|
78
80
|
},
|
|
79
81
|
p({ children }) {
|
|
80
|
-
return <span className='my-3
|
|
82
|
+
return <span className='inline-block [&:not(:only-child)]:my-3'>{children}</span>
|
|
81
83
|
},
|
|
82
84
|
ul({ children }) {
|
|
83
85
|
return <ul className='my-3 list-inside list-disc'>{children}</ul>
|
|
@@ -86,7 +88,7 @@ const mdComponents: Partial<Components> = {
|
|
|
86
88
|
return <ol className='my-3 list-inside list-decimal'>{children}</ol>
|
|
87
89
|
},
|
|
88
90
|
li({ children }) {
|
|
89
|
-
return <li className='[&:not(:last-child)]:mb-
|
|
91
|
+
return <li className={clsx('[&:not(:last-child)]:mb-2', styles.li)}>{children}</li>
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
|
|
@@ -19,7 +19,7 @@ function MessageItem({ message }: { message: ParsedMessage }) {
|
|
|
19
19
|
)}>
|
|
20
20
|
<div
|
|
21
21
|
data-test='messages-item'
|
|
22
|
-
className={clsx('w-full overflow-x-hidden rounded-lg
|
|
22
|
+
className={clsx('w-full overflow-x-hidden rounded-lg p-3', {
|
|
23
23
|
'max-w-max bg-[rgb(from_var(--hc-color-neutral-300)_r_g_b_/_0.8)]': messageFromUser,
|
|
24
24
|
'bg-neutral-200': messageFromAi
|
|
25
25
|
})}>
|