@melio-eng/web-sdk 1.5.0 → 1.6.0-pr.101.56b43ff

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.
@@ -143,6 +143,9 @@ export class Flow {
143
143
  if (data.data?.requiredAction === 'NAVIGATE_TO_NEW_PAYMENT') {
144
144
  this.emit('buttonClicked', { type: 'quickPayment' });
145
145
  }
146
+ else if (data.data?.requiredAction === 'NAVIGATE_TO_BILLS_PAGE') {
147
+ this.emit('buttonClicked', { type: 'payBills' });
148
+ }
146
149
  else {
147
150
  logger.debug('PARTNER_ACTION_REQUIRED has no matching action and was not forwarded', { requiredAction: data.data?.requiredAction });
148
151
  }
package/dist/types.d.ts CHANGED
@@ -147,6 +147,9 @@ export interface NavigationData {
147
147
  * `'quickPayment'` is the new payment button on the payments dashboard: take the user to
148
148
  * your own supplier selection page, from which you open a payment flow.
149
149
  *
150
+ * `'payBills'` is the "Pay bills" button on an empty dashboard tab: take the user to your
151
+ * own bills page.
152
+ *
150
153
  * @remarks
151
154
  * Buttons that end a flow keep their existing events — "Back to bills" still arrives as
152
155
  * `completed`.
@@ -155,7 +158,7 @@ export interface NavigationData {
155
158
  * unrecognised value as a no-op rather than an error.
156
159
  */
157
160
  export interface ButtonClickedData {
158
- type: 'quickPayment';
161
+ type: 'quickPayment' | 'payBills';
159
162
  }
160
163
  /**
161
164
  * Flow completion data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melio-eng/web-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.6.0-pr.101.56b43ff",
4
4
  "description": "Melio Web SDK - Embed core Melio workflows directly into partner UI with minimal effort",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",