@manuscripts/style-guide 2.1.14-LEAN-4623.0 → 3.0.1-LEAN-4579.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 (221) hide show
  1. package/dist/cjs/components/AutoSaveInput.js +1 -1
  2. package/dist/cjs/components/DatePicker/CalendarDatePicker.js +7 -1
  3. package/dist/cjs/components/Dialog.js +2 -11
  4. package/dist/cjs/components/DraggableModal.js +12 -3
  5. package/dist/cjs/components/Drawer.js +13 -24
  6. package/dist/cjs/components/MultiValueInput.js +2 -2
  7. package/dist/cjs/components/RadioButton.js +3 -17
  8. package/dist/cjs/components/RelativeDate.js +2 -14
  9. package/dist/cjs/components/SelectField.js +1 -1
  10. package/dist/cjs/components/SelectedItemsBox.js +2 -14
  11. package/dist/cjs/components/StyledModal.js +9 -16
  12. package/dist/cjs/components/Tooltip.js +2 -2
  13. package/dist/cjs/components/icons/add-author.js +1 -1
  14. package/dist/cjs/components/icons/add-comment.js +1 -1
  15. package/dist/cjs/components/icons/add-figure.js +1 -1
  16. package/dist/cjs/components/icons/add-institution.js +1 -1
  17. package/dist/cjs/components/icons/add-new.js +1 -1
  18. package/dist/cjs/components/icons/add-outline.js +1 -1
  19. package/dist/cjs/components/icons/add-role.js +11 -0
  20. package/dist/cjs/components/icons/add-user.js +1 -1
  21. package/dist/cjs/components/icons/add.js +1 -1
  22. package/dist/cjs/components/icons/added.js +1 -1
  23. package/dist/cjs/components/icons/affiliation-placeholder.js +1 -1
  24. package/dist/cjs/components/icons/affiliation.js +1 -1
  25. package/dist/cjs/components/icons/arrow-down-circle.js +1 -1
  26. package/dist/cjs/components/icons/arrow-down.js +1 -1
  27. package/dist/cjs/components/icons/arrow-left.js +1 -1
  28. package/dist/cjs/components/icons/arrow-up.js +1 -1
  29. package/dist/cjs/components/icons/attach.js +1 -1
  30. package/dist/cjs/components/icons/attention-blue.js +1 -1
  31. package/dist/cjs/components/icons/attention-green.js +1 -1
  32. package/dist/cjs/components/icons/attention-orange.js +1 -1
  33. package/dist/cjs/components/icons/attention-red.js +1 -1
  34. package/dist/cjs/components/icons/author-placeholder.js +1 -1
  35. package/dist/cjs/components/icons/avatar.js +1 -1
  36. package/dist/cjs/components/icons/book.js +1 -1
  37. package/dist/cjs/components/icons/citation-count.js +1 -1
  38. package/dist/cjs/components/icons/comment-reply.js +1 -1
  39. package/dist/cjs/components/icons/comment-resolve.js +1 -1
  40. package/dist/cjs/components/icons/corresponding-author.js +1 -1
  41. package/dist/cjs/components/icons/delete-solid.js +1 -1
  42. package/dist/cjs/components/icons/deleted.js +1 -1
  43. package/dist/cjs/components/icons/dots.js +1 -1
  44. package/dist/cjs/components/icons/draggable-icon.js +1 -1
  45. package/dist/cjs/components/icons/edit.js +1 -1
  46. package/dist/cjs/components/icons/file-audio.js +1 -1
  47. package/dist/cjs/components/icons/file-code.js +1 -1
  48. package/dist/cjs/components/icons/file-compressed.js +1 -1
  49. package/dist/cjs/components/icons/file-corrupted.js +1 -1
  50. package/dist/cjs/components/icons/file-document.js +1 -1
  51. package/dist/cjs/components/icons/file-figure.js +1 -1
  52. package/dist/cjs/components/icons/file-graphical-abstract.js +1 -1
  53. package/dist/cjs/components/icons/file-image.js +1 -1
  54. package/dist/cjs/components/icons/file-latex-icon.js +1 -1
  55. package/dist/cjs/components/icons/file-main-document.js +1 -1
  56. package/dist/cjs/components/icons/file-pdf.js +1 -1
  57. package/dist/cjs/components/icons/file-table.js +1 -1
  58. package/dist/cjs/components/icons/file-unknown.js +1 -1
  59. package/dist/cjs/components/icons/file-video.js +1 -1
  60. package/dist/cjs/components/icons/handle-inspector.js +1 -1
  61. package/dist/cjs/components/icons/handle-outline.js +1 -1
  62. package/dist/cjs/components/icons/index.js +3 -3
  63. package/dist/cjs/components/icons/link.js +1 -1
  64. package/dist/cjs/components/icons/outline-block-quote.js +1 -1
  65. package/dist/cjs/components/icons/outline-code.js +1 -1
  66. package/dist/cjs/components/icons/outline-equation.js +1 -1
  67. package/dist/cjs/components/icons/outline-figure.js +1 -1
  68. package/dist/cjs/components/icons/outline-manuscript.js +1 -1
  69. package/dist/cjs/components/icons/outline-ordered-list.js +1 -1
  70. package/dist/cjs/components/icons/outline-paragraph.js +1 -1
  71. package/dist/cjs/components/icons/outline-pull-quote.js +1 -1
  72. package/dist/cjs/components/icons/outline-section.js +1 -1
  73. package/dist/cjs/components/icons/outline-table.js +1 -1
  74. package/dist/cjs/components/icons/outline-unordered-list.js +1 -1
  75. package/dist/cjs/components/icons/plus.js +1 -1
  76. package/dist/cjs/components/icons/profile-avatar.js +1 -1
  77. package/dist/cjs/components/icons/role-annotating.js +1 -1
  78. package/dist/cjs/components/icons/role-reading.js +1 -1
  79. package/dist/cjs/components/icons/save-status-offline.js +1 -1
  80. package/dist/cjs/components/icons/save-status-saved.js +1 -1
  81. package/dist/cjs/components/icons/save-status-saving.js +1 -1
  82. package/dist/cjs/components/icons/search.js +1 -1
  83. package/dist/cjs/components/icons/system-user-avatar.js +1 -1
  84. package/dist/cjs/components/icons/task-step-done.js +1 -1
  85. package/dist/cjs/components/icons/toolbar-bold.js +1 -1
  86. package/dist/cjs/components/icons/toolbar-citation.js +1 -1
  87. package/dist/cjs/components/icons/toolbar-code.js +1 -1
  88. package/dist/cjs/components/icons/toolbar-equation.js +1 -1
  89. package/dist/cjs/components/icons/toolbar-figure.js +1 -1
  90. package/dist/cjs/components/icons/toolbar-indent.js +1 -1
  91. package/dist/cjs/components/icons/toolbar-italic.js +1 -1
  92. package/dist/cjs/components/icons/toolbar-ordered-list.js +1 -1
  93. package/dist/cjs/components/icons/toolbar-subscript.js +1 -1
  94. package/dist/cjs/components/icons/toolbar-superscript.js +1 -1
  95. package/dist/cjs/components/icons/toolbar-symbol.js +1 -1
  96. package/dist/cjs/components/icons/toolbar-table.js +1 -1
  97. package/dist/cjs/components/icons/toolbar-underline.js +1 -1
  98. package/dist/cjs/components/icons/toolbar-unordered-list.js +1 -1
  99. package/dist/cjs/components/icons/triangle-collapsed.js +1 -1
  100. package/dist/cjs/components/icons/triangle-expanded.js +1 -1
  101. package/dist/cjs/components/icons/upload.js +1 -1
  102. package/dist/cjs/components/icons/vertical-ellipsis.js +1 -1
  103. package/dist/cjs/components/icons/x.js +1 -1
  104. package/dist/cjs/hooks/use-menus.js +10 -2
  105. package/dist/cjs/lib/__tests__/errors-decoder.test.js +38 -0
  106. package/dist/cjs/lib/capabilities.js +10 -10
  107. package/dist/cjs/lib/menus.js +1 -1
  108. package/dist/es/components/AutoSaveInput.js +1 -1
  109. package/dist/es/components/DatePicker/CalendarDatePicker.js +7 -1
  110. package/dist/es/components/Dialog.js +2 -11
  111. package/dist/es/components/DraggableModal.js +12 -3
  112. package/dist/es/components/Drawer.js +12 -23
  113. package/dist/es/components/MultiValueInput.js +2 -2
  114. package/dist/es/components/RadioButton.js +3 -17
  115. package/dist/es/components/RelativeDate.js +2 -14
  116. package/dist/es/components/SelectField.js +1 -1
  117. package/dist/es/components/SelectedItemsBox.js +2 -14
  118. package/dist/es/components/StyledModal.js +9 -16
  119. package/dist/es/components/Tooltip.js +2 -2
  120. package/dist/es/components/icons/add-author.js +1 -1
  121. package/dist/es/components/icons/add-comment.js +1 -1
  122. package/dist/es/components/icons/add-figure.js +1 -1
  123. package/dist/es/components/icons/add-institution.js +1 -1
  124. package/dist/es/components/icons/add-new.js +1 -1
  125. package/dist/es/components/icons/add-outline.js +1 -1
  126. package/dist/es/components/icons/add-role.js +6 -0
  127. package/dist/es/components/icons/add-user.js +1 -1
  128. package/dist/es/components/icons/add.js +1 -1
  129. package/dist/es/components/icons/added.js +1 -1
  130. package/dist/es/components/icons/affiliation-placeholder.js +1 -1
  131. package/dist/es/components/icons/affiliation.js +1 -1
  132. package/dist/es/components/icons/arrow-down-circle.js +1 -1
  133. package/dist/es/components/icons/arrow-down.js +1 -1
  134. package/dist/es/components/icons/arrow-left.js +1 -1
  135. package/dist/es/components/icons/arrow-up.js +1 -1
  136. package/dist/es/components/icons/attach.js +1 -1
  137. package/dist/es/components/icons/attention-blue.js +1 -1
  138. package/dist/es/components/icons/attention-green.js +1 -1
  139. package/dist/es/components/icons/attention-orange.js +1 -1
  140. package/dist/es/components/icons/attention-red.js +1 -1
  141. package/dist/es/components/icons/author-placeholder.js +1 -1
  142. package/dist/es/components/icons/avatar.js +1 -1
  143. package/dist/es/components/icons/book.js +1 -1
  144. package/dist/es/components/icons/citation-count.js +1 -1
  145. package/dist/es/components/icons/comment-reply.js +1 -1
  146. package/dist/es/components/icons/comment-resolve.js +1 -1
  147. package/dist/es/components/icons/corresponding-author.js +1 -1
  148. package/dist/es/components/icons/delete-solid.js +1 -1
  149. package/dist/es/components/icons/deleted.js +1 -1
  150. package/dist/es/components/icons/dots.js +1 -1
  151. package/dist/es/components/icons/draggable-icon.js +1 -1
  152. package/dist/es/components/icons/edit.js +1 -1
  153. package/dist/es/components/icons/file-audio.js +1 -1
  154. package/dist/es/components/icons/file-code.js +1 -1
  155. package/dist/es/components/icons/file-compressed.js +1 -1
  156. package/dist/es/components/icons/file-corrupted.js +1 -1
  157. package/dist/es/components/icons/file-document.js +1 -1
  158. package/dist/es/components/icons/file-figure.js +1 -1
  159. package/dist/es/components/icons/file-graphical-abstract.js +1 -1
  160. package/dist/es/components/icons/file-image.js +1 -1
  161. package/dist/es/components/icons/file-latex-icon.js +1 -1
  162. package/dist/es/components/icons/file-main-document.js +1 -1
  163. package/dist/es/components/icons/file-pdf.js +1 -1
  164. package/dist/es/components/icons/file-table.js +1 -1
  165. package/dist/es/components/icons/file-unknown.js +1 -1
  166. package/dist/es/components/icons/file-video.js +1 -1
  167. package/dist/es/components/icons/handle-inspector.js +1 -1
  168. package/dist/es/components/icons/handle-outline.js +1 -1
  169. package/dist/es/components/icons/index.js +1 -1
  170. package/dist/es/components/icons/link.js +1 -1
  171. package/dist/es/components/icons/outline-block-quote.js +1 -1
  172. package/dist/es/components/icons/outline-code.js +1 -1
  173. package/dist/es/components/icons/outline-equation.js +1 -1
  174. package/dist/es/components/icons/outline-figure.js +1 -1
  175. package/dist/es/components/icons/outline-manuscript.js +1 -1
  176. package/dist/es/components/icons/outline-ordered-list.js +1 -1
  177. package/dist/es/components/icons/outline-paragraph.js +1 -1
  178. package/dist/es/components/icons/outline-pull-quote.js +1 -1
  179. package/dist/es/components/icons/outline-section.js +1 -1
  180. package/dist/es/components/icons/outline-table.js +1 -1
  181. package/dist/es/components/icons/outline-unordered-list.js +1 -1
  182. package/dist/es/components/icons/plus.js +1 -1
  183. package/dist/es/components/icons/profile-avatar.js +1 -1
  184. package/dist/es/components/icons/role-annotating.js +1 -1
  185. package/dist/es/components/icons/role-reading.js +1 -1
  186. package/dist/es/components/icons/save-status-offline.js +1 -1
  187. package/dist/es/components/icons/save-status-saved.js +1 -1
  188. package/dist/es/components/icons/save-status-saving.js +1 -1
  189. package/dist/es/components/icons/search.js +1 -1
  190. package/dist/es/components/icons/system-user-avatar.js +1 -1
  191. package/dist/es/components/icons/task-step-done.js +1 -1
  192. package/dist/es/components/icons/toolbar-bold.js +1 -1
  193. package/dist/es/components/icons/toolbar-citation.js +1 -1
  194. package/dist/es/components/icons/toolbar-code.js +1 -1
  195. package/dist/es/components/icons/toolbar-equation.js +1 -1
  196. package/dist/es/components/icons/toolbar-figure.js +1 -1
  197. package/dist/es/components/icons/toolbar-indent.js +1 -1
  198. package/dist/es/components/icons/toolbar-italic.js +1 -1
  199. package/dist/es/components/icons/toolbar-ordered-list.js +1 -1
  200. package/dist/es/components/icons/toolbar-subscript.js +1 -1
  201. package/dist/es/components/icons/toolbar-superscript.js +1 -1
  202. package/dist/es/components/icons/toolbar-symbol.js +1 -1
  203. package/dist/es/components/icons/toolbar-table.js +1 -1
  204. package/dist/es/components/icons/toolbar-underline.js +1 -1
  205. package/dist/es/components/icons/toolbar-unordered-list.js +1 -1
  206. package/dist/es/components/icons/triangle-collapsed.js +1 -1
  207. package/dist/es/components/icons/triangle-expanded.js +1 -1
  208. package/dist/es/components/icons/upload.js +1 -1
  209. package/dist/es/components/icons/vertical-ellipsis.js +1 -1
  210. package/dist/es/components/icons/x.js +1 -1
  211. package/dist/es/hooks/use-menus.js +10 -2
  212. package/dist/es/lib/__tests__/errors-decoder.test.js +33 -0
  213. package/dist/es/lib/capabilities.js +10 -10
  214. package/dist/es/lib/menus.js +1 -1
  215. package/dist/types/components/Drawer.d.ts +10 -11
  216. package/dist/types/components/icons/add-role.d.ts +4 -0
  217. package/dist/types/components/icons/index.d.ts +1 -1
  218. package/dist/types/{components/icons/chat.d.ts → lib/__tests__/errors-decoder.test.d.ts} +2 -5
  219. package/package.json +74 -76
  220. package/dist/cjs/components/icons/chat.js +0 -26
  221. package/dist/es/components/icons/chat.js +0 -21
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import React from 'react';
17
- const TaskStepDoneIcon = (props) => (React.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
17
+ const TaskStepDoneIcon = (props) => (React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
18
18
  React.createElement("path", { d: "M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z", fill: "#353535" }),
19
19
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.96942 7.53878C4.56992 7.16264 3.93338 7.1734 3.53964 7.57093L3.71338 7.39552C3.32324 7.78942 3.33476 8.41736 3.73198 8.79134L6.4256 11.3274L12.2328 5.82715C12.6326 5.44848 12.6332 4.83693 12.2258 4.45339L12.4056 4.62263C12.0019 4.24258 11.3437 4.2432 10.9389 4.62068L6.38269 8.86941L4.96942 7.53878Z", fill: "white" })));
20
20
  export default TaskStepDoneIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarBoldIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarBoldIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.0757 13.5688H5V3H9.9292C12.0386 3 13.2837 3.99609 13.2837 5.63672C13.2837 6.77197 12.4341 7.73145 11.3135 7.88525V8.02441C12.6978 8.09766 13.7671 9.17432 13.7671 10.522C13.7671 12.375 12.3389 13.5688 10.0757 13.5688ZM7.68799 4.89697V7.30664H9.10889C10.0903 7.30664 10.6616 6.85254 10.6616 6.10547C10.6616 5.35107 10.127 4.89697 9.21143 4.89697H7.68799ZM7.68799 11.6719H9.31396C10.4272 11.6719 11.0352 11.1812 11.0352 10.2876C11.0352 9.42334 10.4126 8.93994 9.29932 8.93994H7.68799V11.6719Z", fill: "#6E6E6E" })));
4
4
  export default ToolbarBoldIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarCitationIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarCitationIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.018 6.842L13.656 5.482L14.336 7.114L10.63 8.406L12.874 11.5L11.48 12.554L9.134 9.29L6.924 12.554L5.394 11.5L7.604 8.406L4 7.114L4.612 5.482L8.216 6.842V3H10.018V6.842Z", fill: "#1A9BC7" })));
4
4
  export default ToolbarCitationIcon;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- const ToolbarCodeIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarCodeIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { d: "M5.96863 12.7023L1.46861 8.20223L6.07794 3.5929", stroke: "#B3A1FC", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
4
4
  React.createElement("path", { d: "M13.0779 12.7023L17.578 8.20223L12.9686 3.5929", stroke: "#B3A1FC", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })));
5
5
  export default ToolbarCodeIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarEquationIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarEquationIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.00284 9.09123C7.00284 7.13615 7.50772 5.5302 8.55508 4.19816H9.57559C8.80215 5.18645 8.19522 7.24895 8.19522 9.08586C8.19522 10.9335 8.79678 12.996 9.57559 13.9843H8.55508C7.50772 12.6523 7.00284 11.0463 7.00284 9.09123ZM12.9835 10.2568H12.8976L11.6193 12.33H10.3517L12.2906 9.41887L10.3356 6.48088H11.6837L12.9405 8.54338H13.0318L14.2779 6.48088H15.5616L13.6334 9.37053L15.5831 12.33H14.2565L12.9835 10.2568ZM4.93594 2.3125C5.33438 2.3125 5.58438 2.35938 5.85001 2.41406L5.61563 3.52344C5.44376 3.48438 5.17032 3.44531 4.80313 3.44531C4.02969 3.44531 3.55313 3.85156 3.37344 4.79688L3.22501 5.57812H5.15469L4.92032 6.70312H2.99063L1.47501 14H0.100006L1.61563 6.70312H0.217194L0.451569 5.57812H1.85001L2.00626 4.75781C2.33438 3.03125 3.23282 2.3125 4.93594 2.3125ZM17.3636 4.19816C18.4056 5.5302 18.9105 7.13615 18.9105 9.09123C18.9105 11.0463 18.4056 12.6523 17.3636 13.9843H16.3431C17.1165 12.996 17.7235 10.9335 17.7235 9.08586C17.7235 7.24895 17.1165 5.18645 16.3431 4.19816H17.3636Z", fill: "#FE8F1F" })));
4
4
  export default ToolbarEquationIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarFigureIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarFigureIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.5 0.5C14.433 0.5 16 2.067 16 4V12C16 13.933 14.433 15.5 12.5 15.5H6.5C4.567 15.5 3 13.933 3 12V4C3 2.067 4.567 0.5 6.5 0.5H12.5ZM12.5 2H6.5C5.39543 2 4.5 2.89543 4.5 4V12C4.5 13.1046 5.39543 14 6.5 14H12.5C13.6046 14 14.5 13.1046 14.5 12V4C14.5 2.89543 13.6046 2 12.5 2ZM7.25 5C7.66421 5 8 5.33579 8 5.75V11.25C8 11.6642 7.66421 12 7.25 12C6.83579 12 6.5 11.6642 6.5 11.25V5.75C6.5 5.33579 6.83579 5 7.25 5ZM10.25 7C10.6642 7 11 7.33579 11 7.75V11.25C11 11.6642 10.6642 12 10.25 12C9.83579 12 9.5 11.6642 9.5 11.25V7.75C9.5 7.33579 9.83579 7 10.25 7Z", fill: "#8DD439" })));
4
4
  export default ToolbarFigureIcon;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- const ToolbarIndentIcon = (props) => (React.createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarIndentIcon = (props) => (React.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("line", { x1: "13", y1: "6.5", x2: "20", y2: "6.5", stroke: "#6E6E6E", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
4
4
  React.createElement("line", { x1: "13", y1: "10.25", x2: "20", y2: "10.25", stroke: "#6E6E6E", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
5
5
  React.createElement("line", { x1: "13", y1: "14", x2: "20", y2: "14", stroke: "#6E6E6E", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarItalicIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarItalicIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.21802 13.4211H7.5L9.82349 2.5H11.5415L9.21802 13.4211Z", fill: "#6E6E6E" })));
4
4
  export default ToolbarItalicIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarOrderedListIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarOrderedListIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.87165 9C4.95312 9 5.67634 9.57924 5.67634 10.433C5.67634 10.9688 5.36161 11.4442 4.50446 12.2076L3.70759 12.9408V13.0045H5.7433V13.9621H2.07031V13.1417L3.5971 11.7054C4.30692 11.0491 4.48772 10.8047 4.48772 10.5201C4.48772 10.1652 4.22656 9.92745 3.82812 9.92745C3.41295 9.92745 3.125 10.2087 3.125 10.6071V10.6306H2V10.6105C2 9.64955 2.75 9 3.87165 9ZM15.8583 11C16.2725 11 16.6083 11.3358 16.6083 11.75C16.6083 12.1642 16.2725 12.5 15.8583 12.5H9.35826C8.94405 12.5 8.60826 12.1642 8.60826 11.75C8.60826 11.3358 8.94405 11 9.35826 11H15.8583ZM4.47433 2.25V7.08147H3.24554V3.35826H3.18192L2.01674 4.14509V3.08705L3.24554 2.25H4.47433ZM15.8583 4C16.2725 4 16.6083 4.33579 16.6083 4.75C16.6083 5.16421 16.2725 5.5 15.8583 5.5H9.35826C8.94405 5.5 8.60826 5.16421 8.60826 4.75C8.60826 4.33579 8.94405 4 9.35826 4H15.8583Z", fill: "#0B6BB8" })));
4
4
  export default ToolbarOrderedListIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarSubscriptIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarSubscriptIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.9121 8.71838V15.0597H12.585V10.0104H12.5059L10.9502 11.0826V9.84778L12.5894 8.71838H13.9121ZM11.2808 3.90002V5.31555H8.45605V13.0597H6.81836V5.31555H4V3.90002H11.2808Z", fill: "#6E6E6E" })));
4
4
  export default ToolbarSubscriptIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarSuperscriptIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarSuperscriptIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7808 3.88165V5.29718H7.95605V13.0413H6.31836V5.29718H3.5V3.88165H10.7808ZM15.4121 2.70001V9.04132H14.085V3.992H14.0059L12.4502 5.06427V3.82941L14.0894 2.70001H15.4121Z", fill: "#6E6E6E" })));
4
4
  export default ToolbarSuperscriptIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarSymbolIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarSymbolIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.93411 4.5L10.3289 6.8948L10.3309 6.89282L11.4033 7.96526L7.86861 11.5H13.38V13H5.38V11.5H5.72371L9.25647 7.96725L5.78922 4.5H5.35V3H13.35V4.5H7.93411Z", fill: "#FFBD26" })));
4
4
  export default ToolbarSymbolIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarTableIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarTableIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 2C16.3807 2 17.5 3.11929 17.5 4.5V11.5C17.5 12.8807 16.3807 14 15 14H4C2.61929 14 1.5 12.8807 1.5 11.5V4.5C1.5 3.11929 2.61929 2 4 2H15ZM5 7H3V11.5C3 12.0128 3.38604 12.4355 3.88338 12.4933L4 12.5H5V7ZM16 7H6.5V12.5H15C15.5128 12.5 15.9355 12.114 15.9933 11.6166L16 11.5V7ZM5 3.5H4C3.44772 3.5 3 3.94772 3 4.5V5.5H5V3.5ZM15 3.5H6.5V5.5H16V4.5C16 3.98716 15.614 3.56449 15.1166 3.50673L15 3.5Z", fill: "#F35143" })));
4
4
  export default ToolbarTableIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarUnderlineIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarUnderlineIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.75 12.4551C14.1642 12.4551 14.5 12.7909 14.5 13.2051C14.5 13.6193 14.1642 13.9551 13.75 13.9551H5.25C4.83579 13.9551 4.5 13.6193 4.5 13.2051C4.5 12.7909 4.83579 12.4551 5.25 12.4551H13.75ZM7.57227 2.5V7.90234C7.57227 9.04492 8.28711 9.8125 9.54102 9.8125C10.7949 9.8125 11.5039 9.04492 11.5039 7.90234V2.5H13.0156V8.04297C13.0156 9.88867 11.6797 11.166 9.54102 11.166C7.40234 11.166 6.06641 9.88867 6.06641 8.04297V2.5H7.57227Z", fill: "#6E6E6E" })));
4
4
  export default ToolbarUnderlineIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const ToolbarUnorderedListIcon = (props) => (React.createElement("svg", Object.assign({ width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const ToolbarUnorderedListIcon = (props) => (React.createElement("svg", { width: "19", height: "16", viewBox: "0 0 19 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.75569 2.5C5.00148 2.5 6.01139 3.50991 6.01139 4.75569C6.01139 6.00148 5.00148 7.01139 3.75569 7.01139C2.50991 7.01139 1.5 6.00148 1.5 4.75569C1.5 3.50991 2.50991 2.5 3.75569 2.5ZM3.75569 3.73038C3.18943 3.73038 2.73038 4.18943 2.73038 4.75569C2.73038 5.32196 3.18943 5.78101 3.75569 5.78101C4.32196 5.78101 4.78101 5.32196 4.78101 4.75569C4.78101 4.18943 4.32196 3.73038 3.75569 3.73038ZM3.75569 9.5C5.00148 9.5 6.01139 10.5099 6.01139 11.7557C6.01139 13.0015 5.00148 14.0114 3.75569 14.0114C2.50991 14.0114 1.5 13.0015 1.5 11.7557C1.5 10.5099 2.50991 9.5 3.75569 9.5ZM3.75569 10.7304C3.18943 10.7304 2.73038 11.1894 2.73038 11.7557C2.73038 12.322 3.18943 12.781 3.75569 12.781C4.32196 12.781 4.78101 12.322 4.78101 11.7557C4.78101 11.1894 4.32196 10.7304 3.75569 10.7304ZM16.25 11C16.6642 11 17 11.3358 17 11.75C17 12.1642 16.6642 12.5 16.25 12.5H9.75C9.33579 12.5 9 12.1642 9 11.75C9 11.3358 9.33579 11 9.75 11H16.25ZM16.25 4C16.6642 4 17 4.33579 17 4.75C17 5.16421 16.6642 5.5 16.25 5.5H9.75C9.33579 5.5 9 5.16421 9 4.75C9 4.33579 9.33579 4 9.75 4H16.25Z", fill: "#0B6BB8" })));
4
4
  export default ToolbarUnorderedListIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const TriangleCollapsedIcon = (props) => (React.createElement("svg", Object.assign({ width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const TriangleCollapsedIcon = (props) => (React.createElement("svg", { width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.731 5.65627C5.38994 5.23955 5.43134 4.60792 5.82348 4.24548C6.21562 3.88304 6.81 3.92704 7.15106 4.34375L10.5 8.43549L7.20134 12.6403C6.86855 13.0645 6.27516 13.1217 5.87597 12.7681C5.47679 12.4144 5.42296 11.7839 5.75575 11.3596L8.02818 8.46297L5.731 5.65627Z", fill: "#6E6E6E" })));
4
4
  export default TriangleCollapsedIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- const TriangleExpandedIcon = (props) => (React.createElement("svg", Object.assign({ width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const TriangleExpandedIcon = (props) => (React.createElement("svg", { width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.8437 6.231C11.2604 5.88994 11.8921 5.93134 12.2545 6.32348C12.617 6.71562 12.573 7.31 12.1562 7.65106L8.06451 11L3.85969 7.70134C3.43548 7.36855 3.37828 6.77516 3.73193 6.37598C4.08557 5.97679 4.71615 5.92296 5.14035 6.25575L8.03703 8.52818L10.8437 6.231Z", fill: "#6E6E6E" })));
4
4
  export default TriangleExpandedIcon;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- const UploadIcon = (props) => (React.createElement("svg", Object.assign({ width: "17", height: "18", viewBox: "0 0 17 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const UploadIcon = (props) => (React.createElement("svg", { width: "17", height: "18", viewBox: "0 0 17 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { d: "M8.5 12.5V1.5", stroke: "#6E6E6E", strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }),
4
4
  React.createElement("path", { d: "M13.5 6.5L8.5 1.5L3.5 6.5", stroke: "#6E6E6E", strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }),
5
5
  React.createElement("path", { d: "M15.5 16.5H1.5", stroke: "#6E6E6E", strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" })));
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- const VerticalEllipsisIcon = (props) => (React.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ const VerticalEllipsisIcon = (props) => (React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("circle", { cx: "8", cy: "2", r: "2", fill: "#1A9BC7" }),
4
4
  React.createElement("circle", { cx: "8", cy: "8", r: "2", fill: "#1A9BC7" }),
5
5
  React.createElement("circle", { cx: "8", cy: "14", r: "2", fill: "#1A9BC7" })));
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export const XIcon = (props) => (React.createElement("svg", Object.assign({ width: 30, height: 30, viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
2
+ export const XIcon = (props) => (React.createElement("svg", { width: 30, height: 30, viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
3
3
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.34921 12.4923C3.01447 12.1576 3.01447 11.6187 3.34921 11.2839L12.7654 \n 1.86772C13.1001 1.53298 13.639 1.53298 13.9738 1.86772C14.3085 2.20246 \n 14.3085 2.74135 13.9738 3.07609L4.55758 12.4923C4.22284 12.8271 3.68395 \n 12.8271 3.34921 12.4923Z" }),
4
4
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.34921 1.86667C3.01447 2.20141 3.01447 2.74029 3.34921 3.07503L12.7654 \n 12.4913C13.1001 12.826 13.639 12.826 13.9738 12.4913C14.3085 12.1565 \n 14.3085 11.6176 13.9738 11.2829L4.55758 1.86667C4.22284 1.53193 3.68395 \n 1.53193 3.34921 1.86667Z" })));
5
5
  export default XIcon;
@@ -26,13 +26,21 @@ const getSubmenuState = (specs, pointer, position) => {
26
26
  return spec;
27
27
  }
28
28
  const current = [...position, index];
29
- return Object.assign(Object.assign({}, spec), { submenu: spec.submenu && getSubmenuState(spec.submenu, pointer, current), isOpen: isPart(pointer, current) });
29
+ return {
30
+ ...spec,
31
+ submenu: spec.submenu && getSubmenuState(spec.submenu, pointer, current),
32
+ isOpen: isPart(pointer, current),
33
+ };
30
34
  });
31
35
  };
32
36
  const getMenuState = (specs, pointer) => {
33
37
  return specs.map((spec, index) => {
34
38
  const position = [index];
35
- return Object.assign(Object.assign({}, spec), { submenu: spec.submenu && getSubmenuState(spec.submenu, pointer, position), isOpen: isPart(pointer, position) });
39
+ return {
40
+ ...spec,
41
+ submenu: spec.submenu && getSubmenuState(spec.submenu, pointer, position),
42
+ isOpen: isPart(pointer, position),
43
+ };
36
44
  });
37
45
  };
38
46
  const getMenuAt = (state, position) => {
@@ -0,0 +1,33 @@
1
+ /*!
2
+ * © 2019 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import decodeError from '../errors-decoder';
17
+ describe('decodedError', () => {
18
+ it('should decode error as', () => {
19
+ const decoded = decodeError('NOTES_NOT_UPDATED');
20
+ expect(decoded).toEqual({
21
+ title: 'Production Notes cannot be updated',
22
+ description: 'There was an internal error while updating the Production notes.',
23
+ type: 'System',
24
+ });
25
+ });
26
+ it('should decode unknown error as', () => {
27
+ const decoded = decodeError('UNKNOWN_FAKE_ERROR');
28
+ expect(decoded).toEqual({
29
+ title: 'Unknown',
30
+ description: '',
31
+ });
32
+ });
33
+ });
@@ -8,15 +8,15 @@ var Actions;
8
8
  Actions["editWithoutTracking"] = "edit-without-tracking";
9
9
  })(Actions || (Actions = {}));
10
10
  export const getCapabilities = (project, profile, role, actions, isViewingMode) => {
11
- const userID = profile === null || profile === void 0 ? void 0 : profile.userID;
12
- const isMemberOf = (group) => { var _a; return (_a = group === null || group === void 0 ? void 0 : group.includes(userID !== null && userID !== void 0 ? userID : '')) !== null && _a !== void 0 ? _a : false; };
13
- const isOwner = isMemberOf(project === null || project === void 0 ? void 0 : project.owners);
14
- const isEditor = isMemberOf(project === null || project === void 0 ? void 0 : project.editors);
15
- const isWriter = isMemberOf(project === null || project === void 0 ? void 0 : project.writers);
16
- const isAnnotator = isMemberOf(project === null || project === void 0 ? void 0 : project.annotators);
17
- const isProofer = isMemberOf(project === null || project === void 0 ? void 0 : project.proofers);
18
- const isViewer = isMemberOf(project === null || project === void 0 ? void 0 : project.viewers) || isViewingMode;
19
- const allowed = (action) => !!(actions === null || actions === void 0 ? void 0 : actions.includes(action));
11
+ const userID = profile?.userID;
12
+ const isMemberOf = (group) => group?.includes(userID ?? '') ?? false;
13
+ const isOwner = isMemberOf(project?.owners);
14
+ const isEditor = isMemberOf(project?.editors);
15
+ const isWriter = isMemberOf(project?.writers);
16
+ const isAnnotator = isMemberOf(project?.annotators);
17
+ const isProofer = isMemberOf(project?.proofers);
18
+ const isViewer = isMemberOf(project?.viewers) || isViewingMode;
19
+ const allowed = (action) => !!actions?.includes(action);
20
20
  const canEditWithoutTracking = allowed(Actions.editWithoutTracking);
21
21
  const isPrivileged = isOwner || isEditor || isWriter;
22
22
  const canEditFiles = (isPrivileged || isAnnotator) && !isViewingMode;
@@ -63,5 +63,5 @@ export const useCalcPermission = ({ project, profile, role, permittedActions, is
63
63
  };
64
64
  export const CapabilitiesProvider = (props) => {
65
65
  const { can } = props;
66
- return (React.createElement(CapabilitiesContext.Provider, { value: can }, props === null || props === void 0 ? void 0 : props.children));
66
+ return (React.createElement(CapabilitiesContext.Provider, { value: can }, props?.children));
67
67
  };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export const isMenuSeparator = (menu) => {
17
- return (menu === null || menu === void 0 ? void 0 : menu.role) === 'separator';
17
+ return menu?.role === 'separator';
18
18
  };
@@ -1,17 +1,16 @@
1
1
  import React from 'react';
2
- interface DrawerProps {
3
- items: Array<{
4
- id: string;
5
- label: string;
6
- country?: string;
7
- city?: string;
8
- state?: string;
9
- }>;
10
- selectedIds?: string[];
2
+ export interface DrawerProps {
11
3
  title: string;
12
- onSelect: (id: string) => void;
13
4
  onBack: () => void;
14
5
  width?: string;
6
+ children: React.ReactNode;
15
7
  }
8
+ export declare const DrawerItemsList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const DrawerListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
10
+ selected?: boolean | undefined;
11
+ }, never>;
12
+ export declare const DrawerIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const DrawerLabelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const DrawerItemLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const DrawerItemMeta: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
16
16
  export declare const Drawer: React.FC<DrawerProps>;
17
- export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ declare const AddRoleIcon: React.FC<IconProps>;
4
+ export default AddRoleIcon;
@@ -20,6 +20,7 @@ export { default as AddedIcon } from './added';
20
20
  export { default as AddNewIcon } from './add-new';
21
21
  export { default as AddOutlineIcon } from './add-outline';
22
22
  export { default as AddIcon } from './add';
23
+ export { default as AddRoleIcon } from './add-role';
23
24
  export { default as ArrowDownIcon } from './arrow-down';
24
25
  export { default as ArrowDownCircleIcon } from './arrow-down-circle';
25
26
  export { default as ArrowLeftIcon } from './arrow-left';
@@ -35,7 +36,6 @@ export { default as AffiliationIcon } from './affiliation';
35
36
  export { default as AuthorPlaceholderIcon } from './author-placeholder';
36
37
  export { default as AffiliationPlaceholderIcon } from './affiliation-placeholder';
37
38
  export { default as BookIcon } from './book';
38
- export { default as ChatIcon } from './chat';
39
39
  export { default as SystemUserAvatarIcon } from './system-user-avatar';
40
40
  export { default as CitationCountIcon } from './citation-count';
41
41
  export { default as CommentReplyIcon } from './comment-reply';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * © 2025 Atypon Systems LLC
2
+ * © 2019 Atypon Systems LLC
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import React from 'react';
17
- import { IconProps } from './types';
18
- declare const ChatIcon: React.FC<IconProps>;
19
- export default ChatIcon;
16
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "2.1.14-LEAN-4623.0",
4
+ "version": "3.0.1-LEAN-4579.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -15,97 +15,95 @@
15
15
  "react"
16
16
  ],
17
17
  "scripts": {
18
- "build": "npm-run-all --parallel 'build:* --project tsconfig.build.json'",
18
+ "build": "npm-run-all --parallel build:*",
19
19
  "build:cjs": "tsc --outDir dist/cjs --module commonjs",
20
20
  "build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration",
21
21
  "build-storybook": "storybook build",
22
- "dev": "npm-run-all --parallel 'build:* --project tsconfig.build.json --watch'",
22
+ "dev": "npm-run-all --parallel 'build:* --watch'",
23
23
  "lint": "eslint src stories --ext .ts,.tsx --max-warnings=0",
24
- "lint:fix": "eslint src stories --fix --ext .ts,.tsx --max-warnings=0",
25
24
  "prebuild": "rimraf dist",
26
25
  "prettier": "prettier --write \"{src,stories}/**/*.{ts,tsx}\"",
27
26
  "preversion": "npm-run-all --parallel lint typecheck test",
28
27
  "storybook": "storybook dev -p 6006",
29
28
  "test": "jest",
30
29
  "typecheck": "tsc --noEmit",
31
- "version": "yarn build",
30
+ "version": "pnpm build",
32
31
  "prepare": "husky install"
33
32
  },
34
33
  "dependencies": {
35
- "@headlessui/react": "^2.1.10",
36
- "@manuscripts/json-schema": "2.2.11",
37
- "date-fns": "^2.29.3",
38
- "formik": "^2.2.9",
39
- "fuzzysort": "^2.0.4",
40
- "lodash": "^4.17.21",
41
- "prosemirror-commands": "1.5.2",
42
- "prosemirror-history": "1.3.2",
43
- "prosemirror-keymap": "1.2.2",
44
- "prosemirror-model": "1.19.4",
34
+ "@headlessui/react": "2.2.3",
35
+ "@manuscripts/json-schema": "2.2.12",
36
+ "date-fns": "2.30.0",
37
+ "formik": "2.4.6",
38
+ "lodash": "4.17.21",
39
+ "prosemirror-commands": "1.7.1",
40
+ "prosemirror-history": "1.4.1",
41
+ "prosemirror-keymap": "1.2.3",
42
+ "prosemirror-model": "1.25.0",
45
43
  "prosemirror-state": "1.4.3",
46
- "prosemirror-view": "1.32.7",
47
- "react": "^18.3.1",
48
- "react-dnd": "^16.0.1",
49
- "react-dnd-html5-backend": "^16.0.1",
50
- "react-dom": "^18.3.1",
51
- "react-is": "^18.3.1",
52
- "react-modal": "^3.16.1",
53
- "react-modern-calendar-datepicker": "^3.1.6",
54
- "react-router-dom": "^5.3.4",
55
- "react-select": "^5.7.3",
56
- "react-sizeme": "^3.0.2",
57
- "react-tooltip": "^5.28.0",
58
- "styled-components": "^5.2.0"
44
+ "prosemirror-view": "1.40.0",
45
+ "react": "18.3.1",
46
+ "react-dnd": "16.0.1",
47
+ "react-dnd-html5-backend": "16.0.1",
48
+ "react-dom": "18.3.1",
49
+ "react-is": "18.3.1",
50
+ "react-modal": "3.16.3",
51
+ "react-modern-calendar-datepicker": "3.1.6",
52
+ "react-router-dom": "5.3.4",
53
+ "react-select": "5.10.1",
54
+ "react-sizeme": "3.0.2",
55
+ "react-tooltip": "5.28.1",
56
+ "styled-components": "5.3.11"
59
57
  },
60
58
  "devDependencies": {
61
- "@babel/core": "^7.20.5",
62
- "@babel/preset-env": "^7.20.2",
63
- "@babel/preset-react": "^7.18.6",
64
- "@babel/preset-typescript": "^7.18.6",
65
- "@manuscripts/eslint-config": "^0.5.1",
66
- "@storybook/addon-essentials": "^7.6.10",
67
- "@storybook/addon-interactions": "^7.6.10",
68
- "@storybook/addon-links": "^7.6.10",
69
- "@storybook/blocks": "^7.6.10",
70
- "@storybook/react": "^7.6.10",
71
- "@storybook/react-webpack5": "^7.6.10",
72
- "@storybook/test": "^7.6.10",
73
- "@types/jest": "^29.2.4",
74
- "@types/lodash": "^4.14.202",
75
- "@types/react": "^18.3.1",
76
- "@types/react-dom": "^18.3.0",
77
- "@types/react-modal": "^3.16.3",
78
- "@types/react-router-dom": "^5.3.3",
79
- "@types/styled-components": "^5.1.4",
80
- "@typescript-eslint/eslint-plugin": "^5.47.0",
81
- "@typescript-eslint/parser": "^5.47.0",
82
- "babel-jest": "^29.3.1",
83
- "eslint": "^8.30.0",
84
- "eslint-config-prettier": "^8.5.0",
85
- "eslint-plugin-header": "^3.1.1",
86
- "eslint-plugin-import": "^2.26.0",
87
- "eslint-plugin-jest": "^27.1.7",
88
- "eslint-plugin-jsx-a11y": "^6.6.1",
89
- "eslint-plugin-mdx": "^2.0.5",
90
- "eslint-plugin-node": "^11.1.0",
91
- "eslint-plugin-prettier": "^4.2.1",
92
- "eslint-plugin-promise": "^6.1.1",
93
- "eslint-plugin-react": "^7.31.11",
94
- "eslint-plugin-react-hooks": "^4.6.0",
95
- "eslint-plugin-simple-import-sort": "^8.0.0",
96
- "eslint-plugin-storybook": "^0.6.15",
97
- "husky": "^8.0.2",
98
- "jest": "^29.3.1",
99
- "jest-environment-jsdom": "^29.3.1",
100
- "npm-run-all": "^4.1.5",
101
- "prettier": "^2.8.1",
102
- "rimraf": "^3.0.0",
103
- "storybook": "^7.6.10",
104
- "typeface-lato": "^1.1.13",
105
- "typescript": "^4.4.4"
59
+ "@babel/core": "7.23.7",
60
+ "@babel/preset-env": "7.23.8",
61
+ "@babel/preset-react": "7.23.3",
62
+ "@babel/preset-typescript": "7.23.3",
63
+ "@manuscripts/eslint-config": "0.5.1",
64
+ "@storybook/addon-actions": "7.6.10",
65
+ "@storybook/addon-essentials": "7.6.10",
66
+ "@storybook/addon-interactions": "7.6.10",
67
+ "@storybook/addon-links": "7.6.10",
68
+ "@storybook/blocks": "7.6.10",
69
+ "@storybook/react": "7.6.10",
70
+ "@storybook/react-webpack5": "7.6.10",
71
+ "@storybook/test": "7.6.10",
72
+ "@types/jest": "29.5.14",
73
+ "@types/lodash": "4.17.16",
74
+ "@types/react": "18.3.21",
75
+ "@types/react-dom": "18.3.7",
76
+ "@types/react-modal": "3.16.3",
77
+ "@types/react-router-dom": "5.3.3",
78
+ "@types/styled-components": "5.1.34",
79
+ "@typescript-eslint/eslint-plugin": "5.62.0",
80
+ "@typescript-eslint/parser": "5.62.0",
81
+ "babel-jest": "29.7.0",
82
+ "eslint": "8.57.1",
83
+ "eslint-config-prettier": "8.10.0",
84
+ "eslint-plugin-header": "3.1.1",
85
+ "eslint-plugin-import": "2.31.0",
86
+ "eslint-plugin-jest": "27.9.0",
87
+ "eslint-plugin-jsx-a11y": "6.10.2",
88
+ "eslint-plugin-mdx": "2.3.4",
89
+ "eslint-plugin-node": "11.1.0",
90
+ "eslint-plugin-prettier": "4.2.1",
91
+ "eslint-plugin-promise": "6.6.0",
92
+ "eslint-plugin-react": "7.37.5",
93
+ "eslint-plugin-react-hooks": "4.6.2",
94
+ "eslint-plugin-simple-import-sort": "8.0.0",
95
+ "eslint-plugin-storybook": "0.12.0",
96
+ "husky": "8.0.3",
97
+ "jest": "29.7.0",
98
+ "jest-environment-jsdom": "29.7.0",
99
+ "npm-run-all": "4.1.5",
100
+ "prettier": "2.8.8",
101
+ "rimraf": "6.0.1",
102
+ "storybook": "7.6.10",
103
+ "typeface-lato": "1.1.13",
104
+ "typescript": "4.9.5"
106
105
  },
107
- "resolutions": {
108
- "@types/react": "^18.3.1",
109
- "jackspeak": "2.1.1"
106
+ "engines": {
107
+ "node": ">=20.16.0"
110
108
  }
111
109
  }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- /*!
3
- * © 2025 Atypon Systems LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- const react_1 = __importDefault(require("react"));
22
- const ChatIcon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
23
- react_1.default.createElement("path", { d: "M3.5 4.5V9.5L0.5 14.5H13.5C14.605 14.5 15.5 13.605 15.5 12.5V4.5C15.5 3.395 14.605 2.5 13.5 2.5H5.5C4.395 2.5 3.5 3.395 3.5 4.5Z", fill: "white", fillOpacity: "0.01", stroke: "#353535", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }),
24
- react_1.default.createElement("path", { d: "M6.5 6.5H12.5", stroke: "#353535", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }),
25
- react_1.default.createElement("path", { d: "M6.5 10.5H9.5", stroke: "#353535", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" })));
26
- exports.default = ChatIcon;
@@ -1,21 +0,0 @@
1
- /*!
2
- * © 2025 Atypon Systems LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import React from 'react';
17
- const ChatIcon = (props) => (React.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
18
- React.createElement("path", { d: "M3.5 4.5V9.5L0.5 14.5H13.5C14.605 14.5 15.5 13.605 15.5 12.5V4.5C15.5 3.395 14.605 2.5 13.5 2.5H5.5C4.395 2.5 3.5 3.395 3.5 4.5Z", fill: "white", fillOpacity: "0.01", stroke: "#353535", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }),
19
- React.createElement("path", { d: "M6.5 6.5H12.5", stroke: "#353535", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }),
20
- React.createElement("path", { d: "M6.5 10.5H9.5", stroke: "#353535", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" })));
21
- export default ChatIcon;