@etsoo/notificationbase 1.1.7 → 1.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.
- package/lib/Notification.d.ts +8 -5
- package/package.json +15 -15
- package/src/Notification.ts +8 -3
package/lib/Notification.d.ts
CHANGED
|
@@ -103,17 +103,20 @@ export interface NotificationParameters {
|
|
|
103
103
|
/**
|
|
104
104
|
* Notification props supported for calls
|
|
105
105
|
*/
|
|
106
|
-
export
|
|
107
|
-
|
|
106
|
+
export declare type NotificationCallProps = {
|
|
107
|
+
/**
|
|
108
|
+
* Input component properties
|
|
109
|
+
*/
|
|
110
|
+
inputProps?: DataTypes.StringRecord;
|
|
111
|
+
};
|
|
108
112
|
/**
|
|
109
113
|
* Notification render props
|
|
110
114
|
*/
|
|
111
|
-
export
|
|
112
|
-
}
|
|
115
|
+
export declare type NotificationRenderProps = object;
|
|
113
116
|
/**
|
|
114
117
|
* Notification base interface
|
|
115
118
|
*/
|
|
116
|
-
export interface INotificaseBase<UI, C extends NotificationCallProps> {
|
|
119
|
+
export interface INotificaseBase<UI, C extends NotificationCallProps = {}> {
|
|
117
120
|
/**
|
|
118
121
|
* Display align
|
|
119
122
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/notificationbase",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "TypeScript notification component for extending with all features described and partially implemented",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -45,23 +45,23 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/ETSOO/NotificationBase#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@etsoo/shared": "^1.1.
|
|
48
|
+
"@etsoo/shared": "^1.1.58"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@babel/core": "^7.
|
|
52
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
53
|
-
"@babel/preset-env": "^7.
|
|
54
|
-
"@babel/runtime-corejs3": "^7.
|
|
55
|
-
"@types/jest": "^
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
57
|
-
"@typescript-eslint/parser": "^5.
|
|
58
|
-
"babel-jest": "^
|
|
59
|
-
"eslint": "^8.
|
|
51
|
+
"@babel/core": "^7.19.1",
|
|
52
|
+
"@babel/plugin-transform-runtime": "^7.19.1",
|
|
53
|
+
"@babel/preset-env": "^7.19.1",
|
|
54
|
+
"@babel/runtime-corejs3": "^7.19.1",
|
|
55
|
+
"@types/jest": "^29.0.3",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
|
57
|
+
"@typescript-eslint/parser": "^5.38.1",
|
|
58
|
+
"babel-jest": "^29.0.3",
|
|
59
|
+
"eslint": "^8.24.0",
|
|
60
60
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
61
61
|
"eslint-plugin-import": "^2.26.0",
|
|
62
|
-
"jest": "^
|
|
63
|
-
"jest-environment-jsdom": "^
|
|
64
|
-
"ts-jest": "^
|
|
65
|
-
"typescript": "^4.
|
|
62
|
+
"jest": "^29.0.3",
|
|
63
|
+
"jest-environment-jsdom": "^29.0.3",
|
|
64
|
+
"ts-jest": "^29.0.2",
|
|
65
|
+
"typescript": "^4.8.3"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/Notification.ts
CHANGED
|
@@ -112,17 +112,22 @@ export interface NotificationParameters {
|
|
|
112
112
|
/**
|
|
113
113
|
* Notification props supported for calls
|
|
114
114
|
*/
|
|
115
|
-
export
|
|
115
|
+
export type NotificationCallProps = {
|
|
116
|
+
/**
|
|
117
|
+
* Input component properties
|
|
118
|
+
*/
|
|
119
|
+
inputProps?: DataTypes.StringRecord;
|
|
120
|
+
};
|
|
116
121
|
|
|
117
122
|
/**
|
|
118
123
|
* Notification render props
|
|
119
124
|
*/
|
|
120
|
-
export
|
|
125
|
+
export type NotificationRenderProps = object;
|
|
121
126
|
|
|
122
127
|
/**
|
|
123
128
|
* Notification base interface
|
|
124
129
|
*/
|
|
125
|
-
export interface INotificaseBase<UI, C extends NotificationCallProps> {
|
|
130
|
+
export interface INotificaseBase<UI, C extends NotificationCallProps = {}> {
|
|
126
131
|
/**
|
|
127
132
|
* Display align
|
|
128
133
|
*/
|