@infinityloop.labs/frontend-modules 0.0.1
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/LICENSE +5 -0
- package/README.md +27 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/constants/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/hooks/useAnalyticsEngineActions.d.ts +9 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/index.d.ts +7 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/lib/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/lib/types/index.d.ts +13 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/store/index.d.ts +19 -0
- package/dist/frontend-modules/src/features/services/analyticsEngine/structure/index.d.ts +10 -0
- package/dist/frontend-modules/src/features/services/appSize/constants/breakpoints.d.ts +8 -0
- package/dist/frontend-modules/src/features/services/appSize/constants/index.d.ts +2 -0
- package/dist/frontend-modules/src/features/services/appSize/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/appSize/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/appSize/hooks/useAppSizeActions.d.ts +10 -0
- package/dist/frontend-modules/src/features/services/appSize/index.d.ts +7 -0
- package/dist/frontend-modules/src/features/services/appSize/lib/types/index.d.ts +8 -0
- package/dist/frontend-modules/src/features/services/appSize/store/index.d.ts +28 -0
- package/dist/frontend-modules/src/features/services/appSize/structure/index.d.ts +18 -0
- package/dist/frontend-modules/src/features/services/auth/constants/index.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/auth/constants/localStorage.d.ts +5 -0
- package/dist/frontend-modules/src/features/services/auth/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/auth/constants/queryParameters.d.ts +10 -0
- package/dist/frontend-modules/src/features/services/auth/constants/routes.d.ts +9 -0
- package/dist/frontend-modules/src/features/services/auth/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/auth/hooks/useAuthActions.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/auth/index.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/auth/lib/types.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/auth/store/index.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/auth/structure/index.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/forms/constants/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/forms/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/forms/hooks/useFormsActions.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/forms/index.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/forms/lib/index.d.ts +2 -0
- package/dist/frontend-modules/src/features/services/forms/lib/types.d.ts +5 -0
- package/dist/frontend-modules/src/features/services/forms/lib/validateForms.d.ts +9 -0
- package/dist/frontend-modules/src/features/services/forms/store/index.d.ts +8 -0
- package/dist/frontend-modules/src/features/services/forms/structure/index.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/indexeddb/constants/database.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/indexeddb/constants/index.d.ts +2 -0
- package/dist/frontend-modules/src/features/services/indexeddb/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/indexeddb/container/index.d.ts +10 -0
- package/dist/frontend-modules/src/features/services/indexeddb/hooks/useIndexeddbActions.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/indexeddb/index.d.ts +8 -0
- package/dist/frontend-modules/src/features/services/indexeddb/store/index.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/indexeddb/structure/index.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/notify/constants/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/notify/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/notify/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/notify/hooks/useNotifyActions.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/notify/index.d.ts +7 -0
- package/dist/frontend-modules/src/features/services/notify/lib/types.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/notify/store/index.d.ts +8 -0
- package/dist/frontend-modules/src/features/services/notify/structure/index.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/popup/constants/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/popup/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/popup/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/popup/hooks/usePopupActions.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/popup/index.d.ts +7 -0
- package/dist/frontend-modules/src/features/services/popup/lib/types.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/popup/store/index.d.ts +10 -0
- package/dist/frontend-modules/src/features/services/popup/structure/index.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/roles/constants/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/roles/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/roles/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/roles/hooks/useRolesActions.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/roles/index.d.ts +7 -0
- package/dist/frontend-modules/src/features/services/roles/lib/index.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/roles/lib/mappers/index.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/roles/lib/schemas/index.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/roles/lib/types/index.d.ts +7 -0
- package/dist/frontend-modules/src/features/services/roles/lib/utils/index.d.ts +2 -0
- package/dist/frontend-modules/src/features/services/roles/store/index.d.ts +8 -0
- package/dist/frontend-modules/src/features/services/roles/structure/index.d.ts +4 -0
- package/dist/frontend-modules/src/features/services/router/constants/index.d.ts +2 -0
- package/dist/frontend-modules/src/features/services/router/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/router/constants/routes.d.ts +2 -0
- package/dist/frontend-modules/src/features/services/router/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/router/hooks/useRouterActions.d.ts +9 -0
- package/dist/frontend-modules/src/features/services/router/index.d.ts +7 -0
- package/dist/frontend-modules/src/features/services/router/lib/types.d.ts +2 -0
- package/dist/frontend-modules/src/features/services/router/store/index.d.ts +15 -0
- package/dist/frontend-modules/src/features/services/router/structure/index.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/theme/constants/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/theme/constants/name.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/theme/container/index.d.ts +1 -0
- package/dist/frontend-modules/src/features/services/theme/hooks/useThemeActions.d.ts +3 -0
- package/dist/frontend-modules/src/features/services/theme/index.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/theme/store/index.d.ts +6 -0
- package/dist/frontend-modules/src/features/services/theme/structure/index.d.ts +3 -0
- package/dist/frontend-modules/src/index.d.ts +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +6107 -0
- package/dist/index.umd.js +19 -0
- package/package.json +52 -0
package/LICENSE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frontend-modules
|
|
2
|
+
|
|
3
|
+
Reusable services for React + Redux Toolkit projects, including popup service integration with `@infinityloop.labs/event-bus`.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i @infinityloop.labs/frontend-modules
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Popup service
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { Actions, Reducer, popup } from '@infinityloop.labs/frontend-modules'
|
|
15
|
+
|
|
16
|
+
// reducer
|
|
17
|
+
const reducer = combineReducers({
|
|
18
|
+
popup: Reducer,
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
// global service injector usage
|
|
22
|
+
// <ServiceInjector services={[popup.service]} />
|
|
23
|
+
|
|
24
|
+
// actions
|
|
25
|
+
Actions.addModal({ id: 'id', title: 'Title' })
|
|
26
|
+
Actions.removeModal({ id: 'id' })
|
|
27
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './name';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContainer: SC;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useAnalyticsEngineActions: () => {
|
|
2
|
+
setAnalyticsEngineLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/setAnalyticsEngineLoading">;
|
|
3
|
+
addScrollStopPoint: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("..").ScrollStopPointWebClientType, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addScrollStopPoint">;
|
|
4
|
+
addGuardPassPoint: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("..").ScrollGuardWebClientType, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addGuardPassPoint">;
|
|
5
|
+
addYScrollPoint: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addYScrollPoint">;
|
|
6
|
+
clearAnalyticsPoints: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/clearAnalyticsPoints">;
|
|
7
|
+
addBlockToViewportArray: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addBlockToViewportArray">;
|
|
8
|
+
removeBlockFromViewportArray: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/removeBlockFromViewportArray">;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SampleDTOType = object;
|
|
2
|
+
export type ScrollStopPointWebClientType = {
|
|
3
|
+
id: string;
|
|
4
|
+
timestamp: Date;
|
|
5
|
+
};
|
|
6
|
+
export type ScrollGuardWebClientType = {
|
|
7
|
+
id: string;
|
|
8
|
+
timestamp: Date;
|
|
9
|
+
};
|
|
10
|
+
export declare const enum SampleFieldsEnum {
|
|
11
|
+
FIELD = "FIELD"
|
|
12
|
+
}
|
|
13
|
+
export type SampleFieldsType = Record<SampleFieldsEnum, string | null>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ScrollGuardWebClientType, ScrollStopPointWebClientType } from '../lib';
|
|
2
|
+
export declare const Actions: {
|
|
3
|
+
setAnalyticsEngineLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/setAnalyticsEngineLoading">;
|
|
4
|
+
addScrollStopPoint: import("@reduxjs/toolkit").ActionCreatorWithPayload<ScrollStopPointWebClientType, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addScrollStopPoint">;
|
|
5
|
+
addGuardPassPoint: import("@reduxjs/toolkit").ActionCreatorWithPayload<ScrollGuardWebClientType, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addGuardPassPoint">;
|
|
6
|
+
addYScrollPoint: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addYScrollPoint">;
|
|
7
|
+
clearAnalyticsPoints: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/clearAnalyticsPoints">;
|
|
8
|
+
addBlockToViewportArray: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/addBlockToViewportArray">;
|
|
9
|
+
removeBlockFromViewportArray: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "[@infinityloop.labs/frontend-modules - analyticsEngine - Service]/removeBlockFromViewportArray">;
|
|
10
|
+
};
|
|
11
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
12
|
+
isAnalyticsEngineInitialized: boolean;
|
|
13
|
+
scrollStopPoints: ScrollStopPointWebClientType[];
|
|
14
|
+
guardPassPoints: ScrollGuardWebClientType[];
|
|
15
|
+
yScrollPointsArray: number[];
|
|
16
|
+
isUpperScrolling: boolean;
|
|
17
|
+
isDownScrolling: boolean;
|
|
18
|
+
currentBlocksInViewport: string[];
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScrollStopPointWebClientType, ScrollGuardWebClientType } from '../lib/';
|
|
2
|
+
export declare const initialState: {
|
|
3
|
+
isAnalyticsEngineInitialized: boolean;
|
|
4
|
+
scrollStopPoints: ScrollStopPointWebClientType[];
|
|
5
|
+
guardPassPoints: ScrollGuardWebClientType[];
|
|
6
|
+
yScrollPointsArray: number[];
|
|
7
|
+
isUpperScrolling: boolean;
|
|
8
|
+
isDownScrolling: boolean;
|
|
9
|
+
currentBlocksInViewport: string[];
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - appSize - Service]";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContainer: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const useAppSizeActions: () => {
|
|
2
|
+
setIsMobile: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - appSize - Service]/setIsMobile">;
|
|
3
|
+
setScreenFlagsByWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "[@infinityloop.labs/frontend-modules - appSize - Service]/setScreenFlagsByWidth">;
|
|
4
|
+
setAppSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
5
|
+
innerWidth: number | null;
|
|
6
|
+
innerHeight: number | null;
|
|
7
|
+
clientWidth: number | null;
|
|
8
|
+
clientHeight: number | null;
|
|
9
|
+
}, "[@infinityloop.labs/frontend-modules - appSize - Service]/setAppSize">;
|
|
10
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const Actions: {
|
|
2
|
+
setIsMobile: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - appSize - Service]/setIsMobile">;
|
|
3
|
+
setScreenFlagsByWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "[@infinityloop.labs/frontend-modules - appSize - Service]/setScreenFlagsByWidth">;
|
|
4
|
+
setAppSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
5
|
+
innerWidth: number | null;
|
|
6
|
+
innerHeight: number | null;
|
|
7
|
+
clientWidth: number | null;
|
|
8
|
+
clientHeight: number | null;
|
|
9
|
+
}, "[@infinityloop.labs/frontend-modules - appSize - Service]/setAppSize">;
|
|
10
|
+
};
|
|
11
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
12
|
+
isMobile: boolean;
|
|
13
|
+
isTablet: boolean;
|
|
14
|
+
isHorizontal: boolean;
|
|
15
|
+
screenFlags: {
|
|
16
|
+
isSM: boolean;
|
|
17
|
+
isMD: boolean;
|
|
18
|
+
isLG: boolean;
|
|
19
|
+
isXL: boolean;
|
|
20
|
+
is2XL: boolean;
|
|
21
|
+
};
|
|
22
|
+
appSize: {
|
|
23
|
+
innerWidth: number | null;
|
|
24
|
+
innerHeight: number | null;
|
|
25
|
+
clientWidth: number | null;
|
|
26
|
+
clientHeight: number | null;
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const initialState: {
|
|
2
|
+
isMobile: boolean;
|
|
3
|
+
isTablet: boolean;
|
|
4
|
+
isHorizontal: boolean;
|
|
5
|
+
screenFlags: {
|
|
6
|
+
isSM: boolean;
|
|
7
|
+
isMD: boolean;
|
|
8
|
+
isLG: boolean;
|
|
9
|
+
isXL: boolean;
|
|
10
|
+
is2XL: boolean;
|
|
11
|
+
};
|
|
12
|
+
appSize: {
|
|
13
|
+
innerWidth: number | null;
|
|
14
|
+
innerHeight: number | null;
|
|
15
|
+
clientWidth: number | null;
|
|
16
|
+
clientHeight: number | null;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - Auth - Service]";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const enum QueryParametersEnum {
|
|
2
|
+
PAGE = "page",
|
|
3
|
+
PAGE_SIZE = "pageSize",
|
|
4
|
+
REFRESH_TOKEN = "refresh_token",
|
|
5
|
+
ACCESS_TOKEN = "access_token",
|
|
6
|
+
IS_SOCKET_MODAL_OPEN = "is_socket_modal_open",
|
|
7
|
+
IS_BLOCK_MODAL_OPEN = "is_block_modal_open",
|
|
8
|
+
SELECTED_MODULE_ID = "selected_module_id",
|
|
9
|
+
SELECTED_SOCKET_ID = "selected_socket_id"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContainer: SC;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Actions: {
|
|
2
|
+
setIsAuthenticated: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - Auth - Service]/setIsAuthenticated">;
|
|
3
|
+
};
|
|
4
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
5
|
+
isAuthenticated: boolean;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './name';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - Forms - Service]";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const useFormsActions: () => {
|
|
2
|
+
registerForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("..").FormInRegistryType, "[@infinityloop.labs/frontend-modules - Forms - Service]/registerForm">;
|
|
3
|
+
unregisterForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "[@infinityloop.labs/frontend-modules - Forms - Service]/unregisterForm">;
|
|
4
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FormInRegistryType } from './types';
|
|
2
|
+
export declare const validateForms: (forms: FormInRegistryType[]) => Promise<{
|
|
3
|
+
isOk: boolean;
|
|
4
|
+
values: unknown[];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const useValidateDistributedForm: () => (formIds: string[]) => Promise<{
|
|
7
|
+
isOk: boolean;
|
|
8
|
+
values: unknown[];
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FormInRegistryType } from '../lib/types';
|
|
2
|
+
export declare const Actions: {
|
|
3
|
+
registerForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<FormInRegistryType, "[@infinityloop.labs/frontend-modules - Forms - Service]/registerForm">;
|
|
4
|
+
unregisterForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "[@infinityloop.labs/frontend-modules - Forms - Service]/unregisterForm">;
|
|
5
|
+
};
|
|
6
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
7
|
+
formsRegistry: Record<string, FormInRegistryType>;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const INDEXEDDB_DATABASE_NAME = "infinityloop.labs";
|
|
2
|
+
export declare enum IndexedDbTableNamesEnum {
|
|
3
|
+
PR_EMPLOYEE_ACHIEVEMENTS_AND_GOALS_FORM_DRAFT = "PR_EMPLOYEE_ACHIEVEMENTS_AND_GOALS_FORM_DRAFT"
|
|
4
|
+
}
|
|
5
|
+
export declare const indexedDbTableNames: IndexedDbTableNamesEnum[];
|
|
6
|
+
export declare const indexedDbVersion = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - Indexeddb - Service]";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type IndexedDbInstanceType = {
|
|
2
|
+
createObjectStore: (tableNames: string[], version?: number) => Promise<boolean | unknown>;
|
|
3
|
+
};
|
|
4
|
+
export type IndexedDbConfigType = {
|
|
5
|
+
instance: IndexedDbInstanceType;
|
|
6
|
+
tableNames: string[];
|
|
7
|
+
version?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const useContainer: (indexedDbInstances?: IndexedDbConfigType[]) => void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IndexedDbConfigType } from './container';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './container';
|
|
4
|
+
export * from './hooks/useIndexeddbActions';
|
|
5
|
+
export * from './store';
|
|
6
|
+
export declare const indexeddb: {
|
|
7
|
+
service: (indexedDbInstances?: IndexedDbConfigType[]) => () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Actions: {
|
|
2
|
+
setIsIndexedDBInitialized: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - Indexeddb - Service]/setIsIndexedDBInitialized">;
|
|
3
|
+
};
|
|
4
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
5
|
+
isIndexedDBInitialized: boolean;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './name';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - Notify - Service]";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContainer: () => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const useNotifyActions: () => {
|
|
2
|
+
addNotify: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../../../../../event-bus/src/index.ts').NotifyType, "[@infinityloop.labs/frontend-modules - Notify - Service]/addNotify">;
|
|
3
|
+
removeNotify: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"[@infinityloop.labs/frontend-modules - Notify - Service]/removeNotify">;
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { NotifyType } from '../../../../../../event-bus/src/index.ts';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NotifyType } from '../lib/types';
|
|
2
|
+
export declare const Actions: {
|
|
3
|
+
addNotify: import("@reduxjs/toolkit").ActionCreatorWithPayload<NotifyType, "[@infinityloop.labs/frontend-modules - Notify - Service]/addNotify">;
|
|
4
|
+
removeNotify: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"[@infinityloop.labs/frontend-modules - Notify - Service]/removeNotify">;
|
|
5
|
+
};
|
|
6
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
7
|
+
notifyArray: NotifyType[];
|
|
8
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './name';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - Popup - Service]";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContainer: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const usePopupActions: () => {
|
|
2
|
+
addModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../../../../../event-bus/src/index.ts').PopupType, "[@infinityloop.labs/frontend-modules - Popup - Service]/addModal">;
|
|
3
|
+
removeModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
4
|
+
id: string;
|
|
5
|
+
}, "[@infinityloop.labs/frontend-modules - Popup - Service]/removeModal">;
|
|
6
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type PopupType } from '../lib/types';
|
|
2
|
+
export declare const Actions: {
|
|
3
|
+
addModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<PopupType, "[@infinityloop.labs/frontend-modules - Popup - Service]/addModal">;
|
|
4
|
+
removeModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
5
|
+
id: string;
|
|
6
|
+
}, "[@infinityloop.labs/frontend-modules - Popup - Service]/removeModal">;
|
|
7
|
+
};
|
|
8
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
9
|
+
modals: import("..").ModalStateType;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './name';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - Roles - Service]";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContainer: SC;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const useRolesActions: () => {
|
|
2
|
+
setRolesInitialized: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - Roles - Service]/setRolesInitialized">;
|
|
3
|
+
setCurrentUserID: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "[@infinityloop.labs/frontend-modules - Roles - Service]/setCurrentUserID">;
|
|
4
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type RolesDTOType = Record<string, unknown>;
|
|
2
|
+
export type RolesUIType = Record<string, unknown>;
|
|
3
|
+
export type RolesWebClientType = Record<string, unknown>;
|
|
4
|
+
export declare const enum RolesFieldsEnum {
|
|
5
|
+
FIELD = "FIELD"
|
|
6
|
+
}
|
|
7
|
+
export type RolesFieldsType = Record<RolesFieldsEnum, string | null>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Actions: {
|
|
2
|
+
setRolesInitialized: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - Roles - Service]/setRolesInitialized">;
|
|
3
|
+
setCurrentUserID: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "[@infinityloop.labs/frontend-modules - Roles - Service]/setCurrentUserID">;
|
|
4
|
+
};
|
|
5
|
+
export declare const Reducer: import("redux").Reducer<{
|
|
6
|
+
isRolesInitialized: boolean;
|
|
7
|
+
currentUserId: string | null;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const name = "[@infinityloop.labs/frontend-modules - Router - Service]";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContainer: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useRouterActions: () => {
|
|
2
|
+
setQueryParameters: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("..").RouterQueryParamsType, "[@infinityloop.labs/frontend-modules - Router - Service]/setQueryParameters">;
|
|
3
|
+
setQueryParameter: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
4
|
+
key: string;
|
|
5
|
+
value: import("..").RouterQueryParamValueType;
|
|
6
|
+
}, "[@infinityloop.labs/frontend-modules - Router - Service]/setQueryParameter">;
|
|
7
|
+
setIsRouterInitialized: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "[@infinityloop.labs/frontend-modules - Router - Service]/setIsRouterInitialized">;
|
|
8
|
+
setPathNameFlags: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, "[@infinityloop.labs/frontend-modules - Router - Service]/setPathNameFlags">;
|
|
9
|
+
};
|