@rainte/ant 0.0.44 → 0.0.46
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/{browser-ponyfill-Z34WVZFB.js → browser-ponyfill-CY9Shwc0.js} +1 -1
- package/dist/index-CHHkVO9f.js +10107 -0
- package/dist/index.js +9 -8
- package/dist/index.umd.cjs +47 -54
- package/dist/types/lib/index.d.ts +2 -1
- package/dist/types/src/utils/dialog.d.ts +22 -0
- package/package.json +59 -59
- package/dist/index-BtP4mYGj.js +0 -15667
- package/dist/types/src/App.d.ts +0 -1
- /package/dist/types/src/utils/{ant.d.ts → misc.d.ts} +0 -0
|
@@ -9,5 +9,6 @@ export { default as Table } from '../src/components/Table';
|
|
|
9
9
|
export type { TableProps } from '../src/components/Table';
|
|
10
10
|
export { default as Upload } from '../src/components/Upload';
|
|
11
11
|
export type { UploadProps } from '../src/components/Upload';
|
|
12
|
+
export * as dialog from '../src/utils/dialog';
|
|
12
13
|
export * as i18n from '../src/utils/i18n';
|
|
13
|
-
export * as
|
|
14
|
+
export * as misc from '../src/utils/misc';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MessageInstance, JointContent } from 'antd/es/message/interface';
|
|
2
|
+
import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
|
|
3
|
+
import type { NotificationInstance } from 'antd/es/notification/interface';
|
|
4
|
+
import type { ModalFuncProps } from 'antd/es/modal/interface';
|
|
5
|
+
declare let message: MessageInstance;
|
|
6
|
+
declare let notification: NotificationInstance;
|
|
7
|
+
declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
8
|
+
declare const useDialog: () => null;
|
|
9
|
+
export default useDialog;
|
|
10
|
+
declare const popup: {
|
|
11
|
+
confirm: (props: ModalFuncProps) => {
|
|
12
|
+
destroy: () => void;
|
|
13
|
+
update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
|
|
14
|
+
};
|
|
15
|
+
success: (content?: JointContent, duration?: number | VoidFunction) => import("antd/es/message/interface").MessageType;
|
|
16
|
+
error: (content?: string, duration?: number | VoidFunction) => never;
|
|
17
|
+
ask: (onOk: (...args: any[]) => any, props?: ModalFuncProps) => {
|
|
18
|
+
destroy: () => void;
|
|
19
|
+
update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export { message, notification, modal, popup, useDialog };
|
package/package.json
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rainte/ant",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist"
|
|
7
|
-
],
|
|
8
|
-
"main": "./dist/index.umd.cjs",
|
|
9
|
-
"module": "./dist/index.js",
|
|
10
|
-
"types": "./dist/types/lib/index.d.ts",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./dist/types/lib/index.d.ts",
|
|
14
|
-
"import": "./dist/index.js",
|
|
15
|
-
"require": "./dist/index.umd.cjs"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"dev": "vite",
|
|
20
|
-
"build": "vite build && tsc",
|
|
21
|
-
"release": "pnpm build && npm version patch && npm publish --access public --registry=https://registry.npmjs.org"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@ant-design/pro-components": "^2.8.6",
|
|
25
|
-
"@rainte/js": "^0.0.41",
|
|
26
|
-
"antd": "^5.24.5",
|
|
27
|
-
"i18next": "^24.2.3",
|
|
28
|
-
"i18next-browser-languagedetector": "^8.0.4",
|
|
29
|
-
"i18next-http-backend": "^3.0.2",
|
|
30
|
-
"quill": "^2.0.3",
|
|
31
|
-
"react": "^
|
|
32
|
-
"react-dom": "^
|
|
33
|
-
"react-i18next": "^15.4.1",
|
|
34
|
-
"react-icons": "^5.5.0",
|
|
35
|
-
"react-router-dom": "^7.4.1"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@types/node": "^22.13.14",
|
|
39
|
-
"@types/react": "^19.0.12",
|
|
40
|
-
"@types/react-dom": "^19.0.4",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
|
42
|
-
"@typescript-eslint/parser": "^8.28.0",
|
|
43
|
-
"@vitejs/plugin-react-swc": "^3.8.1",
|
|
44
|
-
"eslint": "^9.23.0",
|
|
45
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
46
|
-
"eslint-plugin-react-refresh": "^0.4.19",
|
|
47
|
-
"typescript": "^5.8.2",
|
|
48
|
-
"vite": "^6.2.3"
|
|
49
|
-
},
|
|
50
|
-
"peerDependencies": {
|
|
51
|
-
"@ant-design/pro-components": "*",
|
|
52
|
-
"@rainte/js": "*",
|
|
53
|
-
"antd": "*",
|
|
54
|
-
"react": "*",
|
|
55
|
-
"react-dom": "*",
|
|
56
|
-
"react-icons": "*",
|
|
57
|
-
"react-router-dom": "*"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rainte/ant",
|
|
3
|
+
"version": "0.0.46",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/index.umd.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.umd.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "vite build && tsc",
|
|
21
|
+
"release": "pnpm build && npm version patch && npm publish --access public --registry=https://registry.npmjs.org"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@ant-design/pro-components": "^2.8.6",
|
|
25
|
+
"@rainte/js": "^0.0.41",
|
|
26
|
+
"antd": "^5.24.5",
|
|
27
|
+
"i18next": "^24.2.3",
|
|
28
|
+
"i18next-browser-languagedetector": "^8.0.4",
|
|
29
|
+
"i18next-http-backend": "^3.0.2",
|
|
30
|
+
"quill": "^2.0.3",
|
|
31
|
+
"react": "^18.3.1",
|
|
32
|
+
"react-dom": "^18.3.1",
|
|
33
|
+
"react-i18next": "^15.4.1",
|
|
34
|
+
"react-icons": "^5.5.0",
|
|
35
|
+
"react-router-dom": "^7.4.1"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^22.13.14",
|
|
39
|
+
"@types/react": "^19.0.12",
|
|
40
|
+
"@types/react-dom": "^19.0.4",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
|
42
|
+
"@typescript-eslint/parser": "^8.28.0",
|
|
43
|
+
"@vitejs/plugin-react-swc": "^3.8.1",
|
|
44
|
+
"eslint": "^9.23.0",
|
|
45
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
46
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
47
|
+
"typescript": "^5.8.2",
|
|
48
|
+
"vite": "^6.2.3"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@ant-design/pro-components": "*",
|
|
52
|
+
"@rainte/js": "*",
|
|
53
|
+
"antd": "*",
|
|
54
|
+
"react": "*",
|
|
55
|
+
"react-dom": "*",
|
|
56
|
+
"react-icons": "*",
|
|
57
|
+
"react-router-dom": "*"
|
|
58
|
+
}
|
|
59
|
+
}
|