@manuscripts/article-editor 1.7.0 → 1.7.2-LEAN-2915

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 (343) hide show
  1. package/dist/cjs/src/components/InspectorSection.js +2 -4
  2. package/dist/cjs/src/components/InspectorSection.js.map +1 -1
  3. package/dist/cjs/src/components/track-changes/suggestion-list/Suggestion.js +34 -17
  4. package/dist/cjs/src/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
  5. package/dist/cjs/src/components/track-changes/suggestion-list/SuggestionSnippet.js +13 -68
  6. package/dist/cjs/src/components/track-changes/suggestion-list/SuggestionSnippet.js.map +1 -1
  7. package/dist/cjs/src/theme/colors.js +3 -2
  8. package/dist/cjs/src/theme/colors.js.map +1 -1
  9. package/dist/cjs/src/theme/theme.js +10 -0
  10. package/dist/cjs/src/theme/theme.js.map +1 -1
  11. package/dist/es/src/components/InspectorSection.js +2 -4
  12. package/dist/es/src/components/InspectorSection.js.map +1 -1
  13. package/dist/es/src/components/track-changes/suggestion-list/Suggestion.js +35 -18
  14. package/dist/es/src/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
  15. package/dist/es/src/components/track-changes/suggestion-list/SuggestionSnippet.js +12 -67
  16. package/dist/es/src/components/track-changes/suggestion-list/SuggestionSnippet.js.map +1 -1
  17. package/dist/es/src/theme/colors.js +2 -1
  18. package/dist/es/src/theme/colors.js.map +1 -1
  19. package/dist/es/src/theme/theme.js +10 -0
  20. package/dist/es/src/theme/theme.js.map +1 -1
  21. package/dist/types/src/components/track-changes/suggestion-list/SuggestionSnippet.d.ts +11 -1
  22. package/dist/types/src/theme/colors.d.ts +2 -0
  23. package/package.json +3 -3
  24. package/dist/cjs/src/components/Support.js +0 -129
  25. package/dist/cjs/src/components/Support.js.map +0 -1
  26. package/dist/cjs/src/components/inspector/ElementStyleInspector.js +0 -14
  27. package/dist/cjs/src/components/inspector/ElementStyleInspector.js.map +0 -1
  28. package/dist/cjs/src/components/inspector/StatisticsInspector.js +0 -39
  29. package/dist/cjs/src/components/inspector/StatisticsInspector.js.map +0 -1
  30. package/dist/cjs/src/components/library/CitationModel.js +0 -210
  31. package/dist/cjs/src/components/library/CitationModel.js.map +0 -1
  32. package/dist/cjs/src/components/library/CitationProperties.js +0 -67
  33. package/dist/cjs/src/components/library/CitationProperties.js.map +0 -1
  34. package/dist/cjs/src/components/library/ExternalSearch.js +0 -156
  35. package/dist/cjs/src/components/library/ExternalSearch.js.map +0 -1
  36. package/dist/cjs/src/components/library/GlobalLibrary.js +0 -133
  37. package/dist/cjs/src/components/library/GlobalLibrary.js.map +0 -1
  38. package/dist/cjs/src/components/library/LibraryCollectionCategories.js +0 -53
  39. package/dist/cjs/src/components/library/LibraryCollectionCategories.js.map +0 -1
  40. package/dist/cjs/src/components/library/LibraryForm.js +0 -437
  41. package/dist/cjs/src/components/library/LibraryForm.js.map +0 -1
  42. package/dist/cjs/src/components/library/LibraryItems.js +0 -116
  43. package/dist/cjs/src/components/library/LibraryItems.js.map +0 -1
  44. package/dist/cjs/src/components/library/LibraryPageContainer.js +0 -107
  45. package/dist/cjs/src/components/library/LibraryPageContainer.js.map +0 -1
  46. package/dist/cjs/src/components/library/LibrarySidebar.js +0 -172
  47. package/dist/cjs/src/components/library/LibrarySidebar.js.map +0 -1
  48. package/dist/cjs/src/components/library/Messages.js +0 -25
  49. package/dist/cjs/src/components/library/Messages.js.map +0 -1
  50. package/dist/cjs/src/components/library/ProjectLibrary.js +0 -96
  51. package/dist/cjs/src/components/library/ProjectLibrary.js.map +0 -1
  52. package/dist/cjs/src/components/metadata/HeaderFigure.js +0 -147
  53. package/dist/cjs/src/components/metadata/HeaderFigure.js.map +0 -1
  54. package/dist/cjs/src/components/metadata/Metadata.js +0 -103
  55. package/dist/cjs/src/components/metadata/Metadata.js.map +0 -1
  56. package/dist/cjs/src/components/metadata/MetadataContainer.js +0 -203
  57. package/dist/cjs/src/components/metadata/MetadataContainer.js.map +0 -1
  58. package/dist/cjs/src/components/metadata/TitleFieldContainer.js +0 -56
  59. package/dist/cjs/src/components/metadata/TitleFieldContainer.js.map +0 -1
  60. package/dist/cjs/src/components/projects/CategorisedKeywordsInput.js +0 -439
  61. package/dist/cjs/src/components/projects/CategorisedKeywordsInput.js.map +0 -1
  62. package/dist/cjs/src/components/projects/KeywordsInput.js +0 -80
  63. package/dist/cjs/src/components/projects/KeywordsInput.js.map +0 -1
  64. package/dist/cjs/src/components/projects/SortableManuscript.js +0 -102
  65. package/dist/cjs/src/components/projects/SortableManuscript.js.map +0 -1
  66. package/dist/cjs/src/components/projects/lean-workflow/ApplicationMenusLW.js +0 -102
  67. package/dist/cjs/src/components/projects/lean-workflow/ApplicationMenusLW.js.map +0 -1
  68. package/dist/cjs/src/components/projects/lean-workflow/CommentList.js +0 -289
  69. package/dist/cjs/src/components/projects/lean-workflow/CommentList.js.map +0 -1
  70. package/dist/cjs/src/components/projects/lean-workflow/CommentsTab.js +0 -41
  71. package/dist/cjs/src/components/projects/lean-workflow/CommentsTab.js.map +0 -1
  72. package/dist/cjs/src/components/projects/lean-workflow/ContentTab.js +0 -66
  73. package/dist/cjs/src/components/projects/lean-workflow/ContentTab.js.map +0 -1
  74. package/dist/cjs/src/components/projects/lean-workflow/EditorElement.js +0 -252
  75. package/dist/cjs/src/components/projects/lean-workflow/EditorElement.js.map +0 -1
  76. package/dist/cjs/src/components/projects/lean-workflow/ExceptionDialog.js +0 -150
  77. package/dist/cjs/src/components/projects/lean-workflow/ExceptionDialog.js.map +0 -1
  78. package/dist/cjs/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js +0 -187
  79. package/dist/cjs/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js.map +0 -1
  80. package/dist/cjs/src/components/projects/lean-workflow/SaveStatusController.js +0 -53
  81. package/dist/cjs/src/components/projects/lean-workflow/SaveStatusController.js.map +0 -1
  82. package/dist/cjs/src/components/projects/lean-workflow/TrackChangesStyles.js +0 -106
  83. package/dist/cjs/src/components/projects/lean-workflow/TrackChangesStyles.js.map +0 -1
  84. package/dist/cjs/src/components/projects/lean-workflow/icons/DeleteIcon.js +0 -27
  85. package/dist/cjs/src/components/projects/lean-workflow/icons/DeleteIcon.js.map +0 -1
  86. package/dist/cjs/src/components/projects/lean-workflow/icons/GroupIcon.js +0 -29
  87. package/dist/cjs/src/components/projects/lean-workflow/icons/GroupIcon.js.map +0 -1
  88. package/dist/cjs/src/components/projects/lean-workflow/icons/LinkIcon.js +0 -23
  89. package/dist/cjs/src/components/projects/lean-workflow/icons/LinkIcon.js.map +0 -1
  90. package/dist/cjs/src/components/projects/lean-workflow/icons/TemplateIcon.js +0 -23
  91. package/dist/cjs/src/components/projects/lean-workflow/icons/TemplateIcon.js.map +0 -1
  92. package/dist/cjs/src/components/projects/lean-workflow/provider/UserProvider.js +0 -38
  93. package/dist/cjs/src/components/projects/lean-workflow/provider/UserProvider.js.map +0 -1
  94. package/dist/cjs/src/components/requirements/RequirementContainer.js +0 -58
  95. package/dist/cjs/src/components/requirements/RequirementContainer.js.map +0 -1
  96. package/dist/cjs/src/components/requirements/RequirementsData.js +0 -129
  97. package/dist/cjs/src/components/requirements/RequirementsData.js.map +0 -1
  98. package/dist/cjs/src/components/requirements/RequirementsIcons.js +0 -34
  99. package/dist/cjs/src/components/requirements/RequirementsIcons.js.map +0 -1
  100. package/dist/cjs/src/components/requirements/RequirementsInspector.js +0 -150
  101. package/dist/cjs/src/components/requirements/RequirementsInspector.js.map +0 -1
  102. package/dist/cjs/src/components/requirements/RequirementsList.js +0 -84
  103. package/dist/cjs/src/components/requirements/RequirementsList.js.map +0 -1
  104. package/dist/cjs/src/components/requirements/SectionValidations.js +0 -47
  105. package/dist/cjs/src/components/requirements/SectionValidations.js.map +0 -1
  106. package/dist/cjs/src/hooks/use-requirements-validation.js +0 -87
  107. package/dist/cjs/src/hooks/use-requirements-validation.js.map +0 -1
  108. package/dist/cjs/src/lib/apollo.js +0 -41
  109. package/dist/cjs/src/lib/apollo.js.map +0 -1
  110. package/dist/cjs/src/lib/lean-workflow-gql.js +0 -40
  111. package/dist/cjs/src/lib/lean-workflow-gql.js.map +0 -1
  112. package/dist/cjs/src/lib/replace-attachments-ids.js +0 -49
  113. package/dist/cjs/src/lib/replace-attachments-ids.js.map +0 -1
  114. package/dist/cjs/src/postgres-data/Bibilo.js +0 -33
  115. package/dist/cjs/src/postgres-data/Bibilo.js.map +0 -1
  116. package/dist/cjs/src/store/BiblioTools.js +0 -3
  117. package/dist/cjs/src/store/BiblioTools.js.map +0 -1
  118. package/dist/cjs/stories/Citation.stories.js +0 -43
  119. package/dist/cjs/stories/Citation.stories.js.map +0 -1
  120. package/dist/cjs/stories/LibrarySidebar.stories.js +0 -188
  121. package/dist/cjs/stories/LibrarySidebar.stories.js.map +0 -1
  122. package/dist/cjs/stories/Metadata.stories.js +0 -53
  123. package/dist/cjs/stories/Metadata.stories.js.map +0 -1
  124. package/dist/cjs/stories/Notification.stories.js +0 -62
  125. package/dist/cjs/stories/Notification.stories.js.map +0 -1
  126. package/dist/cjs/stories/Page.stories.js +0 -50
  127. package/dist/cjs/stories/Page.stories.js.map +0 -1
  128. package/dist/cjs/stories/Panel.stories.js +0 -62
  129. package/dist/cjs/stories/Panel.stories.js.map +0 -1
  130. package/dist/cjs/stories/Placeholders.stories.js +0 -23
  131. package/dist/cjs/stories/Placeholders.stories.js.map +0 -1
  132. package/dist/cjs/stories/PopperButtons.stories.js +0 -27
  133. package/dist/cjs/stories/PopperButtons.stories.js.map +0 -1
  134. package/dist/cjs/stories/Progress.stories.js +0 -25
  135. package/dist/cjs/stories/Progress.stories.js.map +0 -1
  136. package/dist/cjs/stories/ProgressIndicator.stories.js +0 -33
  137. package/dist/cjs/stories/ProgressIndicator.stories.js.map +0 -1
  138. package/dist/cjs/stories/ReloadDialog.stories.js +0 -21
  139. package/dist/cjs/stories/ReloadDialog.stories.js.map +0 -1
  140. package/dist/cjs/stories/RequirementsInspector.stories.js +0 -159
  141. package/dist/cjs/stories/RequirementsInspector.stories.js.map +0 -1
  142. package/dist/cjs/stories/RequirmentsList.stories.js +0 -36
  143. package/dist/cjs/stories/RequirmentsList.stories.js.map +0 -1
  144. package/dist/cjs/stories/SelectField.stories.js +0 -34
  145. package/dist/cjs/stories/SelectField.stories.js.map +0 -1
  146. package/dist/cjs/stories/Support.stories.js +0 -32
  147. package/dist/cjs/stories/Support.stories.js.map +0 -1
  148. package/dist/cjs/stories/data/doc.js +0 -27
  149. package/dist/cjs/stories/data/doc.js.map +0 -1
  150. package/dist/cjs/stories/data/validationData.js +0 -44
  151. package/dist/cjs/stories/data/validationData.js.map +0 -1
  152. package/dist/es/src/components/Support.js +0 -100
  153. package/dist/es/src/components/Support.js.map +0 -1
  154. package/dist/es/src/components/inspector/ElementStyleInspector.js +0 -13
  155. package/dist/es/src/components/inspector/ElementStyleInspector.js.map +0 -1
  156. package/dist/es/src/components/inspector/StatisticsInspector.js +0 -32
  157. package/dist/es/src/components/inspector/StatisticsInspector.js.map +0 -1
  158. package/dist/es/src/components/library/CitationModel.js +0 -180
  159. package/dist/es/src/components/library/CitationModel.js.map +0 -1
  160. package/dist/es/src/components/library/CitationProperties.js +0 -60
  161. package/dist/es/src/components/library/CitationProperties.js.map +0 -1
  162. package/dist/es/src/components/library/ExternalSearch.js +0 -127
  163. package/dist/es/src/components/library/ExternalSearch.js.map +0 -1
  164. package/dist/es/src/components/library/GlobalLibrary.js +0 -104
  165. package/dist/es/src/components/library/GlobalLibrary.js.map +0 -1
  166. package/dist/es/src/components/library/LibraryCollectionCategories.js +0 -45
  167. package/dist/es/src/components/library/LibraryCollectionCategories.js.map +0 -1
  168. package/dist/es/src/components/library/LibraryForm.js +0 -409
  169. package/dist/es/src/components/library/LibraryForm.js.map +0 -1
  170. package/dist/es/src/components/library/LibraryItems.js +0 -86
  171. package/dist/es/src/components/library/LibraryItems.js.map +0 -1
  172. package/dist/es/src/components/library/LibraryPageContainer.js +0 -80
  173. package/dist/es/src/components/library/LibraryPageContainer.js.map +0 -1
  174. package/dist/es/src/components/library/LibrarySidebar.js +0 -165
  175. package/dist/es/src/components/library/LibrarySidebar.js.map +0 -1
  176. package/dist/es/src/components/library/Messages.js +0 -18
  177. package/dist/es/src/components/library/Messages.js.map +0 -1
  178. package/dist/es/src/components/library/ProjectLibrary.js +0 -67
  179. package/dist/es/src/components/library/ProjectLibrary.js.map +0 -1
  180. package/dist/es/src/components/metadata/HeaderFigure.js +0 -117
  181. package/dist/es/src/components/metadata/HeaderFigure.js.map +0 -1
  182. package/dist/es/src/components/metadata/Metadata.js +0 -73
  183. package/dist/es/src/components/metadata/Metadata.js.map +0 -1
  184. package/dist/es/src/components/metadata/MetadataContainer.js +0 -178
  185. package/dist/es/src/components/metadata/MetadataContainer.js.map +0 -1
  186. package/dist/es/src/components/metadata/TitleFieldContainer.js +0 -49
  187. package/dist/es/src/components/metadata/TitleFieldContainer.js.map +0 -1
  188. package/dist/es/src/components/projects/CategorisedKeywordsInput.js +0 -409
  189. package/dist/es/src/components/projects/CategorisedKeywordsInput.js.map +0 -1
  190. package/dist/es/src/components/projects/KeywordsInput.js +0 -73
  191. package/dist/es/src/components/projects/KeywordsInput.js.map +0 -1
  192. package/dist/es/src/components/projects/SortableManuscript.js +0 -72
  193. package/dist/es/src/components/projects/SortableManuscript.js.map +0 -1
  194. package/dist/es/src/components/projects/lean-workflow/ApplicationMenusLW.js +0 -72
  195. package/dist/es/src/components/projects/lean-workflow/ApplicationMenusLW.js.map +0 -1
  196. package/dist/es/src/components/projects/lean-workflow/CommentList.js +0 -259
  197. package/dist/es/src/components/projects/lean-workflow/CommentList.js.map +0 -1
  198. package/dist/es/src/components/projects/lean-workflow/CommentsTab.js +0 -34
  199. package/dist/es/src/components/projects/lean-workflow/CommentsTab.js.map +0 -1
  200. package/dist/es/src/components/projects/lean-workflow/ContentTab.js +0 -59
  201. package/dist/es/src/components/projects/lean-workflow/ContentTab.js.map +0 -1
  202. package/dist/es/src/components/projects/lean-workflow/EditorElement.js +0 -227
  203. package/dist/es/src/components/projects/lean-workflow/EditorElement.js.map +0 -1
  204. package/dist/es/src/components/projects/lean-workflow/ExceptionDialog.js +0 -120
  205. package/dist/es/src/components/projects/lean-workflow/ExceptionDialog.js.map +0 -1
  206. package/dist/es/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js +0 -159
  207. package/dist/es/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js.map +0 -1
  208. package/dist/es/src/components/projects/lean-workflow/SaveStatusController.js +0 -23
  209. package/dist/es/src/components/projects/lean-workflow/SaveStatusController.js.map +0 -1
  210. package/dist/es/src/components/projects/lean-workflow/TrackChangesStyles.js +0 -99
  211. package/dist/es/src/components/projects/lean-workflow/TrackChangesStyles.js.map +0 -1
  212. package/dist/es/src/components/projects/lean-workflow/icons/DeleteIcon.js +0 -20
  213. package/dist/es/src/components/projects/lean-workflow/icons/DeleteIcon.js.map +0 -1
  214. package/dist/es/src/components/projects/lean-workflow/icons/GroupIcon.js +0 -22
  215. package/dist/es/src/components/projects/lean-workflow/icons/GroupIcon.js.map +0 -1
  216. package/dist/es/src/components/projects/lean-workflow/icons/LinkIcon.js +0 -16
  217. package/dist/es/src/components/projects/lean-workflow/icons/LinkIcon.js.map +0 -1
  218. package/dist/es/src/components/projects/lean-workflow/icons/TemplateIcon.js +0 -16
  219. package/dist/es/src/components/projects/lean-workflow/icons/TemplateIcon.js.map +0 -1
  220. package/dist/es/src/components/projects/lean-workflow/provider/UserProvider.js +0 -11
  221. package/dist/es/src/components/projects/lean-workflow/provider/UserProvider.js.map +0 -1
  222. package/dist/es/src/components/requirements/RequirementContainer.js +0 -51
  223. package/dist/es/src/components/requirements/RequirementContainer.js.map +0 -1
  224. package/dist/es/src/components/requirements/RequirementsData.js +0 -99
  225. package/dist/es/src/components/requirements/RequirementsData.js.map +0 -1
  226. package/dist/es/src/components/requirements/RequirementsIcons.js +0 -24
  227. package/dist/es/src/components/requirements/RequirementsIcons.js.map +0 -1
  228. package/dist/es/src/components/requirements/RequirementsInspector.js +0 -118
  229. package/dist/es/src/components/requirements/RequirementsInspector.js.map +0 -1
  230. package/dist/es/src/components/requirements/RequirementsList.js +0 -54
  231. package/dist/es/src/components/requirements/RequirementsList.js.map +0 -1
  232. package/dist/es/src/components/requirements/SectionValidations.js +0 -40
  233. package/dist/es/src/components/requirements/SectionValidations.js.map +0 -1
  234. package/dist/es/src/hooks/use-requirements-validation.js +0 -83
  235. package/dist/es/src/hooks/use-requirements-validation.js.map +0 -1
  236. package/dist/es/src/lib/apollo.js +0 -35
  237. package/dist/es/src/lib/apollo.js.map +0 -1
  238. package/dist/es/src/lib/lean-workflow-gql.js +0 -33
  239. package/dist/es/src/lib/lean-workflow-gql.js.map +0 -1
  240. package/dist/es/src/lib/replace-attachments-ids.js +0 -44
  241. package/dist/es/src/lib/replace-attachments-ids.js.map +0 -1
  242. package/dist/es/src/postgres-data/Bibilo.js +0 -29
  243. package/dist/es/src/postgres-data/Bibilo.js.map +0 -1
  244. package/dist/es/src/store/BiblioTools.js +0 -2
  245. package/dist/es/src/store/BiblioTools.js.map +0 -1
  246. package/dist/es/stories/Citation.stories.js +0 -38
  247. package/dist/es/stories/Citation.stories.js.map +0 -1
  248. package/dist/es/stories/LibrarySidebar.stories.js +0 -183
  249. package/dist/es/stories/LibrarySidebar.stories.js.map +0 -1
  250. package/dist/es/stories/Metadata.stories.js +0 -48
  251. package/dist/es/stories/Metadata.stories.js.map +0 -1
  252. package/dist/es/stories/Notification.stories.js +0 -57
  253. package/dist/es/stories/Notification.stories.js.map +0 -1
  254. package/dist/es/stories/Page.stories.js +0 -45
  255. package/dist/es/stories/Page.stories.js.map +0 -1
  256. package/dist/es/stories/Panel.stories.js +0 -57
  257. package/dist/es/stories/Panel.stories.js.map +0 -1
  258. package/dist/es/stories/Placeholders.stories.js +0 -18
  259. package/dist/es/stories/Placeholders.stories.js.map +0 -1
  260. package/dist/es/stories/PopperButtons.stories.js +0 -22
  261. package/dist/es/stories/PopperButtons.stories.js.map +0 -1
  262. package/dist/es/stories/Progress.stories.js +0 -20
  263. package/dist/es/stories/Progress.stories.js.map +0 -1
  264. package/dist/es/stories/ProgressIndicator.stories.js +0 -28
  265. package/dist/es/stories/ProgressIndicator.stories.js.map +0 -1
  266. package/dist/es/stories/ReloadDialog.stories.js +0 -16
  267. package/dist/es/stories/ReloadDialog.stories.js.map +0 -1
  268. package/dist/es/stories/RequirementsInspector.stories.js +0 -154
  269. package/dist/es/stories/RequirementsInspector.stories.js.map +0 -1
  270. package/dist/es/stories/RequirmentsList.stories.js +0 -31
  271. package/dist/es/stories/RequirmentsList.stories.js.map +0 -1
  272. package/dist/es/stories/SelectField.stories.js +0 -29
  273. package/dist/es/stories/SelectField.stories.js.map +0 -1
  274. package/dist/es/stories/Support.stories.js +0 -27
  275. package/dist/es/stories/Support.stories.js.map +0 -1
  276. package/dist/es/stories/data/doc.js +0 -21
  277. package/dist/es/stories/data/doc.js.map +0 -1
  278. package/dist/es/stories/data/validationData.js +0 -41
  279. package/dist/es/stories/data/validationData.js.map +0 -1
  280. package/dist/types/src/components/Support.d.ts +0 -13
  281. package/dist/types/src/components/inspector/ElementStyleInspector.d.ts +0 -13
  282. package/dist/types/src/components/inspector/StatisticsInspector.d.ts +0 -17
  283. package/dist/types/src/components/library/CitationModel.d.ts +0 -18
  284. package/dist/types/src/components/library/CitationProperties.d.ts +0 -17
  285. package/dist/types/src/components/library/ExternalSearch.d.ts +0 -19
  286. package/dist/types/src/components/library/GlobalLibrary.d.ts +0 -20
  287. package/dist/types/src/components/library/LibraryCollectionCategories.d.ts +0 -15
  288. package/dist/types/src/components/library/LibraryForm.d.ts +0 -20
  289. package/dist/types/src/components/library/LibraryItems.d.ts +0 -12
  290. package/dist/types/src/components/library/LibraryPageContainer.d.ts +0 -14
  291. package/dist/types/src/components/library/LibrarySidebar.d.ts +0 -21
  292. package/dist/types/src/components/library/Messages.d.ts +0 -15
  293. package/dist/types/src/components/library/ProjectLibrary.d.ts +0 -23
  294. package/dist/types/src/components/metadata/HeaderFigure.d.ts +0 -13
  295. package/dist/types/src/components/metadata/Metadata.d.ts +0 -60
  296. package/dist/types/src/components/metadata/MetadataContainer.d.ts +0 -21
  297. package/dist/types/src/components/metadata/TitleFieldContainer.d.ts +0 -19
  298. package/dist/types/src/components/projects/CategorisedKeywordsInput.d.ts +0 -6
  299. package/dist/types/src/components/projects/KeywordsInput.d.ts +0 -17
  300. package/dist/types/src/components/projects/SortableManuscript.d.ts +0 -18
  301. package/dist/types/src/components/projects/lean-workflow/ApplicationMenusLW.d.ts +0 -20
  302. package/dist/types/src/components/projects/lean-workflow/CommentList.d.ts +0 -18
  303. package/dist/types/src/components/projects/lean-workflow/CommentsTab.d.ts +0 -7
  304. package/dist/types/src/components/projects/lean-workflow/ContentTab.d.ts +0 -6
  305. package/dist/types/src/components/projects/lean-workflow/EditorElement.d.ts +0 -18
  306. package/dist/types/src/components/projects/lean-workflow/ExceptionDialog.d.ts +0 -4
  307. package/dist/types/src/components/projects/lean-workflow/ManuscriptPageContainerLW.d.ts +0 -18
  308. package/dist/types/src/components/projects/lean-workflow/SaveStatusController.d.ts +0 -17
  309. package/dist/types/src/components/projects/lean-workflow/TrackChangesStyles.d.ts +0 -13
  310. package/dist/types/src/components/projects/lean-workflow/icons/DeleteIcon.d.ts +0 -13
  311. package/dist/types/src/components/projects/lean-workflow/icons/GroupIcon.d.ts +0 -15
  312. package/dist/types/src/components/projects/lean-workflow/icons/LinkIcon.d.ts +0 -13
  313. package/dist/types/src/components/projects/lean-workflow/icons/TemplateIcon.d.ts +0 -13
  314. package/dist/types/src/components/projects/lean-workflow/provider/UserProvider.d.ts +0 -22
  315. package/dist/types/src/components/requirements/RequirementContainer.d.ts +0 -19
  316. package/dist/types/src/components/requirements/RequirementsData.d.ts +0 -21
  317. package/dist/types/src/components/requirements/RequirementsIcons.d.ts +0 -16
  318. package/dist/types/src/components/requirements/RequirementsInspector.d.ts +0 -23
  319. package/dist/types/src/components/requirements/RequirementsList.d.ts +0 -16
  320. package/dist/types/src/components/requirements/SectionValidations.d.ts +0 -21
  321. package/dist/types/src/hooks/use-requirements-validation.d.ts +0 -22
  322. package/dist/types/src/lib/apollo.d.ts +0 -13
  323. package/dist/types/src/lib/lean-workflow-gql.d.ts +0 -66
  324. package/dist/types/src/lib/replace-attachments-ids.d.ts +0 -15
  325. package/dist/types/src/postgres-data/Bibilo.d.ts +0 -33
  326. package/dist/types/src/store/BiblioTools.d.ts +0 -21
  327. package/dist/types/stories/Citation.stories.d.ts +0 -12
  328. package/dist/types/stories/LibrarySidebar.stories.d.ts +0 -12
  329. package/dist/types/stories/Metadata.stories.d.ts +0 -12
  330. package/dist/types/stories/Notification.stories.d.ts +0 -12
  331. package/dist/types/stories/Page.stories.d.ts +0 -12
  332. package/dist/types/stories/Panel.stories.d.ts +0 -12
  333. package/dist/types/stories/Placeholders.stories.d.ts +0 -12
  334. package/dist/types/stories/PopperButtons.stories.d.ts +0 -12
  335. package/dist/types/stories/Progress.stories.d.ts +0 -12
  336. package/dist/types/stories/ProgressIndicator.stories.d.ts +0 -12
  337. package/dist/types/stories/ReloadDialog.stories.d.ts +0 -12
  338. package/dist/types/stories/RequirementsInspector.stories.d.ts +0 -12
  339. package/dist/types/stories/RequirmentsList.stories.d.ts +0 -12
  340. package/dist/types/stories/SelectField.stories.d.ts +0 -12
  341. package/dist/types/stories/Support.stories.d.ts +0 -12
  342. package/dist/types/stories/data/doc.d.ts +0 -14
  343. package/dist/types/stories/data/validationData.d.ts +0 -13
@@ -1,150 +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) 2020 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
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.RequirementsInspectorView = exports.RequirementsInspector = exports.buildQualityCheck = void 0;
41
- const requirements_1 = require("@manuscripts/requirements");
42
- const transform_1 = require("@manuscripts/transform");
43
- const blob_to_buffer_1 = __importDefault(require("blob-to-buffer"));
44
- const react_1 = __importStar(require("react"));
45
- const styled_components_1 = __importDefault(require("styled-components"));
46
- const store_1 = require("../../store");
47
- const Placeholders_1 = require("../Placeholders");
48
- const RequirementsList_1 = require("./RequirementsList");
49
- const buildQualityCheck = async (modelMap, prototypeId, manuscriptID, template, sectionCategories, validationOptions) => {
50
- if (typeof prototypeId === 'undefined') {
51
- return [];
52
- }
53
- const getData = async (id) => {
54
- if (modelMap.has(id)) {
55
- const model = modelMap.get(id);
56
- if ((0, transform_1.isFigure)(model)) {
57
- const modelSrc = model.src;
58
- const blobData = await fetch(modelSrc).then((res) => res.blob());
59
- const blobFile = new File([blobData], id, {
60
- type: blobData.type,
61
- });
62
- return fileToBuffer(blobFile);
63
- }
64
- }
65
- return undefined;
66
- };
67
- const fileToBuffer = (file) => new Promise((resolve, reject) => {
68
- (0, blob_to_buffer_1.default)(file, (err, buffer) => {
69
- if (err) {
70
- reject(err);
71
- }
72
- else {
73
- resolve(buffer);
74
- }
75
- });
76
- });
77
- const validateManuscript = (0, requirements_1.createTemplateValidator)(template, sectionCategories);
78
- // TODO: remove `as AnyValidationResult[]`
79
- const results = (await validateManuscript(Array.from(modelMap.values()), manuscriptID, getData, validationOptions));
80
- return results;
81
- };
82
- exports.buildQualityCheck = buildQualityCheck;
83
- const RequirementsInspector = () => {
84
- const [{ modelMap, manuscript, manuscriptID, sectionCategories, template }] = (0, store_1.useStore)((store) => ({
85
- modelMap: store.modelMap,
86
- manuscript: store.manuscript,
87
- manuscriptID: store.manuscriptID,
88
- sectionCategories: store.sectionCategories,
89
- template: store.template,
90
- }));
91
- const prototypeId = manuscript.prototype;
92
- const [result, setResult] = (0, react_1.useState)([]);
93
- const [error, setError] = (0, react_1.useState)();
94
- const [isBuilding, setIsBuilding] = (0, react_1.useState)(false);
95
- (0, react_1.useEffect)(() => {
96
- setIsBuilding(true);
97
- (0, exports.buildQualityCheck)(modelMap, prototypeId, manuscriptID, template, sectionCategories)
98
- .then(setResult)
99
- .finally(() => {
100
- setIsBuilding(false);
101
- })
102
- .catch(setError);
103
- // eslint-disable-next-line react-hooks/exhaustive-deps
104
- }, [prototypeId, manuscriptID, JSON.stringify([...modelMap.values()])]);
105
- return (react_1.default.createElement(exports.RequirementsInspectorView, { prototypeId: prototypeId, result: result, error: error, isBuilding: isBuilding }));
106
- };
107
- exports.RequirementsInspector = RequirementsInspector;
108
- const RequirementsInspectorView = ({ error, result, isBuilding }) => {
109
- const [prototypeId, dispatch] = (0, store_1.useStore)((store) => store.manuscript?.prototype);
110
- (0, react_1.useEffect)(() => {
111
- if (error) {
112
- dispatch({ requirementError: 'QR_SERVICE_UNAVAILABLE' });
113
- }
114
- if (!prototypeId) {
115
- dispatch({ requirementError: 'QR_PROFILE_NOT_FOUND' });
116
- }
117
- dispatch({ requirementError: '' });
118
- }, [error, prototypeId, dispatch]);
119
- (0, react_1.useEffect)(() => {
120
- if (!prototypeId) {
121
- dispatch({ requirementError: 'QR_PROFILE_NOT_FOUND' });
122
- }
123
- else {
124
- dispatch({ requirementError: '' });
125
- }
126
- }, [prototypeId, dispatch]);
127
- if (isBuilding) {
128
- return react_1.default.createElement(Placeholders_1.DataLoadingPlaceholder, null);
129
- }
130
- if (error) {
131
- return react_1.default.createElement(ErrorMessage, null,
132
- " ",
133
- error?.message);
134
- }
135
- if (!prototypeId) {
136
- return (react_1.default.createElement(AlertMessage, null, "You need to select a template to display the quality report check"));
137
- }
138
- if (!result) {
139
- return null;
140
- }
141
- return react_1.default.createElement(RequirementsList_1.RequirementsList, { validationResult: result });
142
- };
143
- exports.RequirementsInspectorView = RequirementsInspectorView;
144
- const AlertMessage = styled_components_1.default.div `
145
- margin: 13px 0 9px 17px;
146
- `;
147
- const ErrorMessage = styled_components_1.default.div `
148
- margin: 13px 0 9px 17px;
149
- `;
150
- //# sourceMappingURL=RequirementsInspector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequirementsInspector.js","sourceRoot":"","sources":["../../../../../src/components/requirements/RequirementsInspector.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOH,4DAIkC;AAClC,sDAAiE;AACjE,oEAAqC;AACrC,+CAAkD;AAClD,0EAAsC;AA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AAQ,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAA;SACnC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAA;IAE3B,IAAI,UAAU,EAAE;QACd,OAAO,8BAAC,qCAAsB,OAAG,CAAA;KAClC;IAED,IAAI,KAAK,EAAE;QACT,OAAO,8BAAC,YAAY;;YAAG,KAAK,EAAE,OAAO,CAAgB,CAAA;KACtD;IAED,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,CACL,8BAAC,YAAY,4EAEE,CAChB,CAAA;KACF;IAED,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,8BAAC,mCAAgB,IAAC,gBAAgB,EAAE,MAAM,GAAI,CAAA;AACvD,CAAC,CAAA;AA9CY,QAAA,yBAAyB,6BA8CrC;AAED,MAAM,YAAY,GAAG,2BAAM,CAAC,GAAG,CAAA;;CAE9B,CAAA;AACD,MAAM,YAAY,GAAG,2BAAM,CAAC,GAAG,CAAA;;CAE9B,CAAA"}
@@ -1,84 +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) 2020 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
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.RequirementsList = void 0;
41
- const react_1 = __importStar(require("react"));
42
- const styled_components_1 = __importDefault(require("styled-components"));
43
- const store_1 = require("../../store");
44
- const RequirementContainer_1 = require("./RequirementContainer");
45
- const RequirementsData_1 = require("./RequirementsData");
46
- const SectionValidations_1 = require("./SectionValidations");
47
- const RequirementsList = ({ validationResult }) => {
48
- const [{ modelMap, manuscriptID, bulkUpdate }] = (0, store_1.useStore)((store) => ({
49
- modelMap: store.modelMap,
50
- manuscriptID: store.manuscriptID,
51
- bulkUpdate: store.bulkUpdate,
52
- }));
53
- const sortedData = (0, react_1.useMemo)(() => [...validationResult].sort((a, b) => a.passed === b.passed ? 0 : a ? -1 : 1), [validationResult]);
54
- const ignoredValidations = sortedData.filter((node) => node.ignored);
55
- const validationsList = sortedData.filter((node) => !node.ignored);
56
- const manuscriptValidation = validationsList.filter((node) => node.type && node.type.startsWith('manuscript-'));
57
- const bibliographyValidation = validationsList.filter((node) => node.type && node.type.startsWith('bibliography-'));
58
- const figureValidation = validationsList.filter((node) => node.type && node.type.startsWith('figure-'));
59
- const requiredSectionValidation = validationsList.filter((node) => node.type === 'required-section');
60
- const sectionOrderValidation = validationsList.filter((node) => node.type === 'section-order');
61
- const sectionValidation = validationsList.filter((node) => node.type && node.type.startsWith('section-'));
62
- return (react_1.default.createElement(RequirementList, null,
63
- manuscriptValidation.length !== 0 && (react_1.default.createElement(RequirementContainer_1.RequirementContainer, { result: manuscriptValidation, title: 'Manuscript' },
64
- react_1.default.createElement(Requirement, null, manuscriptValidation.map((section) => section.message && (react_1.default.createElement(RequirementsData_1.RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
65
- react_1.default.createElement(SectionValidations_1.SectionValidations, { sortedData: sectionValidation, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate }),
66
- requiredSectionValidation.length !== 0 && (react_1.default.createElement(RequirementContainer_1.RequirementContainer, { result: requiredSectionValidation, title: 'Required Section' },
67
- react_1.default.createElement(Requirement, null, requiredSectionValidation.map((section) => section.message && (react_1.default.createElement(RequirementsData_1.RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
68
- bibliographyValidation.length !== 0 && (react_1.default.createElement(RequirementContainer_1.RequirementContainer, { result: bibliographyValidation, title: 'Bibliography' },
69
- react_1.default.createElement(Requirement, null, bibliographyValidation.map((section) => section.message && (react_1.default.createElement(RequirementsData_1.RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
70
- figureValidation.length !== 0 && (react_1.default.createElement(RequirementContainer_1.RequirementContainer, { result: figureValidation, title: 'Figure' },
71
- react_1.default.createElement(Requirement, null, figureValidation.map((section) => section.message && (react_1.default.createElement(RequirementsData_1.RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
72
- sectionOrderValidation.length !== 0 && (react_1.default.createElement(RequirementContainer_1.RequirementContainer, { result: sectionOrderValidation, title: 'Section Order' },
73
- react_1.default.createElement(Requirement, null, sectionOrderValidation.map((section) => section.message && (react_1.default.createElement(RequirementsData_1.RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
74
- ignoredValidations.length !== 0 && (react_1.default.createElement(RequirementContainer_1.RequirementContainer, { result: ignoredValidations, title: 'Ignored' },
75
- react_1.default.createElement(Requirement, null, ignoredValidations.map((section) => section.message && (react_1.default.createElement(RequirementsData_1.RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate }))))))));
76
- };
77
- exports.RequirementsList = RequirementsList;
78
- const RequirementList = styled_components_1.default.div `
79
- display: block;
80
- `;
81
- const Requirement = styled_components_1.default.div `
82
- padding: 15px 0 0 0;
83
- `;
84
- //# sourceMappingURL=RequirementsList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequirementsList.js","sourceRoot":"","sources":["../../../../../src/components/requirements/RequirementsList.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,+CAAsC;AACtC,0EAAsC;AAEtC,uCAAsC;AACtC,iEAA6D;AAC7D,yDAAqD;AACrD,6DAAyD;AAElD,MAAM,gBAAgB,GAExB,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5B,MAAM,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACpE,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,UAAU,EAAE,KAAK,CAAC,UAAU;K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,CACH,CACJ,CACW,CACO,CACxB;QACA,kBAAkB,CAAC,MAAM,KAAK,CAAC,IAAI,CAClC,8BAAC,2CAAoB,IAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS;YAChE,8BAAC,WAAW,QACT,kBAAkB,CAAC,GAAG,CACrB,CAAC,OAA4B,EAAE,EAAE,CAC/B,OAAO,CAAC,OAAO,IAAI,CACjB,8BAAC,mCAAgB,IACf,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,OAAO,CAAC,GAAG,EAChB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,GACtB,CACH,CACJ,CACW,CACO,CACxB,CACe,CACnB,CAAA;AACH,CAAC,CAAA;AA5KY,QAAA,gBAAgB,oBA4K5B;AACD,MAAM,eAAe,GAAG,2BAAM,CAAC,GAAG,CAAA;;CAEjC,CAAA;AACD,MAAM,WAAW,GAAG,2BAAM,CAAC,GAAG,CAAA;;CAE7B,CAAA"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SectionValidations = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const styled_components_1 = __importDefault(require("styled-components"));
9
- const store_1 = require("../../store");
10
- const RequirementContainer_1 = require("./RequirementContainer");
11
- const RequirementsData_1 = require("./RequirementsData");
12
- const SectionValidations = ({ sortedData, modelMap, manuscriptID, bulkUpdate }) => {
13
- const [sectionCategories] = (0, store_1.useStore)((store) => store.sectionCategories);
14
- const isSectionValidation = (node) => {
15
- if (node.type &&
16
- node.type.startsWith('section-') &&
17
- !node.type.startsWith('section-order')) {
18
- return true;
19
- }
20
- return false;
21
- };
22
- let sectionValidation = sortedData.filter((node) => isSectionValidation(node) && node.message !== undefined);
23
- const sectionsData = [];
24
- while (sectionValidation.length > 0) {
25
- const category = isSectionValidation(sectionValidation[0]) &&
26
- sectionValidation[0].data.sectionCategory;
27
- const sectionValidationId = sectionValidation[0]._id;
28
- const sections = sectionValidation.filter((node) => isSectionValidation(node) && node.data.sectionCategory === category);
29
- sectionValidation = sectionValidation.filter((x) => sections.indexOf(x) === -1);
30
- const categoryData = sectionCategories.map((section) => {
31
- if (section._id === category) {
32
- return section.name;
33
- }
34
- });
35
- sectionsData.push(react_1.default.createElement(RequirementContainer_1.RequirementContainer, { result: sections, key: sectionValidationId, title: categoryData },
36
- react_1.default.createElement(Requirement, null, sections.map((section) => section.message && (react_1.default.createElement(RequirementsData_1.RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate }))))));
37
- if (sectionValidation.length <= 0) {
38
- return react_1.default.createElement(react_1.default.Fragment, null, sectionsData);
39
- }
40
- }
41
- return null;
42
- };
43
- exports.SectionValidations = SectionValidations;
44
- const Requirement = styled_components_1.default.div `
45
- padding: 15px 0 0 0;
46
- `;
47
- //# sourceMappingURL=SectionValidations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionValidations.js","sourceRoot":"","sources":["../../../../../src/components/requirements/SectionValidations.tsx"],"names":[],"mappings":";;;;;;AAqBA,kDAAyB;AACzB,0EAAsC;AAEtC,uCAAsC;AACtC,iEAA6D;AAC7D,yDAAqD;AAE9C,MAAM,kBAAkB,GAK1B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;IAExE,MAAM,mBAAmB,GAAG,CAC1B,IAAyB,EAKM,EAAE;QACjC,IACE,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAChC,CAAC,IAAI,CAAC,I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ACX,CAAC,OAA4B,EAAE,EAAE,CAC/B,OAAO,CAAC,OAAO,IAAI,CACjB,8BAAC,mCAAgB,IACf,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,OAAO,CAAC,GAAG,EAChB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,GACtB,CACH,CACJ,CACW,CACO,CACxB,CAAA;QACD,IAAI,iBAAiB,CAAC,MAAM,IAAI,CAAC,EAAE;YACjC,OAAO,8DAAG,YAAY,CAAI,CAAA;SAC3B;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AA3EY,QAAA,kBAAkB,sBA2E9B;AACD,MAAM,WAAW,GAAG,2BAAM,CAAC,GAAG,CAAA;;CAE7B,CAAA"}
@@ -1,87 +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.useRequirementsValidation = void 0;
15
- const react_1 = require("react");
16
- const RequirementsInspector_1 = require("../components/requirements/RequirementsInspector");
17
- const store_1 = require("../store");
18
- const use_idle_prop_effect_1 = require("./use-idle-prop-effect");
19
- const useRequirementsValidation = ({ state }) => {
20
- const [{ manuscript, modelMap, template, sectionCategories }] = (0, store_1.useStore)((store) => ({
21
- manuscript: store.manuscript,
22
- modelMap: store.modelMap,
23
- sectionCategories: store.sectionCategories,
24
- template: store.template,
25
- }));
26
- const [error, setError] = (0, react_1.useState)();
27
- const [result, setResult] = (0, react_1.useState)([]);
28
- const [isBuilding, setIsBuilding] = (0, react_1.useState)(false);
29
- const prototypeID = manuscript.prototype;
30
- // TODO: re-enable once the quality report (RequirementsValidation) is saved
31
- // useEffect(() => {
32
- // if (isPullComplete) {
33
- // const subscription = collection
34
- // .find({
35
- // manuscriptID: manuscript._id,
36
- // objectType: ObjectTypes.RequirementsValidation,
37
- // })
38
- // .$.subscribe((docs) => {
39
- // setLoaded(true)
40
- // if (!docs || !docs.length) {
41
- // return
42
- // }
43
- // const doc = docs[0].toJSON() as RequirementsValidation
44
- // setDoc(doc)
45
- // })
46
- // return () => {
47
- // subscription.unsubscribe()
48
- // }
49
- // }
50
- // // eslint-disable-next-line react-hooks/exhaustive-deps
51
- // }, [project._id, isPullComplete, manuscript._id])
52
- (0, use_idle_prop_effect_1.useIdlePropEffect)(() => {
53
- setIsBuilding(true);
54
- (0, RequirementsInspector_1.buildQualityCheck)(modelMap, prototypeID, manuscript._id, template, sectionCategories, {
55
- validateImageFiles: false,
56
- })
57
- .then(setResult)
58
- // Saving the report failed, we need to update the `RequirementsValidation` schema in order to fix the issue.
59
- // TODO: re-enable once we decide to save the quality report (RequirementsValidation).
60
- // .then((results) => {
61
- // // make sure not to create multiple documents
62
- // if (!loaded) {
63
- // return
64
- // }
65
- // const nextDoc = doc
66
- // ? {
67
- // ...doc,
68
- // results,
69
- // }
70
- // : buildValidation(results as RequirementsValidationData[])
71
- // setError(null)
72
- // return collection.save(nextDoc, {
73
- // containerID: project._id,
74
- // manuscriptID: manuscript._id,
75
- // })
76
- // })
77
- .finally(() => {
78
- setIsBuilding(false);
79
- })
80
- .catch((err) => {
81
- setError(err);
82
- });
83
- }, [state], 1000);
84
- return { result, error, isBuilding };
85
- };
86
- exports.useRequirementsValidation = useRequirementsValidation;
87
- //# sourceMappingURL=use-requirements-validation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-requirements-validation.js","sourceRoot":"","sources":["../../../../src/hooks/use-requirements-validation.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,iCAAgC;AAEhC,4FAAoF;AACpF,oCAAmC;AACnC,iEAA0D;AAMnD,MAAM,yBAAyB,GAAG,CAAC,EAAE,KAAK,EAAQ,EAAE,EAAE;IAC3D,MAAM,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,GAAG,IAAA,gBAAQ,EACtE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACV,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;QAC1C,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACzB,CAAC,CACH,CAAA;IAED,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAgB,CAAA;IAClD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAwB,EAAE,CAAC,CAAA;IAC/D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAA;IAC5D,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAA;IAExC,4EAA4E;IAE5E,oBAAoB;IACpB,0BAA0B;IAC1B,sCAAsC;IACtC,gBAAgB;IAChB,wCAAwC;IACxC,0DAA0D;IAC1D,WAAW;IACX,iCAAiC;IACjC,0BAA0B;IAC1B,uCAAuC;IACvC,mBAAmB;IACnB,YAAY;IAEZ,iEAAiE;IACjE,sBAAsB;IACtB,WAAW;IACX,qBAAqB;IACrB,mCAAmC;IACnC,QAAQ;IACR,MAAM;IACN,4DAA4D;IAC5D,oDAAoD;IAEpD,IAAA,wCAAiB,EACf,GAAG,EAAE;QACH,aAAa,CAAC,IAAI,CAAC,CAAA;QACnB,IAAA,yCAAiB,EACf,QAAQ,EACR,WAAW,EACX,UAAU,CAAC,GAAG,EACd,QAAQ,EACR,iBAAiB,EACjB;YACE,kBAAkB,EAAE,KAAK;SAC1B,CACF;aACE,IAAI,CAAC,SAAS,CAAC;YAChB,6GAA6G;YAC7G,sFAAsF;YAEtF,uBAAuB;YACvB,kDAAkD;YAClD,mBAAmB;YACnB,aAAa;YACb,MAAM;YAEN,wBAAwB;YACxB,UAAU;YACV,kBAAkB;YAClB,mBAAmB;YACnB,UAAU;YACV,iEAAiE;YAEjE,mBAAmB;YACnB,sCAAsC;YACtC,gCAAgC;YAChC,oCAAoC;YACpC,OAAO;YACP,KAAK;aACJ,OAAO,CAAC,GAAG,EAAE;YACZ,aAAa,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,QAAQ,CAAC,GAAG,CAAC,CAAA;QACf,CAAC,CAAC,CAAA;IACN,CAAC,EACD,CAAC,KAAK,CAAC,EACP,IAAI,CACL,CAAA;IAED,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,CAAA;AACtC,CAAC,CAAA;AAxFY,QAAA,yBAAyB,6BAwFrC"}
@@ -1,41 +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 __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.apolloClient = void 0;
18
- const client_1 = require("@apollo/client");
19
- const error_1 = require("@apollo/client/link/error");
20
- const apollo_upload_client_1 = require("apollo-upload-client");
21
- const config_1 = __importDefault(require("../config"));
22
- const filesServerLink = (0, apollo_upload_client_1.createUploadLink)({
23
- uri: `${config_1.default.leanWorkflow.url}${config_1.default.leanWorkflow.graphqlEndpoint}`,
24
- credentials: 'include',
25
- });
26
- const errorLink = (0, error_1.onError)(({ networkError, operation }) => {
27
- if (networkError) {
28
- const { statusCode } = networkError;
29
- const { clientPurpose } = operation.getContext();
30
- const redirectUri = window.location.href;
31
- if (statusCode === 401 && clientPurpose == 'leanWorkflowManager') {
32
- // Auto login
33
- window.location.assign(`${config_1.default.leanWorkflow.url}/action/showLogin?redirectUri=${redirectUri}`);
34
- }
35
- }
36
- });
37
- exports.apolloClient = new client_1.ApolloClient({
38
- cache: new client_1.InMemoryCache(),
39
- link: (0, client_1.from)([errorLink, filesServerLink]),
40
- });
41
- //# sourceMappingURL=apollo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apollo.js","sourceRoot":"","sources":["../../../../src/lib/apollo.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAEH,2CAA+E;AAC/E,qDAAmD;AACnD,+DAAuD;AAEvD,uDAA8B;AAE9B,MAAM,eAAe,GAAG,IAAA,uCAAgB,EAAC;IACvC,GAAG,EAAE,GAAG,gBAAM,CAAC,YAAY,CAAC,GAAG,GAAG,gBAAM,CAAC,YAAY,CAAC,eAAe,EAAE;IACvE,WAAW,EAAE,SAAS;CACvB,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE;IACxD,IAAI,YAAY,EAAE;QAChB,MAAM,EAAE,UAAU,EAAE,GAAG,YAA2B,CAAA;QAClD,MAAM,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,UAAU,EAAE,CAAA;QAChD,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAA;QAExC,IAAI,UAAU,KAAK,GAAG,IAAI,aAAa,IAAI,qBAAqB,EAAE;YAChE,aAAa;YACb,MAAM,CAAC,QAAQ,CAAC,MAAM,CACpB,GAAG,gBAAM,CAAC,YAAY,CAAC,GAAG,iCAAiC,WAAW,EAAE,CACzE,CAAA;SACF;KACF;AACH,CAAC,CAAC,CAAA;AACW,QAAA,YAAY,GAAG,IAAI,qBAAY,CAAC;IAC3C,KAAK,EAAE,IAAI,sBAAa,EAAE;IAC1B,IAAI,EAAE,IAAA,aAAI,EAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;CACzC,CAAC,CAAA"}
@@ -1,40 +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 __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.useSetTaskOnHold = void 0;
18
- const react_hooks_1 = require("@apollo/react-hooks");
19
- const graphql_tag_1 = __importDefault(require("graphql-tag"));
20
- const SET_TASK_ON_HOLD = (0, graphql_tag_1.default) `
21
- mutation SetTaskOnHold($submissionId: ID!, $errorCode: ID!) {
22
- setTaskOnHold(submissionId: $submissionId, errorCode: $errorCode) {
23
- id
24
- }
25
- }
26
- `;
27
- const useSetTaskOnHold = () => {
28
- const [mutate] = (0, react_hooks_1.useMutation)(SET_TASK_ON_HOLD);
29
- return ({ submissionId, errorCode }) => mutate({
30
- context: {
31
- clientPurpose: 'leanWorkflowManager',
32
- },
33
- variables: {
34
- submissionId,
35
- errorCode,
36
- },
37
- });
38
- };
39
- exports.useSetTaskOnHold = useSetTaskOnHold;
40
- //# sourceMappingURL=lean-workflow-gql.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lean-workflow-gql.js","sourceRoot":"","sources":["../../../../src/lib/lean-workflow-gql.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAEH,qDAAiD;AACjD,8DAA6B;AA0D7B,MAAM,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;CAM3B,CAAA;AAEM,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,yBAAW,EAAgC,gBAAgB,CAAC,CAAA;IAC7E,OAAO,CAAC,EAAE,YAAY,EAAE,SAAS,EAAe,EAAE,EAAE,CAClD,MAAM,CAAC;QACL,OAAO,EAAE;YACP,aAAa,EAAE,qBAAqB;SACrC;QACD,SAAS,EAAE;YACT,YAAY;YACZ,SAAS;SACV;KACF,CAAC,CAAA;AACN,CAAC,CAAA;AAZY,QAAA,gBAAgB,oBAY5B"}
@@ -1,49 +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.replaceAttachmentLinks = exports.replaceAttachmentsIds = void 0;
15
- const json_schema_1 = require("@manuscripts/json-schema");
16
- const attachmentPrefix = 'attachment:';
17
- function replaceAttachmentsIds(modelMap, attachments) {
18
- const newMap = new Map();
19
- modelMap.forEach((model) => {
20
- const figure = { ...model };
21
- if (figure.objectType === json_schema_1.ObjectTypes.Figure &&
22
- figure.src?.startsWith(attachmentPrefix)) {
23
- const id = figure.src.replace(attachmentPrefix, '');
24
- const attachment = attachments.find((a) => id === a.id);
25
- if (attachment) {
26
- figure.src = attachment.link;
27
- }
28
- }
29
- newMap.set(figure._id, figure);
30
- });
31
- return newMap;
32
- }
33
- exports.replaceAttachmentsIds = replaceAttachmentsIds;
34
- function replaceAttachmentLinks(modelMap, attachments) {
35
- const newMap = new Map();
36
- modelMap.forEach((model) => {
37
- const figure = { ...model };
38
- if (figure.objectType === json_schema_1.ObjectTypes.Figure && figure.src) {
39
- const attachment = attachments.find((a) => figure.src?.startsWith(a.link));
40
- if (attachment) {
41
- figure.src = attachmentPrefix + attachment.id;
42
- }
43
- }
44
- newMap.set(figure._id, figure);
45
- });
46
- return newMap;
47
- }
48
- exports.replaceAttachmentLinks = replaceAttachmentLinks;
49
- //# sourceMappingURL=replace-attachments-ids.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replace-attachments-ids.js","sourceRoot":"","sources":["../../../../src/lib/replace-attachments-ids.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,0DAA8D;AAK9D,MAAM,gBAAgB,GAAG,aAAa,CAAA;AAEtC,SAAgB,qBAAqB,CACnC,QAA2B,EAC3B,WAAyD;IAEzD,MAAM,MAAM,GAAsB,IAAI,GAAG,EAAE,CAAA;IAC3C,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACzB,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,EAAY,CAAA;QACrC,IACE,MAAM,CAAC,UAAU,KAAK,yBAAW,CAAC,MAAM;YACxC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,gBAAgB,CAAC,EACxC;YACA,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAA;YACnD,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAA;YACvD,IAAI,UAAU,EAAE;gBACd,MAAM,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,CAAA;aAC7B;SACF;QACD,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IAChC,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC;AApBD,sDAoBC;AAED,SAAgB,sBAAsB,CACpC,QAA2B,EAC3B,WAAyD;IAEzD,MAAM,MAAM,GAAsB,IAAI,GAAG,EAAE,CAAA;IAC3C,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACzB,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,EAAY,CAAA;QACrC,IAAI,MAAM,CAAC,UAAU,KAAK,yBAAW,CAAC,MAAM,IAAI,MAAM,CAAC,GAAG,EAAE;YAC1D,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;YAC1E,IAAI,UAAU,EAAE;gBACd,MAAM,CAAC,GAAG,GAAG,gBAAgB,GAAG,UAAU,CAAC,EAAE,CAAA;aAC9C;SACF;QACD,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IAChC,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC;AAhBD,wDAgBC"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Biblio = void 0;
4
- const library_1 = require("@manuscripts/library");
5
- const search_library_1 = require("../lib/search-library");
6
- class Biblio {
7
- constructor(bundle, library, lang) {
8
- this.matchLibraryItemByIdentifier = (item) => (0, library_1.matchLibraryItemByIdentifier)(item, this.library);
9
- this.filterLibraryItems = (query) => (0, search_library_1.filterLibrary)(this.library, query);
10
- this.getCitationProvider = () => {
11
- return undefined;
12
- };
13
- this.getTools = () => {
14
- return {
15
- filterLibraryItems: this.filterLibraryItems,
16
- matchLibraryItemByIdentifier: this.matchLibraryItemByIdentifier,
17
- setLibraryItem: this.setLibraryItem,
18
- removeLibraryItem: this.removeLibraryItem,
19
- getCitationProvider: this.getCitationProvider,
20
- getLibraryItem: this.getLibraryItem,
21
- };
22
- };
23
- this.library = library;
24
- this.getLibraryItem = (id) => library.get(id);
25
- this.setLibraryItem = (item) => library.set(item._id, item);
26
- this.removeLibraryItem = (id) => library.delete(id);
27
- if (!bundle) {
28
- return;
29
- }
30
- }
31
- }
32
- exports.Biblio = Biblio;
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AI,CAAC,MAAM,EAAE;YACX,OAAM;SACP;IACH,CAAC;CAgCF;AArDD,wBAqDC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=BiblioTools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BiblioTools.js","sourceRoot":"","sources":["../../../../src/store/BiblioTools.ts"],"names":[],"mappings":""}