app-tutor-ai-consumer 1.29.0 → 1.29.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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/config/theme/init-theme.ts +1 -1
- package/src/lib/utils/constants.ts +5 -0
- package/src/modules/messages/hooks/use-send-text-message/use-send-text-message.spec.tsx +6 -1
- package/src/modules/messages/hooks/use-send-text-message/use-send-text-message.tsx +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [1.29.2](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.29.1...v1.29.2) (2025-09-16)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- background color theme change ([8b401d4](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/8b401d4ff7075052395c5229d744a75dd2a6ffb3))
|
|
6
|
+
|
|
7
|
+
## [1.29.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.29.0...v1.29.1) (2025-09-02)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- add missing context fields for send message ([3a120cb](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/3a120cbaee275731deaba215b30ce2860cd1c574))
|
|
12
|
+
|
|
1
13
|
# [1.29.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.28.1...v1.29.0) (2025-08-29)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/package.json
CHANGED
|
@@ -4,3 +4,8 @@ export const RELEASE_FULL_NAME = `${process.env.RELEASE_FULL_NAME}_${process.env
|
|
|
4
4
|
export const DEFAULT_STALE_TIME = 1000 * 60 * 3 // 3 minutes
|
|
5
5
|
export const APP_VERSION = process.env.PROJECT_VERSION ?? ''
|
|
6
6
|
export const APP_SYSTEM = 'Web'
|
|
7
|
+
export const PLATFORM = {
|
|
8
|
+
WEB: 'WEB',
|
|
9
|
+
ANDROID: 'ANDROID',
|
|
10
|
+
IOS: 'IOS'
|
|
11
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UAParser } from 'ua-parser-js'
|
|
2
2
|
|
|
3
3
|
import { act, chance, renderHook, waitFor } from '@/src/config/tests'
|
|
4
|
+
import { APP_VERSION, PLATFORM } from '@/src/lib/utils'
|
|
4
5
|
import { DirectMessagesService as MessagesService } from '@/src/modules/messages'
|
|
5
6
|
import { useGetProfile } from '@/src/modules/profile'
|
|
6
7
|
import * as Store from '@/src/modules/widget'
|
|
@@ -86,7 +87,11 @@ describe('useSendTextMessage', () => {
|
|
|
86
87
|
router: text,
|
|
87
88
|
osVersion: UAParserMock.browser.version,
|
|
88
89
|
platformDetail: UAParserMock.browser.name,
|
|
89
|
-
ucode: defaultSettings.user?.ucode
|
|
90
|
+
ucode: defaultSettings.user?.ucode,
|
|
91
|
+
appVersion: APP_VERSION,
|
|
92
|
+
membershipId: defaultSettings.membershipId,
|
|
93
|
+
membershipSlug: defaultSettings.membershipSlug,
|
|
94
|
+
platform: PLATFORM.WEB
|
|
90
95
|
},
|
|
91
96
|
externalId: expect.any(String),
|
|
92
97
|
namespace: defaultSettings.namespace,
|
|
@@ -3,6 +3,7 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
|
3
3
|
import { UAParser } from 'ua-parser-js'
|
|
4
4
|
import { v4 } from 'uuid'
|
|
5
5
|
|
|
6
|
+
import { APP_VERSION, PLATFORM } from '@/src/lib/utils'
|
|
6
7
|
import { DirectMessagesService as MessagesService } from '@/src/modules/messages'
|
|
7
8
|
import { useGetProfile } from '@/src/modules/profile'
|
|
8
9
|
import { useWidgetLoadingAtom, useWidgetSettingsAtomValue } from '@/src/modules/widget'
|
|
@@ -70,13 +71,17 @@ function useSendTextMessage() {
|
|
|
70
71
|
question: questionParam,
|
|
71
72
|
router: questionParam ? 'summary' : undefined,
|
|
72
73
|
osVersion: browserInfo.version,
|
|
74
|
+
appVersion: APP_VERSION,
|
|
75
|
+
platform: PLATFORM.WEB,
|
|
73
76
|
platformDetail: browserInfo.name,
|
|
74
77
|
ucode: settings.user?.ucode,
|
|
75
78
|
agentProductId: settings.config?.metadata?.agentProductId,
|
|
76
79
|
agentName: settings.config?.metadata?.agentName,
|
|
77
80
|
courseName: settings.config?.metadata?.courseName,
|
|
78
81
|
source: settings.config?.metadata?.source,
|
|
79
|
-
prompt: settings.config?.metadata?.promptId
|
|
82
|
+
prompt: settings.config?.metadata?.promptId,
|
|
83
|
+
membershipSlug: settings.membershipSlug,
|
|
84
|
+
membershipId: settings.membershipId
|
|
80
85
|
},
|
|
81
86
|
externalId: v4(),
|
|
82
87
|
namespace: settings.namespace,
|