@frontegg/js 6.11.0 → 6.12.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.
- package/FronteggApp/FronteggApp.d.ts +2 -0
- package/FronteggApp/FronteggApp.js +22 -0
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +22 -0
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +24 -2
- package/umd/frontegg.production.min.js +1 -1
- package/version.js +1 -1
|
@@ -37,6 +37,8 @@ export declare class FronteggApp {
|
|
|
37
37
|
updateLocalizationsSetter: (localizationUpdateFn: (localizations: LocalizationsOverrides) => void) => void;
|
|
38
38
|
updateMetadata(metadata: FronteggAppOptions['metadata']): void;
|
|
39
39
|
addOnLoadedListener(listener: () => void): void;
|
|
40
|
+
ready(listener: () => void): void;
|
|
41
|
+
loginWithRedirect(): void;
|
|
40
42
|
loadScript(component: string): Promise<unknown>;
|
|
41
43
|
loadLoginBox(): Promise<void>;
|
|
42
44
|
showAdminPortal(): Promise<void>;
|
|
@@ -227,6 +227,28 @@ export var FronteggApp = /*#__PURE__*/function () {
|
|
|
227
227
|
|
|
228
228
|
this.loadingListeners.push(listener);
|
|
229
229
|
}
|
|
230
|
+
}, {
|
|
231
|
+
key: "ready",
|
|
232
|
+
value: function ready(listener) {
|
|
233
|
+
if (this.loading) {
|
|
234
|
+
listener();
|
|
235
|
+
} else {
|
|
236
|
+
this.addOnLoadedListener(listener);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}, {
|
|
240
|
+
key: "loginWithRedirect",
|
|
241
|
+
value: function loginWithRedirect() {
|
|
242
|
+
this.store.dispatch({
|
|
243
|
+
type: 'auth/setState',
|
|
244
|
+
payload: {
|
|
245
|
+
isLoading: true
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
this.store.dispatch({
|
|
249
|
+
type: 'auth/requestHostedLoginAuthorize'
|
|
250
|
+
});
|
|
251
|
+
}
|
|
230
252
|
}, {
|
|
231
253
|
key: "loadScript",
|
|
232
254
|
value: function loadScript(component) {
|
package/index.js
CHANGED
|
@@ -250,6 +250,28 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
250
250
|
|
|
251
251
|
this.loadingListeners.push(listener);
|
|
252
252
|
}
|
|
253
|
+
}, {
|
|
254
|
+
key: "ready",
|
|
255
|
+
value: function ready(listener) {
|
|
256
|
+
if (this.loading) {
|
|
257
|
+
listener();
|
|
258
|
+
} else {
|
|
259
|
+
this.addOnLoadedListener(listener);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}, {
|
|
263
|
+
key: "loginWithRedirect",
|
|
264
|
+
value: function loginWithRedirect() {
|
|
265
|
+
this.store.dispatch({
|
|
266
|
+
type: 'auth/setState',
|
|
267
|
+
payload: {
|
|
268
|
+
isLoading: true
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
this.store.dispatch({
|
|
272
|
+
type: 'auth/requestHostedLoginAuthorize'
|
|
273
|
+
});
|
|
274
|
+
}
|
|
253
275
|
}, {
|
|
254
276
|
key: "loadScript",
|
|
255
277
|
value: function loadScript(component) {
|
package/node/index.js
CHANGED
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.12.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@babel/runtime": "^7.18.6",
|
|
8
|
-
"@frontegg/types": "6.
|
|
8
|
+
"@frontegg/types": "6.12.0"
|
|
9
9
|
},
|
|
10
10
|
"browserslist": {
|
|
11
11
|
"production": [
|
|
@@ -552,6 +552,28 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
552
552
|
|
|
553
553
|
this.loadingListeners.push(listener);
|
|
554
554
|
}
|
|
555
|
+
}, {
|
|
556
|
+
key: "ready",
|
|
557
|
+
value: function ready(listener) {
|
|
558
|
+
if (this.loading) {
|
|
559
|
+
listener();
|
|
560
|
+
} else {
|
|
561
|
+
this.addOnLoadedListener(listener);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}, {
|
|
565
|
+
key: "loginWithRedirect",
|
|
566
|
+
value: function loginWithRedirect() {
|
|
567
|
+
this.store.dispatch({
|
|
568
|
+
type: 'auth/setState',
|
|
569
|
+
payload: {
|
|
570
|
+
isLoading: true
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
this.store.dispatch({
|
|
574
|
+
type: 'auth/requestHostedLoginAuthorize'
|
|
575
|
+
});
|
|
576
|
+
}
|
|
555
577
|
}, {
|
|
556
578
|
key: "loadScript",
|
|
557
579
|
value: function loadScript(component) {
|
|
@@ -1238,7 +1260,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1238
1260
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1239
1261
|
/* harmony export */ });
|
|
1240
1262
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1241
|
-
"cdnVersion": "6.
|
|
1263
|
+
"cdnVersion": "6.12.0"
|
|
1242
1264
|
});
|
|
1243
1265
|
|
|
1244
1266
|
/***/ }),
|
|
@@ -16426,7 +16448,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16426
16448
|
/* harmony export */ "Metadata": () => (/* reexport safe */ _Metadata__WEBPACK_IMPORTED_MODULE_0__.Metadata)
|
|
16427
16449
|
/* harmony export */ });
|
|
16428
16450
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
16429
|
-
/** @license Frontegg v6.
|
|
16451
|
+
/** @license Frontegg v6.12.0
|
|
16430
16452
|
*
|
|
16431
16453
|
* This source code is licensed under the MIT license found in the
|
|
16432
16454
|
* LICENSE file in the root directory of this source tree.
|