ebaoferc 0.1.8-beta.1 → 0.1.9

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.
@@ -19,7 +19,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
19
19
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
20
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
21
  import { isNullOrUndefined } from "../../utils";
22
- import { useCallback, useState } from 'react';
22
+ import { useState } from 'react';
23
23
  import { useEnhancePagination } from "../useEnhancePagination";
24
24
  var shortCircuitOperation = function shortCircuitOperation(a, b) {
25
25
  return isNullOrUndefined(a) ? b : a;
@@ -65,7 +65,7 @@ export function useTabsTablePagination(params) {
65
65
  limit: 10
66
66
  }, tabKeyAlias, getTabValue(filterConditions === null || filterConditions === void 0 ? void 0 : filterConditions[tabKeyAlias])));
67
67
  };
68
- var onChangeTab = useCallback(function (activeKey) {
68
+ var onChangeTab = function onChangeTab(activeKey) {
69
69
  var _paginationHookRes$ru;
70
70
  var newFilterConditions = _objectSpread(_objectSpread({}, filterConditions), {}, _defineProperty({
71
71
  page: 1,
@@ -77,7 +77,7 @@ export function useTabsTablePagination(params) {
77
77
  otherParams = _paginationHookRes$pa.slice(1);
78
78
  var finalParams = [newFilterConditions].concat(_toConsumableArray(otherParams));
79
79
  paginationHookRes === null || paginationHookRes === void 0 || (_paginationHookRes$ru = paginationHookRes.run) === null || _paginationHookRes$ru === void 0 || _paginationHookRes$ru.call.apply(_paginationHookRes$ru, [paginationHookRes].concat(_toConsumableArray(finalParams)));
80
- }, [paginationHookRes.params]);
80
+ };
81
81
  return _objectSpread(_objectSpread({}, paginationHookRes), {}, {
82
82
  processQueryFilterOnReset: processQueryFilterOnReset,
83
83
  onChangeTab: onChangeTab,
package/package.json CHANGED
@@ -1,100 +1,100 @@
1
- {
2
- "name": "ebaoferc",
3
- "version": "0.1.8-beta.1",
4
- "description": "A react library developed with dumi",
5
- "license": "MIT",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "scripts": {
12
- "build": "node checkProject && father build",
13
- "build:watch": "father dev",
14
- "dev": "dumi dev",
15
- "docs:build": "dumi build",
16
- "docs:preview": "dumi preview",
17
- "doctor": "father doctor",
18
- "lint": "npm run lint:es && npm run lint:css",
19
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
- "prepare": "husky install && dumi setup",
22
- "prepublishOnly": "father doctor && npm run build",
23
- "start": "npm run dev"
24
- },
25
- "commitlint": {
26
- "extends": [
27
- "@commitlint/config-conventional"
28
- ]
29
- },
30
- "lint-staged": {
31
- "*.{md,json}": [
32
- "prettier --write --no-error-on-unmatched-pattern"
33
- ],
34
- "*.{css,less}": [
35
- "stylelint --fix",
36
- "prettier --write"
37
- ],
38
- "*.{js,jsx}": [
39
- "eslint --fix",
40
- "prettier --write"
41
- ],
42
- "*.{ts,tsx}": [
43
- "eslint --fix",
44
- "prettier --parser=typescript --write"
45
- ]
46
- },
47
- "dependencies": {
48
- "d3": "^7.9.0",
49
- "dagre": "^0.8.5"
50
- },
51
- "devDependencies": {
52
- "@ant-design/icons": "^5.3.7",
53
- "@ant-design/pro-components": "^2.7.1",
54
- "@commitlint/cli": "^18.2.0",
55
- "@commitlint/config-conventional": "^18.1.0",
56
- "@commitlint/config-pnpm-scopes": "^18.1.0",
57
- "@types/lodash": "^4.17.7",
58
- "@types/react": "^18.2.36",
59
- "@types/react-dom": "^18.2.14",
60
- "@umijs/lint": "^4.0.87",
61
- "@umijs/max": "^4.1.10",
62
- "@vitest/coverage-v8": "^0.34.6",
63
- "ahooks": "^3.7.10",
64
- "antd": "^5.17.0",
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
- "husky": "^8.0.1",
74
- "lint-staged": "^13.0.3",
75
- "lodash": "^4.17.21",
76
- "prettier": "^2.7.1",
77
- "prettier-plugin-organize-imports": "^3.0.0",
78
- "prettier-plugin-packagejson": "^2.2.18",
79
- "react": "^18.0.0",
80
- "react-dom": "^18.0.0",
81
- "stylelint": "^14.9.1"
82
- },
83
- "peerDependencies": {
84
- "@ant-design/icons": "^5.3.7",
85
- "@ant-design/pro-components": "^2.7.1",
86
- "ahooks": "^3.7.10",
87
- "antd": "^5.17.0",
88
- "classnames": "^2.5.1",
89
- "cross-env": "^7.0.3",
90
- "dayjs": "^1.11.10",
91
- "lodash": "^4.17.21",
92
- "react": ">=16.9.0",
93
- "react-dom": ">=16.9.0"
94
- },
95
- "publishConfig": {
96
- "access": "public",
97
- "registry": "https://registry.npmjs.org"
98
- },
99
- "authors": []
100
- }
1
+ {
2
+ "name": "ebaoferc",
3
+ "version": "0.1.9",
4
+ "description": "A react library developed with dumi",
5
+ "license": "MIT",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "node checkProject && father build",
13
+ "build:watch": "father dev",
14
+ "dev": "dumi dev",
15
+ "docs:build": "dumi build",
16
+ "docs:preview": "dumi preview",
17
+ "doctor": "father doctor",
18
+ "lint": "npm run lint:es && npm run lint:css",
19
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
+ "prepare": "husky install && dumi setup",
22
+ "prepublishOnly": "father doctor && npm run build",
23
+ "start": "npm run dev"
24
+ },
25
+ "commitlint": {
26
+ "extends": [
27
+ "@commitlint/config-conventional"
28
+ ]
29
+ },
30
+ "lint-staged": {
31
+ "*.{md,json}": [
32
+ "prettier --write --no-error-on-unmatched-pattern"
33
+ ],
34
+ "*.{css,less}": [
35
+ "stylelint --fix",
36
+ "prettier --write"
37
+ ],
38
+ "*.{js,jsx}": [
39
+ "eslint --fix",
40
+ "prettier --write"
41
+ ],
42
+ "*.{ts,tsx}": [
43
+ "eslint --fix",
44
+ "prettier --parser=typescript --write"
45
+ ]
46
+ },
47
+ "dependencies": {
48
+ "d3": "^7.9.0",
49
+ "dagre": "^0.8.5"
50
+ },
51
+ "devDependencies": {
52
+ "@ant-design/icons": "^5.3.7",
53
+ "@ant-design/pro-components": "^2.7.1",
54
+ "@commitlint/cli": "^18.2.0",
55
+ "@commitlint/config-conventional": "^18.1.0",
56
+ "@commitlint/config-pnpm-scopes": "^18.1.0",
57
+ "@types/lodash": "^4.17.7",
58
+ "@types/react": "^18.2.36",
59
+ "@types/react-dom": "^18.2.14",
60
+ "@umijs/lint": "^4.0.87",
61
+ "@umijs/max": "^4.1.10",
62
+ "@vitest/coverage-v8": "^0.34.6",
63
+ "ahooks": "^3.7.10",
64
+ "antd": "^5.17.0",
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
+ "husky": "^8.0.1",
74
+ "lint-staged": "^13.0.3",
75
+ "lodash": "^4.17.21",
76
+ "prettier": "^2.7.1",
77
+ "prettier-plugin-organize-imports": "^3.0.0",
78
+ "prettier-plugin-packagejson": "^2.2.18",
79
+ "react": "^18.0.0",
80
+ "react-dom": "^18.0.0",
81
+ "stylelint": "^14.9.1"
82
+ },
83
+ "peerDependencies": {
84
+ "@ant-design/icons": "^5.3.7",
85
+ "@ant-design/pro-components": "^2.7.1",
86
+ "ahooks": "^3.7.10",
87
+ "antd": "^5.17.0",
88
+ "classnames": "^2.5.1",
89
+ "cross-env": "^7.0.3",
90
+ "dayjs": "^1.11.10",
91
+ "lodash": "^4.17.21",
92
+ "react": ">=16.9.0",
93
+ "react-dom": ">=16.9.0"
94
+ },
95
+ "publishConfig": {
96
+ "access": "public",
97
+ "registry": "https://registry.npmjs.org"
98
+ },
99
+ "authors": []
100
+ }