@frontegg/js 6.177.0 → 6.178.0-alpha.1

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