@manuscripts/article-editor 1.10.13 → 1.10.14
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/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/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,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;AACrD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAuB,SAAS,EAAE,MAAM,cAAc,CAAA;A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AK,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,IAAI,CAAC,KAAK,CAAA;YAC9B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAA;YAEpC,MAAM,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;YACzD,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;YAEjD,UAAU,CAAC;gBACT,QAAQ,EAAE,aAAa;gBACvB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,aAAa,OAAO,CAAC,GAAG,EAAE;aAClC,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;IA/CQ,MAAM;QACX,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QACxD,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QACtC,OAAO,CACL,oBAAC,cAAc,IAAC,WAAW,EAAE,WAAW;YACtC,oBAAC,UAAU;gBACR,CAAC,CAAC,eAAe,IAAI,CACpB,oBAAC,qBAAqB;oBACpB,oBAAC,YAAY,IACX,IAAI,EAAE,gBAAgB,CAAC,KAAK,EAC5B,eAAe,EAAE,IAAI,iCAGR,CACO,CACzB;gBACD,oBAAC,cAAc,IACb,gBAAgB,EAAE;wBAChB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;wBACzB,IAAI,EACF,MAAM,CAAC,iBAAiB,CAAC,KAAK;4BAC9B,GAAG;4BACH,MAAM,CAAC,iBAAiB,CAAC,MAAM;wBACjC,IAAI,EAAE,QAAQ;qBACf,EACD,YAAY,EAAE,IAAI,CAAC,sBAAsB,EACzC,WAAW,EAAE,IAAI,EACjB,YAAY,EAAE,YAAY,GAC1B,CACS,CACE,CAClB,CAAA;IACH,CAAC;CAeF;AAED,eAAe,2BAA2B,CAAA"}
|
|
@@ -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,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAe1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,YAA2B,EAAE,EAAE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AAC,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;
|
|
@@ -1,31 +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 { Affiliation, Contributor, ContributorRole } from '@manuscripts/json-schema';
|
|
13
|
-
import { AuthorAffiliation, AuthorValues } from '@manuscripts/style-guide';
|
|
14
|
-
import React from 'react';
|
|
15
|
-
import { AffiliationMap } from '../../lib/authors';
|
|
16
|
-
interface AuthorProps {
|
|
17
|
-
author: Contributor;
|
|
18
|
-
affiliations: AffiliationMap;
|
|
19
|
-
authorAffiliations: AuthorAffiliation[];
|
|
20
|
-
isRemoveAuthorOpen: boolean;
|
|
21
|
-
addAuthorAffiliation: (affiliation: Affiliation | string) => void;
|
|
22
|
-
removeAuthorAffiliation: (affiliation: Affiliation) => void;
|
|
23
|
-
updateAffiliation: (affiliation: Affiliation) => void;
|
|
24
|
-
removeAuthor: (data: Contributor) => void;
|
|
25
|
-
handleSave: (values: AuthorValues) => Promise<void>;
|
|
26
|
-
handleRemoveAuthor: () => void;
|
|
27
|
-
contributorRoles: ContributorRole[];
|
|
28
|
-
createContributorRole: (name: string) => Promise<ContributorRole>;
|
|
29
|
-
}
|
|
30
|
-
export declare const AuthorFormContainer: React.FunctionComponent<AuthorProps>;
|
|
31
|
-
export {};
|
|
@@ -1,36 +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 { TokenActions } from '../../store';
|
|
14
|
-
export interface InvitationValues {
|
|
15
|
-
name: string;
|
|
16
|
-
email: string;
|
|
17
|
-
role: string;
|
|
18
|
-
}
|
|
19
|
-
interface Props {
|
|
20
|
-
allowSubmit: boolean;
|
|
21
|
-
invitationValues?: InvitationValues;
|
|
22
|
-
handleSubmit: (values: InvitationValues) => Promise<void>;
|
|
23
|
-
tokenActions: TokenActions;
|
|
24
|
-
}
|
|
25
|
-
interface State {
|
|
26
|
-
invitationSent: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare class InvitationForm extends React.Component<Props, State> {
|
|
29
|
-
state: {
|
|
30
|
-
invitationSent: boolean;
|
|
31
|
-
};
|
|
32
|
-
private initialValues;
|
|
33
|
-
render(): React.JSX.Element;
|
|
34
|
-
private dismissSuccessAlert;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
@@ -1,14 +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
|
-
declare const AuthorModalViews: React.FC;
|
|
14
|
-
export default AuthorModalViews;
|
|
@@ -1,48 +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, ContributorRole, Model, UserProfile } from '@manuscripts/json-schema';
|
|
13
|
-
import { AuthorAffiliation } from '@manuscripts/style-guide';
|
|
14
|
-
import { Build } from '@manuscripts/transform';
|
|
15
|
-
import React from 'react';
|
|
16
|
-
import { AffiliationMap } from '../../lib/authors';
|
|
17
|
-
interface State {
|
|
18
|
-
isRemoveAuthorOpen: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface Props {
|
|
21
|
-
authors: Contributor[];
|
|
22
|
-
authorAffiliations: Map<string, AuthorAffiliation[]>;
|
|
23
|
-
affiliations: AffiliationMap;
|
|
24
|
-
selectedAuthor: string | null;
|
|
25
|
-
removeAuthor: (data: Contributor) => Promise<void>;
|
|
26
|
-
selectAuthor: (data: Contributor) => void;
|
|
27
|
-
saveTrackModel: <T extends Model>(model: T | Build<T> | Partial<T>) => Promise<T>;
|
|
28
|
-
handleDrop: (authors: Contributor[], oldIndex: number, newIndex: number) => void;
|
|
29
|
-
createAuthor: (priority: number, person?: UserProfile | null, name?: string, invitationID?: string) => void;
|
|
30
|
-
contributorRoles: ContributorRole[];
|
|
31
|
-
}
|
|
32
|
-
declare class AuthorsModalContainer extends React.Component<Props, State> {
|
|
33
|
-
state: {
|
|
34
|
-
isRemoveAuthorOpen: boolean;
|
|
35
|
-
};
|
|
36
|
-
render(): React.JSX.Element;
|
|
37
|
-
private createContributorRole;
|
|
38
|
-
private handleRemoveAuthor;
|
|
39
|
-
private removeAuthor;
|
|
40
|
-
private handleSaveAuthor;
|
|
41
|
-
private addAuthorAffiliation;
|
|
42
|
-
private removeAuthorAffiliation;
|
|
43
|
-
private updateAffiliation;
|
|
44
|
-
private getSelectedAuthor;
|
|
45
|
-
private handleDrop;
|
|
46
|
-
private createEmptyAuthor;
|
|
47
|
-
}
|
|
48
|
-
export default AuthorsModalContainer;
|
|
@@ -1,50 +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 { Affiliation, Contributor, ContributorRole, UserProfile } from '@manuscripts/json-schema';
|
|
13
|
-
import { AuthorAffiliation, AuthorValues } from '@manuscripts/style-guide';
|
|
14
|
-
import React from 'react';
|
|
15
|
-
import { AffiliationMap } from '../../lib/authors';
|
|
16
|
-
export declare const ScrollableModalMain: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
interface AuthorsProps {
|
|
18
|
-
authors: Contributor[];
|
|
19
|
-
authorAffiliations: Map<string, AuthorAffiliation[]>;
|
|
20
|
-
affiliations: AffiliationMap;
|
|
21
|
-
selectedAuthor: Contributor | null;
|
|
22
|
-
isRemoveAuthorOpen: boolean;
|
|
23
|
-
removeAuthor: (data: Contributor) => void;
|
|
24
|
-
selectAuthor: (data: Contributor) => void;
|
|
25
|
-
openAddAuthors: () => void;
|
|
26
|
-
addAuthorAffiliation: (affiliation: Affiliation | string) => void;
|
|
27
|
-
removeAuthorAffiliation: (affiliation: Affiliation) => void;
|
|
28
|
-
updateAffiliation: (affiliation: Affiliation) => void;
|
|
29
|
-
handleSaveAuthor: (values: AuthorValues) => Promise<void>;
|
|
30
|
-
handleRemoveAuthor: () => void;
|
|
31
|
-
handleDrop: (oldIndex: number, newIndex: number) => void;
|
|
32
|
-
contributorRoles: ContributorRole[];
|
|
33
|
-
createContributorRole: (name: string) => Promise<ContributorRole>;
|
|
34
|
-
}
|
|
35
|
-
export declare const AuthorsModal: React.FunctionComponent<AuthorsProps>;
|
|
36
|
-
interface AddAuthorsProps {
|
|
37
|
-
nonAuthors: UserProfile[];
|
|
38
|
-
authors: Contributor[];
|
|
39
|
-
numberOfAddedAuthors: number;
|
|
40
|
-
searchText: string;
|
|
41
|
-
addedAuthors: string[];
|
|
42
|
-
searchResults: UserProfile[];
|
|
43
|
-
isCreateAuthorOpen: boolean;
|
|
44
|
-
handleAddingDoneCancel: () => void;
|
|
45
|
-
handleSearchChange: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
46
|
-
handleCreateAuthor: () => void;
|
|
47
|
-
createAuthor: (priority: number, person?: UserProfile, name?: string, invitationID?: string) => void;
|
|
48
|
-
}
|
|
49
|
-
export declare const AddAuthorsModal: React.FunctionComponent<AddAuthorsProps>;
|
|
50
|
-
export {};
|
|
@@ -1,18 +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
|
-
interface AddAuthorsPageProps {
|
|
14
|
-
addedAuthorsCount: number;
|
|
15
|
-
}
|
|
16
|
-
export declare const AddAuthorsPage: React.FunctionComponent<AddAuthorsPageProps>;
|
|
17
|
-
export declare const AuthorDetailsPage: React.FunctionComponent;
|
|
18
|
-
export {};
|