@jhelom/react-mui-message-dialog 1.0.7 → 1.0.8
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/README.md +3 -0
- package/package.json +13 -6
package/README.md
CHANGED
|
@@ -55,6 +55,8 @@ if (result) {
|
|
|
55
55
|
await messageDialog.error("Error Message");
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
If a dialog API (`alert`, `confirm`, or `error`) is called again before the current dialog is closed, the previous pending Promise is resolved with `false`, and the latest call becomes active.
|
|
59
|
+
|
|
58
60
|
## Alert
|
|
59
61
|
|
|
60
62
|

|
|
@@ -83,6 +85,7 @@ const messageDialogSettings = {
|
|
|
83
85
|
alertTitle: "Alert",
|
|
84
86
|
confirmTitle: "Confirm",
|
|
85
87
|
errorTitle: "Error",
|
|
88
|
+
closeButtonAriaLabel: "Close dialog",
|
|
86
89
|
} as MessageDialogSettings;
|
|
87
90
|
|
|
88
91
|
createRoot(document.getElementById("root")!).render(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhelom/react-mui-message-dialog",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "vite build",
|
|
13
13
|
"test": "vitest",
|
|
14
|
+
"verify:message-dialog": "tsx ./scripts/verify-message-dialog.tsx",
|
|
14
15
|
"storybook": "storybook dev -p 6006",
|
|
15
16
|
"build-storybook": "storybook build"
|
|
16
17
|
},
|
|
@@ -19,12 +20,18 @@
|
|
|
19
20
|
"react": ">=18"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"
|
|
25
|
-
"
|
|
23
|
+
"@testing-library/react": "^16.3.0",
|
|
24
|
+
"@storybook/react-vite": "^10.3.5",
|
|
25
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
26
|
+
"jsdom": "^27.0.1",
|
|
27
|
+
"tsx": "^4.20.6",
|
|
28
|
+
"typescript": "^6.0.3",
|
|
29
|
+
"vite": "8.0.5",
|
|
26
30
|
"vite-plugin-dts": "^4.5.4",
|
|
27
|
-
"vitest": "^1.
|
|
31
|
+
"vitest": "^4.1.4"
|
|
32
|
+
},
|
|
33
|
+
"optionalDependencies": {
|
|
34
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.12"
|
|
28
35
|
},
|
|
29
36
|
"repository": {
|
|
30
37
|
"type": "git",
|