Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/redux-store

Package Overview
Dependencies
Maintainers
1
Versions
1079
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/redux-store - npm Package Compare versions

Comparing version 1.25.0-rescript to 1.28.0-alpha-split-store

auth/dammy.d.ts

1

auth/AccountSettingsState/saga.d.ts
export declare function accountSettingsSaga(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function accountSettingsSagaMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;

@@ -1,2 +0,2 @@

import { IActivateAccount } from '@frontegg/rest-api';
import { IActivateAccount, IResendActivationEmail } from '@frontegg/rest-api';
import { ActivateAccountState } from './interfaces';

@@ -14,2 +14,6 @@ declare const activateState: ActivateAccountState;

onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
/**
* if you see error in matcher that's mean the DispatchAction does not
* contains the same functions in reducers and actions
*/
error?: any;

@@ -44,2 +48,6 @@ isAuthenticated: boolean;

onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
/**
* if you see error in matcher that's mean the DispatchAction does not
* contains the same functions in reducers and actions
*/
error?: any;

@@ -74,2 +82,3 @@ isAuthenticated: boolean;

activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IActivateAccount], IActivateAccount, string, never, never>;
resendActivationEmail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IResendActivationEmail], IResendActivationEmail, string, never, never>;
};

@@ -84,4 +93,5 @@ /**

activateAccount: (payload: IActivateAccount) => void;
resendActivationEmail: (payload: IResendActivationEmail) => void;
};
export declare type ActivateAccountActions = DispatchedActions;
export { activateState, reducers as activateAccountReducers, actions as activateAccountActions };

4

auth/ActivateState/interfaces.d.ts
export declare enum ActivateAccountStep {
'activating' = "activating",
'success' = "success"
'success' = "success",
'resend' = "resend"
}

@@ -9,2 +10,3 @@ export interface ActivateAccountState {

step: ActivateAccountStep;
resentEmail: boolean;
}
export declare function apiTokensSaga(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function apiTokensSagaMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;

@@ -134,2 +134,3 @@ import { reducer, actions } from './reducer';

activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IActivateAccount], import("@frontegg/rest-api").IActivateAccount, string, never, never>;
resendActivationEmail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IResendActivationEmail], import("@frontegg/rest-api").IResendActivationEmail, string, never, never>;
loadSocialLoginsConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;

@@ -136,0 +137,0 @@ loginViaSocialLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").ILoginViaSocialLogin], import("@frontegg/rest-api").ILoginViaSocialLogin, string, never, never>;

export declare function mfaSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function mfaSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function profileSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function profileSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;

@@ -109,2 +109,3 @@ import { AuthState, User } from './interfaces';

activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IActivateAccount], import("@frontegg/rest-api").IActivateAccount, string, never, never>;
resendActivationEmail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IResendActivationEmail], import("@frontegg/rest-api").IResendActivationEmail, string, never, never>;
loadSocialLoginsConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;

@@ -111,0 +112,0 @@ loginViaSocialLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").ILoginViaSocialLogin], import("@frontegg/rest-api").ILoginViaSocialLogin, string, never, never>;

export declare function securityPolicySagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function securityPolicySagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function ssoSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function ssoSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function teamSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function teamSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function tenantsSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
export declare function tenantsSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;

@@ -158,1 +158,2 @@ import { PayloadAction } from '@reduxjs/toolkit';

};
export declare const delay: (delayTime?: number) => Promise<unknown>;
{
"name": "@frontegg/redux-store",
"libName": "FronteggReduxStore",
"version": "1.25.0-rescript",
"version": "1.28.0-alpha-split-store",
"author": "Frontegg LTD",
"main": "index.js",
"module": "index.js",
"module": "index.esm.js",
"types": "index.d.ts",
"scripts": {
"build": "rm -rf dist && mkdir dist && rollup -c ./rollup.config.js",
"build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js",
"test": "jest --runInBand --passWithNoTests -c ../../scripts/jest.config.json --rootDir ."
},
"dependencies": {
"@frontegg/rest-api": "^1.25.0-rescript",
"@frontegg/rest-api": "1.28.0-alpha-split-store",
"@reduxjs/toolkit": "1.x",
"redux-saga": "1.x"
}
}
},
"gitHead": "0849b995f611b8a31f2bc9c961345cd748ca9e53",
"main": "index.js",
"es2015": "index.es.js",
"peerDependencies": {}
}

@@ -15,2 +15,2 @@ import { EnhancedStore } from '@reduxjs/toolkit';

}
export declare const createFronteggStore: (rootInitialState: InitialState, rootSagas?: any) => EnhancedStore;
export declare const createFronteggStore: (rootInitialState: InitialState, storeHolder?: any) => EnhancedStore;

@@ -12,3 +12,6 @@ import { getDefaultMiddleware, createSlice, configureStore, combineReducers } from '@reduxjs/toolkit';

const sagaMiddleware = createSagaMiddleware();
const middleware = [...getDefaultMiddleware({ thunk: false, serializableCheck: false }), sagaMiddleware];
const middleware = [
...getDefaultMiddleware({ thunk: false, immutableCheck: false, serializableCheck: false }),
sagaMiddleware,
];
const initialState = {

@@ -30,5 +33,14 @@ context: undefined,

});
const createFronteggStore = (rootInitialState, rootSagas) => {
if (!window.fronteggStore) {
window.fronteggStore = configureStore({
const createFronteggStore = (rootInitialState, storeHolder) => {
const isSSR = typeof window === 'undefined';
let holder = storeHolder;
if (isSSR && storeHolder == null) {
throw Error('createFronteggStore(initState, storeHolder) failed, storeHolder must not be null in Server-Side rendering');
}
if (!holder) {
holder = window;
}
if (!holder.store) {
ContextHolder.setContext(rootInitialState.context);
holder.store = configureStore({
middleware,

@@ -47,10 +59,7 @@ preloadedState: {

const rootSaga = function* () {
yield all([
call(authStore.sagas),
call(auditsStore.sagas),
]);
yield all([call(authStore.sagas), call(auditsStore.sagas)]);
};
sagaMiddleware.run(rootSaga);
}
return window.fronteggStore;
return holder.store;
};

@@ -57,0 +66,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc