@atlaskit/reactions 33.2.11 → 33.2.13

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +2 -2
  3. package/afm-rovo-extension/tsconfig.json +105 -0
  4. package/dist/cjs/analytics/index.js +1 -1
  5. package/dist/es2019/analytics/index.js +1 -1
  6. package/dist/esm/analytics/index.js +1 -1
  7. package/dist/types/components/Counter.d.ts +10 -10
  8. package/dist/types/components/EmojiButton.d.ts +4 -4
  9. package/dist/types/components/Reaction.d.ts +20 -20
  10. package/dist/types/components/ReactionButton.d.ts +9 -9
  11. package/dist/types/components/ReactionPicker.d.ts +34 -34
  12. package/dist/types/components/ReactionPickerNew.d.ts +41 -41
  13. package/dist/types/components/ReactionSummaryButton.d.ts +12 -12
  14. package/dist/types/components/ReactionSummaryView.d.ts +32 -32
  15. package/dist/types/components/ReactionTooltip.d.ts +14 -14
  16. package/dist/types/components/ReactionView.d.ts +4 -4
  17. package/dist/types/components/Reactions.d.ts +73 -73
  18. package/dist/types/components/ReactionsDialog.d.ts +10 -10
  19. package/dist/types/components/ReactionsDialogHeader.d.ts +5 -5
  20. package/dist/types/components/ReactionsList.d.ts +7 -7
  21. package/dist/types/components/RepositionOnUpdate.d.ts +2 -2
  22. package/dist/types/components/Selector.d.ts +8 -8
  23. package/dist/types/components/StaticReaction.d.ts +3 -3
  24. package/dist/types/components/Trigger.d.ts +27 -27
  25. package/dist/types/components/UfoErrorBoundary.d.ts +1 -1
  26. package/dist/types/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +4 -4
  27. package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +10 -10
  28. package/dist/types/hooks/useFocusTrap.d.ts +1 -1
  29. package/dist/types/store/MemoryReactionsStore.d.ts +1 -1
  30. package/dist/types/store/ReactionConsumer.d.ts +4 -4
  31. package/dist/types/types/Actions.d.ts +8 -8
  32. package/dist/types/types/User.d.ts +5 -5
  33. package/dist/types/types/client.d.ts +10 -10
  34. package/dist/types/types/index.d.ts +6 -6
  35. package/dist/types/types/reaction.d.ts +12 -12
  36. package/dist/types/types/store.d.ts +6 -6
  37. package/dist/types-ts4.5/components/Counter.d.ts +10 -10
  38. package/dist/types-ts4.5/components/EmojiButton.d.ts +4 -4
  39. package/dist/types-ts4.5/components/Reaction.d.ts +20 -20
  40. package/dist/types-ts4.5/components/ReactionButton.d.ts +9 -9
  41. package/dist/types-ts4.5/components/ReactionPicker.d.ts +34 -34
  42. package/dist/types-ts4.5/components/ReactionPickerNew.d.ts +41 -41
  43. package/dist/types-ts4.5/components/ReactionSummaryButton.d.ts +12 -12
  44. package/dist/types-ts4.5/components/ReactionSummaryView.d.ts +32 -32
  45. package/dist/types-ts4.5/components/ReactionTooltip.d.ts +14 -14
  46. package/dist/types-ts4.5/components/ReactionView.d.ts +4 -4
  47. package/dist/types-ts4.5/components/Reactions.d.ts +73 -73
  48. package/dist/types-ts4.5/components/ReactionsDialog.d.ts +10 -10
  49. package/dist/types-ts4.5/components/ReactionsDialogHeader.d.ts +5 -5
  50. package/dist/types-ts4.5/components/ReactionsList.d.ts +7 -7
  51. package/dist/types-ts4.5/components/RepositionOnUpdate.d.ts +2 -2
  52. package/dist/types-ts4.5/components/Selector.d.ts +8 -8
  53. package/dist/types-ts4.5/components/StaticReaction.d.ts +3 -3
  54. package/dist/types-ts4.5/components/Trigger.d.ts +27 -27
  55. package/dist/types-ts4.5/components/UfoErrorBoundary.d.ts +1 -1
  56. package/dist/types-ts4.5/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +4 -4
  57. package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +10 -10
  58. package/dist/types-ts4.5/hooks/useFocusTrap.d.ts +1 -1
  59. package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +1 -1
  60. package/dist/types-ts4.5/store/ReactionConsumer.d.ts +4 -4
  61. package/dist/types-ts4.5/types/Actions.d.ts +8 -8
  62. package/dist/types-ts4.5/types/User.d.ts +5 -5
  63. package/dist/types-ts4.5/types/client.d.ts +10 -10
  64. package/dist/types-ts4.5/types/index.d.ts +6 -6
  65. package/dist/types-ts4.5/types/reaction.d.ts +12 -12
  66. package/dist/types-ts4.5/types/store.d.ts +6 -6
  67. package/package.json +5 -5
@@ -19,55 +19,55 @@ export declare const RENDER_REACTIONPICKER_TESTID = "reactionPicker-testid";
19
19
  export declare const RENDER_REACTIONPICKERPANEL_TESTID = "reactionPickerPanel-testid";
20
20
  export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickReactionEmojiIds'>, Partial<Pick<TriggerProps, 'tooltipContent' | 'miniMode'>> {
21
21
  /**
22
- * Provider for loading emojis
23
- */
24
- emojiProvider: Promise<EmojiProvider>;
25
- /**
26
- * Event callback when an emoji button is selected
27
- * @param emojiId emoji unique id
28
- * @param source source where the reaction was picked (either the initial default reactions or the custom reactions picker)
22
+ * Optional Show the "more emoji" selector icon for choosing emoji beyond the default list of emojis (defaults to false)
29
23
  */
30
- onSelection: (emojiId: string, source: ReactionSource) => void;
24
+ allowAllEmojis?: boolean;
31
25
  /**
32
26
  * Optional class name
33
27
  */
34
28
  className?: string;
35
- /**
36
- * Optional Show the "more emoji" selector icon for choosing emoji beyond the default list of emojis (defaults to false)
37
- */
38
- allowAllEmojis?: boolean;
39
29
  /**
40
30
  * Enable/Disable the button to be clickable (defaults to false)
41
31
  */
42
32
  disabled?: boolean;
43
33
  /**
44
- * Optional event handler when the emoji picker is opened
34
+ * Optional emoji picker size to control the size of emoji picker
45
35
  */
46
- onOpen?: () => void;
36
+ emojiPickerSize?: PickerSize;
47
37
  /**
48
- * Optional event handler when the emoji picker is clicked outside and closed
38
+ * Provider for loading emojis
49
39
  */
50
- onCancel?: () => void;
40
+ emojiProvider: Promise<EmojiProvider>;
51
41
  /**
52
- * Optional event handler when the custom emoji picker icon is selected
42
+ * Optional prop for hoverable reaction picker
53
43
  */
54
- onShowMore?: () => void;
44
+ hoverableReactionPicker?: boolean;
55
45
  /**
56
- * Optional emoji picker size to control the size of emoji picker
46
+ * Optional prop to set a delay for the reaction picker when it opens/closes on hover
57
47
  */
58
- emojiPickerSize?: PickerSize;
48
+ hoverableReactionPickerDelay?: number;
59
49
  /**
60
- * Optional prop for using an opaque button background instead of a transparent background
50
+ * Optional prop to say if the reactions component is in a list
61
51
  */
62
- showOpaqueBackground?: boolean;
52
+ isListItem?: boolean;
63
53
  /**
64
- * Optional prop for applying subtle styling to reaction summary and picker
54
+ * Optional event handler when the emoji picker is clicked outside and closed
65
55
  */
66
- subtleReactionsSummaryAndPicker?: boolean;
56
+ onCancel?: () => void;
67
57
  /**
68
- * Optional prop for displaying text to add a reaction
58
+ * Optional event handler when the emoji picker is opened
69
59
  */
70
- showAddReactionText?: boolean;
60
+ onOpen?: () => void;
61
+ /**
62
+ * Event callback when an emoji button is selected
63
+ * @param emojiId emoji unique id
64
+ * @param source source where the reaction was picked (either the initial default reactions or the custom reactions picker)
65
+ */
66
+ onSelection: (emojiId: string, source: ReactionSource) => void;
67
+ /**
68
+ * Optional event handler when the custom emoji picker icon is selected
69
+ */
70
+ onShowMore?: () => void;
71
71
  /**
72
72
  * Optional prop for controlling the picker location
73
73
  */
@@ -81,27 +81,27 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
81
81
  */
82
82
  reactionPickerTriggerText?: string;
83
83
  /**
84
- * Optional prop to say if the reactions component is in a list
84
+ * Optional prop for displaying text to add a reaction
85
85
  */
86
- isListItem?: boolean;
86
+ showAddReactionText?: boolean;
87
87
  /**
88
- * Optional prop for hoverable reaction picker
88
+ * Optional prop for using an opaque button background instead of a transparent background
89
89
  */
90
- hoverableReactionPicker?: boolean;
90
+ showOpaqueBackground?: boolean;
91
91
  /**
92
- * Optional prop to set a delay for the reaction picker when it opens/closes on hover
92
+ * Optional prop for applying subtle styling to reaction summary and picker
93
93
  */
94
- hoverableReactionPickerDelay?: number;
94
+ subtleReactionsSummaryAndPicker?: boolean;
95
95
  }
96
96
  /**
97
97
  * Picker component for adding reactions
98
98
  */
99
99
  export declare const ReactionPicker: React.MemoExoticComponent<(props: ReactionPickerProps) => JSX.Element>;
100
100
  export interface PopperWrapperProps {
101
+ popperModifiers?: PopperProps<{}>['modifiers'];
101
102
  settings: {
102
- showFullPicker: boolean;
103
103
  popperPlacement: Placement;
104
+ showFullPicker: boolean;
104
105
  };
105
- popperModifiers?: PopperProps<{}>['modifiers'];
106
106
  }
107
107
  export declare const PopperWrapper: (props: PropsWithChildren<PopperWrapperProps>) => JSX.Element;
@@ -19,59 +19,63 @@ export declare const RENDER_REACTIONPICKER_TESTID = "reactionPicker-testid";
19
19
  export declare const RENDER_REACTIONPICKERPANEL_TESTID = "reactionPickerPanel-testid";
20
20
  export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickReactionEmojiIds'>, Partial<Pick<TriggerProps, 'tooltipContent' | 'miniMode'>> {
21
21
  /**
22
- * Provider for loading emojis
23
- */
24
- emojiProvider: Promise<EmojiProvider>;
25
- /**
26
- * Event callback when an emoji button is selected
27
- * @param emojiId emoji unique id
28
- * @param source source where the reaction was picked (either the initial default reactions or the custom reactions picker)
22
+ * Optional Show the "more emoji" selector icon for choosing emoji beyond the default list of emojis (defaults to false)
29
23
  */
30
- onSelection: (emojiId: string, source: ReactionSource) => void;
24
+ allowAllEmojis?: boolean;
31
25
  /**
32
26
  * Optional class name
33
27
  */
34
28
  className?: string;
35
- /**
36
- * Optional Show the "more emoji" selector icon for choosing emoji beyond the default list of emojis (defaults to false)
37
- */
38
- allowAllEmojis?: boolean;
39
29
  /**
40
30
  * Enable/Disable the button to be clickable (defaults to false)
41
31
  */
42
32
  disabled?: boolean;
43
33
  /**
44
- * Optional event handler when the emoji picker is opened
34
+ * Optional emoji picker size to control the size of emoji picker
45
35
  */
46
- onOpen?: () => void;
36
+ emojiPickerSize?: PickerSize;
47
37
  /**
48
- * Optional event handler when the emoji picker is clicked outside and closed
38
+ * Provider for loading emojis
49
39
  */
50
- onCancel?: () => void;
40
+ emojiProvider: Promise<EmojiProvider>;
51
41
  /**
52
- * Optional event handler when the custom emoji picker icon is selected
42
+ * Optional prop for hoverable reaction picker
53
43
  */
54
- onShowMore?: () => void;
44
+ hoverableReactionPicker?: boolean;
55
45
  /**
56
- * Optional emoji picker size to control the size of emoji picker
46
+ * Optional prop to set a delay for the reaction picker when it opens/closes on hover
57
47
  */
58
- emojiPickerSize?: PickerSize;
48
+ hoverableReactionPickerDelay?: number;
59
49
  /**
60
- * Optional prop for using an opaque button background instead of a transparent background
50
+ * Optional prop to say if the reactions component is in a list
61
51
  */
62
- showOpaqueBackground?: boolean;
52
+ isListItem?: boolean;
63
53
  /**
64
- * Optional prop for applying subtle styling to reaction summary and picker
54
+ * Optional event handler when the emoji picker is clicked outside and closed
65
55
  */
66
- subtleReactionsSummaryAndPicker?: boolean;
56
+ onCancel?: () => void;
67
57
  /**
68
- * Optional prop for displaying text to add a reaction
58
+ * Optional event handler when the emoji picker is opened
69
59
  */
70
- showAddReactionText?: boolean;
60
+ onOpen?: () => void;
61
+ /**
62
+ * Event callback when an emoji button is selected
63
+ * @param emojiId emoji unique id
64
+ * @param source source where the reaction was picked (either the initial default reactions or the custom reactions picker)
65
+ */
66
+ onSelection: (emojiId: string, source: ReactionSource) => void;
67
+ /**
68
+ * Optional event handler when the custom emoji picker icon is selected
69
+ */
70
+ onShowMore?: () => void;
71
71
  /**
72
72
  * Optional prop for controlling the picker location
73
73
  */
74
74
  reactionPickerPlacement?: Placement;
75
+ /**
76
+ * Optional prop to set the strategy of the reaction picker popup
77
+ */
78
+ reactionPickerStrategy?: PopperProps<{}>['strategy'];
75
79
  /**
76
80
  * Optional prop for controlling icon inside Trigger
77
81
  */
@@ -81,34 +85,30 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
81
85
  */
82
86
  reactionPickerTriggerText?: string;
83
87
  /**
84
- * Optional prop to say if the reactions component is in a list
85
- */
86
- isListItem?: boolean;
87
- /**
88
- * Optional prop for hoverable reaction picker
88
+ * Optional prop for displaying text to add a reaction
89
89
  */
90
- hoverableReactionPicker?: boolean;
90
+ showAddReactionText?: boolean;
91
91
  /**
92
- * Optional prop to set a delay for the reaction picker when it opens/closes on hover
92
+ * Optional prop for using an opaque button background instead of a transparent background
93
93
  */
94
- hoverableReactionPickerDelay?: number;
94
+ showOpaqueBackground?: boolean;
95
95
  /**
96
- * Optional prop to set the strategy of the reaction picker popup
96
+ * Optional prop for applying subtle styling to reaction summary and picker
97
97
  */
98
- reactionPickerStrategy?: PopperProps<{}>['strategy'];
98
+ subtleReactionsSummaryAndPicker?: boolean;
99
99
  }
100
100
  /**
101
101
  * Picker component for adding reactions
102
102
  */
103
103
  export declare const ReactionPicker: React.MemoExoticComponent<(props: ReactionPickerProps) => JSX.Element>;
104
104
  export interface PopperWrapperProps {
105
- triggerRef: HTMLDivElement | HTMLButtonElement | null;
106
- settings: {
107
- showFullPicker: boolean;
108
- popperPlacement: Placement;
109
- };
110
105
  isOpen: boolean;
111
106
  onClose: () => void;
112
107
  popperModifiers?: PopperProps<{}>['modifiers'];
108
+ settings: {
109
+ popperPlacement: Placement;
110
+ showFullPicker: boolean;
111
+ };
112
+ triggerRef: HTMLDivElement | HTMLButtonElement | null;
113
113
  }
114
114
  export declare const PopperWrapper: (props: PropsWithChildren<PopperWrapperProps>) => JSX.Element;
@@ -1,21 +1,13 @@
1
1
  import { type ReactionsProps } from './Reactions';
2
2
  interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'useButtonAlignmentStyling'> {
3
- /**
4
- * event handler when the summary button is clicked to view all reactions
5
- */
6
- onClick: () => void;
7
3
  /**
8
4
  * The number of emojis to show in the summary button
9
5
  */
10
6
  emojisToShow?: number;
11
7
  /**
12
- * Optional prop for using an opaque button background instead of a transparent background
13
- */
14
- showOpaqueBackground?: boolean;
15
- /**
16
- * Optional prop for applying subtle styling to reaction summary button
8
+ * event handler when the summary button is clicked to view all reactions
17
9
  */
18
- subtleReactionsSummaryAndPicker?: boolean;
10
+ onClick: () => void;
19
11
  /**
20
12
  * Optional event handler when mouse enters the button
21
13
  */
@@ -25,13 +17,21 @@ interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider
25
17
  */
26
18
  onMouseLeave?: () => void;
27
19
  /**
28
- * Optional prop for the optimistic image URL
20
+ * Optional prop for using an opaque button background instead of a transparent background
29
21
  */
30
- summaryGetOptimisticImageURL?: (emojiId: string) => string;
22
+ showOpaqueBackground?: boolean;
23
+ /**
24
+ * Optional prop for applying subtle styling to reaction summary button
25
+ */
26
+ subtleReactionsSummaryAndPicker?: boolean;
31
27
  /**
32
28
  * Optional prop to add an icon to the end of the summary button
33
29
  */
34
30
  summaryButtonIconAfter?: React.ReactNode;
31
+ /**
32
+ * Optional prop for the optimistic image URL
33
+ */
34
+ summaryGetOptimisticImageURL?: (emojiId: string) => string;
35
35
  /**
36
36
  * Optional prop to set the most recently clicked emoji id
37
37
  */
@@ -8,67 +8,67 @@ import { type TriggerProps } from './Trigger';
8
8
  export declare const RENDER_SUMMARY_VIEW_POPUP_TESTID = "render-summary-view-popup";
9
9
  interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji' | 'allowUserDialog' | 'allowSelectFromSummaryView' | 'emojiPickerSize' | 'useButtonAlignmentStyling' | 'reactionPickerTriggerText'>, Pick<TriggerProps, 'tooltipContent' | 'reactionPickerTriggerIcon' | 'disabled'> {
10
10
  /**
11
- * Optional prop to change the placement of the summary popup reaction list
12
- */
13
- placement?: Placement;
14
- /**
15
- * event handler when a a reaction button is clicked inside the summary
11
+ * Optional prop for enabling the Reactions Dialog
16
12
  */
17
- onReactionClick: ReactionClick;
13
+ allowUserDialog?: boolean;
18
14
  /**
19
- * Event callback when an emoji button is selected
20
- * @param emojiId emoji unique id
21
- * @param source source where the reaction was picked (either the initial default reactions or the custom reactions picker)
15
+ * Optional function when the user wants to open the Reactions Dialog
22
16
  */
23
- onSelection: (emojiId: string, source: ReactionSource) => void;
17
+ handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void;
24
18
  /**
25
- * Optional event when the mouse cursor hovers over a reaction button inside the summary
19
+ * Optional prop to make the summary view open on hover
26
20
  */
27
- onReactionMouseEnter?: ReactionMouseEnter;
21
+ hoverableSummaryView?: boolean;
28
22
  /**
29
- * Optional event when focused a reaction inside the summary
23
+ * Optional prop to set a delay for the summary view when it opens/closes on hover
30
24
  */
31
- onReactionFocused?: ReactionFocused;
25
+ hoverableSummaryViewDelay?: number;
32
26
  /**
33
- * Optional prop for using an opaque button background instead of a transparent background
27
+ * Optional prop for controlling if the reactions component is view only, disabling adding reactions
34
28
  */
35
- showOpaqueBackground?: boolean;
29
+ isViewOnly?: boolean;
36
30
  /**
37
- * Optional prop for applying subtle styling to reaction picker
31
+ * Optional event handler when the emoji picker is opened
38
32
  */
39
- subtleReactionsSummaryAndPicker?: boolean;
33
+ onOpen?: () => void;
40
34
  /**
41
- * Optional prop for enabling the Reactions Dialog
35
+ * event handler when a a reaction button is clicked inside the summary
42
36
  */
43
- allowUserDialog?: boolean;
37
+ onReactionClick: ReactionClick;
44
38
  /**
45
- * Optional function when the user wants to open the Reactions Dialog
39
+ * Optional event when focused a reaction inside the summary
46
40
  */
47
- handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void;
41
+ onReactionFocused?: ReactionFocused;
48
42
  /**
49
- * Optional prop for controlling if the reactions component is view only, disabling adding reactions
43
+ * Optional event when the mouse cursor hovers over a reaction button inside the summary
50
44
  */
51
- isViewOnly?: boolean;
45
+ onReactionMouseEnter?: ReactionMouseEnter;
52
46
  /**
53
- * Optional event handler when the emoji picker is opened
47
+ * Event callback when an emoji button is selected
48
+ * @param emojiId emoji unique id
49
+ * @param source source where the reaction was picked (either the initial default reactions or the custom reactions picker)
54
50
  */
55
- onOpen?: () => void;
51
+ onSelection: (emojiId: string, source: ReactionSource) => void;
56
52
  /**
57
- * Optional prop to make the summary view open on hover
53
+ * Optional prop to change the placement of the summary popup reaction list
58
54
  */
59
- hoverableSummaryView?: boolean;
55
+ placement?: Placement;
60
56
  /**
61
- * Optional prop to set a delay for the summary view when it opens/closes on hover
57
+ * Optional prop for using an opaque button background instead of a transparent background
62
58
  */
63
- hoverableSummaryViewDelay?: number;
59
+ showOpaqueBackground?: boolean;
64
60
  /**
65
- * Optional prop for the optimistic image URL
61
+ * Optional prop for applying subtle styling to reaction picker
66
62
  */
67
- summaryGetOptimisticImageURL?: (emojiId: string) => string;
63
+ subtleReactionsSummaryAndPicker?: boolean;
68
64
  /**
69
65
  * Optional prop to control if the side picker is shown
70
66
  */
71
67
  summaryButtonIconAfter?: React.ReactNode;
68
+ /**
69
+ * Optional prop for the optimistic image URL
70
+ */
71
+ summaryGetOptimisticImageURL?: (emojiId: string) => string;
72
72
  /**
73
73
  * Optional prop to set the most recently clicked id
74
74
  */
@@ -12,32 +12,32 @@ export declare const verticalMargin = 5;
12
12
  export declare const RENDER_REACTIONTOOLTIP_TESTID = "render-reactionTooltip";
13
13
  export type ReactionTooltipProps = PropsWithChildren<{
14
14
  /**
15
- * Optional name for the reaction emoji
15
+ * Optional prop for enabling the Reactions Dialog
16
16
  */
17
- emojiName?: string;
17
+ allowUserDialog?: boolean;
18
18
  /**
19
- * Info on the emoji reaction to render
19
+ * Function that hides the tooltip
20
20
  */
21
- reaction: ReactionSummary;
21
+ dismissTooltip: () => void;
22
22
  /**
23
- * Optional Max users to show in the displayed tooltip (defaults to 5)
23
+ * Optional name for the reaction emoji
24
24
  */
25
- maxReactions?: number;
25
+ emojiName?: string;
26
26
  /**
27
- * Optional flag for enabling tooltip (defaults to true)
27
+ * Optional function when the user wants to open the Reactions Dialog
28
28
  */
29
- isEnabled?: boolean;
29
+ handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void;
30
30
  /**
31
- * Optional prop for enabling the Reactions Dialog
31
+ * Optional flag for enabling tooltip (defaults to true)
32
32
  */
33
- allowUserDialog?: boolean;
33
+ isEnabled?: boolean;
34
34
  /**
35
- * Optional function when the user wants to open the Reactions Dialog
35
+ * Optional Max users to show in the displayed tooltip (defaults to 5)
36
36
  */
37
- handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void;
37
+ maxReactions?: number;
38
38
  /**
39
- * Function that hides the tooltip
39
+ * Info on the emoji reaction to render
40
40
  */
41
- dismissTooltip: () => void;
41
+ reaction: ReactionSummary;
42
42
  }>;
43
43
  export declare const ReactionTooltip: ({ children, emojiName, reaction: { users }, maxReactions, isEnabled, allowUserDialog, handleOpenReactionsDialog, dismissTooltip, }: ReactionTooltipProps) => JSX.Element;
@@ -1,12 +1,12 @@
1
1
  import { type ReactionSummary, type ProfileCardWrapper } from '../types';
2
2
  export interface ReactionViewProps {
3
- /**
4
- * Selected reaction to get user data from
5
- */
6
- reaction: ReactionSummary;
7
3
  /**
8
4
  * Optional ProfileWrapper component to show profile card on hover
9
5
  */
10
6
  ProfileCardWrapper?: ProfileCardWrapper;
7
+ /**
8
+ * Selected reaction to get user data from
9
+ */
10
+ reaction: ReactionSummary;
11
11
  }
12
12
  export declare const ReactionView: ({ reaction, ProfileCardWrapper }: ReactionViewProps) => JSX.Element;