@atlaskit/help 9.1.24 → 9.1.25
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 +6 -0
- package/afm-products/tsconfig.json +93 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +3 -2
- package/dist/cjs/components/Article/HelpArticle/Loading/index.js +2 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +3 -2
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +3 -2
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +3 -2
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/Loading/index.js +2 -1
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +3 -2
- package/dist/cjs/components/ArticlesList/ArticlesList.js +11 -33
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +3 -2
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/cjs/components/BackButton/index.js +3 -2
- package/dist/cjs/components/Help.js +2 -1
- package/dist/cjs/components/HelpContent.js +2 -1
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/RelatedArticles/RelatedArticlesLoading.js +2 -1
- package/dist/cjs/components/RelatedArticles/index.js +4 -3
- package/dist/cjs/components/RelatedArticles/styled.js +1 -0
- package/dist/cjs/components/Search/SearchInput/index.js +3 -2
- package/dist/cjs/components/Search/SearchResults/SearchExternalSite.js +2 -1
- package/dist/cjs/components/Search/SearchResults/SearchResultsEmpty.js +2 -1
- package/dist/cjs/components/Search/SearchResults/SearchResultsError.js +2 -1
- package/dist/cjs/components/ShowMoreButton/index.js +2 -1
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +3 -2
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.js +2 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.js +2 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +3 -2
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +2 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/index.js +2 -1
- package/dist/cjs/components/contexts/aiAgentContext.js +3 -5
- package/dist/cjs/components/contexts/headerContext.js +3 -5
- package/dist/cjs/components/contexts/helpArticleContext.js +3 -5
- package/dist/cjs/components/contexts/homeContext.js +3 -5
- package/dist/cjs/components/contexts/navigationContext.js +4 -5
- package/dist/cjs/components/contexts/relatedArticlesContext.js +3 -5
- package/dist/cjs/components/contexts/searchContext.js +3 -4
- package/dist/cjs/components/contexts/whatsNewArticleContext.js +3 -4
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +3 -2
- package/dist/es2019/components/Article/HelpArticle/Loading/index.js +2 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +3 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +3 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +3 -2
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/Loading/index.js +2 -1
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +3 -2
- package/dist/es2019/components/ArticlesList/ArticlesList.js +32 -50
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +3 -2
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/es2019/components/BackButton/index.js +3 -2
- package/dist/es2019/components/Help.js +2 -1
- package/dist/es2019/components/HelpContent.js +2 -1
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/RelatedArticles/RelatedArticlesLoading.js +2 -1
- package/dist/es2019/components/RelatedArticles/index.js +4 -3
- package/dist/es2019/components/RelatedArticles/styled.js +1 -0
- package/dist/es2019/components/Search/SearchInput/index.js +3 -2
- package/dist/es2019/components/Search/SearchResults/SearchExternalSite.js +2 -1
- package/dist/es2019/components/Search/SearchResults/SearchResultsEmpty.js +2 -1
- package/dist/es2019/components/Search/SearchResults/SearchResultsError.js +2 -1
- package/dist/es2019/components/ShowMoreButton/index.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +3 -2
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +3 -2
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/index.js +2 -1
- package/dist/es2019/components/contexts/aiAgentContext.js +3 -1
- package/dist/es2019/components/contexts/headerContext.js +3 -1
- package/dist/es2019/components/contexts/helpArticleContext.js +3 -1
- package/dist/es2019/components/contexts/homeContext.js +3 -1
- package/dist/es2019/components/contexts/navigationContext.js +3 -1
- package/dist/es2019/components/contexts/relatedArticlesContext.js +3 -1
- package/dist/es2019/components/contexts/searchContext.js +3 -1
- package/dist/es2019/components/contexts/whatsNewArticleContext.js +3 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/index.js +3 -2
- package/dist/esm/components/Article/HelpArticle/Loading/index.js +2 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +3 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +3 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +3 -2
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/Loading/index.js +2 -1
- package/dist/esm/components/Article/WhatsNewArticle/index.js +3 -2
- package/dist/esm/components/ArticlesList/ArticlesList.js +12 -34
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +3 -2
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/esm/components/BackButton/index.js +3 -2
- package/dist/esm/components/Help.js +2 -1
- package/dist/esm/components/HelpContent.js +2 -1
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/RelatedArticles/RelatedArticlesLoading.js +2 -1
- package/dist/esm/components/RelatedArticles/index.js +4 -3
- package/dist/esm/components/RelatedArticles/styled.js +1 -0
- package/dist/esm/components/Search/SearchInput/index.js +3 -2
- package/dist/esm/components/Search/SearchResults/SearchExternalSite.js +2 -1
- package/dist/esm/components/Search/SearchResults/SearchResultsEmpty.js +2 -1
- package/dist/esm/components/Search/SearchResults/SearchResultsError.js +2 -1
- package/dist/esm/components/ShowMoreButton/index.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +3 -2
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +3 -2
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/index.js +2 -1
- package/dist/esm/components/contexts/aiAgentContext.js +3 -6
- package/dist/esm/components/contexts/headerContext.js +3 -6
- package/dist/esm/components/contexts/helpArticleContext.js +3 -6
- package/dist/esm/components/contexts/homeContext.js +3 -6
- package/dist/esm/components/contexts/navigationContext.js +4 -6
- package/dist/esm/components/contexts/relatedArticlesContext.js +3 -6
- package/dist/esm/components/contexts/searchContext.js +3 -5
- package/dist/esm/components/contexts/whatsNewArticleContext.js +3 -5
- package/dist/types/analytics.d.ts +5 -3
- package/dist/types/assets/IconWrapper.d.ts +1 -1
- package/dist/types/components/Article/ArticleLoadingFail/index.d.ts +4 -4
- package/dist/types/components/Article/ArticleLoadingFail/styled.d.ts +1 -1
- package/dist/types/components/Article/HelpArticle/Loading/index.d.ts +3 -3
- package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +3 -3
- package/dist/types/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +3 -3
- package/dist/types/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +3 -3
- package/dist/types/components/Article/HelpArticle/WasHelpfulForm/styled.d.ts +2 -2
- package/dist/types/components/Article/WhatsNewArticle/Loading/index.d.ts +3 -3
- package/dist/types/components/Article/WhatsNewArticle/index.d.ts +3 -3
- package/dist/types/components/Article/WhatsNewArticle/styled.d.ts +1 -1
- package/dist/types/components/ArticlesList/ArticlesListItem/index.d.ts +3 -3
- package/dist/types/components/ArticlesList/ArticlesListItem/styled.d.ts +10 -10
- package/dist/types/components/ArticlesList/styled.d.ts +1 -1
- package/dist/types/components/BackButton/index.d.ts +3 -3
- package/dist/types/components/Help.d.ts +3 -3
- package/dist/types/components/HelpContent.d.ts +3 -3
- package/dist/types/components/RelatedArticles/RelatedArticlesLoading.d.ts +3 -3
- package/dist/types/components/RelatedArticles/index.d.ts +4 -4
- package/dist/types/components/RelatedArticles/styled.d.ts +1 -1
- package/dist/types/components/Search/SearchInput/index.d.ts +3 -3
- package/dist/types/components/Search/SearchInput/styled.d.ts +2 -2
- package/dist/types/components/Search/SearchResults/SearchExternalSite.d.ts +3 -3
- package/dist/types/components/Search/SearchResults/SearchResultsEmpty.d.ts +3 -3
- package/dist/types/components/Search/SearchResults/SearchResultsError.d.ts +3 -3
- package/dist/types/components/Search/SearchResults/styled.d.ts +3 -3
- package/dist/types/components/ShowMoreButton/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewButton/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.d.ts +2 -2
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.d.ts +2 -2
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.d.ts +2 -2
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.d.ts +2 -2
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.d.ts +1 -1
- package/dist/types/components/WhatsNew/WhatsNewResults/index.d.ts +3 -3
- package/dist/types/components/WhatsNew/WhatsNewResults/styled.d.ts +2 -2
- package/dist/types/components/contexts/aiAgentContext.d.ts +2 -1
- package/dist/types/components/contexts/headerContext.d.ts +2 -1
- package/dist/types/components/contexts/helpArticleContext.d.ts +2 -1
- package/dist/types/components/contexts/homeContext.d.ts +2 -1
- package/dist/types/components/contexts/navigationContext.d.ts +2 -1
- package/dist/types/components/contexts/relatedArticlesContext.d.ts +2 -1
- package/dist/types/components/contexts/searchContext.d.ts +2 -1
- package/dist/types/components/contexts/whatsNewArticleContext.d.ts +2 -1
- package/dist/types/components/styled.d.ts +2 -2
- package/dist/types/messages.d.ts +113 -113
- package/dist/types/util/hooks/cancellablePromise.d.ts +1 -1
- package/dist/types/util/hooks/ctx.d.ts +5 -1
- package/dist/types/util/index.d.ts +3 -2
- package/dist/types-ts4.5/analytics.d.ts +5 -3
- package/dist/types-ts4.5/assets/IconWrapper.d.ts +1 -1
- package/dist/types-ts4.5/components/Article/ArticleLoadingFail/index.d.ts +4 -4
- package/dist/types-ts4.5/components/Article/ArticleLoadingFail/styled.d.ts +1 -1
- package/dist/types-ts4.5/components/Article/HelpArticle/Loading/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.d.ts +3 -3
- package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.d.ts +3 -3
- package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Article/HelpArticle/WasHelpfulForm/styled.d.ts +2 -2
- package/dist/types-ts4.5/components/Article/WhatsNewArticle/Loading/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Article/WhatsNewArticle/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Article/WhatsNewArticle/styled.d.ts +1 -1
- package/dist/types-ts4.5/components/ArticlesList/ArticlesListItem/index.d.ts +3 -3
- package/dist/types-ts4.5/components/ArticlesList/ArticlesListItem/styled.d.ts +10 -10
- package/dist/types-ts4.5/components/ArticlesList/styled.d.ts +1 -1
- package/dist/types-ts4.5/components/BackButton/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Help.d.ts +3 -3
- package/dist/types-ts4.5/components/HelpContent.d.ts +3 -3
- package/dist/types-ts4.5/components/RelatedArticles/RelatedArticlesLoading.d.ts +3 -3
- package/dist/types-ts4.5/components/RelatedArticles/index.d.ts +4 -4
- package/dist/types-ts4.5/components/RelatedArticles/styled.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/SearchInput/index.d.ts +3 -3
- package/dist/types-ts4.5/components/Search/SearchInput/styled.d.ts +2 -2
- package/dist/types-ts4.5/components/Search/SearchResults/SearchExternalSite.d.ts +3 -3
- package/dist/types-ts4.5/components/Search/SearchResults/SearchResultsEmpty.d.ts +3 -3
- package/dist/types-ts4.5/components/Search/SearchResults/SearchResultsError.d.ts +3 -3
- package/dist/types-ts4.5/components/Search/SearchResults/styled.d.ts +3 -3
- package/dist/types-ts4.5/components/ShowMoreButton/index.d.ts +3 -3
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewButton/index.d.ts +3 -3
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/index.d.ts +3 -3
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.d.ts +2 -2
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/index.d.ts +3 -3
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.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/WhatsNewResultItem/styled.d.ts +2 -2
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.d.ts +2 -2
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/index.d.ts +3 -3
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.d.ts +1 -1
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/index.d.ts +3 -3
- package/dist/types-ts4.5/components/WhatsNew/WhatsNewResults/styled.d.ts +2 -2
- package/dist/types-ts4.5/components/contexts/aiAgentContext.d.ts +2 -1
- package/dist/types-ts4.5/components/contexts/headerContext.d.ts +2 -1
- package/dist/types-ts4.5/components/contexts/helpArticleContext.d.ts +2 -1
- package/dist/types-ts4.5/components/contexts/homeContext.d.ts +2 -1
- package/dist/types-ts4.5/components/contexts/navigationContext.d.ts +2 -1
- package/dist/types-ts4.5/components/contexts/relatedArticlesContext.d.ts +2 -1
- package/dist/types-ts4.5/components/contexts/searchContext.d.ts +2 -1
- package/dist/types-ts4.5/components/contexts/whatsNewArticleContext.d.ts +2 -1
- package/dist/types-ts4.5/components/styled.d.ts +2 -2
- package/dist/types-ts4.5/messages.d.ts +113 -113
- package/dist/types-ts4.5/util/hooks/cancellablePromise.d.ts +1 -1
- package/dist/types-ts4.5/util/hooks/ctx.d.ts +2 -1
- package/dist/types-ts4.5/util/index.d.ts +3 -2
- package/docs/0-intro.tsx +2 -1
- package/package.json +6 -6
- package/afm-post-office/tsconfig.json +0 -93
- package/afm-townsquare/tsconfig.json +0 -93
- package/afm-volt/tsconfig.json +0 -93
|
@@ -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.1.
|
|
9
|
+
packageVersion: "9.1.24"
|
|
10
10
|
};
|
|
11
11
|
export var ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
|
|
12
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -36,4 +36,5 @@ var ArticleWasHelpfulNoButtonWithContext = function ArticleWasHelpfulNoButtonWit
|
|
|
36
36
|
data: ANALYTICS_CONTEXT_DATA
|
|
37
37
|
}, /*#__PURE__*/React.createElement(ArticleWasHelpfulNoButton, props));
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
var _default_1 = injectIntl(ArticleWasHelpfulNoButtonWithContext);
|
|
40
|
+
export default _default_1;
|
|
@@ -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.1.
|
|
9
|
+
packageVersion: "9.1.24"
|
|
10
10
|
};
|
|
11
11
|
export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
|
|
12
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -36,4 +36,5 @@ var ArticleWasHelpfulYesButtonWithContext = function ArticleWasHelpfulYesButtonW
|
|
|
36
36
|
data: ANALYTICS_CONTEXT_DATA
|
|
37
37
|
}, /*#__PURE__*/React.createElement(ArticleWasHelpfulYesButton, props));
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
var _default_1 = injectIntl(ArticleWasHelpfulYesButtonWithContext);
|
|
40
|
+
export default _default_1;
|
|
@@ -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: "9.1.
|
|
30
|
+
packageVersion: "9.1.24"
|
|
31
31
|
};
|
|
32
32
|
var buttonStyles = null;
|
|
33
33
|
export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
@@ -267,4 +267,5 @@ var ArticleWasHelpfulFormWithContext = function ArticleWasHelpfulFormWithContext
|
|
|
267
267
|
data: ANALYTICS_CONTEXT_DATA
|
|
268
268
|
}, /*#__PURE__*/React.createElement(ArticleWasHelpfulForm, props));
|
|
269
269
|
};
|
|
270
|
-
|
|
270
|
+
var _default_1 = injectIntl(ArticleWasHelpfulFormWithContext);
|
|
271
|
+
export default _default_1;
|
|
@@ -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: "9.1.
|
|
59
|
+
packageVersion: "9.1.24"
|
|
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: "9.1.
|
|
16
|
+
packageVersion: "9.1.24"
|
|
17
17
|
};
|
|
18
18
|
export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
19
19
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -67,4 +67,5 @@ var WhatsNewArticleWithContext = function WhatsNewArticleWithContext(props) {
|
|
|
67
67
|
data: analyticsContextData
|
|
68
68
|
}, /*#__PURE__*/React.createElement(WhatsNewArticle, props));
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
var _default_1 = injectIntl(WhatsNewArticleWithContext);
|
|
71
|
+
export default _default_1;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
3
|
-
import AnimateHeight from 'react-animate-height';
|
|
4
3
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
4
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
5
|
import ArticlesListItem from './ArticlesListItem';
|
|
7
|
-
import { MIN_ITEMS_TO_DISPLAY
|
|
6
|
+
import { MIN_ITEMS_TO_DISPLAY } from './constants';
|
|
8
7
|
var listStyles = xcss({
|
|
9
8
|
listStyle: 'none'
|
|
10
9
|
});
|
|
@@ -32,40 +31,20 @@ var articlesList = function articlesList(_ref) {
|
|
|
32
31
|
_ref$numberOfArticles = _ref.numberOfArticlesToDisplay,
|
|
33
32
|
numberOfArticlesToDisplay = _ref$numberOfArticles === void 0 ? MIN_ITEMS_TO_DISPLAY : _ref$numberOfArticles,
|
|
34
33
|
onArticlesListItemClick = _ref.onArticlesListItemClick;
|
|
35
|
-
|
|
34
|
+
var isExpanded = numberOfArticlesToDisplay > minItemsToDisplay;
|
|
35
|
+
return articles ? /*#__PURE__*/React.createElement(Box, {
|
|
36
36
|
as: "ul",
|
|
37
|
-
padding: "space.0"
|
|
38
|
-
|
|
37
|
+
padding: "space.0",
|
|
38
|
+
role: "list"
|
|
39
|
+
}, articles.slice(0, numberOfArticlesToDisplay).map(function (article, index) {
|
|
40
|
+
var isVisible = index < minItemsToDisplay || isExpanded;
|
|
39
41
|
return /*#__PURE__*/React.createElement(Box, {
|
|
40
42
|
as: "li",
|
|
41
|
-
xcss: listStyles
|
|
42
|
-
}, /*#__PURE__*/React.createElement(ArticlesListItem, {
|
|
43
|
-
styles: getStyles(style),
|
|
44
|
-
id: article.id,
|
|
45
|
-
onClick: function onClick(event, analyticsEvent) {
|
|
46
|
-
if (onArticlesListItemClick) {
|
|
47
|
-
onArticlesListItemClick(event, analyticsEvent, article);
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
title: article.title,
|
|
51
|
-
description: article.description,
|
|
43
|
+
xcss: listStyles,
|
|
52
44
|
key: article.id,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
lastPublished: article.lastPublished
|
|
57
|
-
}));
|
|
58
|
-
})), /*#__PURE__*/React.createElement(AnimateHeight, {
|
|
59
|
-
duration: ANIMATE_HEIGHT_TRANSITION_DURATION_MS,
|
|
60
|
-
easing: "linear",
|
|
61
|
-
height: numberOfArticlesToDisplay > minItemsToDisplay ? 'auto' : 0
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
63
|
-
as: "ul",
|
|
64
|
-
padding: "space.0"
|
|
65
|
-
}, articles.slice(minItemsToDisplay, articles.length).map(function (article) {
|
|
66
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
67
|
-
as: "li",
|
|
68
|
-
xcss: listStyles
|
|
45
|
+
style: {
|
|
46
|
+
display: isVisible ? 'block' : 'none'
|
|
47
|
+
}
|
|
69
48
|
}, /*#__PURE__*/React.createElement(ArticlesListItem, {
|
|
70
49
|
styles: getStyles(style),
|
|
71
50
|
id: article.id,
|
|
@@ -76,12 +55,11 @@ var articlesList = function articlesList(_ref) {
|
|
|
76
55
|
},
|
|
77
56
|
title: article.title,
|
|
78
57
|
description: article.description,
|
|
79
|
-
key: article.id,
|
|
80
58
|
href: article.href,
|
|
81
59
|
trustFactors: article.trustFactors,
|
|
82
60
|
source: article.source,
|
|
83
61
|
lastPublished: article.lastPublished
|
|
84
62
|
}));
|
|
85
|
-
}))
|
|
63
|
+
})) : null;
|
|
86
64
|
};
|
|
87
65
|
export default articlesList;
|
|
@@ -8,7 +8,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
|
|
|
8
8
|
var ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticlesListItem',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "9.1.
|
|
11
|
+
packageVersion: "9.1.24"
|
|
12
12
|
};
|
|
13
13
|
var highlightText = function highlightText(text) {
|
|
14
14
|
if (!text) {
|
|
@@ -79,4 +79,5 @@ var ArticlesListItemWithContext = function ArticlesListItemWithContext(props) {
|
|
|
79
79
|
data: ANALYTICS_CONTEXT_DATA
|
|
80
80
|
}, /*#__PURE__*/React.createElement(ArticlesListItem, props));
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
var _default_1 = injectIntl(ArticlesListItemWithContext);
|
|
83
|
+
export default _default_1;
|
|
@@ -49,8 +49,9 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
|
|
|
49
49
|
data: {
|
|
50
50
|
componentName: 'backButton',
|
|
51
51
|
packageName: "@atlaskit/help",
|
|
52
|
-
packageVersion: "9.1.
|
|
52
|
+
packageVersion: "9.1.24"
|
|
53
53
|
}
|
|
54
54
|
}, /*#__PURE__*/React.createElement(BackButton, props));
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
var _default_1 = injectIntl(BackButtonWithContext);
|
|
57
|
+
export default _default_1;
|
|
@@ -51,4 +51,5 @@ export var Help = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
51
51
|
}
|
|
52
52
|
}]);
|
|
53
53
|
}(React.PureComponent);
|
|
54
|
-
|
|
54
|
+
var _default_1 = withAnalyticsContext(defaultAnalyticsAttributes)(withAnalyticsEvents()(Help));
|
|
55
|
+
export default _default_1;
|
|
@@ -146,4 +146,5 @@ export var HelpContent = function HelpContent(_ref) {
|
|
|
146
146
|
})))), /*#__PURE__*/React.createElement(WhatsNewResults, null)));
|
|
147
147
|
return isAiEnabled ? HelpLayoutWithAi : HelpLayoutWithoutAi;
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
var _default_1 = injectIntl(HelpContent);
|
|
150
|
+
export default _default_1;
|
|
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
|
|
|
7
7
|
var analitycsContextData = {
|
|
8
8
|
componentName: 'HelpContentButton',
|
|
9
9
|
packageName: "@atlaskit/help",
|
|
10
|
-
packageVersion: "9.1.
|
|
10
|
+
packageVersion: "9.1.24"
|
|
11
11
|
};
|
|
12
12
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
13
13
|
var _ref$id = _ref.id,
|
|
@@ -58,4 +58,5 @@ var RelatedArticlesLoading = function RelatedArticlesLoading(_ref) {
|
|
|
58
58
|
marginTop: "4px"
|
|
59
59
|
})), /*#__PURE__*/React.createElement(DividerLine, null)));
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
var _default_1 = injectIntl(RelatedArticlesLoading);
|
|
62
|
+
export default _default_1;
|
|
@@ -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 = "9.1.
|
|
23
|
+
var packageVersion = "9.1.24";
|
|
24
24
|
var buttonStyles = null;
|
|
25
25
|
export var RelatedArticles = function RelatedArticles(_ref) {
|
|
26
26
|
var _ref$style = _ref.style,
|
|
@@ -125,8 +125,9 @@ export var RelatedArticles = function RelatedArticles(_ref) {
|
|
|
125
125
|
}));
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
|
|
128
|
+
var _default_1 = withAnalyticsContext({
|
|
129
129
|
componentName: 'RelatedArticles',
|
|
130
130
|
packageName: packageName,
|
|
131
131
|
packageVersion: packageVersion
|
|
132
|
-
})(injectIntl(RelatedArticles));
|
|
132
|
+
})(injectIntl(RelatedArticles));
|
|
133
|
+
export default _default_1;
|
|
@@ -18,7 +18,7 @@ import { useNavigationContext } from '../../contexts/navigationContext';
|
|
|
18
18
|
var ANALYTICS_CONTEXT_DATA = {
|
|
19
19
|
componentName: 'searchInput',
|
|
20
20
|
packageName: "@atlaskit/help",
|
|
21
|
-
packageVersion: "9.1.
|
|
21
|
+
packageVersion: "9.1.24"
|
|
22
22
|
};
|
|
23
23
|
var buttonStyles = null;
|
|
24
24
|
export var SearchInput = function SearchInput(_ref) {
|
|
@@ -112,4 +112,5 @@ var SearchInputWithContext = function SearchInputWithContext(props) {
|
|
|
112
112
|
data: ANALYTICS_CONTEXT_DATA
|
|
113
113
|
}, /*#__PURE__*/React.createElement(SearchInput, props));
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
var _default_1 = injectIntl(SearchInputWithContext);
|
|
116
|
+
export default _default_1;
|
|
@@ -41,4 +41,5 @@ export var SearchExternalSite = function SearchExternalSite(_ref) {
|
|
|
41
41
|
onClick: handleExternalUrlClick
|
|
42
42
|
}, formatMessage(messages.help_search_results_external_site_link))))) : null;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
var _default_1 = injectIntl(SearchExternalSite);
|
|
45
|
+
export default _default_1;
|
|
@@ -42,4 +42,5 @@ export var SearchResultsEmpty = function SearchResultsEmpty(_ref) {
|
|
|
42
42
|
onClick: handleExternalUrlClick
|
|
43
43
|
}, formatMessage(messages.help_search_results_external_site_link))))));
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
var _default_1 = injectIntl(SearchResultsEmpty);
|
|
46
|
+
export default _default_1;
|
|
@@ -19,4 +19,5 @@ export var SearchResultsError = function SearchResultsError(_ref) {
|
|
|
19
19
|
appearance: "primary"
|
|
20
20
|
}, formatMessage(messages.help_search_error_button_label))));
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
var _default_1 = injectIntl(SearchResultsError);
|
|
23
|
+
export default _default_1;
|
|
@@ -28,4 +28,5 @@ export var ShowMoreButton = function ShowMoreButton(_ref) {
|
|
|
28
28
|
onClick: onToggle
|
|
29
29
|
}, formatMessage(messages.help_show_more_button_label_less)));
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
var _default_1 = injectIntl(ShowMoreButton);
|
|
32
|
+
export default _default_1;
|
|
@@ -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: "9.1.
|
|
14
|
+
packageVersion: "9.1.24"
|
|
15
15
|
};
|
|
16
16
|
export var WhatsNewButton = function WhatsNewButton(_ref) {
|
|
17
17
|
var productName = _ref.productName,
|
|
@@ -52,4 +52,5 @@ var WhatsNewButtonWithContext = function WhatsNewButtonWithContext(props) {
|
|
|
52
52
|
data: ANALYTICS_CONTEXT_DATA
|
|
53
53
|
}, /*#__PURE__*/React.createElement(WhatsNewButton, props));
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
var _default_1 = injectIntl(WhatsNewButtonWithContext);
|
|
56
|
+
export default _default_1;
|
|
@@ -32,4 +32,5 @@ export var WhatsNewResultsEmpty = function WhatsNewResultsEmpty(_ref) {
|
|
|
32
32
|
onClick: handleClearFilterLinkClick
|
|
33
33
|
}, formatMessage(messages.help_whats_new_no_results_clear_filter_button_label)), /*#__PURE__*/React.createElement(Text, null, formatMessage(messages.help_whats_new_no_results_clear_filter_info))))));
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
var _default_1 = injectIntl(WhatsNewResultsEmpty);
|
|
36
|
+
export default _default_1;
|
|
@@ -19,4 +19,5 @@ export var WhatsNewResultsError = function WhatsNewResultsError(_ref) {
|
|
|
19
19
|
appearance: "primary"
|
|
20
20
|
}, formatMessage(messages.help_search_error_button_label))));
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
var _default_1 = injectIntl(WhatsNewResultsError);
|
|
23
|
+
export default _default_1;
|
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: "9.1.
|
|
11
|
+
packageVersion: "9.1.24"
|
|
12
12
|
};
|
|
13
13
|
export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
14
14
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -43,4 +43,5 @@ var WhatsNewResultListItemWithContext = function WhatsNewResultListItemWithConte
|
|
|
43
43
|
data: ANALYTICS_CONTEXT_DATA
|
|
44
44
|
}, /*#__PURE__*/React.createElement(WhatsNewResultListItem, props));
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
var _default_1 = injectIntl(WhatsNewResultListItemWithContext);
|
|
47
|
+
export default _default_1;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { createCtx } from '../../util/hooks/ctx';
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
CtxProvider = _createCtx2[1];
|
|
8
|
-
export { useAiContext, CtxProvider };
|
|
3
|
+
var dest = createCtx();
|
|
4
|
+
export var useAiContext = dest[0];
|
|
5
|
+
export var CtxProvider = dest[1];
|
|
9
6
|
export var AiContextProvider = function AiContextProvider(_ref) {
|
|
10
7
|
var isAiEnabled = _ref.isAiEnabled,
|
|
11
8
|
onSearchTabClicked = _ref.onSearchTabClicked,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { createCtx } from '../../util/hooks/ctx';
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
CtxProvider = _createCtx2[1];
|
|
8
|
-
export { useHeaderContext, CtxProvider };
|
|
3
|
+
var dest = createCtx();
|
|
4
|
+
export var useHeaderContext = dest[0];
|
|
5
|
+
export var CtxProvider = dest[1];
|
|
9
6
|
export var HeaderContextProvider = function HeaderContextProvider(_ref) {
|
|
10
7
|
var onCloseButtonClick = _ref.onCloseButtonClick,
|
|
11
8
|
onBackButtonClick = _ref.onBackButtonClick,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { createCtx } from '../../util/hooks/ctx';
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
CtxProvider = _createCtx2[1];
|
|
8
|
-
export { useHelpArticleContext, CtxProvider };
|
|
3
|
+
var dest = createCtx();
|
|
4
|
+
export var useHelpArticleContext = dest[0];
|
|
5
|
+
export var CtxProvider = dest[1];
|
|
9
6
|
export var HelpArticleContextProvider = function HelpArticleContextProvider(_ref) {
|
|
10
7
|
var onGetHelpArticle = _ref.onGetHelpArticle,
|
|
11
8
|
onHelpArticleLoadingFailTryAgainButtonClick = _ref.onHelpArticleLoadingFailTryAgainButtonClick,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { createCtx } from '../../util/hooks/ctx';
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
CtxProvider = _createCtx2[1];
|
|
8
|
-
export { useHomeContext, CtxProvider };
|
|
3
|
+
var dest = createCtx();
|
|
4
|
+
export var useHomeContext = dest[0];
|
|
5
|
+
export var CtxProvider = dest[1];
|
|
9
6
|
export var HomeContextProvider = function HomeContextProvider(_ref) {
|
|
10
7
|
var homeOptions = _ref.homeOptions,
|
|
11
8
|
homeContent = _ref.homeContent,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
6
|
var _excluded = ["body", "relatedArticles"],
|
|
7
7
|
_excluded2 = ["description"];
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
@@ -24,11 +24,9 @@ var DEFAULT_ARTICLE_ID = {
|
|
|
24
24
|
id: '',
|
|
25
25
|
type: ARTICLE_TYPE.HELP_ARTICLE
|
|
26
26
|
};
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
CtxProvider = _createCtx2[1];
|
|
31
|
-
export { useNavigationContext, CtxProvider };
|
|
27
|
+
var dest = createCtx();
|
|
28
|
+
export var useNavigationContext = dest[0];
|
|
29
|
+
export var CtxProvider = dest[1];
|
|
32
30
|
var getNewHistoryItem = function getNewHistoryItem(id, type, contentAri) {
|
|
33
31
|
var uid = Math.floor(Math.random() * Math.pow(10, 17));
|
|
34
32
|
var newHistoryItem = {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { createCtx } from '../../util/hooks/ctx';
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
CtxProvider = _createCtx2[1];
|
|
8
|
-
export { useRelatedArticlesContext, CtxProvider };
|
|
3
|
+
var dest = createCtx();
|
|
4
|
+
export var useRelatedArticlesContext = dest[0];
|
|
5
|
+
export var CtxProvider = dest[1];
|
|
9
6
|
export var RelatedArticlesContextProvider = function RelatedArticlesContextProvider(_ref) {
|
|
10
7
|
var routeGroup = _ref.routeGroup,
|
|
11
8
|
routeName = _ref.routeName,
|
|
@@ -6,11 +6,9 @@ import debounce from 'lodash/debounce';
|
|
|
6
6
|
import { REQUEST_STATE } from '../../model/Requests';
|
|
7
7
|
import { createCtx } from '../../util/hooks/ctx';
|
|
8
8
|
import { MIN_CHARACTERS_FOR_SEARCH } from '../constants';
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
CtxProvider = _createCtx2[1];
|
|
13
|
-
export { useSearchContext, CtxProvider };
|
|
9
|
+
var dest = createCtx();
|
|
10
|
+
export var useSearchContext = dest[0];
|
|
11
|
+
export var CtxProvider = dest[1];
|
|
14
12
|
export var SearchContextProvider = function SearchContextProvider(_ref) {
|
|
15
13
|
var onSearch = _ref.onSearch,
|
|
16
14
|
onSearchInputChanged = _ref.onSearchInputChanged,
|
|
@@ -6,11 +6,9 @@ import React, { useState, useCallback } from 'react';
|
|
|
6
6
|
import { REQUEST_STATE } from '../../model/Requests';
|
|
7
7
|
import { createCtx } from '../../util/hooks/ctx';
|
|
8
8
|
import { NUMBER_OF_WHATS_NEW_ITEMS_PER_PAGE } from '../constants';
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
CtxProvider = _createCtx2[1];
|
|
13
|
-
export { useWhatsNewArticleContext, CtxProvider };
|
|
9
|
+
var dest = createCtx();
|
|
10
|
+
export var useWhatsNewArticleContext = dest[0];
|
|
11
|
+
export var CtxProvider = dest[1];
|
|
14
12
|
export var WhatsNewArticleProvider = function WhatsNewArticleProvider(_ref) {
|
|
15
13
|
var whatsNewGetNotificationProvider = _ref.whatsNewGetNotificationProvider,
|
|
16
14
|
onWhatsNewButtonClick = _ref.onWhatsNewButtonClick,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as x from '@atlaskit/analytics-next';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
2
|
+
import type { CreateEventMap } from '@atlaskit/analytics-next/types';
|
|
3
|
+
import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
4
|
+
export declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props, Component>(WrappedComponent: (React.ComponentType<x.WithAnalyticsEventsProps & Props> | React.ForwardRefExoticComponent<Omit<x.WithAnalyticsEventsProps, 'ref'> & Props>) & Component) => ForwardRefExoticComponent<PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof x.WithAnalyticsEventsProps>>> & RefAttributes<any>>;
|
|
5
|
+
export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => ForwardRefExoticComponent<PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & x.WithContextProps>> & RefAttributes<any>>;
|
|
6
|
+
export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
|
|
5
7
|
export declare const defaultAnalyticsAttributes: {
|
|
6
8
|
componentName: string;
|
|
7
9
|
packageName: string;
|
|
@@ -5,5 +5,5 @@ type IconWrapperProps = {
|
|
|
5
5
|
Icon: React.FC<NewCoreIconProps>;
|
|
6
6
|
LegacyIcon: ({ label, primaryColor, secondaryColor, size, testId }: IconProps) => JSX.Element;
|
|
7
7
|
};
|
|
8
|
-
export declare const IconWrapper: ({ Icon, LegacyIcon, appearance }: IconWrapperProps) => React.JSX.Element;
|
|
8
|
+
export declare const IconWrapper: ({ Icon, LegacyIcon, appearance, }: IconWrapperProps) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
interface Props {
|
|
5
5
|
intl: WrappedComponentProps['intl'];
|
|
6
6
|
onTryAgainButtonClick?(event: React.MouseEvent, analyticsEvent: UIAnalyticsEvent): void;
|
|
7
7
|
}
|
|
8
|
-
export declare const ArticleLoadingFail: ({ onTryAgainButtonClick, intl: { formatMessage } }: Props) => React.JSX.Element;
|
|
9
|
-
declare const
|
|
8
|
+
export declare const ArticleLoadingFail: ({ onTryAgainButtonClick, intl: { formatMessage }, }: Props) => React.JSX.Element;
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<Props>;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default _default_1;
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
export declare const LoadingErrorMessage: ({ children }: {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}) => JSX.Element;
|
|
9
|
-
export declare const LoadingErrorButtonContainer: ({ children }: {
|
|
9
|
+
export declare const LoadingErrorButtonContainer: ({ children, }: {
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
}) => JSX.Element;
|
|
12
12
|
export declare const LoadingErrorHeading: ({ children }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export declare const Loading: React.FC<WrappedComponentProps>;
|
|
4
|
-
declare const
|
|
4
|
+
declare const _default_1: React.FC<WithIntlProps<WrappedComponentProps>> & {
|
|
5
5
|
WrappedComponent: React.ComponentType<WrappedComponentProps>;
|
|
6
6
|
};
|
|
7
|
-
export default
|
|
7
|
+
export default _default_1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
interface Props {
|
|
5
5
|
isSelected?: boolean;
|
|
6
6
|
onClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
7
7
|
}
|
|
8
8
|
export declare const ArticleWasHelpfulNoButton: React.FC<Props & WrappedComponentProps>;
|
|
9
|
-
declare const
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default _default_1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
interface Props {
|
|
5
5
|
isSelected?: boolean;
|
|
6
6
|
onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
7
7
|
}
|
|
8
8
|
export declare const ArticleWasHelpfulYesButton: React.FC<Props & WrappedComponentProps>;
|
|
9
|
-
declare const
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default _default_1;
|