@atlaskit/reactions 21.2.1 → 21.2.4

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.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
8
+ - Updated dependencies
9
+
10
+ ## 21.2.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [`d64aafec153`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d64aafec153) - Fixed bug where clicking on tooltip triggered a reaction
15
+ - Updated dependencies
16
+
17
+ ## 21.2.2
18
+
19
+ ### Patch Changes
20
+
21
+ - [`58a563ece8f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/58a563ece8f) - Add ComponentName as part of the exported enum collection for easier consumption inside products
22
+
3
23
  ## 21.2.1
4
24
 
5
25
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ReactionsRendered = exports.ReactionsRemove = exports.ReactionsAdd = exports.PickerRender = exports.ExperienceName = void 0;
6
+ exports.ReactionsRendered = exports.ReactionsRemove = exports.ReactionsAdd = exports.PickerRender = exports.ExperienceName = exports.ComponentName = void 0;
7
7
 
8
8
  var _ufo = require("@atlaskit/ufo");
9
9
 
@@ -44,10 +44,12 @@ var ComponentName;
44
44
  * Experience when the emoji picker is opened
45
45
  */
46
46
 
47
+ exports.ComponentName = ComponentName;
48
+
47
49
  (function (ComponentName) {
48
50
  ComponentName["PICKER_RENDERED"] = "reactions-picker";
49
51
  ComponentName["REACTIONS"] = "reactions-list";
50
- })(ComponentName || (ComponentName = {}));
52
+ })(ComponentName || (exports.ComponentName = ComponentName = {}));
51
53
 
52
54
  var PickerRender = new _ufo.UFOExperience(ExperienceName.PICKER_OPENED, createExperienceConfig(ComponentName.PICKER_RENDERED, _ufo.ExperienceTypes.Experience, _ufo.ExperiencePerformanceTypes.InlineResult));
53
55
  /**
@@ -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.1"
3
+ "version": "21.2.4"
4
4
  }
@@ -34,7 +34,7 @@ export let ExperienceName;
34
34
  ExperienceName["REACTION_REMOVED"] = "reaction-removed";
35
35
  })(ExperienceName || (ExperienceName = {}));
36
36
 
37
- var ComponentName;
37
+ export let ComponentName;
38
38
  /**
39
39
  * Experience when the emoji picker is opened
40
40
  */
@@ -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.1"
3
+ "version": "21.2.4"
4
4
  }
@@ -34,7 +34,7 @@ export var ExperienceName;
34
34
  ExperienceName["REACTION_REMOVED"] = "reaction-removed";
35
35
  })(ExperienceName || (ExperienceName = {}));
36
36
 
37
- var ComponentName;
37
+ export var ComponentName;
38
38
  /**
39
39
  * Experience when the emoji picker is opened
40
40
  */
@@ -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.1"
3
+ "version": "21.2.4"
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;
@@ -8,6 +8,13 @@ export declare enum ExperienceName {
8
8
  REACTION_ADDED = "reaction-added",
9
9
  REACTION_REMOVED = "reaction-removed"
10
10
  }
11
+ /**
12
+ * UFO types of components been instrumented
13
+ */
14
+ export declare enum ComponentName {
15
+ PICKER_RENDERED = "reactions-picker",
16
+ REACTIONS = "reactions-list"
17
+ }
11
18
  /**
12
19
  * Experience when the emoji picker is opened
13
20
  */
@@ -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.1",
3
+ "version": "21.2.4",
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",
@@ -64,7 +64,7 @@
64
64
  "jest-fetch-mock": "^3.0.3",
65
65
  "react": "^16.8.0",
66
66
  "react-intl-next": "npm:react-intl@^5.18.1",
67
- "typescript": "3.9.6",
67
+ "typescript": "4.2.4",
68
68
  "wait-for-expect": "^1.2.0",
69
69
  "webpack-dev-server": "^3.11.2"
70
70
  },