@manuscripts/article-editor 3.9.1-LEAN-4533.1 → 3.9.2-LEAN-2023.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 (131) hide show
  1. package/dist/cjs/EditorApp.js +1 -8
  2. package/dist/cjs/EditorApp.js.map +1 -1
  3. package/dist/cjs/Main.js +3 -3
  4. package/dist/cjs/Main.js.map +1 -1
  5. package/dist/{types/lib/comparison/rebuild-nodes-tree.d.ts → cjs/__mocks__/fileMock.js} +5 -4
  6. package/dist/cjs/__mocks__/fileMock.js.map +1 -0
  7. package/dist/{types/lib/comparison/create-dataTracked-attrs.d.ts → cjs/__mocks__/styleMock.js} +5 -5
  8. package/dist/cjs/__mocks__/styleMock.js.map +1 -0
  9. package/dist/cjs/components/inspector/SnapshotsList.js +2 -14
  10. package/dist/cjs/components/inspector/SnapshotsList.js.map +1 -1
  11. package/dist/cjs/components/projects/EditorElement.js +4 -5
  12. package/dist/cjs/components/projects/EditorElement.js.map +1 -1
  13. package/dist/cjs/components/projects/Inspector.js +1 -7
  14. package/dist/cjs/components/projects/Inspector.js.map +1 -1
  15. package/dist/cjs/components/projects/ManuscriptPageContainer.js +3 -4
  16. package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
  17. package/dist/cjs/components/track-changes/TrackChangesPanel.js +3 -16
  18. package/dist/cjs/components/track-changes/TrackChangesPanel.js.map +1 -1
  19. package/dist/cjs/components/track-changes/suggestion-list/Suggestion.js +3 -7
  20. package/dist/cjs/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
  21. package/dist/cjs/components/track-changes/suggestion-list/SuggestionList.js +2 -6
  22. package/dist/cjs/components/track-changes/suggestion-list/SuggestionList.js.map +1 -1
  23. package/dist/cjs/components/track-changes/utils.js +1 -2
  24. package/dist/cjs/components/track-changes/utils.js.map +1 -1
  25. package/dist/cjs/hooks/use-create-editor.js +13 -30
  26. package/dist/cjs/hooks/use-create-editor.js.map +1 -1
  27. package/dist/cjs/index.js +3 -3
  28. package/dist/cjs/index.js.map +1 -1
  29. package/dist/cjs/lib/{tracking.js → __tests__/layout.test.js} +25 -38
  30. package/dist/cjs/lib/__tests__/layout.test.js.map +1 -0
  31. package/dist/cjs/lib/__tests__/preferences.test.js +50 -0
  32. package/dist/cjs/lib/__tests__/preferences.test.js.map +1 -0
  33. package/dist/cjs/lib/__tests__/roles.test.js +32 -0
  34. package/dist/cjs/lib/__tests__/roles.test.js.map +1 -0
  35. package/dist/cjs/lib/change-handlers.js +28 -5
  36. package/dist/cjs/lib/change-handlers.js.map +1 -1
  37. package/dist/cjs/store/Store.js +2 -7
  38. package/dist/cjs/store/Store.js.map +1 -1
  39. package/dist/es/EditorApp.js +1 -8
  40. package/dist/es/EditorApp.js.map +1 -1
  41. package/dist/es/Main.js +3 -3
  42. package/dist/es/Main.js.map +1 -1
  43. package/dist/{types/lib/comparison/distribute-nodes.d.ts → es/__mocks__/fileMock.js} +3 -9
  44. package/dist/es/__mocks__/fileMock.js.map +1 -0
  45. package/dist/es/__mocks__/styleMock.js +13 -0
  46. package/dist/es/__mocks__/styleMock.js.map +1 -0
  47. package/dist/es/components/inspector/SnapshotsList.js +3 -15
  48. package/dist/es/components/inspector/SnapshotsList.js.map +1 -1
  49. package/dist/es/components/projects/EditorElement.js +4 -5
  50. package/dist/es/components/projects/EditorElement.js.map +1 -1
  51. package/dist/es/components/projects/Inspector.js +1 -7
  52. package/dist/es/components/projects/Inspector.js.map +1 -1
  53. package/dist/es/components/projects/ManuscriptPageContainer.js +3 -4
  54. package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
  55. package/dist/es/components/track-changes/TrackChangesPanel.js +3 -16
  56. package/dist/es/components/track-changes/TrackChangesPanel.js.map +1 -1
  57. package/dist/es/components/track-changes/suggestion-list/Suggestion.js +3 -7
  58. package/dist/es/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
  59. package/dist/es/components/track-changes/suggestion-list/SuggestionList.js +2 -6
  60. package/dist/es/components/track-changes/suggestion-list/SuggestionList.js.map +1 -1
  61. package/dist/es/components/track-changes/utils.js +1 -2
  62. package/dist/es/components/track-changes/utils.js.map +1 -1
  63. package/dist/es/hooks/use-create-editor.js +14 -31
  64. package/dist/es/hooks/use-create-editor.js.map +1 -1
  65. package/dist/es/index.js +3 -3
  66. package/dist/es/index.js.map +1 -1
  67. package/dist/es/lib/{tracking.js → __tests__/layout.test.js} +22 -35
  68. package/dist/es/lib/__tests__/layout.test.js.map +1 -0
  69. package/dist/{types/lib/comparison/compare-table-element.d.ts → es/lib/__tests__/preferences.test.js} +15 -11
  70. package/dist/es/lib/__tests__/preferences.test.js.map +1 -0
  71. package/dist/es/lib/__tests__/roles.test.js +30 -0
  72. package/dist/es/lib/__tests__/roles.test.js.map +1 -0
  73. package/dist/es/lib/change-handlers.js +23 -1
  74. package/dist/es/lib/change-handlers.js.map +1 -1
  75. package/dist/es/store/Store.js +2 -7
  76. package/dist/es/store/Store.js.map +1 -1
  77. package/dist/types/EditorApp.d.ts +1 -2
  78. package/dist/types/Main.d.ts +1 -1
  79. package/dist/types/__mocks__/fileMock.d.ts +13 -0
  80. package/dist/types/__mocks__/styleMock.d.ts +13 -0
  81. package/dist/types/components/projects/Inspector.d.ts +1 -1
  82. package/dist/types/components/projects/ManuscriptPageContainer.d.ts +1 -1
  83. package/dist/types/components/projects/inputs.d.ts +1 -1
  84. package/dist/types/components/track-changes/TrackChangesPanel.d.ts +1 -1
  85. package/dist/types/components/track-changes/suggestion-list/Suggestion.d.ts +1 -1
  86. package/dist/types/components/track-changes/suggestion-list/SuggestionList.d.ts +3 -3
  87. package/dist/types/index.d.ts +1 -1
  88. package/dist/types/lib/{tracking.d.ts → __tests__/layout.test.d.ts} +0 -17
  89. package/dist/types/lib/__tests__/preferences.test.d.ts +12 -0
  90. package/dist/types/lib/__tests__/roles.test.d.ts +12 -0
  91. package/dist/types/lib/change-handlers.d.ts +1 -0
  92. package/dist/types/store/Store.d.ts +1 -3
  93. package/package.json +77 -84
  94. package/dist/cjs/components/tools/CompareDocumentsModal.js +0 -170
  95. package/dist/cjs/components/tools/CompareDocumentsModal.js.map +0 -1
  96. package/dist/cjs/hooks/use-compare-documents.js +0 -69
  97. package/dist/cjs/hooks/use-compare-documents.js.map +0 -1
  98. package/dist/cjs/lib/comparison/compare-documents.js +0 -53
  99. package/dist/cjs/lib/comparison/compare-documents.js.map +0 -1
  100. package/dist/cjs/lib/comparison/compare-paragraph-like.js +0 -388
  101. package/dist/cjs/lib/comparison/compare-paragraph-like.js.map +0 -1
  102. package/dist/cjs/lib/comparison/compare-table-element.js +0 -567
  103. package/dist/cjs/lib/comparison/compare-table-element.js.map +0 -1
  104. package/dist/cjs/lib/comparison/create-dataTracked-attrs.js +0 -60
  105. package/dist/cjs/lib/comparison/create-dataTracked-attrs.js.map +0 -1
  106. package/dist/cjs/lib/comparison/distribute-nodes.js +0 -131
  107. package/dist/cjs/lib/comparison/distribute-nodes.js.map +0 -1
  108. package/dist/cjs/lib/comparison/rebuild-nodes-tree.js +0 -76
  109. package/dist/cjs/lib/comparison/rebuild-nodes-tree.js.map +0 -1
  110. package/dist/cjs/lib/tracking.js.map +0 -1
  111. package/dist/es/components/tools/CompareDocumentsModal.js +0 -140
  112. package/dist/es/components/tools/CompareDocumentsModal.js.map +0 -1
  113. package/dist/es/hooks/use-compare-documents.js +0 -65
  114. package/dist/es/hooks/use-compare-documents.js.map +0 -1
  115. package/dist/es/lib/comparison/compare-documents.js +0 -48
  116. package/dist/es/lib/comparison/compare-documents.js.map +0 -1
  117. package/dist/es/lib/comparison/compare-paragraph-like.js +0 -378
  118. package/dist/es/lib/comparison/compare-paragraph-like.js.map +0 -1
  119. package/dist/es/lib/comparison/compare-table-element.js +0 -559
  120. package/dist/es/lib/comparison/compare-table-element.js.map +0 -1
  121. package/dist/es/lib/comparison/create-dataTracked-attrs.js +0 -54
  122. package/dist/es/lib/comparison/create-dataTracked-attrs.js.map +0 -1
  123. package/dist/es/lib/comparison/distribute-nodes.js +0 -127
  124. package/dist/es/lib/comparison/distribute-nodes.js.map +0 -1
  125. package/dist/es/lib/comparison/rebuild-nodes-tree.js +0 -72
  126. package/dist/es/lib/comparison/rebuild-nodes-tree.js.map +0 -1
  127. package/dist/es/lib/tracking.js.map +0 -1
  128. package/dist/types/components/tools/CompareDocumentsModal.d.ts +0 -11
  129. package/dist/types/hooks/use-compare-documents.d.ts +0 -24
  130. package/dist/types/lib/comparison/compare-documents.d.ts +0 -16
  131. package/dist/types/lib/comparison/compare-paragraph-like.d.ts +0 -23
@@ -1 +1 @@
1
- {"version":3,"file":"change-handlers.js","sourceRoot":"","sources":["../../../src/lib/change-handlers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAEL,gBAAgB,EAChB,WAAW,GAEZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,SAAS,GAKV,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAGL,SAAS,EACT,MAAM,GACP,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAQvC,MAAM,cAAc,GAAG,CAAC,IAAoB,EAAW,EAAE,CACvD,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,SAAS,CAAA;AAEtC,MAAM,mBAAmB,GAAG,CAAC,IAAoB,EAAU,EAAE;IAC3D,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE;QACxB,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,IAAI;aACZ,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;a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I,CAAA;IAEpE,oBAAoB;IACpB,MAAM,OAAO,GAAG,SAAS;SACtB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAClB,MAAM,EAAE,QAAQ,KAAK,iBAAiB;QACpC,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,GAAG;QACvB,CAAC,CAAC,MAAM,EAAE,OAAO,IAAI,EAAE,CAC1B;SACA,IAAI,CAAC,EAAE,CAAC,CAAA;IAEX,OAAO;QACL,SAAS,EAAE,oBAAoB,CAAC,WAAW,CAAC,SAAS,CAAC;QACtD,QAAQ,EAAE,aAAa,IAAI,MAAM;QACjC,OAAO;KACR,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAgB,EAAE;IACnD,OAAO;QACL,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,iBAAiB;KAC3B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAiB,EAAU,EAAE;IAChE,QAAQ,SAAS,EAAE;QACjB,KAAK,QAAQ,CAAC,CAAC;YACb,OAAO,SAAS,CAAA;SACjB;QACD,KAAK,QAAQ,CAAC;QACd,KAAK,gBAAgB,CAAC,CAAC;YACrB,OAAO,UAAU,CAAA;SAClB;QACD,KAAK,WAAW,CAAC,CAAC;YAChB,OAAO,SAAS,CAAA;SACjB;QACD,KAAK,YAAY,CAAC,CAAC;YACjB,OAAO,OAAO,CAAA;SACf;QACD,KAAK,MAAM,CAAC,CAAC;YACX,OAAO,MAAM,CAAA;SACd;QACD,OAAO,CAAC,CAAC;YACP,OAAO,MAAM,CAAA;SACd;KACF;AACH,CAAC,CAAA"}
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import { buildStateFromSources } from '.';
13
13
  const DEFAULT_ACTION = '_'; // making actions optional
@@ -20,12 +20,7 @@ export class GenericStore {
20
20
  this.init = async (sources) => {
21
21
  this.sources = sources;
22
22
  const state = await buildStateFromSources(sources, this.setState);
23
- this.setState({
24
- ...this.state,
25
- ...state,
26
- isViewingMode: false,
27
- isComparingMode: false,
28
- });
23
+ this.setState({ ...this.state, ...state, isViewingMode: false });
29
24
  // listening to changes before state applied
30
25
  this.beforeAction = (action, payload, store, setState) => {
31
26
  // provide a way for the data sources to cancel the action optionally
@@ -1 +1 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../../src/store/Store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAkBH,OAAO,EAAE,qBAAqB,EAA2B,MAAM,GAAG,CAAA;AA4DlE,MAAM,cAAc,GAAG,GAAG,CAAA,CAAC,0BAA0B;AAErD,MAAM,cAAc,GAAG,CAAC,OAAY,EAAE,KAAY,EAAE,MAAe,EAAE,EAAE;IACrE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,EAAE,CAAA;AACjC,CAAC,CAAA;AAqBD,MAAM,OAAO,YAAY;IAWvB,YACE,OAAO,GAAG,cAAc,EACxB,cAAuC,EACvC,KAAK,GAAG,EAAE;QAiBZ,UAAK,GAA6C,IAAI,GAAG,EAAE,CAAA;QAa3D,SAAI,GAAG,KAAK,EAAE,OAAkC,EAAE,EAAE;YAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;YAEtB,MAAM,KAAK,GAAG,MAAM,qBAAqB,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;YACjE,IAAI,CAAC,QAAQ,CAAC;gBACZ,GAAG,IAAI,CAAC,KAAK;gBACb,GAAI,KAAe;gBACnB,aAAa,EAAE,KAAK;gBACpB,eAAe,EAA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CAAA;IACxD,CAAC;IACD,SAAS,CAAC,EAAuC;QAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACxB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACb,OAAO,SAAS,WAAW;YACzB,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAClB,CAAC,CAAA;IACH,CAAC;IACD,cAAc,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,OAAO,EAAE;QACpD,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,CAC1C,MAAM,EACN,OAAO,EACP,IAAI,CAAC,KAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAA;QACD,IAAI,kBAAkB,EAAE;YACtB,IAAI,CAAC,QAAQ,CACX,IAAI,CAAC,OAAO,CACV,kBAAkB,CAAC,OAAO,EAC1B,IAAI,CAAC,KAAM,EACX,kBAAkB,CAAC,MAAM,IAAI,EAAE,CAChC,CACF,CAAA;SACF;IACH,CAAC;IACD,OAAO;QACL,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAM,CAAC,CAAA;SACjC;QACD,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;SACrE;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"}
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import { FileAttachment, FileManagement } from '@manuscripts/body-editor';
13
13
  import React, { MutableRefObject } from 'react';
@@ -29,7 +29,6 @@ export interface EditorAppProps {
29
29
  permittedActions: string[];
30
30
  getAuthToken: () => Promise<string | undefined>;
31
31
  observer?: AppStateObserver;
32
- submissionID: string;
33
32
  }
34
33
  declare const EditorApp: React.FC<EditorAppProps>;
35
34
  export default EditorApp;
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import React from 'react';
13
13
  import { EditorAppProps } from './EditorApp';
@@ -0,0 +1,13 @@
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
+ declare const _default: "test-file-stub";
13
+ export default _default;
@@ -0,0 +1,13 @@
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
+ declare const _default: {};
13
+ export default _default;
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2023 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import React from 'react';
13
13
  declare const Inspector: React.FC;
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 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';
@@ -9,4 +9,4 @@
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
- export declare const MediumTextField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("@manuscripts/style-guide").ErrorProps, never>;
12
+ export declare const MediumTextField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("@manuscripts/style-guide/dist/types").ErrorProps, never>;
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import React from 'react';
13
13
  export declare const TrackChangesPanel: React.FC;
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2022 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import { RootChange } from '@manuscripts/track-changes-plugin';
13
13
  import React from 'react';
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2022 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import { RootChange, RootChanges } from '@manuscripts/track-changes-plugin';
13
13
  import React from 'react';
@@ -17,8 +17,8 @@ export interface SuggestionListProps {
17
17
  title: string;
18
18
  type: string;
19
19
  sortBy: string;
20
- onAccept(change: RootChange): void | undefined;
21
- onReject(change: RootChange): void | undefined;
20
+ onAccept(change: RootChange): void;
21
+ onReject(change: RootChange): void;
22
22
  onAcceptAll?(): void;
23
23
  onSelect?(change: RootChange): void;
24
24
  }
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import './lib/fonts';
13
13
  import React from 'react';
@@ -9,21 +9,4 @@
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
- interface Tracking {
13
- category: string;
14
- action: string;
15
- label?: string;
16
- value?: string;
17
- }
18
- interface InvitationsTracking extends Tracking {
19
- category: 'Invitations';
20
- action: 'Share' | 'Send' | 'Accept';
21
- }
22
- interface ManuscriptsTracking extends Tracking {
23
- category: 'Manuscripts';
24
- action: 'Create' | 'Import' | 'Export';
25
- }
26
- type TrackEvent = (f: InvitationsTracking | ManuscriptsTracking) => void;
27
- export declare const trackEvent: TrackEvent;
28
- export declare const changeOperationAlias: (operation: string) => string;
29
12
  export {};
@@ -0,0 +1,12 @@
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
+ export {};
@@ -0,0 +1,12 @@
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
+ export {};
@@ -9,4 +9,5 @@ export declare const handleTextChange: (suggestion: TextChange, state: Manuscrip
9
9
  export declare const handleNodeChange: (suggestion: NodeChange | NodeAttrChange, state: ManuscriptEditorState) => SnippetData | null;
10
10
  export declare const handleGroupChanges: (suggestions: RootChange, view: any, doc: any, dataTracked: any) => SnippetData | null;
11
11
  export declare const handleUnknownChange: () => SnippetData;
12
+ export declare const changeOperationAlias: (operation: string) => string;
12
13
  export {};
@@ -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) 2025 Atypon Systems LLC. All Rights Reserved.
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  import { CommentKey, FileAttachment, FileManagement } from '@manuscripts/body-editor';
13
13
  import { Project, UserProfile } from '@manuscripts/json-schema';
@@ -26,7 +26,6 @@ export type state = {
26
26
  manuscriptID: string;
27
27
  projectID: string;
28
28
  userID?: string;
29
- submissionID?: string;
30
29
  project: Project;
31
30
  refreshProject: () => Promise<void>;
32
31
  user: UserProfile;
@@ -35,7 +34,6 @@ export type state = {
35
34
  initialDocVersion: number;
36
35
  trackState?: TrackChangesState;
37
36
  isViewingMode?: boolean;
38
- isComparingMode?: boolean;
39
37
  view?: ManuscriptEditorView;
40
38
  titleText: string;
41
39
  fileManagement: FileManagement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manuscripts/article-editor",
3
- "version": "3.9.1-LEAN-4533.1",
3
+ "version": "3.9.2-LEAN-2023.2",
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",
@@ -13,98 +13,91 @@
13
13
  "module": "dist/es",
14
14
  "types": "dist/types",
15
15
  "scripts": {
16
- "dev": "concurrently 'yarn:build:* --watch'",
17
- "build": "concurrently 'yarn:build:*'",
18
- "build:cjs": "tsc --outDir dist/cjs --module commonjs --project tsconfig.build.json",
19
- "build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration --project tsconfig.build.json",
16
+ "dev": "npm-run-all --parallel 'build:* --watch'",
17
+ "build": "npm-run-all --parallel build:*",
18
+ "build:cjs": "tsc --outDir dist/cjs --module commonjs",
19
+ "build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration",
20
20
  "test": "TZ=UTC jest --runInBand --detectOpenHandles --forceExit",
21
- "test:integration": "TZ=UTC jest --config=jest.integration.config.js --runInBand --detectOpenHandles --forceExit",
22
- "test:unit": "TZ=UTC jest --runInBand --detectOpenHandles --forceExit --testPathIgnorePatterns=Storyshots",
23
- "test:storyshots": "TZ=UTC jest --runInBand --detectOpenHandles --forceExit --testPathPattern=Storyshots",
24
- "test:watch": "jest --runInBand --testPathIgnorePatterns=Storyshots.test.ts --watch",
25
21
  "lint": "eslint src types --ext .ts,.tsx --max-warnings 0",
26
- "lint:fix": "eslint src types --fix --ext .ts,.tsx --max-warnings 0",
27
22
  "typecheck": "tsc --noEmit",
28
23
  "prettier": "prettier --write \"{src,stories,tests}/**/*.{js,ts,tsx,css}\"",
29
- "stats": "ALLOW_MISSING_VARIABLES=1 yarn --silent build --json > stats.json",
30
- "preversion": "concurrently typecheck lint",
24
+ "preversion": "npm-run-all --parallel typecheck lint",
31
25
  "prepare": "husky install",
32
- "version": "ALLOW_MISSING_VARIABLES=1 yarn build"
26
+ "version": "pnpm build"
33
27
  },
34
28
  "dependencies": {
35
- "@fontsource/lato": "^4.5.10",
36
- "@fontsource/pt-sans": "^4.5.11",
37
- "@fontsource/pt-serif": "^4.5.11",
38
- "@manuscripts/body-editor": "2.9.1-LEAN-4533.0",
39
- "@manuscripts/json-schema": "2.2.11",
40
- "@manuscripts/library": "1.3.14",
41
- "@manuscripts/style-guide": "2.1.13",
42
- "@manuscripts/track-changes-plugin": "1.10.8",
43
- "@manuscripts/transform": "3.1.1-LEAN-4533.0",
44
- "@popperjs/core": "^2.11.8",
45
- "@types/use-sync-external-store": "^0.0.6",
46
- "autotrack": "^2.4.1",
47
- "axios": "^1.6.7",
48
- "html-react-parser": "^5.1.16",
49
- "http-status-codes": "^2.2.0",
50
- "lodash": "^4.17.21",
51
- "prosemirror-utils": "^0.9.6",
52
- "react": "^18.3.1",
53
- "react-dnd": "^16.0.1",
54
- "react-dnd-html5-backend": "^16.0.1",
55
- "react-dom": "^18.3.1",
56
- "react-is": "^18.3.1",
57
- "react-modal": "^3.16.1",
58
- "react-popper": "^2.0.0",
59
- "react-select": "^5.7.3",
60
- "styled-components": "^5.2.0",
61
- "use-sync-external-store": "^1.2.2",
62
- "uuid": "^9.0.0",
63
- "yarn-run-all": "^3.1.1",
64
- "diff-match-patch": "^1.0.5"
29
+ "@fontsource/lato": "5.2.5",
30
+ "@fontsource/pt-sans": "5.2.5",
31
+ "@fontsource/pt-serif": "5.2.5",
32
+ "@headlessui/react": "2.2.3",
33
+ "@manuscripts/body-editor": "2.9.3-LEAN-2023.1",
34
+ "@manuscripts/json-schema": "2.2.12",
35
+ "@manuscripts/style-guide": "2.1.14-LEAN-2023.0",
36
+ "@manuscripts/track-changes-plugin": "1.10.10-LEAN-2023.1",
37
+ "@manuscripts/transform": "3.1.3-LEAN-2023.0",
38
+ "@popperjs/core": "2.11.8",
39
+ "date-fns": "4.1.0",
40
+ "dompurify": "3.2.5",
41
+ "prosemirror-state": "1.4.3",
42
+ "prosemirror-model": "1.25.0",
43
+ "prosemirror-transform": "1.10.4",
44
+ "prosemirror-view": "1.40.0",
45
+ "prosemirror-utils": "1.2.2",
46
+ "axios": "1.9.0",
47
+ "html-react-parser": "5.2.5",
48
+ "jwt-decode": "4.0.0",
49
+ "lodash": "4.17.21",
50
+ "react": "18.3.1",
51
+ "react-dnd": "16.0.1",
52
+ "react-dnd-html5-backend": "16.0.1",
53
+ "react-dom": "18.3.1",
54
+ "react-is": "18.3.1",
55
+ "react-popper": "2.3.0",
56
+ "react-router-dom": "6.30.0",
57
+ "react-select": "5.10.1",
58
+ "styled-components": "5.3.11",
59
+ "use-sync-external-store": "1.5.0",
60
+ "uuid": "9.0.1"
65
61
  },
66
62
  "devDependencies": {
67
- "@babel/core": "^7.20.5",
68
- "@babel/preset-env": "^7.20.2",
69
- "@babel/preset-react": "^7.18.6",
70
- "@babel/preset-typescript": "^7.18.6",
71
- "@manuscripts/eslint-config": "^0.5.1",
72
- "@types/diff-match-patch": "^1.0.36",
73
- "@types/dompurify": "^2.0.4",
74
- "@types/google.analytics": "^0.0.45",
75
- "@types/jest": "^29.2.4",
76
- "@types/lodash": "^4.14.202",
77
- "@types/react": "^18.3.1",
78
- "@types/react-dom": "^18.3.0",
79
- "@types/react-modal": "^3.10.6",
80
- "@types/styled-components": "^5.1.4",
81
- "@types/uuid": "^9.0.8",
82
- "@typescript-eslint/eslint-plugin": "^5.47.0",
83
- "@typescript-eslint/parser": "^5.47.0",
84
- "babel-jest": "^29.3.1",
85
- "concurrently": "^7.6.0",
86
- "eslint": "^8.46.0",
87
- "eslint-config-prettier": "^8.5.0",
88
- "eslint-plugin-header": "^3.1.1",
89
- "eslint-plugin-import": "^2.26.0",
90
- "eslint-plugin-jest": "^27.1.7",
91
- "eslint-plugin-jsx-a11y": "^6.6.1",
92
- "eslint-plugin-mdx": "^2.0.5",
93
- "eslint-plugin-prettier": "^4.2.1",
94
- "eslint-plugin-promise": "^6.1.1",
95
- "eslint-plugin-react": "^7.31.11",
96
- "eslint-plugin-react-hooks": "^4.6.0",
97
- "eslint-plugin-simple-import-sort": "^8.0.0",
98
- "husky": "^8.0.2",
99
- "jest": "^29.3.1",
100
- "jest-environment-jsdom": "^29.3.1",
101
- "jest-junit": "^15.0.0",
102
- "jest-styled-components": "^7.1.1",
103
- "prettier": "^2.8.1",
104
- "react-dnd-test-backend": "^16.0.1",
105
- "typescript": "^4.0.5"
63
+ "@babel/core": "7.23.7",
64
+ "@babel/preset-env": "7.23.8",
65
+ "@babel/preset-react": "7.27.1",
66
+ "@babel/preset-typescript": "7.23.3",
67
+ "@manuscripts/eslint-config": "0.5.1",
68
+ "@types/jest": "29.5.14",
69
+ "@types/lodash": "4.17.16",
70
+ "@types/node": "20.17.46",
71
+ "@types/react": "18.3.21",
72
+ "@types/react-dom": "18.3.7",
73
+ "@types/styled-components": "5.1.34",
74
+ "@types/use-sync-external-store": "1.5.0",
75
+ "@types/uuid": "9.0.8",
76
+ "@typescript-eslint/eslint-plugin": "5.62.0",
77
+ "@typescript-eslint/parser": "5.62.0",
78
+ "babel-jest": "29.7.0",
79
+ "eslint": "8.57.1",
80
+ "eslint-config-prettier": "8.10.0",
81
+ "eslint-plugin-header": "3.1.1",
82
+ "eslint-plugin-import": "2.31.0",
83
+ "eslint-plugin-jest": "27.9.0",
84
+ "eslint-plugin-jsx-a11y": "6.10.2",
85
+ "eslint-plugin-mdx": "2.3.4",
86
+ "eslint-plugin-node": "11.1.0",
87
+ "eslint-plugin-prettier": "4.2.1",
88
+ "eslint-plugin-promise": "6.6.0",
89
+ "eslint-plugin-react": "7.37.5",
90
+ "eslint-plugin-react-hooks": "4.6.2",
91
+ "eslint-plugin-simple-import-sort": "8.0.0",
92
+ "husky": "8.0.3",
93
+ "jest": "29.7.0",
94
+ "jest-environment-jsdom": "29.7.0",
95
+ "npm-run-all": "4.1.5",
96
+ "prettier": "2.8.8",
97
+ "react-dnd-test-backend": "16.0.1",
98
+ "typescript": "4.9.5"
106
99
  },
107
- "resolutions": {
108
- "@types/react": "^18.3.1"
100
+ "engines": {
101
+ "node": ">=20.16.0"
109
102
  }
110
103
  }