@melio-eng/web-sdk 1.0.26 → 1.0.27-pr.52.9a542bd

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/dist/index.js CHANGED
@@ -237,12 +237,13 @@ class SettingsFlow extends Flow {
237
237
  class PaymentsDashboardFlow extends Flow {
238
238
  constructor(containerId, config, partnerName, environment, branchOverride) {
239
239
  super(containerId, config, partnerName, environment, branchOverride);
240
+ this.paymentId = config.paymentId;
240
241
  }
241
242
  /**
242
243
  * Construct the specific flow URL for payments dashboard
243
244
  */
244
245
  constructFlowUrl(baseUrl) {
245
- return `${baseUrl}/${this.partnerName}/pay-dashboard/payments`;
246
+ return `${baseUrl}/${this.partnerName}/pay-dashboard/payments/${this.paymentId ?? ''}`;
246
247
  }
247
248
  }
248
249
  const isEmptyString = (str) => {
package/dist/types.d.ts CHANGED
@@ -64,6 +64,7 @@ export interface SettingsConfig extends BaseFlowConfig {
64
64
  * Configuration for payments dashboard flow
65
65
  */
66
66
  export interface PaymentsDashboardConfig extends BaseFlowConfig {
67
+ paymentId?: string;
67
68
  }
68
69
  /**
69
70
  * Configuration for init flow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melio-eng/web-sdk",
3
- "version": "1.0.26",
3
+ "version": "1.0.27-pr.52.9a542bd",
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",