@frontegg/js 6.178.0-alpha.3 → 6.178.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.
@@ -1,4 +1,4 @@
1
- import { FronteggStore, EntitledToOptions, Entitlement, StepUpOptions, IsSteppedUpOptions } from '@frontegg/redux-store';
1
+ import { EnhancedStore, EntitledToOptions, Entitlement, StepUpOptions, IsSteppedUpOptions } 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';
@@ -26,7 +26,7 @@ export declare class FronteggApp {
26
26
  loginBoxContainer?: HTMLElement;
27
27
  checkoutDialogContainer?: HTMLElement;
28
28
  loginBoxRenderer?: any;
29
- store: FronteggStore;
29
+ store: EnhancedStore;
30
30
  loadingListeners: (() => void)[];
31
31
  updateLocalizations?: (localizations: LocalizationsOverrides) => void;
32
32
  constructor(_options: FronteggAppOptions, name: string, iframeRendering?: boolean, allowMultipleRenderers?: boolean);
@@ -1,5 +1,6 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import { authActions } from '@frontegg/redux-store';
3
4
  import { AppHolder } from '../AppHolder';
4
5
  import { ContextHolder } from '@frontegg/rest-api';
5
6
  export var HostedLogin = /*#__PURE__*/function () {
@@ -16,20 +17,20 @@ export var HostedLogin = /*#__PURE__*/function () {
16
17
  ContextHolder.setUser(Object.assign({}, user, {
17
18
  accessToken: accessToken
18
19
  }));
19
- app.store.actions.setAuthState({
20
+ app.store.dispatch(authActions.setState({
20
21
  isLoading: false,
21
22
  isAuthenticated: isAuthenticated,
22
23
  user: user
23
- });
24
- app.store.actions.loadTenants();
24
+ }));
25
+ app.store.dispatch(authActions.loadTenants());
25
26
  } else {
26
27
  ContextHolder.setAccessToken(null);
27
28
  ContextHolder.setUser(null);
28
- app.store.actions.setAuthState({
29
+ app.store.dispatch(authActions.setState({
29
30
  isLoading: false,
30
31
  isAuthenticated: false,
31
32
  user: null
32
- });
33
+ }));
33
34
  }
34
35
  }
35
36
  }]);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.178.0-alpha.3
1
+ /** @license Frontegg v6.178.0
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.
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.HostedLogin = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _reduxStore = require("@frontegg/redux-store");
10
11
  var _AppHolder = require("../AppHolder");
11
12
  var _restApi = require("@frontegg/rest-api");
12
13
  var HostedLogin = /*#__PURE__*/function () {
@@ -23,20 +24,20 @@ var HostedLogin = /*#__PURE__*/function () {
23
24
  _restApi.ContextHolder.setUser(Object.assign({}, user, {
24
25
  accessToken: accessToken
25
26
  }));
26
- app.store.actions.setAuthState({
27
+ app.store.dispatch(_reduxStore.authActions.setState({
27
28
  isLoading: false,
28
29
  isAuthenticated: isAuthenticated,
29
30
  user: user
30
- });
31
- app.store.actions.loadTenants();
31
+ }));
32
+ app.store.dispatch(_reduxStore.authActions.loadTenants());
32
33
  } else {
33
34
  _restApi.ContextHolder.setAccessToken(null);
34
35
  _restApi.ContextHolder.setUser(null);
35
- app.store.actions.setAuthState({
36
+ app.store.dispatch(_reduxStore.authActions.setState({
36
37
  isLoading: false,
37
38
  isAuthenticated: false,
38
39
  user: null
39
- });
40
+ }));
40
41
  }
41
42
  }
42
43
  }]);
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.178.0-alpha.3
1
+ /** @license Frontegg v6.178.0
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.178.0-alpha.3'
8
+ cdnVersion: '6.178.0'
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.178.0-alpha.3",
3
+ "version": "6.178.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.178.0-alpha.3"
9
+ "@frontegg/types": "6.178.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [