@manuscripts/style-guide 1.7.11 → 1.8.1
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/DragLayer.js → DragLayer.js} +26 -50
- package/dist/cjs/components/FileManager/FileManager.js +1 -1
- package/dist/cjs/components/icons/index.js +3 -1
- package/dist/cjs/index.js +2 -6
- package/dist/cjs/lib/capabilities.js +1 -1
- package/dist/es/components/{FileManager/DragLayer.js → DragLayer.js} +26 -27
- package/dist/es/components/FileManager/FileManager.js +1 -1
- package/dist/es/components/icons/index.js +1 -0
- package/dist/es/index.js +2 -6
- package/dist/es/lib/capabilities.js +1 -1
- package/dist/types/components/AlertMessage.d.ts +1 -1
- package/dist/types/components/Button.d.ts +9 -9
- package/dist/types/components/EditorHeader/EditorHeader.d.ts +1 -1
- package/dist/types/components/InspectorSection.d.ts +1 -1
- package/dist/types/components/NavDropdown.d.ts +1 -1
- package/dist/types/components/StyledModal.d.ts +1 -1
- package/dist/types/components/icons/index.d.ts +1 -0
- package/dist/types/index.d.ts +2 -6
- package/dist/types/lib/capabilities.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/AffiliationsEditor/AffiliationsEditor.js +0 -62
- package/dist/cjs/components/AffiliationsEditor/AffiliationsEditorItem.js +0 -176
- package/dist/cjs/components/AffiliationsEditor/AffiliationsEditorProfile.js +0 -62
- package/dist/cjs/components/AffiliationsEditor/AffiliationsEditorView.js +0 -80
- package/dist/cjs/components/AffiliationsEditor/index.js +0 -25
- package/dist/cjs/components/AffiliationsEditor/styles.js +0 -56
- package/dist/cjs/components/AuthorForm/AuthorForm.js +0 -99
- package/dist/cjs/components/AuthorForm/AuthorFormComponents.js +0 -63
- package/dist/cjs/components/AuthorForm/ContributorRolesSelect.js +0 -100
- package/dist/cjs/components/AuthorForm/RemoveAuthorButton.js +0 -45
- package/dist/cjs/components/AuthorForm/index.js +0 -32
- package/dist/cjs/components/AuthorName.js +0 -52
- package/dist/cjs/components/AuthorsDND/AuthorItemComponents.js +0 -22
- package/dist/cjs/components/AuthorsDND/AuthorsDND.js +0 -68
- package/dist/cjs/components/AuthorsDND/DraggableAuthorItem.js +0 -197
- package/dist/cjs/components/AuthorsDND/index.js +0 -23
- package/dist/cjs/lib/authors.js +0 -110
- package/dist/cjs/lib/formatAddress.js +0 -31
- package/dist/cjs/lib/name.js +0 -26
- package/dist/cjs/types.js +0 -17
- package/dist/es/components/AffiliationsEditor/AffiliationsEditor.js +0 -34
- package/dist/es/components/AffiliationsEditor/AffiliationsEditorItem.js +0 -146
- package/dist/es/components/AffiliationsEditor/AffiliationsEditorProfile.js +0 -34
- package/dist/es/components/AffiliationsEditor/AffiliationsEditorView.js +0 -52
- package/dist/es/components/AffiliationsEditor/index.js +0 -17
- package/dist/es/components/AffiliationsEditor/styles.js +0 -49
- package/dist/es/components/AuthorForm/AuthorForm.js +0 -92
- package/dist/es/components/AuthorForm/AuthorFormComponents.js +0 -57
- package/dist/es/components/AuthorForm/ContributorRolesSelect.js +0 -70
- package/dist/es/components/AuthorForm/RemoveAuthorButton.js +0 -40
- package/dist/es/components/AuthorForm/index.js +0 -16
- package/dist/es/components/AuthorName.js +0 -23
- package/dist/es/components/AuthorsDND/AuthorItemComponents.js +0 -19
- package/dist/es/components/AuthorsDND/AuthorsDND.js +0 -40
- package/dist/es/components/AuthorsDND/DraggableAuthorItem.js +0 -192
- package/dist/es/components/AuthorsDND/index.js +0 -16
- package/dist/es/lib/authors.js +0 -98
- package/dist/es/lib/formatAddress.js +0 -29
- package/dist/es/lib/name.js +0 -22
- package/dist/es/types.js +0 -16
- package/dist/types/components/AffiliationsEditor/AffiliationsEditor.d.ts +0 -31
- package/dist/types/components/AffiliationsEditor/AffiliationsEditorItem.d.ts +0 -26
- package/dist/types/components/AffiliationsEditor/AffiliationsEditorProfile.d.ts +0 -30
- package/dist/types/components/AffiliationsEditor/AffiliationsEditorView.d.ts +0 -34
- package/dist/types/components/AffiliationsEditor/index.d.ts +0 -17
- package/dist/types/components/AffiliationsEditor/styles.d.ts +0 -23
- package/dist/types/components/AuthorForm/AuthorForm.d.ts +0 -29
- package/dist/types/components/AuthorForm/AuthorFormComponents.d.ts +0 -31
- package/dist/types/components/AuthorForm/ContributorRolesSelect.d.ts +0 -23
- package/dist/types/components/AuthorForm/RemoveAuthorButton.d.ts +0 -27
- package/dist/types/components/AuthorForm/index.d.ts +0 -16
- package/dist/types/components/AuthorName.d.ts +0 -22
- package/dist/types/components/AuthorsDND/AuthorItemComponents.d.ts +0 -24
- package/dist/types/components/AuthorsDND/AuthorsDND.d.ts +0 -28
- package/dist/types/components/AuthorsDND/DraggableAuthorItem.d.ts +0 -50
- package/dist/types/components/AuthorsDND/index.d.ts +0 -16
- package/dist/types/lib/authors.d.ts +0 -30
- package/dist/types/lib/formatAddress.d.ts +0 -18
- package/dist/types/lib/name.d.ts +0 -17
- package/dist/types/types.d.ts +0 -80
- /package/dist/types/components/{FileManager/DragLayer.d.ts → DragLayer.d.ts} +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import React from 'react';
|
|
17
|
-
import { IndicatorsContainerProps } from 'react-select';
|
|
18
|
-
import { AffiliationOption } from '../../types';
|
|
19
|
-
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
-
export declare const Field: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
-
export declare const List: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
-
export declare const AddAffiliationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
23
|
-
export declare const AddAffiliationIndicator: React.FC<IndicatorsContainerProps<AffiliationOption, false>>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Contributor, ContributorRole } from '@manuscripts/json-schema';
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import { AuthorValues } from '../../types';
|
|
19
|
-
import { AuthorFormComponentOverrides } from './AuthorFormComponents';
|
|
20
|
-
export declare const AuthorForm: React.FunctionComponent<{
|
|
21
|
-
author: Contributor;
|
|
22
|
-
isRemoveAuthorOpen: boolean;
|
|
23
|
-
removeAuthor: (data: Contributor) => void;
|
|
24
|
-
handleSave: (values: AuthorValues) => Promise<void>;
|
|
25
|
-
handleRemoveAuthor: () => void;
|
|
26
|
-
components?: AuthorFormComponentOverrides;
|
|
27
|
-
contributorRoles?: ContributorRole[];
|
|
28
|
-
createContributorRole?: (name: string) => Promise<ContributorRole>;
|
|
29
|
-
}>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { DefaultTheme, StyledComponent } from 'styled-components';
|
|
17
|
-
export declare const Fields: StyledComponent<"div", DefaultTheme, {}, never>;
|
|
18
|
-
export declare const Label: StyledComponent<"label", DefaultTheme, {}, never>;
|
|
19
|
-
export declare const LabelText: StyledComponent<"div", DefaultTheme, {}, never>;
|
|
20
|
-
export declare const Fieldset: StyledComponent<"fieldset", DefaultTheme, {}, never>;
|
|
21
|
-
export declare const Legend: StyledComponent<"legend", DefaultTheme, {}, never>;
|
|
22
|
-
export declare const Container: StyledComponent<"div", DefaultTheme, {}, never>;
|
|
23
|
-
export interface AuthorFormComponents {
|
|
24
|
-
Legend: StyledComponent<'legend', DefaultTheme>;
|
|
25
|
-
CheckboxLabel: StyledComponent<'label', DefaultTheme>;
|
|
26
|
-
TextField: StyledComponent<'input', DefaultTheme>;
|
|
27
|
-
}
|
|
28
|
-
export type AuthorFormComponentOverrides = {
|
|
29
|
-
[K in keyof AuthorFormComponents]?: AuthorFormComponents[K];
|
|
30
|
-
};
|
|
31
|
-
export declare const defaultAuthorFormComponents: AuthorFormComponents;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2020 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { ContributorRole } from '@manuscripts/json-schema';
|
|
17
|
-
import React from 'react';
|
|
18
|
-
export declare const ContributorRolesSelect: React.FC<{
|
|
19
|
-
contributorRoles: ContributorRole[];
|
|
20
|
-
createContributorRole: (name: string) => Promise<ContributorRole>;
|
|
21
|
-
value: string[];
|
|
22
|
-
setFieldValue: (value: string[]) => void;
|
|
23
|
-
}>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Contributor } from '@manuscripts/json-schema';
|
|
17
|
-
import React from 'react';
|
|
18
|
-
interface Props {
|
|
19
|
-
author: Contributor;
|
|
20
|
-
isOpen: boolean;
|
|
21
|
-
removeAuthor: () => void;
|
|
22
|
-
handleOpen: () => void;
|
|
23
|
-
}
|
|
24
|
-
declare class RemoveAuthorButton extends React.Component<Props> {
|
|
25
|
-
render(): React.JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export default RemoveAuthorButton;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export * from './AuthorForm';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { BibliographicName } from '@manuscripts/json-schema';
|
|
17
|
-
import React from 'react';
|
|
18
|
-
export interface AuthorNameProps {
|
|
19
|
-
name: BibliographicName;
|
|
20
|
-
email?: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const AuthorName: React.FC<AuthorNameProps>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import React from 'react';
|
|
17
|
-
import { AuthorNameProps } from '../AuthorName';
|
|
18
|
-
export interface AuthorItemComponents {
|
|
19
|
-
AuthorName: React.FunctionComponent<AuthorNameProps>;
|
|
20
|
-
}
|
|
21
|
-
export type AuthorItemComponentOverrides = {
|
|
22
|
-
[K in keyof AuthorItemComponents]?: AuthorItemComponents[K];
|
|
23
|
-
};
|
|
24
|
-
export declare const defaultAuthorItemComponents: AuthorItemComponents;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Contributor } from '@manuscripts/json-schema';
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import { AuthorItemComponentOverrides } from './AuthorItemComponents';
|
|
19
|
-
interface Props {
|
|
20
|
-
authors: Contributor[];
|
|
21
|
-
selectAuthor: (item: Contributor) => void;
|
|
22
|
-
selectedAuthor: Contributor | null;
|
|
23
|
-
handleDrop: (oldIndex: number, newIndex: number) => void;
|
|
24
|
-
getSidebarItemDecorator?: (authorID: string) => JSX.Element | null;
|
|
25
|
-
components?: AuthorItemComponentOverrides;
|
|
26
|
-
}
|
|
27
|
-
declare const AuthorsDND: React.FunctionComponent<Props>;
|
|
28
|
-
export default AuthorsDND;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Contributor } from '@manuscripts/json-schema';
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import { DefaultTheme } from 'styled-components';
|
|
19
|
-
import { AuthorItem, ConnectedDragSourceProps, ConnectedDropTargetProps, DropSide } from '../../types';
|
|
20
|
-
import { AuthorItemComponentOverrides } from './AuthorItemComponents';
|
|
21
|
-
type ConnectedProps = ConnectedDragSourceProps & ConnectedDropTargetProps;
|
|
22
|
-
interface Props {
|
|
23
|
-
authorItem: AuthorItem;
|
|
24
|
-
onDrop: (oldIndex: number, newIndex: number) => void;
|
|
25
|
-
author: Contributor;
|
|
26
|
-
authors: Contributor[];
|
|
27
|
-
user: Partial<UserProfileWithAvatar>;
|
|
28
|
-
selectedAuthor: Contributor | null;
|
|
29
|
-
selectAuthor: (item: Contributor) => void;
|
|
30
|
-
sidebarItemDecorator?: JSX.Element | null;
|
|
31
|
-
theme: DefaultTheme;
|
|
32
|
-
components?: AuthorItemComponentOverrides;
|
|
33
|
-
}
|
|
34
|
-
interface State {
|
|
35
|
-
dragPosition: DropSide;
|
|
36
|
-
}
|
|
37
|
-
interface UserProfileWithAvatar {
|
|
38
|
-
_id: string;
|
|
39
|
-
avatar: string;
|
|
40
|
-
}
|
|
41
|
-
declare class AuthorComponent extends React.Component<Props & ConnectedProps, State> {
|
|
42
|
-
state: State;
|
|
43
|
-
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
44
|
-
private mightDrop;
|
|
45
|
-
private selectedAuthorClass;
|
|
46
|
-
private topPreviewStyles;
|
|
47
|
-
private bottomPreviewStyles;
|
|
48
|
-
}
|
|
49
|
-
declare const DraggableAuthorItem: import("react-dnd").DndComponentClass<import("react-dnd").DndComponentClass<typeof AuthorComponent, import("react-dnd").Omit<Props & ConnectedDragSourceProps & ConnectedDropTargetProps, "connectDropTarget" | "isOver" | "isOverCurrent" | "canDrop">>, import("react-dnd").Omit<import("react-dnd").Omit<Props & ConnectedDragSourceProps & ConnectedDropTargetProps, "connectDropTarget" | "isOver" | "isOverCurrent" | "canDrop">, "connectDragSource" | "isDragging" | "item">>;
|
|
50
|
-
export default DraggableAuthorItem;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export { default as AuthorsDND } from './AuthorsDND';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Affiliation, Contributor, Model, UserProfileAffiliation } from '@manuscripts/json-schema';
|
|
17
|
-
import { AffiliationGeneric, AffiliationMap, AffiliationOption, AuthorAffiliation } from '../types';
|
|
18
|
-
export declare const buildSortedAuthors: (modelMap: Map<string, Model>) => Contributor[];
|
|
19
|
-
export declare const buildAuthorPriority: (authors: Contributor[]) => number;
|
|
20
|
-
export declare const buildAffiliationIDs: (authors: Contributor[]) => string[];
|
|
21
|
-
export declare const buildAuthorAffiliations: (authors: Contributor[], affiliations: AffiliationMap, uniqueAffiliationIDs: string[]) => Map<any, any>;
|
|
22
|
-
export declare const buildAffiliationsMap: (affiliationIDs: string[], modelMap: Map<string, Model>) => AffiliationMap;
|
|
23
|
-
export declare const buildAuthorsAndAffiliations: (modelMap: Map<string, Model>) => {
|
|
24
|
-
affiliations: AffiliationMap;
|
|
25
|
-
authors: Contributor[];
|
|
26
|
-
authorAffiliations: Map<any, any>;
|
|
27
|
-
};
|
|
28
|
-
export declare const isJointFirstAuthor: (authors: Contributor[], index: number) => boolean;
|
|
29
|
-
export declare const affiliationLabel: (affiliation: Affiliation | AffiliationGeneric | UserProfileAffiliation) => string;
|
|
30
|
-
export declare const affiliationsOptions: (affiliations: Map<string, AffiliationGeneric>, authorAffiliations?: AuthorAffiliation[] | null) => AffiliationOption[];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Affiliation } from '@manuscripts/json-schema';
|
|
17
|
-
declare const _default: (affiliation: Affiliation) => string;
|
|
18
|
-
export default _default;
|
package/dist/types/lib/name.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { BibliographicName } from '@manuscripts/json-schema';
|
|
17
|
-
export declare const initials: (name: BibliographicName) => string;
|
package/dist/types/types.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Affiliation, BibliographicName, Contributor } from '@manuscripts/json-schema';
|
|
17
|
-
import { ConnectDragSource, ConnectDropTarget } from 'react-dnd';
|
|
18
|
-
export type AffiliationMap = Map<string, Affiliation>;
|
|
19
|
-
interface AffiliationData {
|
|
20
|
-
ordinal: number;
|
|
21
|
-
data: Affiliation;
|
|
22
|
-
}
|
|
23
|
-
export interface AuthorData {
|
|
24
|
-
authors: Contributor[];
|
|
25
|
-
affiliations: AffiliationMap;
|
|
26
|
-
authorAffiliations: Map<string, AffiliationData[]>;
|
|
27
|
-
}
|
|
28
|
-
export interface AuthorItem {
|
|
29
|
-
_id: string;
|
|
30
|
-
index: number;
|
|
31
|
-
priority: number | null;
|
|
32
|
-
}
|
|
33
|
-
export type DropSide = 'before' | 'after' | null;
|
|
34
|
-
export type DropHandler = (source: AuthorItem, target: AuthorItem, position: DropSide, authors: Contributor[]) => void;
|
|
35
|
-
export interface DragSourceProps {
|
|
36
|
-
authorItem: AuthorItem;
|
|
37
|
-
position: DropSide;
|
|
38
|
-
}
|
|
39
|
-
export interface ConnectedDragSourceProps {
|
|
40
|
-
connectDragSource: ConnectDragSource;
|
|
41
|
-
isDragging: boolean;
|
|
42
|
-
item: DragSourceProps;
|
|
43
|
-
}
|
|
44
|
-
export interface ConnectedDropTargetProps {
|
|
45
|
-
connectDropTarget: ConnectDropTarget;
|
|
46
|
-
isOver: boolean;
|
|
47
|
-
isOverCurrent: boolean;
|
|
48
|
-
canDrop: boolean;
|
|
49
|
-
}
|
|
50
|
-
interface BibliographicNameValues extends Partial<BibliographicName> {
|
|
51
|
-
_id: string;
|
|
52
|
-
objectType: 'MPBibliographicName';
|
|
53
|
-
given: string;
|
|
54
|
-
family: string;
|
|
55
|
-
suffix?: string;
|
|
56
|
-
}
|
|
57
|
-
export interface AffiliationGeneric extends Omit<Affiliation, 'manuscriptID' | 'objectType'> {
|
|
58
|
-
manuscriptID?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface AuthorAffiliation {
|
|
61
|
-
ordinal: number;
|
|
62
|
-
data: Affiliation | AffiliationGeneric;
|
|
63
|
-
}
|
|
64
|
-
export interface AuthorValues {
|
|
65
|
-
affiliations: string[];
|
|
66
|
-
_id: string;
|
|
67
|
-
priority: number;
|
|
68
|
-
email: string;
|
|
69
|
-
isCorresponding: boolean;
|
|
70
|
-
bibliographicName: BibliographicNameValues;
|
|
71
|
-
role: string;
|
|
72
|
-
roles: string[];
|
|
73
|
-
ORCIDIdentifier: string;
|
|
74
|
-
contribution: string;
|
|
75
|
-
}
|
|
76
|
-
export interface AffiliationOption {
|
|
77
|
-
value: string;
|
|
78
|
-
label: string;
|
|
79
|
-
}
|
|
80
|
-
export {};
|
|
File without changes
|