@atlaskit/quick-search 8.1.5 → 8.1.7

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,17 @@
1
1
  # @atlaskit/quick-search
2
2
 
3
+ ## 8.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#66003](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66003) [`9d097306f2e7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9d097306f2e7) - Migrate @atlaskit/quick-search to use declarative entry points
8
+
9
+ ## 8.1.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [#59897](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59897) [`48e22f03d838`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/48e22f03d838) - Converted spacing values to corresponding space tokens
14
+
3
15
  ## 8.1.5
4
16
 
5
17
  ### Patch Changes
@@ -14,7 +14,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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
- 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: 2px;\n border-bottom: 2px solid ", ";\n"])), _colors.B200);
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);
18
18
  var SearchFieldBaseInner = exports.SearchFieldBaseInner = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: center;\n padding-right: ", "; /* pad search text from FieldBase's isLoading spinner */\n display: flex;\n flex-grow: 1;\n"])), inputRightPadding);
19
19
  var SearchInner = exports.SearchInner = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding-right: ", ";\n"])), "var(--ds-space-300, 24px)");
20
20
  var getPlaceholderStyle = exports.getPlaceholderStyle = function getPlaceholderStyle(style) {
@@ -14,7 +14,7 @@ export const SearchFieldBaseOuter = styled.div`
14
14
  display: flex;
15
15
  flex: 1;
16
16
  margin-right: auto;
17
- padding-bottom: 2px;
17
+ padding-bottom: ${"var(--ds-space-025, 2px)"};
18
18
  border-bottom: 2px solid ${B200};
19
19
  `;
20
20
  export const SearchFieldBaseInner = styled.div`
@@ -4,7 +4,7 @@ import styled, { css } from 'styled-components';
4
4
  import { N0, N200, N500, B200, N50 } from '@atlaskit/theme/colors';
5
5
  var inputRightPadding = "var(--ds-space-200, 16px)";
6
6
  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);
7
- 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);
7
+ export var SearchFieldBaseOuter = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex: 1;\n margin-right: auto;\n padding-bottom: ", ";\n border-bottom: 2px solid ", ";\n"])), "var(--ds-space-025, 2px)", B200);
8
8
  export var SearchFieldBaseInner = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding-right: ", "; /* pad search text from FieldBase's isLoading spinner */\n display: flex;\n flex-grow: 1;\n"])), inputRightPadding);
9
9
  export var SearchInner = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding-right: ", ";\n"])), "var(--ds-space-300, 24px)");
10
10
  export var getPlaceholderStyle = function getPlaceholderStyle(style) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "8.1.5",
3
+ "version": "8.1.7",
4
4
  "description": "A quick-search component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,7 +23,6 @@
23
23
  "atlaskit:src": "src/index.ts",
24
24
  "atlassian": {
25
25
  "team": "Search Platform: Search Experience",
26
- "deprecatedAutoEntryPoints": true,
27
26
  "releaseModel": "continuous",
28
27
  "website": {
29
28
  "name": "Quick Search"
@@ -35,7 +34,7 @@
35
34
  "@atlaskit/item": "^12.1.0",
36
35
  "@atlaskit/spinner": "^16.0.0",
37
36
  "@atlaskit/theme": "^12.6.0",
38
- "@atlaskit/tokens": "^1.28.0",
37
+ "@atlaskit/tokens": "^1.33.0",
39
38
  "@babel/runtime": "^7.0.0",
40
39
  "keycode": "^2.1.7"
41
40
  },
@@ -52,5 +51,8 @@
52
51
  "typescript": "~4.9.5",
53
52
  "uuid": "^3.1.0"
54
53
  },
55
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
56
- }
54
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
55
+ "af:exports": {
56
+ ".": "./src/index.ts"
57
+ }
58
+ }
@@ -1,263 +0,0 @@
1
- ## API Report File for "@atlaskit/quick-search"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { ComponentType } from 'react';
8
- import { default as React_2 } from 'react';
9
- import { ReactNode } from 'react';
10
-
11
- // @public (undocumented)
12
- export class AkNavigationItem extends React_2.PureComponent<Props_2> {
13
- // (undocumented)
14
- static defaultProps: Partial<Props_2>;
15
- // (undocumented)
16
- render(): JSX.Element;
17
- }
18
-
19
- // @public (undocumented)
20
- export class AkSearch extends React_2.PureComponent<Props_4> {
21
- // (undocumented)
22
- static defaultProps: Partial<Props_4>;
23
- // (undocumented)
24
- inputRef?: React_2.Ref<any>;
25
- // (undocumented)
26
- onInputKeyDown: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
27
- // (undocumented)
28
- render(): JSX.Element;
29
- // (undocumented)
30
- renderInputControls: () => JSX.Element | null;
31
- // (undocumented)
32
- setInputRef: (ref: React_2.Ref<any>) => void;
33
- }
34
-
35
- // @public (undocumented)
36
- type AnalyticsData = Object;
37
-
38
- // @public (undocumented)
39
- export type CancelableEvent = KeyboardEvent | MouseEvent | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLElement>;
40
-
41
- // @public (undocumented)
42
- type CommonResultProps = {
43
- resultId: number | string;
44
- type?: string;
45
- avatarUrl?: string;
46
- avatar?: ReactNode;
47
- elemAfter?: ReactNode;
48
- selectedIcon?: ReactNode;
49
- href?: string;
50
- target?: string;
51
- isCompact?: boolean;
52
- onClick?: (resultData: ResultData) => void;
53
- analyticsData?: (() => AnalyticsData) | AnalyticsData;
54
- };
55
-
56
- // @public
57
- export class ContainerResult extends React_2.PureComponent<ContainerResultProps> {
58
- // (undocumented)
59
- getAvatar: () => {};
60
- // (undocumented)
61
- render(): JSX.Element;
62
- }
63
-
64
- // @public (undocumented)
65
- export type ContainerResultProps = CommonResultProps & {
66
- name: React_2.ReactNode;
67
- caption?: string;
68
- isPrivate?: boolean;
69
- subText?: React_2.ReactNode;
70
- };
71
-
72
- // @public
73
- const _default: React_2.ComponentClass<Props_3, any>;
74
- export { _default as AkQuickSearch }
75
- export { _default as QuickSearch }
76
-
77
- // @public (undocumented)
78
- type DefaultProps = {
79
- context: ResultContextType;
80
- };
81
-
82
- // @public
83
- export class ObjectResult extends React_2.PureComponent<ObjectResultProps> {
84
- // (undocumented)
85
- getAvatar: () => {};
86
- // (undocumented)
87
- getSubtext(): null | undefined | {};
88
- // (undocumented)
89
- render(): JSX.Element;
90
- }
91
-
92
- // @public (undocumented)
93
- export type ObjectResultProps = CommonResultProps & {
94
- name: React_2.ReactNode;
95
- caption?: string;
96
- containerName?: React_2.ReactNode;
97
- isPrivate?: boolean;
98
- objectKey?: React_2.ReactNode;
99
- };
100
-
101
- // @public (undocumented)
102
- export class PersonResult extends React_2.PureComponent<PersonResultProps> {
103
- // (undocumented)
104
- static defaultProps: Partial<PersonResultProps>;
105
- // (undocumented)
106
- getAvatar: () => {};
107
- // (undocumented)
108
- getMention: () => string | undefined;
109
- // (undocumented)
110
- render(): JSX.Element;
111
- }
112
-
113
- // @public (undocumented)
114
- export type PersonResultProps = CommonResultProps & {
115
- name: React_2.ReactNode;
116
- mentionName?: string;
117
- mentionPrefix?: string;
118
- presenceMessage?: React_2.ReactNode;
119
- presenceState?: 'busy' | 'offline' | 'online' | null;
120
- };
121
-
122
- // @public (undocumented)
123
- type Props = {
124
- title: React_2.ReactNode;
125
- children?: React_2.ReactNode;
126
- };
127
-
128
- // @public (undocumented)
129
- type Props_2 = {
130
- caption?: string;
131
- href?: string;
132
- target?: string;
133
- icon?: React_2.ReactNode;
134
- isCompact?: boolean;
135
- isSelected?: boolean;
136
- isMouseSelected?: boolean;
137
- onClick?(e: MouseEvent): void;
138
- onMouseEnter?: (e: MouseEvent) => void;
139
- onMouseLeave?: (e: MouseEvent) => void;
140
- subText?: React_2.ReactNode;
141
- text?: React_2.ReactNode;
142
- textAfter?: React_2.ReactNode;
143
- selectedIcon?: React_2.ReactNode;
144
- linkComponent?: React_2.ComponentType;
145
- };
146
-
147
- // @public (undocumented)
148
- type Props_3 = {
149
- children: React_2.ReactNode;
150
- isLoading?: boolean;
151
- onSearchBlur?: (event: React_2.FocusEvent<HTMLInputElement>) => void;
152
- onSearchInput?: (event: React_2.FormEvent<HTMLInputElement>, isAutocompleted?: boolean) => void;
153
- onSearchKeyDown?: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
154
- onSearchSubmit?: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
155
- placeholder?: string;
156
- value?: string;
157
- selectedResultId?: SelectedResultId;
158
- onSelectedResultIdChanged?: (id: SelectedResultId) => void;
159
- firePrivateAnalyticsEvent?: (eventName: string, eventData: Object) => void;
160
- linkComponent?: React_2.ComponentType<any>;
161
- inputControls?: React_2.ReactNode;
162
- autocompleteText?: string;
163
- };
164
-
165
- // @public (undocumented)
166
- type Props_4 = {
167
- children?: React_2.ReactNode;
168
- inputControls?: React_2.ReactNode;
169
- isLoading?: boolean;
170
- onBlur?: (event: React_2.FocusEvent<HTMLInputElement>) => void;
171
- onInput?: (event: React_2.FormEvent<HTMLInputElement>) => void;
172
- onKeyDown?: (event: React_2.KeyboardEvent<HTMLInputElement>) => void;
173
- placeholder?: string;
174
- value?: string;
175
- autocompleteText?: string;
176
- };
177
-
178
- declare namespace quickSearchResultTypes {
179
- export {
180
- ContainerResult,
181
- ObjectResult,
182
- PersonResult,
183
- ResultBase
184
- }
185
- }
186
- export { quickSearchResultTypes }
187
-
188
- // @public (undocumented)
189
- export const ResultBase: (props: ResultBaseProps) => JSX.Element;
190
-
191
- // @public (undocumented)
192
- class ResultBase_2 extends React_2.PureComponent<DefaultProps & ResultBaseProps> {
193
- // (undocumented)
194
- componentDidMount(): void;
195
- // (undocumented)
196
- componentDidUpdate(): void;
197
- // (undocumented)
198
- componentWillUnmount(): void;
199
- // (undocumented)
200
- static defaultProps: Partial<ResultBaseProps>;
201
- // (undocumented)
202
- getAnalyticsData(): AnalyticsData;
203
- // (undocumented)
204
- handleClick: (e: MouseEvent) => void;
205
- // (undocumented)
206
- handleMouseEnter: (event: MouseEvent) => void;
207
- // (undocumented)
208
- handleMouseLeave: () => void;
209
- // (undocumented)
210
- registerResult(): void;
211
- // (undocumented)
212
- render(): JSX.Element;
213
- // (undocumented)
214
- state: {
215
- isMouseSelected: boolean;
216
- };
217
- }
218
-
219
- // @public (undocumented)
220
- export type ResultBaseProps = CommonResultProps & {
221
- type: string;
222
- text: React_2.ReactNode;
223
- subText?: React_2.ReactNode;
224
- caption?: string;
225
- icon?: React_2.ReactNode;
226
- context?: ResultContextType;
227
- };
228
-
229
- // @public (undocumented)
230
- type ResultContextType = {
231
- registerResult: (result: ResultBase_2) => void;
232
- unregisterResult: (result: ResultBase_2) => void;
233
- onMouseEnter: (resultData: ResultData) => void;
234
- onMouseLeave: () => void;
235
- sendAnalytics?: (eventName: string, eventData: Object) => void;
236
- getIndex: (resultId: ResultId) => null | number;
237
- linkComponent?: ComponentType;
238
- };
239
-
240
- // @public (undocumented)
241
- export type ResultData = {
242
- resultId: ResultId;
243
- type: string;
244
- event: CancelableEvent;
245
- };
246
-
247
- // @public (undocumented)
248
- type ResultId = number | string;
249
-
250
- // @public (undocumented)
251
- class ResultItemGroup extends React_2.Component<Props> {
252
- // (undocumented)
253
- render(): JSX.Element;
254
- }
255
- export { ResultItemGroup as AkNavigationItemGroup }
256
- export { ResultItemGroup }
257
-
258
- // @public (undocumented)
259
- type SelectedResultId = ResultId | null;
260
-
261
- // (No @packageDocumentation comment for this package)
262
-
263
- ```