@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.
Files changed (96) hide show
  1. package/dist/cjs/components/projects/ManuscriptPageContainer.js +0 -2
  2. package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
  3. package/dist/cjs/hooks/use-create-editor.js +0 -2
  4. package/dist/cjs/hooks/use-create-editor.js.map +1 -1
  5. package/dist/cjs/postgres-data/buildData.js +0 -4
  6. package/dist/cjs/postgres-data/buildData.js.map +1 -1
  7. package/dist/cjs/store/Store.js.map +1 -1
  8. package/dist/es/components/projects/ManuscriptPageContainer.js +0 -2
  9. package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
  10. package/dist/es/hooks/use-create-editor.js +0 -2
  11. package/dist/es/hooks/use-create-editor.js.map +1 -1
  12. package/dist/es/postgres-data/buildData.js +0 -4
  13. package/dist/es/postgres-data/buildData.js.map +1 -1
  14. package/dist/es/store/Store.js.map +1 -1
  15. package/dist/types/store/Store.d.ts +1 -3
  16. package/package.json +3 -4
  17. package/dist/cjs/components/metadata/AddAuthorButton.js +0 -55
  18. package/dist/cjs/components/metadata/AddAuthorButton.js.map +0 -1
  19. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js +0 -71
  20. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  21. package/dist/cjs/components/metadata/AddAuthorsSidebar.js +0 -67
  22. package/dist/cjs/components/metadata/AddAuthorsSidebar.js.map +0 -1
  23. package/dist/cjs/components/metadata/AuthorFormContainer.js +0 -24
  24. package/dist/cjs/components/metadata/AuthorFormContainer.js.map +0 -1
  25. package/dist/cjs/components/metadata/AuthorInvitationForm.js +0 -115
  26. package/dist/cjs/components/metadata/AuthorInvitationForm.js.map +0 -1
  27. package/dist/cjs/components/metadata/AuthorModalViews.js +0 -161
  28. package/dist/cjs/components/metadata/AuthorModalViews.js.map +0 -1
  29. package/dist/cjs/components/metadata/AuthorsModalContainer.js +0 -99
  30. package/dist/cjs/components/metadata/AuthorsModalContainer.js.map +0 -1
  31. package/dist/cjs/components/metadata/AuthorsModals.js +0 -37
  32. package/dist/cjs/components/metadata/AuthorsModals.js.map +0 -1
  33. package/dist/cjs/components/metadata/AuthorsPage.js +0 -100
  34. package/dist/cjs/components/metadata/AuthorsPage.js.map +0 -1
  35. package/dist/cjs/components/metadata/AuthorsSidebar.js +0 -34
  36. package/dist/cjs/components/metadata/AuthorsSidebar.js.map +0 -1
  37. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js +0 -43
  38. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  39. package/dist/cjs/components/metadata/InviteAuthorButton.js +0 -62
  40. package/dist/cjs/components/metadata/InviteAuthorButton.js.map +0 -1
  41. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js +0 -62
  42. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  43. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js +0 -27
  44. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  45. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js +0 -48
  46. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  47. package/dist/cjs/lib/authors.js +0 -124
  48. package/dist/cjs/lib/authors.js.map +0 -1
  49. package/dist/es/components/metadata/AddAuthorButton.js +0 -50
  50. package/dist/es/components/metadata/AddAuthorButton.js.map +0 -1
  51. package/dist/es/components/metadata/AddAuthorsModalContainer.js +0 -64
  52. package/dist/es/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  53. package/dist/es/components/metadata/AddAuthorsSidebar.js +0 -62
  54. package/dist/es/components/metadata/AddAuthorsSidebar.js.map +0 -1
  55. package/dist/es/components/metadata/AuthorFormContainer.js +0 -17
  56. package/dist/es/components/metadata/AuthorFormContainer.js.map +0 -1
  57. package/dist/es/components/metadata/AuthorInvitationForm.js +0 -108
  58. package/dist/es/components/metadata/AuthorInvitationForm.js.map +0 -1
  59. package/dist/es/components/metadata/AuthorModalViews.js +0 -133
  60. package/dist/es/components/metadata/AuthorModalViews.js.map +0 -1
  61. package/dist/es/components/metadata/AuthorsModalContainer.js +0 -94
  62. package/dist/es/components/metadata/AuthorsModalContainer.js.map +0 -1
  63. package/dist/es/components/metadata/AuthorsModals.js +0 -29
  64. package/dist/es/components/metadata/AuthorsModals.js.map +0 -1
  65. package/dist/es/components/metadata/AuthorsPage.js +0 -92
  66. package/dist/es/components/metadata/AuthorsPage.js.map +0 -1
  67. package/dist/es/components/metadata/AuthorsSidebar.js +0 -29
  68. package/dist/es/components/metadata/AuthorsSidebar.js.map +0 -1
  69. package/dist/es/components/metadata/CreateAuthorPageContainer.js +0 -38
  70. package/dist/es/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  71. package/dist/es/components/metadata/InviteAuthorButton.js +0 -57
  72. package/dist/es/components/metadata/InviteAuthorButton.js.map +0 -1
  73. package/dist/es/components/metadata/InviteAuthorPopperContainer.js +0 -57
  74. package/dist/es/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  75. package/dist/es/components/metadata/InviteAuthorsSidebar.js +0 -22
  76. package/dist/es/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  77. package/dist/es/components/metadata/SearchAuthorsSidebar.js +0 -43
  78. package/dist/es/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  79. package/dist/es/lib/authors.js +0 -112
  80. package/dist/es/lib/authors.js.map +0 -1
  81. package/dist/types/components/metadata/AddAuthorButton.d.ts +0 -29
  82. package/dist/types/components/metadata/AddAuthorsModalContainer.d.ts +0 -38
  83. package/dist/types/components/metadata/AddAuthorsSidebar.d.ts +0 -28
  84. package/dist/types/components/metadata/AuthorFormContainer.d.ts +0 -31
  85. package/dist/types/components/metadata/AuthorInvitationForm.d.ts +0 -36
  86. package/dist/types/components/metadata/AuthorModalViews.d.ts +0 -14
  87. package/dist/types/components/metadata/AuthorsModalContainer.d.ts +0 -48
  88. package/dist/types/components/metadata/AuthorsModals.d.ts +0 -50
  89. package/dist/types/components/metadata/AuthorsPage.d.ts +0 -18
  90. package/dist/types/components/metadata/AuthorsSidebar.d.ts +0 -24
  91. package/dist/types/components/metadata/CreateAuthorPageContainer.d.ts +0 -25
  92. package/dist/types/components/metadata/InviteAuthorButton.d.ts +0 -33
  93. package/dist/types/components/metadata/InviteAuthorPopperContainer.d.ts +0 -31
  94. package/dist/types/components/metadata/InviteAuthorsSidebar.d.ts +0 -24
  95. package/dist/types/components/metadata/SearchAuthorsSidebar.d.ts +0 -21
  96. package/dist/types/lib/authors.d.ts +0 -42
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /*!
3
- * 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.
4
- *
5
- * 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.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const style_guide_1 = require("@manuscripts/style-guide");
18
- const react_1 = __importDefault(require("react"));
19
- const authors_1 = require("../../lib/authors");
20
- class CreateAuthorPageContainer extends react_1.default.Component {
21
- constructor() {
22
- super(...arguments);
23
- this.handleCreate = () => {
24
- this.props.createAuthor((0, authors_1.buildAuthorPriority)(this.props.authors), null, this.props.searchText);
25
- this.props.handleCancel();
26
- };
27
- }
28
- render() {
29
- const actions = {
30
- primary: {
31
- action: this.handleCreate,
32
- title: 'Create',
33
- },
34
- secondary: {
35
- action: this.props.handleCancel,
36
- title: 'Cancel',
37
- },
38
- };
39
- return (react_1.default.createElement(style_guide_1.Dialog, { isOpen: this.props.isOpen, actions: actions, category: style_guide_1.Category.confirmation, header: 'Create author', message: `Author already exist are you sure you want to create author with the same name?` }));
40
- }
41
- }
42
- exports.default = CreateAuthorPageContainer;
43
- //# 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,0DAA2D;AAC3D,kDAAyB;AAEzB,+CAAuD;AAevD,MAAM,yBAA0B,SAAQ,eAAK,CAAC,SAAgB;IAA9D;;QAsBU,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,KAAK,CAAC,YAAY,CACrB,IAAA,6BAAmB,EAAC,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,8BAAC,oBAAM,IACL,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAQ,CAAC,YAAY,EAC/B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,iFAAiF,GAC1F,CACH,CAAA;IACH,CAAC;CASF;AAED,kBAAe,yBAAyB,CAAA"}
@@ -1,62 +0,0 @@
1
- "use strict";
2
- /*!
3
- * 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.
4
- *
5
- * 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.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const style_guide_1 = require("@manuscripts/style-guide");
18
- const react_1 = __importDefault(require("react"));
19
- const react_popper_1 = require("react-popper");
20
- const styled_components_1 = __importDefault(require("styled-components"));
21
- const InviteAuthorPopperContainer_1 = __importDefault(require("./InviteAuthorPopperContainer"));
22
- const Button = (0, styled_components_1.default)(style_guide_1.TextButton) `
23
- margin-left: ${(props) => props.theme.grid.unit * 3}px;
24
- `;
25
- class InviteAuthorButton extends react_1.default.Component {
26
- constructor() {
27
- super(...arguments);
28
- this.state = {
29
- isOpen: false,
30
- };
31
- this.togglePopper = () => {
32
- this.updateListener(!this.state.isOpen);
33
- this.setState({
34
- isOpen: !this.state.isOpen,
35
- });
36
- };
37
- this.handleClickOutside = (event) => {
38
- if (this.node && !this.node.contains(event.target)) {
39
- this.togglePopper();
40
- }
41
- };
42
- this.updateListener = (isOpen) => {
43
- if (isOpen) {
44
- document.addEventListener('mousedown', this.handleClickOutside);
45
- }
46
- else {
47
- document.removeEventListener('mousedown', this.handleClickOutside);
48
- }
49
- };
50
- }
51
- componentDidMount() {
52
- this.updateListener(this.state.isOpen);
53
- }
54
- render() {
55
- const { isOpen } = this.state;
56
- return (react_1.default.createElement(react_popper_1.Manager, null,
57
- react_1.default.createElement(react_popper_1.Reference, null, ({ ref }) => (react_1.default.createElement(Button, { ref: ref, onClick: this.togglePopper }, "Invite as Collaborator"))),
58
- isOpen && (react_1.default.createElement(react_popper_1.Popper, { placement: 'bottom', innerRef: (node) => (this.node = node) }, (popperProps) => (react_1.default.createElement(InviteAuthorPopperContainer_1.default, { popperProps: popperProps, project: this.props.project, author: this.props.author, updateAuthor: this.props.updateAuthor, tokenActions: this.props.tokenActions }))))));
59
- }
60
- }
61
- exports.default = InviteAuthorButton;
62
- //# 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,0DAAqD;AACrD,kDAAyB;AACzB,+CAA8E;AAC9E,0EAAsC;AAGtC,gGAAuE;AAavE,MAAM,MAAM,GAAG,IAAA,2BAAM,EAAC,wBAAU,CAAC,CAAA;iBAChB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACpD,CAAA;AAED,MAAM,kBAAmB,SAAQ,eAAK,CAAC,SAAuB;IAA9D;;QACS,UAAK,GAAU;YACpB,MAAM,EAAE,KAAK;SACd,CAAA;QAwCO,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,KAAK,CA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E,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,kBAAe,kBAAkB,CAAA"}
@@ -1,62 +0,0 @@
1
- "use strict";
2
- /*!
3
- * 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.
4
- *
5
- * 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.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const style_guide_1 = require("@manuscripts/style-guide");
18
- const react_1 = __importDefault(require("react"));
19
- const styled_components_1 = __importDefault(require("styled-components"));
20
- const api_1 = require("../../lib/api");
21
- const tracking_1 = require("../../lib/tracking");
22
- const Popper_1 = require("../Popper");
23
- const AuthorInvitationForm_1 = require("./AuthorInvitationForm");
24
- const AlertMessageContainer = styled_components_1.default.div `
25
- margin-bottom: ${(props) => props.theme.grid.unit * 2}px;
26
- `;
27
- class InviteAuthorPopperContainer extends react_1.default.Component {
28
- constructor() {
29
- super(...arguments);
30
- this.state = {
31
- invitationError: null,
32
- };
33
- this.handleInvitationSubmit = async (values) => {
34
- const { project } = this.props;
35
- const { email, name, role } = values;
36
- await (0, api_1.projectInvite)(project._id, [{ email, name }], role);
37
- this.props.updateAuthor(this.props.author, email);
38
- (0, tracking_1.trackEvent)({
39
- category: 'Invitations',
40
- action: 'Send',
41
- label: `projectID=${project._id}`,
42
- });
43
- };
44
- }
45
- render() {
46
- const { popperProps, author, tokenActions } = this.props;
47
- const { invitationError } = this.state;
48
- return (react_1.default.createElement(Popper_1.CustomUpPopper, { popperProps: popperProps },
49
- react_1.default.createElement(Popper_1.PopperBody, null,
50
- !!invitationError && (react_1.default.createElement(AlertMessageContainer, null,
51
- react_1.default.createElement(style_guide_1.AlertMessage, { type: style_guide_1.AlertMessageType.error, hideCloseButton: true }, "Sending invitation failed."))),
52
- react_1.default.createElement(AuthorInvitationForm_1.InvitationForm, { invitationValues: {
53
- email: author.email || '',
54
- name: author.bibliographicName.given +
55
- ' ' +
56
- author.bibliographicName.family,
57
- role: 'Writer',
58
- }, handleSubmit: this.handleInvitationSubmit, allowSubmit: true, tokenActions: tokenActions }))));
59
- }
60
- }
61
- exports.default = InviteAuthorPopperContainer;
62
- //# 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,0DAAyE;AACzE,kDAAyB;AAEzB,0EAAsC;AAEtC,uCAA6C;AAC7C,iDAA+C;AAE/C,sCAAsD;AACtD,iEAAyE;AAczE,MAAM,qBAAqB,GAAG,2BAAM,CAAC,GAAG,CAAA;mBACrB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACtD,CAAA;AAED,MAAM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C,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,kBAAe,2BAA2B,CAAA"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /*!
3
- * 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.
4
- *
5
- * 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.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = __importDefault(require("react"));
18
- const Sidebar_1 = require("../Sidebar");
19
- const AuthorInvitationForm_1 = require("./AuthorInvitationForm");
20
- const InviteAuthorsSidebarContents = ({ invitationValues, handleCancel, handleSubmit, invitationSent, tokenActions, }) => (react_1.default.createElement(react_1.default.Fragment, null,
21
- react_1.default.createElement(Sidebar_1.SidebarHeader, { action: handleCancel, isCancel: !invitationSent, title: 'Invite' }),
22
- react_1.default.createElement(Sidebar_1.SidebarContent, null,
23
- react_1.default.createElement(AuthorInvitationForm_1.InvitationForm, { allowSubmit: true, invitationValues: invitationValues, handleSubmit: handleSubmit, tokenActions: tokenActions }))));
24
- const InviteAuthorsSidebar = ({ invitationValues, handleCancel, handleSubmit, invitationSent, tokenActions, }) => (react_1.default.createElement(Sidebar_1.ModalSidebar, null,
25
- react_1.default.createElement(InviteAuthorsSidebarContents, { handleCancel: handleCancel, handleSubmit: handleSubmit, invitationSent: invitationSent, invitationValues: invitationValues, tokenActions: tokenActions })));
26
- exports.default = InviteAuthorsSidebar;
27
- //# 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,kDAAyB;AAGzB,wCAAwE;AACxE,iEAAyE;AAWzE,MAAM,4BAA4B,GAAmC,CAAC,EACpE,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,YAAY,GACb,EAAE,EAAE,CAAC,CACJ;IACE,8BAAC,uBAAa,IACZ,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,CAAC,cAAc,EACzB,KAAK,EAAE,QAAQ,GACf;IACF,8BAAC,wBAAc;QACb,8BAAC,qCAAc,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,8BAAC,sBAAY;IACX,8BAAC,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,kBAAe,oBAAoB,CAAA"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- /*!
3
- * 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.
4
- *
5
- * 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.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const style_guide_1 = require("@manuscripts/style-guide");
18
- const react_1 = __importDefault(require("react"));
19
- const styled_components_1 = __importDefault(require("styled-components"));
20
- const Sidebar_1 = require("../Sidebar");
21
- const AddAuthorButton_1 = __importDefault(require("./AddAuthorButton"));
22
- const PersonInitial = styled_components_1.default.span `
23
- margin-right: ${(props) => props.theme.grid.unit}px;
24
- font-weight: ${(props) => props.theme.font.weight.light};
25
- `;
26
- const PersonName = styled_components_1.default.div `
27
- font-size: 120%;
28
- color: ${(props) => props.theme.colors.text.primary};
29
- font-weight: ${(props) => props.theme.font.weight.medium};
30
- `;
31
- const PeopleData = styled_components_1.default.div `
32
- padding-left: ${(props) => props.theme.grid.unit * 2}px;
33
- `;
34
- const UserDataContainer = styled_components_1.default.div `
35
- display: flex;
36
- align-items: center;
37
- `;
38
- const SearchAuthorsSidebar = ({ createAuthor, searchResults, addedAuthors, authors, }) => (react_1.default.createElement(react_1.default.Fragment, null,
39
- react_1.default.createElement(Sidebar_1.SidebarContent, null, searchResults.map((person) => (react_1.default.createElement(Sidebar_1.SidebarPersonContainer, { key: person._id },
40
- react_1.default.createElement(UserDataContainer, null,
41
- react_1.default.createElement(style_guide_1.Avatar, { src: person.avatar, size: 45 }),
42
- react_1.default.createElement(PeopleData, null,
43
- react_1.default.createElement(PersonName, null,
44
- react_1.default.createElement(PersonInitial, null, person.bibliographicName.given),
45
- person.bibliographicName.family))),
46
- react_1.default.createElement(AddAuthorButton_1.default, { person: person, isSelected: addedAuthors.includes(person.userID), createAuthor: createAuthor, authors: authors })))))));
47
- exports.default = SearchAuthorsSidebar;
48
- //# 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,0DAAiD;AAEjD,kDAAyB;AACzB,0EAAsC;AAEtC,wCAAmE;AACnE,wEAA+C;AAE/C,MAAM,aAAa,GAAG,2BAAM,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,2BAAM,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,2BAAM,CAAC,GAAG,CAAA;kBACX,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACrD,CAAA;AAED,MAAM,iBAAiB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;CAGnC,CAAA;AAcD,MAAM,oBAAoB,GAAgD,CAAC,EACzE,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,OAAO,GACR,EAAE,EAAE,CAAC,CACJ,8BAAC,eAAK,CAAC,QAAQ;IACb,8BAAC,wBAAc,QACZ,aAAa,CAAC,GAAG,CAAC,CAAC,MAA6B,EAAE,EAAE,CAAC,CACpD,8BAAC,gCAAsB,IAAC,GAAG,EAAE,MAAM,CAAC,GAAG;QACrC,8BAAC,iBAAiB;YAChB,8BAAC,oBAAM,IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,GAAI;YACxC,8BAAC,UAAU;gBACT,8BAAC,UAAU;oBACT,8BAAC,aAAa,QAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAiB;oBAC9D,MAAM,CAAC,iBAAiB,CAAC,MAAM,CACrB,CACF,CACK;QACpB,8BAAC,yBAAe,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,kBAAe,oBAAoB,CAAA"}
@@ -1,124 +0,0 @@
1
- "use strict";
2
- /*!
3
- * 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.
4
- *
5
- * 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.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.reorderAuthors = exports.isJointFirstAuthor = exports.buildAuthorsAndAffiliations = exports.getMetaData = exports.buildAffiliationsMap = exports.buildAuthorAffiliations = exports.buildSortedAffiliationIDs = exports.buildAuthorPriority = exports.buildSortedContributors = void 0;
15
- const json_schema_1 = require("@manuscripts/json-schema");
16
- const transform_1 = require("@manuscripts/transform");
17
- const sort_1 = require("./sort");
18
- const buildSortedContributors = (contributors) => contributors.sort(sort_1.ascendingPriority);
19
- exports.buildSortedContributors = buildSortedContributors;
20
- const buildAuthorPriority = (authors) => {
21
- if (!authors.length) {
22
- return 0;
23
- }
24
- const priorities = authors.map((author) => Number(author.priority));
25
- return Math.max(...priorities) + 1;
26
- };
27
- exports.buildAuthorPriority = buildAuthorPriority;
28
- const buildSortedAffiliationIDs = (sortedAuthors) => {
29
- const ids = new Set();
30
- for (const author of sortedAuthors) {
31
- if (author.affiliations) {
32
- author.affiliations.forEach((id) => {
33
- ids.add(id);
34
- });
35
- }
36
- }
37
- return [...ids];
38
- };
39
- exports.buildSortedAffiliationIDs = buildSortedAffiliationIDs;
40
- const buildAuthorAffiliations = (authors, affiliations, sortedAffiliationIDs) => {
41
- const items = new Map();
42
- const sortedAffs = Array.from(affiliations.values());
43
- for (const author of authors) {
44
- items.set(author._id, (author.affiliations || []).map((id) => {
45
- return {
46
- ordinal: sortedAffiliationIDs.indexOf(id) + 1,
47
- data: sortedAffs.find((af) => af._id.startsWith(id)),
48
- };
49
- }));
50
- }
51
- return items;
52
- };
53
- exports.buildAuthorAffiliations = buildAuthorAffiliations;
54
- function createInvalidAffillation(id) {
55
- return {
56
- priority: 0,
57
- manuscriptID: '',
58
- containerID: '',
59
- _id: id,
60
- objectType: 'MPAffiliation',
61
- createdAt: 0,
62
- updatedAt: 0,
63
- };
64
- }
65
- const buildAffiliationsMap = (affiliationIDs, affiliations) => new Map(affiliationIDs.map((id) => {
66
- let associatedItem = affiliations.find((affiliation) => affiliation._id.startsWith(id));
67
- // this provides loose id referencing for cases when affiliation is rejected in track changes and doesn't exist anymore in the modelMap
68
- associatedItem = associatedItem || createInvalidAffillation(id);
69
- return [id, associatedItem];
70
- }));
71
- exports.buildAffiliationsMap = buildAffiliationsMap;
72
- const isContributor = (0, transform_1.hasObjectType)(json_schema_1.ObjectTypes.Contributor);
73
- const isAffiliation = (0, transform_1.hasObjectType)(json_schema_1.ObjectTypes.Affiliation);
74
- const getMetaData = (modelMap) => {
75
- const affiliationAndContributors = [];
76
- const contributorRoles = [];
77
- if (modelMap) {
78
- for (const model of modelMap.values()) {
79
- if (model.objectType === json_schema_1.ObjectTypes.Affiliation ||
80
- model.objectType === json_schema_1.ObjectTypes.Contributor) {
81
- affiliationAndContributors.push(model); // or Contributor
82
- }
83
- if (model.objectType === json_schema_1.ObjectTypes.ContributorRole) {
84
- contributorRoles.push(model);
85
- }
86
- }
87
- return {
88
- authorsAndAffiliations: (0, exports.buildAuthorsAndAffiliations)(affiliationAndContributors),
89
- contributorRoles: contributorRoles,
90
- };
91
- }
92
- };
93
- exports.getMetaData = getMetaData;
94
- const buildAuthorsAndAffiliations = (data) => {
95
- const authors = data.filter(isContributor);
96
- const affiliations = data.filter(isAffiliation);
97
- // sorted authors
98
- const sortedAuthors = authors.sort(sort_1.ascendingPriority);
99
- // array of unique affiliations IDs based on the order give by authors
100
- const sortedAffiliationIDs = (0, exports.buildSortedAffiliationIDs)(sortedAuthors);
101
- const affiliationsMap = (0, exports.buildAffiliationsMap)(sortedAffiliationIDs, affiliations);
102
- const authorAffiliations = (0, exports.buildAuthorAffiliations)(sortedAuthors, affiliationsMap, sortedAffiliationIDs);
103
- return {
104
- affiliations: affiliationsMap,
105
- authors: sortedAuthors,
106
- authorAffiliations,
107
- };
108
- };
109
- exports.buildAuthorsAndAffiliations = buildAuthorsAndAffiliations;
110
- const isJointFirstAuthor = (authors, index) => {
111
- const author = index === 0 ? authors[index] : authors[index - 1];
112
- return Boolean(author.isJointContributor);
113
- };
114
- exports.isJointFirstAuthor = isJointFirstAuthor;
115
- const reorderAuthors = (authors, oldIndex, newIndex) => {
116
- const clonedAuthors = authors.slice(0);
117
- const order = authors.map((_, i) => (i === oldIndex ? newIndex : i));
118
- clonedAuthors.sort((a, b) => {
119
- return order[authors.indexOf(a)] - order[authors.indexOf(b)];
120
- });
121
- return clonedAuthors;
122
- };
123
- exports.reorderAuthors = reorderAuthors;
124
- //# sourceMappingURL=authors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authors.js","sourceRoot":"","sources":["../../../src/lib/authors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,0DAMiC;AACjC,sDAAsD;AAEtD,iCAA0C;AAenC,MAAM,uBAAuB,GAAG,CAAC,YAA2B,EAAE,EAAE,CACrE,YAAY,CAAC,IAAI,CAAC,wBAAiB,CAAC,CAAA;AADzB,QAAA,uBAAuB,2BACE;AAE/B,MAAM,mBAAmB,GAAG,CAAC,OAAsB,EAAE,EAAE;IAC5D,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACnB,OAAO,CAAC,CAAA;KACT;IAED,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEnE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAA;AACpC,CAAC,CAAA;AARY,QAAA,mBAAmB,uBAQ/B;AAEM,MAAM,yBAAyB,GAAG,CACvC,aAA4B,EAClB,EAAE;IACZ,MAAM,GAAG,GAAG,IAAI,GAAG,EAAU,CAAA;IAE7B,KAAK,MAAM,M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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;AAXY,QAAA,cAAc,kBAW1B"}
@@ -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 AddedIcon from '@manuscripts/assets/react/AddedIcon';
13
- import { AddIconInverted, IconButton } from '@manuscripts/style-guide';
14
- import React from 'react';
15
- import styled from 'styled-components';
16
- import { buildAuthorPriority } from '../../lib/authors';
17
- import { theme } from '../../theme/theme';
18
- const AddIconButton = styled(IconButton).attrs({ defaultColor: true }) `
19
- width: unset;
20
- height: unset;
21
- `;
22
- class AddAuthorButton extends React.Component {
23
- constructor() {
24
- super(...arguments);
25
- this.state = {
26
- isSelected: false,
27
- };
28
- this.handleSelected = () => {
29
- const { person, authors, createAuthor } = this.props;
30
- this.setState({ isSelected: true });
31
- createAuthor(buildAuthorPriority(authors), person);
32
- };
33
- }
34
- componentDidMount() {
35
- this.setState({
36
- isSelected: this.props.isSelected || false,
37
- });
38
- }
39
- render() {
40
- const { isSelected } = this.state;
41
- if (isSelected) {
42
- return (React.createElement(AddIconButton, null,
43
- React.createElement(AddedIcon, null)));
44
- }
45
- return (React.createElement(AddIconButton, { onClick: this.handleSelected },
46
- React.createElement(AddIconInverted, { color: theme.colors.brand.medium })));
47
- }
48
- }
49
- export default AddAuthorButton;
50
- //# sourceMappingURL=AddAuthorButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddAuthorButton.js","sourceRoot":"","sources":["../../../../src/components/metadata/AddAuthorButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAE3D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;;;CAGrE,CAAA;AAkBD,MAAM,eAAgB,SAAQ,KAAK,CAAC,SAAuB;IAA3D;;QACS,UAAK,GAAU;YACpB,UAAU,EAAE,KAAK;SAClB,CAAA;QAyBO,mBAAc,GAAG,GAAG,EAAE;YAC5B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;YACpD,IAAI,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;YAEnC,YAAY,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAA;QACpD,CAAC,CAAA;IACH,CAAC;IA7BQ,iBAAiB;QACtB,IAAI,CAAC,QAAQ,CAAC;YACZ,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK;SAC3C,CAAC,CAAA;IACJ,CAAC;IAEM,MAAM;QACX,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QACjC,IAAI,UAAU,EAAE;YACd,OAAO,CACL,oBAAC,aAAa;gBACZ,oBAAC,SAAS,OAAG,CACC,CACjB,CAAA;SACF;QAED,OAAO,CACL,oBAAC,aAAa,IAAC,OAAO,EAAE,IAAI,CAAC,cAAc;YACzC,oBAAC,eAAe,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAI,CACvC,CACjB,CAAA;IACH,CAAC;CAQF;AAED,eAAe,eAAe,CAAA"}
@@ -1,64 +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 { AddAuthorsModal } from './AuthorsModals';
14
- export class AddAuthorsModalContainer extends React.Component {
15
- constructor() {
16
- super(...arguments);
17
- this.state = {
18
- isCreateAuthorOpen: false,
19
- searchText: '',
20
- searchResults: [],
21
- };
22
- this.handleCreateAuthor = () => {
23
- if (this.state.isCreateAuthorOpen) {
24
- this.setState({
25
- searchText: '',
26
- });
27
- }
28
- this.setState({
29
- isCreateAuthorOpen: !this.state.isCreateAuthorOpen,
30
- });
31
- };
32
- this.handleSearchChange = (event) => {
33
- this.setState({ searchText: event.currentTarget.value });
34
- this.search(event.currentTarget.value);
35
- };
36
- this.search = (searchText) => {
37
- const { nonAuthors } = this.props;
38
- if (!nonAuthors || !searchText) {
39
- return this.setState({ searchResults: [] });
40
- }
41
- searchText = searchText.toLowerCase();
42
- const searchResults = nonAuthors.filter((person) => {
43
- if (searchText.includes('@')) {
44
- return person.email && person.email.toLowerCase().includes(searchText);
45
- }
46
- const personName = [
47
- person.bibliographicName.given,
48
- person.bibliographicName.family,
49
- ]
50
- .filter((part) => part)
51
- .join(' ')
52
- .toLowerCase();
53
- return personName && personName.includes(searchText);
54
- });
55
- this.setState({ searchResults });
56
- };
57
- }
58
- render() {
59
- const { isCreateAuthorOpen, searchResults, searchText } = this.state;
60
- const { numberOfAddedAuthors, createAuthor, addedAuthors, authors, handleAddingDoneCancel, nonAuthors, } = this.props;
61
- return (React.createElement(AddAuthorsModal, { authors: authors, nonAuthors: nonAuthors, addedAuthors: addedAuthors, numberOfAddedAuthors: numberOfAddedAuthors, isCreateAuthorOpen: isCreateAuthorOpen, searchResults: searchResults, searchText: searchText, createAuthor: createAuthor, handleAddingDoneCancel: handleAddingDoneCancel, handleSearchChange: this.handleSearchChange, handleCreateAuthor: this.handleCreateAuthor }));
62
- }
63
- }
64
- //# sourceMappingURL=AddAuthorsModalContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddAuthorsModalContainer.js","sourceRoot":"","sources":["../../../../src/components/metadata/AddAuthorsModalContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAU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AAI,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;iBACvE;gBAED,MAAM,UAAU,GAAG;oBACjB,MAAM,CAAC,iBAAiB,CAAC,KAAK;oBAC9B,MAAM,CAAC,iBAAiB,CAAC,MAAM;iBAChC;qBACE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;qBACtB,IAAI,CAAC,GAAG,CAAC;qBACT,WAAW,EAAE,CAAA;gBAEhB,OAAO,UAAU,IAAI,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;YACtD,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC,CAAA;QAClC,CAAC,CAAA;IACH,CAAC;IAzEQ,MAAM;QACX,MAAM,EAAE,kBAAkB,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAEpE,MAAM,EACJ,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,sBAAsB,EACtB,UAAU,GACX,GAAG,IAAI,CAAC,KAAK,CAAA;QAEd,OAAO,CACL,oBAAC,eAAe,IACd,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,oBAAoB,EAAE,oBAAoB,EAC1C,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAC3C,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,GAC3C,CACH,CAAA;IACH,CAAC;CA8CF"}
@@ -1,62 +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 { ModalSidebar, SidebarContent, SidebarHeader, SidebarPersonContainer, SidebarSearch, } from '../Sidebar';
16
- import AddAuthorButton from './AddAuthorButton';
17
- import CreateAuthorPageContainer from './CreateAuthorPageContainer';
18
- import SearchAuthorsSidebar from './SearchAuthorsSidebar';
19
- const PersonInitial = styled.span `
20
- margin-right: ${(props) => props.theme.grid.unit}px;
21
- font-weight: ${(props) => props.theme.font.weight.light};
22
- `;
23
- const PersonName = styled.div `
24
- box-sizing: border-box;
25
- color: ${(props) => props.theme.colors.text.primary};
26
- font-size: ${(props) => props.theme.font.size.xlarge};
27
- font-weight: ${(props) => props.theme.font.weight.medium};
28
- max-width: 138px;
29
- overflow: hidden;
30
- text-overflow: ellipsis;
31
- white-space: nowrap;
32
- width: 100%;
33
- `;
34
- const PersonData = styled.div `
35
- margin-left: ${(props) => props.theme.grid.unit * 2}px;
36
- `;
37
- const UserDataContainer = styled.div `
38
- align-items: center;
39
- display: flex;
40
- flex: 1;
41
- margin-right: 16px;
42
- overflow: hidden;
43
- `;
44
- const SearchContainer = styled.div `
45
- margin-bottom: ${(props) => props.theme.grid.unit * 2}px;
46
- `;
47
- const AddAuthorsSidebar = ({ nonAuthors, numberOfAddedAuthors, searchText, addedAuthors, handleDoneCancel, createAuthor, handleSearchChange, searchResults, authors, isCreateAuthorOpen, handleCreateAuthor, }) => {
48
- return (React.createElement(ModalSidebar, { "data-cy": 'add-author-sidebar' },
49
- React.createElement(SidebarHeader, { action: handleDoneCancel, isCancel: !numberOfAddedAuthors, title: 'Add Author' }),
50
- React.createElement(SearchContainer, null,
51
- React.createElement(SidebarSearch, { autoFocus: true, handleSearchChange: handleSearchChange, maxLength: 100, placeholder: 'Search name/email', value: searchText })),
52
- searchText === '' ? (React.createElement(SidebarContent, { "data-cy": "non-authors-list" }, nonAuthors.map((person) => (React.createElement(SidebarPersonContainer, { key: person._id },
53
- React.createElement(UserDataContainer, null,
54
- React.createElement(Avatar, { src: person.avatar, size: 45 }),
55
- React.createElement(PersonData, null,
56
- React.createElement(PersonName, null,
57
- React.createElement(PersonInitial, null, person.bibliographicName.given),
58
- person.bibliographicName.family))),
59
- React.createElement(AddAuthorButton, { person: person, isSelected: addedAuthors.includes(person.userID), createAuthor: createAuthor, authors: authors })))))) : isCreateAuthorOpen ? (React.createElement(CreateAuthorPageContainer, { "data-cy": "create-author-dialog", authors: authors, createAuthor: createAuthor, isOpen: isCreateAuthorOpen, handleCancel: handleCreateAuthor, searchText: searchText })) : (React.createElement(SearchAuthorsSidebar, { "data-cy": "search-authors-sidebar", addedAuthors: addedAuthors, createAuthor: createAuthor, searchResults: searchResults, authors: authors }))));
60
- };
61
- export default AddAuthorsSidebar;
62
- //# sourceMappingURL=AddAuthorsSidebar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddAuthorsSidebar.js","sourceRoot":"","sources":["../../../../src/components/metadata/AddAuthorsSidebar.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,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,sB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C,UAAU,EAAE,UAAU,GACtB,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,oBAAoB,eACX,wBAAwB,EAChC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,GAChB,CACH,CACY,CAChB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,17 +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 { AffiliationsEditor, AuthorForm, } from '@manuscripts/style-guide';
13
- import React from 'react';
14
- export const AuthorFormContainer = ({ author, affiliations, authorAffiliations, handleSave, addAuthorAffiliation, removeAuthorAffiliation, updateAffiliation, removeAuthor, isRemoveAuthorOpen, handleRemoveAuthor, contributorRoles, createContributorRole, }) => (React.createElement(React.Fragment, null,
15
- React.createElement(AuthorForm, { author: author, handleSave: handleSave, isRemoveAuthorOpen: isRemoveAuthorOpen, removeAuthor: removeAuthor, handleRemoveAuthor: handleRemoveAuthor, contributorRoles: contributorRoles, createContributorRole: createContributorRole }),
16
- React.createElement(AffiliationsEditor, { affiliations: affiliations, authorAffiliations: authorAffiliations, addAuthorAffiliation: addAuthorAffiliation, removeAuthorAffiliation: removeAuthorAffiliation, updateAffiliation: updateAffiliation })));
17
- //# sourceMappingURL=AuthorFormContainer.js.map