@acorex/components 20.3.7 → 20.3.8
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/conversation2/README.md
CHANGED
|
@@ -78,22 +78,32 @@ This package requires the following peer dependencies:
|
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
80
|
import { ApplicationConfig } from '@angular/core';
|
|
81
|
-
import {
|
|
81
|
+
import {
|
|
82
|
+
provideConversation,
|
|
83
|
+
AXIndexedDBUserApi,
|
|
84
|
+
AXIndexedDBConversationApi,
|
|
85
|
+
AXIndexedDBMessageApi,
|
|
86
|
+
AXIndexedDBRealtimeApi,
|
|
87
|
+
} from '@acorex/components/conversation2';
|
|
82
88
|
|
|
83
89
|
export const appConfig: ApplicationConfig = {
|
|
84
90
|
providers: [
|
|
85
91
|
provideConversation({
|
|
86
|
-
|
|
92
|
+
userApi: AXIndexedDBUserApi,
|
|
93
|
+
conversationApi: AXIndexedDBConversationApi,
|
|
94
|
+
messageApi: AXIndexedDBMessageApi,
|
|
95
|
+
realtimeApi: AXIndexedDBRealtimeApi, // optional
|
|
87
96
|
config: {
|
|
88
|
-
|
|
89
|
-
|
|
97
|
+
messagePageSize: 50,
|
|
98
|
+
conversationPageSize: 30,
|
|
99
|
+
maxFileSize: 10 * 1024 * 1024,
|
|
90
100
|
allowedFileTypes: ['image/*', 'video/*', 'audio/*', 'application/pdf'],
|
|
91
101
|
},
|
|
92
102
|
registry: {
|
|
93
103
|
// Optional: Register custom message renderers, actions, etc.
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
]
|
|
104
|
+
},
|
|
105
|
+
}),
|
|
106
|
+
],
|
|
97
107
|
};
|
|
98
108
|
```
|
|
99
109
|
|
|
@@ -101,17 +111,26 @@ export const appConfig: ApplicationConfig = {
|
|
|
101
111
|
|
|
102
112
|
```typescript
|
|
103
113
|
import { NgModule } from '@angular/core';
|
|
104
|
-
import {
|
|
114
|
+
import {
|
|
115
|
+
AXConversation2Module,
|
|
116
|
+
AXIndexedDBUserApi,
|
|
117
|
+
AXIndexedDBConversationApi,
|
|
118
|
+
AXIndexedDBMessageApi,
|
|
119
|
+
AXIndexedDBRealtimeApi,
|
|
120
|
+
} from '@acorex/components/conversation2';
|
|
105
121
|
|
|
106
122
|
@NgModule({
|
|
107
123
|
imports: [
|
|
108
124
|
AXConversation2Module.forRoot({
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
125
|
+
userApi: AXIndexedDBUserApi,
|
|
126
|
+
conversationApi: AXIndexedDBConversationApi,
|
|
127
|
+
messageApi: AXIndexedDBMessageApi,
|
|
128
|
+
realtimeApi: AXIndexedDBRealtimeApi,
|
|
129
|
+
config: { /* ... */ },
|
|
130
|
+
}),
|
|
131
|
+
],
|
|
113
132
|
})
|
|
114
|
-
export class AppModule {
|
|
133
|
+
export class AppModule {}
|
|
115
134
|
```
|
|
116
135
|
|
|
117
136
|
### 3. Use in Template
|
|
@@ -155,20 +174,42 @@ export class MyConversationApi extends AXConversationApi {
|
|
|
155
174
|
#### IndexedDB API (Development/Demo)
|
|
156
175
|
|
|
157
176
|
```typescript
|
|
158
|
-
import {
|
|
177
|
+
import {
|
|
178
|
+
provideConversation,
|
|
179
|
+
AXIndexedDBUserApi,
|
|
180
|
+
AXIndexedDBConversationApi,
|
|
181
|
+
AXIndexedDBMessageApi,
|
|
182
|
+
AXIndexedDBRealtimeApi,
|
|
183
|
+
} from '@acorex/components/conversation2';
|
|
159
184
|
|
|
160
185
|
// Provides in-memory storage with sample data
|
|
161
186
|
// Perfect for development and demos
|
|
162
|
-
provideConversation({
|
|
187
|
+
provideConversation({
|
|
188
|
+
userApi: AXIndexedDBUserApi,
|
|
189
|
+
conversationApi: AXIndexedDBConversationApi,
|
|
190
|
+
messageApi: AXIndexedDBMessageApi,
|
|
191
|
+
realtimeApi: AXIndexedDBRealtimeApi,
|
|
192
|
+
});
|
|
163
193
|
```
|
|
164
194
|
|
|
165
195
|
#### IndexedDB with AI API (AI-Powered Demo)
|
|
166
196
|
|
|
167
197
|
```typescript
|
|
168
|
-
import {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
198
|
+
import {
|
|
199
|
+
provideConversation,
|
|
200
|
+
AXIndexedDBUserApi,
|
|
201
|
+
AXIndexedDBConversationApi,
|
|
202
|
+
AXIndexedDBMessageAIApi,
|
|
203
|
+
AXIndexedDBRealtimeApi,
|
|
204
|
+
} from '@acorex/components/conversation2';
|
|
205
|
+
|
|
206
|
+
// Includes AI-powered auto-responses via message API
|
|
207
|
+
provideConversation({
|
|
208
|
+
userApi: AXIndexedDBUserApi,
|
|
209
|
+
conversationApi: AXIndexedDBConversationApi,
|
|
210
|
+
messageApi: AXIndexedDBMessageAIApi,
|
|
211
|
+
realtimeApi: AXIndexedDBRealtimeApi,
|
|
212
|
+
});
|
|
172
213
|
```
|
|
173
214
|
|
|
174
215
|
## ⚙️ Configuration
|
|
@@ -178,23 +219,18 @@ provideConversation({ api: AXIndexedDBAIApi })
|
|
|
178
219
|
```typescript
|
|
179
220
|
interface AXConversationConfig {
|
|
180
221
|
// Pagination
|
|
181
|
-
|
|
222
|
+
messagePageSize?: number; // Default: 50
|
|
223
|
+
conversationPageSize?: number; // Default: 30
|
|
182
224
|
infiniteScrollThreshold?: number; // Default: 200px
|
|
183
225
|
scrollThreshold?: number; // Default: 100px
|
|
184
226
|
|
|
185
227
|
// File Upload
|
|
186
228
|
maxFileSize?: number; // Default: 10MB
|
|
187
|
-
allowedFileTypes?: string[]; // Default:
|
|
229
|
+
allowedFileTypes?: string[]; // Default: see defaults
|
|
188
230
|
|
|
189
231
|
// UI Behavior
|
|
190
232
|
messageHighlightDuration?: number; // Default: 2000ms
|
|
191
233
|
typingIndicatorTimeout?: number; // Default: 3000ms
|
|
192
|
-
|
|
193
|
-
// Features
|
|
194
|
-
enableReactions?: boolean; // Default: true
|
|
195
|
-
enableReplies?: boolean; // Default: true
|
|
196
|
-
enableEditing?: boolean; // Default: true
|
|
197
|
-
enableDeletion?: boolean; // Default: true
|
|
198
234
|
}
|
|
199
235
|
```
|
|
200
236
|
|
|
@@ -327,14 +363,18 @@ export class MyComponent {
|
|
|
327
363
|
```typescript
|
|
328
364
|
import { TestBed } from '@angular/core/testing';
|
|
329
365
|
import { provideConversation, AXConversationService } from '@acorex/components/conversation2';
|
|
330
|
-
import { MockConversationApi } from './mocks/mock-
|
|
366
|
+
import { MockUserApi, MockConversationApi, MockMessageApi } from './mocks/mock-apis';
|
|
331
367
|
|
|
332
368
|
describe('MyComponent', () => {
|
|
333
369
|
beforeEach(() => {
|
|
334
370
|
TestBed.configureTestingModule({
|
|
335
371
|
providers: [
|
|
336
|
-
provideConversation({
|
|
337
|
-
|
|
372
|
+
provideConversation({
|
|
373
|
+
userApi: MockUserApi,
|
|
374
|
+
conversationApi: MockConversationApi,
|
|
375
|
+
messageApi: MockMessageApi,
|
|
376
|
+
}),
|
|
377
|
+
],
|
|
338
378
|
});
|
|
339
379
|
});
|
|
340
380
|
|
|
@@ -343,7 +383,7 @@ describe('MyComponent', () => {
|
|
|
343
383
|
const message = await service.sendMessage({
|
|
344
384
|
conversationId: 'test',
|
|
345
385
|
type: 'text',
|
|
346
|
-
payload: { text: 'Test' }
|
|
386
|
+
payload: { text: 'Test' },
|
|
347
387
|
});
|
|
348
388
|
expect(message).toBeDefined();
|
|
349
389
|
});
|
package/conversation2/index.d.ts
CHANGED
|
@@ -4139,6 +4139,7 @@ interface AXMessageAvatarTemplateContext {
|
|
|
4139
4139
|
declare class AXMessageListService {
|
|
4140
4140
|
private readonly conversationService;
|
|
4141
4141
|
private readonly composerService;
|
|
4142
|
+
private readonly config;
|
|
4142
4143
|
private get registry();
|
|
4143
4144
|
readonly activeConversation: _angular_core.Signal<AXConversation>;
|
|
4144
4145
|
readonly activeMessages: _angular_core.Signal<AXMessage[]>;
|
|
@@ -5061,7 +5062,7 @@ declare const AX_CONVERSATION_INFO_BAR_DELETE_ACTION: AXInfoBarAction;
|
|
|
5061
5062
|
*/
|
|
5062
5063
|
declare const AX_CONVERSATION_INFO_BAR_BLOCK_ACTION: AXInfoBarAction;
|
|
5063
5064
|
|
|
5064
|
-
declare class
|
|
5065
|
+
declare class AXAudioRendererComponent {
|
|
5065
5066
|
private readonly platformId;
|
|
5066
5067
|
/** Message to render */
|
|
5067
5068
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
@@ -5104,11 +5105,11 @@ declare class AudioRendererComponent {
|
|
|
5104
5105
|
onProgressClick(event: MouseEvent): void;
|
|
5105
5106
|
/** Format time (seconds to MM:SS) */
|
|
5106
5107
|
private formatTime;
|
|
5107
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5108
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5108
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXAudioRendererComponent, never>;
|
|
5109
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXAudioRendererComponent, "ax-conversation-audio-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5109
5110
|
}
|
|
5110
5111
|
|
|
5111
|
-
declare class
|
|
5112
|
+
declare class AXContactRendererComponent {
|
|
5112
5113
|
private readonly toastService;
|
|
5113
5114
|
/** Message to render */
|
|
5114
5115
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
@@ -5120,11 +5121,11 @@ declare class ContactRendererComponent {
|
|
|
5120
5121
|
copyContact(): Promise<void>;
|
|
5121
5122
|
/** Format contact information as text */
|
|
5122
5123
|
private formatContactText;
|
|
5123
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5124
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5124
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXContactRendererComponent, never>;
|
|
5125
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXContactRendererComponent, "ax-conversation-contact-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5125
5126
|
}
|
|
5126
5127
|
|
|
5127
|
-
declare class
|
|
5128
|
+
declare class AXFallbackRendererComponent {
|
|
5128
5129
|
/** Message to render */
|
|
5129
5130
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
5130
5131
|
/** Show raw data */
|
|
@@ -5137,11 +5138,11 @@ declare class FallbackRendererComponent {
|
|
|
5137
5138
|
readonly rawPayload: _angular_core.Signal<string>;
|
|
5138
5139
|
/** Toggle raw data display */
|
|
5139
5140
|
toggleRaw(): void;
|
|
5140
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5141
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5141
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFallbackRendererComponent, never>;
|
|
5142
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFallbackRendererComponent, "ax-conversation-fallback-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5142
5143
|
}
|
|
5143
5144
|
|
|
5144
|
-
declare class
|
|
5145
|
+
declare class AXFileRendererComponent {
|
|
5145
5146
|
/** Message to render */
|
|
5146
5147
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
5147
5148
|
/** File payload */
|
|
@@ -5160,11 +5161,11 @@ declare class FileRendererComponent {
|
|
|
5160
5161
|
readonly fileIconColor: _angular_core.Signal<string>;
|
|
5161
5162
|
/** Formatted file size */
|
|
5162
5163
|
readonly formattedSize: _angular_core.Signal<string>;
|
|
5163
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5164
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5164
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXFileRendererComponent, never>;
|
|
5165
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXFileRendererComponent, "ax-conversation-file-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5165
5166
|
}
|
|
5166
5167
|
|
|
5167
|
-
declare class
|
|
5168
|
+
declare class AXImageRendererComponent {
|
|
5168
5169
|
private readonly platformId;
|
|
5169
5170
|
/** Message to render */
|
|
5170
5171
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
@@ -5188,11 +5189,11 @@ declare class ImageRendererComponent {
|
|
|
5188
5189
|
onError(): void;
|
|
5189
5190
|
/** Handle image click */
|
|
5190
5191
|
onClick(): void;
|
|
5191
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5192
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5192
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXImageRendererComponent, never>;
|
|
5193
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXImageRendererComponent, "ax-conversation-image-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, { "imageClick": "imageClick"; }, never, never, true, never>;
|
|
5193
5194
|
}
|
|
5194
5195
|
|
|
5195
|
-
declare class
|
|
5196
|
+
declare class AXLocationRendererComponent {
|
|
5196
5197
|
/** Message to render */
|
|
5197
5198
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
5198
5199
|
/** Location payload */
|
|
@@ -5217,11 +5218,11 @@ declare class LocationRendererComponent {
|
|
|
5217
5218
|
popupOpen: boolean;
|
|
5218
5219
|
popupCloseButton: boolean;
|
|
5219
5220
|
}[]>;
|
|
5220
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5221
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5221
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXLocationRendererComponent, never>;
|
|
5222
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXLocationRendererComponent, "ax-conversation-location-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5222
5223
|
}
|
|
5223
5224
|
|
|
5224
|
-
declare class
|
|
5225
|
+
declare class AXStickerRendererComponent {
|
|
5225
5226
|
/** Message to render */
|
|
5226
5227
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
5227
5228
|
/** Loading state */
|
|
@@ -5238,22 +5239,22 @@ declare class StickerRendererComponent {
|
|
|
5238
5239
|
onLoad(): void;
|
|
5239
5240
|
/** Handle image error */
|
|
5240
5241
|
onError(): void;
|
|
5241
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5242
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5242
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXStickerRendererComponent, never>;
|
|
5243
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXStickerRendererComponent, "ax-conversation-sticker-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5243
5244
|
}
|
|
5244
5245
|
|
|
5245
|
-
declare class
|
|
5246
|
+
declare class AXSystemRendererComponent {
|
|
5246
5247
|
/** Message to render */
|
|
5247
5248
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
5248
5249
|
/** System payload */
|
|
5249
5250
|
readonly payload: _angular_core.Signal<AXSystemPayload>;
|
|
5250
5251
|
/** Icon class based on system message type */
|
|
5251
5252
|
readonly iconClass: _angular_core.Signal<"fa-light fa-image" | "fa-light fa-user-plus" | "fa-light fa-user-minus" | "fa-light fa-pen" | "fa-light fa-info-circle">;
|
|
5252
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5253
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5253
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXSystemRendererComponent, never>;
|
|
5254
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXSystemRendererComponent, "ax-conversation-system-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5254
5255
|
}
|
|
5255
5256
|
|
|
5256
|
-
declare class
|
|
5257
|
+
declare class AXTextRendererComponent {
|
|
5257
5258
|
private readonly infoBarService;
|
|
5258
5259
|
private readonly sanitizer;
|
|
5259
5260
|
/** Message to render */
|
|
@@ -5268,11 +5269,11 @@ declare class TextRendererComponent {
|
|
|
5268
5269
|
private linkify;
|
|
5269
5270
|
/** Highlight search query in text */
|
|
5270
5271
|
private highlightSearch;
|
|
5271
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5272
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5272
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextRendererComponent, never>;
|
|
5273
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextRendererComponent, "ax-conversation-text-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5273
5274
|
}
|
|
5274
5275
|
|
|
5275
|
-
declare class
|
|
5276
|
+
declare class AXVideoRendererComponent {
|
|
5276
5277
|
private readonly platformId;
|
|
5277
5278
|
/** Message to render */
|
|
5278
5279
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
@@ -5296,11 +5297,11 @@ declare class VideoRendererComponent {
|
|
|
5296
5297
|
onError(): void;
|
|
5297
5298
|
/** Format duration (seconds to MM:SS) */
|
|
5298
5299
|
formatDuration(seconds: number): string;
|
|
5299
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5300
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5300
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXVideoRendererComponent, never>;
|
|
5301
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXVideoRendererComponent, "ax-conversation-video-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5301
5302
|
}
|
|
5302
5303
|
|
|
5303
|
-
declare class
|
|
5304
|
+
declare class AXVoiceRendererComponent {
|
|
5304
5305
|
private readonly platformId;
|
|
5305
5306
|
/** Message to render */
|
|
5306
5307
|
readonly message: _angular_core.InputSignal<AXMessage>;
|
|
@@ -5341,8 +5342,8 @@ declare class VoiceRendererComponent {
|
|
|
5341
5342
|
onError(): void;
|
|
5342
5343
|
/** Format time (seconds to MM:SS) */
|
|
5343
5344
|
private formatTime;
|
|
5344
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5345
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5345
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXVoiceRendererComponent, never>;
|
|
5346
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXVoiceRendererComponent, "ax-conversation-voice-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5346
5347
|
}
|
|
5347
5348
|
|
|
5348
5349
|
/**
|
|
@@ -5466,7 +5467,7 @@ declare class AXConversation2Module {
|
|
|
5466
5467
|
*/
|
|
5467
5468
|
static forChild(options?: Omit<AXConversationOptions, 'userApi' | 'conversationApi' | 'messageApi' | 'realtimeApi'>): ModuleWithProviders<AXConversation2Module>;
|
|
5468
5469
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversation2Module, never>;
|
|
5469
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXConversation2Module, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof AXConversationContainerComponent, typeof AXSidebarComponent, typeof AXInfoBarComponent, typeof AXMessageListComponent, typeof AXComposerComponent, typeof
|
|
5470
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXConversation2Module, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof AXConversationContainerComponent, typeof AXSidebarComponent, typeof AXInfoBarComponent, typeof AXMessageListComponent, typeof AXComposerComponent, typeof AXTextRendererComponent, typeof AXImageRendererComponent, typeof AXVideoRendererComponent, typeof AXAudioRendererComponent, typeof AXVoiceRendererComponent, typeof AXFileRendererComponent, typeof AXLocationRendererComponent, typeof AXStickerRendererComponent, typeof AXFallbackRendererComponent, typeof AXInfiniteScrollDirective], [typeof AXConversationContainerComponent, typeof AXSidebarComponent, typeof AXInfoBarComponent, typeof AXMessageListComponent, typeof AXComposerComponent, typeof AXTextRendererComponent, typeof AXImageRendererComponent, typeof AXVideoRendererComponent, typeof AXAudioRendererComponent, typeof AXVoiceRendererComponent, typeof AXFileRendererComponent, typeof AXLocationRendererComponent, typeof AXStickerRendererComponent, typeof AXFallbackRendererComponent, typeof AXInfiniteScrollDirective]>;
|
|
5470
5471
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXConversation2Module>;
|
|
5471
5472
|
}
|
|
5472
5473
|
/**
|
|
@@ -6135,5 +6136,5 @@ declare function getErrorMessage(code: string, params?: Record<string, string |
|
|
|
6135
6136
|
*/
|
|
6136
6137
|
type AXErrorCode = typeof MESSAGE_ERRORS[keyof typeof MESSAGE_ERRORS]['code'] | typeof FILE_ERRORS[keyof typeof FILE_ERRORS]['code'] | typeof USER_ERRORS[keyof typeof USER_ERRORS]['code'] | typeof CONVERSATION_ERRORS[keyof typeof CONVERSATION_ERRORS]['code'] | typeof CONNECTION_ERRORS[keyof typeof CONNECTION_ERRORS]['code'] | typeof LOCATION_ERRORS[keyof typeof LOCATION_ERRORS]['code'] | typeof URL_ERRORS[keyof typeof URL_ERRORS]['code'] | typeof PERMISSION_ERRORS[keyof typeof PERMISSION_ERRORS]['code'];
|
|
6137
6138
|
|
|
6138
|
-
export { AI_API_KEY, AXAIResponderService, AXAudioPickerComponent, AXBaseRegistry, AXComposerActionRegistry, AXComposerComponent, AXComposerPopupComponent, AXComposerService, AXComposerTabRegistry, AXContactPickerComponent, AXConversation2Module, AXConversationApi, AXConversationContainerComponent, AXConversationContainerDirective, AXConversationDateUtilsService, AXConversationInfoPanelComponent, AXConversationItemActionRegistry, AXConversationMessageUtilsService, AXConversationService, AXConversationStoreService, AXConversationTabRegistry, AXEmojiTabComponent, AXErrorHandlerService, AXFilePickerComponent, AXFileUploadService, AXForwardMessageDialogComponent, AXImagePickerComponent, AXIndexedDBConversationApi, AXIndexedDBMessageAIApi, AXIndexedDBMessageApi, AXIndexedDBRealtimeApi, AXIndexedDBUserApi, AXInfiniteScrollDirective, AXInfoBarActionRegistry, AXInfoBarComponent, AXInfoBarSearchComponent, AXInfoBarService, AXLocationPickerComponent, AXMessageActionRegistry, AXMessageApi, AXMessageListComponent, AXMessageListService, AXMessageRendererRegistry, AXNewConversationDialogComponent, AXPickerFooterComponent, AXPickerHeaderComponent, AXRealtimeApi, AXRegistryService, AXSidebarComponent, AXSidebarService, AXStickerTabComponent, AXUserApi, AXVideoPickerComponent, AXVoiceRecorderComponent, AX_CONVERSATION_AUDIO_RENDERER, AX_CONVERSATION_COMPOSER_AUDIO_ACTION, AX_CONVERSATION_COMPOSER_CONTACT_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_TAB, AX_CONVERSATION_COMPOSER_FILE_ACTION, AX_CONVERSATION_COMPOSER_IMAGE_ACTION, AX_CONVERSATION_COMPOSER_LOCATION_ACTION, AX_CONVERSATION_COMPOSER_STICKER_TAB, AX_CONVERSATION_COMPOSER_VIDEO_ACTION, AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, AX_CONVERSATION_CONTACT_RENDERER, AX_CONVERSATION_FALLBACK_RENDERER, AX_CONVERSATION_FILE_RENDERER, AX_CONVERSATION_IMAGE_RENDERER, AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, AX_CONVERSATION_INFO_BAR_DELETE_ACTION, AX_CONVERSATION_INFO_BAR_DIVIDER, AX_CONVERSATION_INFO_BAR_INFO_ACTION, AX_CONVERSATION_INFO_BAR_MUTE_ACTION, AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, AX_CONVERSATION_ITEM_BLOCK_ACTION, AX_CONVERSATION_ITEM_DELETE_ACTION, AX_CONVERSATION_ITEM_DIVIDER, AX_CONVERSATION_ITEM_MARK_READ_ACTION, AX_CONVERSATION_ITEM_MUTE_ACTION, AX_CONVERSATION_ITEM_PIN_ACTION, AX_CONVERSATION_LOCATION_RENDERER, AX_CONVERSATION_MESSAGE_COPY_ACTION, AX_CONVERSATION_MESSAGE_DELETE_ACTION, AX_CONVERSATION_MESSAGE_EDIT_ACTION, AX_CONVERSATION_MESSAGE_FORWARD_ACTION, AX_CONVERSATION_MESSAGE_REPLY_ACTION, AX_CONVERSATION_STICKER_RENDERER, AX_CONVERSATION_SYSTEM_RENDERER, AX_CONVERSATION_TAB_ALL, AX_CONVERSATION_TAB_ARCHIVED, AX_CONVERSATION_TAB_CHANNELS, AX_CONVERSATION_TAB_GROUPS, AX_CONVERSATION_TAB_PRIVATE, AX_CONVERSATION_TAB_UNREAD, AX_CONVERSATION_TEXT_RENDERER, AX_CONVERSATION_VIDEO_RENDERER, AX_CONVERSATION_VOICE_RENDERER, AX_DEFAULT_CONVERSATION_CONFIG,
|
|
6139
|
+
export { AI_API_KEY, AXAIResponderService, AXAudioPickerComponent, AXAudioRendererComponent, AXBaseRegistry, AXComposerActionRegistry, AXComposerComponent, AXComposerPopupComponent, AXComposerService, AXComposerTabRegistry, AXContactPickerComponent, AXContactRendererComponent, AXConversation2Module, AXConversationApi, AXConversationContainerComponent, AXConversationContainerDirective, AXConversationDateUtilsService, AXConversationInfoPanelComponent, AXConversationItemActionRegistry, AXConversationMessageUtilsService, AXConversationService, AXConversationStoreService, AXConversationTabRegistry, AXEmojiTabComponent, AXErrorHandlerService, AXFallbackRendererComponent, AXFilePickerComponent, AXFileRendererComponent, AXFileUploadService, AXForwardMessageDialogComponent, AXImagePickerComponent, AXImageRendererComponent, AXIndexedDBConversationApi, AXIndexedDBMessageAIApi, AXIndexedDBMessageApi, AXIndexedDBRealtimeApi, AXIndexedDBUserApi, AXInfiniteScrollDirective, AXInfoBarActionRegistry, AXInfoBarComponent, AXInfoBarSearchComponent, AXInfoBarService, AXLocationPickerComponent, AXLocationRendererComponent, AXMessageActionRegistry, AXMessageApi, AXMessageListComponent, AXMessageListService, AXMessageRendererRegistry, AXNewConversationDialogComponent, AXPickerFooterComponent, AXPickerHeaderComponent, AXRealtimeApi, AXRegistryService, AXSidebarComponent, AXSidebarService, AXStickerRendererComponent, AXStickerTabComponent, AXSystemRendererComponent, AXTextRendererComponent, AXUserApi, AXVideoPickerComponent, AXVideoRendererComponent, AXVoiceRecorderComponent, AXVoiceRendererComponent, AX_CONVERSATION_AUDIO_RENDERER, AX_CONVERSATION_COMPOSER_AUDIO_ACTION, AX_CONVERSATION_COMPOSER_CONTACT_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_TAB, AX_CONVERSATION_COMPOSER_FILE_ACTION, AX_CONVERSATION_COMPOSER_IMAGE_ACTION, AX_CONVERSATION_COMPOSER_LOCATION_ACTION, AX_CONVERSATION_COMPOSER_STICKER_TAB, AX_CONVERSATION_COMPOSER_VIDEO_ACTION, AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, AX_CONVERSATION_CONTACT_RENDERER, AX_CONVERSATION_FALLBACK_RENDERER, AX_CONVERSATION_FILE_RENDERER, AX_CONVERSATION_IMAGE_RENDERER, AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, AX_CONVERSATION_INFO_BAR_DELETE_ACTION, AX_CONVERSATION_INFO_BAR_DIVIDER, AX_CONVERSATION_INFO_BAR_INFO_ACTION, AX_CONVERSATION_INFO_BAR_MUTE_ACTION, AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, AX_CONVERSATION_ITEM_BLOCK_ACTION, AX_CONVERSATION_ITEM_DELETE_ACTION, AX_CONVERSATION_ITEM_DIVIDER, AX_CONVERSATION_ITEM_MARK_READ_ACTION, AX_CONVERSATION_ITEM_MUTE_ACTION, AX_CONVERSATION_ITEM_PIN_ACTION, AX_CONVERSATION_LOCATION_RENDERER, AX_CONVERSATION_MESSAGE_COPY_ACTION, AX_CONVERSATION_MESSAGE_DELETE_ACTION, AX_CONVERSATION_MESSAGE_EDIT_ACTION, AX_CONVERSATION_MESSAGE_FORWARD_ACTION, AX_CONVERSATION_MESSAGE_REPLY_ACTION, AX_CONVERSATION_STICKER_RENDERER, AX_CONVERSATION_SYSTEM_RENDERER, AX_CONVERSATION_TAB_ALL, AX_CONVERSATION_TAB_ARCHIVED, AX_CONVERSATION_TAB_CHANNELS, AX_CONVERSATION_TAB_GROUPS, AX_CONVERSATION_TAB_PRIVATE, AX_CONVERSATION_TAB_UNREAD, AX_CONVERSATION_TEXT_RENDERER, AX_CONVERSATION_VIDEO_RENDERER, AX_CONVERSATION_VOICE_RENDERER, AX_DEFAULT_CONVERSATION_CONFIG, CONNECTION_ERRORS, CONVERSATION_CONFIG, CONVERSATION_ERRORS, DEFAULT_COMPOSER_ACTIONS, DEFAULT_COMPOSER_TABS, DEFAULT_CONVERSATION_ITEM_ACTIONS, DEFAULT_CONVERSATION_TABS, DEFAULT_INFO_BAR_ACTIONS, DEFAULT_MESSAGE_ACTIONS, DEFAULT_MESSAGE_RENDERERS, ERROR_HANDLER_CONFIG, ERROR_MESSAGES, FILE_ERRORS, LOCATION_ERRORS, MESSAGE_ERRORS, PERMISSION_ERRORS, REGISTRY_CONFIG, URL_ERRORS, USER_ERRORS, formatErrorMessage, getDefaultConversationItemActions, getErrorMessage, mergeWithDefaults, provideConversation, sanitizeInput, validateConversationId, validateEmail, validateFile, validateLatitude, validateLongitude, validateMessagePayload, validateMessageText, validateMessageType, validateUrl, validateUserId, validateUserIds };
|
|
6139
6140
|
export type { AXAIResponderConfig, AXApiError, AXAudioPayload, AXBlockReportReason, AXCallEvent, AXComposerAction, AXComposerActionContext, AXComposerActiveComponent, AXComposerTab, AXConnectionEvent, AXConnectionOptions, AXConnectionStatus, AXContactPayload, AXConversation, AXConversationConfig, AXConversationCreateData, AXConversationError, AXConversationFilter, AXConversationFilters, AXConversationItemAction, AXConversationItemActionContext, AXConversationOptions, AXConversationPermissions, AXConversationSettings, AXConversationSettingsUpdate, AXConversationSort, AXConversationStatus, AXConversationTab, AXConversationType, AXConversationUpdateData, AXDeleteMessageCommand, AXEditMessageCommand, AXErrorCode, AXErrorHandlerConfig, AXErrorMessage, AXErrorSeverity, AXFilePayload, AXFileValidationResult, AXGroupedReaction, AXImagePayload, AXInfoBarAction, AXInfoBarActionContext, AXInfoBarActiveComponent, AXLink, AXLinkPreview, AXLocationPayload, AXMention, AXMessage, AXMessageAction, AXMessageActionContext, AXMessageAvatarTemplateContext, AXMessageForwardData, AXMessagePayload, AXMessageRenderer, AXMessageRendererCapabilities, AXMessageSearchFilters, AXMessageStatus, AXMessageType, AXNotificationEvent, AXPaginatedResult, AXPagination, AXParticipant, AXParticipantRole, AXParticipantStatus, AXParticipantUpdate, AXPinnedMessage, AXPollOption, AXPollPayload, AXPresenceStatus, AXPresenceUpdate, AXReaction, AXReadReceipt, AXRegistryConfiguration, AXRegistryItem, AXSendMessageCommand, AXStickerPayload, AXSystemPayload, AXTextFormat, AXTextPayload, AXTypingIndicator, AXUserProfileUpdate, AXUserRole, AXUserSearchFilters, AXValidationResult, AXVideoPayload, AXVoicePayload, DropdownMenuItem, FilePreview, FileUploadProgress };
|