@abyss-project/commons-front-core 1.0.26 → 1.0.28
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/Inputs/DropZone/DropZone.component.d.ts +1 -0
- package/dist/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +24 -0
- package/dist/components/Spotlight/ProjectCard/index.d.ts +1 -0
- package/dist/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +13 -0
- package/dist/components/Spotlight/ProjectLinkSelector/index.d.ts +5 -0
- package/dist/components/Spotlight/ProjectTags/ProjectTags.component.d.ts +10 -0
- package/dist/components/Spotlight/ProjectTags/index.d.ts +1 -0
- package/dist/components/Spotlight/ProjectsList/ProjectsList.component.d.ts +24 -0
- package/dist/components/Spotlight/ProjectsList/index.d.ts +1 -0
- package/dist/components/Spotlight/index.d.ts +4 -0
- package/dist/components/UserAvatarList/UserAvatarList.component.d.ts +17 -0
- package/dist/components/UserAvatarList/index.d.ts +1 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +46 -0
- package/dist/{index-Bfb3cIHL.js → index-DaDf5sKA.js} +1622 -1575
- package/dist/index.js +1 -1
- package/dist/translations/en.d.ts +23 -0
- package/dist/translations/fr.d.ts +23 -0
- package/dist/utils/project-link-wording.utils.d.ts +3 -0
- package/dist/{web-khpiEo7I.js → web-B6uMi6lP.js} +1 -1
- package/package.json +4 -1
- package/tsconfig.json +1 -0
- package/vite.config.ts +1 -0
|
@@ -22,6 +22,7 @@ type Props = {
|
|
|
22
22
|
fetchUser?: () => Promise<void>;
|
|
23
23
|
abyssCloudUrl: string;
|
|
24
24
|
getFileThumbnailUrl: (id: string) => string;
|
|
25
|
+
customHelperContent?: React.ReactElement;
|
|
25
26
|
};
|
|
26
27
|
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
27
28
|
children?: React.ReactNode;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ProjectCategory, ProjectLanguage } from '@abyss-project/spotlight';
|
|
3
|
+
import { IUser } from '@abyss-project/main';
|
|
4
|
+
export declare const PROJECT_CARD_HEIGHT = 120;
|
|
5
|
+
type Props = {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
logoUrl: string | null;
|
|
9
|
+
bannerUrl: string | null;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
tags: string[];
|
|
12
|
+
category: ProjectCategory;
|
|
13
|
+
mainLanguage: ProjectLanguage;
|
|
14
|
+
isStarred: boolean;
|
|
15
|
+
isPublished: boolean;
|
|
16
|
+
handleStarProject: () => Promise<void>;
|
|
17
|
+
handleUnStarProject: () => Promise<void>;
|
|
18
|
+
user: IUser | null;
|
|
19
|
+
classes: Record<string, string>;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProjectCard } from './ProjectCard.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
abyssProjectId: string;
|
|
4
|
+
abyssProjectApplicationId: string;
|
|
5
|
+
setAbyssProjectId: (id: string) => void;
|
|
6
|
+
setAbyssProjectApplicationId: (id: string) => void;
|
|
7
|
+
getProjectPictureUrl: (id: string) => string;
|
|
8
|
+
classes: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
classes: Record<string, string>;
|
|
4
|
+
tags: string[];
|
|
5
|
+
onDelete?: (tag: string) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProjectTags } from './ProjectTags.component';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IProject } from '@abyss-project/spotlight';
|
|
3
|
+
import { IUser } from '@abyss-project/main';
|
|
4
|
+
export declare const float: {
|
|
5
|
+
name: string;
|
|
6
|
+
styles: string;
|
|
7
|
+
anim: 1;
|
|
8
|
+
toString: () => string;
|
|
9
|
+
} & string;
|
|
10
|
+
type Props = {
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
hasMore: boolean;
|
|
13
|
+
projects: IProject[] | null;
|
|
14
|
+
handleRefreshProject: () => Promise<void>;
|
|
15
|
+
setCurrentPage: React.Dispatch<React.SetStateAction<number>>;
|
|
16
|
+
getRedirectLink: (slug: string) => string;
|
|
17
|
+
getThumbnailPublicAccessUrl: (thumbnailPublicAccessId: string) => string;
|
|
18
|
+
user: IUser | null;
|
|
19
|
+
classes: Record<string, string>;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProjectsList.component';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
users: {
|
|
5
|
+
alias: string;
|
|
6
|
+
hasThumbnail: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
}[] | null;
|
|
9
|
+
size?: number;
|
|
10
|
+
label?: string;
|
|
11
|
+
sx?: SxProps;
|
|
12
|
+
getProfilePictureUrl: (userId: string) => string;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserAvatarList.component';
|
|
@@ -18,6 +18,15 @@ export declare const translations: {
|
|
|
18
18
|
'filter-title': string;
|
|
19
19
|
share: string;
|
|
20
20
|
'copy-share-link': string;
|
|
21
|
+
'load-more': string;
|
|
22
|
+
'empty-table': string;
|
|
23
|
+
'empty-graph': string;
|
|
24
|
+
back: string;
|
|
25
|
+
next: string;
|
|
26
|
+
save: string;
|
|
27
|
+
create: string;
|
|
28
|
+
loading: string;
|
|
29
|
+
new: string;
|
|
21
30
|
};
|
|
22
31
|
'file-importation': {
|
|
23
32
|
'cloud-usage-metrics': {
|
|
@@ -81,11 +90,24 @@ export declare const translations: {
|
|
|
81
90
|
};
|
|
82
91
|
};
|
|
83
92
|
project: {
|
|
93
|
+
'not-published': string;
|
|
84
94
|
status: {
|
|
85
95
|
ACTIVE: string;
|
|
86
96
|
INACTIVE: string;
|
|
87
97
|
ARCHIVED: string;
|
|
88
98
|
};
|
|
99
|
+
link: {
|
|
100
|
+
none: {
|
|
101
|
+
label: string;
|
|
102
|
+
};
|
|
103
|
+
project: {
|
|
104
|
+
label: string;
|
|
105
|
+
};
|
|
106
|
+
'select-project': string;
|
|
107
|
+
'select-application': string;
|
|
108
|
+
'no-selected': string;
|
|
109
|
+
'no-selected-application': string;
|
|
110
|
+
};
|
|
89
111
|
};
|
|
90
112
|
inputs: {
|
|
91
113
|
'period-picker': {
|
|
@@ -109,6 +131,7 @@ export declare const translations: {
|
|
|
109
131
|
modal: {
|
|
110
132
|
confirm: string;
|
|
111
133
|
save: string;
|
|
134
|
+
create: string;
|
|
112
135
|
cancel: string;
|
|
113
136
|
'confirm-modal': {
|
|
114
137
|
title: string;
|
|
@@ -170,6 +193,15 @@ export declare const translations: {
|
|
|
170
193
|
'filter-title': string;
|
|
171
194
|
share: string;
|
|
172
195
|
'copy-share-link': string;
|
|
196
|
+
'load-more': string;
|
|
197
|
+
'empty-table': string;
|
|
198
|
+
'empty-graph': string;
|
|
199
|
+
back: string;
|
|
200
|
+
next: string;
|
|
201
|
+
save: string;
|
|
202
|
+
create: string;
|
|
203
|
+
loading: string;
|
|
204
|
+
new: string;
|
|
173
205
|
};
|
|
174
206
|
'file-importation': {
|
|
175
207
|
'cloud-usage-metrics': {
|
|
@@ -233,11 +265,24 @@ export declare const translations: {
|
|
|
233
265
|
};
|
|
234
266
|
};
|
|
235
267
|
project: {
|
|
268
|
+
'not-published': string;
|
|
236
269
|
status: {
|
|
237
270
|
ACTIVE: string;
|
|
238
271
|
INACTIVE: string;
|
|
239
272
|
ARCHIVED: string;
|
|
240
273
|
};
|
|
274
|
+
link: {
|
|
275
|
+
none: {
|
|
276
|
+
label: string;
|
|
277
|
+
};
|
|
278
|
+
project: {
|
|
279
|
+
label: string;
|
|
280
|
+
};
|
|
281
|
+
'select-project': string;
|
|
282
|
+
'select-application': string;
|
|
283
|
+
'no-selected': string;
|
|
284
|
+
'no-selected-application': string;
|
|
285
|
+
};
|
|
241
286
|
};
|
|
242
287
|
inputs: {
|
|
243
288
|
'period-picker': {
|
|
@@ -262,6 +307,7 @@ export declare const translations: {
|
|
|
262
307
|
confirm: string;
|
|
263
308
|
save: string;
|
|
264
309
|
cancel: string;
|
|
310
|
+
create: string;
|
|
265
311
|
'confirm-modal': {
|
|
266
312
|
title: string;
|
|
267
313
|
};
|