antd-management-fast-develop 1.1.23 → 1.1.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-develop",
3
- "version": "1.1.23",
3
+ "version": "1.1.27",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -50,50 +50,50 @@
50
50
  "z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
51
51
  },
52
52
  "dependencies": {
53
- "@umijs/max": "^4.0.83",
54
- "commander": "^11.0.0",
53
+ "@umijs/max": "^4.0.87",
54
+ "commander": "^11.1.0",
55
55
  "ejs": "^3.1.9",
56
56
  "rimraf": "^5.0.5",
57
- "umi": "^4.0.83"
57
+ "umi": "^4.0.87"
58
58
  },
59
59
  "devDependencies": {
60
- "@babel/core": "^7.23.0",
60
+ "@babel/core": "^7.23.2",
61
61
  "@babel/eslint-parser": "^7.22.15",
62
62
  "@babel/plugin-external-helpers": "^7.22.5",
63
- "@babel/plugin-proposal-decorators": "^7.23.0",
63
+ "@babel/plugin-proposal-decorators": "^7.23.2",
64
64
  "@babel/plugin-transform-class-properties": "^7.22.5",
65
65
  "@babel/plugin-transform-private-methods": "^7.22.5",
66
66
  "@babel/plugin-transform-private-property-in-object": "^7.22.11",
67
- "@babel/plugin-transform-runtime": "^7.22.15",
68
- "@babel/preset-env": "^7.22.20",
67
+ "@babel/plugin-transform-runtime": "^7.23.2",
68
+ "@babel/preset-env": "^7.23.2",
69
69
  "@babel/preset-react": "^7.22.15",
70
- "@babel/runtime": "^7.23.1",
70
+ "@babel/runtime": "^7.23.2",
71
71
  "@changesets/cli": "^2.26.2",
72
- "@commitlint/cli": "^17.7.2",
73
- "@commitlint/config-conventional": "^17.7.0",
74
- "@commitlint/config-pnpm-scopes": "^17.7.0",
75
- "@commitlint/cz-commitlint": "^17.7.2",
72
+ "@commitlint/cli": "^18.0.0",
73
+ "@commitlint/config-conventional": "^18.0.0",
74
+ "@commitlint/config-pnpm-scopes": "^18.0.0",
75
+ "@commitlint/cz-commitlint": "^18.0.0",
76
76
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
77
- "@types/jest": "^29.5.5",
78
- "@types/node": "^20.8.4",
79
- "@typescript-eslint/parser": "^6.7.5",
77
+ "@types/jest": "^29.5.6",
78
+ "@types/node": "^20.8.8",
79
+ "@typescript-eslint/parser": "^6.9.0",
80
80
  "babel-jest": "^29.7.0",
81
81
  "commitizen": "^4.3.0",
82
82
  "conventional-changelog-conventionalcommits": "^7.0.2",
83
83
  "cross-env": "^7.0.3",
84
84
  "documentation": "^14.0.2",
85
- "easy-soft-develop": "^2.1.42",
86
- "eslint": "^8.51.0",
85
+ "easy-soft-develop": "^2.1.43",
86
+ "eslint": "^8.52.0",
87
87
  "eslint-config-airbnb": "^19.0.4",
88
88
  "eslint-config-airbnb-typescript": "^17.1.0",
89
89
  "eslint-config-prettier": "^9.0.0",
90
90
  "eslint-formatter-pretty": "^5.0.0",
91
91
  "eslint-import-resolver-typescript": "^3.6.1",
92
92
  "eslint-plugin-eslint-comments": "^3.2.0",
93
- "eslint-plugin-import": "^2.28.1",
94
- "eslint-plugin-jest": "^27.4.2",
93
+ "eslint-plugin-import": "^2.29.0",
94
+ "eslint-plugin-jest": "^27.4.3",
95
95
  "eslint-plugin-jsx-a11y": "^6.7.1",
96
- "eslint-plugin-prettier": "^5.0.0",
96
+ "eslint-plugin-prettier": "^5.0.1",
97
97
  "eslint-plugin-promise": "^6.1.1",
98
98
  "eslint-plugin-react": "^7.33.2",
99
99
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -101,14 +101,14 @@
101
101
  "eslint-plugin-unicorn": "^48.0.1",
102
102
  "husky": "^8.0.3",
103
103
  "jest": "^29.7.0",
104
- "lint-staged": "^14.0.1",
104
+ "lint-staged": "^15.0.2",
105
105
  "prettier": "^3.0.3",
106
106
  "prettier-plugin-organize-imports": "^3.2.3",
107
107
  "prettier-plugin-packagejson": "^2.4.6",
108
108
  "react": "^18.2.0",
109
109
  "react-dnd": "^16.0.1",
110
110
  "rimraf": "^5.0.5",
111
- "stylelint": "^15.10.3",
111
+ "stylelint": "^15.11.0",
112
112
  "stylelint-config-prettier": "^9.0.5",
113
113
  "stylelint-config-standard": "^34.0.0"
114
114
  }
@@ -1,9 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import React from 'react';
5
- import { Outlet, useOutletContext } from 'umi';
6
- export default function EmptyRoute() {
7
- const context = useOutletContext();
8
- return <Outlet context={context} />;
9
- }
@@ -1,16 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- interface IDefaultRuntimeConfig {
5
- onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
6
- patchRoutes?: (props: { routes: any }) => void;
7
- patchClientRoutes?: (props: { routes: any }) => void;
8
- render?: (oldRender: () => void) => void;
9
- rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
10
- [key: string]: any;
11
- }
12
- export type RuntimeConfig = IDefaultRuntimeConfig
13
-
14
- export function defineApp(config: RuntimeConfig): RuntimeConfig {
15
- return config;
16
- }
@@ -1,10 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import React from 'react';
5
- import { HelmetProvider } from 'E:/project/my/antd-management-fast-framework/node_modules/.pnpm/@umijs+renderer-react@4.0.79(react-dom@18.1.0)(react@18.1.0)/node_modules/@umijs/renderer-react';
6
- import { context } from './helmetContext';
7
-
8
- export const innerProvider = (container) => {
9
- return React.createElement(HelmetProvider, { context }, container);
10
- }
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- export const context = {};
@@ -1,66 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import { createHashHistory, createMemoryHistory, createBrowserHistory } from 'E:/project/my/antd-management-fast-framework/node_modules/.pnpm/@umijs+renderer-react@4.0.79(react-dom@18.1.0)(react@18.1.0)/node_modules/@umijs/renderer-react';
5
- import type { UmiHistory } from './historyIntelli';
6
-
7
- let history: UmiHistory;
8
- let basename: string = '/';
9
- export function createHistory(opts: any) {
10
- let h;
11
- if (opts.type === 'hash') {
12
- h = createHashHistory();
13
- } else if (opts.type === 'memory') {
14
- h = createMemoryHistory(opts);
15
- } else {
16
- h = createBrowserHistory();
17
- }
18
- if (opts.basename) {
19
- basename = opts.basename;
20
- }
21
-
22
-
23
- history = {
24
- ...h,
25
- push(to, state) {
26
- h.push(patchTo(to, h), state);
27
- },
28
- replace(to, state) {
29
- h.replace(patchTo(to, h), state);
30
- },
31
- get location() {
32
- return h.location;
33
- },
34
- get action() {
35
- return h.action;
36
- }
37
- }
38
-
39
- return h;
40
- }
41
-
42
- // Patch `to` to support basename
43
- // Refs:
44
- // https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
45
- // https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
46
- function patchTo(to: any, h: History) {
47
- if (typeof to === 'string') {
48
- return `${stripLastSlash(basename)}${to}`;
49
- } else if (typeof to === 'object') {
50
-
51
- const currentPathname = h.location.pathname;
52
-
53
- return {
54
- ...to,
55
- pathname: to.pathname? `${stripLastSlash(basename)}${to.pathname}` : currentPathname,
56
- };
57
- } else {
58
- throw new Error(`Unexpected to: ${to}`);
59
- }
60
- }
61
-
62
- function stripLastSlash(path) {
63
- return path.slice(-1) === '/' ? path.slice(0, -1) : path;
64
- }
65
-
66
- export { history };
@@ -1,132 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import { getRoutes } from './route'
5
- import type { History } from 'E:/project/my/antd-management-fast-framework/node_modules/.pnpm/@umijs+renderer-react@4.0.79(react-dom@18.1.0)(react@18.1.0)/node_modules/@umijs/renderer-react'
6
-
7
- type Routes = Awaited<ReturnType<typeof getRoutes>>['routes']
8
- type AllRoute = Routes[keyof Routes]
9
- type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true
10
-
11
- // show `/` in not `layout / wrapper` only
12
- type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any
13
- ? 'isWrapper' extends keyof Item
14
- ? never
15
- : 'isLayout' extends keyof Item
16
- ? never
17
- : Item
18
- : never
19
- type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>
20
- type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path']
21
- ? '/'
22
- : never
23
-
24
- type GetChildrens<T extends any> = T extends any
25
- ? IsRoot<T> extends true
26
- ? never
27
- : T
28
- : never
29
- type Childrens = GetChildrens<AllRoute>
30
- type Root = Exclude<AllRoute, Childrens>
31
- type AllIds = AllRoute['id']
32
-
33
- type GetChildrensByParentId<
34
- Id extends AllIds,
35
- Item = AllRoute
36
- > = Item extends any
37
- ? 'parentId' extends keyof Item
38
- ? Item['parentId'] extends Id
39
- ? Item
40
- : never
41
- : never
42
- : never
43
-
44
- type RouteObject<
45
- Id extends AllIds,
46
- Item = GetChildrensByParentId<Id>
47
- > = IsNever<Item> extends true
48
- ? ''
49
- : Item extends AllRoute
50
- ? {
51
- [Key in Item['path'] as TrimSlash<Key>]: UnionMerge<
52
- RouteObject<Item['id']>
53
- >
54
- }
55
- : never
56
-
57
- type GetRootRouteObject<Item extends Root> = Item extends Root
58
- ? {
59
- [K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>
60
- }
61
- : never
62
- type MergedResult = UnionMerge<GetRootRouteObject<Root>>
63
-
64
- // --- patch history types ---
65
-
66
- type HistoryTo = Parameters<History['push']>['0']
67
- type HistoryPath = Exclude<HistoryTo, string>
68
-
69
- type UmiPathname = Path<MergedResult> | (string & {})
70
- interface UmiPath extends HistoryPath {
71
- pathname: UmiPathname
72
- }
73
- type UmiTo = UmiPathname | UmiPath
74
-
75
- type UmiPush = (to: UmiTo, state?: any) => void
76
- type UmiReplace = (to: UmiTo, state?: any) => void
77
-
78
-
79
- export interface UmiHistory extends History {
80
- push: UmiPush
81
- replace: UmiReplace
82
- }
83
-
84
- // --- type utils ---
85
- type TrimLeftSlash<T extends string> = T extends `/${infer R}`
86
- ? TrimLeftSlash<R>
87
- : T
88
- type TrimRightSlash<T extends string> = T extends `${infer R}/`
89
- ? TrimRightSlash<R>
90
- : T
91
- type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>
92
-
93
- type IsNever<T> = [T] extends [never] ? true : false
94
- type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
95
- ? 1
96
- : 2
97
- ? true
98
- : false
99
-
100
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
101
- k: infer I
102
- ) => void
103
- ? I
104
- : never
105
- type UnionMerge<U> = UnionToIntersection<U> extends infer O
106
- ? { [K in keyof O]: O[K] }
107
- : never
108
-
109
- type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T
110
-
111
- type PathConcat<
112
- TKey extends string,
113
- TValue,
114
- N = TrimSlash<TKey>
115
- > = TValue extends string
116
- ? ExcludeEmptyKey<N>
117
- :
118
- | ExcludeEmptyKey<N>
119
- | `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true
120
- ? ''
121
- : '/'}${UnionPath<TValue>}`
122
-
123
- type UnionPath<T> = {
124
- [K in keyof T]-?: PathConcat<K & string, T[K]>
125
- }[keyof T]
126
-
127
- type MakeSureLeftSlash<T> = T extends any
128
- ? `/${TrimRightSlash<T & string>}`
129
- : never
130
-
131
- // exclude `/*`, because it always at the top of the IDE tip list
132
- type Path<T, K = UnionPath<T>> = Exclude<MakeSureLeftSlash<K>, '/*'> | IndexRoutePathname
@@ -1,40 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import * as Plugin_0 from '@@/core/helmet.ts';
5
- import { PluginManager } from 'umi';
6
-
7
- function __defaultExport (obj) {
8
- if (obj.default) {
9
- return typeof obj.default === 'function' ? obj.default() : obj.default
10
- }
11
- return obj;
12
- }
13
- export function getPlugins() {
14
- return [
15
- {
16
- apply: Plugin_0,
17
- path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts',
18
- },
19
- ];
20
- }
21
-
22
- export function getValidKeys() {
23
- return ['patchRoutes','patchClientRoutes','modifyContextOpts','modifyClientRenderOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange','qiankun',];
24
- }
25
-
26
- let pluginManager = null;
27
-
28
- export function createPluginManager() {
29
- pluginManager = PluginManager.create({
30
- plugins: getPlugins(),
31
- validKeys: getValidKeys(),
32
- });
33
-
34
-
35
- return pluginManager;
36
- }
37
-
38
- export function getPluginManager() {
39
- return pluginManager;
40
- }