@frontegg/js 7.78.0-alpha.1 → 7.78.0-alpha.2

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.
@@ -35,7 +35,7 @@
35
35
 
36
36
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
37
37
 
38
- /** @license Frontegg v7.78.0-alpha.1
38
+ /** @license Frontegg v7.78.0-alpha.2
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export default {
2
- cdnVersion: '7.78.0-alpha.1'
2
+ cdnVersion: '7.78.0-alpha.2'
3
3
  };
@@ -1 +0,0 @@
1
- "use strict";(window.webpackChunkFrontegg=window.webpackChunkFrontegg||[]).push([[675],{1675:(e,o,n)=>{n.r(o),n.d(o,{default:()=>d});var t=n(9575),a=n(2046);const d=(e,o,n)=>({loadVendorPublicInfo:async e=>{n.setVendorState({loading:!0});try{var d;const r=await(0,a.F$)((()=>o.vendor.getVendorPublicInfo()),null==e?void 0:e.retryConfig);r.whiteLabelMode=null!=(d=r.whiteLabelMode)&&d,n.setVendorState((0,t.A)({},r,{loading:!1}))}catch(e){n.setVendorState({loading:!1}),console.error("failed to getVendorPublicInfo - ",e)}}})}}]);
@@ -1,44 +0,0 @@
1
- "use strict";
2
- (window["webpackChunkFrontegg"] = window["webpackChunkFrontegg"] || []).push([["dist_frontegg_redux-store_vendor_actions_actions_js"],{
3
-
4
- /***/ "../../dist/@frontegg/redux-store/vendor/actions/actions.js":
5
- /*!******************************************************************!*\
6
- !*** ../../dist/@frontegg/redux-store/vendor/actions/actions.js ***!
7
- \******************************************************************/
8
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
-
10
- __webpack_require__.r(__webpack_exports__);
11
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
13
- /* harmony export */ });
14
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
15
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
16
-
17
-
18
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, actions) => {
19
- const loadVendorPublicInfo = async payload => {
20
- actions.setVendorState({
21
- loading: true
22
- });
23
- try {
24
- var _vendorInfo$whiteLabe;
25
- const vendorInfo = await (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.retryIfNeeded)(() => api.vendor.getVendorPublicInfo(), payload == null ? void 0 : payload.retryConfig);
26
- vendorInfo.whiteLabelMode = (_vendorInfo$whiteLabe = vendorInfo.whiteLabelMode) != null ? _vendorInfo$whiteLabe : false;
27
- actions.setVendorState((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vendorInfo, {
28
- loading: false
29
- }));
30
- } catch (e) {
31
- actions.setVendorState({
32
- loading: false
33
- });
34
- console.error('failed to getVendorPublicInfo - ', e);
35
- }
36
- };
37
- return {
38
- loadVendorPublicInfo
39
- };
40
- });
41
-
42
- /***/ })
43
-
44
- }]);