@atlaskit/help-layout 6.2.2 → 6.2.3

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,13 @@
1
1
  # @atlaskit/help-layout
2
2
 
3
+ ## 6.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#154681](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154681)
8
+ [`fb0a99c10712e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fb0a99c10712e) -
9
+ Renamed contentRender prop for AI enabled feature
10
+
3
11
  ## 6.2.2
4
12
 
5
13
  ### Patch Changes
@@ -14,5 +14,5 @@ var createAndFire = exports.createAndFire = x.createAndFireEvent('atlaskit');
14
14
  var defaultAnalyticsAttributes = exports.defaultAnalyticsAttributes = {
15
15
  componentName: 'helpPanel',
16
16
  packageName: "@atlaskit/help-layout",
17
- packageVersion: "6.2.2"
17
+ packageVersion: "6.2.3"
18
18
  };
@@ -56,7 +56,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
56
56
  data: {
57
57
  componentName: 'backButton',
58
58
  packageName: "@atlaskit/help-layout",
59
- packageVersion: "6.2.2"
59
+ packageVersion: "6.2.3"
60
60
  }
61
61
  }, /*#__PURE__*/_react.default.createElement(BackButton, props));
62
62
  };
@@ -55,7 +55,7 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
55
55
  data: {
56
56
  componentName: 'closeButton',
57
57
  packageName: "@atlaskit/help-layout",
58
- packageVersion: "6.2.2"
58
+ packageVersion: "6.2.3"
59
59
  }
60
60
  }, /*#__PURE__*/_react.default.createElement(CloseButton, props));
61
61
  };
@@ -68,5 +68,5 @@ var SideNav = exports.SideNav = function SideNav(_ref) {
68
68
  onCloseButtonClick: sideNavTabs[activeIndex].header.onCloseButtonClick,
69
69
  onNewChatButtonClick: sideNavTabs[activeIndex].header.onNewChatButtonClick,
70
70
  newChatButtonDisabled: sideNavTabs[activeIndex].header.newChatButtonDisabled
71
- }), sideNavTabs[activeIndex].content));
71
+ }), sideNavTabs[activeIndex].contentRender()));
72
72
  };
@@ -5,5 +5,5 @@ export const createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export const defaultAnalyticsAttributes = {
6
6
  componentName: 'helpPanel',
7
7
  packageName: "@atlaskit/help-layout",
8
- packageVersion: "6.2.2"
8
+ packageVersion: "6.2.3"
9
9
  };
@@ -50,7 +50,7 @@ const BackButtonWithContext = props => {
50
50
  data: {
51
51
  componentName: 'backButton',
52
52
  packageName: "@atlaskit/help-layout",
53
- packageVersion: "6.2.2"
53
+ packageVersion: "6.2.3"
54
54
  }
55
55
  }, /*#__PURE__*/React.createElement(BackButton, props));
56
56
  };
@@ -51,7 +51,7 @@ const CloseButtonWithContext = props => {
51
51
  data: {
52
52
  componentName: 'closeButton',
53
53
  packageName: "@atlaskit/help-layout",
54
- packageVersion: "6.2.2"
54
+ packageVersion: "6.2.3"
55
55
  }
56
56
  }, /*#__PURE__*/React.createElement(CloseButton, props));
57
57
  };
@@ -53,5 +53,5 @@ export const SideNav = ({
53
53
  onCloseButtonClick: sideNavTabs[activeIndex].header.onCloseButtonClick,
54
54
  onNewChatButtonClick: sideNavTabs[activeIndex].header.onNewChatButtonClick,
55
55
  newChatButtonDisabled: sideNavTabs[activeIndex].header.newChatButtonDisabled
56
- }), sideNavTabs[activeIndex].content));
56
+ }), sideNavTabs[activeIndex].contentRender()));
57
57
  };
@@ -5,5 +5,5 @@ export var createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export var defaultAnalyticsAttributes = {
6
6
  componentName: 'helpPanel',
7
7
  packageName: "@atlaskit/help-layout",
8
- packageVersion: "6.2.2"
8
+ packageVersion: "6.2.3"
9
9
  };
@@ -49,7 +49,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
49
49
  data: {
50
50
  componentName: 'backButton',
51
51
  packageName: "@atlaskit/help-layout",
52
- packageVersion: "6.2.2"
52
+ packageVersion: "6.2.3"
53
53
  }
54
54
  }, /*#__PURE__*/React.createElement(BackButton, props));
55
55
  };
@@ -48,7 +48,7 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
48
48
  data: {
49
49
  componentName: 'closeButton',
50
50
  packageName: "@atlaskit/help-layout",
51
- packageVersion: "6.2.2"
51
+ packageVersion: "6.2.3"
52
52
  }
53
53
  }, /*#__PURE__*/React.createElement(CloseButton, props));
54
54
  };
@@ -58,5 +58,5 @@ export var SideNav = function SideNav(_ref) {
58
58
  onCloseButtonClick: sideNavTabs[activeIndex].header.onCloseButtonClick,
59
59
  onNewChatButtonClick: sideNavTabs[activeIndex].header.onNewChatButtonClick,
60
60
  newChatButtonDisabled: sideNavTabs[activeIndex].header.newChatButtonDisabled
61
- }), sideNavTabs[activeIndex].content));
61
+ }), sideNavTabs[activeIndex].contentRender()));
62
62
  };
@@ -17,7 +17,7 @@ export interface HeaderContent {
17
17
  export interface SideNavTab {
18
18
  icon: React.ReactNode;
19
19
  label: string;
20
- content: React.ReactNode;
20
+ contentRender: () => React.ReactNode;
21
21
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
22
22
  header: HeaderContent;
23
23
  }
@@ -17,7 +17,7 @@ export interface HeaderContent {
17
17
  export interface SideNavTab {
18
18
  icon: React.ReactNode;
19
19
  label: string;
20
- content: React.ReactNode;
20
+ contentRender: () => React.ReactNode;
21
21
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
22
22
  header: HeaderContent;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help-layout",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "Layout for the atlaskit/help component.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"