osi-cards-lib 1.2.0 → 1.2.2

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
- # OSI Cards Library
1
+ # OrangeSales Intelligence OSI Cards Library
2
2
 
3
- A standalone Angular library for rendering beautiful, interactive AI-powered cards with full functionality including all section types, animations, and styling.
3
+ A standalone Angular library for rendering beautiful, interactive AI-powered cards with full functionality including all section types, animations, and styling. OrangeSales Intelligence OSI Cards is a versatile card generator used by sales intelligence agents, featuring structured formatting that can design cards for any form of business intelligence data.
4
4
 
5
5
  ## Installation
6
6
 
@@ -151,7 +151,59 @@ Add the styles path to your `angular.json`:
151
151
 
152
152
  **Note:** If you're using Tailwind CSS, you may need to include Tailwind directives in your main styles file. The library styles work independently but some utility classes may require Tailwind.
153
153
 
154
- ### Step 4: Import and Use the Card Component
154
+ ### Step 4: Configure Providers (REQUIRED)
155
+
156
+ **⚠️ IMPORTANT**: The library requires animation providers to function correctly. You must add the provider function to your `app.config.ts`.
157
+
158
+ #### Option A: Using the Library Provider Function (Recommended)
159
+
160
+ Add `provideOSICards()` to your `app.config.ts`:
161
+
162
+ ```typescript
163
+ import { ApplicationConfig } from '@angular/core';
164
+ import { provideOSICards } from 'osi-cards-lib';
165
+
166
+ export const appConfig: ApplicationConfig = {
167
+ providers: [
168
+ provideOSICards(), // This provides required animation support
169
+ // ... your other providers
170
+ ]
171
+ };
172
+ ```
173
+
174
+ This automatically provides all required dependencies including animations.
175
+
176
+ #### Option B: Manual Provider Configuration
177
+
178
+ If you prefer to configure providers manually, you can use Angular's animation providers directly:
179
+
180
+ ```typescript
181
+ import { ApplicationConfig } from '@angular/core';
182
+ import { provideAnimations } from '@angular/platform-browser/animations';
183
+
184
+ export const appConfig: ApplicationConfig = {
185
+ providers: [
186
+ provideAnimations(), // Required for component animations
187
+ // ... your other providers
188
+ ]
189
+ };
190
+ ```
191
+
192
+ **Note**: For testing or when animations are not desired, you can use `provideNoopAnimations()` instead:
193
+
194
+ ```typescript
195
+ import { provideNoopAnimations } from '@angular/platform-browser/animations';
196
+
197
+ export const appConfig: ApplicationConfig = {
198
+ providers: [
199
+ provideOSICards({ enableAnimations: false }), // Uses noop animations
200
+ // OR manually:
201
+ // provideNoopAnimations(),
202
+ ]
203
+ };
204
+ ```
205
+
206
+ ### Step 5: Import and Use the Card Component
155
207
 
156
208
  #### In a Standalone Component
157
209
 
@@ -643,9 +695,11 @@ After importing the library, verify:
643
695
 
644
696
  - [ ] Library is installed in `node_modules/osi-cards-lib`
645
697
  - [ ] All peer dependencies are installed
698
+ - [ ] **Providers are configured** - `provideOSICards()` added to `app.config.ts`
646
699
  - [ ] Components can be imported without TypeScript errors
647
700
  - [ ] Styles are imported and applied correctly
648
701
  - [ ] Icons are displaying properly
702
+ - [ ] Animations are working (check component entrance animations)
649
703
  - [ ] TypeScript types are available and working
650
704
  - [ ] No console errors in browser
651
705
  - [ ] Components render correctly in the application