@manuscripts/style-guide 1.3.2-LEAN-2880-2 → 1.3.2-LEAN-2859-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/cjs/components/FileManager/{FileSectionItem/DragLayer.js → DragLayer.js} +12 -10
- package/dist/cjs/components/FileManager/FileActions.js +134 -0
- package/dist/cjs/components/FileManager/FileContainer.js +39 -0
- package/dist/cjs/components/FileManager/FileCreatedDate.js +25 -0
- package/dist/cjs/components/FileManager/FileManager.js +14 -125
- package/dist/cjs/components/FileManager/FileManagerProvider.js +2 -7
- package/dist/cjs/components/FileManager/FileName.js +27 -0
- package/dist/cjs/components/FileManager/FileSectionAlert.js +170 -0
- package/dist/cjs/components/FileManager/FileTypeIcon.js +22 -0
- package/dist/cjs/components/FileManager/{UploadFileArea.js → FileUploader.js} +19 -12
- package/dist/cjs/components/FileManager/InlineFilesSection.js +64 -123
- package/dist/cjs/components/FileManager/OtherFilesSection.js +101 -0
- package/dist/cjs/components/FileManager/SupplementsSection.js +118 -0
- package/dist/cjs/components/FileManager/{TooltipDiv.js → Tooltip.js} +8 -3
- package/dist/cjs/components/FileManager/util.js +52 -67
- package/dist/cjs/components/icons/corrupted-file-icon.js +27 -0
- package/dist/cjs/components/icons/document-icon-with-dot.js +1 -1
- package/dist/cjs/hooks/use-deep-compare.js +2 -2
- package/dist/cjs/hooks/use-files.js +29 -43
- package/dist/cjs/index.js +3 -4
- package/dist/cjs/lib/files.js +85 -0
- package/dist/es/components/FileManager/{FileSectionItem/DragLayer.js → DragLayer.js} +12 -10
- package/dist/es/components/FileManager/FileActions.js +104 -0
- package/dist/es/components/FileManager/FileContainer.js +33 -0
- package/dist/es/components/FileManager/FileCreatedDate.js +18 -0
- package/dist/es/components/FileManager/FileManager.js +16 -124
- package/dist/es/components/FileManager/FileManagerProvider.js +3 -8
- package/dist/es/components/FileManager/FileName.js +20 -0
- package/dist/es/components/FileManager/FileSectionAlert.js +163 -0
- package/dist/es/components/FileManager/FileTypeIcon.js +15 -0
- package/dist/es/components/FileManager/{UploadFileArea.js → FileUploader.js} +17 -10
- package/dist/es/components/FileManager/InlineFilesSection.js +65 -124
- package/dist/es/components/FileManager/OtherFilesSection.js +74 -0
- package/dist/es/components/FileManager/SupplementsSection.js +91 -0
- package/dist/es/components/FileManager/{TooltipDiv.js → Tooltip.js} +7 -2
- package/dist/es/components/FileManager/util.js +47 -65
- package/dist/es/components/icons/corrupted-file-icon.js +22 -0
- package/dist/es/components/icons/document-icon-with-dot.js +1 -1
- package/dist/es/hooks/use-deep-compare.js +2 -2
- package/dist/es/hooks/use-files.js +29 -40
- package/dist/es/index.js +2 -2
- package/dist/es/lib/files.js +79 -0
- package/dist/types/components/FileManager/FileActions.d.ts +19 -0
- package/dist/types/components/FileManager/FileContainer.d.ts +1 -0
- package/dist/types/components/FileManager/FileCreatedDate.d.ts +8 -0
- package/dist/types/components/FileManager/FileManager.d.ts +17 -8
- package/dist/types/components/FileManager/FileManagerProvider.d.ts +8 -18
- package/dist/types/components/FileManager/FileName.d.ts +6 -0
- package/dist/types/components/FileManager/FileSectionAlert.d.ts +13 -0
- package/dist/types/components/FileManager/{FileSectionItem/FileTypeIcon.d.ts → FileTypeIcon.d.ts} +2 -3
- package/dist/types/components/FileManager/FileUploader.d.ts +4 -0
- package/dist/types/components/FileManager/InlineFilesSection.d.ts +3 -19
- package/dist/types/components/FileManager/OtherFilesSection.d.ts +5 -0
- package/dist/types/components/FileManager/SupplementsSection.d.ts +5 -0
- package/dist/types/components/FileManager/Tooltip.d.ts +2 -0
- package/dist/types/components/FileManager/util.d.ts +8 -12
- package/dist/types/components/icons/corrupted-file-icon.d.ts +19 -0
- package/dist/types/hooks/use-files.d.ts +4 -6
- package/dist/types/index.d.ts +2 -2
- package/dist/types/lib/files.d.ts +24 -0
- package/package.json +2 -2
- package/dist/cjs/components/FileManager/ConfirmationPopUp.js +0 -90
- package/dist/cjs/components/FileManager/DragItemArea.js +0 -28
- package/dist/cjs/components/FileManager/FileSectionItem/DraggableFileSectionItem.js +0 -76
- package/dist/cjs/components/FileManager/FileSectionItem/FileInfo.js +0 -115
- package/dist/cjs/components/FileManager/FileSectionItem/FileSectionItem.js +0 -95
- package/dist/cjs/components/FileManager/FileSectionItem/FileSectionUploadItem.js +0 -37
- package/dist/cjs/components/FileManager/FileSectionItem/FileTypeIcon.js +0 -53
- package/dist/cjs/components/FileManager/FileSectionItem/ItemActions.js +0 -92
- package/dist/cjs/components/FileManager/FileSectionItem/ProgressBarUploadItem.js +0 -120
- package/dist/cjs/components/FileManager/FileSectionState.js +0 -83
- package/dist/cjs/components/FileManager/FilesSection.js +0 -61
- package/dist/cjs/components/FileManager/ItemsAction.js +0 -48
- package/dist/cjs/lib/inlineFiles.js +0 -92
- package/dist/es/components/FileManager/ConfirmationPopUp.js +0 -62
- package/dist/es/components/FileManager/DragItemArea.js +0 -21
- package/dist/es/components/FileManager/FileSectionItem/DraggableFileSectionItem.js +0 -46
- package/dist/es/components/FileManager/FileSectionItem/FileInfo.js +0 -85
- package/dist/es/components/FileManager/FileSectionItem/FileSectionItem.js +0 -88
- package/dist/es/components/FileManager/FileSectionItem/FileSectionUploadItem.js +0 -30
- package/dist/es/components/FileManager/FileSectionItem/FileTypeIcon.js +0 -46
- package/dist/es/components/FileManager/FileSectionItem/ItemActions.js +0 -65
- package/dist/es/components/FileManager/FileSectionItem/ProgressBarUploadItem.js +0 -113
- package/dist/es/components/FileManager/FileSectionState.js +0 -78
- package/dist/es/components/FileManager/FilesSection.js +0 -34
- package/dist/es/components/FileManager/ItemsAction.js +0 -42
- package/dist/es/lib/inlineFiles.js +0 -90
- package/dist/types/components/FileManager/ConfirmationPopUp.d.ts +0 -12
- package/dist/types/components/FileManager/DragItemArea.d.ts +0 -4
- package/dist/types/components/FileManager/FileSectionItem/DraggableFileSectionItem.d.ts +0 -3
- package/dist/types/components/FileManager/FileSectionItem/FileInfo.d.ts +0 -19
- package/dist/types/components/FileManager/FileSectionItem/FileSectionItem.d.ts +0 -38
- package/dist/types/components/FileManager/FileSectionItem/FileSectionUploadItem.d.ts +0 -12
- package/dist/types/components/FileManager/FileSectionItem/ItemActions.d.ts +0 -21
- package/dist/types/components/FileManager/FileSectionItem/ProgressBarUploadItem.d.ts +0 -4
- package/dist/types/components/FileManager/FileSectionState.d.ts +0 -38
- package/dist/types/components/FileManager/FilesSection.d.ts +0 -12
- package/dist/types/components/FileManager/ItemsAction.d.ts +0 -4
- package/dist/types/components/FileManager/TooltipDiv.d.ts +0 -1
- package/dist/types/components/FileManager/UploadFileArea.d.ts +0 -9
- package/dist/types/lib/inlineFiles.d.ts +0 -11
- /package/dist/types/components/FileManager/{FileSectionItem/DragLayer.d.ts → DragLayer.d.ts} +0 -0
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ObjectTypes, } from '@manuscripts/json-schema';
|
|
2
|
-
import { hasObjectType } from '@manuscripts/transform';
|
|
3
|
-
import { FileType } from '../components/FileManager/util';
|
|
4
|
-
const getFigureData = (element, modelMap, attachmentsMap) => {
|
|
5
|
-
const attachments = [];
|
|
6
|
-
element.containedObjectIDs.map((id) => {
|
|
7
|
-
const object = modelMap.get(id);
|
|
8
|
-
if (object && object.objectType === ObjectTypes.Figure) {
|
|
9
|
-
const figure = object;
|
|
10
|
-
if (figure.src) {
|
|
11
|
-
const attachment = attachmentsMap.get(figure.src.replace('attachment:', ''));
|
|
12
|
-
if (attachment) {
|
|
13
|
-
attachment.modelId = id;
|
|
14
|
-
attachments.push(attachment);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
return {
|
|
20
|
-
id: element._id,
|
|
21
|
-
attachments,
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default (modelMap, attachments) => {
|
|
25
|
-
const files = [];
|
|
26
|
-
const attachmentsMap = new Map(attachments.map((attachment) => [attachment.id, attachment]));
|
|
27
|
-
const { graphicalAbstractFigureId, figureElement } = getAuxiliaryObjects(modelMap);
|
|
28
|
-
if (graphicalAbstractFigureId) {
|
|
29
|
-
const element = modelMap.get(graphicalAbstractFigureId);
|
|
30
|
-
files.unshift(Object.assign(Object.assign({}, getFigureData(element, modelMap, attachmentsMap)), { label: `Graphical Abstract`, type: FileType.GraphicalAbstract }));
|
|
31
|
-
}
|
|
32
|
-
figureElement.map((id, index) => {
|
|
33
|
-
const element = modelMap.get(id);
|
|
34
|
-
files.push(Object.assign(Object.assign({}, getFigureData(element, modelMap, attachmentsMap)), { label: `Figure ${index + 1}`, type: FileType.Figure }));
|
|
35
|
-
});
|
|
36
|
-
return files;
|
|
37
|
-
};
|
|
38
|
-
const getAuxiliaryObjects = (modelMap) => {
|
|
39
|
-
var _a, _b;
|
|
40
|
-
let graphicalAbstractFigureId, figureElementIds = [];
|
|
41
|
-
const tableElementIds = [], orderObjects = {};
|
|
42
|
-
for (const model of modelMap.values()) {
|
|
43
|
-
switch (model.objectType) {
|
|
44
|
-
case ObjectTypes.Section: {
|
|
45
|
-
const section = model;
|
|
46
|
-
if (section.category === 'MPSectionCategory:abstract-graphical') {
|
|
47
|
-
graphicalAbstractFigureId = (_a = section.elementIDs) === null || _a === void 0 ? void 0 : _a.find((id) => {
|
|
48
|
-
const obj = modelMap.get(id);
|
|
49
|
-
return obj && hasObjectType(ObjectTypes.FigureElement)(obj);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
(_b = section.elementIDs) === null || _b === void 0 ? void 0 : _b.map((elementId) => {
|
|
54
|
-
const element = modelMap.get(elementId);
|
|
55
|
-
if (!element) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
switch (element.objectType) {
|
|
59
|
-
case ObjectTypes.FigureElement:
|
|
60
|
-
figureElementIds.push(element._id);
|
|
61
|
-
break;
|
|
62
|
-
case ObjectTypes.TableElement:
|
|
63
|
-
tableElementIds.push(element._id);
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
case ObjectTypes.ElementsOrder: {
|
|
71
|
-
const elementsOrder = model;
|
|
72
|
-
orderObjects[elementsOrder.elementType] = elementsOrder;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if (graphicalAbstractFigureId) {
|
|
77
|
-
figureElementIds = figureElementIds.filter((id) => id != graphicalAbstractFigureId);
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
graphicalAbstractFigureId,
|
|
81
|
-
figureElement: sortAuxiliaryObject(figureElementIds, orderObjects[ObjectTypes.FigureElement]),
|
|
82
|
-
tableElement: sortAuxiliaryObject(tableElementIds, orderObjects[ObjectTypes.TableElement]),
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
const sortAuxiliaryObject = (auxiliaryObjectIds, orderObject) => {
|
|
86
|
-
if (!orderObject) {
|
|
87
|
-
return auxiliaryObjectIds;
|
|
88
|
-
}
|
|
89
|
-
return auxiliaryObjectIds.sort((a, b) => orderObject.elements.indexOf(a) - orderObject.elements.indexOf(b));
|
|
90
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch } from 'react';
|
|
2
|
-
import { Action } from './FileSectionState';
|
|
3
|
-
export declare const ConfirmationPopUp: React.FC<{
|
|
4
|
-
popupHeader: string;
|
|
5
|
-
popUpMessage: string;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
handleClose: () => void;
|
|
8
|
-
handleMove: () => void;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const MoveFilePopup: React.FC<{
|
|
11
|
-
dispatch: Dispatch<Action>;
|
|
12
|
-
}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch } from 'react';
|
|
2
|
-
import { Action } from '../FileSectionState';
|
|
3
|
-
export declare const FileInfo: React.FC<{
|
|
4
|
-
showAttachmentName: boolean;
|
|
5
|
-
title: string;
|
|
6
|
-
fileAttachmentName: string;
|
|
7
|
-
fileExtension: string;
|
|
8
|
-
attachmentId: string;
|
|
9
|
-
fileCreatedDate: Date;
|
|
10
|
-
dispatch?: Dispatch<Action>;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const FileDateContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export declare const FileInfoContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
-
export declare const FileNameTitleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
-
export declare const FileTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare const FileNameContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const FileName: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
-
export declare const FileDate: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
-
export declare const FileDescription: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, Dispatch } from 'react';
|
|
2
|
-
import { DragElementWrapper, DragSourceOptions } from 'react-dnd';
|
|
3
|
-
import { Maybe } from '../../SubmissionInspector/types';
|
|
4
|
-
import { Replace } from '../FileManager';
|
|
5
|
-
import { Action } from '../FileSectionState';
|
|
6
|
-
import { FileSectionType } from '../util';
|
|
7
|
-
export type FileAttachment = {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
type: FileAttachmentType;
|
|
11
|
-
link: string;
|
|
12
|
-
createdDate: Date;
|
|
13
|
-
};
|
|
14
|
-
export type FileAttachmentType = {
|
|
15
|
-
id: string;
|
|
16
|
-
label?: Maybe<string> | undefined;
|
|
17
|
-
};
|
|
18
|
-
export interface FileSectionItemProps {
|
|
19
|
-
externalFile: FileAttachment;
|
|
20
|
-
fileSection: FileSectionType;
|
|
21
|
-
title: string;
|
|
22
|
-
showAttachmentName?: boolean;
|
|
23
|
-
showActions?: boolean;
|
|
24
|
-
showReplaceAction?: boolean;
|
|
25
|
-
handleDownload?: (url: string) => void;
|
|
26
|
-
handleReplace?: Replace;
|
|
27
|
-
handleSupplementReplace?: (attachment: FileAttachment, oldAttachmentId: string) => void;
|
|
28
|
-
dispatch?: Dispatch<Action>;
|
|
29
|
-
dragRef?: DragElementWrapper<DragSourceOptions>;
|
|
30
|
-
className?: string;
|
|
31
|
-
style?: CSSProperties;
|
|
32
|
-
onClose?: () => void;
|
|
33
|
-
isEditor?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare const FileSectionItem: React.FC<FileSectionItemProps>;
|
|
36
|
-
export declare const ActionsIcon: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
37
|
-
export declare const Item: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
38
|
-
export declare const ItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { DragElementWrapper, DragSourceOptions } from 'react-dnd';
|
|
3
|
-
export interface FileSectionItemProps {
|
|
4
|
-
fileName: string;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
dragRef?: DragElementWrapper<DragSourceOptions>;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
export declare const FileSectionUploadItem: React.FC<FileSectionItemProps>;
|
|
11
|
-
export declare const UploadItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
-
export declare const ProgressBar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch } from 'react';
|
|
2
|
-
import { Replace } from '../FileManager';
|
|
3
|
-
import { Action } from '../FileSectionState';
|
|
4
|
-
import { FileSectionType } from '../util';
|
|
5
|
-
import { FileAttachment } from './FileSectionItem';
|
|
6
|
-
export declare const ItemActions: React.FC<{
|
|
7
|
-
fileSection: FileSectionType;
|
|
8
|
-
isMainManuscript?: boolean;
|
|
9
|
-
downloadAttachmentHandler: (url: string) => void;
|
|
10
|
-
replaceAttachmentHandler: Replace;
|
|
11
|
-
detachAttachmnetHandler?: () => void;
|
|
12
|
-
handleUpdateInline?: (attachment: FileAttachment) => void;
|
|
13
|
-
handleSupplementReplace?: (attachment: FileAttachment, oldAttachmentId: string) => void;
|
|
14
|
-
attachmentId: string;
|
|
15
|
-
fileName: string;
|
|
16
|
-
publicUrl: string | undefined;
|
|
17
|
-
hideActionList: (e?: React.MouseEvent) => void;
|
|
18
|
-
dispatch?: Dispatch<Action>;
|
|
19
|
-
dropDownClassName?: string;
|
|
20
|
-
showReplaceAction?: boolean;
|
|
21
|
-
}>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const ProgressBarUploadItem: React.FC;
|
|
3
|
-
export declare const LinearProgress: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const Bar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { FileSectionType } from './util';
|
|
2
|
-
export declare const getInitialState: () => State;
|
|
3
|
-
export interface State {
|
|
4
|
-
uploadedFile: File | undefined;
|
|
5
|
-
isUploadFile: boolean;
|
|
6
|
-
moveToOtherState: {
|
|
7
|
-
typeId: string;
|
|
8
|
-
name: string;
|
|
9
|
-
} | undefined;
|
|
10
|
-
fileUploadedSuccessfullySection: FileSectionType | undefined;
|
|
11
|
-
successMessage: string;
|
|
12
|
-
isShowSuccessMessage: boolean;
|
|
13
|
-
currentSection: FileSectionType | undefined;
|
|
14
|
-
}
|
|
15
|
-
declare enum ActionTypes {
|
|
16
|
-
UPLOAD_FILE = "UploadFile",
|
|
17
|
-
MOVE_FILE = "moveFile",
|
|
18
|
-
HANDLE_CANCEL_UPLOAD = "handleCancel",
|
|
19
|
-
HANDLE_UPLOAD_ACTION = "handleUpload",
|
|
20
|
-
HANDLE_FINISH_UPLOAD = "handleFinishUpload",
|
|
21
|
-
HANDLE_SUCCESS_MESSAGE = "handleSuccessMessage",
|
|
22
|
-
HANDLE_SUCCESS_MESSAGE_DISMISS = "handleSuccessMessageDismiss"
|
|
23
|
-
}
|
|
24
|
-
export declare const reducer: (state: State, action: Action) => State;
|
|
25
|
-
export interface Action {
|
|
26
|
-
type: ActionTypes;
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
29
|
-
export declare const actions: {
|
|
30
|
-
UPLOAD_FILE: (uploadFile: File, sectionType: FileSectionType) => Action;
|
|
31
|
-
HANDLE_UPLOAD_ACTION: () => Action;
|
|
32
|
-
HANDLE_CANCEL_UPLOAD: () => Action;
|
|
33
|
-
MOVE_FILE: (attachmentId: string, typeId: string, name: string, successMoveMessage: string) => Action;
|
|
34
|
-
HANDLE_FINISH_UPLOAD: () => Action;
|
|
35
|
-
HANDLE_SUCCESS_MESSAGE: (successMessage: string, sectionType?: FileSectionType) => Action;
|
|
36
|
-
HANDLE_SUCCESS_MESSAGE_DISMISS: () => Action;
|
|
37
|
-
};
|
|
38
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch } from 'react';
|
|
2
|
-
import { Upload } from './FileManager';
|
|
3
|
-
import { Action, State } from './FileSectionState';
|
|
4
|
-
import { FileSectionType } from './util';
|
|
5
|
-
export declare const FilesSection: React.FC<{
|
|
6
|
-
enableDragAndDrop: boolean;
|
|
7
|
-
handleUpload: Upload;
|
|
8
|
-
fileSection: FileSectionType;
|
|
9
|
-
filesItem: JSX.Element[];
|
|
10
|
-
dispatch: Dispatch<Action>;
|
|
11
|
-
state: State;
|
|
12
|
-
}>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const ActionsBox: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const ActionsItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const ActionsLabel: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const ActionsSeparator: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TooltipDiv: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch } from 'react';
|
|
2
|
-
import { Upload } from './FileManager';
|
|
3
|
-
import { Action } from './FileSectionState';
|
|
4
|
-
import { FileSectionType } from './util';
|
|
5
|
-
export declare const UploadFileArea: React.FC<{
|
|
6
|
-
handleUploadFile: Upload;
|
|
7
|
-
fileSection: FileSectionType;
|
|
8
|
-
dispatch: Dispatch<Action>;
|
|
9
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Model } from '@manuscripts/json-schema';
|
|
2
|
-
import { FileAttachment } from '../components/FileManager/FileSectionItem/FileSectionItem';
|
|
3
|
-
import { FileType } from '../components/FileManager/util';
|
|
4
|
-
export type InlineFile = {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
type: FileType;
|
|
8
|
-
attachments?: FileAttachment[];
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (modelMap: Map<string, Model>, attachments: FileAttachment[]) => InlineFile[];
|
|
11
|
-
export default _default;
|
/package/dist/types/components/FileManager/{FileSectionItem/DragLayer.d.ts → DragLayer.d.ts}
RENAMED
|
File without changes
|