@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
|
@@ -256,67 +256,65 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
256
256
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(historyItem) {
|
|
257
257
|
var article;
|
|
258
258
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
259
|
-
while (1) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
259
|
+
while (1) switch (_context.prev = _context.next) {
|
|
260
|
+
case 0:
|
|
261
|
+
_context.prev = 0;
|
|
262
|
+
_context.t0 = historyItem.type;
|
|
263
|
+
_context.next = _context.t0 === ARTICLE_TYPE.HELP_ARTICLE ? 4 : _context.t0 === ARTICLE_TYPE.WHATS_NEW ? 10 : 18;
|
|
264
|
+
break;
|
|
265
|
+
case 4:
|
|
266
|
+
if (onGetHelpArticle) {
|
|
267
|
+
_context.next = 6;
|
|
265
268
|
break;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}));
|
|
316
|
-
case 26:
|
|
317
|
-
case "end":
|
|
318
|
-
return _context.stop();
|
|
319
|
-
}
|
|
269
|
+
}
|
|
270
|
+
throw new Error('onGetHelpArticle prop not defined');
|
|
271
|
+
case 6:
|
|
272
|
+
_context.next = 8;
|
|
273
|
+
return onGetHelpArticle({
|
|
274
|
+
id: historyItem.id,
|
|
275
|
+
type: historyItem.type
|
|
276
|
+
});
|
|
277
|
+
case 8:
|
|
278
|
+
article = _context.sent;
|
|
279
|
+
return _context.abrupt("break", 20);
|
|
280
|
+
case 10:
|
|
281
|
+
if (onGetWhatsNewArticle) {
|
|
282
|
+
_context.next = 12;
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
throw new Error('onGetWhatsNewArticle prop not defined');
|
|
286
|
+
case 12:
|
|
287
|
+
if (!(historyItem.id === '')) {
|
|
288
|
+
_context.next = 14;
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
return _context.abrupt("break", 20);
|
|
292
|
+
case 14:
|
|
293
|
+
_context.next = 16;
|
|
294
|
+
return onGetWhatsNewArticle({
|
|
295
|
+
id: historyItem.id,
|
|
296
|
+
type: historyItem.type
|
|
297
|
+
});
|
|
298
|
+
case 16:
|
|
299
|
+
article = _context.sent;
|
|
300
|
+
return _context.abrupt("break", 20);
|
|
301
|
+
case 18:
|
|
302
|
+
throw new Error('onGetHelpArticle prop not defined');
|
|
303
|
+
case 20:
|
|
304
|
+
return _context.abrupt("return", _objectSpread(_objectSpread(_objectSpread({}, historyItem), article && {
|
|
305
|
+
article: article
|
|
306
|
+
}), {}, {
|
|
307
|
+
state: REQUEST_STATE.done
|
|
308
|
+
}));
|
|
309
|
+
case 23:
|
|
310
|
+
_context.prev = 23;
|
|
311
|
+
_context.t1 = _context["catch"](0);
|
|
312
|
+
return _context.abrupt("return", _objectSpread(_objectSpread({}, historyItem), {}, {
|
|
313
|
+
state: REQUEST_STATE.error
|
|
314
|
+
}));
|
|
315
|
+
case 26:
|
|
316
|
+
case "end":
|
|
317
|
+
return _context.stop();
|
|
320
318
|
}
|
|
321
319
|
}, _callee, null, [[0, 23]]);
|
|
322
320
|
}));
|
|
@@ -328,23 +326,21 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
328
326
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(historyItem) {
|
|
329
327
|
var historyItemToReload;
|
|
330
328
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
331
|
-
while (1) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return _context2.stop();
|
|
347
|
-
}
|
|
329
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
330
|
+
case 0:
|
|
331
|
+
historyItemToReload = _objectSpread({}, historyItem);
|
|
332
|
+
if (historyItem.type === ARTICLE_TYPE.HELP_ARTICLE || historyItem.type === ARTICLE_TYPE.WHATS_NEW) {
|
|
333
|
+
historyItemToReload.state = REQUEST_STATE.loading;
|
|
334
|
+
} else {
|
|
335
|
+
historyItemToReload.state = REQUEST_STATE.error;
|
|
336
|
+
}
|
|
337
|
+
dispatchNavigationAction({
|
|
338
|
+
type: 'updateHistoryItem',
|
|
339
|
+
payload: historyItemToReload
|
|
340
|
+
});
|
|
341
|
+
case 3:
|
|
342
|
+
case "end":
|
|
343
|
+
return _context2.stop();
|
|
348
344
|
}
|
|
349
345
|
}, _callee2);
|
|
350
346
|
}));
|
|
@@ -354,45 +350,43 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
354
350
|
}(), []);
|
|
355
351
|
var navigateBack = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
356
352
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
357
|
-
while (1) {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
});
|
|
390
|
-
}
|
|
353
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
354
|
+
case 0:
|
|
355
|
+
if (!(currentView === VIEW.SEARCH && onSearch)) {
|
|
356
|
+
_context3.next = 8;
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
if (!(searchValue !== '')) {
|
|
360
|
+
_context3.next = 6;
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
onSearch('');
|
|
364
|
+
return _context3.abrupt("return");
|
|
365
|
+
case 6:
|
|
366
|
+
dispatchNavigationAction({
|
|
367
|
+
type: 'updateView',
|
|
368
|
+
payload: currentArticleId.type
|
|
369
|
+
});
|
|
370
|
+
return _context3.abrupt("return");
|
|
371
|
+
case 8:
|
|
372
|
+
// if the history is not empty and ...
|
|
373
|
+
if (currentHistory.length > 0) {
|
|
374
|
+
// the history has more than one article, navigate back through the history
|
|
375
|
+
if (currentHistory.length > 1) {
|
|
376
|
+
// Remove last element
|
|
377
|
+
dispatchNavigationAction({
|
|
378
|
+
type: 'removeLastHistoryItem'
|
|
379
|
+
});
|
|
380
|
+
} else if (currentHistory.length === 1) {
|
|
381
|
+
// but if the history only has one item, clear the history
|
|
382
|
+
dispatchNavigationAction({
|
|
383
|
+
type: 'removeAllHistoryItems'
|
|
384
|
+
});
|
|
391
385
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
386
|
+
}
|
|
387
|
+
case 9:
|
|
388
|
+
case "end":
|
|
389
|
+
return _context3.stop();
|
|
396
390
|
}
|
|
397
391
|
}, _callee3);
|
|
398
392
|
})), [currentView, onSearch, currentHistory.length, searchValue, currentArticleId.type]);
|
|
@@ -475,21 +469,19 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
475
469
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(historyItem) {
|
|
476
470
|
var historyItemUpdate;
|
|
477
471
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
478
|
-
while (1) {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
return _context4.stop();
|
|
492
|
-
}
|
|
472
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
473
|
+
case 0:
|
|
474
|
+
_context4.next = 2;
|
|
475
|
+
return fetchArticleData(historyItem);
|
|
476
|
+
case 2:
|
|
477
|
+
historyItemUpdate = _context4.sent;
|
|
478
|
+
dispatchNavigationAction({
|
|
479
|
+
type: 'updateHistoryItem',
|
|
480
|
+
payload: historyItemUpdate
|
|
481
|
+
});
|
|
482
|
+
case 4:
|
|
483
|
+
case "end":
|
|
484
|
+
return _context4.stop();
|
|
493
485
|
}
|
|
494
486
|
}, _callee4);
|
|
495
487
|
}));
|
|
@@ -41,37 +41,35 @@ export var SearchContextProvider = function SearchContextProvider(_ref) {
|
|
|
41
41
|
results,
|
|
42
42
|
_args = arguments;
|
|
43
43
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
44
|
-
while (1) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
_context.next = 16;
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
_context.prev = 2;
|
|
53
|
-
_context.next = 5;
|
|
54
|
-
return onSearch(value);
|
|
55
|
-
case 5:
|
|
56
|
-
results = _context.sent;
|
|
57
|
-
setSearchResult(results);
|
|
58
|
-
setSearchState(REQUEST_STATE.done);
|
|
59
|
-
_context.next = 14;
|
|
44
|
+
while (1) switch (_context.prev = _context.next) {
|
|
45
|
+
case 0:
|
|
46
|
+
value = _args.length > 0 && _args[0] !== undefined ? _args[0] : '';
|
|
47
|
+
if (!onSearch) {
|
|
48
|
+
_context.next = 16;
|
|
60
49
|
break;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
50
|
+
}
|
|
51
|
+
_context.prev = 2;
|
|
52
|
+
_context.next = 5;
|
|
53
|
+
return onSearch(value);
|
|
54
|
+
case 5:
|
|
55
|
+
results = _context.sent;
|
|
56
|
+
setSearchResult(results);
|
|
57
|
+
setSearchState(REQUEST_STATE.done);
|
|
58
|
+
_context.next = 14;
|
|
59
|
+
break;
|
|
60
|
+
case 10:
|
|
61
|
+
_context.prev = 10;
|
|
62
|
+
_context.t0 = _context["catch"](2);
|
|
63
|
+
setSearchResult([]);
|
|
64
|
+
setSearchState(REQUEST_STATE.error);
|
|
65
|
+
case 14:
|
|
66
|
+
_context.next = 17;
|
|
67
|
+
break;
|
|
68
|
+
case 16:
|
|
69
|
+
setSearchState(REQUEST_STATE.error);
|
|
70
|
+
case 17:
|
|
71
|
+
case "end":
|
|
72
|
+
return _context.stop();
|
|
75
73
|
}
|
|
76
74
|
}, _callee, null, [[2, 10]]);
|
|
77
75
|
})), [onSearch]);
|
|
@@ -41,61 +41,59 @@ export var WhatsNewArticleProvider = function WhatsNewArticleProvider(_ref) {
|
|
|
41
41
|
_results,
|
|
42
42
|
_args = arguments;
|
|
43
43
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
44
|
-
while (1) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
_context.next = 28;
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
_context.prev = 5;
|
|
56
|
-
setSearchWhatsNewArticlesState(REQUEST_STATE.loading);
|
|
57
|
-
// If the filter type hasn't change, then we are loading an extra page
|
|
58
|
-
if (!(filter === whatsNewSearchType && page !== '')) {
|
|
59
|
-
_context.next = 14;
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
_context.next = 10;
|
|
63
|
-
return onSearchWhatsNewArticles(filter, numberOfItems, page);
|
|
64
|
-
case 10:
|
|
65
|
-
results = _context.sent;
|
|
66
|
-
setSearchWhatsNewArticlesResult({
|
|
67
|
-
articles: [].concat(_toConsumableArray(searchWhatsNewArticlesResult !== null && searchWhatsNewArticlesResult !== void 0 && searchWhatsNewArticlesResult.articles ? searchWhatsNewArticlesResult.articles : []), _toConsumableArray(results.articles)),
|
|
68
|
-
hasNextPage: results.hasNextPage,
|
|
69
|
-
nextPage: results.nextPage
|
|
70
|
-
});
|
|
71
|
-
_context.next = 19;
|
|
44
|
+
while (1) switch (_context.prev = _context.next) {
|
|
45
|
+
case 0:
|
|
46
|
+
filter = _args.length > 0 && _args[0] !== undefined ? _args[0] : '';
|
|
47
|
+
numberOfItems = _args.length > 1 && _args[1] !== undefined ? _args[1] : NUMBER_OF_WHATS_NEW_ITEMS_PER_PAGE;
|
|
48
|
+
page = _args.length > 2 && _args[2] !== undefined ? _args[2] : '';
|
|
49
|
+
setWhatsNewSearchType(filter);
|
|
50
|
+
if (!onSearchWhatsNewArticles) {
|
|
51
|
+
_context.next = 28;
|
|
72
52
|
break;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
_results = _context.sent;
|
|
80
|
-
setSearchWhatsNewArticlesResult(_results);
|
|
81
|
-
case 19:
|
|
82
|
-
setSearchWhatsNewArticlesState(REQUEST_STATE.done);
|
|
83
|
-
_context.next = 26;
|
|
53
|
+
}
|
|
54
|
+
_context.prev = 5;
|
|
55
|
+
setSearchWhatsNewArticlesState(REQUEST_STATE.loading);
|
|
56
|
+
// If the filter type hasn't change, then we are loading an extra page
|
|
57
|
+
if (!(filter === whatsNewSearchType && page !== '')) {
|
|
58
|
+
_context.next = 14;
|
|
84
59
|
break;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
60
|
+
}
|
|
61
|
+
_context.next = 10;
|
|
62
|
+
return onSearchWhatsNewArticles(filter, numberOfItems, page);
|
|
63
|
+
case 10:
|
|
64
|
+
results = _context.sent;
|
|
65
|
+
setSearchWhatsNewArticlesResult({
|
|
66
|
+
articles: [].concat(_toConsumableArray(searchWhatsNewArticlesResult !== null && searchWhatsNewArticlesResult !== void 0 && searchWhatsNewArticlesResult.articles ? searchWhatsNewArticlesResult.articles : []), _toConsumableArray(results.articles)),
|
|
67
|
+
hasNextPage: results.hasNextPage,
|
|
68
|
+
nextPage: results.nextPage
|
|
69
|
+
});
|
|
70
|
+
_context.next = 19;
|
|
71
|
+
break;
|
|
72
|
+
case 14:
|
|
73
|
+
// new search
|
|
74
|
+
setSearchWhatsNewArticlesResult(null);
|
|
75
|
+
_context.next = 17;
|
|
76
|
+
return onSearchWhatsNewArticles(filter, numberOfItems, page);
|
|
77
|
+
case 17:
|
|
78
|
+
_results = _context.sent;
|
|
79
|
+
setSearchWhatsNewArticlesResult(_results);
|
|
80
|
+
case 19:
|
|
81
|
+
setSearchWhatsNewArticlesState(REQUEST_STATE.done);
|
|
82
|
+
_context.next = 26;
|
|
83
|
+
break;
|
|
84
|
+
case 22:
|
|
85
|
+
_context.prev = 22;
|
|
86
|
+
_context.t0 = _context["catch"](5);
|
|
87
|
+
setSearchWhatsNewArticlesResult(null);
|
|
88
|
+
setSearchWhatsNewArticlesState(REQUEST_STATE.error);
|
|
89
|
+
case 26:
|
|
90
|
+
_context.next = 29;
|
|
91
|
+
break;
|
|
92
|
+
case 28:
|
|
93
|
+
setSearchWhatsNewArticlesState(REQUEST_STATE.error);
|
|
94
|
+
case 29:
|
|
95
|
+
case "end":
|
|
96
|
+
return _context.stop();
|
|
99
97
|
}
|
|
100
98
|
}, _callee, null, [[5, 22]]);
|
|
101
99
|
})), [onSearchWhatsNewArticles, whatsNewSearchType, searchWhatsNewArticlesResult]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// TODO - Check if we need to delete this
|
|
2
|
-
export var ARTICLE_ITEM_TYPES
|
|
3
|
-
(function (ARTICLE_ITEM_TYPES) {
|
|
2
|
+
export var ARTICLE_ITEM_TYPES = /*#__PURE__*/function (ARTICLE_ITEM_TYPES) {
|
|
4
3
|
ARTICLE_ITEM_TYPES["topicInProduct"] = "topicInProduct";
|
|
5
|
-
|
|
4
|
+
return ARTICLE_ITEM_TYPES;
|
|
5
|
+
}({});
|
package/dist/esm/model/Help.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArticleItem } from './Article';
|
|
2
|
-
export var ARTICLE_TYPE
|
|
3
|
-
(function (ARTICLE_TYPE) {
|
|
2
|
+
export var ARTICLE_TYPE = /*#__PURE__*/function (ARTICLE_TYPE) {
|
|
4
3
|
ARTICLE_TYPE["HELP_ARTICLE"] = "HELP_ARTICLE";
|
|
5
4
|
ARTICLE_TYPE["WHATS_NEW"] = "WHATS_NEW";
|
|
6
|
-
|
|
5
|
+
return ARTICLE_TYPE;
|
|
6
|
+
}({});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export var REQUEST_STATE
|
|
2
|
-
(function (REQUEST_STATE) {
|
|
1
|
+
export var REQUEST_STATE = /*#__PURE__*/function (REQUEST_STATE) {
|
|
3
2
|
REQUEST_STATE["done"] = "done";
|
|
4
3
|
REQUEST_STATE["loading"] = "loading";
|
|
5
4
|
REQUEST_STATE["load"] = "load";
|
|
6
5
|
REQUEST_STATE["error"] = "error";
|
|
7
6
|
REQUEST_STATE["reload"] = "reload";
|
|
8
|
-
|
|
7
|
+
return REQUEST_STATE;
|
|
8
|
+
}({});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export var WHATS_NEW_ITEM_TYPES
|
|
2
|
-
(function (WHATS_NEW_ITEM_TYPES) {
|
|
1
|
+
export var WHATS_NEW_ITEM_TYPES = /*#__PURE__*/function (WHATS_NEW_ITEM_TYPES) {
|
|
3
2
|
WHATS_NEW_ITEM_TYPES["NEW_FEATURE"] = "Announcement";
|
|
4
3
|
WHATS_NEW_ITEM_TYPES["IMPROVEMENT"] = "Improvement";
|
|
5
4
|
WHATS_NEW_ITEM_TYPES["FIX"] = "Fix";
|
|
6
5
|
WHATS_NEW_ITEM_TYPES["REMOVED"] = "Removed";
|
|
7
6
|
WHATS_NEW_ITEM_TYPES["EXPERIMENT"] = "Experiment";
|
|
8
|
-
|
|
7
|
+
return WHATS_NEW_ITEM_TYPES;
|
|
8
|
+
}({});
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,25 +26,25 @@
|
|
|
26
26
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.svg"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/analytics": "^8.
|
|
30
|
-
"@atlaskit/analytics-next": "^9.
|
|
31
|
-
"@atlaskit/button": "^16.
|
|
32
|
-
"@atlaskit/checkbox": "^12.
|
|
33
|
-
"@atlaskit/form": "^8.
|
|
34
|
-
"@atlaskit/help-article": "^4.
|
|
35
|
-
"@atlaskit/help-layout": "^4.
|
|
36
|
-
"@atlaskit/icon": "^21.
|
|
37
|
-
"@atlaskit/notification-indicator": "^9.
|
|
38
|
-
"@atlaskit/notification-log-client": "^6.
|
|
39
|
-
"@atlaskit/radio": "^5.
|
|
40
|
-
"@atlaskit/section-message": "^6.
|
|
41
|
-
"@atlaskit/select": "^16.
|
|
42
|
-
"@atlaskit/spinner": "^15.
|
|
43
|
-
"@atlaskit/textarea": "^4.
|
|
44
|
-
"@atlaskit/textfield": "^5.
|
|
45
|
-
"@atlaskit/theme": "^12.
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
-
"@atlaskit/tooltip": "^17.
|
|
29
|
+
"@atlaskit/analytics": "^8.1.0",
|
|
30
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
31
|
+
"@atlaskit/button": "^16.7.0",
|
|
32
|
+
"@atlaskit/checkbox": "^12.5.0",
|
|
33
|
+
"@atlaskit/form": "^8.11.0",
|
|
34
|
+
"@atlaskit/help-article": "^4.1.0",
|
|
35
|
+
"@atlaskit/help-layout": "^4.2.0",
|
|
36
|
+
"@atlaskit/icon": "^21.12.0",
|
|
37
|
+
"@atlaskit/notification-indicator": "^9.1.0",
|
|
38
|
+
"@atlaskit/notification-log-client": "^6.1.0",
|
|
39
|
+
"@atlaskit/radio": "^5.5.0",
|
|
40
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
41
|
+
"@atlaskit/select": "^16.2.0",
|
|
42
|
+
"@atlaskit/spinner": "^15.5.0",
|
|
43
|
+
"@atlaskit/textarea": "^4.6.0",
|
|
44
|
+
"@atlaskit/textfield": "^5.4.0",
|
|
45
|
+
"@atlaskit/theme": "^12.5.0",
|
|
46
|
+
"@atlaskit/tokens": "^1.3.0",
|
|
47
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/core": "^10.0.9",
|
|
50
50
|
"@emotion/styled": "^10.0.7",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@atlaskit/docs": "*",
|
|
64
64
|
"@atlaskit/navigation": "^37.0.0",
|
|
65
|
-
"@atlaskit/page": "^12.
|
|
65
|
+
"@atlaskit/page": "^12.3.0",
|
|
66
66
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
67
67
|
"@testing-library/react": "^12.1.5",
|
|
68
68
|
"algoliasearch": "^3.35.1",
|