@atlaskit/quick-search 8.0.7 → 8.0.10

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,24 @@
1
1
  # @atlaskit/quick-search
2
2
 
3
+ ## 8.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
8
+
9
+ ## 8.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 8.0.8
16
+
17
+ ### Patch Changes
18
+
19
+ - [`ea354666ca2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea354666ca2) - Added testid to default ObjectResult's AvatarImage.
20
+ - Updated dependencies
21
+
3
22
  ## 8.0.7
4
23
 
5
24
  ### Patch Changes
@@ -35,9 +35,9 @@ var _decorateWithAnalyticsData = _interopRequireDefault(require("./decorateWithA
35
35
 
36
36
  var _constants = require("./constants");
37
37
 
38
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
38
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39
39
 
40
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
40
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
41
41
 
42
42
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
43
43
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.ResultItemTextAfter = exports.ResultItemIcon = exports.ResultItemSubText = exports.ResultItemCaption = exports.ResultItemAfterWrapper = exports.ResultItemAfter = exports.ResultItemGroupTitle = exports.ResultItemGroupHeader = void 0;
8
+ exports.ResultItemTextAfter = exports.ResultItemSubText = exports.ResultItemIcon = exports.ResultItemGroupTitle = exports.ResultItemGroupHeader = exports.ResultItemCaption = exports.ResultItemAfterWrapper = exports.ResultItemAfter = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
@@ -31,6 +31,8 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
31
31
 
32
32
  var _ResultBase = _interopRequireDefault(require("./ResultBase"));
33
33
 
34
+ var _excluded = ["name", "isPrivate", "type", "subText"];
35
+
34
36
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
35
37
 
36
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
@@ -78,7 +80,7 @@ var ContainerResult = /*#__PURE__*/function (_React$PureComponent) {
78
80
  _this$props$type = _this$props.type,
79
81
  type = _this$props$type === void 0 ? 'container' : _this$props$type,
80
82
  subText = _this$props.subText,
81
- commonResultProps = (0, _objectWithoutProperties2.default)(_this$props, ["name", "isPrivate", "type", "subText"]);
83
+ commonResultProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
82
84
  return /*#__PURE__*/_react.default.createElement(_ResultBase.default, (0, _extends2.default)({}, commonResultProps, {
83
85
  type: type,
84
86
  text: name,
@@ -31,6 +31,8 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
31
31
 
32
32
  var _ResultBase = _interopRequireDefault(require("./ResultBase"));
33
33
 
34
+ var _excluded = ["name", "containerName", "isPrivate", "objectKey", "type"];
35
+
34
36
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
35
37
 
36
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
@@ -63,7 +65,8 @@ var ObjectResult = /*#__PURE__*/function (_React$PureComponent) {
63
65
  src: _this.props.avatarUrl,
64
66
  appearance: "square",
65
67
  size: "small",
66
- status: _this.props.isPrivate ? 'locked' : null
68
+ status: _this.props.isPrivate ? 'locked' : null,
69
+ testId: "object-result"
67
70
  });
68
71
  });
69
72
  return _this;
@@ -92,7 +95,7 @@ var ObjectResult = /*#__PURE__*/function (_React$PureComponent) {
92
95
  objectKey = _this$props2.objectKey,
93
96
  _this$props2$type = _this$props2.type,
94
97
  type = _this$props2$type === void 0 ? 'object' : _this$props2$type,
95
- commonResultProps = (0, _objectWithoutProperties2.default)(_this$props2, ["name", "containerName", "isPrivate", "objectKey", "type"]);
98
+ commonResultProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded);
96
99
  return /*#__PURE__*/_react.default.createElement(_ResultBase.default, (0, _extends2.default)({}, commonResultProps, {
97
100
  type: type,
98
101
  text: name,
@@ -31,6 +31,8 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
31
31
 
32
32
  var _ResultBase = _interopRequireDefault(require("./ResultBase"));
33
33
 
34
+ var _excluded = ["name", "mentionName", "mentionPrefix", "presenceMessage", "presenceState", "type"];
35
+
34
36
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
35
37
 
36
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
@@ -78,7 +80,7 @@ var PersonResult = /*#__PURE__*/function (_React$PureComponent) {
78
80
  presenceState = _this$props.presenceState,
79
81
  _this$props$type = _this$props.type,
80
82
  type = _this$props$type === void 0 ? 'person' : _this$props$type,
81
- commonResultProps = (0, _objectWithoutProperties2.default)(_this$props, ["name", "mentionName", "mentionPrefix", "presenceMessage", "presenceState", "type"]);
83
+ commonResultProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
82
84
  return /*#__PURE__*/_react.default.createElement(_ResultBase.default, (0, _extends2.default)({}, commonResultProps, {
83
85
  type: type,
84
86
  text: name,
@@ -31,9 +31,9 @@ var _ResultItem = _interopRequireDefault(require("../ResultItem/ResultItem"));
31
31
 
32
32
  var _context = require("../context");
33
33
 
34
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
34
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
35
35
 
36
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
36
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37
37
 
38
38
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
39
39
 
@@ -127,7 +127,8 @@ var ResultBase = /*#__PURE__*/function (_React$PureComponent) {
127
127
  value: function getAnalyticsData() {
128
128
  var _this$props2 = this.props,
129
129
  resultId = _this$props2.resultId,
130
- analyticsData = _this$props2.analyticsData,
130
+ _this$props2$analytic = _this$props2.analyticsData,
131
+ analyticsData = _this$props2$analytic === void 0 ? {} : _this$props2$analytic,
131
132
  type = _this$props2.type,
132
133
  context = _this$props2.context;
133
134
  return _objectSpread({
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.SearchInputControlsContainer = exports.SearchInputTypeAhead = exports.SearchInput = exports.getPlaceholderColor = exports.getPlaceholderStyle = exports.SearchInner = exports.SearchFieldBaseInner = exports.SearchFieldBaseOuter = exports.SearchBox = void 0;
10
+ exports.getPlaceholderStyle = exports.getPlaceholderColor = exports.SearchInputTypeAhead = exports.SearchInputControlsContainer = exports.SearchInput = exports.SearchInner = exports.SearchFieldBaseOuter = exports.SearchFieldBaseInner = exports.SearchBox = void 0;
11
11
 
12
12
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
13
 
@@ -25,7 +25,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
25
25
 
26
26
  var inputRightPadding = (0, _constants.gridSize)() * 2;
27
27
 
28
- var SearchBox = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: sticky;\n top: 0;\n z-index: 1; /* required to keep the search box on top of icons in results when sticky */\n background-color: ", ";\n color: ", ";\n display: flex;\n height: 36px;\n z-index: 10;\n"])), _colors.N0, _colors.N500);
28
+ var SearchBox = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: sticky;\n top: 0;\n background-color: ", ";\n color: ", ";\n display: flex;\n height: 36px;\n z-index: 10; /* required to keep the search box on top of icons in results when sticky */\n"])), _colors.N0, _colors.N500);
29
29
 
30
30
  exports.SearchBox = SearchBox;
31
31
 
@@ -34,9 +34,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
34
34
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
35
 
36
36
  function decorateWithAnalyticsData(WrappedQuickSearch) {
37
- var _class, _temp;
37
+ var _class;
38
38
 
39
- return _temp = _class = /*#__PURE__*/function (_React$Component) {
39
+ return _class = /*#__PURE__*/function (_React$Component) {
40
40
  (0, _inherits2.default)(DecorateWithAnalyticsData, _React$Component);
41
41
 
42
42
  var _super = _createSuper(DecorateWithAnalyticsData);
@@ -76,5 +76,5 @@ function decorateWithAnalyticsData(WrappedQuickSearch) {
76
76
  }(_react.default.Component), (0, _defineProperty2.default)(_class, "defaultProps", {
77
77
  children: [],
78
78
  value: ''
79
- }), _temp;
79
+ }), _class;
80
80
  }
package/dist/cjs/index.js CHANGED
@@ -7,40 +7,34 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- Object.defineProperty(exports, "AkNavigationItemGroup", {
10
+ Object.defineProperty(exports, "AkNavigationItem", {
11
11
  enumerable: true,
12
12
  get: function get() {
13
- return _ResultItemGroup.default;
13
+ return _ResultItem.default;
14
14
  }
15
15
  });
16
- Object.defineProperty(exports, "ResultItemGroup", {
16
+ Object.defineProperty(exports, "AkNavigationItemGroup", {
17
17
  enumerable: true,
18
18
  get: function get() {
19
19
  return _ResultItemGroup.default;
20
20
  }
21
21
  });
22
- Object.defineProperty(exports, "AkNavigationItem", {
23
- enumerable: true,
24
- get: function get() {
25
- return _ResultItem.default;
26
- }
27
- });
28
22
  Object.defineProperty(exports, "AkQuickSearch", {
29
23
  enumerable: true,
30
24
  get: function get() {
31
25
  return _QuickSearch.default;
32
26
  }
33
27
  });
34
- Object.defineProperty(exports, "QuickSearch", {
28
+ Object.defineProperty(exports, "AkSearch", {
35
29
  enumerable: true,
36
30
  get: function get() {
37
- return _QuickSearch.default;
31
+ return _Search.default;
38
32
  }
39
33
  });
40
- Object.defineProperty(exports, "AkSearch", {
34
+ Object.defineProperty(exports, "ContainerResult", {
41
35
  enumerable: true,
42
36
  get: function get() {
43
- return _Search.default;
37
+ return _ContainerResult.default;
44
38
  }
45
39
  });
46
40
  Object.defineProperty(exports, "ObjectResult", {
@@ -55,10 +49,10 @@ Object.defineProperty(exports, "PersonResult", {
55
49
  return _PersonResult.default;
56
50
  }
57
51
  });
58
- Object.defineProperty(exports, "ContainerResult", {
52
+ Object.defineProperty(exports, "QuickSearch", {
59
53
  enumerable: true,
60
54
  get: function get() {
61
- return _ContainerResult.default;
55
+ return _QuickSearch.default;
62
56
  }
63
57
  });
64
58
  Object.defineProperty(exports, "ResultBase", {
@@ -67,6 +61,12 @@ Object.defineProperty(exports, "ResultBase", {
67
61
  return _ResultBase.default;
68
62
  }
69
63
  });
64
+ Object.defineProperty(exports, "ResultItemGroup", {
65
+ enumerable: true,
66
+ get: function get() {
67
+ return _ResultItemGroup.default;
68
+ }
69
+ });
70
70
  exports.quickSearchResultTypes = void 0;
71
71
 
72
72
  var resultTypes = _interopRequireWildcard(require("./components/Results"));
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.7"
3
+ "version": "8.0.10"
4
4
  }
@@ -21,7 +21,8 @@ export default class ObjectResult extends React.PureComponent {
21
21
  src: this.props.avatarUrl,
22
22
  appearance: "square",
23
23
  size: "small",
24
- status: this.props.isPrivate ? 'locked' : null
24
+ status: this.props.isPrivate ? 'locked' : null,
25
+ testId: "object-result"
25
26
  });
26
27
  });
27
28
  }
@@ -80,7 +80,7 @@ export class ResultBase extends React.PureComponent {
80
80
  getAnalyticsData() {
81
81
  const {
82
82
  resultId,
83
- analyticsData,
83
+ analyticsData = {},
84
84
  type,
85
85
  context
86
86
  } = this.props;
@@ -5,12 +5,11 @@ const inputRightPadding = gridSize() * 2;
5
5
  export const SearchBox = styled.div`
6
6
  position: sticky;
7
7
  top: 0;
8
- z-index: 1; /* required to keep the search box on top of icons in results when sticky */
9
8
  background-color: ${N0};
10
9
  color: ${N500};
11
10
  display: flex;
12
11
  height: 36px;
13
- z-index: 10;
12
+ z-index: 10; /* required to keep the search box on top of icons in results when sticky */
14
13
  `;
15
14
  export const SearchFieldBaseOuter = styled.div`
16
15
  display: flex;
@@ -4,9 +4,9 @@ import { AnalyticsDecorator } from '@atlaskit/analytics';
4
4
  import isReactElement from './isReactElement';
5
5
  import { QS_ANALYTICS_EV_SUBMIT } from './constants';
6
6
  export default function decorateWithAnalyticsData(WrappedQuickSearch) {
7
- var _class, _temp;
7
+ var _class;
8
8
 
9
- return _temp = _class = class DecorateWithAnalyticsData extends React.Component {
9
+ return _class = class DecorateWithAnalyticsData extends React.Component {
10
10
  constructor(...args) {
11
11
  super(...args);
12
12
 
@@ -29,5 +29,5 @@ export default function decorateWithAnalyticsData(WrappedQuickSearch) {
29
29
  }, _defineProperty(_class, "defaultProps", {
30
30
  children: [],
31
31
  value: ''
32
- }), _temp;
32
+ }), _class;
33
33
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.7"
3
+ "version": "8.0.10"
4
4
  }
@@ -6,9 +6,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
 
9
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10
10
 
11
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
12
 
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
 
@@ -7,6 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
+ var _excluded = ["name", "isPrivate", "type", "subText"];
10
11
 
11
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
13
 
@@ -61,7 +62,7 @@ var ContainerResult = /*#__PURE__*/function (_React$PureComponent) {
61
62
  _this$props$type = _this$props.type,
62
63
  type = _this$props$type === void 0 ? 'container' : _this$props$type,
63
64
  subText = _this$props.subText,
64
- commonResultProps = _objectWithoutProperties(_this$props, ["name", "isPrivate", "type", "subText"]);
65
+ commonResultProps = _objectWithoutProperties(_this$props, _excluded);
65
66
 
66
67
  return /*#__PURE__*/React.createElement(ResultBase, _extends({}, commonResultProps, {
67
68
  type: type,
@@ -7,6 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
+ var _excluded = ["name", "containerName", "isPrivate", "objectKey", "type"];
10
11
 
11
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
13
 
@@ -45,7 +46,8 @@ var ObjectResult = /*#__PURE__*/function (_React$PureComponent) {
45
46
  src: _this.props.avatarUrl,
46
47
  appearance: "square",
47
48
  size: "small",
48
- status: _this.props.isPrivate ? 'locked' : null
49
+ status: _this.props.isPrivate ? 'locked' : null,
50
+ testId: "object-result"
49
51
  });
50
52
  });
51
53
 
@@ -75,7 +77,7 @@ var ObjectResult = /*#__PURE__*/function (_React$PureComponent) {
75
77
  objectKey = _this$props2.objectKey,
76
78
  _this$props2$type = _this$props2.type,
77
79
  type = _this$props2$type === void 0 ? 'object' : _this$props2$type,
78
- commonResultProps = _objectWithoutProperties(_this$props2, ["name", "containerName", "isPrivate", "objectKey", "type"]);
80
+ commonResultProps = _objectWithoutProperties(_this$props2, _excluded);
79
81
 
80
82
  return /*#__PURE__*/React.createElement(ResultBase, _extends({}, commonResultProps, {
81
83
  type: type,
@@ -7,6 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
+ var _excluded = ["name", "mentionName", "mentionPrefix", "presenceMessage", "presenceState", "type"];
10
11
 
11
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
13
 
@@ -62,7 +63,7 @@ var PersonResult = /*#__PURE__*/function (_React$PureComponent) {
62
63
  presenceState = _this$props.presenceState,
63
64
  _this$props$type = _this$props.type,
64
65
  type = _this$props$type === void 0 ? 'person' : _this$props$type,
65
- commonResultProps = _objectWithoutProperties(_this$props, ["name", "mentionName", "mentionPrefix", "presenceMessage", "presenceState", "type"]);
66
+ commonResultProps = _objectWithoutProperties(_this$props, _excluded);
66
67
 
67
68
  return /*#__PURE__*/React.createElement(ResultBase, _extends({}, commonResultProps, {
68
69
  type: type,
@@ -7,9 +7,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
 
10
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
11
 
12
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
13
 
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
15
15
 
@@ -112,7 +112,8 @@ export var ResultBase = /*#__PURE__*/function (_React$PureComponent) {
112
112
  value: function getAnalyticsData() {
113
113
  var _this$props2 = this.props,
114
114
  resultId = _this$props2.resultId,
115
- analyticsData = _this$props2.analyticsData,
115
+ _this$props2$analytic = _this$props2.analyticsData,
116
+ analyticsData = _this$props2$analytic === void 0 ? {} : _this$props2$analytic,
116
117
  type = _this$props2.type,
117
118
  context = _this$props2.context;
118
119
  return _objectSpread({
@@ -6,7 +6,7 @@ import styled, { css } from 'styled-components';
6
6
  import { gridSize } from '@atlaskit/theme/constants';
7
7
  import { N0, N500, B200, placeholderText, N50 } from '@atlaskit/theme/colors';
8
8
  var inputRightPadding = gridSize() * 2;
9
- export var SearchBox = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: sticky;\n top: 0;\n z-index: 1; /* required to keep the search box on top of icons in results when sticky */\n background-color: ", ";\n color: ", ";\n display: flex;\n height: 36px;\n z-index: 10;\n"])), N0, N500);
9
+ export var SearchBox = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: sticky;\n top: 0;\n background-color: ", ";\n color: ", ";\n display: flex;\n height: 36px;\n z-index: 10; /* required to keep the search box on top of icons in results when sticky */\n"])), N0, N500);
10
10
  export var SearchFieldBaseOuter = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex: 1;\n margin-right: auto;\n padding-bottom: 2px;\n border-bottom: 2px solid ", ";\n"])), B200);
11
11
  export var SearchFieldBaseInner = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding-right: ", "px; /* pad search text from FieldBase's isLoading spinner */\n display: flex;\n flex-grow: 1;\n"])), inputRightPadding);
12
12
  export var SearchInner = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding-right: ", "px;\n"])), gridSize() * 3);
@@ -15,9 +15,9 @@ import { AnalyticsDecorator } from '@atlaskit/analytics';
15
15
  import isReactElement from './isReactElement';
16
16
  import { QS_ANALYTICS_EV_SUBMIT } from './constants';
17
17
  export default function decorateWithAnalyticsData(WrappedQuickSearch) {
18
- var _class, _temp;
18
+ var _class;
19
19
 
20
- return _temp = _class = /*#__PURE__*/function (_React$Component) {
20
+ return _class = /*#__PURE__*/function (_React$Component) {
21
21
  _inherits(DecorateWithAnalyticsData, _React$Component);
22
22
 
23
23
  var _super = _createSuper(DecorateWithAnalyticsData);
@@ -60,5 +60,5 @@ export default function decorateWithAnalyticsData(WrappedQuickSearch) {
60
60
  }(React.Component), _defineProperty(_class, "defaultProps", {
61
61
  children: [],
62
62
  value: ''
63
- }), _temp;
63
+ }), _class;
64
64
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.7"
3
+ "version": "8.0.10"
4
4
  }
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
- export declare const ResultItemGroupHeader: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
- export declare const ResultItemGroupTitle: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
2
+ export declare const ResultItemGroupHeader: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
3
+ export declare const ResultItemGroupTitle: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
4
4
  export declare const ResultItemAfter: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
5
5
  shouldTakeSpace: boolean;
6
6
  }, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
7
7
  shouldTakeSpace: boolean;
8
8
  }>;
9
- export declare const ResultItemAfterWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
10
- export declare const ResultItemCaption: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
11
- export declare const ResultItemSubText: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
12
- export declare const ResultItemIcon: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
13
- export declare const ResultItemTextAfter: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
9
+ export declare const ResultItemAfterWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
10
+ export declare const ResultItemCaption: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>>;
11
+ export declare const ResultItemSubText: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>>;
12
+ export declare const ResultItemIcon: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
13
+ export declare const ResultItemTextAfter: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- export declare const SearchBox: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
- export declare const SearchFieldBaseOuter: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
- export declare const SearchFieldBaseInner: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
5
- export declare const SearchInner: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
2
+ export declare const SearchBox: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
3
+ export declare const SearchFieldBaseOuter: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
4
+ export declare const SearchFieldBaseInner: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
5
+ export declare const SearchInner: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
6
6
  export declare const getPlaceholderStyle: (style: any) => import("styled-components").InterpolationValue[];
7
- export declare const getPlaceholderColor: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").AtlaskitThemeProps | import("@atlaskit/theme").CustomThemeProps | import("@atlaskit/theme").NoThemeProps | undefined, any>>[];
8
- export declare const SearchInput: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, any, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
9
- export declare const SearchInputTypeAhead: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, any, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
10
- export declare const SearchInputControlsContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
7
+ export declare const getPlaceholderColor: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").ThemeProps | undefined, any>>[];
8
+ export declare const SearchInput: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>, any, import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>>;
9
+ export declare const SearchInputTypeAhead: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>, any, import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>>;
10
+ export declare const SearchInputControlsContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ComponentType } from 'react';
3
- import { ResultData, ResultId } from './Results/types';
3
+ import { ResultData, ResultId, SelectedResultId } from './Results/types';
4
4
  import { ResultBase } from './Results/ResultBase';
5
5
  export declare type ResultContextType = {
6
6
  /** Register result as keyboard navigation target */
@@ -19,4 +19,4 @@ export declare type ResultContextType = {
19
19
  linkComponent?: ComponentType;
20
20
  };
21
21
  export declare const ResultContext: React.Context<ResultContextType>;
22
- export declare const SelectedResultIdContext: React.Context<string | number | null>;
22
+ export declare const SelectedResultIdContext: React.Context<SelectedResultId>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.7",
3
+ "version": "8.0.10",
4
4
  "description": "A quick-search component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -14,7 +14,7 @@
14
14
  "types": "dist/types/index.d.ts",
15
15
  "atlaskit:src": "src/index.ts",
16
16
  "atlassian": {
17
- "team": "Search & Smarts: Search Experience",
17
+ "team": "Search Platform: Search Experience",
18
18
  "deprecatedAutoEntryPoints": true,
19
19
  "releaseModel": "continuous",
20
20
  "website": {
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@atlaskit/analytics": "^8.0.0",
26
- "@atlaskit/avatar": "^20.3.0",
26
+ "@atlaskit/avatar": "^20.5.0",
27
27
  "@atlaskit/item": "^12.0.0",
28
28
  "@atlaskit/spinner": "^15.0.0",
29
- "@atlaskit/theme": "^11.0.0",
29
+ "@atlaskit/theme": "^12.1.0",
30
30
  "@babel/runtime": "^7.0.0",
31
31
  "keycode": "^2.1.7"
32
32
  },
@@ -35,17 +35,17 @@
35
35
  "styled-components": "^3.2.6"
36
36
  },
37
37
  "devDependencies": {
38
- "@atlaskit/avatar": "^20.3.0",
38
+ "@atlaskit/avatar": "^20.5.0",
39
39
  "@atlaskit/docs": "*",
40
- "@atlaskit/drawer": "^6.0.0",
41
- "@atlaskit/icon": "^21.7.1",
40
+ "@atlaskit/drawer": "^7.1.0",
41
+ "@atlaskit/icon": "^21.10.0",
42
42
  "@atlaskit/navigation": "^37.0.0",
43
43
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
44
44
  "enzyme": "^3.10.0",
45
45
  "prop-types": "^15.5.10",
46
46
  "react": "^16.8.0",
47
47
  "sinon": "^2.2.0",
48
- "typescript": "3.9.6",
48
+ "typescript": "4.2.4",
49
49
  "uuid": "^3.1.0"
50
50
  },
51
51
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"