@widergy/utilitygo-smart-bill-web 3.13.1 → 3.14.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,17 @@
1
+ ## [3.14.1](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.14.0...v3.14.1) (2025-10-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [CX-1278] smartbill fab widy fixes ([#66](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/66)) ([a6e8af0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/a6e8af091d91e0328a409044c049cc2f27e62c61))
7
+
8
+ # [3.14.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.13.1...v3.14.0) (2025-10-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * download button ([#65](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/65)) ([51fb1c1](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/51fb1c168d49b4cbe33019370c67610b0495bdf0))
14
+
1
15
  ## [3.13.1](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.13.0...v3.13.1) (2025-09-30)
2
16
 
3
17
 
@@ -26,6 +26,7 @@ const SmartBillSummary = _ref => {
26
26
  colors,
27
27
  components,
28
28
  constants,
29
+ downloadSmartbillEnabled,
29
30
  handlers,
30
31
  loading,
31
32
  showOnboarding = false,
@@ -51,12 +52,14 @@ const SmartBillSummary = _ref => {
51
52
  notEnoughBillsErrorType,
52
53
  smartBillAIAnswer = {},
53
54
  smartBillAIAnswerError,
54
- smartBillAIAnswerLoading
55
+ smartBillAIAnswerLoading,
56
+ widyEnabled
55
57
  } = constants;
56
58
  const {
57
59
  getGlossaryData,
58
60
  getSmartBillAIAnswer,
59
61
  getSmartBillAIQuestions,
62
+ handleDownloadSmartBill,
60
63
  resetSmartBillAIAnswers,
61
64
  trackAIFloatingButtonClick,
62
65
  trackTabChange
@@ -147,6 +150,8 @@ const SmartBillSummary = _ref => {
147
150
  billIssueDate: translations.billingTab.header.billIssueDate,
148
151
  debtStatusValidation: smartBill.debt_status_label !== null,
149
152
  debtStatusLabel: smartBill.debt_status_label,
153
+ downloadSmartbillEnabled,
154
+ handleDownloadSmartBill,
150
155
  smartBill
151
156
  }), _constants.TAB_COMPONENT_MAPPER?.[currentTab]?.({
152
157
  assets,
@@ -172,12 +177,15 @@ const SmartBillSummary = _ref => {
172
177
  placement: 'left'
173
178
  }
174
179
  }, /*#__PURE__*/_react.default.createElement("div", {
175
- className: `${_stylesModule.default.AIFloatButton} smartbill-ai-float-button`
180
+ className: `${widyEnabled ? _stylesModule.default.AIFloatButtonWidy : _stylesModule.default.AIFloatButton} smartbill-ai-float-button`
176
181
  }, /*#__PURE__*/_react.default.createElement(_energyUi.UTTouchableWithoutFeedback, {
177
182
  onClick: openAIPanel
178
- }, /*#__PURE__*/_react.default.createElement("img", {
183
+ }, widyEnabled ? /*#__PURE__*/_react.default.createElement("img", {
179
184
  alt: "widy",
180
185
  src: widyFab
186
+ }) : /*#__PURE__*/_react.default.createElement(_energyUi.UTIcon, {
187
+ colorTheme: "negative",
188
+ name: "EnergyIconChatSparkFilled"
181
189
  })))), /*#__PURE__*/_react.default.createElement(_AIPanel.default, {
182
190
  aiQuestionsList: aiQuestionsList,
183
191
  aiQuestionsListError: aiQuestionsListError,
@@ -209,6 +217,7 @@ SmartBillSummary.propTypes = {
209
217
  [_propTypes.string]: _propTypes.elementType
210
218
  }),
211
219
  constants: _propTypes.object,
220
+ downloadSmartbillEnabled: _propTypes.bool,
212
221
  handlers: (0, _propTypes.shape)({
213
222
  [_propTypes.string]: _propTypes.func
214
223
  }),
@@ -53,6 +53,20 @@ $tab-height: 48px;
53
53
  }
54
54
 
55
55
  .AIFloatButton {
56
+ div {
57
+ align-items: center;
58
+ background-color: var(--actionAccent04);
59
+ border-radius: 100px;
60
+ bottom: 32px;
61
+ display: flex;
62
+ justify-content: center;
63
+ padding: 16px;
64
+ position: fixed;
65
+ right: 32px;
66
+ }
67
+ }
68
+
69
+ .AIFloatButtonWidy {
56
70
  align-items: center;
57
71
  bottom: 20px;
58
72
  display: flex;
@@ -20,6 +20,8 @@ const BillHeader = _ref => {
20
20
  billTypeHelpText,
21
21
  debtStatusLabel,
22
22
  debtStatusValidation,
23
+ downloadSmartbillEnabled,
24
+ handleDownloadSmartBill,
23
25
  issuedOnDate,
24
26
  smartBill,
25
27
  UtilityLogo
@@ -52,10 +54,14 @@ const BillHeader = _ref => {
52
54
  }, billIssueDate)), debtStatusValidation && /*#__PURE__*/_react.default.createElement(_DebtStatusLabel.default, {
53
55
  debtStatusLabel: debtStatusLabel,
54
56
  isWarning: smartBill?.warning
55
- })), annex && /*#__PURE__*/_react.default.createElement(_energyUi.UTButton, {
57
+ })), /*#__PURE__*/_react.default.createElement("div", null, annex && /*#__PURE__*/_react.default.createElement(_energyUi.UTButton, {
56
58
  variant: "text",
57
59
  disabled: true
58
- }, "Anexos"));
60
+ }, "Anexos"), downloadSmartbillEnabled && /*#__PURE__*/_react.default.createElement(_energyUi.UTButton, {
61
+ onClick: handleDownloadSmartBill,
62
+ Icon: "IconDownload",
63
+ variant: "text"
64
+ })));
59
65
  };
60
66
  BillHeader.propTypes = {
61
67
  annex: _propTypes.bool,
@@ -65,6 +71,8 @@ BillHeader.propTypes = {
65
71
  billTypeHelpText: _propTypes.string,
66
72
  debtStatusLabel: _propTypes.string,
67
73
  debtStatusValidation: _propTypes.bool,
74
+ downloadSmartbillEnabled: _propTypes.bool,
75
+ handleDownloadSmartBill: _propTypes.func,
68
76
  issuedOnDate: _propTypes.string,
69
77
  smartBill: _propTypes.object,
70
78
  UtilityLogo: _propTypes.elementType
@@ -107,7 +107,7 @@ const Billing = _ref => {
107
107
  adherence_to_automatic_debit: adherenceToAutomaticDebit,
108
108
  normalized_rate: normalizedRate,
109
109
  subsidy_level: subsidy
110
- } = currentAccount;
110
+ } = currentAccount || {};
111
111
  const isAdheredToAutomaticDebit = adherenceToAutomaticDebit === adherenceStatus?.subscribed;
112
112
  const renderTitularFooter = clientNumber || ivaCondition;
113
113
  const actionCards = [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/utilitygo-smart-bill-web",
3
- "version": "3.13.1",
3
+ "version": "3.14.1",
4
4
  "description": "UtilityGO SmartBill Web",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",