@atlaskit/emoji 73.2.1 → 73.3.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 +30 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/components/common/EmojiPreviewComponent.js +22 -1
- package/dist/cjs/util/analytics/createEvent.js +1 -1
- package/dist/es2019/components/common/EmojiPreviewComponent.js +20 -2
- package/dist/es2019/util/analytics/createEvent.js +1 -1
- package/dist/esm/components/common/EmojiPreviewComponent.js +22 -1
- package/dist/esm/util/analytics/createEvent.js +1 -1
- package/dist/types/components/common/EmojiPreviewComponent.d.ts +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 73.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 73.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`69008f6bdcb98`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/69008f6bdcb98) -
|
|
14
|
+
Adjust all mention picker rows and emoji results to use 6px vertical padding, 8px between rows,
|
|
15
|
+
and 2px between primary and secondary text behind platform_editor_mentions_email_search.
|
|
16
|
+
|
|
17
|
+
Center the avatar and text within the 50px selection row and reserve the 8px gap outside the
|
|
18
|
+
selection and focus backgrounds.
|
|
19
|
+
|
|
20
|
+
Share the presentational picker row between mentions and emoji through
|
|
21
|
+
`@atlaskit/user-picker/picker-item-content`.
|
|
22
|
+
|
|
23
|
+
Apply the same gated preview spacing to the emoji picker footer, and use 12px horizontal padding
|
|
24
|
+
and avatar-to-text spacing for both mentions and emoji.
|
|
25
|
+
|
|
26
|
+
Consolidate byline formatting within the email-search layout, keeping the original byline
|
|
27
|
+
components in the legacy path and subtext presentation internal to each layout.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
3
33
|
## 73.2.1
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -10,6 +10,8 @@ exports.EmojiPreviewComponent = void 0;
|
|
|
10
10
|
require("./EmojiPreviewComponent.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
14
|
+
var _pickerItemContent = require("@atlaskit/user-picker/picker-item-content");
|
|
13
15
|
var _CachingEmoji = _interopRequireDefault(require("./CachingEmoji"));
|
|
14
16
|
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); }
|
|
15
17
|
var emojiName = null;
|
|
@@ -17,7 +19,7 @@ var emojiShortName = null;
|
|
|
17
19
|
var preview = null;
|
|
18
20
|
var previewImg = null;
|
|
19
21
|
var previewText = null;
|
|
20
|
-
var
|
|
22
|
+
var EmojiPreviewComponentLegacy = function EmojiPreviewComponentLegacy(_ref) {
|
|
21
23
|
var emoji = _ref.emoji;
|
|
22
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
23
25
|
className: (0, _runtime.ax)(["_ca0q19bv _u5f319bv _n3td19bv _19bv19bv _1e0c1txw _2lx2vrvc _1n261q9c _4t3izwfg _4cvr1h6o"])
|
|
@@ -33,4 +35,23 @@ var EmojiPreviewComponent = exports.EmojiPreviewComponent = function EmojiPrevie
|
|
|
33
35
|
}, emoji.name), /*#__PURE__*/React.createElement("div", {
|
|
34
36
|
className: (0, _runtime.ax)(["_11c8wadc _1reo15vq _18m915vq _1e0c1ule _syazazsu _vwz4kb7n _otyr1i6y _n3tdv77o _1bto1l2s _o5721q9c _10hwfhey _pnmbi7uo"])
|
|
35
37
|
}, emoji.shortName)));
|
|
38
|
+
};
|
|
39
|
+
var previewImageNext = null;
|
|
40
|
+
var EmojiPreviewComponentNext = function EmojiPreviewComponentNext(_ref2) {
|
|
41
|
+
var emoji = _ref2.emoji;
|
|
42
|
+
return /*#__PURE__*/React.createElement(_pickerItemContent.PickerItemContent, {
|
|
43
|
+
avatar: /*#__PURE__*/React.createElement("span", {
|
|
44
|
+
className: (0, _runtime.ax)(["_1e0c1o8l _1bsbzwfg _12s6idpf _1e4didpf _1dvqidpf _vwlxidpf _1gdiidpf _1f45idpf _pdfdidpf _mwo3idpf _5ilezwfg _boltzwfg _1pc7zwfg _u5wqzwfg _w7981kw7 _1vqe1kw7 _1l4xidpf _1l79idpf _118didpf _1pa4idpf _1pglh2mm _1vjf1ssb _1h6o1ssb _8fp6dbra _1os4zwfg _1e7azwfg _7mh21ule", "_1e0c1txw"])
|
|
45
|
+
}, /*#__PURE__*/React.createElement(_CachingEmoji.default, {
|
|
46
|
+
key: emoji.id || emoji.shortName,
|
|
47
|
+
emoji: emoji
|
|
48
|
+
})),
|
|
49
|
+
title: emoji.name ? /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _1e0c1ule _syazi7uo _1bto1l2s _o5721q9c _299mangw"])
|
|
51
|
+
}, emoji.name) : emoji.shortName,
|
|
52
|
+
subtext: emoji.name ? emoji.shortName : undefined
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var EmojiPreviewComponent = exports.EmojiPreviewComponent = function EmojiPreviewComponent(props) {
|
|
56
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mentions_email_search') ? /*#__PURE__*/React.createElement(EmojiPreviewComponentNext, props) : /*#__PURE__*/React.createElement(EmojiPreviewComponentLegacy, props);
|
|
36
57
|
};
|
|
@@ -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: "73.
|
|
22
|
+
packageVersion: "73.3.0"
|
|
23
23
|
}, attributes)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
import "./EmojiPreviewComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
|
+
import { PickerItemContent } from '@atlaskit/user-picker/picker-item-content';
|
|
5
7
|
import CachingEmoji from './CachingEmoji';
|
|
6
8
|
const emojiName = null;
|
|
7
9
|
const emojiShortName = null;
|
|
8
10
|
const preview = null;
|
|
9
11
|
const previewImg = null;
|
|
10
12
|
const previewText = null;
|
|
11
|
-
|
|
13
|
+
const EmojiPreviewComponentLegacy = ({
|
|
12
14
|
emoji
|
|
13
15
|
}) => {
|
|
14
16
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -25,4 +27,20 @@ export const EmojiPreviewComponent = ({
|
|
|
25
27
|
}, emoji.name), /*#__PURE__*/React.createElement("div", {
|
|
26
28
|
className: ax(["_11c8wadc _1reo15vq _18m915vq _1e0c1ule _syazazsu _vwz4kb7n _otyr1i6y _n3tdv77o _1bto1l2s _o5721q9c _10hwfhey _pnmbi7uo"])
|
|
27
29
|
}, emoji.shortName)));
|
|
28
|
-
};
|
|
30
|
+
};
|
|
31
|
+
const previewImageNext = null;
|
|
32
|
+
const EmojiPreviewComponentNext = ({
|
|
33
|
+
emoji
|
|
34
|
+
}) => /*#__PURE__*/React.createElement(PickerItemContent, {
|
|
35
|
+
avatar: /*#__PURE__*/React.createElement("span", {
|
|
36
|
+
className: ax(["_1e0c1o8l _1bsbzwfg _12s6idpf _1e4didpf _1dvqidpf _vwlxidpf _1gdiidpf _1f45idpf _pdfdidpf _mwo3idpf _5ilezwfg _boltzwfg _1pc7zwfg _u5wqzwfg _w7981kw7 _1vqe1kw7 _1l4xidpf _1l79idpf _118didpf _1pa4idpf _1pglh2mm _1vjf1ssb _1h6o1ssb _8fp6dbra _1os4zwfg _1e7azwfg _7mh21ule", "_1e0c1txw"])
|
|
37
|
+
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
38
|
+
key: emoji.id || emoji.shortName,
|
|
39
|
+
emoji: emoji
|
|
40
|
+
})),
|
|
41
|
+
title: emoji.name ? /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: ax(["_1reo15vq _18m915vq _1e0c1ule _syazi7uo _1bto1l2s _o5721q9c _299mangw"])
|
|
43
|
+
}, emoji.name) : emoji.shortName,
|
|
44
|
+
subtext: emoji.name ? emoji.shortName : undefined
|
|
45
|
+
});
|
|
46
|
+
export const EmojiPreviewComponent = props => isExperimentEnabled('platform_editor_mentions_email_search') ? /*#__PURE__*/React.createElement(EmojiPreviewComponentNext, props) : /*#__PURE__*/React.createElement(EmojiPreviewComponentLegacy, props);
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
import "./EmojiPreviewComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
|
+
import { PickerItemContent } from '@atlaskit/user-picker/picker-item-content';
|
|
5
7
|
import CachingEmoji from './CachingEmoji';
|
|
6
8
|
var emojiName = null;
|
|
7
9
|
var emojiShortName = null;
|
|
8
10
|
var preview = null;
|
|
9
11
|
var previewImg = null;
|
|
10
12
|
var previewText = null;
|
|
11
|
-
|
|
13
|
+
var EmojiPreviewComponentLegacy = function EmojiPreviewComponentLegacy(_ref) {
|
|
12
14
|
var emoji = _ref.emoji;
|
|
13
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
14
16
|
className: ax(["_ca0q19bv _u5f319bv _n3td19bv _19bv19bv _1e0c1txw _2lx2vrvc _1n261q9c _4t3izwfg _4cvr1h6o"])
|
|
@@ -24,4 +26,23 @@ export var EmojiPreviewComponent = function EmojiPreviewComponent(_ref) {
|
|
|
24
26
|
}, emoji.name), /*#__PURE__*/React.createElement("div", {
|
|
25
27
|
className: ax(["_11c8wadc _1reo15vq _18m915vq _1e0c1ule _syazazsu _vwz4kb7n _otyr1i6y _n3tdv77o _1bto1l2s _o5721q9c _10hwfhey _pnmbi7uo"])
|
|
26
28
|
}, emoji.shortName)));
|
|
29
|
+
};
|
|
30
|
+
var previewImageNext = null;
|
|
31
|
+
var EmojiPreviewComponentNext = function EmojiPreviewComponentNext(_ref2) {
|
|
32
|
+
var emoji = _ref2.emoji;
|
|
33
|
+
return /*#__PURE__*/React.createElement(PickerItemContent, {
|
|
34
|
+
avatar: /*#__PURE__*/React.createElement("span", {
|
|
35
|
+
className: ax(["_1e0c1o8l _1bsbzwfg _12s6idpf _1e4didpf _1dvqidpf _vwlxidpf _1gdiidpf _1f45idpf _pdfdidpf _mwo3idpf _5ilezwfg _boltzwfg _1pc7zwfg _u5wqzwfg _w7981kw7 _1vqe1kw7 _1l4xidpf _1l79idpf _118didpf _1pa4idpf _1pglh2mm _1vjf1ssb _1h6o1ssb _8fp6dbra _1os4zwfg _1e7azwfg _7mh21ule", "_1e0c1txw"])
|
|
36
|
+
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
37
|
+
key: emoji.id || emoji.shortName,
|
|
38
|
+
emoji: emoji
|
|
39
|
+
})),
|
|
40
|
+
title: emoji.name ? /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: ax(["_1reo15vq _18m915vq _1e0c1ule _syazi7uo _1bto1l2s _o5721q9c _299mangw"])
|
|
42
|
+
}, emoji.name) : emoji.shortName,
|
|
43
|
+
subtext: emoji.name ? emoji.shortName : undefined
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export var EmojiPreviewComponent = function EmojiPreviewComponent(props) {
|
|
47
|
+
return isExperimentEnabled('platform_editor_mentions_email_search') ? /*#__PURE__*/React.createElement(EmojiPreviewComponentNext, props) : /*#__PURE__*/React.createElement(EmojiPreviewComponentLegacy, props);
|
|
27
48
|
};
|
|
@@ -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: "73.
|
|
15
|
+
packageVersion: "73.3.0"
|
|
16
16
|
}, attributes)
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -2,5 +2,5 @@ import type { EmojiDescription } from '../../types';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
emoji: EmojiDescription;
|
|
4
4
|
};
|
|
5
|
-
export declare const EmojiPreviewComponent: (
|
|
5
|
+
export declare const EmojiPreviewComponent: (props: Props) => JSX.Element;
|
|
6
6
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "73.
|
|
3
|
+
"version": "73.3.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
"@atlaskit/spinner": "^20.4.0",
|
|
55
55
|
"@atlaskit/textfield": "^10.3.0",
|
|
56
56
|
"@atlaskit/theme": "^28.2.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^249.0.0",
|
|
58
58
|
"@atlaskit/tokens": "^20.8.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.4.0",
|
|
60
60
|
"@atlaskit/ufo": "^2.0.0",
|
|
61
|
+
"@atlaskit/user-picker": "^14.5.0",
|
|
61
62
|
"@atlaskit/util-service-support": "^7.4.0",
|
|
62
63
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
63
64
|
"@babel/runtime": "^7.0.0",
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
"@atlaskit/docs": "^12.3.0",
|
|
83
84
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
84
85
|
"@atlaskit/media-core": "^39.0.0",
|
|
85
|
-
"@atlaskit/popup": "^10.
|
|
86
|
+
"@atlaskit/popup": "^10.2.0",
|
|
86
87
|
"@atlaskit/section-message": "^10.2.0",
|
|
87
88
|
"@atlaskit/ssr": "workspace:^",
|
|
88
89
|
"@atlaskit/util-data-test": "^19.1.0",
|