@atlaskit/reactions 21.2.2 → 21.2.5

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 21.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
8
+
9
+ ## 21.2.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
14
+ - Updated dependencies
15
+
16
+ ## 21.2.3
17
+
18
+ ### Patch Changes
19
+
20
+ - [`d64aafec153`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d64aafec153) - Fixed bug where clicking on tooltip triggered a reaction
21
+ - Updated dependencies
22
+
3
23
  ## 21.2.2
4
24
 
5
25
  ### Patch Changes
@@ -188,14 +188,14 @@ var ReactionWithoutAnalytics = /*#__PURE__*/function (_PureComponent) {
188
188
  id: reaction.emojiId,
189
189
  shortName: ''
190
190
  };
191
- return (0, _core.jsx)("button", {
191
+ return (0, _core.jsx)(_ReactionTooltip.ReactionTooltip, {
192
+ emojiName: emojiName,
193
+ reaction: reaction
194
+ }, (0, _core.jsx)("button", {
192
195
  className: classNameProp,
193
196
  css: [reactionStyle, reaction.reacted && reactedStyle],
194
197
  onMouseUp: this.handleMouseDown,
195
198
  onMouseEnter: this.handleMouseEnter
196
- }, (0, _core.jsx)(_ReactionTooltip.ReactionTooltip, {
197
- emojiName: emojiName,
198
- reaction: reaction
199
199
  }, (0, _core.jsx)(_FlashAnimation.FlashAnimation, {
200
200
  flash: flash,
201
201
  css: flashStyle
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.2"
3
+ "version": "21.2.5"
4
4
  }
@@ -142,14 +142,14 @@ class ReactionWithoutAnalytics extends PureComponent {
142
142
  id: reaction.emojiId,
143
143
  shortName: ''
144
144
  };
145
- return jsx("button", {
145
+ return jsx(ReactionTooltip, {
146
+ emojiName: emojiName,
147
+ reaction: reaction
148
+ }, jsx("button", {
146
149
  className: classNameProp,
147
150
  css: [reactionStyle, reaction.reacted && reactedStyle],
148
151
  onMouseUp: this.handleMouseDown,
149
152
  onMouseEnter: this.handleMouseEnter
150
- }, jsx(ReactionTooltip, {
151
- emojiName: emojiName,
152
- reaction: reaction
153
153
  }, jsx(FlashAnimation, {
154
154
  flash: flash,
155
155
  css: flashStyle
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.2"
3
+ "version": "21.2.5"
4
4
  }
@@ -164,14 +164,14 @@ var ReactionWithoutAnalytics = /*#__PURE__*/function (_PureComponent) {
164
164
  id: reaction.emojiId,
165
165
  shortName: ''
166
166
  };
167
- return jsx("button", {
167
+ return jsx(ReactionTooltip, {
168
+ emojiName: emojiName,
169
+ reaction: reaction
170
+ }, jsx("button", {
168
171
  className: classNameProp,
169
172
  css: [reactionStyle, reaction.reacted && reactedStyle],
170
173
  onMouseUp: this.handleMouseDown,
171
174
  onMouseEnter: this.handleMouseEnter
172
- }, jsx(ReactionTooltip, {
173
- emojiName: emojiName,
174
- reaction: reaction
175
175
  }, jsx(FlashAnimation, {
176
176
  flash: flash,
177
177
  css: flashStyle
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.2"
3
+ "version": "21.2.5"
4
4
  }
@@ -3,7 +3,7 @@ import { EventType } from '@atlaskit/analytics-gas-types';
3
3
  import { ReactionSummary, ReactionSource } from '../types';
4
4
  export * as UFO from './ufo';
5
5
  export declare type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
6
- export declare const createAndFireEventInElementsChannel: (payload: Record<string, any>) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
6
+ export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
7
7
  export declare const createAndFireSafe: <U extends any[], T extends (...args: U) => AnalyticsEventPayload>(createAnalyticsEvent: CreateUIAnalyticsEvent | void, creator: T, ...args: U) => void;
8
8
  export declare const createRestSucceededEvent: (actionSubject: string) => {
9
9
  action: string;
@@ -17,7 +17,7 @@ export interface Props {
17
17
  export interface State {
18
18
  emojiName?: string;
19
19
  }
20
- export declare const Reaction: React.ForwardRefExoticComponent<Pick<Pick<Props & WithAnalyticsEventsProps, "className" | "reaction" | "emojiProvider" | "onClick" | "onMouseEnter" | "flash">, "reaction" | "emojiProvider" | "onClick"> & Partial<Pick<Pick<Props & WithAnalyticsEventsProps, "className" | "reaction" | "emojiProvider" | "onClick" | "onMouseEnter" | "flash">, "className" | "onMouseEnter" | "flash">> & Partial<Pick<{
20
+ export declare const Reaction: React.ForwardRefExoticComponent<Pick<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps>, "reaction" | "emojiProvider" | "onClick"> & Partial<Pick<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps>, "className" | "onMouseEnter" | "flash">> & Partial<Pick<{
21
21
  flash: boolean;
22
22
  className: undefined;
23
23
  onMouseEnter: undefined;
@@ -43,7 +43,7 @@ export declare class ReactionsWithoutAnalytics extends React.PureComponent<Props
43
43
  private renderReaction;
44
44
  render(): JSX.Element;
45
45
  }
46
- export declare const Reactions: React.ForwardRefExoticComponent<Pick<Pick<Props & WithAnalyticsEventsProps, "reactions" | "emojiProvider" | "flash" | "onSelection" | "boundariesElement" | "allowAllEmojis" | "loadReaction" | "onReactionClick" | "onReactionHover" | "errorMessage" | "status">, "emojiProvider" | "onSelection" | "boundariesElement" | "allowAllEmojis" | "loadReaction" | "onReactionClick" | "onReactionHover" | "errorMessage" | "status"> & Partial<Pick<Pick<Props & WithAnalyticsEventsProps, "reactions" | "emojiProvider" | "flash" | "onSelection" | "boundariesElement" | "allowAllEmojis" | "loadReaction" | "onReactionClick" | "onReactionHover" | "errorMessage" | "status">, "reactions" | "flash">> & Partial<Pick<{
46
+ export declare const Reactions: React.ForwardRefExoticComponent<Pick<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps>, "emojiProvider" | "onSelection" | "boundariesElement" | "allowAllEmojis" | "loadReaction" | "onReactionClick" | "onReactionHover" | "errorMessage" | "status"> & Partial<Pick<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps>, "reactions" | "flash">> & Partial<Pick<{
47
47
  flash: {};
48
48
  reactions: never[];
49
49
  }, never>> & React.RefAttributes<any>>;
@@ -16,4 +16,4 @@ export declare type Props = {
16
16
  emojiProvider: Promise<EmojiProvider>;
17
17
  store: ReactionStoreProp;
18
18
  };
19
- export declare const ConnectedReactionsView: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<Props & WithAnalyticsEventsProps>, "children" | "emojiProvider" | "boundariesElement" | "allowAllEmojis" | "containerAri" | "ari" | "store"> & React.RefAttributes<any>>;
19
+ export declare const ConnectedReactionsView: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props & WithAnalyticsEventsProps>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -24,6 +24,6 @@ export declare class ReactionConsumer<ExtendedPropsFromState, PropsFromActions e
24
24
  private handleOnChange;
25
25
  componentDidMount(): void;
26
26
  componentWillUnmount(): void;
27
- render(): {} | null | undefined;
27
+ render(): React.ReactNode;
28
28
  }
29
29
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.2",
3
+ "version": "21.2.5",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,14 +28,14 @@
28
28
  "@atlaskit/analytics-gas-types": "^5.0.0",
29
29
  "@atlaskit/analytics-namespaced-context": "^6.4.0",
30
30
  "@atlaskit/analytics-next": "^8.2.0",
31
- "@atlaskit/button": "^16.2.0",
31
+ "@atlaskit/button": "^16.3.0",
32
32
  "@atlaskit/ds-lib": "^1.4.0",
33
- "@atlaskit/emoji": "^64.4.0",
33
+ "@atlaskit/emoji": "^64.5.0",
34
34
  "@atlaskit/icon": "^21.10.0",
35
35
  "@atlaskit/motion": "^1.0.3",
36
36
  "@atlaskit/popper": "^5.0.0",
37
37
  "@atlaskit/theme": "^12.1.0",
38
- "@atlaskit/tokens": "^0.8.0",
38
+ "@atlaskit/tokens": "^0.9.0",
39
39
  "@atlaskit/tooltip": "^17.5.0",
40
40
  "@atlaskit/ufo": "^0.1.0",
41
41
  "@atlaskit/util-service-support": "^6.1.0",
@@ -61,10 +61,9 @@
61
61
  "enzyme-adapter-react-16": "^1.15.1",
62
62
  "es6-promise": "^4.0.5",
63
63
  "fetch-mock": "^8.0.0",
64
- "jest-fetch-mock": "^3.0.3",
65
64
  "react": "^16.8.0",
66
65
  "react-intl-next": "npm:react-intl@^5.18.1",
67
- "typescript": "3.9.10",
66
+ "typescript": "4.2.4",
68
67
  "wait-for-expect": "^1.2.0",
69
68
  "webpack-dev-server": "^3.11.2"
70
69
  },