@melio-eng/web-sdk 1.2.0-pr.94.cf53d50 → 1.2.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.
@@ -78,8 +78,6 @@ export class Flow {
78
78
  this.emit('exit');
79
79
  break;
80
80
  case 'PARTNER_ACTION_REQUIRED':
81
- // Only the quick payment button is reported today; every other
82
- // requiredAction is ignored until the SDK declares a type for it.
83
81
  if (data.data?.requiredAction === 'NAVIGATE_TO_NEW_PAYMENT') {
84
82
  this.emit('buttonClicked', { type: 'quickPayment' });
85
83
  }
package/dist/types.d.ts CHANGED
@@ -137,11 +137,8 @@ export interface NavigationData {
137
137
  * your own supplier selection page, from which you open a payment flow.
138
138
  *
139
139
  * @remarks
140
- * Melio cannot navigate your page, so a button with no listener registered visibly does
141
- * nothing when clicked.
142
- *
143
- * Only buttons whose destination lives in your product are reported here. Buttons that end
144
- * a flow keep their existing events — "Back to bills" still arrives as `completed`.
140
+ * Buttons that end a flow keep their existing events — "Back to bills" still arrives as
141
+ * `completed`.
145
142
  *
146
143
  * Further button types are added in minor releases, so switch on `type` and treat an
147
144
  * unrecognised value as a no-op rather than an error.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melio-eng/web-sdk",
3
- "version": "1.2.0-pr.94.cf53d50",
3
+ "version": "1.2.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",