@atlaskit/emoji 69.10.0 → 69.10.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 +14 -0
- package/afm-cc/tsconfig.json +1 -1
- package/afm-products/tsconfig.json +1 -1
- package/dist/cjs/components/common/DeleteButton.js +0 -1
- package/dist/cjs/components/common/EmojiDeletePreview.compiled.css +5 -8
- package/dist/cjs/components/common/EmojiDeletePreview.js +9 -9
- package/dist/cjs/components/common/EmojiErrorMessage.js +1 -3
- package/dist/cjs/components/common/EmojiPreviewComponent.compiled.css +2 -2
- package/dist/cjs/components/common/EmojiPreviewComponent.js +1 -1
- package/dist/cjs/components/common/EmojiUploadPicker.compiled.css +8 -10
- package/dist/cjs/components/common/EmojiUploadPicker.js +6 -7
- package/dist/cjs/components/common/EmojiUploadPreview.compiled.css +10 -10
- package/dist/cjs/components/common/EmojiUploadPreview.js +8 -13
- package/dist/cjs/components/common/ResourcedEmojiComponent.js +2 -2
- package/dist/cjs/components/picker/EmojiPickerCategoryHeading.compiled.css +1 -1
- package/dist/cjs/components/picker/EmojiPickerCategoryHeading.js +1 -1
- package/dist/cjs/components/picker/EmojiPickerListSearch.compiled.css +1 -1
- package/dist/cjs/components/picker/EmojiPickerListSearch.js +1 -1
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/DeleteButton.js +0 -1
- package/dist/es2019/components/common/EmojiDeletePreview.compiled.css +5 -8
- package/dist/es2019/components/common/EmojiDeletePreview.js +9 -6
- package/dist/es2019/components/common/EmojiErrorMessage.js +1 -3
- package/dist/es2019/components/common/EmojiPreviewComponent.compiled.css +2 -2
- package/dist/es2019/components/common/EmojiPreviewComponent.js +1 -1
- package/dist/es2019/components/common/EmojiUploadPicker.compiled.css +8 -10
- package/dist/es2019/components/common/EmojiUploadPicker.js +6 -7
- package/dist/es2019/components/common/EmojiUploadPreview.compiled.css +10 -10
- package/dist/es2019/components/common/EmojiUploadPreview.js +8 -7
- package/dist/es2019/components/common/ResourcedEmojiComponent.js +2 -2
- package/dist/es2019/components/picker/EmojiPickerCategoryHeading.compiled.css +1 -1
- package/dist/es2019/components/picker/EmojiPickerCategoryHeading.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerListSearch.compiled.css +1 -1
- package/dist/es2019/components/picker/EmojiPickerListSearch.js +1 -1
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/DeleteButton.js +0 -1
- package/dist/esm/components/common/EmojiDeletePreview.compiled.css +5 -8
- package/dist/esm/components/common/EmojiDeletePreview.js +9 -9
- package/dist/esm/components/common/EmojiErrorMessage.js +1 -3
- package/dist/esm/components/common/EmojiPreviewComponent.compiled.css +2 -2
- package/dist/esm/components/common/EmojiPreviewComponent.js +1 -1
- package/dist/esm/components/common/EmojiUploadPicker.compiled.css +8 -10
- package/dist/esm/components/common/EmojiUploadPicker.js +6 -7
- package/dist/esm/components/common/EmojiUploadPreview.compiled.css +10 -10
- package/dist/esm/components/common/EmojiUploadPreview.js +8 -13
- package/dist/esm/components/common/ResourcedEmojiComponent.js +2 -2
- package/dist/esm/components/picker/EmojiPickerCategoryHeading.compiled.css +1 -1
- package/dist/esm/components/picker/EmojiPickerCategoryHeading.js +1 -1
- package/dist/esm/components/picker/EmojiPickerListSearch.compiled.css +1 -1
- package/dist/esm/components/picker/EmojiPickerListSearch.js +1 -1
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/docs/0-intro.tsx +2 -1
- package/docs/1-resourced-emoji.tsx +2 -1
- package/docs/2-emoji-picker.tsx +2 -1
- package/docs/3-typeahead.tsx +2 -1
- package/docs/4-emoji-provider.tsx +2 -1
- package/package.json +6 -10
- package/build/tsconfig.json +0 -23
|
@@ -4,9 +4,9 @@ import "./EmojiUploadPreview.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { PureComponent } from 'react';
|
|
7
|
-
import { N20, N300 } from '@atlaskit/theme/colors';
|
|
8
7
|
import AkButton from '@atlaskit/button/standard-button';
|
|
9
8
|
import Heading from '@atlaskit/heading';
|
|
9
|
+
import { Stack } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
11
11
|
import { customCategory } from '../../util/constants';
|
|
12
12
|
import { messages } from '../i18n';
|
|
@@ -56,16 +56,17 @@ class EmojiUploadPreview extends PureComponent {
|
|
|
56
56
|
const uploading = uploadStatus === UploadStatus.Uploading;
|
|
57
57
|
const retryableButtonLabel = errorMessage ? formatMessage(messages.retryLabel) : formatMessage(messages.addEmojiLabel);
|
|
58
58
|
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: ax(["
|
|
59
|
+
className: ax(["_1e0c1txw _2lx21bp4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"])
|
|
60
60
|
}, /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
"data-testid": uploadPreviewTestId,
|
|
62
|
-
className: ax(["_2rkofajl
|
|
63
|
-
}, /*#__PURE__*/React.createElement(
|
|
64
|
-
|
|
62
|
+
className: ax(["_2rkofajl _1e0c1txw _1bah1yb4 _4cvr1h6o _bfhki8nm _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
64
|
+
space: "space.050"
|
|
65
65
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
66
66
|
size: "xsmall"
|
|
67
67
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.emojiPreviewTitle)), /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
id: addEmojiPreviewDescriptionId
|
|
68
|
+
id: addEmojiPreviewDescriptionId,
|
|
69
|
+
className: ax(["_19l3gktf _rtys12am"])
|
|
69
70
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.emojiPreview, {
|
|
70
71
|
values: {
|
|
71
72
|
emoji: emojiComponent
|
|
@@ -73,7 +74,7 @@ class EmojiUploadPreview extends PureComponent {
|
|
|
73
74
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
74
75
|
className: ax(["_19bv1b66 _19l31ylp _rtys53f4"])
|
|
75
76
|
}, emojiComponent)), /*#__PURE__*/React.createElement("div", {
|
|
76
|
-
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o
|
|
77
|
+
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc"])
|
|
77
78
|
}, !uploading && errorMessage ? /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
78
79
|
errorStyle: "preview",
|
|
79
80
|
message: errorMessage,
|
|
@@ -194,8 +194,8 @@ export const ResourcedEmojiComponent = ({
|
|
|
194
194
|
onEmojiLoadSuccess && onEmojiLoadSuccess(emojiId.id);
|
|
195
195
|
}, [onEmojiLoadSuccess]);
|
|
196
196
|
|
|
197
|
-
// use width: auto
|
|
198
|
-
const autoWidth =
|
|
197
|
+
// use width: auto when fitToHeight is defined
|
|
198
|
+
const autoWidth = !!fitToHeight;
|
|
199
199
|
return /*#__PURE__*/React.createElement(EmojiCommonProvider, {
|
|
200
200
|
emojiProvider: resolvedEmojiProvider
|
|
201
201
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
3
3
|
._1p1d1qyh{text-transform:lowercase}
|
|
4
4
|
._299mangw:first-letter{text-transform:uppercase}
|
|
@@ -25,6 +25,6 @@ const EmojiPickerCategoryHeading = ({
|
|
|
25
25
|
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID,
|
|
26
26
|
role: "rowheader"
|
|
27
27
|
}, /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
className: ax(["
|
|
28
|
+
className: ax(["_11c8fhey _vchhusvi _syazj3m3 _ca0q12x7 _n3td12x7 _19bvu2gc _u5f3u2gc _1p1d1qyh _299mangw"])
|
|
29
29
|
}, isMessagesKey(title) ? /*#__PURE__*/React.createElement(FormattedMessage, messages[title]) : title));
|
|
30
30
|
export default EmojiPickerCategoryHeading;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._12ji1r31{outline-color:currentColor}
|
|
3
3
|
._12y31o36{outline-width:medium}
|
|
4
4
|
._13xeglyw:invalid{box-shadow:none}
|
|
@@ -72,6 +72,6 @@ export const EmojiPickerListSearch = props => {
|
|
|
72
72
|
testId: emojiPickerSearchTestId,
|
|
73
73
|
ref: textRef,
|
|
74
74
|
isCompact: true,
|
|
75
|
-
className: ax(["
|
|
75
|
+
className: ax(["_11c8fhey _12ji1r31 _1qu2glyw _12y31o36 _vchhusvi _syaz1kw7 _80om1kw7 _1q51t94y _y4tize3t _85i5v77o _bozg12x7 _1bsb1osq _13xeglyw _1goxglyw"])
|
|
76
76
|
}));
|
|
77
77
|
};
|
|
@@ -28,7 +28,6 @@ var DeleteButton = function DeleteButton(props) {
|
|
|
28
28
|
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
29
29
|
label: deleteEmojiLabel,
|
|
30
30
|
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
31
|
-
LEGACY_size: "small",
|
|
32
31
|
size: "small"
|
|
33
32
|
})),
|
|
34
33
|
onClick: props.onClick
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
3
|
-
._19bv19bv{padding-left:10px}
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
3
|
._19l3zwfg img{max-height:2pc}
|
|
5
4
|
._1bah1yb4{justify-content:space-between}
|
|
6
5
|
._1bahesu3{justify-content:flex-end}
|
|
@@ -12,10 +11,8 @@
|
|
|
12
11
|
._4t3i1ylp{height:40px}
|
|
13
12
|
._4t3i53f4{height:75pt}
|
|
14
13
|
._4t3ivbgk{height:4pc}
|
|
15
|
-
.
|
|
16
|
-
._jwwg7vkz:first-of-type{line-height:1pc}
|
|
14
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
17
15
|
._m73io7ol .emoji-submit-delete{width:84px}
|
|
18
|
-
.
|
|
19
|
-
._pnmb1vvm:first-of-type{color:var(--_bbz764)}
|
|
16
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
20
17
|
._rtyst9kd img{max-width:72px}
|
|
21
|
-
.
|
|
18
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
@@ -12,10 +12,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
12
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
import { Component } from 'react';
|
|
15
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
16
15
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
17
16
|
import AkButton from '@atlaskit/button/new';
|
|
18
17
|
import Heading from '@atlaskit/heading';
|
|
18
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
19
19
|
import FocusLock from 'react-focus-lock';
|
|
20
20
|
import { messages } from '../i18n';
|
|
21
21
|
import CachingEmoji from './CachingEmoji';
|
|
@@ -87,20 +87,20 @@ var EmojiDeletePreview = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
noFocusGuards: true
|
|
88
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
"data-testid": emojiDeletePreviewTestId,
|
|
90
|
-
className: ax(["
|
|
90
|
+
className: ax(["_4t3i53f4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bahesu3"])
|
|
91
91
|
}, /*#__PURE__*/React.createElement("div", {
|
|
92
|
-
className: ax(["
|
|
93
|
-
style: {
|
|
94
|
-
"--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
|
|
95
|
-
}
|
|
92
|
+
className: ax(["_4t3ivbgk"])
|
|
96
93
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
97
94
|
size: "xxsmall"
|
|
98
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(
|
|
95
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(Text, {
|
|
96
|
+
color: "color.text.subtle",
|
|
97
|
+
size: "small"
|
|
98
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.deleteEmojiDescription, {
|
|
99
99
|
values: {
|
|
100
100
|
emojiShortName: emoji.shortName
|
|
101
101
|
}
|
|
102
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
103
|
-
className: ax(["
|
|
102
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: ax(["_11c8fhey _1e0c1txw _4t3i1ylp _4cvr1h6o _1bah1yb4 _19l3zwfg _rtyst9kd _m73io7ol _1txf1igg _1qz31b66"])
|
|
104
104
|
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
105
105
|
emoji: emoji
|
|
106
106
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -32,7 +32,6 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
32
32
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
33
33
|
color: "currentColor",
|
|
34
34
|
label: formatMessage(messages.error),
|
|
35
|
-
LEGACY_size: "medium",
|
|
36
35
|
spacing: "spacious",
|
|
37
36
|
testId: emojiErrorIconTestId
|
|
38
37
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -40,8 +39,7 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
40
39
|
className: ax([errorMessageStyles[errorStyle]])
|
|
41
40
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
42
41
|
color: "currentColor",
|
|
43
|
-
label: formatMessage(messages.error)
|
|
44
|
-
LEGACY_size: "small"
|
|
42
|
+
label: formatMessage(messages.error)
|
|
45
43
|
}), message);
|
|
46
44
|
return visualContent;
|
|
47
45
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._10hwfhey:first-of-type{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c8rymc{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._118didpf span[role=img]>img{padding-bottom:0}
|
|
4
4
|
._12s6idpf .emoji-common-emoji-sprite{padding-top:0}
|
|
5
5
|
._16jlkb7n{flex-grow:1}
|
|
@@ -26,7 +26,7 @@ export var EmojiPreviewComponent = function EmojiPreviewComponent(_ref) {
|
|
|
26
26
|
"--_5xk3r4": ix("var(--ds-text, ".concat(N900, ")"))
|
|
27
27
|
}
|
|
28
28
|
}, emoji.name), /*#__PURE__*/React.createElement("div", {
|
|
29
|
-
className: ax(["
|
|
29
|
+
className: ax(["_11c8rymc _1reo15vq _18m915vq _1e0c1ule _syaz121t _vwz4kb7n _otyr1i6y _n3tdv77o _1bto1l2s _o5721q9c _10hwfhey _pnmbovqm"]),
|
|
30
30
|
style: {
|
|
31
31
|
"--_1pseksa": ix("var(--ds-text-subtle, ".concat(N400, ")")),
|
|
32
32
|
"--_5xk3r4": ix("var(--ds-text, ".concat(N900, ")"))
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._11c8rymc{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._scffidpf input{border:0}
|
|
4
|
-
._12r21pd9._12r21pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
5
4
|
._16jlkb7n{flex-grow:1}
|
|
6
|
-
.
|
|
5
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
7
6
|
._1bah1b1v{justify-content:space-around}
|
|
8
7
|
._1bah1yb4{justify-content:space-between}
|
|
9
8
|
._1e0c1txw{display:flex}
|
|
10
9
|
._1o9zkb7n{flex-shrink:1}
|
|
11
10
|
._1rwq1j28 input{background-color:transparent}
|
|
12
11
|
._1w901vvm._1w901vvm{color:var(--_bbz764)}
|
|
13
|
-
._2hwx14y2{margin-right:5px}
|
|
14
12
|
._2lx21bp4{flex-direction:column}
|
|
15
13
|
._34ir1o36 input{outline-width:medium}
|
|
16
14
|
._4cvresu3{align-items:flex-end}
|
|
17
|
-
._4t3icae7{height:78px}
|
|
18
15
|
._9bj2glyw input::-ms-clear{display:none}
|
|
19
|
-
.
|
|
16
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
20
17
|
._coc6glyw input:invalid{box-shadow:none}
|
|
21
18
|
._gxxuglyw input{outline-style:none}
|
|
19
|
+
._gy1p12x7{column-gap:var(--ds-space-075,6px)}
|
|
22
20
|
._i0dl1wug{flex-basis:auto}
|
|
23
|
-
.
|
|
24
|
-
.
|
|
25
|
-
.
|
|
21
|
+
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
22
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
23
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
26
24
|
._xmji1r31 input{outline-color:currentColor}
|
|
@@ -23,7 +23,7 @@ import { UploadStatus } from './internal-types';
|
|
|
23
23
|
var closeEmojiUploadButton = null;
|
|
24
24
|
var emojiUpload = null;
|
|
25
25
|
var emojiUploadTop = null;
|
|
26
|
-
var
|
|
26
|
+
var labelStyles = null;
|
|
27
27
|
var uploadChooseFileEmojiName = null;
|
|
28
28
|
var uploadChooseFileMessage = null;
|
|
29
29
|
var uploadChooseFileRow = null;
|
|
@@ -73,12 +73,12 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
73
73
|
var emojiChooseFileTitle = formatMessage(messages.emojiChooseFileTitle);
|
|
74
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
75
75
|
"data-testid": uploadEmojiComponentTestId,
|
|
76
|
-
className: ax(["
|
|
76
|
+
className: ax(["_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bah1b1v"])
|
|
77
77
|
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: ax(["
|
|
78
|
+
className: ax(["_11c8rymc _n3tdu2gc _1e0c1txw _1bah1yb4 _4cvresu3"])
|
|
79
79
|
}, /*#__PURE__*/React.createElement("label", {
|
|
80
80
|
htmlFor: "new-emoji-name-input",
|
|
81
|
-
className: ax(["_1w901vvm", "
|
|
81
|
+
className: ax(["_1w901vvm", "_11c8wadc _k48p1pd9"]),
|
|
82
82
|
style: {
|
|
83
83
|
"--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
|
|
84
84
|
}
|
|
@@ -93,12 +93,11 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
93
93
|
testId: cancelEmojiUploadPickerTestId
|
|
94
94
|
}, /*#__PURE__*/React.createElement(CrossIcon, {
|
|
95
95
|
color: "currentColor",
|
|
96
|
-
LEGACY_size: "small",
|
|
97
96
|
label: cancelLabel
|
|
98
97
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
99
|
-
className: ax(["_1e0c1txw _1bah1yb4
|
|
98
|
+
className: ax(["_1e0c1txw _1bah1yb4 _n3tdu2gc _gy1p12x7"])
|
|
100
99
|
}, /*#__PURE__*/React.createElement("span", {
|
|
101
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug
|
|
100
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1rwq1j28 _scffidpf _xmji1r31 _gxxuglyw _34ir1o36 _coc6glyw _9bj2glyw"])
|
|
102
101
|
}, /*#__PURE__*/React.createElement(TextField, {
|
|
103
102
|
placeholder: emojiPlaceholder,
|
|
104
103
|
"aria-label": emojiNameAriaLabel,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
5
5
|
._19l31ylp img{max-height:40px}
|
|
6
6
|
._19l3gktf img{max-height:20px}
|
|
7
7
|
._1bah1yb4{justify-content:space-between}
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
._1e0c1txw{display:flex}
|
|
10
10
|
._2lx21bp4{flex-direction:column}
|
|
11
11
|
._4cvr1h6o{align-items:center}
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
15
|
-
.
|
|
16
|
-
.
|
|
17
|
-
._n3td19bv{padding-bottom:10px}
|
|
12
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
13
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
14
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
15
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
16
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
18
17
|
._rtys12am img{max-width:50px}
|
|
19
18
|
._rtys53f4 img{max-width:75pt}
|
|
20
|
-
.
|
|
19
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
20
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
@@ -11,9 +11,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import { PureComponent } from 'react';
|
|
14
|
-
import { N20, N300 } from '@atlaskit/theme/colors';
|
|
15
14
|
import AkButton from '@atlaskit/button/standard-button';
|
|
16
15
|
import Heading from '@atlaskit/heading';
|
|
16
|
+
import { Stack } from '@atlaskit/primitives/compiled';
|
|
17
17
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
18
18
|
import { customCategory } from '../../util/constants';
|
|
19
19
|
import { messages } from '../i18n';
|
|
@@ -67,22 +67,17 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
67
67
|
var uploading = uploadStatus === UploadStatus.Uploading;
|
|
68
68
|
var retryableButtonLabel = errorMessage ? formatMessage(messages.retryLabel) : formatMessage(messages.addEmojiLabel);
|
|
69
69
|
return /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: ax(["
|
|
70
|
+
className: ax(["_1e0c1txw _2lx21bp4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"])
|
|
71
71
|
}, /*#__PURE__*/React.createElement("div", {
|
|
72
72
|
"data-testid": uploadPreviewTestId,
|
|
73
|
-
className: ax(["_2rkofajl
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: ax(["_1fztdcr7 _jl6w1vvm _avw21b66 _19l3gktf _rtys12am"]),
|
|
79
|
-
style: {
|
|
80
|
-
"--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
|
|
81
|
-
}
|
|
73
|
+
className: ax(["_2rkofajl _1e0c1txw _1bah1yb4 _4cvr1h6o _bfhki8nm _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
75
|
+
space: "space.050"
|
|
82
76
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
83
77
|
size: "xsmall"
|
|
84
78
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.emojiPreviewTitle)), /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
id: addEmojiPreviewDescriptionId
|
|
79
|
+
id: addEmojiPreviewDescriptionId,
|
|
80
|
+
className: ax(["_19l3gktf _rtys12am"])
|
|
86
81
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.emojiPreview, {
|
|
87
82
|
values: {
|
|
88
83
|
emoji: emojiComponent
|
|
@@ -90,7 +85,7 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
85
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
91
86
|
className: ax(["_19bv1b66 _19l31ylp _rtys53f4"])
|
|
92
87
|
}, emojiComponent)), /*#__PURE__*/React.createElement("div", {
|
|
93
|
-
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o
|
|
88
|
+
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc"])
|
|
94
89
|
}, !uploading && errorMessage ? /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
95
90
|
errorStyle: "preview",
|
|
96
91
|
message: errorMessage,
|
|
@@ -231,8 +231,8 @@ export var ResourcedEmojiComponent = function ResourcedEmojiComponent(_ref) {
|
|
|
231
231
|
onEmojiLoadSuccess && onEmojiLoadSuccess(emojiId.id);
|
|
232
232
|
}, [onEmojiLoadSuccess]);
|
|
233
233
|
|
|
234
|
-
// use width: auto
|
|
235
|
-
var autoWidth =
|
|
234
|
+
// use width: auto when fitToHeight is defined
|
|
235
|
+
var autoWidth = !!fitToHeight;
|
|
236
236
|
return /*#__PURE__*/React.createElement(EmojiCommonProvider, {
|
|
237
237
|
emojiProvider: resolvedEmojiProvider
|
|
238
238
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
3
3
|
._1p1d1qyh{text-transform:lowercase}
|
|
4
4
|
._299mangw:first-letter{text-transform:uppercase}
|
|
@@ -25,7 +25,7 @@ var EmojiPickerCategoryHeading = function EmojiPickerCategoryHeading(_ref) {
|
|
|
25
25
|
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID,
|
|
26
26
|
role: "rowheader"
|
|
27
27
|
}, /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
className: ax(["
|
|
28
|
+
className: ax(["_11c8fhey _vchhusvi _syazovqm _ca0q12x7 _n3td12x7 _19bvu2gc _u5f3u2gc _1p1d1qyh _299mangw"]),
|
|
29
29
|
style: {
|
|
30
30
|
"--_5xk3r4": ix("var(--ds-text, ".concat(N900, ")"))
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._12ji1r31{outline-color:currentColor}
|
|
3
3
|
._12y31o36{outline-width:medium}
|
|
4
4
|
._13xeglyw:invalid{box-shadow:none}
|
|
@@ -76,6 +76,6 @@ export var EmojiPickerListSearch = function EmojiPickerListSearch(props) {
|
|
|
76
76
|
testId: emojiPickerSearchTestId,
|
|
77
77
|
ref: textRef,
|
|
78
78
|
isCompact: true,
|
|
79
|
-
className: ax(["
|
|
79
|
+
className: ax(["_11c8fhey _12ji1r31 _1qu2glyw _12y31o36 _vchhusvi _syaz1kw7 _80om1kw7 _1q51t94y _y4tize3t _85i5v77o _bozg12x7 _1bsb1osq _13xeglyw _1goxglyw"])
|
|
80
80
|
}));
|
|
81
81
|
};
|
|
@@ -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: "
|
|
16
|
+
packageVersion: "69.10.1"
|
|
17
17
|
}, attributes)
|
|
18
18
|
};
|
|
19
19
|
};
|
package/docs/0-intro.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import { Text } from '@atlaskit/primitives/compiled';
|
|
|
7
7
|
const SimpleEmojiSource = require('!!raw-loader!../examples/00-simple-emoji');
|
|
8
8
|
const EmojiProps = require('!!extract-react-types-loader!../src/components/common/Emoji');
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const _default_1: any = md`
|
|
11
11
|
${(<AtlassianInternalWarning />)}
|
|
12
12
|
|
|
13
13
|
The main purpose of the emoji package is to provide multiple components for selecting from a list of provided emojis and rendering them.
|
|
@@ -102,3 +102,4 @@ export default md`
|
|
|
102
102
|
|
|
103
103
|
${(<Props props={EmojiProps} />)}
|
|
104
104
|
`;
|
|
105
|
+
export default _default_1;
|
|
@@ -5,7 +5,7 @@ import ResourcedEmojiExample from '../examples/23-optimistic-emoji';
|
|
|
5
5
|
const ResourcedEmojiSource = require('!!raw-loader!../examples/23-optimistic-emoji');
|
|
6
6
|
const ResourcedEmojiProps = require('!!extract-react-types-loader!../src/components/common/ResourcedEmojiComponent');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const _default_1: any = md`
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
Import the component in your React app as follows:
|
|
@@ -72,3 +72,4 @@ export default md`
|
|
|
72
72
|
|
|
73
73
|
${(<Props props={ResourcedEmojiProps} />)}
|
|
74
74
|
`;
|
|
75
|
+
export default _default_1;
|
package/docs/2-emoji-picker.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import EmojiPickerExample from '../examples/05-standard-emoji-picker-with-upload
|
|
|
5
5
|
const EmojiPickerSource = require('!!raw-loader!../examples/05-standard-emoji-picker-with-upload');
|
|
6
6
|
const EmojiPickerProps = require('!!extract-react-types-loader!../src/components/picker/EmojiPickerComponent');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const _default_1: any = md`
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
Import the component in your React app as follows:
|
|
@@ -54,3 +54,4 @@ export default md`
|
|
|
54
54
|
|
|
55
55
|
${(<Props props={EmojiPickerProps} />)}
|
|
56
56
|
`;
|
|
57
|
+
export default _default_1;
|
package/docs/3-typeahead.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import TypeAheadiExample from '../examples/03-standard-emoji-typeahead';
|
|
|
5
5
|
const TypeAheadSource = require('!!raw-loader!../examples/03-standard-emoji-typeahead');
|
|
6
6
|
const TypeAheadProps = require('!!extract-react-types-loader!../src/components/typeahead/EmojiTypeAheadComponent');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const _default_1: any = md`
|
|
9
9
|
|
|
10
10
|
${(
|
|
11
11
|
<Example
|
|
@@ -18,3 +18,4 @@ export default md`
|
|
|
18
18
|
|
|
19
19
|
${(<Props props={TypeAheadProps} />)}
|
|
20
20
|
`;
|
|
21
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@ import { md, code } from '@atlaskit/docs';
|
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
4
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const _default_1: any = 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.
|
|
8
8
|
|
|
9
9
|
This is a basic example of emoji provider, supporting standard, atlassian, and site emojis:
|
|
@@ -97,3 +97,4 @@ ${code`
|
|
|
97
97
|
`}
|
|
98
98
|
|
|
99
99
|
`;
|
|
100
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.10.
|
|
3
|
+
"version": "69.10.2",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@atlaskit/media-client": "^35.7.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
-
"@atlaskit/primitives": "^17.
|
|
46
|
+
"@atlaskit/primitives": "^17.1.0",
|
|
47
47
|
"@atlaskit/spinner": "^19.0.0",
|
|
48
48
|
"@atlaskit/textfield": "^8.2.0",
|
|
49
49
|
"@atlaskit/theme": "^21.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
51
|
-
"@atlaskit/tokens": "^
|
|
52
|
-
"@atlaskit/tooltip": "^20.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
51
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
52
|
+
"@atlaskit/tooltip": "^20.14.0",
|
|
53
53
|
"@atlaskit/ufo": "^0.4.0",
|
|
54
54
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
55
55
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -79,8 +79,7 @@
|
|
|
79
79
|
"@emotion/jest": "^11.8.0",
|
|
80
80
|
"@testing-library/dom": "^10.1.0",
|
|
81
81
|
"@testing-library/jest-dom": "^6.4.5",
|
|
82
|
-
"@testing-library/react": "^
|
|
83
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
82
|
+
"@testing-library/react": "^16.3.0",
|
|
84
83
|
"@testing-library/user-event": "^14.4.3",
|
|
85
84
|
"@types/js-search": "^1.4.0",
|
|
86
85
|
"dotenv": "^8.2.0",
|
|
@@ -119,9 +118,6 @@
|
|
|
119
118
|
"platform_emoji_ssr_width_auto_allowed": {
|
|
120
119
|
"type": "boolean"
|
|
121
120
|
},
|
|
122
|
-
"platform_emoji_width_auto_fittoheight": {
|
|
123
|
-
"type": "boolean"
|
|
124
|
-
},
|
|
125
121
|
"platform_emoji_prevent_img_src_changing": {
|
|
126
122
|
"type": "boolean"
|
|
127
123
|
}
|
package/build/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"paths": {}
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"../src/**/*.ts",
|
|
10
|
-
"../src/**/*.tsx"
|
|
11
|
-
],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"../src/**/__tests__/*",
|
|
14
|
-
"../src/**/*.test.*",
|
|
15
|
-
"../src/**/test.*",
|
|
16
|
-
"../src/**/examples.*",
|
|
17
|
-
"../src/**/examples/*",
|
|
18
|
-
"../src/**/examples/**/*",
|
|
19
|
-
"../src/**/*.stories.*",
|
|
20
|
-
"../src/**/stories/*",
|
|
21
|
-
"../src/**/stories/**/*"
|
|
22
|
-
]
|
|
23
|
-
}
|