@frontegg/js 6.165.0-alpha.13 → 6.165.0-alpha.15
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/FronteggApp/FronteggApp.d.ts +1 -11
- package/FronteggApp/FronteggApp.js +1 -36
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +0 -35
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +78 -219
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnhancedStore, EntitledToOptions, Entitlement
|
|
1
|
+
import { EnhancedStore, EntitledToOptions, Entitlement } from '@frontegg/redux-store';
|
|
2
2
|
import { FronteggAppOptions, FronteggCheckoutDialogOptions, LocalizationsOverrides, LoadEntitlementsCallback } from '@frontegg/types';
|
|
3
3
|
import { IFeatureFlagsAttributes } from '@frontegg/rest-api';
|
|
4
4
|
import { CustomAttributes } from '@frontegg/entitlements-javascript-commons';
|
|
@@ -107,16 +107,6 @@ export declare class FronteggApp {
|
|
|
107
107
|
* @param callback called on request completed with true if succeeded, false if failed
|
|
108
108
|
*/
|
|
109
109
|
loadEntitlements(callback?: LoadEntitlementsCallback): void;
|
|
110
|
-
/**
|
|
111
|
-
* Redirects to the step up page with the max age param and set the redirect url in the local storage
|
|
112
|
-
* @param options.maxAge optional max age
|
|
113
|
-
*/
|
|
114
|
-
stepUp(options?: StepUpOptions): void;
|
|
115
|
-
/**
|
|
116
|
-
* @param options.maxAge optional max age
|
|
117
|
-
* @return true when user is stepped up, false otherwise
|
|
118
|
-
*/
|
|
119
|
-
isSteppedUp(options?: IsSteppedUpOptions): boolean;
|
|
120
110
|
close(): void;
|
|
121
111
|
}
|
|
122
112
|
export {};
|
|
@@ -4,7 +4,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
5
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
|
-
import { createFronteggStore, getPermissionEntitlements as _getPermissionEntitlements, getFeatureEntitlements as _getFeatureEntitlements
|
|
7
|
+
import { createFronteggStore, getPermissionEntitlements as _getPermissionEntitlements, getFeatureEntitlements as _getFeatureEntitlements } from '@frontegg/redux-store';
|
|
8
8
|
import { Metadata } from '@frontegg/types';
|
|
9
9
|
import { formatName, restoreSearchParams } from '../utils';
|
|
10
10
|
import { AppHolder } from '../AppHolder';
|
|
@@ -549,41 +549,6 @@ export var FronteggApp = /*#__PURE__*/function () {
|
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* Redirects to the step up page with the max age param and set the redirect url in the local storage
|
|
555
|
-
* @param options.maxAge optional max age
|
|
556
|
-
*/
|
|
557
|
-
}, {
|
|
558
|
-
key: "stepUp",
|
|
559
|
-
value: function stepUp(options) {
|
|
560
|
-
var state = this.store.getState();
|
|
561
|
-
var _ref4 = (state == null ? void 0 : state.auth) || {},
|
|
562
|
-
hostedLoginBox = _ref4.hostedLoginBox,
|
|
563
|
-
stepUpUrl = _ref4.routes.stepUpUrl;
|
|
564
|
-
if (hostedLoginBox) {
|
|
565
|
-
this.store.dispatch({
|
|
566
|
-
type: 'auth/stepUpHostedLogin',
|
|
567
|
-
payload: options
|
|
568
|
-
});
|
|
569
|
-
return;
|
|
570
|
-
}
|
|
571
|
-
redirectByStepUpUrl(stepUpUrl, state.auth.onRedirectTo, options == null ? void 0 : options.maxAge);
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* @param options.maxAge optional max age
|
|
576
|
-
* @return true when user is stepped up, false otherwise
|
|
577
|
-
*/
|
|
578
|
-
}, {
|
|
579
|
-
key: "isSteppedUp",
|
|
580
|
-
value: function isSteppedUp() {
|
|
581
|
-
var _this$store$getState;
|
|
582
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
583
|
-
var _ref5 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
|
|
584
|
-
user = _ref5.user;
|
|
585
|
-
return _isSteppedUp(user, options);
|
|
586
|
-
}
|
|
587
552
|
}, {
|
|
588
553
|
key: "close",
|
|
589
554
|
value: function close() {
|
package/index.js
CHANGED
|
@@ -556,41 +556,6 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Redirects to the step up page with the max age param and set the redirect url in the local storage
|
|
562
|
-
* @param options.maxAge optional max age
|
|
563
|
-
*/
|
|
564
|
-
}, {
|
|
565
|
-
key: "stepUp",
|
|
566
|
-
value: function stepUp(options) {
|
|
567
|
-
var state = this.store.getState();
|
|
568
|
-
var _ref4 = (state == null ? void 0 : state.auth) || {},
|
|
569
|
-
hostedLoginBox = _ref4.hostedLoginBox,
|
|
570
|
-
stepUpUrl = _ref4.routes.stepUpUrl;
|
|
571
|
-
if (hostedLoginBox) {
|
|
572
|
-
this.store.dispatch({
|
|
573
|
-
type: 'auth/stepUpHostedLogin',
|
|
574
|
-
payload: options
|
|
575
|
-
});
|
|
576
|
-
return;
|
|
577
|
-
}
|
|
578
|
-
(0, _reduxStore.redirectByStepUpUrl)(stepUpUrl, state.auth.onRedirectTo, options == null ? void 0 : options.maxAge);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* @param options.maxAge optional max age
|
|
583
|
-
* @return true when user is stepped up, false otherwise
|
|
584
|
-
*/
|
|
585
|
-
}, {
|
|
586
|
-
key: "isSteppedUp",
|
|
587
|
-
value: function isSteppedUp() {
|
|
588
|
-
var _this$store$getState;
|
|
589
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
590
|
-
var _ref5 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
|
|
591
|
-
user = _ref5.user;
|
|
592
|
-
return (0, _reduxStore.isSteppedUp)(user, options);
|
|
593
|
-
}
|
|
594
559
|
}, {
|
|
595
560
|
key: "close",
|
|
596
561
|
value: function close() {
|
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.165.0-alpha.
|
|
3
|
+
"version": "6.165.0-alpha.15",
|
|
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.165.0-alpha.
|
|
9
|
+
"@frontegg/types": "6.165.0-alpha.15"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|