@grapadigital/shared-app-modules 0.0.182 → 0.0.184

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.
@@ -399,6 +399,12 @@ declare interface FormalizationInterface {
399
399
  totalInstallments: number;
400
400
  }
401
401
 
402
+ /**
403
+ * Extrai as menções no formato { userId, username } esperado pelo campo
404
+ * `mentioneds` das APIs (api-sales, api-campaigns, api-invoices, api-payments).
405
+ */
406
+ export declare function getMentionedUsers(text: string): MentionedUser[];
407
+
402
408
  export declare function HoverContent({ content, align, asChild, className, openDelay, closeDelay, children, disabled, ...props }: HoverContentProps): JSX.Element;
403
409
 
404
410
  declare interface HoverContentProps extends HoverCardProps {
@@ -542,6 +548,31 @@ declare interface LostInterface {
542
548
  details?: string;
543
549
  }
544
550
 
551
+ export declare interface MentionedUser {
552
+ userId: string;
553
+ username: string;
554
+ }
555
+
556
+ export declare function MentionInput({ value, onChange, onBlur, organizationId, placeholder, disabled, singleLine, }: MentionInputProps): JSX.Element;
557
+
558
+ declare interface MentionInputProps {
559
+ value: string;
560
+ onChange: (value: string) => void;
561
+ onBlur?: () => void;
562
+ organizationId: string;
563
+ placeholder?: string;
564
+ disabled?: boolean;
565
+ /** @default false — renderiza como textarea multi-linha */
566
+ singleLine?: boolean;
567
+ }
568
+
569
+ export declare function MentionText({ text, className }: MentionTextProps): JSX.Element;
570
+
571
+ declare interface MentionTextProps {
572
+ text: string;
573
+ className?: string;
574
+ }
575
+
545
576
  declare interface NegotiationInterface {
546
577
  calculatorType: CalculatorType;
547
578
  childPermit?: boolean;
@@ -618,6 +649,13 @@ declare interface Paid {
618
649
  date: string;
619
650
  }
620
651
 
652
+ declare interface ParsedMention {
653
+ id: string;
654
+ display: string;
655
+ }
656
+
657
+ export declare function parseMentions(text: string): ParsedMention[];
658
+
621
659
  declare interface Participant {
622
660
  role: ParticipantRole;
623
661
  email: string;