@verdaccio/ui-theme 6.0.0-6-next.12 → 6.0.0-6-next.13

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 (246) hide show
  1. package/.babelrc +1 -1
  2. package/.eslintrc +0 -15
  3. package/CHANGELOG.md +6 -0
  4. package/jest/setup-env.ts +4 -1
  5. package/jest/unit/components/__mocks__/token.ts +0 -1
  6. package/jest/unit/components/store/login.ts +1 -0
  7. package/package.json +34 -37
  8. package/src/App/App.test.tsx +4 -6
  9. package/src/App/App.tsx +3 -5
  10. package/src/App/AppRoute.tsx +1 -1
  11. package/src/App/Footer/Footer.test.tsx +0 -1
  12. package/src/App/Footer/Footer.tsx +3 -3
  13. package/src/App/Footer/__snapshots__/Footer.test.tsx.snap +25 -9
  14. package/src/App/Footer/styles.ts +2 -3
  15. package/src/App/Header/Header.test.tsx +3 -5
  16. package/src/App/Header/Header.tsx +3 -5
  17. package/src/App/Header/HeaderGreetings.tsx +0 -1
  18. package/src/App/Header/HeaderLeft.tsx +0 -1
  19. package/src/App/Header/HeaderMenu.tsx +3 -3
  20. package/src/App/Header/HeaderRight.tsx +1 -2
  21. package/src/App/Header/HeaderToolTip.tsx +0 -1
  22. package/src/App/Header/HeaderToolTipIcon.tsx +10 -10
  23. package/src/App/Header/LanguageSwitch.tsx +4 -5
  24. package/src/App/Header/LoginDialog/LoginDialog.test.tsx +4 -7
  25. package/src/App/Header/LoginDialog/LoginDialog.tsx +2 -4
  26. package/src/App/Header/LoginDialog/LoginDialogCloseButton.tsx +1 -2
  27. package/src/App/Header/LoginDialog/LoginDialogForm.tsx +0 -1
  28. package/src/App/Header/LoginDialog/LoginDialogFormError.tsx +1 -2
  29. package/src/App/Header/LoginDialog/LoginDialogHeader.tsx +4 -4
  30. package/src/App/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -2
  31. package/src/App/Header/RegistryInfoContent/RegistryInfoContent.tsx +9 -10
  32. package/src/App/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +1 -2
  33. package/src/App/Header/RegistryInfoDialog/styles.ts +0 -1
  34. package/src/App/Header/Search/Search.test.tsx +32 -41
  35. package/src/App/Header/Search/Search.tsx +15 -58
  36. package/src/App/Header/Search/__snapshots__/Search.test.tsx.snap +392 -28
  37. package/src/App/Header/styles.ts +2 -3
  38. package/src/App/utils/loadable.tsx +2 -1
  39. package/src/components/ActionBar/ActionBar.test.tsx +5 -13
  40. package/src/components/ActionBar/ActionBar.tsx +0 -2
  41. package/src/components/ActionBar/ActionBarAction.tsx +6 -7
  42. package/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +198 -53
  43. package/src/components/AppBar.tsx +1 -1
  44. package/src/components/Author/Author.test.tsx +1 -3
  45. package/src/components/Author/Author.tsx +2 -4
  46. package/src/components/Author/__snapshots__/Author.test.tsx.snap +804 -48
  47. package/src/components/Author/styles.ts +0 -1
  48. package/src/components/AutoComplete/AutoComplete.tsx +85 -163
  49. package/src/components/AutoComplete/AutoCompleteV2.tsx +7 -9
  50. package/src/components/AutoComplete/styles.tsx +0 -15
  51. package/src/components/Avatar.tsx +1 -1
  52. package/src/components/Box.tsx +1 -1
  53. package/src/components/Button.tsx +1 -1
  54. package/src/components/Card.tsx +1 -1
  55. package/src/components/CardActions.tsx +1 -1
  56. package/src/components/CardContent.tsx +1 -1
  57. package/src/components/Chip.tsx +1 -1
  58. package/src/components/CircularProgress.tsx +2 -2
  59. package/src/components/CopyToClipBoard.tsx +2 -3
  60. package/src/components/Dialog.tsx +1 -1
  61. package/src/components/DialogActions.tsx +2 -2
  62. package/src/components/DialogContent.tsx +2 -2
  63. package/src/components/DialogTitle.tsx +1 -1
  64. package/src/components/Divider.tsx +1 -1
  65. package/src/components/FloatingActionButton.tsx +1 -1
  66. package/src/components/FormControl.tsx +1 -1
  67. package/src/components/FormHelperText.tsx +2 -2
  68. package/src/components/Grid.tsx +1 -1
  69. package/src/components/Heading.tsx +1 -1
  70. package/src/components/IconButton.tsx +1 -1
  71. package/src/components/Input.tsx +1 -1
  72. package/src/components/InputAdornment/InputAdornment.tsx +2 -2
  73. package/src/components/InputLabel.tsx +1 -1
  74. package/src/components/Label/Label.test.tsx +0 -1
  75. package/src/components/Label/Label.tsx +1 -2
  76. package/src/components/List.tsx +1 -1
  77. package/src/components/ListItem.tsx +1 -1
  78. package/src/components/ListItemText.tsx +1 -4
  79. package/src/components/Loading/Loading.test.tsx +0 -1
  80. package/src/components/Loading/Loading.tsx +1 -2
  81. package/src/components/Loading/Spinner/Spinner.test.tsx +1 -2
  82. package/src/components/Loading/Spinner/Spinner.tsx +1 -2
  83. package/src/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +114 -16
  84. package/src/components/Loading/__snapshots__/Loading.test.tsx.snap +63 -11
  85. package/src/components/Loading/styles.ts +1 -2
  86. package/src/components/Logo/Logo.test.tsx +0 -1
  87. package/src/components/Logo/Logo.tsx +1 -2
  88. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +2 -0
  89. package/src/components/Menu.tsx +1 -1
  90. package/src/components/MenuItem.tsx +1 -1
  91. package/src/components/NotFound/NotFound.tsx +1 -3
  92. package/src/components/NotFound/Notfound.test.tsx +1 -2
  93. package/src/components/NotFound/__snapshots__/Notfound.test.tsx.snap +138 -11
  94. package/src/components/NotFound/styles.ts +0 -1
  95. package/src/components/Paper.tsx +1 -1
  96. package/src/components/SnackbarContent.tsx +1 -1
  97. package/src/components/SvgIcon.tsx +1 -1
  98. package/src/components/Tab.tsx +1 -1
  99. package/src/components/Tabs.tsx +1 -1
  100. package/src/components/Text/Text.tsx +1 -1
  101. package/src/components/Text/TextConfig.ts +1 -1
  102. package/src/components/TextField/TextField.test.tsx +0 -1
  103. package/src/components/TextField/TextField.tsx +2 -2
  104. package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +216 -3
  105. package/src/components/Toolbar.tsx +1 -1
  106. package/src/components/Tooltip.tsx +1 -1
  107. package/src/design-tokens/ResetStyles.tsx +1 -1
  108. package/src/design-tokens/StyleBaseline.tsx +2 -2
  109. package/src/design-tokens/ThemeProvider.tsx +15 -12
  110. package/src/design-tokens/theme.ts +28 -26
  111. package/src/design-tokens/useTheme.ts +1 -1
  112. package/src/{design-tokens → hooks}/useLocalStorage.ts +0 -0
  113. package/src/{design-tokens → hooks}/useOnClickOutside.ts +0 -0
  114. package/src/i18n/__mocks__/loadTranslationFile.ts +5 -0
  115. package/src/i18n/config.ts +1 -15
  116. package/src/i18n/download_translations/es-ES/ui.json +17 -17
  117. package/src/i18n/download_translations/it-IT/ui.json +77 -77
  118. package/src/i18n/download_translations/tr-TR/ui.json +6 -6
  119. package/src/i18n/download_translations/vi-VN/ui.json +2 -2
  120. package/src/i18n/loadTranslationFile.ts +14 -0
  121. package/src/index.tsx +2 -1
  122. package/src/pages/Version/DetailContainer/Dependencies/Dependencies.test.tsx +0 -2
  123. package/src/pages/Version/DetailContainer/Dependencies/Dependencies.tsx +1 -3
  124. package/src/pages/Version/DetailContainer/Dependencies/styles.ts +0 -1
  125. package/src/pages/Version/DetailContainer/Deprecated/Deprecated.test.tsx +1 -3
  126. package/src/pages/Version/DetailContainer/Deprecated/Deprecated.tsx +2 -3
  127. package/src/pages/Version/DetailContainer/DetailContainer.test.tsx +0 -1
  128. package/src/pages/Version/DetailContainer/DetailContainer.tsx +1 -3
  129. package/src/pages/Version/DetailContainer/DetailContainerContent.tsx +0 -1
  130. package/src/pages/Version/DetailContainer/DetailContainerContentReadme.tsx +0 -1
  131. package/src/pages/Version/DetailContainer/DetailContainerTabs.tsx +0 -1
  132. package/src/pages/Version/DetailContainer/NoItems/NoItems.tsx +0 -1
  133. package/src/pages/Version/DetailContainer/NoItems/Noitems.test.tsx +0 -1
  134. package/src/pages/Version/DetailContainer/NoItems/__snapshots__/Noitems.test.tsx.snap +10 -1
  135. package/src/pages/Version/DetailContainer/Readme/Readme.spec.tsx +1 -2
  136. package/src/pages/Version/DetailContainer/Readme/Readme.tsx +1 -2
  137. package/src/pages/Version/DetailContainer/UpLinks/UpLinks.test.tsx +1 -3
  138. package/src/pages/Version/DetailContainer/UpLinks/UpLinks.tsx +1 -3
  139. package/src/pages/Version/DetailContainer/UpLinks/__snapshots__/UpLinks.test.tsx.snap +184 -26
  140. package/src/pages/Version/DetailContainer/UpLinks/styles.ts +2 -3
  141. package/src/pages/Version/DetailContainer/Versions/Versions.test.tsx +2 -4
  142. package/src/pages/Version/DetailContainer/Versions/Versions.tsx +1 -2
  143. package/src/pages/Version/DetailContainer/Versions/VersionsHistoryList.tsx +2 -4
  144. package/src/pages/Version/DetailContainer/Versions/VersionsTagList.tsx +1 -3
  145. package/src/pages/Version/DetailContainer/Versions/styles.ts +2 -3
  146. package/src/pages/Version/DetailContainer/__snapshots__/DetailContainer.test.tsx.snap +168 -34
  147. package/src/pages/Version/DetailSidebar/DetailSidebar.tsx +0 -2
  148. package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.test.tsx +0 -2
  149. package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.tsx +1 -2
  150. package/src/pages/Version/DetailSidebar/DetailSidebarTitle.tsx +0 -1
  151. package/src/pages/Version/DetailSidebar/Developers/Developers.test.tsx +3 -5
  152. package/src/pages/Version/DetailSidebar/Developers/Developers.tsx +3 -5
  153. package/src/pages/Version/DetailSidebar/Developers/DevelopersTitle.tsx +0 -1
  154. package/src/pages/Version/DetailSidebar/Developers/__snapshots__/Developers.test.tsx.snap +328 -40
  155. package/src/pages/Version/DetailSidebar/Developers/styles.ts +0 -1
  156. package/src/pages/Version/DetailSidebar/Dist/Dist.test.tsx +1 -3
  157. package/src/pages/Version/DetailSidebar/Dist/Dist.tsx +1 -3
  158. package/src/pages/Version/DetailSidebar/Dist/__snapshots__/Dist.test.tsx.snap +1436 -74
  159. package/src/pages/Version/DetailSidebar/Dist/styles.ts +2 -1
  160. package/src/pages/Version/DetailSidebar/Engines/Engines.test.tsx +1 -3
  161. package/src/pages/Version/DetailSidebar/Engines/Engines.tsx +1 -3
  162. package/src/pages/Version/DetailSidebar/Engines/styles.ts +0 -1
  163. package/src/pages/Version/DetailSidebar/Install/Install.test.tsx +1 -3
  164. package/src/pages/Version/DetailSidebar/Install/Install.tsx +0 -2
  165. package/src/pages/Version/DetailSidebar/Install/InstallListItem.tsx +0 -1
  166. package/src/pages/Version/DetailSidebar/Repository/Repository.test.tsx +1 -3
  167. package/src/pages/Version/DetailSidebar/Repository/Repository.tsx +1 -3
  168. package/src/pages/Version/Version.test.tsx +1 -3
  169. package/src/pages/Version/Version.tsx +1 -3
  170. package/src/pages/Version/VersionContextProvider.tsx +0 -1
  171. package/src/pages/Version/VersionLayout.tsx +1 -1
  172. package/src/pages/Version/context.ts +1 -1
  173. package/src/pages/home/Home.tsx +0 -2
  174. package/src/pages/home/PackageList/Help/Help.test.tsx +0 -1
  175. package/src/pages/home/PackageList/Help/Help.tsx +0 -1
  176. package/src/pages/home/PackageList/Help/__snapshots__/Help.test.tsx.snap +295 -56
  177. package/src/pages/home/PackageList/Help/styles.ts +0 -1
  178. package/src/pages/home/PackageList/Package/Package.test.tsx +1 -3
  179. package/src/pages/home/PackageList/Package/Package.tsx +14 -19
  180. package/src/pages/home/PackageList/Package/Tag/Tag.test.tsx +0 -1
  181. package/src/pages/home/PackageList/Package/styles.ts +5 -6
  182. package/src/pages/home/PackageList/PackageList.tsx +0 -1
  183. package/src/pages/home/PackageList/Packagelist.test.tsx +1 -3
  184. package/src/providers/API/api.ts +1 -1
  185. package/src/providers/config/AppConfigurationProvider.tsx +3 -3
  186. package/src/store/models/configuration.ts +2 -3
  187. package/src/store/models/download.ts +1 -2
  188. package/src/store/models/index.ts +1 -0
  189. package/src/store/models/login.ts +4 -2
  190. package/src/store/models/manifest.ts +2 -2
  191. package/src/store/models/packages.ts +2 -2
  192. package/src/store/models/search.ts +5 -5
  193. package/src/store/store.ts +2 -2
  194. package/src/utils/login.test.ts +2 -3
  195. package/src/utils/package.test.ts +2 -3
  196. package/src/utils/package.ts +2 -1
  197. package/src/utils/sec-utils.ts +1 -1
  198. package/src/utils/test-react-testing-library.tsx +11 -7
  199. package/src/utils/url.test.ts +1 -1
  200. package/src/utils/url.ts +1 -0
  201. package/static/Dependencies.15768a14646212b71166.js +2 -0
  202. package/static/Dependencies.15768a14646212b71166.js.LICENSE.txt +78 -0
  203. package/static/Dist.15768a14646212b71166.js +2 -0
  204. package/static/Dist.15768a14646212b71166.js.LICENSE.txt +60 -0
  205. package/static/Engines.15768a14646212b71166.js +2 -0
  206. package/static/Engines.15768a14646212b71166.js.LICENSE.txt +66 -0
  207. package/static/Home.15768a14646212b71166.js +2 -0
  208. package/static/Home.15768a14646212b71166.js.LICENSE.txt +222 -0
  209. package/static/Install.15768a14646212b71166.js +2 -0
  210. package/static/Install.15768a14646212b71166.js.LICENSE.txt +66 -0
  211. package/static/NotFound.15768a14646212b71166.js +2 -0
  212. package/static/NotFound.15768a14646212b71166.js.LICENSE.txt +40 -0
  213. package/static/Provider.15768a14646212b71166.js +2 -0
  214. package/static/Provider.15768a14646212b71166.js.LICENSE.txt +32 -0
  215. package/static/Repository.15768a14646212b71166.js +2 -0
  216. package/static/Repository.15768a14646212b71166.js.LICENSE.txt +50 -0
  217. package/static/UpLinks.15768a14646212b71166.js +2 -0
  218. package/static/UpLinks.15768a14646212b71166.js.LICENSE.txt +56 -0
  219. package/static/Version.15768a14646212b71166.js +2 -0
  220. package/static/Version.15768a14646212b71166.js.LICENSE.txt +380 -0
  221. package/static/Versions.15768a14646212b71166.js +2 -0
  222. package/static/Versions.15768a14646212b71166.js.LICENSE.txt +64 -0
  223. package/static/index.html +1 -1
  224. package/static/main.15768a14646212b71166.js +2 -0
  225. package/static/{main.87dd0a7ff6e306a24166.js.LICENSE.txt → main.15768a14646212b71166.js.LICENSE.txt} +63 -663
  226. package/static/manifest.json +17 -3
  227. package/static/runtime.15768a14646212b71166.js +2 -0
  228. package/static/{runtime.87dd0a7ff6e306a24166.js.LICENSE.txt → runtime.15768a14646212b71166.js.LICENSE.txt} +2 -2
  229. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js +2 -0
  230. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js.LICENSE.txt +148 -0
  231. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js +2 -0
  232. package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js.LICENSE.txt +218 -0
  233. package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js +2 -0
  234. package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js.LICENSE.txt +316 -0
  235. package/static/vendors.15768a14646212b71166.js +103 -0
  236. package/static/{vendors.87dd0a7ff6e306a24166.js.LICENSE.txt → vendors.15768a14646212b71166.js.LICENSE.txt} +1261 -1035
  237. package/tools/dev.server.js +0 -1
  238. package/tools/webpack.dev.config.babel.js +1 -3
  239. package/tsconfig.json +0 -2
  240. package/types/index.ts +1 -0
  241. package/src/App/Header/Search/SearchAdornment.tsx +0 -18
  242. package/src/design-tokens/emotion.ts +0 -5
  243. package/src/lib/constants.ts +0 -9
  244. package/static/main.87dd0a7ff6e306a24166.js +0 -2
  245. package/static/runtime.87dd0a7ff6e306a24166.js +0 -2
  246. package/static/vendors.87dd0a7ff6e306a24166.js +0 -2
package/.babelrc CHANGED
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "@babel/preset-react"
14
14
  ],
15
- "plugins": ["react-hot-loader/babel", "@babel/transform-runtime", "emotion"],
15
+ "plugins": ["react-hot-loader/babel", "@babel/transform-runtime", "@emotion"],
16
16
  "env": {
17
17
  "test": {
18
18
  "presets": [
package/.eslintrc CHANGED
@@ -11,21 +11,6 @@
11
11
  "verdaccio"
12
12
  ],
13
13
  "rules": {
14
- "import/order": ["error", {
15
- "pathGroups": [
16
- {
17
- "pattern": "verdaccio-ui/**",
18
- "group": "external",
19
- "position": "after"
20
- }
21
- ],
22
- "pathGroupsExcludedImportTypes": ["verdaccio-ui"],
23
- "alphabetize": {
24
- "order": "asc",
25
- "caseInsensitive": true
26
- },
27
- "newlines-between": "always"
28
- }],
29
14
  "react/display-name": 0,
30
15
  "react/no-deprecated": 1,
31
16
  "react/jsx-no-target-blank": 1,
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @verdaccio/ui-theme
2
2
 
3
+ ## 6.0.0-6-next.13
4
+
5
+ ### Major Changes
6
+
7
+ - 000d4374: feat: upgrade to material ui 5
8
+
3
9
  ## 6.0.0-6-next.12
4
10
 
5
11
  ### Major Changes
package/jest/setup-env.ts CHANGED
@@ -1,9 +1,12 @@
1
+ import '@testing-library/jest-dom';
1
2
  import '@testing-library/jest-dom/extend-expect';
2
3
  import 'whatwg-fetch';
3
- import '@testing-library/jest-dom';
4
4
 
5
5
  import { server } from './server';
6
6
 
7
+ // mock load translations to avoid warnings
8
+ jest.mock('../src/i18n/loadTranslationFile');
9
+
7
10
  beforeAll(() => {
8
11
  server.listen({
9
12
  onUnhandledRequest: 'warn',
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Token Utility
3
3
  */
4
-
5
4
  import dayjs from 'dayjs';
6
5
  import { Base64 } from 'js-base64';
7
6
 
@@ -1,4 +1,5 @@
1
1
  import { API_ERROR } from '../../../../lib/constants';
2
+
2
3
  /**
3
4
  * API mock for login endpoint
4
5
  * @param {object} config configuration of api call
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/ui-theme",
3
- "version": "6.0.0-6-next.12",
3
+ "version": "6.0.0-6-next.13",
4
4
  "description": "Verdaccio User Interface",
5
5
  "author": {
6
6
  "name": "Verdaccio Contributors",
@@ -17,44 +17,42 @@
17
17
  "npm": ">=6"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/react": "17.0.19",
20
+ "@types/react": "17.0.37",
21
21
  "@types/react-autosuggest": "10.1.5",
22
- "@types/react-dom": "17.0.9",
23
- "@types/react-helmet": "6.1.2",
22
+ "@types/react-dom": "17.0.11",
23
+ "@types/react-helmet": "6.1.4",
24
24
  "@types/redux": "3.6.0",
25
- "@types/react-router-dom": "5.1.8",
26
- "@types/react-virtualized": "9.21.13",
27
- "@emotion/core": "10.1.1",
28
- "@emotion/jest": "11.3.0",
29
- "@emotion/styled": "10.0.27",
30
- "@emotion/styled-base": "^10.0.31",
31
- "@material-ui/core": "4.11.4",
32
- "@material-ui/icons": "4.11.2",
33
- "@material-ui/styles": "4.11.4",
34
- "@rematch/core": "2.1.0",
35
- "@rematch/loading": "2.1.0",
36
- "@testing-library/dom": "8.5.0",
37
- "@testing-library/jest-dom": "5.14.1",
38
- "@testing-library/react": "12.1.0",
39
- "@verdaccio/node-api": "6.0.0-6-next.22",
40
- "autosuggest-highlight": "3.1.1",
41
- "babel-loader": "8.2.2",
25
+ "@types/react-router-dom": "5.3.2",
26
+ "@types/react-virtualized": "9.21.15",
27
+ "@emotion/react": "11.5.0",
28
+ "@emotion/jest": "11.5.0",
29
+ "@emotion/styled": "11.3.0",
30
+ "@emotion/css": "11.5.0",
31
+ "@emotion/babel-plugin": "11.0.0",
32
+ "@mui/icons-material": "5.0.5",
33
+ "@mui/material": "5.0.6",
34
+ "@mui/styles": "5.0.2",
35
+ "@rematch/core": "2.2.0",
36
+ "@rematch/loading": "2.1.2",
37
+ "@testing-library/dom": "8.11.1",
38
+ "@testing-library/jest-dom": "5.16.1",
39
+ "@testing-library/react": "12.1.2",
40
+ "@verdaccio/node-api": "6.0.0-6-next.25",
41
+ "@verdaccio/types": "11.0.0-6-next.10",
42
+ "babel-loader": "8.2.3",
42
43
  "babel-plugin-dynamic-import-node": "2.3.3",
43
- "babel-plugin-emotion": "10.2.2",
44
44
  "bundlesize": "0.18.1",
45
- "css-loader": "6.2.0",
46
- "dayjs": "1.10.6",
47
- "emotion": "10.0.27",
48
- "emotion-theming": "10.0.27",
45
+ "css-loader": "6.5.1",
46
+ "dayjs": "1.10.7",
49
47
  "friendly-errors-webpack-plugin": "1.7.0",
50
48
  "github-markdown-css": "4.0.0",
51
49
  "harmony-reflect": "1.6.2",
52
50
  "history": "4.10.1",
53
- "html-webpack-plugin": "5.3.2",
51
+ "html-webpack-plugin": "5.4.0",
54
52
  "i18next": "20.6.1",
55
53
  "in-publish": "2.0.1",
56
- "country-flag-icons": "1.4.10",
57
- "js-base64": "3.6.1",
54
+ "country-flag-icons": "1.4.19",
55
+ "js-base64": "3.7.2",
58
56
  "js-yaml": "3.14.1",
59
57
  "localstorage-memory": "1.0.3",
60
58
  "lodash": "4.17.21",
@@ -66,7 +64,6 @@
66
64
  "ora": "5.4.1",
67
65
  "prop-types": "15.7.2",
68
66
  "react": "17.0.2",
69
- "react-autosuggest": "10.1.0",
70
67
  "react-dom": "17.0.2",
71
68
  "react-hook-form": "7.15.3",
72
69
  "react-hot-loader": "4.13.0",
@@ -74,8 +71,8 @@
74
71
  "react-router": "5.2.1",
75
72
  "react-router-dom": "5.3.0",
76
73
  "react-virtualized": "9.22.3",
77
- "react-redux": "7.2.1",
78
- "redux": "4.1.1",
74
+ "react-redux": "7.2.6",
75
+ "redux": "4.1.2",
79
76
  "rimraf": "3.0.2",
80
77
  "msw": "0.35.0",
81
78
  "standard-version": "9.3.1",
@@ -86,18 +83,18 @@
86
83
  "stylelint-processor-styled-components": "1.10.0",
87
84
  "stylelint-webpack-plugin": "3.0.1",
88
85
  "supertest": "6.1.6",
89
- "terser-webpack-plugin": "5.2.3",
86
+ "terser-webpack-plugin": "5.2.5",
90
87
  "url-loader": "4.1.1",
91
- "validator": "13.6.0",
92
- "webpack": "5.52.0",
88
+ "validator": "13.7.0",
89
+ "webpack": "5.64.0",
93
90
  "webpack-bundle-analyzer": "4.4.2",
94
91
  "webpack-bundle-size-analyzer": "3.1.0",
95
92
  "webpack-cli": "^4.7.2",
96
- "webpack-dev-server": "3.11.2",
93
+ "webpack-dev-server": "3.11.3",
97
94
  "webpack-manifest-plugin": "4.0.2",
98
95
  "webpack-merge": "5.8.0",
99
96
  "whatwg-fetch": "3.6.2",
100
- "xss": "1.0.9"
97
+ "xss": "1.0.10"
101
98
  },
102
99
  "keywords": [
103
100
  "private",
@@ -1,17 +1,15 @@
1
1
  import React from 'react';
2
-
3
2
  import {
4
- renderWithStore,
5
3
  act,
6
- waitFor,
7
4
  fireEvent,
5
+ renderWithStore,
8
6
  screen,
7
+ waitFor,
9
8
  } from 'verdaccio-ui/utils/test-react-testing-library';
10
9
 
11
10
  // eslint-disable-next-line jest/no-mocks-import
12
11
  import { generateTokenWithTimeRange } from '../../jest/unit/components/__mocks__/token';
13
12
  import { store } from '../store';
14
-
15
13
  import App from './App';
16
14
 
17
15
  jest.mock('verdaccio-ui/utils/storage', () => {
@@ -68,7 +66,7 @@ describe('<App />', () => {
68
66
  expect(queryByTestId('greetings-label')).toBeFalsy();
69
67
  }
70
68
  }
71
- });
69
+ }, 10000);
72
70
 
73
71
  test('isUserAlreadyLoggedIn: token already available in storage', async () => {
74
72
  const { queryByTestId, queryAllByText } = renderWithStore(<App />, store);
@@ -92,7 +90,7 @@ describe('<App />', () => {
92
90
  expect(queryAllByText('verdaccio')).toBeTruthy();
93
91
  }
94
92
  }
95
- });
93
+ }, 10000);
96
94
  });
97
95
 
98
96
  describe('list packages', () => {
package/src/App/App.tsx CHANGED
@@ -1,20 +1,18 @@
1
1
  /* eslint-disable react/jsx-max-depth */
2
2
  import styled from '@emotion/styled';
3
- import React, { useEffect, Suspense } from 'react';
3
+ import React, { Suspense, useEffect } from 'react';
4
4
  import { Router } from 'react-router-dom';
5
-
6
5
  import Box from 'verdaccio-ui/components/Box';
7
6
  import Loading from 'verdaccio-ui/components/Loading';
8
- import loadDayJSLocale from 'verdaccio-ui/design-tokens/load-dayjs-locale';
9
7
  import StyleBaseline from 'verdaccio-ui/design-tokens/StyleBaseline';
8
+ import loadDayJSLocale from 'verdaccio-ui/design-tokens/load-dayjs-locale';
10
9
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
11
10
 
11
+ import '../i18n/config';
12
12
  import AppRoute, { history } from './AppRoute';
13
13
  import Footer from './Footer';
14
14
  import Header from './Header';
15
15
 
16
- import '../i18n/config';
17
-
18
16
  const StyledBox = styled(Box)<{ theme?: Theme }>(({ theme }) => ({
19
17
  backgroundColor: theme?.palette.background.default,
20
18
  }));
@@ -1,6 +1,6 @@
1
1
  import { createBrowserHistory } from 'history';
2
2
  import React from 'react';
3
- import { Route as ReactRouterDomRoute, Switch, Router } from 'react-router-dom';
3
+ import { Route as ReactRouterDomRoute, Router, Switch } from 'react-router-dom';
4
4
 
5
5
  import loadable from './utils/loadable';
6
6
 
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
-
3
2
  import { render } from 'verdaccio-ui/utils/test-react-testing-library';
4
3
 
5
4
  import Footer from './Footer';
@@ -1,17 +1,17 @@
1
1
  /* eslint-disable react/jsx-max-depth */
2
+
2
3
  /* eslint-disable react/jsx-pascal-case */
3
4
  import styled from '@emotion/styled';
4
5
  import FlagsIcon from 'country-flag-icons/react/3x2';
5
6
  import React from 'react';
6
- import { useTranslation, Trans } from 'react-i18next';
7
-
7
+ import { Trans, useTranslation } from 'react-i18next';
8
8
  import { Earth } from 'verdaccio-ui/components/Icons';
9
9
  import Logo from 'verdaccio-ui/components/Logo';
10
10
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
11
11
  import { useConfig } from 'verdaccio-ui/providers/config';
12
12
  import { goToVerdaccioWebsite } from 'verdaccio-ui/utils/windows';
13
13
 
14
- import { Wrapper, Left, Right, Love, Inner } from './styles';
14
+ import { Inner, Left, Love, Right, Wrapper } from './styles';
15
15
 
16
16
  /* eslint-disable react/jsx-key */
17
17
  const Footer = () => {
@@ -19,25 +19,24 @@ exports[`<Footer /> component should load the initial state of Footer component
19
19
  -ms-flex-align: center;
20
20
  align-items: center;
21
21
  -webkit-box-pack: end;
22
- -webkit-justify-content: flex-end;
23
22
  -ms-flex-pack: end;
23
+ -webkit-justify-content: flex-end;
24
24
  justify-content: flex-end;
25
25
  width: 100%;
26
26
  }
27
27
 
28
- @media (min-width:768px) {
28
+ @media (min-width: 768px) {
29
29
  .emotion-2 {
30
30
  min-width: 400px;
31
31
  max-width: 800px;
32
32
  margin: auto;
33
33
  -webkit-box-pack: justify;
34
34
  -webkit-justify-content: space-between;
35
- -ms-flex-pack: justify;
36
35
  justify-content: space-between;
37
36
  }
38
37
  }
39
38
 
40
- @media (min-width:1024px) {
39
+ @media (min-width: 1024px) {
41
40
  .emotion-2 {
42
41
  max-width: 1240px;
43
42
  }
@@ -51,7 +50,7 @@ exports[`<Footer /> component should load the initial state of Footer component
51
50
  display: none;
52
51
  }
53
52
 
54
- @media (min-width:768px) {
53
+ @media (min-width: 768px) {
55
54
  .emotion-4 {
56
55
  display: -webkit-box;
57
56
  display: -webkit-flex;
@@ -74,7 +73,21 @@ exports[`<Footer /> component should load the initial state of Footer component
74
73
  visibility: visible;
75
74
  }
76
75
 
77
- .emotion-11 {
76
+ .emotion-12 {
77
+ -webkit-user-select: none;
78
+ -moz-user-select: none;
79
+ -ms-user-select: none;
80
+ user-select: none;
81
+ width: 1em;
82
+ height: 1em;
83
+ display: inline-block;
84
+ fill: currentColor;
85
+ -webkit-flex-shrink: 0;
86
+ -ms-flex-negative: 0;
87
+ flex-shrink: 0;
88
+ -webkit-transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
89
+ transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
90
+ font-size: 1.5rem;
78
91
  width: 18px;
79
92
  height: 18px;
80
93
  margin: 0px 8px;
@@ -82,7 +95,7 @@ exports[`<Footer /> component should load the initial state of Footer component
82
95
 
83
96
  .emotion-13 {
84
97
  display: inline-grid;
85
- grid-template-columns: repeat(8,max-content);
98
+ grid-template-columns: repeat(8, max-content);
86
99
  grid-gap: 0px 8px;
87
100
  position: absolute;
88
101
  background: #d3dddd;
@@ -106,6 +119,7 @@ exports[`<Footer /> component should load the initial state of Footer component
106
119
  border: 5px solid;
107
120
  border-color: #d3dddd transparent transparent transparent;
108
121
  -webkit-transform: rotate(90deg);
122
+ -moz-transform: rotate(90deg);
109
123
  -ms-transform: rotate(90deg);
110
124
  transform: rotate(90deg);
111
125
  }
@@ -126,7 +140,7 @@ exports[`<Footer /> component should load the initial state of Footer component
126
140
  display: flex;
127
141
  }
128
142
 
129
- @media (min-width:768px) {
143
+ @media (min-width: 768px) {
130
144
  .emotion-31 {
131
145
  display: -webkit-box;
132
146
  display: -webkit-flex;
@@ -139,7 +153,9 @@ exports[`<Footer /> component should load the initial state of Footer component
139
153
  display: inline-block;
140
154
  vertical-align: middle;
141
155
  box-sizing: border-box;
156
+ -webkit-background-position: center;
142
157
  background-position: center;
158
+ -webkit-background-size: contain;
143
159
  background-size: contain;
144
160
  background-image: url([object Object]);
145
161
  background-repeat: no-repeat;
@@ -168,7 +184,7 @@ exports[`<Footer /> component should load the initial state of Footer component
168
184
  >
169
185
  <svg
170
186
  aria-hidden="true"
171
- class="MuiSvgIcon-root emotion-10 emotion-11 emotion-12"
187
+ class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium emotion-10 emotion-11 emotion-12"
172
188
  focusable="false"
173
189
  viewBox="0 0 45 45"
174
190
  >
@@ -1,11 +1,10 @@
1
1
  import styled from '@emotion/styled';
2
-
3
2
  import { Theme } from 'verdaccio-ui/design-tokens/theme';
4
3
 
5
4
  export const Wrapper = styled('div')<{ theme?: Theme }>(({ theme }) => ({
6
- background: theme?.palette.type === 'light' ? theme?.palette.snow : theme?.palette.cyanBlue,
5
+ background: theme?.palette.mode === 'light' ? theme?.palette.snow : theme?.palette.cyanBlue,
7
6
  borderTop: `1px solid ${theme?.palette.greyGainsboro}`,
8
- color: theme?.palette.type === 'dark' ? theme?.palette.white : theme?.palette.nobel01,
7
+ color: theme?.palette.mode === 'dark' ? theme?.palette.white : theme?.palette.nobel01,
9
8
  fontSize: '14px',
10
9
  padding: '20px',
11
10
  }));
@@ -1,18 +1,16 @@
1
1
  import React from 'react';
2
2
  import { BrowserRouter as Router } from 'react-router-dom';
3
-
4
3
  import {
5
- renderWithStore,
6
- fireEvent,
7
- waitFor,
8
4
  cleanup,
5
+ fireEvent,
6
+ renderWithStore,
9
7
  screen,
8
+ waitFor,
10
9
  waitForElementToBeRemoved,
11
10
  } from 'verdaccio-ui/utils/test-react-testing-library';
12
11
 
13
12
  import translationEN from '../../i18n/crowdin/ui.json';
14
13
  import { store } from '../../store';
15
-
16
14
  import Header from './Header';
17
15
 
18
16
  /* eslint-disable react/jsx-no-bind*/
@@ -1,18 +1,16 @@
1
1
  import React, { useState } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { useDispatch, useSelector } from 'react-redux';
4
-
5
4
  import Button from 'verdaccio-ui/components/Button';
6
5
  import { useConfig } from 'verdaccio-ui/providers/config';
7
6
 
8
7
  import { Dispatch, RootState } from '../../store/store';
9
-
10
8
  import HeaderInfoDialog from './HeaderInfoDialog';
11
9
  import HeaderLeft from './HeaderLeft';
12
10
  import HeaderRight from './HeaderRight';
13
11
  import LoginDialog from './LoginDialog';
14
12
  import Search from './Search';
15
- import { NavBar, InnerNavBar, MobileNavBar, InnerMobileNavBar } from './styles';
13
+ import { InnerMobileNavBar, InnerNavBar, MobileNavBar, NavBar } from './styles';
16
14
 
17
15
  interface Props {
18
16
  withoutSearch?: boolean;
@@ -25,7 +23,7 @@ const Header: React.FC<Props> = ({ withoutSearch }) => {
25
23
  const [showMobileNavBar, setShowMobileNavBar] = useState<boolean>(false);
26
24
  const [showLoginModal, setShowLoginModal] = useState<boolean>(false);
27
25
  const loginStore = useSelector((state: RootState) => state.login);
28
- const configStore = useSelector((state: RootState) => state.configuration);
26
+ const configStore = useSelector((state: RootState) => state.configuration.config);
29
27
  const { configOptions } = useConfig();
30
28
  const dispatch = useDispatch<Dispatch>();
31
29
  const handleLogout = () => {
@@ -64,7 +62,7 @@ const Header: React.FC<Props> = ({ withoutSearch }) => {
64
62
  </Button>
65
63
  </MobileNavBar>
66
64
  )}
67
- {!loginStore.user && (
65
+ {!loginStore.username && (
68
66
  <LoginDialog onClose={() => setShowLoginModal(false)} open={showLoginModal} />
69
67
  )}
70
68
  </>
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
-
4
3
  import Label from 'verdaccio-ui/components/Label';
5
4
 
6
5
  import { Greetings } from './styles';
@@ -1,7 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
2
  import React from 'react';
3
3
  import { Link } from 'react-router-dom';
4
-
5
4
  import Logo from 'verdaccio-ui/components/Logo';
6
5
 
7
6
  import Search from './Search';
@@ -1,7 +1,6 @@
1
- import AccountCircle from '@material-ui/icons/AccountCircle';
1
+ import AccountCircle from '@mui/icons-material/AccountCircle';
2
2
  import React, { MouseEvent } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
-
5
4
  import IconButton from 'verdaccio-ui/components/IconButton';
6
5
  import Menu from 'verdaccio-ui/components/Menu';
7
6
  import MenuItem from 'verdaccio-ui/components/MenuItem';
@@ -32,7 +31,8 @@ const HeaderMenu: React.FC<Props> = ({
32
31
  color="inherit"
33
32
  data-testid="logInDialogIcon"
34
33
  id="header--button-account"
35
- onClick={onLoggedInMenu}>
34
+ onClick={onLoggedInMenu}
35
+ size="large">
36
36
  <AccountCircle />
37
37
  </IconButton>
38
38
  <Menu
@@ -1,6 +1,5 @@
1
- import React, { useState, useEffect, useContext, MouseEvent } from 'react';
1
+ import React, { MouseEvent, useContext, useEffect, useState } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
-
4
3
  import Button from 'verdaccio-ui/components/Button';
5
4
  import ThemeContext from 'verdaccio-ui/design-tokens/ThemeContext';
6
5
 
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
-
3
2
  import Tooltip from 'verdaccio-ui/components/Tooltip';
4
3
 
5
4
  import HeaderToolTipIcon, { TooltipIconType } from './HeaderToolTipIcon';
@@ -1,10 +1,9 @@
1
- import Help from '@material-ui/icons/Help';
2
- import Info from '@material-ui/icons/Info';
3
- import NightsStay from '@material-ui/icons/NightsStay';
4
- import Search from '@material-ui/icons/Search';
5
- import WbSunny from '@material-ui/icons/WbSunny';
1
+ import Help from '@mui/icons-material/Help';
2
+ import Info from '@mui/icons-material/Info';
3
+ import NightsStay from '@mui/icons-material/NightsStay';
4
+ import Search from '@mui/icons-material/Search';
5
+ import WbSunny from '@mui/icons-material/WbSunny';
6
6
  import React, { forwardRef } from 'react';
7
-
8
7
  import IconButton from 'verdaccio-ui/components/IconButton';
9
8
 
10
9
  import { IconSearchButton, StyledLink } from './styles';
@@ -30,7 +29,7 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
30
29
  data-testid={'header--tooltip-documentation'}
31
30
  external={true}
32
31
  to={'https://verdaccio.org/docs/en/installation'}>
33
- <IconButton color={'inherit'}>
32
+ <IconButton color={'inherit'} size="large">
34
33
  <Help />
35
34
  </IconButton>
36
35
  </StyledLink>
@@ -42,7 +41,8 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
42
41
  data-testid={'header--tooltip-info'}
43
42
  id="header--button-registryInfo"
44
43
  onClick={onClick}
45
- ref={ref}>
44
+ ref={ref}
45
+ size="large">
46
46
  <Info />
47
47
  </IconButton>
48
48
  );
@@ -55,7 +55,7 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
55
55
  case 'dark-mode':
56
56
  // todo(Priscila): Add Zoom transition effect
57
57
  return (
58
- <IconButton color="inherit" onClick={onClick} ref={ref}>
58
+ <IconButton color="inherit" onClick={onClick} ref={ref} size="large">
59
59
  <NightsStay />
60
60
  </IconButton>
61
61
  );
@@ -63,7 +63,7 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
63
63
  case 'light-mode':
64
64
  // todo(Priscila): Add Zoom transition effect
65
65
  return (
66
- <IconButton color="inherit" onClick={onClick} ref={ref}>
66
+ <IconButton color="inherit" onClick={onClick} ref={ref} size="large">
67
67
  <WbSunny />
68
68
  </IconButton>
69
69
  );
@@ -1,15 +1,14 @@
1
1
  /* eslint-disable react/jsx-pascal-case */
2
2
  import styled from '@emotion/styled';
3
- import { withStyles } from '@material-ui/core/styles';
4
- import LanguageIcon from '@material-ui/icons/Language';
3
+ import LanguageIcon from '@mui/icons-material/Language';
4
+ import withStyles from '@mui/styles/withStyles';
5
5
  import i18next from 'i18next';
6
- import React, { useCallback, useContext, useState, useMemo } from 'react';
6
+ import React, { useCallback, useContext, useMemo, useState } from 'react';
7
7
  import { useTranslation } from 'react-i18next';
8
-
9
8
  import { AutoComplete } from 'verdaccio-ui/components/AutoComplete/AutoCompleteV2';
10
9
  import MenuItem from 'verdaccio-ui/components/MenuItem';
11
- import { Theme } from 'verdaccio-ui/design-tokens/theme';
12
10
  import ThemeContext from 'verdaccio-ui/design-tokens/ThemeContext';
11
+ import { Theme } from 'verdaccio-ui/design-tokens/theme';
13
12
 
14
13
  import { Language, listLanguages } from '../../i18n/enabledLanguages';
15
14
 
@@ -1,17 +1,15 @@
1
1
  import React from 'react';
2
-
3
2
  import api from 'verdaccio-ui/providers/API/api';
4
3
  import {
5
- renderWithStore,
6
- waitFor,
7
- fireEvent,
4
+ act,
8
5
  cleanup,
6
+ fireEvent,
7
+ renderWithStore,
9
8
  screen,
10
- act,
9
+ waitFor,
11
10
  } from 'verdaccio-ui/utils/test-react-testing-library';
12
11
 
13
12
  import { store } from '../../../store';
14
-
15
13
  import LoginDialog from './LoginDialog';
16
14
 
17
15
  describe('<LoginDialog /> component', () => {
@@ -103,7 +101,6 @@ describe('<LoginDialog /> component', () => {
103
101
  fireEvent.click(signInButton);
104
102
  });
105
103
  expect(props.onClose).toHaveBeenCalledTimes(1);
106
- // screen.debug();
107
104
  });
108
105
 
109
106
  test.todo('validateCredentials: should validate credentials');