@melio-eng/web-sdk 1.6.0-pr.101.56b43ff → 1.6.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.
Files changed (2) hide show
  1. package/dist/flows/Flow.js +10 -3
  2. package/package.json +1 -1
@@ -143,13 +143,20 @@ 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
- }
149
146
  else {
150
147
  logger.debug('PARTNER_ACTION_REQUIRED has no matching action and was not forwarded', { requiredAction: data.data?.requiredAction });
151
148
  }
152
149
  break;
150
+ case 'BUTTON_CLICKED':
151
+ if (data.data?.type === 'quickPayment' || data.data?.type === 'payBills') {
152
+ this.emit('buttonClicked', data.data);
153
+ }
154
+ else {
155
+ logger.debug('BUTTON_CLICKED has no matching type and was not forwarded', {
156
+ type: data.data?.type,
157
+ });
158
+ }
159
+ break;
153
160
  case 'NAVIGATED_TO_TARGET':
154
161
  this.emit('navigated', data);
155
162
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melio-eng/web-sdk",
3
- "version": "1.6.0-pr.101.56b43ff",
3
+ "version": "1.6.0",
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",