@atlaskit/help 7.1.15 → 7.1.16

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,11 @@
1
1
  # @atlaskit/help
2
2
 
3
+ ## 7.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0c19f354255`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c19f354255) - Consolidate In Product Help & Self-Help Experiences ownership
8
+
3
9
  ## 7.1.15
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.1.15",
3
+ "version": "7.1.16",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.1.15",
3
+ "version": "7.1.16",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.1.15",
3
+ "version": "7.1.16",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.1.15",
3
+ "version": "7.1.16",
4
4
  "description": "A cross-product help component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -15,14 +15,15 @@
15
15
  "typesVersions": {
16
16
  ">=4.0 <4.5": {
17
17
  "*": [
18
- "dist/types-ts4.0/*"
18
+ "dist/types-ts4.0/*",
19
+ "dist/types-ts4.0/index.d.ts"
19
20
  ]
20
21
  }
21
22
  },
22
23
  "sideEffects": false,
23
24
  "atlaskit:src": "src/index.ts",
24
25
  "atlassian": {
25
- "team": "In Product Help",
26
+ "team": "Self-Help Experiences",
26
27
  "deprecatedAutoEntryPoints": true,
27
28
  "releaseModel": "continuous",
28
29
  "website": {
@@ -35,23 +36,23 @@
35
36
  "dependencies": {
36
37
  "@atlaskit/analytics": "^8.0.0",
37
38
  "@atlaskit/analytics-next": "^8.0.0",
38
- "@atlaskit/button": "^16.3.0",
39
- "@atlaskit/checkbox": "^12.3.0",
40
- "@atlaskit/form": "^8.5.0",
39
+ "@atlaskit/button": "^16.4.0",
40
+ "@atlaskit/checkbox": "^12.4.0",
41
+ "@atlaskit/form": "^8.7.0",
41
42
  "@atlaskit/help-article": "^4.0.0",
42
43
  "@atlaskit/help-layout": "^4.1.0",
43
- "@atlaskit/icon": "^21.10.0",
44
+ "@atlaskit/icon": "^21.11.0",
44
45
  "@atlaskit/notification-indicator": "^9.0.0",
45
46
  "@atlaskit/notification-log-client": "^6.0.0",
46
47
  "@atlaskit/radio": "^5.4.0",
47
- "@atlaskit/section-message": "^6.2.0",
48
+ "@atlaskit/section-message": "^6.3.0",
48
49
  "@atlaskit/select": "^15.7.0",
49
- "@atlaskit/spinner": "^15.1.0",
50
- "@atlaskit/textarea": "^4.3.0",
51
- "@atlaskit/textfield": "^5.2.0",
50
+ "@atlaskit/spinner": "^15.2.0",
51
+ "@atlaskit/textarea": "^4.5.0",
52
+ "@atlaskit/textfield": "^5.3.0",
52
53
  "@atlaskit/theme": "^12.2.0",
53
54
  "@atlaskit/tokens": "^0.10.0",
54
- "@atlaskit/tooltip": "^17.5.0",
55
+ "@atlaskit/tooltip": "^17.6.0",
55
56
  "@babel/runtime": "^7.0.0",
56
57
  "@emotion/core": "^10.0.9",
57
58
  "@emotion/styled": "^10.0.7",
package/report.api.md CHANGED
@@ -1,12 +1,17 @@
1
+ <!-- API Report Version: 2.3 -->
2
+
1
3
  ## API Report File for "@atlaskit/help"
2
4
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
4
9
 
5
- <!--
6
- Generated API Report version: 2.0
7
- -->
10
+ - [Main Entry Types](#main-entry-types)
8
11
 
9
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
10
15
 
11
16
  ```ts
12
17
  /// <reference types="react" />
@@ -28,7 +33,7 @@ import { WrappedComponentProps } from 'react-intl-next';
28
33
  // @public (undocumented)
29
34
  export interface Article extends ArticleItem {
30
35
  // (undocumented)
31
- body: string | AdfDoc;
36
+ body: AdfDoc | string;
32
37
  // (undocumented)
33
38
  bodyFormat?: BODY_FORMAT_TYPES;
34
39
  // (undocumented)
@@ -109,7 +114,7 @@ const _default: React_2.ForwardRefExoticComponent<
109
114
  Omit<Props, keyof WithAnalyticsEventsProps> &
110
115
  React_2.RefAttributes<any> &
111
116
  WithContextProps,
112
- 'key' | 'analyticsContext' | keyof Help
117
+ 'analyticsContext' | 'key' | keyof Help
113
118
  > &
114
119
  React_2.RefAttributes<any>
115
120
  >;
@@ -232,7 +237,7 @@ export interface Help {
232
237
  analyticsEvent: UIAnalyticsEvent,
233
238
  ): void;
234
239
  onSearchWhatsNewArticles?(
235
- filter?: WHATS_NEW_ITEM_TYPES | '',
240
+ filter?: '' | WHATS_NEW_ITEM_TYPES,
236
241
  numberOfItems?: number,
237
242
  page?: string,
238
243
  ): Promise<whatsNewSearchResult>;
@@ -375,7 +380,7 @@ export interface WhatsNewArticle extends WhatsNewArticleItem {
375
380
  // (undocumented)
376
381
  bodyFormat?: BODY_FORMAT_TYPES;
377
382
  // (undocumented)
378
- description: string | AdfDoc;
383
+ description: AdfDoc | string;
379
384
  }
380
385
 
381
386
  // @public (undocumented)
@@ -412,3 +417,5 @@ interface whatsNewSearchResult {
412
417
 
413
418
  // (No @packageDocumentation comment for this package)
414
419
  ```
420
+
421
+ <!--SECTION END: Main Entry Types-->
@@ -0,0 +1,300 @@
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
+ ```