@atlaskit/help 7.1.27 → 7.2.0
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 +10 -0
- package/dist/cjs/components/Article/ArticleLoadingFail/styled.js +1 -0
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +0 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -0
- package/dist/cjs/components/Article/WhatsNewArticle/styled.js +1 -0
- package/dist/cjs/components/Article/styled.js +1 -0
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -0
- package/dist/cjs/components/ArticlesList/styled.js +1 -0
- package/dist/cjs/components/HelpContentButton/styled.js +1 -0
- package/dist/cjs/components/RelatedArticles/index.js +28 -30
- package/dist/cjs/components/RelatedArticles/styled.js +1 -0
- package/dist/cjs/components/Search/SearchInput/styled.js +1 -0
- package/dist/cjs/components/Search/SearchResults/styled.js +1 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +1 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +1 -0
- package/dist/cjs/components/constants.js +8 -8
- package/dist/cjs/components/contexts/navigationContext.js +122 -130
- package/dist/cjs/components/contexts/searchContext.js +28 -30
- package/dist/cjs/components/contexts/whatsNewArticleContext.js +51 -53
- package/dist/cjs/components/styled.js +1 -0
- package/dist/cjs/model/Article.js +4 -4
- package/dist/cjs/model/Help.js +4 -4
- package/dist/cjs/model/Requests.js +4 -4
- package/dist/cjs/model/WhatsNew.js +4 -4
- package/dist/cjs/util/styled.js +1 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/constants.js +8 -8
- package/dist/es2019/model/Article.js +3 -3
- package/dist/es2019/model/Help.js +3 -3
- package/dist/es2019/model/Requests.js +3 -3
- package/dist/es2019/model/WhatsNew.js +3 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/RelatedArticles/index.js +28 -30
- package/dist/esm/components/constants.js +8 -8
- package/dist/esm/components/contexts/navigationContext.js +122 -130
- package/dist/esm/components/contexts/searchContext.js +28 -30
- package/dist/esm/components/contexts/whatsNewArticleContext.js +51 -53
- package/dist/esm/model/Article.js +3 -3
- package/dist/esm/model/Help.js +3 -3
- package/dist/esm/model/Requests.js +3 -3
- package/dist/esm/model/WhatsNew.js +3 -3
- package/dist/esm/version.json +1 -1
- package/package.json +21 -21
- package/tmp/api-report-tmp.d.ts +0 -300
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/help"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import type { AdfDoc } from '@atlaskit/help-article';
|
|
10
|
-
import { BODY_FORMAT_TYPES } from '@atlaskit/help-article';
|
|
11
|
-
import { ClassAttributes } from 'react';
|
|
12
|
-
import { DetailedHTMLProps } from 'react';
|
|
13
|
-
import { HTMLAttributes } from 'react';
|
|
14
|
-
import { NotificationLogProvider } from '@atlaskit/notification-log-client';
|
|
15
|
-
import { default as React_2 } from 'react';
|
|
16
|
-
import { StyledComponent } from '@emotion/styled-base';
|
|
17
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
18
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
19
|
-
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
20
|
-
import { WithIntlProps } from 'react-intl-next';
|
|
21
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
22
|
-
|
|
23
|
-
// @public (undocumented)
|
|
24
|
-
export interface Article extends ArticleItem {
|
|
25
|
-
// (undocumented)
|
|
26
|
-
body: AdfDoc | string;
|
|
27
|
-
// (undocumented)
|
|
28
|
-
bodyFormat?: BODY_FORMAT_TYPES;
|
|
29
|
-
// (undocumented)
|
|
30
|
-
relatedArticles?: ArticleItem[];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// @public (undocumented)
|
|
34
|
-
export enum ARTICLE_ITEM_TYPES {
|
|
35
|
-
// (undocumented)
|
|
36
|
-
topicInProduct = "topicInProduct"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// @public (undocumented)
|
|
40
|
-
export enum ARTICLE_TYPE {
|
|
41
|
-
// (undocumented)
|
|
42
|
-
HELP_ARTICLE = "HELP_ARTICLE",
|
|
43
|
-
// (undocumented)
|
|
44
|
-
WHATS_NEW = "WHATS_NEW"
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// @public (undocumented)
|
|
48
|
-
export interface ArticleFeedback {
|
|
49
|
-
// (undocumented)
|
|
50
|
-
contactMe: boolean;
|
|
51
|
-
// (undocumented)
|
|
52
|
-
feedbackReason: string;
|
|
53
|
-
// (undocumented)
|
|
54
|
-
feedbackReasonText: string;
|
|
55
|
-
// (undocumented)
|
|
56
|
-
wasHelpful: boolean;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
export interface articleId {
|
|
61
|
-
// (undocumented)
|
|
62
|
-
id: string;
|
|
63
|
-
// (undocumented)
|
|
64
|
-
type: ARTICLE_TYPE;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// @public (undocumented)
|
|
68
|
-
export interface ArticleItem {
|
|
69
|
-
// (undocumented)
|
|
70
|
-
description?: string;
|
|
71
|
-
// (undocumented)
|
|
72
|
-
href?: string;
|
|
73
|
-
// (undocumented)
|
|
74
|
-
id: string;
|
|
75
|
-
// (undocumented)
|
|
76
|
-
lastPublished: string;
|
|
77
|
-
// (undocumented)
|
|
78
|
-
productName?: string;
|
|
79
|
-
// (undocumented)
|
|
80
|
-
routes?: {
|
|
81
|
-
routeName: string;
|
|
82
|
-
routeGroup: string;
|
|
83
|
-
}[];
|
|
84
|
-
// (undocumented)
|
|
85
|
-
title: string;
|
|
86
|
-
// (undocumented)
|
|
87
|
-
topicId?: string;
|
|
88
|
-
// (undocumented)
|
|
89
|
-
type: ARTICLE_ITEM_TYPES;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// @public (undocumented)
|
|
93
|
-
export const ArticlesListItem: React_2.FC<WithIntlProps<Props_3 & Partial<ArticleItem> & WrappedComponentProps<"intl">>> & {
|
|
94
|
-
WrappedComponent: React_2.ComponentType<Props_3 & Partial<ArticleItem> & WrappedComponentProps<"intl">>;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// @public (undocumented)
|
|
98
|
-
const _default: React_2.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "key" | keyof Help> & React_2.RefAttributes<any>>;
|
|
99
|
-
export default _default;
|
|
100
|
-
|
|
101
|
-
// @public (undocumented)
|
|
102
|
-
export const DividerLine: StyledComponent<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof HTMLAttributes<HTMLDivElement>>, object>;
|
|
103
|
-
|
|
104
|
-
// @public (undocumented)
|
|
105
|
-
export interface Help {
|
|
106
|
-
// (undocumented)
|
|
107
|
-
children?: React.ReactNode;
|
|
108
|
-
// (undocumented)
|
|
109
|
-
footer?: React.ReactNode;
|
|
110
|
-
// (undocumented)
|
|
111
|
-
header?: {
|
|
112
|
-
onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
113
|
-
onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
114
|
-
};
|
|
115
|
-
// (undocumented)
|
|
116
|
-
helpArticle?: {
|
|
117
|
-
onGetHelpArticle?(articleId: articleId): Promise<Article>;
|
|
118
|
-
onHelpArticleLoadingFailTryAgainButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleId: articleId): void;
|
|
119
|
-
onWasHelpfulSubmit?(analyticsEvent: UIAnalyticsEvent, articleFeedback: ArticleFeedback, articleData: ArticleItem): Promise<boolean>;
|
|
120
|
-
onWasHelpfulYesButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, ArticleItem: ArticleItem): void;
|
|
121
|
-
onWasHelpfulNoButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, ArticleItem: ArticleItem): void;
|
|
122
|
-
};
|
|
123
|
-
// (undocumented)
|
|
124
|
-
home?: {
|
|
125
|
-
homeOptions?: Props_2[];
|
|
126
|
-
};
|
|
127
|
-
// (undocumented)
|
|
128
|
-
navigation?: {
|
|
129
|
-
navigationData?: {
|
|
130
|
-
articleId: articleId;
|
|
131
|
-
history: HistoryItem[];
|
|
132
|
-
};
|
|
133
|
-
setNavigationData?(navigationData: {
|
|
134
|
-
articleId?: articleId;
|
|
135
|
-
history?: HistoryItem[];
|
|
136
|
-
}): void;
|
|
137
|
-
};
|
|
138
|
-
// (undocumented)
|
|
139
|
-
relatedArticles?: {
|
|
140
|
-
routeGroup?: string;
|
|
141
|
-
routeName?: string;
|
|
142
|
-
onGetRelatedArticles?(routeGroup?: string, routeName?: string): Promise<ArticleItem[]>;
|
|
143
|
-
onRelatedArticlesShowMoreClick?(event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent, isCollapsed: boolean): void;
|
|
144
|
-
onRelatedArticlesListItemClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem) => void;
|
|
145
|
-
};
|
|
146
|
-
// (undocumented)
|
|
147
|
-
search?: {
|
|
148
|
-
onSearch?(value: string): Promise<ArticleItem[]>;
|
|
149
|
-
onSearchInputChanged?(event: React.KeyboardEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent, value: string): void;
|
|
150
|
-
onSearchInputCleared?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
151
|
-
onSearchResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
152
|
-
onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
153
|
-
searchExternalUrl?: string;
|
|
154
|
-
};
|
|
155
|
-
// (undocumented)
|
|
156
|
-
whatsNew?: {
|
|
157
|
-
whatsNewGetNotificationProvider?: Promise<NotificationLogProvider>;
|
|
158
|
-
productName?: string;
|
|
159
|
-
onWhatsNewButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
160
|
-
onSearchWhatsNewArticles?(filter?: '' | WHATS_NEW_ITEM_TYPES, numberOfItems?: number, page?: string): Promise<whatsNewSearchResult>;
|
|
161
|
-
onWhatsNewResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, whatsNewArticleData: WhatsNewArticleItem): void;
|
|
162
|
-
onSearchWhatsNewShowMoreClick?(event: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent): void;
|
|
163
|
-
onGetWhatsNewArticle?(id: articleId): Promise<WhatsNewArticle>;
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
// @public (undocumented)
|
|
168
|
-
export const HelpContentButton: ({ id, href, notificationMax, notificationLogProvider, text, icon, onClick, tooltipText, }: Props_2) => JSX.Element;
|
|
169
|
-
|
|
170
|
-
// @public (undocumented)
|
|
171
|
-
export interface HistoryItem {
|
|
172
|
-
// (undocumented)
|
|
173
|
-
article?: Article | WhatsNewArticle;
|
|
174
|
-
// (undocumented)
|
|
175
|
-
id: string;
|
|
176
|
-
// (undocumented)
|
|
177
|
-
state: REQUEST_STATE;
|
|
178
|
-
// (undocumented)
|
|
179
|
-
type: ARTICLE_TYPE;
|
|
180
|
-
// (undocumented)
|
|
181
|
-
uid: number;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// @public (undocumented)
|
|
185
|
-
type Props = Help & WithAnalyticsEventsProps;
|
|
186
|
-
|
|
187
|
-
// @public (undocumented)
|
|
188
|
-
type Props_2 = {
|
|
189
|
-
id?: string;
|
|
190
|
-
href?: string;
|
|
191
|
-
notificationMax?: number;
|
|
192
|
-
notificationLogProvider?: Promise<NotificationLogProvider>;
|
|
193
|
-
text: string;
|
|
194
|
-
icon?: React_2.ReactChild;
|
|
195
|
-
tooltipText?: string;
|
|
196
|
-
onClick?: (id: string, analytics: UIAnalyticsEvent, event: React_2.MouseEvent<HTMLElement>) => void;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
// @public (undocumented)
|
|
200
|
-
interface Props_3 {
|
|
201
|
-
// (undocumented)
|
|
202
|
-
onClick?: (event: React_2.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
203
|
-
// (undocumented)
|
|
204
|
-
styles?: {};
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// @public (undocumented)
|
|
208
|
-
interface Props_4 {
|
|
209
|
-
// (undocumented)
|
|
210
|
-
onGetRelatedArticles?(routeGroup?: string, routeName?: string): Promise<ArticleItem[]>;
|
|
211
|
-
// (undocumented)
|
|
212
|
-
onRelatedArticlesListItemClick?: (event: React_2.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem) => void;
|
|
213
|
-
// (undocumented)
|
|
214
|
-
onRelatedArticlesShowMoreClick?: (event: React_2.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent, isCollapsed: boolean) => void;
|
|
215
|
-
// (undocumented)
|
|
216
|
-
routeGroup?: string;
|
|
217
|
-
// (undocumented)
|
|
218
|
-
routeName?: string;
|
|
219
|
-
// (undocumented)
|
|
220
|
-
style?: 'primary' | 'secondary';
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// @public (undocumented)
|
|
224
|
-
export const RelatedArticles: React_2.ForwardRefExoticComponent<Omit<Props_4 & WrappedComponentProps<"intl">, "intl"> & {
|
|
225
|
-
forwardedRef?: React_2.Ref<any> | undefined;
|
|
226
|
-
} & {
|
|
227
|
-
children?: React_2.ReactNode;
|
|
228
|
-
} & WithContextProps & React_2.RefAttributes<any>>;
|
|
229
|
-
|
|
230
|
-
// @public (undocumented)
|
|
231
|
-
enum REQUEST_STATE {
|
|
232
|
-
// (undocumented)
|
|
233
|
-
done = "done",
|
|
234
|
-
// (undocumented)
|
|
235
|
-
error = "error",
|
|
236
|
-
// (undocumented)
|
|
237
|
-
load = "load",
|
|
238
|
-
// (undocumented)
|
|
239
|
-
loading = "loading",
|
|
240
|
-
// (undocumented)
|
|
241
|
-
reload = "reload"
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// @public (undocumented)
|
|
245
|
-
export enum WHATS_NEW_ITEM_TYPES {
|
|
246
|
-
// (undocumented)
|
|
247
|
-
EXPERIMENT = "Experiment",
|
|
248
|
-
// (undocumented)
|
|
249
|
-
FIX = "Fix",
|
|
250
|
-
// (undocumented)
|
|
251
|
-
IMPROVEMENT = "Improvement",
|
|
252
|
-
// (undocumented)
|
|
253
|
-
NEW_FEATURE = "Announcement",
|
|
254
|
-
// (undocumented)
|
|
255
|
-
REMOVED = "Removed"
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// @public (undocumented)
|
|
259
|
-
export interface WhatsNewArticle extends WhatsNewArticleItem {
|
|
260
|
-
// (undocumented)
|
|
261
|
-
bodyFormat?: BODY_FORMAT_TYPES;
|
|
262
|
-
// (undocumented)
|
|
263
|
-
description: AdfDoc | string;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// @public (undocumented)
|
|
267
|
-
export interface WhatsNewArticleItem {
|
|
268
|
-
// (undocumented)
|
|
269
|
-
changeTargetSchedule?: string;
|
|
270
|
-
// (undocumented)
|
|
271
|
-
communityUrl?: string;
|
|
272
|
-
// (undocumented)
|
|
273
|
-
featureRolloutDate?: string;
|
|
274
|
-
// (undocumented)
|
|
275
|
-
href?: string;
|
|
276
|
-
// (undocumented)
|
|
277
|
-
id: string;
|
|
278
|
-
// (undocumented)
|
|
279
|
-
relatedExternalLinks?: string;
|
|
280
|
-
// (undocumented)
|
|
281
|
-
status?: string;
|
|
282
|
-
// (undocumented)
|
|
283
|
-
title?: string;
|
|
284
|
-
// (undocumented)
|
|
285
|
-
type?: WHATS_NEW_ITEM_TYPES;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// @public (undocumented)
|
|
289
|
-
interface whatsNewSearchResult {
|
|
290
|
-
// (undocumented)
|
|
291
|
-
articles: WhatsNewArticleItem[];
|
|
292
|
-
// (undocumented)
|
|
293
|
-
hasNextPage: boolean;
|
|
294
|
-
// (undocumented)
|
|
295
|
-
nextPage: string;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
// (No @packageDocumentation comment for this package)
|
|
299
|
-
|
|
300
|
-
```
|