@atlaskit/help 9.4.6 → 9.4.8
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 +20 -0
- 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 +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 +2 -2
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/styled.js +1 -1
- package/dist/cjs/components/Article/index.js +3 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/cjs/components/ArticlesList/styled.js +1 -1
- package/dist/cjs/components/BackButton/index.js +7 -2
- package/dist/cjs/components/Help.js +7 -3
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/styled.js +1 -1
- package/dist/cjs/components/NeedMoreHelp/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 +2 -2
- package/dist/cjs/components/Search/SearchInput/styled.js +1 -1
- package/dist/cjs/components/Search/SearchResults/index.js +8 -2
- package/dist/cjs/components/Search/SearchResults/styled.js +9 -5
- package/dist/cjs/components/Tabs/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- 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 +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +1 -1
- package/dist/cjs/components/styled.js +5 -3
- 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/ArticleLoadingFail/styled.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 +2 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/styled.js +1 -1
- package/dist/es2019/components/Article/index.js +3 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/es2019/components/ArticlesList/styled.js +1 -1
- package/dist/es2019/components/BackButton/index.js +5 -2
- package/dist/es2019/components/Help.js +8 -4
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/styled.js +1 -1
- package/dist/es2019/components/NeedMoreHelp/styled.js +1 -1
- package/dist/es2019/components/RelatedArticles/index.js +2 -2
- package/dist/es2019/components/RelatedArticles/styled.js +1 -1
- package/dist/es2019/components/Search/SearchInput/index.js +2 -2
- package/dist/es2019/components/Search/SearchInput/styled.js +1 -1
- package/dist/es2019/components/Search/SearchResults/index.js +8 -2
- package/dist/es2019/components/Search/SearchResults/styled.js +11 -7
- package/dist/es2019/components/Tabs/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +1 -1
- package/dist/es2019/components/styled.js +6 -4
- package/dist/es2019/util/styled.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/ArticleLoadingFail/styled.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 +2 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -1
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/styled.js +1 -1
- package/dist/esm/components/Article/index.js +3 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/esm/components/ArticlesList/styled.js +1 -1
- package/dist/esm/components/BackButton/index.js +5 -2
- package/dist/esm/components/Help.js +8 -4
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/styled.js +1 -1
- package/dist/esm/components/NeedMoreHelp/styled.js +1 -1
- package/dist/esm/components/RelatedArticles/index.js +2 -2
- package/dist/esm/components/RelatedArticles/styled.js +1 -1
- package/dist/esm/components/Search/SearchInput/index.js +2 -2
- package/dist/esm/components/Search/SearchInput/styled.js +1 -1
- package/dist/esm/components/Search/SearchResults/index.js +8 -2
- package/dist/esm/components/Search/SearchResults/styled.js +9 -5
- package/dist/esm/components/Tabs/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +1 -1
- package/dist/esm/components/styled.js +5 -3
- package/dist/esm/util/styled.js +1 -1
- package/dist/types/components/Search/SearchResults/styled.d.ts +5 -6
- package/dist/types/components/styled.d.ts +3 -2
- package/dist/types-ts4.5/components/Search/SearchResults/styled.d.ts +5 -6
- package/dist/types-ts4.5/components/styled.d.ts +3 -2
- package/package.json +10 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useState, useLayoutEffect, useRef, useEffect, useCallback } from 'react';
|
|
@@ -104,6 +104,7 @@ export const Article = ({
|
|
|
104
104
|
in: showArticle,
|
|
105
105
|
timeout: SLIDEIN_OVERLAY_TRANSITION_DURATION_MS,
|
|
106
106
|
enter: !skipArticleSlideInAnimation,
|
|
107
|
+
nodeRef: articleContainerRef,
|
|
107
108
|
onEntered: onArticleEntered,
|
|
108
109
|
onExit: onArticleExit,
|
|
109
110
|
unmountOnExit: true,
|
|
@@ -128,6 +129,7 @@ export const Article = ({
|
|
|
128
129
|
in: showArticle,
|
|
129
130
|
timeout: SLIDEIN_OVERLAY_TRANSITION_DURATION_MS,
|
|
130
131
|
enter: !skipArticleSlideInAnimation,
|
|
132
|
+
nodeRef: articleContainerRef,
|
|
131
133
|
onEntered: onArticleEntered,
|
|
132
134
|
onExit: onArticleExit,
|
|
133
135
|
unmountOnExit: true,
|
|
@@ -9,7 +9,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
|
|
|
9
9
|
const ANALYTICS_CONTEXT_DATA = {
|
|
10
10
|
componentName: 'ArticlesListItem',
|
|
11
11
|
packageName: "@atlaskit/help",
|
|
12
|
-
packageVersion: "
|
|
12
|
+
packageVersion: "0.0.0-development"
|
|
13
13
|
};
|
|
14
14
|
const highlightText = text => {
|
|
15
15
|
if (!text) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import { Transition } from 'react-transition-group';
|
|
@@ -16,6 +16,7 @@ export const BackButton = ({
|
|
|
16
16
|
const {
|
|
17
17
|
createAnalyticsEvent
|
|
18
18
|
} = useAnalyticsEvents();
|
|
19
|
+
const transitionRef = useRef(null);
|
|
19
20
|
const handleOnClick = event => {
|
|
20
21
|
if (onClick) {
|
|
21
22
|
const analyticsEvent = createAnalyticsEvent({
|
|
@@ -27,9 +28,11 @@ export const BackButton = ({
|
|
|
27
28
|
return /*#__PURE__*/React.createElement(Transition, {
|
|
28
29
|
in: isVisible,
|
|
29
30
|
timeout: BACK_BUTTON_CONTAINER_TRANSITION_DURATION_MS,
|
|
31
|
+
nodeRef: transitionRef,
|
|
30
32
|
mountOnEnter: true,
|
|
31
33
|
unmountOnExit: true
|
|
32
34
|
}, state => /*#__PURE__*/React.createElement(BackButtonContainer, {
|
|
35
|
+
ref: transitionRef,
|
|
33
36
|
transitionState: state
|
|
34
37
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
35
38
|
onClick: event => {
|
|
@@ -49,7 +52,7 @@ const BackButtonWithContext = props => {
|
|
|
49
52
|
data: {
|
|
50
53
|
componentName: 'backButton',
|
|
51
54
|
packageName: "@atlaskit/help",
|
|
52
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "0.0.0-development"
|
|
53
56
|
}
|
|
54
57
|
}, /*#__PURE__*/React.createElement(BackButton, props));
|
|
55
58
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { withAnalyticsEvents, withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
|
-
import { IntlProvider } from 'react-intl
|
|
4
|
+
import { IntlProvider as ReactIntlProvider } from 'react-intl';
|
|
5
|
+
import { IntlProvider as ReactIntlNextProvider } from 'react-intl-next';
|
|
5
6
|
import { defaultAnalyticsAttributes } from '../analytics';
|
|
6
7
|
import { HeaderContextProvider } from './contexts/headerContext';
|
|
7
8
|
import { HomeContextProvider } from './contexts/homeContext';
|
|
@@ -15,10 +16,13 @@ import HelpContent from './HelpContent';
|
|
|
15
16
|
const LocaleIntlProvider = ({
|
|
16
17
|
locale = 'en',
|
|
17
18
|
children
|
|
18
|
-
}) => /*#__PURE__*/React.createElement(
|
|
19
|
-
key: locale
|
|
19
|
+
}) => /*#__PURE__*/React.createElement(ReactIntlProvider, {
|
|
20
|
+
key: `v6-${locale}`,
|
|
20
21
|
locale: locale
|
|
21
|
-
},
|
|
22
|
+
}, /*#__PURE__*/React.createElement(ReactIntlNextProvider, {
|
|
23
|
+
key: `v5-${locale}`,
|
|
24
|
+
locale: locale
|
|
25
|
+
}, children));
|
|
22
26
|
export class Help extends React.PureComponent {
|
|
23
27
|
render() {
|
|
24
28
|
const {
|
|
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
|
|
|
7
7
|
const analitycsContextData = {
|
|
8
8
|
componentName: 'HelpContentButton',
|
|
9
9
|
packageName: "@atlaskit/help",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "0.0.0-development"
|
|
11
11
|
};
|
|
12
12
|
const HelpContentButton = ({
|
|
13
13
|
id = '',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
/** @jsxFrag */
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -16,7 +16,7 @@ import { RelatedArticlesTitle } from './styled';
|
|
|
16
16
|
import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
17
17
|
import { usePrevious } from '../../util/hooks/previous';
|
|
18
18
|
const packageName = "@atlaskit/help";
|
|
19
|
-
const packageVersion = "
|
|
19
|
+
const packageVersion = "0.0.0-development";
|
|
20
20
|
const buttonStyles = null;
|
|
21
21
|
export const RelatedArticles = ({
|
|
22
22
|
style = 'primary',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useRef, useCallback } from 'react';
|
|
@@ -18,7 +18,7 @@ import { useNavigationContext } from '../../contexts/navigationContext';
|
|
|
18
18
|
const ANALYTICS_CONTEXT_DATA = {
|
|
19
19
|
componentName: 'searchInput',
|
|
20
20
|
packageName: "@atlaskit/help",
|
|
21
|
-
packageVersion: "
|
|
21
|
+
packageVersion: "0.0.0-development"
|
|
22
22
|
};
|
|
23
23
|
const buttonStyles = null;
|
|
24
24
|
export const SearchInput = ({
|
|
@@ -41,6 +41,8 @@ export const SearchResults = ({
|
|
|
41
41
|
}, [onSearchResultItemClick, openArticle, openExternalSearchUrlInNewTab]);
|
|
42
42
|
const [suggestionsCount, setSuggestionsCount] = useState(0);
|
|
43
43
|
const liveRegionRef = useRef(null);
|
|
44
|
+
const searchResultsAiRef = useRef(null);
|
|
45
|
+
const searchResultsRef = useRef(null);
|
|
44
46
|
useEffect(() => {
|
|
45
47
|
if (searchResult) {
|
|
46
48
|
setSuggestionsCount(searchResult.length);
|
|
@@ -50,8 +52,10 @@ export const SearchResults = ({
|
|
|
50
52
|
}, [searchResult]);
|
|
51
53
|
return isAiEnabled ? /*#__PURE__*/React.createElement(Transition, {
|
|
52
54
|
in: view === VIEW.SEARCH && isSearchResultVisible,
|
|
53
|
-
timeout: FADEIN_OVERLAY_TRANSITION_DURATION_MS
|
|
55
|
+
timeout: FADEIN_OVERLAY_TRANSITION_DURATION_MS,
|
|
56
|
+
nodeRef: searchResultsAiRef
|
|
54
57
|
}, state => /*#__PURE__*/React.createElement(SearchResultsContainerAi, {
|
|
58
|
+
ref: searchResultsAiRef,
|
|
55
59
|
transitionState: state
|
|
56
60
|
}, /*#__PURE__*/React.createElement("div", {
|
|
57
61
|
ref: liveRegionRef,
|
|
@@ -89,8 +93,10 @@ export const SearchResults = ({
|
|
|
89
93
|
onSearch: onSearch
|
|
90
94
|
}))) : /*#__PURE__*/React.createElement(Transition, {
|
|
91
95
|
in: view === VIEW.SEARCH && isSearchResultVisible,
|
|
92
|
-
timeout: FADEIN_OVERLAY_TRANSITION_DURATION_MS
|
|
96
|
+
timeout: FADEIN_OVERLAY_TRANSITION_DURATION_MS,
|
|
97
|
+
nodeRef: searchResultsRef
|
|
93
98
|
}, state => /*#__PURE__*/React.createElement(SearchResultsContainer, {
|
|
99
|
+
ref: searchResultsRef,
|
|
94
100
|
transitionState: state
|
|
95
101
|
}, /*#__PURE__*/React.createElement("div", {
|
|
96
102
|
ref: liveRegionRef,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* styled.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./styled.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -23,21 +23,25 @@ const transitionStyles = {
|
|
|
23
23
|
visibility: 'hidden'
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
export const SearchResultsContainer = ({
|
|
26
|
+
export const SearchResultsContainer = /*#__PURE__*/React.forwardRef(({
|
|
27
27
|
children,
|
|
28
28
|
transitionState
|
|
29
|
-
}) => /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
}, ref) => /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
ref: ref,
|
|
30
31
|
style: transitionStyles[transitionState],
|
|
31
32
|
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _v5643rtd _kqswstnw _4t3i1osq _1bsb1osq _154iidpf _bfhkvuon _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbyzo7u _ca0qidpf _u5f3pxbi _n3tdidpf _19bvpxbi _tzy4idpf _3um015vq"])
|
|
32
|
-
}, children);
|
|
33
|
+
}, children));
|
|
34
|
+
SearchResultsContainer.displayName = 'SearchResultsContainer';
|
|
33
35
|
const searchResultsContainerAiStyles = null;
|
|
34
|
-
export const SearchResultsContainerAi = ({
|
|
36
|
+
export const SearchResultsContainerAi = /*#__PURE__*/React.forwardRef(({
|
|
35
37
|
children,
|
|
36
38
|
transitionState
|
|
37
|
-
}) => /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
}, ref) => /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
ref: ref,
|
|
38
41
|
style: transitionStyles[transitionState],
|
|
39
42
|
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _v5643rtd _kqswstnw _4t3i1kz6 _1bsb1osq _154i1eca _bfhkvuon _2lx21bp4 _vchhusvi _1reo15vq _18m91wug _1pbyzo7u _ca0qidpf _u5f3pxbi _n3tdidpf _19bvpxbi _tzy4idpf _3um015vq"])
|
|
40
|
-
}, children);
|
|
43
|
+
}, children));
|
|
44
|
+
SearchResultsContainerAi.displayName = 'SearchResultsContainerAi';
|
|
41
45
|
const searchResultEmptyMessageImageStyles = null;
|
|
42
46
|
export const SearchResultEmptyMessageImage = ({
|
|
43
47
|
children
|
|
@@ -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: "
|
|
14
|
+
packageVersion: "0.0.0-development"
|
|
15
15
|
};
|
|
16
16
|
export const WhatsNewButton = ({
|
|
17
17
|
productName,
|
|
@@ -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: "
|
|
11
|
+
packageVersion: "0.0.0-development"
|
|
12
12
|
};
|
|
13
13
|
export const WhatsNewResultListItem = ({
|
|
14
14
|
intl: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* styled.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./styled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -65,14 +65,16 @@ const backButtonContainerTransitionStyles = {
|
|
|
65
65
|
opacity: 0
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
export const BackButtonContainer = ({
|
|
68
|
+
export const BackButtonContainer = /*#__PURE__*/React.forwardRef(({
|
|
69
69
|
transitionState,
|
|
70
70
|
children
|
|
71
|
-
}) => /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
}, ref) => /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
ref: ref,
|
|
72
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
73
74
|
style: backButtonContainerTransitionStyles[transitionState],
|
|
74
75
|
className: ax(["_v5641kd4 _kqswstnw _19pkou31 _1ltv1ejb _4t3ixy5q _tzy4idpf"])
|
|
75
|
-
}, children);
|
|
76
|
+
}, children));
|
|
77
|
+
BackButtonContainer.displayName = 'BackButtonContainer';
|
|
76
78
|
const ulStyles = null;
|
|
77
79
|
export const StyledUl = ({
|
|
78
80
|
children
|
package/dist/esm/analytics.js
CHANGED
|
@@ -10,7 +10,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer, LoadingErrorHeading }
|
|
|
10
10
|
var ANALYTICS_CONTEXT_DATA = {
|
|
11
11
|
componentName: 'ArticleLoadingFail',
|
|
12
12
|
packageName: "@atlaskit/help",
|
|
13
|
-
packageVersion: "
|
|
13
|
+
packageVersion: "0.0.0-development"
|
|
14
14
|
};
|
|
15
15
|
export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
|
|
16
16
|
var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
|
|
@@ -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: "
|
|
9
|
+
packageVersion: "0.0.0-development"
|
|
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: "
|
|
9
|
+
packageVersion: "0.0.0-development"
|
|
10
10
|
};
|
|
11
11
|
export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
|
|
12
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -27,7 +27,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
|
27
27
|
var ANALYTICS_CONTEXT_DATA = {
|
|
28
28
|
componentName: 'ArticleWasHelpfulForm',
|
|
29
29
|
packageName: "@atlaskit/help",
|
|
30
|
-
packageVersion: "
|
|
30
|
+
packageVersion: "0.0.0-development"
|
|
31
31
|
};
|
|
32
32
|
var buttonStyles = null;
|
|
33
33
|
export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* styled.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["id", "top", "paddingRight", "children"];
|
|
@@ -56,7 +56,7 @@ export var HelpArticle = function HelpArticle(_ref) {
|
|
|
56
56
|
analyticsEvent.payload.attributes = {
|
|
57
57
|
componentName: 'Article',
|
|
58
58
|
packageName: "@atlaskit/help",
|
|
59
|
-
packageVersion: "
|
|
59
|
+
packageVersion: "0.0.0-development"
|
|
60
60
|
};
|
|
61
61
|
if (onRelatedArticlesShowMoreClick) {
|
|
62
62
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -13,7 +13,7 @@ import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLin
|
|
|
13
13
|
var analyticsContextData = {
|
|
14
14
|
componentName: 'ArticlesListItem',
|
|
15
15
|
packageName: "@atlaskit/help",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "0.0.0-development"
|
|
17
17
|
};
|
|
18
18
|
export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
19
19
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -114,6 +114,7 @@ export var Article = function Article(_ref) {
|
|
|
114
114
|
in: showArticle,
|
|
115
115
|
timeout: SLIDEIN_OVERLAY_TRANSITION_DURATION_MS,
|
|
116
116
|
enter: !skipArticleSlideInAnimation,
|
|
117
|
+
nodeRef: articleContainerRef,
|
|
117
118
|
onEntered: onArticleEntered,
|
|
118
119
|
onExit: onArticleExit,
|
|
119
120
|
unmountOnExit: true,
|
|
@@ -133,6 +134,7 @@ export var Article = function Article(_ref) {
|
|
|
133
134
|
in: showArticle,
|
|
134
135
|
timeout: SLIDEIN_OVERLAY_TRANSITION_DURATION_MS,
|
|
135
136
|
enter: !skipArticleSlideInAnimation,
|
|
137
|
+
nodeRef: articleContainerRef,
|
|
136
138
|
onEntered: onArticleEntered,
|
|
137
139
|
onExit: onArticleExit,
|
|
138
140
|
unmountOnExit: true,
|
|
@@ -9,7 +9,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
|
|
|
9
9
|
var ANALYTICS_CONTEXT_DATA = {
|
|
10
10
|
componentName: 'ArticlesListItem',
|
|
11
11
|
packageName: "@atlaskit/help",
|
|
12
|
-
packageVersion: "
|
|
12
|
+
packageVersion: "0.0.0-development"
|
|
13
13
|
};
|
|
14
14
|
var highlightText = function highlightText(text) {
|
|
15
15
|
if (!text) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* styled.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import { Transition } from 'react-transition-group';
|
|
@@ -13,6 +13,7 @@ export var BackButton = function BackButton(_ref) {
|
|
|
13
13
|
formatMessage = _ref.intl.formatMessage;
|
|
14
14
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
15
15
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
16
|
+
var transitionRef = useRef(null);
|
|
16
17
|
var handleOnClick = function handleOnClick(event) {
|
|
17
18
|
if (onClick) {
|
|
18
19
|
var _analyticsEvent = createAnalyticsEvent({
|
|
@@ -24,10 +25,12 @@ export var BackButton = function BackButton(_ref) {
|
|
|
24
25
|
return /*#__PURE__*/React.createElement(Transition, {
|
|
25
26
|
in: isVisible,
|
|
26
27
|
timeout: BACK_BUTTON_CONTAINER_TRANSITION_DURATION_MS,
|
|
28
|
+
nodeRef: transitionRef,
|
|
27
29
|
mountOnEnter: true,
|
|
28
30
|
unmountOnExit: true
|
|
29
31
|
}, function (state) {
|
|
30
32
|
return /*#__PURE__*/React.createElement(BackButtonContainer, {
|
|
33
|
+
ref: transitionRef,
|
|
31
34
|
transitionState: state
|
|
32
35
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
33
36
|
onClick: function onClick(event) {
|
|
@@ -48,7 +51,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
|
|
|
48
51
|
data: {
|
|
49
52
|
componentName: 'backButton',
|
|
50
53
|
packageName: "@atlaskit/help",
|
|
51
|
-
packageVersion: "
|
|
54
|
+
packageVersion: "0.0.0-development"
|
|
52
55
|
}
|
|
53
56
|
}, /*#__PURE__*/React.createElement(BackButton, props));
|
|
54
57
|
};
|
|
@@ -10,7 +10,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
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';
|
|
13
|
-
import { IntlProvider } from 'react-intl
|
|
13
|
+
import { IntlProvider as ReactIntlProvider } from 'react-intl';
|
|
14
|
+
import { IntlProvider as ReactIntlNextProvider } from 'react-intl-next';
|
|
14
15
|
import { defaultAnalyticsAttributes } from '../analytics';
|
|
15
16
|
import { HeaderContextProvider } from './contexts/headerContext';
|
|
16
17
|
import { HomeContextProvider } from './contexts/homeContext';
|
|
@@ -25,10 +26,13 @@ var LocaleIntlProvider = function LocaleIntlProvider(_ref) {
|
|
|
25
26
|
var _ref$locale = _ref.locale,
|
|
26
27
|
locale = _ref$locale === void 0 ? 'en' : _ref$locale,
|
|
27
28
|
children = _ref.children;
|
|
28
|
-
return /*#__PURE__*/React.createElement(
|
|
29
|
-
key: locale,
|
|
29
|
+
return /*#__PURE__*/React.createElement(ReactIntlProvider, {
|
|
30
|
+
key: "v6-".concat(locale),
|
|
30
31
|
locale: locale
|
|
31
|
-
},
|
|
32
|
+
}, /*#__PURE__*/React.createElement(ReactIntlNextProvider, {
|
|
33
|
+
key: "v5-".concat(locale),
|
|
34
|
+
locale: locale
|
|
35
|
+
}, children));
|
|
32
36
|
};
|
|
33
37
|
export var Help = /*#__PURE__*/function (_React$PureComponent) {
|
|
34
38
|
function Help() {
|
|
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
|
|
|
7
7
|
var analitycsContextData = {
|
|
8
8
|
componentName: 'HelpContentButton',
|
|
9
9
|
packageName: "@atlaskit/help",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "0.0.0-development"
|
|
11
11
|
};
|
|
12
12
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
13
13
|
var _ref$id = _ref.id,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -20,7 +20,7 @@ import { RelatedArticlesTitle } from './styled';
|
|
|
20
20
|
import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
21
21
|
import { usePrevious } from '../../util/hooks/previous';
|
|
22
22
|
var packageName = "@atlaskit/help";
|
|
23
|
-
var packageVersion = "
|
|
23
|
+
var packageVersion = "0.0.0-development";
|
|
24
24
|
var buttonStyles = null;
|
|
25
25
|
export var RelatedArticles = function RelatedArticles(_ref) {
|
|
26
26
|
var _ref$style = _ref.style,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* styled.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children"];
|