@abyss-project/commons-front-core 1.0.5 → 1.0.7
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/dist/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +14 -0
- package/dist/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +11 -0
- package/dist/components/Layouts/DashboardLayout/index.d.ts +2 -0
- package/dist/components/Layouts/index.d.ts +1 -0
- package/dist/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +28 -0
- package/dist/components/Utils/AbyssDrawer/index.d.ts +1 -0
- package/dist/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +11 -0
- package/dist/components/Utils/AbyssHeaderTitle/index.d.ts +1 -0
- package/dist/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +29 -0
- package/dist/components/Utils/AbyssLayoutMenu/index.d.ts +1 -0
- package/dist/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +12 -0
- package/dist/components/Utils/AbyssLayoutNotifications/index.d.ts +1 -0
- package/dist/components/Utils/index.d.ts +4 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +31 -0
- package/dist/index.js +15579 -10211
- package/dist/translations/en.d.ts +21 -0
- package/dist/translations/fr.d.ts +10 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const drawerWidth = 275;
|
|
3
|
+
export declare const DOCUMENTATION_URL = "https://abyss-project.gitbook.io/abyss/";
|
|
4
|
+
type Props = {
|
|
5
|
+
isMobileOpen?: boolean;
|
|
6
|
+
handleDrawerToggle?: () => void;
|
|
7
|
+
header?: React.ReactNode;
|
|
8
|
+
drawer?: React.ReactNode;
|
|
9
|
+
classes: Record<string, string>;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
hasDrawer?: boolean;
|
|
4
|
+
content?: React.ReactNode;
|
|
5
|
+
handleDrawerToggle: () => void;
|
|
6
|
+
classes: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
9
|
+
children?: import('react').ReactNode;
|
|
10
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AbyssService } from '@abyss-project/main';
|
|
2
|
+
export type DrawerElements = {
|
|
3
|
+
title?: string;
|
|
4
|
+
elements: ({
|
|
5
|
+
isExternal?: boolean;
|
|
6
|
+
service: AbyssService;
|
|
7
|
+
Logo: string;
|
|
8
|
+
link: string;
|
|
9
|
+
helper: string;
|
|
10
|
+
} | {
|
|
11
|
+
isExternal?: boolean;
|
|
12
|
+
Logo: any;
|
|
13
|
+
link: string;
|
|
14
|
+
helper: string;
|
|
15
|
+
})[];
|
|
16
|
+
}[];
|
|
17
|
+
type Props = {
|
|
18
|
+
mainPath: string;
|
|
19
|
+
title: string;
|
|
20
|
+
subtitle?: string;
|
|
21
|
+
handleDrawerToggle: () => void;
|
|
22
|
+
elements: DrawerElements;
|
|
23
|
+
classes: Record<string, string>;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
26
|
+
children?: import('react').ReactNode;
|
|
27
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssDrawer } from './AbyssDrawer.component';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
mainPath: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
classes: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
9
|
+
children?: import('react').ReactNode;
|
|
10
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssHeaderTitle } from './AbyssHeaderTitle.component';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IUser } from '@abyss-project/main';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export type AbyssLayoutMenuContent = {
|
|
5
|
+
title?: string;
|
|
6
|
+
elements: {
|
|
7
|
+
link?: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
text: string;
|
|
10
|
+
subTitle?: string;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
img?: string;
|
|
13
|
+
target?: string;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
border?: string;
|
|
17
|
+
menuItemSxProps?: SxProps;
|
|
18
|
+
}[];
|
|
19
|
+
}[];
|
|
20
|
+
type Props = {
|
|
21
|
+
content: AbyssLayoutMenuContent;
|
|
22
|
+
user: IUser | null;
|
|
23
|
+
getProfilePictureUrl: (id: string) => string;
|
|
24
|
+
classes: Record<string, string>;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssLayoutMenu } from './AbyssLayoutMenu.component';
|
package/dist/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IGetPublicUserData, IUserNotification, NotificationDTO } from '@abyss-project/main';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
allNotificationPath?: string;
|
|
5
|
+
getProfilePictureUrl: (id: string) => string;
|
|
6
|
+
handleNotificationActionButton?: (notification: IUserNotification & NotificationDTO, user?: IGetPublicUserData['user'][0] | null) => void;
|
|
7
|
+
classes: Record<string, string>;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssLayoutNotifications } from './AbyssLayoutNotifications.component';
|
|
@@ -2,3 +2,7 @@ export * from './CustomDivider';
|
|
|
2
2
|
export * from './FloatingNavigation';
|
|
3
3
|
export * from './WaterParticles';
|
|
4
4
|
export * from './LoadingBox';
|
|
5
|
+
export * from './AbyssDrawer';
|
|
6
|
+
export * from './AbyssHeaderTitle';
|
|
7
|
+
export * from './AbyssLayoutNotifications';
|
|
8
|
+
export * from './AbyssLayoutMenu';
|
|
@@ -120,6 +120,16 @@ export declare const translations: {
|
|
|
120
120
|
cancel: string;
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
|
+
notifications: {
|
|
124
|
+
title: string;
|
|
125
|
+
'new-notifications': string;
|
|
126
|
+
'notifications-card-list': {
|
|
127
|
+
'no-element': string;
|
|
128
|
+
};
|
|
129
|
+
'no-notification': string;
|
|
130
|
+
'see-all-button': string;
|
|
131
|
+
};
|
|
132
|
+
'no-subscription': string;
|
|
123
133
|
};
|
|
124
134
|
en: {
|
|
125
135
|
general: {
|
|
@@ -143,6 +153,8 @@ export declare const translations: {
|
|
|
143
153
|
'pending-share': string;
|
|
144
154
|
};
|
|
145
155
|
'import-external': {
|
|
156
|
+
'import-button': string;
|
|
157
|
+
'open-modal-button': string;
|
|
146
158
|
modal: {
|
|
147
159
|
title: string;
|
|
148
160
|
placeholder: string;
|
|
@@ -185,6 +197,15 @@ export declare const translations: {
|
|
|
185
197
|
'import-cloud-button': string;
|
|
186
198
|
'import-collection-button': string;
|
|
187
199
|
'import-url-label': string;
|
|
200
|
+
'max-size': string;
|
|
201
|
+
'max-size-2': string;
|
|
202
|
+
'file-too-big': string;
|
|
203
|
+
'file-too-big-filtered': string;
|
|
204
|
+
'duplicated-tooltip': string;
|
|
205
|
+
'drop-zone': {
|
|
206
|
+
helper: string;
|
|
207
|
+
helper2: string;
|
|
208
|
+
};
|
|
188
209
|
};
|
|
189
210
|
project: {
|
|
190
211
|
status: {
|
|
@@ -228,6 +249,16 @@ export declare const translations: {
|
|
|
228
249
|
cancel: string;
|
|
229
250
|
};
|
|
230
251
|
};
|
|
252
|
+
notifications: {
|
|
253
|
+
title: string;
|
|
254
|
+
'new-notifications': string;
|
|
255
|
+
'notifications-card-list': {
|
|
256
|
+
'no-element': string;
|
|
257
|
+
};
|
|
258
|
+
'no-notification': string;
|
|
259
|
+
'see-all-button': string;
|
|
260
|
+
};
|
|
261
|
+
'no-subscription': string;
|
|
231
262
|
};
|
|
232
263
|
};
|
|
233
264
|
export declare const flattenTranslations: {
|