@forgeroute/ui 0.4.61 → 0.4.63

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": "@forgeroute/ui",
3
- "version": "0.4.61",
3
+ "version": "0.4.63",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -13238,9 +13238,9 @@ export interface ConversationAttachment {
13238
13238
  }
13239
13239
  /** What `(send)` reports. */
13240
13240
  export interface ConversationSendEvent {
13241
- /** The message as plain text (trimmed). With `[richText]`, the text of the formatted message. */
13241
+ /** The message as plain text (trimmed): the text of the formatted message. */
13242
13242
  text: string;
13243
- /** With `[richText]`: the formatted message as sanitised HTML (bold, italic, underline, links, lists). Absent for a plain-text composer. */
13243
+ /** Only with `[richText]="true"`: the formatted message as sanitised HTML (bold, italic, underline, links, lists). */
13244
13244
  html?: string;
13245
13245
  }
13246
13246
  /** A message with the date separator that goes above it ('' when it shares the day of the previous message). */
@@ -13411,9 +13411,14 @@ export declare class ConversationsComponent {
13411
13411
  readonly composerStatus: import("@angular/core").InputSignal<string>;
13412
13412
  /** An error on the message box. */
13413
13413
  readonly composerError: import("@angular/core").InputSignal<string>;
13414
- /** Longest message the box accepts (1600 = the SMS provider's limit for one send). */
13414
+ /** Longest message (in plain text) Send accepts; longer disables Send, the host words the reason in `composerError` (1600 = the SMS provider's limit for one send). */
13415
13415
  readonly maxLength: import("@angular/core").InputSignal<number>;
13416
- /** The composer is the library's rich text editor (bold, italic, underline, links, lists) and `[(draft)]` holds its HTML; `(send)` reports `text` and `html`. Messages show their `bodyHtml`. Default false: a plain text box. */
13416
+ /**
13417
+ * Opt-in formatted composer (`ui-rich-text-editor`: bold, italic, underline, link, lists). Default false = the plain textarea, Enter sends and
13418
+ * Shift+Enter is a new line. In rich mode `[(draft)]` still holds the PLAIN text (so a host's length and merge-field checks and a template
13419
+ * insert work on text), Enter starts a new paragraph / list item and the message is sent with the Send button or Ctrl/Cmd+Enter;
13420
+ * `(send)` carries `text` (plain) and `html` (sanitised). Messages with `bodyHtml` show formatted in either mode.
13421
+ */
13417
13422
  readonly richText: import("@angular/core").InputSignal<boolean>;
13418
13423
  readonly attachment: import("@angular/core").InputSignal<ConversationAttachment | null>;
13419
13424
  readonly uploading: import("@angular/core").InputSignal<boolean>;
@@ -13478,8 +13483,8 @@ export declare class ConversationsComponent {
13478
13483
  protected readonly contextVisible: import("@angular/core").Signal<boolean>;
13479
13484
  /** Something to send (text or a file), the composer is open and no request is running. */
13480
13485
  readonly canSend: import("@angular/core").Signal<boolean>;
13481
- /** The draft as plain text: the draft itself, or the text of its HTML in the rich composer. */
13482
- protected readonly draftText: import("@angular/core").Signal<string>;
13486
+ /** The composer's formatted content. `draft` is always its plain text, so a host that reads or sets `[(draft)]` never sees markup. */
13487
+ protected readonly editorHtml: import("@angular/core").WritableSignal<string>;
13483
13488
  protected readonly richHide: RichTextOption[];
13484
13489
  constructor();
13485
13490
  protected relativeTime(iso: string | null | undefined): string;
@@ -13494,6 +13499,7 @@ export declare class ConversationsComponent {
13494
13499
  protected closeContext(restoreFocus?: boolean): void;
13495
13500
  protected openFilePicker(): void;
13496
13501
  protected onComposeKeydown(event: KeyboardEvent): void;
13502
+ protected onEditorChange(html: string): void;
13497
13503
  protected sendMessage(): void;
13498
13504
  private clock;
13499
13505
  private singleColumn;