@atlaskit/help-article 4.2.4 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/help-article
2
2
 
3
+ ## 4.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#100272](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100272)
8
+ [`f605240d5de34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f605240d5de34) -
9
+ changed h2 elements to Headings from atlaskit
10
+
11
+ ## 4.2.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.2.4
4
18
 
5
19
  ### Patch Changes
@@ -20,6 +20,9 @@
20
20
  {
21
21
  "path": "../../../design-system/css-reset/afm-cc/tsconfig.json"
22
22
  },
23
+ {
24
+ "path": "../../../design-system/heading/afm-cc/tsconfig.json"
25
+ },
23
26
  {
24
27
  "path": "../../../design-system/icon/afm-cc/tsconfig.json"
25
28
  },
@@ -1,33 +1,36 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.jira.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__help-article/app",
7
- "composite": true,
8
- "rootDir": "../"
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../design-system/css-reset/afm-jira/tsconfig.json"
22
- },
23
- {
24
- "path": "../../../design-system/icon/afm-jira/tsconfig.json"
25
- },
26
- {
27
- "path": "../../../editor/renderer/afm-jira/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
31
- }
32
- ]
33
- }
2
+ "extends": "../../../../tsconfig.entry-points.jira.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__help-article/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../design-system/css-reset/afm-jira/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../design-system/heading/afm-jira/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../../design-system/icon/afm-jira/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../editor/renderer/afm-jira/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
34
+ }
35
+ ]
36
+ }
@@ -1,33 +1,36 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__help-article/app",
7
- "composite": true,
8
- "rootDir": "../"
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../design-system/css-reset/afm-post-office/tsconfig.json"
22
- },
23
- {
24
- "path": "../../../design-system/icon/afm-post-office/tsconfig.json"
25
- },
26
- {
27
- "path": "../../../editor/renderer/afm-post-office/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
31
- }
32
- ]
33
- }
2
+ "extends": "../../../../tsconfig.entry-points.post-office.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../post-office/tsDist/@atlaskit__help-article/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../design-system/css-reset/afm-post-office/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../design-system/heading/afm-post-office/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../../design-system/icon/afm-post-office/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../editor/renderer/afm-post-office/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
34
+ }
35
+ ]
36
+ }
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
10
+ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
10
11
  var _HelpArticle = require("../model/HelpArticle");
11
12
  var _styled = require("./styled");
12
13
  var _ArticleBody = _interopRequireDefault(require("./ArticleBody"));
@@ -22,11 +23,15 @@ var HelpArticle = function HelpArticle(props) {
22
23
  return /*#__PURE__*/_react.default.createElement(_styled.ArticleContentInner, null, title && /*#__PURE__*/_react.default.createElement(_styled.ArticleContentTitle, null, titleLinkUrl ? /*#__PURE__*/_react.default.createElement(_styled.ArticleContentTitleLink, {
23
24
  href: titleLinkUrl,
24
25
  target: "_blank"
25
- }, /*#__PURE__*/_react.default.createElement("h2", null, title, /*#__PURE__*/_react.default.createElement("span", null, " "), /*#__PURE__*/_react.default.createElement(_linkExternalShortcut.default, {
26
+ }, /*#__PURE__*/_react.default.createElement(_heading.default, {
27
+ size: "large"
28
+ }, title, /*#__PURE__*/_react.default.createElement("span", null, " "), /*#__PURE__*/_react.default.createElement(_linkExternalShortcut.default, {
26
29
  color: "currentColor",
27
30
  label: "link icon",
28
31
  LEGACY_size: "small"
29
- }))) : /*#__PURE__*/_react.default.createElement("h2", null, title)), /*#__PURE__*/_react.default.createElement(_ArticleBody.default, {
32
+ }))) : /*#__PURE__*/_react.default.createElement(_heading.default, {
33
+ size: "large"
34
+ }, title)), /*#__PURE__*/_react.default.createElement(_ArticleBody.default, {
30
35
  body: body,
31
36
  bodyFormat: bodyFormat,
32
37
  onArticleRenderBegin: onArticleRenderBegin,
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
3
+ import Heading from '@atlaskit/heading';
3
4
  import { BODY_FORMAT_TYPES } from '../model/HelpArticle';
4
5
  import { ArticleContentInner, ArticleContentTitle, ArticleContentTitleLink } from './styled';
5
6
  import ArticleBody from './ArticleBody';
@@ -15,11 +16,15 @@ const HelpArticle = props => {
15
16
  return /*#__PURE__*/React.createElement(ArticleContentInner, null, title && /*#__PURE__*/React.createElement(ArticleContentTitle, null, titleLinkUrl ? /*#__PURE__*/React.createElement(ArticleContentTitleLink, {
16
17
  href: titleLinkUrl,
17
18
  target: "_blank"
18
- }, /*#__PURE__*/React.createElement("h2", null, title, /*#__PURE__*/React.createElement("span", null, " "), /*#__PURE__*/React.createElement(ShortcutIcon, {
19
+ }, /*#__PURE__*/React.createElement(Heading, {
20
+ size: "large"
21
+ }, title, /*#__PURE__*/React.createElement("span", null, " "), /*#__PURE__*/React.createElement(ShortcutIcon, {
19
22
  color: "currentColor",
20
23
  label: "link icon",
21
24
  LEGACY_size: "small"
22
- }))) : /*#__PURE__*/React.createElement("h2", null, title)), /*#__PURE__*/React.createElement(ArticleBody, {
25
+ }))) : /*#__PURE__*/React.createElement(Heading, {
26
+ size: "large"
27
+ }, title)), /*#__PURE__*/React.createElement(ArticleBody, {
23
28
  body: body,
24
29
  bodyFormat: bodyFormat,
25
30
  onArticleRenderBegin: onArticleRenderBegin,
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
3
+ import Heading from '@atlaskit/heading';
3
4
  import { BODY_FORMAT_TYPES } from '../model/HelpArticle';
4
5
  import { ArticleContentInner, ArticleContentTitle, ArticleContentTitleLink } from './styled';
5
6
  import ArticleBody from './ArticleBody';
@@ -15,11 +16,15 @@ var HelpArticle = function HelpArticle(props) {
15
16
  return /*#__PURE__*/React.createElement(ArticleContentInner, null, title && /*#__PURE__*/React.createElement(ArticleContentTitle, null, titleLinkUrl ? /*#__PURE__*/React.createElement(ArticleContentTitleLink, {
16
17
  href: titleLinkUrl,
17
18
  target: "_blank"
18
- }, /*#__PURE__*/React.createElement("h2", null, title, /*#__PURE__*/React.createElement("span", null, " "), /*#__PURE__*/React.createElement(ShortcutIcon, {
19
+ }, /*#__PURE__*/React.createElement(Heading, {
20
+ size: "large"
21
+ }, title, /*#__PURE__*/React.createElement("span", null, " "), /*#__PURE__*/React.createElement(ShortcutIcon, {
19
22
  color: "currentColor",
20
23
  label: "link icon",
21
24
  LEGACY_size: "small"
22
- }))) : /*#__PURE__*/React.createElement("h2", null, title)), /*#__PURE__*/React.createElement(ArticleBody, {
25
+ }))) : /*#__PURE__*/React.createElement(Heading, {
26
+ size: "large"
27
+ }, title)), /*#__PURE__*/React.createElement(ArticleBody, {
23
28
  body: body,
24
29
  bodyFormat: bodyFormat,
25
30
  onArticleRenderBegin: onArticleRenderBegin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help-article",
3
- "version": "4.2.4",
3
+ "version": "4.3.0",
4
4
  "description": "A cross-product help-article component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,9 +34,10 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/css-reset": "^6.11.0",
37
- "@atlaskit/icon": "^22.24.0",
38
- "@atlaskit/renderer": "^112.0.0",
39
- "@atlaskit/tokens": "^2.0.0",
37
+ "@atlaskit/heading": "^4.0.0",
38
+ "@atlaskit/icon": "^23.1.0",
39
+ "@atlaskit/renderer": "^112.8.0",
40
+ "@atlaskit/tokens": "^2.5.0",
40
41
  "@babel/runtime": "^7.0.0",
41
42
  "@emotion/styled": "^11.0.0",
42
43
  "lodash": "^4.17.21"
package/tsconfig.json CHANGED
@@ -11,6 +11,5 @@
11
11
  "./example-helpers/**/*.tsx"
12
12
  ],
13
13
  "compilerOptions": {
14
- "baseUrl": "./"
15
14
  }
16
15
  }