app-tutor-ai-consumer 1.30.0 → 1.31.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.31.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.31.0...v1.31.1) (2025-10-01)
2
+
3
+ ### Bug Fixes
4
+
5
+ - split user name error ([1bfc86b](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/1bfc86bff58693b198ee7e093fe0ddb91b2923ec))
6
+
7
+ # [1.31.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.30.0...v1.31.0) (2025-09-22)
8
+
9
+ ### Features
10
+
11
+ - add quick actions feature flag ([fa1826a](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/fa1826afd4c2802322ff0277311126cbdb8caa78))
12
+
1
13
  # [1.30.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.29.2...v1.30.0) (2025-09-18)
2
14
 
3
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-tutor-ai-consumer",
3
- "version": "1.30.0",
3
+ "version": "1.31.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "dev": "rspack serve --env=development --config config/rspack/rspack.config.js",
@@ -28,12 +28,14 @@ function WidgetStarterPage() {
28
28
  const limit = useMessagesMaxCount()
29
29
  const queryClient = useQueryClient()
30
30
  const name = settings?.tutorName ?? t('general.name')
31
+ const authorName =
32
+ typeof settings?.user?.name === 'string' ? settings?.user?.name?.split(' ')?.[0] || '' : ''
31
33
  const isDarkTheme = settings?.config?.theme === 'dark'
32
34
  const isSparkieReady = useInitSparkie()
33
35
  const isMobile = useMediaQuery({ maxSize: 'md' })
34
36
  const widgetLoading = useWidgetLoadingAtomValue()
35
37
  const hasSentInitialMessage = useRef(false)
36
- const [newTutorWidgetFF] = useDecision('lex_new_tutor_widget')
38
+ const [tutorQuickActionsFF] = useDecision('lex_tutor_quick_actions')
37
39
  const [lexTutorInitialMessageFF] = useDecision('lex_tutor_new_widget_initial_message')
38
40
 
39
41
  useRefEventListener<HTMLTextAreaElement>({
@@ -148,14 +150,10 @@ function WidgetStarterPage() {
148
150
  />
149
151
 
150
152
  <div className='my-auto'>
151
- <GreetingsCard
152
- author={settings?.user?.name?.split(' ')?.[0]}
153
- tutorName={name}
154
- isDarkTheme={isDarkTheme}
155
- />
153
+ <GreetingsCard author={authorName} tutorName={name} isDarkTheme={isDarkTheme} />
156
154
  </div>
157
155
  </div>
158
- {newTutorWidgetFF?.enabled && newTutorWidgetFF?.variables?.['show_quick_actions'] ? (
156
+ {tutorQuickActionsFF?.enabled ? (
159
157
  <QuickActionButtons
160
158
  className='grid-area-[b] my-4 flex flex-shrink-0 snap-x snap-mandatory gap-2 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden'
161
159
  isDarkTheme={isDarkTheme}