@manuscripts/article-editor 4.3.0 → 4.3.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 (238) hide show
  1. package/dist/cjs/EditorApp.js +17 -7
  2. package/dist/cjs/EditorApp.js.map +1 -1
  3. package/dist/cjs/api/Api.js.map +1 -1
  4. package/dist/cjs/api/ApiSource.js.map +1 -1
  5. package/dist/cjs/api/StepsExchanger.js.map +1 -1
  6. package/dist/cjs/api/buildData.js.map +1 -1
  7. package/dist/cjs/api/buildUtilities.js.map +1 -1
  8. package/dist/cjs/api/savingUtilities.js.map +1 -1
  9. package/dist/cjs/components/DelayUnmount.js +17 -7
  10. package/dist/cjs/components/DelayUnmount.js.map +1 -1
  11. package/dist/cjs/components/FileManager/FileActions.js +17 -7
  12. package/dist/cjs/components/FileManager/FileActions.js.map +1 -1
  13. package/dist/cjs/components/FileManager/FileCreatedDate.js.map +1 -1
  14. package/dist/cjs/components/FileManager/FileManager.js +18 -8
  15. package/dist/cjs/components/FileManager/FileManager.js.map +1 -1
  16. package/dist/cjs/components/FileManager/FileManagerDragLayer.js.map +1 -1
  17. package/dist/cjs/components/FileManager/FileSectionAlert.js +1 -1
  18. package/dist/cjs/components/FileManager/FileSectionAlert.js.map +1 -1
  19. package/dist/cjs/components/FileManager/FileUploader.js +17 -7
  20. package/dist/cjs/components/FileManager/FileUploader.js.map +1 -1
  21. package/dist/cjs/components/FileManager/InlineFilesSection.js +17 -7
  22. package/dist/cjs/components/FileManager/InlineFilesSection.js.map +1 -1
  23. package/dist/cjs/components/FileManager/LinkedFilesSection.js +17 -7
  24. package/dist/cjs/components/FileManager/LinkedFilesSection.js.map +1 -1
  25. package/dist/cjs/components/FileManager/MainFilesSection.js +17 -7
  26. package/dist/cjs/components/FileManager/MainFilesSection.js.map +1 -1
  27. package/dist/cjs/components/FileManager/OtherFilesSection.js +17 -7
  28. package/dist/cjs/components/FileManager/OtherFilesSection.js.map +1 -1
  29. package/dist/cjs/components/FileManager/SupplementsSection.js +17 -7
  30. package/dist/cjs/components/FileManager/SupplementsSection.js.map +1 -1
  31. package/dist/cjs/components/InspectorSection.js +17 -7
  32. package/dist/cjs/components/InspectorSection.js.map +1 -1
  33. package/dist/cjs/components/Panel.js +17 -7
  34. package/dist/cjs/components/Panel.js.map +1 -1
  35. package/dist/cjs/components/ResizerButtons.js +17 -7
  36. package/dist/cjs/components/ResizerButtons.js.map +1 -1
  37. package/dist/cjs/components/SearchReplace/SearchField.js +17 -7
  38. package/dist/cjs/components/SearchReplace/SearchField.js.map +1 -1
  39. package/dist/cjs/components/SearchReplace/SearchReplace.js +17 -7
  40. package/dist/cjs/components/SearchReplace/SearchReplace.js.map +1 -1
  41. package/dist/cjs/components/Sidebar/Sidebar.js +17 -7
  42. package/dist/cjs/components/Sidebar/Sidebar.js.map +1 -1
  43. package/dist/cjs/components/Sidebar/SidebarHeaderFooter.js +17 -7
  44. package/dist/cjs/components/Sidebar/SidebarHeaderFooter.js.map +1 -1
  45. package/dist/cjs/components/comments/CommentBody.js +17 -7
  46. package/dist/cjs/components/comments/CommentBody.js.map +1 -1
  47. package/dist/cjs/components/comments/CommentCard.js +17 -7
  48. package/dist/cjs/components/comments/CommentCard.js.map +1 -1
  49. package/dist/cjs/components/comments/CommentThread.js +17 -7
  50. package/dist/cjs/components/comments/CommentThread.js.map +1 -1
  51. package/dist/cjs/components/comments/CommentsPanel.js +17 -7
  52. package/dist/cjs/components/comments/CommentsPanel.js.map +1 -1
  53. package/dist/cjs/components/comments/DeleteCommentConfirmation.js +17 -7
  54. package/dist/cjs/components/comments/DeleteCommentConfirmation.js.map +1 -1
  55. package/dist/cjs/components/comments/ReplyBox.js +17 -7
  56. package/dist/cjs/components/comments/ReplyBox.js.map +1 -1
  57. package/dist/cjs/components/inspector/InspectorTab.js +17 -7
  58. package/dist/cjs/components/inspector/InspectorTab.js.map +1 -1
  59. package/dist/cjs/components/inspector/IssuesPanel.js +17 -7
  60. package/dist/cjs/components/inspector/IssuesPanel.js.map +1 -1
  61. package/dist/cjs/components/inspector/SnapshotsList.js +17 -7
  62. package/dist/cjs/components/inspector/SnapshotsList.js.map +1 -1
  63. package/dist/cjs/components/inspector/TabLabel.js +17 -7
  64. package/dist/cjs/components/inspector/TabLabel.js.map +1 -1
  65. package/dist/cjs/components/projects/EditorElement.js +17 -7
  66. package/dist/cjs/components/projects/EditorElement.js.map +1 -1
  67. package/dist/cjs/components/projects/HighlightedText.js.map +1 -1
  68. package/dist/cjs/components/projects/Inspector.js +17 -7
  69. package/dist/cjs/components/projects/Inspector.js.map +1 -1
  70. package/dist/cjs/components/projects/ListToolbarItem.js.map +1 -1
  71. package/dist/cjs/components/projects/ListToolbarItemStyles.js +17 -7
  72. package/dist/cjs/components/projects/ListToolbarItemStyles.js.map +1 -1
  73. package/dist/cjs/components/projects/ManuscriptMenus.js +17 -7
  74. package/dist/cjs/components/projects/ManuscriptMenus.js.map +1 -1
  75. package/dist/cjs/components/projects/ManuscriptSidebar.js.map +1 -1
  76. package/dist/cjs/components/projects/ManuscriptToolbar.js.map +1 -1
  77. package/dist/cjs/components/projects/TrackChangesStyles.js.map +1 -1
  78. package/dist/cjs/components/tools/CompareDocumentsModal.js +17 -7
  79. package/dist/cjs/components/tools/CompareDocumentsModal.js.map +1 -1
  80. package/dist/cjs/components/track-changes/ApproveAllButton.js +17 -7
  81. package/dist/cjs/components/track-changes/ApproveAllButton.js.map +1 -1
  82. package/dist/cjs/components/track-changes/SortByDropdown.js +17 -7
  83. package/dist/cjs/components/track-changes/SortByDropdown.js.map +1 -1
  84. package/dist/cjs/components/track-changes/TrackChangesPanel.js +17 -7
  85. package/dist/cjs/components/track-changes/TrackChangesPanel.js.map +1 -1
  86. package/dist/cjs/components/track-changes/TrackModal.js +17 -7
  87. package/dist/cjs/components/track-changes/TrackModal.js.map +1 -1
  88. package/dist/cjs/components/track-changes/suggestion-list/SnippetContent.js +17 -7
  89. package/dist/cjs/components/track-changes/suggestion-list/SnippetContent.js.map +1 -1
  90. package/dist/cjs/components/track-changes/suggestion-list/Suggestion.js +17 -7
  91. package/dist/cjs/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
  92. package/dist/cjs/components/track-changes/suggestion-list/SuggestionActions.js +17 -7
  93. package/dist/cjs/components/track-changes/suggestion-list/SuggestionActions.js.map +1 -1
  94. package/dist/cjs/components/track-changes/suggestion-list/SuggestionSnippet.js +17 -7
  95. package/dist/cjs/components/track-changes/suggestion-list/SuggestionSnippet.js.map +1 -1
  96. package/dist/cjs/components/track-changes/utils.js.map +1 -1
  97. package/dist/cjs/config.js +2 -3
  98. package/dist/cjs/config.js.map +1 -1
  99. package/dist/cjs/hooks/external/use-manuscripts-state.js.map +1 -1
  100. package/dist/cjs/hooks/use-compare-documents.js.map +1 -1
  101. package/dist/cjs/hooks/use-connect-editor.js.map +1 -1
  102. package/dist/cjs/hooks/use-create-editor.js +2 -2
  103. package/dist/cjs/hooks/use-create-editor.js.map +1 -1
  104. package/dist/cjs/hooks/use-handle-snapshot.js.map +1 -1
  105. package/dist/cjs/hooks/use-inspector-tabs-context.js +2 -2
  106. package/dist/cjs/hooks/use-inspector-tabs-context.js.map +1 -1
  107. package/dist/cjs/hooks/use-synced-data.js.map +1 -1
  108. package/dist/cjs/hooks/use-watch-title.js +1 -2
  109. package/dist/cjs/hooks/use-watch-title.js.map +1 -1
  110. package/dist/cjs/hooks/use-window-unload-effect.js.map +1 -1
  111. package/dist/cjs/index.js +17 -7
  112. package/dist/cjs/index.js.map +1 -1
  113. package/dist/cjs/lib/attrs-change-filter.js.map +1 -1
  114. package/dist/cjs/lib/change-handlers.js.map +1 -1
  115. package/dist/cjs/lib/comments.js.map +1 -1
  116. package/dist/cjs/lib/comparison/compare-documents.js.map +1 -1
  117. package/dist/cjs/lib/comparison/compare-paragraph-like.js.map +1 -1
  118. package/dist/cjs/lib/comparison/compare-table-element.js.map +1 -1
  119. package/dist/cjs/lib/comparison/distribute-nodes.js.map +1 -1
  120. package/dist/cjs/lib/comparison/rebuild-nodes-tree.js.map +1 -1
  121. package/dist/cjs/lib/deeper-equal.js.map +1 -1
  122. package/dist/cjs/lib/doc.js.map +1 -1
  123. package/dist/cjs/lib/files.js.map +1 -1
  124. package/dist/cjs/lib/get-node-without-tc.js +2 -3
  125. package/dist/cjs/lib/get-node-without-tc.js.map +1 -1
  126. package/dist/cjs/lib/node-attrs.js.map +1 -1
  127. package/dist/cjs/lib/node-content-retriever.js +2 -2
  128. package/dist/cjs/lib/node-content-retriever.js.map +1 -1
  129. package/dist/cjs/lib/roles.js +1 -1
  130. package/dist/cjs/lib/roles.js.map +1 -1
  131. package/dist/cjs/lib/utils.js.map +1 -1
  132. package/dist/cjs/setupTests.js.map +1 -1
  133. package/dist/cjs/store/Store.js.map +1 -1
  134. package/dist/cjs/store/StoreContext.js +17 -7
  135. package/dist/cjs/store/StoreContext.js.map +1 -1
  136. package/dist/cjs/store/buildStateFromSources.js +1 -2
  137. package/dist/cjs/store/buildStateFromSources.js.map +1 -1
  138. package/dist/cjs/theme/theme.js +22 -12
  139. package/dist/cjs/theme/theme.js.map +1 -1
  140. package/dist/es/EditorApp.js.map +1 -1
  141. package/dist/es/api/Api.js.map +1 -1
  142. package/dist/es/api/ApiSource.js.map +1 -1
  143. package/dist/es/api/StepsExchanger.js.map +1 -1
  144. package/dist/es/api/buildData.js.map +1 -1
  145. package/dist/es/api/buildUtilities.js.map +1 -1
  146. package/dist/es/api/savingUtilities.js.map +1 -1
  147. package/dist/es/components/DelayUnmount.js.map +1 -1
  148. package/dist/es/components/FileManager/FileActions.js.map +1 -1
  149. package/dist/es/components/FileManager/FileCreatedDate.js.map +1 -1
  150. package/dist/es/components/FileManager/FileManagerDragLayer.js.map +1 -1
  151. package/dist/es/components/FileManager/FileUploader.js.map +1 -1
  152. package/dist/es/components/FileManager/InlineFilesSection.js.map +1 -1
  153. package/dist/es/components/FileManager/LinkedFilesSection.js.map +1 -1
  154. package/dist/es/components/FileManager/MainFilesSection.js.map +1 -1
  155. package/dist/es/components/FileManager/OtherFilesSection.js.map +1 -1
  156. package/dist/es/components/FileManager/SupplementsSection.js.map +1 -1
  157. package/dist/es/components/Panel.js.map +1 -1
  158. package/dist/es/components/SearchReplace/SearchReplace.js.map +1 -1
  159. package/dist/es/components/comments/CommentBody.js.map +1 -1
  160. package/dist/es/components/comments/CommentCard.js.map +1 -1
  161. package/dist/es/components/comments/CommentThread.js.map +1 -1
  162. package/dist/es/components/comments/CommentsPanel.js.map +1 -1
  163. package/dist/es/components/comments/DeleteCommentConfirmation.js.map +1 -1
  164. package/dist/es/components/comments/ReplyBox.js.map +1 -1
  165. package/dist/es/components/inspector/IssuesPanel.js.map +1 -1
  166. package/dist/es/components/inspector/SnapshotsList.js.map +1 -1
  167. package/dist/es/components/projects/EditorElement.js.map +1 -1
  168. package/dist/es/components/projects/HighlightedText.js.map +1 -1
  169. package/dist/es/components/projects/Inspector.js.map +1 -1
  170. package/dist/es/components/projects/ListToolbarItem.js.map +1 -1
  171. package/dist/es/components/projects/ManuscriptMenus.js.map +1 -1
  172. package/dist/es/components/projects/ManuscriptSidebar.js.map +1 -1
  173. package/dist/es/components/projects/ManuscriptToolbar.js.map +1 -1
  174. package/dist/es/components/projects/TrackChangesStyles.js.map +1 -1
  175. package/dist/es/components/track-changes/TrackChangesPanel.js.map +1 -1
  176. package/dist/es/components/track-changes/TrackModal.js.map +1 -1
  177. package/dist/es/components/track-changes/suggestion-list/SnippetContent.js.map +1 -1
  178. package/dist/es/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
  179. package/dist/es/components/track-changes/suggestion-list/SuggestionActions.js.map +1 -1
  180. package/dist/es/components/track-changes/suggestion-list/SuggestionSnippet.js.map +1 -1
  181. package/dist/es/components/track-changes/utils.js.map +1 -1
  182. package/dist/es/config.js.map +1 -1
  183. package/dist/es/hooks/external/use-manuscripts-state.js.map +1 -1
  184. package/dist/es/hooks/use-compare-documents.js.map +1 -1
  185. package/dist/es/hooks/use-connect-editor.js.map +1 -1
  186. package/dist/es/hooks/use-create-editor.js +2 -2
  187. package/dist/es/hooks/use-create-editor.js.map +1 -1
  188. package/dist/es/hooks/use-handle-snapshot.js.map +1 -1
  189. package/dist/es/hooks/use-inspector-tabs-context.js.map +1 -1
  190. package/dist/es/hooks/use-synced-data.js.map +1 -1
  191. package/dist/es/hooks/use-watch-title.js.map +1 -1
  192. package/dist/es/hooks/use-window-unload-effect.js.map +1 -1
  193. package/dist/es/lib/attrs-change-filter.js.map +1 -1
  194. package/dist/es/lib/change-handlers.js.map +1 -1
  195. package/dist/es/lib/comments.js.map +1 -1
  196. package/dist/es/lib/comparison/compare-documents.js.map +1 -1
  197. package/dist/es/lib/comparison/compare-paragraph-like.js.map +1 -1
  198. package/dist/es/lib/comparison/compare-table-element.js.map +1 -1
  199. package/dist/es/lib/comparison/distribute-nodes.js.map +1 -1
  200. package/dist/es/lib/comparison/rebuild-nodes-tree.js.map +1 -1
  201. package/dist/es/lib/deeper-equal.js.map +1 -1
  202. package/dist/es/lib/doc.js.map +1 -1
  203. package/dist/es/lib/files.js.map +1 -1
  204. package/dist/es/lib/get-node-without-tc.js.map +1 -1
  205. package/dist/es/lib/node-attrs.js.map +1 -1
  206. package/dist/es/lib/node-content-retriever.js +2 -2
  207. package/dist/es/lib/node-content-retriever.js.map +1 -1
  208. package/dist/es/lib/roles.js.map +1 -1
  209. package/dist/es/lib/utils.js.map +1 -1
  210. package/dist/es/setupTests.js.map +1 -1
  211. package/dist/es/store/Store.js.map +1 -1
  212. package/dist/es/store/StoreContext.js.map +1 -1
  213. package/dist/es/store/buildStateFromSources.js.map +1 -1
  214. package/dist/es/theme/theme.js +5 -5
  215. package/dist/es/theme/theme.js.map +1 -1
  216. package/dist/types/api/Api.d.ts +0 -1
  217. package/dist/types/components/FileManager/FileActions.d.ts +4 -4
  218. package/dist/types/components/InspectorSection.d.ts +7 -7
  219. package/dist/types/components/Panel.d.ts +7 -7
  220. package/dist/types/components/nav/Dropdown.d.ts +7 -8
  221. package/dist/types/components/projects/ListToolbarItemStyles.d.ts +2 -2
  222. package/dist/types/components/projects/TagsInput.d.ts +2 -2
  223. package/dist/types/components/projects/inputs.d.ts +1 -1
  224. package/dist/types/components/track-changes/TrackModal.d.ts +4 -4
  225. package/dist/types/lib/roles.d.ts +2 -2
  226. package/dist/types/store/Store.d.ts +2 -2
  227. package/dist/types/store/useStore.d.ts +1 -1
  228. package/package.json +19 -19
  229. package/dist/cjs/lib/__tests__/preferences.test.js +0 -50
  230. package/dist/cjs/lib/__tests__/preferences.test.js.map +0 -1
  231. package/dist/cjs/lib/preferences.js +0 -31
  232. package/dist/cjs/lib/preferences.js.map +0 -1
  233. package/dist/es/lib/__tests__/preferences.test.js +0 -25
  234. package/dist/es/lib/__tests__/preferences.test.js.map +0 -1
  235. package/dist/es/lib/preferences.js +0 -28
  236. package/dist/es/lib/preferences.js.map +0 -1
  237. package/dist/types/lib/__tests__/preferences.test.d.ts +0 -12
  238. package/dist/types/lib/preferences.d.ts +0 -24
@@ -12,10 +12,10 @@
12
12
  export declare const ListButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
13
13
  type: "button";
14
14
  } & {
15
- 'data-active'?: boolean | undefined;
15
+ 'data-active'?: boolean;
16
16
  }, "type">;
17
17
  export declare const ListStyleButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
18
18
  type: "button";
19
19
  } & {
20
- 'data-active'?: boolean | undefined;
20
+ 'data-active'?: boolean;
21
21
  }, "type">;
@@ -10,8 +10,8 @@
10
10
  * All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
11
11
  */
12
12
  export declare const OptionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
13
- focused?: boolean | undefined;
14
- isDisabled?: boolean | undefined;
13
+ focused?: boolean;
14
+ isDisabled?: boolean;
15
15
  }, never>;
16
16
  export declare const OuterContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
17
17
  export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -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/dist/types").ErrorProps, never>;
12
+ export declare const MediumTextField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("@manuscripts/style-guide").ErrorProps, never>;
@@ -8,9 +8,9 @@ interface Props {
8
8
  export declare const TrackModal: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
9
9
  export default TrackModal;
10
10
  export declare const TrackChangesButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
11
- type: "reset" | "submit" | "button";
11
+ type: "button" | "submit" | "reset";
12
12
  } & {
13
- danger?: boolean | undefined;
14
- disabled?: boolean | undefined;
15
- mini?: boolean | undefined;
13
+ danger?: boolean;
14
+ disabled?: boolean;
15
+ mini?: boolean;
16
16
  }, "type">;
@@ -14,8 +14,8 @@ export declare enum ProjectRole {
14
14
  owner = "Owner",
15
15
  writer = "Writer",
16
16
  viewer = "Viewer",
17
- editor = "Editor",
18
- annotator = "Annotator",
17
+ editor = "Editor",// someone who can propose, approve and reject suggestions, and create and resolve comments, but nothing else
18
+ annotator = "Annotator",// someone who can propose suggestions to content, and create comments, but nothing else
19
19
  proofer = "Proofer"
20
20
  }
21
21
  export declare const isOwner: (project: Project, userID: string) => boolean;
@@ -81,12 +81,12 @@ export interface Store {
81
81
  dispatchQueue(prev: state | null): void;
82
82
  }
83
83
  export declare class GenericStore implements Store {
84
- reducer: (payload: any, store: state, action?: string | undefined) => any;
84
+ reducer: (payload: any, store: state, action?: string) => any;
85
85
  unmountHandler: ((state: state) => void) | undefined;
86
86
  state: state | null;
87
87
  private sources;
88
88
  beforeAction: (action: string, payload: any, store: state, setState: (state: state) => void) => void | action;
89
- constructor(reducer?: (payload: any, store: state, action?: string | undefined) => any, unmountHandler?: (state: state) => void, state?: {});
89
+ constructor(reducer?: (payload: any, store: state, action?: string) => any, unmountHandler?: (state: state) => void, state?: {});
90
90
  queue: Set<(state: state, prev: state) => void>;
91
91
  getState(): state;
92
92
  setState(state: state | ((state: state) => state)): void;
@@ -11,6 +11,6 @@
11
11
  */
12
12
  import { dispatch, GenericStore, state } from './Store';
13
13
  type Selector<T> = (r: state) => state | T;
14
- export declare const useStore: <T>(selector?: Selector<T> | undefined) => [T, dispatch, () => state, (fn: (state: state, prev: state) => void) => () => void];
14
+ export declare const useStore: <T>(selector?: Selector<T>) => [T, dispatch, () => state, GenericStore["subscribe"]];
15
15
  export declare const useGetState: () => () => state;
16
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manuscripts/article-editor",
3
- "version": "4.3.0",
3
+ "version": "4.3.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",
@@ -32,23 +32,24 @@
32
32
  "@fontsource/pt-sans": "5.2.5",
33
33
  "@fontsource/pt-serif": "5.2.5",
34
34
  "@headlessui/react": "2.2.3",
35
- "@manuscripts/body-editor": "3.3.0",
35
+ "@manuscripts/body-editor": "3.3.2",
36
36
  "@manuscripts/json-schema": "2.2.12",
37
- "@manuscripts/style-guide": "3.2.0",
38
- "@manuscripts/track-changes-plugin": "2.0.9",
39
- "@manuscripts/transform": "4.2.11",
37
+ "@manuscripts/style-guide": "3.2.1",
38
+ "@manuscripts/track-changes-plugin": "2.0.10",
39
+ "@manuscripts/transform": "4.2.12",
40
40
  "@popperjs/core": "2.11.8",
41
+ "axios": "1.11.0",
41
42
  "date-fns": "4.1.0",
43
+ "diff-match-patch": "^1.0.5",
42
44
  "dompurify": "3.2.5",
43
- "prosemirror-state": "1.4.3",
44
- "prosemirror-model": "1.25.0",
45
- "prosemirror-transform": "1.10.4",
46
- "prosemirror-view": "1.40.0",
47
- "prosemirror-utils": "1.2.2",
48
- "axios": "1.11.0",
49
45
  "html-react-parser": "5.2.5",
50
46
  "jwt-decode": "4.0.0",
51
47
  "lodash": "4.17.21",
48
+ "prosemirror-model": "1.25.0",
49
+ "prosemirror-state": "1.4.3",
50
+ "prosemirror-transform": "1.10.4",
51
+ "prosemirror-utils": "1.2.2",
52
+ "prosemirror-view": "1.40.0",
52
53
  "react": "18.3.1",
53
54
  "react-dnd": "16.0.1",
54
55
  "react-dnd-html5-backend": "16.0.1",
@@ -59,8 +60,7 @@
59
60
  "react-select": "5.10.1",
60
61
  "styled-components": "5.3.11",
61
62
  "use-sync-external-store": "1.5.0",
62
- "uuid": "9.0.1",
63
- "diff-match-patch": "^1.0.5"
63
+ "uuid": "9.0.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@babel/core": "7.23.7",
@@ -68,7 +68,8 @@
68
68
  "@babel/preset-react": "7.27.1",
69
69
  "@babel/preset-typescript": "7.23.3",
70
70
  "@manuscripts/eslint-config": "0.5.1",
71
- "@types/jest": "29.5.14",
71
+ "@types/diff-match-patch": "^1.0.36",
72
+ "@types/jest": "30.0.0",
72
73
  "@types/lodash": "4.17.16",
73
74
  "@types/node": "20.17.46",
74
75
  "@types/react": "18.3.21",
@@ -76,10 +77,9 @@
76
77
  "@types/styled-components": "5.1.34",
77
78
  "@types/use-sync-external-store": "1.5.0",
78
79
  "@types/uuid": "9.0.8",
79
- "@types/diff-match-patch": "^1.0.36",
80
80
  "@typescript-eslint/eslint-plugin": "5.62.0",
81
81
  "@typescript-eslint/parser": "5.62.0",
82
- "babel-jest": "29.7.0",
82
+ "babel-jest": "30.0.5",
83
83
  "eslint": "8.57.1",
84
84
  "eslint-config-prettier": "8.10.0",
85
85
  "eslint-plugin-header": "3.1.1",
@@ -94,12 +94,12 @@
94
94
  "eslint-plugin-react-hooks": "4.6.2",
95
95
  "eslint-plugin-simple-import-sort": "8.0.0",
96
96
  "husky": "8.0.3",
97
- "jest": "29.7.0",
98
- "jest-environment-jsdom": "29.7.0",
97
+ "jest": "30.0.5",
98
+ "jest-environment-jsdom": "30.0.5",
99
99
  "npm-run-all": "4.1.5",
100
100
  "prettier": "2.8.8",
101
101
  "react-dnd-test-backend": "16.0.1",
102
- "typescript": "4.9.5"
102
+ "typescript": "5.9.2"
103
103
  },
104
104
  "engines": {
105
105
  "node": ">=20.16.0"
@@ -1,50 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- const preferences_1 = __importStar(require("../preferences"));
38
- describe('preferences', () => {
39
- it('have defaults', () => {
40
- expect(preferences_1.default.get()).toEqual(preferences_1.defaults);
41
- });
42
- it('can be set and removed', () => {
43
- const prefs = { locale: 'ar' };
44
- expect(preferences_1.default.set(prefs)).toEqual(prefs);
45
- expect(preferences_1.default.get()).toEqual(prefs);
46
- preferences_1.default.remove();
47
- expect(preferences_1.default.get()).toEqual(preferences_1.defaults); // check that we're back to defaults
48
- });
49
- });
50
- //# sourceMappingURL=preferences.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preferences.test.js","sourceRoot":"","sources":["../../../../src/lib/__tests__/preferences.test.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8DAA6D;AAE7D,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QACvB,MAAM,CAAC,qBAAK,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAQ,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;QAChC,MAAM,KAAK,GAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;QAC3C,MAAM,CAAC,qBAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACvC,MAAM,CAAC,qBAAK,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAElC,qBAAK,CAAC,MAAM,EAAE,CAAA;QACd,MAAM,CAAC,qBAAK,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAQ,CAAC,CAAA,CAAC,oCAAoC;IAC5E,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,31 +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.defaults = void 0;
15
- const storage = window.localStorage;
16
- exports.defaults = {
17
- locale: 'en',
18
- };
19
- exports.default = {
20
- get: () => {
21
- const preferences = storage.getItem('preferences');
22
- // TODO: merge defaults?
23
- return preferences ? JSON.parse(preferences) : exports.defaults;
24
- },
25
- set: (data) => {
26
- storage.setItem('preferences', JSON.stringify(data));
27
- return data;
28
- },
29
- remove: () => storage.removeItem('preferences'),
30
- };
31
- //# sourceMappingURL=preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preferences.js","sourceRoot":"","sources":["../../../src/lib/preferences.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AAQtB,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,IAAI;CACb,CAAA;AAED,kBAAe;IACb,GAAG,EAAE,GAAgB,EAAE;QACrB,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;QAElD,wBAAwB;QAExB,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,gBAAQ,CAAA;IACzD,CAAC;IACD,GAAG,EAAE,CAAC,IAAiB,EAAe,EAAE;QACtC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;QAEpD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;CAChD,CAAA"}
@@ -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 Prefs, { defaults } from '../preferences';
13
- describe('preferences', () => {
14
- it('have defaults', () => {
15
- expect(Prefs.get()).toEqual(defaults);
16
- });
17
- it('can be set and removed', () => {
18
- const prefs = { locale: 'ar' };
19
- expect(Prefs.set(prefs)).toEqual(prefs);
20
- expect(Prefs.get()).toEqual(prefs);
21
- Prefs.remove();
22
- expect(Prefs.get()).toEqual(defaults); // check that we're back to defaults
23
- });
24
- });
25
- //# sourceMappingURL=preferences.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preferences.test.js","sourceRoot":"","sources":["../../../../src/lib/__tests__/preferences.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAe,MAAM,gBAAgB,CAAA;AAE7D,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QACvB,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;QAChC,MAAM,KAAK,GAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;QAC3C,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACvC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAElC,KAAK,CAAC,MAAM,EAAE,CAAA;QACd,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA,CAAC,oCAAoC;IAC5E,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,28 +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
- const storage = window.localStorage;
13
- export const defaults = {
14
- locale: 'en',
15
- };
16
- export default {
17
- get: () => {
18
- const preferences = storage.getItem('preferences');
19
- // TODO: merge defaults?
20
- return preferences ? JSON.parse(preferences) : defaults;
21
- },
22
- set: (data) => {
23
- storage.setItem('preferences', JSON.stringify(data));
24
- return data;
25
- },
26
- remove: () => storage.removeItem('preferences'),
27
- };
28
- //# sourceMappingURL=preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preferences.js","sourceRoot":"","sources":["../../../src/lib/preferences.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AAQnC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,IAAI;CACb,CAAA;AAED,eAAe;IACb,GAAG,EAAE,GAAgB,EAAE;QACrB,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;QAElD,wBAAwB;QAExB,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;IACzD,CAAC;IACD,GAAG,EAAE,CAAC,IAAiB,EAAe,EAAE;QACtC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;QAEpD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;CAChD,CAAA"}
@@ -1,12 +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
- export {};
@@ -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
- export type Languages = 'ar' | 'en';
13
- export interface Preferences {
14
- locale: Languages;
15
- }
16
- export declare const defaults: {
17
- locale: string;
18
- };
19
- declare const _default: {
20
- get: () => Preferences;
21
- set: (data: Preferences) => Preferences;
22
- remove: () => void;
23
- };
24
- export default _default;