@grapadigital/shared-app-modules 0.0.181 → 0.0.183

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.
@@ -93,6 +93,16 @@ declare interface Approval {
93
93
  approvedAt: string;
94
94
  }
95
95
 
96
+ export declare function AsyncBoundary({ suspenseFallback: SuspenseFallback, errorFallback: ErrorFallback, children, }: AsyncBoundaryProps): JSX.Element;
97
+
98
+ declare interface AsyncBoundaryProps extends React.PropsWithChildren {
99
+ suspenseFallback?: React.ComponentType;
100
+ errorFallback?: React.ComponentType<{
101
+ error?: Error | unknown;
102
+ onRetry?: () => void;
103
+ }>;
104
+ }
105
+
96
106
  declare interface Attachments {
97
107
  url: string;
98
108
  name: string;
@@ -255,10 +265,11 @@ export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip
255
265
 
256
266
  declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
257
267
  icon?: LucideIcon;
258
- title: string;
259
- description: string;
268
+ title?: string;
269
+ description?: string;
260
270
  onRetry?: () => void;
261
271
  tip?: string;
272
+ error?: Error | unknown;
262
273
  }
263
274
 
264
275
  declare interface Exchange {
@@ -531,6 +542,26 @@ declare interface LostInterface {
531
542
  details?: string;
532
543
  }
533
544
 
545
+ export declare function MentionInput({ value, onChange, onBlur, organizationId, placeholder, disabled, singleLine, }: MentionInputProps): JSX.Element;
546
+
547
+ declare interface MentionInputProps {
548
+ value: string;
549
+ onChange: (value: string) => void;
550
+ onBlur?: () => void;
551
+ organizationId: string;
552
+ placeholder?: string;
553
+ disabled?: boolean;
554
+ /** @default true */
555
+ singleLine?: boolean;
556
+ }
557
+
558
+ export declare function MentionText({ text, className }: MentionTextProps): JSX.Element;
559
+
560
+ declare interface MentionTextProps {
561
+ text: string;
562
+ className?: string;
563
+ }
564
+
534
565
  declare interface NegotiationInterface {
535
566
  calculatorType: CalculatorType;
536
567
  childPermit?: boolean;
@@ -607,6 +638,13 @@ declare interface Paid {
607
638
  date: string;
608
639
  }
609
640
 
641
+ declare interface ParsedMention {
642
+ id: string;
643
+ display: string;
644
+ }
645
+
646
+ export declare function parseMentions(text: string): ParsedMention[];
647
+
610
648
  declare interface Participant {
611
649
  role: ParticipantRole;
612
650
  email: string;