@manuscripts/article-editor 4.16.1 → 4.17.1
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/EditorApp.js +2 -1
- package/dist/cjs/EditorApp.js.map +1 -1
- package/dist/cjs/Main.js +2 -2
- package/dist/cjs/Main.js.map +1 -1
- package/dist/cjs/components/comments/CommentCard.js +5 -7
- package/dist/cjs/components/comments/CommentCard.js.map +1 -1
- package/dist/cjs/components/projects/EditorHeaderGroup.js +145 -0
- package/dist/cjs/components/projects/EditorHeaderGroup.js.map +1 -0
- package/dist/cjs/components/projects/ManuscriptPageContainer.js +28 -72
- package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/cjs/components/track-changes/SortByDropdown.js +1 -1
- package/dist/cjs/components/track-changes/suggestion-list/SuggestionSnippet.js +4 -8
- package/dist/cjs/components/track-changes/suggestion-list/SuggestionSnippet.js.map +1 -1
- package/dist/cjs/components/track-changes/utils.js +2 -0
- package/dist/cjs/components/track-changes/utils.js.map +1 -1
- package/dist/cjs/hooks/use-get-user-name.js +49 -0
- package/dist/cjs/hooks/use-get-user-name.js.map +1 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/comments.js +1 -8
- package/dist/cjs/lib/comments.js.map +1 -1
- package/dist/cjs/store/Store.js.map +1 -1
- package/dist/es/EditorApp.js +2 -1
- package/dist/es/EditorApp.js.map +1 -1
- package/dist/es/Main.js +2 -2
- package/dist/es/Main.js.map +1 -1
- package/dist/es/components/comments/CommentCard.js +5 -7
- package/dist/es/components/comments/CommentCard.js.map +1 -1
- package/dist/es/components/projects/EditorHeaderGroup.js +105 -0
- package/dist/es/components/projects/EditorHeaderGroup.js.map +1 -0
- package/dist/es/components/projects/ManuscriptPageContainer.js +30 -74
- package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/es/components/track-changes/SortByDropdown.js +1 -1
- package/dist/es/components/track-changes/suggestion-list/SuggestionSnippet.js +4 -8
- package/dist/es/components/track-changes/suggestion-list/SuggestionSnippet.js.map +1 -1
- package/dist/es/components/track-changes/utils.js +2 -0
- package/dist/es/components/track-changes/utils.js.map +1 -1
- package/dist/es/hooks/use-get-user-name.js +45 -0
- package/dist/es/hooks/use-get-user-name.js.map +1 -0
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/es/lib/comments.js +0 -6
- package/dist/es/lib/comments.js.map +1 -1
- package/dist/es/store/Store.js.map +1 -1
- package/dist/types/EditorApp.d.ts +2 -0
- package/dist/types/components/projects/EditorHeaderGroup.d.ts +15 -0
- package/dist/types/components/projects/ManuscriptPageContainer.d.ts +1 -1
- package/dist/types/components/track-changes/SortByDropdown.d.ts +1 -1
- package/dist/types/hooks/use-get-user-name.d.ts +1 -0
- package/dist/types/lib/comments.d.ts +0 -2
- package/dist/types/store/Store.d.ts +8 -0
- package/package.json +4 -4
package/dist/es/index.js
CHANGED
|
@@ -20,12 +20,12 @@ export { ProjectRole } from './lib/roles';
|
|
|
20
20
|
export { getUserRole } from './lib/roles';
|
|
21
21
|
export * from './hooks/external/use-manuscripts-state';
|
|
22
22
|
export { InspectorPanel, InspectorAction, } from './hooks/use-inspector-tabs-context';
|
|
23
|
-
const ManuscriptEditor = ({ fileManagement, files, manuscriptID, projectID, permittedActions, getAuthToken, config, observer, pluginInspectorTab, isReadOnly, }) => {
|
|
23
|
+
const ManuscriptEditor = ({ fileManagement, files, manuscriptID, projectID, permittedActions, getAuthToken, config, observer, pluginInspectorTab, isReadOnly, users }) => {
|
|
24
24
|
setConfig(config);
|
|
25
25
|
return (React.createElement(React.Fragment, null,
|
|
26
26
|
React.createElement(ThemeProvider, null,
|
|
27
27
|
React.createElement(Suspense, { fallback: React.createElement(LoadingPage, { className: 'loader' }, "Loading...") },
|
|
28
|
-
React.createElement(Main, { fileManagement: fileManagement, files: files, manuscriptID: manuscriptID, projectID: projectID, permittedActions: permittedActions, getAuthToken: getAuthToken, observer: observer, pluginInspectorTab: pluginInspectorTab, isReadOnly: isReadOnly }))),
|
|
28
|
+
React.createElement(Main, { fileManagement: fileManagement, files: files, manuscriptID: manuscriptID, projectID: projectID, permittedActions: permittedActions, getAuthToken: getAuthToken, observer: observer, pluginInspectorTab: pluginInspectorTab, isReadOnly: isReadOnly, users: users }))),
|
|
29
29
|
React.createElement("div", { id: "menu" }),
|
|
30
30
|
React.createElement("div", { id: "notifications" }),
|
|
31
31
|
React.createElement("div", { id: "size" })));
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAA2B,SAAS,EAAE,MAAM,UAAU,CAAA;AAG7D,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,cAAc,wCAAwC,CAAA;AAEtD,OAAO,EACL,cAAc,EACd,eAAe,GAChB,MAAM,oCAAoC,CAAA;AAE3C,MAAM,gBAAgB,GAElB,CAAC,EACH,cAAc,EACd,KAAK,EACL,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAU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K,EAAE,EAAC,MAAM,GAAO,CACpB,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAC3C,gBAAgB,EAChB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;IACb,mHAAmH;IACnH,mIAAmI;IACnI,OAAO,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAA,CAAC,sCAAsC;AACtF,CAAC,CACF,CAAA"}
|
package/dist/es/lib/comments.js
CHANGED
|
@@ -41,12 +41,6 @@ export const getOrphanComments = (state) => {
|
|
|
41
41
|
.map(({ node, pos }) => ({ node, pos: commentsNode.pos + pos + 1 }))
|
|
42
42
|
.map((comment) => [comment.node.attrs.id, comment]));
|
|
43
43
|
};
|
|
44
|
-
export const buildAuthorName = (user) => {
|
|
45
|
-
if (!user) {
|
|
46
|
-
return '';
|
|
47
|
-
}
|
|
48
|
-
return [user.given, user.family].filter(Boolean).join(' ');
|
|
49
|
-
};
|
|
50
44
|
export const commentsByTime = (a, b) => {
|
|
51
45
|
const aTimestamp = a.node.attrs.timestamp || 0;
|
|
52
46
|
const bTimestamp = b.node.attrs.timestamp || 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments.js","sourceRoot":"","sources":["../../../src/lib/comments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAW,WAAW,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"comments.js","sourceRoot":"","sources":["../../../src/lib/comments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAW,WAAW,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAE/C,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAQ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AM,CAC9C,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CACX,OAAO,CAAC,EAAE,IAAI,EAAa,CAAC;QAC5B,cAAc,CAAC,IAAI,CACjB,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,CACvD,CACJ,CAAA;IACD,OAAO,IAAI,GAAG,CACZ,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,EAAE,GAAG,qBAAqB,CAAC;SACnD,GAAG,CACF,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAChB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,EAAE,CAAY,CACzD;SACA,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAY,EAAE,OAAO,CAAC,CAAC,CAChE,CAAA;AACH,CAAC,CAAA;AAGD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACvD,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,CAAA;IAC9C,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,CAAA;IAC9C,OAAO,UAAU,GAAG,UAAU,CAAA;AAChC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Store.js","sourceRoot":"","sources":["../../../src/store/Store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA0BH,OAAO,EAAE,qBAAqB,EAA2B,MAAM,GAAG,CAAA;
|
|
1
|
+
{"version":3,"file":"Store.js","sourceRoot":"","sources":["../../../src/store/Store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA0BH,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C,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;QACtE,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,EAAW,CAAA;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,CAAA;IACxB,CAAC;CACF"}
|
|
@@ -13,12 +13,14 @@ import { FileAttachment, FileManagement } from '@manuscripts/body-editor';
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { PluginInspectorTab } from './components/projects/Inspector';
|
|
15
15
|
import { ManuscriptsStateObserver } from './hooks/external/use-manuscripts-state';
|
|
16
|
+
import { HostUser } from './store';
|
|
16
17
|
export interface EditorAppProps {
|
|
17
18
|
fileManagement: FileManagement;
|
|
18
19
|
files: FileAttachment[];
|
|
19
20
|
manuscriptID: string;
|
|
20
21
|
projectID: string;
|
|
21
22
|
permittedActions: string[];
|
|
23
|
+
users?: HostUser[];
|
|
22
24
|
getAuthToken: () => Promise<string | undefined>;
|
|
23
25
|
observer?: ManuscriptsStateObserver;
|
|
24
26
|
pluginInspectorTab?: PluginInspectorTab;
|
|
@@ -0,0 +1,15 @@
|
|
|
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) 2026 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
export declare const EditorHeaderGroup: React.FC;
|
|
14
|
+
export declare const ManuscriptMenusContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
15
|
+
export declare const ManuscriptMenusContainerInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
9
|
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c)
|
|
10
|
+
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2026 Atypon Systems LLC. All Rights Reserved.
|
|
11
11
|
*/
|
|
12
12
|
import '@manuscripts/body-editor/styles/Editor.css';
|
|
13
13
|
import '@manuscripts/body-editor/styles/AdvancedEditor.css';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
9
|
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c)
|
|
10
|
+
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2026 Atypon Systems LLC. All Rights Reserved.
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
13
|
interface Props {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useGetUserName: () => (userID: string, full?: boolean) => string;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2024 Atypon Systems LLC. All Rights Reserved.
|
|
11
11
|
*/
|
|
12
12
|
import { Comment } from '@manuscripts/body-editor';
|
|
13
|
-
import { UserProfile } from '@manuscripts/transform';
|
|
14
13
|
import { EditorState } from 'prosemirror-state';
|
|
15
14
|
export type Thread = {
|
|
16
15
|
comment: Comment;
|
|
@@ -24,5 +23,4 @@ export declare const buildThreads: (comments: Comment[], newCommentID?: string)
|
|
|
24
23
|
* includes only comments that have a target id associated with a node
|
|
25
24
|
*/
|
|
26
25
|
export declare const getOrphanComments: (state: EditorState) => Map<string, Comment> | undefined;
|
|
27
|
-
export declare const buildAuthorName: (user: UserProfile | undefined) => string;
|
|
28
26
|
export declare const commentsByTime: (a: Comment, b: Comment) => number;
|
|
@@ -24,6 +24,13 @@ export type action = {
|
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
};
|
|
26
26
|
export type PMEditor = ReturnType<typeof useCreateEditor>;
|
|
27
|
+
export type HostUser = {
|
|
28
|
+
id: string;
|
|
29
|
+
displayName: string;
|
|
30
|
+
firstName?: string;
|
|
31
|
+
lastName?: string;
|
|
32
|
+
connectId: string;
|
|
33
|
+
};
|
|
27
34
|
export type state = {
|
|
28
35
|
manuscriptID: string;
|
|
29
36
|
projectID: string;
|
|
@@ -31,6 +38,7 @@ export type state = {
|
|
|
31
38
|
project: Project;
|
|
32
39
|
refreshProject: () => Promise<void>;
|
|
33
40
|
user: UserProfile;
|
|
41
|
+
hostUsers: HostUser[];
|
|
34
42
|
editor: PMEditor;
|
|
35
43
|
doc: ManuscriptNode;
|
|
36
44
|
initialDocVersion: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/article-editor",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.1",
|
|
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",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@fontsource/pt-sans": "5.2.5",
|
|
37
37
|
"@fontsource/pt-serif": "5.2.5",
|
|
38
38
|
"@headlessui/react": "2.2.3",
|
|
39
|
-
"@manuscripts/body-editor": "3.
|
|
40
|
-
"@manuscripts/style-guide": "3.7.
|
|
39
|
+
"@manuscripts/body-editor": "3.16.1",
|
|
40
|
+
"@manuscripts/style-guide": "3.7.1",
|
|
41
41
|
"@manuscripts/track-changes-plugin": "2.4.0",
|
|
42
|
-
"@manuscripts/transform": "4.
|
|
42
|
+
"@manuscripts/transform": "4.5.1",
|
|
43
43
|
"@popperjs/core": "2.11.8",
|
|
44
44
|
"axios": "1.16.0",
|
|
45
45
|
"date-fns": "4.1.0",
|