@cometchat/chat-uikit-angular 5.0.1 → 5.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-angular",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "license": "https://www.cometchat.com/legal-terms-of-service",
5
5
  "homepage": "https://www.cometchat.com",
6
6
  "repository": "https://github.com/cometchat/cometchat-uikit-angular",
@@ -26,7 +26,7 @@
26
26
  "peerDependencies": {
27
27
  "@angular/common": ">=17.0.0 <22.0.0",
28
28
  "@angular/core": ">=17.0.0 <22.0.0",
29
- "@cometchat/chat-sdk-javascript": "^4.1.8",
29
+ "@cometchat/chat-sdk-javascript": "^4.1.11",
30
30
  "@cometchat/calls-sdk-javascript": "^5.0.0",
31
31
  "dompurify": "^3.0.0"
32
32
  },
@@ -1,8 +1,8 @@
1
1
  import { Observable, Subject, Subscription } from 'rxjs';
2
+ import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
3
+ import { CometChatSettings, FlagReason } from '@cometchat/chat-sdk-javascript';
2
4
  import * as _angular_core from '@angular/core';
3
5
  import { PipeTransform, TemplateRef, Signal, OnDestroy, InjectionToken, WritableSignal, DestroyRef, EventEmitter as EventEmitter$1, AfterViewInit, QueryList, ElementRef, OnChanges, SimpleChanges, OnInit, ChangeDetectorRef, NgZone, DoCheck, Renderer2, ApplicationRef, EnvironmentInjector } from '@angular/core';
4
- import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
5
- import { FlagReason } from '@cometchat/chat-sdk-javascript';
6
6
  import { Config } from 'dompurify';
7
7
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
8
8
  import { ControlValueAccessor } from '@angular/forms';
@@ -646,6 +646,18 @@ declare class CometChatUIKit {
646
646
  getLoggedInUser(): CometChat.User | null;
647
647
  static init(uiKitSettings: UIKitSettings | null): Promise<InitResult> | undefined;
648
648
  init(uiKitSettings: UIKitSettings | null): Promise<InitResult> | undefined;
649
+ /**
650
+ * File-based init for AI agent skills.
651
+ * Accepts a parsed `cometchat-settings.json` object and delegates to the
652
+ * Chat SDK's file-based init, which internally sets
653
+ * `integrationSource = "ai-agent"` for telemetry.
654
+ *
655
+ * This method is independent of `init()` — it does NOT call `init()`.
656
+ * It builds UIKitSettings internally so login/createUser/updateUser keep working.
657
+ *
658
+ * @internal — excluded from public API docs
659
+ */
660
+ static initFromSettings(settings: CometChatSettings): Promise<InitResult>;
649
661
  static isInitialized(): boolean;
650
662
  isInitialized(): boolean;
651
663
  static setLogLevel(level: LogLevel): void;