@abyss-project/commons-front-core 1.0.140 → 1.0.142

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 (31) hide show
  1. package/dist/CookieConsentSettings.component-DIIK_rRd.js +2604 -0
  2. package/dist/components/CookieConsent/index.d.ts +1 -0
  3. package/dist/cookie-consent.d.ts +2 -0
  4. package/dist/cookie-consent.js +16 -0
  5. package/dist/hooks/use-rich-intl.hook.d.ts +8 -0
  6. package/dist/{index-okqeKiVw.js → index-0jt8DKLf.js} +11 -11
  7. package/dist/{index-Bl6SIpvf.js → index-B3Y7Rb_Q.js} +1 -1
  8. package/dist/{index-UEOwaY3O.js → index-BLr1fOuq.js} +4 -4
  9. package/dist/{index-D-lNUR0y.js → index-BWj4TKOS.js} +2 -2
  10. package/dist/{index-DmM6klgp.js → index-B_fAiFZq.js} +3 -3
  11. package/dist/{index-KCcZKXY3.js → index-Blqg9cwf.js} +3 -3
  12. package/dist/{index-0Kl4O08s.js → index-BrSAVa-Q.js} +2 -2
  13. package/dist/{index-DYCXaPIH.js → index-C70H1Rqy.js} +4 -4
  14. package/dist/{index-CBU4Yqx5.js → index-C9HpxdlC.js} +2 -2
  15. package/dist/{index-CypPvn_s.js → index-CDvwJmU3.js} +8 -8
  16. package/dist/{index-DR4nDzIn.js → index-CI_ndLtL.js} +43317 -45910
  17. package/dist/{index-DmUCpN76.js → index-CQv4ue2W.js} +2 -2
  18. package/dist/{index-DS8zE3ca.js → index-CRlvyprK.js} +3 -3
  19. package/dist/{index-SiHpvGQe.js → index-Cb3RkMZy.js} +2 -2
  20. package/dist/{index-BR_Xw8UL.js → index-CkpUdKTG.js} +3 -3
  21. package/dist/{index-BanaQPDD.js → index-CnuCwLCI.js} +2 -2
  22. package/dist/{index-DK4YUg-N.js → index-CxyWN2Jp.js} +2 -2
  23. package/dist/{index-DRApEyFE.js → index-DQJBss56.js} +2 -2
  24. package/dist/{index-CU2W3qym.js → index-jiAI8FrN.js} +4 -4
  25. package/dist/{index-BdtnG5GK.js → index-prtXdje2.js} +2 -2
  26. package/dist/{index-D5ysDxCf.js → index-rNuCv1FV.js} +5 -5
  27. package/dist/{index-D-1klt9M.js → index-tz9rZQUM.js} +8 -8
  28. package/dist/index.js +223 -222
  29. package/package.json +142 -127
  30. package/vite.config.ts +10 -3
  31. /package/dist/{index.css → commons-front-core.css} +0 -0
package/package.json CHANGED
@@ -1,127 +1,142 @@
1
- {
2
- "name": "@abyss-project/commons-front-core",
3
- "version": "1.0.140",
4
- "description": "Front Core package of AbyssProject",
5
- "main": "dist/index.js",
6
- "module": "./dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
12
- }
13
- },
14
- "type": "module",
15
- "repository": {
16
- "type": "git",
17
- "url": "https://gitlab.com/abyss-group"
18
- },
19
- "keywords": [],
20
- "author": "scylla",
21
- "license": "ISC",
22
- "bugs": {
23
- "url": "https://gitlab.com/abyss-group"
24
- },
25
- "homepage": "https://gitlab.com/abyss-group",
26
- "peerDependencies": {
27
- "@emotion/react": "^11.7.1",
28
- "@emotion/styled": "^11.6.0",
29
- "@mui/icons-material": "^6.0.0",
30
- "@mui/lab": "^6.0.1-beta.35",
31
- "@mui/material": "^7.1.1",
32
- "@mui/styles": "^6.4.12",
33
- "@mui/utils": "^7.1.1",
34
- "@mui/x-data-grid": "^8.5.3",
35
- "@mui/x-date-pickers": "^6.20.2",
36
- "@tanstack/react-query": "^5.0.0",
37
- "@dnd-kit/core": "^6.0.0",
38
- "@dnd-kit/sortable": "^9.0.0",
39
- "@dnd-kit/utilities": "^3.0.0",
40
- "react": "^17.0.0 || ^18.0.0",
41
- "react-dom": "^17.0.0 || ^18.0.0",
42
- "react-is": "^18.0.0 || ^19.0.0",
43
- "react-intl": "^6.2.5",
44
- "react-router-dom": "^6.15.0",
45
- "zustand": "^5.0.0",
46
- "@abyss-project/main": "1.0.117"
47
- },
48
- "dependencies": {
49
- "@abyss-project/banking": "^1.0.6",
50
- "@abyss-project/cloud": "^1.0.6",
51
- "@abyss-project/crypt": "^1.0.3",
52
- "@abyss-project/form": "^1.0.6",
53
- "@abyss-project/memories": "^1.0.6",
54
- "@abyss-project/monitor": "^1.0.68",
55
- "@abyss-project/spotlight": "^1.0.16",
56
- "@abyss-project/storage": "^1.0.9",
57
- "@capacitor/clipboard": "^7.0.1",
58
- "@capacitor/core": "^7.4.0",
59
- "@capacitor/share": "^7.0.1",
60
- "@milkdown/core": "^7.15.3",
61
- "@milkdown/crepe": "^7.15.3",
62
- "@milkdown/plugin-listener": "^7.15.3",
63
- "@milkdown/react": "^7.15.3",
64
- "@milkdown/utils": "^7.15.3",
65
- "@nivo/bar": "^0.88.0",
66
- "@nivo/core": "^0.88.0",
67
- "@nivo/line": "^0.88.0",
68
- "@nivo/pie": "^0.88.0",
69
- "@tanstack/react-table": "^8.21.3",
70
- "axios": "^1.6.0",
71
- "axios-retry": "^4.5.0",
72
- "byte-size": "^8.1.0",
73
- "date-fns": "^2.29.3",
74
- "eventsource": "^4.0.0",
75
- "flat": "^5.0.2",
76
- "formik": "^2.4.6",
77
- "lodash": "^4.17.21",
78
- "qrcode": "^1.5.3",
79
- "react-dropzone": "^14.3.8",
80
- "react-error-boundary": "^6.1.1",
81
- "react-router-dom": "^6.15.0",
82
- "react-toastify": "^8.0.2",
83
- "use-debounce": "^10.0.5",
84
- "uuid": "^9.0.0",
85
- "pdf-lib": "^1.17.1",
86
- "pdfjs-dist": "^4.10.38",
87
- "yup": "^0.32.11",
88
- "@abyss-project/main": "1.0.117"
89
- },
90
- "devDependencies": {
91
- "@types/byte-size": "^8.1.0",
92
- "@types/flat": "^5.0.5",
93
- "@types/lodash": "^4.14.177",
94
- "@types/node": "^20.11.0",
95
- "@types/qrcode": "^1.5.5",
96
- "@types/react": "^18.3.28",
97
- "@types/react-animate-on-scroll": "^2.1.8",
98
- "@types/react-dom": "^18.3.5",
99
- "@types/uuid": "^9.0.0",
100
- "@typescript-eslint/eslint-plugin": "6.21.0",
101
- "@typescript-eslint/parser": "7.3.1",
102
- "@vitejs/plugin-react": "^4.2.0",
103
- "eslint": "^7.28.0",
104
- "eslint-config-prettier": "^8.3.0",
105
- "eslint-config-standard": "^16.0.3",
106
- "eslint-plugin-filenames-simple": "^0.7.0",
107
- "eslint-plugin-import": "^2.23.4",
108
- "eslint-plugin-node": "^11.1.0",
109
- "eslint-plugin-prettier": "^3.4.0",
110
- "prettier": "^2.5.1",
111
- "tsc-watch": "^4.6.2",
112
- "typescript": "5.4.2",
113
- "vite": "^6.3.5",
114
- "@vitest/coverage-v8": "^2.0.0",
115
- "vite-plugin-dts": "^4.5.4",
116
- "vitest": "^2.0.0"
117
- },
118
- "scripts": {
119
- "lint": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --fix",
120
- "lint:check": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --max-warnings 0",
121
- "tsc": "tsc",
122
- "build": "vite build",
123
- "dev": "vite build --watch",
124
- "test": "vitest run --config vitest.config.ts",
125
- "test:watch": "vitest --config vitest.config.ts"
126
- }
127
- }
1
+ {
2
+ "name": "@abyss-project/commons-front-core",
3
+ "version": "1.0.142",
4
+ "description": "Front Core package of AbyssProject",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ },
13
+ "./cookie-consent": {
14
+ "import": "./dist/cookie-consent.js",
15
+ "types": "./dist/cookie-consent.d.ts"
16
+ }
17
+ },
18
+ "typesVersions": {
19
+ "*": {
20
+ "cookie-consent": [
21
+ "./dist/cookie-consent.d.ts"
22
+ ]
23
+ }
24
+ },
25
+ "publishConfig": {
26
+ "main": "dist/index.js",
27
+ "types": "dist/index.d.ts"
28
+ },
29
+ "type": "module",
30
+ "scripts": {
31
+ "lint": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --fix",
32
+ "lint:check": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --max-warnings 0",
33
+ "tsc": "tsc",
34
+ "build": "vite build",
35
+ "dev": "vite build --watch",
36
+ "test": "vitest run --config vitest.config.ts",
37
+ "test:watch": "vitest --config vitest.config.ts"
38
+ },
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://gitlab.com/abyss-group"
42
+ },
43
+ "keywords": [],
44
+ "author": "scylla",
45
+ "license": "ISC",
46
+ "bugs": {
47
+ "url": "https://gitlab.com/abyss-group"
48
+ },
49
+ "homepage": "https://gitlab.com/abyss-group",
50
+ "peerDependencies": {
51
+ "@abyss-project/main": "workspace:*",
52
+ "@emotion/react": "^11.7.1",
53
+ "@emotion/styled": "^11.6.0",
54
+ "@mui/icons-material": "^6.0.0",
55
+ "@mui/lab": "^6.0.1-beta.35",
56
+ "@mui/material": "^7.1.1",
57
+ "@mui/styles": "^6.4.12",
58
+ "@mui/utils": "^7.1.1",
59
+ "@mui/x-data-grid": "^8.5.3",
60
+ "@mui/x-date-pickers": "^6.20.2",
61
+ "@tanstack/react-query": "^5.0.0",
62
+ "@dnd-kit/core": "^6.0.0",
63
+ "@dnd-kit/sortable": "^9.0.0",
64
+ "@dnd-kit/utilities": "^3.0.0",
65
+ "react": "^17.0.0 || ^18.0.0",
66
+ "react-dom": "^17.0.0 || ^18.0.0",
67
+ "react-is": "^18.0.0 || ^19.0.0",
68
+ "react-intl": "^6.2.5",
69
+ "react-router-dom": "^6.15.0",
70
+ "zustand": "^5.0.0"
71
+ },
72
+ "dependencies": {
73
+ "@abyss-project/banking": "^1.0.12",
74
+ "@abyss-project/cloud": "^1.0.11",
75
+ "@abyss-project/crypt": "^1.0.8",
76
+ "@abyss-project/form": "^1.0.12",
77
+ "@abyss-project/main": "workspace:*",
78
+ "@abyss-project/memories": "^1.0.11",
79
+ "@abyss-project/monitor": "^1.0.71",
80
+ "@abyss-project/spotlight": "^1.0.23",
81
+ "@abyss-project/storage": "^1.0.29",
82
+ "@capacitor/clipboard": "^7.0.1",
83
+ "@capacitor/core": "^7.4.0",
84
+ "@capacitor/share": "^7.0.1",
85
+ "@milkdown/core": "^7.15.3",
86
+ "@milkdown/crepe": "^7.15.3",
87
+ "@milkdown/plugin-listener": "^7.15.3",
88
+ "@milkdown/react": "^7.15.3",
89
+ "@milkdown/utils": "^7.15.3",
90
+ "@nivo/bar": "^0.88.0",
91
+ "@nivo/core": "^0.88.0",
92
+ "@nivo/line": "^0.88.0",
93
+ "@nivo/pie": "^0.88.0",
94
+ "@tanstack/react-table": "^8.21.3",
95
+ "axios": "^1.6.0",
96
+ "axios-retry": "^4.5.0",
97
+ "byte-size": "^8.1.0",
98
+ "date-fns": "^2.29.3",
99
+ "eventsource": "^4.0.0",
100
+ "flat": "^5.0.2",
101
+ "formik": "^2.4.6",
102
+ "lodash": "^4.17.21",
103
+ "qrcode": "^1.5.3",
104
+ "react-dropzone": "^14.3.8",
105
+ "react-error-boundary": "^6.1.1",
106
+ "react-router-dom": "^6.15.0",
107
+ "react-toastify": "^8.0.2",
108
+ "use-debounce": "^10.0.5",
109
+ "uuid": "^9.0.0",
110
+ "pdf-lib": "^1.17.1",
111
+ "pdfjs-dist": "^4.10.38",
112
+ "yup": "^0.32.11"
113
+ },
114
+ "devDependencies": {
115
+ "@types/byte-size": "^8.1.0",
116
+ "@types/flat": "^5.0.5",
117
+ "@types/lodash": "^4.14.177",
118
+ "@types/node": "^20.11.0",
119
+ "@types/qrcode": "^1.5.5",
120
+ "@types/react": "^18.3.28",
121
+ "@types/react-animate-on-scroll": "^2.1.8",
122
+ "@types/react-dom": "^18.3.5",
123
+ "@types/uuid": "^9.0.0",
124
+ "@typescript-eslint/eslint-plugin": "6.21.0",
125
+ "@typescript-eslint/parser": "7.3.1",
126
+ "@vitejs/plugin-react": "^4.2.0",
127
+ "eslint": "^7.28.0",
128
+ "eslint-config-prettier": "^8.3.0",
129
+ "eslint-config-standard": "^16.0.3",
130
+ "eslint-plugin-filenames-simple": "^0.7.0",
131
+ "eslint-plugin-import": "^2.23.4",
132
+ "eslint-plugin-node": "^11.1.0",
133
+ "eslint-plugin-prettier": "^3.4.0",
134
+ "prettier": "^2.5.1",
135
+ "tsc-watch": "^4.6.2",
136
+ "typescript": "5.4.2",
137
+ "vite": "^6.3.5",
138
+ "@vitest/coverage-v8": "^2.0.0",
139
+ "vite-plugin-dts": "^4.5.4",
140
+ "vitest": "^2.0.0"
141
+ }
142
+ }
package/vite.config.ts CHANGED
@@ -32,10 +32,17 @@ export default defineConfig({
32
32
  },
33
33
  build: {
34
34
  lib: {
35
- entry: resolve(__dirname, 'src/index.ts'),
36
- name: 'UIComponents',
35
+ // Multiple entries: the full barrel (`index`) plus a browser-safe,
36
+ // tree-shaken `cookie-consent` entry. The latter lets webpack consumers
37
+ // (e.g. the Next.js landing) pull ONLY the cookie-consent UI without
38
+ // dragging in react-toastify (React-17 `render`), pdf.js, or the server
39
+ // monitor SDK that the full barrel transitively includes.
40
+ entry: {
41
+ index: resolve(__dirname, 'src/index.ts'),
42
+ 'cookie-consent': resolve(__dirname, 'src/components/CookieConsent/index.ts'),
43
+ },
37
44
  formats: ['es'],
38
- fileName: 'index',
45
+ fileName: (_format, entryName) => `${entryName}.js`,
39
46
  },
40
47
  rollupOptions: {
41
48
  // Externalize peer dependencies. Match exact name OR sub-path imports
File without changes