@melio-eng/web-sdk 1.0.27-pr.54.bf9d59c → 1.0.27-pr.55.d80bb09
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 +5 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -209,7 +209,7 @@ class OnboardingFlow extends Flow {
|
|
|
209
209
|
targetQueryParams.push(`externalOrigin=${this.partnerName}`);
|
|
210
210
|
const target = `/welcome?${targetQueryParams.join('&')}`;
|
|
211
211
|
const encodedTarget = encodeURIComponent(target);
|
|
212
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
212
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
@@ -231,7 +231,7 @@ class PayFlow extends Flow {
|
|
|
231
231
|
const billIdsParam = this.billIds.join(',');
|
|
232
232
|
const target = `/external-entries/payment-flow?billIds=${billIdsParam}&externalOrigin=${this.partnerName}`;
|
|
233
233
|
const encodedTarget = encodeURIComponent(target);
|
|
234
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
234
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
@@ -249,9 +249,9 @@ class SettingsFlow extends Flow {
|
|
|
249
249
|
* Construct the specific flow URL for settings - now goes through /auth
|
|
250
250
|
*/
|
|
251
251
|
constructFlowUrl(baseUrl) {
|
|
252
|
-
const target = '/settings';
|
|
252
|
+
const target = '/view-settings';
|
|
253
253
|
const encodedTarget = encodeURIComponent(target);
|
|
254
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
254
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
class PaymentsDashboardFlow extends Flow {
|
|
@@ -268,7 +268,7 @@ class PaymentsDashboardFlow extends Flow {
|
|
|
268
268
|
constructFlowUrl(baseUrl) {
|
|
269
269
|
const target = '/pay-dashboard/payments';
|
|
270
270
|
const encodedTarget = encodeURIComponent(target);
|
|
271
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
271
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
@@ -335,8 +335,6 @@ export class MelioSDK {
|
|
|
335
335
|
setTimeout(() => {
|
|
336
336
|
initFlow.initialize();
|
|
337
337
|
console.log('InitFlow initialized successfully');
|
|
338
|
-
if (options.keepAlive)
|
|
339
|
-
initFlow.setupKeepAlive();
|
|
340
338
|
}, 0);
|
|
341
339
|
return initFlow;
|
|
342
340
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melio-eng/web-sdk",
|
|
3
|
-
"version": "1.0.27-pr.
|
|
3
|
+
"version": "1.0.27-pr.55.d80bb09",
|
|
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",
|