@manuscripts/article-editor 1.10.5 → 1.10.6-LEAN-3301-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) 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/postgres-data/buildUtilities.js +0 -1
  8. package/dist/cjs/postgres-data/buildUtilities.js.map +1 -1
  9. package/dist/cjs/store/Store.js.map +1 -1
  10. package/dist/es/components/projects/ManuscriptPageContainer.js +0 -2
  11. package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
  12. package/dist/es/hooks/use-create-editor.js +0 -2
  13. package/dist/es/hooks/use-create-editor.js.map +1 -1
  14. package/dist/es/postgres-data/buildData.js +0 -4
  15. package/dist/es/postgres-data/buildData.js.map +1 -1
  16. package/dist/es/postgres-data/buildUtilities.js +0 -1
  17. package/dist/es/postgres-data/buildUtilities.js.map +1 -1
  18. package/dist/es/store/Store.js.map +1 -1
  19. package/dist/types/store/Store.d.ts +1 -3
  20. package/package.json +3 -4
  21. package/dist/cjs/components/metadata/AddAuthorButton.js +0 -55
  22. package/dist/cjs/components/metadata/AddAuthorButton.js.map +0 -1
  23. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js +0 -71
  24. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  25. package/dist/cjs/components/metadata/AddAuthorsSidebar.js +0 -67
  26. package/dist/cjs/components/metadata/AddAuthorsSidebar.js.map +0 -1
  27. package/dist/cjs/components/metadata/AuthorFormContainer.js +0 -24
  28. package/dist/cjs/components/metadata/AuthorFormContainer.js.map +0 -1
  29. package/dist/cjs/components/metadata/AuthorInvitationForm.js +0 -115
  30. package/dist/cjs/components/metadata/AuthorInvitationForm.js.map +0 -1
  31. package/dist/cjs/components/metadata/AuthorModalViews.js +0 -161
  32. package/dist/cjs/components/metadata/AuthorModalViews.js.map +0 -1
  33. package/dist/cjs/components/metadata/AuthorsModalContainer.js +0 -99
  34. package/dist/cjs/components/metadata/AuthorsModalContainer.js.map +0 -1
  35. package/dist/cjs/components/metadata/AuthorsModals.js +0 -37
  36. package/dist/cjs/components/metadata/AuthorsModals.js.map +0 -1
  37. package/dist/cjs/components/metadata/AuthorsPage.js +0 -100
  38. package/dist/cjs/components/metadata/AuthorsPage.js.map +0 -1
  39. package/dist/cjs/components/metadata/AuthorsSidebar.js +0 -34
  40. package/dist/cjs/components/metadata/AuthorsSidebar.js.map +0 -1
  41. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js +0 -43
  42. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  43. package/dist/cjs/components/metadata/InviteAuthorButton.js +0 -62
  44. package/dist/cjs/components/metadata/InviteAuthorButton.js.map +0 -1
  45. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js +0 -62
  46. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  47. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js +0 -27
  48. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  49. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js +0 -48
  50. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  51. package/dist/cjs/lib/authors.js +0 -124
  52. package/dist/cjs/lib/authors.js.map +0 -1
  53. package/dist/es/components/metadata/AddAuthorButton.js +0 -50
  54. package/dist/es/components/metadata/AddAuthorButton.js.map +0 -1
  55. package/dist/es/components/metadata/AddAuthorsModalContainer.js +0 -64
  56. package/dist/es/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  57. package/dist/es/components/metadata/AddAuthorsSidebar.js +0 -62
  58. package/dist/es/components/metadata/AddAuthorsSidebar.js.map +0 -1
  59. package/dist/es/components/metadata/AuthorFormContainer.js +0 -17
  60. package/dist/es/components/metadata/AuthorFormContainer.js.map +0 -1
  61. package/dist/es/components/metadata/AuthorInvitationForm.js +0 -108
  62. package/dist/es/components/metadata/AuthorInvitationForm.js.map +0 -1
  63. package/dist/es/components/metadata/AuthorModalViews.js +0 -133
  64. package/dist/es/components/metadata/AuthorModalViews.js.map +0 -1
  65. package/dist/es/components/metadata/AuthorsModalContainer.js +0 -94
  66. package/dist/es/components/metadata/AuthorsModalContainer.js.map +0 -1
  67. package/dist/es/components/metadata/AuthorsModals.js +0 -29
  68. package/dist/es/components/metadata/AuthorsModals.js.map +0 -1
  69. package/dist/es/components/metadata/AuthorsPage.js +0 -92
  70. package/dist/es/components/metadata/AuthorsPage.js.map +0 -1
  71. package/dist/es/components/metadata/AuthorsSidebar.js +0 -29
  72. package/dist/es/components/metadata/AuthorsSidebar.js.map +0 -1
  73. package/dist/es/components/metadata/CreateAuthorPageContainer.js +0 -38
  74. package/dist/es/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  75. package/dist/es/components/metadata/InviteAuthorButton.js +0 -57
  76. package/dist/es/components/metadata/InviteAuthorButton.js.map +0 -1
  77. package/dist/es/components/metadata/InviteAuthorPopperContainer.js +0 -57
  78. package/dist/es/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  79. package/dist/es/components/metadata/InviteAuthorsSidebar.js +0 -22
  80. package/dist/es/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  81. package/dist/es/components/metadata/SearchAuthorsSidebar.js +0 -43
  82. package/dist/es/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  83. package/dist/es/lib/authors.js +0 -112
  84. package/dist/es/lib/authors.js.map +0 -1
  85. package/dist/types/components/metadata/AddAuthorButton.d.ts +0 -29
  86. package/dist/types/components/metadata/AddAuthorsModalContainer.d.ts +0 -38
  87. package/dist/types/components/metadata/AddAuthorsSidebar.d.ts +0 -28
  88. package/dist/types/components/metadata/AuthorFormContainer.d.ts +0 -31
  89. package/dist/types/components/metadata/AuthorInvitationForm.d.ts +0 -36
  90. package/dist/types/components/metadata/AuthorModalViews.d.ts +0 -14
  91. package/dist/types/components/metadata/AuthorsModalContainer.d.ts +0 -48
  92. package/dist/types/components/metadata/AuthorsModals.d.ts +0 -50
  93. package/dist/types/components/metadata/AuthorsPage.d.ts +0 -18
  94. package/dist/types/components/metadata/AuthorsSidebar.d.ts +0 -24
  95. package/dist/types/components/metadata/CreateAuthorPageContainer.d.ts +0 -25
  96. package/dist/types/components/metadata/InviteAuthorButton.d.ts +0 -33
  97. package/dist/types/components/metadata/InviteAuthorPopperContainer.d.ts +0 -31
  98. package/dist/types/components/metadata/InviteAuthorsSidebar.d.ts +0 -24
  99. package/dist/types/components/metadata/SearchAuthorsSidebar.d.ts +0 -21
  100. package/dist/types/lib/authors.d.ts +0 -42
@@ -1,100 +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
- exports.AuthorDetailsPage = exports.AddAuthorsPage = void 0;
18
- const AddedIcon_1 = __importDefault(require("@manuscripts/assets/react/AddedIcon"));
19
- const AuthorPlaceholder_1 = __importDefault(require("@manuscripts/assets/react/AuthorPlaceholder"));
20
- const ContributorDetailsPlaceholder_1 = __importDefault(require("@manuscripts/assets/react/ContributorDetailsPlaceholder"));
21
- const react_1 = __importDefault(require("react"));
22
- const styled_components_1 = __importDefault(require("styled-components"));
23
- const AddAuthorsMessage = () => (react_1.default.createElement("span", null, "Add authors to your author list from your collaborators, or invite new ones"));
24
- const SelectAuthorMessage = () => (react_1.default.createElement("span", null, "Select an author from the list to display their details here."));
25
- const AddedAuthorsMessage = ({ addedCount }) => react_1.default.createElement("span", null, "Authors added");
26
- const OuterContainer = styled_components_1.default.div `
27
- display: flex;
28
- flex-direction: column;
29
- align-items: center;
30
- justify-content: center;
31
- height: 100%;
32
- overflow-y: auto;
33
- `;
34
- const InnerContainer = styled_components_1.default.div `
35
- text-align: center;
36
- max-width: 480px;
37
- font-size: ${(props) => props.theme.font.size.xlarge};
38
- line-height: ${(props) => props.theme.font.lineHeight.large};
39
- `;
40
- const Placeholder = styled_components_1.default.div `
41
- display: flex;
42
- justify-content: center;
43
- margin-bottom: ${(props) => props.theme.grid.unit * 5}px;
44
- `;
45
- const Action = styled_components_1.default.div `
46
- display: flex;
47
- align-items: center;
48
- justify-content: center;
49
- font-size: ${(props) => props.theme.font.size.xlarge};
50
- font-weight: ${(props) => props.theme.font.weight.medium};
51
- letter-spacing: -0.5px;
52
- `;
53
- const Message = styled_components_1.default.div `
54
- max-width: 400px;
55
- font-size: ${(props) => props.theme.font.size.xlarge};
56
- margin-top: ${(props) => props.theme.grid.unit * 6}px;
57
- font-weight: ${(props) => props.theme.font.weight.light};
58
- color: ${(props) => props.theme.colors.text.secondary};
59
-
60
- @media (max-width: 850px) {
61
- margin-right: ${(props) => props.theme.grid.unit * 5}px;
62
- margin-left: ${(props) => props.theme.grid.unit * 5}px;
63
- max-width: 350px;
64
- }
65
- `;
66
- const AddedMessage = (0, styled_components_1.default)(Message) `
67
- margin-top: 2px;
68
- `;
69
- const IconContainer = styled_components_1.default.div `
70
- display: flex;
71
- align-self: center;
72
- padding-right: 5px;
73
- `;
74
- const MessageContainer = styled_components_1.default.div `
75
- display: flex;
76
- justify-content: center;
77
- `;
78
- const AddAuthorsPage = ({ addedAuthorsCount, }) => (react_1.default.createElement(OuterContainer, null,
79
- react_1.default.createElement(InnerContainer, null,
80
- react_1.default.createElement(Placeholder, null,
81
- react_1.default.createElement(AuthorPlaceholder_1.default, null)),
82
- addedAuthorsCount ? (react_1.default.createElement(MessageContainer, { "data-cy": 'add-author-message' },
83
- react_1.default.createElement(IconContainer, null,
84
- react_1.default.createElement(AddedIcon_1.default, null)),
85
- react_1.default.createElement(AddedMessage, null,
86
- react_1.default.createElement(AddedAuthorsMessage, { addedCount: addedAuthorsCount })))) : (react_1.default.createElement(react_1.default.Fragment, null,
87
- react_1.default.createElement(Action, null, "Add Author"),
88
- react_1.default.createElement(Message, null,
89
- react_1.default.createElement(AddAuthorsMessage, null)))))));
90
- exports.AddAuthorsPage = AddAuthorsPage;
91
- const AuthorDetailsPage = () => (react_1.default.createElement(OuterContainer, { "data-cy": 'author-details' },
92
- react_1.default.createElement(InnerContainer, null,
93
- react_1.default.createElement(Placeholder, null,
94
- react_1.default.createElement(ContributorDetailsPlaceholder_1.default, null)),
95
- react_1.default.createElement(react_1.default.Fragment, null,
96
- react_1.default.createElement(Action, null, "Author Details"),
97
- react_1.default.createElement(Message, null,
98
- react_1.default.createElement(SelectAuthorMessage, null))))));
99
- exports.AuthorDetailsPage = AuthorDetailsPage;
100
- //# 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,oFAA2D;AAC3D,oGAA2E;AAC3E,4HAAwF;AACxF,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AAW;YACV,8BAAC,uCAAkB,OAAG,CACV;QAEd,8BAAC,eAAK,CAAC,QAAQ;YACb,8BAAC,MAAM,yBAAwB;YAC/B,8BAAC,OAAO;gBACN,8BAAC,mBAAmB,OAAG,CACf,CACK,CACF,CACF,CAClB,CAAA;AAfY,QAAA,iBAAiB,qBAe7B"}
@@ -1,34 +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 AddButton_1 = require("../AddButton");
21
- const Sidebar_1 = require("../Sidebar");
22
- const SidebarAction = styled_components_1.default.div `
23
- display: flex;
24
- align-items: center;
25
- margin-bottom: ${(props) => props.theme.grid.unit * 4}px;
26
- `;
27
- const AuthorsSidebar = ({ openAddAuthors, authors, selectAuthor, handleDrop, selectedAuthor, }) => (react_1.default.createElement(Sidebar_1.ModalSidebar, { "data-cy": 'authors-sidebar' },
28
- react_1.default.createElement(Sidebar_1.SidebarHeader, { title: 'Authors' }),
29
- react_1.default.createElement(Sidebar_1.SidebarContent, null,
30
- react_1.default.createElement(SidebarAction, null,
31
- react_1.default.createElement(AddButton_1.AddButton, { action: openAddAuthors, size: 'medium', title: 'New Author' })),
32
- react_1.default.createElement(style_guide_1.AuthorsDND, { authors: authors, selectAuthor: selectAuthor, selectedAuthor: selectedAuthor, handleDrop: handleDrop }))));
33
- exports.default = AuthorsSidebar;
34
- //# 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,0DAAwE;AACxE,kDAAyB;AACzB,0EAAsC;AAEtC,4CAAwC;AACxC,wCAAwE;AAExE,MAAM,aAAa,GAAG,2BAAM,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,8BAAC,sBAAY,eAAU,iBAAiB;IACtC,8BAAC,uBAAa,IAAC,KAAK,EAAE,SAAS,GAAI;IAEnC,8BAAC,wBAAc;QACb,8BAAC,aAAa;YACZ,8BAAC,qBAAS,IACR,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,YAAY,GACnB,CACY;QAChB,8BAAC,wBAAU,IACT,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,GACtB,CACa,CACJ,CAChB,CAAA;AAED,kBAAe,cAAc,CAAA"}
@@ -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,CAAC,MAAM,CAAC,CAAA;YACvC,IAAI,CAAC,QAAQ,CAAC;gBACZ,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;aAC3B,CAAC,CAAA;QACJ,CAAC,CAAA;QAEO,uBAAkB,GAAkB,CAAC,KAAY,EAAE,EAAE;YAC3D,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE;gBAC1D,IAAI,CAAC,YAAY,EAAE,CAAA;aACpB;QACH,CAAC,CAAA;QAEO,mBAAc,GAAG,CAAC,MAAe,EAAE,EAAE;YAC3C,IAAI,MAAM,EAAE;gBACV,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAA;aAChE;iBAAM;gBACL,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAA;aACnE;QACH,CAAC,CAAA;IACH,CAAC;IAxDQ,iBAAiB;QACtB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAEM,MAAM;QACX,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAE7B,OAAO,CACL,8BAAC,sBAAO;YACN,8BAAC,wBAAS,QACP,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CACZ,8BAAC,MAAM,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,6BAEnC,CACV,CACS;YACX,MAAM,IAAI,CACT,8BAAC,qBAAM,IACL,SAAS,EAAE,QAAQ,EACnB,QAAQ,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAErD,CAAC,WAAgC,EAAE,EAAE,CAAC,CACrC,8BAAC,qCAA2B,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,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,2BAA4B,SAAQ,eAAK,CAAC,SAAgB;IAAhE;;QACS,UAAK,GAAU;YACpB,eAAe,EAAE,IAAI;SACtB,CAAA;QAoCO,2BAAsB,GAAG,KAAK,EAAE,MAAwB,EAAE,EAAE;YAClE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;YAC9B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAA;YAEpC,MAAM,IAAA,mBAAa,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;YACzD,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;YAEjD,IAAA,qBAAU,EAAC;gBACT,QAAQ,EAAE,aAAa;gBACvB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,aAAa,OAAO,CAAC,GAAG,EAAE;aAClC,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;IA/CQ,MAAM;QACX,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QACxD,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QACtC,OAAO,CACL,8BAAC,uBAAc,IAAC,WAAW,EAAE,WAAW;YACtC,8BAAC,mBAAU;gBACR,CAAC,CAAC,eAAe,IAAI,CACpB,8BAAC,qBAAqB;oBACpB,8BAAC,0BAAY,IACX,IAAI,EAAE,8BAAgB,CAAC,KAAK,EAC5B,eAAe,EAAE,IAAI,iCAGR,CACO,CACzB;gBACD,8BAAC,qCAAc,IACb,gBAAgB,EAAE;wBAChB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;wBACzB,IAAI,EACF,MAAM,CAAC,iBAAiB,CAAC,KAAK;4BAC9B,GAAG;4BACH,MAAM,CAAC,iBAAiB,CAAC,MAAM;wBACjC,IAAI,EAAE,QAAQ;qBACf,EACD,YAAY,EAAE,IAAI,CAAC,sBAAsB,EACzC,WAAW,EAAE,IAAI,EACjB,YAAY,EAAE,YAAY,GAC1B,CACS,CACE,CAClB,CAAA;IACH,CAAC;CAeF;AAED,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":"SearchA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AAI,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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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":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