@abyss-project/commons-front-core 1.0.3 → 1.0.4
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 +28 -0
- package/dist/components/Inputs/DropZone/index.d.ts +1 -0
- package/dist/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +10 -0
- package/dist/components/Layouts/LoadingLayout/index.d.ts +1 -0
- package/dist/components/Layouts/MainLayout/MainLayout.layout.d.ts +11 -0
- package/dist/components/Layouts/MainLayout/index.d.ts +1 -0
- package/dist/components/Layouts/index.d.ts +2 -0
- package/dist/components/Utils/LoadingBox/LoadingBox.component.d.ts +9 -0
- package/dist/components/Utils/LoadingBox/index.d.ts +1 -0
- package/dist/components/Utils/index.d.ts +1 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +11 -0
- package/dist/index.js +1896 -1834
- package/dist/translations/fr.d.ts +11 -0
- package/package.json +2 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
import { IUser } from '@abyss-project/main';
|
|
4
|
+
import { IFile } from '@abyss-project/cloud';
|
|
5
|
+
import { Accept } from 'react-dropzone';
|
|
6
|
+
import { CollectionElement } from '../../ImportButton';
|
|
7
|
+
type Props = {
|
|
8
|
+
circular?: boolean;
|
|
9
|
+
classes: Record<string, string>;
|
|
10
|
+
title?: React.ReactElement | string;
|
|
11
|
+
onDrop: (acceptedFiles: File[], cloudFiles: IFile[], collectionElements: CollectionElement[]) => void;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
customContentDropZone?: React.ReactElement;
|
|
14
|
+
maxSize?: number;
|
|
15
|
+
accept?: Accept;
|
|
16
|
+
dropzoneSx?: SxProps;
|
|
17
|
+
enableImportFromExternal?: boolean;
|
|
18
|
+
additionalContentDropZone?: React.ReactElement;
|
|
19
|
+
disableExternalImport?: boolean;
|
|
20
|
+
user: IUser;
|
|
21
|
+
fetchUser: () => Promise<void>;
|
|
22
|
+
abyssCloudUrl: string;
|
|
23
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DropZone } from './DropZone.component';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
abyssLandingUrl: string;
|
|
5
|
+
classes: Record<string, string>;
|
|
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 LoadingLayout } from './LoadingLayout.layout';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
shouldDisplayLandingButton?: boolean;
|
|
4
|
+
shouldMaskLogo?: boolean;
|
|
5
|
+
abyssLandingUrl: string;
|
|
6
|
+
classes: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MainLayout } from './MainLayout.layout';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
classes: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LoadingBox } from './LoadingBox.component';
|
|
@@ -24,6 +24,8 @@ export declare const translations: {
|
|
|
24
24
|
'pending-share': string;
|
|
25
25
|
};
|
|
26
26
|
'import-external': {
|
|
27
|
+
'import-button': string;
|
|
28
|
+
'open-modal-button': string;
|
|
27
29
|
modal: {
|
|
28
30
|
title: string;
|
|
29
31
|
placeholder: string;
|
|
@@ -66,6 +68,15 @@ export declare const translations: {
|
|
|
66
68
|
'import-cloud-button': string;
|
|
67
69
|
'import-collection-button': string;
|
|
68
70
|
'import-url-label': string;
|
|
71
|
+
'max-size': string;
|
|
72
|
+
'max-size-2': string;
|
|
73
|
+
'file-too-big': string;
|
|
74
|
+
'file-too-big-filtered': string;
|
|
75
|
+
'duplicated-tooltip': string;
|
|
76
|
+
'drop-zone': {
|
|
77
|
+
helper: string;
|
|
78
|
+
helper2: string;
|
|
79
|
+
};
|
|
69
80
|
};
|
|
70
81
|
project: {
|
|
71
82
|
status: {
|