@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tridion-docs/extensions
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - For useNotification hook optional property area for adding action button is added
8
+
3
9
  ## 1.0.3
4
10
 
5
11
  ### Major Changes
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,
@@ -1,4 +1,4 @@
1
- const version = "1.0.3";
1
+ const version = "1.0.4";
2
2
  const peerDependencies = {
3
3
  react: "18.2.0",
4
4
  "react-dom": "18.2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tridion-docs/extensions",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Tridion Docs Extensions API",
5
5
  "author": "RWS Group for and on behalf of its affiliates and subsidiaries",
6
6
  "license": "SEE LICENSE IN LICENSE.md",