@atlaskit/emoji 73.0.0 → 73.0.1
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 +6 -0
- package/dist/cjs/api/media/SiteEmojiResource.js +3 -3
- package/dist/cjs/components/common/EmojiUploadPicker.js +5 -4
- package/dist/cjs/components/picker/CategorySelector.js +3 -3
- package/dist/cjs/util/analytics/createEvent.js +1 -1
- package/dist/es2019/api/media/SiteEmojiResource.js +1 -1
- package/dist/es2019/components/common/EmojiUploadPicker.js +2 -2
- package/dist/es2019/components/picker/CategorySelector.js +1 -1
- package/dist/es2019/util/analytics/createEvent.js +1 -1
- package/dist/esm/api/media/SiteEmojiResource.js +1 -1
- package/dist/esm/components/common/EmojiUploadPicker.js +2 -2
- package/dist/esm/components/picker/CategorySelector.js +1 -1
- package/dist/esm/util/analytics/createEvent.js +1 -1
- package/dist/types/api/calculateScale.d.ts +1 -1
- package/dist/types/api/media/SiteEmojiResource.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -13,7 +13,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
13
13
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _getMediaClient = require("@atlaskit/media-client-react/get-media-client");
|
|
16
|
-
var
|
|
16
|
+
var _constants = require("@atlaskit/util-service-support/constants");
|
|
17
17
|
var _buildEmojiDescriptionWithAltRepresentation = require("../../util/build-emoji-description-with-alt-representation");
|
|
18
18
|
var _convertImageToMediaRepresentation = require("../../util/convert-image-to-media-representation");
|
|
19
19
|
var _isLoadedMediaEmoji = require("../../util/is-loaded-media-emoji");
|
|
@@ -54,7 +54,7 @@ var SiteEmojiResource = exports.default = /*#__PURE__*/function () {
|
|
|
54
54
|
fileId: fileId
|
|
55
55
|
})
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return _constants.utils.requestService(_this.siteServiceConfig, {
|
|
58
58
|
requestInit: requestInit
|
|
59
59
|
}).then(function (response) {
|
|
60
60
|
var emojis = response.emojis;
|
|
@@ -286,7 +286,7 @@ var SiteEmojiResource = exports.default = /*#__PURE__*/function () {
|
|
|
286
286
|
var requestInit = {
|
|
287
287
|
method: 'DELETE'
|
|
288
288
|
};
|
|
289
|
-
return
|
|
289
|
+
return _constants.utils.requestService(this.siteServiceConfig, {
|
|
290
290
|
path: path,
|
|
291
291
|
requestInit: requestInit
|
|
292
292
|
})
|
|
@@ -21,7 +21,8 @@ var _button = _interopRequireDefault(require("@atlaskit/button/default/button"))
|
|
|
21
21
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
22
22
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
23
23
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
24
|
-
var
|
|
24
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
25
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
25
26
|
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
26
27
|
var ImageUtil = _interopRequireWildcard(require("../../util/image"));
|
|
27
28
|
var _logger = _interopRequireDefault(require("../../util/logger"));
|
|
@@ -125,7 +126,7 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
125
126
|
className: (0, _runtime.ax)(["_1w90azsu", "_11c8fhey _k48p1pd9"])
|
|
126
127
|
}, previewImage ? /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.emojiPreviewTitle) : /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.addCustomEmojiLabel))), /*#__PURE__*/React.createElement("div", {
|
|
127
128
|
className: (0, _runtime.ax)(["_zulp12x7 _1e0c1txw _2lx21bp4 _1tker0r7"])
|
|
128
|
-
}, /*#__PURE__*/React.createElement(
|
|
129
|
+
}, /*#__PURE__*/React.createElement(_box.Box, null, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.emojiChooseFileScreenReaderDescription, function () {
|
|
129
130
|
return /*#__PURE__*/React.createElement(_FileChooser.default, {
|
|
130
131
|
label: (0, _isRefreshEmojiPickerEnabled.isRefreshEmojiPickerEnabled)() ? emojiChooseFileTitleNew : emojiChooseFileTitle,
|
|
131
132
|
onChange: onChooseFile,
|
|
@@ -210,7 +211,7 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
210
211
|
ref: inputRef,
|
|
211
212
|
id: "new-emoji-name-input",
|
|
212
213
|
"aria-required": true
|
|
213
|
-
})), /*#__PURE__*/React.createElement(
|
|
214
|
+
})), /*#__PURE__*/React.createElement(_text.Text, null, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.emojiChooseFileScreenReaderDescription, function () {
|
|
214
215
|
return /*#__PURE__*/React.createElement(_FileChooser.default, {
|
|
215
216
|
label: (0, _isRefreshEmojiPickerEnabled.isRefreshEmojiPickerEnabled)() ? emojiChooseFileTitleNew : emojiChooseFileTitle,
|
|
216
217
|
onChange: onChooseFile,
|
|
@@ -221,7 +222,7 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
221
222
|
});
|
|
222
223
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
223
224
|
id: fileChooserButtonDescriptionId
|
|
224
|
-
}, !errorMessage ? /*#__PURE__*/React.createElement(
|
|
225
|
+
}, !errorMessage ? /*#__PURE__*/React.createElement(_text.Text, {
|
|
225
226
|
as: "p",
|
|
226
227
|
size: "small"
|
|
227
228
|
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.emojiImageRequirements)) : /*#__PURE__*/React.createElement(_EmojiErrorMessage.default, {
|
|
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _reactIntl = require("react-intl");
|
|
16
16
|
var _css = require("@atlaskit/css");
|
|
17
|
-
var
|
|
17
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
18
18
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
19
19
|
var _usePrevious = require("../../hooks/usePrevious");
|
|
20
20
|
var _constants = require("../../util/constants");
|
|
@@ -153,7 +153,7 @@ var CategorySelector = function CategorySelector(props) {
|
|
|
153
153
|
content: categoryName,
|
|
154
154
|
position: "bottom",
|
|
155
155
|
key: category.id
|
|
156
|
-
}, /*#__PURE__*/React.createElement(
|
|
156
|
+
}, /*#__PURE__*/React.createElement(_pressable.Pressable, {
|
|
157
157
|
id: "category-selector-".concat(category.id),
|
|
158
158
|
"data-focus-index": index,
|
|
159
159
|
"aria-label": categoryName,
|
|
@@ -183,7 +183,7 @@ var CategorySelector = function CategorySelector(props) {
|
|
|
183
183
|
content: categoryName,
|
|
184
184
|
position: "bottom",
|
|
185
185
|
key: category.id
|
|
186
|
-
}, /*#__PURE__*/React.createElement(
|
|
186
|
+
}, /*#__PURE__*/React.createElement(_pressable.Pressable, {
|
|
187
187
|
id: "category-selector-".concat(category.id),
|
|
188
188
|
"data-focus-index": index,
|
|
189
189
|
"aria-label": categoryName,
|
|
@@ -19,7 +19,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
|
|
|
19
19
|
actionSubjectId: actionSubjectId,
|
|
20
20
|
attributes: _objectSpread({
|
|
21
21
|
packageName: "@atlaskit/emoji",
|
|
22
|
-
packageVersion: "
|
|
22
|
+
packageVersion: "73.0.0"
|
|
23
23
|
}, attributes)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
3
|
-
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
3
|
+
import { utils as serviceUtils } from '@atlaskit/util-service-support/constants';
|
|
4
4
|
import { buildEmojiDescriptionWithAltRepresentation } from '../../util/build-emoji-description-with-alt-representation';
|
|
5
5
|
import { convertImageToMediaRepresentation } from '../../util/convert-image-to-media-representation';
|
|
6
6
|
import { isLoadedMediaEmoji } from '../../util/is-loaded-media-emoji';
|
|
@@ -10,8 +10,8 @@ import Button from '@atlaskit/button/default/button';
|
|
|
10
10
|
import AkButton from '@atlaskit/button/standard-button';
|
|
11
11
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
15
15
|
import TextField from '@atlaskit/textfield/text-field';
|
|
16
16
|
import * as ImageUtil from '../../util/image';
|
|
17
17
|
import debug from '../../util/logger';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
import { usePrevious } from '../../hooks/usePrevious';
|
|
11
11
|
import { CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED, defaultCategories, KeyboardKeys } from '../../util/constants';
|
|
@@ -9,7 +9,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
9
9
|
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; }
|
|
10
10
|
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) { _defineProperty(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; }
|
|
11
11
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
12
|
-
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
12
|
+
import { utils as serviceUtils } from '@atlaskit/util-service-support/constants';
|
|
13
13
|
import { buildEmojiDescriptionWithAltRepresentation } from '../../util/build-emoji-description-with-alt-representation';
|
|
14
14
|
import { convertImageToMediaRepresentation } from '../../util/convert-image-to-media-representation';
|
|
15
15
|
import { isLoadedMediaEmoji } from '../../util/is-loaded-media-emoji';
|
|
@@ -13,8 +13,8 @@ import Button from '@atlaskit/button/default/button';
|
|
|
13
13
|
import AkButton from '@atlaskit/button/standard-button';
|
|
14
14
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
17
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
18
18
|
import TextField from '@atlaskit/textfield/text-field';
|
|
19
19
|
import * as ImageUtil from '../../util/image';
|
|
20
20
|
import debug from '../../util/logger';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
11
11
|
import { usePrevious } from '../../hooks/usePrevious';
|
|
12
12
|
import { CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED, defaultCategories, KeyboardKeys } from '../../util/constants';
|
|
@@ -12,7 +12,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
|
|
|
12
12
|
actionSubjectId: actionSubjectId,
|
|
13
13
|
attributes: _objectSpread({
|
|
14
14
|
packageName: "@atlaskit/emoji",
|
|
15
|
-
packageVersion: "
|
|
15
|
+
packageVersion: "73.0.0"
|
|
16
16
|
}, attributes)
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { KeyValues } from '@atlaskit/util-service-support/types';
|
|
2
2
|
export declare const calculateScale: (getRatio: () => number) => KeyValues;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ServiceConfig } from '@atlaskit/util-service-support/types';
|
|
2
2
|
import type { EmojiDescription, EmojiId, EmojiRepresentation, EmojiServiceDescription, EmojiUpload, MediaApiToken, OptionalEmojiDescription } from '../../types';
|
|
3
3
|
import TokenManager from './TokenManager';
|
|
4
4
|
export interface EmojiUploadResponse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "73.0.
|
|
3
|
+
"version": "73.0.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/spinner": "^20.4.0",
|
|
55
55
|
"@atlaskit/textfield": "^10.2.0",
|
|
56
56
|
"@atlaskit/theme": "^28.2.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^241.0.0",
|
|
58
58
|
"@atlaskit/tokens": "^20.6.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.4.0",
|
|
60
60
|
"@atlaskit/ufo": "^2.0.0",
|