@acorex/components 20.7.32 → 20.7.33

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.
@@ -83,17 +83,16 @@ import {
83
83
  AXIndexedDBUserApi,
84
84
  AXIndexedDBConversationApi,
85
85
  AXIndexedDBMessageApi,
86
- AXConversationIndexedDbUploaderApi,
87
86
  AXIndexedDBRealtimeApi,
88
87
  } from '@acorex/components/conversation2';
89
88
 
90
89
  export const appConfig: ApplicationConfig = {
91
90
  providers: [
91
+ MyAppUploaderService,
92
92
  provideConversation({
93
93
  userApi: AXIndexedDBUserApi,
94
94
  conversationApi: AXIndexedDBConversationApi,
95
95
  messageApi: AXIndexedDBMessageApi,
96
- uploaderApi: AXConversationIndexedDbUploaderApi,
97
96
  realtimeApi: AXIndexedDBRealtimeApi, // optional
98
97
  config: {
99
98
  messagePageSize: 50,
@@ -188,11 +187,12 @@ provideConversation({
188
187
  userApi: AXIndexedDBUserApi,
189
188
  conversationApi: AXIndexedDBConversationApi,
190
189
  messageApi: AXIndexedDBMessageApi,
191
- uploaderApi: AXIndexedDBMediaUploaderApi,
192
190
  realtimeApi: AXIndexedDBRealtimeApi,
193
191
  });
194
192
  ```
195
193
 
194
+ Register a service that subscribes to `AXUploaderService.onUpload`, `onResolveUrl`, and `onDeleteMedia` (see showcase `AXShowcaseConversationIndexedDbUploaderService`).
195
+
196
196
  #### IndexedDB with AI API (AI-Powered Demo)
197
197
 
198
198
  ```typescript
@@ -209,7 +209,6 @@ provideConversation({
209
209
  userApi: AXIndexedDBUserApi,
210
210
  conversationApi: AXIndexedDBConversationApi,
211
211
  messageApi: AXIndexedDBMessageAIApi,
212
- uploaderApi: AXIndexedDBMediaUploaderApi,
213
212
  realtimeApi: AXIndexedDBRealtimeApi,
214
213
  });
215
214
  ```
@@ -226,10 +225,6 @@ interface AXConversationConfig {
226
225
  infiniteScrollThreshold?: number; // Default: 200px
227
226
  scrollThreshold?: number; // Default: 100px
228
227
 
229
- // File upload (fallback when action omits uploadConstraints fields)
230
- maxFileSize?: number; // Default: 10MB
231
- allowedFileTypes?: string[]; // Default: image/*, video/*, audio/*, pdf, doc
232
-
233
228
  // UI Behavior
234
229
  messageHighlightDuration?: number; // Default: 2000ms
235
230
  typingIndicatorTimeout?: number; // Default: 3000ms
@@ -433,8 +428,8 @@ Supported message types out of the box:
433
428
 
434
429
  **Issue**: File upload fails
435
430
 
436
- - Check `config.maxFileSize` / `config.allowedFileTypes` and per-action `uploadConstraints` (`allowedMimeTypes`, `minSize`, `maxSize`)
437
- - Verify `uploaderApi` is provided and implements `AXUploaderApi.upload()` with progress and `AbortSignal` support
431
+ - Check composer file-type catalogs and per-action `uploadConstraints` (`allowedMimeTypes`, `minSize`, `maxSize`)
432
+ - Register a handler service subscribed to `AXUploaderService.onUpload` (and resolve/delete events) with progress and `AbortSignal` support
438
433
 
439
434
  **Issue**: Styling issues
440
435