@atlaskit/help 7.6.2 → 7.7.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 +12 -0
- package/dist/cjs/analytics.js +2 -2
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +6 -5
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/index.js +2 -2
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +9 -7
- package/dist/cjs/components/Article/WhatsNewArticle/styled.js +1 -1
- package/dist/cjs/components/Article/index.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +14 -12
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +7 -2
- package/dist/cjs/components/ArticlesList/index.js +1 -1
- package/dist/cjs/components/Help.js +1 -1
- package/dist/cjs/components/HelpContent.js +1 -1
- package/dist/cjs/components/HelpContentButton/index.js +6 -5
- package/dist/cjs/components/HelpContentButton/styled.js +1 -1
- package/dist/cjs/components/RelatedArticles/index.js +2 -2
- package/dist/cjs/components/RelatedArticles/styled.js +1 -1
- package/dist/cjs/components/Search/SearchInput/index.js +10 -5
- package/dist/cjs/components/Search/SearchInput/styled.js +1 -0
- package/dist/cjs/components/Search/SearchResults/SearchExternalSite.js +6 -6
- package/dist/cjs/components/Search/SearchResults/SearchResultsEmpty.js +6 -6
- package/dist/cjs/components/Search/SearchResults/index.js +1 -1
- package/dist/cjs/components/Search/SearchResults/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +6 -5
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +3 -3
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/index.js +1 -1
- package/dist/cjs/components/contexts/navigationContext.js +1 -1
- package/dist/cjs/components/contexts/searchContext.js +1 -1
- package/dist/cjs/components/contexts/whatsNewArticleContext.js +1 -1
- package/dist/cjs/util/styled.js +1 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +4 -3
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +6 -4
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +9 -7
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +6 -1
- package/dist/es2019/components/HelpContentButton/index.js +4 -3
- package/dist/es2019/components/RelatedArticles/index.js +1 -1
- package/dist/es2019/components/Search/SearchInput/index.js +8 -3
- package/dist/es2019/components/Search/SearchInput/styled.js +1 -0
- package/dist/es2019/components/Search/SearchResults/SearchExternalSite.js +4 -4
- package/dist/es2019/components/Search/SearchResults/SearchResultsEmpty.js +4 -4
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +5 -4
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +4 -3
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/index.js +6 -4
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +11 -9
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +6 -1
- package/dist/esm/components/Help.js +1 -1
- package/dist/esm/components/HelpContentButton/index.js +4 -3
- package/dist/esm/components/RelatedArticles/index.js +1 -1
- package/dist/esm/components/Search/SearchInput/index.js +8 -3
- package/dist/esm/components/Search/SearchInput/styled.js +1 -0
- package/dist/esm/components/Search/SearchResults/SearchExternalSite.js +4 -4
- package/dist/esm/components/Search/SearchResults/SearchResultsEmpty.js +4 -4
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +5 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +3 -3
- package/package.json +5 -5
|
@@ -55,7 +55,7 @@ export var HelpArticle = function HelpArticle(_ref) {
|
|
|
55
55
|
analyticsEvent.payload.attributes = {
|
|
56
56
|
componentName: 'Article',
|
|
57
57
|
packageName: "@atlaskit/help",
|
|
58
|
-
packageVersion: "7.
|
|
58
|
+
packageVersion: "7.7.0"
|
|
59
59
|
};
|
|
60
60
|
if (onRelatedArticlesShowMoreClick) {
|
|
61
61
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { BODY_FORMAT_TYPES } from '@atlaskit/help-article';
|
|
4
4
|
import HelpArticleContent from '@atlaskit/help-article';
|
|
5
|
-
import ShortcutIcon from '@atlaskit/icon/
|
|
5
|
+
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import Button from '@atlaskit/button';
|
|
8
8
|
import { messages } from '../../../messages';
|
|
@@ -13,7 +13,7 @@ import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLin
|
|
|
13
13
|
var analyticsContextData = {
|
|
14
14
|
componentName: 'ArticlesListItem',
|
|
15
15
|
packageName: "@atlaskit/help",
|
|
16
|
-
packageVersion: "7.
|
|
16
|
+
packageVersion: "7.7.0"
|
|
17
17
|
};
|
|
18
18
|
export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
19
19
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -46,7 +46,8 @@ export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
|
46
46
|
href: article.relatedExternalLinks,
|
|
47
47
|
target: "_blank"
|
|
48
48
|
}, formatMessage(messages.help_whats_new_related_link_support)), /*#__PURE__*/React.createElement(ExternalLinkIconContainer, null, /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
49
|
-
|
|
49
|
+
color: "currentColor",
|
|
50
|
+
LEGACY_size: "small",
|
|
50
51
|
label: ""
|
|
51
52
|
}))), article.communityUrl && /*#__PURE__*/React.createElement(RelatedLinkContainer, null, /*#__PURE__*/React.createElement(Button, {
|
|
52
53
|
appearance: "link",
|
|
@@ -54,7 +55,8 @@ export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
|
54
55
|
href: article.communityUrl,
|
|
55
56
|
target: "_blank"
|
|
56
57
|
}, formatMessage(messages.help_whats_new_related_link_community)), /*#__PURE__*/React.createElement(ExternalLinkIconContainer, null, /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
57
|
-
|
|
58
|
+
color: "currentColor",
|
|
59
|
+
LEGACY_size: "small",
|
|
58
60
|
label: ""
|
|
59
61
|
}))))));
|
|
60
62
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as colors from '@atlaskit/theme/colors';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
|
-
import ShortcutIcon from '@atlaskit/icon/
|
|
4
|
+
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import LikeIcon from '@atlaskit/icon/
|
|
6
|
+
import LikeIcon from '@atlaskit/icon/core/migration/thumbs-up--like';
|
|
7
7
|
import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTitleText, ArticlesListItemDescription, ArticlesListItemLinkIcon, ArticlesListItemTrustFactor, ArticlesListItemViewCount, ArticlesListItemHelpfulCount, ArticlesListItemSource, ArticlesListItemLastModified, ArticlesListItemTitleSection } from './styled';
|
|
8
8
|
var ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticlesListItem',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "7.
|
|
11
|
+
packageVersion: "7.7.0"
|
|
12
12
|
};
|
|
13
13
|
var highlightText = function highlightText(text) {
|
|
14
14
|
if (!text) {
|
|
@@ -42,10 +42,10 @@ export var ArticlesListItem = function ArticlesListItem(_ref) {
|
|
|
42
42
|
var handleOnClick = function handleOnClick(event) {
|
|
43
43
|
event.preventDefault();
|
|
44
44
|
if (onClick) {
|
|
45
|
-
var
|
|
45
|
+
var analyticsEvent = createAnalyticsEvent({
|
|
46
46
|
action: 'clicked'
|
|
47
47
|
});
|
|
48
|
-
onClick(event,
|
|
48
|
+
onClick(event, analyticsEvent);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -63,13 +63,15 @@ export var ArticlesListItem = function ArticlesListItem(_ref) {
|
|
|
63
63
|
href: href,
|
|
64
64
|
onClick: handleOnClick
|
|
65
65
|
}, /*#__PURE__*/React.createElement(ArticlesListItemContainer, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleSection, null, /*#__PURE__*/React.createElement(ArticlesListItemTitleText, null, highlightText(title)), isLastPublishedVisible && /*#__PURE__*/React.createElement(ArticlesListItemLastModified, null, "Last modified: ", lastPublished)), href && /*#__PURE__*/React.createElement(ArticlesListItemLinkIcon, null, /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
66
|
-
|
|
66
|
+
LEGACY_size: "small",
|
|
67
67
|
label: "",
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
color: "var(--ds-icon-subtle, ".concat(colors.N90, ")"),
|
|
69
|
+
LEGACY_secondaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")")
|
|
70
70
|
}))), /*#__PURE__*/React.createElement(ArticlesListItemDescription, null, highlightText(description)), isSourceVisible && /*#__PURE__*/React.createElement(ArticlesListItemSource, null, source), isTrustFactorVisible && /*#__PURE__*/React.createElement(ArticlesListItemTrustFactor, null, isNumViewsVisible && /*#__PURE__*/React.createElement(ArticlesListItemViewCount, null, trustFactors.numViews, " views"), isHelpfulCountVisible && /*#__PURE__*/React.createElement(ArticlesListItemHelpfulCount, null, /*#__PURE__*/React.createElement(LikeIcon, {
|
|
71
|
+
LEGACY_margin: "0 -0.25px 0 0",
|
|
72
|
+
color: "currentColor",
|
|
71
73
|
label: "Like",
|
|
72
|
-
|
|
74
|
+
LEGACY_size: "small"
|
|
73
75
|
}), trustFactors.helpfulCount)));
|
|
74
76
|
};
|
|
75
77
|
var ArticlesListItemWithContext = function ArticlesListItemWithContext(props) {
|
|
@@ -126,7 +126,12 @@ export var ArticlesListItemViewCount = styled.span({
|
|
|
126
126
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
127
127
|
export var ArticlesListItemHelpfulCount = styled.span({
|
|
128
128
|
display: 'inline-flex',
|
|
129
|
-
paddingRight: "var(--ds-space-100, 8px)"
|
|
129
|
+
paddingRight: "var(--ds-space-100, 8px)",
|
|
130
|
+
alignItems: 'center',
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
132
|
+
'& > span': {
|
|
133
|
+
marginRight: "var(--ds-space-025, 2px)"
|
|
134
|
+
}
|
|
130
135
|
});
|
|
131
136
|
|
|
132
137
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
var _excluded = ["children", "footer"];
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { withAnalyticsEvents, withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import ShortcutIcon from '@atlaskit/icon/
|
|
2
|
+
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
3
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
4
4
|
import { NotificationIndicator } from '@atlaskit/notification-indicator';
|
|
5
5
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
|
|
|
7
7
|
var analitycsContextData = {
|
|
8
8
|
componentName: 'HelpContentButton',
|
|
9
9
|
packageName: "@atlaskit/help",
|
|
10
|
-
packageVersion: "7.
|
|
10
|
+
packageVersion: "7.7.0"
|
|
11
11
|
};
|
|
12
12
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
13
13
|
var _ref$id = _ref.id,
|
|
@@ -37,7 +37,8 @@ var HelpContentButton = function HelpContentButton(_ref) {
|
|
|
37
37
|
})), href != null && /*#__PURE__*/React.createElement(HelpContentButtonExternalLinkIcon, {
|
|
38
38
|
"data-testid": "shortcutIcon"
|
|
39
39
|
}, /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
40
|
-
|
|
40
|
+
color: "currentColor",
|
|
41
|
+
LEGACY_size: "small",
|
|
41
42
|
label: ""
|
|
42
43
|
}))));
|
|
43
44
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
@@ -23,7 +23,7 @@ import { usePrevious } from '../../util/hooks/previous';
|
|
|
23
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
24
|
import { css, jsx } from '@emotion/react';
|
|
25
25
|
var packageName = "@atlaskit/help";
|
|
26
|
-
var packageVersion = "7.
|
|
26
|
+
var packageVersion = "7.7.0";
|
|
27
27
|
var buttonStyles = css({
|
|
28
28
|
padding: '0',
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -9,8 +9,8 @@ import Textfield from '@atlaskit/textfield';
|
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
10
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
11
11
|
import Spinner from '@atlaskit/spinner';
|
|
12
|
-
import SearchIcon from '@atlaskit/icon/
|
|
13
|
-
import EditorCloseIcon from '@atlaskit/icon/
|
|
12
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
13
|
+
import EditorCloseIcon from '@atlaskit/icon/core/migration/close--editor-close';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -21,7 +21,7 @@ import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContain
|
|
|
21
21
|
var ANALYTICS_CONTEXT_DATA = {
|
|
22
22
|
componentName: 'searchInput',
|
|
23
23
|
packageName: "@atlaskit/help",
|
|
24
|
-
packageVersion: "7.
|
|
24
|
+
packageVersion: "7.7.0"
|
|
25
25
|
};
|
|
26
26
|
var buttonStyles = css({
|
|
27
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -83,6 +83,9 @@ export var SearchInput = function SearchInput(_ref) {
|
|
|
83
83
|
ref: inputRef,
|
|
84
84
|
name: "help-search-input",
|
|
85
85
|
elemBeforeInput: jsx(SearchIconContainer, null, jsx(SearchIcon, {
|
|
86
|
+
LEGACY_margin: "0 2px",
|
|
87
|
+
color: "currentColor",
|
|
88
|
+
spacing: "spacious",
|
|
86
89
|
label: ""
|
|
87
90
|
})),
|
|
88
91
|
elemAfterInput: jsx(CloseButtonAndSpinnerContainer, null, searchState === REQUEST_STATE.loading && jsx(Spinner, {
|
|
@@ -94,6 +97,8 @@ export var SearchInput = function SearchInput(_ref) {
|
|
|
94
97
|
spacing: "none",
|
|
95
98
|
"aria-label": "Clear field"
|
|
96
99
|
}, jsx(EditorCloseIcon, {
|
|
100
|
+
color: "currentColor",
|
|
101
|
+
spacing: "spacious",
|
|
97
102
|
label: ""
|
|
98
103
|
}))),
|
|
99
104
|
placeholder: formatMessage(messages.help_search_placeholder),
|
|
@@ -18,6 +18,7 @@ export var SearchIconContainer = styled.div({
|
|
|
18
18
|
width: "var(--ds-space-300, 24px)",
|
|
19
19
|
height: "var(--ds-space-300, 24px)",
|
|
20
20
|
paddingLeft: "var(--ds-space-050, 4px)",
|
|
21
|
+
marginLeft: "var(--ds-space-negative-025, -2px)",
|
|
21
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
23
|
'& > span': {
|
|
23
24
|
paddingLeft: "var(--ds-space-050, 4px)",
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
|
-
import ShortcutIcon from '@atlaskit/icon/
|
|
5
|
+
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { messages } from '../../../messages';
|
|
8
8
|
import { SearchResultSearchExternalSiteContainer } from './styled';
|
|
@@ -27,10 +27,10 @@ export var SearchExternalSite = function SearchExternalSite(_ref) {
|
|
|
27
27
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
28
28
|
appearance: "link",
|
|
29
29
|
iconAfter: /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
30
|
-
|
|
30
|
+
LEGACY_size: "small",
|
|
31
31
|
label: "",
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
color: "var(--ds-icon-subtle, ".concat(colors.N90, ")"),
|
|
33
|
+
LEGACY_secondaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")")
|
|
34
34
|
}),
|
|
35
35
|
spacing: "compact",
|
|
36
36
|
href: searchExternalUrl,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
|
-
import ShortcutIcon from '@atlaskit/icon/
|
|
5
|
+
import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import NotFoundImage from '../../../assets/NotFoundImage';
|
|
8
8
|
import { messages } from '../../../messages';
|
|
@@ -28,10 +28,10 @@ export var SearchResultsEmpty = function SearchResultsEmpty(_ref) {
|
|
|
28
28
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
29
29
|
appearance: "link",
|
|
30
30
|
iconAfter: /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
31
|
-
|
|
31
|
+
LEGACY_size: "small",
|
|
32
32
|
label: "",
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
color: "var(--ds-icon-subtle, ".concat(colors.N90, ")"),
|
|
34
|
+
LEGACY_secondaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")")
|
|
35
35
|
}),
|
|
36
36
|
spacing: "compact",
|
|
37
37
|
href: searchExternalUrl,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
|
-
import LightbulbIcon from '@atlaskit/icon/
|
|
4
|
+
import LightbulbIcon from '@atlaskit/icon/core/migration/lightbulb';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
6
|
import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
|
|
7
7
|
import { useNavigationContext } from '../../contexts/navigationContext';
|
|
@@ -11,7 +11,7 @@ import { ARTICLE_TYPE } from '../../../model/Help';
|
|
|
11
11
|
var ANALYTICS_CONTEXT_DATA = {
|
|
12
12
|
componentName: 'WhatsNewButton',
|
|
13
13
|
packageName: "@atlaskit/help",
|
|
14
|
-
packageVersion: "7.
|
|
14
|
+
packageVersion: "7.7.0"
|
|
15
15
|
};
|
|
16
16
|
export var WhatsNewButton = function WhatsNewButton(_ref) {
|
|
17
17
|
var productName = _ref.productName,
|
|
@@ -40,8 +40,9 @@ export var WhatsNewButton = function WhatsNewButton(_ref) {
|
|
|
40
40
|
productName: productName
|
|
41
41
|
}) : formatMessage(messages.help_whats_new_button_label_without_product_name),
|
|
42
42
|
icon: /*#__PURE__*/React.createElement(LightbulbIcon, {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
color: "var(--ds-icon-subtle, ".concat(colors.N600, ")"),
|
|
44
|
+
LEGACY_size: "medium",
|
|
45
|
+
spacing: "spacious",
|
|
45
46
|
label: ""
|
|
46
47
|
})
|
|
47
48
|
});
|
package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, Wh
|
|
|
8
8
|
var ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticlesListItem',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "7.
|
|
11
|
+
packageVersion: "7.7.0"
|
|
12
12
|
};
|
|
13
13
|
export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
14
14
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -23,10 +23,10 @@ export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
|
23
23
|
var handleOnClick = function handleOnClick(event) {
|
|
24
24
|
event.preventDefault();
|
|
25
25
|
if (onClick) {
|
|
26
|
-
var
|
|
26
|
+
var analyticsEvent = createAnalyticsEvent({
|
|
27
27
|
action: 'clicked'
|
|
28
28
|
});
|
|
29
|
-
onClick(event,
|
|
29
|
+
onClick(event, analyticsEvent);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
return /*#__PURE__*/React.createElement(WhatsNewResultListItemWrapper, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"@atlaskit/button": "^20.1.0",
|
|
42
42
|
"@atlaskit/checkbox": "^14.0.0",
|
|
43
43
|
"@atlaskit/form": "^10.5.0",
|
|
44
|
-
"@atlaskit/help-article": "^4.
|
|
44
|
+
"@atlaskit/help-article": "^4.2.0",
|
|
45
45
|
"@atlaskit/help-layout": "^4.3.0",
|
|
46
|
-
"@atlaskit/icon": "^22.
|
|
46
|
+
"@atlaskit/icon": "^22.18.0",
|
|
47
47
|
"@atlaskit/notification-indicator": "^9.3.0",
|
|
48
48
|
"@atlaskit/notification-log-client": "^6.1.0",
|
|
49
49
|
"@atlaskit/radio": "^6.5.0",
|
|
50
50
|
"@atlaskit/section-message": "^6.6.0",
|
|
51
|
-
"@atlaskit/select": "^17.
|
|
51
|
+
"@atlaskit/select": "^17.19.0",
|
|
52
52
|
"@atlaskit/spinner": "^16.3.0",
|
|
53
53
|
"@atlaskit/textarea": "^5.6.0",
|
|
54
54
|
"@atlaskit/textfield": "^6.5.0",
|
|
55
55
|
"@atlaskit/theme": "^13.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^1.
|
|
56
|
+
"@atlaskit/tokens": "^1.61.0",
|
|
57
57
|
"@atlaskit/tooltip": "^18.7.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
59
|
"@emotion/react": "^11.7.1",
|