@manuscripts/style-guide 0.31.14 → 0.31.17
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/cjs/components/FileManager/FileManager.js +40 -32
- package/dist/cjs/components/FileManager/FileSectionItem/DesignationActions.js +3 -3
- package/dist/cjs/components/FileManager/FileSectionItem/DesignationActionsList.js +3 -3
- package/dist/cjs/components/FileManager/FileSectionItem/FileInfo.js +2 -2
- package/dist/cjs/components/FileManager/FileSectionItem/FileSectionItem.js +5 -5
- package/dist/cjs/components/FileManager/FileSectionItem/FileSectionUploadItem.js +2 -2
- package/dist/cjs/components/FileManager/FileSectionItem/ItemActions.js +11 -11
- package/dist/cjs/components/FileManager/FileSectionState.js +5 -6
- package/dist/cjs/components/FileManager/FilesSection.js +11 -4
- package/dist/cjs/components/FileManager/InlineFilesSection.js +6 -6
- package/dist/cjs/components/FileManager/UploadFileArea.js +4 -10
- package/dist/cjs/components/SubmissionInspector/BaseInformation.js +11 -7
- package/dist/es/components/FileManager/FileManager.js +40 -32
- package/dist/es/components/FileManager/FileSectionItem/DesignationActions.js +3 -3
- package/dist/es/components/FileManager/FileSectionItem/DesignationActionsList.js +3 -3
- package/dist/es/components/FileManager/FileSectionItem/FileInfo.js +2 -2
- package/dist/es/components/FileManager/FileSectionItem/FileSectionItem.js +5 -5
- package/dist/es/components/FileManager/FileSectionItem/FileSectionUploadItem.js +2 -2
- package/dist/es/components/FileManager/FileSectionItem/ItemActions.js +11 -11
- package/dist/es/components/FileManager/FileSectionState.js +5 -6
- package/dist/es/components/FileManager/FilesSection.js +11 -4
- package/dist/es/components/FileManager/InlineFilesSection.js +6 -6
- package/dist/es/components/FileManager/UploadFileArea.js +4 -10
- package/dist/es/components/SubmissionInspector/BaseInformation.js +11 -7
- package/dist/types/components/FileManager/FileManager.d.ts +10 -7
- package/dist/types/components/FileManager/FileSectionItem/DesignationActions.d.ts +2 -2
- package/dist/types/components/FileManager/FileSectionItem/DesignationActionsList.d.ts +2 -2
- package/dist/types/components/FileManager/FileSectionItem/FileInfo.d.ts +2 -2
- package/dist/types/components/FileManager/FileSectionItem/FileSectionItem.d.ts +4 -7
- package/dist/types/components/FileManager/FileSectionItem/FileSectionUploadItem.d.ts +0 -1
- package/dist/types/components/FileManager/FileSectionItem/ItemActions.d.ts +3 -6
- package/dist/types/components/FileManager/FileSectionState.d.ts +2 -3
- package/dist/types/components/FileManager/FilesSection.d.ts +2 -2
- package/dist/types/components/FileManager/InlineFilesSection.d.ts +2 -6
- package/dist/types/components/FileManager/UploadFileArea.d.ts +2 -2
- package/dist/types/components/SubmissionInspector/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import React, { Dispatch } from 'react';
|
|
2
2
|
import { Maybe } from '../../SubmissionInspector/types';
|
|
3
|
+
import { Replace } from '../FileManager';
|
|
3
4
|
import { Action } from '../FileSectionState';
|
|
4
5
|
import { SubmissionAttachment } from './FileSectionItem';
|
|
5
6
|
export declare const ItemActions: React.FC<{
|
|
6
7
|
downloadAttachmentHandler: (url: string) => void;
|
|
7
|
-
replaceAttachmentHandler:
|
|
8
|
-
data: {
|
|
9
|
-
uploadAttachment: SubmissionAttachment;
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
8
|
+
replaceAttachmentHandler: Replace;
|
|
12
9
|
handleUpdateInline?: (attachment: SubmissionAttachment) => void;
|
|
13
|
-
submissionId: string;
|
|
14
10
|
attachmentId: string;
|
|
15
11
|
fileName: string;
|
|
16
12
|
designation?: Maybe<string> | undefined;
|
|
@@ -18,4 +14,5 @@ export declare const ItemActions: React.FC<{
|
|
|
18
14
|
hideActionList: (e?: React.MouseEvent) => void;
|
|
19
15
|
dispatch?: Dispatch<Action>;
|
|
20
16
|
dropDownClassName?: string;
|
|
17
|
+
showReplaceAction?: boolean;
|
|
21
18
|
}>;
|
|
@@ -4,7 +4,6 @@ export interface State {
|
|
|
4
4
|
uploadedFile: File | undefined;
|
|
5
5
|
isUploadFile: boolean;
|
|
6
6
|
moveToOtherState: {
|
|
7
|
-
submissionId: string;
|
|
8
7
|
typeId: string;
|
|
9
8
|
name: string;
|
|
10
9
|
} | undefined;
|
|
@@ -32,8 +31,8 @@ export declare const actions: {
|
|
|
32
31
|
HANDLE_UPLOAD_ACTION: () => Action;
|
|
33
32
|
HANDLE_CANCEL_UPLOAD: () => Action;
|
|
34
33
|
SELECT_DESIGNATION: (designation: Designation) => Action;
|
|
35
|
-
MOVE_FILE: (
|
|
34
|
+
MOVE_FILE: (attachmentId: string, typeId: string, name: string, successMoveMessage: string) => Action;
|
|
36
35
|
HANDLE_FINISH_UPLOAD: () => Action;
|
|
37
|
-
HANDLE_SUCCESS_MESSAGE: () => Action;
|
|
36
|
+
HANDLE_SUCCESS_MESSAGE: (successMessage: string) => Action;
|
|
38
37
|
};
|
|
39
38
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { Dispatch } from 'react';
|
|
2
|
+
import { Upload } from './FileManager';
|
|
2
3
|
import { Action, State } from './FileSectionState';
|
|
3
4
|
import { FileSectionType } from './util';
|
|
4
5
|
export declare const FilesSection: React.FC<{
|
|
5
|
-
submissionId: string;
|
|
6
6
|
enableDragAndDrop: boolean;
|
|
7
|
-
handleUpload:
|
|
7
|
+
handleUpload: Upload;
|
|
8
8
|
fileSection: FileSectionType;
|
|
9
9
|
filesItem: JSX.Element[];
|
|
10
10
|
dispatch: Dispatch<Action>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { Dispatch } from 'react';
|
|
2
|
+
import { Replace } from './FileManager';
|
|
2
3
|
import { SubmissionAttachment } from './FileSectionItem/FileSectionItem';
|
|
3
4
|
import { Action } from './FileSectionState';
|
|
4
5
|
import { FileType } from './util';
|
|
@@ -8,7 +9,6 @@ export interface ExternalFileRef {
|
|
|
8
9
|
ref?: SubmissionAttachment;
|
|
9
10
|
}
|
|
10
11
|
export declare const InlineFilesSection: React.FC<{
|
|
11
|
-
submissionId: string;
|
|
12
12
|
inlineFiles: {
|
|
13
13
|
id: string;
|
|
14
14
|
label: string;
|
|
@@ -16,11 +16,7 @@ export declare const InlineFilesSection: React.FC<{
|
|
|
16
16
|
caption?: string;
|
|
17
17
|
attachments?: SubmissionAttachment[];
|
|
18
18
|
}[];
|
|
19
|
-
handleReplace:
|
|
20
|
-
data: {
|
|
21
|
-
uploadAttachment: SubmissionAttachment;
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
19
|
+
handleReplace: Replace;
|
|
24
20
|
handleDownload: (url: string) => void;
|
|
25
21
|
handleUpdateInline?: (modelId: string, attachment: SubmissionAttachment) => void;
|
|
26
22
|
isEditor: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { Dispatch } from 'react';
|
|
2
|
+
import { Upload } from './FileManager';
|
|
2
3
|
import { Action } from './FileSectionState';
|
|
3
4
|
import { FileSectionType } from './util';
|
|
4
5
|
export declare const UploadFileArea: React.FC<{
|
|
5
|
-
handleUploadFile:
|
|
6
|
+
handleUploadFile: Upload;
|
|
6
7
|
fileSection: FileSectionType;
|
|
7
|
-
submissionId: string;
|
|
8
8
|
dispatch: Dispatch<Action>;
|
|
9
9
|
}>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/style-guide",
|
|
3
3
|
"description": "Shared components for Manuscripts applications",
|
|
4
|
-
"version": "0.31.
|
|
4
|
+
"version": "0.31.17",
|
|
5
5
|
"repository": "gitlab:atypon-opensource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|