upconta.frontend-utils 2.5.8 → 3.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upconta.frontend-utils",
3
- "version": "2.5.8",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": ".dist/cjs/index.js",
6
6
  "module": ".dist/esm/index.js",
@@ -9,61 +9,64 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "devDependencies": {
12
- "@ant-design/cssinjs": "^1.24.0",
12
+ "@ant-design/cssinjs": "^2.0.1",
13
13
  "@ant-design/icons": "^6.1.0",
14
- "@eslint/js": "^9.37.0",
14
+ "@next/eslint-plugin-next": "^16.0.6",
15
15
  "@rollup/plugin-commonjs": "^26.0.3",
16
+ "@rollup/plugin-json": "^6.1.0",
16
17
  "@rollup/plugin-node-resolve": "^15.3.1",
17
18
  "@rollup/plugin-terser": "^0.4.4",
18
19
  "@rollup/plugin-typescript": "^11.1.6",
19
- "@tailwindcss/postcss": "^4.1.14",
20
+ "@tailwindcss/postcss": "^4.1.17",
20
21
  "@testing-library/dom": "^10.4.1",
21
22
  "@testing-library/jest-dom": "^6.9.1",
22
23
  "@testing-library/react": "^16.3.0",
23
24
  "@types/jest": "^30.0.0",
24
- "@types/node": "24.7.0",
25
- "@types/react": "^18.3.23",
26
- "antd": "^5.27.4",
27
- "dayjs": "^1.11.18",
28
- "eslint": "^9.37.0",
29
- "eslint-plugin-react": "^7.37.5",
30
- "globals": "^16.4.0",
25
+ "@types/node": "24.10.1",
26
+ "@types/react": "^19.2.7",
27
+ "antd": "^6.0.1",
28
+ "axios": "^1.13.2",
29
+ "cookies-next": "^6.1.1",
30
+ "dayjs": "^1.11.19",
31
+ "eslint": "^9.39.1",
32
+ "eslint-config-next": "^16.0.6",
33
+ "globals": "^16.5.0",
31
34
  "jest": "^30.2.0",
32
35
  "jest-environment-jsdom": "^30.2.0",
33
- "next": "^15.5.4",
36
+ "next": "^16.0.6",
34
37
  "postcss": "^8.5.6",
35
- "rc-field-form": "^2.7.0",
36
- "react": "^18.3.1",
37
- "rollup": "^4.52.4",
38
+ "rc-field-form": "^2.7.1",
39
+ "react": "^19.2.0",
40
+ "react-dom": "^19.2.0",
41
+ "rollup": "^4.53.3",
38
42
  "rollup-plugin-copy": "^3.5.0",
39
43
  "rollup-plugin-peer-deps-external": "^2.2.4",
40
44
  "rollup-plugin-postcss": "^4.0.2",
41
- "swr": "^2.3.6",
42
- "tailwindcss": "^4.1.14",
43
- "ts-jest": "^29.4.4",
44
- "ts-node": "^10.9.2",
45
+ "swr": "^2.3.7",
46
+ "tailwindcss": "^4.1.17",
47
+ "ts-jest": "^29.4.6",
45
48
  "tslib": "^2.8.1",
46
49
  "typescript": "^5.9.3",
47
- "typescript-eslint": "^8.45.0",
48
50
  "use-debounce": "^10.0.6"
49
51
  },
50
52
  "peerDependencies": {
51
- "@ant-design/cssinjs": "^1",
52
- "@ant-design/icons": "^6",
53
- "antd": "^5",
53
+ "@ant-design/cssinjs": "^1 || ^2",
54
+ "@ant-design/icons": "^5 || ^6",
55
+ "antd": "^5 || ^6",
56
+ "axios": "^1",
57
+ "cookies-next": "^6",
54
58
  "dayjs": "^1",
55
- "next": "^15",
59
+ "next": "^14 || ^15 || ^16",
60
+ "rc-field-form": "^2",
61
+ "react": "^18 || ^19",
62
+ "react-dom": "^18 || ^19",
56
63
  "swr": "^2",
57
- "use-debounce": "^10.0.4"
58
- },
59
- "dependencies": {
60
- "axios": "^1.12.2",
61
- "cookies-next": "^6.1.0"
64
+ "use-debounce": "^10"
62
65
  },
63
66
  "scripts": {
64
- "dev": "next dev -p 3030 --turbo",
67
+ "dev": "next dev -p 3030",
65
68
  "start": "next start",
66
- "lint": "next lint",
69
+ "lint": "eslint",
67
70
  "build": "rollup -c --bundleConfigAsCjs",
68
71
  "test": "jest"
69
72
  }
@@ -1,3 +1,4 @@
1
1
  onlyBuiltDependencies:
2
2
  - '@tailwindcss/oxide'
3
3
  - sharp
4
+ - unrs-resolver
package/jest.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { JestConfigWithTsJest } from 'ts-jest'
2
-
3
- const jestConfig: JestConfigWithTsJest = {
4
- preset: 'ts-jest',
5
- testEnvironment: 'jest-environment-jsdom',
6
- moduleNameMapper: { '^@/(.*)$': '<rootDir>/src/$1' },
7
- setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
8
- transform: { '^.+\\.tsx?$': ['ts-jest', { tsconfig: { jsx: 'react-jsx' } }] },
9
- }
10
-
11
- export default jestConfig
package/jest.setup.js DELETED
@@ -1,19 +0,0 @@
1
- require('@testing-library/jest-dom')
2
-
3
- Object.defineProperty(window, 'matchMedia', {
4
- writable: true,
5
- value: jest.fn().mockImplementation((query) => ({
6
- matches: false,
7
- media: query,
8
- onchange: null,
9
- addListener: jest.fn(),
10
- removeListener: jest.fn(),
11
- addEventListener: jest.fn(),
12
- removeEventListener: jest.fn(),
13
- dispatchEvent: jest.fn(),
14
- })),
15
- })
16
-
17
- Object.defineProperty(window, 'getComputedStyle', {
18
- value: () => ({ getPropertyValue: () => '' }),
19
- })