@verdaccio/ui-components 3.0.0-next.2 → 4.0.0-next-8.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 (490) hide show
  1. package/.eslintrc +1 -1
  2. package/CHANGELOG.md +85 -0
  3. package/build/AppTest/AppRoute.js +34 -0
  4. package/build/AppTest/pages/Front/Home.js +9 -0
  5. package/build/AppTest/pages/Front/index.js +14 -0
  6. package/build/AppTest/pages/Version/Version.js +34 -0
  7. package/build/AppTest/pages/Version/index.js +14 -0
  8. package/build/Theme/ResetStyles.js +2 -3
  9. package/build/Theme/StyleBaseline.js +2 -3
  10. package/build/Theme/ThemeProvider.js +3 -3
  11. package/build/Theme/colors.js +1 -2
  12. package/build/Theme/index.js +3 -3
  13. package/build/Theme/theme.js +17 -7
  14. package/build/__mocks__/react-markdown.js +1 -1
  15. package/build/components/ActionBar/ActionBar.js +8 -7
  16. package/build/components/ActionBar/ActionBarAction.js +13 -14
  17. package/build/components/ActionBar/index.js +1 -1
  18. package/build/components/Author/Author.js +15 -45
  19. package/build/components/Author/index.js +1 -1
  20. package/build/components/Author/styles.js +3 -5
  21. package/build/components/CopyClipboard/CopyToClipBoard.js +2 -3
  22. package/build/components/CopyClipboard/index.js +1 -1
  23. package/build/components/CopyClipboard/utils.js +3 -12
  24. package/build/components/Dependencies/Dependencies.js +31 -58
  25. package/build/components/Dependencies/DependencyBlock.js +102 -0
  26. package/build/components/Dependencies/index.js +1 -1
  27. package/build/components/Dependencies/utits.js +10 -0
  28. package/build/components/Deprecated/Deprecated.js +2 -3
  29. package/build/components/Deprecated/index.js +1 -1
  30. package/build/components/Developers/DeveloperType.js +12 -0
  31. package/build/components/Developers/Developers.js +26 -32
  32. package/build/components/Developers/Title.js +7 -13
  33. package/build/components/Developers/get-unique-developer-values.js +1 -2
  34. package/build/components/Developers/index.js +4 -4
  35. package/build/components/Distribution/Dist.js +3 -4
  36. package/build/components/Distribution/index.js +1 -1
  37. package/build/components/Distribution/styles.js +14 -31
  38. package/build/components/Engines/Engines.js +10 -5
  39. package/build/components/Engines/index.js +1 -1
  40. package/build/components/Engines/styles.js +9 -11
  41. package/build/components/ErrorBoundary/ErrorBoundary.js +2 -2
  42. package/build/components/ErrorBoundary/index.js +1 -1
  43. package/build/components/Forbidden/Forbidden.js +75 -0
  44. package/build/components/Forbidden/index.js +14 -0
  45. package/build/components/FundButton/FundButton.js +11 -13
  46. package/build/components/FundButton/index.js +1 -1
  47. package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +5 -5
  48. package/build/components/HeaderInfoDialog/index.js +1 -1
  49. package/build/components/Heading/Heading.js +5 -6
  50. package/build/components/Heading/index.js +1 -1
  51. package/build/components/Help/Help.js +4 -5
  52. package/build/components/Help/index.js +1 -1
  53. package/build/components/Help/styles.js +2 -3
  54. package/build/components/Icons/DevsIcons/CommonJS.js +2 -13
  55. package/build/components/Icons/DevsIcons/ES6Module.js +3 -14
  56. package/build/components/Icons/DevsIcons/Git.js +2 -13
  57. package/build/components/Icons/DevsIcons/NodeJS.js +2 -13
  58. package/build/components/Icons/DevsIcons/TypeScript.js +2 -13
  59. package/build/components/Icons/Earth.js +3 -4
  60. package/build/components/Icons/FileBinary.js +14 -9
  61. package/build/components/Icons/Law.js +15 -10
  62. package/build/components/Icons/License.js +3 -4
  63. package/build/components/Icons/License.js.map +1 -1
  64. package/build/components/Icons/Managers/Npm.js +2 -13
  65. package/build/components/Icons/Managers/Pnpm.js +2 -13
  66. package/build/components/Icons/Managers/Yarn.js +2 -13
  67. package/build/components/Icons/SvgIcon.js +3 -4
  68. package/build/components/Icons/Time.js +3 -4
  69. package/build/components/Icons/Version.js +3 -4
  70. package/build/components/Install/Install.js +30 -26
  71. package/build/components/Install/InstallListItem.js +22 -23
  72. package/build/components/Install/index.js +1 -1
  73. package/build/components/Keywords/KeywordListItems.js +34 -0
  74. package/build/components/Keywords/Keywords.js +39 -0
  75. package/build/components/Keywords/index.js +14 -0
  76. package/build/components/Label/Label.js +3 -4
  77. package/build/components/Label/index.js +1 -1
  78. package/build/components/Link/Link.js +5 -19
  79. package/build/components/Link/index.js +2 -2
  80. package/build/components/LinkExternal/LinkExternal.js +32 -0
  81. package/build/components/LinkExternal/index.js +14 -0
  82. package/build/components/Loading/Loading.js +2 -3
  83. package/build/components/Loading/Spinner/Spinner.js +2 -3
  84. package/build/components/Loading/Spinner/index.js +1 -1
  85. package/build/components/Loading/index.js +1 -1
  86. package/build/components/Loading/styles.js +6 -7
  87. package/build/components/LoginDialog/LoginDialog.js +16 -6
  88. package/build/components/LoginDialog/LoginDialogCloseButton.js +5 -5
  89. package/build/components/LoginDialog/LoginDialogForm.js +7 -20
  90. package/build/components/LoginDialog/LoginDialogFormError.js +7 -7
  91. package/build/components/LoginDialog/LoginDialogHeader.js +2 -3
  92. package/build/components/LoginDialog/index.js +1 -1
  93. package/build/components/Logo/Logo.js +15 -9
  94. package/build/components/Logo/index.js +1 -1
  95. package/build/components/MenuItem/MenuItem.js +5 -6
  96. package/build/components/MenuItem/index.js +1 -1
  97. package/build/components/NoItems/NoItems.js +2 -3
  98. package/build/components/NoItems/index.js +1 -1
  99. package/build/components/NotFound/NotFound.js +20 -19
  100. package/build/components/NotFound/index.js +1 -1
  101. package/build/components/Package/Package.js +48 -40
  102. package/build/components/Package/index.js +2 -2
  103. package/build/components/Package/styles.js +59 -84
  104. package/build/components/PackageList/PackageList.js +2 -3
  105. package/build/components/PackageList/index.js +1 -1
  106. package/build/components/Person/Person.js +48 -0
  107. package/build/components/Person/PersonTooltip.js +22 -0
  108. package/build/components/Person/index.js +14 -0
  109. package/build/components/Person/utils.js +17 -0
  110. package/build/components/RawViewer/RawViewer.js +13 -8
  111. package/build/components/RawViewer/index.js +1 -1
  112. package/build/components/Readme/Readme.js +46 -11
  113. package/build/components/Readme/Readme.js.map +1 -1
  114. package/build/components/Readme/Readme.spec.js +20 -1
  115. package/build/components/Readme/Readme.spec.js.map +1 -1
  116. package/build/components/Readme/{github-markdown-dark.css → github-markdown.css} +266 -83
  117. package/build/components/Readme/index.js +1 -1
  118. package/build/components/Readme/utils.js +14 -17
  119. package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +2 -3
  120. package/build/components/RegistryInfoDialog/index.js +1 -1
  121. package/build/components/RegistryInfoDialog/styles.js +13 -17
  122. package/build/components/Repository/Repository.js +23 -36
  123. package/build/components/Repository/index.js +1 -1
  124. package/build/components/Search/AutoComplete/AutoComplete.js +4 -5
  125. package/build/components/Search/AutoComplete/index.js +1 -1
  126. package/build/components/Search/AutoComplete/styles.js +6 -45
  127. package/build/components/Search/Search.js +11 -10
  128. package/build/components/Search/SearchItem.js +56 -45
  129. package/build/components/Search/index.js +1 -1
  130. package/build/components/Search/styles.js +3 -5
  131. package/build/components/Search/utils.js +23 -0
  132. package/build/components/SettingsMenu/SettingsMenu.js +36 -11
  133. package/build/components/SettingsMenu/index.js +1 -1
  134. package/build/components/SideBarTitle/SideBarTitle.js +104 -0
  135. package/build/components/SideBarTitle/index.js +14 -0
  136. package/build/components/{SideBarTittle → SideBarTitle}/utils.js +2 -3
  137. package/build/components/TextField/TextField.js +5 -6
  138. package/build/components/TextField/index.js +1 -1
  139. package/build/components/UpLinks/UpLinks.js +37 -9
  140. package/build/components/UpLinks/UplinkLink.js +22 -0
  141. package/build/components/UpLinks/index.js +1 -1
  142. package/build/components/UpLinks/styles.js +9 -11
  143. package/build/components/Versions/HistoryList.js +32 -26
  144. package/build/components/Versions/TagList.js +10 -7
  145. package/build/components/Versions/Versions.js +69 -16
  146. package/build/components/Versions/index.js +1 -1
  147. package/build/components/Versions/styles.js +3 -5
  148. package/build/hooks/index.js +1 -1
  149. package/build/hooks/useLocalStorage.js +1 -2
  150. package/build/hooks/useOnClickOutside.js +1 -2
  151. package/build/index.js +40 -8
  152. package/build/layouts/Version/Version.js +2 -3
  153. package/build/layouts/Version/index.js +1 -1
  154. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +5 -5
  155. package/build/providers/AppConfigurationProvider/index.js +2 -2
  156. package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +5 -5
  157. package/build/providers/PersistenceSettingProvider/index.js +2 -2
  158. package/build/providers/TranslatorProvider/TranslatorProvider.js +4 -5
  159. package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +3 -3
  160. package/build/providers/TranslatorProvider/index.js +2 -2
  161. package/build/providers/VersionProvider/VersionProvider.js +5 -7
  162. package/build/providers/VersionProvider/index.js +2 -2
  163. package/build/sections/Detail/ContainerContent.js +5 -7
  164. package/build/sections/Detail/Detail.js +13 -11
  165. package/build/sections/Detail/ReadmeSection.js +2 -3
  166. package/build/sections/Detail/Tabs.js +6 -8
  167. package/build/sections/Detail/index.js +1 -1
  168. package/build/sections/Footer/Footer.js +39 -11
  169. package/build/sections/Footer/index.js +1 -1
  170. package/build/sections/Footer/styles.js +19 -21
  171. package/build/sections/Header/Header.js +4 -5
  172. package/build/sections/Header/HeaderGreetings.js +2 -3
  173. package/build/sections/Header/HeaderLeft.js +16 -20
  174. package/build/sections/Header/HeaderMenu.js +3 -4
  175. package/build/sections/Header/HeaderRight.js +16 -8
  176. package/build/sections/Header/HeaderSettingsDialog.js +6 -10
  177. package/build/sections/Header/HeaderToolTip.js +2 -3
  178. package/build/sections/Header/HeaderToolTipIcon.js +4 -5
  179. package/build/sections/Header/LanguageSwitch.js +10 -13
  180. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +14 -24
  181. package/build/sections/Header/RegistryInfoContent/index.js +1 -1
  182. package/build/sections/Header/RegistryInfoContent/styles.js +3 -5
  183. package/build/sections/Header/index.js +1 -1
  184. package/build/sections/Header/styles.js +54 -106
  185. package/build/sections/Home/Home.js +4 -5
  186. package/build/sections/Home/index.js +1 -1
  187. package/build/sections/SideBar/Sidebar.js +23 -30
  188. package/build/sections/SideBar/index.js +1 -1
  189. package/build/sections/index.js +1 -1
  190. package/build/src/AppTest/App.stories.d.ts +8 -0
  191. package/build/src/AppTest/AppRoute.d.ts +3 -0
  192. package/build/src/AppTest/pages/Front/Home.d.ts +2 -0
  193. package/build/src/AppTest/pages/Front/index.d.ts +1 -0
  194. package/build/src/AppTest/pages/Version/Version.d.ts +3 -0
  195. package/build/src/AppTest/pages/Version/index.d.ts +1 -0
  196. package/build/src/Theme/ThemeProvider.test.d.ts +1 -0
  197. package/build/src/components/Author/Author.d.ts +0 -5
  198. package/build/src/components/CopyClipboard/CopyToClipBoard.test.d.ts +1 -0
  199. package/build/src/components/Dependencies/DependencyBlock.d.ts +16 -0
  200. package/build/src/components/Dependencies/DependencyBlock.test.d.ts +1 -0
  201. package/build/src/components/Dependencies/utits.d.ts +3 -0
  202. package/build/src/components/Developers/DeveloperType.d.ts +4 -0
  203. package/build/src/components/Developers/Developers.d.ts +1 -4
  204. package/build/src/components/Developers/Title.d.ts +1 -4
  205. package/build/src/components/Developers/index.d.ts +2 -1
  206. package/build/src/components/Distribution/styles.d.ts +0 -1
  207. package/build/src/components/ErrorBoundary/ErrorBoundary.test.d.ts +1 -0
  208. package/build/src/components/Forbidden/Forbidden.d.ts +3 -0
  209. package/build/src/components/Forbidden/Forbidden.test.d.ts +1 -0
  210. package/build/src/components/Forbidden/index.d.ts +1 -0
  211. package/build/src/components/HeaderInfoDialog/HeaderInfoDialog.test.d.ts +1 -0
  212. package/build/src/components/Heading/Heading.test.d.ts +1 -0
  213. package/build/src/components/Icons/Icons.test.d.ts +1 -0
  214. package/build/src/components/Install/InstallListItem.d.ts +1 -1
  215. package/build/src/components/Keywords/KeywordListItems.d.ts +5 -0
  216. package/build/src/components/Keywords/Keywords.d.ts +6 -0
  217. package/build/src/components/Keywords/Keywords.stories.d.ts +5 -0
  218. package/build/src/components/Keywords/Keywords.test.d.ts +1 -0
  219. package/build/src/components/Keywords/index.d.ts +1 -0
  220. package/build/src/components/Link/Link.d.ts +0 -3
  221. package/build/src/components/Link/Link.test.d.ts +1 -0
  222. package/build/src/components/Link/index.d.ts +1 -1
  223. package/build/src/components/LinkExternal/LinkExternal.d.ts +3 -0
  224. package/build/src/components/LinkExternal/LinkExternal.test.d.ts +1 -0
  225. package/build/src/components/LinkExternal/index.d.ts +1 -0
  226. package/build/src/components/Loading/styles.d.ts +2 -2
  227. package/build/src/components/Logo/Logo.d.ts +1 -0
  228. package/build/src/components/Logo/Logo.stories.d.ts +5 -0
  229. package/build/src/components/Package/Package.d.ts +1 -1
  230. package/build/src/components/Package/styles.d.ts +7 -15
  231. package/build/src/components/Person/Person.d.ts +9 -0
  232. package/build/src/components/Person/Person.test.d.ts +1 -0
  233. package/build/src/components/Person/PersonTooltip.d.ts +6 -0
  234. package/build/src/components/Person/index.d.ts +1 -0
  235. package/build/src/components/Person/utils.d.ts +3 -0
  236. package/build/src/components/Readme/Readme.d.ts +1 -1
  237. package/build/src/components/RegistryInfoDialog/styles.d.ts +1 -1
  238. package/build/src/components/Search/AutoComplete/styles.d.ts +1 -9
  239. package/build/src/components/Search/SearchItem.d.ts +1 -1
  240. package/build/src/components/Search/utils.d.ts +1 -0
  241. package/build/src/components/SettingsMenu/SettingsMenu.d.ts +2 -2
  242. package/build/src/components/SettingsMenu/SettingsMenu.test.d.ts +1 -0
  243. package/build/src/components/SideBarTitle/index.d.ts +1 -0
  244. package/build/src/components/UpLinks/UplinkLink.d.ts +6 -0
  245. package/build/src/components/UpLinks/styles.d.ts +2 -2
  246. package/build/src/components/Versions/Versions.d.ts +1 -0
  247. package/build/src/components/Versions/styles.d.ts +2 -2
  248. package/build/src/index.d.ts +6 -2
  249. package/build/src/sections/Detail/Detail.stories.d.ts +1 -0
  250. package/build/src/sections/Detail/Tabs.d.ts +1 -0
  251. package/build/src/sections/Footer/styles.d.ts +5 -5
  252. package/build/src/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +3 -3
  253. package/build/src/sections/Header/RegistryInfoContent/styles.d.ts +2 -2
  254. package/build/src/sections/Header/styles.d.ts +4 -11
  255. package/build/src/sections/Home/Home.test.d.ts +1 -0
  256. package/build/src/store/models/manifest.d.ts +11 -0
  257. package/build/src/store/models/routes.d.ts +8 -0
  258. package/build/src/store/models/utils.d.ts +1 -0
  259. package/build/src/types/packageMeta.d.ts +7 -5
  260. package/build/src/utils/__partials__/packageMeta.d.ts +0 -1
  261. package/build/src/utils/routes.d.ts +1 -0
  262. package/build/src/utils/utils.d.ts +1 -0
  263. package/build/store/api.js +14 -9
  264. package/build/store/index.js +1 -1
  265. package/build/store/models/configuration.js +4 -4
  266. package/build/store/models/download.js +2 -3
  267. package/build/store/models/index.js +1 -2
  268. package/build/store/models/login.js +7 -7
  269. package/build/store/models/manifest.js +27 -8
  270. package/build/store/models/packages.js +6 -5
  271. package/build/store/models/routes.js +18 -0
  272. package/build/store/models/search.js +7 -6
  273. package/build/store/models/utils.js +10 -0
  274. package/build/store/storage.js +2 -3
  275. package/build/store/store.js +2 -3
  276. package/build/test/i18n-config.js +2 -3
  277. package/build/test/test-react-testing-library.js +1 -1
  278. package/build/utils/__partials__/packageMeta.js +1 -3
  279. package/build/utils/index.js +3 -3
  280. package/build/utils/loadable.js +2 -2
  281. package/build/utils/routes.js +2 -2
  282. package/build/utils/token.js +1 -1
  283. package/build/utils/url.js +1 -1
  284. package/build/utils/utils.js +22 -4
  285. package/package.json +33 -32
  286. package/src/AppTest/App.stories.tsx +32 -0
  287. package/src/AppTest/AppRoute.test.tsx +65 -0
  288. package/src/AppTest/AppRoute.tsx +42 -0
  289. package/src/AppTest/pages/Front/Home.ts +3 -0
  290. package/src/AppTest/pages/Front/index.ts +1 -0
  291. package/src/AppTest/pages/Version/Version.tsx +28 -0
  292. package/src/AppTest/pages/Version/index.ts +1 -0
  293. package/src/Theme/ThemeProvider.test.tsx +27 -0
  294. package/src/Theme/theme.ts +12 -5
  295. package/src/components/ActionBar/ActionBar.test.tsx +36 -15
  296. package/src/components/ActionBar/ActionBar.tsx +1 -1
  297. package/src/components/ActionBar/ActionBarAction.tsx +8 -5
  298. package/src/components/Author/Author.test.tsx +7 -1
  299. package/src/components/Author/Author.tsx +3 -41
  300. package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +23 -0
  301. package/src/components/CopyClipboard/utils.ts +2 -13
  302. package/src/components/Dependencies/Dependencies.stories.tsx +11 -11
  303. package/src/components/Dependencies/Dependencies.test.tsx +1 -11
  304. package/src/components/Dependencies/Dependencies.tsx +30 -69
  305. package/src/components/Dependencies/DependencyBlock.test.tsx +46 -0
  306. package/src/components/Dependencies/DependencyBlock.tsx +83 -0
  307. package/src/components/Dependencies/utits.ts +3 -0
  308. package/src/components/Developers/DeveloperType.tsx +4 -0
  309. package/src/components/Developers/Developers.test.tsx +37 -10
  310. package/src/components/Developers/Developers.tsx +13 -13
  311. package/src/components/Developers/Title.tsx +1 -5
  312. package/src/components/Developers/index.ts +2 -1
  313. package/src/components/Distribution/Dist.test.tsx +1 -1
  314. package/src/components/Distribution/Dist.tsx +2 -4
  315. package/src/components/Distribution/styles.ts +0 -6
  316. package/src/components/Engines/Engines.tsx +6 -2
  317. package/src/components/Engines/styles.ts +1 -1
  318. package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +39 -0
  319. package/src/components/Forbidden/Forbidden.test.tsx +38 -0
  320. package/src/components/Forbidden/Forbidden.tsx +56 -0
  321. package/src/components/Forbidden/index.ts +1 -0
  322. package/src/components/FundButton/FundButton.tsx +5 -5
  323. package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +51 -0
  324. package/src/components/HeaderInfoDialog/HeaderInfoDialog.tsx +2 -2
  325. package/src/components/Heading/Heading.test.tsx +20 -0
  326. package/src/components/Help/Help.test.tsx +10 -3
  327. package/src/components/Icons/DevsIcons/CommonJS.tsx +1 -7
  328. package/src/components/Icons/DevsIcons/ES6Module.tsx +2 -8
  329. package/src/components/Icons/DevsIcons/Git.tsx +1 -7
  330. package/src/components/Icons/DevsIcons/NodeJS.tsx +1 -7
  331. package/src/components/Icons/DevsIcons/TypeScript.tsx +1 -7
  332. package/src/components/Icons/FileBinary.tsx +2 -1
  333. package/src/components/Icons/Icons.stories.tsx +21 -5
  334. package/src/components/Icons/Icons.test.tsx +70 -0
  335. package/src/components/Icons/Law.tsx +2 -1
  336. package/src/components/Icons/Managers/Npm.tsx +1 -7
  337. package/src/components/Icons/Managers/Pnpm.tsx +1 -7
  338. package/src/components/Icons/Managers/Yarn.tsx +1 -7
  339. package/src/components/Install/Install.test.tsx +54 -13
  340. package/src/components/Install/Install.tsx +12 -11
  341. package/src/components/Install/InstallListItem.tsx +15 -13
  342. package/src/components/Keywords/KeywordListItems.tsx +22 -0
  343. package/src/components/Keywords/Keywords.stories.tsx +19 -0
  344. package/src/components/Keywords/Keywords.test.tsx +57 -0
  345. package/src/components/Keywords/Keywords.tsx +35 -0
  346. package/src/components/Keywords/index.ts +1 -0
  347. package/src/components/Link/Link.test.tsx +25 -0
  348. package/src/components/Link/Link.tsx +4 -18
  349. package/src/components/Link/index.ts +1 -1
  350. package/src/components/LinkExternal/LinkExternal.test.tsx +18 -0
  351. package/src/components/LinkExternal/LinkExternal.tsx +22 -0
  352. package/src/components/LinkExternal/index.ts +1 -0
  353. package/src/components/Loading/Loading.test.tsx +8 -4
  354. package/src/components/Loading/styles.ts +1 -0
  355. package/src/components/LoginDialog/LoginDialog.test.tsx +1 -1
  356. package/src/components/LoginDialog/LoginDialog.tsx +10 -1
  357. package/src/components/LoginDialog/LoginDialogCloseButton.tsx +1 -0
  358. package/src/components/LoginDialog/LoginDialogForm.tsx +0 -2
  359. package/src/components/LoginDialog/LoginDialogFormError.tsx +1 -1
  360. package/src/components/Logo/Logo.stories.tsx +16 -0
  361. package/src/components/Logo/Logo.test.tsx +8 -1
  362. package/src/components/Logo/Logo.tsx +19 -3
  363. package/src/components/NotFound/NotFound.tsx +6 -5
  364. package/src/components/NotFound/Notfound.test.tsx +6 -3
  365. package/src/components/Package/Package.test.tsx +47 -14
  366. package/src/components/Package/Package.tsx +41 -44
  367. package/src/components/Package/styles.ts +7 -17
  368. package/src/components/PackageList/Packagelist.test.tsx +1 -0
  369. package/src/components/Person/Person.test.tsx +50 -0
  370. package/src/components/Person/Person.tsx +45 -0
  371. package/src/components/Person/PersonTooltip.tsx +26 -0
  372. package/src/components/Person/index.ts +1 -0
  373. package/src/components/Person/utils.ts +20 -0
  374. package/src/components/RawViewer/RawViewer.tsx +8 -4
  375. package/src/components/Readme/Readme.spec.tsx +17 -0
  376. package/src/components/Readme/Readme.tsx +34 -7
  377. package/src/components/Readme/{github-markdown-dark.css → github-markdown.css} +266 -83
  378. package/src/components/Readme/utils.ts +15 -14
  379. package/src/components/RegistryInfoDialog/styles.ts +5 -4
  380. package/src/components/Repository/Repository.tsx +10 -17
  381. package/src/components/Search/AutoComplete/AutoComplete.tsx +1 -1
  382. package/src/components/Search/AutoComplete/styles.ts +7 -0
  383. package/src/components/Search/Search.test.tsx +38 -11
  384. package/src/components/Search/Search.tsx +4 -2
  385. package/src/components/Search/SearchItem.tsx +19 -8
  386. package/src/components/Search/utils.ts +17 -0
  387. package/src/components/SettingsMenu/SettingsMenu.test.tsx +41 -0
  388. package/src/components/SettingsMenu/SettingsMenu.tsx +48 -10
  389. package/src/components/{SideBarTittle/SideBarTittle.tsx → SideBarTitle/SideBarTitle.tsx} +19 -3
  390. package/src/components/SideBarTitle/index.ts +1 -0
  391. package/src/components/UpLinks/UpLinks.test.tsx +7 -0
  392. package/src/components/UpLinks/UpLinks.tsx +38 -15
  393. package/src/components/UpLinks/UplinkLink.tsx +20 -0
  394. package/src/components/UpLinks/styles.ts +1 -0
  395. package/src/components/Versions/HistoryList.tsx +11 -6
  396. package/src/components/Versions/TagList.tsx +4 -3
  397. package/src/components/Versions/Versions.test.tsx +26 -8
  398. package/src/components/Versions/Versions.tsx +81 -28
  399. package/src/index.ts +6 -2
  400. package/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx +1 -0
  401. package/src/providers/PersistenceSettingProvider/PersistenceSettingProvider.tsx +2 -0
  402. package/src/providers/VersionProvider/VersionProvider.test.tsx +3 -3
  403. package/src/sections/Detail/Detail.stories.tsx +10 -0
  404. package/src/sections/Detail/Detail.test.tsx +8 -1
  405. package/src/sections/Detail/Detail.tsx +11 -4
  406. package/src/sections/Detail/Tabs.tsx +6 -9
  407. package/src/sections/Footer/Footer.tsx +26 -12
  408. package/src/sections/Footer/styles.ts +4 -0
  409. package/src/sections/Header/Header.test.tsx +12 -10
  410. package/src/sections/Header/HeaderLeft.tsx +19 -11
  411. package/src/sections/Header/HeaderMenu.tsx +1 -1
  412. package/src/sections/Header/HeaderRight.tsx +14 -3
  413. package/src/sections/Header/HeaderSettingsDialog.tsx +2 -3
  414. package/src/sections/Header/LanguageSwitch.tsx +10 -7
  415. package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -1
  416. package/src/sections/Header/RegistryInfoContent/RegistryInfoContent.tsx +2 -7
  417. package/src/sections/Header/styles.ts +4 -16
  418. package/src/sections/Home/Home.test.tsx +37 -0
  419. package/src/sections/Home/Home.tsx +0 -1
  420. package/src/sections/SideBar/Sidebar.test.tsx +52 -84
  421. package/src/sections/SideBar/Sidebar.tsx +11 -26
  422. package/src/store/api.test.ts +19 -2
  423. package/src/store/api.ts +13 -6
  424. package/src/store/models/configuration.ts +2 -1
  425. package/src/store/models/login.ts +10 -12
  426. package/src/store/models/manifest.ts +25 -6
  427. package/src/store/models/packages.ts +4 -5
  428. package/src/store/models/routes.ts +10 -0
  429. package/src/store/models/search.ts +4 -2
  430. package/src/store/models/utils.ts +3 -0
  431. package/src/types/packageMeta.ts +7 -5
  432. package/src/utils/__partials__/packageMeta.ts +0 -1
  433. package/src/utils/routes.ts +1 -0
  434. package/src/utils/utils.test.ts +34 -0
  435. package/src/utils/utils.ts +20 -5
  436. package/tsconfig.json +1 -1
  437. package/build/components/Dependencies/styles.js +0 -68
  438. package/build/components/Developers/styles.js +0 -69
  439. package/build/components/Distribution/utils.js +0 -25
  440. package/build/components/Distribution/utilts.spec.js +0 -18
  441. package/build/components/Package/Tag/Tag.js +0 -15
  442. package/build/components/Package/Tag/index.js +0 -14
  443. package/build/components/Package/Tag/styles.js +0 -25
  444. package/build/components/Readme/ReadmeDark.js +0 -46
  445. package/build/components/Readme/ReadmeLight.js +0 -46
  446. package/build/components/Readme/github-markdown-light.css +0 -1014
  447. package/build/components/SideBarTittle/SideBarTittle.js +0 -95
  448. package/build/components/SideBarTittle/index.js +0 -14
  449. package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js +0 -37
  450. package/build/sections/Header/RegistryInfoDialog/index.js +0 -14
  451. package/build/sections/Header/RegistryInfoDialog/styles.js +0 -49
  452. package/build/sections/Header/RegistryInfoDialog/types.js +0 -6
  453. package/build/src/components/Dependencies/styles.d.ts +0 -8
  454. package/build/src/components/Developers/styles.d.ts +0 -11
  455. package/build/src/components/Distribution/utils.d.ts +0 -7
  456. package/build/src/components/Package/Tag/Tag.d.ts +0 -6
  457. package/build/src/components/Package/Tag/index.d.ts +0 -1
  458. package/build/src/components/Package/Tag/styles.d.ts +0 -5
  459. package/build/src/components/Readme/ReadmeDark.d.ts +0 -5
  460. package/build/src/components/Readme/ReadmeLight.d.ts +0 -5
  461. package/build/src/components/SideBarTittle/index.d.ts +0 -1
  462. package/build/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.d.ts +0 -4
  463. package/build/src/sections/Header/RegistryInfoDialog/index.d.ts +0 -1
  464. package/build/src/sections/Header/RegistryInfoDialog/styles.d.ts +0 -13
  465. package/build/src/sections/Header/RegistryInfoDialog/types.d.ts +0 -7
  466. package/src/components/Dependencies/styles.ts +0 -26
  467. package/src/components/Developers/styles.ts +0 -31
  468. package/src/components/Distribution/utils.ts +0 -32
  469. package/src/components/Distribution/utilts.spec.ts +0 -17
  470. package/src/components/Package/Tag/Tag.test.tsx +0 -15
  471. package/src/components/Package/Tag/Tag.tsx +0 -11
  472. package/src/components/Package/Tag/index.ts +0 -1
  473. package/src/components/Package/Tag/styles.ts +0 -11
  474. package/src/components/Readme/ReadmeDark.tsx +0 -32
  475. package/src/components/Readme/ReadmeLight.tsx +0 -32
  476. package/src/components/Readme/github-markdown-light.css +0 -1014
  477. package/src/components/Search/AutoComplete/styles.tsx +0 -42
  478. package/src/components/SideBarTittle/index.ts +0 -1
  479. package/src/sections/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +0 -31
  480. package/src/sections/Header/RegistryInfoDialog/index.ts +0 -1
  481. package/src/sections/Header/RegistryInfoDialog/styles.ts +0 -21
  482. package/src/sections/Header/RegistryInfoDialog/types.ts +0 -8
  483. /package/build/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
  484. /package/build/src/{components/Package/Tag/Tag.test.d.ts → AppTest/AppRoute.test.d.ts} +0 -0
  485. /package/build/src/components/{SideBarTittle/SideBarTittle.d.ts → SideBarTitle/SideBarTitle.d.ts} +0 -0
  486. /package/build/src/components/{SideBarTittle/SideBarTittle.stories.d.ts → SideBarTitle/SideBarTitle.stories.d.ts} +0 -0
  487. /package/build/src/components/{SideBarTittle → SideBarTitle}/utils.d.ts +0 -0
  488. /package/src/components/Icons/DevsIcons/{es6modules.svg → es6module.svg} +0 -0
  489. /package/src/components/{SideBarTittle/SideBarTittle.stories.tsx → SideBarTitle/SideBarTitle.stories.tsx} +0 -0
  490. /package/src/components/{SideBarTittle → SideBarTitle}/utils.ts +0 -0
@@ -5,6 +5,8 @@ import { Manifest } from '@verdaccio/types';
5
5
  import type { RootModel } from '.';
6
6
  import { PackageMetaInterface } from '../../types/packageMeta';
7
7
  import API from '../api';
8
+ import { APIRoute } from './routes';
9
+ import { stripTrailingSlash } from './utils';
8
10
 
9
11
  function isPackageVersionValid(
10
12
  packageMeta: Partial<PackageMetaInterface>,
@@ -33,6 +35,18 @@ export const manifest = createModel<RootModel>()({
33
35
  return {
34
36
  ...state,
35
37
  hasNotBeenFound: true,
38
+ forbidden: false,
39
+ manifest: undefined,
40
+ packageName: undefined,
41
+ packageVersion: undefined,
42
+ readme: undefined,
43
+ };
44
+ },
45
+ forbidden(state) {
46
+ return {
47
+ ...state,
48
+ forbidden: true,
49
+ hasNotBeenFound: false,
36
50
  manifest: undefined,
37
51
  packageName: undefined,
38
52
  packageVersion: undefined,
@@ -50,6 +64,7 @@ export const manifest = createModel<RootModel>()({
50
64
  ...state,
51
65
  isError: true,
52
66
  hasNotBeenFound: false,
67
+ forbidden: false,
53
68
  manifest: undefined,
54
69
  packageName: undefined,
55
70
  packageVersion: undefined,
@@ -64,15 +79,16 @@ export const manifest = createModel<RootModel>()({
64
79
  packageVersion,
65
80
  readme,
66
81
  hasNotBeenFound: false,
82
+ forbidden: false,
67
83
  };
68
84
  },
69
85
  },
70
86
  effects: (dispatch) => ({
71
87
  async getManifest({ packageName, packageVersion }, state) {
72
- const basePath = state.configuration.config.base;
88
+ const basePath = stripTrailingSlash(state.configuration.config.base);
73
89
  try {
74
90
  const manifest: Manifest = await API.request(
75
- `${basePath}-/verdaccio/data/sidebar/${packageName}${
91
+ `${basePath}${APIRoute.SIDEBAR}${packageName}${
76
92
  packageVersion ? `?v=${packageVersion}` : ''
77
93
  }`
78
94
  );
@@ -84,14 +100,17 @@ export const manifest = createModel<RootModel>()({
84
100
  }
85
101
 
86
102
  const readme: string = await API.request<string>(
87
- `${basePath}-/verdaccio/data/package/readme/${packageName}${
103
+ `${basePath}${APIRoute.README}${packageName}${
88
104
  packageVersion ? `?v=${packageVersion}` : ''
89
- }`,
90
- 'GET'
105
+ }`
91
106
  );
92
107
  dispatch.manifest.saveManifest({ packageName, packageVersion, manifest, readme });
93
108
  } catch (error: any) {
94
- dispatch.manifest.notFound();
109
+ if (error.code === 404) {
110
+ dispatch.manifest.notFound();
111
+ } else {
112
+ dispatch.manifest.forbidden();
113
+ }
95
114
  }
96
115
  },
97
116
  }),
@@ -4,6 +4,8 @@ import { Manifest } from '@verdaccio/types';
4
4
 
5
5
  import type { RootModel } from '.';
6
6
  import API from '../api';
7
+ import { APIRoute } from './routes';
8
+ import { stripTrailingSlash } from './utils';
7
9
 
8
10
  /**
9
11
  *
@@ -23,12 +25,9 @@ export const packages = createModel<RootModel>()({
23
25
  },
24
26
  effects: (dispatch) => ({
25
27
  async getPackages(_payload, state) {
26
- const basePath = state.configuration.config.base;
28
+ const basePath = stripTrailingSlash(state.configuration.config.base);
27
29
  try {
28
- const payload: Manifest[] = await API.request(
29
- `${basePath}-/verdaccio/data/packages`,
30
- 'GET'
31
- );
30
+ const payload: Manifest[] = await API.request(`${basePath}${APIRoute.PACKAGES}`);
32
31
  dispatch.packages.savePackages(payload);
33
32
  } catch (error: any) {
34
33
  // eslint-disable-next-line no-console
@@ -0,0 +1,10 @@
1
+ // Example API request:
2
+ // http://localhost:8000/-/verdaccio/data/package/readme/jquery
3
+ export enum APIRoute {
4
+ LOGIN = '/-/verdaccio/sec/login',
5
+ CONFIG = '/-/verdaccio/packages',
6
+ PACKAGES = '/-/verdaccio/data/packages',
7
+ SEARCH = '/-/verdaccio/data/search/', // :value
8
+ SIDEBAR = '/-/verdaccio/data/sidebar/', // :packageName?v=version
9
+ README = '/-/verdaccio/data/package/readme/', // :packageName?v=version
10
+ }
@@ -5,6 +5,8 @@ import { SearchResultWeb } from '@verdaccio/types';
5
5
 
6
6
  import type { RootModel } from '.';
7
7
  import API from '../api';
8
+ import { APIRoute } from './routes';
9
+ import { stripTrailingSlash } from './utils';
8
10
 
9
11
  const CONSTANTS = {
10
12
  API_DELAY: 300,
@@ -55,7 +57,7 @@ export const search = createModel<RootModel>()({
55
57
  },
56
58
  effects: (dispatch) => ({
57
59
  async getSuggestions({ value }, state) {
58
- const basePath = state.configuration.config.base;
60
+ const basePath = stripTrailingSlash(state.configuration.config.base);
59
61
  try {
60
62
  const controller = new window.AbortController();
61
63
  dispatch.search.addControllerToQueue({ controller });
@@ -63,7 +65,7 @@ export const search = createModel<RootModel>()({
63
65
  // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API#Browser_compatibility
64
66
  // FUTURE: signal is not well supported for IE and Samsung Browser
65
67
  const suggestions: SearchResultWeb[] = await API.request(
66
- `${basePath}-/verdaccio/data/search/${encodeURIComponent(value)}`,
68
+ `${basePath}${APIRoute.SEARCH}${encodeURIComponent(value)}`,
67
69
  'GET',
68
70
  {
69
71
  signal,
@@ -0,0 +1,3 @@
1
+ export function stripTrailingSlash(url: string): string {
2
+ return url.replace(/\/$/, '');
3
+ }
@@ -1,7 +1,7 @@
1
1
  export type ModuleType = 'commonjs' | 'module';
2
2
 
3
3
  export type Latest = {
4
- author?: Author;
4
+ author?: string | Author;
5
5
  deprecated?: string;
6
6
  name: string;
7
7
  dist?: {
@@ -15,7 +15,7 @@ export type Latest = {
15
15
  pnpm?: string;
16
16
  yarn?: string;
17
17
  };
18
- license?: undefined | LicenseInterface | string;
18
+ license?: string | LicenseInterface;
19
19
  version: string;
20
20
  homepage?: string;
21
21
  bugs?: {
@@ -32,6 +32,7 @@ export type Latest = {
32
32
  funding?: Funding;
33
33
  maintainers?: Developer[];
34
34
  contributors?: Developer[];
35
+ keywords?: string | string[];
35
36
  };
36
37
 
37
38
  export interface PackageMetaInterface {
@@ -44,8 +45,9 @@ export interface PackageMetaInterface {
44
45
 
45
46
  export interface Developer {
46
47
  name: string;
47
- email: string;
48
- avatar: string;
48
+ email?: string;
49
+ url?: string;
50
+ avatar?: string;
49
51
  }
50
52
 
51
53
  interface Funding {
@@ -75,7 +77,7 @@ export interface Version {
75
77
  version: string;
76
78
  author?: string | Author;
77
79
  description?: string;
78
- license?: string;
80
+ license?: string | LicenseInterface;
79
81
  main?: string;
80
82
  keywords?: string[];
81
83
  deprecated?: string;
@@ -140,7 +140,6 @@ export const packageMeta = {
140
140
  'flow-runtime': '0.13.0',
141
141
  'friendly-errors-webpack-plugin': '1.6.1',
142
142
  'fs-extra': '4.0.1',
143
- 'github-markdown-css': '2.8.0',
144
143
  'html-webpack-plugin': '2.29.0',
145
144
  'in-publish': '2.0.0',
146
145
  'localstorage-memory': '1.0.2',
@@ -1,5 +1,6 @@
1
1
  export enum Route {
2
2
  ROOT = '/',
3
+ DETAIL = '/-/web/detail/',
3
4
  SCOPE_PACKAGE = '/-/web/detail/@:scope/:package',
4
5
  SCOPE_PACKAGE_VERSION = '/-/web/detail/@:scope/:package/v/:version',
5
6
  PACKAGE = '/-/web/detail/:package',
@@ -2,12 +2,14 @@ import MockDate from 'mockdate';
2
2
 
3
3
  import { packageMeta } from './__partials__/packageMeta';
4
4
  import {
5
+ fileSizeSI,
5
6
  formatDate,
6
7
  formatDateDistance,
7
8
  formatLicense,
8
9
  formatRepository,
9
10
  getLastUpdatedPackageTime,
10
11
  getRecentReleases,
12
+ getUplink,
11
13
  } from './utils';
12
14
 
13
15
  // jest.useFakeTimers().setSystemTime(new Date('2020-01-01'));
@@ -111,3 +113,35 @@ describe('getRecentReleases', (): void => {
111
113
  expect(getRecentReleases()).toEqual([]);
112
114
  });
113
115
  });
116
+
117
+ describe('getUplink', (): void => {
118
+ test('getUplink for npmjs', () => {
119
+ expect(getUplink('npmjs', 'semver')).toEqual('https://www.npmjs.com/package/semver');
120
+ });
121
+
122
+ test('getUplink for server1', () => {
123
+ expect(getUplink('server1', 'semver')).toEqual(null);
124
+ });
125
+ });
126
+
127
+ describe('fileSizeSI', (): void => {
128
+ test('fileSizeSI as number 1234567', () => {
129
+ expect(fileSizeSI(1234567)).toEqual('1.2 MB');
130
+ });
131
+
132
+ test('fileSizeSI as number 9876', () => {
133
+ expect(fileSizeSI(9876)).toEqual('9.9 kB');
134
+ });
135
+
136
+ test('fileSizeSI as number 1000', () => {
137
+ expect(fileSizeSI(1000)).toEqual('1.0 kB');
138
+ });
139
+
140
+ test('fileSizeSI as number 123', () => {
141
+ expect(fileSizeSI(123)).toEqual('123 Bytes');
142
+ });
143
+
144
+ test('fileSizeSI as number 0', () => {
145
+ expect(fileSizeSI(0)).toEqual('0 Bytes');
146
+ });
147
+ });
@@ -105,6 +105,15 @@ export function getAuthorName(authorName?: string): string {
105
105
  return authorName;
106
106
  }
107
107
 
108
+ export function getUplink(upLinkName: string, packageName: string): string | null {
109
+ // TODO: make this a config like "uplinks: npmjs: web: https://www.npmjs.com/package/"
110
+ switch (upLinkName) {
111
+ case 'npmjs':
112
+ return `https://www.npmjs.com/package/${packageName}`;
113
+ }
114
+ return null;
115
+ }
116
+
108
117
  export function fileSizeSI(
109
118
  a: number,
110
119
  b?: typeof Math,
@@ -112,9 +121,15 @@ export function fileSizeSI(
112
121
  d?: number,
113
122
  e?: number
114
123
  ): string {
115
- return (
116
- ((b = Math), (c = b.log), (d = 1e3), (e = (c(a) / c(d)) | 0), a / b.pow(d, e)).toFixed(2) +
117
- ' ' +
118
- (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes')
119
- );
124
+ b = Math;
125
+ c = b.log;
126
+ d = 1e3;
127
+ e = (c(a) / c(d)) | 0;
128
+ let size = a / b.pow(d, e);
129
+ // no decimals for Bytes
130
+ if (e === 0) {
131
+ return Math.floor(size) + ' Bytes';
132
+ } else {
133
+ return size.toFixed(1) + ' ' + 'kMGTPEZY'[--e] + 'B';
134
+ }
120
135
  }
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../tsconfig.reference.json",
2
+ "extends": "../../tsconfig.reference.json",
3
3
  "compilerOptions": {
4
4
  "module": "esnext",
5
5
  "moduleResolution": "node",
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Tags = exports.Tag = exports.StyledText = exports.CardWrap = void 0;
7
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
- var _Card = _interopRequireDefault(require("@mui/material/Card"));
9
- var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
10
- var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13
- const CardWrap = /*#__PURE__*/(0, _base.default)(_Card.default, process.env.NODE_ENV === "production" ? {
14
- target: "e1e156f93"
15
- } : {
16
- target: "e1e156f93",
17
- label: "CardWrap"
18
- })(process.env.NODE_ENV === "production" ? {
19
- name: "13ksum9",
20
- styles: "margin:0 0 16px"
21
- } : {
22
- name: "13ksum9",
23
- styles: "margin:0 0 16px",
24
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RlcGVuZGVuY2llcy9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT3dCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RlcGVuZGVuY2llcy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2FyZCBmcm9tICdAbXVpL21hdGVyaWFsL0NhcmQnO1xuaW1wb3J0IENoaXAgZnJvbSAnQG11aS9tYXRlcmlhbC9DaGlwJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgQ2FyZFdyYXAgPSBzdHlsZWQoQ2FyZCkoe1xuICBtYXJnaW46ICcwIDAgMTZweCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWUgJiYgcHJvcHMudGhlbWUuZm9udFdlaWdodC5ib2xkLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBUYWdzID0gc3R5bGVkKCdkaXYnKSh7XG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAganVzdGlmeUNvbnRlbnQ6ICdzdGFydCcsXG4gIGZsZXhXcmFwOiAnd3JhcCcsXG4gIG1hcmdpbjogJzAgLTVweCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IFRhZyA9IHN0eWxlZChDaGlwKSh7XG4gIG1hcmdpbjogJzVweCcsXG59KTtcbiJdfQ== */",
25
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
26
- });
27
- exports.CardWrap = CardWrap;
28
- const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
29
- target: "e1e156f92"
30
- } : {
31
- target: "e1e156f92",
32
- label: "StyledText"
33
- })(props => ({
34
- fontWeight: props.theme && props.theme.fontWeight.bold,
35
- textTransform: 'capitalize'
36
- }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RlcGVuZGVuY2llcy9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVzBCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RlcGVuZGVuY2llcy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2FyZCBmcm9tICdAbXVpL21hdGVyaWFsL0NhcmQnO1xuaW1wb3J0IENoaXAgZnJvbSAnQG11aS9tYXRlcmlhbC9DaGlwJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgQ2FyZFdyYXAgPSBzdHlsZWQoQ2FyZCkoe1xuICBtYXJnaW46ICcwIDAgMTZweCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWUgJiYgcHJvcHMudGhlbWUuZm9udFdlaWdodC5ib2xkLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBUYWdzID0gc3R5bGVkKCdkaXYnKSh7XG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAganVzdGlmeUNvbnRlbnQ6ICdzdGFydCcsXG4gIGZsZXhXcmFwOiAnd3JhcCcsXG4gIG1hcmdpbjogJzAgLTVweCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IFRhZyA9IHN0eWxlZChDaGlwKSh7XG4gIG1hcmdpbjogJzVweCcsXG59KTtcbiJdfQ== */");
37
- exports.StyledText = StyledText;
38
- const Tags = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
39
- target: "e1e156f91"
40
- } : {
41
- target: "e1e156f91",
42
- label: "Tags"
43
- })(process.env.NODE_ENV === "production" ? {
44
- name: "li4bbv",
45
- styles: "display:flex;justify-content:start;flex-wrap:wrap;margin:0 -5px"
46
- } : {
47
- name: "li4bbv",
48
- styles: "display:flex;justify-content:start;flex-wrap:wrap;margin:0 -5px",
49
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RlcGVuZGVuY2llcy9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JvQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXBlbmRlbmNpZXMvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IENhcmQgZnJvbSAnQG11aS9tYXRlcmlhbC9DYXJkJztcbmltcG9ydCBDaGlwIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQ2hpcCc7XG5pbXBvcnQgVHlwb2dyYXBoeSBmcm9tICdAbXVpL21hdGVyaWFsL1R5cG9ncmFwaHknO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcblxuZXhwb3J0IGNvbnN0IENhcmRXcmFwID0gc3R5bGVkKENhcmQpKHtcbiAgbWFyZ2luOiAnMCAwIDE2cHgnLFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lICYmIHByb3BzLnRoZW1lLmZvbnRXZWlnaHQuYm9sZCxcbiAgdGV4dFRyYW5zZm9ybTogJ2NhcGl0YWxpemUnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgVGFncyA9IHN0eWxlZCgnZGl2Jykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGp1c3RpZnlDb250ZW50OiAnc3RhcnQnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICBtYXJnaW46ICcwIC01cHgnLFxufSk7XG5cbmV4cG9ydCBjb25zdCBUYWcgPSBzdHlsZWQoQ2hpcCkoe1xuICBtYXJnaW46ICc1cHgnLFxufSk7XG4iXX0= */",
50
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
51
- });
52
- exports.Tags = Tags;
53
- const Tag = /*#__PURE__*/(0, _base.default)(_Chip.default, process.env.NODE_ENV === "production" ? {
54
- target: "e1e156f90"
55
- } : {
56
- target: "e1e156f90",
57
- label: "Tag"
58
- })(process.env.NODE_ENV === "production" ? {
59
- name: "t10jb8",
60
- styles: "margin:5px"
61
- } : {
62
- name: "t10jb8",
63
- styles: "margin:5px",
64
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RlcGVuZGVuY2llcy9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJtQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXBlbmRlbmNpZXMvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IENhcmQgZnJvbSAnQG11aS9tYXRlcmlhbC9DYXJkJztcbmltcG9ydCBDaGlwIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQ2hpcCc7XG5pbXBvcnQgVHlwb2dyYXBoeSBmcm9tICdAbXVpL21hdGVyaWFsL1R5cG9ncmFwaHknO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcblxuZXhwb3J0IGNvbnN0IENhcmRXcmFwID0gc3R5bGVkKENhcmQpKHtcbiAgbWFyZ2luOiAnMCAwIDE2cHgnLFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lICYmIHByb3BzLnRoZW1lLmZvbnRXZWlnaHQuYm9sZCxcbiAgdGV4dFRyYW5zZm9ybTogJ2NhcGl0YWxpemUnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgVGFncyA9IHN0eWxlZCgnZGl2Jykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGp1c3RpZnlDb250ZW50OiAnc3RhcnQnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICBtYXJnaW46ICcwIC01cHgnLFxufSk7XG5cbmV4cG9ydCBjb25zdCBUYWcgPSBzdHlsZWQoQ2hpcCkoe1xuICBtYXJnaW46ICc1cHgnLFxufSk7XG4iXX0= */",
65
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
66
- });
67
- exports.Tag = Tag;
68
- //# sourceMappingURL=styles.js.map
@@ -1,69 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.StyledText = exports.Fab = exports.Details = exports.Content = void 0;
7
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
- var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
9
- var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12
- const Details = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
13
- target: "e1u5w7z83"
14
- } : {
15
- target: "e1u5w7z83",
16
- label: "Details"
17
- })(process.env.NODE_ENV === "production" ? {
18
- name: "zigog8",
19
- styles: "display:flex;flex-direction:column;align-items:center"
20
- } : {
21
- name: "zigog8",
22
- styles: "display:flex;flex-direction:column;align-items:center",
23
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU11QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
24
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
- });
26
- exports.Details = Details;
27
- const Content = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
28
- target: "e1u5w7z82"
29
- } : {
30
- target: "e1u5w7z82",
31
- label: "Content"
32
- })(process.env.NODE_ENV === "production" ? {
33
- name: "mkcn9c",
34
- styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}"
35
- } : {
36
- name: "mkcn9c",
37
- styles: "margin:10px 0 10px 0;display:flex;flex-wrap:wrap;> *{margin:5px;}",
38
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVl1QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9EZXZlbG9wZXJzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBGYWJNVUkgZnJvbSAnQG11aS9tYXRlcmlhbC9GYWInO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxzID0gc3R5bGVkKCdzcGFuJykoe1xuICBkaXNwbGF5OiAnZmxleCcsXG4gIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbn0pO1xuXG5leHBvcnQgY29uc3QgQ29udGVudCA9IHN0eWxlZCgnZGl2Jykoe1xuICBtYXJnaW46ICcxMHB4IDAgMTBweCAwJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4V3JhcDogJ3dyYXAnLFxuICAnPiAqJzoge1xuICAgIG1hcmdpbjogJzVweCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFRleHQgPSBzdHlsZWQoVHlwb2dyYXBoeSk8eyB0aGVtZT86IFRoZW1lIH0+KChwcm9wcykgPT4gKHtcbiAgZm9udFdlaWdodDogcHJvcHMudGhlbWU/LmZvbnRXZWlnaHQuYm9sZCxcbiAgbWFyZ2luQm90dG9tOiAnMTBweCcsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEZhYiA9IHN0eWxlZChGYWJNVUkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGJhY2tncm91bmRDb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUucHJpbWFyeS5tYWluLFxuICBjb2xvcjogcHJvcHMudGhlbWU/LnBhbGV0dGUud2hpdGUsXG59KSk7XG4iXX0= */",
39
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
- });
41
- exports.Content = Content;
42
- const StyledText = /*#__PURE__*/(0, _base.default)(_Typography.default, process.env.NODE_ENV === "production" ? {
43
- target: "e1u5w7z81"
44
- } : {
45
- target: "e1u5w7z81",
46
- label: "StyledText"
47
- })(props => {
48
- var _props$theme;
49
- return {
50
- fontWeight: (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontWeight.bold,
51
- marginBottom: '10px',
52
- textTransform: 'capitalize'
53
- };
54
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCMEIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
55
- exports.StyledText = StyledText;
56
- const Fab = /*#__PURE__*/(0, _base.default)(_Fab.default, process.env.NODE_ENV === "production" ? {
57
- target: "e1u5w7z80"
58
- } : {
59
- target: "e1u5w7z80",
60
- label: "Fab"
61
- })(props => {
62
- var _props$theme2, _props$theme3;
63
- return {
64
- backgroundColor: (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.palette.primary.main,
65
- color: (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.palette.white
66
- };
67
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgRmFiTVVJIGZyb20gJ0BtdWkvbWF0ZXJpYWwvRmFiJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlscyA9IHN0eWxlZCgnc3BhbicpKHtcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgYWxpZ25JdGVtczogJ2NlbnRlcicsXG59KTtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQoJ2RpdicpKHtcbiAgbWFyZ2luOiAnMTBweCAwIDEwcHggMCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleFdyYXA6ICd3cmFwJyxcbiAgJz4gKic6IHtcbiAgICBtYXJnaW46ICc1cHgnLFxuICB9LFxufSk7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lPy5mb250V2VpZ2h0LmJvbGQsXG4gIG1hcmdpbkJvdHRvbTogJzEwcHgnLFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG59KSk7XG5cbmV4cG9ydCBjb25zdCBGYWIgPSBzdHlsZWQoRmFiTVVJKTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBiYWNrZ3JvdW5kQ29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLnByaW1hcnkubWFpbixcbiAgY29sb3I6IHByb3BzLnRoZW1lPy5wYWxldHRlLndoaXRlLFxufSkpO1xuIl19 */");
68
- exports.Fab = Fab;
69
- //# sourceMappingURL=styles.js.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.fileSizeSI = fileSizeSI;
7
- exports.formatLicense = formatLicense;
8
- /**
9
- * Formats license field for webui.
10
- * @see https://docs.npmjs.com/files/package.json#license
11
- */
12
- // License should use type License defined above, but conflicts with the unit test that provide array or empty object
13
- function formatLicense(license) {
14
- if (typeof license === 'string') {
15
- return license;
16
- }
17
- if (license !== null && license !== void 0 && license.type) {
18
- return license.type;
19
- }
20
- return;
21
- }
22
- function fileSizeSI(a, b, c, d, e) {
23
- return (b = Math, c = b.log, d = 1e3, e = c(a) / c(d) | 0, a / b.pow(d, e)).toFixed(2) + ' ' + (e ? 'kMGTPEZY'[--e] + 'B' : 'Bytes');
24
- }
25
- //# sourceMappingURL=utils.js.map
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- var _utils = require("./utils");
4
- test('formatLicense as string', () => {
5
- expect((0, _utils.formatLicense)('MIT')).toEqual('MIT');
6
- });
7
- test('formatLicense as format object', () => {
8
- expect((0, _utils.formatLicense)({
9
- type: 'MIT'
10
- })).toEqual('MIT');
11
- });
12
- test('fileSizeSI as number 1000', () => {
13
- expect((0, _utils.fileSizeSI)(1000)).toEqual('1.00 kB');
14
- });
15
- test('fileSizeSI as number 0', () => {
16
- expect((0, _utils.fileSizeSI)(0)).toEqual('0.00 Bytes');
17
- });
18
- //# sourceMappingURL=utilts.spec.js.map
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _styles = require("./styles");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- const Tag = ({
11
- children
12
- }) => /*#__PURE__*/_react.default.createElement(_styles.Wrapper, null, children);
13
- var _default = Tag;
14
- exports.default = _default;
15
- //# sourceMappingURL=Tag.js.map
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function () {
9
- return _Tag.default;
10
- }
11
- });
12
- var _Tag = _interopRequireDefault(require("./Tag"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- //# sourceMappingURL=index.js.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Wrapper = void 0;
7
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10
- const Wrapper = /*#__PURE__*/(0, _base.default)('span', process.env.NODE_ENV === "production" ? {
11
- target: "e1bcw0zd0"
12
- } : {
13
- target: "e1bcw0zd0",
14
- label: "Wrapper"
15
- })(process.env.NODE_ENV === "production" ? {
16
- name: "bk6wq0",
17
- styles: "vertical-align:middle;line-height:22px;border-radius:2px;color:#485a3e;background-color:#f3f4f2;padding:0.22rem 0.4rem;margin:8px 8px 0 0"
18
- } : {
19
- name: "bk6wq0",
20
- styles: "vertical-align:middle;line-height:22px;border-radius:2px;color:#485a3e;background-color:#f3f4f2;padding:0.22rem 0.4rem;margin:8px 8px 0 0",
21
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1BhY2thZ2UvVGFnL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvUGFja2FnZS9UYWcvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZCgnc3BhbicpKHtcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIGxpbmVIZWlnaHQ6ICcyMnB4JyxcbiAgYm9yZGVyUmFkaXVzOiAnMnB4JyxcbiAgY29sb3I6ICcjNDg1YTNlJyxcbiAgYmFja2dyb3VuZENvbG9yOiAnI2YzZjRmMicsXG4gIHBhZGRpbmc6ICcwLjIycmVtIDAuNHJlbScsXG4gIG1hcmdpbjogJzhweCA4cHggMCAwJyxcbn0pO1xuIl19 */",
22
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
- });
24
- exports.Wrapper = Wrapper;
25
- //# sourceMappingURL=styles.js.map
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
9
- require("highlight.js/styles/default.css");
10
- var _react = _interopRequireDefault(require("react"));
11
- var _githubMarkdownDark = _interopRequireDefault(require("./github-markdown-dark.css"));
12
- var _utils = require("./utils");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- // @ts-ignore
15
-
16
- const Readme = ({
17
- description
18
- }) => {
19
- return /*#__PURE__*/_react.default.createElement(Wrapper, {
20
- className: (0, _classnames.default)('markdown-body', _githubMarkdownDark.default['markdown-body']),
21
- dangerouslySetInnerHTML: {
22
- __html: (0, _utils.parseReadme)(description)
23
- }
24
- });
25
- };
26
- var _default = Readme;
27
- exports.default = _default;
28
- const Wrapper = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV === "production" ? {
29
- target: "e12aoos20"
30
- } : {
31
- target: "e12aoos20",
32
- label: "Wrapper"
33
- })(({
34
- theme
35
- }) => ({
36
- background: theme === null || theme === void 0 ? void 0 : theme.palette.white,
37
- color: theme === null || theme === void 0 ? void 0 : theme.palette.black,
38
- padding: theme === null || theme === void 0 ? void 0 : theme.spacing(2, 3),
39
- ul: {
40
- listStyle: 'disc'
41
- },
42
- img: {
43
- maxWidth: '100%'
44
- }
45
- }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1JlYWRtZS9SZWFkbWVEYXJrLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQmdCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1JlYWRtZS9SZWFkbWVEYXJrLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBjeCBmcm9tICdjbGFzc25hbWVzJztcbmltcG9ydCAnaGlnaGxpZ2h0LmpzL3N0eWxlcy9kZWZhdWx0LmNzcyc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL1RoZW1lJztcbi8vIEB0cy1pZ25vcmVcbmltcG9ydCBzdHlsZXMgZnJvbSAnLi9naXRodWItbWFya2Rvd24tZGFyay5jc3MnO1xuaW1wb3J0IHsgUHJvcHMgfSBmcm9tICcuL3R5cGVzJztcbmltcG9ydCB7IHBhcnNlUmVhZG1lIH0gZnJvbSAnLi91dGlscyc7XG5cbmNvbnN0IFJlYWRtZTogUmVhY3QuRkM8UHJvcHM+ID0gKHsgZGVzY3JpcHRpb24gfSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxXcmFwcGVyXG4gICAgICBjbGFzc05hbWU9e2N4KCdtYXJrZG93bi1ib2R5Jywgc3R5bGVzWydtYXJrZG93bi1ib2R5J10pfVxuICAgICAgZGFuZ2Vyb3VzbHlTZXRJbm5lckhUTUw9e3sgX19odG1sOiBwYXJzZVJlYWRtZShkZXNjcmlwdGlvbikgYXMgc3RyaW5nIH19XG4gICAgLz5cbiAgKTtcbn07XG5leHBvcnQgZGVmYXVsdCBSZWFkbWU7XG5cbmNvbnN0IFdyYXBwZXIgPSBzdHlsZWQoJ2RpdicpPHsgdGhlbWU/OiBUaGVtZSB9PigoeyB0aGVtZSB9KSA9PiAoe1xuICBiYWNrZ3JvdW5kOiB0aGVtZT8ucGFsZXR0ZS53aGl0ZSxcbiAgY29sb3I6IHRoZW1lPy5wYWxldHRlLmJsYWNrLFxuICBwYWRkaW5nOiB0aGVtZT8uc3BhY2luZygyLCAzKSxcbiAgdWw6IHtcbiAgICBsaXN0U3R5bGU6ICdkaXNjJyxcbiAgfSxcbiAgaW1nOiB7XG4gICAgbWF4V2lkdGg6ICcxMDAlJyxcbiAgfSxcbn0pKTtcbiJdfQ== */");
46
- //# sourceMappingURL=ReadmeDark.js.map