@frontegg/redux-store 6.186.0 → 6.187.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.186.0
1
+ /** @license Frontegg v6.187.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.186.0
1
+ /** @license Frontegg v6.187.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.
@@ -16,10 +16,14 @@ function* loadVendorPublicInfo() {
16
16
  }));
17
17
  try {
18
18
  const {
19
- whiteLabelMode = false
19
+ whiteLabelMode = false,
20
+ name,
21
+ logo
20
22
  } = yield _restApi.api.vendor.getVendorPublicInfo();
21
23
  yield (0, _effects.put)(_reducer.actions.setVendorState({
22
24
  whiteLabelMode,
25
+ name,
26
+ logo,
23
27
  loading: false
24
28
  }));
25
29
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.186.0",
3
+ "version": "6.187.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
@@ -2,6 +2,8 @@ import { VendorState } from '../interfaces';
2
2
  import { PayloadAction } from '@reduxjs/toolkit';
3
3
  declare const reducers: {
4
4
  setVendorState: (state: VendorState, { payload }: PayloadAction<Partial<VendorState>>) => {
5
+ name?: string | undefined;
6
+ logo?: string | undefined;
5
7
  whiteLabelMode?: boolean | undefined;
6
8
  loading: boolean;
7
9
  };
@@ -1,4 +1,6 @@
1
1
  export interface VendorState {
2
+ name?: string;
3
+ logo?: string;
2
4
  whiteLabelMode?: boolean;
3
5
  loading: boolean;
4
6
  }
package/vendor/saga.d.ts CHANGED
@@ -3,6 +3,8 @@ export declare function loadVendorPublicInfo(): Generator<import("redux-saga/eff
3
3
  type: string;
4
4
  }> | Promise<import("@frontegg/rest-api").IVendorPublicInfoResponse>, void, {
5
5
  whiteLabelMode?: false | undefined;
6
+ name: any;
7
+ logo: any;
6
8
  }>;
7
9
  export declare function vendorSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
8
10
  export declare function sagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
package/vendor/saga.js CHANGED
@@ -8,10 +8,14 @@ export function* loadVendorPublicInfo() {
8
8
  }));
9
9
  try {
10
10
  const {
11
- whiteLabelMode = false
11
+ whiteLabelMode = false,
12
+ name,
13
+ logo
12
14
  } = yield api.vendor.getVendorPublicInfo();
13
15
  yield put(actions.setVendorState({
14
16
  whiteLabelMode,
17
+ name,
18
+ logo,
15
19
  loading: false
16
20
  }));
17
21
  } catch (e) {