@frontegg/js 6.188.0-alpha.8 → 6.188.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/AdminPortal/index.d.ts +7 -0
- package/AdminPortal/index.js +21 -0
- package/index.js +1 -1
- package/node/AdminPortal/index.js +21 -0
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +23 -2
- package/umd/frontegg.production.min.js +1 -1
- package/version.js +1 -1
package/AdminPortal/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
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;
|
|
4
11
|
static hide(name?: string): void;
|
|
5
12
|
}
|
package/AdminPortal/index.js
CHANGED
|
@@ -19,6 +19,27 @@ 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
|
+
}
|
|
22
43
|
}, {
|
|
23
44
|
key: "hide",
|
|
24
45
|
value: function hide() {
|
package/index.js
CHANGED
|
@@ -26,6 +26,27 @@ 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
|
+
}
|
|
29
50
|
}, {
|
|
30
51
|
key: "hide",
|
|
31
52
|
value: function hide() {
|
package/node/index.js
CHANGED
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "6.188.0
|
|
3
|
+
"version": "6.188.0",
|
|
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
|
|
9
|
+
"@frontegg/types": "6.188.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -46,6 +46,27 @@ 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
|
+
}
|
|
49
70
|
}, {
|
|
50
71
|
key: "hide",
|
|
51
72
|
value: function hide() {
|
|
@@ -1452,7 +1473,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1452
1473
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1453
1474
|
/* harmony export */ });
|
|
1454
1475
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1455
|
-
cdnVersion: '6.188.0
|
|
1476
|
+
cdnVersion: '6.188.0'
|
|
1456
1477
|
});
|
|
1457
1478
|
|
|
1458
1479
|
/***/ }),
|
|
@@ -25580,7 +25601,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25580
25601
|
/* harmony export */ });
|
|
25581
25602
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
25582
25603
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
25583
|
-
/** @license Frontegg v6.188.0
|
|
25604
|
+
/** @license Frontegg v6.188.0
|
|
25584
25605
|
*
|
|
25585
25606
|
* This source code is licensed under the MIT license found in the
|
|
25586
25607
|
* LICENSE file in the root directory of this source tree.
|