@j2inn/fin5-ui-utils 1.0.2 → 1.0.4
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/dist/react/components/graphics/GraphicsTabViewer.d.ts +6 -0
- package/dist/react/components/graphics/GraphicsTabViewer.jsx +2 -2
- package/dist/react/components/graphics/GraphicsTabViewer.jsx.map +1 -1
- package/dist/react/components/navigation/MenuPage.d.ts +1 -1
- package/dist_es/react/components/graphics/GraphicsTabViewer.d.ts +6 -0
- package/dist_es/react/components/graphics/GraphicsTabViewer.jsx +2 -2
- package/dist_es/react/components/graphics/GraphicsTabViewer.jsx.map +1 -1
- package/dist_es/react/components/navigation/MenuPage.d.ts +1 -1
- package/package.json +124 -124
|
@@ -4,6 +4,12 @@ interface GraphicsTabViewer {
|
|
|
4
4
|
projectName?: string;
|
|
5
5
|
targetRef: HRef;
|
|
6
6
|
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Set it to true if you want to query also for related graphics (graphics applicable to objects linked by refs),
|
|
9
|
+
* false to just get the graphics on this target.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
queryRelated?: boolean;
|
|
7
13
|
}
|
|
8
14
|
export declare const GraphicsTabViewer: React.FC<GraphicsTabViewer>;
|
|
9
15
|
export {};
|
|
@@ -52,7 +52,7 @@ const useStyles = (0, react_jss_1.createUseStyles)({
|
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
});
|
|
55
|
-
const GraphicsTabViewer = ({ projectName = fin5Top_1.fin5Top?.finstack?.projectName, targetRef, className, }) => {
|
|
55
|
+
const GraphicsTabViewer = ({ projectName = fin5Top_1.fin5Top?.finstack?.projectName, targetRef, className, queryRelated = false, }) => {
|
|
56
56
|
const client = (0, haystack_react_1.useClient)();
|
|
57
57
|
const classes = useStyles();
|
|
58
58
|
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
@@ -60,7 +60,7 @@ const GraphicsTabViewer = ({ projectName = fin5Top_1.fin5Top?.finstack?.projectN
|
|
|
60
60
|
(0, react_1.useEffect)(() => {
|
|
61
61
|
if (targetRef) {
|
|
62
62
|
client.ext
|
|
63
|
-
.eval(`readById(${targetRef.toAxon()}).finGraphicOn(
|
|
63
|
+
.eval(`readById(${targetRef.toAxon()}).finGraphicOn(${queryRelated})`)
|
|
64
64
|
.then((grid) => {
|
|
65
65
|
setGraphicsList(grid.getRows());
|
|
66
66
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphicsTabViewer.jsx","sourceRoot":"","sources":["../../../../src/react/components/graphics/GraphicsTabViewer.tsx"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,kCAA4C;AAC5C,4DAA2B;AAE3B,mDAA0C;AAC1C,+CAA2D;AAC3D,yCAA2C;AAC3C,sDAAkD;AAClD,sDAAkD;AAClD,mDAA+C;AAE/C,MAAM,SAAS,GAAG,IAAA,2BAAe,EAAC;IACjC,IAAI,EAAE;QACL,MAAM,EAAE,MAAM;QACd,CAAC,MAAM,eAAU,sBAAsB,CAAC,EAAE;YACzC,MAAM,EAAE,MAAM;YACd,CAAC,MAAM,eAAU,eAAe,CAAC,EAAE;gBAClC,MAAM,EAAE,MAAM;gBACd,CAAC,MAAM,eAAU,eAAe,CAAC,EAAE;oBAClC,MAAM,EAAE,MAAM;iBACd;aACD;SACD;KACD;CACD,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"GraphicsTabViewer.jsx","sourceRoot":"","sources":["../../../../src/react/components/graphics/GraphicsTabViewer.tsx"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,kCAA4C;AAC5C,4DAA2B;AAE3B,mDAA0C;AAC1C,+CAA2D;AAC3D,yCAA2C;AAC3C,sDAAkD;AAClD,sDAAkD;AAClD,mDAA+C;AAE/C,MAAM,SAAS,GAAG,IAAA,2BAAe,EAAC;IACjC,IAAI,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KAAK,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;aACtD,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YAChB,OAAO;gBACN,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE;gBACtB,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE;gBACxB,QAAQ,EAAE,CACT,CAAC,6BAAa,CACb,WAAW,CAAC,CAAC,WAAW,IAAI,EAAE,CAAC,CAC/B,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EACrB,CACF;aACD,CAAA;QACF,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;IAElB,OAAO,OAAO,CAAC,CAAC,CAAC,CAChB,CAAC,+BAAc,CAAC,AAAD,EAAG,CAClB,CAAC,CAAC,CAAC,CACH,CAAC,SAAI,CAAC,SAAS,CAAC,CAAC,IAAA,oBAAE,EAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAG,CAC7D,CAAA;AACF,CAAC,CAAA;AA/CY,QAAA,iBAAiB,qBA+C7B"}
|
|
@@ -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.
|
|
@@ -4,6 +4,12 @@ interface GraphicsTabViewer {
|
|
|
4
4
|
projectName?: string;
|
|
5
5
|
targetRef: HRef;
|
|
6
6
|
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Set it to true if you want to query also for related graphics (graphics applicable to objects linked by refs),
|
|
9
|
+
* false to just get the graphics on this target.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
queryRelated?: boolean;
|
|
7
13
|
}
|
|
8
14
|
export declare const GraphicsTabViewer: React.FC<GraphicsTabViewer>;
|
|
9
15
|
export {};
|
|
@@ -23,7 +23,7 @@ const useStyles = createUseStyles({
|
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
});
|
|
26
|
-
export const GraphicsTabViewer = ({ projectName = fin5Top?.finstack?.projectName, targetRef, className, }) => {
|
|
26
|
+
export const GraphicsTabViewer = ({ projectName = fin5Top?.finstack?.projectName, targetRef, className, queryRelated = false, }) => {
|
|
27
27
|
const client = useClient();
|
|
28
28
|
const classes = useStyles();
|
|
29
29
|
const [loading, setLoading] = useState(true);
|
|
@@ -31,7 +31,7 @@ export const GraphicsTabViewer = ({ projectName = fin5Top?.finstack?.projectName
|
|
|
31
31
|
useEffect(() => {
|
|
32
32
|
if (targetRef) {
|
|
33
33
|
client.ext
|
|
34
|
-
.eval(`readById(${targetRef.toAxon()}).finGraphicOn(
|
|
34
|
+
.eval(`readById(${targetRef.toAxon()}).finGraphicOn(${queryRelated})`)
|
|
35
35
|
.then((grid) => {
|
|
36
36
|
setGraphicsList(grid.getRows());
|
|
37
37
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphicsTabViewer.jsx","sourceRoot":"","sources":["../../../../src/react/components/graphics/GraphicsTabViewer.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,EAAE;QACL,MAAM,EAAE,MAAM;QACd,CAAC,MAAM,UAAU,sBAAsB,CAAC,EAAE;YACzC,MAAM,EAAE,MAAM;YACd,CAAC,MAAM,UAAU,eAAe,CAAC,EAAE;gBAClC,MAAM,EAAE,MAAM;gBACd,CAAC,MAAM,UAAU,eAAe,CAAC,EAAE;oBAClC,MAAM,EAAE,MAAM;iBACd;aACD;SACD;KACD;CACD,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"GraphicsTabViewer.jsx","sourceRoot":"","sources":["../../../../src/react/components/graphics/GraphicsTabViewer.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,EAAE;QACL,MAAM,EAAE,MAAM;QACd,CAAC,MAAM,UAAU,sBAAsB,CAAC,EAAE;YACzC,MAAM,EAAE,MAAM;YACd,CAAC,MAAM,UAAU,eAAe,CAAC,EAAE;gBAClC,MAAM,EAAE,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,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE;gBACxB,QAAQ,EAAE,CACT,CAAC,aAAa,CACb,WAAW,CAAC,CAAC,WAAW,IAAI,EAAE,CAAC,CAC/B,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EACrB,CACF;aACD,CAAA;QACF,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;IAElB,OAAO,OAAO,CAAC,CAAC,CAAC,CAChB,CAAC,cAAc,CAAC,AAAD,EAAG,CAClB,CAAC,CAAC,CAAC,CACH,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAG,CAC7D,CAAA;AACF,CAAC,CAAA"}
|
|
@@ -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.4",
|
|
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
|
+
}
|