@widergy/utilitygo-smart-bill-web 3.12.0 → 3.13.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [3.13.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.12.0...v3.13.0) (2025-09-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * [CX-1171] widi fav smartbill ([#63](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/63)) ([e1cc5ce](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/e1cc5ceb238a6d5ef236fbeacd46ae2d8093e93c))
7
+
1
8
  # [3.12.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.11.0...v3.12.0) (2025-08-27)
2
9
 
3
10
 
@@ -18,6 +18,7 @@ const AIPanel = _ref => {
18
18
  aiQuestionsListError,
19
19
  aiQuestionsListLoading,
20
20
  answer,
21
+ colors = {},
21
22
  error,
22
23
  getAnswer,
23
24
  handlers = {},
@@ -92,7 +93,10 @@ const AIPanel = _ref => {
92
93
  key: id,
93
94
  onClick: () => toggleCard(id, question)
94
95
  }, renderAnswer ? /*#__PURE__*/_react.default.createElement("div", {
95
- className: `${_stylesModule.default.answer} ${errorContent && !isLoading ? notEnoughBills ? _stylesModule.default.notEnoughBillsContainer : _stylesModule.default.errorAnswer : ''}`
96
+ className: `${_stylesModule.default.answer} ${errorContent && !isLoading ? notEnoughBills ? _stylesModule.default.notEnoughBillsContainer : _stylesModule.default.errorAnswer : ''}`,
97
+ style: {
98
+ background: colors?.widyAnswerColorBg
99
+ }
96
100
  }, isLoading ? /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
97
101
  containerClassName: _stylesModule.default.skeletonContainer,
98
102
  count: 3,
@@ -135,6 +139,7 @@ AIPanel.propTypes = {
135
139
  aiQuestionsListLoading: _propTypes.bool,
136
140
  aiQuestionsListError: _propTypes.bool,
137
141
  answer: _propTypes.object,
142
+ colors: _propTypes.object,
138
143
  error: _propTypes.object,
139
144
  getAnswer: _propTypes.func,
140
145
  handlers: _propTypes.object,
@@ -23,8 +23,9 @@ const SmartBillSummary = _ref => {
23
23
  annex,
24
24
  assets,
25
25
  billingLayout,
26
- constants,
26
+ colors,
27
27
  components,
28
+ constants,
28
29
  handlers,
29
30
  loading,
30
31
  showOnboarding = false,
@@ -60,6 +61,16 @@ const SmartBillSummary = _ref => {
60
61
  trackAIFloatingButtonClick,
61
62
  trackTabChange
62
63
  } = handlers;
64
+ const {
65
+ AIPanel: {
66
+ widyTooltipContent = ''
67
+ } = {}
68
+ } = translations || {};
69
+ const {
70
+ AIPanel: {
71
+ widyFab
72
+ } = {}
73
+ } = assets || {};
63
74
  const {
64
75
  tabs,
65
76
  onboardingSteps: filteredOnboardingSteps
@@ -153,18 +164,25 @@ const SmartBillSummary = _ref => {
153
164
  smartBill,
154
165
  translations,
155
166
  utils
156
- })), aiQuestionsPanelEnabled && /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_energyUi.UTTouchableWithoutFeedback, {
157
- className: `${_stylesModule.default.AIFloatButton} smartbill-ai-float-button`,
158
- onClick: openAIPanel,
159
- withRipple: true
160
- }, /*#__PURE__*/_react.default.createElement(_energyUi.UTIcon, {
161
- colorTheme: "negative",
162
- name: "EnergyIconChatSparkFilled"
163
- })), /*#__PURE__*/_react.default.createElement(_AIPanel.default, {
167
+ })), aiQuestionsPanelEnabled && /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_energyUi.UTTooltip, {
168
+ arrow: false,
169
+ content: isDesktopSize ? widyTooltipContent : '',
170
+ tippyProps: {
171
+ placement: 'left'
172
+ }
173
+ }, /*#__PURE__*/_react.default.createElement("div", {
174
+ className: `${_stylesModule.default.AIFloatButton} smartbill-ai-float-button`
175
+ }, /*#__PURE__*/_react.default.createElement(_energyUi.UTTouchableWithoutFeedback, {
176
+ onClick: openAIPanel
177
+ }, /*#__PURE__*/_react.default.createElement("img", {
178
+ alt: "widy",
179
+ src: widyFab
180
+ })))), /*#__PURE__*/_react.default.createElement(_AIPanel.default, {
164
181
  aiQuestionsList: aiQuestionsList,
165
182
  aiQuestionsListError: aiQuestionsListError,
166
183
  aiQuestionsListLoading: aiQuestionsListLoading,
167
184
  answer: smartBillAIAnswer,
185
+ colors: colors,
168
186
  error: smartBillAIAnswerError,
169
187
  getAnswer: getSmartBillAIAnswer,
170
188
  handlers: handlers,
@@ -185,10 +203,11 @@ SmartBillSummary.propTypes = {
185
203
  annex: _propTypes.bool,
186
204
  assets: _propTypes.object,
187
205
  billingLayout: (0, _propTypes.arrayOf)(_propTypes.object),
188
- constants: _propTypes.object,
206
+ colors: _propTypes.object,
189
207
  components: (0, _propTypes.shape)({
190
208
  [_propTypes.string]: _propTypes.elementType
191
209
  }),
210
+ constants: _propTypes.object,
192
211
  handlers: (0, _propTypes.shape)({
193
212
  [_propTypes.string]: _propTypes.func
194
213
  }),
@@ -13,8 +13,8 @@ $tab-height: 48px;
13
13
  }
14
14
 
15
15
  .tabs {
16
- width: 96%;
17
16
  margin: 0 auto;
17
+ width: 96%;
18
18
  }
19
19
 
20
20
  .contentContainer {
@@ -54,12 +54,17 @@ $tab-height: 48px;
54
54
 
55
55
  .AIFloatButton {
56
56
  align-items: center;
57
- background-color: var(--actionAccent04);
58
- border-radius: 100px;
59
- bottom: 32px;
57
+ bottom: 20px;
60
58
  display: flex;
59
+ height: 78px;
61
60
  justify-content: center;
62
- padding: 16px;
63
61
  position: fixed;
64
- right: 32px;
62
+ right: 20px;
63
+ width: 78px;
64
+
65
+ img {
66
+ height: 78px;
67
+ object-fit: contain;
68
+ width: 78px;
69
+ }
65
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/utilitygo-smart-bill-web",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "UtilityGO SmartBill Web",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",