@j2inn/fin5-ui-utils 1.0.2 → 1.0.3
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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# What is fin5-ui-utils? #
|
|
2
|
-
A set of useful client-side utilities useful for creating UI applications on top of the FIN 5 framework.
|
|
3
|
-
|
|
4
|
-
### How do I get set up? ###
|
|
5
|
-
To install this package run `npm i @j2inn/fin5-ui-utils`
|
|
1
|
+
# What is fin5-ui-utils? #
|
|
2
|
+
A set of useful client-side utilities useful for creating UI applications on top of the FIN 5 framework.
|
|
3
|
+
|
|
4
|
+
### How do I get set up? ###
|
|
5
|
+
To install this package run `npm i @j2inn/fin5-ui-utils`
|
|
@@ -11,7 +11,7 @@ interface Page<T = Record<string, unknown>> {
|
|
|
11
11
|
key: string;
|
|
12
12
|
component?: React.LazyExoticComponent<React.FC<T>>;
|
|
13
13
|
props?: PropsWithChildren<T>;
|
|
14
|
-
children?:
|
|
14
|
+
children?: MenuPage<T>[];
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Set it to false to avoid showing the page in the menu. It is just used for routing purposes.
|
|
@@ -11,7 +11,7 @@ interface Page<T = Record<string, unknown>> {
|
|
|
11
11
|
key: string;
|
|
12
12
|
component?: React.LazyExoticComponent<React.FC<T>>;
|
|
13
13
|
props?: PropsWithChildren<T>;
|
|
14
|
-
children?:
|
|
14
|
+
children?: MenuPage<T>[];
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Set it to false to avoid showing the page in the menu. It is just used for routing purposes.
|
package/package.json
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@j2inn/fin5-ui-utils",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A set of useful client-side utilities useful for creating UI applications on top of FIN 5",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"module": "dist_es/index.js",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"clean": "rimraf ./dist",
|
|
10
|
-
"doc": "typedoc ./src --excludePrivate",
|
|
11
|
-
"prebuild": "npm run clean npm run lint && npm run test",
|
|
12
|
-
"build": "tsc && npm run-script build:es",
|
|
13
|
-
"build:es": "tsc --module ESNext --outDir dist_es",
|
|
14
|
-
"checktypes": "tsc --noEmit",
|
|
15
|
-
"format": "prettier-eslint --list-different --write \"$(pwd)/src/**/*.{ts,tsx,js,jsx}\"",
|
|
16
|
-
"lint": "eslint --fix --ext ts,tsx,js,jsx src/",
|
|
17
|
-
"lint-staged": "lint-staged",
|
|
18
|
-
"test": "cross-env NODE_ENV=test && npm run test:jest",
|
|
19
|
-
"test:jest": "jest",
|
|
20
|
-
"prepack": "npm run lint && npm run test && npm run build"
|
|
21
|
-
},
|
|
22
|
-
"author": "",
|
|
23
|
-
"license": "ISC",
|
|
24
|
-
"files": [
|
|
25
|
-
"dist/**/*",
|
|
26
|
-
"dist_es/**/*"
|
|
27
|
-
],
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@j2inn/react-config": "^5.0.0-beta.1",
|
|
30
|
-
"classnames": "^2.3.1",
|
|
31
|
-
"js-yaml": "^4.1.0"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"@j2inn/app": "^2.0.0",
|
|
35
|
-
"@j2inn/ui": "^6.0.0",
|
|
36
|
-
"@j2inn/utils": "^6.0.0",
|
|
37
|
-
"haystack-core": "^2.0.38",
|
|
38
|
-
"haystack-nclient": "^3.0.28",
|
|
39
|
-
"haystack-react": "^3.0.11",
|
|
40
|
-
"haystack-units": "^1.0.20",
|
|
41
|
-
"react": "^18.2.0",
|
|
42
|
-
"react-dom": "^18.2.0",
|
|
43
|
-
"react-jss": "^10.9.2"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@babel/cli": "^7.18.10",
|
|
47
|
-
"@babel/core": "^7.19.1",
|
|
48
|
-
"@babel/eslint-parser": "^7.19.1",
|
|
49
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
50
|
-
"@babel/plugin-proposal-decorators": "^7.19.1",
|
|
51
|
-
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
52
|
-
"@babel/plugin-proposal-function-bind": "^7.18.9",
|
|
53
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
54
|
-
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
55
|
-
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
56
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
57
|
-
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
|
|
58
|
-
"@babel/plugin-transform-react-inline-elements": "^7.18.6",
|
|
59
|
-
"@babel/plugin-transform-runtime": "^7.19.1",
|
|
60
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
61
|
-
"@babel/runtime": "^7.19.0",
|
|
62
|
-
"@j2inn/app": "^2.0.0",
|
|
63
|
-
"@j2inn/ui": "^6.0.0",
|
|
64
|
-
"@j2inn/utils": "^6.0.0",
|
|
65
|
-
"@types/jest": "^29.0.3",
|
|
66
|
-
"@types/js-yaml": "^4.0.5",
|
|
67
|
-
"@types/node": "^18.7.18",
|
|
68
|
-
"@types/react": "^18.0.20",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
70
|
-
"@typescript-eslint/parser": "^5.37.0",
|
|
71
|
-
"babel-eslint": "^10.1.0",
|
|
72
|
-
"babel-loader": "^8.2.2",
|
|
73
|
-
"babel-plugin-react-html-attrs": "^3.0.5",
|
|
74
|
-
"babel-preset-react-app": "^10.0.1",
|
|
75
|
-
"bundle-loader": "^0.5.6",
|
|
76
|
-
"cpy": "^9.0.1",
|
|
77
|
-
"cpy-cli": "^4.2.0",
|
|
78
|
-
"cross-env": "^7.0.3",
|
|
79
|
-
"css-loader": "^6.7.1",
|
|
80
|
-
"css-modules-typescript-loader": "^4.0.1",
|
|
81
|
-
"cypress": "^10.8.0",
|
|
82
|
-
"eslint": "^8.23.1",
|
|
83
|
-
"eslint-config-prettier": "^8.3.0",
|
|
84
|
-
"eslint-plugin-jest": "^27.0.4",
|
|
85
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
86
|
-
"eslint-plugin-react": "^7.31.8",
|
|
87
|
-
"extract-css-chunks-webpack-plugin": "^4.9.0",
|
|
88
|
-
"haystack-core": "^2.0.38",
|
|
89
|
-
"haystack-nclient": "^3.0.28",
|
|
90
|
-
"haystack-react": "^3.0.11",
|
|
91
|
-
"haystack-units": "^1.0.20",
|
|
92
|
-
"husky": "^8.0.1",
|
|
93
|
-
"jest": "^29.0.3",
|
|
94
|
-
"jest-chain": "^1.1.5",
|
|
95
|
-
"jest-css-modules": "^2.1.0",
|
|
96
|
-
"jest-css-modules-transform": "^4.2.1",
|
|
97
|
-
"jest-extended": "^3.1.0",
|
|
98
|
-
"less": "^4.1.2",
|
|
99
|
-
"less-loader": "^11.0.0",
|
|
100
|
-
"lint-staged": "^13.0.3",
|
|
101
|
-
"lodash-webpack-plugin": "^0.11.6",
|
|
102
|
-
"mini-css-extract-plugin": "^2.6.0",
|
|
103
|
-
"moment-locales-webpack-plugin": "^1.2.0",
|
|
104
|
-
"monaco-editor-webpack-plugin": "^7.0.1",
|
|
105
|
-
"nib": "^1.1.2",
|
|
106
|
-
"prettier": "^2.6.1",
|
|
107
|
-
"prettier-eslint": "^15.0.1",
|
|
108
|
-
"prettier-eslint-cli": "^7.1.0",
|
|
109
|
-
"react": "^18.2.0",
|
|
110
|
-
"react-dom": "^18.2.0",
|
|
111
|
-
"react-jss": "^10.9.2",
|
|
112
|
-
"rimraf": "^3.0.2",
|
|
113
|
-
"stylus-loader": "^7.0.0",
|
|
114
|
-
"ts-jest": "^29.0.1",
|
|
115
|
-
"typedoc": "^0.23.15",
|
|
116
|
-
"typescript": "^4.8.3"
|
|
117
|
-
},
|
|
118
|
-
"lint-staged": {
|
|
119
|
-
"**/*.[jt]s?(x)": [
|
|
120
|
-
"prettier-eslint --write",
|
|
121
|
-
"eslint --fix"
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@j2inn/fin5-ui-utils",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "A set of useful client-side utilities useful for creating UI applications on top of FIN 5",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"module": "dist_es/index.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"clean": "rimraf ./dist",
|
|
10
|
+
"doc": "typedoc ./src --excludePrivate",
|
|
11
|
+
"prebuild": "npm run clean npm run lint && npm run test",
|
|
12
|
+
"build": "tsc && npm run-script build:es",
|
|
13
|
+
"build:es": "tsc --module ESNext --outDir dist_es",
|
|
14
|
+
"checktypes": "tsc --noEmit",
|
|
15
|
+
"format": "prettier-eslint --list-different --write \"$(pwd)/src/**/*.{ts,tsx,js,jsx}\"",
|
|
16
|
+
"lint": "eslint --fix --ext ts,tsx,js,jsx src/",
|
|
17
|
+
"lint-staged": "lint-staged",
|
|
18
|
+
"test": "cross-env NODE_ENV=test && npm run test:jest",
|
|
19
|
+
"test:jest": "jest",
|
|
20
|
+
"prepack": "npm run lint && npm run test && npm run build"
|
|
21
|
+
},
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist/**/*",
|
|
26
|
+
"dist_es/**/*"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@j2inn/react-config": "^5.0.0-beta.1",
|
|
30
|
+
"classnames": "^2.3.1",
|
|
31
|
+
"js-yaml": "^4.1.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@j2inn/app": "^2.0.0",
|
|
35
|
+
"@j2inn/ui": "^6.0.0",
|
|
36
|
+
"@j2inn/utils": "^6.0.0",
|
|
37
|
+
"haystack-core": "^2.0.38",
|
|
38
|
+
"haystack-nclient": "^3.0.28",
|
|
39
|
+
"haystack-react": "^3.0.11",
|
|
40
|
+
"haystack-units": "^1.0.20",
|
|
41
|
+
"react": "^18.2.0",
|
|
42
|
+
"react-dom": "^18.2.0",
|
|
43
|
+
"react-jss": "^10.9.2"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@babel/cli": "^7.18.10",
|
|
47
|
+
"@babel/core": "^7.19.1",
|
|
48
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
49
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
50
|
+
"@babel/plugin-proposal-decorators": "^7.19.1",
|
|
51
|
+
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
52
|
+
"@babel/plugin-proposal-function-bind": "^7.18.9",
|
|
53
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
54
|
+
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
55
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
56
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
57
|
+
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
|
|
58
|
+
"@babel/plugin-transform-react-inline-elements": "^7.18.6",
|
|
59
|
+
"@babel/plugin-transform-runtime": "^7.19.1",
|
|
60
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
61
|
+
"@babel/runtime": "^7.19.0",
|
|
62
|
+
"@j2inn/app": "^2.0.0",
|
|
63
|
+
"@j2inn/ui": "^6.0.0",
|
|
64
|
+
"@j2inn/utils": "^6.0.0",
|
|
65
|
+
"@types/jest": "^29.0.3",
|
|
66
|
+
"@types/js-yaml": "^4.0.5",
|
|
67
|
+
"@types/node": "^18.7.18",
|
|
68
|
+
"@types/react": "^18.0.20",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
70
|
+
"@typescript-eslint/parser": "^5.37.0",
|
|
71
|
+
"babel-eslint": "^10.1.0",
|
|
72
|
+
"babel-loader": "^8.2.2",
|
|
73
|
+
"babel-plugin-react-html-attrs": "^3.0.5",
|
|
74
|
+
"babel-preset-react-app": "^10.0.1",
|
|
75
|
+
"bundle-loader": "^0.5.6",
|
|
76
|
+
"cpy": "^9.0.1",
|
|
77
|
+
"cpy-cli": "^4.2.0",
|
|
78
|
+
"cross-env": "^7.0.3",
|
|
79
|
+
"css-loader": "^6.7.1",
|
|
80
|
+
"css-modules-typescript-loader": "^4.0.1",
|
|
81
|
+
"cypress": "^10.8.0",
|
|
82
|
+
"eslint": "^8.23.1",
|
|
83
|
+
"eslint-config-prettier": "^8.3.0",
|
|
84
|
+
"eslint-plugin-jest": "^27.0.4",
|
|
85
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
86
|
+
"eslint-plugin-react": "^7.31.8",
|
|
87
|
+
"extract-css-chunks-webpack-plugin": "^4.9.0",
|
|
88
|
+
"haystack-core": "^2.0.38",
|
|
89
|
+
"haystack-nclient": "^3.0.28",
|
|
90
|
+
"haystack-react": "^3.0.11",
|
|
91
|
+
"haystack-units": "^1.0.20",
|
|
92
|
+
"husky": "^8.0.1",
|
|
93
|
+
"jest": "^29.0.3",
|
|
94
|
+
"jest-chain": "^1.1.5",
|
|
95
|
+
"jest-css-modules": "^2.1.0",
|
|
96
|
+
"jest-css-modules-transform": "^4.2.1",
|
|
97
|
+
"jest-extended": "^3.1.0",
|
|
98
|
+
"less": "^4.1.2",
|
|
99
|
+
"less-loader": "^11.0.0",
|
|
100
|
+
"lint-staged": "^13.0.3",
|
|
101
|
+
"lodash-webpack-plugin": "^0.11.6",
|
|
102
|
+
"mini-css-extract-plugin": "^2.6.0",
|
|
103
|
+
"moment-locales-webpack-plugin": "^1.2.0",
|
|
104
|
+
"monaco-editor-webpack-plugin": "^7.0.1",
|
|
105
|
+
"nib": "^1.1.2",
|
|
106
|
+
"prettier": "^2.6.1",
|
|
107
|
+
"prettier-eslint": "^15.0.1",
|
|
108
|
+
"prettier-eslint-cli": "^7.1.0",
|
|
109
|
+
"react": "^18.2.0",
|
|
110
|
+
"react-dom": "^18.2.0",
|
|
111
|
+
"react-jss": "^10.9.2",
|
|
112
|
+
"rimraf": "^3.0.2",
|
|
113
|
+
"stylus-loader": "^7.0.0",
|
|
114
|
+
"ts-jest": "^29.0.1",
|
|
115
|
+
"typedoc": "^0.23.15",
|
|
116
|
+
"typescript": "^4.8.3"
|
|
117
|
+
},
|
|
118
|
+
"lint-staged": {
|
|
119
|
+
"**/*.[jt]s?(x)": [
|
|
120
|
+
"prettier-eslint --write",
|
|
121
|
+
"eslint --fix"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|