@verdaccio/ui-theme 8.0.0-next-8.29 → 8.0.0-next-8.31

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 (26) hide show
  1. package/index.js +31 -8
  2. package/package.json +21 -34
  3. package/static/index.html +1 -1
  4. package/static/main.985719dd5bd3641b7e71.js +2 -0
  5. package/static/main.985719dd5bd3641b7e71.js.LICENSE.txt +12 -0
  6. package/static/manifest.json +3 -9
  7. package/static/runtime.985719dd5bd3641b7e71.js +2 -0
  8. package/static/{runtime.5ec29369d48298d8575d.js.LICENSE.txt → runtime.985719dd5bd3641b7e71.js.LICENSE.txt} +2 -2
  9. package/static/vendors.985719dd5bd3641b7e71.js +185 -0
  10. package/static/{vendors.5ec29369d48298d8575d.js.LICENSE.txt → vendors.985719dd5bd3641b7e71.js.LICENSE.txt} +51 -18
  11. package/static/AddUser.5ec29369d48298d8575d.js +0 -2
  12. package/static/AddUser.5ec29369d48298d8575d.js.LICENSE.txt +0 -10
  13. package/static/ChangePassword.5ec29369d48298d8575d.js +0 -2
  14. package/static/ChangePassword.5ec29369d48298d8575d.js.LICENSE.txt +0 -10
  15. package/static/Home.5ec29369d48298d8575d.js +0 -2
  16. package/static/Home.5ec29369d48298d8575d.js.LICENSE.txt +0 -10
  17. package/static/Login.5ec29369d48298d8575d.js +0 -2
  18. package/static/Login.5ec29369d48298d8575d.js.LICENSE.txt +0 -10
  19. package/static/Success.5ec29369d48298d8575d.js +0 -2
  20. package/static/Success.5ec29369d48298d8575d.js.LICENSE.txt +0 -10
  21. package/static/Version.5ec29369d48298d8575d.js +0 -2
  22. package/static/Version.5ec29369d48298d8575d.js.LICENSE.txt +0 -10
  23. package/static/main.5ec29369d48298d8575d.js +0 -2
  24. package/static/main.5ec29369d48298d8575d.js.LICENSE.txt +0 -10
  25. package/static/runtime.5ec29369d48298d8575d.js +0 -2
  26. package/static/vendors.5ec29369d48298d8575d.js +0 -103
package/index.js CHANGED
@@ -1,14 +1,37 @@
1
+ const buildDebug = require('debug');
1
2
  const path = require('path');
2
3
 
4
+ const debug = buildDebug('verdaccio:plugin:ui-theme');
5
+
6
+ const manifest = require('./static/manifest.json');
7
+
8
+ // Entry-point scripts that must be eagerly loaded in the HTML.
9
+ // Lazy-loaded code-split chunks (e.g. Home.js, Version.js) are excluded
10
+ // so they remain loaded on demand by the bundler runtime.
11
+ const ENTRY_POINTS = ['runtime.js', 'vendors.js', 'main.js'];
12
+
13
+ function getManifestFiles(manifest) {
14
+ const keys = Object.keys(manifest);
15
+ const js = ENTRY_POINTS.filter((entry) => keys.includes(entry));
16
+ const css = keys.filter((k) => k.endsWith('.css'));
17
+ const ico = keys.find((k) => k.endsWith('.ico')) || 'favicon.ico';
18
+ debug('manifest files js: %o', js);
19
+ debug('manifest files css: %o', css);
20
+ debug('manifest files ico: %o', ico);
21
+ return { js, css, ico };
22
+ }
23
+
3
24
  module.exports = () => {
25
+ const staticPath = path.join(__dirname, 'static');
26
+ const manifestFiles = getManifestFiles(manifest);
27
+ debug('static path: %o', staticPath);
28
+ debug('manifest keys: %o', Object.keys(manifest));
4
29
  return {
5
- // location of the static files, webpack output
6
- staticPath: path.join(__dirname, 'static'),
7
- // webpack manifest json file
8
- manifest: require('./static/manifest.json'),
9
- // main manifest files to be loaded
10
- manifestFiles: {
11
- js: ['runtime.js', 'vendors.js', 'main.js'],
12
- },
30
+ // location of the static files, build output
31
+ staticPath,
32
+ // asset manifest json file
33
+ manifest,
34
+ // derived from manifest keys works with any bundler
35
+ manifestFiles,
13
36
  };
14
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/ui-theme",
3
- "version": "8.0.0-next-8.29",
3
+ "version": "8.0.0-next-8.31",
4
4
  "description": "Verdaccio User Interface (Theme)",
5
5
  "author": {
6
6
  "name": "Verdaccio Contributors",
@@ -20,57 +20,45 @@
20
20
  "@emotion/babel-plugin": "11.13.5",
21
21
  "@emotion/react": "11.11.4",
22
22
  "@emotion/styled": "11.11.5",
23
- "@mui/material": "5.17.1",
23
+ "@mui/material": "7.3.7",
24
24
  "@testing-library/dom": "10.4.1",
25
- "@testing-library/jest-dom": "6.8.0",
26
- "@testing-library/react": "16.3.0",
27
- "@types/history": "5.0.0",
28
- "@verdaccio/ui-components": "4.0.0-next-8.12",
29
- "@verdaccio/ui-i18n": "8.0.0-next-8.13",
30
- "@vitejs/plugin-react": "5.0.4",
25
+ "@testing-library/jest-dom": "6.9.1",
26
+ "@testing-library/react": "16.3.2",
27
+ "@verdaccio/ui-components": "4.0.0-next-8.13",
28
+ "@verdaccio/ui-i18n": "8.0.0-next-8.14",
29
+ "@vitejs/plugin-react": "5.1.4",
31
30
  "babel-loader": "9.2.1",
32
- "babel-plugin-dynamic-import-node": "2.3.3",
33
- "country-flag-icons": "1.5.21",
31
+ "country-flag-icons": "1.6.15",
34
32
  "css-loader": "6.11.0",
35
- "dayjs": "1.11.18",
33
+ "dayjs": "1.11.19",
36
34
  "eslint-plugin-verdaccio": "10.0.0",
37
35
  "friendly-errors-webpack-plugin": "1.7.0",
38
- "history": "4.10.1",
39
- "html-webpack-plugin": "5.6.5",
40
- "i18next": "20.6.1",
36
+ "html-webpack-plugin": "5.6.6",
37
+ "i18next": "25.8.14",
41
38
  "js-yaml": "4.1.1",
42
- "mini-css-extract-plugin": "2.9.4",
39
+ "mini-css-extract-plugin": "2.10.0",
43
40
  "mutationobserver-shim": "0.3.7",
44
41
  "ora": "5.4.1",
45
42
  "raw-loader": "4.0.2",
46
- "react": "18.3.1",
47
- "react-dom": "18.3.1",
48
- "react-hook-form": "7.65.0",
49
- "react-hot-loader": "4.13.1",
50
- "react-i18next": "15.6.1",
51
- "react-markdown": "9.0.3",
52
- "react-redux": "8.1.3",
53
- "react-router-dom": "5.3.4",
54
- "redux": "4.2.1",
43
+ "react": "19.2.3",
44
+ "react-dom": "19.2.3",
45
+ "react-i18next": "16.5.6",
46
+ "react-markdown": "10.1.0",
47
+ "react-router": "7.13.0",
55
48
  "rimraf": "5.0.10",
56
49
  "style-loader": "3.3.4",
57
- "stylelint": "15.11.0",
58
- "stylelint-config-recommended": "10.0.1",
59
- "stylelint-config-styled-components": "0.1.1",
60
- "stylelint-processor-styled-components": "1.10.0",
61
- "stylelint-webpack-plugin": "4.1.1",
62
50
  "terser-webpack-plugin": "5.3.14",
63
51
  "vitest": "3.2.4",
64
52
  "vite-plugin-markdown": "2.2.0",
65
- "webpack": "5.103.0",
53
+ "webpack": "5.105.4",
66
54
  "webpack-bundle-analyzer": "4.10.2",
67
55
  "webpack-bundle-size-analyzer": "3.1.0",
68
56
  "webpack-cli": "4.10.0",
69
- "webpack-dev-server": "5.2.2",
57
+ "webpack-dev-server": "5.2.3",
70
58
  "webpack-manifest-plugin": "4.1.1",
71
59
  "webpack-merge": "5.10.0",
72
60
  "whatwg-fetch": "3.6.20",
73
- "@verdaccio/types": "13.0.0-next-8.10"
61
+ "@verdaccio/types": "13.0.0-next-8.11"
74
62
  },
75
63
  "keywords": [
76
64
  "private",
@@ -93,9 +81,8 @@
93
81
  "type-check": "tsc --noEmit -p tsconfig.build.json",
94
82
  "start": "babel-node tools/dev.server.js",
95
83
  "test": "cross-env TZ=UTC vitest run",
96
- "lint": "pnpm lint:js && pnpm lint:css",
84
+ "lint": "pnpm lint:js",
97
85
  "clean": "rimraf ./static",
98
- "lint:css": "stylelint \"src/**/styles.ts\"",
99
86
  "verdaccio:server": "node tools/verdaccio.js",
100
87
  "build": "pnpm clean && webpack --config tools/webpack.prod.config.babel.js",
101
88
  "build:stats": "webpack --config tools/webpack.prod.config.babel.js --json > stats.json",
package/static/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en-us"><head><meta charset="utf-8"><title>ToReplaceByTitle</title><base href=""><link rel="icon" type="image/png" href=""/><meta name="viewport" content="width=device-width,initial-scale=1"/><script>window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('ToReplaceByVerdaccioUI');</script><link rel="icon" href="-/static/favicon.ico"><script defer="defer" src="-/static/runtime.5ec29369d48298d8575d.js"></script><script defer="defer" src="-/static/vendors.5ec29369d48298d8575d.js"></script><script defer="defer" src="-/static/main.5ec29369d48298d8575d.js"></script></head><body class="body"><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en-us"><head><meta charset="utf-8"><title>ToReplaceByTitle</title><base href=""><link rel="icon" type="image/png" href=""/><meta name="viewport" content="width=device-width,initial-scale=1"/><script>window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('ToReplaceByVerdaccioUI');</script><link rel="icon" href="-/static/favicon.ico"><script defer="defer" src="-/static/runtime.985719dd5bd3641b7e71.js"></script><script defer="defer" src="-/static/vendors.985719dd5bd3641b7e71.js"></script><script defer="defer" src="-/static/main.985719dd5bd3641b7e71.js"></script></head><body class="body"><div id="root"></div></body></html>