@manuscripts/article-editor 1.4.7 → 1.4.8-LEAN-2723-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/components/library/CitationEditor.js +23 -14
- package/dist/cjs/src/components/library/CitationEditor.js.map +1 -1
- package/dist/cjs/src/components/library/CitationModal.js +10 -13
- package/dist/cjs/src/components/library/CitationModal.js.map +1 -1
- package/dist/cjs/src/components/library/CitationSearch.js +4 -3
- package/dist/cjs/src/components/library/CitationSearch.js.map +1 -1
- package/dist/cjs/src/components/library/ReferencesEditor.js +11 -7
- package/dist/cjs/src/components/library/ReferencesEditor.js.map +1 -1
- package/dist/cjs/src/components/projects/ManuscriptPageContainer.js +7 -1
- package/dist/cjs/src/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/cjs/src/components/projects/icons/EditIcon.js +22 -0
- package/dist/cjs/src/components/projects/icons/EditIcon.js.map +1 -0
- package/dist/cjs/src/components/track-changes/utils.js +6 -3
- package/dist/cjs/src/components/track-changes/utils.js.map +1 -1
- package/dist/cjs/src/hooks/use-create-editor.js +4 -27
- package/dist/cjs/src/hooks/use-create-editor.js.map +1 -1
- package/dist/cjs/src/hooks/use-track-attrs-popper.js +187 -0
- package/dist/cjs/src/hooks/use-track-attrs-popper.js.map +1 -0
- package/dist/cjs/src/lib/attrs-change-filter.js +68 -0
- package/dist/cjs/src/lib/attrs-change-filter.js.map +1 -0
- package/dist/cjs/src/store/DataSourceStrategy.js +2 -0
- package/dist/cjs/src/store/DataSourceStrategy.js.map +1 -1
- package/dist/cjs/src/store/Store.js.map +1 -1
- package/dist/es/src/components/library/CitationEditor.js +24 -15
- package/dist/es/src/components/library/CitationEditor.js.map +1 -1
- package/dist/es/src/components/library/CitationModal.js +10 -13
- package/dist/es/src/components/library/CitationModal.js.map +1 -1
- package/dist/es/src/components/library/CitationSearch.js +4 -3
- package/dist/es/src/components/library/CitationSearch.js.map +1 -1
- package/dist/es/src/components/library/ReferencesEditor.js +11 -7
- package/dist/es/src/components/library/ReferencesEditor.js.map +1 -1
- package/dist/es/src/components/projects/ManuscriptPageContainer.js +8 -2
- package/dist/es/src/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/es/src/components/projects/icons/EditIcon.js +17 -0
- package/dist/es/src/components/projects/icons/EditIcon.js.map +1 -0
- package/dist/es/src/components/track-changes/utils.js +6 -3
- package/dist/es/src/components/track-changes/utils.js.map +1 -1
- package/dist/es/src/hooks/use-create-editor.js +5 -5
- package/dist/es/src/hooks/use-create-editor.js.map +1 -1
- package/dist/es/src/hooks/use-track-attrs-popper.js +157 -0
- package/dist/es/src/hooks/use-track-attrs-popper.js.map +1 -0
- package/dist/es/src/lib/attrs-change-filter.js +64 -0
- package/dist/es/src/lib/attrs-change-filter.js.map +1 -0
- package/dist/es/src/store/DataSourceStrategy.js +2 -0
- package/dist/es/src/store/DataSourceStrategy.js.map +1 -1
- package/dist/es/src/store/Store.js.map +1 -1
- package/dist/types/src/components/library/CitationEditor.d.ts +1 -3
- package/dist/types/src/components/library/CitationModal.d.ts +0 -1
- package/dist/types/src/components/library/CitationSearch.d.ts +1 -1
- package/dist/types/src/components/library/ReferencesEditor.d.ts +1 -4
- package/dist/types/src/components/projects/icons/EditIcon.d.ts +14 -0
- package/dist/types/src/hooks/use-track-attrs-popper.d.ts +23 -0
- package/dist/types/src/lib/attrs-change-filter.d.ts +26 -0
- package/dist/types/src/store/Store.d.ts +3 -0
- package/package.json +6 -6
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Command } from 'prosemirror-state';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const _default: () => (e: React.MouseEvent) => void;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const TrackAttrsPopperContent: React.FC<{
|
|
6
|
+
newAttrs: Record<string, {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}>;
|
|
10
|
+
oldAttrs: Record<string, {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}>;
|
|
14
|
+
changeId: string;
|
|
15
|
+
updateState: (cmd: Command) => void;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const TrackChangesButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
18
|
+
type: "button" | "submit" | "reset";
|
|
19
|
+
} & {
|
|
20
|
+
danger?: boolean | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
mini?: boolean | undefined;
|
|
23
|
+
}, "type">;
|
|
@@ -0,0 +1,26 @@
|
|
|
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) 2023 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
+
*/
|
|
12
|
+
import { NodeAttrChange } from '@manuscripts/track-changes-plugin';
|
|
13
|
+
/**
|
|
14
|
+
* Filter PN node attributes to show for comparing them with old change
|
|
15
|
+
* @param attrsChange
|
|
16
|
+
*/
|
|
17
|
+
export declare const filterAttrsChange: (attrsChange: NodeAttrChange) => {
|
|
18
|
+
newAttrs: Record<string, {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}>;
|
|
22
|
+
oldAttrs: Record<string, {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
11
|
*/
|
|
12
|
+
import { PopperManager } from '@manuscripts/body-editor';
|
|
12
13
|
import { BibliographyItem, Bundle, CommentAnnotation, ContainerInvitation, Library, LibraryCollection, Manuscript, ManuscriptNote, ManuscriptTemplate, Model, Project, ProjectInvitation, SectionCategory, Tag, UserProfile } from '@manuscripts/json-schema';
|
|
13
14
|
import { FileAttachment, FileManagement } from '@manuscripts/style-guide';
|
|
14
15
|
import { Attachment, Build, ContainedModel, ManuscriptEditorView, ManuscriptModel, ManuscriptNode, ModelAttachment } from '@manuscripts/transform';
|
|
@@ -74,6 +75,7 @@ export type state = {
|
|
|
74
75
|
collaboratorsById?: Map<string, UserProfile>;
|
|
75
76
|
attachments: FileAttachment[];
|
|
76
77
|
permittedActions: string[];
|
|
78
|
+
popper: PopperManager;
|
|
77
79
|
getModel: <T extends Model>(id: string) => T | undefined;
|
|
78
80
|
saveModel: <T extends Model>(model: T | Build<T> | Partial<T>) => Promise<T>;
|
|
79
81
|
saveManuscript: (data: Partial<Manuscript>) => Promise<void>;
|
|
@@ -82,6 +84,7 @@ export type state = {
|
|
|
82
84
|
deleteProject: (projectID: string) => Promise<string>;
|
|
83
85
|
updateProject: (projectID: string, data: Partial<Project>) => Promise<Project>;
|
|
84
86
|
selectedSuggestion?: string;
|
|
87
|
+
selectedAttrsChange?: string;
|
|
85
88
|
editorSelectedSuggestion?: string;
|
|
86
89
|
saveTrackModel: <T extends Model>(model: T | Build<T> | Partial<T>) => Promise<T>;
|
|
87
90
|
getTrackModel: <T extends Model>(id: string) => T | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/article-editor",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8-LEAN-2723-0",
|
|
4
4
|
"license": "CPAL-1.0",
|
|
5
5
|
"description": "React components for editing and viewing manuscripts",
|
|
6
6
|
"repository": "github:Atypon-OpenSource/manuscripts-article-editor",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@fontsource/pt-sans": "^4.5.11",
|
|
38
38
|
"@fontsource/pt-serif": "^4.5.11",
|
|
39
39
|
"@manuscripts/assets": "^0.6.1",
|
|
40
|
-
"@manuscripts/body-editor": "
|
|
40
|
+
"@manuscripts/body-editor": "1.4.16-LEAN-2723-0",
|
|
41
41
|
"@manuscripts/json-schema": "^2.2.0",
|
|
42
|
-
"@manuscripts/library": "^1.1.
|
|
42
|
+
"@manuscripts/library": "^1.1.12",
|
|
43
43
|
"@manuscripts/quarterback-types": "^1.0.0",
|
|
44
44
|
"@manuscripts/style-guide": "^1.3.5",
|
|
45
45
|
"@manuscripts/title-editor": "^1.1.0",
|
|
46
|
-
"@manuscripts/track-changes-plugin": "^1.
|
|
47
|
-
"@manuscripts/transform": "^1.4.
|
|
46
|
+
"@manuscripts/track-changes-plugin": "^1.7.0",
|
|
47
|
+
"@manuscripts/transform": "^1.4.5",
|
|
48
48
|
"@reach/tabs": "^0.11.2",
|
|
49
49
|
"autotrack": "^2.4.1",
|
|
50
50
|
"axios": "^1.2.2",
|
|
@@ -178,4 +178,4 @@
|
|
|
178
178
|
"resolutions": {
|
|
179
179
|
"@types/react": "^17.0.2"
|
|
180
180
|
}
|
|
181
|
-
}
|
|
181
|
+
}
|