@widergy/utilitygo-smart-bill-mobile 3.1.0 → 3.1.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,12 @@
|
|
|
1
|
+
## [3.1.1](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/compare/v3.1.0...v3.1.1) (2025-10-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [CX-1176] widy fab ([a209a11](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/commit/a209a11b733f1b9f13d7a3cf6aed360ce37c4cbb))
|
|
7
|
+
* fix ([85e8728](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/commit/85e8728c808e40b83ec40678fca0ab0eacd96488))
|
|
8
|
+
* fix ([cfd62a3](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/commit/cfd62a312d1f038833d6bad74677a4b03493c859))
|
|
9
|
+
|
|
1
10
|
# [3.1.0](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/compare/v3.0.0...v3.1.0) (2025-09-23)
|
|
2
11
|
|
|
3
12
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable react/jsx-fragments */
|
|
3
3
|
import React, { Fragment, useEffect, useState, useMemo } from 'react';
|
|
4
4
|
import { UTButton, UTLoading, UTTabs } from '@widergy/mobile-ui';
|
|
5
|
-
import { ScrollView } from 'react-native';
|
|
5
|
+
import { ScrollView, View } from 'react-native';
|
|
6
6
|
import { array, arrayOf, bool, func, object, shape, string } from 'prop-types';
|
|
7
7
|
import isEmpty from 'lodash/isEmpty';
|
|
8
8
|
import debounce from 'lodash/debounce';
|
|
@@ -19,6 +19,7 @@ const SmartBillSummary = ({
|
|
|
19
19
|
colors,
|
|
20
20
|
components,
|
|
21
21
|
constants = {},
|
|
22
|
+
FabComponent,
|
|
22
23
|
handlers,
|
|
23
24
|
loading,
|
|
24
25
|
smartBill,
|
|
@@ -36,7 +37,8 @@ const SmartBillSummary = ({
|
|
|
36
37
|
notEnoughBillsErrorType,
|
|
37
38
|
smartBillAIAnswer = {},
|
|
38
39
|
smartBillAIAnswerError,
|
|
39
|
-
smartBillAIAnswerLoading
|
|
40
|
+
smartBillAIAnswerLoading,
|
|
41
|
+
showFab
|
|
40
42
|
} = constants;
|
|
41
43
|
const {
|
|
42
44
|
getSmartBillAIAnswer,
|
|
@@ -143,12 +145,18 @@ const SmartBillSummary = ({
|
|
|
143
145
|
|
|
144
146
|
{aiQuestionsPanelEnabled && (
|
|
145
147
|
<Fragment>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
{showFab && FabComponent ? (
|
|
149
|
+
<View style={styles.AIFloatButton}>
|
|
150
|
+
<FabComponent onPress={openAIDrawer} />
|
|
151
|
+
</View>
|
|
152
|
+
) : (
|
|
153
|
+
<UTButton
|
|
154
|
+
colorTheme="primary"
|
|
155
|
+
Icon="EnergyIconChatSparkFilled"
|
|
156
|
+
onPress={openAIDrawer}
|
|
157
|
+
style={{ icon: styles.AIFloatButtonIcon, root: styles.AIFloatButton }}
|
|
158
|
+
/>
|
|
159
|
+
)}
|
|
152
160
|
|
|
153
161
|
<AIDrawer
|
|
154
162
|
aiQuestionsList={aiQuestionsList}
|
|
@@ -178,6 +186,7 @@ SmartBillSummary.propTypes = {
|
|
|
178
186
|
colors: object,
|
|
179
187
|
components: object,
|
|
180
188
|
constants: object,
|
|
189
|
+
FabComponent: object,
|
|
181
190
|
handlers: shape({ [string]: func }),
|
|
182
191
|
loading: bool,
|
|
183
192
|
smartBill: object,
|