@frontegg/js 6.188.0-alpha.6 → 6.188.0-alpha.7

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.
@@ -1,12 +1,5 @@
1
1
  export declare class AdminPortal {
2
2
  static show(name?: string): void;
3
3
  static showMultiApp(name?: string): void;
4
- /**
5
- * Show the hosted portal must be called synchronously with user interaction
6
- *
7
- * @param newTab - open the portal in a new tab = true
8
- * @param name - the app name = 'default'
9
- */
10
- static showHostedPortal(newTab?: boolean, name?: string): void;
11
4
  static hide(name?: string): void;
12
5
  }
@@ -19,27 +19,6 @@ export var AdminPortal = /*#__PURE__*/function () {
19
19
  isMultiApp: true
20
20
  });
21
21
  }
22
-
23
- /**
24
- * Show the hosted portal must be called synchronously with user interaction
25
- *
26
- * @param newTab - open the portal in a new tab = true
27
- * @param name - the app name = 'default'
28
- */
29
- }, {
30
- key: "showHostedPortal",
31
- value: function showHostedPortal() {
32
- var newTab = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
33
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
34
- var app = AppHolder.getInstance(name);
35
- var baseUrl = app.options.contextOptions.baseUrl;
36
- var hostedPortalUrl = "".concat(baseUrl, "/oauth/portal");
37
- if (newTab) {
38
- window.open(hostedPortalUrl, '_blank');
39
- return;
40
- }
41
- window.location.href = hostedPortalUrl;
42
- }
43
22
  }, {
44
23
  key: "hide",
45
24
  value: function hide() {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.188.0-alpha.6
1
+ /** @license Frontegg v6.188.0-alpha.7
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -26,27 +26,6 @@ var AdminPortal = /*#__PURE__*/function () {
26
26
  isMultiApp: true
27
27
  });
28
28
  }
29
-
30
- /**
31
- * Show the hosted portal must be called synchronously with user interaction
32
- *
33
- * @param newTab - open the portal in a new tab = true
34
- * @param name - the app name = 'default'
35
- */
36
- }, {
37
- key: "showHostedPortal",
38
- value: function showHostedPortal() {
39
- var newTab = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
40
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
41
- var app = _AppHolder.AppHolder.getInstance(name);
42
- var baseUrl = app.options.contextOptions.baseUrl;
43
- var hostedPortalUrl = "".concat(baseUrl, "/oauth/portal");
44
- if (newTab) {
45
- window.open(hostedPortalUrl, '_blank');
46
- return;
47
- }
48
- window.location.href = hostedPortalUrl;
49
- }
50
29
  }, {
51
30
  key: "hide",
52
31
  value: function hide() {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.188.0-alpha.6
1
+ /** @license Frontegg v6.188.0-alpha.7
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '6.188.0-alpha.6'
8
+ cdnVersion: '6.188.0-alpha.7'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.188.0-alpha.6",
3
+ "version": "6.188.0-alpha.7",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/types": "6.188.0-alpha.6"
9
+ "@frontegg/types": "6.188.0-alpha.7"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -46,27 +46,6 @@ var AdminPortal = /*#__PURE__*/function () {
46
46
  isMultiApp: true
47
47
  });
48
48
  }
49
-
50
- /**
51
- * Show the hosted portal must be called synchronously with user interaction
52
- *
53
- * @param newTab - open the portal in a new tab = true
54
- * @param name - the app name = 'default'
55
- */
56
- }, {
57
- key: "showHostedPortal",
58
- value: function showHostedPortal() {
59
- var newTab = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
60
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
61
- var app = _AppHolder__WEBPACK_IMPORTED_MODULE_2__.AppHolder.getInstance(name);
62
- var baseUrl = app.options.contextOptions.baseUrl;
63
- var hostedPortalUrl = "".concat(baseUrl, "/oauth/portal");
64
- if (newTab) {
65
- window.open(hostedPortalUrl, '_blank');
66
- return;
67
- }
68
- window.location.href = hostedPortalUrl;
69
- }
70
49
  }, {
71
50
  key: "hide",
72
51
  value: function hide() {
@@ -1473,7 +1452,7 @@ __webpack_require__.r(__webpack_exports__);
1473
1452
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1474
1453
  /* harmony export */ });
1475
1454
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1476
- cdnVersion: '6.188.0-alpha.6'
1455
+ cdnVersion: '6.188.0-alpha.7'
1477
1456
  });
1478
1457
 
1479
1458
  /***/ }),
@@ -25601,7 +25580,7 @@ __webpack_require__.r(__webpack_exports__);
25601
25580
  /* harmony export */ });
25602
25581
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
25603
25582
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
25604
- /** @license Frontegg v6.188.0-alpha.6
25583
+ /** @license Frontegg v6.188.0-alpha.7
25605
25584
  *
25606
25585
  * This source code is licensed under the MIT license found in the
25607
25586
  * LICENSE file in the root directory of this source tree.