@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 +0,0 @@
1
- {"version":3,"file":"RequirementsList.js","sourceRoot":"","sources":["../../../../../src/components/requirements/RequirementsList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MA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AU,EAAE,UAAU,GACtB,CACH,CACJ,CACW,CACO,CACxB;QACA,sBAAsB,CAAC,MAAM,KAAK,CAAC,IAAI,CACtC,oBAAC,oBAAoB,IACnB,MAAM,EAAE,sBAAsB,EAC9B,KAAK,EAAE,eAAe;YAEtB,oBAAC,WAAW,QACT,sBAAsB,CAAC,GAAG,CACzB,CAAC,OAA4B,EAAE,EAAE,CAC/B,OAAO,CAAC,OAAO,IAAI,CACjB,oBAAC,gBAAgB,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;QACA,kBAAkB,CAAC,MAAM,KAAK,CAAC,IAAI,CAClC,oBAAC,oBAAoB,IAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS;YAChE,oBAAC,WAAW,QACT,kBAAkB,CAAC,GAAG,CACrB,CAAC,OAA4B,EAAE,EAAE,CAC/B,OAAO,CAAC,OAAO,IAAI,CACjB,oBAAC,gBAAgB,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;AACD,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEjC,CAAA;AACD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE7B,CAAA"}
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import styled from 'styled-components';
3
- import { useStore } from '../../store';
4
- import { RequirementContainer } from './RequirementContainer';
5
- import { RequirementsData } from './RequirementsData';
6
- export const SectionValidations = ({ sortedData, modelMap, manuscriptID, bulkUpdate }) => {
7
- const [sectionCategories] = useStore((store) => store.sectionCategories);
8
- const isSectionValidation = (node) => {
9
- if (node.type &&
10
- node.type.startsWith('section-') &&
11
- !node.type.startsWith('section-order')) {
12
- return true;
13
- }
14
- return false;
15
- };
16
- let sectionValidation = sortedData.filter((node) => isSectionValidation(node) && node.message !== undefined);
17
- const sectionsData = [];
18
- while (sectionValidation.length > 0) {
19
- const category = isSectionValidation(sectionValidation[0]) &&
20
- sectionValidation[0].data.sectionCategory;
21
- const sectionValidationId = sectionValidation[0]._id;
22
- const sections = sectionValidation.filter((node) => isSectionValidation(node) && node.data.sectionCategory === category);
23
- sectionValidation = sectionValidation.filter((x) => sections.indexOf(x) === -1);
24
- const categoryData = sectionCategories.map((section) => {
25
- if (section._id === category) {
26
- return section.name;
27
- }
28
- });
29
- sectionsData.push(React.createElement(RequirementContainer, { result: sections, key: sectionValidationId, title: categoryData },
30
- React.createElement(Requirement, null, sections.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate }))))));
31
- if (sectionValidation.length <= 0) {
32
- return React.createElement(React.Fragment, null, sectionsData);
33
- }
34
- }
35
- return null;
36
- };
37
- const Requirement = styled.div `
38
- padding: 15px 0 0 0;
39
- `;
40
- //# sourceMappingURL=SectionValidations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionValidations.js","sourceRoot":"","sources":["../../../../../src/components/requirements/SectionValidations.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,CAAC,MAAM,kBAAkB,GAK1B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,E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AAE,EAAE;YACtE,IAAI,OAAO,CAAC,GAAG,KAAK,QAAQ,EAAE;gBAC5B,OAAO,OAAO,CAAC,IAAI,CAAA;aACpB;QACH,CAAC,CAAC,CAAA;QACF,YAAY,CAAC,IAAI,CACf,oBAAC,oBAAoB,IACnB,MAAM,EAAE,QAAQ,EAChB,GAAG,EAAE,mBAAmB,EACxB,KAAK,EAAE,YAAY;YAEnB,oBAAC,WAAW,QACT,QAAQ,CAAC,GAAG,CACX,CAAC,OAA4B,EAAE,EAAE,CAC/B,OAAO,CAAC,OAAO,IAAI,CACjB,oBAAC,gBAAgB,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,0CAAG,YAAY,CAAI,CAAA;SAC3B;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AACD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE7B,CAAA"}
@@ -1,83 +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 { useState } from 'react';
13
- import { buildQualityCheck } from '../components/requirements/RequirementsInspector';
14
- import { useStore } from '../store';
15
- import { useIdlePropEffect } from './use-idle-prop-effect';
16
- export const useRequirementsValidation = ({ state }) => {
17
- const [{ manuscript, modelMap, template, sectionCategories }] = useStore((store) => ({
18
- manuscript: store.manuscript,
19
- modelMap: store.modelMap,
20
- sectionCategories: store.sectionCategories,
21
- template: store.template,
22
- }));
23
- const [error, setError] = useState();
24
- const [result, setResult] = useState([]);
25
- const [isBuilding, setIsBuilding] = useState(false);
26
- const prototypeID = manuscript.prototype;
27
- // TODO: re-enable once the quality report (RequirementsValidation) is saved
28
- // useEffect(() => {
29
- // if (isPullComplete) {
30
- // const subscription = collection
31
- // .find({
32
- // manuscriptID: manuscript._id,
33
- // objectType: ObjectTypes.RequirementsValidation,
34
- // })
35
- // .$.subscribe((docs) => {
36
- // setLoaded(true)
37
- // if (!docs || !docs.length) {
38
- // return
39
- // }
40
- // const doc = docs[0].toJSON() as RequirementsValidation
41
- // setDoc(doc)
42
- // })
43
- // return () => {
44
- // subscription.unsubscribe()
45
- // }
46
- // }
47
- // // eslint-disable-next-line react-hooks/exhaustive-deps
48
- // }, [project._id, isPullComplete, manuscript._id])
49
- useIdlePropEffect(() => {
50
- setIsBuilding(true);
51
- buildQualityCheck(modelMap, prototypeID, manuscript._id, template, sectionCategories, {
52
- validateImageFiles: false,
53
- })
54
- .then(setResult)
55
- // Saving the report failed, we need to update the `RequirementsValidation` schema in order to fix the issue.
56
- // TODO: re-enable once we decide to save the quality report (RequirementsValidation).
57
- // .then((results) => {
58
- // // make sure not to create multiple documents
59
- // if (!loaded) {
60
- // return
61
- // }
62
- // const nextDoc = doc
63
- // ? {
64
- // ...doc,
65
- // results,
66
- // }
67
- // : buildValidation(results as RequirementsValidationData[])
68
- // setError(null)
69
- // return collection.save(nextDoc, {
70
- // containerID: project._id,
71
- // manuscriptID: manuscript._id,
72
- // })
73
- // })
74
- .finally(() => {
75
- setIsBuilding(false);
76
- })
77
- .catch((err) => {
78
- setError(err);
79
- });
80
- }, [state], 1000);
81
- return { result, error, isBuilding };
82
- };
83
- //# 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,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM1D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EAAE,KAAK,EAAQ,EAAE,EAAE;IAC3D,MAAM,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,GAAG,QAAQ,CACtE,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,QAAQ,EAAgB,CAAA;IAClD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAwB,EAAE,CAAC,CAAA;IAC/D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAU,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,iBAAiB,CACf,GAAG,EAAE;QACH,aAAa,CAAC,IAAI,CAAC,CAAA;QACnB,iBAAiB,CACf,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"}
@@ -1,35 +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 { ApolloClient, from, InMemoryCache } from '@apollo/client';
13
- import { onError } from '@apollo/client/link/error';
14
- import { createUploadLink } from 'apollo-upload-client';
15
- import config from '../config';
16
- const filesServerLink = createUploadLink({
17
- uri: `${config.leanWorkflow.url}${config.leanWorkflow.graphqlEndpoint}`,
18
- credentials: 'include',
19
- });
20
- const errorLink = onError(({ networkError, operation }) => {
21
- if (networkError) {
22
- const { statusCode } = networkError;
23
- const { clientPurpose } = operation.getContext();
24
- const redirectUri = window.location.href;
25
- if (statusCode === 401 && clientPurpose == 'leanWorkflowManager') {
26
- // Auto login
27
- window.location.assign(`${config.leanWorkflow.url}/action/showLogin?redirectUri=${redirectUri}`);
28
- }
29
- }
30
- });
31
- export const apolloClient = new ApolloClient({
32
- cache: new InMemoryCache(),
33
- link: from([errorLink, filesServerLink]),
34
- });
35
- //# sourceMappingURL=apollo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apollo.js","sourceRoot":"","sources":["../../../../src/lib/apollo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAe,MAAM,gBAAgB,CAAA;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,MAAM,eAAe,GAAG,gBAAgB,CAAC;IACvC,GAAG,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,GAAG,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE;IACvE,WAAW,EAAE,SAAS;CACvB,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,OAAO,CAAC,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,MAAM,CAAC,YAAY,CAAC,GAAG,iCAAiC,WAAW,EAAE,CACzE,CAAA;SACF;KACF;AACH,CAAC,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC;IAC3C,KAAK,EAAE,IAAI,aAAa,EAAE;IAC1B,IAAI,EAAE,IAAI,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;CACzC,CAAC,CAAA"}
@@ -1,33 +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 { useMutation } from '@apollo/react-hooks';
13
- import gql from 'graphql-tag';
14
- const SET_TASK_ON_HOLD = gql `
15
- mutation SetTaskOnHold($submissionId: ID!, $errorCode: ID!) {
16
- setTaskOnHold(submissionId: $submissionId, errorCode: $errorCode) {
17
- id
18
- }
19
- }
20
- `;
21
- export const useSetTaskOnHold = () => {
22
- const [mutate] = useMutation(SET_TASK_ON_HOLD);
23
- return ({ submissionId, errorCode }) => mutate({
24
- context: {
25
- clientPurpose: 'leanWorkflowManager',
26
- },
27
- variables: {
28
- submissionId,
29
- errorCode,
30
- },
31
- });
32
- };
33
- //# 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,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,GAAG,MAAM,aAAa,CAAA;AA0D7B,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;CAM3B,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAAgC,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"}
@@ -1,44 +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 { ObjectTypes } from '@manuscripts/json-schema';
13
- const attachmentPrefix = 'attachment:';
14
- export function replaceAttachmentsIds(modelMap, attachments) {
15
- const newMap = new Map();
16
- modelMap.forEach((model) => {
17
- const figure = { ...model };
18
- if (figure.objectType === ObjectTypes.Figure &&
19
- figure.src?.startsWith(attachmentPrefix)) {
20
- const id = figure.src.replace(attachmentPrefix, '');
21
- const attachment = attachments.find((a) => id === a.id);
22
- if (attachment) {
23
- figure.src = attachment.link;
24
- }
25
- }
26
- newMap.set(figure._id, figure);
27
- });
28
- return newMap;
29
- }
30
- export function replaceAttachmentLinks(modelMap, attachments) {
31
- const newMap = new Map();
32
- modelMap.forEach((model) => {
33
- const figure = { ...model };
34
- if (figure.objectType === ObjectTypes.Figure && figure.src) {
35
- const attachment = attachments.find((a) => figure.src?.startsWith(a.link));
36
- if (attachment) {
37
- figure.src = attachmentPrefix + attachment.id;
38
- }
39
- }
40
- newMap.set(figure._id, figure);
41
- });
42
- return newMap;
43
- }
44
- //# 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,OAAO,EAAU,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAK9D,M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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"}
@@ -1,29 +0,0 @@
1
- import { matchLibraryItemByIdentifier as libMatch, } from '@manuscripts/library';
2
- import { filterLibrary } from '../lib/search-library';
3
- export class Biblio {
4
- constructor(bundle, library, lang) {
5
- this.matchLibraryItemByIdentifier = (item) => libMatch(item, this.library);
6
- this.filterLibraryItems = (query) => filterLibrary(this.library, query);
7
- this.getCitationProvider = () => {
8
- return undefined;
9
- };
10
- this.getTools = () => {
11
- return {
12
- filterLibraryItems: this.filterLibraryItems,
13
- matchLibraryItemByIdentifier: this.matchLibraryItemByIdentifier,
14
- setLibraryItem: this.setLibraryItem,
15
- removeLibraryItem: this.removeLibraryItem,
16
- getCitationProvider: this.getCitationProvider,
17
- getLibraryItem: this.getLibraryItem,
18
- };
19
- };
20
- this.library = library;
21
- this.getLibraryItem = (id) => library.get(id);
22
- this.setLibraryItem = (item) => library.set(item._id, item);
23
- this.removeLibraryItem = (id) => library.delete(id);
24
- if (!bundle) {
25
- return;
26
- }
27
- }
28
- }
29
- //# sourceMappingURL=Bibilo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bibilo.js","sourceRoot":"","sources":["../../../../src/postgres-data/Bibilo.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,4BAA4B,IAAI,QAAQ,GACzC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAGrD,MAAM,OAAO,MAAM;IAOjB,YACE,MAAqB,EACrB,OAAsC,EACtC,IAAY;QAad,iCAA4B,GAEQ,CAAC,IAAsB,EAAE,EAAE,CAC7D,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;QAE9B,uBAAkB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAE1E,wBAAmB,GAAG,GAAG,EAAE;YACzB,OAAO,SAAS,CAAA;QAClB,CAAC,CAAA;QAED,aAAQ,GASJ,GAAG,EAAE;YACP,OAAO;gBACL,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;gBAC3C,4BAA4B,EAAE,IAAI,CAAC,4BAA4B;gBAC/D,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;gBACzC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;gBAC7C,cAAc,EAAE,IAAI,CAAC,cAAc;aACpC,CAAA;QACH,CAAC,CAAA;QAxCC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,cAAc,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACrD,IAAI,CAAC,cAAc,GAAG,CAAC,IAAsB,EAAE,EAAE,CAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QAC7B,IAAI,CAAC,iBAAiB,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAE3D,IAAI,CAAC,MAAM,EAAE;YACX,OAAM;SACP;IACH,CAAC;CAgCF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BiblioTools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BiblioTools.js","sourceRoot":"","sources":["../../../../src/store/BiblioTools.ts"],"names":[],"mappings":""}
@@ -1,38 +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 { ObjectTypes, } from '@manuscripts/json-schema';
13
- import { hasObjectType } from '@manuscripts/transform';
14
- import { action } from '@storybook/addon-actions';
15
- import { storiesOf } from '@storybook/react';
16
- import React from 'react';
17
- import CitationEditor from '../src/components/library/CitationEditor';
18
- import { CitationSearchSection } from '../src/components/library/CitationSearchSection';
19
- import { CitationViewer } from '../src/components/library/CitationViewer';
20
- import { modelMap } from './data/doc';
21
- const isBibliographyItem = hasObjectType(ObjectTypes.BibliographyItem);
22
- const bibliographyItems = new Map();
23
- for (const model of modelMap.values()) {
24
- if (isBibliographyItem(model)) {
25
- bibliographyItems.set(model._id, model);
26
- }
27
- }
28
- const items = [...bibliographyItems.values()];
29
- const citation = modelMap.get('MPCitation:31E42852-8377-4550-8C25-9E602EE657B0');
30
- storiesOf('Citation', module)
31
- .add('Citation Editor', () => (React.createElement(CitationEditor, { filterLibraryItems: async () => [], setLibraryItem: () => action('set library item'), removeLibraryItem: () => action('remove library item'), modelMap: new Map(), saveModel: action('save model'), deleteModel: action('delete model'), handleCancel: action('handle cancel'), handleCite: action('handle cite'), handleClose: action('handle close'), handleRemove: action('handle remove'), items: items, projectID: 'MPProject:1', scheduleUpdate: action('schedule update'), selectedText: 'foo', setComment: action('set new comment'), importItems: action('import items'), citation: citation, updateCitation: action('update citation'), updatePopper: action('update popper'), canEdit: true })))
32
- .add('Citation Search Section', () => (React.createElement(CitationSearchSection, { query: 'foo', source: {
33
- id: 'stories',
34
- title: 'Stories',
35
- search: async () => ({ items, total: items.length }),
36
- }, addToSelection: action('add to selection'), selectSource: action('select source'), rows: 10, selected: new Map(), fetching: new Set() })))
37
- .add('Citation Viewer', () => React.createElement(CitationViewer, { items: items }));
38
- //# sourceMappingURL=Citation.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Citation.stories.js","sourceRoot":"","sources":["../../../stories/Citation.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,cAAc,MAAM,0CAA0C,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAA;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,kBAAkB,GAAG,aAAa,CACtC,WAAW,CAAC,gBAAgB,CAC7B,CAAA;AAED,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAA4B,CAAA;AAE7D,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,MAAM,EAAE,EAAE;IACrC,IAAI,kBAAkB,CAAC,KAAK,CAAC,EAAE;QAC7B,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;KACxC;CACF;AAED,MAAM,KAAK,GAAG,CAAC,GAAG,iBAAiB,CAAC,MAAM,EAAE,CAAC,CAAA;AAE7C,MAAM,QA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,KAAK,CAAC,MAAM,EAAE,CAAC;KACrD,EACD,cAAc,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAC1C,YAAY,EAAE,MAAM,CAAC,eAAe,CAAC,EACrC,IAAI,EAAE,EAAE,EACR,QAAQ,EAAE,IAAI,GAAG,EAAE,EACnB,QAAQ,EAAE,IAAI,GAAG,EAAE,GACnB,CACH,CAAC;KACD,GAAG,CAAC,iBAAiB,EAAE,GAAG,EAAE,CAAC,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAA"}
@@ -1,183 +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 { action } from '@storybook/addon-actions';
13
- import { storiesOf } from '@storybook/react';
14
- import { createBrowserHistory } from 'history';
15
- import React from 'react';
16
- // TODO: re-enable routing once storybook-react-router is compatible
17
- // import { Route, RouteComponentProps } from 'react-router'
18
- // import StoryRouter from 'storybook-react-router'
19
- import { LibrarySidebar } from '../src/components/library/LibrarySidebar';
20
- const projectLibraryCollections = new Map([
21
- [
22
- 'MPLibraryCollection:1',
23
- {
24
- _id: 'MPLibraryCollection:1',
25
- objectType: 'MPLibraryCollection',
26
- containerID: 'MPProject:1',
27
- name: 'Examples',
28
- owners: ['User_foo@example.com'],
29
- writers: [],
30
- viewers: [],
31
- createdAt: 0,
32
- updatedAt: 0,
33
- },
34
- ],
35
- ]);
36
- const globalLibraries = new Map([
37
- [
38
- 'MPLibrary:1',
39
- {
40
- _id: 'MPLibrary:1',
41
- objectType: 'MPLibrary',
42
- category: 'MPLibraryCategory:default',
43
- name: 'My Library',
44
- owners: ['User_foo@example.com'],
45
- writers: [],
46
- viewers: [],
47
- createdAt: 0,
48
- updatedAt: 0,
49
- },
50
- ],
51
- ]);
52
- const globalLibraryCollections = new Map([
53
- [
54
- 'MPLibraryCollection:2',
55
- {
56
- _id: 'MPLibraryCollection:2',
57
- objectType: 'MPLibraryCollection',
58
- containerID: 'MPLibrary:1',
59
- category: 'MPLibraryCollectionCategory:read-later',
60
- name: 'Read Later',
61
- owners: ['User_foo@example.com'],
62
- writers: [],
63
- viewers: [],
64
- createdAt: 0,
65
- updatedAt: 0,
66
- },
67
- ],
68
- [
69
- 'MPLibraryCollection:3',
70
- {
71
- _id: 'MPLibraryCollection:3',
72
- objectType: 'MPLibraryCollection',
73
- containerID: 'MPLibrary:1',
74
- category: 'MPLibraryCollectionCategory:favourites',
75
- name: 'Favourites',
76
- owners: ['User_foo@example.com'],
77
- writers: [],
78
- viewers: [],
79
- createdAt: 0,
80
- updatedAt: 0,
81
- },
82
- ],
83
- [
84
- 'MPLibraryCollection:4',
85
- {
86
- _id: 'MPLibraryCollection:4',
87
- objectType: 'MPLibraryCollection',
88
- containerID: 'MPLibrary:1',
89
- category: 'MPLibraryCollectionCategory:default',
90
- name: 'Default',
91
- owners: ['User_foo@example.com'],
92
- writers: [],
93
- viewers: [],
94
- createdAt: 0,
95
- updatedAt: 0,
96
- },
97
- ],
98
- [
99
- 'MPLibraryCollection:5',
100
- {
101
- _id: 'MPLibraryCollection:5',
102
- objectType: 'MPLibraryCollection',
103
- containerID: 'MPLibrary:1',
104
- category: 'MPLibraryCollectionCategory:watch-list',
105
- name: 'Watch List',
106
- owners: ['User_foo@example.com'],
107
- writers: [],
108
- viewers: [],
109
- createdAt: 0,
110
- updatedAt: 0,
111
- },
112
- ],
113
- [
114
- 'MPLibraryCollection:6',
115
- {
116
- _id: 'MPLibraryCollection:6',
117
- objectType: 'MPLibraryCollection',
118
- containerID: 'MPLibrary:1',
119
- category: 'MPLibraryCollectionCategory:my-publications',
120
- name: 'My Publications',
121
- owners: ['User_foo@example.com'],
122
- writers: [],
123
- viewers: [],
124
- createdAt: 0,
125
- updatedAt: 0,
126
- },
127
- ],
128
- ]);
129
- const routeProps = {
130
- history: createBrowserHistory(),
131
- match: {
132
- isExact: true,
133
- params: {
134
- projectID: 'MPProject:1',
135
- sourceType: 'library',
136
- sourceID: 'MPLibrary:1',
137
- },
138
- path: '',
139
- url: '',
140
- },
141
- location: {
142
- hash: '',
143
- pathname: '/projects/MPProject:1/library/global/MPLibrary:1',
144
- search: '',
145
- state: {},
146
- },
147
- };
148
- storiesOf('Library Sidebar', module).add('Sidebar', () => (React.createElement(LibrarySidebar, { projectLibraryCollections: projectLibraryCollections, globalLibraryCollections: globalLibraryCollections, globalLibraries: globalLibraries, importItems: action('import items'), createBibliographyItem: action('create bibliography item'), ...routeProps })));
149
- // storiesOf('Library Sidebar', module)
150
- // .addDecorator(
151
- // StoryRouter(
152
- // {},
153
- // {
154
- // initialEntries: [
155
- // {
156
- // pathname: `/projects/MPProject:1/library/global/MPLibrary:1`,
157
- // },
158
- // ],
159
- // }
160
- // )
161
- // )
162
- // .add('Sidebar', () => (
163
- // <Route
164
- // path={'/projects/:projectID/library/:sourceType?/:sourceID?/:filterID?'}
165
- // render={(
166
- // props: RouteComponentProps<{
167
- // projectID: string
168
- // sourceType: string
169
- // sourceID?: string
170
- // }>
171
- // ) => (
172
- // <LibrarySidebar
173
- // projectLibraryCollections={projectLibraryCollections}
174
- // globalLibraryCollections={globalLibraryCollections}
175
- // globalLibraries={globalLibraries}
176
- // importItems={action('import items')}
177
- // createBibliographyItem={action('create bibliography item')}
178
- // {...props}
179
- // />
180
- // )}
181
- // />
182
- // ))
183
- //# sourceMappingURL=LibrarySidebar.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LibrarySidebar.stories.js","sourceRoot":"","sources":["../../../stories/LibrarySidebar.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,oEAAoE;AACpE,4DAA4D;AAC5D,mDAAmD;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAEzE,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAA4B;IACnE;QACE,uBAAuB;QACvB;YACE,GAAG,EAAE,uBAAuB;YAC5B,UAAU,EAAE,qBAAqB;YACjC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,CAAC,sBAAsB,CAAC;YAChC,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,CAAC;SACb;KACF;CACF,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAI,GAAG,CAAkB;IAC/C;QACE,aAAa;QACb;YACE,GAAG,EAAE,aAAa;YAClB,UAAU,EAAE,WAAW;YACvB,QAAQ,EAAE,2BAA2B;YACrC,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,CAAC,sBAAsB,CAAC;YAChC,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,CAAC;SACb;KACF;CACF,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAA4B;IAClE;QACE,uBAAuB;QACvB;YACE,GAAG,EAAE,uBAAuB;Y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AAkE;AAClE,gEAAgE;AAChE,8CAA8C;AAC9C,iDAAiD;AACjD,wEAAwE;AACxE,uBAAuB;AACvB,aAAa;AACb,WAAW;AACX,SAAS;AACT,OAAO"}
@@ -1,48 +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 { Title, TitleField } from '@manuscripts/title-editor';
13
- import { action } from '@storybook/addon-actions';
14
- import { storiesOf } from '@storybook/react';
15
- import React from 'react';
16
- import AddAuthorButton from '../src/components/metadata/AddAuthorButton';
17
- import AddAuthorsSidebar from '../src/components/metadata/AddAuthorsSidebar';
18
- import { AuthorFormContainer } from '../src/components/metadata/AuthorFormContainer';
19
- import { AuthorsModal } from '../src/components/metadata/AuthorsModals';
20
- import AuthorsSidebar from '../src/components/metadata/AuthorsSidebar';
21
- import SearchAuthorsSidebar from '../src/components/metadata/SearchAuthorsSidebar';
22
- import { buildAuthorAffiliations, buildSortedAffiliationIDs, } from '../src/lib/authors';
23
- import { affiliations, authors, user } from './data/contributors';
24
- import { project } from './data/projects';
25
- const affiliationIds = buildSortedAffiliationIDs(authors);
26
- const authorAffiliations = buildAuthorAffiliations(authors, affiliations, affiliationIds);
27
- storiesOf('Metadata', module)
28
- .add('Title: read-only', () => (React.createElement(Title, { value: 'Landscape genomic prediction for restoration of a <em>Eucalyptus</em> foundation species under climate change' })))
29
- .add('Title: write', () => (React.createElement(TitleField, { value: 'Landscape genomic prediction for restoration of a <em>Eucalyptus</em> foundation species under climate change' })))
30
- .add('Authors Modal', () => (React.createElement(AuthorsModal, { affiliations: affiliations, authorAffiliations: authorAffiliations, handleSaveAuthor: action('save author'), addAuthorAffiliation: action('add affiliation to select author (if string: create it)'), removeAuthorAffiliation: action('remove affiliation from selected author'), updateAffiliation: action('upate the affiliation'), isRemoveAuthorOpen: false, removeAuthor: action('remove author'), handleRemoveAuthor: action('handle open the remove author confirmation dialog'), isRejected: action('check invitation existence'), project: project, updateAuthor: action('update author after inviting him to collaborate on project'), getAuthorName: action('get the author name'), authors: authors, selectAuthor: action('select author'), selectedAuthor: null, handleDrop: action('dropped the user'), openAddAuthors: action('start adding'), tokenActions: {
31
- delete: action('delete token'),
32
- update: action('update token'),
33
- }, invitationSent: false, handleDismiss: action('dismiss message'), contributorRoles: [], createContributorRole: action('create contributor role'), allowInvitingAuthors: true })))
34
- .add('Authors Sidebar', () => (React.createElement(AuthorsSidebar, { authors: authors, authorAffiliations: authorAffiliations, selectAuthor: action('select author'), selectedAuthor: null, openAddAuthors: action('start adding'), handleDrop: action('dropped the user'), invitationSent: false, handleDismiss: action('dismiss message') })))
35
- .add('Authors Sidebar with decorations', () => (React.createElement(AuthorsSidebar, { authors: authors, authorAffiliations: authorAffiliations, selectAuthor: action('select author'), selectedAuthor: null, getSidebarItemDecorator: () => React.createElement("span", null, "Ain't Afraid"), openAddAuthors: action('start adding'), handleDrop: action('dropped the user'), invitationSent: false, handleDismiss: action('dismiss message') })))
36
- .add('Author Form', () => (React.createElement(AuthorFormContainer, { author: authors[0], affiliations: affiliations, authorAffiliations: authorAffiliations.get(authors[0]._id), handleSave: action('save author'), addAuthorAffiliation: action('add affiliation to select author (if string: create it)'), removeAuthorAffiliation: action('remove affiliation from selected author'), updateAffiliation: action('upate the affiliation'), isRemoveAuthorOpen: false, removeAuthor: action('remove author'), handleRemoveAuthor: action('handle open the remove author confirmation dialog'), isRejected: action('check invitation existence'), project: project, updateAuthor: action('update author after inviting him to collaborate on project'), getAuthorName: action('get the author name'), tokenActions: {
37
- delete: action('delete token'),
38
- update: action('update token'),
39
- }, contributorRoles: [], createContributorRole: action('create contributor role'), allowInvitingAuthors: true })))
40
- .add('Add Authors Sidebar', () => (React.createElement(AddAuthorsSidebar, { nonAuthors: [], numberOfAddedAuthors: 0, isSearching: false, searchText: '', addedAuthors: [], handleDoneCancel: action('stop adding'), createAuthor: action('create author'), handleSearchChange: action('update search text'), handleSearchFocus: action('start searching'), searchResults: [], handleInvite: action('start invite'), authors: authors, isAuthorExist: action('check author existence'), isCreateAuthorOpen: false, handleCreateAuthor: action('handle open the create author confirmation dialog') })))
41
- .add('Add Authors Sidebar with suggested users', () => (React.createElement(AddAuthorsSidebar, { nonAuthors: [user], numberOfAddedAuthors: 0, isSearching: false, searchText: '', addedAuthors: [], handleDoneCancel: action('stop adding'), createAuthor: action('create author'), handleSearchChange: action('update search text'), handleSearchFocus: action('start searching'), searchResults: [], handleInvite: action('start invite'), authors: authors, isAuthorExist: action('check author existence'), isCreateAuthorOpen: false, handleCreateAuthor: action('handle open the create author confirmation dialog') })))
42
- .add('Add Authors Sidebar - Searching', () => (React.createElement(AddAuthorsSidebar, { nonAuthors: [], numberOfAddedAuthors: 1, isSearching: true, searchText: 'notFound', addedAuthors: [], handleDoneCancel: action('stop adding'), createAuthor: action('create author'), handleSearchChange: action('update search text'), handleSearchFocus: action('start searching'), searchResults: [], handleInvite: action('start invite'), authors: authors, isAuthorExist: action('check author existence'), isCreateAuthorOpen: false, handleCreateAuthor: action('handle open the create author confirmation dialog') })))
43
- .add('Add Authors Sidebar - Create author', () => (React.createElement(AddAuthorsSidebar, { nonAuthors: [], numberOfAddedAuthors: 1, isSearching: true, searchText: 'notFound', addedAuthors: [], handleDoneCancel: action('stop adding'), createAuthor: action('create author'), handleSearchChange: action('update search text'), handleSearchFocus: action('start searching'), searchResults: [], handleInvite: action('start invite'), authors: authors, isAuthorExist: action('check author existence'), isCreateAuthorOpen: true, handleCreateAuthor: action('handle open the create author confirmation dialog') })))
44
- .add('Search Authors Sidebar', () => (React.createElement(SearchAuthorsSidebar, { searchText: 'notFound', addedAuthors: [], createAuthor: action('create author'), searchResults: [], handleInvite: action('start invite'), authors: authors, isAuthorExist: action('check author existence'), handleCreateAuthor: action('handle open the create author confirmation dialog') })))
45
- .add('Search Authors Sidebar - search email', () => (React.createElement(SearchAuthorsSidebar, { searchText: 'notFound@atypon.com', addedAuthors: [], createAuthor: action('create author'), searchResults: [], handleInvite: action('start invite'), authors: authors, isAuthorExist: action('check author existence'), handleCreateAuthor: action('handle open the create author confirmation dialog') })))
46
- .add('Search Authors Sidebar - Search with results', () => (React.createElement(SearchAuthorsSidebar, { searchText: user.bibliographicName.given, addedAuthors: [], createAuthor: action('create author'), searchResults: [user], handleInvite: action('start invite'), authors: authors, isAuthorExist: action('check author existence'), handleCreateAuthor: action('handle open the create author confirmation dialog') })))
47
- .add('Add Author Button', () => (React.createElement(AddAuthorButton, { person: user, authors: authors, createAuthor: action('create author') })));
48
- //# sourceMappingURL=Metadata.stories.js.map