ebaoferc 2.0.3 → 2.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.
@@ -87,5 +87,5 @@ export declare namespace Process {
87
87
  const Orientation: typeof OrientationProcess;
88
88
  const Anchor: typeof AnchorProcess;
89
89
  const NodeValid: typeof NodeValidProcess;
90
- const getLayoutProcess: (options: Required<Mind.Options>) => (new () => Mind.Process.Lifecycle) | typeof HeirCenterLayoutProcess | typeof DescendantCenterLayoutProcess | typeof StructuredLayoutProcess;
90
+ const getLayoutProcess: (options: Required<Mind.Options>) => typeof DescendantCenterLayoutProcess | (new () => Mind.Process.Lifecycle) | typeof HeirCenterLayoutProcess | typeof StructuredLayoutProcess;
91
91
  }
@@ -10,7 +10,7 @@ export declare const PaginationCommonProps: {
10
10
  showQuickJumper: boolean;
11
11
  showTotal: (total: number) => string;
12
12
  };
13
- export declare const TableCellText: (text: string | number, maxTooltipWidth: any, maxTooltipHeight: any) => "-" | import("react/jsx-runtime").JSX.Element;
13
+ export declare const TableCellText: (text: string | number, maxTooltipWidth: any, maxTooltipHeight: any) => import("react/jsx-runtime").JSX.Element | "-";
14
14
  export default function (props: StyledTableProps): import("react/jsx-runtime").JSX.Element;
15
15
  export declare const useRowSelection: () => {
16
16
  selectedRowKeys: any[];
@@ -1,7 +1,7 @@
1
- import { useEffect, useRef } from 'react';
2
1
  import { history } from '@umijs/max';
3
- /**
4
- * 当路由返回到当前 tab 时触发回调,用于刷新当前页数据。
2
+ import { useEffect, useRef } from 'react';
3
+ /**
4
+ * 当路由返回到当前 tab 时触发回调,用于刷新当前页数据。
5
5
  */
6
6
  export var useRefreshForTab = function useRefreshForTab(fn) {
7
7
  var pathname = useRef(window.location.pathname);
package/package.json CHANGED
@@ -1,103 +1,103 @@
1
- {
2
- "name": "ebaoferc",
3
- "version": "2.0.3",
4
- "description": "A react library developed with dumi",
5
- "module": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "dist"
9
- ],
10
- "scripts": {
11
- "build": "node checkProject && father build",
12
- "build:watch": "father dev",
13
- "dev": "dumi dev",
14
- "docs:build": "dumi build",
15
- "docs:preview": "dumi preview",
16
- "doctor": "father doctor",
17
- "lint": "npm run lint:es && npm run lint:css",
18
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
19
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
20
- "prepare": "husky install && dumi setup",
21
- "prepublishOnly": "father doctor && npm run build",
22
- "start": "npm run dev"
23
- },
24
- "commitlint": {
25
- "extends": [
26
- "@commitlint/config-conventional"
27
- ]
28
- },
29
- "lint-staged": {
30
- "*.{md,json}": [
31
- "prettier --write --no-error-on-unmatched-pattern"
32
- ],
33
- "*.{css,less}": [
34
- "stylelint --fix",
35
- "prettier --write"
36
- ],
37
- "*.{js,jsx}": [
38
- "eslint --fix",
39
- "prettier --write"
40
- ],
41
- "*.{ts,tsx}": [
42
- "eslint --fix",
43
- "prettier --parser=typescript --write"
44
- ]
45
- },
46
- "dependencies": {
47
- "d3": "^7.9.0",
48
- "dagre": "^0.8.5"
49
- },
50
- "devDependencies": {
51
- "@ant-design/icons": "^5.3.7",
52
- "@ant-design/pro-components": "^2.7.1",
53
- "@commitlint/cli": "^18.2.0",
54
- "@commitlint/config-conventional": "^18.1.0",
55
- "@commitlint/config-pnpm-scopes": "^18.1.0",
56
- "@types/lodash": "^4.17.7",
57
- "@types/react": "^18.2.36",
58
- "@types/react-dom": "^18.2.14",
59
- "@umijs/lint": "^4.0.87",
60
- "@umijs/max": "^4.3.6",
61
- "@vitest/coverage-v8": "^0.34.6",
62
- "ahooks": "^3.7.10",
63
- "antd": "^5.24.7",
64
- "child_process": "^1.0.2",
65
- "classnames": "^2.5.1",
66
- "connect-history-api-fallback": "^2.0.0",
67
- "cross-env": "^7.0.3",
68
- "dayjs": "^1.11.10",
69
- "dumi": "^2.3.0",
70
- "eslint": "^8.23.0",
71
- "express": "^4.19.2",
72
- "father": "^4.1.0",
73
- "fs-extra": "^11.3.2",
74
- "husky": "^8.0.1",
75
- "lint-staged": "^13.0.3",
76
- "lodash": "^4.17.21",
77
- "path": "^0.12.7",
78
- "prettier": "^2.7.1",
79
- "prettier-plugin-organize-imports": "^3.0.0",
80
- "prettier-plugin-packagejson": "^2.2.18",
81
- "react": "^18.0.0",
82
- "react-dom": "^18.0.0",
83
- "stylelint": "^14.9.1"
84
- },
85
- "peerDependencies": {
86
- "@ant-design/icons": "^5.3.7",
87
- "@ant-design/pro-components": "^2.7.1",
88
- "@umijs/max": "^4.3.6",
89
- "ahooks": "^3.7.10",
90
- "antd": "^5.17.0",
91
- "classnames": "^2.5.1",
92
- "cross-env": "^7.0.3",
93
- "dayjs": "^1.11.10",
94
- "lodash": "^4.17.21",
95
- "react": "^18.0.0",
96
- "react-dom": "^18.0.0"
97
- },
98
- "publishConfig": {
99
- "access": "public",
100
- "registry": "https://registry.npmjs.org"
101
- },
102
- "authors": []
103
- }
1
+ {
2
+ "name": "ebaoferc",
3
+ "version": "2.0.4",
4
+ "description": "A react library developed with dumi",
5
+ "module": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "node checkProject && father build",
12
+ "build:watch": "father dev",
13
+ "dev": "dumi dev",
14
+ "docs:build": "dumi build",
15
+ "docs:preview": "dumi preview",
16
+ "doctor": "father doctor",
17
+ "lint": "npm run lint:es && npm run lint:css",
18
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
19
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
20
+ "prepare": "husky install && dumi setup",
21
+ "prepublishOnly": "father doctor && npm run build",
22
+ "start": "npm run dev"
23
+ },
24
+ "commitlint": {
25
+ "extends": [
26
+ "@commitlint/config-conventional"
27
+ ]
28
+ },
29
+ "lint-staged": {
30
+ "*.{md,json}": [
31
+ "prettier --write --no-error-on-unmatched-pattern"
32
+ ],
33
+ "*.{css,less}": [
34
+ "stylelint --fix",
35
+ "prettier --write"
36
+ ],
37
+ "*.{js,jsx}": [
38
+ "eslint --fix",
39
+ "prettier --write"
40
+ ],
41
+ "*.{ts,tsx}": [
42
+ "eslint --fix",
43
+ "prettier --parser=typescript --write"
44
+ ]
45
+ },
46
+ "dependencies": {
47
+ "d3": "^7.9.0",
48
+ "dagre": "^0.8.5"
49
+ },
50
+ "devDependencies": {
51
+ "@ant-design/icons": "^5.3.7",
52
+ "@ant-design/pro-components": "^2.7.1",
53
+ "@commitlint/cli": "^18.2.0",
54
+ "@commitlint/config-conventional": "^18.1.0",
55
+ "@commitlint/config-pnpm-scopes": "^18.1.0",
56
+ "@types/lodash": "^4.17.7",
57
+ "@types/react": "^18.2.36",
58
+ "@types/react-dom": "^18.2.14",
59
+ "@umijs/lint": "^4.0.87",
60
+ "@umijs/max": "^4.3.6",
61
+ "@vitest/coverage-v8": "^0.34.6",
62
+ "ahooks": "^3.7.10",
63
+ "antd": "^5.24.7",
64
+ "child_process": "^1.0.2",
65
+ "classnames": "^2.5.1",
66
+ "connect-history-api-fallback": "^2.0.0",
67
+ "cross-env": "^7.0.3",
68
+ "dayjs": "^1.11.10",
69
+ "dumi": "^2.3.0",
70
+ "eslint": "^8.23.0",
71
+ "express": "^4.19.2",
72
+ "father": "^4.1.0",
73
+ "fs-extra": "^11.3.2",
74
+ "husky": "^8.0.1",
75
+ "lint-staged": "^13.0.3",
76
+ "lodash": "^4.17.21",
77
+ "path": "^0.12.7",
78
+ "prettier": "^2.7.1",
79
+ "prettier-plugin-organize-imports": "^3.0.0",
80
+ "prettier-plugin-packagejson": "^2.2.18",
81
+ "react": "^18.0.0",
82
+ "react-dom": "^18.0.0",
83
+ "stylelint": "^14.9.1"
84
+ },
85
+ "peerDependencies": {
86
+ "@ant-design/icons": "^5.3.7",
87
+ "@ant-design/pro-components": "^2.7.1",
88
+ "@umijs/max": "^4.3.6",
89
+ "ahooks": "^3.7.10",
90
+ "antd": "^5.24.7",
91
+ "classnames": "^2.5.1",
92
+ "cross-env": "^7.0.3",
93
+ "dayjs": "^1.11.10",
94
+ "lodash": "^4.17.21",
95
+ "react": "^18.3.0",
96
+ "react-dom": "^18.3.0"
97
+ },
98
+ "publishConfig": {
99
+ "access": "public",
100
+ "registry": "https://registry.npmjs.org"
101
+ },
102
+ "authors": []
103
+ }