@paypal/merchant-onboarding-sdk 1.0.2 → 1.0.3

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.
@@ -52838,7 +52838,7 @@ var env_config_ENV_CONFIG = {
52838
52838
  /* harmony default export */ const env_config = (env_config_ENV_CONFIG);
52839
52839
  ;// ./src/utils/envUtils.js
52840
52840
 
52841
- var envUtils_getHost = function getHost(env) {
52841
+ var getHost = function getHost(env) {
52842
52842
  var _HOST__;
52843
52843
  return env ? env_config[env].host : (_HOST__ = "www.msmaster.qa.paypal.com") !== null && _HOST__ !== void 0 ? _HOST__ : env_config.production.host;
52844
52844
  };
@@ -52898,12 +52898,12 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52898
52898
  var searchParams = new URLSearchParams({
52899
52899
  payerId: payerId
52900
52900
  });
52901
- var returnUri = " https://".concat(envUtils_getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52901
+ var returnUri = " https://".concat(getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52902
52902
  return /*#__PURE__*/index_js_eager_default().createElement(ZoidPopup, {
52903
52903
  styles: styles,
52904
52904
  partnerName: partnerName,
52905
52905
  onError: onError,
52906
- url: "https://".concat(envUtils_getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52906
+ url: "https://".concat(getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52907
52907
  width: width,
52908
52908
  height: height,
52909
52909
  onComplete: onComplete,
@@ -52916,7 +52916,7 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52916
52916
  styles: styles,
52917
52917
  partnerName: partnerName,
52918
52918
  onError: onError,
52919
- url: "https://".concat(envUtils_getHost(env), "/fundsmanagement/login-redirect"),
52919
+ url: "https://".concat(getHost(env), "/fundsmanagement/login-redirect"),
52920
52920
  getAccessToken: getAccessToken,
52921
52921
  width: width,
52922
52922
  height: height,
@@ -54229,7 +54229,7 @@ var RemoteApp = function RemoteApp(props) {
54229
54229
  id: "remoteAppContainer"
54230
54230
  }, /*#__PURE__*/index_js_eager_default().createElement(RemoteComponent, {
54231
54231
  preFetchedData: prefetchData,
54232
- host: envUtils_getHost(env),
54232
+ host: getHost(env),
54233
54233
  styleOverrides: props.style,
54234
54234
  isSDKFlow: true,
54235
54235
  partnerHostedModuleUrls: partnerHostedModuleUrls
@@ -54478,7 +54478,7 @@ var prefixUrlWithHost = function prefixUrlWithHost(url) {
54478
54478
  var targetPath = _MF_PREFIXABLE_PATHS[_i];
54479
54479
  if (pathname.startsWith(targetPath)) {
54480
54480
  console.log('[SDK Interceptor] Update path to paypal domain');
54481
- finalUrl = "https://".concat(envUtils_getHost(env)).concat(pathname);
54481
+ finalUrl = "https://".concat(getHost(env)).concat(pathname);
54482
54482
  break;
54483
54483
  }
54484
54484
  }
@@ -58924,6 +58924,8 @@ var installXhrInterceptor = function installXhrInterceptor(env) {
58924
58924
  * - federationModuleConfigs: Module federation configurations for modules that support it
58925
58925
  */
58926
58926
 
58927
+
58928
+
58927
58929
  /**
58928
58930
  * Iframe module configurations
58929
58931
  * These URLs are used when module federation is not available or is disabled
@@ -52838,7 +52838,7 @@ var env_config_ENV_CONFIG = {
52838
52838
  /* harmony default export */ const env_config = (env_config_ENV_CONFIG);
52839
52839
  ;// ./src/utils/envUtils.js
52840
52840
 
52841
- var envUtils_getHost = function getHost(env) {
52841
+ var getHost = function getHost(env) {
52842
52842
  var _HOST__;
52843
52843
  return env ? env_config[env].host : (_HOST__ = "www.te-e2e-embedded-path-testing.qa.paypal.com") !== null && _HOST__ !== void 0 ? _HOST__ : env_config.production.host;
52844
52844
  };
@@ -52898,12 +52898,12 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52898
52898
  var searchParams = new URLSearchParams({
52899
52899
  payerId: payerId
52900
52900
  });
52901
- var returnUri = " https://".concat(envUtils_getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52901
+ var returnUri = " https://".concat(getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52902
52902
  return /*#__PURE__*/index_js_eager_default().createElement(ZoidPopup, {
52903
52903
  styles: styles,
52904
52904
  partnerName: partnerName,
52905
52905
  onError: onError,
52906
- url: "https://".concat(envUtils_getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52906
+ url: "https://".concat(getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52907
52907
  width: width,
52908
52908
  height: height,
52909
52909
  onComplete: onComplete,
@@ -52916,7 +52916,7 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52916
52916
  styles: styles,
52917
52917
  partnerName: partnerName,
52918
52918
  onError: onError,
52919
- url: "https://".concat(envUtils_getHost(env), "/fundsmanagement/login-redirect"),
52919
+ url: "https://".concat(getHost(env), "/fundsmanagement/login-redirect"),
52920
52920
  getAccessToken: getAccessToken,
52921
52921
  width: width,
52922
52922
  height: height,
@@ -54229,7 +54229,7 @@ var RemoteApp = function RemoteApp(props) {
54229
54229
  id: "remoteAppContainer"
54230
54230
  }, /*#__PURE__*/index_js_eager_default().createElement(RemoteComponent, {
54231
54231
  preFetchedData: prefetchData,
54232
- host: envUtils_getHost(env),
54232
+ host: getHost(env),
54233
54233
  styleOverrides: props.style,
54234
54234
  isSDKFlow: true,
54235
54235
  partnerHostedModuleUrls: partnerHostedModuleUrls
@@ -54478,7 +54478,7 @@ var prefixUrlWithHost = function prefixUrlWithHost(url) {
54478
54478
  var targetPath = _MF_PREFIXABLE_PATHS[_i];
54479
54479
  if (pathname.startsWith(targetPath)) {
54480
54480
  console.log('[SDK Interceptor] Update path to paypal domain');
54481
- finalUrl = "https://".concat(envUtils_getHost(env)).concat(pathname);
54481
+ finalUrl = "https://".concat(getHost(env)).concat(pathname);
54482
54482
  break;
54483
54483
  }
54484
54484
  }
@@ -58924,6 +58924,8 @@ var installXhrInterceptor = function installXhrInterceptor(env) {
58924
58924
  * - federationModuleConfigs: Module federation configurations for modules that support it
58925
58925
  */
58926
58926
 
58927
+
58928
+
58927
58929
  /**
58928
58930
  * Iframe module configurations
58929
58931
  * These URLs are used when module federation is not available or is disabled
@@ -52838,7 +52838,7 @@ var env_config_ENV_CONFIG = {
52838
52838
  /* harmony default export */ const env_config = (env_config_ENV_CONFIG);
52839
52839
  ;// ./src/utils/envUtils.js
52840
52840
 
52841
- var envUtils_getHost = function getHost(env) {
52841
+ var getHost = function getHost(env) {
52842
52842
  var _HOST__;
52843
52843
  return env ? env_config[env].host : (_HOST__ = "www.te-eop-release.qa.paypal.com") !== null && _HOST__ !== void 0 ? _HOST__ : env_config.production.host;
52844
52844
  };
@@ -52898,12 +52898,12 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52898
52898
  var searchParams = new URLSearchParams({
52899
52899
  payerId: payerId
52900
52900
  });
52901
- var returnUri = " https://".concat(envUtils_getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52901
+ var returnUri = " https://".concat(getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52902
52902
  return /*#__PURE__*/index_js_eager_default().createElement(ZoidPopup, {
52903
52903
  styles: styles,
52904
52904
  partnerName: partnerName,
52905
52905
  onError: onError,
52906
- url: "https://".concat(envUtils_getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52906
+ url: "https://".concat(getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52907
52907
  width: width,
52908
52908
  height: height,
52909
52909
  onComplete: onComplete,
@@ -52916,7 +52916,7 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52916
52916
  styles: styles,
52917
52917
  partnerName: partnerName,
52918
52918
  onError: onError,
52919
- url: "https://".concat(envUtils_getHost(env), "/fundsmanagement/login-redirect"),
52919
+ url: "https://".concat(getHost(env), "/fundsmanagement/login-redirect"),
52920
52920
  getAccessToken: getAccessToken,
52921
52921
  width: width,
52922
52922
  height: height,
@@ -54229,7 +54229,7 @@ var RemoteApp = function RemoteApp(props) {
54229
54229
  id: "remoteAppContainer"
54230
54230
  }, /*#__PURE__*/index_js_eager_default().createElement(RemoteComponent, {
54231
54231
  preFetchedData: prefetchData,
54232
- host: envUtils_getHost(env),
54232
+ host: getHost(env),
54233
54233
  styleOverrides: props.style,
54234
54234
  isSDKFlow: true,
54235
54235
  partnerHostedModuleUrls: partnerHostedModuleUrls
@@ -54478,7 +54478,7 @@ var prefixUrlWithHost = function prefixUrlWithHost(url) {
54478
54478
  var targetPath = _MF_PREFIXABLE_PATHS[_i];
54479
54479
  if (pathname.startsWith(targetPath)) {
54480
54480
  console.log('[SDK Interceptor] Update path to paypal domain');
54481
- finalUrl = "https://".concat(envUtils_getHost(env)).concat(pathname);
54481
+ finalUrl = "https://".concat(getHost(env)).concat(pathname);
54482
54482
  break;
54483
54483
  }
54484
54484
  }
@@ -58924,6 +58924,8 @@ var installXhrInterceptor = function installXhrInterceptor(env) {
58924
58924
  * - federationModuleConfigs: Module federation configurations for modules that support it
58925
58925
  */
58926
58926
 
58927
+
58928
+
58927
58929
  /**
58928
58930
  * Iframe module configurations
58929
58931
  * These URLs are used when module federation is not available or is disabled
@@ -52838,7 +52838,7 @@ var env_config_ENV_CONFIG = {
52838
52838
  /* harmony default export */ const env_config = (env_config_ENV_CONFIG);
52839
52839
  ;// ./src/utils/envUtils.js
52840
52840
 
52841
- var envUtils_getHost = function getHost(env) {
52841
+ var getHost = function getHost(env) {
52842
52842
  var _HOST__;
52843
52843
  return env ? env_config[env].host : (_HOST__ = "www.te-hybrid-path-integration.qa.paypal.com") !== null && _HOST__ !== void 0 ? _HOST__ : env_config.production.host;
52844
52844
  };
@@ -52898,12 +52898,12 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52898
52898
  var searchParams = new URLSearchParams({
52899
52899
  payerId: payerId
52900
52900
  });
52901
- var returnUri = " https://".concat(envUtils_getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52901
+ var returnUri = " https://".concat(getHost(env), "/fundsmanagement/embedded?").concat(searchParams.toString());
52902
52902
  return /*#__PURE__*/index_js_eager_default().createElement(ZoidPopup, {
52903
52903
  styles: styles,
52904
52904
  partnerName: partnerName,
52905
52905
  onError: onError,
52906
- url: "https://".concat(envUtils_getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52906
+ url: "https://".concat(getHost(env), "/signin/?returnUri=").concat(encodeURIComponent(returnUri)),
52907
52907
  width: width,
52908
52908
  height: height,
52909
52909
  onComplete: onComplete,
@@ -52916,7 +52916,7 @@ var PromptEmbeddedLogin = function PromptEmbeddedLogin(props) {
52916
52916
  styles: styles,
52917
52917
  partnerName: partnerName,
52918
52918
  onError: onError,
52919
- url: "https://".concat(envUtils_getHost(env), "/fundsmanagement/login-redirect"),
52919
+ url: "https://".concat(getHost(env), "/fundsmanagement/login-redirect"),
52920
52920
  getAccessToken: getAccessToken,
52921
52921
  width: width,
52922
52922
  height: height,
@@ -54229,7 +54229,7 @@ var RemoteApp = function RemoteApp(props) {
54229
54229
  id: "remoteAppContainer"
54230
54230
  }, /*#__PURE__*/index_js_eager_default().createElement(RemoteComponent, {
54231
54231
  preFetchedData: prefetchData,
54232
- host: envUtils_getHost(env),
54232
+ host: getHost(env),
54233
54233
  styleOverrides: props.style,
54234
54234
  isSDKFlow: true,
54235
54235
  partnerHostedModuleUrls: partnerHostedModuleUrls
@@ -54478,7 +54478,7 @@ var prefixUrlWithHost = function prefixUrlWithHost(url) {
54478
54478
  var targetPath = _MF_PREFIXABLE_PATHS[_i];
54479
54479
  if (pathname.startsWith(targetPath)) {
54480
54480
  console.log('[SDK Interceptor] Update path to paypal domain');
54481
- finalUrl = "https://".concat(envUtils_getHost(env)).concat(pathname);
54481
+ finalUrl = "https://".concat(getHost(env)).concat(pathname);
54482
54482
  break;
54483
54483
  }
54484
54484
  }
@@ -58924,6 +58924,8 @@ var installXhrInterceptor = function installXhrInterceptor(env) {
58924
58924
  * - federationModuleConfigs: Module federation configurations for modules that support it
58925
58925
  */
58926
58926
 
58927
+
58928
+
58927
58929
  /**
58928
58930
  * Iframe module configurations
58929
58931
  * These URLs are used when module federation is not available or is disabled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/merchant-onboarding-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Merchant onboarding sdk script used for partner seller onboarding",
5
5
  "main": "dist/onboarding.js",
6
6
  "types": "dist/index.d.ts",