@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 69.10.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`bdcd4b4374105`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bdcd4b4374105) -
|
|
14
|
+
Minor improvements to how styles are applied.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 69.10.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -37,7 +37,6 @@ var DeleteButton = function DeleteButton(props) {
|
|
|
37
37
|
}, /*#__PURE__*/React.createElement(_crossCircle.default, {
|
|
38
38
|
label: _constants.deleteEmojiLabel,
|
|
39
39
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
40
|
-
LEGACY_size: "small",
|
|
41
40
|
size: "small"
|
|
42
41
|
})),
|
|
43
42
|
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)}
|
|
@@ -18,10 +18,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
19
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
20
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
22
21
|
var _reactIntlNext = require("react-intl-next");
|
|
23
22
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
24
23
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
24
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
25
25
|
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
26
26
|
var _i18n = require("../i18n");
|
|
27
27
|
var _CachingEmoji = _interopRequireDefault(require("./CachingEmoji"));
|
|
@@ -96,20 +96,20 @@ var EmojiDeletePreview = /*#__PURE__*/function (_Component) {
|
|
|
96
96
|
noFocusGuards: true
|
|
97
97
|
}, /*#__PURE__*/React.createElement("div", {
|
|
98
98
|
"data-testid": emojiDeletePreviewTestId,
|
|
99
|
-
className: (0, _runtime.ax)(["
|
|
99
|
+
className: (0, _runtime.ax)(["_4t3i53f4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bahesu3"])
|
|
100
100
|
}, /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
className: (0, _runtime.ax)(["
|
|
102
|
-
style: {
|
|
103
|
-
"--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
|
|
104
|
-
}
|
|
101
|
+
className: (0, _runtime.ax)(["_4t3ivbgk"])
|
|
105
102
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
106
103
|
size: "xxsmall"
|
|
107
|
-
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(
|
|
104
|
+
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
105
|
+
color: "color.text.subtle",
|
|
106
|
+
size: "small"
|
|
107
|
+
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.deleteEmojiDescription, {
|
|
108
108
|
values: {
|
|
109
109
|
emojiShortName: emoji.shortName
|
|
110
110
|
}
|
|
111
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
112
|
-
className: (0, _runtime.ax)(["
|
|
111
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
112
|
+
className: (0, _runtime.ax)(["_11c8fhey _1e0c1txw _4t3i1ylp _4cvr1h6o _1bah1yb4 _19l3zwfg _rtyst9kd _m73io7ol _1txf1igg _1qz31b66"])
|
|
113
113
|
}, /*#__PURE__*/React.createElement(_CachingEmoji.default, {
|
|
114
114
|
emoji: emoji
|
|
115
115
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -41,7 +41,6 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
41
41
|
}, /*#__PURE__*/React.createElement(_statusError.default, {
|
|
42
42
|
color: "currentColor",
|
|
43
43
|
label: formatMessage(_i18n.messages.error),
|
|
44
|
-
LEGACY_size: "medium",
|
|
45
44
|
spacing: "spacious",
|
|
46
45
|
testId: emojiErrorIconTestId
|
|
47
46
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -49,8 +48,7 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
49
48
|
className: (0, _runtime.ax)([errorMessageStyles[errorStyle]])
|
|
50
49
|
}, /*#__PURE__*/React.createElement(_statusError.default, {
|
|
51
50
|
color: "currentColor",
|
|
52
|
-
label: formatMessage(_i18n.messages.error)
|
|
53
|
-
LEGACY_size: "small"
|
|
51
|
+
label: formatMessage(_i18n.messages.error)
|
|
54
52
|
}), message);
|
|
55
53
|
return visualContent;
|
|
56
54
|
};
|
|
@@ -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}
|
|
@@ -35,7 +35,7 @@ var EmojiPreviewComponent = exports.EmojiPreviewComponent = function EmojiPrevie
|
|
|
35
35
|
"--_5xk3r4": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N900, ")"))
|
|
36
36
|
}
|
|
37
37
|
}, emoji.name), /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: (0, _runtime.ax)(["
|
|
38
|
+
className: (0, _runtime.ax)(["_11c8rymc _1reo15vq _18m915vq _1e0c1ule _syaz121t _vwz4kb7n _otyr1i6y _n3tdv77o _1bto1l2s _o5721q9c _10hwfhey _pnmbovqm"]),
|
|
39
39
|
style: {
|
|
40
40
|
"--_1pseksa": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N400, ")")),
|
|
41
41
|
"--_5xk3r4": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.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}
|
|
@@ -32,7 +32,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
32
32
|
var closeEmojiUploadButton = null;
|
|
33
33
|
var emojiUpload = null;
|
|
34
34
|
var emojiUploadTop = null;
|
|
35
|
-
var
|
|
35
|
+
var labelStyles = null;
|
|
36
36
|
var uploadChooseFileEmojiName = null;
|
|
37
37
|
var uploadChooseFileMessage = null;
|
|
38
38
|
var uploadChooseFileRow = null;
|
|
@@ -82,12 +82,12 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
82
82
|
var emojiChooseFileTitle = formatMessage(_i18n.messages.emojiChooseFileTitle);
|
|
83
83
|
return /*#__PURE__*/React.createElement("div", {
|
|
84
84
|
"data-testid": uploadEmojiComponentTestId,
|
|
85
|
-
className: (0, _runtime.ax)(["
|
|
85
|
+
className: (0, _runtime.ax)(["_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bah1b1v"])
|
|
86
86
|
}, /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: (0, _runtime.ax)(["
|
|
87
|
+
className: (0, _runtime.ax)(["_11c8rymc _n3tdu2gc _1e0c1txw _1bah1yb4 _4cvresu3"])
|
|
88
88
|
}, /*#__PURE__*/React.createElement("label", {
|
|
89
89
|
htmlFor: "new-emoji-name-input",
|
|
90
|
-
className: (0, _runtime.ax)(["_1w901vvm", "
|
|
90
|
+
className: (0, _runtime.ax)(["_1w901vvm", "_11c8wadc _k48p1pd9"]),
|
|
91
91
|
style: {
|
|
92
92
|
"--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
|
|
93
93
|
}
|
|
@@ -102,12 +102,11 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
102
102
|
testId: cancelEmojiUploadPickerTestId
|
|
103
103
|
}, /*#__PURE__*/React.createElement(_cross.default, {
|
|
104
104
|
color: "currentColor",
|
|
105
|
-
LEGACY_size: "small",
|
|
106
105
|
label: cancelLabel
|
|
107
106
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
className: (0, _runtime.ax)(["_1e0c1txw _1bah1yb4
|
|
107
|
+
className: (0, _runtime.ax)(["_1e0c1txw _1bah1yb4 _n3tdu2gc _gy1p12x7"])
|
|
109
108
|
}, /*#__PURE__*/React.createElement("span", {
|
|
110
|
-
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug
|
|
109
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug _1rwq1j28 _scffidpf _xmji1r31 _gxxuglyw _34ir1o36 _coc6glyw _9bj2glyw"])
|
|
111
110
|
}, /*#__PURE__*/React.createElement(_textfield.default, {
|
|
112
111
|
placeholder: emojiPlaceholder,
|
|
113
112
|
"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)}
|
|
@@ -17,9 +17,9 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
17
17
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
19
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
20
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
21
20
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
22
21
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
22
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
23
|
var _reactIntlNext = require("react-intl-next");
|
|
24
24
|
var _constants = require("../../util/constants");
|
|
25
25
|
var _i18n = require("../i18n");
|
|
@@ -76,22 +76,17 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
76
76
|
var uploading = uploadStatus === _internalTypes.UploadStatus.Uploading;
|
|
77
77
|
var retryableButtonLabel = errorMessage ? formatMessage(_i18n.messages.retryLabel) : formatMessage(_i18n.messages.addEmojiLabel);
|
|
78
78
|
return /*#__PURE__*/React.createElement("div", {
|
|
79
|
-
className: (0, _runtime.ax)(["
|
|
79
|
+
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"])
|
|
80
80
|
}, /*#__PURE__*/React.createElement("div", {
|
|
81
81
|
"data-testid": uploadPreviewTestId,
|
|
82
|
-
className: (0, _runtime.ax)(["_2rkofajl
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: (0, _runtime.ax)(["_1fztdcr7 _jl6w1vvm _avw21b66 _19l3gktf _rtys12am"]),
|
|
88
|
-
style: {
|
|
89
|
-
"--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
|
|
90
|
-
}
|
|
82
|
+
className: (0, _runtime.ax)(["_2rkofajl _1e0c1txw _1bah1yb4 _4cvr1h6o _bfhki8nm _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
83
|
+
}, /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
84
|
+
space: "space.050"
|
|
91
85
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
92
86
|
size: "xsmall"
|
|
93
87
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.emojiPreviewTitle)), /*#__PURE__*/React.createElement("div", {
|
|
94
|
-
id: addEmojiPreviewDescriptionId
|
|
88
|
+
id: addEmojiPreviewDescriptionId,
|
|
89
|
+
className: (0, _runtime.ax)(["_19l3gktf _rtys12am"])
|
|
95
90
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.emojiPreview, {
|
|
96
91
|
values: {
|
|
97
92
|
emoji: emojiComponent
|
|
@@ -99,7 +94,7 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
99
94
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
100
95
|
className: (0, _runtime.ax)(["_19bv1b66 _19l31ylp _rtys53f4"])
|
|
101
96
|
}, emojiComponent)), /*#__PURE__*/React.createElement("div", {
|
|
102
|
-
className: (0, _runtime.ax)(["_1e0c1txw _1bahesu3 _4cvr1h6o
|
|
97
|
+
className: (0, _runtime.ax)(["_1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc"])
|
|
103
98
|
}, !uploading && errorMessage ? /*#__PURE__*/React.createElement(_EmojiErrorMessage.default, {
|
|
104
99
|
errorStyle: "preview",
|
|
105
100
|
message: errorMessage,
|
|
@@ -240,8 +240,8 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
|
|
|
240
240
|
onEmojiLoadSuccess && onEmojiLoadSuccess(emojiId.id);
|
|
241
241
|
}, [onEmojiLoadSuccess]);
|
|
242
242
|
|
|
243
|
-
// use width: auto
|
|
244
|
-
var autoWidth =
|
|
243
|
+
// use width: auto when fitToHeight is defined
|
|
244
|
+
var autoWidth = !!fitToHeight;
|
|
245
245
|
return /*#__PURE__*/_react.default.createElement(_EmojiCommonProvider.EmojiCommonProvider, {
|
|
246
246
|
emojiProvider: resolvedEmojiProvider
|
|
247
247
|
}, /*#__PURE__*/_react.default.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}
|
|
@@ -33,7 +33,7 @@ var EmojiPickerCategoryHeading = function EmojiPickerCategoryHeading(_ref) {
|
|
|
33
33
|
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID,
|
|
34
34
|
role: "rowheader"
|
|
35
35
|
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: (0, _runtime.ax)(["
|
|
36
|
+
className: (0, _runtime.ax)(["_11c8fhey _vchhusvi _syazovqm _ca0q12x7 _n3td12x7 _19bvu2gc _u5f3u2gc _1p1d1qyh _299mangw"]),
|
|
37
37
|
style: {
|
|
38
38
|
"--_5xk3r4": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N900, ")"))
|
|
39
39
|
}
|
|
@@ -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}
|
|
@@ -85,6 +85,6 @@ var EmojiPickerListSearch = exports.EmojiPickerListSearch = function EmojiPicker
|
|
|
85
85
|
testId: emojiPickerSearchTestId,
|
|
86
86
|
ref: textRef,
|
|
87
87
|
isCompact: true,
|
|
88
|
-
className: (0, _runtime.ax)(["
|
|
88
|
+
className: (0, _runtime.ax)(["_11c8fhey _12ji1r31 _1qu2glyw _12y31o36 _vchhusvi _syaz1kw7 _80om1kw7 _1q51t94y _y4tize3t _85i5v77o _bozg12x7 _1bsb1osq _13xeglyw _1goxglyw"])
|
|
89
89
|
}));
|
|
90
90
|
};
|
|
@@ -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: "
|
|
23
|
+
packageVersion: "69.10.1"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -27,7 +27,6 @@ const DeleteButton = props => /*#__PURE__*/React.createElement("span", {
|
|
|
27
27
|
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
28
28
|
label: deleteEmojiLabel,
|
|
29
29
|
color: `var(--ds-text-subtle, ${N500})`,
|
|
30
|
-
LEGACY_size: "small",
|
|
31
30
|
size: "small"
|
|
32
31
|
})),
|
|
33
32
|
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
|
-
._pnmb1n3s:first-of-type{color:var(--ds-text-subtle,#5e6c84)}
|
|
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)}
|
|
@@ -5,10 +5,10 @@ import "./EmojiDeletePreview.compiled.css";
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { Component } from 'react';
|
|
8
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
9
8
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
10
9
|
import AkButton from '@atlaskit/button/new';
|
|
11
10
|
import Heading from '@atlaskit/heading';
|
|
11
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import FocusLock from 'react-focus-lock';
|
|
13
13
|
import { messages } from '../i18n';
|
|
14
14
|
import CachingEmoji from './CachingEmoji';
|
|
@@ -77,17 +77,20 @@ class EmojiDeletePreview extends Component {
|
|
|
77
77
|
noFocusGuards: true
|
|
78
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
79
79
|
"data-testid": emojiDeletePreviewTestId,
|
|
80
|
-
className: ax(["
|
|
80
|
+
className: ax(["_4t3i53f4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bahesu3"])
|
|
81
81
|
}, /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className: ax(["
|
|
82
|
+
className: ax(["_4t3ivbgk"])
|
|
83
83
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
84
84
|
size: "xxsmall"
|
|
85
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(
|
|
85
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(Text, {
|
|
86
|
+
color: "color.text.subtle",
|
|
87
|
+
size: "small"
|
|
88
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.deleteEmojiDescription, {
|
|
86
89
|
values: {
|
|
87
90
|
emojiShortName: emoji.shortName
|
|
88
91
|
}
|
|
89
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
90
|
-
className: ax(["
|
|
92
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: ax(["_11c8fhey _1e0c1txw _4t3i1ylp _4cvr1h6o _1bah1yb4 _19l3zwfg _rtyst9kd _m73io7ol _1txf1igg _1qz31b66"])
|
|
91
94
|
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
92
95
|
emoji: emoji
|
|
93
96
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -35,7 +35,6 @@ const EmojiErrorMessage = props => {
|
|
|
35
35
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
36
36
|
color: "currentColor",
|
|
37
37
|
label: formatMessage(messages.error),
|
|
38
|
-
LEGACY_size: "medium",
|
|
39
38
|
spacing: "spacious",
|
|
40
39
|
testId: emojiErrorIconTestId
|
|
41
40
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -43,8 +42,7 @@ const EmojiErrorMessage = props => {
|
|
|
43
42
|
className: ax([errorMessageStyles[errorStyle]])
|
|
44
43
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
45
44
|
color: "currentColor",
|
|
46
|
-
label: formatMessage(messages.error)
|
|
47
|
-
LEGACY_size: "small"
|
|
45
|
+
label: formatMessage(messages.error)
|
|
48
46
|
}), message);
|
|
49
47
|
return visualContent;
|
|
50
48
|
};
|
|
@@ -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}
|
|
@@ -24,6 +24,6 @@ export const EmojiPreviewComponent = ({
|
|
|
24
24
|
}, emoji.name && /*#__PURE__*/React.createElement("div", {
|
|
25
25
|
className: ax(["_1reo15vq _18m915vq _1e0c1ule _syazj3m3 _1bto1l2s _o5721q9c _299mangw"])
|
|
26
26
|
}, emoji.name), /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
className: ax(["
|
|
27
|
+
className: ax(["_11c8rymc _1reo15vq _18m915vq _1e0c1ule _syaz1a45 _vwz4kb7n _otyr1i6y _n3tdv77o _1bto1l2s _o5721q9c _10hwfhey _pnmbj3m3"])
|
|
28
28
|
}, emoji.shortName)));
|
|
29
29
|
};
|
|
@@ -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
|
._1w901n3s._1w901n3s{color:var(--ds-text-subtle,#5e6c84)}
|
|
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}
|
|
@@ -20,7 +20,7 @@ import { UploadStatus } from './internal-types';
|
|
|
20
20
|
const closeEmojiUploadButton = null;
|
|
21
21
|
const emojiUpload = null;
|
|
22
22
|
const emojiUploadTop = null;
|
|
23
|
-
const
|
|
23
|
+
const labelStyles = null;
|
|
24
24
|
const uploadChooseFileEmojiName = null;
|
|
25
25
|
const uploadChooseFileMessage = null;
|
|
26
26
|
const uploadChooseFileRow = null;
|
|
@@ -73,12 +73,12 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
73
73
|
const 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(["_1w901n3s", "
|
|
81
|
+
className: ax(["_1w901n3s", "_11c8wadc _k48p1pd9"])
|
|
82
82
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.addCustomEmojiLabel)), /*#__PURE__*/React.createElement("div", {
|
|
83
83
|
className: ax(["_1e0c1txw"])
|
|
84
84
|
}, /*#__PURE__*/React.createElement(AkButton, {
|
|
@@ -90,12 +90,11 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
90
90
|
testId: cancelEmojiUploadPickerTestId
|
|
91
91
|
}, /*#__PURE__*/React.createElement(CrossIcon, {
|
|
92
92
|
color: "currentColor",
|
|
93
|
-
LEGACY_size: "small",
|
|
94
93
|
label: cancelLabel
|
|
95
94
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
96
|
-
className: ax(["_1e0c1txw _1bah1yb4
|
|
95
|
+
className: ax(["_1e0c1txw _1bah1yb4 _n3tdu2gc _gy1p12x7"])
|
|
97
96
|
}, /*#__PURE__*/React.createElement("span", {
|
|
98
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug
|
|
97
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1rwq1j28 _scffidpf _xmji1r31 _gxxuglyw _34ir1o36 _coc6glyw _9bj2glyw"])
|
|
99
98
|
}, /*#__PURE__*/React.createElement(TextField, {
|
|
100
99
|
placeholder: emojiPlaceholder,
|
|
101
100
|
"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)}
|