app-tutor-ai-consumer 1.27.2 → 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,16 @@
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
+
8
+ ## [1.27.3](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.27.2...v1.27.3) (2025-08-14)
9
+
10
+ ### Performance Improvements
11
+
12
+ - add bundle analyzers ([26ee88f](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/26ee88f6e2cfa73645ac9406f0e1df03947686f9))
13
+
1
14
  ## [1.27.2](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.27.1...v1.27.2) (2025-08-13)
2
15
 
3
16
  ### Bug Fixes
@@ -5,6 +5,7 @@ const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin')
5
5
  const paths = require('./utils/paths')
6
6
  const alias = require('./utils/alias')
7
7
  const { getEnvironmentPlugins } = require('./utils/plugins')
8
+ const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin')
8
9
 
9
10
  require('dotenv').config({
10
11
  path: path.resolve(__dirname, `../../environments/.env.${process.env.NODE_ENV}`)
@@ -12,7 +13,7 @@ require('dotenv').config({
12
13
 
13
14
  module.exports = async function (env) {
14
15
  const standaloneMode = env?.local
15
- const productionMode = env?.production || env?.staging
16
+ const productionMode = env?.production || env?.staging || env?.RSDOCTOR
16
17
  const releaseFullName = `app-tutor-ai-consumer_v${packageJSON.version}`
17
18
  const fileVersion = `${productionMode ? 'prod' : 'dev'}-${packageJSON?.version}`
18
19
  const bundlePath = !productionMode
@@ -168,8 +169,11 @@ module.exports = async function (env) {
168
169
  new rspack.HtmlRspackPlugin({
169
170
  template: path.resolve(paths.PUBLIC, 'index.html'),
170
171
  favicon: path.resolve(paths.PUBLIC, 'favicon.ico')
171
- })
172
- ].concat(await getEnvironmentPlugins(process.env.NODE_ENV)),
172
+ }),
173
+ env?.RSDOCTOR && new RsdoctorRspackPlugin({})
174
+ ]
175
+ .filter(Boolean)
176
+ .concat(await getEnvironmentPlugins(process.env.NODE_ENV)),
173
177
  watchOptions: {
174
178
  ignored: /node_modules/
175
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-tutor-ai-consumer",
3
- "version": "1.27.2",
3
+ "version": "1.27.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "dev": "rspack serve --env=development --config config/rspack/rspack.config.js",
@@ -23,6 +23,8 @@
23
23
  "fetch-langs": "PROJECT=app-tutor-ai-consumer PATH_LANGUAGES=public/locales api-languages-cli",
24
24
  "fetch-langs:local": "PROJECT=app-tutor-ai-consumer PATH_LANGUAGES=public/locales LANG_ENV=local api-languages-cli",
25
25
  "semantic-release": "semantic-release",
26
+ "analyze": "rspack build --analyze --config config/rspack/rspack.config.js",
27
+ "rsdoctor": "rspack build --mode=production --env=RSDOCTOR --config config/rspack/rspack.config.js",
26
28
  "prepare": "husky || true"
27
29
  },
28
30
  "keywords": [],
@@ -37,6 +39,7 @@
37
39
  "@eslint/js": "~9.28.0",
38
40
  "@hotmart/api-languages-cli": "~2.0.5",
39
41
  "@rsbuild/plugin-svgr": "~1.2.0",
42
+ "@rsdoctor/rspack-plugin": "~1.2.2",
40
43
  "@rspack/cli": "~1.3.15",
41
44
  "@rspack/core": "~1.3.15",
42
45
  "@rspack/plugin-react-refresh": "~1.4.3",
@@ -97,7 +100,7 @@
97
100
  "ts-node": "~10.9.2",
98
101
  "typescript": "~5.8.3",
99
102
  "typescript-eslint": "~8.34.0",
100
- "ua-parser-js": "~2.0.3",
103
+ "ua-parser-js": "~2.0.4",
101
104
  "undici": "~7.10.0",
102
105
  "vite-tsconfig-paths": "~5.1.4",
103
106
  "vitest": "~3.2.3"
@@ -135,6 +138,11 @@
135
138
  "@rollup/rollup-linux-x64-gnu": "4.6.1",
136
139
  "@rspack/binding-linux-x64-gnu": "1.3.10"
137
140
  },
141
+ "overrides": {
142
+ "property-information": "7.1.0",
143
+ "uuid": "~11.1.0",
144
+ "ua-parser-js": "~2.0.4"
145
+ },
138
146
  "browserslist": [
139
147
  ">0.2%",
140
148
  "not dead",
@@ -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 inline-block'>{children}</span>
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-1'>{children}</li>
91
+ return <li className={clsx('[&:not(:last-child)]:mb-2', styles.li)}>{children}</li>
90
92
  }
91
93
  }
92
94
 
@@ -0,0 +1,5 @@
1
+ .li{
2
+ &>span {
3
+ display: inline !important;
4
+ }
5
+ }
@@ -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 px-3', {
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
  })}>