@snugdesk/core 0.0.12 → 0.0.13

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @snugdesk/core
2
2
 
3
- `@snugdesk/core` is the foundational library that powers all other Snugdesk widgets and libraries. It provides essential services and session management utilities required for seamless integration of Snugdesk modules such as `@snugdesk/avaya-ipo-widget`, `@snugdesk/whatsapp-widget`, and others.
3
+ `@snugdesk/core` is the foundational Angular library that powers Snugdesk widgets and shared modules. It provides authentication, shared helpers, and other essential services required for seamless integration of Snugdesk modules such as `@snugdesk/avaya-ipo-widget`, `@snugdesk/whatsapp-widget`, and others.
4
4
 
5
5
  To purchase licenses or for assistance with implementing the Snugdesk libraries in your Angular web application, please contact:
6
6
 
@@ -34,13 +34,33 @@ npm install @angular/animations
34
34
  npm install @auth0/angular-jwt crypto-js moment-timezone uuid
35
35
  ```
36
36
 
37
- ### Step 2. Install the package
37
+ ### Step 2: Install the package
38
38
 
39
39
  ```bash
40
40
  npm install @snugdesk/core
41
+ npm install aws-amplify@^5 @aws-amplify/api-graphql@^3
41
42
  ```
42
43
 
43
- ### 2. Initialize in your app (before loading any Snugdesk widget)
44
+ Amplify v5 is required. Other Snugdesk widgets rely on this package for AppSync configuration.
45
+
46
+ Peer dependency ranges (from the package manifest):
47
+ - Angular: >=19.0.0
48
+ - RxJS: ~7.8.0
49
+
50
+ ### Step 3: Setup
51
+
52
+ #### 1) Import the module (if you use the shared components)
53
+
54
+ ```ts
55
+ import { SnugdeskCoreModule } from '@snugdesk/core';
56
+
57
+ @NgModule({
58
+ imports: [SnugdeskCoreModule],
59
+ })
60
+ export class AppModule {}
61
+ ```
62
+
63
+ #### 2) Initialize authentication
44
64
 
45
65
  ```ts
46
66
  import { SnugdeskAuthenticationService } from '@snugdesk/core';
@@ -54,11 +74,15 @@ ngOnInit() {
54
74
 
55
75
  > Other Snugdesk libraries will automatically retrieve and reuse the session.
56
76
 
57
- ---
77
+ ## What you get
78
+ - Authentication utilities (`SnugdeskAuthenticationService`)
79
+ - Common pipes, components, and shared helpers
80
+ - AppSync helper (`AppSyncHelperService`) that handles query/mutate/subscribe
81
+ - GraphQL services and shared models used by Snugdesk widgets
58
82
 
59
- ## 📌 License
83
+ ## Support and licensing
60
84
 
61
- This library is a proprietary product of Snugdesk and is protected under applicable intellectual property laws.
85
+ This library is a proprietary product of Snugdesk and is protected under applicable intellectual property laws.
62
86
 
63
87
  > **Note**: Usage of this library requires a valid license or an active Snugdesk subscription. Unauthorized distribution or usage is strictly prohibited.
64
88