@frontegg/js 7.131.0-alpha.2 → 7.131.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.
@@ -530,6 +530,7 @@ export var FronteggApp = /*#__PURE__*/function () {
530
530
  key: "initContainers",
531
531
  value: function () {
532
532
  var _initContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(elements) {
533
+ var featureFlagsLoading;
533
534
  return _regeneratorRuntime.wrap(function _callee15$(_context15) {
534
535
  while (1) switch (_context15.prev = _context15.next) {
535
536
  case 0:
@@ -546,9 +547,11 @@ export var FronteggApp = /*#__PURE__*/function () {
546
547
  } catch (e) {
547
548
  console.error('Failed to add frontegg-loading to body classList');
548
549
  }
549
- _context15.next = 9;
550
- return Promise.all([this.loadFeatureFlags(), this.loadAdminBoxMetadata(), this.requestAuthorize()]);
551
- case 9:
550
+ featureFlagsLoading = this.loadFeatureFlags(); // reads that must not race the flags (SSO enforcement on the first refresh) wait for this request
551
+ FronteggRestApi.FeatureFlags.setLoading(featureFlagsLoading, this.name);
552
+ _context15.next = 11;
553
+ return Promise.all([featureFlagsLoading, this.loadAdminBoxMetadata(), this.requestAuthorize()]);
554
+ case 11:
552
555
  if (!this.options.previewMode && !this.options.customLoginBox) {
553
556
  this.loadLoginBox();
554
557
  loadGTM(this.name);
@@ -556,7 +559,7 @@ export var FronteggApp = /*#__PURE__*/function () {
556
559
  if (!this.options.lazyLoadAdminPortal) {
557
560
  this.loadScript('FronteggAdminPortal');
558
561
  }
559
- case 11:
562
+ case 13:
560
563
  case "end":
561
564
  return _context15.stop();
562
565
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.131.0-alpha.2
1
+ /** @license Frontegg v7.131.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.
@@ -537,6 +537,7 @@ var FronteggApp = /*#__PURE__*/function () {
537
537
  key: "initContainers",
538
538
  value: function () {
539
539
  var _initContainers = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15(elements) {
540
+ var featureFlagsLoading;
540
541
  return _regenerator["default"].wrap(function _callee15$(_context15) {
541
542
  while (1) switch (_context15.prev = _context15.next) {
542
543
  case 0:
@@ -553,9 +554,11 @@ var FronteggApp = /*#__PURE__*/function () {
553
554
  } catch (e) {
554
555
  console.error('Failed to add frontegg-loading to body classList');
555
556
  }
556
- _context15.next = 9;
557
- return Promise.all([this.loadFeatureFlags(), this.loadAdminBoxMetadata(), this.requestAuthorize()]);
558
- case 9:
557
+ featureFlagsLoading = this.loadFeatureFlags(); // reads that must not race the flags (SSO enforcement on the first refresh) wait for this request
558
+ FronteggRestApi.FeatureFlags.setLoading(featureFlagsLoading, this.name);
559
+ _context15.next = 11;
560
+ return Promise.all([featureFlagsLoading, this.loadAdminBoxMetadata(), this.requestAuthorize()]);
561
+ case 11:
559
562
  if (!this.options.previewMode && !this.options.customLoginBox) {
560
563
  this.loadLoginBox();
561
564
  (0, _utils2.loadGTM)(this.name);
@@ -563,7 +566,7 @@ var FronteggApp = /*#__PURE__*/function () {
563
566
  if (!this.options.lazyLoadAdminPortal) {
564
567
  this.loadScript('FronteggAdminPortal');
565
568
  }
566
- case 11:
569
+ case 13:
567
570
  case "end":
568
571
  return _context15.stop();
569
572
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.131.0-alpha.2
1
+ /** @license Frontegg v7.131.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: '7.131.0-alpha.2'
8
+ cdnVersion: '7.131.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": "7.131.0-alpha.2",
3
+ "version": "7.131.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": "7.131.0-alpha.2"
9
+ "@frontegg/types": "7.131.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [