@manuscripts/article-editor 1.6.7 → 1.7.0

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 (345) hide show
  1. package/dist/cjs/src/components/Support.js +129 -0
  2. package/dist/cjs/src/components/Support.js.map +1 -0
  3. package/dist/cjs/src/components/inspector/ElementStyleInspector.js +14 -0
  4. package/dist/cjs/src/components/inspector/ElementStyleInspector.js.map +1 -0
  5. package/dist/cjs/src/components/inspector/StatisticsInspector.js +39 -0
  6. package/dist/cjs/src/components/inspector/StatisticsInspector.js.map +1 -0
  7. package/dist/cjs/src/components/library/CitationModel.js +210 -0
  8. package/dist/cjs/src/components/library/CitationModel.js.map +1 -0
  9. package/dist/cjs/src/components/library/CitationProperties.js +67 -0
  10. package/dist/cjs/src/components/library/CitationProperties.js.map +1 -0
  11. package/dist/cjs/src/components/library/ExternalSearch.js +156 -0
  12. package/dist/cjs/src/components/library/ExternalSearch.js.map +1 -0
  13. package/dist/cjs/src/components/library/GlobalLibrary.js +133 -0
  14. package/dist/cjs/src/components/library/GlobalLibrary.js.map +1 -0
  15. package/dist/cjs/src/components/library/LibraryCollectionCategories.js +53 -0
  16. package/dist/cjs/src/components/library/LibraryCollectionCategories.js.map +1 -0
  17. package/dist/cjs/src/components/library/LibraryForm.js +437 -0
  18. package/dist/cjs/src/components/library/LibraryForm.js.map +1 -0
  19. package/dist/cjs/src/components/library/LibraryItems.js +116 -0
  20. package/dist/cjs/src/components/library/LibraryItems.js.map +1 -0
  21. package/dist/cjs/src/components/library/LibraryPageContainer.js +107 -0
  22. package/dist/cjs/src/components/library/LibraryPageContainer.js.map +1 -0
  23. package/dist/cjs/src/components/library/LibrarySidebar.js +172 -0
  24. package/dist/cjs/src/components/library/LibrarySidebar.js.map +1 -0
  25. package/dist/cjs/src/components/library/Messages.js +25 -0
  26. package/dist/cjs/src/components/library/Messages.js.map +1 -0
  27. package/dist/cjs/src/components/library/ProjectLibrary.js +96 -0
  28. package/dist/cjs/src/components/library/ProjectLibrary.js.map +1 -0
  29. package/dist/cjs/src/components/metadata/HeaderFigure.js +147 -0
  30. package/dist/cjs/src/components/metadata/HeaderFigure.js.map +1 -0
  31. package/dist/cjs/src/components/metadata/Metadata.js +103 -0
  32. package/dist/cjs/src/components/metadata/Metadata.js.map +1 -0
  33. package/dist/cjs/src/components/metadata/MetadataContainer.js +203 -0
  34. package/dist/cjs/src/components/metadata/MetadataContainer.js.map +1 -0
  35. package/dist/cjs/src/components/metadata/TitleFieldContainer.js +56 -0
  36. package/dist/cjs/src/components/metadata/TitleFieldContainer.js.map +1 -0
  37. package/dist/cjs/src/components/projects/CategorisedKeywordsInput.js +439 -0
  38. package/dist/cjs/src/components/projects/CategorisedKeywordsInput.js.map +1 -0
  39. package/dist/cjs/src/components/projects/KeywordsInput.js +80 -0
  40. package/dist/cjs/src/components/projects/KeywordsInput.js.map +1 -0
  41. package/dist/cjs/src/components/projects/ManuscriptPageContainer.js +1 -2
  42. package/dist/cjs/src/components/projects/ManuscriptPageContainer.js.map +1 -1
  43. package/dist/cjs/src/components/projects/ManuscriptSidebar.js +4 -61
  44. package/dist/cjs/src/components/projects/ManuscriptSidebar.js.map +1 -1
  45. package/dist/cjs/src/components/projects/lean-workflow/ApplicationMenusLW.js +102 -0
  46. package/dist/cjs/src/components/projects/lean-workflow/ApplicationMenusLW.js.map +1 -0
  47. package/dist/cjs/src/components/projects/lean-workflow/CommentList.js +289 -0
  48. package/dist/cjs/src/components/projects/lean-workflow/CommentList.js.map +1 -0
  49. package/dist/cjs/src/components/projects/lean-workflow/CommentsTab.js +41 -0
  50. package/dist/cjs/src/components/projects/lean-workflow/CommentsTab.js.map +1 -0
  51. package/dist/cjs/src/components/projects/lean-workflow/ContentTab.js +66 -0
  52. package/dist/cjs/src/components/projects/lean-workflow/ContentTab.js.map +1 -0
  53. package/dist/cjs/src/components/projects/lean-workflow/EditorElement.js +252 -0
  54. package/dist/cjs/src/components/projects/lean-workflow/EditorElement.js.map +1 -0
  55. package/dist/cjs/src/components/projects/lean-workflow/ExceptionDialog.js +150 -0
  56. package/dist/cjs/src/components/projects/lean-workflow/ExceptionDialog.js.map +1 -0
  57. package/dist/cjs/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js +187 -0
  58. package/dist/cjs/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js.map +1 -0
  59. package/dist/cjs/src/components/projects/lean-workflow/SaveStatusController.js +53 -0
  60. package/dist/cjs/src/components/projects/lean-workflow/SaveStatusController.js.map +1 -0
  61. package/dist/cjs/src/components/projects/lean-workflow/TrackChangesStyles.js +106 -0
  62. package/dist/cjs/src/components/projects/lean-workflow/TrackChangesStyles.js.map +1 -0
  63. package/dist/cjs/src/components/projects/lean-workflow/icons/DeleteIcon.js +27 -0
  64. package/dist/cjs/src/components/projects/lean-workflow/icons/DeleteIcon.js.map +1 -0
  65. package/dist/cjs/src/components/projects/lean-workflow/icons/GroupIcon.js +29 -0
  66. package/dist/cjs/src/components/projects/lean-workflow/icons/GroupIcon.js.map +1 -0
  67. package/dist/cjs/src/components/projects/lean-workflow/icons/LinkIcon.js +23 -0
  68. package/dist/cjs/src/components/projects/lean-workflow/icons/LinkIcon.js.map +1 -0
  69. package/dist/cjs/src/components/projects/lean-workflow/icons/TemplateIcon.js +23 -0
  70. package/dist/cjs/src/components/projects/lean-workflow/icons/TemplateIcon.js.map +1 -0
  71. package/dist/cjs/src/components/projects/lean-workflow/provider/UserProvider.js +38 -0
  72. package/dist/cjs/src/components/projects/lean-workflow/provider/UserProvider.js.map +1 -0
  73. package/dist/cjs/src/components/requirements/RequirementContainer.js +58 -0
  74. package/dist/cjs/src/components/requirements/RequirementContainer.js.map +1 -0
  75. package/dist/cjs/src/components/requirements/RequirementsData.js +129 -0
  76. package/dist/cjs/src/components/requirements/RequirementsData.js.map +1 -0
  77. package/dist/cjs/src/components/requirements/RequirementsIcons.js +34 -0
  78. package/dist/cjs/src/components/requirements/RequirementsIcons.js.map +1 -0
  79. package/dist/cjs/src/components/requirements/RequirementsInspector.js +150 -0
  80. package/dist/cjs/src/components/requirements/RequirementsInspector.js.map +1 -0
  81. package/dist/cjs/src/components/requirements/RequirementsList.js +84 -0
  82. package/dist/cjs/src/components/requirements/RequirementsList.js.map +1 -0
  83. package/dist/cjs/src/components/requirements/SectionValidations.js +47 -0
  84. package/dist/cjs/src/components/requirements/SectionValidations.js.map +1 -0
  85. package/dist/cjs/src/components/track-changes/utils.js +2 -87
  86. package/dist/cjs/src/components/track-changes/utils.js.map +1 -1
  87. package/dist/cjs/src/hooks/use-create-editor.js +1 -9
  88. package/dist/cjs/src/hooks/use-create-editor.js.map +1 -1
  89. package/dist/cjs/src/hooks/use-requirements-validation.js +87 -0
  90. package/dist/cjs/src/hooks/use-requirements-validation.js.map +1 -0
  91. package/dist/cjs/src/hooks/use-tracked-model-management.js +4 -6
  92. package/dist/cjs/src/hooks/use-tracked-model-management.js.map +1 -1
  93. package/dist/cjs/src/lib/apollo.js +41 -0
  94. package/dist/cjs/src/lib/apollo.js.map +1 -0
  95. package/dist/cjs/src/lib/lean-workflow-gql.js +40 -0
  96. package/dist/cjs/src/lib/lean-workflow-gql.js.map +1 -0
  97. package/dist/cjs/src/lib/replace-attachments-ids.js +49 -0
  98. package/dist/cjs/src/lib/replace-attachments-ids.js.map +1 -0
  99. package/dist/cjs/src/postgres-data/buildUtilities.js +0 -10
  100. package/dist/cjs/src/postgres-data/buildUtilities.js.map +1 -1
  101. package/dist/cjs/src/quarterback/usePouchStore.js +1 -1
  102. package/dist/cjs/src/quarterback/usePouchStore.js.map +1 -1
  103. package/dist/cjs/src/store/Store.js.map +1 -1
  104. package/dist/cjs/src/store/index.js +0 -1
  105. package/dist/cjs/src/store/index.js.map +1 -1
  106. package/dist/cjs/stories/Citation.stories.js +43 -0
  107. package/dist/cjs/stories/Citation.stories.js.map +1 -0
  108. package/dist/cjs/stories/LibrarySidebar.stories.js +188 -0
  109. package/dist/cjs/stories/LibrarySidebar.stories.js.map +1 -0
  110. package/dist/cjs/stories/Metadata.stories.js +53 -0
  111. package/dist/cjs/stories/Metadata.stories.js.map +1 -0
  112. package/dist/cjs/stories/Notification.stories.js +62 -0
  113. package/dist/cjs/stories/Notification.stories.js.map +1 -0
  114. package/dist/cjs/stories/Page.stories.js +50 -0
  115. package/dist/cjs/stories/Page.stories.js.map +1 -0
  116. package/dist/cjs/stories/Panel.stories.js +62 -0
  117. package/dist/cjs/stories/Panel.stories.js.map +1 -0
  118. package/dist/cjs/stories/Placeholders.stories.js +23 -0
  119. package/dist/cjs/stories/Placeholders.stories.js.map +1 -0
  120. package/dist/cjs/stories/PopperButtons.stories.js +27 -0
  121. package/dist/cjs/stories/PopperButtons.stories.js.map +1 -0
  122. package/dist/cjs/stories/Progress.stories.js +25 -0
  123. package/dist/cjs/stories/Progress.stories.js.map +1 -0
  124. package/dist/cjs/stories/ProgressIndicator.stories.js +33 -0
  125. package/dist/cjs/stories/ProgressIndicator.stories.js.map +1 -0
  126. package/dist/cjs/stories/ReloadDialog.stories.js +21 -0
  127. package/dist/cjs/stories/ReloadDialog.stories.js.map +1 -0
  128. package/dist/cjs/stories/RequirementsInspector.stories.js +159 -0
  129. package/dist/cjs/stories/RequirementsInspector.stories.js.map +1 -0
  130. package/dist/cjs/stories/RequirmentsList.stories.js +36 -0
  131. package/dist/cjs/stories/RequirmentsList.stories.js.map +1 -0
  132. package/dist/cjs/stories/SelectField.stories.js +34 -0
  133. package/dist/cjs/stories/SelectField.stories.js.map +1 -0
  134. package/dist/cjs/stories/Support.stories.js +32 -0
  135. package/dist/cjs/stories/Support.stories.js.map +1 -0
  136. package/dist/cjs/stories/data/doc.js +27 -0
  137. package/dist/cjs/stories/data/doc.js.map +1 -0
  138. package/dist/cjs/stories/data/validationData.js +44 -0
  139. package/dist/cjs/stories/data/validationData.js.map +1 -0
  140. package/dist/es/src/components/Support.js +100 -0
  141. package/dist/es/src/components/Support.js.map +1 -0
  142. package/dist/es/src/components/inspector/ElementStyleInspector.js +13 -0
  143. package/dist/es/src/components/inspector/ElementStyleInspector.js.map +1 -0
  144. package/dist/es/src/components/inspector/StatisticsInspector.js +32 -0
  145. package/dist/es/src/components/inspector/StatisticsInspector.js.map +1 -0
  146. package/dist/es/src/components/library/CitationModel.js +180 -0
  147. package/dist/es/src/components/library/CitationModel.js.map +1 -0
  148. package/dist/es/src/components/library/CitationProperties.js +60 -0
  149. package/dist/es/src/components/library/CitationProperties.js.map +1 -0
  150. package/dist/es/src/components/library/ExternalSearch.js +127 -0
  151. package/dist/es/src/components/library/ExternalSearch.js.map +1 -0
  152. package/dist/es/src/components/library/GlobalLibrary.js +104 -0
  153. package/dist/es/src/components/library/GlobalLibrary.js.map +1 -0
  154. package/dist/es/src/components/library/LibraryCollectionCategories.js +45 -0
  155. package/dist/es/src/components/library/LibraryCollectionCategories.js.map +1 -0
  156. package/dist/es/src/components/library/LibraryForm.js +409 -0
  157. package/dist/es/src/components/library/LibraryForm.js.map +1 -0
  158. package/dist/es/src/components/library/LibraryItems.js +86 -0
  159. package/dist/es/src/components/library/LibraryItems.js.map +1 -0
  160. package/dist/es/src/components/library/LibraryPageContainer.js +80 -0
  161. package/dist/es/src/components/library/LibraryPageContainer.js.map +1 -0
  162. package/dist/es/src/components/library/LibrarySidebar.js +165 -0
  163. package/dist/es/src/components/library/LibrarySidebar.js.map +1 -0
  164. package/dist/es/src/components/library/Messages.js +18 -0
  165. package/dist/es/src/components/library/Messages.js.map +1 -0
  166. package/dist/es/src/components/library/ProjectLibrary.js +67 -0
  167. package/dist/es/src/components/library/ProjectLibrary.js.map +1 -0
  168. package/dist/es/src/components/metadata/HeaderFigure.js +117 -0
  169. package/dist/es/src/components/metadata/HeaderFigure.js.map +1 -0
  170. package/dist/es/src/components/metadata/Metadata.js +73 -0
  171. package/dist/es/src/components/metadata/Metadata.js.map +1 -0
  172. package/dist/es/src/components/metadata/MetadataContainer.js +178 -0
  173. package/dist/es/src/components/metadata/MetadataContainer.js.map +1 -0
  174. package/dist/es/src/components/metadata/TitleFieldContainer.js +49 -0
  175. package/dist/es/src/components/metadata/TitleFieldContainer.js.map +1 -0
  176. package/dist/es/src/components/projects/CategorisedKeywordsInput.js +409 -0
  177. package/dist/es/src/components/projects/CategorisedKeywordsInput.js.map +1 -0
  178. package/dist/es/src/components/projects/KeywordsInput.js +73 -0
  179. package/dist/es/src/components/projects/KeywordsInput.js.map +1 -0
  180. package/dist/es/src/components/projects/ManuscriptPageContainer.js +1 -2
  181. package/dist/es/src/components/projects/ManuscriptPageContainer.js.map +1 -1
  182. package/dist/es/src/components/projects/ManuscriptSidebar.js +5 -39
  183. package/dist/es/src/components/projects/ManuscriptSidebar.js.map +1 -1
  184. package/dist/es/src/components/projects/lean-workflow/ApplicationMenusLW.js +72 -0
  185. package/dist/es/src/components/projects/lean-workflow/ApplicationMenusLW.js.map +1 -0
  186. package/dist/es/src/components/projects/lean-workflow/CommentList.js +259 -0
  187. package/dist/es/src/components/projects/lean-workflow/CommentList.js.map +1 -0
  188. package/dist/es/src/components/projects/lean-workflow/CommentsTab.js +34 -0
  189. package/dist/es/src/components/projects/lean-workflow/CommentsTab.js.map +1 -0
  190. package/dist/es/src/components/projects/lean-workflow/ContentTab.js +59 -0
  191. package/dist/es/src/components/projects/lean-workflow/ContentTab.js.map +1 -0
  192. package/dist/es/src/components/projects/lean-workflow/EditorElement.js +227 -0
  193. package/dist/es/src/components/projects/lean-workflow/EditorElement.js.map +1 -0
  194. package/dist/es/src/components/projects/lean-workflow/ExceptionDialog.js +120 -0
  195. package/dist/es/src/components/projects/lean-workflow/ExceptionDialog.js.map +1 -0
  196. package/dist/es/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js +159 -0
  197. package/dist/es/src/components/projects/lean-workflow/ManuscriptPageContainerLW.js.map +1 -0
  198. package/dist/es/src/components/projects/lean-workflow/SaveStatusController.js +23 -0
  199. package/dist/es/src/components/projects/lean-workflow/SaveStatusController.js.map +1 -0
  200. package/dist/es/src/components/projects/lean-workflow/TrackChangesStyles.js +99 -0
  201. package/dist/es/src/components/projects/lean-workflow/TrackChangesStyles.js.map +1 -0
  202. package/dist/es/src/components/projects/lean-workflow/icons/DeleteIcon.js +20 -0
  203. package/dist/es/src/components/projects/lean-workflow/icons/DeleteIcon.js.map +1 -0
  204. package/dist/es/src/components/projects/lean-workflow/icons/GroupIcon.js +22 -0
  205. package/dist/es/src/components/projects/lean-workflow/icons/GroupIcon.js.map +1 -0
  206. package/dist/es/src/components/projects/lean-workflow/icons/LinkIcon.js +16 -0
  207. package/dist/es/src/components/projects/lean-workflow/icons/LinkIcon.js.map +1 -0
  208. package/dist/es/src/components/projects/lean-workflow/icons/TemplateIcon.js +16 -0
  209. package/dist/es/src/components/projects/lean-workflow/icons/TemplateIcon.js.map +1 -0
  210. package/dist/es/src/components/projects/lean-workflow/provider/UserProvider.js +11 -0
  211. package/dist/es/src/components/projects/lean-workflow/provider/UserProvider.js.map +1 -0
  212. package/dist/es/src/components/requirements/RequirementContainer.js +51 -0
  213. package/dist/es/src/components/requirements/RequirementContainer.js.map +1 -0
  214. package/dist/es/src/components/requirements/RequirementsData.js +99 -0
  215. package/dist/es/src/components/requirements/RequirementsData.js.map +1 -0
  216. package/dist/es/src/components/requirements/RequirementsIcons.js +24 -0
  217. package/dist/es/src/components/requirements/RequirementsIcons.js.map +1 -0
  218. package/dist/es/src/components/requirements/RequirementsInspector.js +118 -0
  219. package/dist/es/src/components/requirements/RequirementsInspector.js.map +1 -0
  220. package/dist/es/src/components/requirements/RequirementsList.js +54 -0
  221. package/dist/es/src/components/requirements/RequirementsList.js.map +1 -0
  222. package/dist/es/src/components/requirements/SectionValidations.js +40 -0
  223. package/dist/es/src/components/requirements/SectionValidations.js.map +1 -0
  224. package/dist/es/src/components/track-changes/utils.js +0 -83
  225. package/dist/es/src/components/track-changes/utils.js.map +1 -1
  226. package/dist/es/src/hooks/use-create-editor.js +1 -9
  227. package/dist/es/src/hooks/use-create-editor.js.map +1 -1
  228. package/dist/es/src/hooks/use-requirements-validation.js +83 -0
  229. package/dist/es/src/hooks/use-requirements-validation.js.map +1 -0
  230. package/dist/es/src/hooks/use-tracked-model-management.js +6 -8
  231. package/dist/es/src/hooks/use-tracked-model-management.js.map +1 -1
  232. package/dist/es/src/lib/apollo.js +35 -0
  233. package/dist/es/src/lib/apollo.js.map +1 -0
  234. package/dist/es/src/lib/lean-workflow-gql.js +33 -0
  235. package/dist/es/src/lib/lean-workflow-gql.js.map +1 -0
  236. package/dist/es/src/lib/replace-attachments-ids.js +44 -0
  237. package/dist/es/src/lib/replace-attachments-ids.js.map +1 -0
  238. package/dist/es/src/postgres-data/buildUtilities.js +0 -10
  239. package/dist/es/src/postgres-data/buildUtilities.js.map +1 -1
  240. package/dist/es/src/quarterback/usePouchStore.js +1 -1
  241. package/dist/es/src/quarterback/usePouchStore.js.map +1 -1
  242. package/dist/es/src/store/Store.js.map +1 -1
  243. package/dist/es/src/store/index.js +0 -1
  244. package/dist/es/src/store/index.js.map +1 -1
  245. package/dist/es/stories/Citation.stories.js +38 -0
  246. package/dist/es/stories/Citation.stories.js.map +1 -0
  247. package/dist/es/stories/LibrarySidebar.stories.js +183 -0
  248. package/dist/es/stories/LibrarySidebar.stories.js.map +1 -0
  249. package/dist/es/stories/Metadata.stories.js +48 -0
  250. package/dist/es/stories/Metadata.stories.js.map +1 -0
  251. package/dist/es/stories/Notification.stories.js +57 -0
  252. package/dist/es/stories/Notification.stories.js.map +1 -0
  253. package/dist/es/stories/Page.stories.js +45 -0
  254. package/dist/es/stories/Page.stories.js.map +1 -0
  255. package/dist/es/stories/Panel.stories.js +57 -0
  256. package/dist/es/stories/Panel.stories.js.map +1 -0
  257. package/dist/es/stories/Placeholders.stories.js +18 -0
  258. package/dist/es/stories/Placeholders.stories.js.map +1 -0
  259. package/dist/es/stories/PopperButtons.stories.js +22 -0
  260. package/dist/es/stories/PopperButtons.stories.js.map +1 -0
  261. package/dist/es/stories/Progress.stories.js +20 -0
  262. package/dist/es/stories/Progress.stories.js.map +1 -0
  263. package/dist/es/stories/ProgressIndicator.stories.js +28 -0
  264. package/dist/es/stories/ProgressIndicator.stories.js.map +1 -0
  265. package/dist/es/stories/ReloadDialog.stories.js +16 -0
  266. package/dist/es/stories/ReloadDialog.stories.js.map +1 -0
  267. package/dist/es/stories/RequirementsInspector.stories.js +154 -0
  268. package/dist/es/stories/RequirementsInspector.stories.js.map +1 -0
  269. package/dist/es/stories/RequirmentsList.stories.js +31 -0
  270. package/dist/es/stories/RequirmentsList.stories.js.map +1 -0
  271. package/dist/es/stories/SelectField.stories.js +29 -0
  272. package/dist/es/stories/SelectField.stories.js.map +1 -0
  273. package/dist/es/stories/Support.stories.js +27 -0
  274. package/dist/es/stories/Support.stories.js.map +1 -0
  275. package/dist/es/stories/data/doc.js +21 -0
  276. package/dist/es/stories/data/doc.js.map +1 -0
  277. package/dist/es/stories/data/validationData.js +41 -0
  278. package/dist/es/stories/data/validationData.js.map +1 -0
  279. package/dist/types/src/components/Support.d.ts +13 -0
  280. package/dist/types/src/components/inspector/ElementStyleInspector.d.ts +13 -0
  281. package/dist/types/src/components/inspector/StatisticsInspector.d.ts +17 -0
  282. package/dist/types/src/components/library/CitationModel.d.ts +18 -0
  283. package/dist/types/src/components/library/CitationProperties.d.ts +17 -0
  284. package/dist/types/src/components/library/ExternalSearch.d.ts +19 -0
  285. package/dist/types/src/components/library/GlobalLibrary.d.ts +20 -0
  286. package/dist/types/src/components/library/LibraryCollectionCategories.d.ts +15 -0
  287. package/dist/types/src/components/library/LibraryForm.d.ts +20 -0
  288. package/dist/types/src/components/library/LibraryItems.d.ts +12 -0
  289. package/dist/types/src/components/library/LibraryPageContainer.d.ts +14 -0
  290. package/dist/types/src/components/library/LibrarySidebar.d.ts +21 -0
  291. package/dist/types/src/components/library/Messages.d.ts +15 -0
  292. package/dist/types/src/components/library/ProjectLibrary.d.ts +23 -0
  293. package/dist/types/src/components/metadata/HeaderFigure.d.ts +13 -0
  294. package/dist/types/src/components/metadata/Metadata.d.ts +60 -0
  295. package/dist/types/src/components/metadata/MetadataContainer.d.ts +21 -0
  296. package/dist/types/src/components/metadata/TitleFieldContainer.d.ts +19 -0
  297. package/dist/types/src/components/projects/CategorisedKeywordsInput.d.ts +6 -0
  298. package/dist/types/src/components/projects/KeywordsInput.d.ts +17 -0
  299. package/dist/types/src/components/projects/ManuscriptSidebar.d.ts +4 -9
  300. package/dist/types/src/components/projects/lean-workflow/ApplicationMenusLW.d.ts +20 -0
  301. package/dist/types/src/components/projects/lean-workflow/CommentList.d.ts +18 -0
  302. package/dist/types/src/components/projects/lean-workflow/CommentsTab.d.ts +7 -0
  303. package/dist/types/src/components/projects/lean-workflow/ContentTab.d.ts +6 -0
  304. package/dist/types/src/components/projects/lean-workflow/EditorElement.d.ts +18 -0
  305. package/dist/types/src/components/projects/lean-workflow/ExceptionDialog.d.ts +4 -0
  306. package/dist/types/src/components/projects/lean-workflow/ManuscriptPageContainerLW.d.ts +18 -0
  307. package/dist/types/src/components/projects/lean-workflow/SaveStatusController.d.ts +17 -0
  308. package/dist/types/src/components/projects/lean-workflow/TrackChangesStyles.d.ts +13 -0
  309. package/dist/types/src/components/projects/lean-workflow/icons/DeleteIcon.d.ts +13 -0
  310. package/dist/types/src/components/projects/lean-workflow/icons/GroupIcon.d.ts +15 -0
  311. package/dist/types/src/components/projects/lean-workflow/icons/LinkIcon.d.ts +13 -0
  312. package/dist/types/src/components/projects/lean-workflow/icons/TemplateIcon.d.ts +13 -0
  313. package/dist/types/src/components/projects/lean-workflow/provider/UserProvider.d.ts +22 -0
  314. package/dist/types/src/components/requirements/RequirementContainer.d.ts +19 -0
  315. package/dist/types/src/components/requirements/RequirementsData.d.ts +21 -0
  316. package/dist/types/src/components/requirements/RequirementsIcons.d.ts +16 -0
  317. package/dist/types/src/components/requirements/RequirementsInspector.d.ts +23 -0
  318. package/dist/types/src/components/requirements/RequirementsList.d.ts +16 -0
  319. package/dist/types/src/components/requirements/SectionValidations.d.ts +21 -0
  320. package/dist/types/src/components/track-changes/utils.d.ts +11 -2
  321. package/dist/types/src/hooks/use-requirements-validation.d.ts +22 -0
  322. package/dist/types/src/lib/apollo.d.ts +13 -0
  323. package/dist/types/src/lib/lean-workflow-gql.d.ts +66 -0
  324. package/dist/types/src/lib/replace-attachments-ids.d.ts +15 -0
  325. package/dist/types/src/postgres-data/buildUtilities.d.ts +0 -8
  326. package/dist/types/src/store/Store.d.ts +0 -2
  327. package/dist/types/src/store/index.d.ts +0 -1
  328. package/dist/types/stories/Citation.stories.d.ts +12 -0
  329. package/dist/types/stories/LibrarySidebar.stories.d.ts +12 -0
  330. package/dist/types/stories/Metadata.stories.d.ts +12 -0
  331. package/dist/types/stories/Notification.stories.d.ts +12 -0
  332. package/dist/types/stories/Page.stories.d.ts +12 -0
  333. package/dist/types/stories/Panel.stories.d.ts +12 -0
  334. package/dist/types/stories/Placeholders.stories.d.ts +12 -0
  335. package/dist/types/stories/PopperButtons.stories.d.ts +12 -0
  336. package/dist/types/stories/Progress.stories.d.ts +12 -0
  337. package/dist/types/stories/ProgressIndicator.stories.d.ts +12 -0
  338. package/dist/types/stories/ReloadDialog.stories.d.ts +12 -0
  339. package/dist/types/stories/RequirementsInspector.stories.d.ts +12 -0
  340. package/dist/types/stories/RequirmentsList.stories.d.ts +12 -0
  341. package/dist/types/stories/SelectField.stories.d.ts +12 -0
  342. package/dist/types/stories/Support.stories.d.ts +12 -0
  343. package/dist/types/stories/data/doc.d.ts +14 -0
  344. package/dist/types/stories/data/validationData.d.ts +13 -0
  345. package/package.json +6 -16
@@ -0,0 +1,28 @@
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 { storiesOf } from '@storybook/react';
13
+ import React from 'react';
14
+ import { IndicatorKind, IndicatorSize, ProgressIndicator, } from '../src/components/ProgressIndicator';
15
+ storiesOf('Progress Indicator', module)
16
+ .add('Determinate', () => (React.createElement("div", null,
17
+ React.createElement(ProgressIndicator, { isDeterminate: true, progress: 0.1, size: IndicatorSize.Large, symbols: IndicatorKind.Author }),
18
+ React.createElement(ProgressIndicator, { isDeterminate: true, progress: 0.3, size: IndicatorSize.Large, symbols: IndicatorKind.ContributorDetail }),
19
+ React.createElement(ProgressIndicator, { isDeterminate: true, progress: 0.5, size: IndicatorSize.Large, symbols: IndicatorKind.Contributors }),
20
+ React.createElement(ProgressIndicator, { isDeterminate: true, progress: 0.7, size: IndicatorSize.Large, symbols: IndicatorKind.Project }),
21
+ React.createElement(ProgressIndicator, { isDeterminate: true, progress: 0.9, size: IndicatorSize.Large, symbols: IndicatorKind.ReferenceLibrary }))))
22
+ .add('Indeterminate', () => (React.createElement("div", null,
23
+ React.createElement(ProgressIndicator, { isDeterminate: false, size: IndicatorSize.Large, symbols: IndicatorKind.Author }),
24
+ React.createElement(ProgressIndicator, { isDeterminate: false, size: IndicatorSize.Large, symbols: IndicatorKind.ContributorDetail }),
25
+ React.createElement(ProgressIndicator, { isDeterminate: false, size: IndicatorSize.Large, symbols: IndicatorKind.Contributors }),
26
+ React.createElement(ProgressIndicator, { isDeterminate: false, size: IndicatorSize.Large, symbols: IndicatorKind.Project }),
27
+ React.createElement(ProgressIndicator, { isDeterminate: false, size: IndicatorSize.Large, symbols: IndicatorKind.ReferenceLibrary }))));
28
+ //# sourceMappingURL=ProgressIndicator.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressIndicator.stories.js","sourceRoot":"","sources":["../../../stories/ProgressIndicator.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,aAAa,EACb,aAAa,EACb,iBAAiB,GAClB,MAAM,qCAAqC,CAAA;AAE5C,SAAS,CAAC,oBAAoB,EAAE,MAAM,CAAC;KACpC,GAAG,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,CACxB;IACE,oBAAC,iBAAiB,IAChB,aAAa,EAAE,IAAI,EACnB,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,MAAM,GAC7B;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,IAAI,EACnB,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,iBAAiB,GACxC;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,IAAI,EACnB,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,YAAY,GACnC;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,IAAI,EACnB,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,OAAO,GAC9B;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,IAAI,EACnB,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,gBAAgB,GACvC,CACE,CACP,CAAC;KACD,GAAG,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,CAC1B;IACE,oBAAC,iBAAiB,IAChB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,MAAM,GAC7B;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,iBAAiB,GACxC;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,YAAY,GACnC;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,OAAO,GAC9B;IACF,oBAAC,iBAAiB,IAChB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,aAAa,CAAC,KAAK,EACzB,OAAO,EAAE,aAAa,CAAC,gBAAgB,GACvC,CACE,CACP,CAAC,CAAA"}
@@ -0,0 +1,16 @@
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 { storiesOf } from '@storybook/react';
13
+ import React from 'react';
14
+ import { ReloadDialog } from '../src/components/projects/ReloadDialog';
15
+ storiesOf('Reload Dialog', module).add('with message', () => (React.createElement(ReloadDialog, { message: 'There was an error during data preparation.' })));
16
+ //# sourceMappingURL=ReloadDialog.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReloadDialog.stories.js","sourceRoot":"","sources":["../../../stories/ReloadDialog.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AAEtE,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,EAAE,CAAC,CAC3D,oBAAC,YAAY,IAAC,OAAO,EAAE,6CAA6C,GAAI,CACzE,CAAC,CAAA"}
@@ -0,0 +1,154 @@
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 { RequirementsProvider } from '@manuscripts/body-editor';
13
+ import { ObjectTypes, } from '@manuscripts/json-schema';
14
+ import { hasObjectType } from '@manuscripts/transform';
15
+ import { storiesOf } from '@storybook/react';
16
+ import React from 'react';
17
+ import { RequirementsInspector } from '../src/components/requirements/RequirementsInspector';
18
+ import { GenericStore, GenericStoreProvider } from '../src/store';
19
+ import { modelMap } from './data/doc';
20
+ const maximumManuscriptWordCountRequirement = {
21
+ _id: 'MaximumManuscriptWordCountRequirement:1',
22
+ containerID: 'MPProject:1',
23
+ manuscriptID: 'MPManuscript:1',
24
+ objectType: 'MPMaximumManuscriptWordCountRequirement',
25
+ createdAt: 0,
26
+ updatedAt: 0,
27
+ sessionID: 'foo',
28
+ severity: 0,
29
+ count: 1000,
30
+ };
31
+ modelMap.set(maximumManuscriptWordCountRequirement._id, maximumManuscriptWordCountRequirement);
32
+ const minimumManuscriptWordCountRequirement = {
33
+ _id: 'MinimumManuscriptWordCountRequirement:1',
34
+ containerID: 'MPProject:1',
35
+ manuscriptID: 'MPManuscript:1',
36
+ objectType: 'MPMinimumManuscriptWordCountRequirement',
37
+ createdAt: 0,
38
+ updatedAt: 0,
39
+ sessionID: 'foo',
40
+ severity: 0,
41
+ count: 100,
42
+ };
43
+ modelMap.set(minimumManuscriptWordCountRequirement._id, minimumManuscriptWordCountRequirement);
44
+ const maximumManuscriptCharacterCountRequirement = {
45
+ _id: 'MaximumManuscriptCharacterCountRequirement:1',
46
+ containerID: 'MPProject:1',
47
+ manuscriptID: 'MPManuscript:1',
48
+ objectType: 'MPMaximumManuscriptCharacterCountRequirement',
49
+ createdAt: 0,
50
+ updatedAt: 0,
51
+ sessionID: 'foo',
52
+ severity: 0,
53
+ count: 10000,
54
+ };
55
+ modelMap.set(maximumManuscriptCharacterCountRequirement._id, maximumManuscriptCharacterCountRequirement);
56
+ const minimumManuscriptCharacterCountRequirement = {
57
+ _id: 'MinimumManuscriptCharacterCountRequirement:1',
58
+ containerID: 'MPProject:1',
59
+ manuscriptID: 'MPManuscript:1',
60
+ objectType: 'MPMinimumManuscriptCharacterCountRequirement',
61
+ createdAt: 0,
62
+ updatedAt: 0,
63
+ sessionID: 'foo',
64
+ severity: 0,
65
+ count: 1000,
66
+ };
67
+ modelMap.set(minimumManuscriptCharacterCountRequirement._id, minimumManuscriptCharacterCountRequirement);
68
+ const maximumSectionWordCountRequirement = {
69
+ _id: 'MaximumSectionWordCountRequirement:1',
70
+ containerID: 'MPProject:1',
71
+ manuscriptID: 'MPManuscript:1',
72
+ objectType: 'MPMaximumSectionWordCountRequirement',
73
+ createdAt: 0,
74
+ updatedAt: 0,
75
+ sessionID: 'foo',
76
+ severity: 0,
77
+ count: 1000,
78
+ };
79
+ modelMap.set(maximumSectionWordCountRequirement._id, maximumSectionWordCountRequirement);
80
+ const minimumSectionWordCountRequirement = {
81
+ _id: 'MinimumSectionWordCountRequirement:1',
82
+ containerID: 'MPProject:1',
83
+ manuscriptID: 'MPManuscript:1',
84
+ objectType: 'MPMinimumSectionWordCountRequirement',
85
+ createdAt: 0,
86
+ updatedAt: 0,
87
+ sessionID: 'foo',
88
+ severity: 0,
89
+ count: 100,
90
+ };
91
+ modelMap.set(minimumSectionWordCountRequirement._id, minimumSectionWordCountRequirement);
92
+ const maximumSectionCharacterCountRequirement = {
93
+ _id: 'MaximumSectionCharacterCountRequirement:1',
94
+ containerID: 'MPProject:1',
95
+ manuscriptID: 'MPManuscript:1',
96
+ objectType: 'MPMaximumSectionCharacterCountRequirement',
97
+ createdAt: 0,
98
+ updatedAt: 0,
99
+ sessionID: 'foo',
100
+ severity: 0,
101
+ count: 10000,
102
+ };
103
+ modelMap.set(maximumSectionCharacterCountRequirement._id, maximumSectionCharacterCountRequirement);
104
+ const minimumSectionCharacterCountRequirement = {
105
+ _id: 'MinimumSectionCharacterCountRequirement:1',
106
+ containerID: 'MPProject:1',
107
+ manuscriptID: 'MPManuscript:1',
108
+ objectType: 'MPMinimumSectionCharacterCountRequirement',
109
+ createdAt: 0,
110
+ updatedAt: 0,
111
+ sessionID: 'foo',
112
+ severity: 0,
113
+ count: 1000,
114
+ };
115
+ modelMap.set(minimumSectionCharacterCountRequirement._id, minimumSectionCharacterCountRequirement);
116
+ const isSection = (model) => model.objectType === ObjectTypes.Section;
117
+ for (const model of modelMap.values()) {
118
+ if (isSection(model)) {
119
+ // model.maxWordCountRequirement = maximumSectionWordCountRequirement._id
120
+ model.minWordCountRequirement = minimumSectionWordCountRequirement._id;
121
+ model.maxCharacterCountRequirement =
122
+ maximumSectionCharacterCountRequirement._id;
123
+ // model.minCharacterCountRequirement =
124
+ // minimumSectionCharacterCountRequirement._id
125
+ }
126
+ }
127
+ const isManuscript = hasObjectType(ObjectTypes.Manuscript);
128
+ const manuscript = [...modelMap.values()].find(isManuscript);
129
+ manuscript.maxWordCountRequirement = maximumManuscriptWordCountRequirement._id;
130
+ // manuscript.minWordCountRequirement = minimumManuscriptWordCountRequirement._id
131
+ // manuscript.maxCharacterCountRequirement =
132
+ // maximumManuscriptCharacterCountRequirement._id
133
+ // manuscript.minCharacterCountRequirement =
134
+ // minimumManuscriptCharacterCountRequirement._id
135
+ // const prototypeId =
136
+ // 'MPManuscriptTemplate:www-zotero-org-styles-bmc-cell-biology-BMC-Cell-Biology-Journal-Publication'
137
+ modelMap.set(manuscript._id, manuscript);
138
+ const bulkUpdate = async (items) => {
139
+ return await new Promise((resolve, reject) => {
140
+ resolve();
141
+ });
142
+ };
143
+ const storeState = {
144
+ manuscript,
145
+ modelMap,
146
+ bulkUpdate,
147
+ };
148
+ const store = new GenericStore(undefined, undefined, storeState);
149
+ storiesOf('Inspector/Requirements', module).add('validations', () => {
150
+ return (React.createElement(GenericStoreProvider, { store: store },
151
+ React.createElement(RequirementsProvider, { modelMap: modelMap },
152
+ React.createElement(RequirementsInspector, null))));
153
+ });
154
+ //# sourceMappingURL=RequirementsInspector.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequirementsInspector.stories.js","sourceRoot":"","sources":["../../../stories/RequirementsInspector.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAWL,WAAW,GAEZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAkB,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAA;AAC5F,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,qCAAqC,GACzC;IACE,GAAG,EAAE,yCAAyC;IAC9C,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,yCAAyC;IACrD,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,IAAI;CACZ,CAAA;AACH,QAAQ,CAAC,GAAG,CACV,qCAAqC,CAAC,GAAG,EACzC,qCAAqC,CACtC,CAAA;AAED,MAAM,qCAAqC,GACzC;IACE,GAAG,EAAE,yCAAyC;IAC9C,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,yCAAyC;IACrD,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,GAAG;CACX,CAAA;AACH,QAAQ,CAAC,GAAG,CACV,qCAAqC,CAAC,GAAG,EACzC,qCAAqC,CACtC,CAAA;AAED,MAAM,0CAA0C,GAC9C;IACE,GAAG,EAAE,8CAA8C;IACnD,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,8CAA8C;IAC1D,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,KAAK;CACb,CAAA;AACH,QAAQ,CAAC,GAAG,CACV,0CAA0C,CAAC,GAAG,EAC9C,0CAA0C,CAC3C,CAAA;AAED,MAAM,0CAA0C,GAC9C;IACE,GAAG,EAAE,8CAA8C;IACnD,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,8CAA8C;IAC1D,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,IAAI;CACZ,CAAA;AACH,QAAQ,CAAC,GAAG,CACV,0CAA0C,CAAC,GAAG,EAC9C,0CAA0C,CAC3C,CAAA;AAED,MAAM,kCAAkC,GAAuC;IAC7E,GAAG,EAAE,sCAAsC;IAC3C,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,sCAAsC;IAClD,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,IAAI;CACZ,CAAA;AACD,QAAQ,CAAC,GAAG,CACV,kCAAkC,CAAC,GAAG,EACtC,kCAAkC,CACnC,CAAA;AAED,MAAM,kCAAkC,GAAuC;IAC7E,GAAG,EAAE,sCAAsC;IAC3C,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,sCAAsC;IAClD,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,GAAG;CACX,CAAA;AACD,QAAQ,CAAC,GAAG,CACV,kCAAkC,CAAC,GAAG,EACtC,kCAAkC,CACnC,CAAA;AAED,MAAM,uCAAuC,GAC3C;IACE,GAAG,EAAE,2CAA2C;IAChD,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,2CAA2C;IACvD,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,KAAK;CACb,CAAA;AACH,QAAQ,CAAC,GAAG,CACV,uCAAuC,CAAC,GAAG,EAC3C,uCAAuC,CACxC,CAAA;AAED,MAAM,uCAAuC,GAC3C;IACE,GAAG,EAAE,2CAA2C;IAChD,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,UAAU,EAAE,2CAA2C;IACvD,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,IAAI;CACZ,CAAA;AACH,QAAQ,CAAC,GAAG,CACV,uCAAuC,CAAC,GAAG,EAC3C,uCAAuC,CACxC,CAAA;AAED,MAAM,SAAS,GAAG,CAAC,KAAY,EAAoB,EAAE,CACnD,KAAK,CAAC,UAAU,KAAK,WAAW,CAAC,OAAO,CAAA;AAE1C,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,MAAM,EAAE,EAAE;IACrC,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE;QACpB,yEAAyE;QACzE,KAAK,CAAC,uBAAuB,GAAG,kCAAkC,CAAC,GAAG,CAAA;QACtE,KAAK,CAAC,4BAA4B;YAChC,uCAAuC,CAAC,GAAG,CAAA;QAC7C,uCAAuC;QACvC,gDAAgD;KACjD;CACF;AAED,MAAM,YAAY,GAAG,aAAa,CAAa,WAAW,CAAC,UAAU,CAAC,CAAA;AAEtE,MAAM,UAAU,GAAG,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAe,CAAA;AAE1E,UAAU,CAAC,uBAAuB,GAAG,qCAAqC,CAAC,GAAG,CAAA;AAC9E,iFAAiF;AACjF,4CAA4C;AAC5C,mDAAmD;AACnD,4CAA4C;AAC5C,mDAAmD;AAEnD,sBAAsB;AACtB,uGAAuG;AAEvG,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;AAExC,MAAM,UAAU,GAAG,KAAK,EAAE,KAA4B,EAAiB,EAAE;IACvE,OAAO,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACjD,OAAO,EAAE,CAAA;IACX,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,UAAU;IACV,QAAQ;IACR,UAAU;CACX,CAAA;AACD,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAEhE,SAAS,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,EAAE;IAClE,OAAO,CACL,oBAAC,oBAAoB,IAAC,KAAK,EAAE,KAAK;QAChC,oBAAC,oBAAoB,IAAC,QAAQ,EAAE,QAAQ;YACtC,oBAAC,qBAAqB,OAAG,CACJ,CACF,CACxB,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -0,0 +1,31 @@
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 { storiesOf } from '@storybook/react';
13
+ import React from 'react';
14
+ import { RequirementsList } from '../src/components/requirements/RequirementsList';
15
+ import { GenericStore, GenericStoreProvider } from '../src/store';
16
+ import { manuscriptID, modelMap } from './data/doc';
17
+ import { validationData } from './data/validationData';
18
+ const bulkUpdate = async (items) => {
19
+ return await new Promise((resolve, reject) => {
20
+ resolve();
21
+ });
22
+ };
23
+ const state = {
24
+ bulkUpdate,
25
+ manuscriptID,
26
+ modelMap,
27
+ };
28
+ const store = new GenericStore(undefined, undefined, state);
29
+ storiesOf('Requirments/List', module).add('validations', () => (React.createElement(GenericStoreProvider, { store: store },
30
+ React.createElement(RequirementsList, { validationResult: validationData }))));
31
+ //# sourceMappingURL=RequirmentsList.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequirmentsList.stories.js","sourceRoot":"","sources":["../../../stories/RequirmentsList.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,UAAU,GAAG,KAAK,EAAE,KAA4B,EAAiB,EAAE;IACvE,OAAO,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACjD,OAAO,EAAE,CAAA;IACX,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,KAAK,GAAG;IACZ,UAAU;IACV,YAAY;IACZ,QAAQ;CACT,CAAA;AAED,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;AAE3D,SAAS,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,CAC7D,oBAAC,oBAAoB,IAAC,KAAK,EAAE,KAAK;IAChC,oBAAC,gBAAgB,IACf,gBAAgB,EAAE,cAAuC,GACzD,CACmB,CACxB,CAAC,CAAA"}
@@ -0,0 +1,29 @@
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 { PrimaryButton } from '@manuscripts/style-guide';
13
+ import { action } from '@storybook/addon-actions';
14
+ import { storiesOf } from '@storybook/react';
15
+ import { Field, Form, Formik } from 'formik';
16
+ import React from 'react';
17
+ import { SelectField } from '../src/components/SelectField';
18
+ const options = [
19
+ { value: 'en', label: 'English' },
20
+ { value: 'fr', label: 'French' },
21
+ ];
22
+ storiesOf('SelectField', module).add('manual submit', () => (React.createElement(Formik, { initialValues: {
23
+ locale: 'en',
24
+ }, onSubmit: action('submit') },
25
+ React.createElement(Form, null,
26
+ React.createElement(Field, { name: 'locale', component: SelectField, options: options }),
27
+ React.createElement("div", { style: { marginTop: 20 } },
28
+ React.createElement(PrimaryButton, { type: "submit" }, "Save"))))));
29
+ //# sourceMappingURL=SelectField.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectField.stories.js","sourceRoot":"","sources":["../../../stories/SelectField.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAE3D,MAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;IACjC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;CACjC,CAAA;AAED,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,CAC1D,oBAAC,MAAM,IACL,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb,EACD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAE1B,oBAAC,IAAI;QACH,oBAAC,KAAK,IAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI;QACnE,6BAAK,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;YAC3B,oBAAC,aAAa,IAAC,IAAI,EAAC,QAAQ,WAAqB,CAC7C,CACD,CACA,CACV,CAAC,CAAA"}
@@ -0,0 +1,27 @@
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 { storiesOf } from '@storybook/react';
13
+ import React from 'react';
14
+ import styled from 'styled-components';
15
+ import { Support } from '../src/components/Support';
16
+ const Container = styled.div `
17
+ height: 300px;
18
+ width: 300px;
19
+ display: flex;
20
+ flex-direction: column;
21
+ justify-content: space-between;
22
+ align-items: flex-start;
23
+ `;
24
+ storiesOf('Support', module).add('Menu', () => (React.createElement(Container, null,
25
+ React.createElement(Support, null),
26
+ React.createElement(Support, null))));
27
+ //# sourceMappingURL=Support.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Support.stories.js","sourceRoot":"","sources":["../../../stories/Support.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAEnD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAO3B,CAAA;AAED,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAC7C,oBAAC,SAAS;IACR,oBAAC,OAAO,OAAG;IACX,oBAAC,OAAO,OAAG,CACD,CACb,CAAC,CAAA"}
@@ -0,0 +1,21 @@
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 projectDump from '@manuscripts/examples/data/project-dump-2.json';
13
+ import { Decoder } from '@manuscripts/transform';
14
+ export const modelMap = new Map();
15
+ projectDump.data.forEach((model) => {
16
+ modelMap.set(model._id, model);
17
+ });
18
+ const decoder = new Decoder(modelMap);
19
+ export const manuscriptID = 'MPManuscript:561C1FB2-3A94-4460-AB75-426F80BC7071';
20
+ export const doc = decoder.createArticleNode(manuscriptID);
21
+ //# sourceMappingURL=doc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc.js","sourceRoot":"","sources":["../../../../stories/data/doc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,WAAW,MAAM,gDAAgD,CAAA;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAA;AAEjC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAY,EAAE,EAAE;IACxC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAChC,CAAC,CAAC,CAAA;AAEF,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAA;AAErC,MAAM,CAAC,MAAM,YAAY,GAAG,mDAAmD,CAAA;AAE/E,MAAM,CAAC,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAA"}
@@ -0,0 +1,41 @@
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) 2020 Atypon Systems LLC. All Rights Reserved.
11
+ */
12
+ export const validationData = [
13
+ {
14
+ type: 'section-order',
15
+ severity: 0,
16
+ passed: true,
17
+ data: {
18
+ order: [],
19
+ },
20
+ fixable: true,
21
+ objectType: 'MPSectionOrderValidationResult',
22
+ _id: 'MPSectionOrderValidationResult:FCD54873-BAD0-488E-96C8-D1ECA23DD1F4',
23
+ message: 'Sections must be listed in the following order Abstract',
24
+ ignored: false,
25
+ },
26
+ {
27
+ type: 'section-body-has-content',
28
+ passed: false,
29
+ severity: 0,
30
+ data: {
31
+ id: 'MPSection:6383A9BC-CB0E-4B0E-BB3A-31E0B5143256',
32
+ sectionCategory: 'MPSectionCategory:abstract',
33
+ },
34
+ fixable: true,
35
+ objectType: 'MPSectionBodyValidationResult',
36
+ _id: 'MPSectionBodyValidationResult:2C772412-BA8C-46A4-B0D6-DFDC8BCB793A',
37
+ message: 'Abstract section must contains content',
38
+ ignored: false,
39
+ },
40
+ ];
41
+ //# sourceMappingURL=validationData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validationData.js","sourceRoot":"","sources":["../../../../stories/data/validationData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD;QACE,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE;YACJ,KAAK,EAAE,EAAE;SACV;QACD,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,gCAAgC;QAC5C,GAAG,EAAE,qEAAqE;QAC1E,OAAO,EAAE,yDAAyD;QAClE,OAAO,EAAE,KAAK;KACf;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE;YACJ,EAAE,EAAE,gDAAgD;YACpD,eAAe,EAAE,4BAA4B;SAC9C;QACD,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,+BAA+B;QAC3C,GAAG,EAAE,oEAAoE;QACzE,OAAO,EAAE,wCAAwC;QACjD,OAAO,EAAE,KAAK;KACf;CACF,CAAA"}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
+ *
4
+ * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
+ *
6
+ * The Original Code is manuscripts-frontend.
7
+ *
8
+ * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
+ *
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
+ */
12
+ import React from 'react';
13
+ export declare const Support: React.FC;
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
+ *
4
+ * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
+ *
6
+ * The Original Code is manuscripts-frontend.
7
+ *
8
+ * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
+ *
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
+ */
12
+ import { BibliographyElement, FigureElement, KeywordsElement, ListElement, ParagraphElement, QuoteElement, TableElement, TOCElement } from '@manuscripts/json-schema';
13
+ export type AnyElement = ParagraphElement | ListElement | TableElement | FigureElement | BibliographyElement | KeywordsElement | TOCElement | QuoteElement;
@@ -0,0 +1,17 @@
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 { ManuscriptNode, SectionNode } from '@manuscripts/transform';
13
+ import React from 'react';
14
+ export declare const StatisticsInspector: React.FC<{
15
+ manuscript: ManuscriptNode;
16
+ section?: SectionNode;
17
+ }>;
@@ -0,0 +1,18 @@
1
+ import { BibliographyItem, Model } from '@manuscripts/json-schema';
2
+ import React from 'react';
3
+ import { ReferenceFormValues } from './ReferenceForm';
4
+ export declare const CitationModel: React.FC<{
5
+ editCitation: boolean;
6
+ modelMap: Map<string, Model>;
7
+ saveCallback: (item?: ReferenceFormValues) => void;
8
+ deleteCallback: () => void;
9
+ selectedItem?: BibliographyItem;
10
+ setSelectedItem: React.Dispatch<React.SetStateAction<BibliographyItem>>;
11
+ setShowEditModel: React.Dispatch<React.SetStateAction<boolean>>;
12
+ getReferences: (query?: string) => Promise<BibliographyItem[]>;
13
+ }>;
14
+ export declare const Legend: import("styled-components").StyledComponent<"legend", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const Fields: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
17
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
18
+ export declare const Fieldset: import("styled-components").StyledComponent<"fieldset", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,17 @@
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 { Citation } from '@manuscripts/json-schema';
13
+ import React from 'react';
14
+ export declare const CitationProperties: React.FC<{
15
+ properties: Citation;
16
+ setProperties: (data: Citation) => void;
17
+ }>;
@@ -0,0 +1,19 @@
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 { BibliographyItem } from '@manuscripts/json-schema';
13
+ import React from 'react';
14
+ export declare const ExternalSearch: React.FC<{
15
+ projectLibrary: Map<string, BibliographyItem>;
16
+ debouncedQuery?: string;
17
+ query?: string;
18
+ setQuery: (query: string) => void;
19
+ }>;
@@ -0,0 +1,20 @@
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 { BibliographyItem } from '@manuscripts/json-schema';
13
+ import React from 'react';
14
+ export declare const GlobalLibrary: React.FC<{
15
+ debouncedQuery?: string;
16
+ globalLibraryItems: Map<string, BibliographyItem>;
17
+ projectLibrary: Map<string, BibliographyItem>;
18
+ query?: string;
19
+ setQuery: (query: string) => void;
20
+ }>;
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
3
+ *
4
+ * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
5
+ *
6
+ * The Original Code is manuscripts-frontend.
7
+ *
8
+ * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
9
+ *
10
+ * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
11
+ */
12
+ import { LibraryCollection } from '@manuscripts/json-schema';
13
+ export declare const DEFAULT_LIBRARY_COLLECTION_CATEGORY = "MPLibraryCollectionCategory:default";
14
+ export declare const sidebarIcon: (key?: string) => JSX.Element;
15
+ export declare const sortByCategoryPriority: (a: LibraryCollection, b: LibraryCollection) => number;
@@ -0,0 +1,20 @@
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 { BibliographyItem, UserProfile } from '@manuscripts/json-schema';
13
+ import React from 'react';
14
+ declare const LibraryForm: React.FC<{
15
+ item: BibliographyItem;
16
+ handleDelete?: (item: BibliographyItem) => void;
17
+ handleSave: (item: BibliographyItem) => void;
18
+ user: UserProfile;
19
+ }>;
20
+ export default LibraryForm;
@@ -0,0 +1,12 @@
1
+ import { BibliographyItem, LibraryCollection } from '@manuscripts/json-schema';
2
+ import React from 'react';
3
+ export declare const LibraryItems: React.FC<{
4
+ query?: string;
5
+ setQuery: (query: string) => void;
6
+ handleSelect: (item: BibliographyItem) => void;
7
+ hasItem: (item: BibliographyItem) => boolean;
8
+ items: BibliographyItem[];
9
+ filterID?: string;
10
+ projectLibraryCollections: Map<string, LibraryCollection>;
11
+ selectedItem: BibliographyItem | undefined;
12
+ }>;
@@ -0,0 +1,14 @@
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 React from 'react';
13
+ export declare const LibraryPageContainer: React.FC;
14
+ export default LibraryPageContainer;