@manuscripts/article-editor 1.10.10 → 1.10.11-LEAN-3301

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 (128) hide show
  1. package/dist/{types/components/metadata/SearchAuthorsSidebar.d.ts → cjs/components/UtilitiesEffects.js} +9 -10
  2. package/dist/cjs/components/UtilitiesEffects.js.map +1 -0
  3. package/dist/cjs/components/projects/ManuscriptPageContainer.js +4 -7
  4. package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
  5. package/dist/cjs/hooks/use-create-editor.js +11 -6
  6. package/dist/cjs/hooks/use-create-editor.js.map +1 -1
  7. package/dist/cjs/hooks/use-handle-snapshot.js +4 -1
  8. package/dist/cjs/hooks/use-handle-snapshot.js.map +1 -1
  9. package/dist/cjs/hooks/use-window-unload-effect.js +6 -2
  10. package/dist/cjs/hooks/use-window-unload-effect.js.map +1 -1
  11. package/dist/cjs/lib/deeper-equal.js +7 -3
  12. package/dist/cjs/lib/deeper-equal.js.map +1 -1
  13. package/dist/cjs/postgres-data/buildData.js +0 -4
  14. package/dist/cjs/postgres-data/buildData.js.map +1 -1
  15. package/dist/cjs/postgres-data/savingUtilities.js +29 -3
  16. package/dist/cjs/postgres-data/savingUtilities.js.map +1 -1
  17. package/dist/cjs/quarterback/QuarterbackStepsExchanger.js +14 -5
  18. package/dist/cjs/quarterback/QuarterbackStepsExchanger.js.map +1 -1
  19. package/dist/cjs/store/Store.js +1 -6
  20. package/dist/cjs/store/Store.js.map +1 -1
  21. package/dist/cjs/store/useStore.js +13 -12
  22. package/dist/cjs/store/useStore.js.map +1 -1
  23. package/dist/{types/components/metadata/AuthorsPage.d.ts → es/components/UtilitiesEffects.js} +7 -7
  24. package/dist/es/components/UtilitiesEffects.js.map +1 -0
  25. package/dist/es/components/projects/ManuscriptPageContainer.js +4 -7
  26. package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
  27. package/dist/es/hooks/use-create-editor.js +11 -6
  28. package/dist/es/hooks/use-create-editor.js.map +1 -1
  29. package/dist/es/hooks/use-handle-snapshot.js +4 -1
  30. package/dist/es/hooks/use-handle-snapshot.js.map +1 -1
  31. package/dist/es/hooks/use-window-unload-effect.js +6 -2
  32. package/dist/es/hooks/use-window-unload-effect.js.map +1 -1
  33. package/dist/es/lib/deeper-equal.js +7 -3
  34. package/dist/es/lib/deeper-equal.js.map +1 -1
  35. package/dist/es/postgres-data/buildData.js +0 -4
  36. package/dist/es/postgres-data/buildData.js.map +1 -1
  37. package/dist/es/postgres-data/savingUtilities.js +27 -2
  38. package/dist/es/postgres-data/savingUtilities.js.map +1 -1
  39. package/dist/es/quarterback/QuarterbackStepsExchanger.js +15 -6
  40. package/dist/es/quarterback/QuarterbackStepsExchanger.js.map +1 -1
  41. package/dist/es/store/Store.js +1 -6
  42. package/dist/es/store/Store.js.map +1 -1
  43. package/dist/es/store/useStore.js +13 -12
  44. package/dist/es/store/useStore.js.map +1 -1
  45. package/dist/types/components/{metadata/AuthorModalViews.d.ts → UtilitiesEffects.d.ts} +2 -3
  46. package/dist/types/hooks/use-window-unload-effect.d.ts +1 -1
  47. package/dist/types/postgres-data/savingUtilities.d.ts +2 -1
  48. package/dist/types/quarterback/QuarterbackStepsExchanger.d.ts +11 -2
  49. package/dist/types/store/Store.d.ts +2 -3
  50. package/dist/types/store/useStore.d.ts +3 -1
  51. package/package.json +3 -4
  52. package/dist/cjs/components/metadata/AddAuthorButton.js +0 -55
  53. package/dist/cjs/components/metadata/AddAuthorButton.js.map +0 -1
  54. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js +0 -71
  55. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  56. package/dist/cjs/components/metadata/AddAuthorsSidebar.js +0 -67
  57. package/dist/cjs/components/metadata/AddAuthorsSidebar.js.map +0 -1
  58. package/dist/cjs/components/metadata/AuthorFormContainer.js +0 -24
  59. package/dist/cjs/components/metadata/AuthorFormContainer.js.map +0 -1
  60. package/dist/cjs/components/metadata/AuthorInvitationForm.js +0 -115
  61. package/dist/cjs/components/metadata/AuthorInvitationForm.js.map +0 -1
  62. package/dist/cjs/components/metadata/AuthorModalViews.js +0 -161
  63. package/dist/cjs/components/metadata/AuthorModalViews.js.map +0 -1
  64. package/dist/cjs/components/metadata/AuthorsModalContainer.js +0 -99
  65. package/dist/cjs/components/metadata/AuthorsModalContainer.js.map +0 -1
  66. package/dist/cjs/components/metadata/AuthorsModals.js +0 -37
  67. package/dist/cjs/components/metadata/AuthorsModals.js.map +0 -1
  68. package/dist/cjs/components/metadata/AuthorsPage.js +0 -100
  69. package/dist/cjs/components/metadata/AuthorsPage.js.map +0 -1
  70. package/dist/cjs/components/metadata/AuthorsSidebar.js +0 -34
  71. package/dist/cjs/components/metadata/AuthorsSidebar.js.map +0 -1
  72. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js +0 -43
  73. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  74. package/dist/cjs/components/metadata/InviteAuthorButton.js +0 -62
  75. package/dist/cjs/components/metadata/InviteAuthorButton.js.map +0 -1
  76. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js +0 -62
  77. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  78. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js +0 -27
  79. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  80. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js +0 -48
  81. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  82. package/dist/cjs/lib/authors.js +0 -124
  83. package/dist/cjs/lib/authors.js.map +0 -1
  84. package/dist/es/components/metadata/AddAuthorButton.js +0 -50
  85. package/dist/es/components/metadata/AddAuthorButton.js.map +0 -1
  86. package/dist/es/components/metadata/AddAuthorsModalContainer.js +0 -64
  87. package/dist/es/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  88. package/dist/es/components/metadata/AddAuthorsSidebar.js +0 -62
  89. package/dist/es/components/metadata/AddAuthorsSidebar.js.map +0 -1
  90. package/dist/es/components/metadata/AuthorFormContainer.js +0 -17
  91. package/dist/es/components/metadata/AuthorFormContainer.js.map +0 -1
  92. package/dist/es/components/metadata/AuthorInvitationForm.js +0 -108
  93. package/dist/es/components/metadata/AuthorInvitationForm.js.map +0 -1
  94. package/dist/es/components/metadata/AuthorModalViews.js +0 -133
  95. package/dist/es/components/metadata/AuthorModalViews.js.map +0 -1
  96. package/dist/es/components/metadata/AuthorsModalContainer.js +0 -94
  97. package/dist/es/components/metadata/AuthorsModalContainer.js.map +0 -1
  98. package/dist/es/components/metadata/AuthorsModals.js +0 -29
  99. package/dist/es/components/metadata/AuthorsModals.js.map +0 -1
  100. package/dist/es/components/metadata/AuthorsPage.js +0 -92
  101. package/dist/es/components/metadata/AuthorsPage.js.map +0 -1
  102. package/dist/es/components/metadata/AuthorsSidebar.js +0 -29
  103. package/dist/es/components/metadata/AuthorsSidebar.js.map +0 -1
  104. package/dist/es/components/metadata/CreateAuthorPageContainer.js +0 -38
  105. package/dist/es/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  106. package/dist/es/components/metadata/InviteAuthorButton.js +0 -57
  107. package/dist/es/components/metadata/InviteAuthorButton.js.map +0 -1
  108. package/dist/es/components/metadata/InviteAuthorPopperContainer.js +0 -57
  109. package/dist/es/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  110. package/dist/es/components/metadata/InviteAuthorsSidebar.js +0 -22
  111. package/dist/es/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  112. package/dist/es/components/metadata/SearchAuthorsSidebar.js +0 -43
  113. package/dist/es/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  114. package/dist/es/lib/authors.js +0 -112
  115. package/dist/es/lib/authors.js.map +0 -1
  116. package/dist/types/components/metadata/AddAuthorButton.d.ts +0 -29
  117. package/dist/types/components/metadata/AddAuthorsModalContainer.d.ts +0 -38
  118. package/dist/types/components/metadata/AddAuthorsSidebar.d.ts +0 -28
  119. package/dist/types/components/metadata/AuthorFormContainer.d.ts +0 -31
  120. package/dist/types/components/metadata/AuthorInvitationForm.d.ts +0 -36
  121. package/dist/types/components/metadata/AuthorsModalContainer.d.ts +0 -48
  122. package/dist/types/components/metadata/AuthorsModals.d.ts +0 -50
  123. package/dist/types/components/metadata/AuthorsSidebar.d.ts +0 -24
  124. package/dist/types/components/metadata/CreateAuthorPageContainer.d.ts +0 -25
  125. package/dist/types/components/metadata/InviteAuthorButton.d.ts +0 -33
  126. package/dist/types/components/metadata/InviteAuthorPopperContainer.d.ts +0 -31
  127. package/dist/types/components/metadata/InviteAuthorsSidebar.d.ts +0 -24
  128. package/dist/types/lib/authors.d.ts +0 -42
@@ -1,94 +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 { buildAffiliation, buildBibliographicName, buildContributor, buildContributorRole, } from '@manuscripts/transform';
14
- import React from 'react';
15
- import { stripTracked } from '../track-changes/utils';
16
- import { AuthorsModal } from './AuthorsModals';
17
- class AuthorsModalContainer extends React.Component {
18
- constructor() {
19
- super(...arguments);
20
- this.state = {
21
- isRemoveAuthorOpen: false,
22
- };
23
- this.createContributorRole = async (name) => {
24
- const contributorRole = buildContributorRole(name);
25
- return this.props.saveTrackModel(contributorRole);
26
- };
27
- this.handleRemoveAuthor = () => this.setState({ isRemoveAuthorOpen: !this.state.isRemoveAuthorOpen });
28
- this.removeAuthor = async (author) => {
29
- await this.props.removeAuthor(author);
30
- this.handleRemoveAuthor();
31
- };
32
- this.handleSaveAuthor = async (values) => {
33
- await this.props.saveTrackModel({
34
- objectType: ObjectTypes.Contributor,
35
- ...values,
36
- });
37
- };
38
- this.addAuthorAffiliation = async (affiliation) => {
39
- const selectedAuthor = this.getSelectedAuthor();
40
- if (!selectedAuthor) {
41
- return;
42
- }
43
- let affiliationObj;
44
- this.props.affiliations.forEach((aff) => {
45
- if (affiliation.startsWith(aff._id)) {
46
- affiliationObj = aff;
47
- }
48
- });
49
- if (!affiliationObj) {
50
- affiliationObj = await this.props.saveTrackModel(buildAffiliation(affiliation));
51
- }
52
- const author = {
53
- ...selectedAuthor,
54
- affiliations: (selectedAuthor.affiliations || []).concat(affiliationObj._id),
55
- };
56
- await this.props.saveTrackModel(author);
57
- };
58
- this.removeAuthorAffiliation = async (affiliation) => {
59
- const selectedAuthor = this.getSelectedAuthor();
60
- if (!selectedAuthor) {
61
- return;
62
- }
63
- const nextAuthor = {
64
- ...selectedAuthor,
65
- affiliations: (selectedAuthor.affiliations || []).filter((aff) => aff !== affiliation._id),
66
- };
67
- console.log(nextAuthor);
68
- await this.props.saveTrackModel(nextAuthor);
69
- };
70
- this.updateAffiliation = async (affiliation) => {
71
- await this.props.saveTrackModel(affiliation);
72
- };
73
- this.getSelectedAuthor = () => {
74
- const sel = this.props.authors.find((author) => stripTracked(author._id) ===
75
- stripTracked(this.props.selectedAuthor || '')) || null;
76
- return sel;
77
- };
78
- this.handleDrop = (oldIndex, newIndex) => {
79
- this.props.handleDrop(this.props.authors, oldIndex, newIndex);
80
- };
81
- this.createEmptyAuthor = async () => {
82
- const authorInfo = buildContributor(buildBibliographicName({ given: '', family: '' }), 'author', this.props.authors.length + 1);
83
- const author = await this.props.saveTrackModel(authorInfo);
84
- this.props.selectAuthor(author);
85
- };
86
- }
87
- render() {
88
- const { isRemoveAuthorOpen } = this.state;
89
- const { authors, authorAffiliations, affiliations, selectAuthor, contributorRoles, } = this.props;
90
- return (React.createElement(AuthorsModal, { "data-cy": "authors-editing-modal", authors: authors, authorAffiliations: authorAffiliations, affiliations: affiliations, selectedAuthor: this.getSelectedAuthor(), isRemoveAuthorOpen: isRemoveAuthorOpen, addAuthorAffiliation: this.addAuthorAffiliation, removeAuthorAffiliation: this.removeAuthorAffiliation, updateAffiliation: this.updateAffiliation, handleDrop: this.handleDrop, handleSaveAuthor: this.handleSaveAuthor, openAddAuthors: this.createEmptyAuthor, selectAuthor: selectAuthor, removeAuthor: this.removeAuthor, handleRemoveAuthor: this.handleRemoveAuthor, contributorRoles: contributorRoles, createContributorRole: this.createContributorRole }));
91
- }
92
- }
93
- export default AuthorsModalContainer;
94
- //# sourceMappingURL=AuthorsModalContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorsModalContainer.js","sourceRoot":"","sources":["../../../../src/components/metadata/AuthorsModalContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAKL,WAAW,GAEZ,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAEL,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AA8B9C,MAAM,qBAAsB,SAAQ,KAAK,CAAC,SAAuB;IAAjE;;QACS,UAAK,GAAG;YACb,kBAAkB,EAAE,KAAK;SAC1B,CAAA;QAmCO,0BAAqB,GAAG,KAAK,EACnC,IAAY,EACc,EAAE;YAC5B,MAAM,eAA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,EAAE,IAAI,CAAC,qBAAqB,GACjD,CACH,CAAA;IACH,CAAC;CA0GF;AAED,eAAe,qBAAqB,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 React from 'react';
13
- import styled from 'styled-components';
14
- import { ModalBody, StyledModalMain } from '../Sidebar';
15
- import AddAuthorsSidebar from './AddAuthorsSidebar';
16
- import { AuthorFormContainer } from './AuthorFormContainer';
17
- import { AddAuthorsPage, AuthorDetailsPage } from './AuthorsPage';
18
- import AuthorsSidebar from './AuthorsSidebar';
19
- export const ScrollableModalMain = styled(StyledModalMain) `
20
- overflow-y: auto;
21
- `;
22
- export const AuthorsModal = ({ authors, authorAffiliations, affiliations, removeAuthor, selectAuthor, selectedAuthor, openAddAuthors, handleSaveAuthor, addAuthorAffiliation, removeAuthorAffiliation, updateAffiliation, handleDrop, isRemoveAuthorOpen, handleRemoveAuthor, contributorRoles, createContributorRole, }) => (React.createElement(ModalBody, null,
23
- React.createElement(AuthorsSidebar, { authors: authors, authorAffiliations: authorAffiliations, selectAuthor: selectAuthor, selectedAuthor: selectedAuthor, openAddAuthors: openAddAuthors, handleDrop: handleDrop }),
24
- React.createElement(ScrollableModalMain, null, selectedAuthor ? (React.createElement(AuthorFormContainer, { author: selectedAuthor, affiliations: affiliations, authorAffiliations: authorAffiliations.get(selectedAuthor._id), handleSave: handleSaveAuthor, addAuthorAffiliation: addAuthorAffiliation, removeAuthorAffiliation: removeAuthorAffiliation, updateAffiliation: updateAffiliation, isRemoveAuthorOpen: isRemoveAuthorOpen, handleRemoveAuthor: handleRemoveAuthor, removeAuthor: removeAuthor, contributorRoles: contributorRoles, createContributorRole: createContributorRole })) : (React.createElement(AuthorDetailsPage, null)))));
25
- export const AddAuthorsModal = ({ nonAuthors, authors, addedAuthors, numberOfAddedAuthors, searchResults, searchText, createAuthor, handleAddingDoneCancel, handleSearchChange, isCreateAuthorOpen, handleCreateAuthor, }) => (React.createElement(ModalBody, null,
26
- React.createElement(AddAuthorsSidebar, { authors: authors, nonAuthors: nonAuthors, numberOfAddedAuthors: numberOfAddedAuthors, searchText: searchText, addedAuthors: addedAuthors, handleDoneCancel: handleAddingDoneCancel, createAuthor: createAuthor, handleSearchChange: handleSearchChange, searchResults: searchResults, isCreateAuthorOpen: isCreateAuthorOpen, handleCreateAuthor: handleCreateAuthor }),
27
- React.createElement(StyledModalMain, null,
28
- React.createElement(AddAuthorsPage, { addedAuthorsCount: numberOfAddedAuthors }))));
29
- //# sourceMappingURL=AuthorsModals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorsModals.js","sourceRoot":"","sources":["../../../../src/components/metadata/AuthorsModals.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AASH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAGtC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjE,OAA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UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,EAAE,EAAE,CAAC,CACJ,oBAAC,SAAS;IACR,oBAAC,iBAAiB,IAChB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,sBAAsB,EACxC,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,kBAAkB,EAAE,kBAAkB,GACtC;IACF,oBAAC,eAAe;QACd,oBAAC,cAAc,IAAC,iBAAiB,EAAE,oBAAoB,GAAI,CAC3C,CACR,CACb,CAAA"}
@@ -1,92 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import AddedIcon from '@manuscripts/assets/react/AddedIcon';
13
- import AuthorPlaceholder from '@manuscripts/assets/react/AuthorPlaceholder';
14
- import ContributorDetails from '@manuscripts/assets/react/ContributorDetailsPlaceholder';
15
- import React from 'react';
16
- import styled from 'styled-components';
17
- const AddAuthorsMessage = () => (React.createElement("span", null, "Add authors to your author list from your collaborators, or invite new ones"));
18
- const SelectAuthorMessage = () => (React.createElement("span", null, "Select an author from the list to display their details here."));
19
- const AddedAuthorsMessage = ({ addedCount }) => React.createElement("span", null, "Authors added");
20
- const OuterContainer = styled.div `
21
- display: flex;
22
- flex-direction: column;
23
- align-items: center;
24
- justify-content: center;
25
- height: 100%;
26
- overflow-y: auto;
27
- `;
28
- const InnerContainer = styled.div `
29
- text-align: center;
30
- max-width: 480px;
31
- font-size: ${(props) => props.theme.font.size.xlarge};
32
- line-height: ${(props) => props.theme.font.lineHeight.large};
33
- `;
34
- const Placeholder = styled.div `
35
- display: flex;
36
- justify-content: center;
37
- margin-bottom: ${(props) => props.theme.grid.unit * 5}px;
38
- `;
39
- const Action = styled.div `
40
- display: flex;
41
- align-items: center;
42
- justify-content: center;
43
- font-size: ${(props) => props.theme.font.size.xlarge};
44
- font-weight: ${(props) => props.theme.font.weight.medium};
45
- letter-spacing: -0.5px;
46
- `;
47
- const Message = styled.div `
48
- max-width: 400px;
49
- font-size: ${(props) => props.theme.font.size.xlarge};
50
- margin-top: ${(props) => props.theme.grid.unit * 6}px;
51
- font-weight: ${(props) => props.theme.font.weight.light};
52
- color: ${(props) => props.theme.colors.text.secondary};
53
-
54
- @media (max-width: 850px) {
55
- margin-right: ${(props) => props.theme.grid.unit * 5}px;
56
- margin-left: ${(props) => props.theme.grid.unit * 5}px;
57
- max-width: 350px;
58
- }
59
- `;
60
- const AddedMessage = styled(Message) `
61
- margin-top: 2px;
62
- `;
63
- const IconContainer = styled.div `
64
- display: flex;
65
- align-self: center;
66
- padding-right: 5px;
67
- `;
68
- const MessageContainer = styled.div `
69
- display: flex;
70
- justify-content: center;
71
- `;
72
- export const AddAuthorsPage = ({ addedAuthorsCount, }) => (React.createElement(OuterContainer, null,
73
- React.createElement(InnerContainer, null,
74
- React.createElement(Placeholder, null,
75
- React.createElement(AuthorPlaceholder, null)),
76
- addedAuthorsCount ? (React.createElement(MessageContainer, { "data-cy": 'add-author-message' },
77
- React.createElement(IconContainer, null,
78
- React.createElement(AddedIcon, null)),
79
- React.createElement(AddedMessage, null,
80
- React.createElement(AddedAuthorsMessage, { addedCount: addedAuthorsCount })))) : (React.createElement(React.Fragment, null,
81
- React.createElement(Action, null, "Add Author"),
82
- React.createElement(Message, null,
83
- React.createElement(AddAuthorsMessage, null)))))));
84
- export const AuthorDetailsPage = () => (React.createElement(OuterContainer, { "data-cy": 'author-details' },
85
- React.createElement(InnerContainer, null,
86
- React.createElement(Placeholder, null,
87
- React.createElement(ContributorDetails, null)),
88
- React.createElement(React.Fragment, null,
89
- React.createElement(Action, null, "Author Details"),
90
- React.createElement(Message, null,
91
- React.createElement(SelectAuthorMessage, null))))));
92
- //# sourceMappingURL=AuthorsPage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorsPage.js","sourceRoot":"","sources":["../../../../src/components/metadata/AuthorsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,iBAAiB,MAAM,6CAA6C,CAAA;AAC3E,OAAO,kBAAkB,MAAM,yDAAyD,CAAA;AACxF,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,CAC9B,gHAEO,CACR,CAAA;AACD,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,CAChC,kGAA0E,CAC3E,CAAA;AAED,MAAM,mBAAmB,GAEpB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,kDAA0B,CAAA;AAEnD,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOhC,CAAA;AAED,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;eAGlB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,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G,MAAM,CAAC,GAAG,CAAA;;;;CAI/B,CAAA;AAED,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGlC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAiD,CAAC,EAC3E,iBAAiB,GAClB,EAAE,EAAE,CAAC,CACJ,oBAAC,cAAc;IACb,oBAAC,cAAc;QACb,oBAAC,WAAW;YACV,oBAAC,iBAAiB,OAAG,CACT;QAEb,iBAAiB,CAAC,CAAC,CAAC,CACnB,oBAAC,gBAAgB,eAAU,oBAAoB;YAC7C,oBAAC,aAAa;gBACZ,oBAAC,SAAS,OAAG,CACC;YAEhB,oBAAC,YAAY;gBACX,oBAAC,mBAAmB,IAAC,UAAU,EAAE,iBAAiB,GAAI,CACzC,CACE,CACpB,CAAC,CAAC,CAAC,CACF,oBAAC,KAAK,CAAC,QAAQ;YACb,oBAAC,MAAM,qBAAoB;YAC3B,oBAAC,OAAO;gBACN,oBAAC,iBAAiB,OAAG,CACb,CACK,CAClB,CACc,CACF,CAClB,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAA4B,GAAG,EAAE,CAAC,CAC9D,oBAAC,cAAc,eAAU,gBAAgB;IACvC,oBAAC,cAAc;QACb,oBAAC,WAAW;YACV,oBAAC,kBAAkB,OAAG,CACV;QAEd,oBAAC,KAAK,CAAC,QAAQ;YACb,oBAAC,MAAM,yBAAwB;YAC/B,oBAAC,OAAO;gBACN,oBAAC,mBAAmB,OAAG,CACf,CACK,CACF,CACF,CAClB,CAAA"}
@@ -1,29 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { AuthorsDND } from '@manuscripts/style-guide';
13
- import React from 'react';
14
- import styled from 'styled-components';
15
- import { AddButton } from '../AddButton';
16
- import { ModalSidebar, SidebarContent, SidebarHeader } from '../Sidebar';
17
- const SidebarAction = styled.div `
18
- display: flex;
19
- align-items: center;
20
- margin-bottom: ${(props) => props.theme.grid.unit * 4}px;
21
- `;
22
- const AuthorsSidebar = ({ openAddAuthors, authors, selectAuthor, handleDrop, selectedAuthor, }) => (React.createElement(ModalSidebar, { "data-cy": 'authors-sidebar' },
23
- React.createElement(SidebarHeader, { title: 'Authors' }),
24
- React.createElement(SidebarContent, null,
25
- React.createElement(SidebarAction, null,
26
- React.createElement(AddButton, { action: openAddAuthors, size: 'medium', title: 'New Author' })),
27
- React.createElement(AuthorsDND, { authors: authors, selectAuthor: selectAuthor, selectedAuthor: selectedAuthor, handleDrop: handleDrop }))));
28
- export default AuthorsSidebar;
29
- //# sourceMappingURL=AuthorsSidebar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorsSidebar.js","sourceRoot":"","sources":["../../../../src/components/metadata/AuthorsSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAqB,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAExE,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;mBAGb,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACtD,CAAA;AAWD,MAAM,cAAc,GAAmC,CAAC,EACtD,cAAc,EACd,OAAO,EACP,YAAY,EACZ,UAAU,EACV,cAAc,GACf,EAAE,EAAE,CAAC,CACJ,oBAAC,YAAY,eAAU,iBAAiB;IACtC,oBAAC,aAAa,IAAC,KAAK,EAAE,SAAS,GAAI;IAEnC,oBAAC,cAAc;QACb,oBAAC,aAAa;YACZ,oBAAC,SAAS,IACR,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,YAAY,GACnB,CACY;QAChB,oBAAC,UAAU,IACT,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,GACtB,CACa,CACJ,CAChB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,38 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { Category, Dialog } from '@manuscripts/style-guide';
13
- import React from 'react';
14
- import { buildAuthorPriority } from '../../lib/authors';
15
- class CreateAuthorPageContainer extends React.Component {
16
- constructor() {
17
- super(...arguments);
18
- this.handleCreate = () => {
19
- this.props.createAuthor(buildAuthorPriority(this.props.authors), null, this.props.searchText);
20
- this.props.handleCancel();
21
- };
22
- }
23
- render() {
24
- const actions = {
25
- primary: {
26
- action: this.handleCreate,
27
- title: 'Create',
28
- },
29
- secondary: {
30
- action: this.props.handleCancel,
31
- title: 'Cancel',
32
- },
33
- };
34
- return (React.createElement(Dialog, { isOpen: this.props.isOpen, actions: actions, category: Category.confirmation, header: 'Create author', message: `Author already exist are you sure you want to create author with the same name?` }));
35
- }
36
- }
37
- export default CreateAuthorPageContainer;
38
- //# sourceMappingURL=CreateAuthorPageContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateAuthorPageContainer.js","sourceRoot":"","sources":["../../../../src/components/metadata/CreateAuthorPageContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAevD,MAAM,yBAA0B,SAAQ,KAAK,CAAC,SAAgB;IAA9D;;QAsBU,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,KAAK,CAAC,YAAY,CACrB,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EACvC,IAAI,EACJ,IAAI,CAAC,KAAK,CAAC,UAAU,CACtB,CAAA;YACD,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAA;QAC3B,CAAC,CAAA;IACH,CAAC;IA7BQ,MAAM;QACX,MAAM,OAAO,GAAG;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI,CAAC,YAAY;gBACzB,KAAK,EAAE,QAAQ;aAChB;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY;gBAC/B,KAAK,EAAE,QAAQ;aAChB;SACF,CAAA;QACD,OAAO,CACL,oBAAC,MAAM,IACL,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,CAAC,YAAY,EAC/B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,iFAAiF,GAC1F,CACH,CAAA;IACH,CAAC;CASF;AAED,eAAe,yBAAyB,CAAA"}
@@ -1,57 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { TextButton } from '@manuscripts/style-guide';
13
- import React from 'react';
14
- import { Manager, Popper, Reference } from 'react-popper';
15
- import styled from 'styled-components';
16
- import InviteAuthorPopperContainer from './InviteAuthorPopperContainer';
17
- const Button = styled(TextButton) `
18
- margin-left: ${(props) => props.theme.grid.unit * 3}px;
19
- `;
20
- class InviteAuthorButton extends React.Component {
21
- constructor() {
22
- super(...arguments);
23
- this.state = {
24
- isOpen: false,
25
- };
26
- this.togglePopper = () => {
27
- this.updateListener(!this.state.isOpen);
28
- this.setState({
29
- isOpen: !this.state.isOpen,
30
- });
31
- };
32
- this.handleClickOutside = (event) => {
33
- if (this.node && !this.node.contains(event.target)) {
34
- this.togglePopper();
35
- }
36
- };
37
- this.updateListener = (isOpen) => {
38
- if (isOpen) {
39
- document.addEventListener('mousedown', this.handleClickOutside);
40
- }
41
- else {
42
- document.removeEventListener('mousedown', this.handleClickOutside);
43
- }
44
- };
45
- }
46
- componentDidMount() {
47
- this.updateListener(this.state.isOpen);
48
- }
49
- render() {
50
- const { isOpen } = this.state;
51
- return (React.createElement(Manager, null,
52
- React.createElement(Reference, null, ({ ref }) => (React.createElement(Button, { ref: ref, onClick: this.togglePopper }, "Invite as Collaborator"))),
53
- isOpen && (React.createElement(Popper, { placement: 'bottom', innerRef: (node) => (this.node = node) }, (popperProps) => (React.createElement(InviteAuthorPopperContainer, { popperProps: popperProps, project: this.props.project, author: this.props.author, updateAuthor: this.props.updateAuthor, tokenActions: this.props.tokenActions }))))));
54
- }
55
- }
56
- export default InviteAuthorButton;
57
- //# sourceMappingURL=InviteAuthorButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InviteAuthorButton.js","sourceRoot":"","sources":["../../../../src/components/metadata/InviteAuthorButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAuB,SAAS,EAAE,MAAM,cAAc,CAAA;AAC9E,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAGtC,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;AAavE,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;iBAChB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;CACpD,CAAA;AAED,MAAM,kBAAmB,SAAQ,KAAK,CAAC,SAAuB;IAA9D;;QACS,UAAK,GAAU;YACpB,MAAM,EAAE,KAAK;SACd,CAAA;QAwCO,iBAAY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ErD,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,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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,E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