@manuscripts/article-editor 1.10.5 → 1.10.6-LEAN-3301-2
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/projects/ManuscriptPageContainer.js +0 -2
- package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/cjs/hooks/use-create-editor.js +0 -2
- package/dist/cjs/hooks/use-create-editor.js.map +1 -1
- package/dist/cjs/postgres-data/buildData.js +0 -4
- package/dist/cjs/postgres-data/buildData.js.map +1 -1
- package/dist/cjs/postgres-data/buildUtilities.js +0 -1
- package/dist/cjs/postgres-data/buildUtilities.js.map +1 -1
- package/dist/cjs/store/Store.js.map +1 -1
- package/dist/es/components/projects/ManuscriptPageContainer.js +0 -2
- package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/es/hooks/use-create-editor.js +0 -2
- package/dist/es/hooks/use-create-editor.js.map +1 -1
- package/dist/es/postgres-data/buildData.js +0 -4
- package/dist/es/postgres-data/buildData.js.map +1 -1
- package/dist/es/postgres-data/buildUtilities.js +0 -1
- package/dist/es/postgres-data/buildUtilities.js.map +1 -1
- package/dist/es/store/Store.js.map +1 -1
- package/dist/types/store/Store.d.ts +1 -3
- package/package.json +3 -4
- package/dist/cjs/components/metadata/AddAuthorButton.js +0 -55
- package/dist/cjs/components/metadata/AddAuthorButton.js.map +0 -1
- package/dist/cjs/components/metadata/AddAuthorsModalContainer.js +0 -71
- package/dist/cjs/components/metadata/AddAuthorsModalContainer.js.map +0 -1
- package/dist/cjs/components/metadata/AddAuthorsSidebar.js +0 -67
- package/dist/cjs/components/metadata/AddAuthorsSidebar.js.map +0 -1
- package/dist/cjs/components/metadata/AuthorFormContainer.js +0 -24
- package/dist/cjs/components/metadata/AuthorFormContainer.js.map +0 -1
- package/dist/cjs/components/metadata/AuthorInvitationForm.js +0 -115
- package/dist/cjs/components/metadata/AuthorInvitationForm.js.map +0 -1
- package/dist/cjs/components/metadata/AuthorModalViews.js +0 -161
- package/dist/cjs/components/metadata/AuthorModalViews.js.map +0 -1
- package/dist/cjs/components/metadata/AuthorsModalContainer.js +0 -99
- package/dist/cjs/components/metadata/AuthorsModalContainer.js.map +0 -1
- package/dist/cjs/components/metadata/AuthorsModals.js +0 -37
- package/dist/cjs/components/metadata/AuthorsModals.js.map +0 -1
- package/dist/cjs/components/metadata/AuthorsPage.js +0 -100
- package/dist/cjs/components/metadata/AuthorsPage.js.map +0 -1
- package/dist/cjs/components/metadata/AuthorsSidebar.js +0 -34
- package/dist/cjs/components/metadata/AuthorsSidebar.js.map +0 -1
- package/dist/cjs/components/metadata/CreateAuthorPageContainer.js +0 -43
- package/dist/cjs/components/metadata/CreateAuthorPageContainer.js.map +0 -1
- package/dist/cjs/components/metadata/InviteAuthorButton.js +0 -62
- package/dist/cjs/components/metadata/InviteAuthorButton.js.map +0 -1
- package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js +0 -62
- package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
- package/dist/cjs/components/metadata/InviteAuthorsSidebar.js +0 -27
- package/dist/cjs/components/metadata/InviteAuthorsSidebar.js.map +0 -1
- package/dist/cjs/components/metadata/SearchAuthorsSidebar.js +0 -48
- package/dist/cjs/components/metadata/SearchAuthorsSidebar.js.map +0 -1
- package/dist/cjs/lib/authors.js +0 -124
- package/dist/cjs/lib/authors.js.map +0 -1
- package/dist/es/components/metadata/AddAuthorButton.js +0 -50
- package/dist/es/components/metadata/AddAuthorButton.js.map +0 -1
- package/dist/es/components/metadata/AddAuthorsModalContainer.js +0 -64
- package/dist/es/components/metadata/AddAuthorsModalContainer.js.map +0 -1
- package/dist/es/components/metadata/AddAuthorsSidebar.js +0 -62
- package/dist/es/components/metadata/AddAuthorsSidebar.js.map +0 -1
- package/dist/es/components/metadata/AuthorFormContainer.js +0 -17
- package/dist/es/components/metadata/AuthorFormContainer.js.map +0 -1
- package/dist/es/components/metadata/AuthorInvitationForm.js +0 -108
- package/dist/es/components/metadata/AuthorInvitationForm.js.map +0 -1
- package/dist/es/components/metadata/AuthorModalViews.js +0 -133
- package/dist/es/components/metadata/AuthorModalViews.js.map +0 -1
- package/dist/es/components/metadata/AuthorsModalContainer.js +0 -94
- package/dist/es/components/metadata/AuthorsModalContainer.js.map +0 -1
- package/dist/es/components/metadata/AuthorsModals.js +0 -29
- package/dist/es/components/metadata/AuthorsModals.js.map +0 -1
- package/dist/es/components/metadata/AuthorsPage.js +0 -92
- package/dist/es/components/metadata/AuthorsPage.js.map +0 -1
- package/dist/es/components/metadata/AuthorsSidebar.js +0 -29
- package/dist/es/components/metadata/AuthorsSidebar.js.map +0 -1
- package/dist/es/components/metadata/CreateAuthorPageContainer.js +0 -38
- package/dist/es/components/metadata/CreateAuthorPageContainer.js.map +0 -1
- package/dist/es/components/metadata/InviteAuthorButton.js +0 -57
- package/dist/es/components/metadata/InviteAuthorButton.js.map +0 -1
- package/dist/es/components/metadata/InviteAuthorPopperContainer.js +0 -57
- package/dist/es/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
- package/dist/es/components/metadata/InviteAuthorsSidebar.js +0 -22
- package/dist/es/components/metadata/InviteAuthorsSidebar.js.map +0 -1
- package/dist/es/components/metadata/SearchAuthorsSidebar.js +0 -43
- package/dist/es/components/metadata/SearchAuthorsSidebar.js.map +0 -1
- package/dist/es/lib/authors.js +0 -112
- package/dist/es/lib/authors.js.map +0 -1
- package/dist/types/components/metadata/AddAuthorButton.d.ts +0 -29
- package/dist/types/components/metadata/AddAuthorsModalContainer.d.ts +0 -38
- package/dist/types/components/metadata/AddAuthorsSidebar.d.ts +0 -28
- package/dist/types/components/metadata/AuthorFormContainer.d.ts +0 -31
- package/dist/types/components/metadata/AuthorInvitationForm.d.ts +0 -36
- package/dist/types/components/metadata/AuthorModalViews.d.ts +0 -14
- package/dist/types/components/metadata/AuthorsModalContainer.d.ts +0 -48
- package/dist/types/components/metadata/AuthorsModals.d.ts +0 -50
- package/dist/types/components/metadata/AuthorsPage.d.ts +0 -18
- package/dist/types/components/metadata/AuthorsSidebar.d.ts +0 -24
- package/dist/types/components/metadata/CreateAuthorPageContainer.d.ts +0 -25
- package/dist/types/components/metadata/InviteAuthorButton.d.ts +0 -33
- package/dist/types/components/metadata/InviteAuthorPopperContainer.d.ts +0 -31
- package/dist/types/components/metadata/InviteAuthorsSidebar.d.ts +0 -24
- package/dist/types/components/metadata/SearchAuthorsSidebar.d.ts +0 -21
- package/dist/types/lib/authors.d.ts +0 -42
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import AddedIcon from '@manuscripts/assets/react/AddedIcon';
|
|
13
|
-
import AuthorPlaceholder from '@manuscripts/assets/react/AuthorPlaceholder';
|
|
14
|
-
import ContributorDetails from '@manuscripts/assets/react/ContributorDetailsPlaceholder';
|
|
15
|
-
import React from 'react';
|
|
16
|
-
import styled from 'styled-components';
|
|
17
|
-
const AddAuthorsMessage = () => (React.createElement("span", null, "Add authors to your author list from your collaborators, or invite new ones"));
|
|
18
|
-
const SelectAuthorMessage = () => (React.createElement("span", null, "Select an author from the list to display their details here."));
|
|
19
|
-
const AddedAuthorsMessage = ({ addedCount }) => React.createElement("span", null, "Authors added");
|
|
20
|
-
const OuterContainer = styled.div `
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
height: 100%;
|
|
26
|
-
overflow-y: auto;
|
|
27
|
-
`;
|
|
28
|
-
const InnerContainer = styled.div `
|
|
29
|
-
text-align: center;
|
|
30
|
-
max-width: 480px;
|
|
31
|
-
font-size: ${(props) => props.theme.font.size.xlarge};
|
|
32
|
-
line-height: ${(props) => props.theme.font.lineHeight.large};
|
|
33
|
-
`;
|
|
34
|
-
const Placeholder = styled.div `
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
margin-bottom: ${(props) => props.theme.grid.unit * 5}px;
|
|
38
|
-
`;
|
|
39
|
-
const Action = styled.div `
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
font-size: ${(props) => props.theme.font.size.xlarge};
|
|
44
|
-
font-weight: ${(props) => props.theme.font.weight.medium};
|
|
45
|
-
letter-spacing: -0.5px;
|
|
46
|
-
`;
|
|
47
|
-
const Message = styled.div `
|
|
48
|
-
max-width: 400px;
|
|
49
|
-
font-size: ${(props) => props.theme.font.size.xlarge};
|
|
50
|
-
margin-top: ${(props) => props.theme.grid.unit * 6}px;
|
|
51
|
-
font-weight: ${(props) => props.theme.font.weight.light};
|
|
52
|
-
color: ${(props) => props.theme.colors.text.secondary};
|
|
53
|
-
|
|
54
|
-
@media (max-width: 850px) {
|
|
55
|
-
margin-right: ${(props) => props.theme.grid.unit * 5}px;
|
|
56
|
-
margin-left: ${(props) => props.theme.grid.unit * 5}px;
|
|
57
|
-
max-width: 350px;
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
60
|
-
const AddedMessage = styled(Message) `
|
|
61
|
-
margin-top: 2px;
|
|
62
|
-
`;
|
|
63
|
-
const IconContainer = styled.div `
|
|
64
|
-
display: flex;
|
|
65
|
-
align-self: center;
|
|
66
|
-
padding-right: 5px;
|
|
67
|
-
`;
|
|
68
|
-
const MessageContainer = styled.div `
|
|
69
|
-
display: flex;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
`;
|
|
72
|
-
export const AddAuthorsPage = ({ addedAuthorsCount, }) => (React.createElement(OuterContainer, null,
|
|
73
|
-
React.createElement(InnerContainer, null,
|
|
74
|
-
React.createElement(Placeholder, null,
|
|
75
|
-
React.createElement(AuthorPlaceholder, null)),
|
|
76
|
-
addedAuthorsCount ? (React.createElement(MessageContainer, { "data-cy": 'add-author-message' },
|
|
77
|
-
React.createElement(IconContainer, null,
|
|
78
|
-
React.createElement(AddedIcon, null)),
|
|
79
|
-
React.createElement(AddedMessage, null,
|
|
80
|
-
React.createElement(AddedAuthorsMessage, { addedCount: addedAuthorsCount })))) : (React.createElement(React.Fragment, null,
|
|
81
|
-
React.createElement(Action, null, "Add Author"),
|
|
82
|
-
React.createElement(Message, null,
|
|
83
|
-
React.createElement(AddAuthorsMessage, null)))))));
|
|
84
|
-
export const AuthorDetailsPage = () => (React.createElement(OuterContainer, { "data-cy": 'author-details' },
|
|
85
|
-
React.createElement(InnerContainer, null,
|
|
86
|
-
React.createElement(Placeholder, null,
|
|
87
|
-
React.createElement(ContributorDetails, null)),
|
|
88
|
-
React.createElement(React.Fragment, null,
|
|
89
|
-
React.createElement(Action, null, "Author Details"),
|
|
90
|
-
React.createElement(Message, null,
|
|
91
|
-
React.createElement(SelectAuthorMessage, null))))));
|
|
92
|
-
//# sourceMappingURL=AuthorsPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorsPage.js","sourceRoot":"","sources":["../../../../src/components/metadata/AuthorsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,SAAS,MAAM,qCA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AED,MAAM,CAAC,MAAM,iBAAiB,GAA4B,GAAG,EAAE,CAAC,CAC9D,oBAAC,cAAc,eAAU,gBAAgB;IACvC,oBAAC,cAAc;QACb,oBAAC,WAAW;YACV,oBAAC,kBAAkB,OAAG,CACV;QAEd,oBAAC,KAAK,CAAC,QAAQ;YACb,oBAAC,MAAM,yBAAwB;YAC/B,oBAAC,OAAO;gBACN,oBAAC,mBAAmB,OAAG,CACf,CACK,CACF,CACF,CAClB,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { AuthorsDND } from '@manuscripts/style-guide';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import styled from 'styled-components';
|
|
15
|
-
import { AddButton } from '../AddButton';
|
|
16
|
-
import { ModalSidebar, SidebarContent, SidebarHeader } from '../Sidebar';
|
|
17
|
-
const SidebarAction = styled.div `
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
margin-bottom: ${(props) => props.theme.grid.unit * 4}px;
|
|
21
|
-
`;
|
|
22
|
-
const AuthorsSidebar = ({ openAddAuthors, authors, selectAuthor, handleDrop, selectedAuthor, }) => (React.createElement(ModalSidebar, { "data-cy": 'authors-sidebar' },
|
|
23
|
-
React.createElement(SidebarHeader, { title: 'Authors' }),
|
|
24
|
-
React.createElement(SidebarContent, null,
|
|
25
|
-
React.createElement(SidebarAction, null,
|
|
26
|
-
React.createElement(AddButton, { action: openAddAuthors, size: 'medium', title: 'New Author' })),
|
|
27
|
-
React.createElement(AuthorsDND, { authors: authors, selectAuthor: selectAuthor, selectedAuthor: selectedAuthor, handleDrop: handleDrop }))));
|
|
28
|
-
export default AuthorsSidebar;
|
|
29
|
-
//# sourceMappingURL=AuthorsSidebar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorsSidebar.js","sourceRoot":"","sources":["../../../../src/components/metadata/AuthorsSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAqB,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAExE,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;mBAGb,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACtD,CAAA;AAWD,MAAM,cAAc,GAAmC,CAAC,EACtD,cAAc,EACd,OAAO,EACP,YAAY,EACZ,UAAU,EACV,cAAc,GACf,EAAE,EAAE,CAAC,CACJ,oBAAC,YAAY,eAAU,iBAAiB;IACtC,oBAAC,aAAa,IAAC,KAAK,EAAE,SAAS,GAAI;IAEnC,oBAAC,cAAc;QACb,oBAAC,aAAa;YACZ,oBAAC,SAAS,IACR,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,YAAY,GACnB,CACY;QAChB,oBAAC,UAAU,IACT,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,GACtB,CACa,CACJ,CAChB,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Category, Dialog } from '@manuscripts/style-guide';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { buildAuthorPriority } from '../../lib/authors';
|
|
15
|
-
class CreateAuthorPageContainer extends React.Component {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.handleCreate = () => {
|
|
19
|
-
this.props.createAuthor(buildAuthorPriority(this.props.authors), null, this.props.searchText);
|
|
20
|
-
this.props.handleCancel();
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
const actions = {
|
|
25
|
-
primary: {
|
|
26
|
-
action: this.handleCreate,
|
|
27
|
-
title: 'Create',
|
|
28
|
-
},
|
|
29
|
-
secondary: {
|
|
30
|
-
action: this.props.handleCancel,
|
|
31
|
-
title: 'Cancel',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
return (React.createElement(Dialog, { isOpen: this.props.isOpen, actions: actions, category: Category.confirmation, header: 'Create author', message: `Author already exist are you sure you want to create author with the same name?` }));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export default CreateAuthorPageContainer;
|
|
38
|
-
//# sourceMappingURL=CreateAuthorPageContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAuthorPageContainer.js","sourceRoot":"","sources":["../../../../src/components/metadata/CreateAuthorPageContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAevD,MAAM,yBAA0B,SAAQ,KAAK,CAAC,SAAgB;IAA9D;;QAsBU,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,KAAK,CAAC,YAAY,CACrB,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EACvC,IAAI,EACJ,IAAI,CAAC,KAAK,CAAC,UAAU,CACtB,CAAA;YACD,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAA;QAC3B,CAAC,CAAA;IACH,CAAC;IA7BQ,MAAM;QACX,MAAM,OAAO,GAAG;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI,CAAC,YAAY;gBACzB,KAAK,EAAE,QAAQ;aAChB;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY;gBAC/B,KAAK,EAAE,QAAQ;aAChB;SACF,CAAA;QACD,OAAO,CACL,oBAAC,MAAM,IACL,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,CAAC,YAAY,EAC/B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,iFAAiF,GAC1F,CACH,CAAA;IACH,CAAC;CASF;AAED,eAAe,yBAAyB,CAAA"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { TextButton } from '@manuscripts/style-guide';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { Manager, Popper, Reference } from 'react-popper';
|
|
15
|
-
import styled from 'styled-components';
|
|
16
|
-
import InviteAuthorPopperContainer from './InviteAuthorPopperContainer';
|
|
17
|
-
const Button = styled(TextButton) `
|
|
18
|
-
margin-left: ${(props) => props.theme.grid.unit * 3}px;
|
|
19
|
-
`;
|
|
20
|
-
class InviteAuthorButton extends React.Component {
|
|
21
|
-
constructor() {
|
|
22
|
-
super(...arguments);
|
|
23
|
-
this.state = {
|
|
24
|
-
isOpen: false,
|
|
25
|
-
};
|
|
26
|
-
this.togglePopper = () => {
|
|
27
|
-
this.updateListener(!this.state.isOpen);
|
|
28
|
-
this.setState({
|
|
29
|
-
isOpen: !this.state.isOpen,
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
this.handleClickOutside = (event) => {
|
|
33
|
-
if (this.node && !this.node.contains(event.target)) {
|
|
34
|
-
this.togglePopper();
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
this.updateListener = (isOpen) => {
|
|
38
|
-
if (isOpen) {
|
|
39
|
-
document.addEventListener('mousedown', this.handleClickOutside);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
componentDidMount() {
|
|
47
|
-
this.updateListener(this.state.isOpen);
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
const { isOpen } = this.state;
|
|
51
|
-
return (React.createElement(Manager, null,
|
|
52
|
-
React.createElement(Reference, null, ({ ref }) => (React.createElement(Button, { ref: ref, onClick: this.togglePopper }, "Invite as Collaborator"))),
|
|
53
|
-
isOpen && (React.createElement(Popper, { placement: 'bottom', innerRef: (node) => (this.node = node) }, (popperProps) => (React.createElement(InviteAuthorPopperContainer, { popperProps: popperProps, project: this.props.project, author: this.props.author, updateAuthor: this.props.updateAuthor, tokenActions: this.props.tokenActions }))))));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export default InviteAuthorButton;
|
|
57
|
-
//# sourceMappingURL=InviteAuthorButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InviteAuthorButton.js","sourceRoot":"","sources":["../../../../src/components/metadata/InviteAuthorButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC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AAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAEM,MAAM;QACX,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAE7B,OAAO,CACL,oBAAC,OAAO;YACN,oBAAC,SAAS,QACP,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CACZ,oBAAC,MAAM,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,6BAEnC,CACV,CACS;YACX,MAAM,IAAI,CACT,oBAAC,MAAM,IACL,SAAS,EAAE,QAAQ,EACnB,QAAQ,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAErD,CAAC,WAAgC,EAAE,EAAE,CAAC,CACrC,oBAAC,2BAA2B,IAC1B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAC3B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EACrC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,GACrC,CACH,CACM,CACV,CACO,CACX,CAAA;IACH,CAAC;CAsBF;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { AlertMessage, AlertMessageType } from '@manuscripts/style-guide';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import styled from 'styled-components';
|
|
15
|
-
import { projectInvite } from '../../lib/api';
|
|
16
|
-
import { trackEvent } from '../../lib/tracking';
|
|
17
|
-
import { CustomUpPopper, PopperBody } from '../Popper';
|
|
18
|
-
import { InvitationForm } from './AuthorInvitationForm';
|
|
19
|
-
const AlertMessageContainer = styled.div `
|
|
20
|
-
margin-bottom: ${(props) => props.theme.grid.unit * 2}px;
|
|
21
|
-
`;
|
|
22
|
-
class InviteAuthorPopperContainer extends React.Component {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.state = {
|
|
26
|
-
invitationError: null,
|
|
27
|
-
};
|
|
28
|
-
this.handleInvitationSubmit = async (values) => {
|
|
29
|
-
const { project } = this.props;
|
|
30
|
-
const { email, name, role } = values;
|
|
31
|
-
await projectInvite(project._id, [{ email, name }], role);
|
|
32
|
-
this.props.updateAuthor(this.props.author, email);
|
|
33
|
-
trackEvent({
|
|
34
|
-
category: 'Invitations',
|
|
35
|
-
action: 'Send',
|
|
36
|
-
label: `projectID=${project._id}`,
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
const { popperProps, author, tokenActions } = this.props;
|
|
42
|
-
const { invitationError } = this.state;
|
|
43
|
-
return (React.createElement(CustomUpPopper, { popperProps: popperProps },
|
|
44
|
-
React.createElement(PopperBody, null,
|
|
45
|
-
!!invitationError && (React.createElement(AlertMessageContainer, null,
|
|
46
|
-
React.createElement(AlertMessage, { type: AlertMessageType.error, hideCloseButton: true }, "Sending invitation failed."))),
|
|
47
|
-
React.createElement(InvitationForm, { invitationValues: {
|
|
48
|
-
email: author.email || '',
|
|
49
|
-
name: author.bibliographicName.given +
|
|
50
|
-
' ' +
|
|
51
|
-
author.bibliographicName.family,
|
|
52
|
-
role: 'Writer',
|
|
53
|
-
}, handleSubmit: this.handleInvitationSubmit, allowSubmit: true, tokenActions: tokenActions }))));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export default InviteAuthorPopperContainer;
|
|
57
|
-
//# sourceMappingURL=InviteAuthorPopperContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InviteAuthorPopperContainer.js","sourceRoot":"","sources":["../../../../src/components/metadata/InviteAuthorPopperContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,cAAc,EAAoB,MAAM,wBAAwB,CAAA;AAczE,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;mBACrB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACtD,CAAA;AAED,MAAM,2BAA4B,SAAQ,KAAK,CAAC,SAAgB;IAAhE;;QACS,UAAK,GAAU;YACpB,eAAe,EAAE,IAAI;SACtB,CAAA;QAoCO,2BAAsB,GAAG,KAAK,EAAE,MAAwB,EAAE,EAAE;YAClE,MAAM,EAAE,OAAO,EAAE,GAAG,I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AAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { ModalSidebar, SidebarContent, SidebarHeader } from '../Sidebar';
|
|
14
|
-
import { InvitationForm } from './AuthorInvitationForm';
|
|
15
|
-
const InviteAuthorsSidebarContents = ({ invitationValues, handleCancel, handleSubmit, invitationSent, tokenActions, }) => (React.createElement(React.Fragment, null,
|
|
16
|
-
React.createElement(SidebarHeader, { action: handleCancel, isCancel: !invitationSent, title: 'Invite' }),
|
|
17
|
-
React.createElement(SidebarContent, null,
|
|
18
|
-
React.createElement(InvitationForm, { allowSubmit: true, invitationValues: invitationValues, handleSubmit: handleSubmit, tokenActions: tokenActions }))));
|
|
19
|
-
const InviteAuthorsSidebar = ({ invitationValues, handleCancel, handleSubmit, invitationSent, tokenActions, }) => (React.createElement(ModalSidebar, null,
|
|
20
|
-
React.createElement(InviteAuthorsSidebarContents, { handleCancel: handleCancel, handleSubmit: handleSubmit, invitationSent: invitationSent, invitationValues: invitationValues, tokenActions: tokenActions })));
|
|
21
|
-
export default InviteAuthorsSidebar;
|
|
22
|
-
//# sourceMappingURL=InviteAuthorsSidebar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InviteAuthorsSidebar.js","sourceRoot":"","sources":["../../../../src/components/metadata/InviteAuthorsSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AACxE,OAAO,EAAE,cAAc,EAAoB,MAAM,wBAAwB,CAAA;AAWzE,MAAM,4BAA4B,GAAmC,CAAC,EACpE,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,YAAY,GACb,EAAE,EAAE,CAAC,CACJ;IACE,oBAAC,aAAa,IACZ,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,CAAC,cAAc,EACzB,KAAK,EAAE,QAAQ,GACf;IACF,oBAAC,cAAc;QACb,oBAAC,cAAc,IACb,WAAW,EAAE,IAAI,EACjB,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,GAC1B,CACa,CAChB,CACJ,CAAA;AAED,MAAM,oBAAoB,GAAmC,CAAC,EAC5D,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,YAAY,GACb,EAAE,EAAE,CAAC,CACJ,oBAAC,YAAY;IACX,oBAAC,4BAA4B,IAC3B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY,GAC1B,CACW,CAChB,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Avatar } from '@manuscripts/style-guide';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import styled from 'styled-components';
|
|
15
|
-
import { SidebarContent, SidebarPersonContainer } from '../Sidebar';
|
|
16
|
-
import AddAuthorButton from './AddAuthorButton';
|
|
17
|
-
const PersonInitial = styled.span `
|
|
18
|
-
margin-right: ${(props) => props.theme.grid.unit}px;
|
|
19
|
-
font-weight: ${(props) => props.theme.font.weight.light};
|
|
20
|
-
`;
|
|
21
|
-
const PersonName = styled.div `
|
|
22
|
-
font-size: 120%;
|
|
23
|
-
color: ${(props) => props.theme.colors.text.primary};
|
|
24
|
-
font-weight: ${(props) => props.theme.font.weight.medium};
|
|
25
|
-
`;
|
|
26
|
-
const PeopleData = styled.div `
|
|
27
|
-
padding-left: ${(props) => props.theme.grid.unit * 2}px;
|
|
28
|
-
`;
|
|
29
|
-
const UserDataContainer = styled.div `
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
`;
|
|
33
|
-
const SearchAuthorsSidebar = ({ createAuthor, searchResults, addedAuthors, authors, }) => (React.createElement(React.Fragment, null,
|
|
34
|
-
React.createElement(SidebarContent, null, searchResults.map((person) => (React.createElement(SidebarPersonContainer, { key: person._id },
|
|
35
|
-
React.createElement(UserDataContainer, null,
|
|
36
|
-
React.createElement(Avatar, { src: person.avatar, size: 45 }),
|
|
37
|
-
React.createElement(PeopleData, null,
|
|
38
|
-
React.createElement(PersonName, null,
|
|
39
|
-
React.createElement(PersonInitial, null, person.bibliographicName.given),
|
|
40
|
-
person.bibliographicName.family))),
|
|
41
|
-
React.createElement(AddAuthorButton, { person: person, isSelected: addedAuthors.includes(person.userID), createAuthor: createAuthor, authors: authors })))))));
|
|
42
|
-
export default SearchAuthorsSidebar;
|
|
43
|
-
//# sourceMappingURL=SearchAuthorsSidebar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SearchAuthorsSidebar.js","sourceRoot":"","sources":["../../../../src/components/metadata/SearchAuthorsSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAEjD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACnE,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAE/C,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAA;kBACf,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;iBACjC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK;CACxD,CAAA;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;WAElB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO;iBACpC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;CACzD,CAAA;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;kBACX,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACrD,CAAA;AAED,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGnC,CAAA;AAcD,MAAM,oBAAoB,GAAgD,CAAC,EACzE,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,OAAO,GACR,EAAE,EAAE,CAAC,CACJ,oBAAC,KAAK,CAAC,QAAQ;IACb,oBAAC,cAAc,QACZ,aAAa,CAAC,GAAG,CAAC,CAAC,MAA6B,EAAE,EAAE,CAAC,CACpD,oBAAC,sBAAsB,IAAC,GAAG,EAAE,MAAM,CAAC,GAAG;QACrC,oBAAC,iBAAiB;YAChB,oBAAC,MAAM,IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,GAAI;YACxC,oBAAC,UAAU;gBACT,oBAAC,UAAU;oBACT,oBAAC,aAAa,QAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAiB;oBAC9D,MAAM,CAAC,iBAAiB,CAAC,MAAM,CACrB,CACF,CACK;QACpB,oBAAC,eAAe,IACd,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAChD,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,OAAO,GAChB,CACqB,CAC1B,CAAC,CACa,CACF,CAClB,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
package/dist/es/lib/authors.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { ObjectTypes, } from '@manuscripts/json-schema';
|
|
13
|
-
import { hasObjectType } from '@manuscripts/transform';
|
|
14
|
-
import { ascendingPriority } from './sort';
|
|
15
|
-
export const buildSortedContributors = (contributors) => contributors.sort(ascendingPriority);
|
|
16
|
-
export const buildAuthorPriority = (authors) => {
|
|
17
|
-
if (!authors.length) {
|
|
18
|
-
return 0;
|
|
19
|
-
}
|
|
20
|
-
const priorities = authors.map((author) => Number(author.priority));
|
|
21
|
-
return Math.max(...priorities) + 1;
|
|
22
|
-
};
|
|
23
|
-
export const buildSortedAffiliationIDs = (sortedAuthors) => {
|
|
24
|
-
const ids = new Set();
|
|
25
|
-
for (const author of sortedAuthors) {
|
|
26
|
-
if (author.affiliations) {
|
|
27
|
-
author.affiliations.forEach((id) => {
|
|
28
|
-
ids.add(id);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return [...ids];
|
|
33
|
-
};
|
|
34
|
-
export const buildAuthorAffiliations = (authors, affiliations, sortedAffiliationIDs) => {
|
|
35
|
-
const items = new Map();
|
|
36
|
-
const sortedAffs = Array.from(affiliations.values());
|
|
37
|
-
for (const author of authors) {
|
|
38
|
-
items.set(author._id, (author.affiliations || []).map((id) => {
|
|
39
|
-
return {
|
|
40
|
-
ordinal: sortedAffiliationIDs.indexOf(id) + 1,
|
|
41
|
-
data: sortedAffs.find((af) => af._id.startsWith(id)),
|
|
42
|
-
};
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
return items;
|
|
46
|
-
};
|
|
47
|
-
function createInvalidAffillation(id) {
|
|
48
|
-
return {
|
|
49
|
-
priority: 0,
|
|
50
|
-
manuscriptID: '',
|
|
51
|
-
containerID: '',
|
|
52
|
-
_id: id,
|
|
53
|
-
objectType: 'MPAffiliation',
|
|
54
|
-
createdAt: 0,
|
|
55
|
-
updatedAt: 0,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export const buildAffiliationsMap = (affiliationIDs, affiliations) => new Map(affiliationIDs.map((id) => {
|
|
59
|
-
let associatedItem = affiliations.find((affiliation) => affiliation._id.startsWith(id));
|
|
60
|
-
// this provides loose id referencing for cases when affiliation is rejected in track changes and doesn't exist anymore in the modelMap
|
|
61
|
-
associatedItem = associatedItem || createInvalidAffillation(id);
|
|
62
|
-
return [id, associatedItem];
|
|
63
|
-
}));
|
|
64
|
-
const isContributor = hasObjectType(ObjectTypes.Contributor);
|
|
65
|
-
const isAffiliation = hasObjectType(ObjectTypes.Affiliation);
|
|
66
|
-
export const getMetaData = (modelMap) => {
|
|
67
|
-
const affiliationAndContributors = [];
|
|
68
|
-
const contributorRoles = [];
|
|
69
|
-
if (modelMap) {
|
|
70
|
-
for (const model of modelMap.values()) {
|
|
71
|
-
if (model.objectType === ObjectTypes.Affiliation ||
|
|
72
|
-
model.objectType === ObjectTypes.Contributor) {
|
|
73
|
-
affiliationAndContributors.push(model); // or Contributor
|
|
74
|
-
}
|
|
75
|
-
if (model.objectType === ObjectTypes.ContributorRole) {
|
|
76
|
-
contributorRoles.push(model);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
authorsAndAffiliations: buildAuthorsAndAffiliations(affiliationAndContributors),
|
|
81
|
-
contributorRoles: contributorRoles,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
export const buildAuthorsAndAffiliations = (data) => {
|
|
86
|
-
const authors = data.filter(isContributor);
|
|
87
|
-
const affiliations = data.filter(isAffiliation);
|
|
88
|
-
// sorted authors
|
|
89
|
-
const sortedAuthors = authors.sort(ascendingPriority);
|
|
90
|
-
// array of unique affiliations IDs based on the order give by authors
|
|
91
|
-
const sortedAffiliationIDs = buildSortedAffiliationIDs(sortedAuthors);
|
|
92
|
-
const affiliationsMap = buildAffiliationsMap(sortedAffiliationIDs, affiliations);
|
|
93
|
-
const authorAffiliations = buildAuthorAffiliations(sortedAuthors, affiliationsMap, sortedAffiliationIDs);
|
|
94
|
-
return {
|
|
95
|
-
affiliations: affiliationsMap,
|
|
96
|
-
authors: sortedAuthors,
|
|
97
|
-
authorAffiliations,
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
export const isJointFirstAuthor = (authors, index) => {
|
|
101
|
-
const author = index === 0 ? authors[index] : authors[index - 1];
|
|
102
|
-
return Boolean(author.isJointContributor);
|
|
103
|
-
};
|
|
104
|
-
export const reorderAuthors = (authors, oldIndex, newIndex) => {
|
|
105
|
-
const clonedAuthors = authors.slice(0);
|
|
106
|
-
const order = authors.map((_, i) => (i === oldIndex ? newIndex : i));
|
|
107
|
-
clonedAuthors.sort((a, b) => {
|
|
108
|
-
return order[authors.indexOf(a)] - order[authors.indexOf(b)];
|
|
109
|
-
});
|
|
110
|
-
return clonedAuthors;
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=authors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authors.js","sourceRoot":"","sources":["../../../src/lib/authors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAKL,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,O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CAAC,MAAM,kBAAkB,GAAG,CAAC,OAAsB,EAAE,KAAa,EAAE,EAAE;IAC1E,MAAM,MAAM,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAA;IAEhE,OAAO,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;AAC3C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAAsB,EACtB,QAAgB,EAChB,QAAgB,EAChB,EAAE;IACF,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACtC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACpE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC1B,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;IACF,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Contributor, UserProfile } from '@manuscripts/json-schema';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
interface State {
|
|
15
|
-
isSelected: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface Props {
|
|
18
|
-
isSelected?: boolean;
|
|
19
|
-
person: UserProfile;
|
|
20
|
-
authors: Contributor[];
|
|
21
|
-
createAuthor: (priority: number, person?: UserProfile, name?: string, invitationID?: string) => void;
|
|
22
|
-
}
|
|
23
|
-
declare class AddAuthorButton extends React.Component<Props, State> {
|
|
24
|
-
state: State;
|
|
25
|
-
componentDidMount(): void;
|
|
26
|
-
render(): React.JSX.Element;
|
|
27
|
-
private handleSelected;
|
|
28
|
-
}
|
|
29
|
-
export default AddAuthorButton;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Contributor, UserProfile } from '@manuscripts/json-schema';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
interface State {
|
|
15
|
-
isCreateAuthorOpen: boolean;
|
|
16
|
-
searchText: string;
|
|
17
|
-
searchResults: UserProfile[];
|
|
18
|
-
}
|
|
19
|
-
interface Props {
|
|
20
|
-
nonAuthors: UserProfile[];
|
|
21
|
-
authors: Contributor[];
|
|
22
|
-
addedAuthors: string[];
|
|
23
|
-
numberOfAddedAuthors: number;
|
|
24
|
-
handleAddingDoneCancel: () => void;
|
|
25
|
-
createAuthor: (priority: number, person?: UserProfile | null, name?: string, invitationID?: string) => void;
|
|
26
|
-
}
|
|
27
|
-
export declare class AddAuthorsModalContainer extends React.Component<Props, State> {
|
|
28
|
-
state: {
|
|
29
|
-
isCreateAuthorOpen: boolean;
|
|
30
|
-
searchText: string;
|
|
31
|
-
searchResults: never[];
|
|
32
|
-
};
|
|
33
|
-
render(): React.JSX.Element;
|
|
34
|
-
private handleCreateAuthor;
|
|
35
|
-
private handleSearchChange;
|
|
36
|
-
private search;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Contributor, UserProfile } from '@manuscripts/json-schema';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
interface Props {
|
|
15
|
-
nonAuthors: UserProfile[];
|
|
16
|
-
numberOfAddedAuthors: number;
|
|
17
|
-
isCreateAuthorOpen: boolean;
|
|
18
|
-
searchText: string;
|
|
19
|
-
searchResults: UserProfile[];
|
|
20
|
-
addedAuthors: string[];
|
|
21
|
-
authors: Contributor[];
|
|
22
|
-
handleDoneCancel: () => void;
|
|
23
|
-
handleSearchChange: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
24
|
-
handleCreateAuthor: () => void;
|
|
25
|
-
createAuthor: (priority: number, person?: UserProfile, name?: string, invitationID?: string) => void;
|
|
26
|
-
}
|
|
27
|
-
declare const AddAuthorsSidebar: React.FunctionComponent<Props>;
|
|
28
|
-
export default AddAuthorsSidebar;
|