@atlaskit/reactions 33.3.1 → 33.3.3

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,18 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 33.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 33.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`2dc6ecfe2679d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2dc6ecfe2679d) -
14
+ Removing unused option to optimistically load the emoji using the reaction imagePath.
15
+
3
16
  ## 33.3.1
4
17
 
5
18
  ### Patch Changes
@@ -2628,7 +2641,6 @@
2628
2641
 
2629
2642
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
2630
2643
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
2631
-
2632
2644
  - @atlaskit/docs@8.3.2
2633
2645
  - @atlaskit/analytics-next@6.3.5
2634
2646
  - @atlaskit/button@13.3.7
@@ -2753,12 +2765,10 @@
2753
2765
  safety. Flow types are no longer provided. No behavioural changes.
2754
2766
 
2755
2767
  **Breaking changes**
2756
-
2757
2768
  - `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
2758
2769
  - `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
2759
2770
 
2760
2771
  **Breaking changes to TypeScript annotations**
2761
-
2762
2772
  - `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
2763
2773
  props as a generic type.
2764
2774
  - `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
@@ -2799,7 +2809,6 @@
2799
2809
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
2800
2810
 
2801
2811
  In this PR, we are:
2802
-
2803
2812
  - Re-introducing dist build folders
2804
2813
  - Adding back cjs
2805
2814
  - Replacing es5 by cjs and es2015 by esm
@@ -2864,19 +2873,16 @@
2864
2873
  ## 17.1.0
2865
2874
 
2866
2875
  - [minor][21f5217343](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/21f5217343):
2867
-
2868
2876
  - consume emoji new entrypoints in AK
2869
2877
 
2870
2878
  ## 17.0.1
2871
2879
 
2872
2880
  - [patch][5e00c40c32](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5e00c40c32):
2873
-
2874
2881
  - Remove the Reactions component's white background
2875
2882
 
2876
2883
  ## 17.0.0
2877
2884
 
2878
2885
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
2879
-
2880
2886
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
2881
2887
  this package, please ensure you use at least this version of react and react-dom.
2882
2888
 
@@ -2899,7 +2905,6 @@
2899
2905
  ## 16.1.8
2900
2906
 
2901
2907
  - [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
2902
-
2903
2908
  - Bump tslib
2904
2909
 
2905
2910
  ## 16.1.7
@@ -2916,7 +2921,6 @@
2916
2921
  ## 16.1.6
2917
2922
 
2918
2923
  - [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
2919
-
2920
2924
  - @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
2921
2925
  supplied from itself.
2922
2926
 
@@ -2935,7 +2939,6 @@
2935
2939
  ## 16.1.4
2936
2940
 
2937
2941
  - [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
2938
-
2939
2942
  - Enable esModuleInterop for typescript, this allows correct use of default exports
2940
2943
 
2941
2944
  ## 16.1.3
@@ -2956,19 +2959,16 @@
2956
2959
  ## 16.1.1
2957
2960
 
2958
2961
  - [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
2959
-
2960
2962
  - Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
2961
2963
 
2962
2964
  ## 16.1.0
2963
2965
 
2964
2966
  - [minor][b684722884](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b684722884):
2965
-
2966
2967
  - improvement of SSR tests and examples for Fabric Elements
2967
2968
 
2968
2969
  ## 16.0.0
2969
2970
 
2970
2971
  - [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
2971
-
2972
2972
  - Dropped ES5 distributables from the typescript packages
2973
2973
 
2974
2974
  ## 15.6.3
@@ -3007,7 +3007,6 @@
3007
3007
  ## 15.6.0
3008
3008
 
3009
3009
  - [minor][aa6176aad1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/aa6176aad1):
3010
-
3011
3010
  - added SSR tests to reactions
3012
3011
 
3013
3012
  ## 15.5.1
@@ -3021,7 +3020,6 @@
3021
3020
  ## 15.5.0
3022
3021
 
3023
3022
  - [minor][9ab9e467d2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ab9e467d2):
3024
-
3025
3023
  - Bump version of typestyle for ssr compatibility
3026
3024
 
3027
3025
  ## 15.4.2
@@ -3042,7 +3040,6 @@
3042
3040
  ## 15.4.0
3043
3041
 
3044
3042
  - [minor][68ef17af8b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/68ef17af8b):
3045
-
3046
3043
  - Enable noImplicitAny for reactions, fix type issues.
3047
3044
 
3048
3045
  ## 15.3.4
@@ -3082,7 +3079,6 @@
3082
3079
  ## 15.3.0
3083
3080
 
3084
3081
  - [minor][e60d7aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e60d7aa):
3085
-
3086
3082
  - updated i18n translations
3087
3083
 
3088
3084
  ## 15.2.2
@@ -3101,17 +3097,14 @@
3101
3097
  ## 15.2.0
3102
3098
 
3103
3099
  - [minor][277edda](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/277edda):
3104
-
3105
3100
  - replaced enzyme-react-intl with @atlaskit/editor-test-helpers
3106
3101
 
3107
3102
  ## 15.1.0
3108
3103
 
3109
3104
  - [minor][1296324](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1296324):
3110
-
3111
3105
  - added i18n support to reactions
3112
3106
 
3113
3107
  - [minor][ccf385a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ccf385a):
3114
-
3115
3108
  - added i18n translations
3116
3109
 
3117
3110
  ## 15.0.11
@@ -3155,7 +3148,6 @@
3155
3148
  ## 15.0.7
3156
3149
 
3157
3150
  - [patch][3061b52](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3061b52):
3158
-
3159
3151
  - AK-5723 - adjust files in package.json to ensure correct publishing of dist/package.json
3160
3152
 
3161
3153
  ## 15.0.6
@@ -3194,7 +3186,6 @@
3194
3186
  ## 15.0.2
3195
3187
 
3196
3188
  - [patch][36c362f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36c362f):
3197
-
3198
3189
  - FS-3174 - Fix usage of gridSize() and borderRadius()
3199
3190
 
3200
3191
  ## 15.0.1
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "33.3.0";
14
+ var packageVersion = "33.3.2";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -12,7 +12,6 @@ var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
15
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
16
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
17
16
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
18
17
  var _reactIntlNext = require("react-intl-next");
@@ -28,7 +27,6 @@ var _constants = require("../shared/constants");
28
27
  var _ReactionButton = require("./ReactionButton");
29
28
  var _StaticReaction = require("./StaticReaction");
30
29
  var _compiled = require("@atlaskit/primitives/compiled");
31
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
32
30
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
33
31
  var styles = {
34
32
  container: "_kqswh2mm"
@@ -139,14 +137,11 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
139
137
  };
140
138
  var emojiAndCount = /*#__PURE__*/React.createElement(_compiled.Inline, null, /*#__PURE__*/React.createElement("div", {
141
139
  className: (0, _runtime.ax)(["_8hrz1nam _vwz41crf _ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc", reaction.count === 0 && "_ca0q1b66 _u5f3v77o _n3td1b66 _19bv19bv"])
142
- }, /*#__PURE__*/React.createElement(_emoji.ResourcedEmoji, (0, _extends2.default)({
140
+ }, /*#__PURE__*/React.createElement(_emoji.ResourcedEmoji, {
143
141
  emojiProvider: emojiProvider,
144
142
  emojiId: emojiId,
145
143
  fitToHeight: _constants.RESOURCED_EMOJI_COMPACT_HEIGHT
146
- }, reaction.emojiPath && (0, _platformFeatureFlags.fg)('platform_optimistic_reaction_emoji') ? {
147
- optimistic: true,
148
- optimisticImageURL: reaction.emojiPath
149
- } : {}))), /*#__PURE__*/React.createElement(_Counter.Counter, {
144
+ })), /*#__PURE__*/React.createElement(_Counter.Counter, {
150
145
  value: reaction.count,
151
146
  highlight: !isViewOnly && reaction.reacted
152
147
  }));
@@ -1,7 +1,7 @@
1
1
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
3
3
  const packageName = "@atlaskit/reactions";
4
- const packageVersion = "33.3.0";
4
+ const packageVersion = "33.3.2";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -1,5 +1,4 @@
1
1
  /* Reaction.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./Reaction.compiled.css";
4
3
  import * as React from 'react';
5
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -17,7 +16,6 @@ import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
17
16
  import { ReactionButton } from './ReactionButton';
18
17
  import { StaticReaction } from './StaticReaction';
19
18
  import { Box, Inline } from '@atlaskit/primitives/compiled';
20
- import { fg } from '@atlaskit/platform-feature-flags';
21
19
  const styles = {
22
20
  container: "_kqswh2mm"
23
21
  };
@@ -106,14 +104,11 @@ export const Reaction = ({
106
104
  };
107
105
  const emojiAndCount = /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
108
106
  className: ax(["_8hrz1nam _vwz41crf _ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc", reaction.count === 0 && "_ca0q1b66 _u5f3v77o _n3td1b66 _19bv19bv"])
109
- }, /*#__PURE__*/React.createElement(ResourcedEmoji, _extends({
107
+ }, /*#__PURE__*/React.createElement(ResourcedEmoji, {
110
108
  emojiProvider: emojiProvider,
111
109
  emojiId: emojiId,
112
110
  fitToHeight: RESOURCED_EMOJI_COMPACT_HEIGHT
113
- }, reaction.emojiPath && fg('platform_optimistic_reaction_emoji') ? {
114
- optimistic: true,
115
- optimisticImageURL: reaction.emojiPath
116
- } : {}))), /*#__PURE__*/React.createElement(Counter, {
111
+ })), /*#__PURE__*/React.createElement(Counter, {
117
112
  value: reaction.count,
118
113
  highlight: !isViewOnly && reaction.reacted
119
114
  }));
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
6
6
  var packageName = "@atlaskit/reactions";
7
- var packageVersion = "33.3.0";
7
+ var packageVersion = "33.3.2";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -1,5 +1,4 @@
1
1
  /* Reaction.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
4
  import "./Reaction.compiled.css";
@@ -20,7 +19,6 @@ import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
20
19
  import { ReactionButton } from './ReactionButton';
21
20
  import { StaticReaction } from './StaticReaction';
22
21
  import { Box, Inline } from '@atlaskit/primitives/compiled';
23
- import { fg } from '@atlaskit/platform-feature-flags';
24
22
  var styles = {
25
23
  container: "_kqswh2mm"
26
24
  };
@@ -130,14 +128,11 @@ export var Reaction = function Reaction(_ref) {
130
128
  };
131
129
  var emojiAndCount = /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
132
130
  className: ax(["_8hrz1nam _vwz41crf _ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc", reaction.count === 0 && "_ca0q1b66 _u5f3v77o _n3td1b66 _19bv19bv"])
133
- }, /*#__PURE__*/React.createElement(ResourcedEmoji, _extends({
131
+ }, /*#__PURE__*/React.createElement(ResourcedEmoji, {
134
132
  emojiProvider: emojiProvider,
135
133
  emojiId: emojiId,
136
134
  fitToHeight: RESOURCED_EMOJI_COMPACT_HEIGHT
137
- }, reaction.emojiPath && fg('platform_optimistic_reaction_emoji') ? {
138
- optimistic: true,
139
- optimisticImageURL: reaction.emojiPath
140
- } : {}))), /*#__PURE__*/React.createElement(Counter, {
135
+ })), /*#__PURE__*/React.createElement(Counter, {
141
136
  value: reaction.count,
142
137
  highlight: !isViewOnly && reaction.reacted
143
138
  }));
@@ -23,10 +23,6 @@ export interface ReactionSummary {
23
23
  * unique Atlassian identifier for an emoji
24
24
  */
25
25
  emojiId: string;
26
- /**
27
- * A path to the emoji image, used for optimistic rendering.
28
- */
29
- emojiPath?: string;
30
26
  /**
31
27
  * @deprecated Legacy content Not in use anymore
32
28
  */
@@ -23,10 +23,6 @@ export interface ReactionSummary {
23
23
  * unique Atlassian identifier for an emoji
24
24
  */
25
25
  emojiId: string;
26
- /**
27
- * A path to the emoji image, used for optimistic rendering.
28
- */
29
- emojiPath?: string;
30
26
  /**
31
27
  * @deprecated Legacy content Not in use anymore
32
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "33.3.1",
3
+ "version": "33.3.3",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,16 +50,16 @@
50
50
  "@atlaskit/popup": "^4.4.0",
51
51
  "@atlaskit/portal": "^5.1.0",
52
52
  "@atlaskit/primitives": "^15.0.0",
53
- "@atlaskit/react-ufo": "^4.11.0",
53
+ "@atlaskit/react-ufo": "^4.12.0",
54
54
  "@atlaskit/spinner": "^19.0.0",
55
55
  "@atlaskit/tabs": "^18.2.0",
56
56
  "@atlaskit/theme": "^21.0.0",
57
- "@atlaskit/tokens": "^6.5.0",
57
+ "@atlaskit/tokens": "^7.0.0",
58
58
  "@atlaskit/tooltip": "^20.5.0",
59
59
  "@atlaskit/ufo": "^0.4.0",
60
60
  "@atlaskit/util-service-support": "^6.3.0",
61
61
  "@babel/runtime": "^7.0.0",
62
- "@compiled/react": "^0.18.3",
62
+ "@compiled/react": "^0.18.6",
63
63
  "focus-trap": "^2.4.5"
64
64
  },
65
65
  "peerDependencies": {