@atlaskit/emoji 67.5.0 → 67.5.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 +12 -0
- package/dist/cjs/components/common/styles.js +14 -14
- package/dist/cjs/components/picker/VirtualList.js +3 -10
- package/dist/cjs/components/uploader/styles.js +2 -2
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/styles.js +15 -15
- package/dist/es2019/components/picker/VirtualList.js +3 -10
- package/dist/es2019/components/uploader/styles.js +2 -2
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/styles.js +15 -15
- package/dist/esm/components/picker/VirtualList.js +3 -10
- package/dist/esm/components/uploader/styles.js +2 -2
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 67.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`07e2883caee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07e2883caee) - upgrade @tanstack/react-virtual
|
|
8
|
+
|
|
9
|
+
## 67.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
14
|
+
|
|
3
15
|
## 67.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -34,8 +34,8 @@ var deleteButton = (0, _react.css)({
|
|
|
34
34
|
visibility: 'hidden',
|
|
35
35
|
display: 'flex',
|
|
36
36
|
position: 'absolute',
|
|
37
|
-
top:
|
|
38
|
-
right:
|
|
37
|
+
top: "var(--ds-space-negative-100, -8px)",
|
|
38
|
+
right: "var(--ds-space-negative-100, -8px)",
|
|
39
39
|
zIndex: 1
|
|
40
40
|
});
|
|
41
41
|
exports.deleteButton = deleteButton;
|
|
@@ -136,7 +136,7 @@ var emojiButton = (0, _react.css)((_css3 = {
|
|
|
136
136
|
border: '0 none',
|
|
137
137
|
padding: 0
|
|
138
138
|
}), (0, _defineProperty2.default)(_css3, '&>span', (_span = {
|
|
139
|
-
padding:
|
|
139
|
+
padding: "var(--ds-space-075, 6px)"
|
|
140
140
|
}, (0, _defineProperty2.default)(_span, "&>.".concat(emojiSprite), {
|
|
141
141
|
height: '24px',
|
|
142
142
|
width: '24px'
|
|
@@ -172,7 +172,7 @@ var previewText = (0, _react.css)({
|
|
|
172
172
|
display: 'flex',
|
|
173
173
|
flexDirection: 'column',
|
|
174
174
|
alignSelf: 'center',
|
|
175
|
-
marginTop:
|
|
175
|
+
marginTop: "var(--ds-space-negative-025, -2px)",
|
|
176
176
|
marginLeft: '10px',
|
|
177
177
|
maxWidth: '285px',
|
|
178
178
|
width: '285px' /* IE */,
|
|
@@ -195,9 +195,9 @@ var emojiShortName = (0, _react.css)((0, _defineProperty2.default)({
|
|
|
195
195
|
color: "var(--ds-text-subtle, ".concat(_colors.N200, ")"),
|
|
196
196
|
fontSize: '12px',
|
|
197
197
|
lineHeight: 1,
|
|
198
|
-
marginBottom:
|
|
198
|
+
marginBottom: "var(--ds-space-negative-025, -2px)",
|
|
199
199
|
overflow: 'hidden',
|
|
200
|
-
paddingBottom:
|
|
200
|
+
paddingBottom: "var(--ds-space-025, 2px)",
|
|
201
201
|
textOverflow: 'ellipsis',
|
|
202
202
|
whiteSpace: 'nowrap'
|
|
203
203
|
}, '&:first-of-type', {
|
|
@@ -321,7 +321,7 @@ exports.uploadPreview = uploadPreview;
|
|
|
321
321
|
var uploadPreviewText = (0, _react.css)({
|
|
322
322
|
h5: {
|
|
323
323
|
color: "var(--ds-text-subtle, ".concat(_colors.N300, ")"),
|
|
324
|
-
paddingBottom:
|
|
324
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
325
325
|
fontSize: '12px'
|
|
326
326
|
},
|
|
327
327
|
img: {
|
|
@@ -331,7 +331,7 @@ var uploadPreviewText = (0, _react.css)({
|
|
|
331
331
|
});
|
|
332
332
|
exports.uploadPreviewText = uploadPreviewText;
|
|
333
333
|
var bigEmojiPreview = (0, _react.css)({
|
|
334
|
-
paddingLeft:
|
|
334
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
335
335
|
img: {
|
|
336
336
|
maxHeight: '40px',
|
|
337
337
|
maxWidth: '100px'
|
|
@@ -382,7 +382,7 @@ var headingH5 = (0, _react.css)({
|
|
|
382
382
|
});
|
|
383
383
|
exports.headingH5 = headingH5;
|
|
384
384
|
var requiredSymbol = (0, _react.css)({
|
|
385
|
-
paddingLeft: "
|
|
385
|
+
paddingLeft: "var(--ds-space-025, 2px)",
|
|
386
386
|
color: "var(--ds-text-danger, ".concat(_colors.R400, ")"),
|
|
387
387
|
fontFamily: (0, _constants2.fontFamily)()
|
|
388
388
|
});
|
|
@@ -404,7 +404,7 @@ var deleteFooter = (0, _react.css)((0, _defineProperty2.default)({
|
|
|
404
404
|
}, ".".concat(submitDelete), {
|
|
405
405
|
width: '84px',
|
|
406
406
|
fontWeight: 'bold',
|
|
407
|
-
marginRight:
|
|
407
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
408
408
|
}));
|
|
409
409
|
exports.deleteFooter = deleteFooter;
|
|
410
410
|
var emojiDeleteErrorMessage = (0, _react.css)({
|
|
@@ -412,7 +412,7 @@ var emojiDeleteErrorMessage = (0, _react.css)({
|
|
|
412
412
|
color: "var(--ds-text-danger, ".concat(_colors.R400, ")"),
|
|
413
413
|
alignItems: 'center',
|
|
414
414
|
justifyContent: 'flex-end',
|
|
415
|
-
paddingRight:
|
|
415
|
+
paddingRight: "var(--ds-space-050, 4px)"
|
|
416
416
|
});
|
|
417
417
|
exports.emojiDeleteErrorMessage = emojiDeleteErrorMessage;
|
|
418
418
|
var emojiChooseFileErrorMessage = (0, _react.css)({
|
|
@@ -438,7 +438,7 @@ var uploadRetryButton = (0, _react.css)({
|
|
|
438
438
|
maxWidth: '172px',
|
|
439
439
|
justifyContent: 'center',
|
|
440
440
|
fontWeight: 'bold',
|
|
441
|
-
marginRight:
|
|
441
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
442
442
|
div: {
|
|
443
443
|
display: 'flex'
|
|
444
444
|
}
|
|
@@ -447,7 +447,7 @@ exports.uploadRetryButton = uploadRetryButton;
|
|
|
447
447
|
var uploadEmojiButton = (0, _react.css)({
|
|
448
448
|
maxWidth: '187px',
|
|
449
449
|
justifyContent: 'center',
|
|
450
|
-
marginRight:
|
|
450
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
451
451
|
div: {
|
|
452
452
|
display: 'flex'
|
|
453
453
|
}
|
|
@@ -471,7 +471,7 @@ exports.emojiActionsWrapper = emojiActionsWrapper;
|
|
|
471
471
|
var tooltipShortcutStyle = (0, _react.css)({
|
|
472
472
|
borderRadius: '3px',
|
|
473
473
|
backgroundColor: "var(--ds-background-inverse-subtle, ".concat(_colors.N400, ")"),
|
|
474
|
-
padding:
|
|
474
|
+
padding: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
475
475
|
/* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */
|
|
476
476
|
/* stylelint-disable-next-line */
|
|
477
477
|
label: 'tooltip-shortcut'
|
|
@@ -149,10 +149,7 @@ var VirtualList = /*#__PURE__*/_react2.default.forwardRef(function (props, ref)
|
|
|
149
149
|
var scrollToRowAndFocusEmoji = (0, _react2.useCallback)(function (emojiToFocus) {
|
|
150
150
|
if (emojiToFocus) {
|
|
151
151
|
var _emojiToFocus$element;
|
|
152
|
-
rowVirtualizer.scrollToIndex(emojiToFocus.rowIndex
|
|
153
|
-
align: 'auto',
|
|
154
|
-
smoothScroll: false
|
|
155
|
-
});
|
|
152
|
+
rowVirtualizer.scrollToIndex(emojiToFocus.rowIndex);
|
|
156
153
|
(_emojiToFocus$element = emojiToFocus.element) === null || _emojiToFocus$element === void 0 ? void 0 : _emojiToFocus$element.focus({
|
|
157
154
|
preventScroll: true
|
|
158
155
|
});
|
|
@@ -167,10 +164,7 @@ var VirtualList = /*#__PURE__*/_react2.default.forwardRef(function (props, ref)
|
|
|
167
164
|
if (waitForScrollFinish) {
|
|
168
165
|
// scroll to target rowIndex first to ensure the row is rendered in list.
|
|
169
166
|
// used in page up/down, ctrl+Home, ctrl+End
|
|
170
|
-
rowVirtualizer.scrollToIndex(rIndex
|
|
171
|
-
align: 'auto',
|
|
172
|
-
smoothScroll: false
|
|
173
|
-
});
|
|
167
|
+
rowVirtualizer.scrollToIndex(rIndex);
|
|
174
168
|
setTimeout(function () {
|
|
175
169
|
var emojiToFocus = findNextEmoji(rIndex, cIndex, direction);
|
|
176
170
|
scrollToRowAndFocusEmoji(emojiToFocus);
|
|
@@ -246,8 +240,7 @@ var VirtualList = /*#__PURE__*/_react2.default.forwardRef(function (props, ref)
|
|
|
246
240
|
scrollPaddingStart: 0
|
|
247
241
|
}));
|
|
248
242
|
rowVirtualizer.scrollToIndex(index, {
|
|
249
|
-
align: scrollToAlignment
|
|
250
|
-
smoothScroll: false
|
|
243
|
+
align: scrollToAlignment
|
|
251
244
|
});
|
|
252
245
|
}
|
|
253
246
|
},
|
|
@@ -16,10 +16,10 @@ var emojiUploadWidget = (0, _react.css)({
|
|
|
16
16
|
background: "var(--ds-surface-overlay, white)",
|
|
17
17
|
height: "120px",
|
|
18
18
|
width: "".concat(_constants.emojiPickerWidth, "px"),
|
|
19
|
-
marginBottom:
|
|
19
|
+
marginBottom: "var(--ds-space-100, 8px)",
|
|
20
20
|
minWidth: "".concat(_constants.emojiPickerWidth, "px"),
|
|
21
21
|
margin: '-10px',
|
|
22
|
-
marginTop:
|
|
22
|
+
marginTop: "var(--ds-space-negative-200, -16px)"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
/// Footer
|
|
@@ -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: "67.5.
|
|
23
|
+
packageVersion: "67.5.2"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -2,7 +2,7 @@ import { css, keyframes } from '@emotion/react';
|
|
|
2
2
|
import { defaultEmojiHeight } from '../../util/constants';
|
|
3
3
|
import { akEmojiSelectedBackgroundColor } from '../../util/shared-styles';
|
|
4
4
|
import { B100, N20, N200, N20A, N300, N400, N900, R300, R400 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { fontFamily as getFontFamily
|
|
5
|
+
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
6
6
|
export const commonSelectedStyles = 'emoji-common-selected';
|
|
7
7
|
export const selectOnHoverStyles = 'emoji-common-select-on-hover';
|
|
8
8
|
export const emojiSprite = 'emoji-common-emoji-sprite';
|
|
@@ -16,8 +16,8 @@ export const deleteButton = css({
|
|
|
16
16
|
visibility: 'hidden',
|
|
17
17
|
display: 'flex',
|
|
18
18
|
position: 'absolute',
|
|
19
|
-
top:
|
|
20
|
-
right:
|
|
19
|
+
top: "var(--ds-space-negative-100, -8px)",
|
|
20
|
+
right: "var(--ds-space-negative-100, -8px)",
|
|
21
21
|
zIndex: 1
|
|
22
22
|
});
|
|
23
23
|
export const emojiToneSelectorContainer = css({
|
|
@@ -128,7 +128,7 @@ export const emojiButton = css({
|
|
|
128
128
|
padding: 0
|
|
129
129
|
},
|
|
130
130
|
'&>span': {
|
|
131
|
-
padding:
|
|
131
|
+
padding: "var(--ds-space-075, 6px)",
|
|
132
132
|
// Scale sprite to fit regardless of default emoji size
|
|
133
133
|
[`&>.${emojiSprite}`]: {
|
|
134
134
|
height: '24px',
|
|
@@ -167,7 +167,7 @@ export const previewText = css({
|
|
|
167
167
|
display: 'flex',
|
|
168
168
|
flexDirection: 'column',
|
|
169
169
|
alignSelf: 'center',
|
|
170
|
-
marginTop:
|
|
170
|
+
marginTop: "var(--ds-space-negative-025, -2px)",
|
|
171
171
|
marginLeft: '10px',
|
|
172
172
|
maxWidth: '285px',
|
|
173
173
|
width: '285px' /* IE */,
|
|
@@ -189,9 +189,9 @@ export const emojiShortName = css({
|
|
|
189
189
|
color: `var(--ds-text-subtle, ${N200})`,
|
|
190
190
|
fontSize: '12px',
|
|
191
191
|
lineHeight: 1,
|
|
192
|
-
marginBottom:
|
|
192
|
+
marginBottom: "var(--ds-space-negative-025, -2px)",
|
|
193
193
|
overflow: 'hidden',
|
|
194
|
-
paddingBottom:
|
|
194
|
+
paddingBottom: "var(--ds-space-025, 2px)",
|
|
195
195
|
textOverflow: 'ellipsis',
|
|
196
196
|
whiteSpace: 'nowrap',
|
|
197
197
|
['&:first-of-type']: {
|
|
@@ -308,7 +308,7 @@ export const uploadPreview = css({
|
|
|
308
308
|
export const uploadPreviewText = css({
|
|
309
309
|
h5: {
|
|
310
310
|
color: `var(--ds-text-subtle, ${N300})`,
|
|
311
|
-
paddingBottom:
|
|
311
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
312
312
|
fontSize: '12px'
|
|
313
313
|
},
|
|
314
314
|
img: {
|
|
@@ -317,7 +317,7 @@ export const uploadPreviewText = css({
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
export const bigEmojiPreview = css({
|
|
320
|
-
paddingLeft:
|
|
320
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
321
321
|
img: {
|
|
322
322
|
maxHeight: '40px',
|
|
323
323
|
maxWidth: '100px'
|
|
@@ -362,7 +362,7 @@ export const headingH5 = css({
|
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
export const requiredSymbol = css({
|
|
365
|
-
paddingLeft:
|
|
365
|
+
paddingLeft: "var(--ds-space-025, 2px)",
|
|
366
366
|
color: `var(--ds-text-danger, ${R400})`,
|
|
367
367
|
fontFamily: getFontFamily()
|
|
368
368
|
});
|
|
@@ -382,7 +382,7 @@ export const deleteFooter = css({
|
|
|
382
382
|
[`.${submitDelete}`]: {
|
|
383
383
|
width: '84px',
|
|
384
384
|
fontWeight: 'bold',
|
|
385
|
-
marginRight:
|
|
385
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
export const emojiDeleteErrorMessage = css({
|
|
@@ -390,7 +390,7 @@ export const emojiDeleteErrorMessage = css({
|
|
|
390
390
|
color: `var(--ds-text-danger, ${R400})`,
|
|
391
391
|
alignItems: 'center',
|
|
392
392
|
justifyContent: 'flex-end',
|
|
393
|
-
paddingRight:
|
|
393
|
+
paddingRight: "var(--ds-space-050, 4px)"
|
|
394
394
|
});
|
|
395
395
|
export const emojiChooseFileErrorMessage = css({
|
|
396
396
|
display: 'flex',
|
|
@@ -412,7 +412,7 @@ export const uploadRetryButton = css({
|
|
|
412
412
|
maxWidth: '172px',
|
|
413
413
|
justifyContent: 'center',
|
|
414
414
|
fontWeight: 'bold',
|
|
415
|
-
marginRight:
|
|
415
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
416
416
|
div: {
|
|
417
417
|
display: 'flex'
|
|
418
418
|
}
|
|
@@ -420,7 +420,7 @@ export const uploadRetryButton = css({
|
|
|
420
420
|
export const uploadEmojiButton = css({
|
|
421
421
|
maxWidth: '187px',
|
|
422
422
|
justifyContent: 'center',
|
|
423
|
-
marginRight:
|
|
423
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
424
424
|
div: {
|
|
425
425
|
display: 'flex'
|
|
426
426
|
}
|
|
@@ -440,7 +440,7 @@ export const emojiActionsWrapper = css({
|
|
|
440
440
|
export const tooltipShortcutStyle = css({
|
|
441
441
|
borderRadius: '3px',
|
|
442
442
|
backgroundColor: `var(--ds-background-inverse-subtle, ${N400})`,
|
|
443
|
-
padding:
|
|
443
|
+
padding: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
444
444
|
/* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */
|
|
445
445
|
/* stylelint-disable-next-line */
|
|
446
446
|
label: 'tooltip-shortcut'
|
|
@@ -137,10 +137,7 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
137
137
|
const scrollToRowAndFocusEmoji = useCallback(emojiToFocus => {
|
|
138
138
|
if (emojiToFocus) {
|
|
139
139
|
var _emojiToFocus$element;
|
|
140
|
-
rowVirtualizer.scrollToIndex(emojiToFocus.rowIndex
|
|
141
|
-
align: 'auto',
|
|
142
|
-
smoothScroll: false
|
|
143
|
-
});
|
|
140
|
+
rowVirtualizer.scrollToIndex(emojiToFocus.rowIndex);
|
|
144
141
|
(_emojiToFocus$element = emojiToFocus.element) === null || _emojiToFocus$element === void 0 ? void 0 : _emojiToFocus$element.focus({
|
|
145
142
|
preventScroll: true
|
|
146
143
|
});
|
|
@@ -154,10 +151,7 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
154
151
|
if (waitForScrollFinish) {
|
|
155
152
|
// scroll to target rowIndex first to ensure the row is rendered in list.
|
|
156
153
|
// used in page up/down, ctrl+Home, ctrl+End
|
|
157
|
-
rowVirtualizer.scrollToIndex(rIndex
|
|
158
|
-
align: 'auto',
|
|
159
|
-
smoothScroll: false
|
|
160
|
-
});
|
|
154
|
+
rowVirtualizer.scrollToIndex(rIndex);
|
|
161
155
|
setTimeout(() => {
|
|
162
156
|
const emojiToFocus = findNextEmoji(rIndex, cIndex, direction);
|
|
163
157
|
scrollToRowAndFocusEmoji(emojiToFocus);
|
|
@@ -234,8 +228,7 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
234
228
|
scrollPaddingStart: 0
|
|
235
229
|
});
|
|
236
230
|
rowVirtualizer.scrollToIndex(index, {
|
|
237
|
-
align: scrollToAlignment
|
|
238
|
-
smoothScroll: false
|
|
231
|
+
align: scrollToAlignment
|
|
239
232
|
});
|
|
240
233
|
}
|
|
241
234
|
},
|
|
@@ -11,10 +11,10 @@ export const emojiUploadWidget = css({
|
|
|
11
11
|
background: "var(--ds-surface-overlay, white)",
|
|
12
12
|
height: `120px`,
|
|
13
13
|
width: `${emojiPickerWidth}px`,
|
|
14
|
-
marginBottom:
|
|
14
|
+
marginBottom: "var(--ds-space-100, 8px)",
|
|
15
15
|
minWidth: `${emojiPickerWidth}px`,
|
|
16
16
|
margin: '-10px',
|
|
17
|
-
marginTop:
|
|
17
|
+
marginTop: "var(--ds-space-negative-200, -16px)"
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
/// Footer
|
|
@@ -5,7 +5,7 @@ import { css, keyframes } from '@emotion/react';
|
|
|
5
5
|
import { defaultEmojiHeight } from '../../util/constants';
|
|
6
6
|
import { akEmojiSelectedBackgroundColor } from '../../util/shared-styles';
|
|
7
7
|
import { B100, N20, N200, N20A, N300, N400, N900, R300, R400 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { fontFamily as getFontFamily
|
|
8
|
+
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
9
9
|
export var commonSelectedStyles = 'emoji-common-selected';
|
|
10
10
|
export var selectOnHoverStyles = 'emoji-common-select-on-hover';
|
|
11
11
|
export var emojiSprite = 'emoji-common-emoji-sprite';
|
|
@@ -19,8 +19,8 @@ export var deleteButton = css({
|
|
|
19
19
|
visibility: 'hidden',
|
|
20
20
|
display: 'flex',
|
|
21
21
|
position: 'absolute',
|
|
22
|
-
top:
|
|
23
|
-
right:
|
|
22
|
+
top: "var(--ds-space-negative-100, -8px)",
|
|
23
|
+
right: "var(--ds-space-negative-100, -8px)",
|
|
24
24
|
zIndex: 1
|
|
25
25
|
});
|
|
26
26
|
export var emojiToneSelectorContainer = css({
|
|
@@ -113,7 +113,7 @@ export var emojiButton = css((_css3 = {
|
|
|
113
113
|
border: '0 none',
|
|
114
114
|
padding: 0
|
|
115
115
|
}), _defineProperty(_css3, '&>span', (_span = {
|
|
116
|
-
padding:
|
|
116
|
+
padding: "var(--ds-space-075, 6px)"
|
|
117
117
|
}, _defineProperty(_span, "&>.".concat(emojiSprite), {
|
|
118
118
|
height: '24px',
|
|
119
119
|
width: '24px'
|
|
@@ -146,7 +146,7 @@ export var previewText = css({
|
|
|
146
146
|
display: 'flex',
|
|
147
147
|
flexDirection: 'column',
|
|
148
148
|
alignSelf: 'center',
|
|
149
|
-
marginTop:
|
|
149
|
+
marginTop: "var(--ds-space-negative-025, -2px)",
|
|
150
150
|
marginLeft: '10px',
|
|
151
151
|
maxWidth: '285px',
|
|
152
152
|
width: '285px' /* IE */,
|
|
@@ -167,9 +167,9 @@ export var emojiShortName = css(_defineProperty({
|
|
|
167
167
|
color: "var(--ds-text-subtle, ".concat(N200, ")"),
|
|
168
168
|
fontSize: '12px',
|
|
169
169
|
lineHeight: 1,
|
|
170
|
-
marginBottom:
|
|
170
|
+
marginBottom: "var(--ds-space-negative-025, -2px)",
|
|
171
171
|
overflow: 'hidden',
|
|
172
|
-
paddingBottom:
|
|
172
|
+
paddingBottom: "var(--ds-space-025, 2px)",
|
|
173
173
|
textOverflow: 'ellipsis',
|
|
174
174
|
whiteSpace: 'nowrap'
|
|
175
175
|
}, '&:first-of-type', {
|
|
@@ -281,7 +281,7 @@ export var uploadPreview = css({
|
|
|
281
281
|
export var uploadPreviewText = css({
|
|
282
282
|
h5: {
|
|
283
283
|
color: "var(--ds-text-subtle, ".concat(N300, ")"),
|
|
284
|
-
paddingBottom:
|
|
284
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
285
285
|
fontSize: '12px'
|
|
286
286
|
},
|
|
287
287
|
img: {
|
|
@@ -290,7 +290,7 @@ export var uploadPreviewText = css({
|
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
export var bigEmojiPreview = css({
|
|
293
|
-
paddingLeft:
|
|
293
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
294
294
|
img: {
|
|
295
295
|
maxHeight: '40px',
|
|
296
296
|
maxWidth: '100px'
|
|
@@ -335,7 +335,7 @@ export var headingH5 = css({
|
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
export var requiredSymbol = css({
|
|
338
|
-
paddingLeft: "
|
|
338
|
+
paddingLeft: "var(--ds-space-025, 2px)",
|
|
339
339
|
color: "var(--ds-text-danger, ".concat(R400, ")"),
|
|
340
340
|
fontFamily: getFontFamily()
|
|
341
341
|
});
|
|
@@ -355,14 +355,14 @@ export var deleteFooter = css(_defineProperty({
|
|
|
355
355
|
}, ".".concat(submitDelete), {
|
|
356
356
|
width: '84px',
|
|
357
357
|
fontWeight: 'bold',
|
|
358
|
-
marginRight:
|
|
358
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
359
359
|
}));
|
|
360
360
|
export var emojiDeleteErrorMessage = css({
|
|
361
361
|
display: 'flex',
|
|
362
362
|
color: "var(--ds-text-danger, ".concat(R400, ")"),
|
|
363
363
|
alignItems: 'center',
|
|
364
364
|
justifyContent: 'flex-end',
|
|
365
|
-
paddingRight:
|
|
365
|
+
paddingRight: "var(--ds-space-050, 4px)"
|
|
366
366
|
});
|
|
367
367
|
export var emojiChooseFileErrorMessage = css({
|
|
368
368
|
display: 'flex',
|
|
@@ -384,7 +384,7 @@ export var uploadRetryButton = css({
|
|
|
384
384
|
maxWidth: '172px',
|
|
385
385
|
justifyContent: 'center',
|
|
386
386
|
fontWeight: 'bold',
|
|
387
|
-
marginRight:
|
|
387
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
388
388
|
div: {
|
|
389
389
|
display: 'flex'
|
|
390
390
|
}
|
|
@@ -392,7 +392,7 @@ export var uploadRetryButton = css({
|
|
|
392
392
|
export var uploadEmojiButton = css({
|
|
393
393
|
maxWidth: '187px',
|
|
394
394
|
justifyContent: 'center',
|
|
395
|
-
marginRight:
|
|
395
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
396
396
|
div: {
|
|
397
397
|
display: 'flex'
|
|
398
398
|
}
|
|
@@ -412,7 +412,7 @@ export var emojiActionsWrapper = css({
|
|
|
412
412
|
export var tooltipShortcutStyle = css({
|
|
413
413
|
borderRadius: '3px',
|
|
414
414
|
backgroundColor: "var(--ds-background-inverse-subtle, ".concat(N400, ")"),
|
|
415
|
-
padding:
|
|
415
|
+
padding: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
416
416
|
/* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */
|
|
417
417
|
/* stylelint-disable-next-line */
|
|
418
418
|
label: 'tooltip-shortcut'
|
|
@@ -139,10 +139,7 @@ export var VirtualList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
139
139
|
var scrollToRowAndFocusEmoji = useCallback(function (emojiToFocus) {
|
|
140
140
|
if (emojiToFocus) {
|
|
141
141
|
var _emojiToFocus$element;
|
|
142
|
-
rowVirtualizer.scrollToIndex(emojiToFocus.rowIndex
|
|
143
|
-
align: 'auto',
|
|
144
|
-
smoothScroll: false
|
|
145
|
-
});
|
|
142
|
+
rowVirtualizer.scrollToIndex(emojiToFocus.rowIndex);
|
|
146
143
|
(_emojiToFocus$element = emojiToFocus.element) === null || _emojiToFocus$element === void 0 ? void 0 : _emojiToFocus$element.focus({
|
|
147
144
|
preventScroll: true
|
|
148
145
|
});
|
|
@@ -157,10 +154,7 @@ export var VirtualList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
157
154
|
if (waitForScrollFinish) {
|
|
158
155
|
// scroll to target rowIndex first to ensure the row is rendered in list.
|
|
159
156
|
// used in page up/down, ctrl+Home, ctrl+End
|
|
160
|
-
rowVirtualizer.scrollToIndex(rIndex
|
|
161
|
-
align: 'auto',
|
|
162
|
-
smoothScroll: false
|
|
163
|
-
});
|
|
157
|
+
rowVirtualizer.scrollToIndex(rIndex);
|
|
164
158
|
setTimeout(function () {
|
|
165
159
|
var emojiToFocus = findNextEmoji(rIndex, cIndex, direction);
|
|
166
160
|
scrollToRowAndFocusEmoji(emojiToFocus);
|
|
@@ -236,8 +230,7 @@ export var VirtualList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
236
230
|
scrollPaddingStart: 0
|
|
237
231
|
}));
|
|
238
232
|
rowVirtualizer.scrollToIndex(index, {
|
|
239
|
-
align: scrollToAlignment
|
|
240
|
-
smoothScroll: false
|
|
233
|
+
align: scrollToAlignment
|
|
241
234
|
});
|
|
242
235
|
}
|
|
243
236
|
},
|
|
@@ -11,10 +11,10 @@ export var emojiUploadWidget = css({
|
|
|
11
11
|
background: "var(--ds-surface-overlay, white)",
|
|
12
12
|
height: "120px",
|
|
13
13
|
width: "".concat(emojiPickerWidth, "px"),
|
|
14
|
-
marginBottom:
|
|
14
|
+
marginBottom: "var(--ds-space-100, 8px)",
|
|
15
15
|
minWidth: "".concat(emojiPickerWidth, "px"),
|
|
16
16
|
margin: '-10px',
|
|
17
|
-
marginTop:
|
|
17
|
+
marginTop: "var(--ds-space-negative-200, -16px)"
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
/// Footer
|
|
@@ -12,7 +12,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
12
12
|
actionSubjectId: actionSubjectId,
|
|
13
13
|
attributes: _objectSpread({
|
|
14
14
|
packageName: "@atlaskit/emoji",
|
|
15
|
-
packageVersion: "67.5.
|
|
15
|
+
packageVersion: "67.5.2"
|
|
16
16
|
}, attributes)
|
|
17
17
|
};
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "67.5.
|
|
3
|
+
"version": "67.5.2",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@atlaskit/spinner": "^15.5.0",
|
|
41
41
|
"@atlaskit/textfield": "^5.6.0",
|
|
42
42
|
"@atlaskit/theme": "^12.6.0",
|
|
43
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/tokens": "^1.22.0",
|
|
44
44
|
"@atlaskit/tooltip": "^17.8.0",
|
|
45
45
|
"@atlaskit/ufo": "^0.2.0",
|
|
46
46
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
|
-
"@tanstack/react-virtual": "3.0.0-beta.
|
|
50
|
+
"@tanstack/react-virtual": "3.0.0-beta.60",
|
|
51
51
|
"js-search": "^2.0.0",
|
|
52
52
|
"lru_map": "^0.4.1",
|
|
53
53
|
"react-focus-lock": "^2.5.2",
|