@manuscripts/article-editor 1.10.13 → 1.10.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/cjs/components/projects/ManuscriptPageContainer.js +0 -2
  2. package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
  3. package/dist/cjs/hooks/use-create-editor.js +0 -2
  4. package/dist/cjs/hooks/use-create-editor.js.map +1 -1
  5. package/dist/cjs/postgres-data/buildData.js +0 -4
  6. package/dist/cjs/postgres-data/buildData.js.map +1 -1
  7. package/dist/cjs/store/Store.js.map +1 -1
  8. package/dist/es/components/projects/ManuscriptPageContainer.js +0 -2
  9. package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
  10. package/dist/es/hooks/use-create-editor.js +0 -2
  11. package/dist/es/hooks/use-create-editor.js.map +1 -1
  12. package/dist/es/postgres-data/buildData.js +0 -4
  13. package/dist/es/postgres-data/buildData.js.map +1 -1
  14. package/dist/es/store/Store.js.map +1 -1
  15. package/dist/types/store/Store.d.ts +1 -3
  16. package/package.json +3 -4
  17. package/dist/cjs/components/metadata/AddAuthorButton.js +0 -55
  18. package/dist/cjs/components/metadata/AddAuthorButton.js.map +0 -1
  19. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js +0 -71
  20. package/dist/cjs/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  21. package/dist/cjs/components/metadata/AddAuthorsSidebar.js +0 -67
  22. package/dist/cjs/components/metadata/AddAuthorsSidebar.js.map +0 -1
  23. package/dist/cjs/components/metadata/AuthorFormContainer.js +0 -24
  24. package/dist/cjs/components/metadata/AuthorFormContainer.js.map +0 -1
  25. package/dist/cjs/components/metadata/AuthorInvitationForm.js +0 -115
  26. package/dist/cjs/components/metadata/AuthorInvitationForm.js.map +0 -1
  27. package/dist/cjs/components/metadata/AuthorModalViews.js +0 -161
  28. package/dist/cjs/components/metadata/AuthorModalViews.js.map +0 -1
  29. package/dist/cjs/components/metadata/AuthorsModalContainer.js +0 -99
  30. package/dist/cjs/components/metadata/AuthorsModalContainer.js.map +0 -1
  31. package/dist/cjs/components/metadata/AuthorsModals.js +0 -37
  32. package/dist/cjs/components/metadata/AuthorsModals.js.map +0 -1
  33. package/dist/cjs/components/metadata/AuthorsPage.js +0 -100
  34. package/dist/cjs/components/metadata/AuthorsPage.js.map +0 -1
  35. package/dist/cjs/components/metadata/AuthorsSidebar.js +0 -34
  36. package/dist/cjs/components/metadata/AuthorsSidebar.js.map +0 -1
  37. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js +0 -43
  38. package/dist/cjs/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  39. package/dist/cjs/components/metadata/InviteAuthorButton.js +0 -62
  40. package/dist/cjs/components/metadata/InviteAuthorButton.js.map +0 -1
  41. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js +0 -62
  42. package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  43. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js +0 -27
  44. package/dist/cjs/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  45. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js +0 -48
  46. package/dist/cjs/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  47. package/dist/cjs/lib/authors.js +0 -124
  48. package/dist/cjs/lib/authors.js.map +0 -1
  49. package/dist/es/components/metadata/AddAuthorButton.js +0 -50
  50. package/dist/es/components/metadata/AddAuthorButton.js.map +0 -1
  51. package/dist/es/components/metadata/AddAuthorsModalContainer.js +0 -64
  52. package/dist/es/components/metadata/AddAuthorsModalContainer.js.map +0 -1
  53. package/dist/es/components/metadata/AddAuthorsSidebar.js +0 -62
  54. package/dist/es/components/metadata/AddAuthorsSidebar.js.map +0 -1
  55. package/dist/es/components/metadata/AuthorFormContainer.js +0 -17
  56. package/dist/es/components/metadata/AuthorFormContainer.js.map +0 -1
  57. package/dist/es/components/metadata/AuthorInvitationForm.js +0 -108
  58. package/dist/es/components/metadata/AuthorInvitationForm.js.map +0 -1
  59. package/dist/es/components/metadata/AuthorModalViews.js +0 -133
  60. package/dist/es/components/metadata/AuthorModalViews.js.map +0 -1
  61. package/dist/es/components/metadata/AuthorsModalContainer.js +0 -94
  62. package/dist/es/components/metadata/AuthorsModalContainer.js.map +0 -1
  63. package/dist/es/components/metadata/AuthorsModals.js +0 -29
  64. package/dist/es/components/metadata/AuthorsModals.js.map +0 -1
  65. package/dist/es/components/metadata/AuthorsPage.js +0 -92
  66. package/dist/es/components/metadata/AuthorsPage.js.map +0 -1
  67. package/dist/es/components/metadata/AuthorsSidebar.js +0 -29
  68. package/dist/es/components/metadata/AuthorsSidebar.js.map +0 -1
  69. package/dist/es/components/metadata/CreateAuthorPageContainer.js +0 -38
  70. package/dist/es/components/metadata/CreateAuthorPageContainer.js.map +0 -1
  71. package/dist/es/components/metadata/InviteAuthorButton.js +0 -57
  72. package/dist/es/components/metadata/InviteAuthorButton.js.map +0 -1
  73. package/dist/es/components/metadata/InviteAuthorPopperContainer.js +0 -57
  74. package/dist/es/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
  75. package/dist/es/components/metadata/InviteAuthorsSidebar.js +0 -22
  76. package/dist/es/components/metadata/InviteAuthorsSidebar.js.map +0 -1
  77. package/dist/es/components/metadata/SearchAuthorsSidebar.js +0 -43
  78. package/dist/es/components/metadata/SearchAuthorsSidebar.js.map +0 -1
  79. package/dist/es/lib/authors.js +0 -112
  80. package/dist/es/lib/authors.js.map +0 -1
  81. package/dist/types/components/metadata/AddAuthorButton.d.ts +0 -29
  82. package/dist/types/components/metadata/AddAuthorsModalContainer.d.ts +0 -38
  83. package/dist/types/components/metadata/AddAuthorsSidebar.d.ts +0 -28
  84. package/dist/types/components/metadata/AuthorFormContainer.d.ts +0 -31
  85. package/dist/types/components/metadata/AuthorInvitationForm.d.ts +0 -36
  86. package/dist/types/components/metadata/AuthorModalViews.d.ts +0 -14
  87. package/dist/types/components/metadata/AuthorsModalContainer.d.ts +0 -48
  88. package/dist/types/components/metadata/AuthorsModals.d.ts +0 -50
  89. package/dist/types/components/metadata/AuthorsPage.d.ts +0 -18
  90. package/dist/types/components/metadata/AuthorsSidebar.d.ts +0 -24
  91. package/dist/types/components/metadata/CreateAuthorPageContainer.d.ts +0 -25
  92. package/dist/types/components/metadata/InviteAuthorButton.d.ts +0 -33
  93. package/dist/types/components/metadata/InviteAuthorPopperContainer.d.ts +0 -31
  94. package/dist/types/components/metadata/InviteAuthorsSidebar.d.ts +0 -24
  95. package/dist/types/components/metadata/SearchAuthorsSidebar.d.ts +0 -21
  96. package/dist/types/lib/authors.d.ts +0 -42
@@ -1,24 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { Contributor } from '@manuscripts/json-schema';
13
- import { AuthorAffiliation } from '@manuscripts/style-guide';
14
- import React from 'react';
15
- interface Props {
16
- authors: Contributor[];
17
- authorAffiliations: Map<string, AuthorAffiliation[]>;
18
- selectedAuthor: Contributor | null;
19
- selectAuthor: (item: Contributor) => void;
20
- openAddAuthors: () => void;
21
- handleDrop: (oldIndex: number, newIndex: number) => void;
22
- }
23
- declare const AuthorsSidebar: React.FunctionComponent<Props>;
24
- export default AuthorsSidebar;
@@ -1,25 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { Contributor, UserProfile } from '@manuscripts/json-schema';
13
- import React from 'react';
14
- interface Props {
15
- authors: Contributor[];
16
- createAuthor: (priority: number, person?: UserProfile | null, name?: string, invitationID?: string) => void;
17
- handleCancel: () => void;
18
- isOpen: boolean;
19
- searchText: string;
20
- }
21
- declare class CreateAuthorPageContainer extends React.Component<Props> {
22
- render(): React.JSX.Element;
23
- private handleCreate;
24
- }
25
- export default CreateAuthorPageContainer;
@@ -1,33 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { Contributor, Project } from '@manuscripts/json-schema';
13
- import React from 'react';
14
- import { TokenActions } from '../../store';
15
- interface State {
16
- isOpen: boolean;
17
- }
18
- interface Props {
19
- author: Contributor;
20
- project: Project;
21
- updateAuthor: (author: Contributor, email: string) => void;
22
- tokenActions: TokenActions;
23
- }
24
- declare class InviteAuthorButton extends React.Component<Props, State> {
25
- state: State;
26
- private node;
27
- componentDidMount(): void;
28
- render(): React.JSX.Element;
29
- private togglePopper;
30
- private handleClickOutside;
31
- private updateListener;
32
- }
33
- export default InviteAuthorButton;
@@ -1,31 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { Contributor, Project } from '@manuscripts/json-schema';
13
- import React from 'react';
14
- import { PopperChildrenProps } from 'react-popper';
15
- import { TokenActions } from '../../store';
16
- interface Props {
17
- popperProps: PopperChildrenProps;
18
- project: Project;
19
- author: Contributor;
20
- updateAuthor: (author: Contributor, email: string) => void;
21
- tokenActions: TokenActions;
22
- }
23
- interface State {
24
- invitationError: Error | null;
25
- }
26
- declare class InviteAuthorPopperContainer extends React.Component<Props> {
27
- state: State;
28
- render(): React.JSX.Element;
29
- private handleInvitationSubmit;
30
- }
31
- export default InviteAuthorPopperContainer;
@@ -1,24 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import React from 'react';
13
- import { TokenActions } from '../../store';
14
- import { InvitationValues } from './AuthorInvitationForm';
15
- interface Props {
16
- invitationValues: InvitationValues;
17
- handleCancel: () => void;
18
- handleSubmit: (values: InvitationValues) => Promise<void>;
19
- invitationSent: boolean;
20
- isModal?: boolean;
21
- tokenActions: TokenActions;
22
- }
23
- declare const InviteAuthorsSidebar: React.FunctionComponent<Props>;
24
- export default InviteAuthorsSidebar;
@@ -1,21 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { Contributor, UserProfile } from '@manuscripts/json-schema';
13
- import React from 'react';
14
- interface SearchSidebarProps {
15
- searchResults: UserProfile[];
16
- addedAuthors: string[];
17
- authors: Contributor[];
18
- createAuthor: (priority: number, person?: UserProfile | null, name?: string, invitationID?: string) => void;
19
- }
20
- declare const SearchAuthorsSidebar: React.FunctionComponent<SearchSidebarProps>;
21
- export default SearchAuthorsSidebar;
@@ -1,42 +0,0 @@
1
- /*!
2
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
- *
4
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
- *
6
- * The Original Code is manuscripts-frontend.
7
- *
8
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
- *
10
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
- */
12
- import { Affiliation, Contributor, ContributorRole, Model } from '@manuscripts/json-schema';
13
- export type AffiliationMap = Map<string, Affiliation>;
14
- export interface AffiliationData {
15
- ordinal: number;
16
- data: Affiliation;
17
- }
18
- export interface AuthorData {
19
- authors: Contributor[];
20
- affiliations: AffiliationMap;
21
- authorAffiliations: Map<string, AffiliationData[]>;
22
- }
23
- export declare const buildSortedContributors: (contributors: Contributor[]) => Contributor[];
24
- export declare const buildAuthorPriority: (authors: Contributor[]) => number;
25
- export declare const buildSortedAffiliationIDs: (sortedAuthors: Contributor[]) => string[];
26
- export declare const buildAuthorAffiliations: (authors: Contributor[], affiliations: AffiliationMap, sortedAffiliationIDs: string[]) => Map<string, AffiliationData[]>;
27
- export declare const buildAffiliationsMap: (affiliationIDs: string[], affiliations: Affiliation[]) => AffiliationMap;
28
- export declare const getMetaData: (modelMap: Map<string, Model>) => {
29
- authorsAndAffiliations: {
30
- affiliations: AffiliationMap;
31
- authors: Contributor[];
32
- authorAffiliations: Map<string, AffiliationData[]>;
33
- };
34
- contributorRoles: ContributorRole[];
35
- } | undefined;
36
- export declare const buildAuthorsAndAffiliations: (data: Array<Contributor | Affiliation>) => {
37
- affiliations: AffiliationMap;
38
- authors: Contributor[];
39
- authorAffiliations: Map<string, AffiliationData[]>;
40
- };
41
- export declare const isJointFirstAuthor: (authors: Contributor[], index: number) => boolean;
42
- export declare const reorderAuthors: (authors: Contributor[], oldIndex: number, newIndex: number) => Contributor[];