@frontegg/js 7.80.0-alpha.4 → 7.80.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,5 @@
1
1
  import { EntitledToOptions, Entitlement, FronteggStore, IsSteppedUpOptions, StepUpOptions } from '@frontegg/redux-store';
2
- import { FronteggAppOptions, FronteggCheckoutDialogOptions, LoadEntitlementsCallback, LocalizationsOverrides, ShowAdminPortalOptions, SwitchTenantOptions, UseInviteUserDialogStoreOptions, UseTableStoreOptions } from '@frontegg/types';
2
+ import { FronteggAppOptions, FronteggCheckoutDialogOptions, LoadEntitlementsCallback, LocalizationsOverrides, ShowAdminPortalOptions, SwitchTenantOptions, UseInviteUserDialogStoreOptions, UseTableStoreOptions, CMCComponentProps } from '@frontegg/types';
3
3
  import { FetchClient, FronteggApiClient, IFeatureFlagsAttributes } from '@frontegg/rest-api';
4
4
  import { CustomAttributes } from '@frontegg/entitlements-javascript-commons';
5
5
  type FronteggAppContainers = {
@@ -139,11 +139,12 @@ export declare class FronteggApp {
139
139
  */
140
140
  switchTenant(payload: SwitchTenantOptions): void;
141
141
  close(): void;
142
- renderUsersTable: (container: HTMLElement, props: any, options: any) => Promise<any>;
143
- renderInviteUserDialog: (container: HTMLElement, props: any, options: any) => Promise<any>;
144
- renderChangePasswordForm: (container: HTMLElement, props: any, options: any) => Promise<any>;
145
- renderProfilePage: (container: HTMLElement, props: any, options: any) => Promise<any>;
146
- renderEditEmailForm: (container: HTMLElement, props: any, options: any) => Promise<any>;
142
+ private createCMCRenderOptions;
143
+ renderUsersTable: (container: HTMLElement, props: any, options: Partial<CMCComponentProps>) => Promise<any>;
144
+ renderInviteUserDialog: (container: HTMLElement, props: any, options: Partial<CMCComponentProps>) => Promise<any>;
145
+ renderChangePasswordForm: (container: HTMLElement, props: any, options: Partial<CMCComponentProps>) => Promise<any>;
146
+ renderProfilePage: (container: HTMLElement, props: any, options: Partial<CMCComponentProps>) => Promise<any>;
147
+ renderEditEmailForm: (container: HTMLElement, props: any, options: Partial<CMCComponentProps>) => Promise<any>;
147
148
  getUsersTableStore: (options: UseTableStoreOptions) => Promise<any>;
148
149
  getInviteUserDialogStore: (options: UseInviteUserDialogStoreOptions) => Promise<any>;
149
150
  }
@@ -186,6 +186,16 @@ export var FronteggApp = /*#__PURE__*/function () {
186
186
  attributes: attributes
187
187
  };
188
188
  };
189
+ this.createCMCRenderOptions = function (props, options) {
190
+ return {
191
+ injector: _this,
192
+ options: _this.options,
193
+ props: props,
194
+ themeOptions: options.themeOptions,
195
+ localizations: options.localizations,
196
+ containerStyle: options.containerStyle
197
+ };
198
+ };
189
199
  this.renderUsersTable = /*#__PURE__*/function () {
190
200
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(container, props, options) {
191
201
  var FronteggAdminPortal;
@@ -196,13 +206,7 @@ export var FronteggApp = /*#__PURE__*/function () {
196
206
  return _this.loadScript('FronteggAdminPortal');
197
207
  case 2:
198
208
  FronteggAdminPortal = _context4.sent;
199
- return _context4.abrupt("return", FronteggAdminPortal.renderUsersTable(container, {
200
- injector: _this,
201
- options: _this.options,
202
- container: container,
203
- props: props,
204
- themeOptions: options.themeOptions
205
- }));
209
+ return _context4.abrupt("return", FronteggAdminPortal.renderUsersTable(container, _this.createCMCRenderOptions(props, options)));
206
210
  case 4:
207
211
  case "end":
208
212
  return _context4.stop();
@@ -223,13 +227,7 @@ export var FronteggApp = /*#__PURE__*/function () {
223
227
  return _this.loadScript('FronteggAdminPortal');
224
228
  case 2:
225
229
  FronteggAdminPortal = _context5.sent;
226
- return _context5.abrupt("return", FronteggAdminPortal.renderInviteUserDialog(container, {
227
- injector: _this,
228
- options: _this.options,
229
- container: container,
230
- props: props,
231
- themeOptions: options.themeOptions
232
- }));
230
+ return _context5.abrupt("return", FronteggAdminPortal.renderInviteUserDialog(container, _this.createCMCRenderOptions(props, options)));
233
231
  case 4:
234
232
  case "end":
235
233
  return _context5.stop();
@@ -250,12 +248,7 @@ export var FronteggApp = /*#__PURE__*/function () {
250
248
  return _this.loadScript('FronteggAdminPortal');
251
249
  case 2:
252
250
  FronteggAdminPortal = _context6.sent;
253
- return _context6.abrupt("return", FronteggAdminPortal.renderChangePasswordForm(container, {
254
- injector: _this,
255
- options: _this.options,
256
- props: props,
257
- themeOptions: options.themeOptions
258
- }));
251
+ return _context6.abrupt("return", FronteggAdminPortal.renderChangePasswordForm(container, _this.createCMCRenderOptions(props, options)));
259
252
  case 4:
260
253
  case "end":
261
254
  return _context6.stop();
@@ -276,13 +269,7 @@ export var FronteggApp = /*#__PURE__*/function () {
276
269
  return _this.loadScript('FronteggAdminPortal');
277
270
  case 2:
278
271
  FronteggAdminPortal = _context7.sent;
279
- return _context7.abrupt("return", FronteggAdminPortal.renderProfilePage(container, {
280
- injector: _this,
281
- options: _this.options,
282
- props: props,
283
- themeOptions: options.themeOptions,
284
- localizations: options.localizations
285
- }));
272
+ return _context7.abrupt("return", FronteggAdminPortal.renderProfilePage(container, _this.createCMCRenderOptions(props, options)));
286
273
  case 4:
287
274
  case "end":
288
275
  return _context7.stop();
@@ -303,13 +290,7 @@ export var FronteggApp = /*#__PURE__*/function () {
303
290
  return _this.loadScript('FronteggAdminPortal');
304
291
  case 2:
305
292
  FronteggAdminPortal = _context8.sent;
306
- return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, {
307
- injector: _this,
308
- options: _this.options,
309
- props: props,
310
- themeOptions: options.themeOptions,
311
- localizations: options.localizations
312
- }));
293
+ return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, _this.createCMCRenderOptions(props, options)));
313
294
  case 4:
314
295
  case "end":
315
296
  return _context8.stop();
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.80.0-alpha.4
1
+ /** @license Frontegg v7.80.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.
@@ -193,6 +193,16 @@ var FronteggApp = /*#__PURE__*/function () {
193
193
  attributes: attributes
194
194
  };
195
195
  };
196
+ this.createCMCRenderOptions = function (props, options) {
197
+ return {
198
+ injector: _this,
199
+ options: _this.options,
200
+ props: props,
201
+ themeOptions: options.themeOptions,
202
+ localizations: options.localizations,
203
+ containerStyle: options.containerStyle
204
+ };
205
+ };
196
206
  this.renderUsersTable = /*#__PURE__*/function () {
197
207
  var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(container, props, options) {
198
208
  var FronteggAdminPortal;
@@ -203,13 +213,7 @@ var FronteggApp = /*#__PURE__*/function () {
203
213
  return _this.loadScript('FronteggAdminPortal');
204
214
  case 2:
205
215
  FronteggAdminPortal = _context4.sent;
206
- return _context4.abrupt("return", FronteggAdminPortal.renderUsersTable(container, {
207
- injector: _this,
208
- options: _this.options,
209
- container: container,
210
- props: props,
211
- themeOptions: options.themeOptions
212
- }));
216
+ return _context4.abrupt("return", FronteggAdminPortal.renderUsersTable(container, _this.createCMCRenderOptions(props, options)));
213
217
  case 4:
214
218
  case "end":
215
219
  return _context4.stop();
@@ -230,13 +234,7 @@ var FronteggApp = /*#__PURE__*/function () {
230
234
  return _this.loadScript('FronteggAdminPortal');
231
235
  case 2:
232
236
  FronteggAdminPortal = _context5.sent;
233
- return _context5.abrupt("return", FronteggAdminPortal.renderInviteUserDialog(container, {
234
- injector: _this,
235
- options: _this.options,
236
- container: container,
237
- props: props,
238
- themeOptions: options.themeOptions
239
- }));
237
+ return _context5.abrupt("return", FronteggAdminPortal.renderInviteUserDialog(container, _this.createCMCRenderOptions(props, options)));
240
238
  case 4:
241
239
  case "end":
242
240
  return _context5.stop();
@@ -257,12 +255,7 @@ var FronteggApp = /*#__PURE__*/function () {
257
255
  return _this.loadScript('FronteggAdminPortal');
258
256
  case 2:
259
257
  FronteggAdminPortal = _context6.sent;
260
- return _context6.abrupt("return", FronteggAdminPortal.renderChangePasswordForm(container, {
261
- injector: _this,
262
- options: _this.options,
263
- props: props,
264
- themeOptions: options.themeOptions
265
- }));
258
+ return _context6.abrupt("return", FronteggAdminPortal.renderChangePasswordForm(container, _this.createCMCRenderOptions(props, options)));
266
259
  case 4:
267
260
  case "end":
268
261
  return _context6.stop();
@@ -283,13 +276,7 @@ var FronteggApp = /*#__PURE__*/function () {
283
276
  return _this.loadScript('FronteggAdminPortal');
284
277
  case 2:
285
278
  FronteggAdminPortal = _context7.sent;
286
- return _context7.abrupt("return", FronteggAdminPortal.renderProfilePage(container, {
287
- injector: _this,
288
- options: _this.options,
289
- props: props,
290
- themeOptions: options.themeOptions,
291
- localizations: options.localizations
292
- }));
279
+ return _context7.abrupt("return", FronteggAdminPortal.renderProfilePage(container, _this.createCMCRenderOptions(props, options)));
293
280
  case 4:
294
281
  case "end":
295
282
  return _context7.stop();
@@ -310,13 +297,7 @@ var FronteggApp = /*#__PURE__*/function () {
310
297
  return _this.loadScript('FronteggAdminPortal');
311
298
  case 2:
312
299
  FronteggAdminPortal = _context8.sent;
313
- return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, {
314
- injector: _this,
315
- options: _this.options,
316
- props: props,
317
- themeOptions: options.themeOptions,
318
- localizations: options.localizations
319
- }));
300
+ return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, _this.createCMCRenderOptions(props, options)));
320
301
  case 4:
321
302
  case "end":
322
303
  return _context8.stop();
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.80.0-alpha.4
1
+ /** @license Frontegg v7.80.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.80.0-alpha.4'
8
+ cdnVersion: '7.80.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.80.0-alpha.4",
3
+ "version": "7.80.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.80.0-alpha.4"
9
+ "@frontegg/types": "7.80.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -527,6 +527,16 @@ var FronteggApp = /*#__PURE__*/function () {
527
527
  attributes: attributes
528
528
  };
529
529
  };
530
+ this.createCMCRenderOptions = function (props, options) {
531
+ return {
532
+ injector: _this,
533
+ options: _this.options,
534
+ props: props,
535
+ themeOptions: options.themeOptions,
536
+ localizations: options.localizations,
537
+ containerStyle: options.containerStyle
538
+ };
539
+ };
530
540
  this.renderUsersTable = /*#__PURE__*/function () {
531
541
  var _ref4 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee4(container, props, options) {
532
542
  var FronteggAdminPortal;
@@ -537,13 +547,7 @@ var FronteggApp = /*#__PURE__*/function () {
537
547
  return _this.loadScript('FronteggAdminPortal');
538
548
  case 2:
539
549
  FronteggAdminPortal = _context4.sent;
540
- return _context4.abrupt("return", FronteggAdminPortal.renderUsersTable(container, {
541
- injector: _this,
542
- options: _this.options,
543
- container: container,
544
- props: props,
545
- themeOptions: options.themeOptions
546
- }));
550
+ return _context4.abrupt("return", FronteggAdminPortal.renderUsersTable(container, _this.createCMCRenderOptions(props, options)));
547
551
  case 4:
548
552
  case "end":
549
553
  return _context4.stop();
@@ -564,13 +568,7 @@ var FronteggApp = /*#__PURE__*/function () {
564
568
  return _this.loadScript('FronteggAdminPortal');
565
569
  case 2:
566
570
  FronteggAdminPortal = _context5.sent;
567
- return _context5.abrupt("return", FronteggAdminPortal.renderInviteUserDialog(container, {
568
- injector: _this,
569
- options: _this.options,
570
- container: container,
571
- props: props,
572
- themeOptions: options.themeOptions
573
- }));
571
+ return _context5.abrupt("return", FronteggAdminPortal.renderInviteUserDialog(container, _this.createCMCRenderOptions(props, options)));
574
572
  case 4:
575
573
  case "end":
576
574
  return _context5.stop();
@@ -591,12 +589,7 @@ var FronteggApp = /*#__PURE__*/function () {
591
589
  return _this.loadScript('FronteggAdminPortal');
592
590
  case 2:
593
591
  FronteggAdminPortal = _context6.sent;
594
- return _context6.abrupt("return", FronteggAdminPortal.renderChangePasswordForm(container, {
595
- injector: _this,
596
- options: _this.options,
597
- props: props,
598
- themeOptions: options.themeOptions
599
- }));
592
+ return _context6.abrupt("return", FronteggAdminPortal.renderChangePasswordForm(container, _this.createCMCRenderOptions(props, options)));
600
593
  case 4:
601
594
  case "end":
602
595
  return _context6.stop();
@@ -617,13 +610,7 @@ var FronteggApp = /*#__PURE__*/function () {
617
610
  return _this.loadScript('FronteggAdminPortal');
618
611
  case 2:
619
612
  FronteggAdminPortal = _context7.sent;
620
- return _context7.abrupt("return", FronteggAdminPortal.renderProfilePage(container, {
621
- injector: _this,
622
- options: _this.options,
623
- props: props,
624
- themeOptions: options.themeOptions,
625
- localizations: options.localizations
626
- }));
613
+ return _context7.abrupt("return", FronteggAdminPortal.renderProfilePage(container, _this.createCMCRenderOptions(props, options)));
627
614
  case 4:
628
615
  case "end":
629
616
  return _context7.stop();
@@ -644,13 +631,7 @@ var FronteggApp = /*#__PURE__*/function () {
644
631
  return _this.loadScript('FronteggAdminPortal');
645
632
  case 2:
646
633
  FronteggAdminPortal = _context8.sent;
647
- return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, {
648
- injector: _this,
649
- options: _this.options,
650
- props: props,
651
- themeOptions: options.themeOptions,
652
- localizations: options.localizations
653
- }));
634
+ return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, _this.createCMCRenderOptions(props, options)));
654
635
  case 4:
655
636
  case "end":
656
637
  return _context8.stop();
@@ -1807,7 +1788,7 @@ __webpack_require__.r(__webpack_exports__);
1807
1788
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1808
1789
  /* harmony export */ });
1809
1790
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1810
- cdnVersion: '7.80.0-alpha.4'
1791
+ cdnVersion: '7.80.0'
1811
1792
  });
1812
1793
 
1813
1794
  /***/ }),
@@ -19070,7 +19051,7 @@ __webpack_require__.r(__webpack_exports__);
19070
19051
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
19071
19052
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
19072
19053
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
19073
- /** @license Frontegg v7.80.0-alpha.4
19054
+ /** @license Frontegg v7.80.0
19074
19055
  *
19075
19056
  * This source code is licensed under the MIT license found in the
19076
19057
  * LICENSE file in the root directory of this source tree.
@@ -29362,7 +29343,7 @@ __webpack_require__.r(__webpack_exports__);
29362
29343
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
29363
29344
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
29364
29345
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
29365
- /** @license Frontegg v7.80.0-alpha.4
29346
+ /** @license Frontegg v7.80.0
29366
29347
  *
29367
29348
  * This source code is licensed under the MIT license found in the
29368
29349
  * LICENSE file in the root directory of this source tree.
@@ -32100,7 +32081,7 @@ __webpack_require__.r(__webpack_exports__);
32100
32081
  /* harmony export */ });
32101
32082
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
32102
32083
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
32103
- /** @license Frontegg v7.80.0-alpha.4
32084
+ /** @license Frontegg v7.80.0
32104
32085
  *
32105
32086
  * This source code is licensed under the MIT license found in the
32106
32087
  * LICENSE file in the root directory of this source tree.