@acontplus/ng-notifications 1.0.8 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +16 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # @acontplus/ng-notifications
2
2
 
3
- Angular notifications library for AcontPlus applications, providing toast notifications, alerts, and snackbars using popular libraries like ngx-toastr and SweetAlert2.
3
+ Angular notifications library for AcontPlus applications, providing toast
4
+ notifications, alerts, and snackbars using popular libraries like ngx-toastr and
5
+ SweetAlert2.
4
6
 
5
7
  ## Installation
6
8
 
@@ -13,36 +15,45 @@ npm install @acontplus/ng-notifications
13
15
  - **Toast Notifications**: Using ngx-toastr for non-blocking notifications
14
16
  - **SweetAlert2 Integration**: Modal alerts and confirmations
15
17
  - **Material Snackbar**: Angular Material snackbar components
16
- - **Notification Service**: Unified service for managing different notification types
18
+ - **Notification Service**: Unified service for managing different notification
19
+ types
17
20
  - **Configuration**: Customizable configurations for toastr and snackbar
18
- - **TypeScript Support**: Full type safety with comprehensive TypeScript definitions
21
+ - **TypeScript Support**: Full type safety with comprehensive TypeScript
22
+ definitions
19
23
  - **Angular Material Integration**: Consistent styling with Material Design
20
24
 
21
25
  ## Providers
22
26
 
23
27
  ### Notification Provider
28
+
24
29
  Main provider for notification management.
25
30
 
26
31
  ### Toastr Provider
32
+
27
33
  Provider for ngx-toastr integration.
28
34
 
29
35
  ### Snackbar Provider
36
+
30
37
  Provider for Angular Material snackbar.
31
38
 
32
39
  ### SweetAlert Provider
40
+
33
41
  Provider for SweetAlert2 modals.
34
42
 
35
43
  ## Services
36
44
 
37
45
  ### Notification Service
46
+
38
47
  Service for showing various types of notifications.
39
48
 
40
49
  ## Configuration
41
50
 
42
51
  ### Toastr Config
52
+
43
53
  Configuration for toast notifications.
44
54
 
45
55
  ### Snackbar Config
56
+
46
57
  Configuration for snackbar notifications.
47
58
 
48
59
  ## Usage
@@ -50,12 +61,12 @@ Configuration for snackbar notifications.
50
61
  Import the providers and services:
51
62
 
52
63
  ```typescript
53
- import { NotificationService, notificationProviders } from '@acontplus/ng-notifications';
64
+ import { NotificationService, provideNotifications } from '@acontplus/ng-notifications';
54
65
 
55
66
  // In app.config.ts
56
67
  export const appConfig: ApplicationConfig = {
57
68
  providers: [
58
- ...notificationProviders,
69
+ provideNotifications(),
59
70
  ],
60
71
  };
61
72
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@acontplus/ng-notifications",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "A library of Angular components for notifications, including custom buttons, dialogs, and snackbars, built with Angular Material and styled with SCSS.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.2",
7
7
  "@angular/core": "^20.3.2",
8
8
  "@angular/material": "^20.2.5",
9
9
  "ngx-toastr": "^19.1.0",
10
- "sweetalert2": "^11.23.0",
10
+ "sweetalert2": "^11.24.0",
11
11
  "rxjs": "^7.8.2"
12
12
  },
13
13
  "sideEffects": true,