@atlaskit/emoji 69.0.12 → 69.0.13
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 +8 -0
- package/dist/cjs/components/common/EmojiPlaceholder.js +2 -1
- package/dist/cjs/components/common/EmojiUploadPicker.js +3 -3
- package/dist/cjs/components/i18n.js +3 -5
- package/dist/cjs/components/picker/EmojiPickerListSearch.js +2 -3
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/EmojiPlaceholder.js +2 -1
- package/dist/es2019/components/common/EmojiUploadPicker.js +1 -1
- package/dist/es2019/components/i18n.js +3 -5
- package/dist/es2019/components/picker/EmojiPickerListSearch.js +2 -3
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/EmojiPlaceholder.js +2 -1
- package/dist/esm/components/common/EmojiUploadPicker.js +1 -1
- package/dist/esm/components/i18n.js +3 -5
- package/dist/esm/components/picker/EmojiPickerListSearch.js +2 -3
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/types/components/i18n.d.ts +5 -0
- package/dist/types/util/type-helpers.d.ts +1 -1
- package/dist/types-ts4.5/components/i18n.d.ts +5 -0
- package/dist/types-ts4.5/util/type-helpers.d.ts +1 -1
- package/docs/0-intro.tsx +1 -1
- package/docs/4-emoji-provider.tsx +1 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#142842](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142842)
|
|
8
|
+
[`63265d6000c11`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63265d6000c11) -
|
|
9
|
+
Internal change to migrate to Compiled CSS-in-JS styling.
|
|
10
|
+
|
|
3
11
|
## 69.0.12
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ require("./EmojiPlaceholder.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
16
|
var _constants = require("../../util/constants");
|
|
16
17
|
var _styles = require("./styles");
|
|
@@ -57,7 +58,7 @@ var EmojiPlaceholder = function EmojiPlaceholder(props) {
|
|
|
57
58
|
"aria-label": shortName
|
|
58
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
59
60
|
,
|
|
60
|
-
className: (0, _runtime.ax)(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkosqtm _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", loading && "_16qqztlz _1kt9b3bt _cfu11ule _1cs8stnw _1ruskq2v _kfgt1osq _1mp41osq", _styles.placeholder]),
|
|
61
|
+
className: (0, _runtime.ax)(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkosqtm _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", loading && !(0, _platformFeatureFlags.fg)('cc_complexit_fe_remove_emoji_animation') && "_16qqztlz _1kt9b3bt _cfu11ule _1cs8stnw _1ruskq2v _kfgt1osq _1mp41osq", _styles.placeholder]),
|
|
61
62
|
title: showTooltip ? shortName : '',
|
|
62
63
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
63
64
|
"--_12ncegi": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N20A, ")")),
|
|
@@ -19,7 +19,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
19
19
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
20
20
|
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
21
21
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
22
|
-
var
|
|
22
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
23
|
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
24
24
|
var ImageUtil = _interopRequireWildcard(require("../../util/image"));
|
|
25
25
|
var _logger = _interopRequireDefault(require("../../util/logger"));
|
|
@@ -122,7 +122,7 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
122
122
|
ref: inputRef,
|
|
123
123
|
id: "new-emoji-name-input",
|
|
124
124
|
"aria-required": true
|
|
125
|
-
})), /*#__PURE__*/React.createElement(
|
|
125
|
+
})), /*#__PURE__*/React.createElement(_compiled.Text, null, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.emojiChooseFileScreenReaderDescription, function () {
|
|
126
126
|
return /*#__PURE__*/React.createElement(_FileChooser.default, {
|
|
127
127
|
label: emojiChooseFileTitle,
|
|
128
128
|
onChange: onChooseFile,
|
|
@@ -133,7 +133,7 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
133
133
|
});
|
|
134
134
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
135
135
|
id: fileChooserButtonDescriptionId
|
|
136
|
-
}, !errorMessage ? /*#__PURE__*/React.createElement(
|
|
136
|
+
}, !errorMessage ? /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
137
137
|
as: "p",
|
|
138
138
|
size: "small"
|
|
139
139
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.emojiImageRequirements)) : /*#__PURE__*/React.createElement(_EmojiErrorMessage.default, {
|
|
@@ -106,13 +106,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
106
106
|
defaultMessage: 'Emoji name',
|
|
107
107
|
description: 'verb - button label to search'
|
|
108
108
|
},
|
|
109
|
-
/*
|
|
110
109
|
searchResultsStatus: {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
id: 'fabric.emoji.search.status.count',
|
|
111
|
+
defaultMessage: 'Found {count} emojis',
|
|
112
|
+
description: 'search results status for screenreader to read out'
|
|
114
113
|
},
|
|
115
|
-
*/
|
|
116
114
|
searchResultsStatusSeeAll: {
|
|
117
115
|
id: 'fabric.emoji.search.status',
|
|
118
116
|
defaultMessage: 'Seeing all emojis',
|
|
@@ -66,10 +66,9 @@ var EmojiPickerListSearch = exports.EmojiPickerListSearch = function EmojiPicker
|
|
|
66
66
|
}, /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, {
|
|
67
67
|
id: "emoji-search-results-status",
|
|
68
68
|
role: "status"
|
|
69
|
-
}, dirty
|
|
70
|
-
// change to messages.searchResultsStatus once translated
|
|
69
|
+
}, dirty ? query === '' ? formatMessage(_i18n.messages.searchResultsStatusSeeAll) : formatMessage(_i18n.messages.searchResultsStatus, {
|
|
71
70
|
count: resultsCount
|
|
72
|
-
})), /*#__PURE__*/_react.default.createElement(_textfield.default, {
|
|
71
|
+
}) : null), /*#__PURE__*/_react.default.createElement(_textfield.default, {
|
|
73
72
|
role: "searchbox",
|
|
74
73
|
"aria-label": formatMessage(_i18n.messages.searchLabel),
|
|
75
74
|
autoComplete: "off",
|
|
@@ -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: "69.0.
|
|
23
|
+
packageVersion: "69.0.13"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import "./EmojiPlaceholder.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { N20A } from '@atlaskit/theme/colors';
|
|
6
7
|
import { defaultEmojiHeight } from '../../util/constants';
|
|
7
8
|
import { placeholder } from './styles';
|
|
@@ -42,7 +43,7 @@ const EmojiPlaceholder = props => {
|
|
|
42
43
|
"aria-label": shortName
|
|
43
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
44
45
|
,
|
|
45
|
-
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkosqtm _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", loading && "", loading && "_16qq1t1r _1kt9b3bt _cfu11ule _1cs8stnw _1rus1j54 _kfgt1osq _1mp41osq", placeholder]),
|
|
46
|
+
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkosqtm _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", loading && !fg('cc_complexit_fe_remove_emoji_animation') && "", loading && !fg('cc_complexit_fe_remove_emoji_animation') && "_16qq1t1r _1kt9b3bt _cfu11ule _1cs8stnw _1rus1j54 _kfgt1osq _1mp41osq", placeholder]),
|
|
46
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
47
48
|
style: style,
|
|
48
49
|
title: showTooltip ? shortName : ''
|
|
@@ -8,7 +8,7 @@ import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
|
8
8
|
import TextField from '@atlaskit/textfield';
|
|
9
9
|
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
10
10
|
import AkButton from '@atlaskit/button/standard-button';
|
|
11
|
-
import { Text } from '@atlaskit/primitives';
|
|
11
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import FocusLock from 'react-focus-lock';
|
|
13
13
|
import * as ImageUtil from '../../util/image';
|
|
14
14
|
import debug from '../../util/logger';
|
|
@@ -100,13 +100,11 @@ export const messages = defineMessages({
|
|
|
100
100
|
defaultMessage: 'Emoji name',
|
|
101
101
|
description: 'verb - button label to search'
|
|
102
102
|
},
|
|
103
|
-
/*
|
|
104
103
|
searchResultsStatus: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
id: 'fabric.emoji.search.status.count',
|
|
105
|
+
defaultMessage: 'Found {count} emojis',
|
|
106
|
+
description: 'search results status for screenreader to read out'
|
|
108
107
|
},
|
|
109
|
-
*/
|
|
110
108
|
searchResultsStatusSeeAll: {
|
|
111
109
|
id: 'fabric.emoji.search.status',
|
|
112
110
|
defaultMessage: 'Seeing all emojis',
|
|
@@ -52,10 +52,9 @@ export const EmojiPickerListSearch = props => {
|
|
|
52
52
|
}, /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
53
53
|
id: "emoji-search-results-status",
|
|
54
54
|
role: "status"
|
|
55
|
-
}, dirty
|
|
56
|
-
// change to messages.searchResultsStatus once translated
|
|
55
|
+
}, dirty ? query === '' ? formatMessage(messages.searchResultsStatusSeeAll) : formatMessage(messages.searchResultsStatus, {
|
|
57
56
|
count: resultsCount
|
|
58
|
-
})), /*#__PURE__*/React.createElement(TextField, {
|
|
57
|
+
}) : null), /*#__PURE__*/React.createElement(TextField, {
|
|
59
58
|
role: "searchbox",
|
|
60
59
|
"aria-label": formatMessage(messages.searchLabel),
|
|
61
60
|
autoComplete: "off",
|
|
@@ -5,6 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { N20A } from '@atlaskit/theme/colors';
|
|
9
10
|
import { defaultEmojiHeight } from '../../util/constants';
|
|
10
11
|
import { placeholder } from './styles';
|
|
@@ -47,7 +48,7 @@ var EmojiPlaceholder = function EmojiPlaceholder(props) {
|
|
|
47
48
|
"aria-label": shortName
|
|
48
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
49
50
|
,
|
|
50
|
-
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkosqtm _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", loading && "_16qqztlz _1kt9b3bt _cfu11ule _1cs8stnw _1ruskq2v _kfgt1osq _1mp41osq", placeholder]),
|
|
51
|
+
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkosqtm _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", loading && !fg('cc_complexit_fe_remove_emoji_animation') && "_16qqztlz _1kt9b3bt _cfu11ule _1cs8stnw _1ruskq2v _kfgt1osq _1mp41osq", placeholder]),
|
|
51
52
|
title: showTooltip ? shortName : '',
|
|
52
53
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
53
54
|
"--_12ncegi": ix("var(--ds-background-neutral, ".concat(N20A, ")")),
|
|
@@ -11,7 +11,7 @@ import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
|
11
11
|
import TextField from '@atlaskit/textfield';
|
|
12
12
|
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
13
13
|
import AkButton from '@atlaskit/button/standard-button';
|
|
14
|
-
import { Text } from '@atlaskit/primitives';
|
|
14
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
15
15
|
import FocusLock from 'react-focus-lock';
|
|
16
16
|
import * as ImageUtil from '../../util/image';
|
|
17
17
|
import debug from '../../util/logger';
|
|
@@ -100,13 +100,11 @@ export var messages = defineMessages({
|
|
|
100
100
|
defaultMessage: 'Emoji name',
|
|
101
101
|
description: 'verb - button label to search'
|
|
102
102
|
},
|
|
103
|
-
/*
|
|
104
103
|
searchResultsStatus: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
id: 'fabric.emoji.search.status.count',
|
|
105
|
+
defaultMessage: 'Found {count} emojis',
|
|
106
|
+
description: 'search results status for screenreader to read out'
|
|
108
107
|
},
|
|
109
|
-
*/
|
|
110
108
|
searchResultsStatusSeeAll: {
|
|
111
109
|
id: 'fabric.emoji.search.status',
|
|
112
110
|
defaultMessage: 'Seeing all emojis',
|
|
@@ -56,10 +56,9 @@ export var EmojiPickerListSearch = function EmojiPickerListSearch(props) {
|
|
|
56
56
|
}, /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
57
57
|
id: "emoji-search-results-status",
|
|
58
58
|
role: "status"
|
|
59
|
-
}, dirty
|
|
60
|
-
// change to messages.searchResultsStatus once translated
|
|
59
|
+
}, dirty ? query === '' ? formatMessage(messages.searchResultsStatusSeeAll) : formatMessage(messages.searchResultsStatus, {
|
|
61
60
|
count: resultsCount
|
|
62
|
-
})), /*#__PURE__*/React.createElement(TextField, {
|
|
61
|
+
}) : null), /*#__PURE__*/React.createElement(TextField, {
|
|
63
62
|
role: "searchbox",
|
|
64
63
|
"aria-label": formatMessage(messages.searchLabel),
|
|
65
64
|
autoComplete: "off",
|
|
@@ -13,7 +13,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
13
13
|
actionSubjectId: actionSubjectId,
|
|
14
14
|
attributes: _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/emoji",
|
|
16
|
-
packageVersion: "69.0.
|
|
16
|
+
packageVersion: "69.0.13"
|
|
17
17
|
}, attributes)
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -99,6 +99,11 @@ export declare const messages: {
|
|
|
99
99
|
defaultMessage: string;
|
|
100
100
|
description: string;
|
|
101
101
|
};
|
|
102
|
+
searchResultsStatus: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
102
107
|
searchResultsStatusSeeAll: {
|
|
103
108
|
id: string;
|
|
104
109
|
defaultMessage: string;
|
|
@@ -11,7 +11,7 @@ export declare const hasDataURLImage: (rep: EmojiRepresentation) => boolean;
|
|
|
11
11
|
export declare const isLoadedMediaEmoji: (emoji: EmojiDescription) => boolean;
|
|
12
12
|
export declare const isEmojiDescriptionWithVariations: (emoji: OptionalEmojiDescription) => emoji is EmojiDescriptionWithVariations;
|
|
13
13
|
export declare const isEmojiVariationDescription: (object: any) => object is EmojiVariationDescription;
|
|
14
|
-
export declare const isMessagesKey: (key: string) => key is "deleteEmojiTooltip" | "deleteEmojiTooltipForScreenreader" | "deleteEmojiTitle" | "deleteEmojiDescription" | "deleteEmojiLabel" | "addCustomEmojiLabel" | "emojiPlaceholder" | "emojiNameAriaLabel" | "emojiChooseFileTitle" | "emojiChooseFileScreenReaderDescription" | "emojiSelectSkinToneButtonAriaLabelText" | "emojiSelectSkinToneListAriaLabelText" | "emojiImageRequirements" | "emojiPreviewTitle" | "emojiPreview" | "addEmojiLabel" | "retryLabel" | "cancelLabel" | "searchPlaceholder" | "searchLabel" | "searchResultsStatusSeeAll" | "categoriesSelectorLabel" | "categoriesSearchResults" | "frequentCategory" | "peopleCategory" | "natureCategory" | "foodsCategory" | "activityCategory" | "placesCategory" | "objectsCategory" | "symbolsCategory" | "flagsCategory" | "productivityCategory" | "userUploadsCustomCategory" | "allUploadsCustomCategory" | "deleteEmojiFailed" | "emojiInvalidImage" | "emojiUploadFailed" | "emojiUploadTimeout" | "emojiImageTooBig" | "emojiPickerTitle" | "emojiPickerListPanel" | "emojiPickerGrid" | "emojiButtonRoleDescription" | "error";
|
|
14
|
+
export declare const isMessagesKey: (key: string) => key is "deleteEmojiTooltip" | "deleteEmojiTooltipForScreenreader" | "deleteEmojiTitle" | "deleteEmojiDescription" | "deleteEmojiLabel" | "addCustomEmojiLabel" | "emojiPlaceholder" | "emojiNameAriaLabel" | "emojiChooseFileTitle" | "emojiChooseFileScreenReaderDescription" | "emojiSelectSkinToneButtonAriaLabelText" | "emojiSelectSkinToneListAriaLabelText" | "emojiImageRequirements" | "emojiPreviewTitle" | "emojiPreview" | "addEmojiLabel" | "retryLabel" | "cancelLabel" | "searchPlaceholder" | "searchLabel" | "searchResultsStatus" | "searchResultsStatusSeeAll" | "categoriesSelectorLabel" | "categoriesSearchResults" | "frequentCategory" | "peopleCategory" | "natureCategory" | "foodsCategory" | "activityCategory" | "placesCategory" | "objectsCategory" | "symbolsCategory" | "flagsCategory" | "productivityCategory" | "userUploadsCustomCategory" | "allUploadsCustomCategory" | "deleteEmojiFailed" | "emojiInvalidImage" | "emojiUploadFailed" | "emojiUploadTimeout" | "emojiImageTooBig" | "emojiPickerTitle" | "emojiPickerListPanel" | "emojiPickerGrid" | "emojiButtonRoleDescription" | "error";
|
|
15
15
|
export declare const toEmojiId: (emoji: EmojiDescription) => EmojiId;
|
|
16
16
|
export declare const toOptionalEmojiId: (emoji: OptionalEmojiDescription) => EmojiId | undefined;
|
|
17
17
|
export declare const isEmojiIdEqual: (l?: EmojiId, r?: EmojiId) => boolean | undefined;
|
|
@@ -99,6 +99,11 @@ export declare const messages: {
|
|
|
99
99
|
defaultMessage: string;
|
|
100
100
|
description: string;
|
|
101
101
|
};
|
|
102
|
+
searchResultsStatus: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
102
107
|
searchResultsStatusSeeAll: {
|
|
103
108
|
id: string;
|
|
104
109
|
defaultMessage: string;
|
|
@@ -11,7 +11,7 @@ export declare const hasDataURLImage: (rep: EmojiRepresentation) => boolean;
|
|
|
11
11
|
export declare const isLoadedMediaEmoji: (emoji: EmojiDescription) => boolean;
|
|
12
12
|
export declare const isEmojiDescriptionWithVariations: (emoji: OptionalEmojiDescription) => emoji is EmojiDescriptionWithVariations;
|
|
13
13
|
export declare const isEmojiVariationDescription: (object: any) => object is EmojiVariationDescription;
|
|
14
|
-
export declare const isMessagesKey: (key: string) => key is "deleteEmojiTooltip" | "deleteEmojiTooltipForScreenreader" | "deleteEmojiTitle" | "deleteEmojiDescription" | "deleteEmojiLabel" | "addCustomEmojiLabel" | "emojiPlaceholder" | "emojiNameAriaLabel" | "emojiChooseFileTitle" | "emojiChooseFileScreenReaderDescription" | "emojiSelectSkinToneButtonAriaLabelText" | "emojiSelectSkinToneListAriaLabelText" | "emojiImageRequirements" | "emojiPreviewTitle" | "emojiPreview" | "addEmojiLabel" | "retryLabel" | "cancelLabel" | "searchPlaceholder" | "searchLabel" | "searchResultsStatusSeeAll" | "categoriesSelectorLabel" | "categoriesSearchResults" | "frequentCategory" | "peopleCategory" | "natureCategory" | "foodsCategory" | "activityCategory" | "placesCategory" | "objectsCategory" | "symbolsCategory" | "flagsCategory" | "productivityCategory" | "userUploadsCustomCategory" | "allUploadsCustomCategory" | "deleteEmojiFailed" | "emojiInvalidImage" | "emojiUploadFailed" | "emojiUploadTimeout" | "emojiImageTooBig" | "emojiPickerTitle" | "emojiPickerListPanel" | "emojiPickerGrid" | "emojiButtonRoleDescription" | "error";
|
|
14
|
+
export declare const isMessagesKey: (key: string) => key is "deleteEmojiTooltip" | "deleteEmojiTooltipForScreenreader" | "deleteEmojiTitle" | "deleteEmojiDescription" | "deleteEmojiLabel" | "addCustomEmojiLabel" | "emojiPlaceholder" | "emojiNameAriaLabel" | "emojiChooseFileTitle" | "emojiChooseFileScreenReaderDescription" | "emojiSelectSkinToneButtonAriaLabelText" | "emojiSelectSkinToneListAriaLabelText" | "emojiImageRequirements" | "emojiPreviewTitle" | "emojiPreview" | "addEmojiLabel" | "retryLabel" | "cancelLabel" | "searchPlaceholder" | "searchLabel" | "searchResultsStatus" | "searchResultsStatusSeeAll" | "categoriesSelectorLabel" | "categoriesSearchResults" | "frequentCategory" | "peopleCategory" | "natureCategory" | "foodsCategory" | "activityCategory" | "placesCategory" | "objectsCategory" | "symbolsCategory" | "flagsCategory" | "productivityCategory" | "userUploadsCustomCategory" | "allUploadsCustomCategory" | "deleteEmojiFailed" | "emojiInvalidImage" | "emojiUploadFailed" | "emojiUploadTimeout" | "emojiImageTooBig" | "emojiPickerTitle" | "emojiPickerListPanel" | "emojiPickerGrid" | "emojiButtonRoleDescription" | "error";
|
|
15
15
|
export declare const toEmojiId: (emoji: EmojiDescription) => EmojiId;
|
|
16
16
|
export declare const toOptionalEmojiId: (emoji: OptionalEmojiDescription) => EmojiId | undefined;
|
|
17
17
|
export declare const isEmojiIdEqual: (l?: EmojiId, r?: EmojiId) => boolean | undefined;
|
package/docs/0-intro.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { md, Example, code, AtlassianInternalWarning, Props } from '@atlaskit/docs';
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
4
|
import SimpleEmojiExample from '../examples/00-simple-emoji';
|
|
5
|
-
import { Text } from '@atlaskit/primitives';
|
|
5
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
6
6
|
|
|
7
7
|
const SimpleEmojiSource = require('!!raw-loader!../examples/00-simple-emoji');
|
|
8
8
|
const EmojiProps = require('!!extract-react-types-loader!../src/components/common/Emoji');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, code } from '@atlaskit/docs';
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
|
-
import { Text } from '@atlaskit/primitives';
|
|
4
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
|
|
6
6
|
export default md`
|
|
7
7
|
Emoji provider mainly controls what type of emojis you want to support, how to resolve emojis, and how to upload custom emojis if enabled.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.0.
|
|
3
|
+
"version": "69.0.13",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"@atlaskit/button": "^23.0.0",
|
|
40
40
|
"@atlaskit/css": "^0.10.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
|
-
"@atlaskit/icon": "^25.
|
|
42
|
+
"@atlaskit/icon": "^25.6.0",
|
|
43
43
|
"@atlaskit/media-client": "^32.0.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^4.0.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|
|
47
47
|
"@atlaskit/primitives": "^14.4.0",
|
|
48
|
-
"@atlaskit/react-ufo": "^3.
|
|
48
|
+
"@atlaskit/react-ufo": "^3.6.0",
|
|
49
49
|
"@atlaskit/spinner": "^18.0.0",
|
|
50
50
|
"@atlaskit/textfield": "^8.0.0",
|
|
51
51
|
"@atlaskit/theme": "^18.0.0",
|
|
52
|
-
"@atlaskit/tokens": "^4.
|
|
52
|
+
"@atlaskit/tokens": "^4.8.0",
|
|
53
53
|
"@atlaskit/tooltip": "^20.0.0",
|
|
54
54
|
"@atlaskit/ufo": "^0.4.0",
|
|
55
55
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
@@ -135,6 +135,9 @@
|
|
|
135
135
|
},
|
|
136
136
|
"platform_editor_react18_elements_emoji_jira_bb": {
|
|
137
137
|
"type": "boolean"
|
|
138
|
+
},
|
|
139
|
+
"cc_complexit_fe_remove_emoji_animation": {
|
|
140
|
+
"type": "boolean"
|
|
138
141
|
}
|
|
139
142
|
},
|
|
140
143
|
"scripts": {
|