@frontegg/js 6.129.0-alpha.2 → 6.129.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,5 +1,6 @@
1
1
  import { EnhancedStore, EntitledToOptions, Entitlement } from '@frontegg/redux-store';
2
2
  import { FronteggAppOptions, FronteggCheckoutDialogOptions, LocalizationsOverrides, LoadEntitlementsCallback } from '@frontegg/types';
3
+ import { IFeatureFlagsAttributes } from '@frontegg/rest-api';
3
4
  declare type FronteggAppContainers = {
4
5
  adminPortalEl: HTMLElement;
5
6
  loginBoxEl: HTMLElement;
@@ -36,6 +37,12 @@ export declare class FronteggApp {
36
37
  loadAdminBoxMetadata: () => Promise<void>;
37
38
  requestAuthorize: () => Promise<void>;
38
39
  loadFeatureFlags: () => Promise<void>;
40
+ /**
41
+ * @internal use loadFeatureFlags instead
42
+ * @description need for testing on dashboard builder
43
+ * @param previewFeatureFlags
44
+ */
45
+ setFeatureFlagsForPreview: (previewFeatureFlags: IFeatureFlagsAttributes) => void;
39
46
  initContainers(elements: FronteggAppContainers): Promise<void>;
40
47
  updateLocalizationsSetter: (localizationUpdateFn: (localizations: LocalizationsOverrides) => void) => void;
41
48
  updateMetadata(metadata: FronteggAppOptions['metadata']): void;
@@ -130,6 +130,9 @@ export var FronteggApp = /*#__PURE__*/function () {
130
130
  }
131
131
  }, _callee3, null, [[4, 12]]);
132
132
  }));
133
+ this.setFeatureFlagsForPreview = function (previewFeatureFlags) {
134
+ FronteggRestApi.FeatureFlags.set(_extends({}, mockFlagsList, previewFeatureFlags), _this.name);
135
+ };
133
136
  this.updateLocalizationsSetter = function (localizationUpdateFn) {
134
137
  _this.updateLocalizations = localizationUpdateFn;
135
138
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.129.0-alpha.2
1
+ /** @license Frontegg v6.129.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.
@@ -137,6 +137,9 @@ var FronteggApp = /*#__PURE__*/function () {
137
137
  }
138
138
  }, _callee3, null, [[4, 12]]);
139
139
  }));
140
+ this.setFeatureFlagsForPreview = function (previewFeatureFlags) {
141
+ FronteggRestApi.FeatureFlags.set((0, _extends2["default"])({}, _mockFlagsList.mockFlagsList, previewFeatureFlags), _this.name);
142
+ };
140
143
  this.updateLocalizationsSetter = function (localizationUpdateFn) {
141
144
  _this.updateLocalizations = localizationUpdateFn;
142
145
  };
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.129.0-alpha.2
1
+ /** @license Frontegg v6.129.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.
@@ -10,6 +10,7 @@ var mockFlagsList = {
10
10
  'new-mfa-pages': 'on',
11
11
  'show-passkeys-new': 'on',
12
12
  'groups-admin-box-new': 'on',
13
- 'msp-all-accounts-new': 'on'
13
+ 'msp-all-accounts-new': 'on',
14
+ 'admin-portal-new-security-center-page': 'off'
14
15
  };
15
16
  exports.mockFlagsList = mockFlagsList;
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.129.0-alpha.2'
8
+ cdnVersion: '6.129.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.129.0-alpha.2",
3
+ "version": "6.129.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.129.0-alpha.2"
9
+ "@frontegg/types": "6.129.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [