@verdaccio/ui-components 5.0.0-next-9.24 → 5.0.0-next-9.25

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 (291) hide show
  1. package/README.md +20 -0
  2. package/build/api/use-data.d.ts +2 -2
  3. package/build/api/use-data.js +2 -2
  4. package/build/api/use-data.js.map +1 -1
  5. package/build/api/use-data.mjs +2 -2
  6. package/build/api/use-data.mjs.map +1 -1
  7. package/build/components/CopyClipboard/CopyToClipBoard.d.ts +1 -0
  8. package/build/components/CopyClipboard/CopyToClipBoard.js +36 -17
  9. package/build/components/CopyClipboard/CopyToClipBoard.js.map +1 -1
  10. package/build/components/CopyClipboard/CopyToClipBoard.mjs +36 -19
  11. package/build/components/CopyClipboard/CopyToClipBoard.mjs.map +1 -1
  12. package/build/components/CopyClipboard/utils.d.ts +2 -1
  13. package/build/components/CopyClipboard/utils.js +6 -4
  14. package/build/components/CopyClipboard/utils.js.map +1 -1
  15. package/build/components/CopyClipboard/utils.mjs +6 -4
  16. package/build/components/CopyClipboard/utils.mjs.map +1 -1
  17. package/build/components/DocsLink/DocsLink.d.ts +8 -0
  18. package/build/components/DocsLink/DocsLink.js +40 -0
  19. package/build/components/DocsLink/DocsLink.js.map +1 -0
  20. package/build/components/DocsLink/DocsLink.mjs +35 -0
  21. package/build/components/DocsLink/DocsLink.mjs.map +1 -0
  22. package/build/components/DocsLink/index.d.ts +1 -0
  23. package/build/components/DocsLink/index.js +3 -0
  24. package/build/components/DocsLink/index.mjs +1 -0
  25. package/build/components/Help/Help.d.ts +13 -0
  26. package/build/components/Help/Help.js +243 -36
  27. package/build/components/Help/Help.js.map +1 -1
  28. package/build/components/Help/Help.mjs +237 -39
  29. package/build/components/Help/Help.mjs.map +1 -1
  30. package/build/components/Help/styles.d.ts +29 -0
  31. package/build/components/Help/styles.js +86 -1
  32. package/build/components/Help/styles.js.map +1 -1
  33. package/build/components/Help/styles.mjs +82 -2
  34. package/build/components/Help/styles.mjs.map +1 -1
  35. package/build/components/Icons/Managers/Bun.d.ts +2 -0
  36. package/build/components/Icons/Managers/Bun2.js +18 -0
  37. package/build/components/Icons/Managers/Bun2.js.map +1 -0
  38. package/build/components/Icons/Managers/Bun2.mjs +16 -0
  39. package/build/components/Icons/Managers/Bun2.mjs.map +1 -0
  40. package/build/components/Icons/Managers/bun.js +6 -0
  41. package/build/components/Icons/Managers/bun.js.map +1 -0
  42. package/build/components/Icons/Managers/bun.mjs +6 -0
  43. package/build/components/Icons/Managers/bun.mjs.map +1 -0
  44. package/build/components/Icons/Managers/bun.svg +1 -0
  45. package/build/components/Icons/Managers/index.d.ts +1 -0
  46. package/build/components/Icons/Managers/index.js +2 -0
  47. package/build/components/Icons/Managers/index.mjs +2 -1
  48. package/build/components/Icons/index.js +3 -0
  49. package/build/components/Icons/index.mjs +3 -1
  50. package/build/components/Install/Install.d.ts +2 -0
  51. package/build/components/Install/Install.js +30 -2
  52. package/build/components/Install/Install.js.map +1 -1
  53. package/build/components/Install/Install.mjs +30 -3
  54. package/build/components/Install/Install.mjs.map +1 -1
  55. package/build/components/Install/InstallListItem.d.ts +2 -1
  56. package/build/components/Install/InstallListItem.js +17 -0
  57. package/build/components/Install/InstallListItem.js.map +1 -1
  58. package/build/components/Install/InstallListItem.mjs +17 -0
  59. package/build/components/Install/InstallListItem.mjs.map +1 -1
  60. package/build/components/Loading/PackageListSkeleton.d.ts +3 -0
  61. package/build/components/Loading/PackageListSkeleton.js +70 -0
  62. package/build/components/Loading/PackageListSkeleton.js.map +1 -0
  63. package/build/components/Loading/PackageListSkeleton.mjs +65 -0
  64. package/build/components/Loading/PackageListSkeleton.mjs.map +1 -0
  65. package/build/components/Loading/VersionSkeleton.d.ts +3 -0
  66. package/build/components/Loading/VersionSkeleton.js +119 -0
  67. package/build/components/Loading/VersionSkeleton.js.map +1 -0
  68. package/build/components/Loading/VersionSkeleton.mjs +111 -0
  69. package/build/components/Loading/VersionSkeleton.mjs.map +1 -0
  70. package/build/components/Loading/index.d.ts +2 -0
  71. package/build/components/Loading/index.js +4 -0
  72. package/build/components/Loading/index.mjs +4 -1
  73. package/build/components/Package/Package.js +5 -1
  74. package/build/components/Package/Package.js.map +1 -1
  75. package/build/components/Package/Package.mjs +6 -2
  76. package/build/components/Package/Package.mjs.map +1 -1
  77. package/build/components/Package/styles.d.ts +3 -0
  78. package/build/components/Package/styles.js +8 -0
  79. package/build/components/Package/styles.js.map +1 -1
  80. package/build/components/Package/styles.mjs +8 -1
  81. package/build/components/Package/styles.mjs.map +1 -1
  82. package/build/components/PackageList/PackageList.js +4 -4
  83. package/build/components/PackageList/PackageList.js.map +1 -1
  84. package/build/components/PackageList/PackageList.mjs +5 -5
  85. package/build/components/PackageList/PackageList.mjs.map +1 -1
  86. package/build/components/PackageList/PackageListToolbar.d.ts +15 -0
  87. package/build/components/PackageList/PackageListToolbar.js +127 -0
  88. package/build/components/PackageList/PackageListToolbar.js.map +1 -0
  89. package/build/components/PackageList/PackageListToolbar.mjs +119 -0
  90. package/build/components/PackageList/PackageListToolbar.mjs.map +1 -0
  91. package/build/components/PackageList/filterPackages.d.ts +16 -0
  92. package/build/components/PackageList/filterPackages.js +37 -0
  93. package/build/components/PackageList/filterPackages.js.map +1 -0
  94. package/build/components/PackageList/filterPackages.mjs +34 -0
  95. package/build/components/PackageList/filterPackages.mjs.map +1 -0
  96. package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +18 -7
  97. package/build/components/RegistryInfoDialog/RegistryInfoDialog.js.map +1 -1
  98. package/build/components/RegistryInfoDialog/RegistryInfoDialog.mjs +18 -7
  99. package/build/components/RegistryInfoDialog/RegistryInfoDialog.mjs.map +1 -1
  100. package/build/components/RegistryInfoDialog/types.d.ts +1 -0
  101. package/build/components/Search/AutoComplete/AutoComplete.d.ts +3 -0
  102. package/build/components/Search/AutoComplete/AutoComplete.js +3 -1
  103. package/build/components/Search/AutoComplete/AutoComplete.js.map +1 -1
  104. package/build/components/Search/AutoComplete/AutoComplete.mjs +3 -1
  105. package/build/components/Search/AutoComplete/AutoComplete.mjs.map +1 -1
  106. package/build/components/Search/Search.js +28 -1
  107. package/build/components/Search/Search.js.map +1 -1
  108. package/build/components/Search/Search.mjs +31 -5
  109. package/build/components/Search/Search.mjs.map +1 -1
  110. package/build/components/Search/SearchItem.d.ts +12 -1
  111. package/build/components/Search/SearchItem.js +53 -70
  112. package/build/components/Search/SearchItem.js.map +1 -1
  113. package/build/components/Search/SearchItem.mjs +51 -67
  114. package/build/components/Search/SearchItem.mjs.map +1 -1
  115. package/build/components/Search/utils.d.ts +10 -0
  116. package/build/components/Search/utils.js +28 -1
  117. package/build/components/Search/utils.js.map +1 -1
  118. package/build/components/Search/utils.mjs +26 -2
  119. package/build/components/Search/utils.mjs.map +1 -1
  120. package/build/components/SettingsMenu/SettingsMenu.js +2 -2
  121. package/build/components/SettingsMenu/SettingsMenu.mjs +1 -1
  122. package/build/components/Versions/Versions.js +8 -2
  123. package/build/components/Versions/Versions.js.map +1 -1
  124. package/build/components/Versions/Versions.mjs +8 -2
  125. package/build/components/Versions/Versions.mjs.map +1 -1
  126. package/build/components/VisuallyHidden/index.d.ts +5 -0
  127. package/build/components/VisuallyHidden/index.js +17 -0
  128. package/build/components/VisuallyHidden/index.js.map +1 -0
  129. package/build/components/VisuallyHidden/index.mjs +15 -0
  130. package/build/components/VisuallyHidden/index.mjs.map +1 -0
  131. package/build/configuration.js +2 -1
  132. package/build/configuration.js.map +1 -1
  133. package/build/configuration.mjs +2 -1
  134. package/build/configuration.mjs.map +1 -1
  135. package/build/i18n/crowdin/ui.js +66 -11
  136. package/build/i18n/crowdin/ui.js.map +1 -1
  137. package/build/i18n/crowdin/ui.json +62 -11
  138. package/build/i18n/crowdin/ui.mjs +65 -12
  139. package/build/i18n/crowdin/ui.mjs.map +1 -1
  140. package/build/i18n/download_translations/cs-CZ/ui.js +66 -11
  141. package/build/i18n/download_translations/cs-CZ/ui.js.map +1 -1
  142. package/build/i18n/download_translations/cs-CZ/ui.json +62 -11
  143. package/build/i18n/download_translations/cs-CZ/ui.mjs +65 -12
  144. package/build/i18n/download_translations/cs-CZ/ui.mjs.map +1 -1
  145. package/build/i18n/download_translations/de-DE/ui.js +66 -11
  146. package/build/i18n/download_translations/de-DE/ui.js.map +1 -1
  147. package/build/i18n/download_translations/de-DE/ui.json +62 -11
  148. package/build/i18n/download_translations/de-DE/ui.mjs +65 -12
  149. package/build/i18n/download_translations/de-DE/ui.mjs.map +1 -1
  150. package/build/i18n/download_translations/es-ES/ui.js +66 -11
  151. package/build/i18n/download_translations/es-ES/ui.js.map +1 -1
  152. package/build/i18n/download_translations/es-ES/ui.json +62 -11
  153. package/build/i18n/download_translations/es-ES/ui.mjs +65 -12
  154. package/build/i18n/download_translations/es-ES/ui.mjs.map +1 -1
  155. package/build/i18n/download_translations/fr-FR/ui.js +66 -11
  156. package/build/i18n/download_translations/fr-FR/ui.js.map +1 -1
  157. package/build/i18n/download_translations/fr-FR/ui.json +62 -11
  158. package/build/i18n/download_translations/fr-FR/ui.mjs +65 -12
  159. package/build/i18n/download_translations/fr-FR/ui.mjs.map +1 -1
  160. package/build/i18n/download_translations/ga-IE/ui.js +66 -11
  161. package/build/i18n/download_translations/ga-IE/ui.js.map +1 -1
  162. package/build/i18n/download_translations/ga-IE/ui.json +62 -11
  163. package/build/i18n/download_translations/ga-IE/ui.mjs +65 -12
  164. package/build/i18n/download_translations/ga-IE/ui.mjs.map +1 -1
  165. package/build/i18n/download_translations/gl-ES/ui.js +66 -11
  166. package/build/i18n/download_translations/gl-ES/ui.js.map +1 -1
  167. package/build/i18n/download_translations/gl-ES/ui.json +62 -11
  168. package/build/i18n/download_translations/gl-ES/ui.mjs +65 -12
  169. package/build/i18n/download_translations/gl-ES/ui.mjs.map +1 -1
  170. package/build/i18n/download_translations/it-IT/ui.js +66 -11
  171. package/build/i18n/download_translations/it-IT/ui.js.map +1 -1
  172. package/build/i18n/download_translations/it-IT/ui.json +62 -11
  173. package/build/i18n/download_translations/it-IT/ui.mjs +65 -12
  174. package/build/i18n/download_translations/it-IT/ui.mjs.map +1 -1
  175. package/build/i18n/download_translations/ko-KR/ui.js +66 -11
  176. package/build/i18n/download_translations/ko-KR/ui.js.map +1 -1
  177. package/build/i18n/download_translations/ko-KR/ui.json +62 -11
  178. package/build/i18n/download_translations/ko-KR/ui.mjs +65 -12
  179. package/build/i18n/download_translations/ko-KR/ui.mjs.map +1 -1
  180. package/build/i18n/download_translations/pl-PL/ui.js +66 -11
  181. package/build/i18n/download_translations/pl-PL/ui.js.map +1 -1
  182. package/build/i18n/download_translations/pl-PL/ui.json +62 -11
  183. package/build/i18n/download_translations/pl-PL/ui.mjs +65 -12
  184. package/build/i18n/download_translations/pl-PL/ui.mjs.map +1 -1
  185. package/build/i18n/download_translations/pt-BR/ui.js +66 -11
  186. package/build/i18n/download_translations/pt-BR/ui.js.map +1 -1
  187. package/build/i18n/download_translations/pt-BR/ui.json +62 -11
  188. package/build/i18n/download_translations/pt-BR/ui.mjs +65 -12
  189. package/build/i18n/download_translations/pt-BR/ui.mjs.map +1 -1
  190. package/build/i18n/download_translations/ru-RU/ui.js +66 -11
  191. package/build/i18n/download_translations/ru-RU/ui.js.map +1 -1
  192. package/build/i18n/download_translations/ru-RU/ui.json +62 -11
  193. package/build/i18n/download_translations/ru-RU/ui.mjs +65 -12
  194. package/build/i18n/download_translations/ru-RU/ui.mjs.map +1 -1
  195. package/build/i18n/download_translations/sr-CS/ui.js +64 -12
  196. package/build/i18n/download_translations/sr-CS/ui.js.map +1 -1
  197. package/build/i18n/download_translations/sr-CS/ui.json +62 -11
  198. package/build/i18n/download_translations/sr-CS/ui.mjs +64 -13
  199. package/build/i18n/download_translations/sr-CS/ui.mjs.map +1 -1
  200. package/build/i18n/download_translations/tr-TR/ui.js +66 -11
  201. package/build/i18n/download_translations/tr-TR/ui.js.map +1 -1
  202. package/build/i18n/download_translations/tr-TR/ui.json +62 -11
  203. package/build/i18n/download_translations/tr-TR/ui.mjs +65 -12
  204. package/build/i18n/download_translations/tr-TR/ui.mjs.map +1 -1
  205. package/build/i18n/download_translations/vi-VN/ui.js +64 -12
  206. package/build/i18n/download_translations/vi-VN/ui.js.map +1 -1
  207. package/build/i18n/download_translations/vi-VN/ui.json +62 -11
  208. package/build/i18n/download_translations/vi-VN/ui.mjs +64 -13
  209. package/build/i18n/download_translations/vi-VN/ui.mjs.map +1 -1
  210. package/build/i18n/download_translations/yo-NG/ui.js +64 -12
  211. package/build/i18n/download_translations/yo-NG/ui.js.map +1 -1
  212. package/build/i18n/download_translations/yo-NG/ui.json +62 -11
  213. package/build/i18n/download_translations/yo-NG/ui.mjs +64 -13
  214. package/build/i18n/download_translations/yo-NG/ui.mjs.map +1 -1
  215. package/build/i18n/download_translations/zh-CN/ui.js +66 -11
  216. package/build/i18n/download_translations/zh-CN/ui.js.map +1 -1
  217. package/build/i18n/download_translations/zh-CN/ui.json +62 -11
  218. package/build/i18n/download_translations/zh-CN/ui.mjs +65 -12
  219. package/build/i18n/download_translations/zh-CN/ui.mjs.map +1 -1
  220. package/build/i18n/download_translations/zh-TW/ui.js +66 -11
  221. package/build/i18n/download_translations/zh-TW/ui.js.map +1 -1
  222. package/build/i18n/download_translations/zh-TW/ui.json +62 -11
  223. package/build/i18n/download_translations/zh-TW/ui.mjs +65 -12
  224. package/build/i18n/download_translations/zh-TW/ui.mjs.map +1 -1
  225. package/build/index.d.ts +1 -0
  226. package/build/index.js +8 -0
  227. package/build/index.mjs +4 -2
  228. package/build/mockServiceWorker.js +1 -0
  229. package/build/pages/Version/Version.js +2 -2
  230. package/build/pages/Version/Version.js.map +1 -1
  231. package/build/pages/Version/Version.mjs +2 -2
  232. package/build/pages/Version/Version.mjs.map +1 -1
  233. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +3 -1
  234. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js.map +1 -1
  235. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.mjs +3 -1
  236. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.mjs.map +1 -1
  237. package/build/providers/ManifestsProvider/ManifestsProvider.d.ts +3 -0
  238. package/build/providers/ManifestsProvider/ManifestsProvider.js +9 -2
  239. package/build/providers/ManifestsProvider/ManifestsProvider.js.map +1 -1
  240. package/build/providers/ManifestsProvider/ManifestsProvider.mjs +10 -4
  241. package/build/providers/ManifestsProvider/ManifestsProvider.mjs.map +1 -1
  242. package/build/sections/Detail/ContainerContent.js +8 -0
  243. package/build/sections/Detail/ContainerContent.js.map +1 -1
  244. package/build/sections/Detail/ContainerContent.mjs +8 -1
  245. package/build/sections/Detail/ContainerContent.mjs.map +1 -1
  246. package/build/sections/Detail/Detail.d.ts +3 -6
  247. package/build/sections/Detail/Detail.js +13 -14
  248. package/build/sections/Detail/Detail.js.map +1 -1
  249. package/build/sections/Detail/Detail.mjs +14 -15
  250. package/build/sections/Detail/Detail.mjs.map +1 -1
  251. package/build/sections/Detail/Tabs.d.ts +3 -2
  252. package/build/sections/Detail/Tabs.js +9 -4
  253. package/build/sections/Detail/Tabs.js.map +1 -1
  254. package/build/sections/Detail/Tabs.mjs +9 -4
  255. package/build/sections/Detail/Tabs.mjs.map +1 -1
  256. package/build/sections/Footer/Footer.js +24 -3
  257. package/build/sections/Footer/Footer.js.map +1 -1
  258. package/build/sections/Footer/Footer.mjs +24 -4
  259. package/build/sections/Footer/Footer.mjs.map +1 -1
  260. package/build/sections/Footer/styles.d.ts +6 -0
  261. package/build/sections/Footer/styles.js +21 -2
  262. package/build/sections/Footer/styles.js.map +1 -1
  263. package/build/sections/Footer/styles.mjs +21 -3
  264. package/build/sections/Footer/styles.mjs.map +1 -1
  265. package/build/sections/Header/HeaderSettingsDialog.js +30 -8
  266. package/build/sections/Header/HeaderSettingsDialog.js.map +1 -1
  267. package/build/sections/Header/HeaderSettingsDialog.mjs +30 -8
  268. package/build/sections/Header/HeaderSettingsDialog.mjs.map +1 -1
  269. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +1 -4
  270. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +83 -13
  271. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js.map +1 -1
  272. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs +85 -13
  273. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs.map +1 -1
  274. package/build/sections/Home/Home.js +58 -2
  275. package/build/sections/Home/Home.js.map +1 -1
  276. package/build/sections/Home/Home.mjs +60 -4
  277. package/build/sections/Home/Home.mjs.map +1 -1
  278. package/build/utils/cli-utils.d.ts +10 -0
  279. package/build/utils/cli-utils.js +26 -0
  280. package/build/utils/cli-utils.js.map +1 -1
  281. package/build/utils/cli-utils.mjs +23 -1
  282. package/build/utils/cli-utils.mjs.map +1 -1
  283. package/build/utils/index.d.ts +1 -1
  284. package/build/utils/index.js +4 -0
  285. package/build/utils/index.mjs +2 -2
  286. package/build/utils/markdown.d.ts +6 -0
  287. package/build/utils/markdown.js +14 -0
  288. package/build/utils/markdown.js.map +1 -0
  289. package/build/utils/markdown.mjs +12 -0
  290. package/build/utils/markdown.mjs.map +1 -0
  291. package/package.json +8 -8
@@ -1,4 +1,16 @@
1
1
  //#region src/components/Search/utils.ts
2
+ /** Where a search result lives: published here, cached from an uplink, or only on an uplink. */
3
+ var SearchOrigin = /* @__PURE__ */ function(SearchOrigin) {
4
+ SearchOrigin["PRIVATE"] = "private";
5
+ SearchOrigin["CACHED"] = "cached";
6
+ SearchOrigin["REMOTE"] = "remote";
7
+ return SearchOrigin;
8
+ }({});
9
+ var SEARCH_ORIGIN_ORDER = [
10
+ "private",
11
+ "cached",
12
+ "remote"
13
+ ];
2
14
  /**
3
15
  * Normalize a raw search result into a unified shape the UI can render,
4
16
  * regardless of which backend response format was returned:
@@ -22,7 +34,8 @@ function normalizeSearchOption(option) {
22
34
  description: pkg.description,
23
35
  isPrivate,
24
36
  isCached,
25
- isRemote: !isCached && !isPrivate
37
+ isRemote: !isCached && !isPrivate,
38
+ origin: isPrivate ? "private" : isCached ? "cached" : "remote"
26
39
  };
27
40
  }
28
41
  const flat = option ?? {};
@@ -35,6 +48,17 @@ function normalizeSearchOption(option) {
35
48
  isRemote: false
36
49
  };
37
50
  }
51
+ /** Orders results private, cached, remote (stable inside each group), as grouping requires. */
52
+ function sortByOrigin(options) {
53
+ const rank = (option) => {
54
+ const origin = normalizeSearchOption(option).origin;
55
+ return origin ? SEARCH_ORIGIN_ORDER.indexOf(origin) : SEARCH_ORIGIN_ORDER.length;
56
+ };
57
+ return options.map((option, index) => ({
58
+ option,
59
+ index
60
+ })).sort((a, b) => rank(a.option) - rank(b.option) || a.index - b.index).map(({ option }) => option);
61
+ }
38
62
  function removeHtmlTags(input) {
39
63
  let previous;
40
64
  do {
@@ -50,6 +74,6 @@ function cleanDescription(description) {
50
74
  return output;
51
75
  }
52
76
  //#endregion
53
- export { cleanDescription, normalizeSearchOption };
77
+ export { SEARCH_ORIGIN_ORDER, SearchOrigin, cleanDescription, normalizeSearchOption, sortByOrigin };
54
78
 
55
79
  //# sourceMappingURL=utils.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","names":[],"sources":["../../../src/components/Search/utils.ts"],"sourcesContent":["export type NormalizedSearchOption = {\n name: string;\n version?: string;\n description?: string;\n isPrivate: boolean;\n isCached: boolean;\n isRemote: boolean;\n};\n\n/**\n * Normalize a raw search result into a unified shape the UI can render,\n * regardless of which backend response format was returned:\n *\n * 1) npm-style \"search objects\" response where each entry is wrapped in\n * `{ package: { name, version, description, ... }, verdaccioPrivate, verdaccioPkgCached }`.\n * 2) Flat packument-style response where each entry exposes `name`, `version`,\n * `description`, `dist`, etc. directly at the top level.\n *\n * The second shape carries no uplink metadata, so private/remote/cached flags\n * default to `false` and the UI simply omits the corresponding badges.\n */\nexport function normalizeSearchOption(option: any): NormalizedSearchOption {\n if (option && typeof option === 'object' && option.package) {\n const pkg = option.package ?? {};\n const isPrivate = Boolean(option.verdaccioPrivate);\n const isCached = Boolean(option.verdaccioPkgCached);\n return {\n name: pkg.name,\n version: pkg.version,\n description: pkg.description,\n isPrivate,\n isCached,\n isRemote: !isCached && !isPrivate,\n };\n }\n\n const flat = option ?? {};\n return {\n name: flat.name,\n version: flat.version,\n description: flat.description,\n isPrivate: false,\n isCached: false,\n isRemote: false,\n };\n}\n\nfunction removeHtmlTags(input: string): string {\n let previous;\n do {\n previous = input;\n input = input.replace(/<[^>]*>?/gm, '');\n } while (input !== previous);\n return input;\n}\n\nexport function cleanDescription(description: string): string {\n let output = description;\n // remove html tags from description (e.g. <h1...>)\n output = removeHtmlTags(output);\n // remove markdown links from description (e.g. [link](url))\n output = output.replace(/\\(.*?\\)/gm, '').replace(/(\\[!?|\\])/gm, '');\n return output;\n}\n"],"mappings":";;;;;;;;;;;;;AAqBA,SAAgB,sBAAsB,QAAqC;CACzE,IAAI,UAAU,OAAO,WAAW,YAAY,OAAO,SAAS;EAC1D,MAAM,MAAM,OAAO,WAAW,CAAC;EAC/B,MAAM,YAAY,QAAQ,OAAO,gBAAgB;EACjD,MAAM,WAAW,QAAQ,OAAO,kBAAkB;EAClD,OAAO;GACL,MAAM,IAAI;GACV,SAAS,IAAI;GACb,aAAa,IAAI;GACjB;GACA;GACA,UAAU,CAAC,YAAY,CAAC;EAC1B;CACF;CAEA,MAAM,OAAO,UAAU,CAAC;CACxB,OAAO;EACL,MAAM,KAAK;EACX,SAAS,KAAK;EACd,aAAa,KAAK;EAClB,WAAW;EACX,UAAU;EACV,UAAU;CACZ;AACF;AAEA,SAAS,eAAe,OAAuB;CAC7C,IAAI;CACJ,GAAG;EACD,WAAW;EACX,QAAQ,MAAM,QAAQ,cAAc,EAAE;CACxC,SAAS,UAAU;CACnB,OAAO;AACT;AAEA,SAAgB,iBAAiB,aAA6B;CAC5D,IAAI,SAAS;CAEb,SAAS,eAAe,MAAM;CAE9B,SAAS,OAAO,QAAQ,aAAa,EAAE,CAAC,CAAC,QAAQ,eAAe,EAAE;CAClE,OAAO;AACT"}
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../../../src/components/Search/utils.ts"],"sourcesContent":["/** Where a search result lives: published here, cached from an uplink, or only on an uplink. */\nexport enum SearchOrigin {\n PRIVATE = 'private',\n CACHED = 'cached',\n REMOTE = 'remote',\n}\n\nexport const SEARCH_ORIGIN_ORDER = [SearchOrigin.PRIVATE, SearchOrigin.CACHED, SearchOrigin.REMOTE];\n\nexport type NormalizedSearchOption = {\n name: string;\n version?: string;\n description?: string;\n isPrivate: boolean;\n isCached: boolean;\n isRemote: boolean;\n origin?: SearchOrigin;\n};\n\n/**\n * Normalize a raw search result into a unified shape the UI can render,\n * regardless of which backend response format was returned:\n *\n * 1) npm-style \"search objects\" response where each entry is wrapped in\n * `{ package: { name, version, description, ... }, verdaccioPrivate, verdaccioPkgCached }`.\n * 2) Flat packument-style response where each entry exposes `name`, `version`,\n * `description`, `dist`, etc. directly at the top level.\n *\n * The second shape carries no uplink metadata, so private/remote/cached flags\n * default to `false` and the UI simply omits the corresponding badges.\n */\nexport function normalizeSearchOption(option: any): NormalizedSearchOption {\n if (option && typeof option === 'object' && option.package) {\n const pkg = option.package ?? {};\n const isPrivate = Boolean(option.verdaccioPrivate);\n const isCached = Boolean(option.verdaccioPkgCached);\n return {\n name: pkg.name,\n version: pkg.version,\n description: pkg.description,\n isPrivate,\n isCached,\n isRemote: !isCached && !isPrivate,\n origin: isPrivate\n ? SearchOrigin.PRIVATE\n : isCached\n ? SearchOrigin.CACHED\n : SearchOrigin.REMOTE,\n };\n }\n\n const flat = option ?? {};\n return {\n name: flat.name,\n version: flat.version,\n description: flat.description,\n isPrivate: false,\n isCached: false,\n isRemote: false,\n };\n}\n\n/** Orders results private, cached, remote (stable inside each group), as grouping requires. */\nexport function sortByOrigin<T>(options: T[]): T[] {\n const rank = (option: T) => {\n const origin = normalizeSearchOption(option).origin;\n return origin ? SEARCH_ORIGIN_ORDER.indexOf(origin) : SEARCH_ORIGIN_ORDER.length;\n };\n return options\n .map((option, index) => ({ option, index }))\n .sort((a, b) => rank(a.option) - rank(b.option) || a.index - b.index)\n .map(({ option }) => option);\n}\n\nfunction removeHtmlTags(input: string): string {\n let previous;\n do {\n previous = input;\n input = input.replace(/<[^>]*>?/gm, '');\n } while (input !== previous);\n return input;\n}\n\nexport function cleanDescription(description: string): string {\n let output = description;\n // remove html tags from description (e.g. <h1...>)\n output = removeHtmlTags(output);\n // remove markdown links from description (e.g. [link](url))\n output = output.replace(/\\(.*?\\)/gm, '').replace(/(\\[!?|\\])/gm, '');\n return output;\n}\n"],"mappings":";;AACA,IAAY,eAAL,yBAAA,cAAA;CACL,aAAA,aAAA;CACA,aAAA,YAAA;CACA,aAAA,YAAA;;AACF,EAAA,CAAA,CAAA;AAEA,IAAa,sBAAsB;;;;AAA+D;;;;;;;;;;;;;AAwBlG,SAAgB,sBAAsB,QAAqC;CACzE,IAAI,UAAU,OAAO,WAAW,YAAY,OAAO,SAAS;EAC1D,MAAM,MAAM,OAAO,WAAW,CAAC;EAC/B,MAAM,YAAY,QAAQ,OAAO,gBAAgB;EACjD,MAAM,WAAW,QAAQ,OAAO,kBAAkB;EAClD,OAAO;GACL,MAAM,IAAI;GACV,SAAS,IAAI;GACb,aAAa,IAAI;GACjB;GACA;GACA,UAAU,CAAC,YAAY,CAAC;GACxB,QAAQ,YAAA,YAEJ,WAAA,WAAA;EAGN;CACF;CAEA,MAAM,OAAO,UAAU,CAAC;CACxB,OAAO;EACL,MAAM,KAAK;EACX,SAAS,KAAK;EACd,aAAa,KAAK;EAClB,WAAW;EACX,UAAU;EACV,UAAU;CACZ;AACF;;AAGA,SAAgB,aAAgB,SAAmB;CACjD,MAAM,QAAQ,WAAc;EAC1B,MAAM,SAAS,sBAAsB,MAAM,CAAC,CAAC;EAC7C,OAAO,SAAS,oBAAoB,QAAQ,MAAM,IAAI,oBAAoB;CAC5E;CACA,OAAO,QACJ,KAAK,QAAQ,WAAW;EAAE;EAAQ;CAAM,EAAE,CAAC,CAC3C,MAAM,GAAG,MAAM,KAAK,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,CACpE,KAAK,EAAE,aAAa,MAAM;AAC/B;AAEA,SAAS,eAAe,OAAuB;CAC7C,IAAI;CACJ,GAAG;EACD,WAAW;EACX,QAAQ,MAAM,QAAQ,cAAc,EAAE;CACxC,SAAS,UAAU;CACnB,OAAO;AACT;AAEA,SAAgB,iBAAiB,aAA6B;CAC5D,IAAI,SAAS;CAEb,SAAS,eAAe,MAAM;CAE9B,SAAS,OAAO,QAAQ,aAAa,EAAE,CAAC,CAAC,QAAQ,eAAe,EAAE;CAClE,OAAO;AACT"}
@@ -3,14 +3,14 @@ const require_AppConfigurationProvider = require("../../providers/AppConfigurati
3
3
  const require_PersistenceSettingProvider = require("../../providers/PersistenceSettingProvider/PersistenceSettingProvider.js");
4
4
  require("../../providers/PersistenceSettingProvider/index.js");
5
5
  require("../../providers/index.js");
6
+ let _mui_icons_material_Check = require("@mui/icons-material/Check");
7
+ _mui_icons_material_Check = require_runtime.__toESM(_mui_icons_material_Check);
6
8
  let _mui_material_IconButton = require("@mui/material/IconButton");
7
9
  _mui_material_IconButton = require_runtime.__toESM(_mui_material_IconButton);
8
10
  let react = require("react");
9
11
  react = require_runtime.__toESM(react);
10
12
  let react_i18next = require("react-i18next");
11
13
  let react_jsx_runtime = require("react/jsx-runtime");
12
- let _mui_icons_material_Check = require("@mui/icons-material/Check");
13
- _mui_icons_material_Check = require_runtime.__toESM(_mui_icons_material_Check);
14
14
  let _mui_icons_material_Settings = require("@mui/icons-material/Settings");
15
15
  _mui_icons_material_Settings = require_runtime.__toESM(_mui_icons_material_Settings);
16
16
  let _mui_material_ListItemIcon = require("@mui/material/ListItemIcon");
@@ -2,11 +2,11 @@ import { useConfig } from "../../providers/AppConfigurationProvider/AppConfigura
2
2
  import { useSettings } from "../../providers/PersistenceSettingProvider/PersistenceSettingProvider.mjs";
3
3
  import "../../providers/PersistenceSettingProvider/index.mjs";
4
4
  import "../../providers/index.mjs";
5
+ import Check from "@mui/icons-material/Check";
5
6
  import IconButton from "@mui/material/IconButton";
6
7
  import React from "react";
7
8
  import { useTranslation } from "react-i18next";
8
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
- import Check from "@mui/icons-material/Check";
10
10
  import Settings from "@mui/icons-material/Settings";
11
11
  import ListItemIcon from "@mui/material/ListItemIcon";
12
12
  import Menu from "@mui/material/Menu";
@@ -57,7 +57,10 @@ var Versions = ({ packageMeta, packageName }) => {
57
57
  sx: { mb: 2 },
58
58
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_CardContent.default, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mui_material_Box.default, {
59
59
  "data-testid": "versions",
60
- sx: { m: 2 },
60
+ sx: { m: {
61
+ xs: 0,
62
+ sm: 2
63
+ } },
61
64
  children: [
62
65
  hasDistTags ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledText, {
63
66
  variant: "subtitle1",
@@ -77,7 +80,10 @@ var Versions = ({ packageMeta, packageName }) => {
77
80
  }, 200),
78
81
  size: "small",
79
82
  variant: "standard",
80
- sx: { width: "50%" }
83
+ sx: { width: {
84
+ xs: "100%",
85
+ sm: "50%"
86
+ } }
81
87
  }, packageName)] }),
82
88
  hasVersionHistory ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [hideDeprecatedVersions === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_Alert.default, {
83
89
  severity: "info",
@@ -1 +1 @@
1
- {"version":3,"file":"Versions.js","names":["styled","Typography","useTranslation","useConfig","useState","useMemo","Card","CardContent","Box","_Fragment","VersionsTagList","TextField","debounce","Alert","VersionsHistoryList"],"sources":["../../../src/components/Versions/Versions.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Alert from '@mui/material/Alert';\nimport Box from '@mui/material/Box';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport TextField from '@mui/material/TextField';\nimport Typography from '@mui/material/Typography';\nimport { debounce } from 'lodash-es';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport semver from 'semver';\n\nimport type { Theme } from '../../Theme';\nimport { useConfig } from '../../providers';\nimport VersionsHistoryList from './HistoryList';\nimport VersionsTagList from './TagList';\n\nexport type Props = { packageMeta: any; packageName: string };\n\nexport const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({\n fontWeight: props.theme && props.theme.fontWeight.bold,\n textTransform: 'capitalize',\n}));\n\nconst Versions: React.FC<Props> = ({ packageMeta, packageName }) => {\n const { t } = useTranslation();\n const { configOptions } = useConfig();\n const { versions = {}, time = {}, ['dist-tags']: distTags = {} } = packageMeta ?? {};\n\n const [textSearch, setTextSearch] = useState('');\n // the detail routes reuse this mounted component across packages: reset the\n // filter so the previous package's text does not apply to the next one\n useEffect(() => {\n setTextSearch('');\n }, [packageName]);\n const packageVersions = useMemo(() => {\n if (textSearch === '') {\n return versions;\n }\n return Object.keys(versions).reduce((acc, version) => {\n if (typeof versions[version] !== 'undefined') {\n if (semver.satisfies(version, textSearch, { includePrerelease: true, loose: true })) {\n acc[version] = versions[version];\n }\n }\n return acc;\n }, {});\n }, [versions, textSearch]);\n\n if (!packageMeta || Object.keys(packageMeta).length === 0) {\n return null;\n }\n const hideDeprecatedVersions = configOptions.hideDeprecatedVersions;\n const hasDistTags = distTags && Object.keys(distTags).length > 0 && packageName;\n const hasVersionHistory =\n packageVersions && Object.keys(packageVersions).length > 0 && packageName;\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"versions\" sx={{ m: 2 }}>\n {hasDistTags ? (\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.current-tags')}\n <span>{` (${Object.keys(distTags).length})`}</span>\n </StyledText>\n <VersionsTagList packageName={packageName} tags={distTags} time={time} />\n </>\n ) : null}\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.version-history')}\n <span>{` (${Object.keys(packageVersions).length})`}</span>\n </StyledText>\n <TextField\n // uncontrolled input: remount on navigation to clear its text\n key={packageName}\n helperText={t('versions.search.placeholder')}\n onChange={debounce((e) => {\n setTextSearch(e.target.value);\n }, 200)}\n size=\"small\"\n variant=\"standard\"\n sx={{ width: '50%' }}\n />\n </>\n {hasVersionHistory ? (\n <>\n {hideDeprecatedVersions === true && (\n // @ts-ignore - Alert does accept children despite the type error\n <Alert severity=\"info\" sx={{ marginTop: 1, marginBottom: 1 }}>\n {t('versions.hide-deprecated')}\n </Alert>\n )}\n <VersionsHistoryList\n packageName={packageName}\n time={time}\n versions={packageVersions}\n />\n </>\n ) : null}\n </Box>\n </CardContent>\n </Card>\n );\n};\n\nexport default Versions;\n"],"mappings":"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"}
1
+ {"version":3,"file":"Versions.js","names":["styled","Typography","useTranslation","useConfig","useState","useMemo","Card","CardContent","Box","_Fragment","VersionsTagList","TextField","debounce","Alert","VersionsHistoryList"],"sources":["../../../src/components/Versions/Versions.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Alert from '@mui/material/Alert';\nimport Box from '@mui/material/Box';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport TextField from '@mui/material/TextField';\nimport Typography from '@mui/material/Typography';\nimport { debounce } from 'lodash-es';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport semver from 'semver';\n\nimport type { Theme } from '../../Theme';\nimport { useConfig } from '../../providers';\nimport VersionsHistoryList from './HistoryList';\nimport VersionsTagList from './TagList';\n\nexport type Props = { packageMeta: any; packageName: string };\n\nexport const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({\n fontWeight: props.theme && props.theme.fontWeight.bold,\n textTransform: 'capitalize',\n}));\n\nconst Versions: React.FC<Props> = ({ packageMeta, packageName }) => {\n const { t } = useTranslation();\n const { configOptions } = useConfig();\n const { versions = {}, time = {}, ['dist-tags']: distTags = {} } = packageMeta ?? {};\n\n const [textSearch, setTextSearch] = useState('');\n // the detail routes reuse this mounted component across packages: reset the\n // filter so the previous package's text does not apply to the next one\n useEffect(() => {\n setTextSearch('');\n }, [packageName]);\n const packageVersions = useMemo(() => {\n if (textSearch === '') {\n return versions;\n }\n return Object.keys(versions).reduce((acc, version) => {\n if (typeof versions[version] !== 'undefined') {\n if (semver.satisfies(version, textSearch, { includePrerelease: true, loose: true })) {\n acc[version] = versions[version];\n }\n }\n return acc;\n }, {});\n }, [versions, textSearch]);\n\n if (!packageMeta || Object.keys(packageMeta).length === 0) {\n return null;\n }\n const hideDeprecatedVersions = configOptions.hideDeprecatedVersions;\n const hasDistTags = distTags && Object.keys(distTags).length > 0 && packageName;\n const hasVersionHistory =\n packageVersions && Object.keys(packageVersions).length > 0 && packageName;\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"versions\" sx={{ m: { xs: 0, sm: 2 } }}>\n {hasDistTags ? (\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.current-tags')}\n <span>{` (${Object.keys(distTags).length})`}</span>\n </StyledText>\n <VersionsTagList packageName={packageName} tags={distTags} time={time} />\n </>\n ) : null}\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.version-history')}\n <span>{` (${Object.keys(packageVersions).length})`}</span>\n </StyledText>\n <TextField\n // uncontrolled input: remount on navigation to clear its text\n key={packageName}\n helperText={t('versions.search.placeholder')}\n onChange={debounce((e) => {\n setTextSearch(e.target.value);\n }, 200)}\n size=\"small\"\n variant=\"standard\"\n sx={{ width: { xs: '100%', sm: '50%' } }}\n />\n </>\n {hasVersionHistory ? (\n <>\n {hideDeprecatedVersions === true && (\n // @ts-ignore - Alert does accept children despite the type error\n <Alert severity=\"info\" sx={{ marginTop: 1, marginBottom: 1 }}>\n {t('versions.hide-deprecated')}\n </Alert>\n )}\n <VersionsHistoryList\n packageName={packageName}\n time={time}\n versions={packageVersions}\n />\n </>\n ) : null}\n </Box>\n </CardContent>\n </Card>\n );\n};\n\nexport default Versions;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAa,cAAA,GAAaA,gBAAAA,QAAAA,CAAOC,yBAAAA,OAAU,CAAC,EAAqB,WAAW;CAC1E,YAAY,MAAM,SAAS,MAAM,MAAM,WAAW;CAClD,eAAe;AACjB,EAAE;AAEF,IAAM,YAA6B,EAAE,aAAa,kBAAkB;CAClE,MAAM,EAAE,OAAA,GAAMC,cAAAA,eAAAA,CAAe;CAC7B,MAAM,EAAE,kBAAkBC,iCAAAA,UAAU;CACpC,MAAM,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,cAAc,WAAW,CAAC,MAAM,eAAe,CAAC;CAEnF,MAAM,CAAC,YAAY,kBAAA,GAAiBC,MAAAA,SAAAA,CAAS,EAAE;CAG/C,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,cAAc,EAAE;CAClB,GAAG,CAAC,WAAW,CAAC;CAChB,MAAM,mBAAA,GAAkBC,MAAAA,QAAAA,OAAc;EACpC,IAAI,eAAe,IACjB,OAAO;EAET,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,QAAQ,KAAK,YAAY;GACpD,IAAI,OAAO,SAAS,aAAa,aAC3B;QAAA,OAAA,QAAO,UAAU,SAAS,YAAY;KAAE,mBAAmB;KAAM,OAAO;IAAK,CAAC,GAChF,IAAI,WAAW,SAAS;GAAA;GAG5B,OAAO;EACT,GAAG,CAAC,CAAC;CACP,GAAG,CAAC,UAAU,UAAU,CAAC;CAEzB,IAAI,CAAC,eAAe,OAAO,KAAK,WAAW,CAAC,CAAC,WAAW,GACtD,OAAO;CAET,MAAM,yBAAyB,cAAc;CAC7C,MAAM,cAAc,YAAY,OAAO,KAAK,QAAQ,CAAC,CAAC,SAAS,KAAK;CACpE,MAAM,oBACJ,mBAAmB,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK;CAEhE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,mBAAAA,SAAD;EAAM,IAAI,EAAE,IAAI,EAAE;EAChB,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,0BAAAA,SAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,kBAAAA,SAAD;GAAK,eAAY;GAAW,IAAI,EAAE,GAAG;IAAE,IAAI;IAAG,IAAI;GAAE,EAAE;GAAtD,UAAA;IACG,cACC,iBAAA,GAAA,kBAAA,KAAA,CAAAC,kBAAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,YAAD;KAAY,SAAQ;KAApB,UAAA,CACG,EAAE,uBAAuB,GAC1B,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD,EAAA,UAAO,KAAK,OAAO,KAAK,QAAQ,CAAC,CAAC,OAAO,GAAS,CAAA,CACxC;IACZ,CAAA,GAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,SAAD;KAA8B;KAAa,MAAM;KAAgB;IAAO,CAAA,CACxE,EAAA,CAAA,IACA;IACJ,iBAAA,GAAA,kBAAA,KAAA,CAAAD,kBAAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,YAAD;KAAY,SAAQ;KAApB,UAAA,CACG,EAAE,0BAA0B,GAC7B,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD,EAAA,UAAO,KAAK,OAAO,KAAK,eAAe,CAAC,CAAC,OAAO,GAAS,CAAA,CAC/C;IACZ,CAAA,GAAA,iBAAA,GAAA,kBAAA,IAAA,CAACE,wBAAAA,SAAD;KAGE,YAAY,EAAE,6BAA6B;KAC3C,WAAA,GAAUC,UAAAA,SAAAA,EAAU,MAAM;MACxB,cAAc,EAAE,OAAO,KAAK;KAC9B,GAAG,GAAG;KACN,MAAK;KACL,SAAQ;KACR,IAAI,EAAE,OAAO;MAAE,IAAI;MAAQ,IAAI;KAAM,EAAE;IACxC,GARM,WAQN,CACD,EAAA,CAAA;IACD,oBACC,iBAAA,GAAA,kBAAA,KAAA,CAAAH,kBAAAA,UAAA,EAAA,UAAA,CACG,2BAA2B,QAE1B,iBAAA,GAAA,kBAAA,IAAA,CAACI,oBAAAA,SAAD;KAAO,UAAS;KAAO,IAAI;MAAE,WAAW;MAAG,cAAc;KAAE;KACxD,UAAA,EAAE,0BAA0B;IACxB,CAAA,GAET,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,SAAD;KACe;KACP;KACN,UAAU;IACX,CAAA,CACD,EAAA,CAAA,IACA;GACD;EACM,CAAA,EAAA,CAAA;CACT,CAAA;AAEV"}
@@ -47,7 +47,10 @@ var Versions = ({ packageMeta, packageName }) => {
47
47
  sx: { mb: 2 },
48
48
  children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(Box, {
49
49
  "data-testid": "versions",
50
- sx: { m: 2 },
50
+ sx: { m: {
51
+ xs: 0,
52
+ sm: 2
53
+ } },
51
54
  children: [
52
55
  hasDistTags ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(StyledText, {
53
56
  variant: "subtitle1",
@@ -67,7 +70,10 @@ var Versions = ({ packageMeta, packageName }) => {
67
70
  }, 200),
68
71
  size: "small",
69
72
  variant: "standard",
70
- sx: { width: "50%" }
73
+ sx: { width: {
74
+ xs: "100%",
75
+ sm: "50%"
76
+ } }
71
77
  }, packageName)] }),
72
78
  hasVersionHistory ? /* @__PURE__ */ jsxs(Fragment$1, { children: [hideDeprecatedVersions === true && /* @__PURE__ */ jsx(Alert, {
73
79
  severity: "info",
@@ -1 +1 @@
1
- {"version":3,"file":"Versions.mjs","names":["_Fragment"],"sources":["../../../src/components/Versions/Versions.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Alert from '@mui/material/Alert';\nimport Box from '@mui/material/Box';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport TextField from '@mui/material/TextField';\nimport Typography from '@mui/material/Typography';\nimport { debounce } from 'lodash-es';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport semver from 'semver';\n\nimport type { Theme } from '../../Theme';\nimport { useConfig } from '../../providers';\nimport VersionsHistoryList from './HistoryList';\nimport VersionsTagList from './TagList';\n\nexport type Props = { packageMeta: any; packageName: string };\n\nexport const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({\n fontWeight: props.theme && props.theme.fontWeight.bold,\n textTransform: 'capitalize',\n}));\n\nconst Versions: React.FC<Props> = ({ packageMeta, packageName }) => {\n const { t } = useTranslation();\n const { configOptions } = useConfig();\n const { versions = {}, time = {}, ['dist-tags']: distTags = {} } = packageMeta ?? {};\n\n const [textSearch, setTextSearch] = useState('');\n // the detail routes reuse this mounted component across packages: reset the\n // filter so the previous package's text does not apply to the next one\n useEffect(() => {\n setTextSearch('');\n }, [packageName]);\n const packageVersions = useMemo(() => {\n if (textSearch === '') {\n return versions;\n }\n return Object.keys(versions).reduce((acc, version) => {\n if (typeof versions[version] !== 'undefined') {\n if (semver.satisfies(version, textSearch, { includePrerelease: true, loose: true })) {\n acc[version] = versions[version];\n }\n }\n return acc;\n }, {});\n }, [versions, textSearch]);\n\n if (!packageMeta || Object.keys(packageMeta).length === 0) {\n return null;\n }\n const hideDeprecatedVersions = configOptions.hideDeprecatedVersions;\n const hasDistTags = distTags && Object.keys(distTags).length > 0 && packageName;\n const hasVersionHistory =\n packageVersions && Object.keys(packageVersions).length > 0 && packageName;\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"versions\" sx={{ m: 2 }}>\n {hasDistTags ? (\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.current-tags')}\n <span>{` (${Object.keys(distTags).length})`}</span>\n </StyledText>\n <VersionsTagList packageName={packageName} tags={distTags} time={time} />\n </>\n ) : null}\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.version-history')}\n <span>{` (${Object.keys(packageVersions).length})`}</span>\n </StyledText>\n <TextField\n // uncontrolled input: remount on navigation to clear its text\n key={packageName}\n helperText={t('versions.search.placeholder')}\n onChange={debounce((e) => {\n setTextSearch(e.target.value);\n }, 200)}\n size=\"small\"\n variant=\"standard\"\n sx={{ width: '50%' }}\n />\n </>\n {hasVersionHistory ? (\n <>\n {hideDeprecatedVersions === true && (\n // @ts-ignore - Alert does accept children despite the type error\n <Alert severity=\"info\" sx={{ marginTop: 1, marginBottom: 1 }}>\n {t('versions.hide-deprecated')}\n </Alert>\n )}\n <VersionsHistoryList\n packageName={packageName}\n time={time}\n versions={packageVersions}\n />\n </>\n ) : null}\n </Box>\n </CardContent>\n </Card>\n );\n};\n\nexport default Versions;\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,IAAa,aAAa,OAAO,UAAU,CAAC,EAAqB,WAAW;CAC1E,YAAY,MAAM,SAAS,MAAM,MAAM,WAAW;CAClD,eAAe;AACjB,EAAE;AAEF,IAAM,YAA6B,EAAE,aAAa,kBAAkB;CAClE,MAAM,EAAE,MAAM,eAAe;CAC7B,MAAM,EAAE,kBAAkB,UAAU;CACpC,MAAM,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,cAAc,WAAW,CAAC,MAAM,eAAe,CAAC;CAEnF,MAAM,CAAC,YAAY,iBAAiB,SAAS,EAAE;CAG/C,gBAAgB;EACd,cAAc,EAAE;CAClB,GAAG,CAAC,WAAW,CAAC;CAChB,MAAM,kBAAkB,cAAc;EACpC,IAAI,eAAe,IACjB,OAAO;EAET,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,QAAQ,KAAK,YAAY;GACpD,IAAI,OAAO,SAAS,aAAa,aAC3B;QAAA,OAAO,UAAU,SAAS,YAAY;KAAE,mBAAmB;KAAM,OAAO;IAAK,CAAC,GAChF,IAAI,WAAW,SAAS;GAAA;GAG5B,OAAO;EACT,GAAG,CAAC,CAAC;CACP,GAAG,CAAC,UAAU,UAAU,CAAC;CAEzB,IAAI,CAAC,eAAe,OAAO,KAAK,WAAW,CAAC,CAAC,WAAW,GACtD,OAAO;CAET,MAAM,yBAAyB,cAAc;CAC7C,MAAM,cAAc,YAAY,OAAO,KAAK,QAAQ,CAAC,CAAC,SAAS,KAAK;CACpE,MAAM,oBACJ,mBAAmB,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK;CAEhE,OACE,oBAAC,MAAD;EAAM,IAAI,EAAE,IAAI,EAAE;EAChB,UAAA,oBAAC,aAAD,EAAA,UACE,qBAAC,KAAD;GAAK,eAAY;GAAW,IAAI,EAAE,GAAG,EAAE;GAAvC,UAAA;IACG,cACC,qBAAAA,YAAA,EAAA,UAAA,CACE,qBAAC,YAAD;KAAY,SAAQ;KAApB,UAAA,CACG,EAAE,uBAAuB,GAC1B,oBAAC,QAAD,EAAA,UAAO,KAAK,OAAO,KAAK,QAAQ,CAAC,CAAC,OAAO,GAAS,CAAA,CACxC;IACZ,CAAA,GAAA,oBAAC,iBAAD;KAA8B;KAAa,MAAM;KAAgB;IAAO,CAAA,CACxE,EAAA,CAAA,IACA;IACJ,qBAAAA,YAAA,EAAA,UAAA,CACE,qBAAC,YAAD;KAAY,SAAQ;KAApB,UAAA,CACG,EAAE,0BAA0B,GAC7B,oBAAC,QAAD,EAAA,UAAO,KAAK,OAAO,KAAK,eAAe,CAAC,CAAC,OAAO,GAAS,CAAA,CAC/C;IACZ,CAAA,GAAA,oBAAC,WAAD;KAGE,YAAY,EAAE,6BAA6B;KAC3C,UAAU,UAAU,MAAM;MACxB,cAAc,EAAE,OAAO,KAAK;KAC9B,GAAG,GAAG;KACN,MAAK;KACL,SAAQ;KACR,IAAI,EAAE,OAAO,MAAM;IACpB,GARM,WAQN,CACD,EAAA,CAAA;IACD,oBACC,qBAAAA,YAAA,EAAA,UAAA,CACG,2BAA2B,QAE1B,oBAAC,OAAD;KAAO,UAAS;KAAO,IAAI;MAAE,WAAW;MAAG,cAAc;KAAE;KACxD,UAAA,EAAE,0BAA0B;IACxB,CAAA,GAET,oBAAC,qBAAD;KACe;KACP;KACN,UAAU;IACX,CAAA,CACD,EAAA,CAAA,IACA;GACD;EACM,CAAA,EAAA,CAAA;CACT,CAAA;AAEV"}
1
+ {"version":3,"file":"Versions.mjs","names":["_Fragment"],"sources":["../../../src/components/Versions/Versions.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport Alert from '@mui/material/Alert';\nimport Box from '@mui/material/Box';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport TextField from '@mui/material/TextField';\nimport Typography from '@mui/material/Typography';\nimport { debounce } from 'lodash-es';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport semver from 'semver';\n\nimport type { Theme } from '../../Theme';\nimport { useConfig } from '../../providers';\nimport VersionsHistoryList from './HistoryList';\nimport VersionsTagList from './TagList';\n\nexport type Props = { packageMeta: any; packageName: string };\n\nexport const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({\n fontWeight: props.theme && props.theme.fontWeight.bold,\n textTransform: 'capitalize',\n}));\n\nconst Versions: React.FC<Props> = ({ packageMeta, packageName }) => {\n const { t } = useTranslation();\n const { configOptions } = useConfig();\n const { versions = {}, time = {}, ['dist-tags']: distTags = {} } = packageMeta ?? {};\n\n const [textSearch, setTextSearch] = useState('');\n // the detail routes reuse this mounted component across packages: reset the\n // filter so the previous package's text does not apply to the next one\n useEffect(() => {\n setTextSearch('');\n }, [packageName]);\n const packageVersions = useMemo(() => {\n if (textSearch === '') {\n return versions;\n }\n return Object.keys(versions).reduce((acc, version) => {\n if (typeof versions[version] !== 'undefined') {\n if (semver.satisfies(version, textSearch, { includePrerelease: true, loose: true })) {\n acc[version] = versions[version];\n }\n }\n return acc;\n }, {});\n }, [versions, textSearch]);\n\n if (!packageMeta || Object.keys(packageMeta).length === 0) {\n return null;\n }\n const hideDeprecatedVersions = configOptions.hideDeprecatedVersions;\n const hasDistTags = distTags && Object.keys(distTags).length > 0 && packageName;\n const hasVersionHistory =\n packageVersions && Object.keys(packageVersions).length > 0 && packageName;\n\n return (\n <Card sx={{ mb: 2 }}>\n <CardContent>\n <Box data-testid=\"versions\" sx={{ m: { xs: 0, sm: 2 } }}>\n {hasDistTags ? (\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.current-tags')}\n <span>{` (${Object.keys(distTags).length})`}</span>\n </StyledText>\n <VersionsTagList packageName={packageName} tags={distTags} time={time} />\n </>\n ) : null}\n <>\n <StyledText variant=\"subtitle1\">\n {t('versions.version-history')}\n <span>{` (${Object.keys(packageVersions).length})`}</span>\n </StyledText>\n <TextField\n // uncontrolled input: remount on navigation to clear its text\n key={packageName}\n helperText={t('versions.search.placeholder')}\n onChange={debounce((e) => {\n setTextSearch(e.target.value);\n }, 200)}\n size=\"small\"\n variant=\"standard\"\n sx={{ width: { xs: '100%', sm: '50%' } }}\n />\n </>\n {hasVersionHistory ? (\n <>\n {hideDeprecatedVersions === true && (\n // @ts-ignore - Alert does accept children despite the type error\n <Alert severity=\"info\" sx={{ marginTop: 1, marginBottom: 1 }}>\n {t('versions.hide-deprecated')}\n </Alert>\n )}\n <VersionsHistoryList\n packageName={packageName}\n time={time}\n versions={packageVersions}\n />\n </>\n ) : null}\n </Box>\n </CardContent>\n </Card>\n );\n};\n\nexport default Versions;\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,IAAa,aAAa,OAAO,UAAU,CAAC,EAAqB,WAAW;CAC1E,YAAY,MAAM,SAAS,MAAM,MAAM,WAAW;CAClD,eAAe;AACjB,EAAE;AAEF,IAAM,YAA6B,EAAE,aAAa,kBAAkB;CAClE,MAAM,EAAE,MAAM,eAAe;CAC7B,MAAM,EAAE,kBAAkB,UAAU;CACpC,MAAM,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,cAAc,WAAW,CAAC,MAAM,eAAe,CAAC;CAEnF,MAAM,CAAC,YAAY,iBAAiB,SAAS,EAAE;CAG/C,gBAAgB;EACd,cAAc,EAAE;CAClB,GAAG,CAAC,WAAW,CAAC;CAChB,MAAM,kBAAkB,cAAc;EACpC,IAAI,eAAe,IACjB,OAAO;EAET,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,QAAQ,KAAK,YAAY;GACpD,IAAI,OAAO,SAAS,aAAa,aAC3B;QAAA,OAAO,UAAU,SAAS,YAAY;KAAE,mBAAmB;KAAM,OAAO;IAAK,CAAC,GAChF,IAAI,WAAW,SAAS;GAAA;GAG5B,OAAO;EACT,GAAG,CAAC,CAAC;CACP,GAAG,CAAC,UAAU,UAAU,CAAC;CAEzB,IAAI,CAAC,eAAe,OAAO,KAAK,WAAW,CAAC,CAAC,WAAW,GACtD,OAAO;CAET,MAAM,yBAAyB,cAAc;CAC7C,MAAM,cAAc,YAAY,OAAO,KAAK,QAAQ,CAAC,CAAC,SAAS,KAAK;CACpE,MAAM,oBACJ,mBAAmB,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK;CAEhE,OACE,oBAAC,MAAD;EAAM,IAAI,EAAE,IAAI,EAAE;EAChB,UAAA,oBAAC,aAAD,EAAA,UACE,qBAAC,KAAD;GAAK,eAAY;GAAW,IAAI,EAAE,GAAG;IAAE,IAAI;IAAG,IAAI;GAAE,EAAE;GAAtD,UAAA;IACG,cACC,qBAAAA,YAAA,EAAA,UAAA,CACE,qBAAC,YAAD;KAAY,SAAQ;KAApB,UAAA,CACG,EAAE,uBAAuB,GAC1B,oBAAC,QAAD,EAAA,UAAO,KAAK,OAAO,KAAK,QAAQ,CAAC,CAAC,OAAO,GAAS,CAAA,CACxC;IACZ,CAAA,GAAA,oBAAC,iBAAD;KAA8B;KAAa,MAAM;KAAgB;IAAO,CAAA,CACxE,EAAA,CAAA,IACA;IACJ,qBAAAA,YAAA,EAAA,UAAA,CACE,qBAAC,YAAD;KAAY,SAAQ;KAApB,UAAA,CACG,EAAE,0BAA0B,GAC7B,oBAAC,QAAD,EAAA,UAAO,KAAK,OAAO,KAAK,eAAe,CAAC,CAAC,OAAO,GAAS,CAAA,CAC/C;IACZ,CAAA,GAAA,oBAAC,WAAD;KAGE,YAAY,EAAE,6BAA6B;KAC3C,UAAU,UAAU,MAAM;MACxB,cAAc,EAAE,OAAO,KAAK;KAC9B,GAAG,GAAG;KACN,MAAK;KACL,SAAQ;KACR,IAAI,EAAE,OAAO;MAAE,IAAI;MAAQ,IAAI;KAAM,EAAE;IACxC,GARM,WAQN,CACD,EAAA,CAAA;IACD,oBACC,qBAAAA,YAAA,EAAA,UAAA,CACG,2BAA2B,QAE1B,oBAAC,OAAD;KAAO,UAAS;KAAO,IAAI;MAAE,WAAW;MAAG,cAAc;KAAE;KACxD,UAAA,EAAE,0BAA0B;IACxB,CAAA,GAET,oBAAC,qBAAD;KACe;KACP;KACN,UAAU;IACX,CAAA,CACD,EAAA,CAAA,IACA;GACD;EACM,CAAA,EAAA,CAAA;CACT,CAAA;AAEV"}
@@ -0,0 +1,5 @@
1
+ /** Text for screen readers only. */
2
+ export declare const VisuallyHidden: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: React.ElementType;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1,17 @@
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.js");
2
+ let _emotion_styled = require("@emotion/styled");
3
+ _emotion_styled = require_runtime.__toESM(_emotion_styled);
4
+ //#region src/components/VisuallyHidden/index.ts
5
+ /** Text for screen readers only. */
6
+ var VisuallyHidden = (0, _emotion_styled.default)("span")({
7
+ position: "absolute",
8
+ width: 1,
9
+ height: 1,
10
+ overflow: "hidden",
11
+ clip: "rect(0 0 0 0)",
12
+ whiteSpace: "nowrap"
13
+ });
14
+ //#endregion
15
+ exports.VisuallyHidden = VisuallyHidden;
16
+
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["styled"],"sources":["../../../src/components/VisuallyHidden/index.ts"],"sourcesContent":["import styled from '@emotion/styled';\n\n/** Text for screen readers only. */\nexport const VisuallyHidden = styled('span')({\n position: 'absolute',\n width: 1,\n height: 1,\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n whiteSpace: 'nowrap',\n});\n"],"mappings":";;;;;AAGA,IAAa,kBAAA,GAAiBA,gBAAAA,QAAAA,CAAO,MAAM,CAAC,CAAC;CAC3C,UAAU;CACV,OAAO;CACP,QAAQ;CACR,UAAU;CACV,MAAM;CACN,YAAY;AACd,CAAC"}
@@ -0,0 +1,15 @@
1
+ import styled from "@emotion/styled";
2
+ //#region src/components/VisuallyHidden/index.ts
3
+ /** Text for screen readers only. */
4
+ var VisuallyHidden = styled("span")({
5
+ position: "absolute",
6
+ width: 1,
7
+ height: 1,
8
+ overflow: "hidden",
9
+ clip: "rect(0 0 0 0)",
10
+ whiteSpace: "nowrap"
11
+ });
12
+ //#endregion
13
+ export { VisuallyHidden };
14
+
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/VisuallyHidden/index.ts"],"sourcesContent":["import styled from '@emotion/styled';\n\n/** Text for screen readers only. */\nexport const VisuallyHidden = styled('span')({\n position: 'absolute',\n width: 1,\n height: 1,\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n whiteSpace: 'nowrap',\n});\n"],"mappings":";;;AAGA,IAAa,iBAAiB,OAAO,MAAM,CAAC,CAAC;CAC3C,UAAU;CACV,OAAO;CACP,QAAQ;CACR,UAAU;CACV,MAAM;CACN,YAAY;AACd,CAAC"}
@@ -5,7 +5,8 @@ var defaultValues = {
5
5
  pkgManagers: [
6
6
  "yarn",
7
7
  "pnpm",
8
- "npm"
8
+ "npm",
9
+ "bun"
9
10
  ],
10
11
  scope: "",
11
12
  base: "",
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","names":[],"sources":["../src/configuration.ts"],"sourcesContent":["import type { TemplateUIOptions } from '@verdaccio/types';\n\nconst defaultValues: TemplateUIOptions = {\n primaryColor: '#ffffff',\n darkMode: false,\n pkgManagers: ['yarn', 'pnpm', 'npm'],\n scope: '',\n base: '',\n login: true,\n flags: {},\n url_prefix: '',\n title: 'Verdaccio',\n};\n\nexport function getConfiguration() {\n const uiConfiguration = window?.__VERDACCIO_BASENAME_UI_OPTIONS ?? defaultValues;\n return uiConfiguration;\n}\n"],"mappings":";AAEA,IAAM,gBAAmC;CACvC,cAAc;CACd,UAAU;CACV,aAAa;EAAC;EAAQ;EAAQ;CAAK;CACnC,OAAO;CACP,MAAM;CACN,OAAO;CACP,OAAO,CAAC;CACR,YAAY;CACZ,OAAO;AACT;AAEA,SAAgB,mBAAmB;CAEjC,OADwB,QAAQ,mCAAmC;AAErE"}
1
+ {"version":3,"file":"configuration.js","names":[],"sources":["../src/configuration.ts"],"sourcesContent":["import type { TemplateUIOptions } from '@verdaccio/types';\n\nconst defaultValues: TemplateUIOptions = {\n primaryColor: '#ffffff',\n darkMode: false,\n pkgManagers: ['yarn', 'pnpm', 'npm', 'bun'],\n scope: '',\n base: '',\n login: true,\n flags: {},\n url_prefix: '',\n title: 'Verdaccio',\n};\n\nexport function getConfiguration() {\n const uiConfiguration = window?.__VERDACCIO_BASENAME_UI_OPTIONS ?? defaultValues;\n return uiConfiguration;\n}\n"],"mappings":";AAEA,IAAM,gBAAmC;CACvC,cAAc;CACd,UAAU;CACV,aAAa;EAAC;EAAQ;EAAQ;EAAO;CAAK;CAC1C,OAAO;CACP,MAAM;CACN,OAAO;CACP,OAAO,CAAC;CACR,YAAY;CACZ,OAAO;AACT;AAEA,SAAgB,mBAAmB;CAEjC,OADwB,QAAQ,mCAAmC;AAErE"}
@@ -5,7 +5,8 @@ var defaultValues = {
5
5
  pkgManagers: [
6
6
  "yarn",
7
7
  "pnpm",
8
- "npm"
8
+ "npm",
9
+ "bun"
9
10
  ],
10
11
  scope: "",
11
12
  base: "",
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.mjs","names":[],"sources":["../src/configuration.ts"],"sourcesContent":["import type { TemplateUIOptions } from '@verdaccio/types';\n\nconst defaultValues: TemplateUIOptions = {\n primaryColor: '#ffffff',\n darkMode: false,\n pkgManagers: ['yarn', 'pnpm', 'npm'],\n scope: '',\n base: '',\n login: true,\n flags: {},\n url_prefix: '',\n title: 'Verdaccio',\n};\n\nexport function getConfiguration() {\n const uiConfiguration = window?.__VERDACCIO_BASENAME_UI_OPTIONS ?? defaultValues;\n return uiConfiguration;\n}\n"],"mappings":";AAEA,IAAM,gBAAmC;CACvC,cAAc;CACd,UAAU;CACV,aAAa;EAAC;EAAQ;EAAQ;CAAK;CACnC,OAAO;CACP,MAAM;CACN,OAAO;CACP,OAAO,CAAC;CACR,YAAY;CACZ,OAAO;AACT;AAEA,SAAgB,mBAAmB;CAEjC,OADwB,QAAQ,mCAAmC;AAErE"}
1
+ {"version":3,"file":"configuration.mjs","names":[],"sources":["../src/configuration.ts"],"sourcesContent":["import type { TemplateUIOptions } from '@verdaccio/types';\n\nconst defaultValues: TemplateUIOptions = {\n primaryColor: '#ffffff',\n darkMode: false,\n pkgManagers: ['yarn', 'pnpm', 'npm', 'bun'],\n scope: '',\n base: '',\n login: true,\n flags: {},\n url_prefix: '',\n title: 'Verdaccio',\n};\n\nexport function getConfiguration() {\n const uiConfiguration = window?.__VERDACCIO_BASENAME_UI_OPTIONS ?? defaultValues;\n return uiConfiguration;\n}\n"],"mappings":";AAEA,IAAM,gBAAmC;CACvC,cAAc;CACd,UAAU;CACV,aAAa;EAAC;EAAQ;EAAQ;EAAO;CAAK;CAC1C,OAAO;CACP,MAAM;CACN,OAAO;CACP,OAAO,CAAC;CACR,YAAY;CACZ,OAAO;AACT;AAEA,SAAgB,mBAAmB;CAEjC,OADwB,QAAQ,mCAAmC;AAErE"}
@@ -1,5 +1,8 @@
1
1
  //#region src/i18n/crowdin/ui.json
2
+ var loading = "Loading...";
2
3
  var dialog = {
4
+ "docs-link": "Verdaccio documentation",
5
+ "opens-in-new-tab": "(opens in a new tab)",
3
6
  "registry-info": { "title": "Information" },
4
7
  "settings": { "title": "Configuration" },
5
8
  "license": "License",
@@ -9,7 +12,6 @@ var dialog = {
9
12
  var header = {
10
13
  "documentation": "Documentation",
11
14
  "registry-info": "Registry Information",
12
- "registry-info-link": "Learn more",
13
15
  "settings": "Settings",
14
16
  "help": "Help",
15
17
  "registry-no-conf": "No configurations available",
@@ -17,9 +19,16 @@ var header = {
17
19
  };
18
20
  var search = {
19
21
  "packages": "Search Packages",
20
- "isPrivate": "Private",
21
- "isRemote": "Remote",
22
- "isCached": "Cached"
22
+ "origin": {
23
+ "private": "Published on this registry",
24
+ "cached": "Cached from an uplink",
25
+ "remote": "Available from an uplink"
26
+ },
27
+ "group": {
28
+ "private": "Published here ({{count}})",
29
+ "cached": "Cached from uplinks ({{count}})",
30
+ "remote": "Available from uplinks ({{count}})"
31
+ }
23
32
  };
24
33
  var autoComplete = {
25
34
  "loading": "Loading...",
@@ -47,6 +56,18 @@ var versions = {
47
56
  "search.placeholder": "Search for a version by semver range, e.g., ^1.0.0.",
48
57
  "hide-deprecated": "All deprecated versions are hidden by global configuration"
49
58
  };
59
+ var packageList = {
60
+ "filter": "Filter packages",
61
+ "scope": "Scope",
62
+ "all-scopes": "All scopes",
63
+ "no-scope": "Without scope",
64
+ "sort": "Sort by",
65
+ "sort-default": "Default order",
66
+ "sort-name": "Name",
67
+ "sort-recent": "Recently published",
68
+ "count": "{{shown}} of {{total}} packages",
69
+ "no-match": "No packages match the current filter."
70
+ };
50
71
  var dependencies = {
51
72
  "has-no-dependencies": "{{package}} has no dependencies.",
52
73
  "dependency-block": "{{package}}: {{version}}",
@@ -57,13 +78,32 @@ var form = {
57
78
  "password": "Password"
58
79
  };
59
80
  var help = {
81
+ "settings-tab": "Publishing",
60
82
  "title": "No Package Published Yet.",
61
- "sub-title": "To publish your first package just:",
62
- "first-step": "1. Create user",
83
+ "welcome": "Welcome to {{title}}. The registry is ready: point your package manager to it and publish your first package.",
84
+ "steps": {
85
+ "configure": {
86
+ "title": "Point your package manager to this registry",
87
+ "description": "Run it once on each machine, or commit the file to your project so everyone uses the same registry."
88
+ },
89
+ "login": {
90
+ "title": "Create a user or log in",
91
+ "description": "Publishing needs an account on this registry.",
92
+ "bun-note": "bun has no login command: it uses the token that npm adduser saves in .npmrc."
93
+ },
94
+ "publish": {
95
+ "title": "Publish your package",
96
+ "description": "Run it from the folder that contains the package.json."
97
+ },
98
+ "wait": {
99
+ "title": "Watch it appear here",
100
+ "description": "This page checks for new packages every few seconds, so there is no need to reload it."
101
+ }
102
+ },
63
103
  "first-step-command-line": "npm adduser --registry {{registryUrl}}",
64
- "second-step": "2. Publish",
65
104
  "second-step-command-line": "npm publish --registry {{registryUrl}}",
66
- "third-step": "3. Refresh this page"
105
+ "uplinks-note": "Packages installed through this registry from its uplinks, such as npmjs, are cached but not listed here: this page only shows packages published to this registry.",
106
+ "uplinks-link": "How uplinks work"
67
107
  };
68
108
  var sidebar = {
69
109
  "detail": {
@@ -75,7 +115,8 @@ var sidebar = {
75
115
  "title": "Installation",
76
116
  "latest": "latest version",
77
117
  "global": "global package",
78
- "yarnModern": "yarn modern syntax"
118
+ "yarnModern": "yarn modern syntax",
119
+ "npmrc": "Registry for .npmrc"
79
120
  },
80
121
  "repository": { "title": "Repository" },
81
122
  "author": { "title": "Author" },
@@ -105,7 +146,6 @@ var button = {
105
146
  "login": "Login",
106
147
  "logout": "Logout",
107
148
  "go-to-the-home-page": "Go to the home page",
108
- "learn-more": "Learn More",
109
149
  "fund-this-package": "<0>Fund</0> this package"
110
150
  };
111
151
  var error = {
@@ -153,7 +193,17 @@ var packageManagers = {
153
193
  "title": "Package Managers",
154
194
  "description": "This is the configuration details for the registry. Each package manager could have different configuration, expand each section for more details. If the section is disable review your configuration.",
155
195
  "yarnclassicDetails": "Yarn classic configuration differs from Yarn 2+ configuration. For more details, please visit [Yarn Classic](https://verdaccio.org/docs/cli-registry#yarn-1x).",
156
- "yarnBerryDetails": "Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yaml` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x)."
196
+ "yarnBerryDetails": "Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yaml` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x).",
197
+ "minReleaseAge": {
198
+ "title": "Minimum release age",
199
+ "description": "Skip versions published in the last {{days}} days, so a malicious release has time to be reported and removed before anyone installs it. Where the client allows it, packages of {{scope}}, published here, stay exempt so your own releases install right away.",
200
+ "npm": "npm 11.10 or newer; the scope exemption needs npm 12.",
201
+ "pnpm": "minimumReleaseAge is in minutes.",
202
+ "yarn": "Each scope can have its own gate under npmScopes (yarn 4.17 or newer); 0 turns it off for the scope.",
203
+ "bun": "minimumReleaseAge is in seconds. bun exempts exact package names only, so list the packages of the scope in minimumReleaseAgeExcludes.",
204
+ "registry": "Registry operators can enforce a minimum age for everybody with the [package filter](https://verdaccio.org/docs/configuration#package-filter) (`minAgeDays`)."
205
+ },
206
+ "bunDetails": "bun reads the registry from `bunfig.toml` (or `.npmrc`) and the token that `npm adduser` saves in `.npmrc`. For more details, please visit [bun](https://verdaccio.org/docs/setup-bun)."
157
207
  };
158
208
  var language = {
159
209
  "title": "Translations",
@@ -242,7 +292,9 @@ var stage = {
242
292
  };
243
293
  var about = "About";
244
294
  var ui_default = {
295
+ loading,
245
296
  "copy-to-clipboard": "Copy to clipboard",
297
+ "copy-to-clipboard-done": "Copied",
246
298
  "author-anonymous": "Anonymous",
247
299
  "author-unknown": "Unknown",
248
300
  "action-bar-action": {
@@ -259,6 +311,7 @@ var ui_default = {
259
311
  tab,
260
312
  uplinks,
261
313
  versions,
314
+ packageList,
262
315
  "package": {
263
316
  "published-on": "Published {{time}}",
264
317
  "version": "v{{version}}",
@@ -311,6 +364,8 @@ exports.header = header;
311
364
  exports.help = help;
312
365
  exports.language = language;
313
366
  exports.lng = lng;
367
+ exports.loading = loading;
368
+ exports.packageList = packageList;
314
369
  exports.packageManagers = packageManagers;
315
370
  exports.search = search;
316
371
  exports.security = security;
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","names":[],"sources":["../../../src/i18n/crowdin/ui.json"],"sourcesContent":["{\n \"copy-to-clipboard\": \"Copy to clipboard\",\n \"author-anonymous\": \"Anonymous\",\n \"author-unknown\": \"Unknown\",\n \"action-bar-action\": {\n \"visit-home-page\": \"Visit homepage\",\n \"open-an-issue\": \"Open an issue\",\n \"download-tarball\": \"Download tarball\",\n \"raw\": \"View manifest\",\n \"raw-title\": \"Manifest of {{package}}\"\n },\n \"dialog\": {\n \"registry-info\": {\n \"title\": \"Information\"\n },\n \"settings\": {\n \"title\": \"Configuration\"\n },\n \"license\": \"License\",\n \"totalContributors\": \"Total contributors\",\n \"support\": \"Support\"\n },\n \"header\": {\n \"documentation\": \"Documentation\",\n \"registry-info\": \"Registry Information\",\n \"registry-info-link\": \"Learn more\",\n \"settings\": \"Settings\",\n \"help\": \"Help\",\n \"registry-no-conf\": \"No configurations available\",\n \"greetings\": \"Hi \"\n },\n \"search\": {\n \"packages\": \"Search Packages\",\n \"isPrivate\": \"Private\",\n \"isRemote\": \"Remote\",\n \"isCached\": \"Cached\"\n },\n \"autoComplete\": {\n \"loading\": \"Loading...\",\n \"no-results-found\": \"No results found\",\n \"clear\": \"Clear\",\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\",\n \"error\": \"Something went wrong while searching\"\n },\n \"tab\": {\n \"uplinks\": \"Uplinks\",\n \"versions\": \"Versions\",\n \"dependencies\": \"Dependencies\",\n \"readme\": \"Readme\"\n },\n \"uplinks\": {\n \"title\": \"Uplinks\",\n \"no-items\": \"{{name}} has no uplinks.\"\n },\n \"versions\": {\n \"current-tags\": \"Current Tags\",\n \"version-history\": \"Version History\",\n \"not-available\": \"Not available\",\n \"deprecated\": \"Deprecated\",\n \"search.placeholder\": \"Search for a version by semver range, e.g., ^1.0.0.\",\n \"hide-deprecated\": \"All deprecated versions are hidden by global configuration\"\n },\n \"package\": {\n \"published-on\": \"Published {{time}}\",\n \"version\": \"v{{version}}\",\n \"visit-home-page\": \"Visit homepage\",\n \"homepage\": \"Homepage\",\n \"open-an-issue\": \"Open an issue\",\n \"bugs\": \"Bugs\",\n \"download\": \"Download {{what}}\",\n \"the-tar-file\": \"the tar file\",\n \"tarball\": \"Tarball\"\n },\n \"dependencies\": {\n \"has-no-dependencies\": \"{{package}} has no dependencies.\",\n \"dependency-block\": \"{{package}}: {{version}}\",\n \"dependency-block-bundle\": \"{{package}}\"\n },\n \"form\": {\n \"username\": \"Username\",\n \"password\": \"Password\"\n },\n \"form-placeholder\": {\n \"username\": \"Your username\",\n \"password\": \"Your strong password\"\n },\n \"form-validation\": {\n \"required-field\": \"This field is required\",\n \"required-min-length\": \"This field required with a minimum length of {{length}}\",\n \"unable-to-sign-in\": \"Unable to sign in\",\n \"username-or-password-cant-be-empty\": \"Username or password can't be empty!\",\n \"invalid-email\": \"Must be a valid email address\"\n },\n \"help\": {\n \"title\": \"No Package Published Yet.\",\n \"sub-title\": \"To publish your first package just:\",\n \"first-step\": \"1. Create user\",\n \"first-step-command-line\": \"npm adduser --registry {{registryUrl}}\",\n \"second-step\": \"2. Publish\",\n \"second-step-command-line\": \"npm publish --registry {{registryUrl}}\",\n \"third-step\": \"3. Refresh this page\"\n },\n \"sidebar\": {\n \"detail\": {\n \"latest-version\": \"Latest v{{version}}\",\n \"version\": \"v{{version}}\",\n \"published\": \"Published\"\n },\n \"installation\": {\n \"title\": \"Installation\",\n \"latest\": \"latest version\",\n \"global\": \"global package\",\n \"yarnModern\": \"yarn modern syntax\"\n },\n \"repository\": {\n \"title\": \"Repository\"\n },\n \"author\": {\n \"title\": \"Author\"\n },\n \"distribution\": {\n \"title\": \"Distribution\",\n \"license\": \"License\",\n \"size\": \"Size\",\n \"file-count\": \"File Count\"\n },\n \"keywords\": {\n \"title\": \"Keywords\"\n },\n \"maintainers\": {\n \"title\": \"Maintainers\"\n },\n \"contributors\": {\n \"title\": \"Contributors\"\n },\n \"engines\": {\n \"npm-version\": \"Npm Version\",\n \"pnpm-version\": \"Pnpm Version\",\n \"yarn-version\": \"Yarn Version\",\n \"node-js\": \"Node.js\"\n }\n },\n \"footer\": {\n \"powered-by\": \"Powered by\",\n \"made-with-love-on\": \"Made with <0>♥</0> on\"\n },\n \"button\": {\n \"close\": \"Close\",\n \"cancel\": \"Cancel\",\n \"login\": \"Login\",\n \"logout\": \"Logout\",\n \"go-to-the-home-page\": \"Go to the home page\",\n \"learn-more\": \"Learn More\",\n \"fund-this-package\": \"<0>Fund</0> this package\"\n },\n \"error\": {\n \"401\": {\n \"sorry-no-access\": \"Sorry, you need credentials access to see this page.\"\n },\n \"404\": {\n \"sorry-we-could-not-find-it\": \"Sorry, we couldn't find it...\"\n },\n \"unspecific\": \"Something went wrong.\",\n \"app-context-not-correct-used\": \"The app context was not used correctly\",\n \"theme-context-not-correct-used\": \"The theme context was not used correctly\",\n \"package-meta-is-required-at-detail-context\": \"packageMeta is required at DetailContext\",\n \"download-tarball\": \"The tarball could not be downloaded\"\n },\n \"lng\": {\n \"english\": \"English\",\n \"czech\": \"Czech\",\n \"japanese\": \"Japanese\",\n \"portuguese\": \"Portuguese\",\n \"spanish\": \"Spanish\",\n \"irish\": \"Irish\",\n \"german\": \"German\",\n \"italian\": \"Italian\",\n \"french\": \"French\",\n \"russian\": \"Russian\",\n \"turkish\": \"Turkish\",\n \"ukraine\": \"Ukraine\",\n \"khmer\": \"Khmer\",\n \"chinese\": \"Chinese Simplified\",\n \"chineseTraditional\": \"Chinese Traditional\",\n \"korean\": \"Korean\",\n \"polish\": \"Polish\",\n \"galician\": \"Galician\"\n },\n \"flag\": {\n \"austria\": \"Austria\",\n \"australia\": \"Australia\",\n \"brazil\": \"Brazil\",\n \"canada\": \"Canada\",\n \"spain\": \"Spain\",\n \"nicaragua\": \"Nicaragua\",\n \"india\": \"India\",\n \"china\": \"China\",\n \"germany\": \"Germany\",\n \"taiwan\": \"Taiwan\"\n },\n \"packageManagers\": {\n \"title\": \"Package Managers\",\n \"description\": \"This is the configuration details for the registry. Each package manager could have different configuration, expand each section for more details. If the section is disable review your configuration.\",\n \"yarnclassicDetails\": \"Yarn classic configuration differs from Yarn 2+ configuration. For more details, please visit [Yarn Classic](https://verdaccio.org/docs/cli-registry#yarn-1x).\",\n \"yarnBerryDetails\": \"Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yaml` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x).\"\n },\n \"language\": {\n \"title\": \"Translations\",\n \"contribute\": \"Want to help translate? More languages can be added on request. [Here is how](https://github.com/verdaccio/verdaccio/blob/master/packages/ui-components/src/i18n/ABOUT_TRANSLATIONS.md).\",\n \"description\": \"This is the configuration details for the language. Select a language to select a client side translation.\",\n \"progress\": \"{{progress}}% translated\"\n },\n \"security\": {\n \"login\": {\n \"createUser\": \"Create User\",\n \"noUserQuestion\": \"Don't have an account?\"\n },\n \"success\": {\n \"title\": \"Success\",\n \"messageSuccess\": \"Thank you for using Verdaccio\",\n \"messageLogin\": \"You have logged in successfully and may close this window\",\n \"messageChangePassword\": \"You have changed your password successfully and may close this window\",\n \"messageAddUser\": \"You have created a new user successfully and may close this window\",\n \"submit\": \"Go to Home Page\"\n },\n \"addUser\": {\n \"title\": \"Add New User\",\n \"username\": \"Username\",\n \"password\": \"Password\",\n \"email\": \"Email\",\n \"emailDescription\": \"Your email address might be added to the metadata of packages that you publish and could be seen publicly.\",\n \"submit\": \"Create User\",\n \"alreadyUserQuestion\": \"Already have an account?\",\n \"login\": \"Login Here\"\n },\n \"changePassword\": {\n \"loginRequired\": \"Sign in to change your password. If your session has expired, sign in again.\",\n \"title\": \"Change Password\",\n \"oldPassword\": \"Current Password\",\n \"invalidOldPassword\": \"The current password is incorrect.\",\n \"newPassword\": \"New Password\",\n \"confirmPassword\": \"Confirm New Password\",\n \"submit\": \"Change Password\"\n },\n \"error\": {\n \"username-or-password-cant-be-empty\": \"Username or password can't be empty!\",\n \"username-min-length\": \"Username must be at least {{length}} characters long\",\n \"username-must-be-url-safe\": \"Username must contain only url-safe characters [a-z, 0-9, _, -, ., !, ~, *, ', (, ), and @]\",\n \"username-already-exists\": \"Username already exists\",\n \"username-not-found\": \"Username not found\",\n \"unable-to-add-user\": \"Unable to add user\",\n \"unable-to-change-password\": \"Unable to change password\",\n \"unable-to-login\": \"Unable to login\",\n \"password-mismatch\": \"Passwords do not match\",\n \"invalid-credentials\": \"Invalid username or password\",\n \"invalid-next-param\": \"Missing or invalid next parameter in login request\"\n }\n },\n \"stage\": {\n \"menu\": \"Staged packages\",\n \"title\": \"Staged packages\",\n \"description\": \"Package versions waiting for review. They are not installable until a maintainer approves them.\",\n \"empty\": \"There are no staged package versions.\",\n \"backToList\": \"Back to staged packages\",\n \"column\": {\n \"package\": \"Package\",\n \"version\": \"Version\",\n \"tag\": \"Tag\",\n \"stagedBy\": \"Staged by\",\n \"date\": \"Date staged\",\n \"access\": \"Access\",\n \"shasum\": \"Shasum\",\n \"actions\": \"Actions\"\n },\n \"action\": {\n \"approve\": \"Approve\",\n \"reject\": \"Reject\",\n \"download\": \"Download tarball\"\n },\n \"confirm\": {\n \"approveTitle\": \"Approve this version?\",\n \"approveBody\": \"This publishes {{package}}@{{version}} under the tag \\\"{{tag}}\\\". It will be installable right away.\",\n \"rejectTitle\": \"Reject this version?\",\n \"rejectBody\": \"This permanently deletes the staged record and tarball for {{package}}@{{version}}. It cannot be undone.\"\n },\n \"error\": {\n \"list\": \"The staged packages could not be loaded.\",\n \"notFound\": \"This staged package version does not exist or you cannot see it.\",\n \"action\": \"The action could not be completed.\"\n }\n },\n \"about\": \"About\"\n}\n"],"mappings":""}
1
+ {"version":3,"file":"ui.js","names":[],"sources":["../../../src/i18n/crowdin/ui.json"],"sourcesContent":["{\n \"loading\": \"Loading...\",\n \"copy-to-clipboard\": \"Copy to clipboard\",\n \"copy-to-clipboard-done\": \"Copied\",\n \"author-anonymous\": \"Anonymous\",\n \"author-unknown\": \"Unknown\",\n \"action-bar-action\": {\n \"visit-home-page\": \"Visit homepage\",\n \"open-an-issue\": \"Open an issue\",\n \"download-tarball\": \"Download tarball\",\n \"raw\": \"View manifest\",\n \"raw-title\": \"Manifest of {{package}}\"\n },\n \"dialog\": {\n \"docs-link\": \"Verdaccio documentation\",\n \"opens-in-new-tab\": \"(opens in a new tab)\",\n \"registry-info\": {\n \"title\": \"Information\"\n },\n \"settings\": {\n \"title\": \"Configuration\"\n },\n \"license\": \"License\",\n \"totalContributors\": \"Total contributors\",\n \"support\": \"Support\"\n },\n \"header\": {\n \"documentation\": \"Documentation\",\n \"registry-info\": \"Registry Information\",\n \"settings\": \"Settings\",\n \"help\": \"Help\",\n \"registry-no-conf\": \"No configurations available\",\n \"greetings\": \"Hi \"\n },\n \"search\": {\n \"packages\": \"Search Packages\",\n \"origin\": {\n \"private\": \"Published on this registry\",\n \"cached\": \"Cached from an uplink\",\n \"remote\": \"Available from an uplink\"\n },\n \"group\": {\n \"private\": \"Published here ({{count}})\",\n \"cached\": \"Cached from uplinks ({{count}})\",\n \"remote\": \"Available from uplinks ({{count}})\"\n }\n },\n \"autoComplete\": {\n \"loading\": \"Loading...\",\n \"no-results-found\": \"No results found\",\n \"clear\": \"Clear\",\n \"expand\": \"Expand\",\n \"collapse\": \"Collapse\",\n \"error\": \"Something went wrong while searching\"\n },\n \"tab\": {\n \"uplinks\": \"Uplinks\",\n \"versions\": \"Versions\",\n \"dependencies\": \"Dependencies\",\n \"readme\": \"Readme\"\n },\n \"uplinks\": {\n \"title\": \"Uplinks\",\n \"no-items\": \"{{name}} has no uplinks.\"\n },\n \"versions\": {\n \"current-tags\": \"Current Tags\",\n \"version-history\": \"Version History\",\n \"not-available\": \"Not available\",\n \"deprecated\": \"Deprecated\",\n \"search.placeholder\": \"Search for a version by semver range, e.g., ^1.0.0.\",\n \"hide-deprecated\": \"All deprecated versions are hidden by global configuration\"\n },\n \"packageList\": {\n \"filter\": \"Filter packages\",\n \"scope\": \"Scope\",\n \"all-scopes\": \"All scopes\",\n \"no-scope\": \"Without scope\",\n \"sort\": \"Sort by\",\n \"sort-default\": \"Default order\",\n \"sort-name\": \"Name\",\n \"sort-recent\": \"Recently published\",\n \"count\": \"{{shown}} of {{total}} packages\",\n \"no-match\": \"No packages match the current filter.\"\n },\n \"package\": {\n \"published-on\": \"Published {{time}}\",\n \"version\": \"v{{version}}\",\n \"visit-home-page\": \"Visit homepage\",\n \"homepage\": \"Homepage\",\n \"open-an-issue\": \"Open an issue\",\n \"bugs\": \"Bugs\",\n \"download\": \"Download {{what}}\",\n \"the-tar-file\": \"the tar file\",\n \"tarball\": \"Tarball\"\n },\n \"dependencies\": {\n \"has-no-dependencies\": \"{{package}} has no dependencies.\",\n \"dependency-block\": \"{{package}}: {{version}}\",\n \"dependency-block-bundle\": \"{{package}}\"\n },\n \"form\": {\n \"username\": \"Username\",\n \"password\": \"Password\"\n },\n \"form-placeholder\": {\n \"username\": \"Your username\",\n \"password\": \"Your strong password\"\n },\n \"form-validation\": {\n \"required-field\": \"This field is required\",\n \"required-min-length\": \"This field required with a minimum length of {{length}}\",\n \"unable-to-sign-in\": \"Unable to sign in\",\n \"username-or-password-cant-be-empty\": \"Username or password can't be empty!\",\n \"invalid-email\": \"Must be a valid email address\"\n },\n \"help\": {\n \"settings-tab\": \"Publishing\",\n \"title\": \"No Package Published Yet.\",\n \"welcome\": \"Welcome to {{title}}. The registry is ready: point your package manager to it and publish your first package.\",\n \"steps\": {\n \"configure\": {\n \"title\": \"Point your package manager to this registry\",\n \"description\": \"Run it once on each machine, or commit the file to your project so everyone uses the same registry.\"\n },\n \"login\": {\n \"title\": \"Create a user or log in\",\n \"description\": \"Publishing needs an account on this registry.\",\n \"bun-note\": \"bun has no login command: it uses the token that npm adduser saves in .npmrc.\"\n },\n \"publish\": {\n \"title\": \"Publish your package\",\n \"description\": \"Run it from the folder that contains the package.json.\"\n },\n \"wait\": {\n \"title\": \"Watch it appear here\",\n \"description\": \"This page checks for new packages every few seconds, so there is no need to reload it.\"\n }\n },\n \"first-step-command-line\": \"npm adduser --registry {{registryUrl}}\",\n \"second-step-command-line\": \"npm publish --registry {{registryUrl}}\",\n \"uplinks-note\": \"Packages installed through this registry from its uplinks, such as npmjs, are cached but not listed here: this page only shows packages published to this registry.\",\n \"uplinks-link\": \"How uplinks work\"\n },\n \"sidebar\": {\n \"detail\": {\n \"latest-version\": \"Latest v{{version}}\",\n \"version\": \"v{{version}}\",\n \"published\": \"Published\"\n },\n \"installation\": {\n \"title\": \"Installation\",\n \"latest\": \"latest version\",\n \"global\": \"global package\",\n \"yarnModern\": \"yarn modern syntax\",\n \"npmrc\": \"Registry for .npmrc\"\n },\n \"repository\": {\n \"title\": \"Repository\"\n },\n \"author\": {\n \"title\": \"Author\"\n },\n \"distribution\": {\n \"title\": \"Distribution\",\n \"license\": \"License\",\n \"size\": \"Size\",\n \"file-count\": \"File Count\"\n },\n \"keywords\": {\n \"title\": \"Keywords\"\n },\n \"maintainers\": {\n \"title\": \"Maintainers\"\n },\n \"contributors\": {\n \"title\": \"Contributors\"\n },\n \"engines\": {\n \"npm-version\": \"Npm Version\",\n \"pnpm-version\": \"Pnpm Version\",\n \"yarn-version\": \"Yarn Version\",\n \"node-js\": \"Node.js\"\n }\n },\n \"footer\": {\n \"powered-by\": \"Powered by\",\n \"made-with-love-on\": \"Made with <0>♥</0> on\"\n },\n \"button\": {\n \"close\": \"Close\",\n \"cancel\": \"Cancel\",\n \"login\": \"Login\",\n \"logout\": \"Logout\",\n \"go-to-the-home-page\": \"Go to the home page\",\n \"fund-this-package\": \"<0>Fund</0> this package\"\n },\n \"error\": {\n \"401\": {\n \"sorry-no-access\": \"Sorry, you need credentials access to see this page.\"\n },\n \"404\": {\n \"sorry-we-could-not-find-it\": \"Sorry, we couldn't find it...\"\n },\n \"unspecific\": \"Something went wrong.\",\n \"app-context-not-correct-used\": \"The app context was not used correctly\",\n \"theme-context-not-correct-used\": \"The theme context was not used correctly\",\n \"package-meta-is-required-at-detail-context\": \"packageMeta is required at DetailContext\",\n \"download-tarball\": \"The tarball could not be downloaded\"\n },\n \"lng\": {\n \"english\": \"English\",\n \"czech\": \"Czech\",\n \"japanese\": \"Japanese\",\n \"portuguese\": \"Portuguese\",\n \"spanish\": \"Spanish\",\n \"irish\": \"Irish\",\n \"german\": \"German\",\n \"italian\": \"Italian\",\n \"french\": \"French\",\n \"russian\": \"Russian\",\n \"turkish\": \"Turkish\",\n \"ukraine\": \"Ukraine\",\n \"khmer\": \"Khmer\",\n \"chinese\": \"Chinese Simplified\",\n \"chineseTraditional\": \"Chinese Traditional\",\n \"korean\": \"Korean\",\n \"polish\": \"Polish\",\n \"galician\": \"Galician\"\n },\n \"flag\": {\n \"austria\": \"Austria\",\n \"australia\": \"Australia\",\n \"brazil\": \"Brazil\",\n \"canada\": \"Canada\",\n \"spain\": \"Spain\",\n \"nicaragua\": \"Nicaragua\",\n \"india\": \"India\",\n \"china\": \"China\",\n \"germany\": \"Germany\",\n \"taiwan\": \"Taiwan\"\n },\n \"packageManagers\": {\n \"title\": \"Package Managers\",\n \"description\": \"This is the configuration details for the registry. Each package manager could have different configuration, expand each section for more details. If the section is disable review your configuration.\",\n \"yarnclassicDetails\": \"Yarn classic configuration differs from Yarn 2+ configuration. For more details, please visit [Yarn Classic](https://verdaccio.org/docs/cli-registry#yarn-1x).\",\n \"yarnBerryDetails\": \"Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yaml` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x).\",\n \"minReleaseAge\": {\n \"title\": \"Minimum release age\",\n \"description\": \"Skip versions published in the last {{days}} days, so a malicious release has time to be reported and removed before anyone installs it. Where the client allows it, packages of {{scope}}, published here, stay exempt so your own releases install right away.\",\n \"npm\": \"npm 11.10 or newer; the scope exemption needs npm 12.\",\n \"pnpm\": \"minimumReleaseAge is in minutes.\",\n \"yarn\": \"Each scope can have its own gate under npmScopes (yarn 4.17 or newer); 0 turns it off for the scope.\",\n \"bun\": \"minimumReleaseAge is in seconds. bun exempts exact package names only, so list the packages of the scope in minimumReleaseAgeExcludes.\",\n \"registry\": \"Registry operators can enforce a minimum age for everybody with the [package filter](https://verdaccio.org/docs/configuration#package-filter) (`minAgeDays`).\"\n },\n \"bunDetails\": \"bun reads the registry from `bunfig.toml` (or `.npmrc`) and the token that `npm adduser` saves in `.npmrc`. For more details, please visit [bun](https://verdaccio.org/docs/setup-bun).\"\n },\n \"language\": {\n \"title\": \"Translations\",\n \"contribute\": \"Want to help translate? More languages can be added on request. [Here is how](https://github.com/verdaccio/verdaccio/blob/master/packages/ui-components/src/i18n/ABOUT_TRANSLATIONS.md).\",\n \"description\": \"This is the configuration details for the language. Select a language to select a client side translation.\",\n \"progress\": \"{{progress}}% translated\"\n },\n \"security\": {\n \"login\": {\n \"createUser\": \"Create User\",\n \"noUserQuestion\": \"Don't have an account?\"\n },\n \"success\": {\n \"title\": \"Success\",\n \"messageSuccess\": \"Thank you for using Verdaccio\",\n \"messageLogin\": \"You have logged in successfully and may close this window\",\n \"messageChangePassword\": \"You have changed your password successfully and may close this window\",\n \"messageAddUser\": \"You have created a new user successfully and may close this window\",\n \"submit\": \"Go to Home Page\"\n },\n \"addUser\": {\n \"title\": \"Add New User\",\n \"username\": \"Username\",\n \"password\": \"Password\",\n \"email\": \"Email\",\n \"emailDescription\": \"Your email address might be added to the metadata of packages that you publish and could be seen publicly.\",\n \"submit\": \"Create User\",\n \"alreadyUserQuestion\": \"Already have an account?\",\n \"login\": \"Login Here\"\n },\n \"changePassword\": {\n \"loginRequired\": \"Sign in to change your password. If your session has expired, sign in again.\",\n \"title\": \"Change Password\",\n \"oldPassword\": \"Current Password\",\n \"invalidOldPassword\": \"The current password is incorrect.\",\n \"newPassword\": \"New Password\",\n \"confirmPassword\": \"Confirm New Password\",\n \"submit\": \"Change Password\"\n },\n \"error\": {\n \"username-or-password-cant-be-empty\": \"Username or password can't be empty!\",\n \"username-min-length\": \"Username must be at least {{length}} characters long\",\n \"username-must-be-url-safe\": \"Username must contain only url-safe characters [a-z, 0-9, _, -, ., !, ~, *, ', (, ), and @]\",\n \"username-already-exists\": \"Username already exists\",\n \"username-not-found\": \"Username not found\",\n \"unable-to-add-user\": \"Unable to add user\",\n \"unable-to-change-password\": \"Unable to change password\",\n \"unable-to-login\": \"Unable to login\",\n \"password-mismatch\": \"Passwords do not match\",\n \"invalid-credentials\": \"Invalid username or password\",\n \"invalid-next-param\": \"Missing or invalid next parameter in login request\"\n }\n },\n \"stage\": {\n \"menu\": \"Staged packages\",\n \"title\": \"Staged packages\",\n \"description\": \"Package versions waiting for review. They are not installable until a maintainer approves them.\",\n \"empty\": \"There are no staged package versions.\",\n \"backToList\": \"Back to staged packages\",\n \"column\": {\n \"package\": \"Package\",\n \"version\": \"Version\",\n \"tag\": \"Tag\",\n \"stagedBy\": \"Staged by\",\n \"date\": \"Date staged\",\n \"access\": \"Access\",\n \"shasum\": \"Shasum\",\n \"actions\": \"Actions\"\n },\n \"action\": {\n \"approve\": \"Approve\",\n \"reject\": \"Reject\",\n \"download\": \"Download tarball\"\n },\n \"confirm\": {\n \"approveTitle\": \"Approve this version?\",\n \"approveBody\": \"This publishes {{package}}@{{version}} under the tag \\\"{{tag}}\\\". It will be installable right away.\",\n \"rejectTitle\": \"Reject this version?\",\n \"rejectBody\": \"This permanently deletes the staged record and tarball for {{package}}@{{version}}. It cannot be undone.\"\n },\n \"error\": {\n \"list\": \"The staged packages could not be loaded.\",\n \"notFound\": \"This staged package version does not exist or you cannot see it.\",\n \"action\": \"The action could not be completed.\"\n }\n },\n \"about\": \"About\"\n}\n"],"mappings":""}