@atlaskit/help 7.4.0 → 7.4.2
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 +764 -749
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/styled.js +3 -0
- 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 -2
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +5 -0
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/Loading/index.js +4 -0
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +4 -2
- package/dist/cjs/components/Article/WhatsNewArticle/styled.js +11 -0
- package/dist/cjs/components/Article/styled.js +1 -0
- package/dist/cjs/components/ArticlesList/ArticlesList.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +14 -3
- package/dist/cjs/components/ArticlesList/index.js +3 -1
- package/dist/cjs/components/ArticlesList/styled.js +4 -0
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/styled.js +5 -5
- package/dist/cjs/components/RelatedArticles/index.js +4 -2
- package/dist/cjs/components/RelatedArticles/styled.js +7 -0
- package/dist/cjs/components/Search/SearchInput/index.js +1 -1
- package/dist/cjs/components/Search/SearchInput/styled.js +5 -0
- package/dist/cjs/components/Search/SearchResults/styled.js +9 -0
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +3 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +3 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +9 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.js +3 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +8 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +16 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +3 -0
- package/dist/cjs/components/WhatsNew/WhatsNewResults/index.js +3 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +7 -0
- package/dist/cjs/components/contexts/helpArticleContext.js +0 -2
- package/dist/cjs/components/styled.js +4 -0
- package/dist/cjs/util/styled.js +5 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/styled.js +3 -0
- 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 +6 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/styled.js +5 -0
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/Loading/index.js +4 -0
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +4 -2
- package/dist/es2019/components/Article/WhatsNewArticle/styled.js +11 -0
- package/dist/es2019/components/Article/index.js +3 -0
- package/dist/es2019/components/Article/styled.js +1 -0
- package/dist/es2019/components/ArticlesList/ArticlesList.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +14 -3
- package/dist/es2019/components/ArticlesList/index.js +3 -1
- package/dist/es2019/components/ArticlesList/styled.js +4 -0
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/styled.js +5 -5
- package/dist/es2019/components/RelatedArticles/index.js +4 -2
- package/dist/es2019/components/RelatedArticles/styled.js +7 -0
- package/dist/es2019/components/Search/SearchInput/index.js +1 -1
- package/dist/es2019/components/Search/SearchInput/styled.js +5 -0
- package/dist/es2019/components/Search/SearchResults/index.js +2 -0
- package/dist/es2019/components/Search/SearchResults/styled.js +9 -0
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +3 -0
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +3 -0
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +9 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.js +3 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +8 -0
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +16 -0
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +3 -0
- package/dist/es2019/components/WhatsNew/WhatsNewResults/index.js +5 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +7 -0
- package/dist/es2019/components/contexts/helpArticleContext.js +0 -2
- package/dist/es2019/components/styled.js +4 -0
- package/dist/es2019/util/styled.js +6 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/styled.js +3 -0
- 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 +6 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/styled.js +5 -0
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/Loading/index.js +4 -0
- package/dist/esm/components/Article/WhatsNewArticle/index.js +4 -2
- package/dist/esm/components/Article/WhatsNewArticle/styled.js +11 -0
- package/dist/esm/components/Article/styled.js +1 -0
- package/dist/esm/components/ArticlesList/ArticlesList.js +1 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +14 -3
- package/dist/esm/components/ArticlesList/index.js +3 -1
- package/dist/esm/components/ArticlesList/styled.js +4 -0
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/styled.js +5 -5
- package/dist/esm/components/RelatedArticles/index.js +4 -2
- package/dist/esm/components/RelatedArticles/styled.js +7 -0
- package/dist/esm/components/Search/SearchInput/index.js +1 -1
- package/dist/esm/components/Search/SearchInput/styled.js +5 -0
- package/dist/esm/components/Search/SearchResults/styled.js +9 -0
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +3 -0
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +3 -0
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +9 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.js +3 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +8 -0
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +16 -0
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +3 -0
- package/dist/esm/components/WhatsNew/WhatsNewResults/index.js +3 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +7 -0
- package/dist/esm/components/contexts/helpArticleContext.js +0 -2
- package/dist/esm/components/styled.js +4 -0
- package/dist/esm/util/styled.js +6 -1
- package/dist/types/components/Article/ArticleContent/index.d.ts +2 -2
- package/dist/types/components/Article/ArticleLoadingFail/index.d.ts +2 -2
- package/dist/types/components/Article/HelpArticle/Loading/index.d.ts +1 -1
- package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +2 -2
- package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +2 -2
- package/dist/types/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +3 -3
- package/dist/types/components/Article/HelpArticle/index.d.ts +1 -1
- package/dist/types/components/Article/WhatsNewArticle/Loading/index.d.ts +1 -1
- package/dist/types/components/Article/WhatsNewArticle/index.d.ts +2 -2
- package/dist/types/components/ArticlesList/index.d.ts +1 -1
- package/dist/types/components/ArticlesList/model/ArticlesListItem.d.ts +2 -2
- package/dist/types/components/Help.d.ts +2 -2
- package/dist/types/components/HelpContentButton/index.d.ts +2 -2
- package/dist/types/components/RelatedArticles/RelatedArticlesLoading.d.ts +1 -1
- package/dist/types/components/RelatedArticles/index.d.ts +3 -3
- package/dist/types/components/Search/SearchInput/index.d.ts +1 -1
- package/dist/types/components/Search/SearchResults/SearchExternalSite.d.ts +2 -2
- package/dist/types/components/Search/SearchResults/SearchResults.d.ts +2 -2
- package/dist/types/components/Search/SearchResults/SearchResultsEmpty.d.ts +2 -2
- package/dist/types/components/Search/SearchResults/SearchResultsError.d.ts +1 -1
- package/dist/types/components/ShowMoreButton/index.d.ts +2 -2
- package/dist/types/components/WhatsNew/WhatsNewButton/index.d.ts +1 -1
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +1 -1
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +2 -2
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.d.ts +1 -1
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.d.ts +1 -1
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/model/WhatsNewResultsList.d.ts +2 -2
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +1 -1
- package/dist/types/components/WhatsNew/WhatsNewResults/index.d.ts +1 -1
- package/dist/types/components/contexts/headerContext.d.ts +2 -2
- package/dist/types/components/contexts/helpArticleContext.d.ts +3 -3
- package/dist/types/components/contexts/homeContext.d.ts +1 -1
- package/dist/types/components/contexts/relatedArticlesContext.d.ts +3 -3
- package/dist/types/components/contexts/whatsNewArticleContext.d.ts +6 -6
- package/dist/types/model/WhatsNew.d.ts +1 -1
- package/dist/types/util/helpers.d.ts +1 -1
- package/dist/types/util/testing/mock.d.ts +2 -2
- package/dist/types-ts4.5/components/Article/ArticleContent/index.d.ts +2 -2
- package/dist/types-ts4.5/components/Article/ArticleLoadingFail/index.d.ts +2 -2
- package/dist/types-ts4.5/components/Article/HelpArticle/Loading/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +2 -2
- package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +2 -2
- package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Article/HelpArticle/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Article/WhatsNewArticle/Loading/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Article/WhatsNewArticle/index.d.ts +2 -2
- package/dist/types-ts4.5/components/ArticlesList/index.d.ts +1 -1
- package/dist/types-ts4.5/components/ArticlesList/model/ArticlesListItem.d.ts +2 -2
- package/dist/types-ts4.5/components/Help.d.ts +2 -2
- package/dist/types-ts4.5/components/HelpContentButton/index.d.ts +2 -2
- package/dist/types-ts4.5/components/RelatedArticles/RelatedArticlesLoading.d.ts +1 -1
- package/dist/types-ts4.5/components/RelatedArticles/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Search/SearchInput/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/SearchResults/SearchExternalSite.d.ts +2 -2
- package/dist/types-ts4.5/components/Search/SearchResults/SearchResults.d.ts +2 -2
- package/dist/types-ts4.5/components/Search/SearchResults/SearchResultsEmpty.d.ts +2 -2
- package/dist/types-ts4.5/components/Search/SearchResults/SearchResultsError.d.ts +1 -1
- package/dist/types-ts4.5/components/ShowMoreButton/index.d.ts +2 -2
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewButton/index.d.ts +1 -1
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +1 -1
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +2 -2
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +3 -3
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.d.ts +1 -1
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/index.d.ts +1 -1
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/model/WhatsNewResultsList.d.ts +2 -2
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +1 -1
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/index.d.ts +1 -1
- package/dist/types-ts4.5/components/contexts/headerContext.d.ts +2 -2
- package/dist/types-ts4.5/components/contexts/helpArticleContext.d.ts +3 -3
- package/dist/types-ts4.5/components/contexts/homeContext.d.ts +1 -1
- package/dist/types-ts4.5/components/contexts/relatedArticlesContext.d.ts +3 -3
- package/dist/types-ts4.5/components/contexts/whatsNewArticleContext.d.ts +6 -6
- package/dist/types-ts4.5/model/WhatsNew.d.ts +1 -1
- package/dist/types-ts4.5/util/helpers.d.ts +1 -1
- package/dist/types-ts4.5/util/testing/mock.d.ts +2 -2
- package/package.json +7 -9
|
@@ -15,7 +15,7 @@ import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
|
15
15
|
import { usePrevious } from '../../util/hooks/previous';
|
|
16
16
|
import { jsx } from '@emotion/react';
|
|
17
17
|
const packageName = "@atlaskit/help";
|
|
18
|
-
const packageVersion = "7.4.
|
|
18
|
+
const packageVersion = "7.4.2";
|
|
19
19
|
export const RelatedArticles = ({
|
|
20
20
|
style = 'primary',
|
|
21
21
|
routeGroup,
|
|
@@ -80,7 +80,9 @@ export const RelatedArticles = ({
|
|
|
80
80
|
onClick: updateRelatedArticles
|
|
81
81
|
}, formatMessage(messages.help_related_article_endpoint_error_button_label))));
|
|
82
82
|
} else {
|
|
83
|
-
return jsx(React.Fragment, null, style === 'secondary' && relatedArticles.length > 0 && jsx(React.Fragment, null, jsx(DividerLine, null), jsx(RelatedArticlesTitle, null, formatMessage(messages.help_related_article_title))), isLoading ? jsx(RelatedArticlesLoading, null) : jsx(ArticlesList
|
|
83
|
+
return jsx(React.Fragment, null, style === 'secondary' && relatedArticles.length > 0 && jsx(React.Fragment, null, jsx(DividerLine, null), jsx(RelatedArticlesTitle, null, formatMessage(messages.help_related_article_title))), isLoading ? jsx(RelatedArticlesLoading, null) : jsx(ArticlesList
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
85
|
+
, {
|
|
84
86
|
style: style,
|
|
85
87
|
articles: relatedArticles,
|
|
86
88
|
onArticlesListItemClick: onRelatedArticlesListItemClick,
|
|
@@ -15,6 +15,8 @@ export const truncate = (width = '100%') => css({
|
|
|
15
15
|
whiteSpace: 'nowrap',
|
|
16
16
|
width: width
|
|
17
17
|
});
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
18
20
|
export const RelatedArticlesTitle = styled.div(baseHeading(16, 20), {
|
|
19
21
|
color: `var(--ds-text, ${colors.N800})`,
|
|
20
22
|
fontWeight: 600,
|
|
@@ -25,15 +27,20 @@ export const RelatedArticlesTitle = styled.div(baseHeading(16, 20), {
|
|
|
25
27
|
/**
|
|
26
28
|
* Loading styled-components
|
|
27
29
|
*/
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
28
31
|
export const LoadignRelatedArticleSection = styled.div({
|
|
29
32
|
marginTop: "var(--ds-space-100, 8px)"
|
|
30
33
|
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
31
36
|
export const LoadignRelatedArticleList = styled.ul({
|
|
32
37
|
width: '100%',
|
|
33
38
|
margin: 0,
|
|
34
39
|
padding: 0,
|
|
35
40
|
boxSizing: 'border-box'
|
|
36
41
|
});
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
37
44
|
export const LoadignRelatedArticleListItem = styled.li({
|
|
38
45
|
display: 'block',
|
|
39
46
|
width: '100%',
|
|
@@ -17,7 +17,7 @@ import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContain
|
|
|
17
17
|
const ANALYTICS_CONTEXT_DATA = {
|
|
18
18
|
componentName: 'searchInput',
|
|
19
19
|
packageName: "@atlaskit/help",
|
|
20
|
-
packageVersion: "7.4.
|
|
20
|
+
packageVersion: "7.4.2"
|
|
21
21
|
};
|
|
22
22
|
export const SearchInput = ({
|
|
23
23
|
intl: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
3
4
|
export const SearchInputContainer = styled.div({
|
|
4
5
|
order: 0,
|
|
5
6
|
flex: '0 1 auto',
|
|
@@ -7,6 +8,8 @@ export const SearchInputContainer = styled.div({
|
|
|
7
8
|
width: '100%',
|
|
8
9
|
boxSizing: 'border-box'
|
|
9
10
|
});
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
10
13
|
export const SearchIconContainer = styled.div({
|
|
11
14
|
width: "var(--ds-space-300, 24px)",
|
|
12
15
|
height: "var(--ds-space-300, 24px)",
|
|
@@ -18,6 +21,8 @@ export const SearchIconContainer = styled.div({
|
|
|
18
21
|
boxSizing: 'border-box'
|
|
19
22
|
}
|
|
20
23
|
});
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
21
26
|
export const CloseButtonAndSpinnerContainer = styled.div({
|
|
22
27
|
fontSize: 0,
|
|
23
28
|
paddingRight: "var(--ds-space-100, 8px)",
|
|
@@ -64,7 +64,9 @@ export const SearchResults = () => {
|
|
|
64
64
|
timeout: FADEIN_OVERLAY_TRANSITION_DURATION_MS
|
|
65
65
|
}, state => /*#__PURE__*/React.createElement(SearchResultsContainer, {
|
|
66
66
|
style: {
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
67
68
|
...defaultStyle,
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
68
70
|
...transitionStyles[state]
|
|
69
71
|
}
|
|
70
72
|
}, searchState !== REQUEST_STATE.error && searchResult !== null && searchResult.length > 0 && state !== 'exited' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SearchResultsList, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export const SearchResultsContainer = styled.div({
|
|
5
6
|
position: 'absolute',
|
|
6
7
|
height: '100%',
|
|
@@ -15,14 +16,20 @@ export const SearchResultsContainer = styled.div({
|
|
|
15
16
|
zIndex: 10,
|
|
16
17
|
padding: `0 ${"var(--ds-space-200, 16px)"}`
|
|
17
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
18
21
|
export const SearchResultsList = styled.div({
|
|
19
22
|
paddingTop: "var(--ds-space-300, 24px)",
|
|
20
23
|
position: 'relative'
|
|
21
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
22
27
|
export const SearchResultEmptyMessageImage = styled.div({
|
|
23
28
|
padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
|
|
24
29
|
textAlign: 'center'
|
|
25
30
|
});
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
26
33
|
export const SearchResultEmptyMessageText = styled.div({
|
|
27
34
|
padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
|
|
28
35
|
textAlign: 'center',
|
|
@@ -30,6 +37,8 @@ export const SearchResultEmptyMessageText = styled.div({
|
|
|
30
37
|
color: `var(--ds-text-subtlest, ${colors.N200})`
|
|
31
38
|
}
|
|
32
39
|
});
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
33
42
|
export const SearchResultSearchExternalSiteContainer = styled.div({
|
|
34
43
|
padding: "var(--ds-space-300, 24px)",
|
|
35
44
|
textAlign: 'center',
|
|
@@ -11,7 +11,7 @@ import { ARTICLE_TYPE } from '../../../model/Help';
|
|
|
11
11
|
const ANALYTICS_CONTEXT_DATA = {
|
|
12
12
|
componentName: 'WhatsNewButton',
|
|
13
13
|
packageName: "@atlaskit/help",
|
|
14
|
-
packageVersion: "7.4.
|
|
14
|
+
packageVersion: "7.4.2"
|
|
15
15
|
};
|
|
16
16
|
export const WhatsNewButton = ({
|
|
17
17
|
productName,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export const WhatsNewResultsEmptyMessageImage = styled.div({
|
|
5
6
|
padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
|
|
6
7
|
textAlign: 'center'
|
|
7
8
|
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
8
11
|
export const WhatsNewResultsEmptyMessageText = styled.div({
|
|
9
12
|
padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
|
|
10
13
|
textAlign: 'center',
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export const SearchResultEmptyMessageImage = styled.div({
|
|
5
6
|
padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
|
|
6
7
|
textAlign: 'center'
|
|
7
8
|
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
8
11
|
export const SearchResultEmptyMessageText = styled.div({
|
|
9
12
|
padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
|
|
10
13
|
textAlign: 'center',
|
|
@@ -8,7 +8,7 @@ import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, Wh
|
|
|
8
8
|
const ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticlesListItem',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "7.4.
|
|
11
|
+
packageVersion: "7.4.2"
|
|
12
12
|
};
|
|
13
13
|
export const WhatsNewResultListItem = ({
|
|
14
14
|
intl: {
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { fontSize, fontSizeSmall } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
-
export const WhatsNewResultListItemWrapper =
|
|
5
|
+
export const WhatsNewResultListItemWrapper =
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
7
|
+
styled.a({
|
|
6
8
|
position: `relative`,
|
|
7
9
|
boxSizing: `border-box`,
|
|
8
10
|
padding: "var(--ds-space-100, 8px)",
|
|
@@ -27,11 +29,15 @@ export const WhatsNewResultListItemWrapper = styled.a({
|
|
|
27
29
|
backgroundColor: `${`var(--ds-background-neutral-subtle-pressed, ${colors.B50})`}`
|
|
28
30
|
}
|
|
29
31
|
}, props => props.styles);
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
30
34
|
export const WhatsNewResultListItemTitleContainer = styled.div({
|
|
31
35
|
width: '100%',
|
|
32
36
|
whiteSpace: 'nowrap',
|
|
33
37
|
marginBottom: "var(--ds-space-050, 4px)"
|
|
34
38
|
});
|
|
39
|
+
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
35
41
|
export const WhatsNewResultListItemTitleText = styled.span({
|
|
36
42
|
fontSize: `${fontSizeSmall()}px`,
|
|
37
43
|
lineHeight: `${fontSize()}px`,
|
|
@@ -42,6 +48,8 @@ export const WhatsNewResultListItemTitleText = styled.span({
|
|
|
42
48
|
whiteSpace: 'normal',
|
|
43
49
|
overflowX: 'hidden'
|
|
44
50
|
});
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
45
53
|
export const WhatsNewResultListItemDescription = styled.p({
|
|
46
54
|
display: 'block',
|
|
47
55
|
lineHeight: '20px',
|
|
@@ -31,7 +31,9 @@ const WhatsNewResultsList = ({
|
|
|
31
31
|
onWhatsNewResultItemClick(event, analyticsEvent, articleData);
|
|
32
32
|
}
|
|
33
33
|
}, [onWhatsNewResultItemClick, openArticle]);
|
|
34
|
-
return whatsNewArticles && whatsNewArticles.length > 0 ? /*#__PURE__*/React.createElement(WhatsNewResultsListContainer, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArticlesList
|
|
34
|
+
return whatsNewArticles && whatsNewArticles.length > 0 ? /*#__PURE__*/React.createElement(WhatsNewResultsListContainer, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArticlesList
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
|
+
, {
|
|
35
37
|
style: style,
|
|
36
38
|
onWhatsNewResultItemClick: handleOnWhatsNewResultItemClick,
|
|
37
39
|
whatsNewArticles: whatsNewArticles
|
|
@@ -10,12 +10,18 @@ export const truncate = (width = '100%') => css({
|
|
|
10
10
|
whiteSpace: 'nowrap',
|
|
11
11
|
width: width
|
|
12
12
|
});
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
13
15
|
export const WhatsNewResultsListContainer = styled.div({
|
|
14
16
|
position: 'relative'
|
|
15
17
|
});
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
20
|
export const WhatsNewResultsListGroupWrapper = styled.div({
|
|
17
21
|
padding: `${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-100, 8px)"} 0`
|
|
18
22
|
});
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
19
25
|
export const WhatsNewResultsListGroupTitle = styled.div({
|
|
20
26
|
color: `var(--ds-text-subtlest, ${colors.N200})`,
|
|
21
27
|
fontSize: `${fontSizeSmall()}px`,
|
|
@@ -23,6 +29,8 @@ export const WhatsNewResultsListGroupTitle = styled.div({
|
|
|
23
29
|
padding: `0 ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`,
|
|
24
30
|
textTransform: 'uppercase'
|
|
25
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
26
34
|
export const ToggleShowWhatsNewResultsContainer = styled.div({
|
|
27
35
|
padding: `${"var(--ds-space-100, 8px)"} 0`,
|
|
28
36
|
span: {
|
|
@@ -23,8 +23,11 @@ export const WhatsNewResultsLoading = ({
|
|
|
23
23
|
marginTop: "0"
|
|
24
24
|
})), /*#__PURE__*/React.createElement(LoadignWhatsNewResultsListItem, null, /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
25
25
|
style: {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
26
27
|
display: 'inline-block',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
29
|
verticalAlign: 'middle',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
28
31
|
position: 'relative'
|
|
29
32
|
},
|
|
30
33
|
contentHeight: "16px",
|
|
@@ -32,6 +35,7 @@ export const WhatsNewResultsLoading = ({
|
|
|
32
35
|
marginTop: "4px"
|
|
33
36
|
}), /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
34
37
|
style: {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
35
39
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
36
40
|
},
|
|
37
41
|
contentHeight: "11px",
|
|
@@ -45,8 +49,11 @@ export const WhatsNewResultsLoading = ({
|
|
|
45
49
|
marginTop: "4px"
|
|
46
50
|
})), /*#__PURE__*/React.createElement(LoadignWhatsNewResultsListItem, null, /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
47
51
|
style: {
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
48
53
|
display: 'inline-block',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
49
55
|
verticalAlign: 'middle',
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
50
57
|
position: 'relative'
|
|
51
58
|
},
|
|
52
59
|
contentHeight: "16px",
|
|
@@ -54,6 +61,7 @@ export const WhatsNewResultsLoading = ({
|
|
|
54
61
|
marginTop: "4px"
|
|
55
62
|
}), /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
56
63
|
style: {
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
57
65
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
58
66
|
},
|
|
59
67
|
contentHeight: "11px",
|
|
@@ -71,8 +79,11 @@ export const WhatsNewResultsLoading = ({
|
|
|
71
79
|
marginTop: "0"
|
|
72
80
|
})), /*#__PURE__*/React.createElement(LoadignWhatsNewResultsListItem, null, /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
73
81
|
style: {
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
74
83
|
display: 'inline-block',
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
75
85
|
verticalAlign: 'middle',
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
76
87
|
position: 'relative'
|
|
77
88
|
},
|
|
78
89
|
contentHeight: "16px",
|
|
@@ -80,6 +91,7 @@ export const WhatsNewResultsLoading = ({
|
|
|
80
91
|
marginTop: "4px"
|
|
81
92
|
}), /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
82
93
|
style: {
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
83
95
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
84
96
|
},
|
|
85
97
|
contentHeight: "11px",
|
|
@@ -93,8 +105,11 @@ export const WhatsNewResultsLoading = ({
|
|
|
93
105
|
marginTop: "4px"
|
|
94
106
|
})), /*#__PURE__*/React.createElement(LoadignWhatsNewResultsListItem, null, /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
95
107
|
style: {
|
|
108
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
96
109
|
display: 'inline-block',
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
97
111
|
verticalAlign: 'middle',
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
98
113
|
position: 'relative'
|
|
99
114
|
},
|
|
100
115
|
contentHeight: "16px",
|
|
@@ -102,6 +117,7 @@ export const WhatsNewResultsLoading = ({
|
|
|
102
117
|
marginTop: "4px"
|
|
103
118
|
}), /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
104
119
|
style: {
|
|
120
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
105
121
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
106
122
|
},
|
|
107
123
|
contentHeight: "11px",
|
|
@@ -3,6 +3,7 @@ import styled from '@emotion/styled';
|
|
|
3
3
|
/**
|
|
4
4
|
* Loading styled-components
|
|
5
5
|
*/
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
6
7
|
export const LoadignWhatsNewResultsList = styled.ul({
|
|
7
8
|
width: '100%',
|
|
8
9
|
margin: 0,
|
|
@@ -10,6 +11,8 @@ export const LoadignWhatsNewResultsList = styled.ul({
|
|
|
10
11
|
boxSizing: 'border-box',
|
|
11
12
|
marginTop: "var(--ds-space-200, 16px)"
|
|
12
13
|
});
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
13
16
|
export const LoadignWhatsNewResultsListItem = styled.li({
|
|
14
17
|
display: 'block',
|
|
15
18
|
width: '100%',
|
|
@@ -110,11 +110,15 @@ export const WhatsNewResults = ({
|
|
|
110
110
|
}, state => /*#__PURE__*/React.createElement(WhatsNewResultsContainer, {
|
|
111
111
|
ref: containerRef,
|
|
112
112
|
style: {
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
113
114
|
...defaultStyle,
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
114
116
|
...transitionStyles[state]
|
|
115
117
|
}
|
|
116
118
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, searchWhatsNewArticlesState === REQUEST_STATE.loading && searchWhatsNewArticlesResult === null && state !== 'exited' && /*#__PURE__*/React.createElement(WhatsNewResultsLoading, null), (searchWhatsNewArticlesState === REQUEST_STATE.done || searchWhatsNewArticlesState === REQUEST_STATE.loading) && searchWhatsNewArticlesResult !== null && state !== 'exited' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectContainer, null, /*#__PURE__*/React.createElement(Select, {
|
|
117
|
-
defaultValue: selectedOption
|
|
119
|
+
defaultValue: selectedOption
|
|
120
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
121
|
+
,
|
|
118
122
|
className: "single-select",
|
|
119
123
|
classNamePrefix: "react-select",
|
|
120
124
|
options: [{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export const WhatsNewResultsContainer = styled.div({
|
|
5
6
|
position: 'absolute',
|
|
6
7
|
height: '100%',
|
|
@@ -15,12 +16,18 @@ export const WhatsNewResultsContainer = styled.div({
|
|
|
15
16
|
zIndex: 1,
|
|
16
17
|
padding: "var(--ds-space-200, 16px)"
|
|
17
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
18
21
|
export const SelectContainer = styled.div({
|
|
19
22
|
width: `${19 * gridSize()}px`
|
|
20
23
|
});
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
21
26
|
export const WhatsNewResultsListContainer = styled.div({
|
|
22
27
|
paddingTop: "var(--ds-space-100, 8px)"
|
|
23
28
|
});
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
24
31
|
export const WhatsNewResultsListTitleContainer = styled.div({
|
|
25
32
|
padding: `0 ${"var(--ds-space-100, 8px)"}`
|
|
26
33
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ArticleItem } from '../../model/Article';
|
|
3
|
-
import { articleId } from '../../model/Help';
|
|
4
2
|
import { createCtx } from '../../util/hooks/ctx';
|
|
5
3
|
export const [useHelpArticleContext, CtxProvider] = createCtx();
|
|
6
4
|
export const HelpArticleContextProvider = ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export const HelpBodyContainer = styled.div({
|
|
5
6
|
flexGrow: 1,
|
|
6
7
|
minHeight: 0,
|
|
@@ -14,6 +15,8 @@ export const HelpBodyContainer = styled.div({
|
|
|
14
15
|
alignContent: 'stretch',
|
|
15
16
|
alignItems: 'flex-start'
|
|
16
17
|
});
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
17
20
|
export const HelpBody = styled.div({
|
|
18
21
|
width: '100%',
|
|
19
22
|
boxSizing: 'border-box',
|
|
@@ -24,6 +27,7 @@ export const HelpBody = styled.div({
|
|
|
24
27
|
overflowX: 'hidden',
|
|
25
28
|
overflowY: 'auto'
|
|
26
29
|
});
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
27
31
|
export const Home = styled.div(props => ({
|
|
28
32
|
display: props.isOverlayFullyVisible ? 'none' : 'block',
|
|
29
33
|
height: '100%',
|
|
@@ -5,6 +5,8 @@ import styled from '@emotion/styled';
|
|
|
5
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import * as colors from '@atlaskit/theme/colors';
|
|
7
7
|
import { WHATS_NEW_ITEM_TYPES } from '../model/WhatsNew';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
8
10
|
export const DividerLine = styled.div({
|
|
9
11
|
backgroundColor: `var(--ds-border, ${colors.N30A})`,
|
|
10
12
|
height: '2px',
|
|
@@ -26,6 +28,8 @@ const shimmer = keyframes({
|
|
|
26
28
|
backgroundPosition: '1000px 0'
|
|
27
29
|
}
|
|
28
30
|
});
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
29
33
|
export const LoadingRectangle = styled.div(props => ({
|
|
30
34
|
display: 'inline-block',
|
|
31
35
|
verticalAlign: 'middle',
|
|
@@ -48,6 +52,7 @@ export const LoadingRectangle = styled.div(props => ({
|
|
|
48
52
|
* Loading Circle
|
|
49
53
|
*/
|
|
50
54
|
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
51
56
|
export const LoadingCircle = styled.div(props => ({
|
|
52
57
|
display: 'inline-block',
|
|
53
58
|
verticalAlign: 'middle',
|
|
@@ -70,7 +75,7 @@ export const LoadingCircle = styled.div(props => ({
|
|
|
70
75
|
* What's new icon
|
|
71
76
|
*/
|
|
72
77
|
|
|
73
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression --
|
|
78
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
74
79
|
export const WhatsNewTypeIcon = styled.div`
|
|
75
80
|
display: inline-block;
|
|
76
81
|
vertical-align: middle;
|
package/dist/esm/analytics.js
CHANGED
|
@@ -8,7 +8,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
|
|
|
8
8
|
var ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticleLoadingFail',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "7.4.
|
|
11
|
+
packageVersion: "7.4.2"
|
|
12
12
|
};
|
|
13
13
|
export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
|
|
14
14
|
var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
3
4
|
export var LoadingErrorMessage = styled.div({
|
|
4
5
|
paddingTop: "var(--ds-space-300, 24px)",
|
|
5
6
|
textAlign: 'center'
|
|
6
7
|
});
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
7
10
|
export var LoadingErrorButtonContainer = styled.div({
|
|
8
11
|
paddingTop: "var(--ds-space-300, 24px)",
|
|
9
12
|
textAlign: 'center'
|
|
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
|
|
|
6
6
|
var ANALYTICS_CONTEXT_DATA = {
|
|
7
7
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
8
8
|
packageName: "@atlaskit/help",
|
|
9
|
-
packageVersion: "7.4.
|
|
9
|
+
packageVersion: "7.4.2"
|
|
10
10
|
};
|
|
11
11
|
export var ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
|
|
12
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
|
|
|
6
6
|
var ANALYTICS_CONTEXT_DATA = {
|
|
7
7
|
componentName: 'ArticleWasHelpfulYesButton',
|
|
8
8
|
packageName: "@atlaskit/help",
|
|
9
|
-
packageVersion: "7.4.
|
|
9
|
+
packageVersion: "7.4.2"
|
|
10
10
|
};
|
|
11
11
|
export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
|
|
12
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -26,7 +26,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
|
26
26
|
var ANALYTICS_CONTEXT_DATA = {
|
|
27
27
|
componentName: 'ArticleWasHelpfulForm',
|
|
28
28
|
packageName: "@atlaskit/help",
|
|
29
|
-
packageVersion: "7.4.
|
|
29
|
+
packageVersion: "7.4.2"
|
|
30
30
|
};
|
|
31
31
|
export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
32
32
|
var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,
|
|
@@ -141,7 +141,9 @@ export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
|
141
141
|
};
|
|
142
142
|
if (!wasHelpfulFormSubmitedFailed) {
|
|
143
143
|
if ((handleArticleWasHelpfulYesButtonClick || handleArticleWasHelpfulNoButtonClick) && !wasHelpfulFormSubmited) {
|
|
144
|
-
return jsx(React.Fragment, null, jsx(ArticleFeedbackContainer, null, jsx(ArticleFeedbackText
|
|
144
|
+
return jsx(React.Fragment, null, jsx(ArticleFeedbackContainer, null, jsx(ArticleFeedbackText
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
146
|
+
, {
|
|
145
147
|
style: {
|
|
146
148
|
paddingRight: "var(--ds-space-100, 8px)"
|
|
147
149
|
}
|
|
@@ -198,7 +200,9 @@ export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
|
198
200
|
} else if (wasHelpfulFormSubmited && wasHelpful === null) {
|
|
199
201
|
return jsx(ArticleFeedbackContainer, null, jsx("span", {
|
|
200
202
|
style: {
|
|
203
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
201
204
|
paddingRight: "var(--ds-space-100, 8px)",
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
202
206
|
verticalAlign: 'middle'
|
|
203
207
|
}
|
|
204
208
|
}, jsx(CheckCircleIcon, {
|
|
@@ -3,15 +3,20 @@
|
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
5
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
6
7
|
export var ArticleFeedbackContainer = styled.div({
|
|
7
8
|
position: 'relative'
|
|
8
9
|
});
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
9
12
|
export var ArticleFeedbackText = styled.div({
|
|
10
13
|
font: "var(--ds-font-heading-xxsmall, ".concat(fontFallback.heading.xxsmall, ")"),
|
|
11
14
|
color: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
|
|
12
15
|
position: 'relative',
|
|
13
16
|
display: 'inline-block'
|
|
14
17
|
});
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
15
20
|
export var ArticleFeedbackAnswerWrapper = styled.div({
|
|
16
21
|
paddingTop: "var(--ds-space-200, 16px)"
|
|
17
22
|
});
|
|
@@ -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.4.
|
|
58
|
+
packageVersion: "7.4.2"
|
|
59
59
|
};
|
|
60
60
|
if (onRelatedArticlesShowMoreClick) {
|
|
61
61
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -9,8 +9,11 @@ export var Loading = function Loading(_ref) {
|
|
|
9
9
|
role: "img"
|
|
10
10
|
}, /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
11
11
|
style: {
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
12
13
|
display: 'inline-block',
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
13
15
|
verticalAlign: 'middle',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
14
17
|
position: 'relative'
|
|
15
18
|
},
|
|
16
19
|
contentHeight: "16px",
|
|
@@ -18,6 +21,7 @@ export var Loading = function Loading(_ref) {
|
|
|
18
21
|
marginTop: "4px"
|
|
19
22
|
}), /*#__PURE__*/React.createElement(LoadingRectangle, {
|
|
20
23
|
style: {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
21
25
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
22
26
|
},
|
|
23
27
|
contentHeight: "11px",
|
|
@@ -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.4.
|
|
16
|
+
packageVersion: "7.4.2"
|
|
17
17
|
};
|
|
18
18
|
export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
19
19
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -29,7 +29,9 @@ export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
|
29
29
|
}, getTypeIcon(article.type)), /*#__PURE__*/React.createElement(WhatsNewTypeTitle, null, typeTitle)), /*#__PURE__*/React.createElement(WhatsNewTitleText, null, article.title), /*#__PURE__*/React.createElement(HelpArticleContent, {
|
|
30
30
|
body: article.description,
|
|
31
31
|
bodyFormat: article.bodyFormat ? article.bodyFormat : BODY_FORMAT_TYPES.html
|
|
32
|
-
}), (article.relatedExternalLinks || article.communityUrl) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DividerLine
|
|
32
|
+
}), (article.relatedExternalLinks || article.communityUrl) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DividerLine
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
|
+
, {
|
|
33
35
|
style: {
|
|
34
36
|
marginTop: 0,
|
|
35
37
|
marginBottom: "var(--ds-space-200, 16px)"
|