@rivet-health/design-system 31.8.0 → 31.8.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.
@@ -56,12 +56,15 @@ export declare class MentionsInputComponent implements OnChanges, AfterViewInit
56
56
  onInput(): void;
57
57
  onKeyDown(event: KeyboardEvent): void;
58
58
  onPaste(event: ClipboardEvent): void;
59
+ private plainTextToNodes;
59
60
  private parsePastedHtml;
60
61
  private insertNodesAtCursor;
61
62
  private insertTextAtCursor;
63
+ private insertLineBreak;
62
64
  private checkForMentionTrigger;
63
65
  private getTextBeforeCursor;
64
66
  getFilteredUsers(): MentionsInputComponent.User[];
67
+ onUserHover(index: number): void;
65
68
  selectUser(user: MentionsInputComponent.User): void;
66
69
  private deleteAtMentionSearch;
67
70
  private isInsideMentionSpan;
@@ -74,7 +77,7 @@ export declare class MentionsInputComponent implements OnChanges, AfterViewInit
74
77
  static ɵcmp: i0.ɵɵComponentDeclaration<MentionsInputComponent, "riv-mentions-input", never, { "content": "content"; "users": "users"; "readonly": "readonly"; "placeholder": "placeholder"; }, { "contentChange": "contentChange"; }, never, never, false>;
75
78
  }
76
79
  export declare namespace MentionsInputComponent {
77
- const ContentTypes: readonly ["mention", "text"];
80
+ const ContentTypes: readonly ["mention", "text", "newline"];
78
81
  type ContentType = (typeof MentionsInputComponent.ContentTypes)[number];
79
82
  interface User {
80
83
  id: number;
@@ -87,6 +90,7 @@ export declare namespace MentionsInputComponent {
87
90
  type Text = Content<'text'> & {
88
91
  text: string;
89
92
  };
90
- type ContentItem = UserMention | Text;
93
+ type Newline = Content<'newline'>;
94
+ type ContentItem = UserMention | Text | Newline;
91
95
  function contentToPlainText(content: ContentItem[]): string;
92
96
  }
@@ -13,5 +13,5 @@ export declare class PhoneFieldComponent extends TextFieldComponent {
13
13
  }
14
14
  export declare namespace PhoneFieldComponent {
15
15
  function clean(v: string): string;
16
- function format(v: string): string;
16
+ function format(value: string): string;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivet-health/design-system",
3
- "version": "31.8.0",
3
+ "version": "31.8.2",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^14.0.0",
6
6
  "@angular/common": "^14.0.0",