@atlaskit/quick-search 8.0.15 → 8.1.1

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,21 @@
1
1
  # @atlaskit/quick-search
2
2
 
3
+ ## 8.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
8
+
9
+ ## 8.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 8.0.15
4
20
 
5
21
  ### Patch Changes
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.15"
3
+ "version": "8.1.1"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.15"
3
+ "version": "8.1.1"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.15"
3
+ "version": "8.1.1"
4
4
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ResultData, SelectedResultId } from './Results/types';
3
3
  import { ResultContextType } from './context';
4
4
  import { ResultBase } from './Results/ResultBase';
5
- export declare type Props = {
5
+ export type Props = {
6
6
  /** Search results in the form of ResultItemGroups containing Result components */
7
7
  children: React.ReactNode;
8
8
  /** Set search loading state */
@@ -31,7 +31,7 @@ export declare type Props = {
31
31
  /** One string that is used to autocomplete the current search query */
32
32
  autocompleteText?: string;
33
33
  };
34
- export declare type State = {
34
+ export type State = {
35
35
  selectedResultId: SelectedResultId;
36
36
  context: ResultContextType;
37
37
  value?: string;
@@ -107,16 +107,16 @@ export declare class QuickSearch extends React.Component<Props, State> {
107
107
  * Tab / ArrowRight - Accept autocomplete
108
108
  */
109
109
  handleSearchKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
110
- acceptAutocomplete: (event: React.KeyboardEvent<HTMLInputElement>, text?: string | undefined) => void;
110
+ acceptAutocomplete: (event: React.KeyboardEvent<HTMLInputElement>, text?: string) => void;
111
111
  setSearchInputRef: (refs: any) => void;
112
112
  focusSearchInput: () => void;
113
113
  render(): JSX.Element;
114
114
  }
115
- declare const _default: React.ComponentClass<Props, any>;
116
115
  /**
117
116
  * HOCs:
118
117
  * `decorateWithAnalyticsData` - Wrapper that decorates analytics events with additional data.
119
118
  * `withAnalytics` - Injects analytics firing methods that are picked up by
120
119
  * @atlaskit/analytics/AnalyticsListener.
121
120
  */
121
+ declare const _default: React.ComponentClass<Props, any>;
122
122
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  /** Text to appear to the right of the text. It has a lower font-weight. */
4
4
  caption?: string;
5
5
  /** Location to link out to on click. This is passed down to the custom link component if one is provided. */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  /** Text to appear as heading above group. Will be auto-capitalised. */
4
4
  title: React.ReactNode;
5
5
  /** React Elements to be displayed within the group. This should generally be a collection of ResultItems. */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CommonResultProps } from './types';
3
- export declare type Props = CommonResultProps & {
3
+ export type Props = CommonResultProps & {
4
4
  /** Name of the container. Provides the main text to be displayed as the item. */
5
5
  name: React.ReactNode;
6
6
  /** Text to appear to the right of the text. It has a lower font-weight. */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CommonResultProps } from './types';
3
- export declare type Props = CommonResultProps & {
3
+ export type Props = CommonResultProps & {
4
4
  /** Name of the container. Provides the main text to be displayed as the item. */
5
5
  name: React.ReactNode;
6
6
  /** Text to appear to the right of the text. It has a lower font-weight. */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CommonResultProps } from './types';
3
- export declare type Props = CommonResultProps & {
3
+ export type Props = CommonResultProps & {
4
4
  /** Name of the container. Provides the main text to be displayed as the item. */
5
5
  name: React.ReactNode;
6
6
  /** A user's custom handle. Appears to the right of their `name`. It has a lower font-weight. */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { AnalyticsData, CommonResultProps } from './types';
3
3
  import { ResultContextType } from '../context';
4
- export declare type Props = CommonResultProps & {
4
+ export type Props = CommonResultProps & {
5
5
  /** Type of the result. This is passed as a parameter to certain callbacks. */
6
6
  type: string;
7
7
  /** Main text to be displayed as the item. */
@@ -15,7 +15,7 @@ export declare type Props = CommonResultProps & {
15
15
  /** The context provided by QuickSearch. */
16
16
  context?: ResultContextType;
17
17
  };
18
- declare type DefaultProps = {
18
+ type DefaultProps = {
19
19
  context: ResultContextType;
20
20
  };
21
21
  export declare class ResultBase extends React.PureComponent<DefaultProps & Props> {
@@ -1,14 +1,14 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type AnalyticsData = Object;
3
- export declare type ResultId = string | number;
4
- export declare type SelectedResultId = ResultId | null;
5
- export declare type CancelableEvent = KeyboardEvent | MouseEvent | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLElement>;
6
- export declare type ResultData = {
2
+ export type AnalyticsData = Object;
3
+ export type ResultId = string | number;
4
+ export type SelectedResultId = ResultId | null;
5
+ export type CancelableEvent = KeyboardEvent | MouseEvent | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLElement>;
6
+ export type ResultData = {
7
7
  resultId: ResultId;
8
8
  type: string;
9
9
  event: CancelableEvent;
10
10
  };
11
- export declare type CommonResultProps = {
11
+ export type CommonResultProps = {
12
12
  /** Unique ID of the result. This is passed as a parameter to certain callbacks */
13
13
  resultId: string | number;
14
14
  /** Type of the result. This is passed as a parameter to certain callbacks. */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const controlKeys: string[];
3
- declare type Props = {
3
+ type Props = {
4
4
  /** The elements to render as options to search from. */
5
5
  children?: React.ReactNode;
6
6
  /** The elements to render to the right of the search input. */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ComponentType } from 'react';
3
3
  import { ResultData, ResultId, SelectedResultId } from './Results/types';
4
4
  import { ResultBase } from './Results/ResultBase';
5
- export declare type ResultContextType = {
5
+ export type ResultContextType = {
6
6
  /** Register result as keyboard navigation target */
7
7
  registerResult: (result: ResultBase) => void;
8
8
  /** Unregister result as keyboard navigation target */
@@ -1,6 +1,6 @@
1
- declare const _default: (element: any) => boolean;
2
1
  /**
3
2
  * Heuristically check whether an element is a react element or not.
4
3
  * React elements have constructors for their type property but native elements use strings.
5
4
  */
5
+ declare const _default: (element: any) => boolean;
6
6
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.0.15",
3
+ "version": "8.1.1",
4
4
  "description": "A quick-search component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,14 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "atlaskit:src": "src/index.ts",
16
24
  "atlassian": {
17
25
  "team": "Search Platform: Search Experience",
@@ -22,12 +30,12 @@
22
30
  }
23
31
  },
24
32
  "dependencies": {
25
- "@atlaskit/analytics": "^8.0.0",
26
- "@atlaskit/avatar": "^21.2.0",
27
- "@atlaskit/item": "^12.0.0",
28
- "@atlaskit/spinner": "^15.4.0",
29
- "@atlaskit/theme": "^12.4.0",
30
- "@atlaskit/tokens": "^1.2.6",
33
+ "@atlaskit/analytics": "^8.1.0",
34
+ "@atlaskit/avatar": "^21.3.0",
35
+ "@atlaskit/item": "^12.1.0",
36
+ "@atlaskit/spinner": "^15.5.0",
37
+ "@atlaskit/theme": "^12.5.0",
38
+ "@atlaskit/tokens": "^1.4.0",
31
39
  "@babel/runtime": "^7.0.0",
32
40
  "keycode": "^2.1.7"
33
41
  },
@@ -36,17 +44,17 @@
36
44
  "styled-components": "^3.2.6"
37
45
  },
38
46
  "devDependencies": {
39
- "@atlaskit/avatar": "^21.2.0",
47
+ "@atlaskit/avatar": "^21.3.0",
40
48
  "@atlaskit/docs": "*",
41
- "@atlaskit/drawer": "^7.4.0",
42
- "@atlaskit/icon": "^21.11.0",
49
+ "@atlaskit/drawer": "^7.5.0",
50
+ "@atlaskit/icon": "^21.12.0",
43
51
  "@atlaskit/navigation": "^37.0.0",
44
52
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
45
53
  "enzyme": "^3.10.0",
46
54
  "prop-types": "^15.5.10",
47
55
  "react": "^16.8.0",
48
56
  "sinon": "^2.2.0",
49
- "typescript": "4.5.5",
57
+ "typescript": "~4.9.5",
50
58
  "uuid": "^3.1.0"
51
59
  },
52
60
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
package/report.api.md CHANGED
@@ -84,7 +84,7 @@ export type ContainerResultProps = CommonResultProps & {
84
84
  subText?: React_2.ReactNode;
85
85
  };
86
86
 
87
- // @public (undocumented)
87
+ // @public
88
88
  const _default: React_2.ComponentClass<Props_3, any>;
89
89
  export { _default as AkQuickSearch };
90
90
  export { _default as QuickSearch };
@@ -69,7 +69,7 @@ export type ContainerResultProps = CommonResultProps & {
69
69
  subText?: React_2.ReactNode;
70
70
  };
71
71
 
72
- // @public (undocumented)
72
+ // @public
73
73
  const _default: React_2.ComponentClass<Props_3, any>;
74
74
  export { _default as AkQuickSearch }
75
75
  export { _default as QuickSearch }