isp-ui-kit 0.24.3 → 1.1.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.
@@ -0,0 +1,6 @@
1
+ export type TextDictionary = Record<string, string>;
2
+ export type TextParams = Record<string, string>;
3
+ export declare const getText: <T extends TextDictionary, K extends keyof T & string>(texts: T | undefined, key: K, fallback?: string, params?: TextParams) => string;
4
+ export declare const verifyTextKey: <T extends TextDictionary, K extends keyof T & string>(texts: T | undefined, key: K) => boolean;
5
+ export declare const createTextGetter: <T extends TextDictionary>(texts: T | undefined) => <K extends keyof T & string>(key: K, fallback?: string, params?: TextParams) => string;
6
+ export declare const createTextVerifier: <T extends TextDictionary>(texts: T | undefined) => <K extends keyof T & string>(key: K) => boolean;
package/package.json CHANGED
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "name": "isp-ui-kit",
3
- "version": "0.24.3",
3
+ "version": "1.1.0",
4
4
  "description": "react ui lib for project",
5
- "main": "dist/index.js",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
6
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.esm.js",
12
+ "require": "./dist/index.cjs.js"
13
+ }
14
+ },
15
+ "sideEffects": [
16
+ "*.css",
17
+ "*.scss"
18
+ ],
7
19
  "license": "MIT",
8
20
  "repository": {
9
21
  "url": "https://github.com/txix-open/isp-ui-kit"
@@ -13,76 +25,65 @@
13
25
  "dist"
14
26
  ],
15
27
  "dependencies": {
16
- "dayjs": "^1.11.13",
28
+ "dayjs": "^1.11.19",
29
+ "events": "^3.3.0",
17
30
  "react-base16-styling": "~0.10.0",
18
31
  "react-lifecycles-compat": "~3.0.4",
19
32
  "react-resizable": "^3.0.5",
20
- "react-textarea-autosize": "~8.5.7",
21
- "simplebar-react": "^3.3.0"
33
+ "react-textarea-autosize": "~8.5.9",
34
+ "simplebar-react": "^3.3.2"
22
35
  },
23
36
  "devDependencies": {
24
- "@babel/core": "^7.26.0",
25
- "@babel/eslint-parser": "^7.26.5",
26
- "@babel/preset-env": "^7.26.0",
27
- "@babel/preset-react": "^7.26.3",
28
- "@eslint/js": "^9.20.0",
29
- "@monaco-editor/react": "^4.6.0",
30
- "@rollup/plugin-babel": "^6.0.4",
31
- "@rollup/plugin-commonjs": "^28.0.2",
37
+ "@babel/core": "^7.28.5",
38
+ "@babel/eslint-parser": "^7.28.5",
39
+ "@babel/preset-env": "^7.28.5",
40
+ "@babel/preset-react": "^7.28.5",
41
+ "@babel/preset-typescript": "^7.28.5",
42
+ "@eslint/js": "^9.39.1",
43
+ "@monaco-editor/react": "^4.7.0",
44
+ "@rollup/plugin-babel": "^6.1.0",
45
+ "@rollup/plugin-commonjs": "^29.0.0",
32
46
  "@rollup/plugin-image": "^3.0.3",
33
- "@rollup/plugin-node-resolve": "^16.0.0",
47
+ "@rollup/plugin-node-resolve": "^16.0.3",
34
48
  "@rollup/plugin-terser": "^0.4.4",
35
- "@rollup/plugin-typescript": "^12.1.2",
36
- "@storybook/addon-actions": "^7.6.4",
37
- "@storybook/addon-essentials": "^7.6.4",
38
- "@storybook/addon-interactions": "^7.6.4",
39
- "@storybook/addon-links": "^7.6.4",
40
- "@storybook/addon-mdx-gfm": "^7.6.4",
41
- "@storybook/addon-onboarding": "^1.0.10",
42
- "@storybook/blocks": "^7.6.4",
43
- "@storybook/react": "^7.6.4",
44
- "@storybook/react-webpack5": "^7.6.4",
45
- "@storybook/test": "^7.6.4",
49
+ "@rollup/plugin-typescript": "^12.3.0",
50
+ "@storybook/addon-docs": "^10.1.4",
51
+ "@storybook/react-vite": "^10.1.4",
46
52
  "@types/react": "^18.3.18",
47
53
  "@types/react-resizable": "^3.0.8",
48
- "@typescript-eslint/eslint-plugin": "^8.20.0",
49
- "@typescript-eslint/parser": "^8.20.0",
54
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
55
+ "@typescript-eslint/parser": "^8.48.1",
50
56
  "antd": "^5.23.1",
51
- "autoprefixer": "^10.4.20",
52
- "eslint": "^9.20.1",
53
- "eslint-config-prettier": "^10.0.1",
54
- "eslint-plugin-import": "^2.31.0",
57
+ "eslint": "^9.39.1",
58
+ "eslint-config-prettier": "^10.1.8",
59
+ "eslint-plugin-import": "^2.32.0",
55
60
  "eslint-plugin-jsx-a11y": "^6.10.2",
56
- "eslint-plugin-prettier": "^5.2.2",
57
- "eslint-plugin-react": "^7.37.4",
61
+ "eslint-plugin-prettier": "^5.5.4",
62
+ "eslint-plugin-react": "^7.37.5",
58
63
  "eslint-plugin-storybook": "^0.11.2",
59
- "globals": "^15.15.0",
64
+ "globals": "^16.5.0",
60
65
  "husky": "^9.1.7",
61
- "lint-staged": "^15.4.1",
62
- "monaco-editor": "^0.52.2",
63
- "prettier": "^3.4.2",
66
+ "lint-staged": "^16.2.7",
67
+ "prettier": "^3.7.3",
64
68
  "react": "^18.3.1",
65
69
  "react-dom": "^18.3.1",
66
- "react-hook-form": "^7.54.2",
67
- "react-test-renderer": "^18.3.1",
68
- "rollup": "^4.30.1",
69
- "rollup-plugin-delete": "^2.1.0",
70
+ "react-hook-form": "^7.67.0",
71
+ "rollup": "^4.53.3",
72
+ "rollup-plugin-delete": "^3.0.1",
70
73
  "rollup-plugin-peer-deps-external": "^2.2.4",
71
- "rollup-plugin-polyfill-node": "^0.13.0",
72
74
  "rollup-plugin-postcss": "^4.0.2",
73
- "sass": "^1.83.4",
74
- "storybook": "^7.6.4",
75
- "storybook-addon-sass-postcss": "^0.3.2",
76
- "typescript": "^5.7.3",
77
- "typescript-eslint": "^8.24.0"
75
+ "sass": "^1.94.2",
76
+ "storybook": "^10.1.4",
77
+ "typescript": "^5.9.3",
78
+ "typescript-eslint": "^8.48.1"
78
79
  },
79
80
  "peerDependencies": {
80
- "@monaco-editor/react": "^4.6.0",
81
+ "@monaco-editor/react": "^4.7.0",
81
82
  "antd": ">=5.12",
82
- "monaco-editor": "^0.52.0",
83
+ "monaco-editor": "^0.55.1",
83
84
  "react": ">=18",
84
85
  "react-dom": ">=18",
85
- "react-hook-form": "^7.54.0"
86
+ "react-hook-form": "^7.67.0"
86
87
  },
87
88
  "optionalDependencies": {
88
89
  "@rollup/rollup-linux-x64-gnu": "^4.9.5"