@etsoo/materialui 1.6.31 → 1.6.33
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.
|
@@ -4,9 +4,14 @@ import {
|
|
|
4
4
|
} from "@etsoo/notificationbase";
|
|
5
5
|
import React, { act } from "react";
|
|
6
6
|
import { createRoot } from "react-dom/client";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
NotificationMUDataMethods,
|
|
9
|
+
NotificationMUDataProps,
|
|
10
|
+
NotifierMU,
|
|
11
|
+
VBox
|
|
12
|
+
} from "../src";
|
|
8
13
|
import TextField from "@mui/material/TextField";
|
|
9
|
-
import {
|
|
14
|
+
import { screen } from "@testing-library/react";
|
|
10
15
|
|
|
11
16
|
// Without it will popup error:
|
|
12
17
|
// The current testing environment is not configured to support act
|
|
@@ -144,7 +149,7 @@ type DataType = {
|
|
|
144
149
|
age: number;
|
|
145
150
|
};
|
|
146
151
|
|
|
147
|
-
function DataCollector(props:
|
|
152
|
+
function DataCollector(props: NotificationMUDataProps) {
|
|
148
153
|
const { mRef } = props;
|
|
149
154
|
const nameRef = React.createRef<HTMLInputElement>();
|
|
150
155
|
const ageRef = React.createRef<HTMLInputElement>();
|
package/lib/cjs/NotifierMU.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface NotificationMUDataMethods {
|
|
|
11
11
|
* MU notification data props
|
|
12
12
|
*/
|
|
13
13
|
export type NotificationMUDataProps = {
|
|
14
|
-
mRef: React.RefObject<NotificationMUDataMethods>;
|
|
14
|
+
mRef: React.RefObject<NotificationMUDataMethods | null>;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* MU notification
|
package/lib/mjs/NotifierMU.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface NotificationMUDataMethods {
|
|
|
11
11
|
* MU notification data props
|
|
12
12
|
*/
|
|
13
13
|
export type NotificationMUDataProps = {
|
|
14
|
-
mRef: React.RefObject<NotificationMUDataMethods>;
|
|
14
|
+
mRef: React.RefObject<NotificationMUDataMethods | null>;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* MU notification
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.33",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@dnd-kit/react": "^0.3.2",
|
|
41
41
|
"@emotion/react": "^11.14.0",
|
|
42
42
|
"@emotion/styled": "^11.14.1",
|
|
43
|
-
"@etsoo/appscript": "^1.6.
|
|
43
|
+
"@etsoo/appscript": "^1.6.58",
|
|
44
44
|
"@etsoo/notificationbase": "^1.1.67",
|
|
45
|
-
"@etsoo/react": "^1.8.
|
|
45
|
+
"@etsoo/react": "^1.8.82",
|
|
46
46
|
"@etsoo/shared": "^1.2.80",
|
|
47
47
|
"@mui/icons-material": "^7.3.9",
|
|
48
48
|
"@mui/material": "^7.3.9",
|
|
49
|
-
"@mui/x-data-grid": "^8.
|
|
49
|
+
"@mui/x-data-grid": "^8.28.0",
|
|
50
50
|
"chart.js": "^4.5.1",
|
|
51
51
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
52
52
|
"dompurify": "^3.3.3",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@babel/core": "^7.29.0",
|
|
69
69
|
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
70
|
-
"@babel/preset-env": "^7.29.
|
|
70
|
+
"@babel/preset-env": "^7.29.2",
|
|
71
71
|
"@babel/preset-react": "^7.28.5",
|
|
72
72
|
"@babel/preset-typescript": "^7.28.5",
|
|
73
|
-
"@babel/runtime-corejs3": "^7.29.
|
|
73
|
+
"@babel/runtime-corejs3": "^7.29.2",
|
|
74
74
|
"@testing-library/jest-dom": "^6.9.1",
|
|
75
75
|
"@testing-library/react": "^16.3.2",
|
|
76
76
|
"@types/pica": "^9.0.5",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@types/react-dom": "^19.2.3",
|
|
81
81
|
"@types/react-input-mask": "^3.0.6",
|
|
82
82
|
"@vitejs/plugin-react": "^6.0.1",
|
|
83
|
-
"jsdom": "^
|
|
83
|
+
"jsdom": "^29.0.1",
|
|
84
84
|
"typescript": "^5.9.3",
|
|
85
85
|
"vitest": "^4.1.0"
|
|
86
86
|
}
|
package/src/NotifierMU.tsx
CHANGED
|
@@ -81,7 +81,7 @@ export interface NotificationMUDataMethods {
|
|
|
81
81
|
* MU notification data props
|
|
82
82
|
*/
|
|
83
83
|
export type NotificationMUDataProps = {
|
|
84
|
-
mRef: React.RefObject<NotificationMUDataMethods>;
|
|
84
|
+
mRef: React.RefObject<NotificationMUDataMethods | null>;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
function isFunctionComponentElement(
|