@atlaskit/emoji 67.5.1 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 67.5.1
4
10
 
5
11
  ### Patch Changes
@@ -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
  },
@@ -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.1"
23
+ packageVersion: "67.5.2"
24
24
  }, attributes)
25
25
  };
26
26
  };
@@ -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
  },
@@ -7,7 +7,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
7
7
  actionSubjectId,
8
8
  attributes: {
9
9
  packageName: "@atlaskit/emoji",
10
- packageVersion: "67.5.1",
10
+ packageVersion: "67.5.2",
11
11
  ...attributes
12
12
  }
13
13
  });
@@ -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
  },
@@ -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.1"
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.1",
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.21.0",
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.22",
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",