app-tutor-ai-consumer 1.52.1 → 1.53.0
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 +7 -0
- package/package.json +1 -1
- package/src/modules/messages/hooks/use-send-text-message/use-send-text-message.spec.tsx +2 -1
- package/src/modules/messages/hooks/use-send-text-message/use-send-text-message.tsx +1 -0
- package/src/modules/widget/components/scroll-to-bottom-button/scroll-to-bottom-button.tsx +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.53.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.52.1...v1.53.0) (2026-01-27)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- send message tsx ([db84786](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/db84786c6d67bef222476e2afdc2c5460495da4c))
|
|
6
|
+
- send user_name ([4ee8dfc](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/4ee8dfcca0cebfec8855bfc4e9df18ce22479912))
|
|
7
|
+
|
|
1
8
|
## [1.52.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.52.0...v1.52.1) (2026-01-20)
|
|
2
9
|
|
|
3
10
|
# [1.52.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.51.0...v1.52.0) (2026-01-19)
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ vi.mock('ua-parser-js', () => ({ UAParser: vi.fn() }))
|
|
|
25
25
|
|
|
26
26
|
describe('useSendTextMessage', () => {
|
|
27
27
|
const message = chance.animal()
|
|
28
|
-
const getProfileMock = { data: { userId: chance.integer() } }
|
|
28
|
+
const getProfileMock = { data: { userId: chance.integer(), name: chance.name() } }
|
|
29
29
|
const defaultSettings = new WidgetSettingPropsBuilder()
|
|
30
30
|
.withClassHashId(chance.guid())
|
|
31
31
|
.withOwner_id(chance.guid())
|
|
@@ -116,6 +116,7 @@ describe('useSendTextMessage', () => {
|
|
|
116
116
|
osVersion: UAParserMock.browser.version,
|
|
117
117
|
platformDetail: UAParserMock.browser.name,
|
|
118
118
|
ucode: defaultSettings.user?.ucode,
|
|
119
|
+
user_name: getProfileMock.data.name || defaultSettings.user?.name,
|
|
119
120
|
appVersion: APP_VERSION,
|
|
120
121
|
membershipId: defaultSettings.membershipId,
|
|
121
122
|
membershipSlug: defaultSettings.membershipSlug,
|
|
@@ -94,6 +94,7 @@ function useSendTextMessage() {
|
|
|
94
94
|
platform: PLATFORM.WEB,
|
|
95
95
|
platformDetail: browserInfo.name,
|
|
96
96
|
ucode: settings.user?.ucode,
|
|
97
|
+
user_name: profileQuery.data?.name || settings.user?.name,
|
|
97
98
|
agentProductId: settings.config?.metadata?.agentProductId,
|
|
98
99
|
agentName: settings.config?.metadata?.agentName,
|
|
99
100
|
courseName: settings.config?.metadata?.courseName,
|
|
@@ -3,8 +3,10 @@ import clsx from 'clsx'
|
|
|
3
3
|
|
|
4
4
|
import { Icon } from '@/src/lib/components'
|
|
5
5
|
|
|
6
|
-
export interface IScrollToBottomButtonProps
|
|
7
|
-
|
|
6
|
+
export interface IScrollToBottomButtonProps extends DetailedHTMLProps<
|
|
7
|
+
ButtonHTMLAttributes<HTMLButtonElement>,
|
|
8
|
+
HTMLButtonElement
|
|
9
|
+
> {
|
|
8
10
|
show?: boolean
|
|
9
11
|
top?: number
|
|
10
12
|
}
|