@atlaskit/help-layout 6.3.10 → 6.3.11

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,12 @@
1
1
  # @atlaskit/help-layout
2
2
 
3
+ ## 6.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bc7821de4d118`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc7821de4d118) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+
3
10
  ## 6.3.10
4
11
 
5
12
  ### Patch Changes
@@ -13,5 +13,5 @@ var createAndFire = exports.createAndFire = x.createAndFireEvent('atlaskit');
13
13
  var defaultAnalyticsAttributes = exports.defaultAnalyticsAttributes = {
14
14
  componentName: 'helpPanel',
15
15
  packageName: "@atlaskit/help-layout",
16
- packageVersion: "6.3.9"
16
+ packageVersion: "6.3.10"
17
17
  };
@@ -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.3.9"
59
+ packageVersion: "6.3.10"
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.3.9"
58
+ packageVersion: "6.3.10"
59
59
  }
60
60
  }, /*#__PURE__*/_react.default.createElement(CloseButton, props));
61
61
  };
@@ -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.3.9"
8
+ packageVersion: "6.3.10"
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.3.9"
53
+ packageVersion: "6.3.10"
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.3.9"
54
+ packageVersion: "6.3.10"
55
55
  }
56
56
  }, /*#__PURE__*/React.createElement(CloseButton, props));
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.3.9"
8
+ packageVersion: "6.3.10"
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.3.9"
52
+ packageVersion: "6.3.10"
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.3.9"
51
+ packageVersion: "6.3.10"
52
52
  }
53
53
  }, /*#__PURE__*/React.createElement(CloseButton, props));
54
54
  };
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
6
6
  interface Props {
7
- onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
7
  isDisabled?: boolean;
8
+ onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
9
9
  }
10
10
  export declare const NewChatButton: ({ onClick, isDisabled }: Props) => JSX.Element;
11
11
  export {};
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  isVisible?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const BackButton: React.FC<Props & WrappedComponentProps>;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  inDynamicHeader?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  /**
9
9
  * This function will return a CloseButton component only if the function
@@ -8,13 +8,13 @@ export declare const HeaderContainer: ({ children }: {
8
8
  children: React.ReactNode;
9
9
  }) => JSX.Element;
10
10
  export declare const CloseButtonContainer: ({ inDynamicHeader, children, }: {
11
- inDynamicHeader: boolean;
12
11
  children: React.ReactNode;
12
+ inDynamicHeader: boolean;
13
13
  }) => JSX.Element;
14
14
  export declare const TRANSITION_DURATION_MS = 220;
15
15
  export declare const BackButtonContainer: ({ transitionState, children, }: {
16
- transitionState: TransitionStatus;
17
16
  children: React.ReactNode;
17
+ transitionState: TransitionStatus;
18
18
  }) => JSX.Element;
19
19
  export declare const HeaderTitle: ({ children }: {
20
20
  children: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
- locale?: string;
5
4
  children: React.ReactNode;
5
+ locale?: string;
6
6
  }
7
7
  export declare const MessagesIntlProvider: React.FC<Props & WrappedComponentProps>;
8
8
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -10,15 +10,15 @@ export declare const Section: ({ children }: {
10
10
  children: React.ReactNode;
11
11
  }) => JSX.Element;
12
12
  export declare const HelpFooter: ({ dataTestId, children, }: {
13
- dataTestId: string;
14
13
  children: React.ReactNode;
14
+ dataTestId: string;
15
15
  }) => JSX.Element;
16
16
  export declare const LoadingContainer: ({ children, ...rest }: {
17
17
  children: React.ReactNode;
18
18
  } & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
19
19
  type LoadingRectangleProps = {
20
- contentWidth?: string;
21
20
  contentHeight?: string;
21
+ contentWidth?: string;
22
22
  marginTop?: string;
23
23
  };
24
24
  export declare const LoadingRectangle: ({ contentWidth, contentHeight, marginTop, }: LoadingRectangleProps) => JSX.Element;
@@ -1,31 +1,31 @@
1
1
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  export interface HelpPanelHeader {
3
- headerTitle?: string;
4
3
  headerContent?: React.ReactNode;
5
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
6
- onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
7
- isBackbuttonVisible?: boolean;
4
+ headerTitle?: string;
8
5
  isAiEnabled?: boolean;
6
+ isBackbuttonVisible?: boolean;
7
+ onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
9
9
  }
10
10
  export interface HeaderContent {
11
- title: string;
12
- onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
13
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
11
+ isBackButtonVisible?: boolean;
14
12
  newChatButtonDisabled?: boolean;
13
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
15
14
  onGoBackToHistoryList?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
- isBackButtonVisible?: boolean;
15
+ onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
+ title: string;
17
17
  }
18
18
  export interface SideNavTab {
19
+ contentRender: () => React.ReactNode;
20
+ header: HeaderContent;
19
21
  icon: React.ReactNode;
20
22
  label: string;
21
- contentRender: () => React.ReactNode;
22
23
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
23
- header: HeaderContent;
24
24
  }
25
25
  export interface HelpLayout extends HelpPanelHeader {
26
- isLoading?: boolean;
27
- footer?: React.ReactNode;
28
26
  children?: React.ReactNode;
29
- sideNavTabs?: SideNavTab[];
27
+ footer?: React.ReactNode;
28
+ isLoading?: boolean;
30
29
  onLoad?: () => void;
30
+ sideNavTabs?: SideNavTab[];
31
31
  }
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
6
6
  interface Props {
7
- onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
7
  isDisabled?: boolean;
8
+ onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
9
9
  }
10
10
  export declare const NewChatButton: ({ onClick, isDisabled }: Props) => JSX.Element;
11
11
  export {};
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  isVisible?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const BackButton: React.FC<Props & WrappedComponentProps>;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  inDynamicHeader?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  /**
9
9
  * This function will return a CloseButton component only if the function
@@ -8,13 +8,13 @@ export declare const HeaderContainer: ({ children }: {
8
8
  children: React.ReactNode;
9
9
  }) => JSX.Element;
10
10
  export declare const CloseButtonContainer: ({ inDynamicHeader, children, }: {
11
- inDynamicHeader: boolean;
12
11
  children: React.ReactNode;
12
+ inDynamicHeader: boolean;
13
13
  }) => JSX.Element;
14
14
  export declare const TRANSITION_DURATION_MS = 220;
15
15
  export declare const BackButtonContainer: ({ transitionState, children, }: {
16
- transitionState: TransitionStatus;
17
16
  children: React.ReactNode;
17
+ transitionState: TransitionStatus;
18
18
  }) => JSX.Element;
19
19
  export declare const HeaderTitle: ({ children }: {
20
20
  children: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
- locale?: string;
5
4
  children: React.ReactNode;
5
+ locale?: string;
6
6
  }
7
7
  export declare const MessagesIntlProvider: React.FC<Props & WrappedComponentProps>;
8
8
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -10,15 +10,15 @@ export declare const Section: ({ children }: {
10
10
  children: React.ReactNode;
11
11
  }) => JSX.Element;
12
12
  export declare const HelpFooter: ({ dataTestId, children, }: {
13
- dataTestId: string;
14
13
  children: React.ReactNode;
14
+ dataTestId: string;
15
15
  }) => JSX.Element;
16
16
  export declare const LoadingContainer: ({ children, ...rest }: {
17
17
  children: React.ReactNode;
18
18
  } & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
19
19
  type LoadingRectangleProps = {
20
- contentWidth?: string;
21
20
  contentHeight?: string;
21
+ contentWidth?: string;
22
22
  marginTop?: string;
23
23
  };
24
24
  export declare const LoadingRectangle: ({ contentWidth, contentHeight, marginTop, }: LoadingRectangleProps) => JSX.Element;
@@ -1,31 +1,31 @@
1
1
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  export interface HelpPanelHeader {
3
- headerTitle?: string;
4
3
  headerContent?: React.ReactNode;
5
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
6
- onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
7
- isBackbuttonVisible?: boolean;
4
+ headerTitle?: string;
8
5
  isAiEnabled?: boolean;
6
+ isBackbuttonVisible?: boolean;
7
+ onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
9
9
  }
10
10
  export interface HeaderContent {
11
- title: string;
12
- onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
13
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
11
+ isBackButtonVisible?: boolean;
14
12
  newChatButtonDisabled?: boolean;
13
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
15
14
  onGoBackToHistoryList?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
- isBackButtonVisible?: boolean;
15
+ onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
+ title: string;
17
17
  }
18
18
  export interface SideNavTab {
19
+ contentRender: () => React.ReactNode;
20
+ header: HeaderContent;
19
21
  icon: React.ReactNode;
20
22
  label: string;
21
- contentRender: () => React.ReactNode;
22
23
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
23
- header: HeaderContent;
24
24
  }
25
25
  export interface HelpLayout extends HelpPanelHeader {
26
- isLoading?: boolean;
27
- footer?: React.ReactNode;
28
26
  children?: React.ReactNode;
29
- sideNavTabs?: SideNavTab[];
27
+ footer?: React.ReactNode;
28
+ isLoading?: boolean;
30
29
  onLoad?: () => void;
30
+ sideNavTabs?: SideNavTab[];
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help-layout",
3
- "version": "6.3.10",
3
+ "version": "6.3.11",
4
4
  "description": "Layout for the atlaskit/help component.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"