@atlaskit/help 7.2.5 → 7.2.6
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/dist/cjs/analytics.js +2 -3
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +2 -3
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -3
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -3
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +2 -3
- package/dist/cjs/components/Article/HelpArticle/index.js +2 -3
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +2 -3
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +2 -3
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/cjs/components/HelpContentButton/index.js +2 -3
- package/dist/cjs/components/RelatedArticles/index.js +6 -5
- package/dist/cjs/components/Search/SearchInput/index.js +2 -3
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +2 -3
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +2 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics.js +2 -3
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +2 -3
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -3
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -3
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +2 -3
- package/dist/es2019/components/Article/HelpArticle/index.js +2 -3
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +2 -3
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +2 -3
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/es2019/components/HelpContentButton/index.js +2 -3
- package/dist/es2019/components/RelatedArticles/index.js +2 -1
- package/dist/es2019/components/Search/SearchInput/index.js +2 -3
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +2 -3
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +2 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics.js +2 -3
- package/dist/esm/components/Article/ArticleLoadingFail/index.js +2 -3
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -3
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -3
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +2 -3
- package/dist/esm/components/Article/HelpArticle/index.js +2 -3
- package/dist/esm/components/Article/WhatsNewArticle/index.js +2 -3
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +2 -3
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +1 -1
- package/dist/esm/components/HelpContentButton/index.js +2 -3
- package/dist/esm/components/RelatedArticles/index.js +2 -1
- package/dist/esm/components/Search/SearchInput/index.js +2 -3
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +2 -3
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +2 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics.d.ts +2 -2
- package/dist/types-ts4.5/analytics.d.ts +2 -2
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
package/dist/cjs/analytics.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.withAnalyticsEvents = exports.withAnalyticsContext = exports.defaultAnalyticsAttributes = exports.createAndFire = void 0;
|
|
8
8
|
var x = _interopRequireWildcard(require("@atlaskit/analytics-next"));
|
|
9
|
-
var _version = require("./version.json");
|
|
10
9
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
10
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
11
|
var withAnalyticsEvents = x.withAnalyticsEvents;
|
|
@@ -17,7 +16,7 @@ var createAndFire = x.createAndFireEvent('atlaskit');
|
|
|
17
16
|
exports.createAndFire = createAndFire;
|
|
18
17
|
var defaultAnalyticsAttributes = {
|
|
19
18
|
componentName: 'help',
|
|
20
|
-
packageName:
|
|
21
|
-
packageVersion:
|
|
19
|
+
packageName: "@atlaskit/help",
|
|
20
|
+
packageVersion: "7.2.6"
|
|
22
21
|
};
|
|
23
22
|
exports.defaultAnalyticsAttributes = defaultAnalyticsAttributes;
|
|
@@ -9,14 +9,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
10
10
|
var _reactIntlNext = require("react-intl-next");
|
|
11
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
12
|
-
var _version = require("../../../version.json");
|
|
13
12
|
var _messages = require("../../../messages");
|
|
14
13
|
var _SomethingWrongImage = _interopRequireDefault(require("../../../assets/SomethingWrongImage"));
|
|
15
14
|
var _styled = require("./styled");
|
|
16
15
|
var ANALYTICS_CONTEXT_DATA = {
|
|
17
16
|
componentName: 'ArticleLoadingFail',
|
|
18
|
-
packageName:
|
|
19
|
-
packageVersion:
|
|
17
|
+
packageName: "@atlaskit/help",
|
|
18
|
+
packageVersion: "7.2.6"
|
|
20
19
|
};
|
|
21
20
|
var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
|
|
22
21
|
var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
|
|
@@ -9,12 +9,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
11
11
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
12
|
-
var _version = require("../../../../version.json");
|
|
13
12
|
var _messages = require("../../../../messages");
|
|
14
13
|
var ANALYTICS_CONTEXT_DATA = {
|
|
15
14
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
16
|
-
packageName:
|
|
17
|
-
packageVersion:
|
|
15
|
+
packageName: "@atlaskit/help",
|
|
16
|
+
packageVersion: "7.2.6"
|
|
18
17
|
};
|
|
19
18
|
var ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
|
|
20
19
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -9,12 +9,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
11
11
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
12
|
-
var _version = require("../../../../version.json");
|
|
13
12
|
var _messages = require("../../../../messages");
|
|
14
13
|
var ANALYTICS_CONTEXT_DATA = {
|
|
15
14
|
componentName: 'ArticleWasHelpfulYesButton',
|
|
16
|
-
packageName:
|
|
17
|
-
packageVersion:
|
|
15
|
+
packageName: "@atlaskit/help",
|
|
16
|
+
packageVersion: "7.2.6"
|
|
18
17
|
};
|
|
19
18
|
var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
|
|
20
19
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -20,7 +20,6 @@ var _checkbox = require("@atlaskit/checkbox");
|
|
|
20
20
|
var _textarea = _interopRequireDefault(require("@atlaskit/textarea"));
|
|
21
21
|
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-circle"));
|
|
22
22
|
var _theme = require("@atlaskit/theme");
|
|
23
|
-
var _version = require("../../../../version.json");
|
|
24
23
|
var _messages = require("../../../../messages");
|
|
25
24
|
var _WasHelpfulYesButton = _interopRequireDefault(require("./WasHelpfulYesButton"));
|
|
26
25
|
var _WasHelpfulNoButton = _interopRequireDefault(require("./WasHelpfulNoButton"));
|
|
@@ -32,8 +31,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
32
31
|
var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
33
32
|
var ANALYTICS_CONTEXT_DATA = {
|
|
34
33
|
componentName: 'ArticleWasHelpfulForm',
|
|
35
|
-
packageName:
|
|
36
|
-
packageVersion:
|
|
34
|
+
packageName: "@atlaskit/help",
|
|
35
|
+
packageVersion: "7.2.6"
|
|
37
36
|
};
|
|
38
37
|
var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
39
38
|
var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,
|
|
@@ -10,7 +10,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _helpArticle = _interopRequireWildcard(require("@atlaskit/help-article"));
|
|
11
11
|
var _RelatedArticles = _interopRequireDefault(require("../../RelatedArticles"));
|
|
12
12
|
var _Help = require("../../../model/Help");
|
|
13
|
-
var _version = require("../../../version.json");
|
|
14
13
|
var _navigationContext = require("../../contexts/navigationContext");
|
|
15
14
|
var _helpArticleContext = require("../../contexts/helpArticleContext");
|
|
16
15
|
var _relatedArticlesContext = require("../../contexts/relatedArticlesContext");
|
|
@@ -64,8 +63,8 @@ var HelpArticle = function HelpArticle(_ref) {
|
|
|
64
63
|
var handleOnRelatedArticlesShowMoreClick = (0, _react.useCallback)(function (event, analyticsEvent, isCollapsed) {
|
|
65
64
|
analyticsEvent.payload.attributes = {
|
|
66
65
|
componentName: 'Article',
|
|
67
|
-
packageName:
|
|
68
|
-
packageVersion:
|
|
66
|
+
packageName: "@atlaskit/help",
|
|
67
|
+
packageVersion: "7.2.6"
|
|
69
68
|
};
|
|
70
69
|
if (onRelatedArticlesShowMoreClick) {
|
|
71
70
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -12,7 +12,6 @@ var _helpArticle = _interopRequireWildcard(require("@atlaskit/help-article"));
|
|
|
12
12
|
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
13
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
14
14
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
15
|
-
var _version = require("../../../version.json");
|
|
16
15
|
var _messages = require("../../../messages");
|
|
17
16
|
var _util = require("../../../util");
|
|
18
17
|
var _styled = require("../../../util/styled");
|
|
@@ -22,8 +21,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
21
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
22
|
var analyticsContextData = {
|
|
24
23
|
componentName: 'ArticlesListItem',
|
|
25
|
-
packageName:
|
|
26
|
-
packageVersion:
|
|
24
|
+
packageName: "@atlaskit/help",
|
|
25
|
+
packageVersion: "7.2.6"
|
|
27
26
|
};
|
|
28
27
|
var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
29
28
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -11,14 +11,13 @@ var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
|
11
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
12
12
|
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
|
-
var _version = require("../../../version.json");
|
|
15
14
|
var _styled = require("./styled");
|
|
16
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
17
|
var ANALYTICS_CONTEXT_DATA = {
|
|
19
18
|
componentName: 'ArticlesListItem',
|
|
20
|
-
packageName:
|
|
21
|
-
packageVersion:
|
|
19
|
+
packageName: "@atlaskit/help",
|
|
20
|
+
packageVersion: "7.2.6"
|
|
22
21
|
};
|
|
23
22
|
var ArticlesListItem = function ArticlesListItem(_ref) {
|
|
24
23
|
var styles = _ref.styles,
|
|
@@ -46,7 +46,7 @@ var ArticlesListItemContainer = _styled.default.div(_templateObject || (_templat
|
|
|
46
46
|
exports.ArticlesListItemContainer = ArticlesListItemContainer;
|
|
47
47
|
var ArticlesListItemTypeTitle = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: bold;\n font-size: 11px;\n line-height: ", ";\n color: ", ";\n padding-bottom: ", ";\n"])), "var(--ds-font-lineHeight-100, 16px)", "var(--ds-text-subtlest, ".concat(colors.N200, ")"), "var(--ds-space-050, 4px)");
|
|
48
48
|
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
50
50
|
exports.ArticlesListItemTypeTitle = ArticlesListItemTypeTitle;
|
|
51
51
|
var ArticlesListItemLinkIcon = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n align-self: auto;\n padding-inline-start: 5px;\n vertical-align: middle;\n"])));
|
|
52
52
|
exports.ArticlesListItemLinkIcon = ArticlesListItemLinkIcon;
|
|
@@ -11,14 +11,13 @@ var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"))
|
|
|
11
11
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
12
12
|
var _notificationIndicator = require("@atlaskit/notification-indicator");
|
|
13
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
14
|
-
var _version = require("../../version.json");
|
|
15
14
|
var _styled = require("./styled");
|
|
16
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
17
|
var analitycsContextData = {
|
|
19
18
|
componentName: 'HelpContentButton',
|
|
20
|
-
packageName:
|
|
21
|
-
packageVersion:
|
|
19
|
+
packageName: "@atlaskit/help",
|
|
20
|
+
packageVersion: "7.2.6"
|
|
22
21
|
};
|
|
23
22
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
24
23
|
var _ref$id = _ref.id,
|
|
@@ -14,7 +14,6 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
14
14
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
15
15
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
|
-
var _version = require("../../version.json");
|
|
18
17
|
var _messages = require("../../messages");
|
|
19
18
|
var _ArticlesList = _interopRequireDefault(require("../ArticlesList"));
|
|
20
19
|
var _RelatedArticlesLoading = _interopRequireDefault(require("./RelatedArticlesLoading"));
|
|
@@ -24,6 +23,8 @@ var _cancellablePromise = _interopRequireDefault(require("../../util/hooks/cance
|
|
|
24
23
|
var _previous = require("../../util/hooks/previous");
|
|
25
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
25
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
|
+
var packageName = "@atlaskit/help";
|
|
27
|
+
var packageVersion = "7.2.6";
|
|
27
28
|
var RelatedArticles = function RelatedArticles(_ref) {
|
|
28
29
|
var _ref$style = _ref.style,
|
|
29
30
|
style = _ref$style === void 0 ? 'primary' : _ref$style,
|
|
@@ -52,8 +53,8 @@ var RelatedArticles = function RelatedArticles(_ref) {
|
|
|
52
53
|
var handleOnRelatedArticlesShowMoreClick = function handleOnRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed) {
|
|
53
54
|
analyticsEvent.payload.attributes = {
|
|
54
55
|
componentName: 'RelatedArticles',
|
|
55
|
-
packageName:
|
|
56
|
-
packageVersion:
|
|
56
|
+
packageName: packageName,
|
|
57
|
+
packageVersion: packageVersion
|
|
57
58
|
};
|
|
58
59
|
if (onRelatedArticlesShowMoreClick) {
|
|
59
60
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -125,7 +126,7 @@ var RelatedArticles = function RelatedArticles(_ref) {
|
|
|
125
126
|
exports.RelatedArticles = RelatedArticles;
|
|
126
127
|
var _default = (0, _analyticsNext.withAnalyticsContext)({
|
|
127
128
|
componentName: 'RelatedArticles',
|
|
128
|
-
packageName:
|
|
129
|
-
packageVersion:
|
|
129
|
+
packageName: packageName,
|
|
130
|
+
packageVersion: packageVersion
|
|
130
131
|
})((0, _reactIntlNext.injectIntl)(RelatedArticles));
|
|
131
132
|
exports.default = _default;
|
|
@@ -15,7 +15,6 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
|
15
15
|
var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/search"));
|
|
16
16
|
var _close = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/close"));
|
|
17
17
|
var _reactIntlNext = require("react-intl-next");
|
|
18
|
-
var _version = require("../../../version.json");
|
|
19
18
|
var _Requests = require("../../../model/Requests");
|
|
20
19
|
var _searchContext = require("../../contexts/searchContext");
|
|
21
20
|
var _messages = require("../../../messages");
|
|
@@ -24,8 +23,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
24
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
24
|
var ANALYTICS_CONTEXT_DATA = {
|
|
26
25
|
componentName: 'searchInput',
|
|
27
|
-
packageName:
|
|
28
|
-
packageVersion:
|
|
26
|
+
packageName: "@atlaskit/help",
|
|
27
|
+
packageVersion: "7.2.6"
|
|
29
28
|
};
|
|
30
29
|
var SearchInput = function SearchInput(_ref) {
|
|
31
30
|
var formatMessage = _ref.intl.formatMessage;
|
|
@@ -11,7 +11,6 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
11
11
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
12
12
|
var _lightbulb = _interopRequireDefault(require("@atlaskit/icon/glyph/lightbulb"));
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
|
-
var _version = require("../../../version.json");
|
|
15
14
|
var _whatsNewArticleContext = require("../../contexts/whatsNewArticleContext");
|
|
16
15
|
var _navigationContext = require("../../contexts/navigationContext");
|
|
17
16
|
var _messages = require("../../../messages");
|
|
@@ -21,8 +20,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
21
|
var ANALYTICS_CONTEXT_DATA = {
|
|
23
22
|
componentName: 'WhatsNewButton',
|
|
24
|
-
packageName:
|
|
25
|
-
packageVersion:
|
|
23
|
+
packageName: "@atlaskit/help",
|
|
24
|
+
packageVersion: "7.2.6"
|
|
26
25
|
};
|
|
27
26
|
var WhatsNewButton = function WhatsNewButton(_ref) {
|
|
28
27
|
var productName = _ref.productName,
|
package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js
CHANGED
|
@@ -8,15 +8,14 @@ exports.default = exports.WhatsNewResultListItem = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
10
|
var _reactIntlNext = require("react-intl-next");
|
|
11
|
-
var _version = require("../../../../../version.json");
|
|
12
11
|
var _WhatsNew = require("../../../../../model/WhatsNew");
|
|
13
12
|
var _util = require("../../../../../util");
|
|
14
13
|
var _styled = require("../../../../../util/styled");
|
|
15
14
|
var _styled2 = require("./styled");
|
|
16
15
|
var ANALYTICS_CONTEXT_DATA = {
|
|
17
16
|
componentName: 'ArticlesListItem',
|
|
18
|
-
packageName:
|
|
19
|
-
packageVersion:
|
|
17
|
+
packageName: "@atlaskit/help",
|
|
18
|
+
packageVersion: "7.2.6"
|
|
20
19
|
};
|
|
21
20
|
var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
22
21
|
var formatMessage = _ref.intl.formatMessage,
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/analytics.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as x from '@atlaskit/analytics-next';
|
|
2
|
-
import { name as packageName, version as packageVersion } from './version.json';
|
|
3
2
|
export const withAnalyticsEvents = x.withAnalyticsEvents;
|
|
4
3
|
export const withAnalyticsContext = x.withAnalyticsContext;
|
|
5
4
|
export const createAndFire = x.createAndFireEvent('atlaskit');
|
|
6
5
|
export const defaultAnalyticsAttributes = {
|
|
7
6
|
componentName: 'help',
|
|
8
|
-
packageName,
|
|
9
|
-
packageVersion
|
|
7
|
+
packageName: "@atlaskit/help",
|
|
8
|
+
packageVersion: "7.2.6"
|
|
10
9
|
};
|
|
@@ -2,14 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
4
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
6
5
|
import { messages } from '../../../messages';
|
|
7
6
|
import SomethingWrongImage from '../../../assets/SomethingWrongImage';
|
|
8
7
|
import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
|
|
9
8
|
const ANALYTICS_CONTEXT_DATA = {
|
|
10
9
|
componentName: 'ArticleLoadingFail',
|
|
11
|
-
packageName,
|
|
12
|
-
packageVersion
|
|
10
|
+
packageName: "@atlaskit/help",
|
|
11
|
+
packageVersion: "7.2.6"
|
|
13
12
|
};
|
|
14
13
|
export const ArticleLoadingFail = ({
|
|
15
14
|
onTryAgainButtonClick,
|
|
@@ -2,12 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../../version.json';
|
|
6
5
|
import { messages } from '../../../../messages';
|
|
7
6
|
const ANALYTICS_CONTEXT_DATA = {
|
|
8
7
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
9
|
-
packageName,
|
|
10
|
-
packageVersion
|
|
8
|
+
packageName: "@atlaskit/help",
|
|
9
|
+
packageVersion: "7.2.6"
|
|
11
10
|
};
|
|
12
11
|
export const ArticleWasHelpfulNoButton = ({
|
|
13
12
|
isSelected = false,
|
|
@@ -2,12 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../../version.json';
|
|
6
5
|
import { messages } from '../../../../messages';
|
|
7
6
|
const ANALYTICS_CONTEXT_DATA = {
|
|
8
7
|
componentName: 'ArticleWasHelpfulYesButton',
|
|
9
|
-
packageName,
|
|
10
|
-
packageVersion
|
|
8
|
+
packageName: "@atlaskit/help",
|
|
9
|
+
packageVersion: "7.2.6"
|
|
11
10
|
};
|
|
12
11
|
export const ArticleWasHelpfulYesButton = ({
|
|
13
12
|
isSelected = false,
|
|
@@ -13,7 +13,6 @@ import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
|
13
13
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
14
14
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
15
15
|
import { colors } from '@atlaskit/theme';
|
|
16
|
-
import { name as packageName, version as packageVersion } from '../../../../version.json';
|
|
17
16
|
import { messages } from '../../../../messages';
|
|
18
17
|
import ArticleWasHelpfulYesButton from './WasHelpfulYesButton';
|
|
19
18
|
import ArticleWasHelpfulNoButton from './WasHelpfulNoButton';
|
|
@@ -21,8 +20,8 @@ import { ArticleFeedbackContainer, ArticleFeedbackText, ArticleFeedbackAnswerWra
|
|
|
21
20
|
const FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
22
21
|
const ANALYTICS_CONTEXT_DATA = {
|
|
23
22
|
componentName: 'ArticleWasHelpfulForm',
|
|
24
|
-
packageName,
|
|
25
|
-
packageVersion
|
|
23
|
+
packageName: "@atlaskit/help",
|
|
24
|
+
packageVersion: "7.2.6"
|
|
26
25
|
};
|
|
27
26
|
export const ArticleWasHelpfulForm = ({
|
|
28
27
|
onWasHelpfulSubmit,
|
|
@@ -2,7 +2,6 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import { BODY_FORMAT_TYPES } from '@atlaskit/help-article';
|
|
3
3
|
import RelatedArticles from '../../RelatedArticles';
|
|
4
4
|
import { ARTICLE_TYPE } from '../../../model/Help';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
6
5
|
import { useNavigationContext } from '../../contexts/navigationContext';
|
|
7
6
|
import { useHelpArticleContext } from '../../contexts/helpArticleContext';
|
|
8
7
|
import { useRelatedArticlesContext } from '../../contexts/relatedArticlesContext';
|
|
@@ -59,8 +58,8 @@ export const HelpArticle = ({
|
|
|
59
58
|
const handleOnRelatedArticlesShowMoreClick = useCallback((event, analyticsEvent, isCollapsed) => {
|
|
60
59
|
analyticsEvent.payload.attributes = {
|
|
61
60
|
componentName: 'Article',
|
|
62
|
-
packageName,
|
|
63
|
-
packageVersion
|
|
61
|
+
packageName: "@atlaskit/help",
|
|
62
|
+
packageVersion: "7.2.6"
|
|
64
63
|
};
|
|
65
64
|
if (onRelatedArticlesShowMoreClick) {
|
|
66
65
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -5,7 +5,6 @@ import HelpArticleContent from '@atlaskit/help-article';
|
|
|
5
5
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
9
8
|
import { messages } from '../../../messages';
|
|
10
9
|
import { getTypeIcon, getTypeTitle } from '../../../util';
|
|
11
10
|
import { WhatsNewTypeIcon, DividerLine } from '../../../util/styled';
|
|
@@ -13,8 +12,8 @@ import Loading from './Loading';
|
|
|
13
12
|
import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLinkContainer, ExternalLinkIconContainer } from './styled';
|
|
14
13
|
const analyticsContextData = {
|
|
15
14
|
componentName: 'ArticlesListItem',
|
|
16
|
-
packageName,
|
|
17
|
-
packageVersion
|
|
15
|
+
packageName: "@atlaskit/help",
|
|
16
|
+
packageVersion: "7.2.6"
|
|
18
17
|
};
|
|
19
18
|
export const WhatsNewArticle = ({
|
|
20
19
|
intl: {
|
|
@@ -3,12 +3,11 @@ import * as colors from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
7
6
|
import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTitleText, ArticlesListItemDescription, ArticlesListItemLinkIcon } from './styled';
|
|
8
7
|
const ANALYTICS_CONTEXT_DATA = {
|
|
9
8
|
componentName: 'ArticlesListItem',
|
|
10
|
-
packageName,
|
|
11
|
-
packageVersion
|
|
9
|
+
packageName: "@atlaskit/help",
|
|
10
|
+
packageVersion: "7.2.6"
|
|
12
11
|
};
|
|
13
12
|
export const ArticlesListItem = ({
|
|
14
13
|
styles,
|
|
@@ -39,7 +39,7 @@ export const ArticlesListItemTypeTitle = styled.div`
|
|
|
39
39
|
padding-bottom: ${"var(--ds-space-050, 4px)"};
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
43
43
|
export const ArticlesListItemLinkIcon = styled.span`
|
|
44
44
|
align-self: auto;
|
|
45
45
|
padding-inline-start: 5px;
|
|
@@ -3,12 +3,11 @@ import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
|
3
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
4
4
|
import { NotificationIndicator } from '@atlaskit/notification-indicator';
|
|
5
5
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
|
-
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
7
6
|
import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonText, HelpContentButtonExternalLinkIcon, HelpContentButtonExternalNotificationIcon } from './styled';
|
|
8
7
|
const analitycsContextData = {
|
|
9
8
|
componentName: 'HelpContentButton',
|
|
10
|
-
packageName,
|
|
11
|
-
packageVersion
|
|
9
|
+
packageName: "@atlaskit/help",
|
|
10
|
+
packageVersion: "7.2.6"
|
|
12
11
|
};
|
|
13
12
|
const HelpContentButton = ({
|
|
14
13
|
id = '',
|
|
@@ -3,7 +3,6 @@ import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
7
6
|
import { messages } from '../../messages';
|
|
8
7
|
import ArticlesList from '../ArticlesList';
|
|
9
8
|
import RelatedArticlesLoading from './RelatedArticlesLoading';
|
|
@@ -11,6 +10,8 @@ import { DividerLine } from '../../util/styled';
|
|
|
11
10
|
import { RelatedArticlesTitle } from './styled';
|
|
12
11
|
import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
13
12
|
import { usePrevious } from '../../util/hooks/previous';
|
|
13
|
+
const packageName = "@atlaskit/help";
|
|
14
|
+
const packageVersion = "7.2.6";
|
|
14
15
|
export const RelatedArticles = ({
|
|
15
16
|
style = 'primary',
|
|
16
17
|
routeGroup,
|
|
@@ -7,15 +7,14 @@ import Spinner from '@atlaskit/spinner';
|
|
|
7
7
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
8
8
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
11
10
|
import { REQUEST_STATE } from '../../../model/Requests';
|
|
12
11
|
import { useSearchContext } from '../../contexts/searchContext';
|
|
13
12
|
import { messages } from '../../../messages';
|
|
14
13
|
import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContainer } from './styled';
|
|
15
14
|
const ANALYTICS_CONTEXT_DATA = {
|
|
16
15
|
componentName: 'searchInput',
|
|
17
|
-
packageName,
|
|
18
|
-
packageVersion
|
|
16
|
+
packageName: "@atlaskit/help",
|
|
17
|
+
packageVersion: "7.2.6"
|
|
19
18
|
};
|
|
20
19
|
export const SearchInput = ({
|
|
21
20
|
intl: {
|
|
@@ -3,7 +3,6 @@ import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import LightbulbIcon from '@atlaskit/icon/glyph/lightbulb';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
7
6
|
import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
|
|
8
7
|
import { useNavigationContext } from '../../contexts/navigationContext';
|
|
9
8
|
import { messages } from '../../../messages';
|
|
@@ -11,8 +10,8 @@ import HelpContentButton from '../../HelpContentButton';
|
|
|
11
10
|
import { ARTICLE_TYPE } from '../../../model/Help';
|
|
12
11
|
const ANALYTICS_CONTEXT_DATA = {
|
|
13
12
|
componentName: 'WhatsNewButton',
|
|
14
|
-
packageName,
|
|
15
|
-
packageVersion
|
|
13
|
+
packageName: "@atlaskit/help",
|
|
14
|
+
packageVersion: "7.2.6"
|
|
16
15
|
};
|
|
17
16
|
export const WhatsNewButton = ({
|
|
18
17
|
productName,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
|
-
import { name as packageName, version as packageVersion } from '../../../../../version.json';
|
|
5
4
|
import { WHATS_NEW_ITEM_TYPES } from '../../../../../model/WhatsNew';
|
|
6
5
|
import { getTypeIcon, getTypeTitle } from '../../../../../util';
|
|
7
6
|
import { WhatsNewTypeIcon } from '../../../../../util/styled';
|
|
8
7
|
import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, WhatsNewResultListItemTitleText, WhatsNewResultListItemDescription } from './styled';
|
|
9
8
|
const ANALYTICS_CONTEXT_DATA = {
|
|
10
9
|
componentName: 'ArticlesListItem',
|
|
11
|
-
packageName,
|
|
12
|
-
packageVersion
|
|
10
|
+
packageName: "@atlaskit/help",
|
|
11
|
+
packageVersion: "7.2.6"
|
|
13
12
|
};
|
|
14
13
|
export const WhatsNewResultListItem = ({
|
|
15
14
|
intl: {
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/analytics.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as x from '@atlaskit/analytics-next';
|
|
2
|
-
import { name as packageName, version as packageVersion } from './version.json';
|
|
3
2
|
export var withAnalyticsEvents = x.withAnalyticsEvents;
|
|
4
3
|
export var withAnalyticsContext = x.withAnalyticsContext;
|
|
5
4
|
export var createAndFire = x.createAndFireEvent('atlaskit');
|
|
6
5
|
export var defaultAnalyticsAttributes = {
|
|
7
6
|
componentName: 'help',
|
|
8
|
-
packageName:
|
|
9
|
-
packageVersion:
|
|
7
|
+
packageName: "@atlaskit/help",
|
|
8
|
+
packageVersion: "7.2.6"
|
|
10
9
|
};
|
|
@@ -2,14 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
4
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
6
5
|
import { messages } from '../../../messages';
|
|
7
6
|
import SomethingWrongImage from '../../../assets/SomethingWrongImage';
|
|
8
7
|
import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
|
|
9
8
|
var ANALYTICS_CONTEXT_DATA = {
|
|
10
9
|
componentName: 'ArticleLoadingFail',
|
|
11
|
-
packageName:
|
|
12
|
-
packageVersion:
|
|
10
|
+
packageName: "@atlaskit/help",
|
|
11
|
+
packageVersion: "7.2.6"
|
|
13
12
|
};
|
|
14
13
|
export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
|
|
15
14
|
var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
|
|
@@ -2,12 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../../version.json';
|
|
6
5
|
import { messages } from '../../../../messages';
|
|
7
6
|
var ANALYTICS_CONTEXT_DATA = {
|
|
8
7
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
9
|
-
packageName:
|
|
10
|
-
packageVersion:
|
|
8
|
+
packageName: "@atlaskit/help",
|
|
9
|
+
packageVersion: "7.2.6"
|
|
11
10
|
};
|
|
12
11
|
export var ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
|
|
13
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -2,12 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../../version.json';
|
|
6
5
|
import { messages } from '../../../../messages';
|
|
7
6
|
var ANALYTICS_CONTEXT_DATA = {
|
|
8
7
|
componentName: 'ArticleWasHelpfulYesButton',
|
|
9
|
-
packageName:
|
|
10
|
-
packageVersion:
|
|
8
|
+
packageName: "@atlaskit/help",
|
|
9
|
+
packageVersion: "7.2.6"
|
|
11
10
|
};
|
|
12
11
|
export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
|
|
13
12
|
var _ref$isSelected = _ref.isSelected,
|
|
@@ -14,7 +14,6 @@ import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
|
14
14
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
15
15
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
16
16
|
import { colors } from '@atlaskit/theme';
|
|
17
|
-
import { name as packageName, version as packageVersion } from '../../../../version.json';
|
|
18
17
|
import { messages } from '../../../../messages';
|
|
19
18
|
import ArticleWasHelpfulYesButton from './WasHelpfulYesButton';
|
|
20
19
|
import ArticleWasHelpfulNoButton from './WasHelpfulNoButton';
|
|
@@ -22,8 +21,8 @@ import { ArticleFeedbackContainer, ArticleFeedbackText, ArticleFeedbackAnswerWra
|
|
|
22
21
|
var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
23
22
|
var ANALYTICS_CONTEXT_DATA = {
|
|
24
23
|
componentName: 'ArticleWasHelpfulForm',
|
|
25
|
-
packageName:
|
|
26
|
-
packageVersion:
|
|
24
|
+
packageName: "@atlaskit/help",
|
|
25
|
+
packageVersion: "7.2.6"
|
|
27
26
|
};
|
|
28
27
|
export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
29
28
|
var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,
|
|
@@ -2,7 +2,6 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import { BODY_FORMAT_TYPES } from '@atlaskit/help-article';
|
|
3
3
|
import RelatedArticles from '../../RelatedArticles';
|
|
4
4
|
import { ARTICLE_TYPE } from '../../../model/Help';
|
|
5
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
6
5
|
import { useNavigationContext } from '../../contexts/navigationContext';
|
|
7
6
|
import { useHelpArticleContext } from '../../contexts/helpArticleContext';
|
|
8
7
|
import { useRelatedArticlesContext } from '../../contexts/relatedArticlesContext';
|
|
@@ -55,8 +54,8 @@ export var HelpArticle = function HelpArticle(_ref) {
|
|
|
55
54
|
var handleOnRelatedArticlesShowMoreClick = useCallback(function (event, analyticsEvent, isCollapsed) {
|
|
56
55
|
analyticsEvent.payload.attributes = {
|
|
57
56
|
componentName: 'Article',
|
|
58
|
-
packageName:
|
|
59
|
-
packageVersion:
|
|
57
|
+
packageName: "@atlaskit/help",
|
|
58
|
+
packageVersion: "7.2.6"
|
|
60
59
|
};
|
|
61
60
|
if (onRelatedArticlesShowMoreClick) {
|
|
62
61
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -5,7 +5,6 @@ import HelpArticleContent from '@atlaskit/help-article';
|
|
|
5
5
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
9
8
|
import { messages } from '../../../messages';
|
|
10
9
|
import { getTypeIcon, getTypeTitle } from '../../../util';
|
|
11
10
|
import { WhatsNewTypeIcon, DividerLine } from '../../../util/styled';
|
|
@@ -13,8 +12,8 @@ import Loading from './Loading';
|
|
|
13
12
|
import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLinkContainer, ExternalLinkIconContainer } from './styled';
|
|
14
13
|
var analyticsContextData = {
|
|
15
14
|
componentName: 'ArticlesListItem',
|
|
16
|
-
packageName:
|
|
17
|
-
packageVersion:
|
|
15
|
+
packageName: "@atlaskit/help",
|
|
16
|
+
packageVersion: "7.2.6"
|
|
18
17
|
};
|
|
19
18
|
export var WhatsNewArticle = function WhatsNewArticle(_ref) {
|
|
20
19
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -3,12 +3,11 @@ import * as colors from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
7
6
|
import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTitleText, ArticlesListItemDescription, ArticlesListItemLinkIcon } from './styled';
|
|
8
7
|
var ANALYTICS_CONTEXT_DATA = {
|
|
9
8
|
componentName: 'ArticlesListItem',
|
|
10
|
-
packageName:
|
|
11
|
-
packageVersion:
|
|
9
|
+
packageName: "@atlaskit/help",
|
|
10
|
+
packageVersion: "7.2.6"
|
|
12
11
|
};
|
|
13
12
|
export var ArticlesListItem = function ArticlesListItem(_ref) {
|
|
14
13
|
var styles = _ref.styles,
|
|
@@ -34,7 +34,7 @@ export var ArticlesListItemWrapper = styled.a({
|
|
|
34
34
|
export var ArticlesListItemContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n white-space: nowrap;\n"])));
|
|
35
35
|
export var ArticlesListItemTypeTitle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-weight: bold;\n font-size: 11px;\n line-height: ", ";\n color: ", ";\n padding-bottom: ", ";\n"])), "var(--ds-font-lineHeight-100, 16px)", "var(--ds-text-subtlest, ".concat(colors.N200, ")"), "var(--ds-space-050, 4px)");
|
|
36
36
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
38
38
|
export var ArticlesListItemLinkIcon = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n align-self: auto;\n padding-inline-start: 5px;\n vertical-align: middle;\n"])));
|
|
39
39
|
export var ArticlesListItemTitleText = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n text-decoration: none;\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n display: inline-block;\n line-height: ", ";\n white-space: normal;\n overflow-x: hidden;\n margin-bottom: ", ";\n"])), "var(--ds-text, ".concat(colors.N800, ")"), fontSize(), "var(--ds-font-lineHeight-200, 20px)", "var(--ds-space-100, 8px)");
|
|
40
40
|
export var ArticlesListItemDescription = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n line-height: ", ";\n color: ", ";\n margin: 0;\n"])), "var(--ds-font-lineHeight-200, 20px)", "var(--ds-text-subtle, ".concat(colors.N400, ")"));
|
|
@@ -3,12 +3,11 @@ import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
|
3
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
4
4
|
import { NotificationIndicator } from '@atlaskit/notification-indicator';
|
|
5
5
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
|
-
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
7
6
|
import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonText, HelpContentButtonExternalLinkIcon, HelpContentButtonExternalNotificationIcon } from './styled';
|
|
8
7
|
var analitycsContextData = {
|
|
9
8
|
componentName: 'HelpContentButton',
|
|
10
|
-
packageName:
|
|
11
|
-
packageVersion:
|
|
9
|
+
packageName: "@atlaskit/help",
|
|
10
|
+
packageVersion: "7.2.6"
|
|
12
11
|
};
|
|
13
12
|
var HelpContentButton = function HelpContentButton(_ref) {
|
|
14
13
|
var _ref$id = _ref.id,
|
|
@@ -6,7 +6,6 @@ import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
6
6
|
import SectionMessage from '@atlaskit/section-message';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
|
-
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
10
9
|
import { messages } from '../../messages';
|
|
11
10
|
import ArticlesList from '../ArticlesList';
|
|
12
11
|
import RelatedArticlesLoading from './RelatedArticlesLoading';
|
|
@@ -14,6 +13,8 @@ import { DividerLine } from '../../util/styled';
|
|
|
14
13
|
import { RelatedArticlesTitle } from './styled';
|
|
15
14
|
import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
16
15
|
import { usePrevious } from '../../util/hooks/previous';
|
|
16
|
+
var packageName = "@atlaskit/help";
|
|
17
|
+
var packageVersion = "7.2.6";
|
|
17
18
|
export var RelatedArticles = function RelatedArticles(_ref) {
|
|
18
19
|
var _ref$style = _ref.style,
|
|
19
20
|
style = _ref$style === void 0 ? 'primary' : _ref$style,
|
|
@@ -7,15 +7,14 @@ import Spinner from '@atlaskit/spinner';
|
|
|
7
7
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
8
8
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
11
10
|
import { REQUEST_STATE } from '../../../model/Requests';
|
|
12
11
|
import { useSearchContext } from '../../contexts/searchContext';
|
|
13
12
|
import { messages } from '../../../messages';
|
|
14
13
|
import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContainer } from './styled';
|
|
15
14
|
var ANALYTICS_CONTEXT_DATA = {
|
|
16
15
|
componentName: 'searchInput',
|
|
17
|
-
packageName:
|
|
18
|
-
packageVersion:
|
|
16
|
+
packageName: "@atlaskit/help",
|
|
17
|
+
packageVersion: "7.2.6"
|
|
19
18
|
};
|
|
20
19
|
export var SearchInput = function SearchInput(_ref) {
|
|
21
20
|
var formatMessage = _ref.intl.formatMessage;
|
|
@@ -3,7 +3,6 @@ import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import LightbulbIcon from '@atlaskit/icon/glyph/lightbulb';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
7
6
|
import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
|
|
8
7
|
import { useNavigationContext } from '../../contexts/navigationContext';
|
|
9
8
|
import { messages } from '../../../messages';
|
|
@@ -11,8 +10,8 @@ import HelpContentButton from '../../HelpContentButton';
|
|
|
11
10
|
import { ARTICLE_TYPE } from '../../../model/Help';
|
|
12
11
|
var ANALYTICS_CONTEXT_DATA = {
|
|
13
12
|
componentName: 'WhatsNewButton',
|
|
14
|
-
packageName:
|
|
15
|
-
packageVersion:
|
|
13
|
+
packageName: "@atlaskit/help",
|
|
14
|
+
packageVersion: "7.2.6"
|
|
16
15
|
};
|
|
17
16
|
export var WhatsNewButton = function WhatsNewButton(_ref) {
|
|
18
17
|
var productName = _ref.productName,
|
package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
|
-
import { name as packageName, version as packageVersion } from '../../../../../version.json';
|
|
5
4
|
import { WHATS_NEW_ITEM_TYPES } from '../../../../../model/WhatsNew';
|
|
6
5
|
import { getTypeIcon, getTypeTitle } from '../../../../../util';
|
|
7
6
|
import { WhatsNewTypeIcon } from '../../../../../util/styled';
|
|
8
7
|
import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, WhatsNewResultListItemTitleText, WhatsNewResultListItemDescription } from './styled';
|
|
9
8
|
var ANALYTICS_CONTEXT_DATA = {
|
|
10
9
|
componentName: 'ArticlesListItem',
|
|
11
|
-
packageName:
|
|
12
|
-
packageVersion:
|
|
10
|
+
packageName: "@atlaskit/help",
|
|
11
|
+
packageVersion: "7.2.6"
|
|
13
12
|
};
|
|
14
13
|
export var WhatsNewResultListItem = function WhatsNewResultListItem(_ref) {
|
|
15
14
|
var formatMessage = _ref.intl.formatMessage,
|
package/dist/esm/version.json
CHANGED
|
@@ -5,6 +5,6 @@ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Compon
|
|
|
5
5
|
export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
|
|
6
6
|
export declare const defaultAnalyticsAttributes: {
|
|
7
7
|
componentName: string;
|
|
8
|
-
packageName:
|
|
9
|
-
packageVersion:
|
|
8
|
+
packageName: string;
|
|
9
|
+
packageVersion: string;
|
|
10
10
|
};
|
|
@@ -5,6 +5,6 @@ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Compon
|
|
|
5
5
|
export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
|
|
6
6
|
export declare const defaultAnalyticsAttributes: {
|
|
7
7
|
componentName: string;
|
|
8
|
-
packageName:
|
|
9
|
-
packageVersion:
|
|
8
|
+
packageName: string;
|
|
9
|
+
packageVersion: string;
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.6",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
38
|
-
"@atlaskit/button": "^16.
|
|
38
|
+
"@atlaskit/button": "^16.9.0",
|
|
39
39
|
"@atlaskit/checkbox": "^12.6.0",
|
|
40
40
|
"@atlaskit/form": "^8.11.0",
|
|
41
41
|
"@atlaskit/help-article": "^4.1.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@atlaskit/select": "^16.5.0",
|
|
49
49
|
"@atlaskit/spinner": "^15.5.0",
|
|
50
50
|
"@atlaskit/textarea": "^4.7.0",
|
|
51
|
-
"@atlaskit/textfield": "^5.
|
|
51
|
+
"@atlaskit/textfield": "^5.6.0",
|
|
52
52
|
"@atlaskit/theme": "^12.5.0",
|
|
53
|
-
"@atlaskit/tokens": "^1.
|
|
53
|
+
"@atlaskit/tokens": "^1.14.0",
|
|
54
54
|
"@atlaskit/tooltip": "^17.8.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@emotion/core": "^10.0.9",
|
|
@@ -67,9 +67,7 @@
|
|
|
67
67
|
"styled-components": "^3.2.6"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@atlaskit/docs": "*",
|
|
71
70
|
"@atlaskit/navigation": "^37.0.0",
|
|
72
|
-
"@atlaskit/page": "^12.3.0",
|
|
73
71
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
74
72
|
"@testing-library/react": "^12.1.5",
|
|
75
73
|
"algoliasearch": "^3.35.1",
|