@manuscripts/article-editor 1.4.11 → 1.4.12

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 (190) hide show
  1. package/dist/cjs/src/EditorApp.js +3 -3
  2. package/dist/cjs/src/EditorApp.js.map +1 -1
  3. package/dist/cjs/src/Main.js +2 -2
  4. package/dist/cjs/src/Main.js.map +1 -1
  5. package/dist/cjs/src/components/library/BibliographyImportButton.js +6 -2
  6. package/dist/cjs/src/components/library/BibliographyImportButton.js.map +1 -1
  7. package/dist/cjs/src/components/metadata/Metadata.js +0 -4
  8. package/dist/cjs/src/components/metadata/Metadata.js.map +1 -1
  9. package/dist/cjs/src/components/projects/ApplicationMenus.js +0 -5
  10. package/dist/cjs/src/components/projects/ApplicationMenus.js.map +1 -1
  11. package/dist/cjs/src/components/projects/ContentTab.js +3 -4
  12. package/dist/cjs/src/components/projects/ContentTab.js.map +1 -1
  13. package/dist/cjs/src/components/projects/EditorElement.js +18 -21
  14. package/dist/cjs/src/components/projects/EditorElement.js.map +1 -1
  15. package/dist/cjs/src/components/projects/Inspector.js +10 -10
  16. package/dist/cjs/src/components/projects/Inspector.js.map +1 -1
  17. package/dist/cjs/src/components/projects/ManuscriptPageContainer.js +2 -2
  18. package/dist/cjs/src/components/projects/ManuscriptPageContainer.js.map +1 -1
  19. package/dist/cjs/src/hooks/use-create-editor.js +24 -45
  20. package/dist/cjs/src/hooks/use-create-editor.js.map +1 -1
  21. package/dist/cjs/src/hooks/use-tracked-model-management.js +3 -5
  22. package/dist/cjs/src/hooks/use-tracked-model-management.js.map +1 -1
  23. package/dist/cjs/src/index.js +2 -2
  24. package/dist/cjs/src/index.js.map +1 -1
  25. package/dist/cjs/src/postgres-data/PsSource.js +3 -3
  26. package/dist/cjs/src/postgres-data/PsSource.js.map +1 -1
  27. package/dist/cjs/src/postgres-data/buildData.js +2 -10
  28. package/dist/cjs/src/postgres-data/buildData.js.map +1 -1
  29. package/dist/cjs/src/store/DataSourceStrategy.js +2 -2
  30. package/dist/cjs/src/store/DataSourceStrategy.js.map +1 -1
  31. package/dist/cjs/src/store/Store.js.map +1 -1
  32. package/dist/cjs/stories/Full.stories.js +14 -6
  33. package/dist/cjs/stories/Full.stories.js.map +1 -1
  34. package/dist/es/src/EditorApp.js +3 -3
  35. package/dist/es/src/EditorApp.js.map +1 -1
  36. package/dist/es/src/Main.js +2 -2
  37. package/dist/es/src/Main.js.map +1 -1
  38. package/dist/es/src/components/library/BibliographyImportButton.js +5 -1
  39. package/dist/es/src/components/library/BibliographyImportButton.js.map +1 -1
  40. package/dist/es/src/components/metadata/Metadata.js +0 -4
  41. package/dist/es/src/components/metadata/Metadata.js.map +1 -1
  42. package/dist/es/src/components/projects/ApplicationMenus.js +0 -5
  43. package/dist/es/src/components/projects/ApplicationMenus.js.map +1 -1
  44. package/dist/es/src/components/projects/ContentTab.js +3 -4
  45. package/dist/es/src/components/projects/ContentTab.js.map +1 -1
  46. package/dist/es/src/components/projects/EditorElement.js +19 -22
  47. package/dist/es/src/components/projects/EditorElement.js.map +1 -1
  48. package/dist/es/src/components/projects/Inspector.js +11 -11
  49. package/dist/es/src/components/projects/Inspector.js.map +1 -1
  50. package/dist/es/src/components/projects/ManuscriptPageContainer.js +2 -2
  51. package/dist/es/src/components/projects/ManuscriptPageContainer.js.map +1 -1
  52. package/dist/es/src/hooks/use-create-editor.js +24 -45
  53. package/dist/es/src/hooks/use-create-editor.js.map +1 -1
  54. package/dist/es/src/hooks/use-tracked-model-management.js +3 -5
  55. package/dist/es/src/hooks/use-tracked-model-management.js.map +1 -1
  56. package/dist/es/src/index.js +2 -2
  57. package/dist/es/src/index.js.map +1 -1
  58. package/dist/es/src/postgres-data/PsSource.js +3 -3
  59. package/dist/es/src/postgres-data/PsSource.js.map +1 -1
  60. package/dist/es/src/postgres-data/buildData.js +2 -10
  61. package/dist/es/src/postgres-data/buildData.js.map +1 -1
  62. package/dist/es/src/store/DataSourceStrategy.js +2 -2
  63. package/dist/es/src/store/DataSourceStrategy.js.map +1 -1
  64. package/dist/es/src/store/Store.js.map +1 -1
  65. package/dist/es/stories/Full.stories.js +14 -6
  66. package/dist/es/stories/Full.stories.js.map +1 -1
  67. package/dist/types/src/EditorApp.d.ts +2 -1
  68. package/dist/types/src/Main.d.ts +2 -1
  69. package/dist/types/src/hooks/use-tracked-model-management.d.ts +1 -2
  70. package/dist/types/src/index.d.ts +2 -1
  71. package/dist/types/src/postgres-data/PsSource.d.ts +2 -2
  72. package/dist/types/src/postgres-data/buildData.d.ts +1 -2
  73. package/dist/types/src/store/DataSourceStrategy.d.ts +1 -1
  74. package/dist/types/src/store/Store.d.ts +29 -52
  75. package/package.json +3 -3
  76. package/dist/cjs/src/components/library/CitationProperties.js +0 -67
  77. package/dist/cjs/src/components/library/CitationProperties.js.map +0 -1
  78. package/dist/cjs/src/components/library/ExternalSearch.js +0 -156
  79. package/dist/cjs/src/components/library/ExternalSearch.js.map +0 -1
  80. package/dist/cjs/src/components/library/GlobalLibrary.js +0 -133
  81. package/dist/cjs/src/components/library/GlobalLibrary.js.map +0 -1
  82. package/dist/cjs/src/components/library/LibraryCollectionCategories.js +0 -53
  83. package/dist/cjs/src/components/library/LibraryCollectionCategories.js.map +0 -1
  84. package/dist/cjs/src/components/library/LibraryForm.js +0 -437
  85. package/dist/cjs/src/components/library/LibraryForm.js.map +0 -1
  86. package/dist/cjs/src/components/library/LibraryItems.js +0 -116
  87. package/dist/cjs/src/components/library/LibraryItems.js.map +0 -1
  88. package/dist/cjs/src/components/library/LibraryPageContainer.js +0 -107
  89. package/dist/cjs/src/components/library/LibraryPageContainer.js.map +0 -1
  90. package/dist/cjs/src/components/library/LibrarySidebar.js +0 -172
  91. package/dist/cjs/src/components/library/LibrarySidebar.js.map +0 -1
  92. package/dist/cjs/src/components/library/Messages.js +0 -25
  93. package/dist/cjs/src/components/library/Messages.js.map +0 -1
  94. package/dist/cjs/src/components/library/ProjectLibrary.js +0 -96
  95. package/dist/cjs/src/components/library/ProjectLibrary.js.map +0 -1
  96. package/dist/cjs/src/components/metadata/HeaderFigure.js +0 -147
  97. package/dist/cjs/src/components/metadata/HeaderFigure.js.map +0 -1
  98. package/dist/cjs/src/lib/replace-attachments-ids.js +0 -49
  99. package/dist/cjs/src/lib/replace-attachments-ids.js.map +0 -1
  100. package/dist/cjs/stories/LibrarySidebar.stories.js +0 -188
  101. package/dist/cjs/stories/LibrarySidebar.stories.js.map +0 -1
  102. package/dist/cjs/stories/Metadata.stories.js +0 -53
  103. package/dist/cjs/stories/Metadata.stories.js.map +0 -1
  104. package/dist/cjs/stories/Notification.stories.js +0 -62
  105. package/dist/cjs/stories/Notification.stories.js.map +0 -1
  106. package/dist/cjs/stories/Page.stories.js +0 -50
  107. package/dist/cjs/stories/Page.stories.js.map +0 -1
  108. package/dist/cjs/stories/Panel.stories.js +0 -62
  109. package/dist/cjs/stories/Panel.stories.js.map +0 -1
  110. package/dist/cjs/stories/Placeholders.stories.js +0 -23
  111. package/dist/cjs/stories/Placeholders.stories.js.map +0 -1
  112. package/dist/cjs/stories/PopperButtons.stories.js +0 -27
  113. package/dist/cjs/stories/PopperButtons.stories.js.map +0 -1
  114. package/dist/cjs/stories/Progress.stories.js +0 -25
  115. package/dist/cjs/stories/Progress.stories.js.map +0 -1
  116. package/dist/cjs/stories/ProgressIndicator.stories.js +0 -33
  117. package/dist/cjs/stories/ProgressIndicator.stories.js.map +0 -1
  118. package/dist/cjs/stories/ReloadDialog.stories.js +0 -21
  119. package/dist/cjs/stories/ReloadDialog.stories.js.map +0 -1
  120. package/dist/cjs/stories/SelectField.stories.js +0 -34
  121. package/dist/cjs/stories/SelectField.stories.js.map +0 -1
  122. package/dist/es/src/components/library/CitationProperties.js +0 -60
  123. package/dist/es/src/components/library/CitationProperties.js.map +0 -1
  124. package/dist/es/src/components/library/ExternalSearch.js +0 -127
  125. package/dist/es/src/components/library/ExternalSearch.js.map +0 -1
  126. package/dist/es/src/components/library/GlobalLibrary.js +0 -104
  127. package/dist/es/src/components/library/GlobalLibrary.js.map +0 -1
  128. package/dist/es/src/components/library/LibraryCollectionCategories.js +0 -45
  129. package/dist/es/src/components/library/LibraryCollectionCategories.js.map +0 -1
  130. package/dist/es/src/components/library/LibraryForm.js +0 -409
  131. package/dist/es/src/components/library/LibraryForm.js.map +0 -1
  132. package/dist/es/src/components/library/LibraryItems.js +0 -86
  133. package/dist/es/src/components/library/LibraryItems.js.map +0 -1
  134. package/dist/es/src/components/library/LibraryPageContainer.js +0 -80
  135. package/dist/es/src/components/library/LibraryPageContainer.js.map +0 -1
  136. package/dist/es/src/components/library/LibrarySidebar.js +0 -165
  137. package/dist/es/src/components/library/LibrarySidebar.js.map +0 -1
  138. package/dist/es/src/components/library/Messages.js +0 -18
  139. package/dist/es/src/components/library/Messages.js.map +0 -1
  140. package/dist/es/src/components/library/ProjectLibrary.js +0 -67
  141. package/dist/es/src/components/library/ProjectLibrary.js.map +0 -1
  142. package/dist/es/src/components/metadata/HeaderFigure.js +0 -117
  143. package/dist/es/src/components/metadata/HeaderFigure.js.map +0 -1
  144. package/dist/es/src/lib/replace-attachments-ids.js +0 -44
  145. package/dist/es/src/lib/replace-attachments-ids.js.map +0 -1
  146. package/dist/es/stories/LibrarySidebar.stories.js +0 -183
  147. package/dist/es/stories/LibrarySidebar.stories.js.map +0 -1
  148. package/dist/es/stories/Metadata.stories.js +0 -48
  149. package/dist/es/stories/Metadata.stories.js.map +0 -1
  150. package/dist/es/stories/Notification.stories.js +0 -57
  151. package/dist/es/stories/Notification.stories.js.map +0 -1
  152. package/dist/es/stories/Page.stories.js +0 -45
  153. package/dist/es/stories/Page.stories.js.map +0 -1
  154. package/dist/es/stories/Panel.stories.js +0 -57
  155. package/dist/es/stories/Panel.stories.js.map +0 -1
  156. package/dist/es/stories/Placeholders.stories.js +0 -18
  157. package/dist/es/stories/Placeholders.stories.js.map +0 -1
  158. package/dist/es/stories/PopperButtons.stories.js +0 -22
  159. package/dist/es/stories/PopperButtons.stories.js.map +0 -1
  160. package/dist/es/stories/Progress.stories.js +0 -20
  161. package/dist/es/stories/Progress.stories.js.map +0 -1
  162. package/dist/es/stories/ProgressIndicator.stories.js +0 -28
  163. package/dist/es/stories/ProgressIndicator.stories.js.map +0 -1
  164. package/dist/es/stories/ReloadDialog.stories.js +0 -16
  165. package/dist/es/stories/ReloadDialog.stories.js.map +0 -1
  166. package/dist/es/stories/SelectField.stories.js +0 -29
  167. package/dist/es/stories/SelectField.stories.js.map +0 -1
  168. package/dist/types/src/components/library/CitationProperties.d.ts +0 -17
  169. package/dist/types/src/components/library/ExternalSearch.d.ts +0 -19
  170. package/dist/types/src/components/library/GlobalLibrary.d.ts +0 -20
  171. package/dist/types/src/components/library/LibraryCollectionCategories.d.ts +0 -15
  172. package/dist/types/src/components/library/LibraryForm.d.ts +0 -20
  173. package/dist/types/src/components/library/LibraryItems.d.ts +0 -12
  174. package/dist/types/src/components/library/LibraryPageContainer.d.ts +0 -14
  175. package/dist/types/src/components/library/LibrarySidebar.d.ts +0 -21
  176. package/dist/types/src/components/library/Messages.d.ts +0 -15
  177. package/dist/types/src/components/library/ProjectLibrary.d.ts +0 -23
  178. package/dist/types/src/components/metadata/HeaderFigure.d.ts +0 -13
  179. package/dist/types/src/lib/replace-attachments-ids.d.ts +0 -15
  180. package/dist/types/stories/LibrarySidebar.stories.d.ts +0 -12
  181. package/dist/types/stories/Metadata.stories.d.ts +0 -12
  182. package/dist/types/stories/Notification.stories.d.ts +0 -12
  183. package/dist/types/stories/Page.stories.d.ts +0 -12
  184. package/dist/types/stories/Panel.stories.d.ts +0 -12
  185. package/dist/types/stories/Placeholders.stories.d.ts +0 -12
  186. package/dist/types/stories/PopperButtons.stories.d.ts +0 -12
  187. package/dist/types/stories/Progress.stories.d.ts +0 -12
  188. package/dist/types/stories/ProgressIndicator.stories.d.ts +0 -12
  189. package/dist/types/stories/ReloadDialog.stories.d.ts +0 -12
  190. package/dist/types/stories/SelectField.stories.d.ts +0 -12
@@ -1,62 +0,0 @@
1
- "use strict";
2
- /*!
3
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
4
- *
5
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = require("@storybook/react");
18
- const react_2 = __importDefault(require("react"));
19
- const Page_1 = require("../src/components/Page");
20
- const Panel_1 = __importDefault(require("../src/components/Panel"));
21
- const store_1 = require("../src/store");
22
- const projects_1 = require("./data/projects");
23
- const storeState = {
24
- project: projects_1.project,
25
- tokenData: {
26
- getTokenActions: () => {
27
- return {
28
- delete: () => {
29
- return;
30
- },
31
- update: (token) => {
32
- return;
33
- },
34
- };
35
- },
36
- },
37
- };
38
- (0, react_1.storiesOf)('Panel', module)
39
- .add('row', () => {
40
- const store = new store_1.GenericStore(undefined, undefined, { ...storeState });
41
- return (react_2.default.createElement(store_1.GenericStoreProvider, { store: store },
42
- react_2.default.createElement(Page_1.Page, null,
43
- react_2.default.createElement(Panel_1.default, { name: 'testStart', minSize: 200, direction: 'row', side: 'end' },
44
- react_2.default.createElement("p", { style: { paddingRight: 20 } }, "This is a panel at the start")),
45
- react_2.default.createElement(Page_1.Main, null,
46
- react_2.default.createElement("p", { style: { paddingLeft: 20 } }, "This is the main content.")),
47
- react_2.default.createElement(Panel_1.default, { name: 'testEnd', minSize: 200, direction: 'row', side: 'start' },
48
- react_2.default.createElement("p", { style: { paddingLeft: 20 } }, "This is a panel at the end")))));
49
- })
50
- .add('combined', () => {
51
- const store = new store_1.GenericStore(undefined, undefined, { ...storeState });
52
- return (react_2.default.createElement(store_1.GenericStoreProvider, { store: store },
53
- react_2.default.createElement(Page_1.Page, null,
54
- react_2.default.createElement(Panel_1.default, { name: 'testStart', minSize: 200, direction: 'row', side: 'end' },
55
- react_2.default.createElement("div", { style: { display: 'flex', flexDirection: 'column' } },
56
- react_2.default.createElement(Panel_1.default, { name: 'testColumn', minSize: 200, direction: 'column', side: 'end' },
57
- react_2.default.createElement("p", null, "This is a panel")),
58
- react_2.default.createElement("div", { style: { paddingTop: 20 } }, "This is another section"))),
59
- react_2.default.createElement(Page_1.Main, null,
60
- react_2.default.createElement("p", { style: { paddingLeft: 20 } }, "This is the main content.")))));
61
- });
62
- //# sourceMappingURL=Panel.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../stories/Panel.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,4CAA4C;AAC5C,kDAAyB;AAEzB,iDAAmD;AACnD,oEAA2C;AAC3C,wCAAiE;AACjE,8CAAyC;AAEzC,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,kBAAO;IAChB,SAAS,EAAE;QACT,eAAe,EAAE,GAAG,EAAE;YACpB,OAAO;gBACL,MAAM,EAAE,GAAG,EAAE;oBACX,OAAM;gBACR,CAAC;gBACD,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;oBACxB,OAAM;gBACR,CAAC;aACF,CAAA;QACH,CAAC;KACF;CACF,CAAA;AAED,IAAA,iBAAS,EAAC,OAAO,EAAE,MAAM,CAAC;KACvB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE;IACf,M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CAAK,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,8BAA+B,CACzD,CACA;YAER,8BAAC,WAAI;gBACH,qCAAG,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,gCAA+B,CACvD,CACF,CACc,CACxB,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /*!
3
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
4
- *
5
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = require("@storybook/react");
18
- const react_2 = __importDefault(require("react"));
19
- const Placeholders_1 = require("../src/components/Placeholders");
20
- (0, react_1.storiesOf)('Placeholders', module)
21
- .add('Manuscript', () => react_2.default.createElement(Placeholders_1.ManuscriptPlaceholder, null))
22
- .add('Project', () => react_2.default.createElement(Placeholders_1.ProjectPlaceholder, null));
23
- //# sourceMappingURL=Placeholders.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Placeholders.stories.js","sourceRoot":"","sources":["../../../stories/Placeholders.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,4CAA4C;AAC5C,kDAAyB;AAEzB,iEAGuC;AAEvC,IAAA,iBAAS,EAAC,cAAc,EAAE,MAAM,CAAC;KAC9B,GAAG,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,8BAAC,oCAAqB,OAAG,CAAC;KAClD,GAAG,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,8BAAC,iCAAkB,OAAG,CAAC,CAAA"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /*!
3
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
4
- *
5
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const addon_actions_1 = require("@storybook/addon-actions");
18
- const react_1 = require("@storybook/react");
19
- const react_2 = __importDefault(require("react"));
20
- const InviteAuthorButton_1 = __importDefault(require("../src/components/metadata/InviteAuthorButton"));
21
- const contributors_1 = require("./data/contributors");
22
- const projects_1 = require("./data/projects");
23
- (0, react_1.storiesOf)('Metadata/Popper Buttons', module).add('InviteAuthorButton', () => (react_2.default.createElement(InviteAuthorButton_1.default, { author: contributors_1.authors[0], project: projects_1.project, updateAuthor: (0, addon_actions_1.action)('update author'), tokenActions: {
24
- delete: (0, addon_actions_1.action)('delete token'),
25
- update: (0, addon_actions_1.action)('update token'),
26
- } })));
27
- //# sourceMappingURL=PopperButtons.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PopperButtons.stories.js","sourceRoot":"","sources":["../../../stories/PopperButtons.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,4DAAiD;AACjD,4CAA4C;AAC5C,kDAAyB;AAEzB,uGAA8E;AAC9E,sDAA6C;AAC7C,8CAAyC;AAEzC,IAAA,iBAAS,EAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,CAC3E,8BAAC,4BAAkB,IACjB,MAAM,EAAE,sBAAO,CAAC,CAAC,CAAC,EAClB,OAAO,EAAE,kBAAO,EAChB,YAAY,EAAE,IAAA,sBAAM,EAAC,eAAe,CAAC,EACrC,YAAY,EAAE;QACZ,MAAM,EAAE,IAAA,sBAAM,EAAC,cAAc,CAAC;QAC9B,MAAM,EAAE,IAAA,sBAAM,EAAC,cAAc,CAAC;KAC/B,GACD,CACH,CAAC,CAAA"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*!
3
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
4
- *
5
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const addon_actions_1 = require("@storybook/addon-actions");
18
- const react_1 = require("@storybook/react");
19
- const react_2 = __importDefault(require("react"));
20
- const ProgressModal_1 = require("../src/components/projects/ProgressModal");
21
- (0, react_1.storiesOf)('Progress', module)
22
- .add('converting', () => (react_2.default.createElement(ProgressModal_1.ProgressModal, { canCancel: true, handleCancel: (0, addon_actions_1.action)('cancel'), status: 'Converting manuscript…' })))
23
- .add('importing', () => (react_2.default.createElement(ProgressModal_1.ProgressModal, { canCancel: false, handleCancel: (0, addon_actions_1.action)('cancel'), status: 'Importing manuscript…' })))
24
- .add('exporting', () => (react_2.default.createElement(ProgressModal_1.ProgressModal, { canCancel: true, handleCancel: (0, addon_actions_1.action)('cancel'), status: 'Exporting manuscript…' })));
25
- //# sourceMappingURL=Progress.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Progress.stories.js","sourceRoot":"","sources":["../../../stories/Progress.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,4DAAiD;AACjD,4CAA4C;AAC5C,kDAAyB;AAEzB,4EAAwE;AAExE,IAAA,iBAAS,EAAC,UAAU,EAAE,MAAM,CAAC;KAC1B,GAAG,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,CACvB,8BAAC,6BAAa,IACZ,SAAS,EAAE,IAAI,EACf,YAAY,EAAE,IAAA,sBAAM,EAAC,QAAQ,CAAC,EAC9B,MAAM,EAAE,wBAAwB,GAChC,CACH,CAAC;KACD,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CACtB,8BAAC,6BAAa,IACZ,SAAS,EAAE,KAAK,EAChB,YAAY,EAAE,IAAA,sBAAM,EAAC,QAAQ,CAAC,EAC9B,MAAM,EAAE,uBAAuB,GAC/B,CACH,CAAC;KACD,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CACtB,8BAAC,6BAAa,IACZ,SAAS,EAAE,IAAI,EACf,YAAY,EAAE,IAAA,sBAAM,EAAC,QAAQ,CAAC,EAC9B,MAAM,EAAE,uBAAuB,GAC/B,CACH,CAAC,CAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /*!
3
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
4
- *
5
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = require("@storybook/react");
18
- const react_2 = __importDefault(require("react"));
19
- const ProgressIndicator_1 = require("../src/components/ProgressIndicator");
20
- (0, react_1.storiesOf)('Progress Indicator', module)
21
- .add('Determinate', () => (react_2.default.createElement("div", null,
22
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: true, progress: 0.1, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.Author }),
23
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: true, progress: 0.3, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.ContributorDetail }),
24
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: true, progress: 0.5, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.Contributors }),
25
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: true, progress: 0.7, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.Project }),
26
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: true, progress: 0.9, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.ReferenceLibrary }))))
27
- .add('Indeterminate', () => (react_2.default.createElement("div", null,
28
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: false, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.Author }),
29
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: false, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.ContributorDetail }),
30
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: false, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.Contributors }),
31
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: false, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.Project }),
32
- react_2.default.createElement(ProgressIndicator_1.ProgressIndicator, { isDeterminate: false, size: ProgressIndicator_1.IndicatorSize.Large, symbols: ProgressIndicator_1.IndicatorKind.ReferenceLibrary }))));
33
- //# sourceMappingURL=ProgressIndicator.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProgressIndicator.stories.js","sourceRoot":"","sources":["../../../stories/ProgressIndicator.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,4CAA4C;AAC5C,kDAAyB;AAEzB,2EAI4C;AAE5C,IAAA,iBA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AAa,CAAC,KAAK,EACzB,OAAO,EAAE,iCAAa,CAAC,YAAY,GACnC;IACF,8BAAC,qCAAiB,IAChB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,iCAAa,CAAC,KAAK,EACzB,OAAO,EAAE,iCAAa,CAAC,OAAO,GAC9B;IACF,8BAAC,qCAAiB,IAChB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,iCAAa,CAAC,KAAK,EACzB,OAAO,EAAE,iCAAa,CAAC,gBAAgB,GACvC,CACE,CACP,CAAC,CAAA"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /*!
3
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
4
- *
5
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = require("@storybook/react");
18
- const react_2 = __importDefault(require("react"));
19
- const ReloadDialog_1 = require("../src/components/projects/ReloadDialog");
20
- (0, react_1.storiesOf)('Reload Dialog', module).add('with message', () => (react_2.default.createElement(ReloadDialog_1.ReloadDialog, { message: 'There was an error during data preparation.' })));
21
- //# sourceMappingURL=ReloadDialog.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReloadDialog.stories.js","sourceRoot":"","sources":["../../../stories/ReloadDialog.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,4CAA4C;AAC5C,kDAAyB;AAEzB,0EAAsE;AAEtE,IAAA,iBAAS,EAAC,eAAe,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,EAAE,CAAC,CAC3D,8BAAC,2BAAY,IAAC,OAAO,EAAE,6CAA6C,GAAI,CACzE,CAAC,CAAA"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /*!
3
- * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
4
- *
5
- * Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
6
- *
7
- * The Original Code is manuscripts-frontend.
8
- *
9
- * The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
10
- *
11
- * All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
12
- */
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const style_guide_1 = require("@manuscripts/style-guide");
18
- const addon_actions_1 = require("@storybook/addon-actions");
19
- const react_1 = require("@storybook/react");
20
- const formik_1 = require("formik");
21
- const react_2 = __importDefault(require("react"));
22
- const SelectField_1 = require("../src/components/SelectField");
23
- const options = [
24
- { value: 'en', label: 'English' },
25
- { value: 'fr', label: 'French' },
26
- ];
27
- (0, react_1.storiesOf)('SelectField', module).add('manual submit', () => (react_2.default.createElement(formik_1.Formik, { initialValues: {
28
- locale: 'en',
29
- }, onSubmit: (0, addon_actions_1.action)('submit') },
30
- react_2.default.createElement(formik_1.Form, null,
31
- react_2.default.createElement(formik_1.Field, { name: 'locale', component: SelectField_1.SelectField, options: options }),
32
- react_2.default.createElement("div", { style: { marginTop: 20 } },
33
- react_2.default.createElement(style_guide_1.PrimaryButton, { type: "submit" }, "Save"))))));
34
- //# sourceMappingURL=SelectField.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectField.stories.js","sourceRoot":"","sources":["../../../stories/SelectField.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,0DAAwD;AACxD,4DAAiD;AACjD,4CAA4C;AAC5C,mCAA4C;AAC5C,kDAAyB;AAEzB,+DAA2D;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,IAAA,iBAAS,EAAC,aAAa,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,CAC1D,8BAAC,eAAM,IACL,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb,EACD,QAAQ,EAAE,IAAA,sBAAM,EAAC,QAAQ,CAAC;IAE1B,8BAAC,aAAI;QACH,8BAAC,cAAK,IAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,yBAAW,EAAE,OAAO,EAAE,OAAO,GAAI;QACnE,uCAAK,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;YAC3B,8BAAC,2BAAa,IAAC,IAAI,EAAC,QAAQ,WAAqB,CAC7C,CACD,CACA,CACV,CAAC,CAAA"}
@@ -1,60 +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 { TextField } from '@manuscripts/style-guide';
13
- import React from 'react';
14
- import styled from 'styled-components';
15
- export const CitationProperties = ({ properties, setProperties }) => {
16
- return (React.createElement(React.Fragment, null,
17
- React.createElement(FormGroup, null,
18
- React.createElement(FormLabel, null, "Show"),
19
- React.createElement("select", { value: properties.displayScheme || 'show-all', onChange: (event) => setProperties({
20
- ...properties,
21
- displayScheme: event.target.value,
22
- }) },
23
- React.createElement("option", { value: 'show-all' }, "Authors and year"),
24
- React.createElement("option", { value: 'author-only' }, "Authors only"),
25
- React.createElement("option", { value: 'suppress-author' }, "No authors"),
26
- React.createElement("option", { value: 'composite' }, "Composite"))),
27
- React.createElement(FormGroup, null,
28
- React.createElement(FormLabel, null, "Prefix"),
29
- React.createElement(TextField, { type: 'text', value: properties.prefix, onChange: (event) => setProperties({
30
- ...properties,
31
- prefix: event.target.value,
32
- }) })),
33
- React.createElement(FormGroup, null,
34
- React.createElement(FormLabel, null, "Suffix"),
35
- React.createElement(TextField, { type: 'text', value: properties.suffix, onChange: (event) => setProperties({
36
- ...properties,
37
- suffix: event.target.value,
38
- }) })),
39
- properties.displayScheme === 'composite' && (React.createElement(FormGroup, null,
40
- React.createElement(FormLabel, null, "Infix"),
41
- React.createElement(TextField, { type: 'text', value: properties.infix, onChange: (event) => setProperties({
42
- ...properties,
43
- infix: event.target.value,
44
- }) })))));
45
- };
46
- const FormGroup = styled.div `
47
- margin: ${(props) => props.theme.grid.unit * 4}px 0;
48
- display: flex;
49
- align-items: center;
50
-
51
- ${TextField} {
52
- padding: 2px;
53
- flex: 1;
54
- }
55
- `;
56
- const FormLabel = styled.label `
57
- flex-shrink: 0;
58
- width: 50px;
59
- `;
60
- //# sourceMappingURL=CitationProperties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CitationProperties.js","sourceRoot":"","sources":["../../../../../src/components/library/CitationProperties.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAItC,MAAM,CAAC,MAAM,kBAAkB,GAG1B,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE;IACrC,OAAO,CACL;QACE,oBAAC,SAAS;YACR,oBAAC,SAAS,eAAiB;YAC3B,gCACE,KAAK,EAAE,UAAU,CAAC,aAAa,IAAI,UAAU,EAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAClB,aAAa,CAAC;oBACZ,GAAG,UAAU;oBACb,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,KAAsB;iBACnD,CAAC;gBAGJ,gCAAQ,KAAK,EAAE,UAAU,uBAA2B;gBACpD,gCAAQ,KAAK,EAAE,aAAa,mBAAuB;gBACnD,gCAAQ,KAAK,EAAE,iBAAiB,iBAAqB;gBACrD,gCAAQ,KAAK,EAAE,WAAW,gBAAoB,CACvC,CACC;QAEZ,oBAAC,SAAS;YACR,oBAAC,SAAS,iBAAmB;YAC7B,oBAAC,SAAS,IACR,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,CAAC,MAAM,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAClB,aAAa,CAAC;oBACZ,GAAG,UAAU;oBACb,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,KAAsB;iBAC5C,CAAC,GAEJ,CACQ;QAEZ,oBAAC,SAAS;YACR,oBAAC,SAAS,iBAAmB;YAC7B,oBAAC,SAAS,IACR,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,CAAC,MAAM,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAClB,aAAa,CAAC;oBACZ,GAAG,UAAU;oBACb,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,KAAsB;iBAC5C,CAAC,GAEJ,CACQ;QAEX,UAAU,CAAC,aAAa,KAAK,WAAW,IAAI,CAC3C,oBAAC,SAAS;YACR,oBAAC,SAAS,gBAAkB;YAC5B,oBAAC,SAAS,IACR,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAClB,aAAa,CAAC;oBACZ,GAAG,UAAU;oBACb,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAsB;iBAC3C,CAAC,GAEJ,CACQ,CACb,CACA,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;YAChB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;;;;IAI5C,SAAS;;;;CAIZ,CAAA;AAED,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAA;;;CAG7B,CAAA"}
@@ -1,127 +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 { estimateID } from '@manuscripts/library';
13
- import { buildBibliographyItem } from '@manuscripts/transform';
14
- import React, { useCallback, useEffect, useState } from 'react';
15
- import styled from 'styled-components';
16
- import config from '../../config';
17
- import { sources } from '../../lib/sources';
18
- import { useStore } from '../../store';
19
- import { Main } from '../Page';
20
- import Search, { SearchWrapper } from '../Search';
21
- import { SearchResults } from './SearchResults';
22
- export const ExternalSearch = React.memo(({ debouncedQuery, projectLibrary, query, setQuery }) => {
23
- const [{ projectID, saveBiblioItem }] = useStore((store) => ({
24
- projectID: store.projectID,
25
- saveBiblioItem: store.saveBiblioItem,
26
- }));
27
- const [sourceID] = useStore((store) => store.librarySourceID);
28
- const [error, setError] = useState();
29
- const [searching, setSearching] = useState(false);
30
- const [fetching, setFetching] = useState(new Set());
31
- const [selected, setSelected] = useState();
32
- const [results, setResults] = useState();
33
- const [source, setSource] = useState();
34
- useEffect(() => {
35
- const source = sources.find((item) => item.id === sourceID);
36
- setSource(source);
37
- }, [sourceID]);
38
- useEffect(() => {
39
- const selected = new Map();
40
- for (const item of projectLibrary.values()) {
41
- selected.set(estimateID(item), item);
42
- }
43
- setSelected(selected);
44
- }, [projectLibrary]);
45
- useEffect(() => {
46
- setError(undefined);
47
- setResults(undefined);
48
- setSearching(Boolean(query));
49
- }, [query, sourceID]);
50
- useEffect(() => {
51
- if (source && debouncedQuery) {
52
- source
53
- .search(debouncedQuery, 20, config.support.email)
54
- .then((result) => {
55
- setResults(result);
56
- })
57
- .catch((error) => {
58
- console.error(error);
59
- setError('There was an error running this search');
60
- })
61
- .finally(() => {
62
- setSearching(false);
63
- })
64
- .catch((error) => {
65
- console.error(error);
66
- setError('There was an error running this search');
67
- });
68
- }
69
- }, [debouncedQuery, source]);
70
- const handleAdd = useCallback((item) => saveBiblioItem(item, projectID), [projectID, saveBiblioItem]);
71
- const handleSelect = useCallback((id, item) => {
72
- if (!source) {
73
- throw new Error('No source defined');
74
- }
75
- if (!selected) {
76
- throw new Error('Selected map not built');
77
- }
78
- const estimatedID = estimateID(item);
79
- if (selected.has(estimatedID)) {
80
- return; // already added
81
- }
82
- setFetching((fetching) => {
83
- fetching.add(estimatedID);
84
- return new Set([...fetching]);
85
- });
86
- source
87
- .fetch(item, config.support.email)
88
- .then((data) => {
89
- const item = buildBibliographyItem(data);
90
- return handleAdd(item);
91
- })
92
- .then(() => {
93
- window.setTimeout(() => {
94
- setFetching((fetching) => {
95
- fetching.delete(estimatedID);
96
- return new Set([...fetching]);
97
- });
98
- }, 100);
99
- })
100
- .catch((error) => {
101
- console.error('failed to add', error);
102
- setError('There was an error saving this item to the library');
103
- });
104
- }, [handleAdd, selected, source]);
105
- const handleQueryChange = useCallback((event) => {
106
- setQuery(event.target.value);
107
- }, [setQuery]);
108
- if (!source) {
109
- return null;
110
- }
111
- if (!selected) {
112
- return null;
113
- }
114
- return (React.createElement(Main, null,
115
- React.createElement(Container, null,
116
- React.createElement(SearchWrapper, null,
117
- React.createElement(Search, { autoComplete: 'off', autoFocus: true, handleSearchChange: handleQueryChange, placeholder: `Search ${source.name}`, type: 'search', value: query || '' })),
118
- React.createElement(SearchResults, { error: error, fetching: fetching, handleSelect: handleSelect, results: results, searching: searching, selected: selected }))));
119
- });
120
- const Container = styled.div `
121
- flex: 1;
122
- display: flex;
123
- flex-direction: column;
124
- overflow: hidden;
125
- height: 100%;
126
- `;
127
- //# sourceMappingURL=ExternalSearch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExternalSearch.js","sourceRoot":"","sources":["../../../../../src/components/library/ExternalSearch.tsx"],"names":[],"mappings":"AAAA;;;;;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AE,EACpC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,IAAI,EAAE,GAClB,CACY;YAEhB,oBAAC,aAAa,IACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,GAClB,CACQ,CACP,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAM3B,CAAA"}
@@ -1,104 +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 { crossref } from '@manuscripts/body-editor';
13
- import { estimateID } from '@manuscripts/library';
14
- import { buildBibliographyItem } from '@manuscripts/transform';
15
- import React, { useCallback, useEffect, useState } from 'react';
16
- import styled from 'styled-components';
17
- import { filterLibrary } from '../../lib/search-library';
18
- import { useStore } from '../../store';
19
- import { Main } from '../Page';
20
- import Search, { SearchWrapper } from '../Search';
21
- import { SearchResults } from './SearchResults';
22
- const Container = styled.div `
23
- flex: 1;
24
- `;
25
- export const GlobalLibrary = React.memo(({ debouncedQuery, globalLibraryItems, projectLibrary, query, setQuery }) => {
26
- const [error, setError] = useState();
27
- const [fetching, setFetching] = useState(new Set());
28
- const [selected, setSelected] = useState();
29
- const [results, setResults] = useState();
30
- const [filterID] = useStore((store) => store.filterID || '');
31
- const [sourceID] = useStore((store) => store.sourceID || '');
32
- const [{ projectID, saveBiblioItem }] = useStore((store) => ({
33
- projectID: store.projectID,
34
- saveBiblioItem: store.saveBiblioItem,
35
- }));
36
- useEffect(() => {
37
- filterLibrary(globalLibraryItems, debouncedQuery, new Set([filterID || sourceID]))
38
- .then((items) => {
39
- setResults({
40
- items,
41
- total: items.length, // TODO: may be truncated
42
- });
43
- })
44
- .catch((error) => {
45
- console.error(error);
46
- });
47
- }, [filterID, globalLibraryItems, debouncedQuery, sourceID]);
48
- const handleAdd = useCallback((item) => saveBiblioItem(item, projectID), [projectID, saveBiblioItem]);
49
- const handleQueryChange = useCallback((event) => {
50
- setQuery(event.target.value);
51
- }, [setQuery]);
52
- // const handleSelect = useCallback(() => {}, [])
53
- useEffect(() => {
54
- const selected = new Map();
55
- for (const item of projectLibrary.values()) {
56
- selected.set(estimateID(item), item);
57
- }
58
- setSelected(selected);
59
- }, [projectLibrary]);
60
- const handleSelect = useCallback((id, item) => {
61
- if (!selected) {
62
- throw new Error('Selected map not built');
63
- }
64
- const estimatedID = estimateID(item);
65
- if (selected.has(estimatedID)) {
66
- return;
67
- }
68
- setFetching((fetching) => {
69
- fetching.add(estimatedID);
70
- return new Set([...fetching]);
71
- });
72
- crossref
73
- .fetch(item)
74
- .then((data) => {
75
- const item = buildBibliographyItem(data);
76
- return handleAdd(item);
77
- })
78
- .then(() => {
79
- window.setTimeout(() => {
80
- setFetching((fetching) => {
81
- fetching.delete(estimatedID);
82
- return new Set([...fetching]);
83
- });
84
- }, 100);
85
- })
86
- .catch((error) => {
87
- // TODO: 'failed' state
88
- console.error('failed to add', error);
89
- setError('There was an error saving this item to the library');
90
- });
91
- }, [handleAdd, selected]);
92
- if (!results) {
93
- return null;
94
- }
95
- if (!selected) {
96
- return null;
97
- }
98
- return (React.createElement(Main, null,
99
- React.createElement(Container, null,
100
- React.createElement(SearchWrapper, null,
101
- React.createElement(Search, { autoComplete: 'off', autoFocus: true, handleSearchChange: handleQueryChange, placeholder: 'Search my library', type: 'search', value: query || '' })),
102
- React.createElement(SearchResults, { error: error, fetching: fetching, handleSelect: handleSelect, results: results, searching: false, selected: selected }))));
103
- });
104
- //# sourceMappingURL=GlobalLibrary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlobalLibrary.js","sourceRoot":"","sources":["../../../../../src/components/library/GlobalLibrary.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAS,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AACrE,OAAO,KAAK,EAAE,EAAe,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5E,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE3B,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAMrB,KAAK,CAAC,IAAI,CACb,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1E,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAU,CAAA;IAC5C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