@atlaskit/quick-search 8.1.7 → 8.1.9
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/QuickSearch.js +1 -1
- package/dist/cjs/components/ResultItem/ResultItem.js +3 -3
- package/dist/cjs/components/ResultItem/ResultItemGroup.js +1 -1
- package/dist/cjs/components/Results/ContainerResult.js +1 -1
- package/dist/cjs/components/Results/ObjectResult.js +1 -1
- package/dist/cjs/components/Results/PersonResult.js +1 -1
- package/dist/cjs/components/Results/ResultBase.js +1 -1
- package/dist/cjs/components/Search/Search.js +2 -2
- package/dist/cjs/components/Search/styled.js +2 -2
- package/dist/cjs/components/decorateWithAnalyticsData.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/es2019/components/Results/ResultBase.js +1 -0
- package/dist/es2019/components/Search/Search.js +3 -3
- package/dist/esm/components/QuickSearch.js +1 -1
- package/dist/esm/components/ResultItem/ResultItem.js +1 -1
- package/dist/esm/components/ResultItem/ResultItemGroup.js +1 -1
- package/dist/esm/components/Results/ContainerResult.js +1 -1
- package/dist/esm/components/Results/ObjectResult.js +1 -1
- package/dist/esm/components/Results/PersonResult.js +1 -1
- package/dist/esm/components/Results/ResultBase.js +2 -1
- package/dist/esm/components/Search/Search.js +2 -2
- package/dist/esm/components/decorateWithAnalyticsData.js +1 -1
- package/dist/types/components/constants.d.ts +5 -5
- package/dist/types-ts4.5/components/constants.d.ts +5 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/quick-search
|
|
2
2
|
|
|
3
|
+
## 8.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
9
|
+
## 8.1.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#72162](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72162) [`dadc682d36ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dadc682d36ba) - Replace hardcoded values with space tokens
|
|
14
|
+
|
|
3
15
|
## 8.1.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var _constants = require("./constants");
|
|
|
22
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
24
|
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); }; }
|
|
25
|
-
function _isNativeReflectConstruct() {
|
|
25
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
26
|
/**
|
|
27
27
|
* Get the result ID of a result by its index in the flatResults array
|
|
28
28
|
* Returns null for a failed index or if resultId is empty|undefined
|
|
@@ -16,10 +16,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
17
|
var _item = _interopRequireWildcard(require("@atlaskit/item"));
|
|
18
18
|
var _styled = require("./styled");
|
|
19
|
-
function _getRequireWildcardCache(
|
|
20
|
-
function _interopRequireWildcard(
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
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); }; }
|
|
22
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
var Item = (0, _item.withItemClick)((0, _item.withItemFocus)(_item.default));
|
|
24
24
|
var ResultItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
25
25
|
(0, _inherits2.default)(ResultItem, _React$PureComponent);
|
|
@@ -14,7 +14,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
14
14
|
var _item = require("@atlaskit/item");
|
|
15
15
|
var _styled = require("./styled");
|
|
16
16
|
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); }; }
|
|
17
|
-
function _isNativeReflectConstruct() {
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
18
|
var ResultItemGroup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
19
19
|
(0, _inherits2.default)(ResultItemGroup, _React$Component);
|
|
20
20
|
var _super = _createSuper(ResultItemGroup);
|
|
@@ -19,7 +19,7 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
|
|
|
19
19
|
var _ResultBase = _interopRequireDefault(require("./ResultBase"));
|
|
20
20
|
var _excluded = ["name", "isPrivate", "type", "subText"];
|
|
21
21
|
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); }; }
|
|
22
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
/**
|
|
24
24
|
* Generic result type for Atlassian containers.
|
|
25
25
|
*/
|
|
@@ -19,7 +19,7 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
|
|
|
19
19
|
var _ResultBase = _interopRequireDefault(require("./ResultBase"));
|
|
20
20
|
var _excluded = ["name", "containerName", "isPrivate", "objectKey", "type"];
|
|
21
21
|
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); }; }
|
|
22
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
/**
|
|
24
24
|
* Generic result type for Atlassian objects.
|
|
25
25
|
*/
|
|
@@ -19,7 +19,7 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
|
|
|
19
19
|
var _ResultBase = _interopRequireDefault(require("./ResultBase"));
|
|
20
20
|
var _excluded = ["name", "mentionName", "mentionPrefix", "presenceMessage", "presenceState", "type"];
|
|
21
21
|
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); }; }
|
|
22
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
var PersonResult = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
24
24
|
(0, _inherits2.default)(PersonResult, _React$PureComponent);
|
|
25
25
|
var _super = _createSuper(PersonResult);
|
|
@@ -20,7 +20,7 @@ var _context = require("../context");
|
|
|
20
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
22
|
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); }; }
|
|
23
|
-
function _isNativeReflectConstruct() {
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
24
|
// context is an optional prop but the component provides a defaultProp. However, TS still complains
|
|
25
25
|
// when you don't pass it. There doesn't seem to be a better way of declaring optional default props.
|
|
26
26
|
var ResultBase = exports.ResultBase = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -19,9 +19,9 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
19
19
|
var _styled = require("./styled");
|
|
20
20
|
var _templateObject;
|
|
21
21
|
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); }; }
|
|
22
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
var controlKeys = exports.controlKeys = ['ArrowUp', 'ArrowDown', 'Enter', 'Tab', 'ArrowRight'];
|
|
24
|
-
var SpinnerParent = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height:
|
|
24
|
+
var SpinnerParent = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n margin-left: ", ";\n margin-top: ", ";\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)");
|
|
25
25
|
var Search = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
26
26
|
(0, _inherits2.default)(Search, _React$PureComponent);
|
|
27
27
|
var _super = _createSuper(Search);
|
|
@@ -10,8 +10,8 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
10
10
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
var inputRightPadding = "var(--ds-space-200, 16px)";
|
|
16
16
|
var SearchBox = exports.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);
|
|
17
17
|
var SearchFieldBaseOuter = exports.SearchFieldBaseOuter = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex: 1;\n margin-right: auto;\n padding-bottom: ", ";\n border-bottom: 2px solid ", ";\n"])), "var(--ds-space-025, 2px)", _colors.B200);
|
|
@@ -17,7 +17,7 @@ var _analytics = require("@atlaskit/analytics");
|
|
|
17
17
|
var _isReactElement = _interopRequireDefault(require("./isReactElement"));
|
|
18
18
|
var _constants = require("./constants");
|
|
19
19
|
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); }; }
|
|
20
|
-
function _isNativeReflectConstruct() {
|
|
20
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
21
|
function decorateWithAnalyticsData(WrappedQuickSearch) {
|
|
22
22
|
var _class;
|
|
23
23
|
return _class = /*#__PURE__*/function (_React$Component) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -76,5 +76,5 @@ var _ObjectResult = _interopRequireDefault(require("./components/Results/ObjectR
|
|
|
76
76
|
var _PersonResult = _interopRequireDefault(require("./components/Results/PersonResult"));
|
|
77
77
|
var _ContainerResult = _interopRequireDefault(require("./components/Results/ContainerResult"));
|
|
78
78
|
var _ResultBase = _interopRequireDefault(require("./components/Results/ResultBase"));
|
|
79
|
-
function _getRequireWildcardCache(
|
|
80
|
-
function _interopRequireWildcard(
|
|
79
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
80
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -7,6 +7,7 @@ import { ResultContext, SelectedResultIdContext } from '../context';
|
|
|
7
7
|
|
|
8
8
|
// context is an optional prop but the component provides a defaultProp. However, TS still complains
|
|
9
9
|
// when you don't pass it. There doesn't seem to be a better way of declaring optional default props.
|
|
10
|
+
|
|
10
11
|
export class ResultBase extends React.PureComponent {
|
|
11
12
|
constructor(...args) {
|
|
12
13
|
super(...args);
|
|
@@ -5,9 +5,9 @@ import styled from 'styled-components';
|
|
|
5
5
|
import { SearchBox, SearchFieldBaseInner, SearchInner, SearchInput, SearchFieldBaseOuter, SearchInputControlsContainer, SearchInputTypeAhead } from './styled';
|
|
6
6
|
export const controlKeys = ['ArrowUp', 'ArrowDown', 'Enter', 'Tab', 'ArrowRight'];
|
|
7
7
|
const SpinnerParent = styled.div`
|
|
8
|
-
height: 20px;
|
|
9
|
-
margin-left:
|
|
10
|
-
margin-top:
|
|
8
|
+
height: ${"var(--ds-space-250, 20px)"};
|
|
9
|
+
margin-left: ${"var(--ds-space-150, 12px)"};
|
|
10
|
+
margin-top: ${"var(--ds-space-150, 12px)"};
|
|
11
11
|
`;
|
|
12
12
|
export default class Search extends React.PureComponent {
|
|
13
13
|
constructor(...args) {
|
|
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
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); }; }
|
|
11
|
-
function _isNativeReflectConstruct() {
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import keycode from 'keycode';
|
|
14
14
|
import { withAnalytics } from '@atlaskit/analytics';
|
|
@@ -6,7 +6,7 @@ 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
|
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); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import baseItem, { withItemClick, withItemFocus } from '@atlaskit/item';
|
|
12
12
|
import { ResultItemAfter, ResultItemAfterWrapper, ResultItemCaption, ResultItemIcon, ResultItemTextAfter, ResultItemSubText } from './styled';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { ItemGroup } from '@atlaskit/item';
|
|
10
10
|
import { ResultItemGroupTitle, ResultItemGroupHeader } from './styled';
|
|
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
var _excluded = ["name", "isPrivate", "type", "subText"];
|
|
11
11
|
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
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import Avatar from '@atlaskit/avatar';
|
|
15
15
|
import ResultBase from './ResultBase';
|
|
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
var _excluded = ["name", "containerName", "isPrivate", "objectKey", "type"];
|
|
11
11
|
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
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import Avatar from '@atlaskit/avatar';
|
|
15
15
|
import ResultBase from './ResultBase';
|
|
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
var _excluded = ["name", "mentionName", "mentionPrefix", "presenceMessage", "presenceState", "type"];
|
|
11
11
|
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
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import Avatar from '@atlaskit/avatar';
|
|
15
15
|
import ResultBase from './ResultBase';
|
|
@@ -9,7 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
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
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { QS_ANALYTICS_EV_SUBMIT } from '../constants';
|
|
15
15
|
import ResultItem from '../ResultItem/ResultItem';
|
|
@@ -17,6 +17,7 @@ import { ResultContext, SelectedResultIdContext } from '../context';
|
|
|
17
17
|
|
|
18
18
|
// context is an optional prop but the component provides a defaultProp. However, TS still complains
|
|
19
19
|
// when you don't pass it. There doesn't seem to be a better way of declaring optional default props.
|
|
20
|
+
|
|
20
21
|
export var ResultBase = /*#__PURE__*/function (_React$PureComponent) {
|
|
21
22
|
_inherits(ResultBase, _React$PureComponent);
|
|
22
23
|
var _super = _createSuper(ResultBase);
|
|
@@ -8,13 +8,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
9
9
|
var _templateObject;
|
|
10
10
|
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); }; }
|
|
11
|
-
function _isNativeReflectConstruct() {
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import Spinner from '@atlaskit/spinner';
|
|
14
14
|
import styled from 'styled-components';
|
|
15
15
|
import { SearchBox, SearchFieldBaseInner, SearchInner, SearchInput, SearchFieldBaseOuter, SearchInputControlsContainer, SearchInputTypeAhead } from './styled';
|
|
16
16
|
export var controlKeys = ['ArrowUp', 'ArrowDown', 'Enter', 'Tab', 'ArrowRight'];
|
|
17
|
-
var SpinnerParent = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height:
|
|
17
|
+
var SpinnerParent = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", ";\n margin-left: ", ";\n margin-top: ", ";\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)");
|
|
18
18
|
var Search = /*#__PURE__*/function (_React$PureComponent) {
|
|
19
19
|
_inherits(Search, _React$PureComponent);
|
|
20
20
|
var _super = _createSuper(Search);
|
|
@@ -6,7 +6,7 @@ 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
|
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); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { AnalyticsDecorator } from '@atlaskit/analytics';
|
|
12
12
|
import isReactElement from './isReactElement';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ATLASKIT_QUICKSEARCH_NS = "atlaskit.navigation.quick-search";
|
|
2
|
-
export declare const QS_ANALYTICS_EV_CLOSE
|
|
3
|
-
export declare const QS_ANALYTICS_EV_KB_CTRLS_USED
|
|
4
|
-
export declare const QS_ANALYTICS_EV_OPEN
|
|
5
|
-
export declare const QS_ANALYTICS_EV_QUERY_ENTERED
|
|
6
|
-
export declare const QS_ANALYTICS_EV_SUBMIT
|
|
2
|
+
export declare const QS_ANALYTICS_EV_CLOSE = "atlaskit.navigation.quick-search.close";
|
|
3
|
+
export declare const QS_ANALYTICS_EV_KB_CTRLS_USED = "atlaskit.navigation.quick-search.keyboard-controls-used";
|
|
4
|
+
export declare const QS_ANALYTICS_EV_OPEN = "atlaskit.navigation.quick-search.open";
|
|
5
|
+
export declare const QS_ANALYTICS_EV_QUERY_ENTERED = "atlaskit.navigation.quick-search.query-entered";
|
|
6
|
+
export declare const QS_ANALYTICS_EV_SUBMIT = "atlaskit.navigation.quick-search.submit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ATLASKIT_QUICKSEARCH_NS = "atlaskit.navigation.quick-search";
|
|
2
|
-
export declare const QS_ANALYTICS_EV_CLOSE
|
|
3
|
-
export declare const QS_ANALYTICS_EV_KB_CTRLS_USED
|
|
4
|
-
export declare const QS_ANALYTICS_EV_OPEN
|
|
5
|
-
export declare const QS_ANALYTICS_EV_QUERY_ENTERED
|
|
6
|
-
export declare const QS_ANALYTICS_EV_SUBMIT
|
|
2
|
+
export declare const QS_ANALYTICS_EV_CLOSE = "atlaskit.navigation.quick-search.close";
|
|
3
|
+
export declare const QS_ANALYTICS_EV_KB_CTRLS_USED = "atlaskit.navigation.quick-search.keyboard-controls-used";
|
|
4
|
+
export declare const QS_ANALYTICS_EV_OPEN = "atlaskit.navigation.quick-search.open";
|
|
5
|
+
export declare const QS_ANALYTICS_EV_QUERY_ENTERED = "atlaskit.navigation.quick-search.query-entered";
|
|
6
|
+
export declare const QS_ANALYTICS_EV_SUBMIT = "atlaskit.navigation.quick-search.submit";
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/quick-search",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.9",
|
|
4
4
|
"description": "A quick-search component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
9
|
"author": "Atlassian Pty Ltd",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "dist/cjs/index.js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics": "^8.1.0",
|
|
33
|
-
"@atlaskit/avatar": "^21.
|
|
33
|
+
"@atlaskit/avatar": "^21.5.0",
|
|
34
34
|
"@atlaskit/item": "^12.1.0",
|
|
35
35
|
"@atlaskit/spinner": "^16.0.0",
|
|
36
36
|
"@atlaskit/theme": "^12.6.0",
|
|
37
|
-
"@atlaskit/tokens": "^1.
|
|
37
|
+
"@atlaskit/tokens": "^1.42.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"keycode": "^2.1.7"
|
|
40
40
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"prop-types": "^15.5.10",
|
|
49
49
|
"react": "^16.8.0",
|
|
50
50
|
"sinon": "^2.2.0",
|
|
51
|
-
"typescript": "~4.
|
|
51
|
+
"typescript": "~5.4.2",
|
|
52
52
|
"uuid": "^3.1.0"
|
|
53
53
|
},
|
|
54
54
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|