@tridion-docs/extensions 1.0.3 → 1.0.4
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/api/typings/Notification.d.ts +8 -0
- package/dist/package.json.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -233,7 +233,7 @@ export const useCustomHook = (props: any) => {
|
|
|
233
233
|
**Return**
|
|
234
234
|
| Name | Type | Description |
|
|
235
235
|
| :-------------------- | :------------------ | :---------------------------------------- |
|
|
236
|
-
`execute` | `function(message, description, severity)` | By calling this function you will show a notification message. `message`: Title of the notification, `description`: Body or text of the notification, `severity`: notification type
|
|
236
|
+
`execute` | `function(message, description, severity, actionArea)` | By calling this function you will show a notification message. `message`: Title of the notification, `description`: Body or text of the notification, `severity`: notification type, `actionArea`: Area to add action button (optional)
|
|
237
237
|
`messageSeverity` | `MessageSeverity` | Message type, based on the type design and behavior of notification may vary.
|
|
238
238
|
|
|
239
239
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export interface NotificationProps {
|
|
2
3
|
/**
|
|
3
4
|
* The title of notification box
|
|
@@ -20,6 +21,13 @@ export interface NotificationProps {
|
|
|
20
21
|
* @memberof NotificationProps
|
|
21
22
|
*/
|
|
22
23
|
severity: MessageSeverity;
|
|
24
|
+
/**
|
|
25
|
+
* Action area to show buttons
|
|
26
|
+
*
|
|
27
|
+
* @type {ReactNode}
|
|
28
|
+
* @memberof NotificationProps
|
|
29
|
+
*/
|
|
30
|
+
actionArea?: ReactNode;
|
|
23
31
|
}
|
|
24
32
|
export declare enum MessageSeverity {
|
|
25
33
|
ERROR = 0,
|
package/dist/package.json.js
CHANGED
package/package.json
CHANGED