@frontegg/redux-store 5.40.0 → 5.41.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/auth/AccountSettingsState/index.d.ts +0 -8
- package/auth/MfaState/index.d.ts +2 -8
- package/auth/ResetPhoneNumberState/index.d.ts +0 -8
- package/auth/SignUp/saga.d.ts +1 -1
- package/auth/index.js +9 -4
- package/auth/interfaces.d.ts +7 -1
- package/index.js +1 -1
- package/node/auth/index.js +151 -3518
- package/node/{saga-633c17d2.js → index-2ab7009b.js} +12 -2
- package/node/index-5c2d4101.js +3612 -0
- package/node/index.js +52 -48
- package/node/toolkit/index.js +65 -144
- package/node/vendor/index.js +8 -15
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var effects = require('redux-saga/effects');
|
|
4
|
-
var restApi = require('@frontegg/rest-api');
|
|
5
3
|
var constants = require('./constants-52e37c08.js');
|
|
6
4
|
var toolkit = require('@reduxjs/toolkit');
|
|
5
|
+
var effects = require('redux-saga/effects');
|
|
6
|
+
var restApi = require('@frontegg/rest-api');
|
|
7
7
|
|
|
8
8
|
const reducers = {
|
|
9
9
|
setVendorState: (state, { payload }) => (Object.assign(Object.assign({}, state), payload)),
|
|
@@ -35,8 +35,18 @@ function* sagas() {
|
|
|
35
35
|
yield effects.takeEvery(actions.loadVendorPublicInfo, loadVendorPublicInfo);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
// export store
|
|
39
|
+
var vendorStore = {
|
|
40
|
+
sagas,
|
|
41
|
+
storeName: constants.vendorStoreName,
|
|
42
|
+
initialState,
|
|
43
|
+
reducer,
|
|
44
|
+
actions,
|
|
45
|
+
};
|
|
46
|
+
|
|
38
47
|
exports.actions = actions;
|
|
39
48
|
exports.initialState = initialState;
|
|
40
49
|
exports.loadVendorPublicInfo = loadVendorPublicInfo;
|
|
41
50
|
exports.reducer = reducer;
|
|
42
51
|
exports.sagas = sagas;
|
|
52
|
+
exports.vendorStore = vendorStore;
|