@schibsted/account-sdk-browser 5.1.1 → 5.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.
package/es5/identity.js CHANGED
@@ -2055,6 +2055,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2055
2055
  * @param {string} [options.locale]
2056
2056
  * @param {boolean} [options.oneStepLogin=false]
2057
2057
  * @param {string} [options.prompt=select_account]
2058
+ * @param {string} [options.xDomainId]
2058
2059
  * @return {Window|null} - Reference to popup window if created (or `null` otherwise)
2059
2060
  */
2060
2061
  }, {
@@ -2082,7 +2083,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2082
2083
  _ref4$oneStepLogin = _ref4.oneStepLogin,
2083
2084
  oneStepLogin = _ref4$oneStepLogin === void 0 ? false : _ref4$oneStepLogin,
2084
2085
  _ref4$prompt = _ref4.prompt,
2085
- prompt = _ref4$prompt === void 0 ? 'select_account' : _ref4$prompt;
2086
+ prompt = _ref4$prompt === void 0 ? 'select_account' : _ref4$prompt,
2087
+ _ref4$xDomainId = _ref4.xDomainId,
2088
+ xDomainId = _ref4$xDomainId === void 0 ? '' : _ref4$xDomainId;
2086
2089
  this._closePopup();
2087
2090
  this.sessionStorageCache.delete(HAS_SESSION_CACHE_KEY);
2088
2091
  var url = this.loginUrl({
@@ -2096,7 +2099,8 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2096
2099
  maxAge: maxAge,
2097
2100
  locale: locale,
2098
2101
  oneStepLogin: oneStepLogin,
2099
- prompt: prompt
2102
+ prompt: prompt,
2103
+ xDomainId: xDomainId
2100
2104
  });
2101
2105
  if (preferPopup) {
2102
2106
  this.popup = _popup_js__WEBPACK_IMPORTED_MODULE_61__["open"](this.window, url, 'Schibsted account', {
@@ -2202,7 +2206,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2202
2206
  _ref5$oneStepLogin = _ref5.oneStepLogin,
2203
2207
  oneStepLogin = _ref5$oneStepLogin === void 0 ? false : _ref5$oneStepLogin,
2204
2208
  _ref5$prompt = _ref5.prompt,
2205
- prompt = _ref5$prompt === void 0 ? 'select_account' : _ref5$prompt;
2209
+ prompt = _ref5$prompt === void 0 ? 'select_account' : _ref5$prompt,
2210
+ _ref5$xDomainId = _ref5.xDomainId,
2211
+ xDomainId = _ref5$xDomainId === void 0 ? '' : _ref5$xDomainId;
2206
2212
  if (_typeof(arguments[0]) !== 'object') {
2207
2213
  // backward compatibility
2208
2214
  state = arguments[0];
@@ -2232,7 +2238,8 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2232
2238
  max_age: maxAge,
2233
2239
  locale: locale,
2234
2240
  one_step_login: oneStepLogin || '',
2235
- prompt: acrValues ? '' : prompt
2241
+ prompt: acrValues ? '' : prompt,
2242
+ x_domain_id: xDomainId
2236
2243
  });
2237
2244
  }
2238
2245
 
@@ -11999,7 +12006,7 @@ __webpack_require__.r(__webpack_exports__);
11999
12006
 
12000
12007
 
12001
12008
 
12002
- var version = '5.1.1';
12009
+ var version = '5.2.0';
12003
12010
  /* harmony default export */ __webpack_exports__["default"] = (version);
12004
12011
 
12005
12012
  /***/ })