@atlaskit/emoji 67.7.9 → 67.7.10

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,13 @@
1
1
  # @atlaskit/emoji
2
2
 
3
+ ## 67.7.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#141656](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141656)
8
+ [`9210f1a8e795c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9210f1a8e795c) -
9
+ Change alt value from shortName to name to avoid confusion for AT users
10
+
3
11
  ## 67.7.9
4
12
 
5
13
  ### Patch Changes
@@ -12,6 +12,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
12
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _react2 = require("@emotion/react");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
16
17
  var _EmojiUtils = require("../../api/EmojiUtils");
17
18
  var _constants = require("../../util/constants");
@@ -224,7 +225,7 @@ var ImageEmoji = exports.ImageEmoji = function ImageEmoji(props) {
224
225
  loading: disableLazyLoad ? 'eager' : 'lazy',
225
226
  src: src,
226
227
  key: src,
227
- alt: emoji.shortName,
228
+ alt: (0, _platformFeatureFlags.fg)('platform_change_emoji_alt_value') ? emoji.name || emoji.shortName : emoji.shortName,
228
229
  "data-emoji-short-name": emoji.shortName,
229
230
  "data-emoji-id": emoji.id,
230
231
  "data-emoji-text": emoji.fallback || emoji.shortName
@@ -19,7 +19,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
19
19
  actionSubjectId: actionSubjectId,
20
20
  attributes: _objectSpread({
21
21
  packageName: "@atlaskit/emoji",
22
- packageVersion: "67.7.9"
22
+ packageVersion: "67.7.10"
23
23
  }, attributes)
24
24
  };
25
25
  };
@@ -6,6 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import React, { useEffect, useCallback, forwardRef } from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import Tooltip from '@atlaskit/tooltip';
10
11
  import { shouldUseAltRepresentation } from '../../api/EmojiUtils';
11
12
  import { deleteEmojiLabel, EMOJI_KEYBOARD_KEYS_SUPPORTED, KeyboardKeys, SAMPLING_RATE_EMOJI_RENDERED_EXP } from '../../util/constants';
@@ -220,7 +221,7 @@ export const ImageEmoji = props => {
220
221
  loading: disableLazyLoad ? 'eager' : 'lazy',
221
222
  src: src,
222
223
  key: src,
223
- alt: emoji.shortName,
224
+ alt: fg('platform_change_emoji_alt_value') ? emoji.name || emoji.shortName : emoji.shortName,
224
225
  "data-emoji-short-name": emoji.shortName,
225
226
  "data-emoji-id": emoji.id,
226
227
  "data-emoji-text": emoji.fallback || emoji.shortName
@@ -7,7 +7,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
7
7
  actionSubjectId,
8
8
  attributes: {
9
9
  packageName: "@atlaskit/emoji",
10
- packageVersion: "67.7.9",
10
+ packageVersion: "67.7.10",
11
11
  ...attributes
12
12
  }
13
13
  });
@@ -12,6 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  import React, { useEffect, useCallback, forwardRef } from 'react';
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
14
  import { jsx } from '@emotion/react';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
15
16
  import Tooltip from '@atlaskit/tooltip';
16
17
  import { shouldUseAltRepresentation } from '../../api/EmojiUtils';
17
18
  import { deleteEmojiLabel, EMOJI_KEYBOARD_KEYS_SUPPORTED, KeyboardKeys, SAMPLING_RATE_EMOJI_RENDERED_EXP } from '../../util/constants';
@@ -216,7 +217,7 @@ export var ImageEmoji = function ImageEmoji(props) {
216
217
  loading: disableLazyLoad ? 'eager' : 'lazy',
217
218
  src: src,
218
219
  key: src,
219
- alt: emoji.shortName,
220
+ alt: fg('platform_change_emoji_alt_value') ? emoji.name || emoji.shortName : emoji.shortName,
220
221
  "data-emoji-short-name": emoji.shortName,
221
222
  "data-emoji-id": emoji.id,
222
223
  "data-emoji-text": emoji.fallback || emoji.shortName
@@ -12,7 +12,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
12
12
  actionSubjectId: actionSubjectId,
13
13
  attributes: _objectSpread({
14
14
  packageName: "@atlaskit/emoji",
15
- packageVersion: "67.7.9"
15
+ packageVersion: "67.7.10"
16
16
  }, attributes)
17
17
  };
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/emoji",
3
- "version": "67.7.9",
3
+ "version": "67.7.10",
4
4
  "description": "Fabric emoji React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/analytics-next": "^10.1.0",
37
37
  "@atlaskit/button": "^20.1.0",
38
- "@atlaskit/icon": "^22.17.0",
38
+ "@atlaskit/icon": "^22.18.0",
39
39
  "@atlaskit/media-client": "^28.0.0",
40
40
  "@atlaskit/media-client-react": "^2.2.0",
41
41
  "@atlaskit/platform-feature-flags": "^0.3.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/spinner": "^16.3.0",
44
44
  "@atlaskit/textfield": "^6.5.0",
45
45
  "@atlaskit/theme": "^13.0.0",
46
- "@atlaskit/tokens": "^1.59.0",
46
+ "@atlaskit/tokens": "^1.60.0",
47
47
  "@atlaskit/tooltip": "^18.7.0",
48
48
  "@atlaskit/ufo": "^0.3.0",
49
49
  "@atlaskit/util-service-support": "^6.2.0",
@@ -119,6 +119,9 @@
119
119
  "platform-feature-flags": {
120
120
  "platform_index_emoji_just_in_time": {
121
121
  "type": "boolean"
122
+ },
123
+ "platform_change_emoji_alt_value": {
124
+ "type": "boolean"
122
125
  }
123
126
  },
124
127
  "scripts": {