@atlaskit/emoji 70.5.0 → 70.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/emoji
2
2
 
3
+ ## 70.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 70.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`26c5d3ffcad6a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26c5d3ffcad6a) -
14
+ Update copy on Add Emoji button + icon
15
+ - Updated dependencies
16
+
3
17
  ## 70.5.0
4
18
 
5
19
  ### Minor Changes
@@ -27,7 +27,7 @@ var AddOwnEmoji = exports.AddOwnEmoji = function AddOwnEmoji(props) {
27
27
  return /*#__PURE__*/React.createElement(_react.Fragment, null, uploadEnabled && /*#__PURE__*/React.createElement("div", {
28
28
  "data-testid": uploadEmojiTestId,
29
29
  className: (0, _runtime.ax)(["_1wpz1h6o _19pkutpp _2hwxutpp _otyrutpp _18u0utpp"])
30
- }, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.addCustomEmojiLabel, function (label) {
30
+ }, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.addEmojiLabel, function (label) {
31
31
  return /*#__PURE__*/React.createElement(_new.default, {
32
32
  onClick: onOpenUpload,
33
33
  tabIndex: 0,
@@ -133,7 +133,7 @@ var CategorySelector = function CategorySelector(props) {
133
133
  ref: categoryRef,
134
134
  className: (0, _runtime.ax)(["_ca0qze3t _n3tdze3t _19bvu2gc _u5f3u2gc _1e0c1txw _2lx2vrvc _1bah1b1v _4cvr1fhb"])
135
135
  }, categories.map(function (categoryId, index) {
136
- var category = _categories.CategoryDescriptionMap[categoryId];
136
+ var category = (0, _platformFeatureFlags.fg)('platform_emoji_picker_refresh') ? _categories.CategoryDescriptionMapNew[categoryId] : _categories.CategoryDescriptionMap[categoryId];
137
137
  var Icon = category.icon;
138
138
  var categoryName = formatMessage(_i18n.messages[category.name]);
139
139
  return /*#__PURE__*/React.createElement(_tooltip.default, {
@@ -170,7 +170,7 @@ var CategoryDescriptionMapNew = exports.CategoryDescriptionMapNew = {
170
170
  USER_CUSTOM: {
171
171
  id: _constants.customCategory,
172
172
  name: _constants.userCustomTitle,
173
- icon: _add.default,
173
+ icon: _emojiAdd.default,
174
174
  order: 11
175
175
  },
176
176
  CUSTOM: {
@@ -20,7 +20,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
20
20
  actionSubjectId: actionSubjectId,
21
21
  attributes: _objectSpread({
22
22
  packageName: "@atlaskit/emoji",
23
- packageVersion: "70.4.2"
23
+ packageVersion: "70.5.1"
24
24
  }, attributes)
25
25
  };
26
26
  };
@@ -20,7 +20,7 @@ export const AddOwnEmoji = props => {
20
20
  return /*#__PURE__*/React.createElement(Fragment, null, uploadEnabled && /*#__PURE__*/React.createElement("div", {
21
21
  "data-testid": uploadEmojiTestId,
22
22
  className: ax(["_1wpz1h6o _19pkutpp _2hwxutpp _otyrutpp _18u0utpp"])
23
- }, /*#__PURE__*/React.createElement(FormattedMessage, messages.addCustomEmojiLabel, label => /*#__PURE__*/React.createElement(Button, {
23
+ }, /*#__PURE__*/React.createElement(FormattedMessage, messages.addEmojiLabel, label => /*#__PURE__*/React.createElement(Button, {
24
24
  onClick: onOpenUpload,
25
25
  tabIndex: 0,
26
26
  id: "add-custom-emoji"
@@ -110,7 +110,7 @@ const CategorySelector = props => {
110
110
  ref: categoryRef,
111
111
  className: ax(["_ca0qze3t _n3tdze3t _19bvu2gc _u5f3u2gc _1e0c1txw _2lx2vrvc _1bah1b1v _4cvr1fhb"])
112
112
  }, categories.map((categoryId, index) => {
113
- const category = CategoryDescriptionMap[categoryId];
113
+ const category = fg('platform_emoji_picker_refresh') ? CategoryDescriptionMapNew[categoryId] : CategoryDescriptionMap[categoryId];
114
114
  const Icon = category.icon;
115
115
  const categoryName = formatMessage(messages[category.name]);
116
116
  return /*#__PURE__*/React.createElement(Tooltip, {
@@ -163,7 +163,7 @@ export const CategoryDescriptionMapNew = {
163
163
  USER_CUSTOM: {
164
164
  id: customCategory,
165
165
  name: userCustomTitle,
166
- icon: AddIcon,
166
+ icon: EmojiAddIcon,
167
167
  order: 11
168
168
  },
169
169
  CUSTOM: {
@@ -9,7 +9,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
9
9
  actionSubjectId,
10
10
  attributes: {
11
11
  packageName: "@atlaskit/emoji",
12
- packageVersion: "70.4.2",
12
+ packageVersion: "70.5.1",
13
13
  ...attributes
14
14
  }
15
15
  });
@@ -18,7 +18,7 @@ export var AddOwnEmoji = function AddOwnEmoji(props) {
18
18
  return /*#__PURE__*/React.createElement(Fragment, null, uploadEnabled && /*#__PURE__*/React.createElement("div", {
19
19
  "data-testid": uploadEmojiTestId,
20
20
  className: ax(["_1wpz1h6o _19pkutpp _2hwxutpp _otyrutpp _18u0utpp"])
21
- }, /*#__PURE__*/React.createElement(FormattedMessage, messages.addCustomEmojiLabel, function (label) {
21
+ }, /*#__PURE__*/React.createElement(FormattedMessage, messages.addEmojiLabel, function (label) {
22
22
  return /*#__PURE__*/React.createElement(Button, {
23
23
  onClick: onOpenUpload,
24
24
  tabIndex: 0,
@@ -124,7 +124,7 @@ var CategorySelector = function CategorySelector(props) {
124
124
  ref: categoryRef,
125
125
  className: ax(["_ca0qze3t _n3tdze3t _19bvu2gc _u5f3u2gc _1e0c1txw _2lx2vrvc _1bah1b1v _4cvr1fhb"])
126
126
  }, categories.map(function (categoryId, index) {
127
- var category = CategoryDescriptionMap[categoryId];
127
+ var category = fg('platform_emoji_picker_refresh') ? CategoryDescriptionMapNew[categoryId] : CategoryDescriptionMap[categoryId];
128
128
  var Icon = category.icon;
129
129
  var categoryName = formatMessage(messages[category.name]);
130
130
  return /*#__PURE__*/React.createElement(Tooltip, {
@@ -163,7 +163,7 @@ export var CategoryDescriptionMapNew = {
163
163
  USER_CUSTOM: {
164
164
  id: customCategory,
165
165
  name: userCustomTitle,
166
- icon: AddIcon,
166
+ icon: EmojiAddIcon,
167
167
  order: 11
168
168
  },
169
169
  CUSTOM: {
@@ -14,7 +14,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
14
14
  actionSubjectId: actionSubjectId,
15
15
  attributes: _objectSpread({
16
16
  packageName: "@atlaskit/emoji",
17
- packageVersion: "70.4.2"
17
+ packageVersion: "70.5.1"
18
18
  }, attributes)
19
19
  };
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/emoji",
3
- "version": "70.5.0",
3
+ "version": "70.5.2",
4
4
  "description": "Fabric emoji React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,9 +49,9 @@
49
49
  "@atlaskit/primitives": "^19.0.0",
50
50
  "@atlaskit/spinner": "^19.1.0",
51
51
  "@atlaskit/textfield": "^8.3.0",
52
- "@atlaskit/tmp-editor-statsig": "^78.0.0",
52
+ "@atlaskit/tmp-editor-statsig": "^79.0.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
- "@atlaskit/tooltip": "^22.1.0",
54
+ "@atlaskit/tooltip": "^22.2.0",
55
55
  "@atlaskit/ufo": "^0.4.0",
56
56
  "@atlaskit/util-service-support": "^6.3.0",
57
57
  "@atlaskit/visually-hidden": "^3.1.0",