@atlaskit/reactions 22.7.0 → 22.7.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.
Files changed (165) hide show
  1. package/CHANGELOG.md +1184 -1178
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/dist/cjs/analytics/index.js +1 -1
  4. package/dist/cjs/components/Counter/Counter.js +18 -4
  5. package/dist/cjs/components/Counter/styles.js +8 -0
  6. package/dist/cjs/components/EmojiButton/EmojiButton.js +21 -5
  7. package/dist/cjs/components/FlashAnimation/FlashAnimation.js +6 -1
  8. package/dist/cjs/components/FlashAnimation/styles.js +8 -0
  9. package/dist/cjs/components/Reaction/Reaction.js +45 -8
  10. package/dist/cjs/components/Reaction/styles.js +12 -0
  11. package/dist/cjs/components/ReactionDialog/ReactionView.js +40 -28
  12. package/dist/cjs/components/ReactionDialog/ReactionsDialog.js +2 -0
  13. package/dist/cjs/components/ReactionDialog/ReactionsList.js +6 -1
  14. package/dist/cjs/components/ReactionDialog/styles.js +40 -1
  15. package/dist/cjs/components/ReactionParticleEffect/ReactionParticleEffect.js +20 -12
  16. package/dist/cjs/components/ReactionParticleEffect/styles.js +9 -0
  17. package/dist/cjs/components/ReactionPicker/ReactionPicker.js +19 -10
  18. package/dist/cjs/components/ReactionPicker/styles.js +13 -0
  19. package/dist/cjs/components/ReactionTooltip/ReactionTooltip.js +6 -1
  20. package/dist/cjs/components/ReactionTooltip/styles.js +12 -0
  21. package/dist/cjs/components/Reactions/Reactions.js +57 -44
  22. package/dist/cjs/components/Reactions/styles.js +7 -0
  23. package/dist/cjs/components/Selector/Selector.js +60 -31
  24. package/dist/cjs/components/Selector/styles.js +13 -20
  25. package/dist/cjs/components/ShowMore/ShowMore.js +13 -31
  26. package/dist/cjs/components/ShowMore/index.js +0 -6
  27. package/dist/cjs/components/Trigger/Trigger.js +6 -1
  28. package/dist/cjs/components/Trigger/styles.js +3 -1
  29. package/dist/es2019/analytics/index.js +1 -1
  30. package/dist/es2019/components/Counter/Counter.js +17 -4
  31. package/dist/es2019/components/Counter/styles.js +8 -0
  32. package/dist/es2019/components/EmojiButton/EmojiButton.js +20 -5
  33. package/dist/es2019/components/FlashAnimation/FlashAnimation.js +5 -1
  34. package/dist/es2019/components/FlashAnimation/styles.js +8 -0
  35. package/dist/es2019/components/Reaction/Reaction.js +45 -9
  36. package/dist/es2019/components/Reaction/styles.js +12 -0
  37. package/dist/es2019/components/ReactionDialog/ReactionView.js +39 -28
  38. package/dist/es2019/components/ReactionDialog/ReactionsDialog.js +1 -0
  39. package/dist/es2019/components/ReactionDialog/ReactionsList.js +5 -1
  40. package/dist/es2019/components/ReactionDialog/styles.js +40 -1
  41. package/dist/es2019/components/ReactionParticleEffect/ReactionParticleEffect.js +15 -9
  42. package/dist/es2019/components/ReactionParticleEffect/styles.js +9 -0
  43. package/dist/es2019/components/ReactionPicker/ReactionPicker.js +19 -9
  44. package/dist/es2019/components/ReactionPicker/styles.js +13 -0
  45. package/dist/es2019/components/ReactionTooltip/ReactionTooltip.js +5 -1
  46. package/dist/es2019/components/ReactionTooltip/styles.js +12 -0
  47. package/dist/es2019/components/Reactions/Reactions.js +55 -43
  48. package/dist/es2019/components/Reactions/styles.js +7 -0
  49. package/dist/es2019/components/Selector/Selector.js +55 -24
  50. package/dist/es2019/components/Selector/styles.js +12 -16
  51. package/dist/es2019/components/ShowMore/ShowMore.js +9 -25
  52. package/dist/es2019/components/ShowMore/index.js +1 -1
  53. package/dist/es2019/components/Trigger/Trigger.js +5 -1
  54. package/dist/es2019/components/Trigger/styles.js +5 -0
  55. package/dist/esm/analytics/index.js +1 -1
  56. package/dist/esm/components/Counter/Counter.js +17 -4
  57. package/dist/esm/components/Counter/styles.js +8 -0
  58. package/dist/esm/components/EmojiButton/EmojiButton.js +20 -5
  59. package/dist/esm/components/FlashAnimation/FlashAnimation.js +5 -1
  60. package/dist/esm/components/FlashAnimation/styles.js +8 -0
  61. package/dist/esm/components/Reaction/Reaction.js +45 -9
  62. package/dist/esm/components/Reaction/styles.js +12 -0
  63. package/dist/esm/components/ReactionDialog/ReactionView.js +39 -28
  64. package/dist/esm/components/ReactionDialog/ReactionsDialog.js +1 -0
  65. package/dist/esm/components/ReactionDialog/ReactionsList.js +5 -1
  66. package/dist/esm/components/ReactionDialog/styles.js +40 -1
  67. package/dist/esm/components/ReactionParticleEffect/ReactionParticleEffect.js +19 -12
  68. package/dist/esm/components/ReactionParticleEffect/styles.js +9 -0
  69. package/dist/esm/components/ReactionPicker/ReactionPicker.js +19 -9
  70. package/dist/esm/components/ReactionPicker/styles.js +13 -0
  71. package/dist/esm/components/ReactionTooltip/ReactionTooltip.js +5 -1
  72. package/dist/esm/components/ReactionTooltip/styles.js +12 -0
  73. package/dist/esm/components/Reactions/Reactions.js +56 -44
  74. package/dist/esm/components/Reactions/styles.js +7 -0
  75. package/dist/esm/components/Selector/Selector.js +61 -33
  76. package/dist/esm/components/Selector/styles.js +13 -19
  77. package/dist/esm/components/ShowMore/ShowMore.js +10 -28
  78. package/dist/esm/components/ShowMore/index.js +1 -1
  79. package/dist/esm/components/Trigger/Trigger.js +5 -1
  80. package/dist/esm/components/Trigger/styles.js +3 -0
  81. package/dist/types/MockReactionsClient.d.ts +1 -1
  82. package/dist/types/analytics/index.d.ts +3 -3
  83. package/dist/types/client/ReactionServiceClient.d.ts +1 -1
  84. package/dist/types/components/EmojiButton/EmojiButton.d.ts +2 -2
  85. package/dist/types/components/FlashAnimation/FlashAnimation.d.ts +1 -1
  86. package/dist/types/components/Reaction/Reaction.d.ts +1 -5
  87. package/dist/types/components/ReactionDialog/ReactionView.d.ts +3 -3
  88. package/dist/types/components/ReactionDialog/ReactionsDialog.d.ts +3 -3
  89. package/dist/types/components/ReactionDialog/ReactionsList.d.ts +2 -2
  90. package/dist/types/components/ReactionDialog/styles.d.ts +1 -1
  91. package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +5 -5
  92. package/dist/types/components/ReactionPicker/RepositionOnUpdate.d.ts +1 -1
  93. package/dist/types/components/ReactionTooltip/ReactionTooltip.d.ts +2 -2
  94. package/dist/types/components/ReactionTooltip/index.d.ts +1 -1
  95. package/dist/types/components/Selector/Selector.d.ts +2 -2
  96. package/dist/types/components/Selector/styles.d.ts +0 -7
  97. package/dist/types/components/ShowMore/ShowMore.d.ts +3 -21
  98. package/dist/types/components/ShowMore/index.d.ts +1 -1
  99. package/dist/types/components/Trigger/Trigger.d.ts +2 -2
  100. package/dist/types/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +3 -3
  101. package/dist/types/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +2 -2
  102. package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
  103. package/dist/types/containers/index.d.ts +1 -1
  104. package/dist/types/hooks/useCloseManager.d.ts +1 -1
  105. package/dist/types/hooks/useFocusTrap.d.ts +1 -1
  106. package/dist/types/shared/constants.d.ts +1 -1
  107. package/dist/types/shared/utils.d.ts +1 -1
  108. package/dist/types/store/MemoryReactionsStore.d.ts +1 -1
  109. package/dist/types/store/ReactionConsumer.d.ts +1 -1
  110. package/dist/types/store/utils.d.ts +1 -1
  111. package/dist/types/types/client.d.ts +1 -1
  112. package/dist/types/types/reaction.d.ts +2 -2
  113. package/dist/types/types/store.d.ts +3 -3
  114. package/dist/types-ts4.5/MockReactionsClient.d.ts +1 -1
  115. package/dist/types-ts4.5/analytics/index.d.ts +3 -3
  116. package/dist/types-ts4.5/client/ReactionServiceClient.d.ts +1 -1
  117. package/dist/types-ts4.5/components/EmojiButton/EmojiButton.d.ts +2 -2
  118. package/dist/types-ts4.5/components/FlashAnimation/FlashAnimation.d.ts +1 -1
  119. package/dist/types-ts4.5/components/Reaction/Reaction.d.ts +1 -5
  120. package/dist/types-ts4.5/components/ReactionDialog/ReactionView.d.ts +3 -3
  121. package/dist/types-ts4.5/components/ReactionDialog/ReactionsDialog.d.ts +3 -3
  122. package/dist/types-ts4.5/components/ReactionDialog/ReactionsList.d.ts +2 -2
  123. package/dist/types-ts4.5/components/ReactionDialog/styles.d.ts +1 -1
  124. package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +5 -5
  125. package/dist/types-ts4.5/components/ReactionPicker/RepositionOnUpdate.d.ts +1 -1
  126. package/dist/types-ts4.5/components/ReactionTooltip/ReactionTooltip.d.ts +2 -2
  127. package/dist/types-ts4.5/components/ReactionTooltip/index.d.ts +1 -1
  128. package/dist/types-ts4.5/components/Selector/Selector.d.ts +2 -2
  129. package/dist/types-ts4.5/components/Selector/styles.d.ts +0 -7
  130. package/dist/types-ts4.5/components/ShowMore/ShowMore.d.ts +3 -21
  131. package/dist/types-ts4.5/components/ShowMore/index.d.ts +1 -1
  132. package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +2 -2
  133. package/dist/types-ts4.5/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +3 -3
  134. package/dist/types-ts4.5/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +2 -2
  135. package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
  136. package/dist/types-ts4.5/containers/index.d.ts +1 -1
  137. package/dist/types-ts4.5/hooks/useCloseManager.d.ts +1 -1
  138. package/dist/types-ts4.5/hooks/useFocusTrap.d.ts +1 -1
  139. package/dist/types-ts4.5/shared/constants.d.ts +1 -1
  140. package/dist/types-ts4.5/shared/utils.d.ts +1 -1
  141. package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +1 -1
  142. package/dist/types-ts4.5/store/ReactionConsumer.d.ts +1 -1
  143. package/dist/types-ts4.5/store/utils.d.ts +1 -1
  144. package/dist/types-ts4.5/types/client.d.ts +1 -1
  145. package/dist/types-ts4.5/types/reaction.d.ts +2 -2
  146. package/dist/types-ts4.5/types/store.d.ts +3 -3
  147. package/docs/0-intro.tsx +42 -48
  148. package/docs/1-connected-reaction-picker.tsx +25 -25
  149. package/docs/2-connected-reactions-view.tsx +25 -25
  150. package/docs/3-reactions-store.tsx +29 -30
  151. package/docs/4-reaction-service-client.tsx +5 -5
  152. package/docs/5-graphql-support.tsx +24 -26
  153. package/local-config-example.ts +3 -3
  154. package/package.json +109 -110
  155. package/report.api.md +241 -273
  156. package/dist/cjs/components/EmojiButton/styles.js +0 -23
  157. package/dist/cjs/components/ShowMore/styles.js +0 -36
  158. package/dist/es2019/components/EmojiButton/styles.js +0 -16
  159. package/dist/es2019/components/ShowMore/styles.js +0 -29
  160. package/dist/esm/components/EmojiButton/styles.js +0 -16
  161. package/dist/esm/components/ShowMore/styles.js +0 -29
  162. package/dist/types/components/EmojiButton/styles.d.ts +0 -1
  163. package/dist/types/components/ShowMore/styles.d.ts +0 -3
  164. package/dist/types-ts4.5/components/EmojiButton/styles.d.ts +0 -1
  165. package/dist/types-ts4.5/components/ShowMore/styles.d.ts +0 -3
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { css } from '@emotion/react';
3
4
  import { B400, N500, N800 } from '@atlaskit/theme/colors';
4
5
  import { NUMBER_OF_REACTIONS_TO_DISPLAY } from '../../shared/constants';
@@ -16,23 +17,30 @@ border blue below the reaction. Setting Border Width based on number of reaction
16
17
  in case the container overflows */
17
18
  export const containerStyle = reactionsBorderWidth => css({
18
19
  overflow: 'hidden',
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
19
21
  maxWidth: `${CONTAINER_WIDTH}px`,
20
22
  height: '100%',
21
23
  display: 'flex',
22
24
  justifyContent: 'start',
23
25
  position: 'relative',
24
26
  scrollBehavior: 'smooth',
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
25
28
  '&:after': {
26
29
  content: '""',
27
30
  zIndex: 0,
28
31
  display: 'block',
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
33
  minWidth: `${reactionsBorderWidth}%`,
30
34
  bottom: '0px',
31
35
  position: 'absolute'
32
36
  }
33
37
  });
38
+
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
34
40
  export const titleStyle = css({
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
35
42
  '& > h1': {
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
36
44
  fontSize: '24px!important',
37
45
  color: `${`var(--ds-text, ${N800})`}`
38
46
  }
@@ -46,13 +54,17 @@ export const counterStyle = isSelected => css({
46
54
  alignSelf: 'center',
47
55
  lineHeight: '14px',
48
56
  fontSize: '11px',
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
49
58
  fontWeight: isSelected ? 700 : 400,
50
59
  paddingRight: '0px',
51
60
  marginTop: "var(--ds-space-075, 6px)",
61
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
52
62
  '> div': {
53
63
  width: '100%',
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
54
65
  padding: `${"var(--ds-space-0, 0px)"}!important`,
55
66
  //Counter component has its own styles overriding them to match designs
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
56
68
  color: isSelected ? `${`var(--ds-text, ${B400})`}!important` : `2px solid ${`var(--ds-text, ${N500})`}!important`
57
69
  }
58
70
  });
@@ -64,7 +76,9 @@ const fadedCss = (edge, theme) => css({
64
76
  width: `${REACTIONS_CONTAINER_WIDTH}px`,
65
77
  height: `${REACTION_CONTAINER_HEIGHT}px`,
66
78
  zIndex: 0,
67
- background: theme === 'dark' ? `linear-gradient(${containerEdgeAngle[edge]}deg, rgba(34, 39, 43, 0.95) 40.23%, rgba(34, 39, 43, 0.55) 58.33%, rgba(34, 39, 43, 0) 77.49%)` : `linear-gradient(${containerEdgeAngle[edge]}deg, rgba(255, 255, 255, 0.95) 40.23%, rgba(255, 255, 255, 0.55) 58.33%, rgba(255, 255, 255, 0) 77.49%)`
79
+ background:
80
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
81
+ theme === 'dark' ? `linear-gradient(${containerEdgeAngle[edge]}deg, rgba(34, 39, 43, 0.95) 40.23%, rgba(34, 39, 43, 0.55) 58.33%, rgba(34, 39, 43, 0) 77.49%)` : `linear-gradient(${containerEdgeAngle[edge]}deg, rgba(255, 255, 255, 0.95) 40.23%, rgba(255, 255, 255, 0.55) 58.33%, rgba(255, 255, 255, 0) 77.49%)`
68
82
  });
69
83
  export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
70
84
  flexShrink: 0,
@@ -78,19 +92,25 @@ export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
78
92
  marginRight: REACTION_RIGHT_MARGIN_TOKEN,
79
93
  boxSizing: 'border-box',
80
94
  position: 'relative',
95
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
81
96
  '> div': {
82
97
  minWidth: `${REACTIONS_CONTAINER_WIDTH}px`,
83
98
  minHeight: `${REACTION_CONTAINER_HEIGHT}px`,
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
84
100
  padding: '0px !important',
85
101
  alignItems: 'center',
86
102
  justifyContent: 'center'
87
103
  },
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
88
105
  '& > span': {
89
106
  minHeight: '16px',
90
107
  minWidth: '16px'
91
108
  },
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
92
110
  '&.disabled:after': fadedCss('rightEdge', theme),
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
93
112
  '&.disabled + &.disabled:after': fadedCss('leftEdge', theme),
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
94
114
  '&:after': isSelected ? {
95
115
  content: '""',
96
116
  borderBottom: `2px solid ${`var(--ds-text, ${B400})`}`,
@@ -109,18 +129,25 @@ export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
109
129
  zIndex: 1
110
130
  }
111
131
  });
132
+
133
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
112
134
  export const navigationContainerStyle = css({
135
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
113
136
  '> button': {
114
137
  cursor: 'pointer'
115
138
  },
139
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
116
140
  'button:last-child': {
117
141
  marginLeft: "var(--ds-space-200, 16px)"
118
142
  }
119
143
  });
144
+
145
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
120
146
  export const reactionViewStyle = css({
121
147
  marginTop: "var(--ds-space-300, 24px)",
122
148
  display: 'flex',
123
149
  flexDirection: 'column',
150
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
124
151
  p: {
125
152
  margin: 0,
126
153
  color: `${`var(--ds-text, ${N800})`}`,
@@ -128,40 +155,52 @@ export const reactionViewStyle = css({
128
155
  fontWeight: 600,
129
156
  fontSize: 16,
130
157
  lineHeight: '20px',
158
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
131
159
  '> span': {
132
160
  marginRight: "var(--ds-space-100, 8px)"
133
161
  }
134
162
  }
135
163
  });
164
+
165
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
136
166
  export const userListStyle = css({
137
167
  listStyle: 'none',
138
168
  marginTop: "var(--ds-space-200, 16px)",
139
169
  padding: 0,
140
170
  textAlign: 'left',
171
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
141
172
  li: {
142
173
  color: `${`var(--ds-text, ${N500})`}`,
143
174
  fontSize: 14
144
175
  }
145
176
  });
177
+
178
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
146
179
  export const userStyle = css({
147
180
  display: 'flex',
148
181
  alignItems: 'center',
149
182
  padding: `${"var(--ds-space-100, 8px)"} 0px ${"var(--ds-space-100, 8px)"} 0px`,
183
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
150
184
  '> span': {
151
185
  marginLeft: "var(--ds-space-200, 16px)"
152
186
  }
153
187
  });
188
+
189
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
154
190
  export const customTabListStyles = css({
155
191
  overflow: 'auto',
156
192
  scrollBehavior: 'smooth',
157
193
  display: 'flex',
158
194
  paddingBottom: "var(--ds-space-050, 4px)",
195
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
159
196
  'div[role=tablist]': {
160
197
  flexGrow: 1,
161
198
  // paddingInline exists to maintain styling prior to @atlaskit/tabs update that removed baked in horizontal padding
162
199
  paddingInline: "var(--ds-space-100, 8px)"
163
200
  }
164
201
  });
202
+
203
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
165
204
  export const centerSpinner = css({
166
205
  display: 'flex',
167
206
  justifyContent: 'center',
@@ -1,20 +1,26 @@
1
1
  /** @jsx jsx */
2
2
  import { ResourcedEmoji } from '@atlaskit/emoji';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
4
  import { jsx } from '@emotion/react';
4
5
  import { containerStyle, reactionParticleStyle } from './styles';
5
6
  export const PARTICLE_COUNT = 4;
6
7
  export const ReactionParticleEffect = ({
7
8
  emojiProvider,
8
9
  emojiId
9
- }) => jsx("div", {
10
+ }) =>
11
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
12
+ jsx("div", {
10
13
  css: containerStyle
11
14
  }, [...Array(PARTICLE_COUNT)].map((_, index) => {
12
- return jsx("div", {
13
- key: index,
14
- css: reactionParticleStyle
15
- }, jsx(ResourcedEmoji, {
16
- emojiProvider: emojiProvider,
17
- emojiId: emojiId,
18
- fitToHeight: 16
19
- }));
15
+ return (
16
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
17
+ jsx("div", {
18
+ key: index,
19
+ css: reactionParticleStyle
20
+ }, jsx(ResourcedEmoji, {
21
+ emojiProvider: emojiProvider,
22
+ emojiId: emojiId,
23
+ fitToHeight: 16
24
+ }))
25
+ );
20
26
  }));
@@ -1,4 +1,6 @@
1
1
  import { layers } from '@atlaskit/theme/constants';
2
+
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
4
  import { css, keyframes } from '@emotion/react';
3
5
  const fade = keyframes({
4
6
  '0%': {
@@ -22,12 +24,16 @@ const float = keyframes({
22
24
  transform: 'translateY(-120px) scale(1.7)'
23
25
  }
24
26
  });
27
+
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
25
29
  export const containerStyle = css({
26
30
  position: 'relative',
27
31
  left: 8,
28
32
  // Ensure the effect displays above tooltips
29
33
  zIndex: layers.tooltip() + 1
30
34
  });
35
+
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
31
37
  export const reactionParticleStyle = css({
32
38
  position: 'absolute',
33
39
  top: 0,
@@ -37,14 +43,17 @@ export const reactionParticleStyle = css({
37
43
  animation: `${fade} ease-in-out, ${float} ease`,
38
44
  animationDuration: '700ms',
39
45
  // Override position and delay for each particle
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
40
47
  ':nth-child(2)': {
41
48
  left: -5,
42
49
  animationDelay: '0.15s'
43
50
  },
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
44
52
  ':nth-child(3)': {
45
53
  left: 8,
46
54
  animationDelay: '0.3s'
47
55
  },
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
48
57
  ':nth-child(4)': {
49
58
  left: -1,
50
59
  animationDelay: '0.45s'
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
4
  import { jsx } from '@emotion/react';
4
5
  import { FormattedMessage } from 'react-intl-next';
5
6
  import { EmojiPicker } from '@atlaskit/emoji/picker';
@@ -30,11 +31,11 @@ export const RENDER_REACTIONPICKERPANEL_TESTID = 'reactionPickerPanel-testid';
30
31
  const PICKER_CONTROL_ID = 'emoji-picker';
31
32
  const popperModifiers = [
32
33
  /**
33
- Removing this applyStyle modifier as it throws client errors ref:
34
- https://popper.js.org/docs/v1/#modifiers
35
- https://popper.js.org/docs/v1/#modifiers..applyStyle
36
- { name: 'applyStyle', enabled: false },
37
- */
34
+ Removing this applyStyle modifier as it throws client errors ref:
35
+ https://popper.js.org/docs/v1/#modifiers
36
+ https://popper.js.org/docs/v1/#modifiers..applyStyle
37
+ { name: 'applyStyle', enabled: false },
38
+ */
38
39
  {
39
40
  name: 'hide',
40
41
  enabled: false
@@ -167,7 +168,10 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
167
168
  (_updatePopper$current = updatePopper.current) === null || _updatePopper$current === void 0 ? void 0 : _updatePopper$current.call(updatePopper);
168
169
  }, [settings]);
169
170
  return jsx("div", {
170
- className: wrapperClassName,
171
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
172
+ className: wrapperClassName
173
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
174
+ ,
171
175
  css: pickerStyle,
172
176
  "data-testid": RENDER_REACTIONPICKER_TESTID,
173
177
  ref: wrapperRef
@@ -200,7 +204,9 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
200
204
  emojiProvider: emojiProvider,
201
205
  onSelection: onEmojiSelected,
202
206
  size: emojiPickerSize
203
- }) : jsx("div", {
207
+ }) :
208
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
209
+ jsx("div", {
204
210
  css: contentStyle
205
211
  }, jsx(Selector, {
206
212
  emojiProvider: emojiProvider,
@@ -233,7 +239,9 @@ const PopperWrapper = props => {
233
239
  }) => {
234
240
  return jsx("div", {
235
241
  id: PICKER_CONTROL_ID,
236
- "data-testid": RENDER_REACTIONPICKERPANEL_TESTID,
242
+ "data-testid": RENDER_REACTIONPICKERPANEL_TESTID
243
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
244
+ ,
237
245
  style: {
238
246
  zIndex: layers.layer(),
239
247
  ...style
@@ -247,7 +255,9 @@ const PopperWrapper = props => {
247
255
  }
248
256
  setPopupRef(node);
249
257
  }
250
- },
258
+ }
259
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
260
+ ,
251
261
  css: popupWrapperStyle,
252
262
  tabIndex: 0
253
263
  }, jsx(RepositionOnUpdate, {
@@ -1,26 +1,39 @@
1
1
  /** @jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { css } from '@emotion/react';
3
4
  import { borderRadius } from '@atlaskit/theme/constants';
4
5
  import { N0, N50A, N60A } from '@atlaskit/theme/colors';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
5
7
  export const pickerStyle = css({
6
8
  verticalAlign: 'middle',
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
7
10
  '&.miniMode': {
8
11
  display: 'inline-block'
9
12
  }
10
13
  });
14
+
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
11
16
  export const contentStyle = css({
12
17
  display: 'flex'
13
18
  });
19
+
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
14
21
  export const popupWrapperStyle = css({
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
15
23
  ':focus': {
16
24
  outline: 'none'
17
25
  }
18
26
  });
27
+
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
19
29
  export const popupStyle = css({
20
30
  background: `var(--ds-surface-overlay, ${N0})`,
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
21
32
  borderRadius: `${borderRadius()}px`,
22
33
  boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
23
35
  '&> div': {
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
37
  boxShadow: undefined,
25
38
  marginTop: "var(--ds-space-050, 4px)",
26
39
  marginBottom: "var(--ds-space-050, 4px)"
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import React from 'react';
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
5
  import { jsx } from '@emotion/react';
5
6
  import Tooltip from '@atlaskit/tooltip';
6
7
  import { FormattedMessage } from 'react-intl-next';
@@ -27,7 +28,9 @@ export const ReactionTooltip = ({
27
28
  /**
28
29
  * Render list of users in the tooltip box
29
30
  */
30
- const content = !users || users.length === 0 || !isEnabled ? null : jsx("div", {
31
+ const content = !users || users.length === 0 || !isEnabled ? null :
32
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
+ jsx("div", {
31
34
  css: tooltipStyle,
32
35
  tabIndex: 0
33
36
  }, jsx("ul", null, emojiName ? jsx("li", {
@@ -37,6 +40,7 @@ export const ReactionTooltip = ({
37
40
  key: user.id
38
41
  }, user.displayName);
39
42
  }), jsx("li", {
43
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
40
44
  css: allowUserDialog ? [footerStyle, underlineStyle] : footerStyle,
41
45
  onClick: () => {
42
46
  if (allowUserDialog && handleUserListClick) {
@@ -1,37 +1,49 @@
1
1
  /** @jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { css } from '@emotion/react';
3
4
  import { N90, N800, N0 } from '@atlaskit/theme/colors';
4
5
  export const verticalMargin = 5;
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
5
8
  export const tooltipStyle = css({
6
9
  maxWidth: '150px',
7
10
  textOverflow: 'ellipsis',
8
11
  whiteSpace: 'nowrap',
9
12
  overflow: 'hidden',
10
13
  marginBottom: verticalMargin,
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
11
15
  ul: {
12
16
  listStyle: 'none',
13
17
  margin: 0,
14
18
  padding: 0,
15
19
  textAlign: 'left'
16
20
  },
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
22
  li: {
18
23
  overflow: 'hidden',
19
24
  textOverflow: 'ellipsis',
20
25
  marginTop: verticalMargin
21
26
  }
22
27
  });
28
+
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
23
30
  export const emojiNameStyle = css({
24
31
  textTransform: 'capitalize',
25
32
  color: `var(--ds-text-inverse, ${N90})`,
26
33
  fontWeight: 600
27
34
  });
35
+
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
28
37
  export const footerStyle = css({
29
38
  color: `var(--ds-text-inverse, ${N90})`,
30
39
  fontWeight: 300
31
40
  });
41
+
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
32
43
  export const underlineStyle = css({
33
44
  cursor: 'pointer',
34
45
  textDecoration: 'underline',
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
35
47
  ':hover': {
36
48
  backgroundColor: `var(--ds-background-neutral-bold, ${N800})`,
37
49
  color: `var(--ds-text-inverse, ${N0})`
@@ -1,10 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
4
  import { jsx } from '@emotion/react';
4
5
  import { FormattedMessage } from 'react-intl-next';
5
6
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
6
7
  import { ModalTransition } from '@atlaskit/modal-dialog';
7
- import Button from '@atlaskit/button';
8
+ import Button from '@atlaskit/button/standard-button';
8
9
  import Tooltip from '@atlaskit/tooltip';
9
10
  import { createAndFireSafe, createPickerButtonClickedEvent, createPickerCancelledEvent, createPickerMoreClickedEvent, createReactionsRenderedEvent, createReactionSelectionEvent, isSampled } from '../../analytics';
10
11
  import { SAMPLING_RATE_REACTIONS_RENDERED_EXP } from '../../shared/constants';
@@ -231,46 +232,57 @@ export const Reactions = /*#__PURE__*/React.memo(({
231
232
  });
232
233
  return reactions.concat(items);
233
234
  }, [quickReactionEmojis, reactions]);
234
- return jsx("div", {
235
- css: wrapperStyle,
236
- "data-testid": RENDER_REACTIONS_TESTID
237
- }, memorizedReactions.map(reaction => jsx(Reaction, {
238
- key: reaction.emojiId,
239
- reaction: reaction,
240
- emojiProvider: emojiProvider,
241
- onClick: onReactionClick,
242
- onMouseEnter: handleReactionMouseEnter,
243
- onFocused: handleReactionFocused,
244
- flash: flash[reaction.emojiId],
245
- handleUserListClick: handleOpenReactionsDialog,
246
- allowUserDialog: allowUserDialog,
247
- showParticleEffect: particleEffectByEmoji[reaction.emojiId]
248
- })), jsx(ReactionPicker, {
249
- css: reactionPickerStyle,
250
- emojiProvider: emojiProvider,
251
- allowAllEmojis: allowAllEmojis,
252
- pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
253
- disabled: status !== ReactionStatus.ready,
254
- onSelection: handleOnSelection,
255
- onOpen: handlePickerOpen,
256
- onCancel: handleOnCancel,
257
- onShowMore: handleOnMore,
258
- tooltipContent: getTooltip(status, errorMessage),
259
- emojiPickerSize: emojiPickerSize,
260
- miniMode: miniMode
261
- }), allowUserDialog && reactions.length > 0 && jsx(Tooltip, {
262
- content: jsx(FormattedMessage, messages.seeWhoReactedTooltip),
263
- hideTooltipOnClick: true
264
- }, jsx(Button, {
265
- appearance: "subtle-link",
266
- onClick: handleOpenAllReactionsDialog,
267
- css: seeWhoReactedStyle,
268
- testId: RENDER_VIEWALL_REACTED_USERS_DIALOG
269
- }, jsx(FormattedMessage, messages.seeWhoReacted))), jsx(ModalTransition, null, !!selectedEmojiId && jsx(ReactionsDialog, {
270
- selectedEmojiId: selectedEmojiId,
271
- reactions: memorizedReactions,
272
- emojiProvider: emojiProvider,
273
- handleCloseReactionsDialog: handleCloseReactionsDialog,
274
- handleSelectReaction: handleSelectReactionInDialog
275
- })));
235
+ return (
236
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
237
+ jsx("div", {
238
+ css: wrapperStyle,
239
+ "data-testid": RENDER_REACTIONS_TESTID
240
+ }, memorizedReactions.map(reaction => jsx(Reaction, {
241
+ key: reaction.emojiId,
242
+ reaction: reaction,
243
+ emojiProvider: emojiProvider,
244
+ onClick: onReactionClick,
245
+ onMouseEnter: handleReactionMouseEnter,
246
+ onFocused: handleReactionFocused,
247
+ flash: flash[reaction.emojiId],
248
+ handleUserListClick: handleOpenReactionsDialog,
249
+ allowUserDialog: allowUserDialog,
250
+ showParticleEffect: particleEffectByEmoji[reaction.emojiId]
251
+ })), jsx(ReactionPicker
252
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
253
+ , {
254
+ css: reactionPickerStyle,
255
+ emojiProvider: emojiProvider,
256
+ allowAllEmojis: allowAllEmojis,
257
+ pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
258
+ disabled: status !== ReactionStatus.ready,
259
+ onSelection: handleOnSelection,
260
+ onOpen: handlePickerOpen,
261
+ onCancel: handleOnCancel,
262
+ onShowMore: handleOnMore,
263
+ tooltipContent: getTooltip(status, errorMessage),
264
+ emojiPickerSize: emojiPickerSize,
265
+ miniMode: miniMode
266
+ }), allowUserDialog && reactions.length > 0 && jsx(Tooltip, {
267
+ content: jsx(FormattedMessage, messages.seeWhoReactedTooltip),
268
+ hideTooltipOnClick: true
269
+ }, jsx(Button
270
+ // TODO: (from codemod) "link" and "subtle-link" appearances are only available in LinkButton, please either provide a href prop then migrate to LinkButton, or remove the appearance from the default button.
271
+ // https://product-fabric.atlassian.net/browse/DSP-18982
272
+ , {
273
+ appearance: "subtle-link",
274
+ onClick: handleOpenAllReactionsDialog
275
+ // TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
276
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
277
+ ,
278
+ css: seeWhoReactedStyle,
279
+ testId: RENDER_VIEWALL_REACTED_USERS_DIALOG
280
+ }, jsx(FormattedMessage, messages.seeWhoReacted))), jsx(ModalTransition, null, !!selectedEmojiId && jsx(ReactionsDialog, {
281
+ selectedEmojiId: selectedEmojiId,
282
+ reactions: memorizedReactions,
283
+ emojiProvider: emojiProvider,
284
+ handleCloseReactionsDialog: handleCloseReactionsDialog,
285
+ handleSelectReaction: handleSelectReactionInDialog
286
+ })))
287
+ );
276
288
  });
@@ -1,9 +1,13 @@
1
1
  /** @jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { css } from '@emotion/react';
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
3
5
  export const reactionPickerStyle = css({
4
6
  display: 'inline-block',
5
7
  marginTop: "var(--ds-space-050, 4px)"
6
8
  });
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
11
  export const seeWhoReactedStyle = css({
8
12
  height: '24px',
9
13
  lineHeight: '24px',
@@ -12,6 +16,8 @@ export const seeWhoReactedStyle = css({
12
16
  marginTop: "var(--ds-space-050, 4px)",
13
17
  marginLeft: "var(--ds-space-050, 4px)"
14
18
  });
19
+
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
15
21
  export const wrapperStyle = css({
16
22
  display: 'flex',
17
23
  flexWrap: 'wrap',
@@ -19,6 +25,7 @@ export const wrapperStyle = css({
19
25
  alignItems: 'center',
20
26
  borderRadius: '15px',
21
27
  marginTop: "var(--ds-space-negative-050, -4px)",
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
22
29
  '> :first-of-type > :first-of-type': {
23
30
  marginLeft: 0
24
31
  }