@verdaccio/ui-components 2.0.0-6-next.6 → 2.0.0-6-next.7

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 (242) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/sections/Footer/Footer.js +7 -5
  3. package/package.json +2 -2
  4. package/src/components/LoginDialog/LoginDialog.test.tsx +1 -1
  5. package/src/components/Search/Search.test.tsx +1 -1
  6. package/src/sections/Footer/Footer.test.tsx +5 -4
  7. package/src/sections/Footer/Footer.tsx +1 -1
  8. package/build/Theme/ResetStyles.js.map +0 -1
  9. package/build/Theme/StyleBaseline.js.map +0 -1
  10. package/build/Theme/ThemeProvider.js.map +0 -1
  11. package/build/Theme/colors.js.map +0 -1
  12. package/build/Theme/index.js.map +0 -1
  13. package/build/Theme/theme.js.map +0 -1
  14. package/build/__mocks__/react-markdown.js.map +0 -1
  15. package/build/__mocks__/remark-plugin.js.map +0 -1
  16. package/build/components/ActionBar/ActionBar.js.map +0 -1
  17. package/build/components/ActionBar/ActionBarAction.js.map +0 -1
  18. package/build/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +0 -263
  19. package/build/components/ActionBar/index.js.map +0 -1
  20. package/build/components/Author/Author.js.map +0 -1
  21. package/build/components/Author/__snapshots__/Author.test.tsx.snap +0 -753
  22. package/build/components/Author/index.js.map +0 -1
  23. package/build/components/Author/styles.js.map +0 -1
  24. package/build/components/CopyClipboard/CopyToClipBoard.js.map +0 -1
  25. package/build/components/CopyClipboard/index.js.map +0 -1
  26. package/build/components/CopyClipboard/utils.js.map +0 -1
  27. package/build/components/Dependencies/Dependencies.js.map +0 -1
  28. package/build/components/Dependencies/index.js.map +0 -1
  29. package/build/components/Dependencies/styles.js.map +0 -1
  30. package/build/components/Dependencies/types.js.map +0 -1
  31. package/build/components/Deprecated/Deprecated.js.map +0 -1
  32. package/build/components/Deprecated/index.js.map +0 -1
  33. package/build/components/Developers/Developers.js.map +0 -1
  34. package/build/components/Developers/Title.js.map +0 -1
  35. package/build/components/Developers/__snapshots__/Developers.test.tsx.snap +0 -668
  36. package/build/components/Developers/get-unique-developer-values.js.map +0 -1
  37. package/build/components/Developers/index.js.map +0 -1
  38. package/build/components/Developers/styles.js.map +0 -1
  39. package/build/components/Distribution/Dist.js.map +0 -1
  40. package/build/components/Distribution/__snapshots__/Dist.test.tsx.snap +0 -1436
  41. package/build/components/Distribution/index.js.map +0 -1
  42. package/build/components/Distribution/styles.js.map +0 -1
  43. package/build/components/Distribution/utils.js.map +0 -1
  44. package/build/components/Engines/Engines.js.map +0 -1
  45. package/build/components/Engines/index.js.map +0 -1
  46. package/build/components/Engines/styles.js.map +0 -1
  47. package/build/components/ErrorBoundary/ErrorBoundary.js.map +0 -1
  48. package/build/components/ErrorBoundary/index.js.map +0 -1
  49. package/build/components/FundButton/FundButton.js.map +0 -1
  50. package/build/components/FundButton/index.js.map +0 -1
  51. package/build/components/HeaderInfoDialog/HeaderInfoDialog.js.map +0 -1
  52. package/build/components/HeaderInfoDialog/index.js.map +0 -1
  53. package/build/components/Heading/Heading.js.map +0 -1
  54. package/build/components/Heading/index.js.map +0 -1
  55. package/build/components/Help/Help.js.map +0 -1
  56. package/build/components/Help/__snapshots__/Help.test.tsx.snap +0 -395
  57. package/build/components/Help/index.js.map +0 -1
  58. package/build/components/Help/styles.js.map +0 -1
  59. package/build/components/Icons/DevsIcons/CommonJS.js.map +0 -1
  60. package/build/components/Icons/DevsIcons/ES6Module.js.map +0 -1
  61. package/build/components/Icons/DevsIcons/Git.js.map +0 -1
  62. package/build/components/Icons/DevsIcons/NodeJS.js.map +0 -1
  63. package/build/components/Icons/DevsIcons/TypeScript.js.map +0 -1
  64. package/build/components/Icons/DevsIcons/index.js.map +0 -1
  65. package/build/components/Icons/Earth.js.map +0 -1
  66. package/build/components/Icons/FileBinary.js.map +0 -1
  67. package/build/components/Icons/Law.js.map +0 -1
  68. package/build/components/Icons/Managers/Npm.js.map +0 -1
  69. package/build/components/Icons/Managers/Pnpm.js.map +0 -1
  70. package/build/components/Icons/Managers/Yarn.js.map +0 -1
  71. package/build/components/Icons/Managers/index.js.map +0 -1
  72. package/build/components/Icons/SvgIcon.js.map +0 -1
  73. package/build/components/Icons/Time.js.map +0 -1
  74. package/build/components/Icons/Version.js.map +0 -1
  75. package/build/components/Icons/index.js.map +0 -1
  76. package/build/components/Install/Install.js.map +0 -1
  77. package/build/components/Install/InstallListItem.js.map +0 -1
  78. package/build/components/Install/index.js.map +0 -1
  79. package/build/components/Label/Label.js.map +0 -1
  80. package/build/components/Label/__snapshots__/Label.test.tsx.snap +0 -14
  81. package/build/components/Label/index.js.map +0 -1
  82. package/build/components/Link/Link.js.map +0 -1
  83. package/build/components/Link/index.js.map +0 -1
  84. package/build/components/Loading/Loading.js.map +0 -1
  85. package/build/components/Loading/Spinner/Spinner.js.map +0 -1
  86. package/build/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +0 -246
  87. package/build/components/Loading/Spinner/index.js.map +0 -1
  88. package/build/components/Loading/__snapshots__/Loading.test.tsx.snap +0 -138
  89. package/build/components/Loading/index.js.map +0 -1
  90. package/build/components/Loading/styles.js.map +0 -1
  91. package/build/components/LoginDialog/LoginDialog.js.map +0 -1
  92. package/build/components/LoginDialog/LoginDialogCloseButton.js.map +0 -1
  93. package/build/components/LoginDialog/LoginDialogForm.js.map +0 -1
  94. package/build/components/LoginDialog/LoginDialogFormError.js.map +0 -1
  95. package/build/components/LoginDialog/LoginDialogHeader.js.map +0 -1
  96. package/build/components/LoginDialog/__snapshots__/LoginDialog.test.tsx.snap +0 -3
  97. package/build/components/LoginDialog/index.js.map +0 -1
  98. package/build/components/Logo/Logo.js.map +0 -1
  99. package/build/components/Logo/__snapshots__/Logo.test.tsx.snap +0 -21
  100. package/build/components/Logo/index.js.map +0 -1
  101. package/build/components/MenuItem/MenuItem.js.map +0 -1
  102. package/build/components/MenuItem/index.js.map +0 -1
  103. package/build/components/NoItems/NoItems.js.map +0 -1
  104. package/build/components/NoItems/__snapshots__/Noitems.test.tsx.snap +0 -18
  105. package/build/components/NoItems/index.js.map +0 -1
  106. package/build/components/NotFound/NotFound.js.map +0 -1
  107. package/build/components/NotFound/__snapshots__/Notfound.test.tsx.snap +0 -171
  108. package/build/components/NotFound/index.js.map +0 -1
  109. package/build/components/Package/Package.js.map +0 -1
  110. package/build/components/Package/Tag/Tag.js.map +0 -1
  111. package/build/components/Package/Tag/__snapshots__/Tag.test.tsx.snap +0 -21
  112. package/build/components/Package/Tag/index.js.map +0 -1
  113. package/build/components/Package/Tag/styles.js.map +0 -1
  114. package/build/components/Package/index.js.map +0 -1
  115. package/build/components/Package/styles.js.map +0 -1
  116. package/build/components/PackageList/PackageList.js.map +0 -1
  117. package/build/components/PackageList/index.js.map +0 -1
  118. package/build/components/RawViewer/RawViewer.js.map +0 -1
  119. package/build/components/RawViewer/index.js.map +0 -1
  120. package/build/components/Readme/__snapshots__/Readme.spec.tsx.snap +0 -110
  121. package/build/components/Readme/index.js.map +0 -1
  122. package/build/components/Readme/types.js.map +0 -1
  123. package/build/components/Readme/utils.js.map +0 -1
  124. package/build/components/RegistryInfoDialog/RegistryInfoDialog.js.map +0 -1
  125. package/build/components/RegistryInfoDialog/index.js.map +0 -1
  126. package/build/components/RegistryInfoDialog/styles.js.map +0 -1
  127. package/build/components/RegistryInfoDialog/types.js.map +0 -1
  128. package/build/components/Repository/Repository.js.map +0 -1
  129. package/build/components/Repository/__snapshots__/Repository.test.tsx.snap +0 -3
  130. package/build/components/Repository/index.js.map +0 -1
  131. package/build/components/Search/AutoComplete/AutoComplete.js.map +0 -1
  132. package/build/components/Search/AutoComplete/index.js.map +0 -1
  133. package/build/components/Search/AutoComplete/styles.js.map +0 -1
  134. package/build/components/Search/Search.js.map +0 -1
  135. package/build/components/Search/SearchItem.js.map +0 -1
  136. package/build/components/Search/__snapshots__/Search.test.tsx.snap +0 -473
  137. package/build/components/Search/index.js.map +0 -1
  138. package/build/components/Search/styles.js.map +0 -1
  139. package/build/components/SideBarTittle/SideBarTittle.js.map +0 -1
  140. package/build/components/SideBarTittle/index.js.map +0 -1
  141. package/build/components/SideBarTittle/utils.js.map +0 -1
  142. package/build/components/TextField/TextField.js.map +0 -1
  143. package/build/components/TextField/__snapshots__/TextField.test.tsx.snap +0 -236
  144. package/build/components/TextField/index.js.map +0 -1
  145. package/build/components/UpLinks/UpLinks.js.map +0 -1
  146. package/build/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap +0 -407
  147. package/build/components/UpLinks/index.js.map +0 -1
  148. package/build/components/UpLinks/styles.js.map +0 -1
  149. package/build/components/Versions/HistoryList.js.map +0 -1
  150. package/build/components/Versions/TagList.js.map +0 -1
  151. package/build/components/Versions/Versions.js.map +0 -1
  152. package/build/components/Versions/index.js.map +0 -1
  153. package/build/components/Versions/styles.js.map +0 -1
  154. package/build/components/Versions/types.js.map +0 -1
  155. package/build/hooks/index.js.map +0 -1
  156. package/build/hooks/useLocalStorage.js.map +0 -1
  157. package/build/hooks/useOnClickOutside.js.map +0 -1
  158. package/build/index.js.map +0 -1
  159. package/build/layouts/Version/Version.js.map +0 -1
  160. package/build/layouts/Version/index.js.map +0 -1
  161. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js.map +0 -1
  162. package/build/providers/AppConfigurationProvider/index.js.map +0 -1
  163. package/build/providers/TranslatorProvider/TranslatorProvider.js.map +0 -1
  164. package/build/providers/TranslatorProvider/index.js.map +0 -1
  165. package/build/providers/VersionProvider/VersionProvider.js.map +0 -1
  166. package/build/providers/VersionProvider/index.js.map +0 -1
  167. package/build/providers/index.js.map +0 -1
  168. package/build/sections/Detail/ContainerContent.js.map +0 -1
  169. package/build/sections/Detail/Detail.js.map +0 -1
  170. package/build/sections/Detail/ReadmeSection.js.map +0 -1
  171. package/build/sections/Detail/Tabs.js.map +0 -1
  172. package/build/sections/Detail/__snapshots__/Detail.test.tsx.snap +0 -237
  173. package/build/sections/Detail/index.js.map +0 -1
  174. package/build/sections/Footer/Footer.js.map +0 -1
  175. package/build/sections/Footer/__snapshots__/Footer.test.tsx.snap +0 -486
  176. package/build/sections/Footer/index.js.map +0 -1
  177. package/build/sections/Footer/styles.js.map +0 -1
  178. package/build/sections/Header/Header.js.map +0 -1
  179. package/build/sections/Header/HeaderGreetings.js.map +0 -1
  180. package/build/sections/Header/HeaderLeft.js.map +0 -1
  181. package/build/sections/Header/HeaderMenu.js.map +0 -1
  182. package/build/sections/Header/HeaderRight.js.map +0 -1
  183. package/build/sections/Header/HeaderSettingsDialog.js.map +0 -1
  184. package/build/sections/Header/HeaderToolTip.js.map +0 -1
  185. package/build/sections/Header/HeaderToolTipIcon.js.map +0 -1
  186. package/build/sections/Header/LanguageSwitch.js.map +0 -1
  187. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js.map +0 -1
  188. package/build/sections/Header/RegistryInfoContent/index.js.map +0 -1
  189. package/build/sections/Header/RegistryInfoContent/styles.js.map +0 -1
  190. package/build/sections/Header/RegistryInfoDialog/RegistryInfoDialog.js.map +0 -1
  191. package/build/sections/Header/RegistryInfoDialog/index.js.map +0 -1
  192. package/build/sections/Header/RegistryInfoDialog/styles.js.map +0 -1
  193. package/build/sections/Header/RegistryInfoDialog/types.js.map +0 -1
  194. package/build/sections/Header/index.js.map +0 -1
  195. package/build/sections/Header/styles.js.map +0 -1
  196. package/build/sections/Home/Home.js.map +0 -1
  197. package/build/sections/Home/index.js.map +0 -1
  198. package/build/sections/SideBar/Sidebar.js.map +0 -1
  199. package/build/sections/SideBar/index.js.map +0 -1
  200. package/build/sections/index.js.map +0 -1
  201. package/build/store/api.js.map +0 -1
  202. package/build/store/index.js.map +0 -1
  203. package/build/store/models/configuration.js.map +0 -1
  204. package/build/store/models/download.js.map +0 -1
  205. package/build/store/models/index.js.map +0 -1
  206. package/build/store/models/login.js.map +0 -1
  207. package/build/store/models/manifest.js.map +0 -1
  208. package/build/store/models/packages.js.map +0 -1
  209. package/build/store/models/search.js.map +0 -1
  210. package/build/store/storage.js.map +0 -1
  211. package/build/store/store.js.map +0 -1
  212. package/build/test/i18n-config.js.map +0 -1
  213. package/build/test/test-react-testing-library.js.map +0 -1
  214. package/build/types/index.js.map +0 -1
  215. package/build/types/packageMeta.js.map +0 -1
  216. package/build/utils/__partials__/packageMeta.js.map +0 -1
  217. package/build/utils/cli-utils.js.map +0 -1
  218. package/build/utils/index.js.map +0 -1
  219. package/build/utils/loadable.js.map +0 -1
  220. package/build/utils/routes.js.map +0 -1
  221. package/build/utils/url.js.map +0 -1
  222. package/build/utils/utils.js.map +0 -1
  223. package/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +0 -263
  224. package/src/components/Author/__snapshots__/Author.test.tsx.snap +0 -753
  225. package/src/components/Developers/__snapshots__/Developers.test.tsx.snap +0 -668
  226. package/src/components/Distribution/__snapshots__/Dist.test.tsx.snap +0 -1436
  227. package/src/components/Help/__snapshots__/Help.test.tsx.snap +0 -395
  228. package/src/components/Label/__snapshots__/Label.test.tsx.snap +0 -14
  229. package/src/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +0 -246
  230. package/src/components/Loading/__snapshots__/Loading.test.tsx.snap +0 -138
  231. package/src/components/LoginDialog/__snapshots__/LoginDialog.test.tsx.snap +0 -3
  232. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +0 -21
  233. package/src/components/NoItems/__snapshots__/Noitems.test.tsx.snap +0 -18
  234. package/src/components/NotFound/__snapshots__/Notfound.test.tsx.snap +0 -171
  235. package/src/components/Package/Tag/__snapshots__/Tag.test.tsx.snap +0 -21
  236. package/src/components/Readme/__snapshots__/Readme.spec.tsx.snap +0 -110
  237. package/src/components/Repository/__snapshots__/Repository.test.tsx.snap +0 -3
  238. package/src/components/Search/__snapshots__/Search.test.tsx.snap +0 -473
  239. package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +0 -236
  240. package/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap +0 -407
  241. package/src/sections/Detail/__snapshots__/Detail.test.tsx.snap +0 -237
  242. package/src/sections/Footer/__snapshots__/Footer.test.tsx.snap +0 -486
@@ -1,236 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<TextField /> component should load the component in default state 1`] = `
4
- .emotion-0 {
5
- display: -webkit-inline-box;
6
- display: -webkit-inline-flex;
7
- display: -ms-inline-flexbox;
8
- display: inline-flex;
9
- -webkit-flex-direction: column;
10
- -ms-flex-direction: column;
11
- flex-direction: column;
12
- position: relative;
13
- min-width: 0;
14
- padding: 0;
15
- margin: 0;
16
- border: 0;
17
- vertical-align: top;
18
- }
19
-
20
- .emotion-1 {
21
- font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
22
- font-weight: 400;
23
- font-size: 1rem;
24
- line-height: 1.4375em;
25
- color: rgba(0, 0, 0, 0.87);
26
- box-sizing: border-box;
27
- position: relative;
28
- cursor: text;
29
- display: -webkit-inline-box;
30
- display: -webkit-inline-flex;
31
- display: -ms-inline-flexbox;
32
- display: inline-flex;
33
- -webkit-align-items: center;
34
- -webkit-box-align: center;
35
- -ms-flex-align: center;
36
- align-items: center;
37
- position: relative;
38
- border-radius: 4px;
39
- }
40
-
41
- .emotion-1.Mui-disabled {
42
- color: rgba(0, 0, 0, 0.38);
43
- cursor: default;
44
- }
45
-
46
- .emotion-1:hover .MuiOutlinedInput-notchedOutline {
47
- border-color: rgba(0, 0, 0, 0.87);
48
- }
49
-
50
- @media (hover: none) {
51
- .emotion-1:hover .MuiOutlinedInput-notchedOutline {
52
- border-color: rgba(0, 0, 0, 0.23);
53
- }
54
- }
55
-
56
- .emotion-1.Mui-focused .MuiOutlinedInput-notchedOutline {
57
- border-color: #4b5e40;
58
- border-width: 2px;
59
- }
60
-
61
- .emotion-1.Mui-error .MuiOutlinedInput-notchedOutline {
62
- border-color: #d32f2f;
63
- }
64
-
65
- .emotion-1.Mui-disabled .MuiOutlinedInput-notchedOutline {
66
- border-color: rgba(0, 0, 0, 0.26);
67
- }
68
-
69
- .emotion-2 {
70
- font: inherit;
71
- letter-spacing: inherit;
72
- color: currentColor;
73
- padding: 4px 0 5px;
74
- border: 0;
75
- box-sizing: content-box;
76
- background: none;
77
- height: 1.4375em;
78
- margin: 0;
79
- -webkit-tap-highlight-color: transparent;
80
- display: block;
81
- min-width: 0;
82
- width: 100%;
83
- -webkit-animation-name: mui-auto-fill-cancel;
84
- animation-name: mui-auto-fill-cancel;
85
- -webkit-animation-duration: 10ms;
86
- animation-duration: 10ms;
87
- padding: 16.5px 14px;
88
- }
89
-
90
- .emotion-2::-webkit-input-placeholder {
91
- color: currentColor;
92
- opacity: 0.42;
93
- -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
94
- transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
95
- }
96
-
97
- .emotion-2::-moz-placeholder {
98
- color: currentColor;
99
- opacity: 0.42;
100
- -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
101
- transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
102
- }
103
-
104
- .emotion-2:-ms-input-placeholder {
105
- color: currentColor;
106
- opacity: 0.42;
107
- -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
108
- transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
109
- }
110
-
111
- .emotion-2::-ms-input-placeholder {
112
- color: currentColor;
113
- opacity: 0.42;
114
- -webkit-transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
115
- transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
116
- }
117
-
118
- .emotion-2:focus {
119
- outline: 0;
120
- }
121
-
122
- .emotion-2:invalid {
123
- box-shadow: none;
124
- }
125
-
126
- .emotion-2::-webkit-search-decoration {
127
- -webkit-appearance: none;
128
- }
129
-
130
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2::-webkit-input-placeholder {
131
- opacity: 0!important;
132
- }
133
-
134
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2::-moz-placeholder {
135
- opacity: 0!important;
136
- }
137
-
138
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2:-ms-input-placeholder {
139
- opacity: 0!important;
140
- }
141
-
142
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2::-ms-input-placeholder {
143
- opacity: 0!important;
144
- }
145
-
146
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2:focus::-webkit-input-placeholder {
147
- opacity: 0.42;
148
- }
149
-
150
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2:focus::-moz-placeholder {
151
- opacity: 0.42;
152
- }
153
-
154
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2:focus:-ms-input-placeholder {
155
- opacity: 0.42;
156
- }
157
-
158
- label[data-shrink=false]+.MuiInputBase-formControl .emotion-2:focus::-ms-input-placeholder {
159
- opacity: 0.42;
160
- }
161
-
162
- .emotion-2.Mui-disabled {
163
- opacity: 1;
164
- -webkit-text-fill-color: rgba(0, 0, 0, 0.38);
165
- }
166
-
167
- .emotion-2:-webkit-autofill {
168
- -webkit-animation-duration: 5000s;
169
- animation-duration: 5000s;
170
- -webkit-animation-name: mui-auto-fill;
171
- animation-name: mui-auto-fill;
172
- }
173
-
174
- .emotion-2:-webkit-autofill {
175
- border-radius: inherit;
176
- }
177
-
178
- .emotion-3 {
179
- text-align: left;
180
- position: absolute;
181
- bottom: 0;
182
- right: 0;
183
- top: -5px;
184
- left: 0;
185
- margin: 0;
186
- padding: 0 8px;
187
- pointer-events: none;
188
- border-radius: inherit;
189
- border-style: solid;
190
- border-width: 1px;
191
- overflow: hidden;
192
- min-width: 0%;
193
- border-color: rgba(0, 0, 0, 0.23);
194
- }
195
-
196
- .emotion-4 {
197
- float: unset;
198
- width: auto;
199
- overflow: hidden;
200
- padding: 0;
201
- line-height: 11px;
202
- -webkit-transition: width 150ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
203
- transition: width 150ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
204
- }
205
-
206
- <div
207
- class="MuiFormControl-root MuiTextField-root emotion-0"
208
- >
209
- <div
210
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl emotion-1"
211
- >
212
- <input
213
- aria-invalid="false"
214
- class="MuiInputBase-input MuiOutlinedInput-input emotion-2"
215
- id=":r0:"
216
- name="test"
217
- type="text"
218
- value="test"
219
- />
220
- <fieldset
221
- aria-hidden="true"
222
- class="MuiOutlinedInput-notchedOutline emotion-3"
223
- >
224
- <legend
225
- class="emotion-4"
226
- >
227
- <span
228
- class="notranslate"
229
- >
230
-
231
- </span>
232
- </legend>
233
- </fieldset>
234
- </div>
235
- </div>
236
- `;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/TextField/index.ts"],"sourcesContent":["export { default } from './TextField';\n"],"mappings":";;;;;;;;;;;AAAA;AAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"UpLinks.js","names":["UpLinks","packageMeta","useTranslation","t","_uplinks","latest","uplinks","Object","keys","length","name","reverse","map","utils","formatDateDistance","fetched"],"sources":["../../../src/components/UpLinks/UpLinks.tsx"],"sourcesContent":["import List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { utils } from '../../utils';\nimport NoItems from '../NoItems';\nimport { ListItemText, Spacer, StyledText } from './styles';\n\nconst UpLinks: React.FC<{ packageMeta: any }> = ({ packageMeta }) => {\n const { t } = useTranslation();\n\n if (!packageMeta?._uplinks || !packageMeta.latest) {\n return null;\n }\n\n const { _uplinks: uplinks, latest } = packageMeta;\n\n if (Object.keys(uplinks).length === 0) {\n return <NoItems data-testid=\"no-uplinks\" text={t('uplinks.no-items', { name: latest.name })} />;\n }\n\n return (\n <>\n <StyledText variant=\"subtitle1\">{t('uplinks.title')}</StyledText>\n <List>\n {Object.keys(uplinks)\n .reverse()\n .map((name) => (\n <ListItem key={name}>\n <ListItemText>{name}</ListItemText>\n <Spacer />\n <ListItemText>{utils.formatDateDistance(uplinks[name].fetched)}</ListItemText>\n </ListItem>\n ))}\n </List>\n </>\n );\n};\n\nexport default UpLinks;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAA4D;AAE5D,IAAMA,OAAuC,GAAG,SAA1CA,OAAuC,OAAwB;EAAA,IAAlBC,WAAW,QAAXA,WAAW;EAC5D,sBAAc,IAAAC,4BAAc,GAAE;IAAtBC,CAAC,mBAADA,CAAC;EAET,IAAI,EAACF,WAAW,aAAXA,WAAW,eAAXA,WAAW,CAAEG,QAAQ,KAAI,CAACH,WAAW,CAACI,MAAM,EAAE;IACjD,OAAO,IAAI;EACb;EAEA,IAAkBC,OAAO,GAAaL,WAAW,CAAzCG,QAAQ;IAAWC,MAAM,GAAKJ,WAAW,CAAtBI,MAAM;EAEjC,IAAIE,MAAM,CAACC,IAAI,CAACF,OAAO,CAAC,CAACG,MAAM,KAAK,CAAC,EAAE;IACrC,oBAAO,gCAAC,mBAAO;MAAC,eAAY,YAAY;MAAC,IAAI,EAAEN,CAAC,CAAC,kBAAkB,EAAE;QAAEO,IAAI,EAAEL,MAAM,CAACK;MAAK,CAAC;IAAE,EAAG;EACjG;EAEA,oBACE,+EACE,gCAAC,kBAAU;IAAC,OAAO,EAAC;EAAW,GAAEP,CAAC,CAAC,eAAe,CAAC,CAAc,eACjE,gCAAC,gBAAI,QACFI,MAAM,CAACC,IAAI,CAACF,OAAO,CAAC,CAClBK,OAAO,EAAE,CACTC,GAAG,CAAC,UAACF,IAAI;IAAA,oBACR,gCAAC,oBAAQ;MAAC,GAAG,EAAEA;IAAK,gBAClB,gCAAC,oBAAY,QAAEA,IAAI,CAAgB,eACnC,gCAAC,cAAM,OAAG,eACV,gCAAC,oBAAY,QAAEG,YAAK,CAACC,kBAAkB,CAACR,OAAO,CAACI,IAAI,CAAC,CAACK,OAAO,CAAC,CAAgB,CACrE;EAAA,CACZ,CAAC,CACC,CACN;AAEP,CAAC;AAAC,eAEaf,OAAO;AAAA"}
@@ -1,407 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<UpLinks /> component should render the component when there is no uplink 1`] = `
4
- {
5
- "asFragment": [Function],
6
- "baseElement": .emotion-0 {
7
- margin: 0;
8
- font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
9
- font-weight: 400;
10
- font-size: 1rem;
11
- line-height: 1.75;
12
- margin-bottom: 0.35em;
13
- }
14
-
15
- <body>
16
- <div>
17
- <h6
18
- class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom emotion-0"
19
- data-testid="no-uplinks"
20
- >
21
- uplinks.no-items
22
- </h6>
23
- </div>
24
- </body>,
25
- "container": .emotion-0 {
26
- margin: 0;
27
- font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
28
- font-weight: 400;
29
- font-size: 1rem;
30
- line-height: 1.75;
31
- margin-bottom: 0.35em;
32
- }
33
-
34
- <div>
35
- <h6
36
- class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom emotion-0"
37
- data-testid="no-uplinks"
38
- >
39
- uplinks.no-items
40
- </h6>
41
- </div>,
42
- "debug": [Function],
43
- "findAllByAltText": [Function],
44
- "findAllByDisplayValue": [Function],
45
- "findAllByLabelText": [Function],
46
- "findAllByPlaceholderText": [Function],
47
- "findAllByRole": [Function],
48
- "findAllByTestId": [Function],
49
- "findAllByText": [Function],
50
- "findAllByTitle": [Function],
51
- "findByAltText": [Function],
52
- "findByDisplayValue": [Function],
53
- "findByLabelText": [Function],
54
- "findByPlaceholderText": [Function],
55
- "findByRole": [Function],
56
- "findByTestId": [Function],
57
- "findByText": [Function],
58
- "findByTitle": [Function],
59
- "getAllByAltText": [Function],
60
- "getAllByDisplayValue": [Function],
61
- "getAllByLabelText": [Function],
62
- "getAllByPlaceholderText": [Function],
63
- "getAllByRole": [Function],
64
- "getAllByTestId": [Function],
65
- "getAllByText": [Function],
66
- "getAllByTitle": [Function],
67
- "getByAltText": [Function],
68
- "getByDisplayValue": [Function],
69
- "getByLabelText": [Function],
70
- "getByPlaceholderText": [Function],
71
- "getByRole": [Function],
72
- "getByTestId": [Function],
73
- "getByText": [Function],
74
- "getByTitle": [Function],
75
- "queryAllByAltText": [Function],
76
- "queryAllByDisplayValue": [Function],
77
- "queryAllByLabelText": [Function],
78
- "queryAllByPlaceholderText": [Function],
79
- "queryAllByRole": [Function],
80
- "queryAllByTestId": [Function],
81
- "queryAllByText": [Function],
82
- "queryAllByTitle": [Function],
83
- "queryByAltText": [Function],
84
- "queryByDisplayValue": [Function],
85
- "queryByLabelText": [Function],
86
- "queryByPlaceholderText": [Function],
87
- "queryByRole": [Function],
88
- "queryByTestId": [Function],
89
- "queryByText": [Function],
90
- "queryByTitle": [Function],
91
- "rerender": [Function],
92
- "unmount": [Function],
93
- }
94
- `;
95
-
96
- exports[`<UpLinks /> component should render the component with uplinks 1`] = `
97
- {
98
- "asFragment": [Function],
99
- "baseElement": .emotion-1 {
100
- margin: 0;
101
- font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
102
- font-weight: 400;
103
- font-size: 1rem;
104
- line-height: 1.75;
105
- font-weight: 700;
106
- }
107
-
108
- .emotion-2 {
109
- list-style: none;
110
- margin: 0;
111
- padding: 0;
112
- position: relative;
113
- padding-top: 8px;
114
- padding-bottom: 8px;
115
- }
116
-
117
- .emotion-3 {
118
- display: -webkit-box;
119
- display: -webkit-flex;
120
- display: -ms-flexbox;
121
- display: flex;
122
- -webkit-box-pack: start;
123
- -ms-flex-pack: start;
124
- -webkit-justify-content: flex-start;
125
- justify-content: flex-start;
126
- -webkit-align-items: center;
127
- -webkit-box-align: center;
128
- -ms-flex-align: center;
129
- align-items: center;
130
- position: relative;
131
- -webkit-text-decoration: none;
132
- text-decoration: none;
133
- width: 100%;
134
- box-sizing: border-box;
135
- text-align: left;
136
- padding-top: 8px;
137
- padding-bottom: 8px;
138
- padding-left: 16px;
139
- padding-right: 16px;
140
- }
141
-
142
- .emotion-3.Mui-focusVisible {
143
- background-color: rgba(0, 0, 0, 0.12);
144
- }
145
-
146
- .emotion-3.Mui-selected {
147
- background-color: rgba(75, 94, 64, 0.08);
148
- }
149
-
150
- .emotion-3.Mui-selected.Mui-focusVisible {
151
- background-color: rgba(75, 94, 64, 0.2);
152
- }
153
-
154
- .emotion-3.Mui-disabled {
155
- opacity: 0.38;
156
- }
157
-
158
- .emotion-5 {
159
- -webkit-flex: 1 1 auto;
160
- -ms-flex: 1 1 auto;
161
- flex: 1 1 auto;
162
- min-width: 0;
163
- margin-top: 4px;
164
- margin-bottom: 4px;
165
- -webkit-flex: none;
166
- -ms-flex: none;
167
- flex: none;
168
- color: #000;
169
- opacity: 0.6;
170
- }
171
-
172
- .emotion-6 {
173
- margin: 0;
174
- font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
175
- font-weight: 400;
176
- font-size: 1rem;
177
- line-height: 1.5;
178
- display: block;
179
- }
180
-
181
- .emotion-7 {
182
- -webkit-flex: 1 1 auto;
183
- -ms-flex: 1 1 auto;
184
- flex: 1 1 auto;
185
- border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
186
- white-space: nowrap;
187
- height: 0.5em;
188
- }
189
-
190
- <body>
191
- <div>
192
- <h6
193
- class="MuiTypography-root MuiTypography-subtitle1 emotion-0 emotion-1"
194
- >
195
- uplinks.title
196
- </h6>
197
- <ul
198
- class="MuiList-root MuiList-padding emotion-2"
199
- >
200
- <li
201
- class="MuiListItem-root MuiListItem-gutters MuiListItem-padding emotion-3"
202
- >
203
- <div
204
- class="MuiListItemText-root emotion-4 emotion-5"
205
- >
206
- <span
207
- class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
208
- >
209
- npmjs
210
- </span>
211
- </div>
212
- <div
213
- class="emotion-7 emotion-8"
214
- />
215
- <div
216
- class="MuiListItemText-root emotion-4 emotion-5"
217
- >
218
- <span
219
- class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
220
- >
221
- 5 years ago
222
- </span>
223
- </div>
224
- </li>
225
- </ul>
226
- </div>
227
- </body>,
228
- "container": .emotion-1 {
229
- margin: 0;
230
- font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
231
- font-weight: 400;
232
- font-size: 1rem;
233
- line-height: 1.75;
234
- font-weight: 700;
235
- }
236
-
237
- .emotion-2 {
238
- list-style: none;
239
- margin: 0;
240
- padding: 0;
241
- position: relative;
242
- padding-top: 8px;
243
- padding-bottom: 8px;
244
- }
245
-
246
- .emotion-3 {
247
- display: -webkit-box;
248
- display: -webkit-flex;
249
- display: -ms-flexbox;
250
- display: flex;
251
- -webkit-box-pack: start;
252
- -ms-flex-pack: start;
253
- -webkit-justify-content: flex-start;
254
- justify-content: flex-start;
255
- -webkit-align-items: center;
256
- -webkit-box-align: center;
257
- -ms-flex-align: center;
258
- align-items: center;
259
- position: relative;
260
- -webkit-text-decoration: none;
261
- text-decoration: none;
262
- width: 100%;
263
- box-sizing: border-box;
264
- text-align: left;
265
- padding-top: 8px;
266
- padding-bottom: 8px;
267
- padding-left: 16px;
268
- padding-right: 16px;
269
- }
270
-
271
- .emotion-3.Mui-focusVisible {
272
- background-color: rgba(0, 0, 0, 0.12);
273
- }
274
-
275
- .emotion-3.Mui-selected {
276
- background-color: rgba(75, 94, 64, 0.08);
277
- }
278
-
279
- .emotion-3.Mui-selected.Mui-focusVisible {
280
- background-color: rgba(75, 94, 64, 0.2);
281
- }
282
-
283
- .emotion-3.Mui-disabled {
284
- opacity: 0.38;
285
- }
286
-
287
- .emotion-5 {
288
- -webkit-flex: 1 1 auto;
289
- -ms-flex: 1 1 auto;
290
- flex: 1 1 auto;
291
- min-width: 0;
292
- margin-top: 4px;
293
- margin-bottom: 4px;
294
- -webkit-flex: none;
295
- -ms-flex: none;
296
- flex: none;
297
- color: #000;
298
- opacity: 0.6;
299
- }
300
-
301
- .emotion-6 {
302
- margin: 0;
303
- font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
304
- font-weight: 400;
305
- font-size: 1rem;
306
- line-height: 1.5;
307
- display: block;
308
- }
309
-
310
- .emotion-7 {
311
- -webkit-flex: 1 1 auto;
312
- -ms-flex: 1 1 auto;
313
- flex: 1 1 auto;
314
- border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
315
- white-space: nowrap;
316
- height: 0.5em;
317
- }
318
-
319
- <div>
320
- <h6
321
- class="MuiTypography-root MuiTypography-subtitle1 emotion-0 emotion-1"
322
- >
323
- uplinks.title
324
- </h6>
325
- <ul
326
- class="MuiList-root MuiList-padding emotion-2"
327
- >
328
- <li
329
- class="MuiListItem-root MuiListItem-gutters MuiListItem-padding emotion-3"
330
- >
331
- <div
332
- class="MuiListItemText-root emotion-4 emotion-5"
333
- >
334
- <span
335
- class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
336
- >
337
- npmjs
338
- </span>
339
- </div>
340
- <div
341
- class="emotion-7 emotion-8"
342
- />
343
- <div
344
- class="MuiListItemText-root emotion-4 emotion-5"
345
- >
346
- <span
347
- class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary emotion-6"
348
- >
349
- 5 years ago
350
- </span>
351
- </div>
352
- </li>
353
- </ul>
354
- </div>,
355
- "debug": [Function],
356
- "findAllByAltText": [Function],
357
- "findAllByDisplayValue": [Function],
358
- "findAllByLabelText": [Function],
359
- "findAllByPlaceholderText": [Function],
360
- "findAllByRole": [Function],
361
- "findAllByTestId": [Function],
362
- "findAllByText": [Function],
363
- "findAllByTitle": [Function],
364
- "findByAltText": [Function],
365
- "findByDisplayValue": [Function],
366
- "findByLabelText": [Function],
367
- "findByPlaceholderText": [Function],
368
- "findByRole": [Function],
369
- "findByTestId": [Function],
370
- "findByText": [Function],
371
- "findByTitle": [Function],
372
- "getAllByAltText": [Function],
373
- "getAllByDisplayValue": [Function],
374
- "getAllByLabelText": [Function],
375
- "getAllByPlaceholderText": [Function],
376
- "getAllByRole": [Function],
377
- "getAllByTestId": [Function],
378
- "getAllByText": [Function],
379
- "getAllByTitle": [Function],
380
- "getByAltText": [Function],
381
- "getByDisplayValue": [Function],
382
- "getByLabelText": [Function],
383
- "getByPlaceholderText": [Function],
384
- "getByRole": [Function],
385
- "getByTestId": [Function],
386
- "getByText": [Function],
387
- "getByTitle": [Function],
388
- "queryAllByAltText": [Function],
389
- "queryAllByDisplayValue": [Function],
390
- "queryAllByLabelText": [Function],
391
- "queryAllByPlaceholderText": [Function],
392
- "queryAllByRole": [Function],
393
- "queryAllByTestId": [Function],
394
- "queryAllByText": [Function],
395
- "queryAllByTitle": [Function],
396
- "queryByAltText": [Function],
397
- "queryByDisplayValue": [Function],
398
- "queryByLabelText": [Function],
399
- "queryByPlaceholderText": [Function],
400
- "queryByRole": [Function],
401
- "queryByTestId": [Function],
402
- "queryByText": [Function],
403
- "queryByTitle": [Function],
404
- "rerender": [Function],
405
- "unmount": [Function],
406
- }
407
- `;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/UpLinks/index.ts"],"sourcesContent":["export { default } from './UpLinks';\n"],"mappings":";;;;;;;;;;;AAAA;AAAoC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","names":["StyledText","Typography","props","fontWeight","theme","bold","Spacer","flex","borderBottom","palette","mode","whiteSpace","height","ListItemText","MuiListItemText","color","black","white","opacity"],"sources":["../../../src/components/UpLinks/styles.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { default as MuiListItemText } from '@mui/material/ListItemText';\nimport Typography from '@mui/material/Typography';\n\nimport { Theme } from '../../Theme';\n\nexport const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({\n fontWeight: props.theme?.fontWeight.bold,\n}));\n\nexport const Spacer = styled('div')<{ theme?: Theme }>(({ theme }) => ({\n flex: '1 1 auto',\n borderBottom: `1px dotted ${\n theme?.palette.mode == 'light' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255, 255, 255, 0.2)'\n } `,\n whiteSpace: 'nowrap',\n height: '0.5em',\n}));\n\nexport const ListItemText = styled(MuiListItemText)<{ theme?: Theme }>(({ theme }) => ({\n flex: 'none',\n color: theme?.palette.mode == 'light' ? theme?.palette.black : theme?.palette.white,\n opacity: 0.6,\n}));\n"],"mappings":";;;;;;;AACA;AACA;AAAkD;AAI3C,IAAMA,UAAU,gBAAG,sBAAOC,sBAAU;EAAA;AAAA;EAAA;EAAA;AAAA,EAAC,CAAoB,UAACC,KAAK;EAAA;EAAA,OAAM;IAC1EC,UAAU,kBAAED,KAAK,CAACE,KAAK,iDAAX,aAAaD,UAAU,CAACE;EACtC,CAAC;AAAA,CAAC,i7CAAC;AAAC;AAEG,IAAMC,MAAM,gBAAG,sBAAO,KAAK;EAAA;AAAA;EAAA;EAAA;AAAA,EAAC,CAAoB;EAAA,IAAGF,KAAK,QAALA,KAAK;EAAA,OAAQ;IACrEG,IAAI,EAAE,UAAU;IAChBC,YAAY,uBACV,CAAAJ,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEK,OAAO,CAACC,IAAI,KAAI,OAAO,GAAG,oBAAoB,GAAG,0BAA0B,MACjF;IACHC,UAAU,EAAE,QAAQ;IACpBC,MAAM,EAAE;EACV,CAAC;AAAA,CAAC,i7CAAC;AAAC;AAEG,IAAMC,YAAY,gBAAG,sBAAOC,wBAAe;EAAA;AAAA;EAAA;EAAA;AAAA,EAAC,CAAoB;EAAA,IAAGV,KAAK,SAALA,KAAK;EAAA,OAAQ;IACrFG,IAAI,EAAE,MAAM;IACZQ,KAAK,EAAE,CAAAX,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEK,OAAO,CAACC,IAAI,KAAI,OAAO,GAAGN,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEK,OAAO,CAACO,KAAK,GAAGZ,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEK,OAAO,CAACQ,KAAK;IACnFC,OAAO,EAAE;EACX,CAAC;AAAA,CAAC,q7CAAC;AAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HistoryList.js","names":["VersionsHistoryList","versions","packageName","time","useTranslation","t","Object","keys","reverse","map","version","utils","formatDate","formatDateDistance"],"sources":["../../../src/components/Versions/HistoryList.tsx"],"sourcesContent":["import List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { Time, Versions } from '../../types/packageMeta';\nimport { utils } from '../../utils';\nimport { Link } from '../Link';\nimport { ListItemText, Spacer } from './styles';\n\ninterface Props {\n versions: Versions;\n packageName: string;\n time: Time;\n}\n\nconst VersionsHistoryList: React.FC<Props> = ({ versions, packageName, time }) => {\n const { t } = useTranslation();\n\n return (\n <List dense={true}>\n {Object.keys(versions)\n .reverse()\n .map((version) => (\n <ListItem className=\"version-item\" data-testid={`version-${version}`} key={version}>\n <Link to={`/-/web/detail/${packageName}/v/${version}`} variant=\"caption\">\n <ListItemText disableTypography={false} primary={version}></ListItemText>\n </Link>\n <Spacer />\n <ListItemText title={utils.formatDate(time[version])}>\n {time[version]\n ? utils.formatDateDistance(time[version])\n : t('versions.not-available')}\n </ListItemText>\n </ListItem>\n ))}\n </List>\n );\n};\n\nexport default VersionsHistoryList;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAGA;AACA;AACA;AAAgD;AAQhD,IAAMA,mBAAoC,GAAG,SAAvCA,mBAAoC,OAAwC;EAAA,IAAlCC,QAAQ,QAARA,QAAQ;IAAEC,WAAW,QAAXA,WAAW;IAAEC,IAAI,QAAJA,IAAI;EACzE,sBAAc,IAAAC,4BAAc,GAAE;IAAtBC,CAAC,mBAADA,CAAC;EAET,oBACE,gCAAC,gBAAI;IAAC,KAAK,EAAE;EAAK,GACfC,MAAM,CAACC,IAAI,CAACN,QAAQ,CAAC,CACnBO,OAAO,EAAE,CACTC,GAAG,CAAC,UAACC,OAAO;IAAA,oBACX,gCAAC,oBAAQ;MAAC,SAAS,EAAC,cAAc;MAAC,iCAAwBA,OAAO,CAAG;MAAC,GAAG,EAAEA;IAAQ,gBACjF,gCAAC,UAAI;MAAC,EAAE,0BAAmBR,WAAW,gBAAMQ,OAAO,CAAG;MAAC,OAAO,EAAC;IAAS,gBACtE,gCAAC,oBAAY;MAAC,iBAAiB,EAAE,KAAM;MAAC,OAAO,EAAEA;IAAQ,EAAgB,CACpE,eACP,gCAAC,cAAM,OAAG,eACV,gCAAC,oBAAY;MAAC,KAAK,EAAEC,YAAK,CAACC,UAAU,CAACT,IAAI,CAACO,OAAO,CAAC;IAAE,GAClDP,IAAI,CAACO,OAAO,CAAC,GACVC,YAAK,CAACE,kBAAkB,CAACV,IAAI,CAACO,OAAO,CAAC,CAAC,GACvCL,CAAC,CAAC,wBAAwB,CAAC,CAClB,CACN;EAAA,CACZ,CAAC,CACC;AAEX,CAAC;AAAC,eAEaL,mBAAmB;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagList.js","names":["VersionsTagList","tags","packageName","time","Object","keys","sort","a","b","map","tag"],"sources":["../../../src/components/Versions/TagList.tsx"],"sourcesContent":["import List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport React from 'react';\n\nimport { DistTags, Time } from '../../types/packageMeta';\nimport { Link } from '../Link';\nimport { ListItemText, Spacer } from './styles';\n\ninterface Props {\n tags: DistTags;\n packageName: string;\n time: Time;\n}\n\nconst VersionsTagList: React.FC<Props> = ({ tags, packageName, time }) => (\n <List dense={true}>\n {Object.keys(tags)\n .sort((a, b) => {\n return time[tags[a]] < time[tags[b]] ? 1 : time[tags[a]] > time[tags[b]] ? -1 : 0;\n })\n .map((tag) => (\n <ListItem className=\"version-item\" data-testid={`tag-${tag}`} key={tag}>\n <Link to={`/-/web/detail/${packageName}/v/${tags[tag]}`} variant=\"outline\">\n <ListItemText>{tag}</ListItemText>\n </Link>\n <Spacer />\n <ListItemText>{tags[tag]}</ListItemText>\n </ListItem>\n ))}\n </List>\n);\n\nexport default VersionsTagList;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAGA;AACA;AAAgD;AAQhD,IAAMA,eAAgC,GAAG,SAAnCA,eAAgC;EAAA,IAAMC,IAAI,QAAJA,IAAI;IAAEC,WAAW,QAAXA,WAAW;IAAEC,IAAI,QAAJA,IAAI;EAAA,oBACjE,gCAAC,gBAAI;IAAC,KAAK,EAAE;EAAK,GACfC,MAAM,CAACC,IAAI,CAACJ,IAAI,CAAC,CACfK,IAAI,CAAC,UAACC,CAAC,EAAEC,CAAC,EAAK;IACd,OAAOL,IAAI,CAACF,IAAI,CAACM,CAAC,CAAC,CAAC,GAAGJ,IAAI,CAACF,IAAI,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAGL,IAAI,CAACF,IAAI,CAACM,CAAC,CAAC,CAAC,GAAGJ,IAAI,CAACF,IAAI,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;EACnF,CAAC,CAAC,CACDC,GAAG,CAAC,UAACC,GAAG;IAAA,oBACP,gCAAC,oBAAQ;MAAC,SAAS,EAAC,cAAc;MAAC,6BAAoBA,GAAG,CAAG;MAAC,GAAG,EAAEA;IAAI,gBACrE,gCAAC,UAAI;MAAC,EAAE,0BAAmBR,WAAW,gBAAMD,IAAI,CAACS,GAAG,CAAC,CAAG;MAAC,OAAO,EAAC;IAAS,gBACxE,gCAAC,oBAAY,QAAEA,GAAG,CAAgB,CAC7B,eACP,gCAAC,cAAM,OAAG,eACV,gCAAC,oBAAY,QAAET,IAAI,CAACS,GAAG,CAAC,CAAgB,CAC/B;EAAA,CACZ,CAAC,CACC;AAAA,CACR;AAAC,eAEaV,eAAe;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Versions.js","names":["Versions","packageMeta","packageName","useTranslation","t","versions","time","distTags","hasDistTags","Object","keys","length","hasVersionHistory"],"sources":["../../../src/components/Versions/Versions.tsx"],"sourcesContent":["import Typography from '@mui/material/Typography';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport VersionsHistoryList from './HistoryList';\nimport VersionsTagList from './TagList';\n\nexport type Props = { packageMeta: any; packageName: string };\n\nconst Versions: React.FC<Props> = ({ packageMeta, packageName }) => {\n const { t } = useTranslation();\n\n if (!packageMeta) {\n return null;\n }\n\n const { versions = {}, time = {}, ['dist-tags']: distTags = {} } = packageMeta;\n\n const hasDistTags = distTags && Object.keys(distTags).length > 0 && packageName;\n const hasVersionHistory = versions && Object.keys(versions).length > 0 && packageName;\n\n return (\n <>\n {hasDistTags ? (\n <>\n <Typography variant=\"subtitle1\">{t('versions.current-tags')}</Typography>\n <VersionsTagList packageName={packageName} tags={distTags} time={time} />\n </>\n ) : null}\n {hasVersionHistory ? (\n <>\n <Typography variant=\"subtitle1\">{t('versions.version-history')}</Typography>\n <VersionsHistoryList packageName={packageName} time={time} versions={versions} />\n </>\n ) : null}\n </>\n );\n};\n\nexport default Versions;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAEA;AACA;AAAwC;AAIxC,IAAMA,QAAyB,GAAG,SAA5BA,QAAyB,OAAqC;EAAA,IAA/BC,WAAW,QAAXA,WAAW;IAAEC,WAAW,QAAXA,WAAW;EAC3D,sBAAc,IAAAC,4BAAc,GAAE;IAAtBC,CAAC,mBAADA,CAAC;EAET,IAAI,CAACH,WAAW,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,4BAAmEA,WAAW,CAAtEI,QAAQ;IAARA,QAAQ,sCAAG,CAAC,CAAC;IAAA,oBAA8CJ,WAAW,CAAvDK,IAAI;IAAJA,IAAI,kCAAG,CAAC,CAAC;IAAA,uBAAmCL,WAAW,CAA3C,WAAW;IAAGM,QAAQ,qCAAG,CAAC,CAAC;EAE9D,IAAMC,WAAW,GAAGD,QAAQ,IAAIE,MAAM,CAACC,IAAI,CAACH,QAAQ,CAAC,CAACI,MAAM,GAAG,CAAC,IAAIT,WAAW;EAC/E,IAAMU,iBAAiB,GAAGP,QAAQ,IAAII,MAAM,CAACC,IAAI,CAACL,QAAQ,CAAC,CAACM,MAAM,GAAG,CAAC,IAAIT,WAAW;EAErF,oBACE,kEACGM,WAAW,gBACV,+EACE,gCAAC,sBAAU;IAAC,OAAO,EAAC;EAAW,GAAEJ,CAAC,CAAC,uBAAuB,CAAC,CAAc,eACzE,gCAAC,mBAAe;IAAC,WAAW,EAAEF,WAAY;IAAC,IAAI,EAAEK,QAAS;IAAC,IAAI,EAAED;EAAK,EAAG,CACxE,GACD,IAAI,EACPM,iBAAiB,gBAChB,+EACE,gCAAC,sBAAU;IAAC,OAAO,EAAC;EAAW,GAAER,CAAC,CAAC,0BAA0B,CAAC,CAAc,eAC5E,gCAAC,uBAAmB;IAAC,WAAW,EAAEF,WAAY;IAAC,IAAI,EAAEI,IAAK;IAAC,QAAQ,EAAED;EAAS,EAAG,CAChF,GACD,IAAI,CACP;AAEP,CAAC;AAAC,eAEaL,QAAQ;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Versions/index.ts"],"sourcesContent":["export { default } from './Versions';\n"],"mappings":";;;;;;;;;;;AAAA;AAAqC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","names":["Spacer","theme","flex","borderBottom","palette","mode","whiteSpace","height","margin","ListItemText","MuiListItemText","opacity","color","black","white"],"sources":["../../../src/components/Versions/styles.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { default as MuiListItemText } from '@mui/material/ListItemText';\n\nimport { Theme } from '../../Theme';\n\nexport const Spacer = styled('div')<{ theme?: Theme }>(({ theme }) => ({\n flex: '1 1 auto',\n borderBottom: `1px dotted ${\n theme?.palette.mode == 'light' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255, 255, 255, 0.2)'\n } `,\n whiteSpace: 'nowrap',\n height: '0.5em',\n margin: '0 16px',\n}));\n\nexport const ListItemText = styled(MuiListItemText)<{ theme?: Theme }>(({ theme }) => ({\n flex: 'none',\n opacity: 0.6,\n color: theme?.palette.mode == 'light' ? theme?.palette.black : theme?.palette.white,\n}));\n"],"mappings":";;;;;;;AACA;AAAwE;AAIjE,IAAMA,MAAM,gBAAG,sBAAO,KAAK;EAAA;AAAA;EAAA;EAAA;AAAA,EAAC,CAAoB;EAAA,IAAGC,KAAK,QAALA,KAAK;EAAA,OAAQ;IACrEC,IAAI,EAAE,UAAU;IAChBC,YAAY,uBACV,CAAAF,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEG,OAAO,CAACC,IAAI,KAAI,OAAO,GAAG,oBAAoB,GAAG,0BAA0B,MACjF;IACHC,UAAU,EAAE,QAAQ;IACpBC,MAAM,EAAE,OAAO;IACfC,MAAM,EAAE;EACV,CAAC;AAAA,CAAC,6tCAAC;AAAC;AAEG,IAAMC,YAAY,gBAAG,sBAAOC,wBAAe;EAAA;AAAA;EAAA;EAAA;AAAA,EAAC,CAAoB;EAAA,IAAGT,KAAK,SAALA,KAAK;EAAA,OAAQ;IACrFC,IAAI,EAAE,MAAM;IACZS,OAAO,EAAE,GAAG;IACZC,KAAK,EAAE,CAAAX,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEG,OAAO,CAACC,IAAI,KAAI,OAAO,GAAGJ,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEG,OAAO,CAACS,KAAK,GAAGZ,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEG,OAAO,CAACU;EAChF,CAAC;AAAA,CAAC,6tCAAC;AAAC"}